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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (265) hide show
  1. package/fesm2022/exhaustive-ui-core-accordion.mjs +51 -78
  2. package/fesm2022/exhaustive-ui-core-accordion.mjs.map +1 -1
  3. package/fesm2022/exhaustive-ui-core-animateonscroll.mjs +72 -73
  4. package/fesm2022/exhaustive-ui-core-animateonscroll.mjs.map +1 -1
  5. package/fesm2022/exhaustive-ui-core-api.mjs +6 -13
  6. package/fesm2022/exhaustive-ui-core-api.mjs.map +1 -1
  7. package/fesm2022/exhaustive-ui-core-autocomplete.mjs +485 -683
  8. package/fesm2022/exhaustive-ui-core-autocomplete.mjs.map +1 -1
  9. package/fesm2022/exhaustive-ui-core-autofocus.mjs +21 -31
  10. package/fesm2022/exhaustive-ui-core-autofocus.mjs.map +1 -1
  11. package/fesm2022/exhaustive-ui-core-avatar.mjs +47 -63
  12. package/fesm2022/exhaustive-ui-core-avatar.mjs.map +1 -1
  13. package/fesm2022/exhaustive-ui-core-badge.mjs +88 -115
  14. package/fesm2022/exhaustive-ui-core-badge.mjs.map +1 -1
  15. package/fesm2022/exhaustive-ui-core-blockui.mjs +58 -91
  16. package/fesm2022/exhaustive-ui-core-blockui.mjs.map +1 -1
  17. package/fesm2022/exhaustive-ui-core-breadcrumb.mjs +155 -169
  18. package/fesm2022/exhaustive-ui-core-breadcrumb.mjs.map +1 -1
  19. package/fesm2022/exhaustive-ui-core-button.mjs +280 -385
  20. package/fesm2022/exhaustive-ui-core-button.mjs.map +1 -1
  21. package/fesm2022/exhaustive-ui-core-carousel.mjs +379 -451
  22. package/fesm2022/exhaustive-ui-core-carousel.mjs.map +1 -1
  23. package/fesm2022/exhaustive-ui-core-cascadeselect.mjs +388 -507
  24. package/fesm2022/exhaustive-ui-core-cascadeselect.mjs.map +1 -1
  25. package/fesm2022/exhaustive-ui-core-chart.mjs +75 -91
  26. package/fesm2022/exhaustive-ui-core-chart.mjs.map +1 -1
  27. package/fesm2022/exhaustive-ui-core-checkbox.mjs +109 -160
  28. package/fesm2022/exhaustive-ui-core-checkbox.mjs.map +1 -1
  29. package/fesm2022/exhaustive-ui-core-chip.mjs +98 -137
  30. package/fesm2022/exhaustive-ui-core-chip.mjs.map +1 -1
  31. package/fesm2022/exhaustive-ui-core-colorpicker.mjs +123 -190
  32. package/fesm2022/exhaustive-ui-core-colorpicker.mjs.map +1 -1
  33. package/fesm2022/exhaustive-ui-core-confirmdialog.mjs +157 -332
  34. package/fesm2022/exhaustive-ui-core-confirmdialog.mjs.map +1 -1
  35. package/fesm2022/exhaustive-ui-core-confirmpopup.mjs +187 -210
  36. package/fesm2022/exhaustive-ui-core-confirmpopup.mjs.map +1 -1
  37. package/fesm2022/exhaustive-ui-core-contextmenu.mjs +315 -361
  38. package/fesm2022/exhaustive-ui-core-contextmenu.mjs.map +1 -1
  39. package/fesm2022/exhaustive-ui-core-dataview.mjs +225 -272
  40. package/fesm2022/exhaustive-ui-core-dataview.mjs.map +1 -1
  41. package/fesm2022/exhaustive-ui-core-datepicker.mjs +1012 -1157
  42. package/fesm2022/exhaustive-ui-core-datepicker.mjs.map +1 -1
  43. package/fesm2022/exhaustive-ui-core-dialog.mjs +370 -507
  44. package/fesm2022/exhaustive-ui-core-dialog.mjs.map +1 -1
  45. package/fesm2022/exhaustive-ui-core-dock.mjs +87 -115
  46. package/fesm2022/exhaustive-ui-core-dock.mjs.map +1 -1
  47. package/fesm2022/exhaustive-ui-core-dragdrop.mjs +98 -105
  48. package/fesm2022/exhaustive-ui-core-dragdrop.mjs.map +1 -1
  49. package/fesm2022/exhaustive-ui-core-drawer.mjs +174 -235
  50. package/fesm2022/exhaustive-ui-core-drawer.mjs.map +1 -1
  51. package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs +42 -280
  52. package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs.map +1 -1
  53. package/fesm2022/exhaustive-ui-core-editor.mjs +109 -121
  54. package/fesm2022/exhaustive-ui-core-editor.mjs.map +1 -1
  55. package/fesm2022/exhaustive-ui-core-fieldset.mjs +90 -132
  56. package/fesm2022/exhaustive-ui-core-fieldset.mjs.map +1 -1
  57. package/fesm2022/exhaustive-ui-core-fileupload.mjs +486 -541
  58. package/fesm2022/exhaustive-ui-core-fileupload.mjs.map +1 -1
  59. package/fesm2022/exhaustive-ui-core-floatlabel.mjs +13 -16
  60. package/fesm2022/exhaustive-ui-core-floatlabel.mjs.map +1 -1
  61. package/fesm2022/exhaustive-ui-core-focustrap.mjs +44 -40
  62. package/fesm2022/exhaustive-ui-core-focustrap.mjs.map +1 -1
  63. package/fesm2022/exhaustive-ui-core-galleria.mjs +642 -853
  64. package/fesm2022/exhaustive-ui-core-galleria.mjs.map +1 -1
  65. package/fesm2022/exhaustive-ui-core-iconfield.mjs +15 -27
  66. package/fesm2022/exhaustive-ui-core-iconfield.mjs.map +1 -1
  67. package/fesm2022/exhaustive-ui-core-icons-baseicon.mjs +8 -13
  68. package/fesm2022/exhaustive-ui-core-icons-baseicon.mjs.map +1 -1
  69. package/fesm2022/exhaustive-ui-core-image.mjs +209 -251
  70. package/fesm2022/exhaustive-ui-core-image.mjs.map +1 -1
  71. package/fesm2022/exhaustive-ui-core-imagecompare.mjs +39 -48
  72. package/fesm2022/exhaustive-ui-core-imagecompare.mjs.map +1 -1
  73. package/fesm2022/exhaustive-ui-core-inplace.mjs +64 -98
  74. package/fesm2022/exhaustive-ui-core-inplace.mjs.map +1 -1
  75. package/fesm2022/exhaustive-ui-core-inputgroup.mjs +10 -20
  76. package/fesm2022/exhaustive-ui-core-inputgroup.mjs.map +1 -1
  77. package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs +15 -24
  78. package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs.map +1 -1
  79. package/fesm2022/exhaustive-ui-core-inputicon.mjs +11 -22
  80. package/fesm2022/exhaustive-ui-core-inputicon.mjs.map +1 -1
  81. package/fesm2022/exhaustive-ui-core-inputmask.mjs +423 -392
  82. package/fesm2022/exhaustive-ui-core-inputmask.mjs.map +1 -1
  83. package/fesm2022/exhaustive-ui-core-inputnumber.mjs +397 -469
  84. package/fesm2022/exhaustive-ui-core-inputnumber.mjs.map +1 -1
  85. package/fesm2022/exhaustive-ui-core-inputotp.mjs +75 -95
  86. package/fesm2022/exhaustive-ui-core-inputotp.mjs.map +1 -1
  87. package/fesm2022/exhaustive-ui-core-inputtext.mjs +27 -36
  88. package/fesm2022/exhaustive-ui-core-inputtext.mjs.map +1 -1
  89. package/fesm2022/exhaustive-ui-core-keyfilter.mjs +29 -46
  90. package/fesm2022/exhaustive-ui-core-keyfilter.mjs.map +1 -1
  91. package/fesm2022/exhaustive-ui-core-knob.mjs +140 -187
  92. package/fesm2022/exhaustive-ui-core-knob.mjs.map +1 -1
  93. package/fesm2022/exhaustive-ui-core-listbox.mjs +365 -546
  94. package/fesm2022/exhaustive-ui-core-listbox.mjs.map +1 -1
  95. package/fesm2022/exhaustive-ui-core-megamenu.mjs +320 -371
  96. package/fesm2022/exhaustive-ui-core-megamenu.mjs.map +1 -1
  97. package/fesm2022/exhaustive-ui-core-menu.mjs +298 -348
  98. package/fesm2022/exhaustive-ui-core-menu.mjs.map +1 -1
  99. package/fesm2022/exhaustive-ui-core-menubar.mjs +277 -372
  100. package/fesm2022/exhaustive-ui-core-menubar.mjs.map +1 -1
  101. package/fesm2022/exhaustive-ui-core-metergroup.mjs +138 -166
  102. package/fesm2022/exhaustive-ui-core-metergroup.mjs.map +1 -1
  103. package/fesm2022/exhaustive-ui-core-multiselect.mjs +647 -835
  104. package/fesm2022/exhaustive-ui-core-multiselect.mjs.map +1 -1
  105. package/fesm2022/exhaustive-ui-core-orderlist.mjs +337 -409
  106. package/fesm2022/exhaustive-ui-core-orderlist.mjs.map +1 -1
  107. package/fesm2022/exhaustive-ui-core-organizationchart.mjs +114 -175
  108. package/fesm2022/exhaustive-ui-core-organizationchart.mjs.map +1 -1
  109. package/fesm2022/exhaustive-ui-core-overlaybadge.mjs +22 -47
  110. package/fesm2022/exhaustive-ui-core-overlaybadge.mjs.map +1 -1
  111. package/fesm2022/exhaustive-ui-core-paginator.mjs +232 -320
  112. package/fesm2022/exhaustive-ui-core-paginator.mjs.map +1 -1
  113. package/fesm2022/exhaustive-ui-core-panel.mjs +114 -174
  114. package/fesm2022/exhaustive-ui-core-panel.mjs.map +1 -1
  115. package/fesm2022/exhaustive-ui-core-panelmenu.mjs +171 -282
  116. package/fesm2022/exhaustive-ui-core-panelmenu.mjs.map +1 -1
  117. package/fesm2022/exhaustive-ui-core-password.mjs +317 -377
  118. package/fesm2022/exhaustive-ui-core-password.mjs.map +1 -1
  119. package/fesm2022/exhaustive-ui-core-picklist.mjs +557 -655
  120. package/fesm2022/exhaustive-ui-core-picklist.mjs.map +1 -1
  121. package/fesm2022/exhaustive-ui-core-popover.mjs +154 -181
  122. package/fesm2022/exhaustive-ui-core-popover.mjs.map +1 -1
  123. package/fesm2022/exhaustive-ui-core-rating.mjs +87 -119
  124. package/fesm2022/exhaustive-ui-core-rating.mjs.map +1 -1
  125. package/fesm2022/exhaustive-ui-core-scroller.mjs +465 -596
  126. package/fesm2022/exhaustive-ui-core-scroller.mjs.map +1 -1
  127. package/fesm2022/exhaustive-ui-core-scrollpanel.mjs +147 -155
  128. package/fesm2022/exhaustive-ui-core-scrollpanel.mjs.map +1 -1
  129. package/fesm2022/exhaustive-ui-core-scrolltop.mjs +81 -115
  130. package/fesm2022/exhaustive-ui-core-scrolltop.mjs.map +1 -1
  131. package/fesm2022/exhaustive-ui-core-select.mjs +581 -784
  132. package/fesm2022/exhaustive-ui-core-select.mjs.map +1 -1
  133. package/fesm2022/exhaustive-ui-core-selectbutton.mjs +84 -120
  134. package/fesm2022/exhaustive-ui-core-selectbutton.mjs.map +1 -1
  135. package/fesm2022/exhaustive-ui-core-slider.mjs +322 -352
  136. package/fesm2022/exhaustive-ui-core-slider.mjs.map +1 -1
  137. package/fesm2022/exhaustive-ui-core-speeddial.mjs +209 -268
  138. package/fesm2022/exhaustive-ui-core-speeddial.mjs.map +1 -1
  139. package/fesm2022/exhaustive-ui-core-splitbutton.mjs +153 -249
  140. package/fesm2022/exhaustive-ui-core-splitbutton.mjs.map +1 -1
  141. package/fesm2022/exhaustive-ui-core-splitter.mjs +221 -237
  142. package/fesm2022/exhaustive-ui-core-splitter.mjs.map +1 -1
  143. package/fesm2022/exhaustive-ui-core-steps.mjs +56 -72
  144. package/fesm2022/exhaustive-ui-core-steps.mjs.map +1 -1
  145. package/fesm2022/exhaustive-ui-core-styleclass.mjs +145 -146
  146. package/fesm2022/exhaustive-ui-core-styleclass.mjs.map +1 -1
  147. package/fesm2022/exhaustive-ui-core-table.mjs +2213 -2543
  148. package/fesm2022/exhaustive-ui-core-table.mjs.map +1 -1
  149. package/fesm2022/exhaustive-ui-core-terminal.mjs +50 -67
  150. package/fesm2022/exhaustive-ui-core-terminal.mjs.map +1 -1
  151. package/fesm2022/exhaustive-ui-core-textarea.mjs +23 -36
  152. package/fesm2022/exhaustive-ui-core-textarea.mjs.map +1 -1
  153. package/fesm2022/exhaustive-ui-core-tieredmenu.mjs +318 -394
  154. package/fesm2022/exhaustive-ui-core-tieredmenu.mjs.map +1 -1
  155. package/fesm2022/exhaustive-ui-core-timeline.mjs +56 -74
  156. package/fesm2022/exhaustive-ui-core-timeline.mjs.map +1 -1
  157. package/fesm2022/exhaustive-ui-core-togglebutton.mjs +86 -129
  158. package/fesm2022/exhaustive-ui-core-togglebutton.mjs.map +1 -1
  159. package/fesm2022/exhaustive-ui-core-toggleswitch.mjs +57 -94
  160. package/fesm2022/exhaustive-ui-core-toggleswitch.mjs.map +1 -1
  161. package/fesm2022/exhaustive-ui-core-toolbar.mjs +36 -55
  162. package/fesm2022/exhaustive-ui-core-toolbar.mjs.map +1 -1
  163. package/fesm2022/exhaustive-ui-core-tooltip.mjs +264 -343
  164. package/fesm2022/exhaustive-ui-core-tooltip.mjs.map +1 -1
  165. package/fesm2022/exhaustive-ui-core-tree.mjs +508 -639
  166. package/fesm2022/exhaustive-ui-core-tree.mjs.map +1 -1
  167. package/fesm2022/exhaustive-ui-core-treeselect.mjs +327 -421
  168. package/fesm2022/exhaustive-ui-core-treeselect.mjs.map +1 -1
  169. package/fesm2022/exhaustive-ui-core-treetable.mjs +1267 -1473
  170. package/fesm2022/exhaustive-ui-core-treetable.mjs.map +1 -1
  171. package/package.json +5 -5
  172. package/schematics/migrations/remove-dead-inputs/migration.js +213 -7
  173. package/schematics/migrations/renamed-inputs/migration.js +97 -0
  174. package/schematics/migrations/styleclass-to-class/migration.js +92 -1
  175. package/schematics/migrations.json +7 -2
  176. package/schematics/utils/removed-inputs.js +0 -0
  177. package/schematics/utils/renamed-inputs.js +175 -0
  178. package/schematics/utils/styleclass.js +24 -8
  179. package/schematics/utils/versions.json +8 -8
  180. package/types/exhaustive-ui-core-accordion.d.ts +8 -24
  181. package/types/exhaustive-ui-core-animateonscroll.d.ts +19 -21
  182. package/types/exhaustive-ui-core-api.d.ts +2 -3
  183. package/types/exhaustive-ui-core-autocomplete.d.ts +103 -176
  184. package/types/exhaustive-ui-core-autofocus.d.ts +4 -7
  185. package/types/exhaustive-ui-core-avatar.d.ts +18 -25
  186. package/types/exhaustive-ui-core-badge.d.ts +13 -27
  187. package/types/exhaustive-ui-core-blockui.d.ts +18 -30
  188. package/types/exhaustive-ui-core-breadcrumb.d.ts +21 -22
  189. package/types/exhaustive-ui-core-button.d.ts +57 -89
  190. package/types/exhaustive-ui-core-carousel.d.ts +56 -82
  191. package/types/exhaustive-ui-core-cascadeselect.d.ts +77 -111
  192. package/types/exhaustive-ui-core-chart.d.ts +21 -29
  193. package/types/exhaustive-ui-core-checkbox.d.ts +25 -39
  194. package/types/exhaustive-ui-core-chip.d.ts +31 -38
  195. package/types/exhaustive-ui-core-colorpicker.d.ts +23 -57
  196. package/types/exhaustive-ui-core-confirmdialog.d.ts +39 -109
  197. package/types/exhaustive-ui-core-confirmpopup.d.ts +24 -43
  198. package/types/exhaustive-ui-core-contextmenu.d.ts +54 -71
  199. package/types/exhaustive-ui-core-dataview.d.ts +42 -65
  200. package/types/exhaustive-ui-core-datepicker.d.ts +109 -191
  201. package/types/exhaustive-ui-core-dialog.d.ts +73 -123
  202. package/types/exhaustive-ui-core-dock.d.ts +16 -25
  203. package/types/exhaustive-ui-core-dragdrop.d.ts +32 -36
  204. package/types/exhaustive-ui-core-drawer.d.ts +32 -64
  205. package/types/exhaustive-ui-core-dynamicdialog.d.ts +9 -54
  206. package/types/exhaustive-ui-core-editor.d.ts +15 -25
  207. package/types/exhaustive-ui-core-fieldset.d.ts +15 -35
  208. package/types/exhaustive-ui-core-fileupload.d.ts +69 -95
  209. package/types/exhaustive-ui-core-floatlabel.d.ts +4 -6
  210. package/types/exhaustive-ui-core-focustrap.d.ts +5 -10
  211. package/types/exhaustive-ui-core-galleria.d.ts +124 -194
  212. package/types/exhaustive-ui-core-iconfield.d.ts +5 -13
  213. package/types/exhaustive-ui-core-icons-baseicon.d.ts +4 -5
  214. package/types/exhaustive-ui-core-image.d.ts +35 -68
  215. package/types/exhaustive-ui-core-imagecompare.d.ts +19 -20
  216. package/types/exhaustive-ui-core-inplace.d.ts +30 -42
  217. package/types/exhaustive-ui-core-inputgroup.d.ts +2 -9
  218. package/types/exhaustive-ui-core-inputgroupaddon.d.ts +6 -10
  219. package/types/exhaustive-ui-core-inputicon.d.ts +4 -11
  220. package/types/exhaustive-ui-core-inputmask.d.ts +53 -66
  221. package/types/exhaustive-ui-core-inputnumber.d.ts +62 -84
  222. package/types/exhaustive-ui-core-inputotp.d.ts +16 -20
  223. package/types/exhaustive-ui-core-inputtext.d.ts +5 -8
  224. package/types/exhaustive-ui-core-keyfilter.d.ts +11 -15
  225. package/types/exhaustive-ui-core-knob.d.ts +45 -60
  226. package/types/exhaustive-ui-core-listbox.d.ts +90 -126
  227. package/types/exhaustive-ui-core-megamenu.d.ts +45 -66
  228. package/types/exhaustive-ui-core-menu.d.ts +33 -53
  229. package/types/exhaustive-ui-core-menubar.d.ts +38 -85
  230. package/types/exhaustive-ui-core-metergroup.d.ts +39 -48
  231. package/types/exhaustive-ui-core-multiselect.d.ts +166 -219
  232. package/types/exhaustive-ui-core-orderlist.d.ts +58 -81
  233. package/types/exhaustive-ui-core-organizationchart.d.ts +32 -67
  234. package/types/exhaustive-ui-core-overlaybadge.d.ts +10 -20
  235. package/types/exhaustive-ui-core-paginator.d.ts +41 -69
  236. package/types/exhaustive-ui-core-panel.d.ts +18 -45
  237. package/types/exhaustive-ui-core-panelmenu.d.ts +31 -76
  238. package/types/exhaustive-ui-core-password.d.ts +56 -93
  239. package/types/exhaustive-ui-core-picklist.d.ts +107 -121
  240. package/types/exhaustive-ui-core-popover.d.ts +23 -47
  241. package/types/exhaustive-ui-core-rating.d.ts +18 -26
  242. package/types/exhaustive-ui-core-scroller.d.ts +90 -120
  243. package/types/exhaustive-ui-core-scrollpanel.d.ts +35 -46
  244. package/types/exhaustive-ui-core-scrolltop.d.ts +28 -45
  245. package/types/exhaustive-ui-core-select.d.ts +137 -188
  246. package/types/exhaustive-ui-core-selectbutton.d.ts +35 -44
  247. package/types/exhaustive-ui-core-slider.d.ts +52 -67
  248. package/types/exhaustive-ui-core-speeddial.d.ts +40 -56
  249. package/types/exhaustive-ui-core-splitbutton.d.ts +31 -71
  250. package/types/exhaustive-ui-core-splitter.d.ts +47 -59
  251. package/types/exhaustive-ui-core-steps.d.ts +24 -31
  252. package/types/exhaustive-ui-core-styleclass.d.ts +27 -33
  253. package/types/exhaustive-ui-core-table.d.ts +349 -453
  254. package/types/exhaustive-ui-core-terminal.d.ts +10 -22
  255. package/types/exhaustive-ui-core-textarea.d.ts +7 -10
  256. package/types/exhaustive-ui-core-tieredmenu.d.ts +49 -84
  257. package/types/exhaustive-ui-core-timeline.d.ts +20 -28
  258. package/types/exhaustive-ui-core-togglebutton.d.ts +32 -48
  259. package/types/exhaustive-ui-core-toggleswitch.d.ts +26 -37
  260. package/types/exhaustive-ui-core-toolbar.d.ts +17 -25
  261. package/types/exhaustive-ui-core-tooltip.d.ts +53 -88
  262. package/types/exhaustive-ui-core-tree.d.ts +82 -119
  263. package/types/exhaustive-ui-core-treeselect.d.ts +63 -92
  264. package/types/exhaustive-ui-core-treetable.d.ts +203 -280
  265. package/types/exhaustive-ui-core-types-chip.d.ts +1 -1
@@ -2,7 +2,7 @@ export * from '@exhaustive-ui/core/types/panel';
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, inject, input, computed, output, contentChild, viewChild, contentChildren, booleanAttribute, Input, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
5
+ import { Injectable, inject, afterEveryRender, input, booleanAttribute, model, computed, output, contentChild, viewChild, contentChildren, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
6
6
  import { uuid } from '@exhaustive-ui/utils';
7
7
  import { Footer, PrimeTemplate, SharedModule } from '@exhaustive-ui/core/api';
8
8
  import { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';
@@ -20,9 +20,9 @@ const classes = {
20
20
  root: ({ instance }) => [
21
21
  'p-panel p-component',
22
22
  {
23
- 'p-panel-toggleable': instance.toggleable,
24
- 'p-panel-expanded': !instance._collapsed && instance.toggleable,
25
- 'p-panel-collapsed': instance._collapsed && instance.toggleable
23
+ 'p-panel-toggleable': instance.toggleable(),
24
+ 'p-panel-expanded': !instance.collapsed() && instance.toggleable(),
25
+ 'p-panel-collapsed': instance.collapsed() && instance.toggleable()
26
26
  }
27
27
  ],
28
28
  header: 'p-panel-header',
@@ -30,9 +30,9 @@ const classes = {
30
30
  headerActions: ({ instance }) => [
31
31
  'p-panel-header-actions',
32
32
  {
33
- 'p-panel-icons-start': instance.iconPos === 'start',
34
- 'p-panel-icons-end': instance.iconPos === 'end',
35
- 'p-panel-icons-center': instance.iconPos === 'center'
33
+ 'p-panel-icons-start': instance.iconPos() === 'start',
34
+ 'p-panel-icons-end': instance.iconPos() === 'end',
35
+ 'p-panel-icons-center': instance.iconPos() === 'center'
36
36
  }
37
37
  ],
38
38
  pcToggleButton: 'p-panel-toggle-button',
@@ -100,79 +100,63 @@ var PanelClasses;
100
100
  PanelClasses["footer"] = "p-panel-footer";
101
101
  })(PanelClasses || (PanelClasses = {}));
102
102
 
103
- const PANEL_INSTANCE = new InjectionToken('PANEL_INSTANCE');
104
103
  /**
105
104
  * Panel is a container with the optional content toggle feature.
106
105
  * @group Components
107
106
  */
108
107
  class Panel extends BaseComponent {
109
108
  componentName = 'Panel';
110
- $pcPanel = inject(PANEL_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
111
109
  _componentStyle = inject(PanelStyle);
112
110
  bindDirectiveInstance = inject(Bind, { self: true });
113
- onAfterViewChecked() {
114
- this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
111
+ constructor() {
112
+ super();
113
+ afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root'])));
115
114
  }
116
115
  /**
117
116
  * Id of the component.
118
117
  */
119
- id = uuid('pn_id_');
118
+ id = input(uuid('pn_id_'), /* @ts-ignore */
119
+ ...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
120
120
  /**
121
121
  * Defines if content of panel can be expanded and collapsed.
122
122
  * @group Props
123
123
  */
124
- toggleable;
124
+ toggleable = input(undefined, { ...(ngDevMode ? { debugName: "toggleable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
125
125
  /**
126
126
  * Header text of the panel.
127
127
  * @group Props
128
128
  */
129
- _header;
130
- /**
131
- * Internal collapsed state
132
- */
133
- _collapsed;
129
+ _header = input(undefined, { ...(ngDevMode ? { debugName: "_header" } : /* istanbul ignore next */ {}), alias: 'header' });
134
130
  /**
135
131
  * Defines the initial state of panel content, supports one or two-way binding as well.
132
+ * Emits `collapsedChange` with the new value when the collapsed state changes.
136
133
  * @group Props
137
134
  */
138
- get collapsed() {
139
- return this._collapsed;
140
- }
141
- set collapsed(value) {
142
- this._collapsed = value;
143
- }
144
- /**
145
- * Style class of the component.
146
- * @group Props
147
- * @deprecated since v20.0.0, use `class` instead.
148
- */
149
- styleClass;
135
+ collapsed = model(/* @ts-ignore */
136
+ ...(ngDevMode ? [undefined, { debugName: "collapsed" }] : /* istanbul ignore next */ []));
150
137
  /**
151
138
  * Position of the icons.
152
139
  * @group Props
153
140
  */
154
- iconPos = 'end';
141
+ iconPos = input('end', /* @ts-ignore */
142
+ ...(ngDevMode ? [{ debugName: "iconPos" }] : /* istanbul ignore next */ []));
155
143
  /**
156
144
  * Specifies if header of panel cannot be displayed.
157
145
  * @group Props
158
146
  */
159
- showHeader = true;
147
+ showHeader = input(true, { ...(ngDevMode ? { debugName: "showHeader" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
160
148
  /**
161
149
  * Specifies the toggler element to toggle the panel content.
162
150
  * @group Props
163
151
  */
164
- toggler = 'icon';
165
- /**
166
- * Transition options of the animation.
167
- * @group Props
168
- * @deprecated since v21.0.0, use `motionOptions` instead.
169
- */
170
- transitionOptions = '400ms cubic-bezier(0.86, 0, 0.07, 1)';
152
+ toggler = input('icon', /* @ts-ignore */
153
+ ...(ngDevMode ? [{ debugName: "toggler" }] : /* istanbul ignore next */ []));
171
154
  /**
172
155
  * Used to pass all properties of the ButtonProps to the Button component.
173
156
  * @group Props
174
157
  */
175
- toggleButtonProps;
158
+ toggleButtonProps = input(/* @ts-ignore */
159
+ ...(ngDevMode ? [undefined, { debugName: "toggleButtonProps" }] : /* istanbul ignore next */ []));
176
160
  /**
177
161
  * The motion options.
178
162
  * @group Props
@@ -186,12 +170,6 @@ class Panel extends BaseComponent {
186
170
  };
187
171
  }, /* @ts-ignore */
188
172
  ...(ngDevMode ? [{ debugName: "computedMotionOptions" }] : /* istanbul ignore next */ []));
189
- /**
190
- * Emitted when the collapsed changes.
191
- * @param {boolean} value - New Value.
192
- * @group Emits
193
- */
194
- collapsedChange = output();
195
173
  /**
196
174
  * Callback to invoke before panel toggle.
197
175
  * @param {PanelBeforeToggleEvent} event - Custom panel toggle event
@@ -249,42 +227,54 @@ class Panel extends BaseComponent {
249
227
  * @group Templates
250
228
  */
251
229
  headerIconsTemplate = contentChild('headericons', { ...(ngDevMode ? { debugName: "headerIconsTemplate" } : /* istanbul ignore next */ {}), descendants: false });
252
- _headerTemplate;
253
- _iconsTemplate;
254
- _contentTemplate;
255
- _footerTemplate;
256
- _headerIconsTemplate;
230
+ _headerTemplate = computed(() => this.templates()
231
+ .filter((item) => item.getType() === 'header')
232
+ .at(-1)?.template, /* @ts-ignore */
233
+ ...(ngDevMode ? [{ debugName: "_headerTemplate" }] : /* istanbul ignore next */ []));
234
+ _iconsTemplate = computed(() => this.templates()
235
+ .filter((item) => item.getType() === 'icons')
236
+ .at(-1)?.template, /* @ts-ignore */
237
+ ...(ngDevMode ? [{ debugName: "_iconsTemplate" }] : /* istanbul ignore next */ []));
238
+ _contentTemplate = computed(() => this.templates()
239
+ .filter((item) => !['header', 'footer', 'icons', 'headericons'].includes(item.getType()))
240
+ .at(-1)?.template, /* @ts-ignore */
241
+ ...(ngDevMode ? [{ debugName: "_contentTemplate" }] : /* istanbul ignore next */ []));
242
+ _footerTemplate = computed(() => this.templates()
243
+ .filter((item) => item.getType() === 'footer')
244
+ .at(-1)?.template, /* @ts-ignore */
245
+ ...(ngDevMode ? [{ debugName: "_footerTemplate" }] : /* istanbul ignore next */ []));
246
+ _headerIconsTemplate = computed(() => this.templates()
247
+ .filter((item) => item.getType() === 'headericons')
248
+ .at(-1)?.template, /* @ts-ignore */
249
+ ...(ngDevMode ? [{ debugName: "_headerIconsTemplate" }] : /* istanbul ignore next */ []));
257
250
  contentWrapperViewChild = viewChild.required('contentWrapper', /* @ts-ignore */
258
251
  ...(ngDevMode ? [{ debugName: "contentWrapperViewChild" }] : /* istanbul ignore next */ []));
259
- get buttonAriaLabel() {
260
- return this._header;
261
- }
252
+ buttonAriaLabel = computed(() => this._header(), /* @ts-ignore */
253
+ ...(ngDevMode ? [{ debugName: "buttonAriaLabel" }] : /* istanbul ignore next */ []));
262
254
  onHeaderClick(event) {
263
- if (this.toggler === 'header') {
255
+ if (this.toggler() === 'header') {
264
256
  this.toggle(event);
265
257
  }
266
258
  }
267
259
  onIconClick(event) {
268
- if (this.toggler === 'icon') {
260
+ if (this.toggler() === 'icon') {
269
261
  this.toggle(event);
270
262
  }
271
263
  }
272
264
  toggle(event) {
273
- this.onBeforeToggle.emit({ originalEvent: event, collapsed: this.collapsed });
274
- if (this.collapsed)
265
+ this.onBeforeToggle.emit({ originalEvent: event, collapsed: this.collapsed() });
266
+ if (this.collapsed())
275
267
  this.expand();
276
268
  else
277
269
  this.collapse();
278
270
  event.preventDefault();
279
271
  }
280
272
  expand() {
281
- this._collapsed = false;
282
- this.collapsedChange.emit(false);
273
+ this.collapsed.set(false);
283
274
  this.updateTabIndex();
284
275
  }
285
276
  collapse() {
286
- this._collapsed = true;
287
- this.collapsedChange.emit(true);
277
+ this.collapsed.set(true);
288
278
  this.updateTabIndex();
289
279
  }
290
280
  getBlockableElement() {
@@ -293,7 +283,7 @@ class Panel extends BaseComponent {
293
283
  updateTabIndex() {
294
284
  const focusableElements = this.contentWrapperViewChild().nativeElement.querySelectorAll('input, button, select, a, textarea, [tabindex]');
295
285
  focusableElements.forEach((element) => {
296
- if (this.collapsed) {
286
+ if (this.collapsed()) {
297
287
  element.setAttribute('tabindex', '-1');
298
288
  }
299
289
  else {
@@ -308,78 +298,53 @@ class Panel extends BaseComponent {
308
298
  }
309
299
  }
310
300
  onToggleDone(event) {
311
- this.onAfterToggle.emit({ originalEvent: event, collapsed: this.collapsed });
301
+ this.onAfterToggle.emit({ originalEvent: event, collapsed: this.collapsed() });
312
302
  }
313
303
  templates = contentChildren(PrimeTemplate, /* @ts-ignore */
314
304
  ...(ngDevMode ? [{ debugName: "templates" }] : /* istanbul ignore next */ []));
315
- onAfterContentInit() {
316
- this.templates().forEach((item) => {
317
- switch (item.getType()) {
318
- case 'header':
319
- this._headerTemplate = item.template;
320
- break;
321
- case 'content':
322
- this._contentTemplate = item.template;
323
- break;
324
- case 'footer':
325
- this._footerTemplate = item.template;
326
- break;
327
- case 'icons':
328
- this._iconsTemplate = item.template;
329
- break;
330
- case 'headericons':
331
- this._headerIconsTemplate = item.template;
332
- break;
333
- default:
334
- this._contentTemplate = item.template;
335
- break;
336
- }
337
- });
338
- }
339
- get dataP() {
340
- return this.cn({
341
- toggleable: this.toggleable
342
- });
343
- }
344
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Panel, deps: null, target: i0.ɵɵFactoryTarget.Component });
345
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: Panel, isStandalone: true, selector: "p-panel", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: false, isRequired: false, transformFunction: null }, toggleable: { classPropertyName: "toggleable", publicName: "toggleable", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, _header: { classPropertyName: "_header", publicName: "header", isSignal: false, isRequired: false, transformFunction: null }, collapsed: { classPropertyName: "collapsed", publicName: "collapsed", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: false, isRequired: false, transformFunction: null }, iconPos: { classPropertyName: "iconPos", publicName: "iconPos", isSignal: false, isRequired: false, transformFunction: null }, showHeader: { classPropertyName: "showHeader", publicName: "showHeader", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, toggler: { classPropertyName: "toggler", publicName: "toggler", isSignal: false, isRequired: false, transformFunction: null }, transitionOptions: { classPropertyName: "transitionOptions", publicName: "transitionOptions", isSignal: false, isRequired: false, transformFunction: null }, toggleButtonProps: { classPropertyName: "toggleButtonProps", publicName: "toggleButtonProps", isSignal: false, isRequired: false, transformFunction: null }, motionOptions: { classPropertyName: "motionOptions", publicName: "motionOptions", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { collapsedChange: "collapsedChange", onBeforeToggle: "onBeforeToggle", onAfterToggle: "onAfterToggle" }, host: { properties: { "id": "id", "class": "cn(cx('root'), styleClass)", "attr.data-p": "dataP" } }, providers: [PanelStyle, { provide: PANEL_INSTANCE, useExisting: Panel }, { provide: PARENT_INSTANCE, useExisting: Panel }], queries: [{ propertyName: "footerFacet", first: true, predicate: Footer, descendants: true, isSignal: true }, { propertyName: "headerTemplate", first: true, predicate: ["header"], isSignal: true }, { propertyName: "iconsTemplate", first: true, predicate: ["icons"], isSignal: true }, { propertyName: "contentTemplate", first: true, predicate: ["content"], isSignal: true }, { propertyName: "footerTemplate", first: true, predicate: ["footer"], isSignal: true }, { propertyName: "headerIconsTemplate", first: true, predicate: ["headericons"], isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], viewQueries: [{ propertyName: "contentWrapperViewChild", first: true, predicate: ["contentWrapper"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
346
- @if (showHeader) {
347
- <div [pBind]="ptm('header')" [class]="cx('header')" (click)="onHeaderClick($event)" [attr.id]="id + '-titlebar'" [attr.data-p]="dataP">
348
- @if (_header) {
349
- <span [pBind]="ptm('title')" [class]="cx('title')" [attr.id]="id + '_header'">{{ _header }}</span>
305
+ dataP = computed(() => this.cn({
306
+ toggleable: this.toggleable()
307
+ }), /* @ts-ignore */
308
+ ...(ngDevMode ? [{ debugName: "dataP" }] : /* istanbul ignore next */ []));
309
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Panel, deps: [], target: i0.ɵɵFactoryTarget.Component });
310
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: Panel, isStandalone: true, selector: "p-panel", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, toggleable: { classPropertyName: "toggleable", publicName: "toggleable", isSignal: true, isRequired: false, transformFunction: null }, _header: { classPropertyName: "_header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, collapsed: { classPropertyName: "collapsed", publicName: "collapsed", isSignal: true, isRequired: false, transformFunction: null }, iconPos: { classPropertyName: "iconPos", publicName: "iconPos", isSignal: true, isRequired: false, transformFunction: null }, showHeader: { classPropertyName: "showHeader", publicName: "showHeader", isSignal: true, isRequired: false, transformFunction: null }, toggler: { classPropertyName: "toggler", publicName: "toggler", isSignal: true, isRequired: false, transformFunction: null }, toggleButtonProps: { classPropertyName: "toggleButtonProps", publicName: "toggleButtonProps", isSignal: true, isRequired: false, transformFunction: null }, motionOptions: { classPropertyName: "motionOptions", publicName: "motionOptions", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { collapsed: "collapsedChange", onBeforeToggle: "onBeforeToggle", onAfterToggle: "onAfterToggle" }, host: { properties: { "id": "id()", "class": "cx('root')", "attr.data-p": "dataP()" } }, providers: [PanelStyle, { provide: PARENT_INSTANCE, useExisting: Panel }], queries: [{ propertyName: "footerFacet", first: true, predicate: Footer, descendants: true, isSignal: true }, { propertyName: "headerTemplate", first: true, predicate: ["header"], isSignal: true }, { propertyName: "iconsTemplate", first: true, predicate: ["icons"], isSignal: true }, { propertyName: "contentTemplate", first: true, predicate: ["content"], isSignal: true }, { propertyName: "footerTemplate", first: true, predicate: ["footer"], isSignal: true }, { propertyName: "headerIconsTemplate", first: true, predicate: ["headericons"], isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], viewQueries: [{ propertyName: "contentWrapperViewChild", first: true, predicate: ["contentWrapper"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
311
+ @if (showHeader()) {
312
+ <div [pBind]="ptm('header')" [class]="cx('header')" (click)="onHeaderClick($event)" [attr.id]="id() + '-titlebar'" [attr.data-p]="dataP()">
313
+ @if (_header()) {
314
+ <span [pBind]="ptm('title')" [class]="cx('title')" [attr.id]="id() + '_header'">{{ _header() }}</span>
350
315
  }
351
316
  <ng-content select="p-header"></ng-content>
352
- <ng-container *ngTemplateOutlet="headerTemplate() || _headerTemplate"></ng-container>
317
+ <ng-container *ngTemplateOutlet="headerTemplate() || _headerTemplate()"></ng-container>
353
318
  <div [pBind]="ptm('headerActions')" [class]="cx('headerActions')">
354
- <ng-template *ngTemplateOutlet="iconsTemplate() || _iconsTemplate"></ng-template>
355
- @if (toggleable) {
319
+ <ng-template *ngTemplateOutlet="iconsTemplate() || _iconsTemplate()"></ng-template>
320
+ @if (toggleable()) {
356
321
  <p-button
357
- [attr.id]="id + '_header'"
322
+ [attr.id]="id() + '_header'"
358
323
  severity="secondary"
359
324
  [text]="true"
360
325
  [rounded]="true"
361
326
  type="button"
362
327
  role="button"
363
328
  [styleClass]="cx('pcToggleButton')"
364
- [attr.aria-label]="buttonAriaLabel"
365
- [attr.aria-controls]="id + '_content'"
366
- [attr.aria-expanded]="!collapsed"
329
+ [attr.aria-label]="buttonAriaLabel()"
330
+ [attr.aria-controls]="id() + '_content'"
331
+ [attr.aria-expanded]="!collapsed()"
367
332
  (click)="onIconClick($event)"
368
333
  (keydown)="onKeyDown($event)"
369
- [buttonProps]="toggleButtonProps"
334
+ [buttonProps]="toggleButtonProps()"
370
335
  [pt]="ptm('pcToggleButton')"
371
336
  [unstyled]="unstyled()"
372
337
  >
373
338
  <ng-template #icon>
374
- @if (!headerIconsTemplate() && !_headerIconsTemplate && !toggleButtonProps?.icon) {
375
- @if (!collapsed) {
339
+ @if (!headerIconsTemplate() && !_headerIconsTemplate() && !toggleButtonProps()?.icon) {
340
+ @if (!collapsed()) {
376
341
  <svg data-p-icon="minus" [pBind]="ptm('pcToggleButton.icon')" />
377
342
  }
378
- @if (collapsed) {
343
+ @if (collapsed()) {
379
344
  <svg data-p-icon="plus" [pBind]="ptm('pcToggleButton.icon')" />
380
345
  }
381
346
  }
382
- <ng-template *ngTemplateOutlet="headerIconsTemplate() || _headerIconsTemplate; context: { $implicit: collapsed }"></ng-template>
347
+ <ng-template *ngTemplateOutlet="headerIconsTemplate() || _headerIconsTemplate(); context: { $implicit: collapsed() }"></ng-template>
383
348
  </ng-template>
384
349
  </p-button>
385
350
  }
@@ -388,77 +353,76 @@ class Panel extends BaseComponent {
388
353
  }
389
354
  <div
390
355
  [pBind]="ptm('contentContainer')"
391
- [pMotion]="!toggleable || (toggleable && !collapsed)"
356
+ [pMotion]="!toggleable() || (toggleable() && !collapsed())"
392
357
  pMotionName="p-collapsible"
393
358
  [pMotionOptions]="computedMotionOptions()"
394
359
  [class]="cx('contentContainer')"
395
- [id]="id + '_content'"
360
+ [id]="id() + '_content'"
396
361
  role="region"
397
- [attr.aria-labelledby]="id + '_header'"
398
- [attr.aria-hidden]="collapsed"
399
- [attr.tabindex]="collapsed ? '-1' : undefined"
362
+ [attr.aria-labelledby]="id() + '_header'"
363
+ [attr.aria-hidden]="collapsed()"
364
+ [attr.tabindex]="collapsed() ? '-1' : undefined"
400
365
  (pMotionOnAfterEnter)="onToggleDone($event)"
401
366
  >
402
367
  <div [pBind]="ptm('contentWrapper')" [class]="cx('contentWrapper')">
403
368
  <div [pBind]="ptm('content')" [class]="cx('content')" #contentWrapper>
404
369
  <ng-content></ng-content>
405
- <ng-container *ngTemplateOutlet="contentTemplate() || _contentTemplate"></ng-container>
370
+ <ng-container *ngTemplateOutlet="contentTemplate() || _contentTemplate()"></ng-container>
406
371
  </div>
407
372
 
408
- @if (footerFacet() || footerTemplate() || _footerTemplate) {
373
+ @if (footerFacet() || footerTemplate() || _footerTemplate()) {
409
374
  <div [pBind]="ptm('footer')" [class]="cx('footer')">
410
375
  <ng-content select="p-footer"></ng-content>
411
- <ng-container *ngTemplateOutlet="footerTemplate() || _footerTemplate"></ng-container>
376
+ <ng-container *ngTemplateOutlet="footerTemplate() || _footerTemplate()"></ng-container>
412
377
  </div>
413
378
  }
414
379
  </div>
415
380
  </div>
416
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: PlusIcon, selector: "[data-p-icon=\"plus\"]" }, { kind: "component", type: MinusIcon, selector: "[data-p-icon=\"minus\"]" }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i3.Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: SharedModule }, { kind: "ngmodule", type: BindModule }, { kind: "directive", type: i1.Bind, selector: "[pBind]", inputs: ["pBind"] }, { kind: "ngmodule", type: MotionModule }, { kind: "directive", type: i4.MotionDirective, selector: "[pMotion]", inputs: ["pMotion", "pMotionName", "pMotionType", "pMotionSafe", "pMotionDisabled", "pMotionAppear", "pMotionEnter", "pMotionLeave", "pMotionDuration", "pMotionHideStrategy", "pMotionEnterFromClass", "pMotionEnterToClass", "pMotionEnterActiveClass", "pMotionLeaveFromClass", "pMotionLeaveToClass", "pMotionLeaveActiveClass", "pMotionOptions"], outputs: ["pMotionOnBeforeEnter", "pMotionOnEnter", "pMotionOnAfterEnter", "pMotionOnEnterCancelled", "pMotionOnBeforeLeave", "pMotionOnLeave", "pMotionOnAfterLeave", "pMotionOnLeaveCancelled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
381
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: PlusIcon, selector: "[data-p-icon=\"plus\"]" }, { kind: "component", type: MinusIcon, selector: "[data-p-icon=\"minus\"]" }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i3.Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: SharedModule }, { kind: "ngmodule", type: BindModule }, { kind: "directive", type: i1.Bind, selector: "[pBind]", inputs: ["pBind"] }, { kind: "ngmodule", type: MotionModule }, { kind: "directive", type: i4.MotionDirective, selector: "[pMotion]", inputs: ["pMotion", "pMotionName", "pMotionType", "pMotionSafe", "pMotionDisabled", "pMotionAppear", "pMotionEnter", "pMotionLeave", "pMotionDuration", "pMotionHideStrategy", "pMotionEnterFromClass", "pMotionEnterToClass", "pMotionEnterActiveClass", "pMotionLeaveFromClass", "pMotionLeaveToClass", "pMotionLeaveActiveClass", "pMotionOptions"], outputs: ["pMotionOnBeforeEnter", "pMotionOnEnter", "pMotionOnAfterEnter", "pMotionOnEnterCancelled", "pMotionOnBeforeLeave", "pMotionOnLeave", "pMotionOnAfterLeave", "pMotionOnLeaveCancelled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
417
382
  }
418
383
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Panel, decorators: [{
419
384
  type: Component,
420
385
  args: [{
421
386
  selector: 'p-panel',
422
- standalone: true,
423
387
  imports: [CommonModule, PlusIcon, MinusIcon, ButtonModule, SharedModule, BindModule, MotionModule],
424
388
  template: `
425
- @if (showHeader) {
426
- <div [pBind]="ptm('header')" [class]="cx('header')" (click)="onHeaderClick($event)" [attr.id]="id + '-titlebar'" [attr.data-p]="dataP">
427
- @if (_header) {
428
- <span [pBind]="ptm('title')" [class]="cx('title')" [attr.id]="id + '_header'">{{ _header }}</span>
389
+ @if (showHeader()) {
390
+ <div [pBind]="ptm('header')" [class]="cx('header')" (click)="onHeaderClick($event)" [attr.id]="id() + '-titlebar'" [attr.data-p]="dataP()">
391
+ @if (_header()) {
392
+ <span [pBind]="ptm('title')" [class]="cx('title')" [attr.id]="id() + '_header'">{{ _header() }}</span>
429
393
  }
430
394
  <ng-content select="p-header"></ng-content>
431
- <ng-container *ngTemplateOutlet="headerTemplate() || _headerTemplate"></ng-container>
395
+ <ng-container *ngTemplateOutlet="headerTemplate() || _headerTemplate()"></ng-container>
432
396
  <div [pBind]="ptm('headerActions')" [class]="cx('headerActions')">
433
- <ng-template *ngTemplateOutlet="iconsTemplate() || _iconsTemplate"></ng-template>
434
- @if (toggleable) {
397
+ <ng-template *ngTemplateOutlet="iconsTemplate() || _iconsTemplate()"></ng-template>
398
+ @if (toggleable()) {
435
399
  <p-button
436
- [attr.id]="id + '_header'"
400
+ [attr.id]="id() + '_header'"
437
401
  severity="secondary"
438
402
  [text]="true"
439
403
  [rounded]="true"
440
404
  type="button"
441
405
  role="button"
442
406
  [styleClass]="cx('pcToggleButton')"
443
- [attr.aria-label]="buttonAriaLabel"
444
- [attr.aria-controls]="id + '_content'"
445
- [attr.aria-expanded]="!collapsed"
407
+ [attr.aria-label]="buttonAriaLabel()"
408
+ [attr.aria-controls]="id() + '_content'"
409
+ [attr.aria-expanded]="!collapsed()"
446
410
  (click)="onIconClick($event)"
447
411
  (keydown)="onKeyDown($event)"
448
- [buttonProps]="toggleButtonProps"
412
+ [buttonProps]="toggleButtonProps()"
449
413
  [pt]="ptm('pcToggleButton')"
450
414
  [unstyled]="unstyled()"
451
415
  >
452
416
  <ng-template #icon>
453
- @if (!headerIconsTemplate() && !_headerIconsTemplate && !toggleButtonProps?.icon) {
454
- @if (!collapsed) {
417
+ @if (!headerIconsTemplate() && !_headerIconsTemplate() && !toggleButtonProps()?.icon) {
418
+ @if (!collapsed()) {
455
419
  <svg data-p-icon="minus" [pBind]="ptm('pcToggleButton.icon')" />
456
420
  }
457
- @if (collapsed) {
421
+ @if (collapsed()) {
458
422
  <svg data-p-icon="plus" [pBind]="ptm('pcToggleButton.icon')" />
459
423
  }
460
424
  }
461
- <ng-template *ngTemplateOutlet="headerIconsTemplate() || _headerIconsTemplate; context: { $implicit: collapsed }"></ng-template>
425
+ <ng-template *ngTemplateOutlet="headerIconsTemplate() || _headerIconsTemplate(); context: { $implicit: collapsed() }"></ng-template>
462
426
  </ng-template>
463
427
  </p-button>
464
428
  }
@@ -467,27 +431,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
467
431
  }
468
432
  <div
469
433
  [pBind]="ptm('contentContainer')"
470
- [pMotion]="!toggleable || (toggleable && !collapsed)"
434
+ [pMotion]="!toggleable() || (toggleable() && !collapsed())"
471
435
  pMotionName="p-collapsible"
472
436
  [pMotionOptions]="computedMotionOptions()"
473
437
  [class]="cx('contentContainer')"
474
- [id]="id + '_content'"
438
+ [id]="id() + '_content'"
475
439
  role="region"
476
- [attr.aria-labelledby]="id + '_header'"
477
- [attr.aria-hidden]="collapsed"
478
- [attr.tabindex]="collapsed ? '-1' : undefined"
440
+ [attr.aria-labelledby]="id() + '_header'"
441
+ [attr.aria-hidden]="collapsed()"
442
+ [attr.tabindex]="collapsed() ? '-1' : undefined"
479
443
  (pMotionOnAfterEnter)="onToggleDone($event)"
480
444
  >
481
445
  <div [pBind]="ptm('contentWrapper')" [class]="cx('contentWrapper')">
482
446
  <div [pBind]="ptm('content')" [class]="cx('content')" #contentWrapper>
483
447
  <ng-content></ng-content>
484
- <ng-container *ngTemplateOutlet="contentTemplate() || _contentTemplate"></ng-container>
448
+ <ng-container *ngTemplateOutlet="contentTemplate() || _contentTemplate()"></ng-container>
485
449
  </div>
486
450
 
487
- @if (footerFacet() || footerTemplate() || _footerTemplate) {
451
+ @if (footerFacet() || footerTemplate() || _footerTemplate()) {
488
452
  <div [pBind]="ptm('footer')" [class]="cx('footer')">
489
453
  <ng-content select="p-footer"></ng-content>
490
- <ng-container *ngTemplateOutlet="footerTemplate() || _footerTemplate"></ng-container>
454
+ <ng-container *ngTemplateOutlet="footerTemplate() || _footerTemplate()"></ng-container>
491
455
  </div>
492
456
  }
493
457
  </div>
@@ -495,39 +459,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
495
459
  `,
496
460
  changeDetection: ChangeDetectionStrategy.OnPush,
497
461
  encapsulation: ViewEncapsulation.None,
498
- providers: [PanelStyle, { provide: PANEL_INSTANCE, useExisting: Panel }, { provide: PARENT_INSTANCE, useExisting: Panel }],
462
+ providers: [PanelStyle, { provide: PARENT_INSTANCE, useExisting: Panel }],
499
463
  host: {
500
- '[id]': 'id',
501
- '[class]': "cn(cx('root'), styleClass)",
502
- '[attr.data-p]': 'dataP'
464
+ '[id]': 'id()',
465
+ '[class]': "cx('root')",
466
+ '[attr.data-p]': 'dataP()'
503
467
  },
504
468
  hostDirectives: [Bind]
505
469
  }]
506
- }], propDecorators: { id: [{
507
- type: Input
508
- }], toggleable: [{
509
- type: Input,
510
- args: [{ transform: booleanAttribute }]
511
- }], _header: [{
512
- type: Input,
513
- args: ['header']
514
- }], collapsed: [{
515
- type: Input,
516
- args: [{ transform: booleanAttribute }]
517
- }], styleClass: [{
518
- type: Input
519
- }], iconPos: [{
520
- type: Input
521
- }], showHeader: [{
522
- type: Input,
523
- args: [{ transform: booleanAttribute }]
524
- }], toggler: [{
525
- type: Input
526
- }], transitionOptions: [{
527
- type: Input
528
- }], toggleButtonProps: [{
529
- type: Input
530
- }], motionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionOptions", required: false }] }], collapsedChange: [{ type: i0.Output, args: ["collapsedChange"] }], onBeforeToggle: [{ type: i0.Output, args: ["onBeforeToggle"] }], onAfterToggle: [{ type: i0.Output, args: ["onAfterToggle"] }], footerFacet: [{ type: i0.ContentChild, args: [i0.forwardRef(() => Footer), { isSignal: true }] }], headerTemplate: [{ type: i0.ContentChild, args: ['header', { ...{ descendants: false }, isSignal: true }] }], iconsTemplate: [{ type: i0.ContentChild, args: ['icons', { ...{ descendants: false }, isSignal: true }] }], contentTemplate: [{ type: i0.ContentChild, args: ['content', { ...{ descendants: false }, isSignal: true }] }], footerTemplate: [{ type: i0.ContentChild, args: ['footer', { ...{ descendants: false }, isSignal: true }] }], headerIconsTemplate: [{ type: i0.ContentChild, args: ['headericons', { ...{ descendants: false }, isSignal: true }] }], contentWrapperViewChild: [{ type: i0.ViewChild, args: ['contentWrapper', { isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }] } });
470
+ }], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], toggleable: [{ type: i0.Input, args: [{ isSignal: true, alias: "toggleable", required: false }] }], _header: [{ type: i0.Input, args: [{ isSignal: true, alias: "header", required: false }] }], collapsed: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapsed", required: false }] }, { type: i0.Output, args: ["collapsedChange"] }], iconPos: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconPos", required: false }] }], showHeader: [{ type: i0.Input, args: [{ isSignal: true, alias: "showHeader", required: false }] }], toggler: [{ type: i0.Input, args: [{ isSignal: true, alias: "toggler", required: false }] }], toggleButtonProps: [{ type: i0.Input, args: [{ isSignal: true, alias: "toggleButtonProps", required: false }] }], motionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionOptions", required: false }] }], onBeforeToggle: [{ type: i0.Output, args: ["onBeforeToggle"] }], onAfterToggle: [{ type: i0.Output, args: ["onAfterToggle"] }], footerFacet: [{ type: i0.ContentChild, args: [i0.forwardRef(() => Footer), { isSignal: true }] }], headerTemplate: [{ type: i0.ContentChild, args: ['header', { ...{ descendants: false }, isSignal: true }] }], iconsTemplate: [{ type: i0.ContentChild, args: ['icons', { ...{ descendants: false }, isSignal: true }] }], contentTemplate: [{ type: i0.ContentChild, args: ['content', { ...{ descendants: false }, isSignal: true }] }], footerTemplate: [{ type: i0.ContentChild, args: ['footer', { ...{ descendants: false }, isSignal: true }] }], headerIconsTemplate: [{ type: i0.ContentChild, args: ['headericons', { ...{ descendants: false }, isSignal: true }] }], contentWrapperViewChild: [{ type: i0.ViewChild, args: ['contentWrapper', { isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }] } });
531
471
  class PanelModule {
532
472
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: PanelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
533
473
  static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.2.1", ngImport: i0, type: PanelModule, imports: [Panel, SharedModule, BindModule], exports: [Panel, SharedModule, BindModule] });