@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/drawer';
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, contentChildren, booleanAttribute, numberAttribute, Input, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
5
+ import { Injectable, InjectionToken, inject, afterEveryRender, input, computed, booleanAttribute, numberAttribute, model, output, linkedSignal, signal, contentChild, contentChildren, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
6
6
  import { setAttribute, addClass, removeClass, appendChild } 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';
@@ -181,8 +181,9 @@ class Drawer extends BaseComponent {
181
181
  componentName = 'Drawer';
182
182
  $pcDrawer = inject(DRAWER_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
183
183
  bindDirectiveInstance = inject(Bind, { self: true });
184
- onAfterViewChecked() {
185
- this.bindDirectiveInstance.setAttrs(this.ptm('host'));
184
+ constructor() {
185
+ super();
186
+ afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptm('host')));
186
187
  }
187
188
  /**
188
189
  * Target element to attach the overlay, valid values are "body" or a local ng-template variable of another element (note: use binding with brackets for template variables, e.g. [appendTo]="mydiv" for a div element having #mydiv as variable name).
@@ -208,78 +209,64 @@ class Drawer extends BaseComponent {
208
209
  * Whether to block scrolling of the document when drawer is active.
209
210
  * @group Props
210
211
  */
211
- blockScroll = false;
212
+ blockScroll = input(false, { ...(ngDevMode ? { debugName: "blockScroll" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
212
213
  /**
213
214
  * Inline style of the component.
214
215
  * @group Props
215
216
  */
216
- style;
217
+ style = input(undefined, /* @ts-ignore */
218
+ ...(ngDevMode ? [{ debugName: "style" }] : /* istanbul ignore next */ []));
217
219
  /**
218
220
  * Style class of the component.
219
221
  * @group Props
220
222
  */
221
- styleClass;
223
+ styleClass = input(undefined, /* @ts-ignore */
224
+ ...(ngDevMode ? [{ debugName: "styleClass" }] : /* istanbul ignore next */ []));
222
225
  /**
223
226
  * Aria label of the close icon.
224
227
  * @group Props
225
228
  */
226
- ariaCloseLabel;
229
+ ariaCloseLabel = input(undefined, /* @ts-ignore */
230
+ ...(ngDevMode ? [{ debugName: "ariaCloseLabel" }] : /* istanbul ignore next */ []));
227
231
  /**
228
232
  * Whether to automatically manage layering.
229
233
  * @group Props
230
234
  */
231
- autoZIndex = true;
235
+ autoZIndex = input(true, { ...(ngDevMode ? { debugName: "autoZIndex" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
232
236
  /**
233
237
  * Base zIndex value to use in layering.
234
238
  * @group Props
235
239
  */
236
- baseZIndex = 0;
240
+ baseZIndex = input(0, { ...(ngDevMode ? { debugName: "baseZIndex" } : /* istanbul ignore next */ {}), transform: numberAttribute });
237
241
  /**
238
242
  * Whether an overlay mask is displayed behind the drawer.
239
243
  * @group Props
240
244
  */
241
- modal = true;
245
+ modal = input(true, { ...(ngDevMode ? { debugName: "modal" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
242
246
  /**
243
247
  * Used to pass all properties of the ButtonProps to the Button component.
244
248
  * @group Props
245
249
  */
246
- closeButtonProps = { severity: 'secondary', text: true, rounded: true };
250
+ closeButtonProps = input({ severity: 'secondary', text: true, rounded: true }, /* @ts-ignore */
251
+ ...(ngDevMode ? [{ debugName: "closeButtonProps" }] : /* istanbul ignore next */ []));
247
252
  /**
248
253
  * Whether to dismiss drawer on click of the mask.
249
254
  * @group Props
250
255
  */
251
- dismissible = true;
252
- /**
253
- * Whether to display the close icon.
254
- * @group Props
255
- * @deprecated use 'closable' instead.
256
- */
257
- showCloseIcon = true;
256
+ dismissible = input(true, { ...(ngDevMode ? { debugName: "dismissible" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
258
257
  /**
259
258
  * Specifies if pressing escape key should hide the drawer.
260
259
  * @group Props
261
260
  */
262
- closeOnEscape = true;
263
- /**
264
- * Transition options of the animation.
265
- * @group Props
266
- * @deprecated since v21.0.0. Use `motionOptions` instead.
267
- */
268
- transitionOptions = '150ms cubic-bezier(0, 0, 0.2, 1)';
261
+ closeOnEscape = input(true, { ...(ngDevMode ? { debugName: "closeOnEscape" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
269
262
  /**
270
263
  * The visible property is an input that determines the visibility of the component.
264
+ * Emits `visibleChange` with the new value when the visibility of the component changes.
271
265
  * @defaultValue false
272
266
  * @group Props
273
267
  */
274
- get visible() {
275
- return this._visible ?? false;
276
- }
277
- set visible(value) {
278
- this._visible = value;
279
- if (this._visible && !this.modalVisible) {
280
- this.modalVisible = true;
281
- }
282
- }
268
+ visible = model(false, /* @ts-ignore */
269
+ ...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
283
270
  /**
284
271
  * Specifies the position of the drawer, valid values are "left", "right", "bottom" and "top".
285
272
  * @defaultValue 'left'
@@ -302,18 +289,20 @@ class Drawer extends BaseComponent {
302
289
  * Title content of the dialog.
303
290
  * @group Props
304
291
  */
305
- header;
292
+ header = input(undefined, /* @ts-ignore */
293
+ ...(ngDevMode ? [{ debugName: "header" }] : /* istanbul ignore next */ []));
306
294
  /**
307
295
  * Style of the mask.
308
296
  * @group Props
309
297
  */
310
- maskStyle;
298
+ maskStyle = input(undefined, /* @ts-ignore */
299
+ ...(ngDevMode ? [{ debugName: "maskStyle" }] : /* istanbul ignore next */ []));
311
300
  /**
312
301
  * Whether to display close button.
313
302
  * @group Props
314
303
  * @defaultValue true
315
304
  */
316
- closable = true;
305
+ closable = input(true, { ...(ngDevMode ? { debugName: "closable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
317
306
  /**
318
307
  * Callback to invoke when dialog is shown.
319
308
  * @group Emits
@@ -324,26 +313,19 @@ class Drawer extends BaseComponent {
324
313
  * @group Emits
325
314
  */
326
315
  onHide = output();
327
- /**
328
- * Callback to invoke when dialog visibility is changed.
329
- * @param {boolean} value - Visible value.
330
- * @group Emits
331
- */
332
- visibleChange = output();
333
- initialized;
334
- _visible;
335
- _position = 'left';
336
- _fullScreen = false;
337
- modalVisible = false;
338
- container;
339
- mask;
340
- maskClickListener;
341
- documentEscapeListener;
342
- animationEndListener;
316
+ modalVisible = linkedSignal({ ...(ngDevMode ? { debugName: "modalVisible" } : /* istanbul ignore next */ {}), source: this.visible,
317
+ computation: (visible, previous) => visible || (previous?.value ?? false) });
318
+ container = signal(undefined, /* @ts-ignore */
319
+ ...(ngDevMode ? [{ debugName: "container" }] : /* istanbul ignore next */ []));
320
+ mask = signal(undefined, /* @ts-ignore */
321
+ ...(ngDevMode ? [{ debugName: "mask" }] : /* istanbul ignore next */ []));
322
+ maskClickListener = signal(undefined, /* @ts-ignore */
323
+ ...(ngDevMode ? [{ debugName: "maskClickListener" }] : /* istanbul ignore next */ []));
324
+ documentEscapeListener = signal(undefined, /* @ts-ignore */
325
+ ...(ngDevMode ? [{ debugName: "documentEscapeListener" }] : /* istanbul ignore next */ []));
326
+ animationEndListener = signal(undefined, /* @ts-ignore */
327
+ ...(ngDevMode ? [{ debugName: "animationEndListener" }] : /* istanbul ignore next */ []));
343
328
  _componentStyle = inject(DrawerStyle);
344
- onAfterViewInit() {
345
- this.initialized = true;
346
- }
347
329
  /**
348
330
  * Custom header template.
349
331
  * @group Templates
@@ -371,162 +353,160 @@ class Drawer extends BaseComponent {
371
353
  headlessTemplate = contentChild('headless', { ...(ngDevMode ? { debugName: "headlessTemplate" } : /* istanbul ignore next */ {}), descendants: false });
372
354
  $appendTo = computed(() => this.appendTo() || this.config.overlayAppendTo(), /* @ts-ignore */
373
355
  ...(ngDevMode ? [{ debugName: "$appendTo" }] : /* istanbul ignore next */ []));
374
- _headerTemplate;
375
- _footerTemplate;
376
- _contentTemplate;
377
- _closeIconTemplate;
378
- _headlessTemplate;
356
+ _headerTemplate = computed(() => this.templates()
357
+ .filter((item) => item.getType() === 'header')
358
+ .at(-1)?.template, /* @ts-ignore */
359
+ ...(ngDevMode ? [{ debugName: "_headerTemplate" }] : /* istanbul ignore next */ []));
360
+ _footerTemplate = computed(() => this.templates()
361
+ .filter((item) => item.getType() === 'footer')
362
+ .at(-1)?.template, /* @ts-ignore */
363
+ ...(ngDevMode ? [{ debugName: "_footerTemplate" }] : /* istanbul ignore next */ []));
364
+ _contentTemplate = computed(() => this.templates()
365
+ .filter((item) => !['header', 'footer', 'closeicon', 'headless'].includes(item.getType()))
366
+ .at(-1)?.template, /* @ts-ignore */
367
+ ...(ngDevMode ? [{ debugName: "_contentTemplate" }] : /* istanbul ignore next */ []));
368
+ _closeIconTemplate = computed(() => this.templates()
369
+ .filter((item) => item.getType() === 'closeicon')
370
+ .at(-1)?.template, /* @ts-ignore */
371
+ ...(ngDevMode ? [{ debugName: "_closeIconTemplate" }] : /* istanbul ignore next */ []));
372
+ _headlessTemplate = computed(() => this.templates()
373
+ .filter((item) => item.getType() === 'headless')
374
+ .at(-1)?.template, /* @ts-ignore */
375
+ ...(ngDevMode ? [{ debugName: "_headlessTemplate" }] : /* istanbul ignore next */ []));
379
376
  templates = contentChildren(PrimeTemplate, /* @ts-ignore */
380
377
  ...(ngDevMode ? [{ debugName: "templates" }] : /* istanbul ignore next */ []));
381
- onAfterContentInit() {
382
- this.templates()?.forEach((item) => {
383
- switch (item.getType()) {
384
- case 'content':
385
- this._contentTemplate = item.template;
386
- break;
387
- case 'header':
388
- this._headerTemplate = item.template;
389
- break;
390
- case 'footer':
391
- this._footerTemplate = item.template;
392
- break;
393
- case 'closeicon':
394
- this._closeIconTemplate = item.template;
395
- break;
396
- case 'headless':
397
- this._headlessTemplate = item.template;
398
- break;
399
- default:
400
- this._contentTemplate = item.template;
401
- break;
402
- }
403
- });
404
- }
405
378
  onKeyDown(event) {
406
379
  if (event.code === 'Escape') {
407
380
  this.hide(false);
408
381
  }
409
382
  }
410
383
  show() {
411
- this.container?.setAttribute(this.$attrSelector, '');
412
- if (this.autoZIndex) {
413
- ZIndexUtils.set('modal', this.container, this.baseZIndex || this.config.zIndex.modal);
384
+ const container = this.container();
385
+ container?.setAttribute(this.$attrSelector, '');
386
+ if (this.autoZIndex()) {
387
+ ZIndexUtils.set('modal', container, this.baseZIndex() || this.config.zIndex.modal);
414
388
  }
415
- if (this.modal) {
389
+ if (this.modal()) {
416
390
  this.enableModality();
417
391
  }
418
392
  this.onShow.emit({});
419
- this.visibleChange.emit(true);
420
393
  }
421
394
  hide(emit = true) {
422
395
  if (emit) {
423
396
  this.onHide.emit({});
424
397
  }
425
- if (this.modal) {
398
+ if (this.modal()) {
426
399
  this.disableModality();
427
400
  }
428
401
  }
429
402
  close(event) {
430
403
  this.hide();
431
- this.visibleChange.emit(false);
432
- this.cd.markForCheck();
404
+ this.visible.set(false);
433
405
  event.preventDefault();
434
406
  }
435
407
  enableModality() {
436
408
  const activeDrawers = this.document.querySelectorAll('[data-p-open="true"]');
437
409
  const activeDrawersLength = activeDrawers.length;
438
- const zIndex = activeDrawersLength == 1 ? String(parseInt(this.container.style.zIndex) - 1) : String(parseInt(activeDrawers[activeDrawersLength - 1].style.zIndex) - 1);
439
- if (!this.mask) {
440
- this.mask = this.renderer.createElement('div');
441
- if (this.mask) {
410
+ const zIndex = activeDrawersLength == 1 ? String(parseInt(this.container().style.zIndex) - 1) : String(parseInt(activeDrawers[activeDrawersLength - 1].style.zIndex) - 1);
411
+ if (!this.mask()) {
412
+ const mask = this.renderer.createElement('div');
413
+ this.mask.set(mask);
414
+ if (mask) {
442
415
  const style = `z-index: ${zIndex};${this.getMaskStyle()}`;
443
- setAttribute(this.mask, 'style', style);
444
- setAttribute(this.mask, 'data-p', this.dataP);
445
- addClass(this.mask, this.cx('mask'));
416
+ setAttribute(mask, 'style', style);
417
+ setAttribute(mask, 'data-p', this.dataP());
418
+ addClass(mask, this.cx('mask'));
446
419
  }
447
- if (this.dismissible) {
448
- this.maskClickListener = this.renderer.listen(this.mask, 'click', (event) => {
449
- if (this.dismissible) {
420
+ if (this.dismissible()) {
421
+ this.maskClickListener.set(this.renderer.listen(mask, 'click', (event) => {
422
+ if (this.dismissible()) {
450
423
  this.close(event);
451
424
  }
452
- });
425
+ }));
453
426
  }
454
- this.renderer.appendChild(this.document.body, this.mask);
455
- if (this.blockScroll) {
427
+ this.renderer.appendChild(this.document.body, mask);
428
+ if (this.blockScroll()) {
456
429
  blockBodyScroll();
457
430
  }
458
431
  }
459
432
  }
460
- getMaskStyle() {
461
- return this.maskStyle
462
- ? Object.entries(this.maskStyle)
433
+ getMaskStyle = computed(() => {
434
+ const maskStyle = this.maskStyle();
435
+ return maskStyle
436
+ ? Object.entries(maskStyle)
463
437
  .map(([key, value]) => `${key}: ${value}`)
464
438
  .join('; ')
465
439
  : '';
466
- }
440
+ }, /* @ts-ignore */
441
+ ...(ngDevMode ? [{ debugName: "getMaskStyle" }] : /* istanbul ignore next */ []));
467
442
  disableModality() {
468
- if (this.mask) {
469
- !this.$unstyled() && removeClass(this.mask, 'p-overlay-mask-enter-active');
470
- !this.$unstyled() && addClass(this.mask, 'p-overlay-mask-leave-active');
471
- this.animationEndListener = this.renderer.listen(this.mask, 'animationend', this.destroyModal.bind(this));
443
+ const mask = this.mask();
444
+ if (mask) {
445
+ !this.$unstyled() && removeClass(mask, 'p-overlay-mask-enter-active');
446
+ !this.$unstyled() && addClass(mask, 'p-overlay-mask-leave-active');
447
+ this.animationEndListener.set(this.renderer.listen(mask, 'animationend', this.destroyModal.bind(this)));
472
448
  }
473
449
  }
474
450
  destroyModal() {
475
451
  this.unbindMaskClickListener();
476
- if (this.mask) {
477
- this.renderer.removeChild(this.document.body, this.mask);
452
+ const mask = this.mask();
453
+ if (mask) {
454
+ this.renderer.removeChild(this.document.body, mask);
478
455
  }
479
- if (this.blockScroll) {
456
+ if (this.blockScroll()) {
480
457
  unblockBodyScroll();
481
458
  }
482
459
  this.unbindAnimationEndListener();
483
- this.mask = null;
460
+ this.mask.set(null);
484
461
  }
485
462
  onBeforeEnter(event) {
486
- this.container = event.element;
463
+ this.container.set(event.element);
487
464
  this.appendContainer();
488
465
  this.show();
489
- if (this.closeOnEscape) {
466
+ if (this.closeOnEscape()) {
490
467
  this.bindDocumentEscapeListener();
491
468
  }
492
469
  }
493
470
  onAfterLeave() {
494
471
  this.hide(false);
495
- ZIndexUtils.clear(this.container);
472
+ ZIndexUtils.clear(this.container());
496
473
  this.unbindGlobalListeners();
497
- this.modalVisible = false;
498
- this.container = null;
474
+ this.modalVisible.set(false);
475
+ this.container.set(null);
499
476
  }
500
477
  appendContainer() {
501
478
  if (this.$appendTo() && this.$appendTo() !== 'self') {
502
479
  if (this.$appendTo() === 'body') {
503
- appendChild(this.document.body, this.container);
480
+ appendChild(this.document.body, this.container());
504
481
  }
505
482
  else {
506
- appendChild(this.$appendTo(), this.container);
483
+ appendChild(this.$appendTo(), this.container());
507
484
  }
508
485
  }
509
486
  }
510
487
  bindDocumentEscapeListener() {
511
488
  const documentTarget = this.el ? this.el.nativeElement.ownerDocument : this.document;
512
- this.documentEscapeListener = this.renderer.listen(documentTarget, 'keydown', (event) => {
489
+ this.documentEscapeListener.set(this.renderer.listen(documentTarget, 'keydown', (event) => {
513
490
  if (event.which == 27) {
514
- if (parseInt(this.container?.style.zIndex) === ZIndexUtils.get(this.container)) {
491
+ const container = this.container();
492
+ if (parseInt(container?.style.zIndex) === ZIndexUtils.get(container)) {
515
493
  this.close(event);
516
494
  }
517
495
  }
518
- });
496
+ }));
519
497
  }
520
498
  unbindDocumentEscapeListener() {
521
- if (this.documentEscapeListener) {
522
- this.documentEscapeListener();
523
- this.documentEscapeListener = null;
499
+ const documentEscapeListener = this.documentEscapeListener();
500
+ if (documentEscapeListener) {
501
+ documentEscapeListener();
502
+ this.documentEscapeListener.set(null);
524
503
  }
525
504
  }
526
505
  unbindMaskClickListener() {
527
- if (this.maskClickListener) {
528
- this.maskClickListener();
529
- this.maskClickListener = null;
506
+ const maskClickListener = this.maskClickListener();
507
+ if (maskClickListener) {
508
+ maskClickListener();
509
+ this.maskClickListener.set(null);
530
510
  }
531
511
  }
532
512
  unbindGlobalListeners() {
@@ -534,79 +514,79 @@ class Drawer extends BaseComponent {
534
514
  this.unbindDocumentEscapeListener();
535
515
  }
536
516
  unbindAnimationEndListener() {
537
- if (this.animationEndListener && this.mask) {
538
- this.animationEndListener();
539
- this.animationEndListener = null;
517
+ const animationEndListener = this.animationEndListener();
518
+ if (animationEndListener && this.mask()) {
519
+ animationEndListener();
520
+ this.animationEndListener.set(null);
540
521
  }
541
522
  }
542
523
  onDestroy() {
543
- this.initialized = false;
544
- if (this.visible && this.modal) {
524
+ if (this.visible() && this.modal()) {
545
525
  this.destroyModal();
546
526
  }
547
- if (this.$appendTo() && this.container) {
548
- this.renderer.appendChild(this.el.nativeElement, this.container);
527
+ const container = this.container();
528
+ if (this.$appendTo() && container) {
529
+ this.renderer.appendChild(this.el.nativeElement, container);
549
530
  }
550
- if (this.container && this.autoZIndex) {
551
- ZIndexUtils.clear(this.container);
531
+ if (container && this.autoZIndex()) {
532
+ ZIndexUtils.clear(container);
552
533
  }
553
- this.container = null;
534
+ this.container.set(null);
554
535
  this.unbindGlobalListeners();
555
536
  this.unbindAnimationEndListener();
556
537
  }
557
- get dataP() {
558
- return this.cn({
559
- 'full-screen': this.position() === 'full',
560
- [this.position()]: this.position(),
561
- open: this.visible,
562
- modal: this.modal
563
- });
564
- }
565
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Drawer, deps: null, target: i0.ɵɵFactoryTarget.Component });
566
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: Drawer, isStandalone: true, selector: "p-drawer", inputs: { appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, motionOptions: { classPropertyName: "motionOptions", publicName: "motionOptions", isSignal: true, isRequired: false, transformFunction: null }, blockScroll: { classPropertyName: "blockScroll", publicName: "blockScroll", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, style: { classPropertyName: "style", publicName: "style", isSignal: false, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: false, isRequired: false, transformFunction: null }, ariaCloseLabel: { classPropertyName: "ariaCloseLabel", publicName: "ariaCloseLabel", isSignal: false, isRequired: false, transformFunction: null }, autoZIndex: { classPropertyName: "autoZIndex", publicName: "autoZIndex", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, baseZIndex: { classPropertyName: "baseZIndex", publicName: "baseZIndex", isSignal: false, isRequired: false, transformFunction: numberAttribute }, modal: { classPropertyName: "modal", publicName: "modal", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, closeButtonProps: { classPropertyName: "closeButtonProps", publicName: "closeButtonProps", isSignal: false, isRequired: false, transformFunction: null }, dismissible: { classPropertyName: "dismissible", publicName: "dismissible", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, showCloseIcon: { classPropertyName: "showCloseIcon", publicName: "showCloseIcon", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, transitionOptions: { classPropertyName: "transitionOptions", publicName: "transitionOptions", isSignal: false, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: false, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, fullScreen: { classPropertyName: "fullScreen", publicName: "fullScreen", isSignal: true, isRequired: false, transformFunction: null }, header: { classPropertyName: "header", publicName: "header", isSignal: false, isRequired: false, transformFunction: null }, maskStyle: { classPropertyName: "maskStyle", publicName: "maskStyle", isSignal: false, isRequired: false, transformFunction: null }, closable: { classPropertyName: "closable", publicName: "closable", isSignal: false, isRequired: false, transformFunction: booleanAttribute } }, outputs: { onShow: "onShow", onHide: "onHide", visibleChange: "visibleChange" }, providers: [DrawerStyle, { provide: DRAWER_INSTANCE, useExisting: Drawer }, { provide: PARENT_INSTANCE, useExisting: Drawer }], queries: [{ propertyName: "headerTemplate", first: true, predicate: ["header"], isSignal: true }, { propertyName: "footerTemplate", first: true, predicate: ["footer"], isSignal: true }, { propertyName: "contentTemplate", first: true, predicate: ["content"], isSignal: true }, { propertyName: "closeIconTemplate", first: true, predicate: ["closeicon"], isSignal: true }, { propertyName: "headlessTemplate", first: true, predicate: ["headless"], isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
567
- @if (modalVisible) {
538
+ dataP = computed(() => this.cn({
539
+ 'full-screen': this.position() === 'full',
540
+ [this.position()]: this.position(),
541
+ open: this.visible(),
542
+ modal: this.modal()
543
+ }), /* @ts-ignore */
544
+ ...(ngDevMode ? [{ debugName: "dataP" }] : /* istanbul ignore next */ []));
545
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Drawer, deps: [], target: i0.ɵɵFactoryTarget.Component });
546
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: Drawer, isStandalone: true, selector: "p-drawer", inputs: { appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, motionOptions: { classPropertyName: "motionOptions", publicName: "motionOptions", isSignal: true, isRequired: false, transformFunction: null }, blockScroll: { classPropertyName: "blockScroll", publicName: "blockScroll", 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 }, ariaCloseLabel: { classPropertyName: "ariaCloseLabel", publicName: "ariaCloseLabel", isSignal: true, isRequired: false, transformFunction: null }, autoZIndex: { classPropertyName: "autoZIndex", publicName: "autoZIndex", isSignal: true, isRequired: false, transformFunction: null }, baseZIndex: { classPropertyName: "baseZIndex", publicName: "baseZIndex", isSignal: true, isRequired: false, transformFunction: null }, modal: { classPropertyName: "modal", publicName: "modal", isSignal: true, isRequired: false, transformFunction: null }, closeButtonProps: { classPropertyName: "closeButtonProps", publicName: "closeButtonProps", isSignal: true, isRequired: false, transformFunction: null }, dismissible: { classPropertyName: "dismissible", publicName: "dismissible", isSignal: true, isRequired: false, transformFunction: null }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: true, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, fullScreen: { classPropertyName: "fullScreen", publicName: "fullScreen", isSignal: true, isRequired: false, transformFunction: null }, header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, maskStyle: { classPropertyName: "maskStyle", publicName: "maskStyle", isSignal: true, isRequired: false, transformFunction: null }, closable: { classPropertyName: "closable", publicName: "closable", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visible: "visibleChange", onShow: "onShow", onHide: "onHide" }, providers: [DrawerStyle, { provide: DRAWER_INSTANCE, useExisting: Drawer }, { provide: PARENT_INSTANCE, useExisting: Drawer }], queries: [{ propertyName: "headerTemplate", first: true, predicate: ["header"], isSignal: true }, { propertyName: "footerTemplate", first: true, predicate: ["footer"], isSignal: true }, { propertyName: "contentTemplate", first: true, predicate: ["content"], isSignal: true }, { propertyName: "closeIconTemplate", first: true, predicate: ["closeicon"], isSignal: true }, { propertyName: "headlessTemplate", first: true, predicate: ["headless"], isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
547
+ @if (modalVisible()) {
568
548
  <div
569
549
  #container
570
550
  [pBind]="ptm('root')"
571
- [pMotion]="visible"
551
+ [pMotion]="visible()"
572
552
  [pMotionAppear]="true"
573
553
  [pMotionEnterActiveClass]="$enterAnimation()"
574
554
  [pMotionLeaveActiveClass]="$leaveAnimation()"
575
555
  [pMotionOptions]="computedMotionOptions()"
576
556
  (pMotionOnBeforeEnter)="onBeforeEnter($event)"
577
557
  (pMotionOnAfterLeave)="onAfterLeave($event)"
578
- [class]="cn(cx('root'), styleClass)"
579
- [style]="style"
558
+ [class]="cn(cx('root'), styleClass())"
559
+ [style]="style()"
580
560
  role="complementary"
581
561
  (keydown)="onKeyDown($event)"
582
562
  pFocusTrap
583
- [attr.data-p]="dataP"
584
- [attr.data-p-open]="visible"
563
+ [attr.data-p]="dataP()"
564
+ [attr.data-p-open]="visible()"
585
565
  >
586
- @if (headlessTemplate() || _headlessTemplate) {
587
- <ng-container *ngTemplateOutlet="headlessTemplate() || _headlessTemplate"></ng-container>
566
+ @if (headlessTemplate() || _headlessTemplate()) {
567
+ <ng-container *ngTemplateOutlet="headlessTemplate() || _headlessTemplate()"></ng-container>
588
568
  } @else {
589
569
  <div [pBind]="ptm('header')" [ngClass]="cx('header')" [attr.data-pc-section]="'header'">
590
- <ng-container *ngTemplateOutlet="headerTemplate() || _headerTemplate"></ng-container>
591
- @if (header) {
592
- <div [pBind]="ptm('title')" [class]="cx('title')">{{ header }}</div>
570
+ <ng-container *ngTemplateOutlet="headerTemplate() || _headerTemplate()"></ng-container>
571
+ @if (header()) {
572
+ <div [pBind]="ptm('title')" [class]="cx('title')">{{ header() }}</div>
593
573
  }
594
- @if (showCloseIcon && closable) {
574
+ @if (closable()) {
595
575
  <p-button
596
576
  [pt]="ptm('pcCloseButton')"
597
577
  [ngClass]="cx('pcCloseButton')"
598
578
  (onClick)="close($event)"
599
579
  (keydown.enter)="close($event)"
600
- [buttonProps]="closeButtonProps"
601
- [ariaLabel]="ariaCloseLabel"
580
+ [buttonProps]="closeButtonProps()"
581
+ [ariaLabel]="ariaCloseLabel()"
602
582
  [attr.data-pc-group-section]="'iconcontainer'"
603
583
  [unstyled]="unstyled()"
604
584
  >
605
585
  <ng-template #icon>
606
- @if (!closeIconTemplate() && !_closeIconTemplate) {
586
+ @if (!closeIconTemplate() && !_closeIconTemplate()) {
607
587
  <svg data-p-icon="times" [attr.data-pc-section]="'closeicon'" />
608
588
  }
609
- <ng-template *ngTemplateOutlet="closeIconTemplate() || _closeIconTemplate"></ng-template>
589
+ <ng-template *ngTemplateOutlet="closeIconTemplate() || _closeIconTemplate()"></ng-template>
610
590
  </ng-template>
611
591
  </p-button>
612
592
  }
@@ -614,71 +594,70 @@ class Drawer extends BaseComponent {
614
594
 
615
595
  <div [pBind]="ptm('content')" [ngClass]="cx('content')" [attr.data-pc-section]="'content'">
616
596
  <ng-content></ng-content>
617
- <ng-container *ngTemplateOutlet="contentTemplate() || _contentTemplate"></ng-container>
597
+ <ng-container *ngTemplateOutlet="contentTemplate() || _contentTemplate()"></ng-container>
618
598
  </div>
619
599
 
620
- @if (footerTemplate() || _footerTemplate) {
600
+ @if (footerTemplate() || _footerTemplate()) {
621
601
  <div [pBind]="ptm('footer')" [ngClass]="cx('footer')" [attr.data-pc-section]="'footer'">
622
- <ng-container *ngTemplateOutlet="footerTemplate() || _footerTemplate"></ng-container>
602
+ <ng-container *ngTemplateOutlet="footerTemplate() || _footerTemplate()"></ng-container>
623
603
  </div>
624
604
  }
625
605
  }
626
606
  </div>
627
607
  }
628
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: 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: "component", type: TimesIcon, selector: "[data-p-icon=\"times\"]" }, { kind: "ngmodule", type: SharedModule }, { kind: "directive", type: Bind, selector: "[pBind]", inputs: ["pBind"] }, { kind: "ngmodule", type: FocusTrapModule }, { kind: "directive", type: i3.FocusTrap, selector: "[pFocusTrap]", inputs: ["pFocusTrapDisabled"] }, { 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 });
608
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: 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: "component", type: TimesIcon, selector: "[data-p-icon=\"times\"]" }, { kind: "ngmodule", type: SharedModule }, { kind: "directive", type: Bind, selector: "[pBind]", inputs: ["pBind"] }, { kind: "ngmodule", type: FocusTrapModule }, { kind: "directive", type: i3.FocusTrap, selector: "[pFocusTrap]", inputs: ["pFocusTrapDisabled"] }, { 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 });
629
609
  }
630
610
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Drawer, decorators: [{
631
611
  type: Component,
632
612
  args: [{
633
613
  selector: 'p-drawer',
634
- standalone: true,
635
614
  imports: [CommonModule, Button, TimesIcon, SharedModule, Bind, FocusTrapModule, MotionModule],
636
615
  providers: [DrawerStyle, { provide: DRAWER_INSTANCE, useExisting: Drawer }, { provide: PARENT_INSTANCE, useExisting: Drawer }],
637
616
  hostDirectives: [Bind],
638
617
  template: `
639
- @if (modalVisible) {
618
+ @if (modalVisible()) {
640
619
  <div
641
620
  #container
642
621
  [pBind]="ptm('root')"
643
- [pMotion]="visible"
622
+ [pMotion]="visible()"
644
623
  [pMotionAppear]="true"
645
624
  [pMotionEnterActiveClass]="$enterAnimation()"
646
625
  [pMotionLeaveActiveClass]="$leaveAnimation()"
647
626
  [pMotionOptions]="computedMotionOptions()"
648
627
  (pMotionOnBeforeEnter)="onBeforeEnter($event)"
649
628
  (pMotionOnAfterLeave)="onAfterLeave($event)"
650
- [class]="cn(cx('root'), styleClass)"
651
- [style]="style"
629
+ [class]="cn(cx('root'), styleClass())"
630
+ [style]="style()"
652
631
  role="complementary"
653
632
  (keydown)="onKeyDown($event)"
654
633
  pFocusTrap
655
- [attr.data-p]="dataP"
656
- [attr.data-p-open]="visible"
634
+ [attr.data-p]="dataP()"
635
+ [attr.data-p-open]="visible()"
657
636
  >
658
- @if (headlessTemplate() || _headlessTemplate) {
659
- <ng-container *ngTemplateOutlet="headlessTemplate() || _headlessTemplate"></ng-container>
637
+ @if (headlessTemplate() || _headlessTemplate()) {
638
+ <ng-container *ngTemplateOutlet="headlessTemplate() || _headlessTemplate()"></ng-container>
660
639
  } @else {
661
640
  <div [pBind]="ptm('header')" [ngClass]="cx('header')" [attr.data-pc-section]="'header'">
662
- <ng-container *ngTemplateOutlet="headerTemplate() || _headerTemplate"></ng-container>
663
- @if (header) {
664
- <div [pBind]="ptm('title')" [class]="cx('title')">{{ header }}</div>
641
+ <ng-container *ngTemplateOutlet="headerTemplate() || _headerTemplate()"></ng-container>
642
+ @if (header()) {
643
+ <div [pBind]="ptm('title')" [class]="cx('title')">{{ header() }}</div>
665
644
  }
666
- @if (showCloseIcon && closable) {
645
+ @if (closable()) {
667
646
  <p-button
668
647
  [pt]="ptm('pcCloseButton')"
669
648
  [ngClass]="cx('pcCloseButton')"
670
649
  (onClick)="close($event)"
671
650
  (keydown.enter)="close($event)"
672
- [buttonProps]="closeButtonProps"
673
- [ariaLabel]="ariaCloseLabel"
651
+ [buttonProps]="closeButtonProps()"
652
+ [ariaLabel]="ariaCloseLabel()"
674
653
  [attr.data-pc-group-section]="'iconcontainer'"
675
654
  [unstyled]="unstyled()"
676
655
  >
677
656
  <ng-template #icon>
678
- @if (!closeIconTemplate() && !_closeIconTemplate) {
657
+ @if (!closeIconTemplate() && !_closeIconTemplate()) {
679
658
  <svg data-p-icon="times" [attr.data-pc-section]="'closeicon'" />
680
659
  }
681
- <ng-template *ngTemplateOutlet="closeIconTemplate() || _closeIconTemplate"></ng-template>
660
+ <ng-template *ngTemplateOutlet="closeIconTemplate() || _closeIconTemplate()"></ng-template>
682
661
  </ng-template>
683
662
  </p-button>
684
663
  }
@@ -686,12 +665,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
686
665
 
687
666
  <div [pBind]="ptm('content')" [ngClass]="cx('content')" [attr.data-pc-section]="'content'">
688
667
  <ng-content></ng-content>
689
- <ng-container *ngTemplateOutlet="contentTemplate() || _contentTemplate"></ng-container>
668
+ <ng-container *ngTemplateOutlet="contentTemplate() || _contentTemplate()"></ng-container>
690
669
  </div>
691
670
 
692
- @if (footerTemplate() || _footerTemplate) {
671
+ @if (footerTemplate() || _footerTemplate()) {
693
672
  <div [pBind]="ptm('footer')" [ngClass]="cx('footer')" [attr.data-pc-section]="'footer'">
694
- <ng-container *ngTemplateOutlet="footerTemplate() || _footerTemplate"></ng-container>
673
+ <ng-container *ngTemplateOutlet="footerTemplate() || _footerTemplate()"></ng-container>
695
674
  </div>
696
675
  }
697
676
  }
@@ -701,47 +680,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
701
680
  changeDetection: ChangeDetectionStrategy.OnPush,
702
681
  encapsulation: ViewEncapsulation.None
703
682
  }]
704
- }], propDecorators: { appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], motionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionOptions", required: false }] }], blockScroll: [{
705
- type: Input,
706
- args: [{ transform: booleanAttribute }]
707
- }], style: [{
708
- type: Input
709
- }], styleClass: [{
710
- type: Input
711
- }], ariaCloseLabel: [{
712
- type: Input
713
- }], autoZIndex: [{
714
- type: Input,
715
- args: [{ transform: booleanAttribute }]
716
- }], baseZIndex: [{
717
- type: Input,
718
- args: [{ transform: numberAttribute }]
719
- }], modal: [{
720
- type: Input,
721
- args: [{ transform: booleanAttribute }]
722
- }], closeButtonProps: [{
723
- type: Input
724
- }], dismissible: [{
725
- type: Input,
726
- args: [{ transform: booleanAttribute }]
727
- }], showCloseIcon: [{
728
- type: Input,
729
- args: [{ transform: booleanAttribute }]
730
- }], closeOnEscape: [{
731
- type: Input,
732
- args: [{ transform: booleanAttribute }]
733
- }], transitionOptions: [{
734
- type: Input
735
- }], visible: [{
736
- type: Input
737
- }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], fullScreen: [{ type: i0.Input, args: [{ isSignal: true, alias: "fullScreen", required: false }] }], header: [{
738
- type: Input
739
- }], maskStyle: [{
740
- type: Input
741
- }], closable: [{
742
- type: Input,
743
- args: [{ transform: booleanAttribute }]
744
- }], onShow: [{ type: i0.Output, args: ["onShow"] }], onHide: [{ type: i0.Output, args: ["onHide"] }], visibleChange: [{ type: i0.Output, args: ["visibleChange"] }], headerTemplate: [{ type: i0.ContentChild, args: ['header', { ...{ descendants: false }, isSignal: true }] }], footerTemplate: [{ type: i0.ContentChild, args: ['footer', { ...{ descendants: false }, isSignal: true }] }], contentTemplate: [{ type: i0.ContentChild, args: ['content', { ...{ descendants: false }, isSignal: true }] }], closeIconTemplate: [{ type: i0.ContentChild, args: ['closeicon', { ...{ descendants: false }, isSignal: true }] }], headlessTemplate: [{ type: i0.ContentChild, args: ['headless', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }] } });
683
+ }], ctorParameters: () => [], propDecorators: { appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], motionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionOptions", required: false }] }], blockScroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "blockScroll", required: false }] }], style: [{ type: i0.Input, args: [{ isSignal: true, alias: "style", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], ariaCloseLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaCloseLabel", required: false }] }], autoZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoZIndex", required: false }] }], baseZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "baseZIndex", required: false }] }], modal: [{ type: i0.Input, args: [{ isSignal: true, alias: "modal", required: false }] }], closeButtonProps: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeButtonProps", required: false }] }], dismissible: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissible", required: false }] }], closeOnEscape: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnEscape", required: false }] }], visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }, { type: i0.Output, args: ["visibleChange"] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], fullScreen: [{ type: i0.Input, args: [{ isSignal: true, alias: "fullScreen", required: false }] }], header: [{ type: i0.Input, args: [{ isSignal: true, alias: "header", required: false }] }], maskStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "maskStyle", required: false }] }], closable: [{ type: i0.Input, args: [{ isSignal: true, alias: "closable", required: false }] }], onShow: [{ type: i0.Output, args: ["onShow"] }], onHide: [{ type: i0.Output, args: ["onHide"] }], headerTemplate: [{ type: i0.ContentChild, args: ['header', { ...{ descendants: false }, isSignal: true }] }], footerTemplate: [{ type: i0.ContentChild, args: ['footer', { ...{ descendants: false }, isSignal: true }] }], contentTemplate: [{ type: i0.ContentChild, args: ['content', { ...{ descendants: false }, isSignal: true }] }], closeIconTemplate: [{ type: i0.ContentChild, args: ['closeicon', { ...{ descendants: false }, isSignal: true }] }], headlessTemplate: [{ type: i0.ContentChild, args: ['headless', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }] } });
745
684
  class DrawerModule {
746
685
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: DrawerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
747
686
  static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.2.1", ngImport: i0, type: DrawerModule, imports: [Drawer, SharedModule], exports: [Drawer, SharedModule] });