@4sh/ui-kit 0.15.0 → 0.17.0
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.fr.md +18 -10
- package/README.md +18 -10
- package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs +542 -150
- package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +622 -248
- package/fesm2022/4sh-ui-kit-actions-ui-button.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-link.mjs +385 -152
- package/fesm2022/4sh-ui-kit-actions-ui-link.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs +748 -433
- package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-base-ui-icon.mjs +227 -135
- package/fesm2022/4sh-ui-kit-base-ui-icon.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-base-ui-image.mjs +1200 -633
- package/fesm2022/4sh-ui-kit-base-ui-image.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs +1675 -953
- package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs +243 -117
- package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs +2294 -2039
- package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs +1058 -1113
- package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-field-sign.mjs +1108 -0
- package/fesm2022/4sh-ui-kit-forms-ui-field-sign.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-forms-ui-field.mjs +397 -141
- package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs +1529 -583
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs +383 -224
- package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs +345 -177
- package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs +280 -130
- package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +507 -246
- package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs +401 -291
- package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs +1277 -697
- package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +467 -194
- package/fesm2022/4sh-ui-kit-forms-ui-input.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs +394 -270
- package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-label.mjs +140 -60
- package/fesm2022/4sh-ui-kit-forms-ui-label.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs +386 -167
- package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs +150 -87
- package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs +345 -180
- package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs +582 -392
- package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +1552 -888
- package/fesm2022/4sh-ui-kit-forms-ui-select.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs +485 -338
- package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs +503 -311
- package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs +271 -131
- package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs +457 -214
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs +711 -371
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs +235 -121
- package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms.mjs +723 -596
- package/fesm2022/4sh-ui-kit-forms.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs +546 -242
- package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs +335 -157
- package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs +53 -33
- package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs +218 -121
- package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs +192 -100
- package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs +456 -204
- package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs +314 -147
- package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs +179 -82
- package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs +268 -123
- package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs +391 -146
- package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs +158 -76
- package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs +159 -80
- package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs +295 -131
- package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs +211 -83
- package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs +784 -414
- package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs +822 -476
- package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs +1014 -599
- package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-card.mjs +403 -189
- package/fesm2022/4sh-ui-kit-layout-ui-card.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs +707 -272
- package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs +1146 -568
- package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs +519 -308
- package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-motion.mjs +252 -150
- package/fesm2022/4sh-ui-kit-motion.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs +793 -341
- package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs +351 -194
- package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs +511 -220
- package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs +910 -548
- package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs +1128 -555
- package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs +915 -470
- package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs +931 -474
- package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-overlay.mjs +26 -109
- package/fesm2022/4sh-ui-kit-overlay.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-ripple.mjs +329 -290
- package/fesm2022/4sh-ui-kit-ripple.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs +709 -248
- package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-table-ui-table.mjs +2633 -1370
- package/fesm2022/4sh-ui-kit-table-ui-table.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-theming.mjs +112 -113
- package/fesm2022/4sh-ui-kit-theming.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-types.mjs +0 -12
- package/fesm2022/4sh-ui-kit.mjs +3 -15
- package/fesm2022/4sh-ui-kit.mjs.map +1 -1
- package/mcp/data/component-api.json +313 -2
- package/mcp/data/text-search-docs.json +177 -17
- package/mcp/data/ui-config.json +378 -1
- package/mcp/index.js +8190 -2876
- package/mcp/package.json +1 -1
- package/package.json +5 -1
- package/styles/component-vars.scss +22 -1
- package/styles/utils/_mixins.scss +11 -0
- package/types/4sh-ui-kit-actions-ui-button-split.d.ts +198 -87
- package/types/4sh-ui-kit-actions-ui-button.d.ts +240 -116
- package/types/4sh-ui-kit-actions-ui-link.d.ts +136 -67
- package/types/4sh-ui-kit-actions-ui-speed-dial.d.ts +287 -180
- package/types/4sh-ui-kit-base-ui-icon.d.ts +92 -58
- package/types/4sh-ui-kit-base-ui-image.d.ts +406 -205
- package/types/4sh-ui-kit-forms-ui-autocomplete.d.ts +577 -367
- package/types/4sh-ui-kit-forms-ui-checkbox.d.ts +77 -42
- package/types/4sh-ui-kit-forms-ui-datepicker.d.ts +953 -700
- package/types/4sh-ui-kit-forms-ui-editor.d.ts +374 -340
- package/types/4sh-ui-kit-forms-ui-field-sign.d.ts +325 -0
- package/types/4sh-ui-kit-forms-ui-field.d.ts +150 -64
- package/types/4sh-ui-kit-forms-ui-file-upload.d.ts +583 -241
- package/types/4sh-ui-kit-forms-ui-input-date.d.ts +152 -103
- package/types/4sh-ui-kit-forms-ui-input-group.d.ts +109 -63
- package/types/4sh-ui-kit-forms-ui-input-mask.d.ts +93 -57
- package/types/4sh-ui-kit-forms-ui-input-number.d.ts +171 -93
- package/types/4sh-ui-kit-forms-ui-input-otp.d.ts +137 -100
- package/types/4sh-ui-kit-forms-ui-input-tags.d.ts +469 -309
- package/types/4sh-ui-kit-forms-ui-input.d.ts +198 -116
- package/types/4sh-ui-kit-forms-ui-knob.d.ts +132 -80
- package/types/4sh-ui-kit-forms-ui-label.d.ts +47 -22
- package/types/4sh-ui-kit-forms-ui-nudger.d.ts +134 -67
- package/types/4sh-ui-kit-forms-ui-radio.d.ts +48 -33
- package/types/4sh-ui-kit-forms-ui-rating.d.ts +120 -86
- package/types/4sh-ui-kit-forms-ui-segment-control.d.ts +221 -147
- package/types/4sh-ui-kit-forms-ui-select.d.ts +561 -357
- package/types/4sh-ui-kit-forms-ui-slider.d.ts +156 -105
- package/types/4sh-ui-kit-forms-ui-swatch-picker.d.ts +133 -97
- package/types/4sh-ui-kit-forms-ui-textarea.d.ts +90 -54
- package/types/4sh-ui-kit-forms-ui-toggle-block.d.ts +158 -94
- package/types/4sh-ui-kit-forms-ui-toggle-button.d.ts +314 -178
- package/types/4sh-ui-kit-forms-ui-toggle.d.ts +88 -54
- package/types/4sh-ui-kit-forms.d.ts +291 -186
- package/types/4sh-ui-kit-informative-ui-accordion.d.ts +162 -92
- package/types/4sh-ui-kit-informative-ui-alert.d.ts +128 -62
- package/types/4sh-ui-kit-informative-ui-avatar-group.d.ts +8 -8
- package/types/4sh-ui-kit-informative-ui-avatar.d.ts +81 -44
- package/types/4sh-ui-kit-informative-ui-badge.d.ts +71 -41
- package/types/4sh-ui-kit-informative-ui-chip.d.ts +194 -99
- package/types/4sh-ui-kit-informative-ui-empty-state.d.ts +105 -65
- package/types/4sh-ui-kit-informative-ui-helper.d.ts +64 -34
- package/types/4sh-ui-kit-informative-ui-progress-bar.d.ts +120 -65
- package/types/4sh-ui-kit-informative-ui-read-only.d.ts +147 -67
- package/types/4sh-ui-kit-informative-ui-separator.d.ts +65 -35
- package/types/4sh-ui-kit-informative-ui-skeleton.d.ts +62 -32
- package/types/4sh-ui-kit-informative-ui-spinner.d.ts +111 -50
- package/types/4sh-ui-kit-informative-ui-tag.d.ts +77 -37
- package/types/4sh-ui-kit-informative-ui-toast.d.ts +300 -180
- package/types/4sh-ui-kit-informative-ui-tooltip.d.ts +269 -141
- package/types/4sh-ui-kit-layout-ui-bottom-sheet.d.ts +360 -221
- package/types/4sh-ui-kit-layout-ui-card.d.ts +119 -79
- package/types/4sh-ui-kit-layout-ui-drawer.d.ts +244 -120
- package/types/4sh-ui-kit-layout-ui-modal.d.ts +409 -222
- package/types/4sh-ui-kit-layout-ui-popover.d.ts +149 -91
- package/types/4sh-ui-kit-motion.d.ts +117 -67
- package/types/4sh-ui-kit-navigation-ui-bottom-tab-bar.d.ts +279 -145
- package/types/4sh-ui-kit-navigation-ui-breadcrumb.d.ts +134 -96
- package/types/4sh-ui-kit-navigation-ui-context-menu.d.ts +148 -89
- package/types/4sh-ui-kit-navigation-ui-menu.d.ts +282 -201
- package/types/4sh-ui-kit-navigation-ui-sidebar.d.ts +425 -261
- package/types/4sh-ui-kit-navigation-ui-stepper.d.ts +279 -183
- package/types/4sh-ui-kit-navigation-ui-tabs.d.ts +275 -173
- package/types/4sh-ui-kit-overlay.d.ts +6 -6
- package/types/4sh-ui-kit-ripple.d.ts +99 -74
- package/types/4sh-ui-kit-table-ui-paginator.d.ts +237 -133
- package/types/4sh-ui-kit-table-ui-table.d.ts +769 -470
- package/types/4sh-ui-kit-theming.d.ts +27 -29
- package/types/4sh-ui-kit-types.d.ts +6 -5
- package/types/4sh-ui-kit.d.ts +4 -3
- package/fesm2022/4sh-ui-kit-types.mjs.map +0 -1
|
@@ -1,244 +1,548 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import {
|
|
3
|
-
import { UiIcon } from
|
|
4
|
-
import { UiSeparator } from
|
|
5
|
-
|
|
6
|
-
/** Process-wide counter for unique header/content ids (aria wiring). */
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { Component, Directive, booleanAttribute, computed, contentChildren, inject, input, model, output, viewChild } from "@angular/core";
|
|
3
|
+
import { UiIcon } from "@4sh/ui-kit/base/ui-icon";
|
|
4
|
+
import { UiSeparator } from "@4sh/ui-kit/informative/ui-separator";
|
|
7
5
|
let nextUid = 0;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
6
|
+
var UiAccordionHeader = class UiAccordionHeader {
|
|
7
|
+
static {
|
|
8
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
9
|
+
minVersion: "12.0.0",
|
|
10
|
+
version: "22.3.0",
|
|
11
|
+
ngImport: i0,
|
|
12
|
+
type: UiAccordionHeader,
|
|
13
|
+
deps: [],
|
|
14
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
static {
|
|
18
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
19
|
+
minVersion: "14.0.0",
|
|
20
|
+
version: "22.3.0",
|
|
21
|
+
type: UiAccordionHeader,
|
|
22
|
+
isStandalone: true,
|
|
23
|
+
selector: "[uiAccordionHeader], ui-accordion-header",
|
|
24
|
+
ngImport: i0
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
29
|
+
minVersion: "12.0.0",
|
|
30
|
+
version: "22.3.0",
|
|
31
|
+
ngImport: i0,
|
|
32
|
+
type: UiAccordionHeader,
|
|
33
|
+
decorators: [{
|
|
34
|
+
type: Directive,
|
|
35
|
+
args: [{ selector: "[uiAccordionHeader], ui-accordion-header" }]
|
|
36
|
+
}]
|
|
37
|
+
});
|
|
38
|
+
var UiAccordionContent = class UiAccordionContent {
|
|
39
|
+
static {
|
|
40
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
41
|
+
minVersion: "12.0.0",
|
|
42
|
+
version: "22.3.0",
|
|
43
|
+
ngImport: i0,
|
|
44
|
+
type: UiAccordionContent,
|
|
45
|
+
deps: [],
|
|
46
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
static {
|
|
50
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
51
|
+
minVersion: "14.0.0",
|
|
52
|
+
version: "22.3.0",
|
|
53
|
+
type: UiAccordionContent,
|
|
54
|
+
isStandalone: true,
|
|
55
|
+
selector: "[uiAccordionContent], ui-accordion-content",
|
|
56
|
+
ngImport: i0
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
61
|
+
minVersion: "12.0.0",
|
|
62
|
+
version: "22.3.0",
|
|
63
|
+
ngImport: i0,
|
|
64
|
+
type: UiAccordionContent,
|
|
65
|
+
decorators: [{
|
|
66
|
+
type: Directive,
|
|
67
|
+
args: [{ selector: "[uiAccordionContent], ui-accordion-content" }]
|
|
68
|
+
}]
|
|
69
|
+
});
|
|
70
|
+
var UiAccordionPanel = class UiAccordionPanel {
|
|
71
|
+
constructor() {
|
|
72
|
+
this.value = input.required(...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
73
|
+
this.header = input(...ngDevMode ? [void 0, { debugName: "header" }] : /* istanbul ignore next */ []);
|
|
74
|
+
this.disabled = input(false, {
|
|
75
|
+
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
76
|
+
transform: booleanAttribute
|
|
77
|
+
});
|
|
78
|
+
this.separator = input(void 0, ...ngDevMode ? [{ debugName: "separator" }] : /* istanbul ignore next */ []);
|
|
79
|
+
this.control = input(void 0, ...ngDevMode ? [{ debugName: "control" }] : /* istanbul ignore next */ []);
|
|
80
|
+
this.accordion = inject(UiAccordion);
|
|
81
|
+
this.headerButton = viewChild.required("headerBtn", ...ngDevMode ? [{ debugName: "headerButton" }] : /* istanbul ignore next */ []);
|
|
82
|
+
this.uid = ++nextUid;
|
|
83
|
+
this.headerId = `ui-accordion-header-${this.uid}`;
|
|
84
|
+
this.contentId = `ui-accordion-content-${this.uid}`;
|
|
85
|
+
this.active = computed(() => this.accordion.isActive(this.value()), ...ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []);
|
|
86
|
+
this.icon = computed(() => this.active() ? this.accordion.collapseIcon() : this.accordion.expandIcon(), ...ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []);
|
|
87
|
+
this.showSeparator = computed(() => this.separator() ?? this.accordion.separator(), ...ngDevMode ? [{ debugName: "showSeparator" }] : /* istanbul ignore next */ []);
|
|
88
|
+
this.showControl = computed(() => this.control() ?? this.accordion.control(), ...ngDevMode ? [{ debugName: "showControl" }] : /* istanbul ignore next */ []);
|
|
89
|
+
}
|
|
90
|
+
focus() {
|
|
91
|
+
this.headerButton().nativeElement.focus();
|
|
92
|
+
}
|
|
93
|
+
toggle(event) {
|
|
94
|
+
if (this.disabled()) return;
|
|
95
|
+
this.accordion.toggle(this.value(), event);
|
|
96
|
+
}
|
|
97
|
+
onFocus(event) {
|
|
98
|
+
if (this.accordion.selectOnFocus() && !this.disabled()) this.accordion.open(this.value(), event);
|
|
99
|
+
}
|
|
100
|
+
static {
|
|
101
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
102
|
+
minVersion: "12.0.0",
|
|
103
|
+
version: "22.3.0",
|
|
104
|
+
ngImport: i0,
|
|
105
|
+
type: UiAccordionPanel,
|
|
106
|
+
deps: [],
|
|
107
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
static {
|
|
111
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
112
|
+
minVersion: "17.0.0",
|
|
113
|
+
version: "22.3.0",
|
|
114
|
+
type: UiAccordionPanel,
|
|
115
|
+
isStandalone: true,
|
|
116
|
+
selector: "ui-accordion-panel",
|
|
117
|
+
inputs: {
|
|
118
|
+
value: {
|
|
119
|
+
classPropertyName: "value",
|
|
120
|
+
publicName: "value",
|
|
121
|
+
isSignal: true,
|
|
122
|
+
isRequired: true,
|
|
123
|
+
transformFunction: null
|
|
124
|
+
},
|
|
125
|
+
header: {
|
|
126
|
+
classPropertyName: "header",
|
|
127
|
+
publicName: "header",
|
|
128
|
+
isSignal: true,
|
|
129
|
+
isRequired: false,
|
|
130
|
+
transformFunction: null
|
|
131
|
+
},
|
|
132
|
+
disabled: {
|
|
133
|
+
classPropertyName: "disabled",
|
|
134
|
+
publicName: "disabled",
|
|
135
|
+
isSignal: true,
|
|
136
|
+
isRequired: false,
|
|
137
|
+
transformFunction: null
|
|
138
|
+
},
|
|
139
|
+
separator: {
|
|
140
|
+
classPropertyName: "separator",
|
|
141
|
+
publicName: "separator",
|
|
142
|
+
isSignal: true,
|
|
143
|
+
isRequired: false,
|
|
144
|
+
transformFunction: null
|
|
145
|
+
},
|
|
146
|
+
control: {
|
|
147
|
+
classPropertyName: "control",
|
|
148
|
+
publicName: "control",
|
|
149
|
+
isSignal: true,
|
|
150
|
+
isRequired: false,
|
|
151
|
+
transformFunction: null
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
host: {
|
|
155
|
+
properties: {
|
|
156
|
+
"class._active": "active()",
|
|
157
|
+
"class._disabled": "disabled()"
|
|
158
|
+
},
|
|
159
|
+
classAttribute: "ui-accordion-panel"
|
|
160
|
+
},
|
|
161
|
+
viewQueries: [{
|
|
162
|
+
propertyName: "headerButton",
|
|
163
|
+
first: true,
|
|
164
|
+
predicate: ["headerBtn"],
|
|
165
|
+
descendants: true,
|
|
166
|
+
isSignal: true
|
|
167
|
+
}],
|
|
168
|
+
ngImport: i0,
|
|
169
|
+
template: "<button\n #headerBtn\n type=\"button\"\n class=\"ui-accordion-header\"\n [id]=\"headerId\"\n [disabled]=\"disabled()\"\n [attr.aria-expanded]=\"active()\"\n [attr.aria-controls]=\"contentId\"\n (click)=\"toggle($event)\"\n (focus)=\"onFocus($event)\"\n>\n <span class=\"ui-accordion-header-slot\">\n @if (header(); as h) {\n {{ h }}\n } @else {\n <ng-content select=\"[uiAccordionHeader], ui-accordion-header\" />\n }\n </span>\n\n @if (showControl()) {\n <span class=\"ui-accordion-header-control\" aria-hidden=\"true\">\n <ui-icon [name]=\"icon()\" size=\"default\" />\n </span>\n }\n</button>\n\n@if (showSeparator()) {\n <ui-separator class=\"ui-accordion-separator\" size=\"small\" />\n}\n\n<div\n class=\"ui-accordion-content\"\n [class._open]=\"active()\"\n [class._no-motion]=\"!accordion.motion()\"\n role=\"region\"\n [id]=\"contentId\"\n [attr.aria-labelledby]=\"headerId\"\n [attr.inert]=\"active() ? null : ''\"\n>\n <div class=\"ui-accordion-content-inner\">\n <div class=\"ui-accordion-content-body\">\n <ng-content />\n </div>\n </div>\n</div>\n",
|
|
170
|
+
styles: [":host{display:block;width:100%}.ui-accordion-header{display:flex;align-items:center;justify-content:space-between;gap:var(--units-md);width:100%;margin:0;padding:var(--units-sm) 0;border:0;border-radius:var(--radius-sm);background:none;color:var(--ui-accordion-header-color, var(--informative-defaultlow-content-default));font-family:var(--ui-accordion-font-family, var(--fontfamily-base));text-align:left;cursor:pointer;transition:color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),box-shadow var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-accordion-header:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-accordion-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-accordion-header-focus-ring-color, var(--navigation-high-stroke-focused))}.ui-accordion-header:disabled{cursor:not-allowed}.ui-accordion-header-slot{flex:1 1 auto;min-width:0;font-weight:var(--ui-accordion-weight, var(--weight-bold));font-size:var(--size-typography-text-xl);line-height:1.2}.ui-accordion-header-control{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:var(--ui-accordion-control-size, 2.5rem);height:var(--ui-accordion-control-size, 2.5rem);border-radius:var(--radius-default);background-color:var(--ui-accordion-control-surface, var(--navigation-high-surface-default));color:var(--ui-accordion-control-color, var(--navigation-high-content-default));transition:background-color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),box-shadow var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-accordion-header:hover:not(:disabled) .ui-accordion-header-control{background-color:var(--ui-accordion-control-surface-hover, var(--navigation-high-surface-hover));color:var(--ui-accordion-control-color-hover, var(--navigation-high-content-hover))}.ui-accordion-header:active:not(:disabled) .ui-accordion-header-control{background-color:var(--ui-accordion-control-surface-pressed, var(--navigation-high-surface-pressed));color:var(--ui-accordion-control-color-pressed, var(--navigation-high-content-pressed))}.ui-accordion-header:focus-visible .ui-accordion-header-control{background-color:var(--ui-accordion-control-surface-focus, var(--navigation-high-surface-focused));color:var(--ui-accordion-control-color-focus, var(--navigation-high-content-focused));box-shadow:inset 0 0 0 var(--stroke-default) var(--ui-accordion-control-stroke-focus, var(--navigation-high-stroke-focused))}.ui-accordion-separator{width:100%}.ui-accordion-content{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows var(--ui-motion-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-easing, var(--transition-easeinout))) var(--ui-motion-delay, 0ms),opacity var(--ui-motion-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-easing, var(--transition-easeinout))) var(--ui-motion-delay, 0ms)}.ui-accordion-content._open{grid-template-rows:1fr;opacity:1}.ui-accordion-content._no-motion{transition:none}@media(prefers-reduced-motion:reduce){.ui-accordion-content{transition-duration:.01ms}}:root[data-motion=off] .ui-accordion-content{transition-duration:.01ms}.ui-accordion-content-inner{overflow:hidden;min-height:0}.ui-accordion-content-body{padding-block:var(--units-default);color:var(--ui-accordion-content-color, var(--informative-defaultlow-content-default));font-family:var(--ui-accordion-font-family, var(--fontfamily-base));font-size:var(--size-typography-text-default);line-height:1.5}:host._disabled .ui-accordion-header{color:var(--ui-accordion-header-color-disabled, var(--navigation-high-content-disabled))}:host._disabled .ui-accordion-header-control{background-color:var(--ui-accordion-control-surface-disabled, var(--navigation-high-surface-disabled));color:var(--ui-accordion-control-color-disabled, var(--navigation-high-content-disabled))}\n"],
|
|
171
|
+
dependencies: [{
|
|
172
|
+
kind: "component",
|
|
173
|
+
type: UiIcon,
|
|
174
|
+
selector: "ui-icon",
|
|
175
|
+
inputs: [
|
|
176
|
+
"name",
|
|
177
|
+
"size",
|
|
178
|
+
"type",
|
|
179
|
+
"family",
|
|
180
|
+
"decorative",
|
|
181
|
+
"ariaLabel"
|
|
182
|
+
]
|
|
183
|
+
}, {
|
|
184
|
+
kind: "component",
|
|
185
|
+
type: UiSeparator,
|
|
186
|
+
selector: "ui-separator",
|
|
187
|
+
inputs: [
|
|
188
|
+
"label",
|
|
189
|
+
"orientation",
|
|
190
|
+
"variant",
|
|
191
|
+
"size",
|
|
192
|
+
"labelAlign",
|
|
193
|
+
"ariaLabel"
|
|
194
|
+
]
|
|
195
|
+
}]
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
200
|
+
minVersion: "12.0.0",
|
|
201
|
+
version: "22.3.0",
|
|
202
|
+
ngImport: i0,
|
|
203
|
+
type: UiAccordionPanel,
|
|
204
|
+
decorators: [{
|
|
205
|
+
type: Component,
|
|
206
|
+
args: [{
|
|
207
|
+
selector: "ui-accordion-panel",
|
|
208
|
+
imports: [UiIcon, UiSeparator],
|
|
209
|
+
host: {
|
|
210
|
+
class: "ui-accordion-panel",
|
|
211
|
+
"[class._active]": "active()",
|
|
212
|
+
"[class._disabled]": "disabled()"
|
|
213
|
+
},
|
|
214
|
+
template: "<button\n #headerBtn\n type=\"button\"\n class=\"ui-accordion-header\"\n [id]=\"headerId\"\n [disabled]=\"disabled()\"\n [attr.aria-expanded]=\"active()\"\n [attr.aria-controls]=\"contentId\"\n (click)=\"toggle($event)\"\n (focus)=\"onFocus($event)\"\n>\n <span class=\"ui-accordion-header-slot\">\n @if (header(); as h) {\n {{ h }}\n } @else {\n <ng-content select=\"[uiAccordionHeader], ui-accordion-header\" />\n }\n </span>\n\n @if (showControl()) {\n <span class=\"ui-accordion-header-control\" aria-hidden=\"true\">\n <ui-icon [name]=\"icon()\" size=\"default\" />\n </span>\n }\n</button>\n\n@if (showSeparator()) {\n <ui-separator class=\"ui-accordion-separator\" size=\"small\" />\n}\n\n<div\n class=\"ui-accordion-content\"\n [class._open]=\"active()\"\n [class._no-motion]=\"!accordion.motion()\"\n role=\"region\"\n [id]=\"contentId\"\n [attr.aria-labelledby]=\"headerId\"\n [attr.inert]=\"active() ? null : ''\"\n>\n <div class=\"ui-accordion-content-inner\">\n <div class=\"ui-accordion-content-body\">\n <ng-content />\n </div>\n </div>\n</div>\n",
|
|
215
|
+
styles: [":host{display:block;width:100%}.ui-accordion-header{display:flex;align-items:center;justify-content:space-between;gap:var(--units-md);width:100%;margin:0;padding:var(--units-sm) 0;border:0;border-radius:var(--radius-sm);background:none;color:var(--ui-accordion-header-color, var(--informative-defaultlow-content-default));font-family:var(--ui-accordion-font-family, var(--fontfamily-base));text-align:left;cursor:pointer;transition:color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),box-shadow var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-accordion-header:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-accordion-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-accordion-header-focus-ring-color, var(--navigation-high-stroke-focused))}.ui-accordion-header:disabled{cursor:not-allowed}.ui-accordion-header-slot{flex:1 1 auto;min-width:0;font-weight:var(--ui-accordion-weight, var(--weight-bold));font-size:var(--size-typography-text-xl);line-height:1.2}.ui-accordion-header-control{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:var(--ui-accordion-control-size, 2.5rem);height:var(--ui-accordion-control-size, 2.5rem);border-radius:var(--radius-default);background-color:var(--ui-accordion-control-surface, var(--navigation-high-surface-default));color:var(--ui-accordion-control-color, var(--navigation-high-content-default));transition:background-color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),box-shadow var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-accordion-header:hover:not(:disabled) .ui-accordion-header-control{background-color:var(--ui-accordion-control-surface-hover, var(--navigation-high-surface-hover));color:var(--ui-accordion-control-color-hover, var(--navigation-high-content-hover))}.ui-accordion-header:active:not(:disabled) .ui-accordion-header-control{background-color:var(--ui-accordion-control-surface-pressed, var(--navigation-high-surface-pressed));color:var(--ui-accordion-control-color-pressed, var(--navigation-high-content-pressed))}.ui-accordion-header:focus-visible .ui-accordion-header-control{background-color:var(--ui-accordion-control-surface-focus, var(--navigation-high-surface-focused));color:var(--ui-accordion-control-color-focus, var(--navigation-high-content-focused));box-shadow:inset 0 0 0 var(--stroke-default) var(--ui-accordion-control-stroke-focus, var(--navigation-high-stroke-focused))}.ui-accordion-separator{width:100%}.ui-accordion-content{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows var(--ui-motion-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-easing, var(--transition-easeinout))) var(--ui-motion-delay, 0ms),opacity var(--ui-motion-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-easing, var(--transition-easeinout))) var(--ui-motion-delay, 0ms)}.ui-accordion-content._open{grid-template-rows:1fr;opacity:1}.ui-accordion-content._no-motion{transition:none}@media(prefers-reduced-motion:reduce){.ui-accordion-content{transition-duration:.01ms}}:root[data-motion=off] .ui-accordion-content{transition-duration:.01ms}.ui-accordion-content-inner{overflow:hidden;min-height:0}.ui-accordion-content-body{padding-block:var(--units-default);color:var(--ui-accordion-content-color, var(--informative-defaultlow-content-default));font-family:var(--ui-accordion-font-family, var(--fontfamily-base));font-size:var(--size-typography-text-default);line-height:1.5}:host._disabled .ui-accordion-header{color:var(--ui-accordion-header-color-disabled, var(--navigation-high-content-disabled))}:host._disabled .ui-accordion-header-control{background-color:var(--ui-accordion-control-surface-disabled, var(--navigation-high-surface-disabled));color:var(--ui-accordion-control-color-disabled, var(--navigation-high-content-disabled))}\n"]
|
|
216
|
+
}]
|
|
217
|
+
}],
|
|
218
|
+
propDecorators: {
|
|
219
|
+
value: [{
|
|
220
|
+
type: i0.Input,
|
|
221
|
+
args: [{
|
|
222
|
+
isSignal: true,
|
|
223
|
+
alias: "value",
|
|
224
|
+
required: true
|
|
225
|
+
}]
|
|
226
|
+
}],
|
|
227
|
+
header: [{
|
|
228
|
+
type: i0.Input,
|
|
229
|
+
args: [{
|
|
230
|
+
isSignal: true,
|
|
231
|
+
alias: "header",
|
|
232
|
+
required: false
|
|
233
|
+
}]
|
|
234
|
+
}],
|
|
235
|
+
disabled: [{
|
|
236
|
+
type: i0.Input,
|
|
237
|
+
args: [{
|
|
238
|
+
isSignal: true,
|
|
239
|
+
alias: "disabled",
|
|
240
|
+
required: false
|
|
241
|
+
}]
|
|
242
|
+
}],
|
|
243
|
+
separator: [{
|
|
244
|
+
type: i0.Input,
|
|
245
|
+
args: [{
|
|
246
|
+
isSignal: true,
|
|
247
|
+
alias: "separator",
|
|
248
|
+
required: false
|
|
249
|
+
}]
|
|
250
|
+
}],
|
|
251
|
+
control: [{
|
|
252
|
+
type: i0.Input,
|
|
253
|
+
args: [{
|
|
254
|
+
isSignal: true,
|
|
255
|
+
alias: "control",
|
|
256
|
+
required: false
|
|
257
|
+
}]
|
|
258
|
+
}],
|
|
259
|
+
headerButton: [{
|
|
260
|
+
type: i0.ViewChild,
|
|
261
|
+
args: ["headerBtn", { isSignal: true }]
|
|
262
|
+
}]
|
|
263
|
+
}
|
|
264
|
+
});
|
|
265
|
+
var UiAccordion = class UiAccordion {
|
|
266
|
+
constructor() {
|
|
267
|
+
this.value = model(...ngDevMode ? [void 0, { debugName: "value" }] : /* istanbul ignore next */ []);
|
|
268
|
+
this.multiple = input(false, {
|
|
269
|
+
...ngDevMode ? { debugName: "multiple" } : /* istanbul ignore next */ {},
|
|
270
|
+
transform: booleanAttribute
|
|
271
|
+
});
|
|
272
|
+
this.selectOnFocus = input(false, {
|
|
273
|
+
...ngDevMode ? { debugName: "selectOnFocus" } : /* istanbul ignore next */ {},
|
|
274
|
+
transform: booleanAttribute
|
|
275
|
+
});
|
|
276
|
+
this.separator = input(true, {
|
|
277
|
+
...ngDevMode ? { debugName: "separator" } : /* istanbul ignore next */ {},
|
|
278
|
+
transform: booleanAttribute
|
|
279
|
+
});
|
|
280
|
+
this.control = input(true, {
|
|
281
|
+
...ngDevMode ? { debugName: "control" } : /* istanbul ignore next */ {},
|
|
282
|
+
transform: booleanAttribute
|
|
283
|
+
});
|
|
284
|
+
this.expandIcon = input("chevron-down", ...ngDevMode ? [{ debugName: "expandIcon" }] : /* istanbul ignore next */ []);
|
|
285
|
+
this.collapseIcon = input("chevron-up", ...ngDevMode ? [{ debugName: "collapseIcon" }] : /* istanbul ignore next */ []);
|
|
286
|
+
this.motion = input(true, {
|
|
287
|
+
...ngDevMode ? { debugName: "motion" } : /* istanbul ignore next */ {},
|
|
288
|
+
transform: booleanAttribute
|
|
289
|
+
});
|
|
290
|
+
this.opened = output();
|
|
291
|
+
this.closed = output();
|
|
292
|
+
this.panels = contentChildren(UiAccordionPanel, ...ngDevMode ? [{ debugName: "panels" }] : /* istanbul ignore next */ []);
|
|
293
|
+
}
|
|
294
|
+
isActive(value) {
|
|
295
|
+
const v = this.value();
|
|
296
|
+
if (this.multiple()) return Array.isArray(v) && v.includes(value);
|
|
297
|
+
return v === value;
|
|
298
|
+
}
|
|
299
|
+
toggle(value, event) {
|
|
300
|
+
const wasActive = this.isActive(value);
|
|
301
|
+
this.setActive(value, !wasActive);
|
|
302
|
+
(wasActive ? this.closed : this.opened).emit({
|
|
303
|
+
value,
|
|
304
|
+
originalEvent: event
|
|
305
|
+
});
|
|
306
|
+
}
|
|
307
|
+
open(value, event) {
|
|
308
|
+
if (this.isActive(value)) return;
|
|
309
|
+
this.setActive(value, true);
|
|
310
|
+
this.opened.emit({
|
|
311
|
+
value,
|
|
312
|
+
originalEvent: event
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
setActive(value, on) {
|
|
316
|
+
if (this.multiple()) {
|
|
317
|
+
const current = Array.isArray(this.value()) ? [...this.value()] : [];
|
|
318
|
+
const index = current.indexOf(value);
|
|
319
|
+
if (on && index === -1) current.push(value);
|
|
320
|
+
else if (!on && index !== -1) current.splice(index, 1);
|
|
321
|
+
this.value.set(current);
|
|
322
|
+
} else this.value.set(on ? value : void 0);
|
|
323
|
+
}
|
|
324
|
+
onKeydown(event) {
|
|
325
|
+
if (![
|
|
326
|
+
"ArrowDown",
|
|
327
|
+
"ArrowUp",
|
|
328
|
+
"Home",
|
|
329
|
+
"End"
|
|
330
|
+
].includes(event.key)) return;
|
|
331
|
+
const items = this.panels().filter((p) => !p.disabled());
|
|
332
|
+
if (!items.length) return;
|
|
333
|
+
const current = items.findIndex((p) => p.headerButton().nativeElement === document.activeElement);
|
|
334
|
+
if (current === -1) return;
|
|
335
|
+
event.preventDefault();
|
|
336
|
+
let next = current;
|
|
337
|
+
switch (event.key) {
|
|
338
|
+
case "ArrowDown":
|
|
339
|
+
next = (current + 1) % items.length;
|
|
340
|
+
break;
|
|
341
|
+
case "ArrowUp":
|
|
342
|
+
next = (current - 1 + items.length) % items.length;
|
|
343
|
+
break;
|
|
344
|
+
case "Home":
|
|
345
|
+
next = 0;
|
|
346
|
+
break;
|
|
347
|
+
case "End": next = items.length - 1;
|
|
348
|
+
}
|
|
349
|
+
items[next].focus();
|
|
350
|
+
}
|
|
351
|
+
static {
|
|
352
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
353
|
+
minVersion: "12.0.0",
|
|
354
|
+
version: "22.3.0",
|
|
355
|
+
ngImport: i0,
|
|
356
|
+
type: UiAccordion,
|
|
357
|
+
deps: [],
|
|
358
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
359
|
+
});
|
|
360
|
+
}
|
|
361
|
+
static {
|
|
362
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
363
|
+
minVersion: "17.2.0",
|
|
364
|
+
version: "22.3.0",
|
|
365
|
+
type: UiAccordion,
|
|
366
|
+
isStandalone: true,
|
|
367
|
+
selector: "ui-accordion",
|
|
368
|
+
inputs: {
|
|
369
|
+
value: {
|
|
370
|
+
classPropertyName: "value",
|
|
371
|
+
publicName: "value",
|
|
372
|
+
isSignal: true,
|
|
373
|
+
isRequired: false,
|
|
374
|
+
transformFunction: null
|
|
375
|
+
},
|
|
376
|
+
multiple: {
|
|
377
|
+
classPropertyName: "multiple",
|
|
378
|
+
publicName: "multiple",
|
|
379
|
+
isSignal: true,
|
|
380
|
+
isRequired: false,
|
|
381
|
+
transformFunction: null
|
|
382
|
+
},
|
|
383
|
+
selectOnFocus: {
|
|
384
|
+
classPropertyName: "selectOnFocus",
|
|
385
|
+
publicName: "selectOnFocus",
|
|
386
|
+
isSignal: true,
|
|
387
|
+
isRequired: false,
|
|
388
|
+
transformFunction: null
|
|
389
|
+
},
|
|
390
|
+
separator: {
|
|
391
|
+
classPropertyName: "separator",
|
|
392
|
+
publicName: "separator",
|
|
393
|
+
isSignal: true,
|
|
394
|
+
isRequired: false,
|
|
395
|
+
transformFunction: null
|
|
396
|
+
},
|
|
397
|
+
control: {
|
|
398
|
+
classPropertyName: "control",
|
|
399
|
+
publicName: "control",
|
|
400
|
+
isSignal: true,
|
|
401
|
+
isRequired: false,
|
|
402
|
+
transformFunction: null
|
|
403
|
+
},
|
|
404
|
+
expandIcon: {
|
|
405
|
+
classPropertyName: "expandIcon",
|
|
406
|
+
publicName: "expandIcon",
|
|
407
|
+
isSignal: true,
|
|
408
|
+
isRequired: false,
|
|
409
|
+
transformFunction: null
|
|
410
|
+
},
|
|
411
|
+
collapseIcon: {
|
|
412
|
+
classPropertyName: "collapseIcon",
|
|
413
|
+
publicName: "collapseIcon",
|
|
414
|
+
isSignal: true,
|
|
415
|
+
isRequired: false,
|
|
416
|
+
transformFunction: null
|
|
417
|
+
},
|
|
418
|
+
motion: {
|
|
419
|
+
classPropertyName: "motion",
|
|
420
|
+
publicName: "motion",
|
|
421
|
+
isSignal: true,
|
|
422
|
+
isRequired: false,
|
|
423
|
+
transformFunction: null
|
|
424
|
+
}
|
|
425
|
+
},
|
|
426
|
+
outputs: {
|
|
427
|
+
value: "valueChange",
|
|
428
|
+
opened: "opened",
|
|
429
|
+
closed: "closed"
|
|
430
|
+
},
|
|
431
|
+
host: {
|
|
432
|
+
listeners: { "keydown": "onKeydown($event)" },
|
|
433
|
+
classAttribute: "ui-accordion"
|
|
434
|
+
},
|
|
435
|
+
queries: [{
|
|
436
|
+
propertyName: "panels",
|
|
437
|
+
predicate: UiAccordionPanel,
|
|
438
|
+
isSignal: true
|
|
439
|
+
}],
|
|
440
|
+
ngImport: i0,
|
|
441
|
+
template: "<ng-content />",
|
|
442
|
+
isInline: true,
|
|
443
|
+
styles: [":host{display:flex;flex-direction:column;width:100%}\n"]
|
|
444
|
+
});
|
|
445
|
+
}
|
|
446
|
+
};
|
|
447
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
448
|
+
minVersion: "12.0.0",
|
|
449
|
+
version: "22.3.0",
|
|
450
|
+
ngImport: i0,
|
|
451
|
+
type: UiAccordion,
|
|
452
|
+
decorators: [{
|
|
453
|
+
type: Component,
|
|
454
|
+
args: [{
|
|
455
|
+
selector: "ui-accordion",
|
|
456
|
+
template: "<ng-content />",
|
|
457
|
+
host: {
|
|
458
|
+
class: "ui-accordion",
|
|
459
|
+
"(keydown)": "onKeydown($event)"
|
|
460
|
+
},
|
|
461
|
+
styles: [":host{display:flex;flex-direction:column;width:100%}\n"]
|
|
462
|
+
}]
|
|
463
|
+
}],
|
|
464
|
+
propDecorators: {
|
|
465
|
+
value: [{
|
|
466
|
+
type: i0.Input,
|
|
467
|
+
args: [{
|
|
468
|
+
isSignal: true,
|
|
469
|
+
alias: "value",
|
|
470
|
+
required: false
|
|
471
|
+
}]
|
|
472
|
+
}, {
|
|
473
|
+
type: i0.Output,
|
|
474
|
+
args: ["valueChange"]
|
|
475
|
+
}],
|
|
476
|
+
multiple: [{
|
|
477
|
+
type: i0.Input,
|
|
478
|
+
args: [{
|
|
479
|
+
isSignal: true,
|
|
480
|
+
alias: "multiple",
|
|
481
|
+
required: false
|
|
482
|
+
}]
|
|
483
|
+
}],
|
|
484
|
+
selectOnFocus: [{
|
|
485
|
+
type: i0.Input,
|
|
486
|
+
args: [{
|
|
487
|
+
isSignal: true,
|
|
488
|
+
alias: "selectOnFocus",
|
|
489
|
+
required: false
|
|
490
|
+
}]
|
|
491
|
+
}],
|
|
492
|
+
separator: [{
|
|
493
|
+
type: i0.Input,
|
|
494
|
+
args: [{
|
|
495
|
+
isSignal: true,
|
|
496
|
+
alias: "separator",
|
|
497
|
+
required: false
|
|
498
|
+
}]
|
|
499
|
+
}],
|
|
500
|
+
control: [{
|
|
501
|
+
type: i0.Input,
|
|
502
|
+
args: [{
|
|
503
|
+
isSignal: true,
|
|
504
|
+
alias: "control",
|
|
505
|
+
required: false
|
|
506
|
+
}]
|
|
507
|
+
}],
|
|
508
|
+
expandIcon: [{
|
|
509
|
+
type: i0.Input,
|
|
510
|
+
args: [{
|
|
511
|
+
isSignal: true,
|
|
512
|
+
alias: "expandIcon",
|
|
513
|
+
required: false
|
|
514
|
+
}]
|
|
515
|
+
}],
|
|
516
|
+
collapseIcon: [{
|
|
517
|
+
type: i0.Input,
|
|
518
|
+
args: [{
|
|
519
|
+
isSignal: true,
|
|
520
|
+
alias: "collapseIcon",
|
|
521
|
+
required: false
|
|
522
|
+
}]
|
|
523
|
+
}],
|
|
524
|
+
motion: [{
|
|
525
|
+
type: i0.Input,
|
|
526
|
+
args: [{
|
|
527
|
+
isSignal: true,
|
|
528
|
+
alias: "motion",
|
|
529
|
+
required: false
|
|
530
|
+
}]
|
|
531
|
+
}],
|
|
532
|
+
opened: [{
|
|
533
|
+
type: i0.Output,
|
|
534
|
+
args: ["opened"]
|
|
535
|
+
}],
|
|
536
|
+
closed: [{
|
|
537
|
+
type: i0.Output,
|
|
538
|
+
args: ["closed"]
|
|
539
|
+
}],
|
|
540
|
+
panels: [{
|
|
541
|
+
type: i0.ContentChildren,
|
|
542
|
+
args: [i0.forwardRef(() => UiAccordionPanel), { isSignal: true }]
|
|
543
|
+
}]
|
|
544
|
+
}
|
|
545
|
+
});
|
|
243
546
|
export { UiAccordion, UiAccordionContent, UiAccordionHeader, UiAccordionPanel };
|
|
244
|
-
|
|
547
|
+
|
|
548
|
+
//# sourceMappingURL=4sh-ui-kit-informative-ui-accordion.mjs.map
|