@4sh/ui-kit 0.16.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 +10 -10
- package/README.md +10 -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 -1000
- 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 -2048
- 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 -138
- package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +507 -257
- package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs +401 -312
- 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 -199
- 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 -137
- 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 +721 -638
- 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 +299 -2
- package/mcp/data/text-search-docs.json +149 -9
- 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/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 +573 -376
- 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 -59
- package/types/4sh-ui-kit-forms-ui-input-number.d.ts +171 -96
- package/types/4sh-ui-kit-forms-ui-input-otp.d.ts +137 -104
- package/types/4sh-ui-kit-forms-ui-input-tags.d.ts +469 -309
- package/types/4sh-ui-kit-forms-ui-input.d.ts +198 -118
- 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 -56
- 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 +275 -194
- 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,393 +1,583 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import {
|
|
3
|
-
import { NgTemplateOutlet } from
|
|
4
|
-
import { NG_VALUE_ACCESSOR } from
|
|
5
|
-
import { BaseFieldControl } from
|
|
6
|
-
import { UiIcon } from
|
|
7
|
-
|
|
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
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { Component, DestroyRef, ElementRef, afterNextRender, afterRenderEffect, booleanAttribute, computed, effect, forwardRef, inject, input, isDevMode, output, signal, untracked, viewChildren } from "@angular/core";
|
|
3
|
+
import { NgTemplateOutlet } from "@angular/common";
|
|
4
|
+
import { NG_VALUE_ACCESSOR } from "@angular/forms";
|
|
5
|
+
import { BaseFieldControl } from "@4sh/ui-kit/forms";
|
|
6
|
+
import { UiIcon } from "@4sh/ui-kit/base/ui-icon";
|
|
7
|
+
var UiSegmentControl = class UiSegmentControl extends BaseFieldControl {
|
|
8
|
+
constructor() {
|
|
9
|
+
super();
|
|
10
|
+
this.options = input([], ...ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []);
|
|
11
|
+
this.optionLabel = input(...ngDevMode ? [void 0, { debugName: "optionLabel" }] : /* istanbul ignore next */ []);
|
|
12
|
+
this.optionValue = input(...ngDevMode ? [void 0, { debugName: "optionValue" }] : /* istanbul ignore next */ []);
|
|
13
|
+
this.optionDisabled = input(...ngDevMode ? [void 0, { debugName: "optionDisabled" }] : /* istanbul ignore next */ []);
|
|
14
|
+
this.optionIcon = input(...ngDevMode ? [void 0, { debugName: "optionIcon" }] : /* istanbul ignore next */ []);
|
|
15
|
+
this.dataKey = input(...ngDevMode ? [void 0, { debugName: "dataKey" }] : /* istanbul ignore next */ []);
|
|
16
|
+
this.multiple = input(false, {
|
|
17
|
+
...ngDevMode ? { debugName: "multiple" } : /* istanbul ignore next */ {},
|
|
18
|
+
transform: booleanAttribute
|
|
19
|
+
});
|
|
20
|
+
this.ripple = input(true, {
|
|
21
|
+
...ngDevMode ? { debugName: "ripple" } : /* istanbul ignore next */ {},
|
|
22
|
+
transform: booleanAttribute
|
|
23
|
+
});
|
|
24
|
+
this.allowEmpty = input(true, {
|
|
25
|
+
...ngDevMode ? { debugName: "allowEmpty" } : /* istanbul ignore next */ {},
|
|
26
|
+
transform: booleanAttribute
|
|
27
|
+
});
|
|
28
|
+
this.size = input("default", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
29
|
+
this.orientation = input("horizontal", ...ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []);
|
|
30
|
+
this.fluid = input(false, {
|
|
31
|
+
...ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {},
|
|
32
|
+
transform: booleanAttribute
|
|
33
|
+
});
|
|
34
|
+
this.motion = input(true, {
|
|
35
|
+
...ngDevMode ? { debugName: "motion" } : /* istanbul ignore next */ {},
|
|
36
|
+
transform: booleanAttribute
|
|
37
|
+
});
|
|
38
|
+
this.itemTemplate = input(...ngDevMode ? [void 0, { debugName: "itemTemplate" }] : /* istanbul ignore next */ []);
|
|
39
|
+
this.selectionChange = output();
|
|
40
|
+
this.optionClick = output();
|
|
41
|
+
this.host = inject(ElementRef);
|
|
42
|
+
this.hostDestroyRef = inject(DestroyRef);
|
|
43
|
+
this.optionEls = viewChildren("optionBtn", ...ngDevMode ? [{ debugName: "optionEls" }] : /* istanbul ignore next */ []);
|
|
44
|
+
this.modelValue = signal(null, ...ngDevMode ? [{ debugName: "modelValue" }] : /* istanbul ignore next */ []);
|
|
45
|
+
this.focusedIndex = signal(0, ...ngDevMode ? [{ debugName: "focusedIndex" }] : /* istanbul ignore next */ []);
|
|
46
|
+
this.thumb = signal(null, ...ngDevMode ? [{ debugName: "thumb" }] : /* istanbul ignore next */ []);
|
|
47
|
+
this.resizeTick = signal(0, ...ngDevMode ? [{ debugName: "resizeTick" }] : /* istanbul ignore next */ []);
|
|
48
|
+
this.iconSize = computed(() => this.size() === "small" ? "sm" : "default", ...ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []);
|
|
49
|
+
this.normalizedOptions = computed(() => {
|
|
50
|
+
const raw = this.options() ?? [];
|
|
51
|
+
const model = this.modelValue();
|
|
52
|
+
const groupDisabled = this.isDisabled();
|
|
53
|
+
return raw.map((option, index) => {
|
|
54
|
+
const value = this.resolveValue(option);
|
|
55
|
+
const label = this.resolveLabel(option);
|
|
56
|
+
return {
|
|
57
|
+
key: `${this.uid}-${index}`,
|
|
58
|
+
index,
|
|
59
|
+
value,
|
|
60
|
+
label,
|
|
61
|
+
icon: this.resolveIcon(option),
|
|
62
|
+
ariaLabel: this.resolveAriaLabel(option),
|
|
63
|
+
disabled: groupDisabled || this.resolveDisabled(option),
|
|
64
|
+
selected: this.isValueSelected(value, model),
|
|
65
|
+
original: option
|
|
66
|
+
};
|
|
67
|
+
});
|
|
68
|
+
}, ...ngDevMode ? [{ debugName: "normalizedOptions" }] : /* istanbul ignore next */ []);
|
|
69
|
+
this.selectedIndex = computed(() => this.multiple() ? -1 : this.normalizedOptions().findIndex((o) => o.selected), ...ngDevMode ? [{ debugName: "selectedIndex" }] : /* istanbul ignore next */ []);
|
|
70
|
+
this.showThumb = computed(() => !this.multiple() && this.selectedIndex() !== -1 && this.thumb() !== null, ...ngDevMode ? [{ debugName: "showThumb" }] : /* istanbul ignore next */ []);
|
|
71
|
+
this.thumbTransform = computed(() => {
|
|
72
|
+
const t = this.thumb();
|
|
73
|
+
return t ? `translate(${t.x}px, ${t.y}px)` : null;
|
|
74
|
+
}, ...ngDevMode ? [{ debugName: "thumbTransform" }] : /* istanbul ignore next */ []);
|
|
75
|
+
this.rovingIndex = computed(() => {
|
|
76
|
+
const opts = this.normalizedOptions();
|
|
77
|
+
if (!opts.length) return -1;
|
|
78
|
+
if (!this.multiple()) {
|
|
79
|
+
const selected = opts.findIndex((o) => o.selected && !o.disabled);
|
|
80
|
+
if (selected !== -1) return selected;
|
|
81
|
+
}
|
|
82
|
+
const focused = this.focusedIndex();
|
|
83
|
+
if (opts[focused] && !opts[focused].disabled) return focused;
|
|
84
|
+
return opts.findIndex((o) => !o.disabled);
|
|
85
|
+
}, ...ngDevMode ? [{ debugName: "rovingIndex" }] : /* istanbul ignore next */ []);
|
|
86
|
+
afterNextRender(() => {
|
|
87
|
+
const ro = new ResizeObserver(() => this.resizeTick.update((v) => v + 1));
|
|
88
|
+
ro.observe(this.host.nativeElement);
|
|
89
|
+
this.hostDestroyRef.onDestroy(() => ro.disconnect());
|
|
90
|
+
});
|
|
91
|
+
afterRenderEffect(() => {
|
|
92
|
+
const index = this.selectedIndex();
|
|
93
|
+
this.resizeTick();
|
|
94
|
+
this.size();
|
|
95
|
+
this.orientation();
|
|
96
|
+
this.fluid();
|
|
97
|
+
this.normalizedOptions();
|
|
98
|
+
if (this.multiple() || index === -1) return;
|
|
99
|
+
const el = this.optionEls()[index]?.nativeElement;
|
|
100
|
+
const track = this.host.nativeElement;
|
|
101
|
+
if (!el) return;
|
|
102
|
+
const next = {
|
|
103
|
+
x: el.offsetLeft - track.clientLeft,
|
|
104
|
+
y: el.offsetTop - track.clientTop,
|
|
105
|
+
w: el.offsetWidth,
|
|
106
|
+
h: el.offsetHeight
|
|
107
|
+
};
|
|
108
|
+
const cur = untracked(this.thumb);
|
|
109
|
+
if (!cur || cur.x !== next.x || cur.y !== next.y || cur.w !== next.w || cur.h !== next.h) this.thumb.set(next);
|
|
110
|
+
});
|
|
111
|
+
if (isDevMode()) effect(() => {
|
|
112
|
+
if (!this.ariaLabel() && !this.ariaLabelledBy()) console.warn("[ui-segment-control] Group has no accessible name: provide `ariaLabel` (or `ariaLabelledBy`).");
|
|
113
|
+
if (this.normalizedOptions().some((o) => o.icon && !o.label && !o.ariaLabel)) console.warn("[ui-segment-control] Icon-only segment has no accessible name: add `ariaLabel` on the option.");
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
uidPrefix() {
|
|
117
|
+
return "ui-segment-control";
|
|
118
|
+
}
|
|
119
|
+
focus(options) {
|
|
120
|
+
const index = this.rovingIndex();
|
|
121
|
+
if (index !== -1) this.optionEls()[index]?.nativeElement.focus(options);
|
|
122
|
+
}
|
|
123
|
+
tabindexFor(index) {
|
|
124
|
+
return index === this.rovingIndex() ? 0 : -1;
|
|
125
|
+
}
|
|
126
|
+
select(option, event) {
|
|
127
|
+
if (option.disabled || this.readonly()) return;
|
|
128
|
+
const value = option.value;
|
|
129
|
+
let next;
|
|
130
|
+
if (this.multiple()) {
|
|
131
|
+
const current = Array.isArray(this.modelValue()) ? [...this.modelValue()] : [];
|
|
132
|
+
const at = current.findIndex((v) => this.equals(v, value));
|
|
133
|
+
if (at !== -1) {
|
|
134
|
+
if (!this.allowEmpty() && current.length === 1) return;
|
|
135
|
+
current.splice(at, 1);
|
|
136
|
+
} else current.push(value);
|
|
137
|
+
next = current;
|
|
138
|
+
} else if (option.selected) {
|
|
139
|
+
if (!this.allowEmpty()) return;
|
|
140
|
+
next = null;
|
|
141
|
+
} else next = value;
|
|
142
|
+
this.focusedIndex.set(option.index);
|
|
143
|
+
this.modelValue.set(next);
|
|
144
|
+
this.emitChange(next);
|
|
145
|
+
this.selectionChange.emit(next);
|
|
146
|
+
this.optionClick.emit({
|
|
147
|
+
option: option.original,
|
|
148
|
+
value,
|
|
149
|
+
index: option.index,
|
|
150
|
+
originalEvent: event
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
onOptionFocus(index) {
|
|
154
|
+
this.focusedIndex.set(index);
|
|
155
|
+
}
|
|
156
|
+
onKeydown(event) {
|
|
157
|
+
const horizontal = this.orientation() === "horizontal";
|
|
158
|
+
const nextKey = horizontal ? "ArrowRight" : "ArrowDown";
|
|
159
|
+
const prevKey = horizontal ? "ArrowLeft" : "ArrowUp";
|
|
160
|
+
if (![
|
|
161
|
+
nextKey,
|
|
162
|
+
prevKey,
|
|
163
|
+
"Home",
|
|
164
|
+
"End"
|
|
165
|
+
].includes(event.key)) return;
|
|
166
|
+
const enabled = this.normalizedOptions().filter((o) => !o.disabled);
|
|
167
|
+
if (!enabled.length) return;
|
|
168
|
+
event.preventDefault();
|
|
169
|
+
let pos = enabled.findIndex((o) => o.index === this.focusedIndex());
|
|
170
|
+
if (pos === -1) pos = 0;
|
|
171
|
+
switch (event.key) {
|
|
172
|
+
case nextKey:
|
|
173
|
+
pos = (pos + 1) % enabled.length;
|
|
174
|
+
break;
|
|
175
|
+
case prevKey:
|
|
176
|
+
pos = (pos - 1 + enabled.length) % enabled.length;
|
|
177
|
+
break;
|
|
178
|
+
case "Home":
|
|
179
|
+
pos = 0;
|
|
180
|
+
break;
|
|
181
|
+
case "End": pos = enabled.length - 1;
|
|
182
|
+
}
|
|
183
|
+
const target = enabled[pos];
|
|
184
|
+
this.focusedIndex.set(target.index);
|
|
185
|
+
this.optionEls()[target.index]?.nativeElement.focus();
|
|
186
|
+
if (!this.multiple()) this.select(target, event);
|
|
187
|
+
}
|
|
188
|
+
onFocusOut(event) {
|
|
189
|
+
const next = event.relatedTarget;
|
|
190
|
+
if (!next || !this.host.nativeElement.contains(next)) this.emitTouch();
|
|
191
|
+
}
|
|
192
|
+
isObject(option) {
|
|
193
|
+
return typeof option === "object" && option !== null;
|
|
194
|
+
}
|
|
195
|
+
resolveValue(option) {
|
|
196
|
+
const field = this.optionValue();
|
|
197
|
+
if (field && this.isObject(option)) return option[field];
|
|
198
|
+
if (this.isObject(option) && "value" in option) return option["value"];
|
|
199
|
+
return option;
|
|
200
|
+
}
|
|
201
|
+
resolveLabel(option) {
|
|
202
|
+
const field = this.optionLabel();
|
|
203
|
+
if (field && this.isObject(option)) return this.asText(option[field]);
|
|
204
|
+
if (this.isObject(option)) return "label" in option ? this.asText(option["label"]) : null;
|
|
205
|
+
return this.asText(option);
|
|
206
|
+
}
|
|
207
|
+
resolveIcon(option) {
|
|
208
|
+
const field = this.optionIcon();
|
|
209
|
+
if (field && this.isObject(option)) return this.asText(option[field]);
|
|
210
|
+
if (this.isObject(option) && "icon" in option) return this.asText(option["icon"]);
|
|
211
|
+
return null;
|
|
212
|
+
}
|
|
213
|
+
resolveAriaLabel(option) {
|
|
214
|
+
if (this.isObject(option) && "ariaLabel" in option) return this.asText(option["ariaLabel"]);
|
|
215
|
+
return null;
|
|
216
|
+
}
|
|
217
|
+
resolveDisabled(option) {
|
|
218
|
+
const field = this.optionDisabled();
|
|
219
|
+
if (field && this.isObject(option)) return !!option[field];
|
|
220
|
+
if (this.isObject(option) && "disabled" in option) return !!option["disabled"];
|
|
221
|
+
return false;
|
|
222
|
+
}
|
|
223
|
+
asText(value) {
|
|
224
|
+
return value === null || value === void 0 ? null : String(value);
|
|
225
|
+
}
|
|
226
|
+
isValueSelected(value, model) {
|
|
227
|
+
if (this.multiple()) return Array.isArray(model) && model.some((v) => this.equals(v, value));
|
|
228
|
+
return this.equals(model, value);
|
|
229
|
+
}
|
|
230
|
+
equals(a, b) {
|
|
231
|
+
const key = this.dataKey();
|
|
232
|
+
if (key && this.isObject(a) && this.isObject(b)) return a[key] === b[key];
|
|
233
|
+
return a === b;
|
|
234
|
+
}
|
|
235
|
+
static {
|
|
236
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
237
|
+
minVersion: "12.0.0",
|
|
238
|
+
version: "22.3.0",
|
|
239
|
+
ngImport: i0,
|
|
240
|
+
type: UiSegmentControl,
|
|
241
|
+
deps: [],
|
|
242
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
static {
|
|
246
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
247
|
+
minVersion: "17.0.0",
|
|
248
|
+
version: "22.3.0",
|
|
249
|
+
type: UiSegmentControl,
|
|
250
|
+
isStandalone: true,
|
|
251
|
+
selector: "ui-segment-control",
|
|
252
|
+
inputs: {
|
|
253
|
+
options: {
|
|
254
|
+
classPropertyName: "options",
|
|
255
|
+
publicName: "options",
|
|
256
|
+
isSignal: true,
|
|
257
|
+
isRequired: false,
|
|
258
|
+
transformFunction: null
|
|
259
|
+
},
|
|
260
|
+
optionLabel: {
|
|
261
|
+
classPropertyName: "optionLabel",
|
|
262
|
+
publicName: "optionLabel",
|
|
263
|
+
isSignal: true,
|
|
264
|
+
isRequired: false,
|
|
265
|
+
transformFunction: null
|
|
266
|
+
},
|
|
267
|
+
optionValue: {
|
|
268
|
+
classPropertyName: "optionValue",
|
|
269
|
+
publicName: "optionValue",
|
|
270
|
+
isSignal: true,
|
|
271
|
+
isRequired: false,
|
|
272
|
+
transformFunction: null
|
|
273
|
+
},
|
|
274
|
+
optionDisabled: {
|
|
275
|
+
classPropertyName: "optionDisabled",
|
|
276
|
+
publicName: "optionDisabled",
|
|
277
|
+
isSignal: true,
|
|
278
|
+
isRequired: false,
|
|
279
|
+
transformFunction: null
|
|
280
|
+
},
|
|
281
|
+
optionIcon: {
|
|
282
|
+
classPropertyName: "optionIcon",
|
|
283
|
+
publicName: "optionIcon",
|
|
284
|
+
isSignal: true,
|
|
285
|
+
isRequired: false,
|
|
286
|
+
transformFunction: null
|
|
287
|
+
},
|
|
288
|
+
dataKey: {
|
|
289
|
+
classPropertyName: "dataKey",
|
|
290
|
+
publicName: "dataKey",
|
|
291
|
+
isSignal: true,
|
|
292
|
+
isRequired: false,
|
|
293
|
+
transformFunction: null
|
|
294
|
+
},
|
|
295
|
+
multiple: {
|
|
296
|
+
classPropertyName: "multiple",
|
|
297
|
+
publicName: "multiple",
|
|
298
|
+
isSignal: true,
|
|
299
|
+
isRequired: false,
|
|
300
|
+
transformFunction: null
|
|
301
|
+
},
|
|
302
|
+
ripple: {
|
|
303
|
+
classPropertyName: "ripple",
|
|
304
|
+
publicName: "ripple",
|
|
305
|
+
isSignal: true,
|
|
306
|
+
isRequired: false,
|
|
307
|
+
transformFunction: null
|
|
308
|
+
},
|
|
309
|
+
allowEmpty: {
|
|
310
|
+
classPropertyName: "allowEmpty",
|
|
311
|
+
publicName: "allowEmpty",
|
|
312
|
+
isSignal: true,
|
|
313
|
+
isRequired: false,
|
|
314
|
+
transformFunction: null
|
|
315
|
+
},
|
|
316
|
+
size: {
|
|
317
|
+
classPropertyName: "size",
|
|
318
|
+
publicName: "size",
|
|
319
|
+
isSignal: true,
|
|
320
|
+
isRequired: false,
|
|
321
|
+
transformFunction: null
|
|
322
|
+
},
|
|
323
|
+
orientation: {
|
|
324
|
+
classPropertyName: "orientation",
|
|
325
|
+
publicName: "orientation",
|
|
326
|
+
isSignal: true,
|
|
327
|
+
isRequired: false,
|
|
328
|
+
transformFunction: null
|
|
329
|
+
},
|
|
330
|
+
fluid: {
|
|
331
|
+
classPropertyName: "fluid",
|
|
332
|
+
publicName: "fluid",
|
|
333
|
+
isSignal: true,
|
|
334
|
+
isRequired: false,
|
|
335
|
+
transformFunction: null
|
|
336
|
+
},
|
|
337
|
+
motion: {
|
|
338
|
+
classPropertyName: "motion",
|
|
339
|
+
publicName: "motion",
|
|
340
|
+
isSignal: true,
|
|
341
|
+
isRequired: false,
|
|
342
|
+
transformFunction: null
|
|
343
|
+
},
|
|
344
|
+
itemTemplate: {
|
|
345
|
+
classPropertyName: "itemTemplate",
|
|
346
|
+
publicName: "itemTemplate",
|
|
347
|
+
isSignal: true,
|
|
348
|
+
isRequired: false,
|
|
349
|
+
transformFunction: null
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
outputs: {
|
|
353
|
+
selectionChange: "selectionChange",
|
|
354
|
+
optionClick: "optionClick"
|
|
355
|
+
},
|
|
356
|
+
host: {
|
|
357
|
+
listeners: {
|
|
358
|
+
"keydown": "onKeydown($event)",
|
|
359
|
+
"focusout": "onFocusOut($event)"
|
|
360
|
+
},
|
|
361
|
+
properties: {
|
|
362
|
+
"class._small": "size() === 'small'",
|
|
363
|
+
"class._vertical": "orientation() === 'vertical'",
|
|
364
|
+
"class._fluid": "fluid()",
|
|
365
|
+
"class._multiple": "multiple()",
|
|
366
|
+
"class._disabled": "isDisabled()",
|
|
367
|
+
"class._invalid": "isInvalid()",
|
|
368
|
+
"class._no-motion": "!motion()",
|
|
369
|
+
"attr.role": "multiple() ? 'group' : 'radiogroup'",
|
|
370
|
+
"attr.aria-label": "ariaLabel() || null",
|
|
371
|
+
"attr.aria-labelledby": "ariaLabelledBy() || null",
|
|
372
|
+
"attr.aria-invalid": "isInvalid() ? 'true' : null",
|
|
373
|
+
"attr.aria-disabled": "isDisabled() ? 'true' : null"
|
|
374
|
+
},
|
|
375
|
+
classAttribute: "ui-segment-control"
|
|
376
|
+
},
|
|
377
|
+
providers: [{
|
|
378
|
+
provide: NG_VALUE_ACCESSOR,
|
|
379
|
+
useExisting: forwardRef(() => UiSegmentControl),
|
|
380
|
+
multi: true
|
|
381
|
+
}],
|
|
382
|
+
viewQueries: [{
|
|
383
|
+
propertyName: "optionEls",
|
|
384
|
+
predicate: ["optionBtn"],
|
|
385
|
+
descendants: true,
|
|
386
|
+
isSignal: true
|
|
387
|
+
}],
|
|
388
|
+
usesInheritance: true,
|
|
389
|
+
ngImport: i0,
|
|
390
|
+
template: "@if (showThumb()) {\n <span\n class=\"ui-segment-control-thumb\"\n aria-hidden=\"true\"\n [style.transform]=\"thumbTransform()\"\n [style.width.px]=\"thumb()?.w\"\n [style.height.px]=\"thumb()?.h\"\n ></span>\n}\n\n@for (option of normalizedOptions(); track option.key) {\n <button\n #optionBtn\n type=\"button\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n class=\"ui-segment-control-option\"\n [class._selected]=\"option.selected\"\n [disabled]=\"option.disabled\"\n [attr.role]=\"multiple() ? null : 'radio'\"\n [attr.aria-checked]=\"multiple() ? null : option.selected\"\n [attr.aria-pressed]=\"multiple() ? option.selected : null\"\n [attr.aria-label]=\"option.ariaLabel\"\n [attr.tabindex]=\"tabindexFor(option.index)\"\n (click)=\"select(option, $event)\"\n (focus)=\"onOptionFocus(option.index)\"\n >\n @if (itemTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: option.original,\n option: option.original,\n selected: option.selected,\n index: option.index,\n }\"\n />\n } @else {\n @if (option.icon) {\n <ui-icon class=\"ui-segment-control-icon\" [name]=\"option.icon\" [size]=\"iconSize()\" />\n }\n @if (option.label) {\n <span class=\"ui-segment-control-label\" [attr.data-label]=\"option.label\">{{\n option.label\n }}</span>\n }\n }\n </button>\n}\n",
|
|
391
|
+
styles: [":host{position:relative;display:inline-flex;align-items:stretch;box-sizing:border-box;padding:var(--ui-segment-control-padding, var(--units-xs));gap:var(--ui-segment-control-gap, 0);border-radius:var(--ui-segment-control-radius, var(--radius-md));box-shadow:inset 0 0 0 var(--ui-segment-control-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) var(--ui-segment-control-stroke, var(--global-border-default));font-family:var(--ui-segment-control-font-family, var(--fontfamily-base));-webkit-user-select:none;user-select:none;vertical-align:middle;min-height:var(--ui-segment-control-min-height, 2.75rem)}:host .ui-segment-control-option{min-height:var(--ui-segment-control-option-min-height, 2.25rem);min-width:var(--ui-segment-control-option-min-width, 2.25rem);padding:0 var(--ui-segment-control-option-padding-x, var(--units-default));font-size:var(--ui-segment-control-font-size, var(--size-typography-text-default))}:host._small{min-height:var(--ui-segment-control-min-height-small, 2.5rem)}:host._small .ui-segment-control-option{min-height:var(--ui-segment-control-option-min-height-small, 2rem);min-width:var(--ui-segment-control-option-min-width-small, 2rem);padding:0 var(--ui-segment-control-option-padding-x-small, var(--units-md));font-size:var(--ui-segment-control-font-size-small, var(--size-typography-text-md))}.ui-segment-control-thumb{position:absolute;top:0;left:0;z-index:0;border-radius:var(--ui-segment-control-thumb-radius, var(--radius-sm));background-color:var(--ui-segment-control-thumb-surface, var(--actions-high-surface-default));pointer-events:none;transition:transform 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),width 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),height 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)}@media(prefers-reduced-motion:reduce){.ui-segment-control-thumb{transition:none}}:root[data-motion=off] .ui-segment-control-thumb{transition:none}:host._no-motion .ui-segment-control-thumb{transition:none}.ui-segment-control-icon{line-height:0}.ui-segment-control-label{display:inline-flex;flex-direction:column;align-items:center}.ui-segment-control-label:after{content:attr(data-label);height:0;overflow:hidden;font-weight:var(--ui-segment-control-weight-selected, var(--weight-bold));visibility:hidden;pointer-events:none;-webkit-user-select:none;user-select:none}.ui-segment-control-option{position:relative;z-index:1;display:inline-flex;align-items:center;justify-content:center;gap:var(--ui-segment-control-option-gap, var(--units-sm));box-sizing:border-box;border:0;border-radius:var(--ui-segment-control-option-radius, var(--radius-sm));background-color:transparent;color:var(--ui-segment-control-option-color, var(--actions-low-content-default));font-family:inherit;font-weight:var(--ui-segment-control-weight, var(--weight-regular));line-height:1.2;white-space:nowrap;cursor:pointer;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-segment-control-option:hover:not(:disabled):not(._selected){background-color:var(--ui-segment-control-option-surface-hover, var(--actions-low-surface-hover));color:var(--ui-segment-control-option-color-hover, var(--actions-low-content-hover))}.ui-segment-control-option:active:not(:disabled):not(._selected){background-color:var(--ui-segment-control-option-surface-pressed, var(--actions-low-surface-pressed));color:var(--ui-segment-control-option-color-pressed, var(--actions-low-content-pressed))}.ui-segment-control-option:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-segment-control-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-segment-control-option-focus-ring-color, var(--actions-low-stroke-focused))}.ui-segment-control-option._selected{color:var(--ui-segment-control-option-color-selected, var(--actions-high-content-default));font-weight:var(--ui-segment-control-weight-selected, var(--weight-bold))}.ui-segment-control-option._selected:focus-visible{box-shadow:0 0 0 var(--ui-segment-control-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-segment-control-option-focus-ring-color, var(--actions-high-stroke-focused))}.ui-segment-control-option:disabled{cursor:not-allowed;color:var(--ui-segment-control-option-color-disabled, var(--actions-low-content-disabled))}.ui-segment-control-option:disabled._selected{color:var(--ui-segment-control-option-color-selected-disabled, var(--actions-high-content-disabled))}:host._multiple .ui-segment-control-option._selected{background-color:var(--ui-segment-control-option-surface-selected, var(--actions-high-surface-default))}:host._multiple .ui-segment-control-option._selected:hover:not(:disabled){background-color:var(--ui-segment-control-option-surface-hover, var(--actions-high-surface-hover));color:var(--ui-segment-control-option-color-hover, var(--actions-high-content-hover))}:host._multiple .ui-segment-control-option._selected:active:not(:disabled){background-color:var(--ui-segment-control-option-surface-pressed, var(--actions-high-surface-pressed));color:var(--ui-segment-control-option-color-pressed, var(--actions-high-content-pressed))}:host._multiple .ui-segment-control-option._selected:disabled{background-color:var(--ui-segment-control-option-surface-disabled, var(--actions-high-surface-disabled))}:host._fluid{display:flex;width:100%}:host._fluid .ui-segment-control-option{flex:1 1 0}:host._vertical{flex-direction:column;align-items:stretch}:host._vertical .ui-segment-control-option{width:100%}:host._invalid{box-shadow:inset 0 0 0 var(--ui-segment-control-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) var(--ui-segment-control-stroke-invalid, var(--form-error-stroke-default))}:host._disabled{cursor:not-allowed}:host._disabled .ui-segment-control-thumb{background-color:var(--ui-segment-control-thumb-surface-disabled, var(--actions-high-surface-disabled))}\n"],
|
|
392
|
+
dependencies: [{
|
|
393
|
+
kind: "component",
|
|
394
|
+
type: UiIcon,
|
|
395
|
+
selector: "ui-icon",
|
|
396
|
+
inputs: [
|
|
397
|
+
"name",
|
|
398
|
+
"size",
|
|
399
|
+
"type",
|
|
400
|
+
"family",
|
|
401
|
+
"decorative",
|
|
402
|
+
"ariaLabel"
|
|
403
|
+
]
|
|
404
|
+
}, {
|
|
405
|
+
kind: "directive",
|
|
406
|
+
type: NgTemplateOutlet,
|
|
407
|
+
selector: "[ngTemplateOutlet]",
|
|
408
|
+
inputs: [
|
|
409
|
+
"ngTemplateOutletContext",
|
|
410
|
+
"ngTemplateOutlet",
|
|
411
|
+
"ngTemplateOutletInjector"
|
|
412
|
+
]
|
|
413
|
+
}]
|
|
414
|
+
});
|
|
415
|
+
}
|
|
416
|
+
};
|
|
417
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
418
|
+
minVersion: "12.0.0",
|
|
419
|
+
version: "22.3.0",
|
|
420
|
+
ngImport: i0,
|
|
421
|
+
type: UiSegmentControl,
|
|
422
|
+
decorators: [{
|
|
423
|
+
type: Component,
|
|
424
|
+
args: [{
|
|
425
|
+
selector: "ui-segment-control",
|
|
426
|
+
imports: [UiIcon, NgTemplateOutlet],
|
|
427
|
+
providers: [{
|
|
428
|
+
provide: NG_VALUE_ACCESSOR,
|
|
429
|
+
useExisting: forwardRef(() => UiSegmentControl),
|
|
430
|
+
multi: true
|
|
431
|
+
}],
|
|
432
|
+
host: {
|
|
433
|
+
class: "ui-segment-control",
|
|
434
|
+
"[class._small]": "size() === 'small'",
|
|
435
|
+
"[class._vertical]": "orientation() === 'vertical'",
|
|
436
|
+
"[class._fluid]": "fluid()",
|
|
437
|
+
"[class._multiple]": "multiple()",
|
|
438
|
+
"[class._disabled]": "isDisabled()",
|
|
439
|
+
"[class._invalid]": "isInvalid()",
|
|
440
|
+
"[class._no-motion]": "!motion()",
|
|
441
|
+
"[attr.role]": "multiple() ? 'group' : 'radiogroup'",
|
|
442
|
+
"[attr.aria-label]": "ariaLabel() || null",
|
|
443
|
+
"[attr.aria-labelledby]": "ariaLabelledBy() || null",
|
|
444
|
+
"[attr.aria-invalid]": "isInvalid() ? 'true' : null",
|
|
445
|
+
"[attr.aria-disabled]": "isDisabled() ? 'true' : null",
|
|
446
|
+
"(keydown)": "onKeydown($event)",
|
|
447
|
+
"(focusout)": "onFocusOut($event)"
|
|
448
|
+
},
|
|
449
|
+
template: "@if (showThumb()) {\n <span\n class=\"ui-segment-control-thumb\"\n aria-hidden=\"true\"\n [style.transform]=\"thumbTransform()\"\n [style.width.px]=\"thumb()?.w\"\n [style.height.px]=\"thumb()?.h\"\n ></span>\n}\n\n@for (option of normalizedOptions(); track option.key) {\n <button\n #optionBtn\n type=\"button\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n class=\"ui-segment-control-option\"\n [class._selected]=\"option.selected\"\n [disabled]=\"option.disabled\"\n [attr.role]=\"multiple() ? null : 'radio'\"\n [attr.aria-checked]=\"multiple() ? null : option.selected\"\n [attr.aria-pressed]=\"multiple() ? option.selected : null\"\n [attr.aria-label]=\"option.ariaLabel\"\n [attr.tabindex]=\"tabindexFor(option.index)\"\n (click)=\"select(option, $event)\"\n (focus)=\"onOptionFocus(option.index)\"\n >\n @if (itemTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: option.original,\n option: option.original,\n selected: option.selected,\n index: option.index,\n }\"\n />\n } @else {\n @if (option.icon) {\n <ui-icon class=\"ui-segment-control-icon\" [name]=\"option.icon\" [size]=\"iconSize()\" />\n }\n @if (option.label) {\n <span class=\"ui-segment-control-label\" [attr.data-label]=\"option.label\">{{\n option.label\n }}</span>\n }\n }\n </button>\n}\n",
|
|
450
|
+
styles: [":host{position:relative;display:inline-flex;align-items:stretch;box-sizing:border-box;padding:var(--ui-segment-control-padding, var(--units-xs));gap:var(--ui-segment-control-gap, 0);border-radius:var(--ui-segment-control-radius, var(--radius-md));box-shadow:inset 0 0 0 var(--ui-segment-control-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) var(--ui-segment-control-stroke, var(--global-border-default));font-family:var(--ui-segment-control-font-family, var(--fontfamily-base));-webkit-user-select:none;user-select:none;vertical-align:middle;min-height:var(--ui-segment-control-min-height, 2.75rem)}:host .ui-segment-control-option{min-height:var(--ui-segment-control-option-min-height, 2.25rem);min-width:var(--ui-segment-control-option-min-width, 2.25rem);padding:0 var(--ui-segment-control-option-padding-x, var(--units-default));font-size:var(--ui-segment-control-font-size, var(--size-typography-text-default))}:host._small{min-height:var(--ui-segment-control-min-height-small, 2.5rem)}:host._small .ui-segment-control-option{min-height:var(--ui-segment-control-option-min-height-small, 2rem);min-width:var(--ui-segment-control-option-min-width-small, 2rem);padding:0 var(--ui-segment-control-option-padding-x-small, var(--units-md));font-size:var(--ui-segment-control-font-size-small, var(--size-typography-text-md))}.ui-segment-control-thumb{position:absolute;top:0;left:0;z-index:0;border-radius:var(--ui-segment-control-thumb-radius, var(--radius-sm));background-color:var(--ui-segment-control-thumb-surface, var(--actions-high-surface-default));pointer-events:none;transition:transform 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),width 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),height 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)}@media(prefers-reduced-motion:reduce){.ui-segment-control-thumb{transition:none}}:root[data-motion=off] .ui-segment-control-thumb{transition:none}:host._no-motion .ui-segment-control-thumb{transition:none}.ui-segment-control-icon{line-height:0}.ui-segment-control-label{display:inline-flex;flex-direction:column;align-items:center}.ui-segment-control-label:after{content:attr(data-label);height:0;overflow:hidden;font-weight:var(--ui-segment-control-weight-selected, var(--weight-bold));visibility:hidden;pointer-events:none;-webkit-user-select:none;user-select:none}.ui-segment-control-option{position:relative;z-index:1;display:inline-flex;align-items:center;justify-content:center;gap:var(--ui-segment-control-option-gap, var(--units-sm));box-sizing:border-box;border:0;border-radius:var(--ui-segment-control-option-radius, var(--radius-sm));background-color:transparent;color:var(--ui-segment-control-option-color, var(--actions-low-content-default));font-family:inherit;font-weight:var(--ui-segment-control-weight, var(--weight-regular));line-height:1.2;white-space:nowrap;cursor:pointer;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-segment-control-option:hover:not(:disabled):not(._selected){background-color:var(--ui-segment-control-option-surface-hover, var(--actions-low-surface-hover));color:var(--ui-segment-control-option-color-hover, var(--actions-low-content-hover))}.ui-segment-control-option:active:not(:disabled):not(._selected){background-color:var(--ui-segment-control-option-surface-pressed, var(--actions-low-surface-pressed));color:var(--ui-segment-control-option-color-pressed, var(--actions-low-content-pressed))}.ui-segment-control-option:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-segment-control-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-segment-control-option-focus-ring-color, var(--actions-low-stroke-focused))}.ui-segment-control-option._selected{color:var(--ui-segment-control-option-color-selected, var(--actions-high-content-default));font-weight:var(--ui-segment-control-weight-selected, var(--weight-bold))}.ui-segment-control-option._selected:focus-visible{box-shadow:0 0 0 var(--ui-segment-control-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-segment-control-option-focus-ring-color, var(--actions-high-stroke-focused))}.ui-segment-control-option:disabled{cursor:not-allowed;color:var(--ui-segment-control-option-color-disabled, var(--actions-low-content-disabled))}.ui-segment-control-option:disabled._selected{color:var(--ui-segment-control-option-color-selected-disabled, var(--actions-high-content-disabled))}:host._multiple .ui-segment-control-option._selected{background-color:var(--ui-segment-control-option-surface-selected, var(--actions-high-surface-default))}:host._multiple .ui-segment-control-option._selected:hover:not(:disabled){background-color:var(--ui-segment-control-option-surface-hover, var(--actions-high-surface-hover));color:var(--ui-segment-control-option-color-hover, var(--actions-high-content-hover))}:host._multiple .ui-segment-control-option._selected:active:not(:disabled){background-color:var(--ui-segment-control-option-surface-pressed, var(--actions-high-surface-pressed));color:var(--ui-segment-control-option-color-pressed, var(--actions-high-content-pressed))}:host._multiple .ui-segment-control-option._selected:disabled{background-color:var(--ui-segment-control-option-surface-disabled, var(--actions-high-surface-disabled))}:host._fluid{display:flex;width:100%}:host._fluid .ui-segment-control-option{flex:1 1 0}:host._vertical{flex-direction:column;align-items:stretch}:host._vertical .ui-segment-control-option{width:100%}:host._invalid{box-shadow:inset 0 0 0 var(--ui-segment-control-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) var(--ui-segment-control-stroke-invalid, var(--form-error-stroke-default))}:host._disabled{cursor:not-allowed}:host._disabled .ui-segment-control-thumb{background-color:var(--ui-segment-control-thumb-surface-disabled, var(--actions-high-surface-disabled))}\n"]
|
|
451
|
+
}]
|
|
452
|
+
}],
|
|
453
|
+
ctorParameters: () => [],
|
|
454
|
+
propDecorators: {
|
|
455
|
+
options: [{
|
|
456
|
+
type: i0.Input,
|
|
457
|
+
args: [{
|
|
458
|
+
isSignal: true,
|
|
459
|
+
alias: "options",
|
|
460
|
+
required: false
|
|
461
|
+
}]
|
|
462
|
+
}],
|
|
463
|
+
optionLabel: [{
|
|
464
|
+
type: i0.Input,
|
|
465
|
+
args: [{
|
|
466
|
+
isSignal: true,
|
|
467
|
+
alias: "optionLabel",
|
|
468
|
+
required: false
|
|
469
|
+
}]
|
|
470
|
+
}],
|
|
471
|
+
optionValue: [{
|
|
472
|
+
type: i0.Input,
|
|
473
|
+
args: [{
|
|
474
|
+
isSignal: true,
|
|
475
|
+
alias: "optionValue",
|
|
476
|
+
required: false
|
|
477
|
+
}]
|
|
478
|
+
}],
|
|
479
|
+
optionDisabled: [{
|
|
480
|
+
type: i0.Input,
|
|
481
|
+
args: [{
|
|
482
|
+
isSignal: true,
|
|
483
|
+
alias: "optionDisabled",
|
|
484
|
+
required: false
|
|
485
|
+
}]
|
|
486
|
+
}],
|
|
487
|
+
optionIcon: [{
|
|
488
|
+
type: i0.Input,
|
|
489
|
+
args: [{
|
|
490
|
+
isSignal: true,
|
|
491
|
+
alias: "optionIcon",
|
|
492
|
+
required: false
|
|
493
|
+
}]
|
|
494
|
+
}],
|
|
495
|
+
dataKey: [{
|
|
496
|
+
type: i0.Input,
|
|
497
|
+
args: [{
|
|
498
|
+
isSignal: true,
|
|
499
|
+
alias: "dataKey",
|
|
500
|
+
required: false
|
|
501
|
+
}]
|
|
502
|
+
}],
|
|
503
|
+
multiple: [{
|
|
504
|
+
type: i0.Input,
|
|
505
|
+
args: [{
|
|
506
|
+
isSignal: true,
|
|
507
|
+
alias: "multiple",
|
|
508
|
+
required: false
|
|
509
|
+
}]
|
|
510
|
+
}],
|
|
511
|
+
ripple: [{
|
|
512
|
+
type: i0.Input,
|
|
513
|
+
args: [{
|
|
514
|
+
isSignal: true,
|
|
515
|
+
alias: "ripple",
|
|
516
|
+
required: false
|
|
517
|
+
}]
|
|
518
|
+
}],
|
|
519
|
+
allowEmpty: [{
|
|
520
|
+
type: i0.Input,
|
|
521
|
+
args: [{
|
|
522
|
+
isSignal: true,
|
|
523
|
+
alias: "allowEmpty",
|
|
524
|
+
required: false
|
|
525
|
+
}]
|
|
526
|
+
}],
|
|
527
|
+
size: [{
|
|
528
|
+
type: i0.Input,
|
|
529
|
+
args: [{
|
|
530
|
+
isSignal: true,
|
|
531
|
+
alias: "size",
|
|
532
|
+
required: false
|
|
533
|
+
}]
|
|
534
|
+
}],
|
|
535
|
+
orientation: [{
|
|
536
|
+
type: i0.Input,
|
|
537
|
+
args: [{
|
|
538
|
+
isSignal: true,
|
|
539
|
+
alias: "orientation",
|
|
540
|
+
required: false
|
|
541
|
+
}]
|
|
542
|
+
}],
|
|
543
|
+
fluid: [{
|
|
544
|
+
type: i0.Input,
|
|
545
|
+
args: [{
|
|
546
|
+
isSignal: true,
|
|
547
|
+
alias: "fluid",
|
|
548
|
+
required: false
|
|
549
|
+
}]
|
|
550
|
+
}],
|
|
551
|
+
motion: [{
|
|
552
|
+
type: i0.Input,
|
|
553
|
+
args: [{
|
|
554
|
+
isSignal: true,
|
|
555
|
+
alias: "motion",
|
|
556
|
+
required: false
|
|
557
|
+
}]
|
|
558
|
+
}],
|
|
559
|
+
itemTemplate: [{
|
|
560
|
+
type: i0.Input,
|
|
561
|
+
args: [{
|
|
562
|
+
isSignal: true,
|
|
563
|
+
alias: "itemTemplate",
|
|
564
|
+
required: false
|
|
565
|
+
}]
|
|
566
|
+
}],
|
|
567
|
+
selectionChange: [{
|
|
568
|
+
type: i0.Output,
|
|
569
|
+
args: ["selectionChange"]
|
|
570
|
+
}],
|
|
571
|
+
optionClick: [{
|
|
572
|
+
type: i0.Output,
|
|
573
|
+
args: ["optionClick"]
|
|
574
|
+
}],
|
|
575
|
+
optionEls: [{
|
|
576
|
+
type: i0.ViewChildren,
|
|
577
|
+
args: ["optionBtn", { isSignal: true }]
|
|
578
|
+
}]
|
|
579
|
+
}
|
|
580
|
+
});
|
|
392
581
|
export { UiSegmentControl };
|
|
393
|
-
|
|
582
|
+
|
|
583
|
+
//# sourceMappingURL=4sh-ui-kit-forms-ui-segment-control.mjs.map
|