@4sh/ui-kit 0.1.2 → 0.2.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 (227) hide show
  1. package/README.fr.md +10 -8
  2. package/README.md +10 -8
  3. package/collection.json +20 -0
  4. package/fesm2022/{4sh-ui-kit-ui-button-split.mjs → 4sh-ui-kit-actions-ui-button-split.mjs} +6 -6
  5. package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs.map +1 -0
  6. package/fesm2022/{4sh-ui-kit-ui-button.mjs → 4sh-ui-kit-actions-ui-button.mjs} +5 -5
  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} +5 -5
  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} +4 -4
  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} +5 -5
  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} +8 -8
  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} +5 -5
  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} +15 -9
  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} +6 -6
  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} +11 -11
  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} +7 -7
  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} +6 -6
  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} +6 -6
  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} +4 -4
  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} +7 -7
  33. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs.map +1 -0
  34. package/fesm2022/{4sh-ui-kit-ui-input.mjs → 4sh-ui-kit-forms-ui-input.mjs} +6 -6
  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} +4 -4
  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} +5 -5
  39. package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs.map +1 -0
  40. package/fesm2022/{4sh-ui-kit-ui-radio.mjs → 4sh-ui-kit-forms-ui-radio.mjs} +4 -4
  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} +5 -5
  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} +5 -5
  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} +7 -7
  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} +4 -4
  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} +5 -5
  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} +4 -4
  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} +15 -15
  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} +5 -5
  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} +4 -4
  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} +5 -5
  63. package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs.map +1 -0
  64. package/fesm2022/{4sh-ui-kit-ui-badge.mjs → 4sh-ui-kit-informative-ui-badge.mjs} +5 -5
  65. package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs.map +1 -0
  66. package/fesm2022/{4sh-ui-kit-ui-chip.mjs → 4sh-ui-kit-informative-ui-chip.mjs} +5 -5
  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} +11 -11
  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} +5 -5
  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} +4 -4
  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} +5 -5
  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} +4 -4
  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} +4 -4
  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} +5 -5
  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} +5 -5
  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} +11 -11
  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} +7 -7
  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} +16 -16
  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} +5 -5
  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} +5 -5
  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} +4 -4
  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} +5 -5
  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} +6 -6
  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} +13 -13
  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} +20 -20
  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} +26 -20
  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} +6 -6
  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} +40 -40
  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 +179 -175
  117. package/schematics/index.cjs +76 -0
  118. package/schematics/schema-add.json +19 -0
  119. package/schematics/schema-ng-add.json +13 -0
  120. package/schematics/schema-update.json +13 -0
  121. package/types/{4sh-ui-kit-ui-button-split.d.ts → 4sh-ui-kit-actions-ui-button-split.d.ts} +2 -2
  122. package/types/{4sh-ui-kit-ui-autocomplete.d.ts → 4sh-ui-kit-forms-ui-autocomplete.d.ts} +1 -1
  123. package/types/{4sh-ui-kit-ui-file-upload.d.ts → 4sh-ui-kit-forms-ui-file-upload.d.ts} +1 -1
  124. package/types/{4sh-ui-kit-ui-input-mask.d.ts → 4sh-ui-kit-forms-ui-input-mask.d.ts} +1 -1
  125. package/types/{4sh-ui-kit-ui-input-tags.d.ts → 4sh-ui-kit-forms-ui-input-tags.d.ts} +1 -1
  126. package/types/{4sh-ui-kit-ui-input.d.ts → 4sh-ui-kit-forms-ui-input.d.ts} +1 -1
  127. package/types/{4sh-ui-kit-ui-nudger.d.ts → 4sh-ui-kit-forms-ui-nudger.d.ts} +1 -1
  128. package/types/{4sh-ui-kit-ui-rating.d.ts → 4sh-ui-kit-forms-ui-rating.d.ts} +1 -1
  129. package/types/{4sh-ui-kit-ui-select.d.ts → 4sh-ui-kit-forms-ui-select.d.ts} +1 -1
  130. package/types/4sh-ui-kit-forms.d.ts +2 -1
  131. package/types/{4sh-ui-kit-ui-avatar.d.ts → 4sh-ui-kit-informative-ui-avatar.d.ts} +1 -1
  132. package/types/{4sh-ui-kit-ui-badge.d.ts → 4sh-ui-kit-informative-ui-badge.d.ts} +1 -1
  133. package/types/{4sh-ui-kit-ui-chip.d.ts → 4sh-ui-kit-informative-ui-chip.d.ts} +1 -1
  134. package/types/{4sh-ui-kit-ui-empty-state.d.ts → 4sh-ui-kit-informative-ui-empty-state.d.ts} +1 -1
  135. package/types/{4sh-ui-kit-ui-spinner.d.ts → 4sh-ui-kit-informative-ui-spinner.d.ts} +1 -1
  136. package/types/{4sh-ui-kit-ui-tag.d.ts → 4sh-ui-kit-informative-ui-tag.d.ts} +1 -1
  137. package/types/{4sh-ui-kit-ui-context-menu.d.ts → 4sh-ui-kit-navigation-ui-context-menu.d.ts} +1 -1
  138. package/types/{4sh-ui-kit-ui-tabs.d.ts → 4sh-ui-kit-navigation-ui-tabs.d.ts} +5 -1
  139. package/types/{4sh-ui-kit-ui-table.d.ts → 4sh-ui-kit-table-ui-table.d.ts} +1 -1
  140. package/fesm2022/4sh-ui-kit-ui-accordion.mjs.map +0 -1
  141. package/fesm2022/4sh-ui-kit-ui-alert.mjs.map +0 -1
  142. package/fesm2022/4sh-ui-kit-ui-autocomplete.mjs.map +0 -1
  143. package/fesm2022/4sh-ui-kit-ui-avatar-group.mjs.map +0 -1
  144. package/fesm2022/4sh-ui-kit-ui-avatar.mjs.map +0 -1
  145. package/fesm2022/4sh-ui-kit-ui-badge.mjs.map +0 -1
  146. package/fesm2022/4sh-ui-kit-ui-breadcrumb.mjs.map +0 -1
  147. package/fesm2022/4sh-ui-kit-ui-button-split.mjs.map +0 -1
  148. package/fesm2022/4sh-ui-kit-ui-button.mjs.map +0 -1
  149. package/fesm2022/4sh-ui-kit-ui-card.mjs.map +0 -1
  150. package/fesm2022/4sh-ui-kit-ui-checkbox.mjs.map +0 -1
  151. package/fesm2022/4sh-ui-kit-ui-chip.mjs.map +0 -1
  152. package/fesm2022/4sh-ui-kit-ui-context-menu.mjs.map +0 -1
  153. package/fesm2022/4sh-ui-kit-ui-datepicker.mjs.map +0 -1
  154. package/fesm2022/4sh-ui-kit-ui-drawer.mjs.map +0 -1
  155. package/fesm2022/4sh-ui-kit-ui-empty-state.mjs.map +0 -1
  156. package/fesm2022/4sh-ui-kit-ui-field.mjs.map +0 -1
  157. package/fesm2022/4sh-ui-kit-ui-file-upload.mjs.map +0 -1
  158. package/fesm2022/4sh-ui-kit-ui-helper.mjs.map +0 -1
  159. package/fesm2022/4sh-ui-kit-ui-icon.mjs.map +0 -1
  160. package/fesm2022/4sh-ui-kit-ui-image.mjs.map +0 -1
  161. package/fesm2022/4sh-ui-kit-ui-input-group.mjs.map +0 -1
  162. package/fesm2022/4sh-ui-kit-ui-input-mask.mjs.map +0 -1
  163. package/fesm2022/4sh-ui-kit-ui-input-number.mjs.map +0 -1
  164. package/fesm2022/4sh-ui-kit-ui-input-otp.mjs.map +0 -1
  165. package/fesm2022/4sh-ui-kit-ui-input-tags.mjs.map +0 -1
  166. package/fesm2022/4sh-ui-kit-ui-input.mjs.map +0 -1
  167. package/fesm2022/4sh-ui-kit-ui-label.mjs.map +0 -1
  168. package/fesm2022/4sh-ui-kit-ui-link.mjs.map +0 -1
  169. package/fesm2022/4sh-ui-kit-ui-menu.mjs.map +0 -1
  170. package/fesm2022/4sh-ui-kit-ui-modal.mjs.map +0 -1
  171. package/fesm2022/4sh-ui-kit-ui-nudger.mjs.map +0 -1
  172. package/fesm2022/4sh-ui-kit-ui-paginator.mjs.map +0 -1
  173. package/fesm2022/4sh-ui-kit-ui-popover.mjs.map +0 -1
  174. package/fesm2022/4sh-ui-kit-ui-progress-bar.mjs.map +0 -1
  175. package/fesm2022/4sh-ui-kit-ui-radio.mjs.map +0 -1
  176. package/fesm2022/4sh-ui-kit-ui-rating.mjs.map +0 -1
  177. package/fesm2022/4sh-ui-kit-ui-read-only.mjs.map +0 -1
  178. package/fesm2022/4sh-ui-kit-ui-segment-control.mjs.map +0 -1
  179. package/fesm2022/4sh-ui-kit-ui-select.mjs.map +0 -1
  180. package/fesm2022/4sh-ui-kit-ui-separator.mjs.map +0 -1
  181. package/fesm2022/4sh-ui-kit-ui-sidebar.mjs.map +0 -1
  182. package/fesm2022/4sh-ui-kit-ui-skeleton.mjs.map +0 -1
  183. package/fesm2022/4sh-ui-kit-ui-slider.mjs.map +0 -1
  184. package/fesm2022/4sh-ui-kit-ui-spinner.mjs.map +0 -1
  185. package/fesm2022/4sh-ui-kit-ui-stepper.mjs.map +0 -1
  186. package/fesm2022/4sh-ui-kit-ui-table.mjs.map +0 -1
  187. package/fesm2022/4sh-ui-kit-ui-tabs.mjs.map +0 -1
  188. package/fesm2022/4sh-ui-kit-ui-tag.mjs.map +0 -1
  189. package/fesm2022/4sh-ui-kit-ui-textarea.mjs.map +0 -1
  190. package/fesm2022/4sh-ui-kit-ui-toast.mjs.map +0 -1
  191. package/fesm2022/4sh-ui-kit-ui-toggle.mjs.map +0 -1
  192. package/fesm2022/4sh-ui-kit-ui-tooltip.mjs.map +0 -1
  193. /package/types/{4sh-ui-kit-ui-button.d.ts → 4sh-ui-kit-actions-ui-button.d.ts} +0 -0
  194. /package/types/{4sh-ui-kit-ui-link.d.ts → 4sh-ui-kit-actions-ui-link.d.ts} +0 -0
  195. /package/types/{4sh-ui-kit-ui-icon.d.ts → 4sh-ui-kit-base-ui-icon.d.ts} +0 -0
  196. /package/types/{4sh-ui-kit-ui-image.d.ts → 4sh-ui-kit-base-ui-image.d.ts} +0 -0
  197. /package/types/{4sh-ui-kit-ui-checkbox.d.ts → 4sh-ui-kit-forms-ui-checkbox.d.ts} +0 -0
  198. /package/types/{4sh-ui-kit-ui-datepicker.d.ts → 4sh-ui-kit-forms-ui-datepicker.d.ts} +0 -0
  199. /package/types/{4sh-ui-kit-ui-field.d.ts → 4sh-ui-kit-forms-ui-field.d.ts} +0 -0
  200. /package/types/{4sh-ui-kit-ui-input-group.d.ts → 4sh-ui-kit-forms-ui-input-group.d.ts} +0 -0
  201. /package/types/{4sh-ui-kit-ui-input-number.d.ts → 4sh-ui-kit-forms-ui-input-number.d.ts} +0 -0
  202. /package/types/{4sh-ui-kit-ui-input-otp.d.ts → 4sh-ui-kit-forms-ui-input-otp.d.ts} +0 -0
  203. /package/types/{4sh-ui-kit-ui-label.d.ts → 4sh-ui-kit-forms-ui-label.d.ts} +0 -0
  204. /package/types/{4sh-ui-kit-ui-radio.d.ts → 4sh-ui-kit-forms-ui-radio.d.ts} +0 -0
  205. /package/types/{4sh-ui-kit-ui-segment-control.d.ts → 4sh-ui-kit-forms-ui-segment-control.d.ts} +0 -0
  206. /package/types/{4sh-ui-kit-ui-slider.d.ts → 4sh-ui-kit-forms-ui-slider.d.ts} +0 -0
  207. /package/types/{4sh-ui-kit-ui-textarea.d.ts → 4sh-ui-kit-forms-ui-textarea.d.ts} +0 -0
  208. /package/types/{4sh-ui-kit-ui-toggle.d.ts → 4sh-ui-kit-forms-ui-toggle.d.ts} +0 -0
  209. /package/types/{4sh-ui-kit-ui-accordion.d.ts → 4sh-ui-kit-informative-ui-accordion.d.ts} +0 -0
  210. /package/types/{4sh-ui-kit-ui-alert.d.ts → 4sh-ui-kit-informative-ui-alert.d.ts} +0 -0
  211. /package/types/{4sh-ui-kit-ui-avatar-group.d.ts → 4sh-ui-kit-informative-ui-avatar-group.d.ts} +0 -0
  212. /package/types/{4sh-ui-kit-ui-helper.d.ts → 4sh-ui-kit-informative-ui-helper.d.ts} +0 -0
  213. /package/types/{4sh-ui-kit-ui-progress-bar.d.ts → 4sh-ui-kit-informative-ui-progress-bar.d.ts} +0 -0
  214. /package/types/{4sh-ui-kit-ui-read-only.d.ts → 4sh-ui-kit-informative-ui-read-only.d.ts} +0 -0
  215. /package/types/{4sh-ui-kit-ui-separator.d.ts → 4sh-ui-kit-informative-ui-separator.d.ts} +0 -0
  216. /package/types/{4sh-ui-kit-ui-skeleton.d.ts → 4sh-ui-kit-informative-ui-skeleton.d.ts} +0 -0
  217. /package/types/{4sh-ui-kit-ui-toast.d.ts → 4sh-ui-kit-informative-ui-toast.d.ts} +0 -0
  218. /package/types/{4sh-ui-kit-ui-tooltip.d.ts → 4sh-ui-kit-informative-ui-tooltip.d.ts} +0 -0
  219. /package/types/{4sh-ui-kit-ui-card.d.ts → 4sh-ui-kit-layout-ui-card.d.ts} +0 -0
  220. /package/types/{4sh-ui-kit-ui-drawer.d.ts → 4sh-ui-kit-layout-ui-drawer.d.ts} +0 -0
  221. /package/types/{4sh-ui-kit-ui-modal.d.ts → 4sh-ui-kit-layout-ui-modal.d.ts} +0 -0
  222. /package/types/{4sh-ui-kit-ui-popover.d.ts → 4sh-ui-kit-layout-ui-popover.d.ts} +0 -0
  223. /package/types/{4sh-ui-kit-ui-breadcrumb.d.ts → 4sh-ui-kit-navigation-ui-breadcrumb.d.ts} +0 -0
  224. /package/types/{4sh-ui-kit-ui-menu.d.ts → 4sh-ui-kit-navigation-ui-menu.d.ts} +0 -0
  225. /package/types/{4sh-ui-kit-ui-sidebar.d.ts → 4sh-ui-kit-navigation-ui-sidebar.d.ts} +0 -0
  226. /package/types/{4sh-ui-kit-ui-stepper.d.ts → 4sh-ui-kit-navigation-ui-stepper.d.ts} +0 -0
  227. /package/types/{4sh-ui-kit-ui-paginator.d.ts → 4sh-ui-kit-table-ui-paginator.d.ts} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"4sh-ui-kit-actions-ui-button.mjs","sources":["../../../projects/ui-kit/actions/ui-button/src/lib/ui-button.ts","../../../projects/ui-kit/actions/ui-button/src/lib/ui-button.html","../../../projects/ui-kit/actions/ui-button/src/public-api.ts","../../../projects/ui-kit/actions/ui-button/src/4sh-ui-kit-actions-ui-button.ts"],"sourcesContent":["import {\n afterNextRender,\n afterRenderEffect,\n booleanAttribute,\n Component,\n computed,\n effect,\n ElementRef,\n input,\n isDevMode,\n output,\n signal,\n TemplateRef,\n viewChild,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { RouterLink } from '@angular/router';\nimport { UiLevel } from '@4sh/ui-kit/types';\nimport { UiIcon } from '@4sh/ui-kit/base/ui-icon';\n\nexport type ButtonType = 'button' | 'submit' | 'reset';\nexport type ButtonSize = 'default' | 'small';\nexport type ButtonVariant = 'filled' | 'outlined' | 'ghost';\n/** Luminosité du fond sur lequel le bouton est posé (voir l'input `onColor`). */\nexport type ButtonOnColor = 'dark' | 'light';\nexport type ButtonIconPos = 'left' | 'right' | 'top' | 'bottom';\nexport type ButtonNativeProps = Record<string, string | number | boolean | null | undefined>;\n\n@Component({\n selector: 'ui-button',\n imports: [UiIcon, NgTemplateOutlet, RouterLink],\n templateUrl: './ui-button.html',\n styleUrl: './ui-button.scss',\n host: {\n '[style.display]': \"expanded() ? 'flex' : 'inline-flex'\",\n '[style.width]': \"expanded() ? '100%' : null\",\n },\n})\nexport class UiButton {\n label = input<string>();\n ariaLabel = input<string>();\n type = input<ButtonType>('button');\n level = input<UiLevel>('high');\n variant = input<ButtonVariant>('filled');\n /**\n * À renseigner **uniquement** quand le bouton est posé sur un fond de couleur\n * (bandeau, carte teintée, image) : indique la luminosité de ce fond, et le\n * bouton épingle son chrome en conséquence — `'dark'` ⇒ blanc, `'light'` ⇒\n * sombre. Orthogonal à `level` et `variant`. Volontairement **insensible au\n * thème** : un bandeau violet reste violet en clair comme en sombre.\n */\n onColor = input<ButtonOnColor | null>(null);\n size = input<ButtonSize>('default');\n icon = input<string>();\n iconPos = input<ButtonIconPos>('left');\n iconOnly = input(false, { transform: booleanAttribute });\n loading = input(false, { transform: booleanAttribute });\n loadingIcon = input<string>('circle-notch');\n expanded = input(false, { transform: booleanAttribute });\n rounded = input(false, { transform: booleanAttribute });\n disabled = input(false, { transform: booleanAttribute });\n tabindex = input<number>();\n buttonProps = input<ButtonNativeProps>();\n iconTemplate = input<TemplateRef<unknown>>();\n loadingIconTemplate = input<TemplateRef<unknown>>();\n\n // --- Link mode (polymorphic host) ------------------------------------\n // When `href` or `routerLink` is set, the host renders a real <a> styled\n // as a button — preserving native anchor behavior (Cmd/Ctrl+click, middle\n // click, \"open/copy link\"…). No JS-router navigation in a click handler.\n /** External / plain URL. Presence switches the host to an <a>. */\n href = input<string>();\n /** Angular router target. Presence switches the host to an <a> (RouterLink). */\n routerLink = input<string | unknown[]>();\n /** Anchor target (e.g. \"_blank\"). Only applies in link mode. */\n target = input<string>();\n /** Anchor rel. Defaults to \"noopener noreferrer\" when target=\"_blank\". */\n rel = input<string>();\n\n /** Triggered on click (never if disabled or loading). */\n buttonClick = output<MouseEvent>();\n /** Fired when the button receives focus. */\n buttonFocus = output<FocusEvent>();\n /** Fired when the button loses focus. */\n buttonBlur = output<FocusEvent>();\n\n /** @ignore Host element (either the <button> or the <a>). */\n private readonly hostEl = viewChild.required<ElementRef<HTMLElement>>('host');\n /** @ignore */\n private readonly contentWrap = viewChild<ElementRef<HTMLElement>>('contentWrap');\n /** @ignore Content actually rendered via <ng-content> (detected after rendering). */\n private readonly hasProjectedContent = signal(false);\n\n constructor() {\n // Detection of rendered content (<ng-content>) — SSR-safe (browser only).\n afterNextRender(() => {\n const el = this.contentWrap()?.nativeElement;\n const has =\n !!el &&\n Array.from(el.childNodes).some(\n (n) =>\n n.nodeType === Node.ELEMENT_NODE || (n.nodeType === Node.TEXT_NODE && !!n.textContent?.trim()),\n );\n this.hasProjectedContent.set(has);\n });\n\n // Pass additional native attributes (buttonProps) to the host element.\n afterRenderEffect(() => {\n const props = this.buttonProps();\n if (!props) return;\n const el = this.hostEl().nativeElement;\n for (const [key, value] of Object.entries(props)) {\n if (value === null || value === undefined || value === false) {\n el.removeAttribute(key);\n } else {\n el.setAttribute(key, value === true ? '' : String(value));\n }\n }\n });\n\n // A11y safeguard: An icon-only button must have an accessible name.\n if (isDevMode()) {\n effect(() => {\n if (this.isIconOnly() && !this.accessibleLabel()) {\n console.warn(\n '[ui-button] Icon-only button has no accessible name: provide `ariaLabel` (or `label`).',\n );\n }\n });\n }\n }\n\n /** @ignore */\n protected readonly iconSize = computed(() => (this.size() === 'small' ? 'sm' : 'default'));\n\n /** @ignore An icon (or its template) is available. */\n protected readonly hasIcon = computed(() => !!this.icon() || !!this.iconTemplate());\n\n /** @ignore Visible text content (label or displayed content). */\n protected readonly hasVisibleText = computed(() => !!this.label() || this.hasProjectedContent());\n\n /** @ignore The icon appears before the content (left/top) or after it (right/bottom). */\n protected readonly iconBefore = computed(() => {\n const pos = this.iconPos();\n return pos === 'left' || pos === 'top';\n });\n\n /** @ignore Icon-only mode: forced, or inferred (icon only, with no visible text). */\n protected readonly isIconOnly = computed(() => {\n if (this.iconOnly()) return true;\n const pos = this.iconPos();\n if (pos === 'top' || pos === 'bottom') return false;\n return !this.hasVisibleText() && this.hasIcon();\n });\n\n /** @ignore Accessible name: explicit; otherwise, the label is hidden as “icon-only”; otherwise, the text is visible. */\n protected readonly accessibleLabel = computed(() => {\n if (this.ariaLabel()) return this.ariaLabel()!;\n if (this.isIconOnly()) return this.label() ?? null;\n return null;\n });\n\n /** @ignore Host renders an <a> (a URL or a router target was provided). */\n protected readonly isLink = computed(() => !!this.href() || this.routerLink() != null);\n\n /** @ignore Link mode uses the Angular RouterLink directive. */\n protected readonly useRouterLink = computed(() => this.routerLink() != null);\n\n /** @ignore Anchor rel: explicit, or a safe default for target=\"_blank\". */\n protected readonly computedRel = computed(() => {\n if (this.rel()) return this.rel()!;\n if (this.target() === '_blank') return 'noopener noreferrer';\n return null;\n });\n\n /** @ignore Anchor tabindex: -1 when disabled (an <a> has no native disabled). */\n protected readonly linkTabindex = computed(() => (this.disabled() ? -1 : (this.tabindex() ?? null)));\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-button', `_${this.level()}`];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n if (this.variant() !== 'filled') c.push(`_${this.variant()}`);\n if (this.onColor()) c.push(`_on-${this.onColor()}`);\n if (this.expanded()) c.push('_expanded');\n if (this.rounded()) c.push('_rounded');\n if (this.isIconOnly()) c.push('_icon-only');\n if (this.loading()) c.push('_loading');\n if (this.isLink() && this.disabled()) c.push('_disabled');\n const pos = this.iconPos();\n if (pos === 'top') c.push('_icon-top');\n else if (pos === 'bottom') c.push('_icon-bottom');\n return c.join(' ');\n });\n\n /** Sets the focus on the button (useful for controlling focus programmatically). */\n focus(options?: FocusOptions): void {\n this.hostEl().nativeElement.focus(options);\n }\n\n /** @ignore */\n protected onClick(event: MouseEvent): void {\n if (this.disabled() || this.loading()) {\n event.preventDefault();\n return;\n }\n this.buttonClick.emit(event);\n }\n}\n","@if (isLink()) {\n @if (useRouterLink()) {\n <a\n #host\n [class]=\"classes()\"\n [routerLink]=\"disabled() ? null : routerLink()\"\n [attr.target]=\"target()\"\n [attr.rel]=\"computedRel()\"\n [attr.tabindex]=\"linkTabindex()\"\n [attr.role]=\"'button'\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (click)=\"onClick($event)\"\n (focus)=\"buttonFocus.emit($event)\"\n (blur)=\"buttonBlur.emit($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </a>\n } @else {\n <a\n #host\n [class]=\"classes()\"\n [attr.href]=\"disabled() ? null : href()\"\n [attr.target]=\"target()\"\n [attr.rel]=\"computedRel()\"\n [attr.tabindex]=\"linkTabindex()\"\n [attr.role]=\"'button'\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (click)=\"onClick($event)\"\n (focus)=\"buttonFocus.emit($event)\"\n (blur)=\"buttonBlur.emit($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </a>\n }\n} @else {\n <button\n #host\n [class]=\"classes()\"\n [type]=\"type()\"\n [disabled]=\"disabled() || loading()\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-busy]=\"loading() ? 'true' : null\"\n [attr.aria-label]=\"accessibleLabel()\"\n (click)=\"onClick($event)\"\n (focus)=\"buttonFocus.emit($event)\"\n (blur)=\"buttonBlur.emit($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </button>\n}\n\n<ng-template #inner>\n @if (iconBefore()) {\n <ng-container [ngTemplateOutlet]=\"iconSlot\" />\n }\n\n @if (label() || !isIconOnly()) {\n <span class=\"ui-button-content\" #contentWrap>\n @if (label() && !isIconOnly()) {\n <span class=\"ui-button-label\">{{ label() }}</span>\n }\n <ng-content />\n </span>\n }\n\n @if (!iconBefore()) {\n <ng-container [ngTemplateOutlet]=\"iconSlot\" />\n }\n</ng-template>\n\n<ng-template #iconSlot>\n @if (loading()) {\n @if (loadingIconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n <i class=\"ui-button-icon ui-button-icon-loading fa-solid fa-{{ loadingIcon() }} fa-spin\" aria-hidden=\"true\"></i>\n }\n } @else if (iconTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else if (icon()) {\n <ui-icon class=\"ui-button-icon\" [name]=\"icon()!\" [size]=\"iconSize()\" />\n }\n</ng-template>\n","/*\n * Public API Surface of ui-kit/ui-button\n */\n\nexport * from './lib/ui-button';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;MAsCa,QAAQ,CAAA;AAuDnB,IAAA,WAAA,GAAA;AAtDA,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAU;AACvB,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK;iGAAU;QAC3B,IAAA,CAAA,IAAI,GAAG,KAAK,CAAa,QAAQ;iFAAC;QAClC,IAAA,CAAA,KAAK,GAAG,KAAK,CAAU,MAAM;kFAAC;QAC9B,IAAA,CAAA,OAAO,GAAG,KAAK,CAAgB,QAAQ;oFAAC;AACxC;;;;;;AAMG;QACH,IAAA,CAAA,OAAO,GAAG,KAAK,CAAuB,IAAI;oFAAC;QAC3C,IAAA,CAAA,IAAI,GAAG,KAAK,CAAa,SAAS;iFAAC;AACnC,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK;4FAAU;QACtB,IAAA,CAAA,OAAO,GAAG,KAAK,CAAgB,MAAM;oFAAC;QACtC,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;QACxD,IAAA,CAAA,OAAO,GAAG,KAAK,CAAC,KAAK,+EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;QACvD,IAAA,CAAA,WAAW,GAAG,KAAK,CAAS,cAAc;wFAAC;QAC3C,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;QACxD,IAAA,CAAA,OAAO,GAAG,KAAK,CAAC,KAAK,+EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;QACvD,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AACxD,QAAA,IAAA,CAAA,QAAQ,GAAG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,EAAA,CAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,YAAA,CAAA,EAAA,CAAA,EAAA,MAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAAA,MAAM,qEAEV,aAAa,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEzFjF;;AAEG;;ACFH;;AAEG;;;;"}
@@ -2,7 +2,7 @@ import * as i0 from '@angular/core';
2
2
  import { input, booleanAttribute, output, viewChild, computed, isDevMode, effect, Component } from '@angular/core';
3
3
  import { NgTemplateOutlet } from '@angular/common';
4
4
  import { RouterLink } from '@angular/router';
5
- import { UiIcon } from '@4sh/ui-kit/ui-icon';
5
+ import { UiIcon } from '@4sh/ui-kit/base/ui-icon';
6
6
 
7
7
  /**
8
8
  * ui-link — inline textual link (renders a real <a>), for prose / navigation.
@@ -127,10 +127,10 @@ class UiLink {
127
127
  }
128
128
  this.linkClick.emit(event);
129
129
  }
130
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiLink, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
131
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: UiLink, isStandalone: true, selector: "ui-link", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, href: { classPropertyName: "href", publicName: "href", isSignal: true, isRequired: false, transformFunction: null }, routerLink: { classPropertyName: "routerLink", publicName: "routerLink", isSignal: true, isRequired: false, transformFunction: null }, target: { classPropertyName: "target", publicName: "target", isSignal: true, isRequired: false, transformFunction: null }, rel: { classPropertyName: "rel", publicName: "rel", isSignal: true, isRequired: false, transformFunction: null }, external: { classPropertyName: "external", publicName: "external", isSignal: true, isRequired: false, transformFunction: null }, iconLeft: { classPropertyName: "iconLeft", publicName: "iconLeft", isSignal: true, isRequired: false, transformFunction: null }, iconRight: { classPropertyName: "iconRight", publicName: "iconRight", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, ariaCurrent: { classPropertyName: "ariaCurrent", publicName: "ariaCurrent", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { linkClick: "linkClick", linkFocus: "linkFocus", linkBlur: "linkBlur" }, host: { properties: { "style.display": "'inline-flex'" } }, viewQueries: [{ propertyName: "hostEl", first: true, predicate: ["host"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (useRouterLink()) {\n <a\n #host\n [class]=\"classes()\"\n [routerLink]=\"disabled() ? null : routerLink()\"\n [attr.target]=\"computedTarget()\"\n [attr.rel]=\"computedRel()\"\n [attr.tabindex]=\"linkTabindex()\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.aria-current]=\"ariaCurrent() ?? null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (click)=\"onClick($event)\"\n (focus)=\"linkFocus.emit($event)\"\n (blur)=\"linkBlur.emit($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </a>\n} @else {\n <a\n #host\n [class]=\"classes()\"\n [attr.href]=\"disabled() ? null : href()\"\n [attr.target]=\"computedTarget()\"\n [attr.rel]=\"computedRel()\"\n [attr.tabindex]=\"linkTabindex()\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.aria-current]=\"ariaCurrent() ?? null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (click)=\"onClick($event)\"\n (focus)=\"linkFocus.emit($event)\"\n (blur)=\"linkBlur.emit($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </a>\n}\n\n<ng-template #inner>\n @if (iconLeft()) {\n <ui-icon class=\"ui-link-icon\" [name]=\"iconLeft()!\" [size]=\"iconSize()\" />\n }\n\n <span class=\"ui-link-content\">\n @if (label() && !isIconOnly()) {\n <span class=\"ui-link-label\">{{ label() }}</span>\n }\n <ng-content />\n </span>\n\n @if (iconRight()) {\n <ui-icon class=\"ui-link-icon\" [name]=\"iconRight()!\" [size]=\"iconSize()\" />\n }\n</ng-template>\n", styles: [".ui-link{display:inline-flex;align-items:center;gap:var(--units-sm);font-family:var(--fontfamily-base);font-weight:var(--weight-bold);font-size:var(--size-typography-text-default);line-height:1.4;color:var(--actions-low-content-default);text-decoration:none;text-decoration-thickness:from-font;text-underline-offset:.15em;border-radius:var(--radius-2xs);cursor:pointer;transition:color var(--transition-default) var(--transition-easeinout),text-decoration-color var(--transition-default) var(--transition-easeinout),box-shadow var(--transition-default) var(--transition-easeinout)}.ui-link-icon{line-height:0}.ui-link-content{display:inline}.ui-link-content:empty{display:none}.ui-link._small{font-size:var(--size-typography-text-md)}.ui-link._icon-only{gap:0;text-decoration:none}.ui-link:hover:not(._disabled){color:var(--actions-low-content-hover);text-decoration:underline}.ui-link:focus-visible{outline:none;color:var(--actions-low-content-focused);text-decoration:underline;box-shadow:0 0 0 var(--units-2xs) var(--actions-low-content-focused)}.ui-link:active:not(._disabled){color:var(--actions-low-content-pressed)}.ui-link._disabled{color:var(--actions-low-content-disabled);text-decoration-color:var(--actions-low-content-disabled);cursor:not-allowed;pointer-events:none}\n"], dependencies: [{ kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
130
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiLink, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
131
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: UiLink, isStandalone: true, selector: "ui-link", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, href: { classPropertyName: "href", publicName: "href", isSignal: true, isRequired: false, transformFunction: null }, routerLink: { classPropertyName: "routerLink", publicName: "routerLink", isSignal: true, isRequired: false, transformFunction: null }, target: { classPropertyName: "target", publicName: "target", isSignal: true, isRequired: false, transformFunction: null }, rel: { classPropertyName: "rel", publicName: "rel", isSignal: true, isRequired: false, transformFunction: null }, external: { classPropertyName: "external", publicName: "external", isSignal: true, isRequired: false, transformFunction: null }, iconLeft: { classPropertyName: "iconLeft", publicName: "iconLeft", isSignal: true, isRequired: false, transformFunction: null }, iconRight: { classPropertyName: "iconRight", publicName: "iconRight", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, ariaCurrent: { classPropertyName: "ariaCurrent", publicName: "ariaCurrent", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { linkClick: "linkClick", linkFocus: "linkFocus", linkBlur: "linkBlur" }, host: { properties: { "style.display": "'inline-flex'" } }, viewQueries: [{ propertyName: "hostEl", first: true, predicate: ["host"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (useRouterLink()) {\n <a\n #host\n [class]=\"classes()\"\n [routerLink]=\"disabled() ? null : routerLink()\"\n [attr.target]=\"computedTarget()\"\n [attr.rel]=\"computedRel()\"\n [attr.tabindex]=\"linkTabindex()\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.aria-current]=\"ariaCurrent() ?? null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (click)=\"onClick($event)\"\n (focus)=\"linkFocus.emit($event)\"\n (blur)=\"linkBlur.emit($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </a>\n} @else {\n <a\n #host\n [class]=\"classes()\"\n [attr.href]=\"disabled() ? null : href()\"\n [attr.target]=\"computedTarget()\"\n [attr.rel]=\"computedRel()\"\n [attr.tabindex]=\"linkTabindex()\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.aria-current]=\"ariaCurrent() ?? null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (click)=\"onClick($event)\"\n (focus)=\"linkFocus.emit($event)\"\n (blur)=\"linkBlur.emit($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </a>\n}\n\n<ng-template #inner>\n @if (iconLeft()) {\n <ui-icon class=\"ui-link-icon\" [name]=\"iconLeft()!\" [size]=\"iconSize()\" />\n }\n\n <span class=\"ui-link-content\">\n @if (label() && !isIconOnly()) {\n <span class=\"ui-link-label\">{{ label() }}</span>\n }\n <ng-content />\n </span>\n\n @if (iconRight()) {\n <ui-icon class=\"ui-link-icon\" [name]=\"iconRight()!\" [size]=\"iconSize()\" />\n }\n</ng-template>\n", styles: [".ui-link{display:inline-flex;align-items:center;gap:var(--units-sm);font-family:var(--fontfamily-base);font-weight:var(--weight-bold);font-size:var(--size-typography-text-default);line-height:1.4;color:var(--actions-low-content-default);text-decoration:none;text-decoration-thickness:from-font;text-underline-offset:.15em;border-radius:var(--radius-2xs);cursor:pointer;transition:color var(--transition-default) var(--transition-easeinout),text-decoration-color var(--transition-default) var(--transition-easeinout),box-shadow var(--transition-default) var(--transition-easeinout)}.ui-link-icon{line-height:0}.ui-link-content{display:inline}.ui-link-content:empty{display:none}.ui-link._small{font-size:var(--size-typography-text-md)}.ui-link._icon-only{gap:0;text-decoration:none}.ui-link:hover:not(._disabled){color:var(--actions-low-content-hover);text-decoration:underline}.ui-link:focus-visible{outline:none;color:var(--actions-low-content-focused);text-decoration:underline;box-shadow:0 0 0 var(--units-2xs) var(--actions-low-content-focused)}.ui-link:active:not(._disabled){color:var(--actions-low-content-pressed)}.ui-link._disabled{color:var(--actions-low-content-disabled);text-decoration-color:var(--actions-low-content-disabled);cursor:not-allowed;pointer-events:none}\n"], dependencies: [{ kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
132
132
  }
133
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiLink, decorators: [{
133
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiLink, decorators: [{
134
134
  type: Component,
135
135
  args: [{ selector: 'ui-link', imports: [UiIcon, RouterLink, NgTemplateOutlet], host: { '[style.display]': "'inline-flex'" }, template: "@if (useRouterLink()) {\n <a\n #host\n [class]=\"classes()\"\n [routerLink]=\"disabled() ? null : routerLink()\"\n [attr.target]=\"computedTarget()\"\n [attr.rel]=\"computedRel()\"\n [attr.tabindex]=\"linkTabindex()\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.aria-current]=\"ariaCurrent() ?? null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (click)=\"onClick($event)\"\n (focus)=\"linkFocus.emit($event)\"\n (blur)=\"linkBlur.emit($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </a>\n} @else {\n <a\n #host\n [class]=\"classes()\"\n [attr.href]=\"disabled() ? null : href()\"\n [attr.target]=\"computedTarget()\"\n [attr.rel]=\"computedRel()\"\n [attr.tabindex]=\"linkTabindex()\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.aria-current]=\"ariaCurrent() ?? null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (click)=\"onClick($event)\"\n (focus)=\"linkFocus.emit($event)\"\n (blur)=\"linkBlur.emit($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </a>\n}\n\n<ng-template #inner>\n @if (iconLeft()) {\n <ui-icon class=\"ui-link-icon\" [name]=\"iconLeft()!\" [size]=\"iconSize()\" />\n }\n\n <span class=\"ui-link-content\">\n @if (label() && !isIconOnly()) {\n <span class=\"ui-link-label\">{{ label() }}</span>\n }\n <ng-content />\n </span>\n\n @if (iconRight()) {\n <ui-icon class=\"ui-link-icon\" [name]=\"iconRight()!\" [size]=\"iconSize()\" />\n }\n</ng-template>\n", styles: [".ui-link{display:inline-flex;align-items:center;gap:var(--units-sm);font-family:var(--fontfamily-base);font-weight:var(--weight-bold);font-size:var(--size-typography-text-default);line-height:1.4;color:var(--actions-low-content-default);text-decoration:none;text-decoration-thickness:from-font;text-underline-offset:.15em;border-radius:var(--radius-2xs);cursor:pointer;transition:color var(--transition-default) var(--transition-easeinout),text-decoration-color var(--transition-default) var(--transition-easeinout),box-shadow var(--transition-default) var(--transition-easeinout)}.ui-link-icon{line-height:0}.ui-link-content{display:inline}.ui-link-content:empty{display:none}.ui-link._small{font-size:var(--size-typography-text-md)}.ui-link._icon-only{gap:0;text-decoration:none}.ui-link:hover:not(._disabled){color:var(--actions-low-content-hover);text-decoration:underline}.ui-link:focus-visible{outline:none;color:var(--actions-low-content-focused);text-decoration:underline;box-shadow:0 0 0 var(--units-2xs) var(--actions-low-content-focused)}.ui-link:active:not(._disabled){color:var(--actions-low-content-pressed)}.ui-link._disabled{color:var(--actions-low-content-disabled);text-decoration-color:var(--actions-low-content-disabled);cursor:not-allowed;pointer-events:none}\n"] }]
136
136
  }], ctorParameters: () => [], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], href: [{ type: i0.Input, args: [{ isSignal: true, alias: "href", required: false }] }], routerLink: [{ type: i0.Input, args: [{ isSignal: true, alias: "routerLink", required: false }] }], target: [{ type: i0.Input, args: [{ isSignal: true, alias: "target", required: false }] }], rel: [{ type: i0.Input, args: [{ isSignal: true, alias: "rel", required: false }] }], external: [{ type: i0.Input, args: [{ isSignal: true, alias: "external", required: false }] }], iconLeft: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconLeft", required: false }] }], iconRight: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconRight", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], tabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabindex", required: false }] }], ariaCurrent: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaCurrent", required: false }] }], linkClick: [{ type: i0.Output, args: ["linkClick"] }], linkFocus: [{ type: i0.Output, args: ["linkFocus"] }], linkBlur: [{ type: i0.Output, args: ["linkBlur"] }], hostEl: [{ type: i0.ViewChild, args: ['host', { isSignal: true }] }] } });
@@ -144,4 +144,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
144
144
  */
145
145
 
146
146
  export { UiLink };
147
- //# sourceMappingURL=4sh-ui-kit-ui-link.mjs.map
147
+ //# sourceMappingURL=4sh-ui-kit-actions-ui-link.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"4sh-ui-kit-actions-ui-link.mjs","sources":["../../../projects/ui-kit/actions/ui-link/src/lib/ui-link.ts","../../../projects/ui-kit/actions/ui-link/src/lib/ui-link.html","../../../projects/ui-kit/actions/ui-link/src/public-api.ts","../../../projects/ui-kit/actions/ui-link/src/4sh-ui-kit-actions-ui-link.ts"],"sourcesContent":["import {\n booleanAttribute,\n Component,\n computed,\n effect,\n ElementRef,\n input,\n isDevMode,\n output,\n viewChild,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { RouterLink } from '@angular/router';\nimport { UiIcon } from '@4sh/ui-kit/base/ui-icon';\n\nexport type LinkSize = 'default' | 'small';\n\n/**\n * ui-link — inline textual link (renders a real <a>), for prose / navigation.\n *\n * Choose by semantics, not appearance:\n * • Something that NAVIGATES (URL/route) → this component, or `ui-button`\n * with `href`/`routerLink` when it must look like a button.\n * • Something that triggers an ACTION (submit, open a modal…) → `ui-button`.\n *\n * Accepts a plain `href` (external) or a `routerLink` (internal navigation).\n * Interactive states (hover/focus/pressed) are CSS-driven, never Angular props.\n */\n@Component({\n selector: 'ui-link',\n imports: [UiIcon, RouterLink, NgTemplateOutlet],\n templateUrl: './ui-link.html',\n styleUrl: './ui-link.scss',\n host: { '[style.display]': \"'inline-flex'\" },\n})\nexport class UiLink {\n /** Visible link text (optional when using projected content or icon-only). */\n label = input<string>();\n ariaLabel = input<string>();\n size = input<LinkSize>('default');\n\n // --- Destination -----------------------------------------------------\n /** External / plain URL. */\n href = input<string>();\n /** Angular router target (internal navigation, uses RouterLink). */\n routerLink = input<string | unknown[]>();\n /** Anchor target (e.g. \"_blank\"). */\n target = input<string>();\n /** Anchor rel. Defaults to \"noopener noreferrer\" for external links. */\n rel = input<string>();\n /** Convenience for external links: sets target=\"_blank\" + a safe rel. */\n external = input(false, { transform: booleanAttribute });\n\n // --- Icons (presence-based, same as ui-button) -----------------------\n /** FontAwesome icon name shown before the text. */\n iconLeft = input<string>();\n /** FontAwesome icon name shown after the text. */\n iconRight = input<string>();\n\n disabled = input(false, { transform: booleanAttribute });\n tabindex = input<number>();\n /** aria-current exposed on the anchor (e.g. \"page\" for the current breadcrumb item). */\n ariaCurrent = input<string>();\n\n /** Emitted on click (never when disabled). Navigation stays native. */\n linkClick = output<MouseEvent>();\n /** Fired when the link receives focus. */\n linkFocus = output<FocusEvent>();\n /** Fired when the link loses focus. */\n linkBlur = output<FocusEvent>();\n\n /** @ignore */\n private readonly hostEl = viewChild.required<ElementRef<HTMLAnchorElement>>('host');\n\n constructor() {\n // A11y safeguard: an icon-only link must have an accessible name.\n if (isDevMode()) {\n effect(() => {\n if (this.isIconOnly() && !this.accessibleLabel()) {\n console.warn(\n '[ui-link] Icon-only link has no accessible name: provide `ariaLabel` (or `label`).',\n );\n }\n });\n }\n }\n\n /** @ignore Icon size follows the text size. */\n protected readonly iconSize = computed(() => (this.size() === 'small' ? 'sm' : 'default'));\n\n /** @ignore No visible text but at least one icon → icon-only. */\n protected readonly isIconOnly = computed(\n () => !this.label() && (!!this.iconLeft() || !!this.iconRight()),\n );\n\n /** @ignore Link mode uses the Angular RouterLink directive. */\n protected readonly useRouterLink = computed(() => this.routerLink() != null);\n\n /** @ignore Effective anchor target (external forces _blank). */\n protected readonly computedTarget = computed(() => this.target() ?? (this.external() ? '_blank' : null));\n\n /** @ignore Anchor rel: explicit, or a safe default for _blank / external. */\n protected readonly computedRel = computed(() => {\n if (this.rel()) return this.rel()!;\n if (this.computedTarget() === '_blank') return 'noopener noreferrer';\n return null;\n });\n\n /** @ignore Tabindex: -1 when disabled (an <a> has no native disabled). */\n protected readonly linkTabindex = computed(() => (this.disabled() ? -1 : (this.tabindex() ?? null)));\n\n /** @ignore Accessible name: explicit, or the label when icon-only. */\n protected readonly accessibleLabel = computed(() => {\n if (this.ariaLabel()) return this.ariaLabel()!;\n if (this.isIconOnly()) return this.label() ?? null;\n return null;\n });\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-link'];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n if (this.isIconOnly()) c.push('_icon-only');\n if (this.disabled()) c.push('_disabled');\n return c.join(' ');\n });\n\n /** Sets the focus on the link (useful for controlling focus programmatically). */\n focus(options?: FocusOptions): void {\n this.hostEl().nativeElement.focus(options);\n }\n\n /** @ignore */\n protected onClick(event: MouseEvent): void {\n if (this.disabled()) {\n event.preventDefault();\n return;\n }\n this.linkClick.emit(event);\n }\n}\n","@if (useRouterLink()) {\n <a\n #host\n [class]=\"classes()\"\n [routerLink]=\"disabled() ? null : routerLink()\"\n [attr.target]=\"computedTarget()\"\n [attr.rel]=\"computedRel()\"\n [attr.tabindex]=\"linkTabindex()\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.aria-current]=\"ariaCurrent() ?? null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (click)=\"onClick($event)\"\n (focus)=\"linkFocus.emit($event)\"\n (blur)=\"linkBlur.emit($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </a>\n} @else {\n <a\n #host\n [class]=\"classes()\"\n [attr.href]=\"disabled() ? null : href()\"\n [attr.target]=\"computedTarget()\"\n [attr.rel]=\"computedRel()\"\n [attr.tabindex]=\"linkTabindex()\"\n [attr.aria-label]=\"accessibleLabel()\"\n [attr.aria-current]=\"ariaCurrent() ?? null\"\n [attr.aria-disabled]=\"disabled() ? 'true' : null\"\n (click)=\"onClick($event)\"\n (focus)=\"linkFocus.emit($event)\"\n (blur)=\"linkBlur.emit($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"inner\" />\n </a>\n}\n\n<ng-template #inner>\n @if (iconLeft()) {\n <ui-icon class=\"ui-link-icon\" [name]=\"iconLeft()!\" [size]=\"iconSize()\" />\n }\n\n <span class=\"ui-link-content\">\n @if (label() && !isIconOnly()) {\n <span class=\"ui-link-label\">{{ label() }}</span>\n }\n <ng-content />\n </span>\n\n @if (iconRight()) {\n <ui-icon class=\"ui-link-icon\" [name]=\"iconRight()!\" [size]=\"iconSize()\" />\n }\n</ng-template>\n","/*\n * Public API Surface of ui-kit/ui-link\n */\n\nexport * from './lib/ui-link';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAiBA;;;;;;;;;;AAUG;MAQU,MAAM,CAAA;AAuCjB,IAAA,WAAA,GAAA;;AArCA,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAU;AACvB,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK;iGAAU;QAC3B,IAAA,CAAA,IAAI,GAAG,KAAK,CAAW,SAAS;iFAAC;;;AAIjC,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK;4FAAU;;AAEtB,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK;kGAAsB;;AAExC,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK;8FAAU;;AAExB,QAAA,IAAA,CAAA,GAAG,GAAG,KAAK;2FAAU;;QAErB,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;;AAIxD,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK;gGAAU;;AAE1B,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK;iGAAU;QAE3B,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AACxD,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK;gGAAU;;AAE1B,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK;mGAAU;;QAG7B,IAAA,CAAA,SAAS,GAAG,MAAM,EAAc;;QAEhC,IAAA,CAAA,SAAS,GAAG,MAAM,EAAc;;QAEhC,IAAA,CAAA,QAAQ,GAAG,MAAM,EAAc;;AAGd,QAAA,IAAA,CAAA,MAAM,GAAG,SAAS,CAAC,QAAQ,CAAgC,MAAM;mFAAC;;QAgBhE,IAAA,CAAA,QAAQ,GAAG,QAAQ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,IAAA,EAAA,MAAM,07DCnCnB,ohDAoDA,EAAA,MAAA,EAAA,CAAA,owCAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDtBY,MAAM,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,QAAA,EAAA,YAAA,EAAA,WAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,UAAU,kPAAE,gBAAgB,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,kBAAA,EAAA,0BAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAKnC,MAAM,EAAA,UAAA,EAAA,CAAA;kBAPlB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,SAAS,EAAA,OAAA,EACV,CAAC,MAAM,EAAE,UAAU,EAAE,gBAAgB,CAAC,EAAA,IAAA,EAGzC,EAAE,iBAAiB,EAAE,eAAe,EAAE,EAAA,QAAA,EAAA,ohDAAA,EAAA,MAAA,EAAA,CAAA,owCAAA,CAAA,EAAA;28CAuCgC,MAAM,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AExEpF;;AAEG;;ACFH;;AAEG;;;;"}
@@ -78,10 +78,10 @@ class UiIcon {
78
78
  }
79
79
  });
80
80
  }
81
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiIcon, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
82
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: UiIcon, isStandalone: true, selector: "ui-icon", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, family: { classPropertyName: "family", publicName: "family", isSignal: true, isRequired: false, transformFunction: null }, decorative: { classPropertyName: "decorative", publicName: "decorative", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<i\n [class]=\"classes()\"\n [attr.aria-hidden]=\"decorative() ? 'true' : null\"\n [attr.role]=\"decorative() ? null : 'img'\"\n [attr.aria-label]=\"decorative() ? null : ariaLabel()\"\n>{{ content() }}</i>\n", styles: [":host{display:inline-flex;line-height:0}.ui-icon{display:inline-flex;align-items:center;justify-content:center;min-width:1em;min-height:1em;aspect-ratio:1;color:inherit}.ui-icon._sm{font-size:var(--ui-icon-size, var(--size-typography-icon-sm))}.ui-icon._md{font-size:var(--ui-icon-size, var(--size-typography-icon-md))}.ui-icon._default{font-size:var(--ui-icon-size, var(--size-typography-icon-default))}.ui-icon._lg{font-size:var(--ui-icon-size, var(--size-typography-icon-lg))}.ui-icon._xl{font-size:var(--ui-icon-size, var(--size-typography-icon-xl))}\n"] }); }
81
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiIcon, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
82
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.1", type: UiIcon, isStandalone: true, selector: "ui-icon", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, family: { classPropertyName: "family", publicName: "family", isSignal: true, isRequired: false, transformFunction: null }, decorative: { classPropertyName: "decorative", publicName: "decorative", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<i\n [class]=\"classes()\"\n [attr.aria-hidden]=\"decorative() ? 'true' : null\"\n [attr.role]=\"decorative() ? null : 'img'\"\n [attr.aria-label]=\"decorative() ? null : ariaLabel()\"\n>{{ content() }}</i>\n", styles: [":host{display:inline-flex;line-height:0}.ui-icon{display:inline-flex;align-items:center;justify-content:center;min-width:1em;min-height:1em;aspect-ratio:1;color:inherit}.ui-icon._sm{font-size:var(--ui-icon-size, var(--size-typography-icon-sm))}.ui-icon._md{font-size:var(--ui-icon-size, var(--size-typography-icon-md))}.ui-icon._default{font-size:var(--ui-icon-size, var(--size-typography-icon-default))}.ui-icon._lg{font-size:var(--ui-icon-size, var(--size-typography-icon-lg))}.ui-icon._xl{font-size:var(--ui-icon-size, var(--size-typography-icon-xl))}\n"] }); }
83
83
  }
84
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiIcon, decorators: [{
84
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiIcon, decorators: [{
85
85
  type: Component,
86
86
  args: [{ selector: 'ui-icon', template: "<i\n [class]=\"classes()\"\n [attr.aria-hidden]=\"decorative() ? 'true' : null\"\n [attr.role]=\"decorative() ? null : 'img'\"\n [attr.aria-label]=\"decorative() ? null : ariaLabel()\"\n>{{ content() }}</i>\n", styles: [":host{display:inline-flex;line-height:0}.ui-icon{display:inline-flex;align-items:center;justify-content:center;min-width:1em;min-height:1em;aspect-ratio:1;color:inherit}.ui-icon._sm{font-size:var(--ui-icon-size, var(--size-typography-icon-sm))}.ui-icon._md{font-size:var(--ui-icon-size, var(--size-typography-icon-md))}.ui-icon._default{font-size:var(--ui-icon-size, var(--size-typography-icon-default))}.ui-icon._lg{font-size:var(--ui-icon-size, var(--size-typography-icon-lg))}.ui-icon._xl{font-size:var(--ui-icon-size, var(--size-typography-icon-xl))}\n"] }]
87
87
  }], ctorParameters: () => [], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: true }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], family: [{ type: i0.Input, args: [{ isSignal: true, alias: "family", required: false }] }], decorative: [{ type: i0.Input, args: [{ isSignal: true, alias: "decorative", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
@@ -95,4 +95,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
95
95
  */
96
96
 
97
97
  export { UI_ICON_BUILTIN_FAMILIES, UI_ICON_DEFAULT_FAMILY, UI_ICON_FAMILIES, UiIcon, fontAwesomeFamily, provideUiIconFamilies };
98
- //# sourceMappingURL=4sh-ui-kit-ui-icon.mjs.map
98
+ //# sourceMappingURL=4sh-ui-kit-base-ui-icon.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"4sh-ui-kit-base-ui-icon.mjs","sources":["../../../projects/ui-kit/base/ui-icon/src/lib/ui-icon-families.ts","../../../projects/ui-kit/base/ui-icon/src/lib/ui-icon.ts","../../../projects/ui-kit/base/ui-icon/src/lib/ui-icon.html","../../../projects/ui-kit/base/ui-icon/src/public-api.ts","../../../projects/ui-kit/base/ui-icon/src/4sh-ui-kit-base-ui-icon.ts"],"sourcesContent":["import { EnvironmentProviders, InjectionToken, makeEnvironmentProviders, Provider } from '@angular/core';\n\n/** Visual variant of an icon, interpreted by each family (filled vs outlined). */\nexport type UiIconType = 'solid' | 'outline';\n\n/**\n * Describes how an icon font family turns a name + variant into markup, so\n * ui-icon can render any font (FontAwesome, Material Symbols, Bootstrap Icons…).\n */\nexport interface UiIconFamily {\n /** CSS classes applied to the `<i>`. */\n classes: (name: string, type: UiIconType) => string;\n /** Text content of the `<i>` — ligature fonts (e.g. Material Symbols) put the name here. */\n content?: (name: string, type: UiIconType) => string | null;\n}\n\n/** Built-in FontAwesome Free family (the default). */\nexport const fontAwesomeFamily: UiIconFamily = {\n classes: (name, type) => `${type === 'outline' ? 'fa-regular' : 'fa-solid'} fa-${name}`,\n};\n\n/** Families always available, keyed by name. Registered families are merged on top. */\nexport const UI_ICON_BUILTIN_FAMILIES: Record<string, UiIconFamily> = {\n fontawesome: fontAwesomeFamily,\n};\n\n/** Registered icon families (multi provider). Merged over the built-ins. */\nexport const UI_ICON_FAMILIES = new InjectionToken<Record<string, UiIconFamily>[]>('UI_ICON_FAMILIES');\n\n/** Family key used when a `ui-icon` does not set `family`. */\nexport const UI_ICON_DEFAULT_FAMILY = new InjectionToken<string>('UI_ICON_DEFAULT_FAMILY');\n\nexport function provideUiIconFamilies(\n families: Record<string, UiIconFamily>,\n options?: { default?: string },\n): EnvironmentProviders {\n const providers: Provider[] = [{ provide: UI_ICON_FAMILIES, useValue: families, multi: true }];\n if (options?.default) {\n providers.push({ provide: UI_ICON_DEFAULT_FAMILY, useValue: options.default });\n }\n return makeEnvironmentProviders(providers);\n}\n","import { booleanAttribute, Component, computed, effect, inject, input, isDevMode } from '@angular/core';\nimport {\n fontAwesomeFamily,\n UI_ICON_BUILTIN_FAMILIES,\n UI_ICON_DEFAULT_FAMILY,\n UI_ICON_FAMILIES,\n UiIconFamily,\n UiIconType,\n} from './ui-icon-families';\n\nexport type UiIconSize = 'sm' | 'md' | 'default' | 'lg' | 'xl';\nexport type { UiIconType };\n\n/**\n * ui-icon — renders an icon from a configurable font family.\n *\n * FontAwesome is the built-in default. Register other families (Material Symbols,\n * Bootstrap Icons, a custom font…) with `provideUiIconFamilies()` and pick one per\n * icon via `family`, or change the app-wide default.\n *\n * Accessible: decorative by default (aria-hidden); pass `decorative=false` + `ariaLabel`\n * when the icon conveys meaning on its own.\n */\n@Component({\n selector: 'ui-icon',\n templateUrl: './ui-icon.html',\n styleUrl: './ui-icon.scss',\n})\nexport class UiIcon {\n /** Icon name for the selected family (e.g. \"circle-user\"). */\n name = input.required<string>();\n /** Icon size. */\n size = input<UiIconSize>('default');\n /** Visual variant, interpreted by the family (filled vs outlined). */\n type = input<UiIconType>('solid');\n /** Family key (default: configured default, else \"fontawesome\"). */\n family = input<string>();\n /** Purely decorative icon (hidden from screen readers). */\n decorative = input(true, { transform: booleanAttribute });\n /** Accessible label (required when not decorative). */\n ariaLabel = input<string>();\n\n private readonly registered = inject(UI_ICON_FAMILIES, { optional: true });\n private readonly configuredDefault = inject(UI_ICON_DEFAULT_FAMILY, { optional: true });\n\n /** Built-in families + registered ones (registered win on key clash). */\n private readonly families = computed<Record<string, UiIconFamily>>(() =>\n Object.assign({}, UI_ICON_BUILTIN_FAMILIES, ...(this.registered ?? [])),\n );\n\n /** @ignore Resolved family, falling back to FontAwesome on unknown key. */\n private readonly resolvedFamily = computed(() => {\n const key = this.family() ?? this.configuredDefault ?? 'fontawesome';\n const family = this.families()[key];\n if (!family && isDevMode()) {\n console.warn(`[ui-icon] Unknown icon family \"${key}\". Falling back to \"fontawesome\".`);\n }\n return family ?? fontAwesomeFamily;\n });\n\n /** @ignore */\n protected readonly classes = computed(\n () => `ui-icon _${this.size()} ${this.resolvedFamily().classes(this.name(), this.type())}`,\n );\n\n /** @ignore Text content for ligature fonts (null for class-based fonts like FontAwesome). */\n protected readonly content = computed(\n () => this.resolvedFamily().content?.(this.name(), this.type()) ?? null,\n );\n\n constructor() {\n effect(() => {\n if (!this.decorative() && !this.ariaLabel() && isDevMode()) {\n console.warn(\n `[ui-icon] Meaningful icon \"${this.name()}\" (decorative=false) has no ariaLabel — ` +\n `it renders role=\"img\" with no accessible name.`,\n );\n }\n });\n }\n}\n","<i\n [class]=\"classes()\"\n [attr.aria-hidden]=\"decorative() ? 'true' : null\"\n [attr.role]=\"decorative() ? null : 'img'\"\n [attr.aria-label]=\"decorative() ? null : ariaLabel()\"\n>{{ content() }}</i>\n","/*\n * Public API Surface of ui-kit/ui-icon\n */\n\nexport * from './lib/ui-icon';\nexport * from './lib/ui-icon-families';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;AAgBA;AACO,MAAM,iBAAiB,GAAiB;IAC7C,OAAO,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,CAAA,EAAG,IAAI,KAAK,SAAS,GAAG,YAAY,GAAG,UAAU,CAAA,IAAA,EAAO,IAAI,CAAA,CAAE;;AAGzF;AACO,MAAM,wBAAwB,GAAiC;AACpE,IAAA,WAAW,EAAE,iBAAiB;;AAGhC;MACa,gBAAgB,GAAG,IAAI,cAAc,CAAiC,kBAAkB;AAErG;MACa,sBAAsB,GAAG,IAAI,cAAc,CAAS,wBAAwB;AAEnF,SAAU,qBAAqB,CACnC,QAAsC,EACtC,OAA8B,EAAA;AAE9B,IAAA,MAAM,SAAS,GAAe,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC9F,IAAA,IAAI,OAAO,EAAE,OAAO,EAAE;AACpB,QAAA,SAAS,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,sBAAsB,EAAE,QAAQ,EAAE,OAAO,CAAC,OAAO,EAAE,CAAC;IAChF;AACA,IAAA,OAAO,wBAAwB,CAAC,SAAS,CAAC;AAC5C;;AC5BA;;;;;;;;;AASG;MAMU,MAAM,CAAA;AA0CjB,IAAA,WAAA,GAAA;;QAxCA,IAAA,CAAA,IAAI,GAAG,KAAK,CAAC,QAAQ;iFAAU;;QAE/B,IAAA,CAAA,IAAI,GAAG,KAAK,CAAa,SAAS;iFAAC;;QAEnC,IAAA,CAAA,IAAI,GAAG,KAAK,CAAa,OAAO;iFAAC;;AAEjC,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK;8FAAU;;QAExB,IAAA,CAAA,UAAU,GAAG,KAAK,CAAC,IAAI,kFAAI,SAAS,EAAE,gBAAgB,EAAA,C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GC,MAAM,CAAC,MAAK;AACV,YAAA,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,SAAS,EAAE,EAAE;gBAC1D,OAAO,CAAC,IAAI,CACV,CAAA,2BAAA,EAA8B,IAAI,CAAC,IAAI,EAAE,CAAA,wCAAA,CAA0C;AACjF,oBAAA,CAAA,8CAAA,CAAgD,CACnD;YACH;AACF,QAAA,CAAC,CAAC;IACJ;8GAnDW,MAAM,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAN,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,MAAM,mzBC5BnB,sNAMA,EAAA,MAAA,EAAA,CAAA,8iBAAA,CAAA,EAAA,CAAA,CAAA;;2FDsBa,MAAM,EAAA,UAAA,EAAA,CAAA;kBALlB,SAAS;+BACE,SAAS,EAAA,QAAA,EAAA,sNAAA,EAAA,MAAA,EAAA,CAAA,8iBAAA,CAAA,EAAA;;;AExBrB;;AAEG;;ACFH;;AAEG;;;;"}
@@ -4,7 +4,7 @@ import { NgOptimizedImage } from '@angular/common';
4
4
  import { httpResource } from '@angular/common/http';
5
5
  import { DomSanitizer } from '@angular/platform-browser';
6
6
  import { ThemeService, BrandService } from '@4sh/ui-kit/theming';
7
- import { UiIcon } from '@4sh/ui-kit/ui-icon';
7
+ import { UiIcon } from '@4sh/ui-kit/base/ui-icon';
8
8
 
9
9
  /**
10
10
  * Map of the LOCAL assets available to `ui-image` (its `name` input).
@@ -181,10 +181,10 @@ class UiImage {
181
181
  }
182
182
  return '';
183
183
  }
184
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiImage, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
185
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: UiImage, isStandalone: true, selector: "ui-image", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, src: { classPropertyName: "src", publicName: "src", isSignal: true, isRequired: false, transformFunction: null }, fallback: { classPropertyName: "fallback", publicName: "fallback", isSignal: true, isRequired: false, transformFunction: null }, priority: { classPropertyName: "priority", publicName: "priority", isSignal: true, isRequired: false, transformFunction: null }, fill: { classPropertyName: "fill", publicName: "fill", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, widthUnit: { classPropertyName: "widthUnit", publicName: "widthUnit", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, heightUnit: { classPropertyName: "heightUnit", publicName: "heightUnit", isSignal: true, isRequired: false, transformFunction: null }, alt: { classPropertyName: "alt", publicName: "alt", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { loadFailed: "loadFailed" }, ngImport: i0, template: "@if (showPlaceholder()) {\n <div\n class=\"ui-image-placeholder\"\n [style.width]=\"cssWidth()\"\n [style.height]=\"cssHeight()\"\n [attr.role]=\"alt() ? 'img' : null\"\n [attr.aria-label]=\"alt() || null\"\n [attr.aria-hidden]=\"alt() ? null : true\"\n >\n <ui-icon name=\"image\" />\n </div>\n} @else if (isInlineSvg() && !primaryFailed()) {\n <div class=\"ui-image-svg\" [style.width]=\"cssWidth()\" [style.height]=\"cssHeight()\" [innerHTML]=\"svgContent()\"></div>\n} @else {\n <img\n class=\"ui-image\"\n [ngSrc]=\"displayedSrc()!\"\n [alt]=\"alt() || ''\"\n [width]=\"!fill() ? width() : null\"\n [height]=\"!fill() ? (height() ? height() : width()) : null\"\n [fill]=\"fill()\"\n [priority]=\"priority()\"\n (error)=\"onImgError()\"\n />\n}\n", styles: ["@charset \"UTF-8\";:host{display:flex;align-items:center;justify-content:center}.ui-image{object-fit:contain}.ui-image-svg{display:flex;width:100%}.ui-image-svg ::ng-deep svg{width:100%;height:100%}.ui-image-placeholder{display:flex;align-items:center;justify-content:center;min-width:var(--units-xl);min-height:var(--units-xl);border-radius:var(--radius-default);background:var(--global-background-muted);color:var(--global-text-muted)}\n"], dependencies: [{ kind: "directive", type: NgOptimizedImage, selector: "img[ngSrc]", inputs: ["ngSrc", "ngSrcset", "sizes", "width", "height", "decoding", "loading", "priority", "loaderParams", "disableOptimizedSrcset", "fill", "placeholder", "placeholderConfig", "src", "srcset"] }, { kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }] }); }
184
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiImage, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
185
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: UiImage, isStandalone: true, selector: "ui-image", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, src: { classPropertyName: "src", publicName: "src", isSignal: true, isRequired: false, transformFunction: null }, fallback: { classPropertyName: "fallback", publicName: "fallback", isSignal: true, isRequired: false, transformFunction: null }, priority: { classPropertyName: "priority", publicName: "priority", isSignal: true, isRequired: false, transformFunction: null }, fill: { classPropertyName: "fill", publicName: "fill", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, widthUnit: { classPropertyName: "widthUnit", publicName: "widthUnit", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, heightUnit: { classPropertyName: "heightUnit", publicName: "heightUnit", isSignal: true, isRequired: false, transformFunction: null }, alt: { classPropertyName: "alt", publicName: "alt", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { loadFailed: "loadFailed" }, ngImport: i0, template: "@if (showPlaceholder()) {\n <div\n class=\"ui-image-placeholder\"\n [style.width]=\"cssWidth()\"\n [style.height]=\"cssHeight()\"\n [attr.role]=\"alt() ? 'img' : null\"\n [attr.aria-label]=\"alt() || null\"\n [attr.aria-hidden]=\"alt() ? null : true\"\n >\n <ui-icon name=\"image\" />\n </div>\n} @else if (isInlineSvg() && !primaryFailed()) {\n <div class=\"ui-image-svg\" [style.width]=\"cssWidth()\" [style.height]=\"cssHeight()\" [innerHTML]=\"svgContent()\"></div>\n} @else {\n <img\n class=\"ui-image\"\n [ngSrc]=\"displayedSrc()!\"\n [alt]=\"alt() || ''\"\n [width]=\"!fill() ? width() : null\"\n [height]=\"!fill() ? (height() ? height() : width()) : null\"\n [fill]=\"fill()\"\n [priority]=\"priority()\"\n (error)=\"onImgError()\"\n />\n}\n", styles: ["@charset \"UTF-8\";:host{display:flex;align-items:center;justify-content:center}.ui-image{object-fit:contain}.ui-image-svg{display:flex;width:100%}.ui-image-svg ::ng-deep svg{width:100%;height:100%}.ui-image-placeholder{display:flex;align-items:center;justify-content:center;min-width:var(--units-xl);min-height:var(--units-xl);border-radius:var(--radius-default);background:var(--global-background-muted);color:var(--global-text-muted)}\n"], dependencies: [{ kind: "directive", type: NgOptimizedImage, selector: "img[ngSrc]", inputs: ["ngSrc", "ngSrcset", "sizes", "width", "height", "decoding", "loading", "priority", "loaderParams", "disableOptimizedSrcset", "fill", "placeholder", "placeholderConfig", "src", "srcset"] }, { kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }] }); }
186
186
  }
187
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiImage, decorators: [{
187
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiImage, decorators: [{
188
188
  type: Component,
189
189
  args: [{ selector: 'ui-image', imports: [NgOptimizedImage, UiIcon], template: "@if (showPlaceholder()) {\n <div\n class=\"ui-image-placeholder\"\n [style.width]=\"cssWidth()\"\n [style.height]=\"cssHeight()\"\n [attr.role]=\"alt() ? 'img' : null\"\n [attr.aria-label]=\"alt() || null\"\n [attr.aria-hidden]=\"alt() ? null : true\"\n >\n <ui-icon name=\"image\" />\n </div>\n} @else if (isInlineSvg() && !primaryFailed()) {\n <div class=\"ui-image-svg\" [style.width]=\"cssWidth()\" [style.height]=\"cssHeight()\" [innerHTML]=\"svgContent()\"></div>\n} @else {\n <img\n class=\"ui-image\"\n [ngSrc]=\"displayedSrc()!\"\n [alt]=\"alt() || ''\"\n [width]=\"!fill() ? width() : null\"\n [height]=\"!fill() ? (height() ? height() : width()) : null\"\n [fill]=\"fill()\"\n [priority]=\"priority()\"\n (error)=\"onImgError()\"\n />\n}\n", styles: ["@charset \"UTF-8\";:host{display:flex;align-items:center;justify-content:center}.ui-image{object-fit:contain}.ui-image-svg{display:flex;width:100%}.ui-image-svg ::ng-deep svg{width:100%;height:100%}.ui-image-placeholder{display:flex;align-items:center;justify-content:center;min-width:var(--units-xl);min-height:var(--units-xl);border-radius:var(--radius-default);background:var(--global-background-muted);color:var(--global-text-muted)}\n"] }]
190
190
  }], ctorParameters: () => [], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], src: [{ type: i0.Input, args: [{ isSignal: true, alias: "src", required: false }] }], fallback: [{ type: i0.Input, args: [{ isSignal: true, alias: "fallback", required: false }] }], priority: [{ type: i0.Input, args: [{ isSignal: true, alias: "priority", required: false }] }], fill: [{ type: i0.Input, args: [{ isSignal: true, alias: "fill", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], widthUnit: [{ type: i0.Input, args: [{ isSignal: true, alias: "widthUnit", required: false }] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], heightUnit: [{ type: i0.Input, args: [{ isSignal: true, alias: "heightUnit", required: false }] }], alt: [{ type: i0.Input, args: [{ isSignal: true, alias: "alt", required: false }] }], loadFailed: [{ type: i0.Output, args: ["loadFailed"] }] } });
@@ -198,4 +198,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
198
198
  */
199
199
 
200
200
  export { UI_IMAGE_ASSETS, UiImage, provideUiImageAssets };
201
- //# sourceMappingURL=4sh-ui-kit-ui-image.mjs.map
201
+ //# sourceMappingURL=4sh-ui-kit-base-ui-image.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"4sh-ui-kit-base-ui-image.mjs","sources":["../../../projects/ui-kit/base/ui-image/src/lib/ui-image.ts","../../../projects/ui-kit/base/ui-image/src/lib/ui-image.html","../../../projects/ui-kit/base/ui-image/src/public-api.ts","../../../projects/ui-kit/base/ui-image/src/4sh-ui-kit-base-ui-image.ts"],"sourcesContent":["import {\n Component,\n computed,\n effect,\n inject,\n InjectionToken,\n input,\n isDevMode,\n linkedSignal,\n output,\n Provider,\n} from '@angular/core';\nimport { NgOptimizedImage } from '@angular/common';\nimport { httpResource } from '@angular/common/http';\nimport { DomSanitizer, SafeHtml } from '@angular/platform-browser';\nimport { ThemeService } from '@4sh/ui-kit/theming';\nimport { BrandService } from '@4sh/ui-kit/theming';\nimport { UiIcon } from '@4sh/ui-kit/base/ui-icon';\n\ninterface ModeMap {\n base?: string;\n light?: string;\n dark?: string;\n}\ntype ThemeMap = Record<string, ModeMap>;\n/** filename → { brand|'common' → { base|light|dark → extension } }. */\nexport type UiImageAssetsMap = Record<string, ThemeMap>;\n\n/**\n * Map of the LOCAL assets available to `ui-image` (its `name` input).\n *\n * The kit cannot know a project's assets, so the map is injected rather than\n * bundled: generate it in your app (see `npm run generate:assets` in the\n * starter, which writes `src/assets/assets-map.json`) and provide it with\n * `provideUiImageAssets()`. Without it, `name` resolves to nothing and the\n * component falls back to its placeholder — `src` (remote URLs) still works.\n */\nexport const UI_IMAGE_ASSETS = new InjectionToken<UiImageAssetsMap>('UI_IMAGE_ASSETS');\n\n/**\n * Registers the local asset map consumed by `ui-image`.\n *\n * ```ts\n * import assetsMap from './assets/assets-map.json';\n * providers: [provideUiImageAssets(assetsMap)]\n * ```\n */\nexport function provideUiImageAssets(map: UiImageAssetsMap): Provider {\n return { provide: UI_IMAGE_ASSETS, useValue: map };\n}\n\n/** Cross-instance memoization: the same resolved URL is fetched once (logos repeated across the app). */\nconst SVG_CACHE = new Map<string, string>();\n\n/**\n * ui-image — theme/brand-aware image.\n *\n * Two sources: `name` (local asset key resolved through `assets-map.json`,\n * theme/brand variants) or `src` (remote/absolute URL — takes precedence).\n * Local `.svg` assets are inlined (`innerHTML`) so they can inherit CSS;\n * remote URLs always render through `<img [ngSrc]>` (never inlined).\n * On load failure the `fallback` local asset is shown, then a token-styled\n * placeholder if the fallback also fails (or none is provided).\n */\n@Component({\n selector: 'ui-image',\n templateUrl: './ui-image.html',\n styleUrl: './ui-image.scss',\n imports: [NgOptimizedImage, UiIcon],\n})\nexport class UiImage {\n private readonly sanitizer = inject(DomSanitizer);\n private readonly assetsMap = inject(UI_IMAGE_ASSETS, { optional: true }) ?? {};\n private readonly themeService = inject(ThemeService);\n private readonly brandService = inject(BrandService);\n\n /** Local asset key in `assets-map.json` (theme/brand-aware resolution). */\n name = input<string>();\n /** Remote/absolute URL, rendered via `NgOptimizedImage` — takes precedence over `name`. */\n src = input<string>();\n /** Local asset name (`assets-map.json` key) displayed when the main image fails to load. */\n fallback = input<string>();\n priority = input(false);\n fill = input(false);\n width = input<string | number>();\n widthUnit = input<string>();\n height = input<string | number>();\n heightUnit = input<string>();\n alt = input<string>();\n\n /** Emitted with the failed URL when an image fails to load. */\n loadFailed = output<string>();\n\n protected readonly isRemote = computed(() => !!this.src());\n /** Inline SVG is reserved for LOCAL assets — a remote `.svg` renders through `<img>` (no XSS surface). */\n protected readonly isInlineSvg = computed(() => !this.isRemote() && !!this.name()?.toLowerCase().endsWith('.svg'));\n\n protected readonly localSrc = computed(() => this.resolveLocal(this.name()));\n protected readonly fallbackSrc = computed(() => this.resolveLocal(this.fallback()));\n protected readonly primarySrc = computed(() => this.src() || this.localSrc());\n\n // Failure flags auto-reset when their source URL changes (theme/brand/src swap → automatic retry).\n private readonly primaryImgFailed = linkedSignal({ source: this.primarySrc, computation: () => false });\n private readonly fallbackImgFailed = linkedSignal({ source: this.fallbackSrc, computation: () => false });\n\n private readonly svgResource = httpResource.text(() => {\n if (!this.isInlineSvg()) return undefined;\n const url = this.localSrc();\n return !url || SVG_CACHE.has(url) ? undefined : url;\n });\n\n protected readonly svgContent = computed<SafeHtml | null>(() => {\n if (!this.isInlineSvg()) return null;\n const url = this.localSrc();\n if (!url) return null;\n const raw = SVG_CACHE.get(url) ?? (this.svgResource.hasValue() ? this.svgResource.value() : undefined);\n return raw === undefined ? null : this.sanitizer.bypassSecurityTrustHtml(raw);\n });\n\n protected readonly primaryFailed = computed(() =>\n this.isInlineSvg() ? this.svgResource.status() === 'error' : this.primaryImgFailed(),\n );\n protected readonly showFallback = computed(\n () => this.primaryFailed() && !!this.fallbackSrc() && !this.fallbackImgFailed(),\n );\n protected readonly showPlaceholder = computed(\n () => !this.primarySrc() || (this.primaryFailed() && (!this.fallbackSrc() || this.fallbackImgFailed())),\n );\n protected readonly displayedSrc = computed(() => (this.showFallback() ? this.fallbackSrc() : this.primarySrc()));\n\n protected readonly cssWidth = computed(() =>\n this.width() != null ? `${this.width()}${this.widthUnit() || 'px'}` : null,\n );\n protected readonly cssHeight = computed(() =>\n this.height() != null ? `${this.height()}${this.heightUnit() || 'px'}` : null,\n );\n\n constructor() {\n // Side effect only: populate the module-level SVG cache once a fetch resolves.\n effect(() => {\n if (!this.isInlineSvg()) return;\n const url = this.localSrc();\n if (url && this.svgResource.hasValue()) SVG_CACHE.set(url, this.svgResource.value());\n });\n if (isDevMode()) {\n effect(() => {\n if (this.src() && this.name()) {\n console.warn('[ui-image] `src` and `name` are both set — `src` takes precedence.');\n }\n if (!this.src() && !this.name()) {\n console.warn('[ui-image] Neither `src` nor `name` is set — the placeholder is displayed.');\n }\n });\n }\n }\n\n protected onImgError(): void {\n const failed = this.displayedSrc();\n if (this.showFallback()) this.fallbackImgFailed.set(true);\n else this.primaryImgFailed.set(true);\n if (failed) this.loadFailed.emit(failed);\n }\n\n private resolveLocal(filename: string | undefined): string {\n if (!filename) return '';\n const mode = this.themeService.currentMode();\n const brand = this.brandService.currentBrand();\n\n const fileEntry = this.assetsMap[filename];\n if (!fileEntry) return '';\n\n if (fileEntry[brand]) {\n const path = this.resolvePath(brand, fileEntry[brand], mode, filename);\n if (path) return path;\n }\n\n if (fileEntry['common']) {\n return this.buildPath('common', fileEntry['common'], mode, filename);\n }\n\n return '';\n }\n\n private resolvePath(\n themeFolder: string,\n variants: ModeMap,\n currentMode: 'light' | 'dark',\n filename: string,\n ): string | null {\n if (variants[currentMode]) {\n const type = variants[currentMode]!;\n return `assets/img/${themeFolder}/${type}/${currentMode}/${filename}`;\n }\n\n if (variants.base) {\n const type = variants.base;\n return `assets/img/${themeFolder}/${type}/${filename}`;\n }\n\n return null;\n }\n\n private buildPath(themeName: string, variants: ModeMap, currentMode: 'light' | 'dark', filename: string): string {\n if (variants[currentMode]) {\n const type = variants[currentMode]!;\n return `assets/img/${themeName}/${type}/${currentMode}/${filename}`;\n }\n\n if (variants.base) {\n const type = variants.base;\n return `assets/img/${themeName}/${type}/${filename}`;\n }\n\n return '';\n }\n}\n","@if (showPlaceholder()) {\n <div\n class=\"ui-image-placeholder\"\n [style.width]=\"cssWidth()\"\n [style.height]=\"cssHeight()\"\n [attr.role]=\"alt() ? 'img' : null\"\n [attr.aria-label]=\"alt() || null\"\n [attr.aria-hidden]=\"alt() ? null : true\"\n >\n <ui-icon name=\"image\" />\n </div>\n} @else if (isInlineSvg() && !primaryFailed()) {\n <div class=\"ui-image-svg\" [style.width]=\"cssWidth()\" [style.height]=\"cssHeight()\" [innerHTML]=\"svgContent()\"></div>\n} @else {\n <img\n class=\"ui-image\"\n [ngSrc]=\"displayedSrc()!\"\n [alt]=\"alt() || ''\"\n [width]=\"!fill() ? width() : null\"\n [height]=\"!fill() ? (height() ? height() : width()) : null\"\n [fill]=\"fill()\"\n [priority]=\"priority()\"\n (error)=\"onImgError()\"\n />\n}\n","/*\n * Public API Surface of ui-kit/ui-image\n */\n\nexport * from './lib/ui-image';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;AA4BA;;;;;;;;AAQG;MACU,eAAe,GAAG,IAAI,cAAc,CAAmB,iBAAiB;AAErF;;;;;;;AAOG;AACG,SAAU,oBAAoB,CAAC,GAAqB,EAAA;IACxD,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,GAAG,EAAE;AACpD;AAEA;AACA,MAAM,SAAS,GAAG,IAAI,GAAG,EAAkB;AAE3C;;;;;;;;;AASG;MAOU,OAAO,CAAA;AAmElB,IAAA,WAAA,GAAA;AAlEiB,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,YAAY,CAAC;AAChC,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,eAAe,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,IAAI,EAAE;AAC7D,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,YAAY,CAAC;AACnC,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,YAAY,CAAC;;AAGpD,QAAA,IAAA,CAAA,IAAI,GAAG,KAAK;4FAAU;;AAEtB,QAAA,IAAA,CAAA,GAAG,GAAG,KAAK;2FAAU;;AAErB,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK;gGAAU;QAC1B,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAC,KAAK;qFAAC;QACvB,IAAA,CAAA,IAAI,GAAG,KAAK,CAAC,KAAK;iFAAC;AACnB,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAmB;AAChC,QAAA,IAA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A,QAAA,EAAA,UAAA,EAAA,QAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,iBAAA,EAAA,YAAA,EAAA,UAAA,EAAA,YAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,GAAA,EAAA,EAAA,iBAAA,EAAA,KAAA,EAAA,UAAA,EAAA,KAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,OAAA,EAAA,EAAA,UAAA,EAAA,YAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECtEpB,myBAyBA,EAAA,MAAA,EAAA,CAAA,ybAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,ED2CY,gBAAgB,4PAAE,MAAM,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,QAAA,EAAA,YAAA,EAAA,WAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAEvB,OAAO,EAAA,UAAA,EAAA,CAAA;kBANnB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,UAAU,EAAA,OAAA,EAGX,CAAC,gBAAgB,EAAE,MAAM,CAAC,EAAA,QAAA,EAAA,myBAAA,EAAA,MAAA,EAAA,CAAA,ybAAA,CAAA,EAAA;;;AEpErC;;AAEG;;ACFH;;AAEG;;;;"}
@@ -6,10 +6,10 @@ import * as i1 from '@angular/cdk/overlay';
6
6
  import { OverlayModule } from '@angular/cdk/overlay';
7
7
  import { CdkVirtualScrollViewport, ScrollingModule } from '@angular/cdk/scrolling';
8
8
  import { BaseFormField, formatLabel, dropdownOverlayPositions, createOptionResolver } from '@4sh/ui-kit/forms';
9
- import { UiField } from '@4sh/ui-kit/ui-field';
10
- import { UiIcon } from '@4sh/ui-kit/ui-icon';
11
- import { UiSpinner } from '@4sh/ui-kit/ui-spinner';
12
- import { UiChip } from '@4sh/ui-kit/ui-chip';
9
+ import { UiField } from '@4sh/ui-kit/forms/ui-field';
10
+ import { UiIcon } from '@4sh/ui-kit/base/ui-icon';
11
+ import { UiSpinner } from '@4sh/ui-kit/informative/ui-spinner';
12
+ import { UiChip } from '@4sh/ui-kit/informative/ui-chip';
13
13
  import { UiMotion } from '@4sh/ui-kit/motion';
14
14
  import { closeOnNavigation } from '@4sh/ui-kit/overlay';
15
15
 
@@ -906,10 +906,10 @@ class UiAutocomplete extends BaseFormField {
906
906
  .normalize('NFD')
907
907
  .replace(/[̀-ͯ]/g, '');
908
908
  }
909
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiAutocomplete, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
910
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: UiAutocomplete, isStandalone: true, selector: "ui-autocomplete", inputs: { suggestions: { classPropertyName: "suggestions", publicName: "suggestions", 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 }, dataKey: { classPropertyName: "dataKey", publicName: "dataKey", isSignal: true, isRequired: false, transformFunction: null }, group: { classPropertyName: "group", publicName: "group", isSignal: true, isRequired: false, transformFunction: null }, optionGroupLabel: { classPropertyName: "optionGroupLabel", publicName: "optionGroupLabel", isSignal: true, isRequired: false, transformFunction: null }, optionGroupChildren: { classPropertyName: "optionGroupChildren", publicName: "optionGroupChildren", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, minLength: { classPropertyName: "minLength", publicName: "minLength", isSignal: true, isRequired: false, transformFunction: null }, delay: { classPropertyName: "delay", publicName: "delay", isSignal: true, isRequired: false, transformFunction: null }, completeOnFocus: { classPropertyName: "completeOnFocus", publicName: "completeOnFocus", isSignal: true, isRequired: false, transformFunction: null }, dropdown: { classPropertyName: "dropdown", publicName: "dropdown", isSignal: true, isRequired: false, transformFunction: null }, dropdownMode: { classPropertyName: "dropdownMode", publicName: "dropdownMode", isSignal: true, isRequired: false, transformFunction: null }, dropdownAriaLabel: { classPropertyName: "dropdownAriaLabel", publicName: "dropdownAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, dropdownIcon: { classPropertyName: "dropdownIcon", publicName: "dropdownIcon", isSignal: true, isRequired: false, transformFunction: null }, forceSelection: { classPropertyName: "forceSelection", publicName: "forceSelection", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, unique: { classPropertyName: "unique", publicName: "unique", isSignal: true, isRequired: false, transformFunction: null }, maxSelectedLabels: { classPropertyName: "maxSelectedLabels", publicName: "maxSelectedLabels", isSignal: true, isRequired: false, transformFunction: null }, overflowLabel: { classPropertyName: "overflowLabel", publicName: "overflowLabel", isSignal: true, isRequired: false, transformFunction: null }, removeTagLabel: { classPropertyName: "removeTagLabel", publicName: "removeTagLabel", isSignal: true, isRequired: false, transformFunction: null }, showClear: { classPropertyName: "showClear", publicName: "showClear", isSignal: true, isRequired: false, transformFunction: null }, clearAriaLabel: { classPropertyName: "clearAriaLabel", publicName: "clearAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, showEmptyMessage: { classPropertyName: "showEmptyMessage", publicName: "showEmptyMessage", isSignal: true, isRequired: false, transformFunction: null }, autoOptionFocus: { classPropertyName: "autoOptionFocus", publicName: "autoOptionFocus", isSignal: true, isRequired: false, transformFunction: null }, selectOnFocus: { classPropertyName: "selectOnFocus", publicName: "selectOnFocus", isSignal: true, isRequired: false, transformFunction: null }, focusOnHover: { classPropertyName: "focusOnHover", publicName: "focusOnHover", isSignal: true, isRequired: false, transformFunction: null }, virtualScroll: { classPropertyName: "virtualScroll", publicName: "virtualScroll", isSignal: true, isRequired: false, transformFunction: null }, virtualScrollItemSize: { classPropertyName: "virtualScrollItemSize", publicName: "virtualScrollItemSize", isSignal: true, isRequired: false, transformFunction: null }, lazy: { classPropertyName: "lazy", publicName: "lazy", isSignal: true, isRequired: false, transformFunction: null }, scrollHeight: { classPropertyName: "scrollHeight", publicName: "scrollHeight", isSignal: true, isRequired: false, transformFunction: null }, autoFlip: { classPropertyName: "autoFlip", publicName: "autoFlip", isSignal: true, isRequired: false, transformFunction: null }, panelStyleClass: { classPropertyName: "panelStyleClass", publicName: "panelStyleClass", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { completeMethod: "completeMethod", valueChange: "valueChange", optionSelect: "optionSelect", optionUnselect: "optionUnselect", opened: "opened", closed: "closed", cleared: "cleared", dropdownClick: "dropdownClick", lazyLoad: "lazyLoad", inputFocus: "inputFocus", inputBlur: "inputBlur" }, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiAutocomplete), multi: true }], queries: [{ propertyName: "itemTemplate", first: true, predicate: ["item"], descendants: true, isSignal: true }, { propertyName: "selectedItemTemplate", first: true, predicate: ["selectedItem"], descendants: true, isSignal: true }, { propertyName: "groupTemplate", first: true, predicate: ["group"], descendants: true, isSignal: true }, { propertyName: "headerTemplate", first: true, predicate: ["header"], descendants: true, isSignal: true }, { propertyName: "footerTemplate", first: true, predicate: ["footer"], descendants: true, isSignal: true }, { propertyName: "emptyTemplate", first: true, predicate: ["empty"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "containerEl", first: true, predicate: ["container"], descendants: true, isSignal: true }, { propertyName: "inputEl", first: true, predicate: ["inputEl"], descendants: true, isSignal: true }, { propertyName: "panelEl", first: true, predicate: ["panel"], descendants: true, isSignal: true }, { propertyName: "viewport", first: true, predicate: CdkVirtualScrollViewport, descendants: true, isSignal: true }, { propertyName: "tagEls", predicate: ["tagEl"], descendants: true, read: ElementRef, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<!-- One rendered row: group header or suggestion (shared by the plain and virtual lists). -->\n<ng-template #rowTpl let-row>\n @if (row.kind === 'group') {\n <li class=\"ui-autocomplete-group\" role=\"presentation\" [class._small]=\"size() === 'small'\">\n @if (groupTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"{ $implicit: row.original, group: row.original }\" />\n } @else {\n {{ row.label }}\n }\n </li>\n } @else {\n <!-- ARIA combobox/listbox pattern: keyboard and focus are handled by\n the input role=\"combobox\" (roving via aria-activedescendant). -->\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -->\n <li\n class=\"ui-autocomplete-option\"\n role=\"option\"\n [attr.id]=\"row.id\"\n [class._small]=\"size() === 'small'\"\n [class._selected]=\"row.selected\"\n [class._focused]=\"row.index === focusedIndex()\"\n [class._disabled]=\"row.entry.disabled\"\n [attr.aria-selected]=\"row.selected\"\n [attr.aria-disabled]=\"row.entry.disabled || null\"\n [attr.aria-setsize]=\"optionCount()\"\n [attr.aria-posinset]=\"row.index + 1\"\n (mousedown)=\"onOptionMousedown($event)\"\n (click)=\"onOptionClick(row, $event)\"\n (mouseenter)=\"onOptionMouseEnter(row)\"\n >\n @if (itemTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: row.entry.original, option: row.entry.original, selected: row.selected, index: row.index }\"\n />\n } @else {\n <span class=\"ui-autocomplete-option-label\">{{ row.entry.label }}</span>\n }\n </li>\n }\n</ng-template>\n\n<!-- Suggestions panel (CDK overlay). -->\n<ng-template #panelTpl>\n <div\n #panel\n class=\"ui-autocomplete-panel\"\n [class]=\"panelStyleClass()\"\n [class._small]=\"size() === 'small'\"\n [style.width.px]=\"overlayWidth()\"\n [uiMotion]=\"'slide-down'\"\n #panelMotion=\"uiMotion\"\n motionOnInsert\n >\n @if (headerTemplate(); as tpl) {\n <div class=\"ui-autocomplete-header\">\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n </div>\n }\n\n @if (virtualScroll()) {\n <cdk-virtual-scroll-viewport\n class=\"ui-autocomplete-viewport\"\n [itemSize]=\"virtualScrollItemSize()\"\n [style.height]=\"viewportHeight()\"\n >\n <ul\n class=\"ui-autocomplete-list\"\n role=\"listbox\"\n [attr.aria-multiselectable]=\"multiple() ? 'true' : null\"\n [attr.id]=\"listboxId()\"\n [attr.aria-label]=\"label() || ariaLabel() || null\"\n >\n <ng-container *cdkVirtualFor=\"let row of visibleRows(); trackBy: trackRow\">\n <ng-container [ngTemplateOutlet]=\"rowTpl\" [ngTemplateOutletContext]=\"{ $implicit: row }\" />\n </ng-container>\n @if (showEmpty()) {\n <ng-container [ngTemplateOutlet]=\"emptyTpl\" />\n }\n </ul>\n </cdk-virtual-scroll-viewport>\n } @else {\n <div class=\"ui-autocomplete-scroller\" [class._small]=\"size() === 'small'\" [style.max-height]=\"scrollHeight() || null\">\n <ul\n class=\"ui-autocomplete-list\"\n role=\"listbox\"\n [attr.aria-multiselectable]=\"multiple() ? 'true' : null\"\n [attr.id]=\"listboxId()\"\n [attr.aria-label]=\"label() || ariaLabel() || null\"\n >\n @for (row of visibleRows(); track row.key) {\n <ng-container [ngTemplateOutlet]=\"rowTpl\" [ngTemplateOutletContext]=\"{ $implicit: row }\" />\n }\n @if (showEmpty()) {\n <ng-container [ngTemplateOutlet]=\"emptyTpl\" />\n }\n </ul>\n </div>\n }\n\n @if (footerTemplate(); as tpl) {\n <div class=\"ui-autocomplete-footer\">\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n </div>\n }\n </div>\n</ng-template>\n\n<!-- Empty state row. -->\n<ng-template #emptyTpl>\n <li class=\"ui-autocomplete-empty\" role=\"presentation\">\n @if (emptyTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n {{ emptyMessage() }}\n }\n </li>\n</ng-template>\n\n<!-- Trigger: composed field around a native combobox input. -->\n<div #container class=\"ui-autocomplete\">\n <ui-field\n [label]=\"label()\"\n [for]=\"resolvedId()\"\n [required]=\"required()\"\n [size]=\"size()\"\n [level]=\"effectiveLevel()\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"readonly()\"\n [message]=\"displayMessage()\"\n [messageId]=\"messageId()\"\n [autoHeight]=\"multiple()\"\n >\n <div\n class=\"ui-autocomplete-control\"\n [attr.role]=\"multiple() && !selectedItemTemplate() ? 'listbox' : null\"\n [attr.aria-orientation]=\"multiple() && !selectedItemTemplate() ? 'horizontal' : null\"\n [attr.aria-label]=\"multiple() && !selectedItemTemplate() && !label() ? ariaLabel() || null : null\"\n [attr.aria-labelledby]=\"multiple() && !selectedItemTemplate() ? ariaLabelledBy() || null : null\"\n (mousedown)=\"onBoxMousedown($event)\"\n >\n @if (multiple()) {\n @if (selectedItemTemplate(); as tpl) {\n @for (ctx of selectedItemContexts(); track $index) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"ctx\" />\n }\n } @else {\n @for (tag of visibleTagRows(); track $index) {\n <ui-chip\n #tagEl\n class=\"ui-autocomplete-tag\"\n role=\"option\"\n aria-selected=\"true\"\n [attr.aria-label]=\"tag.label\"\n [label]=\"tag.label\"\n size=\"small\"\n [disabled]=\"isDisabled()\"\n [removable]=\"canRemove()\"\n [removeTabindex]=\"-1\"\n [removeAriaLabel]=\"tag.removeAriaLabel\"\n [attr.aria-setsize]=\"tagRows().length\"\n [attr.aria-posinset]=\"tag.index + 1\"\n [attr.tabindex]=\"isDisabled() ? null : (focusedTag() === tag.index ? 0 : -1)\"\n (keydown)=\"onTagKeydown($event, tag.index)\"\n (focus)=\"focusedTag.set(tag.index)\"\n (remove)=\"removeAt(tag.index)\"\n />\n }\n }\n @if (overflowCount() > 0) {\n <!-- Collapsed remainder (`maxSelectedLabels`): informative only, not removable. -->\n <ui-chip\n class=\"ui-autocomplete-tag _overflow\"\n role=\"presentation\"\n [label]=\"overflowText()\"\n size=\"small\"\n [disabled]=\"isDisabled()\"\n />\n }\n }\n\n <input\n #inputEl\n type=\"text\"\n class=\"ui-autocomplete-input\"\n [class._small]=\"size() === 'small'\"\n role=\"combobox\"\n autocomplete=\"off\"\n aria-haspopup=\"listbox\"\n aria-autocomplete=\"list\"\n [id]=\"resolvedId()\"\n [value]=\"inputText()\"\n [placeholder]=\"effectivePlaceholder()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [attr.name]=\"name() || null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-expanded]=\"panelOpen()\"\n [attr.aria-controls]=\"panelOpen() ? listboxId() : null\"\n [attr.aria-activedescendant]=\"activeDescendant()\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-describedby]=\"displayMessage() ? messageId() : null\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-invalid]=\"effectiveLevel() === 'error' ? 'true' : null\"\n (input)=\"onInput($event)\"\n (keydown)=\"onInputKeydown($event)\"\n (focus)=\"onInputFocus($event)\"\n (blur)=\"onInputBlur($event)\"\n />\n </div>\n\n @if (showClearButton()) {\n <button\n uiFieldSuffix\n type=\"button\"\n class=\"ui-autocomplete-clear\"\n [attr.aria-label]=\"clearAriaLabel()\"\n (click)=\"onClearClick($event)\"\n >\n <ui-icon name=\"xmark\" [size]=\"iconSize()\" />\n </button>\n }\n\n @if (loading()) {\n <ui-spinner\n uiFieldSuffix\n class=\"ui-autocomplete-loading\"\n size=\"small\"\n orientation=\"horizontal\"\n ariaLabel=\"Recherche en cours\"\n />\n } @else if (dropdown()) {\n <button\n uiFieldSuffix\n type=\"button\"\n class=\"ui-autocomplete-dropdown\"\n [class._open]=\"panelOpen()\"\n [disabled]=\"isDisabled()\"\n tabindex=\"-1\"\n aria-haspopup=\"listbox\"\n [attr.aria-expanded]=\"panelOpen()\"\n [attr.aria-controls]=\"panelOpen() ? listboxId() : null\"\n [attr.aria-label]=\"dropdownAriaLabel()\"\n (click)=\"onDropdownClick($event)\"\n >\n <ui-icon [name]=\"dropdownIcon()\" [size]=\"iconSize()\" />\n </button>\n }\n </ui-field>\n</div>\n\n<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"overlayOrigin()!\"\n [cdkConnectedOverlayOpen]=\"panelOpen()\"\n [cdkConnectedOverlayPositions]=\"overlayPositions()\"\n [cdkConnectedOverlayHasBackdrop]=\"true\"\n cdkConnectedOverlayBackdropClass=\"cdk-overlay-transparent-backdrop\"\n (backdropClick)=\"close(false)\"\n (overlayOutsideClick)=\"close(false)\"\n (detach)=\"close(false)\"\n>\n <ng-container [ngTemplateOutlet]=\"panelTpl\" />\n</ng-template>\n", styles: [".ui-autocomplete{display:block;--ui-field-box-cursor: text}.ui-autocomplete-control{display:flex;align-items:center;align-self:stretch;flex:1 1 auto;flex-wrap:wrap;gap:var(--units-xs);min-width:0}.ui-autocomplete-control:first-child{padding-inline-start:var(--units-md)}.ui-autocomplete-control:last-child{padding-inline-end:var(--units-md)}.ui-autocomplete-tag{display:inline-flex;align-items:center;max-width:100%;border-radius:var(--radius-full);transition:box-shadow var(--transition-default) var(--transition-easeinout)}.ui-autocomplete-tag:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) rgb(from var(--form-high-stroke-focused) r g b/50%)}.ui-autocomplete-input{flex:1 1 auto;align-self:stretch;min-width:0;margin:0;padding:0;border:none;border-radius:inherit;background:transparent;outline:none;font-family:var(--fontfamily-base);font-size:var(--size-typography-text-default);color:var(--form-high-content-default)}.ui-autocomplete-input::placeholder{color:var(--form-low-content-default);opacity:1}.ui-autocomplete-input:disabled{cursor:not-allowed;color:var(--form-high-content-disabled)}.ui-autocomplete-input{flex:1 1 5rem;min-width:5rem;width:auto}.ui-autocomplete-input._small{font-size:var(--size-typography-text-md)}.ui-autocomplete-clear{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:var(--size-components-2xs);height:var(--size-components-2xs);flex-shrink:0;margin:0;padding:0;border:none;border-radius:var(--radius-full);background:none;color:var(--form-low-content-default);cursor:pointer;transition:color var(--transition-default) var(--transition-easeinout),box-shadow var(--transition-default) var(--transition-easeinout)}.ui-autocomplete-clear:first-child{margin-inline-start:var(--units-md)}.ui-autocomplete-clear:last-child{margin-inline-end:var(--units-md)}.ui-autocomplete-clear:hover:not(:disabled){color:var(--form-high-content-hover)}.ui-autocomplete-clear:focus-visible{outline:none;color:var(--form-high-content-focused);box-shadow:0 0 0 var(--units-2xs) rgb(from var(--form-high-stroke-focused) r g b/50%)}.ui-autocomplete-clear:disabled{cursor:not-allowed;color:var(--form-high-content-disabled)}.ui-autocomplete-dropdown{flex-shrink:0;color:var(--form-low-content-default)}.ui-autocomplete-dropdown:first-child{margin-inline-start:var(--units-md)}.ui-autocomplete-dropdown:last-child{margin-inline-end:var(--units-md)}.ui-autocomplete-dropdown._disabled{color:var(--form-high-content-disabled)}.ui-autocomplete-dropdown{transition:rotate var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms);margin:0;padding:0;border:none;background:none;color:var(--form-low-content-default);cursor:pointer}.ui-autocomplete-dropdown:hover:not(:disabled){color:var(--form-high-content-hover)}.ui-autocomplete-dropdown._open{rotate:180deg}.ui-autocomplete-dropdown:disabled{cursor:not-allowed;color:var(--form-high-content-disabled)}.ui-autocomplete-loading{flex-shrink:0}.ui-autocomplete-loading:first-child{margin-inline-start:var(--units-md)}.ui-autocomplete-loading:last-child{margin-inline-end:var(--units-md)}.ui-autocomplete-panel{border:var(--stroke-default) solid var(--ui-overlay-stroke, var(--form-high-stroke-default));border-radius:var(--ui-overlay-radius, var(--radius-default));background-color:var(--ui-overlay-surface, var(--form-high-surface-default));box-shadow:var(--ui-overlay-shadow, var(--shadow-default-md));font-family:var(--fontfamily-base);display:flex;flex-direction:column;gap:var(--units-xs);box-sizing:border-box;max-width:calc(100vw - var(--units-lg));padding:var(--units-xs)}.ui-autocomplete-panel .ui-autocomplete-header,.ui-autocomplete-panel .ui-autocomplete-footer{padding:var(--units-xs) var(--units-sm);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-md);color:var(--form-high-content-default)}.ui-autocomplete-panel .ui-autocomplete-scroller{overflow:auto;max-height:19.5rem}.ui-autocomplete-panel .ui-autocomplete-scroller._small{max-height:16rem}.ui-autocomplete-panel .ui-autocomplete-viewport{width:100%}.ui-autocomplete-panel .ui-autocomplete-list{display:flex;flex-direction:column;gap:var(--units-xs);margin:0;padding:0;list-style:none}.ui-autocomplete-panel .ui-autocomplete-viewport .ui-autocomplete-list{gap:0}.ui-autocomplete-panel .ui-autocomplete-viewport .ui-autocomplete-group{height:2.5rem}.ui-autocomplete-panel .ui-autocomplete-viewport .ui-autocomplete-group._small{height:2rem}.ui-autocomplete-panel .ui-autocomplete-option{display:flex;align-items:center;gap:var(--units-sm);box-sizing:border-box;height:2.5rem;flex-shrink:0;padding:0 var(--units-default);border-radius:var(--radius-sm);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-default);color:var(--form-high-content-default);cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color var(--transition-default) var(--transition-easeinout),color var(--transition-default) var(--transition-easeinout)}.ui-autocomplete-panel .ui-autocomplete-option._small{height:2rem;padding:0 var(--units-md);font-size:var(--size-typography-text-md)}.ui-autocomplete-panel .ui-autocomplete-option._focused,.ui-autocomplete-panel .ui-autocomplete-option:hover:not(._disabled){background-color:var(--global-background-default-hover)}.ui-autocomplete-panel .ui-autocomplete-option._selected{background-color:var(--form-high-surface-hover);color:var(--form-high-content-checked)}.ui-autocomplete-panel .ui-autocomplete-option._disabled{color:var(--form-high-content-disabled);cursor:not-allowed}.ui-autocomplete-panel .ui-autocomplete-option-label{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ui-autocomplete-panel .ui-autocomplete-group{display:flex;align-items:center;box-sizing:border-box;height:2rem;flex-shrink:0;padding:0 var(--units-default);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-md);font-weight:var(--weight-bold);color:var(--form-low-content-default)}.ui-autocomplete-panel .ui-autocomplete-group._small{height:1.5rem;padding:0 var(--units-md);font-size:var(--size-typography-text-sm)}.ui-autocomplete-panel .ui-autocomplete-empty{display:flex;align-items:center;box-sizing:border-box;min-height:2.5rem;padding:0 var(--units-default);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-default);color:var(--form-low-content-default)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: OverlayModule }, { kind: "directive", type: i1.CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation", "cdkConnectedOverlayUsePopover", "cdkConnectedOverlayMatchWidth", "cdkConnectedOverlay"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "directive", type: i1.ɵɵCdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { kind: "directive", type: i1.ɵɵCdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }, { kind: "component", type: i1.ɵɵCdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { kind: "ngmodule", type: ScrollingModule }, { kind: "component", type: UiField, selector: "ui-field", inputs: ["label", "for", "required", "size", "level", "disabled", "readonly", "multiline", "autoHeight", "message", "messageId", "hasFooter"] }, { kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }, { kind: "component", type: UiSpinner, selector: "ui-spinner", inputs: ["size", "orientation", "label", "ariaLabel", "spinnerTemplate", "image", "imageAlt", "icon", "strokeWidth", "fill", "animationDuration", "delay"] }, { kind: "component", type: UiChip, selector: "ui-chip", inputs: ["label", "level", "subLevel", "size", "icon", "image", "alt", "rounded", "removable", "removeIcon", "disabled", "selectable", "selected", "selectedIcon", "ariaLabel", "ariaLabelledBy", "removeAriaLabel", "removeTabindex"], outputs: ["selectedChange", "remove", "chipClick", "imageError"] }, { kind: "directive", type: UiMotion, selector: "[uiMotion]", inputs: ["uiMotion", "motionDuration", "motionDelay", "motionEasing", "motionEnterEasing", "motionLeaveEasing", "motionDistance", "motionScale", "motionDisabled", "motionOnInsert"], exportAs: ["uiMotion"] }] }); }
909
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiAutocomplete, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
910
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: UiAutocomplete, isStandalone: true, selector: "ui-autocomplete", inputs: { suggestions: { classPropertyName: "suggestions", publicName: "suggestions", 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 }, dataKey: { classPropertyName: "dataKey", publicName: "dataKey", isSignal: true, isRequired: false, transformFunction: null }, group: { classPropertyName: "group", publicName: "group", isSignal: true, isRequired: false, transformFunction: null }, optionGroupLabel: { classPropertyName: "optionGroupLabel", publicName: "optionGroupLabel", isSignal: true, isRequired: false, transformFunction: null }, optionGroupChildren: { classPropertyName: "optionGroupChildren", publicName: "optionGroupChildren", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, minLength: { classPropertyName: "minLength", publicName: "minLength", isSignal: true, isRequired: false, transformFunction: null }, delay: { classPropertyName: "delay", publicName: "delay", isSignal: true, isRequired: false, transformFunction: null }, completeOnFocus: { classPropertyName: "completeOnFocus", publicName: "completeOnFocus", isSignal: true, isRequired: false, transformFunction: null }, dropdown: { classPropertyName: "dropdown", publicName: "dropdown", isSignal: true, isRequired: false, transformFunction: null }, dropdownMode: { classPropertyName: "dropdownMode", publicName: "dropdownMode", isSignal: true, isRequired: false, transformFunction: null }, dropdownAriaLabel: { classPropertyName: "dropdownAriaLabel", publicName: "dropdownAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, dropdownIcon: { classPropertyName: "dropdownIcon", publicName: "dropdownIcon", isSignal: true, isRequired: false, transformFunction: null }, forceSelection: { classPropertyName: "forceSelection", publicName: "forceSelection", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, unique: { classPropertyName: "unique", publicName: "unique", isSignal: true, isRequired: false, transformFunction: null }, maxSelectedLabels: { classPropertyName: "maxSelectedLabels", publicName: "maxSelectedLabels", isSignal: true, isRequired: false, transformFunction: null }, overflowLabel: { classPropertyName: "overflowLabel", publicName: "overflowLabel", isSignal: true, isRequired: false, transformFunction: null }, removeTagLabel: { classPropertyName: "removeTagLabel", publicName: "removeTagLabel", isSignal: true, isRequired: false, transformFunction: null }, showClear: { classPropertyName: "showClear", publicName: "showClear", isSignal: true, isRequired: false, transformFunction: null }, clearAriaLabel: { classPropertyName: "clearAriaLabel", publicName: "clearAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, showEmptyMessage: { classPropertyName: "showEmptyMessage", publicName: "showEmptyMessage", isSignal: true, isRequired: false, transformFunction: null }, autoOptionFocus: { classPropertyName: "autoOptionFocus", publicName: "autoOptionFocus", isSignal: true, isRequired: false, transformFunction: null }, selectOnFocus: { classPropertyName: "selectOnFocus", publicName: "selectOnFocus", isSignal: true, isRequired: false, transformFunction: null }, focusOnHover: { classPropertyName: "focusOnHover", publicName: "focusOnHover", isSignal: true, isRequired: false, transformFunction: null }, virtualScroll: { classPropertyName: "virtualScroll", publicName: "virtualScroll", isSignal: true, isRequired: false, transformFunction: null }, virtualScrollItemSize: { classPropertyName: "virtualScrollItemSize", publicName: "virtualScrollItemSize", isSignal: true, isRequired: false, transformFunction: null }, lazy: { classPropertyName: "lazy", publicName: "lazy", isSignal: true, isRequired: false, transformFunction: null }, scrollHeight: { classPropertyName: "scrollHeight", publicName: "scrollHeight", isSignal: true, isRequired: false, transformFunction: null }, autoFlip: { classPropertyName: "autoFlip", publicName: "autoFlip", isSignal: true, isRequired: false, transformFunction: null }, panelStyleClass: { classPropertyName: "panelStyleClass", publicName: "panelStyleClass", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { completeMethod: "completeMethod", valueChange: "valueChange", optionSelect: "optionSelect", optionUnselect: "optionUnselect", opened: "opened", closed: "closed", cleared: "cleared", dropdownClick: "dropdownClick", lazyLoad: "lazyLoad", inputFocus: "inputFocus", inputBlur: "inputBlur" }, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiAutocomplete), multi: true }], queries: [{ propertyName: "itemTemplate", first: true, predicate: ["item"], descendants: true, isSignal: true }, { propertyName: "selectedItemTemplate", first: true, predicate: ["selectedItem"], descendants: true, isSignal: true }, { propertyName: "groupTemplate", first: true, predicate: ["group"], descendants: true, isSignal: true }, { propertyName: "headerTemplate", first: true, predicate: ["header"], descendants: true, isSignal: true }, { propertyName: "footerTemplate", first: true, predicate: ["footer"], descendants: true, isSignal: true }, { propertyName: "emptyTemplate", first: true, predicate: ["empty"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "containerEl", first: true, predicate: ["container"], descendants: true, isSignal: true }, { propertyName: "inputEl", first: true, predicate: ["inputEl"], descendants: true, isSignal: true }, { propertyName: "panelEl", first: true, predicate: ["panel"], descendants: true, isSignal: true }, { propertyName: "viewport", first: true, predicate: CdkVirtualScrollViewport, descendants: true, isSignal: true }, { propertyName: "tagEls", predicate: ["tagEl"], descendants: true, read: ElementRef, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<!-- One rendered row: group header or suggestion (shared by the plain and virtual lists). -->\n<ng-template #rowTpl let-row>\n @if (row.kind === 'group') {\n <li class=\"ui-autocomplete-group\" role=\"presentation\" [class._small]=\"size() === 'small'\">\n @if (groupTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"{ $implicit: row.original, group: row.original }\" />\n } @else {\n {{ row.label }}\n }\n </li>\n } @else {\n <!-- ARIA combobox/listbox pattern: keyboard and focus are handled by\n the input role=\"combobox\" (roving via aria-activedescendant). -->\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -->\n <li\n class=\"ui-autocomplete-option\"\n role=\"option\"\n [attr.id]=\"row.id\"\n [class._small]=\"size() === 'small'\"\n [class._selected]=\"row.selected\"\n [class._focused]=\"row.index === focusedIndex()\"\n [class._disabled]=\"row.entry.disabled\"\n [attr.aria-selected]=\"row.selected\"\n [attr.aria-disabled]=\"row.entry.disabled || null\"\n [attr.aria-setsize]=\"optionCount()\"\n [attr.aria-posinset]=\"row.index + 1\"\n (mousedown)=\"onOptionMousedown($event)\"\n (click)=\"onOptionClick(row, $event)\"\n (mouseenter)=\"onOptionMouseEnter(row)\"\n >\n @if (itemTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: row.entry.original, option: row.entry.original, selected: row.selected, index: row.index }\"\n />\n } @else {\n <span class=\"ui-autocomplete-option-label\">{{ row.entry.label }}</span>\n }\n </li>\n }\n</ng-template>\n\n<!-- Suggestions panel (CDK overlay). -->\n<ng-template #panelTpl>\n <div\n #panel\n class=\"ui-autocomplete-panel\"\n [class]=\"panelStyleClass()\"\n [class._small]=\"size() === 'small'\"\n [style.width.px]=\"overlayWidth()\"\n [uiMotion]=\"'slide-down'\"\n #panelMotion=\"uiMotion\"\n motionOnInsert\n >\n @if (headerTemplate(); as tpl) {\n <div class=\"ui-autocomplete-header\">\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n </div>\n }\n\n @if (virtualScroll()) {\n <cdk-virtual-scroll-viewport\n class=\"ui-autocomplete-viewport\"\n [itemSize]=\"virtualScrollItemSize()\"\n [style.height]=\"viewportHeight()\"\n >\n <ul\n class=\"ui-autocomplete-list\"\n role=\"listbox\"\n [attr.aria-multiselectable]=\"multiple() ? 'true' : null\"\n [attr.id]=\"listboxId()\"\n [attr.aria-label]=\"label() || ariaLabel() || null\"\n >\n <ng-container *cdkVirtualFor=\"let row of visibleRows(); trackBy: trackRow\">\n <ng-container [ngTemplateOutlet]=\"rowTpl\" [ngTemplateOutletContext]=\"{ $implicit: row }\" />\n </ng-container>\n @if (showEmpty()) {\n <ng-container [ngTemplateOutlet]=\"emptyTpl\" />\n }\n </ul>\n </cdk-virtual-scroll-viewport>\n } @else {\n <div class=\"ui-autocomplete-scroller\" [class._small]=\"size() === 'small'\" [style.max-height]=\"scrollHeight() || null\">\n <ul\n class=\"ui-autocomplete-list\"\n role=\"listbox\"\n [attr.aria-multiselectable]=\"multiple() ? 'true' : null\"\n [attr.id]=\"listboxId()\"\n [attr.aria-label]=\"label() || ariaLabel() || null\"\n >\n @for (row of visibleRows(); track row.key) {\n <ng-container [ngTemplateOutlet]=\"rowTpl\" [ngTemplateOutletContext]=\"{ $implicit: row }\" />\n }\n @if (showEmpty()) {\n <ng-container [ngTemplateOutlet]=\"emptyTpl\" />\n }\n </ul>\n </div>\n }\n\n @if (footerTemplate(); as tpl) {\n <div class=\"ui-autocomplete-footer\">\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n </div>\n }\n </div>\n</ng-template>\n\n<!-- Empty state row. -->\n<ng-template #emptyTpl>\n <li class=\"ui-autocomplete-empty\" role=\"presentation\">\n @if (emptyTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n {{ emptyMessage() }}\n }\n </li>\n</ng-template>\n\n<!-- Trigger: composed field around a native combobox input. -->\n<div #container class=\"ui-autocomplete\">\n <ui-field\n [label]=\"label()\"\n [for]=\"resolvedId()\"\n [required]=\"required()\"\n [size]=\"size()\"\n [level]=\"effectiveLevel()\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"readonly()\"\n [message]=\"displayMessage()\"\n [messageId]=\"messageId()\"\n [autoHeight]=\"multiple()\"\n >\n <div\n class=\"ui-autocomplete-control\"\n [attr.role]=\"multiple() && !selectedItemTemplate() ? 'listbox' : null\"\n [attr.aria-orientation]=\"multiple() && !selectedItemTemplate() ? 'horizontal' : null\"\n [attr.aria-label]=\"multiple() && !selectedItemTemplate() && !label() ? ariaLabel() || null : null\"\n [attr.aria-labelledby]=\"multiple() && !selectedItemTemplate() ? ariaLabelledBy() || null : null\"\n (mousedown)=\"onBoxMousedown($event)\"\n >\n @if (multiple()) {\n @if (selectedItemTemplate(); as tpl) {\n @for (ctx of selectedItemContexts(); track $index) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"ctx\" />\n }\n } @else {\n @for (tag of visibleTagRows(); track $index) {\n <ui-chip\n #tagEl\n class=\"ui-autocomplete-tag\"\n role=\"option\"\n aria-selected=\"true\"\n [attr.aria-label]=\"tag.label\"\n [label]=\"tag.label\"\n size=\"small\"\n [disabled]=\"isDisabled()\"\n [removable]=\"canRemove()\"\n [removeTabindex]=\"-1\"\n [removeAriaLabel]=\"tag.removeAriaLabel\"\n [attr.aria-setsize]=\"tagRows().length\"\n [attr.aria-posinset]=\"tag.index + 1\"\n [attr.tabindex]=\"isDisabled() ? null : (focusedTag() === tag.index ? 0 : -1)\"\n (keydown)=\"onTagKeydown($event, tag.index)\"\n (focus)=\"focusedTag.set(tag.index)\"\n (remove)=\"removeAt(tag.index)\"\n />\n }\n }\n @if (overflowCount() > 0) {\n <!-- Collapsed remainder (`maxSelectedLabels`): informative only, not removable. -->\n <ui-chip\n class=\"ui-autocomplete-tag _overflow\"\n role=\"presentation\"\n [label]=\"overflowText()\"\n size=\"small\"\n [disabled]=\"isDisabled()\"\n />\n }\n }\n\n <input\n #inputEl\n type=\"text\"\n class=\"ui-autocomplete-input\"\n [class._small]=\"size() === 'small'\"\n role=\"combobox\"\n autocomplete=\"off\"\n aria-haspopup=\"listbox\"\n aria-autocomplete=\"list\"\n [id]=\"resolvedId()\"\n [value]=\"inputText()\"\n [placeholder]=\"effectivePlaceholder()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [attr.name]=\"name() || null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-expanded]=\"panelOpen()\"\n [attr.aria-controls]=\"panelOpen() ? listboxId() : null\"\n [attr.aria-activedescendant]=\"activeDescendant()\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-describedby]=\"displayMessage() ? messageId() : null\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-invalid]=\"effectiveLevel() === 'error' ? 'true' : null\"\n (input)=\"onInput($event)\"\n (keydown)=\"onInputKeydown($event)\"\n (focus)=\"onInputFocus($event)\"\n (blur)=\"onInputBlur($event)\"\n />\n </div>\n\n @if (showClearButton()) {\n <button\n uiFieldSuffix\n type=\"button\"\n class=\"ui-autocomplete-clear\"\n [attr.aria-label]=\"clearAriaLabel()\"\n (click)=\"onClearClick($event)\"\n >\n <ui-icon name=\"xmark\" [size]=\"iconSize()\" />\n </button>\n }\n\n @if (loading()) {\n <ui-spinner\n uiFieldSuffix\n class=\"ui-autocomplete-loading\"\n size=\"small\"\n orientation=\"horizontal\"\n ariaLabel=\"Recherche en cours\"\n />\n } @else if (dropdown()) {\n <button\n uiFieldSuffix\n type=\"button\"\n class=\"ui-autocomplete-dropdown\"\n [class._open]=\"panelOpen()\"\n [disabled]=\"isDisabled()\"\n tabindex=\"-1\"\n aria-haspopup=\"listbox\"\n [attr.aria-expanded]=\"panelOpen()\"\n [attr.aria-controls]=\"panelOpen() ? listboxId() : null\"\n [attr.aria-label]=\"dropdownAriaLabel()\"\n (click)=\"onDropdownClick($event)\"\n >\n <ui-icon [name]=\"dropdownIcon()\" [size]=\"iconSize()\" />\n </button>\n }\n </ui-field>\n</div>\n\n<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"overlayOrigin()!\"\n [cdkConnectedOverlayOpen]=\"panelOpen()\"\n [cdkConnectedOverlayPositions]=\"overlayPositions()\"\n [cdkConnectedOverlayHasBackdrop]=\"true\"\n cdkConnectedOverlayBackdropClass=\"cdk-overlay-transparent-backdrop\"\n (backdropClick)=\"close(false)\"\n (overlayOutsideClick)=\"close(false)\"\n (detach)=\"close(false)\"\n>\n <ng-container [ngTemplateOutlet]=\"panelTpl\" />\n</ng-template>\n", styles: [".ui-autocomplete{display:block;--ui-field-box-cursor: text}.ui-autocomplete-control{display:flex;align-items:center;align-self:stretch;flex:1 1 auto;flex-wrap:wrap;gap:var(--units-xs);min-width:0}.ui-autocomplete-control:first-child{padding-inline-start:var(--units-md)}.ui-autocomplete-control:last-child{padding-inline-end:var(--units-md)}.ui-autocomplete-tag{display:inline-flex;align-items:center;max-width:100%;border-radius:var(--radius-full);transition:box-shadow var(--transition-default) var(--transition-easeinout)}.ui-autocomplete-tag:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) rgb(from var(--form-high-stroke-focused) r g b/50%)}.ui-autocomplete-input{flex:1 1 auto;align-self:stretch;min-width:0;margin:0;padding:0;border:none;border-radius:inherit;background:transparent;outline:none;font-family:var(--fontfamily-base);font-size:var(--size-typography-text-default);color:var(--form-high-content-default)}.ui-autocomplete-input::placeholder{color:var(--form-low-content-default);opacity:1}.ui-autocomplete-input:disabled{cursor:not-allowed;color:var(--form-high-content-disabled)}.ui-autocomplete-input{flex:1 1 5rem;min-width:5rem;width:auto}.ui-autocomplete-input._small{font-size:var(--size-typography-text-md)}.ui-autocomplete-clear{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:var(--size-components-2xs);height:var(--size-components-2xs);flex-shrink:0;margin:0;padding:0;border:none;border-radius:var(--radius-full);background:none;color:var(--form-low-content-default);cursor:pointer;transition:color var(--transition-default) var(--transition-easeinout),box-shadow var(--transition-default) var(--transition-easeinout)}.ui-autocomplete-clear:first-child{margin-inline-start:var(--units-md)}.ui-autocomplete-clear:last-child{margin-inline-end:var(--units-md)}.ui-autocomplete-clear:hover:not(:disabled){color:var(--form-high-content-hover)}.ui-autocomplete-clear:focus-visible{outline:none;color:var(--form-high-content-focused);box-shadow:0 0 0 var(--units-2xs) rgb(from var(--form-high-stroke-focused) r g b/50%)}.ui-autocomplete-clear:disabled{cursor:not-allowed;color:var(--form-high-content-disabled)}.ui-autocomplete-dropdown{flex-shrink:0;color:var(--form-low-content-default)}.ui-autocomplete-dropdown:first-child{margin-inline-start:var(--units-md)}.ui-autocomplete-dropdown:last-child{margin-inline-end:var(--units-md)}.ui-autocomplete-dropdown._disabled{color:var(--form-high-content-disabled)}.ui-autocomplete-dropdown{transition:rotate var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms);margin:0;padding:0;border:none;background:none;color:var(--form-low-content-default);cursor:pointer}.ui-autocomplete-dropdown:hover:not(:disabled){color:var(--form-high-content-hover)}.ui-autocomplete-dropdown._open{rotate:180deg}.ui-autocomplete-dropdown:disabled{cursor:not-allowed;color:var(--form-high-content-disabled)}.ui-autocomplete-loading{flex-shrink:0}.ui-autocomplete-loading:first-child{margin-inline-start:var(--units-md)}.ui-autocomplete-loading:last-child{margin-inline-end:var(--units-md)}.ui-autocomplete-panel{border:var(--stroke-default) solid var(--ui-overlay-stroke, var(--form-high-stroke-default));border-radius:var(--ui-overlay-radius, var(--radius-default));background-color:var(--ui-overlay-surface, var(--form-high-surface-default));box-shadow:var(--ui-overlay-shadow, var(--shadow-default-md));font-family:var(--fontfamily-base);display:flex;flex-direction:column;gap:var(--units-xs);box-sizing:border-box;max-width:calc(100vw - var(--units-lg));padding:var(--units-xs)}.ui-autocomplete-panel .ui-autocomplete-header,.ui-autocomplete-panel .ui-autocomplete-footer{padding:var(--units-xs) var(--units-sm);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-md);color:var(--form-high-content-default)}.ui-autocomplete-panel .ui-autocomplete-scroller{overflow:auto;max-height:19.5rem}.ui-autocomplete-panel .ui-autocomplete-scroller._small{max-height:16rem}.ui-autocomplete-panel .ui-autocomplete-viewport{width:100%}.ui-autocomplete-panel .ui-autocomplete-list{display:flex;flex-direction:column;gap:var(--units-xs);margin:0;padding:0;list-style:none}.ui-autocomplete-panel .ui-autocomplete-viewport .ui-autocomplete-list{gap:0}.ui-autocomplete-panel .ui-autocomplete-viewport .ui-autocomplete-group{height:2.5rem}.ui-autocomplete-panel .ui-autocomplete-viewport .ui-autocomplete-group._small{height:2rem}.ui-autocomplete-panel .ui-autocomplete-option{display:flex;align-items:center;gap:var(--units-sm);box-sizing:border-box;height:2.5rem;flex-shrink:0;padding:0 var(--units-default);border-radius:var(--radius-sm);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-default);color:var(--form-high-content-default);cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color var(--transition-default) var(--transition-easeinout),color var(--transition-default) var(--transition-easeinout)}.ui-autocomplete-panel .ui-autocomplete-option._small{height:2rem;padding:0 var(--units-md);font-size:var(--size-typography-text-md)}.ui-autocomplete-panel .ui-autocomplete-option._focused,.ui-autocomplete-panel .ui-autocomplete-option:hover:not(._disabled){background-color:var(--global-background-default-hover)}.ui-autocomplete-panel .ui-autocomplete-option._selected{background-color:var(--form-high-surface-hover);color:var(--form-high-content-checked)}.ui-autocomplete-panel .ui-autocomplete-option._disabled{color:var(--form-high-content-disabled);cursor:not-allowed}.ui-autocomplete-panel .ui-autocomplete-option-label{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ui-autocomplete-panel .ui-autocomplete-group{display:flex;align-items:center;box-sizing:border-box;height:2rem;flex-shrink:0;padding:0 var(--units-default);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-md);font-weight:var(--weight-bold);color:var(--form-low-content-default)}.ui-autocomplete-panel .ui-autocomplete-group._small{height:1.5rem;padding:0 var(--units-md);font-size:var(--size-typography-text-sm)}.ui-autocomplete-panel .ui-autocomplete-empty{display:flex;align-items:center;box-sizing:border-box;min-height:2.5rem;padding:0 var(--units-default);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-default);color:var(--form-low-content-default)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: OverlayModule }, { kind: "directive", type: i1.CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation", "cdkConnectedOverlayUsePopover", "cdkConnectedOverlayMatchWidth", "cdkConnectedOverlay"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "directive", type: i1.ɵɵCdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { kind: "directive", type: i1.ɵɵCdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }, { kind: "component", type: i1.ɵɵCdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { kind: "ngmodule", type: ScrollingModule }, { kind: "component", type: UiField, selector: "ui-field", inputs: ["label", "for", "required", "size", "level", "disabled", "readonly", "multiline", "autoHeight", "message", "messageId", "hasFooter"] }, { kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }, { kind: "component", type: UiSpinner, selector: "ui-spinner", inputs: ["size", "orientation", "label", "ariaLabel", "spinnerTemplate", "image", "imageAlt", "icon", "strokeWidth", "fill", "animationDuration", "delay"] }, { kind: "component", type: UiChip, selector: "ui-chip", inputs: ["label", "level", "subLevel", "size", "icon", "image", "alt", "rounded", "removable", "removeIcon", "disabled", "selectable", "selected", "selectedIcon", "ariaLabel", "ariaLabelledBy", "removeAriaLabel", "removeTabindex"], outputs: ["selectedChange", "remove", "chipClick", "imageError"] }, { kind: "directive", type: UiMotion, selector: "[uiMotion]", inputs: ["uiMotion", "motionDuration", "motionDelay", "motionEasing", "motionEnterEasing", "motionLeaveEasing", "motionDistance", "motionScale", "motionDisabled", "motionOnInsert"], exportAs: ["uiMotion"] }] }); }
911
911
  }
912
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiAutocomplete, decorators: [{
912
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiAutocomplete, decorators: [{
913
913
  type: Component,
914
914
  args: [{ selector: 'ui-autocomplete', imports: [NgTemplateOutlet, OverlayModule, ScrollingModule, UiField, UiIcon, UiSpinner, UiChip, UiMotion], providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiAutocomplete), multi: true }], template: "<!-- One rendered row: group header or suggestion (shared by the plain and virtual lists). -->\n<ng-template #rowTpl let-row>\n @if (row.kind === 'group') {\n <li class=\"ui-autocomplete-group\" role=\"presentation\" [class._small]=\"size() === 'small'\">\n @if (groupTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"{ $implicit: row.original, group: row.original }\" />\n } @else {\n {{ row.label }}\n }\n </li>\n } @else {\n <!-- ARIA combobox/listbox pattern: keyboard and focus are handled by\n the input role=\"combobox\" (roving via aria-activedescendant). -->\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -->\n <li\n class=\"ui-autocomplete-option\"\n role=\"option\"\n [attr.id]=\"row.id\"\n [class._small]=\"size() === 'small'\"\n [class._selected]=\"row.selected\"\n [class._focused]=\"row.index === focusedIndex()\"\n [class._disabled]=\"row.entry.disabled\"\n [attr.aria-selected]=\"row.selected\"\n [attr.aria-disabled]=\"row.entry.disabled || null\"\n [attr.aria-setsize]=\"optionCount()\"\n [attr.aria-posinset]=\"row.index + 1\"\n (mousedown)=\"onOptionMousedown($event)\"\n (click)=\"onOptionClick(row, $event)\"\n (mouseenter)=\"onOptionMouseEnter(row)\"\n >\n @if (itemTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: row.entry.original, option: row.entry.original, selected: row.selected, index: row.index }\"\n />\n } @else {\n <span class=\"ui-autocomplete-option-label\">{{ row.entry.label }}</span>\n }\n </li>\n }\n</ng-template>\n\n<!-- Suggestions panel (CDK overlay). -->\n<ng-template #panelTpl>\n <div\n #panel\n class=\"ui-autocomplete-panel\"\n [class]=\"panelStyleClass()\"\n [class._small]=\"size() === 'small'\"\n [style.width.px]=\"overlayWidth()\"\n [uiMotion]=\"'slide-down'\"\n #panelMotion=\"uiMotion\"\n motionOnInsert\n >\n @if (headerTemplate(); as tpl) {\n <div class=\"ui-autocomplete-header\">\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n </div>\n }\n\n @if (virtualScroll()) {\n <cdk-virtual-scroll-viewport\n class=\"ui-autocomplete-viewport\"\n [itemSize]=\"virtualScrollItemSize()\"\n [style.height]=\"viewportHeight()\"\n >\n <ul\n class=\"ui-autocomplete-list\"\n role=\"listbox\"\n [attr.aria-multiselectable]=\"multiple() ? 'true' : null\"\n [attr.id]=\"listboxId()\"\n [attr.aria-label]=\"label() || ariaLabel() || null\"\n >\n <ng-container *cdkVirtualFor=\"let row of visibleRows(); trackBy: trackRow\">\n <ng-container [ngTemplateOutlet]=\"rowTpl\" [ngTemplateOutletContext]=\"{ $implicit: row }\" />\n </ng-container>\n @if (showEmpty()) {\n <ng-container [ngTemplateOutlet]=\"emptyTpl\" />\n }\n </ul>\n </cdk-virtual-scroll-viewport>\n } @else {\n <div class=\"ui-autocomplete-scroller\" [class._small]=\"size() === 'small'\" [style.max-height]=\"scrollHeight() || null\">\n <ul\n class=\"ui-autocomplete-list\"\n role=\"listbox\"\n [attr.aria-multiselectable]=\"multiple() ? 'true' : null\"\n [attr.id]=\"listboxId()\"\n [attr.aria-label]=\"label() || ariaLabel() || null\"\n >\n @for (row of visibleRows(); track row.key) {\n <ng-container [ngTemplateOutlet]=\"rowTpl\" [ngTemplateOutletContext]=\"{ $implicit: row }\" />\n }\n @if (showEmpty()) {\n <ng-container [ngTemplateOutlet]=\"emptyTpl\" />\n }\n </ul>\n </div>\n }\n\n @if (footerTemplate(); as tpl) {\n <div class=\"ui-autocomplete-footer\">\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n </div>\n }\n </div>\n</ng-template>\n\n<!-- Empty state row. -->\n<ng-template #emptyTpl>\n <li class=\"ui-autocomplete-empty\" role=\"presentation\">\n @if (emptyTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n {{ emptyMessage() }}\n }\n </li>\n</ng-template>\n\n<!-- Trigger: composed field around a native combobox input. -->\n<div #container class=\"ui-autocomplete\">\n <ui-field\n [label]=\"label()\"\n [for]=\"resolvedId()\"\n [required]=\"required()\"\n [size]=\"size()\"\n [level]=\"effectiveLevel()\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"readonly()\"\n [message]=\"displayMessage()\"\n [messageId]=\"messageId()\"\n [autoHeight]=\"multiple()\"\n >\n <div\n class=\"ui-autocomplete-control\"\n [attr.role]=\"multiple() && !selectedItemTemplate() ? 'listbox' : null\"\n [attr.aria-orientation]=\"multiple() && !selectedItemTemplate() ? 'horizontal' : null\"\n [attr.aria-label]=\"multiple() && !selectedItemTemplate() && !label() ? ariaLabel() || null : null\"\n [attr.aria-labelledby]=\"multiple() && !selectedItemTemplate() ? ariaLabelledBy() || null : null\"\n (mousedown)=\"onBoxMousedown($event)\"\n >\n @if (multiple()) {\n @if (selectedItemTemplate(); as tpl) {\n @for (ctx of selectedItemContexts(); track $index) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"ctx\" />\n }\n } @else {\n @for (tag of visibleTagRows(); track $index) {\n <ui-chip\n #tagEl\n class=\"ui-autocomplete-tag\"\n role=\"option\"\n aria-selected=\"true\"\n [attr.aria-label]=\"tag.label\"\n [label]=\"tag.label\"\n size=\"small\"\n [disabled]=\"isDisabled()\"\n [removable]=\"canRemove()\"\n [removeTabindex]=\"-1\"\n [removeAriaLabel]=\"tag.removeAriaLabel\"\n [attr.aria-setsize]=\"tagRows().length\"\n [attr.aria-posinset]=\"tag.index + 1\"\n [attr.tabindex]=\"isDisabled() ? null : (focusedTag() === tag.index ? 0 : -1)\"\n (keydown)=\"onTagKeydown($event, tag.index)\"\n (focus)=\"focusedTag.set(tag.index)\"\n (remove)=\"removeAt(tag.index)\"\n />\n }\n }\n @if (overflowCount() > 0) {\n <!-- Collapsed remainder (`maxSelectedLabels`): informative only, not removable. -->\n <ui-chip\n class=\"ui-autocomplete-tag _overflow\"\n role=\"presentation\"\n [label]=\"overflowText()\"\n size=\"small\"\n [disabled]=\"isDisabled()\"\n />\n }\n }\n\n <input\n #inputEl\n type=\"text\"\n class=\"ui-autocomplete-input\"\n [class._small]=\"size() === 'small'\"\n role=\"combobox\"\n autocomplete=\"off\"\n aria-haspopup=\"listbox\"\n aria-autocomplete=\"list\"\n [id]=\"resolvedId()\"\n [value]=\"inputText()\"\n [placeholder]=\"effectivePlaceholder()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [attr.name]=\"name() || null\"\n [attr.tabindex]=\"tabindex()\"\n [attr.aria-expanded]=\"panelOpen()\"\n [attr.aria-controls]=\"panelOpen() ? listboxId() : null\"\n [attr.aria-activedescendant]=\"activeDescendant()\"\n [attr.aria-label]=\"label() ? null : ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-describedby]=\"displayMessage() ? messageId() : null\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-invalid]=\"effectiveLevel() === 'error' ? 'true' : null\"\n (input)=\"onInput($event)\"\n (keydown)=\"onInputKeydown($event)\"\n (focus)=\"onInputFocus($event)\"\n (blur)=\"onInputBlur($event)\"\n />\n </div>\n\n @if (showClearButton()) {\n <button\n uiFieldSuffix\n type=\"button\"\n class=\"ui-autocomplete-clear\"\n [attr.aria-label]=\"clearAriaLabel()\"\n (click)=\"onClearClick($event)\"\n >\n <ui-icon name=\"xmark\" [size]=\"iconSize()\" />\n </button>\n }\n\n @if (loading()) {\n <ui-spinner\n uiFieldSuffix\n class=\"ui-autocomplete-loading\"\n size=\"small\"\n orientation=\"horizontal\"\n ariaLabel=\"Recherche en cours\"\n />\n } @else if (dropdown()) {\n <button\n uiFieldSuffix\n type=\"button\"\n class=\"ui-autocomplete-dropdown\"\n [class._open]=\"panelOpen()\"\n [disabled]=\"isDisabled()\"\n tabindex=\"-1\"\n aria-haspopup=\"listbox\"\n [attr.aria-expanded]=\"panelOpen()\"\n [attr.aria-controls]=\"panelOpen() ? listboxId() : null\"\n [attr.aria-label]=\"dropdownAriaLabel()\"\n (click)=\"onDropdownClick($event)\"\n >\n <ui-icon [name]=\"dropdownIcon()\" [size]=\"iconSize()\" />\n </button>\n }\n </ui-field>\n</div>\n\n<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"overlayOrigin()!\"\n [cdkConnectedOverlayOpen]=\"panelOpen()\"\n [cdkConnectedOverlayPositions]=\"overlayPositions()\"\n [cdkConnectedOverlayHasBackdrop]=\"true\"\n cdkConnectedOverlayBackdropClass=\"cdk-overlay-transparent-backdrop\"\n (backdropClick)=\"close(false)\"\n (overlayOutsideClick)=\"close(false)\"\n (detach)=\"close(false)\"\n>\n <ng-container [ngTemplateOutlet]=\"panelTpl\" />\n</ng-template>\n", styles: [".ui-autocomplete{display:block;--ui-field-box-cursor: text}.ui-autocomplete-control{display:flex;align-items:center;align-self:stretch;flex:1 1 auto;flex-wrap:wrap;gap:var(--units-xs);min-width:0}.ui-autocomplete-control:first-child{padding-inline-start:var(--units-md)}.ui-autocomplete-control:last-child{padding-inline-end:var(--units-md)}.ui-autocomplete-tag{display:inline-flex;align-items:center;max-width:100%;border-radius:var(--radius-full);transition:box-shadow var(--transition-default) var(--transition-easeinout)}.ui-autocomplete-tag:focus-visible{outline:none;box-shadow:0 0 0 var(--units-2xs) rgb(from var(--form-high-stroke-focused) r g b/50%)}.ui-autocomplete-input{flex:1 1 auto;align-self:stretch;min-width:0;margin:0;padding:0;border:none;border-radius:inherit;background:transparent;outline:none;font-family:var(--fontfamily-base);font-size:var(--size-typography-text-default);color:var(--form-high-content-default)}.ui-autocomplete-input::placeholder{color:var(--form-low-content-default);opacity:1}.ui-autocomplete-input:disabled{cursor:not-allowed;color:var(--form-high-content-disabled)}.ui-autocomplete-input{flex:1 1 5rem;min-width:5rem;width:auto}.ui-autocomplete-input._small{font-size:var(--size-typography-text-md)}.ui-autocomplete-clear{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:var(--size-components-2xs);height:var(--size-components-2xs);flex-shrink:0;margin:0;padding:0;border:none;border-radius:var(--radius-full);background:none;color:var(--form-low-content-default);cursor:pointer;transition:color var(--transition-default) var(--transition-easeinout),box-shadow var(--transition-default) var(--transition-easeinout)}.ui-autocomplete-clear:first-child{margin-inline-start:var(--units-md)}.ui-autocomplete-clear:last-child{margin-inline-end:var(--units-md)}.ui-autocomplete-clear:hover:not(:disabled){color:var(--form-high-content-hover)}.ui-autocomplete-clear:focus-visible{outline:none;color:var(--form-high-content-focused);box-shadow:0 0 0 var(--units-2xs) rgb(from var(--form-high-stroke-focused) r g b/50%)}.ui-autocomplete-clear:disabled{cursor:not-allowed;color:var(--form-high-content-disabled)}.ui-autocomplete-dropdown{flex-shrink:0;color:var(--form-low-content-default)}.ui-autocomplete-dropdown:first-child{margin-inline-start:var(--units-md)}.ui-autocomplete-dropdown:last-child{margin-inline-end:var(--units-md)}.ui-autocomplete-dropdown._disabled{color:var(--form-high-content-disabled)}.ui-autocomplete-dropdown{transition:rotate var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms);margin:0;padding:0;border:none;background:none;color:var(--form-low-content-default);cursor:pointer}.ui-autocomplete-dropdown:hover:not(:disabled){color:var(--form-high-content-hover)}.ui-autocomplete-dropdown._open{rotate:180deg}.ui-autocomplete-dropdown:disabled{cursor:not-allowed;color:var(--form-high-content-disabled)}.ui-autocomplete-loading{flex-shrink:0}.ui-autocomplete-loading:first-child{margin-inline-start:var(--units-md)}.ui-autocomplete-loading:last-child{margin-inline-end:var(--units-md)}.ui-autocomplete-panel{border:var(--stroke-default) solid var(--ui-overlay-stroke, var(--form-high-stroke-default));border-radius:var(--ui-overlay-radius, var(--radius-default));background-color:var(--ui-overlay-surface, var(--form-high-surface-default));box-shadow:var(--ui-overlay-shadow, var(--shadow-default-md));font-family:var(--fontfamily-base);display:flex;flex-direction:column;gap:var(--units-xs);box-sizing:border-box;max-width:calc(100vw - var(--units-lg));padding:var(--units-xs)}.ui-autocomplete-panel .ui-autocomplete-header,.ui-autocomplete-panel .ui-autocomplete-footer{padding:var(--units-xs) var(--units-sm);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-md);color:var(--form-high-content-default)}.ui-autocomplete-panel .ui-autocomplete-scroller{overflow:auto;max-height:19.5rem}.ui-autocomplete-panel .ui-autocomplete-scroller._small{max-height:16rem}.ui-autocomplete-panel .ui-autocomplete-viewport{width:100%}.ui-autocomplete-panel .ui-autocomplete-list{display:flex;flex-direction:column;gap:var(--units-xs);margin:0;padding:0;list-style:none}.ui-autocomplete-panel .ui-autocomplete-viewport .ui-autocomplete-list{gap:0}.ui-autocomplete-panel .ui-autocomplete-viewport .ui-autocomplete-group{height:2.5rem}.ui-autocomplete-panel .ui-autocomplete-viewport .ui-autocomplete-group._small{height:2rem}.ui-autocomplete-panel .ui-autocomplete-option{display:flex;align-items:center;gap:var(--units-sm);box-sizing:border-box;height:2.5rem;flex-shrink:0;padding:0 var(--units-default);border-radius:var(--radius-sm);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-default);color:var(--form-high-content-default);cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color var(--transition-default) var(--transition-easeinout),color var(--transition-default) var(--transition-easeinout)}.ui-autocomplete-panel .ui-autocomplete-option._small{height:2rem;padding:0 var(--units-md);font-size:var(--size-typography-text-md)}.ui-autocomplete-panel .ui-autocomplete-option._focused,.ui-autocomplete-panel .ui-autocomplete-option:hover:not(._disabled){background-color:var(--global-background-default-hover)}.ui-autocomplete-panel .ui-autocomplete-option._selected{background-color:var(--form-high-surface-hover);color:var(--form-high-content-checked)}.ui-autocomplete-panel .ui-autocomplete-option._disabled{color:var(--form-high-content-disabled);cursor:not-allowed}.ui-autocomplete-panel .ui-autocomplete-option-label{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ui-autocomplete-panel .ui-autocomplete-group{display:flex;align-items:center;box-sizing:border-box;height:2rem;flex-shrink:0;padding:0 var(--units-default);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-md);font-weight:var(--weight-bold);color:var(--form-low-content-default)}.ui-autocomplete-panel .ui-autocomplete-group._small{height:1.5rem;padding:0 var(--units-md);font-size:var(--size-typography-text-sm)}.ui-autocomplete-panel .ui-autocomplete-empty{display:flex;align-items:center;box-sizing:border-box;min-height:2.5rem;padding:0 var(--units-default);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-default);color:var(--form-low-content-default)}\n"] }]
915
915
  }], ctorParameters: () => [], propDecorators: { suggestions: [{ type: i0.Input, args: [{ isSignal: true, alias: "suggestions", 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 }] }], dataKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataKey", required: false }] }], group: [{ type: i0.Input, args: [{ isSignal: true, alias: "group", required: false }] }], optionGroupLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionGroupLabel", required: false }] }], optionGroupChildren: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionGroupChildren", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], minLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "minLength", required: false }] }], delay: [{ type: i0.Input, args: [{ isSignal: true, alias: "delay", required: false }] }], completeOnFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "completeOnFocus", required: false }] }], dropdown: [{ type: i0.Input, args: [{ isSignal: true, alias: "dropdown", required: false }] }], dropdownMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "dropdownMode", required: false }] }], dropdownAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "dropdownAriaLabel", required: false }] }], dropdownIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "dropdownIcon", required: false }] }], forceSelection: [{ type: i0.Input, args: [{ isSignal: true, alias: "forceSelection", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], unique: [{ type: i0.Input, args: [{ isSignal: true, alias: "unique", required: false }] }], maxSelectedLabels: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxSelectedLabels", required: false }] }], overflowLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "overflowLabel", required: false }] }], removeTagLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "removeTagLabel", required: false }] }], showClear: [{ type: i0.Input, args: [{ isSignal: true, alias: "showClear", required: false }] }], clearAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearAriaLabel", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], emptyMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyMessage", required: false }] }], showEmptyMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "showEmptyMessage", required: false }] }], autoOptionFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoOptionFocus", required: false }] }], selectOnFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectOnFocus", required: false }] }], focusOnHover: [{ type: i0.Input, args: [{ isSignal: true, alias: "focusOnHover", required: false }] }], virtualScroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScroll", required: false }] }], virtualScrollItemSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScrollItemSize", required: false }] }], lazy: [{ type: i0.Input, args: [{ isSignal: true, alias: "lazy", required: false }] }], scrollHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollHeight", required: false }] }], autoFlip: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoFlip", required: false }] }], panelStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelStyleClass", required: false }] }], completeMethod: [{ type: i0.Output, args: ["completeMethod"] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }], optionSelect: [{ type: i0.Output, args: ["optionSelect"] }], optionUnselect: [{ type: i0.Output, args: ["optionUnselect"] }], opened: [{ type: i0.Output, args: ["opened"] }], closed: [{ type: i0.Output, args: ["closed"] }], cleared: [{ type: i0.Output, args: ["cleared"] }], dropdownClick: [{ type: i0.Output, args: ["dropdownClick"] }], lazyLoad: [{ type: i0.Output, args: ["lazyLoad"] }], inputFocus: [{ type: i0.Output, args: ["inputFocus"] }], inputBlur: [{ type: i0.Output, args: ["inputBlur"] }], itemTemplate: [{ type: i0.ContentChild, args: ['item', { isSignal: true }] }], selectedItemTemplate: [{ type: i0.ContentChild, args: ['selectedItem', { isSignal: true }] }], groupTemplate: [{ type: i0.ContentChild, args: ['group', { isSignal: true }] }], headerTemplate: [{ type: i0.ContentChild, args: ['header', { isSignal: true }] }], footerTemplate: [{ type: i0.ContentChild, args: ['footer', { isSignal: true }] }], emptyTemplate: [{ type: i0.ContentChild, args: ['empty', { isSignal: true }] }], containerEl: [{ type: i0.ViewChild, args: ['container', { isSignal: true }] }], inputEl: [{ type: i0.ViewChild, args: ['inputEl', { isSignal: true }] }], panelEl: [{ type: i0.ViewChild, args: ['panel', { isSignal: true }] }], viewport: [{ type: i0.ViewChild, args: [i0.forwardRef(() => CdkVirtualScrollViewport), { isSignal: true }] }], tagEls: [{ type: i0.ViewChildren, args: ['tagEl', { ...{ read: ElementRef }, isSignal: true }] }] } });
@@ -923,4 +923,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
923
923
  */
924
924
 
925
925
  export { UiAutocomplete };
926
- //# sourceMappingURL=4sh-ui-kit-ui-autocomplete.mjs.map
926
+ //# sourceMappingURL=4sh-ui-kit-forms-ui-autocomplete.mjs.map