@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,205 +1,457 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import {
|
|
3
|
-
import { NgTemplateOutlet } from
|
|
4
|
-
import { UiIcon } from
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: UiChip, isStandalone: true, selector: "ui-chip", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null }, subLevel: { classPropertyName: "subLevel", publicName: "subLevel", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, image: { classPropertyName: "image", publicName: "image", isSignal: true, isRequired: false, transformFunction: null }, alt: { classPropertyName: "alt", publicName: "alt", isSignal: true, isRequired: false, transformFunction: null }, rounded: { classPropertyName: "rounded", publicName: "rounded", isSignal: true, isRequired: false, transformFunction: null }, removable: { classPropertyName: "removable", publicName: "removable", isSignal: true, isRequired: false, transformFunction: null }, removeIcon: { classPropertyName: "removeIcon", publicName: "removeIcon", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, selectable: { classPropertyName: "selectable", publicName: "selectable", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, selectedIcon: { classPropertyName: "selectedIcon", publicName: "selectedIcon", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, removeAriaLabel: { classPropertyName: "removeAriaLabel", publicName: "removeAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, removeTabindex: { classPropertyName: "removeTabindex", publicName: "removeTabindex", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selected: "selectedChange", remove: "remove", chipClick: "chipClick", imageError: "imageError" }, ngImport: i0, template: "@if (selectable()) {\n <button\n type=\"button\"\n [class]=\"classes()\"\n [disabled]=\"disabled()\"\n [attr.aria-pressed]=\"selected()\"\n [attr.aria-label]=\"rootAriaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n (click)=\"onToggle($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </button>\n} @else {\n <span\n [class]=\"classes()\"\n [attr.role]=\"rootAriaLabel() || ariaLabelledBy() ? (showRemove() ? 'group' : 'img') : null\"\n [attr.aria-label]=\"rootAriaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </span>\n}\n\n<ng-template #inner>\n @if (showSelectedIcon()) {\n <ui-icon class=\"ui-chip-icon\" [name]=\"selectedIcon()!\" [size]=\"iconSize()\" />\n } @else if (showLeadingImage()) {\n <img\n class=\"ui-chip-image\"\n [src]=\"image()\"\n [attr.alt]=\"alt() ?? ''\"\n (error)=\"onImageError($event)\"\n />\n } @else if (showLeadingIcon()) {\n <ui-icon class=\"ui-chip-icon\" [name]=\"icon()!\" [size]=\"iconSize()\" />\n }\n\n @if (hasLabel()) {\n <span class=\"ui-chip-label\">{{ label() }}</span>\n }\n\n <!-- Custom / templated content -->\n <ng-content />\n\n @if (showRemove()) {\n <button\n type=\"button\"\n class=\"ui-chip-remove\"\n [disabled]=\"disabled()\"\n [attr.tabindex]=\"removeTabindex()\"\n [attr.aria-label]=\"removeAriaLabel()\"\n (click)=\"onRemove($event)\"\n (keydown)=\"onRemoveKeydown($event)\"\n >\n <ui-icon [name]=\"removeIcon()\" [size]=\"removeIconSize\" />\n </button>\n }\n</ng-template>\n", styles: [".ui-chip{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;max-width:100%;border:var(--ui-chip-stroke-width, var(--stroke-sm)) solid transparent;border-radius:var(--ui-chip-radius, var(--radius-full));font-family:var(--ui-chip-font-family, var(--fontfamily-base));font-weight:var(--ui-chip-weight, var(--weight-regular));line-height:1;white-space:nowrap;height:var(--ui-chip-height, 2rem);min-width:var(--ui-chip-height, 2rem);gap:var(--ui-chip-gap, var(--units-xs));padding:0 var(--ui-chip-padding-x, var(--units-sm));font-size:var(--ui-chip-font-size, var(--size-typography-text-default))}.ui-chip .ui-chip-image{width:var(--ui-chip-image-size, 1.5rem);height:var(--ui-chip-image-size, 1.5rem)}.ui-chip-icon{line-height:0;flex:none}.ui-chip-image{flex:none;margin-inline-start:calc(-1 * var(--ui-chip-image-offset, var(--units-2xs)));border-radius:var(--ui-chip-image-radius, var(--radius-full));object-fit:cover}.ui-chip-label{display:inline-flex;align-items:center;height:100%;overflow:hidden;text-overflow:ellipsis}.ui-chip-remove{flex:none;display:inline-flex;align-items:center;justify-content:center;margin:0;padding:var(--ui-chip-remove-padding, var(--units-2xs));border:0;border-radius:var(--ui-chip-remove-radius, var(--radius-full));background:transparent;color:inherit;line-height:0;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-chip-remove:disabled{cursor:not-allowed}.ui-chip._removable{padding-inline-end:var(--ui-chip-padding-inline-end-removable, var(--units-2xs))!important}.ui-chip._selectable{appearance:none;cursor:pointer;text-align:center;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))),border-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-chip._selectable:disabled{cursor:not-allowed}.ui-chip._square{border-radius:var(--ui-chip-radius-square, var(--radius-sm))}.ui-chip._square .ui-chip-image{border-radius:var(--ui-chip-image-radius-square, var(--radius-xs))}.ui-chip._disabled{cursor:not-allowed}.ui-chip._small{height:var(--ui-chip-height-small, 1.5rem);min-width:var(--ui-chip-height-small, 1.5rem);gap:var(--ui-chip-gap-small, var(--units-2xs));padding:0 var(--ui-chip-padding-x-small, var(--units-sm));font-size:var(--ui-chip-font-size-small, var(--size-typography-text-md))}.ui-chip._small .ui-chip-image{width:var(--ui-chip-image-size-small, 1.125rem);height:var(--ui-chip-image-size-small, 1.125rem)}.ui-chip._default._high{background-color:var(--ui-chip-surface, var(--informative-defaulthigh-surface-default));color:var(--ui-chip-color, var(--informative-defaulthigh-content-default));border-color:var(--ui-chip-stroke, var(--informative-defaulthigh-stroke-default))}.ui-chip._default._high .ui-chip-remove:hover:not(:disabled){background-color:var(--ui-chip-remove-surface-hover, var(--informative-defaulthigh-surface-hover));color:var(--ui-chip-remove-color-hover, var(--informative-defaulthigh-content-hover))}.ui-chip._default._high .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-remove-focus-ring-color, var(--informative-defaulthigh-content-default))}.ui-chip._default._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--ui-chip-surface-hover, var(--informative-defaulthigh-surface-hover));color:var(--ui-chip-color-hover, var(--informative-defaulthigh-content-hover))}.ui-chip._default._low{background-color:var(--ui-chip-surface, var(--informative-defaultlow-surface-default));color:var(--ui-chip-color, var(--informative-defaultlow-content-default));border-color:var(--ui-chip-stroke, var(--informative-defaultlow-stroke-default))}.ui-chip._default._low .ui-chip-remove:hover:not(:disabled){background-color:var(--ui-chip-remove-surface-hover, var(--informative-defaultlow-surface-hover));color:var(--ui-chip-remove-color-hover, var(--informative-defaultlow-content-hover))}.ui-chip._default._low .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-remove-focus-ring-color, var(--informative-defaultlow-content-default))}.ui-chip._default._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--ui-chip-surface-hover, var(--informative-defaultlow-surface-hover));color:var(--ui-chip-color-hover, var(--informative-defaultlow-content-hover))}.ui-chip._default._selected{background-color:var(--ui-chip-surface-selected, var(--informative-defaulthigh-surface-default));color:var(--ui-chip-color-selected, var(--informative-defaulthigh-content-default));border-color:var(--ui-chip-stroke-selected, var(--informative-defaulthigh-stroke-default))}.ui-chip._default._selected._selectable:hover:not(:disabled){background-color:var(--ui-chip-surface-selected-hover, var(--informative-defaulthigh-surface-hover));color:var(--ui-chip-color-selected-hover, var(--informative-defaulthigh-content-hover))}.ui-chip._default._selectable:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-focus-ring-color, var(--informative-defaulthigh-surface-default))}.ui-chip._highlight._high{background-color:var(--ui-chip-surface, var(--informative-highlighthigh-surface-default));color:var(--ui-chip-color, var(--informative-highlighthigh-content-default));border-color:var(--ui-chip-stroke, var(--informative-highlighthigh-stroke-default))}.ui-chip._highlight._high .ui-chip-remove:hover:not(:disabled){background-color:var(--ui-chip-remove-surface-hover, var(--informative-highlighthigh-surface-hover));color:var(--ui-chip-remove-color-hover, var(--informative-highlighthigh-content-hover))}.ui-chip._highlight._high .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-remove-focus-ring-color, var(--informative-highlighthigh-content-default))}.ui-chip._highlight._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--ui-chip-surface-hover, var(--informative-highlighthigh-surface-hover));color:var(--ui-chip-color-hover, var(--informative-highlighthigh-content-hover))}.ui-chip._highlight._low{background-color:var(--ui-chip-surface, var(--informative-highlightlow-surface-default));color:var(--ui-chip-color, var(--informative-highlightlow-content-default));border-color:var(--ui-chip-stroke, var(--informative-highlightlow-stroke-default))}.ui-chip._highlight._low .ui-chip-remove:hover:not(:disabled){background-color:var(--ui-chip-remove-surface-hover, var(--informative-highlightlow-surface-hover));color:var(--ui-chip-remove-color-hover, var(--informative-highlightlow-content-hover))}.ui-chip._highlight._low .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-remove-focus-ring-color, var(--informative-highlightlow-content-default))}.ui-chip._highlight._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--ui-chip-surface-hover, var(--informative-highlightlow-surface-hover));color:var(--ui-chip-color-hover, var(--informative-highlightlow-content-hover))}.ui-chip._highlight._selected{background-color:var(--ui-chip-surface-selected, var(--informative-highlighthigh-surface-default));color:var(--ui-chip-color-selected, var(--informative-highlighthigh-content-default));border-color:var(--ui-chip-stroke-selected, var(--informative-highlighthigh-stroke-default))}.ui-chip._highlight._selected._selectable:hover:not(:disabled){background-color:var(--ui-chip-surface-selected-hover, var(--informative-highlighthigh-surface-hover));color:var(--ui-chip-color-selected-hover, var(--informative-highlighthigh-content-hover))}.ui-chip._highlight._selectable:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-focus-ring-color, var(--informative-highlighthigh-surface-default))}.ui-chip._success._high{background-color:var(--ui-chip-surface, var(--informative-successhigh-surface-default));color:var(--ui-chip-color, var(--informative-successhigh-content-default));border-color:var(--ui-chip-stroke, var(--informative-successhigh-stroke-default))}.ui-chip._success._high .ui-chip-remove:hover:not(:disabled){background-color:var(--ui-chip-remove-surface-hover, var(--informative-successhigh-surface-hover));color:var(--ui-chip-remove-color-hover, var(--informative-successhigh-content-hover))}.ui-chip._success._high .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-remove-focus-ring-color, var(--informative-successhigh-content-default))}.ui-chip._success._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--ui-chip-surface-hover, var(--informative-successhigh-surface-hover));color:var(--ui-chip-color-hover, var(--informative-successhigh-content-hover))}.ui-chip._success._low{background-color:var(--ui-chip-surface, var(--informative-successlow-surface-default));color:var(--ui-chip-color, var(--informative-successlow-content-default));border-color:var(--ui-chip-stroke, var(--informative-successlow-stroke-default))}.ui-chip._success._low .ui-chip-remove:hover:not(:disabled){background-color:var(--ui-chip-remove-surface-hover, var(--informative-successlow-surface-hover));color:var(--ui-chip-remove-color-hover, var(--informative-successlow-content-hover))}.ui-chip._success._low .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-remove-focus-ring-color, var(--informative-successlow-content-default))}.ui-chip._success._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--ui-chip-surface-hover, var(--informative-successlow-surface-hover));color:var(--ui-chip-color-hover, var(--informative-successlow-content-hover))}.ui-chip._success._selected{background-color:var(--ui-chip-surface-selected, var(--informative-successhigh-surface-default));color:var(--ui-chip-color-selected, var(--informative-successhigh-content-default));border-color:var(--ui-chip-stroke-selected, var(--informative-successhigh-stroke-default))}.ui-chip._success._selected._selectable:hover:not(:disabled){background-color:var(--ui-chip-surface-selected-hover, var(--informative-successhigh-surface-hover));color:var(--ui-chip-color-selected-hover, var(--informative-successhigh-content-hover))}.ui-chip._success._selectable:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-focus-ring-color, var(--informative-successhigh-surface-default))}.ui-chip._warning._high{background-color:var(--ui-chip-surface, var(--informative-warninghigh-surface-default));color:var(--ui-chip-color, var(--informative-warninghigh-content-default));border-color:var(--ui-chip-stroke, var(--informative-warninghigh-stroke-default))}.ui-chip._warning._high .ui-chip-remove:hover:not(:disabled){background-color:var(--ui-chip-remove-surface-hover, var(--informative-warninghigh-surface-hover));color:var(--ui-chip-remove-color-hover, var(--informative-warninghigh-content-hover))}.ui-chip._warning._high .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-remove-focus-ring-color, var(--informative-warninghigh-content-default))}.ui-chip._warning._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--ui-chip-surface-hover, var(--informative-warninghigh-surface-hover));color:var(--ui-chip-color-hover, var(--informative-warninghigh-content-hover))}.ui-chip._warning._low{background-color:var(--ui-chip-surface, var(--informative-warninglow-surface-default));color:var(--ui-chip-color, var(--informative-warninglow-content-default));border-color:var(--ui-chip-stroke, var(--informative-warninglow-stroke-default))}.ui-chip._warning._low .ui-chip-remove:hover:not(:disabled){background-color:var(--ui-chip-remove-surface-hover, var(--informative-warninglow-surface-hover));color:var(--ui-chip-remove-color-hover, var(--informative-warninglow-content-hover))}.ui-chip._warning._low .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-remove-focus-ring-color, var(--informative-warninglow-content-default))}.ui-chip._warning._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--ui-chip-surface-hover, var(--informative-warninglow-surface-hover));color:var(--ui-chip-color-hover, var(--informative-warninglow-content-hover))}.ui-chip._warning._selected{background-color:var(--ui-chip-surface-selected, var(--informative-warninghigh-surface-default));color:var(--ui-chip-color-selected, var(--informative-warninghigh-content-default));border-color:var(--ui-chip-stroke-selected, var(--informative-warninghigh-stroke-default))}.ui-chip._warning._selected._selectable:hover:not(:disabled){background-color:var(--ui-chip-surface-selected-hover, var(--informative-warninghigh-surface-hover));color:var(--ui-chip-color-selected-hover, var(--informative-warninghigh-content-hover))}.ui-chip._warning._selectable:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-focus-ring-color, var(--informative-warninghigh-surface-default))}.ui-chip._error._high{background-color:var(--ui-chip-surface, var(--informative-errorhigh-surface-default));color:var(--ui-chip-color, var(--informative-errorhigh-content-default));border-color:var(--ui-chip-stroke, var(--informative-errorhigh-stroke-default))}.ui-chip._error._high .ui-chip-remove:hover:not(:disabled){background-color:var(--ui-chip-remove-surface-hover, var(--informative-errorhigh-surface-hover));color:var(--ui-chip-remove-color-hover, var(--informative-errorhigh-content-hover))}.ui-chip._error._high .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-remove-focus-ring-color, var(--informative-errorhigh-content-default))}.ui-chip._error._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--ui-chip-surface-hover, var(--informative-errorhigh-surface-hover));color:var(--ui-chip-color-hover, var(--informative-errorhigh-content-hover))}.ui-chip._error._low{background-color:var(--ui-chip-surface, var(--informative-errorlow-surface-default));color:var(--ui-chip-color, var(--informative-errorlow-content-default));border-color:var(--ui-chip-stroke, var(--informative-errorlow-stroke-default))}.ui-chip._error._low .ui-chip-remove:hover:not(:disabled){background-color:var(--ui-chip-remove-surface-hover, var(--informative-errorlow-surface-hover));color:var(--ui-chip-remove-color-hover, var(--informative-errorlow-content-hover))}.ui-chip._error._low .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-remove-focus-ring-color, var(--informative-errorlow-content-default))}.ui-chip._error._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--ui-chip-surface-hover, var(--informative-errorlow-surface-hover));color:var(--ui-chip-color-hover, var(--informative-errorlow-content-hover))}.ui-chip._error._selected{background-color:var(--ui-chip-surface-selected, var(--informative-errorhigh-surface-default));color:var(--ui-chip-color-selected, var(--informative-errorhigh-content-default));border-color:var(--ui-chip-stroke-selected, var(--informative-errorhigh-stroke-default))}.ui-chip._error._selected._selectable:hover:not(:disabled){background-color:var(--ui-chip-surface-selected-hover, var(--informative-errorhigh-surface-hover));color:var(--ui-chip-color-selected-hover, var(--informative-errorhigh-content-hover))}.ui-chip._error._selectable:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-focus-ring-color, var(--informative-errorhigh-surface-default))}\n"], dependencies: [{ kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
args: [{ selector: 'ui-chip', imports: [UiIcon, NgTemplateOutlet], template: "@if (selectable()) {\n <button\n type=\"button\"\n [class]=\"classes()\"\n [disabled]=\"disabled()\"\n [attr.aria-pressed]=\"selected()\"\n [attr.aria-label]=\"rootAriaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n (click)=\"onToggle($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </button>\n} @else {\n <span\n [class]=\"classes()\"\n [attr.role]=\"rootAriaLabel() || ariaLabelledBy() ? (showRemove() ? 'group' : 'img') : null\"\n [attr.aria-label]=\"rootAriaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </span>\n}\n\n<ng-template #inner>\n @if (showSelectedIcon()) {\n <ui-icon class=\"ui-chip-icon\" [name]=\"selectedIcon()!\" [size]=\"iconSize()\" />\n } @else if (showLeadingImage()) {\n <img\n class=\"ui-chip-image\"\n [src]=\"image()\"\n [attr.alt]=\"alt() ?? ''\"\n (error)=\"onImageError($event)\"\n />\n } @else if (showLeadingIcon()) {\n <ui-icon class=\"ui-chip-icon\" [name]=\"icon()!\" [size]=\"iconSize()\" />\n }\n\n @if (hasLabel()) {\n <span class=\"ui-chip-label\">{{ label() }}</span>\n }\n\n <!-- Custom / templated content -->\n <ng-content />\n\n @if (showRemove()) {\n <button\n type=\"button\"\n class=\"ui-chip-remove\"\n [disabled]=\"disabled()\"\n [attr.tabindex]=\"removeTabindex()\"\n [attr.aria-label]=\"removeAriaLabel()\"\n (click)=\"onRemove($event)\"\n (keydown)=\"onRemoveKeydown($event)\"\n >\n <ui-icon [name]=\"removeIcon()\" [size]=\"removeIconSize\" />\n </button>\n }\n</ng-template>\n", styles: [".ui-chip{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;max-width:100%;border:var(--ui-chip-stroke-width, var(--stroke-sm)) solid transparent;border-radius:var(--ui-chip-radius, var(--radius-full));font-family:var(--ui-chip-font-family, var(--fontfamily-base));font-weight:var(--ui-chip-weight, var(--weight-regular));line-height:1;white-space:nowrap;height:var(--ui-chip-height, 2rem);min-width:var(--ui-chip-height, 2rem);gap:var(--ui-chip-gap, var(--units-xs));padding:0 var(--ui-chip-padding-x, var(--units-sm));font-size:var(--ui-chip-font-size, var(--size-typography-text-default))}.ui-chip .ui-chip-image{width:var(--ui-chip-image-size, 1.5rem);height:var(--ui-chip-image-size, 1.5rem)}.ui-chip-icon{line-height:0;flex:none}.ui-chip-image{flex:none;margin-inline-start:calc(-1 * var(--ui-chip-image-offset, var(--units-2xs)));border-radius:var(--ui-chip-image-radius, var(--radius-full));object-fit:cover}.ui-chip-label{display:inline-flex;align-items:center;height:100%;overflow:hidden;text-overflow:ellipsis}.ui-chip-remove{flex:none;display:inline-flex;align-items:center;justify-content:center;margin:0;padding:var(--ui-chip-remove-padding, var(--units-2xs));border:0;border-radius:var(--ui-chip-remove-radius, var(--radius-full));background:transparent;color:inherit;line-height:0;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-chip-remove:disabled{cursor:not-allowed}.ui-chip._removable{padding-inline-end:var(--ui-chip-padding-inline-end-removable, var(--units-2xs))!important}.ui-chip._selectable{appearance:none;cursor:pointer;text-align:center;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))),border-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-chip._selectable:disabled{cursor:not-allowed}.ui-chip._square{border-radius:var(--ui-chip-radius-square, var(--radius-sm))}.ui-chip._square .ui-chip-image{border-radius:var(--ui-chip-image-radius-square, var(--radius-xs))}.ui-chip._disabled{cursor:not-allowed}.ui-chip._small{height:var(--ui-chip-height-small, 1.5rem);min-width:var(--ui-chip-height-small, 1.5rem);gap:var(--ui-chip-gap-small, var(--units-2xs));padding:0 var(--ui-chip-padding-x-small, var(--units-sm));font-size:var(--ui-chip-font-size-small, var(--size-typography-text-md))}.ui-chip._small .ui-chip-image{width:var(--ui-chip-image-size-small, 1.125rem);height:var(--ui-chip-image-size-small, 1.125rem)}.ui-chip._default._high{background-color:var(--ui-chip-surface, var(--informative-defaulthigh-surface-default));color:var(--ui-chip-color, var(--informative-defaulthigh-content-default));border-color:var(--ui-chip-stroke, var(--informative-defaulthigh-stroke-default))}.ui-chip._default._high .ui-chip-remove:hover:not(:disabled){background-color:var(--ui-chip-remove-surface-hover, var(--informative-defaulthigh-surface-hover));color:var(--ui-chip-remove-color-hover, var(--informative-defaulthigh-content-hover))}.ui-chip._default._high .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-remove-focus-ring-color, var(--informative-defaulthigh-content-default))}.ui-chip._default._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--ui-chip-surface-hover, var(--informative-defaulthigh-surface-hover));color:var(--ui-chip-color-hover, var(--informative-defaulthigh-content-hover))}.ui-chip._default._low{background-color:var(--ui-chip-surface, var(--informative-defaultlow-surface-default));color:var(--ui-chip-color, var(--informative-defaultlow-content-default));border-color:var(--ui-chip-stroke, var(--informative-defaultlow-stroke-default))}.ui-chip._default._low .ui-chip-remove:hover:not(:disabled){background-color:var(--ui-chip-remove-surface-hover, var(--informative-defaultlow-surface-hover));color:var(--ui-chip-remove-color-hover, var(--informative-defaultlow-content-hover))}.ui-chip._default._low .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-remove-focus-ring-color, var(--informative-defaultlow-content-default))}.ui-chip._default._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--ui-chip-surface-hover, var(--informative-defaultlow-surface-hover));color:var(--ui-chip-color-hover, var(--informative-defaultlow-content-hover))}.ui-chip._default._selected{background-color:var(--ui-chip-surface-selected, var(--informative-defaulthigh-surface-default));color:var(--ui-chip-color-selected, var(--informative-defaulthigh-content-default));border-color:var(--ui-chip-stroke-selected, var(--informative-defaulthigh-stroke-default))}.ui-chip._default._selected._selectable:hover:not(:disabled){background-color:var(--ui-chip-surface-selected-hover, var(--informative-defaulthigh-surface-hover));color:var(--ui-chip-color-selected-hover, var(--informative-defaulthigh-content-hover))}.ui-chip._default._selectable:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-focus-ring-color, var(--informative-defaulthigh-surface-default))}.ui-chip._highlight._high{background-color:var(--ui-chip-surface, var(--informative-highlighthigh-surface-default));color:var(--ui-chip-color, var(--informative-highlighthigh-content-default));border-color:var(--ui-chip-stroke, var(--informative-highlighthigh-stroke-default))}.ui-chip._highlight._high .ui-chip-remove:hover:not(:disabled){background-color:var(--ui-chip-remove-surface-hover, var(--informative-highlighthigh-surface-hover));color:var(--ui-chip-remove-color-hover, var(--informative-highlighthigh-content-hover))}.ui-chip._highlight._high .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-remove-focus-ring-color, var(--informative-highlighthigh-content-default))}.ui-chip._highlight._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--ui-chip-surface-hover, var(--informative-highlighthigh-surface-hover));color:var(--ui-chip-color-hover, var(--informative-highlighthigh-content-hover))}.ui-chip._highlight._low{background-color:var(--ui-chip-surface, var(--informative-highlightlow-surface-default));color:var(--ui-chip-color, var(--informative-highlightlow-content-default));border-color:var(--ui-chip-stroke, var(--informative-highlightlow-stroke-default))}.ui-chip._highlight._low .ui-chip-remove:hover:not(:disabled){background-color:var(--ui-chip-remove-surface-hover, var(--informative-highlightlow-surface-hover));color:var(--ui-chip-remove-color-hover, var(--informative-highlightlow-content-hover))}.ui-chip._highlight._low .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-remove-focus-ring-color, var(--informative-highlightlow-content-default))}.ui-chip._highlight._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--ui-chip-surface-hover, var(--informative-highlightlow-surface-hover));color:var(--ui-chip-color-hover, var(--informative-highlightlow-content-hover))}.ui-chip._highlight._selected{background-color:var(--ui-chip-surface-selected, var(--informative-highlighthigh-surface-default));color:var(--ui-chip-color-selected, var(--informative-highlighthigh-content-default));border-color:var(--ui-chip-stroke-selected, var(--informative-highlighthigh-stroke-default))}.ui-chip._highlight._selected._selectable:hover:not(:disabled){background-color:var(--ui-chip-surface-selected-hover, var(--informative-highlighthigh-surface-hover));color:var(--ui-chip-color-selected-hover, var(--informative-highlighthigh-content-hover))}.ui-chip._highlight._selectable:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-focus-ring-color, var(--informative-highlighthigh-surface-default))}.ui-chip._success._high{background-color:var(--ui-chip-surface, var(--informative-successhigh-surface-default));color:var(--ui-chip-color, var(--informative-successhigh-content-default));border-color:var(--ui-chip-stroke, var(--informative-successhigh-stroke-default))}.ui-chip._success._high .ui-chip-remove:hover:not(:disabled){background-color:var(--ui-chip-remove-surface-hover, var(--informative-successhigh-surface-hover));color:var(--ui-chip-remove-color-hover, var(--informative-successhigh-content-hover))}.ui-chip._success._high .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-remove-focus-ring-color, var(--informative-successhigh-content-default))}.ui-chip._success._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--ui-chip-surface-hover, var(--informative-successhigh-surface-hover));color:var(--ui-chip-color-hover, var(--informative-successhigh-content-hover))}.ui-chip._success._low{background-color:var(--ui-chip-surface, var(--informative-successlow-surface-default));color:var(--ui-chip-color, var(--informative-successlow-content-default));border-color:var(--ui-chip-stroke, var(--informative-successlow-stroke-default))}.ui-chip._success._low .ui-chip-remove:hover:not(:disabled){background-color:var(--ui-chip-remove-surface-hover, var(--informative-successlow-surface-hover));color:var(--ui-chip-remove-color-hover, var(--informative-successlow-content-hover))}.ui-chip._success._low .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-remove-focus-ring-color, var(--informative-successlow-content-default))}.ui-chip._success._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--ui-chip-surface-hover, var(--informative-successlow-surface-hover));color:var(--ui-chip-color-hover, var(--informative-successlow-content-hover))}.ui-chip._success._selected{background-color:var(--ui-chip-surface-selected, var(--informative-successhigh-surface-default));color:var(--ui-chip-color-selected, var(--informative-successhigh-content-default));border-color:var(--ui-chip-stroke-selected, var(--informative-successhigh-stroke-default))}.ui-chip._success._selected._selectable:hover:not(:disabled){background-color:var(--ui-chip-surface-selected-hover, var(--informative-successhigh-surface-hover));color:var(--ui-chip-color-selected-hover, var(--informative-successhigh-content-hover))}.ui-chip._success._selectable:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-focus-ring-color, var(--informative-successhigh-surface-default))}.ui-chip._warning._high{background-color:var(--ui-chip-surface, var(--informative-warninghigh-surface-default));color:var(--ui-chip-color, var(--informative-warninghigh-content-default));border-color:var(--ui-chip-stroke, var(--informative-warninghigh-stroke-default))}.ui-chip._warning._high .ui-chip-remove:hover:not(:disabled){background-color:var(--ui-chip-remove-surface-hover, var(--informative-warninghigh-surface-hover));color:var(--ui-chip-remove-color-hover, var(--informative-warninghigh-content-hover))}.ui-chip._warning._high .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-remove-focus-ring-color, var(--informative-warninghigh-content-default))}.ui-chip._warning._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--ui-chip-surface-hover, var(--informative-warninghigh-surface-hover));color:var(--ui-chip-color-hover, var(--informative-warninghigh-content-hover))}.ui-chip._warning._low{background-color:var(--ui-chip-surface, var(--informative-warninglow-surface-default));color:var(--ui-chip-color, var(--informative-warninglow-content-default));border-color:var(--ui-chip-stroke, var(--informative-warninglow-stroke-default))}.ui-chip._warning._low .ui-chip-remove:hover:not(:disabled){background-color:var(--ui-chip-remove-surface-hover, var(--informative-warninglow-surface-hover));color:var(--ui-chip-remove-color-hover, var(--informative-warninglow-content-hover))}.ui-chip._warning._low .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-remove-focus-ring-color, var(--informative-warninglow-content-default))}.ui-chip._warning._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--ui-chip-surface-hover, var(--informative-warninglow-surface-hover));color:var(--ui-chip-color-hover, var(--informative-warninglow-content-hover))}.ui-chip._warning._selected{background-color:var(--ui-chip-surface-selected, var(--informative-warninghigh-surface-default));color:var(--ui-chip-color-selected, var(--informative-warninghigh-content-default));border-color:var(--ui-chip-stroke-selected, var(--informative-warninghigh-stroke-default))}.ui-chip._warning._selected._selectable:hover:not(:disabled){background-color:var(--ui-chip-surface-selected-hover, var(--informative-warninghigh-surface-hover));color:var(--ui-chip-color-selected-hover, var(--informative-warninghigh-content-hover))}.ui-chip._warning._selectable:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-focus-ring-color, var(--informative-warninghigh-surface-default))}.ui-chip._error._high{background-color:var(--ui-chip-surface, var(--informative-errorhigh-surface-default));color:var(--ui-chip-color, var(--informative-errorhigh-content-default));border-color:var(--ui-chip-stroke, var(--informative-errorhigh-stroke-default))}.ui-chip._error._high .ui-chip-remove:hover:not(:disabled){background-color:var(--ui-chip-remove-surface-hover, var(--informative-errorhigh-surface-hover));color:var(--ui-chip-remove-color-hover, var(--informative-errorhigh-content-hover))}.ui-chip._error._high .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-remove-focus-ring-color, var(--informative-errorhigh-content-default))}.ui-chip._error._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--ui-chip-surface-hover, var(--informative-errorhigh-surface-hover));color:var(--ui-chip-color-hover, var(--informative-errorhigh-content-hover))}.ui-chip._error._low{background-color:var(--ui-chip-surface, var(--informative-errorlow-surface-default));color:var(--ui-chip-color, var(--informative-errorlow-content-default));border-color:var(--ui-chip-stroke, var(--informative-errorlow-stroke-default))}.ui-chip._error._low .ui-chip-remove:hover:not(:disabled){background-color:var(--ui-chip-remove-surface-hover, var(--informative-errorlow-surface-hover));color:var(--ui-chip-remove-color-hover, var(--informative-errorlow-content-hover))}.ui-chip._error._low .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-remove-focus-ring-color, var(--informative-errorlow-content-default))}.ui-chip._error._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--ui-chip-surface-hover, var(--informative-errorlow-surface-hover));color:var(--ui-chip-color-hover, var(--informative-errorlow-content-hover))}.ui-chip._error._selected{background-color:var(--ui-chip-surface-selected, var(--informative-errorhigh-surface-default));color:var(--ui-chip-color-selected, var(--informative-errorhigh-content-default));border-color:var(--ui-chip-stroke-selected, var(--informative-errorhigh-stroke-default))}.ui-chip._error._selected._selectable:hover:not(:disabled){background-color:var(--ui-chip-surface-selected-hover, var(--informative-errorhigh-surface-hover));color:var(--ui-chip-color-selected-hover, var(--informative-errorhigh-content-hover))}.ui-chip._error._selectable:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-focus-ring-color, var(--informative-errorhigh-surface-default))}\n"] }]
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { Component, booleanAttribute, computed, effect, input, isDevMode, model, output, signal } from "@angular/core";
|
|
3
|
+
import { NgTemplateOutlet } from "@angular/common";
|
|
4
|
+
import { UiIcon } from "@4sh/ui-kit/base/ui-icon";
|
|
5
|
+
var UiChip = class UiChip {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.label = input(...ngDevMode ? [void 0, { debugName: "label" }] : /* istanbul ignore next */ []);
|
|
8
|
+
this.level = input("default", ...ngDevMode ? [{ debugName: "level" }] : /* istanbul ignore next */ []);
|
|
9
|
+
this.subLevel = input("low", ...ngDevMode ? [{ debugName: "subLevel" }] : /* istanbul ignore next */ []);
|
|
10
|
+
this.size = input("default", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
11
|
+
this.icon = input(...ngDevMode ? [void 0, { debugName: "icon" }] : /* istanbul ignore next */ []);
|
|
12
|
+
this.image = input(...ngDevMode ? [void 0, { debugName: "image" }] : /* istanbul ignore next */ []);
|
|
13
|
+
this.alt = input(...ngDevMode ? [void 0, { debugName: "alt" }] : /* istanbul ignore next */ []);
|
|
14
|
+
this.rounded = input(true, {
|
|
15
|
+
...ngDevMode ? { debugName: "rounded" } : /* istanbul ignore next */ {},
|
|
16
|
+
transform: booleanAttribute
|
|
17
|
+
});
|
|
18
|
+
this.removable = input(false, {
|
|
19
|
+
...ngDevMode ? { debugName: "removable" } : /* istanbul ignore next */ {},
|
|
20
|
+
transform: booleanAttribute
|
|
21
|
+
});
|
|
22
|
+
this.removeIcon = input("xmark", ...ngDevMode ? [{ debugName: "removeIcon" }] : /* istanbul ignore next */ []);
|
|
23
|
+
this.disabled = input(false, {
|
|
24
|
+
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
25
|
+
transform: booleanAttribute
|
|
26
|
+
});
|
|
27
|
+
this.selectable = input(false, {
|
|
28
|
+
...ngDevMode ? { debugName: "selectable" } : /* istanbul ignore next */ {},
|
|
29
|
+
transform: booleanAttribute
|
|
30
|
+
});
|
|
31
|
+
this.selected = model(false, ...ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []);
|
|
32
|
+
this.selectedIcon = input("check", ...ngDevMode ? [{ debugName: "selectedIcon" }] : /* istanbul ignore next */ []);
|
|
33
|
+
this.ariaLabel = input(...ngDevMode ? [void 0, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
34
|
+
this.ariaLabelledBy = input(...ngDevMode ? [void 0, { debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
|
|
35
|
+
this.removeAriaLabel = input("Supprimer", ...ngDevMode ? [{ debugName: "removeAriaLabel" }] : /* istanbul ignore next */ []);
|
|
36
|
+
this.removeTabindex = input(...ngDevMode ? [void 0, { debugName: "removeTabindex" }] : /* istanbul ignore next */ []);
|
|
37
|
+
this.remove = output();
|
|
38
|
+
this.chipClick = output();
|
|
39
|
+
this.imageError = output();
|
|
40
|
+
this.imageFailed = signal(false, ...ngDevMode ? [{ debugName: "imageFailed" }] : /* istanbul ignore next */ []);
|
|
41
|
+
this.hasLabel = computed(() => !!this.label()?.length, ...ngDevMode ? [{ debugName: "hasLabel" }] : /* istanbul ignore next */ []);
|
|
42
|
+
this.showImage = computed(() => !!this.image() && !this.imageFailed(), ...ngDevMode ? [{ debugName: "showImage" }] : /* istanbul ignore next */ []);
|
|
43
|
+
this.showSelectedIcon = computed(() => this.selectable() && this.selected() && !!this.selectedIcon(), ...ngDevMode ? [{ debugName: "showSelectedIcon" }] : /* istanbul ignore next */ []);
|
|
44
|
+
this.showLeadingImage = computed(() => !this.showSelectedIcon() && this.showImage(), ...ngDevMode ? [{ debugName: "showLeadingImage" }] : /* istanbul ignore next */ []);
|
|
45
|
+
this.showIcon = computed(() => !this.showImage() && !!this.icon(), ...ngDevMode ? [{ debugName: "showIcon" }] : /* istanbul ignore next */ []);
|
|
46
|
+
this.showLeadingIcon = computed(() => !this.showSelectedIcon() && this.showIcon(), ...ngDevMode ? [{ debugName: "showLeadingIcon" }] : /* istanbul ignore next */ []);
|
|
47
|
+
this.showRemove = computed(() => this.removable() && !this.selectable(), ...ngDevMode ? [{ debugName: "showRemove" }] : /* istanbul ignore next */ []);
|
|
48
|
+
this.isVisualOnly = computed(() => (this.showImage() || this.showIcon()) && !this.hasLabel(), ...ngDevMode ? [{ debugName: "isVisualOnly" }] : /* istanbul ignore next */ []);
|
|
49
|
+
this.accessibleName = computed(() => this.ariaLabel() ?? this.label() ?? null, ...ngDevMode ? [{ debugName: "accessibleName" }] : /* istanbul ignore next */ []);
|
|
50
|
+
this.rootAriaLabel = computed(() => this.ariaLabelledBy() ? null : this.accessibleName(), ...ngDevMode ? [{ debugName: "rootAriaLabel" }] : /* istanbul ignore next */ []);
|
|
51
|
+
this.iconSize = computed(() => this.size() === "small" ? "sm" : "md", ...ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []);
|
|
52
|
+
this.removeIconSize = "sm";
|
|
53
|
+
this.classes = computed(() => {
|
|
54
|
+
const c = [
|
|
55
|
+
"ui-chip",
|
|
56
|
+
`_${this.level()}`,
|
|
57
|
+
`_${this.subLevel()}`
|
|
58
|
+
];
|
|
59
|
+
if (this.size() !== "default") c.push(`_${this.size()}`);
|
|
60
|
+
if (!this.rounded()) c.push("_square");
|
|
61
|
+
if (this.showRemove()) c.push("_removable");
|
|
62
|
+
if (this.disabled()) c.push("_disabled");
|
|
63
|
+
if (this.selectable()) c.push("_selectable");
|
|
64
|
+
if (this.selectable() && this.selected()) c.push("_selected");
|
|
65
|
+
return c.join(" ");
|
|
66
|
+
}, ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
|
|
67
|
+
effect(() => {
|
|
68
|
+
this.image();
|
|
69
|
+
this.imageFailed.set(false);
|
|
70
|
+
});
|
|
71
|
+
if (isDevMode()) {
|
|
72
|
+
effect(() => {
|
|
73
|
+
if (this.isVisualOnly() && !this.accessibleName()) console.warn("[ui-chip] Chip has no text: provide `label`, `ariaLabel` or `ariaLabelledBy`.");
|
|
74
|
+
});
|
|
75
|
+
effect(() => {
|
|
76
|
+
if (this.selectable() && this.removable()) console.warn("[ui-chip] `selectable` and `removable` are mutually exclusive: the remove action is ignored.");
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
onImageError(event) {
|
|
81
|
+
this.imageFailed.set(true);
|
|
82
|
+
this.imageError.emit(event);
|
|
83
|
+
}
|
|
84
|
+
onRemove(event) {
|
|
85
|
+
if (this.disabled()) return;
|
|
86
|
+
this.remove.emit(event);
|
|
87
|
+
}
|
|
88
|
+
onRemoveKeydown(event) {
|
|
89
|
+
if (event.key === "Backspace" || event.key === "Delete") {
|
|
90
|
+
event.preventDefault();
|
|
91
|
+
this.onRemove(event);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
onToggle(event) {
|
|
95
|
+
if (this.disabled()) return;
|
|
96
|
+
this.selected.set(!this.selected());
|
|
97
|
+
this.chipClick.emit(event);
|
|
98
|
+
}
|
|
99
|
+
static {
|
|
100
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
101
|
+
minVersion: "12.0.0",
|
|
102
|
+
version: "22.3.0",
|
|
103
|
+
ngImport: i0,
|
|
104
|
+
type: UiChip,
|
|
105
|
+
deps: [],
|
|
106
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
static {
|
|
110
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
111
|
+
minVersion: "17.0.0",
|
|
112
|
+
version: "22.3.0",
|
|
113
|
+
type: UiChip,
|
|
114
|
+
isStandalone: true,
|
|
115
|
+
selector: "ui-chip",
|
|
116
|
+
inputs: {
|
|
117
|
+
label: {
|
|
118
|
+
classPropertyName: "label",
|
|
119
|
+
publicName: "label",
|
|
120
|
+
isSignal: true,
|
|
121
|
+
isRequired: false,
|
|
122
|
+
transformFunction: null
|
|
123
|
+
},
|
|
124
|
+
level: {
|
|
125
|
+
classPropertyName: "level",
|
|
126
|
+
publicName: "level",
|
|
127
|
+
isSignal: true,
|
|
128
|
+
isRequired: false,
|
|
129
|
+
transformFunction: null
|
|
130
|
+
},
|
|
131
|
+
subLevel: {
|
|
132
|
+
classPropertyName: "subLevel",
|
|
133
|
+
publicName: "subLevel",
|
|
134
|
+
isSignal: true,
|
|
135
|
+
isRequired: false,
|
|
136
|
+
transformFunction: null
|
|
137
|
+
},
|
|
138
|
+
size: {
|
|
139
|
+
classPropertyName: "size",
|
|
140
|
+
publicName: "size",
|
|
141
|
+
isSignal: true,
|
|
142
|
+
isRequired: false,
|
|
143
|
+
transformFunction: null
|
|
144
|
+
},
|
|
145
|
+
icon: {
|
|
146
|
+
classPropertyName: "icon",
|
|
147
|
+
publicName: "icon",
|
|
148
|
+
isSignal: true,
|
|
149
|
+
isRequired: false,
|
|
150
|
+
transformFunction: null
|
|
151
|
+
},
|
|
152
|
+
image: {
|
|
153
|
+
classPropertyName: "image",
|
|
154
|
+
publicName: "image",
|
|
155
|
+
isSignal: true,
|
|
156
|
+
isRequired: false,
|
|
157
|
+
transformFunction: null
|
|
158
|
+
},
|
|
159
|
+
alt: {
|
|
160
|
+
classPropertyName: "alt",
|
|
161
|
+
publicName: "alt",
|
|
162
|
+
isSignal: true,
|
|
163
|
+
isRequired: false,
|
|
164
|
+
transformFunction: null
|
|
165
|
+
},
|
|
166
|
+
rounded: {
|
|
167
|
+
classPropertyName: "rounded",
|
|
168
|
+
publicName: "rounded",
|
|
169
|
+
isSignal: true,
|
|
170
|
+
isRequired: false,
|
|
171
|
+
transformFunction: null
|
|
172
|
+
},
|
|
173
|
+
removable: {
|
|
174
|
+
classPropertyName: "removable",
|
|
175
|
+
publicName: "removable",
|
|
176
|
+
isSignal: true,
|
|
177
|
+
isRequired: false,
|
|
178
|
+
transformFunction: null
|
|
179
|
+
},
|
|
180
|
+
removeIcon: {
|
|
181
|
+
classPropertyName: "removeIcon",
|
|
182
|
+
publicName: "removeIcon",
|
|
183
|
+
isSignal: true,
|
|
184
|
+
isRequired: false,
|
|
185
|
+
transformFunction: null
|
|
186
|
+
},
|
|
187
|
+
disabled: {
|
|
188
|
+
classPropertyName: "disabled",
|
|
189
|
+
publicName: "disabled",
|
|
190
|
+
isSignal: true,
|
|
191
|
+
isRequired: false,
|
|
192
|
+
transformFunction: null
|
|
193
|
+
},
|
|
194
|
+
selectable: {
|
|
195
|
+
classPropertyName: "selectable",
|
|
196
|
+
publicName: "selectable",
|
|
197
|
+
isSignal: true,
|
|
198
|
+
isRequired: false,
|
|
199
|
+
transformFunction: null
|
|
200
|
+
},
|
|
201
|
+
selected: {
|
|
202
|
+
classPropertyName: "selected",
|
|
203
|
+
publicName: "selected",
|
|
204
|
+
isSignal: true,
|
|
205
|
+
isRequired: false,
|
|
206
|
+
transformFunction: null
|
|
207
|
+
},
|
|
208
|
+
selectedIcon: {
|
|
209
|
+
classPropertyName: "selectedIcon",
|
|
210
|
+
publicName: "selectedIcon",
|
|
211
|
+
isSignal: true,
|
|
212
|
+
isRequired: false,
|
|
213
|
+
transformFunction: null
|
|
214
|
+
},
|
|
215
|
+
ariaLabel: {
|
|
216
|
+
classPropertyName: "ariaLabel",
|
|
217
|
+
publicName: "ariaLabel",
|
|
218
|
+
isSignal: true,
|
|
219
|
+
isRequired: false,
|
|
220
|
+
transformFunction: null
|
|
221
|
+
},
|
|
222
|
+
ariaLabelledBy: {
|
|
223
|
+
classPropertyName: "ariaLabelledBy",
|
|
224
|
+
publicName: "ariaLabelledBy",
|
|
225
|
+
isSignal: true,
|
|
226
|
+
isRequired: false,
|
|
227
|
+
transformFunction: null
|
|
228
|
+
},
|
|
229
|
+
removeAriaLabel: {
|
|
230
|
+
classPropertyName: "removeAriaLabel",
|
|
231
|
+
publicName: "removeAriaLabel",
|
|
232
|
+
isSignal: true,
|
|
233
|
+
isRequired: false,
|
|
234
|
+
transformFunction: null
|
|
235
|
+
},
|
|
236
|
+
removeTabindex: {
|
|
237
|
+
classPropertyName: "removeTabindex",
|
|
238
|
+
publicName: "removeTabindex",
|
|
239
|
+
isSignal: true,
|
|
240
|
+
isRequired: false,
|
|
241
|
+
transformFunction: null
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
outputs: {
|
|
245
|
+
selected: "selectedChange",
|
|
246
|
+
remove: "remove",
|
|
247
|
+
chipClick: "chipClick",
|
|
248
|
+
imageError: "imageError"
|
|
249
|
+
},
|
|
250
|
+
ngImport: i0,
|
|
251
|
+
template: "@if (selectable()) {\n <button\n type=\"button\"\n [class]=\"classes()\"\n [disabled]=\"disabled()\"\n [attr.aria-pressed]=\"selected()\"\n [attr.aria-label]=\"rootAriaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n (click)=\"onToggle($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </button>\n} @else {\n <span\n [class]=\"classes()\"\n [attr.role]=\"rootAriaLabel() || ariaLabelledBy() ? (showRemove() ? 'group' : 'img') : null\"\n [attr.aria-label]=\"rootAriaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </span>\n}\n\n<ng-template #inner>\n @if (showSelectedIcon()) {\n <ui-icon class=\"ui-chip-icon\" [name]=\"selectedIcon()!\" [size]=\"iconSize()\" />\n } @else if (showLeadingImage()) {\n <img\n class=\"ui-chip-image\"\n [src]=\"image()\"\n [attr.alt]=\"alt() ?? ''\"\n (error)=\"onImageError($event)\"\n />\n } @else if (showLeadingIcon()) {\n <ui-icon class=\"ui-chip-icon\" [name]=\"icon()!\" [size]=\"iconSize()\" />\n }\n\n @if (hasLabel()) {\n <span class=\"ui-chip-label\">{{ label() }}</span>\n }\n\n <!-- Custom / templated content -->\n <ng-content />\n\n @if (showRemove()) {\n <button\n type=\"button\"\n class=\"ui-chip-remove\"\n [disabled]=\"disabled()\"\n [attr.tabindex]=\"removeTabindex()\"\n [attr.aria-label]=\"removeAriaLabel()\"\n (click)=\"onRemove($event)\"\n (keydown)=\"onRemoveKeydown($event)\"\n >\n <ui-icon [name]=\"removeIcon()\" [size]=\"removeIconSize\" />\n </button>\n }\n</ng-template>\n",
|
|
252
|
+
styles: [".ui-chip{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;max-width:100%;border:var(--ui-chip-stroke-width, var(--stroke-sm)) solid transparent;border-radius:var(--ui-chip-radius, var(--radius-full));font-family:var(--ui-chip-font-family, var(--fontfamily-base));font-weight:var(--ui-chip-weight, var(--weight-regular));line-height:1;white-space:nowrap;height:var(--ui-chip-height, 2rem);min-width:var(--ui-chip-height, 2rem);gap:var(--ui-chip-gap, var(--units-xs));padding:0 var(--ui-chip-padding-x, var(--units-sm));font-size:var(--ui-chip-font-size, var(--size-typography-text-default))}.ui-chip .ui-chip-image{width:var(--ui-chip-image-size, 1.5rem);height:var(--ui-chip-image-size, 1.5rem)}.ui-chip-icon{line-height:0;flex:none}.ui-chip-image{flex:none;margin-inline-start:calc(-1 * var(--ui-chip-image-offset, var(--units-2xs)));border-radius:var(--ui-chip-image-radius, var(--radius-full));object-fit:cover}.ui-chip-label{display:inline-flex;align-items:center;height:100%;overflow:hidden;text-overflow:ellipsis}.ui-chip-remove{flex:none;display:inline-flex;align-items:center;justify-content:center;margin:0;padding:var(--ui-chip-remove-padding, var(--units-2xs));border:0;border-radius:var(--ui-chip-remove-radius, var(--radius-full));background:transparent;color:inherit;line-height:0;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-chip-remove:disabled{cursor:not-allowed}.ui-chip._removable{padding-inline-end:var(--ui-chip-padding-inline-end-removable, var(--units-2xs))!important}.ui-chip._selectable{appearance:none;cursor:pointer;text-align:center;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))),border-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-chip._selectable:disabled{cursor:not-allowed}.ui-chip._square{border-radius:var(--ui-chip-radius-square, var(--radius-sm))}.ui-chip._square .ui-chip-image{border-radius:var(--ui-chip-image-radius-square, var(--radius-xs))}.ui-chip._disabled{cursor:not-allowed}.ui-chip._small{height:var(--ui-chip-height-small, 1.5rem);min-width:var(--ui-chip-height-small, 1.5rem);gap:var(--ui-chip-gap-small, var(--units-2xs));padding:0 var(--ui-chip-padding-x-small, var(--units-sm));font-size:var(--ui-chip-font-size-small, var(--size-typography-text-md))}.ui-chip._small .ui-chip-image{width:var(--ui-chip-image-size-small, 1.125rem);height:var(--ui-chip-image-size-small, 1.125rem)}.ui-chip._default._high{background-color:var(--ui-chip-surface, var(--informative-defaulthigh-surface-default));color:var(--ui-chip-color, var(--informative-defaulthigh-content-default));border-color:var(--ui-chip-stroke, var(--informative-defaulthigh-stroke-default))}.ui-chip._default._high .ui-chip-remove:hover:not(:disabled){background-color:var(--ui-chip-remove-surface-hover, var(--informative-defaulthigh-surface-hover));color:var(--ui-chip-remove-color-hover, var(--informative-defaulthigh-content-hover))}.ui-chip._default._high .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-remove-focus-ring-color, var(--informative-defaulthigh-content-default))}.ui-chip._default._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--ui-chip-surface-hover, var(--informative-defaulthigh-surface-hover));color:var(--ui-chip-color-hover, var(--informative-defaulthigh-content-hover))}.ui-chip._default._low{background-color:var(--ui-chip-surface, var(--informative-defaultlow-surface-default));color:var(--ui-chip-color, var(--informative-defaultlow-content-default));border-color:var(--ui-chip-stroke, var(--informative-defaultlow-stroke-default))}.ui-chip._default._low .ui-chip-remove:hover:not(:disabled){background-color:var(--ui-chip-remove-surface-hover, var(--informative-defaultlow-surface-hover));color:var(--ui-chip-remove-color-hover, var(--informative-defaultlow-content-hover))}.ui-chip._default._low .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-remove-focus-ring-color, var(--informative-defaultlow-content-default))}.ui-chip._default._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--ui-chip-surface-hover, var(--informative-defaultlow-surface-hover));color:var(--ui-chip-color-hover, var(--informative-defaultlow-content-hover))}.ui-chip._default._selected{background-color:var(--ui-chip-surface-selected, var(--informative-defaulthigh-surface-default));color:var(--ui-chip-color-selected, var(--informative-defaulthigh-content-default));border-color:var(--ui-chip-stroke-selected, var(--informative-defaulthigh-stroke-default))}.ui-chip._default._selected._selectable:hover:not(:disabled){background-color:var(--ui-chip-surface-selected-hover, var(--informative-defaulthigh-surface-hover));color:var(--ui-chip-color-selected-hover, var(--informative-defaulthigh-content-hover))}.ui-chip._default._selectable:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-focus-ring-color, var(--informative-defaulthigh-surface-default))}.ui-chip._highlight._high{background-color:var(--ui-chip-surface, var(--informative-highlighthigh-surface-default));color:var(--ui-chip-color, var(--informative-highlighthigh-content-default));border-color:var(--ui-chip-stroke, var(--informative-highlighthigh-stroke-default))}.ui-chip._highlight._high .ui-chip-remove:hover:not(:disabled){background-color:var(--ui-chip-remove-surface-hover, var(--informative-highlighthigh-surface-hover));color:var(--ui-chip-remove-color-hover, var(--informative-highlighthigh-content-hover))}.ui-chip._highlight._high .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-remove-focus-ring-color, var(--informative-highlighthigh-content-default))}.ui-chip._highlight._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--ui-chip-surface-hover, var(--informative-highlighthigh-surface-hover));color:var(--ui-chip-color-hover, var(--informative-highlighthigh-content-hover))}.ui-chip._highlight._low{background-color:var(--ui-chip-surface, var(--informative-highlightlow-surface-default));color:var(--ui-chip-color, var(--informative-highlightlow-content-default));border-color:var(--ui-chip-stroke, var(--informative-highlightlow-stroke-default))}.ui-chip._highlight._low .ui-chip-remove:hover:not(:disabled){background-color:var(--ui-chip-remove-surface-hover, var(--informative-highlightlow-surface-hover));color:var(--ui-chip-remove-color-hover, var(--informative-highlightlow-content-hover))}.ui-chip._highlight._low .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-remove-focus-ring-color, var(--informative-highlightlow-content-default))}.ui-chip._highlight._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--ui-chip-surface-hover, var(--informative-highlightlow-surface-hover));color:var(--ui-chip-color-hover, var(--informative-highlightlow-content-hover))}.ui-chip._highlight._selected{background-color:var(--ui-chip-surface-selected, var(--informative-highlighthigh-surface-default));color:var(--ui-chip-color-selected, var(--informative-highlighthigh-content-default));border-color:var(--ui-chip-stroke-selected, var(--informative-highlighthigh-stroke-default))}.ui-chip._highlight._selected._selectable:hover:not(:disabled){background-color:var(--ui-chip-surface-selected-hover, var(--informative-highlighthigh-surface-hover));color:var(--ui-chip-color-selected-hover, var(--informative-highlighthigh-content-hover))}.ui-chip._highlight._selectable:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-focus-ring-color, var(--informative-highlighthigh-surface-default))}.ui-chip._success._high{background-color:var(--ui-chip-surface, var(--informative-successhigh-surface-default));color:var(--ui-chip-color, var(--informative-successhigh-content-default));border-color:var(--ui-chip-stroke, var(--informative-successhigh-stroke-default))}.ui-chip._success._high .ui-chip-remove:hover:not(:disabled){background-color:var(--ui-chip-remove-surface-hover, var(--informative-successhigh-surface-hover));color:var(--ui-chip-remove-color-hover, var(--informative-successhigh-content-hover))}.ui-chip._success._high .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-remove-focus-ring-color, var(--informative-successhigh-content-default))}.ui-chip._success._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--ui-chip-surface-hover, var(--informative-successhigh-surface-hover));color:var(--ui-chip-color-hover, var(--informative-successhigh-content-hover))}.ui-chip._success._low{background-color:var(--ui-chip-surface, var(--informative-successlow-surface-default));color:var(--ui-chip-color, var(--informative-successlow-content-default));border-color:var(--ui-chip-stroke, var(--informative-successlow-stroke-default))}.ui-chip._success._low .ui-chip-remove:hover:not(:disabled){background-color:var(--ui-chip-remove-surface-hover, var(--informative-successlow-surface-hover));color:var(--ui-chip-remove-color-hover, var(--informative-successlow-content-hover))}.ui-chip._success._low .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-remove-focus-ring-color, var(--informative-successlow-content-default))}.ui-chip._success._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--ui-chip-surface-hover, var(--informative-successlow-surface-hover));color:var(--ui-chip-color-hover, var(--informative-successlow-content-hover))}.ui-chip._success._selected{background-color:var(--ui-chip-surface-selected, var(--informative-successhigh-surface-default));color:var(--ui-chip-color-selected, var(--informative-successhigh-content-default));border-color:var(--ui-chip-stroke-selected, var(--informative-successhigh-stroke-default))}.ui-chip._success._selected._selectable:hover:not(:disabled){background-color:var(--ui-chip-surface-selected-hover, var(--informative-successhigh-surface-hover));color:var(--ui-chip-color-selected-hover, var(--informative-successhigh-content-hover))}.ui-chip._success._selectable:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-focus-ring-color, var(--informative-successhigh-surface-default))}.ui-chip._warning._high{background-color:var(--ui-chip-surface, var(--informative-warninghigh-surface-default));color:var(--ui-chip-color, var(--informative-warninghigh-content-default));border-color:var(--ui-chip-stroke, var(--informative-warninghigh-stroke-default))}.ui-chip._warning._high .ui-chip-remove:hover:not(:disabled){background-color:var(--ui-chip-remove-surface-hover, var(--informative-warninghigh-surface-hover));color:var(--ui-chip-remove-color-hover, var(--informative-warninghigh-content-hover))}.ui-chip._warning._high .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-remove-focus-ring-color, var(--informative-warninghigh-content-default))}.ui-chip._warning._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--ui-chip-surface-hover, var(--informative-warninghigh-surface-hover));color:var(--ui-chip-color-hover, var(--informative-warninghigh-content-hover))}.ui-chip._warning._low{background-color:var(--ui-chip-surface, var(--informative-warninglow-surface-default));color:var(--ui-chip-color, var(--informative-warninglow-content-default));border-color:var(--ui-chip-stroke, var(--informative-warninglow-stroke-default))}.ui-chip._warning._low .ui-chip-remove:hover:not(:disabled){background-color:var(--ui-chip-remove-surface-hover, var(--informative-warninglow-surface-hover));color:var(--ui-chip-remove-color-hover, var(--informative-warninglow-content-hover))}.ui-chip._warning._low .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-remove-focus-ring-color, var(--informative-warninglow-content-default))}.ui-chip._warning._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--ui-chip-surface-hover, var(--informative-warninglow-surface-hover));color:var(--ui-chip-color-hover, var(--informative-warninglow-content-hover))}.ui-chip._warning._selected{background-color:var(--ui-chip-surface-selected, var(--informative-warninghigh-surface-default));color:var(--ui-chip-color-selected, var(--informative-warninghigh-content-default));border-color:var(--ui-chip-stroke-selected, var(--informative-warninghigh-stroke-default))}.ui-chip._warning._selected._selectable:hover:not(:disabled){background-color:var(--ui-chip-surface-selected-hover, var(--informative-warninghigh-surface-hover));color:var(--ui-chip-color-selected-hover, var(--informative-warninghigh-content-hover))}.ui-chip._warning._selectable:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-focus-ring-color, var(--informative-warninghigh-surface-default))}.ui-chip._error._high{background-color:var(--ui-chip-surface, var(--informative-errorhigh-surface-default));color:var(--ui-chip-color, var(--informative-errorhigh-content-default));border-color:var(--ui-chip-stroke, var(--informative-errorhigh-stroke-default))}.ui-chip._error._high .ui-chip-remove:hover:not(:disabled){background-color:var(--ui-chip-remove-surface-hover, var(--informative-errorhigh-surface-hover));color:var(--ui-chip-remove-color-hover, var(--informative-errorhigh-content-hover))}.ui-chip._error._high .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-remove-focus-ring-color, var(--informative-errorhigh-content-default))}.ui-chip._error._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--ui-chip-surface-hover, var(--informative-errorhigh-surface-hover));color:var(--ui-chip-color-hover, var(--informative-errorhigh-content-hover))}.ui-chip._error._low{background-color:var(--ui-chip-surface, var(--informative-errorlow-surface-default));color:var(--ui-chip-color, var(--informative-errorlow-content-default));border-color:var(--ui-chip-stroke, var(--informative-errorlow-stroke-default))}.ui-chip._error._low .ui-chip-remove:hover:not(:disabled){background-color:var(--ui-chip-remove-surface-hover, var(--informative-errorlow-surface-hover));color:var(--ui-chip-remove-color-hover, var(--informative-errorlow-content-hover))}.ui-chip._error._low .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-remove-focus-ring-color, var(--informative-errorlow-content-default))}.ui-chip._error._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--ui-chip-surface-hover, var(--informative-errorlow-surface-hover));color:var(--ui-chip-color-hover, var(--informative-errorlow-content-hover))}.ui-chip._error._selected{background-color:var(--ui-chip-surface-selected, var(--informative-errorhigh-surface-default));color:var(--ui-chip-color-selected, var(--informative-errorhigh-content-default));border-color:var(--ui-chip-stroke-selected, var(--informative-errorhigh-stroke-default))}.ui-chip._error._selected._selectable:hover:not(:disabled){background-color:var(--ui-chip-surface-selected-hover, var(--informative-errorhigh-surface-hover));color:var(--ui-chip-color-selected-hover, var(--informative-errorhigh-content-hover))}.ui-chip._error._selectable:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-focus-ring-color, var(--informative-errorhigh-surface-default))}\n"],
|
|
253
|
+
dependencies: [{
|
|
254
|
+
kind: "component",
|
|
255
|
+
type: UiIcon,
|
|
256
|
+
selector: "ui-icon",
|
|
257
|
+
inputs: [
|
|
258
|
+
"name",
|
|
259
|
+
"size",
|
|
260
|
+
"type",
|
|
261
|
+
"family",
|
|
262
|
+
"decorative",
|
|
263
|
+
"ariaLabel"
|
|
264
|
+
]
|
|
265
|
+
}, {
|
|
266
|
+
kind: "directive",
|
|
267
|
+
type: NgTemplateOutlet,
|
|
268
|
+
selector: "[ngTemplateOutlet]",
|
|
269
|
+
inputs: [
|
|
270
|
+
"ngTemplateOutletContext",
|
|
271
|
+
"ngTemplateOutlet",
|
|
272
|
+
"ngTemplateOutletInjector"
|
|
273
|
+
]
|
|
274
|
+
}]
|
|
275
|
+
});
|
|
276
|
+
}
|
|
277
|
+
};
|
|
278
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
279
|
+
minVersion: "12.0.0",
|
|
280
|
+
version: "22.3.0",
|
|
281
|
+
ngImport: i0,
|
|
282
|
+
type: UiChip,
|
|
283
|
+
decorators: [{
|
|
284
|
+
type: Component,
|
|
285
|
+
args: [{
|
|
286
|
+
selector: "ui-chip",
|
|
287
|
+
imports: [UiIcon, NgTemplateOutlet],
|
|
288
|
+
template: "@if (selectable()) {\n <button\n type=\"button\"\n [class]=\"classes()\"\n [disabled]=\"disabled()\"\n [attr.aria-pressed]=\"selected()\"\n [attr.aria-label]=\"rootAriaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n (click)=\"onToggle($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </button>\n} @else {\n <span\n [class]=\"classes()\"\n [attr.role]=\"rootAriaLabel() || ariaLabelledBy() ? (showRemove() ? 'group' : 'img') : null\"\n [attr.aria-label]=\"rootAriaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </span>\n}\n\n<ng-template #inner>\n @if (showSelectedIcon()) {\n <ui-icon class=\"ui-chip-icon\" [name]=\"selectedIcon()!\" [size]=\"iconSize()\" />\n } @else if (showLeadingImage()) {\n <img\n class=\"ui-chip-image\"\n [src]=\"image()\"\n [attr.alt]=\"alt() ?? ''\"\n (error)=\"onImageError($event)\"\n />\n } @else if (showLeadingIcon()) {\n <ui-icon class=\"ui-chip-icon\" [name]=\"icon()!\" [size]=\"iconSize()\" />\n }\n\n @if (hasLabel()) {\n <span class=\"ui-chip-label\">{{ label() }}</span>\n }\n\n <!-- Custom / templated content -->\n <ng-content />\n\n @if (showRemove()) {\n <button\n type=\"button\"\n class=\"ui-chip-remove\"\n [disabled]=\"disabled()\"\n [attr.tabindex]=\"removeTabindex()\"\n [attr.aria-label]=\"removeAriaLabel()\"\n (click)=\"onRemove($event)\"\n (keydown)=\"onRemoveKeydown($event)\"\n >\n <ui-icon [name]=\"removeIcon()\" [size]=\"removeIconSize\" />\n </button>\n }\n</ng-template>\n",
|
|
289
|
+
styles: [".ui-chip{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;max-width:100%;border:var(--ui-chip-stroke-width, var(--stroke-sm)) solid transparent;border-radius:var(--ui-chip-radius, var(--radius-full));font-family:var(--ui-chip-font-family, var(--fontfamily-base));font-weight:var(--ui-chip-weight, var(--weight-regular));line-height:1;white-space:nowrap;height:var(--ui-chip-height, 2rem);min-width:var(--ui-chip-height, 2rem);gap:var(--ui-chip-gap, var(--units-xs));padding:0 var(--ui-chip-padding-x, var(--units-sm));font-size:var(--ui-chip-font-size, var(--size-typography-text-default))}.ui-chip .ui-chip-image{width:var(--ui-chip-image-size, 1.5rem);height:var(--ui-chip-image-size, 1.5rem)}.ui-chip-icon{line-height:0;flex:none}.ui-chip-image{flex:none;margin-inline-start:calc(-1 * var(--ui-chip-image-offset, var(--units-2xs)));border-radius:var(--ui-chip-image-radius, var(--radius-full));object-fit:cover}.ui-chip-label{display:inline-flex;align-items:center;height:100%;overflow:hidden;text-overflow:ellipsis}.ui-chip-remove{flex:none;display:inline-flex;align-items:center;justify-content:center;margin:0;padding:var(--ui-chip-remove-padding, var(--units-2xs));border:0;border-radius:var(--ui-chip-remove-radius, var(--radius-full));background:transparent;color:inherit;line-height:0;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-chip-remove:disabled{cursor:not-allowed}.ui-chip._removable{padding-inline-end:var(--ui-chip-padding-inline-end-removable, var(--units-2xs))!important}.ui-chip._selectable{appearance:none;cursor:pointer;text-align:center;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))),border-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-chip._selectable:disabled{cursor:not-allowed}.ui-chip._square{border-radius:var(--ui-chip-radius-square, var(--radius-sm))}.ui-chip._square .ui-chip-image{border-radius:var(--ui-chip-image-radius-square, var(--radius-xs))}.ui-chip._disabled{cursor:not-allowed}.ui-chip._small{height:var(--ui-chip-height-small, 1.5rem);min-width:var(--ui-chip-height-small, 1.5rem);gap:var(--ui-chip-gap-small, var(--units-2xs));padding:0 var(--ui-chip-padding-x-small, var(--units-sm));font-size:var(--ui-chip-font-size-small, var(--size-typography-text-md))}.ui-chip._small .ui-chip-image{width:var(--ui-chip-image-size-small, 1.125rem);height:var(--ui-chip-image-size-small, 1.125rem)}.ui-chip._default._high{background-color:var(--ui-chip-surface, var(--informative-defaulthigh-surface-default));color:var(--ui-chip-color, var(--informative-defaulthigh-content-default));border-color:var(--ui-chip-stroke, var(--informative-defaulthigh-stroke-default))}.ui-chip._default._high .ui-chip-remove:hover:not(:disabled){background-color:var(--ui-chip-remove-surface-hover, var(--informative-defaulthigh-surface-hover));color:var(--ui-chip-remove-color-hover, var(--informative-defaulthigh-content-hover))}.ui-chip._default._high .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-remove-focus-ring-color, var(--informative-defaulthigh-content-default))}.ui-chip._default._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--ui-chip-surface-hover, var(--informative-defaulthigh-surface-hover));color:var(--ui-chip-color-hover, var(--informative-defaulthigh-content-hover))}.ui-chip._default._low{background-color:var(--ui-chip-surface, var(--informative-defaultlow-surface-default));color:var(--ui-chip-color, var(--informative-defaultlow-content-default));border-color:var(--ui-chip-stroke, var(--informative-defaultlow-stroke-default))}.ui-chip._default._low .ui-chip-remove:hover:not(:disabled){background-color:var(--ui-chip-remove-surface-hover, var(--informative-defaultlow-surface-hover));color:var(--ui-chip-remove-color-hover, var(--informative-defaultlow-content-hover))}.ui-chip._default._low .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-remove-focus-ring-color, var(--informative-defaultlow-content-default))}.ui-chip._default._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--ui-chip-surface-hover, var(--informative-defaultlow-surface-hover));color:var(--ui-chip-color-hover, var(--informative-defaultlow-content-hover))}.ui-chip._default._selected{background-color:var(--ui-chip-surface-selected, var(--informative-defaulthigh-surface-default));color:var(--ui-chip-color-selected, var(--informative-defaulthigh-content-default));border-color:var(--ui-chip-stroke-selected, var(--informative-defaulthigh-stroke-default))}.ui-chip._default._selected._selectable:hover:not(:disabled){background-color:var(--ui-chip-surface-selected-hover, var(--informative-defaulthigh-surface-hover));color:var(--ui-chip-color-selected-hover, var(--informative-defaulthigh-content-hover))}.ui-chip._default._selectable:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-focus-ring-color, var(--informative-defaulthigh-surface-default))}.ui-chip._highlight._high{background-color:var(--ui-chip-surface, var(--informative-highlighthigh-surface-default));color:var(--ui-chip-color, var(--informative-highlighthigh-content-default));border-color:var(--ui-chip-stroke, var(--informative-highlighthigh-stroke-default))}.ui-chip._highlight._high .ui-chip-remove:hover:not(:disabled){background-color:var(--ui-chip-remove-surface-hover, var(--informative-highlighthigh-surface-hover));color:var(--ui-chip-remove-color-hover, var(--informative-highlighthigh-content-hover))}.ui-chip._highlight._high .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-remove-focus-ring-color, var(--informative-highlighthigh-content-default))}.ui-chip._highlight._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--ui-chip-surface-hover, var(--informative-highlighthigh-surface-hover));color:var(--ui-chip-color-hover, var(--informative-highlighthigh-content-hover))}.ui-chip._highlight._low{background-color:var(--ui-chip-surface, var(--informative-highlightlow-surface-default));color:var(--ui-chip-color, var(--informative-highlightlow-content-default));border-color:var(--ui-chip-stroke, var(--informative-highlightlow-stroke-default))}.ui-chip._highlight._low .ui-chip-remove:hover:not(:disabled){background-color:var(--ui-chip-remove-surface-hover, var(--informative-highlightlow-surface-hover));color:var(--ui-chip-remove-color-hover, var(--informative-highlightlow-content-hover))}.ui-chip._highlight._low .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-remove-focus-ring-color, var(--informative-highlightlow-content-default))}.ui-chip._highlight._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--ui-chip-surface-hover, var(--informative-highlightlow-surface-hover));color:var(--ui-chip-color-hover, var(--informative-highlightlow-content-hover))}.ui-chip._highlight._selected{background-color:var(--ui-chip-surface-selected, var(--informative-highlighthigh-surface-default));color:var(--ui-chip-color-selected, var(--informative-highlighthigh-content-default));border-color:var(--ui-chip-stroke-selected, var(--informative-highlighthigh-stroke-default))}.ui-chip._highlight._selected._selectable:hover:not(:disabled){background-color:var(--ui-chip-surface-selected-hover, var(--informative-highlighthigh-surface-hover));color:var(--ui-chip-color-selected-hover, var(--informative-highlighthigh-content-hover))}.ui-chip._highlight._selectable:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-focus-ring-color, var(--informative-highlighthigh-surface-default))}.ui-chip._success._high{background-color:var(--ui-chip-surface, var(--informative-successhigh-surface-default));color:var(--ui-chip-color, var(--informative-successhigh-content-default));border-color:var(--ui-chip-stroke, var(--informative-successhigh-stroke-default))}.ui-chip._success._high .ui-chip-remove:hover:not(:disabled){background-color:var(--ui-chip-remove-surface-hover, var(--informative-successhigh-surface-hover));color:var(--ui-chip-remove-color-hover, var(--informative-successhigh-content-hover))}.ui-chip._success._high .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-remove-focus-ring-color, var(--informative-successhigh-content-default))}.ui-chip._success._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--ui-chip-surface-hover, var(--informative-successhigh-surface-hover));color:var(--ui-chip-color-hover, var(--informative-successhigh-content-hover))}.ui-chip._success._low{background-color:var(--ui-chip-surface, var(--informative-successlow-surface-default));color:var(--ui-chip-color, var(--informative-successlow-content-default));border-color:var(--ui-chip-stroke, var(--informative-successlow-stroke-default))}.ui-chip._success._low .ui-chip-remove:hover:not(:disabled){background-color:var(--ui-chip-remove-surface-hover, var(--informative-successlow-surface-hover));color:var(--ui-chip-remove-color-hover, var(--informative-successlow-content-hover))}.ui-chip._success._low .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-remove-focus-ring-color, var(--informative-successlow-content-default))}.ui-chip._success._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--ui-chip-surface-hover, var(--informative-successlow-surface-hover));color:var(--ui-chip-color-hover, var(--informative-successlow-content-hover))}.ui-chip._success._selected{background-color:var(--ui-chip-surface-selected, var(--informative-successhigh-surface-default));color:var(--ui-chip-color-selected, var(--informative-successhigh-content-default));border-color:var(--ui-chip-stroke-selected, var(--informative-successhigh-stroke-default))}.ui-chip._success._selected._selectable:hover:not(:disabled){background-color:var(--ui-chip-surface-selected-hover, var(--informative-successhigh-surface-hover));color:var(--ui-chip-color-selected-hover, var(--informative-successhigh-content-hover))}.ui-chip._success._selectable:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-focus-ring-color, var(--informative-successhigh-surface-default))}.ui-chip._warning._high{background-color:var(--ui-chip-surface, var(--informative-warninghigh-surface-default));color:var(--ui-chip-color, var(--informative-warninghigh-content-default));border-color:var(--ui-chip-stroke, var(--informative-warninghigh-stroke-default))}.ui-chip._warning._high .ui-chip-remove:hover:not(:disabled){background-color:var(--ui-chip-remove-surface-hover, var(--informative-warninghigh-surface-hover));color:var(--ui-chip-remove-color-hover, var(--informative-warninghigh-content-hover))}.ui-chip._warning._high .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-remove-focus-ring-color, var(--informative-warninghigh-content-default))}.ui-chip._warning._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--ui-chip-surface-hover, var(--informative-warninghigh-surface-hover));color:var(--ui-chip-color-hover, var(--informative-warninghigh-content-hover))}.ui-chip._warning._low{background-color:var(--ui-chip-surface, var(--informative-warninglow-surface-default));color:var(--ui-chip-color, var(--informative-warninglow-content-default));border-color:var(--ui-chip-stroke, var(--informative-warninglow-stroke-default))}.ui-chip._warning._low .ui-chip-remove:hover:not(:disabled){background-color:var(--ui-chip-remove-surface-hover, var(--informative-warninglow-surface-hover));color:var(--ui-chip-remove-color-hover, var(--informative-warninglow-content-hover))}.ui-chip._warning._low .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-remove-focus-ring-color, var(--informative-warninglow-content-default))}.ui-chip._warning._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--ui-chip-surface-hover, var(--informative-warninglow-surface-hover));color:var(--ui-chip-color-hover, var(--informative-warninglow-content-hover))}.ui-chip._warning._selected{background-color:var(--ui-chip-surface-selected, var(--informative-warninghigh-surface-default));color:var(--ui-chip-color-selected, var(--informative-warninghigh-content-default));border-color:var(--ui-chip-stroke-selected, var(--informative-warninghigh-stroke-default))}.ui-chip._warning._selected._selectable:hover:not(:disabled){background-color:var(--ui-chip-surface-selected-hover, var(--informative-warninghigh-surface-hover));color:var(--ui-chip-color-selected-hover, var(--informative-warninghigh-content-hover))}.ui-chip._warning._selectable:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-focus-ring-color, var(--informative-warninghigh-surface-default))}.ui-chip._error._high{background-color:var(--ui-chip-surface, var(--informative-errorhigh-surface-default));color:var(--ui-chip-color, var(--informative-errorhigh-content-default));border-color:var(--ui-chip-stroke, var(--informative-errorhigh-stroke-default))}.ui-chip._error._high .ui-chip-remove:hover:not(:disabled){background-color:var(--ui-chip-remove-surface-hover, var(--informative-errorhigh-surface-hover));color:var(--ui-chip-remove-color-hover, var(--informative-errorhigh-content-hover))}.ui-chip._error._high .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-remove-focus-ring-color, var(--informative-errorhigh-content-default))}.ui-chip._error._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--ui-chip-surface-hover, var(--informative-errorhigh-surface-hover));color:var(--ui-chip-color-hover, var(--informative-errorhigh-content-hover))}.ui-chip._error._low{background-color:var(--ui-chip-surface, var(--informative-errorlow-surface-default));color:var(--ui-chip-color, var(--informative-errorlow-content-default));border-color:var(--ui-chip-stroke, var(--informative-errorlow-stroke-default))}.ui-chip._error._low .ui-chip-remove:hover:not(:disabled){background-color:var(--ui-chip-remove-surface-hover, var(--informative-errorlow-surface-hover));color:var(--ui-chip-remove-color-hover, var(--informative-errorlow-content-hover))}.ui-chip._error._low .ui-chip-remove:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-remove-focus-ring-color, var(--informative-errorlow-content-default))}.ui-chip._error._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--ui-chip-surface-hover, var(--informative-errorlow-surface-hover));color:var(--ui-chip-color-hover, var(--informative-errorlow-content-hover))}.ui-chip._error._selected{background-color:var(--ui-chip-surface-selected, var(--informative-errorhigh-surface-default));color:var(--ui-chip-color-selected, var(--informative-errorhigh-content-default));border-color:var(--ui-chip-stroke-selected, var(--informative-errorhigh-stroke-default))}.ui-chip._error._selected._selectable:hover:not(:disabled){background-color:var(--ui-chip-surface-selected-hover, var(--informative-errorhigh-surface-hover));color:var(--ui-chip-color-selected-hover, var(--informative-errorhigh-content-hover))}.ui-chip._error._selectable:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-chip-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-chip-focus-ring-color, var(--informative-errorhigh-surface-default))}\n"]
|
|
290
|
+
}]
|
|
291
|
+
}],
|
|
292
|
+
ctorParameters: () => [],
|
|
293
|
+
propDecorators: {
|
|
294
|
+
label: [{
|
|
295
|
+
type: i0.Input,
|
|
296
|
+
args: [{
|
|
297
|
+
isSignal: true,
|
|
298
|
+
alias: "label",
|
|
299
|
+
required: false
|
|
300
|
+
}]
|
|
301
|
+
}],
|
|
302
|
+
level: [{
|
|
303
|
+
type: i0.Input,
|
|
304
|
+
args: [{
|
|
305
|
+
isSignal: true,
|
|
306
|
+
alias: "level",
|
|
307
|
+
required: false
|
|
308
|
+
}]
|
|
309
|
+
}],
|
|
310
|
+
subLevel: [{
|
|
311
|
+
type: i0.Input,
|
|
312
|
+
args: [{
|
|
313
|
+
isSignal: true,
|
|
314
|
+
alias: "subLevel",
|
|
315
|
+
required: false
|
|
316
|
+
}]
|
|
317
|
+
}],
|
|
318
|
+
size: [{
|
|
319
|
+
type: i0.Input,
|
|
320
|
+
args: [{
|
|
321
|
+
isSignal: true,
|
|
322
|
+
alias: "size",
|
|
323
|
+
required: false
|
|
324
|
+
}]
|
|
325
|
+
}],
|
|
326
|
+
icon: [{
|
|
327
|
+
type: i0.Input,
|
|
328
|
+
args: [{
|
|
329
|
+
isSignal: true,
|
|
330
|
+
alias: "icon",
|
|
331
|
+
required: false
|
|
332
|
+
}]
|
|
333
|
+
}],
|
|
334
|
+
image: [{
|
|
335
|
+
type: i0.Input,
|
|
336
|
+
args: [{
|
|
337
|
+
isSignal: true,
|
|
338
|
+
alias: "image",
|
|
339
|
+
required: false
|
|
340
|
+
}]
|
|
341
|
+
}],
|
|
342
|
+
alt: [{
|
|
343
|
+
type: i0.Input,
|
|
344
|
+
args: [{
|
|
345
|
+
isSignal: true,
|
|
346
|
+
alias: "alt",
|
|
347
|
+
required: false
|
|
348
|
+
}]
|
|
349
|
+
}],
|
|
350
|
+
rounded: [{
|
|
351
|
+
type: i0.Input,
|
|
352
|
+
args: [{
|
|
353
|
+
isSignal: true,
|
|
354
|
+
alias: "rounded",
|
|
355
|
+
required: false
|
|
356
|
+
}]
|
|
357
|
+
}],
|
|
358
|
+
removable: [{
|
|
359
|
+
type: i0.Input,
|
|
360
|
+
args: [{
|
|
361
|
+
isSignal: true,
|
|
362
|
+
alias: "removable",
|
|
363
|
+
required: false
|
|
364
|
+
}]
|
|
365
|
+
}],
|
|
366
|
+
removeIcon: [{
|
|
367
|
+
type: i0.Input,
|
|
368
|
+
args: [{
|
|
369
|
+
isSignal: true,
|
|
370
|
+
alias: "removeIcon",
|
|
371
|
+
required: false
|
|
372
|
+
}]
|
|
373
|
+
}],
|
|
374
|
+
disabled: [{
|
|
375
|
+
type: i0.Input,
|
|
376
|
+
args: [{
|
|
377
|
+
isSignal: true,
|
|
378
|
+
alias: "disabled",
|
|
379
|
+
required: false
|
|
380
|
+
}]
|
|
381
|
+
}],
|
|
382
|
+
selectable: [{
|
|
383
|
+
type: i0.Input,
|
|
384
|
+
args: [{
|
|
385
|
+
isSignal: true,
|
|
386
|
+
alias: "selectable",
|
|
387
|
+
required: false
|
|
388
|
+
}]
|
|
389
|
+
}],
|
|
390
|
+
selected: [{
|
|
391
|
+
type: i0.Input,
|
|
392
|
+
args: [{
|
|
393
|
+
isSignal: true,
|
|
394
|
+
alias: "selected",
|
|
395
|
+
required: false
|
|
396
|
+
}]
|
|
397
|
+
}, {
|
|
398
|
+
type: i0.Output,
|
|
399
|
+
args: ["selectedChange"]
|
|
400
|
+
}],
|
|
401
|
+
selectedIcon: [{
|
|
402
|
+
type: i0.Input,
|
|
403
|
+
args: [{
|
|
404
|
+
isSignal: true,
|
|
405
|
+
alias: "selectedIcon",
|
|
406
|
+
required: false
|
|
407
|
+
}]
|
|
408
|
+
}],
|
|
409
|
+
ariaLabel: [{
|
|
410
|
+
type: i0.Input,
|
|
411
|
+
args: [{
|
|
412
|
+
isSignal: true,
|
|
413
|
+
alias: "ariaLabel",
|
|
414
|
+
required: false
|
|
415
|
+
}]
|
|
416
|
+
}],
|
|
417
|
+
ariaLabelledBy: [{
|
|
418
|
+
type: i0.Input,
|
|
419
|
+
args: [{
|
|
420
|
+
isSignal: true,
|
|
421
|
+
alias: "ariaLabelledBy",
|
|
422
|
+
required: false
|
|
423
|
+
}]
|
|
424
|
+
}],
|
|
425
|
+
removeAriaLabel: [{
|
|
426
|
+
type: i0.Input,
|
|
427
|
+
args: [{
|
|
428
|
+
isSignal: true,
|
|
429
|
+
alias: "removeAriaLabel",
|
|
430
|
+
required: false
|
|
431
|
+
}]
|
|
432
|
+
}],
|
|
433
|
+
removeTabindex: [{
|
|
434
|
+
type: i0.Input,
|
|
435
|
+
args: [{
|
|
436
|
+
isSignal: true,
|
|
437
|
+
alias: "removeTabindex",
|
|
438
|
+
required: false
|
|
439
|
+
}]
|
|
440
|
+
}],
|
|
441
|
+
remove: [{
|
|
442
|
+
type: i0.Output,
|
|
443
|
+
args: ["remove"]
|
|
444
|
+
}],
|
|
445
|
+
chipClick: [{
|
|
446
|
+
type: i0.Output,
|
|
447
|
+
args: ["chipClick"]
|
|
448
|
+
}],
|
|
449
|
+
imageError: [{
|
|
450
|
+
type: i0.Output,
|
|
451
|
+
args: ["imageError"]
|
|
452
|
+
}]
|
|
453
|
+
}
|
|
454
|
+
});
|
|
204
455
|
export { UiChip };
|
|
205
|
-
|
|
456
|
+
|
|
457
|
+
//# sourceMappingURL=4sh-ui-kit-informative-ui-chip.mjs.map
|