@tectra-ng/ui 0.1.3 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/README.md +61 -0
- package/breadcrumb/README.md +57 -0
- package/carousel/README.md +53 -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-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-carousel.mjs +939 -0
- package/fesm2022/tectra-ng-ui-carousel.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-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-galleria.mjs +1140 -0
- package/fesm2022/tectra-ng-ui-galleria.mjs.map +1 -0
- package/fesm2022/tectra-ng-ui-image.mjs +759 -0
- package/fesm2022/tectra-ng-ui-image.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-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-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-splitter.mjs +750 -0
- package/fesm2022/tectra-ng-ui-splitter.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 +194 -50
- 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-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/galleria/README.md +62 -0
- package/image/README.md +54 -0
- package/menubar/README.md +51 -0
- package/package.json +56 -4
- package/panel-menu/README.md +45 -0
- package/scroll-panel/README.md +35 -0
- package/splitter/README.md +62 -0
- package/stepper/README.md +66 -0
- package/table/README.md +1 -1
- package/tabs/README.md +69 -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-breadcrumb.d.ts +157 -0
- package/types/tectra-ng-ui-breadcrumb.d.ts.map +1 -0
- package/types/tectra-ng-ui-carousel.d.ts +263 -0
- package/types/tectra-ng-ui-carousel.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-galleria.d.ts +407 -0
- package/types/tectra-ng-ui-galleria.d.ts.map +1 -0
- package/types/tectra-ng-ui-image.d.ts +259 -0
- package/types/tectra-ng-ui-image.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-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-splitter.d.ts +226 -0
- package/types/tectra-ng-ui-splitter.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-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,980 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, Directive, ElementRef, InjectionToken, TemplateRef, ViewEncapsulation, booleanAttribute, computed, contentChild, inject, input, linkedSignal, model, output } from "@angular/core";
|
|
3
|
+
import { NgTemplateOutlet } from "@angular/common";
|
|
4
|
+
import { injectPassThrough, injectUnstyled } from "@tectra-ng/core/config";
|
|
5
|
+
import { optionalBoolean } from "@tectra-ng/core/utils";
|
|
6
|
+
import { toStyleObject } from "@tectra-ng/themes";
|
|
7
|
+
import { TxIcon, TxIconRegistry } from "@tectra-ng/icons";
|
|
8
|
+
import { uniqueId } from "@tectra-ng/core/a11y";
|
|
9
|
+
var TxAccordionHeaderTemplate = class TxAccordionHeaderTemplate {
|
|
10
|
+
template = inject(TemplateRef);
|
|
11
|
+
static ngTemplateContextGuard(_directive, context) {
|
|
12
|
+
return !!context;
|
|
13
|
+
}
|
|
14
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
15
|
+
minVersion: "12.0.0",
|
|
16
|
+
version: "22.2.3",
|
|
17
|
+
ngImport: i0,
|
|
18
|
+
type: TxAccordionHeaderTemplate,
|
|
19
|
+
deps: [],
|
|
20
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
21
|
+
});
|
|
22
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
23
|
+
minVersion: "14.0.0",
|
|
24
|
+
version: "22.2.3",
|
|
25
|
+
type: TxAccordionHeaderTemplate,
|
|
26
|
+
isStandalone: true,
|
|
27
|
+
selector: "ng-template[txAccordionHeader]",
|
|
28
|
+
ngImport: i0
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
32
|
+
minVersion: "12.0.0",
|
|
33
|
+
version: "22.2.3",
|
|
34
|
+
ngImport: i0,
|
|
35
|
+
type: TxAccordionHeaderTemplate,
|
|
36
|
+
decorators: [{
|
|
37
|
+
type: Directive,
|
|
38
|
+
args: [{ selector: "ng-template[txAccordionHeader]" }]
|
|
39
|
+
}]
|
|
40
|
+
});
|
|
41
|
+
var TxAccordionContentTemplate = class TxAccordionContentTemplate {
|
|
42
|
+
template = inject(TemplateRef);
|
|
43
|
+
static ngTemplateContextGuard(_directive, context) {
|
|
44
|
+
return !!context;
|
|
45
|
+
}
|
|
46
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
47
|
+
minVersion: "12.0.0",
|
|
48
|
+
version: "22.2.3",
|
|
49
|
+
ngImport: i0,
|
|
50
|
+
type: TxAccordionContentTemplate,
|
|
51
|
+
deps: [],
|
|
52
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
53
|
+
});
|
|
54
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
55
|
+
minVersion: "14.0.0",
|
|
56
|
+
version: "22.2.3",
|
|
57
|
+
type: TxAccordionContentTemplate,
|
|
58
|
+
isStandalone: true,
|
|
59
|
+
selector: "ng-template[txAccordionContent]",
|
|
60
|
+
ngImport: i0
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
64
|
+
minVersion: "12.0.0",
|
|
65
|
+
version: "22.2.3",
|
|
66
|
+
ngImport: i0,
|
|
67
|
+
type: TxAccordionContentTemplate,
|
|
68
|
+
decorators: [{
|
|
69
|
+
type: Directive,
|
|
70
|
+
args: [{ selector: "ng-template[txAccordionContent]" }]
|
|
71
|
+
}]
|
|
72
|
+
});
|
|
73
|
+
var TxAccordionToggleIconTemplate = class TxAccordionToggleIconTemplate {
|
|
74
|
+
template = inject(TemplateRef);
|
|
75
|
+
static ngTemplateContextGuard(_directive, context) {
|
|
76
|
+
return !!context;
|
|
77
|
+
}
|
|
78
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
79
|
+
minVersion: "12.0.0",
|
|
80
|
+
version: "22.2.3",
|
|
81
|
+
ngImport: i0,
|
|
82
|
+
type: TxAccordionToggleIconTemplate,
|
|
83
|
+
deps: [],
|
|
84
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
85
|
+
});
|
|
86
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
87
|
+
minVersion: "14.0.0",
|
|
88
|
+
version: "22.2.3",
|
|
89
|
+
type: TxAccordionToggleIconTemplate,
|
|
90
|
+
isStandalone: true,
|
|
91
|
+
selector: "ng-template[txAccordionToggleIcon]",
|
|
92
|
+
ngImport: i0
|
|
93
|
+
});
|
|
94
|
+
};
|
|
95
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
96
|
+
minVersion: "12.0.0",
|
|
97
|
+
version: "22.2.3",
|
|
98
|
+
ngImport: i0,
|
|
99
|
+
type: TxAccordionToggleIconTemplate,
|
|
100
|
+
decorators: [{
|
|
101
|
+
type: Directive,
|
|
102
|
+
args: [{ selector: "ng-template[txAccordionToggleIcon]" }]
|
|
103
|
+
}]
|
|
104
|
+
});
|
|
105
|
+
const TX_ACCORDION = new InjectionToken("TX_ACCORDION");
|
|
106
|
+
const TX_ACCORDION_PANEL = new InjectionToken("TX_ACCORDION_PANEL");
|
|
107
|
+
var TxAccordionContent = class TxAccordionContent {
|
|
108
|
+
accordion = inject(TX_ACCORDION);
|
|
109
|
+
panel = inject(TX_ACCORDION_PANEL);
|
|
110
|
+
lazyContent = contentChild(TxAccordionContentTemplate, ...ngDevMode ? [{ debugName: "lazyContent" }] : /* istanbul ignore next */ []);
|
|
111
|
+
rendered = linkedSignal({
|
|
112
|
+
...ngDevMode ? { debugName: "rendered" } : /* istanbul ignore next */ {},
|
|
113
|
+
source: () => this.panel.active(),
|
|
114
|
+
computation: (active, previous) => active || (previous?.value ?? false)
|
|
115
|
+
});
|
|
116
|
+
templateContext = computed(() => {
|
|
117
|
+
const item = this.panel.item() ?? { header: "" };
|
|
118
|
+
return {
|
|
119
|
+
$implicit: item,
|
|
120
|
+
item,
|
|
121
|
+
index: -1,
|
|
122
|
+
active: this.panel.active()
|
|
123
|
+
};
|
|
124
|
+
}, ...ngDevMode ? [{ debugName: "templateContext" }] : /* istanbul ignore next */ []);
|
|
125
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
126
|
+
minVersion: "12.0.0",
|
|
127
|
+
version: "22.2.3",
|
|
128
|
+
ngImport: i0,
|
|
129
|
+
type: TxAccordionContent,
|
|
130
|
+
deps: [],
|
|
131
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
132
|
+
});
|
|
133
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
134
|
+
minVersion: "17.0.0",
|
|
135
|
+
version: "22.2.3",
|
|
136
|
+
type: TxAccordionContent,
|
|
137
|
+
isStandalone: true,
|
|
138
|
+
selector: "tx-accordion-content",
|
|
139
|
+
host: {
|
|
140
|
+
attributes: { "role": "region" },
|
|
141
|
+
properties: {
|
|
142
|
+
"class": "accordion.passThrough().content?.class",
|
|
143
|
+
"style": "accordion.passThrough().content?.style",
|
|
144
|
+
"id": "panel.contentId",
|
|
145
|
+
"attr.aria-labelledby": "panel.headerId",
|
|
146
|
+
"attr.inert": "panel.active() ? null : \"\""
|
|
147
|
+
},
|
|
148
|
+
classAttribute: "tx-accordion-content"
|
|
149
|
+
},
|
|
150
|
+
queries: [{
|
|
151
|
+
propertyName: "lazyContent",
|
|
152
|
+
first: true,
|
|
153
|
+
predicate: TxAccordionContentTemplate,
|
|
154
|
+
descendants: true,
|
|
155
|
+
isSignal: true
|
|
156
|
+
}],
|
|
157
|
+
ngImport: i0,
|
|
158
|
+
template: `
|
|
159
|
+
<div class="tx-accordion-content__wrapper">
|
|
160
|
+
<div class="tx-accordion-content__inner" [class]="accordion.passThrough().contentInner?.class" [style]="accordion.passThrough().contentInner?.style">
|
|
161
|
+
<ng-content />
|
|
162
|
+
@if (lazyContent(); as content) {
|
|
163
|
+
@if (rendered()) {
|
|
164
|
+
<ng-container *ngTemplateOutlet="content.template; context: templateContext()" />
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
</div>
|
|
168
|
+
</div>
|
|
169
|
+
`,
|
|
170
|
+
isInline: true,
|
|
171
|
+
dependencies: [{
|
|
172
|
+
kind: "directive",
|
|
173
|
+
type: NgTemplateOutlet,
|
|
174
|
+
selector: "[ngTemplateOutlet]",
|
|
175
|
+
inputs: [
|
|
176
|
+
"ngTemplateOutletContext",
|
|
177
|
+
"ngTemplateOutlet",
|
|
178
|
+
"ngTemplateOutletInjector"
|
|
179
|
+
]
|
|
180
|
+
}],
|
|
181
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
182
|
+
});
|
|
183
|
+
};
|
|
184
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
185
|
+
minVersion: "12.0.0",
|
|
186
|
+
version: "22.2.3",
|
|
187
|
+
ngImport: i0,
|
|
188
|
+
type: TxAccordionContent,
|
|
189
|
+
decorators: [{
|
|
190
|
+
type: Component,
|
|
191
|
+
args: [{
|
|
192
|
+
selector: "tx-accordion-content",
|
|
193
|
+
imports: [NgTemplateOutlet],
|
|
194
|
+
template: `
|
|
195
|
+
<div class="tx-accordion-content__wrapper">
|
|
196
|
+
<div class="tx-accordion-content__inner" [class]="accordion.passThrough().contentInner?.class" [style]="accordion.passThrough().contentInner?.style">
|
|
197
|
+
<ng-content />
|
|
198
|
+
@if (lazyContent(); as content) {
|
|
199
|
+
@if (rendered()) {
|
|
200
|
+
<ng-container *ngTemplateOutlet="content.template; context: templateContext()" />
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
</div>
|
|
204
|
+
</div>
|
|
205
|
+
`,
|
|
206
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
207
|
+
host: {
|
|
208
|
+
class: "tx-accordion-content",
|
|
209
|
+
role: "region",
|
|
210
|
+
"[class]": "accordion.passThrough().content?.class",
|
|
211
|
+
"[style]": "accordion.passThrough().content?.style",
|
|
212
|
+
"[id]": "panel.contentId",
|
|
213
|
+
"[attr.aria-labelledby]": "panel.headerId",
|
|
214
|
+
"[attr.inert]": "panel.active() ? null : \"\""
|
|
215
|
+
}
|
|
216
|
+
}]
|
|
217
|
+
}],
|
|
218
|
+
propDecorators: { lazyContent: [{
|
|
219
|
+
type: i0.ContentChild,
|
|
220
|
+
args: [i0.forwardRef(() => TxAccordionContentTemplate), { isSignal: true }]
|
|
221
|
+
}] }
|
|
222
|
+
});
|
|
223
|
+
var TxAccordionHeader = class TxAccordionHeader {
|
|
224
|
+
accordion = inject(TX_ACCORDION);
|
|
225
|
+
panel = inject(TX_ACCORDION_PANEL);
|
|
226
|
+
txIconRegistry = inject(TxIconRegistry);
|
|
227
|
+
headingLevel = input(void 0, ...ngDevMode ? [{ debugName: "headingLevel" }] : /* istanbul ignore next */ []);
|
|
228
|
+
hasCustomIcon = computed(() => !!this.accordion.toggleIconTemplate() || !!this.accordion.expandIcon() || !!this.accordion.collapseIcon(), ...ngDevMode ? [{ debugName: "hasCustomIcon" }] : /* istanbul ignore next */ []);
|
|
229
|
+
icon = computed(() => {
|
|
230
|
+
const expand = this.accordion.expandIcon();
|
|
231
|
+
const collapse = this.accordion.collapseIcon();
|
|
232
|
+
if (!expand && !collapse) return "chevron-down";
|
|
233
|
+
return this.panel.active() ? collapse ?? expand : expand ?? collapse;
|
|
234
|
+
}, ...ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []);
|
|
235
|
+
iconName = computed(() => {
|
|
236
|
+
const icon = this.icon();
|
|
237
|
+
return icon && this.txIconRegistry.has(icon) ? icon : null;
|
|
238
|
+
}, ...ngDevMode ? [{ debugName: "iconName" }] : /* istanbul ignore next */ []);
|
|
239
|
+
onKeydown(event) {
|
|
240
|
+
const buttons = this.buttons();
|
|
241
|
+
const current = buttons.indexOf(event.currentTarget);
|
|
242
|
+
let target;
|
|
243
|
+
switch (event.key) {
|
|
244
|
+
case "ArrowDown":
|
|
245
|
+
target = buttons[(current + 1) % buttons.length];
|
|
246
|
+
break;
|
|
247
|
+
case "ArrowUp":
|
|
248
|
+
target = buttons[(current - 1 + buttons.length) % buttons.length];
|
|
249
|
+
break;
|
|
250
|
+
case "Home":
|
|
251
|
+
target = buttons[0];
|
|
252
|
+
break;
|
|
253
|
+
case "End":
|
|
254
|
+
target = buttons[buttons.length - 1];
|
|
255
|
+
break;
|
|
256
|
+
default: return;
|
|
257
|
+
}
|
|
258
|
+
event.preventDefault();
|
|
259
|
+
this.accordion.focusSelectPending = this.accordion.selectOnFocus();
|
|
260
|
+
target?.focus();
|
|
261
|
+
this.accordion.focusSelectPending = false;
|
|
262
|
+
}
|
|
263
|
+
onFocus() {
|
|
264
|
+
if (this.accordion.focusSelectPending) {
|
|
265
|
+
this.accordion.focusSelectPending = false;
|
|
266
|
+
this.panel.open();
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
buttons() {
|
|
270
|
+
const host = this.accordion.element;
|
|
271
|
+
return Array.from(host.querySelectorAll(".tx-accordion-header__button")).filter((button) => !button.disabled && button.closest(".tx-accordion") === host);
|
|
272
|
+
}
|
|
273
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
274
|
+
minVersion: "12.0.0",
|
|
275
|
+
version: "22.2.3",
|
|
276
|
+
ngImport: i0,
|
|
277
|
+
type: TxAccordionHeader,
|
|
278
|
+
deps: [],
|
|
279
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
280
|
+
});
|
|
281
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
282
|
+
minVersion: "17.0.0",
|
|
283
|
+
version: "22.2.3",
|
|
284
|
+
type: TxAccordionHeader,
|
|
285
|
+
isStandalone: true,
|
|
286
|
+
selector: "tx-accordion-header",
|
|
287
|
+
inputs: { headingLevel: {
|
|
288
|
+
classPropertyName: "headingLevel",
|
|
289
|
+
publicName: "headingLevel",
|
|
290
|
+
isSignal: true,
|
|
291
|
+
isRequired: false,
|
|
292
|
+
transformFunction: null
|
|
293
|
+
} },
|
|
294
|
+
host: {
|
|
295
|
+
properties: {
|
|
296
|
+
"attr.role": "headingLevel() ? \"heading\" : null",
|
|
297
|
+
"attr.aria-level": "headingLevel() ?? null"
|
|
298
|
+
},
|
|
299
|
+
classAttribute: "tx-accordion-header"
|
|
300
|
+
},
|
|
301
|
+
ngImport: i0,
|
|
302
|
+
template: `
|
|
303
|
+
<button
|
|
304
|
+
type="button"
|
|
305
|
+
class="tx-accordion-header__button"
|
|
306
|
+
[id]="panel.headerId"
|
|
307
|
+
[disabled]="panel.disabled()"
|
|
308
|
+
[attr.aria-expanded]="panel.active()"
|
|
309
|
+
[attr.aria-controls]="panel.contentId"
|
|
310
|
+
[class]="accordion.passThrough().header?.class"
|
|
311
|
+
[style]="accordion.passThrough().header?.style"
|
|
312
|
+
(click)="panel.toggle()"
|
|
313
|
+
(keydown)="onKeydown($event)"
|
|
314
|
+
(focus)="onFocus()"
|
|
315
|
+
>
|
|
316
|
+
<span class="tx-accordion-header__content" [class]="accordion.passThrough().headerContent?.class" [style]="accordion.passThrough().headerContent?.style"
|
|
317
|
+
><ng-content
|
|
318
|
+
/></span>
|
|
319
|
+
<span
|
|
320
|
+
class="tx-accordion-header__toggle"
|
|
321
|
+
aria-hidden="true"
|
|
322
|
+
[class.tx-accordion-header__toggle--fixed]="hasCustomIcon()"
|
|
323
|
+
[class]="accordion.passThrough().toggleIcon?.class"
|
|
324
|
+
[style]="accordion.passThrough().toggleIcon?.style"
|
|
325
|
+
>
|
|
326
|
+
@if (accordion.toggleIconTemplate(); as template) {
|
|
327
|
+
<ng-container *ngTemplateOutlet="template; context: { $implicit: panel.active(), active: panel.active() }" />
|
|
328
|
+
} @else if (icon(); as icon) {
|
|
329
|
+
@if (iconName(); as name) {
|
|
330
|
+
<tx-icon [name]="name" />
|
|
331
|
+
} @else {
|
|
332
|
+
<span [class]="icon"></span>
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
</span>
|
|
336
|
+
</button>
|
|
337
|
+
`,
|
|
338
|
+
isInline: true,
|
|
339
|
+
dependencies: [{
|
|
340
|
+
kind: "component",
|
|
341
|
+
type: TxIcon,
|
|
342
|
+
selector: "tx-icon",
|
|
343
|
+
inputs: ["name"]
|
|
344
|
+
}, {
|
|
345
|
+
kind: "directive",
|
|
346
|
+
type: NgTemplateOutlet,
|
|
347
|
+
selector: "[ngTemplateOutlet]",
|
|
348
|
+
inputs: [
|
|
349
|
+
"ngTemplateOutletContext",
|
|
350
|
+
"ngTemplateOutlet",
|
|
351
|
+
"ngTemplateOutletInjector"
|
|
352
|
+
]
|
|
353
|
+
}],
|
|
354
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
355
|
+
});
|
|
356
|
+
};
|
|
357
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
358
|
+
minVersion: "12.0.0",
|
|
359
|
+
version: "22.2.3",
|
|
360
|
+
ngImport: i0,
|
|
361
|
+
type: TxAccordionHeader,
|
|
362
|
+
decorators: [{
|
|
363
|
+
type: Component,
|
|
364
|
+
args: [{
|
|
365
|
+
selector: "tx-accordion-header",
|
|
366
|
+
imports: [TxIcon, NgTemplateOutlet],
|
|
367
|
+
template: `
|
|
368
|
+
<button
|
|
369
|
+
type="button"
|
|
370
|
+
class="tx-accordion-header__button"
|
|
371
|
+
[id]="panel.headerId"
|
|
372
|
+
[disabled]="panel.disabled()"
|
|
373
|
+
[attr.aria-expanded]="panel.active()"
|
|
374
|
+
[attr.aria-controls]="panel.contentId"
|
|
375
|
+
[class]="accordion.passThrough().header?.class"
|
|
376
|
+
[style]="accordion.passThrough().header?.style"
|
|
377
|
+
(click)="panel.toggle()"
|
|
378
|
+
(keydown)="onKeydown($event)"
|
|
379
|
+
(focus)="onFocus()"
|
|
380
|
+
>
|
|
381
|
+
<span class="tx-accordion-header__content" [class]="accordion.passThrough().headerContent?.class" [style]="accordion.passThrough().headerContent?.style"
|
|
382
|
+
><ng-content
|
|
383
|
+
/></span>
|
|
384
|
+
<span
|
|
385
|
+
class="tx-accordion-header__toggle"
|
|
386
|
+
aria-hidden="true"
|
|
387
|
+
[class.tx-accordion-header__toggle--fixed]="hasCustomIcon()"
|
|
388
|
+
[class]="accordion.passThrough().toggleIcon?.class"
|
|
389
|
+
[style]="accordion.passThrough().toggleIcon?.style"
|
|
390
|
+
>
|
|
391
|
+
@if (accordion.toggleIconTemplate(); as template) {
|
|
392
|
+
<ng-container *ngTemplateOutlet="template; context: { $implicit: panel.active(), active: panel.active() }" />
|
|
393
|
+
} @else if (icon(); as icon) {
|
|
394
|
+
@if (iconName(); as name) {
|
|
395
|
+
<tx-icon [name]="name" />
|
|
396
|
+
} @else {
|
|
397
|
+
<span [class]="icon"></span>
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
</span>
|
|
401
|
+
</button>
|
|
402
|
+
`,
|
|
403
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
404
|
+
host: {
|
|
405
|
+
class: "tx-accordion-header",
|
|
406
|
+
"[attr.role]": "headingLevel() ? \"heading\" : null",
|
|
407
|
+
"[attr.aria-level]": "headingLevel() ?? null"
|
|
408
|
+
}
|
|
409
|
+
}]
|
|
410
|
+
}],
|
|
411
|
+
propDecorators: { headingLevel: [{
|
|
412
|
+
type: i0.Input,
|
|
413
|
+
args: [{
|
|
414
|
+
isSignal: true,
|
|
415
|
+
alias: "headingLevel",
|
|
416
|
+
required: false
|
|
417
|
+
}]
|
|
418
|
+
}] }
|
|
419
|
+
});
|
|
420
|
+
var TxAccordionPanel = class TxAccordionPanel {
|
|
421
|
+
accordion = inject(TX_ACCORDION);
|
|
422
|
+
element = inject(ElementRef).nativeElement;
|
|
423
|
+
id = uniqueId("tx-accordion");
|
|
424
|
+
value = input.required(...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
425
|
+
disabled = input(false, {
|
|
426
|
+
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
427
|
+
transform: booleanAttribute
|
|
428
|
+
});
|
|
429
|
+
tone = input(void 0, ...ngDevMode ? [{ debugName: "tone" }] : /* istanbul ignore next */ []);
|
|
430
|
+
item = input(void 0, ...ngDevMode ? [{ debugName: "item" }] : /* istanbul ignore next */ []);
|
|
431
|
+
headerId = `${this.id}-header`;
|
|
432
|
+
contentId = `${this.id}-content`;
|
|
433
|
+
active = computed(() => this.accordion.isActive(this.value()), ...ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []);
|
|
434
|
+
toggle() {
|
|
435
|
+
if (!this.disabled()) this.accordion.toggle(this.value(), this.element, this.item());
|
|
436
|
+
}
|
|
437
|
+
open() {
|
|
438
|
+
if (!this.disabled()) this.accordion.open(this.value(), this.element, this.item());
|
|
439
|
+
}
|
|
440
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
441
|
+
minVersion: "12.0.0",
|
|
442
|
+
version: "22.2.3",
|
|
443
|
+
ngImport: i0,
|
|
444
|
+
type: TxAccordionPanel,
|
|
445
|
+
deps: [],
|
|
446
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
447
|
+
});
|
|
448
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
449
|
+
minVersion: "17.1.0",
|
|
450
|
+
version: "22.2.3",
|
|
451
|
+
type: TxAccordionPanel,
|
|
452
|
+
isStandalone: true,
|
|
453
|
+
selector: "tx-accordion-panel",
|
|
454
|
+
inputs: {
|
|
455
|
+
value: {
|
|
456
|
+
classPropertyName: "value",
|
|
457
|
+
publicName: "value",
|
|
458
|
+
isSignal: true,
|
|
459
|
+
isRequired: true,
|
|
460
|
+
transformFunction: null
|
|
461
|
+
},
|
|
462
|
+
disabled: {
|
|
463
|
+
classPropertyName: "disabled",
|
|
464
|
+
publicName: "disabled",
|
|
465
|
+
isSignal: true,
|
|
466
|
+
isRequired: false,
|
|
467
|
+
transformFunction: null
|
|
468
|
+
},
|
|
469
|
+
tone: {
|
|
470
|
+
classPropertyName: "tone",
|
|
471
|
+
publicName: "tone",
|
|
472
|
+
isSignal: true,
|
|
473
|
+
isRequired: false,
|
|
474
|
+
transformFunction: null
|
|
475
|
+
},
|
|
476
|
+
item: {
|
|
477
|
+
classPropertyName: "item",
|
|
478
|
+
publicName: "item",
|
|
479
|
+
isSignal: true,
|
|
480
|
+
isRequired: false,
|
|
481
|
+
transformFunction: null
|
|
482
|
+
}
|
|
483
|
+
},
|
|
484
|
+
host: {
|
|
485
|
+
properties: {
|
|
486
|
+
"class": "accordion.passThrough().panel?.class",
|
|
487
|
+
"style": "accordion.passThrough().panel?.style",
|
|
488
|
+
"class.tx-accordion-panel--active": "active()",
|
|
489
|
+
"class.tx-accordion-panel--disabled": "disabled()",
|
|
490
|
+
"attr.data-tone": "tone() ?? null",
|
|
491
|
+
"attr.data-value": "value()"
|
|
492
|
+
},
|
|
493
|
+
classAttribute: "tx-accordion-panel"
|
|
494
|
+
},
|
|
495
|
+
providers: [{
|
|
496
|
+
provide: TX_ACCORDION_PANEL,
|
|
497
|
+
useExisting: TxAccordionPanel
|
|
498
|
+
}],
|
|
499
|
+
ngImport: i0,
|
|
500
|
+
template: "<ng-content />",
|
|
501
|
+
isInline: true,
|
|
502
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
503
|
+
});
|
|
504
|
+
};
|
|
505
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
506
|
+
minVersion: "12.0.0",
|
|
507
|
+
version: "22.2.3",
|
|
508
|
+
ngImport: i0,
|
|
509
|
+
type: TxAccordionPanel,
|
|
510
|
+
decorators: [{
|
|
511
|
+
type: Component,
|
|
512
|
+
args: [{
|
|
513
|
+
selector: "tx-accordion-panel",
|
|
514
|
+
template: "<ng-content />",
|
|
515
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
516
|
+
providers: [{
|
|
517
|
+
provide: TX_ACCORDION_PANEL,
|
|
518
|
+
useExisting: TxAccordionPanel
|
|
519
|
+
}],
|
|
520
|
+
host: {
|
|
521
|
+
class: "tx-accordion-panel",
|
|
522
|
+
"[class]": "accordion.passThrough().panel?.class",
|
|
523
|
+
"[style]": "accordion.passThrough().panel?.style",
|
|
524
|
+
"[class.tx-accordion-panel--active]": "active()",
|
|
525
|
+
"[class.tx-accordion-panel--disabled]": "disabled()",
|
|
526
|
+
"[attr.data-tone]": "tone() ?? null",
|
|
527
|
+
"[attr.data-value]": "value()"
|
|
528
|
+
}
|
|
529
|
+
}]
|
|
530
|
+
}],
|
|
531
|
+
propDecorators: {
|
|
532
|
+
value: [{
|
|
533
|
+
type: i0.Input,
|
|
534
|
+
args: [{
|
|
535
|
+
isSignal: true,
|
|
536
|
+
alias: "value",
|
|
537
|
+
required: true
|
|
538
|
+
}]
|
|
539
|
+
}],
|
|
540
|
+
disabled: [{
|
|
541
|
+
type: i0.Input,
|
|
542
|
+
args: [{
|
|
543
|
+
isSignal: true,
|
|
544
|
+
alias: "disabled",
|
|
545
|
+
required: false
|
|
546
|
+
}]
|
|
547
|
+
}],
|
|
548
|
+
tone: [{
|
|
549
|
+
type: i0.Input,
|
|
550
|
+
args: [{
|
|
551
|
+
isSignal: true,
|
|
552
|
+
alias: "tone",
|
|
553
|
+
required: false
|
|
554
|
+
}]
|
|
555
|
+
}],
|
|
556
|
+
item: [{
|
|
557
|
+
type: i0.Input,
|
|
558
|
+
args: [{
|
|
559
|
+
isSignal: true,
|
|
560
|
+
alias: "item",
|
|
561
|
+
required: false
|
|
562
|
+
}]
|
|
563
|
+
}]
|
|
564
|
+
}
|
|
565
|
+
});
|
|
566
|
+
var TxAccordion = class TxAccordion {
|
|
567
|
+
element = inject(ElementRef).nativeElement;
|
|
568
|
+
focusSelectPending = false;
|
|
569
|
+
value = model(null, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
570
|
+
multiple = input(true, {
|
|
571
|
+
...ngDevMode ? { debugName: "multiple" } : /* istanbul ignore next */ {},
|
|
572
|
+
transform: booleanAttribute
|
|
573
|
+
});
|
|
574
|
+
items = input(void 0, ...ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []);
|
|
575
|
+
expandIcon = input(void 0, ...ngDevMode ? [{ debugName: "expandIcon" }] : /* istanbul ignore next */ []);
|
|
576
|
+
collapseIcon = input(void 0, ...ngDevMode ? [{ debugName: "collapseIcon" }] : /* istanbul ignore next */ []);
|
|
577
|
+
selectOnFocus = input(false, {
|
|
578
|
+
...ngDevMode ? { debugName: "selectOnFocus" } : /* istanbul ignore next */ {},
|
|
579
|
+
transform: booleanAttribute
|
|
580
|
+
});
|
|
581
|
+
dt = input(void 0, ...ngDevMode ? [{ debugName: "dt" }] : /* istanbul ignore next */ []);
|
|
582
|
+
pt = input(void 0, ...ngDevMode ? [{ debugName: "pt" }] : /* istanbul ignore next */ []);
|
|
583
|
+
ptOptions = input(void 0, ...ngDevMode ? [{ debugName: "ptOptions" }] : /* istanbul ignore next */ []);
|
|
584
|
+
unstyled = input(void 0, {
|
|
585
|
+
...ngDevMode ? { debugName: "unstyled" } : /* istanbul ignore next */ {},
|
|
586
|
+
transform: optionalBoolean
|
|
587
|
+
});
|
|
588
|
+
opened = output();
|
|
589
|
+
closed = output();
|
|
590
|
+
headerTemplate = contentChild(TxAccordionHeaderTemplate, {
|
|
591
|
+
...ngDevMode ? { debugName: "headerTemplate" } : /* istanbul ignore next */ {},
|
|
592
|
+
descendants: false
|
|
593
|
+
});
|
|
594
|
+
contentTemplate = contentChild(TxAccordionContentTemplate, {
|
|
595
|
+
...ngDevMode ? { debugName: "contentTemplate" } : /* istanbul ignore next */ {},
|
|
596
|
+
descendants: false
|
|
597
|
+
});
|
|
598
|
+
toggleIcon = contentChild(TxAccordionToggleIconTemplate, {
|
|
599
|
+
...ngDevMode ? { debugName: "toggleIcon" } : /* istanbul ignore next */ {},
|
|
600
|
+
descendants: false
|
|
601
|
+
});
|
|
602
|
+
toggleIconTemplate = computed(() => this.toggleIcon()?.template, ...ngDevMode ? [{ debugName: "toggleIconTemplate" }] : /* istanbul ignore next */ []);
|
|
603
|
+
isUnstyled = injectUnstyled(this.unstyled);
|
|
604
|
+
passThrough = injectPassThrough("accordion", this, this.pt, this.ptOptions);
|
|
605
|
+
hostStyle = computed(() => ({
|
|
606
|
+
...toStyleObject(this.dt(), "--tx-accordion"),
|
|
607
|
+
...this.passThrough().root?.style
|
|
608
|
+
}), ...ngDevMode ? [{ debugName: "hostStyle" }] : /* istanbul ignore next */ []);
|
|
609
|
+
activeValues = computed(() => {
|
|
610
|
+
const value = this.value();
|
|
611
|
+
if (value === null || value === void 0) return [];
|
|
612
|
+
return Array.isArray(value) ? value : [value];
|
|
613
|
+
}, ...ngDevMode ? [{ debugName: "activeValues" }] : /* istanbul ignore next */ []);
|
|
614
|
+
itemValue(item, index) {
|
|
615
|
+
return item.value ?? index;
|
|
616
|
+
}
|
|
617
|
+
isActive(value) {
|
|
618
|
+
return this.activeValues().includes(value);
|
|
619
|
+
}
|
|
620
|
+
toggle(value, panel, item) {
|
|
621
|
+
if (this.isActive(value)) this.close(value, panel, item);
|
|
622
|
+
else this.open(value, panel, item);
|
|
623
|
+
}
|
|
624
|
+
open(value, panel, item) {
|
|
625
|
+
if (this.isActive(value)) return;
|
|
626
|
+
const previous = this.multiple() ? [] : this.activeValues();
|
|
627
|
+
this.value.set(this.multiple() ? [...this.activeValues(), value] : value);
|
|
628
|
+
for (const closedValue of previous) {
|
|
629
|
+
const closedPanel = this.panelElement(closedValue);
|
|
630
|
+
this.closed.emit({
|
|
631
|
+
value: closedValue,
|
|
632
|
+
index: this.indexOf(closedPanel),
|
|
633
|
+
item: this.itemOf(closedValue)
|
|
634
|
+
});
|
|
635
|
+
}
|
|
636
|
+
this.opened.emit({
|
|
637
|
+
value,
|
|
638
|
+
index: this.indexOf(panel),
|
|
639
|
+
item
|
|
640
|
+
});
|
|
641
|
+
}
|
|
642
|
+
close(value, panel, item) {
|
|
643
|
+
this.value.set(this.multiple() ? this.activeValues().filter((active) => active !== value) : null);
|
|
644
|
+
this.closed.emit({
|
|
645
|
+
value,
|
|
646
|
+
index: this.indexOf(panel),
|
|
647
|
+
item
|
|
648
|
+
});
|
|
649
|
+
}
|
|
650
|
+
panels() {
|
|
651
|
+
return Array.from(this.element.children).filter((child) => child.classList.contains("tx-accordion-panel"));
|
|
652
|
+
}
|
|
653
|
+
panelElement(value) {
|
|
654
|
+
return this.panels().find((panel) => panel.dataset["value"] === String(value));
|
|
655
|
+
}
|
|
656
|
+
indexOf(panel) {
|
|
657
|
+
return panel ? this.panels().indexOf(panel) : -1;
|
|
658
|
+
}
|
|
659
|
+
itemOf(value) {
|
|
660
|
+
return this.items()?.find((item, index) => this.itemValue(item, index) === value);
|
|
661
|
+
}
|
|
662
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
663
|
+
minVersion: "12.0.0",
|
|
664
|
+
version: "22.2.3",
|
|
665
|
+
ngImport: i0,
|
|
666
|
+
type: TxAccordion,
|
|
667
|
+
deps: [],
|
|
668
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
669
|
+
});
|
|
670
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
671
|
+
minVersion: "17.0.0",
|
|
672
|
+
version: "22.2.3",
|
|
673
|
+
type: TxAccordion,
|
|
674
|
+
isStandalone: true,
|
|
675
|
+
selector: "tx-accordion",
|
|
676
|
+
inputs: {
|
|
677
|
+
value: {
|
|
678
|
+
classPropertyName: "value",
|
|
679
|
+
publicName: "value",
|
|
680
|
+
isSignal: true,
|
|
681
|
+
isRequired: false,
|
|
682
|
+
transformFunction: null
|
|
683
|
+
},
|
|
684
|
+
multiple: {
|
|
685
|
+
classPropertyName: "multiple",
|
|
686
|
+
publicName: "multiple",
|
|
687
|
+
isSignal: true,
|
|
688
|
+
isRequired: false,
|
|
689
|
+
transformFunction: null
|
|
690
|
+
},
|
|
691
|
+
items: {
|
|
692
|
+
classPropertyName: "items",
|
|
693
|
+
publicName: "items",
|
|
694
|
+
isSignal: true,
|
|
695
|
+
isRequired: false,
|
|
696
|
+
transformFunction: null
|
|
697
|
+
},
|
|
698
|
+
expandIcon: {
|
|
699
|
+
classPropertyName: "expandIcon",
|
|
700
|
+
publicName: "expandIcon",
|
|
701
|
+
isSignal: true,
|
|
702
|
+
isRequired: false,
|
|
703
|
+
transformFunction: null
|
|
704
|
+
},
|
|
705
|
+
collapseIcon: {
|
|
706
|
+
classPropertyName: "collapseIcon",
|
|
707
|
+
publicName: "collapseIcon",
|
|
708
|
+
isSignal: true,
|
|
709
|
+
isRequired: false,
|
|
710
|
+
transformFunction: null
|
|
711
|
+
},
|
|
712
|
+
selectOnFocus: {
|
|
713
|
+
classPropertyName: "selectOnFocus",
|
|
714
|
+
publicName: "selectOnFocus",
|
|
715
|
+
isSignal: true,
|
|
716
|
+
isRequired: false,
|
|
717
|
+
transformFunction: null
|
|
718
|
+
},
|
|
719
|
+
dt: {
|
|
720
|
+
classPropertyName: "dt",
|
|
721
|
+
publicName: "dt",
|
|
722
|
+
isSignal: true,
|
|
723
|
+
isRequired: false,
|
|
724
|
+
transformFunction: null
|
|
725
|
+
},
|
|
726
|
+
pt: {
|
|
727
|
+
classPropertyName: "pt",
|
|
728
|
+
publicName: "pt",
|
|
729
|
+
isSignal: true,
|
|
730
|
+
isRequired: false,
|
|
731
|
+
transformFunction: null
|
|
732
|
+
},
|
|
733
|
+
ptOptions: {
|
|
734
|
+
classPropertyName: "ptOptions",
|
|
735
|
+
publicName: "ptOptions",
|
|
736
|
+
isSignal: true,
|
|
737
|
+
isRequired: false,
|
|
738
|
+
transformFunction: null
|
|
739
|
+
},
|
|
740
|
+
unstyled: {
|
|
741
|
+
classPropertyName: "unstyled",
|
|
742
|
+
publicName: "unstyled",
|
|
743
|
+
isSignal: true,
|
|
744
|
+
isRequired: false,
|
|
745
|
+
transformFunction: null
|
|
746
|
+
}
|
|
747
|
+
},
|
|
748
|
+
outputs: {
|
|
749
|
+
value: "valueChange",
|
|
750
|
+
opened: "opened",
|
|
751
|
+
closed: "closed"
|
|
752
|
+
},
|
|
753
|
+
host: {
|
|
754
|
+
properties: {
|
|
755
|
+
"class": "passThrough().root?.class",
|
|
756
|
+
"style": "hostStyle()",
|
|
757
|
+
"attr.data-styled": "!isUnstyled() || null"
|
|
758
|
+
},
|
|
759
|
+
classAttribute: "tx-accordion"
|
|
760
|
+
},
|
|
761
|
+
providers: [{
|
|
762
|
+
provide: TX_ACCORDION,
|
|
763
|
+
useExisting: TxAccordion
|
|
764
|
+
}],
|
|
765
|
+
queries: [
|
|
766
|
+
{
|
|
767
|
+
propertyName: "headerTemplate",
|
|
768
|
+
first: true,
|
|
769
|
+
predicate: TxAccordionHeaderTemplate,
|
|
770
|
+
isSignal: true
|
|
771
|
+
},
|
|
772
|
+
{
|
|
773
|
+
propertyName: "contentTemplate",
|
|
774
|
+
first: true,
|
|
775
|
+
predicate: TxAccordionContentTemplate,
|
|
776
|
+
isSignal: true
|
|
777
|
+
},
|
|
778
|
+
{
|
|
779
|
+
propertyName: "toggleIcon",
|
|
780
|
+
first: true,
|
|
781
|
+
predicate: TxAccordionToggleIconTemplate,
|
|
782
|
+
isSignal: true
|
|
783
|
+
}
|
|
784
|
+
],
|
|
785
|
+
ngImport: i0,
|
|
786
|
+
template: "@if (items(); as items) {\n @for (item of items; track $index; let index = $index) {\n <tx-accordion-panel [value]=\"itemValue(item, index)\" [disabled]=\"item.disabled ?? false\" [tone]=\"item.tone\" [item]=\"item\">\n <tx-accordion-header>\n @if (headerTemplate(); as header) {\n <ng-container\n *ngTemplateOutlet=\"header.template; context: { $implicit: item, item: item, index: index, active: isActive(itemValue(item, index)) }\"\n />\n } @else {\n {{ item.header }}\n }\n </tx-accordion-header>\n <tx-accordion-content>\n @if (contentTemplate(); as content) {\n <ng-template txAccordionContent>\n <ng-container\n *ngTemplateOutlet=\"content.template; context: { $implicit: item, item: item, index: index, active: isActive(itemValue(item, index)) }\"\n />\n </ng-template>\n } @else {\n {{ item.content }}\n }\n </tx-accordion-content>\n </tx-accordion-panel>\n }\n}\n<ng-content />\n",
|
|
787
|
+
styles: [".tx-accordion{display:block;min-width:0}.tx-accordion-panel{display:flex;flex-direction:column}.tx-accordion-header{display:block}.tx-accordion-header__button{display:flex;box-sizing:border-box;align-items:center;justify-content:space-between;width:100%;margin:0;font:inherit;text-align:start;cursor:pointer}.tx-accordion-header__button:disabled{cursor:default}.tx-accordion-header__content{min-width:0}.tx-accordion-header__toggle{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center}.tx-accordion-content{display:grid;grid-template-rows:0fr}.tx-accordion-panel--active>.tx-accordion-content{grid-template-rows:1fr}.tx-accordion-content__wrapper{min-height:0;overflow:hidden}.tx-accordion-panel:not(.tx-accordion-panel--active)>.tx-accordion-content>.tx-accordion-content__wrapper{visibility:hidden}.tx-accordion[data-styled]{--_duration: var(--tx-accordion-transition-duration);--_expand: var(--tx-accordion-expand-duration) var(--tx-accordion-expand-easing);font-family:var(--tx-font-family)}.tx-accordion[data-styled] .tx-accordion-panel{border-style:solid;border-width:var(--tx-accordion-panel-border-width);border-color:var(--tx-accordion-panel-border-color)}.tx-accordion[data-styled] .tx-accordion-header__button{gap:var(--tx-accordion-header-gap);padding:var(--tx-accordion-header-padding);border-style:solid;border-width:var(--tx-accordion-header-border-width);border-color:var(--tx-accordion-header-border-color);border-radius:var(--tx-accordion-header-border-radius);outline:none;background:var(--tx-accordion-header-background);box-shadow:inset var(--_tone-width, 0) 0 0 var(--_tone, transparent);color:var(--tx-accordion-header-color);font-size:var(--tx-accordion-header-font-size);font-weight:var(--tx-accordion-header-font-weight);line-height:1.5;transition:background-color var(--_duration),color var(--_duration),border-radius var(--_expand),box-shadow var(--_duration)}.tx-accordion[data-styled] .tx-accordion-header__button:focus-visible{position:relative;z-index:1;outline:var(--tx-accordion-header-focus-ring-width) solid var(--tx-accordion-header-focus-ring-color);outline-offset:var(--tx-accordion-header-focus-ring-offset)}.tx-accordion[data-styled] .tx-accordion-header__toggle{font-size:var(--tx-accordion-header-toggle-icon-size);color:var(--tx-accordion-header-toggle-icon-color);transition:color var(--_duration),transform var(--_expand)}.tx-accordion[data-styled] .tx-accordion-panel:first-of-type>.tx-accordion-header>.tx-accordion-header__button{border-width:var(--tx-accordion-header-first-border-width);border-start-start-radius:var(--tx-accordion-header-first-top-border-radius);border-start-end-radius:var(--tx-accordion-header-first-top-border-radius)}.tx-accordion[data-styled] .tx-accordion-panel:last-of-type>.tx-accordion-header>.tx-accordion-header__button{border-end-start-radius:var(--tx-accordion-header-last-bottom-border-radius);border-end-end-radius:var(--tx-accordion-header-last-bottom-border-radius)}.tx-accordion[data-styled] .tx-accordion-panel--active:last-of-type>.tx-accordion-header>.tx-accordion-header__button{border-end-start-radius:var(--tx-accordion-header-last-active-bottom-border-radius);border-end-end-radius:var(--tx-accordion-header-last-active-bottom-border-radius)}.tx-accordion[data-styled] .tx-accordion-panel:not(.tx-accordion-panel--active):not(.tx-accordion-panel--disabled)>.tx-accordion-header>.tx-accordion-header__button:hover{background:var(--tx-accordion-header-hover-background);color:var(--tx-accordion-header-hover-color)}.tx-accordion[data-styled] .tx-accordion-panel:not(.tx-accordion-panel--active):not(.tx-accordion-panel--disabled)>.tx-accordion-header>.tx-accordion-header__button:hover .tx-accordion-header__toggle{color:var(--tx-accordion-header-toggle-icon-hover-color)}.tx-accordion[data-styled] .tx-accordion-panel--active>.tx-accordion-header>.tx-accordion-header__button{background:var(--tx-accordion-header-active-background);color:var(--tx-accordion-header-active-color)}.tx-accordion[data-styled] .tx-accordion-panel--active>.tx-accordion-header>.tx-accordion-header__button .tx-accordion-header__toggle{color:var(--tx-accordion-header-toggle-icon-active-color)}.tx-accordion[data-styled] .tx-accordion-panel--active>.tx-accordion-header>.tx-accordion-header__button .tx-accordion-header__toggle:not(.tx-accordion-header__toggle--fixed){transform:rotate(180deg)}.tx-accordion[data-styled] .tx-accordion-panel--active>.tx-accordion-header>.tx-accordion-header__button:hover{background:var(--tx-accordion-header-active-hover-background);color:var(--tx-accordion-header-active-hover-color)}.tx-accordion[data-styled] .tx-accordion-panel--active>.tx-accordion-header>.tx-accordion-header__button:hover .tx-accordion-header__toggle{color:var(--tx-accordion-header-toggle-icon-active-hover-color)}.tx-accordion[data-styled] .tx-accordion-panel--disabled>.tx-accordion-header>.tx-accordion-header__button{opacity:var(--tx-accordion-disabled-opacity)}.tx-accordion[data-styled] .tx-accordion-panel[data-tone]{--_tone-width: var(--tx-accordion-tone-width)}.tx-accordion[data-styled] .tx-accordion-panel[data-tone=info]{--_tone: var(--tx-accordion-tone-info)}.tx-accordion[data-styled] .tx-accordion-panel[data-tone=success]{--_tone: var(--tx-accordion-tone-success)}.tx-accordion[data-styled] .tx-accordion-panel[data-tone=warn]{--_tone: var(--tx-accordion-tone-warn)}.tx-accordion[data-styled] .tx-accordion-panel[data-tone=danger]{--_tone: var(--tx-accordion-tone-danger)}.tx-accordion[data-styled] .tx-accordion-content{transition:grid-template-rows var(--_expand)}.tx-accordion[data-styled] .tx-accordion-panel:not(.tx-accordion-panel--active)>.tx-accordion-content>.tx-accordion-content__wrapper{transition:visibility 0s linear var(--tx-accordion-expand-duration)}.tx-accordion[data-styled] .tx-accordion-content__inner{padding:var(--tx-accordion-content-padding);border-style:solid;border-width:var(--tx-accordion-content-border-width);border-color:var(--tx-accordion-content-border-color);background:var(--tx-accordion-content-background);color:var(--tx-accordion-content-color)}.tx-accordion[data-styled] .tx-accordion-panel:last-of-type>.tx-accordion-content>.tx-accordion-content__wrapper,.tx-accordion[data-styled] .tx-accordion-panel:last-of-type>.tx-accordion-content>.tx-accordion-content__wrapper>.tx-accordion-content__inner{border-end-start-radius:var(--tx-accordion-content-last-bottom-border-radius);border-end-end-radius:var(--tx-accordion-content-last-bottom-border-radius)}@media(prefers-reduced-motion:reduce){.tx-accordion[data-styled] .tx-accordion-header__button,.tx-accordion[data-styled] .tx-accordion-header__toggle,.tx-accordion[data-styled] .tx-accordion-content,.tx-accordion[data-styled] .tx-accordion-panel:not(.tx-accordion-panel--active)>.tx-accordion-content>.tx-accordion-content__wrapper{transition:none}}\n"],
|
|
788
|
+
dependencies: [
|
|
789
|
+
{
|
|
790
|
+
kind: "component",
|
|
791
|
+
type: TxAccordionPanel,
|
|
792
|
+
selector: "tx-accordion-panel",
|
|
793
|
+
inputs: [
|
|
794
|
+
"value",
|
|
795
|
+
"disabled",
|
|
796
|
+
"tone",
|
|
797
|
+
"item"
|
|
798
|
+
]
|
|
799
|
+
},
|
|
800
|
+
{
|
|
801
|
+
kind: "component",
|
|
802
|
+
type: TxAccordionHeader,
|
|
803
|
+
selector: "tx-accordion-header",
|
|
804
|
+
inputs: ["headingLevel"]
|
|
805
|
+
},
|
|
806
|
+
{
|
|
807
|
+
kind: "component",
|
|
808
|
+
type: TxAccordionContent,
|
|
809
|
+
selector: "tx-accordion-content"
|
|
810
|
+
},
|
|
811
|
+
{
|
|
812
|
+
kind: "directive",
|
|
813
|
+
type: TxAccordionContentTemplate,
|
|
814
|
+
selector: "ng-template[txAccordionContent]"
|
|
815
|
+
},
|
|
816
|
+
{
|
|
817
|
+
kind: "directive",
|
|
818
|
+
type: NgTemplateOutlet,
|
|
819
|
+
selector: "[ngTemplateOutlet]",
|
|
820
|
+
inputs: [
|
|
821
|
+
"ngTemplateOutletContext",
|
|
822
|
+
"ngTemplateOutlet",
|
|
823
|
+
"ngTemplateOutletInjector"
|
|
824
|
+
]
|
|
825
|
+
}
|
|
826
|
+
],
|
|
827
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
828
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
829
|
+
});
|
|
830
|
+
};
|
|
831
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
832
|
+
minVersion: "12.0.0",
|
|
833
|
+
version: "22.2.3",
|
|
834
|
+
ngImport: i0,
|
|
835
|
+
type: TxAccordion,
|
|
836
|
+
decorators: [{
|
|
837
|
+
type: Component,
|
|
838
|
+
args: [{
|
|
839
|
+
selector: "tx-accordion",
|
|
840
|
+
imports: [
|
|
841
|
+
TxAccordionPanel,
|
|
842
|
+
TxAccordionHeader,
|
|
843
|
+
TxAccordionContent,
|
|
844
|
+
TxAccordionContentTemplate,
|
|
845
|
+
NgTemplateOutlet
|
|
846
|
+
],
|
|
847
|
+
encapsulation: ViewEncapsulation.None,
|
|
848
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
849
|
+
providers: [{
|
|
850
|
+
provide: TX_ACCORDION,
|
|
851
|
+
useExisting: TxAccordion
|
|
852
|
+
}],
|
|
853
|
+
host: {
|
|
854
|
+
class: "tx-accordion",
|
|
855
|
+
"[class]": "passThrough().root?.class",
|
|
856
|
+
"[style]": "hostStyle()",
|
|
857
|
+
"[attr.data-styled]": "!isUnstyled() || null"
|
|
858
|
+
},
|
|
859
|
+
template: "@if (items(); as items) {\n @for (item of items; track $index; let index = $index) {\n <tx-accordion-panel [value]=\"itemValue(item, index)\" [disabled]=\"item.disabled ?? false\" [tone]=\"item.tone\" [item]=\"item\">\n <tx-accordion-header>\n @if (headerTemplate(); as header) {\n <ng-container\n *ngTemplateOutlet=\"header.template; context: { $implicit: item, item: item, index: index, active: isActive(itemValue(item, index)) }\"\n />\n } @else {\n {{ item.header }}\n }\n </tx-accordion-header>\n <tx-accordion-content>\n @if (contentTemplate(); as content) {\n <ng-template txAccordionContent>\n <ng-container\n *ngTemplateOutlet=\"content.template; context: { $implicit: item, item: item, index: index, active: isActive(itemValue(item, index)) }\"\n />\n </ng-template>\n } @else {\n {{ item.content }}\n }\n </tx-accordion-content>\n </tx-accordion-panel>\n }\n}\n<ng-content />\n",
|
|
860
|
+
styles: [".tx-accordion{display:block;min-width:0}.tx-accordion-panel{display:flex;flex-direction:column}.tx-accordion-header{display:block}.tx-accordion-header__button{display:flex;box-sizing:border-box;align-items:center;justify-content:space-between;width:100%;margin:0;font:inherit;text-align:start;cursor:pointer}.tx-accordion-header__button:disabled{cursor:default}.tx-accordion-header__content{min-width:0}.tx-accordion-header__toggle{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center}.tx-accordion-content{display:grid;grid-template-rows:0fr}.tx-accordion-panel--active>.tx-accordion-content{grid-template-rows:1fr}.tx-accordion-content__wrapper{min-height:0;overflow:hidden}.tx-accordion-panel:not(.tx-accordion-panel--active)>.tx-accordion-content>.tx-accordion-content__wrapper{visibility:hidden}.tx-accordion[data-styled]{--_duration: var(--tx-accordion-transition-duration);--_expand: var(--tx-accordion-expand-duration) var(--tx-accordion-expand-easing);font-family:var(--tx-font-family)}.tx-accordion[data-styled] .tx-accordion-panel{border-style:solid;border-width:var(--tx-accordion-panel-border-width);border-color:var(--tx-accordion-panel-border-color)}.tx-accordion[data-styled] .tx-accordion-header__button{gap:var(--tx-accordion-header-gap);padding:var(--tx-accordion-header-padding);border-style:solid;border-width:var(--tx-accordion-header-border-width);border-color:var(--tx-accordion-header-border-color);border-radius:var(--tx-accordion-header-border-radius);outline:none;background:var(--tx-accordion-header-background);box-shadow:inset var(--_tone-width, 0) 0 0 var(--_tone, transparent);color:var(--tx-accordion-header-color);font-size:var(--tx-accordion-header-font-size);font-weight:var(--tx-accordion-header-font-weight);line-height:1.5;transition:background-color var(--_duration),color var(--_duration),border-radius var(--_expand),box-shadow var(--_duration)}.tx-accordion[data-styled] .tx-accordion-header__button:focus-visible{position:relative;z-index:1;outline:var(--tx-accordion-header-focus-ring-width) solid var(--tx-accordion-header-focus-ring-color);outline-offset:var(--tx-accordion-header-focus-ring-offset)}.tx-accordion[data-styled] .tx-accordion-header__toggle{font-size:var(--tx-accordion-header-toggle-icon-size);color:var(--tx-accordion-header-toggle-icon-color);transition:color var(--_duration),transform var(--_expand)}.tx-accordion[data-styled] .tx-accordion-panel:first-of-type>.tx-accordion-header>.tx-accordion-header__button{border-width:var(--tx-accordion-header-first-border-width);border-start-start-radius:var(--tx-accordion-header-first-top-border-radius);border-start-end-radius:var(--tx-accordion-header-first-top-border-radius)}.tx-accordion[data-styled] .tx-accordion-panel:last-of-type>.tx-accordion-header>.tx-accordion-header__button{border-end-start-radius:var(--tx-accordion-header-last-bottom-border-radius);border-end-end-radius:var(--tx-accordion-header-last-bottom-border-radius)}.tx-accordion[data-styled] .tx-accordion-panel--active:last-of-type>.tx-accordion-header>.tx-accordion-header__button{border-end-start-radius:var(--tx-accordion-header-last-active-bottom-border-radius);border-end-end-radius:var(--tx-accordion-header-last-active-bottom-border-radius)}.tx-accordion[data-styled] .tx-accordion-panel:not(.tx-accordion-panel--active):not(.tx-accordion-panel--disabled)>.tx-accordion-header>.tx-accordion-header__button:hover{background:var(--tx-accordion-header-hover-background);color:var(--tx-accordion-header-hover-color)}.tx-accordion[data-styled] .tx-accordion-panel:not(.tx-accordion-panel--active):not(.tx-accordion-panel--disabled)>.tx-accordion-header>.tx-accordion-header__button:hover .tx-accordion-header__toggle{color:var(--tx-accordion-header-toggle-icon-hover-color)}.tx-accordion[data-styled] .tx-accordion-panel--active>.tx-accordion-header>.tx-accordion-header__button{background:var(--tx-accordion-header-active-background);color:var(--tx-accordion-header-active-color)}.tx-accordion[data-styled] .tx-accordion-panel--active>.tx-accordion-header>.tx-accordion-header__button .tx-accordion-header__toggle{color:var(--tx-accordion-header-toggle-icon-active-color)}.tx-accordion[data-styled] .tx-accordion-panel--active>.tx-accordion-header>.tx-accordion-header__button .tx-accordion-header__toggle:not(.tx-accordion-header__toggle--fixed){transform:rotate(180deg)}.tx-accordion[data-styled] .tx-accordion-panel--active>.tx-accordion-header>.tx-accordion-header__button:hover{background:var(--tx-accordion-header-active-hover-background);color:var(--tx-accordion-header-active-hover-color)}.tx-accordion[data-styled] .tx-accordion-panel--active>.tx-accordion-header>.tx-accordion-header__button:hover .tx-accordion-header__toggle{color:var(--tx-accordion-header-toggle-icon-active-hover-color)}.tx-accordion[data-styled] .tx-accordion-panel--disabled>.tx-accordion-header>.tx-accordion-header__button{opacity:var(--tx-accordion-disabled-opacity)}.tx-accordion[data-styled] .tx-accordion-panel[data-tone]{--_tone-width: var(--tx-accordion-tone-width)}.tx-accordion[data-styled] .tx-accordion-panel[data-tone=info]{--_tone: var(--tx-accordion-tone-info)}.tx-accordion[data-styled] .tx-accordion-panel[data-tone=success]{--_tone: var(--tx-accordion-tone-success)}.tx-accordion[data-styled] .tx-accordion-panel[data-tone=warn]{--_tone: var(--tx-accordion-tone-warn)}.tx-accordion[data-styled] .tx-accordion-panel[data-tone=danger]{--_tone: var(--tx-accordion-tone-danger)}.tx-accordion[data-styled] .tx-accordion-content{transition:grid-template-rows var(--_expand)}.tx-accordion[data-styled] .tx-accordion-panel:not(.tx-accordion-panel--active)>.tx-accordion-content>.tx-accordion-content__wrapper{transition:visibility 0s linear var(--tx-accordion-expand-duration)}.tx-accordion[data-styled] .tx-accordion-content__inner{padding:var(--tx-accordion-content-padding);border-style:solid;border-width:var(--tx-accordion-content-border-width);border-color:var(--tx-accordion-content-border-color);background:var(--tx-accordion-content-background);color:var(--tx-accordion-content-color)}.tx-accordion[data-styled] .tx-accordion-panel:last-of-type>.tx-accordion-content>.tx-accordion-content__wrapper,.tx-accordion[data-styled] .tx-accordion-panel:last-of-type>.tx-accordion-content>.tx-accordion-content__wrapper>.tx-accordion-content__inner{border-end-start-radius:var(--tx-accordion-content-last-bottom-border-radius);border-end-end-radius:var(--tx-accordion-content-last-bottom-border-radius)}@media(prefers-reduced-motion:reduce){.tx-accordion[data-styled] .tx-accordion-header__button,.tx-accordion[data-styled] .tx-accordion-header__toggle,.tx-accordion[data-styled] .tx-accordion-content,.tx-accordion[data-styled] .tx-accordion-panel:not(.tx-accordion-panel--active)>.tx-accordion-content>.tx-accordion-content__wrapper{transition:none}}\n"]
|
|
861
|
+
}]
|
|
862
|
+
}],
|
|
863
|
+
propDecorators: {
|
|
864
|
+
value: [{
|
|
865
|
+
type: i0.Input,
|
|
866
|
+
args: [{
|
|
867
|
+
isSignal: true,
|
|
868
|
+
alias: "value",
|
|
869
|
+
required: false
|
|
870
|
+
}]
|
|
871
|
+
}, {
|
|
872
|
+
type: i0.Output,
|
|
873
|
+
args: ["valueChange"]
|
|
874
|
+
}],
|
|
875
|
+
multiple: [{
|
|
876
|
+
type: i0.Input,
|
|
877
|
+
args: [{
|
|
878
|
+
isSignal: true,
|
|
879
|
+
alias: "multiple",
|
|
880
|
+
required: false
|
|
881
|
+
}]
|
|
882
|
+
}],
|
|
883
|
+
items: [{
|
|
884
|
+
type: i0.Input,
|
|
885
|
+
args: [{
|
|
886
|
+
isSignal: true,
|
|
887
|
+
alias: "items",
|
|
888
|
+
required: false
|
|
889
|
+
}]
|
|
890
|
+
}],
|
|
891
|
+
expandIcon: [{
|
|
892
|
+
type: i0.Input,
|
|
893
|
+
args: [{
|
|
894
|
+
isSignal: true,
|
|
895
|
+
alias: "expandIcon",
|
|
896
|
+
required: false
|
|
897
|
+
}]
|
|
898
|
+
}],
|
|
899
|
+
collapseIcon: [{
|
|
900
|
+
type: i0.Input,
|
|
901
|
+
args: [{
|
|
902
|
+
isSignal: true,
|
|
903
|
+
alias: "collapseIcon",
|
|
904
|
+
required: false
|
|
905
|
+
}]
|
|
906
|
+
}],
|
|
907
|
+
selectOnFocus: [{
|
|
908
|
+
type: i0.Input,
|
|
909
|
+
args: [{
|
|
910
|
+
isSignal: true,
|
|
911
|
+
alias: "selectOnFocus",
|
|
912
|
+
required: false
|
|
913
|
+
}]
|
|
914
|
+
}],
|
|
915
|
+
dt: [{
|
|
916
|
+
type: i0.Input,
|
|
917
|
+
args: [{
|
|
918
|
+
isSignal: true,
|
|
919
|
+
alias: "dt",
|
|
920
|
+
required: false
|
|
921
|
+
}]
|
|
922
|
+
}],
|
|
923
|
+
pt: [{
|
|
924
|
+
type: i0.Input,
|
|
925
|
+
args: [{
|
|
926
|
+
isSignal: true,
|
|
927
|
+
alias: "pt",
|
|
928
|
+
required: false
|
|
929
|
+
}]
|
|
930
|
+
}],
|
|
931
|
+
ptOptions: [{
|
|
932
|
+
type: i0.Input,
|
|
933
|
+
args: [{
|
|
934
|
+
isSignal: true,
|
|
935
|
+
alias: "ptOptions",
|
|
936
|
+
required: false
|
|
937
|
+
}]
|
|
938
|
+
}],
|
|
939
|
+
unstyled: [{
|
|
940
|
+
type: i0.Input,
|
|
941
|
+
args: [{
|
|
942
|
+
isSignal: true,
|
|
943
|
+
alias: "unstyled",
|
|
944
|
+
required: false
|
|
945
|
+
}]
|
|
946
|
+
}],
|
|
947
|
+
opened: [{
|
|
948
|
+
type: i0.Output,
|
|
949
|
+
args: ["opened"]
|
|
950
|
+
}],
|
|
951
|
+
closed: [{
|
|
952
|
+
type: i0.Output,
|
|
953
|
+
args: ["closed"]
|
|
954
|
+
}],
|
|
955
|
+
headerTemplate: [{
|
|
956
|
+
type: i0.ContentChild,
|
|
957
|
+
args: [i0.forwardRef(() => TxAccordionHeaderTemplate), {
|
|
958
|
+
descendants: false,
|
|
959
|
+
isSignal: true
|
|
960
|
+
}]
|
|
961
|
+
}],
|
|
962
|
+
contentTemplate: [{
|
|
963
|
+
type: i0.ContentChild,
|
|
964
|
+
args: [i0.forwardRef(() => TxAccordionContentTemplate), {
|
|
965
|
+
descendants: false,
|
|
966
|
+
isSignal: true
|
|
967
|
+
}]
|
|
968
|
+
}],
|
|
969
|
+
toggleIcon: [{
|
|
970
|
+
type: i0.ContentChild,
|
|
971
|
+
args: [i0.forwardRef(() => TxAccordionToggleIconTemplate), {
|
|
972
|
+
descendants: false,
|
|
973
|
+
isSignal: true
|
|
974
|
+
}]
|
|
975
|
+
}]
|
|
976
|
+
}
|
|
977
|
+
});
|
|
978
|
+
export { TxAccordion, TxAccordionContent, TxAccordionContentTemplate, TxAccordionHeader, TxAccordionHeaderTemplate, TxAccordionPanel, TxAccordionToggleIconTemplate };
|
|
979
|
+
|
|
980
|
+
//# sourceMappingURL=tectra-ng-ui-accordion.mjs.map
|