@exhaustive-ui/core 22.0.0-alpha.9 → 22.0.0-rc.2

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 (250) hide show
  1. package/fesm2022/exhaustive-ui-core-accordion.mjs +5 -5
  2. package/fesm2022/exhaustive-ui-core-accordion.mjs.map +1 -1
  3. package/fesm2022/exhaustive-ui-core-api.mjs +3 -3
  4. package/fesm2022/exhaustive-ui-core-api.mjs.map +1 -1
  5. package/fesm2022/exhaustive-ui-core-autocomplete.mjs +25 -14
  6. package/fesm2022/exhaustive-ui-core-autocomplete.mjs.map +1 -1
  7. package/fesm2022/exhaustive-ui-core-avatar.mjs +2 -2
  8. package/fesm2022/exhaustive-ui-core-avatar.mjs.map +1 -1
  9. package/fesm2022/exhaustive-ui-core-avatargroup.mjs +2 -2
  10. package/fesm2022/exhaustive-ui-core-avatargroup.mjs.map +1 -1
  11. package/fesm2022/exhaustive-ui-core-badge.mjs +12 -3
  12. package/fesm2022/exhaustive-ui-core-badge.mjs.map +1 -1
  13. package/fesm2022/exhaustive-ui-core-basecomponent.mjs +34 -4
  14. package/fesm2022/exhaustive-ui-core-basecomponent.mjs.map +1 -1
  15. package/fesm2022/exhaustive-ui-core-baseeditableholder.mjs +4 -2
  16. package/fesm2022/exhaustive-ui-core-baseeditableholder.mjs.map +1 -1
  17. package/fesm2022/exhaustive-ui-core-blockui.mjs +9 -2
  18. package/fesm2022/exhaustive-ui-core-blockui.mjs.map +1 -1
  19. package/fesm2022/exhaustive-ui-core-breadcrumb.mjs +13 -6
  20. package/fesm2022/exhaustive-ui-core-breadcrumb.mjs.map +1 -1
  21. package/fesm2022/exhaustive-ui-core-button.mjs +35 -13
  22. package/fesm2022/exhaustive-ui-core-button.mjs.map +1 -1
  23. package/fesm2022/exhaustive-ui-core-card.mjs +2 -6
  24. package/fesm2022/exhaustive-ui-core-card.mjs.map +1 -1
  25. package/fesm2022/exhaustive-ui-core-carousel.mjs +9 -4
  26. package/fesm2022/exhaustive-ui-core-carousel.mjs.map +1 -1
  27. package/fesm2022/exhaustive-ui-core-cascadeselect.mjs +12 -11
  28. package/fesm2022/exhaustive-ui-core-cascadeselect.mjs.map +1 -1
  29. package/fesm2022/exhaustive-ui-core-chart.mjs +2 -2
  30. package/fesm2022/exhaustive-ui-core-chart.mjs.map +1 -1
  31. package/fesm2022/exhaustive-ui-core-checkbox.mjs +2 -2
  32. package/fesm2022/exhaustive-ui-core-checkbox.mjs.map +1 -1
  33. package/fesm2022/exhaustive-ui-core-chip.mjs +2 -2
  34. package/fesm2022/exhaustive-ui-core-chip.mjs.map +1 -1
  35. package/fesm2022/exhaustive-ui-core-colorpicker.mjs +2 -2
  36. package/fesm2022/exhaustive-ui-core-colorpicker.mjs.map +1 -1
  37. package/fesm2022/exhaustive-ui-core-config.mjs +3 -1
  38. package/fesm2022/exhaustive-ui-core-config.mjs.map +1 -1
  39. package/fesm2022/exhaustive-ui-core-confirmdialog.mjs +65 -26
  40. package/fesm2022/exhaustive-ui-core-confirmdialog.mjs.map +1 -1
  41. package/fesm2022/exhaustive-ui-core-confirmpopup.mjs +28 -5
  42. package/fesm2022/exhaustive-ui-core-confirmpopup.mjs.map +1 -1
  43. package/fesm2022/exhaustive-ui-core-contextmenu.mjs +15 -8
  44. package/fesm2022/exhaustive-ui-core-contextmenu.mjs.map +1 -1
  45. package/fesm2022/exhaustive-ui-core-dataview.mjs +2 -2
  46. package/fesm2022/exhaustive-ui-core-dataview.mjs.map +1 -1
  47. package/fesm2022/exhaustive-ui-core-datepicker.mjs +188 -95
  48. package/fesm2022/exhaustive-ui-core-datepicker.mjs.map +1 -1
  49. package/fesm2022/exhaustive-ui-core-dialog.mjs +31 -13
  50. package/fesm2022/exhaustive-ui-core-dialog.mjs.map +1 -1
  51. package/fesm2022/exhaustive-ui-core-divider.mjs +2 -2
  52. package/fesm2022/exhaustive-ui-core-divider.mjs.map +1 -1
  53. package/fesm2022/exhaustive-ui-core-dock.mjs +2 -2
  54. package/fesm2022/exhaustive-ui-core-dock.mjs.map +1 -1
  55. package/fesm2022/exhaustive-ui-core-dom.mjs +3 -1
  56. package/fesm2022/exhaustive-ui-core-dom.mjs.map +1 -1
  57. package/fesm2022/exhaustive-ui-core-drawer.mjs +24 -6
  58. package/fesm2022/exhaustive-ui-core-drawer.mjs.map +1 -1
  59. package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs +9 -5
  60. package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs.map +1 -1
  61. package/fesm2022/exhaustive-ui-core-editor.mjs +2 -2
  62. package/fesm2022/exhaustive-ui-core-editor.mjs.map +1 -1
  63. package/fesm2022/exhaustive-ui-core-fieldset.mjs +4 -4
  64. package/fesm2022/exhaustive-ui-core-fieldset.mjs.map +1 -1
  65. package/fesm2022/exhaustive-ui-core-fileupload.mjs +25 -14
  66. package/fesm2022/exhaustive-ui-core-fileupload.mjs.map +1 -1
  67. package/fesm2022/exhaustive-ui-core-floatlabel.mjs +2 -2
  68. package/fesm2022/exhaustive-ui-core-floatlabel.mjs.map +1 -1
  69. package/fesm2022/exhaustive-ui-core-focustrap.mjs +0 -2
  70. package/fesm2022/exhaustive-ui-core-focustrap.mjs.map +1 -1
  71. package/fesm2022/exhaustive-ui-core-galleria.mjs +5 -5
  72. package/fesm2022/exhaustive-ui-core-galleria.mjs.map +1 -1
  73. package/fesm2022/exhaustive-ui-core-iconfield.mjs +18 -3
  74. package/fesm2022/exhaustive-ui-core-iconfield.mjs.map +1 -1
  75. package/fesm2022/exhaustive-ui-core-image.mjs +12 -4
  76. package/fesm2022/exhaustive-ui-core-image.mjs.map +1 -1
  77. package/fesm2022/exhaustive-ui-core-imagecompare.mjs +2 -2
  78. package/fesm2022/exhaustive-ui-core-imagecompare.mjs.map +1 -1
  79. package/fesm2022/exhaustive-ui-core-inplace.mjs +3 -3
  80. package/fesm2022/exhaustive-ui-core-inplace.mjs.map +1 -1
  81. package/fesm2022/exhaustive-ui-core-inputgroup.mjs +11 -2
  82. package/fesm2022/exhaustive-ui-core-inputgroup.mjs.map +1 -1
  83. package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs +2 -2
  84. package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs.map +1 -1
  85. package/fesm2022/exhaustive-ui-core-inputicon.mjs +2 -2
  86. package/fesm2022/exhaustive-ui-core-inputicon.mjs.map +1 -1
  87. package/fesm2022/exhaustive-ui-core-inputmask.mjs +31 -7
  88. package/fesm2022/exhaustive-ui-core-inputmask.mjs.map +1 -1
  89. package/fesm2022/exhaustive-ui-core-inputnumber.mjs +85 -25
  90. package/fesm2022/exhaustive-ui-core-inputnumber.mjs.map +1 -1
  91. package/fesm2022/exhaustive-ui-core-inputotp.mjs +9 -3
  92. package/fesm2022/exhaustive-ui-core-inputotp.mjs.map +1 -1
  93. package/fesm2022/exhaustive-ui-core-inputtext.mjs +8 -9
  94. package/fesm2022/exhaustive-ui-core-inputtext.mjs.map +1 -1
  95. package/fesm2022/exhaustive-ui-core-keyfilter.mjs +27 -17
  96. package/fesm2022/exhaustive-ui-core-keyfilter.mjs.map +1 -1
  97. package/fesm2022/exhaustive-ui-core-knob.mjs +2 -2
  98. package/fesm2022/exhaustive-ui-core-knob.mjs.map +1 -1
  99. package/fesm2022/exhaustive-ui-core-listbox.mjs +17 -6
  100. package/fesm2022/exhaustive-ui-core-listbox.mjs.map +1 -1
  101. package/fesm2022/exhaustive-ui-core-megamenu.mjs +4 -3
  102. package/fesm2022/exhaustive-ui-core-megamenu.mjs.map +1 -1
  103. package/fesm2022/exhaustive-ui-core-menu.mjs +15 -4
  104. package/fesm2022/exhaustive-ui-core-menu.mjs.map +1 -1
  105. package/fesm2022/exhaustive-ui-core-menubar.mjs +64 -15
  106. package/fesm2022/exhaustive-ui-core-menubar.mjs.map +1 -1
  107. package/fesm2022/exhaustive-ui-core-message.mjs +2 -4
  108. package/fesm2022/exhaustive-ui-core-message.mjs.map +1 -1
  109. package/fesm2022/exhaustive-ui-core-metergroup.mjs +7 -7
  110. package/fesm2022/exhaustive-ui-core-metergroup.mjs.map +1 -1
  111. package/fesm2022/exhaustive-ui-core-multiselect.mjs +38 -27
  112. package/fesm2022/exhaustive-ui-core-multiselect.mjs.map +1 -1
  113. package/fesm2022/exhaustive-ui-core-orderlist.mjs +19 -6
  114. package/fesm2022/exhaustive-ui-core-orderlist.mjs.map +1 -1
  115. package/fesm2022/exhaustive-ui-core-organizationchart.mjs +2 -2
  116. package/fesm2022/exhaustive-ui-core-organizationchart.mjs.map +1 -1
  117. package/fesm2022/exhaustive-ui-core-overlay.mjs +6 -4
  118. package/fesm2022/exhaustive-ui-core-overlay.mjs.map +1 -1
  119. package/fesm2022/exhaustive-ui-core-overlaybadge.mjs +4 -4
  120. package/fesm2022/exhaustive-ui-core-overlaybadge.mjs.map +1 -1
  121. package/fesm2022/exhaustive-ui-core-paginator.mjs +12 -5
  122. package/fesm2022/exhaustive-ui-core-paginator.mjs.map +1 -1
  123. package/fesm2022/exhaustive-ui-core-panel.mjs +9 -11
  124. package/fesm2022/exhaustive-ui-core-panel.mjs.map +1 -1
  125. package/fesm2022/exhaustive-ui-core-panelmenu.mjs +43 -15
  126. package/fesm2022/exhaustive-ui-core-panelmenu.mjs.map +1 -1
  127. package/fesm2022/exhaustive-ui-core-password.mjs +93 -25
  128. package/fesm2022/exhaustive-ui-core-password.mjs.map +1 -1
  129. package/fesm2022/exhaustive-ui-core-picklist.mjs +33 -12
  130. package/fesm2022/exhaustive-ui-core-picklist.mjs.map +1 -1
  131. package/fesm2022/exhaustive-ui-core-popover.mjs +27 -8
  132. package/fesm2022/exhaustive-ui-core-popover.mjs.map +1 -1
  133. package/fesm2022/exhaustive-ui-core-progressbar.mjs +5 -5
  134. package/fesm2022/exhaustive-ui-core-progressbar.mjs.map +1 -1
  135. package/fesm2022/exhaustive-ui-core-progressspinner.mjs +2 -2
  136. package/fesm2022/exhaustive-ui-core-progressspinner.mjs.map +1 -1
  137. package/fesm2022/exhaustive-ui-core-radiobutton.mjs +8 -3
  138. package/fesm2022/exhaustive-ui-core-radiobutton.mjs.map +1 -1
  139. package/fesm2022/exhaustive-ui-core-rating.mjs +2 -2
  140. package/fesm2022/exhaustive-ui-core-rating.mjs.map +1 -1
  141. package/fesm2022/exhaustive-ui-core-scroller.mjs +14 -4
  142. package/fesm2022/exhaustive-ui-core-scroller.mjs.map +1 -1
  143. package/fesm2022/exhaustive-ui-core-scrollpanel.mjs +2 -2
  144. package/fesm2022/exhaustive-ui-core-scrollpanel.mjs.map +1 -1
  145. package/fesm2022/exhaustive-ui-core-scrolltop.mjs +11 -3
  146. package/fesm2022/exhaustive-ui-core-scrolltop.mjs.map +1 -1
  147. package/fesm2022/exhaustive-ui-core-select.mjs +102 -29
  148. package/fesm2022/exhaustive-ui-core-select.mjs.map +1 -1
  149. package/fesm2022/exhaustive-ui-core-selectbutton.mjs +13 -7
  150. package/fesm2022/exhaustive-ui-core-selectbutton.mjs.map +1 -1
  151. package/fesm2022/exhaustive-ui-core-skeleton.mjs +2 -2
  152. package/fesm2022/exhaustive-ui-core-skeleton.mjs.map +1 -1
  153. package/fesm2022/exhaustive-ui-core-slider.mjs +18 -5
  154. package/fesm2022/exhaustive-ui-core-slider.mjs.map +1 -1
  155. package/fesm2022/exhaustive-ui-core-speeddial.mjs +2 -2
  156. package/fesm2022/exhaustive-ui-core-speeddial.mjs.map +1 -1
  157. package/fesm2022/exhaustive-ui-core-splitbutton.mjs +9 -5
  158. package/fesm2022/exhaustive-ui-core-splitbutton.mjs.map +1 -1
  159. package/fesm2022/exhaustive-ui-core-splitter.mjs +29 -8
  160. package/fesm2022/exhaustive-ui-core-splitter.mjs.map +1 -1
  161. package/fesm2022/exhaustive-ui-core-stepper.mjs +8 -4
  162. package/fesm2022/exhaustive-ui-core-stepper.mjs.map +1 -1
  163. package/fesm2022/exhaustive-ui-core-steps.mjs +2 -2
  164. package/fesm2022/exhaustive-ui-core-steps.mjs.map +1 -1
  165. package/fesm2022/exhaustive-ui-core-table.mjs +535 -203
  166. package/fesm2022/exhaustive-ui-core-table.mjs.map +1 -1
  167. package/fesm2022/exhaustive-ui-core-tabs.mjs +44 -8
  168. package/fesm2022/exhaustive-ui-core-tabs.mjs.map +1 -1
  169. package/fesm2022/exhaustive-ui-core-tag.mjs +2 -2
  170. package/fesm2022/exhaustive-ui-core-tag.mjs.map +1 -1
  171. package/fesm2022/exhaustive-ui-core-terminal.mjs +1 -1
  172. package/fesm2022/exhaustive-ui-core-terminal.mjs.map +1 -1
  173. package/fesm2022/exhaustive-ui-core-textarea.mjs +9 -4
  174. package/fesm2022/exhaustive-ui-core-textarea.mjs.map +1 -1
  175. package/fesm2022/exhaustive-ui-core-tieredmenu.mjs +31 -16
  176. package/fesm2022/exhaustive-ui-core-tieredmenu.mjs.map +1 -1
  177. package/fesm2022/exhaustive-ui-core-timeline.mjs +2 -2
  178. package/fesm2022/exhaustive-ui-core-timeline.mjs.map +1 -1
  179. package/fesm2022/exhaustive-ui-core-toast.mjs +17 -5
  180. package/fesm2022/exhaustive-ui-core-toast.mjs.map +1 -1
  181. package/fesm2022/exhaustive-ui-core-togglebutton.mjs +11 -4
  182. package/fesm2022/exhaustive-ui-core-togglebutton.mjs.map +1 -1
  183. package/fesm2022/exhaustive-ui-core-toggleswitch.mjs +2 -4
  184. package/fesm2022/exhaustive-ui-core-toggleswitch.mjs.map +1 -1
  185. package/fesm2022/exhaustive-ui-core-toolbar.mjs +2 -2
  186. package/fesm2022/exhaustive-ui-core-toolbar.mjs.map +1 -1
  187. package/fesm2022/exhaustive-ui-core-tooltip.mjs +5 -1
  188. package/fesm2022/exhaustive-ui-core-tooltip.mjs.map +1 -1
  189. package/fesm2022/exhaustive-ui-core-tree.mjs +30 -11
  190. package/fesm2022/exhaustive-ui-core-tree.mjs.map +1 -1
  191. package/fesm2022/exhaustive-ui-core-treeselect.mjs +53 -6
  192. package/fesm2022/exhaustive-ui-core-treeselect.mjs.map +1 -1
  193. package/fesm2022/exhaustive-ui-core-treetable.mjs +93 -21
  194. package/fesm2022/exhaustive-ui-core-treetable.mjs.map +1 -1
  195. package/fesm2022/exhaustive-ui-core-usestyle.mjs +49 -0
  196. package/fesm2022/exhaustive-ui-core-usestyle.mjs.map +1 -1
  197. package/fesm2022/exhaustive-ui-core-utils.mjs +2 -1
  198. package/fesm2022/exhaustive-ui-core-utils.mjs.map +1 -1
  199. package/package.json +5 -5
  200. package/schematics/migrate-from-primeflex/index.js +4 -2
  201. package/schematics/migrate-from-primeflex/schema.json +5 -0
  202. package/schematics/utils/package-json.js +17 -0
  203. package/schematics/utils/primeflex.js +45 -10
  204. package/schematics/utils/versions.json +8 -8
  205. package/types/exhaustive-ui-core-api.d.ts +6 -0
  206. package/types/exhaustive-ui-core-autocomplete.d.ts +2 -0
  207. package/types/exhaustive-ui-core-badge.d.ts +1 -0
  208. package/types/exhaustive-ui-core-basecomponent.d.ts +16 -0
  209. package/types/exhaustive-ui-core-breadcrumb.d.ts +7 -1
  210. package/types/exhaustive-ui-core-button.d.ts +12 -1
  211. package/types/exhaustive-ui-core-cascadeselect.d.ts +2 -1
  212. package/types/exhaustive-ui-core-chart.d.ts +2 -2
  213. package/types/exhaustive-ui-core-confirmdialog.d.ts +17 -5
  214. package/types/exhaustive-ui-core-confirmpopup.d.ts +4 -0
  215. package/types/exhaustive-ui-core-datepicker.d.ts +10 -2
  216. package/types/exhaustive-ui-core-dialog.d.ts +2 -0
  217. package/types/exhaustive-ui-core-drawer.d.ts +1 -0
  218. package/types/exhaustive-ui-core-fileupload.d.ts +4 -0
  219. package/types/exhaustive-ui-core-iconfield.d.ts +1 -2
  220. package/types/exhaustive-ui-core-image.d.ts +6 -1
  221. package/types/exhaustive-ui-core-inputnumber.d.ts +8 -0
  222. package/types/exhaustive-ui-core-keyfilter.d.ts +1 -0
  223. package/types/exhaustive-ui-core-megamenu.d.ts +1 -0
  224. package/types/exhaustive-ui-core-menu.d.ts +2 -0
  225. package/types/exhaustive-ui-core-menubar.d.ts +6 -0
  226. package/types/exhaustive-ui-core-metergroup.d.ts +1 -1
  227. package/types/exhaustive-ui-core-multiselect.d.ts +1 -1
  228. package/types/exhaustive-ui-core-orderlist.d.ts +11 -1
  229. package/types/exhaustive-ui-core-paginator.d.ts +1 -0
  230. package/types/exhaustive-ui-core-panelmenu.d.ts +7 -0
  231. package/types/exhaustive-ui-core-password.d.ts +9 -1
  232. package/types/exhaustive-ui-core-picklist.d.ts +8 -3
  233. package/types/exhaustive-ui-core-popover.d.ts +3 -0
  234. package/types/exhaustive-ui-core-select.d.ts +13 -1
  235. package/types/exhaustive-ui-core-selectbutton.d.ts +3 -0
  236. package/types/exhaustive-ui-core-splitbutton.d.ts +2 -1
  237. package/types/exhaustive-ui-core-splitter.d.ts +7 -1
  238. package/types/exhaustive-ui-core-stepper.d.ts +3 -2
  239. package/types/exhaustive-ui-core-table.d.ts +34 -4
  240. package/types/exhaustive-ui-core-tabs.d.ts +4 -0
  241. package/types/exhaustive-ui-core-tieredmenu.d.ts +2 -0
  242. package/types/exhaustive-ui-core-togglebutton.d.ts +1 -0
  243. package/types/exhaustive-ui-core-tree.d.ts +2 -0
  244. package/types/exhaustive-ui-core-treeselect.d.ts +12 -1
  245. package/types/exhaustive-ui-core-treetable.d.ts +22 -2
  246. package/types/exhaustive-ui-core-types-chart.d.ts +21 -1
  247. package/types/exhaustive-ui-core-types-confirmdialog.d.ts +1 -3
  248. package/types/exhaustive-ui-core-types-table.d.ts +1 -1
  249. package/types/exhaustive-ui-core-types-treetable.d.ts +2 -2
  250. package/types/exhaustive-ui-core-usestyle.d.ts +17 -0
@@ -1 +1 @@
1
- {"version":3,"file":"exhaustive-ui-core-baseeditableholder.mjs","sources":["../../src/baseeditableholder/baseeditableholder.ts","../../src/baseeditableholder/exhaustive-ui-core-baseeditableholder.ts"],"sourcesContent":["import { booleanAttribute, computed, Directive, input, signal } from '@angular/core';\nimport { ControlValueAccessor } from '@angular/forms';\nimport { BaseModelHolder } from '@exhaustive-ui/core/basemodelholder';\n\n@Directive({ standalone: true })\nexport class BaseEditableHolder<PT = any> extends BaseModelHolder<PT> implements ControlValueAccessor {\n /**\n * There must be a value (if set).\n * @defaultValue false\n * @group Props\n */\n required = input(undefined, { transform: booleanAttribute });\n /**\n * When present, it specifies that the component should have invalid state style.\n * @defaultValue false\n * @group Props\n */\n invalid = input(undefined, { transform: booleanAttribute });\n /**\n * When present, it specifies that the component should have disabled state style.\n * @defaultValue false\n * @group Props\n */\n disabled = input(undefined, { transform: booleanAttribute });\n /**\n * When present, it specifies that the name of the input.\n * @defaultValue undefined\n * @group Props\n */\n name = input<string | undefined>();\n\n _disabled = signal<boolean>(false);\n\n $disabled = computed(() => this.disabled() || this._disabled());\n\n onModelChange: Function = () => {};\n\n onModelTouched: Function = () => {};\n\n writeDisabledState(value: boolean) {\n this._disabled.set(value);\n }\n\n writeControlValue(value: any, setModelValue?: (value: any) => void) {\n // NOOP - this method should be overridden in the derived classes\n }\n\n /**** Angular ControlValueAccessors ****/\n writeValue(value: any) {\n this.writeControlValue(value, this.writeModelValue.bind(this));\n }\n\n registerOnChange(fn: Function) {\n this.onModelChange = fn;\n }\n\n registerOnTouched(fn: Function) {\n this.onModelTouched = fn;\n }\n\n setDisabledState(val: boolean) {\n this.writeDisabledState(val);\n this.cd.markForCheck();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;AAKM,MAAO,kBAA6B,SAAQ,eAAmB,CAAA;AACjE;;;;AAIG;IACH,QAAQ,GAAG,KAAK,CAAC,SAAS,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AAC5D;;;;AAIG;IACH,OAAO,GAAG,KAAK,CAAC,SAAS,+EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AAC3D;;;;AAIG;IACH,QAAQ,GAAG,KAAK,CAAC,SAAS,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AAC5D;;;;AAIG;AACH,IAAA,IAAI,GAAG,KAAK;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AAA,EAAA,SAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,QAAA,EAAA,EAAA,iBAAA,EAAA,UAAA,EAAA,UAAA,EAAA,UAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,IAAA,EAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAD9B,SAAS;mBAAC,EAAE,UAAU,EAAE,IAAI,EAAE;;;ACJ/B;;AAEG;;;;"}
1
+ {"version":3,"file":"exhaustive-ui-core-baseeditableholder.mjs","sources":["../../src/baseeditableholder/baseeditableholder.ts","../../src/baseeditableholder/exhaustive-ui-core-baseeditableholder.ts"],"sourcesContent":["import { booleanAttribute, computed, Directive, input, signal, untracked } from '@angular/core';\nimport { ControlValueAccessor } from '@angular/forms';\nimport { BaseModelHolder } from '@exhaustive-ui/core/basemodelholder';\n\n@Directive({ standalone: true })\nexport class BaseEditableHolder<PT = any> extends BaseModelHolder<PT> implements ControlValueAccessor {\n /**\n * There must be a value (if set).\n * @defaultValue false\n * @group Props\n */\n required = input(undefined, { transform: booleanAttribute });\n /**\n * When present, it specifies that the component should have invalid state style.\n * @defaultValue false\n * @group Props\n */\n invalid = input(undefined, { transform: booleanAttribute });\n /**\n * When present, it specifies that the component should have disabled state style.\n * @defaultValue false\n * @group Props\n */\n disabled = input(undefined, { transform: booleanAttribute });\n /**\n * When present, it specifies that the name of the input.\n * @defaultValue undefined\n * @group Props\n */\n name = input<string | undefined>();\n\n _disabled = signal<boolean>(false);\n\n $disabled = computed(() => this.disabled() || this._disabled());\n\n onModelChange: Function = () => {};\n\n onModelTouched: Function = () => {};\n\n writeDisabledState(value: boolean) {\n this._disabled.set(value);\n }\n\n writeControlValue(value: any, setModelValue?: (value: any) => void) {\n // NOOP - this method should be overridden in the derived classes\n }\n\n /**** Angular ControlValueAccessors ****/\n writeValue(value: any) {\n // Forms can call writeValue from a reactive context (e.g. a consumer effect); the signals read\n // while applying the value must not become dependencies of that context.\n untracked(() => this.writeControlValue(value, this.writeModelValue.bind(this)));\n }\n\n registerOnChange(fn: Function) {\n this.onModelChange = fn;\n }\n\n registerOnTouched(fn: Function) {\n this.onModelTouched = fn;\n }\n\n setDisabledState(val: boolean) {\n this.writeDisabledState(val);\n this.cd.markForCheck();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;AAKM,MAAO,kBAA6B,SAAQ,eAAmB,CAAA;AACjE;;;;AAIG;IACH,QAAQ,GAAG,KAAK,CAAC,SAAS,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AAC5D;;;;AAIG;IACH,OAAO,GAAG,KAAK,CAAC,SAAS,+EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AAC3D;;;;AAIG;IACH,QAAQ,GAAG,KAAK,CAAC,SAAS,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AAC5D;;;;AAIG;AACH,IAAA,IAAI,GAAG,KAAK;wFAAsB;IAElC,SAAS,GAAG,MAAM,CAAU,KAAK;kFAAC;AAElC,IAAA,SAAS,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,QAAQ,EAAE,IAAI,IAAI,CAAC,SAAS,EAAE;kFAAC;AAE/D,IAAA,aAAa,GAAa,MAAK,EAAE,CAAC;AAElC,IAAA,cAAc,GAAa,MAAK,EAAE,CAAC;AAEnC,IAAA,kBAAkB,CAAC,KAAc,EAAA;AAC7B,QAAA,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,CA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AA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAD9B,SAAS;mBAAC,EAAE,UAAU,EAAE,IAAI,EAAE;;;ACJ/B;;AAEG;;;;"}
@@ -2,7 +2,7 @@ export * from '@exhaustive-ui/core/types/blockui';
2
2
  import * as i2 from '@angular/common';
3
3
  import { isPlatformBrowser, CommonModule } from '@angular/common';
4
4
  import * as i0 from '@angular/core';
5
- import { Injectable, inject, afterEveryRender, effect, untracked, input, booleanAttribute, numberAttribute, contentChild, signal, contentChildren, computed, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
5
+ import { Injectable, inject, effect, untracked, input, booleanAttribute, numberAttribute, contentChild, signal, contentChildren, computed, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
6
6
  import { blockBodyScroll, unblockBodyScroll } from '@exhaustive-ui/utils';
7
7
  import { PrimeTemplate, SharedModule } from '@exhaustive-ui/core/api';
8
8
  import { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';
@@ -56,7 +56,7 @@ class BlockUI extends BaseComponent {
56
56
  bindDirectiveInstance = inject(Bind, { self: true });
57
57
  constructor() {
58
58
  super();
59
- afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root'])));
59
+ this.bindHostAttrs(this.bindDirectiveInstance, () => this.ptms(['host', 'root']));
60
60
  effect(() => {
61
61
  const blocked = this.blocked();
62
62
  untracked(() => {
@@ -67,6 +67,10 @@ class BlockUI extends BaseComponent {
67
67
  // Only unblock if currently blocked
68
68
  this.unblock();
69
69
  }
70
+ else if (!this.animationEndListener()) {
71
+ // Keep the mask and its content hidden until the first block
72
+ this.renderer.setStyle(this.el.nativeElement, 'display', 'none');
73
+ }
70
74
  });
71
75
  });
72
76
  }
@@ -113,6 +117,9 @@ class BlockUI extends BaseComponent {
113
117
  ...(ngDevMode ? [{ debugName: "_contentTemplate" }] : /* istanbul ignore next */ []));
114
118
  block() {
115
119
  if (isPlatformBrowser(this.platformId)) {
120
+ // Cancel a pending unblock so its animationend does not tear down this block
121
+ this.unbindAnimationEndListener();
122
+ this.renderer.removeClass(this.el.nativeElement, 'p-overlay-mask-leave-active');
116
123
  this._blocked.set(true);
117
124
  this.el.nativeElement.style.display = 'flex';
118
125
  const target = this.target();
@@ -1 +1 @@
1
- {"version":3,"file":"exhaustive-ui-core-blockui.mjs","sources":["../../src/blockui/style/blockuistyle.ts","../../src/blockui/blockui.ts","../../src/blockui/exhaustive-ui-core-blockui.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { style } from '@exhaustive-ui/styles/blockui';\nimport { BaseStyle } from '@exhaustive-ui/core/base';\n\nconst classes = {\n root: ({ instance }) => [\n 'p-blockui p-blockui-mask',\n {\n 'p-blockui-mask-document': !instance.target()\n }\n ]\n};\n\n@Injectable()\nexport class BlockUiStyle extends BaseStyle {\n name = 'blockui';\n\n style = style;\n\n classes = classes;\n}\n\n/**\n *\n * BlockUI represents people using icons, labels and images.\n *\n * [Live Demo](https://exhaustive-ui.com/blockui)\n *\n * @module blockuistyle\n *\n */\nexport enum BlockUIClasses {\n /**\n * Class name of the root element\n */\n root = 'p-blockui'\n}\n\nexport interface BlockUIStyle extends BaseStyle {}\n","import { CommonModule, isPlatformBrowser } from '@angular/common';\nimport {\n afterEveryRender,\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n ElementRef,\n inject,\n input,\n NgModule,\n numberAttribute,\n signal,\n TemplateRef,\n untracked,\n ViewEncapsulation,\n contentChild,\n contentChildren\n} from '@angular/core';\nimport { blockBodyScroll, unblockBodyScroll } from '@exhaustive-ui/utils';\nimport { PrimeTemplate, SharedModule } from '@exhaustive-ui/core/api';\nimport { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';\nimport { Bind } from '@exhaustive-ui/core/bind';\nimport { BlockUIPassThrough } from '@exhaustive-ui/core/types/blockui';\nimport { ZIndexUtils } from '@exhaustive-ui/core/utils';\nimport { BlockUiStyle } from './style/blockuistyle';\n\n/**\n * BlockUI can either block other components or the whole page.\n * @group Components\n */\n@Component({\n selector: 'p-blockUI, p-blockui, p-block-ui',\n imports: [CommonModule, SharedModule],\n template: `\n <ng-content></ng-content>\n <ng-container *ngTemplateOutlet=\"contentTemplate() || _contentTemplate()\"></ng-container>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [BlockUiStyle, { provide: PARENT_INSTANCE, useExisting: BlockUI }],\n host: {\n '[attr.aria-busy]': '_blocked()',\n '[class]': \"cx('root')\"\n },\n hostDirectives: [Bind]\n})\nexport class BlockUI extends BaseComponent<BlockUIPassThrough> {\n componentName = 'BlockUI';\n\n bindDirectiveInstance = inject(Bind, { self: true });\n\n constructor() {\n super();\n afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root'])));\n effect(() => {\n const blocked = this.blocked();\n untracked(() => {\n if (blocked) {\n this.block();\n } else if (this._blocked()) {\n // Only unblock if currently blocked\n this.unblock();\n }\n });\n });\n }\n /**\n * Name of the local ng-template variable referring to another component.\n * @group Props\n */\n readonly target = input<any>();\n /**\n * Whether to automatically manage layering.\n * @group Props\n */\n readonly autoZIndex = input<boolean, unknown>(true, { transform: booleanAttribute });\n /**\n * Base zIndex value to use in layering.\n * @group Props\n */\n readonly baseZIndex = input<number, unknown>(0, { transform: numberAttribute });\n /**\n * Current blocked state as a boolean.\n * @group Props\n */\n readonly blocked = input<boolean, unknown>(false, { transform: booleanAttribute });\n /**\n * template of the content\n * @group Templates\n */\n readonly contentTemplate = contentChild<TemplateRef<any>>('content', { descendants: false });\n\n _blocked = signal<boolean>(false);\n\n animationEndListener = signal<VoidFunction | null | undefined>(undefined);\n\n _componentStyle = inject(BlockUiStyle);\n\n onAfterViewInit() {\n const target = this.target();\n if (target && !target.getBlockableElement) {\n throw 'Target of BlockUI must implement BlockableUI interface';\n }\n }\n\n readonly templates = contentChildren(PrimeTemplate);\n\n readonly _contentTemplate = computed<TemplateRef<any> | undefined>(() => this.templates().at(-1)?.template);\n\n block() {\n if (isPlatformBrowser(this.platformId)) {\n this._blocked.set(true);\n (this.el as ElementRef).nativeElement.style.display = 'flex';\n\n const target = this.target();\n if (target) {\n target.getBlockableElement().appendChild((this.el as ElementRef).nativeElement);\n target.getBlockableElement().style.position = 'relative';\n } else {\n this.renderer.appendChild(this.document.body, (this.el as ElementRef).nativeElement);\n //@ts-ignore\n blockBodyScroll();\n }\n\n if (this.autoZIndex()) {\n ZIndexUtils.set('modal', (this.el as ElementRef).nativeElement, this.baseZIndex() + this.config.zIndex.modal);\n }\n\n this.renderer.addClass(this.el.nativeElement, 'p-overlay-mask');\n this.renderer.addClass(this.el.nativeElement, 'p-overlay-mask-enter-active');\n }\n }\n\n unblock() {\n if (isPlatformBrowser(this.platformId) && this.el && this._blocked()) {\n this._blocked.set(false);\n if (!this.animationEndListener()) {\n this.animationEndListener.set(this.renderer.listen(this.el.nativeElement, 'animationend', this.destroyModal.bind(this)));\n }\n this.renderer.removeClass(this.el.nativeElement, 'p-overlay-mask-enter-active');\n this.renderer.addClass(this.el.nativeElement, 'p-overlay-mask-leave-active');\n }\n }\n\n destroyModal() {\n this._blocked.set(false);\n if (this.el && isPlatformBrowser(this.platformId)) {\n this.el.nativeElement.style.display = 'none';\n this.renderer.removeClass(this.el.nativeElement, 'p-overlay-mask');\n this.renderer.removeClass(this.el.nativeElement, 'p-overlay-mask-leave-active');\n ZIndexUtils.clear(this.el.nativeElement);\n\n if (!this.target()) {\n this.document.body.removeChild(this.el.nativeElement);\n //@ts-ignore\n unblockBodyScroll();\n }\n }\n this.unbindAnimationEndListener();\n }\n\n unbindAnimationEndListener() {\n const animationEndListener = this.animationEndListener();\n if (animationEndListener && this.el) {\n animationEndListener();\n this.animationEndListener.set(null);\n }\n }\n\n onDestroy() {\n if (this._blocked()) {\n // Skip animation on destroy, just cleanup\n this._blocked.set(false);\n if (this.el && isPlatformBrowser(this.platformId)) {\n ZIndexUtils.clear(this.el.nativeElement);\n if (!this.target()) {\n //@ts-ignore\n unblockBodyScroll();\n }\n }\n this.unbindAnimationEndListener();\n }\n }\n}\n\n@NgModule({\n imports: [BlockUI, SharedModule],\n exports: [BlockUI, SharedModule]\n})\nexport class BlockUIModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAIA,MAAM,OAAO,GAAG;AACZ,IAAA,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,KAAK;QACpB,0BAA0B;AAC1B,QAAA;AACI,YAAA,yBAAyB,EAAE,CAAC,QAAQ,CAAC,MAAM;AAC9C;AACJ;CACJ;AAGK,MAAO,YAAa,SAAQ,SAAS,CAAA;IACvC,IAAI,GAAG,SAAS;IAEhB,KAAK,GAAG,KAAK;IAEb,OAAO,GAAG,OAAO;uGALR,YAAY,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;2GAAZ,YAAY,EAAA,CAAA;;2FAAZ,YAAY,EAAA,UAAA,EAAA,CAAA;kBADxB;;AASD;;;;;;;;AAQG;IACS;AAAZ,CAAA,UAAY,cAAc,EAAA;AACtB;;AAEG;AACH,IAAA,cAAA,CAAA,MAAA,CAAA,GAAA,WAAkB;AACtB,CAAC,EALW,cAAc,KAAd,cAAc,GAAA,EAAA,CAAA,CAAA;;ACH1B;;;AAGG;AAiBG,MAAO,OAAQ,SAAQ,aAAiC,CAAA;IAC1D,aAAa,GAAG,SAAS;IAEzB,qBAAqB,GAAG,MAAM,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;AAEpD,IAAA,WAAA,GAAA;AACI,QAAA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A,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,EAAA,OAAA,EAAA,CAHZ,OAAO,EAAE,YAAY,EACZ,YAAY,CAAA,EAAA,CAAA;;2FAEtB,aAAa,EAAA,UAAA,EAAA,CAAA;kBAJzB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,OAAO,EAAE,YAAY,CAAC;AAChC,oBAAA,OAAO,EAAE,CAAC,OAAO,EAAE,YAAY;AAClC,iBAAA;;;AC9LD;;AAEG;;;;"}
1
+ {"version":3,"file":"exhaustive-ui-core-blockui.mjs","sources":["../../src/blockui/style/blockuistyle.ts","../../src/blockui/blockui.ts","../../src/blockui/exhaustive-ui-core-blockui.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { style } from '@exhaustive-ui/styles/blockui';\nimport { BaseStyle } from '@exhaustive-ui/core/base';\n\nconst classes = {\n root: ({ instance }) => [\n 'p-blockui p-blockui-mask',\n {\n 'p-blockui-mask-document': !instance.target()\n }\n ]\n};\n\n@Injectable()\nexport class BlockUiStyle extends BaseStyle {\n name = 'blockui';\n\n style = style;\n\n classes = classes;\n}\n\n/**\n *\n * BlockUI represents people using icons, labels and images.\n *\n * [Live Demo](https://exhaustive-ui.com/blockui)\n *\n * @module blockuistyle\n *\n */\nexport enum BlockUIClasses {\n /**\n * Class name of the root element\n */\n root = 'p-blockui'\n}\n\nexport interface BlockUIStyle extends BaseStyle {}\n","import { CommonModule, isPlatformBrowser } from '@angular/common';\nimport { booleanAttribute, ChangeDetectionStrategy, Component, computed, effect, ElementRef, inject, input, NgModule, numberAttribute, signal, TemplateRef, untracked, ViewEncapsulation, contentChild, contentChildren } from '@angular/core';\nimport { blockBodyScroll, unblockBodyScroll } from '@exhaustive-ui/utils';\nimport { PrimeTemplate, SharedModule } from '@exhaustive-ui/core/api';\nimport { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';\nimport { Bind } from '@exhaustive-ui/core/bind';\nimport { BlockUIPassThrough } from '@exhaustive-ui/core/types/blockui';\nimport { ZIndexUtils } from '@exhaustive-ui/core/utils';\nimport { BlockUiStyle } from './style/blockuistyle';\n\n/**\n * BlockUI can either block other components or the whole page.\n * @group Components\n */\n@Component({\n selector: 'p-blockUI, p-blockui, p-block-ui',\n imports: [CommonModule, SharedModule],\n template: `\n <ng-content></ng-content>\n <ng-container *ngTemplateOutlet=\"contentTemplate() || _contentTemplate()\"></ng-container>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [BlockUiStyle, { provide: PARENT_INSTANCE, useExisting: BlockUI }],\n host: {\n '[attr.aria-busy]': '_blocked()',\n '[class]': \"cx('root')\"\n },\n hostDirectives: [Bind]\n})\nexport class BlockUI extends BaseComponent<BlockUIPassThrough> {\n componentName = 'BlockUI';\n\n bindDirectiveInstance = inject(Bind, { self: true });\n\n constructor() {\n super();\n this.bindHostAttrs(this.bindDirectiveInstance, () => this.ptms(['host', 'root']));\n effect(() => {\n const blocked = this.blocked();\n untracked(() => {\n if (blocked) {\n this.block();\n } else if (this._blocked()) {\n // Only unblock if currently blocked\n this.unblock();\n } else if (!this.animationEndListener()) {\n // Keep the mask and its content hidden until the first block\n this.renderer.setStyle(this.el.nativeElement, 'display', 'none');\n }\n });\n });\n }\n /**\n * Name of the local ng-template variable referring to another component.\n * @group Props\n */\n readonly target = input<any>();\n /**\n * Whether to automatically manage layering.\n * @group Props\n */\n readonly autoZIndex = input<boolean, unknown>(true, { transform: booleanAttribute });\n /**\n * Base zIndex value to use in layering.\n * @group Props\n */\n readonly baseZIndex = input<number, unknown>(0, { transform: numberAttribute });\n /**\n * Current blocked state as a boolean.\n * @group Props\n */\n readonly blocked = input<boolean, unknown>(false, { transform: booleanAttribute });\n /**\n * template of the content\n * @group Templates\n */\n readonly contentTemplate = contentChild<TemplateRef<any>>('content', { descendants: false });\n\n _blocked = signal<boolean>(false);\n\n animationEndListener = signal<VoidFunction | null | undefined>(undefined);\n\n _componentStyle = inject(BlockUiStyle);\n\n onAfterViewInit() {\n const target = this.target();\n if (target && !target.getBlockableElement) {\n throw 'Target of BlockUI must implement BlockableUI interface';\n }\n }\n\n readonly templates = contentChildren(PrimeTemplate);\n\n readonly _contentTemplate = computed<TemplateRef<any> | undefined>(() => this.templates().at(-1)?.template);\n\n block() {\n if (isPlatformBrowser(this.platformId)) {\n // Cancel a pending unblock so its animationend does not tear down this block\n this.unbindAnimationEndListener();\n this.renderer.removeClass(this.el.nativeElement, 'p-overlay-mask-leave-active');\n this._blocked.set(true);\n (this.el as ElementRef).nativeElement.style.display = 'flex';\n\n const target = this.target();\n if (target) {\n target.getBlockableElement().appendChild((this.el as ElementRef).nativeElement);\n target.getBlockableElement().style.position = 'relative';\n } else {\n this.renderer.appendChild(this.document.body, (this.el as ElementRef).nativeElement);\n //@ts-ignore\n blockBodyScroll();\n }\n\n if (this.autoZIndex()) {\n ZIndexUtils.set('modal', (this.el as ElementRef).nativeElement, this.baseZIndex() + this.config.zIndex.modal);\n }\n\n this.renderer.addClass(this.el.nativeElement, 'p-overlay-mask');\n this.renderer.addClass(this.el.nativeElement, 'p-overlay-mask-enter-active');\n }\n }\n\n unblock() {\n if (isPlatformBrowser(this.platformId) && this.el && this._blocked()) {\n this._blocked.set(false);\n if (!this.animationEndListener()) {\n this.animationEndListener.set(this.renderer.listen(this.el.nativeElement, 'animationend', this.destroyModal.bind(this)));\n }\n this.renderer.removeClass(this.el.nativeElement, 'p-overlay-mask-enter-active');\n this.renderer.addClass(this.el.nativeElement, 'p-overlay-mask-leave-active');\n }\n }\n\n destroyModal() {\n this._blocked.set(false);\n if (this.el && isPlatformBrowser(this.platformId)) {\n this.el.nativeElement.style.display = 'none';\n this.renderer.removeClass(this.el.nativeElement, 'p-overlay-mask');\n this.renderer.removeClass(this.el.nativeElement, 'p-overlay-mask-leave-active');\n ZIndexUtils.clear(this.el.nativeElement);\n\n if (!this.target()) {\n this.document.body.removeChild(this.el.nativeElement);\n //@ts-ignore\n unblockBodyScroll();\n }\n }\n this.unbindAnimationEndListener();\n }\n\n unbindAnimationEndListener() {\n const animationEndListener = this.animationEndListener();\n if (animationEndListener && this.el) {\n animationEndListener();\n this.animationEndListener.set(null);\n }\n }\n\n onDestroy() {\n if (this._blocked()) {\n // Skip animation on destroy, just cleanup\n this._blocked.set(false);\n if (this.el && isPlatformBrowser(this.platformId)) {\n ZIndexUtils.clear(this.el.nativeElement);\n if (!this.target()) {\n //@ts-ignore\n unblockBodyScroll();\n }\n }\n this.unbindAnimationEndListener();\n }\n }\n}\n\n@NgModule({\n imports: [BlockUI, SharedModule],\n exports: [BlockUI, SharedModule]\n})\nexport class BlockUIModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAIA,MAAM,OAAO,GAAG;AACZ,IAAA,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,KAAK;QACpB,0BAA0B;AAC1B,QAAA;AACI,YAAA,yBAAyB,EAAE,CAAC,QAAQ,CAAC,MAAM;AAC9C;AACJ;CACJ;AAGK,MAAO,YAAa,SAAQ,SAAS,CAAA;IACvC,IAAI,GAAG,SAAS;IAEhB,KAAK,GAAG,KAAK;IAEb,OAAO,GAAG,OAAO;uGALR,YAAY,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;2GAAZ,YAAY,EAAA,CAAA;;2FAAZ,YAAY,EAAA,UAAA,EAAA,CAAA;kBADxB;;AASD;;;;;;;;AAQG;IACS;AAAZ,CAAA,UAAY,cAAc,EAAA;AACtB;;AAEG;AACH,IAAA,cAAA,CAAA,MAAA,CAAA,GAAA,WAAkB;AACtB,CAAC,EALW,cAAc,KAAd,cAAc,GAAA,EAAA,CAAA,CAAA;;ACrB1B;;;AAGG;AAiBG,MAAO,OAAQ,S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AA,CAAA,EAAA,EAAA,CAAA;MAuFzC,aAAa,CAAA;uGAAb,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;AAAb,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,YArJb,OAAO,EAkJG,YAAY,CAAA,EAAA,OAAA,EAAA,CAlJtB,OAAO,EAmJG,YAAY,CAAA,EAAA,CAAA;AAEtB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,EAAA,OAAA,EAAA,CAHZ,OAAO,EAAE,YAAY,EACZ,YAAY,CAAA,EAAA,CAAA;;2FAEtB,aAAa,EAAA,UAAA,EAAA,CAAA;kBAJzB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,OAAO,EAAE,YAAY,CAAC;AAChC,oBAAA,OAAO,EAAE,CAAC,OAAO,EAAE,YAAY;AAClC,iBAAA;;;AClLD;;AAEG;;;;"}
@@ -2,7 +2,7 @@ export * from '@exhaustive-ui/core/types/breadcrumb';
2
2
  import * as i2 from '@angular/common';
3
3
  import { CommonModule } from '@angular/common';
4
4
  import * as i0 from '@angular/core';
5
- import { Injectable, inject, afterEveryRender, input, output, contentChild, contentChildren, computed, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
5
+ import { Injectable, inject, input, output, contentChild, contentChildren, computed, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
6
6
  import * as i3 from '@angular/router';
7
7
  import { Router, RouterModule, RouterLink, RouterLinkActive } from '@angular/router';
8
8
  import { TranslationKeys, PrimeTemplate, SharedModule } from '@exhaustive-ui/core/api';
@@ -90,7 +90,7 @@ class Breadcrumb extends BaseComponent {
90
90
  bindDirectiveInstance = inject(Bind, { self: true });
91
91
  constructor() {
92
92
  super();
93
- afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptm('host')));
93
+ this.bindHostAttrs(this.bindDirectiveInstance, () => this.ptm('host'));
94
94
  }
95
95
  /**
96
96
  * An array of menuitems.
@@ -122,6 +122,13 @@ class Breadcrumb extends BaseComponent {
122
122
  */
123
123
  homeAriaLabel = input(/* @ts-ignore */
124
124
  ...(ngDevMode ? [undefined, { debugName: "homeAriaLabel" }] : /* istanbul ignore next */ []));
125
+ /**
126
+ * Defines a string that labels the nav landmark for accessibility. Give each breadcrumb on a page a distinct label.
127
+ * @defaultValue 'Breadcrumb'
128
+ * @group Props
129
+ */
130
+ ariaLabel = input('Breadcrumb', /* @ts-ignore */
131
+ ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
125
132
  /**
126
133
  * Fired when an item is selected.
127
134
  * @param {BreadcrumbItemClickEvent} event - custom click event.
@@ -199,8 +206,8 @@ class Breadcrumb extends BaseComponent {
199
206
  return false;
200
207
  }
201
208
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Breadcrumb, deps: [], target: i0.ɵɵFactoryTarget.Component });
202
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: Breadcrumb, isStandalone: true, selector: "p-breadcrumb", inputs: { model: { classPropertyName: "model", publicName: "model", 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 }, home: { classPropertyName: "home", publicName: "home", isSignal: true, isRequired: false, transformFunction: null }, homeAriaLabel: { classPropertyName: "homeAriaLabel", publicName: "homeAriaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onItemClick: "onItemClick" }, providers: [BreadCrumbStyle, { provide: PARENT_INSTANCE, useExisting: Breadcrumb }], queries: [{ propertyName: "itemTemplate", first: true, predicate: ["item"], descendants: true, isSignal: true }, { propertyName: "separatorTemplate", first: true, predicate: ["separator"], descendants: true, isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
203
- <nav [pBind]="ptm('root')" [class]="cn(cx('root'), styleClass())" [style]="style()">
209
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: Breadcrumb, isStandalone: true, selector: "p-breadcrumb", inputs: { model: { classPropertyName: "model", publicName: "model", 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 }, home: { classPropertyName: "home", publicName: "home", isSignal: true, isRequired: false, transformFunction: null }, homeAriaLabel: { classPropertyName: "homeAriaLabel", publicName: "homeAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onItemClick: "onItemClick" }, providers: [BreadCrumbStyle, { provide: PARENT_INSTANCE, useExisting: Breadcrumb }], queries: [{ propertyName: "itemTemplate", first: true, predicate: ["item"], descendants: true, isSignal: true }, { propertyName: "separatorTemplate", first: true, predicate: ["separator"], descendants: true, isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
210
+ <nav [pBind]="ptm('root')" [class]="cn(cx('root'), styleClass())" [style]="style()" [attr.aria-label]="ariaLabel()">
204
211
  <ol [class]="cx('list')" [pBind]="ptm('list')">
205
212
  @if (home() && home()?.visible !== false) {
206
213
  <li [attr.id]="home().id" [class]="cn(cx('homeItem'), home().styleClass)" [ngStyle]="home().style" pTooltip [tooltipOptions]="home().tooltipOptions" [pBind]="ptm('homeItem')" [unstyled]="unstyled()">
@@ -392,7 +399,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
392
399
  selector: 'p-breadcrumb',
393
400
  imports: [CommonModule, RouterModule, RouterLink, RouterLinkActive, TooltipModule, ChevronRightIcon, HomeIcon, SharedModule, Bind, Badge],
394
401
  template: `
395
- <nav [pBind]="ptm('root')" [class]="cn(cx('root'), styleClass())" [style]="style()">
402
+ <nav [pBind]="ptm('root')" [class]="cn(cx('root'), styleClass())" [style]="style()" [attr.aria-label]="ariaLabel()">
396
403
  <ol [class]="cx('list')" [pBind]="ptm('list')">
397
404
  @if (home() && home()?.visible !== false) {
398
405
  <li [attr.id]="home().id" [class]="cn(cx('homeItem'), home().styleClass)" [ngStyle]="home().style" pTooltip [tooltipOptions]="home().tooltipOptions" [pBind]="ptm('homeItem')" [unstyled]="unstyled()">
@@ -582,7 +589,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
582
589
  providers: [BreadCrumbStyle, { provide: PARENT_INSTANCE, useExisting: Breadcrumb }],
583
590
  hostDirectives: [Bind]
584
591
  }]
585
- }], ctorParameters: () => [], propDecorators: { model: [{ type: i0.Input, args: [{ isSignal: true, alias: "model", required: false }] }], style: [{ type: i0.Input, args: [{ isSignal: true, alias: "style", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], home: [{ type: i0.Input, args: [{ isSignal: true, alias: "home", required: false }] }], homeAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "homeAriaLabel", required: false }] }], onItemClick: [{ type: i0.Output, args: ["onItemClick"] }], itemTemplate: [{ type: i0.ContentChild, args: ['item', { isSignal: true }] }], separatorTemplate: [{ type: i0.ContentChild, args: ['separator', { isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }] } });
592
+ }], ctorParameters: () => [], propDecorators: { model: [{ type: i0.Input, args: [{ isSignal: true, alias: "model", required: false }] }], style: [{ type: i0.Input, args: [{ isSignal: true, alias: "style", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], home: [{ type: i0.Input, args: [{ isSignal: true, alias: "home", required: false }] }], homeAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "homeAriaLabel", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], onItemClick: [{ type: i0.Output, args: ["onItemClick"] }], itemTemplate: [{ type: i0.ContentChild, args: ['item', { isSignal: true }] }], separatorTemplate: [{ type: i0.ContentChild, args: ['separator', { isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }] } });
586
593
  class BreadcrumbModule {
587
594
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: BreadcrumbModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
588
595
  static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.2.1", ngImport: i0, type: BreadcrumbModule, imports: [Breadcrumb, SharedModule], exports: [Breadcrumb, SharedModule] });
@@ -1 +1 @@
1
- {"version":3,"file":"exhaustive-ui-core-breadcrumb.mjs","sources":["../../src/breadcrumb/style/breadcrumbstyle.ts","../../src/breadcrumb/breadcrumb.ts","../../src/breadcrumb/exhaustive-ui-core-breadcrumb.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { style } from '@exhaustive-ui/styles/breadcrumb';\nimport { BaseStyle } from '@exhaustive-ui/core/base';\n\nconst classes = {\n root: () => ['p-breadcrumb p-component'],\n list: 'p-breadcrumb-list',\n homeItem: 'p-breadcrumb-home-item',\n separator: 'p-breadcrumb-separator',\n item: ({ menuitem }) => ['p-breadcrumb-item', { 'p-disabled': menuitem.disabled }],\n itemLink: 'p-breadcrumb-item-link',\n itemIcon: 'p-breadcrumb-item-icon',\n itemLabel: 'p-breadcrumb-item-label'\n};\n\n@Injectable()\nexport class BreadCrumbStyle extends BaseStyle {\n name = 'breadcrumb';\n\n style = style;\n\n classes = classes;\n}\n\n/**\n *\n * Breadcrumb provides contextual information about page hierarchy.\n *\n * [Live Demo](https://exhaustive-ui.com/breadcrumb/)\n *\n * @module breadcrumbstyle\n *\n */\nexport enum BreadcrumbClasses {\n /**\n * Class name of the root element\n */\n root = 'p-breadcrumb',\n /**\n * Class name of the list element\n */\n list = 'p-breadcrumb-list',\n /**\n * Class name of the home item element\n */\n homeItem = 'p-breadcrumb-home-item',\n /**\n * Class name of the separator element\n */\n separator = 'p-breadcrumb-separator',\n /**\n * Class name of the item element\n */\n item = 'p-breadcrumb-item',\n /**\n * Class name of the item link element\n */\n itemLink = 'p-breadcrumb-item-link',\n /**\n * Class name of the item icon element\n */\n itemIcon = 'p-breadcrumb-item-icon',\n /**\n * Class name of the item label element\n */\n itemLabel = 'p-breadcrumb-item-label'\n}\n\nexport interface BreadcrumbStyle extends BaseStyle {}\n","import { CommonModule } from '@angular/common';\nimport { afterEveryRender, ChangeDetectionStrategy, Component, computed, inject, input, NgModule, TemplateRef, ViewEncapsulation, contentChild, contentChildren, output } from '@angular/core';\nimport { Router, RouterLink, RouterLinkActive, RouterModule } from '@angular/router';\nimport { MenuItem, PrimeTemplate, SharedModule, TranslationKeys } from '@exhaustive-ui/core/api';\nimport { Badge } from '@exhaustive-ui/core/badge';\nimport { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';\nimport { Bind } from '@exhaustive-ui/core/bind';\nimport { ChevronRightIcon, HomeIcon } from '@exhaustive-ui/core/icons';\nimport { TooltipModule } from '@exhaustive-ui/core/tooltip';\nimport { BreadcrumbItemClickEvent, BreadcrumbItemTemplateContext, BreadcrumbPassThrough } from '@exhaustive-ui/core/types/breadcrumb';\nimport { BreadCrumbStyle } from './style/breadcrumbstyle';\n\n/**\n * Breadcrumb provides contextual information about page hierarchy.\n * @group Components\n */\n@Component({\n selector: 'p-breadcrumb',\n imports: [CommonModule, RouterModule, RouterLink, RouterLinkActive, TooltipModule, ChevronRightIcon, HomeIcon, SharedModule, Bind, Badge],\n template: `\n <nav [pBind]=\"ptm('root')\" [class]=\"cn(cx('root'), styleClass())\" [style]=\"style()\">\n <ol [class]=\"cx('list')\" [pBind]=\"ptm('list')\">\n @if (home() && home()?.visible !== false) {\n <li [attr.id]=\"home().id\" [class]=\"cn(cx('homeItem'), home().styleClass)\" [ngStyle]=\"home().style\" pTooltip [tooltipOptions]=\"home().tooltipOptions\" [pBind]=\"ptm('homeItem')\" [unstyled]=\"unstyled()\">\n @if (itemTemplate() || _itemTemplate()) {\n <ng-template *ngTemplateOutlet=\"itemTemplate() || _itemTemplate(); context: { $implicit: home() }\"></ng-template>\n } @else {\n @if (!home().routerLink) {\n <a\n [href]=\"home().url ? home().url : null\"\n [attr.aria-label]=\"homeLinkAriaLabel\"\n [class]=\"cn(cx('itemLink'), home().linkClass)\"\n [ngStyle]=\"home().linkStyle\"\n (click)=\"onClick($event, home())\"\n [target]=\"home().target\"\n [attr.title]=\"home().title\"\n [attr.tabindex]=\"home().disabled ? null : home().tabindex || '0'\"\n [attr.data-automationid]=\"home().automationId\"\n [pBind]=\"ptm('itemLink')\"\n >\n @if (home().icon) {\n <span [class]=\"cn(cx('itemIcon'), home().icon, home().iconClass)\" [ngStyle]=\"home().iconStyle\" [pBind]=\"ptm('itemIcon')\"></span>\n }\n @if (!home().icon) {\n <svg data-p-icon=\"home\" [class]=\"cx('itemIcon')\" [pBind]=\"ptm('itemIcon')\" />\n }\n @if (home().label) {\n @if (home().escape !== false) {\n <span [class]=\"cn(cx('itemLabel'), home().labelClass)\" [ngStyle]=\"home().labelStyle\" [pBind]=\"ptm('itemLabel')\">{{ home().label }}</span>\n } @else {\n <span [class]=\"cn(cx('itemLabel'), home().labelClass)\" [ngStyle]=\"home().labelStyle\" [innerHTML]=\"home().label\" [pBind]=\"ptm('itemLabel')\"></span>\n }\n }\n @if (home().badge) {\n <p-badge [class]=\"home().badgeStyleClass\" [value]=\"home().badge\" [pt]=\"ptm('pcBadge')\" [unstyled]=\"unstyled()\" />\n }\n </a>\n }\n @if (home().routerLink) {\n <a\n [routerLink]=\"home().routerLink\"\n routerLinkActive=\"p-menuitem-link-active\"\n [attr.aria-label]=\"homeLinkAriaLabel\"\n [queryParams]=\"home().queryParams\"\n [routerLinkActiveOptions]=\"home().routerLinkActiveOptions || { exact: false }\"\n [class]=\"cn(cx('itemLink'), home().linkClass)\"\n [ngStyle]=\"home().linkStyle\"\n (click)=\"onClick($event, home())\"\n [target]=\"home().target\"\n [attr.title]=\"home().title\"\n [attr.tabindex]=\"home().disabled ? null : home().tabindex || '0'\"\n [attr.data-automationid]=\"home().automationId\"\n [fragment]=\"home().fragment\"\n [queryParamsHandling]=\"home().queryParamsHandling\"\n [preserveFragment]=\"home().preserveFragment\"\n [skipLocationChange]=\"home().skipLocationChange\"\n [replaceUrl]=\"home().replaceUrl\"\n [state]=\"home().state\"\n [pBind]=\"ptm('itemLink')\"\n >\n @if (home().icon) {\n <span [class]=\"cn(cx('itemIcon'), home().icon, home().iconClass)\" [ngStyle]=\"home().iconStyle\" [pBind]=\"ptm('itemIcon')\"></span>\n }\n @if (!home().icon) {\n <svg data-p-icon=\"home\" [class]=\"cx('itemIcon')\" [pBind]=\"ptm('itemIcon')\" />\n }\n @if (home().label) {\n @if (home().escape !== false) {\n <span [class]=\"cn(cx('itemLabel'), home().labelClass)\" [ngStyle]=\"home().labelStyle\" [pBind]=\"ptm('itemLabel')\">{{ home().label }}</span>\n } @else {\n <span [class]=\"cn(cx('itemLabel'), home().labelClass)\" [ngStyle]=\"home().labelStyle\" [innerHTML]=\"home().label\" [pBind]=\"ptm('itemLabel')\"></span>\n }\n }\n @if (home().badge) {\n <p-badge [class]=\"home().badgeStyleClass\" [value]=\"home().badge\" [pt]=\"ptm('pcBadge')\" [unstyled]=\"unstyled()\" />\n }\n </a>\n }\n }\n </li>\n }\n @if (model() && home()) {\n <li [class]=\"cx('separator')\" [pBind]=\"ptm('separator')\" aria-hidden=\"true\">\n @if (!separatorTemplate() && !_separatorTemplate()) {\n <svg data-p-icon=\"chevron-right\" [pBind]=\"ptm('separatorIcon')\" />\n }\n <ng-template *ngTemplateOutlet=\"separatorTemplate() || _separatorTemplate()\"></ng-template>\n </li>\n }\n @for (menuitem of model(); track $index; let end = $last; let i = $index) {\n @if (menuitem.visible !== false) {\n <li\n [class]=\"cn(cx('item', { menuitem }), menuitem.styleClass)\"\n [attr.id]=\"menuitem.id\"\n [style]=\"menuitem.style\"\n pTooltip\n [tooltipOptions]=\"menuitem.tooltipOptions\"\n [pBind]=\"getPTOptions(menuitem, i, 'item')\"\n [pTooltipUnstyled]=\"unstyled()\"\n >\n @if (itemTemplate() || _itemTemplate()) {\n <ng-template *ngTemplateOutlet=\"itemTemplate() || _itemTemplate(); context: { $implicit: menuitem }\"></ng-template>\n } @else {\n @if (!menuitem?.routerLink) {\n <a\n [attr.href]=\"menuitem?.url ? menuitem?.url : null\"\n [class]=\"cn(cx('itemLink'), menuitem?.linkClass)\"\n [ngStyle]=\"menuitem?.linkStyle\"\n (click)=\"onClick($event, menuitem)\"\n [target]=\"menuitem?.target\"\n [attr.title]=\"menuitem?.title\"\n [attr.tabindex]=\"menuitem?.disabled ? null : menuitem?.tabindex || '0'\"\n [attr.data-automationid]=\"menuitem?.automationId\"\n [attr.aria-current]=\"isCurrentPage(i) ? 'page' : undefined\"\n [pBind]=\"getPTOptions(menuitem, i, 'itemLink')\"\n >\n @if (!itemTemplate() && !_itemTemplate()) {\n @if (menuitem?.icon) {\n <span [class]=\"cn(cx('itemIcon'), menuitem?.icon, menuitem?.iconClass)\" [ngStyle]=\"menuitem?.iconStyle\" [pBind]=\"getPTOptions(menuitem, i, 'itemIcon')\"></span>\n }\n @if (menuitem?.label) {\n @if (menuitem?.escape !== false) {\n <span [class]=\"cn(cx('itemLabel'), menuitem?.labelClass)\" [ngStyle]=\"menuitem?.labelStyle\" [pBind]=\"getPTOptions(menuitem, i, 'itemLabel')\">{{ menuitem?.label }}</span>\n } @else {\n <span [class]=\"cn(cx('itemLabel'), menuitem?.labelClass)\" [ngStyle]=\"menuitem?.labelStyle\" [innerHTML]=\"menuitem?.label\" [pBind]=\"getPTOptions(menuitem, i, 'itemLabel')\"></span>\n }\n }\n @if (menuitem?.badge) {\n <p-badge [class]=\"menuitem?.badgeStyleClass\" [value]=\"menuitem?.badge\" [pt]=\"getPTOptions(menuitem, i, 'pcBadge')\" [unstyled]=\"unstyled()\" />\n }\n }\n </a>\n }\n @if (menuitem?.routerLink) {\n <a\n [routerLink]=\"menuitem?.routerLink\"\n routerLinkActive=\"p-menuitem-link-active\"\n [queryParams]=\"menuitem?.queryParams\"\n [routerLinkActiveOptions]=\"menuitem?.routerLinkActiveOptions || { exact: false }\"\n [class]=\"cn(cx('itemLink'), menuitem?.linkClass)\"\n [ngStyle]=\"menuitem?.linkStyle\"\n (click)=\"onClick($event, menuitem)\"\n [target]=\"menuitem?.target\"\n [attr.title]=\"menuitem?.title\"\n [attr.tabindex]=\"menuitem?.disabled ? null : menuitem?.tabindex || '0'\"\n [attr.data-automationid]=\"menuitem?.automationId\"\n [fragment]=\"menuitem?.fragment\"\n [queryParamsHandling]=\"menuitem?.queryParamsHandling\"\n [preserveFragment]=\"menuitem?.preserveFragment\"\n [skipLocationChange]=\"menuitem?.skipLocationChange\"\n [replaceUrl]=\"menuitem?.replaceUrl\"\n [state]=\"menuitem?.state\"\n [ariaCurrentWhenActive]=\"isCurrentPage(i) ? 'page' : undefined\"\n [pBind]=\"getPTOptions(menuitem, i, 'itemLink')\"\n >\n @if (menuitem?.icon) {\n <span [class]=\"cn(cx('itemIcon'), menuitem?.icon, menuitem?.iconClass)\" [ngStyle]=\"menuitem?.iconStyle\" [pBind]=\"getPTOptions(menuitem, i, 'itemIcon')\"></span>\n }\n @if (menuitem?.label) {\n @if (menuitem?.escape !== false) {\n <span [class]=\"cn(cx('itemLabel'), menuitem?.labelClass)\" [ngStyle]=\"menuitem?.labelStyle\" [pBind]=\"getPTOptions(menuitem, i, 'itemLabel')\">{{ menuitem?.label }}</span>\n } @else {\n <span [class]=\"cn(cx('itemLabel'), menuitem?.labelClass)\" [ngStyle]=\"menuitem?.labelStyle\" [innerHTML]=\"menuitem?.label\" [pBind]=\"getPTOptions(menuitem, i, 'itemLabel')\"></span>\n }\n }\n @if (menuitem?.badge) {\n <p-badge [class]=\"menuitem?.badgeStyleClass\" [value]=\"menuitem?.badge\" [pt]=\"getPTOptions(menuitem, i, 'pcBadge')\" [unstyled]=\"unstyled()\" />\n }\n </a>\n }\n }\n </li>\n }\n @if (!end && menuitem.visible !== false) {\n <li [class]=\"cx('separator')\" [pBind]=\"ptm('separator')\" aria-hidden=\"true\">\n @if (!separatorTemplate() && !_separatorTemplate()) {\n <svg data-p-icon=\"chevron-right\" [pBind]=\"ptm('separatorIcon')\" />\n }\n <ng-template *ngTemplateOutlet=\"separatorTemplate() || _separatorTemplate()\"></ng-template>\n </li>\n }\n }\n </ol>\n </nav>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [BreadCrumbStyle, { provide: PARENT_INSTANCE, useExisting: Breadcrumb }],\n hostDirectives: [Bind]\n})\nexport class Breadcrumb extends BaseComponent<BreadcrumbPassThrough> {\n componentName = 'Breadcrumb';\n\n bindDirectiveInstance = inject(Bind, { self: true });\n\n constructor() {\n super();\n afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptm('host')));\n }\n /**\n * An array of menuitems.\n * @group Props\n */\n readonly model = input<MenuItem[] | undefined>();\n /**\n * Inline style of the component.\n * @group Props\n */\n readonly style = input<{ [klass: string]: any } | null | undefined>();\n /**\n * Style class of the component.\n * @group Props\n */\n readonly styleClass = input<string | undefined>();\n /**\n * MenuItem configuration for the home icon.\n * @group Props\n */\n readonly home = input<MenuItem | undefined>();\n /**\n * Defines a string that labels the home icon for accessibility. Defaults to the `aria.home` translation when the home item has no visible label.\n * @group Props\n */\n readonly homeAriaLabel = input<string | undefined>();\n /**\n * Fired when an item is selected.\n * @param {BreadcrumbItemClickEvent} event - custom click event.\n * @group Emits\n */\n readonly onItemClick = output<BreadcrumbItemClickEvent>();\n\n _componentStyle = inject(BreadCrumbStyle);\n\n router = inject(Router);\n\n get homeLinkAriaLabel(): string | undefined {\n if (this.homeAriaLabel()) {\n return this.homeAriaLabel();\n }\n\n // A visible label already names the link, so an aria-label would only override it.\n return this.home()?.label ? undefined : this.config.getTranslation(TranslationKeys.ARIA)?.home;\n }\n\n onClick(event: MouseEvent, item: MenuItem) {\n if (item.disabled) {\n event.preventDefault();\n return;\n }\n\n if (!item.url && !item.routerLink) {\n event.preventDefault();\n }\n\n if (item.command) {\n item.command({\n originalEvent: event,\n item: item\n });\n }\n\n this.onItemClick.emit({\n originalEvent: event,\n item: item\n });\n }\n\n /**\n * Custom item template.\n * @group Templates\n */\n readonly itemTemplate = contentChild<TemplateRef<BreadcrumbItemTemplateContext>>('item');\n\n /**\n * Custom separator template.\n * @group Templates\n */\n readonly separatorTemplate = contentChild<TemplateRef<void>>('separator');\n\n readonly templates = contentChildren(PrimeTemplate);\n\n readonly _separatorTemplate = computed<TemplateRef<void> | undefined>(\n () =>\n this.templates()\n .filter((item) => item.getType() === 'separator')\n .at(-1)?.template\n );\n\n readonly _itemTemplate = computed<TemplateRef<BreadcrumbItemTemplateContext> | undefined>(\n () =>\n this.templates()\n .filter((item) => item.getType() !== 'separator')\n .at(-1)?.template\n );\n\n getPTOptions(item: MenuItem, index: number, key: string) {\n return this.ptm(key, {\n context: {\n item,\n index\n }\n });\n }\n\n isCurrentPage(index: number): boolean {\n const model = this.model();\n\n if (!model) {\n return false;\n }\n\n for (let i = model.length - 1; i >= 0; i--) {\n if (model[i]?.visible !== false) {\n return i === index;\n }\n }\n\n return false;\n }\n}\n\n@NgModule({\n imports: [Breadcrumb, SharedModule],\n exports: [Breadcrumb, SharedModule]\n})\nexport class BreadcrumbModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAIA,MAAM,OAAO,GAAG;AACZ,IAAA,IAAI,EAAE,MAAM,CAAC,0BAA0B,CAAC;AACxC,IAAA,IAAI,EAAE,mBAAmB;AACzB,IAAA,QAAQ,EAAE,wBAAwB;AAClC,IAAA,SAAS,EAAE,wBAAwB;AACnC,IAAA,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,KAAK,CAAC,mBAAmB,EAAE,EAAE,YAAY,EAAE,QAAQ,CAAC,QAAQ,EAAE,CAAC;AAClF,IAAA,QAAQ,EAAE,wBAAwB;AAClC,IAAA,QAAQ,EAAE,wBAAwB;AAClC,IAAA,SAAS,EAAE;CACd;AAGK,MAAO,eAAgB,SAAQ,SAAS,CAAA;IAC1C,IAAI,GAAG,YAAY;IAEnB,KAAK,GAAG,KAAK;IAEb,OAAO,GAAG,OAAO;uGALR,eAAe,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;2GAAf,eAAe,EAAA,CAAA;;2FAAf,eAAe,EAAA,UAAA,EAAA,CAAA;kBAD3B;;AASD;;;;;;;;AAQG;IACS;AAAZ,CAAA,UAAY,iBAAiB,EAAA;AACzB;;AAEG;AACH,IAAA,iBAAA,CAAA,MAAA,CAAA,GAAA,cAAqB;AACrB;;AAEG;AACH,IAAA,iBAAA,CAAA,MAAA,CAAA,GAAA,mBAA0B;AAC1B;;AAEG;AACH,IAAA,iBAAA,CAAA,UAAA,CAAA,GAAA,wBAAmC;AACnC;;AAEG;AACH,IAAA,iBAAA,CAAA,WAAA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uGAAhB,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;AAAhB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,YAvIhB,UAAU,EAoIG,YAAY,CAAA,EAAA,OAAA,EAAA,CApIzB,UAAU,EAqIG,YAAY,CAAA,EAAA,CAAA;AAEzB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,EAAA,OAAA,EAAA,CAHf,UAAU,EAAE,YAAY,EACZ,YAAY,CAAA,EAAA,CAAA;;2FAEzB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAJ5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,UAAU,EAAE,YAAY,CAAC;AACnC,oBAAA,OAAO,EAAE,CAAC,UAAU,EAAE,YAAY;AACrC,iBAAA;;;ACxVD;;AAEG;;;;"}
1
+ {"version":3,"file":"exhaustive-ui-core-breadcrumb.mjs","sources":["../../src/breadcrumb/style/breadcrumbstyle.ts","../../src/breadcrumb/breadcrumb.ts","../../src/breadcrumb/exhaustive-ui-core-breadcrumb.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { style } from '@exhaustive-ui/styles/breadcrumb';\nimport { BaseStyle } from '@exhaustive-ui/core/base';\n\nconst classes = {\n root: () => ['p-breadcrumb p-component'],\n list: 'p-breadcrumb-list',\n homeItem: 'p-breadcrumb-home-item',\n separator: 'p-breadcrumb-separator',\n item: ({ menuitem }) => ['p-breadcrumb-item', { 'p-disabled': menuitem.disabled }],\n itemLink: 'p-breadcrumb-item-link',\n itemIcon: 'p-breadcrumb-item-icon',\n itemLabel: 'p-breadcrumb-item-label'\n};\n\n@Injectable()\nexport class BreadCrumbStyle extends BaseStyle {\n name = 'breadcrumb';\n\n style = style;\n\n classes = classes;\n}\n\n/**\n *\n * Breadcrumb provides contextual information about page hierarchy.\n *\n * [Live Demo](https://exhaustive-ui.com/breadcrumb/)\n *\n * @module breadcrumbstyle\n *\n */\nexport enum BreadcrumbClasses {\n /**\n * Class name of the root element\n */\n root = 'p-breadcrumb',\n /**\n * Class name of the list element\n */\n list = 'p-breadcrumb-list',\n /**\n * Class name of the home item element\n */\n homeItem = 'p-breadcrumb-home-item',\n /**\n * Class name of the separator element\n */\n separator = 'p-breadcrumb-separator',\n /**\n * Class name of the item element\n */\n item = 'p-breadcrumb-item',\n /**\n * Class name of the item link element\n */\n itemLink = 'p-breadcrumb-item-link',\n /**\n * Class name of the item icon element\n */\n itemIcon = 'p-breadcrumb-item-icon',\n /**\n * Class name of the item label element\n */\n itemLabel = 'p-breadcrumb-item-label'\n}\n\nexport interface BreadcrumbStyle extends BaseStyle {}\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, inject, input, NgModule, TemplateRef, ViewEncapsulation, contentChild, contentChildren, output } from '@angular/core';\nimport { Router, RouterLink, RouterLinkActive, RouterModule } from '@angular/router';\nimport { MenuItem, PrimeTemplate, SharedModule, TranslationKeys } from '@exhaustive-ui/core/api';\nimport { Badge } from '@exhaustive-ui/core/badge';\nimport { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';\nimport { Bind } from '@exhaustive-ui/core/bind';\nimport { ChevronRightIcon, HomeIcon } from '@exhaustive-ui/core/icons';\nimport { TooltipModule } from '@exhaustive-ui/core/tooltip';\nimport { BreadcrumbItemClickEvent, BreadcrumbItemTemplateContext, BreadcrumbPassThrough } from '@exhaustive-ui/core/types/breadcrumb';\nimport { BreadCrumbStyle } from './style/breadcrumbstyle';\n\n/**\n * Breadcrumb provides contextual information about page hierarchy.\n * @group Components\n */\n@Component({\n selector: 'p-breadcrumb',\n imports: [CommonModule, RouterModule, RouterLink, RouterLinkActive, TooltipModule, ChevronRightIcon, HomeIcon, SharedModule, Bind, Badge],\n template: `\n <nav [pBind]=\"ptm('root')\" [class]=\"cn(cx('root'), styleClass())\" [style]=\"style()\" [attr.aria-label]=\"ariaLabel()\">\n <ol [class]=\"cx('list')\" [pBind]=\"ptm('list')\">\n @if (home() && home()?.visible !== false) {\n <li [attr.id]=\"home().id\" [class]=\"cn(cx('homeItem'), home().styleClass)\" [ngStyle]=\"home().style\" pTooltip [tooltipOptions]=\"home().tooltipOptions\" [pBind]=\"ptm('homeItem')\" [unstyled]=\"unstyled()\">\n @if (itemTemplate() || _itemTemplate()) {\n <ng-template *ngTemplateOutlet=\"itemTemplate() || _itemTemplate(); context: { $implicit: home() }\"></ng-template>\n } @else {\n @if (!home().routerLink) {\n <a\n [href]=\"home().url ? home().url : null\"\n [attr.aria-label]=\"homeLinkAriaLabel\"\n [class]=\"cn(cx('itemLink'), home().linkClass)\"\n [ngStyle]=\"home().linkStyle\"\n (click)=\"onClick($event, home())\"\n [target]=\"home().target\"\n [attr.title]=\"home().title\"\n [attr.tabindex]=\"home().disabled ? null : home().tabindex || '0'\"\n [attr.data-automationid]=\"home().automationId\"\n [pBind]=\"ptm('itemLink')\"\n >\n @if (home().icon) {\n <span [class]=\"cn(cx('itemIcon'), home().icon, home().iconClass)\" [ngStyle]=\"home().iconStyle\" [pBind]=\"ptm('itemIcon')\"></span>\n }\n @if (!home().icon) {\n <svg data-p-icon=\"home\" [class]=\"cx('itemIcon')\" [pBind]=\"ptm('itemIcon')\" />\n }\n @if (home().label) {\n @if (home().escape !== false) {\n <span [class]=\"cn(cx('itemLabel'), home().labelClass)\" [ngStyle]=\"home().labelStyle\" [pBind]=\"ptm('itemLabel')\">{{ home().label }}</span>\n } @else {\n <span [class]=\"cn(cx('itemLabel'), home().labelClass)\" [ngStyle]=\"home().labelStyle\" [innerHTML]=\"home().label\" [pBind]=\"ptm('itemLabel')\"></span>\n }\n }\n @if (home().badge) {\n <p-badge [class]=\"home().badgeStyleClass\" [value]=\"home().badge\" [pt]=\"ptm('pcBadge')\" [unstyled]=\"unstyled()\" />\n }\n </a>\n }\n @if (home().routerLink) {\n <a\n [routerLink]=\"home().routerLink\"\n routerLinkActive=\"p-menuitem-link-active\"\n [attr.aria-label]=\"homeLinkAriaLabel\"\n [queryParams]=\"home().queryParams\"\n [routerLinkActiveOptions]=\"home().routerLinkActiveOptions || { exact: false }\"\n [class]=\"cn(cx('itemLink'), home().linkClass)\"\n [ngStyle]=\"home().linkStyle\"\n (click)=\"onClick($event, home())\"\n [target]=\"home().target\"\n [attr.title]=\"home().title\"\n [attr.tabindex]=\"home().disabled ? null : home().tabindex || '0'\"\n [attr.data-automationid]=\"home().automationId\"\n [fragment]=\"home().fragment\"\n [queryParamsHandling]=\"home().queryParamsHandling\"\n [preserveFragment]=\"home().preserveFragment\"\n [skipLocationChange]=\"home().skipLocationChange\"\n [replaceUrl]=\"home().replaceUrl\"\n [state]=\"home().state\"\n [pBind]=\"ptm('itemLink')\"\n >\n @if (home().icon) {\n <span [class]=\"cn(cx('itemIcon'), home().icon, home().iconClass)\" [ngStyle]=\"home().iconStyle\" [pBind]=\"ptm('itemIcon')\"></span>\n }\n @if (!home().icon) {\n <svg data-p-icon=\"home\" [class]=\"cx('itemIcon')\" [pBind]=\"ptm('itemIcon')\" />\n }\n @if (home().label) {\n @if (home().escape !== false) {\n <span [class]=\"cn(cx('itemLabel'), home().labelClass)\" [ngStyle]=\"home().labelStyle\" [pBind]=\"ptm('itemLabel')\">{{ home().label }}</span>\n } @else {\n <span [class]=\"cn(cx('itemLabel'), home().labelClass)\" [ngStyle]=\"home().labelStyle\" [innerHTML]=\"home().label\" [pBind]=\"ptm('itemLabel')\"></span>\n }\n }\n @if (home().badge) {\n <p-badge [class]=\"home().badgeStyleClass\" [value]=\"home().badge\" [pt]=\"ptm('pcBadge')\" [unstyled]=\"unstyled()\" />\n }\n </a>\n }\n }\n </li>\n }\n @if (model() && home()) {\n <li [class]=\"cx('separator')\" [pBind]=\"ptm('separator')\" aria-hidden=\"true\">\n @if (!separatorTemplate() && !_separatorTemplate()) {\n <svg data-p-icon=\"chevron-right\" [pBind]=\"ptm('separatorIcon')\" />\n }\n <ng-template *ngTemplateOutlet=\"separatorTemplate() || _separatorTemplate()\"></ng-template>\n </li>\n }\n @for (menuitem of model(); track $index; let end = $last; let i = $index) {\n @if (menuitem.visible !== false) {\n <li\n [class]=\"cn(cx('item', { menuitem }), menuitem.styleClass)\"\n [attr.id]=\"menuitem.id\"\n [style]=\"menuitem.style\"\n pTooltip\n [tooltipOptions]=\"menuitem.tooltipOptions\"\n [pBind]=\"getPTOptions(menuitem, i, 'item')\"\n [pTooltipUnstyled]=\"unstyled()\"\n >\n @if (itemTemplate() || _itemTemplate()) {\n <ng-template *ngTemplateOutlet=\"itemTemplate() || _itemTemplate(); context: { $implicit: menuitem }\"></ng-template>\n } @else {\n @if (!menuitem?.routerLink) {\n <a\n [attr.href]=\"menuitem?.url ? menuitem?.url : null\"\n [class]=\"cn(cx('itemLink'), menuitem?.linkClass)\"\n [ngStyle]=\"menuitem?.linkStyle\"\n (click)=\"onClick($event, menuitem)\"\n [target]=\"menuitem?.target\"\n [attr.title]=\"menuitem?.title\"\n [attr.tabindex]=\"menuitem?.disabled ? null : menuitem?.tabindex || '0'\"\n [attr.data-automationid]=\"menuitem?.automationId\"\n [attr.aria-current]=\"isCurrentPage(i) ? 'page' : undefined\"\n [pBind]=\"getPTOptions(menuitem, i, 'itemLink')\"\n >\n @if (!itemTemplate() && !_itemTemplate()) {\n @if (menuitem?.icon) {\n <span [class]=\"cn(cx('itemIcon'), menuitem?.icon, menuitem?.iconClass)\" [ngStyle]=\"menuitem?.iconStyle\" [pBind]=\"getPTOptions(menuitem, i, 'itemIcon')\"></span>\n }\n @if (menuitem?.label) {\n @if (menuitem?.escape !== false) {\n <span [class]=\"cn(cx('itemLabel'), menuitem?.labelClass)\" [ngStyle]=\"menuitem?.labelStyle\" [pBind]=\"getPTOptions(menuitem, i, 'itemLabel')\">{{ menuitem?.label }}</span>\n } @else {\n <span [class]=\"cn(cx('itemLabel'), menuitem?.labelClass)\" [ngStyle]=\"menuitem?.labelStyle\" [innerHTML]=\"menuitem?.label\" [pBind]=\"getPTOptions(menuitem, i, 'itemLabel')\"></span>\n }\n }\n @if (menuitem?.badge) {\n <p-badge [class]=\"menuitem?.badgeStyleClass\" [value]=\"menuitem?.badge\" [pt]=\"getPTOptions(menuitem, i, 'pcBadge')\" [unstyled]=\"unstyled()\" />\n }\n }\n </a>\n }\n @if (menuitem?.routerLink) {\n <a\n [routerLink]=\"menuitem?.routerLink\"\n routerLinkActive=\"p-menuitem-link-active\"\n [queryParams]=\"menuitem?.queryParams\"\n [routerLinkActiveOptions]=\"menuitem?.routerLinkActiveOptions || { exact: false }\"\n [class]=\"cn(cx('itemLink'), menuitem?.linkClass)\"\n [ngStyle]=\"menuitem?.linkStyle\"\n (click)=\"onClick($event, menuitem)\"\n [target]=\"menuitem?.target\"\n [attr.title]=\"menuitem?.title\"\n [attr.tabindex]=\"menuitem?.disabled ? null : menuitem?.tabindex || '0'\"\n [attr.data-automationid]=\"menuitem?.automationId\"\n [fragment]=\"menuitem?.fragment\"\n [queryParamsHandling]=\"menuitem?.queryParamsHandling\"\n [preserveFragment]=\"menuitem?.preserveFragment\"\n [skipLocationChange]=\"menuitem?.skipLocationChange\"\n [replaceUrl]=\"menuitem?.replaceUrl\"\n [state]=\"menuitem?.state\"\n [ariaCurrentWhenActive]=\"isCurrentPage(i) ? 'page' : undefined\"\n [pBind]=\"getPTOptions(menuitem, i, 'itemLink')\"\n >\n @if (menuitem?.icon) {\n <span [class]=\"cn(cx('itemIcon'), menuitem?.icon, menuitem?.iconClass)\" [ngStyle]=\"menuitem?.iconStyle\" [pBind]=\"getPTOptions(menuitem, i, 'itemIcon')\"></span>\n }\n @if (menuitem?.label) {\n @if (menuitem?.escape !== false) {\n <span [class]=\"cn(cx('itemLabel'), menuitem?.labelClass)\" [ngStyle]=\"menuitem?.labelStyle\" [pBind]=\"getPTOptions(menuitem, i, 'itemLabel')\">{{ menuitem?.label }}</span>\n } @else {\n <span [class]=\"cn(cx('itemLabel'), menuitem?.labelClass)\" [ngStyle]=\"menuitem?.labelStyle\" [innerHTML]=\"menuitem?.label\" [pBind]=\"getPTOptions(menuitem, i, 'itemLabel')\"></span>\n }\n }\n @if (menuitem?.badge) {\n <p-badge [class]=\"menuitem?.badgeStyleClass\" [value]=\"menuitem?.badge\" [pt]=\"getPTOptions(menuitem, i, 'pcBadge')\" [unstyled]=\"unstyled()\" />\n }\n </a>\n }\n }\n </li>\n }\n @if (!end && menuitem.visible !== false) {\n <li [class]=\"cx('separator')\" [pBind]=\"ptm('separator')\" aria-hidden=\"true\">\n @if (!separatorTemplate() && !_separatorTemplate()) {\n <svg data-p-icon=\"chevron-right\" [pBind]=\"ptm('separatorIcon')\" />\n }\n <ng-template *ngTemplateOutlet=\"separatorTemplate() || _separatorTemplate()\"></ng-template>\n </li>\n }\n }\n </ol>\n </nav>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [BreadCrumbStyle, { provide: PARENT_INSTANCE, useExisting: Breadcrumb }],\n hostDirectives: [Bind]\n})\nexport class Breadcrumb extends BaseComponent<BreadcrumbPassThrough> {\n componentName = 'Breadcrumb';\n\n bindDirectiveInstance = inject(Bind, { self: true });\n\n constructor() {\n super();\n this.bindHostAttrs(this.bindDirectiveInstance, () => this.ptm('host'));\n }\n /**\n * An array of menuitems.\n * @group Props\n */\n readonly model = input<MenuItem[] | undefined>();\n /**\n * Inline style of the component.\n * @group Props\n */\n readonly style = input<{ [klass: string]: any } | null | undefined>();\n /**\n * Style class of the component.\n * @group Props\n */\n readonly styleClass = input<string | undefined>();\n /**\n * MenuItem configuration for the home icon.\n * @group Props\n */\n readonly home = input<MenuItem | undefined>();\n /**\n * Defines a string that labels the home icon for accessibility. Defaults to the `aria.home` translation when the home item has no visible label.\n * @group Props\n */\n readonly homeAriaLabel = input<string | undefined>();\n /**\n * Defines a string that labels the nav landmark for accessibility. Give each breadcrumb on a page a distinct label.\n * @defaultValue 'Breadcrumb'\n * @group Props\n */\n readonly ariaLabel = input<string | undefined>('Breadcrumb');\n /**\n * Fired when an item is selected.\n * @param {BreadcrumbItemClickEvent} event - custom click event.\n * @group Emits\n */\n readonly onItemClick = output<BreadcrumbItemClickEvent>();\n\n _componentStyle = inject(BreadCrumbStyle);\n\n router = inject(Router);\n\n get homeLinkAriaLabel(): string | undefined {\n if (this.homeAriaLabel()) {\n return this.homeAriaLabel();\n }\n\n // A visible label already names the link, so an aria-label would only override it.\n return this.home()?.label ? undefined : this.config.getTranslation(TranslationKeys.ARIA)?.home;\n }\n\n onClick(event: MouseEvent, item: MenuItem) {\n if (item.disabled) {\n event.preventDefault();\n return;\n }\n\n if (!item.url && !item.routerLink) {\n event.preventDefault();\n }\n\n if (item.command) {\n item.command({\n originalEvent: event,\n item: item\n });\n }\n\n this.onItemClick.emit({\n originalEvent: event,\n item: item\n });\n }\n\n /**\n * Custom item template.\n * @group Templates\n */\n readonly itemTemplate = contentChild<TemplateRef<BreadcrumbItemTemplateContext>>('item');\n\n /**\n * Custom separator template.\n * @group Templates\n */\n readonly separatorTemplate = contentChild<TemplateRef<void>>('separator');\n\n readonly templates = contentChildren(PrimeTemplate);\n\n readonly _separatorTemplate = computed<TemplateRef<void> | undefined>(\n () =>\n this.templates()\n .filter((item) => item.getType() === 'separator')\n .at(-1)?.template\n );\n\n readonly _itemTemplate = computed<TemplateRef<BreadcrumbItemTemplateContext> | undefined>(\n () =>\n this.templates()\n .filter((item) => item.getType() !== 'separator')\n .at(-1)?.template\n );\n\n getPTOptions(item: MenuItem, index: number, key: string) {\n return this.ptm(key, {\n context: {\n item,\n index\n }\n });\n }\n\n isCurrentPage(index: number): boolean {\n const model = this.model();\n\n if (!model) {\n return false;\n }\n\n for (let i = model.length - 1; i >= 0; i--) {\n if (model[i]?.visible !== false) {\n return i === index;\n }\n }\n\n return false;\n }\n}\n\n@NgModule({\n imports: [Breadcrumb, SharedModule],\n exports: [Breadcrumb, SharedModule]\n})\nexport class BreadcrumbModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAIA,MAAM,OAAO,GAAG;AACZ,IAAA,IAAI,EAAE,MAAM,CAAC,0BAA0B,CAAC;AACxC,IAAA,IAAI,EAAE,mBAAmB;AACzB,IAAA,QAAQ,EAAE,wBAAwB;AAClC,IAAA,SAAS,EAAE,wBAAwB;AACnC,IAAA,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,KAAK,CAAC,mBAAmB,EAAE,EAAE,YAAY,EAAE,QAAQ,CAAC,QAAQ,EAAE,CAAC;AAClF,IAAA,QAAQ,EAAE,wBAAwB;AAClC,IAAA,QAAQ,EAAE,wBAAwB;AAClC,IAAA,SAAS,EAAE;CACd;AAGK,MAAO,eAAgB,SAAQ,SAAS,CAAA;IAC1C,IAAI,GAAG,YAAY;IAEnB,KAAK,GAAG,KAAK;IAEb,OAAO,GAAG,OAAO;uGALR,eAAe,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;2GAAf,eAAe,EAAA,CAAA;;2FAAf,eAAe,EAAA,UAAA,EAAA,CAAA;kBAD3B;;AASD;;;;;;;;AAQG;IACS;AAAZ,CAAA,UAAY,iBAAiB,EAAA;AACzB;;AAEG;AACH,IAAA,iBAAA,CAAA,MAAA,CAAA,GAAA,cAAqB;AACrB;;AAEG;AACH,IAAA,iBAAA,CAAA,MAAA,CAAA,GAAA,mBAA0B;AAC1B;;AAEG;AACH,IAAA,iBAAA,CAAA,UAAA,CAAA,GAAA,wBAAmC;AACnC;;AAEG;AACH,IAAA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IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;MA8CzC,gBAAgB,CAAA;uGAAhB,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;AAAhB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,YA7IhB,UAAU,EA0IG,YAAY,CAAA,EAAA,OAAA,EAAA,CA1IzB,UAAU,EA2IG,YAAY,CAAA,EAAA,CAAA;AAEzB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,EAAA,OAAA,EAAA,CAHf,UAAU,EAAE,YAAY,EACZ,YAAY,CAAA,EAAA,CAAA;;2FAEzB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAJ5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,UAAU,EAAE,YAAY,CAAC;AACnC,oBAAA,OAAO,EAAE,CAAC,UAAU,EAAE,YAAY;AACrC,iBAAA;;;AC9VD;;AAEG;;;;"}
@@ -2,7 +2,7 @@ export * from '@exhaustive-ui/core/types/button';
2
2
  import * as i2 from '@angular/common';
3
3
  import { CommonModule } from '@angular/common';
4
4
  import * as i0 from '@angular/core';
5
- import { Injectable, InjectionToken, input, inject, effect, afterEveryRender, Directive, untracked, afterNextRender, booleanAttribute, contentChild, computed, signal, numberAttribute, output, contentChildren, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
5
+ import { Injectable, InjectionToken, input, inject, effect, Directive, untracked, afterNextRender, booleanAttribute, contentChild, computed, signal, numberAttribute, output, contentChildren, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
6
6
  import { addClass, isEmpty, findSingle, createElement } from '@exhaustive-ui/utils';
7
7
  import { PrimeTemplate, SharedModule } from '@exhaustive-ui/core/api';
8
8
  import { AutoFocus } from '@exhaustive-ui/core/autofocus';
@@ -41,10 +41,10 @@ const classes = {
41
41
  'p-button-icon',
42
42
  {
43
43
  [`p-button-icon-${instance.iconPos() || instance.buttonProps()?.iconPos}`]: instance.label() || instance.buttonProps()?.label,
44
- 'p-button-icon-left': ((instance.iconPos() === 'left' || instance.buttonProps()?.iconPos === 'left') && instance.label()) || instance.buttonProps()?.label,
45
- 'p-button-icon-right': ((instance.iconPos() === 'right' || instance.buttonProps()?.iconPos === 'right') && instance.label()) || instance.buttonProps()?.label,
46
- 'p-button-icon-top': ((instance.iconPos() === 'top' || instance.buttonProps()?.iconPos === 'top') && instance.label()) || instance.buttonProps()?.label,
47
- 'p-button-icon-bottom': ((instance.iconPos() === 'bottom' || instance.buttonProps()?.iconPos === 'bottom') && instance.label()) || instance.buttonProps()?.label
44
+ 'p-button-icon-left': (instance.iconPos() === 'left' || instance.buttonProps()?.iconPos === 'left') && (instance.label() || instance.buttonProps()?.label),
45
+ 'p-button-icon-right': (instance.iconPos() === 'right' || instance.buttonProps()?.iconPos === 'right') && (instance.label() || instance.buttonProps()?.label),
46
+ 'p-button-icon-top': (instance.iconPos() === 'top' || instance.buttonProps()?.iconPos === 'top') && (instance.label() || instance.buttonProps()?.label),
47
+ 'p-button-icon-bottom': (instance.iconPos() === 'bottom' || instance.buttonProps()?.iconPos === 'bottom') && (instance.label() || instance.buttonProps()?.label)
48
48
  },
49
49
  instance.icon(),
50
50
  instance.buttonProps()?.icon
@@ -142,7 +142,7 @@ class ButtonLabel extends BaseComponent {
142
142
  effect(() => {
143
143
  this.pButtonLabelUnstyled() && this.directiveUnstyled.set(this.pButtonLabelUnstyled());
144
144
  });
145
- afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root'])));
145
+ this.bindHostAttrs(this.bindDirectiveInstance, () => this.ptms(['host', 'root']));
146
146
  }
147
147
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: ButtonLabel, deps: [], target: i0.ɵɵFactoryTarget.Directive });
148
148
  static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.2.1", type: ButtonLabel, isStandalone: true, selector: "[pButtonLabel]", inputs: { ptButtonLabel: { classPropertyName: "ptButtonLabel", publicName: "ptButtonLabel", isSignal: true, isRequired: false, transformFunction: null }, pButtonLabelPT: { classPropertyName: "pButtonLabelPT", publicName: "pButtonLabelPT", isSignal: true, isRequired: false, transformFunction: null }, pButtonLabelUnstyled: { classPropertyName: "pButtonLabelUnstyled", publicName: "pButtonLabelUnstyled", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.p-button-label": "!$unstyled() && true" } }, providers: [ButtonStyle, { provide: BUTTON_LABEL_INSTANCE, useExisting: ButtonLabel }, { provide: PARENT_INSTANCE, useExisting: ButtonLabel }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0 });
@@ -193,7 +193,7 @@ class ButtonIcon extends BaseComponent {
193
193
  effect(() => {
194
194
  this.pButtonUnstyled() && this.directiveUnstyled.set(this.pButtonUnstyled());
195
195
  });
196
- afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root'])));
196
+ this.bindHostAttrs(this.bindDirectiveInstance, () => this.ptms(['host', 'root']));
197
197
  }
198
198
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: ButtonIcon, deps: [], target: i0.ɵɵFactoryTarget.Directive });
199
199
  static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.2.1", type: ButtonIcon, isStandalone: true, selector: "[pButtonIcon]", inputs: { ptButtonIcon: { classPropertyName: "ptButtonIcon", publicName: "ptButtonIcon", isSignal: true, isRequired: false, transformFunction: null }, pButtonIconPT: { classPropertyName: "pButtonIconPT", publicName: "pButtonIconPT", isSignal: true, isRequired: false, transformFunction: null }, pButtonUnstyled: { classPropertyName: "pButtonUnstyled", publicName: "pButtonUnstyled", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.p-button-icon": "!$unstyled() && true" } }, providers: [ButtonStyle, { provide: BUTTON_ICON_INSTANCE, useExisting: ButtonIcon }, { provide: PARENT_INSTANCE, useExisting: ButtonIcon }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0 });
@@ -297,12 +297,15 @@ class ButtonDirective extends BaseComponent {
297
297
  });
298
298
  });
299
299
  afterNextRender(() => {
300
- !this.$unstyled() && addClass(this.htmlElement, this.getStyleClass().join(' '));
300
+ if (!this.$unstyled()) {
301
+ this._appliedClasses = this.getStyleClass();
302
+ addClass(this.htmlElement, this._appliedClasses.join(' '));
303
+ }
301
304
  this.createIcon();
302
305
  this.createLabel();
303
306
  this.initialized.set(true);
304
307
  });
305
- afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptm('root')));
308
+ this.bindHostAttrs(this.bindDirectiveInstance, () => this.ptm('root'));
306
309
  }
307
310
  /**
308
311
  * Add a textual class to the button without a background initially.
@@ -373,6 +376,7 @@ class ButtonDirective extends BaseComponent {
373
376
  return this.el.nativeElement;
374
377
  }
375
378
  _internalClasses = Object.values(INTERNAL_BUTTON_CLASSES);
379
+ _appliedClasses = [];
376
380
  pcFluid = inject(Fluid, { optional: true, host: true, skipSelf: true });
377
381
  isTextButton = computed(() => !!(!this.iconSignal() && this.labelSignal() && this.text()), /* @ts-ignore */
378
382
  ...(ngDevMode ? [{ debugName: "isTextButton" }] : /* istanbul ignore next */ []));
@@ -473,8 +477,10 @@ class ButtonDirective extends BaseComponent {
473
477
  setStyleClass() {
474
478
  const styleClass = this.getStyleClass();
475
479
  this.removeExistingSeverityClass();
476
- this.htmlElement.classList.remove(...this._internalClasses);
480
+ // also drop the variant classes (outlined, text, raised, size...) applied by the previous call
481
+ this.htmlElement.classList.remove(...this._internalClasses, ...this._appliedClasses);
477
482
  this.htmlElement.classList.add(...styleClass);
483
+ this._appliedClasses = styleClass;
478
484
  }
479
485
  removeExistingSeverityClass() {
480
486
  const severityArray = ['success', 'info', 'warn', 'danger', 'help', 'primary', 'secondary', 'contrast'];
@@ -566,7 +572,7 @@ class Button extends BaseComponent {
566
572
  _componentStyle = inject(ButtonStyle);
567
573
  constructor() {
568
574
  super();
569
- afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptm('host')));
575
+ this.bindHostAttrs(this.bindDirectiveInstance, () => this.ptm('host'));
570
576
  }
571
577
  /**
572
578
  * Type of the button.
@@ -657,6 +663,18 @@ class Button extends BaseComponent {
657
663
  */
658
664
  ariaLabel = input(/* @ts-ignore */
659
665
  ...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
666
+ /**
667
+ * Value of the aria-expanded attribute of the button, for a button that shows or hides an element.
668
+ * @group Props
669
+ */
670
+ ariaExpanded = input(/* @ts-ignore */
671
+ ...(ngDevMode ? [undefined, { debugName: "ariaExpanded" }] : /* istanbul ignore next */ []));
672
+ /**
673
+ * Id of the element the button controls, set as its aria-controls attribute.
674
+ * @group Props
675
+ */
676
+ ariaControls = input(/* @ts-ignore */
677
+ ...(ngDevMode ? [undefined, { debugName: "ariaControls" }] : /* istanbul ignore next */ []));
660
678
  /**
661
679
  * When present, it specifies that the component should automatically get focus on load.
662
680
  * @group Props
@@ -791,10 +809,12 @@ class Button extends BaseComponent {
791
809
  }), /* @ts-ignore */
792
810
  ...(ngDevMode ? [{ debugName: "dataLabelP" }] : /* istanbul ignore next */ []));
793
811
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Button, deps: [], target: i0.ɵɵFactoryTarget.Component });
794
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: Button, isStandalone: true, selector: "p-button", inputs: { hostName: { classPropertyName: "hostName", publicName: "hostName", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, badge: { classPropertyName: "badge", publicName: "badge", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, raised: { classPropertyName: "raised", publicName: "raised", isSignal: true, isRequired: false, transformFunction: null }, rounded: { classPropertyName: "rounded", publicName: "rounded", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, plain: { classPropertyName: "plain", publicName: "plain", isSignal: true, isRequired: false, transformFunction: null }, outlined: { classPropertyName: "outlined", publicName: "outlined", isSignal: true, isRequired: false, transformFunction: null }, link: { classPropertyName: "link", publicName: "link", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", 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 }, badgeSeverity: { classPropertyName: "badgeSeverity", publicName: "badgeSeverity", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, autofocus: { classPropertyName: "autofocus", publicName: "autofocus", isSignal: true, isRequired: false, transformFunction: null }, iconPos: { classPropertyName: "iconPos", publicName: "iconPos", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, loadingIcon: { classPropertyName: "loadingIcon", publicName: "loadingIcon", isSignal: true, isRequired: false, transformFunction: null }, severity: { classPropertyName: "severity", publicName: "severity", isSignal: true, isRequired: false, transformFunction: null }, buttonProps: { classPropertyName: "buttonProps", publicName: "buttonProps", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onClick: "onClick", onFocus: "onFocus", onBlur: "onBlur" }, providers: [ButtonStyle, { provide: BUTTON_INSTANCE, useExisting: Button }, { provide: PARENT_INSTANCE, useExisting: Button }], queries: [{ propertyName: "contentTemplate", first: true, predicate: ["content"], descendants: true, isSignal: true }, { propertyName: "loadingIconTemplate", first: true, predicate: ["loadingicon"], descendants: true, isSignal: true }, { propertyName: "iconTemplate", first: true, predicate: ["icon"], descendants: true, isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
812
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: Button, isStandalone: true, selector: "p-button", inputs: { hostName: { classPropertyName: "hostName", publicName: "hostName", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, badge: { classPropertyName: "badge", publicName: "badge", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, raised: { classPropertyName: "raised", publicName: "raised", isSignal: true, isRequired: false, transformFunction: null }, rounded: { classPropertyName: "rounded", publicName: "rounded", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, plain: { classPropertyName: "plain", publicName: "plain", isSignal: true, isRequired: false, transformFunction: null }, outlined: { classPropertyName: "outlined", publicName: "outlined", isSignal: true, isRequired: false, transformFunction: null }, link: { classPropertyName: "link", publicName: "link", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", 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 }, badgeSeverity: { classPropertyName: "badgeSeverity", publicName: "badgeSeverity", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaExpanded: { classPropertyName: "ariaExpanded", publicName: "ariaExpanded", isSignal: true, isRequired: false, transformFunction: null }, ariaControls: { classPropertyName: "ariaControls", publicName: "ariaControls", isSignal: true, isRequired: false, transformFunction: null }, autofocus: { classPropertyName: "autofocus", publicName: "autofocus", isSignal: true, isRequired: false, transformFunction: null }, iconPos: { classPropertyName: "iconPos", publicName: "iconPos", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, loadingIcon: { classPropertyName: "loadingIcon", publicName: "loadingIcon", isSignal: true, isRequired: false, transformFunction: null }, severity: { classPropertyName: "severity", publicName: "severity", isSignal: true, isRequired: false, transformFunction: null }, buttonProps: { classPropertyName: "buttonProps", publicName: "buttonProps", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onClick: "onClick", onFocus: "onFocus", onBlur: "onBlur" }, providers: [ButtonStyle, { provide: BUTTON_INSTANCE, useExisting: Button }, { provide: PARENT_INSTANCE, useExisting: Button }], queries: [{ propertyName: "contentTemplate", first: true, predicate: ["content"], descendants: true, isSignal: true }, { propertyName: "loadingIconTemplate", first: true, predicate: ["loadingicon"], descendants: true, isSignal: true }, { propertyName: "iconTemplate", first: true, predicate: ["icon"], descendants: true, isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
795
813
  <button
796
814
  [attr.type]="type() || buttonProps()?.type"
797
815
  [attr.aria-label]="ariaLabel() || buttonProps()?.ariaLabel"
816
+ [attr.aria-expanded]="ariaExpanded()"
817
+ [attr.aria-controls]="ariaControls()"
798
818
  [ngStyle]="style() || buttonProps()?.style"
799
819
  [disabled]="disabled() || loading() || buttonProps()?.disabled"
800
820
  [class]="cn(cx('root'), styleClass(), buttonProps()?.styleClass)"
@@ -850,6 +870,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
850
870
  <button
851
871
  [attr.type]="type() || buttonProps()?.type"
852
872
  [attr.aria-label]="ariaLabel() || buttonProps()?.ariaLabel"
873
+ [attr.aria-expanded]="ariaExpanded()"
874
+ [attr.aria-controls]="ariaControls()"
853
875
  [ngStyle]="style() || buttonProps()?.style"
854
876
  [disabled]="disabled() || loading() || buttonProps()?.disabled"
855
877
  [class]="cn(cx('root'), styleClass(), buttonProps()?.styleClass)"
@@ -900,7 +922,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
900
922
  providers: [ButtonStyle, { provide: BUTTON_INSTANCE, useExisting: Button }, { provide: PARENT_INSTANCE, useExisting: Button }],
901
923
  hostDirectives: [Bind]
902
924
  }]
903
- }], ctorParameters: () => [], propDecorators: { hostName: [{ type: i0.Input, args: [{ isSignal: true, alias: "hostName", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], badge: [{ type: i0.Input, args: [{ isSignal: true, alias: "badge", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], raised: [{ type: i0.Input, args: [{ isSignal: true, alias: "raised", required: false }] }], rounded: [{ type: i0.Input, args: [{ isSignal: true, alias: "rounded", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], plain: [{ type: i0.Input, args: [{ isSignal: true, alias: "plain", required: false }] }], outlined: [{ type: i0.Input, args: [{ isSignal: true, alias: "outlined", required: false }] }], link: [{ type: i0.Input, args: [{ isSignal: true, alias: "link", required: false }] }], tabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabindex", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], style: [{ type: i0.Input, args: [{ isSignal: true, alias: "style", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], badgeSeverity: [{ type: i0.Input, args: [{ isSignal: true, alias: "badgeSeverity", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], autofocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "autofocus", required: false }] }], iconPos: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconPos", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], loadingIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingIcon", required: false }] }], severity: [{ type: i0.Input, args: [{ isSignal: true, alias: "severity", required: false }] }], buttonProps: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonProps", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], onClick: [{ type: i0.Output, args: ["onClick"] }], onFocus: [{ type: i0.Output, args: ["onFocus"] }], onBlur: [{ type: i0.Output, args: ["onBlur"] }], contentTemplate: [{ type: i0.ContentChild, args: ['content', { isSignal: true }] }], loadingIconTemplate: [{ type: i0.ContentChild, args: ['loadingicon', { isSignal: true }] }], iconTemplate: [{ type: i0.ContentChild, args: ['icon', { isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }] } });
925
+ }], ctorParameters: () => [], propDecorators: { hostName: [{ type: i0.Input, args: [{ isSignal: true, alias: "hostName", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], badge: [{ type: i0.Input, args: [{ isSignal: true, alias: "badge", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], raised: [{ type: i0.Input, args: [{ isSignal: true, alias: "raised", required: false }] }], rounded: [{ type: i0.Input, args: [{ isSignal: true, alias: "rounded", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], plain: [{ type: i0.Input, args: [{ isSignal: true, alias: "plain", required: false }] }], outlined: [{ type: i0.Input, args: [{ isSignal: true, alias: "outlined", required: false }] }], link: [{ type: i0.Input, args: [{ isSignal: true, alias: "link", required: false }] }], tabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabindex", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], style: [{ type: i0.Input, args: [{ isSignal: true, alias: "style", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], badgeSeverity: [{ type: i0.Input, args: [{ isSignal: true, alias: "badgeSeverity", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaExpanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaExpanded", required: false }] }], ariaControls: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaControls", required: false }] }], autofocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "autofocus", required: false }] }], iconPos: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconPos", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], loadingIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingIcon", required: false }] }], severity: [{ type: i0.Input, args: [{ isSignal: true, alias: "severity", required: false }] }], buttonProps: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonProps", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], onClick: [{ type: i0.Output, args: ["onClick"] }], onFocus: [{ type: i0.Output, args: ["onFocus"] }], onBlur: [{ type: i0.Output, args: ["onBlur"] }], contentTemplate: [{ type: i0.ContentChild, args: ['content', { isSignal: true }] }], loadingIconTemplate: [{ type: i0.ContentChild, args: ['loadingicon', { isSignal: true }] }], iconTemplate: [{ type: i0.ContentChild, args: ['icon', { isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }] } });
904
926
  class ButtonModule {
905
927
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: ButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
906
928
  static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.2.1", ngImport: i0, type: ButtonModule, imports: [CommonModule, ButtonDirective, Button, SharedModule, ButtonLabel, ButtonIcon], exports: [ButtonDirective, Button, ButtonLabel, ButtonIcon, SharedModule] });