@tedi-design-system/angular 4.1.0-rc.3 → 4.1.0-rc.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/tedi-design-system-angular-tedi.mjs +1581 -262
- package/fesm2022/tedi-design-system-angular-tedi.mjs.map +1 -1
- package/index.css +1 -1
- package/package.json +1 -1
- package/tedi/components/form/date-picker/date-picker.component.d.ts +111 -0
- package/tedi/components/form/date-picker/date-picker.component.d.ts.map +1 -0
- package/tedi/components/form/index.d.ts +1 -0
- package/tedi/components/form/index.d.ts.map +1 -1
- package/tedi/components/layout/header/header-language/header-language.component.d.ts +3 -3
- package/tedi/components/layout/header/header-language/header-language.component.d.ts.map +1 -1
- package/tedi/components/overlay/dropdown/dropdown-content/dropdown-content.component.d.ts +16 -0
- package/tedi/components/overlay/dropdown/dropdown-content/dropdown-content.component.d.ts.map +1 -0
- package/tedi/components/overlay/dropdown/dropdown-item/dropdown-item.component.d.ts +21 -0
- package/tedi/components/overlay/dropdown/dropdown-item/dropdown-item.component.d.ts.map +1 -0
- package/tedi/components/overlay/dropdown/dropdown-trigger/dropdown-trigger.directive.d.ts +18 -0
- package/tedi/components/overlay/dropdown/dropdown-trigger/dropdown-trigger.directive.d.ts.map +1 -0
- package/tedi/components/overlay/dropdown/dropdown.component.d.ts +54 -0
- package/tedi/components/overlay/dropdown/dropdown.component.d.ts.map +1 -0
- package/tedi/components/overlay/dropdown/index.d.ts +5 -0
- package/tedi/components/overlay/dropdown/index.d.ts.map +1 -0
- package/tedi/components/overlay/index.d.ts +1 -0
- package/tedi/components/overlay/index.d.ts.map +1 -1
- package/tedi/components/overlay/popover/popover-content/popover-content.component.d.ts.map +1 -1
- package/tedi/components/overlay/popover/popover.component.d.ts +8 -4
- package/tedi/components/overlay/popover/popover.component.d.ts.map +1 -1
- package/tedi/components/overlay/tooltip/tooltip.component.d.ts +1 -1
- package/tedi/index.d.ts +2 -0
- package/tedi/index.d.ts.map +1 -1
- package/tedi/providers/index.d.ts +2 -0
- package/tedi/providers/index.d.ts.map +1 -0
- package/tedi/providers/tedi.provider.d.ts +9 -0
- package/tedi/providers/tedi.provider.d.ts.map +1 -0
- package/tedi/services/index.d.ts +1 -0
- package/tedi/services/index.d.ts.map +1 -1
- package/tedi/services/theme/theme.service.d.ts +15 -0
- package/tedi/services/theme/theme.service.d.ts.map +1 -0
- package/tedi/services/translation/translation.service.d.ts +5 -1
- package/tedi/services/translation/translation.service.d.ts.map +1 -1
- package/tedi/services/translation/translations.d.ts +322 -0
- package/tedi/services/translation/translations.d.ts.map +1 -1
- package/tedi/tokens/index.d.ts +3 -0
- package/tedi/tokens/index.d.ts.map +1 -0
- package/tedi/tokens/theme.token.d.ts +4 -0
- package/tedi/tokens/theme.token.d.ts.map +1 -0
- package/tedi/tokens/translation.token.d.ts +4 -0
- package/tedi/tokens/translation.token.d.ts.map +1 -0
- package/tedi/utils/cookies.util.d.ts +2 -0
- package/tedi/utils/cookies.util.d.ts.map +1 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, computed, ViewEncapsulation, ChangeDetectionStrategy, Component, inject, ElementRef, signal, isSignal, Injectable, Pipe, Renderer2, TemplateRef, Directive, viewChild, contentChildren, HostListener, contentChild, model, forwardRef, ViewChild, HostBinding, Attribute, Injector, ViewContainerRef, runInInjectionContext,
|
|
2
|
+
import { input, computed, ViewEncapsulation, ChangeDetectionStrategy, Component, inject, ElementRef, signal, InjectionToken, REQUEST, PLATFORM_ID, effect, isSignal, Injectable, Pipe, Renderer2, TemplateRef, Directive, viewChild, contentChildren, HostListener, contentChild, model, forwardRef, ViewChild, HostBinding, Attribute, Injector, ViewContainerRef, runInInjectionContext, ContentChildren, output, ContentChild, makeEnvironmentProviders, provideAppInitializer } from '@angular/core';
|
|
3
|
+
import { DOCUMENT, isPlatformBrowser, isPlatformServer, NgTemplateOutlet, NgClass, NgFor, NgIf } from '@angular/common';
|
|
3
4
|
import * as i1 from '@angular/cdk/layout';
|
|
4
|
-
import
|
|
5
|
+
import * as i1$1 from 'ngx-float-ui';
|
|
6
|
+
import { NgxFloatUiContentComponent, NgxFloatUiModule } from 'ngx-float-ui';
|
|
5
7
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
6
8
|
import { trigger, state, transition, style, animate } from '@angular/animations';
|
|
7
|
-
import * as i1$1 from 'ngx-float-ui';
|
|
8
|
-
import { NgxFloatUiModule, NgxFloatUiContentComponent } from 'ngx-float-ui';
|
|
9
9
|
import { RouterLink } from '@angular/router';
|
|
10
10
|
import { CdkTrapFocus } from '@angular/cdk/a11y';
|
|
11
11
|
|
|
@@ -781,10 +781,418 @@ const translationsMap = {
|
|
|
781
781
|
en: (slideNumber) => `Show slide ${slideNumber}`,
|
|
782
782
|
ru: (slideNumber) => `Показать слайд ${slideNumber}`,
|
|
783
783
|
},
|
|
784
|
+
"date-picker.january": {
|
|
785
|
+
description: "Label for january month",
|
|
786
|
+
components: ["DatePicker"],
|
|
787
|
+
et: "Jaanuar",
|
|
788
|
+
en: "January",
|
|
789
|
+
ru: "Январь",
|
|
790
|
+
},
|
|
791
|
+
"date-picker.february": {
|
|
792
|
+
description: "Label for february month",
|
|
793
|
+
components: ["DatePicker"],
|
|
794
|
+
et: "Veebruar",
|
|
795
|
+
en: "February",
|
|
796
|
+
ru: "Февраль",
|
|
797
|
+
},
|
|
798
|
+
"date-picker.march": {
|
|
799
|
+
description: "Label for march month",
|
|
800
|
+
components: ["DatePicker"],
|
|
801
|
+
et: "Märts",
|
|
802
|
+
en: "March",
|
|
803
|
+
ru: "Март",
|
|
804
|
+
},
|
|
805
|
+
"date-picker.april": {
|
|
806
|
+
description: "Label for april month",
|
|
807
|
+
components: ["DatePicker"],
|
|
808
|
+
et: "Aprill",
|
|
809
|
+
en: "April",
|
|
810
|
+
ru: "Апрель",
|
|
811
|
+
},
|
|
812
|
+
"date-picker.may": {
|
|
813
|
+
description: "Label for may month",
|
|
814
|
+
components: ["DatePicker"],
|
|
815
|
+
et: "Mai",
|
|
816
|
+
en: "May",
|
|
817
|
+
ru: "Май",
|
|
818
|
+
},
|
|
819
|
+
"date-picker.june": {
|
|
820
|
+
description: "Label for june month",
|
|
821
|
+
components: ["DatePicker"],
|
|
822
|
+
et: "Juuni",
|
|
823
|
+
en: "June",
|
|
824
|
+
ru: "Июнь",
|
|
825
|
+
},
|
|
826
|
+
"date-picker.july": {
|
|
827
|
+
description: "Label for july month",
|
|
828
|
+
components: ["DatePicker"],
|
|
829
|
+
et: "Juuli",
|
|
830
|
+
en: "July",
|
|
831
|
+
ru: "Июль",
|
|
832
|
+
},
|
|
833
|
+
"date-picker.august": {
|
|
834
|
+
description: "Label for august month",
|
|
835
|
+
components: ["DatePicker"],
|
|
836
|
+
et: "August",
|
|
837
|
+
en: "August",
|
|
838
|
+
ru: "Август",
|
|
839
|
+
},
|
|
840
|
+
"date-picker.september": {
|
|
841
|
+
description: "Label for september month",
|
|
842
|
+
components: ["DatePicker"],
|
|
843
|
+
et: "September",
|
|
844
|
+
en: "September",
|
|
845
|
+
ru: "Сентябрь",
|
|
846
|
+
},
|
|
847
|
+
"date-picker.october": {
|
|
848
|
+
description: "Label for october month",
|
|
849
|
+
components: ["DatePicker"],
|
|
850
|
+
et: "Oktoober",
|
|
851
|
+
en: "October",
|
|
852
|
+
ru: "Октябрь",
|
|
853
|
+
},
|
|
854
|
+
"date-picker.november": {
|
|
855
|
+
description: "Label for november month",
|
|
856
|
+
components: ["DatePicker"],
|
|
857
|
+
et: "November",
|
|
858
|
+
en: "November",
|
|
859
|
+
ru: "Ноябрь",
|
|
860
|
+
},
|
|
861
|
+
"date-picker.december": {
|
|
862
|
+
description: "Label for december month",
|
|
863
|
+
components: ["DatePicker"],
|
|
864
|
+
et: "Detsember",
|
|
865
|
+
en: "December",
|
|
866
|
+
ru: "Декабрь",
|
|
867
|
+
},
|
|
868
|
+
"date-picker.january-short": {
|
|
869
|
+
description: "Short label for january month",
|
|
870
|
+
components: ["DatePicker"],
|
|
871
|
+
et: "Jaan",
|
|
872
|
+
en: "Jan",
|
|
873
|
+
ru: "Янв",
|
|
874
|
+
},
|
|
875
|
+
"date-picker.february-short": {
|
|
876
|
+
description: "Short label for february month",
|
|
877
|
+
components: ["DatePicker"],
|
|
878
|
+
et: "Veebr",
|
|
879
|
+
en: "Feb",
|
|
880
|
+
ru: "Фев",
|
|
881
|
+
},
|
|
882
|
+
"date-picker.march-short": {
|
|
883
|
+
description: "Short label for march month",
|
|
884
|
+
components: ["DatePicker"],
|
|
885
|
+
et: "Märts",
|
|
886
|
+
en: "Mar",
|
|
887
|
+
ru: "Мар",
|
|
888
|
+
},
|
|
889
|
+
"date-picker.april-short": {
|
|
890
|
+
description: "Short label for april month",
|
|
891
|
+
components: ["DatePicker"],
|
|
892
|
+
et: "Apr",
|
|
893
|
+
en: "Apr",
|
|
894
|
+
ru: "Апр",
|
|
895
|
+
},
|
|
896
|
+
"date-picker.may-short": {
|
|
897
|
+
description: "Short label for may month",
|
|
898
|
+
components: ["DatePicker"],
|
|
899
|
+
et: "Mai",
|
|
900
|
+
en: "May",
|
|
901
|
+
ru: "Май",
|
|
902
|
+
},
|
|
903
|
+
"date-picker.june-short": {
|
|
904
|
+
description: "Short label for june month",
|
|
905
|
+
components: ["DatePicker"],
|
|
906
|
+
et: "Juuni",
|
|
907
|
+
en: "Jun",
|
|
908
|
+
ru: "Июн",
|
|
909
|
+
},
|
|
910
|
+
"date-picker.july-short": {
|
|
911
|
+
description: "Short label for july month",
|
|
912
|
+
components: ["DatePicker"],
|
|
913
|
+
et: "Juuli",
|
|
914
|
+
en: "Jul",
|
|
915
|
+
ru: "Июл",
|
|
916
|
+
},
|
|
917
|
+
"date-picker.august-short": {
|
|
918
|
+
description: "Short label for august month",
|
|
919
|
+
components: ["DatePicker"],
|
|
920
|
+
et: "Aug",
|
|
921
|
+
en: "Aug",
|
|
922
|
+
ru: "Авг",
|
|
923
|
+
},
|
|
924
|
+
"date-picker.september-short": {
|
|
925
|
+
description: "Short label for september month",
|
|
926
|
+
components: ["DatePicker"],
|
|
927
|
+
et: "Sept",
|
|
928
|
+
en: "Sep",
|
|
929
|
+
ru: "Сен",
|
|
930
|
+
},
|
|
931
|
+
"date-picker.october-short": {
|
|
932
|
+
description: "Short label for october month",
|
|
933
|
+
components: ["DatePicker"],
|
|
934
|
+
et: "Okt",
|
|
935
|
+
en: "Oct",
|
|
936
|
+
ru: "Окт",
|
|
937
|
+
},
|
|
938
|
+
"date-picker.november-short": {
|
|
939
|
+
description: "Short label for november month",
|
|
940
|
+
components: ["DatePicker"],
|
|
941
|
+
et: "Nov",
|
|
942
|
+
en: "Nov",
|
|
943
|
+
ru: "Ноя",
|
|
944
|
+
},
|
|
945
|
+
"date-picker.december-short": {
|
|
946
|
+
description: "Short label for december month",
|
|
947
|
+
components: ["DatePicker"],
|
|
948
|
+
et: "Dets",
|
|
949
|
+
en: "Dec",
|
|
950
|
+
ru: "Дек",
|
|
951
|
+
},
|
|
952
|
+
"date-picker.monday": {
|
|
953
|
+
description: "Label for Monday",
|
|
954
|
+
components: ["DatePicker"],
|
|
955
|
+
et: "Esmaspäev",
|
|
956
|
+
en: "Monday",
|
|
957
|
+
ru: "Понедельник",
|
|
958
|
+
},
|
|
959
|
+
"date-picker.tuesday": {
|
|
960
|
+
description: "Label for Tuesday",
|
|
961
|
+
components: ["DatePicker"],
|
|
962
|
+
et: "Teisipäev",
|
|
963
|
+
en: "Tuesday",
|
|
964
|
+
ru: "Вторник",
|
|
965
|
+
},
|
|
966
|
+
"date-picker.wednesday": {
|
|
967
|
+
description: "Label for Wednesday",
|
|
968
|
+
components: ["DatePicker"],
|
|
969
|
+
et: "Kolmapäev",
|
|
970
|
+
en: "Wednesday",
|
|
971
|
+
ru: "Среда",
|
|
972
|
+
},
|
|
973
|
+
"date-picker.thursday": {
|
|
974
|
+
description: "Label for Thursday",
|
|
975
|
+
components: ["DatePicker"],
|
|
976
|
+
et: "Neljapäev",
|
|
977
|
+
en: "Thursday",
|
|
978
|
+
ru: "Четверг",
|
|
979
|
+
},
|
|
980
|
+
"date-picker.friday": {
|
|
981
|
+
description: "Label for Friday",
|
|
982
|
+
components: ["DatePicker"],
|
|
983
|
+
et: "Reede",
|
|
984
|
+
en: "Friday",
|
|
985
|
+
ru: "Пятница",
|
|
986
|
+
},
|
|
987
|
+
"date-picker.saturday": {
|
|
988
|
+
description: "Label for Saturday",
|
|
989
|
+
components: ["DatePicker"],
|
|
990
|
+
et: "Laupäev",
|
|
991
|
+
en: "Saturday",
|
|
992
|
+
ru: "Суббота",
|
|
993
|
+
},
|
|
994
|
+
"date-picker.sunday": {
|
|
995
|
+
description: "Label for Sunday",
|
|
996
|
+
components: ["DatePicker"],
|
|
997
|
+
et: "Pühapäev",
|
|
998
|
+
en: "Sunday",
|
|
999
|
+
ru: "Воскресенье",
|
|
1000
|
+
},
|
|
1001
|
+
"date-picker.monday-short": {
|
|
1002
|
+
description: "Short label for Monday",
|
|
1003
|
+
components: ["DatePicker"],
|
|
1004
|
+
et: "E",
|
|
1005
|
+
en: "Mon",
|
|
1006
|
+
ru: "Пн",
|
|
1007
|
+
},
|
|
1008
|
+
"date-picker.tuesday-short": {
|
|
1009
|
+
description: "Short label for Tuesday",
|
|
1010
|
+
components: ["DatePicker"],
|
|
1011
|
+
et: "T",
|
|
1012
|
+
en: "Tue",
|
|
1013
|
+
ru: "Вт",
|
|
1014
|
+
},
|
|
1015
|
+
"date-picker.wednesday-short": {
|
|
1016
|
+
description: "Short label for Wednesday",
|
|
1017
|
+
components: ["DatePicker"],
|
|
1018
|
+
et: "K",
|
|
1019
|
+
en: "Wed",
|
|
1020
|
+
ru: "Ср",
|
|
1021
|
+
},
|
|
1022
|
+
"date-picker.thursday-short": {
|
|
1023
|
+
description: "Short label for Thursday",
|
|
1024
|
+
components: ["DatePicker"],
|
|
1025
|
+
et: "N",
|
|
1026
|
+
en: "Thu",
|
|
1027
|
+
ru: "Чт",
|
|
1028
|
+
},
|
|
1029
|
+
"date-picker.friday-short": {
|
|
1030
|
+
description: "Short label for Friday",
|
|
1031
|
+
components: ["DatePicker"],
|
|
1032
|
+
et: "R",
|
|
1033
|
+
en: "Fri",
|
|
1034
|
+
ru: "Пт",
|
|
1035
|
+
},
|
|
1036
|
+
"date-picker.saturday-short": {
|
|
1037
|
+
description: "Short label for Saturday",
|
|
1038
|
+
components: ["DatePicker"],
|
|
1039
|
+
et: "L",
|
|
1040
|
+
en: "Sat",
|
|
1041
|
+
ru: "Сб",
|
|
1042
|
+
},
|
|
1043
|
+
"date-picker.sunday-short": {
|
|
1044
|
+
description: "Short label for Sunday",
|
|
1045
|
+
components: ["DatePicker"],
|
|
1046
|
+
et: "P",
|
|
1047
|
+
en: "Sun",
|
|
1048
|
+
ru: "Вс",
|
|
1049
|
+
},
|
|
1050
|
+
"date-picker.go-next-month": {
|
|
1051
|
+
description: "Label for next month navigation",
|
|
1052
|
+
components: ["DatePicker"],
|
|
1053
|
+
et: "Järgmine kuu",
|
|
1054
|
+
en: "Next month",
|
|
1055
|
+
ru: "Следующий месяц",
|
|
1056
|
+
},
|
|
1057
|
+
"date-picker.go-prev-month": {
|
|
1058
|
+
description: "Label for previous month navigation",
|
|
1059
|
+
components: ["DatePicker"],
|
|
1060
|
+
et: "Eelmine kuu",
|
|
1061
|
+
en: "Previous month",
|
|
1062
|
+
ru: "Предыдущий месяц",
|
|
1063
|
+
},
|
|
1064
|
+
"date-picker.select-month": {
|
|
1065
|
+
description: "Label for month selection dropdown",
|
|
1066
|
+
components: ["DatePicker"],
|
|
1067
|
+
et: "Vali kuu",
|
|
1068
|
+
en: "Select month",
|
|
1069
|
+
ru: "Выберите месяц",
|
|
1070
|
+
},
|
|
1071
|
+
"date-picker.select-year": {
|
|
1072
|
+
description: "Label for year selection dropdown",
|
|
1073
|
+
components: ["DatePicker"],
|
|
1074
|
+
et: "Vali aasta",
|
|
1075
|
+
en: "Select year",
|
|
1076
|
+
ru: "Выберите год",
|
|
1077
|
+
},
|
|
1078
|
+
"date-picker.clear-date": {
|
|
1079
|
+
description: "Label for the button that clears the selected date from the input field.",
|
|
1080
|
+
components: ["DatePicker"],
|
|
1081
|
+
et: "Tühjenda kuupäev",
|
|
1082
|
+
en: "Clear date",
|
|
1083
|
+
ru: "Очистить дату",
|
|
1084
|
+
},
|
|
1085
|
+
"date-picker.open-calendar": {
|
|
1086
|
+
description: "Label for the button that opens the date picker calendar.",
|
|
1087
|
+
components: ["DatePicker"],
|
|
1088
|
+
et: "Ava kalender",
|
|
1089
|
+
en: "Open calendar",
|
|
1090
|
+
ru: "Открыть календарь",
|
|
1091
|
+
},
|
|
1092
|
+
"date-picker.previous-years": {
|
|
1093
|
+
description: "Label for showing previous years in year-grid.",
|
|
1094
|
+
components: ["DatePicker"],
|
|
1095
|
+
et: "Eelnevad aastad",
|
|
1096
|
+
en: "Previous years",
|
|
1097
|
+
ru: "Предыдущие годы",
|
|
1098
|
+
},
|
|
1099
|
+
"date-picker.next-years": {
|
|
1100
|
+
description: "Label for showing next years in year-grid.",
|
|
1101
|
+
components: ["DatePicker"],
|
|
1102
|
+
et: "Järgmised aastad",
|
|
1103
|
+
en: "Next years",
|
|
1104
|
+
ru: "Следующие годы",
|
|
1105
|
+
},
|
|
784
1106
|
};
|
|
785
1107
|
|
|
1108
|
+
const TEDI_TRANSLATION_DEFAULT_TOKEN = new InjectionToken("TEDI_TRANSLATION_DEFAULT_TOKEN");
|
|
1109
|
+
|
|
1110
|
+
function parseCookies(header) {
|
|
1111
|
+
const result = {};
|
|
1112
|
+
if (!header)
|
|
1113
|
+
return result;
|
|
1114
|
+
for (const c of header.split(";")) {
|
|
1115
|
+
const [rawKey, ...rest] = c.split("=");
|
|
1116
|
+
const key = (rawKey ?? "").trim();
|
|
1117
|
+
const rawVal = rest.join("=");
|
|
1118
|
+
try {
|
|
1119
|
+
result[key] = decodeURIComponent(rawVal).trim();
|
|
1120
|
+
}
|
|
1121
|
+
catch {
|
|
1122
|
+
result[key] = rawVal.trim();
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
return result;
|
|
1126
|
+
}
|
|
1127
|
+
function readServerCookie(key) {
|
|
1128
|
+
try {
|
|
1129
|
+
const req = inject(REQUEST, { optional: true });
|
|
1130
|
+
const cookieHeader = req?.headers.get("cookie");
|
|
1131
|
+
if (!cookieHeader)
|
|
1132
|
+
return undefined;
|
|
1133
|
+
return parseCookies(cookieHeader)[key];
|
|
1134
|
+
}
|
|
1135
|
+
catch {
|
|
1136
|
+
return undefined;
|
|
1137
|
+
}
|
|
1138
|
+
}
|
|
1139
|
+
function readBrowserCookie(key) {
|
|
1140
|
+
const document = inject(DOCUMENT);
|
|
1141
|
+
const cookies = parseCookies(document.cookie);
|
|
1142
|
+
return cookies[key];
|
|
1143
|
+
}
|
|
1144
|
+
function parseCookieValue(raw, initialValue) {
|
|
1145
|
+
if (!raw)
|
|
1146
|
+
return initialValue;
|
|
1147
|
+
try {
|
|
1148
|
+
const parsed = typeof initialValue === "string" ? raw : JSON.parse(raw);
|
|
1149
|
+
return parsed;
|
|
1150
|
+
}
|
|
1151
|
+
catch {
|
|
1152
|
+
return initialValue;
|
|
1153
|
+
}
|
|
1154
|
+
}
|
|
1155
|
+
function cookieSignal(key, initialValue) {
|
|
1156
|
+
const platformId = inject(PLATFORM_ID);
|
|
1157
|
+
const document = inject(DOCUMENT);
|
|
1158
|
+
const isBrowser = isPlatformBrowser(platformId);
|
|
1159
|
+
const isServer = isPlatformServer(platformId);
|
|
1160
|
+
let startValue = initialValue;
|
|
1161
|
+
if (isServer) {
|
|
1162
|
+
const raw = readServerCookie(key);
|
|
1163
|
+
startValue = parseCookieValue(raw, initialValue);
|
|
1164
|
+
}
|
|
1165
|
+
if (isBrowser) {
|
|
1166
|
+
const raw = readBrowserCookie(key);
|
|
1167
|
+
startValue = parseCookieValue(raw, initialValue);
|
|
1168
|
+
}
|
|
1169
|
+
const state = signal(startValue);
|
|
1170
|
+
const options = {
|
|
1171
|
+
path: "/",
|
|
1172
|
+
sameSite: "Lax",
|
|
1173
|
+
secure: false,
|
|
1174
|
+
maxAge: 60 * 60 * 24 * 30,
|
|
1175
|
+
};
|
|
1176
|
+
if (isBrowser) {
|
|
1177
|
+
effect(() => {
|
|
1178
|
+
const value = state();
|
|
1179
|
+
if (value === null || value === undefined || value === "") {
|
|
1180
|
+
document.cookie = `${key}=; path=${options.path}; max-age=0`;
|
|
1181
|
+
return;
|
|
1182
|
+
}
|
|
1183
|
+
const stored = typeof value === "string" ? value : JSON.stringify(value);
|
|
1184
|
+
document.cookie = `${key}=${encodeURIComponent(stored)}; path=${options.path}; max-age=${options.maxAge}; samesite=${options.sameSite};`;
|
|
1185
|
+
});
|
|
1186
|
+
}
|
|
1187
|
+
return state;
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
const LANGUAGE_COOKIE_NAME = "tedi-lang";
|
|
1191
|
+
const AVAILABLE_LANGUAGES = ["et", "en", "ru"];
|
|
1192
|
+
const LANGUAGE_FALLBACK_VALUE = "et";
|
|
786
1193
|
class TediTranslationService {
|
|
787
|
-
|
|
1194
|
+
defaultLang = inject(TEDI_TRANSLATION_DEFAULT_TOKEN);
|
|
1195
|
+
currentLang = cookieSignal(LANGUAGE_COOKIE_NAME, this.defaultLang);
|
|
788
1196
|
translations = signal(translationsMap);
|
|
789
1197
|
getLanguage = this.currentLang.asReadonly();
|
|
790
1198
|
setLanguage(lang) {
|
|
@@ -1131,6 +1539,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
1131
1539
|
}]
|
|
1132
1540
|
}] });
|
|
1133
1541
|
|
|
1542
|
+
const TEDI_THEME_DEFAULT_TOKEN = new InjectionToken("TEDI_THEME_DEFAULT_TOKEN");
|
|
1543
|
+
|
|
1544
|
+
const AVAILABLE_THEMES = ["default", "dark", "rit"];
|
|
1545
|
+
const THEME_CLASS_PREFIX = "tedi-theme--";
|
|
1546
|
+
const THEME_COOKIE_NAME = "tedi-theme";
|
|
1547
|
+
const THEME_FALLBACK_VALUE = "default";
|
|
1548
|
+
class ThemeService {
|
|
1549
|
+
document = inject(DOCUMENT);
|
|
1550
|
+
defaultTheme = inject(TEDI_THEME_DEFAULT_TOKEN);
|
|
1551
|
+
theme = cookieSignal(THEME_COOKIE_NAME, this.defaultTheme);
|
|
1552
|
+
constructor() {
|
|
1553
|
+
effect(() => {
|
|
1554
|
+
const html = this.document.documentElement;
|
|
1555
|
+
for (const t of AVAILABLE_THEMES) {
|
|
1556
|
+
html.classList.remove(`${THEME_CLASS_PREFIX}${t}`);
|
|
1557
|
+
}
|
|
1558
|
+
html.classList.add(`${THEME_CLASS_PREFIX}${this.theme()}`);
|
|
1559
|
+
});
|
|
1560
|
+
}
|
|
1561
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ThemeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1562
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ThemeService, providedIn: "root" });
|
|
1563
|
+
}
|
|
1564
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ThemeService, decorators: [{
|
|
1565
|
+
type: Injectable,
|
|
1566
|
+
args: [{ providedIn: "root" }]
|
|
1567
|
+
}], ctorParameters: () => [] });
|
|
1568
|
+
|
|
1134
1569
|
class CarouselContentComponent {
|
|
1135
1570
|
/** Slides per view (minimum 1, can be fractional, e.g. 1.25 for peeking) */
|
|
1136
1571
|
slidesPerView = input({ xs: 1 }, { transform: (v) => breakpointInput(v) });
|
|
@@ -1526,37 +1961,1109 @@ class CarouselNavigationComponent {
|
|
|
1526
1961
|
handleNext() {
|
|
1527
1962
|
this.carousel.carouselContent().next();
|
|
1528
1963
|
}
|
|
1529
|
-
handlePrev() {
|
|
1530
|
-
this.carousel.carouselContent().prev();
|
|
1964
|
+
handlePrev() {
|
|
1965
|
+
this.carousel.carouselContent().prev();
|
|
1966
|
+
}
|
|
1967
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: CarouselNavigationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1968
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: CarouselNavigationComponent, isStandalone: true, selector: "tedi-carousel-navigation", ngImport: i0, template: "<button\n tedi-button\n type=\"button\"\n variant=\"secondary\"\n [attr.aria-label]=\"translationService.track('carousel.moveBack')()\"\n (click)=\"handlePrev()\"\n>\n <tedi-icon name=\"arrow_back\" [size]=\"18\" />\n</button>\n<button\n tedi-button\n type=\"button\"\n variant=\"secondary\"\n [attr.aria-label]=\"translationService.track('carousel.moveForward')()\"\n (click)=\"handleNext()\"\n>\n <tedi-icon name=\"arrow_forward\" [size]=\"18\" />\n</button>\n", styles: ["tedi-carousel-navigation{display:flex;align-items:center}tedi-carousel-navigation{gap:var(--layout-grid-gutters-08-mobile)}@media (min-width: 576px){tedi-carousel-navigation{gap:var(--layout-grid-gutters-08-tablet)}}@media (min-width: 992px){tedi-carousel-navigation{gap:var(--layout-grid-gutters-08-desktop)}}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "[tedi-button]", inputs: ["variant", "size"] }, { kind: "component", type: IconComponent, selector: "tedi-icon", inputs: ["name", "size", "color", "background", "variant", "type", "label"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1969
|
+
}
|
|
1970
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: CarouselNavigationComponent, decorators: [{
|
|
1971
|
+
type: Component,
|
|
1972
|
+
args: [{ standalone: true, selector: "tedi-carousel-navigation", changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [ButtonComponent, IconComponent], template: "<button\n tedi-button\n type=\"button\"\n variant=\"secondary\"\n [attr.aria-label]=\"translationService.track('carousel.moveBack')()\"\n (click)=\"handlePrev()\"\n>\n <tedi-icon name=\"arrow_back\" [size]=\"18\" />\n</button>\n<button\n tedi-button\n type=\"button\"\n variant=\"secondary\"\n [attr.aria-label]=\"translationService.track('carousel.moveForward')()\"\n (click)=\"handleNext()\"\n>\n <tedi-icon name=\"arrow_forward\" [size]=\"18\" />\n</button>\n", styles: ["tedi-carousel-navigation{display:flex;align-items:center}tedi-carousel-navigation{gap:var(--layout-grid-gutters-08-mobile)}@media (min-width: 576px){tedi-carousel-navigation{gap:var(--layout-grid-gutters-08-tablet)}}@media (min-width: 992px){tedi-carousel-navigation{gap:var(--layout-grid-gutters-08-desktop)}}\n"] }]
|
|
1973
|
+
}] });
|
|
1974
|
+
|
|
1975
|
+
class CheckboxComponent {
|
|
1976
|
+
/**
|
|
1977
|
+
* Size of the checkbox.
|
|
1978
|
+
* @default default
|
|
1979
|
+
*/
|
|
1980
|
+
size = input("default");
|
|
1981
|
+
/**
|
|
1982
|
+
* Is checkbox invalid?
|
|
1983
|
+
* @default false
|
|
1984
|
+
*/
|
|
1985
|
+
invalid = input(false);
|
|
1986
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: CheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1987
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.15", type: CheckboxComponent, isStandalone: true, selector: "input[type=checkbox][tedi-checkbox]", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.tedi-checkbox--large": "size() === 'large'", "class.tedi-checkbox--invalid": "invalid()" } }, ngImport: i0, template: "", isInline: true, styles: ["input[tedi-checkbox][type=checkbox]{--_checkbox-icon-size: 1.125rem;appearance:none;position:relative;cursor:pointer;border:1px solid var(--form-checkbox-radio-default-border-default);background-color:var(--form-checkbox-radio-default-background-default);vertical-align:middle;padding:0;margin:0}input[tedi-checkbox][type=checkbox]{width:var(--form-checkbox-radio-size-responsive-mobile)}@media (min-width: 576px){input[tedi-checkbox][type=checkbox]{width:var(--form-checkbox-radio-size-responsive-tablet)}}@media (min-width: 992px){input[tedi-checkbox][type=checkbox]{width:var(--form-checkbox-radio-size-responsive-desktop)}}input[tedi-checkbox][type=checkbox]{height:var(--form-checkbox-radio-size-responsive-mobile)}@media (min-width: 576px){input[tedi-checkbox][type=checkbox]{height:var(--form-checkbox-radio-size-responsive-tablet)}}@media (min-width: 992px){input[tedi-checkbox][type=checkbox]{height:var(--form-checkbox-radio-size-responsive-desktop)}}input[tedi-checkbox][type=checkbox]{border-radius:var(--form-checkbox-radio-indicator-radius-checkbox-mobile)}@media (min-width: 576px){input[tedi-checkbox][type=checkbox]{border-radius:var(--form-checkbox-radio-indicator-radius-checkbox-tablet)}}@media (min-width: 992px){input[tedi-checkbox][type=checkbox]{border-radius:var(--form-checkbox-radio-indicator-radius-checkbox-desktop)}}@media (min-width: 576px){input[tedi-checkbox][type=checkbox]{--_checkbox-icon-size: 1rem}}input[tedi-checkbox][type=checkbox]:not(:disabled):hover{border-color:var(--form-checkbox-radio-default-border-hover);box-shadow:0 0 0 1px var(--form-checkbox-radio-default-border-hover)}input[tedi-checkbox][type=checkbox]:not(:checked):disabled{cursor:not-allowed;border-color:var(--form-general-border-disabled);background-color:var(--form-general-background-disabled)}input[tedi-checkbox][type=checkbox]:checked,input[tedi-checkbox][type=checkbox]:indeterminate{border-color:var(--form-checkbox-radio-default-border-selected);background-color:var(--form-checkbox-radio-default-background-selected)}input[tedi-checkbox][type=checkbox]:checked:disabled,input[tedi-checkbox][type=checkbox]:indeterminate:disabled{cursor:not-allowed;border-color:var(--form-checkbox-radio-default-border-selected-disabled);background-color:var(--form-checkbox-radio-default-background-selected-disabled)}input[tedi-checkbox][type=checkbox]:checked:before,input[tedi-checkbox][type=checkbox]:indeterminate:before{position:absolute;top:50%;left:50%;content:\"check\";font-size:var(--_checkbox-icon-size);font-family:Material Symbols Outlined,sans-serif;-webkit-font-smoothing:antialiased;color:var(--form-checkbox-radio-default-check-indicator-default);line-height:1;transform:translate(-50%,-50%)}input[tedi-checkbox][type=checkbox]:checked:before{content:\"check\"}input[tedi-checkbox][type=checkbox]:indeterminate:before{content:\"remove\"}input[tedi-checkbox][type=checkbox]:focus-visible{outline-width:2px;outline-offset:2px;outline-style:solid}input[tedi-checkbox][type=checkbox]:not(:checked):not(:disabled).tedi-checkbox--invalid,input[tedi-checkbox][type=checkbox]:user-invalid,input[tedi-checkbox][type=checkbox].ng-invalid.ng-touched{border-color:var(--form-general-feedback-error-border)}input[tedi-checkbox][type=checkbox]:not(:checked):not(:disabled).tedi-checkbox--invalid:hover,input[tedi-checkbox][type=checkbox]:user-invalid:hover,input[tedi-checkbox][type=checkbox].ng-invalid.ng-touched:hover{border-color:var(--form-checkbox-radio-default-border-hover)}input[tedi-checkbox][type=checkbox].tedi-checkbox--large{--_checkbox-icon-size: 1.125rem}input[tedi-checkbox][type=checkbox].tedi-checkbox--large{width:var(--form-checkbox-radio-size-large-mobile)}@media (min-width: 576px){input[tedi-checkbox][type=checkbox].tedi-checkbox--large{width:var(--form-checkbox-radio-size-large-tablet)}}@media (min-width: 992px){input[tedi-checkbox][type=checkbox].tedi-checkbox--large{width:var(--form-checkbox-radio-size-large-desktop)}}input[tedi-checkbox][type=checkbox].tedi-checkbox--large{height:var(--form-checkbox-radio-size-large-mobile)}@media (min-width: 576px){input[tedi-checkbox][type=checkbox].tedi-checkbox--large{height:var(--form-checkbox-radio-size-large-tablet)}}@media (min-width: 992px){input[tedi-checkbox][type=checkbox].tedi-checkbox--large{height:var(--form-checkbox-radio-size-large-desktop)}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1988
|
+
}
|
|
1989
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: CheckboxComponent, decorators: [{
|
|
1990
|
+
type: Component,
|
|
1991
|
+
args: [{ standalone: true, selector: "input[type=checkbox][tedi-checkbox]", template: "", encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
1992
|
+
"[class.tedi-checkbox--large]": "size() === 'large'",
|
|
1993
|
+
"[class.tedi-checkbox--invalid]": "invalid()",
|
|
1994
|
+
}, styles: ["input[tedi-checkbox][type=checkbox]{--_checkbox-icon-size: 1.125rem;appearance:none;position:relative;cursor:pointer;border:1px solid var(--form-checkbox-radio-default-border-default);background-color:var(--form-checkbox-radio-default-background-default);vertical-align:middle;padding:0;margin:0}input[tedi-checkbox][type=checkbox]{width:var(--form-checkbox-radio-size-responsive-mobile)}@media (min-width: 576px){input[tedi-checkbox][type=checkbox]{width:var(--form-checkbox-radio-size-responsive-tablet)}}@media (min-width: 992px){input[tedi-checkbox][type=checkbox]{width:var(--form-checkbox-radio-size-responsive-desktop)}}input[tedi-checkbox][type=checkbox]{height:var(--form-checkbox-radio-size-responsive-mobile)}@media (min-width: 576px){input[tedi-checkbox][type=checkbox]{height:var(--form-checkbox-radio-size-responsive-tablet)}}@media (min-width: 992px){input[tedi-checkbox][type=checkbox]{height:var(--form-checkbox-radio-size-responsive-desktop)}}input[tedi-checkbox][type=checkbox]{border-radius:var(--form-checkbox-radio-indicator-radius-checkbox-mobile)}@media (min-width: 576px){input[tedi-checkbox][type=checkbox]{border-radius:var(--form-checkbox-radio-indicator-radius-checkbox-tablet)}}@media (min-width: 992px){input[tedi-checkbox][type=checkbox]{border-radius:var(--form-checkbox-radio-indicator-radius-checkbox-desktop)}}@media (min-width: 576px){input[tedi-checkbox][type=checkbox]{--_checkbox-icon-size: 1rem}}input[tedi-checkbox][type=checkbox]:not(:disabled):hover{border-color:var(--form-checkbox-radio-default-border-hover);box-shadow:0 0 0 1px var(--form-checkbox-radio-default-border-hover)}input[tedi-checkbox][type=checkbox]:not(:checked):disabled{cursor:not-allowed;border-color:var(--form-general-border-disabled);background-color:var(--form-general-background-disabled)}input[tedi-checkbox][type=checkbox]:checked,input[tedi-checkbox][type=checkbox]:indeterminate{border-color:var(--form-checkbox-radio-default-border-selected);background-color:var(--form-checkbox-radio-default-background-selected)}input[tedi-checkbox][type=checkbox]:checked:disabled,input[tedi-checkbox][type=checkbox]:indeterminate:disabled{cursor:not-allowed;border-color:var(--form-checkbox-radio-default-border-selected-disabled);background-color:var(--form-checkbox-radio-default-background-selected-disabled)}input[tedi-checkbox][type=checkbox]:checked:before,input[tedi-checkbox][type=checkbox]:indeterminate:before{position:absolute;top:50%;left:50%;content:\"check\";font-size:var(--_checkbox-icon-size);font-family:Material Symbols Outlined,sans-serif;-webkit-font-smoothing:antialiased;color:var(--form-checkbox-radio-default-check-indicator-default);line-height:1;transform:translate(-50%,-50%)}input[tedi-checkbox][type=checkbox]:checked:before{content:\"check\"}input[tedi-checkbox][type=checkbox]:indeterminate:before{content:\"remove\"}input[tedi-checkbox][type=checkbox]:focus-visible{outline-width:2px;outline-offset:2px;outline-style:solid}input[tedi-checkbox][type=checkbox]:not(:checked):not(:disabled).tedi-checkbox--invalid,input[tedi-checkbox][type=checkbox]:user-invalid,input[tedi-checkbox][type=checkbox].ng-invalid.ng-touched{border-color:var(--form-general-feedback-error-border)}input[tedi-checkbox][type=checkbox]:not(:checked):not(:disabled).tedi-checkbox--invalid:hover,input[tedi-checkbox][type=checkbox]:user-invalid:hover,input[tedi-checkbox][type=checkbox].ng-invalid.ng-touched:hover{border-color:var(--form-checkbox-radio-default-border-hover)}input[tedi-checkbox][type=checkbox].tedi-checkbox--large{--_checkbox-icon-size: 1.125rem}input[tedi-checkbox][type=checkbox].tedi-checkbox--large{width:var(--form-checkbox-radio-size-large-mobile)}@media (min-width: 576px){input[tedi-checkbox][type=checkbox].tedi-checkbox--large{width:var(--form-checkbox-radio-size-large-tablet)}}@media (min-width: 992px){input[tedi-checkbox][type=checkbox].tedi-checkbox--large{width:var(--form-checkbox-radio-size-large-desktop)}}input[tedi-checkbox][type=checkbox].tedi-checkbox--large{height:var(--form-checkbox-radio-size-large-mobile)}@media (min-width: 576px){input[tedi-checkbox][type=checkbox].tedi-checkbox--large{height:var(--form-checkbox-radio-size-large-tablet)}}@media (min-width: 992px){input[tedi-checkbox][type=checkbox].tedi-checkbox--large{height:var(--form-checkbox-radio-size-large-desktop)}}\n"] }]
|
|
1995
|
+
}] });
|
|
1996
|
+
|
|
1997
|
+
class DropdownTriggerDirective {
|
|
1998
|
+
/** Defines the aria-haspopup attribute for the trigger, informing assistive technologies whether it opens a menu or listbox. Improves accessibility by describing the type of popup. */
|
|
1999
|
+
ariaHaspopup = input("menu");
|
|
2000
|
+
host = inject(ElementRef);
|
|
2001
|
+
dropdown = inject(DropdownComponent);
|
|
2002
|
+
get isButton() {
|
|
2003
|
+
return this.host.nativeElement.tagName === "BUTTON";
|
|
2004
|
+
}
|
|
2005
|
+
onClick() {
|
|
2006
|
+
this.dropdown.toggleDropdown();
|
|
2007
|
+
}
|
|
2008
|
+
onKeydown(event) {
|
|
2009
|
+
const key = event.key;
|
|
2010
|
+
switch (key) {
|
|
2011
|
+
case "ArrowDown":
|
|
2012
|
+
event.preventDefault();
|
|
2013
|
+
this.openAndFocusFirst();
|
|
2014
|
+
break;
|
|
2015
|
+
case "ArrowUp":
|
|
2016
|
+
event.preventDefault();
|
|
2017
|
+
this.openAndFocusLast();
|
|
2018
|
+
break;
|
|
2019
|
+
case "Escape":
|
|
2020
|
+
event.preventDefault();
|
|
2021
|
+
this.dropdown.hideDropdown();
|
|
2022
|
+
this.host.nativeElement.focus();
|
|
2023
|
+
break;
|
|
2024
|
+
}
|
|
2025
|
+
}
|
|
2026
|
+
openAndFocusFirst() {
|
|
2027
|
+
if (!this.dropdown.floatUiComponent().state) {
|
|
2028
|
+
this.dropdown.showDropdown();
|
|
2029
|
+
}
|
|
2030
|
+
this.dropdown.focusFirstItem?.();
|
|
2031
|
+
}
|
|
2032
|
+
openAndFocusLast() {
|
|
2033
|
+
if (!this.dropdown.floatUiComponent().state) {
|
|
2034
|
+
this.dropdown.showDropdown();
|
|
2035
|
+
}
|
|
2036
|
+
this.dropdown.focusLastItem?.();
|
|
2037
|
+
}
|
|
2038
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DropdownTriggerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2039
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.15", type: DropdownTriggerDirective, isStandalone: true, selector: "[tedi-dropdown-trigger]", inputs: { ariaHaspopup: { classPropertyName: "ariaHaspopup", publicName: "ariaHaspopup", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "onClick()", "keydown": "onKeydown($event)" }, properties: { "attr.id": "dropdown.containerId() + '_trigger'", "attr.aria-controls": "dropdown.containerId()", "attr.aria-expanded": "dropdown.floatUiComponent().state", "attr.aria-haspopup": "'menu'", "attr.role": "isButton ? null : 'button'", "attr.tabindex": "isButton ? null : '0'" } }, ngImport: i0 });
|
|
2040
|
+
}
|
|
2041
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DropdownTriggerDirective, decorators: [{
|
|
2042
|
+
type: Directive,
|
|
2043
|
+
args: [{
|
|
2044
|
+
standalone: true,
|
|
2045
|
+
selector: "[tedi-dropdown-trigger]",
|
|
2046
|
+
host: {
|
|
2047
|
+
"[attr.id]": "dropdown.containerId() + '_trigger'",
|
|
2048
|
+
"[attr.aria-controls]": "dropdown.containerId()",
|
|
2049
|
+
"[attr.aria-expanded]": "dropdown.floatUiComponent().state",
|
|
2050
|
+
"[attr.aria-haspopup]": "'menu'",
|
|
2051
|
+
"[attr.role]": "isButton ? null : 'button'",
|
|
2052
|
+
"[attr.tabindex]": "isButton ? null : '0'",
|
|
2053
|
+
},
|
|
2054
|
+
}]
|
|
2055
|
+
}], propDecorators: { onClick: [{
|
|
2056
|
+
type: HostListener,
|
|
2057
|
+
args: ["click"]
|
|
2058
|
+
}], onKeydown: [{
|
|
2059
|
+
type: HostListener,
|
|
2060
|
+
args: ["keydown", ["$event"]]
|
|
2061
|
+
}] } });
|
|
2062
|
+
|
|
2063
|
+
class DropdownItemComponent {
|
|
2064
|
+
/** Item value */
|
|
2065
|
+
value = input();
|
|
2066
|
+
/** Is item disabled? */
|
|
2067
|
+
disabled = input(false);
|
|
2068
|
+
host = inject(ElementRef);
|
|
2069
|
+
dropdown = inject(DropdownComponent);
|
|
2070
|
+
dropdownContent = inject(DropdownContentComponent);
|
|
2071
|
+
isSelected() {
|
|
2072
|
+
return this.dropdown.value() === this.value();
|
|
2073
|
+
}
|
|
2074
|
+
focus() {
|
|
2075
|
+
this.host.nativeElement.focus();
|
|
2076
|
+
}
|
|
2077
|
+
onClick() {
|
|
2078
|
+
if (this.disabled())
|
|
2079
|
+
return;
|
|
2080
|
+
this.onItemSelect();
|
|
2081
|
+
}
|
|
2082
|
+
onKeydown(event) {
|
|
2083
|
+
const key = event.key;
|
|
2084
|
+
if (this.disabled()) {
|
|
2085
|
+
event.preventDefault();
|
|
2086
|
+
return;
|
|
2087
|
+
}
|
|
2088
|
+
switch (key) {
|
|
2089
|
+
case "ArrowDown":
|
|
2090
|
+
event.preventDefault();
|
|
2091
|
+
this.dropdown.focusNextItem(this.host.nativeElement);
|
|
2092
|
+
break;
|
|
2093
|
+
case "ArrowUp":
|
|
2094
|
+
event.preventDefault();
|
|
2095
|
+
this.dropdown.focusPrevItem(this.host.nativeElement);
|
|
2096
|
+
break;
|
|
2097
|
+
case "Home":
|
|
2098
|
+
event.preventDefault();
|
|
2099
|
+
this.dropdown.focusFirstItem();
|
|
2100
|
+
break;
|
|
2101
|
+
case "End":
|
|
2102
|
+
event.preventDefault();
|
|
2103
|
+
this.dropdown.focusLastItem();
|
|
2104
|
+
break;
|
|
2105
|
+
case "Enter":
|
|
2106
|
+
case " ":
|
|
2107
|
+
event.preventDefault();
|
|
2108
|
+
this.onItemSelect();
|
|
2109
|
+
break;
|
|
2110
|
+
case "Escape":
|
|
2111
|
+
event.preventDefault();
|
|
2112
|
+
this.dropdown.hideDropdown();
|
|
2113
|
+
this.dropdown.dropdownTrigger()?.host.nativeElement.focus();
|
|
2114
|
+
break;
|
|
2115
|
+
}
|
|
2116
|
+
}
|
|
2117
|
+
onItemSelect() {
|
|
2118
|
+
if (this.dropdownContent.dropdownRole() === "listbox") {
|
|
2119
|
+
this.dropdown.value.set(this.value());
|
|
2120
|
+
}
|
|
2121
|
+
this.dropdown.hideDropdown();
|
|
2122
|
+
this.dropdown.dropdownTrigger()?.host.nativeElement.focus();
|
|
2123
|
+
}
|
|
2124
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DropdownItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2125
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.15", type: DropdownItemComponent, isStandalone: true, selector: "li[tedi-dropdown-item]", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "onClick()", "keydown": "onKeydown($event)" }, properties: { "attr.role": "dropdownContent.dropdownRole() === 'menu' ? 'menuitem' : 'option'", "attr.aria-selected": "dropdownContent.dropdownRole() === 'listbox' ? isSelected() : null", "attr.aria-disabled": "disabled() ? 'true' : null", "tabindex": "dropdownContent.dropdownRole() === 'menu' ? '-1' : (disabled() ? null : '-1')" } }, ngImport: i0, template: "<ng-content />", isInline: true, styles: ["li[tedi-dropdown-item]{width:100%;min-height:40px;display:flex;align-items:center;gap:var(--dropdown-item-inner-spacing);color:var(--dropdown-item-default-text);background:var(--dropdown-item-default-background);padding:var(--dropdown-item-padding-y, 8px) var(--dropdown-item-padding-x);cursor:pointer}li[tedi-dropdown-item]:hover{color:var(--dropdown-item-hover-text);background:var(--dropdown-item-hover-background)}li[tedi-dropdown-item]:focus-visible{outline:var(--borders-02) solid var(--primary-500);outline-offset:calc(-1 * var(--borders-02))}li[tedi-dropdown-item][aria-selected=true]{color:var(--dropdown-item-active-text);background:var(--dropdown-item-active-background)}li[tedi-dropdown-item][aria-selected=true]:focus-visible{color:var(--dropdown-item-default-text);background:var(--dropdown-item-default-background)}li[tedi-dropdown-item][aria-disabled=true]{color:var(--general-text-disabled);background:var(--dropdown-item-disabled-background);cursor:not-allowed}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2126
|
+
}
|
|
2127
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DropdownItemComponent, decorators: [{
|
|
2128
|
+
type: Component,
|
|
2129
|
+
args: [{ selector: "li[tedi-dropdown-item]", standalone: true, template: "<ng-content />", encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
2130
|
+
"[attr.role]": "dropdownContent.dropdownRole() === 'menu' ? 'menuitem' : 'option'",
|
|
2131
|
+
"[attr.aria-selected]": "dropdownContent.dropdownRole() === 'listbox' ? isSelected() : null",
|
|
2132
|
+
"[attr.aria-disabled]": "disabled() ? 'true' : null",
|
|
2133
|
+
"[tabindex]": "dropdownContent.dropdownRole() === 'menu' ? '-1' : (disabled() ? null : '-1')",
|
|
2134
|
+
}, styles: ["li[tedi-dropdown-item]{width:100%;min-height:40px;display:flex;align-items:center;gap:var(--dropdown-item-inner-spacing);color:var(--dropdown-item-default-text);background:var(--dropdown-item-default-background);padding:var(--dropdown-item-padding-y, 8px) var(--dropdown-item-padding-x);cursor:pointer}li[tedi-dropdown-item]:hover{color:var(--dropdown-item-hover-text);background:var(--dropdown-item-hover-background)}li[tedi-dropdown-item]:focus-visible{outline:var(--borders-02) solid var(--primary-500);outline-offset:calc(-1 * var(--borders-02))}li[tedi-dropdown-item][aria-selected=true]{color:var(--dropdown-item-active-text);background:var(--dropdown-item-active-background)}li[tedi-dropdown-item][aria-selected=true]:focus-visible{color:var(--dropdown-item-default-text);background:var(--dropdown-item-default-background)}li[tedi-dropdown-item][aria-disabled=true]{color:var(--general-text-disabled);background:var(--dropdown-item-disabled-background);cursor:not-allowed}\n"] }]
|
|
2135
|
+
}], propDecorators: { onClick: [{
|
|
2136
|
+
type: HostListener,
|
|
2137
|
+
args: ["click"]
|
|
2138
|
+
}], onKeydown: [{
|
|
2139
|
+
type: HostListener,
|
|
2140
|
+
args: ["keydown", ["$event"]]
|
|
2141
|
+
}] } });
|
|
2142
|
+
|
|
2143
|
+
class DropdownContentComponent {
|
|
2144
|
+
/**
|
|
2145
|
+
* Role for content, use listbox for list and menu for actions
|
|
2146
|
+
* @default menu
|
|
2147
|
+
*/
|
|
2148
|
+
dropdownRole = input("menu");
|
|
2149
|
+
dropdown = inject(DropdownComponent);
|
|
2150
|
+
items = contentChildren(DropdownItemComponent);
|
|
2151
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DropdownContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2152
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.15", type: DropdownContentComponent, isStandalone: true, selector: "tedi-dropdown-content", inputs: { dropdownRole: { classPropertyName: "dropdownRole", publicName: "dropdownRole", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "presentation" }, properties: { "attr.aria-labelledby": "dropdown.containerId() + '_trigger'" } }, queries: [{ propertyName: "items", predicate: DropdownItemComponent, isSignal: true }], ngImport: i0, template: "<ng-content />\n<ul [attr.role]=\"dropdownRole()\">\n <ng-content select=\"li[tedi-dropdown-item]\" />\n</ul>\n", styles: ["tedi-dropdown-content{width:max-content;min-width:var(--_tedi-dropdown-trigger-width);display:flex;flex-direction:column;border-radius:var(--form-select-area-radius);border:1px solid var(--card-border-primary);box-shadow:0 1px 5px #0003;overflow:auto}tedi-dropdown-content ul{margin:0}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2153
|
+
}
|
|
2154
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DropdownContentComponent, decorators: [{
|
|
2155
|
+
type: Component,
|
|
2156
|
+
args: [{ selector: "tedi-dropdown-content", standalone: true, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
2157
|
+
role: "presentation",
|
|
2158
|
+
"[attr.aria-labelledby]": "dropdown.containerId() + '_trigger'",
|
|
2159
|
+
}, template: "<ng-content />\n<ul [attr.role]=\"dropdownRole()\">\n <ng-content select=\"li[tedi-dropdown-item]\" />\n</ul>\n", styles: ["tedi-dropdown-content{width:max-content;min-width:var(--_tedi-dropdown-trigger-width);display:flex;flex-direction:column;border-radius:var(--form-select-area-radius);border:1px solid var(--card-border-primary);box-shadow:0 1px 5px #0003;overflow:auto}tedi-dropdown-content ul{margin:0}\n"] }]
|
|
2160
|
+
}] });
|
|
2161
|
+
|
|
2162
|
+
class DropdownComponent {
|
|
2163
|
+
/** Current value of dropdown (used with listbox) */
|
|
2164
|
+
value = model();
|
|
2165
|
+
/**
|
|
2166
|
+
* The position of the dropdown relative to the trigger element.
|
|
2167
|
+
* @default bottom-start
|
|
2168
|
+
*/
|
|
2169
|
+
position = input("bottom-start");
|
|
2170
|
+
/**
|
|
2171
|
+
* Should position to opposite direction when overflowing screen?
|
|
2172
|
+
* @default true
|
|
2173
|
+
*/
|
|
2174
|
+
preventOverflow = input(true);
|
|
2175
|
+
/**
|
|
2176
|
+
* Append floating element to given selector.
|
|
2177
|
+
* Use 'body' to append at the end of DOM or empty string to append next to trigger element.
|
|
2178
|
+
* @default ""
|
|
2179
|
+
*/
|
|
2180
|
+
appendTo = input("");
|
|
2181
|
+
dropdownTrigger = contentChild.required(DropdownTriggerDirective);
|
|
2182
|
+
dropdownContent = contentChild.required(DropdownContentComponent);
|
|
2183
|
+
floatUiComponent = viewChild.required(NgxFloatUiContentComponent);
|
|
2184
|
+
activeIndex = signal(null);
|
|
2185
|
+
containerId = signal("");
|
|
2186
|
+
isContentHovered = signal(false);
|
|
2187
|
+
floatUiDisplay = signal("inline");
|
|
2188
|
+
platformId = inject(PLATFORM_ID);
|
|
2189
|
+
constructor() {
|
|
2190
|
+
if (isPlatformBrowser(this.platformId)) {
|
|
2191
|
+
document.addEventListener("pointerdown", this.handleOutsideClick, true);
|
|
2192
|
+
}
|
|
2193
|
+
}
|
|
2194
|
+
ngOnDestroy() {
|
|
2195
|
+
if (isPlatformBrowser(this.platformId)) {
|
|
2196
|
+
document.removeEventListener("pointerdown", this.handleOutsideClick, true);
|
|
2197
|
+
}
|
|
2198
|
+
}
|
|
2199
|
+
ngAfterContentChecked() {
|
|
2200
|
+
const floatUiEl = this.floatUiComponent().elRef
|
|
2201
|
+
.nativeElement;
|
|
2202
|
+
const container = floatUiEl.querySelector(".float-ui-container");
|
|
2203
|
+
if (container) {
|
|
2204
|
+
container.setAttribute("tabindex", "-1");
|
|
2205
|
+
container.setAttribute("aria-labelledby", container.id + "_trigger");
|
|
2206
|
+
this.containerId.set(container.id);
|
|
2207
|
+
}
|
|
2208
|
+
}
|
|
2209
|
+
showDropdown() {
|
|
2210
|
+
if (this.floatUiComponent().state)
|
|
2211
|
+
return;
|
|
2212
|
+
this.floatUiComponent().show();
|
|
2213
|
+
this.floatUiDisplay.set("block");
|
|
2214
|
+
this.setActiveToSelectedOrFirst();
|
|
2215
|
+
const floatUiEl = this.floatUiComponent().elRef
|
|
2216
|
+
.nativeElement;
|
|
2217
|
+
const triggerWidth = this.dropdownTrigger()?.host.nativeElement.offsetWidth;
|
|
2218
|
+
if (triggerWidth) {
|
|
2219
|
+
floatUiEl.style.setProperty("--_tedi-dropdown-trigger-width", `${triggerWidth}px`);
|
|
2220
|
+
}
|
|
2221
|
+
setTimeout(() => this.focusActiveItem());
|
|
2222
|
+
}
|
|
2223
|
+
hideDropdown() {
|
|
2224
|
+
if (this.floatUiComponent().state) {
|
|
2225
|
+
this.floatUiComponent().hide();
|
|
2226
|
+
this.floatUiDisplay.set("inline");
|
|
2227
|
+
this.activeIndex.set(null);
|
|
2228
|
+
this.updateTabindexes();
|
|
2229
|
+
}
|
|
2230
|
+
}
|
|
2231
|
+
toggleDropdown() {
|
|
2232
|
+
if (this.floatUiComponent().state) {
|
|
2233
|
+
this.hideDropdown();
|
|
2234
|
+
}
|
|
2235
|
+
else {
|
|
2236
|
+
this.showDropdown();
|
|
2237
|
+
}
|
|
2238
|
+
}
|
|
2239
|
+
handleOutsideClick = (event) => {
|
|
2240
|
+
if (!this.floatUiComponent().state)
|
|
2241
|
+
return;
|
|
2242
|
+
const target = event.target;
|
|
2243
|
+
const triggerEl = this.dropdownTrigger().host.nativeElement;
|
|
2244
|
+
const contentEl = this.floatUiComponent().elRef
|
|
2245
|
+
.nativeElement;
|
|
2246
|
+
const clickedInside = triggerEl.contains(target) || contentEl.contains(target);
|
|
2247
|
+
if (!clickedInside) {
|
|
2248
|
+
this.hideDropdown();
|
|
2249
|
+
triggerEl.focus();
|
|
2250
|
+
}
|
|
2251
|
+
};
|
|
2252
|
+
focusFirstItem() {
|
|
2253
|
+
const items = this.dropdownContent().items();
|
|
2254
|
+
const index = items.findIndex((item) => !item.disabled());
|
|
2255
|
+
if (index !== -1) {
|
|
2256
|
+
this.activeIndex.set(index);
|
|
2257
|
+
this.updateTabindexes();
|
|
2258
|
+
items[index].focus();
|
|
2259
|
+
}
|
|
2260
|
+
}
|
|
2261
|
+
focusLastItem() {
|
|
2262
|
+
const items = this.dropdownContent().items();
|
|
2263
|
+
for (let i = items.length - 1; i >= 0; i--) {
|
|
2264
|
+
if (!items[i].disabled()) {
|
|
2265
|
+
this.activeIndex.set(i);
|
|
2266
|
+
this.updateTabindexes();
|
|
2267
|
+
items[i].focus();
|
|
2268
|
+
return;
|
|
2269
|
+
}
|
|
2270
|
+
}
|
|
2271
|
+
}
|
|
2272
|
+
setActiveToSelectedOrFirst() {
|
|
2273
|
+
const items = this.dropdownContent().items();
|
|
2274
|
+
const selectedIndex = items.findIndex((item) => item.value() === this.value());
|
|
2275
|
+
if (selectedIndex !== -1 && !items[selectedIndex].disabled()) {
|
|
2276
|
+
this.activeIndex.set(selectedIndex);
|
|
2277
|
+
this.updateTabindexes();
|
|
2278
|
+
return;
|
|
2279
|
+
}
|
|
2280
|
+
const index = items.findIndex((item) => !item.disabled());
|
|
2281
|
+
if (index !== -1) {
|
|
2282
|
+
this.activeIndex.set(index);
|
|
2283
|
+
this.updateTabindexes();
|
|
2284
|
+
}
|
|
2285
|
+
}
|
|
2286
|
+
focusActiveItem() {
|
|
2287
|
+
const index = this.activeIndex();
|
|
2288
|
+
if (index == null)
|
|
2289
|
+
return;
|
|
2290
|
+
const items = this.dropdownContent().items();
|
|
2291
|
+
if (!items[index])
|
|
2292
|
+
return;
|
|
2293
|
+
const el = items[index].host.nativeElement;
|
|
2294
|
+
el.focus();
|
|
2295
|
+
el.scrollIntoView({
|
|
2296
|
+
block: "nearest",
|
|
2297
|
+
inline: "nearest",
|
|
2298
|
+
});
|
|
2299
|
+
}
|
|
2300
|
+
focusNextItem(fromEl) {
|
|
2301
|
+
const fromIndex = this.findIndexByElement(fromEl);
|
|
2302
|
+
if (fromIndex === -1)
|
|
2303
|
+
return;
|
|
2304
|
+
const nextIndex = this.getNextEnabledIndex(fromIndex);
|
|
2305
|
+
if (nextIndex == null)
|
|
2306
|
+
return;
|
|
2307
|
+
const items = this.dropdownContent().items();
|
|
2308
|
+
this.activeIndex.set(nextIndex);
|
|
2309
|
+
this.updateTabindexes();
|
|
2310
|
+
items[nextIndex].focus();
|
|
2311
|
+
}
|
|
2312
|
+
focusPrevItem(fromEl) {
|
|
2313
|
+
const fromIndex = this.findIndexByElement(fromEl);
|
|
2314
|
+
if (fromIndex === -1)
|
|
2315
|
+
return;
|
|
2316
|
+
const prevIndex = this.getPrevEnabledIndex(fromIndex);
|
|
2317
|
+
if (prevIndex == null)
|
|
2318
|
+
return;
|
|
2319
|
+
const items = this.dropdownContent().items();
|
|
2320
|
+
this.activeIndex.set(prevIndex);
|
|
2321
|
+
this.updateTabindexes();
|
|
2322
|
+
items[prevIndex].focus();
|
|
2323
|
+
}
|
|
2324
|
+
updateTabindexes() {
|
|
2325
|
+
const items = this.dropdownContent().items();
|
|
2326
|
+
const role = this.dropdownContent().dropdownRole();
|
|
2327
|
+
const active = this.activeIndex();
|
|
2328
|
+
items.forEach((item, i) => {
|
|
2329
|
+
const el = item.host.nativeElement;
|
|
2330
|
+
if (i === active && !item.disabled()) {
|
|
2331
|
+
el.setAttribute("tabindex", "0");
|
|
2332
|
+
}
|
|
2333
|
+
else {
|
|
2334
|
+
if (role === "listbox" && item.disabled()) {
|
|
2335
|
+
el.removeAttribute("tabindex");
|
|
2336
|
+
}
|
|
2337
|
+
else {
|
|
2338
|
+
el.setAttribute("tabindex", "-1");
|
|
2339
|
+
}
|
|
2340
|
+
}
|
|
2341
|
+
});
|
|
2342
|
+
}
|
|
2343
|
+
findIndexByElement(el) {
|
|
2344
|
+
return this.dropdownContent()
|
|
2345
|
+
.items()
|
|
2346
|
+
.findIndex((item) => item.host.nativeElement === el);
|
|
2347
|
+
}
|
|
2348
|
+
getNextEnabledIndex(fromIndex) {
|
|
2349
|
+
const items = this.dropdownContent().items();
|
|
2350
|
+
for (let i = fromIndex + 1; i < items.length; i++) {
|
|
2351
|
+
if (!items[i].disabled())
|
|
2352
|
+
return i;
|
|
2353
|
+
}
|
|
2354
|
+
return null;
|
|
2355
|
+
}
|
|
2356
|
+
getPrevEnabledIndex(fromIndex) {
|
|
2357
|
+
const items = this.dropdownContent().items();
|
|
2358
|
+
for (let i = fromIndex - 1; i >= 0; i--) {
|
|
2359
|
+
if (!items[i].disabled())
|
|
2360
|
+
return i;
|
|
2361
|
+
}
|
|
2362
|
+
return null;
|
|
2363
|
+
}
|
|
2364
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DropdownComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2365
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.15", type: DropdownComponent, isStandalone: true, selector: "tedi-dropdown", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, preventOverflow: { classPropertyName: "preventOverflow", publicName: "preventOverflow", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, queries: [{ propertyName: "dropdownTrigger", first: true, predicate: DropdownTriggerDirective, descendants: true, isSignal: true }, { propertyName: "dropdownContent", first: true, predicate: DropdownContentComponent, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "floatUiComponent", first: true, predicate: NgxFloatUiContentComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<div\n applyClass=\"float-ui-container-dropdown\"\n style=\"display: contents\"\n looseTrigger=\"none\"\n ariaRole=\"presentation\"\n [hideOnClickOutside]=\"true\"\n [floatUiLoose]=\"floatUiComponent\"\n [loosePlacement]=\"position()\"\n [preventOverflow]=\"position().includes('auto') ? false : preventOverflow()\"\n [disableAnimation]=\"true\"\n [targetElement]=\"dropdownTrigger().host.nativeElement\"\n [appendTo]=\"appendTo()\"\n>\n <ng-content select=\"[tedi-dropdown-trigger]\" />\n</div>\n<float-ui-content #floatUiComponent [style.display]=\"floatUiDisplay()\">\n <ng-content select=\"tedi-dropdown-content\" />\n</float-ui-content>\n", styles: ["tedi-dropdown{display:inline-flex}float-ui-content .float-ui-container-dropdown{padding:0;border:0;border-radius:var(--dropdown-item-radius);box-shadow:0 1px 5px 0 var(--alpha-20, rgba(0, 0, 0, .2));z-index:var(--z-index-dropdown)}\n"], dependencies: [{ kind: "ngmodule", type: NgxFloatUiModule }, { kind: "component", type: i1$1.NgxFloatUiContentComponent, selector: "float-ui-content", exportAs: ["ngxFloatUiContent"] }, { kind: "directive", type: i1$1.NgxFloatUiLooseDirective, selector: "[floatUiLoose]", inputs: ["floatUiLoose", "loosePlacement", "looseTrigger"], exportAs: ["floatUiLoose"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2366
|
+
}
|
|
2367
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DropdownComponent, decorators: [{
|
|
2368
|
+
type: Component,
|
|
2369
|
+
args: [{ standalone: true, selector: "tedi-dropdown", imports: [NgxFloatUiModule], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n applyClass=\"float-ui-container-dropdown\"\n style=\"display: contents\"\n looseTrigger=\"none\"\n ariaRole=\"presentation\"\n [hideOnClickOutside]=\"true\"\n [floatUiLoose]=\"floatUiComponent\"\n [loosePlacement]=\"position()\"\n [preventOverflow]=\"position().includes('auto') ? false : preventOverflow()\"\n [disableAnimation]=\"true\"\n [targetElement]=\"dropdownTrigger().host.nativeElement\"\n [appendTo]=\"appendTo()\"\n>\n <ng-content select=\"[tedi-dropdown-trigger]\" />\n</div>\n<float-ui-content #floatUiComponent [style.display]=\"floatUiDisplay()\">\n <ng-content select=\"tedi-dropdown-content\" />\n</float-ui-content>\n", styles: ["tedi-dropdown{display:inline-flex}float-ui-content .float-ui-container-dropdown{padding:0;border:0;border-radius:var(--dropdown-item-radius);box-shadow:0 1px 5px 0 var(--alpha-20, rgba(0, 0, 0, .2));z-index:var(--z-index-dropdown)}\n"] }]
|
|
2370
|
+
}], ctorParameters: () => [] });
|
|
2371
|
+
|
|
2372
|
+
class SeparatorComponent {
|
|
2373
|
+
/**
|
|
2374
|
+
* Axis of separator.
|
|
2375
|
+
*/
|
|
2376
|
+
axis = input("horizontal");
|
|
2377
|
+
/**
|
|
2378
|
+
* Color of separator
|
|
2379
|
+
*/
|
|
2380
|
+
color = input("primary");
|
|
2381
|
+
/**
|
|
2382
|
+
* Separator style variant.
|
|
2383
|
+
*/
|
|
2384
|
+
variant = input();
|
|
2385
|
+
/**
|
|
2386
|
+
* Dot size. Only used when variant is "dot-only".
|
|
2387
|
+
*/
|
|
2388
|
+
dotSize = input();
|
|
2389
|
+
/**
|
|
2390
|
+
* Is dot filled? Only used when variant is "dot-only".
|
|
2391
|
+
*/
|
|
2392
|
+
dotFilled = input(true);
|
|
2393
|
+
/**
|
|
2394
|
+
* Thickness in pixels (ignored if variant is used).
|
|
2395
|
+
* @default 1
|
|
2396
|
+
*/
|
|
2397
|
+
thickness = input(1);
|
|
2398
|
+
/**
|
|
2399
|
+
* Spacing applied based on the axis:
|
|
2400
|
+
* - For horizontal axis, spacing is applied to top and bottom of the separator.
|
|
2401
|
+
* - For vertical axis, spacing is applied to left and right of the separator.
|
|
2402
|
+
*/
|
|
2403
|
+
spacing = input();
|
|
2404
|
+
/**
|
|
2405
|
+
* Size of separator based on the axis:
|
|
2406
|
+
* - For horizontal axis, size defines width.
|
|
2407
|
+
* - For vertical axis, size defines height (when using percentages, then parent container must have height set).
|
|
2408
|
+
* @default 100%
|
|
2409
|
+
*/
|
|
2410
|
+
size = input("100%");
|
|
2411
|
+
// eslint-disable-next-line complexity
|
|
2412
|
+
classes = computed(() => {
|
|
2413
|
+
const classList = [
|
|
2414
|
+
"tedi-separator",
|
|
2415
|
+
`tedi-separator--${this.color()}`,
|
|
2416
|
+
`tedi-separator--${this.axis()}`,
|
|
2417
|
+
];
|
|
2418
|
+
if (this.variant()) {
|
|
2419
|
+
classList.push(`tedi-separator--${this.variant()}`);
|
|
2420
|
+
}
|
|
2421
|
+
if (this.variant() && this.dotSize()) {
|
|
2422
|
+
classList.push(`tedi-separator--${this.variant()}-${this.dotSize()}`);
|
|
2423
|
+
}
|
|
2424
|
+
if (this.variant() === "dot-only" && this.dotFilled()) {
|
|
2425
|
+
classList.push(`tedi-separator--${this.variant()}-filled`);
|
|
2426
|
+
}
|
|
2427
|
+
else {
|
|
2428
|
+
classList.push(`tedi-separator--${this.variant()}-outlined`);
|
|
2429
|
+
}
|
|
2430
|
+
if (this.thickness()) {
|
|
2431
|
+
classList.push(`tedi-separator--thickness-${this.thickness()}`);
|
|
2432
|
+
}
|
|
2433
|
+
const spacing = this.spacing();
|
|
2434
|
+
if (spacing && typeof spacing === "number") {
|
|
2435
|
+
classList.push(`tedi-separator--spacing-${spacing}`.replace(".", "-"));
|
|
2436
|
+
}
|
|
2437
|
+
else if (spacing) {
|
|
2438
|
+
if (this.axis() === "horizontal") {
|
|
2439
|
+
if (spacing.top) {
|
|
2440
|
+
classList.push(`tedi-separator--top-${spacing.top}`.replace(".", "-"));
|
|
2441
|
+
}
|
|
2442
|
+
if (spacing.bottom) {
|
|
2443
|
+
classList.push(`tedi-separator--bottom-${spacing.bottom}`.replace(".", "-"));
|
|
2444
|
+
}
|
|
2445
|
+
}
|
|
2446
|
+
else {
|
|
2447
|
+
if (spacing.left) {
|
|
2448
|
+
classList.push(`tedi-separator--left-${spacing.left}`.replace(".", "-"));
|
|
2449
|
+
}
|
|
2450
|
+
if (spacing.right) {
|
|
2451
|
+
classList.push(`tedi-separator--right-${spacing.right}`.replace(".", "-"));
|
|
2452
|
+
}
|
|
2453
|
+
}
|
|
2454
|
+
}
|
|
2455
|
+
return classList.join(" ");
|
|
2456
|
+
});
|
|
2457
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: SeparatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2458
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.15", type: SeparatorComponent, isStandalone: true, selector: "tedi-separator", inputs: { axis: { classPropertyName: "axis", publicName: "axis", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, dotSize: { classPropertyName: "dotSize", publicName: "dotSize", isSignal: true, isRequired: false, transformFunction: null }, dotFilled: { classPropertyName: "dotFilled", publicName: "dotFilled", isSignal: true, isRequired: false, transformFunction: null }, thickness: { classPropertyName: "thickness", publicName: "thickness", isSignal: true, isRequired: false, transformFunction: null }, spacing: { classPropertyName: "spacing", publicName: "spacing", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "style.width": "variant() === 'dot-only' ? null : axis() === 'horizontal' ? size() : '0px'", "style.height": "variant() === 'dot-only' ? null : axis() === 'vertical' ? size() : '0px'" } }, ngImport: i0, template: "", isInline: true, styles: [".tedi-separator{display:block;position:relative;margin:0;border:0;border-top-width:1px;border-style:solid}@media print{.tedi-separator{filter:grayscale(1)}}.tedi-separator--vertical{border-top-width:0;border-left-width:1px}.tedi-separator--primary{border-color:var(--general-border-primary)}.tedi-separator--secondary{border-color:var(--general-border-secondary)}.tedi-separator--accent{border-color:var(--general-border-accent)}.tedi-separator--block{display:block}.tedi-separator--inline{display:inline}.tedi-separator--dotted:before,.tedi-separator--dotted-small:before{position:absolute;top:1.25rem;content:\"\";background-color:var(--general-border-primary);border-radius:100%;transform:translate(-8px)}@media print{.tedi-separator--dotted:before,.tedi-separator--dotted-small:before{filter:grayscale(1)}}.tedi-separator--dotted:before,.tedi-separator--dotted-small:before{height:var(--separator-dotted-dot-lg-mobile)}@media (min-width: 576px){.tedi-separator--dotted:before,.tedi-separator--dotted-small:before{height:var(--separator-dotted-dot-lg-tablet)}}@media (min-width: 992px){.tedi-separator--dotted:before,.tedi-separator--dotted-small:before{height:var(--separator-dotted-dot-lg-desktop)}}.tedi-separator--dotted:before,.tedi-separator--dotted-small:before{width:var(--separator-dotted-dot-lg-mobile)}@media (min-width: 576px){.tedi-separator--dotted:before,.tedi-separator--dotted-small:before{width:var(--separator-dotted-dot-lg-tablet)}}@media (min-width: 992px){.tedi-separator--dotted:before,.tedi-separator--dotted-small:before{width:var(--separator-dotted-dot-lg-desktop)}}.tedi-separator--dotted.tedi-separator--secondary:before,.tedi-separator--dotted-small.tedi-separator--secondary:before{background-color:var(--general-border-secondary)}.tedi-separator--dotted.tedi-separator--accent:before,.tedi-separator--dotted-small.tedi-separator--accent:before{background-color:var(--general-border-accent)}.tedi-separator--dotted-small:before{top:1.5rem;transform:translate(-5px)}.tedi-separator--dotted-small:before{height:var(--separator-dotted-dot-md-mobile)}@media (min-width: 576px){.tedi-separator--dotted-small:before{height:var(--separator-dotted-dot-md-tablet)}}@media (min-width: 992px){.tedi-separator--dotted-small:before{height:var(--separator-dotted-dot-md-desktop)}}.tedi-separator--dotted-small:before{width:var(--separator-dotted-dot-md-mobile)}@media (min-width: 576px){.tedi-separator--dotted-small:before{width:var(--separator-dotted-dot-md-tablet)}}@media (min-width: 992px){.tedi-separator--dotted-small:before{width:var(--separator-dotted-dot-md-desktop)}}.tedi-separator--horizontal.tedi-separator--top-0{margin-top:0}.tedi-separator--horizontal.tedi-separator--bottom-0{margin-bottom:0}.tedi-separator--vertical.tedi-separator--left-0{margin-left:0}.tedi-separator--vertical.tedi-separator--right-0{margin-right:0}.tedi-separator--horizontal.tedi-separator--spacing-0:not(.tedi-separator--dot-only){margin-top:0;margin-bottom:0}.tedi-separator--horizontal.tedi-separator--dot-only.tedi-separator--spacing-0,.tedi-separator--vertical.tedi-separator--spacing-0{margin-right:0;margin-left:0}.tedi-separator--horizontal.tedi-separator--top-0-25{margin-top:.25rem}.tedi-separator--horizontal.tedi-separator--bottom-0-25{margin-bottom:.25rem}.tedi-separator--vertical.tedi-separator--left-0-25{margin-left:.25rem}.tedi-separator--vertical.tedi-separator--right-0-25{margin-right:.25rem}.tedi-separator--horizontal.tedi-separator--spacing-0-25:not(.tedi-separator--dot-only){margin-top:.25rem;margin-bottom:.25rem}.tedi-separator--horizontal.tedi-separator--dot-only.tedi-separator--spacing-0-25,.tedi-separator--vertical.tedi-separator--spacing-0-25{margin-right:.25rem;margin-left:.25rem}.tedi-separator--horizontal.tedi-separator--top-0-5{margin-top:.5rem}.tedi-separator--horizontal.tedi-separator--bottom-0-5{margin-bottom:.5rem}.tedi-separator--vertical.tedi-separator--left-0-5{margin-left:.5rem}.tedi-separator--vertical.tedi-separator--right-0-5{margin-right:.5rem}.tedi-separator--horizontal.tedi-separator--spacing-0-5:not(.tedi-separator--dot-only){margin-top:.5rem;margin-bottom:.5rem}.tedi-separator--horizontal.tedi-separator--dot-only.tedi-separator--spacing-0-5,.tedi-separator--vertical.tedi-separator--spacing-0-5{margin-right:.5rem;margin-left:.5rem}.tedi-separator--horizontal.tedi-separator--top-0-75{margin-top:.75rem}.tedi-separator--horizontal.tedi-separator--bottom-0-75{margin-bottom:.75rem}.tedi-separator--vertical.tedi-separator--left-0-75{margin-left:.75rem}.tedi-separator--vertical.tedi-separator--right-0-75{margin-right:.75rem}.tedi-separator--horizontal.tedi-separator--spacing-0-75:not(.tedi-separator--dot-only){margin-top:.75rem;margin-bottom:.75rem}.tedi-separator--horizontal.tedi-separator--dot-only.tedi-separator--spacing-0-75,.tedi-separator--vertical.tedi-separator--spacing-0-75{margin-right:.75rem;margin-left:.75rem}.tedi-separator--horizontal.tedi-separator--top-1{margin-top:1rem}.tedi-separator--horizontal.tedi-separator--bottom-1{margin-bottom:1rem}.tedi-separator--vertical.tedi-separator--left-1{margin-left:1rem}.tedi-separator--vertical.tedi-separator--right-1{margin-right:1rem}.tedi-separator--horizontal.tedi-separator--spacing-1:not(.tedi-separator--dot-only){margin-top:1rem;margin-bottom:1rem}.tedi-separator--horizontal.tedi-separator--dot-only.tedi-separator--spacing-1,.tedi-separator--vertical.tedi-separator--spacing-1{margin-right:1rem;margin-left:1rem}.tedi-separator--horizontal.tedi-separator--top-1-25{margin-top:1.25rem}.tedi-separator--horizontal.tedi-separator--bottom-1-25{margin-bottom:1.25rem}.tedi-separator--vertical.tedi-separator--left-1-25{margin-left:1.25rem}.tedi-separator--vertical.tedi-separator--right-1-25{margin-right:1.25rem}.tedi-separator--horizontal.tedi-separator--spacing-1-25:not(.tedi-separator--dot-only){margin-top:1.25rem;margin-bottom:1.25rem}.tedi-separator--horizontal.tedi-separator--dot-only.tedi-separator--spacing-1-25,.tedi-separator--vertical.tedi-separator--spacing-1-25{margin-right:1.25rem;margin-left:1.25rem}.tedi-separator--horizontal.tedi-separator--top-1-5{margin-top:1.5rem}.tedi-separator--horizontal.tedi-separator--bottom-1-5{margin-bottom:1.5rem}.tedi-separator--vertical.tedi-separator--left-1-5{margin-left:1.5rem}.tedi-separator--vertical.tedi-separator--right-1-5{margin-right:1.5rem}.tedi-separator--horizontal.tedi-separator--spacing-1-5:not(.tedi-separator--dot-only){margin-top:1.5rem;margin-bottom:1.5rem}.tedi-separator--horizontal.tedi-separator--dot-only.tedi-separator--spacing-1-5,.tedi-separator--vertical.tedi-separator--spacing-1-5{margin-right:1.5rem;margin-left:1.5rem}.tedi-separator--horizontal.tedi-separator--top-1-75{margin-top:1.75rem}.tedi-separator--horizontal.tedi-separator--bottom-1-75{margin-bottom:1.75rem}.tedi-separator--vertical.tedi-separator--left-1-75{margin-left:1.75rem}.tedi-separator--vertical.tedi-separator--right-1-75{margin-right:1.75rem}.tedi-separator--horizontal.tedi-separator--spacing-1-75:not(.tedi-separator--dot-only){margin-top:1.75rem;margin-bottom:1.75rem}.tedi-separator--horizontal.tedi-separator--dot-only.tedi-separator--spacing-1-75,.tedi-separator--vertical.tedi-separator--spacing-1-75{margin-right:1.75rem;margin-left:1.75rem}.tedi-separator--horizontal.tedi-separator--top-2{margin-top:2rem}.tedi-separator--horizontal.tedi-separator--bottom-2{margin-bottom:2rem}.tedi-separator--vertical.tedi-separator--left-2{margin-left:2rem}.tedi-separator--vertical.tedi-separator--right-2{margin-right:2rem}.tedi-separator--horizontal.tedi-separator--spacing-2:not(.tedi-separator--dot-only){margin-top:2rem;margin-bottom:2rem}.tedi-separator--horizontal.tedi-separator--dot-only.tedi-separator--spacing-2,.tedi-separator--vertical.tedi-separator--spacing-2{margin-right:2rem;margin-left:2rem}.tedi-separator--horizontal.tedi-separator--top-2-5{margin-top:2.5rem}.tedi-separator--horizontal.tedi-separator--bottom-2-5{margin-bottom:2.5rem}.tedi-separator--vertical.tedi-separator--left-2-5{margin-left:2.5rem}.tedi-separator--vertical.tedi-separator--right-2-5{margin-right:2.5rem}.tedi-separator--horizontal.tedi-separator--spacing-2-5:not(.tedi-separator--dot-only){margin-top:2.5rem;margin-bottom:2.5rem}.tedi-separator--horizontal.tedi-separator--dot-only.tedi-separator--spacing-2-5,.tedi-separator--vertical.tedi-separator--spacing-2-5{margin-right:2.5rem;margin-left:2.5rem}.tedi-separator--horizontal.tedi-separator--top-5{margin-top:5rem}.tedi-separator--horizontal.tedi-separator--bottom-5{margin-bottom:5rem}.tedi-separator--vertical.tedi-separator--left-5{margin-left:5rem}.tedi-separator--vertical.tedi-separator--right-5{margin-right:5rem}.tedi-separator--horizontal.tedi-separator--spacing-5:not(.tedi-separator--dot-only){margin-top:5rem;margin-bottom:5rem}.tedi-separator--horizontal.tedi-separator--dot-only.tedi-separator--spacing-5,.tedi-separator--vertical.tedi-separator--spacing-5{margin-right:5rem;margin-left:5rem}.tedi-separator.tedi-separator--thickness-1{border-top-width:1px}.tedi-separator--vertical.tedi-separator--thickness-1{border-left-width:1px}.tedi-separator.tedi-separator--thickness-2{border-top-width:2px}.tedi-separator--vertical.tedi-separator--thickness-2{border-left-width:2px}.tedi-separator--dot-only{position:relative;display:inline-block;vertical-align:middle;border:none}.tedi-separator--dot-only:before{position:relative;display:block;content:\"\";border-radius:100%}@media print{.tedi-separator--dot-only:before{filter:grayscale(1)}}.tedi-separator--dot-only:before{height:var(--separator-dotted-dot-sm-mobile)}@media (min-width: 576px){.tedi-separator--dot-only:before{height:var(--separator-dotted-dot-sm-tablet)}}@media (min-width: 992px){.tedi-separator--dot-only:before{height:var(--separator-dotted-dot-sm-desktop)}}.tedi-separator--dot-only:before{width:var(--separator-dotted-dot-sm-mobile)}@media (min-width: 576px){.tedi-separator--dot-only:before{width:var(--separator-dotted-dot-sm-tablet)}}@media (min-width: 992px){.tedi-separator--dot-only:before{width:var(--separator-dotted-dot-sm-desktop)}}.tedi-separator--dot-only.tedi-separator--dot-only-extra-small:before{width:var(--separator-dotted-dot-xs-mobile)}@media (min-width: 576px){.tedi-separator--dot-only.tedi-separator--dot-only-extra-small:before{width:var(--separator-dotted-dot-xs-tablet)}}@media (min-width: 992px){.tedi-separator--dot-only.tedi-separator--dot-only-extra-small:before{width:var(--separator-dotted-dot-xs-desktop)}}.tedi-separator--dot-only.tedi-separator--dot-only-extra-small:before{height:var(--separator-dotted-dot-xs-mobile)}@media (min-width: 576px){.tedi-separator--dot-only.tedi-separator--dot-only-extra-small:before{height:var(--separator-dotted-dot-xs-tablet)}}@media (min-width: 992px){.tedi-separator--dot-only.tedi-separator--dot-only-extra-small:before{height:var(--separator-dotted-dot-xs-desktop)}}.tedi-separator--dot-only.tedi-separator--dot-only-small:before{width:var(--separator-dotted-dot-sm-mobile)}@media (min-width: 576px){.tedi-separator--dot-only.tedi-separator--dot-only-small:before{width:var(--separator-dotted-dot-sm-tablet)}}@media (min-width: 992px){.tedi-separator--dot-only.tedi-separator--dot-only-small:before{width:var(--separator-dotted-dot-sm-desktop)}}.tedi-separator--dot-only.tedi-separator--dot-only-small:before{height:var(--separator-dotted-dot-sm-mobile)}@media (min-width: 576px){.tedi-separator--dot-only.tedi-separator--dot-only-small:before{height:var(--separator-dotted-dot-sm-tablet)}}@media (min-width: 992px){.tedi-separator--dot-only.tedi-separator--dot-only-small:before{height:var(--separator-dotted-dot-sm-desktop)}}.tedi-separator--dot-only.tedi-separator--dot-only-medium:before{width:var(--separator-dotted-dot-md-mobile)}@media (min-width: 576px){.tedi-separator--dot-only.tedi-separator--dot-only-medium:before{width:var(--separator-dotted-dot-md-tablet)}}@media (min-width: 992px){.tedi-separator--dot-only.tedi-separator--dot-only-medium:before{width:var(--separator-dotted-dot-md-desktop)}}.tedi-separator--dot-only.tedi-separator--dot-only-medium:before{height:var(--separator-dotted-dot-md-mobile)}@media (min-width: 576px){.tedi-separator--dot-only.tedi-separator--dot-only-medium:before{height:var(--separator-dotted-dot-md-tablet)}}@media (min-width: 992px){.tedi-separator--dot-only.tedi-separator--dot-only-medium:before{height:var(--separator-dotted-dot-md-desktop)}}.tedi-separator--dot-only.tedi-separator--dot-only-large:before{width:var(--separator-dotted-dot-lg-mobile)}@media (min-width: 576px){.tedi-separator--dot-only.tedi-separator--dot-only-large:before{width:var(--separator-dotted-dot-lg-tablet)}}@media (min-width: 992px){.tedi-separator--dot-only.tedi-separator--dot-only-large:before{width:var(--separator-dotted-dot-lg-desktop)}}.tedi-separator--dot-only.tedi-separator--dot-only-large:before{height:var(--separator-dotted-dot-lg-mobile)}@media (min-width: 576px){.tedi-separator--dot-only.tedi-separator--dot-only-large:before{height:var(--separator-dotted-dot-lg-tablet)}}@media (min-width: 992px){.tedi-separator--dot-only.tedi-separator--dot-only-large:before{height:var(--separator-dotted-dot-lg-desktop)}}.tedi-separator--dot-only-filled.tedi-separator--primary:before{background-color:var(--general-border-primary)}.tedi-separator--dot-only-filled.tedi-separator--secondary:before{background-color:var(--general-border-secondary)}.tedi-separator--dot-only-filled.tedi-separator--accent:before{background-color:var(--general-border-accent)}.tedi-separator--dot-only-outlined:before{border-style:solid}.tedi-separator--dot-only-outlined.tedi-separator--primary:before{border-color:var(--general-border-primary)}.tedi-separator--dot-only-outlined.tedi-separator--secondary:before{border-color:var(--general-border-secondary)}.tedi-separator--dot-only-outlined.tedi-separator--accent:before{border-color:var(--general-border-accent)}.tedi-separator--dot-only-outlined.tedi-separator--thickness-1:before{border-width:1px}.tedi-separator--dot-only-outlined.tedi-separator--thickness-2:before{border-width:2px}.tedi-separator--horizontal.tedi-separator--dotted:before,.tedi-separator--horizontal.tedi-separator--dotted-small:before{right:0;left:0;margin:0 auto;transform:initial}.tedi-separator--horizontal.tedi-separator--dotted:before{top:calc(var(--_top-dotted) / 2 * -1)}.tedi-separator--horizontal.tedi-separator--dotted:before{--_top-dotted: var(--separator-dotted-dot-lg-mobile)}@media (min-width: 576px){.tedi-separator--horizontal.tedi-separator--dotted:before{--_top-dotted: var(--separator-dotted-dot-lg-tablet)}}@media (min-width: 992px){.tedi-separator--horizontal.tedi-separator--dotted:before{--_top-dotted: var(--separator-dotted-dot-lg-desktop)}}.tedi-separator--horizontal.tedi-separator--dotted-small:before{top:calc(var(--_top-dotted-small) / 2 * -1)}.tedi-separator--horizontal.tedi-separator--dotted-small:before{--_top-dotted-small: var(--separator-dotted-dot-md-mobile)}@media (min-width: 576px){.tedi-separator--horizontal.tedi-separator--dotted-small:before{--_top-dotted-small: var(--separator-dotted-dot-md-tablet)}}@media (min-width: 992px){.tedi-separator--horizontal.tedi-separator--dotted-small:before{--_top-dotted-small: var(--separator-dotted-dot-md-desktop)}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2459
|
+
}
|
|
2460
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: SeparatorComponent, decorators: [{
|
|
2461
|
+
type: Component,
|
|
2462
|
+
args: [{ selector: "tedi-separator", template: "", encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
2463
|
+
"[class]": "classes()",
|
|
2464
|
+
"[style.width]": "variant() === 'dot-only' ? null : axis() === 'horizontal' ? size() : '0px'",
|
|
2465
|
+
"[style.height]": "variant() === 'dot-only' ? null : axis() === 'vertical' ? size() : '0px'",
|
|
2466
|
+
}, styles: [".tedi-separator{display:block;position:relative;margin:0;border:0;border-top-width:1px;border-style:solid}@media print{.tedi-separator{filter:grayscale(1)}}.tedi-separator--vertical{border-top-width:0;border-left-width:1px}.tedi-separator--primary{border-color:var(--general-border-primary)}.tedi-separator--secondary{border-color:var(--general-border-secondary)}.tedi-separator--accent{border-color:var(--general-border-accent)}.tedi-separator--block{display:block}.tedi-separator--inline{display:inline}.tedi-separator--dotted:before,.tedi-separator--dotted-small:before{position:absolute;top:1.25rem;content:\"\";background-color:var(--general-border-primary);border-radius:100%;transform:translate(-8px)}@media print{.tedi-separator--dotted:before,.tedi-separator--dotted-small:before{filter:grayscale(1)}}.tedi-separator--dotted:before,.tedi-separator--dotted-small:before{height:var(--separator-dotted-dot-lg-mobile)}@media (min-width: 576px){.tedi-separator--dotted:before,.tedi-separator--dotted-small:before{height:var(--separator-dotted-dot-lg-tablet)}}@media (min-width: 992px){.tedi-separator--dotted:before,.tedi-separator--dotted-small:before{height:var(--separator-dotted-dot-lg-desktop)}}.tedi-separator--dotted:before,.tedi-separator--dotted-small:before{width:var(--separator-dotted-dot-lg-mobile)}@media (min-width: 576px){.tedi-separator--dotted:before,.tedi-separator--dotted-small:before{width:var(--separator-dotted-dot-lg-tablet)}}@media (min-width: 992px){.tedi-separator--dotted:before,.tedi-separator--dotted-small:before{width:var(--separator-dotted-dot-lg-desktop)}}.tedi-separator--dotted.tedi-separator--secondary:before,.tedi-separator--dotted-small.tedi-separator--secondary:before{background-color:var(--general-border-secondary)}.tedi-separator--dotted.tedi-separator--accent:before,.tedi-separator--dotted-small.tedi-separator--accent:before{background-color:var(--general-border-accent)}.tedi-separator--dotted-small:before{top:1.5rem;transform:translate(-5px)}.tedi-separator--dotted-small:before{height:var(--separator-dotted-dot-md-mobile)}@media (min-width: 576px){.tedi-separator--dotted-small:before{height:var(--separator-dotted-dot-md-tablet)}}@media (min-width: 992px){.tedi-separator--dotted-small:before{height:var(--separator-dotted-dot-md-desktop)}}.tedi-separator--dotted-small:before{width:var(--separator-dotted-dot-md-mobile)}@media (min-width: 576px){.tedi-separator--dotted-small:before{width:var(--separator-dotted-dot-md-tablet)}}@media (min-width: 992px){.tedi-separator--dotted-small:before{width:var(--separator-dotted-dot-md-desktop)}}.tedi-separator--horizontal.tedi-separator--top-0{margin-top:0}.tedi-separator--horizontal.tedi-separator--bottom-0{margin-bottom:0}.tedi-separator--vertical.tedi-separator--left-0{margin-left:0}.tedi-separator--vertical.tedi-separator--right-0{margin-right:0}.tedi-separator--horizontal.tedi-separator--spacing-0:not(.tedi-separator--dot-only){margin-top:0;margin-bottom:0}.tedi-separator--horizontal.tedi-separator--dot-only.tedi-separator--spacing-0,.tedi-separator--vertical.tedi-separator--spacing-0{margin-right:0;margin-left:0}.tedi-separator--horizontal.tedi-separator--top-0-25{margin-top:.25rem}.tedi-separator--horizontal.tedi-separator--bottom-0-25{margin-bottom:.25rem}.tedi-separator--vertical.tedi-separator--left-0-25{margin-left:.25rem}.tedi-separator--vertical.tedi-separator--right-0-25{margin-right:.25rem}.tedi-separator--horizontal.tedi-separator--spacing-0-25:not(.tedi-separator--dot-only){margin-top:.25rem;margin-bottom:.25rem}.tedi-separator--horizontal.tedi-separator--dot-only.tedi-separator--spacing-0-25,.tedi-separator--vertical.tedi-separator--spacing-0-25{margin-right:.25rem;margin-left:.25rem}.tedi-separator--horizontal.tedi-separator--top-0-5{margin-top:.5rem}.tedi-separator--horizontal.tedi-separator--bottom-0-5{margin-bottom:.5rem}.tedi-separator--vertical.tedi-separator--left-0-5{margin-left:.5rem}.tedi-separator--vertical.tedi-separator--right-0-5{margin-right:.5rem}.tedi-separator--horizontal.tedi-separator--spacing-0-5:not(.tedi-separator--dot-only){margin-top:.5rem;margin-bottom:.5rem}.tedi-separator--horizontal.tedi-separator--dot-only.tedi-separator--spacing-0-5,.tedi-separator--vertical.tedi-separator--spacing-0-5{margin-right:.5rem;margin-left:.5rem}.tedi-separator--horizontal.tedi-separator--top-0-75{margin-top:.75rem}.tedi-separator--horizontal.tedi-separator--bottom-0-75{margin-bottom:.75rem}.tedi-separator--vertical.tedi-separator--left-0-75{margin-left:.75rem}.tedi-separator--vertical.tedi-separator--right-0-75{margin-right:.75rem}.tedi-separator--horizontal.tedi-separator--spacing-0-75:not(.tedi-separator--dot-only){margin-top:.75rem;margin-bottom:.75rem}.tedi-separator--horizontal.tedi-separator--dot-only.tedi-separator--spacing-0-75,.tedi-separator--vertical.tedi-separator--spacing-0-75{margin-right:.75rem;margin-left:.75rem}.tedi-separator--horizontal.tedi-separator--top-1{margin-top:1rem}.tedi-separator--horizontal.tedi-separator--bottom-1{margin-bottom:1rem}.tedi-separator--vertical.tedi-separator--left-1{margin-left:1rem}.tedi-separator--vertical.tedi-separator--right-1{margin-right:1rem}.tedi-separator--horizontal.tedi-separator--spacing-1:not(.tedi-separator--dot-only){margin-top:1rem;margin-bottom:1rem}.tedi-separator--horizontal.tedi-separator--dot-only.tedi-separator--spacing-1,.tedi-separator--vertical.tedi-separator--spacing-1{margin-right:1rem;margin-left:1rem}.tedi-separator--horizontal.tedi-separator--top-1-25{margin-top:1.25rem}.tedi-separator--horizontal.tedi-separator--bottom-1-25{margin-bottom:1.25rem}.tedi-separator--vertical.tedi-separator--left-1-25{margin-left:1.25rem}.tedi-separator--vertical.tedi-separator--right-1-25{margin-right:1.25rem}.tedi-separator--horizontal.tedi-separator--spacing-1-25:not(.tedi-separator--dot-only){margin-top:1.25rem;margin-bottom:1.25rem}.tedi-separator--horizontal.tedi-separator--dot-only.tedi-separator--spacing-1-25,.tedi-separator--vertical.tedi-separator--spacing-1-25{margin-right:1.25rem;margin-left:1.25rem}.tedi-separator--horizontal.tedi-separator--top-1-5{margin-top:1.5rem}.tedi-separator--horizontal.tedi-separator--bottom-1-5{margin-bottom:1.5rem}.tedi-separator--vertical.tedi-separator--left-1-5{margin-left:1.5rem}.tedi-separator--vertical.tedi-separator--right-1-5{margin-right:1.5rem}.tedi-separator--horizontal.tedi-separator--spacing-1-5:not(.tedi-separator--dot-only){margin-top:1.5rem;margin-bottom:1.5rem}.tedi-separator--horizontal.tedi-separator--dot-only.tedi-separator--spacing-1-5,.tedi-separator--vertical.tedi-separator--spacing-1-5{margin-right:1.5rem;margin-left:1.5rem}.tedi-separator--horizontal.tedi-separator--top-1-75{margin-top:1.75rem}.tedi-separator--horizontal.tedi-separator--bottom-1-75{margin-bottom:1.75rem}.tedi-separator--vertical.tedi-separator--left-1-75{margin-left:1.75rem}.tedi-separator--vertical.tedi-separator--right-1-75{margin-right:1.75rem}.tedi-separator--horizontal.tedi-separator--spacing-1-75:not(.tedi-separator--dot-only){margin-top:1.75rem;margin-bottom:1.75rem}.tedi-separator--horizontal.tedi-separator--dot-only.tedi-separator--spacing-1-75,.tedi-separator--vertical.tedi-separator--spacing-1-75{margin-right:1.75rem;margin-left:1.75rem}.tedi-separator--horizontal.tedi-separator--top-2{margin-top:2rem}.tedi-separator--horizontal.tedi-separator--bottom-2{margin-bottom:2rem}.tedi-separator--vertical.tedi-separator--left-2{margin-left:2rem}.tedi-separator--vertical.tedi-separator--right-2{margin-right:2rem}.tedi-separator--horizontal.tedi-separator--spacing-2:not(.tedi-separator--dot-only){margin-top:2rem;margin-bottom:2rem}.tedi-separator--horizontal.tedi-separator--dot-only.tedi-separator--spacing-2,.tedi-separator--vertical.tedi-separator--spacing-2{margin-right:2rem;margin-left:2rem}.tedi-separator--horizontal.tedi-separator--top-2-5{margin-top:2.5rem}.tedi-separator--horizontal.tedi-separator--bottom-2-5{margin-bottom:2.5rem}.tedi-separator--vertical.tedi-separator--left-2-5{margin-left:2.5rem}.tedi-separator--vertical.tedi-separator--right-2-5{margin-right:2.5rem}.tedi-separator--horizontal.tedi-separator--spacing-2-5:not(.tedi-separator--dot-only){margin-top:2.5rem;margin-bottom:2.5rem}.tedi-separator--horizontal.tedi-separator--dot-only.tedi-separator--spacing-2-5,.tedi-separator--vertical.tedi-separator--spacing-2-5{margin-right:2.5rem;margin-left:2.5rem}.tedi-separator--horizontal.tedi-separator--top-5{margin-top:5rem}.tedi-separator--horizontal.tedi-separator--bottom-5{margin-bottom:5rem}.tedi-separator--vertical.tedi-separator--left-5{margin-left:5rem}.tedi-separator--vertical.tedi-separator--right-5{margin-right:5rem}.tedi-separator--horizontal.tedi-separator--spacing-5:not(.tedi-separator--dot-only){margin-top:5rem;margin-bottom:5rem}.tedi-separator--horizontal.tedi-separator--dot-only.tedi-separator--spacing-5,.tedi-separator--vertical.tedi-separator--spacing-5{margin-right:5rem;margin-left:5rem}.tedi-separator.tedi-separator--thickness-1{border-top-width:1px}.tedi-separator--vertical.tedi-separator--thickness-1{border-left-width:1px}.tedi-separator.tedi-separator--thickness-2{border-top-width:2px}.tedi-separator--vertical.tedi-separator--thickness-2{border-left-width:2px}.tedi-separator--dot-only{position:relative;display:inline-block;vertical-align:middle;border:none}.tedi-separator--dot-only:before{position:relative;display:block;content:\"\";border-radius:100%}@media print{.tedi-separator--dot-only:before{filter:grayscale(1)}}.tedi-separator--dot-only:before{height:var(--separator-dotted-dot-sm-mobile)}@media (min-width: 576px){.tedi-separator--dot-only:before{height:var(--separator-dotted-dot-sm-tablet)}}@media (min-width: 992px){.tedi-separator--dot-only:before{height:var(--separator-dotted-dot-sm-desktop)}}.tedi-separator--dot-only:before{width:var(--separator-dotted-dot-sm-mobile)}@media (min-width: 576px){.tedi-separator--dot-only:before{width:var(--separator-dotted-dot-sm-tablet)}}@media (min-width: 992px){.tedi-separator--dot-only:before{width:var(--separator-dotted-dot-sm-desktop)}}.tedi-separator--dot-only.tedi-separator--dot-only-extra-small:before{width:var(--separator-dotted-dot-xs-mobile)}@media (min-width: 576px){.tedi-separator--dot-only.tedi-separator--dot-only-extra-small:before{width:var(--separator-dotted-dot-xs-tablet)}}@media (min-width: 992px){.tedi-separator--dot-only.tedi-separator--dot-only-extra-small:before{width:var(--separator-dotted-dot-xs-desktop)}}.tedi-separator--dot-only.tedi-separator--dot-only-extra-small:before{height:var(--separator-dotted-dot-xs-mobile)}@media (min-width: 576px){.tedi-separator--dot-only.tedi-separator--dot-only-extra-small:before{height:var(--separator-dotted-dot-xs-tablet)}}@media (min-width: 992px){.tedi-separator--dot-only.tedi-separator--dot-only-extra-small:before{height:var(--separator-dotted-dot-xs-desktop)}}.tedi-separator--dot-only.tedi-separator--dot-only-small:before{width:var(--separator-dotted-dot-sm-mobile)}@media (min-width: 576px){.tedi-separator--dot-only.tedi-separator--dot-only-small:before{width:var(--separator-dotted-dot-sm-tablet)}}@media (min-width: 992px){.tedi-separator--dot-only.tedi-separator--dot-only-small:before{width:var(--separator-dotted-dot-sm-desktop)}}.tedi-separator--dot-only.tedi-separator--dot-only-small:before{height:var(--separator-dotted-dot-sm-mobile)}@media (min-width: 576px){.tedi-separator--dot-only.tedi-separator--dot-only-small:before{height:var(--separator-dotted-dot-sm-tablet)}}@media (min-width: 992px){.tedi-separator--dot-only.tedi-separator--dot-only-small:before{height:var(--separator-dotted-dot-sm-desktop)}}.tedi-separator--dot-only.tedi-separator--dot-only-medium:before{width:var(--separator-dotted-dot-md-mobile)}@media (min-width: 576px){.tedi-separator--dot-only.tedi-separator--dot-only-medium:before{width:var(--separator-dotted-dot-md-tablet)}}@media (min-width: 992px){.tedi-separator--dot-only.tedi-separator--dot-only-medium:before{width:var(--separator-dotted-dot-md-desktop)}}.tedi-separator--dot-only.tedi-separator--dot-only-medium:before{height:var(--separator-dotted-dot-md-mobile)}@media (min-width: 576px){.tedi-separator--dot-only.tedi-separator--dot-only-medium:before{height:var(--separator-dotted-dot-md-tablet)}}@media (min-width: 992px){.tedi-separator--dot-only.tedi-separator--dot-only-medium:before{height:var(--separator-dotted-dot-md-desktop)}}.tedi-separator--dot-only.tedi-separator--dot-only-large:before{width:var(--separator-dotted-dot-lg-mobile)}@media (min-width: 576px){.tedi-separator--dot-only.tedi-separator--dot-only-large:before{width:var(--separator-dotted-dot-lg-tablet)}}@media (min-width: 992px){.tedi-separator--dot-only.tedi-separator--dot-only-large:before{width:var(--separator-dotted-dot-lg-desktop)}}.tedi-separator--dot-only.tedi-separator--dot-only-large:before{height:var(--separator-dotted-dot-lg-mobile)}@media (min-width: 576px){.tedi-separator--dot-only.tedi-separator--dot-only-large:before{height:var(--separator-dotted-dot-lg-tablet)}}@media (min-width: 992px){.tedi-separator--dot-only.tedi-separator--dot-only-large:before{height:var(--separator-dotted-dot-lg-desktop)}}.tedi-separator--dot-only-filled.tedi-separator--primary:before{background-color:var(--general-border-primary)}.tedi-separator--dot-only-filled.tedi-separator--secondary:before{background-color:var(--general-border-secondary)}.tedi-separator--dot-only-filled.tedi-separator--accent:before{background-color:var(--general-border-accent)}.tedi-separator--dot-only-outlined:before{border-style:solid}.tedi-separator--dot-only-outlined.tedi-separator--primary:before{border-color:var(--general-border-primary)}.tedi-separator--dot-only-outlined.tedi-separator--secondary:before{border-color:var(--general-border-secondary)}.tedi-separator--dot-only-outlined.tedi-separator--accent:before{border-color:var(--general-border-accent)}.tedi-separator--dot-only-outlined.tedi-separator--thickness-1:before{border-width:1px}.tedi-separator--dot-only-outlined.tedi-separator--thickness-2:before{border-width:2px}.tedi-separator--horizontal.tedi-separator--dotted:before,.tedi-separator--horizontal.tedi-separator--dotted-small:before{right:0;left:0;margin:0 auto;transform:initial}.tedi-separator--horizontal.tedi-separator--dotted:before{top:calc(var(--_top-dotted) / 2 * -1)}.tedi-separator--horizontal.tedi-separator--dotted:before{--_top-dotted: var(--separator-dotted-dot-lg-mobile)}@media (min-width: 576px){.tedi-separator--horizontal.tedi-separator--dotted:before{--_top-dotted: var(--separator-dotted-dot-lg-tablet)}}@media (min-width: 992px){.tedi-separator--horizontal.tedi-separator--dotted:before{--_top-dotted: var(--separator-dotted-dot-lg-desktop)}}.tedi-separator--horizontal.tedi-separator--dotted-small:before{top:calc(var(--_top-dotted-small) / 2 * -1)}.tedi-separator--horizontal.tedi-separator--dotted-small:before{--_top-dotted-small: var(--separator-dotted-dot-md-mobile)}@media (min-width: 576px){.tedi-separator--horizontal.tedi-separator--dotted-small:before{--_top-dotted-small: var(--separator-dotted-dot-md-tablet)}}@media (min-width: 992px){.tedi-separator--horizontal.tedi-separator--dotted-small:before{--_top-dotted-small: var(--separator-dotted-dot-md-desktop)}}\n"] }]
|
|
2467
|
+
}] });
|
|
2468
|
+
|
|
2469
|
+
class PopoverComponent {
|
|
2470
|
+
/**
|
|
2471
|
+
* * The trigger event that opens the popover.
|
|
2472
|
+
* * @default click
|
|
2473
|
+
* */
|
|
2474
|
+
openWith = input("click");
|
|
2475
|
+
/**
|
|
2476
|
+
* The position of the popover relative to the trigger element.
|
|
2477
|
+
* @default top
|
|
2478
|
+
*/
|
|
2479
|
+
position = input("top");
|
|
2480
|
+
/**
|
|
2481
|
+
* Is dismissible by clicking outside of content?
|
|
2482
|
+
* @default true
|
|
2483
|
+
*/
|
|
2484
|
+
dismissible = input(true);
|
|
2485
|
+
/**
|
|
2486
|
+
* Does popover content hide on scroll?
|
|
2487
|
+
* @default false
|
|
2488
|
+
*/
|
|
2489
|
+
hideOnScroll = input(false);
|
|
2490
|
+
/**
|
|
2491
|
+
* Does popover have illustrative border on the arrow side?
|
|
2492
|
+
* @default false
|
|
2493
|
+
*/
|
|
2494
|
+
withBorder = input(false);
|
|
2495
|
+
/**
|
|
2496
|
+
* Should show arrow?
|
|
2497
|
+
*/
|
|
2498
|
+
withArrow = input(true);
|
|
2499
|
+
/**
|
|
2500
|
+
* Lock scrolling on rest of the page?
|
|
2501
|
+
* @default false
|
|
2502
|
+
*/
|
|
2503
|
+
lockScroll = input(false);
|
|
2504
|
+
floatUiComponent = viewChild.required(NgxFloatUiContentComponent);
|
|
2505
|
+
document = inject(DOCUMENT);
|
|
2506
|
+
renderer = inject(Renderer2);
|
|
2507
|
+
onHide() {
|
|
2508
|
+
if (this.lockScroll()) {
|
|
2509
|
+
this.renderer.removeStyle(this.document.body, "overflow");
|
|
2510
|
+
}
|
|
2511
|
+
}
|
|
2512
|
+
onOpen() {
|
|
2513
|
+
if (this.lockScroll()) {
|
|
2514
|
+
this.renderer.setStyle(this.document.body, "overflow", "hidden");
|
|
2515
|
+
}
|
|
2516
|
+
}
|
|
2517
|
+
floatUiContainerClass = computed(() => {
|
|
2518
|
+
const classList = ["float-ui-container-popover"];
|
|
2519
|
+
if (this.withBorder()) {
|
|
2520
|
+
classList.push("float-ui-container-popover--border");
|
|
2521
|
+
}
|
|
2522
|
+
if (this.withArrow()) {
|
|
2523
|
+
classList.push("float-ui-container-popover--arrow");
|
|
2524
|
+
}
|
|
2525
|
+
return classList.join(",");
|
|
2526
|
+
});
|
|
2527
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: PopoverComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2528
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.15", type: PopoverComponent, isStandalone: true, selector: "tedi-popover", inputs: { openWith: { classPropertyName: "openWith", publicName: "openWith", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, dismissible: { classPropertyName: "dismissible", publicName: "dismissible", isSignal: true, isRequired: false, transformFunction: null }, hideOnScroll: { classPropertyName: "hideOnScroll", publicName: "hideOnScroll", isSignal: true, isRequired: false, transformFunction: null }, withBorder: { classPropertyName: "withBorder", publicName: "withBorder", isSignal: true, isRequired: false, transformFunction: null }, withArrow: { classPropertyName: "withArrow", publicName: "withArrow", isSignal: true, isRequired: false, transformFunction: null }, lockScroll: { classPropertyName: "lockScroll", publicName: "lockScroll", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "floatUiComponent", first: true, predicate: NgxFloatUiContentComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<div\n [floatUiLoose]=\"floatUiComponent\"\n [loosePlacement]=\"position()\"\n [looseTrigger]=\"openWith()\"\n [hideOnClickOutside]=\"dismissible()\"\n [hideOnScroll]=\"hideOnScroll()\"\n [applyClass]=\"floatUiContainerClass()\"\n [disableAnimation]=\"true\"\n appendTo=\"body\"\n aria-haspopup=\"dialog\"\n style=\"display: inline-flex\"\n (onHidden)=\"onHide()\"\n (onShown)=\"onOpen()\"\n>\n <ng-content select=\"tedi-popover-trigger\" />\n</div>\n<float-ui-content #floatUiComponent>\n <ng-content select=\"tedi-popover-content\" />\n</float-ui-content>\n", styles: ["tedi-popover{display:block}tedi-popover-trigger{display:inline-flex;cursor:pointer}float-ui-content .float-ui-container-popover{padding:0;border:var(--borders-01) solid var(--popover-border);border-radius:var(--popover-radius-rounded);box-shadow:0 1px 5px 0 var(--alpha-20, rgba(0, 0, 0, .2));z-index:var(--z-index-dropdown)}float-ui-content .float-ui-container-popover--arrow .float-ui-arrow{width:24px;height:24px;background:var(--popover-background);filter:drop-shadow(0 0 5px var(--alpha-20));clip-path:inset(0px -5px -5px 0px);z-index:var(--z-index-dropdown)}float-ui-content .float-ui-container-popover--border{border-radius:var(--popover-radius-rounded-mobile)}@media (min-width: 576px){float-ui-content .float-ui-container-popover--border{border-radius:var(--popover-radius-rounded-tablet)}}@media (min-width: 992px){float-ui-content .float-ui-container-popover--border{border-radius:var(--popover-radius-rounded-desktop)}}float-ui-content .float-ui-container-popover--border .float-ui-arrow{width:18px;height:18px;border-bottom:4px solid var(--header-popover-border-top);border-right:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=top]{border-bottom:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=top] .float-ui-arrow{bottom:-12px!important}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=bottom]{border-top:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=bottom] .float-ui-arrow{top:-12px!important}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=left]{border-right:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=left] .float-ui-arrow{right:-12px!important}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=right]{border-left:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=right] .float-ui-arrow{left:-12px!important}float-ui-content .float-ui-container-popover[data-float-ui-placement=top]{transform:translateY(-4px)}float-ui-content .float-ui-container-popover[data-float-ui-placement=bottom]{transform:translateY(4px)}float-ui-content .float-ui-container-popover[data-float-ui-placement=bottom] .float-ui-arrow{transform:rotate(-135deg)}float-ui-content .float-ui-container-popover[data-float-ui-placement=left]{transform:translate(-4px)}float-ui-content .float-ui-container-popover[data-float-ui-placement=left] .float-ui-arrow{transform:rotate(-45deg)}float-ui-content .float-ui-container-popover[data-float-ui-placement=right]{transform:translate(4px)}float-ui-content .float-ui-container-popover[data-float-ui-placement=right] .float-ui-arrow{transform:rotate(135deg)}.tedi-popover-trigger__text{text-decoration:underline dashed var(--general-border-secondary);text-underline-offset:.5em}.tedi-popover-content{position:relative;max-width:calc(100dvw - 1rem);display:flex;flex-direction:column;background:var(--popover-background);color:var(--popover-text);border-radius:var(--popover-radius-rounded)}.tedi-popover-content{gap:var(--layout-grid-gutters-08-mobile)}@media (min-width: 576px){.tedi-popover-content{gap:var(--layout-grid-gutters-08-tablet)}}@media (min-width: 992px){.tedi-popover-content{gap:var(--layout-grid-gutters-08-desktop)}}.tedi-popover-content{padding:var(--popover-padding-sm-mobile)}@media (min-width: 576px){.tedi-popover-content{padding:var(--popover-padding-sm-tablet)}}@media (min-width: 992px){.tedi-popover-content{padding:var(--popover-padding-sm-desktop)}}.tedi-popover-content--none{width:none}.tedi-popover-content--small{width:240px}.tedi-popover-content--medium{width:480px}.tedi-popover-content--large{width:840px}.tedi-popover-content__head{display:flex;justify-content:space-between}.tedi-popover-content__head{gap:var(--layout-grid-gutters-08-mobile)}@media (min-width: 576px){.tedi-popover-content__head{gap:var(--layout-grid-gutters-08-tablet)}}@media (min-width: 992px){.tedi-popover-content__head{gap:var(--layout-grid-gutters-08-desktop)}}.tedi-popover-content__head>div{display:flex;flex-direction:column;flex:1 1 0;min-width:0}.tedi-popover-content__head>div{gap:var(--layout-grid-gutters-08-mobile)}@media (min-width: 576px){.tedi-popover-content__head>div{gap:var(--layout-grid-gutters-08-tablet)}}@media (min-width: 992px){.tedi-popover-content__head>div{gap:var(--layout-grid-gutters-08-desktop)}}.tedi-popover-content__title{align-self:center}\n"], dependencies: [{ kind: "ngmodule", type: NgxFloatUiModule }, { kind: "component", type: i1$1.NgxFloatUiContentComponent, selector: "float-ui-content", exportAs: ["ngxFloatUiContent"] }, { kind: "directive", type: i1$1.NgxFloatUiLooseDirective, selector: "[floatUiLoose]", inputs: ["floatUiLoose", "loosePlacement", "looseTrigger"], exportAs: ["floatUiLoose"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2529
|
+
}
|
|
2530
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: PopoverComponent, decorators: [{
|
|
2531
|
+
type: Component,
|
|
2532
|
+
args: [{ standalone: true, selector: "tedi-popover", imports: [NgxFloatUiModule], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n [floatUiLoose]=\"floatUiComponent\"\n [loosePlacement]=\"position()\"\n [looseTrigger]=\"openWith()\"\n [hideOnClickOutside]=\"dismissible()\"\n [hideOnScroll]=\"hideOnScroll()\"\n [applyClass]=\"floatUiContainerClass()\"\n [disableAnimation]=\"true\"\n appendTo=\"body\"\n aria-haspopup=\"dialog\"\n style=\"display: inline-flex\"\n (onHidden)=\"onHide()\"\n (onShown)=\"onOpen()\"\n>\n <ng-content select=\"tedi-popover-trigger\" />\n</div>\n<float-ui-content #floatUiComponent>\n <ng-content select=\"tedi-popover-content\" />\n</float-ui-content>\n", styles: ["tedi-popover{display:block}tedi-popover-trigger{display:inline-flex;cursor:pointer}float-ui-content .float-ui-container-popover{padding:0;border:var(--borders-01) solid var(--popover-border);border-radius:var(--popover-radius-rounded);box-shadow:0 1px 5px 0 var(--alpha-20, rgba(0, 0, 0, .2));z-index:var(--z-index-dropdown)}float-ui-content .float-ui-container-popover--arrow .float-ui-arrow{width:24px;height:24px;background:var(--popover-background);filter:drop-shadow(0 0 5px var(--alpha-20));clip-path:inset(0px -5px -5px 0px);z-index:var(--z-index-dropdown)}float-ui-content .float-ui-container-popover--border{border-radius:var(--popover-radius-rounded-mobile)}@media (min-width: 576px){float-ui-content .float-ui-container-popover--border{border-radius:var(--popover-radius-rounded-tablet)}}@media (min-width: 992px){float-ui-content .float-ui-container-popover--border{border-radius:var(--popover-radius-rounded-desktop)}}float-ui-content .float-ui-container-popover--border .float-ui-arrow{width:18px;height:18px;border-bottom:4px solid var(--header-popover-border-top);border-right:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=top]{border-bottom:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=top] .float-ui-arrow{bottom:-12px!important}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=bottom]{border-top:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=bottom] .float-ui-arrow{top:-12px!important}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=left]{border-right:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=left] .float-ui-arrow{right:-12px!important}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=right]{border-left:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=right] .float-ui-arrow{left:-12px!important}float-ui-content .float-ui-container-popover[data-float-ui-placement=top]{transform:translateY(-4px)}float-ui-content .float-ui-container-popover[data-float-ui-placement=bottom]{transform:translateY(4px)}float-ui-content .float-ui-container-popover[data-float-ui-placement=bottom] .float-ui-arrow{transform:rotate(-135deg)}float-ui-content .float-ui-container-popover[data-float-ui-placement=left]{transform:translate(-4px)}float-ui-content .float-ui-container-popover[data-float-ui-placement=left] .float-ui-arrow{transform:rotate(-45deg)}float-ui-content .float-ui-container-popover[data-float-ui-placement=right]{transform:translate(4px)}float-ui-content .float-ui-container-popover[data-float-ui-placement=right] .float-ui-arrow{transform:rotate(135deg)}.tedi-popover-trigger__text{text-decoration:underline dashed var(--general-border-secondary);text-underline-offset:.5em}.tedi-popover-content{position:relative;max-width:calc(100dvw - 1rem);display:flex;flex-direction:column;background:var(--popover-background);color:var(--popover-text);border-radius:var(--popover-radius-rounded)}.tedi-popover-content{gap:var(--layout-grid-gutters-08-mobile)}@media (min-width: 576px){.tedi-popover-content{gap:var(--layout-grid-gutters-08-tablet)}}@media (min-width: 992px){.tedi-popover-content{gap:var(--layout-grid-gutters-08-desktop)}}.tedi-popover-content{padding:var(--popover-padding-sm-mobile)}@media (min-width: 576px){.tedi-popover-content{padding:var(--popover-padding-sm-tablet)}}@media (min-width: 992px){.tedi-popover-content{padding:var(--popover-padding-sm-desktop)}}.tedi-popover-content--none{width:none}.tedi-popover-content--small{width:240px}.tedi-popover-content--medium{width:480px}.tedi-popover-content--large{width:840px}.tedi-popover-content__head{display:flex;justify-content:space-between}.tedi-popover-content__head{gap:var(--layout-grid-gutters-08-mobile)}@media (min-width: 576px){.tedi-popover-content__head{gap:var(--layout-grid-gutters-08-tablet)}}@media (min-width: 992px){.tedi-popover-content__head{gap:var(--layout-grid-gutters-08-desktop)}}.tedi-popover-content__head>div{display:flex;flex-direction:column;flex:1 1 0;min-width:0}.tedi-popover-content__head>div{gap:var(--layout-grid-gutters-08-mobile)}@media (min-width: 576px){.tedi-popover-content__head>div{gap:var(--layout-grid-gutters-08-tablet)}}@media (min-width: 992px){.tedi-popover-content__head>div{gap:var(--layout-grid-gutters-08-desktop)}}.tedi-popover-content__title{align-self:center}\n"] }]
|
|
2533
|
+
}] });
|
|
2534
|
+
|
|
2535
|
+
class PopoverTriggerComponent {
|
|
2536
|
+
host = inject(ElementRef);
|
|
2537
|
+
renderer = inject(Renderer2);
|
|
2538
|
+
ngAfterContentChecked() {
|
|
2539
|
+
const childNodes = Array.from(this.host.nativeElement.childNodes);
|
|
2540
|
+
for (const node of childNodes) {
|
|
2541
|
+
if (node.nodeType === Node.TEXT_NODE && node.textContent?.trim()) {
|
|
2542
|
+
if (node.parentNode !== this.host.nativeElement) {
|
|
2543
|
+
continue;
|
|
2544
|
+
}
|
|
2545
|
+
const span = this.renderer.createElement("span");
|
|
2546
|
+
this.renderer.addClass(span, "tedi-popover-trigger__text");
|
|
2547
|
+
this.renderer.insertBefore(this.host.nativeElement, span, node);
|
|
2548
|
+
this.renderer.appendChild(span, node);
|
|
2549
|
+
}
|
|
2550
|
+
}
|
|
2551
|
+
}
|
|
2552
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: PopoverTriggerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2553
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: PopoverTriggerComponent, isStandalone: true, selector: "tedi-popover-trigger", ngImport: i0, template: "<ng-content />", isInline: true, styles: ["tedi-popover{display:block}tedi-popover-trigger{display:inline-flex;cursor:pointer}float-ui-content .float-ui-container-popover{padding:0;border:var(--borders-01) solid var(--popover-border);border-radius:var(--popover-radius-rounded);box-shadow:0 1px 5px 0 var(--alpha-20, rgba(0, 0, 0, .2));z-index:var(--z-index-dropdown)}float-ui-content .float-ui-container-popover--arrow .float-ui-arrow{width:24px;height:24px;background:var(--popover-background);filter:drop-shadow(0 0 5px var(--alpha-20));clip-path:inset(0px -5px -5px 0px);z-index:var(--z-index-dropdown)}float-ui-content .float-ui-container-popover--border{border-radius:var(--popover-radius-rounded-mobile)}@media (min-width: 576px){float-ui-content .float-ui-container-popover--border{border-radius:var(--popover-radius-rounded-tablet)}}@media (min-width: 992px){float-ui-content .float-ui-container-popover--border{border-radius:var(--popover-radius-rounded-desktop)}}float-ui-content .float-ui-container-popover--border .float-ui-arrow{width:18px;height:18px;border-bottom:4px solid var(--header-popover-border-top);border-right:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=top]{border-bottom:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=top] .float-ui-arrow{bottom:-12px!important}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=bottom]{border-top:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=bottom] .float-ui-arrow{top:-12px!important}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=left]{border-right:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=left] .float-ui-arrow{right:-12px!important}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=right]{border-left:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=right] .float-ui-arrow{left:-12px!important}float-ui-content .float-ui-container-popover[data-float-ui-placement=top]{transform:translateY(-4px)}float-ui-content .float-ui-container-popover[data-float-ui-placement=bottom]{transform:translateY(4px)}float-ui-content .float-ui-container-popover[data-float-ui-placement=bottom] .float-ui-arrow{transform:rotate(-135deg)}float-ui-content .float-ui-container-popover[data-float-ui-placement=left]{transform:translate(-4px)}float-ui-content .float-ui-container-popover[data-float-ui-placement=left] .float-ui-arrow{transform:rotate(-45deg)}float-ui-content .float-ui-container-popover[data-float-ui-placement=right]{transform:translate(4px)}float-ui-content .float-ui-container-popover[data-float-ui-placement=right] .float-ui-arrow{transform:rotate(135deg)}.tedi-popover-trigger__text{text-decoration:underline dashed var(--general-border-secondary);text-underline-offset:.5em}.tedi-popover-content{position:relative;max-width:calc(100dvw - 1rem);display:flex;flex-direction:column;background:var(--popover-background);color:var(--popover-text);border-radius:var(--popover-radius-rounded)}.tedi-popover-content{gap:var(--layout-grid-gutters-08-mobile)}@media (min-width: 576px){.tedi-popover-content{gap:var(--layout-grid-gutters-08-tablet)}}@media (min-width: 992px){.tedi-popover-content{gap:var(--layout-grid-gutters-08-desktop)}}.tedi-popover-content{padding:var(--popover-padding-sm-mobile)}@media (min-width: 576px){.tedi-popover-content{padding:var(--popover-padding-sm-tablet)}}@media (min-width: 992px){.tedi-popover-content{padding:var(--popover-padding-sm-desktop)}}.tedi-popover-content--none{width:none}.tedi-popover-content--small{width:240px}.tedi-popover-content--medium{width:480px}.tedi-popover-content--large{width:840px}.tedi-popover-content__head{display:flex;justify-content:space-between}.tedi-popover-content__head{gap:var(--layout-grid-gutters-08-mobile)}@media (min-width: 576px){.tedi-popover-content__head{gap:var(--layout-grid-gutters-08-tablet)}}@media (min-width: 992px){.tedi-popover-content__head{gap:var(--layout-grid-gutters-08-desktop)}}.tedi-popover-content__head>div{display:flex;flex-direction:column;flex:1 1 0;min-width:0}.tedi-popover-content__head>div{gap:var(--layout-grid-gutters-08-mobile)}@media (min-width: 576px){.tedi-popover-content__head>div{gap:var(--layout-grid-gutters-08-tablet)}}@media (min-width: 992px){.tedi-popover-content__head>div{gap:var(--layout-grid-gutters-08-desktop)}}.tedi-popover-content__title{align-self:center}\n"] });
|
|
2554
|
+
}
|
|
2555
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: PopoverTriggerComponent, decorators: [{
|
|
2556
|
+
type: Component,
|
|
2557
|
+
args: [{ selector: "tedi-popover-trigger", standalone: true, template: "<ng-content />", styles: ["tedi-popover{display:block}tedi-popover-trigger{display:inline-flex;cursor:pointer}float-ui-content .float-ui-container-popover{padding:0;border:var(--borders-01) solid var(--popover-border);border-radius:var(--popover-radius-rounded);box-shadow:0 1px 5px 0 var(--alpha-20, rgba(0, 0, 0, .2));z-index:var(--z-index-dropdown)}float-ui-content .float-ui-container-popover--arrow .float-ui-arrow{width:24px;height:24px;background:var(--popover-background);filter:drop-shadow(0 0 5px var(--alpha-20));clip-path:inset(0px -5px -5px 0px);z-index:var(--z-index-dropdown)}float-ui-content .float-ui-container-popover--border{border-radius:var(--popover-radius-rounded-mobile)}@media (min-width: 576px){float-ui-content .float-ui-container-popover--border{border-radius:var(--popover-radius-rounded-tablet)}}@media (min-width: 992px){float-ui-content .float-ui-container-popover--border{border-radius:var(--popover-radius-rounded-desktop)}}float-ui-content .float-ui-container-popover--border .float-ui-arrow{width:18px;height:18px;border-bottom:4px solid var(--header-popover-border-top);border-right:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=top]{border-bottom:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=top] .float-ui-arrow{bottom:-12px!important}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=bottom]{border-top:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=bottom] .float-ui-arrow{top:-12px!important}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=left]{border-right:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=left] .float-ui-arrow{right:-12px!important}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=right]{border-left:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=right] .float-ui-arrow{left:-12px!important}float-ui-content .float-ui-container-popover[data-float-ui-placement=top]{transform:translateY(-4px)}float-ui-content .float-ui-container-popover[data-float-ui-placement=bottom]{transform:translateY(4px)}float-ui-content .float-ui-container-popover[data-float-ui-placement=bottom] .float-ui-arrow{transform:rotate(-135deg)}float-ui-content .float-ui-container-popover[data-float-ui-placement=left]{transform:translate(-4px)}float-ui-content .float-ui-container-popover[data-float-ui-placement=left] .float-ui-arrow{transform:rotate(-45deg)}float-ui-content .float-ui-container-popover[data-float-ui-placement=right]{transform:translate(4px)}float-ui-content .float-ui-container-popover[data-float-ui-placement=right] .float-ui-arrow{transform:rotate(135deg)}.tedi-popover-trigger__text{text-decoration:underline dashed var(--general-border-secondary);text-underline-offset:.5em}.tedi-popover-content{position:relative;max-width:calc(100dvw - 1rem);display:flex;flex-direction:column;background:var(--popover-background);color:var(--popover-text);border-radius:var(--popover-radius-rounded)}.tedi-popover-content{gap:var(--layout-grid-gutters-08-mobile)}@media (min-width: 576px){.tedi-popover-content{gap:var(--layout-grid-gutters-08-tablet)}}@media (min-width: 992px){.tedi-popover-content{gap:var(--layout-grid-gutters-08-desktop)}}.tedi-popover-content{padding:var(--popover-padding-sm-mobile)}@media (min-width: 576px){.tedi-popover-content{padding:var(--popover-padding-sm-tablet)}}@media (min-width: 992px){.tedi-popover-content{padding:var(--popover-padding-sm-desktop)}}.tedi-popover-content--none{width:none}.tedi-popover-content--small{width:240px}.tedi-popover-content--medium{width:480px}.tedi-popover-content--large{width:840px}.tedi-popover-content__head{display:flex;justify-content:space-between}.tedi-popover-content__head{gap:var(--layout-grid-gutters-08-mobile)}@media (min-width: 576px){.tedi-popover-content__head{gap:var(--layout-grid-gutters-08-tablet)}}@media (min-width: 992px){.tedi-popover-content__head{gap:var(--layout-grid-gutters-08-desktop)}}.tedi-popover-content__head>div{display:flex;flex-direction:column;flex:1 1 0;min-width:0}.tedi-popover-content__head>div{gap:var(--layout-grid-gutters-08-mobile)}@media (min-width: 576px){.tedi-popover-content__head>div{gap:var(--layout-grid-gutters-08-tablet)}}@media (min-width: 992px){.tedi-popover-content__head>div{gap:var(--layout-grid-gutters-08-desktop)}}.tedi-popover-content__title{align-self:center}\n"] }]
|
|
2558
|
+
}] });
|
|
2559
|
+
|
|
2560
|
+
let popoverTitleId = 0;
|
|
2561
|
+
class PopoverContentComponent {
|
|
2562
|
+
/**
|
|
2563
|
+
* The width of the popover. Can be 'none', 'small', 'medium', or 'large'.
|
|
2564
|
+
* @default small
|
|
2565
|
+
*/
|
|
2566
|
+
maxWidth = input("small");
|
|
2567
|
+
/**
|
|
2568
|
+
* Heading title of the content
|
|
2569
|
+
*/
|
|
2570
|
+
title = input("");
|
|
2571
|
+
/**
|
|
2572
|
+
* Should content show close button?
|
|
2573
|
+
* @default false
|
|
2574
|
+
*/
|
|
2575
|
+
showClose = input(false);
|
|
2576
|
+
popover = inject(PopoverComponent, { optional: true });
|
|
2577
|
+
titleId = `popover-title-${popoverTitleId++}`;
|
|
2578
|
+
classes = computed(() => {
|
|
2579
|
+
const classList = [
|
|
2580
|
+
"tedi-popover-content",
|
|
2581
|
+
`tedi-popover-content--${this.maxWidth()}`,
|
|
2582
|
+
];
|
|
2583
|
+
return classList.join(" ");
|
|
2584
|
+
});
|
|
2585
|
+
handleClose() {
|
|
2586
|
+
this.popover?.floatUiComponent().hide();
|
|
2587
|
+
}
|
|
2588
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: PopoverContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2589
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: PopoverContentComponent, isStandalone: true, selector: "tedi-popover-content", inputs: { maxWidth: { classPropertyName: "maxWidth", publicName: "maxWidth", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, showClose: { classPropertyName: "showClose", publicName: "showClose", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "dialog" }, properties: { "class": "classes()", "attr.aria-labelledby": "title() ? titleId : null" } }, ngImport: i0, template: "@if (title() && showClose()) {\n <div class=\"tedi-popover-content__head\">\n <h4 class=\"tedi-popover-content__title\" [id]=\"titleId\">{{ title() }}</h4>\n <button tedi-closing-button (click)=\"handleClose()\"></button>\n </div>\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n} @else if (showClose()) {\n <div class=\"tedi-popover-content__head\">\n <div>\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </div>\n <button tedi-closing-button size=\"small\" (click)=\"handleClose()\"></button>\n </div>\n} @else if (title()) {\n <h4 [id]=\"titleId\">{{ title() }}</h4>\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n} @else {\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n}\n\n<ng-template #content>\n <ng-content></ng-content>\n</ng-template>", styles: ["tedi-popover{display:block}tedi-popover-trigger{display:inline-flex;cursor:pointer}float-ui-content .float-ui-container-popover{padding:0;border:var(--borders-01) solid var(--popover-border);border-radius:var(--popover-radius-rounded);box-shadow:0 1px 5px 0 var(--alpha-20, rgba(0, 0, 0, .2));z-index:var(--z-index-dropdown)}float-ui-content .float-ui-container-popover--arrow .float-ui-arrow{width:24px;height:24px;background:var(--popover-background);filter:drop-shadow(0 0 5px var(--alpha-20));clip-path:inset(0px -5px -5px 0px);z-index:var(--z-index-dropdown)}float-ui-content .float-ui-container-popover--border{border-radius:var(--popover-radius-rounded-mobile)}@media (min-width: 576px){float-ui-content .float-ui-container-popover--border{border-radius:var(--popover-radius-rounded-tablet)}}@media (min-width: 992px){float-ui-content .float-ui-container-popover--border{border-radius:var(--popover-radius-rounded-desktop)}}float-ui-content .float-ui-container-popover--border .float-ui-arrow{width:18px;height:18px;border-bottom:4px solid var(--header-popover-border-top);border-right:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=top]{border-bottom:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=top] .float-ui-arrow{bottom:-12px!important}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=bottom]{border-top:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=bottom] .float-ui-arrow{top:-12px!important}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=left]{border-right:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=left] .float-ui-arrow{right:-12px!important}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=right]{border-left:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=right] .float-ui-arrow{left:-12px!important}float-ui-content .float-ui-container-popover[data-float-ui-placement=top]{transform:translateY(-4px)}float-ui-content .float-ui-container-popover[data-float-ui-placement=bottom]{transform:translateY(4px)}float-ui-content .float-ui-container-popover[data-float-ui-placement=bottom] .float-ui-arrow{transform:rotate(-135deg)}float-ui-content .float-ui-container-popover[data-float-ui-placement=left]{transform:translate(-4px)}float-ui-content .float-ui-container-popover[data-float-ui-placement=left] .float-ui-arrow{transform:rotate(-45deg)}float-ui-content .float-ui-container-popover[data-float-ui-placement=right]{transform:translate(4px)}float-ui-content .float-ui-container-popover[data-float-ui-placement=right] .float-ui-arrow{transform:rotate(135deg)}.tedi-popover-trigger__text{text-decoration:underline dashed var(--general-border-secondary);text-underline-offset:.5em}.tedi-popover-content{position:relative;max-width:calc(100dvw - 1rem);display:flex;flex-direction:column;background:var(--popover-background);color:var(--popover-text);border-radius:var(--popover-radius-rounded)}.tedi-popover-content{gap:var(--layout-grid-gutters-08-mobile)}@media (min-width: 576px){.tedi-popover-content{gap:var(--layout-grid-gutters-08-tablet)}}@media (min-width: 992px){.tedi-popover-content{gap:var(--layout-grid-gutters-08-desktop)}}.tedi-popover-content{padding:var(--popover-padding-sm-mobile)}@media (min-width: 576px){.tedi-popover-content{padding:var(--popover-padding-sm-tablet)}}@media (min-width: 992px){.tedi-popover-content{padding:var(--popover-padding-sm-desktop)}}.tedi-popover-content--none{width:none}.tedi-popover-content--small{width:240px}.tedi-popover-content--medium{width:480px}.tedi-popover-content--large{width:840px}.tedi-popover-content__head{display:flex;justify-content:space-between}.tedi-popover-content__head{gap:var(--layout-grid-gutters-08-mobile)}@media (min-width: 576px){.tedi-popover-content__head{gap:var(--layout-grid-gutters-08-tablet)}}@media (min-width: 992px){.tedi-popover-content__head{gap:var(--layout-grid-gutters-08-desktop)}}.tedi-popover-content__head>div{display:flex;flex-direction:column;flex:1 1 0;min-width:0}.tedi-popover-content__head>div{gap:var(--layout-grid-gutters-08-mobile)}@media (min-width: 576px){.tedi-popover-content__head>div{gap:var(--layout-grid-gutters-08-tablet)}}@media (min-width: 992px){.tedi-popover-content__head>div{gap:var(--layout-grid-gutters-08-desktop)}}.tedi-popover-content__title{align-self:center}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ClosingButtonComponent, selector: "button[tedi-closing-button]", inputs: ["size", "iconSize"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2590
|
+
}
|
|
2591
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: PopoverContentComponent, decorators: [{
|
|
2592
|
+
type: Component,
|
|
2593
|
+
args: [{ standalone: true, selector: "tedi-popover-content", encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, imports: [NgTemplateOutlet, ClosingButtonComponent], host: {
|
|
2594
|
+
"[class]": "classes()",
|
|
2595
|
+
role: "dialog",
|
|
2596
|
+
"[attr.aria-labelledby]": "title() ? titleId : null",
|
|
2597
|
+
}, template: "@if (title() && showClose()) {\n <div class=\"tedi-popover-content__head\">\n <h4 class=\"tedi-popover-content__title\" [id]=\"titleId\">{{ title() }}</h4>\n <button tedi-closing-button (click)=\"handleClose()\"></button>\n </div>\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n} @else if (showClose()) {\n <div class=\"tedi-popover-content__head\">\n <div>\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </div>\n <button tedi-closing-button size=\"small\" (click)=\"handleClose()\"></button>\n </div>\n} @else if (title()) {\n <h4 [id]=\"titleId\">{{ title() }}</h4>\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n} @else {\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n}\n\n<ng-template #content>\n <ng-content></ng-content>\n</ng-template>", styles: ["tedi-popover{display:block}tedi-popover-trigger{display:inline-flex;cursor:pointer}float-ui-content .float-ui-container-popover{padding:0;border:var(--borders-01) solid var(--popover-border);border-radius:var(--popover-radius-rounded);box-shadow:0 1px 5px 0 var(--alpha-20, rgba(0, 0, 0, .2));z-index:var(--z-index-dropdown)}float-ui-content .float-ui-container-popover--arrow .float-ui-arrow{width:24px;height:24px;background:var(--popover-background);filter:drop-shadow(0 0 5px var(--alpha-20));clip-path:inset(0px -5px -5px 0px);z-index:var(--z-index-dropdown)}float-ui-content .float-ui-container-popover--border{border-radius:var(--popover-radius-rounded-mobile)}@media (min-width: 576px){float-ui-content .float-ui-container-popover--border{border-radius:var(--popover-radius-rounded-tablet)}}@media (min-width: 992px){float-ui-content .float-ui-container-popover--border{border-radius:var(--popover-radius-rounded-desktop)}}float-ui-content .float-ui-container-popover--border .float-ui-arrow{width:18px;height:18px;border-bottom:4px solid var(--header-popover-border-top);border-right:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=top]{border-bottom:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=top] .float-ui-arrow{bottom:-12px!important}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=bottom]{border-top:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=bottom] .float-ui-arrow{top:-12px!important}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=left]{border-right:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=left] .float-ui-arrow{right:-12px!important}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=right]{border-left:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=right] .float-ui-arrow{left:-12px!important}float-ui-content .float-ui-container-popover[data-float-ui-placement=top]{transform:translateY(-4px)}float-ui-content .float-ui-container-popover[data-float-ui-placement=bottom]{transform:translateY(4px)}float-ui-content .float-ui-container-popover[data-float-ui-placement=bottom] .float-ui-arrow{transform:rotate(-135deg)}float-ui-content .float-ui-container-popover[data-float-ui-placement=left]{transform:translate(-4px)}float-ui-content .float-ui-container-popover[data-float-ui-placement=left] .float-ui-arrow{transform:rotate(-45deg)}float-ui-content .float-ui-container-popover[data-float-ui-placement=right]{transform:translate(4px)}float-ui-content .float-ui-container-popover[data-float-ui-placement=right] .float-ui-arrow{transform:rotate(135deg)}.tedi-popover-trigger__text{text-decoration:underline dashed var(--general-border-secondary);text-underline-offset:.5em}.tedi-popover-content{position:relative;max-width:calc(100dvw - 1rem);display:flex;flex-direction:column;background:var(--popover-background);color:var(--popover-text);border-radius:var(--popover-radius-rounded)}.tedi-popover-content{gap:var(--layout-grid-gutters-08-mobile)}@media (min-width: 576px){.tedi-popover-content{gap:var(--layout-grid-gutters-08-tablet)}}@media (min-width: 992px){.tedi-popover-content{gap:var(--layout-grid-gutters-08-desktop)}}.tedi-popover-content{padding:var(--popover-padding-sm-mobile)}@media (min-width: 576px){.tedi-popover-content{padding:var(--popover-padding-sm-tablet)}}@media (min-width: 992px){.tedi-popover-content{padding:var(--popover-padding-sm-desktop)}}.tedi-popover-content--none{width:none}.tedi-popover-content--small{width:240px}.tedi-popover-content--medium{width:480px}.tedi-popover-content--large{width:840px}.tedi-popover-content__head{display:flex;justify-content:space-between}.tedi-popover-content__head{gap:var(--layout-grid-gutters-08-mobile)}@media (min-width: 576px){.tedi-popover-content__head{gap:var(--layout-grid-gutters-08-tablet)}}@media (min-width: 992px){.tedi-popover-content__head{gap:var(--layout-grid-gutters-08-desktop)}}.tedi-popover-content__head>div{display:flex;flex-direction:column;flex:1 1 0;min-width:0}.tedi-popover-content__head>div{gap:var(--layout-grid-gutters-08-mobile)}@media (min-width: 576px){.tedi-popover-content__head>div{gap:var(--layout-grid-gutters-08-tablet)}}@media (min-width: 992px){.tedi-popover-content__head>div{gap:var(--layout-grid-gutters-08-desktop)}}.tedi-popover-content__title{align-self:center}\n"] }]
|
|
2598
|
+
}] });
|
|
2599
|
+
|
|
2600
|
+
let datePickerId = 0;
|
|
2601
|
+
class DatePickerComponent {
|
|
2602
|
+
today = new Date();
|
|
2603
|
+
uniqueId = `tedi-date-picker-id-${datePickerId++}`;
|
|
2604
|
+
/** Selected date */
|
|
2605
|
+
selected = model(null);
|
|
2606
|
+
/** Currently shown month */
|
|
2607
|
+
month = model(this.today);
|
|
2608
|
+
/** Disabled dates that cannot be selected. */
|
|
2609
|
+
disabled = input(null);
|
|
2610
|
+
/** Shows or hides the calendar navigation controls (previous/next month buttons). */
|
|
2611
|
+
showNavigation = input(true);
|
|
2612
|
+
/** Month selector mode: none | label | grid | dropdown */
|
|
2613
|
+
monthMode = input("dropdown");
|
|
2614
|
+
/** Year selector mode: none | label | grid | dropdown */
|
|
2615
|
+
yearMode = input("dropdown");
|
|
2616
|
+
/** Explicit starting year for the year dropdown list. If null, a dynamic fallback range (current year - 100) is used. */
|
|
2617
|
+
startYear = input(null);
|
|
2618
|
+
/** Explicit ending year for the year dropdown list. If null, a dynamic fallback range (current year + 20) is used. */
|
|
2619
|
+
endYear = input(null);
|
|
2620
|
+
/** Input id */
|
|
2621
|
+
inputId = input();
|
|
2622
|
+
/** Input placeholder */
|
|
2623
|
+
inputPlaceholder = input();
|
|
2624
|
+
/** Input state */
|
|
2625
|
+
inputState = input("default");
|
|
2626
|
+
/** Input size */
|
|
2627
|
+
inputSize = input("default");
|
|
2628
|
+
/** Is input disabled? */
|
|
2629
|
+
inputDisabled = input(false);
|
|
2630
|
+
/** Is manual typing into input allowed? */
|
|
2631
|
+
allowManualInput = input(true);
|
|
2632
|
+
/** Should show week numbers before calendar grid? */
|
|
2633
|
+
showWeekNumbers = input(false);
|
|
2634
|
+
/** Current view of datepicker (months grid, years grid or calendar grid) */
|
|
2635
|
+
currentView = signal("calendar-grid");
|
|
2636
|
+
/** Shown input value */
|
|
2637
|
+
inputValue = signal("");
|
|
2638
|
+
/** Keyboard active date (what receives keyboard focus) */
|
|
2639
|
+
activeDate = signal(null);
|
|
2640
|
+
YEARS_PER_PAGE = 12;
|
|
2641
|
+
yearPageIndex = signal(0);
|
|
2642
|
+
selectedYear = computed(() => this.month().getFullYear());
|
|
2643
|
+
years = computed(() => {
|
|
2644
|
+
const current = this.today.getFullYear();
|
|
2645
|
+
const start = this.startYear() ?? current - 100;
|
|
2646
|
+
const end = this.endYear() ?? current + 20;
|
|
2647
|
+
const safeStart = Math.min(start, end);
|
|
2648
|
+
const safeEnd = Math.max(start, end);
|
|
2649
|
+
return Array.from({ length: safeEnd - safeStart + 1 }, (_, i) => safeStart + i);
|
|
2650
|
+
});
|
|
2651
|
+
pagedYears = computed(() => {
|
|
2652
|
+
const start = this.yearPageIndex() * this.YEARS_PER_PAGE;
|
|
2653
|
+
return this.years().slice(start, start + this.YEARS_PER_PAGE);
|
|
2654
|
+
});
|
|
2655
|
+
hasPrevYearPage = computed(() => {
|
|
2656
|
+
return this.yearPageIndex() > 0;
|
|
2657
|
+
});
|
|
2658
|
+
hasNextYearPage = computed(() => {
|
|
2659
|
+
const all = this.years().length;
|
|
2660
|
+
return (this.yearPageIndex() + 1) * this.YEARS_PER_PAGE < all;
|
|
2661
|
+
});
|
|
2662
|
+
weekRows = computed(() => {
|
|
2663
|
+
const cells = this.days();
|
|
2664
|
+
const rows = [];
|
|
2665
|
+
for (let i = 0; i < cells.length; i += 7) {
|
|
2666
|
+
rows.push(cells.slice(i, i + 7));
|
|
2667
|
+
}
|
|
2668
|
+
return rows;
|
|
2669
|
+
});
|
|
2670
|
+
weekNumbers = computed(() => {
|
|
2671
|
+
return this.weekRows().map((week) => this.getISOWeek(week[0].date));
|
|
2672
|
+
});
|
|
2673
|
+
canGoPrev = computed(() => {
|
|
2674
|
+
const current = this.month();
|
|
2675
|
+
const year = current.getFullYear();
|
|
2676
|
+
const month = current.getMonth();
|
|
2677
|
+
const prevMonth = month - 1;
|
|
2678
|
+
const prevYear = prevMonth < 0 ? year - 1 : year;
|
|
2679
|
+
const finalPrevMonth = (prevMonth + 12) % 12;
|
|
2680
|
+
return this.getFirstEnabledDayOfMonth(prevYear, finalPrevMonth) !== null;
|
|
2681
|
+
});
|
|
2682
|
+
canGoNext = computed(() => {
|
|
2683
|
+
const current = this.month();
|
|
2684
|
+
const year = current.getFullYear();
|
|
2685
|
+
const month = current.getMonth();
|
|
2686
|
+
const nextMonth = month + 1;
|
|
2687
|
+
const nextYear = nextMonth > 11 ? year + 1 : year;
|
|
2688
|
+
const finalNextMonth = nextMonth % 12;
|
|
2689
|
+
return this.getFirstEnabledDayOfMonth(nextYear, finalNextMonth) !== null;
|
|
2690
|
+
});
|
|
2691
|
+
days = computed(() => {
|
|
2692
|
+
const month = this.month();
|
|
2693
|
+
const year = month.getFullYear();
|
|
2694
|
+
const monthIndex = month.getMonth();
|
|
2695
|
+
const firstOfMonth = new Date(year, monthIndex, 1);
|
|
2696
|
+
const daysInMonth = new Date(year, monthIndex + 1, 0).getDate();
|
|
2697
|
+
const firstWeekday = (firstOfMonth.getDay() + 6) % 7;
|
|
2698
|
+
const trailing = (7 - ((firstWeekday + daysInMonth) % 7)) % 7;
|
|
2699
|
+
const cells = [];
|
|
2700
|
+
/** Previous month days */
|
|
2701
|
+
for (let i = 0; i < firstWeekday; i++) {
|
|
2702
|
+
const date = new Date(year, monthIndex, i - firstWeekday + 1);
|
|
2703
|
+
const disabled = this.isDisabled(date);
|
|
2704
|
+
cells.push({
|
|
2705
|
+
date,
|
|
2706
|
+
inCurrentMonth: false,
|
|
2707
|
+
disabled,
|
|
2708
|
+
});
|
|
2709
|
+
}
|
|
2710
|
+
/** Current month days */
|
|
2711
|
+
for (let day = 1; day <= daysInMonth; day++) {
|
|
2712
|
+
const date = new Date(year, monthIndex, day);
|
|
2713
|
+
const disabled = this.isDisabled(date);
|
|
2714
|
+
cells.push({
|
|
2715
|
+
date,
|
|
2716
|
+
inCurrentMonth: true,
|
|
2717
|
+
disabled,
|
|
2718
|
+
});
|
|
2719
|
+
}
|
|
2720
|
+
/** Next month days */
|
|
2721
|
+
const lastDate = new Date(year, monthIndex, daysInMonth);
|
|
2722
|
+
for (let i = 1; i <= trailing; i++) {
|
|
2723
|
+
const date = new Date(lastDate);
|
|
2724
|
+
date.setDate(lastDate.getDate() + i);
|
|
2725
|
+
const disabled = this.isDisabled(date);
|
|
2726
|
+
cells.push({
|
|
2727
|
+
date,
|
|
2728
|
+
inCurrentMonth: false,
|
|
2729
|
+
disabled,
|
|
2730
|
+
});
|
|
2731
|
+
}
|
|
2732
|
+
return cells;
|
|
2733
|
+
});
|
|
2734
|
+
inputElement = viewChild.required("inputElement");
|
|
2735
|
+
gridElement = viewChild.required("gridElement");
|
|
2736
|
+
popover = viewChild.required(PopoverComponent);
|
|
2737
|
+
translationService = inject(TediTranslationService);
|
|
2738
|
+
weekDays = [
|
|
2739
|
+
this.translationService.track("date-picker.monday-short"),
|
|
2740
|
+
this.translationService.track("date-picker.tuesday-short"),
|
|
2741
|
+
this.translationService.track("date-picker.wednesday-short"),
|
|
2742
|
+
this.translationService.track("date-picker.thursday-short"),
|
|
2743
|
+
this.translationService.track("date-picker.friday-short"),
|
|
2744
|
+
this.translationService.track("date-picker.saturday-short"),
|
|
2745
|
+
this.translationService.track("date-picker.sunday-short"),
|
|
2746
|
+
];
|
|
2747
|
+
monthShortNames = [
|
|
2748
|
+
this.translationService.track("date-picker.january-short"),
|
|
2749
|
+
this.translationService.track("date-picker.february-short"),
|
|
2750
|
+
this.translationService.track("date-picker.march-short"),
|
|
2751
|
+
this.translationService.track("date-picker.april-short"),
|
|
2752
|
+
this.translationService.track("date-picker.may-short"),
|
|
2753
|
+
this.translationService.track("date-picker.june-short"),
|
|
2754
|
+
this.translationService.track("date-picker.july-short"),
|
|
2755
|
+
this.translationService.track("date-picker.august-short"),
|
|
2756
|
+
this.translationService.track("date-picker.september-short"),
|
|
2757
|
+
this.translationService.track("date-picker.october-short"),
|
|
2758
|
+
this.translationService.track("date-picker.november-short"),
|
|
2759
|
+
this.translationService.track("date-picker.december-short"),
|
|
2760
|
+
];
|
|
2761
|
+
monthNames = [
|
|
2762
|
+
this.translationService.track("date-picker.january"),
|
|
2763
|
+
this.translationService.track("date-picker.february"),
|
|
2764
|
+
this.translationService.track("date-picker.march"),
|
|
2765
|
+
this.translationService.track("date-picker.april"),
|
|
2766
|
+
this.translationService.track("date-picker.may"),
|
|
2767
|
+
this.translationService.track("date-picker.june"),
|
|
2768
|
+
this.translationService.track("date-picker.july"),
|
|
2769
|
+
this.translationService.track("date-picker.august"),
|
|
2770
|
+
this.translationService.track("date-picker.september"),
|
|
2771
|
+
this.translationService.track("date-picker.october"),
|
|
2772
|
+
this.translationService.track("date-picker.november"),
|
|
2773
|
+
this.translationService.track("date-picker.december"),
|
|
2774
|
+
];
|
|
2775
|
+
ngOnInit() {
|
|
2776
|
+
const selected = this.selected();
|
|
2777
|
+
this.inputValue.set(selected ? this.format(selected) : "");
|
|
2778
|
+
this.activeDate.set(selected ?? this.today);
|
|
2779
|
+
}
|
|
2780
|
+
getTabIndex(date) {
|
|
2781
|
+
const active = this.activeDate();
|
|
2782
|
+
return active && date.toDateString() === active.toDateString() ? 0 : -1;
|
|
2783
|
+
}
|
|
2784
|
+
prevMonth() {
|
|
2785
|
+
const date = new Date(this.month());
|
|
2786
|
+
date.setMonth(date.getMonth() - 1);
|
|
2787
|
+
this.month.set(date);
|
|
2788
|
+
}
|
|
2789
|
+
nextMonth() {
|
|
2790
|
+
const date = new Date(this.month());
|
|
2791
|
+
date.setMonth(date.getMonth() + 1);
|
|
2792
|
+
this.month.set(date);
|
|
2793
|
+
}
|
|
2794
|
+
prevYearPage() {
|
|
2795
|
+
if (this.hasPrevYearPage()) {
|
|
2796
|
+
this.yearPageIndex.set(this.yearPageIndex() - 1);
|
|
2797
|
+
}
|
|
2798
|
+
}
|
|
2799
|
+
nextYearPage() {
|
|
2800
|
+
if (this.hasNextYearPage()) {
|
|
2801
|
+
this.yearPageIndex.set(this.yearPageIndex() + 1);
|
|
2802
|
+
}
|
|
2803
|
+
}
|
|
2804
|
+
selectDay(day) {
|
|
2805
|
+
if (day.disabled)
|
|
2806
|
+
return;
|
|
2807
|
+
this.selected.set(day.date);
|
|
2808
|
+
this.inputValue.set(this.format(day.date));
|
|
2809
|
+
}
|
|
2810
|
+
isSelected(date) {
|
|
2811
|
+
return (!!this.selected() &&
|
|
2812
|
+
date.toDateString() === this.selected().toDateString());
|
|
2813
|
+
}
|
|
2814
|
+
isToday(date) {
|
|
2815
|
+
return date.toDateString() === this.today.toDateString();
|
|
2816
|
+
}
|
|
2817
|
+
isDisabled(date) {
|
|
2818
|
+
const rules = this.disabled();
|
|
2819
|
+
if (!rules)
|
|
2820
|
+
return false;
|
|
2821
|
+
const matchers = Array.isArray(rules) ? rules : [rules];
|
|
2822
|
+
return matchers.some((m) => this.matches(m, date));
|
|
2823
|
+
}
|
|
2824
|
+
onMonthClick() {
|
|
2825
|
+
this.currentView.set("month-grid");
|
|
2826
|
+
}
|
|
2827
|
+
onMonthSelect(index) {
|
|
2828
|
+
if (!index)
|
|
2829
|
+
return;
|
|
2830
|
+
const updated = new Date(this.month());
|
|
2831
|
+
updated.setMonth(Number(index));
|
|
2832
|
+
this.month.set(updated);
|
|
2833
|
+
if (this.currentView() === "month-grid") {
|
|
2834
|
+
this.currentView.set("calendar-grid");
|
|
2835
|
+
}
|
|
2836
|
+
}
|
|
2837
|
+
onYearClick() {
|
|
2838
|
+
const selected = this.month().getFullYear();
|
|
2839
|
+
const index = this.years().indexOf(selected);
|
|
2840
|
+
this.yearPageIndex.set(Math.floor(index / this.YEARS_PER_PAGE));
|
|
2841
|
+
this.currentView.set("year-grid");
|
|
2842
|
+
}
|
|
2843
|
+
onYearSelect(index) {
|
|
2844
|
+
const updated = new Date(this.month());
|
|
2845
|
+
updated.setFullYear(Number(index));
|
|
2846
|
+
this.month.set(updated);
|
|
2847
|
+
if (this.currentView() === "year-grid") {
|
|
2848
|
+
this.currentView.set("calendar-grid");
|
|
2849
|
+
}
|
|
2850
|
+
}
|
|
2851
|
+
onDayKeydown(event, current) {
|
|
2852
|
+
let target = null;
|
|
2853
|
+
switch (event.key) {
|
|
2854
|
+
case "ArrowLeft":
|
|
2855
|
+
target = new Date(current);
|
|
2856
|
+
target.setDate(current.getDate() - 1);
|
|
2857
|
+
break;
|
|
2858
|
+
case "ArrowRight":
|
|
2859
|
+
target = new Date(current);
|
|
2860
|
+
target.setDate(current.getDate() + 1);
|
|
2861
|
+
break;
|
|
2862
|
+
case "ArrowUp":
|
|
2863
|
+
target = new Date(current);
|
|
2864
|
+
target.setDate(current.getDate() - 7);
|
|
2865
|
+
break;
|
|
2866
|
+
case "ArrowDown":
|
|
2867
|
+
target = new Date(current);
|
|
2868
|
+
target.setDate(current.getDate() + 7);
|
|
2869
|
+
break;
|
|
2870
|
+
case "Home":
|
|
2871
|
+
target = new Date(current);
|
|
2872
|
+
target.setDate(current.getDate() - ((current.getDay() + 6) % 7));
|
|
2873
|
+
break;
|
|
2874
|
+
case "End":
|
|
2875
|
+
target = new Date(current);
|
|
2876
|
+
target.setDate(current.getDate() + (6 - ((current.getDay() + 6) % 7)));
|
|
2877
|
+
break;
|
|
2878
|
+
case "PageUp":
|
|
2879
|
+
target = new Date(current);
|
|
2880
|
+
target.setMonth(current.getMonth() - 1);
|
|
2881
|
+
break;
|
|
2882
|
+
case "PageDown":
|
|
2883
|
+
target = new Date(current);
|
|
2884
|
+
target.setMonth(current.getMonth() + 1);
|
|
2885
|
+
break;
|
|
2886
|
+
case "Enter":
|
|
2887
|
+
case " ":
|
|
2888
|
+
event.preventDefault();
|
|
2889
|
+
this.selectDay({
|
|
2890
|
+
date: current,
|
|
2891
|
+
disabled: false,
|
|
2892
|
+
inCurrentMonth: true,
|
|
2893
|
+
});
|
|
2894
|
+
return;
|
|
2895
|
+
case "Escape":
|
|
2896
|
+
this.popover().floatUiComponent().hide();
|
|
2897
|
+
this.inputElement().nativeElement.focus();
|
|
2898
|
+
return;
|
|
2899
|
+
default:
|
|
2900
|
+
return;
|
|
2901
|
+
}
|
|
2902
|
+
if (target) {
|
|
2903
|
+
event.preventDefault();
|
|
2904
|
+
this.focusDate(target);
|
|
2905
|
+
}
|
|
2906
|
+
}
|
|
2907
|
+
onCalendarKeyDown(event) {
|
|
2908
|
+
if (this.currentView() === "calendar-grid")
|
|
2909
|
+
return;
|
|
2910
|
+
if (event.key === "Escape") {
|
|
2911
|
+
event.preventDefault();
|
|
2912
|
+
event.stopPropagation();
|
|
2913
|
+
this.currentView.set("calendar-grid");
|
|
2914
|
+
const active = this.selected() ?? this.today;
|
|
2915
|
+
setTimeout(() => this.focusDate(active));
|
|
2916
|
+
}
|
|
2917
|
+
}
|
|
2918
|
+
onInput(event) {
|
|
2919
|
+
if (!this.allowManualInput())
|
|
2920
|
+
return;
|
|
2921
|
+
const value = event.target.value;
|
|
2922
|
+
this.inputValue.set(value);
|
|
2923
|
+
if (value === "") {
|
|
2924
|
+
this.selected.set(null);
|
|
2925
|
+
}
|
|
2926
|
+
}
|
|
2927
|
+
onInputBlur() {
|
|
2928
|
+
if (!this.allowManualInput())
|
|
2929
|
+
return;
|
|
2930
|
+
const selected = this.selected();
|
|
2931
|
+
const parsed = this.parseDate(this.inputValue());
|
|
2932
|
+
if (parsed) {
|
|
2933
|
+
this.selected.set(parsed);
|
|
2934
|
+
this.month.set(parsed);
|
|
2935
|
+
}
|
|
2936
|
+
else {
|
|
2937
|
+
this.inputValue.set(selected ? this.format(selected) : "");
|
|
2938
|
+
}
|
|
2939
|
+
}
|
|
2940
|
+
onInputClick() {
|
|
2941
|
+
if (this.allowManualInput())
|
|
2942
|
+
return;
|
|
2943
|
+
if (this.popover().floatUiComponent().state) {
|
|
2944
|
+
this.popover().floatUiComponent().hide();
|
|
2945
|
+
this.inputElement().nativeElement.focus();
|
|
2946
|
+
}
|
|
2947
|
+
else {
|
|
2948
|
+
this.popover().floatUiComponent().show();
|
|
2949
|
+
this.openCalendar();
|
|
2950
|
+
}
|
|
2951
|
+
}
|
|
2952
|
+
clearInput() {
|
|
2953
|
+
this.inputValue.set("");
|
|
2954
|
+
this.selected.set(null);
|
|
2955
|
+
}
|
|
2956
|
+
openCalendar() {
|
|
2957
|
+
const active = this.selected() ?? this.today;
|
|
2958
|
+
this.activeDate.set(active);
|
|
2959
|
+
setTimeout(() => this.focusDate(active));
|
|
2960
|
+
}
|
|
2961
|
+
focusDate(date) {
|
|
2962
|
+
this.activeDate.set(date);
|
|
2963
|
+
const currentMonth = this.month();
|
|
2964
|
+
if (currentMonth.getFullYear() !== date.getFullYear() ||
|
|
2965
|
+
currentMonth.getMonth() !== date.getMonth()) {
|
|
2966
|
+
this.month.set(new Date(date));
|
|
2967
|
+
}
|
|
2968
|
+
setTimeout(() => {
|
|
2969
|
+
const container = this.gridElement().nativeElement;
|
|
2970
|
+
if (!container)
|
|
2971
|
+
return;
|
|
2972
|
+
const key = new Date(date.getFullYear(), date.getMonth(), date.getDate()).getTime();
|
|
2973
|
+
const btn = container.querySelector(`[data-date-key="${key}"]`);
|
|
2974
|
+
if (btn && document.activeElement !== btn) {
|
|
2975
|
+
btn.focus({ preventScroll: true });
|
|
2976
|
+
}
|
|
2977
|
+
});
|
|
2978
|
+
}
|
|
2979
|
+
parseDate(str) {
|
|
2980
|
+
const parts = str.trim().split(".");
|
|
2981
|
+
if (parts.length !== 3)
|
|
2982
|
+
return null;
|
|
2983
|
+
const [dd, mm, yyyy] = parts.map(Number);
|
|
2984
|
+
if (!dd || !mm || !yyyy)
|
|
2985
|
+
return null;
|
|
2986
|
+
const date = new Date(yyyy, mm - 1, dd);
|
|
2987
|
+
if (date.getFullYear() !== yyyy ||
|
|
2988
|
+
date.getMonth() !== mm - 1 ||
|
|
2989
|
+
date.getDate() !== dd) {
|
|
2990
|
+
return null;
|
|
2991
|
+
}
|
|
2992
|
+
return date;
|
|
2993
|
+
}
|
|
2994
|
+
format(date) {
|
|
2995
|
+
const d = String(date.getDate()).padStart(2, "0");
|
|
2996
|
+
const m = String(date.getMonth() + 1).padStart(2, "0");
|
|
2997
|
+
const y = date.getFullYear();
|
|
2998
|
+
return `${d}.${m}.${y}`;
|
|
2999
|
+
}
|
|
3000
|
+
isSameDay(a, b) {
|
|
3001
|
+
return (a.getDate() === b.getDate() &&
|
|
3002
|
+
a.getMonth() === b.getMonth() &&
|
|
3003
|
+
a.getFullYear() === b.getFullYear());
|
|
3004
|
+
}
|
|
3005
|
+
matches(m, date) {
|
|
3006
|
+
if (m instanceof Date) {
|
|
3007
|
+
return this.isSameDay(m, date);
|
|
3008
|
+
}
|
|
3009
|
+
if (Array.isArray(m)) {
|
|
3010
|
+
return m.some((d) => this.isSameDay(d, date));
|
|
3011
|
+
}
|
|
3012
|
+
if (typeof m === "function") {
|
|
3013
|
+
return m(date);
|
|
3014
|
+
}
|
|
3015
|
+
if ("before" in m) {
|
|
3016
|
+
return date < m.before;
|
|
3017
|
+
}
|
|
3018
|
+
if ("after" in m) {
|
|
3019
|
+
return date > m.after;
|
|
3020
|
+
}
|
|
3021
|
+
if ("from" in m) {
|
|
3022
|
+
const { from, to } = m;
|
|
3023
|
+
if (to)
|
|
3024
|
+
return date >= from && date <= to;
|
|
3025
|
+
return date >= from;
|
|
3026
|
+
}
|
|
3027
|
+
return false;
|
|
3028
|
+
}
|
|
3029
|
+
getFirstEnabledDayOfMonth(year, month) {
|
|
3030
|
+
const daysInMonth = new Date(year, month + 1, 0).getDate();
|
|
3031
|
+
for (let day = 1; day <= daysInMonth; day++) {
|
|
3032
|
+
const date = new Date(year, month, day);
|
|
3033
|
+
if (!this.isDisabled(date)) {
|
|
3034
|
+
return date;
|
|
3035
|
+
}
|
|
3036
|
+
}
|
|
3037
|
+
return null;
|
|
3038
|
+
}
|
|
3039
|
+
getISOWeek(date) {
|
|
3040
|
+
const target = new Date(date);
|
|
3041
|
+
target.setHours(0, 0, 0, 0);
|
|
3042
|
+
const day = target.getDay();
|
|
3043
|
+
const isoDay = day === 0 ? 7 : day;
|
|
3044
|
+
target.setDate(target.getDate() + (4 - isoDay));
|
|
3045
|
+
const yearStart = new Date(target.getFullYear(), 0, 1);
|
|
3046
|
+
const diffInDays = Math.floor((target.getTime() - yearStart.getTime()) / 86400000);
|
|
3047
|
+
return Math.floor(diffInDays / 7) + 1;
|
|
1531
3048
|
}
|
|
1532
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type:
|
|
1533
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: CarouselNavigationComponent, isStandalone: true, selector: "tedi-carousel-navigation", ngImport: i0, template: "<button\n tedi-button\n type=\"button\"\n variant=\"secondary\"\n [attr.aria-label]=\"translationService.track('carousel.moveBack')()\"\n (click)=\"handlePrev()\"\n>\n <tedi-icon name=\"arrow_back\" [size]=\"18\" />\n</button>\n<button\n tedi-button\n type=\"button\"\n variant=\"secondary\"\n [attr.aria-label]=\"translationService.track('carousel.moveForward')()\"\n (click)=\"handleNext()\"\n>\n <tedi-icon name=\"arrow_forward\" [size]=\"18\" />\n</button>\n", styles: ["tedi-carousel-navigation{display:flex;align-items:center}tedi-carousel-navigation{gap:var(--layout-grid-gutters-08-mobile)}@media (min-width: 576px){tedi-carousel-navigation{gap:var(--layout-grid-gutters-08-tablet)}}@media (min-width: 992px){tedi-carousel-navigation{gap:var(--layout-grid-gutters-08-desktop)}}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "[tedi-button]", inputs: ["variant", "size"] }, { kind: "component", type: IconComponent, selector: "tedi-icon", inputs: ["name", "size", "color", "background", "variant", "type", "label"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1534
|
-
}
|
|
1535
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: CarouselNavigationComponent, decorators: [{
|
|
1536
|
-
type: Component,
|
|
1537
|
-
args: [{ standalone: true, selector: "tedi-carousel-navigation", changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [ButtonComponent, IconComponent], template: "<button\n tedi-button\n type=\"button\"\n variant=\"secondary\"\n [attr.aria-label]=\"translationService.track('carousel.moveBack')()\"\n (click)=\"handlePrev()\"\n>\n <tedi-icon name=\"arrow_back\" [size]=\"18\" />\n</button>\n<button\n tedi-button\n type=\"button\"\n variant=\"secondary\"\n [attr.aria-label]=\"translationService.track('carousel.moveForward')()\"\n (click)=\"handleNext()\"\n>\n <tedi-icon name=\"arrow_forward\" [size]=\"18\" />\n</button>\n", styles: ["tedi-carousel-navigation{display:flex;align-items:center}tedi-carousel-navigation{gap:var(--layout-grid-gutters-08-mobile)}@media (min-width: 576px){tedi-carousel-navigation{gap:var(--layout-grid-gutters-08-tablet)}}@media (min-width: 992px){tedi-carousel-navigation{gap:var(--layout-grid-gutters-08-desktop)}}\n"] }]
|
|
1538
|
-
}] });
|
|
1539
|
-
|
|
1540
|
-
class CheckboxComponent {
|
|
1541
|
-
/**
|
|
1542
|
-
* Size of the checkbox.
|
|
1543
|
-
* @default default
|
|
1544
|
-
*/
|
|
1545
|
-
size = input("default");
|
|
1546
|
-
/**
|
|
1547
|
-
* Is checkbox invalid?
|
|
1548
|
-
* @default false
|
|
1549
|
-
*/
|
|
1550
|
-
invalid = input(false);
|
|
1551
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: CheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1552
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.15", type: CheckboxComponent, isStandalone: true, selector: "input[type=checkbox][tedi-checkbox]", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.tedi-checkbox--large": "size() === 'large'", "class.tedi-checkbox--invalid": "invalid()" } }, ngImport: i0, template: "", isInline: true, styles: ["input[tedi-checkbox][type=checkbox]{--_checkbox-icon-size: 1.125rem;appearance:none;position:relative;cursor:pointer;border:1px solid var(--form-checkbox-radio-default-border-default);background-color:var(--form-checkbox-radio-default-background-default);vertical-align:middle;padding:0;margin:0}input[tedi-checkbox][type=checkbox]{width:var(--form-checkbox-radio-size-responsive-mobile)}@media (min-width: 576px){input[tedi-checkbox][type=checkbox]{width:var(--form-checkbox-radio-size-responsive-tablet)}}@media (min-width: 992px){input[tedi-checkbox][type=checkbox]{width:var(--form-checkbox-radio-size-responsive-desktop)}}input[tedi-checkbox][type=checkbox]{height:var(--form-checkbox-radio-size-responsive-mobile)}@media (min-width: 576px){input[tedi-checkbox][type=checkbox]{height:var(--form-checkbox-radio-size-responsive-tablet)}}@media (min-width: 992px){input[tedi-checkbox][type=checkbox]{height:var(--form-checkbox-radio-size-responsive-desktop)}}input[tedi-checkbox][type=checkbox]{border-radius:var(--form-checkbox-radio-indicator-radius-checkbox-mobile)}@media (min-width: 576px){input[tedi-checkbox][type=checkbox]{border-radius:var(--form-checkbox-radio-indicator-radius-checkbox-tablet)}}@media (min-width: 992px){input[tedi-checkbox][type=checkbox]{border-radius:var(--form-checkbox-radio-indicator-radius-checkbox-desktop)}}@media (min-width: 576px){input[tedi-checkbox][type=checkbox]{--_checkbox-icon-size: 1rem}}input[tedi-checkbox][type=checkbox]:not(:disabled):hover{border-color:var(--form-checkbox-radio-default-border-hover);box-shadow:0 0 0 1px var(--form-checkbox-radio-default-border-hover)}input[tedi-checkbox][type=checkbox]:not(:checked):disabled{cursor:not-allowed;border-color:var(--form-general-border-disabled);background-color:var(--form-general-background-disabled)}input[tedi-checkbox][type=checkbox]:checked,input[tedi-checkbox][type=checkbox]:indeterminate{border-color:var(--form-checkbox-radio-default-border-selected);background-color:var(--form-checkbox-radio-default-background-selected)}input[tedi-checkbox][type=checkbox]:checked:disabled,input[tedi-checkbox][type=checkbox]:indeterminate:disabled{cursor:not-allowed;border-color:var(--form-checkbox-radio-default-border-selected-disabled);background-color:var(--form-checkbox-radio-default-background-selected-disabled)}input[tedi-checkbox][type=checkbox]:checked:before,input[tedi-checkbox][type=checkbox]:indeterminate:before{position:absolute;top:50%;left:50%;content:\"check\";font-size:var(--_checkbox-icon-size);font-family:Material Symbols Outlined,sans-serif;-webkit-font-smoothing:antialiased;color:var(--form-checkbox-radio-default-check-indicator-default);line-height:1;transform:translate(-50%,-50%)}input[tedi-checkbox][type=checkbox]:checked:before{content:\"check\"}input[tedi-checkbox][type=checkbox]:indeterminate:before{content:\"remove\"}input[tedi-checkbox][type=checkbox]:focus-visible{outline-width:2px;outline-offset:2px;outline-style:solid}input[tedi-checkbox][type=checkbox]:not(:checked):not(:disabled).tedi-checkbox--invalid,input[tedi-checkbox][type=checkbox]:user-invalid,input[tedi-checkbox][type=checkbox].ng-invalid.ng-touched{border-color:var(--form-general-feedback-error-border)}input[tedi-checkbox][type=checkbox]:not(:checked):not(:disabled).tedi-checkbox--invalid:hover,input[tedi-checkbox][type=checkbox]:user-invalid:hover,input[tedi-checkbox][type=checkbox].ng-invalid.ng-touched:hover{border-color:var(--form-checkbox-radio-default-border-hover)}input[tedi-checkbox][type=checkbox].tedi-checkbox--large{--_checkbox-icon-size: 1.125rem}input[tedi-checkbox][type=checkbox].tedi-checkbox--large{width:var(--form-checkbox-radio-size-large-mobile)}@media (min-width: 576px){input[tedi-checkbox][type=checkbox].tedi-checkbox--large{width:var(--form-checkbox-radio-size-large-tablet)}}@media (min-width: 992px){input[tedi-checkbox][type=checkbox].tedi-checkbox--large{width:var(--form-checkbox-radio-size-large-desktop)}}input[tedi-checkbox][type=checkbox].tedi-checkbox--large{height:var(--form-checkbox-radio-size-large-mobile)}@media (min-width: 576px){input[tedi-checkbox][type=checkbox].tedi-checkbox--large{height:var(--form-checkbox-radio-size-large-tablet)}}@media (min-width: 992px){input[tedi-checkbox][type=checkbox].tedi-checkbox--large{height:var(--form-checkbox-radio-size-large-desktop)}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
3049
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DatePickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3050
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: DatePickerComponent, isStandalone: true, selector: "tedi-date-picker", inputs: { selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, month: { classPropertyName: "month", publicName: "month", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, showNavigation: { classPropertyName: "showNavigation", publicName: "showNavigation", isSignal: true, isRequired: false, transformFunction: null }, monthMode: { classPropertyName: "monthMode", publicName: "monthMode", isSignal: true, isRequired: false, transformFunction: null }, yearMode: { classPropertyName: "yearMode", publicName: "yearMode", isSignal: true, isRequired: false, transformFunction: null }, startYear: { classPropertyName: "startYear", publicName: "startYear", isSignal: true, isRequired: false, transformFunction: null }, endYear: { classPropertyName: "endYear", publicName: "endYear", isSignal: true, isRequired: false, transformFunction: null }, inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null }, inputPlaceholder: { classPropertyName: "inputPlaceholder", publicName: "inputPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, inputState: { classPropertyName: "inputState", publicName: "inputState", isSignal: true, isRequired: false, transformFunction: null }, inputSize: { classPropertyName: "inputSize", publicName: "inputSize", isSignal: true, isRequired: false, transformFunction: null }, inputDisabled: { classPropertyName: "inputDisabled", publicName: "inputDisabled", isSignal: true, isRequired: false, transformFunction: null }, allowManualInput: { classPropertyName: "allowManualInput", publicName: "allowManualInput", isSignal: true, isRequired: false, transformFunction: null }, showWeekNumbers: { classPropertyName: "showWeekNumbers", publicName: "showWeekNumbers", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selected: "selectedChange", month: "monthChange" }, viewQueries: [{ propertyName: "inputElement", first: true, predicate: ["inputElement"], descendants: true, isSignal: true }, { propertyName: "gridElement", first: true, predicate: ["gridElement"], descendants: true, isSignal: true }, { propertyName: "popover", first: true, predicate: PopoverComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<input\n #inputElement\n type=\"text\"\n class=\"tedi-date-picker__input\"\n role=\"combobox\"\n aria-autocomplete=\"none\"\n aria-haspopup=\"dialog\"\n [class.tedi-date-picker__input--small]=\"inputSize() === 'small'\"\n [class.tedi-date-picker__input--valid]=\"inputState() === 'valid'\"\n [class.tedi-date-picker__input--error]=\"inputState() === 'error'\"\n [attr.id]=\"inputId()\"\n [attr.placeholder]=\"inputPlaceholder()\"\n [attr.aria-expanded]=\"!inputDisabled() && popover().floatUiComponent().state\"\n [attr.aria-controls]=\"uniqueId\"\n [attr.aria-readonly]=\"!allowManualInput()\"\n [readOnly]=\"!allowManualInput()\"\n [value]=\"inputValue()\"\n [disabled]=\"inputDisabled()\"\n (input)=\"onInput($event)\"\n (blur)=\"onInputBlur()\"\n (click)=\"onInputClick()\"\n/>\n<div class=\"tedi-date-picker__input-buttons\">\n @if (selected()) {\n <button\n tedi-closing-button\n type=\"button\"\n size=\"small\"\n class=\"tedi-date-picker__clear\"\n [iconSize]=\"18\"\n [attr.aria-label]=\"translationService.track('date-picker.clear-date')()\"\n [disabled]=\"inputDisabled()\"\n (click)=\"clearInput()\"\n ></button>\n <tedi-separator axis=\"vertical\" size=\"1rem\" />\n }\n <tedi-popover\n style=\"display: flex; align-items: center\"\n position=\"bottom-end\"\n [withArrow]=\"false\"\n >\n <tedi-popover-trigger>\n <button\n tedi-button\n type=\"button\"\n variant=\"neutral\"\n size=\"small\"\n class=\"tedi-date-picker__toggle\"\n [attr.aria-label]=\"\n translationService.track('date-picker.open-calendar')()\n \"\n [disabled]=\"inputDisabled()\"\n (click)=\"openCalendar()\"\n >\n <tedi-icon name=\"calendar_today\" size=\"inherit\" />\n </button>\n </tedi-popover-trigger>\n <tedi-popover-content maxWidth=\"none\" style=\"padding: 0\">\n <div\n class=\"tedi-date-picker__calendar\"\n (keydown)=\"onCalendarKeyDown($event)\"\n >\n <div class=\"tedi-date-picker__header\">\n @if (currentView() === \"calendar-grid\") {\n @if (showNavigation()) {\n <button\n tedi-button\n variant=\"neutral\"\n size=\"small\"\n class=\"tedi-date-picker__nav\"\n [attr.aria-label]=\"\n translationService.track('date-picker.go-prev-month')()\n \"\n [attr.aria-controls]=\"uniqueId\"\n (click)=\"prevMonth()\"\n [disabled]=\"!canGoPrev()\"\n >\n <tedi-icon name=\"arrow_back\" />\n </button>\n }\n\n <div class=\"tedi-date-picker__controls\">\n @if (monthMode() === \"dropdown\") {\n <tedi-dropdown\n [value]=\"month().getMonth().toString()\"\n (valueChange)=\"onMonthSelect($event)\"\n >\n <button\n tedi-dropdown-trigger\n ariaHaspopup=\"listbox\"\n class=\"tedi-date-picker__dropdown-trigger\"\n [attr.aria-label]=\"\n translationService.track('date-picker.select-month')()\n \"\n >\n {{ monthNames[month().getMonth()]() }}\n <tedi-icon\n name=\"arrow_drop_down\"\n class=\"tedi-date-picker__dropdown-arrow\"\n size=\"inherit\"\n />\n </button>\n <tedi-dropdown-content\n dropdownRole=\"listbox\"\n class=\"tedi-date-picker__dropdown-content tedi-date-picker__dropdown-content--month\"\n >\n @for (month of monthNames; track i; let i = $index) {\n <li tedi-dropdown-item [value]=\"i.toString()\">\n {{ month() }}\n </li>\n }\n </tedi-dropdown-content>\n </tedi-dropdown>\n } @else if (monthMode() === \"grid\") {\n <button\n class=\"tedi-date-picker__dropdown-trigger\"\n [attr.aria-label]=\"\n translationService.track('date-picker.select-month')()\n \"\n (click)=\"onMonthClick()\"\n >\n {{ monthNames[month().getMonth()]() }}\n <tedi-icon\n name=\"arrow_drop_down\"\n class=\"tedi-date-picker__dropdown-arrow\"\n size=\"inherit\"\n />\n </button>\n } @else if (monthMode() === \"label\") {\n <div class=\"tedi-date-picker__label\">\n {{ monthNames[month().getMonth()]() }}\n </div>\n }\n\n @if (yearMode() === \"dropdown\") {\n <tedi-dropdown\n position=\"bottom-end\"\n [value]=\"selectedYear().toString()\"\n (valueChange)=\"onYearSelect($event)\"\n >\n <button\n tedi-dropdown-trigger\n ariaHaspopup=\"listbox\"\n class=\"tedi-date-picker__dropdown-trigger\"\n [attr.aria-label]=\"\n translationService.track('date-picker.select-year')()\n \"\n >\n {{ selectedYear() }}\n <tedi-icon\n name=\"arrow_drop_down\"\n class=\"tedi-date-picker__dropdown-arrow\"\n size=\"inherit\"\n />\n </button>\n <tedi-dropdown-content\n dropdownRole=\"listbox\"\n class=\"tedi-date-picker__dropdown-content tedi-date-picker__dropdown-content--year\"\n >\n @for (year of years(); track year) {\n <li tedi-dropdown-item [value]=\"year.toString()\">\n {{ year }}\n </li>\n }\n </tedi-dropdown-content>\n </tedi-dropdown>\n } @else if (yearMode() === \"grid\") {\n <button\n class=\"tedi-date-picker__dropdown-trigger\"\n [attr.aria-label]=\"\n translationService.track('date-picker.select-year')()\n \"\n (click)=\"onYearClick()\"\n >\n {{ selectedYear() }}\n <tedi-icon\n name=\"arrow_drop_down\"\n class=\"tedi-date-picker__dropdown-arrow\"\n size=\"inherit\"\n />\n </button>\n } @else if (yearMode() === \"label\") {\n <div class=\"tedi-date-picker__label\">\n {{ selectedYear() }}\n </div>\n }\n </div>\n\n @if (showNavigation()) {\n <button\n tedi-button\n variant=\"neutral\"\n size=\"small\"\n class=\"tedi-date-picker__nav\"\n [attr.aria-label]=\"\n translationService.track('date-picker.go-next-month')()\n \"\n [attr.aria-controls]=\"uniqueId\"\n (click)=\"nextMonth()\"\n [disabled]=\"!canGoNext()\"\n >\n <tedi-icon name=\"arrow_forward\" />\n </button>\n }\n } @else if (currentView() === \"month-grid\") {\n <div class=\"tedi-date-picker__controls\">\n {{ monthNames[month().getMonth()]() }}\n </div>\n } @else if (currentView() === \"year-grid\") {\n <button\n tedi-button\n variant=\"neutral\"\n size=\"small\"\n class=\"tedi-date-picker__nav\"\n [attr.aria-label]=\"\n translationService.track('date-picker.previous-years')()\n \"\n (click)=\"prevYearPage()\"\n [disabled]=\"!hasPrevYearPage()\"\n >\n <tedi-icon name=\"arrow_back\" />\n </button>\n <div class=\"tedi-date-picker__controls\">{{ selectedYear() }}</div>\n <button\n tedi-button\n variant=\"neutral\"\n size=\"small\"\n class=\"tedi-date-picker__nav\"\n [attr.aria-label]=\"\n translationService.track('date-picker.next-years')()\n \"\n (click)=\"nextYearPage()\"\n [disabled]=\"!hasNextYearPage()\"\n >\n <tedi-icon name=\"arrow_forward\" />\n </button>\n }\n </div>\n\n @if (currentView() === \"calendar-grid\") {\n <div\n class=\"tedi-date-picker__weekdays\"\n [class.tedi-date-picker__weekdays--numbered]=\"showWeekNumbers()\"\n role=\"row\"\n >\n @if (showWeekNumbers()) {\n <div role=\"columnheader\"></div>\n }\n @for (wd of weekDays; track $index; let i = $index) {\n <div class=\"tedi-date-picker__weekday\" role=\"columnheader\">\n {{ wd() }}\n </div>\n }\n </div>\n\n <div\n #gridElement\n class=\"tedi-date-picker__grid\"\n role=\"grid\"\n [attr.id]=\"uniqueId\"\n aria-readonly=\"true\"\n >\n @for (week of weekRows(); track row; let row = $index) {\n <div\n class=\"tedi-date-picker__row\"\n [class.tedi-date-picker__row--numbered]=\"showWeekNumbers()\"\n role=\"row\"\n >\n @if (showWeekNumbers()) {\n <div\n class=\"tedi-date-picker__weeknumber\"\n role=\"gridcell\"\n aria-readonly=\"true\"\n >\n {{ weekNumbers()[row] }}\n </div>\n }\n @for (day of week; track day.date) {\n <button\n type=\"button\"\n role=\"gridcell\"\n class=\"tedi-date-picker__day\"\n [class.tedi-date-picker__day--other-month]=\"\n !day.inCurrentMonth\n \"\n [class.tedi-date-picker__day--selected]=\"\n isSelected(day.date)\n \"\n [disabled]=\"day.disabled\"\n [attr.aria-selected]=\"isSelected(day.date) ? 'true' : null\"\n [attr.aria-disabled]=\"day.disabled ? 'true' : null\"\n [attr.aria-current]=\"isToday(day.date) ? 'date' : null\"\n [attr.tabindex]=\"getTabIndex(day.date)\"\n [attr.data-date-key]=\"day.date.getTime()\"\n (keydown)=\"onDayKeydown($event, day.date)\"\n (click)=\"selectDay(day)\"\n >\n @if (isToday(day.date)) {\n <div class=\"tedi-date-picker__today\">\n {{ day.date.getDate() }}\n </div>\n } @else {\n {{ day.date.getDate() }}\n }\n </button>\n }\n </div>\n }\n </div>\n } @else if (currentView() === \"month-grid\") {\n <div class=\"tedi-date-picker__month-year-grid\" role=\"group\">\n @for (monthName of monthShortNames; track i; let i = $index) {\n <button\n type=\"button\"\n class=\"tedi-date-picker__month-year-button\"\n [class.tedi-date-picker__month-year-button--selected]=\"\n month().getMonth() === i\n \"\n (click)=\"onMonthSelect(i.toString())\"\n >\n {{ monthName() }}\n </button>\n }\n </div>\n } @else if (currentView() === \"year-grid\") {\n <div class=\"tedi-date-picker__month-year-grid\" role=\"group\">\n @for (year of pagedYears(); track year) {\n <button\n type=\"button\"\n class=\"tedi-date-picker__month-year-button\"\n [class.tedi-date-picker__month-year-button--selected]=\"\n month().getFullYear() === year\n \"\n (click)=\"onYearSelect(year.toString())\"\n >\n {{ year }}\n </button>\n }\n </div>\n }\n </div>\n </tedi-popover-content>\n </tedi-popover>\n</div>\n", styles: ["tedi-date-picker{display:flex;min-height:var(--form-field-height);gap:var(--form-field-inner-spacing);align-self:stretch;border-radius:var(--form-field-radius);border:var(--borders-01) solid var(--form-input-border-default);background:var(--form-input-background-default);padding-right:var(--form-field-padding-x-md-default)}tedi-date-picker:has(.tedi-date-picker__input:hover):not(:has(.tedi-date-picker__input:disabled)){border-color:var(--form-input-border-hover)}tedi-date-picker:has(.tedi-date-picker__input:active):not(:has(.tedi-date-picker__input:disabled)),tedi-date-picker:has(.tedi-date-picker__input:focus):not(:has(.tedi-date-picker__input:disabled)){border-color:var(--form-input-border-active);box-shadow:0 0 0 1px var(--form-input-border-active)}tedi-date-picker:has(.tedi-date-picker__input:disabled){border-color:var(--form-input-border-disabled);background:var(--form-input-background-disabled);cursor:not-allowed}tedi-date-picker:has(.tedi-date-picker__input--valid){border-color:var(--form-general-feedback-success-border)}tedi-date-picker:has(.tedi-date-picker__input--error){border-color:var(--form-general-feedback-error-border)}tedi-date-picker:has(.tedi-date-picker__input--small){min-height:var(--form-field-height-sm)}.tedi-date-picker__input{flex:1;padding-left:var(--form-field-padding-x-md-default);color:var(--form-input-text-filled);font-size:var(--body-regular-size);border:0;border-radius:var(--form-field-radius)}.tedi-date-picker__input::placeholder{color:var(--form-input-text-placeholder)}.tedi-date-picker__input:disabled{cursor:not-allowed}.tedi-date-picker__input-buttons{align-self:center;display:flex;align-items:center;justify-content:center;gap:var(--layout-grid-gutters-04)}.tedi-date-picker__clear:disabled{cursor:not-allowed}.tedi-date-picker__toggle{width:var(--button-xs-icon-size)!important;height:var(--form-field-button-height-sm)!important;border-radius:var(--button-radius-sm)!important;font-size:1.125rem!important}.tedi-date-picker__toggle:disabled{cursor:not-allowed}.tedi-date-picker__calendar{width:fit-content;display:block;border-radius:var(--card-radius-rounded);background:var(--card-background-primary);-webkit-user-select:none;user-select:none}.tedi-date-picker__header{display:flex;align-items:center;justify-content:space-between;gap:var(--layout-grid-gutters-08);padding:var(--card-padding-md-default) var(--card-padding-md-default) var(--card-padding-xs) var(--card-padding-md-default)}.tedi-date-picker__controls{display:flex;align-items:center;gap:var(--layout-grid-gutters-08);margin:0 auto}.tedi-date-picker__dropdown-trigger{display:inline-flex;align-items:center;gap:var(--layout-grid-gutters-02);padding:0;padding-left:var(--layout-grid-gutters-04);font-size:1rem;font-weight:500;color:var(--general-text-primary);background:transparent;border:0;border-radius:var(--button-radius-sm);cursor:pointer}.tedi-date-picker__dropdown-trigger:hover{color:var(--button-main-neutral-text-hover);background:var(--button-main-neutral-icon-only-background-hover)}.tedi-date-picker__dropdown-trigger:hover tedi-icon{color:var(--button-main-neutral-text-hover)}.tedi-date-picker__dropdown-trigger:active{color:var(--button-main-neutral-text-active);background:var(--button-main-neutral-icon-only-background-active)}.tedi-date-picker__dropdown-trigger:active tedi-icon{color:var(--button-main-neutral-text-active)}.tedi-date-picker__dropdown-trigger:focus-visible{outline:var(--borders-02) solid var(--primary-500);outline-offset:var(--borders-01)}.tedi-date-picker__dropdown-trigger tedi-icon{font-size:2rem;color:var(--general-icon-tertiary)}.tedi-date-picker__dropdown-content{max-height:15rem}.tedi-date-picker__dropdown-content--month{width:10rem}.tedi-date-picker__dropdown-content--year{width:8.75rem}.tedi-date-picker__label{color:var(--general-text-primary);font-weight:500}.tedi-date-picker__nav{font-size:var(--button-icon-inner-icon-only-size)!important}.tedi-date-picker__weekdays{display:grid;grid-template-columns:repeat(7,1fr);padding:0 var(--card-padding-md-default)}.tedi-date-picker__weekdays--numbered{grid-template-columns:repeat(8,1fr)}.tedi-date-picker__weekday{width:var(--form-calendar-date-width);height:var(--form-calendar-date-width);display:flex;justify-content:center;align-items:center;font-size:var(--body-small-regular-size);color:var(--general-text-tertiary);text-align:center;text-transform:uppercase;border-bottom:var(--borders-01) solid var(--general-border-primary)}.tedi-date-picker__grid{display:flex;flex-direction:column;padding:0 var(--card-padding-md-default) var(--card-padding-md-default) var(--card-padding-md-default)}.tedi-date-picker__row{display:grid;grid-template-columns:repeat(7,1fr)}.tedi-date-picker__row--numbered{grid-template-columns:repeat(8,1fr)}.tedi-date-picker__weeknumber{width:var(--form-calendar-date-width);height:var(--form-calendar-date-width);display:flex;justify-content:center;align-items:center;flex-shrink:0;color:var(--general-text-tertiary);font-size:var(--body-small-regular-size);border-right:var(--borders-01) solid var(--general-border-primary)}.tedi-date-picker__day{width:var(--form-calendar-date-width);height:var(--form-calendar-date-width);display:flex;justify-content:center;align-items:center;flex-shrink:0;border:none;background:none;cursor:pointer;color:var(--general-text-primary);font-size:var(--body-regular-size);border-radius:var(--button-radius-sm)}.tedi-date-picker__day:hover{background:var(--form-datepicker-date-hover)}.tedi-date-picker__day:active{background:var(--form-datepicker-date-active)}.tedi-date-picker__day:disabled{cursor:not-allowed;opacity:.3}.tedi-date-picker__day:focus-visible{outline:var(--borders-02) solid var(--primary-500);outline-offset:var(--borders-01)}.tedi-date-picker__day--other-month{color:var(--form-datepicker-date-text-muted)}.tedi-date-picker__day--selected{color:var(--form-datepicker-date-text-selected);border-radius:var(--button-radius-sm);background:var(--form-datepicker-date-selected)}.tedi-date-picker__day--selected:hover{background:var(--form-datepicker-date-selected)}.tedi-date-picker__day--selected .tedi-date-picker__today{border-color:var(--form-datepicker-today-border-secondary)}.tedi-date-picker__today{display:flex;width:var(--form-calendar-date-width);height:var(--form-calendar-date-width);justify-content:center;align-items:center;border-radius:var(--button-radius-default);border:var(--borders-01) solid var(--form-datepicker-today-border);flex-shrink:0}.tedi-date-picker__month-year-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--layout-grid-gutters-08);padding:var(--card-padding-md-default)}.tedi-date-picker__month-year-button{display:flex;justify-content:center;align-items:center;padding:var(--form-checkbox-radio-card-radio-padding-y) var(--form-checkbox-radio-card-radio-padding-x);border-radius:var(--form-checkbox-radio-card-radius);border:var(--borders-01) solid var(--form-checkbox-radio-card-secondary-default-border);background:var(--form-checkbox-radio-card-secondary-default-background);color:var(--form-checkbox-radio-card-primary-default-text);font-size:var(--body-regular-size)}.tedi-date-picker__month-year-button:hover{color:var(--form-checkbox-radio-card-secondary-hover-text);border-color:var(--form-checkbox-radio-card-secondary-hover-border);background:var(--form-checkbox-radio-card-secondary-hover-background)}.tedi-date-picker__month-year-button:focus-visible{outline:var(--borders-02) solid var(--primary-500);outline-offset:var(--borders-01)}.tedi-date-picker__month-year-button:disabled{color:var(--form-checkbox-radio-card-secondary-disabled-default-text);border-color:var(--form-checkbox-radio-card-secondary-disabled-default-border);background:var(--form-checkbox-radio-card-secondary-disabled-default-background);cursor:not-allowed}.tedi-date-picker__month-year-button--selected{color:var(--form-checkbox-radio-card-secondary-selected-text);border-color:var(--form-checkbox-radio-card-secondary-selected-border);box-shadow:0 0 0 1px var(--form-checkbox-radio-card-secondary-selected-border);background:var(--form-checkbox-radio-card-secondary-selected-background)}.tedi-date-picker__month-year-button--selected:disabled{color:var(--form-checkbox-radio-card-secondary-disabled-selected-text);border-color:var(--form-checkbox-radio-card-secondary-disabled-selected-border);box-shadow:0 0 0 1px var(--form-checkbox-radio-card-secondary-disabled-selected-border);background:var(--form-checkbox-radio-card-secondary-disabled-selected-background);cursor:not-allowed}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "[tedi-button]", inputs: ["variant", "size"] }, { kind: "component", type: IconComponent, selector: "tedi-icon", inputs: ["name", "size", "color", "background", "variant", "type", "label"] }, { kind: "component", type: DropdownComponent, selector: "tedi-dropdown", inputs: ["value", "position", "preventOverflow", "appendTo"], outputs: ["valueChange"] }, { kind: "directive", type: DropdownTriggerDirective, selector: "[tedi-dropdown-trigger]", inputs: ["ariaHaspopup"] }, { kind: "component", type: DropdownContentComponent, selector: "tedi-dropdown-content", inputs: ["dropdownRole"] }, { kind: "component", type: DropdownItemComponent, selector: "li[tedi-dropdown-item]", inputs: ["value", "disabled"] }, { kind: "component", type: ClosingButtonComponent, selector: "button[tedi-closing-button]", inputs: ["size", "iconSize"] }, { kind: "component", type: SeparatorComponent, selector: "tedi-separator", inputs: ["axis", "color", "variant", "dotSize", "dotFilled", "thickness", "spacing", "size"] }, { kind: "component", type: PopoverComponent, selector: "tedi-popover", inputs: ["openWith", "position", "dismissible", "hideOnScroll", "withBorder", "withArrow", "lockScroll"] }, { kind: "component", type: PopoverTriggerComponent, selector: "tedi-popover-trigger" }, { kind: "component", type: PopoverContentComponent, selector: "tedi-popover-content", inputs: ["maxWidth", "title", "showClose"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1553
3051
|
}
|
|
1554
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type:
|
|
3052
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DatePickerComponent, decorators: [{
|
|
1555
3053
|
type: Component,
|
|
1556
|
-
args: [{ standalone: true, selector: "
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
3054
|
+
args: [{ standalone: true, selector: "tedi-date-picker", encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
3055
|
+
ButtonComponent,
|
|
3056
|
+
IconComponent,
|
|
3057
|
+
DropdownComponent,
|
|
3058
|
+
DropdownTriggerDirective,
|
|
3059
|
+
DropdownContentComponent,
|
|
3060
|
+
DropdownItemComponent,
|
|
3061
|
+
ClosingButtonComponent,
|
|
3062
|
+
SeparatorComponent,
|
|
3063
|
+
PopoverComponent,
|
|
3064
|
+
PopoverTriggerComponent,
|
|
3065
|
+
PopoverContentComponent,
|
|
3066
|
+
], template: "<input\n #inputElement\n type=\"text\"\n class=\"tedi-date-picker__input\"\n role=\"combobox\"\n aria-autocomplete=\"none\"\n aria-haspopup=\"dialog\"\n [class.tedi-date-picker__input--small]=\"inputSize() === 'small'\"\n [class.tedi-date-picker__input--valid]=\"inputState() === 'valid'\"\n [class.tedi-date-picker__input--error]=\"inputState() === 'error'\"\n [attr.id]=\"inputId()\"\n [attr.placeholder]=\"inputPlaceholder()\"\n [attr.aria-expanded]=\"!inputDisabled() && popover().floatUiComponent().state\"\n [attr.aria-controls]=\"uniqueId\"\n [attr.aria-readonly]=\"!allowManualInput()\"\n [readOnly]=\"!allowManualInput()\"\n [value]=\"inputValue()\"\n [disabled]=\"inputDisabled()\"\n (input)=\"onInput($event)\"\n (blur)=\"onInputBlur()\"\n (click)=\"onInputClick()\"\n/>\n<div class=\"tedi-date-picker__input-buttons\">\n @if (selected()) {\n <button\n tedi-closing-button\n type=\"button\"\n size=\"small\"\n class=\"tedi-date-picker__clear\"\n [iconSize]=\"18\"\n [attr.aria-label]=\"translationService.track('date-picker.clear-date')()\"\n [disabled]=\"inputDisabled()\"\n (click)=\"clearInput()\"\n ></button>\n <tedi-separator axis=\"vertical\" size=\"1rem\" />\n }\n <tedi-popover\n style=\"display: flex; align-items: center\"\n position=\"bottom-end\"\n [withArrow]=\"false\"\n >\n <tedi-popover-trigger>\n <button\n tedi-button\n type=\"button\"\n variant=\"neutral\"\n size=\"small\"\n class=\"tedi-date-picker__toggle\"\n [attr.aria-label]=\"\n translationService.track('date-picker.open-calendar')()\n \"\n [disabled]=\"inputDisabled()\"\n (click)=\"openCalendar()\"\n >\n <tedi-icon name=\"calendar_today\" size=\"inherit\" />\n </button>\n </tedi-popover-trigger>\n <tedi-popover-content maxWidth=\"none\" style=\"padding: 0\">\n <div\n class=\"tedi-date-picker__calendar\"\n (keydown)=\"onCalendarKeyDown($event)\"\n >\n <div class=\"tedi-date-picker__header\">\n @if (currentView() === \"calendar-grid\") {\n @if (showNavigation()) {\n <button\n tedi-button\n variant=\"neutral\"\n size=\"small\"\n class=\"tedi-date-picker__nav\"\n [attr.aria-label]=\"\n translationService.track('date-picker.go-prev-month')()\n \"\n [attr.aria-controls]=\"uniqueId\"\n (click)=\"prevMonth()\"\n [disabled]=\"!canGoPrev()\"\n >\n <tedi-icon name=\"arrow_back\" />\n </button>\n }\n\n <div class=\"tedi-date-picker__controls\">\n @if (monthMode() === \"dropdown\") {\n <tedi-dropdown\n [value]=\"month().getMonth().toString()\"\n (valueChange)=\"onMonthSelect($event)\"\n >\n <button\n tedi-dropdown-trigger\n ariaHaspopup=\"listbox\"\n class=\"tedi-date-picker__dropdown-trigger\"\n [attr.aria-label]=\"\n translationService.track('date-picker.select-month')()\n \"\n >\n {{ monthNames[month().getMonth()]() }}\n <tedi-icon\n name=\"arrow_drop_down\"\n class=\"tedi-date-picker__dropdown-arrow\"\n size=\"inherit\"\n />\n </button>\n <tedi-dropdown-content\n dropdownRole=\"listbox\"\n class=\"tedi-date-picker__dropdown-content tedi-date-picker__dropdown-content--month\"\n >\n @for (month of monthNames; track i; let i = $index) {\n <li tedi-dropdown-item [value]=\"i.toString()\">\n {{ month() }}\n </li>\n }\n </tedi-dropdown-content>\n </tedi-dropdown>\n } @else if (monthMode() === \"grid\") {\n <button\n class=\"tedi-date-picker__dropdown-trigger\"\n [attr.aria-label]=\"\n translationService.track('date-picker.select-month')()\n \"\n (click)=\"onMonthClick()\"\n >\n {{ monthNames[month().getMonth()]() }}\n <tedi-icon\n name=\"arrow_drop_down\"\n class=\"tedi-date-picker__dropdown-arrow\"\n size=\"inherit\"\n />\n </button>\n } @else if (monthMode() === \"label\") {\n <div class=\"tedi-date-picker__label\">\n {{ monthNames[month().getMonth()]() }}\n </div>\n }\n\n @if (yearMode() === \"dropdown\") {\n <tedi-dropdown\n position=\"bottom-end\"\n [value]=\"selectedYear().toString()\"\n (valueChange)=\"onYearSelect($event)\"\n >\n <button\n tedi-dropdown-trigger\n ariaHaspopup=\"listbox\"\n class=\"tedi-date-picker__dropdown-trigger\"\n [attr.aria-label]=\"\n translationService.track('date-picker.select-year')()\n \"\n >\n {{ selectedYear() }}\n <tedi-icon\n name=\"arrow_drop_down\"\n class=\"tedi-date-picker__dropdown-arrow\"\n size=\"inherit\"\n />\n </button>\n <tedi-dropdown-content\n dropdownRole=\"listbox\"\n class=\"tedi-date-picker__dropdown-content tedi-date-picker__dropdown-content--year\"\n >\n @for (year of years(); track year) {\n <li tedi-dropdown-item [value]=\"year.toString()\">\n {{ year }}\n </li>\n }\n </tedi-dropdown-content>\n </tedi-dropdown>\n } @else if (yearMode() === \"grid\") {\n <button\n class=\"tedi-date-picker__dropdown-trigger\"\n [attr.aria-label]=\"\n translationService.track('date-picker.select-year')()\n \"\n (click)=\"onYearClick()\"\n >\n {{ selectedYear() }}\n <tedi-icon\n name=\"arrow_drop_down\"\n class=\"tedi-date-picker__dropdown-arrow\"\n size=\"inherit\"\n />\n </button>\n } @else if (yearMode() === \"label\") {\n <div class=\"tedi-date-picker__label\">\n {{ selectedYear() }}\n </div>\n }\n </div>\n\n @if (showNavigation()) {\n <button\n tedi-button\n variant=\"neutral\"\n size=\"small\"\n class=\"tedi-date-picker__nav\"\n [attr.aria-label]=\"\n translationService.track('date-picker.go-next-month')()\n \"\n [attr.aria-controls]=\"uniqueId\"\n (click)=\"nextMonth()\"\n [disabled]=\"!canGoNext()\"\n >\n <tedi-icon name=\"arrow_forward\" />\n </button>\n }\n } @else if (currentView() === \"month-grid\") {\n <div class=\"tedi-date-picker__controls\">\n {{ monthNames[month().getMonth()]() }}\n </div>\n } @else if (currentView() === \"year-grid\") {\n <button\n tedi-button\n variant=\"neutral\"\n size=\"small\"\n class=\"tedi-date-picker__nav\"\n [attr.aria-label]=\"\n translationService.track('date-picker.previous-years')()\n \"\n (click)=\"prevYearPage()\"\n [disabled]=\"!hasPrevYearPage()\"\n >\n <tedi-icon name=\"arrow_back\" />\n </button>\n <div class=\"tedi-date-picker__controls\">{{ selectedYear() }}</div>\n <button\n tedi-button\n variant=\"neutral\"\n size=\"small\"\n class=\"tedi-date-picker__nav\"\n [attr.aria-label]=\"\n translationService.track('date-picker.next-years')()\n \"\n (click)=\"nextYearPage()\"\n [disabled]=\"!hasNextYearPage()\"\n >\n <tedi-icon name=\"arrow_forward\" />\n </button>\n }\n </div>\n\n @if (currentView() === \"calendar-grid\") {\n <div\n class=\"tedi-date-picker__weekdays\"\n [class.tedi-date-picker__weekdays--numbered]=\"showWeekNumbers()\"\n role=\"row\"\n >\n @if (showWeekNumbers()) {\n <div role=\"columnheader\"></div>\n }\n @for (wd of weekDays; track $index; let i = $index) {\n <div class=\"tedi-date-picker__weekday\" role=\"columnheader\">\n {{ wd() }}\n </div>\n }\n </div>\n\n <div\n #gridElement\n class=\"tedi-date-picker__grid\"\n role=\"grid\"\n [attr.id]=\"uniqueId\"\n aria-readonly=\"true\"\n >\n @for (week of weekRows(); track row; let row = $index) {\n <div\n class=\"tedi-date-picker__row\"\n [class.tedi-date-picker__row--numbered]=\"showWeekNumbers()\"\n role=\"row\"\n >\n @if (showWeekNumbers()) {\n <div\n class=\"tedi-date-picker__weeknumber\"\n role=\"gridcell\"\n aria-readonly=\"true\"\n >\n {{ weekNumbers()[row] }}\n </div>\n }\n @for (day of week; track day.date) {\n <button\n type=\"button\"\n role=\"gridcell\"\n class=\"tedi-date-picker__day\"\n [class.tedi-date-picker__day--other-month]=\"\n !day.inCurrentMonth\n \"\n [class.tedi-date-picker__day--selected]=\"\n isSelected(day.date)\n \"\n [disabled]=\"day.disabled\"\n [attr.aria-selected]=\"isSelected(day.date) ? 'true' : null\"\n [attr.aria-disabled]=\"day.disabled ? 'true' : null\"\n [attr.aria-current]=\"isToday(day.date) ? 'date' : null\"\n [attr.tabindex]=\"getTabIndex(day.date)\"\n [attr.data-date-key]=\"day.date.getTime()\"\n (keydown)=\"onDayKeydown($event, day.date)\"\n (click)=\"selectDay(day)\"\n >\n @if (isToday(day.date)) {\n <div class=\"tedi-date-picker__today\">\n {{ day.date.getDate() }}\n </div>\n } @else {\n {{ day.date.getDate() }}\n }\n </button>\n }\n </div>\n }\n </div>\n } @else if (currentView() === \"month-grid\") {\n <div class=\"tedi-date-picker__month-year-grid\" role=\"group\">\n @for (monthName of monthShortNames; track i; let i = $index) {\n <button\n type=\"button\"\n class=\"tedi-date-picker__month-year-button\"\n [class.tedi-date-picker__month-year-button--selected]=\"\n month().getMonth() === i\n \"\n (click)=\"onMonthSelect(i.toString())\"\n >\n {{ monthName() }}\n </button>\n }\n </div>\n } @else if (currentView() === \"year-grid\") {\n <div class=\"tedi-date-picker__month-year-grid\" role=\"group\">\n @for (year of pagedYears(); track year) {\n <button\n type=\"button\"\n class=\"tedi-date-picker__month-year-button\"\n [class.tedi-date-picker__month-year-button--selected]=\"\n month().getFullYear() === year\n \"\n (click)=\"onYearSelect(year.toString())\"\n >\n {{ year }}\n </button>\n }\n </div>\n }\n </div>\n </tedi-popover-content>\n </tedi-popover>\n</div>\n", styles: ["tedi-date-picker{display:flex;min-height:var(--form-field-height);gap:var(--form-field-inner-spacing);align-self:stretch;border-radius:var(--form-field-radius);border:var(--borders-01) solid var(--form-input-border-default);background:var(--form-input-background-default);padding-right:var(--form-field-padding-x-md-default)}tedi-date-picker:has(.tedi-date-picker__input:hover):not(:has(.tedi-date-picker__input:disabled)){border-color:var(--form-input-border-hover)}tedi-date-picker:has(.tedi-date-picker__input:active):not(:has(.tedi-date-picker__input:disabled)),tedi-date-picker:has(.tedi-date-picker__input:focus):not(:has(.tedi-date-picker__input:disabled)){border-color:var(--form-input-border-active);box-shadow:0 0 0 1px var(--form-input-border-active)}tedi-date-picker:has(.tedi-date-picker__input:disabled){border-color:var(--form-input-border-disabled);background:var(--form-input-background-disabled);cursor:not-allowed}tedi-date-picker:has(.tedi-date-picker__input--valid){border-color:var(--form-general-feedback-success-border)}tedi-date-picker:has(.tedi-date-picker__input--error){border-color:var(--form-general-feedback-error-border)}tedi-date-picker:has(.tedi-date-picker__input--small){min-height:var(--form-field-height-sm)}.tedi-date-picker__input{flex:1;padding-left:var(--form-field-padding-x-md-default);color:var(--form-input-text-filled);font-size:var(--body-regular-size);border:0;border-radius:var(--form-field-radius)}.tedi-date-picker__input::placeholder{color:var(--form-input-text-placeholder)}.tedi-date-picker__input:disabled{cursor:not-allowed}.tedi-date-picker__input-buttons{align-self:center;display:flex;align-items:center;justify-content:center;gap:var(--layout-grid-gutters-04)}.tedi-date-picker__clear:disabled{cursor:not-allowed}.tedi-date-picker__toggle{width:var(--button-xs-icon-size)!important;height:var(--form-field-button-height-sm)!important;border-radius:var(--button-radius-sm)!important;font-size:1.125rem!important}.tedi-date-picker__toggle:disabled{cursor:not-allowed}.tedi-date-picker__calendar{width:fit-content;display:block;border-radius:var(--card-radius-rounded);background:var(--card-background-primary);-webkit-user-select:none;user-select:none}.tedi-date-picker__header{display:flex;align-items:center;justify-content:space-between;gap:var(--layout-grid-gutters-08);padding:var(--card-padding-md-default) var(--card-padding-md-default) var(--card-padding-xs) var(--card-padding-md-default)}.tedi-date-picker__controls{display:flex;align-items:center;gap:var(--layout-grid-gutters-08);margin:0 auto}.tedi-date-picker__dropdown-trigger{display:inline-flex;align-items:center;gap:var(--layout-grid-gutters-02);padding:0;padding-left:var(--layout-grid-gutters-04);font-size:1rem;font-weight:500;color:var(--general-text-primary);background:transparent;border:0;border-radius:var(--button-radius-sm);cursor:pointer}.tedi-date-picker__dropdown-trigger:hover{color:var(--button-main-neutral-text-hover);background:var(--button-main-neutral-icon-only-background-hover)}.tedi-date-picker__dropdown-trigger:hover tedi-icon{color:var(--button-main-neutral-text-hover)}.tedi-date-picker__dropdown-trigger:active{color:var(--button-main-neutral-text-active);background:var(--button-main-neutral-icon-only-background-active)}.tedi-date-picker__dropdown-trigger:active tedi-icon{color:var(--button-main-neutral-text-active)}.tedi-date-picker__dropdown-trigger:focus-visible{outline:var(--borders-02) solid var(--primary-500);outline-offset:var(--borders-01)}.tedi-date-picker__dropdown-trigger tedi-icon{font-size:2rem;color:var(--general-icon-tertiary)}.tedi-date-picker__dropdown-content{max-height:15rem}.tedi-date-picker__dropdown-content--month{width:10rem}.tedi-date-picker__dropdown-content--year{width:8.75rem}.tedi-date-picker__label{color:var(--general-text-primary);font-weight:500}.tedi-date-picker__nav{font-size:var(--button-icon-inner-icon-only-size)!important}.tedi-date-picker__weekdays{display:grid;grid-template-columns:repeat(7,1fr);padding:0 var(--card-padding-md-default)}.tedi-date-picker__weekdays--numbered{grid-template-columns:repeat(8,1fr)}.tedi-date-picker__weekday{width:var(--form-calendar-date-width);height:var(--form-calendar-date-width);display:flex;justify-content:center;align-items:center;font-size:var(--body-small-regular-size);color:var(--general-text-tertiary);text-align:center;text-transform:uppercase;border-bottom:var(--borders-01) solid var(--general-border-primary)}.tedi-date-picker__grid{display:flex;flex-direction:column;padding:0 var(--card-padding-md-default) var(--card-padding-md-default) var(--card-padding-md-default)}.tedi-date-picker__row{display:grid;grid-template-columns:repeat(7,1fr)}.tedi-date-picker__row--numbered{grid-template-columns:repeat(8,1fr)}.tedi-date-picker__weeknumber{width:var(--form-calendar-date-width);height:var(--form-calendar-date-width);display:flex;justify-content:center;align-items:center;flex-shrink:0;color:var(--general-text-tertiary);font-size:var(--body-small-regular-size);border-right:var(--borders-01) solid var(--general-border-primary)}.tedi-date-picker__day{width:var(--form-calendar-date-width);height:var(--form-calendar-date-width);display:flex;justify-content:center;align-items:center;flex-shrink:0;border:none;background:none;cursor:pointer;color:var(--general-text-primary);font-size:var(--body-regular-size);border-radius:var(--button-radius-sm)}.tedi-date-picker__day:hover{background:var(--form-datepicker-date-hover)}.tedi-date-picker__day:active{background:var(--form-datepicker-date-active)}.tedi-date-picker__day:disabled{cursor:not-allowed;opacity:.3}.tedi-date-picker__day:focus-visible{outline:var(--borders-02) solid var(--primary-500);outline-offset:var(--borders-01)}.tedi-date-picker__day--other-month{color:var(--form-datepicker-date-text-muted)}.tedi-date-picker__day--selected{color:var(--form-datepicker-date-text-selected);border-radius:var(--button-radius-sm);background:var(--form-datepicker-date-selected)}.tedi-date-picker__day--selected:hover{background:var(--form-datepicker-date-selected)}.tedi-date-picker__day--selected .tedi-date-picker__today{border-color:var(--form-datepicker-today-border-secondary)}.tedi-date-picker__today{display:flex;width:var(--form-calendar-date-width);height:var(--form-calendar-date-width);justify-content:center;align-items:center;border-radius:var(--button-radius-default);border:var(--borders-01) solid var(--form-datepicker-today-border);flex-shrink:0}.tedi-date-picker__month-year-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--layout-grid-gutters-08);padding:var(--card-padding-md-default)}.tedi-date-picker__month-year-button{display:flex;justify-content:center;align-items:center;padding:var(--form-checkbox-radio-card-radio-padding-y) var(--form-checkbox-radio-card-radio-padding-x);border-radius:var(--form-checkbox-radio-card-radius);border:var(--borders-01) solid var(--form-checkbox-radio-card-secondary-default-border);background:var(--form-checkbox-radio-card-secondary-default-background);color:var(--form-checkbox-radio-card-primary-default-text);font-size:var(--body-regular-size)}.tedi-date-picker__month-year-button:hover{color:var(--form-checkbox-radio-card-secondary-hover-text);border-color:var(--form-checkbox-radio-card-secondary-hover-border);background:var(--form-checkbox-radio-card-secondary-hover-background)}.tedi-date-picker__month-year-button:focus-visible{outline:var(--borders-02) solid var(--primary-500);outline-offset:var(--borders-01)}.tedi-date-picker__month-year-button:disabled{color:var(--form-checkbox-radio-card-secondary-disabled-default-text);border-color:var(--form-checkbox-radio-card-secondary-disabled-default-border);background:var(--form-checkbox-radio-card-secondary-disabled-default-background);cursor:not-allowed}.tedi-date-picker__month-year-button--selected{color:var(--form-checkbox-radio-card-secondary-selected-text);border-color:var(--form-checkbox-radio-card-secondary-selected-border);box-shadow:0 0 0 1px var(--form-checkbox-radio-card-secondary-selected-border);background:var(--form-checkbox-radio-card-secondary-selected-background)}.tedi-date-picker__month-year-button--selected:disabled{color:var(--form-checkbox-radio-card-secondary-disabled-selected-text);border-color:var(--form-checkbox-radio-card-secondary-disabled-selected-border);box-shadow:0 0 0 1px var(--form-checkbox-radio-card-secondary-disabled-selected-border);background:var(--form-checkbox-radio-card-secondary-disabled-selected-background);cursor:not-allowed}\n"] }]
|
|
1560
3067
|
}] });
|
|
1561
3068
|
|
|
1562
3069
|
class FeedbackTextComponent {
|
|
@@ -2010,103 +3517,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
2010
3517
|
}, template: "<ng-content></ng-content>", styles: [".row{display:grid}.row--cols-auto{--_grid-col-size-calc: calc((100% - var(--_grid-gap) * (12 - 1)) / 12);--_grid-col-min-size-calc: min(100%, max(var(--_grid-col-width), var(--_grid-col-size-calc)));grid-template-columns:repeat(auto-fit,minmax(var(--_grid-col-min-size-calc),1fr))}.row--cols-1{grid-template-columns:repeat(1,1fr)}.row--cols-2{grid-template-columns:repeat(2,1fr)}.row--cols-3{grid-template-columns:repeat(3,1fr)}.row--cols-4{grid-template-columns:repeat(4,1fr)}.row--cols-5{grid-template-columns:repeat(5,1fr)}.row--cols-6{grid-template-columns:repeat(6,1fr)}.row--cols-7{grid-template-columns:repeat(7,1fr)}.row--cols-8{grid-template-columns:repeat(8,1fr)}.row--cols-9{grid-template-columns:repeat(9,1fr)}.row--cols-10{grid-template-columns:repeat(10,1fr)}.row--cols-11{grid-template-columns:repeat(11,1fr)}.row--cols-12{grid-template-columns:repeat(12,1fr)}.row--justify-items-start{justify-items:start}.row--justify-items-end{justify-items:end}.row--justify-items-center{justify-items:center}.row--justify-items-stretch{justify-items:stretch}.row--align-items-start{align-items:start}.row--align-items-end{align-items:end}.row--align-items-center{align-items:center}.row--align-items-stretch{align-items:stretch}.g-0{gap:0}.gx-0{column-gap:0}.gy-0{row-gap:0}.g-1{gap:.25rem}.gx-1{column-gap:.25rem}.gy-1{row-gap:.25rem}.g-2{gap:.5rem}.gx-2{column-gap:.5rem}.gy-2{row-gap:.5rem}.g-3{gap:1rem}.gx-3{column-gap:1rem}.gy-3{row-gap:1rem}.g-4{gap:1.5rem}.gx-4{column-gap:1.5rem}.gy-4{row-gap:1.5rem}.g-5{gap:3rem}.gx-5{column-gap:3rem}.gy-5{row-gap:3rem}\n"] }]
|
|
2011
3518
|
}] });
|
|
2012
3519
|
|
|
2013
|
-
class SeparatorComponent {
|
|
2014
|
-
/**
|
|
2015
|
-
* Axis of separator.
|
|
2016
|
-
*/
|
|
2017
|
-
axis = input("horizontal");
|
|
2018
|
-
/**
|
|
2019
|
-
* Color of separator
|
|
2020
|
-
*/
|
|
2021
|
-
color = input("primary");
|
|
2022
|
-
/**
|
|
2023
|
-
* Separator style variant.
|
|
2024
|
-
*/
|
|
2025
|
-
variant = input();
|
|
2026
|
-
/**
|
|
2027
|
-
* Dot size. Only used when variant is "dot-only".
|
|
2028
|
-
*/
|
|
2029
|
-
dotSize = input();
|
|
2030
|
-
/**
|
|
2031
|
-
* Is dot filled? Only used when variant is "dot-only".
|
|
2032
|
-
*/
|
|
2033
|
-
dotFilled = input(true);
|
|
2034
|
-
/**
|
|
2035
|
-
* Thickness in pixels (ignored if variant is used).
|
|
2036
|
-
* @default 1
|
|
2037
|
-
*/
|
|
2038
|
-
thickness = input(1);
|
|
2039
|
-
/**
|
|
2040
|
-
* Spacing applied based on the axis:
|
|
2041
|
-
* - For horizontal axis, spacing is applied to top and bottom of the separator.
|
|
2042
|
-
* - For vertical axis, spacing is applied to left and right of the separator.
|
|
2043
|
-
*/
|
|
2044
|
-
spacing = input();
|
|
2045
|
-
/**
|
|
2046
|
-
* Size of separator based on the axis:
|
|
2047
|
-
* - For horizontal axis, size defines width.
|
|
2048
|
-
* - For vertical axis, size defines height (when using percentages, then parent container must have height set).
|
|
2049
|
-
* @default 100%
|
|
2050
|
-
*/
|
|
2051
|
-
size = input("100%");
|
|
2052
|
-
// eslint-disable-next-line complexity
|
|
2053
|
-
classes = computed(() => {
|
|
2054
|
-
const classList = [
|
|
2055
|
-
"tedi-separator",
|
|
2056
|
-
`tedi-separator--${this.color()}`,
|
|
2057
|
-
`tedi-separator--${this.axis()}`,
|
|
2058
|
-
];
|
|
2059
|
-
if (this.variant()) {
|
|
2060
|
-
classList.push(`tedi-separator--${this.variant()}`);
|
|
2061
|
-
}
|
|
2062
|
-
if (this.variant() && this.dotSize()) {
|
|
2063
|
-
classList.push(`tedi-separator--${this.variant()}-${this.dotSize()}`);
|
|
2064
|
-
}
|
|
2065
|
-
if (this.variant() === "dot-only" && this.dotFilled()) {
|
|
2066
|
-
classList.push(`tedi-separator--${this.variant()}-filled`);
|
|
2067
|
-
}
|
|
2068
|
-
else {
|
|
2069
|
-
classList.push(`tedi-separator--${this.variant()}-outlined`);
|
|
2070
|
-
}
|
|
2071
|
-
if (this.thickness()) {
|
|
2072
|
-
classList.push(`tedi-separator--thickness-${this.thickness()}`);
|
|
2073
|
-
}
|
|
2074
|
-
const spacing = this.spacing();
|
|
2075
|
-
if (spacing && typeof spacing === "number") {
|
|
2076
|
-
classList.push(`tedi-separator--spacing-${spacing}`.replace(".", "-"));
|
|
2077
|
-
}
|
|
2078
|
-
else if (spacing) {
|
|
2079
|
-
if (this.axis() === "horizontal") {
|
|
2080
|
-
if (spacing.top) {
|
|
2081
|
-
classList.push(`tedi-separator--top-${spacing.top}`.replace(".", "-"));
|
|
2082
|
-
}
|
|
2083
|
-
if (spacing.bottom) {
|
|
2084
|
-
classList.push(`tedi-separator--bottom-${spacing.bottom}`.replace(".", "-"));
|
|
2085
|
-
}
|
|
2086
|
-
}
|
|
2087
|
-
else {
|
|
2088
|
-
if (spacing.left) {
|
|
2089
|
-
classList.push(`tedi-separator--left-${spacing.left}`.replace(".", "-"));
|
|
2090
|
-
}
|
|
2091
|
-
if (spacing.right) {
|
|
2092
|
-
classList.push(`tedi-separator--right-${spacing.right}`.replace(".", "-"));
|
|
2093
|
-
}
|
|
2094
|
-
}
|
|
2095
|
-
}
|
|
2096
|
-
return classList.join(" ");
|
|
2097
|
-
});
|
|
2098
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: SeparatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2099
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.15", type: SeparatorComponent, isStandalone: true, selector: "tedi-separator", inputs: { axis: { classPropertyName: "axis", publicName: "axis", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, dotSize: { classPropertyName: "dotSize", publicName: "dotSize", isSignal: true, isRequired: false, transformFunction: null }, dotFilled: { classPropertyName: "dotFilled", publicName: "dotFilled", isSignal: true, isRequired: false, transformFunction: null }, thickness: { classPropertyName: "thickness", publicName: "thickness", isSignal: true, isRequired: false, transformFunction: null }, spacing: { classPropertyName: "spacing", publicName: "spacing", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "style.width": "variant() === 'dot-only' ? null : axis() === 'horizontal' ? size() : '0px'", "style.height": "variant() === 'dot-only' ? null : axis() === 'vertical' ? size() : '0px'" } }, ngImport: i0, template: "", isInline: true, styles: [".tedi-separator{display:block;position:relative;margin:0;border:0;border-top-width:1px;border-style:solid}@media print{.tedi-separator{filter:grayscale(1)}}.tedi-separator--vertical{border-top-width:0;border-left-width:1px}.tedi-separator--primary{border-color:var(--general-border-primary)}.tedi-separator--secondary{border-color:var(--general-border-secondary)}.tedi-separator--accent{border-color:var(--general-border-accent)}.tedi-separator--block{display:block}.tedi-separator--inline{display:inline}.tedi-separator--dotted:before,.tedi-separator--dotted-small:before{position:absolute;top:1.25rem;content:\"\";background-color:var(--general-border-primary);border-radius:100%;transform:translate(-8px)}@media print{.tedi-separator--dotted:before,.tedi-separator--dotted-small:before{filter:grayscale(1)}}.tedi-separator--dotted:before,.tedi-separator--dotted-small:before{height:var(--separator-dotted-dot-lg-mobile)}@media (min-width: 576px){.tedi-separator--dotted:before,.tedi-separator--dotted-small:before{height:var(--separator-dotted-dot-lg-tablet)}}@media (min-width: 992px){.tedi-separator--dotted:before,.tedi-separator--dotted-small:before{height:var(--separator-dotted-dot-lg-desktop)}}.tedi-separator--dotted:before,.tedi-separator--dotted-small:before{width:var(--separator-dotted-dot-lg-mobile)}@media (min-width: 576px){.tedi-separator--dotted:before,.tedi-separator--dotted-small:before{width:var(--separator-dotted-dot-lg-tablet)}}@media (min-width: 992px){.tedi-separator--dotted:before,.tedi-separator--dotted-small:before{width:var(--separator-dotted-dot-lg-desktop)}}.tedi-separator--dotted.tedi-separator--secondary:before,.tedi-separator--dotted-small.tedi-separator--secondary:before{background-color:var(--general-border-secondary)}.tedi-separator--dotted.tedi-separator--accent:before,.tedi-separator--dotted-small.tedi-separator--accent:before{background-color:var(--general-border-accent)}.tedi-separator--dotted-small:before{top:1.5rem;transform:translate(-5px)}.tedi-separator--dotted-small:before{height:var(--separator-dotted-dot-md-mobile)}@media (min-width: 576px){.tedi-separator--dotted-small:before{height:var(--separator-dotted-dot-md-tablet)}}@media (min-width: 992px){.tedi-separator--dotted-small:before{height:var(--separator-dotted-dot-md-desktop)}}.tedi-separator--dotted-small:before{width:var(--separator-dotted-dot-md-mobile)}@media (min-width: 576px){.tedi-separator--dotted-small:before{width:var(--separator-dotted-dot-md-tablet)}}@media (min-width: 992px){.tedi-separator--dotted-small:before{width:var(--separator-dotted-dot-md-desktop)}}.tedi-separator--horizontal.tedi-separator--top-0{margin-top:0}.tedi-separator--horizontal.tedi-separator--bottom-0{margin-bottom:0}.tedi-separator--vertical.tedi-separator--left-0{margin-left:0}.tedi-separator--vertical.tedi-separator--right-0{margin-right:0}.tedi-separator--horizontal.tedi-separator--spacing-0:not(.tedi-separator--dot-only){margin-top:0;margin-bottom:0}.tedi-separator--horizontal.tedi-separator--dot-only.tedi-separator--spacing-0,.tedi-separator--vertical.tedi-separator--spacing-0{margin-right:0;margin-left:0}.tedi-separator--horizontal.tedi-separator--top-0-25{margin-top:.25rem}.tedi-separator--horizontal.tedi-separator--bottom-0-25{margin-bottom:.25rem}.tedi-separator--vertical.tedi-separator--left-0-25{margin-left:.25rem}.tedi-separator--vertical.tedi-separator--right-0-25{margin-right:.25rem}.tedi-separator--horizontal.tedi-separator--spacing-0-25:not(.tedi-separator--dot-only){margin-top:.25rem;margin-bottom:.25rem}.tedi-separator--horizontal.tedi-separator--dot-only.tedi-separator--spacing-0-25,.tedi-separator--vertical.tedi-separator--spacing-0-25{margin-right:.25rem;margin-left:.25rem}.tedi-separator--horizontal.tedi-separator--top-0-5{margin-top:.5rem}.tedi-separator--horizontal.tedi-separator--bottom-0-5{margin-bottom:.5rem}.tedi-separator--vertical.tedi-separator--left-0-5{margin-left:.5rem}.tedi-separator--vertical.tedi-separator--right-0-5{margin-right:.5rem}.tedi-separator--horizontal.tedi-separator--spacing-0-5:not(.tedi-separator--dot-only){margin-top:.5rem;margin-bottom:.5rem}.tedi-separator--horizontal.tedi-separator--dot-only.tedi-separator--spacing-0-5,.tedi-separator--vertical.tedi-separator--spacing-0-5{margin-right:.5rem;margin-left:.5rem}.tedi-separator--horizontal.tedi-separator--top-0-75{margin-top:.75rem}.tedi-separator--horizontal.tedi-separator--bottom-0-75{margin-bottom:.75rem}.tedi-separator--vertical.tedi-separator--left-0-75{margin-left:.75rem}.tedi-separator--vertical.tedi-separator--right-0-75{margin-right:.75rem}.tedi-separator--horizontal.tedi-separator--spacing-0-75:not(.tedi-separator--dot-only){margin-top:.75rem;margin-bottom:.75rem}.tedi-separator--horizontal.tedi-separator--dot-only.tedi-separator--spacing-0-75,.tedi-separator--vertical.tedi-separator--spacing-0-75{margin-right:.75rem;margin-left:.75rem}.tedi-separator--horizontal.tedi-separator--top-1{margin-top:1rem}.tedi-separator--horizontal.tedi-separator--bottom-1{margin-bottom:1rem}.tedi-separator--vertical.tedi-separator--left-1{margin-left:1rem}.tedi-separator--vertical.tedi-separator--right-1{margin-right:1rem}.tedi-separator--horizontal.tedi-separator--spacing-1:not(.tedi-separator--dot-only){margin-top:1rem;margin-bottom:1rem}.tedi-separator--horizontal.tedi-separator--dot-only.tedi-separator--spacing-1,.tedi-separator--vertical.tedi-separator--spacing-1{margin-right:1rem;margin-left:1rem}.tedi-separator--horizontal.tedi-separator--top-1-25{margin-top:1.25rem}.tedi-separator--horizontal.tedi-separator--bottom-1-25{margin-bottom:1.25rem}.tedi-separator--vertical.tedi-separator--left-1-25{margin-left:1.25rem}.tedi-separator--vertical.tedi-separator--right-1-25{margin-right:1.25rem}.tedi-separator--horizontal.tedi-separator--spacing-1-25:not(.tedi-separator--dot-only){margin-top:1.25rem;margin-bottom:1.25rem}.tedi-separator--horizontal.tedi-separator--dot-only.tedi-separator--spacing-1-25,.tedi-separator--vertical.tedi-separator--spacing-1-25{margin-right:1.25rem;margin-left:1.25rem}.tedi-separator--horizontal.tedi-separator--top-1-5{margin-top:1.5rem}.tedi-separator--horizontal.tedi-separator--bottom-1-5{margin-bottom:1.5rem}.tedi-separator--vertical.tedi-separator--left-1-5{margin-left:1.5rem}.tedi-separator--vertical.tedi-separator--right-1-5{margin-right:1.5rem}.tedi-separator--horizontal.tedi-separator--spacing-1-5:not(.tedi-separator--dot-only){margin-top:1.5rem;margin-bottom:1.5rem}.tedi-separator--horizontal.tedi-separator--dot-only.tedi-separator--spacing-1-5,.tedi-separator--vertical.tedi-separator--spacing-1-5{margin-right:1.5rem;margin-left:1.5rem}.tedi-separator--horizontal.tedi-separator--top-1-75{margin-top:1.75rem}.tedi-separator--horizontal.tedi-separator--bottom-1-75{margin-bottom:1.75rem}.tedi-separator--vertical.tedi-separator--left-1-75{margin-left:1.75rem}.tedi-separator--vertical.tedi-separator--right-1-75{margin-right:1.75rem}.tedi-separator--horizontal.tedi-separator--spacing-1-75:not(.tedi-separator--dot-only){margin-top:1.75rem;margin-bottom:1.75rem}.tedi-separator--horizontal.tedi-separator--dot-only.tedi-separator--spacing-1-75,.tedi-separator--vertical.tedi-separator--spacing-1-75{margin-right:1.75rem;margin-left:1.75rem}.tedi-separator--horizontal.tedi-separator--top-2{margin-top:2rem}.tedi-separator--horizontal.tedi-separator--bottom-2{margin-bottom:2rem}.tedi-separator--vertical.tedi-separator--left-2{margin-left:2rem}.tedi-separator--vertical.tedi-separator--right-2{margin-right:2rem}.tedi-separator--horizontal.tedi-separator--spacing-2:not(.tedi-separator--dot-only){margin-top:2rem;margin-bottom:2rem}.tedi-separator--horizontal.tedi-separator--dot-only.tedi-separator--spacing-2,.tedi-separator--vertical.tedi-separator--spacing-2{margin-right:2rem;margin-left:2rem}.tedi-separator--horizontal.tedi-separator--top-2-5{margin-top:2.5rem}.tedi-separator--horizontal.tedi-separator--bottom-2-5{margin-bottom:2.5rem}.tedi-separator--vertical.tedi-separator--left-2-5{margin-left:2.5rem}.tedi-separator--vertical.tedi-separator--right-2-5{margin-right:2.5rem}.tedi-separator--horizontal.tedi-separator--spacing-2-5:not(.tedi-separator--dot-only){margin-top:2.5rem;margin-bottom:2.5rem}.tedi-separator--horizontal.tedi-separator--dot-only.tedi-separator--spacing-2-5,.tedi-separator--vertical.tedi-separator--spacing-2-5{margin-right:2.5rem;margin-left:2.5rem}.tedi-separator--horizontal.tedi-separator--top-5{margin-top:5rem}.tedi-separator--horizontal.tedi-separator--bottom-5{margin-bottom:5rem}.tedi-separator--vertical.tedi-separator--left-5{margin-left:5rem}.tedi-separator--vertical.tedi-separator--right-5{margin-right:5rem}.tedi-separator--horizontal.tedi-separator--spacing-5:not(.tedi-separator--dot-only){margin-top:5rem;margin-bottom:5rem}.tedi-separator--horizontal.tedi-separator--dot-only.tedi-separator--spacing-5,.tedi-separator--vertical.tedi-separator--spacing-5{margin-right:5rem;margin-left:5rem}.tedi-separator.tedi-separator--thickness-1{border-top-width:1px}.tedi-separator--vertical.tedi-separator--thickness-1{border-left-width:1px}.tedi-separator.tedi-separator--thickness-2{border-top-width:2px}.tedi-separator--vertical.tedi-separator--thickness-2{border-left-width:2px}.tedi-separator--dot-only{position:relative;display:inline-block;vertical-align:middle;border:none}.tedi-separator--dot-only:before{position:relative;display:block;content:\"\";border-radius:100%}@media print{.tedi-separator--dot-only:before{filter:grayscale(1)}}.tedi-separator--dot-only:before{height:var(--separator-dotted-dot-sm-mobile)}@media (min-width: 576px){.tedi-separator--dot-only:before{height:var(--separator-dotted-dot-sm-tablet)}}@media (min-width: 992px){.tedi-separator--dot-only:before{height:var(--separator-dotted-dot-sm-desktop)}}.tedi-separator--dot-only:before{width:var(--separator-dotted-dot-sm-mobile)}@media (min-width: 576px){.tedi-separator--dot-only:before{width:var(--separator-dotted-dot-sm-tablet)}}@media (min-width: 992px){.tedi-separator--dot-only:before{width:var(--separator-dotted-dot-sm-desktop)}}.tedi-separator--dot-only.tedi-separator--dot-only-extra-small:before{width:var(--separator-dotted-dot-xs-mobile)}@media (min-width: 576px){.tedi-separator--dot-only.tedi-separator--dot-only-extra-small:before{width:var(--separator-dotted-dot-xs-tablet)}}@media (min-width: 992px){.tedi-separator--dot-only.tedi-separator--dot-only-extra-small:before{width:var(--separator-dotted-dot-xs-desktop)}}.tedi-separator--dot-only.tedi-separator--dot-only-extra-small:before{height:var(--separator-dotted-dot-xs-mobile)}@media (min-width: 576px){.tedi-separator--dot-only.tedi-separator--dot-only-extra-small:before{height:var(--separator-dotted-dot-xs-tablet)}}@media (min-width: 992px){.tedi-separator--dot-only.tedi-separator--dot-only-extra-small:before{height:var(--separator-dotted-dot-xs-desktop)}}.tedi-separator--dot-only.tedi-separator--dot-only-small:before{width:var(--separator-dotted-dot-sm-mobile)}@media (min-width: 576px){.tedi-separator--dot-only.tedi-separator--dot-only-small:before{width:var(--separator-dotted-dot-sm-tablet)}}@media (min-width: 992px){.tedi-separator--dot-only.tedi-separator--dot-only-small:before{width:var(--separator-dotted-dot-sm-desktop)}}.tedi-separator--dot-only.tedi-separator--dot-only-small:before{height:var(--separator-dotted-dot-sm-mobile)}@media (min-width: 576px){.tedi-separator--dot-only.tedi-separator--dot-only-small:before{height:var(--separator-dotted-dot-sm-tablet)}}@media (min-width: 992px){.tedi-separator--dot-only.tedi-separator--dot-only-small:before{height:var(--separator-dotted-dot-sm-desktop)}}.tedi-separator--dot-only.tedi-separator--dot-only-medium:before{width:var(--separator-dotted-dot-md-mobile)}@media (min-width: 576px){.tedi-separator--dot-only.tedi-separator--dot-only-medium:before{width:var(--separator-dotted-dot-md-tablet)}}@media (min-width: 992px){.tedi-separator--dot-only.tedi-separator--dot-only-medium:before{width:var(--separator-dotted-dot-md-desktop)}}.tedi-separator--dot-only.tedi-separator--dot-only-medium:before{height:var(--separator-dotted-dot-md-mobile)}@media (min-width: 576px){.tedi-separator--dot-only.tedi-separator--dot-only-medium:before{height:var(--separator-dotted-dot-md-tablet)}}@media (min-width: 992px){.tedi-separator--dot-only.tedi-separator--dot-only-medium:before{height:var(--separator-dotted-dot-md-desktop)}}.tedi-separator--dot-only.tedi-separator--dot-only-large:before{width:var(--separator-dotted-dot-lg-mobile)}@media (min-width: 576px){.tedi-separator--dot-only.tedi-separator--dot-only-large:before{width:var(--separator-dotted-dot-lg-tablet)}}@media (min-width: 992px){.tedi-separator--dot-only.tedi-separator--dot-only-large:before{width:var(--separator-dotted-dot-lg-desktop)}}.tedi-separator--dot-only.tedi-separator--dot-only-large:before{height:var(--separator-dotted-dot-lg-mobile)}@media (min-width: 576px){.tedi-separator--dot-only.tedi-separator--dot-only-large:before{height:var(--separator-dotted-dot-lg-tablet)}}@media (min-width: 992px){.tedi-separator--dot-only.tedi-separator--dot-only-large:before{height:var(--separator-dotted-dot-lg-desktop)}}.tedi-separator--dot-only-filled.tedi-separator--primary:before{background-color:var(--general-border-primary)}.tedi-separator--dot-only-filled.tedi-separator--secondary:before{background-color:var(--general-border-secondary)}.tedi-separator--dot-only-filled.tedi-separator--accent:before{background-color:var(--general-border-accent)}.tedi-separator--dot-only-outlined:before{border-style:solid}.tedi-separator--dot-only-outlined.tedi-separator--primary:before{border-color:var(--general-border-primary)}.tedi-separator--dot-only-outlined.tedi-separator--secondary:before{border-color:var(--general-border-secondary)}.tedi-separator--dot-only-outlined.tedi-separator--accent:before{border-color:var(--general-border-accent)}.tedi-separator--dot-only-outlined.tedi-separator--thickness-1:before{border-width:1px}.tedi-separator--dot-only-outlined.tedi-separator--thickness-2:before{border-width:2px}.tedi-separator--horizontal.tedi-separator--dotted:before,.tedi-separator--horizontal.tedi-separator--dotted-small:before{right:0;left:0;margin:0 auto;transform:initial}.tedi-separator--horizontal.tedi-separator--dotted:before{top:calc(var(--_top-dotted) / 2 * -1)}.tedi-separator--horizontal.tedi-separator--dotted:before{--_top-dotted: var(--separator-dotted-dot-lg-mobile)}@media (min-width: 576px){.tedi-separator--horizontal.tedi-separator--dotted:before{--_top-dotted: var(--separator-dotted-dot-lg-tablet)}}@media (min-width: 992px){.tedi-separator--horizontal.tedi-separator--dotted:before{--_top-dotted: var(--separator-dotted-dot-lg-desktop)}}.tedi-separator--horizontal.tedi-separator--dotted-small:before{top:calc(var(--_top-dotted-small) / 2 * -1)}.tedi-separator--horizontal.tedi-separator--dotted-small:before{--_top-dotted-small: var(--separator-dotted-dot-md-mobile)}@media (min-width: 576px){.tedi-separator--horizontal.tedi-separator--dotted-small:before{--_top-dotted-small: var(--separator-dotted-dot-md-tablet)}}@media (min-width: 992px){.tedi-separator--horizontal.tedi-separator--dotted-small:before{--_top-dotted-small: var(--separator-dotted-dot-md-desktop)}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2100
|
-
}
|
|
2101
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: SeparatorComponent, decorators: [{
|
|
2102
|
-
type: Component,
|
|
2103
|
-
args: [{ selector: "tedi-separator", template: "", encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
2104
|
-
"[class]": "classes()",
|
|
2105
|
-
"[style.width]": "variant() === 'dot-only' ? null : axis() === 'horizontal' ? size() : '0px'",
|
|
2106
|
-
"[style.height]": "variant() === 'dot-only' ? null : axis() === 'vertical' ? size() : '0px'",
|
|
2107
|
-
}, styles: [".tedi-separator{display:block;position:relative;margin:0;border:0;border-top-width:1px;border-style:solid}@media print{.tedi-separator{filter:grayscale(1)}}.tedi-separator--vertical{border-top-width:0;border-left-width:1px}.tedi-separator--primary{border-color:var(--general-border-primary)}.tedi-separator--secondary{border-color:var(--general-border-secondary)}.tedi-separator--accent{border-color:var(--general-border-accent)}.tedi-separator--block{display:block}.tedi-separator--inline{display:inline}.tedi-separator--dotted:before,.tedi-separator--dotted-small:before{position:absolute;top:1.25rem;content:\"\";background-color:var(--general-border-primary);border-radius:100%;transform:translate(-8px)}@media print{.tedi-separator--dotted:before,.tedi-separator--dotted-small:before{filter:grayscale(1)}}.tedi-separator--dotted:before,.tedi-separator--dotted-small:before{height:var(--separator-dotted-dot-lg-mobile)}@media (min-width: 576px){.tedi-separator--dotted:before,.tedi-separator--dotted-small:before{height:var(--separator-dotted-dot-lg-tablet)}}@media (min-width: 992px){.tedi-separator--dotted:before,.tedi-separator--dotted-small:before{height:var(--separator-dotted-dot-lg-desktop)}}.tedi-separator--dotted:before,.tedi-separator--dotted-small:before{width:var(--separator-dotted-dot-lg-mobile)}@media (min-width: 576px){.tedi-separator--dotted:before,.tedi-separator--dotted-small:before{width:var(--separator-dotted-dot-lg-tablet)}}@media (min-width: 992px){.tedi-separator--dotted:before,.tedi-separator--dotted-small:before{width:var(--separator-dotted-dot-lg-desktop)}}.tedi-separator--dotted.tedi-separator--secondary:before,.tedi-separator--dotted-small.tedi-separator--secondary:before{background-color:var(--general-border-secondary)}.tedi-separator--dotted.tedi-separator--accent:before,.tedi-separator--dotted-small.tedi-separator--accent:before{background-color:var(--general-border-accent)}.tedi-separator--dotted-small:before{top:1.5rem;transform:translate(-5px)}.tedi-separator--dotted-small:before{height:var(--separator-dotted-dot-md-mobile)}@media (min-width: 576px){.tedi-separator--dotted-small:before{height:var(--separator-dotted-dot-md-tablet)}}@media (min-width: 992px){.tedi-separator--dotted-small:before{height:var(--separator-dotted-dot-md-desktop)}}.tedi-separator--dotted-small:before{width:var(--separator-dotted-dot-md-mobile)}@media (min-width: 576px){.tedi-separator--dotted-small:before{width:var(--separator-dotted-dot-md-tablet)}}@media (min-width: 992px){.tedi-separator--dotted-small:before{width:var(--separator-dotted-dot-md-desktop)}}.tedi-separator--horizontal.tedi-separator--top-0{margin-top:0}.tedi-separator--horizontal.tedi-separator--bottom-0{margin-bottom:0}.tedi-separator--vertical.tedi-separator--left-0{margin-left:0}.tedi-separator--vertical.tedi-separator--right-0{margin-right:0}.tedi-separator--horizontal.tedi-separator--spacing-0:not(.tedi-separator--dot-only){margin-top:0;margin-bottom:0}.tedi-separator--horizontal.tedi-separator--dot-only.tedi-separator--spacing-0,.tedi-separator--vertical.tedi-separator--spacing-0{margin-right:0;margin-left:0}.tedi-separator--horizontal.tedi-separator--top-0-25{margin-top:.25rem}.tedi-separator--horizontal.tedi-separator--bottom-0-25{margin-bottom:.25rem}.tedi-separator--vertical.tedi-separator--left-0-25{margin-left:.25rem}.tedi-separator--vertical.tedi-separator--right-0-25{margin-right:.25rem}.tedi-separator--horizontal.tedi-separator--spacing-0-25:not(.tedi-separator--dot-only){margin-top:.25rem;margin-bottom:.25rem}.tedi-separator--horizontal.tedi-separator--dot-only.tedi-separator--spacing-0-25,.tedi-separator--vertical.tedi-separator--spacing-0-25{margin-right:.25rem;margin-left:.25rem}.tedi-separator--horizontal.tedi-separator--top-0-5{margin-top:.5rem}.tedi-separator--horizontal.tedi-separator--bottom-0-5{margin-bottom:.5rem}.tedi-separator--vertical.tedi-separator--left-0-5{margin-left:.5rem}.tedi-separator--vertical.tedi-separator--right-0-5{margin-right:.5rem}.tedi-separator--horizontal.tedi-separator--spacing-0-5:not(.tedi-separator--dot-only){margin-top:.5rem;margin-bottom:.5rem}.tedi-separator--horizontal.tedi-separator--dot-only.tedi-separator--spacing-0-5,.tedi-separator--vertical.tedi-separator--spacing-0-5{margin-right:.5rem;margin-left:.5rem}.tedi-separator--horizontal.tedi-separator--top-0-75{margin-top:.75rem}.tedi-separator--horizontal.tedi-separator--bottom-0-75{margin-bottom:.75rem}.tedi-separator--vertical.tedi-separator--left-0-75{margin-left:.75rem}.tedi-separator--vertical.tedi-separator--right-0-75{margin-right:.75rem}.tedi-separator--horizontal.tedi-separator--spacing-0-75:not(.tedi-separator--dot-only){margin-top:.75rem;margin-bottom:.75rem}.tedi-separator--horizontal.tedi-separator--dot-only.tedi-separator--spacing-0-75,.tedi-separator--vertical.tedi-separator--spacing-0-75{margin-right:.75rem;margin-left:.75rem}.tedi-separator--horizontal.tedi-separator--top-1{margin-top:1rem}.tedi-separator--horizontal.tedi-separator--bottom-1{margin-bottom:1rem}.tedi-separator--vertical.tedi-separator--left-1{margin-left:1rem}.tedi-separator--vertical.tedi-separator--right-1{margin-right:1rem}.tedi-separator--horizontal.tedi-separator--spacing-1:not(.tedi-separator--dot-only){margin-top:1rem;margin-bottom:1rem}.tedi-separator--horizontal.tedi-separator--dot-only.tedi-separator--spacing-1,.tedi-separator--vertical.tedi-separator--spacing-1{margin-right:1rem;margin-left:1rem}.tedi-separator--horizontal.tedi-separator--top-1-25{margin-top:1.25rem}.tedi-separator--horizontal.tedi-separator--bottom-1-25{margin-bottom:1.25rem}.tedi-separator--vertical.tedi-separator--left-1-25{margin-left:1.25rem}.tedi-separator--vertical.tedi-separator--right-1-25{margin-right:1.25rem}.tedi-separator--horizontal.tedi-separator--spacing-1-25:not(.tedi-separator--dot-only){margin-top:1.25rem;margin-bottom:1.25rem}.tedi-separator--horizontal.tedi-separator--dot-only.tedi-separator--spacing-1-25,.tedi-separator--vertical.tedi-separator--spacing-1-25{margin-right:1.25rem;margin-left:1.25rem}.tedi-separator--horizontal.tedi-separator--top-1-5{margin-top:1.5rem}.tedi-separator--horizontal.tedi-separator--bottom-1-5{margin-bottom:1.5rem}.tedi-separator--vertical.tedi-separator--left-1-5{margin-left:1.5rem}.tedi-separator--vertical.tedi-separator--right-1-5{margin-right:1.5rem}.tedi-separator--horizontal.tedi-separator--spacing-1-5:not(.tedi-separator--dot-only){margin-top:1.5rem;margin-bottom:1.5rem}.tedi-separator--horizontal.tedi-separator--dot-only.tedi-separator--spacing-1-5,.tedi-separator--vertical.tedi-separator--spacing-1-5{margin-right:1.5rem;margin-left:1.5rem}.tedi-separator--horizontal.tedi-separator--top-1-75{margin-top:1.75rem}.tedi-separator--horizontal.tedi-separator--bottom-1-75{margin-bottom:1.75rem}.tedi-separator--vertical.tedi-separator--left-1-75{margin-left:1.75rem}.tedi-separator--vertical.tedi-separator--right-1-75{margin-right:1.75rem}.tedi-separator--horizontal.tedi-separator--spacing-1-75:not(.tedi-separator--dot-only){margin-top:1.75rem;margin-bottom:1.75rem}.tedi-separator--horizontal.tedi-separator--dot-only.tedi-separator--spacing-1-75,.tedi-separator--vertical.tedi-separator--spacing-1-75{margin-right:1.75rem;margin-left:1.75rem}.tedi-separator--horizontal.tedi-separator--top-2{margin-top:2rem}.tedi-separator--horizontal.tedi-separator--bottom-2{margin-bottom:2rem}.tedi-separator--vertical.tedi-separator--left-2{margin-left:2rem}.tedi-separator--vertical.tedi-separator--right-2{margin-right:2rem}.tedi-separator--horizontal.tedi-separator--spacing-2:not(.tedi-separator--dot-only){margin-top:2rem;margin-bottom:2rem}.tedi-separator--horizontal.tedi-separator--dot-only.tedi-separator--spacing-2,.tedi-separator--vertical.tedi-separator--spacing-2{margin-right:2rem;margin-left:2rem}.tedi-separator--horizontal.tedi-separator--top-2-5{margin-top:2.5rem}.tedi-separator--horizontal.tedi-separator--bottom-2-5{margin-bottom:2.5rem}.tedi-separator--vertical.tedi-separator--left-2-5{margin-left:2.5rem}.tedi-separator--vertical.tedi-separator--right-2-5{margin-right:2.5rem}.tedi-separator--horizontal.tedi-separator--spacing-2-5:not(.tedi-separator--dot-only){margin-top:2.5rem;margin-bottom:2.5rem}.tedi-separator--horizontal.tedi-separator--dot-only.tedi-separator--spacing-2-5,.tedi-separator--vertical.tedi-separator--spacing-2-5{margin-right:2.5rem;margin-left:2.5rem}.tedi-separator--horizontal.tedi-separator--top-5{margin-top:5rem}.tedi-separator--horizontal.tedi-separator--bottom-5{margin-bottom:5rem}.tedi-separator--vertical.tedi-separator--left-5{margin-left:5rem}.tedi-separator--vertical.tedi-separator--right-5{margin-right:5rem}.tedi-separator--horizontal.tedi-separator--spacing-5:not(.tedi-separator--dot-only){margin-top:5rem;margin-bottom:5rem}.tedi-separator--horizontal.tedi-separator--dot-only.tedi-separator--spacing-5,.tedi-separator--vertical.tedi-separator--spacing-5{margin-right:5rem;margin-left:5rem}.tedi-separator.tedi-separator--thickness-1{border-top-width:1px}.tedi-separator--vertical.tedi-separator--thickness-1{border-left-width:1px}.tedi-separator.tedi-separator--thickness-2{border-top-width:2px}.tedi-separator--vertical.tedi-separator--thickness-2{border-left-width:2px}.tedi-separator--dot-only{position:relative;display:inline-block;vertical-align:middle;border:none}.tedi-separator--dot-only:before{position:relative;display:block;content:\"\";border-radius:100%}@media print{.tedi-separator--dot-only:before{filter:grayscale(1)}}.tedi-separator--dot-only:before{height:var(--separator-dotted-dot-sm-mobile)}@media (min-width: 576px){.tedi-separator--dot-only:before{height:var(--separator-dotted-dot-sm-tablet)}}@media (min-width: 992px){.tedi-separator--dot-only:before{height:var(--separator-dotted-dot-sm-desktop)}}.tedi-separator--dot-only:before{width:var(--separator-dotted-dot-sm-mobile)}@media (min-width: 576px){.tedi-separator--dot-only:before{width:var(--separator-dotted-dot-sm-tablet)}}@media (min-width: 992px){.tedi-separator--dot-only:before{width:var(--separator-dotted-dot-sm-desktop)}}.tedi-separator--dot-only.tedi-separator--dot-only-extra-small:before{width:var(--separator-dotted-dot-xs-mobile)}@media (min-width: 576px){.tedi-separator--dot-only.tedi-separator--dot-only-extra-small:before{width:var(--separator-dotted-dot-xs-tablet)}}@media (min-width: 992px){.tedi-separator--dot-only.tedi-separator--dot-only-extra-small:before{width:var(--separator-dotted-dot-xs-desktop)}}.tedi-separator--dot-only.tedi-separator--dot-only-extra-small:before{height:var(--separator-dotted-dot-xs-mobile)}@media (min-width: 576px){.tedi-separator--dot-only.tedi-separator--dot-only-extra-small:before{height:var(--separator-dotted-dot-xs-tablet)}}@media (min-width: 992px){.tedi-separator--dot-only.tedi-separator--dot-only-extra-small:before{height:var(--separator-dotted-dot-xs-desktop)}}.tedi-separator--dot-only.tedi-separator--dot-only-small:before{width:var(--separator-dotted-dot-sm-mobile)}@media (min-width: 576px){.tedi-separator--dot-only.tedi-separator--dot-only-small:before{width:var(--separator-dotted-dot-sm-tablet)}}@media (min-width: 992px){.tedi-separator--dot-only.tedi-separator--dot-only-small:before{width:var(--separator-dotted-dot-sm-desktop)}}.tedi-separator--dot-only.tedi-separator--dot-only-small:before{height:var(--separator-dotted-dot-sm-mobile)}@media (min-width: 576px){.tedi-separator--dot-only.tedi-separator--dot-only-small:before{height:var(--separator-dotted-dot-sm-tablet)}}@media (min-width: 992px){.tedi-separator--dot-only.tedi-separator--dot-only-small:before{height:var(--separator-dotted-dot-sm-desktop)}}.tedi-separator--dot-only.tedi-separator--dot-only-medium:before{width:var(--separator-dotted-dot-md-mobile)}@media (min-width: 576px){.tedi-separator--dot-only.tedi-separator--dot-only-medium:before{width:var(--separator-dotted-dot-md-tablet)}}@media (min-width: 992px){.tedi-separator--dot-only.tedi-separator--dot-only-medium:before{width:var(--separator-dotted-dot-md-desktop)}}.tedi-separator--dot-only.tedi-separator--dot-only-medium:before{height:var(--separator-dotted-dot-md-mobile)}@media (min-width: 576px){.tedi-separator--dot-only.tedi-separator--dot-only-medium:before{height:var(--separator-dotted-dot-md-tablet)}}@media (min-width: 992px){.tedi-separator--dot-only.tedi-separator--dot-only-medium:before{height:var(--separator-dotted-dot-md-desktop)}}.tedi-separator--dot-only.tedi-separator--dot-only-large:before{width:var(--separator-dotted-dot-lg-mobile)}@media (min-width: 576px){.tedi-separator--dot-only.tedi-separator--dot-only-large:before{width:var(--separator-dotted-dot-lg-tablet)}}@media (min-width: 992px){.tedi-separator--dot-only.tedi-separator--dot-only-large:before{width:var(--separator-dotted-dot-lg-desktop)}}.tedi-separator--dot-only.tedi-separator--dot-only-large:before{height:var(--separator-dotted-dot-lg-mobile)}@media (min-width: 576px){.tedi-separator--dot-only.tedi-separator--dot-only-large:before{height:var(--separator-dotted-dot-lg-tablet)}}@media (min-width: 992px){.tedi-separator--dot-only.tedi-separator--dot-only-large:before{height:var(--separator-dotted-dot-lg-desktop)}}.tedi-separator--dot-only-filled.tedi-separator--primary:before{background-color:var(--general-border-primary)}.tedi-separator--dot-only-filled.tedi-separator--secondary:before{background-color:var(--general-border-secondary)}.tedi-separator--dot-only-filled.tedi-separator--accent:before{background-color:var(--general-border-accent)}.tedi-separator--dot-only-outlined:before{border-style:solid}.tedi-separator--dot-only-outlined.tedi-separator--primary:before{border-color:var(--general-border-primary)}.tedi-separator--dot-only-outlined.tedi-separator--secondary:before{border-color:var(--general-border-secondary)}.tedi-separator--dot-only-outlined.tedi-separator--accent:before{border-color:var(--general-border-accent)}.tedi-separator--dot-only-outlined.tedi-separator--thickness-1:before{border-width:1px}.tedi-separator--dot-only-outlined.tedi-separator--thickness-2:before{border-width:2px}.tedi-separator--horizontal.tedi-separator--dotted:before,.tedi-separator--horizontal.tedi-separator--dotted-small:before{right:0;left:0;margin:0 auto;transform:initial}.tedi-separator--horizontal.tedi-separator--dotted:before{top:calc(var(--_top-dotted) / 2 * -1)}.tedi-separator--horizontal.tedi-separator--dotted:before{--_top-dotted: var(--separator-dotted-dot-lg-mobile)}@media (min-width: 576px){.tedi-separator--horizontal.tedi-separator--dotted:before{--_top-dotted: var(--separator-dotted-dot-lg-tablet)}}@media (min-width: 992px){.tedi-separator--horizontal.tedi-separator--dotted:before{--_top-dotted: var(--separator-dotted-dot-lg-desktop)}}.tedi-separator--horizontal.tedi-separator--dotted-small:before{top:calc(var(--_top-dotted-small) / 2 * -1)}.tedi-separator--horizontal.tedi-separator--dotted-small:before{--_top-dotted-small: var(--separator-dotted-dot-md-mobile)}@media (min-width: 576px){.tedi-separator--horizontal.tedi-separator--dotted-small:before{--_top-dotted-small: var(--separator-dotted-dot-md-tablet)}}@media (min-width: 992px){.tedi-separator--horizontal.tedi-separator--dotted-small:before{--_top-dotted-small: var(--separator-dotted-dot-md-desktop)}}\n"] }]
|
|
2108
|
-
}] });
|
|
2109
|
-
|
|
2110
3520
|
class TimelineComponent {
|
|
2111
3521
|
/** Index of active item */
|
|
2112
3522
|
activeIndex = input();
|
|
@@ -2503,136 +3913,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
2503
3913
|
args: [{ selector: 'tedi-header-content', standalone: true, template: "<ng-content />", encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, styles: ["tedi-header-content{display:flex;align-items:center}tedi-header-content{gap:var(--layout-header-items-center-gutter-x-mobile)}@media (min-width: 576px){tedi-header-content{gap:var(--layout-header-items-center-gutter-x-tablet)}}@media (min-width: 992px){tedi-header-content{gap:var(--layout-header-items-center-gutter-x-desktop)}}tedi-header-content a,tedi-header-content .tedi-link{color:var(--general-text-primary)}tedi-header-content a:hover,tedi-header-content .tedi-link:hover{color:var(--general-text-secondary)}tedi-header-content a:active,tedi-header-content .tedi-link:active{color:var(--general-text-tertiary)}tedi-header-content a:focus-visible,tedi-header-content .tedi-link:focus-visible{outline:var(--borders-02) solid var(--primary-500);outline-offset:var(--borders-01)}\n"] }]
|
|
2504
3914
|
}] });
|
|
2505
3915
|
|
|
2506
|
-
class PopoverComponent {
|
|
2507
|
-
/**
|
|
2508
|
-
* * The trigger event that opens the popover.
|
|
2509
|
-
* * @default click
|
|
2510
|
-
* */
|
|
2511
|
-
openWith = input("click");
|
|
2512
|
-
/**
|
|
2513
|
-
* The position of the popover relative to the trigger element.
|
|
2514
|
-
* @default top
|
|
2515
|
-
*/
|
|
2516
|
-
position = input("top");
|
|
2517
|
-
/**
|
|
2518
|
-
* Is dismissible by clicking outside of content?
|
|
2519
|
-
* @default true
|
|
2520
|
-
*/
|
|
2521
|
-
dismissible = input(true);
|
|
2522
|
-
/**
|
|
2523
|
-
* Does popover content hide on scroll?
|
|
2524
|
-
* @default false
|
|
2525
|
-
*/
|
|
2526
|
-
hideOnScroll = input(false);
|
|
2527
|
-
/**
|
|
2528
|
-
* Does popover have illustrative border on the arrow side?
|
|
2529
|
-
* @default false
|
|
2530
|
-
*/
|
|
2531
|
-
withBorder = input(false);
|
|
2532
|
-
/**
|
|
2533
|
-
* Lock scrolling on rest of the page?
|
|
2534
|
-
* @default false
|
|
2535
|
-
*/
|
|
2536
|
-
lockScroll = input(false);
|
|
2537
|
-
floatUiComponent;
|
|
2538
|
-
document = inject(DOCUMENT);
|
|
2539
|
-
renderer = inject(Renderer2);
|
|
2540
|
-
onHide() {
|
|
2541
|
-
if (this.lockScroll()) {
|
|
2542
|
-
this.renderer.removeStyle(this.document.body, "overflow");
|
|
2543
|
-
}
|
|
2544
|
-
}
|
|
2545
|
-
onOpen() {
|
|
2546
|
-
if (this.lockScroll()) {
|
|
2547
|
-
this.renderer.setStyle(this.document.body, "overflow", "hidden");
|
|
2548
|
-
}
|
|
2549
|
-
}
|
|
2550
|
-
floatUiContainerClass = computed(() => {
|
|
2551
|
-
const classList = ["float-ui-container-popover"];
|
|
2552
|
-
if (this.withBorder()) {
|
|
2553
|
-
classList.push("float-ui-container-popover--border");
|
|
2554
|
-
}
|
|
2555
|
-
return classList.join(",");
|
|
2556
|
-
});
|
|
2557
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: PopoverComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2558
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.15", type: PopoverComponent, isStandalone: true, selector: "tedi-popover", inputs: { openWith: { classPropertyName: "openWith", publicName: "openWith", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, dismissible: { classPropertyName: "dismissible", publicName: "dismissible", isSignal: true, isRequired: false, transformFunction: null }, hideOnScroll: { classPropertyName: "hideOnScroll", publicName: "hideOnScroll", isSignal: true, isRequired: false, transformFunction: null }, withBorder: { classPropertyName: "withBorder", publicName: "withBorder", isSignal: true, isRequired: false, transformFunction: null }, lockScroll: { classPropertyName: "lockScroll", publicName: "lockScroll", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "floatUiComponent", first: true, predicate: ["floatUiComponent"], descendants: true }], ngImport: i0, template: "<div\n [floatUiLoose]=\"floatUiComponent\"\n [loosePlacement]=\"position()\"\n [looseTrigger]=\"openWith()\"\n [hideOnClickOutside]=\"dismissible()\"\n [hideOnScroll]=\"hideOnScroll()\"\n [applyClass]=\"floatUiContainerClass()\"\n [disableAnimation]=\"true\"\n appendTo=\"body\"\n aria-haspopup=\"dialog\"\n style=\"display: inline-flex\"\n (onHidden)=\"onHide()\"\n (onShown)=\"onOpen()\"\n>\n <ng-content select=\"tedi-popover-trigger\" />\n</div>\n<float-ui-content #floatUiComponent>\n <ng-content select=\"tedi-popover-content\" />\n</float-ui-content>\n", styles: ["tedi-popover{display:block}tedi-popover-trigger{display:inline-flex;cursor:pointer}float-ui-content .float-ui-container-popover{padding:0;border:var(--borders-01) solid var(--popover-border);box-shadow:0 1px 5px 0 var(--alpha-20, rgba(0, 0, 0, .2))}float-ui-content .float-ui-container-popover{border-radius:var(--popover-radius-rounded-mobile)}@media (min-width: 576px){float-ui-content .float-ui-container-popover{border-radius:var(--popover-radius-rounded-tablet)}}@media (min-width: 992px){float-ui-content .float-ui-container-popover{border-radius:var(--popover-radius-rounded-desktop)}}float-ui-content .float-ui-container-popover .float-ui-arrow{width:24px;height:24px;background:var(--popover-background);filter:drop-shadow(0 0 5px var(--alpha-20));clip-path:inset(0px -5px -5px 0px);z-index:var(--z-index-dropdown)}float-ui-content .float-ui-container-popover--border{border-radius:var(--popover-radius-rounded-mobile)}@media (min-width: 576px){float-ui-content .float-ui-container-popover--border{border-radius:var(--popover-radius-rounded-tablet)}}@media (min-width: 992px){float-ui-content .float-ui-container-popover--border{border-radius:var(--popover-radius-rounded-desktop)}}float-ui-content .float-ui-container-popover--border .float-ui-arrow{width:18px;height:18px;border-bottom:4px solid var(--header-popover-border-top);border-right:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=top]{border-bottom:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=top] .float-ui-arrow{bottom:-12px!important}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=bottom]{border-top:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=bottom] .float-ui-arrow{top:-12px!important}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=left]{border-right:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=left] .float-ui-arrow{right:-12px!important}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=right]{border-left:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=right] .float-ui-arrow{left:-12px!important}float-ui-content .float-ui-container-popover[data-float-ui-placement=top]{transform:translateY(-4px)}float-ui-content .float-ui-container-popover[data-float-ui-placement=bottom]{transform:translateY(4px)}float-ui-content .float-ui-container-popover[data-float-ui-placement=bottom] .float-ui-arrow{transform:rotate(-135deg)}float-ui-content .float-ui-container-popover[data-float-ui-placement=left]{transform:translate(-4px)}float-ui-content .float-ui-container-popover[data-float-ui-placement=left] .float-ui-arrow{transform:rotate(-45deg)}float-ui-content .float-ui-container-popover[data-float-ui-placement=right]{transform:translate(4px)}float-ui-content .float-ui-container-popover[data-float-ui-placement=right] .float-ui-arrow{transform:rotate(135deg)}.tedi-popover-trigger__text{text-decoration:underline dashed var(--general-border-secondary);text-underline-offset:.5em}.tedi-popover-content{position:relative;max-width:calc(100dvw - 1rem);display:flex;flex-direction:column;background:var(--popover-background);color:var(--popover-text);z-index:var(--z-index-dropdown)}.tedi-popover-content{gap:var(--layout-grid-gutters-08-mobile)}@media (min-width: 576px){.tedi-popover-content{gap:var(--layout-grid-gutters-08-tablet)}}@media (min-width: 992px){.tedi-popover-content{gap:var(--layout-grid-gutters-08-desktop)}}.tedi-popover-content{padding:var(--popover-padding-sm-mobile)}@media (min-width: 576px){.tedi-popover-content{padding:var(--popover-padding-sm-tablet)}}@media (min-width: 992px){.tedi-popover-content{padding:var(--popover-padding-sm-desktop)}}.tedi-popover-content{border-radius:var(--popover-radius-rounded-mobile)}@media (min-width: 576px){.tedi-popover-content{border-radius:var(--popover-radius-rounded-tablet)}}@media (min-width: 992px){.tedi-popover-content{border-radius:var(--popover-radius-rounded-desktop)}}.tedi-popover-content--none{width:none}.tedi-popover-content--small{width:240px}.tedi-popover-content--medium{width:480px}.tedi-popover-content--large{width:840px}.tedi-popover-content__head{display:flex;justify-content:space-between}.tedi-popover-content__head{gap:var(--layout-grid-gutters-08-mobile)}@media (min-width: 576px){.tedi-popover-content__head{gap:var(--layout-grid-gutters-08-tablet)}}@media (min-width: 992px){.tedi-popover-content__head{gap:var(--layout-grid-gutters-08-desktop)}}.tedi-popover-content__head>div{display:flex;flex-direction:column;flex:1 1 0;min-width:0}.tedi-popover-content__head>div{gap:var(--layout-grid-gutters-08-mobile)}@media (min-width: 576px){.tedi-popover-content__head>div{gap:var(--layout-grid-gutters-08-tablet)}}@media (min-width: 992px){.tedi-popover-content__head>div{gap:var(--layout-grid-gutters-08-desktop)}}.tedi-popover-content__title{align-self:center}\n"], dependencies: [{ kind: "ngmodule", type: NgxFloatUiModule }, { kind: "component", type: i1$1.NgxFloatUiContentComponent, selector: "float-ui-content", exportAs: ["ngxFloatUiContent"] }, { kind: "directive", type: i1$1.NgxFloatUiLooseDirective, selector: "[floatUiLoose]", inputs: ["floatUiLoose", "loosePlacement", "looseTrigger"], exportAs: ["floatUiLoose"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2559
|
-
}
|
|
2560
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: PopoverComponent, decorators: [{
|
|
2561
|
-
type: Component,
|
|
2562
|
-
args: [{ standalone: true, selector: "tedi-popover", imports: [NgxFloatUiModule], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n [floatUiLoose]=\"floatUiComponent\"\n [loosePlacement]=\"position()\"\n [looseTrigger]=\"openWith()\"\n [hideOnClickOutside]=\"dismissible()\"\n [hideOnScroll]=\"hideOnScroll()\"\n [applyClass]=\"floatUiContainerClass()\"\n [disableAnimation]=\"true\"\n appendTo=\"body\"\n aria-haspopup=\"dialog\"\n style=\"display: inline-flex\"\n (onHidden)=\"onHide()\"\n (onShown)=\"onOpen()\"\n>\n <ng-content select=\"tedi-popover-trigger\" />\n</div>\n<float-ui-content #floatUiComponent>\n <ng-content select=\"tedi-popover-content\" />\n</float-ui-content>\n", styles: ["tedi-popover{display:block}tedi-popover-trigger{display:inline-flex;cursor:pointer}float-ui-content .float-ui-container-popover{padding:0;border:var(--borders-01) solid var(--popover-border);box-shadow:0 1px 5px 0 var(--alpha-20, rgba(0, 0, 0, .2))}float-ui-content .float-ui-container-popover{border-radius:var(--popover-radius-rounded-mobile)}@media (min-width: 576px){float-ui-content .float-ui-container-popover{border-radius:var(--popover-radius-rounded-tablet)}}@media (min-width: 992px){float-ui-content .float-ui-container-popover{border-radius:var(--popover-radius-rounded-desktop)}}float-ui-content .float-ui-container-popover .float-ui-arrow{width:24px;height:24px;background:var(--popover-background);filter:drop-shadow(0 0 5px var(--alpha-20));clip-path:inset(0px -5px -5px 0px);z-index:var(--z-index-dropdown)}float-ui-content .float-ui-container-popover--border{border-radius:var(--popover-radius-rounded-mobile)}@media (min-width: 576px){float-ui-content .float-ui-container-popover--border{border-radius:var(--popover-radius-rounded-tablet)}}@media (min-width: 992px){float-ui-content .float-ui-container-popover--border{border-radius:var(--popover-radius-rounded-desktop)}}float-ui-content .float-ui-container-popover--border .float-ui-arrow{width:18px;height:18px;border-bottom:4px solid var(--header-popover-border-top);border-right:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=top]{border-bottom:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=top] .float-ui-arrow{bottom:-12px!important}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=bottom]{border-top:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=bottom] .float-ui-arrow{top:-12px!important}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=left]{border-right:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=left] .float-ui-arrow{right:-12px!important}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=right]{border-left:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=right] .float-ui-arrow{left:-12px!important}float-ui-content .float-ui-container-popover[data-float-ui-placement=top]{transform:translateY(-4px)}float-ui-content .float-ui-container-popover[data-float-ui-placement=bottom]{transform:translateY(4px)}float-ui-content .float-ui-container-popover[data-float-ui-placement=bottom] .float-ui-arrow{transform:rotate(-135deg)}float-ui-content .float-ui-container-popover[data-float-ui-placement=left]{transform:translate(-4px)}float-ui-content .float-ui-container-popover[data-float-ui-placement=left] .float-ui-arrow{transform:rotate(-45deg)}float-ui-content .float-ui-container-popover[data-float-ui-placement=right]{transform:translate(4px)}float-ui-content .float-ui-container-popover[data-float-ui-placement=right] .float-ui-arrow{transform:rotate(135deg)}.tedi-popover-trigger__text{text-decoration:underline dashed var(--general-border-secondary);text-underline-offset:.5em}.tedi-popover-content{position:relative;max-width:calc(100dvw - 1rem);display:flex;flex-direction:column;background:var(--popover-background);color:var(--popover-text);z-index:var(--z-index-dropdown)}.tedi-popover-content{gap:var(--layout-grid-gutters-08-mobile)}@media (min-width: 576px){.tedi-popover-content{gap:var(--layout-grid-gutters-08-tablet)}}@media (min-width: 992px){.tedi-popover-content{gap:var(--layout-grid-gutters-08-desktop)}}.tedi-popover-content{padding:var(--popover-padding-sm-mobile)}@media (min-width: 576px){.tedi-popover-content{padding:var(--popover-padding-sm-tablet)}}@media (min-width: 992px){.tedi-popover-content{padding:var(--popover-padding-sm-desktop)}}.tedi-popover-content{border-radius:var(--popover-radius-rounded-mobile)}@media (min-width: 576px){.tedi-popover-content{border-radius:var(--popover-radius-rounded-tablet)}}@media (min-width: 992px){.tedi-popover-content{border-radius:var(--popover-radius-rounded-desktop)}}.tedi-popover-content--none{width:none}.tedi-popover-content--small{width:240px}.tedi-popover-content--medium{width:480px}.tedi-popover-content--large{width:840px}.tedi-popover-content__head{display:flex;justify-content:space-between}.tedi-popover-content__head{gap:var(--layout-grid-gutters-08-mobile)}@media (min-width: 576px){.tedi-popover-content__head{gap:var(--layout-grid-gutters-08-tablet)}}@media (min-width: 992px){.tedi-popover-content__head{gap:var(--layout-grid-gutters-08-desktop)}}.tedi-popover-content__head>div{display:flex;flex-direction:column;flex:1 1 0;min-width:0}.tedi-popover-content__head>div{gap:var(--layout-grid-gutters-08-mobile)}@media (min-width: 576px){.tedi-popover-content__head>div{gap:var(--layout-grid-gutters-08-tablet)}}@media (min-width: 992px){.tedi-popover-content__head>div{gap:var(--layout-grid-gutters-08-desktop)}}.tedi-popover-content__title{align-self:center}\n"] }]
|
|
2563
|
-
}], propDecorators: { floatUiComponent: [{
|
|
2564
|
-
type: ViewChild,
|
|
2565
|
-
args: ["floatUiComponent"]
|
|
2566
|
-
}] } });
|
|
2567
|
-
|
|
2568
|
-
class PopoverTriggerComponent {
|
|
2569
|
-
host = inject(ElementRef);
|
|
2570
|
-
renderer = inject(Renderer2);
|
|
2571
|
-
ngAfterContentChecked() {
|
|
2572
|
-
const childNodes = Array.from(this.host.nativeElement.childNodes);
|
|
2573
|
-
for (const node of childNodes) {
|
|
2574
|
-
if (node.nodeType === Node.TEXT_NODE && node.textContent?.trim()) {
|
|
2575
|
-
if (node.parentNode !== this.host.nativeElement) {
|
|
2576
|
-
continue;
|
|
2577
|
-
}
|
|
2578
|
-
const span = this.renderer.createElement("span");
|
|
2579
|
-
this.renderer.addClass(span, "tedi-popover-trigger__text");
|
|
2580
|
-
this.renderer.insertBefore(this.host.nativeElement, span, node);
|
|
2581
|
-
this.renderer.appendChild(span, node);
|
|
2582
|
-
}
|
|
2583
|
-
}
|
|
2584
|
-
}
|
|
2585
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: PopoverTriggerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2586
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: PopoverTriggerComponent, isStandalone: true, selector: "tedi-popover-trigger", ngImport: i0, template: "<ng-content />", isInline: true, styles: ["tedi-popover{display:block}tedi-popover-trigger{display:inline-flex;cursor:pointer}float-ui-content .float-ui-container-popover{padding:0;border:var(--borders-01) solid var(--popover-border);box-shadow:0 1px 5px 0 var(--alpha-20, rgba(0, 0, 0, .2))}float-ui-content .float-ui-container-popover{border-radius:var(--popover-radius-rounded-mobile)}@media (min-width: 576px){float-ui-content .float-ui-container-popover{border-radius:var(--popover-radius-rounded-tablet)}}@media (min-width: 992px){float-ui-content .float-ui-container-popover{border-radius:var(--popover-radius-rounded-desktop)}}float-ui-content .float-ui-container-popover .float-ui-arrow{width:24px;height:24px;background:var(--popover-background);filter:drop-shadow(0 0 5px var(--alpha-20));clip-path:inset(0px -5px -5px 0px);z-index:var(--z-index-dropdown)}float-ui-content .float-ui-container-popover--border{border-radius:var(--popover-radius-rounded-mobile)}@media (min-width: 576px){float-ui-content .float-ui-container-popover--border{border-radius:var(--popover-radius-rounded-tablet)}}@media (min-width: 992px){float-ui-content .float-ui-container-popover--border{border-radius:var(--popover-radius-rounded-desktop)}}float-ui-content .float-ui-container-popover--border .float-ui-arrow{width:18px;height:18px;border-bottom:4px solid var(--header-popover-border-top);border-right:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=top]{border-bottom:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=top] .float-ui-arrow{bottom:-12px!important}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=bottom]{border-top:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=bottom] .float-ui-arrow{top:-12px!important}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=left]{border-right:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=left] .float-ui-arrow{right:-12px!important}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=right]{border-left:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=right] .float-ui-arrow{left:-12px!important}float-ui-content .float-ui-container-popover[data-float-ui-placement=top]{transform:translateY(-4px)}float-ui-content .float-ui-container-popover[data-float-ui-placement=bottom]{transform:translateY(4px)}float-ui-content .float-ui-container-popover[data-float-ui-placement=bottom] .float-ui-arrow{transform:rotate(-135deg)}float-ui-content .float-ui-container-popover[data-float-ui-placement=left]{transform:translate(-4px)}float-ui-content .float-ui-container-popover[data-float-ui-placement=left] .float-ui-arrow{transform:rotate(-45deg)}float-ui-content .float-ui-container-popover[data-float-ui-placement=right]{transform:translate(4px)}float-ui-content .float-ui-container-popover[data-float-ui-placement=right] .float-ui-arrow{transform:rotate(135deg)}.tedi-popover-trigger__text{text-decoration:underline dashed var(--general-border-secondary);text-underline-offset:.5em}.tedi-popover-content{position:relative;max-width:calc(100dvw - 1rem);display:flex;flex-direction:column;background:var(--popover-background);color:var(--popover-text);z-index:var(--z-index-dropdown)}.tedi-popover-content{gap:var(--layout-grid-gutters-08-mobile)}@media (min-width: 576px){.tedi-popover-content{gap:var(--layout-grid-gutters-08-tablet)}}@media (min-width: 992px){.tedi-popover-content{gap:var(--layout-grid-gutters-08-desktop)}}.tedi-popover-content{padding:var(--popover-padding-sm-mobile)}@media (min-width: 576px){.tedi-popover-content{padding:var(--popover-padding-sm-tablet)}}@media (min-width: 992px){.tedi-popover-content{padding:var(--popover-padding-sm-desktop)}}.tedi-popover-content{border-radius:var(--popover-radius-rounded-mobile)}@media (min-width: 576px){.tedi-popover-content{border-radius:var(--popover-radius-rounded-tablet)}}@media (min-width: 992px){.tedi-popover-content{border-radius:var(--popover-radius-rounded-desktop)}}.tedi-popover-content--none{width:none}.tedi-popover-content--small{width:240px}.tedi-popover-content--medium{width:480px}.tedi-popover-content--large{width:840px}.tedi-popover-content__head{display:flex;justify-content:space-between}.tedi-popover-content__head{gap:var(--layout-grid-gutters-08-mobile)}@media (min-width: 576px){.tedi-popover-content__head{gap:var(--layout-grid-gutters-08-tablet)}}@media (min-width: 992px){.tedi-popover-content__head{gap:var(--layout-grid-gutters-08-desktop)}}.tedi-popover-content__head>div{display:flex;flex-direction:column;flex:1 1 0;min-width:0}.tedi-popover-content__head>div{gap:var(--layout-grid-gutters-08-mobile)}@media (min-width: 576px){.tedi-popover-content__head>div{gap:var(--layout-grid-gutters-08-tablet)}}@media (min-width: 992px){.tedi-popover-content__head>div{gap:var(--layout-grid-gutters-08-desktop)}}.tedi-popover-content__title{align-self:center}\n"] });
|
|
2587
|
-
}
|
|
2588
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: PopoverTriggerComponent, decorators: [{
|
|
2589
|
-
type: Component,
|
|
2590
|
-
args: [{ selector: "tedi-popover-trigger", standalone: true, template: "<ng-content />", styles: ["tedi-popover{display:block}tedi-popover-trigger{display:inline-flex;cursor:pointer}float-ui-content .float-ui-container-popover{padding:0;border:var(--borders-01) solid var(--popover-border);box-shadow:0 1px 5px 0 var(--alpha-20, rgba(0, 0, 0, .2))}float-ui-content .float-ui-container-popover{border-radius:var(--popover-radius-rounded-mobile)}@media (min-width: 576px){float-ui-content .float-ui-container-popover{border-radius:var(--popover-radius-rounded-tablet)}}@media (min-width: 992px){float-ui-content .float-ui-container-popover{border-radius:var(--popover-radius-rounded-desktop)}}float-ui-content .float-ui-container-popover .float-ui-arrow{width:24px;height:24px;background:var(--popover-background);filter:drop-shadow(0 0 5px var(--alpha-20));clip-path:inset(0px -5px -5px 0px);z-index:var(--z-index-dropdown)}float-ui-content .float-ui-container-popover--border{border-radius:var(--popover-radius-rounded-mobile)}@media (min-width: 576px){float-ui-content .float-ui-container-popover--border{border-radius:var(--popover-radius-rounded-tablet)}}@media (min-width: 992px){float-ui-content .float-ui-container-popover--border{border-radius:var(--popover-radius-rounded-desktop)}}float-ui-content .float-ui-container-popover--border .float-ui-arrow{width:18px;height:18px;border-bottom:4px solid var(--header-popover-border-top);border-right:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=top]{border-bottom:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=top] .float-ui-arrow{bottom:-12px!important}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=bottom]{border-top:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=bottom] .float-ui-arrow{top:-12px!important}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=left]{border-right:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=left] .float-ui-arrow{right:-12px!important}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=right]{border-left:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=right] .float-ui-arrow{left:-12px!important}float-ui-content .float-ui-container-popover[data-float-ui-placement=top]{transform:translateY(-4px)}float-ui-content .float-ui-container-popover[data-float-ui-placement=bottom]{transform:translateY(4px)}float-ui-content .float-ui-container-popover[data-float-ui-placement=bottom] .float-ui-arrow{transform:rotate(-135deg)}float-ui-content .float-ui-container-popover[data-float-ui-placement=left]{transform:translate(-4px)}float-ui-content .float-ui-container-popover[data-float-ui-placement=left] .float-ui-arrow{transform:rotate(-45deg)}float-ui-content .float-ui-container-popover[data-float-ui-placement=right]{transform:translate(4px)}float-ui-content .float-ui-container-popover[data-float-ui-placement=right] .float-ui-arrow{transform:rotate(135deg)}.tedi-popover-trigger__text{text-decoration:underline dashed var(--general-border-secondary);text-underline-offset:.5em}.tedi-popover-content{position:relative;max-width:calc(100dvw - 1rem);display:flex;flex-direction:column;background:var(--popover-background);color:var(--popover-text);z-index:var(--z-index-dropdown)}.tedi-popover-content{gap:var(--layout-grid-gutters-08-mobile)}@media (min-width: 576px){.tedi-popover-content{gap:var(--layout-grid-gutters-08-tablet)}}@media (min-width: 992px){.tedi-popover-content{gap:var(--layout-grid-gutters-08-desktop)}}.tedi-popover-content{padding:var(--popover-padding-sm-mobile)}@media (min-width: 576px){.tedi-popover-content{padding:var(--popover-padding-sm-tablet)}}@media (min-width: 992px){.tedi-popover-content{padding:var(--popover-padding-sm-desktop)}}.tedi-popover-content{border-radius:var(--popover-radius-rounded-mobile)}@media (min-width: 576px){.tedi-popover-content{border-radius:var(--popover-radius-rounded-tablet)}}@media (min-width: 992px){.tedi-popover-content{border-radius:var(--popover-radius-rounded-desktop)}}.tedi-popover-content--none{width:none}.tedi-popover-content--small{width:240px}.tedi-popover-content--medium{width:480px}.tedi-popover-content--large{width:840px}.tedi-popover-content__head{display:flex;justify-content:space-between}.tedi-popover-content__head{gap:var(--layout-grid-gutters-08-mobile)}@media (min-width: 576px){.tedi-popover-content__head{gap:var(--layout-grid-gutters-08-tablet)}}@media (min-width: 992px){.tedi-popover-content__head{gap:var(--layout-grid-gutters-08-desktop)}}.tedi-popover-content__head>div{display:flex;flex-direction:column;flex:1 1 0;min-width:0}.tedi-popover-content__head>div{gap:var(--layout-grid-gutters-08-mobile)}@media (min-width: 576px){.tedi-popover-content__head>div{gap:var(--layout-grid-gutters-08-tablet)}}@media (min-width: 992px){.tedi-popover-content__head>div{gap:var(--layout-grid-gutters-08-desktop)}}.tedi-popover-content__title{align-self:center}\n"] }]
|
|
2591
|
-
}] });
|
|
2592
|
-
|
|
2593
|
-
let popoverTitleId = 0;
|
|
2594
|
-
class PopoverContentComponent {
|
|
2595
|
-
/**
|
|
2596
|
-
* The width of the popover. Can be 'none', 'small', 'medium', or 'large'.
|
|
2597
|
-
* @default small
|
|
2598
|
-
*/
|
|
2599
|
-
maxWidth = input("small");
|
|
2600
|
-
/**
|
|
2601
|
-
* Heading title of the content
|
|
2602
|
-
*/
|
|
2603
|
-
title = input("");
|
|
2604
|
-
/**
|
|
2605
|
-
* Should content show close button?
|
|
2606
|
-
* @default false
|
|
2607
|
-
*/
|
|
2608
|
-
showClose = input(false);
|
|
2609
|
-
popover = inject(PopoverComponent, { optional: true });
|
|
2610
|
-
titleId = `popover-title-${popoverTitleId++}`;
|
|
2611
|
-
classes = computed(() => {
|
|
2612
|
-
const classList = ["tedi-popover-content", `tedi-popover-content--${this.maxWidth()}`];
|
|
2613
|
-
return classList.join(" ");
|
|
2614
|
-
});
|
|
2615
|
-
handleClose() {
|
|
2616
|
-
this.popover?.floatUiComponent.hide();
|
|
2617
|
-
}
|
|
2618
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: PopoverContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2619
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: PopoverContentComponent, isStandalone: true, selector: "tedi-popover-content", inputs: { maxWidth: { classPropertyName: "maxWidth", publicName: "maxWidth", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, showClose: { classPropertyName: "showClose", publicName: "showClose", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "dialog" }, properties: { "class": "classes()", "attr.aria-labelledby": "title() ? titleId : null" } }, ngImport: i0, template: "@if (title() && showClose()) {\n <div class=\"tedi-popover-content__head\">\n <h4 class=\"tedi-popover-content__title\" [id]=\"titleId\">{{ title() }}</h4>\n <button tedi-closing-button (click)=\"handleClose()\"></button>\n </div>\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n} @else if (showClose()) {\n <div class=\"tedi-popover-content__head\">\n <div>\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </div>\n <button tedi-closing-button size=\"small\" (click)=\"handleClose()\"></button>\n </div>\n} @else if (title()) {\n <h4 [id]=\"titleId\">{{ title() }}</h4>\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n} @else {\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n}\n\n<ng-template #content>\n <ng-content></ng-content>\n</ng-template>", styles: ["tedi-popover{display:block}tedi-popover-trigger{display:inline-flex;cursor:pointer}float-ui-content .float-ui-container-popover{padding:0;border:var(--borders-01) solid var(--popover-border);box-shadow:0 1px 5px 0 var(--alpha-20, rgba(0, 0, 0, .2))}float-ui-content .float-ui-container-popover{border-radius:var(--popover-radius-rounded-mobile)}@media (min-width: 576px){float-ui-content .float-ui-container-popover{border-radius:var(--popover-radius-rounded-tablet)}}@media (min-width: 992px){float-ui-content .float-ui-container-popover{border-radius:var(--popover-radius-rounded-desktop)}}float-ui-content .float-ui-container-popover .float-ui-arrow{width:24px;height:24px;background:var(--popover-background);filter:drop-shadow(0 0 5px var(--alpha-20));clip-path:inset(0px -5px -5px 0px);z-index:var(--z-index-dropdown)}float-ui-content .float-ui-container-popover--border{border-radius:var(--popover-radius-rounded-mobile)}@media (min-width: 576px){float-ui-content .float-ui-container-popover--border{border-radius:var(--popover-radius-rounded-tablet)}}@media (min-width: 992px){float-ui-content .float-ui-container-popover--border{border-radius:var(--popover-radius-rounded-desktop)}}float-ui-content .float-ui-container-popover--border .float-ui-arrow{width:18px;height:18px;border-bottom:4px solid var(--header-popover-border-top);border-right:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=top]{border-bottom:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=top] .float-ui-arrow{bottom:-12px!important}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=bottom]{border-top:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=bottom] .float-ui-arrow{top:-12px!important}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=left]{border-right:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=left] .float-ui-arrow{right:-12px!important}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=right]{border-left:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=right] .float-ui-arrow{left:-12px!important}float-ui-content .float-ui-container-popover[data-float-ui-placement=top]{transform:translateY(-4px)}float-ui-content .float-ui-container-popover[data-float-ui-placement=bottom]{transform:translateY(4px)}float-ui-content .float-ui-container-popover[data-float-ui-placement=bottom] .float-ui-arrow{transform:rotate(-135deg)}float-ui-content .float-ui-container-popover[data-float-ui-placement=left]{transform:translate(-4px)}float-ui-content .float-ui-container-popover[data-float-ui-placement=left] .float-ui-arrow{transform:rotate(-45deg)}float-ui-content .float-ui-container-popover[data-float-ui-placement=right]{transform:translate(4px)}float-ui-content .float-ui-container-popover[data-float-ui-placement=right] .float-ui-arrow{transform:rotate(135deg)}.tedi-popover-trigger__text{text-decoration:underline dashed var(--general-border-secondary);text-underline-offset:.5em}.tedi-popover-content{position:relative;max-width:calc(100dvw - 1rem);display:flex;flex-direction:column;background:var(--popover-background);color:var(--popover-text);z-index:var(--z-index-dropdown)}.tedi-popover-content{gap:var(--layout-grid-gutters-08-mobile)}@media (min-width: 576px){.tedi-popover-content{gap:var(--layout-grid-gutters-08-tablet)}}@media (min-width: 992px){.tedi-popover-content{gap:var(--layout-grid-gutters-08-desktop)}}.tedi-popover-content{padding:var(--popover-padding-sm-mobile)}@media (min-width: 576px){.tedi-popover-content{padding:var(--popover-padding-sm-tablet)}}@media (min-width: 992px){.tedi-popover-content{padding:var(--popover-padding-sm-desktop)}}.tedi-popover-content{border-radius:var(--popover-radius-rounded-mobile)}@media (min-width: 576px){.tedi-popover-content{border-radius:var(--popover-radius-rounded-tablet)}}@media (min-width: 992px){.tedi-popover-content{border-radius:var(--popover-radius-rounded-desktop)}}.tedi-popover-content--none{width:none}.tedi-popover-content--small{width:240px}.tedi-popover-content--medium{width:480px}.tedi-popover-content--large{width:840px}.tedi-popover-content__head{display:flex;justify-content:space-between}.tedi-popover-content__head{gap:var(--layout-grid-gutters-08-mobile)}@media (min-width: 576px){.tedi-popover-content__head{gap:var(--layout-grid-gutters-08-tablet)}}@media (min-width: 992px){.tedi-popover-content__head{gap:var(--layout-grid-gutters-08-desktop)}}.tedi-popover-content__head>div{display:flex;flex-direction:column;flex:1 1 0;min-width:0}.tedi-popover-content__head>div{gap:var(--layout-grid-gutters-08-mobile)}@media (min-width: 576px){.tedi-popover-content__head>div{gap:var(--layout-grid-gutters-08-tablet)}}@media (min-width: 992px){.tedi-popover-content__head>div{gap:var(--layout-grid-gutters-08-desktop)}}.tedi-popover-content__title{align-self:center}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ClosingButtonComponent, selector: "button[tedi-closing-button]", inputs: ["size", "iconSize"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2620
|
-
}
|
|
2621
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: PopoverContentComponent, decorators: [{
|
|
2622
|
-
type: Component,
|
|
2623
|
-
args: [{ standalone: true, selector: "tedi-popover-content", encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, imports: [NgTemplateOutlet, ClosingButtonComponent], host: {
|
|
2624
|
-
"[class]": "classes()",
|
|
2625
|
-
"role": "dialog",
|
|
2626
|
-
"[attr.aria-labelledby]": "title() ? titleId : null",
|
|
2627
|
-
}, template: "@if (title() && showClose()) {\n <div class=\"tedi-popover-content__head\">\n <h4 class=\"tedi-popover-content__title\" [id]=\"titleId\">{{ title() }}</h4>\n <button tedi-closing-button (click)=\"handleClose()\"></button>\n </div>\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n} @else if (showClose()) {\n <div class=\"tedi-popover-content__head\">\n <div>\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </div>\n <button tedi-closing-button size=\"small\" (click)=\"handleClose()\"></button>\n </div>\n} @else if (title()) {\n <h4 [id]=\"titleId\">{{ title() }}</h4>\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n} @else {\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n}\n\n<ng-template #content>\n <ng-content></ng-content>\n</ng-template>", styles: ["tedi-popover{display:block}tedi-popover-trigger{display:inline-flex;cursor:pointer}float-ui-content .float-ui-container-popover{padding:0;border:var(--borders-01) solid var(--popover-border);box-shadow:0 1px 5px 0 var(--alpha-20, rgba(0, 0, 0, .2))}float-ui-content .float-ui-container-popover{border-radius:var(--popover-radius-rounded-mobile)}@media (min-width: 576px){float-ui-content .float-ui-container-popover{border-radius:var(--popover-radius-rounded-tablet)}}@media (min-width: 992px){float-ui-content .float-ui-container-popover{border-radius:var(--popover-radius-rounded-desktop)}}float-ui-content .float-ui-container-popover .float-ui-arrow{width:24px;height:24px;background:var(--popover-background);filter:drop-shadow(0 0 5px var(--alpha-20));clip-path:inset(0px -5px -5px 0px);z-index:var(--z-index-dropdown)}float-ui-content .float-ui-container-popover--border{border-radius:var(--popover-radius-rounded-mobile)}@media (min-width: 576px){float-ui-content .float-ui-container-popover--border{border-radius:var(--popover-radius-rounded-tablet)}}@media (min-width: 992px){float-ui-content .float-ui-container-popover--border{border-radius:var(--popover-radius-rounded-desktop)}}float-ui-content .float-ui-container-popover--border .float-ui-arrow{width:18px;height:18px;border-bottom:4px solid var(--header-popover-border-top);border-right:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=top]{border-bottom:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=top] .float-ui-arrow{bottom:-12px!important}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=bottom]{border-top:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=bottom] .float-ui-arrow{top:-12px!important}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=left]{border-right:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=left] .float-ui-arrow{right:-12px!important}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=right]{border-left:4px solid var(--header-popover-border-top)}float-ui-content .float-ui-container-popover--border[data-float-ui-placement=right] .float-ui-arrow{left:-12px!important}float-ui-content .float-ui-container-popover[data-float-ui-placement=top]{transform:translateY(-4px)}float-ui-content .float-ui-container-popover[data-float-ui-placement=bottom]{transform:translateY(4px)}float-ui-content .float-ui-container-popover[data-float-ui-placement=bottom] .float-ui-arrow{transform:rotate(-135deg)}float-ui-content .float-ui-container-popover[data-float-ui-placement=left]{transform:translate(-4px)}float-ui-content .float-ui-container-popover[data-float-ui-placement=left] .float-ui-arrow{transform:rotate(-45deg)}float-ui-content .float-ui-container-popover[data-float-ui-placement=right]{transform:translate(4px)}float-ui-content .float-ui-container-popover[data-float-ui-placement=right] .float-ui-arrow{transform:rotate(135deg)}.tedi-popover-trigger__text{text-decoration:underline dashed var(--general-border-secondary);text-underline-offset:.5em}.tedi-popover-content{position:relative;max-width:calc(100dvw - 1rem);display:flex;flex-direction:column;background:var(--popover-background);color:var(--popover-text);z-index:var(--z-index-dropdown)}.tedi-popover-content{gap:var(--layout-grid-gutters-08-mobile)}@media (min-width: 576px){.tedi-popover-content{gap:var(--layout-grid-gutters-08-tablet)}}@media (min-width: 992px){.tedi-popover-content{gap:var(--layout-grid-gutters-08-desktop)}}.tedi-popover-content{padding:var(--popover-padding-sm-mobile)}@media (min-width: 576px){.tedi-popover-content{padding:var(--popover-padding-sm-tablet)}}@media (min-width: 992px){.tedi-popover-content{padding:var(--popover-padding-sm-desktop)}}.tedi-popover-content{border-radius:var(--popover-radius-rounded-mobile)}@media (min-width: 576px){.tedi-popover-content{border-radius:var(--popover-radius-rounded-tablet)}}@media (min-width: 992px){.tedi-popover-content{border-radius:var(--popover-radius-rounded-desktop)}}.tedi-popover-content--none{width:none}.tedi-popover-content--small{width:240px}.tedi-popover-content--medium{width:480px}.tedi-popover-content--large{width:840px}.tedi-popover-content__head{display:flex;justify-content:space-between}.tedi-popover-content__head{gap:var(--layout-grid-gutters-08-mobile)}@media (min-width: 576px){.tedi-popover-content__head{gap:var(--layout-grid-gutters-08-tablet)}}@media (min-width: 992px){.tedi-popover-content__head{gap:var(--layout-grid-gutters-08-desktop)}}.tedi-popover-content__head>div{display:flex;flex-direction:column;flex:1 1 0;min-width:0}.tedi-popover-content__head>div{gap:var(--layout-grid-gutters-08-mobile)}@media (min-width: 576px){.tedi-popover-content__head>div{gap:var(--layout-grid-gutters-08-tablet)}}@media (min-width: 992px){.tedi-popover-content__head>div{gap:var(--layout-grid-gutters-08-desktop)}}.tedi-popover-content__title{align-self:center}\n"] }]
|
|
2628
|
-
}] });
|
|
2629
|
-
|
|
2630
3916
|
class HeaderLanguageComponent {
|
|
2631
3917
|
/**
|
|
2632
3918
|
* Languages object.
|
|
2633
3919
|
* Key is value in 'Language' type.
|
|
2634
3920
|
* Value should be text shown in the UI.
|
|
2635
|
-
|
|
3921
|
+
*/
|
|
2636
3922
|
languages = input.required();
|
|
2637
3923
|
/**
|
|
2638
3924
|
* This is event emitter for changing language
|
|
@@ -2644,15 +3930,23 @@ class HeaderLanguageComponent {
|
|
|
2644
3930
|
handleChangeLang(lang) {
|
|
2645
3931
|
this.languageChange.emit(lang);
|
|
2646
3932
|
this.translationService.setLanguage(lang);
|
|
2647
|
-
this.popover?.floatUiComponent.hide();
|
|
3933
|
+
this.popover?.floatUiComponent().hide();
|
|
2648
3934
|
}
|
|
2649
3935
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: HeaderLanguageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2650
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.15", type: HeaderLanguageComponent, isStandalone: true, selector: "tedi-header-language", inputs: { languages: { classPropertyName: "languages", publicName: "languages", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { languageChange: "languageChange" }, host: { classAttribute: "tedi-header-language" }, viewQueries: [{ propertyName: "popover", first: true, predicate: i0.forwardRef(() => PopoverComponent), descendants: true }], ngImport: i0, template: "<span tedi-text color=\"secondary\" modifiers=\"small\" class=\"tedi-header-language__label\">{{ \"header.select-lang\" | tediTranslate }}</span>\n<tedi-popover [withBorder]=\"true\" position=\"bottom\">\n <tedi-popover-trigger>\n <button class=\"tedi-link tedi-header__link-button\">\n <span>{{ languages()[translationService.getLanguage()] }}</span>\n <tedi-icon name=\"expand_more\" />\n </button>\n </tedi-popover-trigger>\n <tedi-popover-content maxWidth=\"none\">\n <button \n *ngFor=\"let language of languageKeys();\" \n class=\"tedi-link tedi-header__link-button\"\n (click)=\"handleChangeLang(language)\"\n >\n <span>{{ languages()[language] }}</span>\n </button>\n </tedi-popover-content>\n</tedi-popover>", styles: [":root{--_header-language-transition-duration: .3s}.tedi-header-language{display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.tedi-header-language tedi-popover-trigger tedi-icon{transition:transform var(--_header-language-transition-duration) ease}.tedi-header-language tedi-popover-trigger[data-open=true] tedi-icon{transform:rotate(180deg)}.tedi-header-language__label{display:none}@media (min-width: 576px){.tedi-header-language__label{display:block}}\n"], dependencies: [{ kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: IconComponent, selector: "tedi-icon", inputs: ["name", "size", "color", "background", "variant", "type", "label"] }, { kind: "component", type: TextComponent, selector: "[tedi-text]", inputs: ["modifiers", "color"] }, { kind: "component", type: PopoverComponent, selector: "tedi-popover", inputs: ["openWith", "position", "dismissible", "hideOnScroll", "withBorder", "lockScroll"] }, { kind: "component", type: PopoverTriggerComponent, selector: "tedi-popover-trigger" }, { kind: "component", type: PopoverContentComponent, selector: "tedi-popover-content", inputs: ["maxWidth", "title", "showClose"] }, { kind: "pipe", type: TediTranslationPipe, name: "tediTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
3936
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.15", type: HeaderLanguageComponent, isStandalone: true, selector: "tedi-header-language", inputs: { languages: { classPropertyName: "languages", publicName: "languages", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { languageChange: "languageChange" }, host: { classAttribute: "tedi-header-language" }, viewQueries: [{ propertyName: "popover", first: true, predicate: i0.forwardRef(() => PopoverComponent), descendants: true }], ngImport: i0, template: "<span tedi-text color=\"secondary\" modifiers=\"small\" class=\"tedi-header-language__label\">{{ \"header.select-lang\" | tediTranslate }}</span>\n<tedi-popover [withBorder]=\"true\" position=\"bottom\">\n <tedi-popover-trigger>\n <button class=\"tedi-link tedi-header__link-button\">\n <span>{{ languages()[translationService.getLanguage()] }}</span>\n <tedi-icon name=\"expand_more\" />\n </button>\n </tedi-popover-trigger>\n <tedi-popover-content maxWidth=\"none\">\n <button \n *ngFor=\"let language of languageKeys();\" \n class=\"tedi-link tedi-header__link-button\"\n (click)=\"handleChangeLang(language)\"\n >\n <span>{{ languages()[language] }}</span>\n </button>\n </tedi-popover-content>\n</tedi-popover>", styles: [":root{--_header-language-transition-duration: .3s}.tedi-header-language{display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.tedi-header-language tedi-popover-trigger tedi-icon{transition:transform var(--_header-language-transition-duration) ease}.tedi-header-language tedi-popover-trigger[data-open=true] tedi-icon{transform:rotate(180deg)}.tedi-header-language__label{display:none}@media (min-width: 576px){.tedi-header-language__label{display:block}}\n"], dependencies: [{ kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: IconComponent, selector: "tedi-icon", inputs: ["name", "size", "color", "background", "variant", "type", "label"] }, { kind: "component", type: TextComponent, selector: "[tedi-text]", inputs: ["modifiers", "color"] }, { kind: "component", type: PopoverComponent, selector: "tedi-popover", inputs: ["openWith", "position", "dismissible", "hideOnScroll", "withBorder", "withArrow", "lockScroll"] }, { kind: "component", type: PopoverTriggerComponent, selector: "tedi-popover-trigger" }, { kind: "component", type: PopoverContentComponent, selector: "tedi-popover-content", inputs: ["maxWidth", "title", "showClose"] }, { kind: "pipe", type: TediTranslationPipe, name: "tediTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2651
3937
|
}
|
|
2652
3938
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: HeaderLanguageComponent, decorators: [{
|
|
2653
3939
|
type: Component,
|
|
2654
|
-
args: [{ selector:
|
|
2655
|
-
|
|
3940
|
+
args: [{ selector: "tedi-header-language", standalone: true, imports: [
|
|
3941
|
+
NgFor,
|
|
3942
|
+
IconComponent,
|
|
3943
|
+
TextComponent,
|
|
3944
|
+
PopoverComponent,
|
|
3945
|
+
PopoverTriggerComponent,
|
|
3946
|
+
PopoverContentComponent,
|
|
3947
|
+
TediTranslationPipe,
|
|
3948
|
+
], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
3949
|
+
class: "tedi-header-language",
|
|
2656
3950
|
}, template: "<span tedi-text color=\"secondary\" modifiers=\"small\" class=\"tedi-header-language__label\">{{ \"header.select-lang\" | tediTranslate }}</span>\n<tedi-popover [withBorder]=\"true\" position=\"bottom\">\n <tedi-popover-trigger>\n <button class=\"tedi-link tedi-header__link-button\">\n <span>{{ languages()[translationService.getLanguage()] }}</span>\n <tedi-icon name=\"expand_more\" />\n </button>\n </tedi-popover-trigger>\n <tedi-popover-content maxWidth=\"none\">\n <button \n *ngFor=\"let language of languageKeys();\" \n class=\"tedi-link tedi-header__link-button\"\n (click)=\"handleChangeLang(language)\"\n >\n <span>{{ languages()[language] }}</span>\n </button>\n </tedi-popover-content>\n</tedi-popover>", styles: [":root{--_header-language-transition-duration: .3s}.tedi-header-language{display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.tedi-header-language tedi-popover-trigger tedi-icon{transition:transform var(--_header-language-transition-duration) ease}.tedi-header-language tedi-popover-trigger[data-open=true] tedi-icon{transform:rotate(180deg)}.tedi-header-language__label{display:none}@media (min-width: 576px){.tedi-header-language__label{display:block}}\n"] }]
|
|
2657
3951
|
}], propDecorators: { popover: [{
|
|
2658
3952
|
type: ViewChild,
|
|
@@ -2785,7 +4079,7 @@ class HeaderProfileComponent {
|
|
|
2785
4079
|
}
|
|
2786
4080
|
}
|
|
2787
4081
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: HeaderProfileComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2788
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: HeaderProfileComponent, isStandalone: true, selector: "tedi-header-profile", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, showDropdown: { classPropertyName: "showDropdown", publicName: "showDropdown", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@if (showDropdown(); as dropdown) {\n <ng-container *hideAt=\"dropdown\">\n <ng-container *ngTemplateOutlet=\"button\"></ng-container>\n <ng-container *ngTemplateOutlet=\"modal\"></ng-container>\n </ng-container>\n\n <ng-container *showAt=\"dropdown\">\n <tedi-popover [withBorder]=\"true\" position=\"bottom\">\n <tedi-popover-trigger>\n <ng-container *ngTemplateOutlet=\"button\"></ng-container>\n </tedi-popover-trigger>\n <tedi-popover-content maxWidth=\"small\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </tedi-popover-content>\n </tedi-popover>\n </ng-container>\n} @else {\n <ng-container *ngTemplateOutlet=\"button\"></ng-container>\n <ng-container *ngTemplateOutlet=\"modal\"></ng-container>\n}\n\n<ng-template #button>\n <ng-container *hideAt=\"'sm'\">\n <button\n tedi-button\n variant=\"neutral\"\n class=\"tedi-header-profile--mobile\"\n [attr.data-open]=\"modalOpen()\"\n (click)=\"handleModalOpen()\"\n >\n <tedi-icon\n [name]=\"modalOpen() ? 'close' : 'account_circle'\"\n color=\"brand\"\n />\n {{ \"header.profile\" | tediTranslate }}\n </button>\n </ng-container>\n\n <ng-container *showAt=\"'sm'\">\n <button\n tedi-button\n [variant]=\"name() ? 'secondary' : 'neutral'\"\n (click)=\"handleModalOpen()\"\n >\n <tedi-icon\n name=\"account_circle\"\n color=\"brand\"\n [style]=\"{ 'font-size': name() ? '18px' : '36px' }\"\n />\n {{ name() }}\n @if (name()) {\n <tedi-icon name=\"expand_more\" style=\"font-size: 18px\" />\n }\n </button>\n </ng-container>\n</ng-template>\n\n<ng-template #modal>\n @if (modalOpen()) {\n <div class=\"tedi-header-profile__overlay\" (click)=\"handleModalOpen()\"></div>\n <div class=\"tedi-header-profile__modal\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </div>\n }\n</ng-template>\n\n<ng-template #content>\n <ng-content></ng-content>\n</ng-template>\n", styles: ["tedi-header-profile{align-content:center}tedi-header-profile{--_header-min-height: var(--layout-header-min-height-mobile)}@media (min-width: 576px){tedi-header-profile{--_header-min-height: var(--layout-header-min-height-tablet)}}@media (min-width: 992px){tedi-header-profile{--_header-min-height: var(--layout-header-min-height-desktop)}}tedi-header-profile tedi-popover tedi-popover-trigger{height:46px;align-items:center}tedi-header-profile .tedi-header-profile--mobile{flex-direction:column;justify-content:center;align-items:center;gap:0;border:0;border-radius:0;font-size:12px;line-height:16px}tedi-header-profile .tedi-header-profile--mobile{min-width:var(--layout-header-mobile-button-size-mobile)}@media (min-width: 576px){tedi-header-profile .tedi-header-profile--mobile{min-width:var(--layout-header-mobile-button-size-tablet)}}@media (min-width: 992px){tedi-header-profile .tedi-header-profile--mobile{min-width:var(--layout-header-mobile-button-size-desktop)}}tedi-header-profile .tedi-header-profile--mobile{min-height:var(--layout-header-mobile-button-size-mobile)}@media (min-width: 576px){tedi-header-profile .tedi-header-profile--mobile{min-height:var(--layout-header-mobile-button-size-tablet)}}@media (min-width: 992px){tedi-header-profile .tedi-header-profile--mobile{min-height:var(--layout-header-mobile-button-size-desktop)}}tedi-header-profile .tedi-header-profile--mobile{padding:var(--layout-grid-gutters-08-mobile)}@media (min-width: 576px){tedi-header-profile .tedi-header-profile--mobile{padding:var(--layout-grid-gutters-08-tablet)}}@media (min-width: 992px){tedi-header-profile .tedi-header-profile--mobile{padding:var(--layout-grid-gutters-08-desktop)}}tedi-header-profile .tedi-header-profile--mobile:focus-visible{outline:var(--borders-02) solid var(--primary-500);outline-offset:calc(-1 * var(--borders-02))}tedi-header-profile .tedi-header-profile--mobile tedi-icon{font-size:var(--icon-05-mobile)}@media (min-width: 576px){tedi-header-profile .tedi-header-profile--mobile tedi-icon{font-size:var(--icon-05-tablet)}}@media (min-width: 992px){tedi-header-profile .tedi-header-profile--mobile tedi-icon{font-size:var(--icon-05-desktop)}}tedi-header-profile .tedi-header-profile--mobile[data-open=true]{background:var(--button-main-neutral-icon-only-background-active)}tedi-header-profile .tedi-header-profile__overlay{position:absolute;left:0;top:var(--_header-min-height);width:100%;min-height:calc(100dvh - var(--_header-min-height));background:#00000040;z-index:calc(var(--z-index-header) - 1)}tedi-header-profile .tedi-header-profile__modal{min-height:calc(100dvh - var(--_header-min-height));max-height:100%;position:absolute;right:0;top:var(--_header-min-height);overflow-y:auto;display:flex;flex-direction:column;background:var(--general-surface-primary);z-index:var(--z-index-header)}tedi-header-profile .tedi-header-profile__modal{width:var(--side-navigation-item-width-default-mobile)}@media (min-width: 576px){tedi-header-profile .tedi-header-profile__modal{width:var(--side-navigation-item-width-default-tablet)}}@media (min-width: 992px){tedi-header-profile .tedi-header-profile__modal{width:var(--side-navigation-item-width-default-desktop)}}tedi-header-profile .tedi-header-profile__modal>*{padding:var(--layout-header-modal-item-padding-mobile)}@media (min-width: 576px){tedi-header-profile .tedi-header-profile__modal>*{padding:var(--layout-header-modal-item-padding-tablet)}}@media (min-width: 992px){tedi-header-profile .tedi-header-profile__modal>*{padding:var(--layout-header-modal-item-padding-desktop)}}tedi-header-profile .tedi-header-profile__modal>*:not(:last-child){border-bottom:var(--borders-01) solid var(--general-border-primary)}tedi-header-profile .tedi-header-profile__modal>*:has(.tedi-header-role__head){border-bottom:var(--borders-04) solid var(--general-border-brand)}tedi-header-profile .tedi-header-profile__modal .tedi-header-logout--mobile{flex-direction:row;justify-content:flex-start}tedi-header-profile .tedi-header-profile__modal .tedi-header-logout--mobile{font-size:var(--body-regular-size-mobile)}@media (min-width: 576px){tedi-header-profile .tedi-header-profile__modal .tedi-header-logout--mobile{font-size:var(--body-regular-size-tablet)}}@media (min-width: 992px){tedi-header-profile .tedi-header-profile__modal .tedi-header-logout--mobile{font-size:var(--body-regular-size-desktop)}}tedi-header-profile .tedi-header-profile__modal .tedi-header-logout--mobile{gap:var(--link-inner-spacing-x-mobile)}@media (min-width: 576px){tedi-header-profile .tedi-header-profile__modal .tedi-header-logout--mobile{gap:var(--link-inner-spacing-x-tablet)}}@media (min-width: 992px){tedi-header-profile .tedi-header-profile__modal .tedi-header-logout--mobile{gap:var(--link-inner-spacing-x-desktop)}}tedi-header-profile .tedi-header-profile__modal .tedi-header-logout--mobile tedi-icon{font-size:inherit!important}\n"], dependencies: [{ kind: "component", type: PopoverComponent, selector: "tedi-popover", inputs: ["openWith", "position", "dismissible", "hideOnScroll", "withBorder", "lockScroll"] }, { kind: "component", type: PopoverTriggerComponent, selector: "tedi-popover-trigger" }, { kind: "component", type: PopoverContentComponent, selector: "tedi-popover-content", inputs: ["maxWidth", "title", "showClose"] }, { kind: "component", type: IconComponent, selector: "tedi-icon", inputs: ["name", "size", "color", "background", "variant", "type", "label"] }, { kind: "component", type: ButtonComponent, selector: "[tedi-button]", inputs: ["variant", "size"] }, { kind: "directive", type: ShowAtDirective, selector: "[showAt]", inputs: ["showAt"] }, { kind: "directive", type: HideAtDirective, selector: "[hideAt]", inputs: ["hideAt"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: TediTranslationPipe, name: "tediTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
4082
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: HeaderProfileComponent, isStandalone: true, selector: "tedi-header-profile", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, showDropdown: { classPropertyName: "showDropdown", publicName: "showDropdown", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@if (showDropdown(); as dropdown) {\n <ng-container *hideAt=\"dropdown\">\n <ng-container *ngTemplateOutlet=\"button\"></ng-container>\n <ng-container *ngTemplateOutlet=\"modal\"></ng-container>\n </ng-container>\n\n <ng-container *showAt=\"dropdown\">\n <tedi-popover [withBorder]=\"true\" position=\"bottom\">\n <tedi-popover-trigger>\n <ng-container *ngTemplateOutlet=\"button\"></ng-container>\n </tedi-popover-trigger>\n <tedi-popover-content maxWidth=\"small\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </tedi-popover-content>\n </tedi-popover>\n </ng-container>\n} @else {\n <ng-container *ngTemplateOutlet=\"button\"></ng-container>\n <ng-container *ngTemplateOutlet=\"modal\"></ng-container>\n}\n\n<ng-template #button>\n <ng-container *hideAt=\"'sm'\">\n <button\n tedi-button\n variant=\"neutral\"\n class=\"tedi-header-profile--mobile\"\n [attr.data-open]=\"modalOpen()\"\n (click)=\"handleModalOpen()\"\n >\n <tedi-icon\n [name]=\"modalOpen() ? 'close' : 'account_circle'\"\n color=\"brand\"\n />\n {{ \"header.profile\" | tediTranslate }}\n </button>\n </ng-container>\n\n <ng-container *showAt=\"'sm'\">\n <button\n tedi-button\n [variant]=\"name() ? 'secondary' : 'neutral'\"\n (click)=\"handleModalOpen()\"\n >\n <tedi-icon\n name=\"account_circle\"\n color=\"brand\"\n [style]=\"{ 'font-size': name() ? '18px' : '36px' }\"\n />\n {{ name() }}\n @if (name()) {\n <tedi-icon name=\"expand_more\" style=\"font-size: 18px\" />\n }\n </button>\n </ng-container>\n</ng-template>\n\n<ng-template #modal>\n @if (modalOpen()) {\n <div class=\"tedi-header-profile__overlay\" (click)=\"handleModalOpen()\"></div>\n <div class=\"tedi-header-profile__modal\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </div>\n }\n</ng-template>\n\n<ng-template #content>\n <ng-content></ng-content>\n</ng-template>\n", styles: ["tedi-header-profile{align-content:center}tedi-header-profile{--_header-min-height: var(--layout-header-min-height-mobile)}@media (min-width: 576px){tedi-header-profile{--_header-min-height: var(--layout-header-min-height-tablet)}}@media (min-width: 992px){tedi-header-profile{--_header-min-height: var(--layout-header-min-height-desktop)}}tedi-header-profile tedi-popover tedi-popover-trigger{height:46px;align-items:center}tedi-header-profile .tedi-header-profile--mobile{flex-direction:column;justify-content:center;align-items:center;gap:0;border:0;border-radius:0;font-size:12px;line-height:16px}tedi-header-profile .tedi-header-profile--mobile{min-width:var(--layout-header-mobile-button-size-mobile)}@media (min-width: 576px){tedi-header-profile .tedi-header-profile--mobile{min-width:var(--layout-header-mobile-button-size-tablet)}}@media (min-width: 992px){tedi-header-profile .tedi-header-profile--mobile{min-width:var(--layout-header-mobile-button-size-desktop)}}tedi-header-profile .tedi-header-profile--mobile{min-height:var(--layout-header-mobile-button-size-mobile)}@media (min-width: 576px){tedi-header-profile .tedi-header-profile--mobile{min-height:var(--layout-header-mobile-button-size-tablet)}}@media (min-width: 992px){tedi-header-profile .tedi-header-profile--mobile{min-height:var(--layout-header-mobile-button-size-desktop)}}tedi-header-profile .tedi-header-profile--mobile{padding:var(--layout-grid-gutters-08-mobile)}@media (min-width: 576px){tedi-header-profile .tedi-header-profile--mobile{padding:var(--layout-grid-gutters-08-tablet)}}@media (min-width: 992px){tedi-header-profile .tedi-header-profile--mobile{padding:var(--layout-grid-gutters-08-desktop)}}tedi-header-profile .tedi-header-profile--mobile:focus-visible{outline:var(--borders-02) solid var(--primary-500);outline-offset:calc(-1 * var(--borders-02))}tedi-header-profile .tedi-header-profile--mobile tedi-icon{font-size:var(--icon-05-mobile)}@media (min-width: 576px){tedi-header-profile .tedi-header-profile--mobile tedi-icon{font-size:var(--icon-05-tablet)}}@media (min-width: 992px){tedi-header-profile .tedi-header-profile--mobile tedi-icon{font-size:var(--icon-05-desktop)}}tedi-header-profile .tedi-header-profile--mobile[data-open=true]{background:var(--button-main-neutral-icon-only-background-active)}tedi-header-profile .tedi-header-profile__overlay{position:absolute;left:0;top:var(--_header-min-height);width:100%;min-height:calc(100dvh - var(--_header-min-height));background:#00000040;z-index:calc(var(--z-index-header) - 1)}tedi-header-profile .tedi-header-profile__modal{min-height:calc(100dvh - var(--_header-min-height));max-height:100%;position:absolute;right:0;top:var(--_header-min-height);overflow-y:auto;display:flex;flex-direction:column;background:var(--general-surface-primary);z-index:var(--z-index-header)}tedi-header-profile .tedi-header-profile__modal{width:var(--side-navigation-item-width-default-mobile)}@media (min-width: 576px){tedi-header-profile .tedi-header-profile__modal{width:var(--side-navigation-item-width-default-tablet)}}@media (min-width: 992px){tedi-header-profile .tedi-header-profile__modal{width:var(--side-navigation-item-width-default-desktop)}}tedi-header-profile .tedi-header-profile__modal>*{padding:var(--layout-header-modal-item-padding-mobile)}@media (min-width: 576px){tedi-header-profile .tedi-header-profile__modal>*{padding:var(--layout-header-modal-item-padding-tablet)}}@media (min-width: 992px){tedi-header-profile .tedi-header-profile__modal>*{padding:var(--layout-header-modal-item-padding-desktop)}}tedi-header-profile .tedi-header-profile__modal>*:not(:last-child){border-bottom:var(--borders-01) solid var(--general-border-primary)}tedi-header-profile .tedi-header-profile__modal>*:has(.tedi-header-role__head){border-bottom:var(--borders-04) solid var(--general-border-brand)}tedi-header-profile .tedi-header-profile__modal .tedi-header-logout--mobile{flex-direction:row;justify-content:flex-start}tedi-header-profile .tedi-header-profile__modal .tedi-header-logout--mobile{font-size:var(--body-regular-size-mobile)}@media (min-width: 576px){tedi-header-profile .tedi-header-profile__modal .tedi-header-logout--mobile{font-size:var(--body-regular-size-tablet)}}@media (min-width: 992px){tedi-header-profile .tedi-header-profile__modal .tedi-header-logout--mobile{font-size:var(--body-regular-size-desktop)}}tedi-header-profile .tedi-header-profile__modal .tedi-header-logout--mobile{gap:var(--link-inner-spacing-x-mobile)}@media (min-width: 576px){tedi-header-profile .tedi-header-profile__modal .tedi-header-logout--mobile{gap:var(--link-inner-spacing-x-tablet)}}@media (min-width: 992px){tedi-header-profile .tedi-header-profile__modal .tedi-header-logout--mobile{gap:var(--link-inner-spacing-x-desktop)}}tedi-header-profile .tedi-header-profile__modal .tedi-header-logout--mobile tedi-icon{font-size:inherit!important}\n"], dependencies: [{ kind: "component", type: PopoverComponent, selector: "tedi-popover", inputs: ["openWith", "position", "dismissible", "hideOnScroll", "withBorder", "withArrow", "lockScroll"] }, { kind: "component", type: PopoverTriggerComponent, selector: "tedi-popover-trigger" }, { kind: "component", type: PopoverContentComponent, selector: "tedi-popover-content", inputs: ["maxWidth", "title", "showClose"] }, { kind: "component", type: IconComponent, selector: "tedi-icon", inputs: ["name", "size", "color", "background", "variant", "type", "label"] }, { kind: "component", type: ButtonComponent, selector: "[tedi-button]", inputs: ["variant", "size"] }, { kind: "directive", type: ShowAtDirective, selector: "[showAt]", inputs: ["showAt"] }, { kind: "directive", type: HideAtDirective, selector: "[hideAt]", inputs: ["hideAt"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: TediTranslationPipe, name: "tediTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2789
4083
|
}
|
|
2790
4084
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: HeaderProfileComponent, decorators: [{
|
|
2791
4085
|
type: Component,
|
|
@@ -2848,7 +4142,7 @@ class HeaderRoleComponent {
|
|
|
2848
4142
|
this.inputValue.set(value);
|
|
2849
4143
|
}
|
|
2850
4144
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: HeaderRoleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2851
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: HeaderRoleComponent, isStandalone: true, selector: "tedi-header-role", inputs: { role: { classPropertyName: "role", publicName: "role", isSignal: true, isRequired: false, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, showInput: { classPropertyName: "showInput", publicName: "showInput", isSignal: true, isRequired: false, transformFunction: null }, representatives: { classPropertyName: "representatives", publicName: "representatives", isSignal: true, isRequired: true, transformFunction: null }, currentRepresentative: { classPropertyName: "currentRepresentative", publicName: "currentRepresentative", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { currentRepresentative: "currentRepresentativeChange" }, host: { classAttribute: "tedi-header-role" }, ngImport: i0, template: "<ng-container *hideAt=\"'lg'\">\n <div class=\"tedi-header-role__head\">\n <div tedi-text color=\"secondary\" class=\"tedi-header-role__info\" [attr.data-multiple]=\"representatives().length > 1\">\n <b>{{ role() }} {{ currentRepresentative().name }}</b>\n @if (description()) {\n <span class=\"tedi-header-role__description\">{{ description() }}</span>\n }\n </div>\n @if (representatives().length > 1) {\n <button tedi-button variant=\"neutral\" (click)=\"handleMobileOpen()\">\n {{ collapseText() }}\n <tedi-icon name=\"expand_more\" [attr.data-open]=\"mobileOpen()\" />\n </button>\n }\n </div>\n @if (representatives().length > 1) {\n <div class=\"tedi-header-role__collapse\" [attr.data-open]=\"mobileOpen()\">\n <div class=\"tedi-header-role__collapse__items\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </div>\n </div>\n }\n</ng-container>\n\n<ng-container *showAt=\"'lg'\">\n @if (role() || description()) {\n <div tedi-text color=\"secondary\" modifiers=\"small\" class=\"tedi-header-role__head\">\n @if (role()) {\n <b>{{ role() }}</b>\n }\n\n @if (description()) {\n <span class=\"tedi-header-role__description\">{{ description() }}</span>\n }\n </div>\n }\n\n <ng-container *ngIf=\"representatives().length > 1; else normalText\">\n <tedi-popover [withBorder]=\"true\" position=\"bottom\">\n <tedi-popover-trigger>\n <button class=\"tedi-link tedi-header__link-button\">\n <span>{{ currentRepresentative().name }}</span>\n <tedi-icon name=\"expand_more\" />\n </button>\n </tedi-popover-trigger>\n <tedi-popover-content maxWidth=\"small\" class=\"tedi-header-role__dropdown\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </tedi-popover-content>\n </tedi-popover>\n </ng-container>\n</ng-container>\n\n<ng-template #content>\n @if (showInput()) {\n <div>\n <label for=\"representative-input\">{{ searchText() }}</label>\n <input id=\"representative-input\" class=\"tedi-header-role__input\" [value]=\"inputValue()\" (input)=\"handleInputChange($event)\" />\n </div>\n }\n @if (filteredRepresentatives().length === 0) {\n <span class=\"tedi-header-role__no-results\">{{ noResultsText() }}</span>\n }\n <button \n *ngFor=\"let r of filteredRepresentatives();\"\n class=\"tedi-header-role__representative\"\n [attr.data-selected]=\"r.name === currentRepresentative().name && r.description === currentRepresentative().description\"\n (click)=\"handleSelectRepresentative(r)\"\n >\n @if (r.icon) {\n <tedi-icon [name]=\"r.icon\" />\n }\n <div>\n <div>{{ r.name }}</div>\n @if (r.description) {\n <div>\n {{ r.description }}\n </div>\n }\n </div>\n </button>\n</ng-template>\n\n<ng-template #normalText>\n <div>{{ currentRepresentative().name }}</div>\n</ng-template>", styles: [":root{--_header-role-transition-duration: .3s}.tedi-header-role{display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.tedi-header-role__head{width:100%;display:flex;justify-content:space-between;align-items:center;gap:4px}@media (min-width: 992px){.tedi-header-role__head{justify-content:flex-start}}.tedi-header-role__head .tedi-header-role__info{display:flex;flex-direction:row;gap:var(--_header-role-info-gap)}.tedi-header-role__head .tedi-header-role__info{--_header-role-info-gap: var(--layout-grid-gutters-16-mobile)}@media (min-width: 576px){.tedi-header-role__head .tedi-header-role__info{--_header-role-info-gap: var(--layout-grid-gutters-16-tablet)}}@media (min-width: 992px){.tedi-header-role__head .tedi-header-role__info{--_header-role-info-gap: var(--layout-grid-gutters-16-desktop)}}.tedi-header-role__head .tedi-header-role__info[data-multiple=true]{flex-direction:column;gap:0px}.tedi-header-role__head .tedi-header-role__info[data-multiple=true] .tedi-header-role__description:before{display:none}.tedi-header-role__head .tedi-header-role__info .tedi-header-role__description{position:relative}.tedi-header-role__head .tedi-header-role__info .tedi-header-role__description:before{content:\"\";height:1rem;width:1px;position:absolute;top:50%;left:calc(-1 * var(--_header-role-info-gap) / 2);transform:translateY(-50%);background:var(--general-border-secondary)}.tedi-header-role__head button tedi-icon{transition:transform var(--_header-role-transition-duration) ease}.tedi-header-role__head button tedi-icon[data-open=true]{transform:rotate(180deg)}.tedi-header-role tedi-popover-trigger tedi-icon{transition:transform var(--_header-role-transition-duration) ease}.tedi-header-role tedi-popover-trigger[data-open=true] tedi-icon{transform:rotate(180deg)}.tedi-header-role__dropdown{display:flex;flex-direction:column;gap:var(--_header-role-dropdown-gap)!important}.tedi-header-role__dropdown{--_header-role-dropdown-gap: var(--layout-grid-gutters-16-mobile)}@media (min-width: 576px){.tedi-header-role__dropdown{--_header-role-dropdown-gap: var(--layout-grid-gutters-16-tablet)}}@media (min-width: 992px){.tedi-header-role__dropdown{--_header-role-dropdown-gap: var(--layout-grid-gutters-16-desktop)}}.tedi-header-role__dropdown>*:not(:first-child){position:relative}.tedi-header-role__dropdown>*:not(:first-child):after{content:\"\";position:absolute;top:calc(-1 * (var(--_header-role-dropdown-gap) / 2 + 1px));left:0;width:100%;height:1px;background-color:var(--general-border-primary)}.tedi-header-role__representative{width:100%;display:flex;gap:8px;align-items:center;text-align:start;cursor:pointer;color:var(--general-text-secondary);background:transparent;border:0}.tedi-header-role__representative{font-size:var(--body-regular-size-mobile)}@media (min-width: 992px){.tedi-header-role__representative{font-size:var(--body-regular-size-desktop)}}.tedi-header-role__representative{border-radius:var(--card-radius-rounded-mobile)}@media (min-width: 576px){.tedi-header-role__representative{border-radius:var(--card-radius-rounded-tablet)}}@media (min-width: 992px){.tedi-header-role__representative{border-radius:var(--card-radius-rounded-desktop)}}.tedi-header-role__representative{padding:var(--card-padding-xs-mobile)}@media (min-width: 576px){.tedi-header-role__representative{padding:var(--card-padding-xs-tablet)}}@media (min-width: 992px){.tedi-header-role__representative{padding:var(--card-padding-xs-desktop)}}.tedi-header-role__representative:not([data-selected=true]):hover{background:var(--header-popover-item-hover);color:var(--general-text-primary)}.tedi-header-role__representative:not([data-selected=true]):active{background:var(--header-popover-item-active);color:var(--general-text-white)}.tedi-header-role__representative:focus-visible{outline:var(--borders-02) solid var(--primary-500);outline-offset:var(--borders-01)}.tedi-header-role__representative[data-selected=true]{background:var(--header-popover-item-selected);color:var(--general-text-white)}.tedi-header-role__representative tedi-icon{color:inherit}.tedi-header-role__input{width:100%;border:var(--borders-01) solid var(--form-input-border-default);background:var(--form-input-background-default)}.tedi-header-role__input{padding:var(--form-field-padding-y-md-default-mobile) var(--form-field-padding-x-md-default-mobile)}@media (min-width: 576px){.tedi-header-role__input{padding:var(--form-field-padding-y-md-default-tablet) var(--form-field-padding-x-md-default-tablet)}}@media (min-width: 992px){.tedi-header-role__input{padding:var(--form-field-padding-y-md-default-desktop) var(--form-field-padding-x-md-default-desktop)}}.tedi-header-role__input{border-radius:var(--form-field-radius-mobile)}@media (min-width: 576px){.tedi-header-role__input{border-radius:var(--form-field-radius-tablet)}}@media (min-width: 992px){.tedi-header-role__input{border-radius:var(--form-field-radius-desktop)}}.tedi-header-role__input{gap:var(--form-field-inner-spacing-mobile)}@media (min-width: 576px){.tedi-header-role__input{gap:var(--form-field-inner-spacing-tablet)}}@media (min-width: 992px){.tedi-header-role__input{gap:var(--form-field-inner-spacing-desktop)}}.tedi-header-role__no-results{color:var(--general-text-secondary);text-align:center}.tedi-header-role__no-results{padding-top:var(--layout-grid-gutters-08-mobile)}@media (min-width: 576px){.tedi-header-role__no-results{padding-top:var(--layout-grid-gutters-08-tablet)}}@media (min-width: 992px){.tedi-header-role__no-results{padding-top:var(--layout-grid-gutters-08-desktop)}}.tedi-header-role__collapse{width:100%;display:grid;grid-template-rows:0fr;overflow:hidden;visibility:hidden;transition:grid-template-rows var(--_header-role-transition-duration) ease}.tedi-header-role__collapse[data-open=true]{visibility:visible;grid-template-rows:1fr}.tedi-header-role__collapse[data-open=true] .tedi-header-role__collapse__items{visibility:visible}.tedi-header-role__collapse__items{min-height:0;display:flex;flex-direction:column;gap:var(--_header-role-collapse-gap);transition:visibility var(--_header-role-transition-duration) ease;visibility:hidden}.tedi-header-role__collapse__items{--_header-role-collapse-gap: var(--layout-grid-gutters-16-mobile)}@media (min-width: 576px){.tedi-header-role__collapse__items{--_header-role-collapse-gap: var(--layout-grid-gutters-16-tablet)}}@media (min-width: 992px){.tedi-header-role__collapse__items{--_header-role-collapse-gap: var(--layout-grid-gutters-16-desktop)}}.tedi-header-role__collapse__items>*:not(:first-child){position:relative}.tedi-header-role__collapse__items>*:not(:first-child):after{content:\"\";position:absolute;top:calc(-1 * (var(--_header-role-collapse-gap) / 2 + 1px));left:0;width:100%;height:1px;background-color:var(--general-border-primary)}\n"], dependencies: [{ kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: PopoverComponent, selector: "tedi-popover", inputs: ["openWith", "position", "dismissible", "hideOnScroll", "withBorder", "lockScroll"] }, { kind: "component", type: PopoverTriggerComponent, selector: "tedi-popover-trigger" }, { kind: "component", type: PopoverContentComponent, selector: "tedi-popover-content", inputs: ["maxWidth", "title", "showClose"] }, { kind: "component", type: IconComponent, selector: "tedi-icon", inputs: ["name", "size", "color", "background", "variant", "type", "label"] }, { kind: "component", type: ButtonComponent, selector: "[tedi-button]", inputs: ["variant", "size"] }, { kind: "component", type: TextComponent, selector: "[tedi-text]", inputs: ["modifiers", "color"] }, { kind: "directive", type: ShowAtDirective, selector: "[showAt]", inputs: ["showAt"] }, { kind: "directive", type: HideAtDirective, selector: "[hideAt]", inputs: ["hideAt"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
4145
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: HeaderRoleComponent, isStandalone: true, selector: "tedi-header-role", inputs: { role: { classPropertyName: "role", publicName: "role", isSignal: true, isRequired: false, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, showInput: { classPropertyName: "showInput", publicName: "showInput", isSignal: true, isRequired: false, transformFunction: null }, representatives: { classPropertyName: "representatives", publicName: "representatives", isSignal: true, isRequired: true, transformFunction: null }, currentRepresentative: { classPropertyName: "currentRepresentative", publicName: "currentRepresentative", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { currentRepresentative: "currentRepresentativeChange" }, host: { classAttribute: "tedi-header-role" }, ngImport: i0, template: "<ng-container *hideAt=\"'lg'\">\n <div class=\"tedi-header-role__head\">\n <div tedi-text color=\"secondary\" class=\"tedi-header-role__info\" [attr.data-multiple]=\"representatives().length > 1\">\n <b>{{ role() }} {{ currentRepresentative().name }}</b>\n @if (description()) {\n <span class=\"tedi-header-role__description\">{{ description() }}</span>\n }\n </div>\n @if (representatives().length > 1) {\n <button tedi-button variant=\"neutral\" (click)=\"handleMobileOpen()\">\n {{ collapseText() }}\n <tedi-icon name=\"expand_more\" [attr.data-open]=\"mobileOpen()\" />\n </button>\n }\n </div>\n @if (representatives().length > 1) {\n <div class=\"tedi-header-role__collapse\" [attr.data-open]=\"mobileOpen()\">\n <div class=\"tedi-header-role__collapse__items\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </div>\n </div>\n }\n</ng-container>\n\n<ng-container *showAt=\"'lg'\">\n @if (role() || description()) {\n <div tedi-text color=\"secondary\" modifiers=\"small\" class=\"tedi-header-role__head\">\n @if (role()) {\n <b>{{ role() }}</b>\n }\n\n @if (description()) {\n <span class=\"tedi-header-role__description\">{{ description() }}</span>\n }\n </div>\n }\n\n <ng-container *ngIf=\"representatives().length > 1; else normalText\">\n <tedi-popover [withBorder]=\"true\" position=\"bottom\">\n <tedi-popover-trigger>\n <button class=\"tedi-link tedi-header__link-button\">\n <span>{{ currentRepresentative().name }}</span>\n <tedi-icon name=\"expand_more\" />\n </button>\n </tedi-popover-trigger>\n <tedi-popover-content maxWidth=\"small\" class=\"tedi-header-role__dropdown\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </tedi-popover-content>\n </tedi-popover>\n </ng-container>\n</ng-container>\n\n<ng-template #content>\n @if (showInput()) {\n <div>\n <label for=\"representative-input\">{{ searchText() }}</label>\n <input id=\"representative-input\" class=\"tedi-header-role__input\" [value]=\"inputValue()\" (input)=\"handleInputChange($event)\" />\n </div>\n }\n @if (filteredRepresentatives().length === 0) {\n <span class=\"tedi-header-role__no-results\">{{ noResultsText() }}</span>\n }\n <button \n *ngFor=\"let r of filteredRepresentatives();\"\n class=\"tedi-header-role__representative\"\n [attr.data-selected]=\"r.name === currentRepresentative().name && r.description === currentRepresentative().description\"\n (click)=\"handleSelectRepresentative(r)\"\n >\n @if (r.icon) {\n <tedi-icon [name]=\"r.icon\" />\n }\n <div>\n <div>{{ r.name }}</div>\n @if (r.description) {\n <div>\n {{ r.description }}\n </div>\n }\n </div>\n </button>\n</ng-template>\n\n<ng-template #normalText>\n <div>{{ currentRepresentative().name }}</div>\n</ng-template>", styles: [":root{--_header-role-transition-duration: .3s}.tedi-header-role{display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.tedi-header-role__head{width:100%;display:flex;justify-content:space-between;align-items:center;gap:4px}@media (min-width: 992px){.tedi-header-role__head{justify-content:flex-start}}.tedi-header-role__head .tedi-header-role__info{display:flex;flex-direction:row;gap:var(--_header-role-info-gap)}.tedi-header-role__head .tedi-header-role__info{--_header-role-info-gap: var(--layout-grid-gutters-16-mobile)}@media (min-width: 576px){.tedi-header-role__head .tedi-header-role__info{--_header-role-info-gap: var(--layout-grid-gutters-16-tablet)}}@media (min-width: 992px){.tedi-header-role__head .tedi-header-role__info{--_header-role-info-gap: var(--layout-grid-gutters-16-desktop)}}.tedi-header-role__head .tedi-header-role__info[data-multiple=true]{flex-direction:column;gap:0px}.tedi-header-role__head .tedi-header-role__info[data-multiple=true] .tedi-header-role__description:before{display:none}.tedi-header-role__head .tedi-header-role__info .tedi-header-role__description{position:relative}.tedi-header-role__head .tedi-header-role__info .tedi-header-role__description:before{content:\"\";height:1rem;width:1px;position:absolute;top:50%;left:calc(-1 * var(--_header-role-info-gap) / 2);transform:translateY(-50%);background:var(--general-border-secondary)}.tedi-header-role__head button tedi-icon{transition:transform var(--_header-role-transition-duration) ease}.tedi-header-role__head button tedi-icon[data-open=true]{transform:rotate(180deg)}.tedi-header-role tedi-popover-trigger tedi-icon{transition:transform var(--_header-role-transition-duration) ease}.tedi-header-role tedi-popover-trigger[data-open=true] tedi-icon{transform:rotate(180deg)}.tedi-header-role__dropdown{display:flex;flex-direction:column;gap:var(--_header-role-dropdown-gap)!important}.tedi-header-role__dropdown{--_header-role-dropdown-gap: var(--layout-grid-gutters-16-mobile)}@media (min-width: 576px){.tedi-header-role__dropdown{--_header-role-dropdown-gap: var(--layout-grid-gutters-16-tablet)}}@media (min-width: 992px){.tedi-header-role__dropdown{--_header-role-dropdown-gap: var(--layout-grid-gutters-16-desktop)}}.tedi-header-role__dropdown>*:not(:first-child){position:relative}.tedi-header-role__dropdown>*:not(:first-child):after{content:\"\";position:absolute;top:calc(-1 * (var(--_header-role-dropdown-gap) / 2 + 1px));left:0;width:100%;height:1px;background-color:var(--general-border-primary)}.tedi-header-role__representative{width:100%;display:flex;gap:8px;align-items:center;text-align:start;cursor:pointer;color:var(--general-text-secondary);background:transparent;border:0}.tedi-header-role__representative{font-size:var(--body-regular-size-mobile)}@media (min-width: 992px){.tedi-header-role__representative{font-size:var(--body-regular-size-desktop)}}.tedi-header-role__representative{border-radius:var(--card-radius-rounded-mobile)}@media (min-width: 576px){.tedi-header-role__representative{border-radius:var(--card-radius-rounded-tablet)}}@media (min-width: 992px){.tedi-header-role__representative{border-radius:var(--card-radius-rounded-desktop)}}.tedi-header-role__representative{padding:var(--card-padding-xs-mobile)}@media (min-width: 576px){.tedi-header-role__representative{padding:var(--card-padding-xs-tablet)}}@media (min-width: 992px){.tedi-header-role__representative{padding:var(--card-padding-xs-desktop)}}.tedi-header-role__representative:not([data-selected=true]):hover{background:var(--header-popover-item-hover);color:var(--general-text-primary)}.tedi-header-role__representative:not([data-selected=true]):active{background:var(--header-popover-item-active);color:var(--general-text-white)}.tedi-header-role__representative:focus-visible{outline:var(--borders-02) solid var(--primary-500);outline-offset:var(--borders-01)}.tedi-header-role__representative[data-selected=true]{background:var(--header-popover-item-selected);color:var(--general-text-white)}.tedi-header-role__representative tedi-icon{color:inherit}.tedi-header-role__input{width:100%;border:var(--borders-01) solid var(--form-input-border-default);background:var(--form-input-background-default)}.tedi-header-role__input{padding:var(--form-field-padding-y-md-default-mobile) var(--form-field-padding-x-md-default-mobile)}@media (min-width: 576px){.tedi-header-role__input{padding:var(--form-field-padding-y-md-default-tablet) var(--form-field-padding-x-md-default-tablet)}}@media (min-width: 992px){.tedi-header-role__input{padding:var(--form-field-padding-y-md-default-desktop) var(--form-field-padding-x-md-default-desktop)}}.tedi-header-role__input{border-radius:var(--form-field-radius-mobile)}@media (min-width: 576px){.tedi-header-role__input{border-radius:var(--form-field-radius-tablet)}}@media (min-width: 992px){.tedi-header-role__input{border-radius:var(--form-field-radius-desktop)}}.tedi-header-role__input{gap:var(--form-field-inner-spacing-mobile)}@media (min-width: 576px){.tedi-header-role__input{gap:var(--form-field-inner-spacing-tablet)}}@media (min-width: 992px){.tedi-header-role__input{gap:var(--form-field-inner-spacing-desktop)}}.tedi-header-role__no-results{color:var(--general-text-secondary);text-align:center}.tedi-header-role__no-results{padding-top:var(--layout-grid-gutters-08-mobile)}@media (min-width: 576px){.tedi-header-role__no-results{padding-top:var(--layout-grid-gutters-08-tablet)}}@media (min-width: 992px){.tedi-header-role__no-results{padding-top:var(--layout-grid-gutters-08-desktop)}}.tedi-header-role__collapse{width:100%;display:grid;grid-template-rows:0fr;overflow:hidden;visibility:hidden;transition:grid-template-rows var(--_header-role-transition-duration) ease}.tedi-header-role__collapse[data-open=true]{visibility:visible;grid-template-rows:1fr}.tedi-header-role__collapse[data-open=true] .tedi-header-role__collapse__items{visibility:visible}.tedi-header-role__collapse__items{min-height:0;display:flex;flex-direction:column;gap:var(--_header-role-collapse-gap);transition:visibility var(--_header-role-transition-duration) ease;visibility:hidden}.tedi-header-role__collapse__items{--_header-role-collapse-gap: var(--layout-grid-gutters-16-mobile)}@media (min-width: 576px){.tedi-header-role__collapse__items{--_header-role-collapse-gap: var(--layout-grid-gutters-16-tablet)}}@media (min-width: 992px){.tedi-header-role__collapse__items{--_header-role-collapse-gap: var(--layout-grid-gutters-16-desktop)}}.tedi-header-role__collapse__items>*:not(:first-child){position:relative}.tedi-header-role__collapse__items>*:not(:first-child):after{content:\"\";position:absolute;top:calc(-1 * (var(--_header-role-collapse-gap) / 2 + 1px));left:0;width:100%;height:1px;background-color:var(--general-border-primary)}\n"], dependencies: [{ kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: PopoverComponent, selector: "tedi-popover", inputs: ["openWith", "position", "dismissible", "hideOnScroll", "withBorder", "withArrow", "lockScroll"] }, { kind: "component", type: PopoverTriggerComponent, selector: "tedi-popover-trigger" }, { kind: "component", type: PopoverContentComponent, selector: "tedi-popover-content", inputs: ["maxWidth", "title", "showClose"] }, { kind: "component", type: IconComponent, selector: "tedi-icon", inputs: ["name", "size", "color", "background", "variant", "type", "label"] }, { kind: "component", type: ButtonComponent, selector: "[tedi-button]", inputs: ["variant", "size"] }, { kind: "component", type: TextComponent, selector: "[tedi-text]", inputs: ["modifiers", "color"] }, { kind: "directive", type: ShowAtDirective, selector: "[showAt]", inputs: ["showAt"] }, { kind: "directive", type: HideAtDirective, selector: "[hideAt]", inputs: ["hideAt"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2852
4146
|
}
|
|
2853
4147
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: HeaderRoleComponent, decorators: [{
|
|
2854
4148
|
type: Component,
|
|
@@ -3674,9 +4968,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
3674
4968
|
}]
|
|
3675
4969
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }] });
|
|
3676
4970
|
|
|
4971
|
+
function applyInitialTheme() {
|
|
4972
|
+
return () => {
|
|
4973
|
+
const document = inject(DOCUMENT);
|
|
4974
|
+
const defaultTheme = inject(TEDI_THEME_DEFAULT_TOKEN);
|
|
4975
|
+
const html = document.documentElement;
|
|
4976
|
+
for (const t of AVAILABLE_THEMES) {
|
|
4977
|
+
html.classList.remove(`${THEME_CLASS_PREFIX}${t}`);
|
|
4978
|
+
}
|
|
4979
|
+
html.classList.add(`${THEME_CLASS_PREFIX}${defaultTheme}`);
|
|
4980
|
+
};
|
|
4981
|
+
}
|
|
4982
|
+
function provideTedi(config = {}) {
|
|
4983
|
+
return makeEnvironmentProviders([
|
|
4984
|
+
{
|
|
4985
|
+
provide: TEDI_THEME_DEFAULT_TOKEN,
|
|
4986
|
+
useValue: config.theme ?? THEME_FALLBACK_VALUE,
|
|
4987
|
+
},
|
|
4988
|
+
{
|
|
4989
|
+
provide: TEDI_TRANSLATION_DEFAULT_TOKEN,
|
|
4990
|
+
useValue: config.language ?? "et",
|
|
4991
|
+
},
|
|
4992
|
+
provideAppInitializer(applyInitialTheme()),
|
|
4993
|
+
]);
|
|
4994
|
+
}
|
|
4995
|
+
|
|
3677
4996
|
/**
|
|
3678
4997
|
* Generated bundle index. Do not edit.
|
|
3679
4998
|
*/
|
|
3680
4999
|
|
|
3681
|
-
export { AlertComponent, BREAKPOINTS, BreakpointService, ButtonComponent, CarouselComponent, CarouselContentComponent, CarouselFooterComponent, CarouselHeaderComponent, CarouselIndicatorsComponent, CarouselNavigationComponent, CarouselSlideDirective, CheckboxComponent, ClosingButtonComponent, ColComponent, CollapseComponent, FeedbackTextComponent, FooterBodyComponent, FooterBottomComponent, FooterComponent, FooterSectionComponent, FooterSideComponent, HeaderActionsComponent, HeaderComponent, HeaderContentComponent, HeaderLanguageComponent, HeaderLoginComponent, HeaderLogoutComponent, HeaderProfileComponent, HeaderRoleComponent, HideAtDirective, IconComponent, InfoButtonComponent, LabelComponent, LinkComponent, ListComponent, ModalComponent, ModalContentComponent, ModalFooterComponent, ModalHeaderComponent, NumberFieldComponent, PopoverComponent, PopoverContentComponent, PopoverTriggerComponent, RowComponent, SeparatorComponent, ShowAtDirective, SideNavComponent, SideNavDropdownComponent, SideNavDropdownGroupComponent, SideNavDropdownItemComponent, SideNavGroupTitleComponent, SideNavItemComponent, SideNavOverlayComponent, SideNavToggleComponent, SpinnerComponent, TediTranslationPipe, TediTranslationService, TextComponent, TextGroupComponent, TextGroupLabelComponent, TextGroupValueComponent, TimelineComponent, TimelineDescriptionComponent, TimelineItemComponent, TimelineTitleComponent, ToggleComponent, TooltipComponent, TooltipContentComponent, TooltipTriggerComponent, VerticalSpacingDirective, VerticalSpacingItemDirective, breakpointInput, generateUUID };
|
|
5000
|
+
export { AVAILABLE_LANGUAGES, AVAILABLE_THEMES, AlertComponent, BREAKPOINTS, BreakpointService, ButtonComponent, CarouselComponent, CarouselContentComponent, CarouselFooterComponent, CarouselHeaderComponent, CarouselIndicatorsComponent, CarouselNavigationComponent, CarouselSlideDirective, CheckboxComponent, ClosingButtonComponent, ColComponent, CollapseComponent, DatePickerComponent, DropdownComponent, DropdownContentComponent, DropdownItemComponent, DropdownTriggerDirective, FeedbackTextComponent, FooterBodyComponent, FooterBottomComponent, FooterComponent, FooterSectionComponent, FooterSideComponent, HeaderActionsComponent, HeaderComponent, HeaderContentComponent, HeaderLanguageComponent, HeaderLoginComponent, HeaderLogoutComponent, HeaderProfileComponent, HeaderRoleComponent, HideAtDirective, IconComponent, InfoButtonComponent, LANGUAGE_COOKIE_NAME, LANGUAGE_FALLBACK_VALUE, LabelComponent, LinkComponent, ListComponent, ModalComponent, ModalContentComponent, ModalFooterComponent, ModalHeaderComponent, NumberFieldComponent, PopoverComponent, PopoverContentComponent, PopoverTriggerComponent, RowComponent, SeparatorComponent, ShowAtDirective, SideNavComponent, SideNavDropdownComponent, SideNavDropdownGroupComponent, SideNavDropdownItemComponent, SideNavGroupTitleComponent, SideNavItemComponent, SideNavOverlayComponent, SideNavToggleComponent, SpinnerComponent, TEDI_THEME_DEFAULT_TOKEN, TEDI_TRANSLATION_DEFAULT_TOKEN, THEME_CLASS_PREFIX, THEME_COOKIE_NAME, THEME_FALLBACK_VALUE, TediTranslationPipe, TediTranslationService, TextComponent, TextGroupComponent, TextGroupLabelComponent, TextGroupValueComponent, ThemeService, TimelineComponent, TimelineDescriptionComponent, TimelineItemComponent, TimelineTitleComponent, ToggleComponent, TooltipComponent, TooltipContentComponent, TooltipTriggerComponent, VerticalSpacingDirective, VerticalSpacingItemDirective, breakpointInput, generateUUID, provideTedi };
|
|
3682
5001
|
//# sourceMappingURL=tedi-design-system-angular-tedi.mjs.map
|