@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-layout-ui-popover.mjs","sources":["../../../projects/ui-kit/layout/ui-popover/src/lib/ui-popover.ts","../../../projects/ui-kit/layout/ui-popover/src/lib/ui-popover.html","../../../projects/ui-kit/layout/ui-popover/src/public-api.ts","../../../projects/ui-kit/layout/ui-popover/src/4sh-ui-kit-layout-ui-popover.ts"],"sourcesContent":["import {\n booleanAttribute,\n Component,\n computed,\n DOCUMENT,\n effect,\n ElementRef,\n inject,\n input,\n isDevMode,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport {\n ConnectedOverlayPositionChange,\n ConnectedPosition,\n OverlayModule,\n} from '@angular/cdk/overlay';\nimport { A11yModule } from '@angular/cdk/a11y';\nimport { UiMotion } from '@4sh/ui-kit/motion';\nimport { closeOnNavigation } from '@4sh/ui-kit/overlay';\n\n/** Preferred side of the trigger the panel is displayed on (drives the arrow). */\nexport type PopoverPosition = 'top' | 'bottom' | 'left' | 'right';\n\n/** Accepted shapes for the anchor passed to `show` / `toggle`. */\nexport type PopoverTarget = HTMLElement | ElementRef<HTMLElement>;\n\n/** Gap (px) between the trigger and the panel, leaving room for the arrow — mirrors `$popover-arrow-size` in the SCSS. */\nconst ARROW_GAP = 8;\n\n/** Focusable descendants used to move focus into the panel on open. */\nconst FOCUSABLE_SELECTOR = [\n 'a[href]',\n 'button:not([disabled])',\n 'input:not([disabled])',\n 'select:not([disabled])',\n 'textarea:not([disabled])',\n '[tabindex]:not([tabindex=\"-1\"])',\n].join(',');\n\n/** Process-wide counter for unique panel ids (aria-controls wiring). */\nlet nextId = 0;\n\n/**\n * ui-popover — headless floating panel anchored to a trigger.\n *\n * A token-styled surface (shared `overlay-panel` shell + `global.*` tokens)\n * rendered in a CDK connected overlay, driven imperatively through the public\n * `show` / `hide` / `toggle` methods. The consumer keeps a template reference\n * variable on the popover and wires a trigger to it; the panel holds arbitrary\n * projected content.\n *\n * Built for accessibility: `role=\"dialog\"`, non-modal WAI-ARIA pattern by\n * default (no `aria-modal`, focus not trapped — see the `modal` input to opt\n * into a blocking dialog with `aria-modal` + a permanent focus trap via\n * `@angular/cdk/a11y`), the first focusable element (or an element carrying\n * `autofocus`) focused on open, `Escape` to close and return focus to the\n * trigger, and `aria-expanded` / `aria-controls` reflected on the trigger.\n *\n * Positioning, viewport flipping and scroll re-alignment are delegated to the\n * CDK connected overlay (no manual geometry); the arrow follows the effective\n * side.\n *\n * @example\n * ```html\n * <!-- Basic: the trigger's click event carries the anchor -->\n * <ui-button label=\"Détails\" (buttonClick)=\"op.toggle($event)\" />\n * <ui-popover #op ariaLabel=\"Détails du produit\">…</ui-popover>\n *\n * <!-- Controlled: pass the trigger element as the second argument -->\n * <span #anchor>Ancre</span>\n * <ui-button label=\"Ouvrir\" (buttonClick)=\"op.show($event, anchor)\" />\n * <ui-popover #op ariaLabel=\"Détails\">…</ui-popover>\n * ```\n */\n@Component({\n selector: 'ui-popover',\n imports: [OverlayModule, A11yModule, UiMotion],\n templateUrl: './ui-popover.html',\n styleUrl: './ui-popover.scss',\n})\nexport class UiPopover {\n /** Hide the panel when a click lands outside it (and outside the trigger). */\n dismissable = input(true, { transform: booleanAttribute });\n /** Preferred side of the trigger; the overlay flips it when space is lacking. */\n position = input<PopoverPosition>('bottom');\n /** Render the arrow pointing back to the trigger. */\n showArrow = input(true, { transform: booleanAttribute });\n /** Make the panel modal: `aria-modal` reflected + permanent focus trap. */\n modal = input(false, { transform: booleanAttribute });\n /** ARIA role of the panel. */\n role = input<string>('dialog');\n /** Accessible name of the panel (recommended). */\n ariaLabel = input<string>();\n /** Id of an external element naming the panel. */\n ariaLabelledBy = input<string>();\n /** Move focus into the panel when it opens. */\n focusOnShow = input(true, { transform: booleanAttribute });\n /** Close the panel when `Escape` is pressed. */\n closeOnEscape = input(true, { transform: booleanAttribute });\n /** Animate the panel entrance (reduced-motion / `data-motion=\"off\"` always win). */\n motion = input(true, { transform: booleanAttribute });\n /** Extra class(es) applied to the panel (scoped custom styling). */\n styleClass = input<string>();\n\n /** Emitted after the panel becomes visible. */\n shown = output<void>();\n /** Emitted after the panel is hidden. */\n hidden = output<void>();\n\n /** @ignore */\n private readonly doc = inject(DOCUMENT);\n /** @ignore Panel root (only present while open — queried after the overlay attaches). */\n private readonly panel = viewChild<ElementRef<HTMLElement>>('panel');\n\n /** @ignore Panel visibility. */\n private readonly _open = signal(false);\n /** Read-only open state (for host bindings / conditional logic). */\n readonly visible = this._open.asReadonly();\n\n /** @ignore Element the overlay is anchored to. */\n protected readonly origin = signal<HTMLElement | null>(null);\n /** @ignore Effective side (updated from the CDK connection pair) — drives the arrow. */\n protected readonly side = signal<PopoverPosition>('bottom');\n /** @ignore Unique panel id, wired to the trigger via `aria-controls`. */\n protected readonly panelId = `ui-popover-${nextId++}`;\n\n /** @ignore Resolved trigger element (kept for focus restore + aria cleanup). */\n private targetEl: HTMLElement | null = null;\n\n constructor() {\n // A popover declared in an app shell outlives the routed view: dismiss it\n // rather than carrying it over to the next page.\n closeOnNavigation(() => this.hide());\n\n // A11y safeguard: an open dialog must have an accessible name.\n if (isDevMode()) {\n effect(() => {\n if (this._open() && !this.ariaLabel() && !this.ariaLabelledBy()) {\n console.warn(\n '[ui-popover] Popover has no accessible name: provide `ariaLabel` or `ariaLabelledBy`.',\n );\n }\n });\n }\n }\n\n // --- Public API ---------------------------------------------------------\n\n /**\n * Show the panel anchored to `target` (or the event's `currentTarget`).\n * @param event Browser event whose `currentTarget` is used as a fallback anchor.\n * @param target Explicit anchor element (kept anchored to it).\n */\n show(event?: Event, target?: PopoverTarget): void {\n const anchor = this.resolveTarget(target) ?? this.resolveEventTarget(event);\n if (!anchor) return;\n event?.stopPropagation();\n\n this.targetEl = anchor;\n this.origin.set(anchor);\n if (!this._open()) {\n this._open.set(true);\n this.applyTriggerAria(anchor);\n this.shown.emit();\n }\n if (this.focusOnShow()) this.queueFocus();\n }\n\n /** Hide the panel; returns focus to the trigger when focus was inside it. */\n hide(): void {\n if (!this._open()) return;\n const panelEl = this.panel()?.nativeElement;\n const active = this.doc.activeElement;\n const focusWasInside = !!panelEl && active instanceof Node && panelEl.contains(active);\n\n this._open.set(false);\n this.clearTriggerAria();\n if (focusWasInside) this.targetEl?.focus();\n this.hidden.emit();\n }\n\n /** Toggle the panel, anchoring it like {@link show} when it opens. */\n toggle(event?: Event, target?: PopoverTarget): void {\n this._open() ? this.hide() : this.show(event, target);\n }\n\n // --- Positioning ----------------------------------------------------------\n\n /** @ignore Ordered positions (preferred first, then fallbacks) for CDK auto-flip. */\n protected readonly positions = computed<ConnectedPosition[]>(() => {\n const top: ConnectedPosition = {\n originX: 'center', originY: 'top', overlayX: 'center', overlayY: 'bottom', offsetY: -ARROW_GAP,\n };\n const bottom: ConnectedPosition = {\n originX: 'center', originY: 'bottom', overlayX: 'center', overlayY: 'top', offsetY: ARROW_GAP,\n };\n const left: ConnectedPosition = {\n originX: 'start', originY: 'center', overlayX: 'end', overlayY: 'center', offsetX: -ARROW_GAP,\n };\n const right: ConnectedPosition = {\n originX: 'end', originY: 'center', overlayX: 'start', overlayY: 'center', offsetX: ARROW_GAP,\n };\n const order: Record<PopoverPosition, ConnectedPosition[]> = {\n top: [top, bottom, right, left],\n bottom: [bottom, top, right, left],\n left: [left, right, top, bottom],\n right: [right, left, top, bottom],\n };\n return order[this.position()];\n });\n\n /** @ignore */\n protected readonly panelClasses = computed(() => {\n const c = ['ui-popover', `_${this.side()}`];\n if (!this.showArrow()) c.push('_no-arrow');\n const extra = this.styleClass();\n if (extra) c.push(extra);\n return c.join(' ');\n });\n\n /** @ignore Map the active CDK connection pair back to the visual side (for the arrow). */\n protected onPositionChange(change: ConnectedOverlayPositionChange): void {\n // The trigger can be gone while the popover lives on (its page was\n // destroyed): re-positioning on a detached anchor measures 0×0 and would\n // snap the panel to the top-left corner.\n if (this.targetEl && !this.targetEl.isConnected) {\n this.hide();\n return;\n }\n const pair = change.connectionPair;\n if (pair.overlayY === 'bottom') this.side.set('top');\n else if (pair.overlayY === 'top' && pair.originY === 'bottom') this.side.set('bottom');\n else if (pair.overlayX === 'end') this.side.set('left');\n else if (pair.overlayX === 'start' && pair.originX === 'end') this.side.set('right');\n else this.side.set(this.position());\n }\n\n // --- Interactions ---------------------------------------------------------\n\n /** @ignore A click outside the panel closes it — unless it lands on the trigger,\n * whose own handler owns the toggle (avoids close-then-reopen races). */\n protected onOutsideClick(event: MouseEvent): void {\n if (!this.dismissable()) return;\n const target = event.target;\n if (target instanceof Node && this.targetEl?.contains(target)) return;\n this.hide();\n }\n\n /** @ignore */\n protected onEscape(event: Event): void {\n if (!this.closeOnEscape()) return;\n event.stopPropagation();\n this.hide();\n }\n\n // --- Internals ------------------------------------------------------------\n\n /** @ignore */\n private resolveTarget(target?: PopoverTarget): HTMLElement | null {\n if (!target) return null;\n return target instanceof ElementRef ? target.nativeElement : target;\n }\n\n /** @ignore */\n private resolveEventTarget(event?: Event): HTMLElement | null {\n const el = event?.currentTarget ?? event?.target;\n return el instanceof HTMLElement ? el : null;\n }\n\n /** @ignore Reflect the open relationship on the trigger. */\n private applyTriggerAria(el: HTMLElement): void {\n el.setAttribute('aria-expanded', 'true');\n el.setAttribute('aria-controls', this.panelId);\n }\n\n /** @ignore */\n private clearTriggerAria(): void {\n const el = this.targetEl;\n if (!el) return;\n el.setAttribute('aria-expanded', 'false');\n el.removeAttribute('aria-controls');\n }\n\n /** @ignore Focus the first focusable (or `[autofocus]`) once the overlay renders.\n * The overlay attaches after change detection: retry over macrotasks\n * (NOT rAF — it never fires in throttled/background tabs). */\n private queueFocus(attempts = 20): void {\n setTimeout(() => {\n const panelEl = this.panel()?.nativeElement;\n if (panelEl) this.focusFirst(panelEl);\n else if (attempts > 0) this.queueFocus(attempts - 1);\n });\n }\n\n /** @ignore */\n private focusFirst(panelEl: HTMLElement): void {\n const auto = panelEl.querySelector<HTMLElement>('[autofocus]');\n if (auto) {\n auto.focus();\n return;\n }\n const focusable = panelEl.querySelector<HTMLElement>(FOCUSABLE_SELECTOR);\n (focusable ?? panelEl).focus();\n }\n}\n","<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"origin()!\"\n [cdkConnectedOverlayOpen]=\"visible()\"\n [cdkConnectedOverlayPositions]=\"positions()\"\n [cdkConnectedOverlayHasBackdrop]=\"false\"\n [cdkConnectedOverlayPush]=\"false\"\n [cdkConnectedOverlayFlexibleDimensions]=\"false\"\n [cdkConnectedOverlayViewportMargin]=\"8\"\n (overlayOutsideClick)=\"onOutsideClick($event)\"\n (positionChange)=\"onPositionChange($event)\"\n (detach)=\"hide()\"\n>\n <div\n #panel\n [class]=\"panelClasses()\"\n [attr.id]=\"panelId\"\n [attr.role]=\"role()\"\n [attr.aria-modal]=\"modal() ? 'true' : null\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n tabindex=\"-1\"\n [cdkTrapFocus]=\"modal()\"\n [uiMotion]=\"'zoom'\"\n [motionDisabled]=\"!motion()\"\n #panelMotion=\"uiMotion\"\n motionOnInsert\n (keydown.escape)=\"onEscape($event)\"\n >\n @if (showArrow()) {\n <span class=\"ui-popover-arrow\" aria-hidden=\"true\"></span>\n }\n <div class=\"ui-popover-content\">\n <ng-content />\n </div>\n </div>\n</ng-template>\n","/*\n * Public API Surface of ui-kit/ui-popover\n */\n\nexport * from './lib/ui-popover';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;AA6BA;AACA,MAAM,SAAS,GAAG,CAAC;AAEnB;AACA,MAAM,kBAAkB,GAAG;IACzB,SAAS;IACT,wBAAwB;IACxB,uBAAuB;IACvB,wBAAwB;IACxB,0BAA0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AA,mBAAA,EAAA,mBAAA,EAAA,gBAAA,EAAA,aAAA,EAAA,gBAAA,EAAA,gBAAA,CAAA,EAAA,QAAA,EAAA,CAAA,UAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAIlC,SAAS,EAAA,UAAA,EAAA,CAAA;kBANrB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,YAAY,WACb,CAAC,aAAa,EAAE,UAAU,EAAE,QAAQ,CAAC,EAAA,QAAA,EAAA,6nCAAA,EAAA,MAAA,EAAA,CAAA,0yCAAA,CAAA,EAAA;qvCAoCc,OAAO,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEnHrE;;AAEG;;ACFH;;AAEG;;;;"}
@@ -119,10 +119,10 @@ class UiMotion {
119
119
  }, /* @ts-ignore */
120
120
  ...(ngDevMode ? [{ debugName: "_scale" }] : /* istanbul ignore next */ []));
121
121
  }
122
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiMotion, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
123
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.8", type: UiMotion, isStandalone: true, selector: "[uiMotion]", inputs: { preset: { classPropertyName: "preset", publicName: "uiMotion", isSignal: true, isRequired: true, transformFunction: null }, motionDuration: { classPropertyName: "motionDuration", publicName: "motionDuration", isSignal: true, isRequired: false, transformFunction: null }, motionDelay: { classPropertyName: "motionDelay", publicName: "motionDelay", isSignal: true, isRequired: false, transformFunction: null }, motionEasing: { classPropertyName: "motionEasing", publicName: "motionEasing", isSignal: true, isRequired: false, transformFunction: null }, motionEnterEasing: { classPropertyName: "motionEnterEasing", publicName: "motionEnterEasing", isSignal: true, isRequired: false, transformFunction: null }, motionLeaveEasing: { classPropertyName: "motionLeaveEasing", publicName: "motionLeaveEasing", isSignal: true, isRequired: false, transformFunction: null }, motionDistance: { classPropertyName: "motionDistance", publicName: "motionDistance", isSignal: true, isRequired: false, transformFunction: null }, motionScale: { classPropertyName: "motionScale", publicName: "motionScale", isSignal: true, isRequired: false, transformFunction: null }, motionDisabled: { classPropertyName: "motionDisabled", publicName: "motionDisabled", isSignal: true, isRequired: false, transformFunction: null }, motionOnInsert: { classPropertyName: "motionOnInsert", publicName: "motionOnInsert", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_insertClass()", "style.--ui-motion-duration": "_duration()", "style.--ui-motion-delay": "_delay()", "style.--ui-motion-easing-enter": "_enterEasing()", "style.--ui-motion-easing-leave": "_leaveEasing()", "style.--ui-motion-distance": "_distance()", "style.--ui-motion-scale": "_scale()" } }, exportAs: ["uiMotion"], ngImport: i0 }); }
122
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiMotion, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
123
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.1", type: UiMotion, isStandalone: true, selector: "[uiMotion]", inputs: { preset: { classPropertyName: "preset", publicName: "uiMotion", isSignal: true, isRequired: true, transformFunction: null }, motionDuration: { classPropertyName: "motionDuration", publicName: "motionDuration", isSignal: true, isRequired: false, transformFunction: null }, motionDelay: { classPropertyName: "motionDelay", publicName: "motionDelay", isSignal: true, isRequired: false, transformFunction: null }, motionEasing: { classPropertyName: "motionEasing", publicName: "motionEasing", isSignal: true, isRequired: false, transformFunction: null }, motionEnterEasing: { classPropertyName: "motionEnterEasing", publicName: "motionEnterEasing", isSignal: true, isRequired: false, transformFunction: null }, motionLeaveEasing: { classPropertyName: "motionLeaveEasing", publicName: "motionLeaveEasing", isSignal: true, isRequired: false, transformFunction: null }, motionDistance: { classPropertyName: "motionDistance", publicName: "motionDistance", isSignal: true, isRequired: false, transformFunction: null }, motionScale: { classPropertyName: "motionScale", publicName: "motionScale", isSignal: true, isRequired: false, transformFunction: null }, motionDisabled: { classPropertyName: "motionDisabled", publicName: "motionDisabled", isSignal: true, isRequired: false, transformFunction: null }, motionOnInsert: { classPropertyName: "motionOnInsert", publicName: "motionOnInsert", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "_insertClass()", "style.--ui-motion-duration": "_duration()", "style.--ui-motion-delay": "_delay()", "style.--ui-motion-easing-enter": "_enterEasing()", "style.--ui-motion-easing-leave": "_leaveEasing()", "style.--ui-motion-distance": "_distance()", "style.--ui-motion-scale": "_scale()" } }, exportAs: ["uiMotion"], ngImport: i0 }); }
124
124
  }
125
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiMotion, decorators: [{
125
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiMotion, decorators: [{
126
126
  type: Directive,
127
127
  args: [{
128
128
  selector: '[uiMotion]',
@@ -2,7 +2,7 @@ import * as i0 from '@angular/core';
2
2
  import { input, output, contentChild, viewChild, inject, Injector, linkedSignal, computed, isDevMode, effect, afterNextRender, 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
  /** @ignore Focusable descendants of a crumb (native or projected via `#item`). */
8
8
  const FOCUSABLE_SELECTOR = 'a[href], button:not([disabled]), [tabindex]:not([tabindex="-1"])';
@@ -170,10 +170,10 @@ class UiBreadcrumb {
170
170
  item.command?.({ originalEvent: event, item });
171
171
  this.itemClick.emit({ originalEvent: event, item });
172
172
  }
173
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiBreadcrumb, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
174
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: UiBreadcrumb, isStandalone: true, selector: "ui-breadcrumb", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, separator: { classPropertyName: "separator", publicName: "separator", isSignal: true, isRequired: false, transformFunction: null }, maxItems: { classPropertyName: "maxItems", publicName: "maxItems", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ellipsisAriaLabel: { classPropertyName: "ellipsisAriaLabel", publicName: "ellipsisAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { itemClick: "itemClick" }, host: { properties: { "style.display": "'block'" } }, queries: [{ propertyName: "itemTemplate", first: true, predicate: ["item"], descendants: true, isSignal: true }, { propertyName: "separatorTemplate", first: true, predicate: ["separator"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "listEl", first: true, predicate: ["list"], descendants: true, isSignal: true }], ngImport: i0, template: "<nav [class]=\"classes()\" [attr.aria-label]=\"ariaLabel()\">\n <ol #list class=\"ui-breadcrumb-list\">\n @for (entry of entries(); track entry.key) {\n @if (entry.kind === 'ellipsis') {\n <li class=\"ui-breadcrumb-item\">\n <button\n type=\"button\"\n class=\"ui-breadcrumb-ellipsis\"\n [attr.aria-label]=\"ellipsisAriaLabel()\"\n aria-expanded=\"false\"\n (click)=\"expandOverflow()\"\n >\n <ui-icon name=\"ellipsis\" [size]=\"iconSize()\" />\n </button>\n </li>\n } @else {\n @let item = entry.item!;\n <li [class]=\"itemClasses(item)\">\n @if (itemTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"itemTemplate()!\"\n [ngTemplateOutletContext]=\"{ $implicit: item, last: entry.last }\"\n />\n } @else if (isRouterCrumb(item)) {\n <a\n class=\"ui-breadcrumb-link\"\n [routerLink]=\"item.routerLink!\"\n [queryParams]=\"item.queryParams\"\n [fragment]=\"item.fragment\"\n [target]=\"item.target\"\n [attr.rel]=\"relFor(item)\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-current]=\"entry.last ? 'page' : null\"\n (click)=\"onItemClick($event, item)\"\n >\n <ng-container [ngTemplateOutlet]=\"crumb\" [ngTemplateOutletContext]=\"{ $implicit: item }\" />\n </a>\n } @else if (isHrefCrumb(item)) {\n <a\n class=\"ui-breadcrumb-link\"\n [href]=\"item.url!\"\n [attr.target]=\"item.target\"\n [attr.rel]=\"relFor(item)\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-current]=\"entry.last ? 'page' : null\"\n (click)=\"onItemClick($event, item)\"\n >\n <ng-container [ngTemplateOutlet]=\"crumb\" [ngTemplateOutletContext]=\"{ $implicit: item }\" />\n </a>\n } @else if (isActionCrumb(item)) {\n <button\n type=\"button\"\n class=\"ui-breadcrumb-link\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-current]=\"entry.last ? 'page' : null\"\n (click)=\"onItemClick($event, item)\"\n >\n <ng-container [ngTemplateOutlet]=\"crumb\" [ngTemplateOutletContext]=\"{ $implicit: item }\" />\n </button>\n } @else {\n <span\n class=\"ui-breadcrumb-text\"\n [class._current]=\"entry.last\"\n [class._disabled]=\"item.disabled ?? false\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-current]=\"entry.last ? 'page' : null\"\n >\n <ng-container [ngTemplateOutlet]=\"crumb\" [ngTemplateOutletContext]=\"{ $implicit: item }\" />\n </span>\n }\n </li>\n }\n\n @if (!$last) {\n <li class=\"ui-breadcrumb-separator\" aria-hidden=\"true\">\n @if (separatorTemplate()) {\n <ng-container [ngTemplateOutlet]=\"separatorTemplate()!\" />\n } @else {\n {{ separator() }}\n }\n </li>\n }\n }\n </ol>\n</nav>\n\n<ng-template #crumb let-item>\n @if (item.icon) {\n <ui-icon class=\"ui-breadcrumb-icon\" [name]=\"item.icon\" [size]=\"iconSize()\" />\n }\n @if (item.label) {\n <span class=\"ui-breadcrumb-label\">{{ item.label }}</span>\n }\n</ng-template>\n", styles: [".ui-breadcrumb{display:block;font-family:var(--fontfamily-base)}.ui-breadcrumb-list{display:flex;flex-wrap:wrap;align-items:center;gap:var(--spacing-default);margin:0;padding:0;list-style:none;font-size:var(--size-typography-text-default)}.ui-breadcrumb._small .ui-breadcrumb-list{font-size:var(--size-typography-text-md)}.ui-breadcrumb-item{display:inline-flex;align-items:center;min-width:0}.ui-breadcrumb-link{display:inline-flex;align-items:center;gap:var(--units-sm);min-width:0;margin:0;padding:0;border:none;background:none;font:inherit;font-weight:var(--weight-bold);line-height:1.4;color:var(--global-text-muted);text-align:inherit;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-breadcrumb-link:hover{color:var(--actions-low-content-hover);text-decoration:underline}.ui-breadcrumb-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-breadcrumb-link:active{color:var(--actions-low-content-pressed)}.ui-breadcrumb-text{display:inline-flex;align-items:center;gap:var(--units-sm);min-width:0;font-weight:var(--weight-bold);line-height:1.4;color:var(--global-text-default)}.ui-breadcrumb-text._disabled{color:var(--actions-low-content-disabled);cursor:not-allowed}.ui-breadcrumb-icon{line-height:0}.ui-breadcrumb-separator{display:inline-flex;align-items:center;color:var(--global-text-default);-webkit-user-select:none;user-select:none}.ui-breadcrumb-ellipsis{display:inline-flex;align-items:center;justify-content:center;padding:0;border:none;background:none;line-height:0;color:var(--global-text-default);border-radius:var(--radius-2xs);cursor:pointer;transition:color var(--transition-default) var(--transition-easeinout),box-shadow var(--transition-default) var(--transition-easeinout)}.ui-breadcrumb-ellipsis:hover{color:var(--actions-low-content-hover)}.ui-breadcrumb-ellipsis:focus-visible{outline:none;color:var(--actions-low-content-focused);box-shadow:0 0 0 var(--units-2xs) var(--actions-low-content-focused)}.ui-breadcrumb-ellipsis:active{color:var(--actions-low-content-pressed)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }] }); }
173
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiBreadcrumb, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
174
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: UiBreadcrumb, isStandalone: true, selector: "ui-breadcrumb", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, separator: { classPropertyName: "separator", publicName: "separator", isSignal: true, isRequired: false, transformFunction: null }, maxItems: { classPropertyName: "maxItems", publicName: "maxItems", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ellipsisAriaLabel: { classPropertyName: "ellipsisAriaLabel", publicName: "ellipsisAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { itemClick: "itemClick" }, host: { properties: { "style.display": "'block'" } }, queries: [{ propertyName: "itemTemplate", first: true, predicate: ["item"], descendants: true, isSignal: true }, { propertyName: "separatorTemplate", first: true, predicate: ["separator"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "listEl", first: true, predicate: ["list"], descendants: true, isSignal: true }], ngImport: i0, template: "<nav [class]=\"classes()\" [attr.aria-label]=\"ariaLabel()\">\n <ol #list class=\"ui-breadcrumb-list\">\n @for (entry of entries(); track entry.key) {\n @if (entry.kind === 'ellipsis') {\n <li class=\"ui-breadcrumb-item\">\n <button\n type=\"button\"\n class=\"ui-breadcrumb-ellipsis\"\n [attr.aria-label]=\"ellipsisAriaLabel()\"\n aria-expanded=\"false\"\n (click)=\"expandOverflow()\"\n >\n <ui-icon name=\"ellipsis\" [size]=\"iconSize()\" />\n </button>\n </li>\n } @else {\n @let item = entry.item!;\n <li [class]=\"itemClasses(item)\">\n @if (itemTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"itemTemplate()!\"\n [ngTemplateOutletContext]=\"{ $implicit: item, last: entry.last }\"\n />\n } @else if (isRouterCrumb(item)) {\n <a\n class=\"ui-breadcrumb-link\"\n [routerLink]=\"item.routerLink!\"\n [queryParams]=\"item.queryParams\"\n [fragment]=\"item.fragment\"\n [target]=\"item.target\"\n [attr.rel]=\"relFor(item)\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-current]=\"entry.last ? 'page' : null\"\n (click)=\"onItemClick($event, item)\"\n >\n <ng-container [ngTemplateOutlet]=\"crumb\" [ngTemplateOutletContext]=\"{ $implicit: item }\" />\n </a>\n } @else if (isHrefCrumb(item)) {\n <a\n class=\"ui-breadcrumb-link\"\n [href]=\"item.url!\"\n [attr.target]=\"item.target\"\n [attr.rel]=\"relFor(item)\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-current]=\"entry.last ? 'page' : null\"\n (click)=\"onItemClick($event, item)\"\n >\n <ng-container [ngTemplateOutlet]=\"crumb\" [ngTemplateOutletContext]=\"{ $implicit: item }\" />\n </a>\n } @else if (isActionCrumb(item)) {\n <button\n type=\"button\"\n class=\"ui-breadcrumb-link\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-current]=\"entry.last ? 'page' : null\"\n (click)=\"onItemClick($event, item)\"\n >\n <ng-container [ngTemplateOutlet]=\"crumb\" [ngTemplateOutletContext]=\"{ $implicit: item }\" />\n </button>\n } @else {\n <span\n class=\"ui-breadcrumb-text\"\n [class._current]=\"entry.last\"\n [class._disabled]=\"item.disabled ?? false\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-current]=\"entry.last ? 'page' : null\"\n >\n <ng-container [ngTemplateOutlet]=\"crumb\" [ngTemplateOutletContext]=\"{ $implicit: item }\" />\n </span>\n }\n </li>\n }\n\n @if (!$last) {\n <li class=\"ui-breadcrumb-separator\" aria-hidden=\"true\">\n @if (separatorTemplate()) {\n <ng-container [ngTemplateOutlet]=\"separatorTemplate()!\" />\n } @else {\n {{ separator() }}\n }\n </li>\n }\n }\n </ol>\n</nav>\n\n<ng-template #crumb let-item>\n @if (item.icon) {\n <ui-icon class=\"ui-breadcrumb-icon\" [name]=\"item.icon\" [size]=\"iconSize()\" />\n }\n @if (item.label) {\n <span class=\"ui-breadcrumb-label\">{{ item.label }}</span>\n }\n</ng-template>\n", styles: [".ui-breadcrumb{display:block;font-family:var(--fontfamily-base)}.ui-breadcrumb-list{display:flex;flex-wrap:wrap;align-items:center;gap:var(--spacing-default);margin:0;padding:0;list-style:none;font-size:var(--size-typography-text-default)}.ui-breadcrumb._small .ui-breadcrumb-list{font-size:var(--size-typography-text-md)}.ui-breadcrumb-item{display:inline-flex;align-items:center;min-width:0}.ui-breadcrumb-link{display:inline-flex;align-items:center;gap:var(--units-sm);min-width:0;margin:0;padding:0;border:none;background:none;font:inherit;font-weight:var(--weight-bold);line-height:1.4;color:var(--global-text-muted);text-align:inherit;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-breadcrumb-link:hover{color:var(--actions-low-content-hover);text-decoration:underline}.ui-breadcrumb-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-breadcrumb-link:active{color:var(--actions-low-content-pressed)}.ui-breadcrumb-text{display:inline-flex;align-items:center;gap:var(--units-sm);min-width:0;font-weight:var(--weight-bold);line-height:1.4;color:var(--global-text-default)}.ui-breadcrumb-text._disabled{color:var(--actions-low-content-disabled);cursor:not-allowed}.ui-breadcrumb-icon{line-height:0}.ui-breadcrumb-separator{display:inline-flex;align-items:center;color:var(--global-text-default);-webkit-user-select:none;user-select:none}.ui-breadcrumb-ellipsis{display:inline-flex;align-items:center;justify-content:center;padding:0;border:none;background:none;line-height:0;color:var(--global-text-default);border-radius:var(--radius-2xs);cursor:pointer;transition:color var(--transition-default) var(--transition-easeinout),box-shadow var(--transition-default) var(--transition-easeinout)}.ui-breadcrumb-ellipsis:hover{color:var(--actions-low-content-hover)}.ui-breadcrumb-ellipsis:focus-visible{outline:none;color:var(--actions-low-content-focused);box-shadow:0 0 0 var(--units-2xs) var(--actions-low-content-focused)}.ui-breadcrumb-ellipsis:active{color:var(--actions-low-content-pressed)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }] }); }
175
175
  }
176
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiBreadcrumb, decorators: [{
176
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiBreadcrumb, decorators: [{
177
177
  type: Component,
178
178
  args: [{ selector: 'ui-breadcrumb', imports: [NgTemplateOutlet, RouterLink, UiIcon], host: { '[style.display]': "'block'" }, template: "<nav [class]=\"classes()\" [attr.aria-label]=\"ariaLabel()\">\n <ol #list class=\"ui-breadcrumb-list\">\n @for (entry of entries(); track entry.key) {\n @if (entry.kind === 'ellipsis') {\n <li class=\"ui-breadcrumb-item\">\n <button\n type=\"button\"\n class=\"ui-breadcrumb-ellipsis\"\n [attr.aria-label]=\"ellipsisAriaLabel()\"\n aria-expanded=\"false\"\n (click)=\"expandOverflow()\"\n >\n <ui-icon name=\"ellipsis\" [size]=\"iconSize()\" />\n </button>\n </li>\n } @else {\n @let item = entry.item!;\n <li [class]=\"itemClasses(item)\">\n @if (itemTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"itemTemplate()!\"\n [ngTemplateOutletContext]=\"{ $implicit: item, last: entry.last }\"\n />\n } @else if (isRouterCrumb(item)) {\n <a\n class=\"ui-breadcrumb-link\"\n [routerLink]=\"item.routerLink!\"\n [queryParams]=\"item.queryParams\"\n [fragment]=\"item.fragment\"\n [target]=\"item.target\"\n [attr.rel]=\"relFor(item)\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-current]=\"entry.last ? 'page' : null\"\n (click)=\"onItemClick($event, item)\"\n >\n <ng-container [ngTemplateOutlet]=\"crumb\" [ngTemplateOutletContext]=\"{ $implicit: item }\" />\n </a>\n } @else if (isHrefCrumb(item)) {\n <a\n class=\"ui-breadcrumb-link\"\n [href]=\"item.url!\"\n [attr.target]=\"item.target\"\n [attr.rel]=\"relFor(item)\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-current]=\"entry.last ? 'page' : null\"\n (click)=\"onItemClick($event, item)\"\n >\n <ng-container [ngTemplateOutlet]=\"crumb\" [ngTemplateOutletContext]=\"{ $implicit: item }\" />\n </a>\n } @else if (isActionCrumb(item)) {\n <button\n type=\"button\"\n class=\"ui-breadcrumb-link\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-current]=\"entry.last ? 'page' : null\"\n (click)=\"onItemClick($event, item)\"\n >\n <ng-container [ngTemplateOutlet]=\"crumb\" [ngTemplateOutletContext]=\"{ $implicit: item }\" />\n </button>\n } @else {\n <span\n class=\"ui-breadcrumb-text\"\n [class._current]=\"entry.last\"\n [class._disabled]=\"item.disabled ?? false\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-current]=\"entry.last ? 'page' : null\"\n >\n <ng-container [ngTemplateOutlet]=\"crumb\" [ngTemplateOutletContext]=\"{ $implicit: item }\" />\n </span>\n }\n </li>\n }\n\n @if (!$last) {\n <li class=\"ui-breadcrumb-separator\" aria-hidden=\"true\">\n @if (separatorTemplate()) {\n <ng-container [ngTemplateOutlet]=\"separatorTemplate()!\" />\n } @else {\n {{ separator() }}\n }\n </li>\n }\n }\n </ol>\n</nav>\n\n<ng-template #crumb let-item>\n @if (item.icon) {\n <ui-icon class=\"ui-breadcrumb-icon\" [name]=\"item.icon\" [size]=\"iconSize()\" />\n }\n @if (item.label) {\n <span class=\"ui-breadcrumb-label\">{{ item.label }}</span>\n }\n</ng-template>\n", styles: [".ui-breadcrumb{display:block;font-family:var(--fontfamily-base)}.ui-breadcrumb-list{display:flex;flex-wrap:wrap;align-items:center;gap:var(--spacing-default);margin:0;padding:0;list-style:none;font-size:var(--size-typography-text-default)}.ui-breadcrumb._small .ui-breadcrumb-list{font-size:var(--size-typography-text-md)}.ui-breadcrumb-item{display:inline-flex;align-items:center;min-width:0}.ui-breadcrumb-link{display:inline-flex;align-items:center;gap:var(--units-sm);min-width:0;margin:0;padding:0;border:none;background:none;font:inherit;font-weight:var(--weight-bold);line-height:1.4;color:var(--global-text-muted);text-align:inherit;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-breadcrumb-link:hover{color:var(--actions-low-content-hover);text-decoration:underline}.ui-breadcrumb-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-breadcrumb-link:active{color:var(--actions-low-content-pressed)}.ui-breadcrumb-text{display:inline-flex;align-items:center;gap:var(--units-sm);min-width:0;font-weight:var(--weight-bold);line-height:1.4;color:var(--global-text-default)}.ui-breadcrumb-text._disabled{color:var(--actions-low-content-disabled);cursor:not-allowed}.ui-breadcrumb-icon{line-height:0}.ui-breadcrumb-separator{display:inline-flex;align-items:center;color:var(--global-text-default);-webkit-user-select:none;user-select:none}.ui-breadcrumb-ellipsis{display:inline-flex;align-items:center;justify-content:center;padding:0;border:none;background:none;line-height:0;color:var(--global-text-default);border-radius:var(--radius-2xs);cursor:pointer;transition:color var(--transition-default) var(--transition-easeinout),box-shadow var(--transition-default) var(--transition-easeinout)}.ui-breadcrumb-ellipsis:hover{color:var(--actions-low-content-hover)}.ui-breadcrumb-ellipsis:focus-visible{outline:none;color:var(--actions-low-content-focused);box-shadow:0 0 0 var(--units-2xs) var(--actions-low-content-focused)}.ui-breadcrumb-ellipsis:active{color:var(--actions-low-content-pressed)}\n"] }]
179
179
  }], ctorParameters: () => [], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], separator: [{ type: i0.Input, args: [{ isSignal: true, alias: "separator", required: false }] }], maxItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxItems", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ellipsisAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ellipsisAriaLabel", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], itemClick: [{ type: i0.Output, args: ["itemClick"] }], itemTemplate: [{ type: i0.ContentChild, args: ['item', { isSignal: true }] }], separatorTemplate: [{ type: i0.ContentChild, args: ['separator', { isSignal: true }] }], listEl: [{ type: i0.ViewChild, args: ['list', { isSignal: true }] }] } });
@@ -187,4 +187,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
187
187
  */
188
188
 
189
189
  export { UiBreadcrumb };
190
- //# sourceMappingURL=4sh-ui-kit-ui-breadcrumb.mjs.map
190
+ //# sourceMappingURL=4sh-ui-kit-navigation-ui-breadcrumb.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"4sh-ui-kit-navigation-ui-breadcrumb.mjs","sources":["../../../projects/ui-kit/navigation/ui-breadcrumb/src/lib/ui-breadcrumb.ts","../../../projects/ui-kit/navigation/ui-breadcrumb/src/lib/ui-breadcrumb.html","../../../projects/ui-kit/navigation/ui-breadcrumb/src/public-api.ts","../../../projects/ui-kit/navigation/ui-breadcrumb/src/4sh-ui-kit-navigation-ui-breadcrumb.ts"],"sourcesContent":["import {\n afterNextRender,\n Component,\n computed,\n contentChild,\n effect,\n ElementRef,\n inject,\n Injector,\n input,\n isDevMode,\n linkedSignal,\n output,\n TemplateRef,\n viewChild,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { Params, RouterLink } from '@angular/router';\nimport { UiIcon } from '@4sh/ui-kit/base/ui-icon';\n\n/** Breadcrumb density: `small` = compact rendering. */\nexport type BreadcrumbSize = 'default' | 'small';\n\n/** Payload passed to `command` callbacks and emitted by `itemClick`. */\nexport interface UiBreadcrumbItemCommandEvent {\n originalEvent: Event;\n item: UiBreadcrumbItem;\n}\n\n/**\n * Declarative breadcrumb entry. An item navigates through `url` (external)\n * or `routerLink` (internal), and/or triggers a `command` callback.\n */\nexport interface UiBreadcrumbItem {\n /** Text of the crumb. */\n label?: string;\n /** Leading FontAwesome icon name (icon-only crumb when no label, e.g. home). */\n icon?: string;\n /** Accessible name override (required for an icon-only crumb). */\n ariaLabel?: string;\n /** External / plain URL — the crumb renders a plain anchor. */\n url?: string;\n /** Anchor target (e.g. `_blank`). */\n target?: string;\n /** Anchor rel. Defaults to `noopener noreferrer` when `target=\"_blank\"`. */\n rel?: string;\n /** Angular router target — the crumb renders a RouterLink anchor. */\n routerLink?: string | unknown[];\n /** Query params passed to `routerLink`. */\n queryParams?: Params;\n /** URL fragment passed to `routerLink`. */\n fragment?: string;\n /** Callback invoked when the crumb is clicked. */\n command?: (event: UiBreadcrumbItemCommandEvent) => void;\n /** Disable the crumb (no navigation, out of the tab sequence). */\n disabled?: boolean;\n /** Hide the crumb entirely (default true). */\n visible?: boolean;\n /** Extra class on the crumb's `<li>`. */\n styleClass?: string;\n}\n\n/** @ignore Resolved render entry (crumb or overflow ellipsis). */\ninterface UiBreadcrumbEntry {\n kind: 'item' | 'ellipsis';\n item?: UiBreadcrumbItem;\n key: string;\n last: boolean;\n}\n\n/** @ignore Focusable descendants of a crumb (native or projected via `#item`). */\nconst FOCUSABLE_SELECTOR = 'a[href], button:not([disabled]), [tabindex]:not([tabindex=\"-1\"])';\n\n/**\n * ui-breadcrumb — headless breadcrumb trail: shows the current location\n * within a navigational hierarchy.\n *\n * Driven by a declarative `items` model ({@link UiBreadcrumbItem}). Each crumb\n * renders the **native element matching its semantics**, never a wrapper\n * component — so the anchor stays fully controllable (`rel`, `target`,\n * `queryParams`, `fragment`…):\n *\n * • `routerLink` → `<a>` + `RouterLink` (internal navigation)\n * • `url` → `<a href>` (external / plain navigation)\n * • `command` only → `<button type=\"button\">` (action, not navigation)\n * • no destination / `disabled` → plain text (never a fake link)\n *\n * The last crumb represents the current page and carries `aria-current=\"page\"`.\n *\n * Long trails collapse behind an accessible ellipsis **button** when `maxItems`\n * is set (first crumb + \"…\" + trailing crumbs); activating it reveals the\n * hidden crumbs.\n *\n * Customisation: `separator` (string, default \"/\"), `#separator` template,\n * and `#item` template (crumb content, `$implicit` = item, `last`).\n */\n@Component({\n selector: 'ui-breadcrumb',\n imports: [NgTemplateOutlet, RouterLink, UiIcon],\n templateUrl: './ui-breadcrumb.html',\n styleUrl: './ui-breadcrumb.scss',\n host: { '[style.display]': \"'block'\" },\n})\nexport class UiBreadcrumb {\n /** Breadcrumb entries, in hierarchy order (see {@link UiBreadcrumbItem}). */\n items = input<UiBreadcrumbItem[]>([]);\n /** Density: `default`, or `small` for compact rendering. */\n size = input<BreadcrumbSize>('default');\n /** Separator character(s) between crumbs (overridden by the `#separator` template). */\n separator = input<string>('/');\n /**\n * Maximum number of crumbs displayed (minimum 2). Beyond it, the middle\n * collapses behind an ellipsis button: first crumb + \"…\" + the trailing\n * crumbs. Unset = never collapse.\n */\n maxItems = input<number>();\n /** Accessible name of the `<nav>` landmark. */\n ariaLabel = input<string>(\"Fil d'Ariane\");\n /** Accessible name of the ellipsis button revealing the hidden crumbs. */\n ellipsisAriaLabel = input<string>('Afficher les éléments masqués');\n /** Extra class(es) applied to the root `<nav>`. */\n styleClass = input<string>();\n\n /** Emitted when a crumb is clicked (never when disabled). */\n itemClick = output<UiBreadcrumbItemCommandEvent>();\n\n /** Custom crumb content: `<ng-template #item let-item let-last=\"last\">`. */\n protected readonly itemTemplate = contentChild<TemplateRef<unknown>>('item');\n /** Custom separator content: `<ng-template #separator>`. */\n protected readonly separatorTemplate = contentChild<TemplateRef<unknown>>('separator');\n\n /** @ignore Root list — focus management after expanding the overflow. */\n private readonly listEl = viewChild<ElementRef<HTMLElement>>('list');\n\n /** @ignore */\n private readonly injector = inject(Injector);\n\n constructor() {\n // A11y safeguard: an icon-only crumb must have an accessible name.\n if (isDevMode()) {\n effect(() => {\n const unnamed = this.items().filter(\n (item) => item.visible !== false && item.icon && !item.label && !item.ariaLabel,\n );\n if (unnamed.length) {\n console.warn(\n '[ui-breadcrumb] Icon-only crumb has no accessible name: provide `ariaLabel`.',\n unnamed,\n );\n }\n });\n }\n }\n\n /** @ignore Overflow revealed by the ellipsis button; resets when items change. */\n protected readonly overflowExpanded = linkedSignal<UiBreadcrumbItem[], boolean>({\n source: this.items,\n computation: () => false,\n });\n\n /** @ignore Crumb / ellipsis icon size follows the breadcrumb density. */\n protected readonly iconSize = computed(() => (this.size() === 'small' ? 'sm' : 'default'));\n\n /** @ignore */\n protected readonly classes = computed(() => {\n const c = ['ui-breadcrumb'];\n if (this.size() !== 'default') c.push(`_${this.size()}`);\n const extra = this.styleClass();\n if (extra) c.push(extra);\n return c.join(' ');\n });\n\n /** @ignore Render entries: visible crumbs, middle collapsed when overflowing. */\n protected readonly entries = computed<UiBreadcrumbEntry[]>(() => {\n const items = this.items().filter((item) => item.visible !== false);\n const max = this.maxItems();\n const kept = max != null ? Math.max(2, max) : Infinity;\n\n let entries: UiBreadcrumbEntry[];\n if (!this.overflowExpanded() && items.length > kept) {\n entries = [\n { kind: 'item', item: items[0], key: 'item-0', last: false },\n { kind: 'ellipsis', key: 'ellipsis', last: false },\n ...items.slice(items.length - (kept - 1)).map((item, i) => ({\n kind: 'item' as const,\n item,\n key: `item-${items.length - (kept - 1) + i}`,\n last: false,\n })),\n ];\n } else {\n entries = items.map((item, i) => ({ kind: 'item' as const, item, key: `item-${i}`, last: false }));\n }\n if (entries.length) entries[entries.length - 1].last = true;\n return entries;\n });\n\n /** @ignore Class list of a crumb `<li>` (base + per-item styleClass). */\n protected itemClasses(item: UiBreadcrumbItem): string {\n return item.styleClass ? `ui-breadcrumb-item ${item.styleClass}` : 'ui-breadcrumb-item';\n }\n\n /** @ignore Internal navigation: `routerLink` wins over `url`. */\n protected isRouterCrumb(item: UiBreadcrumbItem): boolean {\n return !item.disabled && item.routerLink != null;\n }\n\n /** @ignore Plain navigation: an `url` and no `routerLink`. */\n protected isHrefCrumb(item: UiBreadcrumbItem): boolean {\n return !item.disabled && item.routerLink == null && !!item.url;\n }\n\n /** @ignore Action-only crumb (a `command` with no destination) → real `<button>`. */\n protected isActionCrumb(item: UiBreadcrumbItem): boolean {\n return !item.disabled && item.routerLink == null && !item.url && !!item.command;\n }\n\n /** @ignore Anchor `rel`: explicit, or a safe default for `target=\"_blank\"`. */\n protected relFor(item: UiBreadcrumbItem): string | null {\n if (item.rel) return item.rel;\n return item.target === '_blank' ? 'noopener noreferrer' : null;\n }\n\n /** @ignore Reveal the hidden crumbs, moving focus to the first revealed one. */\n protected expandOverflow(): void {\n this.overflowExpanded.set(true);\n // After the next render the full list is in the DOM: focus the first\n // focusable crumb revealed by the expansion (skipping the leading one).\n afterNextRender(\n () => {\n const list = this.listEl()?.nativeElement;\n if (!list) return;\n const crumbs = Array.from(list.querySelectorAll<HTMLElement>('.ui-breadcrumb-item'));\n for (const crumb of crumbs.slice(1)) {\n const focusable = crumb.querySelector<HTMLElement>(FOCUSABLE_SELECTOR);\n if (focusable) {\n focusable.focus();\n return;\n }\n }\n },\n { injector: this.injector },\n );\n }\n\n /** @ignore Crumb activation: command + itemClick (navigation stays native). */\n protected onItemClick(event: Event, item: UiBreadcrumbItem): void {\n if (item.disabled) return;\n item.command?.({ originalEvent: event, item });\n this.itemClick.emit({ originalEvent: event, item });\n }\n}\n","<nav [class]=\"classes()\" [attr.aria-label]=\"ariaLabel()\">\n <ol #list class=\"ui-breadcrumb-list\">\n @for (entry of entries(); track entry.key) {\n @if (entry.kind === 'ellipsis') {\n <li class=\"ui-breadcrumb-item\">\n <button\n type=\"button\"\n class=\"ui-breadcrumb-ellipsis\"\n [attr.aria-label]=\"ellipsisAriaLabel()\"\n aria-expanded=\"false\"\n (click)=\"expandOverflow()\"\n >\n <ui-icon name=\"ellipsis\" [size]=\"iconSize()\" />\n </button>\n </li>\n } @else {\n @let item = entry.item!;\n <li [class]=\"itemClasses(item)\">\n @if (itemTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"itemTemplate()!\"\n [ngTemplateOutletContext]=\"{ $implicit: item, last: entry.last }\"\n />\n } @else if (isRouterCrumb(item)) {\n <a\n class=\"ui-breadcrumb-link\"\n [routerLink]=\"item.routerLink!\"\n [queryParams]=\"item.queryParams\"\n [fragment]=\"item.fragment\"\n [target]=\"item.target\"\n [attr.rel]=\"relFor(item)\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-current]=\"entry.last ? 'page' : null\"\n (click)=\"onItemClick($event, item)\"\n >\n <ng-container [ngTemplateOutlet]=\"crumb\" [ngTemplateOutletContext]=\"{ $implicit: item }\" />\n </a>\n } @else if (isHrefCrumb(item)) {\n <a\n class=\"ui-breadcrumb-link\"\n [href]=\"item.url!\"\n [attr.target]=\"item.target\"\n [attr.rel]=\"relFor(item)\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-current]=\"entry.last ? 'page' : null\"\n (click)=\"onItemClick($event, item)\"\n >\n <ng-container [ngTemplateOutlet]=\"crumb\" [ngTemplateOutletContext]=\"{ $implicit: item }\" />\n </a>\n } @else if (isActionCrumb(item)) {\n <button\n type=\"button\"\n class=\"ui-breadcrumb-link\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-current]=\"entry.last ? 'page' : null\"\n (click)=\"onItemClick($event, item)\"\n >\n <ng-container [ngTemplateOutlet]=\"crumb\" [ngTemplateOutletContext]=\"{ $implicit: item }\" />\n </button>\n } @else {\n <span\n class=\"ui-breadcrumb-text\"\n [class._current]=\"entry.last\"\n [class._disabled]=\"item.disabled ?? false\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-current]=\"entry.last ? 'page' : null\"\n >\n <ng-container [ngTemplateOutlet]=\"crumb\" [ngTemplateOutletContext]=\"{ $implicit: item }\" />\n </span>\n }\n </li>\n }\n\n @if (!$last) {\n <li class=\"ui-breadcrumb-separator\" aria-hidden=\"true\">\n @if (separatorTemplate()) {\n <ng-container [ngTemplateOutlet]=\"separatorTemplate()!\" />\n } @else {\n {{ separator() }}\n }\n </li>\n }\n }\n </ol>\n</nav>\n\n<ng-template #crumb let-item>\n @if (item.icon) {\n <ui-icon class=\"ui-breadcrumb-icon\" [name]=\"item.icon\" [size]=\"iconSize()\" />\n }\n @if (item.label) {\n <span class=\"ui-breadcrumb-label\">{{ item.label }}</span>\n }\n</ng-template>\n","/*\n * Public API Surface of ui-kit/ui-breadcrumb\n */\n\nexport * from './lib/ui-breadcrumb';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAsEA;AACA,MAAM,kBAAkB,GAAG,kEAAkE;AAE7F;;;;;;;;;;;;;;;;;;;;;;AAsBG;MAQU,YAAY,CAAA;AAkCvB,IAAA,WAAA,GAAA;;QAhCA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAqB,EAAE;kFAAC;;QAErC,IAAA,CAAA,IAAI,GAAG,KAAK,CAAiB,SAAS;iFAAC;;QAEvC,IAAA,CAAA,SAAS,GAAG,KAAK,CAAS,GAAG;sFAAC;AAC9B;;;;AAIG;AACH,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK;gGAAU;;QAE1B,IAAA,CAAA,SAAS,GAAG,KAAK,CAAS,cAAc;sFAAC;;QAEzC,IAAA,CAAA,iBAAiB,GAAG,KAAK,CAAS,+BAA+B;8FAAC;;AAElE,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK;kGAAU;;QAG5B,IAAA,CAAA,SAAS,GAAG,MAAM,EAAgC;;QAG/B,IAAA,CAAA,YAAY,GAAG,YAAY,CAAuB,MAAM;yFAAC;;QAEzD,IAAA,CAAA,iBAAiB,GAAG,YAAY,CAAuB,WAAW;8FAAC;;QAGrE,IAAA,CAAA,MAAM,GAAG,SAAS,CAA0B,MAAM;mFAAC;;AAGnD,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;;AAoBzB,QAAA,IAAA,CAAA,gBAAgB,GAAG,YAAY,CAAA,EAAA,IAAA,SAAA,GAAA,EAAA,SAAA,EAAA,kBAAA,EAAA,8BAAA,EAAA,CA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YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,eAAe,EAAA,OAAA,EAChB,CAAC,gBAAgB,EAAE,UAAU,EAAE,MAAM,CAAC,EAAA,IAAA,EAGzC,EAAE,iBAAiB,EAAE,SAAS,EAAE,EAAA,QAAA,EAAA,6hHAAA,EAAA,MAAA,EAAA,CAAA,s3EAAA,CAAA,EAAA;00BA0B+B,MAAM,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,iBAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAED,WAAW,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,MAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAGxB,MAAM,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEpIrE;;AAEG;;ACFH;;AAEG;;;;"}
@@ -3,7 +3,7 @@ import { input, booleanAttribute, output, contentChild, viewChild, inject, signa
3
3
  import { DOCUMENT } from '@angular/common';
4
4
  import * as i1 from '@angular/cdk/overlay';
5
5
  import { OverlayModule } from '@angular/cdk/overlay';
6
- import { UiMenu } from '@4sh/ui-kit/ui-menu';
6
+ import { UiMenu } from '@4sh/ui-kit/navigation/ui-menu';
7
7
  import { UiMotion } from '@4sh/ui-kit/motion';
8
8
  import { closeOnNavigation } from '@4sh/ui-kit/overlay';
9
9
 
@@ -199,10 +199,10 @@ class UiContextMenu {
199
199
  this.queueFocusFirst(attempts - 1);
200
200
  });
201
201
  }
202
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiContextMenu, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
203
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.8", type: UiContextMenu, isStandalone: true, selector: "ui-context-menu", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, target: { classPropertyName: "target", publicName: "target", isSignal: true, isRequired: false, transformFunction: null }, global: { classPropertyName: "global", publicName: "global", isSignal: true, isRequired: false, transformFunction: null }, triggerEvent: { classPropertyName: "triggerEvent", publicName: "triggerEvent", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, submenus: { classPropertyName: "submenus", publicName: "submenus", isSignal: true, isRequired: false, transformFunction: null }, motion: { classPropertyName: "motion", publicName: "motion", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { opened: "opened", closed: "closed", itemClick: "itemClick" }, queries: [{ propertyName: "itemTemplateContent", first: true, predicate: ["item"], descendants: true, isSignal: true }, { propertyName: "submenuHeaderTemplateContent", first: true, predicate: ["submenuheader"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "menu", first: true, predicate: ["menu"], descendants: true, isSignal: true }], ngImport: i0, template: "<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"overlayPoint()\"\n [cdkConnectedOverlayOpen]=\"open()\"\n [cdkConnectedOverlayPositions]=\"overlayPositions\"\n (detach)=\"hide()\"\n>\n <!-- Context menu: Escape handled on the container, focus lives on the\n menu items (roving). -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n class=\"ui-context-menu\"\n [uiMotion]=\"'zoom'\"\n [motionDisabled]=\"!motion()\"\n #panelMotion=\"uiMotion\"\n motionOnInsert\n (keydown.escape)=\"onEscape($event)\"\n >\n <!-- Projected #item / #submenuheader templates are forwarded as inputs:\n the embedded menu outlets them with its own item context. -->\n <ui-menu\n #menu\n [items]=\"items()\"\n [level]=\"level()\"\n [size]=\"size()\"\n [motion]=\"motion()\"\n [submenus]=\"submenus()\"\n [styleClass]=\"menuClasses()\"\n [ariaLabel]=\"ariaLabel()\"\n [itemTemplate]=\"itemTemplateContent()\"\n [submenuHeaderTemplate]=\"submenuHeaderTemplateContent()\"\n (itemClick)=\"onItemClick($event)\"\n />\n </div>\n</ng-template>\n", styles: [".ui-context-menu{display:block}\n"], dependencies: [{ 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: "component", type: UiMenu, selector: "ui-menu", inputs: ["items", "popup", "expandedKeys", "ariaLabel", "ariaLabelledBy", "styleClass", "level", "size", "submenus", "motion", "autoFlip", "tabindex", "itemTemplate", "submenuHeaderTemplate"], outputs: ["expandedKeysChange", "opened", "closed", "itemClick"] }, { kind: "directive", type: UiMotion, selector: "[uiMotion]", inputs: ["uiMotion", "motionDuration", "motionDelay", "motionEasing", "motionEnterEasing", "motionLeaveEasing", "motionDistance", "motionScale", "motionDisabled", "motionOnInsert"], exportAs: ["uiMotion"] }] }); }
202
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiContextMenu, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
203
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.1", type: UiContextMenu, isStandalone: true, selector: "ui-context-menu", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, target: { classPropertyName: "target", publicName: "target", isSignal: true, isRequired: false, transformFunction: null }, global: { classPropertyName: "global", publicName: "global", isSignal: true, isRequired: false, transformFunction: null }, triggerEvent: { classPropertyName: "triggerEvent", publicName: "triggerEvent", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, submenus: { classPropertyName: "submenus", publicName: "submenus", isSignal: true, isRequired: false, transformFunction: null }, motion: { classPropertyName: "motion", publicName: "motion", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { opened: "opened", closed: "closed", itemClick: "itemClick" }, queries: [{ propertyName: "itemTemplateContent", first: true, predicate: ["item"], descendants: true, isSignal: true }, { propertyName: "submenuHeaderTemplateContent", first: true, predicate: ["submenuheader"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "menu", first: true, predicate: ["menu"], descendants: true, isSignal: true }], ngImport: i0, template: "<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"overlayPoint()\"\n [cdkConnectedOverlayOpen]=\"open()\"\n [cdkConnectedOverlayPositions]=\"overlayPositions\"\n (detach)=\"hide()\"\n>\n <!-- Context menu: Escape handled on the container, focus lives on the\n menu items (roving). -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n class=\"ui-context-menu\"\n [uiMotion]=\"'zoom'\"\n [motionDisabled]=\"!motion()\"\n #panelMotion=\"uiMotion\"\n motionOnInsert\n (keydown.escape)=\"onEscape($event)\"\n >\n <!-- Projected #item / #submenuheader templates are forwarded as inputs:\n the embedded menu outlets them with its own item context. -->\n <ui-menu\n #menu\n [items]=\"items()\"\n [level]=\"level()\"\n [size]=\"size()\"\n [motion]=\"motion()\"\n [submenus]=\"submenus()\"\n [styleClass]=\"menuClasses()\"\n [ariaLabel]=\"ariaLabel()\"\n [itemTemplate]=\"itemTemplateContent()\"\n [submenuHeaderTemplate]=\"submenuHeaderTemplateContent()\"\n (itemClick)=\"onItemClick($event)\"\n />\n </div>\n</ng-template>\n", styles: [".ui-context-menu{display:block}\n"], dependencies: [{ 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: "component", type: UiMenu, selector: "ui-menu", inputs: ["items", "popup", "expandedKeys", "ariaLabel", "ariaLabelledBy", "styleClass", "level", "size", "submenus", "motion", "autoFlip", "tabindex", "itemTemplate", "submenuHeaderTemplate"], outputs: ["expandedKeysChange", "opened", "closed", "itemClick"] }, { kind: "directive", type: UiMotion, selector: "[uiMotion]", inputs: ["uiMotion", "motionDuration", "motionDelay", "motionEasing", "motionEnterEasing", "motionLeaveEasing", "motionDistance", "motionScale", "motionDisabled", "motionOnInsert"], exportAs: ["uiMotion"] }] }); }
204
204
  }
205
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiContextMenu, decorators: [{
205
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiContextMenu, decorators: [{
206
206
  type: Component,
207
207
  args: [{ selector: 'ui-context-menu', imports: [OverlayModule, UiMenu, UiMotion], template: "<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"overlayPoint()\"\n [cdkConnectedOverlayOpen]=\"open()\"\n [cdkConnectedOverlayPositions]=\"overlayPositions\"\n (detach)=\"hide()\"\n>\n <!-- Context menu: Escape handled on the container, focus lives on the\n menu items (roving). -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n class=\"ui-context-menu\"\n [uiMotion]=\"'zoom'\"\n [motionDisabled]=\"!motion()\"\n #panelMotion=\"uiMotion\"\n motionOnInsert\n (keydown.escape)=\"onEscape($event)\"\n >\n <!-- Projected #item / #submenuheader templates are forwarded as inputs:\n the embedded menu outlets them with its own item context. -->\n <ui-menu\n #menu\n [items]=\"items()\"\n [level]=\"level()\"\n [size]=\"size()\"\n [motion]=\"motion()\"\n [submenus]=\"submenus()\"\n [styleClass]=\"menuClasses()\"\n [ariaLabel]=\"ariaLabel()\"\n [itemTemplate]=\"itemTemplateContent()\"\n [submenuHeaderTemplate]=\"submenuHeaderTemplateContent()\"\n (itemClick)=\"onItemClick($event)\"\n />\n </div>\n</ng-template>\n", styles: [".ui-context-menu{display:block}\n"] }]
208
208
  }], ctorParameters: () => [], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], target: [{ type: i0.Input, args: [{ isSignal: true, alias: "target", required: false }] }], global: [{ type: i0.Input, args: [{ isSignal: true, alias: "global", required: false }] }], triggerEvent: [{ type: i0.Input, args: [{ isSignal: true, alias: "triggerEvent", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], level: [{ type: i0.Input, args: [{ isSignal: true, alias: "level", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], submenus: [{ type: i0.Input, args: [{ isSignal: true, alias: "submenus", required: false }] }], motion: [{ type: i0.Input, args: [{ isSignal: true, alias: "motion", required: false }] }], opened: [{ type: i0.Output, args: ["opened"] }], closed: [{ type: i0.Output, args: ["closed"] }], itemClick: [{ type: i0.Output, args: ["itemClick"] }], itemTemplateContent: [{ type: i0.ContentChild, args: ['item', { isSignal: true }] }], submenuHeaderTemplateContent: [{ type: i0.ContentChild, args: ['submenuheader', { isSignal: true }] }], menu: [{ type: i0.ViewChild, args: ['menu', { isSignal: true }] }] } });
@@ -216,4 +216,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
216
216
  */
217
217
 
218
218
  export { UiContextMenu };
219
- //# sourceMappingURL=4sh-ui-kit-ui-context-menu.mjs.map
219
+ //# sourceMappingURL=4sh-ui-kit-navigation-ui-context-menu.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"4sh-ui-kit-navigation-ui-context-menu.mjs","sources":["../../../projects/ui-kit/navigation/ui-context-menu/src/lib/ui-context-menu.ts","../../../projects/ui-kit/navigation/ui-context-menu/src/lib/ui-context-menu.html","../../../projects/ui-kit/navigation/ui-context-menu/src/public-api.ts","../../../projects/ui-kit/navigation/ui-context-menu/src/4sh-ui-kit-navigation-ui-context-menu.ts"],"sourcesContent":["import {\n booleanAttribute,\n Component,\n computed,\n contentChild,\n effect,\n ElementRef,\n inject,\n input,\n output,\n signal,\n TemplateRef,\n viewChild,\n} from '@angular/core';\nimport { DOCUMENT } from '@angular/common';\nimport { ConnectedPosition, OverlayModule } from '@angular/cdk/overlay';\nimport { UiSubLevel } from '@4sh/ui-kit/types';\nimport {\n MenuSize,\n MenuSubmenuMode,\n UiMenu,\n UiMenuItem,\n UiMenuItemCommandEvent,\n} from '@4sh/ui-kit/navigation/ui-menu';\nimport { UiMotion } from '@4sh/ui-kit/motion';\nimport { closeOnNavigation } from '@4sh/ui-kit/overlay';\n\n/** Accepted shapes for the `target` input. */\nexport type ContextMenuTarget = HTMLElement | ElementRef<HTMLElement> | null;\n\n/**\n * ui-context-menu — contextual menu opened with a right-click (or any\n * `triggerEvent`), positioned at the pointer.\n *\n * Attach it to an element with `target` (template reference variable), or to\n * the whole document with `global`. The panel is a {@link UiMenu} rendered in\n * a CDK overlay anchored on the click coordinates: same declarative\n * {@link UiMenuItem} model (nested submenus, `command`, `routerLink` / `url`),\n * same keyboard navigation, same `navigation.*` tokens — compact density\n * (`size=\"small\"`) by default.\n *\n * Manual wiring is also possible through the public `show(event)` / `hide()` /\n * `toggle(event)` methods.\n *\n * Customisation: `#item` and `#submenuheader` templates (forwarded to the\n * embedded menu), `styleClass`, `level`, `size`.\n */\n@Component({\n selector: 'ui-context-menu',\n imports: [OverlayModule, UiMenu, UiMotion],\n templateUrl: './ui-context-menu.html',\n styleUrl: './ui-context-menu.scss',\n})\nexport class UiContextMenu {\n /** Menu entries (see {@link UiMenuItem}). */\n items = input<UiMenuItem[]>([]);\n /** Element the context menu is attached to (template reference variable). */\n target = input<ContextMenuTarget>(null);\n /** Attach to the whole document instead of a specific `target`. */\n global = input(false, { transform: booleanAttribute });\n /** DOM event opening the menu on the target (right-click by default). */\n triggerEvent = input<string>('contextmenu');\n /** Accessible name of the menu list. */\n ariaLabel = input<string>();\n /** Extra class(es) applied to the panel (scoped custom styling). */\n styleClass = input<string>();\n /** Color family: `high` (default) or `low` navigation tokens. */\n level = input<UiSubLevel>('high');\n /** Density — compact by default (contextual action menus). */\n size = input<MenuSize>('small');\n /** Group rendering — cascading side panels by default (classic context menus). */\n submenus = input<MenuSubmenuMode>('flyout');\n /** Animate the menu entrance (reduced-motion always wins). */\n motion = input(true, { transform: booleanAttribute });\n\n /** Emitted when the menu opens. */\n opened = output<void>();\n /** Emitted when the menu closes. */\n closed = output<void>();\n /** Emitted when a leaf item is clicked / keyboard-activated. */\n itemClick = output<UiMenuItemCommandEvent>();\n\n /** Custom menuitem content: `<ng-template #item let-item>` (forwarded to the menu). */\n protected readonly itemTemplateContent = contentChild<TemplateRef<unknown>>('item');\n /** Custom group-header content: `<ng-template #submenuheader let-item>` (forwarded). */\n protected readonly submenuHeaderTemplateContent = contentChild<TemplateRef<unknown>>('submenuheader');\n\n /** @ignore Embedded menu (roving focus entry point). */\n private readonly menu = viewChild<UiMenu>('menu');\n /** @ignore */\n private readonly doc = inject(DOCUMENT);\n\n /** @ignore Menu visibility. */\n protected readonly open = signal(false);\n /** @ignore Viewport coordinates the overlay is anchored on (derived from `anchorPage`). */\n protected readonly overlayPoint = signal<{ x: number; y: number }>({ x: 0, y: 0 });\n /** @ignore DOCUMENT coordinates of the anchor: the menu belongs to the content,\n * not to the screen — it must follow the page when it scrolls. */\n private anchorPage = { x: 0, y: 0 };\n\n /** @ignore Below-right of the pointer, flipping on the viewport edges. */\n protected readonly overlayPositions: ConnectedPosition[] = [\n { originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'top' },\n { originX: 'start', originY: 'top', overlayX: 'end', overlayY: 'top' },\n { originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'bottom' },\n { originX: 'start', originY: 'top', overlayX: 'end', overlayY: 'bottom' },\n ];\n\n /** @ignore `_floating` gives the embedded panel its own viewport cap +\n * internal scroll (a wrapper overflow would clip the panel's shadow). */\n protected readonly menuClasses = computed(() =>\n ['_floating', this.styleClass()].filter(Boolean).join(' '),\n );\n\n /** @ignore */\n private readonly resolvedTarget = computed<HTMLElement | null>(() => {\n const target = this.target();\n return target instanceof ElementRef ? target.nativeElement : (target ?? null);\n });\n\n constructor() {\n // The anchor is a point of the page that just left: never carry the menu\n // over to the next one (a `global` context menu outlives every view).\n closeOnNavigation(() => this.hide());\n\n // Bind the trigger listener on the target (or the document when `global`);\n // re-bound whenever target/global/triggerEvent change. Browser only.\n effect((onCleanup) => {\n const trigger = this.triggerEvent();\n const host: EventTarget | null = this.global() ? this.doc : this.resolvedTarget();\n if (!host || typeof window === 'undefined') return;\n const handler = (event: Event) => this.onTrigger(event as MouseEvent);\n host.addEventListener(trigger, handler);\n onCleanup(() => host.removeEventListener(trigger, handler));\n });\n\n // While open, follow the page scroll: the anchor is a DOCUMENT point\n // (page coordinates captured at open), re-projected into the viewport on\n // every scroll — the menu stays where it was opened, like a DOM node.\n effect((onCleanup) => {\n if (!this.open() || typeof window === 'undefined') return;\n const handler = () =>\n this.overlayPoint.set({\n x: this.anchorPage.x - window.scrollX,\n y: this.anchorPage.y - window.scrollY,\n });\n this.doc.addEventListener('scroll', handler, { capture: true, passive: true });\n onCleanup(() => this.doc.removeEventListener('scroll', handler, true));\n });\n\n // While open, close on the PRESS of any pointer outside the overlays —\n // not on release: CDK's outside-click dispatcher attributes the opening\n // right-click's own `auxclick` (fired on release) to its pre-open\n // `pointerdown` and would close the menu as soon as the button is let go.\n effect((onCleanup) => {\n if (!this.open() || typeof window === 'undefined') return;\n const handler = (event: Event) => this.onDocumentPointerdown(event as PointerEvent);\n this.doc.addEventListener('pointerdown', handler, true);\n onCleanup(() => this.doc.removeEventListener('pointerdown', handler, true));\n });\n }\n\n // --- Public API ---------------------------------------------------------\n\n /** Opens the menu at the event's pointer coordinates. */\n show(event: MouseEvent): void {\n const scrollX = typeof window === 'undefined' ? 0 : window.scrollX;\n const scrollY = typeof window === 'undefined' ? 0 : window.scrollY;\n this.anchorPage = { x: event.clientX + scrollX, y: event.clientY + scrollY };\n this.overlayPoint.set({ x: event.clientX, y: event.clientY });\n if (!this.open()) {\n this.open.set(true);\n this.opened.emit();\n }\n this.queueFocusFirst();\n }\n\n /** Closes the menu. */\n hide(): void {\n if (!this.open()) return;\n this.open.set(false);\n this.closed.emit();\n }\n\n /** Toggles the menu at the event's pointer coordinates. */\n toggle(event: MouseEvent): void {\n this.open() ? this.hide() : this.show(event);\n }\n\n // --- Interactions ---------------------------------------------------------\n\n /** @ignore Trigger event on the target/document: hijack it and open at the pointer. */\n private onTrigger(event: MouseEvent): void {\n event.preventDefault();\n event.stopPropagation();\n this.show(event);\n }\n\n /** @ignore A new pointer press outside every overlay closes the menu.\n * Presses inside an overlay (menu panel, flyout side panels) are kept;\n * a press on the attached zone closes then immediately reopens through\n * the trigger handler (native repositioning behavior). */\n private onDocumentPointerdown(event: PointerEvent): void {\n if (event.target instanceof Element && event.target.closest('.cdk-overlay-container')) return;\n this.hide();\n }\n\n /** @ignore */\n protected onEscape(event: Event): void {\n event.stopPropagation();\n this.hide();\n this.resolvedTarget()?.focus?.();\n }\n\n /** @ignore Activation of a leaf item: re-emit and close. */\n protected onItemClick(event: UiMenuItemCommandEvent): void {\n this.itemClick.emit(event);\n this.hide();\n }\n\n /** @ignore Focus the menu's first entry once the overlay is rendered.\n * The overlay attaches after change detection: retry over macrotasks\n * (NOT rAF — it never fires in throttled/background tabs). */\n private queueFocusFirst(attempts = 20): void {\n setTimeout(() => {\n const menu = this.menu();\n if (menu) menu.focusFirst();\n else if (attempts > 0) this.queueFocusFirst(attempts - 1);\n });\n }\n}\n","<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"overlayPoint()\"\n [cdkConnectedOverlayOpen]=\"open()\"\n [cdkConnectedOverlayPositions]=\"overlayPositions\"\n (detach)=\"hide()\"\n>\n <!-- Context menu: Escape handled on the container, focus lives on the\n menu items (roving). -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n class=\"ui-context-menu\"\n [uiMotion]=\"'zoom'\"\n [motionDisabled]=\"!motion()\"\n #panelMotion=\"uiMotion\"\n motionOnInsert\n (keydown.escape)=\"onEscape($event)\"\n >\n <!-- Projected #item / #submenuheader templates are forwarded as inputs:\n the embedded menu outlets them with its own item context. -->\n <ui-menu\n #menu\n [items]=\"items()\"\n [level]=\"level()\"\n [size]=\"size()\"\n [motion]=\"motion()\"\n [submenus]=\"submenus()\"\n [styleClass]=\"menuClasses()\"\n [ariaLabel]=\"ariaLabel()\"\n [itemTemplate]=\"itemTemplateContent()\"\n [submenuHeaderTemplate]=\"submenuHeaderTemplateContent()\"\n (itemClick)=\"onItemClick($event)\"\n />\n </div>\n</ng-template>\n","/*\n * Public API Surface of ui-kit/ui-context-menu\n */\n\nexport * from './lib/ui-context-menu';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;AA8BA;;;;;;;;;;;;;;;;AAgBG;MAOU,aAAa,CAAA;AAmExB,IAAA,WAAA,GAAA;;QAjEA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAe,EAAE;kFAAC;;QAE/B,IAAA,CAAA,MAAM,GAAG,KAAK,CAAoB,IAAI;mFAAC;;QAEvC,IAAA,CAAA,MAAM,GAAG,KAAK,CAAC,KAAK,8EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;QAEtD,IAAA,CAAA,YAAY,GAAG,KAAK,CAAS,aAAa;yFAAC;;AAE3C,QAAA,I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AM,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AExFlD;;AAEG;;ACFH;;AAEG;;;;"}
@@ -4,10 +4,10 @@ import { DOCUMENT, NgTemplateOutlet } from '@angular/common';
4
4
  import { RouterLink, RouterLinkActive } from '@angular/router';
5
5
  import * as i1 from '@angular/cdk/overlay';
6
6
  import { CdkConnectedOverlay, OverlayModule } from '@angular/cdk/overlay';
7
- import { UiIcon } from '@4sh/ui-kit/ui-icon';
7
+ import { UiIcon } from '@4sh/ui-kit/base/ui-icon';
8
8
  import { UiMotion } from '@4sh/ui-kit/motion';
9
9
  import { closeOnNavigation } from '@4sh/ui-kit/overlay';
10
- import { UiSeparator } from '@4sh/ui-kit/ui-separator';
10
+ import { UiSeparator } from '@4sh/ui-kit/informative/ui-separator';
11
11
 
12
12
  /** Process-wide counter for unique menu ids (aria wiring). */
13
13
  let nextUid = 0;
@@ -462,10 +462,10 @@ class UiMenu {
462
462
  queueFocusTabStop() {
463
463
  setTimeout(() => this.focusByKey(this.tabStopKey() ?? undefined));
464
464
  }
465
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiMenu, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
466
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: UiMenu, isStandalone: true, selector: "ui-menu", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, popup: { classPropertyName: "popup", publicName: "popup", isSignal: true, isRequired: false, transformFunction: null }, expandedKeys: { classPropertyName: "expandedKeys", publicName: "expandedKeys", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, submenus: { classPropertyName: "submenus", publicName: "submenus", isSignal: true, isRequired: false, transformFunction: null }, motion: { classPropertyName: "motion", publicName: "motion", isSignal: true, isRequired: false, transformFunction: null }, autoFlip: { classPropertyName: "autoFlip", publicName: "autoFlip", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, itemTemplate: { classPropertyName: "itemTemplate", publicName: "itemTemplate", isSignal: true, isRequired: false, transformFunction: null }, submenuHeaderTemplate: { classPropertyName: "submenuHeaderTemplate", publicName: "submenuHeaderTemplate", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { expandedKeys: "expandedKeysChange", opened: "opened", closed: "closed", itemClick: "itemClick" }, host: { properties: { "style.display": "popup() ? 'contents' : 'block'" } }, queries: [{ propertyName: "itemTemplateContent", first: true, predicate: ["item"], descendants: true, isSignal: true }, { propertyName: "submenuHeaderTemplateContent", first: true, predicate: ["submenuheader"], descendants: true, isSignal: true }, { propertyName: "startTemplate", first: true, predicate: ["start"], descendants: true, isSignal: true }, { propertyName: "endTemplate", first: true, predicate: ["end"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "panelEl", first: true, predicate: ["panel"], descendants: true, isSignal: true }, { propertyName: "childMenus", predicate: UiMenu, descendants: true, isSignal: true }, { propertyName: "connectedOverlays", predicate: CdkConnectedOverlay, descendants: true, isSignal: true }], ngImport: i0, template: "<!-- Menu panel: shared between inline render and the CDK overlay popup. -->\n<ng-template #panelTpl>\n <div\n #panel\n [class]=\"panelClasses()\"\n [attr.id]=\"uid\"\n [uiMotion]=\"'slide-down'\"\n [motionDisabled]=\"!motion()\"\n #panelMotion=\"uiMotion\"\n [motionOnInsert]=\"popup()\"\n >\n @if (startTemplate(); as tpl) {\n <div class=\"ui-menu-start\">\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n </div>\n }\n\n <!-- ARIA menu pattern: keyboard delegated to the role=\"menu\" container, focus\n lives on the items (roving tabindex). -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <ul\n class=\"ui-menu-list\"\n role=\"menu\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n (keydown)=\"onListKeydown($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"nodesTpl\" [ngTemplateOutletContext]=\"{ $implicit: nodes() }\" />\n </ul>\n\n @if (endTemplate(); as tpl) {\n <div class=\"ui-menu-end\">\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n </div>\n }\n </div>\n</ng-template>\n\n<!-- Recursive node list (separator | header section | toggleable group | leaf item). -->\n<ng-template #nodesTpl let-nodes>\n @for (node of nodes; track node.key) {\n @switch (node.kind) {\n @case ('separator') {\n <li class=\"ui-menu-separator\" role=\"separator\" aria-hidden=\"true\">\n <ui-separator></ui-separator>\n </li>\n }\n\n @case ('header') {\n <li class=\"ui-menu-section\" role=\"none\" [class]=\"node.item.styleClass ?? ''\">\n <span class=\"ui-menu-header\" [attr.id]=\"headerId(node)\">\n @if (resolvedSubmenuHeaderTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"{ $implicit: node.item }\" />\n } @else {\n @if (node.item.icon; as icon) {\n <ui-icon class=\"ui-menu-item-icon\" [name]=\"icon\" size=\"sm\" />\n }\n <span class=\"ui-menu-item-label\">{{ node.item.label }}</span>\n }\n </span>\n <ul class=\"ui-menu-group\" role=\"group\" [attr.aria-labelledby]=\"headerId(node)\">\n <ng-container [ngTemplateOutlet]=\"nodesTpl\" [ngTemplateOutletContext]=\"{ $implicit: node.children }\" />\n </ul>\n </li>\n }\n\n @case ('toggle') {\n <li class=\"ui-menu-entry\" role=\"none\" [class]=\"node.item.styleClass ?? ''\">\n <button\n type=\"button\"\n class=\"ui-menu-action _toggle\"\n role=\"menuitem\"\n [attr.data-key]=\"node.key\"\n [attr.aria-expanded]=\"node.expanded\"\n [attr.aria-controls]=\"groupId(node)\"\n [attr.aria-label]=\"node.item.ariaLabel || null\"\n [attr.title]=\"node.item.title || null\"\n [disabled]=\"node.item.disabled ?? false\"\n [attr.tabindex]=\"node.key === tabStopKey() ? tabindex() : -1\"\n (click)=\"onToggleClick(node)\"\n (mouseenter)=\"onEntryHover(node)\"\n (focus)=\"onEntryFocus(node)\"\n >\n @if (resolvedSubmenuHeaderTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"{ $implicit: node.item }\" />\n } @else {\n @if (node.item.icon; as icon) {\n <ui-icon class=\"ui-menu-item-icon\" [name]=\"icon\" size=\"sm\" />\n }\n <span class=\"ui-menu-item-label\">{{ node.item.label }}</span>\n }\n <!-- `_open`, not `_expanded`: a global helper class `._expanded` (width:100%) exists. -->\n <ui-icon class=\"ui-menu-chevron\" [class._open]=\"node.expanded\" name=\"chevron-down\" size=\"sm\" />\n </button>\n <div class=\"ui-menu-collapse\" [class._open]=\"node.expanded\" [attr.id]=\"groupId(node)\" [attr.inert]=\"node.expanded ? null : ''\">\n <div class=\"ui-menu-collapse-inner\">\n <ul class=\"ui-menu-group _nested\" role=\"group\">\n <ng-container [ngTemplateOutlet]=\"nodesTpl\" [ngTemplateOutletContext]=\"{ $implicit: node.children }\" />\n </ul>\n </div>\n </div>\n </li>\n }\n\n @case ('flyout') {\n <li class=\"ui-menu-entry\" role=\"none\" [class]=\"node.item.styleClass ?? ''\" cdkOverlayOrigin #flyoutOrigin=\"cdkOverlayOrigin\">\n <button\n type=\"button\"\n class=\"ui-menu-action _has-sub\"\n [class._sub-open]=\"openFlyoutKey() === node.key\"\n role=\"menuitem\"\n aria-haspopup=\"menu\"\n [attr.data-key]=\"node.key\"\n [attr.aria-expanded]=\"openFlyoutKey() === node.key\"\n [attr.aria-label]=\"node.item.ariaLabel || null\"\n [attr.title]=\"node.item.title || null\"\n [disabled]=\"node.item.disabled ?? false\"\n [attr.tabindex]=\"node.key === tabStopKey() ? tabindex() : -1\"\n (click)=\"onFlyoutClick(node)\"\n (mouseenter)=\"onEntryHover(node)\"\n (focus)=\"onEntryFocus(node)\"\n >\n @if (resolvedItemTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"{ $implicit: node.item }\" />\n } @else {\n @if (node.item.icon; as icon) {\n <ui-icon class=\"ui-menu-item-icon\" [name]=\"icon\" size=\"sm\" />\n }\n <span class=\"ui-menu-item-label\">{{ node.item.label }}</span>\n }\n <ui-icon class=\"ui-menu-chevron\" name=\"chevron-right\" size=\"sm\" />\n </button>\n\n <!-- Cascading side panel: a nested menu in its own overlay, anchored to the item. -->\n <ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"flyoutOrigin\"\n [cdkConnectedOverlayOpen]=\"openFlyoutKey() === node.key\"\n [cdkConnectedOverlayPositions]=\"flyoutPositions\"\n >\n <!-- Flyout: keyboard delegated to the panel, focus lives on the items. -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n class=\"ui-menu-flyout\"\n [uiMotion]=\"'fade'\"\n [motionDisabled]=\"!motion()\"\n #flyoutMotion=\"uiMotion\"\n motionOnInsert\n (keydown)=\"onFlyoutPanelKeydown($event, node)\"\n >\n <ui-menu\n [items]=\"node.item.items ?? []\"\n [level]=\"level()\"\n [size]=\"size()\"\n [motion]=\"motion()\"\n submenus=\"flyout\"\n styleClass=\"_floating\"\n [itemTemplate]=\"resolvedItemTemplate()\"\n [submenuHeaderTemplate]=\"resolvedSubmenuHeaderTemplate()\"\n [ariaLabel]=\"node.item.label\"\n (itemClick)=\"onChildItemClick($event)\"\n />\n </div>\n </ng-template>\n </li>\n }\n\n @case ('item') {\n <li class=\"ui-menu-entry\" role=\"none\" [class]=\"node.item.styleClass ?? ''\">\n <!-- Shared menuitem content (icon + label, or the #item template). -->\n <ng-template #content>\n @if (resolvedItemTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"{ $implicit: node.item }\" />\n } @else {\n @if (node.item.icon; as icon) {\n <ui-icon class=\"ui-menu-item-icon\" [name]=\"icon\" size=\"sm\" />\n }\n <span class=\"ui-menu-item-label\">{{ node.item.label }}</span>\n }\n </ng-template>\n\n @if (node.item.routerLink !== undefined && !node.item.disabled) {\n <a\n class=\"ui-menu-action\"\n role=\"menuitem\"\n [attr.data-key]=\"node.key\"\n [routerLink]=\"node.item.routerLink\"\n [queryParams]=\"node.item.queryParams ?? null\"\n [queryParamsHandling]=\"node.item.queryParamsHandling ?? null\"\n routerLinkActive=\"_active\"\n [routerLinkActiveOptions]=\"{ exact: node.item.routerLinkActiveExact ?? false }\"\n [attr.target]=\"node.item.target || null\"\n [attr.aria-label]=\"node.item.ariaLabel || null\"\n [attr.title]=\"node.item.title || null\"\n [attr.tabindex]=\"node.key === tabStopKey() ? tabindex() : -1\"\n (click)=\"onItemClick($event, node)\"\n (mouseenter)=\"onEntryHover(node)\"\n (focus)=\"onEntryFocus(node)\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n } @else if (node.item.url && !node.item.disabled) {\n <a\n class=\"ui-menu-action\"\n role=\"menuitem\"\n [attr.data-key]=\"node.key\"\n [attr.href]=\"node.item.url\"\n [attr.target]=\"node.item.target || null\"\n [attr.rel]=\"node.item.target === '_blank' ? 'noopener noreferrer' : null\"\n [attr.aria-label]=\"node.item.ariaLabel || null\"\n [attr.title]=\"node.item.title || null\"\n [attr.tabindex]=\"node.key === tabStopKey() ? tabindex() : -1\"\n (click)=\"onItemClick($event, node)\"\n (mouseenter)=\"onEntryHover(node)\"\n (focus)=\"onEntryFocus(node)\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n } @else {\n <button\n type=\"button\"\n class=\"ui-menu-action\"\n role=\"menuitem\"\n [attr.data-key]=\"node.key\"\n [disabled]=\"node.item.disabled ?? false\"\n [attr.aria-label]=\"node.item.ariaLabel || null\"\n [attr.title]=\"node.item.title || null\"\n [attr.tabindex]=\"node.key === tabStopKey() ? tabindex() : -1\"\n (click)=\"onItemClick($event, node)\"\n (mouseenter)=\"onEntryHover(node)\"\n (focus)=\"onEntryFocus(node)\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </button>\n }\n </li>\n }\n }\n }\n</ng-template>\n\n@if (popup()) {\n <ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"overlayOrigin()!\"\n [cdkConnectedOverlayOpen]=\"popupOpen()\"\n [cdkConnectedOverlayPositions]=\"overlayPositions()\"\n [cdkConnectedOverlayHasBackdrop]=\"true\"\n cdkConnectedOverlayBackdropClass=\"cdk-overlay-transparent-backdrop\"\n (backdropClick)=\"hide()\"\n (overlayOutsideClick)=\"onPopupOutsideClick($event)\"\n (detach)=\"hide()\"\n >\n <ng-container [ngTemplateOutlet]=\"panelTpl\" />\n </ng-template>\n} @else {\n <ng-container [ngTemplateOutlet]=\"panelTpl\" />\n}\n", styles: [".ui-menu{display:flex;flex-direction:column;gap:var(--units-2xs);padding:var(--units-sm);box-sizing:border-box;border:var(--stroke-default) solid var(--ui-overlay-stroke, transparent);border-radius:var(--ui-overlay-radius, var(--radius-default));background-color:var(--ui-overlay-surface, var(--global-background-default));box-shadow:var(--ui-overlay-shadow, var(--shadow-default-md));font-family:var(--fontfamily-base);border:none;min-width:13.125rem}.ui-menu .ui-menu-action{min-height:2.5rem;padding:0 var(--units-md);font-size:var(--size-typography-text-default)}.ui-menu .ui-menu-header{min-height:2rem;padding:0 var(--units-md);font-size:var(--size-typography-text-md)}.ui-menu._popup,.ui-menu._floating{width:max-content;max-width:calc(100vw - var(--units-lg));max-height:calc(100vh - var(--units-lg));overflow:auto}.ui-menu-list,.ui-menu-group{display:flex;flex-direction:column;gap:var(--units-2xs);margin:0;padding:0;list-style:none}.ui-menu-group._nested{padding-left:var(--units-default)}.ui-menu-section,.ui-menu-entry{display:flex;flex-direction:column;gap:var(--units-2xs)}.ui-menu._small{min-width:10rem}.ui-menu._small .ui-menu-action{min-height:2rem;padding:0 var(--units-sm);font-size:var(--size-typography-text-md)}.ui-menu._small .ui-menu-header{min-height:1.5rem;padding:0 var(--units-sm);font-size:var(--size-typography-text-sm)}.ui-menu-header{display:flex;align-items:center;gap:var(--units-sm);font-weight:var(--weight-bold);-webkit-user-select:none;user-select:none}.ui-menu-action{display:flex;align-items:center;gap:var(--units-sm);box-sizing:border-box;width:100%;border:none;border-radius:var(--radius-sm);background:none;font-family:var(--fontfamily-base);font-size:var(--size-typography-text-default);font-weight:var(--weight-regular);line-height:1.2;text-align:left;text-decoration:none;cursor:pointer;transition:background-color var(--transition-default) var(--transition-easeinout),color var(--transition-default) var(--transition-easeinout),box-shadow var(--transition-default) var(--transition-easeinout)}.ui-menu-action:focus-visible{outline:none;box-shadow:inset 0 0 0 var(--units-2xs) var(--global-border-focus)}.ui-menu-action:disabled{cursor:not-allowed}.ui-menu-item-icon,.ui-menu-chevron{flex-shrink:0;line-height:0}.ui-menu-item-label{flex:1 1 auto;min-width:0}.ui-menu-chevron{margin-left:auto;transition:rotate var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms)}.ui-menu-chevron._open{rotate:180deg}.ui-menu-flyout{display:block}.ui-menu-collapse{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms),opacity var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms)}.ui-menu-collapse._open{grid-template-rows:1fr;opacity:1}.ui-menu-collapse-inner{min-height:0;overflow:hidden}.ui-menu._no-motion .ui-menu-collapse,.ui-menu._no-motion .ui-menu-chevron{transition:none}.ui-menu-separator{border:none}.ui-menu-start,.ui-menu-end{padding:var(--units-2xs) var(--units-md)}.ui-menu._high .ui-menu-header,.ui-menu._high .ui-menu-action{color:var(--navigation-high-content-default)}.ui-menu._high .ui-menu-action:hover:not(:disabled){background-color:var(--navigation-high-surface-hover);color:var(--navigation-high-content-hover)}.ui-menu._high .ui-menu-action:active:not(:disabled){background-color:var(--navigation-high-surface-active);color:var(--navigation-high-content-active)}.ui-menu._high .ui-menu-action._sub-open:not(:disabled){background-color:var(--navigation-high-surface-hover);color:var(--navigation-high-content-hover)}.ui-menu._high .ui-menu-action._active{background-color:var(--navigation-high-surface-active);color:var(--navigation-high-content-active)}.ui-menu._high .ui-menu-action:disabled{background-color:var(--navigation-high-surface-disabled);color:var(--navigation-high-content-disabled)}.ui-menu._low .ui-menu-header,.ui-menu._low .ui-menu-action{color:var(--navigation-low-content-default)}.ui-menu._low .ui-menu-action:hover:not(:disabled){background-color:var(--navigation-low-surface-hover);color:var(--navigation-low-content-hover)}.ui-menu._low .ui-menu-action:active:not(:disabled){background-color:var(--navigation-low-surface-active);color:var(--navigation-low-content-active)}.ui-menu._low .ui-menu-action._sub-open:not(:disabled){background-color:var(--navigation-low-surface-hover);color:var(--navigation-low-content-hover)}.ui-menu._low .ui-menu-action._active{background-color:var(--navigation-low-surface-active);color:var(--navigation-low-content-active)}.ui-menu._low .ui-menu-action:disabled{background-color:var(--navigation-low-surface-disabled);color:var(--navigation-low-content-disabled)}\n"], dependencies: [{ kind: "component", type: UiMenu, selector: "ui-menu", inputs: ["items", "popup", "expandedKeys", "ariaLabel", "ariaLabelledBy", "styleClass", "level", "size", "submenus", "motion", "autoFlip", "tabindex", "itemTemplate", "submenuHeaderTemplate"], outputs: ["expandedKeysChange", "opened", "closed", "itemClick"] }, { 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.CdkOverlayOrigin, selector: "[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]", exportAs: ["cdkOverlayOrigin"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }, { kind: "directive", type: UiMotion, selector: "[uiMotion]", inputs: ["uiMotion", "motionDuration", "motionDelay", "motionEasing", "motionEnterEasing", "motionLeaveEasing", "motionDistance", "motionScale", "motionDisabled", "motionOnInsert"], exportAs: ["uiMotion"] }, { kind: "component", type: UiSeparator, selector: "ui-separator", inputs: ["label", "orientation", "variant", "size", "labelAlign", "ariaLabel"] }] }); }
465
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiMenu, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
466
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: UiMenu, isStandalone: true, selector: "ui-menu", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, popup: { classPropertyName: "popup", publicName: "popup", isSignal: true, isRequired: false, transformFunction: null }, expandedKeys: { classPropertyName: "expandedKeys", publicName: "expandedKeys", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, submenus: { classPropertyName: "submenus", publicName: "submenus", isSignal: true, isRequired: false, transformFunction: null }, motion: { classPropertyName: "motion", publicName: "motion", isSignal: true, isRequired: false, transformFunction: null }, autoFlip: { classPropertyName: "autoFlip", publicName: "autoFlip", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, itemTemplate: { classPropertyName: "itemTemplate", publicName: "itemTemplate", isSignal: true, isRequired: false, transformFunction: null }, submenuHeaderTemplate: { classPropertyName: "submenuHeaderTemplate", publicName: "submenuHeaderTemplate", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { expandedKeys: "expandedKeysChange", opened: "opened", closed: "closed", itemClick: "itemClick" }, host: { properties: { "style.display": "popup() ? 'contents' : 'block'" } }, queries: [{ propertyName: "itemTemplateContent", first: true, predicate: ["item"], descendants: true, isSignal: true }, { propertyName: "submenuHeaderTemplateContent", first: true, predicate: ["submenuheader"], descendants: true, isSignal: true }, { propertyName: "startTemplate", first: true, predicate: ["start"], descendants: true, isSignal: true }, { propertyName: "endTemplate", first: true, predicate: ["end"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "panelEl", first: true, predicate: ["panel"], descendants: true, isSignal: true }, { propertyName: "childMenus", predicate: UiMenu, descendants: true, isSignal: true }, { propertyName: "connectedOverlays", predicate: CdkConnectedOverlay, descendants: true, isSignal: true }], ngImport: i0, template: "<!-- Menu panel: shared between inline render and the CDK overlay popup. -->\n<ng-template #panelTpl>\n <div\n #panel\n [class]=\"panelClasses()\"\n [attr.id]=\"uid\"\n [uiMotion]=\"'slide-down'\"\n [motionDisabled]=\"!motion()\"\n #panelMotion=\"uiMotion\"\n [motionOnInsert]=\"popup()\"\n >\n @if (startTemplate(); as tpl) {\n <div class=\"ui-menu-start\">\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n </div>\n }\n\n <!-- ARIA menu pattern: keyboard delegated to the role=\"menu\" container, focus\n lives on the items (roving tabindex). -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <ul\n class=\"ui-menu-list\"\n role=\"menu\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n (keydown)=\"onListKeydown($event)\"\n >\n <ng-container [ngTemplateOutlet]=\"nodesTpl\" [ngTemplateOutletContext]=\"{ $implicit: nodes() }\" />\n </ul>\n\n @if (endTemplate(); as tpl) {\n <div class=\"ui-menu-end\">\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n </div>\n }\n </div>\n</ng-template>\n\n<!-- Recursive node list (separator | header section | toggleable group | leaf item). -->\n<ng-template #nodesTpl let-nodes>\n @for (node of nodes; track node.key) {\n @switch (node.kind) {\n @case ('separator') {\n <li class=\"ui-menu-separator\" role=\"separator\" aria-hidden=\"true\">\n <ui-separator></ui-separator>\n </li>\n }\n\n @case ('header') {\n <li class=\"ui-menu-section\" role=\"none\" [class]=\"node.item.styleClass ?? ''\">\n <span class=\"ui-menu-header\" [attr.id]=\"headerId(node)\">\n @if (resolvedSubmenuHeaderTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"{ $implicit: node.item }\" />\n } @else {\n @if (node.item.icon; as icon) {\n <ui-icon class=\"ui-menu-item-icon\" [name]=\"icon\" size=\"sm\" />\n }\n <span class=\"ui-menu-item-label\">{{ node.item.label }}</span>\n }\n </span>\n <ul class=\"ui-menu-group\" role=\"group\" [attr.aria-labelledby]=\"headerId(node)\">\n <ng-container [ngTemplateOutlet]=\"nodesTpl\" [ngTemplateOutletContext]=\"{ $implicit: node.children }\" />\n </ul>\n </li>\n }\n\n @case ('toggle') {\n <li class=\"ui-menu-entry\" role=\"none\" [class]=\"node.item.styleClass ?? ''\">\n <button\n type=\"button\"\n class=\"ui-menu-action _toggle\"\n role=\"menuitem\"\n [attr.data-key]=\"node.key\"\n [attr.aria-expanded]=\"node.expanded\"\n [attr.aria-controls]=\"groupId(node)\"\n [attr.aria-label]=\"node.item.ariaLabel || null\"\n [attr.title]=\"node.item.title || null\"\n [disabled]=\"node.item.disabled ?? false\"\n [attr.tabindex]=\"node.key === tabStopKey() ? tabindex() : -1\"\n (click)=\"onToggleClick(node)\"\n (mouseenter)=\"onEntryHover(node)\"\n (focus)=\"onEntryFocus(node)\"\n >\n @if (resolvedSubmenuHeaderTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"{ $implicit: node.item }\" />\n } @else {\n @if (node.item.icon; as icon) {\n <ui-icon class=\"ui-menu-item-icon\" [name]=\"icon\" size=\"sm\" />\n }\n <span class=\"ui-menu-item-label\">{{ node.item.label }}</span>\n }\n <!-- `_open`, not `_expanded`: a global helper class `._expanded` (width:100%) exists. -->\n <ui-icon class=\"ui-menu-chevron\" [class._open]=\"node.expanded\" name=\"chevron-down\" size=\"sm\" />\n </button>\n <div class=\"ui-menu-collapse\" [class._open]=\"node.expanded\" [attr.id]=\"groupId(node)\" [attr.inert]=\"node.expanded ? null : ''\">\n <div class=\"ui-menu-collapse-inner\">\n <ul class=\"ui-menu-group _nested\" role=\"group\">\n <ng-container [ngTemplateOutlet]=\"nodesTpl\" [ngTemplateOutletContext]=\"{ $implicit: node.children }\" />\n </ul>\n </div>\n </div>\n </li>\n }\n\n @case ('flyout') {\n <li class=\"ui-menu-entry\" role=\"none\" [class]=\"node.item.styleClass ?? ''\" cdkOverlayOrigin #flyoutOrigin=\"cdkOverlayOrigin\">\n <button\n type=\"button\"\n class=\"ui-menu-action _has-sub\"\n [class._sub-open]=\"openFlyoutKey() === node.key\"\n role=\"menuitem\"\n aria-haspopup=\"menu\"\n [attr.data-key]=\"node.key\"\n [attr.aria-expanded]=\"openFlyoutKey() === node.key\"\n [attr.aria-label]=\"node.item.ariaLabel || null\"\n [attr.title]=\"node.item.title || null\"\n [disabled]=\"node.item.disabled ?? false\"\n [attr.tabindex]=\"node.key === tabStopKey() ? tabindex() : -1\"\n (click)=\"onFlyoutClick(node)\"\n (mouseenter)=\"onEntryHover(node)\"\n (focus)=\"onEntryFocus(node)\"\n >\n @if (resolvedItemTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"{ $implicit: node.item }\" />\n } @else {\n @if (node.item.icon; as icon) {\n <ui-icon class=\"ui-menu-item-icon\" [name]=\"icon\" size=\"sm\" />\n }\n <span class=\"ui-menu-item-label\">{{ node.item.label }}</span>\n }\n <ui-icon class=\"ui-menu-chevron\" name=\"chevron-right\" size=\"sm\" />\n </button>\n\n <!-- Cascading side panel: a nested menu in its own overlay, anchored to the item. -->\n <ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"flyoutOrigin\"\n [cdkConnectedOverlayOpen]=\"openFlyoutKey() === node.key\"\n [cdkConnectedOverlayPositions]=\"flyoutPositions\"\n >\n <!-- Flyout: keyboard delegated to the panel, focus lives on the items. -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n class=\"ui-menu-flyout\"\n [uiMotion]=\"'fade'\"\n [motionDisabled]=\"!motion()\"\n #flyoutMotion=\"uiMotion\"\n motionOnInsert\n (keydown)=\"onFlyoutPanelKeydown($event, node)\"\n >\n <ui-menu\n [items]=\"node.item.items ?? []\"\n [level]=\"level()\"\n [size]=\"size()\"\n [motion]=\"motion()\"\n submenus=\"flyout\"\n styleClass=\"_floating\"\n [itemTemplate]=\"resolvedItemTemplate()\"\n [submenuHeaderTemplate]=\"resolvedSubmenuHeaderTemplate()\"\n [ariaLabel]=\"node.item.label\"\n (itemClick)=\"onChildItemClick($event)\"\n />\n </div>\n </ng-template>\n </li>\n }\n\n @case ('item') {\n <li class=\"ui-menu-entry\" role=\"none\" [class]=\"node.item.styleClass ?? ''\">\n <!-- Shared menuitem content (icon + label, or the #item template). -->\n <ng-template #content>\n @if (resolvedItemTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" [ngTemplateOutletContext]=\"{ $implicit: node.item }\" />\n } @else {\n @if (node.item.icon; as icon) {\n <ui-icon class=\"ui-menu-item-icon\" [name]=\"icon\" size=\"sm\" />\n }\n <span class=\"ui-menu-item-label\">{{ node.item.label }}</span>\n }\n </ng-template>\n\n @if (node.item.routerLink !== undefined && !node.item.disabled) {\n <a\n class=\"ui-menu-action\"\n role=\"menuitem\"\n [attr.data-key]=\"node.key\"\n [routerLink]=\"node.item.routerLink\"\n [queryParams]=\"node.item.queryParams ?? null\"\n [queryParamsHandling]=\"node.item.queryParamsHandling ?? null\"\n routerLinkActive=\"_active\"\n [routerLinkActiveOptions]=\"{ exact: node.item.routerLinkActiveExact ?? false }\"\n [attr.target]=\"node.item.target || null\"\n [attr.aria-label]=\"node.item.ariaLabel || null\"\n [attr.title]=\"node.item.title || null\"\n [attr.tabindex]=\"node.key === tabStopKey() ? tabindex() : -1\"\n (click)=\"onItemClick($event, node)\"\n (mouseenter)=\"onEntryHover(node)\"\n (focus)=\"onEntryFocus(node)\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n } @else if (node.item.url && !node.item.disabled) {\n <a\n class=\"ui-menu-action\"\n role=\"menuitem\"\n [attr.data-key]=\"node.key\"\n [attr.href]=\"node.item.url\"\n [attr.target]=\"node.item.target || null\"\n [attr.rel]=\"node.item.target === '_blank' ? 'noopener noreferrer' : null\"\n [attr.aria-label]=\"node.item.ariaLabel || null\"\n [attr.title]=\"node.item.title || null\"\n [attr.tabindex]=\"node.key === tabStopKey() ? tabindex() : -1\"\n (click)=\"onItemClick($event, node)\"\n (mouseenter)=\"onEntryHover(node)\"\n (focus)=\"onEntryFocus(node)\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </a>\n } @else {\n <button\n type=\"button\"\n class=\"ui-menu-action\"\n role=\"menuitem\"\n [attr.data-key]=\"node.key\"\n [disabled]=\"node.item.disabled ?? false\"\n [attr.aria-label]=\"node.item.ariaLabel || null\"\n [attr.title]=\"node.item.title || null\"\n [attr.tabindex]=\"node.key === tabStopKey() ? tabindex() : -1\"\n (click)=\"onItemClick($event, node)\"\n (mouseenter)=\"onEntryHover(node)\"\n (focus)=\"onEntryFocus(node)\"\n >\n <ng-container [ngTemplateOutlet]=\"content\" />\n </button>\n }\n </li>\n }\n }\n }\n</ng-template>\n\n@if (popup()) {\n <ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"overlayOrigin()!\"\n [cdkConnectedOverlayOpen]=\"popupOpen()\"\n [cdkConnectedOverlayPositions]=\"overlayPositions()\"\n [cdkConnectedOverlayHasBackdrop]=\"true\"\n cdkConnectedOverlayBackdropClass=\"cdk-overlay-transparent-backdrop\"\n (backdropClick)=\"hide()\"\n (overlayOutsideClick)=\"onPopupOutsideClick($event)\"\n (detach)=\"hide()\"\n >\n <ng-container [ngTemplateOutlet]=\"panelTpl\" />\n </ng-template>\n} @else {\n <ng-container [ngTemplateOutlet]=\"panelTpl\" />\n}\n", styles: [".ui-menu{display:flex;flex-direction:column;gap:var(--units-2xs);padding:var(--units-sm);box-sizing:border-box;border:var(--stroke-default) solid var(--ui-overlay-stroke, transparent);border-radius:var(--ui-overlay-radius, var(--radius-default));background-color:var(--ui-overlay-surface, var(--global-background-default));box-shadow:var(--ui-overlay-shadow, var(--shadow-default-md));font-family:var(--fontfamily-base);border:none;min-width:13.125rem}.ui-menu .ui-menu-action{min-height:2.5rem;padding:0 var(--units-md);font-size:var(--size-typography-text-default)}.ui-menu .ui-menu-header{min-height:2rem;padding:0 var(--units-md);font-size:var(--size-typography-text-md)}.ui-menu._popup,.ui-menu._floating{width:max-content;max-width:calc(100vw - var(--units-lg));max-height:calc(100vh - var(--units-lg));overflow:auto}.ui-menu-list,.ui-menu-group{display:flex;flex-direction:column;gap:var(--units-2xs);margin:0;padding:0;list-style:none}.ui-menu-group._nested{padding-left:var(--units-default)}.ui-menu-section,.ui-menu-entry{display:flex;flex-direction:column;gap:var(--units-2xs)}.ui-menu._small{min-width:10rem}.ui-menu._small .ui-menu-action{min-height:2rem;padding:0 var(--units-sm);font-size:var(--size-typography-text-md)}.ui-menu._small .ui-menu-header{min-height:1.5rem;padding:0 var(--units-sm);font-size:var(--size-typography-text-sm)}.ui-menu-header{display:flex;align-items:center;gap:var(--units-sm);font-weight:var(--weight-bold);-webkit-user-select:none;user-select:none}.ui-menu-action{display:flex;align-items:center;gap:var(--units-sm);box-sizing:border-box;width:100%;border:none;border-radius:var(--radius-sm);background:none;font-family:var(--fontfamily-base);font-size:var(--size-typography-text-default);font-weight:var(--weight-regular);line-height:1.2;text-align:left;text-decoration:none;cursor:pointer;transition:background-color var(--transition-default) var(--transition-easeinout),color var(--transition-default) var(--transition-easeinout),box-shadow var(--transition-default) var(--transition-easeinout)}.ui-menu-action:focus-visible{outline:none;box-shadow:inset 0 0 0 var(--units-2xs) var(--global-border-focus)}.ui-menu-action:disabled{cursor:not-allowed}.ui-menu-item-icon,.ui-menu-chevron{flex-shrink:0;line-height:0}.ui-menu-item-label{flex:1 1 auto;min-width:0}.ui-menu-chevron{margin-left:auto;transition:rotate var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms)}.ui-menu-chevron._open{rotate:180deg}.ui-menu-flyout{display:block}.ui-menu-collapse{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms),opacity var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms)}.ui-menu-collapse._open{grid-template-rows:1fr;opacity:1}.ui-menu-collapse-inner{min-height:0;overflow:hidden}.ui-menu._no-motion .ui-menu-collapse,.ui-menu._no-motion .ui-menu-chevron{transition:none}.ui-menu-separator{border:none}.ui-menu-start,.ui-menu-end{padding:var(--units-2xs) var(--units-md)}.ui-menu._high .ui-menu-header,.ui-menu._high .ui-menu-action{color:var(--navigation-high-content-default)}.ui-menu._high .ui-menu-action:hover:not(:disabled){background-color:var(--navigation-high-surface-hover);color:var(--navigation-high-content-hover)}.ui-menu._high .ui-menu-action:active:not(:disabled){background-color:var(--navigation-high-surface-active);color:var(--navigation-high-content-active)}.ui-menu._high .ui-menu-action._sub-open:not(:disabled){background-color:var(--navigation-high-surface-hover);color:var(--navigation-high-content-hover)}.ui-menu._high .ui-menu-action._active{background-color:var(--navigation-high-surface-active);color:var(--navigation-high-content-active)}.ui-menu._high .ui-menu-action:disabled{background-color:var(--navigation-high-surface-disabled);color:var(--navigation-high-content-disabled)}.ui-menu._low .ui-menu-header,.ui-menu._low .ui-menu-action{color:var(--navigation-low-content-default)}.ui-menu._low .ui-menu-action:hover:not(:disabled){background-color:var(--navigation-low-surface-hover);color:var(--navigation-low-content-hover)}.ui-menu._low .ui-menu-action:active:not(:disabled){background-color:var(--navigation-low-surface-active);color:var(--navigation-low-content-active)}.ui-menu._low .ui-menu-action._sub-open:not(:disabled){background-color:var(--navigation-low-surface-hover);color:var(--navigation-low-content-hover)}.ui-menu._low .ui-menu-action._active{background-color:var(--navigation-low-surface-active);color:var(--navigation-low-content-active)}.ui-menu._low .ui-menu-action:disabled{background-color:var(--navigation-low-surface-disabled);color:var(--navigation-low-content-disabled)}\n"], dependencies: [{ kind: "component", type: UiMenu, selector: "ui-menu", inputs: ["items", "popup", "expandedKeys", "ariaLabel", "ariaLabelledBy", "styleClass", "level", "size", "submenus", "motion", "autoFlip", "tabindex", "itemTemplate", "submenuHeaderTemplate"], outputs: ["expandedKeysChange", "opened", "closed", "itemClick"] }, { 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.CdkOverlayOrigin, selector: "[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]", exportAs: ["cdkOverlayOrigin"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }, { kind: "directive", type: UiMotion, selector: "[uiMotion]", inputs: ["uiMotion", "motionDuration", "motionDelay", "motionEasing", "motionEnterEasing", "motionLeaveEasing", "motionDistance", "motionScale", "motionDisabled", "motionOnInsert"], exportAs: ["uiMotion"] }, { kind: "component", type: UiSeparator, selector: "ui-separator", inputs: ["label", "orientation", "variant", "size", "labelAlign", "ariaLabel"] }] }); }
467
467
  }
468
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiMenu, decorators: [{
468
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UiMenu, decorators: [{
469
469
  type: Component,
470
470
  args: [{ selector: 'ui-menu', imports: [NgTemplateOutlet, OverlayModule, RouterLink, RouterLinkActive, UiIcon, UiMotion, UiSeparator], host: {
471
471
  '[style.display]': "popup() ? 'contents' : 'block'",
@@ -481,4 +481,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
481
481
  */
482
482
 
483
483
  export { UiMenu };
484
- //# sourceMappingURL=4sh-ui-kit-ui-menu.mjs.map
484
+ //# sourceMappingURL=4sh-ui-kit-navigation-ui-menu.mjs.map