@aeris-ui/core 22.0.0-alpha.10 → 22.0.0-alpha.12

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 (260) hide show
  1. package/README.md +35 -3
  2. package/THIRD_PARTY_LICENSES.md +48 -0
  3. package/fesm2022/aeris-ui-core-accordion.mjs +34 -32
  4. package/fesm2022/aeris-ui-core-accordion.mjs.map +1 -1
  5. package/fesm2022/aeris-ui-core-animate-on-scroll.mjs +3 -3
  6. package/fesm2022/aeris-ui-core-auto-complete.mjs +119 -50
  7. package/fesm2022/aeris-ui-core-auto-complete.mjs.map +1 -1
  8. package/fesm2022/aeris-ui-core-auto-focus.mjs +3 -3
  9. package/fesm2022/aeris-ui-core-avatar.mjs +6 -6
  10. package/fesm2022/aeris-ui-core-badge.mjs +6 -6
  11. package/fesm2022/aeris-ui-core-block-ui.mjs +18 -6
  12. package/fesm2022/aeris-ui-core-block-ui.mjs.map +1 -1
  13. package/fesm2022/aeris-ui-core-breadcrumb.mjs +42 -24
  14. package/fesm2022/aeris-ui-core-breadcrumb.mjs.map +1 -1
  15. package/fesm2022/aeris-ui-core-button-forms.mjs +78 -0
  16. package/fesm2022/aeris-ui-core-button-forms.mjs.map +1 -0
  17. package/fesm2022/aeris-ui-core-button-group.mjs +417 -14
  18. package/fesm2022/aeris-ui-core-button-group.mjs.map +1 -1
  19. package/fesm2022/aeris-ui-core-button.mjs +191 -19
  20. package/fesm2022/aeris-ui-core-button.mjs.map +1 -1
  21. package/fesm2022/aeris-ui-core-card.mjs +18 -18
  22. package/fesm2022/aeris-ui-core-carousel.mjs +81 -19
  23. package/fesm2022/aeris-ui-core-carousel.mjs.map +1 -1
  24. package/fesm2022/aeris-ui-core-cascade-select.mjs +165 -46
  25. package/fesm2022/aeris-ui-core-cascade-select.mjs.map +1 -1
  26. package/fesm2022/aeris-ui-core-chart.mjs +171 -36
  27. package/fesm2022/aeris-ui-core-chart.mjs.map +1 -1
  28. package/fesm2022/aeris-ui-core-checkbox.mjs +191 -22
  29. package/fesm2022/aeris-ui-core-checkbox.mjs.map +1 -1
  30. package/fesm2022/aeris-ui-core-chip.mjs +702 -27
  31. package/fesm2022/aeris-ui-core-chip.mjs.map +1 -1
  32. package/fesm2022/aeris-ui-core-class-names.mjs +3 -3
  33. package/fesm2022/aeris-ui-core-code-block.mjs +57 -7
  34. package/fesm2022/aeris-ui-core-code-block.mjs.map +1 -1
  35. package/fesm2022/aeris-ui-core-color-picker.mjs +1223 -503
  36. package/fesm2022/aeris-ui-core-color-picker.mjs.map +1 -1
  37. package/fesm2022/aeris-ui-core-command-palette.mjs +996 -0
  38. package/fesm2022/aeris-ui-core-command-palette.mjs.map +1 -0
  39. package/fesm2022/aeris-ui-core-compare.mjs +61 -34
  40. package/fesm2022/aeris-ui-core-compare.mjs.map +1 -1
  41. package/fesm2022/aeris-ui-core-confirm-dialog.mjs +68 -38
  42. package/fesm2022/aeris-ui-core-confirm-dialog.mjs.map +1 -1
  43. package/fesm2022/aeris-ui-core-confirm-popup.mjs +46 -38
  44. package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -1
  45. package/fesm2022/aeris-ui-core-context-menu.mjs +94 -43
  46. package/fesm2022/aeris-ui-core-context-menu.mjs.map +1 -1
  47. package/fesm2022/aeris-ui-core-date-picker-aeris-date-picker-input-66V2U8rC.mjs +946 -0
  48. package/fesm2022/aeris-ui-core-date-picker-aeris-date-picker-input-66V2U8rC.mjs.map +1 -0
  49. package/fesm2022/aeris-ui-core-date-picker.mjs +1186 -650
  50. package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -1
  51. package/fesm2022/aeris-ui-core-dialog.mjs +157 -71
  52. package/fesm2022/aeris-ui-core-dialog.mjs.map +1 -1
  53. package/fesm2022/aeris-ui-core-divider.mjs +3 -3
  54. package/fesm2022/aeris-ui-core-drawer.mjs +751 -77
  55. package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -1
  56. package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +14 -6
  57. package/fesm2022/aeris-ui-core-dynamic-dialog.mjs.map +1 -1
  58. package/fesm2022/aeris-ui-core-editor.mjs +847 -202
  59. package/fesm2022/aeris-ui-core-editor.mjs.map +1 -1
  60. package/fesm2022/aeris-ui-core-file-upload.mjs +204 -68
  61. package/fesm2022/aeris-ui-core-file-upload.mjs.map +1 -1
  62. package/fesm2022/aeris-ui-core-filter-service.mjs +3 -3
  63. package/fesm2022/aeris-ui-core-filter-service.mjs.map +1 -1
  64. package/fesm2022/aeris-ui-core-fluid.mjs +5 -5
  65. package/fesm2022/aeris-ui-core-fluid.mjs.map +1 -1
  66. package/fesm2022/aeris-ui-core-focus-trap.mjs +3 -3
  67. package/fesm2022/aeris-ui-core-form-field.mjs +15 -15
  68. package/fesm2022/aeris-ui-core-galleria.mjs +472 -123
  69. package/fesm2022/aeris-ui-core-galleria.mjs.map +1 -1
  70. package/fesm2022/aeris-ui-core-glass.mjs +3 -3
  71. package/fesm2022/aeris-ui-core-icon-field.mjs +12 -12
  72. package/fesm2022/aeris-ui-core-inplace.mjs +56 -14
  73. package/fesm2022/aeris-ui-core-inplace.mjs.map +1 -1
  74. package/fesm2022/aeris-ui-core-input-group.mjs +17 -17
  75. package/fesm2022/aeris-ui-core-input-group.mjs.map +1 -1
  76. package/fesm2022/aeris-ui-core-input-mask.mjs +61 -8
  77. package/fesm2022/aeris-ui-core-input-mask.mjs.map +1 -1
  78. package/fesm2022/aeris-ui-core-input-number.mjs +191 -28
  79. package/fesm2022/aeris-ui-core-input-number.mjs.map +1 -1
  80. package/fesm2022/aeris-ui-core-input-otp.mjs +6 -6
  81. package/fesm2022/aeris-ui-core-input-text.mjs +102 -26
  82. package/fesm2022/aeris-ui-core-input-text.mjs.map +1 -1
  83. package/fesm2022/aeris-ui-core-kbd.mjs +243 -0
  84. package/fesm2022/aeris-ui-core-kbd.mjs.map +1 -0
  85. package/fesm2022/aeris-ui-core-key-filter.mjs +3 -3
  86. package/fesm2022/aeris-ui-core-listbox.mjs +789 -0
  87. package/fesm2022/aeris-ui-core-listbox.mjs.map +1 -0
  88. package/fesm2022/aeris-ui-core-mega-menu.mjs +59 -16
  89. package/fesm2022/aeris-ui-core-mega-menu.mjs.map +1 -1
  90. package/fesm2022/aeris-ui-core-menu.mjs +95 -52
  91. package/fesm2022/aeris-ui-core-menu.mjs.map +1 -1
  92. package/fesm2022/aeris-ui-core-menubar.mjs +103 -34
  93. package/fesm2022/aeris-ui-core-menubar.mjs.map +1 -1
  94. package/fesm2022/aeris-ui-core-message.mjs +48 -14
  95. package/fesm2022/aeris-ui-core-message.mjs.map +1 -1
  96. package/fesm2022/aeris-ui-core-meter-group.mjs +33 -15
  97. package/fesm2022/aeris-ui-core-meter-group.mjs.map +1 -1
  98. package/fesm2022/aeris-ui-core-multi-select.mjs +283 -65
  99. package/fesm2022/aeris-ui-core-multi-select.mjs.map +1 -1
  100. package/fesm2022/aeris-ui-core-navbar.mjs +1407 -0
  101. package/fesm2022/aeris-ui-core-navbar.mjs.map +1 -0
  102. package/fesm2022/aeris-ui-core-order-list.mjs +191 -35
  103. package/fesm2022/aeris-ui-core-order-list.mjs.map +1 -1
  104. package/fesm2022/aeris-ui-core-organization-chart.mjs +48 -14
  105. package/fesm2022/aeris-ui-core-organization-chart.mjs.map +1 -1
  106. package/fesm2022/aeris-ui-core-paginator.mjs +300 -61
  107. package/fesm2022/aeris-ui-core-paginator.mjs.map +1 -1
  108. package/fesm2022/aeris-ui-core-panel.mjs +21 -29
  109. package/fesm2022/aeris-ui-core-panel.mjs.map +1 -1
  110. package/fesm2022/aeris-ui-core-password.mjs +166 -65
  111. package/fesm2022/aeris-ui-core-password.mjs.map +1 -1
  112. package/fesm2022/aeris-ui-core-pick-list.mjs +528 -56
  113. package/fesm2022/aeris-ui-core-pick-list.mjs.map +1 -1
  114. package/fesm2022/aeris-ui-core-popover.mjs +504 -72
  115. package/fesm2022/aeris-ui-core-popover.mjs.map +1 -1
  116. package/fesm2022/aeris-ui-core-progress-bar.mjs +75 -21
  117. package/fesm2022/aeris-ui-core-progress-bar.mjs.map +1 -1
  118. package/fesm2022/aeris-ui-core-progress-spinner.mjs +24 -6
  119. package/fesm2022/aeris-ui-core-progress-spinner.mjs.map +1 -1
  120. package/fesm2022/aeris-ui-core-radio-button.mjs +119 -19
  121. package/fesm2022/aeris-ui-core-radio-button.mjs.map +1 -1
  122. package/fesm2022/aeris-ui-core-rating.mjs +6 -6
  123. package/fesm2022/aeris-ui-core-rating.mjs.map +1 -1
  124. package/fesm2022/aeris-ui-core-scroll-panel.mjs +3 -3
  125. package/fesm2022/aeris-ui-core-scroll-top.mjs +59 -12
  126. package/fesm2022/aeris-ui-core-scroll-top.mjs.map +1 -1
  127. package/fesm2022/aeris-ui-core-select-native.mjs +145 -0
  128. package/fesm2022/aeris-ui-core-select-native.mjs.map +1 -0
  129. package/fesm2022/aeris-ui-core-select.mjs +206 -87
  130. package/fesm2022/aeris-ui-core-select.mjs.map +1 -1
  131. package/fesm2022/aeris-ui-core-sidebar.mjs +1293 -0
  132. package/fesm2022/aeris-ui-core-sidebar.mjs.map +1 -0
  133. package/fesm2022/aeris-ui-core-skeleton.mjs +3 -3
  134. package/fesm2022/aeris-ui-core-slider.mjs +3 -3
  135. package/fesm2022/aeris-ui-core-speed-dial.mjs +34 -13
  136. package/fesm2022/aeris-ui-core-speed-dial.mjs.map +1 -1
  137. package/fesm2022/aeris-ui-core-split-button.mjs +26 -11
  138. package/fesm2022/aeris-ui-core-split-button.mjs.map +1 -1
  139. package/fesm2022/aeris-ui-core-splitter.mjs +35 -20
  140. package/fesm2022/aeris-ui-core-splitter.mjs.map +1 -1
  141. package/fesm2022/aeris-ui-core-stepper.mjs +23 -17
  142. package/fesm2022/aeris-ui-core-stepper.mjs.map +1 -1
  143. package/fesm2022/aeris-ui-core-style-class.mjs +3 -3
  144. package/fesm2022/aeris-ui-core-table.mjs +945 -106
  145. package/fesm2022/aeris-ui-core-table.mjs.map +1 -1
  146. package/fesm2022/aeris-ui-core-tabs.mjs +81 -19
  147. package/fesm2022/aeris-ui-core-tabs.mjs.map +1 -1
  148. package/fesm2022/aeris-ui-core-textarea.mjs +89 -28
  149. package/fesm2022/aeris-ui-core-textarea.mjs.map +1 -1
  150. package/fesm2022/aeris-ui-core-theme-builder.mjs +202 -126
  151. package/fesm2022/aeris-ui-core-theme-builder.mjs.map +1 -1
  152. package/fesm2022/aeris-ui-core-theming.mjs +8 -8
  153. package/fesm2022/aeris-ui-core-theming.mjs.map +1 -1
  154. package/fesm2022/aeris-ui-core-tiered-menu.mjs +94 -43
  155. package/fesm2022/aeris-ui-core-tiered-menu.mjs.map +1 -1
  156. package/fesm2022/aeris-ui-core-timeline.mjs +17 -17
  157. package/fesm2022/aeris-ui-core-timeline.mjs.map +1 -1
  158. package/fesm2022/aeris-ui-core-toast.mjs +73 -44
  159. package/fesm2022/aeris-ui-core-toast.mjs.map +1 -1
  160. package/fesm2022/aeris-ui-core-toggle-switch.mjs +3 -3
  161. package/fesm2022/aeris-ui-core-toolbar.mjs +916 -44
  162. package/fesm2022/aeris-ui-core-toolbar.mjs.map +1 -1
  163. package/fesm2022/aeris-ui-core-tooltip.mjs +6 -6
  164. package/fesm2022/aeris-ui-core-tree-select.mjs +252 -61
  165. package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -1
  166. package/fesm2022/aeris-ui-core-tree-table.mjs +493 -124
  167. package/fesm2022/aeris-ui-core-tree-table.mjs.map +1 -1
  168. package/fesm2022/aeris-ui-core-tree.mjs +165 -27
  169. package/fesm2022/aeris-ui-core-tree.mjs.map +1 -1
  170. package/fesm2022/aeris-ui-core.mjs +632 -12
  171. package/fesm2022/aeris-ui-core.mjs.map +1 -1
  172. package/package.json +29 -1
  173. package/schematics/runtime/theme-builder/aeris-color-derivation.js +1 -1
  174. package/schematics/runtime/theme-builder/aeris-contrast.js +32 -0
  175. package/schematics/runtime/theme-builder/aeris-contrast.js.map +1 -1
  176. package/schematics/runtime/theme-builder/aeris-foundation.js +8 -9
  177. package/schematics/runtime/theme-builder/aeris-foundation.js.map +1 -1
  178. package/schematics/runtime/theme-builder/aeris-semantic-tones.js +8 -21
  179. package/schematics/runtime/theme-builder/aeris-semantic-tones.js.map +1 -1
  180. package/schematics/runtime/theme-builder/aeris-theme-generator.js +6 -0
  181. package/schematics/runtime/theme-builder/aeris-theme-generator.js.map +1 -1
  182. package/schematics/runtime/theme-builder/aeris-theme-resolver.js +64 -91
  183. package/schematics/runtime/theme-builder/aeris-theme-resolver.js.map +1 -1
  184. package/schematics/runtime/theme-builder/aeris-theme-tokens.js +7 -5
  185. package/schematics/runtime/theme-builder/aeris-theme-tokens.js.map +1 -1
  186. package/schematics/runtime/theme-builder/aeris-theme-validation.js +11 -1
  187. package/schematics/runtime/theme-builder/aeris-theme-validation.js.map +1 -1
  188. package/schematics/runtime/theme-builder/aeris-theme.js +81 -10
  189. package/schematics/runtime/theme-builder/aeris-theme.js.map +1 -1
  190. package/styles/_choice-card.scss +93 -0
  191. package/styles/_icon-artwork.scss +14 -0
  192. package/styles/_icon-template.scss +42 -0
  193. package/styles/_selection-icons.scss +12 -0
  194. package/styles/_table-pinning.scss +119 -0
  195. package/styles/aeris.css +35 -12
  196. package/styles/controls.css +149 -11
  197. package/tools/aeris-theme.mjs +3 -3
  198. package/tools/aeris-theme.schema.json +13 -11
  199. package/types/aeris-ui-core-auto-complete.d.ts +12 -0
  200. package/types/aeris-ui-core-block-ui.d.ts +1 -0
  201. package/types/aeris-ui-core-button-forms.d.ts +18 -0
  202. package/types/aeris-ui-core-button-group.d.ts +116 -3
  203. package/types/aeris-ui-core-button.d.ts +52 -4
  204. package/types/aeris-ui-core-carousel.d.ts +12 -0
  205. package/types/aeris-ui-core-cascade-select.d.ts +18 -0
  206. package/types/aeris-ui-core-chart.d.ts +26 -10
  207. package/types/aeris-ui-core-checkbox.d.ts +36 -2
  208. package/types/aeris-ui-core-chip.d.ts +196 -1
  209. package/types/aeris-ui-core-code-block.d.ts +13 -4
  210. package/types/aeris-ui-core-color-picker.d.ts +117 -15
  211. package/types/aeris-ui-core-command-palette.d.ts +267 -0
  212. package/types/aeris-ui-core-compare.d.ts +6 -0
  213. package/types/aeris-ui-core-confirm-dialog.d.ts +9 -1
  214. package/types/aeris-ui-core-context-menu.d.ts +6 -0
  215. package/types/aeris-ui-core-date-picker.d.ts +90 -20
  216. package/types/aeris-ui-core-dialog.d.ts +15 -2
  217. package/types/aeris-ui-core-drawer.d.ts +105 -4
  218. package/types/aeris-ui-core-dynamic-dialog.d.ts +6 -2
  219. package/types/aeris-ui-core-editor.d.ts +8 -1
  220. package/types/aeris-ui-core-file-upload.d.ts +18 -0
  221. package/types/aeris-ui-core-galleria.d.ts +48 -0
  222. package/types/aeris-ui-core-inplace.d.ts +6 -0
  223. package/types/aeris-ui-core-input-mask.d.ts +8 -1
  224. package/types/aeris-ui-core-input-number.d.ts +20 -1
  225. package/types/aeris-ui-core-input-text.d.ts +11 -1
  226. package/types/aeris-ui-core-kbd.d.ts +74 -0
  227. package/types/aeris-ui-core-listbox.d.ts +222 -0
  228. package/types/aeris-ui-core-mega-menu.d.ts +6 -0
  229. package/types/aeris-ui-core-menu.d.ts +6 -0
  230. package/types/aeris-ui-core-menubar.d.ts +16 -0
  231. package/types/aeris-ui-core-message.d.ts +6 -0
  232. package/types/aeris-ui-core-meter-group.d.ts +6 -0
  233. package/types/aeris-ui-core-multi-select.d.ts +30 -0
  234. package/types/aeris-ui-core-navbar.d.ts +208 -0
  235. package/types/aeris-ui-core-order-list.d.ts +24 -0
  236. package/types/aeris-ui-core-organization-chart.d.ts +6 -0
  237. package/types/aeris-ui-core-paginator.d.ts +37 -1
  238. package/types/aeris-ui-core-password.d.ts +18 -0
  239. package/types/aeris-ui-core-pick-list.d.ts +54 -0
  240. package/types/aeris-ui-core-popover.d.ts +80 -5
  241. package/types/aeris-ui-core-progress-bar.d.ts +6 -0
  242. package/types/aeris-ui-core-progress-spinner.d.ts +6 -0
  243. package/types/aeris-ui-core-radio-button.d.ts +24 -2
  244. package/types/aeris-ui-core-rating.d.ts +1 -1
  245. package/types/aeris-ui-core-scroll-top.d.ts +7 -0
  246. package/types/aeris-ui-core-select-native.d.ts +40 -0
  247. package/types/aeris-ui-core-select.d.ts +12 -0
  248. package/types/aeris-ui-core-sidebar.d.ts +220 -0
  249. package/types/aeris-ui-core-splitter.d.ts +3 -4
  250. package/types/aeris-ui-core-table.d.ts +144 -11
  251. package/types/aeris-ui-core-tabs.d.ts +12 -0
  252. package/types/aeris-ui-core-textarea.d.ts +11 -1
  253. package/types/aeris-ui-core-theme-builder.d.ts +31 -296
  254. package/types/aeris-ui-core-tiered-menu.d.ts +6 -0
  255. package/types/aeris-ui-core-toast.d.ts +8 -2
  256. package/types/aeris-ui-core-toolbar.d.ts +213 -3
  257. package/types/aeris-ui-core-tree-select.d.ts +30 -0
  258. package/types/aeris-ui-core-tree-table.d.ts +75 -14
  259. package/types/aeris-ui-core-tree.d.ts +24 -0
  260. package/types/aeris-ui-core.d.ts +140 -3
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aeris-ui-core-listbox.mjs","names":[],"sources":["../../../projects/aeris-ui/listbox/aeris-listbox.ts","../../../projects/aeris-ui/listbox/aeris-listbox.html"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport {\n Component,\n Directive,\n ElementRef,\n TemplateRef,\n DestroyRef,\n afterRenderEffect,\n booleanAttribute,\n computed,\n contentChild,\n forwardRef,\n inject,\n input,\n linkedSignal,\n model,\n output,\n signal,\n viewChild,\n viewChildren,\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport {\n ɵaerisDisplayInvalid,\n filterSelectOptions,\n groupSelectOptions,\n boundarySelectValue,\n nextEnabledSelectValue,\n type AerisSelectOption,\n} from '@aeris-ui/core';\n\nexport type AerisListboxOption = AerisSelectOption;\nexport type AerisListboxSelectionMode = 'single' | 'multiple';\nexport type AerisListboxValue = string | readonly string[] | null;\nexport interface AerisListboxChangeEvent {\n readonly originalEvent: Event;\n readonly value: AerisListboxValue;\n readonly options: readonly AerisListboxOption[];\n}\nexport interface AerisListboxOptionContext {\n readonly $implicit: AerisListboxOption;\n readonly option: AerisListboxOption;\n readonly selected: boolean;\n readonly active: boolean;\n}\nexport interface AerisListboxGroupContext {\n readonly $implicit: string;\n readonly group: string;\n}\n\n@Directive({ selector: 'ng-template[aerisListboxOption]' })\nexport class AerisListboxOptionTemplate {\n readonly template = inject<TemplateRef<AerisListboxOptionContext>>(TemplateRef);\n static ngTemplateContextGuard(\n _directive: AerisListboxOptionTemplate,\n context: unknown,\n ): context is AerisListboxOptionContext {\n return true;\n }\n}\n@Directive({ selector: 'ng-template[aerisListboxGroup]' })\nexport class AerisListboxGroupTemplate {\n readonly template = inject<TemplateRef<AerisListboxGroupContext>>(TemplateRef);\n static ngTemplateContextGuard(\n _directive: AerisListboxGroupTemplate,\n context: unknown,\n ): context is AerisListboxGroupContext {\n return true;\n }\n}\n@Directive({ selector: 'ng-template[aerisListboxEmpty]' })\nexport class AerisListboxEmptyTemplate {\n readonly template = inject<TemplateRef<void>>(TemplateRef);\n}\n@Directive({ selector: 'ng-template[aerisListboxLoading]' })\nexport class AerisListboxLoadingTemplate {\n readonly template = inject<TemplateRef<void>>(TemplateRef);\n}\n\nlet nextListboxId = 0;\n\n@Component({\n selector: 'aeris-listbox',\n imports: [NgTemplateOutlet],\n templateUrl: './aeris-listbox.html',\n styleUrl: './aeris-listbox.scss',\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => AerisListboxComponent),\n multi: true,\n },\n ],\n host: {\n '[attr.data-disabled]': 'isDisabled() || null',\n '[attr.data-invalid]': 'displayInvalid() || null',\n '(focusout)': 'onFocusOut($event)',\n },\n})\nexport class AerisListboxComponent implements ControlValueAccessor {\n readonly options = input<readonly AerisListboxOption[]>([]);\n readonly selectionMode = input<AerisListboxSelectionMode>('single');\n readonly value = model<AerisListboxValue>(null);\n readonly filter = input(false, { transform: booleanAttribute });\n readonly query = model('');\n readonly filterPlaceholder = input('Search options');\n readonly filterAriaLabel = input('Filter options');\n readonly emptyMessage = input('No options available');\n readonly loadingMessage = input('Loading options');\n readonly loading = input(false, { transform: booleanAttribute });\n readonly disabled = input(false, { transform: booleanAttribute });\n readonly required = input(false, { transform: booleanAttribute });\n readonly invalid = input(false, { transform: booleanAttribute });\n readonly touched = input<boolean | null>(null);\n readonly ariaLabel = input<string | undefined>(undefined);\n readonly ariaLabelledBy = input<string | undefined>(undefined);\n readonly ariaDescribedBy = input<string | undefined>(undefined);\n readonly scrollHeight = input('16rem');\n readonly changed = output<AerisListboxChangeEvent>();\n readonly touch = output<void>();\n\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly destroyRef = inject(DestroyRef);\n private readonly formDisabled = signal(false);\n protected readonly list = viewChild<ElementRef<HTMLElement>>('list');\n private readonly optionElements = viewChildren<ElementRef<HTMLElement>>('optionElement');\n protected readonly optionTemplate = contentChild(AerisListboxOptionTemplate);\n protected readonly groupTemplate = contentChild(AerisListboxGroupTemplate);\n protected readonly emptyTemplate = contentChild(AerisListboxEmptyTemplate);\n protected readonly loadingTemplate = contentChild(AerisListboxLoadingTemplate);\n protected readonly id = `aeris-listbox-${nextListboxId++}`;\n protected readonly isDisabled = computed(() => this.disabled() || this.formDisabled());\n protected readonly displayInvalid = computed(() =>\n ɵaerisDisplayInvalid(this.invalid(), this.touched()),\n );\n protected readonly filteredOptions = computed(() =>\n filterSelectOptions(\n this.options(),\n this.filter() ? this.query() : '',\n ['label', 'description', 'group'],\n 'contains',\n ),\n );\n protected readonly orderedOptions = computed(() =>\n groupSelectOptions(this.filteredOptions()).flatMap((group) => group.options),\n );\n private readonly selectedKeys = computed(() => {\n const value = this.value();\n return new Set(typeof value === 'string' ? [value] : (value ?? []));\n });\n protected readonly activeValue = linkedSignal(() => {\n const options = this.orderedOptions();\n return (\n options.find((option) => !option.disabled && this.selectedKeys().has(option.value))?.value ??\n boundarySelectValue(options, 'start')\n );\n });\n protected readonly groups = computed(() => {\n const selected = this.selectedKeys();\n const active = this.activeValue();\n let index = 0;\n return groupSelectOptions(this.filteredOptions()).map((group, groupIndex) => ({\n ...group,\n id: `${this.id}-group-${groupIndex}`,\n context: { $implicit: group.label ?? '', group: group.label ?? '' },\n items: group.options.map((option) => ({\n option,\n id: `${this.id}-option-${index++}`,\n selected: selected.has(option.value),\n active: active === option.value,\n context: {\n $implicit: option,\n option,\n selected: selected.has(option.value),\n active: active === option.value,\n },\n })),\n }));\n });\n protected readonly activeId = computed(\n () =>\n this.groups()\n .flatMap((group) => group.items)\n .find((item) => item.active)?.id ?? null,\n );\n private typeahead = '';\n private typeaheadTimer: ReturnType<typeof setTimeout> | undefined;\n private rangeAnchor: string | null = null;\n private onChange: (value: AerisListboxValue) => void = () => {};\n private onTouched: () => void = () => {};\n\n constructor() {\n afterRenderEffect(() => this.revealActive());\n this.destroyRef.onDestroy(() => clearTimeout(this.typeaheadTimer));\n }\n\n protected revealActive(): void {\n const activeId = this.activeId();\n const list = this.list()?.nativeElement;\n const option = this.optionElements().find(\n (element) => element.nativeElement.id === activeId,\n )?.nativeElement;\n if (!list || !option || list.ownerDocument.activeElement !== list) return;\n // Scroll only the list, never the document or a containing dialog.\n if (option.offsetTop < list.scrollTop) list.scrollTop = option.offsetTop;\n else if (option.offsetTop + option.offsetHeight > list.scrollTop + list.clientHeight) {\n list.scrollTop = option.offsetTop + option.offsetHeight - list.clientHeight;\n }\n }\n\n focus(options?: FocusOptions): void {\n if (!this.isDisabled()) this.list()?.nativeElement.focus(options);\n }\n writeValue(value: unknown): void {\n this.value.set(\n typeof value === 'string'\n ? value\n : Array.isArray(value)\n ? value.filter((item): item is string => typeof item === 'string')\n : null,\n );\n }\n registerOnChange(callback: (value: AerisListboxValue) => void): void {\n this.onChange = callback;\n }\n registerOnTouched(callback: () => void): void {\n this.onTouched = callback;\n }\n setDisabledState(disabled: boolean): void {\n this.formDisabled.set(disabled);\n }\n\n protected onFocusOut(event: FocusEvent): void {\n if (\n event.relatedTarget instanceof Node &&\n this.host.nativeElement.contains(event.relatedTarget)\n )\n return;\n this.onTouched();\n this.touch.emit();\n }\n protected onFilter(event: Event): void {\n this.query.set((event.target as HTMLInputElement).value);\n }\n protected onFilterKeydown(event: KeyboardEvent): void {\n if (event.key === 'ArrowDown' && !event.isComposing) {\n event.preventDefault();\n this.focus();\n }\n }\n protected choose(event: Event, option: AerisListboxOption): void {\n if (this.isDisabled() || this.loading() || option.disabled) return;\n this.focus({ preventScroll: true });\n this.activeValue.set(option.value);\n if (this.selectionMode() === 'multiple') {\n if (event instanceof MouseEvent && event.shiftKey) {\n this.selectRange(event, option.value);\n return;\n }\n const values = new Set(this.selectedKeys());\n if (values.has(option.value)) values.delete(option.value);\n else values.add(option.value);\n this.commit(event, [...values]);\n } else this.commit(event, option.value);\n this.rangeAnchor = option.value;\n }\n protected onKeydown(event: KeyboardEvent): void {\n if (this.isDisabled() || this.loading() || event.isComposing || event.altKey) return;\n const options = this.orderedOptions();\n let next: string | null | undefined;\n switch (event.key) {\n case 'ArrowDown':\n next = nextEnabledSelectValue(options, this.activeValue(), 1);\n break;\n case 'ArrowUp':\n next = nextEnabledSelectValue(options, this.activeValue(), -1);\n break;\n case 'Home':\n next = boundarySelectValue(options, 'start');\n break;\n case 'End':\n next = boundarySelectValue(options, 'end');\n break;\n case ' ':\n case 'Enter': {\n event.preventDefault();\n const option = options.find((option) => option.value === this.activeValue());\n if (option) this.choose(event, option);\n return;\n }\n default: {\n if (\n (event.ctrlKey || event.metaKey) &&\n event.key.toLowerCase() === 'a' &&\n this.selectionMode() === 'multiple'\n ) {\n event.preventDefault();\n const values = new Set(this.selectedKeys());\n const enabled = options.filter((option) => !option.disabled);\n const allSelected = enabled.every((option) => values.has(option.value));\n for (const option of enabled) {\n if (allSelected) values.delete(option.value);\n else values.add(option.value);\n }\n this.commit(event, [...values]);\n } else if (!event.ctrlKey && !event.metaKey && event.key.length === 1) {\n event.preventDefault();\n clearTimeout(this.typeaheadTimer);\n this.typeahead += event.key.toLocaleLowerCase();\n this.typeaheadTimer = setTimeout(() => {\n this.typeahead = '';\n }, 500);\n const query = [...this.typeahead].every((character) => character === this.typeahead[0])\n ? event.key.toLocaleLowerCase()\n : this.typeahead;\n const start = options.findIndex((option) => option.value === this.activeValue());\n const rotated = [...options.slice(start + 1), ...options.slice(0, start + 1)];\n next = rotated.find(\n (option) => !option.disabled && option.label.toLocaleLowerCase().startsWith(query),\n )?.value;\n }\n }\n }\n if (next !== null && next !== undefined) {\n event.preventDefault();\n const previous = this.activeValue();\n this.activeValue.set(next);\n if (event.shiftKey && this.selectionMode() === 'multiple') {\n this.rangeAnchor ??= previous;\n this.selectRange(event, next);\n }\n }\n }\n private selectRange(event: Event, end: string): void {\n const options = this.orderedOptions();\n const startIndex = options.findIndex((option) => option.value === (this.rangeAnchor ?? end));\n const endIndex = options.findIndex((option) => option.value === end);\n const start = startIndex < 0 ? endIndex : startIndex;\n const enabled = new Set(\n options.filter((option) => !option.disabled).map((option) => option.value),\n );\n const retained = [...this.selectedKeys()].filter((value) => !enabled.has(value));\n this.commit(event, [\n ...retained,\n ...options\n .slice(Math.min(start, endIndex), Math.max(start, endIndex) + 1)\n .filter((option) => !option.disabled)\n .map((option) => option.value),\n ]);\n }\n private commit(originalEvent: Event, value: AerisListboxValue): void {\n const active = this.activeValue();\n this.value.set(value);\n this.activeValue.set(active);\n this.onChange(value);\n this.changed.emit({\n originalEvent,\n value,\n options: this.options().filter((option) => this.selectedKeys().has(option.value)),\n });\n }\n}\n\nexport const AerisListbox = [\n AerisListboxComponent,\n AerisListboxOptionTemplate,\n AerisListboxGroupTemplate,\n AerisListboxEmptyTemplate,\n AerisListboxLoadingTemplate,\n] as const;\n","@if (filter()) {\n <div class=\"aeris-listbox__filter\">\n <input\n type=\"search\"\n [value]=\"query()\"\n [placeholder]=\"filterPlaceholder()\"\n [attr.aria-label]=\"filterAriaLabel()\"\n [attr.aria-controls]=\"id\"\n [disabled]=\"isDisabled()\"\n (input)=\"onFilter($event)\"\n (keydown)=\"onFilterKeydown($event)\"\n />\n </div>\n}\n<div\n #list\n class=\"aeris-listbox__list\"\n role=\"listbox\"\n [id]=\"id\"\n [tabindex]=\"isDisabled() ? -1 : 0\"\n [style.max-height]=\"scrollHeight()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n [attr.aria-describedby]=\"ariaDescribedBy()\"\n [attr.aria-multiselectable]=\"selectionMode() === 'multiple' ? 'true' : null\"\n [attr.aria-disabled]=\"isDisabled() || null\"\n [attr.aria-required]=\"required() || null\"\n [attr.aria-invalid]=\"displayInvalid() || null\"\n [attr.aria-busy]=\"loading() || null\"\n [attr.aria-activedescendant]=\"activeId()\"\n (focus)=\"revealActive()\"\n (keydown)=\"onKeydown($event)\"\n>\n @for (group of groups(); track group.label) {\n <div\n [attr.role]=\"group.label ? 'group' : 'presentation'\"\n [attr.aria-labelledby]=\"group.label ? group.id : null\"\n >\n @if (group.label) {\n <div class=\"aeris-listbox__group\" [id]=\"group.id\">\n @if (groupTemplate(); as custom) {\n <ng-container\n [ngTemplateOutlet]=\"custom.template\"\n [ngTemplateOutletContext]=\"group.context\"\n />\n } @else {\n {{ group.label }}\n }\n </div>\n }\n @for (item of group.items; track item.option.value) {\n <div\n #optionElement\n class=\"aeris-listbox__option\"\n role=\"option\"\n [id]=\"item.id\"\n [attr.aria-label]=\"item.option.label\"\n [attr.aria-selected]=\"item.selected\"\n [attr.aria-disabled]=\"item.option.disabled || null\"\n [attr.aria-describedby]=\"item.option.description ? item.id + '-description' : null\"\n [attr.data-active]=\"item.active || null\"\n [attr.data-selected]=\"item.selected || null\"\n [attr.data-disabled]=\"item.option.disabled || null\"\n (click)=\"choose($event, item.option)\"\n >\n @if (optionTemplate(); as custom) {\n <ng-container\n [ngTemplateOutlet]=\"custom.template\"\n [ngTemplateOutletContext]=\"item.context\"\n />\n @if (item.option.description) {\n <span class=\"aeris-listbox__sr-only\" [id]=\"item.id + '-description'\">{{\n item.option.description\n }}</span>\n }\n } @else {\n <span class=\"aeris-listbox__label\">{{ item.option.label }}</span>\n @if (item.option.description) {\n <span class=\"aeris-listbox__description\" [id]=\"item.id + '-description'\">{{\n item.option.description\n }}</span>\n }\n }\n </div>\n }\n </div>\n }\n</div>\n@if (loading()) {\n <div class=\"aeris-listbox__status\" role=\"status\">\n @if (loadingTemplate(); as custom) {\n <ng-container [ngTemplateOutlet]=\"custom.template\" />\n } @else {\n {{ loadingMessage() }}\n }\n </div>\n} @else if (!filteredOptions().length) {\n <div class=\"aeris-listbox__status\" role=\"status\">\n @if (emptyTemplate(); as custom) {\n <ng-container [ngTemplateOutlet]=\"custom.template\" />\n } @else {\n {{ emptyMessage() }}\n }\n </div>\n}\n"],"mappings":";;;;;AAmDA,IAAa,6BAAb,MAAa,2BAA0B;CAC5B,WAAW,OAA+C,WAAW;CAC9E,OAAO,uBACL,YACA,SAAgB;EAEhB,OAAO;CACT;CAPW,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAA0B,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAA1B,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAA0B,cAAA;EAAA,UAAA;EAAA,UAAA;CAAA,CAAA;;AAA1B,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAA0B,YAAA,CAAA;EADtC,MAAA;EAAU,MAAA,CAAA,EAAE,UAAU,kCAAiC,CAAE;;;AAW1D,IAAa,4BAAb,MAAa,0BAAyB;CAC3B,WAAW,OAA8C,WAAW;CAC7E,OAAO,uBACL,YACA,SAAgB;EAEhB,OAAO;CACT;CAPW,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;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AA,GAAA;GAAA,MAAA,CAAA,GAAA,iBACzB,yBAAyB,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,iBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBACvB,2BAA2B,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA;AA0O/E,MAAa,eAAe;CAC1B;CACA;CACA;CACA;CACA;AACQ"}
@@ -1,7 +1,7 @@
1
1
  import { NgTemplateOutlet } from "@angular/common";
2
2
  import * as i0 from "@angular/core";
3
3
  import { Component, Directive, ElementRef, Injector, TemplateRef, afterNextRender, booleanAttribute, computed, contentChild, effect, inject, input, output, signal, viewChildren } from "@angular/core";
4
- import { ɵregisterAerisOverlay, ɵunregisterAerisOverlay } from "@aeris-ui/core";
4
+ import { ɵAerisIcon, ɵregisterAerisOverlay, ɵunregisterAerisOverlay } from "@aeris-ui/core";
5
5
  var AerisMegaMenuItemTemplate = class AerisMegaMenuItemTemplate {
6
6
  template = inject(TemplateRef);
7
7
  static ngTemplateContextGuard(_directive, context) {
@@ -9,7 +9,7 @@ var AerisMegaMenuItemTemplate = class AerisMegaMenuItemTemplate {
9
9
  }
10
10
  static ɵfac = i0.ɵɵngDeclareFactory({
11
11
  minVersion: "12.0.0",
12
- version: "22.2.2",
12
+ version: "22.2.4",
13
13
  ngImport: i0,
14
14
  type: AerisMegaMenuItemTemplate,
15
15
  deps: [],
@@ -17,7 +17,7 @@ var AerisMegaMenuItemTemplate = class AerisMegaMenuItemTemplate {
17
17
  });
18
18
  static ɵdir = i0.ɵɵngDeclareDirective({
19
19
  minVersion: "14.0.0",
20
- version: "22.2.2",
20
+ version: "22.2.4",
21
21
  type: AerisMegaMenuItemTemplate,
22
22
  isStandalone: true,
23
23
  selector: "ng-template[aerisMegaMenuItem]",
@@ -26,7 +26,7 @@ var AerisMegaMenuItemTemplate = class AerisMegaMenuItemTemplate {
26
26
  };
27
27
  i0.ɵɵngDeclareClassMetadata({
28
28
  minVersion: "12.0.0",
29
- version: "22.2.2",
29
+ version: "22.2.4",
30
30
  ngImport: i0,
31
31
  type: AerisMegaMenuItemTemplate,
32
32
  decorators: [{
@@ -36,6 +36,7 @@ i0.ɵɵngDeclareClassMetadata({
36
36
  });
37
37
  let nextMegaMenuId = 0;
38
38
  var AerisMegaMenu = class AerisMegaMenu {
39
+ submenuIconTemplate = input(...ngDevMode ? [void 0, { debugName: "submenuIconTemplate" }] : /* istanbul ignore next */ []);
39
40
  host = inject(ElementRef);
40
41
  injector = inject(Injector);
41
42
  generatedId = `aeris-mega-menu-${++nextMegaMenuId}`;
@@ -352,7 +353,7 @@ var AerisMegaMenu = class AerisMegaMenu {
352
353
  }
353
354
  static ɵfac = i0.ɵɵngDeclareFactory({
354
355
  minVersion: "12.0.0",
355
- version: "22.2.2",
356
+ version: "22.2.4",
356
357
  ngImport: i0,
357
358
  type: AerisMegaMenu,
358
359
  deps: [],
@@ -360,11 +361,18 @@ var AerisMegaMenu = class AerisMegaMenu {
360
361
  });
361
362
  static ɵcmp = i0.ɵɵngDeclareComponent({
362
363
  minVersion: "17.0.0",
363
- version: "22.2.2",
364
+ version: "22.2.4",
364
365
  type: AerisMegaMenu,
365
366
  isStandalone: true,
366
367
  selector: "aeris-mega-menu",
367
368
  inputs: {
369
+ submenuIconTemplate: {
370
+ classPropertyName: "submenuIconTemplate",
371
+ publicName: "submenuIconTemplate",
372
+ isSignal: true,
373
+ isRequired: false,
374
+ transformFunction: null
375
+ },
368
376
  id: {
369
377
  classPropertyName: "id",
370
378
  publicName: "id",
@@ -483,9 +491,20 @@ var AerisMegaMenu = class AerisMegaMenu {
483
491
  <span class="aeris-mega-menu__badge">{{ item.badge }}</span>
484
492
  }
485
493
  @if (hasPanel) {
486
- <svg class="aeris-mega-menu__chevron" viewBox="0 0 20 20" aria-hidden="true">
487
- <path d="m6.5 8 3.5 4 3.5-4" />
488
- </svg>
494
+ @if (submenuIconTemplate(); as customIcon) {
495
+ <span
496
+ class="aeris-custom-icon aeris-mega-menu__chevron"
497
+ aria-hidden="true"
498
+ data-aeris-custom-icon
499
+ ><ng-container [ngTemplateOutlet]="customIcon"
500
+ /></span>
501
+ } @else {
502
+ <span
503
+ aerisInternalIcon="chevron"
504
+ class="aeris-mega-menu__chevron"
505
+ aria-hidden="true"
506
+ ></span>
507
+ }
489
508
  }
490
509
  </ng-template>
491
510
 
@@ -692,8 +711,13 @@ var AerisMegaMenu = class AerisMegaMenu {
692
711
  </nav>
693
712
  `,
694
713
  isInline: true,
695
- styles: [":host{--_aeris-mega-menu-item-radius: var( --aeris-mega-menu-item-radius, var( --aeris-radius-item, max( 0px, calc( var( --aeris-mega-menu-radius, var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem)) ) - var(--aeris-mega-menu-padding, var(--aeris-overlay-padding, .375rem)) - 1px ) ) ) );display:block;color:var(--aeris-mega-menu-color, var(--aeris-text, #111111))}.aeris-mega-menu__nav{position:relative}.aeris-mega-menu__root{display:flex;align-items:stretch;gap:var(--aeris-mega-menu-gap, calc(var(--aeris-density-gap, .5rem) * .5));margin:0;padding:var(--aeris-mega-menu-padding, var(--aeris-overlay-padding, .375rem));border:1px solid var(--aeris-mega-menu-border, var(--aeris-border));border-radius:var(--aeris-mega-menu-radius, var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem)));background:var(--aeris-mega-menu-background, var(--aeris-surface, #fff));box-shadow:var(--aeris-mega-menu-shadow, 0 1rem 2.5rem rgba(0, 0, 0, .08));list-style:none}:host([data-orientation=vertical]) .aeris-mega-menu__root{width:min(100%,var(--aeris-mega-menu-vertical-width, 18rem));flex-direction:column}.aeris-mega-menu__root-item{position:relative}.aeris-mega-menu__trigger,.aeris-mega-menu__panel-item{width:100%;min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:var(--aeris-mega-menu-item-gap, var(--aeris-density-gap, .5rem));border:0;background:transparent;color:inherit;font:inherit;text-align:start;text-decoration:none;cursor:pointer;transition:background-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}.aeris-mega-menu__trigger{min-height:var(--aeris-mega-menu-trigger-height, var(--aeris-action-height, var(--aeris-control-height, 2.625rem)));border-radius:var(--_aeris-mega-menu-item-radius);padding:var(--aeris-mega-menu-trigger-padding, 0 var(--aeris-action-padding-inline, 1.0625rem));font-size:var(--aeris-mega-menu-font-size, var(--aeris-action-font-size, .8125rem));font-weight:var(--aeris-action-font-weight, 600)}.aeris-mega-menu__panel-item{min-height:var(--aeris-mega-menu-panel-item-height, var(--aeris-item-height, 2.5rem));border-radius:var(--aeris-mega-menu-panel-item-radius, var(--_aeris-mega-menu-item-radius));padding:var(--aeris-mega-menu-panel-item-padding, var(--aeris-item-padding-y, .5rem) var(--aeris-item-padding-x, .75rem));font-size:var(--aeris-mega-menu-panel-font-size, var(--aeris-item-font-size, .875rem))}.aeris-mega-menu__root-item[data-open=true]>.aeris-mega-menu__trigger{background:var(--aeris-mega-menu-item-hover-background, var(--aeris-interactive-hover, var(--aeris-surface-2, #f3f3f3)));color:var(--aeris-mega-menu-item-hover-color, var(--aeris-text, #111111))}@media(hover:hover){.aeris-mega-menu__trigger:hover,.aeris-mega-menu__panel-item:hover{background:var(--aeris-mega-menu-item-hover-background, var(--aeris-interactive-hover, var(--aeris-surface-2, #f3f3f3)));color:var(--aeris-mega-menu-item-hover-color, var(--aeris-text, #111111))}}.aeris-mega-menu__trigger:focus-visible,.aeris-mega-menu__panel-item:focus-visible{outline:var(--aeris-focus-ring-width, 3px) solid color-mix(in srgb,var(--aeris-focus, var(--aeris-primary, #111111)) 38%,transparent);outline-offset:var(--aeris-focus-ring-offset, 2px)}.aeris-mega-menu__trigger:disabled,.aeris-mega-menu__panel-item:disabled,.aeris-mega-menu__trigger[aria-disabled=true],.aeris-mega-menu__panel-item[aria-disabled=true]{cursor:not-allowed;opacity:var(--aeris-mega-menu-disabled-opacity, .52)}.aeris-mega-menu__copy{min-width:0;display:grid;gap:calc(var(--aeris-density-gap, .5rem) * .25)}.aeris-mega-menu__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aeris-mega-menu__description{color:var(--aeris-mega-menu-description-color, var(--aeris-text-2, #454545));font-size:var(--aeris-font-size-sm, .75rem);font-weight:var(--aeris-font-weight-semibold, 600);line-height:var(--aeris-line-height-tight, 1.25)}.aeris-mega-menu__icon,.aeris-mega-menu__chevron{inline-size:var(--aeris-mega-menu-icon-size, var(--aeris-icon-size, 1rem));block-size:var(--aeris-mega-menu-icon-size, var(--aeris-icon-size, 1rem));display:inline-grid;place-items:center;color:var(--aeris-mega-menu-icon-color, currentColor)}.aeris-mega-menu__chevron{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2;transition:transform var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}.aeris-mega-menu__root-item[data-open=true] .aeris-mega-menu__chevron{transform:rotate(180deg)}.aeris-mega-menu__badge{inline-size:max-content;min-inline-size:1.35rem;max-inline-size:var(--aeris-mega-menu-badge-max-width, min(7rem, 36vw));justify-self:end;padding:.125rem .4rem;border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-mega-menu-badge-background, color-mix(in srgb, var(--aeris-primary, #111111) 15%, transparent));color:var(--aeris-mega-menu-badge-color, var(--aeris-primary-text, #111111));font-size:var(--aeris-font-size-sm, .75rem);font-weight:var(--aeris-font-weight-bold, 700);overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap}.aeris-mega-menu__panel{position:absolute;z-index:var(--aeris-mega-menu-z-index, 1040);inset-block-start:calc(100% + var(--aeris-mega-menu-panel-offset, .45rem));inset-inline-start:0;width:min(var(--aeris-mega-menu-panel-width, 44rem),100vw - 2rem);padding:var(--aeris-mega-menu-panel-padding, calc(var(--aeris-item-padding-x, .75rem) * 1.35));border:1px solid var(--aeris-mega-menu-panel-border, var(--aeris-border));border-radius:var(--aeris-mega-menu-panel-radius, var(--aeris-radius-overlay, var(--aeris-radius-md, .6875rem)));background:var(--aeris-mega-menu-panel-background, var(--aeris-surface, #fff));box-shadow:var(--aeris-mega-menu-panel-shadow, var(--aeris-overlay-shadow, var(--aeris-shadow-lg, 0 18px 48px rgba(0, 0, 0, .18))));transform-origin:top center}:host([data-orientation=vertical]) .aeris-mega-menu__panel{--aeris-overlay-motion-x: calc(var(--aeris-motion-distance, .25rem) * -1);--aeris-overlay-motion-y: 0;inset-block-start:0;inset-inline-start:calc(100% + var(--aeris-mega-menu-panel-offset, .45rem));transform-origin:center left}.aeris-mega-menu__panel-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(11rem,100%),1fr));gap:var(--aeris-mega-menu-panel-gap, calc(var(--aeris-density-gap, .5rem) + .35rem))}.aeris-mega-menu__group{min-width:0;display:grid;align-content:start;gap:var(--aeris-density-gap, .5rem)}.aeris-mega-menu__group-header{display:grid;gap:calc(var(--aeris-density-gap, .5rem) * .3);padding:0 calc(var(--aeris-item-padding-x, .75rem) * .6)}.aeris-mega-menu__group-header h3,.aeris-mega-menu__group-header p{margin:0}.aeris-mega-menu__group-header h3{color:var(--aeris-mega-menu-group-title-color, var(--aeris-text, #111111));font-size:var(--aeris-font-size-md, .8125rem);font-weight:var(--aeris-font-weight-bold, 700);letter-spacing:.04em;text-transform:uppercase}.aeris-mega-menu__group-header p{color:var(--aeris-mega-menu-description-color, var(--aeris-text-2, #454545));font-size:var(--aeris-font-size-sm, .75rem)}.aeris-mega-menu__panel-list{display:grid;gap:calc(var(--aeris-density-gap, .5rem) * .25);margin:0;padding:0;list-style:none}.aeris-mega-menu__panel-list .aeris-mega-menu__panel-list{margin-block-start:.25rem;padding-inline-start:.75rem;border-inline-start:1px solid var(--aeris-mega-menu-border, var(--aeris-border))}.aeris-mega-menu__separator{block-size:1px;margin:.35rem .5rem;background:var(--aeris-mega-menu-border, var(--aeris-border))}:host([data-size=sm]){--aeris-mega-menu-trigger-height: calc( var(--aeris-action-height, var(--aeris-control-height, 2.625rem)) - .5rem );--aeris-mega-menu-trigger-padding: 0 calc(var(--aeris-action-padding-inline, 1.0625rem) - .25rem);--aeris-mega-menu-font-size: var(--aeris-font-size-sm, .75rem);--aeris-mega-menu-panel-item-height: calc(var(--aeris-item-height, 2.5rem) - .375rem);--aeris-mega-menu-panel-font-size: var(--aeris-font-size-md, .8125rem);--aeris-mega-menu-icon-size: var(--aeris-icon-size, 1rem)}:host([data-size=lg]){--aeris-mega-menu-trigger-height: calc( var(--aeris-action-height, var(--aeris-control-height, 2.625rem)) + .5rem );--aeris-mega-menu-trigger-padding: 0 calc(var(--aeris-action-padding-inline, 1.0625rem) + .25rem);--aeris-mega-menu-font-size: var(--aeris-font-size-lg, .875rem);--aeris-mega-menu-panel-item-height: calc(var(--aeris-item-height, 2.5rem) + .25rem);--aeris-mega-menu-panel-font-size: var(--aeris-font-size-xl, .9375rem);--aeris-mega-menu-icon-size: var(--aeris-icon-size, 1rem)}@media(max-width:44rem){.aeris-mega-menu__root{flex-direction:column}.aeris-mega-menu__panel,:host([data-orientation=vertical]) .aeris-mega-menu__panel{--aeris-overlay-motion-x: 0;--aeris-overlay-motion-y: calc(var(--aeris-motion-distance, .25rem) * -1);position:static;width:100%;margin-block-start:.35rem;transform-origin:top center}}@media(prefers-reduced-motion:reduce){.aeris-mega-menu__chevron,.aeris-mega-menu__trigger,.aeris-mega-menu__panel-item{transition:none}}\n"],
714
+ styles: [":host{--_aeris-mega-menu-item-radius: var( --aeris-mega-menu-item-radius, var( --aeris-radius-item, max( 0px, calc( var( --aeris-mega-menu-radius, var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem)) ) - var(--aeris-mega-menu-padding, var(--aeris-overlay-padding, .375rem)) - 1px ) ) ) );display:block;color:var(--aeris-mega-menu-color, var(--aeris-text, #111111))}.aeris-mega-menu__nav{position:relative}.aeris-mega-menu__root{display:flex;align-items:stretch;gap:var(--aeris-mega-menu-gap, calc(var(--aeris-density-gap, .5rem) * .5));margin:0;padding:var(--aeris-mega-menu-padding, var(--aeris-overlay-padding, .375rem));border:1px solid var(--aeris-mega-menu-border, var(--aeris-border));border-radius:var(--aeris-mega-menu-radius, var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem)));background:var(--aeris-mega-menu-background, var(--aeris-surface, #fff));box-shadow:var(--aeris-mega-menu-shadow, 0 1rem 2.5rem rgba(0, 0, 0, .08));list-style:none}:host([data-orientation=vertical]) .aeris-mega-menu__root{width:min(100%,var(--aeris-mega-menu-vertical-width, 18rem));flex-direction:column}.aeris-mega-menu__root-item{position:relative}.aeris-mega-menu__trigger,.aeris-mega-menu__panel-item{width:100%;min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:var(--aeris-mega-menu-item-gap, var(--aeris-density-gap, .5rem));border:0;background:transparent;color:inherit;font:inherit;text-align:start;text-decoration:none;cursor:pointer;transition:background-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}.aeris-mega-menu__trigger{min-height:var(--aeris-mega-menu-trigger-height, var(--aeris-action-height, var(--aeris-control-height, 2.625rem)));border-radius:var(--_aeris-mega-menu-item-radius);padding:var(--aeris-mega-menu-trigger-padding, 0 var(--aeris-action-padding-inline, 1.0625rem));font-size:var(--aeris-mega-menu-font-size, var(--aeris-action-font-size, .8125rem));font-weight:var(--aeris-action-font-weight, 600)}.aeris-mega-menu__panel-item{min-height:var(--aeris-mega-menu-panel-item-height, var(--aeris-item-height, 2.5rem));border-radius:var(--aeris-mega-menu-panel-item-radius, var(--_aeris-mega-menu-item-radius));padding:var(--aeris-mega-menu-panel-item-padding, var(--aeris-item-padding-y, .5rem) var(--aeris-item-padding-x, .75rem));font-size:var(--aeris-mega-menu-panel-font-size, var(--aeris-item-font-size, .875rem))}.aeris-mega-menu__root-item[data-open=true]>.aeris-mega-menu__trigger{background:var(--aeris-mega-menu-item-hover-background, var(--aeris-interactive-hover, var(--aeris-surface-2, #f3f3f3)));color:var(--aeris-mega-menu-item-hover-color, var(--aeris-text, #111111))}@media(hover:hover){.aeris-mega-menu__trigger:hover,.aeris-mega-menu__panel-item:hover{background:var(--aeris-mega-menu-item-hover-background, var(--aeris-interactive-hover, var(--aeris-surface-2, #f3f3f3)));color:var(--aeris-mega-menu-item-hover-color, var(--aeris-text, #111111))}}.aeris-mega-menu__trigger:focus-visible,.aeris-mega-menu__panel-item:focus-visible{outline:var(--aeris-focus-ring-width, 3px) solid color-mix(in srgb,var(--aeris-focus, var(--aeris-primary, #111111)) 38%,transparent);outline-offset:var(--aeris-focus-ring-offset, 2px)}.aeris-mega-menu__trigger:disabled,.aeris-mega-menu__panel-item:disabled,.aeris-mega-menu__trigger[aria-disabled=true],.aeris-mega-menu__panel-item[aria-disabled=true]{cursor:not-allowed;opacity:var(--aeris-mega-menu-disabled-opacity, .52)}.aeris-mega-menu__copy{min-width:0;display:grid;gap:calc(var(--aeris-density-gap, .5rem) * .25)}.aeris-mega-menu__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aeris-mega-menu__description{color:var(--aeris-mega-menu-description-color, var(--aeris-text-2, #454545));font-size:var(--aeris-font-size-sm, .75rem);font-weight:var(--aeris-font-weight-semibold, 600);line-height:var(--aeris-line-height-tight, 1.25)}.aeris-mega-menu__icon,.aeris-mega-menu__chevron{inline-size:var(--aeris-mega-menu-icon-size, var(--aeris-icon-size, 1rem));block-size:var(--aeris-mega-menu-icon-size, var(--aeris-icon-size, 1rem));display:inline-grid;place-items:center;color:var(--aeris-mega-menu-icon-color, currentColor)}.aeris-mega-menu__chevron{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2;transition:transform var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}.aeris-mega-menu__root-item[data-open=true] .aeris-mega-menu__chevron{transform:rotate(180deg)}.aeris-mega-menu__badge{inline-size:max-content;min-inline-size:1.35rem;max-inline-size:var(--aeris-mega-menu-badge-max-width, min(7rem, 36vw));justify-self:end;padding:.125rem .4rem;border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-mega-menu-badge-background, color-mix(in srgb, var(--aeris-primary, #111111) 15%, transparent));color:var(--aeris-mega-menu-badge-color, var(--aeris-primary-text, #111111));font-size:var(--aeris-font-size-sm, .75rem);font-weight:var(--aeris-font-weight-bold, 700);overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap}.aeris-mega-menu__panel{position:absolute;z-index:var(--aeris-mega-menu-z-index, 1040);inset-block-start:calc(100% + var(--aeris-mega-menu-panel-offset, .45rem));inset-inline-start:0;width:min(var(--aeris-mega-menu-panel-width, 44rem),100vw - 2rem);padding:var(--aeris-mega-menu-panel-padding, calc(var(--aeris-item-padding-x, .75rem) * 1.35));border:1px solid var(--aeris-mega-menu-panel-border, var(--aeris-border));border-radius:var(--aeris-mega-menu-panel-radius, var(--aeris-radius-overlay, var(--aeris-radius-md, .6875rem)));background:var(--aeris-mega-menu-panel-background, var(--aeris-surface, #fff));box-shadow:var(--aeris-mega-menu-panel-shadow, var(--aeris-overlay-shadow, var(--aeris-shadow-lg, 0 18px 48px rgba(0, 0, 0, .18))));transform-origin:top center}:host([data-orientation=vertical]) .aeris-mega-menu__panel{--aeris-overlay-motion-x: calc(var(--aeris-motion-distance, .25rem) * -1);--aeris-overlay-motion-y: 0;inset-block-start:0;inset-inline-start:calc(100% + var(--aeris-mega-menu-panel-offset, .45rem));transform-origin:center left}.aeris-mega-menu__panel-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(11rem,100%),1fr));gap:var(--aeris-mega-menu-panel-gap, calc(var(--aeris-density-gap, .5rem) + .35rem))}.aeris-mega-menu__group{min-width:0;display:grid;align-content:start;gap:var(--aeris-density-gap, .5rem)}.aeris-mega-menu__group-header{display:grid;gap:calc(var(--aeris-density-gap, .5rem) * .3);padding:0 calc(var(--aeris-item-padding-x, .75rem) * .6)}.aeris-mega-menu__group-header h3,.aeris-mega-menu__group-header p{margin:0}.aeris-mega-menu__group-header h3{color:var(--aeris-mega-menu-group-title-color, var(--aeris-text, #111111));font-size:var(--aeris-font-size-md, .8125rem);font-weight:var(--aeris-font-weight-bold, 700);letter-spacing:.04em;text-transform:uppercase}.aeris-mega-menu__group-header p{color:var(--aeris-mega-menu-description-color, var(--aeris-text-2, #454545));font-size:var(--aeris-font-size-sm, .75rem)}.aeris-mega-menu__panel-list{display:grid;gap:calc(var(--aeris-density-gap, .5rem) * .25);margin:0;padding:0;list-style:none}.aeris-mega-menu__panel-list .aeris-mega-menu__panel-list{margin-block-start:.25rem;padding-inline-start:.75rem;border-inline-start:1px solid var(--aeris-mega-menu-border, var(--aeris-border))}.aeris-mega-menu__separator{block-size:1px;margin:.35rem .5rem;background:var(--aeris-mega-menu-border, var(--aeris-border))}:host([data-size=sm]){--aeris-mega-menu-trigger-height: calc( var(--aeris-action-height, var(--aeris-control-height, 2.625rem)) - .5rem );--aeris-mega-menu-trigger-padding: 0 calc(var(--aeris-action-padding-inline, 1.0625rem) - .25rem);--aeris-mega-menu-font-size: var(--aeris-font-size-sm, .75rem);--aeris-mega-menu-panel-item-height: calc(var(--aeris-item-height, 2.5rem) - .375rem);--aeris-mega-menu-panel-font-size: var(--aeris-font-size-md, .8125rem);--aeris-mega-menu-icon-size: var(--aeris-icon-size, 1rem)}:host([data-size=lg]){--aeris-mega-menu-trigger-height: calc( var(--aeris-action-height, var(--aeris-control-height, 2.625rem)) + .5rem );--aeris-mega-menu-trigger-padding: 0 calc(var(--aeris-action-padding-inline, 1.0625rem) + .25rem);--aeris-mega-menu-font-size: var(--aeris-font-size-lg, .875rem);--aeris-mega-menu-panel-item-height: calc(var(--aeris-item-height, 2.5rem) + .25rem);--aeris-mega-menu-panel-font-size: var(--aeris-font-size-xl, .9375rem);--aeris-mega-menu-icon-size: var(--aeris-icon-size, 1rem)}@media(max-width:44rem){.aeris-mega-menu__root{flex-direction:column}.aeris-mega-menu__panel,:host([data-orientation=vertical]) .aeris-mega-menu__panel{--aeris-overlay-motion-x: 0;--aeris-overlay-motion-y: calc(var(--aeris-motion-distance, .25rem) * -1);position:static;width:100%;margin-block-start:.35rem;transform-origin:top center}}:host [data-aeris-custom-icon]:not([data-aeris-global-icon]){display:inline-flex;align-items:center;justify-content:center;inline-size:var(--aeris-icon-size, 1rem);block-size:var(--aeris-icon-size, 1rem);background:transparent;border:0;box-shadow:none;-webkit-mask:none;mask:none;line-height:1}:host [data-aeris-custom-icon]:before,:host [data-aeris-custom-icon]:after{display:none}@media(prefers-reduced-motion:reduce){.aeris-mega-menu__chevron,.aeris-mega-menu__trigger,.aeris-mega-menu__panel-item{transition:none}}.aeris-mega-menu__chevron:not([data-aeris-custom-icon]){background:currentColor;-webkit-mask:var(--aeris-icon-chevron) center/100% 100% no-repeat;mask:var(--aeris-icon-chevron) center/100% 100% no-repeat}\n"],
696
715
  dependencies: [{
716
+ kind: "component",
717
+ type: ɵAerisIcon,
718
+ selector: "span[aerisInternalIcon]",
719
+ inputs: ["aerisInternalIcon", "aerisInternalIconFallback"]
720
+ }, {
697
721
  kind: "directive",
698
722
  type: NgTemplateOutlet,
699
723
  selector: "[ngTemplateOutlet]",
@@ -707,14 +731,14 @@ var AerisMegaMenu = class AerisMegaMenu {
707
731
  };
708
732
  i0.ɵɵngDeclareClassMetadata({
709
733
  minVersion: "12.0.0",
710
- version: "22.2.2",
734
+ version: "22.2.4",
711
735
  ngImport: i0,
712
736
  type: AerisMegaMenu,
713
737
  decorators: [{
714
738
  type: Component,
715
739
  args: [{
716
740
  selector: "aeris-mega-menu",
717
- imports: [NgTemplateOutlet],
741
+ imports: [ɵAerisIcon, NgTemplateOutlet],
718
742
  template: `
719
743
  <ng-template #itemContent let-entry let-root="root" let-hasPanel="hasPanel">
720
744
  <ng-container
@@ -737,9 +761,20 @@ i0.ɵɵngDeclareClassMetadata({
737
761
  <span class="aeris-mega-menu__badge">{{ item.badge }}</span>
738
762
  }
739
763
  @if (hasPanel) {
740
- <svg class="aeris-mega-menu__chevron" viewBox="0 0 20 20" aria-hidden="true">
741
- <path d="m6.5 8 3.5 4 3.5-4" />
742
- </svg>
764
+ @if (submenuIconTemplate(); as customIcon) {
765
+ <span
766
+ class="aeris-custom-icon aeris-mega-menu__chevron"
767
+ aria-hidden="true"
768
+ data-aeris-custom-icon
769
+ ><ng-container [ngTemplateOutlet]="customIcon"
770
+ /></span>
771
+ } @else {
772
+ <span
773
+ aerisInternalIcon="chevron"
774
+ class="aeris-mega-menu__chevron"
775
+ aria-hidden="true"
776
+ ></span>
777
+ }
743
778
  }
744
779
  </ng-template>
745
780
 
@@ -950,11 +985,19 @@ i0.ɵɵngDeclareClassMetadata({
950
985
  "[attr.data-orientation]": "orientation()",
951
986
  "[attr.data-size]": "size()"
952
987
  },
953
- styles: [":host{--_aeris-mega-menu-item-radius: var( --aeris-mega-menu-item-radius, var( --aeris-radius-item, max( 0px, calc( var( --aeris-mega-menu-radius, var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem)) ) - var(--aeris-mega-menu-padding, var(--aeris-overlay-padding, .375rem)) - 1px ) ) ) );display:block;color:var(--aeris-mega-menu-color, var(--aeris-text, #111111))}.aeris-mega-menu__nav{position:relative}.aeris-mega-menu__root{display:flex;align-items:stretch;gap:var(--aeris-mega-menu-gap, calc(var(--aeris-density-gap, .5rem) * .5));margin:0;padding:var(--aeris-mega-menu-padding, var(--aeris-overlay-padding, .375rem));border:1px solid var(--aeris-mega-menu-border, var(--aeris-border));border-radius:var(--aeris-mega-menu-radius, var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem)));background:var(--aeris-mega-menu-background, var(--aeris-surface, #fff));box-shadow:var(--aeris-mega-menu-shadow, 0 1rem 2.5rem rgba(0, 0, 0, .08));list-style:none}:host([data-orientation=vertical]) .aeris-mega-menu__root{width:min(100%,var(--aeris-mega-menu-vertical-width, 18rem));flex-direction:column}.aeris-mega-menu__root-item{position:relative}.aeris-mega-menu__trigger,.aeris-mega-menu__panel-item{width:100%;min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:var(--aeris-mega-menu-item-gap, var(--aeris-density-gap, .5rem));border:0;background:transparent;color:inherit;font:inherit;text-align:start;text-decoration:none;cursor:pointer;transition:background-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}.aeris-mega-menu__trigger{min-height:var(--aeris-mega-menu-trigger-height, var(--aeris-action-height, var(--aeris-control-height, 2.625rem)));border-radius:var(--_aeris-mega-menu-item-radius);padding:var(--aeris-mega-menu-trigger-padding, 0 var(--aeris-action-padding-inline, 1.0625rem));font-size:var(--aeris-mega-menu-font-size, var(--aeris-action-font-size, .8125rem));font-weight:var(--aeris-action-font-weight, 600)}.aeris-mega-menu__panel-item{min-height:var(--aeris-mega-menu-panel-item-height, var(--aeris-item-height, 2.5rem));border-radius:var(--aeris-mega-menu-panel-item-radius, var(--_aeris-mega-menu-item-radius));padding:var(--aeris-mega-menu-panel-item-padding, var(--aeris-item-padding-y, .5rem) var(--aeris-item-padding-x, .75rem));font-size:var(--aeris-mega-menu-panel-font-size, var(--aeris-item-font-size, .875rem))}.aeris-mega-menu__root-item[data-open=true]>.aeris-mega-menu__trigger{background:var(--aeris-mega-menu-item-hover-background, var(--aeris-interactive-hover, var(--aeris-surface-2, #f3f3f3)));color:var(--aeris-mega-menu-item-hover-color, var(--aeris-text, #111111))}@media(hover:hover){.aeris-mega-menu__trigger:hover,.aeris-mega-menu__panel-item:hover{background:var(--aeris-mega-menu-item-hover-background, var(--aeris-interactive-hover, var(--aeris-surface-2, #f3f3f3)));color:var(--aeris-mega-menu-item-hover-color, var(--aeris-text, #111111))}}.aeris-mega-menu__trigger:focus-visible,.aeris-mega-menu__panel-item:focus-visible{outline:var(--aeris-focus-ring-width, 3px) solid color-mix(in srgb,var(--aeris-focus, var(--aeris-primary, #111111)) 38%,transparent);outline-offset:var(--aeris-focus-ring-offset, 2px)}.aeris-mega-menu__trigger:disabled,.aeris-mega-menu__panel-item:disabled,.aeris-mega-menu__trigger[aria-disabled=true],.aeris-mega-menu__panel-item[aria-disabled=true]{cursor:not-allowed;opacity:var(--aeris-mega-menu-disabled-opacity, .52)}.aeris-mega-menu__copy{min-width:0;display:grid;gap:calc(var(--aeris-density-gap, .5rem) * .25)}.aeris-mega-menu__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aeris-mega-menu__description{color:var(--aeris-mega-menu-description-color, var(--aeris-text-2, #454545));font-size:var(--aeris-font-size-sm, .75rem);font-weight:var(--aeris-font-weight-semibold, 600);line-height:var(--aeris-line-height-tight, 1.25)}.aeris-mega-menu__icon,.aeris-mega-menu__chevron{inline-size:var(--aeris-mega-menu-icon-size, var(--aeris-icon-size, 1rem));block-size:var(--aeris-mega-menu-icon-size, var(--aeris-icon-size, 1rem));display:inline-grid;place-items:center;color:var(--aeris-mega-menu-icon-color, currentColor)}.aeris-mega-menu__chevron{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2;transition:transform var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}.aeris-mega-menu__root-item[data-open=true] .aeris-mega-menu__chevron{transform:rotate(180deg)}.aeris-mega-menu__badge{inline-size:max-content;min-inline-size:1.35rem;max-inline-size:var(--aeris-mega-menu-badge-max-width, min(7rem, 36vw));justify-self:end;padding:.125rem .4rem;border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-mega-menu-badge-background, color-mix(in srgb, var(--aeris-primary, #111111) 15%, transparent));color:var(--aeris-mega-menu-badge-color, var(--aeris-primary-text, #111111));font-size:var(--aeris-font-size-sm, .75rem);font-weight:var(--aeris-font-weight-bold, 700);overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap}.aeris-mega-menu__panel{position:absolute;z-index:var(--aeris-mega-menu-z-index, 1040);inset-block-start:calc(100% + var(--aeris-mega-menu-panel-offset, .45rem));inset-inline-start:0;width:min(var(--aeris-mega-menu-panel-width, 44rem),100vw - 2rem);padding:var(--aeris-mega-menu-panel-padding, calc(var(--aeris-item-padding-x, .75rem) * 1.35));border:1px solid var(--aeris-mega-menu-panel-border, var(--aeris-border));border-radius:var(--aeris-mega-menu-panel-radius, var(--aeris-radius-overlay, var(--aeris-radius-md, .6875rem)));background:var(--aeris-mega-menu-panel-background, var(--aeris-surface, #fff));box-shadow:var(--aeris-mega-menu-panel-shadow, var(--aeris-overlay-shadow, var(--aeris-shadow-lg, 0 18px 48px rgba(0, 0, 0, .18))));transform-origin:top center}:host([data-orientation=vertical]) .aeris-mega-menu__panel{--aeris-overlay-motion-x: calc(var(--aeris-motion-distance, .25rem) * -1);--aeris-overlay-motion-y: 0;inset-block-start:0;inset-inline-start:calc(100% + var(--aeris-mega-menu-panel-offset, .45rem));transform-origin:center left}.aeris-mega-menu__panel-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(11rem,100%),1fr));gap:var(--aeris-mega-menu-panel-gap, calc(var(--aeris-density-gap, .5rem) + .35rem))}.aeris-mega-menu__group{min-width:0;display:grid;align-content:start;gap:var(--aeris-density-gap, .5rem)}.aeris-mega-menu__group-header{display:grid;gap:calc(var(--aeris-density-gap, .5rem) * .3);padding:0 calc(var(--aeris-item-padding-x, .75rem) * .6)}.aeris-mega-menu__group-header h3,.aeris-mega-menu__group-header p{margin:0}.aeris-mega-menu__group-header h3{color:var(--aeris-mega-menu-group-title-color, var(--aeris-text, #111111));font-size:var(--aeris-font-size-md, .8125rem);font-weight:var(--aeris-font-weight-bold, 700);letter-spacing:.04em;text-transform:uppercase}.aeris-mega-menu__group-header p{color:var(--aeris-mega-menu-description-color, var(--aeris-text-2, #454545));font-size:var(--aeris-font-size-sm, .75rem)}.aeris-mega-menu__panel-list{display:grid;gap:calc(var(--aeris-density-gap, .5rem) * .25);margin:0;padding:0;list-style:none}.aeris-mega-menu__panel-list .aeris-mega-menu__panel-list{margin-block-start:.25rem;padding-inline-start:.75rem;border-inline-start:1px solid var(--aeris-mega-menu-border, var(--aeris-border))}.aeris-mega-menu__separator{block-size:1px;margin:.35rem .5rem;background:var(--aeris-mega-menu-border, var(--aeris-border))}:host([data-size=sm]){--aeris-mega-menu-trigger-height: calc( var(--aeris-action-height, var(--aeris-control-height, 2.625rem)) - .5rem );--aeris-mega-menu-trigger-padding: 0 calc(var(--aeris-action-padding-inline, 1.0625rem) - .25rem);--aeris-mega-menu-font-size: var(--aeris-font-size-sm, .75rem);--aeris-mega-menu-panel-item-height: calc(var(--aeris-item-height, 2.5rem) - .375rem);--aeris-mega-menu-panel-font-size: var(--aeris-font-size-md, .8125rem);--aeris-mega-menu-icon-size: var(--aeris-icon-size, 1rem)}:host([data-size=lg]){--aeris-mega-menu-trigger-height: calc( var(--aeris-action-height, var(--aeris-control-height, 2.625rem)) + .5rem );--aeris-mega-menu-trigger-padding: 0 calc(var(--aeris-action-padding-inline, 1.0625rem) + .25rem);--aeris-mega-menu-font-size: var(--aeris-font-size-lg, .875rem);--aeris-mega-menu-panel-item-height: calc(var(--aeris-item-height, 2.5rem) + .25rem);--aeris-mega-menu-panel-font-size: var(--aeris-font-size-xl, .9375rem);--aeris-mega-menu-icon-size: var(--aeris-icon-size, 1rem)}@media(max-width:44rem){.aeris-mega-menu__root{flex-direction:column}.aeris-mega-menu__panel,:host([data-orientation=vertical]) .aeris-mega-menu__panel{--aeris-overlay-motion-x: 0;--aeris-overlay-motion-y: calc(var(--aeris-motion-distance, .25rem) * -1);position:static;width:100%;margin-block-start:.35rem;transform-origin:top center}}@media(prefers-reduced-motion:reduce){.aeris-mega-menu__chevron,.aeris-mega-menu__trigger,.aeris-mega-menu__panel-item{transition:none}}\n"]
988
+ styles: [":host{--_aeris-mega-menu-item-radius: var( --aeris-mega-menu-item-radius, var( --aeris-radius-item, max( 0px, calc( var( --aeris-mega-menu-radius, var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem)) ) - var(--aeris-mega-menu-padding, var(--aeris-overlay-padding, .375rem)) - 1px ) ) ) );display:block;color:var(--aeris-mega-menu-color, var(--aeris-text, #111111))}.aeris-mega-menu__nav{position:relative}.aeris-mega-menu__root{display:flex;align-items:stretch;gap:var(--aeris-mega-menu-gap, calc(var(--aeris-density-gap, .5rem) * .5));margin:0;padding:var(--aeris-mega-menu-padding, var(--aeris-overlay-padding, .375rem));border:1px solid var(--aeris-mega-menu-border, var(--aeris-border));border-radius:var(--aeris-mega-menu-radius, var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem)));background:var(--aeris-mega-menu-background, var(--aeris-surface, #fff));box-shadow:var(--aeris-mega-menu-shadow, 0 1rem 2.5rem rgba(0, 0, 0, .08));list-style:none}:host([data-orientation=vertical]) .aeris-mega-menu__root{width:min(100%,var(--aeris-mega-menu-vertical-width, 18rem));flex-direction:column}.aeris-mega-menu__root-item{position:relative}.aeris-mega-menu__trigger,.aeris-mega-menu__panel-item{width:100%;min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:var(--aeris-mega-menu-item-gap, var(--aeris-density-gap, .5rem));border:0;background:transparent;color:inherit;font:inherit;text-align:start;text-decoration:none;cursor:pointer;transition:background-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}.aeris-mega-menu__trigger{min-height:var(--aeris-mega-menu-trigger-height, var(--aeris-action-height, var(--aeris-control-height, 2.625rem)));border-radius:var(--_aeris-mega-menu-item-radius);padding:var(--aeris-mega-menu-trigger-padding, 0 var(--aeris-action-padding-inline, 1.0625rem));font-size:var(--aeris-mega-menu-font-size, var(--aeris-action-font-size, .8125rem));font-weight:var(--aeris-action-font-weight, 600)}.aeris-mega-menu__panel-item{min-height:var(--aeris-mega-menu-panel-item-height, var(--aeris-item-height, 2.5rem));border-radius:var(--aeris-mega-menu-panel-item-radius, var(--_aeris-mega-menu-item-radius));padding:var(--aeris-mega-menu-panel-item-padding, var(--aeris-item-padding-y, .5rem) var(--aeris-item-padding-x, .75rem));font-size:var(--aeris-mega-menu-panel-font-size, var(--aeris-item-font-size, .875rem))}.aeris-mega-menu__root-item[data-open=true]>.aeris-mega-menu__trigger{background:var(--aeris-mega-menu-item-hover-background, var(--aeris-interactive-hover, var(--aeris-surface-2, #f3f3f3)));color:var(--aeris-mega-menu-item-hover-color, var(--aeris-text, #111111))}@media(hover:hover){.aeris-mega-menu__trigger:hover,.aeris-mega-menu__panel-item:hover{background:var(--aeris-mega-menu-item-hover-background, var(--aeris-interactive-hover, var(--aeris-surface-2, #f3f3f3)));color:var(--aeris-mega-menu-item-hover-color, var(--aeris-text, #111111))}}.aeris-mega-menu__trigger:focus-visible,.aeris-mega-menu__panel-item:focus-visible{outline:var(--aeris-focus-ring-width, 3px) solid color-mix(in srgb,var(--aeris-focus, var(--aeris-primary, #111111)) 38%,transparent);outline-offset:var(--aeris-focus-ring-offset, 2px)}.aeris-mega-menu__trigger:disabled,.aeris-mega-menu__panel-item:disabled,.aeris-mega-menu__trigger[aria-disabled=true],.aeris-mega-menu__panel-item[aria-disabled=true]{cursor:not-allowed;opacity:var(--aeris-mega-menu-disabled-opacity, .52)}.aeris-mega-menu__copy{min-width:0;display:grid;gap:calc(var(--aeris-density-gap, .5rem) * .25)}.aeris-mega-menu__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aeris-mega-menu__description{color:var(--aeris-mega-menu-description-color, var(--aeris-text-2, #454545));font-size:var(--aeris-font-size-sm, .75rem);font-weight:var(--aeris-font-weight-semibold, 600);line-height:var(--aeris-line-height-tight, 1.25)}.aeris-mega-menu__icon,.aeris-mega-menu__chevron{inline-size:var(--aeris-mega-menu-icon-size, var(--aeris-icon-size, 1rem));block-size:var(--aeris-mega-menu-icon-size, var(--aeris-icon-size, 1rem));display:inline-grid;place-items:center;color:var(--aeris-mega-menu-icon-color, currentColor)}.aeris-mega-menu__chevron{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2;transition:transform var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}.aeris-mega-menu__root-item[data-open=true] .aeris-mega-menu__chevron{transform:rotate(180deg)}.aeris-mega-menu__badge{inline-size:max-content;min-inline-size:1.35rem;max-inline-size:var(--aeris-mega-menu-badge-max-width, min(7rem, 36vw));justify-self:end;padding:.125rem .4rem;border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-mega-menu-badge-background, color-mix(in srgb, var(--aeris-primary, #111111) 15%, transparent));color:var(--aeris-mega-menu-badge-color, var(--aeris-primary-text, #111111));font-size:var(--aeris-font-size-sm, .75rem);font-weight:var(--aeris-font-weight-bold, 700);overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap}.aeris-mega-menu__panel{position:absolute;z-index:var(--aeris-mega-menu-z-index, 1040);inset-block-start:calc(100% + var(--aeris-mega-menu-panel-offset, .45rem));inset-inline-start:0;width:min(var(--aeris-mega-menu-panel-width, 44rem),100vw - 2rem);padding:var(--aeris-mega-menu-panel-padding, calc(var(--aeris-item-padding-x, .75rem) * 1.35));border:1px solid var(--aeris-mega-menu-panel-border, var(--aeris-border));border-radius:var(--aeris-mega-menu-panel-radius, var(--aeris-radius-overlay, var(--aeris-radius-md, .6875rem)));background:var(--aeris-mega-menu-panel-background, var(--aeris-surface, #fff));box-shadow:var(--aeris-mega-menu-panel-shadow, var(--aeris-overlay-shadow, var(--aeris-shadow-lg, 0 18px 48px rgba(0, 0, 0, .18))));transform-origin:top center}:host([data-orientation=vertical]) .aeris-mega-menu__panel{--aeris-overlay-motion-x: calc(var(--aeris-motion-distance, .25rem) * -1);--aeris-overlay-motion-y: 0;inset-block-start:0;inset-inline-start:calc(100% + var(--aeris-mega-menu-panel-offset, .45rem));transform-origin:center left}.aeris-mega-menu__panel-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(11rem,100%),1fr));gap:var(--aeris-mega-menu-panel-gap, calc(var(--aeris-density-gap, .5rem) + .35rem))}.aeris-mega-menu__group{min-width:0;display:grid;align-content:start;gap:var(--aeris-density-gap, .5rem)}.aeris-mega-menu__group-header{display:grid;gap:calc(var(--aeris-density-gap, .5rem) * .3);padding:0 calc(var(--aeris-item-padding-x, .75rem) * .6)}.aeris-mega-menu__group-header h3,.aeris-mega-menu__group-header p{margin:0}.aeris-mega-menu__group-header h3{color:var(--aeris-mega-menu-group-title-color, var(--aeris-text, #111111));font-size:var(--aeris-font-size-md, .8125rem);font-weight:var(--aeris-font-weight-bold, 700);letter-spacing:.04em;text-transform:uppercase}.aeris-mega-menu__group-header p{color:var(--aeris-mega-menu-description-color, var(--aeris-text-2, #454545));font-size:var(--aeris-font-size-sm, .75rem)}.aeris-mega-menu__panel-list{display:grid;gap:calc(var(--aeris-density-gap, .5rem) * .25);margin:0;padding:0;list-style:none}.aeris-mega-menu__panel-list .aeris-mega-menu__panel-list{margin-block-start:.25rem;padding-inline-start:.75rem;border-inline-start:1px solid var(--aeris-mega-menu-border, var(--aeris-border))}.aeris-mega-menu__separator{block-size:1px;margin:.35rem .5rem;background:var(--aeris-mega-menu-border, var(--aeris-border))}:host([data-size=sm]){--aeris-mega-menu-trigger-height: calc( var(--aeris-action-height, var(--aeris-control-height, 2.625rem)) - .5rem );--aeris-mega-menu-trigger-padding: 0 calc(var(--aeris-action-padding-inline, 1.0625rem) - .25rem);--aeris-mega-menu-font-size: var(--aeris-font-size-sm, .75rem);--aeris-mega-menu-panel-item-height: calc(var(--aeris-item-height, 2.5rem) - .375rem);--aeris-mega-menu-panel-font-size: var(--aeris-font-size-md, .8125rem);--aeris-mega-menu-icon-size: var(--aeris-icon-size, 1rem)}:host([data-size=lg]){--aeris-mega-menu-trigger-height: calc( var(--aeris-action-height, var(--aeris-control-height, 2.625rem)) + .5rem );--aeris-mega-menu-trigger-padding: 0 calc(var(--aeris-action-padding-inline, 1.0625rem) + .25rem);--aeris-mega-menu-font-size: var(--aeris-font-size-lg, .875rem);--aeris-mega-menu-panel-item-height: calc(var(--aeris-item-height, 2.5rem) + .25rem);--aeris-mega-menu-panel-font-size: var(--aeris-font-size-xl, .9375rem);--aeris-mega-menu-icon-size: var(--aeris-icon-size, 1rem)}@media(max-width:44rem){.aeris-mega-menu__root{flex-direction:column}.aeris-mega-menu__panel,:host([data-orientation=vertical]) .aeris-mega-menu__panel{--aeris-overlay-motion-x: 0;--aeris-overlay-motion-y: calc(var(--aeris-motion-distance, .25rem) * -1);position:static;width:100%;margin-block-start:.35rem;transform-origin:top center}}:host [data-aeris-custom-icon]:not([data-aeris-global-icon]){display:inline-flex;align-items:center;justify-content:center;inline-size:var(--aeris-icon-size, 1rem);block-size:var(--aeris-icon-size, 1rem);background:transparent;border:0;box-shadow:none;-webkit-mask:none;mask:none;line-height:1}:host [data-aeris-custom-icon]:before,:host [data-aeris-custom-icon]:after{display:none}@media(prefers-reduced-motion:reduce){.aeris-mega-menu__chevron,.aeris-mega-menu__trigger,.aeris-mega-menu__panel-item{transition:none}}.aeris-mega-menu__chevron:not([data-aeris-custom-icon]){background:currentColor;-webkit-mask:var(--aeris-icon-chevron) center/100% 100% no-repeat;mask:var(--aeris-icon-chevron) center/100% 100% no-repeat}\n"]
954
989
  }]
955
990
  }],
956
991
  ctorParameters: () => [],
957
992
  propDecorators: {
993
+ submenuIconTemplate: [{
994
+ type: i0.Input,
995
+ args: [{
996
+ isSignal: true,
997
+ alias: "submenuIconTemplate",
998
+ required: false
999
+ }]
1000
+ }],
958
1001
  itemTemplate: [{
959
1002
  type: i0.ContentChild,
960
1003
  args: [i0.forwardRef(() => AerisMegaMenuItemTemplate), {
@@ -1 +1 @@
1
- {"version":3,"file":"aeris-ui-core-mega-menu.mjs","names":[],"sources":["../../../projects/aeris-ui/mega-menu/aeris-mega-menu.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport {\n Component,\n Directive,\n ElementRef,\n Injector,\n TemplateRef,\n afterNextRender,\n booleanAttribute,\n computed,\n contentChild,\n effect,\n inject,\n input,\n output,\n signal,\n viewChildren,\n} from '@angular/core';\nimport { ɵregisterAerisOverlay, ɵunregisterAerisOverlay } from '@aeris-ui/core';\n\nexport type AerisMegaMenuOrientation = 'horizontal' | 'vertical';\nexport type AerisMegaMenuSize = 'sm' | 'md' | 'lg';\nexport type AerisMegaMenuCloseReason = 'api' | 'escape' | 'outside' | 'select' | 'mouseleave';\n\nexport interface AerisMegaMenuItem<T = unknown> {\n readonly id?: string;\n readonly label?: string;\n readonly description?: string;\n readonly ariaLabel?: string;\n readonly icon?: string;\n readonly badge?: string | number;\n readonly disabled?: boolean;\n readonly visible?: boolean;\n readonly separator?: boolean;\n readonly url?: string;\n readonly routerLink?: string | readonly (string | number)[];\n readonly target?: '_blank' | '_self' | '_parent' | '_top' | string;\n readonly rel?: string;\n readonly items?: readonly AerisMegaMenuItem<T>[];\n readonly groups?: readonly AerisMegaMenuGroup<T>[];\n readonly data?: T;\n readonly command?: (event: AerisMegaMenuItemEvent<T>) => void;\n}\n\nexport interface AerisMegaMenuGroup<T = unknown> {\n readonly id?: string;\n readonly label?: string;\n readonly description?: string;\n readonly items: readonly AerisMegaMenuItem<T>[];\n}\n\nexport interface AerisMegaMenuItemEvent<T = unknown> {\n readonly originalEvent: MouseEvent | KeyboardEvent;\n readonly item: AerisMegaMenuItem<T>;\n readonly path: readonly number[];\n readonly root: AerisMegaMenuItem<T>;\n readonly group: AerisMegaMenuGroup<T> | null;\n}\n\nexport interface AerisMegaMenuVisibilityEvent<T = unknown> {\n readonly originalEvent: Event | null;\n readonly visible: boolean;\n readonly root: AerisMegaMenuItem<T> | null;\n readonly reason: AerisMegaMenuCloseReason;\n}\n\nexport interface AerisMegaMenuItemTemplateContext<T = unknown> {\n readonly $implicit: AerisMegaMenuItem<T>;\n readonly item: AerisMegaMenuItem<T>;\n readonly path: readonly number[];\n readonly level: number;\n readonly root: boolean;\n readonly active: boolean;\n readonly open: boolean;\n readonly disabled: boolean;\n readonly hasPanel: boolean;\n}\n\nexport type AerisMegaMenuNavigationHandler = (\n link: string | readonly (string | number)[],\n event: MouseEvent | KeyboardEvent,\n) => void;\n\ninterface AerisMegaMenuEntry<T> {\n readonly item: AerisMegaMenuItem<T>;\n readonly path: readonly number[];\n readonly pathKey: string;\n readonly id: string;\n readonly level: number;\n readonly disabled: boolean;\n readonly active: boolean;\n readonly open: boolean;\n readonly href: string | null;\n readonly panelGroups: readonly AerisMegaMenuGroup<T>[];\n}\n\n@Directive({ selector: 'ng-template[aerisMegaMenuItem]' })\nexport class AerisMegaMenuItemTemplate<T = unknown> {\n readonly template = inject<TemplateRef<AerisMegaMenuItemTemplateContext<T>>>(TemplateRef);\n\n static ngTemplateContextGuard<T>(\n _directive: AerisMegaMenuItemTemplate<T>,\n context: unknown,\n ): context is AerisMegaMenuItemTemplateContext<T> {\n return true;\n }\n}\n\nlet nextMegaMenuId = 0;\n\n@Component({\n selector: 'aeris-mega-menu',\n imports: [NgTemplateOutlet],\n template: `\n <ng-template #itemContent let-entry let-root=\"root\" let-hasPanel=\"hasPanel\">\n <ng-container\n [ngTemplateOutlet]=\"itemTemplate()?.template ?? defaultItemTemplate\"\n [ngTemplateOutletContext]=\"itemContext(entry, root, hasPanel)\"\n />\n </ng-template>\n\n <ng-template #defaultItemTemplate let-item let-root=\"root\" let-hasPanel=\"hasPanel\">\n @if (item.icon) {\n <span class=\"aeris-mega-menu__icon\" aria-hidden=\"true\">{{ item.icon }}</span>\n }\n <span class=\"aeris-mega-menu__copy\">\n <span class=\"aeris-mega-menu__label\">{{ item.label }}</span>\n @if (item.description) {\n <span class=\"aeris-mega-menu__description\">{{ item.description }}</span>\n }\n </span>\n @if (item.badge !== undefined && item.badge !== null) {\n <span class=\"aeris-mega-menu__badge\">{{ item.badge }}</span>\n }\n @if (hasPanel) {\n <svg class=\"aeris-mega-menu__chevron\" viewBox=\"0 0 20 20\" aria-hidden=\"true\">\n <path d=\"m6.5 8 3.5 4 3.5-4\" />\n </svg>\n }\n </ng-template>\n\n <ng-template\n #panelItems\n let-items\n let-root=\"root\"\n let-group=\"group\"\n let-groupIndex=\"groupIndex\"\n let-prefix=\"prefix\"\n let-level=\"level\"\n >\n <ul class=\"aeris-mega-menu__panel-list\" role=\"group\">\n @for (item of visibleItems(items); track item.id ?? item.label ?? $index) {\n @if (item.separator) {\n <li class=\"aeris-mega-menu__separator\" role=\"separator\"></li>\n } @else {\n @let path = panelPath(root.path, groupIndex, $index, prefix);\n @let childEntry = panelEntry(item, path, level);\n <li role=\"none\">\n @if (childEntry.href) {\n <a\n #menuItem\n class=\"aeris-mega-menu__panel-item\"\n role=\"menuitem\"\n [id]=\"childEntry.id\"\n [attr.href]=\"childEntry.disabled ? null : childEntry.href\"\n [attr.target]=\"item.target || null\"\n [attr.rel]=\"item.rel || (item.target === '_blank' ? 'noopener noreferrer' : null)\"\n [attr.aria-label]=\"item.ariaLabel ?? item.label\"\n [attr.aria-disabled]=\"childEntry.disabled || null\"\n [attr.tabindex]=\"childEntry.active && !childEntry.disabled ? 0 : -1\"\n [attr.data-aeris-mega-menu-path]=\"childEntry.pathKey\"\n (click)=\"activateItem($event, childEntry, root.item, group)\"\n (focus)=\"setActivePath(childEntry.path)\"\n (keydown)=\"handlePanelKeydown($event, childEntry)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"itemContent\"\n [ngTemplateOutletContext]=\"{\n $implicit: childEntry,\n root: false,\n hasPanel: false,\n }\"\n />\n </a>\n } @else {\n <button\n #menuItem\n type=\"button\"\n class=\"aeris-mega-menu__panel-item\"\n role=\"menuitem\"\n [id]=\"childEntry.id\"\n [disabled]=\"childEntry.disabled\"\n [attr.aria-label]=\"item.ariaLabel ?? item.label\"\n [attr.tabindex]=\"childEntry.active && !childEntry.disabled ? 0 : -1\"\n [attr.data-aeris-mega-menu-path]=\"childEntry.pathKey\"\n (click)=\"activateItem($event, childEntry, root.item, group)\"\n (focus)=\"setActivePath(childEntry.path)\"\n (keydown)=\"handlePanelKeydown($event, childEntry)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"itemContent\"\n [ngTemplateOutletContext]=\"{\n $implicit: childEntry,\n root: false,\n hasPanel: false,\n }\"\n />\n </button>\n }\n\n @if (item.items?.length) {\n <ng-container\n [ngTemplateOutlet]=\"panelItems\"\n [ngTemplateOutletContext]=\"{\n $implicit: item.items,\n root,\n group,\n groupIndex,\n prefix: childEntry.path,\n level: level + 1,\n }\"\n />\n }\n </li>\n }\n }\n </ul>\n </ng-template>\n\n <nav\n class=\"aeris-mega-menu__nav\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n (mouseleave)=\"handleNavMouseLeave($event)\"\n >\n <ul class=\"aeris-mega-menu__root\" role=\"menubar\" [attr.aria-orientation]=\"orientation()\">\n @for (entry of rootEntries(); track entry.id) {\n <li class=\"aeris-mega-menu__root-item\" role=\"none\" [attr.data-open]=\"entry.open || null\">\n @if (entry.href) {\n <a\n #menuItem\n class=\"aeris-mega-menu__trigger\"\n role=\"menuitem\"\n [id]=\"entry.id\"\n [attr.href]=\"entry.disabled ? null : entry.href\"\n [attr.target]=\"entry.item.target || null\"\n [attr.rel]=\"\n entry.item.rel || (entry.item.target === '_blank' ? 'noopener noreferrer' : null)\n \"\n [attr.aria-label]=\"entry.item.ariaLabel ?? entry.item.label\"\n [attr.aria-disabled]=\"entry.disabled || null\"\n [attr.aria-haspopup]=\"entry.panelGroups.length ? 'menu' : null\"\n [attr.aria-expanded]=\"entry.panelGroups.length ? entry.open : null\"\n [attr.aria-controls]=\"entry.panelGroups.length ? entry.id + '-panel' : null\"\n [attr.tabindex]=\"entry.active && !entry.disabled ? 0 : -1\"\n [attr.data-aeris-mega-menu-path]=\"entry.pathKey\"\n (click)=\"activateRoot($event, entry)\"\n (focus)=\"setActivePath(entry.path)\"\n (mouseenter)=\"openRootFromPointer(entry)\"\n (keydown)=\"handleRootKeydown($event, entry)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"itemContent\"\n [ngTemplateOutletContext]=\"{\n $implicit: entry,\n root: true,\n hasPanel: entry.panelGroups.length > 0,\n }\"\n />\n </a>\n } @else {\n <button\n #menuItem\n type=\"button\"\n class=\"aeris-mega-menu__trigger\"\n role=\"menuitem\"\n [id]=\"entry.id\"\n [disabled]=\"entry.disabled\"\n [attr.aria-label]=\"entry.item.ariaLabel ?? entry.item.label\"\n [attr.aria-haspopup]=\"entry.panelGroups.length ? 'menu' : null\"\n [attr.aria-expanded]=\"entry.panelGroups.length ? entry.open : null\"\n [attr.aria-controls]=\"entry.panelGroups.length ? entry.id + '-panel' : null\"\n [attr.tabindex]=\"entry.active && !entry.disabled ? 0 : -1\"\n [attr.data-aeris-mega-menu-path]=\"entry.pathKey\"\n (click)=\"activateRoot($event, entry)\"\n (focus)=\"setActivePath(entry.path)\"\n (mouseenter)=\"openRootFromPointer(entry)\"\n (keydown)=\"handleRootKeydown($event, entry)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"itemContent\"\n [ngTemplateOutletContext]=\"{\n $implicit: entry,\n root: true,\n hasPanel: entry.panelGroups.length > 0,\n }\"\n />\n </button>\n }\n\n @if (entry.open && entry.panelGroups.length) {\n <div\n class=\"aeris-mega-menu__panel\"\n role=\"menu\"\n [id]=\"entry.id + '-panel'\"\n [attr.aria-label]=\"entry.item.label ? entry.item.label + ' menu' : null\"\n animate.enter=\"aeris-overlay-enter\"\n animate.leave=\"aeris-overlay-leave\"\n >\n <div class=\"aeris-mega-menu__panel-grid\">\n @for (group of entry.panelGroups; track group.id ?? group.label ?? $index) {\n <section class=\"aeris-mega-menu__group\">\n @if (group.label || group.description) {\n <header class=\"aeris-mega-menu__group-header\">\n @if (group.label) {\n <h3>{{ group.label }}</h3>\n }\n @if (group.description) {\n <p>{{ group.description }}</p>\n }\n </header>\n }\n <ng-container\n [ngTemplateOutlet]=\"panelItems\"\n [ngTemplateOutletContext]=\"{\n $implicit: group.items,\n root: entry,\n group,\n groupIndex: $index,\n prefix: [],\n level: 1,\n }\"\n />\n </section>\n }\n </div>\n </div>\n }\n </li>\n }\n </ul>\n </nav>\n `,\n styleUrl: './aeris-mega-menu.scss',\n host: {\n class: 'aeris-mega-menu',\n '[attr.data-orientation]': 'orientation()',\n '[attr.data-size]': 'size()',\n },\n})\nexport class AerisMegaMenu<T = unknown> {\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly injector = inject(Injector);\n private readonly generatedId = `aeris-mega-menu-${++nextMegaMenuId}`;\n\n protected readonly itemTemplate = contentChild(AerisMegaMenuItemTemplate<T>, {\n descendants: false,\n });\n protected readonly menuItems = viewChildren<ElementRef<HTMLElement>>('menuItem');\n protected readonly activePathKey = signal('0');\n protected readonly openRootIndex = signal<number | null>(null);\n\n readonly id = input(this.generatedId);\n readonly model = input<readonly AerisMegaMenuItem<T>[]>([]);\n readonly orientation = input<AerisMegaMenuOrientation>('horizontal');\n readonly size = input<AerisMegaMenuSize>('md');\n readonly ariaLabel = input('Mega menu');\n readonly ariaLabelledBy = input('');\n readonly openOnHover = input(true, { transform: booleanAttribute });\n readonly closeOnMouseLeave = input(true, { transform: booleanAttribute });\n readonly closeOnSelect = input(true, { transform: booleanAttribute });\n readonly navigationHandler = input<AerisMegaMenuNavigationHandler>();\n\n readonly itemSelected = output<AerisMegaMenuItemEvent<T>>();\n readonly opened = output<AerisMegaMenuVisibilityEvent<T>>();\n readonly closed = output<AerisMegaMenuVisibilityEvent<T>>();\n\n protected readonly rootEntries = computed(() =>\n this.visibleItems(this.model()).map((item, index) =>\n this.createEntry(item, [index], 0, this.openRootIndex() === index),\n ),\n );\n\n constructor() {\n effect((onCleanup) => {\n if (this.openRootIndex() === null) return;\n const document = this.host.nativeElement.ownerDocument;\n ɵregisterAerisOverlay(document, this.host.nativeElement, () => {\n this.close();\n return true;\n });\n const pointerdown = (event: PointerEvent) => this.handleDocumentPointerdown(event);\n const keydown = (event: KeyboardEvent) => this.handleDocumentKeydown(event);\n document.addEventListener('pointerdown', pointerdown);\n document.addEventListener('keydown', keydown);\n onCleanup(() => {\n ɵunregisterAerisOverlay(document, this.host.nativeElement);\n document.removeEventListener('pointerdown', pointerdown);\n document.removeEventListener('keydown', keydown);\n });\n });\n }\n\n open(index: number, originalEvent: Event | null = null): void {\n const entry = this.rootEntries()[index];\n if (!entry || entry.disabled || !entry.panelGroups.length) return;\n this.openRootIndex.set(index);\n this.activePathKey.set(entry.pathKey);\n this.opened.emit({\n originalEvent,\n visible: true,\n root: entry.item,\n reason: 'api',\n });\n }\n\n close(originalEvent: Event | null = null, reason: AerisMegaMenuCloseReason = 'api'): void {\n const entry =\n this.openRootIndex() == null ? null : this.rootEntries()[this.openRootIndex() ?? -1];\n this.openRootIndex.set(null);\n this.closed.emit({\n originalEvent,\n visible: false,\n root: entry?.item ?? null,\n reason,\n });\n }\n\n toggle(index: number, originalEvent: Event | null = null): void {\n if (this.openRootIndex() === index) {\n this.close(originalEvent);\n } else {\n this.open(index, originalEvent);\n }\n }\n\n focus(): void {\n this.focusEntry(this.rootEntries().find((entry) => entry.active) ?? this.rootEntries()[0]);\n }\n\n protected visibleItems(\n items: readonly AerisMegaMenuItem<T>[] = [],\n ): readonly AerisMegaMenuItem<T>[] {\n return items.filter((item) => item.visible !== false);\n }\n\n protected activateRoot(event: MouseEvent | KeyboardEvent, entry: AerisMegaMenuEntry<T>): void {\n if (entry.disabled) {\n event.preventDefault();\n return;\n }\n\n if (entry.panelGroups.length) {\n event.preventDefault();\n this.toggle(entry.path[0] ?? 0, event);\n return;\n }\n\n this.activateItem(event, entry, entry.item, null);\n }\n\n protected activateItem(\n event: MouseEvent | KeyboardEvent,\n entry: AerisMegaMenuEntry<T>,\n root: AerisMegaMenuItem<T>,\n group: AerisMegaMenuGroup<T> | null,\n ): void {\n if (entry.disabled) {\n event.preventDefault();\n return;\n }\n\n const itemEvent = {\n originalEvent: event,\n item: entry.item,\n path: entry.path,\n root,\n group,\n };\n entry.item.command?.(itemEvent);\n this.itemSelected.emit(itemEvent);\n if (entry.item.routerLink && this.navigationHandler()) {\n event.preventDefault();\n this.navigationHandler()?.(entry.item.routerLink, event);\n }\n if (this.closeOnSelect()) this.close(event, 'select');\n }\n\n protected openRootFromPointer(entry: AerisMegaMenuEntry<T>): void {\n if (!this.openOnHover() || entry.disabled || !entry.panelGroups.length) return;\n this.open(entry.path[0] ?? 0);\n }\n\n protected handleNavMouseLeave(event: MouseEvent): void {\n if (this.closeOnMouseLeave() && this.openRootIndex() !== null) {\n this.close(event, 'mouseleave');\n }\n }\n\n protected setActivePath(path: readonly number[]): void {\n this.activePathKey.set(this.pathKey(path));\n }\n\n protected handleRootKeydown(event: KeyboardEvent, entry: AerisMegaMenuEntry<T>): void {\n switch (event.key) {\n case 'ArrowRight':\n event.preventDefault();\n this.focusRootSibling(entry, this.orientation() === 'horizontal' ? 1 : 0);\n break;\n case 'ArrowLeft':\n event.preventDefault();\n this.focusRootSibling(entry, this.orientation() === 'horizontal' ? -1 : 0);\n break;\n case 'ArrowDown':\n event.preventDefault();\n if (entry.panelGroups.length) {\n this.open(entry.path[0] ?? 0, event);\n this.focusFirstPanelItem(entry);\n } else {\n this.focusRootSibling(entry, this.orientation() === 'vertical' ? 1 : 0);\n }\n break;\n case 'ArrowUp':\n event.preventDefault();\n if (this.orientation() === 'vertical') {\n this.focusRootSibling(entry, -1);\n } else if (entry.panelGroups.length) {\n this.open(entry.path[0] ?? 0, event);\n this.focusLastPanelItem(entry);\n }\n break;\n case 'Home':\n event.preventDefault();\n this.focusEntry(this.rootEntries()[0]);\n break;\n case 'End':\n event.preventDefault();\n this.focusEntry(this.rootEntries().at(-1));\n break;\n case 'Enter':\n case ' ':\n event.preventDefault();\n this.activateRoot(event, entry);\n break;\n case 'Escape':\n this.close(event, 'escape');\n break;\n }\n }\n\n protected handlePanelKeydown(event: KeyboardEvent, entry: AerisMegaMenuEntry<T>): void {\n const items = this.panelFocusableEntries();\n const current = items.findIndex((item) => item.pathKey === entry.pathKey);\n switch (event.key) {\n case 'ArrowDown':\n event.preventDefault();\n this.focusEntry(items[(current + 1 + items.length) % items.length]);\n break;\n case 'ArrowUp':\n event.preventDefault();\n this.focusEntry(items[(current - 1 + items.length) % items.length]);\n break;\n case 'ArrowRight':\n event.preventDefault();\n this.focusEntry(items[(current + 1 + items.length) % items.length]);\n break;\n case 'ArrowLeft':\n event.preventDefault();\n this.focusEntry(items[(current - 1 + items.length) % items.length]);\n break;\n case 'Home':\n event.preventDefault();\n this.focusEntry(items[0]);\n break;\n case 'End':\n event.preventDefault();\n this.focusEntry(items.at(-1));\n break;\n case 'Enter':\n case ' ':\n event.preventDefault();\n this.activateItem(event, entry, this.openRootEntry()?.item ?? entry.item, null);\n break;\n case 'Escape':\n event.preventDefault();\n const root = this.openRootEntry();\n this.close(event, 'escape');\n this.focusEntry(root);\n break;\n case 'Tab':\n this.close(event, 'outside');\n break;\n }\n }\n\n protected handleDocumentPointerdown(event: PointerEvent): void {\n if (this.openRootIndex() == null) return;\n const target = event.target;\n if (target instanceof Node && this.host.nativeElement.contains(target)) return;\n this.close(event, 'outside');\n }\n\n protected handleDocumentKeydown(event: KeyboardEvent): void {\n if (event.key !== 'Escape' || this.openRootIndex() == null) return;\n this.close(event, 'escape');\n }\n\n protected itemContext(\n entry: AerisMegaMenuEntry<T>,\n root: boolean,\n hasPanel: boolean,\n ): AerisMegaMenuItemTemplateContext<T> {\n return {\n $implicit: entry.item,\n item: entry.item,\n path: entry.path,\n level: entry.level,\n root,\n active: entry.active,\n open: entry.open,\n disabled: entry.disabled,\n hasPanel,\n };\n }\n\n protected panelPath(\n rootPath: readonly number[],\n groupIndex: number,\n index: number,\n prefix: readonly number[],\n ): readonly number[] {\n return [...rootPath, groupIndex, ...prefix, index];\n }\n\n protected panelEntry(\n item: AerisMegaMenuItem<T>,\n path: readonly number[],\n level: number,\n ): AerisMegaMenuEntry<T> {\n return this.createEntry(item, path, level, false);\n }\n\n private createEntry(\n item: AerisMegaMenuItem<T>,\n path: readonly number[],\n level: number,\n open: boolean,\n ): AerisMegaMenuEntry<T> {\n const key = this.pathKey(path);\n return {\n item,\n path,\n pathKey: key,\n id: item.id ?? `${this.id()}-item-${key.replace(/\\./g, '-')}`,\n level,\n disabled: !!item.disabled,\n active: this.activePathKey() === key,\n open,\n href: this.resolveHref(item),\n panelGroups: level === 0 ? this.groupsFor(item) : [],\n };\n }\n\n private groupsFor(item: AerisMegaMenuItem<T> | undefined): readonly AerisMegaMenuGroup<T>[] {\n if (!item) return [];\n if (item.groups?.length) {\n return item.groups\n .filter((group) => group.items.some((child) => child.visible !== false))\n .map((group) => ({ ...group, items: this.visibleItems(group.items) }));\n }\n if (item.items?.length) {\n return [{ items: this.visibleItems(item.items) }];\n }\n return [];\n }\n\n private focusRootSibling(entry: AerisMegaMenuEntry<T>, step: -1 | 0 | 1): void {\n if (step === 0) return;\n const entries = this.rootEntries().filter((item) => !item.disabled);\n const current = entries.findIndex((item) => item.pathKey === entry.pathKey);\n this.focusEntry(entries[(current + step + entries.length) % entries.length]);\n }\n\n private focusFirstPanelItem(entry: AerisMegaMenuEntry<T>): void {\n afterNextRender(\n () => {\n this.focusEntry(this.panelFocusableEntries(entry)[0]);\n },\n { injector: this.injector },\n );\n }\n\n private focusLastPanelItem(entry: AerisMegaMenuEntry<T>): void {\n afterNextRender(\n () => {\n this.focusEntry(this.panelFocusableEntries(entry).at(-1));\n },\n { injector: this.injector },\n );\n }\n\n private focusEntry(entry: AerisMegaMenuEntry<T> | undefined): void {\n if (!entry) return;\n this.activePathKey.set(entry.pathKey);\n afterNextRender(\n () => {\n this.menuItems()\n .find(\n ({ nativeElement }) =>\n nativeElement.getAttribute('data-aeris-mega-menu-path') === entry.pathKey,\n )\n ?.nativeElement.focus();\n },\n { injector: this.injector },\n );\n }\n\n private panelFocusableEntries(root = this.openRootEntry()): readonly AerisMegaMenuEntry<T>[] {\n if (!root) return [];\n return root.panelGroups.flatMap((group, groupIndex) =>\n this.flattenPanelItems(group.items, root.path, group, groupIndex, []),\n );\n }\n\n private flattenPanelItems(\n items: readonly AerisMegaMenuItem<T>[],\n rootPath: readonly number[],\n group: AerisMegaMenuGroup<T>,\n groupIndex: number,\n prefix: readonly number[],\n ): readonly AerisMegaMenuEntry<T>[] {\n return this.visibleItems(items)\n .flatMap((item, index) => {\n if (item.separator) return [];\n const path = this.panelPath(rootPath, groupIndex, index, prefix);\n const entry = this.createEntry(item, path, prefix.length + 1, false);\n return [\n entry,\n ...this.flattenPanelItems(item.items ?? [], rootPath, group, groupIndex, [\n ...prefix,\n index,\n ]),\n ];\n })\n .filter((entry) => !entry.disabled);\n }\n\n private openRootEntry(): AerisMegaMenuEntry<T> | undefined {\n const index = this.openRootIndex();\n return index == null ? undefined : this.rootEntries()[index];\n }\n\n private resolveHref(item: AerisMegaMenuItem<T>): string | null {\n if (item.url) return item.url;\n if (!item.routerLink) return null;\n if (typeof item.routerLink === 'string') return item.routerLink;\n return `/${item.routerLink\n .map((segment) => String(segment).replace(/^\\/+|\\/+$/g, ''))\n .filter(Boolean)\n .join('/')}`;\n }\n\n private pathKey(path: readonly number[]): string {\n return path.join('.');\n }\n}\n\nexport const AerisMegaMenuModule = [AerisMegaMenu, AerisMegaMenuItemTemplate] as const;\n"],"mappings":";;;;AAiGA,IAAa,4BAAb,MAAa,0BAAyB;CAC3B,WAAW,OAAyD,WAAW;CAExF,OAAO,uBACL,YACA,SAAgB;EAEhB,OAAO;CACT;CARW,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAyB,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAzB,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAyB,cAAA;EAAA,UAAA;EAAA,UAAA;CAAA,CAAA;;AAAzB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAyB,YAAA,CAAA;EADrC,MAAA;EAAU,MAAA,CAAA,EAAE,UAAU,iCAAgC,CAAE;;;AAYzD,IAAI,iBAAiB;AAkPrB,IAAa,gBAAb,MAAa,cAAa;CACP,OAAO,OAAgC,UAAU;CACjD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GAAA,CAAA;EAAA,CAAA;EAAA,gBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,aAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,mBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,eAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,mBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,cAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,cAAA;EAAA,CAAA;EAAA,QAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,QAAA;EAAA,CAAA;EAAA,QAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,QAAA;EAAA,CAAA;CAAA;AAAA,CAAA;AAyZjF,MAAa,sBAAsB,CAAC,eAAe,yBAAyB"}
1
+ {"version":3,"file":"aeris-ui-core-mega-menu.mjs","names":[],"sources":["../../../projects/aeris-ui/mega-menu/aeris-mega-menu.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport {\n Component,\n Directive,\n ElementRef,\n Injector,\n TemplateRef,\n afterNextRender,\n booleanAttribute,\n computed,\n contentChild,\n effect,\n inject,\n input,\n output,\n signal,\n viewChildren,\n} from '@angular/core';\nimport { ɵAerisIcon, ɵregisterAerisOverlay, ɵunregisterAerisOverlay } from '@aeris-ui/core';\n\nexport type AerisMegaMenuOrientation = 'horizontal' | 'vertical';\nexport type AerisMegaMenuSize = 'sm' | 'md' | 'lg';\nexport type AerisMegaMenuCloseReason = 'api' | 'escape' | 'outside' | 'select' | 'mouseleave';\n\nexport interface AerisMegaMenuItem<T = unknown> {\n readonly id?: string;\n readonly label?: string;\n readonly description?: string;\n readonly ariaLabel?: string;\n readonly icon?: string;\n readonly badge?: string | number;\n readonly disabled?: boolean;\n readonly visible?: boolean;\n readonly separator?: boolean;\n readonly url?: string;\n readonly routerLink?: string | readonly (string | number)[];\n readonly target?: '_blank' | '_self' | '_parent' | '_top' | string;\n readonly rel?: string;\n readonly items?: readonly AerisMegaMenuItem<T>[];\n readonly groups?: readonly AerisMegaMenuGroup<T>[];\n readonly data?: T;\n readonly command?: (event: AerisMegaMenuItemEvent<T>) => void;\n}\n\nexport interface AerisMegaMenuGroup<T = unknown> {\n readonly id?: string;\n readonly label?: string;\n readonly description?: string;\n readonly items: readonly AerisMegaMenuItem<T>[];\n}\n\nexport interface AerisMegaMenuItemEvent<T = unknown> {\n readonly originalEvent: MouseEvent | KeyboardEvent;\n readonly item: AerisMegaMenuItem<T>;\n readonly path: readonly number[];\n readonly root: AerisMegaMenuItem<T>;\n readonly group: AerisMegaMenuGroup<T> | null;\n}\n\nexport interface AerisMegaMenuVisibilityEvent<T = unknown> {\n readonly originalEvent: Event | null;\n readonly visible: boolean;\n readonly root: AerisMegaMenuItem<T> | null;\n readonly reason: AerisMegaMenuCloseReason;\n}\n\nexport interface AerisMegaMenuItemTemplateContext<T = unknown> {\n readonly $implicit: AerisMegaMenuItem<T>;\n readonly item: AerisMegaMenuItem<T>;\n readonly path: readonly number[];\n readonly level: number;\n readonly root: boolean;\n readonly active: boolean;\n readonly open: boolean;\n readonly disabled: boolean;\n readonly hasPanel: boolean;\n}\n\nexport type AerisMegaMenuNavigationHandler = (\n link: string | readonly (string | number)[],\n event: MouseEvent | KeyboardEvent,\n) => void;\n\ninterface AerisMegaMenuEntry<T> {\n readonly item: AerisMegaMenuItem<T>;\n readonly path: readonly number[];\n readonly pathKey: string;\n readonly id: string;\n readonly level: number;\n readonly disabled: boolean;\n readonly active: boolean;\n readonly open: boolean;\n readonly href: string | null;\n readonly panelGroups: readonly AerisMegaMenuGroup<T>[];\n}\n\n@Directive({ selector: 'ng-template[aerisMegaMenuItem]' })\nexport class AerisMegaMenuItemTemplate<T = unknown> {\n readonly template = inject<TemplateRef<AerisMegaMenuItemTemplateContext<T>>>(TemplateRef);\n\n static ngTemplateContextGuard<T>(\n _directive: AerisMegaMenuItemTemplate<T>,\n context: unknown,\n ): context is AerisMegaMenuItemTemplateContext<T> {\n return true;\n }\n}\n\nlet nextMegaMenuId = 0;\n\n@Component({\n selector: 'aeris-mega-menu',\n imports: [ɵAerisIcon, NgTemplateOutlet],\n template: `\n <ng-template #itemContent let-entry let-root=\"root\" let-hasPanel=\"hasPanel\">\n <ng-container\n [ngTemplateOutlet]=\"itemTemplate()?.template ?? defaultItemTemplate\"\n [ngTemplateOutletContext]=\"itemContext(entry, root, hasPanel)\"\n />\n </ng-template>\n\n <ng-template #defaultItemTemplate let-item let-root=\"root\" let-hasPanel=\"hasPanel\">\n @if (item.icon) {\n <span class=\"aeris-mega-menu__icon\" aria-hidden=\"true\">{{ item.icon }}</span>\n }\n <span class=\"aeris-mega-menu__copy\">\n <span class=\"aeris-mega-menu__label\">{{ item.label }}</span>\n @if (item.description) {\n <span class=\"aeris-mega-menu__description\">{{ item.description }}</span>\n }\n </span>\n @if (item.badge !== undefined && item.badge !== null) {\n <span class=\"aeris-mega-menu__badge\">{{ item.badge }}</span>\n }\n @if (hasPanel) {\n @if (submenuIconTemplate(); as customIcon) {\n <span\n class=\"aeris-custom-icon aeris-mega-menu__chevron\"\n aria-hidden=\"true\"\n data-aeris-custom-icon\n ><ng-container [ngTemplateOutlet]=\"customIcon\"\n /></span>\n } @else {\n <span\n aerisInternalIcon=\"chevron\"\n class=\"aeris-mega-menu__chevron\"\n aria-hidden=\"true\"\n ></span>\n }\n }\n </ng-template>\n\n <ng-template\n #panelItems\n let-items\n let-root=\"root\"\n let-group=\"group\"\n let-groupIndex=\"groupIndex\"\n let-prefix=\"prefix\"\n let-level=\"level\"\n >\n <ul class=\"aeris-mega-menu__panel-list\" role=\"group\">\n @for (item of visibleItems(items); track item.id ?? item.label ?? $index) {\n @if (item.separator) {\n <li class=\"aeris-mega-menu__separator\" role=\"separator\"></li>\n } @else {\n @let path = panelPath(root.path, groupIndex, $index, prefix);\n @let childEntry = panelEntry(item, path, level);\n <li role=\"none\">\n @if (childEntry.href) {\n <a\n #menuItem\n class=\"aeris-mega-menu__panel-item\"\n role=\"menuitem\"\n [id]=\"childEntry.id\"\n [attr.href]=\"childEntry.disabled ? null : childEntry.href\"\n [attr.target]=\"item.target || null\"\n [attr.rel]=\"item.rel || (item.target === '_blank' ? 'noopener noreferrer' : null)\"\n [attr.aria-label]=\"item.ariaLabel ?? item.label\"\n [attr.aria-disabled]=\"childEntry.disabled || null\"\n [attr.tabindex]=\"childEntry.active && !childEntry.disabled ? 0 : -1\"\n [attr.data-aeris-mega-menu-path]=\"childEntry.pathKey\"\n (click)=\"activateItem($event, childEntry, root.item, group)\"\n (focus)=\"setActivePath(childEntry.path)\"\n (keydown)=\"handlePanelKeydown($event, childEntry)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"itemContent\"\n [ngTemplateOutletContext]=\"{\n $implicit: childEntry,\n root: false,\n hasPanel: false,\n }\"\n />\n </a>\n } @else {\n <button\n #menuItem\n type=\"button\"\n class=\"aeris-mega-menu__panel-item\"\n role=\"menuitem\"\n [id]=\"childEntry.id\"\n [disabled]=\"childEntry.disabled\"\n [attr.aria-label]=\"item.ariaLabel ?? item.label\"\n [attr.tabindex]=\"childEntry.active && !childEntry.disabled ? 0 : -1\"\n [attr.data-aeris-mega-menu-path]=\"childEntry.pathKey\"\n (click)=\"activateItem($event, childEntry, root.item, group)\"\n (focus)=\"setActivePath(childEntry.path)\"\n (keydown)=\"handlePanelKeydown($event, childEntry)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"itemContent\"\n [ngTemplateOutletContext]=\"{\n $implicit: childEntry,\n root: false,\n hasPanel: false,\n }\"\n />\n </button>\n }\n\n @if (item.items?.length) {\n <ng-container\n [ngTemplateOutlet]=\"panelItems\"\n [ngTemplateOutletContext]=\"{\n $implicit: item.items,\n root,\n group,\n groupIndex,\n prefix: childEntry.path,\n level: level + 1,\n }\"\n />\n }\n </li>\n }\n }\n </ul>\n </ng-template>\n\n <nav\n class=\"aeris-mega-menu__nav\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n (mouseleave)=\"handleNavMouseLeave($event)\"\n >\n <ul class=\"aeris-mega-menu__root\" role=\"menubar\" [attr.aria-orientation]=\"orientation()\">\n @for (entry of rootEntries(); track entry.id) {\n <li class=\"aeris-mega-menu__root-item\" role=\"none\" [attr.data-open]=\"entry.open || null\">\n @if (entry.href) {\n <a\n #menuItem\n class=\"aeris-mega-menu__trigger\"\n role=\"menuitem\"\n [id]=\"entry.id\"\n [attr.href]=\"entry.disabled ? null : entry.href\"\n [attr.target]=\"entry.item.target || null\"\n [attr.rel]=\"\n entry.item.rel || (entry.item.target === '_blank' ? 'noopener noreferrer' : null)\n \"\n [attr.aria-label]=\"entry.item.ariaLabel ?? entry.item.label\"\n [attr.aria-disabled]=\"entry.disabled || null\"\n [attr.aria-haspopup]=\"entry.panelGroups.length ? 'menu' : null\"\n [attr.aria-expanded]=\"entry.panelGroups.length ? entry.open : null\"\n [attr.aria-controls]=\"entry.panelGroups.length ? entry.id + '-panel' : null\"\n [attr.tabindex]=\"entry.active && !entry.disabled ? 0 : -1\"\n [attr.data-aeris-mega-menu-path]=\"entry.pathKey\"\n (click)=\"activateRoot($event, entry)\"\n (focus)=\"setActivePath(entry.path)\"\n (mouseenter)=\"openRootFromPointer(entry)\"\n (keydown)=\"handleRootKeydown($event, entry)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"itemContent\"\n [ngTemplateOutletContext]=\"{\n $implicit: entry,\n root: true,\n hasPanel: entry.panelGroups.length > 0,\n }\"\n />\n </a>\n } @else {\n <button\n #menuItem\n type=\"button\"\n class=\"aeris-mega-menu__trigger\"\n role=\"menuitem\"\n [id]=\"entry.id\"\n [disabled]=\"entry.disabled\"\n [attr.aria-label]=\"entry.item.ariaLabel ?? entry.item.label\"\n [attr.aria-haspopup]=\"entry.panelGroups.length ? 'menu' : null\"\n [attr.aria-expanded]=\"entry.panelGroups.length ? entry.open : null\"\n [attr.aria-controls]=\"entry.panelGroups.length ? entry.id + '-panel' : null\"\n [attr.tabindex]=\"entry.active && !entry.disabled ? 0 : -1\"\n [attr.data-aeris-mega-menu-path]=\"entry.pathKey\"\n (click)=\"activateRoot($event, entry)\"\n (focus)=\"setActivePath(entry.path)\"\n (mouseenter)=\"openRootFromPointer(entry)\"\n (keydown)=\"handleRootKeydown($event, entry)\"\n >\n <ng-container\n [ngTemplateOutlet]=\"itemContent\"\n [ngTemplateOutletContext]=\"{\n $implicit: entry,\n root: true,\n hasPanel: entry.panelGroups.length > 0,\n }\"\n />\n </button>\n }\n\n @if (entry.open && entry.panelGroups.length) {\n <div\n class=\"aeris-mega-menu__panel\"\n role=\"menu\"\n [id]=\"entry.id + '-panel'\"\n [attr.aria-label]=\"entry.item.label ? entry.item.label + ' menu' : null\"\n animate.enter=\"aeris-overlay-enter\"\n animate.leave=\"aeris-overlay-leave\"\n >\n <div class=\"aeris-mega-menu__panel-grid\">\n @for (group of entry.panelGroups; track group.id ?? group.label ?? $index) {\n <section class=\"aeris-mega-menu__group\">\n @if (group.label || group.description) {\n <header class=\"aeris-mega-menu__group-header\">\n @if (group.label) {\n <h3>{{ group.label }}</h3>\n }\n @if (group.description) {\n <p>{{ group.description }}</p>\n }\n </header>\n }\n <ng-container\n [ngTemplateOutlet]=\"panelItems\"\n [ngTemplateOutletContext]=\"{\n $implicit: group.items,\n root: entry,\n group,\n groupIndex: $index,\n prefix: [],\n level: 1,\n }\"\n />\n </section>\n }\n </div>\n </div>\n }\n </li>\n }\n </ul>\n </nav>\n `,\n styleUrl: './aeris-mega-menu.scss',\n host: {\n class: 'aeris-mega-menu',\n '[attr.data-orientation]': 'orientation()',\n '[attr.data-size]': 'size()',\n },\n})\nexport class AerisMegaMenu<T = unknown> {\n readonly submenuIconTemplate = input<TemplateRef<void>>();\n\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly injector = inject(Injector);\n private readonly generatedId = `aeris-mega-menu-${++nextMegaMenuId}`;\n\n protected readonly itemTemplate = contentChild(AerisMegaMenuItemTemplate<T>, {\n descendants: false,\n });\n protected readonly menuItems = viewChildren<ElementRef<HTMLElement>>('menuItem');\n protected readonly activePathKey = signal('0');\n protected readonly openRootIndex = signal<number | null>(null);\n\n readonly id = input(this.generatedId);\n readonly model = input<readonly AerisMegaMenuItem<T>[]>([]);\n readonly orientation = input<AerisMegaMenuOrientation>('horizontal');\n readonly size = input<AerisMegaMenuSize>('md');\n readonly ariaLabel = input('Mega menu');\n readonly ariaLabelledBy = input('');\n readonly openOnHover = input(true, { transform: booleanAttribute });\n readonly closeOnMouseLeave = input(true, { transform: booleanAttribute });\n readonly closeOnSelect = input(true, { transform: booleanAttribute });\n readonly navigationHandler = input<AerisMegaMenuNavigationHandler>();\n\n readonly itemSelected = output<AerisMegaMenuItemEvent<T>>();\n readonly opened = output<AerisMegaMenuVisibilityEvent<T>>();\n readonly closed = output<AerisMegaMenuVisibilityEvent<T>>();\n\n protected readonly rootEntries = computed(() =>\n this.visibleItems(this.model()).map((item, index) =>\n this.createEntry(item, [index], 0, this.openRootIndex() === index),\n ),\n );\n\n constructor() {\n effect((onCleanup) => {\n if (this.openRootIndex() === null) return;\n const document = this.host.nativeElement.ownerDocument;\n ɵregisterAerisOverlay(document, this.host.nativeElement, () => {\n this.close();\n return true;\n });\n const pointerdown = (event: PointerEvent) => this.handleDocumentPointerdown(event);\n const keydown = (event: KeyboardEvent) => this.handleDocumentKeydown(event);\n document.addEventListener('pointerdown', pointerdown);\n document.addEventListener('keydown', keydown);\n onCleanup(() => {\n ɵunregisterAerisOverlay(document, this.host.nativeElement);\n document.removeEventListener('pointerdown', pointerdown);\n document.removeEventListener('keydown', keydown);\n });\n });\n }\n\n open(index: number, originalEvent: Event | null = null): void {\n const entry = this.rootEntries()[index];\n if (!entry || entry.disabled || !entry.panelGroups.length) return;\n this.openRootIndex.set(index);\n this.activePathKey.set(entry.pathKey);\n this.opened.emit({\n originalEvent,\n visible: true,\n root: entry.item,\n reason: 'api',\n });\n }\n\n close(originalEvent: Event | null = null, reason: AerisMegaMenuCloseReason = 'api'): void {\n const entry =\n this.openRootIndex() == null ? null : this.rootEntries()[this.openRootIndex() ?? -1];\n this.openRootIndex.set(null);\n this.closed.emit({\n originalEvent,\n visible: false,\n root: entry?.item ?? null,\n reason,\n });\n }\n\n toggle(index: number, originalEvent: Event | null = null): void {\n if (this.openRootIndex() === index) {\n this.close(originalEvent);\n } else {\n this.open(index, originalEvent);\n }\n }\n\n focus(): void {\n this.focusEntry(this.rootEntries().find((entry) => entry.active) ?? this.rootEntries()[0]);\n }\n\n protected visibleItems(\n items: readonly AerisMegaMenuItem<T>[] = [],\n ): readonly AerisMegaMenuItem<T>[] {\n return items.filter((item) => item.visible !== false);\n }\n\n protected activateRoot(event: MouseEvent | KeyboardEvent, entry: AerisMegaMenuEntry<T>): void {\n if (entry.disabled) {\n event.preventDefault();\n return;\n }\n\n if (entry.panelGroups.length) {\n event.preventDefault();\n this.toggle(entry.path[0] ?? 0, event);\n return;\n }\n\n this.activateItem(event, entry, entry.item, null);\n }\n\n protected activateItem(\n event: MouseEvent | KeyboardEvent,\n entry: AerisMegaMenuEntry<T>,\n root: AerisMegaMenuItem<T>,\n group: AerisMegaMenuGroup<T> | null,\n ): void {\n if (entry.disabled) {\n event.preventDefault();\n return;\n }\n\n const itemEvent = {\n originalEvent: event,\n item: entry.item,\n path: entry.path,\n root,\n group,\n };\n entry.item.command?.(itemEvent);\n this.itemSelected.emit(itemEvent);\n if (entry.item.routerLink && this.navigationHandler()) {\n event.preventDefault();\n this.navigationHandler()?.(entry.item.routerLink, event);\n }\n if (this.closeOnSelect()) this.close(event, 'select');\n }\n\n protected openRootFromPointer(entry: AerisMegaMenuEntry<T>): void {\n if (!this.openOnHover() || entry.disabled || !entry.panelGroups.length) return;\n this.open(entry.path[0] ?? 0);\n }\n\n protected handleNavMouseLeave(event: MouseEvent): void {\n if (this.closeOnMouseLeave() && this.openRootIndex() !== null) {\n this.close(event, 'mouseleave');\n }\n }\n\n protected setActivePath(path: readonly number[]): void {\n this.activePathKey.set(this.pathKey(path));\n }\n\n protected handleRootKeydown(event: KeyboardEvent, entry: AerisMegaMenuEntry<T>): void {\n switch (event.key) {\n case 'ArrowRight':\n event.preventDefault();\n this.focusRootSibling(entry, this.orientation() === 'horizontal' ? 1 : 0);\n break;\n case 'ArrowLeft':\n event.preventDefault();\n this.focusRootSibling(entry, this.orientation() === 'horizontal' ? -1 : 0);\n break;\n case 'ArrowDown':\n event.preventDefault();\n if (entry.panelGroups.length) {\n this.open(entry.path[0] ?? 0, event);\n this.focusFirstPanelItem(entry);\n } else {\n this.focusRootSibling(entry, this.orientation() === 'vertical' ? 1 : 0);\n }\n break;\n case 'ArrowUp':\n event.preventDefault();\n if (this.orientation() === 'vertical') {\n this.focusRootSibling(entry, -1);\n } else if (entry.panelGroups.length) {\n this.open(entry.path[0] ?? 0, event);\n this.focusLastPanelItem(entry);\n }\n break;\n case 'Home':\n event.preventDefault();\n this.focusEntry(this.rootEntries()[0]);\n break;\n case 'End':\n event.preventDefault();\n this.focusEntry(this.rootEntries().at(-1));\n break;\n case 'Enter':\n case ' ':\n event.preventDefault();\n this.activateRoot(event, entry);\n break;\n case 'Escape':\n this.close(event, 'escape');\n break;\n }\n }\n\n protected handlePanelKeydown(event: KeyboardEvent, entry: AerisMegaMenuEntry<T>): void {\n const items = this.panelFocusableEntries();\n const current = items.findIndex((item) => item.pathKey === entry.pathKey);\n switch (event.key) {\n case 'ArrowDown':\n event.preventDefault();\n this.focusEntry(items[(current + 1 + items.length) % items.length]);\n break;\n case 'ArrowUp':\n event.preventDefault();\n this.focusEntry(items[(current - 1 + items.length) % items.length]);\n break;\n case 'ArrowRight':\n event.preventDefault();\n this.focusEntry(items[(current + 1 + items.length) % items.length]);\n break;\n case 'ArrowLeft':\n event.preventDefault();\n this.focusEntry(items[(current - 1 + items.length) % items.length]);\n break;\n case 'Home':\n event.preventDefault();\n this.focusEntry(items[0]);\n break;\n case 'End':\n event.preventDefault();\n this.focusEntry(items.at(-1));\n break;\n case 'Enter':\n case ' ':\n event.preventDefault();\n this.activateItem(event, entry, this.openRootEntry()?.item ?? entry.item, null);\n break;\n case 'Escape':\n event.preventDefault();\n const root = this.openRootEntry();\n this.close(event, 'escape');\n this.focusEntry(root);\n break;\n case 'Tab':\n this.close(event, 'outside');\n break;\n }\n }\n\n protected handleDocumentPointerdown(event: PointerEvent): void {\n if (this.openRootIndex() == null) return;\n const target = event.target;\n if (target instanceof Node && this.host.nativeElement.contains(target)) return;\n this.close(event, 'outside');\n }\n\n protected handleDocumentKeydown(event: KeyboardEvent): void {\n if (event.key !== 'Escape' || this.openRootIndex() == null) return;\n this.close(event, 'escape');\n }\n\n protected itemContext(\n entry: AerisMegaMenuEntry<T>,\n root: boolean,\n hasPanel: boolean,\n ): AerisMegaMenuItemTemplateContext<T> {\n return {\n $implicit: entry.item,\n item: entry.item,\n path: entry.path,\n level: entry.level,\n root,\n active: entry.active,\n open: entry.open,\n disabled: entry.disabled,\n hasPanel,\n };\n }\n\n protected panelPath(\n rootPath: readonly number[],\n groupIndex: number,\n index: number,\n prefix: readonly number[],\n ): readonly number[] {\n return [...rootPath, groupIndex, ...prefix, index];\n }\n\n protected panelEntry(\n item: AerisMegaMenuItem<T>,\n path: readonly number[],\n level: number,\n ): AerisMegaMenuEntry<T> {\n return this.createEntry(item, path, level, false);\n }\n\n private createEntry(\n item: AerisMegaMenuItem<T>,\n path: readonly number[],\n level: number,\n open: boolean,\n ): AerisMegaMenuEntry<T> {\n const key = this.pathKey(path);\n return {\n item,\n path,\n pathKey: key,\n id: item.id ?? `${this.id()}-item-${key.replace(/\\./g, '-')}`,\n level,\n disabled: !!item.disabled,\n active: this.activePathKey() === key,\n open,\n href: this.resolveHref(item),\n panelGroups: level === 0 ? this.groupsFor(item) : [],\n };\n }\n\n private groupsFor(item: AerisMegaMenuItem<T> | undefined): readonly AerisMegaMenuGroup<T>[] {\n if (!item) return [];\n if (item.groups?.length) {\n return item.groups\n .filter((group) => group.items.some((child) => child.visible !== false))\n .map((group) => ({ ...group, items: this.visibleItems(group.items) }));\n }\n if (item.items?.length) {\n return [{ items: this.visibleItems(item.items) }];\n }\n return [];\n }\n\n private focusRootSibling(entry: AerisMegaMenuEntry<T>, step: -1 | 0 | 1): void {\n if (step === 0) return;\n const entries = this.rootEntries().filter((item) => !item.disabled);\n const current = entries.findIndex((item) => item.pathKey === entry.pathKey);\n this.focusEntry(entries[(current + step + entries.length) % entries.length]);\n }\n\n private focusFirstPanelItem(entry: AerisMegaMenuEntry<T>): void {\n afterNextRender(\n () => {\n this.focusEntry(this.panelFocusableEntries(entry)[0]);\n },\n { injector: this.injector },\n );\n }\n\n private focusLastPanelItem(entry: AerisMegaMenuEntry<T>): void {\n afterNextRender(\n () => {\n this.focusEntry(this.panelFocusableEntries(entry).at(-1));\n },\n { injector: this.injector },\n );\n }\n\n private focusEntry(entry: AerisMegaMenuEntry<T> | undefined): void {\n if (!entry) return;\n this.activePathKey.set(entry.pathKey);\n afterNextRender(\n () => {\n this.menuItems()\n .find(\n ({ nativeElement }) =>\n nativeElement.getAttribute('data-aeris-mega-menu-path') === entry.pathKey,\n )\n ?.nativeElement.focus();\n },\n { injector: this.injector },\n );\n }\n\n private panelFocusableEntries(root = this.openRootEntry()): readonly AerisMegaMenuEntry<T>[] {\n if (!root) return [];\n return root.panelGroups.flatMap((group, groupIndex) =>\n this.flattenPanelItems(group.items, root.path, group, groupIndex, []),\n );\n }\n\n private flattenPanelItems(\n items: readonly AerisMegaMenuItem<T>[],\n rootPath: readonly number[],\n group: AerisMegaMenuGroup<T>,\n groupIndex: number,\n prefix: readonly number[],\n ): readonly AerisMegaMenuEntry<T>[] {\n return this.visibleItems(items)\n .flatMap((item, index) => {\n if (item.separator) return [];\n const path = this.panelPath(rootPath, groupIndex, index, prefix);\n const entry = this.createEntry(item, path, prefix.length + 1, false);\n return [\n entry,\n ...this.flattenPanelItems(item.items ?? [], rootPath, group, groupIndex, [\n ...prefix,\n index,\n ]),\n ];\n })\n .filter((entry) => !entry.disabled);\n }\n\n private openRootEntry(): AerisMegaMenuEntry<T> | undefined {\n const index = this.openRootIndex();\n return index == null ? undefined : this.rootEntries()[index];\n }\n\n private resolveHref(item: AerisMegaMenuItem<T>): string | null {\n if (item.url) return item.url;\n if (!item.routerLink) return null;\n if (typeof item.routerLink === 'string') return item.routerLink;\n return `/${item.routerLink\n .map((segment) => String(segment).replace(/^\\/+|\\/+$/g, ''))\n .filter(Boolean)\n .join('/')}`;\n }\n\n private pathKey(path: readonly number[]): string {\n return path.join('.');\n }\n}\n\nexport const AerisMegaMenuModule = [AerisMegaMenu, AerisMegaMenuItemTemplate] as const;\n"],"mappings":";;;;AAiGA,IAAa,4BAAb,MAAa,0BAAyB;CAC3B,WAAW,OAAyD,WAAW;CAExF,OAAO,uBACL,YACA,SAAgB;EAEhB,OAAO;CACT;CARW,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAyB,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAzB,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAyB,cAAA;EAAA,UAAA;EAAA,UAAA;CAAA,CAAA;;AAAzB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAyB,YAAA,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