Add calendar component

This commit is contained in:
Sebastian Neumair
2020-01-31 17:05:55 +01:00
parent 9b94d716e7
commit 91432a649b
118 changed files with 2689 additions and 509 deletions

View File

@@ -12,12 +12,18 @@
class="first-wrapper"
[ngStyle]="{
'background-color':
!animations && (model.isFirstSwitchedOn ? model.firstChoiceColor.selectedBackground : model.firstChoiceColor.unSelectedbackground),
color: model.isFirstSwitchedOn ? model.firstChoiceColor.selectedText : model.firstChoiceColor.unSelectedText
!animations &&
(model.isFirstSwitchedOn
? model.firstChoiceColor.selectedBackground
: model.firstChoiceColor.unSelectedbackground),
color: model.isFirstSwitchedOn
? model.firstChoiceColor.selectedText
: model.firstChoiceColor.unSelectedText
}"
[ngClass]="{ selected: model.isFirstSwitchedOn }"
(click)="switch('first')"
>
<ng-content select="[slot=firstSwitchIcon]"></ng-content>
<span>{{ model.firstChoice }}</span>
</div>
@@ -26,12 +32,17 @@
[ngStyle]="{
'background-color':
!animations &&
(!model.isFirstSwitchedOn ? model.secondChoiceColor.selectedBackground : model.secondChoiceColor.unSelectedbackground),
color: !model.isFirstSwitchedOn ? model.secondChoiceColor.selectedText : model.secondChoiceColor.unSelectedText
(!model.isFirstSwitchedOn
? model.secondChoiceColor.selectedBackground
: model.secondChoiceColor.unSelectedbackground),
color: !model.isFirstSwitchedOn
? model.secondChoiceColor.selectedText
: model.secondChoiceColor.unSelectedText
}"
[ngClass]="{ selected: !model.isFirstSwitchedOn }"
(click)="switch('second')"
>
<ng-content select="[slot=secondSwitchIcon]"></ng-content>
<span>{{ model.secondChoice }}</span>
</div>
</div>

View File

@@ -18,6 +18,13 @@
cursor: default;
}
.first-wrapper,
.second-wrapper {
display: flex;
justify-content: center;
align-items: center;
}
.first-wrapper {
padding: 7px 20px 7px 20px;
cursor: pointer;