@tectra-ng/ui 0.1.2 → 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.
- package/README.md +36 -19
- package/accordion/README.md +61 -0
- package/analog-clock/README.md +31 -0
- package/breadcrumb/README.md +57 -0
- package/countdown/README.md +45 -0
- package/datepicker/README.md +109 -0
- package/export/README.md +79 -0
- package/export-font/OFL.txt +93 -0
- package/export-font/README.md +7 -0
- package/fesm2022/tectra-ng-ui-accordion.mjs +980 -0
- package/fesm2022/tectra-ng-ui-accordion.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-analog-clock.mjs +386 -0
- package/fesm2022/tectra-ng-ui-analog-clock.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-autocomplete.mjs +2 -2
- package/fesm2022/tectra-ng-ui-autocomplete.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-breadcrumb.mjs +382 -0
- package/fesm2022/tectra-ng-ui-breadcrumb.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-cascade-select.mjs +2 -2
- package/fesm2022/tectra-ng-ui-cascade-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-chips-input.mjs +2 -2
- package/fesm2022/tectra-ng-ui-chips-input.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-color-picker.mjs +2 -2
- package/fesm2022/tectra-ng-ui-color-picker.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-countdown.mjs +513 -0
- package/fesm2022/tectra-ng-ui-countdown.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-datepicker.mjs +2640 -0
- package/fesm2022/tectra-ng-ui-datepicker.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-export-font.mjs +7 -0
- package/fesm2022/tectra-ng-ui-export-font.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-export.mjs +2574 -0
- package/fesm2022/tectra-ng-ui-export.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-field.mjs +1 -1
- package/fesm2022/tectra-ng-ui-field.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-file-upload.mjs +1452 -0
- package/fesm2022/tectra-ng-ui-file-upload.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-input-group.mjs +2 -2
- package/fesm2022/tectra-ng-ui-input-group.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-input.mjs +2 -2
- package/fesm2022/tectra-ng-ui-input.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-label.mjs +4 -4
- package/fesm2022/tectra-ng-ui-label.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-listbox.mjs +2 -2
- package/fesm2022/tectra-ng-ui-listbox.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-menubar.mjs +742 -0
- package/fesm2022/tectra-ng-ui-menubar.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-month-calendar.mjs +601 -0
- package/fesm2022/tectra-ng-ui-month-calendar.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-multiselect.mjs +2 -2
- package/fesm2022/tectra-ng-ui-multiselect.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-panel-menu.mjs +610 -0
- package/fesm2022/tectra-ng-ui-panel-menu.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-scroll-panel.mjs +319 -0
- package/fesm2022/tectra-ng-ui-scroll-panel.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-select.mjs +2 -2
- package/fesm2022/tectra-ng-ui-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-sparkline.mjs +240 -0
- package/fesm2022/tectra-ng-ui-sparkline.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-splitter.mjs +750 -0
- package/fesm2022/tectra-ng-ui-splitter.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-stat-tiles.mjs +661 -0
- package/fesm2022/tectra-ng-ui-stat-tiles.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-stepper.mjs +1166 -0
- package/fesm2022/tectra-ng-ui-stepper.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-table.mjs +195 -71
- package/fesm2022/tectra-ng-ui-table.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tabs.mjs +1218 -0
- package/fesm2022/tectra-ng-ui-tabs.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-textarea.mjs +4 -1
- package/fesm2022/tectra-ng-ui-textarea.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-timeline.mjs +407 -0
- package/fesm2022/tectra-ng-ui-timeline.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-toolbar.mjs +348 -0
- package/fesm2022/tectra-ng-ui-toolbar.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-tree-select.mjs +2 -2
- package/fesm2022/tectra-ng-ui-tree-select.mjs.map +1 -1
- package/fesm2022/tectra-ng-ui-tree-table.mjs +80 -2
- package/fesm2022/tectra-ng-ui-tree-table.mjs.map +1 -1
- package/field/README.md +1 -1
- package/file-upload/README.md +85 -0
- package/menubar/README.md +51 -0
- package/month-calendar/README.md +46 -0
- package/package.json +80 -4
- package/panel-menu/README.md +45 -0
- package/scroll-panel/README.md +35 -0
- package/sparkline/README.md +27 -0
- package/splitter/README.md +62 -0
- package/stat-tiles/README.md +53 -0
- package/stepper/README.md +66 -0
- package/table/README.md +1 -1
- package/tabs/README.md +69 -0
- package/timeline/README.md +42 -0
- package/toolbar/README.md +35 -0
- package/types/tectra-ng-ui-accordion.d.ts +304 -0
- package/types/tectra-ng-ui-accordion.d.ts.map +1 -0
- package/types/tectra-ng-ui-analog-clock.d.ts +127 -0
- package/types/tectra-ng-ui-analog-clock.d.ts.map +1 -0
- package/types/tectra-ng-ui-breadcrumb.d.ts +157 -0
- package/types/tectra-ng-ui-breadcrumb.d.ts.map +1 -0
- package/types/tectra-ng-ui-countdown.d.ts +150 -0
- package/types/tectra-ng-ui-countdown.d.ts.map +1 -0
- package/types/tectra-ng-ui-datepicker.d.ts +801 -0
- package/types/tectra-ng-ui-datepicker.d.ts.map +1 -0
- package/types/tectra-ng-ui-export-font.d.ts +5 -0
- package/types/tectra-ng-ui-export-font.d.ts.map +1 -0
- package/types/tectra-ng-ui-export.d.ts +427 -0
- package/types/tectra-ng-ui-export.d.ts.map +1 -0
- package/types/tectra-ng-ui-file-upload.d.ts +527 -0
- package/types/tectra-ng-ui-file-upload.d.ts.map +1 -0
- package/types/tectra-ng-ui-menubar.d.ts +201 -0
- package/types/tectra-ng-ui-menubar.d.ts.map +1 -0
- package/types/tectra-ng-ui-month-calendar.d.ts +287 -0
- package/types/tectra-ng-ui-month-calendar.d.ts.map +1 -0
- package/types/tectra-ng-ui-panel-menu.d.ts +244 -0
- package/types/tectra-ng-ui-panel-menu.d.ts.map +1 -0
- package/types/tectra-ng-ui-scroll-panel.d.ts +94 -0
- package/types/tectra-ng-ui-scroll-panel.d.ts.map +1 -0
- package/types/tectra-ng-ui-sparkline.d.ts +80 -0
- package/types/tectra-ng-ui-sparkline.d.ts.map +1 -0
- package/types/tectra-ng-ui-splitter.d.ts +226 -0
- package/types/tectra-ng-ui-splitter.d.ts.map +1 -0
- package/types/tectra-ng-ui-stat-tiles.d.ts +287 -0
- package/types/tectra-ng-ui-stat-tiles.d.ts.map +1 -0
- package/types/tectra-ng-ui-stepper.d.ts +446 -0
- package/types/tectra-ng-ui-stepper.d.ts.map +1 -0
- package/types/tectra-ng-ui-table.d.ts +2 -4
- package/types/tectra-ng-ui-table.d.ts.map +1 -1
- package/types/tectra-ng-ui-tabs.d.ts +420 -0
- package/types/tectra-ng-ui-tabs.d.ts.map +1 -0
- package/types/tectra-ng-ui-textarea.d.ts +1 -0
- package/types/tectra-ng-ui-textarea.d.ts.map +1 -1
- package/types/tectra-ng-ui-timeline.d.ts +129 -0
- package/types/tectra-ng-ui-timeline.d.ts.map +1 -0
- package/types/tectra-ng-ui-toolbar.d.ts +85 -0
- package/types/tectra-ng-ui-toolbar.d.ts.map +1 -0
- package/types/tectra-ng-ui-tree-table.d.ts.map +1 -1
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, Directive, computed, contentChild, input } from "@angular/core";
|
|
3
|
+
import { injectPassThrough, injectUnstyled } from "@tectra-ng/core/config";
|
|
4
|
+
import { optionalBoolean } from "@tectra-ng/core/utils";
|
|
5
|
+
import { toStyleObject } from "@tectra-ng/themes";
|
|
6
|
+
var TxToolbarStart = class TxToolbarStart {
|
|
7
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
8
|
+
minVersion: "12.0.0",
|
|
9
|
+
version: "22.2.3",
|
|
10
|
+
ngImport: i0,
|
|
11
|
+
type: TxToolbarStart,
|
|
12
|
+
deps: [],
|
|
13
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
14
|
+
});
|
|
15
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
16
|
+
minVersion: "14.0.0",
|
|
17
|
+
version: "22.2.3",
|
|
18
|
+
type: TxToolbarStart,
|
|
19
|
+
isStandalone: true,
|
|
20
|
+
selector: "[txToolbarStart]",
|
|
21
|
+
ngImport: i0
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
25
|
+
minVersion: "12.0.0",
|
|
26
|
+
version: "22.2.3",
|
|
27
|
+
ngImport: i0,
|
|
28
|
+
type: TxToolbarStart,
|
|
29
|
+
decorators: [{
|
|
30
|
+
type: Directive,
|
|
31
|
+
args: [{ selector: "[txToolbarStart]" }]
|
|
32
|
+
}]
|
|
33
|
+
});
|
|
34
|
+
var TxToolbarCenter = class TxToolbarCenter {
|
|
35
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
36
|
+
minVersion: "12.0.0",
|
|
37
|
+
version: "22.2.3",
|
|
38
|
+
ngImport: i0,
|
|
39
|
+
type: TxToolbarCenter,
|
|
40
|
+
deps: [],
|
|
41
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
42
|
+
});
|
|
43
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
44
|
+
minVersion: "14.0.0",
|
|
45
|
+
version: "22.2.3",
|
|
46
|
+
type: TxToolbarCenter,
|
|
47
|
+
isStandalone: true,
|
|
48
|
+
selector: "[txToolbarCenter]",
|
|
49
|
+
ngImport: i0
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
53
|
+
minVersion: "12.0.0",
|
|
54
|
+
version: "22.2.3",
|
|
55
|
+
ngImport: i0,
|
|
56
|
+
type: TxToolbarCenter,
|
|
57
|
+
decorators: [{
|
|
58
|
+
type: Directive,
|
|
59
|
+
args: [{ selector: "[txToolbarCenter]" }]
|
|
60
|
+
}]
|
|
61
|
+
});
|
|
62
|
+
var TxToolbarEnd = class TxToolbarEnd {
|
|
63
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
64
|
+
minVersion: "12.0.0",
|
|
65
|
+
version: "22.2.3",
|
|
66
|
+
ngImport: i0,
|
|
67
|
+
type: TxToolbarEnd,
|
|
68
|
+
deps: [],
|
|
69
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
70
|
+
});
|
|
71
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
72
|
+
minVersion: "14.0.0",
|
|
73
|
+
version: "22.2.3",
|
|
74
|
+
type: TxToolbarEnd,
|
|
75
|
+
isStandalone: true,
|
|
76
|
+
selector: "[txToolbarEnd]",
|
|
77
|
+
ngImport: i0
|
|
78
|
+
});
|
|
79
|
+
};
|
|
80
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
81
|
+
minVersion: "12.0.0",
|
|
82
|
+
version: "22.2.3",
|
|
83
|
+
ngImport: i0,
|
|
84
|
+
type: TxToolbarEnd,
|
|
85
|
+
decorators: [{
|
|
86
|
+
type: Directive,
|
|
87
|
+
args: [{ selector: "[txToolbarEnd]" }]
|
|
88
|
+
}]
|
|
89
|
+
});
|
|
90
|
+
var TxToolbar = class TxToolbar {
|
|
91
|
+
ariaLabel = input(void 0, ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
92
|
+
ariaLabelledBy = input(void 0, ...ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
|
|
93
|
+
orientation = input("horizontal", ...ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []);
|
|
94
|
+
dt = input(void 0, ...ngDevMode ? [{ debugName: "dt" }] : /* istanbul ignore next */ []);
|
|
95
|
+
pt = input(void 0, ...ngDevMode ? [{ debugName: "pt" }] : /* istanbul ignore next */ []);
|
|
96
|
+
ptOptions = input(void 0, ...ngDevMode ? [{ debugName: "ptOptions" }] : /* istanbul ignore next */ []);
|
|
97
|
+
unstyled = input(void 0, {
|
|
98
|
+
...ngDevMode ? { debugName: "unstyled" } : /* istanbul ignore next */ {},
|
|
99
|
+
transform: optionalBoolean
|
|
100
|
+
});
|
|
101
|
+
isUnstyled = injectUnstyled(this.unstyled);
|
|
102
|
+
passThrough = injectPassThrough("toolbar", this, this.pt, this.ptOptions);
|
|
103
|
+
start = contentChild(TxToolbarStart, ...ngDevMode ? [{ debugName: "start" }] : /* istanbul ignore next */ []);
|
|
104
|
+
center = contentChild(TxToolbarCenter, ...ngDevMode ? [{ debugName: "center" }] : /* istanbul ignore next */ []);
|
|
105
|
+
end = contentChild(TxToolbarEnd, ...ngDevMode ? [{ debugName: "end" }] : /* istanbul ignore next */ []);
|
|
106
|
+
hostStyle = computed(() => ({
|
|
107
|
+
...toStyleObject(this.dt(), "--tx-toolbar"),
|
|
108
|
+
...this.passThrough().root?.style
|
|
109
|
+
}), ...ngDevMode ? [{ debugName: "hostStyle" }] : /* istanbul ignore next */ []);
|
|
110
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
111
|
+
minVersion: "12.0.0",
|
|
112
|
+
version: "22.2.3",
|
|
113
|
+
ngImport: i0,
|
|
114
|
+
type: TxToolbar,
|
|
115
|
+
deps: [],
|
|
116
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
117
|
+
});
|
|
118
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
119
|
+
minVersion: "17.0.0",
|
|
120
|
+
version: "22.2.3",
|
|
121
|
+
type: TxToolbar,
|
|
122
|
+
isStandalone: true,
|
|
123
|
+
selector: "tx-toolbar",
|
|
124
|
+
inputs: {
|
|
125
|
+
ariaLabel: {
|
|
126
|
+
classPropertyName: "ariaLabel",
|
|
127
|
+
publicName: "ariaLabel",
|
|
128
|
+
isSignal: true,
|
|
129
|
+
isRequired: false,
|
|
130
|
+
transformFunction: null
|
|
131
|
+
},
|
|
132
|
+
ariaLabelledBy: {
|
|
133
|
+
classPropertyName: "ariaLabelledBy",
|
|
134
|
+
publicName: "ariaLabelledBy",
|
|
135
|
+
isSignal: true,
|
|
136
|
+
isRequired: false,
|
|
137
|
+
transformFunction: null
|
|
138
|
+
},
|
|
139
|
+
orientation: {
|
|
140
|
+
classPropertyName: "orientation",
|
|
141
|
+
publicName: "orientation",
|
|
142
|
+
isSignal: true,
|
|
143
|
+
isRequired: false,
|
|
144
|
+
transformFunction: null
|
|
145
|
+
},
|
|
146
|
+
dt: {
|
|
147
|
+
classPropertyName: "dt",
|
|
148
|
+
publicName: "dt",
|
|
149
|
+
isSignal: true,
|
|
150
|
+
isRequired: false,
|
|
151
|
+
transformFunction: null
|
|
152
|
+
},
|
|
153
|
+
pt: {
|
|
154
|
+
classPropertyName: "pt",
|
|
155
|
+
publicName: "pt",
|
|
156
|
+
isSignal: true,
|
|
157
|
+
isRequired: false,
|
|
158
|
+
transformFunction: null
|
|
159
|
+
},
|
|
160
|
+
ptOptions: {
|
|
161
|
+
classPropertyName: "ptOptions",
|
|
162
|
+
publicName: "ptOptions",
|
|
163
|
+
isSignal: true,
|
|
164
|
+
isRequired: false,
|
|
165
|
+
transformFunction: null
|
|
166
|
+
},
|
|
167
|
+
unstyled: {
|
|
168
|
+
classPropertyName: "unstyled",
|
|
169
|
+
publicName: "unstyled",
|
|
170
|
+
isSignal: true,
|
|
171
|
+
isRequired: false,
|
|
172
|
+
transformFunction: null
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
host: {
|
|
176
|
+
attributes: { "role": "toolbar" },
|
|
177
|
+
properties: {
|
|
178
|
+
"class": "passThrough().root?.class",
|
|
179
|
+
"style": "hostStyle()",
|
|
180
|
+
"attr.data-styled": "!isUnstyled() || null",
|
|
181
|
+
"attr.aria-label": "ariaLabel() ?? null",
|
|
182
|
+
"attr.aria-labelledby": "ariaLabelledBy() ?? null",
|
|
183
|
+
"attr.aria-orientation": "orientation()"
|
|
184
|
+
},
|
|
185
|
+
classAttribute: "tx-toolbar"
|
|
186
|
+
},
|
|
187
|
+
queries: [
|
|
188
|
+
{
|
|
189
|
+
propertyName: "start",
|
|
190
|
+
first: true,
|
|
191
|
+
predicate: TxToolbarStart,
|
|
192
|
+
descendants: true,
|
|
193
|
+
isSignal: true
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
propertyName: "center",
|
|
197
|
+
first: true,
|
|
198
|
+
predicate: TxToolbarCenter,
|
|
199
|
+
descendants: true,
|
|
200
|
+
isSignal: true
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
propertyName: "end",
|
|
204
|
+
first: true,
|
|
205
|
+
predicate: TxToolbarEnd,
|
|
206
|
+
descendants: true,
|
|
207
|
+
isSignal: true
|
|
208
|
+
}
|
|
209
|
+
],
|
|
210
|
+
ngImport: i0,
|
|
211
|
+
template: `
|
|
212
|
+
<ng-content />
|
|
213
|
+
@if (start()) {
|
|
214
|
+
<div class="tx-toolbar__group tx-toolbar__start" [class]="passThrough().start?.class" [style]="passThrough().start?.style">
|
|
215
|
+
<ng-content select="[txToolbarStart]" />
|
|
216
|
+
</div>
|
|
217
|
+
}
|
|
218
|
+
@if (center()) {
|
|
219
|
+
<div class="tx-toolbar__group tx-toolbar__center" [class]="passThrough().center?.class" [style]="passThrough().center?.style">
|
|
220
|
+
<ng-content select="[txToolbarCenter]" />
|
|
221
|
+
</div>
|
|
222
|
+
}
|
|
223
|
+
@if (end()) {
|
|
224
|
+
<div class="tx-toolbar__group tx-toolbar__end" [class]="passThrough().end?.class" [style]="passThrough().end?.style">
|
|
225
|
+
<ng-content select="[txToolbarEnd]" />
|
|
226
|
+
</div>
|
|
227
|
+
}
|
|
228
|
+
`,
|
|
229
|
+
isInline: true,
|
|
230
|
+
styles: [":host{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between}:host([aria-orientation=vertical]){flex-direction:column;align-items:stretch}.tx-toolbar__group{display:flex;flex-wrap:wrap;align-items:center}:host([aria-orientation=vertical]) .tx-toolbar__group{flex-direction:column;align-items:stretch}:host([data-styled]){gap:var(--tx-toolbar-gap);padding:var(--tx-toolbar-padding);border:1px solid var(--tx-toolbar-border-color);border-radius:var(--tx-toolbar-border-radius);background:var(--tx-toolbar-background);color:var(--tx-toolbar-color);font-family:var(--tx-font-family)}:host([data-styled]) .tx-toolbar__group{gap:var(--tx-toolbar-group-gap)}\n"],
|
|
231
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
232
|
+
});
|
|
233
|
+
};
|
|
234
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
235
|
+
minVersion: "12.0.0",
|
|
236
|
+
version: "22.2.3",
|
|
237
|
+
ngImport: i0,
|
|
238
|
+
type: TxToolbar,
|
|
239
|
+
decorators: [{
|
|
240
|
+
type: Component,
|
|
241
|
+
args: [{
|
|
242
|
+
selector: "tx-toolbar",
|
|
243
|
+
template: `
|
|
244
|
+
<ng-content />
|
|
245
|
+
@if (start()) {
|
|
246
|
+
<div class="tx-toolbar__group tx-toolbar__start" [class]="passThrough().start?.class" [style]="passThrough().start?.style">
|
|
247
|
+
<ng-content select="[txToolbarStart]" />
|
|
248
|
+
</div>
|
|
249
|
+
}
|
|
250
|
+
@if (center()) {
|
|
251
|
+
<div class="tx-toolbar__group tx-toolbar__center" [class]="passThrough().center?.class" [style]="passThrough().center?.style">
|
|
252
|
+
<ng-content select="[txToolbarCenter]" />
|
|
253
|
+
</div>
|
|
254
|
+
}
|
|
255
|
+
@if (end()) {
|
|
256
|
+
<div class="tx-toolbar__group tx-toolbar__end" [class]="passThrough().end?.class" [style]="passThrough().end?.style">
|
|
257
|
+
<ng-content select="[txToolbarEnd]" />
|
|
258
|
+
</div>
|
|
259
|
+
}
|
|
260
|
+
`,
|
|
261
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
262
|
+
host: {
|
|
263
|
+
class: "tx-toolbar",
|
|
264
|
+
role: "toolbar",
|
|
265
|
+
"[class]": "passThrough().root?.class",
|
|
266
|
+
"[style]": "hostStyle()",
|
|
267
|
+
"[attr.data-styled]": "!isUnstyled() || null",
|
|
268
|
+
"[attr.aria-label]": "ariaLabel() ?? null",
|
|
269
|
+
"[attr.aria-labelledby]": "ariaLabelledBy() ?? null",
|
|
270
|
+
"[attr.aria-orientation]": "orientation()"
|
|
271
|
+
},
|
|
272
|
+
styles: [":host{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between}:host([aria-orientation=vertical]){flex-direction:column;align-items:stretch}.tx-toolbar__group{display:flex;flex-wrap:wrap;align-items:center}:host([aria-orientation=vertical]) .tx-toolbar__group{flex-direction:column;align-items:stretch}:host([data-styled]){gap:var(--tx-toolbar-gap);padding:var(--tx-toolbar-padding);border:1px solid var(--tx-toolbar-border-color);border-radius:var(--tx-toolbar-border-radius);background:var(--tx-toolbar-background);color:var(--tx-toolbar-color);font-family:var(--tx-font-family)}:host([data-styled]) .tx-toolbar__group{gap:var(--tx-toolbar-group-gap)}\n"]
|
|
273
|
+
}]
|
|
274
|
+
}],
|
|
275
|
+
propDecorators: {
|
|
276
|
+
ariaLabel: [{
|
|
277
|
+
type: i0.Input,
|
|
278
|
+
args: [{
|
|
279
|
+
isSignal: true,
|
|
280
|
+
alias: "ariaLabel",
|
|
281
|
+
required: false
|
|
282
|
+
}]
|
|
283
|
+
}],
|
|
284
|
+
ariaLabelledBy: [{
|
|
285
|
+
type: i0.Input,
|
|
286
|
+
args: [{
|
|
287
|
+
isSignal: true,
|
|
288
|
+
alias: "ariaLabelledBy",
|
|
289
|
+
required: false
|
|
290
|
+
}]
|
|
291
|
+
}],
|
|
292
|
+
orientation: [{
|
|
293
|
+
type: i0.Input,
|
|
294
|
+
args: [{
|
|
295
|
+
isSignal: true,
|
|
296
|
+
alias: "orientation",
|
|
297
|
+
required: false
|
|
298
|
+
}]
|
|
299
|
+
}],
|
|
300
|
+
dt: [{
|
|
301
|
+
type: i0.Input,
|
|
302
|
+
args: [{
|
|
303
|
+
isSignal: true,
|
|
304
|
+
alias: "dt",
|
|
305
|
+
required: false
|
|
306
|
+
}]
|
|
307
|
+
}],
|
|
308
|
+
pt: [{
|
|
309
|
+
type: i0.Input,
|
|
310
|
+
args: [{
|
|
311
|
+
isSignal: true,
|
|
312
|
+
alias: "pt",
|
|
313
|
+
required: false
|
|
314
|
+
}]
|
|
315
|
+
}],
|
|
316
|
+
ptOptions: [{
|
|
317
|
+
type: i0.Input,
|
|
318
|
+
args: [{
|
|
319
|
+
isSignal: true,
|
|
320
|
+
alias: "ptOptions",
|
|
321
|
+
required: false
|
|
322
|
+
}]
|
|
323
|
+
}],
|
|
324
|
+
unstyled: [{
|
|
325
|
+
type: i0.Input,
|
|
326
|
+
args: [{
|
|
327
|
+
isSignal: true,
|
|
328
|
+
alias: "unstyled",
|
|
329
|
+
required: false
|
|
330
|
+
}]
|
|
331
|
+
}],
|
|
332
|
+
start: [{
|
|
333
|
+
type: i0.ContentChild,
|
|
334
|
+
args: [i0.forwardRef(() => TxToolbarStart), { isSignal: true }]
|
|
335
|
+
}],
|
|
336
|
+
center: [{
|
|
337
|
+
type: i0.ContentChild,
|
|
338
|
+
args: [i0.forwardRef(() => TxToolbarCenter), { isSignal: true }]
|
|
339
|
+
}],
|
|
340
|
+
end: [{
|
|
341
|
+
type: i0.ContentChild,
|
|
342
|
+
args: [i0.forwardRef(() => TxToolbarEnd), { isSignal: true }]
|
|
343
|
+
}]
|
|
344
|
+
}
|
|
345
|
+
});
|
|
346
|
+
export { TxToolbar, TxToolbarCenter, TxToolbarEnd, TxToolbarStart };
|
|
347
|
+
|
|
348
|
+
//# sourceMappingURL=tectra-ng-ui-toolbar.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tectra-ng-ui-toolbar.mjs","names":[],"sources":["../../../../packages/ui/toolbar/src/toolbar.component.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Directive, computed, contentChild, input } from '@angular/core';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } from '@tectra-ng/core/config';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TectraDeepPartial, TectraToolbarTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxToolbarOrientation, TxToolbarPart } from './toolbar.types';\n\n@Directive({ selector: '[txToolbarStart]' })\nexport class TxToolbarStart {}\n\n@Directive({ selector: '[txToolbarCenter]' })\nexport class TxToolbarCenter {}\n\n@Directive({ selector: '[txToolbarEnd]' })\nexport class TxToolbarEnd {}\n\n@Component({\n selector: 'tx-toolbar',\n template: `\n <ng-content />\n @if (start()) {\n <div class=\"tx-toolbar__group tx-toolbar__start\" [class]=\"passThrough().start?.class\" [style]=\"passThrough().start?.style\">\n <ng-content select=\"[txToolbarStart]\" />\n </div>\n }\n @if (center()) {\n <div class=\"tx-toolbar__group tx-toolbar__center\" [class]=\"passThrough().center?.class\" [style]=\"passThrough().center?.style\">\n <ng-content select=\"[txToolbarCenter]\" />\n </div>\n }\n @if (end()) {\n <div class=\"tx-toolbar__group tx-toolbar__end\" [class]=\"passThrough().end?.class\" [style]=\"passThrough().end?.style\">\n <ng-content select=\"[txToolbarEnd]\" />\n </div>\n }\n `,\n styleUrl: './toolbar.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-toolbar',\n role: 'toolbar',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.aria-label]': 'ariaLabel() ?? null',\n '[attr.aria-labelledby]': 'ariaLabelledBy() ?? null',\n '[attr.aria-orientation]': 'orientation()',\n },\n})\nexport class TxToolbar {\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly ariaLabelledBy = input<string | undefined>(undefined);\n readonly orientation = input<TxToolbarOrientation>('horizontal');\n readonly dt = input<TectraDeepPartial<TectraToolbarTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxToolbarPart, TxToolbar> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('toolbar', this, this.pt, this.ptOptions);\n protected readonly start = contentChild(TxToolbarStart);\n protected readonly center = contentChild(TxToolbarCenter);\n protected readonly end = contentChild(TxToolbarEnd);\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-toolbar'), ...this.passThrough().root?.style }));\n}\n"],"mappings":"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"}
|
|
@@ -623,7 +623,7 @@ var TxTreeSelect = class TxTreeSelect extends TxFormControlBase {
|
|
|
623
623
|
usesInheritance: true,
|
|
624
624
|
ngImport: i0,
|
|
625
625
|
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]=\"filter() ? null : activeId()\"\n [attr.aria-invalid]=\"isInvalid() || null\"\n [attr.aria-readonly]=\"readonly() || null\"\n [disabled]=\"disabled()\"\n (keydown)=\"onKeydown($event)\"\n >\n @if (!selectedNodes().length) {\n <span class=\"tx-select__value tx-select__value--placeholder\" [class]=\"passThrough().value?.class\" [style]=\"passThrough().value?.style\">{{\n placeholder()\n }}</span>\n } @else if (multiple() && display() === 'chip') {\n <span class=\"tx-select__value tx-select__chips\" [class]=\"passThrough().value?.class\" [style]=\"passThrough().value?.style\">\n @for (node of selectedNodes(); track node.key) {\n <span class=\"tx-select__chip\" [class]=\"passThrough().chip?.class\" [style]=\"passThrough().chip?.style\">\n <span class=\"tx-select__chip-label\">{{ node.label }}</span>\n @if (!disabled() && !readonly()) {\n <span class=\"tx-select__chip-remove\" aria-hidden=\"true\" (click)=\"removeNode(node, $event)\">\n <tx-icon [name]=\"'times'\" />\n </span>\n }\n </span>\n }\n </span>\n } @else {\n <span class=\"tx-select__value\" [class]=\"passThrough().value?.class\" [style]=\"passThrough().value?.style\">{{ commaText() }}</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 [cdkConnectedOverlayWidth]=\"panelWidth()\"\n (overlayOutsideClick)=\"onOutsideClick($event)\"\n (attach)=\"onAttach()\"\n (positionChange)=\"onPositionChange($event)\"\n (detach)=\"close()\"\n>\n <div\n #panel\n class=\"tx-select__panel\"\n [attr.data-styled]=\"!isUnstyled() || null\"\n [class]=\"passThrough().panel?.class\"\n [style]=\"panelStyle()\"\n (mousedown)=\"onPanelMousedown($event)\"\n >\n @if (filter()) {\n <div class=\"tx-select__filter\" [class]=\"passThrough().filter?.class\" [style]=\"passThrough().filter?.style\">\n <span class=\"tx-select__filter-field\">\n <input\n #filterInput\n type=\"text\"\n autocomplete=\"off\"\n class=\"tx-select__filter-input\"\n role=\"searchbox\"\n [class]=\"passThrough().filterInput?.class\"\n [style]=\"passThrough().filterInput?.style\"\n [attr.aria-label]=\"filterPlaceholder() ?? translations().searchPlaceholder\"\n [attr.aria-controls]=\"treeId\"\n [attr.aria-activedescendant]=\"activeId()\"\n [placeholder]=\"filterPlaceholder() ?? translations().searchPlaceholder\"\n [value]=\"query()\"\n (input)=\"onFilter($event)\"\n (keydown)=\"onKeydown($event)\"\n />\n <tx-icon class=\"tx-select__filter-icon\" [name]=\"'search'\" />\n </span>\n </div>\n }\n @if (rows().length) {\n <div\n class=\"tx-tree-select__tree\"\n role=\"tree\"\n [id]=\"treeId\"\n [attr.aria-multiselectable]=\"multiple() || null\"\n [attr.aria-label]=\"ariaLabel() || placeholder() || null\"\n [style.max-height]=\"scrollHeight() ?? null\"\n [class]=\"passThrough().tree?.class\"\n [style]=\"passThrough().tree?.style\"\n >\n <ng-container [ngTemplateOutlet]=\"branch\" [ngTemplateOutletContext]=\"{ $implicit: branches() }\" />\n </div>\n } @else {\n <div class=\"tx-tree-select__tree tx-tree-select__tree--empty\" role=\"tree\" [id]=\"treeId\" [attr.aria-label]=\"ariaLabel() || placeholder() || null\">\n <div class=\"tx-select__empty tx-tree-select__empty\" role=\"presentation\" [class]=\"passThrough().empty?.class\" [style]=\"passThrough().empty?.style\">\n {{ emptyText() }}\n </div>\n </div>\n }\n </div>\n</ng-template>\n\n<ng-template #branch let-branches>\n @for (item of branches; track item.row.id) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- tree items use aria-activedescendant: focus and keys stay on the field -->\n <div\n role=\"treeitem\"\n class=\"tx-tree-select__node\"\n [id]=\"item.row.id\"\n [style.--tx-tree-level]=\"item.row.level - 1\"\n [class.tx-tree-select__node--active]=\"item.row.node.key === activeKey()\"\n [class.tx-tree-select__node--selected]=\"item.row.checked && selectionMode() !== 'checkbox'\"\n [class.tx-tree-select__node--disabled]=\"!item.row.selectable\"\n [attr.aria-level]=\"item.row.level\"\n [attr.aria-setsize]=\"item.row.setSize\"\n [attr.aria-posinset]=\"item.row.posInSet\"\n [attr.aria-expanded]=\"item.row.hasChildren ? item.row.expanded : null\"\n [attr.aria-selected]=\"selectionMode() === 'checkbox' ? null : item.row.checked\"\n [attr.aria-checked]=\"selectionMode() === 'checkbox' ? checkState(item.row) : null\"\n [attr.aria-disabled]=\"!item.row.selectable || null\"\n [attr.aria-owns]=\"item.children.length ? item.row.id + '-group' : null\"\n [class]=\"passThrough().node?.class\"\n [style]=\"passThrough().node?.style\"\n (mouseenter)=\"activeKey.set(item.row.node.key)\"\n (click)=\"onRowClick(item.row, $event)\"\n >\n <span\n class=\"tx-tree-select__toggler\"\n aria-hidden=\"true\"\n [class.tx-tree-select__toggler--leaf]=\"!item.row.hasChildren\"\n [class]=\"passThrough().toggler?.class\"\n [style]=\"passThrough().toggler?.style\"\n >\n @if (item.row.hasChildren) {\n <tx-icon class=\"tx-tree-select__chevron\" [class.tx-tree-select__chevron--open]=\"item.row.expanded\" [name]=\"'chevron-right'\" />\n }\n </span>\n @if (selectionMode() === 'checkbox') {\n <span class=\"tx-select__checkbox tx-tree-select__checkbox\" aria-hidden=\"true\">\n @if (item.row.checked) {\n <tx-icon [name]=\"'check'\" />\n } @else if (item.row.partial) {\n <tx-icon [name]=\"'minus'\" />\n }\n </span>\n }\n @if (item.row.node.icon; as icon) {\n <tx-icon class=\"tx-tree-select__icon\" [name]=\"icon\" />\n }\n <span class=\"tx-tree-select__label\">{{ item.row.node.label }}</span>\n </div>\n @if (item.children.length) {\n <div\n role=\"group\"\n class=\"tx-tree-select__children\"\n [id]=\"item.row.id + '-group'\"\n [class.tx-tree-select__children--open]=\"item.row.expanded\"\n [attr.inert]=\"item.row.expanded ? null : ''\"\n >\n <div class=\"tx-tree-select__children-inner\">\n @if (item.row.expanded || mounted().has(item.row.node.key)) {\n <ng-container [ngTemplateOutlet]=\"branch\" [ngTemplateOutletContext]=\"{ $implicit: item.children }\" />\n }\n </div>\n </div>\n }\n }\n</ng-template>\n",
|
|
626
|
-
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-tree-select--disabled) .tx-select__box{cursor:not-allowed}:host(.tx-tree-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-tree-select--disabled,.tx-tree-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-tree-select--disabled,.tx-tree-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-tree-select--readonly .tx-select__box,:host([data-styled]).tx-tree-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-tree-select--invalid .tx-select__box{border-color:var(--tx-form-field-invalid-border-color)}:host([data-styled]).tx-tree-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-tree-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-tree-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-tree-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-select__chips{display:flex;flex-wrap:wrap;align-items:center}.tx-select__chip{display:inline-flex;align-items:center;max-width:100%}.tx-select__chip-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host([data-styled]) .tx-select__chips{gap:var(--tx-select-chip-gap);margin-block:calc((1lh - var(--tx-select-chip-font-size) * 1.5 - 2 * var(--tx-select-chip-padding-y)) / 2);white-space:normal}:host([data-styled]) .tx-select__chip{gap:var(--tx-select-chip-gap);padding:var(--tx-select-chip-padding-y) var(--tx-select-chip-padding-end) var(--tx-select-chip-padding-y) var(--tx-select-chip-padding-start);border-radius:var(--tx-select-chip-border-radius);background:var(--tx-select-chip-background);color:var(--tx-select-chip-color);font-size:var(--tx-select-chip-font-size);line-height:1.5}:host([data-styled]) .tx-select__chip-remove{transition:color var(--tx-motion-duration) var(--tx-motion-easing);font-size:var(--tx-select-chip-remove-size);display:inline-grid;place-items:center;border-radius:var(--tx-radius-full);color:var(--tx-select-chip-remove-color);cursor:pointer}:host([data-styled]) .tx-select__chip-remove:hover{color:var(--tx-select-chip-remove-hover-color)}.tx-tree-select__tree{overflow-y:auto}.tx-tree-select__node{display:flex;align-items:center;cursor:pointer}.tx-tree-select__node--disabled{cursor:default}.tx-tree-select__toggler{display:inline-grid;flex:none;place-items:center}.tx-tree-select__label{flex:1 1 auto;min-width:0}.tx-tree-select__children{display:grid;grid-template-rows:0fr}.tx-tree-select__children--open{grid-template-rows:1fr}.tx-tree-select__children-inner{min-height:0;overflow:hidden}.tx-tree-select__children:not(.tx-tree-select__children--open)>.tx-tree-select__children-inner{visibility:hidden}.tx-select__panel[data-styled] .tx-tree-select__tree{max-height:var(--tx-select-list-max-height);padding:calc(var(--tx-select-list-padding) - var(--tx-select-list-gap)) var(--tx-select-list-padding) var(--tx-select-list-padding)}.tx-select__panel[data-styled] .tx-tree-select__tree--empty{padding:var(--tx-select-list-padding)}.tx-select__panel[data-styled] .tx-tree-select__children{transition:grid-template-rows calc(var(--tx-motion-duration) * 1.6) cubic-bezier(.2,0,0,1)}.tx-select__panel[data-styled] .tx-tree-select__children:not(.tx-tree-select__children--open)>.tx-tree-select__children-inner{transition:visibility 0s linear calc(var(--tx-motion-duration) * 1.6)}.tx-select__panel[data-styled] .tx-tree-select__node{margin-top:var(--tx-select-list-gap);gap:var(--tx-tree-node-gap);transition:background-color var(--tx-motion-duration) var(--tx-motion-easing),color var(--tx-motion-duration) var(--tx-motion-easing);padding:var(--tx-select-option-padding);padding-inline-start:calc(var(--tx-tree-level, 0) * var(--tx-tree-indent) + 4px);border-radius:var(--tx-select-option-border-radius);color:var(--tx-select-option-color)}.tx-select__panel[data-styled] .tx-tree-select__node--active{background:var(--tx-select-option-focus-background)}.tx-select__panel[data-styled] .tx-tree-select__node--selected{background:var(--tx-select-option-selected-background);color:var(--tx-select-option-selected-color);font-weight:var(--tx-select-option-selected-font-weight)}.tx-select__panel[data-styled] .tx-tree-select__node--selected.tx-tree-select__node--active{background:var(--tx-select-option-selected-focus-background);color:var(--tx-select-option-selected-focus-color)}.tx-select__panel[data-styled] .tx-tree-select__node--disabled{color:var(--tx-select-option-disabled-color)}.tx-select__panel[data-styled] .tx-tree-select__toggler{transition:background-color var(--tx-motion-duration) var(--tx-motion-easing);width:var(--tx-tree-node-toggle-button-size);height:var(--tx-tree-node-toggle-button-size);border-radius:var(--tx-tree-node-toggle-button-border-radius);color:var(--tx-tree-node-toggle-button-color)}.tx-select__panel[data-styled] .tx-tree-select__toggler:not(.tx-tree-select__toggler--leaf):hover{background:var(--tx-tree-node-toggle-button-hover-background)}.tx-select__panel[data-styled] .tx-tree-select__icon{color:var(--tx-tree-node-icon-color)}.tx-select__panel[data-styled] .tx-tree-select__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-select__panel[data-styled] .tx-tree-select__checkbox{transition:background-color var(--tx-motion-duration) var(--tx-motion-easing),border-color var(--tx-motion-duration) var(--tx-motion-easing);display:inline-grid;flex:none;place-items:center;box-sizing:border-box;width:var(--tx-select-checkbox-size);height:var(--tx-select-checkbox-size);border:1px solid var(--tx-select-checkbox-border-color);border-radius:var(--tx-select-checkbox-border-radius);background:var(--tx-select-checkbox-background);color:var(--tx-select-checkbox-checked-color);font-size:var(--tx-select-checkbox-icon-size)}.tx-select__panel[data-styled] .tx-tree-select__node[aria-checked=true] .tx-tree-select__checkbox,.tx-select__panel[data-styled] .tx-tree-select__node[aria-checked=mixed] .tx-tree-select__checkbox{border-color:var(--tx-select-checkbox-checked-background);background:var(--tx-select-checkbox-checked-background)}.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-tree-select__chevron{transition:transform var(--tx-motion-duration) var(--tx-motion-easing)}.tx-select__panel[data-styled] .tx-tree-select__chevron--open{transform:rotate(90deg)}@media(prefers-reduced-motion:reduce){.tx-select__panel[data-styled] .tx-tree-select__chevron,.tx-select__panel[data-styled] .tx-tree-select__children,.tx-select__panel[data-styled] .tx-tree-select__children-inner{transition:none}}\n"],
|
|
626
|
+
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-tree-select--disabled) .tx-select__box{cursor:not-allowed}:host(.tx-tree-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-tree-select--disabled,.tx-tree-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-tree-select--disabled,.tx-tree-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-tree-select--readonly .tx-select__box,:host([data-styled]).tx-tree-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-tree-select--invalid .tx-select__box{border-color:var(--tx-form-field-invalid-border-color)}:host([data-styled]).tx-tree-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-tree-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-tree-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-tree-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-select__chips{display:flex;flex-wrap:wrap;align-items:center}.tx-select__chip{display:inline-flex;align-items:center;max-width:100%}.tx-select__chip-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host([data-styled]) .tx-select__chips{gap:var(--tx-select-chip-gap);margin-block:calc((1lh - var(--tx-select-chip-font-size) * 1.5 - 2 * var(--tx-select-chip-padding-y)) / 2);white-space:normal}:host([data-styled]) .tx-select__chip{gap:var(--tx-select-chip-gap);padding:var(--tx-select-chip-padding-y) var(--tx-select-chip-padding-end) var(--tx-select-chip-padding-y) var(--tx-select-chip-padding-start);border-radius:var(--tx-select-chip-border-radius);background:var(--tx-select-chip-background);color:var(--tx-select-chip-color);font-size:var(--tx-select-chip-font-size);line-height:1.5}:host([data-styled]) .tx-select__chip-remove{transition:color var(--tx-motion-duration) var(--tx-motion-easing);font-size:var(--tx-select-chip-remove-size);display:inline-grid;place-items:center;border-radius:var(--tx-radius-full);color:var(--tx-select-chip-remove-color);cursor:pointer}:host([data-styled]) .tx-select__chip-remove:hover{color:var(--tx-select-chip-remove-hover-color)}.tx-tree-select__tree{overflow-y:auto}.tx-tree-select__node{display:flex;align-items:center;cursor:pointer}.tx-tree-select__node--disabled{cursor:default}.tx-tree-select__toggler{display:inline-grid;flex:none;place-items:center}.tx-tree-select__label{flex:1 1 auto;min-width:0}.tx-tree-select__children{display:grid;grid-template-rows:0fr}.tx-tree-select__children--open{grid-template-rows:1fr}.tx-tree-select__children-inner{min-height:0;overflow:hidden}.tx-tree-select__children:not(.tx-tree-select__children--open)>.tx-tree-select__children-inner{visibility:hidden}.tx-select__panel[data-styled] .tx-tree-select__tree{max-height:var(--tx-select-list-max-height);padding:calc(var(--tx-select-list-padding) - var(--tx-select-list-gap)) var(--tx-select-list-padding) var(--tx-select-list-padding)}.tx-select__panel[data-styled] .tx-tree-select__tree--empty{padding:var(--tx-select-list-padding)}.tx-select__panel[data-styled] .tx-tree-select__children{transition:grid-template-rows calc(var(--tx-motion-duration) * 1.6) cubic-bezier(.2,0,0,1)}.tx-select__panel[data-styled] .tx-tree-select__children:not(.tx-tree-select__children--open)>.tx-tree-select__children-inner{transition:visibility 0s linear calc(var(--tx-motion-duration) * 1.6)}.tx-select__panel[data-styled] .tx-tree-select__node{margin-top:var(--tx-select-list-gap);gap:var(--tx-tree-node-gap);transition:background-color var(--tx-motion-duration) var(--tx-motion-easing),color var(--tx-motion-duration) var(--tx-motion-easing);padding:var(--tx-select-option-padding);padding-inline-start:calc(var(--tx-tree-level, 0) * var(--tx-tree-indent) + 4px);border-radius:var(--tx-select-option-border-radius);color:var(--tx-select-option-color)}.tx-select__panel[data-styled] .tx-tree-select__node--active{background:var(--tx-select-option-focus-background)}.tx-select__panel[data-styled] .tx-tree-select__node--selected{background:var(--tx-select-option-selected-background);color:var(--tx-select-option-selected-color);font-weight:var(--tx-select-option-selected-font-weight)}.tx-select__panel[data-styled] .tx-tree-select__node--selected.tx-tree-select__node--active{background:var(--tx-select-option-selected-focus-background);color:var(--tx-select-option-selected-focus-color)}.tx-select__panel[data-styled] .tx-tree-select__node--disabled{color:var(--tx-select-option-disabled-color)}.tx-select__panel[data-styled] .tx-tree-select__toggler{transition:background-color var(--tx-motion-duration) var(--tx-motion-easing);width:var(--tx-tree-node-toggle-button-size);height:var(--tx-tree-node-toggle-button-size);border-radius:var(--tx-tree-node-toggle-button-border-radius);color:var(--tx-tree-node-toggle-button-color)}.tx-select__panel[data-styled] .tx-tree-select__toggler:not(.tx-tree-select__toggler--leaf):hover{background:var(--tx-tree-node-toggle-button-hover-background)}.tx-select__panel[data-styled] .tx-tree-select__icon{color:var(--tx-tree-node-icon-color)}.tx-select__panel[data-styled] .tx-tree-select__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-select__panel[data-styled] .tx-tree-select__checkbox{transition:background-color var(--tx-motion-duration) var(--tx-motion-easing),border-color var(--tx-motion-duration) var(--tx-motion-easing);display:inline-grid;flex:none;place-items:center;box-sizing:border-box;width:var(--tx-select-checkbox-size);height:var(--tx-select-checkbox-size);border:1px solid var(--tx-select-checkbox-border-color);border-radius:var(--tx-select-checkbox-border-radius);background:var(--tx-select-checkbox-background);color:var(--tx-select-checkbox-checked-color);font-size:var(--tx-select-checkbox-icon-size)}.tx-select__panel[data-styled] .tx-tree-select__node[aria-checked=true] .tx-tree-select__checkbox,.tx-select__panel[data-styled] .tx-tree-select__node[aria-checked=mixed] .tx-tree-select__checkbox{border-color:var(--tx-select-checkbox-checked-background);background:var(--tx-select-checkbox-checked-background)}.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-tree-select__chevron{transition:transform var(--tx-motion-duration) var(--tx-motion-easing)}.tx-select__panel[data-styled] .tx-tree-select__chevron--open{transform:rotate(90deg)}@media(prefers-reduced-motion:reduce){.tx-select__panel[data-styled] .tx-tree-select__chevron,.tx-select__panel[data-styled] .tx-tree-select__children,.tx-select__panel[data-styled] .tx-tree-select__children-inner{transition:none}}\n"],
|
|
627
627
|
dependencies: [
|
|
628
628
|
{
|
|
629
629
|
kind: "directive",
|
|
@@ -733,7 +733,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
733
733
|
"[class.tx-tree-select--filled]": "selectedKeys().length > 0"
|
|
734
734
|
},
|
|
735
735
|
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]=\"filter() ? null : activeId()\"\n [attr.aria-invalid]=\"isInvalid() || null\"\n [attr.aria-readonly]=\"readonly() || null\"\n [disabled]=\"disabled()\"\n (keydown)=\"onKeydown($event)\"\n >\n @if (!selectedNodes().length) {\n <span class=\"tx-select__value tx-select__value--placeholder\" [class]=\"passThrough().value?.class\" [style]=\"passThrough().value?.style\">{{\n placeholder()\n }}</span>\n } @else if (multiple() && display() === 'chip') {\n <span class=\"tx-select__value tx-select__chips\" [class]=\"passThrough().value?.class\" [style]=\"passThrough().value?.style\">\n @for (node of selectedNodes(); track node.key) {\n <span class=\"tx-select__chip\" [class]=\"passThrough().chip?.class\" [style]=\"passThrough().chip?.style\">\n <span class=\"tx-select__chip-label\">{{ node.label }}</span>\n @if (!disabled() && !readonly()) {\n <span class=\"tx-select__chip-remove\" aria-hidden=\"true\" (click)=\"removeNode(node, $event)\">\n <tx-icon [name]=\"'times'\" />\n </span>\n }\n </span>\n }\n </span>\n } @else {\n <span class=\"tx-select__value\" [class]=\"passThrough().value?.class\" [style]=\"passThrough().value?.style\">{{ commaText() }}</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 [cdkConnectedOverlayWidth]=\"panelWidth()\"\n (overlayOutsideClick)=\"onOutsideClick($event)\"\n (attach)=\"onAttach()\"\n (positionChange)=\"onPositionChange($event)\"\n (detach)=\"close()\"\n>\n <div\n #panel\n class=\"tx-select__panel\"\n [attr.data-styled]=\"!isUnstyled() || null\"\n [class]=\"passThrough().panel?.class\"\n [style]=\"panelStyle()\"\n (mousedown)=\"onPanelMousedown($event)\"\n >\n @if (filter()) {\n <div class=\"tx-select__filter\" [class]=\"passThrough().filter?.class\" [style]=\"passThrough().filter?.style\">\n <span class=\"tx-select__filter-field\">\n <input\n #filterInput\n type=\"text\"\n autocomplete=\"off\"\n class=\"tx-select__filter-input\"\n role=\"searchbox\"\n [class]=\"passThrough().filterInput?.class\"\n [style]=\"passThrough().filterInput?.style\"\n [attr.aria-label]=\"filterPlaceholder() ?? translations().searchPlaceholder\"\n [attr.aria-controls]=\"treeId\"\n [attr.aria-activedescendant]=\"activeId()\"\n [placeholder]=\"filterPlaceholder() ?? translations().searchPlaceholder\"\n [value]=\"query()\"\n (input)=\"onFilter($event)\"\n (keydown)=\"onKeydown($event)\"\n />\n <tx-icon class=\"tx-select__filter-icon\" [name]=\"'search'\" />\n </span>\n </div>\n }\n @if (rows().length) {\n <div\n class=\"tx-tree-select__tree\"\n role=\"tree\"\n [id]=\"treeId\"\n [attr.aria-multiselectable]=\"multiple() || null\"\n [attr.aria-label]=\"ariaLabel() || placeholder() || null\"\n [style.max-height]=\"scrollHeight() ?? null\"\n [class]=\"passThrough().tree?.class\"\n [style]=\"passThrough().tree?.style\"\n >\n <ng-container [ngTemplateOutlet]=\"branch\" [ngTemplateOutletContext]=\"{ $implicit: branches() }\" />\n </div>\n } @else {\n <div class=\"tx-tree-select__tree tx-tree-select__tree--empty\" role=\"tree\" [id]=\"treeId\" [attr.aria-label]=\"ariaLabel() || placeholder() || null\">\n <div class=\"tx-select__empty tx-tree-select__empty\" role=\"presentation\" [class]=\"passThrough().empty?.class\" [style]=\"passThrough().empty?.style\">\n {{ emptyText() }}\n </div>\n </div>\n }\n </div>\n</ng-template>\n\n<ng-template #branch let-branches>\n @for (item of branches; track item.row.id) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- tree items use aria-activedescendant: focus and keys stay on the field -->\n <div\n role=\"treeitem\"\n class=\"tx-tree-select__node\"\n [id]=\"item.row.id\"\n [style.--tx-tree-level]=\"item.row.level - 1\"\n [class.tx-tree-select__node--active]=\"item.row.node.key === activeKey()\"\n [class.tx-tree-select__node--selected]=\"item.row.checked && selectionMode() !== 'checkbox'\"\n [class.tx-tree-select__node--disabled]=\"!item.row.selectable\"\n [attr.aria-level]=\"item.row.level\"\n [attr.aria-setsize]=\"item.row.setSize\"\n [attr.aria-posinset]=\"item.row.posInSet\"\n [attr.aria-expanded]=\"item.row.hasChildren ? item.row.expanded : null\"\n [attr.aria-selected]=\"selectionMode() === 'checkbox' ? null : item.row.checked\"\n [attr.aria-checked]=\"selectionMode() === 'checkbox' ? checkState(item.row) : null\"\n [attr.aria-disabled]=\"!item.row.selectable || null\"\n [attr.aria-owns]=\"item.children.length ? item.row.id + '-group' : null\"\n [class]=\"passThrough().node?.class\"\n [style]=\"passThrough().node?.style\"\n (mouseenter)=\"activeKey.set(item.row.node.key)\"\n (click)=\"onRowClick(item.row, $event)\"\n >\n <span\n class=\"tx-tree-select__toggler\"\n aria-hidden=\"true\"\n [class.tx-tree-select__toggler--leaf]=\"!item.row.hasChildren\"\n [class]=\"passThrough().toggler?.class\"\n [style]=\"passThrough().toggler?.style\"\n >\n @if (item.row.hasChildren) {\n <tx-icon class=\"tx-tree-select__chevron\" [class.tx-tree-select__chevron--open]=\"item.row.expanded\" [name]=\"'chevron-right'\" />\n }\n </span>\n @if (selectionMode() === 'checkbox') {\n <span class=\"tx-select__checkbox tx-tree-select__checkbox\" aria-hidden=\"true\">\n @if (item.row.checked) {\n <tx-icon [name]=\"'check'\" />\n } @else if (item.row.partial) {\n <tx-icon [name]=\"'minus'\" />\n }\n </span>\n }\n @if (item.row.node.icon; as icon) {\n <tx-icon class=\"tx-tree-select__icon\" [name]=\"icon\" />\n }\n <span class=\"tx-tree-select__label\">{{ item.row.node.label }}</span>\n </div>\n @if (item.children.length) {\n <div\n role=\"group\"\n class=\"tx-tree-select__children\"\n [id]=\"item.row.id + '-group'\"\n [class.tx-tree-select__children--open]=\"item.row.expanded\"\n [attr.inert]=\"item.row.expanded ? null : ''\"\n >\n <div class=\"tx-tree-select__children-inner\">\n @if (item.row.expanded || mounted().has(item.row.node.key)) {\n <ng-container [ngTemplateOutlet]=\"branch\" [ngTemplateOutletContext]=\"{ $implicit: item.children }\" />\n }\n </div>\n </div>\n }\n }\n</ng-template>\n",
|
|
736
|
-
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-tree-select--disabled) .tx-select__box{cursor:not-allowed}:host(.tx-tree-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-tree-select--disabled,.tx-tree-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-tree-select--disabled,.tx-tree-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-tree-select--readonly .tx-select__box,:host([data-styled]).tx-tree-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-tree-select--invalid .tx-select__box{border-color:var(--tx-form-field-invalid-border-color)}:host([data-styled]).tx-tree-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-tree-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-tree-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-tree-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-select__chips{display:flex;flex-wrap:wrap;align-items:center}.tx-select__chip{display:inline-flex;align-items:center;max-width:100%}.tx-select__chip-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host([data-styled]) .tx-select__chips{gap:var(--tx-select-chip-gap);margin-block:calc((1lh - var(--tx-select-chip-font-size) * 1.5 - 2 * var(--tx-select-chip-padding-y)) / 2);white-space:normal}:host([data-styled]) .tx-select__chip{gap:var(--tx-select-chip-gap);padding:var(--tx-select-chip-padding-y) var(--tx-select-chip-padding-end) var(--tx-select-chip-padding-y) var(--tx-select-chip-padding-start);border-radius:var(--tx-select-chip-border-radius);background:var(--tx-select-chip-background);color:var(--tx-select-chip-color);font-size:var(--tx-select-chip-font-size);line-height:1.5}:host([data-styled]) .tx-select__chip-remove{transition:color var(--tx-motion-duration) var(--tx-motion-easing);font-size:var(--tx-select-chip-remove-size);display:inline-grid;place-items:center;border-radius:var(--tx-radius-full);color:var(--tx-select-chip-remove-color);cursor:pointer}:host([data-styled]) .tx-select__chip-remove:hover{color:var(--tx-select-chip-remove-hover-color)}.tx-tree-select__tree{overflow-y:auto}.tx-tree-select__node{display:flex;align-items:center;cursor:pointer}.tx-tree-select__node--disabled{cursor:default}.tx-tree-select__toggler{display:inline-grid;flex:none;place-items:center}.tx-tree-select__label{flex:1 1 auto;min-width:0}.tx-tree-select__children{display:grid;grid-template-rows:0fr}.tx-tree-select__children--open{grid-template-rows:1fr}.tx-tree-select__children-inner{min-height:0;overflow:hidden}.tx-tree-select__children:not(.tx-tree-select__children--open)>.tx-tree-select__children-inner{visibility:hidden}.tx-select__panel[data-styled] .tx-tree-select__tree{max-height:var(--tx-select-list-max-height);padding:calc(var(--tx-select-list-padding) - var(--tx-select-list-gap)) var(--tx-select-list-padding) var(--tx-select-list-padding)}.tx-select__panel[data-styled] .tx-tree-select__tree--empty{padding:var(--tx-select-list-padding)}.tx-select__panel[data-styled] .tx-tree-select__children{transition:grid-template-rows calc(var(--tx-motion-duration) * 1.6) cubic-bezier(.2,0,0,1)}.tx-select__panel[data-styled] .tx-tree-select__children:not(.tx-tree-select__children--open)>.tx-tree-select__children-inner{transition:visibility 0s linear calc(var(--tx-motion-duration) * 1.6)}.tx-select__panel[data-styled] .tx-tree-select__node{margin-top:var(--tx-select-list-gap);gap:var(--tx-tree-node-gap);transition:background-color var(--tx-motion-duration) var(--tx-motion-easing),color var(--tx-motion-duration) var(--tx-motion-easing);padding:var(--tx-select-option-padding);padding-inline-start:calc(var(--tx-tree-level, 0) * var(--tx-tree-indent) + 4px);border-radius:var(--tx-select-option-border-radius);color:var(--tx-select-option-color)}.tx-select__panel[data-styled] .tx-tree-select__node--active{background:var(--tx-select-option-focus-background)}.tx-select__panel[data-styled] .tx-tree-select__node--selected{background:var(--tx-select-option-selected-background);color:var(--tx-select-option-selected-color);font-weight:var(--tx-select-option-selected-font-weight)}.tx-select__panel[data-styled] .tx-tree-select__node--selected.tx-tree-select__node--active{background:var(--tx-select-option-selected-focus-background);color:var(--tx-select-option-selected-focus-color)}.tx-select__panel[data-styled] .tx-tree-select__node--disabled{color:var(--tx-select-option-disabled-color)}.tx-select__panel[data-styled] .tx-tree-select__toggler{transition:background-color var(--tx-motion-duration) var(--tx-motion-easing);width:var(--tx-tree-node-toggle-button-size);height:var(--tx-tree-node-toggle-button-size);border-radius:var(--tx-tree-node-toggle-button-border-radius);color:var(--tx-tree-node-toggle-button-color)}.tx-select__panel[data-styled] .tx-tree-select__toggler:not(.tx-tree-select__toggler--leaf):hover{background:var(--tx-tree-node-toggle-button-hover-background)}.tx-select__panel[data-styled] .tx-tree-select__icon{color:var(--tx-tree-node-icon-color)}.tx-select__panel[data-styled] .tx-tree-select__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-select__panel[data-styled] .tx-tree-select__checkbox{transition:background-color var(--tx-motion-duration) var(--tx-motion-easing),border-color var(--tx-motion-duration) var(--tx-motion-easing);display:inline-grid;flex:none;place-items:center;box-sizing:border-box;width:var(--tx-select-checkbox-size);height:var(--tx-select-checkbox-size);border:1px solid var(--tx-select-checkbox-border-color);border-radius:var(--tx-select-checkbox-border-radius);background:var(--tx-select-checkbox-background);color:var(--tx-select-checkbox-checked-color);font-size:var(--tx-select-checkbox-icon-size)}.tx-select__panel[data-styled] .tx-tree-select__node[aria-checked=true] .tx-tree-select__checkbox,.tx-select__panel[data-styled] .tx-tree-select__node[aria-checked=mixed] .tx-tree-select__checkbox{border-color:var(--tx-select-checkbox-checked-background);background:var(--tx-select-checkbox-checked-background)}.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-tree-select__chevron{transition:transform var(--tx-motion-duration) var(--tx-motion-easing)}.tx-select__panel[data-styled] .tx-tree-select__chevron--open{transform:rotate(90deg)}@media(prefers-reduced-motion:reduce){.tx-select__panel[data-styled] .tx-tree-select__chevron,.tx-select__panel[data-styled] .tx-tree-select__children,.tx-select__panel[data-styled] .tx-tree-select__children-inner{transition:none}}\n"]
|
|
736
|
+
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-tree-select--disabled) .tx-select__box{cursor:not-allowed}:host(.tx-tree-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-tree-select--disabled,.tx-tree-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-tree-select--disabled,.tx-tree-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-tree-select--readonly .tx-select__box,:host([data-styled]).tx-tree-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-tree-select--invalid .tx-select__box{border-color:var(--tx-form-field-invalid-border-color)}:host([data-styled]).tx-tree-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-tree-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-tree-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-tree-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-select__chips{display:flex;flex-wrap:wrap;align-items:center}.tx-select__chip{display:inline-flex;align-items:center;max-width:100%}.tx-select__chip-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host([data-styled]) .tx-select__chips{gap:var(--tx-select-chip-gap);margin-block:calc((1lh - var(--tx-select-chip-font-size) * 1.5 - 2 * var(--tx-select-chip-padding-y)) / 2);white-space:normal}:host([data-styled]) .tx-select__chip{gap:var(--tx-select-chip-gap);padding:var(--tx-select-chip-padding-y) var(--tx-select-chip-padding-end) var(--tx-select-chip-padding-y) var(--tx-select-chip-padding-start);border-radius:var(--tx-select-chip-border-radius);background:var(--tx-select-chip-background);color:var(--tx-select-chip-color);font-size:var(--tx-select-chip-font-size);line-height:1.5}:host([data-styled]) .tx-select__chip-remove{transition:color var(--tx-motion-duration) var(--tx-motion-easing);font-size:var(--tx-select-chip-remove-size);display:inline-grid;place-items:center;border-radius:var(--tx-radius-full);color:var(--tx-select-chip-remove-color);cursor:pointer}:host([data-styled]) .tx-select__chip-remove:hover{color:var(--tx-select-chip-remove-hover-color)}.tx-tree-select__tree{overflow-y:auto}.tx-tree-select__node{display:flex;align-items:center;cursor:pointer}.tx-tree-select__node--disabled{cursor:default}.tx-tree-select__toggler{display:inline-grid;flex:none;place-items:center}.tx-tree-select__label{flex:1 1 auto;min-width:0}.tx-tree-select__children{display:grid;grid-template-rows:0fr}.tx-tree-select__children--open{grid-template-rows:1fr}.tx-tree-select__children-inner{min-height:0;overflow:hidden}.tx-tree-select__children:not(.tx-tree-select__children--open)>.tx-tree-select__children-inner{visibility:hidden}.tx-select__panel[data-styled] .tx-tree-select__tree{max-height:var(--tx-select-list-max-height);padding:calc(var(--tx-select-list-padding) - var(--tx-select-list-gap)) var(--tx-select-list-padding) var(--tx-select-list-padding)}.tx-select__panel[data-styled] .tx-tree-select__tree--empty{padding:var(--tx-select-list-padding)}.tx-select__panel[data-styled] .tx-tree-select__children{transition:grid-template-rows calc(var(--tx-motion-duration) * 1.6) cubic-bezier(.2,0,0,1)}.tx-select__panel[data-styled] .tx-tree-select__children:not(.tx-tree-select__children--open)>.tx-tree-select__children-inner{transition:visibility 0s linear calc(var(--tx-motion-duration) * 1.6)}.tx-select__panel[data-styled] .tx-tree-select__node{margin-top:var(--tx-select-list-gap);gap:var(--tx-tree-node-gap);transition:background-color var(--tx-motion-duration) var(--tx-motion-easing),color var(--tx-motion-duration) var(--tx-motion-easing);padding:var(--tx-select-option-padding);padding-inline-start:calc(var(--tx-tree-level, 0) * var(--tx-tree-indent) + 4px);border-radius:var(--tx-select-option-border-radius);color:var(--tx-select-option-color)}.tx-select__panel[data-styled] .tx-tree-select__node--active{background:var(--tx-select-option-focus-background)}.tx-select__panel[data-styled] .tx-tree-select__node--selected{background:var(--tx-select-option-selected-background);color:var(--tx-select-option-selected-color);font-weight:var(--tx-select-option-selected-font-weight)}.tx-select__panel[data-styled] .tx-tree-select__node--selected.tx-tree-select__node--active{background:var(--tx-select-option-selected-focus-background);color:var(--tx-select-option-selected-focus-color)}.tx-select__panel[data-styled] .tx-tree-select__node--disabled{color:var(--tx-select-option-disabled-color)}.tx-select__panel[data-styled] .tx-tree-select__toggler{transition:background-color var(--tx-motion-duration) var(--tx-motion-easing);width:var(--tx-tree-node-toggle-button-size);height:var(--tx-tree-node-toggle-button-size);border-radius:var(--tx-tree-node-toggle-button-border-radius);color:var(--tx-tree-node-toggle-button-color)}.tx-select__panel[data-styled] .tx-tree-select__toggler:not(.tx-tree-select__toggler--leaf):hover{background:var(--tx-tree-node-toggle-button-hover-background)}.tx-select__panel[data-styled] .tx-tree-select__icon{color:var(--tx-tree-node-icon-color)}.tx-select__panel[data-styled] .tx-tree-select__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-select__panel[data-styled] .tx-tree-select__checkbox{transition:background-color var(--tx-motion-duration) var(--tx-motion-easing),border-color var(--tx-motion-duration) var(--tx-motion-easing);display:inline-grid;flex:none;place-items:center;box-sizing:border-box;width:var(--tx-select-checkbox-size);height:var(--tx-select-checkbox-size);border:1px solid var(--tx-select-checkbox-border-color);border-radius:var(--tx-select-checkbox-border-radius);background:var(--tx-select-checkbox-background);color:var(--tx-select-checkbox-checked-color);font-size:var(--tx-select-checkbox-icon-size)}.tx-select__panel[data-styled] .tx-tree-select__node[aria-checked=true] .tx-tree-select__checkbox,.tx-select__panel[data-styled] .tx-tree-select__node[aria-checked=mixed] .tx-tree-select__checkbox{border-color:var(--tx-select-checkbox-checked-background);background:var(--tx-select-checkbox-checked-background)}.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-tree-select__chevron{transition:transform var(--tx-motion-duration) var(--tx-motion-easing)}.tx-select__panel[data-styled] .tx-tree-select__chevron--open{transform:rotate(90deg)}@media(prefers-reduced-motion:reduce){.tx-select__panel[data-styled] .tx-tree-select__chevron,.tx-select__panel[data-styled] .tx-tree-select__children,.tx-select__panel[data-styled] .tx-tree-select__children-inner{transition:none}}\n"]
|
|
737
737
|
}]
|
|
738
738
|
}],
|
|
739
739
|
propDecorators: {
|