@4sh/ui-kit 0.16.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (219) hide show
  1. package/README.fr.md +10 -10
  2. package/README.md +10 -10
  3. package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs +542 -150
  4. package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs.map +1 -1
  5. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +622 -248
  6. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs.map +1 -1
  7. package/fesm2022/4sh-ui-kit-actions-ui-link.mjs +385 -152
  8. package/fesm2022/4sh-ui-kit-actions-ui-link.mjs.map +1 -1
  9. package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs +748 -433
  10. package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs.map +1 -1
  11. package/fesm2022/4sh-ui-kit-base-ui-icon.mjs +227 -135
  12. package/fesm2022/4sh-ui-kit-base-ui-icon.mjs.map +1 -1
  13. package/fesm2022/4sh-ui-kit-base-ui-image.mjs +1200 -633
  14. package/fesm2022/4sh-ui-kit-base-ui-image.mjs.map +1 -1
  15. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs +1675 -1000
  16. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -1
  17. package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs +243 -117
  18. package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs.map +1 -1
  19. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs +2294 -2048
  20. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs.map +1 -1
  21. package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs +1058 -1113
  22. package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs.map +1 -1
  23. package/fesm2022/4sh-ui-kit-forms-ui-field-sign.mjs +1108 -0
  24. package/fesm2022/4sh-ui-kit-forms-ui-field-sign.mjs.map +1 -0
  25. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs +397 -141
  26. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -1
  27. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs +1529 -583
  28. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
  29. package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs +383 -224
  30. package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs.map +1 -1
  31. package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs +345 -177
  32. package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs.map +1 -1
  33. package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs +280 -138
  34. package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs.map +1 -1
  35. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +507 -257
  36. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -1
  37. package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs +401 -312
  38. package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs.map +1 -1
  39. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs +1277 -697
  40. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs.map +1 -1
  41. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +467 -199
  42. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs.map +1 -1
  43. package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs +394 -270
  44. package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs.map +1 -1
  45. package/fesm2022/4sh-ui-kit-forms-ui-label.mjs +140 -60
  46. package/fesm2022/4sh-ui-kit-forms-ui-label.mjs.map +1 -1
  47. package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs +386 -167
  48. package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs.map +1 -1
  49. package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs +150 -87
  50. package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs.map +1 -1
  51. package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs +345 -180
  52. package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs.map +1 -1
  53. package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs +582 -392
  54. package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs.map +1 -1
  55. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +1552 -888
  56. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs.map +1 -1
  57. package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs +485 -338
  58. package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs.map +1 -1
  59. package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs +503 -311
  60. package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs.map +1 -1
  61. package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs +271 -137
  62. package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs.map +1 -1
  63. package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs +457 -214
  64. package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs.map +1 -1
  65. package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs +711 -371
  66. package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs.map +1 -1
  67. package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs +235 -121
  68. package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs.map +1 -1
  69. package/fesm2022/4sh-ui-kit-forms.mjs +721 -638
  70. package/fesm2022/4sh-ui-kit-forms.mjs.map +1 -1
  71. package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs +546 -242
  72. package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs.map +1 -1
  73. package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs +335 -157
  74. package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs.map +1 -1
  75. package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs +53 -33
  76. package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs.map +1 -1
  77. package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs +218 -121
  78. package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs.map +1 -1
  79. package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs +192 -100
  80. package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs.map +1 -1
  81. package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs +456 -204
  82. package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs.map +1 -1
  83. package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs +314 -147
  84. package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs.map +1 -1
  85. package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs +179 -82
  86. package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs.map +1 -1
  87. package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs +268 -123
  88. package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs.map +1 -1
  89. package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs +391 -146
  90. package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs.map +1 -1
  91. package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs +158 -76
  92. package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs.map +1 -1
  93. package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs +159 -80
  94. package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs.map +1 -1
  95. package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs +295 -131
  96. package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs.map +1 -1
  97. package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs +211 -83
  98. package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs.map +1 -1
  99. package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs +784 -414
  100. package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs.map +1 -1
  101. package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs +822 -476
  102. package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs.map +1 -1
  103. package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs +1014 -599
  104. package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs.map +1 -1
  105. package/fesm2022/4sh-ui-kit-layout-ui-card.mjs +403 -189
  106. package/fesm2022/4sh-ui-kit-layout-ui-card.mjs.map +1 -1
  107. package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs +707 -272
  108. package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs.map +1 -1
  109. package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs +1146 -568
  110. package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs.map +1 -1
  111. package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs +519 -308
  112. package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs.map +1 -1
  113. package/fesm2022/4sh-ui-kit-motion.mjs +252 -150
  114. package/fesm2022/4sh-ui-kit-motion.mjs.map +1 -1
  115. package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs +793 -341
  116. package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs.map +1 -1
  117. package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs +351 -194
  118. package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs.map +1 -1
  119. package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs +511 -220
  120. package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs.map +1 -1
  121. package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs +910 -548
  122. package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -1
  123. package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs +1128 -555
  124. package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs.map +1 -1
  125. package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs +915 -470
  126. package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs.map +1 -1
  127. package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs +931 -474
  128. package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs.map +1 -1
  129. package/fesm2022/4sh-ui-kit-overlay.mjs +26 -109
  130. package/fesm2022/4sh-ui-kit-overlay.mjs.map +1 -1
  131. package/fesm2022/4sh-ui-kit-ripple.mjs +329 -290
  132. package/fesm2022/4sh-ui-kit-ripple.mjs.map +1 -1
  133. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs +709 -248
  134. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs.map +1 -1
  135. package/fesm2022/4sh-ui-kit-table-ui-table.mjs +2633 -1370
  136. package/fesm2022/4sh-ui-kit-table-ui-table.mjs.map +1 -1
  137. package/fesm2022/4sh-ui-kit-theming.mjs +112 -113
  138. package/fesm2022/4sh-ui-kit-theming.mjs.map +1 -1
  139. package/fesm2022/4sh-ui-kit-types.mjs +0 -12
  140. package/fesm2022/4sh-ui-kit.mjs +3 -15
  141. package/fesm2022/4sh-ui-kit.mjs.map +1 -1
  142. package/mcp/data/component-api.json +299 -2
  143. package/mcp/data/text-search-docs.json +149 -9
  144. package/mcp/data/ui-config.json +378 -1
  145. package/mcp/index.js +8190 -2876
  146. package/mcp/package.json +1 -1
  147. package/package.json +5 -1
  148. package/styles/component-vars.scss +22 -1
  149. package/types/4sh-ui-kit-actions-ui-button-split.d.ts +198 -87
  150. package/types/4sh-ui-kit-actions-ui-button.d.ts +240 -116
  151. package/types/4sh-ui-kit-actions-ui-link.d.ts +136 -67
  152. package/types/4sh-ui-kit-actions-ui-speed-dial.d.ts +287 -180
  153. package/types/4sh-ui-kit-base-ui-icon.d.ts +92 -58
  154. package/types/4sh-ui-kit-base-ui-image.d.ts +406 -205
  155. package/types/4sh-ui-kit-forms-ui-autocomplete.d.ts +573 -376
  156. package/types/4sh-ui-kit-forms-ui-checkbox.d.ts +77 -42
  157. package/types/4sh-ui-kit-forms-ui-datepicker.d.ts +953 -700
  158. package/types/4sh-ui-kit-forms-ui-editor.d.ts +374 -340
  159. package/types/4sh-ui-kit-forms-ui-field-sign.d.ts +325 -0
  160. package/types/4sh-ui-kit-forms-ui-field.d.ts +150 -64
  161. package/types/4sh-ui-kit-forms-ui-file-upload.d.ts +583 -241
  162. package/types/4sh-ui-kit-forms-ui-input-date.d.ts +152 -103
  163. package/types/4sh-ui-kit-forms-ui-input-group.d.ts +109 -63
  164. package/types/4sh-ui-kit-forms-ui-input-mask.d.ts +93 -59
  165. package/types/4sh-ui-kit-forms-ui-input-number.d.ts +171 -96
  166. package/types/4sh-ui-kit-forms-ui-input-otp.d.ts +137 -104
  167. package/types/4sh-ui-kit-forms-ui-input-tags.d.ts +469 -309
  168. package/types/4sh-ui-kit-forms-ui-input.d.ts +198 -118
  169. package/types/4sh-ui-kit-forms-ui-knob.d.ts +132 -80
  170. package/types/4sh-ui-kit-forms-ui-label.d.ts +47 -22
  171. package/types/4sh-ui-kit-forms-ui-nudger.d.ts +134 -67
  172. package/types/4sh-ui-kit-forms-ui-radio.d.ts +48 -33
  173. package/types/4sh-ui-kit-forms-ui-rating.d.ts +120 -86
  174. package/types/4sh-ui-kit-forms-ui-segment-control.d.ts +221 -147
  175. package/types/4sh-ui-kit-forms-ui-select.d.ts +561 -357
  176. package/types/4sh-ui-kit-forms-ui-slider.d.ts +156 -105
  177. package/types/4sh-ui-kit-forms-ui-swatch-picker.d.ts +133 -97
  178. package/types/4sh-ui-kit-forms-ui-textarea.d.ts +90 -56
  179. package/types/4sh-ui-kit-forms-ui-toggle-block.d.ts +158 -94
  180. package/types/4sh-ui-kit-forms-ui-toggle-button.d.ts +314 -178
  181. package/types/4sh-ui-kit-forms-ui-toggle.d.ts +88 -54
  182. package/types/4sh-ui-kit-forms.d.ts +275 -194
  183. package/types/4sh-ui-kit-informative-ui-accordion.d.ts +162 -92
  184. package/types/4sh-ui-kit-informative-ui-alert.d.ts +128 -62
  185. package/types/4sh-ui-kit-informative-ui-avatar-group.d.ts +8 -8
  186. package/types/4sh-ui-kit-informative-ui-avatar.d.ts +81 -44
  187. package/types/4sh-ui-kit-informative-ui-badge.d.ts +71 -41
  188. package/types/4sh-ui-kit-informative-ui-chip.d.ts +194 -99
  189. package/types/4sh-ui-kit-informative-ui-empty-state.d.ts +105 -65
  190. package/types/4sh-ui-kit-informative-ui-helper.d.ts +64 -34
  191. package/types/4sh-ui-kit-informative-ui-progress-bar.d.ts +120 -65
  192. package/types/4sh-ui-kit-informative-ui-read-only.d.ts +147 -67
  193. package/types/4sh-ui-kit-informative-ui-separator.d.ts +65 -35
  194. package/types/4sh-ui-kit-informative-ui-skeleton.d.ts +62 -32
  195. package/types/4sh-ui-kit-informative-ui-spinner.d.ts +111 -50
  196. package/types/4sh-ui-kit-informative-ui-tag.d.ts +77 -37
  197. package/types/4sh-ui-kit-informative-ui-toast.d.ts +300 -180
  198. package/types/4sh-ui-kit-informative-ui-tooltip.d.ts +269 -141
  199. package/types/4sh-ui-kit-layout-ui-bottom-sheet.d.ts +360 -221
  200. package/types/4sh-ui-kit-layout-ui-card.d.ts +119 -79
  201. package/types/4sh-ui-kit-layout-ui-drawer.d.ts +244 -120
  202. package/types/4sh-ui-kit-layout-ui-modal.d.ts +409 -222
  203. package/types/4sh-ui-kit-layout-ui-popover.d.ts +149 -91
  204. package/types/4sh-ui-kit-motion.d.ts +117 -67
  205. package/types/4sh-ui-kit-navigation-ui-bottom-tab-bar.d.ts +279 -145
  206. package/types/4sh-ui-kit-navigation-ui-breadcrumb.d.ts +134 -96
  207. package/types/4sh-ui-kit-navigation-ui-context-menu.d.ts +148 -89
  208. package/types/4sh-ui-kit-navigation-ui-menu.d.ts +282 -201
  209. package/types/4sh-ui-kit-navigation-ui-sidebar.d.ts +425 -261
  210. package/types/4sh-ui-kit-navigation-ui-stepper.d.ts +279 -183
  211. package/types/4sh-ui-kit-navigation-ui-tabs.d.ts +275 -173
  212. package/types/4sh-ui-kit-overlay.d.ts +6 -6
  213. package/types/4sh-ui-kit-ripple.d.ts +99 -74
  214. package/types/4sh-ui-kit-table-ui-paginator.d.ts +237 -133
  215. package/types/4sh-ui-kit-table-ui-table.d.ts +769 -470
  216. package/types/4sh-ui-kit-theming.d.ts +27 -29
  217. package/types/4sh-ui-kit-types.d.ts +6 -5
  218. package/types/4sh-ui-kit.d.ts +4 -3
  219. package/fesm2022/4sh-ui-kit-types.mjs.map +0 -1
@@ -1,205 +1,457 @@
1
- import * as i0 from '@angular/core';
2
- import { input, booleanAttribute, model, output, signal, computed, effect, isDevMode, Component } from '@angular/core';
3
- import { NgTemplateOutlet } from '@angular/common';
4
- import { UiIcon } from '@4sh/ui-kit/base/ui-icon';
5
-
6
- /**
7
- * ui-chip — compact, interactive entity token.
8
- *
9
- * A close relative of `ui-tag`, but interactive: it can carry a leading icon or
10
- * image (avatar-like), an optional remove action, and arbitrary projected content.
11
- * Typical uses: selected values in a multi-select, filter/entity chips, keyword lists.
12
- *
13
- * Categorised by `level` × `subLevel` (informative color families) and fully
14
- * token-driven. Interactive states (hover/focus on the remove action) are handled in
15
- * CSS via the same `informative.*` tokens — never through Angular props.
16
- *
17
- * Accessible: `label` is exposed as the default `aria-label` (overridable via
18
- * `ariaLabel` / `ariaLabelledBy`); the remove action is a native `<button>`, focusable
19
- * with Tab and removable with Enter/Space (native) plus Backspace/Delete.
20
- */
21
- class UiChip {
22
- constructor() {
23
- /** Text content of the chip. */
24
- this.label = input(/* @ts-ignore */
25
- ...(ngDevMode ? [undefined, { debugName: "label" }] : /* istanbul ignore next */ []));
26
- /** Color family. */
27
- this.level = input('default', /* @ts-ignore */
28
- ...(ngDevMode ? [{ debugName: "level" }] : /* istanbul ignore next */ []));
29
- /** Intensity: high (solid) or low (subtle). Chips default to the discreet `low`. */
30
- this.subLevel = input('low', /* @ts-ignore */
31
- ...(ngDevMode ? [{ debugName: "subLevel" }] : /* istanbul ignore next */ []));
32
- /** Size. */
33
- this.size = input('default', /* @ts-ignore */
34
- ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
35
- /** FontAwesome name of the leading icon (ignored when `image` is set). */
36
- this.icon = input(/* @ts-ignore */
37
- ...(ngDevMode ? [undefined, { debugName: "icon" }] : /* istanbul ignore next */ []));
38
- /** Leading image source (avatar-like). Takes priority over `icon`. */
39
- this.image = input(/* @ts-ignore */
40
- ...(ngDevMode ? [undefined, { debugName: "image" }] : /* istanbul ignore next */ []));
41
- /** Alternative text for the image (leave empty for a decorative image next to a label). */
42
- this.alt = input(/* @ts-ignore */
43
- ...(ngDevMode ? [undefined, { debugName: "alt" }] : /* istanbul ignore next */ []));
44
- /** Pill shape when true (default); rounded-rectangle when false. */
45
- this.rounded = input(true, { ...(ngDevMode ? { debugName: "rounded" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
46
- /** Displays a remove action at the end of the chip. */
47
- this.removable = input(false, { ...(ngDevMode ? { debugName: "removable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
48
- /** FontAwesome name of the remove icon. */
49
- this.removeIcon = input('xmark', /* @ts-ignore */
50
- ...(ngDevMode ? [{ debugName: "removeIcon" }] : /* istanbul ignore next */ []));
51
- /** Disables the chip (the remove action / selection becomes non-interactive). */
52
- this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
53
- /**
54
- * Turns the whole chip into a selectable toggle (choice/filter chip). The root
55
- * becomes a native `<button aria-pressed>`; clicking toggles `selected`.
56
- * Mutually exclusive with `removable` (nesting interactive elements is invalid).
57
- */
58
- this.selectable = input(false, { ...(ngDevMode ? { debugName: "selectable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
59
- /** Two-way selection state (only meaningful when `selectable`). */
60
- this.selected = model(false, /* @ts-ignore */
61
- ...(ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []));
62
- /** FontAwesome name shown in the leading slot while selected (selectable mode). */
63
- this.selectedIcon = input('check', /* @ts-ignore */
64
- ...(ngDevMode ? [{ debugName: "selectedIcon" }] : /* istanbul ignore next */ []));
65
- /** Explicit accessible name (overrides the `label` default). */
66
- this.ariaLabel = input(/* @ts-ignore */
67
- ...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
68
- /** Id of the element labelling the chip (overrides `ariaLabel`/`label`). */
69
- this.ariaLabelledBy = input(/* @ts-ignore */
70
- ...(ngDevMode ? [undefined, { debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []));
71
- /** Accessible name of the remove action. */
72
- this.removeAriaLabel = input('Supprimer', /* @ts-ignore */
73
- ...(ngDevMode ? [{ debugName: "removeAriaLabel" }] : /* istanbul ignore next */ []));
74
- /**
75
- * `tabindex` of the remove action. Leave unset for the natural tab order;
76
- * set `-1` when the chip lives inside a roving-focus container (e.g.
77
- * `ui-input-tags`) so the button is not a separate tab stop.
78
- */
79
- this.removeTabindex = input(/* @ts-ignore */
80
- ...(ngDevMode ? [undefined, { debugName: "removeTabindex" }] : /* istanbul ignore next */ []));
81
- /** Emitted when the chip is removed (click or keyboard on the remove action). */
82
- this.remove = output();
83
- /** Emitted when a selectable chip is toggled (click or keyboard on the chip). */
84
- this.chipClick = output();
85
- /** Emitted when the image fails to load (the chip then falls back to icon/label). */
86
- this.imageError = output();
87
- /** @ignore Set once the current image source failed to load. */
88
- this.imageFailed = signal(false, /* @ts-ignore */
89
- ...(ngDevMode ? [{ debugName: "imageFailed" }] : /* istanbul ignore next */ []));
90
- /** @ignore There is a textual label. */
91
- this.hasLabel = computed(() => !!this.label()?.length, /* @ts-ignore */
92
- ...(ngDevMode ? [{ debugName: "hasLabel" }] : /* istanbul ignore next */ []));
93
- /** @ignore The leading image is shown (source set and not failed). */
94
- this.showImage = computed(() => !!this.image() && !this.imageFailed(), /* @ts-ignore */
95
- ...(ngDevMode ? [{ debugName: "showImage" }] : /* istanbul ignore next */ []));
96
- /** @ignore Selectable + selected: the leading slot shows the selected icon. */
97
- this.showSelectedIcon = computed(() => this.selectable() && this.selected() && !!this.selectedIcon(), /* @ts-ignore */
98
- ...(ngDevMode ? [{ debugName: "showSelectedIcon" }] : /* istanbul ignore next */ []));
99
- /** @ignore The leading image is shown (not overridden by the selected icon). */
100
- this.showLeadingImage = computed(() => !this.showSelectedIcon() && this.showImage(), /* @ts-ignore */
101
- ...(ngDevMode ? [{ debugName: "showLeadingImage" }] : /* istanbul ignore next */ []));
102
- /** @ignore The leading font icon is shown (no image / selected icon taking its place). */
103
- this.showIcon = computed(() => !this.showImage() && !!this.icon(), /* @ts-ignore */
104
- ...(ngDevMode ? [{ debugName: "showIcon" }] : /* istanbul ignore next */ []));
105
- /** @ignore The leading font icon is shown (not overridden by the selected icon). */
106
- this.showLeadingIcon = computed(() => !this.showSelectedIcon() && this.showIcon(), /* @ts-ignore */
107
- ...(ngDevMode ? [{ debugName: "showLeadingIcon" }] : /* istanbul ignore next */ []));
108
- /** @ignore The remove action is rendered (never inside a selectable button). */
109
- this.showRemove = computed(() => this.removable() && !this.selectable(), /* @ts-ignore */
110
- ...(ngDevMode ? [{ debugName: "showRemove" }] : /* istanbul ignore next */ []));
111
- /** @ignore A visual (icon/image) with no textual label. */
112
- this.isVisualOnly = computed(() => (this.showImage() || this.showIcon()) && !this.hasLabel(), /* @ts-ignore */
113
- ...(ngDevMode ? [{ debugName: "isVisualOnly" }] : /* istanbul ignore next */ []));
114
- /** @ignore Resolved accessible name from the explicit label / ariaLabel. */
115
- this.accessibleName = computed(() => this.ariaLabel() ?? this.label() ?? null, /* @ts-ignore */
116
- ...(ngDevMode ? [{ debugName: "accessibleName" }] : /* istanbul ignore next */ []));
117
- /** @ignore Root `aria-label`: explicit name, suppressed when `ariaLabelledBy` wins. */
118
- this.rootAriaLabel = computed(() => this.ariaLabelledBy() ? null : this.accessibleName(), /* @ts-ignore */
119
- ...(ngDevMode ? [{ debugName: "rootAriaLabel" }] : /* istanbul ignore next */ []));
120
- /** @ignore Leading icon size derived from the chip size. */
121
- this.iconSize = computed(() => (this.size() === 'small' ? 'sm' : 'md'), /* @ts-ignore */
122
- ...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
123
- /** @ignore Remove icon is compact regardless of chip size. */
124
- this.removeIconSize = 'sm';
125
- /** @ignore */
126
- this.classes = computed(() => {
127
- const c = ['ui-chip', `_${this.level()}`, `_${this.subLevel()}`];
128
- if (this.size() !== 'default')
129
- c.push(`_${this.size()}`);
130
- if (!this.rounded())
131
- c.push('_square');
132
- if (this.showRemove())
133
- c.push('_removable');
134
- if (this.disabled())
135
- c.push('_disabled');
136
- if (this.selectable())
137
- c.push('_selectable');
138
- if (this.selectable() && this.selected())
139
- c.push('_selected');
140
- return c.join(' ');
141
- }, /* @ts-ignore */
142
- ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
143
- // Reset the load-error flag whenever the source changes.
144
- effect(() => {
145
- this.image();
146
- this.imageFailed.set(false);
147
- });
148
- // A11y safeguard: a chip with only a visual (icon/image) needs an accessible name.
149
- if (isDevMode()) {
150
- effect(() => {
151
- if (this.isVisualOnly() && !this.accessibleName()) {
152
- console.warn('[ui-chip] Chip has no text: provide `label`, `ariaLabel` or `ariaLabelledBy`.');
153
- }
154
- });
155
- // `selectable` and `removable` can't coexist (nested interactive elements).
156
- effect(() => {
157
- if (this.selectable() && this.removable()) {
158
- console.warn('[ui-chip] `selectable` and `removable` are mutually exclusive: the remove action is ignored.');
159
- }
160
- });
161
- }
162
- }
163
- /** @ignore */
164
- onImageError(event) {
165
- this.imageFailed.set(true);
166
- this.imageError.emit(event);
167
- }
168
- /** @ignore */
169
- onRemove(event) {
170
- if (this.disabled())
171
- return;
172
- this.remove.emit(event);
173
- }
174
- /** @ignore Backspace/Delete on the remove button also removes (Enter/Space are native). */
175
- onRemoveKeydown(event) {
176
- if (event.key === 'Backspace' || event.key === 'Delete') {
177
- event.preventDefault();
178
- this.onRemove(event);
179
- }
180
- }
181
- /** @ignore Toggle the selection (selectable mode). Enter/Space fire this via native click. */
182
- onToggle(event) {
183
- if (this.disabled())
184
- return;
185
- this.selected.set(!this.selected());
186
- this.chipClick.emit(event);
187
- }
188
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiChip, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
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
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiChip, decorators: [{
192
- type: Component,
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
- }], ctorParameters: () => [], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], level: [{ type: i0.Input, args: [{ isSignal: true, alias: "level", required: false }] }], subLevel: [{ type: i0.Input, args: [{ isSignal: true, alias: "subLevel", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], image: [{ type: i0.Input, args: [{ isSignal: true, alias: "image", required: false }] }], alt: [{ type: i0.Input, args: [{ isSignal: true, alias: "alt", required: false }] }], rounded: [{ type: i0.Input, args: [{ isSignal: true, alias: "rounded", required: false }] }], removable: [{ type: i0.Input, args: [{ isSignal: true, alias: "removable", required: false }] }], removeIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "removeIcon", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], selectable: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectable", required: false }] }], selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: false }] }, { type: i0.Output, args: ["selectedChange"] }], selectedIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedIcon", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], removeAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "removeAriaLabel", required: false }] }], removeTabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "removeTabindex", required: false }] }], remove: [{ type: i0.Output, args: ["remove"] }], chipClick: [{ type: i0.Output, args: ["chipClick"] }], imageError: [{ type: i0.Output, args: ["imageError"] }] } });
195
-
196
- /*
197
- * Public API Surface of ui-kit/ui-chip
198
- */
199
-
200
- /**
201
- * Generated bundle index. Do not edit.
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
- //# sourceMappingURL=4sh-ui-kit-informative-ui-chip.mjs.map
456
+
457
+ //# sourceMappingURL=4sh-ui-kit-informative-ui-chip.mjs.map