@4sh/ui-kit 0.6.1 → 0.8.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 (154) hide show
  1. package/README.fr.md +47 -22
  2. package/README.md +46 -23
  3. package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs +1 -1
  4. package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs.map +1 -1
  5. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +5 -3
  6. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs.map +1 -1
  7. package/fesm2022/4sh-ui-kit-actions-ui-link.mjs.map +1 -1
  8. package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs +439 -0
  9. package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs.map +1 -0
  10. package/fesm2022/4sh-ui-kit-base-ui-icon.mjs.map +1 -1
  11. package/fesm2022/4sh-ui-kit-base-ui-image.mjs +111 -10
  12. package/fesm2022/4sh-ui-kit-base-ui-image.mjs.map +1 -1
  13. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs +14 -6
  14. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -1
  15. package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs.map +1 -1
  16. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs +655 -92
  17. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs.map +1 -1
  18. package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs +1107 -0
  19. package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs.map +1 -0
  20. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs +43 -3
  21. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -1
  22. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs +5 -3
  23. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
  24. package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs.map +1 -1
  25. package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs +8 -2
  26. package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs.map +1 -1
  27. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +15 -2
  28. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -1
  29. package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs.map +1 -1
  30. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs +8 -4
  31. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs.map +1 -1
  32. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +40 -4
  33. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs.map +1 -1
  34. package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs +282 -0
  35. package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs.map +1 -0
  36. package/fesm2022/4sh-ui-kit-forms-ui-label.mjs +2 -2
  37. package/fesm2022/4sh-ui-kit-forms-ui-label.mjs.map +1 -1
  38. package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs +1 -1
  39. package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs.map +1 -1
  40. package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs.map +1 -1
  41. package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs.map +1 -1
  42. package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs +6 -4
  43. package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs.map +1 -1
  44. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +8 -3
  45. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs.map +1 -1
  46. package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs.map +1 -1
  47. package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs +317 -0
  48. package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs.map +1 -0
  49. package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs +8 -2
  50. package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs.map +1 -1
  51. package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs +374 -0
  52. package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs.map +1 -0
  53. package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs.map +1 -1
  54. package/fesm2022/4sh-ui-kit-forms.mjs +49 -14
  55. package/fesm2022/4sh-ui-kit-forms.mjs.map +1 -1
  56. package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs.map +1 -1
  57. package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs.map +1 -1
  58. package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs.map +1 -1
  59. package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs.map +1 -1
  60. package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs +2 -2
  61. package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs.map +1 -1
  62. package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs +2 -2
  63. package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs.map +1 -1
  64. package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs.map +1 -1
  65. package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs.map +1 -1
  66. package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs.map +1 -1
  67. package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs.map +1 -1
  68. package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs.map +1 -1
  69. package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs.map +1 -1
  70. package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs.map +1 -1
  71. package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs +2 -2
  72. package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs.map +1 -1
  73. package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs.map +1 -1
  74. package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs +2 -2
  75. package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs.map +1 -1
  76. package/fesm2022/4sh-ui-kit-layout-ui-card.mjs.map +1 -1
  77. package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs.map +1 -1
  78. package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs +45 -4
  79. package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs.map +1 -1
  80. package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs.map +1 -1
  81. package/fesm2022/4sh-ui-kit-motion.mjs.map +1 -1
  82. package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs +370 -0
  83. package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs.map +1 -0
  84. package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs +2 -2
  85. package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs.map +1 -1
  86. package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs +5 -3
  87. package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs.map +1 -1
  88. package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs +5 -3
  89. package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -1
  90. package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs +5 -3
  91. package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs.map +1 -1
  92. package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs +22 -10
  93. package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs.map +1 -1
  94. package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs +19 -4
  95. package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs.map +1 -1
  96. package/fesm2022/4sh-ui-kit-overlay.mjs.map +1 -1
  97. package/fesm2022/4sh-ui-kit-ripple.mjs +298 -0
  98. package/fesm2022/4sh-ui-kit-ripple.mjs.map +1 -0
  99. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs +5 -3
  100. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs.map +1 -1
  101. package/fesm2022/4sh-ui-kit-table-ui-table.mjs +2 -2
  102. package/fesm2022/4sh-ui-kit-table-ui-table.mjs.map +1 -1
  103. package/fesm2022/4sh-ui-kit-theming.mjs.map +1 -1
  104. package/fesm2022/4sh-ui-kit.mjs.map +1 -1
  105. package/mcp/data/text-search-docs.json +1083 -83
  106. package/mcp/data/ui-config.json +5592 -2586
  107. package/mcp/index.js +682 -410
  108. package/mcp/package.json +1 -1
  109. package/package.json +29 -1
  110. package/schematics/index.cjs +1 -1
  111. package/styles/base/_ripple.scss +53 -0
  112. package/styles/component-vars.scss +177 -2
  113. package/styles/generated/_tokens-breakpoint.scss +1 -1
  114. package/styles/generated/_tokens-metrics.scss +1 -1
  115. package/styles/generated/_tokens-primitives.scss +1 -1
  116. package/styles/generated/_tokens-responsive.scss +17 -17
  117. package/styles/generated/_tokens-semantics.scss +15 -15
  118. package/styles/generated/_tokens-styles.scss +1 -1
  119. package/styles/generated/_tokens-transitions.scss +1 -1
  120. package/styles/generated/_tokens-typography.scss +1 -1
  121. package/styles/generated/_tokens.scss +1 -1
  122. package/styles/index.scss +1 -0
  123. package/styles/settings/_ui-config.scss +9 -0
  124. package/styles/utils/_helpers.scss +15 -0
  125. package/styles/utils/_mixins.scss +17 -1
  126. package/styles.css +1 -1
  127. package/types/4sh-ui-kit-actions-ui-button.d.ts +3 -1
  128. package/types/4sh-ui-kit-actions-ui-speed-dial.d.ts +234 -0
  129. package/types/4sh-ui-kit-base-ui-image.d.ts +16 -3
  130. package/types/4sh-ui-kit-forms-ui-autocomplete.d.ts +7 -2
  131. package/types/4sh-ui-kit-forms-ui-datepicker.d.ts +242 -37
  132. package/types/4sh-ui-kit-forms-ui-editor.d.ts +481 -0
  133. package/types/4sh-ui-kit-forms-ui-field.d.ts +32 -2
  134. package/types/4sh-ui-kit-forms-ui-file-upload.d.ts +3 -1
  135. package/types/4sh-ui-kit-forms-ui-input-mask.d.ts +4 -0
  136. package/types/4sh-ui-kit-forms-ui-input-number.d.ts +9 -0
  137. package/types/4sh-ui-kit-forms-ui-input-tags.d.ts +4 -1
  138. package/types/4sh-ui-kit-forms-ui-input.d.ts +28 -2
  139. package/types/4sh-ui-kit-forms-ui-knob.d.ts +93 -0
  140. package/types/4sh-ui-kit-forms-ui-segment-control.d.ts +3 -1
  141. package/types/4sh-ui-kit-forms-ui-select.d.ts +5 -1
  142. package/types/4sh-ui-kit-forms-ui-swatch-picker.d.ts +126 -0
  143. package/types/4sh-ui-kit-forms-ui-textarea.d.ts +4 -0
  144. package/types/4sh-ui-kit-forms-ui-toggle-button.d.ts +222 -0
  145. package/types/4sh-ui-kit-forms.d.ts +38 -7
  146. package/types/4sh-ui-kit-layout-ui-modal.d.ts +7 -0
  147. package/types/4sh-ui-kit-navigation-ui-bottom-tab-bar.d.ts +201 -0
  148. package/types/4sh-ui-kit-navigation-ui-context-menu.d.ts +3 -1
  149. package/types/4sh-ui-kit-navigation-ui-menu.d.ts +3 -1
  150. package/types/4sh-ui-kit-navigation-ui-sidebar.d.ts +3 -1
  151. package/types/4sh-ui-kit-navigation-ui-stepper.d.ts +8 -3
  152. package/types/4sh-ui-kit-navigation-ui-tabs.d.ts +16 -3
  153. package/types/4sh-ui-kit-ripple.d.ts +156 -0
  154. package/types/4sh-ui-kit-table-ui-paginator.d.ts +3 -1
@@ -76,11 +76,11 @@ class UiBadge {
76
76
  }
77
77
  }
78
78
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiBadge, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
79
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.2", type: UiBadge, isStandalone: true, selector: "ui-badge", inputs: { value: { classPropertyName: "value", publicName: "value", 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 }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<span [class]=\"classes()\" [attr.aria-label]=\"ariaLabel() ?? null\">\n @if (icon(); as name) {\n <ui-icon class=\"ui-badge-icon\" [name]=\"name\" [size]=\"iconSize()\" />\n }\n @if (hasText()) {\n <span class=\"ui-badge-label\">{{ value() }}</span>\n }\n</span>\n", styles: [".ui-badge{display:inline-flex;align-items:center;justify-content:center;gap:var(--ui-badge-gap, var(--units-xs));box-sizing:border-box;border:var(--ui-badge-stroke-width, var(--stroke-sm)) solid transparent;border-radius:var(--ui-badge-radius, var(--radius-full));font-family:var(--fontfamily-base);font-weight:var(--weight-bold);line-height:1;white-space:nowrap;height:var(--ui-badge-height, 1.75rem);min-width:var(--ui-badge-height, 1.75rem);padding:0 var(--ui-badge-padding-x, var(--units-md));font-size:var(--ui-badge-font-size, var(--size-typography-text-default))}.ui-badge-icon{line-height:0}.ui-badge-label{display:inline-block}.ui-badge._small{height:var(--ui-badge-height-small, 1.375rem);min-width:var(--ui-badge-height-small, 1.375rem);padding:0 var(--ui-badge-padding-x-small, var(--units-md));font-size:var(--ui-badge-font-size-small, var(--size-typography-text-md))}.ui-badge._large{height:var(--ui-badge-height-large, 2rem);min-width:var(--ui-badge-height-large, 2rem);padding:0 var(--ui-badge-padding-x-large, var(--units-lg));font-size:var(--ui-badge-font-size-large, var(--size-typography-text-lg))}.ui-badge._single{padding:0}.ui-badge._dot{width:var(--ui-badge-dot-size, .625rem);height:var(--ui-badge-dot-size, .625rem);min-width:0;padding:0}.ui-badge._small._dot{width:var(--ui-badge-dot-size-small, .5rem);height:var(--ui-badge-dot-size-small, .5rem);min-width:0;padding:0}.ui-badge._large._dot{width:var(--ui-badge-dot-size-large, .75rem);height:var(--ui-badge-dot-size-large, .75rem);min-width:0;padding:0}.ui-badge._default._high{background-color:var(--informative-defaulthigh-surface-default);color:var(--informative-defaulthigh-content-default);border-color:var(--informative-defaulthigh-stroke-default)}.ui-badge._default._low{background-color:var(--informative-defaultlow-surface-default);color:var(--informative-defaultlow-content-default);border-color:var(--informative-defaultlow-stroke-default)}.ui-badge._highlight._high{background-color:var(--informative-highlighthigh-surface-default);color:var(--informative-highlighthigh-content-default);border-color:var(--informative-highlighthigh-stroke-default)}.ui-badge._highlight._low{background-color:var(--informative-highlightlow-surface-default);color:var(--informative-highlightlow-content-default);border-color:var(--informative-highlightlow-stroke-default)}.ui-badge._success._high{background-color:var(--informative-successhigh-surface-default);color:var(--informative-successhigh-content-default);border-color:var(--informative-successhigh-stroke-default)}.ui-badge._success._low{background-color:var(--informative-successlow-surface-default);color:var(--informative-successlow-content-default);border-color:var(--informative-successlow-stroke-default)}.ui-badge._warning._high{background-color:var(--informative-warninghigh-surface-default);color:var(--informative-warninghigh-content-default);border-color:var(--informative-warninghigh-stroke-default)}.ui-badge._warning._low{background-color:var(--informative-warninglow-surface-default);color:var(--informative-warninglow-content-default);border-color:var(--informative-warninglow-stroke-default)}.ui-badge._error._high{background-color:var(--informative-errorhigh-surface-default);color:var(--informative-errorhigh-content-default);border-color:var(--informative-errorhigh-stroke-default)}.ui-badge._error._low{background-color:var(--informative-errorlow-surface-default);color:var(--informative-errorlow-content-default);border-color:var(--informative-errorlow-stroke-default)}\n"], dependencies: [{ kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }] }); }
79
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.2", type: UiBadge, isStandalone: true, selector: "ui-badge", inputs: { value: { classPropertyName: "value", publicName: "value", 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 }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<span [class]=\"classes()\" [attr.role]=\"ariaLabel() ? 'img' : null\" [attr.aria-label]=\"ariaLabel() ?? null\">\n @if (icon(); as name) {\n <ui-icon class=\"ui-badge-icon\" [name]=\"name\" [size]=\"iconSize()\" />\n }\n @if (hasText()) {\n <span class=\"ui-badge-label\">{{ value() }}</span>\n }\n</span>\n", styles: [".ui-badge{display:inline-flex;align-items:center;justify-content:center;gap:var(--ui-badge-gap, var(--units-xs));box-sizing:border-box;border:var(--ui-badge-stroke-width, var(--stroke-sm)) solid transparent;border-radius:var(--ui-badge-radius, var(--radius-full));font-family:var(--fontfamily-base);font-weight:var(--weight-bold);line-height:1;white-space:nowrap;height:var(--ui-badge-height, 1.75rem);min-width:var(--ui-badge-height, 1.75rem);padding:0 var(--ui-badge-padding-x, var(--units-md));font-size:var(--ui-badge-font-size, var(--size-typography-text-default))}.ui-badge-icon{line-height:0}.ui-badge-label{display:inline-block}.ui-badge._small{height:var(--ui-badge-height-small, 1.375rem);min-width:var(--ui-badge-height-small, 1.375rem);padding:0 var(--ui-badge-padding-x-small, var(--units-md));font-size:var(--ui-badge-font-size-small, var(--size-typography-text-md))}.ui-badge._large{height:var(--ui-badge-height-large, 2rem);min-width:var(--ui-badge-height-large, 2rem);padding:0 var(--ui-badge-padding-x-large, var(--units-lg));font-size:var(--ui-badge-font-size-large, var(--size-typography-text-lg))}.ui-badge._single{padding:0}.ui-badge._dot{width:var(--ui-badge-dot-size, .625rem);height:var(--ui-badge-dot-size, .625rem);min-width:0;padding:0}.ui-badge._small._dot{width:var(--ui-badge-dot-size-small, .5rem);height:var(--ui-badge-dot-size-small, .5rem);min-width:0;padding:0}.ui-badge._large._dot{width:var(--ui-badge-dot-size-large, .75rem);height:var(--ui-badge-dot-size-large, .75rem);min-width:0;padding:0}.ui-badge._default._high{background-color:var(--informative-defaulthigh-surface-default);color:var(--informative-defaulthigh-content-default);border-color:var(--informative-defaulthigh-stroke-default)}.ui-badge._default._low{background-color:var(--informative-defaultlow-surface-default);color:var(--informative-defaultlow-content-default);border-color:var(--informative-defaultlow-stroke-default)}.ui-badge._highlight._high{background-color:var(--informative-highlighthigh-surface-default);color:var(--informative-highlighthigh-content-default);border-color:var(--informative-highlighthigh-stroke-default)}.ui-badge._highlight._low{background-color:var(--informative-highlightlow-surface-default);color:var(--informative-highlightlow-content-default);border-color:var(--informative-highlightlow-stroke-default)}.ui-badge._success._high{background-color:var(--informative-successhigh-surface-default);color:var(--informative-successhigh-content-default);border-color:var(--informative-successhigh-stroke-default)}.ui-badge._success._low{background-color:var(--informative-successlow-surface-default);color:var(--informative-successlow-content-default);border-color:var(--informative-successlow-stroke-default)}.ui-badge._warning._high{background-color:var(--informative-warninghigh-surface-default);color:var(--informative-warninghigh-content-default);border-color:var(--informative-warninghigh-stroke-default)}.ui-badge._warning._low{background-color:var(--informative-warninglow-surface-default);color:var(--informative-warninglow-content-default);border-color:var(--informative-warninglow-stroke-default)}.ui-badge._error._high{background-color:var(--informative-errorhigh-surface-default);color:var(--informative-errorhigh-content-default);border-color:var(--informative-errorhigh-stroke-default)}.ui-badge._error._low{background-color:var(--informative-errorlow-surface-default);color:var(--informative-errorlow-content-default);border-color:var(--informative-errorlow-stroke-default)}\n"], dependencies: [{ kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }] }); }
80
80
  }
81
81
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiBadge, decorators: [{
82
82
  type: Component,
83
- args: [{ selector: 'ui-badge', imports: [UiIcon], template: "<span [class]=\"classes()\" [attr.aria-label]=\"ariaLabel() ?? null\">\n @if (icon(); as name) {\n <ui-icon class=\"ui-badge-icon\" [name]=\"name\" [size]=\"iconSize()\" />\n }\n @if (hasText()) {\n <span class=\"ui-badge-label\">{{ value() }}</span>\n }\n</span>\n", styles: [".ui-badge{display:inline-flex;align-items:center;justify-content:center;gap:var(--ui-badge-gap, var(--units-xs));box-sizing:border-box;border:var(--ui-badge-stroke-width, var(--stroke-sm)) solid transparent;border-radius:var(--ui-badge-radius, var(--radius-full));font-family:var(--fontfamily-base);font-weight:var(--weight-bold);line-height:1;white-space:nowrap;height:var(--ui-badge-height, 1.75rem);min-width:var(--ui-badge-height, 1.75rem);padding:0 var(--ui-badge-padding-x, var(--units-md));font-size:var(--ui-badge-font-size, var(--size-typography-text-default))}.ui-badge-icon{line-height:0}.ui-badge-label{display:inline-block}.ui-badge._small{height:var(--ui-badge-height-small, 1.375rem);min-width:var(--ui-badge-height-small, 1.375rem);padding:0 var(--ui-badge-padding-x-small, var(--units-md));font-size:var(--ui-badge-font-size-small, var(--size-typography-text-md))}.ui-badge._large{height:var(--ui-badge-height-large, 2rem);min-width:var(--ui-badge-height-large, 2rem);padding:0 var(--ui-badge-padding-x-large, var(--units-lg));font-size:var(--ui-badge-font-size-large, var(--size-typography-text-lg))}.ui-badge._single{padding:0}.ui-badge._dot{width:var(--ui-badge-dot-size, .625rem);height:var(--ui-badge-dot-size, .625rem);min-width:0;padding:0}.ui-badge._small._dot{width:var(--ui-badge-dot-size-small, .5rem);height:var(--ui-badge-dot-size-small, .5rem);min-width:0;padding:0}.ui-badge._large._dot{width:var(--ui-badge-dot-size-large, .75rem);height:var(--ui-badge-dot-size-large, .75rem);min-width:0;padding:0}.ui-badge._default._high{background-color:var(--informative-defaulthigh-surface-default);color:var(--informative-defaulthigh-content-default);border-color:var(--informative-defaulthigh-stroke-default)}.ui-badge._default._low{background-color:var(--informative-defaultlow-surface-default);color:var(--informative-defaultlow-content-default);border-color:var(--informative-defaultlow-stroke-default)}.ui-badge._highlight._high{background-color:var(--informative-highlighthigh-surface-default);color:var(--informative-highlighthigh-content-default);border-color:var(--informative-highlighthigh-stroke-default)}.ui-badge._highlight._low{background-color:var(--informative-highlightlow-surface-default);color:var(--informative-highlightlow-content-default);border-color:var(--informative-highlightlow-stroke-default)}.ui-badge._success._high{background-color:var(--informative-successhigh-surface-default);color:var(--informative-successhigh-content-default);border-color:var(--informative-successhigh-stroke-default)}.ui-badge._success._low{background-color:var(--informative-successlow-surface-default);color:var(--informative-successlow-content-default);border-color:var(--informative-successlow-stroke-default)}.ui-badge._warning._high{background-color:var(--informative-warninghigh-surface-default);color:var(--informative-warninghigh-content-default);border-color:var(--informative-warninghigh-stroke-default)}.ui-badge._warning._low{background-color:var(--informative-warninglow-surface-default);color:var(--informative-warninglow-content-default);border-color:var(--informative-warninglow-stroke-default)}.ui-badge._error._high{background-color:var(--informative-errorhigh-surface-default);color:var(--informative-errorhigh-content-default);border-color:var(--informative-errorhigh-stroke-default)}.ui-badge._error._low{background-color:var(--informative-errorlow-surface-default);color:var(--informative-errorlow-content-default);border-color:var(--informative-errorlow-stroke-default)}\n"] }]
83
+ args: [{ selector: 'ui-badge', imports: [UiIcon], template: "<span [class]=\"classes()\" [attr.role]=\"ariaLabel() ? 'img' : null\" [attr.aria-label]=\"ariaLabel() ?? null\">\n @if (icon(); as name) {\n <ui-icon class=\"ui-badge-icon\" [name]=\"name\" [size]=\"iconSize()\" />\n }\n @if (hasText()) {\n <span class=\"ui-badge-label\">{{ value() }}</span>\n }\n</span>\n", styles: [".ui-badge{display:inline-flex;align-items:center;justify-content:center;gap:var(--ui-badge-gap, var(--units-xs));box-sizing:border-box;border:var(--ui-badge-stroke-width, var(--stroke-sm)) solid transparent;border-radius:var(--ui-badge-radius, var(--radius-full));font-family:var(--fontfamily-base);font-weight:var(--weight-bold);line-height:1;white-space:nowrap;height:var(--ui-badge-height, 1.75rem);min-width:var(--ui-badge-height, 1.75rem);padding:0 var(--ui-badge-padding-x, var(--units-md));font-size:var(--ui-badge-font-size, var(--size-typography-text-default))}.ui-badge-icon{line-height:0}.ui-badge-label{display:inline-block}.ui-badge._small{height:var(--ui-badge-height-small, 1.375rem);min-width:var(--ui-badge-height-small, 1.375rem);padding:0 var(--ui-badge-padding-x-small, var(--units-md));font-size:var(--ui-badge-font-size-small, var(--size-typography-text-md))}.ui-badge._large{height:var(--ui-badge-height-large, 2rem);min-width:var(--ui-badge-height-large, 2rem);padding:0 var(--ui-badge-padding-x-large, var(--units-lg));font-size:var(--ui-badge-font-size-large, var(--size-typography-text-lg))}.ui-badge._single{padding:0}.ui-badge._dot{width:var(--ui-badge-dot-size, .625rem);height:var(--ui-badge-dot-size, .625rem);min-width:0;padding:0}.ui-badge._small._dot{width:var(--ui-badge-dot-size-small, .5rem);height:var(--ui-badge-dot-size-small, .5rem);min-width:0;padding:0}.ui-badge._large._dot{width:var(--ui-badge-dot-size-large, .75rem);height:var(--ui-badge-dot-size-large, .75rem);min-width:0;padding:0}.ui-badge._default._high{background-color:var(--informative-defaulthigh-surface-default);color:var(--informative-defaulthigh-content-default);border-color:var(--informative-defaulthigh-stroke-default)}.ui-badge._default._low{background-color:var(--informative-defaultlow-surface-default);color:var(--informative-defaultlow-content-default);border-color:var(--informative-defaultlow-stroke-default)}.ui-badge._highlight._high{background-color:var(--informative-highlighthigh-surface-default);color:var(--informative-highlighthigh-content-default);border-color:var(--informative-highlighthigh-stroke-default)}.ui-badge._highlight._low{background-color:var(--informative-highlightlow-surface-default);color:var(--informative-highlightlow-content-default);border-color:var(--informative-highlightlow-stroke-default)}.ui-badge._success._high{background-color:var(--informative-successhigh-surface-default);color:var(--informative-successhigh-content-default);border-color:var(--informative-successhigh-stroke-default)}.ui-badge._success._low{background-color:var(--informative-successlow-surface-default);color:var(--informative-successlow-content-default);border-color:var(--informative-successlow-stroke-default)}.ui-badge._warning._high{background-color:var(--informative-warninghigh-surface-default);color:var(--informative-warninghigh-content-default);border-color:var(--informative-warninghigh-stroke-default)}.ui-badge._warning._low{background-color:var(--informative-warninglow-surface-default);color:var(--informative-warninglow-content-default);border-color:var(--informative-warninglow-stroke-default)}.ui-badge._error._high{background-color:var(--informative-errorhigh-surface-default);color:var(--informative-errorhigh-content-default);border-color:var(--informative-errorhigh-stroke-default)}.ui-badge._error._low{background-color:var(--informative-errorlow-surface-default);color:var(--informative-errorlow-content-default);border-color:var(--informative-errorlow-stroke-default)}\n"] }]
84
84
  }], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", 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 }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
85
85
 
86
86
  /*
@@ -1 +1 @@
1
- {"version":3,"file":"4sh-ui-kit-informative-ui-badge.mjs","sources":["../../../projects/ui-kit/informative/ui-badge/src/lib/ui-badge.ts","../../../projects/ui-kit/informative/ui-badge/src/lib/ui-badge.html","../../../projects/ui-kit/informative/ui-badge/src/public-api.ts","../../../projects/ui-kit/informative/ui-badge/src/4sh-ui-kit-informative-ui-badge.ts"],"sourcesContent":["import { Component, computed, effect, input, isDevMode } from '@angular/core';\nimport { UiIcon, UiIconSize } from '@4sh/ui-kit/base/ui-icon';\nimport { UiFeedbackLevel, UiSubLevel } from '@4sh/ui-kit/types';\n\nexport type BadgeSize = 'default' | 'small' | 'large';\n\n/**\n * ui-badge — small status / count indicator.\n */\n@Component({\n selector: 'ui-badge',\n imports: [UiIcon],\n templateUrl: './ui-badge.html',\n styleUrl: './ui-badge.scss',\n})\nexport class UiBadge {\n value = input<string | number>();\n level = input<UiFeedbackLevel>('default');\n subLevel = input<UiSubLevel>('high');\n size = input<BadgeSize>('default');\n icon = input<string>();\n ariaLabel = input<string>();\n\n constructor() {\n if (isDevMode()) {\n effect(() => {\n if (this.isIconOnly() && !this.ariaLabel()) {\n console.warn('[ui-badge] Icon-only badge has no accessible name: provide `ariaLabel`.');\n }\n });\n }\n }\n\n /** @ignore There is text here */\n protected readonly hasText = computed(() => {\n const v = this.value();\n return v !== undefined && v !== null && String(v).length > 0;\n });\n\n /** @ignore There is an icon. */\n protected readonly hasIcon = computed(() => !!this.icon());\n\n /** @ignore Icon only (no text). */\n protected readonly isIconOnly = computed(() => this.hasIcon() && !this.hasText());\n\n /** @ignore Dot: no text and no icon. */\n protected readonly isDot = computed(() => !this.hasIcon() && !this.hasText());\n\n /**\n * @ignore Single glyph: a lone icon, or a single character (counter \"1\", symbol \"★\").\n */\n protected readonly isSingle = computed(() => {\n if (this.hasIcon()) return !this.hasText();\n return Array.from(String(this.value() ?? '').trim()).length === 1;\n });\n\n /** @ignore Bullet: Neither text nor icon. */\n protected readonly iconSize = computed<UiIconSize>(() => {\n switch (this.size()) {\n case 'small':\n return 'sm';\n case 'large':\n return 'lg';\n default:\n return 'md';\n }\n });\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-badge', `_${this.level()}`, `_${this.subLevel()}`];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n if (this.isDot()) c.push('_dot');\n else if (this.isSingle()) c.push('_single');\n return c.join(' ');\n });\n}\n","<span [class]=\"classes()\" [attr.aria-label]=\"ariaLabel() ?? null\">\n @if (icon(); as name) {\n <ui-icon class=\"ui-badge-icon\" [name]=\"name\" [size]=\"iconSize()\" />\n }\n @if (hasText()) {\n <span class=\"ui-badge-label\">{{ value() }}</span>\n }\n</span>\n","/*\n * Public API Surface of ui-kit/ui-badge\n */\n\nexport * from './lib/ui-badge';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;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,QAAA,EAAA,YAAA,EAAA,WAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAIL,OAAO,EAAA,UAAA,EAAA,CAAA;kBANnB,SAAS;+BACE,UAAU,EAAA,OAAA,EACX,CAAC,MAAM,CAAC,EAAA,QAAA,EAAA,qRAAA,EAAA,MAAA,EAAA,CAAA,s8GAAA,CAAA,EAAA;;;AEXnB;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"4sh-ui-kit-informative-ui-badge.mjs","sources":["../../../projects/ui-kit/informative/ui-badge/src/lib/ui-badge.ts","../../../projects/ui-kit/informative/ui-badge/src/lib/ui-badge.html","../../../projects/ui-kit/informative/ui-badge/src/public-api.ts","../../../projects/ui-kit/informative/ui-badge/src/4sh-ui-kit-informative-ui-badge.ts"],"sourcesContent":["import { Component, computed, effect, input, isDevMode } from '@angular/core';\nimport { UiIcon, UiIconSize } from '@4sh/ui-kit/base/ui-icon';\nimport { UiFeedbackLevel, UiSubLevel } from '@4sh/ui-kit/types';\n\nexport type BadgeSize = 'default' | 'small' | 'large';\n\n/**\n * ui-badge — small status / count indicator.\n */\n@Component({\n selector: 'ui-badge',\n imports: [UiIcon],\n templateUrl: './ui-badge.html',\n styleUrl: './ui-badge.scss',\n})\nexport class UiBadge {\n value = input<string | number>();\n level = input<UiFeedbackLevel>('default');\n subLevel = input<UiSubLevel>('high');\n size = input<BadgeSize>('default');\n icon = input<string>();\n ariaLabel = input<string>();\n\n constructor() {\n if (isDevMode()) {\n effect(() => {\n if (this.isIconOnly() && !this.ariaLabel()) {\n console.warn('[ui-badge] Icon-only badge has no accessible name: provide `ariaLabel`.');\n }\n });\n }\n }\n\n /** @ignore There is text here */\n protected readonly hasText = computed(() => {\n const v = this.value();\n return v !== undefined && v !== null && String(v).length > 0;\n });\n\n /** @ignore There is an icon. */\n protected readonly hasIcon = computed(() => !!this.icon());\n\n /** @ignore Icon only (no text). */\n protected readonly isIconOnly = computed(() => this.hasIcon() && !this.hasText());\n\n /** @ignore Dot: no text and no icon. */\n protected readonly isDot = computed(() => !this.hasIcon() && !this.hasText());\n\n /**\n * @ignore Single glyph: a lone icon, or a single character (counter \"1\", symbol \"★\").\n */\n protected readonly isSingle = computed(() => {\n if (this.hasIcon()) return !this.hasText();\n return Array.from(String(this.value() ?? '').trim()).length === 1;\n });\n\n /** @ignore Bullet: Neither text nor icon. */\n protected readonly iconSize = computed<UiIconSize>(() => {\n switch (this.size()) {\n case 'small':\n return 'sm';\n case 'large':\n return 'lg';\n default:\n return 'md';\n }\n });\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-badge', `_${this.level()}`, `_${this.subLevel()}`];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n if (this.isDot()) c.push('_dot');\n else if (this.isSingle()) c.push('_single');\n return c.join(' ');\n });\n}\n","<span [class]=\"classes()\" [attr.role]=\"ariaLabel() ? 'img' : null\" [attr.aria-label]=\"ariaLabel() ?? null\">\n @if (icon(); as name) {\n <ui-icon class=\"ui-badge-icon\" [name]=\"name\" [size]=\"iconSize()\" />\n }\n @if (hasText()) {\n <span class=\"ui-badge-label\">{{ value() }}</span>\n }\n</span>\n","/*\n * Public API Surface of ui-kit/ui-badge\n */\n\nexport * from './lib/ui-badge';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAMA;;AAEG;MAOU,OAAO,CAAA;AAQlB,IAAA,WAAA,GAAA;AAPA,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAmB;QAChC,IAAA,CAAA,KAAK,GAAG,KAAK,CAAkB,SAAS;kFAAC;QACzC,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAa,MAAM;qFAAC;QACpC,IAAA,CAAA,IAAI,GAAG,KAAK,CAAY,SAAS;iFAAC;AAClC,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK;4FAAU;AACtB,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK;iGAAU;;AAaR,QA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version: "22.1.2", ngImport: i0, type: UiChip, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
189
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.2", 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.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(--fontfamily-base);font-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(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-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(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),border-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-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(--informative-defaulthigh-surface-default);color:var(--informative-defaulthigh-content-default);border-color:var(--informative-defaulthigh-stroke-default)}.ui-chip._default._high .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-defaulthigh-surface-hover);color: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(--informative-defaulthigh-content-default)}.ui-chip._default._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-defaulthigh-surface-hover);color:var(--informative-defaulthigh-content-hover)}.ui-chip._default._low{background-color:var(--informative-defaultlow-surface-default);color:var(--informative-defaultlow-content-default);border-color:var(--informative-defaultlow-stroke-default)}.ui-chip._default._low .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-defaultlow-surface-hover);color: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(--informative-defaultlow-content-default)}.ui-chip._default._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-defaultlow-surface-hover);color:var(--informative-defaultlow-content-hover)}.ui-chip._default._selected{background-color:var(--informative-defaulthigh-surface-default);color:var(--informative-defaulthigh-content-default);border-color:var(--informative-defaulthigh-stroke-default)}.ui-chip._default._selected._selectable:hover:not(:disabled){background-color:var(--informative-defaulthigh-surface-hover);color: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(--informative-defaulthigh-surface-default)}.ui-chip._highlight._high{background-color:var(--informative-highlighthigh-surface-default);color:var(--informative-highlighthigh-content-default);border-color:var(--informative-highlighthigh-stroke-default)}.ui-chip._highlight._high .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-highlighthigh-surface-hover);color: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(--informative-highlighthigh-content-default)}.ui-chip._highlight._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-highlighthigh-surface-hover);color:var(--informative-highlighthigh-content-hover)}.ui-chip._highlight._low{background-color:var(--informative-highlightlow-surface-default);color:var(--informative-highlightlow-content-default);border-color:var(--informative-highlightlow-stroke-default)}.ui-chip._highlight._low .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-highlightlow-surface-hover);color: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(--informative-highlightlow-content-default)}.ui-chip._highlight._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-highlightlow-surface-hover);color:var(--informative-highlightlow-content-hover)}.ui-chip._highlight._selected{background-color:var(--informative-highlighthigh-surface-default);color:var(--informative-highlighthigh-content-default);border-color:var(--informative-highlighthigh-stroke-default)}.ui-chip._highlight._selected._selectable:hover:not(:disabled){background-color:var(--informative-highlighthigh-surface-hover);color: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(--informative-highlighthigh-surface-default)}.ui-chip._success._high{background-color:var(--informative-successhigh-surface-default);color:var(--informative-successhigh-content-default);border-color:var(--informative-successhigh-stroke-default)}.ui-chip._success._high .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-successhigh-surface-hover);color: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(--informative-successhigh-content-default)}.ui-chip._success._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-successhigh-surface-hover);color:var(--informative-successhigh-content-hover)}.ui-chip._success._low{background-color:var(--informative-successlow-surface-default);color:var(--informative-successlow-content-default);border-color:var(--informative-successlow-stroke-default)}.ui-chip._success._low .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-successlow-surface-hover);color: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(--informative-successlow-content-default)}.ui-chip._success._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-successlow-surface-hover);color:var(--informative-successlow-content-hover)}.ui-chip._success._selected{background-color:var(--informative-successhigh-surface-default);color:var(--informative-successhigh-content-default);border-color:var(--informative-successhigh-stroke-default)}.ui-chip._success._selected._selectable:hover:not(:disabled){background-color:var(--informative-successhigh-surface-hover);color: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(--informative-successhigh-surface-default)}.ui-chip._warning._high{background-color:var(--informative-warninghigh-surface-default);color:var(--informative-warninghigh-content-default);border-color:var(--informative-warninghigh-stroke-default)}.ui-chip._warning._high .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-warninghigh-surface-hover);color: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(--informative-warninghigh-content-default)}.ui-chip._warning._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-warninghigh-surface-hover);color:var(--informative-warninghigh-content-hover)}.ui-chip._warning._low{background-color:var(--informative-warninglow-surface-default);color:var(--informative-warninglow-content-default);border-color:var(--informative-warninglow-stroke-default)}.ui-chip._warning._low .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-warninglow-surface-hover);color: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(--informative-warninglow-content-default)}.ui-chip._warning._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-warninglow-surface-hover);color:var(--informative-warninglow-content-hover)}.ui-chip._warning._selected{background-color:var(--informative-warninghigh-surface-default);color:var(--informative-warninghigh-content-default);border-color:var(--informative-warninghigh-stroke-default)}.ui-chip._warning._selected._selectable:hover:not(:disabled){background-color:var(--informative-warninghigh-surface-hover);color: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(--informative-warninghigh-surface-default)}.ui-chip._error._high{background-color:var(--informative-errorhigh-surface-default);color:var(--informative-errorhigh-content-default);border-color:var(--informative-errorhigh-stroke-default)}.ui-chip._error._high .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-errorhigh-surface-hover);color: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(--informative-errorhigh-content-default)}.ui-chip._error._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-errorhigh-surface-hover);color:var(--informative-errorhigh-content-hover)}.ui-chip._error._low{background-color:var(--informative-errorlow-surface-default);color:var(--informative-errorlow-content-default);border-color:var(--informative-errorlow-stroke-default)}.ui-chip._error._low .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-errorlow-surface-hover);color: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(--informative-errorlow-content-default)}.ui-chip._error._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-errorlow-surface-hover);color:var(--informative-errorlow-content-hover)}.ui-chip._error._selected{background-color:var(--informative-errorhigh-surface-default);color:var(--informative-errorhigh-content-default);border-color:var(--informative-errorhigh-stroke-default)}.ui-chip._error._selected._selectable:hover:not(:disabled){background-color:var(--informative-errorhigh-surface-hover);color: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(--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"] }] }); }
189
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.2", 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(--fontfamily-base);font-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(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-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(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),border-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-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(--informative-defaulthigh-surface-default);color:var(--informative-defaulthigh-content-default);border-color:var(--informative-defaulthigh-stroke-default)}.ui-chip._default._high .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-defaulthigh-surface-hover);color: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(--informative-defaulthigh-content-default)}.ui-chip._default._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-defaulthigh-surface-hover);color:var(--informative-defaulthigh-content-hover)}.ui-chip._default._low{background-color:var(--informative-defaultlow-surface-default);color:var(--informative-defaultlow-content-default);border-color:var(--informative-defaultlow-stroke-default)}.ui-chip._default._low .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-defaultlow-surface-hover);color: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(--informative-defaultlow-content-default)}.ui-chip._default._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-defaultlow-surface-hover);color:var(--informative-defaultlow-content-hover)}.ui-chip._default._selected{background-color:var(--informative-defaulthigh-surface-default);color:var(--informative-defaulthigh-content-default);border-color:var(--informative-defaulthigh-stroke-default)}.ui-chip._default._selected._selectable:hover:not(:disabled){background-color:var(--informative-defaulthigh-surface-hover);color: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(--informative-defaulthigh-surface-default)}.ui-chip._highlight._high{background-color:var(--informative-highlighthigh-surface-default);color:var(--informative-highlighthigh-content-default);border-color:var(--informative-highlighthigh-stroke-default)}.ui-chip._highlight._high .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-highlighthigh-surface-hover);color: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(--informative-highlighthigh-content-default)}.ui-chip._highlight._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-highlighthigh-surface-hover);color:var(--informative-highlighthigh-content-hover)}.ui-chip._highlight._low{background-color:var(--informative-highlightlow-surface-default);color:var(--informative-highlightlow-content-default);border-color:var(--informative-highlightlow-stroke-default)}.ui-chip._highlight._low .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-highlightlow-surface-hover);color: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(--informative-highlightlow-content-default)}.ui-chip._highlight._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-highlightlow-surface-hover);color:var(--informative-highlightlow-content-hover)}.ui-chip._highlight._selected{background-color:var(--informative-highlighthigh-surface-default);color:var(--informative-highlighthigh-content-default);border-color:var(--informative-highlighthigh-stroke-default)}.ui-chip._highlight._selected._selectable:hover:not(:disabled){background-color:var(--informative-highlighthigh-surface-hover);color: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(--informative-highlighthigh-surface-default)}.ui-chip._success._high{background-color:var(--informative-successhigh-surface-default);color:var(--informative-successhigh-content-default);border-color:var(--informative-successhigh-stroke-default)}.ui-chip._success._high .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-successhigh-surface-hover);color: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(--informative-successhigh-content-default)}.ui-chip._success._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-successhigh-surface-hover);color:var(--informative-successhigh-content-hover)}.ui-chip._success._low{background-color:var(--informative-successlow-surface-default);color:var(--informative-successlow-content-default);border-color:var(--informative-successlow-stroke-default)}.ui-chip._success._low .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-successlow-surface-hover);color: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(--informative-successlow-content-default)}.ui-chip._success._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-successlow-surface-hover);color:var(--informative-successlow-content-hover)}.ui-chip._success._selected{background-color:var(--informative-successhigh-surface-default);color:var(--informative-successhigh-content-default);border-color:var(--informative-successhigh-stroke-default)}.ui-chip._success._selected._selectable:hover:not(:disabled){background-color:var(--informative-successhigh-surface-hover);color: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(--informative-successhigh-surface-default)}.ui-chip._warning._high{background-color:var(--informative-warninghigh-surface-default);color:var(--informative-warninghigh-content-default);border-color:var(--informative-warninghigh-stroke-default)}.ui-chip._warning._high .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-warninghigh-surface-hover);color: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(--informative-warninghigh-content-default)}.ui-chip._warning._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-warninghigh-surface-hover);color:var(--informative-warninghigh-content-hover)}.ui-chip._warning._low{background-color:var(--informative-warninglow-surface-default);color:var(--informative-warninglow-content-default);border-color:var(--informative-warninglow-stroke-default)}.ui-chip._warning._low .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-warninglow-surface-hover);color: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(--informative-warninglow-content-default)}.ui-chip._warning._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-warninglow-surface-hover);color:var(--informative-warninglow-content-hover)}.ui-chip._warning._selected{background-color:var(--informative-warninghigh-surface-default);color:var(--informative-warninghigh-content-default);border-color:var(--informative-warninghigh-stroke-default)}.ui-chip._warning._selected._selectable:hover:not(:disabled){background-color:var(--informative-warninghigh-surface-hover);color: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(--informative-warninghigh-surface-default)}.ui-chip._error._high{background-color:var(--informative-errorhigh-surface-default);color:var(--informative-errorhigh-content-default);border-color:var(--informative-errorhigh-stroke-default)}.ui-chip._error._high .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-errorhigh-surface-hover);color: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(--informative-errorhigh-content-default)}.ui-chip._error._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-errorhigh-surface-hover);color:var(--informative-errorhigh-content-hover)}.ui-chip._error._low{background-color:var(--informative-errorlow-surface-default);color:var(--informative-errorlow-content-default);border-color:var(--informative-errorlow-stroke-default)}.ui-chip._error._low .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-errorlow-surface-hover);color: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(--informative-errorlow-content-default)}.ui-chip._error._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-errorlow-surface-hover);color:var(--informative-errorlow-content-hover)}.ui-chip._error._selected{background-color:var(--informative-errorhigh-surface-default);color:var(--informative-errorhigh-content-default);border-color:var(--informative-errorhigh-stroke-default)}.ui-chip._error._selected._selectable:hover:not(:disabled){background-color:var(--informative-errorhigh-surface-hover);color: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(--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
190
  }
191
191
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.2", ngImport: i0, type: UiChip, decorators: [{
192
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.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(--fontfamily-base);font-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(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-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(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),border-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-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(--informative-defaulthigh-surface-default);color:var(--informative-defaulthigh-content-default);border-color:var(--informative-defaulthigh-stroke-default)}.ui-chip._default._high .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-defaulthigh-surface-hover);color: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(--informative-defaulthigh-content-default)}.ui-chip._default._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-defaulthigh-surface-hover);color:var(--informative-defaulthigh-content-hover)}.ui-chip._default._low{background-color:var(--informative-defaultlow-surface-default);color:var(--informative-defaultlow-content-default);border-color:var(--informative-defaultlow-stroke-default)}.ui-chip._default._low .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-defaultlow-surface-hover);color: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(--informative-defaultlow-content-default)}.ui-chip._default._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-defaultlow-surface-hover);color:var(--informative-defaultlow-content-hover)}.ui-chip._default._selected{background-color:var(--informative-defaulthigh-surface-default);color:var(--informative-defaulthigh-content-default);border-color:var(--informative-defaulthigh-stroke-default)}.ui-chip._default._selected._selectable:hover:not(:disabled){background-color:var(--informative-defaulthigh-surface-hover);color: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(--informative-defaulthigh-surface-default)}.ui-chip._highlight._high{background-color:var(--informative-highlighthigh-surface-default);color:var(--informative-highlighthigh-content-default);border-color:var(--informative-highlighthigh-stroke-default)}.ui-chip._highlight._high .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-highlighthigh-surface-hover);color: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(--informative-highlighthigh-content-default)}.ui-chip._highlight._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-highlighthigh-surface-hover);color:var(--informative-highlighthigh-content-hover)}.ui-chip._highlight._low{background-color:var(--informative-highlightlow-surface-default);color:var(--informative-highlightlow-content-default);border-color:var(--informative-highlightlow-stroke-default)}.ui-chip._highlight._low .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-highlightlow-surface-hover);color: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(--informative-highlightlow-content-default)}.ui-chip._highlight._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-highlightlow-surface-hover);color:var(--informative-highlightlow-content-hover)}.ui-chip._highlight._selected{background-color:var(--informative-highlighthigh-surface-default);color:var(--informative-highlighthigh-content-default);border-color:var(--informative-highlighthigh-stroke-default)}.ui-chip._highlight._selected._selectable:hover:not(:disabled){background-color:var(--informative-highlighthigh-surface-hover);color: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(--informative-highlighthigh-surface-default)}.ui-chip._success._high{background-color:var(--informative-successhigh-surface-default);color:var(--informative-successhigh-content-default);border-color:var(--informative-successhigh-stroke-default)}.ui-chip._success._high .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-successhigh-surface-hover);color: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(--informative-successhigh-content-default)}.ui-chip._success._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-successhigh-surface-hover);color:var(--informative-successhigh-content-hover)}.ui-chip._success._low{background-color:var(--informative-successlow-surface-default);color:var(--informative-successlow-content-default);border-color:var(--informative-successlow-stroke-default)}.ui-chip._success._low .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-successlow-surface-hover);color: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(--informative-successlow-content-default)}.ui-chip._success._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-successlow-surface-hover);color:var(--informative-successlow-content-hover)}.ui-chip._success._selected{background-color:var(--informative-successhigh-surface-default);color:var(--informative-successhigh-content-default);border-color:var(--informative-successhigh-stroke-default)}.ui-chip._success._selected._selectable:hover:not(:disabled){background-color:var(--informative-successhigh-surface-hover);color: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(--informative-successhigh-surface-default)}.ui-chip._warning._high{background-color:var(--informative-warninghigh-surface-default);color:var(--informative-warninghigh-content-default);border-color:var(--informative-warninghigh-stroke-default)}.ui-chip._warning._high .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-warninghigh-surface-hover);color: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(--informative-warninghigh-content-default)}.ui-chip._warning._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-warninghigh-surface-hover);color:var(--informative-warninghigh-content-hover)}.ui-chip._warning._low{background-color:var(--informative-warninglow-surface-default);color:var(--informative-warninglow-content-default);border-color:var(--informative-warninglow-stroke-default)}.ui-chip._warning._low .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-warninglow-surface-hover);color: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(--informative-warninglow-content-default)}.ui-chip._warning._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-warninglow-surface-hover);color:var(--informative-warninglow-content-hover)}.ui-chip._warning._selected{background-color:var(--informative-warninghigh-surface-default);color:var(--informative-warninghigh-content-default);border-color:var(--informative-warninghigh-stroke-default)}.ui-chip._warning._selected._selectable:hover:not(:disabled){background-color:var(--informative-warninghigh-surface-hover);color: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(--informative-warninghigh-surface-default)}.ui-chip._error._high{background-color:var(--informative-errorhigh-surface-default);color:var(--informative-errorhigh-content-default);border-color:var(--informative-errorhigh-stroke-default)}.ui-chip._error._high .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-errorhigh-surface-hover);color: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(--informative-errorhigh-content-default)}.ui-chip._error._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-errorhigh-surface-hover);color:var(--informative-errorhigh-content-hover)}.ui-chip._error._low{background-color:var(--informative-errorlow-surface-default);color:var(--informative-errorlow-content-default);border-color:var(--informative-errorlow-stroke-default)}.ui-chip._error._low .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-errorlow-surface-hover);color: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(--informative-errorlow-content-default)}.ui-chip._error._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-errorlow-surface-hover);color:var(--informative-errorlow-content-hover)}.ui-chip._error._selected{background-color:var(--informative-errorhigh-surface-default);color:var(--informative-errorhigh-content-default);border-color:var(--informative-errorhigh-stroke-default)}.ui-chip._error._selected._selectable:hover:not(:disabled){background-color:var(--informative-errorhigh-surface-hover);color: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(--informative-errorhigh-surface-default)}\n"] }]
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(--fontfamily-base);font-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(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-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(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),border-color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout)),box-shadow var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-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(--informative-defaulthigh-surface-default);color:var(--informative-defaulthigh-content-default);border-color:var(--informative-defaulthigh-stroke-default)}.ui-chip._default._high .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-defaulthigh-surface-hover);color: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(--informative-defaulthigh-content-default)}.ui-chip._default._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-defaulthigh-surface-hover);color:var(--informative-defaulthigh-content-hover)}.ui-chip._default._low{background-color:var(--informative-defaultlow-surface-default);color:var(--informative-defaultlow-content-default);border-color:var(--informative-defaultlow-stroke-default)}.ui-chip._default._low .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-defaultlow-surface-hover);color: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(--informative-defaultlow-content-default)}.ui-chip._default._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-defaultlow-surface-hover);color:var(--informative-defaultlow-content-hover)}.ui-chip._default._selected{background-color:var(--informative-defaulthigh-surface-default);color:var(--informative-defaulthigh-content-default);border-color:var(--informative-defaulthigh-stroke-default)}.ui-chip._default._selected._selectable:hover:not(:disabled){background-color:var(--informative-defaulthigh-surface-hover);color: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(--informative-defaulthigh-surface-default)}.ui-chip._highlight._high{background-color:var(--informative-highlighthigh-surface-default);color:var(--informative-highlighthigh-content-default);border-color:var(--informative-highlighthigh-stroke-default)}.ui-chip._highlight._high .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-highlighthigh-surface-hover);color: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(--informative-highlighthigh-content-default)}.ui-chip._highlight._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-highlighthigh-surface-hover);color:var(--informative-highlighthigh-content-hover)}.ui-chip._highlight._low{background-color:var(--informative-highlightlow-surface-default);color:var(--informative-highlightlow-content-default);border-color:var(--informative-highlightlow-stroke-default)}.ui-chip._highlight._low .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-highlightlow-surface-hover);color: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(--informative-highlightlow-content-default)}.ui-chip._highlight._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-highlightlow-surface-hover);color:var(--informative-highlightlow-content-hover)}.ui-chip._highlight._selected{background-color:var(--informative-highlighthigh-surface-default);color:var(--informative-highlighthigh-content-default);border-color:var(--informative-highlighthigh-stroke-default)}.ui-chip._highlight._selected._selectable:hover:not(:disabled){background-color:var(--informative-highlighthigh-surface-hover);color: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(--informative-highlighthigh-surface-default)}.ui-chip._success._high{background-color:var(--informative-successhigh-surface-default);color:var(--informative-successhigh-content-default);border-color:var(--informative-successhigh-stroke-default)}.ui-chip._success._high .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-successhigh-surface-hover);color: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(--informative-successhigh-content-default)}.ui-chip._success._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-successhigh-surface-hover);color:var(--informative-successhigh-content-hover)}.ui-chip._success._low{background-color:var(--informative-successlow-surface-default);color:var(--informative-successlow-content-default);border-color:var(--informative-successlow-stroke-default)}.ui-chip._success._low .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-successlow-surface-hover);color: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(--informative-successlow-content-default)}.ui-chip._success._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-successlow-surface-hover);color:var(--informative-successlow-content-hover)}.ui-chip._success._selected{background-color:var(--informative-successhigh-surface-default);color:var(--informative-successhigh-content-default);border-color:var(--informative-successhigh-stroke-default)}.ui-chip._success._selected._selectable:hover:not(:disabled){background-color:var(--informative-successhigh-surface-hover);color: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(--informative-successhigh-surface-default)}.ui-chip._warning._high{background-color:var(--informative-warninghigh-surface-default);color:var(--informative-warninghigh-content-default);border-color:var(--informative-warninghigh-stroke-default)}.ui-chip._warning._high .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-warninghigh-surface-hover);color: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(--informative-warninghigh-content-default)}.ui-chip._warning._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-warninghigh-surface-hover);color:var(--informative-warninghigh-content-hover)}.ui-chip._warning._low{background-color:var(--informative-warninglow-surface-default);color:var(--informative-warninglow-content-default);border-color:var(--informative-warninglow-stroke-default)}.ui-chip._warning._low .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-warninglow-surface-hover);color: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(--informative-warninglow-content-default)}.ui-chip._warning._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-warninglow-surface-hover);color:var(--informative-warninglow-content-hover)}.ui-chip._warning._selected{background-color:var(--informative-warninghigh-surface-default);color:var(--informative-warninghigh-content-default);border-color:var(--informative-warninghigh-stroke-default)}.ui-chip._warning._selected._selectable:hover:not(:disabled){background-color:var(--informative-warninghigh-surface-hover);color: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(--informative-warninghigh-surface-default)}.ui-chip._error._high{background-color:var(--informative-errorhigh-surface-default);color:var(--informative-errorhigh-content-default);border-color:var(--informative-errorhigh-stroke-default)}.ui-chip._error._high .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-errorhigh-surface-hover);color: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(--informative-errorhigh-content-default)}.ui-chip._error._high._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-errorhigh-surface-hover);color:var(--informative-errorhigh-content-hover)}.ui-chip._error._low{background-color:var(--informative-errorlow-surface-default);color:var(--informative-errorlow-content-default);border-color:var(--informative-errorlow-stroke-default)}.ui-chip._error._low .ui-chip-remove:hover:not(:disabled){background-color:var(--informative-errorlow-surface-hover);color: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(--informative-errorlow-content-default)}.ui-chip._error._low._selectable:not(._selected):hover:not(:disabled){background-color:var(--informative-errorlow-surface-hover);color:var(--informative-errorlow-content-hover)}.ui-chip._error._selected{background-color:var(--informative-errorhigh-surface-default);color:var(--informative-errorhigh-content-default);border-color:var(--informative-errorhigh-stroke-default)}.ui-chip._error._selected._selectable:hover:not(:disabled){background-color:var(--informative-errorhigh-surface-hover);color: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(--informative-errorhigh-surface-default)}\n"] }]
194
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
195
 
196
196
  /*
@@ -1 +1 @@
1
- {"version":3,"file":"4sh-ui-kit-informative-ui-chip.mjs","sources":["../../../projects/ui-kit/informative/ui-chip/src/lib/ui-chip.ts","../../../projects/ui-kit/informative/ui-chip/src/lib/ui-chip.html","../../../projects/ui-kit/informative/ui-chip/src/public-api.ts","../../../projects/ui-kit/informative/ui-chip/src/4sh-ui-kit-informative-ui-chip.ts"],"sourcesContent":["import {\n booleanAttribute,\n Component,\n computed,\n effect,\n input,\n isDevMode,\n model,\n output,\n signal,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { UiIcon, UiIconSize } from '@4sh/ui-kit/base/ui-icon';\nimport { UiFeedbackLevel, UiSubLevel } from '@4sh/ui-kit/types';\n\nexport type ChipSize = 'default' | 'small';\n\n/**\n * ui-chip — compact, interactive entity token.\n *\n * A close relative of `ui-tag`, but interactive: it can carry a leading icon or\n * image (avatar-like), an optional remove action, and arbitrary projected content.\n * Typical uses: selected values in a multi-select, filter/entity chips, keyword lists.\n *\n * Categorised by `level` × `subLevel` (informative color families) and fully\n * token-driven. Interactive states (hover/focus on the remove action) are handled in\n * CSS via the same `informative.*` tokens — never through Angular props.\n *\n * Accessible: `label` is exposed as the default `aria-label` (overridable via\n * `ariaLabel` / `ariaLabelledBy`); the remove action is a native `<button>`, focusable\n * with Tab and removable with Enter/Space (native) plus Backspace/Delete.\n */\n@Component({\n selector: 'ui-chip',\n imports: [UiIcon, NgTemplateOutlet],\n templateUrl: './ui-chip.html',\n styleUrl: './ui-chip.scss',\n})\nexport class UiChip {\n /** Text content of the chip. */\n label = input<string>();\n /** Color family. */\n level = input<UiFeedbackLevel>('default');\n /** Intensity: high (solid) or low (subtle). Chips default to the discreet `low`. */\n subLevel = input<UiSubLevel>('low');\n /** Size. */\n size = input<ChipSize>('default');\n /** FontAwesome name of the leading icon (ignored when `image` is set). */\n icon = input<string>();\n /** Leading image source (avatar-like). Takes priority over `icon`. */\n image = input<string>();\n /** Alternative text for the image (leave empty for a decorative image next to a label). */\n alt = input<string>();\n /** Pill shape when true (default); rounded-rectangle when false. */\n rounded = input(true, { transform: booleanAttribute });\n /** Displays a remove action at the end of the chip. */\n removable = input(false, { transform: booleanAttribute });\n /** FontAwesome name of the remove icon. */\n removeIcon = input<string>('xmark');\n /** Disables the chip (the remove action / selection becomes non-interactive). */\n disabled = input(false, { transform: booleanAttribute });\n /**\n * Turns the whole chip into a selectable toggle (choice/filter chip). The root\n * becomes a native `<button aria-pressed>`; clicking toggles `selected`.\n * Mutually exclusive with `removable` (nesting interactive elements is invalid).\n */\n selectable = input(false, { transform: booleanAttribute });\n /** Two-way selection state (only meaningful when `selectable`). */\n selected = model(false);\n /** FontAwesome name shown in the leading slot while selected (selectable mode). */\n selectedIcon = input<string>('check');\n /** Explicit accessible name (overrides the `label` default). */\n ariaLabel = input<string>();\n /** Id of the element labelling the chip (overrides `ariaLabel`/`label`). */\n ariaLabelledBy = input<string>();\n /** Accessible name of the remove action. */\n removeAriaLabel = input<string>('Supprimer');\n /**\n * `tabindex` of the remove action. Leave unset for the natural tab order;\n * set `-1` when the chip lives inside a roving-focus container (e.g.\n * `ui-input-tags`) so the button is not a separate tab stop.\n */\n removeTabindex = input<number>();\n\n /** Emitted when the chip is removed (click or keyboard on the remove action). */\n remove = output<Event>();\n /** Emitted when a selectable chip is toggled (click or keyboard on the chip). */\n chipClick = output<Event>();\n /** Emitted when the image fails to load (the chip then falls back to icon/label). */\n imageError = output<Event>();\n\n /** @ignore Set once the current image source failed to load. */\n private readonly imageFailed = signal(false);\n\n constructor() {\n // Reset the load-error flag whenever the source changes.\n effect(() => {\n this.image();\n this.imageFailed.set(false);\n });\n\n // A11y safeguard: a chip with only a visual (icon/image) needs an accessible name.\n if (isDevMode()) {\n effect(() => {\n if (this.isVisualOnly() && !this.accessibleName()) {\n console.warn(\n '[ui-chip] Chip has no text: provide `label`, `ariaLabel` or `ariaLabelledBy`.',\n );\n }\n });\n\n // `selectable` and `removable` can't coexist (nested interactive elements).\n effect(() => {\n if (this.selectable() && this.removable()) {\n console.warn(\n '[ui-chip] `selectable` and `removable` are mutually exclusive: the remove action is ignored.',\n );\n }\n });\n }\n }\n\n /** @ignore There is a textual label. */\n protected readonly hasLabel = computed(() => !!this.label()?.length);\n\n /** @ignore The leading image is shown (source set and not failed). */\n protected readonly showImage = computed(() => !!this.image() && !this.imageFailed());\n\n /** @ignore Selectable + selected: the leading slot shows the selected icon. */\n protected readonly showSelectedIcon = computed(\n () => this.selectable() && this.selected() && !!this.selectedIcon(),\n );\n\n /** @ignore The leading image is shown (not overridden by the selected icon). */\n protected readonly showLeadingImage = computed(\n () => !this.showSelectedIcon() && this.showImage(),\n );\n\n /** @ignore The leading font icon is shown (no image / selected icon taking its place). */\n protected readonly showIcon = computed(() => !this.showImage() && !!this.icon());\n\n /** @ignore The leading font icon is shown (not overridden by the selected icon). */\n protected readonly showLeadingIcon = computed(() => !this.showSelectedIcon() && this.showIcon());\n\n /** @ignore The remove action is rendered (never inside a selectable button). */\n protected readonly showRemove = computed(() => this.removable() && !this.selectable());\n\n /** @ignore A visual (icon/image) with no textual label. */\n protected readonly isVisualOnly = computed(\n () => (this.showImage() || this.showIcon()) && !this.hasLabel(),\n );\n\n /** @ignore Resolved accessible name from the explicit label / ariaLabel. */\n protected readonly accessibleName = computed<string | null>(\n () => this.ariaLabel() ?? this.label() ?? null,\n );\n\n /** @ignore Root `aria-label`: explicit name, suppressed when `ariaLabelledBy` wins. */\n protected readonly rootAriaLabel = computed<string | null>(() =>\n this.ariaLabelledBy() ? null : this.accessibleName(),\n );\n\n /** @ignore Leading icon size derived from the chip size. */\n protected readonly iconSize = computed<UiIconSize>(() => (this.size() === 'small' ? 'sm' : 'md'));\n\n /** @ignore Remove icon is compact regardless of chip size. */\n protected readonly removeIconSize: UiIconSize = 'sm';\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-chip', `_${this.level()}`, `_${this.subLevel()}`];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n if (!this.rounded()) c.push('_square');\n if (this.showRemove()) c.push('_removable');\n if (this.disabled()) c.push('_disabled');\n if (this.selectable()) c.push('_selectable');\n if (this.selectable() && this.selected()) c.push('_selected');\n return c.join(' ');\n });\n\n /** @ignore */\n protected onImageError(event: Event): void {\n this.imageFailed.set(true);\n this.imageError.emit(event);\n }\n\n /** @ignore */\n protected onRemove(event: Event): void {\n if (this.disabled()) return;\n this.remove.emit(event);\n }\n\n /** @ignore Backspace/Delete on the remove button also removes (Enter/Space are native). */\n protected onRemoveKeydown(event: KeyboardEvent): void {\n if (event.key === 'Backspace' || event.key === 'Delete') {\n event.preventDefault();\n this.onRemove(event);\n }\n }\n\n /** @ignore Toggle the selection (selectable mode). Enter/Space fire this via native click. */\n protected onToggle(event: Event): void {\n if (this.disabled()) return;\n this.selected.set(!this.selected());\n this.chipClick.emit(event);\n }\n}\n","@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.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","/*\n * Public API Surface of ui-kit/ui-chip\n */\n\nexport * from './lib/ui-chip';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAiBA;;;;;;;;;;;;;;AAcG;MAOU,MAAM,CAAA;AAwDjB,IAAA,WAAA,GAAA;;AAtDA,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAU;;QAEvB,IAAA,CAAA,KAAK,GAAG,KAAK,CAAkB,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EG;;;;"}
1
+ {"version":3,"file":"4sh-ui-kit-informative-ui-chip.mjs","sources":["../../../projects/ui-kit/informative/ui-chip/src/lib/ui-chip.ts","../../../projects/ui-kit/informative/ui-chip/src/lib/ui-chip.html","../../../projects/ui-kit/informative/ui-chip/src/public-api.ts","../../../projects/ui-kit/informative/ui-chip/src/4sh-ui-kit-informative-ui-chip.ts"],"sourcesContent":["import {\n booleanAttribute,\n Component,\n computed,\n effect,\n input,\n isDevMode,\n model,\n output,\n signal,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { UiIcon, UiIconSize } from '@4sh/ui-kit/base/ui-icon';\nimport { UiFeedbackLevel, UiSubLevel } from '@4sh/ui-kit/types';\n\nexport type ChipSize = 'default' | 'small';\n\n/**\n * ui-chip — compact, interactive entity token.\n *\n * A close relative of `ui-tag`, but interactive: it can carry a leading icon or\n * image (avatar-like), an optional remove action, and arbitrary projected content.\n * Typical uses: selected values in a multi-select, filter/entity chips, keyword lists.\n *\n * Categorised by `level` × `subLevel` (informative color families) and fully\n * token-driven. Interactive states (hover/focus on the remove action) are handled in\n * CSS via the same `informative.*` tokens — never through Angular props.\n *\n * Accessible: `label` is exposed as the default `aria-label` (overridable via\n * `ariaLabel` / `ariaLabelledBy`); the remove action is a native `<button>`, focusable\n * with Tab and removable with Enter/Space (native) plus Backspace/Delete.\n */\n@Component({\n selector: 'ui-chip',\n imports: [UiIcon, NgTemplateOutlet],\n templateUrl: './ui-chip.html',\n styleUrl: './ui-chip.scss',\n})\nexport class UiChip {\n /** Text content of the chip. */\n label = input<string>();\n /** Color family. */\n level = input<UiFeedbackLevel>('default');\n /** Intensity: high (solid) or low (subtle). Chips default to the discreet `low`. */\n subLevel = input<UiSubLevel>('low');\n /** Size. */\n size = input<ChipSize>('default');\n /** FontAwesome name of the leading icon (ignored when `image` is set). */\n icon = input<string>();\n /** Leading image source (avatar-like). Takes priority over `icon`. */\n image = input<string>();\n /** Alternative text for the image (leave empty for a decorative image next to a label). */\n alt = input<string>();\n /** Pill shape when true (default); rounded-rectangle when false. */\n rounded = input(true, { transform: booleanAttribute });\n /** Displays a remove action at the end of the chip. */\n removable = input(false, { transform: booleanAttribute });\n /** FontAwesome name of the remove icon. */\n removeIcon = input<string>('xmark');\n /** Disables the chip (the remove action / selection becomes non-interactive). */\n disabled = input(false, { transform: booleanAttribute });\n /**\n * Turns the whole chip into a selectable toggle (choice/filter chip). The root\n * becomes a native `<button aria-pressed>`; clicking toggles `selected`.\n * Mutually exclusive with `removable` (nesting interactive elements is invalid).\n */\n selectable = input(false, { transform: booleanAttribute });\n /** Two-way selection state (only meaningful when `selectable`). */\n selected = model(false);\n /** FontAwesome name shown in the leading slot while selected (selectable mode). */\n selectedIcon = input<string>('check');\n /** Explicit accessible name (overrides the `label` default). */\n ariaLabel = input<string>();\n /** Id of the element labelling the chip (overrides `ariaLabel`/`label`). */\n ariaLabelledBy = input<string>();\n /** Accessible name of the remove action. */\n removeAriaLabel = input<string>('Supprimer');\n /**\n * `tabindex` of the remove action. Leave unset for the natural tab order;\n * set `-1` when the chip lives inside a roving-focus container (e.g.\n * `ui-input-tags`) so the button is not a separate tab stop.\n */\n removeTabindex = input<number>();\n\n /** Emitted when the chip is removed (click or keyboard on the remove action). */\n remove = output<Event>();\n /** Emitted when a selectable chip is toggled (click or keyboard on the chip). */\n chipClick = output<Event>();\n /** Emitted when the image fails to load (the chip then falls back to icon/label). */\n imageError = output<Event>();\n\n /** @ignore Set once the current image source failed to load. */\n private readonly imageFailed = signal(false);\n\n constructor() {\n // Reset the load-error flag whenever the source changes.\n effect(() => {\n this.image();\n this.imageFailed.set(false);\n });\n\n // A11y safeguard: a chip with only a visual (icon/image) needs an accessible name.\n if (isDevMode()) {\n effect(() => {\n if (this.isVisualOnly() && !this.accessibleName()) {\n console.warn(\n '[ui-chip] Chip has no text: provide `label`, `ariaLabel` or `ariaLabelledBy`.',\n );\n }\n });\n\n // `selectable` and `removable` can't coexist (nested interactive elements).\n effect(() => {\n if (this.selectable() && this.removable()) {\n console.warn(\n '[ui-chip] `selectable` and `removable` are mutually exclusive: the remove action is ignored.',\n );\n }\n });\n }\n }\n\n /** @ignore There is a textual label. */\n protected readonly hasLabel = computed(() => !!this.label()?.length);\n\n /** @ignore The leading image is shown (source set and not failed). */\n protected readonly showImage = computed(() => !!this.image() && !this.imageFailed());\n\n /** @ignore Selectable + selected: the leading slot shows the selected icon. */\n protected readonly showSelectedIcon = computed(\n () => this.selectable() && this.selected() && !!this.selectedIcon(),\n );\n\n /** @ignore The leading image is shown (not overridden by the selected icon). */\n protected readonly showLeadingImage = computed(\n () => !this.showSelectedIcon() && this.showImage(),\n );\n\n /** @ignore The leading font icon is shown (no image / selected icon taking its place). */\n protected readonly showIcon = computed(() => !this.showImage() && !!this.icon());\n\n /** @ignore The leading font icon is shown (not overridden by the selected icon). */\n protected readonly showLeadingIcon = computed(() => !this.showSelectedIcon() && this.showIcon());\n\n /** @ignore The remove action is rendered (never inside a selectable button). */\n protected readonly showRemove = computed(() => this.removable() && !this.selectable());\n\n /** @ignore A visual (icon/image) with no textual label. */\n protected readonly isVisualOnly = computed(\n () => (this.showImage() || this.showIcon()) && !this.hasLabel(),\n );\n\n /** @ignore Resolved accessible name from the explicit label / ariaLabel. */\n protected readonly accessibleName = computed<string | null>(\n () => this.ariaLabel() ?? this.label() ?? null,\n );\n\n /** @ignore Root `aria-label`: explicit name, suppressed when `ariaLabelledBy` wins. */\n protected readonly rootAriaLabel = computed<string | null>(() =>\n this.ariaLabelledBy() ? null : this.accessibleName(),\n );\n\n /** @ignore Leading icon size derived from the chip size. */\n protected readonly iconSize = computed<UiIconSize>(() => (this.size() === 'small' ? 'sm' : 'md'));\n\n /** @ignore Remove icon is compact regardless of chip size. */\n protected readonly removeIconSize: UiIconSize = 'sm';\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-chip', `_${this.level()}`, `_${this.subLevel()}`];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n if (!this.rounded()) c.push('_square');\n if (this.showRemove()) c.push('_removable');\n if (this.disabled()) c.push('_disabled');\n if (this.selectable()) c.push('_selectable');\n if (this.selectable() && this.selected()) c.push('_selected');\n return c.join(' ');\n });\n\n /** @ignore */\n protected onImageError(event: Event): void {\n this.imageFailed.set(true);\n this.imageError.emit(event);\n }\n\n /** @ignore */\n protected onRemove(event: Event): void {\n if (this.disabled()) return;\n this.remove.emit(event);\n }\n\n /** @ignore Backspace/Delete on the remove button also removes (Enter/Space are native). */\n protected onRemoveKeydown(event: KeyboardEvent): void {\n if (event.key === 'Backspace' || event.key === 'Delete') {\n event.preventDefault();\n this.onRemove(event);\n }\n }\n\n /** @ignore Toggle the selection (selectable mode). Enter/Space fire this via native click. */\n protected onToggle(event: Event): void {\n if (this.disabled()) return;\n this.selected.set(!this.selected());\n this.chipClick.emit(event);\n }\n}\n","@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","/*\n * Public API Surface of ui-kit/ui-chip\n */\n\nexport * from './lib/ui-chip';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAiBA;;;;;;;;;;;;;;AAcG;MAOU,MAAM,CAAA;AAwDjB,IAAA,WAAA,GAAA;;AAtDA,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAU;;QAEvB,IAAA,CAAA,KAAK,GAAG,KAAK,CAAkB,SAAS;kFAAC;;QAEzC,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAa,KAAK;qFAAC;;QAEnC,IAAA,CAAA,IAAI,GAAG,KAAK,CAAW,SAAS;iFAAC;;AAEjC,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK;4FAAU;;AAEtB,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAU;;AAEvB,QAAA,IAAA,CAAA,GAAG,GAAG,KAAK;2FAAU;;QAErB,IAAA,CAAA,OAAO,GAAG,KAAK,CAAC,IAAI,+EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;QAEtD,IAAA,CAAA,SAAS,GAAG,KAAK,CAAC,KAAK,iFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;QAEzD,IAAA,CAAA,UAAU,GAAG,KAAK,CAAS,OAAO;uFAAC;;QAEnC,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EA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AAA,gBAAA,EAAA,MAAA,EAAA,QAAA,EAAA,SAAA,EAAA,WAAA,EAAA,UAAA,EAAA,YAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECtCnB,8oDA0DA,EAAA,MAAA,EAAA,CAAA,85aAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDxBY,MAAM,2HAAE,gBAAgB,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,kBAAA,EAAA,0BAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAIvB,MAAM,EAAA,UAAA,EAAA,CAAA;kBANlB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,SAAS,EAAA,OAAA,EACV,CAAC,MAAM,EAAE,gBAAgB,CAAC,EAAA,QAAA,EAAA,8oDAAA,EAAA,MAAA,EAAA,CAAA,85aAAA,CAAA,EAAA;;;AElCrC;;AAEG;;ACFH;;AAEG;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"4sh-ui-kit-informative-ui-empty-state.mjs","sources":["../../../projects/ui-kit/informative/ui-empty-state/src/lib/ui-empty-state.ts","../../../projects/ui-kit/informative/ui-empty-state/src/lib/ui-empty-state.html","../../../projects/ui-kit/informative/ui-empty-state/src/public-api.ts","../../../projects/ui-kit/informative/ui-empty-state/src/4sh-ui-kit-informative-ui-empty-state.ts"],"sourcesContent":["import {\n afterNextRender,\n booleanAttribute,\n Component,\n computed,\n contentChild,\n Directive,\n ElementRef,\n input,\n signal,\n viewChild,\n} from '@angular/core';\nimport { UiIcon, UiIconType } from '@4sh/ui-kit/base/ui-icon';\n\nexport type EmptyStateSize = 'default' | 'small';\n\n/**\n * Slot markers — apply them (attribute or element form) on the content you project\n * into a `<ui-empty-state>` to route it to the matching region. They carry no\n * behaviour; the component queries their presence to render the surrounding structure.\n *\n * <ui-empty-state title=\"Aucun résultat\" description=\"Essayez d'élargir vos filtres.\">\n * <img uiEmptyStateMedia src=\"/illustrations/empty.svg\" alt=\"\" />\n * <div uiEmptyStateActions>\n * <ui-button label=\"Réinitialiser les filtres\" level=\"low\" />\n * </div>\n * </ui-empty-state>\n */\n\n/** Visual region (illustration, image, custom SVG…). Overrides the `icon` shortcut. */\n@Directive({ selector: '[uiEmptyStateMedia], ui-empty-state-media' })\nexport class UiEmptyStateMedia {}\n\n/** Actions region (buttons, links…), rendered below the text. */\n@Directive({ selector: '[uiEmptyStateActions], ui-empty-state-actions' })\nexport class UiEmptyStateActions {}\n\n/**\n * ui-empty-state — communicates the absence of content (empty list, no search\n * result, cleared inbox…) and offers a way forward.\n *\n * Headless: a centered vertical stack composing an optional visual (illustration\n * slot or `icon` shortcut), a title, a description, an optional free body slot and\n * an actions slot. Every region renders only when it holds content, so no empty\n * wrapper (and no phantom gap) is emitted. All values come from design tokens.\n *\n * The most common case needs no imports — pass `title`/`description`/`icon` and drop\n * actions into the default flow via the `uiEmptyStateActions` marker.\n */\n@Component({\n selector: 'ui-empty-state',\n imports: [UiIcon],\n templateUrl: './ui-empty-state.html',\n styleUrl: './ui-empty-state.scss',\n})\nexport class UiEmptyState {\n /** Main line — what is empty / why (recommended). */\n title = input<string>();\n /** Supporting line under the title (guidance, next step). */\n description = input<string>();\n /** FontAwesome icon name — shortcut for the visual (ignored if a media slot is projected). */\n icon = input<string>();\n /** Icon variant, forwarded to `ui-icon`. */\n iconType = input<UiIconType>('solid');\n /** Density. */\n size = input<EmptyStateSize>('default');\n /**\n * Whether the visual region is shown. `true` by default; set `false` to keep a\n * text-only empty state without removing the projected media / `icon` from markup.\n */\n showMedia = input(true, { transform: booleanAttribute });\n /** Accessible name for the region landmark (adds `role=\"region\"`). */\n ariaLabel = input<string>();\n /** Id of the element labelling the region landmark (adds `role=\"region\"`). */\n ariaLabelledBy = input<string>();\n\n /** @ignore */\n protected readonly mediaSlot = contentChild(UiEmptyStateMedia);\n /** @ignore */\n protected readonly actionsSlot = contentChild(UiEmptyStateActions);\n\n /** @ignore */\n private readonly bodyWrap = viewChild<ElementRef<HTMLElement>>('bodyWrap');\n /** @ignore Default (body) content actually projected (detected after rendering). */\n private readonly hasProjectedBody = signal(false);\n\n constructor() {\n // Detect projected default content (<ng-content>) — SSR-safe (browser only).\n afterNextRender(() => {\n const el = this.bodyWrap()?.nativeElement;\n const has =\n !!el &&\n Array.from(el.childNodes).some(\n (n) =>\n n.nodeType === Node.ELEMENT_NODE ||\n (n.nodeType === Node.TEXT_NODE && !!n.textContent?.trim()),\n );\n this.hasProjectedBody.set(has);\n });\n }\n\n /** @ignore An icon shortcut is provided. */\n protected readonly hasIcon = computed(() => !!this.icon());\n /** @ignore A media slot is projected. */\n protected readonly hasMedia = computed(() => !!this.mediaSlot());\n /** @ignore The visual region is shown and has something to render. */\n protected readonly showVisual = computed(\n () => this.showMedia() && (this.hasMedia() || this.hasIcon()),\n );\n\n /** @ignore */\n protected readonly hasTitle = computed(() => !!this.title());\n /** @ignore */\n protected readonly hasDescription = computed(() => !!this.description());\n /** @ignore Free body content projected between the description and the actions. */\n protected readonly hasBody = computed(() => this.hasProjectedBody());\n /** @ignore The text region (title / description / body) has content. */\n protected readonly hasText = computed(\n () => this.hasTitle() || this.hasDescription() || this.hasBody(),\n );\n\n /** @ignore An actions slot is projected. */\n protected readonly hasActions = computed(() => !!this.actionsSlot());\n\n /** @ignore Landmark role only when the region carries an accessible name. */\n protected readonly role = computed(() =>\n this.ariaLabel() || this.ariaLabelledBy() ? 'region' : null,\n );\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-empty-state'];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n return c.join(' ');\n });\n}\n","<div\n [class]=\"classes()\"\n [attr.role]=\"role()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n>\n @if (showVisual()) {\n <div class=\"ui-empty-state-media\">\n @if (hasMedia()) {\n <ng-content select=\"[uiEmptyStateMedia], ui-empty-state-media\" />\n } @else {\n <ui-icon [name]=\"icon()!\" [type]=\"iconType()\" size=\"xl\" />\n }\n </div>\n }\n\n <!-- Always mounted so the default slot can be detected; hidden when the whole\n text region is empty (no title, no description, no projected body). -->\n <div class=\"ui-empty-state-text\" [class._empty]=\"!hasText()\">\n @if (hasTitle()) {\n <p class=\"ui-empty-state-title\">{{ title() }}</p>\n }\n @if (hasDescription()) {\n <p class=\"ui-empty-state-description\">{{ description() }}</p>\n }\n <div class=\"ui-empty-state-body\" #bodyWrap [class._empty]=\"!hasBody()\">\n <ng-content />\n </div>\n </div>\n\n @if (hasActions()) {\n <div class=\"ui-empty-state-actions\">\n <ng-content select=\"[uiEmptyStateActions], ui-empty-state-actions\" />\n </div>\n }\n</div>\n","/*\n * Public API Surface of ui-kit/ui-empty-state\n */\n\nexport * from './lib/ui-empty-state';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAgBA;;;;;;;;;;;AAWG;AAEH;MAEa,iBAAiB,CAAA;8GAAjB,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAjB,iBAAiB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,2CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAD7B,SAAS;mBAAC,EAAE,QAAQ,EAAE,2CAA2C,EAAE;;AAGpE;MAEa,mBAAmB,CAAA;8GAAnB,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAnB,mBAAmB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,+CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAn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AAA,CAAA,EAAA;w3BA0B2B,iBAAiB,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,WAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAEf,mBAAmB,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAGF,UAAU,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AElF3E;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"4sh-ui-kit-informative-ui-empty-state.mjs","sources":["../../../projects/ui-kit/informative/ui-empty-state/src/lib/ui-empty-state.ts","../../../projects/ui-kit/informative/ui-empty-state/src/lib/ui-empty-state.html","../../../projects/ui-kit/informative/ui-empty-state/src/public-api.ts","../../../projects/ui-kit/informative/ui-empty-state/src/4sh-ui-kit-informative-ui-empty-state.ts"],"sourcesContent":["import {\n afterNextRender,\n booleanAttribute,\n Component,\n computed,\n contentChild,\n Directive,\n ElementRef,\n input,\n signal,\n viewChild,\n} from '@angular/core';\nimport { UiIcon, UiIconType } from '@4sh/ui-kit/base/ui-icon';\n\nexport type EmptyStateSize = 'default' | 'small';\n\n/**\n * Slot markers — apply them (attribute or element form) on the content you project\n * into a `<ui-empty-state>` to route it to the matching region. They carry no\n * behaviour; the component queries their presence to render the surrounding structure.\n *\n * <ui-empty-state title=\"Aucun résultat\" description=\"Essayez d'élargir vos filtres.\">\n * <img uiEmptyStateMedia src=\"/illustrations/empty.svg\" alt=\"\" />\n * <div uiEmptyStateActions>\n * <ui-button label=\"Réinitialiser les filtres\" level=\"low\" />\n * </div>\n * </ui-empty-state>\n */\n\n/** Visual region (illustration, image, custom SVG…). Overrides the `icon` shortcut. */\n@Directive({ selector: '[uiEmptyStateMedia], ui-empty-state-media' })\nexport class UiEmptyStateMedia {}\n\n/** Actions region (buttons, links…), rendered below the text. */\n@Directive({ selector: '[uiEmptyStateActions], ui-empty-state-actions' })\nexport class UiEmptyStateActions {}\n\n/**\n * ui-empty-state — communicates the absence of content (empty list, no search\n * result, cleared inbox…) and offers a way forward.\n *\n * Headless: a centered vertical stack composing an optional visual (illustration\n * slot or `icon` shortcut), a title, a description, an optional free body slot and\n * an actions slot. Every region renders only when it holds content, so no empty\n * wrapper (and no phantom gap) is emitted. All values come from design tokens.\n *\n * The most common case needs no imports — pass `title`/`description`/`icon` and drop\n * actions into the default flow via the `uiEmptyStateActions` marker.\n */\n@Component({\n selector: 'ui-empty-state',\n imports: [UiIcon],\n templateUrl: './ui-empty-state.html',\n styleUrl: './ui-empty-state.scss',\n})\nexport class UiEmptyState {\n /** Main line — what is empty / why (recommended). */\n title = input<string>();\n /** Supporting line under the title (guidance, next step). */\n description = input<string>();\n /** FontAwesome icon name — shortcut for the visual (ignored if a media slot is projected). */\n icon = input<string>();\n /** Icon variant, forwarded to `ui-icon`. */\n iconType = input<UiIconType>('solid');\n /** Density. */\n size = input<EmptyStateSize>('default');\n /**\n * Whether the visual region is shown. `true` by default; set `false` to keep a\n * text-only empty state without removing the projected media / `icon` from markup.\n */\n showMedia = input(true, { transform: booleanAttribute });\n /** Accessible name for the region landmark (adds `role=\"region\"`). */\n ariaLabel = input<string>();\n /** Id of the element labelling the region landmark (adds `role=\"region\"`). */\n ariaLabelledBy = input<string>();\n\n /** @ignore */\n protected readonly mediaSlot = contentChild(UiEmptyStateMedia);\n /** @ignore */\n protected readonly actionsSlot = contentChild(UiEmptyStateActions);\n\n /** @ignore */\n private readonly bodyWrap = viewChild<ElementRef<HTMLElement>>('bodyWrap');\n /** @ignore Default (body) content actually projected (detected after rendering). */\n private readonly hasProjectedBody = signal(false);\n\n constructor() {\n // Detect projected default content (<ng-content>) — SSR-safe (browser only).\n afterNextRender(() => {\n const el = this.bodyWrap()?.nativeElement;\n const has =\n !!el &&\n Array.from(el.childNodes).some(\n (n) =>\n n.nodeType === Node.ELEMENT_NODE ||\n (n.nodeType === Node.TEXT_NODE && !!n.textContent?.trim()),\n );\n this.hasProjectedBody.set(has);\n });\n }\n\n /** @ignore An icon shortcut is provided. */\n protected readonly hasIcon = computed(() => !!this.icon());\n /** @ignore A media slot is projected. */\n protected readonly hasMedia = computed(() => !!this.mediaSlot());\n /** @ignore The visual region is shown and has something to render. */\n protected readonly showVisual = computed(\n () => this.showMedia() && (this.hasMedia() || this.hasIcon()),\n );\n\n /** @ignore */\n protected readonly hasTitle = computed(() => !!this.title());\n /** @ignore */\n protected readonly hasDescription = computed(() => !!this.description());\n /** @ignore Free body content projected between the description and the actions. */\n protected readonly hasBody = computed(() => this.hasProjectedBody());\n /** @ignore The text region (title / description / body) has content. */\n protected readonly hasText = computed(\n () => this.hasTitle() || this.hasDescription() || this.hasBody(),\n );\n\n /** @ignore An actions slot is projected. */\n protected readonly hasActions = computed(() => !!this.actionsSlot());\n\n /** @ignore Landmark role only when the region carries an accessible name. */\n protected readonly role = computed(() =>\n this.ariaLabel() || this.ariaLabelledBy() ? 'region' : null,\n );\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-empty-state'];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n return c.join(' ');\n });\n}\n","<div\n [class]=\"classes()\"\n [attr.role]=\"role()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n>\n @if (showVisual()) {\n <div class=\"ui-empty-state-media\">\n @if (hasMedia()) {\n <ng-content select=\"[uiEmptyStateMedia], ui-empty-state-media\" />\n } @else {\n <ui-icon [name]=\"icon()!\" [type]=\"iconType()\" size=\"xl\" />\n }\n </div>\n }\n\n <!-- Always mounted so the default slot can be detected; hidden when the whole\n text region is empty (no title, no description, no projected body). -->\n <div class=\"ui-empty-state-text\" [class._empty]=\"!hasText()\">\n @if (hasTitle()) {\n <p class=\"ui-empty-state-title\">{{ title() }}</p>\n }\n @if (hasDescription()) {\n <p class=\"ui-empty-state-description\">{{ description() }}</p>\n }\n <div class=\"ui-empty-state-body\" #bodyWrap [class._empty]=\"!hasBody()\">\n <ng-content />\n </div>\n </div>\n\n @if (hasActions()) {\n <div class=\"ui-empty-state-actions\">\n <ng-content select=\"[uiEmptyStateActions], ui-empty-state-actions\" />\n </div>\n }\n</div>\n","/*\n * Public API Surface of ui-kit/ui-empty-state\n */\n\nexport * from './lib/ui-empty-state';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAgBA;;;;;;;;;;;AAWG;AAEH;MAEa,iBAAiB,CAAA;8GAAjB,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAjB,iBAAiB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,2CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAD7B,SAAS;mBAAC,EAAE,QAAQ,EAAE,2CAA2C,EAAE;;AAGpE;MAEa,mBAAmB,CAAA;8GAAnB,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAnB,mBAAmB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,+CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAnB,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAD/B,SAAS;mBAAC,EAAE,QAAQ,EAAE,+CAA+C,EAAE;;AAGxE;;;;;;;;;;;AAWG;MAOU,YAAY,CAAA;AA+BvB,IAAA,WAAA,GAAA;;AA7BA,QAAA,IAAA,CAA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,CAAA,UAAA,CAAA,MAEf,mBAAmB,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAGF,UAAU,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AElF3E;;AAEG;;ACFH;;AAEG;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"4sh-ui-kit-informative-ui-helper.mjs","sources":["../../../projects/ui-kit/informative/ui-helper/src/lib/ui-helper.ts","../../../projects/ui-kit/informative/ui-helper/src/lib/ui-helper.html","../../../projects/ui-kit/informative/ui-helper/src/public-api.ts","../../../projects/ui-kit/informative/ui-helper/src/4sh-ui-kit-informative-ui-helper.ts"],"sourcesContent":["import { booleanAttribute, Component, computed, input } from '@angular/core';\nimport { UiIcon } from '@4sh/ui-kit/base/ui-icon';\nimport { UiFeedbackLevel } from '@4sh/ui-kit/types';\n\nexport type HelperSize = 'default' | 'small';\nexport type HelperAriaLive = 'off' | 'polite' | 'assertive';\n\n/** Default FontAwesome icon associated with each level. */\nconst LEVEL_ICONS: Record<UiFeedbackLevel, string> = {\n default: 'question-circle',\n highlight: 'info-circle',\n success: 'check-circle',\n warning: 'exclamation-circle',\n error: 'times-circle',\n};\n\n/**\n * ui-helper — contextual help/feedback text.\n *\n * Displays a message preceded by an icon whose meaning depends on the `level`\n * (question, info, success, alert, error). Used below a form field\n * (linked via `aria-describedby` on the input) or as a standalone hint.\n *\n * A11y: The text message conveys the information; the icon is decorative\n * (`aria-hidden`). For feedback that appears or changes dynamically (field validation\n *), set `ariaLive=“polite”` (or `“assertive”` for an error) so\n * that screen readers announce the change.\n */\n\n@Component({\n selector: 'ui-helper',\n imports: [UiIcon],\n templateUrl: './ui-helper.html',\n styleUrl: './ui-helper.scss',\n})\nexport class UiHelper {\n /** Help message displayed. */\n message = input.required<string>();\n /** Feedback level (controls the default color and icon). */\n level = input<UiFeedbackLevel>('default');\n /** Text and icon size. */\n size = input<HelperSize>('default');\n /** Displays the level icon. */\n showIcon = input(true, { transform: booleanAttribute });\n /** Overrides the icon name derived from `level`. */\n icon = input<string>();\n /** Live region for dynamic feedback (default: `off`). */\n ariaLive = input<HelperAriaLive>('off');\n\n /** @ignore Actual icon: explicit overlay, otherwise the icon for that level. */\n protected readonly resolvedIcon = computed(() => this.icon() ?? LEVEL_ICONS[this.level()]);\n\n /** @ignore An icon is displayed. */\n protected readonly hasIcon = computed(() => this.showIcon() && !!this.resolvedIcon());\n\n /** @ignore Icon size aligned with text size. */\n protected readonly iconSize = computed(() => (this.size() === 'small' ? 'sm' : 'default'));\n\n /** @ignore native aria-live (null when `off` to avoid polluting the DOM). */\n protected readonly liveRegion = computed(() => {\n const live = this.ariaLive();\n return live === 'off' ? null : live;\n });\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-helper', `_${this.level()}`];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n return c.join(' ');\n });\n}\n","<div [class]=\"classes()\" [attr.aria-live]=\"liveRegion()\">\n @if (hasIcon()) {\n <ui-icon class=\"ui-helper-icon\" [name]=\"resolvedIcon()!\" [size]=\"iconSize()\" />\n }\n <span class=\"ui-helper-message\">{{ message() }}</span>\n</div>\n","/*\n * Public API Surface of ui-kit/ui-helper\n */\n\nexport * from './lib/ui-helper';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAOA;AACA,MAAM,WAAW,GAAoC;AACnD,IAAA,OAAO,EAAE,iBAAiB;AAC1B,IAAA,SAAS,EAAE,aAAa;AACxB,IAAA,OAAO,EAAE,cAAc;AACvB,IAAA,OAAO,EAAE,oBAAoB;AAC7B,IAAA,KAAK,EAAE,cAAc;CACtB;AAED;;;;;;;;;;;AAWG;MAQU,QAAQ,CAAA;AANrB,IAAA,WAAA,GAAA;;QAQE,IAAA,CAA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A,EAAA,MAAA,EAAA,CAAA,4vBAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDyBY,MAAM,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,QAAA,EAAA,YAAA,EAAA,WAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAIL,QAAQ,EAAA,UAAA,EAAA,CAAA;kBANpB,SAAS;+BACE,WAAW,EAAA,OAAA,EACZ,CAAC,MAAM,CAAC,EAAA,QAAA,EAAA,0PAAA,EAAA,MAAA,EAAA,CAAA,4vBAAA,CAAA,EAAA;;;AE/BnB;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"4sh-ui-kit-informative-ui-helper.mjs","sources":["../../../projects/ui-kit/informative/ui-helper/src/lib/ui-helper.ts","../../../projects/ui-kit/informative/ui-helper/src/lib/ui-helper.html","../../../projects/ui-kit/informative/ui-helper/src/public-api.ts","../../../projects/ui-kit/informative/ui-helper/src/4sh-ui-kit-informative-ui-helper.ts"],"sourcesContent":["import { booleanAttribute, Component, computed, input } from '@angular/core';\nimport { UiIcon } from '@4sh/ui-kit/base/ui-icon';\nimport { UiFeedbackLevel } from '@4sh/ui-kit/types';\n\nexport type HelperSize = 'default' | 'small';\nexport type HelperAriaLive = 'off' | 'polite' | 'assertive';\n\n/** Default FontAwesome icon associated with each level. */\nconst LEVEL_ICONS: Record<UiFeedbackLevel, string> = {\n default: 'question-circle',\n highlight: 'info-circle',\n success: 'check-circle',\n warning: 'exclamation-circle',\n error: 'times-circle',\n};\n\n/**\n * ui-helper — contextual help/feedback text.\n *\n * Displays a message preceded by an icon whose meaning depends on the `level`\n * (question, info, success, alert, error). Used below a form field\n * (linked via `aria-describedby` on the input) or as a standalone hint.\n *\n * A11y: The text message conveys the information; the icon is decorative\n * (`aria-hidden`). For feedback that appears or changes dynamically (field validation\n *), set `ariaLive=“polite”` (or `“assertive”` for an error) so\n * that screen readers announce the change.\n */\n\n@Component({\n selector: 'ui-helper',\n imports: [UiIcon],\n templateUrl: './ui-helper.html',\n styleUrl: './ui-helper.scss',\n})\nexport class UiHelper {\n /** Help message displayed. */\n message = input.required<string>();\n /** Feedback level (controls the default color and icon). */\n level = input<UiFeedbackLevel>('default');\n /** Text and icon size. */\n size = input<HelperSize>('default');\n /** Displays the level icon. */\n showIcon = input(true, { transform: booleanAttribute });\n /** Overrides the icon name derived from `level`. */\n icon = input<string>();\n /** Live region for dynamic feedback (default: `off`). */\n ariaLive = input<HelperAriaLive>('off');\n\n /** @ignore Actual icon: explicit overlay, otherwise the icon for that level. */\n protected readonly resolvedIcon = computed(() => this.icon() ?? LEVEL_ICONS[this.level()]);\n\n /** @ignore An icon is displayed. */\n protected readonly hasIcon = computed(() => this.showIcon() && !!this.resolvedIcon());\n\n /** @ignore Icon size aligned with text size. */\n protected readonly iconSize = computed(() => (this.size() === 'small' ? 'sm' : 'default'));\n\n /** @ignore native aria-live (null when `off` to avoid polluting the DOM). */\n protected readonly liveRegion = computed(() => {\n const live = this.ariaLive();\n return live === 'off' ? null : live;\n });\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-helper', `_${this.level()}`];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n return c.join(' ');\n });\n}\n","<div [class]=\"classes()\" [attr.aria-live]=\"liveRegion()\">\n @if (hasIcon()) {\n <ui-icon class=\"ui-helper-icon\" [name]=\"resolvedIcon()!\" [size]=\"iconSize()\" />\n }\n <span class=\"ui-helper-message\">{{ message() }}</span>\n</div>\n","/*\n * Public API Surface of ui-kit/ui-helper\n */\n\nexport * from './lib/ui-helper';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAOA;AACA,MAAM,WAAW,GAAoC;AACnD,IAAA,OAAO,EAAE,iBAAiB;AAC1B,IAAA,SAAS,EAAE,aAAa;AACxB,IAAA,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EAAA,UAAA,EAAA,UAAA,EAAA,UAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECnCrB,0PAMA,EAAA,MAAA,EAAA,CAAA,4vBAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDyBY,MAAM,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,QAAA,EAAA,YAAA,EAAA,WAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAIL,QAAQ,EAAA,UAAA,EAAA,CAAA;kBANpB,SAAS;+BACE,WAAW,EAAA,OAAA,EACZ,CAAC,MAAM,CAAC,EAAA,QAAA,EAAA,0PAAA,EAAA,MAAA,EAAA,CAAA,4vBAAA,CAAA,EAAA;;;AE/BnB;;AAEG;;ACFH;;AAEG;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"4sh-ui-kit-informative-ui-progress-bar.mjs","sources":["../../../projects/ui-kit/informative/ui-progress-bar/src/lib/ui-progress-bar.ts","../../../projects/ui-kit/informative/ui-progress-bar/src/lib/ui-progress-bar.html","../../../projects/ui-kit/informative/ui-progress-bar/src/public-api.ts","../../../projects/ui-kit/informative/ui-progress-bar/src/4sh-ui-kit-informative-ui-progress-bar.ts"],"sourcesContent":["import {\n booleanAttribute,\n Component,\n computed,\n input,\n numberAttribute,\n TemplateRef,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\n\nexport type UiProgressBarSize = 'default' | 'small';\nexport type UiProgressBarMode = 'determinate' | 'indeterminate';\nexport type UiProgressBarValuePosition = 'right' | 'bottom' | 'inside';\n\n/** Context passed to a custom value template. */\nexport interface UiProgressBarValueContext {\n $implicit: number;\n}\n\n/**\n * ui-progress-bar — process status indicator (headless).\n *\n * Renders a token-coloured track filled to `value`% (`determinate`), a looping\n * animation with no tracked value (`indeterminate`), or a set of discrete\n * segments when `steps` is provided. The completion value can be shown next to\n * (`right`) or below (`bottom`) the bar, formatted freely through a custom\n * `valueTemplate`. The fill colour is overridable per instance via `color`\n * (or the `--ui-progress-bar-color` CSS hook).\n *\n * Accessible: the track carries `role=\"progressbar\"` with `aria-valuemin`,\n * `aria-valuemax` and (when determinate) `aria-valuenow`; name it with\n * `ariaLabel` / `ariaLabelledBy`. Motion honours the OS reduced-motion\n * preference and the kit-wide `data-motion=\"off\"` switch.\n */\n@Component({\n selector: 'ui-progress-bar',\n imports: [NgTemplateOutlet],\n templateUrl: './ui-progress-bar.html',\n styleUrl: './ui-progress-bar.scss',\n})\nexport class UiProgressBar {\n /** Current progress, 0–100 (clamped). Ignored when `mode=\"indeterminate\"`. */\n value = input(0, { transform: numberAttribute });\n /** `determinate` tracks a value; `indeterminate` loops with no value. */\n mode = input<UiProgressBarMode>('determinate');\n /** Show the completion value beside/below the bar (determinate, non-steps). */\n showValue = input(true, { transform: booleanAttribute });\n /** Unit appended to the numeric value (e.g. \"%\"). */\n unit = input('%');\n /** Size preset. */\n size = input<UiProgressBarSize>('default');\n /**\n * Where the value label sits: beside (`right`), below (`bottom`), or centered\n * within the filled portion of the bar itself (`inside`).\n */\n valuePosition = input<UiProgressBarValuePosition>('right');\n /**\n * When > 0, render the bar as this many discrete segments; the number of\n * filled segments is derived from `value`. Hides the numeric label.\n */\n steps = input(0, { transform: numberAttribute });\n /** Fill colour override (any CSS colour). Sets `--ui-progress-bar-color`. */\n color = input<string>();\n /** Custom label content; context `{ $implicit: value }`. */\n valueTemplate = input<TemplateRef<UiProgressBarValueContext>>();\n /** Accessible name of the progress bar. */\n ariaLabel = input<string>();\n /** Id of the element labelling the progress bar. */\n ariaLabelledBy = input<string>();\n\n /** @ignore Value clamped to the 0–100 range. */\n protected readonly clampedValue = computed(() => {\n const v = this.value() ?? 0;\n return Math.min(100, Math.max(0, v));\n });\n\n /** @ignore */\n protected readonly isIndeterminate = computed(() => this.mode() === 'indeterminate');\n\n /** @ignore Whole number of segments requested (0 = continuous bar). */\n protected readonly stepCount = computed(() => Math.max(0, Math.floor(this.steps() ?? 0)));\n\n /** @ignore Steps mode is active. */\n protected readonly isSteps = computed(() => this.stepCount() > 0);\n\n /** @ignore Number of filled segments, derived from the value. */\n protected readonly filledSteps = computed(() =>\n Math.round((this.clampedValue() / 100) * this.stepCount()),\n );\n\n /** @ignore One boolean (active?) per segment. */\n protected readonly segments = computed(() => {\n const filled = this.filledSteps();\n return Array.from({ length: this.stepCount() }, (_, i) => i < filled);\n });\n\n /** @ignore The numeric label is rendered (not indeterminate, not steps). */\n protected readonly showLabel = computed(\n () => this.showValue() && !this.isIndeterminate() && !this.isSteps(),\n );\n\n /** @ignore Label sits inside the filled portion of the bar. */\n protected readonly labelInside = computed(\n () => this.showLabel() && this.valuePosition() === 'inside',\n );\n\n /** @ignore `aria-valuenow`: the value when tracked, otherwise omitted. */\n protected readonly ariaValueNow = computed(() =>\n this.isIndeterminate() ? null : this.clampedValue(),\n );\n\n /** @ignore Human-readable value for steps (\"3 / 5\"); omitted otherwise. */\n protected readonly ariaValueText = computed(() =>\n this.isSteps() ? `${this.filledSteps()} / ${this.stepCount()}` : null,\n );\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-progress-bar', `_${this.valuePosition()}`];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n if (this.isIndeterminate()) c.push('_indeterminate');\n if (this.isSteps()) c.push('_steps');\n return c.join(' ');\n });\n}\n","<div [class]=\"classes()\" [style.--ui-progress-bar-color]=\"color() ?? null\">\n <div\n class=\"ui-progress-bar-track\"\n role=\"progressbar\"\n [attr.aria-valuemin]=\"0\"\n [attr.aria-valuemax]=\"100\"\n [attr.aria-valuenow]=\"ariaValueNow()\"\n [attr.aria-valuetext]=\"ariaValueText()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n >\n @if (isSteps()) {\n @for (active of segments(); track $index) {\n <span class=\"ui-progress-bar-segment\" [class._active]=\"active\"></span>\n }\n } @else if (isIndeterminate()) {\n <div class=\"ui-progress-bar-value _indeterminate\"></div>\n } @else {\n <div class=\"ui-progress-bar-value\" [style.width.%]=\"clampedValue()\">\n @if (labelInside()) {\n <span class=\"ui-progress-bar-value-label\">\n <ng-container [ngTemplateOutlet]=\"labelTpl\" />\n </span>\n }\n </div>\n }\n </div>\n\n @if (showLabel() && !labelInside()) {\n <div class=\"ui-progress-bar-label\">\n <ng-container [ngTemplateOutlet]=\"labelTpl\" />\n </div>\n }\n</div>\n\n<ng-template #labelTpl>\n @if (valueTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: clampedValue() }\"\n />\n } @else {\n {{ clampedValue() }}{{ unit() }}\n }\n</ng-template>\n","/*\n * Public API Surface of ui-kit/ui-progress-bar\n */\n\nexport * from './lib/ui-progress-bar';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAmBA;;;;;;;;;;;;;;AAcG;MAOU,aAAa,CAAA;AAN1B,IAAA,WAAA,GAAA;;QAQE,IAAA,CAAA,KAAK,GAAG,KAAK,CAAC,CAAC,6EAAI,SAAS,EAAE,eAAe,EAAA,CAAG;;QAEhD,IAAA,CAAA,IAAI,GAAG,KAAK,CAAoB,aAAa;iFAAC;;QAE9C,IAAA,CAAA,SAAS,GAAG,KAAK,CAAC,IAAI,iFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;QAExD,IAAA,CAAA,IAAI,GAAG,KAAK,CAAC,GAAG;iFAAC;;QAEjB,IAAA,CAAA,IAAI,GAAG,KAAK,CAAoB,SAAS;iFAAC;AAC1C;;;AAGG;QACH,IAAA,CAAA,aAAa,GAAG,KAAK,CAA6B,OAAO;0FAAC;AAC1D;;;AAGG;QACH,IAAA,CAAA,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A,IAAA,EAAA,EAAA,KAAA,EAAA,EAAA,iBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,aAAA,EAAA,EAAA,iBAAA,EAAA,eAAA,EAAA,UAAA,EAAA,eAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,UAAA,EAAA,WAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,cAAA,EAAA,EAAA,iBAAA,EAAA,gBAAA,EAAA,UAAA,EAAA,gBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECxC1B,k5CA6CA,EAAA,MAAA,EAAA,CAAA,oxFAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDTY,gBAAgB,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,kBAAA,EAAA,0BAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAIf,aAAa,EAAA,UAAA,EAAA,CAAA;kBANzB,SAAS;+BACE,iBAAiB,EAAA,OAAA,EAClB,CAAC,gBAAgB,CAAC,EAAA,QAAA,EAAA,k5CAAA,EAAA,MAAA,EAAA,CAAA,oxFAAA,CAAA,EAAA;;;AEpC7B;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"4sh-ui-kit-informative-ui-progress-bar.mjs","sources":["../../../projects/ui-kit/informative/ui-progress-bar/src/lib/ui-progress-bar.ts","../../../projects/ui-kit/informative/ui-progress-bar/src/lib/ui-progress-bar.html","../../../projects/ui-kit/informative/ui-progress-bar/src/public-api.ts","../../../projects/ui-kit/informative/ui-progress-bar/src/4sh-ui-kit-informative-ui-progress-bar.ts"],"sourcesContent":["import {\n booleanAttribute,\n Component,\n computed,\n input,\n numberAttribute,\n TemplateRef,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\n\nexport type UiProgressBarSize = 'default' | 'small';\nexport type UiProgressBarMode = 'determinate' | 'indeterminate';\nexport type UiProgressBarValuePosition = 'right' | 'bottom' | 'inside';\n\n/** Context passed to a custom value template. */\nexport interface UiProgressBarValueContext {\n $implicit: number;\n}\n\n/**\n * ui-progress-bar — process status indicator (headless).\n *\n * Renders a token-coloured track filled to `value`% (`determinate`), a looping\n * animation with no tracked value (`indeterminate`), or a set of discrete\n * segments when `steps` is provided. The completion value can be shown next to\n * (`right`) or below (`bottom`) the bar, formatted freely through a custom\n * `valueTemplate`. The fill colour is overridable per instance via `color`\n * (or the `--ui-progress-bar-color` CSS hook).\n *\n * Accessible: the track carries `role=\"progressbar\"` with `aria-valuemin`,\n * `aria-valuemax` and (when determinate) `aria-valuenow`; name it with\n * `ariaLabel` / `ariaLabelledBy`. Motion honours the OS reduced-motion\n * preference and the kit-wide `data-motion=\"off\"` switch.\n */\n@Component({\n selector: 'ui-progress-bar',\n imports: [NgTemplateOutlet],\n templateUrl: './ui-progress-bar.html',\n styleUrl: './ui-progress-bar.scss',\n})\nexport class UiProgressBar {\n /** Current progress, 0–100 (clamped). Ignored when `mode=\"indeterminate\"`. */\n value = input(0, { transform: numberAttribute });\n /** `determinate` tracks a value; `indeterminate` loops with no value. */\n mode = input<UiProgressBarMode>('determinate');\n /** Show the completion value beside/below the bar (determinate, non-steps). */\n showValue = input(true, { transform: booleanAttribute });\n /** Unit appended to the numeric value (e.g. \"%\"). */\n unit = input('%');\n /** Size preset. */\n size = input<UiProgressBarSize>('default');\n /**\n * Where the value label sits: beside (`right`), below (`bottom`), or centered\n * within the filled portion of the bar itself (`inside`).\n */\n valuePosition = input<UiProgressBarValuePosition>('right');\n /**\n * When > 0, render the bar as this many discrete segments; the number of\n * filled segments is derived from `value`. Hides the numeric label.\n */\n steps = input(0, { transform: numberAttribute });\n /** Fill colour override (any CSS colour). Sets `--ui-progress-bar-color`. */\n color = input<string>();\n /** Custom label content; context `{ $implicit: value }`. */\n valueTemplate = input<TemplateRef<UiProgressBarValueContext>>();\n /** Accessible name of the progress bar. */\n ariaLabel = input<string>();\n /** Id of the element labelling the progress bar. */\n ariaLabelledBy = input<string>();\n\n /** @ignore Value clamped to the 0–100 range. */\n protected readonly clampedValue = computed(() => {\n const v = this.value() ?? 0;\n return Math.min(100, Math.max(0, v));\n });\n\n /** @ignore */\n protected readonly isIndeterminate = computed(() => this.mode() === 'indeterminate');\n\n /** @ignore Whole number of segments requested (0 = continuous bar). */\n protected readonly stepCount = computed(() => Math.max(0, Math.floor(this.steps() ?? 0)));\n\n /** @ignore Steps mode is active. */\n protected readonly isSteps = computed(() => this.stepCount() > 0);\n\n /** @ignore Number of filled segments, derived from the value. */\n protected readonly filledSteps = computed(() =>\n Math.round((this.clampedValue() / 100) * this.stepCount()),\n );\n\n /** @ignore One boolean (active?) per segment. */\n protected readonly segments = computed(() => {\n const filled = this.filledSteps();\n return Array.from({ length: this.stepCount() }, (_, i) => i < filled);\n });\n\n /** @ignore The numeric label is rendered (not indeterminate, not steps). */\n protected readonly showLabel = computed(\n () => this.showValue() && !this.isIndeterminate() && !this.isSteps(),\n );\n\n /** @ignore Label sits inside the filled portion of the bar. */\n protected readonly labelInside = computed(\n () => this.showLabel() && this.valuePosition() === 'inside',\n );\n\n /** @ignore `aria-valuenow`: the value when tracked, otherwise omitted. */\n protected readonly ariaValueNow = computed(() =>\n this.isIndeterminate() ? null : this.clampedValue(),\n );\n\n /** @ignore Human-readable value for steps (\"3 / 5\"); omitted otherwise. */\n protected readonly ariaValueText = computed(() =>\n this.isSteps() ? `${this.filledSteps()} / ${this.stepCount()}` : null,\n );\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-progress-bar', `_${this.valuePosition()}`];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n if (this.isIndeterminate()) c.push('_indeterminate');\n if (this.isSteps()) c.push('_steps');\n return c.join(' ');\n });\n}\n","<div [class]=\"classes()\" [style.--ui-progress-bar-color]=\"color() ?? null\">\n <div\n class=\"ui-progress-bar-track\"\n role=\"progressbar\"\n [attr.aria-valuemin]=\"0\"\n [attr.aria-valuemax]=\"100\"\n [attr.aria-valuenow]=\"ariaValueNow()\"\n [attr.aria-valuetext]=\"ariaValueText()\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() ?? null\"\n >\n @if (isSteps()) {\n @for (active of segments(); track $index) {\n <span class=\"ui-progress-bar-segment\" [class._active]=\"active\"></span>\n }\n } @else if (isIndeterminate()) {\n <div class=\"ui-progress-bar-value _indeterminate\"></div>\n } @else {\n <div class=\"ui-progress-bar-value\" [style.width.%]=\"clampedValue()\">\n @if (labelInside()) {\n <span class=\"ui-progress-bar-value-label\">\n <ng-container [ngTemplateOutlet]=\"labelTpl\" />\n </span>\n }\n </div>\n }\n </div>\n\n @if (showLabel() && !labelInside()) {\n <div class=\"ui-progress-bar-label\">\n <ng-container [ngTemplateOutlet]=\"labelTpl\" />\n </div>\n }\n</div>\n\n<ng-template #labelTpl>\n @if (valueTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: clampedValue() }\"\n />\n } @else {\n {{ clampedValue() }}{{ unit() }}\n }\n</ng-template>\n","/*\n * Public API Surface of ui-kit/ui-progress-bar\n */\n\nexport * from './lib/ui-progress-bar';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAmBA;;;;;;;;;;;;;;AAcG;MAOU,aAAa,CAAA;AAN1B,IAAA,WAAA,GAAA;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