@exhaustive-ui/core 3.0.0-alpha.0 → 3.0.0-alpha.1

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 (265) hide show
  1. package/fesm2022/exhaustive-ui-core-accordion.mjs +51 -78
  2. package/fesm2022/exhaustive-ui-core-accordion.mjs.map +1 -1
  3. package/fesm2022/exhaustive-ui-core-animateonscroll.mjs +72 -73
  4. package/fesm2022/exhaustive-ui-core-animateonscroll.mjs.map +1 -1
  5. package/fesm2022/exhaustive-ui-core-api.mjs +6 -13
  6. package/fesm2022/exhaustive-ui-core-api.mjs.map +1 -1
  7. package/fesm2022/exhaustive-ui-core-autocomplete.mjs +485 -683
  8. package/fesm2022/exhaustive-ui-core-autocomplete.mjs.map +1 -1
  9. package/fesm2022/exhaustive-ui-core-autofocus.mjs +21 -31
  10. package/fesm2022/exhaustive-ui-core-autofocus.mjs.map +1 -1
  11. package/fesm2022/exhaustive-ui-core-avatar.mjs +47 -63
  12. package/fesm2022/exhaustive-ui-core-avatar.mjs.map +1 -1
  13. package/fesm2022/exhaustive-ui-core-badge.mjs +88 -115
  14. package/fesm2022/exhaustive-ui-core-badge.mjs.map +1 -1
  15. package/fesm2022/exhaustive-ui-core-blockui.mjs +58 -91
  16. package/fesm2022/exhaustive-ui-core-blockui.mjs.map +1 -1
  17. package/fesm2022/exhaustive-ui-core-breadcrumb.mjs +155 -169
  18. package/fesm2022/exhaustive-ui-core-breadcrumb.mjs.map +1 -1
  19. package/fesm2022/exhaustive-ui-core-button.mjs +280 -385
  20. package/fesm2022/exhaustive-ui-core-button.mjs.map +1 -1
  21. package/fesm2022/exhaustive-ui-core-carousel.mjs +379 -451
  22. package/fesm2022/exhaustive-ui-core-carousel.mjs.map +1 -1
  23. package/fesm2022/exhaustive-ui-core-cascadeselect.mjs +388 -507
  24. package/fesm2022/exhaustive-ui-core-cascadeselect.mjs.map +1 -1
  25. package/fesm2022/exhaustive-ui-core-chart.mjs +75 -91
  26. package/fesm2022/exhaustive-ui-core-chart.mjs.map +1 -1
  27. package/fesm2022/exhaustive-ui-core-checkbox.mjs +109 -160
  28. package/fesm2022/exhaustive-ui-core-checkbox.mjs.map +1 -1
  29. package/fesm2022/exhaustive-ui-core-chip.mjs +98 -137
  30. package/fesm2022/exhaustive-ui-core-chip.mjs.map +1 -1
  31. package/fesm2022/exhaustive-ui-core-colorpicker.mjs +123 -190
  32. package/fesm2022/exhaustive-ui-core-colorpicker.mjs.map +1 -1
  33. package/fesm2022/exhaustive-ui-core-confirmdialog.mjs +157 -332
  34. package/fesm2022/exhaustive-ui-core-confirmdialog.mjs.map +1 -1
  35. package/fesm2022/exhaustive-ui-core-confirmpopup.mjs +187 -210
  36. package/fesm2022/exhaustive-ui-core-confirmpopup.mjs.map +1 -1
  37. package/fesm2022/exhaustive-ui-core-contextmenu.mjs +315 -361
  38. package/fesm2022/exhaustive-ui-core-contextmenu.mjs.map +1 -1
  39. package/fesm2022/exhaustive-ui-core-dataview.mjs +225 -272
  40. package/fesm2022/exhaustive-ui-core-dataview.mjs.map +1 -1
  41. package/fesm2022/exhaustive-ui-core-datepicker.mjs +1012 -1157
  42. package/fesm2022/exhaustive-ui-core-datepicker.mjs.map +1 -1
  43. package/fesm2022/exhaustive-ui-core-dialog.mjs +370 -507
  44. package/fesm2022/exhaustive-ui-core-dialog.mjs.map +1 -1
  45. package/fesm2022/exhaustive-ui-core-dock.mjs +87 -115
  46. package/fesm2022/exhaustive-ui-core-dock.mjs.map +1 -1
  47. package/fesm2022/exhaustive-ui-core-dragdrop.mjs +98 -105
  48. package/fesm2022/exhaustive-ui-core-dragdrop.mjs.map +1 -1
  49. package/fesm2022/exhaustive-ui-core-drawer.mjs +174 -235
  50. package/fesm2022/exhaustive-ui-core-drawer.mjs.map +1 -1
  51. package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs +42 -280
  52. package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs.map +1 -1
  53. package/fesm2022/exhaustive-ui-core-editor.mjs +109 -121
  54. package/fesm2022/exhaustive-ui-core-editor.mjs.map +1 -1
  55. package/fesm2022/exhaustive-ui-core-fieldset.mjs +90 -132
  56. package/fesm2022/exhaustive-ui-core-fieldset.mjs.map +1 -1
  57. package/fesm2022/exhaustive-ui-core-fileupload.mjs +486 -541
  58. package/fesm2022/exhaustive-ui-core-fileupload.mjs.map +1 -1
  59. package/fesm2022/exhaustive-ui-core-floatlabel.mjs +13 -16
  60. package/fesm2022/exhaustive-ui-core-floatlabel.mjs.map +1 -1
  61. package/fesm2022/exhaustive-ui-core-focustrap.mjs +44 -40
  62. package/fesm2022/exhaustive-ui-core-focustrap.mjs.map +1 -1
  63. package/fesm2022/exhaustive-ui-core-galleria.mjs +642 -853
  64. package/fesm2022/exhaustive-ui-core-galleria.mjs.map +1 -1
  65. package/fesm2022/exhaustive-ui-core-iconfield.mjs +15 -27
  66. package/fesm2022/exhaustive-ui-core-iconfield.mjs.map +1 -1
  67. package/fesm2022/exhaustive-ui-core-icons-baseicon.mjs +8 -13
  68. package/fesm2022/exhaustive-ui-core-icons-baseicon.mjs.map +1 -1
  69. package/fesm2022/exhaustive-ui-core-image.mjs +209 -251
  70. package/fesm2022/exhaustive-ui-core-image.mjs.map +1 -1
  71. package/fesm2022/exhaustive-ui-core-imagecompare.mjs +39 -48
  72. package/fesm2022/exhaustive-ui-core-imagecompare.mjs.map +1 -1
  73. package/fesm2022/exhaustive-ui-core-inplace.mjs +64 -98
  74. package/fesm2022/exhaustive-ui-core-inplace.mjs.map +1 -1
  75. package/fesm2022/exhaustive-ui-core-inputgroup.mjs +10 -20
  76. package/fesm2022/exhaustive-ui-core-inputgroup.mjs.map +1 -1
  77. package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs +15 -24
  78. package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs.map +1 -1
  79. package/fesm2022/exhaustive-ui-core-inputicon.mjs +11 -22
  80. package/fesm2022/exhaustive-ui-core-inputicon.mjs.map +1 -1
  81. package/fesm2022/exhaustive-ui-core-inputmask.mjs +423 -392
  82. package/fesm2022/exhaustive-ui-core-inputmask.mjs.map +1 -1
  83. package/fesm2022/exhaustive-ui-core-inputnumber.mjs +397 -469
  84. package/fesm2022/exhaustive-ui-core-inputnumber.mjs.map +1 -1
  85. package/fesm2022/exhaustive-ui-core-inputotp.mjs +75 -95
  86. package/fesm2022/exhaustive-ui-core-inputotp.mjs.map +1 -1
  87. package/fesm2022/exhaustive-ui-core-inputtext.mjs +27 -36
  88. package/fesm2022/exhaustive-ui-core-inputtext.mjs.map +1 -1
  89. package/fesm2022/exhaustive-ui-core-keyfilter.mjs +29 -46
  90. package/fesm2022/exhaustive-ui-core-keyfilter.mjs.map +1 -1
  91. package/fesm2022/exhaustive-ui-core-knob.mjs +140 -187
  92. package/fesm2022/exhaustive-ui-core-knob.mjs.map +1 -1
  93. package/fesm2022/exhaustive-ui-core-listbox.mjs +365 -546
  94. package/fesm2022/exhaustive-ui-core-listbox.mjs.map +1 -1
  95. package/fesm2022/exhaustive-ui-core-megamenu.mjs +320 -371
  96. package/fesm2022/exhaustive-ui-core-megamenu.mjs.map +1 -1
  97. package/fesm2022/exhaustive-ui-core-menu.mjs +298 -348
  98. package/fesm2022/exhaustive-ui-core-menu.mjs.map +1 -1
  99. package/fesm2022/exhaustive-ui-core-menubar.mjs +277 -372
  100. package/fesm2022/exhaustive-ui-core-menubar.mjs.map +1 -1
  101. package/fesm2022/exhaustive-ui-core-metergroup.mjs +138 -166
  102. package/fesm2022/exhaustive-ui-core-metergroup.mjs.map +1 -1
  103. package/fesm2022/exhaustive-ui-core-multiselect.mjs +647 -835
  104. package/fesm2022/exhaustive-ui-core-multiselect.mjs.map +1 -1
  105. package/fesm2022/exhaustive-ui-core-orderlist.mjs +337 -409
  106. package/fesm2022/exhaustive-ui-core-orderlist.mjs.map +1 -1
  107. package/fesm2022/exhaustive-ui-core-organizationchart.mjs +114 -175
  108. package/fesm2022/exhaustive-ui-core-organizationchart.mjs.map +1 -1
  109. package/fesm2022/exhaustive-ui-core-overlaybadge.mjs +22 -47
  110. package/fesm2022/exhaustive-ui-core-overlaybadge.mjs.map +1 -1
  111. package/fesm2022/exhaustive-ui-core-paginator.mjs +232 -320
  112. package/fesm2022/exhaustive-ui-core-paginator.mjs.map +1 -1
  113. package/fesm2022/exhaustive-ui-core-panel.mjs +114 -174
  114. package/fesm2022/exhaustive-ui-core-panel.mjs.map +1 -1
  115. package/fesm2022/exhaustive-ui-core-panelmenu.mjs +171 -282
  116. package/fesm2022/exhaustive-ui-core-panelmenu.mjs.map +1 -1
  117. package/fesm2022/exhaustive-ui-core-password.mjs +317 -377
  118. package/fesm2022/exhaustive-ui-core-password.mjs.map +1 -1
  119. package/fesm2022/exhaustive-ui-core-picklist.mjs +557 -655
  120. package/fesm2022/exhaustive-ui-core-picklist.mjs.map +1 -1
  121. package/fesm2022/exhaustive-ui-core-popover.mjs +154 -181
  122. package/fesm2022/exhaustive-ui-core-popover.mjs.map +1 -1
  123. package/fesm2022/exhaustive-ui-core-rating.mjs +87 -119
  124. package/fesm2022/exhaustive-ui-core-rating.mjs.map +1 -1
  125. package/fesm2022/exhaustive-ui-core-scroller.mjs +465 -596
  126. package/fesm2022/exhaustive-ui-core-scroller.mjs.map +1 -1
  127. package/fesm2022/exhaustive-ui-core-scrollpanel.mjs +147 -155
  128. package/fesm2022/exhaustive-ui-core-scrollpanel.mjs.map +1 -1
  129. package/fesm2022/exhaustive-ui-core-scrolltop.mjs +81 -115
  130. package/fesm2022/exhaustive-ui-core-scrolltop.mjs.map +1 -1
  131. package/fesm2022/exhaustive-ui-core-select.mjs +581 -784
  132. package/fesm2022/exhaustive-ui-core-select.mjs.map +1 -1
  133. package/fesm2022/exhaustive-ui-core-selectbutton.mjs +84 -120
  134. package/fesm2022/exhaustive-ui-core-selectbutton.mjs.map +1 -1
  135. package/fesm2022/exhaustive-ui-core-slider.mjs +322 -352
  136. package/fesm2022/exhaustive-ui-core-slider.mjs.map +1 -1
  137. package/fesm2022/exhaustive-ui-core-speeddial.mjs +209 -268
  138. package/fesm2022/exhaustive-ui-core-speeddial.mjs.map +1 -1
  139. package/fesm2022/exhaustive-ui-core-splitbutton.mjs +153 -249
  140. package/fesm2022/exhaustive-ui-core-splitbutton.mjs.map +1 -1
  141. package/fesm2022/exhaustive-ui-core-splitter.mjs +221 -237
  142. package/fesm2022/exhaustive-ui-core-splitter.mjs.map +1 -1
  143. package/fesm2022/exhaustive-ui-core-steps.mjs +56 -72
  144. package/fesm2022/exhaustive-ui-core-steps.mjs.map +1 -1
  145. package/fesm2022/exhaustive-ui-core-styleclass.mjs +145 -146
  146. package/fesm2022/exhaustive-ui-core-styleclass.mjs.map +1 -1
  147. package/fesm2022/exhaustive-ui-core-table.mjs +2213 -2543
  148. package/fesm2022/exhaustive-ui-core-table.mjs.map +1 -1
  149. package/fesm2022/exhaustive-ui-core-terminal.mjs +50 -67
  150. package/fesm2022/exhaustive-ui-core-terminal.mjs.map +1 -1
  151. package/fesm2022/exhaustive-ui-core-textarea.mjs +23 -36
  152. package/fesm2022/exhaustive-ui-core-textarea.mjs.map +1 -1
  153. package/fesm2022/exhaustive-ui-core-tieredmenu.mjs +318 -394
  154. package/fesm2022/exhaustive-ui-core-tieredmenu.mjs.map +1 -1
  155. package/fesm2022/exhaustive-ui-core-timeline.mjs +56 -74
  156. package/fesm2022/exhaustive-ui-core-timeline.mjs.map +1 -1
  157. package/fesm2022/exhaustive-ui-core-togglebutton.mjs +86 -129
  158. package/fesm2022/exhaustive-ui-core-togglebutton.mjs.map +1 -1
  159. package/fesm2022/exhaustive-ui-core-toggleswitch.mjs +57 -94
  160. package/fesm2022/exhaustive-ui-core-toggleswitch.mjs.map +1 -1
  161. package/fesm2022/exhaustive-ui-core-toolbar.mjs +36 -55
  162. package/fesm2022/exhaustive-ui-core-toolbar.mjs.map +1 -1
  163. package/fesm2022/exhaustive-ui-core-tooltip.mjs +264 -343
  164. package/fesm2022/exhaustive-ui-core-tooltip.mjs.map +1 -1
  165. package/fesm2022/exhaustive-ui-core-tree.mjs +508 -639
  166. package/fesm2022/exhaustive-ui-core-tree.mjs.map +1 -1
  167. package/fesm2022/exhaustive-ui-core-treeselect.mjs +327 -421
  168. package/fesm2022/exhaustive-ui-core-treeselect.mjs.map +1 -1
  169. package/fesm2022/exhaustive-ui-core-treetable.mjs +1267 -1473
  170. package/fesm2022/exhaustive-ui-core-treetable.mjs.map +1 -1
  171. package/package.json +5 -5
  172. package/schematics/migrations/remove-dead-inputs/migration.js +213 -7
  173. package/schematics/migrations/renamed-inputs/migration.js +97 -0
  174. package/schematics/migrations/styleclass-to-class/migration.js +92 -1
  175. package/schematics/migrations.json +7 -2
  176. package/schematics/utils/removed-inputs.js +0 -0
  177. package/schematics/utils/renamed-inputs.js +175 -0
  178. package/schematics/utils/styleclass.js +24 -8
  179. package/schematics/utils/versions.json +8 -8
  180. package/types/exhaustive-ui-core-accordion.d.ts +8 -24
  181. package/types/exhaustive-ui-core-animateonscroll.d.ts +19 -21
  182. package/types/exhaustive-ui-core-api.d.ts +2 -3
  183. package/types/exhaustive-ui-core-autocomplete.d.ts +103 -176
  184. package/types/exhaustive-ui-core-autofocus.d.ts +4 -7
  185. package/types/exhaustive-ui-core-avatar.d.ts +18 -25
  186. package/types/exhaustive-ui-core-badge.d.ts +13 -27
  187. package/types/exhaustive-ui-core-blockui.d.ts +18 -30
  188. package/types/exhaustive-ui-core-breadcrumb.d.ts +21 -22
  189. package/types/exhaustive-ui-core-button.d.ts +57 -89
  190. package/types/exhaustive-ui-core-carousel.d.ts +56 -82
  191. package/types/exhaustive-ui-core-cascadeselect.d.ts +77 -111
  192. package/types/exhaustive-ui-core-chart.d.ts +21 -29
  193. package/types/exhaustive-ui-core-checkbox.d.ts +25 -39
  194. package/types/exhaustive-ui-core-chip.d.ts +31 -38
  195. package/types/exhaustive-ui-core-colorpicker.d.ts +23 -57
  196. package/types/exhaustive-ui-core-confirmdialog.d.ts +39 -109
  197. package/types/exhaustive-ui-core-confirmpopup.d.ts +24 -43
  198. package/types/exhaustive-ui-core-contextmenu.d.ts +54 -71
  199. package/types/exhaustive-ui-core-dataview.d.ts +42 -65
  200. package/types/exhaustive-ui-core-datepicker.d.ts +109 -191
  201. package/types/exhaustive-ui-core-dialog.d.ts +73 -123
  202. package/types/exhaustive-ui-core-dock.d.ts +16 -25
  203. package/types/exhaustive-ui-core-dragdrop.d.ts +32 -36
  204. package/types/exhaustive-ui-core-drawer.d.ts +32 -64
  205. package/types/exhaustive-ui-core-dynamicdialog.d.ts +9 -54
  206. package/types/exhaustive-ui-core-editor.d.ts +15 -25
  207. package/types/exhaustive-ui-core-fieldset.d.ts +15 -35
  208. package/types/exhaustive-ui-core-fileupload.d.ts +69 -95
  209. package/types/exhaustive-ui-core-floatlabel.d.ts +4 -6
  210. package/types/exhaustive-ui-core-focustrap.d.ts +5 -10
  211. package/types/exhaustive-ui-core-galleria.d.ts +124 -194
  212. package/types/exhaustive-ui-core-iconfield.d.ts +5 -13
  213. package/types/exhaustive-ui-core-icons-baseicon.d.ts +4 -5
  214. package/types/exhaustive-ui-core-image.d.ts +35 -68
  215. package/types/exhaustive-ui-core-imagecompare.d.ts +19 -20
  216. package/types/exhaustive-ui-core-inplace.d.ts +30 -42
  217. package/types/exhaustive-ui-core-inputgroup.d.ts +2 -9
  218. package/types/exhaustive-ui-core-inputgroupaddon.d.ts +6 -10
  219. package/types/exhaustive-ui-core-inputicon.d.ts +4 -11
  220. package/types/exhaustive-ui-core-inputmask.d.ts +53 -66
  221. package/types/exhaustive-ui-core-inputnumber.d.ts +62 -84
  222. package/types/exhaustive-ui-core-inputotp.d.ts +16 -20
  223. package/types/exhaustive-ui-core-inputtext.d.ts +5 -8
  224. package/types/exhaustive-ui-core-keyfilter.d.ts +11 -15
  225. package/types/exhaustive-ui-core-knob.d.ts +45 -60
  226. package/types/exhaustive-ui-core-listbox.d.ts +90 -126
  227. package/types/exhaustive-ui-core-megamenu.d.ts +45 -66
  228. package/types/exhaustive-ui-core-menu.d.ts +33 -53
  229. package/types/exhaustive-ui-core-menubar.d.ts +38 -85
  230. package/types/exhaustive-ui-core-metergroup.d.ts +39 -48
  231. package/types/exhaustive-ui-core-multiselect.d.ts +166 -219
  232. package/types/exhaustive-ui-core-orderlist.d.ts +58 -81
  233. package/types/exhaustive-ui-core-organizationchart.d.ts +32 -67
  234. package/types/exhaustive-ui-core-overlaybadge.d.ts +10 -20
  235. package/types/exhaustive-ui-core-paginator.d.ts +41 -69
  236. package/types/exhaustive-ui-core-panel.d.ts +18 -45
  237. package/types/exhaustive-ui-core-panelmenu.d.ts +31 -76
  238. package/types/exhaustive-ui-core-password.d.ts +56 -93
  239. package/types/exhaustive-ui-core-picklist.d.ts +107 -121
  240. package/types/exhaustive-ui-core-popover.d.ts +23 -47
  241. package/types/exhaustive-ui-core-rating.d.ts +18 -26
  242. package/types/exhaustive-ui-core-scroller.d.ts +90 -120
  243. package/types/exhaustive-ui-core-scrollpanel.d.ts +35 -46
  244. package/types/exhaustive-ui-core-scrolltop.d.ts +28 -45
  245. package/types/exhaustive-ui-core-select.d.ts +137 -188
  246. package/types/exhaustive-ui-core-selectbutton.d.ts +35 -44
  247. package/types/exhaustive-ui-core-slider.d.ts +52 -67
  248. package/types/exhaustive-ui-core-speeddial.d.ts +40 -56
  249. package/types/exhaustive-ui-core-splitbutton.d.ts +31 -71
  250. package/types/exhaustive-ui-core-splitter.d.ts +47 -59
  251. package/types/exhaustive-ui-core-steps.d.ts +24 -31
  252. package/types/exhaustive-ui-core-styleclass.d.ts +27 -33
  253. package/types/exhaustive-ui-core-table.d.ts +349 -453
  254. package/types/exhaustive-ui-core-terminal.d.ts +10 -22
  255. package/types/exhaustive-ui-core-textarea.d.ts +7 -10
  256. package/types/exhaustive-ui-core-tieredmenu.d.ts +49 -84
  257. package/types/exhaustive-ui-core-timeline.d.ts +20 -28
  258. package/types/exhaustive-ui-core-togglebutton.d.ts +32 -48
  259. package/types/exhaustive-ui-core-toggleswitch.d.ts +26 -37
  260. package/types/exhaustive-ui-core-toolbar.d.ts +17 -25
  261. package/types/exhaustive-ui-core-tooltip.d.ts +53 -88
  262. package/types/exhaustive-ui-core-tree.d.ts +82 -119
  263. package/types/exhaustive-ui-core-treeselect.d.ts +63 -92
  264. package/types/exhaustive-ui-core-treetable.d.ts +203 -280
  265. package/types/exhaustive-ui-core-types-chip.d.ts +1 -1
@@ -1,6 +1,6 @@
1
1
  export * from '@exhaustive-ui/core/types/tieredmenu';
2
2
  import * as i0 from '@angular/core';
3
- import { Injectable, InjectionToken, inject, ElementRef, Renderer2, input, output, viewChild, signal, forwardRef, numberAttribute, booleanAttribute, Input, ViewEncapsulation, ChangeDetectionStrategy, Component, computed, contentChild, contentChildren, effect, NgModule } from '@angular/core';
3
+ import { Injectable, InjectionToken, inject, ElementRef, Renderer2, input, booleanAttribute, numberAttribute, output, viewChild, linkedSignal, afterEveryRender, forwardRef, ViewEncapsulation, ChangeDetectionStrategy, Component, computed, contentChild, contentChildren, signal, effect, NgModule } from '@angular/core';
4
4
  import { style } from '@exhaustive-ui/styles/tieredmenu';
5
5
  import { BaseStyle } from '@exhaustive-ui/core/base';
6
6
  import * as i2 from '@angular/common';
@@ -28,7 +28,7 @@ const classes = {
28
28
  root: ({ instance }) => [
29
29
  'p-tieredmenu p-component',
30
30
  {
31
- 'p-tieredmenu-overlay': instance.popup,
31
+ 'p-tieredmenu-overlay': instance.popup(),
32
32
  'p-tieredmenu-mobile': instance.queryMatches()
33
33
  }
34
34
  ],
@@ -130,32 +130,30 @@ class TieredMenuSub extends BaseComponent {
130
130
  el = inject(ElementRef);
131
131
  renderer = inject(Renderer2);
132
132
  tieredMenu = inject(TieredMenu);
133
- get visible() {
134
- return this._visible;
135
- }
136
- set visible(value) {
137
- this._visible = value;
138
- if (this._visible || this.root) {
139
- this.render.set(true);
140
- }
141
- }
142
- items;
143
- itemTemplate;
144
- root = false;
145
- autoDisplay;
146
- autoZIndex = true;
147
- baseZIndex = 0;
148
- popup;
149
- menuId;
150
- ariaLabel;
151
- ariaLabelledBy;
152
- level = 0;
153
- focusedItemId;
133
+ visible = input(false, /* @ts-ignore */
134
+ ...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
135
+ items = input.required(/* @ts-ignore */
136
+ ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
137
+ itemTemplate = input(undefined, /* @ts-ignore */
138
+ ...(ngDevMode ? [{ debugName: "itemTemplate" }] : /* istanbul ignore next */ []));
139
+ root = input(false, { ...(ngDevMode ? { debugName: "root" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
140
+ autoDisplay = input(undefined, { ...(ngDevMode ? { debugName: "autoDisplay" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
141
+ menuId = input(undefined, /* @ts-ignore */
142
+ ...(ngDevMode ? [{ debugName: "menuId" }] : /* istanbul ignore next */ []));
143
+ ariaLabel = input(undefined, /* @ts-ignore */
144
+ ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
145
+ ariaLabelledBy = input(undefined, /* @ts-ignore */
146
+ ...(ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []));
147
+ level = input(0, { ...(ngDevMode ? { debugName: "level" } : /* istanbul ignore next */ {}), transform: numberAttribute });
148
+ focusedItemId = input(undefined, /* @ts-ignore */
149
+ ...(ngDevMode ? [{ debugName: "focusedItemId" }] : /* istanbul ignore next */ []));
154
150
  activeItemPath = input([], /* @ts-ignore */
155
151
  ...(ngDevMode ? [{ debugName: "activeItemPath" }] : /* istanbul ignore next */ []));
156
- motionOptions;
157
- tabindex = 0;
158
- inlineStyles;
152
+ motionOptions = input(undefined, /* @ts-ignore */
153
+ ...(ngDevMode ? [{ debugName: "motionOptions" }] : /* istanbul ignore next */ []));
154
+ tabindex = input(0, { ...(ngDevMode ? { debugName: "tabindex" } : /* istanbul ignore next */ {}), transform: numberAttribute });
155
+ inlineStyles = input(undefined, /* @ts-ignore */
156
+ ...(ngDevMode ? [{ debugName: "inlineStyles" }] : /* istanbul ignore next */ []));
159
157
  itemClick = output();
160
158
  itemMouseEnter = output();
161
159
  menuFocus = output();
@@ -163,20 +161,20 @@ class TieredMenuSub extends BaseComponent {
163
161
  menuKeydown = output();
164
162
  sublistViewChild = viewChild('sublist', /* @ts-ignore */
165
163
  ...(ngDevMode ? [{ debugName: "sublistViewChild" }] : /* istanbul ignore next */ []));
166
- render = signal(false, /* @ts-ignore */
167
- ...(ngDevMode ? [{ debugName: "render" }] : /* istanbul ignore next */ []));
164
+ render = linkedSignal({ ...(ngDevMode ? { debugName: "render" } : /* istanbul ignore next */ {}), source: () => !!(this.visible() || this.root()),
165
+ computation: (show, previous) => show || (previous?.value ?? false) });
168
166
  _componentStyle = inject(TieredMenuStyle);
169
167
  bindDirectiveInstance = inject(Bind, { self: true });
170
168
  $pcTieredMenu = inject(TIEREDMENU_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
171
169
  $pcTieredMenuSub = inject(TIEREDMENUSUB_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
172
- _visible = false;
173
- onAfterViewChecked() {
174
- this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
170
+ constructor() {
171
+ super();
172
+ afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root'])));
175
173
  }
176
174
  positionSubmenu(sublist) {
177
175
  if (isPlatformBrowser(this.tieredMenu.platformId)) {
178
176
  if (sublist) {
179
- nestedPosition(sublist, this.level);
177
+ nestedPosition(sublist, this.level());
180
178
  }
181
179
  }
182
180
  }
@@ -184,7 +182,7 @@ class TieredMenuSub extends BaseComponent {
184
182
  return processedItem && processedItem.item ? resolve(processedItem.item[name], params) : undefined;
185
183
  }
186
184
  getItemId(processedItem) {
187
- return processedItem.item?.id ?? `${this.menuId}_${processedItem.key}`;
185
+ return processedItem.item?.id ?? `${this.menuId()}_${processedItem.key}`;
188
186
  }
189
187
  getItemKey(processedItem) {
190
188
  return this.getItemId(processedItem);
@@ -193,11 +191,13 @@ class TieredMenuSub extends BaseComponent {
193
191
  return this.getItemProp(processedItem, 'label');
194
192
  }
195
193
  getAriaSetSize() {
196
- return this.items.filter((processedItem) => this.isItemVisible(processedItem) && !this.getItemProp(processedItem, 'separator')).length;
194
+ return this.items().filter((processedItem) => this.isItemVisible(processedItem) && !this.getItemProp(processedItem, 'separator')).length;
197
195
  }
198
196
  getAriaPosInset(index) {
199
197
  return (index -
200
- this.items.slice(0, index).filter((processedItem) => {
198
+ this.items()
199
+ .slice(0, index)
200
+ .filter((processedItem) => {
201
201
  const isItemVisible = this.isItemVisible(processedItem);
202
202
  const isVisibleSeparator = isItemVisible && this.getItemProp(processedItem, 'separator');
203
203
  return !isItemVisible || isVisibleSeparator;
@@ -217,7 +217,7 @@ class TieredMenuSub extends BaseComponent {
217
217
  return this.getItemProp(processedItem, 'disabled');
218
218
  }
219
219
  isItemFocused(processedItem) {
220
- return this.focusedItemId === this.getItemId(processedItem);
220
+ return this.focusedItemId() === this.getItemId(processedItem);
221
221
  }
222
222
  isItemGroup(processedItem) {
223
223
  return isNotEmpty(processedItem.items);
@@ -238,7 +238,7 @@ class TieredMenuSub extends BaseComponent {
238
238
  });
239
239
  }
240
240
  onItemMouseEnter(param) {
241
- if (this.autoDisplay) {
241
+ if (this.autoDisplay()) {
242
242
  const { event, processedItem } = param;
243
243
  this.itemMouseEnter.emit({ originalEvent: event, processedItem });
244
244
  }
@@ -253,8 +253,8 @@ class TieredMenuSub extends BaseComponent {
253
253
  onAfterLeave() {
254
254
  this.render.set(false);
255
255
  }
256
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: TieredMenuSub, deps: null, target: i0.ɵɵFactoryTarget.Component });
257
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: TieredMenuSub, isStandalone: true, selector: "p-tieredMenuSub, p-tieredmenusub", inputs: { visible: { classPropertyName: "visible", publicName: "visible", isSignal: false, isRequired: false, transformFunction: null }, items: { classPropertyName: "items", publicName: "items", isSignal: false, isRequired: false, transformFunction: null }, itemTemplate: { classPropertyName: "itemTemplate", publicName: "itemTemplate", isSignal: false, isRequired: false, transformFunction: null }, root: { classPropertyName: "root", publicName: "root", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, autoDisplay: { classPropertyName: "autoDisplay", publicName: "autoDisplay", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, autoZIndex: { classPropertyName: "autoZIndex", publicName: "autoZIndex", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, baseZIndex: { classPropertyName: "baseZIndex", publicName: "baseZIndex", isSignal: false, isRequired: false, transformFunction: numberAttribute }, popup: { classPropertyName: "popup", publicName: "popup", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, menuId: { classPropertyName: "menuId", publicName: "menuId", isSignal: false, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: false, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: false, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: false, isRequired: false, transformFunction: numberAttribute }, focusedItemId: { classPropertyName: "focusedItemId", publicName: "focusedItemId", isSignal: false, isRequired: false, transformFunction: null }, activeItemPath: { classPropertyName: "activeItemPath", publicName: "activeItemPath", isSignal: true, isRequired: false, transformFunction: null }, motionOptions: { classPropertyName: "motionOptions", publicName: "motionOptions", isSignal: false, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: false, isRequired: false, transformFunction: numberAttribute }, inlineStyles: { classPropertyName: "inlineStyles", publicName: "inlineStyles", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { itemClick: "itemClick", itemMouseEnter: "itemMouseEnter", menuFocus: "menuFocus", menuBlur: "menuBlur", menuKeydown: "menuKeydown" }, providers: [
256
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: TieredMenuSub, deps: [], target: i0.ɵɵFactoryTarget.Component });
257
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: TieredMenuSub, isStandalone: true, selector: "p-tieredMenuSub, p-tieredmenusub", inputs: { visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: true, transformFunction: null }, itemTemplate: { classPropertyName: "itemTemplate", publicName: "itemTemplate", isSignal: true, isRequired: false, transformFunction: null }, root: { classPropertyName: "root", publicName: "root", isSignal: true, isRequired: false, transformFunction: null }, autoDisplay: { classPropertyName: "autoDisplay", publicName: "autoDisplay", isSignal: true, isRequired: false, transformFunction: null }, menuId: { classPropertyName: "menuId", publicName: "menuId", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null }, focusedItemId: { classPropertyName: "focusedItemId", publicName: "focusedItemId", isSignal: true, isRequired: false, transformFunction: null }, activeItemPath: { classPropertyName: "activeItemPath", publicName: "activeItemPath", isSignal: true, isRequired: false, transformFunction: null }, motionOptions: { classPropertyName: "motionOptions", publicName: "motionOptions", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, inlineStyles: { classPropertyName: "inlineStyles", publicName: "inlineStyles", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { itemClick: "itemClick", itemMouseEnter: "itemMouseEnter", menuFocus: "menuFocus", menuBlur: "menuBlur", menuKeydown: "menuKeydown" }, providers: [
258
258
  { provide: TIEREDMENUSUB_INSTANCE, useExisting: forwardRef(() => TieredMenuSub) },
259
259
  { provide: PARENT_INSTANCE, useExisting: forwardRef(() => TieredMenuSub) }
260
260
  ], viewQueries: [{ propertyName: "sublistViewChild", first: true, predicate: ["sublist"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
@@ -262,27 +262,27 @@ class TieredMenuSub extends BaseComponent {
262
262
  <ul
263
263
  #sublist
264
264
  role="menu"
265
- [class]="root ? cx('rootList') : cx('submenu')"
266
- [id]="menuId + '_list'"
267
- [tabindex]="tabindex"
268
- [attr.aria-label]="ariaLabel"
269
- [attr.aria-labelledBy]="ariaLabelledBy"
270
- [attr.aria-activedescendant]="focusedItemId"
265
+ [class]="root() ? cx('rootList') : cx('submenu')"
266
+ [id]="menuId() + '_list'"
267
+ [tabindex]="tabindex()"
268
+ [attr.aria-label]="ariaLabel()"
269
+ [attr.aria-labelledBy]="ariaLabelledBy()"
270
+ [attr.aria-activedescendant]="focusedItemId()"
271
271
  [attr.aria-orientation]="'vertical'"
272
- [pBind]="_ptm(root ? 'rootList' : 'submenu')"
272
+ [pBind]="_ptm(root() ? 'rootList' : 'submenu')"
273
273
  (keydown)="menuKeydown.emit($event)"
274
274
  (focus)="menuFocus.emit($event)"
275
275
  (blur)="menuBlur.emit($event)"
276
- [style]="inlineStyles"
277
- [pMotion]="root ? true : visible"
278
- [pMotionDisabled]="root"
276
+ [style]="inlineStyles()"
277
+ [pMotion]="root() ? true : visible()"
278
+ [pMotionDisabled]="root()"
279
279
  [pMotionAppear]="true"
280
280
  [pMotionName]="'p-anchored-overlay'"
281
- [pMotionOptions]="motionOptions"
281
+ [pMotionOptions]="motionOptions()"
282
282
  (pMotionOnBeforeEnter)="onBeforeEnter($event)"
283
283
  (pMotionOnAfterLeave)="onAfterLeave()"
284
284
  >
285
- <ng-template ngFor let-processedItem [ngForOf]="items" let-index="index">
285
+ <ng-template ngFor let-processedItem [ngForOf]="items()" let-index="index">
286
286
  <li
287
287
  *ngIf="isItemVisible(processedItem) && getItemProp(processedItem, 'separator')"
288
288
  [attr.id]="getItemId(processedItem)"
@@ -313,7 +313,7 @@ class TieredMenuSub extends BaseComponent {
313
313
  [pTooltipUnstyled]="unstyled()"
314
314
  >
315
315
  <div [class]="cx('itemContent')" [pBind]="getPTOptions(processedItem, index, 'itemContent')" (click)="onItemClick($event, processedItem)" (mouseenter)="onItemMouseEnter({ $event, processedItem })">
316
- <ng-container *ngIf="!itemTemplate">
316
+ <ng-container *ngIf="!itemTemplate()">
317
317
  <a
318
318
  *ngIf="!getItemProp(processedItem, 'routerLink')"
319
319
  [attr.href]="getItemProp(processedItem, 'url')"
@@ -355,12 +355,12 @@ class TieredMenuSub extends BaseComponent {
355
355
  <ng-container *ngIf="isItemGroup(processedItem)">
356
356
  <svg
357
357
  data-p-icon="angle-right"
358
- *ngIf="!tieredMenu.submenuIconTemplate() && !tieredMenu._submenuIconTemplate"
358
+ *ngIf="!tieredMenu.submenuIconTemplate() && !tieredMenu._submenuIconTemplate()"
359
359
  [class]="cx('submenuIcon')"
360
360
  [pBind]="getPTOptions(processedItem, index, 'submenuIcon')"
361
361
  [attr.aria-hidden]="true"
362
362
  />
363
- <ng-template *ngTemplateOutlet="tieredMenu.submenuIconTemplate() || tieredMenu._submenuIconTemplate" [attr.aria-hidden]="true"></ng-template>
363
+ <ng-template *ngTemplateOutlet="tieredMenu.submenuIconTemplate() || tieredMenu._submenuIconTemplate()" [attr.aria-hidden]="true"></ng-template>
364
364
  </ng-container>
365
365
  </a>
366
366
  <a
@@ -414,76 +414,75 @@ class TieredMenuSub extends BaseComponent {
414
414
  <ng-container *ngIf="isItemGroup(processedItem)">
415
415
  <svg
416
416
  data-p-icon="angle-right"
417
- *ngIf="!tieredMenu.submenuIconTemplate() && !tieredMenu._submenuIconTemplate"
417
+ *ngIf="!tieredMenu.submenuIconTemplate() && !tieredMenu._submenuIconTemplate()"
418
418
  [class]="cx('submenuIcon')"
419
419
  [pBind]="getPTOptions(processedItem, index, 'submenuIcon')"
420
420
  [attr.aria-hidden]="true"
421
421
  />
422
- <ng-template *ngTemplateOutlet="tieredMenu.submenuIconTemplate() || tieredMenu._submenuIconTemplate" [attr.aria-hidden]="true"></ng-template>
422
+ <ng-template *ngTemplateOutlet="tieredMenu.submenuIconTemplate() || tieredMenu._submenuIconTemplate()" [attr.aria-hidden]="true"></ng-template>
423
423
  </ng-container>
424
424
  </a>
425
425
  </ng-container>
426
- <ng-container *ngIf="itemTemplate">
427
- <ng-template *ngTemplateOutlet="itemTemplate; context: { $implicit: processedItem.item, hasSubmenu: getItemProp(processedItem, 'items') }"></ng-template>
426
+ <ng-container *ngIf="itemTemplate()">
427
+ <ng-template *ngTemplateOutlet="itemTemplate(); context: { $implicit: processedItem.item, hasSubmenu: getItemProp(processedItem, 'items') }"></ng-template>
428
428
  </ng-container>
429
429
  </div>
430
430
 
431
431
  <p-tieredmenusub
432
432
  *ngIf="isItemVisible(processedItem) && isItemGroup(processedItem)"
433
433
  [items]="processedItem.items"
434
- [itemTemplate]="itemTemplate"
435
- [autoDisplay]="autoDisplay"
436
- [menuId]="menuId"
434
+ [itemTemplate]="itemTemplate()"
435
+ [autoDisplay]="autoDisplay()"
436
+ [menuId]="menuId()"
437
437
  [visible]="isItemActive(processedItem) && isItemGroup(processedItem)"
438
438
  [activeItemPath]="activeItemPath()"
439
- [focusedItemId]="focusedItemId"
439
+ [focusedItemId]="focusedItemId()"
440
440
  [ariaLabelledBy]="getItemId(processedItem)"
441
- [level]="level + 1"
441
+ [level]="level() + 1"
442
442
  (itemClick)="itemClick.emit($event)"
443
443
  (itemMouseEnter)="onItemMouseEnter($event)"
444
444
  [pt]="pt()"
445
- [motionOptions]="motionOptions"
445
+ [motionOptions]="motionOptions()"
446
446
  [unstyled]="unstyled()"
447
447
  ></p-tieredmenusub>
448
448
  </li>
449
449
  </ng-template>
450
450
  </ul>
451
451
  }
452
- `, isInline: true, dependencies: [{ kind: "component", type: TieredMenuSub, selector: "p-tieredMenuSub, p-tieredmenusub", inputs: ["visible", "items", "itemTemplate", "root", "autoDisplay", "autoZIndex", "baseZIndex", "popup", "menuId", "ariaLabel", "ariaLabelledBy", "level", "focusedItemId", "activeItemPath", "motionOptions", "tabindex", "inlineStyles"], outputs: ["itemClick", "itemMouseEnter", "menuFocus", "menuBlur", "menuKeydown"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i3.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: i3.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "directive", type: Ripple, selector: "[pRipple]" }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i4.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "showOnEllipsis", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }, { kind: "directive", type: i1.Bind, selector: "[pBind]", inputs: ["pBind"] }, { kind: "component", type: AngleRightIcon, selector: "[data-p-icon=\"angle-right\"]" }, { kind: "ngmodule", type: SharedModule }, { kind: "ngmodule", type: BindModule }, { kind: "ngmodule", type: MotionModule }, { kind: "directive", type: i5.MotionDirective, selector: "[pMotion]", inputs: ["pMotion", "pMotionName", "pMotionType", "pMotionSafe", "pMotionDisabled", "pMotionAppear", "pMotionEnter", "pMotionLeave", "pMotionDuration", "pMotionHideStrategy", "pMotionEnterFromClass", "pMotionEnterToClass", "pMotionEnterActiveClass", "pMotionLeaveFromClass", "pMotionLeaveToClass", "pMotionLeaveActiveClass", "pMotionOptions"], outputs: ["pMotionOnBeforeEnter", "pMotionOnEnter", "pMotionOnAfterEnter", "pMotionOnEnterCancelled", "pMotionOnBeforeLeave", "pMotionOnLeave", "pMotionOnAfterLeave", "pMotionOnLeaveCancelled"] }], changeDetection: i0.ChangeDetectionStrategy.Eager, encapsulation: i0.ViewEncapsulation.None });
452
+ `, isInline: true, dependencies: [{ kind: "component", type: TieredMenuSub, selector: "p-tieredMenuSub, p-tieredmenusub", inputs: ["visible", "items", "itemTemplate", "root", "autoDisplay", "menuId", "ariaLabel", "ariaLabelledBy", "level", "focusedItemId", "activeItemPath", "motionOptions", "tabindex", "inlineStyles"], outputs: ["itemClick", "itemMouseEnter", "menuFocus", "menuBlur", "menuKeydown"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i3.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: i3.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "directive", type: Ripple, selector: "[pRipple]" }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i4.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "showOnEllipsis", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }, { kind: "directive", type: i1.Bind, selector: "[pBind]", inputs: ["pBind"] }, { kind: "component", type: AngleRightIcon, selector: "[data-p-icon=\"angle-right\"]" }, { kind: "ngmodule", type: SharedModule }, { kind: "ngmodule", type: BindModule }, { kind: "ngmodule", type: MotionModule }, { kind: "directive", type: i5.MotionDirective, selector: "[pMotion]", inputs: ["pMotion", "pMotionName", "pMotionType", "pMotionSafe", "pMotionDisabled", "pMotionAppear", "pMotionEnter", "pMotionLeave", "pMotionDuration", "pMotionHideStrategy", "pMotionEnterFromClass", "pMotionEnterToClass", "pMotionEnterActiveClass", "pMotionLeaveFromClass", "pMotionLeaveToClass", "pMotionLeaveActiveClass", "pMotionOptions"], outputs: ["pMotionOnBeforeEnter", "pMotionOnEnter", "pMotionOnAfterEnter", "pMotionOnEnterCancelled", "pMotionOnBeforeLeave", "pMotionOnLeave", "pMotionOnAfterLeave", "pMotionOnLeaveCancelled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
453
453
  }
454
454
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: TieredMenuSub, decorators: [{
455
455
  type: Component,
456
456
  args: [{
457
- changeDetection: ChangeDetectionStrategy.Eager,
457
+ changeDetection: ChangeDetectionStrategy.OnPush,
458
458
  selector: 'p-tieredMenuSub, p-tieredmenusub',
459
- standalone: true,
460
459
  imports: [CommonModule, RouterModule, Ripple, TooltipModule, AngleRightIcon, SharedModule, BindModule, MotionModule],
461
460
  template: `
462
461
  @if (render()) {
463
462
  <ul
464
463
  #sublist
465
464
  role="menu"
466
- [class]="root ? cx('rootList') : cx('submenu')"
467
- [id]="menuId + '_list'"
468
- [tabindex]="tabindex"
469
- [attr.aria-label]="ariaLabel"
470
- [attr.aria-labelledBy]="ariaLabelledBy"
471
- [attr.aria-activedescendant]="focusedItemId"
465
+ [class]="root() ? cx('rootList') : cx('submenu')"
466
+ [id]="menuId() + '_list'"
467
+ [tabindex]="tabindex()"
468
+ [attr.aria-label]="ariaLabel()"
469
+ [attr.aria-labelledBy]="ariaLabelledBy()"
470
+ [attr.aria-activedescendant]="focusedItemId()"
472
471
  [attr.aria-orientation]="'vertical'"
473
- [pBind]="_ptm(root ? 'rootList' : 'submenu')"
472
+ [pBind]="_ptm(root() ? 'rootList' : 'submenu')"
474
473
  (keydown)="menuKeydown.emit($event)"
475
474
  (focus)="menuFocus.emit($event)"
476
475
  (blur)="menuBlur.emit($event)"
477
- [style]="inlineStyles"
478
- [pMotion]="root ? true : visible"
479
- [pMotionDisabled]="root"
476
+ [style]="inlineStyles()"
477
+ [pMotion]="root() ? true : visible()"
478
+ [pMotionDisabled]="root()"
480
479
  [pMotionAppear]="true"
481
480
  [pMotionName]="'p-anchored-overlay'"
482
- [pMotionOptions]="motionOptions"
481
+ [pMotionOptions]="motionOptions()"
483
482
  (pMotionOnBeforeEnter)="onBeforeEnter($event)"
484
483
  (pMotionOnAfterLeave)="onAfterLeave()"
485
484
  >
486
- <ng-template ngFor let-processedItem [ngForOf]="items" let-index="index">
485
+ <ng-template ngFor let-processedItem [ngForOf]="items()" let-index="index">
487
486
  <li
488
487
  *ngIf="isItemVisible(processedItem) && getItemProp(processedItem, 'separator')"
489
488
  [attr.id]="getItemId(processedItem)"
@@ -514,7 +513,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
514
513
  [pTooltipUnstyled]="unstyled()"
515
514
  >
516
515
  <div [class]="cx('itemContent')" [pBind]="getPTOptions(processedItem, index, 'itemContent')" (click)="onItemClick($event, processedItem)" (mouseenter)="onItemMouseEnter({ $event, processedItem })">
517
- <ng-container *ngIf="!itemTemplate">
516
+ <ng-container *ngIf="!itemTemplate()">
518
517
  <a
519
518
  *ngIf="!getItemProp(processedItem, 'routerLink')"
520
519
  [attr.href]="getItemProp(processedItem, 'url')"
@@ -556,12 +555,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
556
555
  <ng-container *ngIf="isItemGroup(processedItem)">
557
556
  <svg
558
557
  data-p-icon="angle-right"
559
- *ngIf="!tieredMenu.submenuIconTemplate() && !tieredMenu._submenuIconTemplate"
558
+ *ngIf="!tieredMenu.submenuIconTemplate() && !tieredMenu._submenuIconTemplate()"
560
559
  [class]="cx('submenuIcon')"
561
560
  [pBind]="getPTOptions(processedItem, index, 'submenuIcon')"
562
561
  [attr.aria-hidden]="true"
563
562
  />
564
- <ng-template *ngTemplateOutlet="tieredMenu.submenuIconTemplate() || tieredMenu._submenuIconTemplate" [attr.aria-hidden]="true"></ng-template>
563
+ <ng-template *ngTemplateOutlet="tieredMenu.submenuIconTemplate() || tieredMenu._submenuIconTemplate()" [attr.aria-hidden]="true"></ng-template>
565
564
  </ng-container>
566
565
  </a>
567
566
  <a
@@ -615,35 +614,35 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
615
614
  <ng-container *ngIf="isItemGroup(processedItem)">
616
615
  <svg
617
616
  data-p-icon="angle-right"
618
- *ngIf="!tieredMenu.submenuIconTemplate() && !tieredMenu._submenuIconTemplate"
617
+ *ngIf="!tieredMenu.submenuIconTemplate() && !tieredMenu._submenuIconTemplate()"
619
618
  [class]="cx('submenuIcon')"
620
619
  [pBind]="getPTOptions(processedItem, index, 'submenuIcon')"
621
620
  [attr.aria-hidden]="true"
622
621
  />
623
- <ng-template *ngTemplateOutlet="tieredMenu.submenuIconTemplate() || tieredMenu._submenuIconTemplate" [attr.aria-hidden]="true"></ng-template>
622
+ <ng-template *ngTemplateOutlet="tieredMenu.submenuIconTemplate() || tieredMenu._submenuIconTemplate()" [attr.aria-hidden]="true"></ng-template>
624
623
  </ng-container>
625
624
  </a>
626
625
  </ng-container>
627
- <ng-container *ngIf="itemTemplate">
628
- <ng-template *ngTemplateOutlet="itemTemplate; context: { $implicit: processedItem.item, hasSubmenu: getItemProp(processedItem, 'items') }"></ng-template>
626
+ <ng-container *ngIf="itemTemplate()">
627
+ <ng-template *ngTemplateOutlet="itemTemplate(); context: { $implicit: processedItem.item, hasSubmenu: getItemProp(processedItem, 'items') }"></ng-template>
629
628
  </ng-container>
630
629
  </div>
631
630
 
632
631
  <p-tieredmenusub
633
632
  *ngIf="isItemVisible(processedItem) && isItemGroup(processedItem)"
634
633
  [items]="processedItem.items"
635
- [itemTemplate]="itemTemplate"
636
- [autoDisplay]="autoDisplay"
637
- [menuId]="menuId"
634
+ [itemTemplate]="itemTemplate()"
635
+ [autoDisplay]="autoDisplay()"
636
+ [menuId]="menuId()"
638
637
  [visible]="isItemActive(processedItem) && isItemGroup(processedItem)"
639
638
  [activeItemPath]="activeItemPath()"
640
- [focusedItemId]="focusedItemId"
639
+ [focusedItemId]="focusedItemId()"
641
640
  [ariaLabelledBy]="getItemId(processedItem)"
642
- [level]="level + 1"
641
+ [level]="level() + 1"
643
642
  (itemClick)="itemClick.emit($event)"
644
643
  (itemMouseEnter)="onItemMouseEnter($event)"
645
644
  [pt]="pt()"
646
- [motionOptions]="motionOptions"
645
+ [motionOptions]="motionOptions()"
647
646
  [unstyled]="unstyled()"
648
647
  ></p-tieredmenusub>
649
648
  </li>
@@ -658,46 +657,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
658
657
  ],
659
658
  hostDirectives: [Bind]
660
659
  }]
661
- }], propDecorators: { visible: [{
662
- type: Input
663
- }], items: [{
664
- type: Input
665
- }], itemTemplate: [{
666
- type: Input
667
- }], root: [{
668
- type: Input,
669
- args: [{ transform: booleanAttribute }]
670
- }], autoDisplay: [{
671
- type: Input,
672
- args: [{ transform: booleanAttribute }]
673
- }], autoZIndex: [{
674
- type: Input,
675
- args: [{ transform: booleanAttribute }]
676
- }], baseZIndex: [{
677
- type: Input,
678
- args: [{ transform: numberAttribute }]
679
- }], popup: [{
680
- type: Input,
681
- args: [{ transform: booleanAttribute }]
682
- }], menuId: [{
683
- type: Input
684
- }], ariaLabel: [{
685
- type: Input
686
- }], ariaLabelledBy: [{
687
- type: Input
688
- }], level: [{
689
- type: Input,
690
- args: [{ transform: numberAttribute }]
691
- }], focusedItemId: [{
692
- type: Input
693
- }], activeItemPath: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeItemPath", required: false }] }], motionOptions: [{
694
- type: Input
695
- }], tabindex: [{
696
- type: Input,
697
- args: [{ transform: numberAttribute }]
698
- }], inlineStyles: [{
699
- type: Input
700
- }], itemClick: [{ type: i0.Output, args: ["itemClick"] }], itemMouseEnter: [{ type: i0.Output, args: ["itemMouseEnter"] }], menuFocus: [{ type: i0.Output, args: ["menuFocus"] }], menuBlur: [{ type: i0.Output, args: ["menuBlur"] }], menuKeydown: [{ type: i0.Output, args: ["menuKeydown"] }], sublistViewChild: [{ type: i0.ViewChild, args: ['sublist', { isSignal: true }] }] } });
660
+ }], ctorParameters: () => [], propDecorators: { visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }], items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: true }] }], itemTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemTemplate", required: false }] }], root: [{ type: i0.Input, args: [{ isSignal: true, alias: "root", required: false }] }], autoDisplay: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoDisplay", required: false }] }], menuId: [{ type: i0.Input, args: [{ isSignal: true, alias: "menuId", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], level: [{ type: i0.Input, args: [{ isSignal: true, alias: "level", required: false }] }], focusedItemId: [{ type: i0.Input, args: [{ isSignal: true, alias: "focusedItemId", required: false }] }], activeItemPath: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeItemPath", required: false }] }], motionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionOptions", required: false }] }], tabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabindex", required: false }] }], inlineStyles: [{ type: i0.Input, args: [{ isSignal: true, alias: "inlineStyles", required: false }] }], itemClick: [{ type: i0.Output, args: ["itemClick"] }], itemMouseEnter: [{ type: i0.Output, args: ["itemMouseEnter"] }], menuFocus: [{ type: i0.Output, args: ["menuFocus"] }], menuBlur: [{ type: i0.Output, args: ["menuBlur"] }], menuKeydown: [{ type: i0.Output, args: ["menuKeydown"] }], sublistViewChild: [{ type: i0.ViewChild, args: ['sublist', { isSignal: true }] }] } });
701
661
  /**
702
662
  * TieredMenu displays submenus in nested overlays.
703
663
  * @group Components
@@ -709,86 +669,77 @@ class TieredMenu extends BaseComponent {
709
669
  * An array of menuitems.
710
670
  * @group Props
711
671
  */
712
- set model(value) {
713
- this._model = value;
714
- this._processedItems = this.createProcessedItems(this._model || []);
715
- }
716
- get model() {
717
- return this._model;
718
- }
672
+ model = input(undefined, /* @ts-ignore */
673
+ ...(ngDevMode ? [{ debugName: "model" }] : /* istanbul ignore next */ []));
719
674
  /**
720
675
  * Defines if menu would displayed as a popup.
721
676
  * @group Props
722
677
  */
723
- popup;
678
+ popup = input(undefined, { ...(ngDevMode ? { debugName: "popup" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
724
679
  /**
725
680
  * Inline style of the component.
726
681
  * @group Props
727
682
  */
728
- style;
683
+ style = input(undefined, /* @ts-ignore */
684
+ ...(ngDevMode ? [{ debugName: "style" }] : /* istanbul ignore next */ []));
729
685
  /**
730
686
  * Style class of the component.
731
687
  * @group Props
732
688
  */
733
- styleClass;
689
+ styleClass = input(undefined, /* @ts-ignore */
690
+ ...(ngDevMode ? [{ debugName: "styleClass" }] : /* istanbul ignore next */ []));
734
691
  /**
735
692
  * The breakpoint to define the maximum width boundary.
736
693
  * @group Props
737
694
  */
738
- breakpoint = '960px';
695
+ breakpoint = input('960px', /* @ts-ignore */
696
+ ...(ngDevMode ? [{ debugName: "breakpoint" }] : /* istanbul ignore next */ []));
739
697
  /**
740
698
  * Whether to automatically manage layering.
741
699
  * @group Props
742
700
  */
743
- autoZIndex = true;
701
+ autoZIndex = input(true, { ...(ngDevMode ? { debugName: "autoZIndex" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
744
702
  /**
745
703
  * Base zIndex value to use in layering.
746
704
  * @group Props
747
705
  */
748
- baseZIndex = 0;
706
+ baseZIndex = input(0, { ...(ngDevMode ? { debugName: "baseZIndex" } : /* istanbul ignore next */ {}), transform: numberAttribute });
749
707
  /**
750
708
  * Whether to show a root submenu on mouse over.
751
709
  * @defaultValue true
752
710
  * @group Props
753
711
  */
754
- autoDisplay = true;
755
- /**
756
- * Transition options of the show animation.
757
- * @group Props
758
- * @deprecated since v21.0.0, use `motionOptions` instead.
759
- */
760
- showTransitionOptions = '.12s cubic-bezier(0, 0, 0.2, 1)';
761
- /**
762
- * Transition options of the hide animation.
763
- * @group Props
764
- * @deprecated since v21.0.0, use `motionOptions` instead.
765
- */
766
- hideTransitionOptions = '.1s linear';
712
+ autoDisplay = input(true, { ...(ngDevMode ? { debugName: "autoDisplay" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
767
713
  /**
768
714
  * Current id state as a string.
769
715
  * @group Props
770
716
  */
771
- id;
717
+ id = input(undefined, /* @ts-ignore */
718
+ ...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
719
+ _id = computed(() => this.id() || uuid('pn_id_'), /* @ts-ignore */
720
+ ...(ngDevMode ? [{ debugName: "_id" }] : /* istanbul ignore next */ []));
772
721
  /**
773
722
  * Defines a string value that labels an interactive element.
774
723
  * @group Props
775
724
  */
776
- ariaLabel;
725
+ ariaLabel = input(undefined, /* @ts-ignore */
726
+ ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
777
727
  /**
778
728
  * Identifier of the underlying input element.
779
729
  * @group Props
780
730
  */
781
- ariaLabelledBy;
731
+ ariaLabelledBy = input(undefined, /* @ts-ignore */
732
+ ...(ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []));
782
733
  /**
783
734
  * When present, it specifies that the component should be disabled.
784
735
  * @group Props
785
736
  */
786
- disabled = false;
737
+ disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
787
738
  /**
788
739
  * Index of the element in tabbing order.
789
740
  * @group Props
790
741
  */
791
- tabindex = 0;
742
+ tabindex = input(0, { ...(ngDevMode ? { debugName: "tabindex" } : /* istanbul ignore next */ {}), transform: numberAttribute });
792
743
  /**
793
744
  * Target element to attach the overlay, valid values are "body" or a local ng-template variable of another element (note: use binding with brackets for template variables, e.g. [appendTo]="mydiv" for a div element having #mydiv as variable name).
794
745
  * @defaultValue 'self'
@@ -841,47 +792,60 @@ class TieredMenu extends BaseComponent {
841
792
  ...(ngDevMode ? [{ debugName: "$appendTo" }] : /* istanbul ignore next */ []));
842
793
  render = signal(false, /* @ts-ignore */
843
794
  ...(ngDevMode ? [{ debugName: "render" }] : /* istanbul ignore next */ []));
844
- container;
845
- outsideClickListener;
846
- resizeListener;
847
- scrollHandler;
848
- target;
849
- relatedTarget;
850
- visible;
851
- dirty = false;
852
- focused = false;
795
+ container = signal(undefined, /* @ts-ignore */
796
+ ...(ngDevMode ? [{ debugName: "container" }] : /* istanbul ignore next */ []));
797
+ outsideClickListener = signal(undefined, /* @ts-ignore */
798
+ ...(ngDevMode ? [{ debugName: "outsideClickListener" }] : /* istanbul ignore next */ []));
799
+ resizeListener = signal(undefined, /* @ts-ignore */
800
+ ...(ngDevMode ? [{ debugName: "resizeListener" }] : /* istanbul ignore next */ []));
801
+ scrollHandler = signal(undefined, /* @ts-ignore */
802
+ ...(ngDevMode ? [{ debugName: "scrollHandler" }] : /* istanbul ignore next */ []));
803
+ target = signal(undefined, /* @ts-ignore */
804
+ ...(ngDevMode ? [{ debugName: "target" }] : /* istanbul ignore next */ []));
805
+ relatedTarget = signal(undefined, /* @ts-ignore */
806
+ ...(ngDevMode ? [{ debugName: "relatedTarget" }] : /* istanbul ignore next */ []));
807
+ visible = signal(undefined, /* @ts-ignore */
808
+ ...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
809
+ dirty = signal(false, /* @ts-ignore */
810
+ ...(ngDevMode ? [{ debugName: "dirty" }] : /* istanbul ignore next */ []));
811
+ focused = signal(false, /* @ts-ignore */
812
+ ...(ngDevMode ? [{ debugName: "focused" }] : /* istanbul ignore next */ []));
853
813
  activeItemPath = signal([], /* @ts-ignore */
854
814
  ...(ngDevMode ? [{ debugName: "activeItemPath" }] : /* istanbul ignore next */ []));
855
- number = signal(0, /* @ts-ignore */
856
- ...(ngDevMode ? [{ debugName: "number" }] : /* istanbul ignore next */ []));
857
815
  focusedItemInfo = signal({ index: -1, level: 0, parentKey: '', item: null }, /* @ts-ignore */
858
816
  ...(ngDevMode ? [{ debugName: "focusedItemInfo" }] : /* istanbul ignore next */ []));
859
- searchValue = '';
860
- searchTimeout;
861
- _processedItems;
862
- _model;
817
+ searchValue = signal('', /* @ts-ignore */
818
+ ...(ngDevMode ? [{ debugName: "searchValue" }] : /* istanbul ignore next */ []));
819
+ searchTimeout = signal(undefined, /* @ts-ignore */
820
+ ...(ngDevMode ? [{ debugName: "searchTimeout" }] : /* istanbul ignore next */ []));
863
821
  _componentStyle = inject(TieredMenuStyle);
864
822
  bindDirectiveInstance = inject(Bind, { self: true });
865
- matchMediaListener;
866
- query;
823
+ matchMediaListener = signal(undefined, /* @ts-ignore */
824
+ ...(ngDevMode ? [{ debugName: "matchMediaListener" }] : /* istanbul ignore next */ []));
825
+ query = signal(undefined, /* @ts-ignore */
826
+ ...(ngDevMode ? [{ debugName: "query" }] : /* istanbul ignore next */ []));
867
827
  queryMatches = signal(false, /* @ts-ignore */
868
828
  ...(ngDevMode ? [{ debugName: "queryMatches" }] : /* istanbul ignore next */ []));
869
- _submenuIconTemplate;
870
- _itemTemplate;
871
- get visibleItems() {
829
+ _submenuIconTemplate = computed(() => this.templates()
830
+ .filter((item) => item.getType() === 'submenuicon')
831
+ .at(-1)?.template, /* @ts-ignore */
832
+ ...(ngDevMode ? [{ debugName: "_submenuIconTemplate" }] : /* istanbul ignore next */ []));
833
+ _itemTemplate = computed(() => this.templates()
834
+ .filter((item) => item.getType() !== 'submenuicon')
835
+ .at(-1)?.template, /* @ts-ignore */
836
+ ...(ngDevMode ? [{ debugName: "_itemTemplate" }] : /* istanbul ignore next */ []));
837
+ visibleItems = computed(() => {
872
838
  const processedItem = this.activeItemPath().find((p) => p.key === this.focusedItemInfo().parentKey);
873
- return processedItem ? processedItem.items : this.processedItems;
874
- }
875
- get processedItems() {
876
- if (!this._processedItems || !this._processedItems.length) {
877
- this._processedItems = this.createProcessedItems(this.model || []);
878
- }
879
- return this._processedItems;
880
- }
881
- get focusedItemId() {
839
+ return processedItem ? processedItem.items : this.processedItems();
840
+ }, /* @ts-ignore */
841
+ ...(ngDevMode ? [{ debugName: "visibleItems" }] : /* istanbul ignore next */ []));
842
+ processedItems = computed(() => this.createProcessedItems(this.model() || []), /* @ts-ignore */
843
+ ...(ngDevMode ? [{ debugName: "processedItems" }] : /* istanbul ignore next */ []));
844
+ focusedItemId = computed(() => {
882
845
  const focusedItemInfo = this.focusedItemInfo();
883
- return focusedItemInfo.item?.id ? focusedItemInfo.item.id : focusedItemInfo.index !== -1 ? `${this.id}${isNotEmpty(focusedItemInfo.parentKey) ? '_' + focusedItemInfo.parentKey : ''}_${focusedItemInfo.index}` : null;
884
- }
846
+ return focusedItemInfo.item?.id ? focusedItemInfo.item.id : focusedItemInfo.index !== -1 ? `${this._id()}${isNotEmpty(focusedItemInfo.parentKey) ? '_' + focusedItemInfo.parentKey : ''}_${focusedItemInfo.index}` : null;
847
+ }, /* @ts-ignore */
848
+ ...(ngDevMode ? [{ debugName: "focusedItemId" }] : /* istanbul ignore next */ []));
885
849
  constructor() {
886
850
  super();
887
851
  effect(() => {
@@ -895,46 +859,29 @@ class TieredMenu extends BaseComponent {
895
859
  this.unbindResizeListener();
896
860
  }
897
861
  });
898
- }
899
- onAfterViewChecked() {
900
- this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
862
+ afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root'])));
901
863
  }
902
864
  onInit() {
903
865
  this.bindMatchMediaListener();
904
- this.id = this.id || uuid('pn_id_');
905
- }
906
- onAfterContentInit() {
907
- this.templates()?.forEach((item) => {
908
- switch (item.getType()) {
909
- case 'submenuicon':
910
- this._submenuIconTemplate = item.template;
911
- break;
912
- case 'item':
913
- this._itemTemplate = item.template;
914
- break;
915
- default:
916
- this._itemTemplate = item.template;
917
- break;
918
- }
919
- });
920
866
  }
921
867
  bindMatchMediaListener() {
922
868
  if (isPlatformBrowser(this.platformId)) {
923
- if (!this.matchMediaListener) {
924
- const query = window.matchMedia(`(max-width: ${this.breakpoint})`);
925
- this.query = query;
869
+ if (!this.matchMediaListener()) {
870
+ const query = window.matchMedia(`(max-width: ${this.breakpoint()})`);
871
+ this.query.set(query);
926
872
  this.queryMatches.set(query.matches);
927
- this.matchMediaListener = () => {
873
+ this.matchMediaListener.set(() => {
928
874
  this.queryMatches.set(query.matches);
929
- };
930
- query.addEventListener('change', this.matchMediaListener);
875
+ });
876
+ query.addEventListener('change', this.matchMediaListener());
931
877
  }
932
878
  }
933
879
  }
934
880
  unbindMatchMediaListener() {
935
- if (this.matchMediaListener) {
936
- this.query.removeEventListener('change', this.matchMediaListener);
937
- this.matchMediaListener = null;
881
+ const matchMediaListener = this.matchMediaListener();
882
+ if (matchMediaListener) {
883
+ this.query()?.removeEventListener('change', matchMediaListener);
884
+ this.matchMediaListener.set(null);
938
885
  }
939
886
  }
940
887
  createProcessedItems(items, level = 0, parent = {}, parentKey = '') {
@@ -986,13 +933,13 @@ class TieredMenu extends BaseComponent {
986
933
  return this.getItemProp(item, 'separator');
987
934
  }
988
935
  isItemMatched(processedItem) {
989
- return this.isValidItem(processedItem) && this.getProccessedItemLabel(processedItem).toLocaleLowerCase().startsWith(this.searchValue.toLocaleLowerCase());
936
+ return this.isValidItem(processedItem) && this.getProccessedItemLabel(processedItem).toLocaleLowerCase().startsWith(this.searchValue().toLocaleLowerCase());
990
937
  }
991
938
  isProccessedItemGroup(processedItem) {
992
939
  return processedItem && isNotEmpty(processedItem.items);
993
940
  }
994
941
  onOverlayClick(event) {
995
- if (this.popup) {
942
+ if (this.popup()) {
996
943
  this.overlayService.add({
997
944
  originalEvent: event,
998
945
  target: this.el.nativeElement
@@ -1008,7 +955,7 @@ class TieredMenu extends BaseComponent {
1008
955
  const { index, key, level, parentKey, item } = processedItem;
1009
956
  this.activeItemPath.set(this.activeItemPath().filter((p) => key !== p.key && key.startsWith(p.key)));
1010
957
  this.focusedItemInfo.set({ index, level, parentKey, item });
1011
- this.dirty = true;
958
+ this.dirty.set(true);
1012
959
  focus(this.rootmenu()?.sublistViewChild()?.nativeElement);
1013
960
  }
1014
961
  else {
@@ -1025,12 +972,12 @@ class TieredMenu extends BaseComponent {
1025
972
  }
1026
973
  onItemMouseEnter(event) {
1027
974
  if (!isTouchDevice()) {
1028
- if (this.dirty) {
975
+ if (this.dirty()) {
1029
976
  this.onItemChange(event, 'hover');
1030
977
  }
1031
978
  }
1032
979
  else {
1033
- this.onItemChange({ event, processedItem: event.processedItem, focus: this.autoDisplay }, 'hover');
980
+ this.onItemChange({ event, processedItem: event.processedItem, focus: this.autoDisplay() }, 'hover');
1034
981
  }
1035
982
  }
1036
983
  onKeyDown(event) {
@@ -1086,13 +1033,13 @@ class TieredMenu extends BaseComponent {
1086
1033
  event.preventDefault();
1087
1034
  }
1088
1035
  onArrowRightKey(event) {
1089
- const processedItem = this.visibleItems[this.focusedItemInfo().index];
1036
+ const processedItem = this.visibleItems()[this.focusedItemInfo().index];
1090
1037
  const grouped = this.isProccessedItemGroup(processedItem);
1091
1038
  const item = processedItem?.item;
1092
1039
  if (grouped) {
1093
1040
  this.onItemChange({ originalEvent: event, processedItem });
1094
1041
  this.focusedItemInfo.set({ index: -1, parentKey: processedItem.key, item });
1095
- this.searchValue = '';
1042
+ this.searchValue.set('');
1096
1043
  this.onArrowDownKey(event);
1097
1044
  }
1098
1045
  event.preventDefault();
@@ -1100,11 +1047,11 @@ class TieredMenu extends BaseComponent {
1100
1047
  onArrowUpKey(event) {
1101
1048
  if (event.altKey) {
1102
1049
  if (this.focusedItemInfo().index !== -1) {
1103
- const processedItem = this.visibleItems[this.focusedItemInfo().index];
1050
+ const processedItem = this.visibleItems()[this.focusedItemInfo().index];
1104
1051
  const grouped = this.isProccessedItemGroup(processedItem);
1105
1052
  !grouped && this.onItemChange({ originalEvent: event, processedItem });
1106
1053
  }
1107
- this.popup && this.hide(event, true);
1054
+ this.popup() && this.hide(event, true);
1108
1055
  event.preventDefault();
1109
1056
  }
1110
1057
  else {
@@ -1114,7 +1061,7 @@ class TieredMenu extends BaseComponent {
1114
1061
  }
1115
1062
  }
1116
1063
  onArrowLeftKey(event) {
1117
- const processedItem = this.visibleItems[this.focusedItemInfo().index];
1064
+ const processedItem = this.visibleItems()[this.focusedItemInfo().index];
1118
1065
  if (!processedItem) {
1119
1066
  event.preventDefault();
1120
1067
  return;
@@ -1123,7 +1070,7 @@ class TieredMenu extends BaseComponent {
1123
1070
  const root = isEmpty(processedItem.parent);
1124
1071
  if (!root) {
1125
1072
  this.focusedItemInfo.set({ index: -1, parentKey: parentItem ? parentItem.parentKey : '', item: processedItem.item });
1126
- this.searchValue = '';
1073
+ this.searchValue.set('');
1127
1074
  this.onArrowDownKey(event);
1128
1075
  }
1129
1076
  const activeItemPath = this.activeItemPath().filter((p) => p.parentKey !== this.focusedItemInfo().parentKey);
@@ -1143,12 +1090,12 @@ class TieredMenu extends BaseComponent {
1143
1090
  }
1144
1091
  onEscapeKey(event) {
1145
1092
  this.hide(event, true);
1146
- this.focusedItemInfo().index = this.findFirstFocusedItemIndex();
1093
+ this.focusedItemInfo.update((focusedItemInfo) => ({ ...focusedItemInfo, index: this.findFirstFocusedItemIndex() }));
1147
1094
  event.preventDefault();
1148
1095
  }
1149
1096
  onTabKey(event) {
1150
1097
  if (this.focusedItemInfo().index !== -1) {
1151
- const processedItem = this.visibleItems[this.focusedItemInfo().index];
1098
+ const processedItem = this.visibleItems()[this.focusedItemInfo().index];
1152
1099
  const grouped = this.isProccessedItemGroup(processedItem);
1153
1100
  !grouped && this.onItemChange({ originalEvent: event, processedItem });
1154
1101
  }
@@ -1156,13 +1103,13 @@ class TieredMenu extends BaseComponent {
1156
1103
  }
1157
1104
  onEnterKey(event) {
1158
1105
  if (this.focusedItemInfo().index !== -1) {
1159
- const element = findSingle(this.rootmenu()?.el?.nativeElement, `li[id="${`${this.focusedItemId}`}"]`);
1106
+ const element = findSingle(this.rootmenu()?.el?.nativeElement, `li[id="${`${this.focusedItemId()}`}"]`);
1160
1107
  const anchorElement = element && (findSingle(element, '[data-pc-section="itemlink"]') || findSingle(element, 'a,button'));
1161
1108
  anchorElement ? anchorElement.click() : element && element.click();
1162
- if (!this.popup) {
1163
- const processedItem = this.visibleItems[this.focusedItemInfo().index];
1109
+ if (!this.popup()) {
1110
+ const processedItem = this.visibleItems()[this.focusedItemInfo().index];
1164
1111
  const grouped = this.isProccessedItemGroup(processedItem);
1165
- !grouped && (this.focusedItemInfo().index = this.findFirstFocusedItemIndex());
1112
+ !grouped && this.focusedItemInfo.update((focusedItemInfo) => ({ ...focusedItemInfo, index: this.findFirstFocusedItemIndex() }));
1166
1113
  }
1167
1114
  }
1168
1115
  event.preventDefault();
@@ -1176,7 +1123,7 @@ class TieredMenu extends BaseComponent {
1176
1123
  const activeItemPath = this.activeItemPath().filter((p) => p.parentKey !== parentKey && p.parentKey !== key);
1177
1124
  grouped && activeItemPath.push(processedItem);
1178
1125
  this.focusedItemInfo.set({ index, level, parentKey, item });
1179
- grouped && (this.dirty = true);
1126
+ grouped && this.dirty.set(true);
1180
1127
  isFocus && focus(this.rootmenu()?.sublistViewChild()?.nativeElement);
1181
1128
  if (type === 'hover' && this.queryMatches()) {
1182
1129
  return;
@@ -1184,30 +1131,30 @@ class TieredMenu extends BaseComponent {
1184
1131
  this.activeItemPath.set(activeItemPath);
1185
1132
  }
1186
1133
  onMenuFocus(event) {
1187
- this.focused = true;
1188
- if (this.focusedItemInfo().index === -1 && !this.popup) {
1134
+ this.focused.set(true);
1135
+ if (this.focusedItemInfo().index === -1 && !this.popup()) {
1189
1136
  // this.onArrowDownKey(event);
1190
1137
  }
1191
1138
  }
1192
1139
  onMenuBlur(event) {
1193
- this.focused = false;
1140
+ this.focused.set(false);
1194
1141
  this.focusedItemInfo.set({ index: -1, level: 0, parentKey: '', item: null });
1195
- this.searchValue = '';
1196
- this.dirty = false;
1142
+ this.searchValue.set('');
1143
+ this.dirty.set(false);
1197
1144
  }
1198
1145
  onOverlayBeforeEnter(event) {
1199
- if (this.popup) {
1200
- this.container = event.element;
1201
- addStyle(this.container, { position: 'absolute' });
1146
+ if (this.popup()) {
1147
+ this.container.set(event.element);
1148
+ addStyle(this.container(), { position: 'absolute' });
1202
1149
  this.moveOnTop();
1203
1150
  this.onShow.emit({});
1204
- this.$attrSelector && this.container?.setAttribute(this.$attrSelector, '');
1151
+ this.$attrSelector && this.container()?.setAttribute(this.$attrSelector, '');
1205
1152
  this.appendOverlay();
1206
1153
  this.alignOverlay();
1207
1154
  }
1208
1155
  }
1209
1156
  onOverlayAfterEnter() {
1210
- if (this.popup) {
1157
+ if (this.popup()) {
1211
1158
  this.bindOutsideClickListener();
1212
1159
  this.bindResizeListener();
1213
1160
  this.bindScrollListener();
@@ -1221,37 +1168,41 @@ class TieredMenu extends BaseComponent {
1221
1168
  this.render.set(false);
1222
1169
  this.onHide.emit({});
1223
1170
  }
1224
- relativeAlign = false;
1171
+ relativeAlign = signal(false, /* @ts-ignore */
1172
+ ...(ngDevMode ? [{ debugName: "relativeAlign" }] : /* istanbul ignore next */ []));
1225
1173
  alignOverlay() {
1226
- if (this.container && this.target) {
1227
- if (this.relativeAlign)
1228
- relativePosition(this.container, this.target);
1174
+ const container = this.container();
1175
+ const target = this.target();
1176
+ if (container && target) {
1177
+ if (this.relativeAlign())
1178
+ relativePosition(container, target);
1229
1179
  else
1230
- absolutePosition(this.container, this.target);
1231
- const targetWidth = getOuterWidth(this.target);
1232
- if (targetWidth > getOuterWidth(this.container)) {
1233
- this.container.style.minWidth = getOuterWidth(this.target) + 'px';
1180
+ absolutePosition(container, target);
1181
+ const targetWidth = getOuterWidth(target);
1182
+ if (targetWidth > getOuterWidth(container)) {
1183
+ container.style.minWidth = getOuterWidth(target) + 'px';
1234
1184
  }
1235
1185
  }
1236
1186
  }
1237
1187
  appendOverlay() {
1238
1188
  if (this.$appendTo() && this.$appendTo() !== 'self') {
1239
1189
  if (this.$appendTo() === 'body') {
1240
- appendChild(this.document.body, this.container);
1190
+ appendChild(this.document.body, this.container());
1241
1191
  }
1242
1192
  else {
1243
- appendChild(this.$appendTo(), this.container);
1193
+ appendChild(this.$appendTo(), this.container());
1244
1194
  }
1245
1195
  }
1246
1196
  }
1247
1197
  restoreOverlayAppend() {
1248
- if (this.container && this.$appendTo() !== 'self') {
1249
- appendChild(this.el.nativeElement, this.container);
1198
+ const container = this.container();
1199
+ if (container && this.$appendTo() !== 'self') {
1200
+ appendChild(this.el.nativeElement, container);
1250
1201
  }
1251
1202
  }
1252
1203
  moveOnTop() {
1253
- if (this.autoZIndex) {
1254
- ZIndexUtils.set('menu', this.container, this.baseZIndex + this.config.zIndex.menu);
1204
+ if (this.autoZIndex()) {
1205
+ ZIndexUtils.set('menu', this.container(), this.baseZIndex() + this.config.zIndex.menu);
1255
1206
  }
1256
1207
  }
1257
1208
  /**
@@ -1259,14 +1210,14 @@ class TieredMenu extends BaseComponent {
1259
1210
  * @group Method
1260
1211
  */
1261
1212
  hide(event, isFocus) {
1262
- if (this.popup) {
1213
+ if (this.popup()) {
1263
1214
  this.onHide.emit({});
1264
- this.visible = false;
1215
+ this.visible.set(false);
1265
1216
  }
1266
1217
  this.activeItemPath.set([]);
1267
1218
  this.focusedItemInfo.set({ index: -1, level: 0, parentKey: '' });
1268
- isFocus && focus(this.relatedTarget || this.target || this.rootmenu()?.sublistViewChild()?.nativeElement);
1269
- this.dirty = false;
1219
+ isFocus && focus(this.relatedTarget() || this.target() || this.rootmenu()?.sublistViewChild()?.nativeElement);
1220
+ this.dirty.set(false);
1270
1221
  }
1271
1222
  /**
1272
1223
  * Toggles the visibility of the popup menu.
@@ -1274,7 +1225,7 @@ class TieredMenu extends BaseComponent {
1274
1225
  * @group Method
1275
1226
  */
1276
1227
  toggle(event) {
1277
- this.visible ? this.hide(event, true) : this.show(event);
1228
+ this.visible() ? this.hide(event, true) : this.show(event);
1278
1229
  }
1279
1230
  /**
1280
1231
  * Displays the popup menu.
@@ -1282,27 +1233,33 @@ class TieredMenu extends BaseComponent {
1282
1233
  * @group Method
1283
1234
  */
1284
1235
  show(event, isFocus) {
1285
- if (this.popup) {
1286
- this.visible = true;
1287
- this.target = this.target || event.currentTarget;
1288
- this.relatedTarget = event.relatedTarget || null;
1289
- this.relativeAlign = event?.relativeAlign || null;
1236
+ if (this.popup()) {
1237
+ this.visible.set(true);
1238
+ this.target.set(this.target() || event.currentTarget);
1239
+ this.relatedTarget.set(event.relatedTarget || null);
1240
+ this.relativeAlign.set(event?.relativeAlign || null);
1290
1241
  }
1291
1242
  this.render.set(true);
1292
1243
  this.focusedItemInfo.set({ index: -1, level: 0, parentKey: '' });
1293
1244
  isFocus && focus(this.rootmenu()?.sublistViewChild()?.nativeElement);
1294
- this.cd.markForCheck();
1295
1245
  }
1296
1246
  searchItems(event, char) {
1297
- this.searchValue = (this.searchValue || '') + char;
1247
+ this.searchValue.set((this.searchValue() || '') + char);
1298
1248
  let itemIndex = -1;
1299
1249
  let matched = false;
1300
1250
  if (this.focusedItemInfo().index !== -1) {
1301
- itemIndex = this.visibleItems.slice(this.focusedItemInfo().index).findIndex((processedItem) => this.isItemMatched(processedItem));
1302
- itemIndex = itemIndex === -1 ? this.visibleItems.slice(0, this.focusedItemInfo().index).findIndex((processedItem) => this.isItemMatched(processedItem)) : itemIndex + this.focusedItemInfo().index;
1251
+ itemIndex = this.visibleItems()
1252
+ .slice(this.focusedItemInfo().index)
1253
+ .findIndex((processedItem) => this.isItemMatched(processedItem));
1254
+ itemIndex =
1255
+ itemIndex === -1
1256
+ ? this.visibleItems()
1257
+ .slice(0, this.focusedItemInfo().index)
1258
+ .findIndex((processedItem) => this.isItemMatched(processedItem))
1259
+ : itemIndex + this.focusedItemInfo().index;
1303
1260
  }
1304
1261
  else {
1305
- itemIndex = this.visibleItems.findIndex((processedItem) => this.isItemMatched(processedItem));
1262
+ itemIndex = this.visibleItems().findIndex((processedItem) => this.isItemMatched(processedItem));
1306
1263
  }
1307
1264
  if (itemIndex !== -1) {
1308
1265
  matched = true;
@@ -1313,13 +1270,13 @@ class TieredMenu extends BaseComponent {
1313
1270
  if (itemIndex !== -1) {
1314
1271
  this.changeFocusedItemIndex(event, itemIndex);
1315
1272
  }
1316
- if (this.searchTimeout) {
1317
- clearTimeout(this.searchTimeout);
1273
+ if (this.searchTimeout()) {
1274
+ clearTimeout(this.searchTimeout());
1318
1275
  }
1319
- this.searchTimeout = setTimeout(() => {
1320
- this.searchValue = '';
1321
- this.searchTimeout = null;
1322
- }, 500);
1276
+ this.searchTimeout.set(setTimeout(() => {
1277
+ this.searchValue.set('');
1278
+ this.searchTimeout.set(null);
1279
+ }, 500));
1323
1280
  return matched;
1324
1281
  }
1325
1282
  findLastFocusedItemIndex() {
@@ -1327,14 +1284,18 @@ class TieredMenu extends BaseComponent {
1327
1284
  return selectedIndex < 0 ? this.findLastItemIndex() : selectedIndex;
1328
1285
  }
1329
1286
  findLastItemIndex() {
1330
- return findLastIndex(this.visibleItems, (processedItem) => this.isValidItem(processedItem));
1287
+ return findLastIndex(this.visibleItems(), (processedItem) => this.isValidItem(processedItem));
1331
1288
  }
1332
1289
  findPrevItemIndex(index) {
1333
- const matchedItemIndex = index > 0 ? findLastIndex(this.visibleItems.slice(0, index), (processedItem) => this.isValidItem(processedItem)) : -1;
1290
+ const matchedItemIndex = index > 0 ? findLastIndex(this.visibleItems().slice(0, index), (processedItem) => this.isValidItem(processedItem)) : -1;
1334
1291
  return matchedItemIndex > -1 ? matchedItemIndex : index;
1335
1292
  }
1336
1293
  findNextItemIndex(index) {
1337
- const matchedItemIndex = index < this.visibleItems.length - 1 ? this.visibleItems.slice(index + 1).findIndex((processedItem) => this.isValidItem(processedItem)) : -1;
1294
+ const matchedItemIndex = index < this.visibleItems().length - 1
1295
+ ? this.visibleItems()
1296
+ .slice(index + 1)
1297
+ .findIndex((processedItem) => this.isValidItem(processedItem))
1298
+ : -1;
1338
1299
  return matchedItemIndex > -1 ? matchedItemIndex + index + 1 : index;
1339
1300
  }
1340
1301
  findFirstFocusedItemIndex() {
@@ -1342,76 +1303,80 @@ class TieredMenu extends BaseComponent {
1342
1303
  return selectedIndex < 0 ? this.findFirstItemIndex() : selectedIndex;
1343
1304
  }
1344
1305
  findFirstItemIndex() {
1345
- return this.visibleItems.findIndex((processedItem) => this.isValidItem(processedItem));
1306
+ return this.visibleItems().findIndex((processedItem) => this.isValidItem(processedItem));
1346
1307
  }
1347
1308
  findSelectedItemIndex() {
1348
- return this.visibleItems.findIndex((processedItem) => this.isValidSelectedItem(processedItem));
1309
+ return this.visibleItems().findIndex((processedItem) => this.isValidSelectedItem(processedItem));
1349
1310
  }
1350
1311
  changeFocusedItemIndex(event, index) {
1351
1312
  if (this.focusedItemInfo().index !== index) {
1352
1313
  const focusedItemInfo = this.focusedItemInfo();
1353
- this.focusedItemInfo.set({ ...focusedItemInfo, item: this.visibleItems[index].item, index });
1314
+ this.focusedItemInfo.set({ ...focusedItemInfo, item: this.visibleItems()[index].item, index });
1354
1315
  this.scrollInView();
1355
1316
  }
1356
1317
  }
1357
1318
  scrollInView(index = -1) {
1358
- const id = index !== -1 ? `${this.id}_${index}` : this.focusedItemId;
1319
+ const id = index !== -1 ? `${this._id()}_${index}` : this.focusedItemId();
1359
1320
  const element = findSingle(this.rootmenu()?.el?.nativeElement, `li[id="${id}"]`);
1360
1321
  if (element) {
1361
1322
  element.scrollIntoView && element.scrollIntoView({ block: 'nearest', inline: 'nearest' });
1362
1323
  }
1363
1324
  }
1364
1325
  bindScrollListener() {
1365
- if (!this.scrollHandler) {
1366
- this.scrollHandler = new ConnectedOverlayScrollHandler(this.target, (event) => {
1367
- if (this.visible) {
1326
+ if (!this.scrollHandler()) {
1327
+ this.scrollHandler.set(new ConnectedOverlayScrollHandler(this.target(), (event) => {
1328
+ if (this.visible()) {
1368
1329
  this.hide(event, true);
1369
1330
  }
1370
- });
1331
+ }));
1371
1332
  }
1372
- this.scrollHandler.bindScrollListener();
1333
+ this.scrollHandler()?.bindScrollListener();
1373
1334
  }
1374
1335
  unbindScrollListener() {
1375
- if (this.scrollHandler) {
1376
- this.scrollHandler.unbindScrollListener();
1377
- this.scrollHandler = null;
1336
+ const scrollHandler = this.scrollHandler();
1337
+ if (scrollHandler) {
1338
+ scrollHandler.unbindScrollListener();
1339
+ this.scrollHandler.set(null);
1378
1340
  }
1379
1341
  }
1380
1342
  bindResizeListener() {
1381
1343
  if (isPlatformBrowser(this.platformId)) {
1382
- if (!this.resizeListener) {
1383
- this.resizeListener = this.renderer.listen(this.document.defaultView, 'resize', (event) => {
1344
+ if (!this.resizeListener()) {
1345
+ this.resizeListener.set(this.renderer.listen(this.document.defaultView, 'resize', (event) => {
1384
1346
  if (!isTouchDevice()) {
1385
1347
  this.hide(event, true);
1386
1348
  }
1387
- });
1349
+ }));
1388
1350
  }
1389
1351
  }
1390
1352
  }
1391
1353
  bindOutsideClickListener() {
1392
1354
  if (isPlatformBrowser(this.platformId)) {
1393
- if (!this.outsideClickListener) {
1394
- this.outsideClickListener = this.renderer.listen(this.document, 'click', (event) => {
1355
+ if (!this.outsideClickListener()) {
1356
+ this.outsideClickListener.set(this.renderer.listen(this.document, 'click', (event) => {
1395
1357
  const containerViewChild = this.containerViewChild();
1358
+ const target = this.target();
1396
1359
  const isOutsideContainer = containerViewChild && !containerViewChild.nativeElement.contains(event.target);
1397
- const isOutsideTarget = this.popup ? !(this.target && (this.target === event.target || this.target.contains(event.target))) : true;
1360
+ const isOutsideTarget = this.popup() ? !(target && (target === event.target || target.contains(event.target))) : true;
1398
1361
  if (isOutsideContainer && isOutsideTarget) {
1399
1362
  this.hide();
1400
1363
  }
1401
- });
1364
+ }));
1402
1365
  }
1403
1366
  }
1404
1367
  }
1405
1368
  unbindOutsideClickListener() {
1406
- if (this.outsideClickListener) {
1407
- document.removeEventListener('click', this.outsideClickListener);
1408
- this.outsideClickListener = null;
1369
+ const outsideClickListener = this.outsideClickListener();
1370
+ if (outsideClickListener) {
1371
+ outsideClickListener();
1372
+ this.outsideClickListener.set(null);
1409
1373
  }
1410
1374
  }
1411
1375
  unbindResizeListener() {
1412
- if (this.resizeListener) {
1413
- this.resizeListener();
1414
- this.resizeListener = null;
1376
+ const resizeListener = this.resizeListener();
1377
+ if (resizeListener) {
1378
+ resizeListener();
1379
+ this.resizeListener.set(null);
1415
1380
  }
1416
1381
  }
1417
1382
  onOverlayHide() {
@@ -1419,17 +1384,19 @@ class TieredMenu extends BaseComponent {
1419
1384
  this.unbindResizeListener();
1420
1385
  this.unbindScrollListener();
1421
1386
  if (!this.cd.destroyed) {
1422
- this.target = null;
1387
+ this.target.set(null);
1423
1388
  }
1424
- if (this.container && this.autoZIndex) {
1425
- ZIndexUtils.clear(this.container);
1389
+ const container = this.container();
1390
+ if (container && this.autoZIndex()) {
1391
+ ZIndexUtils.clear(container);
1426
1392
  }
1427
1393
  }
1428
1394
  onDestroy() {
1429
- if (this.popup) {
1430
- if (this.scrollHandler) {
1431
- this.scrollHandler.destroy();
1432
- this.scrollHandler = null;
1395
+ if (this.popup()) {
1396
+ const scrollHandler = this.scrollHandler();
1397
+ if (scrollHandler) {
1398
+ scrollHandler.destroy();
1399
+ this.scrollHandler.set(null);
1433
1400
  }
1434
1401
  this.restoreOverlayAppend();
1435
1402
  this.onOverlayHide();
@@ -1437,19 +1404,19 @@ class TieredMenu extends BaseComponent {
1437
1404
  this.unbindMatchMediaListener();
1438
1405
  }
1439
1406
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: TieredMenu, deps: [], target: i0.ɵɵFactoryTarget.Component });
1440
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: TieredMenu, isStandalone: true, selector: "p-tieredMenu, p-tieredmenu, p-tiered-menu", inputs: { model: { classPropertyName: "model", publicName: "model", isSignal: false, isRequired: false, transformFunction: null }, popup: { classPropertyName: "popup", publicName: "popup", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, style: { classPropertyName: "style", publicName: "style", isSignal: false, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: false, isRequired: false, transformFunction: null }, breakpoint: { classPropertyName: "breakpoint", publicName: "breakpoint", isSignal: false, isRequired: false, transformFunction: null }, autoZIndex: { classPropertyName: "autoZIndex", publicName: "autoZIndex", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, baseZIndex: { classPropertyName: "baseZIndex", publicName: "baseZIndex", isSignal: false, isRequired: false, transformFunction: numberAttribute }, autoDisplay: { classPropertyName: "autoDisplay", publicName: "autoDisplay", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, showTransitionOptions: { classPropertyName: "showTransitionOptions", publicName: "showTransitionOptions", isSignal: false, isRequired: false, transformFunction: null }, hideTransitionOptions: { classPropertyName: "hideTransitionOptions", publicName: "hideTransitionOptions", isSignal: false, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: false, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: false, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: false, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: false, isRequired: false, transformFunction: numberAttribute }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, motionOptions: { classPropertyName: "motionOptions", publicName: "motionOptions", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onShow: "onShow", onHide: "onHide" }, providers: [TieredMenuStyle, { provide: TIEREDMENU_INSTANCE, useExisting: TieredMenu }, { provide: PARENT_INSTANCE, useExisting: TieredMenu }], queries: [{ propertyName: "submenuIconTemplate", first: true, predicate: ["submenuicon"], isSignal: true }, { propertyName: "itemTemplate", first: true, predicate: ["item"], isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], viewQueries: [{ propertyName: "rootmenu", first: true, predicate: ["rootmenu"], descendants: true, isSignal: true }, { propertyName: "containerViewChild", first: true, predicate: ["container"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
1441
- @if (render() || !popup) {
1407
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: TieredMenu, isStandalone: true, selector: "p-tieredMenu, p-tieredmenu, p-tiered-menu", inputs: { model: { classPropertyName: "model", publicName: "model", isSignal: true, isRequired: false, transformFunction: null }, popup: { classPropertyName: "popup", publicName: "popup", isSignal: true, isRequired: false, transformFunction: null }, style: { classPropertyName: "style", publicName: "style", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, breakpoint: { classPropertyName: "breakpoint", publicName: "breakpoint", isSignal: true, isRequired: false, transformFunction: null }, autoZIndex: { classPropertyName: "autoZIndex", publicName: "autoZIndex", isSignal: true, isRequired: false, transformFunction: null }, baseZIndex: { classPropertyName: "baseZIndex", publicName: "baseZIndex", isSignal: true, isRequired: false, transformFunction: null }, autoDisplay: { classPropertyName: "autoDisplay", publicName: "autoDisplay", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, motionOptions: { classPropertyName: "motionOptions", publicName: "motionOptions", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onShow: "onShow", onHide: "onHide" }, providers: [TieredMenuStyle, { provide: TIEREDMENU_INSTANCE, useExisting: TieredMenu }, { provide: PARENT_INSTANCE, useExisting: TieredMenu }], queries: [{ propertyName: "submenuIconTemplate", first: true, predicate: ["submenuicon"], isSignal: true }, { propertyName: "itemTemplate", first: true, predicate: ["item"], isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], viewQueries: [{ propertyName: "rootmenu", first: true, predicate: ["rootmenu"], descendants: true, isSignal: true }, { propertyName: "containerViewChild", first: true, predicate: ["container"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
1408
+ @if (render() || !popup()) {
1442
1409
  <div
1443
1410
  #container
1444
- [id]="id"
1445
- [class]="cn(cx('root'), styleClass)"
1446
- [ngStyle]="style"
1411
+ [id]="_id()"
1412
+ [class]="cn(cx('root'), styleClass())"
1413
+ [ngStyle]="style()"
1447
1414
  [pBind]="ptm('root')"
1448
1415
  (click)="onOverlayClick($event)"
1449
- [pMotion]="visible || !popup"
1416
+ [pMotion]="visible() || !popup()"
1450
1417
  [pMotionName]="'p-anchored-overlay'"
1451
1418
  [pMotionAppear]="true"
1452
- [pMotionDisabled]="!popup"
1419
+ [pMotionDisabled]="!popup()"
1453
1420
  [pMotionOptions]="computedMotionOptions()"
1454
1421
  (pMotionOnBeforeEnter)="onOverlayBeforeEnter($event)"
1455
1422
  (pMotionOnAfterEnter)="onOverlayAfterEnter()"
@@ -1459,17 +1426,14 @@ class TieredMenu extends BaseComponent {
1459
1426
  #rootmenu
1460
1427
  [root]="true"
1461
1428
  [visible]="true"
1462
- [items]="processedItems"
1463
- [itemTemplate]="itemTemplate() || _itemTemplate"
1464
- [menuId]="id"
1465
- [tabindex]="!disabled ? tabindex : -1"
1466
- [ariaLabel]="ariaLabel"
1467
- [ariaLabelledBy]="ariaLabelledBy"
1468
- [baseZIndex]="baseZIndex"
1469
- [autoZIndex]="autoZIndex"
1470
- [autoDisplay]="autoDisplay"
1471
- [popup]="popup"
1472
- [focusedItemId]="focused ? focusedItemId : undefined"
1429
+ [items]="processedItems()"
1430
+ [itemTemplate]="itemTemplate() || _itemTemplate()"
1431
+ [menuId]="_id()"
1432
+ [tabindex]="!disabled() ? tabindex() : -1"
1433
+ [ariaLabel]="ariaLabel()"
1434
+ [ariaLabelledBy]="ariaLabelledBy()"
1435
+ [autoDisplay]="autoDisplay()"
1436
+ [focusedItemId]="focused() ? focusedItemId() : undefined"
1473
1437
  [activeItemPath]="activeItemPath()"
1474
1438
  (itemClick)="onItemClick($event)"
1475
1439
  (menuFocus)="onMenuFocus($event)"
@@ -1482,27 +1446,26 @@ class TieredMenu extends BaseComponent {
1482
1446
  ></p-tieredMenuSub>
1483
1447
  </div>
1484
1448
  }
1485
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: TieredMenuSub, selector: "p-tieredMenuSub, p-tieredmenusub", inputs: ["visible", "items", "itemTemplate", "root", "autoDisplay", "autoZIndex", "baseZIndex", "popup", "menuId", "ariaLabel", "ariaLabelledBy", "level", "focusedItemId", "activeItemPath", "motionOptions", "tabindex", "inlineStyles"], outputs: ["itemClick", "itemMouseEnter", "menuFocus", "menuBlur", "menuKeydown"] }, { kind: "ngmodule", type: RouterModule }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i1.Bind, selector: "[pBind]", inputs: ["pBind"] }, { kind: "ngmodule", type: SharedModule }, { kind: "ngmodule", type: BindModule }, { kind: "ngmodule", type: MotionModule }, { kind: "directive", type: i5.MotionDirective, selector: "[pMotion]", inputs: ["pMotion", "pMotionName", "pMotionType", "pMotionSafe", "pMotionDisabled", "pMotionAppear", "pMotionEnter", "pMotionLeave", "pMotionDuration", "pMotionHideStrategy", "pMotionEnterFromClass", "pMotionEnterToClass", "pMotionEnterActiveClass", "pMotionLeaveFromClass", "pMotionLeaveToClass", "pMotionLeaveActiveClass", "pMotionOptions"], outputs: ["pMotionOnBeforeEnter", "pMotionOnEnter", "pMotionOnAfterEnter", "pMotionOnEnterCancelled", "pMotionOnBeforeLeave", "pMotionOnLeave", "pMotionOnAfterLeave", "pMotionOnLeaveCancelled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1449
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: TieredMenuSub, selector: "p-tieredMenuSub, p-tieredmenusub", inputs: ["visible", "items", "itemTemplate", "root", "autoDisplay", "menuId", "ariaLabel", "ariaLabelledBy", "level", "focusedItemId", "activeItemPath", "motionOptions", "tabindex", "inlineStyles"], outputs: ["itemClick", "itemMouseEnter", "menuFocus", "menuBlur", "menuKeydown"] }, { kind: "ngmodule", type: RouterModule }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i1.Bind, selector: "[pBind]", inputs: ["pBind"] }, { kind: "ngmodule", type: SharedModule }, { kind: "ngmodule", type: BindModule }, { kind: "ngmodule", type: MotionModule }, { kind: "directive", type: i5.MotionDirective, selector: "[pMotion]", inputs: ["pMotion", "pMotionName", "pMotionType", "pMotionSafe", "pMotionDisabled", "pMotionAppear", "pMotionEnter", "pMotionLeave", "pMotionDuration", "pMotionHideStrategy", "pMotionEnterFromClass", "pMotionEnterToClass", "pMotionEnterActiveClass", "pMotionLeaveFromClass", "pMotionLeaveToClass", "pMotionLeaveActiveClass", "pMotionOptions"], outputs: ["pMotionOnBeforeEnter", "pMotionOnEnter", "pMotionOnAfterEnter", "pMotionOnEnterCancelled", "pMotionOnBeforeLeave", "pMotionOnLeave", "pMotionOnAfterLeave", "pMotionOnLeaveCancelled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1486
1450
  }
1487
1451
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: TieredMenu, decorators: [{
1488
1452
  type: Component,
1489
1453
  args: [{
1490
1454
  selector: 'p-tieredMenu, p-tieredmenu, p-tiered-menu',
1491
- standalone: true,
1492
1455
  imports: [CommonModule, TieredMenuSub, RouterModule, TooltipModule, SharedModule, BindModule, MotionModule],
1493
1456
  template: `
1494
- @if (render() || !popup) {
1457
+ @if (render() || !popup()) {
1495
1458
  <div
1496
1459
  #container
1497
- [id]="id"
1498
- [class]="cn(cx('root'), styleClass)"
1499
- [ngStyle]="style"
1460
+ [id]="_id()"
1461
+ [class]="cn(cx('root'), styleClass())"
1462
+ [ngStyle]="style()"
1500
1463
  [pBind]="ptm('root')"
1501
1464
  (click)="onOverlayClick($event)"
1502
- [pMotion]="visible || !popup"
1465
+ [pMotion]="visible() || !popup()"
1503
1466
  [pMotionName]="'p-anchored-overlay'"
1504
1467
  [pMotionAppear]="true"
1505
- [pMotionDisabled]="!popup"
1468
+ [pMotionDisabled]="!popup()"
1506
1469
  [pMotionOptions]="computedMotionOptions()"
1507
1470
  (pMotionOnBeforeEnter)="onOverlayBeforeEnter($event)"
1508
1471
  (pMotionOnAfterEnter)="onOverlayAfterEnter()"
@@ -1512,17 +1475,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
1512
1475
  #rootmenu
1513
1476
  [root]="true"
1514
1477
  [visible]="true"
1515
- [items]="processedItems"
1516
- [itemTemplate]="itemTemplate() || _itemTemplate"
1517
- [menuId]="id"
1518
- [tabindex]="!disabled ? tabindex : -1"
1519
- [ariaLabel]="ariaLabel"
1520
- [ariaLabelledBy]="ariaLabelledBy"
1521
- [baseZIndex]="baseZIndex"
1522
- [autoZIndex]="autoZIndex"
1523
- [autoDisplay]="autoDisplay"
1524
- [popup]="popup"
1525
- [focusedItemId]="focused ? focusedItemId : undefined"
1478
+ [items]="processedItems()"
1479
+ [itemTemplate]="itemTemplate() || _itemTemplate()"
1480
+ [menuId]="_id()"
1481
+ [tabindex]="!disabled() ? tabindex() : -1"
1482
+ [ariaLabel]="ariaLabel()"
1483
+ [ariaLabelledBy]="ariaLabelledBy()"
1484
+ [autoDisplay]="autoDisplay()"
1485
+ [focusedItemId]="focused() ? focusedItemId() : undefined"
1526
1486
  [activeItemPath]="activeItemPath()"
1527
1487
  (itemClick)="onItemClick($event)"
1528
1488
  (menuFocus)="onMenuFocus($event)"
@@ -1541,43 +1501,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
1541
1501
  providers: [TieredMenuStyle, { provide: TIEREDMENU_INSTANCE, useExisting: TieredMenu }, { provide: PARENT_INSTANCE, useExisting: TieredMenu }],
1542
1502
  hostDirectives: [Bind]
1543
1503
  }]
1544
- }], ctorParameters: () => [], propDecorators: { model: [{
1545
- type: Input
1546
- }], popup: [{
1547
- type: Input,
1548
- args: [{ transform: booleanAttribute }]
1549
- }], style: [{
1550
- type: Input
1551
- }], styleClass: [{
1552
- type: Input
1553
- }], breakpoint: [{
1554
- type: Input
1555
- }], autoZIndex: [{
1556
- type: Input,
1557
- args: [{ transform: booleanAttribute }]
1558
- }], baseZIndex: [{
1559
- type: Input,
1560
- args: [{ transform: numberAttribute }]
1561
- }], autoDisplay: [{
1562
- type: Input,
1563
- args: [{ transform: booleanAttribute }]
1564
- }], showTransitionOptions: [{
1565
- type: Input
1566
- }], hideTransitionOptions: [{
1567
- type: Input
1568
- }], id: [{
1569
- type: Input
1570
- }], ariaLabel: [{
1571
- type: Input
1572
- }], ariaLabelledBy: [{
1573
- type: Input
1574
- }], disabled: [{
1575
- type: Input,
1576
- args: [{ transform: booleanAttribute }]
1577
- }], tabindex: [{
1578
- type: Input,
1579
- args: [{ transform: numberAttribute }]
1580
- }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], motionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionOptions", required: false }] }], onShow: [{ type: i0.Output, args: ["onShow"] }], onHide: [{ type: i0.Output, args: ["onHide"] }], rootmenu: [{ type: i0.ViewChild, args: ['rootmenu', { isSignal: true }] }], containerViewChild: [{ type: i0.ViewChild, args: ['container', { isSignal: true }] }], submenuIconTemplate: [{ type: i0.ContentChild, args: ['submenuicon', { ...{ descendants: false }, isSignal: true }] }], itemTemplate: [{ type: i0.ContentChild, args: ['item', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }] } });
1504
+ }], ctorParameters: () => [], propDecorators: { model: [{ type: i0.Input, args: [{ isSignal: true, alias: "model", required: false }] }], popup: [{ type: i0.Input, args: [{ isSignal: true, alias: "popup", required: false }] }], style: [{ type: i0.Input, args: [{ isSignal: true, alias: "style", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], breakpoint: [{ type: i0.Input, args: [{ isSignal: true, alias: "breakpoint", required: false }] }], autoZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoZIndex", required: false }] }], baseZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "baseZIndex", required: false }] }], autoDisplay: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoDisplay", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], tabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabindex", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], motionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionOptions", required: false }] }], onShow: [{ type: i0.Output, args: ["onShow"] }], onHide: [{ type: i0.Output, args: ["onHide"] }], rootmenu: [{ type: i0.ViewChild, args: ['rootmenu', { isSignal: true }] }], containerViewChild: [{ type: i0.ViewChild, args: ['container', { isSignal: true }] }], submenuIconTemplate: [{ type: i0.ContentChild, args: ['submenuicon', { ...{ descendants: false }, isSignal: true }] }], itemTemplate: [{ type: i0.ContentChild, args: ['item', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }] } });
1581
1505
  class TieredMenuModule {
1582
1506
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: TieredMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1583
1507
  static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.2.1", ngImport: i0, type: TieredMenuModule, imports: [TieredMenu, SharedModule], exports: [TieredMenu, SharedModule] });