@4sh/ui-kit 0.1.2 → 0.3.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 (233) hide show
  1. package/README.fr.md +170 -61
  2. package/README.md +165 -60
  3. package/collection.json +9 -0
  4. package/fesm2022/{4sh-ui-kit-ui-button-split.mjs → 4sh-ui-kit-actions-ui-button-split.mjs} +7 -7
  5. package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs.map +1 -0
  6. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +222 -0
  7. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs.map +1 -0
  8. package/fesm2022/{4sh-ui-kit-ui-link.mjs → 4sh-ui-kit-actions-ui-link.mjs} +6 -6
  9. package/fesm2022/4sh-ui-kit-actions-ui-link.mjs.map +1 -0
  10. package/fesm2022/{4sh-ui-kit-ui-icon.mjs → 4sh-ui-kit-base-ui-icon.mjs} +51 -11
  11. package/fesm2022/4sh-ui-kit-base-ui-icon.mjs.map +1 -0
  12. package/fesm2022/{4sh-ui-kit-ui-image.mjs → 4sh-ui-kit-base-ui-image.mjs} +6 -6
  13. package/fesm2022/4sh-ui-kit-base-ui-image.mjs.map +1 -0
  14. package/fesm2022/{4sh-ui-kit-ui-autocomplete.mjs → 4sh-ui-kit-forms-ui-autocomplete.mjs} +9 -9
  15. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -0
  16. package/fesm2022/{4sh-ui-kit-ui-checkbox.mjs → 4sh-ui-kit-forms-ui-checkbox.mjs} +7 -7
  17. package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs.map +1 -0
  18. package/fesm2022/{4sh-ui-kit-ui-datepicker.mjs → 4sh-ui-kit-forms-ui-datepicker.mjs} +23 -11
  19. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs.map +1 -0
  20. package/fesm2022/{4sh-ui-kit-ui-field.mjs → 4sh-ui-kit-forms-ui-field.mjs} +7 -7
  21. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -0
  22. package/fesm2022/{4sh-ui-kit-ui-file-upload.mjs → 4sh-ui-kit-forms-ui-file-upload.mjs} +12 -13
  23. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -0
  24. package/fesm2022/{4sh-ui-kit-ui-input-group.mjs → 4sh-ui-kit-forms-ui-input-group.mjs} +12 -12
  25. package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs.map +1 -0
  26. package/fesm2022/{4sh-ui-kit-ui-input-mask.mjs → 4sh-ui-kit-forms-ui-input-mask.mjs} +8 -8
  27. package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs.map +1 -0
  28. package/fesm2022/{4sh-ui-kit-ui-input-number.mjs → 4sh-ui-kit-forms-ui-input-number.mjs} +8 -8
  29. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -0
  30. package/fesm2022/{4sh-ui-kit-ui-input-otp.mjs → 4sh-ui-kit-forms-ui-input-otp.mjs} +5 -5
  31. package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs.map +1 -0
  32. package/fesm2022/{4sh-ui-kit-ui-input-tags.mjs → 4sh-ui-kit-forms-ui-input-tags.mjs} +8 -8
  33. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs.map +1 -0
  34. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +159 -0
  35. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs.map +1 -0
  36. package/fesm2022/{4sh-ui-kit-ui-label.mjs → 4sh-ui-kit-forms-ui-label.mjs} +5 -5
  37. package/fesm2022/4sh-ui-kit-forms-ui-label.mjs.map +1 -0
  38. package/fesm2022/{4sh-ui-kit-ui-nudger.mjs → 4sh-ui-kit-forms-ui-nudger.mjs} +6 -6
  39. package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs.map +1 -0
  40. package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs +92 -0
  41. package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs.map +1 -0
  42. package/fesm2022/{4sh-ui-kit-ui-rating.mjs → 4sh-ui-kit-forms-ui-rating.mjs} +7 -7
  43. package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs.map +1 -0
  44. package/fesm2022/{4sh-ui-kit-ui-segment-control.mjs → 4sh-ui-kit-forms-ui-segment-control.mjs} +7 -7
  45. package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs.map +1 -0
  46. package/fesm2022/{4sh-ui-kit-ui-select.mjs → 4sh-ui-kit-forms-ui-select.mjs} +8 -8
  47. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs.map +1 -0
  48. package/fesm2022/{4sh-ui-kit-ui-slider.mjs → 4sh-ui-kit-forms-ui-slider.mjs} +6 -6
  49. package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs.map +1 -0
  50. package/fesm2022/{4sh-ui-kit-ui-textarea.mjs → 4sh-ui-kit-forms-ui-textarea.mjs} +6 -6
  51. package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs.map +1 -0
  52. package/fesm2022/{4sh-ui-kit-ui-toggle.mjs → 4sh-ui-kit-forms-ui-toggle.mjs} +5 -5
  53. package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs.map +1 -0
  54. package/fesm2022/4sh-ui-kit-forms.mjs +28 -11
  55. package/fesm2022/4sh-ui-kit-forms.mjs.map +1 -1
  56. package/fesm2022/{4sh-ui-kit-ui-accordion.mjs → 4sh-ui-kit-informative-ui-accordion.mjs} +16 -16
  57. package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs.map +1 -0
  58. package/fesm2022/{4sh-ui-kit-ui-alert.mjs → 4sh-ui-kit-informative-ui-alert.mjs} +6 -6
  59. package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs.map +1 -0
  60. package/fesm2022/{4sh-ui-kit-ui-avatar-group.mjs → 4sh-ui-kit-informative-ui-avatar-group.mjs} +5 -5
  61. package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs.map +1 -0
  62. package/fesm2022/{4sh-ui-kit-ui-avatar.mjs → 4sh-ui-kit-informative-ui-avatar.mjs} +6 -6
  63. package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs.map +1 -0
  64. package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs +95 -0
  65. package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs.map +1 -0
  66. package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs +205 -0
  67. package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs.map +1 -0
  68. package/fesm2022/{4sh-ui-kit-ui-empty-state.mjs → 4sh-ui-kit-informative-ui-empty-state.mjs} +12 -12
  69. package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs.map +1 -0
  70. package/fesm2022/{4sh-ui-kit-ui-helper.mjs → 4sh-ui-kit-informative-ui-helper.mjs} +6 -6
  71. package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs.map +1 -0
  72. package/fesm2022/{4sh-ui-kit-ui-progress-bar.mjs → 4sh-ui-kit-informative-ui-progress-bar.mjs} +5 -5
  73. package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs.map +1 -0
  74. package/fesm2022/{4sh-ui-kit-ui-read-only.mjs → 4sh-ui-kit-informative-ui-read-only.mjs} +6 -6
  75. package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs.map +1 -0
  76. package/fesm2022/{4sh-ui-kit-ui-separator.mjs → 4sh-ui-kit-informative-ui-separator.mjs} +5 -5
  77. package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs.map +1 -0
  78. package/fesm2022/{4sh-ui-kit-ui-skeleton.mjs → 4sh-ui-kit-informative-ui-skeleton.mjs} +5 -5
  79. package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs.map +1 -0
  80. package/fesm2022/{4sh-ui-kit-ui-spinner.mjs → 4sh-ui-kit-informative-ui-spinner.mjs} +6 -6
  81. package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs.map +1 -0
  82. package/fesm2022/{4sh-ui-kit-ui-tag.mjs → 4sh-ui-kit-informative-ui-tag.mjs} +6 -6
  83. package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs.map +1 -0
  84. package/fesm2022/{4sh-ui-kit-ui-toast.mjs → 4sh-ui-kit-informative-ui-toast.mjs} +13 -13
  85. package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs.map +1 -0
  86. package/fesm2022/{4sh-ui-kit-ui-tooltip.mjs → 4sh-ui-kit-informative-ui-tooltip.mjs} +8 -8
  87. package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs.map +1 -0
  88. package/fesm2022/{4sh-ui-kit-ui-card.mjs → 4sh-ui-kit-layout-ui-card.mjs} +18 -18
  89. package/fesm2022/4sh-ui-kit-layout-ui-card.mjs.map +1 -0
  90. package/fesm2022/{4sh-ui-kit-ui-drawer.mjs → 4sh-ui-kit-layout-ui-drawer.mjs} +6 -6
  91. package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs.map +1 -0
  92. package/fesm2022/{4sh-ui-kit-ui-modal.mjs → 4sh-ui-kit-layout-ui-modal.mjs} +6 -6
  93. package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs.map +1 -0
  94. package/fesm2022/{4sh-ui-kit-ui-popover.mjs → 4sh-ui-kit-layout-ui-popover.mjs} +5 -5
  95. package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs.map +1 -0
  96. package/fesm2022/4sh-ui-kit-motion.mjs +3 -3
  97. package/fesm2022/{4sh-ui-kit-ui-breadcrumb.mjs → 4sh-ui-kit-navigation-ui-breadcrumb.mjs} +6 -6
  98. package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs.map +1 -0
  99. package/fesm2022/{4sh-ui-kit-ui-context-menu.mjs → 4sh-ui-kit-navigation-ui-context-menu.mjs} +5 -5
  100. package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs.map +1 -0
  101. package/fesm2022/{4sh-ui-kit-ui-menu.mjs → 4sh-ui-kit-navigation-ui-menu.mjs} +7 -7
  102. package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -0
  103. package/fesm2022/{4sh-ui-kit-ui-sidebar.mjs → 4sh-ui-kit-navigation-ui-sidebar.mjs} +15 -15
  104. package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs.map +1 -0
  105. package/fesm2022/{4sh-ui-kit-ui-stepper.mjs → 4sh-ui-kit-navigation-ui-stepper.mjs} +24 -24
  106. package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs.map +1 -0
  107. package/fesm2022/{4sh-ui-kit-ui-tabs.mjs → 4sh-ui-kit-navigation-ui-tabs.mjs} +28 -22
  108. package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs.map +1 -0
  109. package/fesm2022/{4sh-ui-kit-ui-paginator.mjs → 4sh-ui-kit-table-ui-paginator.mjs} +7 -7
  110. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs.map +1 -0
  111. package/fesm2022/{4sh-ui-kit-ui-table.mjs → 4sh-ui-kit-table-ui-table.mjs} +41 -41
  112. package/fesm2022/4sh-ui-kit-table-ui-table.mjs.map +1 -0
  113. package/fesm2022/4sh-ui-kit-theming.mjs +6 -6
  114. package/fesm2022/4sh-ui-kit.mjs +1 -1
  115. package/fesm2022/4sh-ui-kit.mjs.map +1 -1
  116. package/package.json +176 -175
  117. package/schematics/index.cjs +51 -0
  118. package/styles/component-vars.scss +953 -0
  119. package/styles/generated/_tokens-semantics.scss +36 -0
  120. package/styles/settings/_ui-config.scss +54 -44
  121. package/styles.css +1 -1
  122. package/types/{4sh-ui-kit-ui-button-split.d.ts → 4sh-ui-kit-actions-ui-button-split.d.ts} +2 -2
  123. package/types/{4sh-ui-kit-ui-icon.d.ts → 4sh-ui-kit-base-ui-icon.d.ts} +35 -4
  124. package/types/{4sh-ui-kit-ui-autocomplete.d.ts → 4sh-ui-kit-forms-ui-autocomplete.d.ts} +1 -1
  125. package/types/{4sh-ui-kit-ui-datepicker.d.ts → 4sh-ui-kit-forms-ui-datepicker.d.ts} +6 -1
  126. package/types/{4sh-ui-kit-ui-file-upload.d.ts → 4sh-ui-kit-forms-ui-file-upload.d.ts} +1 -1
  127. package/types/{4sh-ui-kit-ui-input-mask.d.ts → 4sh-ui-kit-forms-ui-input-mask.d.ts} +1 -1
  128. package/types/{4sh-ui-kit-ui-input-tags.d.ts → 4sh-ui-kit-forms-ui-input-tags.d.ts} +1 -1
  129. package/types/{4sh-ui-kit-ui-input.d.ts → 4sh-ui-kit-forms-ui-input.d.ts} +34 -3
  130. package/types/{4sh-ui-kit-ui-nudger.d.ts → 4sh-ui-kit-forms-ui-nudger.d.ts} +1 -1
  131. package/types/{4sh-ui-kit-ui-rating.d.ts → 4sh-ui-kit-forms-ui-rating.d.ts} +1 -1
  132. package/types/{4sh-ui-kit-ui-select.d.ts → 4sh-ui-kit-forms-ui-select.d.ts} +1 -1
  133. package/types/4sh-ui-kit-forms.d.ts +2 -1
  134. package/types/{4sh-ui-kit-ui-avatar.d.ts → 4sh-ui-kit-informative-ui-avatar.d.ts} +1 -1
  135. package/types/{4sh-ui-kit-ui-badge.d.ts → 4sh-ui-kit-informative-ui-badge.d.ts} +1 -1
  136. package/types/{4sh-ui-kit-ui-chip.d.ts → 4sh-ui-kit-informative-ui-chip.d.ts} +1 -1
  137. package/types/{4sh-ui-kit-ui-empty-state.d.ts → 4sh-ui-kit-informative-ui-empty-state.d.ts} +1 -1
  138. package/types/{4sh-ui-kit-ui-spinner.d.ts → 4sh-ui-kit-informative-ui-spinner.d.ts} +1 -1
  139. package/types/{4sh-ui-kit-ui-tag.d.ts → 4sh-ui-kit-informative-ui-tag.d.ts} +1 -1
  140. package/types/{4sh-ui-kit-ui-card.d.ts → 4sh-ui-kit-layout-ui-card.d.ts} +1 -1
  141. package/types/{4sh-ui-kit-ui-context-menu.d.ts → 4sh-ui-kit-navigation-ui-context-menu.d.ts} +1 -1
  142. package/types/{4sh-ui-kit-ui-tabs.d.ts → 4sh-ui-kit-navigation-ui-tabs.d.ts} +5 -1
  143. package/types/{4sh-ui-kit-ui-table.d.ts → 4sh-ui-kit-table-ui-table.d.ts} +1 -1
  144. package/fesm2022/4sh-ui-kit-ui-accordion.mjs.map +0 -1
  145. package/fesm2022/4sh-ui-kit-ui-alert.mjs.map +0 -1
  146. package/fesm2022/4sh-ui-kit-ui-autocomplete.mjs.map +0 -1
  147. package/fesm2022/4sh-ui-kit-ui-avatar-group.mjs.map +0 -1
  148. package/fesm2022/4sh-ui-kit-ui-avatar.mjs.map +0 -1
  149. package/fesm2022/4sh-ui-kit-ui-badge.mjs +0 -95
  150. package/fesm2022/4sh-ui-kit-ui-badge.mjs.map +0 -1
  151. package/fesm2022/4sh-ui-kit-ui-breadcrumb.mjs.map +0 -1
  152. package/fesm2022/4sh-ui-kit-ui-button-split.mjs.map +0 -1
  153. package/fesm2022/4sh-ui-kit-ui-button.mjs +0 -222
  154. package/fesm2022/4sh-ui-kit-ui-button.mjs.map +0 -1
  155. package/fesm2022/4sh-ui-kit-ui-card.mjs.map +0 -1
  156. package/fesm2022/4sh-ui-kit-ui-checkbox.mjs.map +0 -1
  157. package/fesm2022/4sh-ui-kit-ui-chip.mjs +0 -205
  158. package/fesm2022/4sh-ui-kit-ui-chip.mjs.map +0 -1
  159. package/fesm2022/4sh-ui-kit-ui-context-menu.mjs.map +0 -1
  160. package/fesm2022/4sh-ui-kit-ui-datepicker.mjs.map +0 -1
  161. package/fesm2022/4sh-ui-kit-ui-drawer.mjs.map +0 -1
  162. package/fesm2022/4sh-ui-kit-ui-empty-state.mjs.map +0 -1
  163. package/fesm2022/4sh-ui-kit-ui-field.mjs.map +0 -1
  164. package/fesm2022/4sh-ui-kit-ui-file-upload.mjs.map +0 -1
  165. package/fesm2022/4sh-ui-kit-ui-helper.mjs.map +0 -1
  166. package/fesm2022/4sh-ui-kit-ui-icon.mjs.map +0 -1
  167. package/fesm2022/4sh-ui-kit-ui-image.mjs.map +0 -1
  168. package/fesm2022/4sh-ui-kit-ui-input-group.mjs.map +0 -1
  169. package/fesm2022/4sh-ui-kit-ui-input-mask.mjs.map +0 -1
  170. package/fesm2022/4sh-ui-kit-ui-input-number.mjs.map +0 -1
  171. package/fesm2022/4sh-ui-kit-ui-input-otp.mjs.map +0 -1
  172. package/fesm2022/4sh-ui-kit-ui-input-tags.mjs.map +0 -1
  173. package/fesm2022/4sh-ui-kit-ui-input.mjs +0 -121
  174. package/fesm2022/4sh-ui-kit-ui-input.mjs.map +0 -1
  175. package/fesm2022/4sh-ui-kit-ui-label.mjs.map +0 -1
  176. package/fesm2022/4sh-ui-kit-ui-link.mjs.map +0 -1
  177. package/fesm2022/4sh-ui-kit-ui-menu.mjs.map +0 -1
  178. package/fesm2022/4sh-ui-kit-ui-modal.mjs.map +0 -1
  179. package/fesm2022/4sh-ui-kit-ui-nudger.mjs.map +0 -1
  180. package/fesm2022/4sh-ui-kit-ui-paginator.mjs.map +0 -1
  181. package/fesm2022/4sh-ui-kit-ui-popover.mjs.map +0 -1
  182. package/fesm2022/4sh-ui-kit-ui-progress-bar.mjs.map +0 -1
  183. package/fesm2022/4sh-ui-kit-ui-radio.mjs +0 -92
  184. package/fesm2022/4sh-ui-kit-ui-radio.mjs.map +0 -1
  185. package/fesm2022/4sh-ui-kit-ui-rating.mjs.map +0 -1
  186. package/fesm2022/4sh-ui-kit-ui-read-only.mjs.map +0 -1
  187. package/fesm2022/4sh-ui-kit-ui-segment-control.mjs.map +0 -1
  188. package/fesm2022/4sh-ui-kit-ui-select.mjs.map +0 -1
  189. package/fesm2022/4sh-ui-kit-ui-separator.mjs.map +0 -1
  190. package/fesm2022/4sh-ui-kit-ui-sidebar.mjs.map +0 -1
  191. package/fesm2022/4sh-ui-kit-ui-skeleton.mjs.map +0 -1
  192. package/fesm2022/4sh-ui-kit-ui-slider.mjs.map +0 -1
  193. package/fesm2022/4sh-ui-kit-ui-spinner.mjs.map +0 -1
  194. package/fesm2022/4sh-ui-kit-ui-stepper.mjs.map +0 -1
  195. package/fesm2022/4sh-ui-kit-ui-table.mjs.map +0 -1
  196. package/fesm2022/4sh-ui-kit-ui-tabs.mjs.map +0 -1
  197. package/fesm2022/4sh-ui-kit-ui-tag.mjs.map +0 -1
  198. package/fesm2022/4sh-ui-kit-ui-textarea.mjs.map +0 -1
  199. package/fesm2022/4sh-ui-kit-ui-toast.mjs.map +0 -1
  200. package/fesm2022/4sh-ui-kit-ui-toggle.mjs.map +0 -1
  201. package/fesm2022/4sh-ui-kit-ui-tooltip.mjs.map +0 -1
  202. /package/types/{4sh-ui-kit-ui-button.d.ts → 4sh-ui-kit-actions-ui-button.d.ts} +0 -0
  203. /package/types/{4sh-ui-kit-ui-link.d.ts → 4sh-ui-kit-actions-ui-link.d.ts} +0 -0
  204. /package/types/{4sh-ui-kit-ui-image.d.ts → 4sh-ui-kit-base-ui-image.d.ts} +0 -0
  205. /package/types/{4sh-ui-kit-ui-checkbox.d.ts → 4sh-ui-kit-forms-ui-checkbox.d.ts} +0 -0
  206. /package/types/{4sh-ui-kit-ui-field.d.ts → 4sh-ui-kit-forms-ui-field.d.ts} +0 -0
  207. /package/types/{4sh-ui-kit-ui-input-group.d.ts → 4sh-ui-kit-forms-ui-input-group.d.ts} +0 -0
  208. /package/types/{4sh-ui-kit-ui-input-number.d.ts → 4sh-ui-kit-forms-ui-input-number.d.ts} +0 -0
  209. /package/types/{4sh-ui-kit-ui-input-otp.d.ts → 4sh-ui-kit-forms-ui-input-otp.d.ts} +0 -0
  210. /package/types/{4sh-ui-kit-ui-label.d.ts → 4sh-ui-kit-forms-ui-label.d.ts} +0 -0
  211. /package/types/{4sh-ui-kit-ui-radio.d.ts → 4sh-ui-kit-forms-ui-radio.d.ts} +0 -0
  212. /package/types/{4sh-ui-kit-ui-segment-control.d.ts → 4sh-ui-kit-forms-ui-segment-control.d.ts} +0 -0
  213. /package/types/{4sh-ui-kit-ui-slider.d.ts → 4sh-ui-kit-forms-ui-slider.d.ts} +0 -0
  214. /package/types/{4sh-ui-kit-ui-textarea.d.ts → 4sh-ui-kit-forms-ui-textarea.d.ts} +0 -0
  215. /package/types/{4sh-ui-kit-ui-toggle.d.ts → 4sh-ui-kit-forms-ui-toggle.d.ts} +0 -0
  216. /package/types/{4sh-ui-kit-ui-accordion.d.ts → 4sh-ui-kit-informative-ui-accordion.d.ts} +0 -0
  217. /package/types/{4sh-ui-kit-ui-alert.d.ts → 4sh-ui-kit-informative-ui-alert.d.ts} +0 -0
  218. /package/types/{4sh-ui-kit-ui-avatar-group.d.ts → 4sh-ui-kit-informative-ui-avatar-group.d.ts} +0 -0
  219. /package/types/{4sh-ui-kit-ui-helper.d.ts → 4sh-ui-kit-informative-ui-helper.d.ts} +0 -0
  220. /package/types/{4sh-ui-kit-ui-progress-bar.d.ts → 4sh-ui-kit-informative-ui-progress-bar.d.ts} +0 -0
  221. /package/types/{4sh-ui-kit-ui-read-only.d.ts → 4sh-ui-kit-informative-ui-read-only.d.ts} +0 -0
  222. /package/types/{4sh-ui-kit-ui-separator.d.ts → 4sh-ui-kit-informative-ui-separator.d.ts} +0 -0
  223. /package/types/{4sh-ui-kit-ui-skeleton.d.ts → 4sh-ui-kit-informative-ui-skeleton.d.ts} +0 -0
  224. /package/types/{4sh-ui-kit-ui-toast.d.ts → 4sh-ui-kit-informative-ui-toast.d.ts} +0 -0
  225. /package/types/{4sh-ui-kit-ui-tooltip.d.ts → 4sh-ui-kit-informative-ui-tooltip.d.ts} +0 -0
  226. /package/types/{4sh-ui-kit-ui-drawer.d.ts → 4sh-ui-kit-layout-ui-drawer.d.ts} +0 -0
  227. /package/types/{4sh-ui-kit-ui-modal.d.ts → 4sh-ui-kit-layout-ui-modal.d.ts} +0 -0
  228. /package/types/{4sh-ui-kit-ui-popover.d.ts → 4sh-ui-kit-layout-ui-popover.d.ts} +0 -0
  229. /package/types/{4sh-ui-kit-ui-breadcrumb.d.ts → 4sh-ui-kit-navigation-ui-breadcrumb.d.ts} +0 -0
  230. /package/types/{4sh-ui-kit-ui-menu.d.ts → 4sh-ui-kit-navigation-ui-menu.d.ts} +0 -0
  231. /package/types/{4sh-ui-kit-ui-sidebar.d.ts → 4sh-ui-kit-navigation-ui-sidebar.d.ts} +0 -0
  232. /package/types/{4sh-ui-kit-ui-stepper.d.ts → 4sh-ui-kit-navigation-ui-stepper.d.ts} +0 -0
  233. /package/types/{4sh-ui-kit-ui-paginator.d.ts → 4sh-ui-kit-table-ui-paginator.d.ts} +0 -0
@@ -0,0 +1,92 @@
1
+ import * as i0 from '@angular/core';
2
+ import { input, output, viewChild, computed, forwardRef, Component } from '@angular/core';
3
+ import { NG_VALUE_ACCESSOR } from '@angular/forms';
4
+ import { BaseFieldControl } from '@4sh/ui-kit/forms';
5
+
6
+ /**
7
+ * ui-radio — headless radio button built on a real native <input type="radio">.
8
+ *
9
+ * Each ui-radio holds one `value`; the group is formed by binding every member
10
+ * to the same form control (same `formControlName` / `[(ngModel)]`) AND giving
11
+ * them the same `name` (native grouping = roving arrow-key navigation for free).
12
+ * The one whose `value` equals the model value is checked.
13
+ *
14
+ * Interactive states (hover/focus/disabled/checked) are pure CSS driven by
15
+ * `form.*` design tokens.
16
+ */
17
+ class UiRadio extends BaseFieldControl {
18
+ constructor() {
19
+ super(...arguments);
20
+ /** Value carried by this radio (the model takes it when selected). */
21
+ this.value = input.required(/* @ts-ignore */
22
+ ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
23
+ /** Label displayed next to the radio (clicking it selects it). */
24
+ this.label = input(/* @ts-ignore */
25
+ ...(ngDevMode ? [undefined, { debugName: "label" }] : /* istanbul ignore next */ []));
26
+ /** Emitted when this radio becomes selected by user interaction, with its value. */
27
+ this.radioChange = output();
28
+ /** Emitted when the native input receives focus. */
29
+ this.radioFocus = output();
30
+ /** Emitted when the native input loses focus. */
31
+ this.radioBlur = output();
32
+ /** @ignore */
33
+ this.inputEl = viewChild.required('inputEl', /* @ts-ignore */
34
+ ...(ngDevMode ? [{ debugName: "inputEl" }] : /* istanbul ignore next */ []));
35
+ /** @ignore */
36
+ this.checked = computed(() => this.modelValue() === this.value(), /* @ts-ignore */
37
+ ...(ngDevMode ? [{ debugName: "checked" }] : /* istanbul ignore next */ []));
38
+ /** @ignore */
39
+ this.classes = computed(() => {
40
+ const c = ['ui-radio'];
41
+ if (this.checked())
42
+ c.push('_checked');
43
+ if (this.isDisabled())
44
+ c.push('_disabled');
45
+ if (this.isInvalid())
46
+ c.push('_invalid');
47
+ return c.join(' ');
48
+ }, /* @ts-ignore */
49
+ ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
50
+ }
51
+ /** @ignore */
52
+ uidPrefix() {
53
+ return 'ui-radio';
54
+ }
55
+ /** Focus the native input programmatically. */
56
+ focus(options) {
57
+ this.inputEl().nativeElement.focus(options);
58
+ }
59
+ /** @ignore Native change fires only when this radio becomes checked. */
60
+ onNativeChange() {
61
+ const value = this.value();
62
+ this.modelValue.set(value);
63
+ this.emitChange(value);
64
+ this.radioChange.emit(value);
65
+ }
66
+ /** @ignore */
67
+ onBlur(event) {
68
+ this.emitTouch();
69
+ this.radioBlur.emit(event);
70
+ }
71
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiRadio, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
72
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: UiRadio, isStandalone: true, selector: "ui-radio", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { radioChange: "radioChange", radioFocus: "radioFocus", radioBlur: "radioBlur" }, providers: [
73
+ { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiRadio), multi: true },
74
+ ], viewQueries: [{ propertyName: "inputEl", first: true, predicate: ["inputEl"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<label [class]=\"classes()\">\n <span class=\"ui-radio-control\">\n <input\n #inputEl\n type=\"radio\"\n class=\"ui-radio-input\"\n [id]=\"resolvedId()\"\n [checked]=\"checked()\"\n [disabled]=\"isDisabled()\"\n [required]=\"required()\"\n [attr.name]=\"name() || null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-invalid]=\"isInvalid() ? 'true' : null\"\n (change)=\"onNativeChange()\"\n (focus)=\"radioFocus.emit($event)\"\n (blur)=\"onBlur($event)\"\n />\n <span class=\"ui-radio-box\" aria-hidden=\"true\">\n <span class=\"ui-radio-dot\"></span>\n </span>\n </span>\n\n @if (label()) {\n <span class=\"ui-radio-label\">\n <span class=\"ui-radio-text\">{{ label() }}</span>\n @if (required()) {\n <span class=\"ui-radio-required\" aria-hidden=\"true\">*</span>\n }\n </span>\n }\n</label>\n", styles: [".ui-radio{display:inline-flex;align-items:center;gap:var(--ui-radio-gap, var(--ui-form-control-gap, var(--units-sm)));cursor:pointer;--_surface: var(--form-high-surface-default);--_stroke: var(--form-high-stroke-default);--_content: var(--form-high-content-checked)}.ui-radio:hover:not(._disabled):not(._readonly){--_surface: var(--form-high-surface-hover);--_stroke: var(--form-high-stroke-hover);--ui-label-color: var(--form-high-content-hover)}.ui-radio._checked:not(._disabled),.ui-radio._indeterminate:not(._disabled){--_surface: var(--form-high-surface-checked);--_stroke: var(--form-high-stroke-checked)}.ui-radio:has(.ui-radio-input:focus-visible){--_stroke: var(--form-high-stroke-focused);--_focus-ring: rgb(from var(--form-high-stroke-focused) r g b / 50%)}.ui-radio._disabled{--_surface: var(--form-high-surface-disabled);--_stroke: var(--form-high-stroke-disabled);--_content: var(--form-high-content-disabled)}.ui-radio._invalid{--_surface: var(--form-error-surface-default);--_stroke: var(--form-error-stroke-default);--_content: var(--form-error-content-checked)}.ui-radio._invalid:hover:not(._disabled):not(._readonly){--_surface: var(--form-error-surface-hover);--_stroke: var(--form-error-stroke-hover);--ui-label-color: var(--form-error-content-hover)}.ui-radio._invalid._checked:not(._disabled),.ui-radio._invalid._indeterminate:not(._disabled){--_surface: var(--form-error-surface-checked);--_stroke: var(--form-error-stroke-checked)}.ui-radio._invalid:has(.ui-radio-input:focus-visible){--_stroke: var(--form-error-stroke-focused);--_focus-ring: rgb(from var(--form-error-stroke-focused) r g b / 50%)}.ui-radio._invalid._disabled{--_surface: var(--form-error-surface-disabled);--_stroke: var(--form-error-stroke-disabled);--_content: var(--form-error-content-disabled)}.ui-radio-control{position:relative;display:inline-flex;width:var(--ui-radio-box-size, var(--ui-form-control-size, var(--size-components-2xs)));height:var(--ui-radio-box-size, var(--ui-form-control-size, var(--size-components-2xs)));flex-shrink:0}.ui-radio-input{position:absolute;inset:0;z-index:1;width:100%;height:100%;margin:0;opacity:0;cursor:inherit}.ui-radio-box{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%;background-color:var(--_surface);border:var(--ui-radio-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) solid var(--_stroke);border-radius:var(--ui-radio-box-radius, var(--radius-full));transition:background-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-radio:has(.ui-radio-input:focus-visible) .ui-radio-box{box-shadow:0 0 0 var(--ui-radio-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--_focus-ring)}.ui-radio-dot{width:var(--ui-radio-dot-size, var(--units-md));height:var(--ui-radio-dot-size, var(--units-md));background-color:var(--_content);border-radius:var(--ui-radio-dot-radius, var(--radius-full));transform:scale(0);transition:transform var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-radio._checked .ui-radio-dot{transform:scale(1)}.ui-radio-label{display:inline-flex;align-items:center;gap:var(--ui-radio-label-gap, var(--units-2xs));font-family:var(--fontfamily-base);font-size:var(--ui-radio-font-size, var(--size-typography-text-default));color:var(--ui-label-color, var(--form-high-content-default));cursor:inherit;-webkit-user-select:none;user-select:none}.ui-radio-required{color:var(--informative-errorlow-content-default)}.ui-radio._disabled{cursor:not-allowed}.ui-radio._disabled .ui-radio-label{color:var(--form-high-content-disabled)}\n"] }); }
75
+ }
76
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiRadio, decorators: [{
77
+ type: Component,
78
+ args: [{ selector: 'ui-radio', providers: [
79
+ { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiRadio), multi: true },
80
+ ], template: "<label [class]=\"classes()\">\n <span class=\"ui-radio-control\">\n <input\n #inputEl\n type=\"radio\"\n class=\"ui-radio-input\"\n [id]=\"resolvedId()\"\n [checked]=\"checked()\"\n [disabled]=\"isDisabled()\"\n [required]=\"required()\"\n [attr.name]=\"name() || null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-invalid]=\"isInvalid() ? 'true' : null\"\n (change)=\"onNativeChange()\"\n (focus)=\"radioFocus.emit($event)\"\n (blur)=\"onBlur($event)\"\n />\n <span class=\"ui-radio-box\" aria-hidden=\"true\">\n <span class=\"ui-radio-dot\"></span>\n </span>\n </span>\n\n @if (label()) {\n <span class=\"ui-radio-label\">\n <span class=\"ui-radio-text\">{{ label() }}</span>\n @if (required()) {\n <span class=\"ui-radio-required\" aria-hidden=\"true\">*</span>\n }\n </span>\n }\n</label>\n", styles: [".ui-radio{display:inline-flex;align-items:center;gap:var(--ui-radio-gap, var(--ui-form-control-gap, var(--units-sm)));cursor:pointer;--_surface: var(--form-high-surface-default);--_stroke: var(--form-high-stroke-default);--_content: var(--form-high-content-checked)}.ui-radio:hover:not(._disabled):not(._readonly){--_surface: var(--form-high-surface-hover);--_stroke: var(--form-high-stroke-hover);--ui-label-color: var(--form-high-content-hover)}.ui-radio._checked:not(._disabled),.ui-radio._indeterminate:not(._disabled){--_surface: var(--form-high-surface-checked);--_stroke: var(--form-high-stroke-checked)}.ui-radio:has(.ui-radio-input:focus-visible){--_stroke: var(--form-high-stroke-focused);--_focus-ring: rgb(from var(--form-high-stroke-focused) r g b / 50%)}.ui-radio._disabled{--_surface: var(--form-high-surface-disabled);--_stroke: var(--form-high-stroke-disabled);--_content: var(--form-high-content-disabled)}.ui-radio._invalid{--_surface: var(--form-error-surface-default);--_stroke: var(--form-error-stroke-default);--_content: var(--form-error-content-checked)}.ui-radio._invalid:hover:not(._disabled):not(._readonly){--_surface: var(--form-error-surface-hover);--_stroke: var(--form-error-stroke-hover);--ui-label-color: var(--form-error-content-hover)}.ui-radio._invalid._checked:not(._disabled),.ui-radio._invalid._indeterminate:not(._disabled){--_surface: var(--form-error-surface-checked);--_stroke: var(--form-error-stroke-checked)}.ui-radio._invalid:has(.ui-radio-input:focus-visible){--_stroke: var(--form-error-stroke-focused);--_focus-ring: rgb(from var(--form-error-stroke-focused) r g b / 50%)}.ui-radio._invalid._disabled{--_surface: var(--form-error-surface-disabled);--_stroke: var(--form-error-stroke-disabled);--_content: var(--form-error-content-disabled)}.ui-radio-control{position:relative;display:inline-flex;width:var(--ui-radio-box-size, var(--ui-form-control-size, var(--size-components-2xs)));height:var(--ui-radio-box-size, var(--ui-form-control-size, var(--size-components-2xs)));flex-shrink:0}.ui-radio-input{position:absolute;inset:0;z-index:1;width:100%;height:100%;margin:0;opacity:0;cursor:inherit}.ui-radio-box{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%;background-color:var(--_surface);border:var(--ui-radio-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) solid var(--_stroke);border-radius:var(--ui-radio-box-radius, var(--radius-full));transition:background-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-radio:has(.ui-radio-input:focus-visible) .ui-radio-box{box-shadow:0 0 0 var(--ui-radio-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--_focus-ring)}.ui-radio-dot{width:var(--ui-radio-dot-size, var(--units-md));height:var(--ui-radio-dot-size, var(--units-md));background-color:var(--_content);border-radius:var(--ui-radio-dot-radius, var(--radius-full));transform:scale(0);transition:transform var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-radio._checked .ui-radio-dot{transform:scale(1)}.ui-radio-label{display:inline-flex;align-items:center;gap:var(--ui-radio-label-gap, var(--units-2xs));font-family:var(--fontfamily-base);font-size:var(--ui-radio-font-size, var(--size-typography-text-default));color:var(--ui-label-color, var(--form-high-content-default));cursor:inherit;-webkit-user-select:none;user-select:none}.ui-radio-required{color:var(--informative-errorlow-content-default)}.ui-radio._disabled{cursor:not-allowed}.ui-radio._disabled .ui-radio-label{color:var(--form-high-content-disabled)}\n"] }]
81
+ }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], radioChange: [{ type: i0.Output, args: ["radioChange"] }], radioFocus: [{ type: i0.Output, args: ["radioFocus"] }], radioBlur: [{ type: i0.Output, args: ["radioBlur"] }], inputEl: [{ type: i0.ViewChild, args: ['inputEl', { isSignal: true }] }] } });
82
+
83
+ /*
84
+ * Public API Surface of ui-kit/ui-radio
85
+ */
86
+
87
+ /**
88
+ * Generated bundle index. Do not edit.
89
+ */
90
+
91
+ export { UiRadio };
92
+ //# sourceMappingURL=4sh-ui-kit-forms-ui-radio.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"4sh-ui-kit-forms-ui-radio.mjs","sources":["../../../projects/ui-kit/forms/ui-radio/src/lib/ui-radio.ts","../../../projects/ui-kit/forms/ui-radio/src/lib/ui-radio.html","../../../projects/ui-kit/forms/ui-radio/src/public-api.ts","../../../projects/ui-kit/forms/ui-radio/src/4sh-ui-kit-forms-ui-radio.ts"],"sourcesContent":["import {\n Component,\n computed,\n ElementRef,\n forwardRef,\n input,\n output,\n viewChild,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { BaseFieldControl } from '@4sh/ui-kit/forms';\n\n/**\n * ui-radio — headless radio button built on a real native <input type=\"radio\">.\n *\n * Each ui-radio holds one `value`; the group is formed by binding every member\n * to the same form control (same `formControlName` / `[(ngModel)]`) AND giving\n * them the same `name` (native grouping = roving arrow-key navigation for free).\n * The one whose `value` equals the model value is checked.\n *\n * Interactive states (hover/focus/disabled/checked) are pure CSS driven by\n * `form.*` design tokens.\n */\n@Component({\n selector: 'ui-radio',\n templateUrl: './ui-radio.html',\n styleUrl: './ui-radio.scss',\n providers: [\n { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiRadio), multi: true },\n ],\n})\nexport class UiRadio<T = unknown> extends BaseFieldControl<T> {\n /** Value carried by this radio (the model takes it when selected). */\n value = input.required<T>();\n /** Label displayed next to the radio (clicking it selects it). */\n label = input<string>();\n\n /** Emitted when this radio becomes selected by user interaction, with its value. */\n radioChange = output<T>();\n /** Emitted when the native input receives focus. */\n radioFocus = output<FocusEvent>();\n /** Emitted when the native input loses focus. */\n radioBlur = output<FocusEvent>();\n\n /** @ignore */\n private readonly inputEl = viewChild.required<ElementRef<HTMLInputElement>>('inputEl');\n\n /** @ignore */\n protected readonly checked = computed(() => this.modelValue() === this.value());\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-radio'];\n if (this.checked()) c.push('_checked');\n if (this.isDisabled()) c.push('_disabled');\n if (this.isInvalid()) c.push('_invalid');\n return c.join(' ');\n });\n\n /** @ignore */\n protected override uidPrefix(): string {\n return 'ui-radio';\n }\n\n /** Focus the native input programmatically. */\n focus(options?: FocusOptions): void {\n this.inputEl().nativeElement.focus(options);\n }\n\n /** @ignore Native change fires only when this radio becomes checked. */\n protected onNativeChange(): void {\n const value = this.value();\n this.modelValue.set(value);\n this.emitChange(value);\n this.radioChange.emit(value);\n }\n\n /** @ignore */\n protected onBlur(event: FocusEvent): void {\n this.emitTouch();\n this.radioBlur.emit(event);\n }\n}\n","<label [class]=\"classes()\">\n <span class=\"ui-radio-control\">\n <input\n #inputEl\n type=\"radio\"\n class=\"ui-radio-input\"\n [id]=\"resolvedId()\"\n [checked]=\"checked()\"\n [disabled]=\"isDisabled()\"\n [required]=\"required()\"\n [attr.name]=\"name() || null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-invalid]=\"isInvalid() ? 'true' : null\"\n (change)=\"onNativeChange()\"\n (focus)=\"radioFocus.emit($event)\"\n (blur)=\"onBlur($event)\"\n />\n <span class=\"ui-radio-box\" aria-hidden=\"true\">\n <span class=\"ui-radio-dot\"></span>\n </span>\n </span>\n\n @if (label()) {\n <span class=\"ui-radio-label\">\n <span class=\"ui-radio-text\">{{ label() }}</span>\n @if (required()) {\n <span class=\"ui-radio-required\" aria-hidden=\"true\">*</span>\n }\n </span>\n }\n</label>\n","/*\n * Public API Surface of ui-kit/ui-radio\n */\n\nexport * from './lib/ui-radio';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAYA;;;;;;;;;;AAUG;AASG,MAAO,OAAqB,SAAQ,gBAAmB,CAAA;AAR7D,IAAA,WAAA,GAAA;;;QAUE,IAAA,CAAA,KAAK,GAAG,KAAK,CAAC,QAAQ;kFAAK;;AAE3B,QAAA,IAAA,CAAA,KAAK,GAAG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AAA,CAAA,67HAAA,CAAA,EAAA,CAAA,CAAA;;2FDFa,OAAO,EAAA,UAAA,EAAA,CAAA;kBARnB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,UAAU,EAAA,SAAA,EAGT;AACT,wBAAA,EAAE,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,UAAU,CAAC,aAAa,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE;AACpF,qBAAA,EAAA,QAAA,EAAA,6gCAAA,EAAA,MAAA,EAAA,CAAA,67HAAA,CAAA,EAAA;maAgB2E,SAAS,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE7CvF;;AAEG;;ACFH;;AAEG;;;;"}
@@ -3,7 +3,7 @@ import { input, numberAttribute, booleanAttribute, contentChild, TemplateRef, ou
3
3
  import { NG_VALUE_ACCESSOR } from '@angular/forms';
4
4
  import { NgTemplateOutlet } from '@angular/common';
5
5
  import { BaseFieldControl } from '@4sh/ui-kit/forms';
6
- import { UiIcon } from '@4sh/ui-kit/ui-icon';
6
+ import { UiIcon } from '@4sh/ui-kit/base/ui-icon';
7
7
 
8
8
  /**
9
9
  * ui-rating — headless rating component built over a native <input type="range">.
@@ -161,16 +161,16 @@ class UiRating extends BaseFieldControl {
161
161
  this.emitTouch();
162
162
  this.ratingBlur.emit(event);
163
163
  }
164
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiRating, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
165
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: UiRating, isStandalone: true, selector: "ui-rating", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, stars: { classPropertyName: "stars", publicName: "stars", isSignal: true, isRequired: false, transformFunction: null }, allowHalf: { classPropertyName: "allowHalf", publicName: "allowHalf", isSignal: true, isRequired: false, transformFunction: null }, cancel: { classPropertyName: "cancel", publicName: "cancel", isSignal: true, isRequired: false, transformFunction: null }, autofocus: { classPropertyName: "autofocus", publicName: "autofocus", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { rateChange: "rateChange", ratingFocus: "ratingFocus", ratingBlur: "ratingBlur" }, providers: [
164
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiRating, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
165
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: UiRating, isStandalone: true, selector: "ui-rating", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, stars: { classPropertyName: "stars", publicName: "stars", isSignal: true, isRequired: false, transformFunction: null }, allowHalf: { classPropertyName: "allowHalf", publicName: "allowHalf", isSignal: true, isRequired: false, transformFunction: null }, cancel: { classPropertyName: "cancel", publicName: "cancel", isSignal: true, isRequired: false, transformFunction: null }, autofocus: { classPropertyName: "autofocus", publicName: "autofocus", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { rateChange: "rateChange", ratingFocus: "ratingFocus", ratingBlur: "ratingBlur" }, providers: [
166
166
  { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiRating), multi: true },
167
- ], queries: [{ propertyName: "onIconTemplate", first: true, predicate: ["onIcon"], descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "offIconTemplate", first: true, predicate: ["offIcon"], descendants: true, read: TemplateRef, isSignal: true }], viewQueries: [{ propertyName: "inputEl", first: true, predicate: ["inputEl"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div [class]=\"classes()\" (mouseleave)=\"clearHover()\">\n <!-- autofocus is a deliberate opt-in input of the component (default false). -->\n <!-- eslint-disable @angular-eslint/template/no-autofocus -->\n <input #inputEl\n type=\"range\"\n class=\"ui-rating-input\"\n min=\"0\" [max]=\"stars()\" [step]=\"step()\"\n [id]=\"resolvedId()\"\n [name]=\"name()\"\n [disabled]=\"isDisabled()\"\n [required]=\"required()\"\n [attr.autofocus]=\"autofocus() ? true : null\"\n [attr.readonly]=\"readonly() ? true : null\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [tabindex]=\"tabindex() ?? 0\"\n [value]=\"currentValue()\"\n (input)=\"onNativeChange($event)\"\n (focus)=\"onFocus($event)\"\n (blur)=\"onBlur($event)\">\n <!-- eslint-enable @angular-eslint/template/no-autofocus -->\n\n <div class=\"ui-rating-stars\">\n @for (star of starList(); track star.index) {\n <!-- Purely visual stars: focus and keyboard are carried by\n the native <input type=\"range\"> above. -->\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -->\n <div class=\"ui-rating-icon\"\n (click)=\"rate(star.index, $event)\"\n (mousemove)=\"setHover(star.index, $event)\">\n <!-- The \"on\" icon is stacked over the \"off\" one and clipped to `fill`:\n a half star works with any icon family and any projected template. -->\n <span class=\"ui-rating-icon-stack\">\n <span class=\"ui-rating-icon-base\">\n <ng-container *ngTemplateOutlet=\"offIconTemplate() || defaultOffIcon; context: { $implicit: star.index, active: star.active, fill: star.fill }\" />\n </span>\n @if (star.fill > 0) {\n <span class=\"ui-rating-icon-fill\" [style.--ui-rating-fill]=\"star.fill\">\n <ng-container *ngTemplateOutlet=\"onIconTemplate() || defaultOnIcon; context: { $implicit: star.index, active: star.active, fill: star.fill }\" />\n </span>\n }\n </span>\n </div>\n }\n </div>\n</div>\n\n<ng-template #defaultOnIcon>\n <ui-icon name=\"star\" type=\"solid\" [size]=\"size()\" />\n</ng-template>\n\n<ng-template #defaultOffIcon>\n <ui-icon name=\"star\" type=\"outline\" [size]=\"size()\" />\n</ng-template>\n", styles: [".ui-rating{position:relative;display:inline-flex;align-items:center}.ui-rating-input{position:absolute;inset:0;z-index:1;width:100%;height:100%;margin:0;opacity:0;cursor:inherit;pointer-events:none}.ui-rating-stars{display:flex;gap:var(--units-2xs)}.ui-rating._size-sm .ui-rating-stars,.ui-rating._size-md .ui-rating-stars,.ui-rating._size-default .ui-rating-stars,.ui-rating._size-lg .ui-rating-stars,.ui-rating._size-xl .ui-rating-stars{gap:var(--units-2xs)}.ui-rating._vertical .ui-rating-stars{flex-direction:column}.ui-rating-icon{display:flex;align-items:center;justify-content:center;padding:var(--units-2xs);cursor:pointer;border-radius:var(--radius-full);pointer-events:auto}.ui-rating-icon-stack{position:relative;display:flex;line-height:1;color:var(--form-low-content-default);transition:color var(--transition-default) var(--transition-easeinout)}.ui-rating-icon-base,.ui-rating-icon-fill{display:flex;align-items:center;justify-content:center}.ui-rating-icon-fill{position:absolute;inset:0;color:var(--form-high-content-checked);clip-path:inset(0 calc((1 - var(--ui-rating-fill, 1)) * 100%) 0 0);transition:color var(--transition-default) var(--transition-easeinout)}.ui-rating._disabled,.ui-rating._disabled .ui-rating-icon{cursor:not-allowed}.ui-rating._disabled .ui-rating-icon-stack{color:var(--form-low-content-disabled)}.ui-rating._disabled .ui-rating-icon-fill{color:var(--form-high-content-disabled)}.ui-rating._readonly .ui-rating-icon{cursor:default}.ui-rating._invalid .ui-rating-icon-stack{color:var(--form-error-content-default)}.ui-rating._invalid .ui-rating-icon-fill{color:var(--form-error-content-checked)}:host-context([dir=rtl]) .ui-rating-icon-fill{clip-path:inset(0 0 0 calc((1 - var(--ui-rating-fill, 1)) * 100%))}\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"] }] }); }
167
+ ], queries: [{ propertyName: "onIconTemplate", first: true, predicate: ["onIcon"], descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "offIconTemplate", first: true, predicate: ["offIcon"], descendants: true, read: TemplateRef, isSignal: true }], viewQueries: [{ propertyName: "inputEl", first: true, predicate: ["inputEl"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div [class]=\"classes()\" (mouseleave)=\"clearHover()\">\n <!-- autofocus is a deliberate opt-in input of the component (default false). -->\n <!-- eslint-disable @angular-eslint/template/no-autofocus -->\n <input #inputEl\n type=\"range\"\n class=\"ui-rating-input\"\n min=\"0\" [max]=\"stars()\" [step]=\"step()\"\n [id]=\"resolvedId()\"\n [name]=\"name()\"\n [disabled]=\"isDisabled()\"\n [required]=\"required()\"\n [attr.autofocus]=\"autofocus() ? true : null\"\n [attr.readonly]=\"readonly() ? true : null\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [tabindex]=\"tabindex() ?? 0\"\n [value]=\"currentValue()\"\n (input)=\"onNativeChange($event)\"\n (focus)=\"onFocus($event)\"\n (blur)=\"onBlur($event)\">\n <!-- eslint-enable @angular-eslint/template/no-autofocus -->\n\n <div class=\"ui-rating-stars\">\n @for (star of starList(); track star.index) {\n <!-- Purely visual stars: focus and keyboard are carried by\n the native <input type=\"range\"> above. -->\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -->\n <div class=\"ui-rating-icon\"\n (click)=\"rate(star.index, $event)\"\n (mousemove)=\"setHover(star.index, $event)\">\n <!-- The \"on\" icon is stacked over the \"off\" one and clipped to `fill`:\n a half star works with any icon family and any projected template. -->\n <span class=\"ui-rating-icon-stack\">\n <span class=\"ui-rating-icon-base\">\n <ng-container *ngTemplateOutlet=\"offIconTemplate() || defaultOffIcon; context: { $implicit: star.index, active: star.active, fill: star.fill }\" />\n </span>\n @if (star.fill > 0) {\n <span class=\"ui-rating-icon-fill\" [style.--ui-rating-fill]=\"star.fill\">\n <ng-container *ngTemplateOutlet=\"onIconTemplate() || defaultOnIcon; context: { $implicit: star.index, active: star.active, fill: star.fill }\" />\n </span>\n }\n </span>\n </div>\n }\n </div>\n</div>\n\n<ng-template #defaultOnIcon>\n <ui-icon name=\"star\" type=\"solid\" [size]=\"size()\" />\n</ng-template>\n\n<ng-template #defaultOffIcon>\n <ui-icon name=\"star\" type=\"outline\" [size]=\"size()\" />\n</ng-template>\n", styles: [".ui-rating{position:relative;display:inline-flex;align-items:center}.ui-rating-input{position:absolute;inset:0;z-index:1;width:100%;height:100%;margin:0;opacity:0;cursor:inherit;pointer-events:none}.ui-rating-stars{display:flex;gap:var(--ui-rating-gap, var(--units-2xs))}.ui-rating._size-sm .ui-rating-stars{gap:var(--ui-rating-gap-sm, var(--units-2xs))}.ui-rating._size-md .ui-rating-stars{gap:var(--ui-rating-gap-md, var(--units-2xs))}.ui-rating._size-default .ui-rating-stars{gap:var(--ui-rating-gap, var(--units-2xs))}.ui-rating._size-lg .ui-rating-stars{gap:var(--ui-rating-gap-lg, var(--units-2xs))}.ui-rating._size-xl .ui-rating-stars{gap:var(--ui-rating-gap-xl, var(--units-2xs))}.ui-rating._vertical .ui-rating-stars{flex-direction:column}.ui-rating-icon{display:flex;align-items:center;justify-content:center;padding:var(--ui-rating-icon-padding, var(--units-2xs));cursor:pointer;border-radius:var(--ui-rating-icon-radius, var(--radius-full));pointer-events:auto}.ui-rating-icon-stack{position:relative;display:flex;line-height:1;color:var(--ui-rating-icon-color, var(--form-low-content-default));transition:color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-rating-icon-base,.ui-rating-icon-fill{display:flex;align-items:center;justify-content:center}.ui-rating-icon-fill{position:absolute;inset:0;color:var(--ui-rating-icon-fill-color, var(--form-high-content-checked));clip-path:inset(0 calc((1 - var(--ui-rating-fill, 1)) * 100%) 0 0);transition:color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-rating._disabled,.ui-rating._disabled .ui-rating-icon{cursor:not-allowed}.ui-rating._disabled .ui-rating-icon-stack{color:var(--form-low-content-disabled)}.ui-rating._disabled .ui-rating-icon-fill{color:var(--form-high-content-disabled)}.ui-rating._readonly .ui-rating-icon{cursor:default}.ui-rating._invalid .ui-rating-icon-stack{color:var(--form-error-content-default)}.ui-rating._invalid .ui-rating-icon-fill{color:var(--form-error-content-checked)}:host-context([dir=rtl]) .ui-rating-icon-fill{clip-path:inset(0 0 0 calc((1 - var(--ui-rating-fill, 1)) * 100%))}\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"] }] }); }
168
168
  }
169
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiRating, decorators: [{
169
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiRating, decorators: [{
170
170
  type: Component,
171
171
  args: [{ selector: 'ui-rating', standalone: true, imports: [UiIcon, NgTemplateOutlet], providers: [
172
172
  { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiRating), multi: true },
173
- ], template: "<div [class]=\"classes()\" (mouseleave)=\"clearHover()\">\n <!-- autofocus is a deliberate opt-in input of the component (default false). -->\n <!-- eslint-disable @angular-eslint/template/no-autofocus -->\n <input #inputEl\n type=\"range\"\n class=\"ui-rating-input\"\n min=\"0\" [max]=\"stars()\" [step]=\"step()\"\n [id]=\"resolvedId()\"\n [name]=\"name()\"\n [disabled]=\"isDisabled()\"\n [required]=\"required()\"\n [attr.autofocus]=\"autofocus() ? true : null\"\n [attr.readonly]=\"readonly() ? true : null\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [tabindex]=\"tabindex() ?? 0\"\n [value]=\"currentValue()\"\n (input)=\"onNativeChange($event)\"\n (focus)=\"onFocus($event)\"\n (blur)=\"onBlur($event)\">\n <!-- eslint-enable @angular-eslint/template/no-autofocus -->\n\n <div class=\"ui-rating-stars\">\n @for (star of starList(); track star.index) {\n <!-- Purely visual stars: focus and keyboard are carried by\n the native <input type=\"range\"> above. -->\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -->\n <div class=\"ui-rating-icon\"\n (click)=\"rate(star.index, $event)\"\n (mousemove)=\"setHover(star.index, $event)\">\n <!-- The \"on\" icon is stacked over the \"off\" one and clipped to `fill`:\n a half star works with any icon family and any projected template. -->\n <span class=\"ui-rating-icon-stack\">\n <span class=\"ui-rating-icon-base\">\n <ng-container *ngTemplateOutlet=\"offIconTemplate() || defaultOffIcon; context: { $implicit: star.index, active: star.active, fill: star.fill }\" />\n </span>\n @if (star.fill > 0) {\n <span class=\"ui-rating-icon-fill\" [style.--ui-rating-fill]=\"star.fill\">\n <ng-container *ngTemplateOutlet=\"onIconTemplate() || defaultOnIcon; context: { $implicit: star.index, active: star.active, fill: star.fill }\" />\n </span>\n }\n </span>\n </div>\n }\n </div>\n</div>\n\n<ng-template #defaultOnIcon>\n <ui-icon name=\"star\" type=\"solid\" [size]=\"size()\" />\n</ng-template>\n\n<ng-template #defaultOffIcon>\n <ui-icon name=\"star\" type=\"outline\" [size]=\"size()\" />\n</ng-template>\n", styles: [".ui-rating{position:relative;display:inline-flex;align-items:center}.ui-rating-input{position:absolute;inset:0;z-index:1;width:100%;height:100%;margin:0;opacity:0;cursor:inherit;pointer-events:none}.ui-rating-stars{display:flex;gap:var(--units-2xs)}.ui-rating._size-sm .ui-rating-stars,.ui-rating._size-md .ui-rating-stars,.ui-rating._size-default .ui-rating-stars,.ui-rating._size-lg .ui-rating-stars,.ui-rating._size-xl .ui-rating-stars{gap:var(--units-2xs)}.ui-rating._vertical .ui-rating-stars{flex-direction:column}.ui-rating-icon{display:flex;align-items:center;justify-content:center;padding:var(--units-2xs);cursor:pointer;border-radius:var(--radius-full);pointer-events:auto}.ui-rating-icon-stack{position:relative;display:flex;line-height:1;color:var(--form-low-content-default);transition:color var(--transition-default) var(--transition-easeinout)}.ui-rating-icon-base,.ui-rating-icon-fill{display:flex;align-items:center;justify-content:center}.ui-rating-icon-fill{position:absolute;inset:0;color:var(--form-high-content-checked);clip-path:inset(0 calc((1 - var(--ui-rating-fill, 1)) * 100%) 0 0);transition:color var(--transition-default) var(--transition-easeinout)}.ui-rating._disabled,.ui-rating._disabled .ui-rating-icon{cursor:not-allowed}.ui-rating._disabled .ui-rating-icon-stack{color:var(--form-low-content-disabled)}.ui-rating._disabled .ui-rating-icon-fill{color:var(--form-high-content-disabled)}.ui-rating._readonly .ui-rating-icon{cursor:default}.ui-rating._invalid .ui-rating-icon-stack{color:var(--form-error-content-default)}.ui-rating._invalid .ui-rating-icon-fill{color:var(--form-error-content-checked)}:host-context([dir=rtl]) .ui-rating-icon-fill{clip-path:inset(0 0 0 calc((1 - var(--ui-rating-fill, 1)) * 100%))}\n"] }]
173
+ ], template: "<div [class]=\"classes()\" (mouseleave)=\"clearHover()\">\n <!-- autofocus is a deliberate opt-in input of the component (default false). -->\n <!-- eslint-disable @angular-eslint/template/no-autofocus -->\n <input #inputEl\n type=\"range\"\n class=\"ui-rating-input\"\n min=\"0\" [max]=\"stars()\" [step]=\"step()\"\n [id]=\"resolvedId()\"\n [name]=\"name()\"\n [disabled]=\"isDisabled()\"\n [required]=\"required()\"\n [attr.autofocus]=\"autofocus() ? true : null\"\n [attr.readonly]=\"readonly() ? true : null\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [tabindex]=\"tabindex() ?? 0\"\n [value]=\"currentValue()\"\n (input)=\"onNativeChange($event)\"\n (focus)=\"onFocus($event)\"\n (blur)=\"onBlur($event)\">\n <!-- eslint-enable @angular-eslint/template/no-autofocus -->\n\n <div class=\"ui-rating-stars\">\n @for (star of starList(); track star.index) {\n <!-- Purely visual stars: focus and keyboard are carried by\n the native <input type=\"range\"> above. -->\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -->\n <div class=\"ui-rating-icon\"\n (click)=\"rate(star.index, $event)\"\n (mousemove)=\"setHover(star.index, $event)\">\n <!-- The \"on\" icon is stacked over the \"off\" one and clipped to `fill`:\n a half star works with any icon family and any projected template. -->\n <span class=\"ui-rating-icon-stack\">\n <span class=\"ui-rating-icon-base\">\n <ng-container *ngTemplateOutlet=\"offIconTemplate() || defaultOffIcon; context: { $implicit: star.index, active: star.active, fill: star.fill }\" />\n </span>\n @if (star.fill > 0) {\n <span class=\"ui-rating-icon-fill\" [style.--ui-rating-fill]=\"star.fill\">\n <ng-container *ngTemplateOutlet=\"onIconTemplate() || defaultOnIcon; context: { $implicit: star.index, active: star.active, fill: star.fill }\" />\n </span>\n }\n </span>\n </div>\n }\n </div>\n</div>\n\n<ng-template #defaultOnIcon>\n <ui-icon name=\"star\" type=\"solid\" [size]=\"size()\" />\n</ng-template>\n\n<ng-template #defaultOffIcon>\n <ui-icon name=\"star\" type=\"outline\" [size]=\"size()\" />\n</ng-template>\n", styles: [".ui-rating{position:relative;display:inline-flex;align-items:center}.ui-rating-input{position:absolute;inset:0;z-index:1;width:100%;height:100%;margin:0;opacity:0;cursor:inherit;pointer-events:none}.ui-rating-stars{display:flex;gap:var(--ui-rating-gap, var(--units-2xs))}.ui-rating._size-sm .ui-rating-stars{gap:var(--ui-rating-gap-sm, var(--units-2xs))}.ui-rating._size-md .ui-rating-stars{gap:var(--ui-rating-gap-md, var(--units-2xs))}.ui-rating._size-default .ui-rating-stars{gap:var(--ui-rating-gap, var(--units-2xs))}.ui-rating._size-lg .ui-rating-stars{gap:var(--ui-rating-gap-lg, var(--units-2xs))}.ui-rating._size-xl .ui-rating-stars{gap:var(--ui-rating-gap-xl, var(--units-2xs))}.ui-rating._vertical .ui-rating-stars{flex-direction:column}.ui-rating-icon{display:flex;align-items:center;justify-content:center;padding:var(--ui-rating-icon-padding, var(--units-2xs));cursor:pointer;border-radius:var(--ui-rating-icon-radius, var(--radius-full));pointer-events:auto}.ui-rating-icon-stack{position:relative;display:flex;line-height:1;color:var(--ui-rating-icon-color, var(--form-low-content-default));transition:color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-rating-icon-base,.ui-rating-icon-fill{display:flex;align-items:center;justify-content:center}.ui-rating-icon-fill{position:absolute;inset:0;color:var(--ui-rating-icon-fill-color, var(--form-high-content-checked));clip-path:inset(0 calc((1 - var(--ui-rating-fill, 1)) * 100%) 0 0);transition:color var(--ui-control-transition-duration, var(--transition-default)) var(--ui-control-transition-easing, var(--transition-easeinout))}.ui-rating._disabled,.ui-rating._disabled .ui-rating-icon{cursor:not-allowed}.ui-rating._disabled .ui-rating-icon-stack{color:var(--form-low-content-disabled)}.ui-rating._disabled .ui-rating-icon-fill{color:var(--form-high-content-disabled)}.ui-rating._readonly .ui-rating-icon{cursor:default}.ui-rating._invalid .ui-rating-icon-stack{color:var(--form-error-content-default)}.ui-rating._invalid .ui-rating-icon-fill{color:var(--form-error-content-checked)}:host-context([dir=rtl]) .ui-rating-icon-fill{clip-path:inset(0 0 0 calc((1 - var(--ui-rating-fill, 1)) * 100%))}\n"] }]
174
174
  }], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], stars: [{ type: i0.Input, args: [{ isSignal: true, alias: "stars", required: false }] }], allowHalf: [{ type: i0.Input, args: [{ isSignal: true, alias: "allowHalf", required: false }] }], cancel: [{ type: i0.Input, args: [{ isSignal: true, alias: "cancel", required: false }] }], autofocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "autofocus", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], onIconTemplate: [{ type: i0.ContentChild, args: ['onIcon', { ...{ read: (TemplateRef) }, isSignal: true }] }], offIconTemplate: [{ type: i0.ContentChild, args: ['offIcon', { ...{ read: (TemplateRef) }, isSignal: true }] }], rateChange: [{ type: i0.Output, args: ["rateChange"] }], ratingFocus: [{ type: i0.Output, args: ["ratingFocus"] }], ratingBlur: [{ type: i0.Output, args: ["ratingBlur"] }], inputEl: [{ type: i0.ViewChild, args: ['inputEl', { isSignal: true }] }] } });
175
175
 
176
176
  /*
@@ -182,4 +182,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
182
182
  */
183
183
 
184
184
  export { UiRating };
185
- //# sourceMappingURL=4sh-ui-kit-ui-rating.mjs.map
185
+ //# sourceMappingURL=4sh-ui-kit-forms-ui-rating.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"4sh-ui-kit-forms-ui-rating.mjs","sources":["../../../projects/ui-kit/forms/ui-rating/src/lib/ui-rating.ts","../../../projects/ui-kit/forms/ui-rating/src/lib/ui-rating.html","../../../projects/ui-kit/forms/ui-rating/src/public-api.ts","../../../projects/ui-kit/forms/ui-rating/src/4sh-ui-kit-forms-ui-rating.ts"],"sourcesContent":["import {\n booleanAttribute,\n Component,\n computed,\n contentChild,\n ElementRef,\n forwardRef,\n input,\n numberAttribute,\n output,\n signal,\n TemplateRef,\n viewChild,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { BaseFieldControl } from '@4sh/ui-kit/forms';\nimport { UiIcon, UiIconSize } from '@4sh/ui-kit/base/ui-icon';\n\nexport interface UiRatingIconContext {\n /** The current star value (1-based index). */\n $implicit: number;\n /** Whether this star is active (value <= current rating). */\n active: boolean;\n /** Filled portion of this star, `0` to `1` (hover preview included). */\n fill: number;\n}\n\n/**\n * ui-rating — headless rating component built over a native <input type=\"range\">.\n */\n@Component({\n selector: 'ui-rating',\n templateUrl: './ui-rating.html',\n styleUrl: './ui-rating.scss',\n standalone: true,\n imports: [UiIcon, NgTemplateOutlet],\n providers: [\n { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiRating), multi: true },\n ],\n})\nexport class UiRating extends BaseFieldControl<number | null> {\n /** Size of the rating stars. */\n size = input<UiIconSize>('default');\n /** Number of stars to display. */\n stars = input(5, { transform: numberAttribute });\n /** Enables half-star notation: the value moves by 0.5 (click on a half, arrow keys). */\n allowHalf = input(false, { transform: booleanAttribute });\n /** Allows clearing the rating by clicking the current value. */\n cancel = input(true, { transform: booleanAttribute });\n /** Native autofocus attribute. */\n autofocus = input(false, { transform: booleanAttribute });\n /** Orientation of the rating control. */\n orientation = input<'horizontal' | 'vertical'>('horizontal');\n\n /** Custom template for active stars. */\n onIconTemplate = contentChild('onIcon', { read: TemplateRef<UiRatingIconContext> });\n /** Custom template for inactive stars. */\n offIconTemplate = contentChild('offIcon', { read: TemplateRef<UiRatingIconContext> });\n\n /** Emitted when rating changes (`null` = cleared / not rated). */\n rateChange = output<number | null>();\n /** Emitted when the native input receives focus. */\n ratingFocus = output<FocusEvent>();\n /** Emitted when the native input loses focus. */\n ratingBlur = output<FocusEvent>();\n\n /** @ignore */\n private readonly inputEl = viewChild.required<ElementRef<HTMLInputElement>>('inputEl');\n /** @ignore Redeclared over the base signal: `null` = not rated (never `undefined`). */\n protected override readonly modelValue = signal<number | null>(null);\n /** @ignore */\n protected readonly hoverValue = signal<number>(0);\n /** @ignore Selection granularity: one star, or a half when `allowHalf`. */\n protected readonly step = computed(() => (this.allowHalf() ? 0.5 : 1));\n /**\n * @ignore Numeric value used for display comparisons (`null` renders as 0 stars).\n * Floored to the granularity so an out-of-step value (an average pushed by the\n * host, e.g. 4.3) never renders a fill the user could not have selected.\n */\n protected readonly currentValue = computed(() => {\n const step = this.step();\n return Math.floor(Math.max(0, this.modelValue() ?? 0) / step) * step;\n });\n\n /** @ignore Per-star render model; `fill` (0 → 1) drives the clipped overlay. */\n protected readonly starList = computed(() => {\n const value = this.currentValue();\n const preview = this.hoverValue() || value;\n return Array.from({ length: this.stars() }, (_, i) => ({\n index: i + 1,\n fill: Math.min(1, Math.max(0, preview - i)),\n active: i + 1 <= value,\n }));\n });\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-rating', `_size-${this.size()}`];\n if (this.orientation() === 'vertical') c.push('_vertical');\n if (this.isDisabled()) c.push('_disabled');\n if (this.readonly()) c.push('_readonly');\n if (this.isInvalid()) c.push('_invalid');\n return c.join(' ');\n });\n\n override writeValue(value: number | null): void {\n this.modelValue.set(value ?? null);\n }\n\n /** @ignore */\n protected override uidPrefix(): string {\n return 'ui-rating';\n }\n\n focus(options?: FocusOptions): void {\n this.inputEl().nativeElement.focus(options);\n }\n\n /** @ignore Native change is triggered by keyboard or programmatic native actions */\n protected onNativeChange(event: Event): void {\n const input = event.target as HTMLInputElement;\n const value = parseFloat(input.value);\n if (this.isDisabled() || this.readonly() || Number.isNaN(value)) {\n // Revert the native range so its value stays in sync with the model.\n input.value = String(this.currentValue());\n return;\n }\n // The range's 0 means \"not rated\" → null at the public boundary.\n this.updateValue(value === 0 ? null : value);\n }\n\n /** @ignore */\n protected rate(star: number, event: MouseEvent): void {\n if (this.isDisabled() || this.readonly()) return;\n\n const value = this.pointedValue(star, event);\n let newValue: number | null = value;\n if (this.cancel() && this.modelValue() === value) {\n newValue = null;\n }\n\n this.updateValue(newValue);\n this.focus();\n }\n\n /**\n * @ignore Value pointed at by the cursor: the star itself, or its first half\n * when `allowHalf`. Reads the writing direction so the \"first half\" stays the\n * leading one in RTL, like the clip applied by the stylesheet.\n */\n private pointedValue(star: number, event: MouseEvent): number {\n if (!this.allowHalf()) return star;\n const el = event.currentTarget as HTMLElement;\n const { left, width } = el.getBoundingClientRect();\n if (!width) return star;\n const ratio = (event.clientX - left) / width;\n const leadingHalf = getComputedStyle(el).direction === 'rtl' ? ratio > 0.5 : ratio < 0.5;\n return leadingHalf ? star - 0.5 : star;\n }\n\n private updateValue(value: number | null): void {\n if (this.modelValue() !== value) {\n this.modelValue.set(value);\n this.emitChange(value);\n this.rateChange.emit(value);\n }\n }\n\n /** @ignore Bound to `mousemove`: the preview must follow the cursor across the two halves. */\n protected setHover(star: number, event: MouseEvent): void {\n if (this.isDisabled() || this.readonly()) return;\n this.hoverValue.set(this.pointedValue(star, event));\n }\n\n /** @ignore */\n protected clearHover(): void {\n if (this.isDisabled() || this.readonly()) return;\n this.hoverValue.set(0);\n }\n\n /** @ignore */\n protected onFocus(event: FocusEvent): void {\n this.ratingFocus.emit(event);\n }\n\n /** @ignore */\n protected onBlur(event: FocusEvent): void {\n this.emitTouch();\n this.ratingBlur.emit(event);\n }\n}\n","<div [class]=\"classes()\" (mouseleave)=\"clearHover()\">\n <!-- autofocus is a deliberate opt-in input of the component (default false). -->\n <!-- eslint-disable @angular-eslint/template/no-autofocus -->\n <input #inputEl\n type=\"range\"\n class=\"ui-rating-input\"\n min=\"0\" [max]=\"stars()\" [step]=\"step()\"\n [id]=\"resolvedId()\"\n [name]=\"name()\"\n [disabled]=\"isDisabled()\"\n [required]=\"required()\"\n [attr.autofocus]=\"autofocus() ? true : null\"\n [attr.readonly]=\"readonly() ? true : null\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [tabindex]=\"tabindex() ?? 0\"\n [value]=\"currentValue()\"\n (input)=\"onNativeChange($event)\"\n (focus)=\"onFocus($event)\"\n (blur)=\"onBlur($event)\">\n <!-- eslint-enable @angular-eslint/template/no-autofocus -->\n\n <div class=\"ui-rating-stars\">\n @for (star of starList(); track star.index) {\n <!-- Purely visual stars: focus and keyboard are carried by\n the native <input type=\"range\"> above. -->\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -->\n <div class=\"ui-rating-icon\"\n (click)=\"rate(star.index, $event)\"\n (mousemove)=\"setHover(star.index, $event)\">\n <!-- The \"on\" icon is stacked over the \"off\" one and clipped to `fill`:\n a half star works with any icon family and any projected template. -->\n <span class=\"ui-rating-icon-stack\">\n <span class=\"ui-rating-icon-base\">\n <ng-container *ngTemplateOutlet=\"offIconTemplate() || defaultOffIcon; context: { $implicit: star.index, active: star.active, fill: star.fill }\" />\n </span>\n @if (star.fill > 0) {\n <span class=\"ui-rating-icon-fill\" [style.--ui-rating-fill]=\"star.fill\">\n <ng-container *ngTemplateOutlet=\"onIconTemplate() || defaultOnIcon; context: { $implicit: star.index, active: star.active, fill: star.fill }\" />\n </span>\n }\n </span>\n </div>\n }\n </div>\n</div>\n\n<ng-template #defaultOnIcon>\n <ui-icon name=\"star\" type=\"solid\" [size]=\"size()\" />\n</ng-template>\n\n<ng-template #defaultOffIcon>\n <ui-icon name=\"star\" type=\"outline\" [size]=\"size()\" />\n</ng-template>\n","/*\n * Public API Surface of ui-kit/ui-rating\n */\n\nexport * from './lib/ui-rating';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AA4BA;;AAEG;AAWG,MAAO,QAAS,SAAQ,gBAA+B,CAAA;AAV7D,IAAA,WAAA,GAAA;;;QAYE,IAAA,CAAA,IAAI,GAAG,KAAK,CAAa,SAAS;iFAAC;;QAEnC,IAAA,CAAA,KAAK,GAAG,KAAK,CAAC,CAAC,6EAAI,SAAS,EAAE,eAAe,EAAA,CAAG;;QAEhD,IAAA,CAAA,SAAS,GAAG,KAAK,CAAC,KAAK,iFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;QAEzD,IAAA,CAAA,MAAM,GAAG,KAAK,CAAC,IAAI,8EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;QAErD,IAAA,CAAA,SAAS,GAAG,KAAK,CAAC,KAAK,iFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;QAEzD,IAAA,CAAA,WAAW,GAAG,KAAK,CAA4B,YAAY;wFAAC;;Q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E,WAAgC,CAAA,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAEnD,SAAS,EAAA,EAAA,GAAE,EAAE,IAAI,GAAE,WAAgC,CAAA,EAAE,4OAUR,SAAS,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEpEvF;;AAEG;;ACFH;;AAEG;;;;"}
@@ -3,7 +3,7 @@ import { input, booleanAttribute, output, inject, ElementRef, DestroyRef, viewCh
3
3
  import { NgTemplateOutlet } from '@angular/common';
4
4
  import { NG_VALUE_ACCESSOR } from '@angular/forms';
5
5
  import { BaseFieldControl } from '@4sh/ui-kit/forms';
6
- import { UiIcon } from '@4sh/ui-kit/ui-icon';
6
+ import { UiIcon } from '@4sh/ui-kit/base/ui-icon';
7
7
 
8
8
  /**
9
9
  * ui-segment-control — headless segmented control for choosing one (or, with
@@ -346,12 +346,12 @@ class UiSegmentControl extends BaseFieldControl {
346
346
  return a[key] === b[key];
347
347
  return a === b;
348
348
  }
349
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiSegmentControl, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
350
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: UiSegmentControl, isStandalone: true, selector: "ui-segment-control", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, optionLabel: { classPropertyName: "optionLabel", publicName: "optionLabel", isSignal: true, isRequired: false, transformFunction: null }, optionValue: { classPropertyName: "optionValue", publicName: "optionValue", isSignal: true, isRequired: false, transformFunction: null }, optionDisabled: { classPropertyName: "optionDisabled", publicName: "optionDisabled", isSignal: true, isRequired: false, transformFunction: null }, optionIcon: { classPropertyName: "optionIcon", publicName: "optionIcon", isSignal: true, isRequired: false, transformFunction: null }, dataKey: { classPropertyName: "dataKey", publicName: "dataKey", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, allowEmpty: { classPropertyName: "allowEmpty", publicName: "allowEmpty", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null }, motion: { classPropertyName: "motion", publicName: "motion", isSignal: true, isRequired: false, transformFunction: null }, itemTemplate: { classPropertyName: "itemTemplate", publicName: "itemTemplate", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selectionChange: "selectionChange", optionClick: "optionClick" }, host: { listeners: { "keydown": "onKeydown($event)", "focusout": "onFocusOut($event)" }, properties: { "class._small": "size() === 'small'", "class._vertical": "orientation() === 'vertical'", "class._fluid": "fluid()", "class._multiple": "multiple()", "class._disabled": "isDisabled()", "class._invalid": "isInvalid()", "class._no-motion": "!motion()", "attr.role": "multiple() ? 'group' : 'radiogroup'", "attr.aria-label": "ariaLabel() || null", "attr.aria-labelledby": "ariaLabelledBy() || null", "attr.aria-invalid": "isInvalid() ? 'true' : null", "attr.aria-disabled": "isDisabled() ? 'true' : null" }, classAttribute: "ui-segment-control" }, providers: [
349
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiSegmentControl, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
350
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: UiSegmentControl, isStandalone: true, selector: "ui-segment-control", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, optionLabel: { classPropertyName: "optionLabel", publicName: "optionLabel", isSignal: true, isRequired: false, transformFunction: null }, optionValue: { classPropertyName: "optionValue", publicName: "optionValue", isSignal: true, isRequired: false, transformFunction: null }, optionDisabled: { classPropertyName: "optionDisabled", publicName: "optionDisabled", isSignal: true, isRequired: false, transformFunction: null }, optionIcon: { classPropertyName: "optionIcon", publicName: "optionIcon", isSignal: true, isRequired: false, transformFunction: null }, dataKey: { classPropertyName: "dataKey", publicName: "dataKey", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, allowEmpty: { classPropertyName: "allowEmpty", publicName: "allowEmpty", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null }, motion: { classPropertyName: "motion", publicName: "motion", isSignal: true, isRequired: false, transformFunction: null }, itemTemplate: { classPropertyName: "itemTemplate", publicName: "itemTemplate", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selectionChange: "selectionChange", optionClick: "optionClick" }, host: { listeners: { "keydown": "onKeydown($event)", "focusout": "onFocusOut($event)" }, properties: { "class._small": "size() === 'small'", "class._vertical": "orientation() === 'vertical'", "class._fluid": "fluid()", "class._multiple": "multiple()", "class._disabled": "isDisabled()", "class._invalid": "isInvalid()", "class._no-motion": "!motion()", "attr.role": "multiple() ? 'group' : 'radiogroup'", "attr.aria-label": "ariaLabel() || null", "attr.aria-labelledby": "ariaLabelledBy() || null", "attr.aria-invalid": "isInvalid() ? 'true' : null", "attr.aria-disabled": "isDisabled() ? 'true' : null" }, classAttribute: "ui-segment-control" }, providers: [
351
351
  { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiSegmentControl), multi: true },
352
- ], viewQueries: [{ propertyName: "optionEls", predicate: ["optionBtn"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "@if (showThumb()) {\n <span\n class=\"ui-segment-control-thumb\"\n aria-hidden=\"true\"\n [style.transform]=\"thumbTransform()\"\n [style.width.px]=\"thumb()?.w\"\n [style.height.px]=\"thumb()?.h\"\n ></span>\n}\n\n@for (option of normalizedOptions(); track option.key) {\n <button\n #optionBtn\n type=\"button\"\n class=\"ui-segment-control-option\"\n [class._selected]=\"option.selected\"\n [disabled]=\"option.disabled\"\n [attr.role]=\"multiple() ? null : 'radio'\"\n [attr.aria-checked]=\"multiple() ? null : option.selected\"\n [attr.aria-pressed]=\"multiple() ? option.selected : null\"\n [attr.aria-label]=\"option.ariaLabel\"\n [attr.tabindex]=\"tabindexFor(option.index)\"\n (click)=\"select(option, $event)\"\n (focus)=\"onOptionFocus(option.index)\"\n >\n @if (itemTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: option.original,\n option: option.original,\n selected: option.selected,\n index: option.index,\n }\"\n />\n } @else {\n @if (option.icon) {\n <ui-icon class=\"ui-segment-control-icon\" [name]=\"option.icon\" [size]=\"iconSize()\" />\n }\n @if (option.label) {\n <span class=\"ui-segment-control-label\" [attr.data-label]=\"option.label\">{{ option.label }}</span>\n }\n }\n </button>\n}\n", styles: [":host{position:relative;display:inline-flex;align-items:stretch;box-sizing:border-box;padding:var(--units-xs);gap:0;border-radius:var(--radius-md);box-shadow:inset 0 0 0 var(--stroke-default) var(--global-border-default);font-family:var(--fontfamily-base);-webkit-user-select:none;user-select:none;vertical-align:middle;min-height:2.75rem}:host .ui-segment-control-option{min-height:2.25rem;min-width:2.25rem;padding:0 var(--units-default);font-size:var(--size-typography-text-default)}:host._small{min-height:2.5rem}:host._small .ui-segment-control-option{min-height:2rem;min-width:2rem;padding:0 var(--units-md);font-size:var(--size-typography-text-md)}.ui-segment-control-thumb{position:absolute;top:0;left:0;z-index:0;border-radius:var(--radius-sm);background-color:var(--actions-high-surface-default);pointer-events:none;transition:transform var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms),width var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms),height var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms)}@media(prefers-reduced-motion:reduce){.ui-segment-control-thumb{transition:none}}:root[data-motion=off] .ui-segment-control-thumb{transition:none}:host._no-motion .ui-segment-control-thumb{transition:none}.ui-segment-control-icon{line-height:0}.ui-segment-control-label{display:inline-flex;flex-direction:column;align-items:center}.ui-segment-control-label:after{content:attr(data-label);height:0;overflow:hidden;font-weight:var(--weight-bold);visibility:hidden;pointer-events:none;-webkit-user-select:none;user-select:none}.ui-segment-control-option{position:relative;z-index:1;display:inline-flex;align-items:center;justify-content:center;gap:var(--units-sm);box-sizing:border-box;border:0;border-radius:var(--radius-sm);background-color:transparent;color:var(--actions-low-content-default);font-family:inherit;font-weight:var(--weight-regular);line-height:1.2;white-space:nowrap;cursor:pointer;transition:background-color var(--transition-default) var(--transition-easeinout),color var(--transition-default) var(--transition-easeinout),box-shadow var(--transition-default) var(--transition-easeinout)}.ui-segment-control-option:hover:not(:disabled):not(._selected){background-color:var(--actions-low-surface-hover);color:var(--actions-low-content-hover)}.ui-segment-control-option:active:not(:disabled):not(._selected){background-color:var(--actions-low-surface-pressed);color:var(--actions-low-content-pressed)}.ui-segment-control-option:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) var(--actions-low-stroke-focused)}.ui-segment-control-option._selected{color:var(--actions-high-content-default);font-weight:var(--weight-bold)}.ui-segment-control-option._selected:focus-visible{box-shadow:0 0 0 var(--units-2xs) var(--actions-high-stroke-focused)}.ui-segment-control-option:disabled{cursor:not-allowed;color:var(--actions-low-content-disabled)}.ui-segment-control-option:disabled._selected{color:var(--actions-high-content-disabled)}:host._multiple .ui-segment-control-option._selected{background-color:var(--actions-high-surface-default)}:host._multiple .ui-segment-control-option._selected:hover:not(:disabled){background-color:var(--actions-high-surface-hover);color:var(--actions-high-content-hover)}:host._multiple .ui-segment-control-option._selected:active:not(:disabled){background-color:var(--actions-high-surface-pressed);color:var(--actions-high-content-pressed)}:host._multiple .ui-segment-control-option._selected:disabled{background-color:var(--actions-high-surface-disabled)}:host._fluid{display:flex;width:100%}:host._fluid .ui-segment-control-option{flex:1 1 0}:host._vertical{flex-direction:column;align-items:stretch}:host._vertical .ui-segment-control-option{width:100%}:host._invalid{box-shadow:inset 0 0 0 var(--stroke-default) var(--form-error-stroke-default)}:host._disabled{cursor:not-allowed}:host._disabled .ui-segment-control-thumb{background-color:var(--actions-high-surface-disabled)}\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"] }] }); }
352
+ ], viewQueries: [{ propertyName: "optionEls", predicate: ["optionBtn"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "@if (showThumb()) {\n <span\n class=\"ui-segment-control-thumb\"\n aria-hidden=\"true\"\n [style.transform]=\"thumbTransform()\"\n [style.width.px]=\"thumb()?.w\"\n [style.height.px]=\"thumb()?.h\"\n ></span>\n}\n\n@for (option of normalizedOptions(); track option.key) {\n <button\n #optionBtn\n type=\"button\"\n class=\"ui-segment-control-option\"\n [class._selected]=\"option.selected\"\n [disabled]=\"option.disabled\"\n [attr.role]=\"multiple() ? null : 'radio'\"\n [attr.aria-checked]=\"multiple() ? null : option.selected\"\n [attr.aria-pressed]=\"multiple() ? option.selected : null\"\n [attr.aria-label]=\"option.ariaLabel\"\n [attr.tabindex]=\"tabindexFor(option.index)\"\n (click)=\"select(option, $event)\"\n (focus)=\"onOptionFocus(option.index)\"\n >\n @if (itemTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: option.original,\n option: option.original,\n selected: option.selected,\n index: option.index,\n }\"\n />\n } @else {\n @if (option.icon) {\n <ui-icon class=\"ui-segment-control-icon\" [name]=\"option.icon\" [size]=\"iconSize()\" />\n }\n @if (option.label) {\n <span class=\"ui-segment-control-label\" [attr.data-label]=\"option.label\">{{ option.label }}</span>\n }\n }\n </button>\n}\n", styles: [":host{position:relative;display:inline-flex;align-items:stretch;box-sizing:border-box;padding:var(--ui-segment-control-padding, var(--units-xs));gap:var(--ui-segment-control-gap, 0);border-radius:var(--ui-segment-control-radius, var(--radius-md));box-shadow:inset 0 0 0 var(--ui-segment-control-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) var(--global-border-default);font-family:var(--fontfamily-base);-webkit-user-select:none;user-select:none;vertical-align:middle;min-height:var(--ui-segment-control-min-height, 2.75rem)}:host .ui-segment-control-option{min-height:var(--ui-segment-control-option-min-height, 2.25rem);min-width:var(--ui-segment-control-option-min-width, 2.25rem);padding:0 var(--ui-segment-control-option-padding-x, var(--units-default));font-size:var(--ui-segment-control-font-size, var(--size-typography-text-default))}:host._small{min-height:var(--ui-segment-control-min-height-small, 2.5rem)}:host._small .ui-segment-control-option{min-height:var(--ui-segment-control-option-min-height-small, 2rem);min-width:var(--ui-segment-control-option-min-width-small, 2rem);padding:0 var(--ui-segment-control-option-padding-x-small, var(--units-md));font-size:var(--ui-segment-control-font-size-small, var(--size-typography-text-md))}.ui-segment-control-thumb{position:absolute;top:0;left:0;z-index:0;border-radius:var(--ui-segment-control-thumb-radius, var(--radius-sm));background-color:var(--actions-high-surface-default);pointer-events:none;transition:transform var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms),width var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms),height var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms)}@media(prefers-reduced-motion:reduce){.ui-segment-control-thumb{transition:none}}:root[data-motion=off] .ui-segment-control-thumb{transition:none}:host._no-motion .ui-segment-control-thumb{transition:none}.ui-segment-control-icon{line-height:0}.ui-segment-control-label{display:inline-flex;flex-direction:column;align-items:center}.ui-segment-control-label:after{content:attr(data-label);height:0;overflow:hidden;font-weight:var(--weight-bold);visibility:hidden;pointer-events:none;-webkit-user-select:none;user-select:none}.ui-segment-control-option{position:relative;z-index:1;display:inline-flex;align-items:center;justify-content:center;gap:var(--ui-segment-control-option-gap, var(--units-sm));box-sizing:border-box;border:0;border-radius:var(--ui-segment-control-option-radius, var(--radius-sm));background-color:transparent;color:var(--actions-low-content-default);font-family:inherit;font-weight:var(--weight-regular);line-height:1.2;white-space:nowrap;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-segment-control-option:hover:not(:disabled):not(._selected){background-color:var(--actions-low-surface-hover);color:var(--actions-low-content-hover)}.ui-segment-control-option:active:not(:disabled):not(._selected){background-color:var(--actions-low-surface-pressed);color:var(--actions-low-content-pressed)}.ui-segment-control-option:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-segment-control-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--actions-low-stroke-focused)}.ui-segment-control-option._selected{color:var(--actions-high-content-default);font-weight:var(--weight-bold)}.ui-segment-control-option._selected:focus-visible{box-shadow:0 0 0 var(--ui-segment-control-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--actions-high-stroke-focused)}.ui-segment-control-option:disabled{cursor:not-allowed;color:var(--actions-low-content-disabled)}.ui-segment-control-option:disabled._selected{color:var(--actions-high-content-disabled)}:host._multiple .ui-segment-control-option._selected{background-color:var(--actions-high-surface-default)}:host._multiple .ui-segment-control-option._selected:hover:not(:disabled){background-color:var(--actions-high-surface-hover);color:var(--actions-high-content-hover)}:host._multiple .ui-segment-control-option._selected:active:not(:disabled){background-color:var(--actions-high-surface-pressed);color:var(--actions-high-content-pressed)}:host._multiple .ui-segment-control-option._selected:disabled{background-color:var(--actions-high-surface-disabled)}:host._fluid{display:flex;width:100%}:host._fluid .ui-segment-control-option{flex:1 1 0}:host._vertical{flex-direction:column;align-items:stretch}:host._vertical .ui-segment-control-option{width:100%}:host._invalid{box-shadow:inset 0 0 0 var(--ui-segment-control-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) var(--form-error-stroke-default)}:host._disabled{cursor:not-allowed}:host._disabled .ui-segment-control-thumb{background-color:var(--actions-high-surface-disabled)}\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"] }] }); }
353
353
  }
354
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiSegmentControl, decorators: [{
354
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiSegmentControl, decorators: [{
355
355
  type: Component,
356
356
  args: [{ selector: 'ui-segment-control', imports: [UiIcon, NgTemplateOutlet], providers: [
357
357
  { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiSegmentControl), multi: true },
@@ -371,7 +371,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
371
371
  '[attr.aria-disabled]': "isDisabled() ? 'true' : null",
372
372
  '(keydown)': 'onKeydown($event)',
373
373
  '(focusout)': 'onFocusOut($event)',
374
- }, template: "@if (showThumb()) {\n <span\n class=\"ui-segment-control-thumb\"\n aria-hidden=\"true\"\n [style.transform]=\"thumbTransform()\"\n [style.width.px]=\"thumb()?.w\"\n [style.height.px]=\"thumb()?.h\"\n ></span>\n}\n\n@for (option of normalizedOptions(); track option.key) {\n <button\n #optionBtn\n type=\"button\"\n class=\"ui-segment-control-option\"\n [class._selected]=\"option.selected\"\n [disabled]=\"option.disabled\"\n [attr.role]=\"multiple() ? null : 'radio'\"\n [attr.aria-checked]=\"multiple() ? null : option.selected\"\n [attr.aria-pressed]=\"multiple() ? option.selected : null\"\n [attr.aria-label]=\"option.ariaLabel\"\n [attr.tabindex]=\"tabindexFor(option.index)\"\n (click)=\"select(option, $event)\"\n (focus)=\"onOptionFocus(option.index)\"\n >\n @if (itemTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: option.original,\n option: option.original,\n selected: option.selected,\n index: option.index,\n }\"\n />\n } @else {\n @if (option.icon) {\n <ui-icon class=\"ui-segment-control-icon\" [name]=\"option.icon\" [size]=\"iconSize()\" />\n }\n @if (option.label) {\n <span class=\"ui-segment-control-label\" [attr.data-label]=\"option.label\">{{ option.label }}</span>\n }\n }\n </button>\n}\n", styles: [":host{position:relative;display:inline-flex;align-items:stretch;box-sizing:border-box;padding:var(--units-xs);gap:0;border-radius:var(--radius-md);box-shadow:inset 0 0 0 var(--stroke-default) var(--global-border-default);font-family:var(--fontfamily-base);-webkit-user-select:none;user-select:none;vertical-align:middle;min-height:2.75rem}:host .ui-segment-control-option{min-height:2.25rem;min-width:2.25rem;padding:0 var(--units-default);font-size:var(--size-typography-text-default)}:host._small{min-height:2.5rem}:host._small .ui-segment-control-option{min-height:2rem;min-width:2rem;padding:0 var(--units-md);font-size:var(--size-typography-text-md)}.ui-segment-control-thumb{position:absolute;top:0;left:0;z-index:0;border-radius:var(--radius-sm);background-color:var(--actions-high-surface-default);pointer-events:none;transition:transform var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms),width var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms),height var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms)}@media(prefers-reduced-motion:reduce){.ui-segment-control-thumb{transition:none}}:root[data-motion=off] .ui-segment-control-thumb{transition:none}:host._no-motion .ui-segment-control-thumb{transition:none}.ui-segment-control-icon{line-height:0}.ui-segment-control-label{display:inline-flex;flex-direction:column;align-items:center}.ui-segment-control-label:after{content:attr(data-label);height:0;overflow:hidden;font-weight:var(--weight-bold);visibility:hidden;pointer-events:none;-webkit-user-select:none;user-select:none}.ui-segment-control-option{position:relative;z-index:1;display:inline-flex;align-items:center;justify-content:center;gap:var(--units-sm);box-sizing:border-box;border:0;border-radius:var(--radius-sm);background-color:transparent;color:var(--actions-low-content-default);font-family:inherit;font-weight:var(--weight-regular);line-height:1.2;white-space:nowrap;cursor:pointer;transition:background-color var(--transition-default) var(--transition-easeinout),color var(--transition-default) var(--transition-easeinout),box-shadow var(--transition-default) var(--transition-easeinout)}.ui-segment-control-option:hover:not(:disabled):not(._selected){background-color:var(--actions-low-surface-hover);color:var(--actions-low-content-hover)}.ui-segment-control-option:active:not(:disabled):not(._selected){background-color:var(--actions-low-surface-pressed);color:var(--actions-low-content-pressed)}.ui-segment-control-option:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) var(--actions-low-stroke-focused)}.ui-segment-control-option._selected{color:var(--actions-high-content-default);font-weight:var(--weight-bold)}.ui-segment-control-option._selected:focus-visible{box-shadow:0 0 0 var(--units-2xs) var(--actions-high-stroke-focused)}.ui-segment-control-option:disabled{cursor:not-allowed;color:var(--actions-low-content-disabled)}.ui-segment-control-option:disabled._selected{color:var(--actions-high-content-disabled)}:host._multiple .ui-segment-control-option._selected{background-color:var(--actions-high-surface-default)}:host._multiple .ui-segment-control-option._selected:hover:not(:disabled){background-color:var(--actions-high-surface-hover);color:var(--actions-high-content-hover)}:host._multiple .ui-segment-control-option._selected:active:not(:disabled){background-color:var(--actions-high-surface-pressed);color:var(--actions-high-content-pressed)}:host._multiple .ui-segment-control-option._selected:disabled{background-color:var(--actions-high-surface-disabled)}:host._fluid{display:flex;width:100%}:host._fluid .ui-segment-control-option{flex:1 1 0}:host._vertical{flex-direction:column;align-items:stretch}:host._vertical .ui-segment-control-option{width:100%}:host._invalid{box-shadow:inset 0 0 0 var(--stroke-default) var(--form-error-stroke-default)}:host._disabled{cursor:not-allowed}:host._disabled .ui-segment-control-thumb{background-color:var(--actions-high-surface-disabled)}\n"] }]
374
+ }, template: "@if (showThumb()) {\n <span\n class=\"ui-segment-control-thumb\"\n aria-hidden=\"true\"\n [style.transform]=\"thumbTransform()\"\n [style.width.px]=\"thumb()?.w\"\n [style.height.px]=\"thumb()?.h\"\n ></span>\n}\n\n@for (option of normalizedOptions(); track option.key) {\n <button\n #optionBtn\n type=\"button\"\n class=\"ui-segment-control-option\"\n [class._selected]=\"option.selected\"\n [disabled]=\"option.disabled\"\n [attr.role]=\"multiple() ? null : 'radio'\"\n [attr.aria-checked]=\"multiple() ? null : option.selected\"\n [attr.aria-pressed]=\"multiple() ? option.selected : null\"\n [attr.aria-label]=\"option.ariaLabel\"\n [attr.tabindex]=\"tabindexFor(option.index)\"\n (click)=\"select(option, $event)\"\n (focus)=\"onOptionFocus(option.index)\"\n >\n @if (itemTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: option.original,\n option: option.original,\n selected: option.selected,\n index: option.index,\n }\"\n />\n } @else {\n @if (option.icon) {\n <ui-icon class=\"ui-segment-control-icon\" [name]=\"option.icon\" [size]=\"iconSize()\" />\n }\n @if (option.label) {\n <span class=\"ui-segment-control-label\" [attr.data-label]=\"option.label\">{{ option.label }}</span>\n }\n }\n </button>\n}\n", styles: [":host{position:relative;display:inline-flex;align-items:stretch;box-sizing:border-box;padding:var(--ui-segment-control-padding, var(--units-xs));gap:var(--ui-segment-control-gap, 0);border-radius:var(--ui-segment-control-radius, var(--radius-md));box-shadow:inset 0 0 0 var(--ui-segment-control-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) var(--global-border-default);font-family:var(--fontfamily-base);-webkit-user-select:none;user-select:none;vertical-align:middle;min-height:var(--ui-segment-control-min-height, 2.75rem)}:host .ui-segment-control-option{min-height:var(--ui-segment-control-option-min-height, 2.25rem);min-width:var(--ui-segment-control-option-min-width, 2.25rem);padding:0 var(--ui-segment-control-option-padding-x, var(--units-default));font-size:var(--ui-segment-control-font-size, var(--size-typography-text-default))}:host._small{min-height:var(--ui-segment-control-min-height-small, 2.5rem)}:host._small .ui-segment-control-option{min-height:var(--ui-segment-control-option-min-height-small, 2rem);min-width:var(--ui-segment-control-option-min-width-small, 2rem);padding:0 var(--ui-segment-control-option-padding-x-small, var(--units-md));font-size:var(--ui-segment-control-font-size-small, var(--size-typography-text-md))}.ui-segment-control-thumb{position:absolute;top:0;left:0;z-index:0;border-radius:var(--ui-segment-control-thumb-radius, var(--radius-sm));background-color:var(--actions-high-surface-default);pointer-events:none;transition:transform var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms),width var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms),height var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms)}@media(prefers-reduced-motion:reduce){.ui-segment-control-thumb{transition:none}}:root[data-motion=off] .ui-segment-control-thumb{transition:none}:host._no-motion .ui-segment-control-thumb{transition:none}.ui-segment-control-icon{line-height:0}.ui-segment-control-label{display:inline-flex;flex-direction:column;align-items:center}.ui-segment-control-label:after{content:attr(data-label);height:0;overflow:hidden;font-weight:var(--weight-bold);visibility:hidden;pointer-events:none;-webkit-user-select:none;user-select:none}.ui-segment-control-option{position:relative;z-index:1;display:inline-flex;align-items:center;justify-content:center;gap:var(--ui-segment-control-option-gap, var(--units-sm));box-sizing:border-box;border:0;border-radius:var(--ui-segment-control-option-radius, var(--radius-sm));background-color:transparent;color:var(--actions-low-content-default);font-family:inherit;font-weight:var(--weight-regular);line-height:1.2;white-space:nowrap;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-segment-control-option:hover:not(:disabled):not(._selected){background-color:var(--actions-low-surface-hover);color:var(--actions-low-content-hover)}.ui-segment-control-option:active:not(:disabled):not(._selected){background-color:var(--actions-low-surface-pressed);color:var(--actions-low-content-pressed)}.ui-segment-control-option:focus-visible{outline:none;box-shadow:0 0 0 var(--ui-segment-control-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--actions-low-stroke-focused)}.ui-segment-control-option._selected{color:var(--actions-high-content-default);font-weight:var(--weight-bold)}.ui-segment-control-option._selected:focus-visible{box-shadow:0 0 0 var(--ui-segment-control-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--actions-high-stroke-focused)}.ui-segment-control-option:disabled{cursor:not-allowed;color:var(--actions-low-content-disabled)}.ui-segment-control-option:disabled._selected{color:var(--actions-high-content-disabled)}:host._multiple .ui-segment-control-option._selected{background-color:var(--actions-high-surface-default)}:host._multiple .ui-segment-control-option._selected:hover:not(:disabled){background-color:var(--actions-high-surface-hover);color:var(--actions-high-content-hover)}:host._multiple .ui-segment-control-option._selected:active:not(:disabled){background-color:var(--actions-high-surface-pressed);color:var(--actions-high-content-pressed)}:host._multiple .ui-segment-control-option._selected:disabled{background-color:var(--actions-high-surface-disabled)}:host._fluid{display:flex;width:100%}:host._fluid .ui-segment-control-option{flex:1 1 0}:host._vertical{flex-direction:column;align-items:stretch}:host._vertical .ui-segment-control-option{width:100%}:host._invalid{box-shadow:inset 0 0 0 var(--ui-segment-control-stroke-width, var(--ui-control-stroke-width, var(--stroke-default))) var(--form-error-stroke-default)}:host._disabled{cursor:not-allowed}:host._disabled .ui-segment-control-thumb{background-color:var(--actions-high-surface-disabled)}\n"] }]
375
375
  }], ctorParameters: () => [], propDecorators: { options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], optionLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionLabel", required: false }] }], optionValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionValue", required: false }] }], optionDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionDisabled", required: false }] }], optionIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionIcon", required: false }] }], dataKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataKey", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], allowEmpty: [{ type: i0.Input, args: [{ isSignal: true, alias: "allowEmpty", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], motion: [{ type: i0.Input, args: [{ isSignal: true, alias: "motion", required: false }] }], itemTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemTemplate", required: false }] }], selectionChange: [{ type: i0.Output, args: ["selectionChange"] }], optionClick: [{ type: i0.Output, args: ["optionClick"] }], optionEls: [{ type: i0.ViewChildren, args: ['optionBtn', { isSignal: true }] }] } });
376
376
 
377
377
  /*
@@ -383,4 +383,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
383
383
  */
384
384
 
385
385
  export { UiSegmentControl };
386
- //# sourceMappingURL=4sh-ui-kit-ui-segment-control.mjs.map
386
+ //# sourceMappingURL=4sh-ui-kit-forms-ui-segment-control.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"4sh-ui-kit-forms-ui-segment-control.mjs","sources":["../../../projects/ui-kit/forms/ui-segment-control/src/lib/ui-segment-control.ts","../../../projects/ui-kit/forms/ui-segment-control/src/lib/ui-segment-control.html","../../../projects/ui-kit/forms/ui-segment-control/src/public-api.ts","../../../projects/ui-kit/forms/ui-segment-control/src/4sh-ui-kit-forms-ui-segment-control.ts"],"sourcesContent":["import {\n afterNextRender,\n afterRenderEffect,\n booleanAttribute,\n Component,\n computed,\n DestroyRef,\n ElementRef,\n effect,\n forwardRef,\n inject,\n input,\n isDevMode,\n output,\n signal,\n TemplateRef,\n untracked,\n viewChildren,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { BaseFieldControl } from '@4sh/ui-kit/forms';\nimport { UiIcon } from '@4sh/ui-kit/base/ui-icon';\n\nexport type SegmentControlSize = 'default' | 'small';\nexport type SegmentControlOrientation = 'horizontal' | 'vertical';\n\n/** Selected value: a single value (single mode) or an array (`multiple`). */\nexport type SegmentControlValue<T = unknown> = T | T[] | null;\n\n/**\n * Rich option shape. Options may also be primitives (`string`/`number`) or any\n * object, in which case the `optionLabel` / `optionValue` / `optionDisabled` /\n * `optionIcon` field names tell the control how to read them.\n */\nexport interface SegmentControlOption<T = unknown> {\n /** Text shown inside the segment. */\n label?: string;\n /** Value carried into the model when the segment is selected. */\n value: T;\n /** Leading icon name (design-system icon). */\n icon?: string;\n /** Disables just this segment. */\n disabled?: boolean;\n /** Accessible name (required for an icon-only segment). */\n ariaLabel?: string;\n}\n\n/** Payload emitted when a segment is clicked. */\nexport interface SegmentControlOptionClickEvent<T = unknown> {\n /** The original option (as passed in `options`). */\n option: T;\n /** The resolved value of that option. */\n value: T;\n /** Index of the option in the list. */\n index: number;\n /** Originating DOM event. */\n originalEvent: Event;\n}\n\n/** Context handed to a custom item template. */\nexport interface SegmentControlItemContext<T = unknown> {\n /** The original option (default `$implicit`). */\n $implicit: T;\n /** Same as `$implicit`, named for readability. */\n option: T;\n /** Whether this segment is currently selected. */\n selected: boolean;\n /** Index of the option in the list. */\n index: number;\n}\n\n/** @ignore Internal, normalized view of an option (template + logic source). */\ninterface NormalizedSegment {\n key: string;\n index: number;\n value: unknown;\n label: string | null;\n icon: string | null;\n ariaLabel: string | null;\n disabled: boolean;\n selected: boolean;\n original: unknown;\n}\n\n/** @ignore Measured geometry of the sliding selection indicator. */\ninterface ThumbMetrics {\n x: number;\n y: number;\n w: number;\n h: number;\n}\n\n/**\n * ui-segment-control — headless segmented control for choosing one (or, with\n * `multiple`, several) value(s) from a short list of inline buttons.\n *\n * Each segment is a real native `<button>`; the group carries WAI-ARIA semantics\n * (`radiogroup`/`radio` in single mode with roving arrow-key navigation and\n * select-on-arrow, `group`/`aria-pressed` in `multiple` mode) so keyboard and\n * screen-reader support come for free. Interactive states (hover/focus/pressed/\n * disabled) are pure CSS driven by the `actions.*` design tokens.\n *\n * In single mode a sliding indicator glides under the selected segment, timed by\n * the shared motion system (honours reduced-motion and the `motion` opt-out).\n *\n * Works standalone, with `[(ngModel)]`, reactive forms, or signal forms\n * (`[formField]`) — it is a `ControlValueAccessor`.\n *\n * @example\n * ```html\n * <ui-segment-control [(ngModel)]=\"view\" [options]=\"['Liste', 'Grille']\" />\n * ```\n */\n@Component({\n selector: 'ui-segment-control',\n imports: [UiIcon, NgTemplateOutlet],\n templateUrl: './ui-segment-control.html',\n styleUrl: './ui-segment-control.scss',\n providers: [\n { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiSegmentControl), multi: true },\n ],\n host: {\n class: 'ui-segment-control',\n '[class._small]': \"size() === 'small'\",\n '[class._vertical]': \"orientation() === 'vertical'\",\n '[class._fluid]': 'fluid()',\n '[class._multiple]': 'multiple()',\n '[class._disabled]': 'isDisabled()',\n '[class._invalid]': 'isInvalid()',\n '[class._no-motion]': '!motion()',\n '[attr.role]': \"multiple() ? 'group' : 'radiogroup'\",\n '[attr.aria-label]': 'ariaLabel() || null',\n '[attr.aria-labelledby]': 'ariaLabelledBy() || null',\n '[attr.aria-invalid]': \"isInvalid() ? 'true' : null\",\n '[attr.aria-disabled]': \"isDisabled() ? 'true' : null\",\n '(keydown)': 'onKeydown($event)',\n '(focusout)': 'onFocusOut($event)',\n },\n})\nexport class UiSegmentControl<T = unknown> extends BaseFieldControl<SegmentControlValue<T>> {\n /** Options to display, one button each. Primitives, objects, or `SegmentControlOption`. */\n options = input<readonly (T | SegmentControlOption<T>)[]>([]);\n /** Field name to read a label from, when options are objects. */\n optionLabel = input<string>();\n /** Field name to read the value from, when options are objects. */\n optionValue = input<string>();\n /** Field name to read the disabled flag from, when options are objects. */\n optionDisabled = input<string>();\n /** Field name to read an icon name from, when options are objects. */\n optionIcon = input<string>();\n /** Property used to compare object values for equality (selection matching). */\n dataKey = input<string>();\n /** Allow selecting several values at once (the model becomes an array). */\n multiple = input(false, { transform: booleanAttribute });\n /** Whether the selection can be fully cleared (single) / emptied (multiple). */\n allowEmpty = input(true, { transform: booleanAttribute });\n /** Size. */\n size = input<SegmentControlSize>('default');\n /** Layout axis (drives which arrow keys navigate). */\n orientation = input<SegmentControlOrientation>('horizontal');\n /** Span the full width of the parent (segments share the width evenly). */\n fluid = input(false, { transform: booleanAttribute });\n /** Animate the sliding indicator (honours reduced-motion regardless). */\n motion = input(true, { transform: booleanAttribute });\n /** Custom template for a segment's content (receives `{ $implicit, option, selected, index }`). */\n itemTemplate = input<TemplateRef<SegmentControlItemContext<T>>>();\n\n /** Emitted on user selection with the new model value. */\n selectionChange = output<SegmentControlValue<T>>();\n /** Emitted when a segment is clicked (even if it does not change the value). */\n optionClick = output<SegmentControlOptionClickEvent<T>>();\n\n /** @ignore */\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n /** @ignore */\n private readonly hostDestroyRef = inject(DestroyRef);\n /** @ignore Native segment buttons (for roving focus + indicator measurement). */\n private readonly optionEls = viewChildren<ElementRef<HTMLButtonElement>>('optionBtn');\n /** @ignore Current model value (written by the form or by user selection).\n * Redeclared over the base signal to keep `null` (not `undefined`) as the empty value. */\n protected override readonly modelValue = signal<SegmentControlValue<T>>(null);\n /** @ignore Index the roving focus last landed on. */\n private readonly focusedIndex = signal(0);\n /** @ignore Measured geometry of the sliding indicator (null until first measure). */\n protected readonly thumb = signal<ThumbMetrics | null>(null);\n /** @ignore Bumped by the ResizeObserver to re-measure the indicator. */\n private readonly resizeTick = signal(0);\n\n constructor() {\n super();\n\n // Re-measure the sliding indicator whenever the observed geometry changes.\n afterNextRender(() => {\n const ro = new ResizeObserver(() => this.resizeTick.update((v) => v + 1));\n ro.observe(this.host.nativeElement);\n this.hostDestroyRef.onDestroy(() => ro.disconnect());\n });\n\n // Track the selected segment with the indicator (single mode only).\n afterRenderEffect(() => {\n const index = this.selectedIndex();\n this.resizeTick();\n // Track layout-affecting inputs so the indicator follows re-layouts.\n this.size();\n this.orientation();\n this.fluid();\n this.normalizedOptions();\n\n if (this.multiple() || index === -1) return;\n const el = this.optionEls()[index]?.nativeElement;\n const track = this.host.nativeElement;\n if (!el) return;\n\n const next: ThumbMetrics = {\n x: el.offsetLeft - track.clientLeft,\n y: el.offsetTop - track.clientTop,\n w: el.offsetWidth,\n h: el.offsetHeight,\n };\n const cur = untracked(this.thumb);\n if (!cur || cur.x !== next.x || cur.y !== next.y || cur.w !== next.w || cur.h !== next.h) {\n this.thumb.set(next);\n }\n });\n\n // A11y safeguards (dev only).\n if (isDevMode()) {\n effect(() => {\n if (!this.ariaLabel() && !this.ariaLabelledBy()) {\n console.warn(\n '[ui-segment-control] Group has no accessible name: provide `ariaLabel` (or `ariaLabelledBy`).',\n );\n }\n const iconOnly = this.normalizedOptions().some((o) => o.icon && !o.label && !o.ariaLabel);\n if (iconOnly) {\n console.warn(\n '[ui-segment-control] Icon-only segment has no accessible name: add `ariaLabel` on the option.',\n );\n }\n });\n }\n }\n\n /** @ignore Icon size derived from the control size. */\n protected readonly iconSize = computed(() => (this.size() === 'small' ? 'sm' : 'default'));\n\n /** @ignore Options resolved to a flat, render-ready shape. */\n protected readonly normalizedOptions = computed<NormalizedSegment[]>(() => {\n const raw = this.options() ?? [];\n const model = this.modelValue();\n const groupDisabled = this.isDisabled();\n return raw.map((option, index) => {\n const value = this.resolveValue(option);\n const label = this.resolveLabel(option);\n return {\n key: `${this.uid}-${index}`,\n index,\n value,\n label,\n icon: this.resolveIcon(option),\n ariaLabel: this.resolveAriaLabel(option),\n disabled: groupDisabled || this.resolveDisabled(option),\n selected: this.isValueSelected(value, model),\n original: option,\n };\n });\n });\n\n /** @ignore Index of the selected segment in single mode (-1 if none / multiple). */\n protected readonly selectedIndex = computed(() =>\n this.multiple() ? -1 : this.normalizedOptions().findIndex((o) => o.selected),\n );\n\n /** @ignore Whether the sliding indicator should render. */\n protected readonly showThumb = computed(\n () => !this.multiple() && this.selectedIndex() !== -1 && this.thumb() !== null,\n );\n\n /** @ignore CSS transform positioning the indicator over the selected segment. */\n protected readonly thumbTransform = computed(() => {\n const t = this.thumb();\n return t ? `translate(${t.x}px, ${t.y}px)` : null;\n });\n\n /** @ignore Segment that owns the group's single tab stop (roving tabindex). */\n protected readonly rovingIndex = computed(() => {\n const opts = this.normalizedOptions();\n if (!opts.length) return -1;\n if (!this.multiple()) {\n const selected = opts.findIndex((o) => o.selected && !o.disabled);\n if (selected !== -1) return selected;\n }\n const focused = this.focusedIndex();\n if (opts[focused] && !opts[focused].disabled) return focused;\n return opts.findIndex((o) => !o.disabled);\n });\n\n /** @ignore */\n protected override uidPrefix(): string {\n return 'ui-segment-control';\n }\n\n /** Move focus to the group's current tab stop. */\n focus(options?: FocusOptions): void {\n const index = this.rovingIndex();\n if (index !== -1) this.optionEls()[index]?.nativeElement.focus(options);\n }\n\n /** @ignore The tabindex for a given segment (roving: one 0, the rest -1). */\n protected tabindexFor(index: number): number {\n return index === this.rovingIndex() ? 0 : -1;\n }\n\n /** @ignore Select (or toggle / clear) a segment on user interaction. */\n protected select(option: NormalizedSegment, event: Event): void {\n if (option.disabled || this.readonly()) return;\n const value = option.value as T;\n\n let next: SegmentControlValue<T>;\n if (this.multiple()) {\n const current = Array.isArray(this.modelValue()) ? [...(this.modelValue() as T[])] : [];\n const at = current.findIndex((v) => this.equals(v, value));\n if (at !== -1) {\n if (!this.allowEmpty() && current.length === 1) return; // keep at least one\n current.splice(at, 1);\n } else {\n current.push(value);\n }\n next = current;\n } else {\n if (option.selected) {\n if (!this.allowEmpty()) return; // cannot clear the selection\n next = null;\n } else {\n next = value;\n }\n }\n\n this.focusedIndex.set(option.index);\n this.modelValue.set(next);\n this.emitChange(next);\n this.selectionChange.emit(next);\n this.optionClick.emit({ option: option.original as T, value, index: option.index, originalEvent: event });\n }\n\n /** @ignore */\n protected onOptionFocus(index: number): void {\n this.focusedIndex.set(index);\n }\n\n /** @ignore Roving focus (and select-on-arrow in single mode). */\n protected onKeydown(event: KeyboardEvent): void {\n const horizontal = this.orientation() === 'horizontal';\n const nextKey = horizontal ? 'ArrowRight' : 'ArrowDown';\n const prevKey = horizontal ? 'ArrowLeft' : 'ArrowUp';\n if (![nextKey, prevKey, 'Home', 'End'].includes(event.key)) return;\n\n const opts = this.normalizedOptions();\n const enabled = opts.filter((o) => !o.disabled);\n if (!enabled.length) return;\n\n event.preventDefault();\n let pos = enabled.findIndex((o) => o.index === this.focusedIndex());\n if (pos === -1) pos = 0;\n\n switch (event.key) {\n case nextKey: pos = (pos + 1) % enabled.length; break;\n case prevKey: pos = (pos - 1 + enabled.length) % enabled.length; break;\n case 'Home': pos = 0; break;\n case 'End': pos = enabled.length - 1; break;\n }\n\n const target = enabled[pos];\n this.focusedIndex.set(target.index);\n this.optionEls()[target.index]?.nativeElement.focus();\n // Single mode follows the radio pattern: arrows move AND select.\n if (!this.multiple()) this.select(target, event);\n }\n\n /** @ignore Mark touched when focus leaves the whole group. */\n protected onFocusOut(event: FocusEvent): void {\n const next = event.relatedTarget as Node | null;\n if (!next || !this.host.nativeElement.contains(next)) this.emitTouch();\n }\n\n // --- Option resolution -------------------------------------------------\n\n /** @ignore */\n private isObject(option: unknown): option is Record<string, unknown> {\n return typeof option === 'object' && option !== null;\n }\n\n /** @ignore */\n private resolveValue(option: unknown): unknown {\n const field = this.optionValue();\n if (field && this.isObject(option)) return option[field];\n if (this.isObject(option) && 'value' in option) return option['value'];\n return option;\n }\n\n /** @ignore */\n private resolveLabel(option: unknown): string | null {\n const field = this.optionLabel();\n if (field && this.isObject(option)) return this.asText(option[field]);\n if (this.isObject(option)) return 'label' in option ? this.asText(option['label']) : null;\n return this.asText(option);\n }\n\n /** @ignore */\n private resolveIcon(option: unknown): string | null {\n const field = this.optionIcon();\n if (field && this.isObject(option)) return this.asText(option[field]);\n if (this.isObject(option) && 'icon' in option) return this.asText(option['icon']);\n return null;\n }\n\n /** @ignore */\n private resolveAriaLabel(option: unknown): string | null {\n if (this.isObject(option) && 'ariaLabel' in option) return this.asText(option['ariaLabel']);\n return null;\n }\n\n /** @ignore */\n private resolveDisabled(option: unknown): boolean {\n const field = this.optionDisabled();\n if (field && this.isObject(option)) return !!option[field];\n if (this.isObject(option) && 'disabled' in option) return !!option['disabled'];\n return false;\n }\n\n /** @ignore */\n private asText(value: unknown): string | null {\n return value === null || value === undefined ? null : String(value);\n }\n\n /** @ignore Whether a resolved value is part of the current model. */\n private isValueSelected(value: unknown, model: SegmentControlValue<T>): boolean {\n if (this.multiple()) {\n return Array.isArray(model) && model.some((v) => this.equals(v, value));\n }\n return this.equals(model, value);\n }\n\n /** @ignore Value equality — by `dataKey` for objects, strict otherwise. */\n private equals(a: unknown, b: unknown): boolean {\n const key = this.dataKey();\n if (key && this.isObject(a) && this.isObject(b)) return a[key] === b[key];\n return a === b;\n }\n}\n","@if (showThumb()) {\n <span\n class=\"ui-segment-control-thumb\"\n aria-hidden=\"true\"\n [style.transform]=\"thumbTransform()\"\n [style.width.px]=\"thumb()?.w\"\n [style.height.px]=\"thumb()?.h\"\n ></span>\n}\n\n@for (option of normalizedOptions(); track option.key) {\n <button\n #optionBtn\n type=\"button\"\n class=\"ui-segment-control-option\"\n [class._selected]=\"option.selected\"\n [disabled]=\"option.disabled\"\n [attr.role]=\"multiple() ? null : 'radio'\"\n [attr.aria-checked]=\"multiple() ? null : option.selected\"\n [attr.aria-pressed]=\"multiple() ? option.selected : null\"\n [attr.aria-label]=\"option.ariaLabel\"\n [attr.tabindex]=\"tabindexFor(option.index)\"\n (click)=\"select(option, $event)\"\n (focus)=\"onOptionFocus(option.index)\"\n >\n @if (itemTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: option.original,\n option: option.original,\n selected: option.selected,\n index: option.index,\n }\"\n />\n } @else {\n @if (option.icon) {\n <ui-icon class=\"ui-segment-control-icon\" [name]=\"option.icon\" [size]=\"iconSize()\" />\n }\n @if (option.label) {\n <span class=\"ui-segment-control-label\" [attr.data-label]=\"option.label\">{{ option.label }}</span>\n }\n }\n </button>\n}\n","/*\n * Public API Surface of ui-kit/ui-segment-control\n */\n\nexport * from './lib/ui-segment-control';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AA6FA;;;;;;;;;;;;;;;;;;;;AAoBG;AA2BG,MAAO,gBAA8B,SAAQ,gBAAwC,CAAA;AAiDzF,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;;QAhDT,IAAA,CAAA,OAAO,GAAG,KAAK,CAA2C,EAAE;oFAAC;;AAE7D,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK;mGAAU;;AAE7B,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK;mGAAU;;AAE7B,QAAA,IAAA,CAAA,cAAc,GAAG,KAAK;sGAAU;;AAEhC,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK;kGAAU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