@tectra-ng/ui 0.1.3 → 0.1.4

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.
Files changed (86) hide show
  1. package/accordion/README.md +61 -0
  2. package/breadcrumb/README.md +57 -0
  3. package/fesm2022/tectra-ng-ui-accordion.mjs +980 -0
  4. package/fesm2022/tectra-ng-ui-accordion.mjs.map +1 -0
  5. package/fesm2022/tectra-ng-ui-autocomplete.mjs +2 -2
  6. package/fesm2022/tectra-ng-ui-autocomplete.mjs.map +1 -1
  7. package/fesm2022/tectra-ng-ui-breadcrumb.mjs +382 -0
  8. package/fesm2022/tectra-ng-ui-breadcrumb.mjs.map +1 -0
  9. package/fesm2022/tectra-ng-ui-cascade-select.mjs +2 -2
  10. package/fesm2022/tectra-ng-ui-cascade-select.mjs.map +1 -1
  11. package/fesm2022/tectra-ng-ui-chips-input.mjs +2 -2
  12. package/fesm2022/tectra-ng-ui-chips-input.mjs.map +1 -1
  13. package/fesm2022/tectra-ng-ui-color-picker.mjs +2 -2
  14. package/fesm2022/tectra-ng-ui-color-picker.mjs.map +1 -1
  15. package/fesm2022/tectra-ng-ui-field.mjs +1 -1
  16. package/fesm2022/tectra-ng-ui-field.mjs.map +1 -1
  17. package/fesm2022/tectra-ng-ui-file-upload.mjs +1452 -0
  18. package/fesm2022/tectra-ng-ui-file-upload.mjs.map +1 -0
  19. package/fesm2022/tectra-ng-ui-input-group.mjs +2 -2
  20. package/fesm2022/tectra-ng-ui-input-group.mjs.map +1 -1
  21. package/fesm2022/tectra-ng-ui-input.mjs +2 -2
  22. package/fesm2022/tectra-ng-ui-input.mjs.map +1 -1
  23. package/fesm2022/tectra-ng-ui-listbox.mjs +2 -2
  24. package/fesm2022/tectra-ng-ui-listbox.mjs.map +1 -1
  25. package/fesm2022/tectra-ng-ui-menubar.mjs +742 -0
  26. package/fesm2022/tectra-ng-ui-menubar.mjs.map +1 -0
  27. package/fesm2022/tectra-ng-ui-multiselect.mjs +2 -2
  28. package/fesm2022/tectra-ng-ui-multiselect.mjs.map +1 -1
  29. package/fesm2022/tectra-ng-ui-panel-menu.mjs +610 -0
  30. package/fesm2022/tectra-ng-ui-panel-menu.mjs.map +1 -0
  31. package/fesm2022/tectra-ng-ui-scroll-panel.mjs +319 -0
  32. package/fesm2022/tectra-ng-ui-scroll-panel.mjs.map +1 -0
  33. package/fesm2022/tectra-ng-ui-select.mjs +2 -2
  34. package/fesm2022/tectra-ng-ui-select.mjs.map +1 -1
  35. package/fesm2022/tectra-ng-ui-splitter.mjs +750 -0
  36. package/fesm2022/tectra-ng-ui-splitter.mjs.map +1 -0
  37. package/fesm2022/tectra-ng-ui-stepper.mjs +1166 -0
  38. package/fesm2022/tectra-ng-ui-stepper.mjs.map +1 -0
  39. package/fesm2022/tectra-ng-ui-table.mjs +194 -50
  40. package/fesm2022/tectra-ng-ui-table.mjs.map +1 -1
  41. package/fesm2022/tectra-ng-ui-tabs.mjs +1218 -0
  42. package/fesm2022/tectra-ng-ui-tabs.mjs.map +1 -0
  43. package/fesm2022/tectra-ng-ui-textarea.mjs +4 -1
  44. package/fesm2022/tectra-ng-ui-textarea.mjs.map +1 -1
  45. package/fesm2022/tectra-ng-ui-toolbar.mjs +348 -0
  46. package/fesm2022/tectra-ng-ui-toolbar.mjs.map +1 -0
  47. package/fesm2022/tectra-ng-ui-tree-select.mjs +2 -2
  48. package/fesm2022/tectra-ng-ui-tree-select.mjs.map +1 -1
  49. package/fesm2022/tectra-ng-ui-tree-table.mjs +80 -2
  50. package/fesm2022/tectra-ng-ui-tree-table.mjs.map +1 -1
  51. package/field/README.md +1 -1
  52. package/file-upload/README.md +85 -0
  53. package/menubar/README.md +51 -0
  54. package/package.json +44 -4
  55. package/panel-menu/README.md +45 -0
  56. package/scroll-panel/README.md +35 -0
  57. package/splitter/README.md +62 -0
  58. package/stepper/README.md +66 -0
  59. package/table/README.md +1 -1
  60. package/tabs/README.md +69 -0
  61. package/toolbar/README.md +35 -0
  62. package/types/tectra-ng-ui-accordion.d.ts +304 -0
  63. package/types/tectra-ng-ui-accordion.d.ts.map +1 -0
  64. package/types/tectra-ng-ui-breadcrumb.d.ts +157 -0
  65. package/types/tectra-ng-ui-breadcrumb.d.ts.map +1 -0
  66. package/types/tectra-ng-ui-file-upload.d.ts +527 -0
  67. package/types/tectra-ng-ui-file-upload.d.ts.map +1 -0
  68. package/types/tectra-ng-ui-menubar.d.ts +201 -0
  69. package/types/tectra-ng-ui-menubar.d.ts.map +1 -0
  70. package/types/tectra-ng-ui-panel-menu.d.ts +244 -0
  71. package/types/tectra-ng-ui-panel-menu.d.ts.map +1 -0
  72. package/types/tectra-ng-ui-scroll-panel.d.ts +94 -0
  73. package/types/tectra-ng-ui-scroll-panel.d.ts.map +1 -0
  74. package/types/tectra-ng-ui-splitter.d.ts +226 -0
  75. package/types/tectra-ng-ui-splitter.d.ts.map +1 -0
  76. package/types/tectra-ng-ui-stepper.d.ts +446 -0
  77. package/types/tectra-ng-ui-stepper.d.ts.map +1 -0
  78. package/types/tectra-ng-ui-table.d.ts +2 -4
  79. package/types/tectra-ng-ui-table.d.ts.map +1 -1
  80. package/types/tectra-ng-ui-tabs.d.ts +420 -0
  81. package/types/tectra-ng-ui-tabs.d.ts.map +1 -0
  82. package/types/tectra-ng-ui-textarea.d.ts +1 -0
  83. package/types/tectra-ng-ui-textarea.d.ts.map +1 -1
  84. package/types/tectra-ng-ui-toolbar.d.ts +85 -0
  85. package/types/tectra-ng-ui-toolbar.d.ts.map +1 -0
  86. package/types/tectra-ng-ui-tree-table.d.ts.map +1 -1
@@ -0,0 +1,382 @@
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, Directive, TemplateRef, computed, contentChild, inject, input, output } from "@angular/core";
3
+ import { NgTemplateOutlet } from "@angular/common";
4
+ import { Router, RouterLink } from "@angular/router";
5
+ import { injectPassThrough, injectUnstyled } from "@tectra-ng/core/config";
6
+ import { injectTranslations } from "@tectra-ng/core/i18n";
7
+ import { optionalBoolean } from "@tectra-ng/core/utils";
8
+ import { TxIcon, TxIconRegistry } from "@tectra-ng/icons";
9
+ import { toStyleObject } from "@tectra-ng/themes";
10
+ var TxBreadcrumbItemTemplate = class TxBreadcrumbItemTemplate {
11
+ templateRef = inject(TemplateRef);
12
+ static ngTemplateContextGuard(_directive, context) {
13
+ return !!context;
14
+ }
15
+ static ɵfac = i0.ɵɵngDeclareFactory({
16
+ minVersion: "12.0.0",
17
+ version: "22.2.3",
18
+ ngImport: i0,
19
+ type: TxBreadcrumbItemTemplate,
20
+ deps: [],
21
+ target: i0.ɵɵFactoryTarget.Directive
22
+ });
23
+ static ɵdir = i0.ɵɵngDeclareDirective({
24
+ minVersion: "14.0.0",
25
+ version: "22.2.3",
26
+ type: TxBreadcrumbItemTemplate,
27
+ isStandalone: true,
28
+ selector: "ng-template[txBreadcrumbItem]",
29
+ ngImport: i0
30
+ });
31
+ };
32
+ i0.ɵɵngDeclareClassMetadata({
33
+ minVersion: "12.0.0",
34
+ version: "22.2.3",
35
+ ngImport: i0,
36
+ type: TxBreadcrumbItemTemplate,
37
+ decorators: [{
38
+ type: Directive,
39
+ args: [{ selector: "ng-template[txBreadcrumbItem]" }]
40
+ }]
41
+ });
42
+ var TxBreadcrumbSeparatorTemplate = class TxBreadcrumbSeparatorTemplate {
43
+ templateRef = inject(TemplateRef);
44
+ static ɵfac = i0.ɵɵngDeclareFactory({
45
+ minVersion: "12.0.0",
46
+ version: "22.2.3",
47
+ ngImport: i0,
48
+ type: TxBreadcrumbSeparatorTemplate,
49
+ deps: [],
50
+ target: i0.ɵɵFactoryTarget.Directive
51
+ });
52
+ static ɵdir = i0.ɵɵngDeclareDirective({
53
+ minVersion: "14.0.0",
54
+ version: "22.2.3",
55
+ type: TxBreadcrumbSeparatorTemplate,
56
+ isStandalone: true,
57
+ selector: "ng-template[txBreadcrumbSeparator]",
58
+ ngImport: i0
59
+ });
60
+ };
61
+ i0.ɵɵngDeclareClassMetadata({
62
+ minVersion: "12.0.0",
63
+ version: "22.2.3",
64
+ ngImport: i0,
65
+ type: TxBreadcrumbSeparatorTemplate,
66
+ decorators: [{
67
+ type: Directive,
68
+ args: [{ selector: "ng-template[txBreadcrumbSeparator]" }]
69
+ }]
70
+ });
71
+ var TxBreadcrumb = class TxBreadcrumb {
72
+ txIconRegistry = inject(TxIconRegistry);
73
+ hasRouter = inject(Router, { optional: true }) !== null;
74
+ model = input([], ...ngDevMode ? [{ debugName: "model" }] : /* istanbul ignore next */ []);
75
+ home = input(void 0, ...ngDevMode ? [{ debugName: "home" }] : /* istanbul ignore next */ []);
76
+ separator = input("chevron", ...ngDevMode ? [{ debugName: "separator" }] : /* istanbul ignore next */ []);
77
+ ariaLabel = input(void 0, ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
78
+ dt = input(void 0, ...ngDevMode ? [{ debugName: "dt" }] : /* istanbul ignore next */ []);
79
+ pt = input(void 0, ...ngDevMode ? [{ debugName: "pt" }] : /* istanbul ignore next */ []);
80
+ ptOptions = input(void 0, ...ngDevMode ? [{ debugName: "ptOptions" }] : /* istanbul ignore next */ []);
81
+ unstyled = input(void 0, {
82
+ ...ngDevMode ? { debugName: "unstyled" } : /* istanbul ignore next */ {},
83
+ transform: optionalBoolean
84
+ });
85
+ itemClick = output();
86
+ translations = injectTranslations();
87
+ isUnstyled = injectUnstyled(this.unstyled);
88
+ passThrough = injectPassThrough("breadcrumb", this, this.pt, this.ptOptions);
89
+ itemTemplate = contentChild(TxBreadcrumbItemTemplate, ...ngDevMode ? [{ debugName: "itemTemplate" }] : /* istanbul ignore next */ []);
90
+ separatorTemplate = contentChild(TxBreadcrumbSeparatorTemplate, ...ngDevMode ? [{ debugName: "separatorTemplate" }] : /* istanbul ignore next */ []);
91
+ entries = computed(() => {
92
+ const home = this.home();
93
+ const items = home ? [home, ...this.model()] : [...this.model()];
94
+ return items.map((item, index) => this.toEntry(item, index === items.length - 1));
95
+ }, ...ngDevMode ? [{ debugName: "entries" }] : /* istanbul ignore next */ []);
96
+ label = computed(() => this.ariaLabel() ?? this.translations().breadcrumb, ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
97
+ hostStyle = computed(() => ({
98
+ ...toStyleObject(this.dt(), "--tx-breadcrumb"),
99
+ ...this.passThrough().root?.style
100
+ }), ...ngDevMode ? [{ debugName: "hostStyle" }] : /* istanbul ignore next */ []);
101
+ select(event, item) {
102
+ if (item.disabled) {
103
+ event.preventDefault();
104
+ return;
105
+ }
106
+ const payload = {
107
+ originalEvent: event,
108
+ item
109
+ };
110
+ item.command?.(payload);
111
+ this.itemClick.emit(payload);
112
+ }
113
+ toEntry(item, current) {
114
+ const icon = item.icon ?? null;
115
+ const known = icon !== null && this.txIconRegistry.has(icon);
116
+ return {
117
+ item,
118
+ current,
119
+ kind: this.kindOf(item, current),
120
+ icon: known ? icon : null,
121
+ iconClass: icon !== null && !known ? icon : null
122
+ };
123
+ }
124
+ kindOf(item, current) {
125
+ if (current) return "current";
126
+ if (item.disabled) return "text";
127
+ if (item.routerLink !== void 0 && this.hasRouter) return "router";
128
+ if (item.url !== void 0 || item.routerLink !== void 0) return "url";
129
+ if (item.command) return "command";
130
+ return "text";
131
+ }
132
+ href(item) {
133
+ if (item.url !== void 0) return item.url;
134
+ const commands = item.routerLink;
135
+ return typeof commands === "string" ? commands : (commands ?? []).join("/");
136
+ }
137
+ static ɵfac = i0.ɵɵngDeclareFactory({
138
+ minVersion: "12.0.0",
139
+ version: "22.2.3",
140
+ ngImport: i0,
141
+ type: TxBreadcrumb,
142
+ deps: [],
143
+ target: i0.ɵɵFactoryTarget.Component
144
+ });
145
+ static ɵcmp = i0.ɵɵngDeclareComponent({
146
+ minVersion: "17.0.0",
147
+ version: "22.2.3",
148
+ type: TxBreadcrumb,
149
+ isStandalone: true,
150
+ selector: "tx-breadcrumb",
151
+ inputs: {
152
+ model: {
153
+ classPropertyName: "model",
154
+ publicName: "model",
155
+ isSignal: true,
156
+ isRequired: false,
157
+ transformFunction: null
158
+ },
159
+ home: {
160
+ classPropertyName: "home",
161
+ publicName: "home",
162
+ isSignal: true,
163
+ isRequired: false,
164
+ transformFunction: null
165
+ },
166
+ separator: {
167
+ classPropertyName: "separator",
168
+ publicName: "separator",
169
+ isSignal: true,
170
+ isRequired: false,
171
+ transformFunction: null
172
+ },
173
+ ariaLabel: {
174
+ classPropertyName: "ariaLabel",
175
+ publicName: "ariaLabel",
176
+ isSignal: true,
177
+ isRequired: false,
178
+ transformFunction: null
179
+ },
180
+ dt: {
181
+ classPropertyName: "dt",
182
+ publicName: "dt",
183
+ isSignal: true,
184
+ isRequired: false,
185
+ transformFunction: null
186
+ },
187
+ pt: {
188
+ classPropertyName: "pt",
189
+ publicName: "pt",
190
+ isSignal: true,
191
+ isRequired: false,
192
+ transformFunction: null
193
+ },
194
+ ptOptions: {
195
+ classPropertyName: "ptOptions",
196
+ publicName: "ptOptions",
197
+ isSignal: true,
198
+ isRequired: false,
199
+ transformFunction: null
200
+ },
201
+ unstyled: {
202
+ classPropertyName: "unstyled",
203
+ publicName: "unstyled",
204
+ isSignal: true,
205
+ isRequired: false,
206
+ transformFunction: null
207
+ }
208
+ },
209
+ outputs: { itemClick: "itemClick" },
210
+ host: {
211
+ properties: {
212
+ "class": "passThrough().root?.class",
213
+ "style": "hostStyle()",
214
+ "attr.data-styled": "!isUnstyled() || null",
215
+ "attr.data-separator": "separator()"
216
+ },
217
+ classAttribute: "tx-breadcrumb"
218
+ },
219
+ queries: [{
220
+ propertyName: "itemTemplate",
221
+ first: true,
222
+ predicate: TxBreadcrumbItemTemplate,
223
+ descendants: true,
224
+ isSignal: true
225
+ }, {
226
+ propertyName: "separatorTemplate",
227
+ first: true,
228
+ predicate: TxBreadcrumbSeparatorTemplate,
229
+ descendants: true,
230
+ isSignal: true
231
+ }],
232
+ ngImport: i0,
233
+ template: "<nav class=\"tx-breadcrumb__nav\" [attr.aria-label]=\"label()\">\n <ol class=\"tx-breadcrumb__list\" [class]=\"passThrough().list?.class\" [style]=\"passThrough().list?.style\">\n @for (entry of entries(); track $index; let index = $index, first = $first) {\n <li\n class=\"tx-breadcrumb__item\"\n [class.tx-breadcrumb__item--current]=\"entry.current\"\n [class.tx-breadcrumb__item--disabled]=\"entry.item.disabled\"\n [attr.id]=\"entry.item.id ?? null\"\n [class]=\"passThrough().item?.class\"\n [style]=\"passThrough().item?.style\"\n >\n @if (!first) {\n <span class=\"tx-breadcrumb__separator\" aria-hidden=\"true\" [class]=\"passThrough().separator?.class\" [style]=\"passThrough().separator?.style\">\n @if (separatorTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n } @else if (separator() === 'slash') {\n /\n } @else {\n <tx-icon name=\"chevron-right\" />\n }\n </span>\n }\n @switch (entry.kind) {\n @case ('router') {\n <a\n class=\"tx-breadcrumb__link\"\n [routerLink]=\"$any(entry.item.routerLink)\"\n [queryParams]=\"entry.item.queryParams\"\n [fragment]=\"entry.item.fragment\"\n [attr.target]=\"entry.item.target ?? null\"\n [attr.title]=\"entry.item.title ?? null\"\n [attr.aria-label]=\"entry.item.ariaLabel ?? null\"\n [class]=\"passThrough().link?.class\"\n [style]=\"passThrough().link?.style\"\n (click)=\"select($event, entry.item)\"\n ><ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: entry, index }\"\n /></a>\n }\n @case ('url') {\n <a\n class=\"tx-breadcrumb__link\"\n [href]=\"href(entry.item)\"\n [attr.target]=\"entry.item.target ?? null\"\n [attr.rel]=\"entry.item.target === '_blank' ? 'noopener noreferrer' : null\"\n [attr.title]=\"entry.item.title ?? null\"\n [attr.aria-label]=\"entry.item.ariaLabel ?? null\"\n [class]=\"passThrough().link?.class\"\n [style]=\"passThrough().link?.style\"\n (click)=\"select($event, entry.item)\"\n ><ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: entry, index }\"\n /></a>\n }\n @case ('command') {\n <button\n type=\"button\"\n class=\"tx-breadcrumb__link\"\n [attr.title]=\"entry.item.title ?? null\"\n [attr.aria-label]=\"entry.item.ariaLabel ?? null\"\n [class]=\"passThrough().link?.class\"\n [style]=\"passThrough().link?.style\"\n (click)=\"select($event, entry.item)\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: entry, index }\" />\n </button>\n }\n @default {\n <span\n class=\"tx-breadcrumb__link\"\n [attr.aria-current]=\"entry.current ? 'page' : null\"\n [attr.aria-disabled]=\"entry.item.disabled ? 'true' : null\"\n [attr.title]=\"entry.item.title ?? null\"\n [attr.aria-label]=\"entry.item.ariaLabel ?? null\"\n [class]=\"passThrough().link?.class\"\n [style]=\"passThrough().link?.style\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: entry, index }\" />\n </span>\n }\n }\n </li>\n }\n </ol>\n</nav>\n\n<ng-template #content let-entry let-index=\"index\">\n @if (itemTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: entry.item, current: entry.current, index }\" />\n } @else {\n @if (entry.icon) {\n <tx-icon class=\"tx-breadcrumb__icon\" aria-hidden=\"true\" [name]=\"entry.icon\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\" />\n } @else if (entry.iconClass) {\n <span class=\"tx-breadcrumb__icon\" aria-hidden=\"true\" [class]=\"entry.iconClass + ' ' + (passThrough().icon?.class ?? '')\" [style]=\"passThrough().icon?.style\"></span>\n }\n @if (entry.item.label) {\n <span class=\"tx-breadcrumb__label\" [class]=\"passThrough().label?.class\" [style]=\"passThrough().label?.style\">{{ entry.item.label }}</span>\n }\n }\n</ng-template>\n",
234
+ styles: [":host{display:block;min-width:0}.tx-breadcrumb__nav{overflow-x:auto;scrollbar-width:none}.tx-breadcrumb__nav::-webkit-scrollbar{display:none}.tx-breadcrumb__list{display:flex;flex-wrap:nowrap;align-items:center;margin:0;padding:0;list-style:none}.tx-breadcrumb__item{display:flex;align-items:center;min-width:0}.tx-breadcrumb__separator,.tx-breadcrumb__icon{flex-shrink:0}.tx-breadcrumb__link{display:flex;align-items:center;min-width:0}.tx-breadcrumb__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}button.tx-breadcrumb__link{margin:0;padding:0;border:none;background:none;font:inherit;text-align:inherit}:host([data-styled]){padding:var(--tx-breadcrumb-padding);background:var(--tx-breadcrumb-background);font-family:var(--tx-font-family)}:host([data-styled]) .tx-breadcrumb__nav{--_ring: calc(var(--tx-breadcrumb-item-focus-ring-width) + var(--tx-breadcrumb-item-focus-ring-offset));margin:calc(var(--_ring) * -1);padding:var(--_ring)}:host([data-styled]) .tx-breadcrumb__list,:host([data-styled]) .tx-breadcrumb__item{gap:var(--tx-breadcrumb-gap)}:host([data-styled]) .tx-breadcrumb__separator{display:flex;align-items:center;color:var(--tx-breadcrumb-separator-color);font-size:var(--tx-breadcrumb-separator-icon-size);line-height:1}:host([data-styled][data-separator=slash]) .tx-breadcrumb__separator{color:var(--tx-breadcrumb-slash-color);font-size:var(--tx-breadcrumb-slash-font-size)}:host([data-styled]) .tx-breadcrumb__link{gap:var(--tx-breadcrumb-item-gap);border-radius:var(--tx-breadcrumb-item-border-radius);outline:var(--tx-breadcrumb-item-focus-ring-width) solid transparent;outline-offset:var(--tx-breadcrumb-item-focus-ring-offset);color:var(--tx-breadcrumb-item-color);font-size:var(--tx-breadcrumb-item-font-size);font-weight:var(--tx-breadcrumb-item-font-weight);line-height:1.5;text-decoration:none;transition:color var(--tx-breadcrumb-transition-duration) var(--tx-motion-easing),outline-color var(--tx-breadcrumb-transition-duration) var(--tx-motion-easing)}:host([data-styled]) .tx-breadcrumb__link:focus-visible{outline-color:var(--tx-breadcrumb-item-focus-ring-color)}:host([data-styled]) .tx-breadcrumb__icon{display:inline-flex;color:var(--tx-breadcrumb-item-icon-color);font-size:var(--tx-breadcrumb-item-icon-size);transition:color var(--tx-breadcrumb-transition-duration) var(--tx-motion-easing)}:host([data-styled]) a.tx-breadcrumb__link,:host([data-styled]) button.tx-breadcrumb__link{cursor:pointer}:host([data-styled]) a.tx-breadcrumb__link:hover,:host([data-styled]) button.tx-breadcrumb__link:hover{color:var(--tx-breadcrumb-item-hover-color)}:host([data-styled]) a.tx-breadcrumb__link:hover .tx-breadcrumb__icon,:host([data-styled]) button.tx-breadcrumb__link:hover .tx-breadcrumb__icon{color:var(--tx-breadcrumb-item-icon-hover-color)}:host([data-styled]) .tx-breadcrumb__item--disabled .tx-breadcrumb__link{opacity:var(--tx-breadcrumb-item-disabled-opacity);cursor:default}:host([data-styled]) .tx-breadcrumb__item--current .tx-breadcrumb__link{color:var(--tx-breadcrumb-current-color);font-weight:var(--tx-breadcrumb-current-font-weight)}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-breadcrumb__link,:host([data-styled]) .tx-breadcrumb__icon{transition:none}}\n"],
235
+ dependencies: [
236
+ {
237
+ kind: "directive",
238
+ type: NgTemplateOutlet,
239
+ selector: "[ngTemplateOutlet]",
240
+ inputs: [
241
+ "ngTemplateOutletContext",
242
+ "ngTemplateOutlet",
243
+ "ngTemplateOutletInjector"
244
+ ]
245
+ },
246
+ {
247
+ kind: "directive",
248
+ type: RouterLink,
249
+ selector: "[routerLink]",
250
+ inputs: [
251
+ "target",
252
+ "queryParams",
253
+ "fragment",
254
+ "queryParamsHandling",
255
+ "state",
256
+ "info",
257
+ "relativeTo",
258
+ "preserveFragment",
259
+ "skipLocationChange",
260
+ "replaceUrl",
261
+ "browserUrl",
262
+ "routerLink"
263
+ ]
264
+ },
265
+ {
266
+ kind: "component",
267
+ type: TxIcon,
268
+ selector: "tx-icon",
269
+ inputs: ["name"]
270
+ }
271
+ ],
272
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
273
+ });
274
+ };
275
+ i0.ɵɵngDeclareClassMetadata({
276
+ minVersion: "12.0.0",
277
+ version: "22.2.3",
278
+ ngImport: i0,
279
+ type: TxBreadcrumb,
280
+ decorators: [{
281
+ type: Component,
282
+ args: [{
283
+ selector: "tx-breadcrumb",
284
+ imports: [
285
+ NgTemplateOutlet,
286
+ RouterLink,
287
+ TxIcon
288
+ ],
289
+ changeDetection: ChangeDetectionStrategy.OnPush,
290
+ host: {
291
+ class: "tx-breadcrumb",
292
+ "[class]": "passThrough().root?.class",
293
+ "[style]": "hostStyle()",
294
+ "[attr.data-styled]": "!isUnstyled() || null",
295
+ "[attr.data-separator]": "separator()"
296
+ },
297
+ template: "<nav class=\"tx-breadcrumb__nav\" [attr.aria-label]=\"label()\">\n <ol class=\"tx-breadcrumb__list\" [class]=\"passThrough().list?.class\" [style]=\"passThrough().list?.style\">\n @for (entry of entries(); track $index; let index = $index, first = $first) {\n <li\n class=\"tx-breadcrumb__item\"\n [class.tx-breadcrumb__item--current]=\"entry.current\"\n [class.tx-breadcrumb__item--disabled]=\"entry.item.disabled\"\n [attr.id]=\"entry.item.id ?? null\"\n [class]=\"passThrough().item?.class\"\n [style]=\"passThrough().item?.style\"\n >\n @if (!first) {\n <span class=\"tx-breadcrumb__separator\" aria-hidden=\"true\" [class]=\"passThrough().separator?.class\" [style]=\"passThrough().separator?.style\">\n @if (separatorTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n } @else if (separator() === 'slash') {\n /\n } @else {\n <tx-icon name=\"chevron-right\" />\n }\n </span>\n }\n @switch (entry.kind) {\n @case ('router') {\n <a\n class=\"tx-breadcrumb__link\"\n [routerLink]=\"$any(entry.item.routerLink)\"\n [queryParams]=\"entry.item.queryParams\"\n [fragment]=\"entry.item.fragment\"\n [attr.target]=\"entry.item.target ?? null\"\n [attr.title]=\"entry.item.title ?? null\"\n [attr.aria-label]=\"entry.item.ariaLabel ?? null\"\n [class]=\"passThrough().link?.class\"\n [style]=\"passThrough().link?.style\"\n (click)=\"select($event, entry.item)\"\n ><ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: entry, index }\"\n /></a>\n }\n @case ('url') {\n <a\n class=\"tx-breadcrumb__link\"\n [href]=\"href(entry.item)\"\n [attr.target]=\"entry.item.target ?? null\"\n [attr.rel]=\"entry.item.target === '_blank' ? 'noopener noreferrer' : null\"\n [attr.title]=\"entry.item.title ?? null\"\n [attr.aria-label]=\"entry.item.ariaLabel ?? null\"\n [class]=\"passThrough().link?.class\"\n [style]=\"passThrough().link?.style\"\n (click)=\"select($event, entry.item)\"\n ><ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: entry, index }\"\n /></a>\n }\n @case ('command') {\n <button\n type=\"button\"\n class=\"tx-breadcrumb__link\"\n [attr.title]=\"entry.item.title ?? null\"\n [attr.aria-label]=\"entry.item.ariaLabel ?? null\"\n [class]=\"passThrough().link?.class\"\n [style]=\"passThrough().link?.style\"\n (click)=\"select($event, entry.item)\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: entry, index }\" />\n </button>\n }\n @default {\n <span\n class=\"tx-breadcrumb__link\"\n [attr.aria-current]=\"entry.current ? 'page' : null\"\n [attr.aria-disabled]=\"entry.item.disabled ? 'true' : null\"\n [attr.title]=\"entry.item.title ?? null\"\n [attr.aria-label]=\"entry.item.ariaLabel ?? null\"\n [class]=\"passThrough().link?.class\"\n [style]=\"passThrough().link?.style\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: entry, index }\" />\n </span>\n }\n }\n </li>\n }\n </ol>\n</nav>\n\n<ng-template #content let-entry let-index=\"index\">\n @if (itemTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: entry.item, current: entry.current, index }\" />\n } @else {\n @if (entry.icon) {\n <tx-icon class=\"tx-breadcrumb__icon\" aria-hidden=\"true\" [name]=\"entry.icon\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\" />\n } @else if (entry.iconClass) {\n <span class=\"tx-breadcrumb__icon\" aria-hidden=\"true\" [class]=\"entry.iconClass + ' ' + (passThrough().icon?.class ?? '')\" [style]=\"passThrough().icon?.style\"></span>\n }\n @if (entry.item.label) {\n <span class=\"tx-breadcrumb__label\" [class]=\"passThrough().label?.class\" [style]=\"passThrough().label?.style\">{{ entry.item.label }}</span>\n }\n }\n</ng-template>\n",
298
+ styles: [":host{display:block;min-width:0}.tx-breadcrumb__nav{overflow-x:auto;scrollbar-width:none}.tx-breadcrumb__nav::-webkit-scrollbar{display:none}.tx-breadcrumb__list{display:flex;flex-wrap:nowrap;align-items:center;margin:0;padding:0;list-style:none}.tx-breadcrumb__item{display:flex;align-items:center;min-width:0}.tx-breadcrumb__separator,.tx-breadcrumb__icon{flex-shrink:0}.tx-breadcrumb__link{display:flex;align-items:center;min-width:0}.tx-breadcrumb__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}button.tx-breadcrumb__link{margin:0;padding:0;border:none;background:none;font:inherit;text-align:inherit}:host([data-styled]){padding:var(--tx-breadcrumb-padding);background:var(--tx-breadcrumb-background);font-family:var(--tx-font-family)}:host([data-styled]) .tx-breadcrumb__nav{--_ring: calc(var(--tx-breadcrumb-item-focus-ring-width) + var(--tx-breadcrumb-item-focus-ring-offset));margin:calc(var(--_ring) * -1);padding:var(--_ring)}:host([data-styled]) .tx-breadcrumb__list,:host([data-styled]) .tx-breadcrumb__item{gap:var(--tx-breadcrumb-gap)}:host([data-styled]) .tx-breadcrumb__separator{display:flex;align-items:center;color:var(--tx-breadcrumb-separator-color);font-size:var(--tx-breadcrumb-separator-icon-size);line-height:1}:host([data-styled][data-separator=slash]) .tx-breadcrumb__separator{color:var(--tx-breadcrumb-slash-color);font-size:var(--tx-breadcrumb-slash-font-size)}:host([data-styled]) .tx-breadcrumb__link{gap:var(--tx-breadcrumb-item-gap);border-radius:var(--tx-breadcrumb-item-border-radius);outline:var(--tx-breadcrumb-item-focus-ring-width) solid transparent;outline-offset:var(--tx-breadcrumb-item-focus-ring-offset);color:var(--tx-breadcrumb-item-color);font-size:var(--tx-breadcrumb-item-font-size);font-weight:var(--tx-breadcrumb-item-font-weight);line-height:1.5;text-decoration:none;transition:color var(--tx-breadcrumb-transition-duration) var(--tx-motion-easing),outline-color var(--tx-breadcrumb-transition-duration) var(--tx-motion-easing)}:host([data-styled]) .tx-breadcrumb__link:focus-visible{outline-color:var(--tx-breadcrumb-item-focus-ring-color)}:host([data-styled]) .tx-breadcrumb__icon{display:inline-flex;color:var(--tx-breadcrumb-item-icon-color);font-size:var(--tx-breadcrumb-item-icon-size);transition:color var(--tx-breadcrumb-transition-duration) var(--tx-motion-easing)}:host([data-styled]) a.tx-breadcrumb__link,:host([data-styled]) button.tx-breadcrumb__link{cursor:pointer}:host([data-styled]) a.tx-breadcrumb__link:hover,:host([data-styled]) button.tx-breadcrumb__link:hover{color:var(--tx-breadcrumb-item-hover-color)}:host([data-styled]) a.tx-breadcrumb__link:hover .tx-breadcrumb__icon,:host([data-styled]) button.tx-breadcrumb__link:hover .tx-breadcrumb__icon{color:var(--tx-breadcrumb-item-icon-hover-color)}:host([data-styled]) .tx-breadcrumb__item--disabled .tx-breadcrumb__link{opacity:var(--tx-breadcrumb-item-disabled-opacity);cursor:default}:host([data-styled]) .tx-breadcrumb__item--current .tx-breadcrumb__link{color:var(--tx-breadcrumb-current-color);font-weight:var(--tx-breadcrumb-current-font-weight)}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-breadcrumb__link,:host([data-styled]) .tx-breadcrumb__icon{transition:none}}\n"]
299
+ }]
300
+ }],
301
+ propDecorators: {
302
+ model: [{
303
+ type: i0.Input,
304
+ args: [{
305
+ isSignal: true,
306
+ alias: "model",
307
+ required: false
308
+ }]
309
+ }],
310
+ home: [{
311
+ type: i0.Input,
312
+ args: [{
313
+ isSignal: true,
314
+ alias: "home",
315
+ required: false
316
+ }]
317
+ }],
318
+ separator: [{
319
+ type: i0.Input,
320
+ args: [{
321
+ isSignal: true,
322
+ alias: "separator",
323
+ required: false
324
+ }]
325
+ }],
326
+ ariaLabel: [{
327
+ type: i0.Input,
328
+ args: [{
329
+ isSignal: true,
330
+ alias: "ariaLabel",
331
+ required: false
332
+ }]
333
+ }],
334
+ dt: [{
335
+ type: i0.Input,
336
+ args: [{
337
+ isSignal: true,
338
+ alias: "dt",
339
+ required: false
340
+ }]
341
+ }],
342
+ pt: [{
343
+ type: i0.Input,
344
+ args: [{
345
+ isSignal: true,
346
+ alias: "pt",
347
+ required: false
348
+ }]
349
+ }],
350
+ ptOptions: [{
351
+ type: i0.Input,
352
+ args: [{
353
+ isSignal: true,
354
+ alias: "ptOptions",
355
+ required: false
356
+ }]
357
+ }],
358
+ unstyled: [{
359
+ type: i0.Input,
360
+ args: [{
361
+ isSignal: true,
362
+ alias: "unstyled",
363
+ required: false
364
+ }]
365
+ }],
366
+ itemClick: [{
367
+ type: i0.Output,
368
+ args: ["itemClick"]
369
+ }],
370
+ itemTemplate: [{
371
+ type: i0.ContentChild,
372
+ args: [i0.forwardRef(() => TxBreadcrumbItemTemplate), { isSignal: true }]
373
+ }],
374
+ separatorTemplate: [{
375
+ type: i0.ContentChild,
376
+ args: [i0.forwardRef(() => TxBreadcrumbSeparatorTemplate), { isSignal: true }]
377
+ }]
378
+ }
379
+ });
380
+ export { TxBreadcrumb, TxBreadcrumbItemTemplate, TxBreadcrumbSeparatorTemplate };
381
+
382
+ //# sourceMappingURL=tectra-ng-ui-breadcrumb.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tectra-ng-ui-breadcrumb.mjs","names":[],"sources":["../../../../packages/ui/breadcrumb/src/breadcrumb.templates.ts","../../../../packages/ui/breadcrumb/src/breadcrumb.component.ts","../../../../packages/ui/breadcrumb/src/breadcrumb.component.html"],"sourcesContent":["import { Directive, TemplateRef, inject } from '@angular/core';\nimport { TxBreadcrumbItemContext } from './breadcrumb.types';\n\n@Directive({ selector: 'ng-template[txBreadcrumbItem]' })\nexport class TxBreadcrumbItemTemplate {\n readonly templateRef = inject<TemplateRef<TxBreadcrumbItemContext>>(TemplateRef);\n\n static ngTemplateContextGuard(_directive: TxBreadcrumbItemTemplate, context: unknown): context is TxBreadcrumbItemContext {\n return !!context;\n }\n}\n\n@Directive({ selector: 'ng-template[txBreadcrumbSeparator]' })\nexport class TxBreadcrumbSeparatorTemplate {\n readonly templateRef = inject<TemplateRef<unknown>>(TemplateRef);\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, contentChild, inject, input, output } from '@angular/core';\nimport { Router, RouterLink } from '@angular/router';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TxIcon, TxIconRegistry } from '@tectra-ng/icons';\nimport { TectraBreadcrumbTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { TxBreadcrumbItemTemplate, TxBreadcrumbSeparatorTemplate } from './breadcrumb.templates';\nimport { TxBreadcrumbItem, TxBreadcrumbItemEvent, TxBreadcrumbPart, TxBreadcrumbSeparator } from './breadcrumb.types';\n\ntype TxBreadcrumbKind = 'current' | 'router' | 'url' | 'command' | 'text';\n\ninterface TxBreadcrumbEntry {\n item: TxBreadcrumbItem;\n kind: TxBreadcrumbKind;\n current: boolean;\n icon: string | null;\n iconClass: string | null;\n}\n\n@Component({\n selector: 'tx-breadcrumb',\n imports: [NgTemplateOutlet, RouterLink, TxIcon],\n templateUrl: './breadcrumb.component.html',\n styleUrl: './breadcrumb.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-breadcrumb',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-separator]': 'separator()',\n },\n})\nexport class TxBreadcrumb {\n private txIconRegistry = inject(TxIconRegistry);\n private hasRouter = inject(Router, { optional: true }) !== null;\n\n readonly model = input<readonly TxBreadcrumbItem[]>([]);\n readonly home = input<TxBreadcrumbItem | undefined>(undefined);\n readonly separator = input<TxBreadcrumbSeparator>('chevron');\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly dt = input<TectraDeepPartial<TectraBreadcrumbTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxBreadcrumbPart, TxBreadcrumb> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly itemClick = output<TxBreadcrumbItemEvent>();\n\n readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('breadcrumb', this, this.pt, this.ptOptions);\n protected readonly itemTemplate = contentChild(TxBreadcrumbItemTemplate);\n protected readonly separatorTemplate = contentChild(TxBreadcrumbSeparatorTemplate);\n\n readonly entries = computed<TxBreadcrumbEntry[]>(() => {\n const home = this.home();\n const items = home ? [home, ...this.model()] : [...this.model()];\n return items.map((item, index) => this.toEntry(item, index === items.length - 1));\n });\n readonly label = computed(() => this.ariaLabel() ?? this.translations().breadcrumb);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-breadcrumb'), ...this.passThrough().root?.style }));\n\n select(event: Event, item: TxBreadcrumbItem): void {\n if (item.disabled) {\n event.preventDefault();\n return;\n }\n const payload = { originalEvent: event, item };\n item.command?.(payload);\n this.itemClick.emit(payload);\n }\n\n private toEntry(item: TxBreadcrumbItem, current: boolean): TxBreadcrumbEntry {\n const icon = item.icon ?? null;\n const known = icon !== null && this.txIconRegistry.has(icon);\n return { item, current, kind: this.kindOf(item, current), icon: known ? icon : null, iconClass: icon !== null && !known ? icon : null };\n }\n\n private kindOf(item: TxBreadcrumbItem, current: boolean): TxBreadcrumbKind {\n if (current) return 'current';\n if (item.disabled) return 'text';\n if (item.routerLink !== undefined && this.hasRouter) return 'router';\n if (item.url !== undefined || item.routerLink !== undefined) return 'url';\n if (item.command) return 'command';\n return 'text';\n }\n\n protected href(item: TxBreadcrumbItem): string {\n if (item.url !== undefined) return item.url;\n const commands = item.routerLink;\n return typeof commands === 'string' ? commands : (commands ?? []).join('/');\n }\n}\n","<nav class=\"tx-breadcrumb__nav\" [attr.aria-label]=\"label()\">\n <ol class=\"tx-breadcrumb__list\" [class]=\"passThrough().list?.class\" [style]=\"passThrough().list?.style\">\n @for (entry of entries(); track $index; let index = $index, first = $first) {\n <li\n class=\"tx-breadcrumb__item\"\n [class.tx-breadcrumb__item--current]=\"entry.current\"\n [class.tx-breadcrumb__item--disabled]=\"entry.item.disabled\"\n [attr.id]=\"entry.item.id ?? null\"\n [class]=\"passThrough().item?.class\"\n [style]=\"passThrough().item?.style\"\n >\n @if (!first) {\n <span class=\"tx-breadcrumb__separator\" aria-hidden=\"true\" [class]=\"passThrough().separator?.class\" [style]=\"passThrough().separator?.style\">\n @if (separatorTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" />\n } @else if (separator() === 'slash') {\n /\n } @else {\n <tx-icon name=\"chevron-right\" />\n }\n </span>\n }\n @switch (entry.kind) {\n @case ('router') {\n <a\n class=\"tx-breadcrumb__link\"\n [routerLink]=\"$any(entry.item.routerLink)\"\n [queryParams]=\"entry.item.queryParams\"\n [fragment]=\"entry.item.fragment\"\n [attr.target]=\"entry.item.target ?? null\"\n [attr.title]=\"entry.item.title ?? null\"\n [attr.aria-label]=\"entry.item.ariaLabel ?? null\"\n [class]=\"passThrough().link?.class\"\n [style]=\"passThrough().link?.style\"\n (click)=\"select($event, entry.item)\"\n ><ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: entry, index }\"\n /></a>\n }\n @case ('url') {\n <a\n class=\"tx-breadcrumb__link\"\n [href]=\"href(entry.item)\"\n [attr.target]=\"entry.item.target ?? null\"\n [attr.rel]=\"entry.item.target === '_blank' ? 'noopener noreferrer' : null\"\n [attr.title]=\"entry.item.title ?? null\"\n [attr.aria-label]=\"entry.item.ariaLabel ?? null\"\n [class]=\"passThrough().link?.class\"\n [style]=\"passThrough().link?.style\"\n (click)=\"select($event, entry.item)\"\n ><ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: entry, index }\"\n /></a>\n }\n @case ('command') {\n <button\n type=\"button\"\n class=\"tx-breadcrumb__link\"\n [attr.title]=\"entry.item.title ?? null\"\n [attr.aria-label]=\"entry.item.ariaLabel ?? null\"\n [class]=\"passThrough().link?.class\"\n [style]=\"passThrough().link?.style\"\n (click)=\"select($event, entry.item)\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: entry, index }\" />\n </button>\n }\n @default {\n <span\n class=\"tx-breadcrumb__link\"\n [attr.aria-current]=\"entry.current ? 'page' : null\"\n [attr.aria-disabled]=\"entry.item.disabled ? 'true' : null\"\n [attr.title]=\"entry.item.title ?? null\"\n [attr.aria-label]=\"entry.item.ariaLabel ?? null\"\n [class]=\"passThrough().link?.class\"\n [style]=\"passThrough().link?.style\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" [ngTemplateOutletContext]=\"{ $implicit: entry, index }\" />\n </span>\n }\n }\n </li>\n }\n </ol>\n</nav>\n\n<ng-template #content let-entry let-index=\"index\">\n @if (itemTemplate(); as template) {\n <ng-container [ngTemplateOutlet]=\"template.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: entry.item, current: entry.current, index }\" />\n } @else {\n @if (entry.icon) {\n <tx-icon class=\"tx-breadcrumb__icon\" aria-hidden=\"true\" [name]=\"entry.icon\" [class]=\"passThrough().icon?.class\" [style]=\"passThrough().icon?.style\" />\n } @else if (entry.iconClass) {\n <span class=\"tx-breadcrumb__icon\" aria-hidden=\"true\" [class]=\"entry.iconClass + ' ' + (passThrough().icon?.class ?? '')\" [style]=\"passThrough().icon?.style\"></span>\n }\n @if (entry.item.label) {\n <span class=\"tx-breadcrumb__label\" [class]=\"passThrough().label?.class\" [style]=\"passThrough().label?.style\">{{ entry.item.label }}</span>\n }\n }\n</ng-template>\n"],"mappings":"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"}
@@ -565,7 +565,7 @@ var TxCascadeSelect = class TxCascadeSelect extends TxFormControlBase {
565
565
  usesInheritance: true,
566
566
  ngImport: i0,
567
567
  template: "<!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- the combobox inside the box takes focus and keys; the box only widens the click area -->\n<div\n #box\n #origin=\"cdkOverlayOrigin\"\n cdkOverlayOrigin\n class=\"tx-select__box\"\n [class]=\"passThrough().box?.class\"\n [style]=\"passThrough().box?.style\"\n (click)=\"onBoxClick($event)\"\n>\n <button\n #trigger\n type=\"button\"\n role=\"combobox\"\n class=\"tx-select__trigger\"\n aria-haspopup=\"tree\"\n [class]=\"passThrough().trigger?.class\"\n [style]=\"passThrough().trigger?.style\"\n [attr.id]=\"inputId() ?? null\"\n [attr.aria-label]=\"ariaLabel() ?? (ariaLabelledBy() || inputId() ? null : placeholder() || null)\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"treeId\"\n [attr.aria-activedescendant]=\"activeId()\"\n [attr.aria-invalid]=\"isInvalid() || null\"\n [attr.aria-readonly]=\"readonly() || null\"\n [disabled]=\"disabled()\"\n (keydown)=\"onKeydown($event)\"\n >\n @if (hasValue()) {\n <span class=\"tx-select__value\" [class]=\"passThrough().value?.class\" [style]=\"passThrough().value?.style\">{{ label() }}</span>\n } @else {\n <span class=\"tx-select__value tx-select__value--placeholder\" [class]=\"passThrough().value?.class\" [style]=\"passThrough().value?.style\">{{\n placeholder()\n }}</span>\n }\n </button>\n @if (canClear()) {\n <button\n type=\"button\"\n class=\"tx-select__clear\"\n [class]=\"passThrough().clear?.class\"\n [style]=\"passThrough().clear?.style\"\n [attr.aria-label]=\"translations().clear\"\n (click)=\"clear()\"\n >\n <tx-icon [name]=\"'times'\" />\n </button>\n }\n <span class=\"tx-select__dropdown\" aria-hidden=\"true\" [class]=\"passThrough().dropdown?.class\" [style]=\"passThrough().dropdown?.style\">\n <tx-icon class=\"tx-select__chevron\" [name]=\"'chevron-down'\" />\n </span>\n</div>\n\n<ng-template\n cdkConnectedOverlay\n txOverlayAnchor\n [cdkConnectedOverlayOrigin]=\"origin\"\n [cdkConnectedOverlayOpen]=\"isPanelMounted()\"\n [cdkConnectedOverlayPositions]=\"positions()\"\n [cdkConnectedOverlayScrollStrategy]=\"scrollStrategy\"\n [cdkConnectedOverlayViewportMargin]=\"viewportMargin()\"\n [cdkConnectedOverlayDisableClose]=\"true\"\n (overlayOutsideClick)=\"onOutsideClick($event)\"\n (positionChange)=\"onPositionChange($event)\"\n (detach)=\"close()\"\n>\n <div\n #panel\n class=\"tx-select__panel tx-cascade-select__panel\"\n [attr.data-styled]=\"!isUnstyled() || null\"\n [class]=\"passThrough().panel?.class\"\n [style]=\"panelStyle()\"\n (mousedown)=\"onPanelMousedown($event)\"\n >\n <div class=\"tx-cascade-select__tree\" role=\"tree\" [id]=\"treeId\" [attr.aria-label]=\"ariaLabel() || placeholder() || null\">\n @for (column of columns(); track column[0]?.id ?? $index; let level = $index) {\n <div class=\"tx-cascade-select__column\" role=\"group\" [animate.enter]=\"level > 0 ? columnEnter : noClasses\" [class]=\"passThrough().column?.class\" [style]=\"passThrough().column?.style\">\n @for (item of column; track item.id) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- items use aria-activedescendant: focus and keys stay on the field -->\n <div\n role=\"treeitem\"\n class=\"tx-cascade-select__option\"\n [id]=\"item.id\"\n [class.tx-cascade-select__option--active]=\"item.onPath && level === activeLevel()\"\n [class.tx-cascade-select__option--path]=\"item.onPath && level !== activeLevel()\"\n [class.tx-cascade-select__option--selected]=\"item.selected\"\n [class.tx-cascade-select__option--disabled]=\"item.disabled\"\n [attr.aria-level]=\"level + 1\"\n [attr.aria-setsize]=\"column.length\"\n [attr.aria-posinset]=\"item.index + 1\"\n [attr.aria-expanded]=\"item.group ? item.onPath && columns().length > level + 1 : null\"\n [attr.aria-selected]=\"item.group ? null : item.selected\"\n [attr.aria-disabled]=\"item.disabled || null\"\n [class]=\"passThrough().option?.class\"\n [style]=\"passThrough().option?.style\"\n (mouseenter)=\"onItemHover(item)\"\n (click)=\"onItemClick(item)\"\n >\n <span class=\"tx-cascade-select__label\">{{ item.label }}</span>\n @if (item.group) {\n <tx-icon class=\"tx-cascade-select__group-icon\" [name]=\"'chevron-right'\" />\n } @else if (item.selected) {\n <tx-icon class=\"tx-cascade-select__check\" [name]=\"'check'\" />\n }\n </div>\n }\n </div>\n } @empty {\n <div class=\"tx-select__empty\" role=\"presentation\" [class]=\"passThrough().empty?.class\" [style]=\"passThrough().empty?.style\">{{ emptyText() }}</div>\n }\n </div>\n </div>\n</ng-template>\n",
568
- styles: [":host{display:block;width:100%}.tx-select__box{display:flex;align-items:center;cursor:pointer}.tx-select__trigger{flex:1 1 auto;min-width:0}.tx-select__value{display:block;min-height:1lh;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-select__dropdown{display:inline-flex}:host(.tx-cascade-select--disabled) .tx-select__box{cursor:not-allowed}:host(.tx-cascade-select--readonly) .tx-select__box{cursor:default}:host([data-styled]){font-family:var(--tx-font-family)}:host([data-styled]) .tx-select__box{box-sizing:border-box;padding-top:var(--tx-field-padding-top, var(--tx-form-field-padding-y));padding-bottom:var(--tx-field-padding-bottom, var(--tx-form-field-padding-y));padding-inline:calc(var(--tx-form-field-padding-x) + var(--tx-field-inset-start, 0px)) calc(var(--tx-form-field-padding-x) + var(--tx-field-inset-end, 0px));border:1px solid var(--tx-form-field-border-color);border-radius:var(--tx-form-field-border-radius);outline:none;background-color:var(--tx-form-field-background);box-shadow:var(--tx-form-field-shadow);color:var(--tx-form-field-color);font-family:var(--tx-font-family);font-size:var(--tx-form-field-font-size);line-height:var(--tx-form-field-line-height);transition:background-color var(--tx-form-field-transition-duration),border-color var(--tx-form-field-transition-duration),box-shadow var(--tx-form-field-transition-duration);--_px: var(--tx-form-field-padding-x);--_py: var(--tx-form-field-padding-y);gap:var(--tx-select-gap);width:100%;padding-inline-end:0}:host([data-styled])[data-variant=filled] .tx-select__box{background-color:var(--tx-form-field-filled-background)}:host([data-styled]):not(.tx-cascade-select--disabled,.tx-cascade-select--readonly) .tx-select__box:not(:has(.tx-select__trigger:focus)):hover{border-color:var(--tx-form-field-hover-border-color)}:host([data-styled])[data-variant=filled]:not(.tx-cascade-select--disabled,.tx-cascade-select--readonly) .tx-select__box:not(:has(.tx-select__trigger:focus)):hover{background-color:var(--tx-form-field-filled-hover-background)}:host([data-styled]) .tx-select__box:has(.tx-select__trigger:focus){border-color:var(--tx-form-field-focus-border-color);outline:var(--tx-form-field-focus-ring-width) var(--tx-form-field-focus-ring-style) var(--tx-form-field-focus-ring-color);outline-offset:var(--tx-form-field-focus-ring-offset);box-shadow:var(--tx-form-field-focus-ring-shadow)}:host([data-styled])[data-variant=filled] .tx-select__box:has(.tx-select__trigger:focus){background-color:var(--tx-form-field-filled-focus-background)}:host([data-styled]).tx-cascade-select--readonly .tx-select__box,:host([data-styled]).tx-cascade-select--readonly .tx-select__box:hover{background-color:var(--tx-form-field-readonly-background);cursor:default;border-color:var(--tx-form-field-border-color)}:host([data-styled]).tx-cascade-select--invalid .tx-select__box{border-color:var(--tx-form-field-invalid-border-color)}:host([data-styled]).tx-cascade-select--invalid .tx-select__box:has(.tx-select__trigger:focus){border-color:var(--tx-form-field-invalid-border-color);box-shadow:var(--tx-form-field-invalid-focus-ring-shadow)}:host([data-styled]).tx-cascade-select--disabled .tx-select__box{background-color:var(--tx-form-field-disabled-background);box-shadow:none;color:var(--tx-form-field-disabled-color);cursor:not-allowed}:host([data-styled])[data-size=small] .tx-select__box{padding-top:var(--tx-field-padding-top, var(--tx-form-field-sm-padding-y));padding-bottom:var(--tx-field-padding-bottom, var(--tx-form-field-sm-padding-y));padding-inline:calc(var(--tx-form-field-sm-padding-x) + var(--tx-field-inset-start, 0px)) calc(var(--tx-form-field-sm-padding-x) + var(--tx-field-inset-end, 0px));font-size:var(--tx-form-field-sm-font-size);line-height:var(--tx-form-field-sm-line-height);--_px: var(--tx-form-field-sm-padding-x);--_py: var(--tx-form-field-sm-padding-y);padding-inline-end:0}:host([data-styled])[data-size=large] .tx-select__box{padding-top:var(--tx-field-padding-top, var(--tx-form-field-lg-padding-y));padding-bottom:var(--tx-field-padding-bottom, var(--tx-form-field-lg-padding-y));padding-inline:calc(var(--tx-form-field-lg-padding-x) + var(--tx-field-inset-start, 0px)) calc(var(--tx-form-field-lg-padding-x) + var(--tx-field-inset-end, 0px));font-size:var(--tx-form-field-lg-font-size);line-height:var(--tx-form-field-lg-line-height);--_px: var(--tx-form-field-lg-padding-x);--_py: var(--tx-form-field-lg-padding-y);padding-inline-end:0}:host([data-styled]) .tx-select__trigger{padding:0;padding-inline-end:var(--_px);border:none;outline:none;background:transparent;color:inherit;font:inherit;line-height:inherit;text-align:left;cursor:inherit}:host([data-styled]) .tx-select__input{cursor:text}:host([data-styled]) .tx-select__input::placeholder{color:var(--tx-form-field-placeholder-color)}:host([data-styled]) .tx-select__input:disabled{cursor:not-allowed}:host([data-styled]).tx-cascade-select--invalid .tx-select__input::placeholder{color:var(--tx-form-field-invalid-placeholder-color)}:host([data-styled]) .tx-select__value--placeholder{color:var(--tx-form-field-placeholder-color)}:host([data-styled])[data-variant=filled] .tx-select__value--placeholder,:host([data-styled])[data-variant=filled] .tx-select__input::placeholder{color:var(--tx-form-field-filled-placeholder-color)}:host([data-styled]).tx-cascade-select--invalid .tx-select__value--placeholder{color:var(--tx-form-field-invalid-placeholder-color)}:host([data-styled]) .tx-select__clear{display:grid;flex:none;place-items:center;width:var(--tx-select-clear-size);height:var(--tx-select-clear-size);padding:0;border:none;border-radius:var(--tx-radius-full);background:none;color:var(--tx-select-dropdown-color);font-size:var(--tx-select-clear-size);cursor:pointer;transition:color var(--tx-motion-duration) var(--tx-motion-easing)}:host([data-styled]) .tx-select__clear:hover{color:var(--tx-form-field-color)}:host([data-styled]) .tx-select__clear:focus-visible{outline:2px solid var(--tx-focus-ring-color);outline-offset:2px}:host([data-styled]) .tx-select__dropdown{flex:none;align-items:center;align-self:stretch;justify-content:center;width:var(--tx-select-dropdown-width);color:var(--tx-select-dropdown-color)}:host([data-styled]) .tx-select__spinner{animation:tx-select-spin .8s linear infinite}@keyframes tx-select-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-select__spinner{animation-duration:2.4s}}.tx-select__panel{box-sizing:border-box;width:100%}.tx-select__panel[data-styled]{overflow:hidden;border:1px solid var(--tx-select-overlay-border-color);border-radius:var(--tx-select-overlay-border-radius);background:var(--tx-select-overlay-background);box-shadow:var(--tx-select-overlay-shadow);color:var(--tx-select-option-color);font-family:var(--tx-font-family);font-size:var(--tx-form-field-font-size);line-height:var(--tx-form-field-line-height)}.tx-select__panel[data-styled] .tx-select__header{padding:var(--tx-select-header-padding)}.tx-select__panel[data-styled] .tx-select__footer{padding:var(--tx-select-footer-padding)}.tx-select__panel[data-styled] .tx-select__filter{display:flex;align-items:center;gap:var(--tx-select-filter-gap);padding:var(--tx-select-filter-padding)}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-field{position:relative;display:flex;flex:1 1 auto;align-items:center;min-width:0}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-input{box-sizing:border-box;padding-top:var(--tx-field-padding-top, var(--tx-form-field-padding-y));padding-bottom:var(--tx-field-padding-bottom, var(--tx-form-field-padding-y));padding-inline:calc(var(--tx-form-field-padding-x) + var(--tx-field-inset-start, 0px)) calc(var(--tx-form-field-padding-x) + var(--tx-field-inset-end, 0px));border:1px solid var(--tx-form-field-border-color);border-radius:var(--tx-form-field-border-radius);outline:none;background-color:var(--tx-form-field-background);box-shadow:var(--tx-form-field-shadow);color:var(--tx-form-field-color);font-family:var(--tx-font-family);font-size:var(--tx-form-field-font-size);line-height:var(--tx-form-field-line-height);transition:background-color var(--tx-form-field-transition-duration),border-color var(--tx-form-field-transition-duration),box-shadow var(--tx-form-field-transition-duration);width:100%;min-width:0;padding-inline-end:calc(var(--tx-form-field-padding-x) + 1em + var(--tx-select-filter-icon-inset))}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-input:hover{border-color:var(--tx-form-field-hover-border-color)}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-input:focus{border-color:var(--tx-form-field-focus-border-color);outline:var(--tx-form-field-focus-ring-width) var(--tx-form-field-focus-ring-style) var(--tx-form-field-focus-ring-color);outline-offset:var(--tx-form-field-focus-ring-offset);box-shadow:var(--tx-form-field-focus-ring-shadow)}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-input::placeholder{color:var(--tx-form-field-placeholder-color)}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-icon{position:absolute;right:var(--tx-select-filter-icon-inset);color:var(--tx-form-field-icon-color);pointer-events:none}.tx-cascade-select__tree{display:flex;align-items:stretch}.tx-cascade-select__column{display:flex;flex-direction:column;overflow-y:auto}.tx-cascade-select__option{display:flex;align-items:center;cursor:pointer}.tx-cascade-select__option--disabled{cursor:default}.tx-cascade-select__label{flex:1 1 auto;min-width:0}.tx-select__panel[data-styled] .tx-cascade-select__column{gap:var(--tx-select-list-gap);box-sizing:border-box;width:var(--tx-cascade-select-column-width);max-height:var(--tx-select-list-max-height);padding:var(--tx-select-list-padding-block) var(--tx-select-list-padding-inline)}.tx-select__panel[data-styled] .tx-cascade-select__column+.tx-select__panel[data-styled] .tx-cascade-select__column{border-inline-start:1px solid var(--tx-cascade-select-column-border-color)}.tx-select__panel[data-styled] .tx-cascade-select__option{gap:var(--tx-space-2);transition:background-color var(--tx-motion-duration) var(--tx-motion-easing),color var(--tx-motion-duration) var(--tx-motion-easing),box-shadow var(--tx-motion-duration) var(--tx-motion-easing);padding:var(--tx-select-option-padding);border-radius:var(--tx-select-option-border-radius);color:var(--tx-select-option-color)}.tx-select__panel[data-styled] .tx-cascade-select__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-select__panel[data-styled] .tx-cascade-select__option--path{background:var(--tx-select-option-focus-background)}.tx-select__panel[data-styled] .tx-cascade-select__option--active{background:var(--tx-select-option-focus-background);color:var(--tx-select-option-focus-color);box-shadow:inset 2px 0 0 var(--tx-select-option-check-color)}.tx-select__panel[data-styled] .tx-cascade-select__option--selected{background:var(--tx-select-option-selected-background);color:var(--tx-select-option-selected-color);font-weight:var(--tx-font-weight-medium)}.tx-select__panel[data-styled] .tx-cascade-select__option--disabled{color:var(--tx-select-option-disabled-color)}.tx-select__panel[data-styled] .tx-cascade-select__group-icon{color:var(--tx-cascade-select-group-icon-color)}.tx-select__panel[data-styled] .tx-cascade-select__check{color:var(--tx-select-option-check-color)}.tx-select__panel[data-styled] .tx-select__empty{padding:var(--tx-select-empty-padding);color:var(--tx-select-empty-color)}.tx-select__panel[data-styled] .tx-cascade-select__column--enter{animation:tx-cascade-column-in calc(var(--tx-motion-duration) * 1.4) cubic-bezier(.2,0,0,1)}@keyframes tx-cascade-column-in{0%{opacity:0;transform:translate(-6px)}}@media(prefers-reduced-motion:reduce){.tx-select__panel[data-styled] .tx-cascade-select__column--enter{animation-duration:1ms}}\n"],
568
+ styles: [":host{display:block;width:100%}.tx-select__box{display:flex;align-items:center;cursor:pointer}.tx-select__trigger{flex:1 1 auto;min-width:0}.tx-select__value{display:block;min-height:1lh;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-select__dropdown{display:inline-flex}:host(.tx-cascade-select--disabled) .tx-select__box{cursor:not-allowed}:host(.tx-cascade-select--readonly) .tx-select__box{cursor:default}:host([data-styled]){font-family:var(--tx-font-family)}:host([data-styled]) .tx-select__box{box-sizing:border-box;padding-top:var(--tx-field-padding-top, var(--tx-form-field-padding-y));padding-bottom:var(--tx-field-padding-bottom, var(--tx-form-field-padding-y));padding-inline:calc(var(--tx-form-field-padding-x) + var(--tx-field-inset-start, 0px)) calc(var(--tx-form-field-padding-x) + var(--tx-field-inset-end, 0px));border:1px solid var(--tx-form-field-border-color);border-start-start-radius:var(--tx-field-radius-start, var(--tx-form-field-border-radius));border-end-start-radius:var(--tx-field-radius-start, var(--tx-form-field-border-radius));border-start-end-radius:var(--tx-field-radius-end, var(--tx-form-field-border-radius));border-end-end-radius:var(--tx-field-radius-end, var(--tx-form-field-border-radius));outline:none;background-color:var(--tx-form-field-background);box-shadow:var(--tx-form-field-shadow);color:var(--tx-form-field-color);font-family:var(--tx-font-family);font-size:var(--tx-form-field-font-size);line-height:var(--tx-form-field-line-height);transition:background-color var(--tx-form-field-transition-duration),border-color var(--tx-form-field-transition-duration),box-shadow var(--tx-form-field-transition-duration);--_px: var(--tx-form-field-padding-x);--_py: var(--tx-form-field-padding-y);gap:var(--tx-select-gap);width:100%;padding-inline-end:0}:host([data-styled])[data-variant=filled] .tx-select__box{background-color:var(--tx-form-field-filled-background)}:host([data-styled]):not(.tx-cascade-select--disabled,.tx-cascade-select--readonly) .tx-select__box:not(:has(.tx-select__trigger:focus)):hover{border-color:var(--tx-form-field-hover-border-color)}:host([data-styled])[data-variant=filled]:not(.tx-cascade-select--disabled,.tx-cascade-select--readonly) .tx-select__box:not(:has(.tx-select__trigger:focus)):hover{background-color:var(--tx-form-field-filled-hover-background)}:host([data-styled]) .tx-select__box:has(.tx-select__trigger:focus){border-color:var(--tx-form-field-focus-border-color);outline:var(--tx-form-field-focus-ring-width) var(--tx-form-field-focus-ring-style) var(--tx-form-field-focus-ring-color);outline-offset:var(--tx-form-field-focus-ring-offset);box-shadow:var(--tx-form-field-focus-ring-shadow)}:host([data-styled])[data-variant=filled] .tx-select__box:has(.tx-select__trigger:focus){background-color:var(--tx-form-field-filled-focus-background)}:host([data-styled]).tx-cascade-select--readonly .tx-select__box,:host([data-styled]).tx-cascade-select--readonly .tx-select__box:hover{background-color:var(--tx-form-field-readonly-background);cursor:default;border-color:var(--tx-form-field-border-color)}:host([data-styled]).tx-cascade-select--invalid .tx-select__box{border-color:var(--tx-form-field-invalid-border-color)}:host([data-styled]).tx-cascade-select--invalid .tx-select__box:has(.tx-select__trigger:focus){border-color:var(--tx-form-field-invalid-border-color);box-shadow:var(--tx-form-field-invalid-focus-ring-shadow)}:host([data-styled]).tx-cascade-select--disabled .tx-select__box{background-color:var(--tx-form-field-disabled-background);box-shadow:none;color:var(--tx-form-field-disabled-color);cursor:not-allowed}:host([data-styled])[data-size=small] .tx-select__box{padding-top:var(--tx-field-padding-top, var(--tx-form-field-sm-padding-y));padding-bottom:var(--tx-field-padding-bottom, var(--tx-form-field-sm-padding-y));padding-inline:calc(var(--tx-form-field-sm-padding-x) + var(--tx-field-inset-start, 0px)) calc(var(--tx-form-field-sm-padding-x) + var(--tx-field-inset-end, 0px));font-size:var(--tx-form-field-sm-font-size);line-height:var(--tx-form-field-sm-line-height);--_px: var(--tx-form-field-sm-padding-x);--_py: var(--tx-form-field-sm-padding-y);padding-inline-end:0}:host([data-styled])[data-size=large] .tx-select__box{padding-top:var(--tx-field-padding-top, var(--tx-form-field-lg-padding-y));padding-bottom:var(--tx-field-padding-bottom, var(--tx-form-field-lg-padding-y));padding-inline:calc(var(--tx-form-field-lg-padding-x) + var(--tx-field-inset-start, 0px)) calc(var(--tx-form-field-lg-padding-x) + var(--tx-field-inset-end, 0px));font-size:var(--tx-form-field-lg-font-size);line-height:var(--tx-form-field-lg-line-height);--_px: var(--tx-form-field-lg-padding-x);--_py: var(--tx-form-field-lg-padding-y);padding-inline-end:0}:host([data-styled]) .tx-select__trigger{padding:0;padding-inline-end:var(--_px);border:none;outline:none;background:transparent;color:inherit;font:inherit;line-height:inherit;text-align:left;cursor:inherit}:host([data-styled]) .tx-select__input{cursor:text}:host([data-styled]) .tx-select__input::placeholder{color:var(--tx-form-field-placeholder-color)}:host([data-styled]) .tx-select__input:disabled{cursor:not-allowed}:host([data-styled]).tx-cascade-select--invalid .tx-select__input::placeholder{color:var(--tx-form-field-invalid-placeholder-color)}:host([data-styled]) .tx-select__value--placeholder{color:var(--tx-form-field-placeholder-color)}:host([data-styled])[data-variant=filled] .tx-select__value--placeholder,:host([data-styled])[data-variant=filled] .tx-select__input::placeholder{color:var(--tx-form-field-filled-placeholder-color)}:host([data-styled]).tx-cascade-select--invalid .tx-select__value--placeholder{color:var(--tx-form-field-invalid-placeholder-color)}:host([data-styled]) .tx-select__clear{display:grid;flex:none;place-items:center;width:var(--tx-select-clear-size);height:var(--tx-select-clear-size);padding:0;border:none;border-radius:var(--tx-radius-full);background:none;color:var(--tx-select-dropdown-color);font-size:var(--tx-select-clear-size);cursor:pointer;transition:color var(--tx-motion-duration) var(--tx-motion-easing)}:host([data-styled]) .tx-select__clear:hover{color:var(--tx-form-field-color)}:host([data-styled]) .tx-select__clear:focus-visible{outline:2px solid var(--tx-focus-ring-color);outline-offset:2px}:host([data-styled]) .tx-select__dropdown{flex:none;align-items:center;align-self:stretch;justify-content:center;width:var(--tx-select-dropdown-width);color:var(--tx-select-dropdown-color)}:host([data-styled]) .tx-select__spinner{animation:tx-select-spin .8s linear infinite}@keyframes tx-select-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-select__spinner{animation-duration:2.4s}}.tx-select__panel{box-sizing:border-box;width:100%}.tx-select__panel[data-styled]{overflow:hidden;border:1px solid var(--tx-select-overlay-border-color);border-radius:var(--tx-select-overlay-border-radius);background:var(--tx-select-overlay-background);box-shadow:var(--tx-select-overlay-shadow);color:var(--tx-select-option-color);font-family:var(--tx-font-family);font-size:var(--tx-form-field-font-size);line-height:var(--tx-form-field-line-height)}.tx-select__panel[data-styled] .tx-select__header{padding:var(--tx-select-header-padding)}.tx-select__panel[data-styled] .tx-select__footer{padding:var(--tx-select-footer-padding)}.tx-select__panel[data-styled] .tx-select__filter{display:flex;align-items:center;gap:var(--tx-select-filter-gap);padding:var(--tx-select-filter-padding)}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-field{position:relative;display:flex;flex:1 1 auto;align-items:center;min-width:0}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-input{box-sizing:border-box;padding-top:var(--tx-field-padding-top, var(--tx-form-field-padding-y));padding-bottom:var(--tx-field-padding-bottom, var(--tx-form-field-padding-y));padding-inline:calc(var(--tx-form-field-padding-x) + var(--tx-field-inset-start, 0px)) calc(var(--tx-form-field-padding-x) + var(--tx-field-inset-end, 0px));border:1px solid var(--tx-form-field-border-color);border-start-start-radius:var(--tx-field-radius-start, var(--tx-form-field-border-radius));border-end-start-radius:var(--tx-field-radius-start, var(--tx-form-field-border-radius));border-start-end-radius:var(--tx-field-radius-end, var(--tx-form-field-border-radius));border-end-end-radius:var(--tx-field-radius-end, var(--tx-form-field-border-radius));outline:none;background-color:var(--tx-form-field-background);box-shadow:var(--tx-form-field-shadow);color:var(--tx-form-field-color);font-family:var(--tx-font-family);font-size:var(--tx-form-field-font-size);line-height:var(--tx-form-field-line-height);transition:background-color var(--tx-form-field-transition-duration),border-color var(--tx-form-field-transition-duration),box-shadow var(--tx-form-field-transition-duration);width:100%;min-width:0;padding-inline-end:calc(var(--tx-form-field-padding-x) + 1em + var(--tx-select-filter-icon-inset))}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-input:hover{border-color:var(--tx-form-field-hover-border-color)}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-input:focus{border-color:var(--tx-form-field-focus-border-color);outline:var(--tx-form-field-focus-ring-width) var(--tx-form-field-focus-ring-style) var(--tx-form-field-focus-ring-color);outline-offset:var(--tx-form-field-focus-ring-offset);box-shadow:var(--tx-form-field-focus-ring-shadow)}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-input::placeholder{color:var(--tx-form-field-placeholder-color)}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-icon{position:absolute;right:var(--tx-select-filter-icon-inset);color:var(--tx-form-field-icon-color);pointer-events:none}.tx-cascade-select__tree{display:flex;align-items:stretch}.tx-cascade-select__column{display:flex;flex-direction:column;overflow-y:auto}.tx-cascade-select__option{display:flex;align-items:center;cursor:pointer}.tx-cascade-select__option--disabled{cursor:default}.tx-cascade-select__label{flex:1 1 auto;min-width:0}.tx-select__panel[data-styled] .tx-cascade-select__column{gap:var(--tx-select-list-gap);box-sizing:border-box;width:var(--tx-cascade-select-column-width);max-height:var(--tx-select-list-max-height);padding:var(--tx-select-list-padding-block) var(--tx-select-list-padding-inline)}.tx-select__panel[data-styled] .tx-cascade-select__column+.tx-select__panel[data-styled] .tx-cascade-select__column{border-inline-start:1px solid var(--tx-cascade-select-column-border-color)}.tx-select__panel[data-styled] .tx-cascade-select__option{gap:var(--tx-space-2);transition:background-color var(--tx-motion-duration) var(--tx-motion-easing),color var(--tx-motion-duration) var(--tx-motion-easing),box-shadow var(--tx-motion-duration) var(--tx-motion-easing);padding:var(--tx-select-option-padding);border-radius:var(--tx-select-option-border-radius);color:var(--tx-select-option-color)}.tx-select__panel[data-styled] .tx-cascade-select__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-select__panel[data-styled] .tx-cascade-select__option--path{background:var(--tx-select-option-focus-background)}.tx-select__panel[data-styled] .tx-cascade-select__option--active{background:var(--tx-select-option-focus-background);color:var(--tx-select-option-focus-color);box-shadow:inset 2px 0 0 var(--tx-select-option-check-color)}.tx-select__panel[data-styled] .tx-cascade-select__option--selected{background:var(--tx-select-option-selected-background);color:var(--tx-select-option-selected-color);font-weight:var(--tx-font-weight-medium)}.tx-select__panel[data-styled] .tx-cascade-select__option--disabled{color:var(--tx-select-option-disabled-color)}.tx-select__panel[data-styled] .tx-cascade-select__group-icon{color:var(--tx-cascade-select-group-icon-color)}.tx-select__panel[data-styled] .tx-cascade-select__check{color:var(--tx-select-option-check-color)}.tx-select__panel[data-styled] .tx-select__empty{padding:var(--tx-select-empty-padding);color:var(--tx-select-empty-color)}.tx-select__panel[data-styled] .tx-cascade-select__column--enter{animation:tx-cascade-column-in calc(var(--tx-motion-duration) * 1.4) cubic-bezier(.2,0,0,1)}@keyframes tx-cascade-column-in{0%{opacity:0;transform:translate(-6px)}}@media(prefers-reduced-motion:reduce){.tx-select__panel[data-styled] .tx-cascade-select__column--enter{animation-duration:1ms}}\n"],
569
569
  dependencies: [
570
570
  {
571
571
  kind: "directive",
@@ -664,7 +664,7 @@ i0.ɵɵngDeclareClassMetadata({
664
664
  "[class.tx-cascade-select--filled]": "hasValue()"
665
665
  },
666
666
  template: "<!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- the combobox inside the box takes focus and keys; the box only widens the click area -->\n<div\n #box\n #origin=\"cdkOverlayOrigin\"\n cdkOverlayOrigin\n class=\"tx-select__box\"\n [class]=\"passThrough().box?.class\"\n [style]=\"passThrough().box?.style\"\n (click)=\"onBoxClick($event)\"\n>\n <button\n #trigger\n type=\"button\"\n role=\"combobox\"\n class=\"tx-select__trigger\"\n aria-haspopup=\"tree\"\n [class]=\"passThrough().trigger?.class\"\n [style]=\"passThrough().trigger?.style\"\n [attr.id]=\"inputId() ?? null\"\n [attr.aria-label]=\"ariaLabel() ?? (ariaLabelledBy() || inputId() ? null : placeholder() || null)\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"treeId\"\n [attr.aria-activedescendant]=\"activeId()\"\n [attr.aria-invalid]=\"isInvalid() || null\"\n [attr.aria-readonly]=\"readonly() || null\"\n [disabled]=\"disabled()\"\n (keydown)=\"onKeydown($event)\"\n >\n @if (hasValue()) {\n <span class=\"tx-select__value\" [class]=\"passThrough().value?.class\" [style]=\"passThrough().value?.style\">{{ label() }}</span>\n } @else {\n <span class=\"tx-select__value tx-select__value--placeholder\" [class]=\"passThrough().value?.class\" [style]=\"passThrough().value?.style\">{{\n placeholder()\n }}</span>\n }\n </button>\n @if (canClear()) {\n <button\n type=\"button\"\n class=\"tx-select__clear\"\n [class]=\"passThrough().clear?.class\"\n [style]=\"passThrough().clear?.style\"\n [attr.aria-label]=\"translations().clear\"\n (click)=\"clear()\"\n >\n <tx-icon [name]=\"'times'\" />\n </button>\n }\n <span class=\"tx-select__dropdown\" aria-hidden=\"true\" [class]=\"passThrough().dropdown?.class\" [style]=\"passThrough().dropdown?.style\">\n <tx-icon class=\"tx-select__chevron\" [name]=\"'chevron-down'\" />\n </span>\n</div>\n\n<ng-template\n cdkConnectedOverlay\n txOverlayAnchor\n [cdkConnectedOverlayOrigin]=\"origin\"\n [cdkConnectedOverlayOpen]=\"isPanelMounted()\"\n [cdkConnectedOverlayPositions]=\"positions()\"\n [cdkConnectedOverlayScrollStrategy]=\"scrollStrategy\"\n [cdkConnectedOverlayViewportMargin]=\"viewportMargin()\"\n [cdkConnectedOverlayDisableClose]=\"true\"\n (overlayOutsideClick)=\"onOutsideClick($event)\"\n (positionChange)=\"onPositionChange($event)\"\n (detach)=\"close()\"\n>\n <div\n #panel\n class=\"tx-select__panel tx-cascade-select__panel\"\n [attr.data-styled]=\"!isUnstyled() || null\"\n [class]=\"passThrough().panel?.class\"\n [style]=\"panelStyle()\"\n (mousedown)=\"onPanelMousedown($event)\"\n >\n <div class=\"tx-cascade-select__tree\" role=\"tree\" [id]=\"treeId\" [attr.aria-label]=\"ariaLabel() || placeholder() || null\">\n @for (column of columns(); track column[0]?.id ?? $index; let level = $index) {\n <div class=\"tx-cascade-select__column\" role=\"group\" [animate.enter]=\"level > 0 ? columnEnter : noClasses\" [class]=\"passThrough().column?.class\" [style]=\"passThrough().column?.style\">\n @for (item of column; track item.id) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- items use aria-activedescendant: focus and keys stay on the field -->\n <div\n role=\"treeitem\"\n class=\"tx-cascade-select__option\"\n [id]=\"item.id\"\n [class.tx-cascade-select__option--active]=\"item.onPath && level === activeLevel()\"\n [class.tx-cascade-select__option--path]=\"item.onPath && level !== activeLevel()\"\n [class.tx-cascade-select__option--selected]=\"item.selected\"\n [class.tx-cascade-select__option--disabled]=\"item.disabled\"\n [attr.aria-level]=\"level + 1\"\n [attr.aria-setsize]=\"column.length\"\n [attr.aria-posinset]=\"item.index + 1\"\n [attr.aria-expanded]=\"item.group ? item.onPath && columns().length > level + 1 : null\"\n [attr.aria-selected]=\"item.group ? null : item.selected\"\n [attr.aria-disabled]=\"item.disabled || null\"\n [class]=\"passThrough().option?.class\"\n [style]=\"passThrough().option?.style\"\n (mouseenter)=\"onItemHover(item)\"\n (click)=\"onItemClick(item)\"\n >\n <span class=\"tx-cascade-select__label\">{{ item.label }}</span>\n @if (item.group) {\n <tx-icon class=\"tx-cascade-select__group-icon\" [name]=\"'chevron-right'\" />\n } @else if (item.selected) {\n <tx-icon class=\"tx-cascade-select__check\" [name]=\"'check'\" />\n }\n </div>\n }\n </div>\n } @empty {\n <div class=\"tx-select__empty\" role=\"presentation\" [class]=\"passThrough().empty?.class\" [style]=\"passThrough().empty?.style\">{{ emptyText() }}</div>\n }\n </div>\n </div>\n</ng-template>\n",
667
- styles: [":host{display:block;width:100%}.tx-select__box{display:flex;align-items:center;cursor:pointer}.tx-select__trigger{flex:1 1 auto;min-width:0}.tx-select__value{display:block;min-height:1lh;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-select__dropdown{display:inline-flex}:host(.tx-cascade-select--disabled) .tx-select__box{cursor:not-allowed}:host(.tx-cascade-select--readonly) .tx-select__box{cursor:default}:host([data-styled]){font-family:var(--tx-font-family)}:host([data-styled]) .tx-select__box{box-sizing:border-box;padding-top:var(--tx-field-padding-top, var(--tx-form-field-padding-y));padding-bottom:var(--tx-field-padding-bottom, var(--tx-form-field-padding-y));padding-inline:calc(var(--tx-form-field-padding-x) + var(--tx-field-inset-start, 0px)) calc(var(--tx-form-field-padding-x) + var(--tx-field-inset-end, 0px));border:1px solid var(--tx-form-field-border-color);border-radius:var(--tx-form-field-border-radius);outline:none;background-color:var(--tx-form-field-background);box-shadow:var(--tx-form-field-shadow);color:var(--tx-form-field-color);font-family:var(--tx-font-family);font-size:var(--tx-form-field-font-size);line-height:var(--tx-form-field-line-height);transition:background-color var(--tx-form-field-transition-duration),border-color var(--tx-form-field-transition-duration),box-shadow var(--tx-form-field-transition-duration);--_px: var(--tx-form-field-padding-x);--_py: var(--tx-form-field-padding-y);gap:var(--tx-select-gap);width:100%;padding-inline-end:0}:host([data-styled])[data-variant=filled] .tx-select__box{background-color:var(--tx-form-field-filled-background)}:host([data-styled]):not(.tx-cascade-select--disabled,.tx-cascade-select--readonly) .tx-select__box:not(:has(.tx-select__trigger:focus)):hover{border-color:var(--tx-form-field-hover-border-color)}:host([data-styled])[data-variant=filled]:not(.tx-cascade-select--disabled,.tx-cascade-select--readonly) .tx-select__box:not(:has(.tx-select__trigger:focus)):hover{background-color:var(--tx-form-field-filled-hover-background)}:host([data-styled]) .tx-select__box:has(.tx-select__trigger:focus){border-color:var(--tx-form-field-focus-border-color);outline:var(--tx-form-field-focus-ring-width) var(--tx-form-field-focus-ring-style) var(--tx-form-field-focus-ring-color);outline-offset:var(--tx-form-field-focus-ring-offset);box-shadow:var(--tx-form-field-focus-ring-shadow)}:host([data-styled])[data-variant=filled] .tx-select__box:has(.tx-select__trigger:focus){background-color:var(--tx-form-field-filled-focus-background)}:host([data-styled]).tx-cascade-select--readonly .tx-select__box,:host([data-styled]).tx-cascade-select--readonly .tx-select__box:hover{background-color:var(--tx-form-field-readonly-background);cursor:default;border-color:var(--tx-form-field-border-color)}:host([data-styled]).tx-cascade-select--invalid .tx-select__box{border-color:var(--tx-form-field-invalid-border-color)}:host([data-styled]).tx-cascade-select--invalid .tx-select__box:has(.tx-select__trigger:focus){border-color:var(--tx-form-field-invalid-border-color);box-shadow:var(--tx-form-field-invalid-focus-ring-shadow)}:host([data-styled]).tx-cascade-select--disabled .tx-select__box{background-color:var(--tx-form-field-disabled-background);box-shadow:none;color:var(--tx-form-field-disabled-color);cursor:not-allowed}:host([data-styled])[data-size=small] .tx-select__box{padding-top:var(--tx-field-padding-top, var(--tx-form-field-sm-padding-y));padding-bottom:var(--tx-field-padding-bottom, var(--tx-form-field-sm-padding-y));padding-inline:calc(var(--tx-form-field-sm-padding-x) + var(--tx-field-inset-start, 0px)) calc(var(--tx-form-field-sm-padding-x) + var(--tx-field-inset-end, 0px));font-size:var(--tx-form-field-sm-font-size);line-height:var(--tx-form-field-sm-line-height);--_px: var(--tx-form-field-sm-padding-x);--_py: var(--tx-form-field-sm-padding-y);padding-inline-end:0}:host([data-styled])[data-size=large] .tx-select__box{padding-top:var(--tx-field-padding-top, var(--tx-form-field-lg-padding-y));padding-bottom:var(--tx-field-padding-bottom, var(--tx-form-field-lg-padding-y));padding-inline:calc(var(--tx-form-field-lg-padding-x) + var(--tx-field-inset-start, 0px)) calc(var(--tx-form-field-lg-padding-x) + var(--tx-field-inset-end, 0px));font-size:var(--tx-form-field-lg-font-size);line-height:var(--tx-form-field-lg-line-height);--_px: var(--tx-form-field-lg-padding-x);--_py: var(--tx-form-field-lg-padding-y);padding-inline-end:0}:host([data-styled]) .tx-select__trigger{padding:0;padding-inline-end:var(--_px);border:none;outline:none;background:transparent;color:inherit;font:inherit;line-height:inherit;text-align:left;cursor:inherit}:host([data-styled]) .tx-select__input{cursor:text}:host([data-styled]) .tx-select__input::placeholder{color:var(--tx-form-field-placeholder-color)}:host([data-styled]) .tx-select__input:disabled{cursor:not-allowed}:host([data-styled]).tx-cascade-select--invalid .tx-select__input::placeholder{color:var(--tx-form-field-invalid-placeholder-color)}:host([data-styled]) .tx-select__value--placeholder{color:var(--tx-form-field-placeholder-color)}:host([data-styled])[data-variant=filled] .tx-select__value--placeholder,:host([data-styled])[data-variant=filled] .tx-select__input::placeholder{color:var(--tx-form-field-filled-placeholder-color)}:host([data-styled]).tx-cascade-select--invalid .tx-select__value--placeholder{color:var(--tx-form-field-invalid-placeholder-color)}:host([data-styled]) .tx-select__clear{display:grid;flex:none;place-items:center;width:var(--tx-select-clear-size);height:var(--tx-select-clear-size);padding:0;border:none;border-radius:var(--tx-radius-full);background:none;color:var(--tx-select-dropdown-color);font-size:var(--tx-select-clear-size);cursor:pointer;transition:color var(--tx-motion-duration) var(--tx-motion-easing)}:host([data-styled]) .tx-select__clear:hover{color:var(--tx-form-field-color)}:host([data-styled]) .tx-select__clear:focus-visible{outline:2px solid var(--tx-focus-ring-color);outline-offset:2px}:host([data-styled]) .tx-select__dropdown{flex:none;align-items:center;align-self:stretch;justify-content:center;width:var(--tx-select-dropdown-width);color:var(--tx-select-dropdown-color)}:host([data-styled]) .tx-select__spinner{animation:tx-select-spin .8s linear infinite}@keyframes tx-select-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-select__spinner{animation-duration:2.4s}}.tx-select__panel{box-sizing:border-box;width:100%}.tx-select__panel[data-styled]{overflow:hidden;border:1px solid var(--tx-select-overlay-border-color);border-radius:var(--tx-select-overlay-border-radius);background:var(--tx-select-overlay-background);box-shadow:var(--tx-select-overlay-shadow);color:var(--tx-select-option-color);font-family:var(--tx-font-family);font-size:var(--tx-form-field-font-size);line-height:var(--tx-form-field-line-height)}.tx-select__panel[data-styled] .tx-select__header{padding:var(--tx-select-header-padding)}.tx-select__panel[data-styled] .tx-select__footer{padding:var(--tx-select-footer-padding)}.tx-select__panel[data-styled] .tx-select__filter{display:flex;align-items:center;gap:var(--tx-select-filter-gap);padding:var(--tx-select-filter-padding)}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-field{position:relative;display:flex;flex:1 1 auto;align-items:center;min-width:0}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-input{box-sizing:border-box;padding-top:var(--tx-field-padding-top, var(--tx-form-field-padding-y));padding-bottom:var(--tx-field-padding-bottom, var(--tx-form-field-padding-y));padding-inline:calc(var(--tx-form-field-padding-x) + var(--tx-field-inset-start, 0px)) calc(var(--tx-form-field-padding-x) + var(--tx-field-inset-end, 0px));border:1px solid var(--tx-form-field-border-color);border-radius:var(--tx-form-field-border-radius);outline:none;background-color:var(--tx-form-field-background);box-shadow:var(--tx-form-field-shadow);color:var(--tx-form-field-color);font-family:var(--tx-font-family);font-size:var(--tx-form-field-font-size);line-height:var(--tx-form-field-line-height);transition:background-color var(--tx-form-field-transition-duration),border-color var(--tx-form-field-transition-duration),box-shadow var(--tx-form-field-transition-duration);width:100%;min-width:0;padding-inline-end:calc(var(--tx-form-field-padding-x) + 1em + var(--tx-select-filter-icon-inset))}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-input:hover{border-color:var(--tx-form-field-hover-border-color)}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-input:focus{border-color:var(--tx-form-field-focus-border-color);outline:var(--tx-form-field-focus-ring-width) var(--tx-form-field-focus-ring-style) var(--tx-form-field-focus-ring-color);outline-offset:var(--tx-form-field-focus-ring-offset);box-shadow:var(--tx-form-field-focus-ring-shadow)}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-input::placeholder{color:var(--tx-form-field-placeholder-color)}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-icon{position:absolute;right:var(--tx-select-filter-icon-inset);color:var(--tx-form-field-icon-color);pointer-events:none}.tx-cascade-select__tree{display:flex;align-items:stretch}.tx-cascade-select__column{display:flex;flex-direction:column;overflow-y:auto}.tx-cascade-select__option{display:flex;align-items:center;cursor:pointer}.tx-cascade-select__option--disabled{cursor:default}.tx-cascade-select__label{flex:1 1 auto;min-width:0}.tx-select__panel[data-styled] .tx-cascade-select__column{gap:var(--tx-select-list-gap);box-sizing:border-box;width:var(--tx-cascade-select-column-width);max-height:var(--tx-select-list-max-height);padding:var(--tx-select-list-padding-block) var(--tx-select-list-padding-inline)}.tx-select__panel[data-styled] .tx-cascade-select__column+.tx-select__panel[data-styled] .tx-cascade-select__column{border-inline-start:1px solid var(--tx-cascade-select-column-border-color)}.tx-select__panel[data-styled] .tx-cascade-select__option{gap:var(--tx-space-2);transition:background-color var(--tx-motion-duration) var(--tx-motion-easing),color var(--tx-motion-duration) var(--tx-motion-easing),box-shadow var(--tx-motion-duration) var(--tx-motion-easing);padding:var(--tx-select-option-padding);border-radius:var(--tx-select-option-border-radius);color:var(--tx-select-option-color)}.tx-select__panel[data-styled] .tx-cascade-select__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-select__panel[data-styled] .tx-cascade-select__option--path{background:var(--tx-select-option-focus-background)}.tx-select__panel[data-styled] .tx-cascade-select__option--active{background:var(--tx-select-option-focus-background);color:var(--tx-select-option-focus-color);box-shadow:inset 2px 0 0 var(--tx-select-option-check-color)}.tx-select__panel[data-styled] .tx-cascade-select__option--selected{background:var(--tx-select-option-selected-background);color:var(--tx-select-option-selected-color);font-weight:var(--tx-font-weight-medium)}.tx-select__panel[data-styled] .tx-cascade-select__option--disabled{color:var(--tx-select-option-disabled-color)}.tx-select__panel[data-styled] .tx-cascade-select__group-icon{color:var(--tx-cascade-select-group-icon-color)}.tx-select__panel[data-styled] .tx-cascade-select__check{color:var(--tx-select-option-check-color)}.tx-select__panel[data-styled] .tx-select__empty{padding:var(--tx-select-empty-padding);color:var(--tx-select-empty-color)}.tx-select__panel[data-styled] .tx-cascade-select__column--enter{animation:tx-cascade-column-in calc(var(--tx-motion-duration) * 1.4) cubic-bezier(.2,0,0,1)}@keyframes tx-cascade-column-in{0%{opacity:0;transform:translate(-6px)}}@media(prefers-reduced-motion:reduce){.tx-select__panel[data-styled] .tx-cascade-select__column--enter{animation-duration:1ms}}\n"]
667
+ styles: [":host{display:block;width:100%}.tx-select__box{display:flex;align-items:center;cursor:pointer}.tx-select__trigger{flex:1 1 auto;min-width:0}.tx-select__value{display:block;min-height:1lh;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-select__dropdown{display:inline-flex}:host(.tx-cascade-select--disabled) .tx-select__box{cursor:not-allowed}:host(.tx-cascade-select--readonly) .tx-select__box{cursor:default}:host([data-styled]){font-family:var(--tx-font-family)}:host([data-styled]) .tx-select__box{box-sizing:border-box;padding-top:var(--tx-field-padding-top, var(--tx-form-field-padding-y));padding-bottom:var(--tx-field-padding-bottom, var(--tx-form-field-padding-y));padding-inline:calc(var(--tx-form-field-padding-x) + var(--tx-field-inset-start, 0px)) calc(var(--tx-form-field-padding-x) + var(--tx-field-inset-end, 0px));border:1px solid var(--tx-form-field-border-color);border-start-start-radius:var(--tx-field-radius-start, var(--tx-form-field-border-radius));border-end-start-radius:var(--tx-field-radius-start, var(--tx-form-field-border-radius));border-start-end-radius:var(--tx-field-radius-end, var(--tx-form-field-border-radius));border-end-end-radius:var(--tx-field-radius-end, var(--tx-form-field-border-radius));outline:none;background-color:var(--tx-form-field-background);box-shadow:var(--tx-form-field-shadow);color:var(--tx-form-field-color);font-family:var(--tx-font-family);font-size:var(--tx-form-field-font-size);line-height:var(--tx-form-field-line-height);transition:background-color var(--tx-form-field-transition-duration),border-color var(--tx-form-field-transition-duration),box-shadow var(--tx-form-field-transition-duration);--_px: var(--tx-form-field-padding-x);--_py: var(--tx-form-field-padding-y);gap:var(--tx-select-gap);width:100%;padding-inline-end:0}:host([data-styled])[data-variant=filled] .tx-select__box{background-color:var(--tx-form-field-filled-background)}:host([data-styled]):not(.tx-cascade-select--disabled,.tx-cascade-select--readonly) .tx-select__box:not(:has(.tx-select__trigger:focus)):hover{border-color:var(--tx-form-field-hover-border-color)}:host([data-styled])[data-variant=filled]:not(.tx-cascade-select--disabled,.tx-cascade-select--readonly) .tx-select__box:not(:has(.tx-select__trigger:focus)):hover{background-color:var(--tx-form-field-filled-hover-background)}:host([data-styled]) .tx-select__box:has(.tx-select__trigger:focus){border-color:var(--tx-form-field-focus-border-color);outline:var(--tx-form-field-focus-ring-width) var(--tx-form-field-focus-ring-style) var(--tx-form-field-focus-ring-color);outline-offset:var(--tx-form-field-focus-ring-offset);box-shadow:var(--tx-form-field-focus-ring-shadow)}:host([data-styled])[data-variant=filled] .tx-select__box:has(.tx-select__trigger:focus){background-color:var(--tx-form-field-filled-focus-background)}:host([data-styled]).tx-cascade-select--readonly .tx-select__box,:host([data-styled]).tx-cascade-select--readonly .tx-select__box:hover{background-color:var(--tx-form-field-readonly-background);cursor:default;border-color:var(--tx-form-field-border-color)}:host([data-styled]).tx-cascade-select--invalid .tx-select__box{border-color:var(--tx-form-field-invalid-border-color)}:host([data-styled]).tx-cascade-select--invalid .tx-select__box:has(.tx-select__trigger:focus){border-color:var(--tx-form-field-invalid-border-color);box-shadow:var(--tx-form-field-invalid-focus-ring-shadow)}:host([data-styled]).tx-cascade-select--disabled .tx-select__box{background-color:var(--tx-form-field-disabled-background);box-shadow:none;color:var(--tx-form-field-disabled-color);cursor:not-allowed}:host([data-styled])[data-size=small] .tx-select__box{padding-top:var(--tx-field-padding-top, var(--tx-form-field-sm-padding-y));padding-bottom:var(--tx-field-padding-bottom, var(--tx-form-field-sm-padding-y));padding-inline:calc(var(--tx-form-field-sm-padding-x) + var(--tx-field-inset-start, 0px)) calc(var(--tx-form-field-sm-padding-x) + var(--tx-field-inset-end, 0px));font-size:var(--tx-form-field-sm-font-size);line-height:var(--tx-form-field-sm-line-height);--_px: var(--tx-form-field-sm-padding-x);--_py: var(--tx-form-field-sm-padding-y);padding-inline-end:0}:host([data-styled])[data-size=large] .tx-select__box{padding-top:var(--tx-field-padding-top, var(--tx-form-field-lg-padding-y));padding-bottom:var(--tx-field-padding-bottom, var(--tx-form-field-lg-padding-y));padding-inline:calc(var(--tx-form-field-lg-padding-x) + var(--tx-field-inset-start, 0px)) calc(var(--tx-form-field-lg-padding-x) + var(--tx-field-inset-end, 0px));font-size:var(--tx-form-field-lg-font-size);line-height:var(--tx-form-field-lg-line-height);--_px: var(--tx-form-field-lg-padding-x);--_py: var(--tx-form-field-lg-padding-y);padding-inline-end:0}:host([data-styled]) .tx-select__trigger{padding:0;padding-inline-end:var(--_px);border:none;outline:none;background:transparent;color:inherit;font:inherit;line-height:inherit;text-align:left;cursor:inherit}:host([data-styled]) .tx-select__input{cursor:text}:host([data-styled]) .tx-select__input::placeholder{color:var(--tx-form-field-placeholder-color)}:host([data-styled]) .tx-select__input:disabled{cursor:not-allowed}:host([data-styled]).tx-cascade-select--invalid .tx-select__input::placeholder{color:var(--tx-form-field-invalid-placeholder-color)}:host([data-styled]) .tx-select__value--placeholder{color:var(--tx-form-field-placeholder-color)}:host([data-styled])[data-variant=filled] .tx-select__value--placeholder,:host([data-styled])[data-variant=filled] .tx-select__input::placeholder{color:var(--tx-form-field-filled-placeholder-color)}:host([data-styled]).tx-cascade-select--invalid .tx-select__value--placeholder{color:var(--tx-form-field-invalid-placeholder-color)}:host([data-styled]) .tx-select__clear{display:grid;flex:none;place-items:center;width:var(--tx-select-clear-size);height:var(--tx-select-clear-size);padding:0;border:none;border-radius:var(--tx-radius-full);background:none;color:var(--tx-select-dropdown-color);font-size:var(--tx-select-clear-size);cursor:pointer;transition:color var(--tx-motion-duration) var(--tx-motion-easing)}:host([data-styled]) .tx-select__clear:hover{color:var(--tx-form-field-color)}:host([data-styled]) .tx-select__clear:focus-visible{outline:2px solid var(--tx-focus-ring-color);outline-offset:2px}:host([data-styled]) .tx-select__dropdown{flex:none;align-items:center;align-self:stretch;justify-content:center;width:var(--tx-select-dropdown-width);color:var(--tx-select-dropdown-color)}:host([data-styled]) .tx-select__spinner{animation:tx-select-spin .8s linear infinite}@keyframes tx-select-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-select__spinner{animation-duration:2.4s}}.tx-select__panel{box-sizing:border-box;width:100%}.tx-select__panel[data-styled]{overflow:hidden;border:1px solid var(--tx-select-overlay-border-color);border-radius:var(--tx-select-overlay-border-radius);background:var(--tx-select-overlay-background);box-shadow:var(--tx-select-overlay-shadow);color:var(--tx-select-option-color);font-family:var(--tx-font-family);font-size:var(--tx-form-field-font-size);line-height:var(--tx-form-field-line-height)}.tx-select__panel[data-styled] .tx-select__header{padding:var(--tx-select-header-padding)}.tx-select__panel[data-styled] .tx-select__footer{padding:var(--tx-select-footer-padding)}.tx-select__panel[data-styled] .tx-select__filter{display:flex;align-items:center;gap:var(--tx-select-filter-gap);padding:var(--tx-select-filter-padding)}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-field{position:relative;display:flex;flex:1 1 auto;align-items:center;min-width:0}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-input{box-sizing:border-box;padding-top:var(--tx-field-padding-top, var(--tx-form-field-padding-y));padding-bottom:var(--tx-field-padding-bottom, var(--tx-form-field-padding-y));padding-inline:calc(var(--tx-form-field-padding-x) + var(--tx-field-inset-start, 0px)) calc(var(--tx-form-field-padding-x) + var(--tx-field-inset-end, 0px));border:1px solid var(--tx-form-field-border-color);border-start-start-radius:var(--tx-field-radius-start, var(--tx-form-field-border-radius));border-end-start-radius:var(--tx-field-radius-start, var(--tx-form-field-border-radius));border-start-end-radius:var(--tx-field-radius-end, var(--tx-form-field-border-radius));border-end-end-radius:var(--tx-field-radius-end, var(--tx-form-field-border-radius));outline:none;background-color:var(--tx-form-field-background);box-shadow:var(--tx-form-field-shadow);color:var(--tx-form-field-color);font-family:var(--tx-font-family);font-size:var(--tx-form-field-font-size);line-height:var(--tx-form-field-line-height);transition:background-color var(--tx-form-field-transition-duration),border-color var(--tx-form-field-transition-duration),box-shadow var(--tx-form-field-transition-duration);width:100%;min-width:0;padding-inline-end:calc(var(--tx-form-field-padding-x) + 1em + var(--tx-select-filter-icon-inset))}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-input:hover{border-color:var(--tx-form-field-hover-border-color)}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-input:focus{border-color:var(--tx-form-field-focus-border-color);outline:var(--tx-form-field-focus-ring-width) var(--tx-form-field-focus-ring-style) var(--tx-form-field-focus-ring-color);outline-offset:var(--tx-form-field-focus-ring-offset);box-shadow:var(--tx-form-field-focus-ring-shadow)}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-input::placeholder{color:var(--tx-form-field-placeholder-color)}.tx-select__panel[data-styled] .tx-select__filter .tx-select__filter-icon{position:absolute;right:var(--tx-select-filter-icon-inset);color:var(--tx-form-field-icon-color);pointer-events:none}.tx-cascade-select__tree{display:flex;align-items:stretch}.tx-cascade-select__column{display:flex;flex-direction:column;overflow-y:auto}.tx-cascade-select__option{display:flex;align-items:center;cursor:pointer}.tx-cascade-select__option--disabled{cursor:default}.tx-cascade-select__label{flex:1 1 auto;min-width:0}.tx-select__panel[data-styled] .tx-cascade-select__column{gap:var(--tx-select-list-gap);box-sizing:border-box;width:var(--tx-cascade-select-column-width);max-height:var(--tx-select-list-max-height);padding:var(--tx-select-list-padding-block) var(--tx-select-list-padding-inline)}.tx-select__panel[data-styled] .tx-cascade-select__column+.tx-select__panel[data-styled] .tx-cascade-select__column{border-inline-start:1px solid var(--tx-cascade-select-column-border-color)}.tx-select__panel[data-styled] .tx-cascade-select__option{gap:var(--tx-space-2);transition:background-color var(--tx-motion-duration) var(--tx-motion-easing),color var(--tx-motion-duration) var(--tx-motion-easing),box-shadow var(--tx-motion-duration) var(--tx-motion-easing);padding:var(--tx-select-option-padding);border-radius:var(--tx-select-option-border-radius);color:var(--tx-select-option-color)}.tx-select__panel[data-styled] .tx-cascade-select__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-select__panel[data-styled] .tx-cascade-select__option--path{background:var(--tx-select-option-focus-background)}.tx-select__panel[data-styled] .tx-cascade-select__option--active{background:var(--tx-select-option-focus-background);color:var(--tx-select-option-focus-color);box-shadow:inset 2px 0 0 var(--tx-select-option-check-color)}.tx-select__panel[data-styled] .tx-cascade-select__option--selected{background:var(--tx-select-option-selected-background);color:var(--tx-select-option-selected-color);font-weight:var(--tx-font-weight-medium)}.tx-select__panel[data-styled] .tx-cascade-select__option--disabled{color:var(--tx-select-option-disabled-color)}.tx-select__panel[data-styled] .tx-cascade-select__group-icon{color:var(--tx-cascade-select-group-icon-color)}.tx-select__panel[data-styled] .tx-cascade-select__check{color:var(--tx-select-option-check-color)}.tx-select__panel[data-styled] .tx-select__empty{padding:var(--tx-select-empty-padding);color:var(--tx-select-empty-color)}.tx-select__panel[data-styled] .tx-cascade-select__column--enter{animation:tx-cascade-column-in calc(var(--tx-motion-duration) * 1.4) cubic-bezier(.2,0,0,1)}@keyframes tx-cascade-column-in{0%{opacity:0;transform:translate(-6px)}}@media(prefers-reduced-motion:reduce){.tx-select__panel[data-styled] .tx-cascade-select__column--enter{animation-duration:1ms}}\n"]
668
668
  }]
669
669
  }],
670
670
  propDecorators: {