@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/dialog';
2
2
  import * as i2 from '@angular/common';
3
3
  import { isPlatformBrowser, CommonModule } from '@angular/common';
4
4
  import * as i0 from '@angular/core';
5
- import { Injectable, InjectionToken, inject, input, computed, output, viewChild, contentChild, signal, NgZone, contentChildren, booleanAttribute, numberAttribute, Input, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
5
+ import { Injectable, InjectionToken, input, inject, afterEveryRender, booleanAttribute, numberAttribute, computed, model, output, viewChild, contentChild, linkedSignal, signal, NgZone, contentChildren, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
6
6
  import { uuid, setAttribute, addStyle, getOuterWidth, getOuterHeight, getViewport, appendChild, removeClass, hasClass } from '@exhaustive-ui/utils';
7
7
  import { TranslationKeys, OverlayService, PrimeTemplate, SharedModule } from '@exhaustive-ui/core/api';
8
8
  import { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';
@@ -27,17 +27,17 @@ const inlineStyles = {
27
27
  left: 0,
28
28
  top: 0,
29
29
  display: 'flex',
30
- justifyContent: instance.position === 'left' || instance.position === 'topleft' || instance.position === 'bottomleft'
30
+ justifyContent: instance.position() === 'left' || instance.position() === 'topleft' || instance.position() === 'bottomleft'
31
31
  ? 'flex-start'
32
- : instance.position === 'right' || instance.position === 'topright' || instance.position === 'bottomright'
32
+ : instance.position() === 'right' || instance.position() === 'topright' || instance.position() === 'bottomright'
33
33
  ? 'flex-end'
34
34
  : 'center',
35
- alignItems: instance.position === 'top' || instance.position === 'topleft' || instance.position === 'topright'
35
+ alignItems: instance.position() === 'top' || instance.position() === 'topleft' || instance.position() === 'topright'
36
36
  ? 'flex-start'
37
- : instance.position === 'bottom' || instance.position === 'bottomleft' || instance.position === 'bottomright'
37
+ : instance.position() === 'bottom' || instance.position() === 'bottomleft' || instance.position() === 'bottomright'
38
38
  ? 'flex-end'
39
39
  : 'center',
40
- pointerEvents: instance.modal ? 'auto' : 'none'
40
+ pointerEvents: instance.modal() ? 'auto' : 'none'
41
41
  }),
42
42
  root: {
43
43
  display: 'flex',
@@ -48,13 +48,13 @@ const inlineStyles = {
48
48
  const classes = {
49
49
  mask: ({ instance }) => {
50
50
  const positions = ['left', 'right', 'top', 'topleft', 'topright', 'bottom', 'bottomleft', 'bottomright'];
51
- const pos = positions.find((item) => item === instance.position);
52
- return ['p-dialog-mask', { 'p-overlay-mask': instance.modal }, pos ? `p-dialog-${pos}` : ''];
51
+ const pos = positions.find((item) => item === instance.position());
52
+ return ['p-dialog-mask', { 'p-overlay-mask': instance.modal() }, pos ? `p-dialog-${pos}` : ''];
53
53
  },
54
54
  root: ({ instance }) => [
55
55
  'p-dialog p-component',
56
56
  {
57
- 'p-dialog-maximized': instance.maximizable && instance.maximized
57
+ 'p-dialog-maximized': instance.maximizable() && instance.maximized()
58
58
  }
59
59
  ],
60
60
  header: 'p-dialog-header',
@@ -133,11 +133,13 @@ const DIALOG_INSTANCE = new InjectionToken('DIALOG_INSTANCE');
133
133
  */
134
134
  class Dialog extends BaseComponent {
135
135
  componentName = 'Dialog';
136
- hostName = '';
136
+ hostName = input('', /* @ts-ignore */
137
+ ...(ngDevMode ? [{ debugName: "hostName" }] : /* istanbul ignore next */ []));
137
138
  $pcDialog = inject(DIALOG_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
138
139
  bindDirectiveInstance = inject(Bind, { self: true });
139
- onAfterViewChecked() {
140
- this.bindDirectiveInstance.setAttrs(this.ptm('host'));
140
+ constructor() {
141
+ super();
142
+ afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptm('host')));
141
143
  }
142
144
  /**
143
145
  * Title text of the dialog.
@@ -149,123 +151,118 @@ class Dialog extends BaseComponent {
149
151
  * Enables dragging to change the position using header.
150
152
  * @group Props
151
153
  */
152
- draggable = true;
154
+ draggable = input(true, { ...(ngDevMode ? { debugName: "draggable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
153
155
  /**
154
156
  * Enables resizing of the content.
155
157
  * @group Props
156
158
  */
157
- resizable = true;
159
+ resizable = input(true, { ...(ngDevMode ? { debugName: "resizable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
158
160
  /**
159
161
  * Style of the content section.
160
162
  * @group Props
161
163
  */
162
- contentStyle;
164
+ contentStyle = input(/* @ts-ignore */
165
+ ...(ngDevMode ? [undefined, { debugName: "contentStyle" }] : /* istanbul ignore next */ []));
163
166
  /**
164
167
  * Style class of the content.
165
168
  * @group Props
166
169
  */
167
- contentStyleClass;
170
+ contentStyleClass = input(undefined, /* @ts-ignore */
171
+ ...(ngDevMode ? [{ debugName: "contentStyleClass" }] : /* istanbul ignore next */ []));
168
172
  /**
169
173
  * Defines if background should be blocked when dialog is displayed.
170
174
  * @group Props
171
175
  */
172
- modal = false;
176
+ modal = input(false, { ...(ngDevMode ? { debugName: "modal" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
173
177
  /**
174
178
  * Specifies if pressing escape key should hide the dialog.
175
179
  * @group Props
176
180
  */
177
- closeOnEscape = true;
181
+ closeOnEscape = input(true, { ...(ngDevMode ? { debugName: "closeOnEscape" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
178
182
  /**
179
183
  * Specifies if clicking the modal background should hide the dialog.
180
184
  * @group Props
181
185
  */
182
- dismissableMask = false;
183
- /**
184
- * When enabled dialog is displayed in RTL direction.
185
- * @group Props
186
- */
187
- rtl = false;
186
+ dismissableMask = input(false, { ...(ngDevMode ? { debugName: "dismissableMask" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
188
187
  /**
189
188
  * Adds a close icon to the header to hide the dialog.
190
189
  * @group Props
191
190
  */
192
- closable = true;
191
+ closable = input(true, { ...(ngDevMode ? { debugName: "closable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
193
192
  /**
194
193
  * Object literal to define widths per screen size.
195
194
  * @group Props
196
195
  */
197
- breakpoints;
196
+ breakpoints = input(/* @ts-ignore */
197
+ ...(ngDevMode ? [undefined, { debugName: "breakpoints" }] : /* istanbul ignore next */ []));
198
198
  /**
199
199
  * Style class of the component.
200
200
  * @group Props
201
201
  */
202
- styleClass;
202
+ styleClass = input(undefined, /* @ts-ignore */
203
+ ...(ngDevMode ? [{ debugName: "styleClass" }] : /* istanbul ignore next */ []));
203
204
  /**
204
205
  * Style class of the mask.
205
206
  * @group Props
206
207
  */
207
- maskStyleClass;
208
+ maskStyleClass = input(undefined, /* @ts-ignore */
209
+ ...(ngDevMode ? [{ debugName: "maskStyleClass" }] : /* istanbul ignore next */ []));
208
210
  /**
209
211
  * Style of the mask.
210
212
  * @group Props
211
213
  */
212
- maskStyle;
214
+ maskStyle = input(undefined, /* @ts-ignore */
215
+ ...(ngDevMode ? [{ debugName: "maskStyle" }] : /* istanbul ignore next */ []));
213
216
  /**
214
217
  * Whether to show the header or not.
215
218
  * @group Props
216
219
  */
217
- showHeader = true;
220
+ showHeader = input(true, { ...(ngDevMode ? { debugName: "showHeader" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
218
221
  /**
219
222
  * Whether background scroll should be blocked when dialog is visible.
220
223
  * @group Props
221
224
  */
222
- blockScroll = false;
225
+ blockScroll = input(false, { ...(ngDevMode ? { debugName: "blockScroll" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
223
226
  /**
224
227
  * Whether to automatically manage layering.
225
228
  * @group Props
226
229
  */
227
- autoZIndex = true;
230
+ autoZIndex = input(true, { ...(ngDevMode ? { debugName: "autoZIndex" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
228
231
  /**
229
232
  * Base zIndex value to use in layering.
230
233
  * @group Props
231
234
  */
232
- baseZIndex = 0;
235
+ baseZIndex = input(0, { ...(ngDevMode ? { debugName: "baseZIndex" } : /* istanbul ignore next */ {}), transform: numberAttribute });
233
236
  /**
234
237
  * Minimum value for the left coordinate of dialog in dragging.
235
238
  * @group Props
236
239
  */
237
- minX = 0;
240
+ minX = input(0, { ...(ngDevMode ? { debugName: "minX" } : /* istanbul ignore next */ {}), transform: numberAttribute });
238
241
  /**
239
242
  * Minimum value for the top coordinate of dialog in dragging.
240
243
  * @group Props
241
244
  */
242
- minY = 0;
245
+ minY = input(0, { ...(ngDevMode ? { debugName: "minY" } : /* istanbul ignore next */ {}), transform: numberAttribute });
243
246
  /**
244
247
  * When enabled, first focusable element receives focus on show.
245
248
  * @group Props
246
249
  */
247
- focusOnShow = true;
250
+ focusOnShow = input(true, { ...(ngDevMode ? { debugName: "focusOnShow" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
248
251
  /**
249
252
  * Whether the dialog can be displayed full screen.
250
253
  * @group Props
251
254
  */
252
- maximizable = false;
255
+ maximizable = input(false, { ...(ngDevMode ? { debugName: "maximizable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
253
256
  /**
254
257
  * Keeps dialog in the viewport.
255
258
  * @group Props
256
259
  */
257
- keepInViewport = true;
260
+ keepInViewport = input(true, { ...(ngDevMode ? { debugName: "keepInViewport" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
258
261
  /**
259
262
  * When enabled, can only focus on elements inside the dialog.
260
263
  * @group Props
261
264
  */
262
- focusTrap = true;
263
- /**
264
- * Transition options of the animation.
265
- * @deprecated since v21.0.0. Use `motionOptions` instead.
266
- * @group Props
267
- */
268
- transitionOptions = '150ms cubic-bezier(0, 0, 0.2, 1)';
265
+ focusTrap = input(true, { ...(ngDevMode ? { debugName: "focusTrap" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
269
266
  /**
270
267
  * The motion options for the mask.
271
268
  * @group Props
@@ -296,83 +293,78 @@ class Dialog extends BaseComponent {
296
293
  * Name of the close icon.
297
294
  * @group Props
298
295
  */
299
- closeIcon;
296
+ closeIcon = input(undefined, /* @ts-ignore */
297
+ ...(ngDevMode ? [{ debugName: "closeIcon" }] : /* istanbul ignore next */ []));
300
298
  /**
301
299
  * Defines a string that labels the close button for accessibility.
302
300
  * @group Props
303
301
  */
304
- closeAriaLabel;
302
+ closeAriaLabel = input(undefined, /* @ts-ignore */
303
+ ...(ngDevMode ? [{ debugName: "closeAriaLabel" }] : /* istanbul ignore next */ []));
305
304
  /**
306
305
  * Index of the close button in tabbing order.
307
306
  * @group Props
308
307
  */
309
- closeTabindex = '0';
308
+ closeTabindex = input('0', /* @ts-ignore */
309
+ ...(ngDevMode ? [{ debugName: "closeTabindex" }] : /* istanbul ignore next */ []));
310
310
  /**
311
311
  * Name of the minimize icon.
312
312
  * @group Props
313
313
  */
314
- minimizeIcon;
314
+ minimizeIcon = input(undefined, /* @ts-ignore */
315
+ ...(ngDevMode ? [{ debugName: "minimizeIcon" }] : /* istanbul ignore next */ []));
315
316
  /**
316
317
  * Name of the maximize icon.
317
318
  * @group Props
318
319
  */
319
- maximizeIcon;
320
+ maximizeIcon = input(undefined, /* @ts-ignore */
321
+ ...(ngDevMode ? [{ debugName: "maximizeIcon" }] : /* istanbul ignore next */ []));
320
322
  /**
321
323
  * Used to pass all properties of the ButtonProps to the Button component.
322
324
  * @group Props
323
325
  */
324
- closeButtonProps = {
326
+ closeButtonProps = input({
325
327
  severity: 'secondary',
326
328
  variant: 'text',
327
329
  rounded: true
328
- };
330
+ }, /* @ts-ignore */
331
+ ...(ngDevMode ? [{ debugName: "closeButtonProps" }] : /* istanbul ignore next */ []));
329
332
  /**
330
333
  * Used to pass all properties of the ButtonProps to the Button component.
331
334
  * @group Props
332
335
  */
333
- maximizeButtonProps = {
336
+ maximizeButtonProps = input({
334
337
  severity: 'secondary',
335
338
  variant: 'text',
336
339
  rounded: true
337
- };
340
+ }, /* @ts-ignore */
341
+ ...(ngDevMode ? [{ debugName: "maximizeButtonProps" }] : /* istanbul ignore next */ []));
338
342
  /**
339
343
  * Specifies the visibility of the dialog.
344
+ * Emits `visibleChange` with the new value to notify changes in the visibility state of the component.
345
+ * @defaultValue false
340
346
  * @group Props
341
347
  */
342
- get visible() {
343
- return this._visible;
344
- }
345
- set visible(value) {
346
- this._visible = value;
347
- if (this._visible && !this.maskVisible) {
348
- this.maskVisible = true;
349
- this.renderMask.set(true);
350
- this.renderDialog.set(true);
351
- }
352
- }
348
+ visible = model(false, /* @ts-ignore */
349
+ ...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
353
350
  /**
354
351
  * Inline style of the component.
355
352
  * @group Props
356
353
  */
357
- get style() {
358
- return this._style;
359
- }
360
- set style(value) {
361
- if (value) {
362
- this._style = { ...value };
363
- this.originalStyle = value;
364
- }
365
- }
354
+ style = input(/* @ts-ignore */
355
+ ...(ngDevMode ? [undefined, { debugName: "style" }] : /* istanbul ignore next */ []));
366
356
  /**
367
357
  * Position of the dialog.
368
358
  * @group Props
369
359
  */
370
- position;
360
+ position = input(/* @ts-ignore */
361
+ ...(ngDevMode ? [undefined, { debugName: "position" }] : /* istanbul ignore next */ []));
371
362
  /**
372
363
  * Role attribute of html element.
373
364
  * @group Emits
374
365
  */
375
- role = 'dialog';
366
+ role = input('dialog', /* @ts-ignore */
367
+ ...(ngDevMode ? [{ debugName: "role" }] : /* istanbul ignore next */ []));
376
368
  /**
377
369
  * Identifier of the element that labels the dialog. Defaults to the id of the generated header title.
378
370
  * @group Props
@@ -396,12 +388,6 @@ class Dialog extends BaseComponent {
396
388
  * @group Emits
397
389
  */
398
390
  onHide = output();
399
- /**
400
- * This EventEmitter is used to notify changes in the visibility state of a component.
401
- * @param {boolean} value - New value.
402
- * @group Emits
403
- */
404
- visibleChange = output();
405
391
  /**
406
392
  * Callback to invoke when dialog resizing is initiated.
407
393
  * @param {MouseEvent} event - Mouse event.
@@ -435,37 +421,43 @@ class Dialog extends BaseComponent {
435
421
  * Header template.
436
422
  * @group Templates
437
423
  */
438
- headerTemplate;
424
+ headerTemplate = input(undefined, { ...(ngDevMode ? { debugName: "headerTemplate" } : /* istanbul ignore next */ {}), alias: 'content' });
439
425
  /**
440
426
  * Content template.
441
427
  * @group Templates
442
428
  */
443
- contentTemplate;
429
+ contentTemplate = input(undefined, /* @ts-ignore */
430
+ ...(ngDevMode ? [{ debugName: "contentTemplate" }] : /* istanbul ignore next */ []));
444
431
  /**
445
432
  * Footer template.
446
433
  * @group Templates
447
434
  */
448
- footerTemplate;
435
+ footerTemplate = input(undefined, /* @ts-ignore */
436
+ ...(ngDevMode ? [{ debugName: "footerTemplate" }] : /* istanbul ignore next */ []));
449
437
  /**
450
438
  * Close icon template.
451
439
  * @group Templates
452
440
  */
453
- closeIconTemplate;
441
+ closeIconTemplate = input(undefined, /* @ts-ignore */
442
+ ...(ngDevMode ? [{ debugName: "closeIconTemplate" }] : /* istanbul ignore next */ []));
454
443
  /**
455
444
  * Maximize icon template.
456
445
  * @group Templates
457
446
  */
458
- maximizeIconTemplate;
447
+ maximizeIconTemplate = input(undefined, /* @ts-ignore */
448
+ ...(ngDevMode ? [{ debugName: "maximizeIconTemplate" }] : /* istanbul ignore next */ []));
459
449
  /**
460
450
  * Minimize icon template.
461
451
  * @group Templates
462
452
  */
463
- minimizeIconTemplate;
453
+ minimizeIconTemplate = input(undefined, /* @ts-ignore */
454
+ ...(ngDevMode ? [{ debugName: "minimizeIconTemplate" }] : /* istanbul ignore next */ []));
464
455
  /**
465
456
  * Headless template.
466
457
  * @group Templates
467
458
  */
468
- headlessTemplate;
459
+ headlessTemplate = input(undefined, /* @ts-ignore */
460
+ ...(ngDevMode ? [{ debugName: "headlessTemplate" }] : /* istanbul ignore next */ []));
469
461
  /**
470
462
  * Custom header template.
471
463
  * @group Templates
@@ -503,51 +495,80 @@ class Dialog extends BaseComponent {
503
495
  _headlessTemplate = contentChild('headless', { ...(ngDevMode ? { debugName: "_headlessTemplate" } : /* istanbul ignore next */ {}), descendants: false });
504
496
  $appendTo = computed(() => this.appendTo() || this.config.overlayAppendTo(), /* @ts-ignore */
505
497
  ...(ngDevMode ? [{ debugName: "$appendTo" }] : /* istanbul ignore next */ []));
506
- renderMask = signal(false, /* @ts-ignore */
507
- ...(ngDevMode ? [{ debugName: "renderMask" }] : /* istanbul ignore next */ []));
508
- renderDialog = signal(false, /* @ts-ignore */
509
- ...(ngDevMode ? [{ debugName: "renderDialog" }] : /* istanbul ignore next */ []));
510
- _visible = false;
511
- maskVisible;
498
+ renderMask = linkedSignal({ ...(ngDevMode ? { debugName: "renderMask" } : /* istanbul ignore next */ {}), source: this.visible,
499
+ computation: (visible, previous) => visible || (previous?.value ?? false) });
500
+ renderDialog = linkedSignal({ ...(ngDevMode ? { debugName: "renderDialog" } : /* istanbul ignore next */ {}), source: this.visible,
501
+ computation: (visible, previous) => visible || (previous?.value ?? false) });
502
+ maskVisible = linkedSignal({ ...(ngDevMode ? { debugName: "maskVisible" } : /* istanbul ignore next */ {}), source: this.visible,
503
+ computation: (visible, previous) => visible || previous?.value });
512
504
  container = signal(null, /* @ts-ignore */
513
505
  ...(ngDevMode ? [{ debugName: "container" }] : /* istanbul ignore next */ []));
514
- wrapper;
515
- dragging;
506
+ wrapper = signal(undefined, /* @ts-ignore */
507
+ ...(ngDevMode ? [{ debugName: "wrapper" }] : /* istanbul ignore next */ []));
508
+ dragging = signal(undefined, /* @ts-ignore */
509
+ ...(ngDevMode ? [{ debugName: "dragging" }] : /* istanbul ignore next */ []));
516
510
  headerId = computed(() => (this.header() !== null ? this.id + '_header' : null), /* @ts-ignore */
517
511
  ...(ngDevMode ? [{ debugName: "headerId" }] : /* istanbul ignore next */ []));
518
512
  computedAriaLabelledBy = computed(() => this.ariaLabelledBy() ?? this.headerId(), /* @ts-ignore */
519
513
  ...(ngDevMode ? [{ debugName: "computedAriaLabelledBy" }] : /* istanbul ignore next */ []));
520
- documentDragListener;
521
- documentDragEndListener;
522
- resizing;
523
- documentResizeListener;
524
- documentResizeEndListener;
525
- documentEscapeListener;
526
- maskClickListener;
527
- lastPageX;
528
- lastPageY;
529
- preventVisibleChangePropagation;
530
- maximized;
531
- preMaximizeContentHeight;
532
- preMaximizeContainerWidth;
533
- preMaximizeContainerHeight;
534
- preMaximizePageX;
535
- preMaximizePageY;
514
+ documentDragListener = signal(undefined, /* @ts-ignore */
515
+ ...(ngDevMode ? [{ debugName: "documentDragListener" }] : /* istanbul ignore next */ []));
516
+ documentDragEndListener = signal(undefined, /* @ts-ignore */
517
+ ...(ngDevMode ? [{ debugName: "documentDragEndListener" }] : /* istanbul ignore next */ []));
518
+ resizing = signal(undefined, /* @ts-ignore */
519
+ ...(ngDevMode ? [{ debugName: "resizing" }] : /* istanbul ignore next */ []));
520
+ documentResizeListener = signal(undefined, /* @ts-ignore */
521
+ ...(ngDevMode ? [{ debugName: "documentResizeListener" }] : /* istanbul ignore next */ []));
522
+ documentResizeEndListener = signal(undefined, /* @ts-ignore */
523
+ ...(ngDevMode ? [{ debugName: "documentResizeEndListener" }] : /* istanbul ignore next */ []));
524
+ documentEscapeListener = signal(undefined, /* @ts-ignore */
525
+ ...(ngDevMode ? [{ debugName: "documentEscapeListener" }] : /* istanbul ignore next */ []));
526
+ maskClickListener = signal(undefined, /* @ts-ignore */
527
+ ...(ngDevMode ? [{ debugName: "maskClickListener" }] : /* istanbul ignore next */ []));
528
+ lastPageX = signal(undefined, /* @ts-ignore */
529
+ ...(ngDevMode ? [{ debugName: "lastPageX" }] : /* istanbul ignore next */ []));
530
+ lastPageY = signal(undefined, /* @ts-ignore */
531
+ ...(ngDevMode ? [{ debugName: "lastPageY" }] : /* istanbul ignore next */ []));
532
+ maximized = signal(undefined, /* @ts-ignore */
533
+ ...(ngDevMode ? [{ debugName: "maximized" }] : /* istanbul ignore next */ []));
536
534
  id = uuid('pn_id_');
537
- _style = {};
538
- originalStyle;
539
- transformOptions = 'scale(0.7)';
540
- styleElement;
541
- window;
535
+ _style = linkedSignal({ ...(ngDevMode ? { debugName: "_style" } : /* istanbul ignore next */ {}), source: this.style,
536
+ computation: (style, previous) => (style ? { ...style } : (previous?.value ?? {})) });
537
+ originalStyle = linkedSignal({ ...(ngDevMode ? { debugName: "originalStyle" } : /* istanbul ignore next */ {}), source: this.style,
538
+ computation: (style, previous) => (style ? style : previous?.value) });
539
+ styleElement = signal(undefined, /* @ts-ignore */
540
+ ...(ngDevMode ? [{ debugName: "styleElement" }] : /* istanbul ignore next */ []));
542
541
  _componentStyle = inject(DialogStyle);
543
- headerT;
544
- contentT;
545
- footerT;
546
- closeIconT;
547
- maximizeIconT;
548
- minimizeIconT;
549
- headlessT;
550
- zIndexForLayering;
542
+ headerT = computed(() => this.templates()
543
+ .filter((item) => item.getType() === 'header')
544
+ .at(-1)?.template, /* @ts-ignore */
545
+ ...(ngDevMode ? [{ debugName: "headerT" }] : /* istanbul ignore next */ []));
546
+ contentT = computed(() => this.templates()
547
+ .filter((item) => !['header', 'footer', 'closeicon', 'maximizeicon', 'minimizeicon', 'headless'].includes(item.getType()))
548
+ .at(-1)?.template, /* @ts-ignore */
549
+ ...(ngDevMode ? [{ debugName: "contentT" }] : /* istanbul ignore next */ []));
550
+ footerT = computed(() => this.templates()
551
+ .filter((item) => item.getType() === 'footer')
552
+ .at(-1)?.template, /* @ts-ignore */
553
+ ...(ngDevMode ? [{ debugName: "footerT" }] : /* istanbul ignore next */ []));
554
+ closeIconT = computed(() => this.templates()
555
+ .filter((item) => item.getType() === 'closeicon')
556
+ .at(-1)?.template, /* @ts-ignore */
557
+ ...(ngDevMode ? [{ debugName: "closeIconT" }] : /* istanbul ignore next */ []));
558
+ maximizeIconT = computed(() => this.templates()
559
+ .filter((item) => item.getType() === 'maximizeicon')
560
+ .at(-1)?.template, /* @ts-ignore */
561
+ ...(ngDevMode ? [{ debugName: "maximizeIconT" }] : /* istanbul ignore next */ []));
562
+ minimizeIconT = computed(() => this.templates()
563
+ .filter((item) => item.getType() === 'minimizeicon')
564
+ .at(-1)?.template, /* @ts-ignore */
565
+ ...(ngDevMode ? [{ debugName: "minimizeIconT" }] : /* istanbul ignore next */ []));
566
+ headlessT = computed(() => this.templates()
567
+ .filter((item) => item.getType() === 'headless')
568
+ .at(-1)?.template, /* @ts-ignore */
569
+ ...(ngDevMode ? [{ debugName: "headlessT" }] : /* istanbul ignore next */ []));
570
+ zIndexForLayering = signal(undefined, /* @ts-ignore */
571
+ ...(ngDevMode ? [{ debugName: "zIndexForLayering" }] : /* istanbul ignore next */ []));
551
572
  get maximizeLabel() {
552
573
  return this.config.getTranslation(TranslationKeys.ARIA)['maximizeLabel'];
553
574
  }
@@ -556,78 +577,19 @@ class Dialog extends BaseComponent {
556
577
  }
557
578
  zone = inject(NgZone);
558
579
  overlayService = inject(OverlayService);
559
- get maskClass() {
560
- const positions = ['left', 'right', 'top', 'topleft', 'topright', 'bottom', 'bottomleft', 'bottomright'];
561
- const pos = positions.find((item) => item === this.position);
562
- return {
563
- 'p-dialog-mask': true,
564
- 'p-overlay-mask': this.modal || this.dismissableMask,
565
- [`p-dialog-${pos}`]: pos
566
- };
567
- }
568
580
  onInit() {
569
- if (this.breakpoints) {
581
+ if (this.breakpoints()) {
570
582
  this.createStyle();
571
583
  }
572
584
  }
573
585
  templates = contentChildren(PrimeTemplate, /* @ts-ignore */
574
586
  ...(ngDevMode ? [{ debugName: "templates" }] : /* istanbul ignore next */ []));
575
- onAfterContentInit() {
576
- this.templates()?.forEach((item) => {
577
- switch (item.getType()) {
578
- case 'header':
579
- this.headerT = item.template;
580
- break;
581
- case 'content':
582
- this.contentT = item.template;
583
- break;
584
- case 'footer':
585
- this.footerT = item.template;
586
- break;
587
- case 'closeicon':
588
- this.closeIconT = item.template;
589
- break;
590
- case 'maximizeicon':
591
- this.maximizeIconT = item.template;
592
- break;
593
- case 'minimizeicon':
594
- this.minimizeIconT = item.template;
595
- break;
596
- case 'headless':
597
- this.headlessT = item.template;
598
- break;
599
- default:
600
- this.contentT = item.template;
601
- break;
602
- }
603
- });
604
- }
605
- parseDurationToMilliseconds(durationString) {
606
- const transitionTimeRegex = /([\d\.]+)(ms|s)\b/g;
607
- let totalMilliseconds = 0;
608
- let match;
609
- while ((match = transitionTimeRegex.exec(durationString)) !== null) {
610
- const value = parseFloat(match[1]);
611
- const unit = match[2];
612
- if (unit === 'ms') {
613
- totalMilliseconds += value;
614
- }
615
- else if (unit === 's') {
616
- totalMilliseconds += value * 1000;
617
- }
618
- }
619
- if (totalMilliseconds === 0) {
620
- return undefined;
621
- }
622
- return totalMilliseconds;
623
- }
624
587
  _focus(focusParentElement) {
625
588
  if (focusParentElement) {
626
- const timeoutDuration = this.parseDurationToMilliseconds(this.transitionOptions);
627
589
  let _focusableElements = DomHandler.getFocusableElements(focusParentElement);
628
590
  if (_focusableElements && _focusableElements.length > 0) {
629
591
  this.zone.runOutsideAngular(() => {
630
- setTimeout(() => _focusableElements[0].focus(), timeoutDuration || 5);
592
+ setTimeout(() => _focusableElements[0].focus(), 5);
631
593
  });
632
594
  return true;
633
595
  }
@@ -647,83 +609,83 @@ class Dialog extends BaseComponent {
647
609
  }
648
610
  }
649
611
  close(event) {
650
- this.visible = false;
651
- this.visibleChange.emit(this.visible);
612
+ this.visible.set(false);
652
613
  event.preventDefault();
653
614
  }
654
615
  enableModality() {
655
- if (this.closable && this.dismissableMask) {
656
- this.maskClickListener = this.renderer.listen(this.wrapper, 'mousedown', (event) => {
657
- if (this.wrapper && this.wrapper.isSameNode(event.target)) {
616
+ if (this.closable() && this.dismissableMask()) {
617
+ this.maskClickListener.set(this.renderer.listen(this.wrapper(), 'mousedown', (event) => {
618
+ const wrapper = this.wrapper();
619
+ if (wrapper && wrapper.isSameNode(event.target)) {
658
620
  this.close(event);
659
621
  }
660
- });
622
+ }));
661
623
  }
662
- if (this.modal) {
624
+ if (this.modal()) {
663
625
  blockBodyScroll();
664
626
  }
665
627
  }
666
628
  disableModality() {
667
- if (this.wrapper) {
668
- if (this.dismissableMask) {
629
+ if (this.wrapper()) {
630
+ if (this.dismissableMask()) {
669
631
  this.unbindMaskClickListener();
670
632
  }
671
633
  // for nested dialogs w/modal
672
634
  const scrollBlockers = document.querySelectorAll('[data-p-scrollblocker-active="true"]');
673
- if (this.modal && scrollBlockers && scrollBlockers.length == 1) {
635
+ if (this.modal() && scrollBlockers && scrollBlockers.length == 1) {
674
636
  unblockBodyScroll();
675
637
  }
676
- if (!this.cd.destroyed) {
677
- this.cd.detectChanges();
678
- }
679
638
  }
680
639
  }
681
640
  maximize() {
682
- this.maximized = !this.maximized;
683
- if (!this.modal && !this.blockScroll) {
684
- if (this.maximized) {
641
+ this.maximized.update((maximized) => !maximized);
642
+ if (!this.modal() && !this.blockScroll()) {
643
+ if (this.maximized()) {
685
644
  blockBodyScroll();
686
645
  }
687
646
  else {
688
647
  unblockBodyScroll();
689
648
  }
690
649
  }
691
- this.onMaximize.emit({ maximized: this.maximized });
650
+ this.onMaximize.emit({ maximized: this.maximized() });
692
651
  }
693
652
  unbindMaskClickListener() {
694
- if (this.maskClickListener) {
695
- this.maskClickListener();
696
- this.maskClickListener = null;
653
+ const maskClickListener = this.maskClickListener();
654
+ if (maskClickListener) {
655
+ maskClickListener();
656
+ this.maskClickListener.set(null);
697
657
  }
698
658
  }
699
659
  moveOnTop() {
700
- if (this.autoZIndex) {
701
- ZIndexUtils.set('modal', this.container(), this.baseZIndex + this.config.zIndex.modal);
702
- this.wrapper.style.zIndex = String(parseInt(this.container().style.zIndex, 10) - 1);
660
+ if (this.autoZIndex()) {
661
+ ZIndexUtils.set('modal', this.container(), this.baseZIndex() + this.config.zIndex.modal);
662
+ this.wrapper().style.zIndex = String(parseInt(this.container().style.zIndex, 10) - 1);
703
663
  }
704
664
  else {
705
- this.zIndexForLayering = ZIndexUtils.generateZIndex('modal', (this.baseZIndex ?? 0) + this.config.zIndex.modal);
665
+ this.zIndexForLayering.set(ZIndexUtils.generateZIndex('modal', (this.baseZIndex() ?? 0) + this.config.zIndex.modal));
706
666
  }
707
667
  }
708
668
  createStyle() {
709
669
  if (isPlatformBrowser(this.platformId)) {
710
- if (!this.styleElement && !this.$unstyled()) {
711
- this.styleElement = this.renderer.createElement('style');
712
- this.styleElement.type = 'text/css';
713
- setAttribute(this.styleElement, 'nonce', this.config?.csp()?.nonce);
714
- this.renderer.appendChild(this.document.head, this.styleElement);
670
+ if (!this.styleElement() && !this.$unstyled()) {
671
+ const styleElement = this.renderer.createElement('style');
672
+ this.styleElement.set(styleElement);
673
+ styleElement.type = 'text/css';
674
+ setAttribute(styleElement, 'nonce', this.config?.csp()?.nonce);
675
+ this.renderer.appendChild(this.document.head, styleElement);
676
+ const breakpoints = this.breakpoints();
715
677
  let innerHTML = '';
716
- for (let breakpoint in this.breakpoints) {
678
+ for (let breakpoint in breakpoints) {
717
679
  innerHTML += `
718
680
  @media screen and (max-width: ${breakpoint}) {
719
681
  .p-dialog[${this.id}]:not(.p-dialog-maximized) {
720
- width: ${this.breakpoints[breakpoint]} !important;
682
+ width: ${breakpoints[breakpoint]} !important;
721
683
  }
722
684
  }
723
685
  `;
724
686
  }
725
- this.renderer.setProperty(this.styleElement, 'innerHTML', innerHTML);
726
- setAttribute(this.styleElement, 'nonce', this.config?.csp()?.nonce);
687
+ this.renderer.setProperty(styleElement, 'innerHTML', innerHTML);
688
+ setAttribute(styleElement, 'nonce', this.config?.csp()?.nonce);
727
689
  }
728
690
  }
729
691
  }
@@ -733,21 +695,21 @@ class Dialog extends BaseComponent {
733
695
  if (closestDiv?.getAttribute('data-pc-section') === 'headeractions') {
734
696
  return;
735
697
  }
736
- if (this.draggable) {
737
- this.dragging = true;
738
- this.lastPageX = event.pageX;
739
- this.lastPageY = event.pageY;
698
+ if (this.draggable()) {
699
+ this.dragging.set(true);
700
+ this.lastPageX.set(event.pageX);
701
+ this.lastPageY.set(event.pageY);
740
702
  this.container().style.margin = '0';
741
703
  this.document.body.setAttribute('data-p-unselectable-text', 'true');
742
704
  !this.$unstyled() && addStyle(this.document.body, { 'user-select': 'none' });
743
705
  }
744
706
  }
745
707
  onDrag(event) {
746
- if (this.dragging && this.container()) {
708
+ if (this.dragging() && this.container()) {
747
709
  const containerWidth = getOuterWidth(this.container());
748
710
  const containerHeight = getOuterHeight(this.container());
749
- const deltaX = event.pageX - this.lastPageX;
750
- const deltaY = event.pageY - this.lastPageY;
711
+ const deltaX = event.pageX - this.lastPageX();
712
+ const deltaY = event.pageY - this.lastPageY();
751
713
  const offset = this.container().getBoundingClientRect();
752
714
  const containerComputedStyle = getComputedStyle(this.container());
753
715
  const leftMargin = parseFloat(containerComputedStyle.marginLeft);
@@ -756,33 +718,32 @@ class Dialog extends BaseComponent {
756
718
  const topPos = offset.top + deltaY - topMargin;
757
719
  const viewport = getViewport();
758
720
  this.container().style.position = 'fixed';
759
- if (this.keepInViewport) {
760
- if (leftPos >= this.minX && leftPos + containerWidth < viewport.width) {
761
- this._style.left = `${leftPos}px`;
762
- this.lastPageX = event.pageX;
721
+ if (this.keepInViewport()) {
722
+ if (leftPos >= this.minX() && leftPos + containerWidth < viewport.width) {
723
+ this._style().left = `${leftPos}px`;
724
+ this.lastPageX.set(event.pageX);
763
725
  this.container().style.left = `${leftPos}px`;
764
726
  }
765
- if (topPos >= this.minY && topPos + containerHeight < viewport.height) {
766
- this._style.top = `${topPos}px`;
767
- this.lastPageY = event.pageY;
727
+ if (topPos >= this.minY() && topPos + containerHeight < viewport.height) {
728
+ this._style().top = `${topPos}px`;
729
+ this.lastPageY.set(event.pageY);
768
730
  this.container().style.top = `${topPos}px`;
769
731
  }
770
732
  }
771
733
  else {
772
- this.lastPageX = event.pageX;
734
+ this.lastPageX.set(event.pageX);
773
735
  this.container().style.left = `${leftPos}px`;
774
- this.lastPageY = event.pageY;
736
+ this.lastPageY.set(event.pageY);
775
737
  this.container().style.top = `${topPos}px`;
776
738
  }
777
739
  this.overlayService.emitParentDrag(this.container());
778
740
  }
779
741
  }
780
742
  endDrag(event) {
781
- if (this.dragging) {
782
- this.dragging = false;
743
+ if (this.dragging()) {
744
+ this.dragging.set(false);
783
745
  this.document.body.removeAttribute('data-p-unselectable-text');
784
746
  !this.$unstyled() && (this.document.body.style['user-select'] = '');
785
- this.cd.detectChanges();
786
747
  this.onDragEnd.emit(event);
787
748
  }
788
749
  }
@@ -797,19 +758,19 @@ class Dialog extends BaseComponent {
797
758
  this.resetPosition();
798
759
  }
799
760
  initResize(event) {
800
- if (this.resizable) {
801
- this.resizing = true;
802
- this.lastPageX = event.pageX;
803
- this.lastPageY = event.pageY;
761
+ if (this.resizable()) {
762
+ this.resizing.set(true);
763
+ this.lastPageX.set(event.pageX);
764
+ this.lastPageY.set(event.pageY);
804
765
  this.document.body.setAttribute('data-p-unselectable-text', 'true');
805
766
  !this.$unstyled() && addStyle(this.document.body, { 'user-select': 'none' });
806
767
  this.onResizeInit.emit(event);
807
768
  }
808
769
  }
809
770
  onResize(event) {
810
- if (this.resizing) {
811
- let deltaX = event.pageX - this.lastPageX;
812
- let deltaY = event.pageY - this.lastPageY;
771
+ if (this.resizing()) {
772
+ let deltaX = event.pageX - this.lastPageX();
773
+ let deltaY = event.pageY - this.lastPageY();
813
774
  let containerWidth = getOuterWidth(this.container());
814
775
  let containerHeight = getOuterHeight(this.container());
815
776
  const contentViewChild = this.contentViewChild();
@@ -821,42 +782,43 @@ class Dialog extends BaseComponent {
821
782
  let offset = this.container().getBoundingClientRect();
822
783
  let viewport = getViewport();
823
784
  let hasBeenDragged = !parseInt(this.container().style.top) || !parseInt(this.container().style.left);
785
+ const style = this._style();
824
786
  if (hasBeenDragged) {
825
787
  newWidth += deltaX;
826
788
  newHeight += deltaY;
827
789
  }
828
790
  if ((!minWidth || newWidth > parseInt(minWidth)) && offset.left + newWidth < viewport.width) {
829
- this._style.width = newWidth + 'px';
830
- this.container().style.width = this._style.width;
791
+ style.width = newWidth + 'px';
792
+ this.container().style.width = style.width;
831
793
  }
832
794
  if ((!minHeight || newHeight > parseInt(minHeight)) && offset.top + newHeight < viewport.height) {
833
795
  contentViewChild.nativeElement.style.height = contentHeight + newHeight - containerHeight + 'px';
834
- if (this._style.height) {
835
- this._style.height = newHeight + 'px';
836
- this.container().style.height = this._style.height;
796
+ if (style.height) {
797
+ style.height = newHeight + 'px';
798
+ this.container().style.height = style.height;
837
799
  }
838
800
  }
839
- this.lastPageX = event.pageX;
840
- this.lastPageY = event.pageY;
801
+ this.lastPageX.set(event.pageX);
802
+ this.lastPageY.set(event.pageY);
841
803
  }
842
804
  }
843
805
  resizeEnd(event) {
844
- if (this.resizing) {
845
- this.resizing = false;
806
+ if (this.resizing()) {
807
+ this.resizing.set(false);
846
808
  this.document.body.removeAttribute('data-p-unselectable-text');
847
809
  !this.$unstyled() && (this.document.body.style['user-select'] = '');
848
810
  this.onResizeEnd.emit(event);
849
811
  }
850
812
  }
851
813
  bindGlobalListeners() {
852
- if (this.draggable) {
814
+ if (this.draggable()) {
853
815
  this.bindDocumentDragListener();
854
816
  this.bindDocumentDragEndListener();
855
817
  }
856
- if (this.resizable) {
818
+ if (this.resizable()) {
857
819
  this.bindDocumentResizeListeners();
858
820
  }
859
- if (this.closeOnEscape && this.closable) {
821
+ if (this.closeOnEscape() && this.closable()) {
860
822
  this.bindDocumentEscapeListener();
861
823
  }
862
824
  }
@@ -867,112 +829,116 @@ class Dialog extends BaseComponent {
867
829
  this.unbindDocumentEscapeListener();
868
830
  }
869
831
  bindDocumentDragListener() {
870
- if (!this.documentDragListener) {
832
+ if (!this.documentDragListener()) {
871
833
  this.zone.runOutsideAngular(() => {
872
- this.documentDragListener = this.renderer.listen(this.document.defaultView, 'mousemove', this.onDrag.bind(this));
834
+ this.documentDragListener.set(this.renderer.listen(this.document.defaultView, 'mousemove', this.onDrag.bind(this)));
873
835
  });
874
836
  }
875
837
  }
876
838
  unbindDocumentDragListener() {
877
- if (this.documentDragListener) {
878
- this.documentDragListener();
879
- this.documentDragListener = null;
839
+ const documentDragListener = this.documentDragListener();
840
+ if (documentDragListener) {
841
+ documentDragListener();
842
+ this.documentDragListener.set(null);
880
843
  }
881
844
  }
882
845
  bindDocumentDragEndListener() {
883
- if (!this.documentDragEndListener) {
846
+ if (!this.documentDragEndListener()) {
884
847
  this.zone.runOutsideAngular(() => {
885
- this.documentDragEndListener = this.renderer.listen(this.document.defaultView, 'mouseup', this.endDrag.bind(this));
848
+ this.documentDragEndListener.set(this.renderer.listen(this.document.defaultView, 'mouseup', this.endDrag.bind(this)));
886
849
  });
887
850
  }
888
851
  }
889
852
  unbindDocumentDragEndListener() {
890
- if (this.documentDragEndListener) {
891
- this.documentDragEndListener();
892
- this.documentDragEndListener = null;
853
+ const documentDragEndListener = this.documentDragEndListener();
854
+ if (documentDragEndListener) {
855
+ documentDragEndListener();
856
+ this.documentDragEndListener.set(null);
893
857
  }
894
858
  }
895
859
  bindDocumentResizeListeners() {
896
- if (!this.documentResizeListener && !this.documentResizeEndListener) {
860
+ if (!this.documentResizeListener() && !this.documentResizeEndListener()) {
897
861
  this.zone.runOutsideAngular(() => {
898
- this.documentResizeListener = this.renderer.listen(this.document.defaultView, 'mousemove', this.onResize.bind(this));
899
- this.documentResizeEndListener = this.renderer.listen(this.document.defaultView, 'mouseup', this.resizeEnd.bind(this));
862
+ this.documentResizeListener.set(this.renderer.listen(this.document.defaultView, 'mousemove', this.onResize.bind(this)));
863
+ this.documentResizeEndListener.set(this.renderer.listen(this.document.defaultView, 'mouseup', this.resizeEnd.bind(this)));
900
864
  });
901
865
  }
902
866
  }
903
867
  unbindDocumentResizeListeners() {
904
- if (this.documentResizeListener && this.documentResizeEndListener) {
905
- this.documentResizeListener();
906
- this.documentResizeEndListener();
907
- this.documentResizeListener = null;
908
- this.documentResizeEndListener = null;
868
+ const documentResizeListener = this.documentResizeListener();
869
+ const documentResizeEndListener = this.documentResizeEndListener();
870
+ if (documentResizeListener && documentResizeEndListener) {
871
+ documentResizeListener();
872
+ documentResizeEndListener();
873
+ this.documentResizeListener.set(null);
874
+ this.documentResizeEndListener.set(null);
909
875
  }
910
876
  }
911
877
  bindDocumentEscapeListener() {
912
878
  const documentTarget = this.el ? this.el.nativeElement.ownerDocument : 'document';
913
- this.documentEscapeListener = this.renderer.listen(documentTarget, 'keydown', (event) => {
879
+ this.documentEscapeListener.set(this.renderer.listen(documentTarget, 'keydown', (event) => {
914
880
  if (event.key == 'Escape') {
915
881
  const container = this.container();
916
882
  if (!container) {
917
883
  return;
918
884
  }
919
885
  const currentZIndex = ZIndexUtils.getCurrent();
920
- if (parseInt(container.style.zIndex) == currentZIndex || this.zIndexForLayering == currentZIndex) {
886
+ if (parseInt(container.style.zIndex) == currentZIndex || this.zIndexForLayering() == currentZIndex) {
921
887
  this.close(event);
922
888
  }
923
889
  }
924
- });
890
+ }));
925
891
  }
926
892
  unbindDocumentEscapeListener() {
927
- if (this.documentEscapeListener) {
928
- this.documentEscapeListener();
929
- this.documentEscapeListener = null;
893
+ const documentEscapeListener = this.documentEscapeListener();
894
+ if (documentEscapeListener) {
895
+ documentEscapeListener();
896
+ this.documentEscapeListener.set(null);
930
897
  }
931
898
  }
932
899
  appendContainer() {
933
900
  if (this.$appendTo() !== 'self') {
934
- appendChild(this.document.body, this.wrapper);
901
+ appendChild(this.document.body, this.wrapper());
935
902
  }
936
903
  }
937
904
  restoreAppend() {
938
905
  if (this.container() && this.$appendTo() !== 'self') {
939
- this.renderer.appendChild(this.el.nativeElement, this.wrapper);
906
+ this.renderer.appendChild(this.el.nativeElement, this.wrapper());
940
907
  }
941
908
  }
942
909
  onBeforeEnter(event) {
943
910
  this.container.set(event.element);
944
- this.wrapper = this.container()?.parentElement;
911
+ this.wrapper.set(this.container()?.parentElement);
945
912
  this.$attrSelector && this.container()?.setAttribute(this.$attrSelector, '');
946
913
  this.appendContainer();
947
914
  this.moveOnTop();
948
915
  this.bindGlobalListeners();
949
916
  this.container()?.setAttribute(this.id, '');
950
- if (this.modal) {
917
+ if (this.modal()) {
951
918
  this.enableModality();
952
919
  }
953
920
  }
954
921
  onAfterEnter() {
955
- if (this.focusOnShow) {
922
+ if (this.focusOnShow()) {
956
923
  this.focus();
957
924
  }
958
925
  this.onShow.emit({});
959
926
  }
960
927
  onBeforeLeave() {
961
- if (this.modal) {
962
- this.maskVisible = false;
928
+ if (this.modal()) {
929
+ this.maskVisible.set(false);
963
930
  }
964
931
  }
965
932
  onAfterLeave() {
966
933
  this.onContainerDestroy();
967
934
  this.renderDialog.set(false);
968
- if (this.modal) {
935
+ if (this.modal()) {
969
936
  this.renderMask.set(false);
970
937
  }
971
938
  else {
972
- this.maskVisible = false;
939
+ this.maskVisible.set(false);
973
940
  }
974
941
  this.onHide.emit({});
975
- this.cd.markForCheck();
976
942
  }
977
943
  onMaskAfterLeave() {
978
944
  if (!this.renderDialog()) {
@@ -981,32 +947,35 @@ class Dialog extends BaseComponent {
981
947
  }
982
948
  onContainerDestroy() {
983
949
  this.unbindGlobalListeners();
984
- this.dragging = false;
985
- if (this.maximized) {
950
+ this.dragging.set(false);
951
+ if (this.maximized()) {
986
952
  removeClass(this.document.body, 'p-overflow-hidden');
987
953
  this.document.body.style.removeProperty('--scrollbar-width');
988
- this.maximized = false;
954
+ this.maximized.set(false);
989
955
  }
990
- if (this.modal) {
956
+ if (this.modal()) {
991
957
  this.disableModality();
992
958
  }
993
959
  if (hasClass(this.document.body, 'p-overflow-hidden')) {
994
960
  removeClass(this.document.body, 'p-overflow-hidden');
995
961
  }
996
- if (this.container() && this.autoZIndex) {
962
+ if (this.container() && this.autoZIndex()) {
997
963
  ZIndexUtils.clear(this.container());
998
964
  }
999
- if (this.zIndexForLayering) {
1000
- ZIndexUtils.revertZIndex(this.zIndexForLayering);
965
+ const zIndexForLayering = this.zIndexForLayering();
966
+ if (zIndexForLayering) {
967
+ ZIndexUtils.revertZIndex(zIndexForLayering);
1001
968
  }
1002
969
  this.container.set(null);
1003
- this.wrapper = null;
1004
- this._style = this.originalStyle ? { ...this.originalStyle } : {};
970
+ this.wrapper.set(null);
971
+ const originalStyle = this.originalStyle();
972
+ this._style.set(originalStyle ? { ...originalStyle } : {});
1005
973
  }
1006
974
  destroyStyle() {
1007
- if (this.styleElement) {
1008
- this.renderer.removeChild(this.document.head, this.styleElement);
1009
- this.styleElement = null;
975
+ const styleElement = this.styleElement();
976
+ if (styleElement) {
977
+ this.renderer.removeChild(this.document.head, styleElement);
978
+ this.styleElement.set(null);
1010
979
  }
1011
980
  }
1012
981
  onDestroy() {
@@ -1016,39 +985,38 @@ class Dialog extends BaseComponent {
1016
985
  }
1017
986
  this.destroyStyle();
1018
987
  }
1019
- get dataP() {
1020
- return this.cn({
1021
- maximized: this.maximized,
1022
- modal: this.modal
1023
- });
1024
- }
1025
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Dialog, deps: null, target: i0.ɵɵFactoryTarget.Component });
1026
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: Dialog, isStandalone: true, selector: "p-dialog", inputs: { hostName: { classPropertyName: "hostName", publicName: "hostName", isSignal: false, isRequired: false, transformFunction: null }, header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, draggable: { classPropertyName: "draggable", publicName: "draggable", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, resizable: { classPropertyName: "resizable", publicName: "resizable", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, contentStyle: { classPropertyName: "contentStyle", publicName: "contentStyle", isSignal: false, isRequired: false, transformFunction: null }, contentStyleClass: { classPropertyName: "contentStyleClass", publicName: "contentStyleClass", isSignal: false, isRequired: false, transformFunction: null }, modal: { classPropertyName: "modal", publicName: "modal", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, dismissableMask: { classPropertyName: "dismissableMask", publicName: "dismissableMask", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, rtl: { classPropertyName: "rtl", publicName: "rtl", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, closable: { classPropertyName: "closable", publicName: "closable", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, breakpoints: { classPropertyName: "breakpoints", publicName: "breakpoints", isSignal: false, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: false, isRequired: false, transformFunction: null }, maskStyleClass: { classPropertyName: "maskStyleClass", publicName: "maskStyleClass", isSignal: false, isRequired: false, transformFunction: null }, maskStyle: { classPropertyName: "maskStyle", publicName: "maskStyle", isSignal: false, isRequired: false, transformFunction: null }, showHeader: { classPropertyName: "showHeader", publicName: "showHeader", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, blockScroll: { classPropertyName: "blockScroll", publicName: "blockScroll", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, autoZIndex: { classPropertyName: "autoZIndex", publicName: "autoZIndex", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, baseZIndex: { classPropertyName: "baseZIndex", publicName: "baseZIndex", isSignal: false, isRequired: false, transformFunction: numberAttribute }, minX: { classPropertyName: "minX", publicName: "minX", isSignal: false, isRequired: false, transformFunction: numberAttribute }, minY: { classPropertyName: "minY", publicName: "minY", isSignal: false, isRequired: false, transformFunction: numberAttribute }, focusOnShow: { classPropertyName: "focusOnShow", publicName: "focusOnShow", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, maximizable: { classPropertyName: "maximizable", publicName: "maximizable", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, keepInViewport: { classPropertyName: "keepInViewport", publicName: "keepInViewport", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, focusTrap: { classPropertyName: "focusTrap", publicName: "focusTrap", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, transitionOptions: { classPropertyName: "transitionOptions", publicName: "transitionOptions", isSignal: false, isRequired: false, transformFunction: null }, maskMotionOptions: { classPropertyName: "maskMotionOptions", publicName: "maskMotionOptions", isSignal: true, isRequired: false, transformFunction: null }, motionOptions: { classPropertyName: "motionOptions", publicName: "motionOptions", isSignal: true, isRequired: false, transformFunction: null }, closeIcon: { classPropertyName: "closeIcon", publicName: "closeIcon", isSignal: false, isRequired: false, transformFunction: null }, closeAriaLabel: { classPropertyName: "closeAriaLabel", publicName: "closeAriaLabel", isSignal: false, isRequired: false, transformFunction: null }, closeTabindex: { classPropertyName: "closeTabindex", publicName: "closeTabindex", isSignal: false, isRequired: false, transformFunction: null }, minimizeIcon: { classPropertyName: "minimizeIcon", publicName: "minimizeIcon", isSignal: false, isRequired: false, transformFunction: null }, maximizeIcon: { classPropertyName: "maximizeIcon", publicName: "maximizeIcon", isSignal: false, isRequired: false, transformFunction: null }, closeButtonProps: { classPropertyName: "closeButtonProps", publicName: "closeButtonProps", isSignal: false, isRequired: false, transformFunction: null }, maximizeButtonProps: { classPropertyName: "maximizeButtonProps", publicName: "maximizeButtonProps", isSignal: false, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: false, isRequired: false, transformFunction: null }, style: { classPropertyName: "style", publicName: "style", isSignal: false, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: false, isRequired: false, transformFunction: null }, role: { classPropertyName: "role", publicName: "role", isSignal: false, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, headerTemplate: { classPropertyName: "headerTemplate", publicName: "content", isSignal: false, isRequired: false, transformFunction: null }, contentTemplate: { classPropertyName: "contentTemplate", publicName: "contentTemplate", isSignal: false, isRequired: false, transformFunction: null }, footerTemplate: { classPropertyName: "footerTemplate", publicName: "footerTemplate", isSignal: false, isRequired: false, transformFunction: null }, closeIconTemplate: { classPropertyName: "closeIconTemplate", publicName: "closeIconTemplate", isSignal: false, isRequired: false, transformFunction: null }, maximizeIconTemplate: { classPropertyName: "maximizeIconTemplate", publicName: "maximizeIconTemplate", isSignal: false, isRequired: false, transformFunction: null }, minimizeIconTemplate: { classPropertyName: "minimizeIconTemplate", publicName: "minimizeIconTemplate", isSignal: false, isRequired: false, transformFunction: null }, headlessTemplate: { classPropertyName: "headlessTemplate", publicName: "headlessTemplate", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { onShow: "onShow", onHide: "onHide", visibleChange: "visibleChange", onResizeInit: "onResizeInit", onResizeEnd: "onResizeEnd", onDragEnd: "onDragEnd", onMaximize: "onMaximize" }, providers: [DialogStyle, { provide: DIALOG_INSTANCE, useExisting: Dialog }, { provide: PARENT_INSTANCE, useExisting: Dialog }], queries: [{ propertyName: "_headerTemplate", first: true, predicate: ["header"], isSignal: true }, { propertyName: "_contentTemplate", first: true, predicate: ["content"], isSignal: true }, { propertyName: "_footerTemplate", first: true, predicate: ["footer"], isSignal: true }, { propertyName: "_closeiconTemplate", first: true, predicate: ["closeicon"], isSignal: true }, { propertyName: "_maximizeiconTemplate", first: true, predicate: ["maximizeicon"], isSignal: true }, { propertyName: "_minimizeiconTemplate", first: true, predicate: ["minimizeicon"], isSignal: true }, { propertyName: "_headlessTemplate", first: true, predicate: ["headless"], isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], viewQueries: [{ propertyName: "headerViewChild", first: true, predicate: ["titlebar"], descendants: true, isSignal: true }, { propertyName: "contentViewChild", first: true, predicate: ["content"], descendants: true, isSignal: true }, { propertyName: "footerViewChild", first: true, predicate: ["footer"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
988
+ dataP = computed(() => this.cn({
989
+ maximized: this.maximized(),
990
+ modal: this.modal()
991
+ }), /* @ts-ignore */
992
+ ...(ngDevMode ? [{ debugName: "dataP" }] : /* istanbul ignore next */ []));
993
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Dialog, deps: [], target: i0.ɵɵFactoryTarget.Component });
994
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: Dialog, isStandalone: true, selector: "p-dialog", inputs: { hostName: { classPropertyName: "hostName", publicName: "hostName", isSignal: true, isRequired: false, transformFunction: null }, header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, draggable: { classPropertyName: "draggable", publicName: "draggable", isSignal: true, isRequired: false, transformFunction: null }, resizable: { classPropertyName: "resizable", publicName: "resizable", isSignal: true, isRequired: false, transformFunction: null }, contentStyle: { classPropertyName: "contentStyle", publicName: "contentStyle", isSignal: true, isRequired: false, transformFunction: null }, contentStyleClass: { classPropertyName: "contentStyleClass", publicName: "contentStyleClass", isSignal: true, isRequired: false, transformFunction: null }, modal: { classPropertyName: "modal", publicName: "modal", isSignal: true, isRequired: false, transformFunction: null }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: true, isRequired: false, transformFunction: null }, dismissableMask: { classPropertyName: "dismissableMask", publicName: "dismissableMask", isSignal: true, isRequired: false, transformFunction: null }, closable: { classPropertyName: "closable", publicName: "closable", isSignal: true, isRequired: false, transformFunction: null }, breakpoints: { classPropertyName: "breakpoints", publicName: "breakpoints", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, maskStyleClass: { classPropertyName: "maskStyleClass", publicName: "maskStyleClass", isSignal: true, isRequired: false, transformFunction: null }, maskStyle: { classPropertyName: "maskStyle", publicName: "maskStyle", isSignal: true, isRequired: false, transformFunction: null }, showHeader: { classPropertyName: "showHeader", publicName: "showHeader", isSignal: true, isRequired: false, transformFunction: null }, blockScroll: { classPropertyName: "blockScroll", publicName: "blockScroll", 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 }, minX: { classPropertyName: "minX", publicName: "minX", isSignal: true, isRequired: false, transformFunction: null }, minY: { classPropertyName: "minY", publicName: "minY", isSignal: true, isRequired: false, transformFunction: null }, focusOnShow: { classPropertyName: "focusOnShow", publicName: "focusOnShow", isSignal: true, isRequired: false, transformFunction: null }, maximizable: { classPropertyName: "maximizable", publicName: "maximizable", isSignal: true, isRequired: false, transformFunction: null }, keepInViewport: { classPropertyName: "keepInViewport", publicName: "keepInViewport", isSignal: true, isRequired: false, transformFunction: null }, focusTrap: { classPropertyName: "focusTrap", publicName: "focusTrap", isSignal: true, isRequired: false, transformFunction: null }, maskMotionOptions: { classPropertyName: "maskMotionOptions", publicName: "maskMotionOptions", isSignal: true, isRequired: false, transformFunction: null }, motionOptions: { classPropertyName: "motionOptions", publicName: "motionOptions", isSignal: true, isRequired: false, transformFunction: null }, closeIcon: { classPropertyName: "closeIcon", publicName: "closeIcon", isSignal: true, isRequired: false, transformFunction: null }, closeAriaLabel: { classPropertyName: "closeAriaLabel", publicName: "closeAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, closeTabindex: { classPropertyName: "closeTabindex", publicName: "closeTabindex", isSignal: true, isRequired: false, transformFunction: null }, minimizeIcon: { classPropertyName: "minimizeIcon", publicName: "minimizeIcon", isSignal: true, isRequired: false, transformFunction: null }, maximizeIcon: { classPropertyName: "maximizeIcon", publicName: "maximizeIcon", isSignal: true, isRequired: false, transformFunction: null }, closeButtonProps: { classPropertyName: "closeButtonProps", publicName: "closeButtonProps", isSignal: true, isRequired: false, transformFunction: null }, maximizeButtonProps: { classPropertyName: "maximizeButtonProps", publicName: "maximizeButtonProps", isSignal: true, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, style: { classPropertyName: "style", publicName: "style", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, role: { classPropertyName: "role", publicName: "role", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, headerTemplate: { classPropertyName: "headerTemplate", publicName: "content", isSignal: true, isRequired: false, transformFunction: null }, contentTemplate: { classPropertyName: "contentTemplate", publicName: "contentTemplate", isSignal: true, isRequired: false, transformFunction: null }, footerTemplate: { classPropertyName: "footerTemplate", publicName: "footerTemplate", isSignal: true, isRequired: false, transformFunction: null }, closeIconTemplate: { classPropertyName: "closeIconTemplate", publicName: "closeIconTemplate", isSignal: true, isRequired: false, transformFunction: null }, maximizeIconTemplate: { classPropertyName: "maximizeIconTemplate", publicName: "maximizeIconTemplate", isSignal: true, isRequired: false, transformFunction: null }, minimizeIconTemplate: { classPropertyName: "minimizeIconTemplate", publicName: "minimizeIconTemplate", isSignal: true, isRequired: false, transformFunction: null }, headlessTemplate: { classPropertyName: "headlessTemplate", publicName: "headlessTemplate", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visible: "visibleChange", onShow: "onShow", onHide: "onHide", onResizeInit: "onResizeInit", onResizeEnd: "onResizeEnd", onDragEnd: "onDragEnd", onMaximize: "onMaximize" }, providers: [DialogStyle, { provide: DIALOG_INSTANCE, useExisting: Dialog }, { provide: PARENT_INSTANCE, useExisting: Dialog }], queries: [{ propertyName: "_headerTemplate", first: true, predicate: ["header"], isSignal: true }, { propertyName: "_contentTemplate", first: true, predicate: ["content"], isSignal: true }, { propertyName: "_footerTemplate", first: true, predicate: ["footer"], isSignal: true }, { propertyName: "_closeiconTemplate", first: true, predicate: ["closeicon"], isSignal: true }, { propertyName: "_maximizeiconTemplate", first: true, predicate: ["maximizeicon"], isSignal: true }, { propertyName: "_minimizeiconTemplate", first: true, predicate: ["minimizeicon"], isSignal: true }, { propertyName: "_headlessTemplate", first: true, predicate: ["headless"], isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], viewQueries: [{ propertyName: "headerViewChild", first: true, predicate: ["titlebar"], descendants: true, isSignal: true }, { propertyName: "contentViewChild", first: true, predicate: ["content"], descendants: true, isSignal: true }, { propertyName: "footerViewChild", first: true, predicate: ["footer"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
1027
995
  @if (renderMask()) {
1028
996
  <div
1029
- [class]="cn(cx('mask'), maskStyleClass)"
997
+ [class]="cn(cx('mask'), maskStyleClass())"
1030
998
  [style]="sx('mask')"
1031
- [ngStyle]="maskStyle"
999
+ [ngStyle]="maskStyle()"
1032
1000
  [pBind]="ptm('mask')"
1033
- [pMotion]="maskVisible"
1001
+ [pMotion]="maskVisible()"
1034
1002
  [pMotionAppear]="true"
1035
- [pMotionEnterActiveClass]="modal ? 'p-overlay-mask-enter-active' : ''"
1036
- [pMotionLeaveActiveClass]="modal ? 'p-overlay-mask-leave-active' : ''"
1003
+ [pMotionEnterActiveClass]="modal() ? 'p-overlay-mask-enter-active' : ''"
1004
+ [pMotionLeaveActiveClass]="modal() ? 'p-overlay-mask-leave-active' : ''"
1037
1005
  [pMotionOptions]="computedMaskMotionOptions()"
1038
1006
  (pMotionOnAfterLeave)="onMaskAfterLeave()"
1039
- [attr.data-p-scrollblocker-active]="modal || blockScroll"
1040
- [attr.data-p]="dataP"
1007
+ [attr.data-p-scrollblocker-active]="modal() || blockScroll()"
1008
+ [attr.data-p]="dataP()"
1041
1009
  >
1042
1010
  @if (renderDialog()) {
1043
1011
  <div
1044
1012
  #container
1045
- [class]="cn(cx('root'), styleClass)"
1013
+ [class]="cn(cx('root'), styleClass())"
1046
1014
  [style]="sx('root')"
1047
- [ngStyle]="style"
1015
+ [ngStyle]="_style()"
1048
1016
  [pBind]="ptm('root')"
1049
1017
  pFocusTrap
1050
- [pFocusTrapDisabled]="focusTrap === false"
1051
- [pMotion]="visible"
1018
+ [pFocusTrapDisabled]="focusTrap() === false"
1019
+ [pMotion]="visible()"
1052
1020
  [pMotionAppear]="true"
1053
1021
  [pMotionName]="'p-dialog'"
1054
1022
  [pMotionOptions]="computedMotionOptions()"
@@ -1056,118 +1024,117 @@ class Dialog extends BaseComponent {
1056
1024
  (pMotionOnAfterEnter)="onAfterEnter($event)"
1057
1025
  (pMotionOnBeforeLeave)="onBeforeLeave($event)"
1058
1026
  (pMotionOnAfterLeave)="onAfterLeave($event)"
1059
- [attr.role]="role"
1027
+ [attr.role]="role()"
1060
1028
  [attr.aria-labelledby]="computedAriaLabelledBy()"
1061
1029
  [attr.aria-modal]="true"
1062
- [attr.data-p]="dataP"
1030
+ [attr.data-p]="dataP()"
1063
1031
  >
1064
- <ng-container *ngIf="_headlessTemplate() || headlessTemplate || headlessT; else notHeadless">
1065
- <ng-container *ngTemplateOutlet="_headlessTemplate() || headlessTemplate || headlessT"></ng-container>
1032
+ <ng-container *ngIf="_headlessTemplate() || headlessTemplate() || headlessT(); else notHeadless">
1033
+ <ng-container *ngTemplateOutlet="_headlessTemplate() || headlessTemplate() || headlessT()"></ng-container>
1066
1034
  </ng-container>
1067
1035
 
1068
1036
  <ng-template #notHeadless>
1069
- <div *ngIf="resizable" [class]="cx('resizeHandle')" [pBind]="ptm('resizeHandle')" [style.z-index]="90" (mousedown)="initResize($event)"></div>
1070
- <div #titlebar [class]="cx('header')" [pBind]="ptm('header')" (mousedown)="initDrag($event)" *ngIf="showHeader">
1071
- <span [id]="headerId()" [class]="cx('title')" [pBind]="ptm('title')" *ngIf="!_headerTemplate() && !headerTemplate && !headerT">{{ header() }}</span>
1072
- <ng-container *ngTemplateOutlet="_headerTemplate() || headerTemplate || headerT; context: { ariaLabelledBy: computedAriaLabelledBy() }"></ng-container>
1037
+ <div *ngIf="resizable()" [class]="cx('resizeHandle')" [pBind]="ptm('resizeHandle')" [style.z-index]="90" (mousedown)="initResize($event)"></div>
1038
+ <div #titlebar [class]="cx('header')" [pBind]="ptm('header')" (mousedown)="initDrag($event)" *ngIf="showHeader()">
1039
+ <span [id]="headerId()" [class]="cx('title')" [pBind]="ptm('title')" *ngIf="!_headerTemplate() && !headerTemplate() && !headerT()">{{ header() }}</span>
1040
+ <ng-container *ngTemplateOutlet="_headerTemplate() || headerTemplate() || headerT(); context: { ariaLabelledBy: computedAriaLabelledBy() }"></ng-container>
1073
1041
  <div [class]="cx('headerActions')" [pBind]="ptm('headerActions')">
1074
1042
  <p-button
1075
1043
  [pt]="ptm('pcMaximizeButton')"
1076
- *ngIf="maximizable"
1044
+ *ngIf="maximizable()"
1077
1045
  [styleClass]="cx('pcMaximizeButton')"
1078
- [ariaLabel]="maximized ? minimizeLabel : maximizeLabel"
1046
+ [ariaLabel]="maximized() ? minimizeLabel : maximizeLabel"
1079
1047
  (onClick)="maximize()"
1080
1048
  (keydown.enter)="maximize()"
1081
- [tabindex]="maximizable ? '0' : '-1'"
1082
- [buttonProps]="maximizeButtonProps"
1049
+ [tabindex]="maximizable() ? '0' : '-1'"
1050
+ [buttonProps]="maximizeButtonProps()"
1083
1051
  [unstyled]="unstyled()"
1084
1052
  [attr.data-pc-group-section]="'headericon'"
1085
1053
  >
1086
1054
  <ng-template #icon>
1087
- <span *ngIf="maximizeIcon && !_maximizeiconTemplate() && !_minimizeiconTemplate()" [ngClass]="maximized ? minimizeIcon : maximizeIcon"></span>
1088
- <ng-container *ngIf="!maximizeIcon && !maximizeButtonProps?.icon">
1089
- <svg data-p-icon="window-maximize" *ngIf="!maximized && !_maximizeiconTemplate() && !maximizeIconTemplate && !maximizeIconT" />
1090
- <svg data-p-icon="window-minimize" *ngIf="maximized && !_minimizeiconTemplate() && !minimizeIconTemplate && !minimizeIconT" />
1055
+ <span *ngIf="maximizeIcon() && !_maximizeiconTemplate() && !_minimizeiconTemplate()" [ngClass]="maximized() ? minimizeIcon() : maximizeIcon()"></span>
1056
+ <ng-container *ngIf="!maximizeIcon() && !maximizeButtonProps()?.icon">
1057
+ <svg data-p-icon="window-maximize" *ngIf="!maximized() && !_maximizeiconTemplate() && !maximizeIconTemplate() && !maximizeIconT()" />
1058
+ <svg data-p-icon="window-minimize" *ngIf="maximized() && !_minimizeiconTemplate() && !minimizeIconTemplate() && !minimizeIconT()" />
1091
1059
  </ng-container>
1092
- <ng-container *ngIf="!maximized">
1093
- <ng-template *ngTemplateOutlet="_maximizeiconTemplate() || maximizeIconTemplate || maximizeIconT"></ng-template>
1060
+ <ng-container *ngIf="!maximized()">
1061
+ <ng-template *ngTemplateOutlet="_maximizeiconTemplate() || maximizeIconTemplate() || maximizeIconT()"></ng-template>
1094
1062
  </ng-container>
1095
- <ng-container *ngIf="maximized">
1096
- <ng-template *ngTemplateOutlet="_minimizeiconTemplate() || minimizeIconTemplate || minimizeIconT"></ng-template>
1063
+ <ng-container *ngIf="maximized()">
1064
+ <ng-template *ngTemplateOutlet="_minimizeiconTemplate() || minimizeIconTemplate() || minimizeIconT()"></ng-template>
1097
1065
  </ng-container>
1098
1066
  </ng-template>
1099
1067
  </p-button>
1100
1068
  <p-button
1101
1069
  [pt]="ptm('pcCloseButton')"
1102
- *ngIf="closable"
1070
+ *ngIf="closable()"
1103
1071
  [styleClass]="cx('pcCloseButton')"
1104
- [ariaLabel]="closeAriaLabel"
1072
+ [ariaLabel]="closeAriaLabel()"
1105
1073
  (onClick)="close($event)"
1106
1074
  (keydown.enter)="close($event)"
1107
- [tabindex]="closeTabindex"
1108
- [buttonProps]="closeButtonProps"
1075
+ [tabindex]="closeTabindex()"
1076
+ [buttonProps]="closeButtonProps()"
1109
1077
  [unstyled]="unstyled()"
1110
1078
  [attr.data-pc-group-section]="'headericon'"
1111
1079
  >
1112
1080
  <ng-template #icon>
1113
- <ng-container *ngIf="!_closeiconTemplate() && !closeIconTemplate && !closeIconT && !closeButtonProps?.icon">
1114
- <span *ngIf="closeIcon" [class]="closeIcon"></span>
1115
- <svg data-p-icon="times" *ngIf="!closeIcon" />
1081
+ <ng-container *ngIf="!_closeiconTemplate() && !closeIconTemplate() && !closeIconT() && !closeButtonProps()?.icon">
1082
+ <span *ngIf="closeIcon()" [class]="closeIcon()"></span>
1083
+ <svg data-p-icon="times" *ngIf="!closeIcon()" />
1116
1084
  </ng-container>
1117
- <span *ngIf="_closeiconTemplate() || closeIconTemplate || closeIconT">
1118
- <ng-template *ngTemplateOutlet="_closeiconTemplate() || closeIconTemplate || closeIconT"></ng-template>
1085
+ <span *ngIf="_closeiconTemplate() || closeIconTemplate() || closeIconT()">
1086
+ <ng-template *ngTemplateOutlet="_closeiconTemplate() || closeIconTemplate() || closeIconT()"></ng-template>
1119
1087
  </span>
1120
1088
  </ng-template>
1121
1089
  </p-button>
1122
1090
  </div>
1123
1091
  </div>
1124
- <div #content [class]="cn(cx('content'), contentStyleClass)" [ngStyle]="contentStyle" [pBind]="ptm('content')">
1092
+ <div #content [class]="cn(cx('content'), contentStyleClass())" [ngStyle]="contentStyle()" [pBind]="ptm('content')">
1125
1093
  <ng-content></ng-content>
1126
- <ng-container *ngTemplateOutlet="_contentTemplate() || contentTemplate || contentT"></ng-container>
1094
+ <ng-container *ngTemplateOutlet="_contentTemplate() || contentTemplate() || contentT()"></ng-container>
1127
1095
  </div>
1128
- <div #footer [class]="cx('footer')" [pBind]="ptm('footer')" *ngIf="_footerTemplate() || footerTemplate || footerT">
1096
+ <div #footer [class]="cx('footer')" [pBind]="ptm('footer')" *ngIf="_footerTemplate() || footerTemplate() || footerT()">
1129
1097
  <ng-content select="p-footer"></ng-content>
1130
- <ng-container *ngTemplateOutlet="_footerTemplate() || footerTemplate || footerT"></ng-container>
1098
+ <ng-container *ngTemplateOutlet="_footerTemplate() || footerTemplate() || footerT()"></ng-container>
1131
1099
  </div>
1132
1100
  </ng-template>
1133
1101
  </div>
1134
1102
  }
1135
1103
  </div>
1136
1104
  }
1137
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "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: "directive", type: FocusTrap, selector: "[pFocusTrap]", inputs: ["pFocusTrapDisabled"] }, { kind: "component", type: TimesIcon, selector: "[data-p-icon=\"times\"]" }, { kind: "component", type: WindowMaximizeIcon, selector: "[data-p-icon=\"window-maximize\"]" }, { kind: "component", type: WindowMinimizeIcon, selector: "[data-p-icon=\"window-minimize\"]" }, { kind: "ngmodule", type: SharedModule }, { kind: "directive", type: Bind, selector: "[pBind]", inputs: ["pBind"] }, { kind: "ngmodule", type: MotionModule }, { kind: "directive", type: i3.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 });
1105
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "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: "directive", type: FocusTrap, selector: "[pFocusTrap]", inputs: ["pFocusTrapDisabled"] }, { kind: "component", type: TimesIcon, selector: "[data-p-icon=\"times\"]" }, { kind: "component", type: WindowMaximizeIcon, selector: "[data-p-icon=\"window-maximize\"]" }, { kind: "component", type: WindowMinimizeIcon, selector: "[data-p-icon=\"window-minimize\"]" }, { kind: "ngmodule", type: SharedModule }, { kind: "directive", type: Bind, selector: "[pBind]", inputs: ["pBind"] }, { kind: "ngmodule", type: MotionModule }, { kind: "directive", type: i3.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 });
1138
1106
  }
1139
1107
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Dialog, decorators: [{
1140
1108
  type: Component,
1141
1109
  args: [{
1142
1110
  selector: 'p-dialog',
1143
- standalone: true,
1144
1111
  imports: [CommonModule, Button, FocusTrap, TimesIcon, WindowMaximizeIcon, WindowMinimizeIcon, SharedModule, Bind, MotionModule],
1145
1112
  template: `
1146
1113
  @if (renderMask()) {
1147
1114
  <div
1148
- [class]="cn(cx('mask'), maskStyleClass)"
1115
+ [class]="cn(cx('mask'), maskStyleClass())"
1149
1116
  [style]="sx('mask')"
1150
- [ngStyle]="maskStyle"
1117
+ [ngStyle]="maskStyle()"
1151
1118
  [pBind]="ptm('mask')"
1152
- [pMotion]="maskVisible"
1119
+ [pMotion]="maskVisible()"
1153
1120
  [pMotionAppear]="true"
1154
- [pMotionEnterActiveClass]="modal ? 'p-overlay-mask-enter-active' : ''"
1155
- [pMotionLeaveActiveClass]="modal ? 'p-overlay-mask-leave-active' : ''"
1121
+ [pMotionEnterActiveClass]="modal() ? 'p-overlay-mask-enter-active' : ''"
1122
+ [pMotionLeaveActiveClass]="modal() ? 'p-overlay-mask-leave-active' : ''"
1156
1123
  [pMotionOptions]="computedMaskMotionOptions()"
1157
1124
  (pMotionOnAfterLeave)="onMaskAfterLeave()"
1158
- [attr.data-p-scrollblocker-active]="modal || blockScroll"
1159
- [attr.data-p]="dataP"
1125
+ [attr.data-p-scrollblocker-active]="modal() || blockScroll()"
1126
+ [attr.data-p]="dataP()"
1160
1127
  >
1161
1128
  @if (renderDialog()) {
1162
1129
  <div
1163
1130
  #container
1164
- [class]="cn(cx('root'), styleClass)"
1131
+ [class]="cn(cx('root'), styleClass())"
1165
1132
  [style]="sx('root')"
1166
- [ngStyle]="style"
1133
+ [ngStyle]="_style()"
1167
1134
  [pBind]="ptm('root')"
1168
1135
  pFocusTrap
1169
- [pFocusTrapDisabled]="focusTrap === false"
1170
- [pMotion]="visible"
1136
+ [pFocusTrapDisabled]="focusTrap() === false"
1137
+ [pMotion]="visible()"
1171
1138
  [pMotionAppear]="true"
1172
1139
  [pMotionName]="'p-dialog'"
1173
1140
  [pMotionOptions]="computedMotionOptions()"
@@ -1175,78 +1142,78 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
1175
1142
  (pMotionOnAfterEnter)="onAfterEnter($event)"
1176
1143
  (pMotionOnBeforeLeave)="onBeforeLeave($event)"
1177
1144
  (pMotionOnAfterLeave)="onAfterLeave($event)"
1178
- [attr.role]="role"
1145
+ [attr.role]="role()"
1179
1146
  [attr.aria-labelledby]="computedAriaLabelledBy()"
1180
1147
  [attr.aria-modal]="true"
1181
- [attr.data-p]="dataP"
1148
+ [attr.data-p]="dataP()"
1182
1149
  >
1183
- <ng-container *ngIf="_headlessTemplate() || headlessTemplate || headlessT; else notHeadless">
1184
- <ng-container *ngTemplateOutlet="_headlessTemplate() || headlessTemplate || headlessT"></ng-container>
1150
+ <ng-container *ngIf="_headlessTemplate() || headlessTemplate() || headlessT(); else notHeadless">
1151
+ <ng-container *ngTemplateOutlet="_headlessTemplate() || headlessTemplate() || headlessT()"></ng-container>
1185
1152
  </ng-container>
1186
1153
 
1187
1154
  <ng-template #notHeadless>
1188
- <div *ngIf="resizable" [class]="cx('resizeHandle')" [pBind]="ptm('resizeHandle')" [style.z-index]="90" (mousedown)="initResize($event)"></div>
1189
- <div #titlebar [class]="cx('header')" [pBind]="ptm('header')" (mousedown)="initDrag($event)" *ngIf="showHeader">
1190
- <span [id]="headerId()" [class]="cx('title')" [pBind]="ptm('title')" *ngIf="!_headerTemplate() && !headerTemplate && !headerT">{{ header() }}</span>
1191
- <ng-container *ngTemplateOutlet="_headerTemplate() || headerTemplate || headerT; context: { ariaLabelledBy: computedAriaLabelledBy() }"></ng-container>
1155
+ <div *ngIf="resizable()" [class]="cx('resizeHandle')" [pBind]="ptm('resizeHandle')" [style.z-index]="90" (mousedown)="initResize($event)"></div>
1156
+ <div #titlebar [class]="cx('header')" [pBind]="ptm('header')" (mousedown)="initDrag($event)" *ngIf="showHeader()">
1157
+ <span [id]="headerId()" [class]="cx('title')" [pBind]="ptm('title')" *ngIf="!_headerTemplate() && !headerTemplate() && !headerT()">{{ header() }}</span>
1158
+ <ng-container *ngTemplateOutlet="_headerTemplate() || headerTemplate() || headerT(); context: { ariaLabelledBy: computedAriaLabelledBy() }"></ng-container>
1192
1159
  <div [class]="cx('headerActions')" [pBind]="ptm('headerActions')">
1193
1160
  <p-button
1194
1161
  [pt]="ptm('pcMaximizeButton')"
1195
- *ngIf="maximizable"
1162
+ *ngIf="maximizable()"
1196
1163
  [styleClass]="cx('pcMaximizeButton')"
1197
- [ariaLabel]="maximized ? minimizeLabel : maximizeLabel"
1164
+ [ariaLabel]="maximized() ? minimizeLabel : maximizeLabel"
1198
1165
  (onClick)="maximize()"
1199
1166
  (keydown.enter)="maximize()"
1200
- [tabindex]="maximizable ? '0' : '-1'"
1201
- [buttonProps]="maximizeButtonProps"
1167
+ [tabindex]="maximizable() ? '0' : '-1'"
1168
+ [buttonProps]="maximizeButtonProps()"
1202
1169
  [unstyled]="unstyled()"
1203
1170
  [attr.data-pc-group-section]="'headericon'"
1204
1171
  >
1205
1172
  <ng-template #icon>
1206
- <span *ngIf="maximizeIcon && !_maximizeiconTemplate() && !_minimizeiconTemplate()" [ngClass]="maximized ? minimizeIcon : maximizeIcon"></span>
1207
- <ng-container *ngIf="!maximizeIcon && !maximizeButtonProps?.icon">
1208
- <svg data-p-icon="window-maximize" *ngIf="!maximized && !_maximizeiconTemplate() && !maximizeIconTemplate && !maximizeIconT" />
1209
- <svg data-p-icon="window-minimize" *ngIf="maximized && !_minimizeiconTemplate() && !minimizeIconTemplate && !minimizeIconT" />
1173
+ <span *ngIf="maximizeIcon() && !_maximizeiconTemplate() && !_minimizeiconTemplate()" [ngClass]="maximized() ? minimizeIcon() : maximizeIcon()"></span>
1174
+ <ng-container *ngIf="!maximizeIcon() && !maximizeButtonProps()?.icon">
1175
+ <svg data-p-icon="window-maximize" *ngIf="!maximized() && !_maximizeiconTemplate() && !maximizeIconTemplate() && !maximizeIconT()" />
1176
+ <svg data-p-icon="window-minimize" *ngIf="maximized() && !_minimizeiconTemplate() && !minimizeIconTemplate() && !minimizeIconT()" />
1210
1177
  </ng-container>
1211
- <ng-container *ngIf="!maximized">
1212
- <ng-template *ngTemplateOutlet="_maximizeiconTemplate() || maximizeIconTemplate || maximizeIconT"></ng-template>
1178
+ <ng-container *ngIf="!maximized()">
1179
+ <ng-template *ngTemplateOutlet="_maximizeiconTemplate() || maximizeIconTemplate() || maximizeIconT()"></ng-template>
1213
1180
  </ng-container>
1214
- <ng-container *ngIf="maximized">
1215
- <ng-template *ngTemplateOutlet="_minimizeiconTemplate() || minimizeIconTemplate || minimizeIconT"></ng-template>
1181
+ <ng-container *ngIf="maximized()">
1182
+ <ng-template *ngTemplateOutlet="_minimizeiconTemplate() || minimizeIconTemplate() || minimizeIconT()"></ng-template>
1216
1183
  </ng-container>
1217
1184
  </ng-template>
1218
1185
  </p-button>
1219
1186
  <p-button
1220
1187
  [pt]="ptm('pcCloseButton')"
1221
- *ngIf="closable"
1188
+ *ngIf="closable()"
1222
1189
  [styleClass]="cx('pcCloseButton')"
1223
- [ariaLabel]="closeAriaLabel"
1190
+ [ariaLabel]="closeAriaLabel()"
1224
1191
  (onClick)="close($event)"
1225
1192
  (keydown.enter)="close($event)"
1226
- [tabindex]="closeTabindex"
1227
- [buttonProps]="closeButtonProps"
1193
+ [tabindex]="closeTabindex()"
1194
+ [buttonProps]="closeButtonProps()"
1228
1195
  [unstyled]="unstyled()"
1229
1196
  [attr.data-pc-group-section]="'headericon'"
1230
1197
  >
1231
1198
  <ng-template #icon>
1232
- <ng-container *ngIf="!_closeiconTemplate() && !closeIconTemplate && !closeIconT && !closeButtonProps?.icon">
1233
- <span *ngIf="closeIcon" [class]="closeIcon"></span>
1234
- <svg data-p-icon="times" *ngIf="!closeIcon" />
1199
+ <ng-container *ngIf="!_closeiconTemplate() && !closeIconTemplate() && !closeIconT() && !closeButtonProps()?.icon">
1200
+ <span *ngIf="closeIcon()" [class]="closeIcon()"></span>
1201
+ <svg data-p-icon="times" *ngIf="!closeIcon()" />
1235
1202
  </ng-container>
1236
- <span *ngIf="_closeiconTemplate() || closeIconTemplate || closeIconT">
1237
- <ng-template *ngTemplateOutlet="_closeiconTemplate() || closeIconTemplate || closeIconT"></ng-template>
1203
+ <span *ngIf="_closeiconTemplate() || closeIconTemplate() || closeIconT()">
1204
+ <ng-template *ngTemplateOutlet="_closeiconTemplate() || closeIconTemplate() || closeIconT()"></ng-template>
1238
1205
  </span>
1239
1206
  </ng-template>
1240
1207
  </p-button>
1241
1208
  </div>
1242
1209
  </div>
1243
- <div #content [class]="cn(cx('content'), contentStyleClass)" [ngStyle]="contentStyle" [pBind]="ptm('content')">
1210
+ <div #content [class]="cn(cx('content'), contentStyleClass())" [ngStyle]="contentStyle()" [pBind]="ptm('content')">
1244
1211
  <ng-content></ng-content>
1245
- <ng-container *ngTemplateOutlet="_contentTemplate() || contentTemplate || contentT"></ng-container>
1212
+ <ng-container *ngTemplateOutlet="_contentTemplate() || contentTemplate() || contentT()"></ng-container>
1246
1213
  </div>
1247
- <div #footer [class]="cx('footer')" [pBind]="ptm('footer')" *ngIf="_footerTemplate() || footerTemplate || footerT">
1214
+ <div #footer [class]="cx('footer')" [pBind]="ptm('footer')" *ngIf="_footerTemplate() || footerTemplate() || footerT()">
1248
1215
  <ng-content select="p-footer"></ng-content>
1249
- <ng-container *ngTemplateOutlet="_footerTemplate() || footerTemplate || footerT"></ng-container>
1216
+ <ng-container *ngTemplateOutlet="_footerTemplate() || footerTemplate() || footerT()"></ng-container>
1250
1217
  </div>
1251
1218
  </ng-template>
1252
1219
  </div>
@@ -1259,111 +1226,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
1259
1226
  providers: [DialogStyle, { provide: DIALOG_INSTANCE, useExisting: Dialog }, { provide: PARENT_INSTANCE, useExisting: Dialog }],
1260
1227
  hostDirectives: [Bind]
1261
1228
  }]
1262
- }], propDecorators: { hostName: [{
1263
- type: Input
1264
- }], header: [{ type: i0.Input, args: [{ isSignal: true, alias: "header", required: false }] }], draggable: [{
1265
- type: Input,
1266
- args: [{ transform: booleanAttribute }]
1267
- }], resizable: [{
1268
- type: Input,
1269
- args: [{ transform: booleanAttribute }]
1270
- }], contentStyle: [{
1271
- type: Input
1272
- }], contentStyleClass: [{
1273
- type: Input
1274
- }], modal: [{
1275
- type: Input,
1276
- args: [{ transform: booleanAttribute }]
1277
- }], closeOnEscape: [{
1278
- type: Input,
1279
- args: [{ transform: booleanAttribute }]
1280
- }], dismissableMask: [{
1281
- type: Input,
1282
- args: [{ transform: booleanAttribute }]
1283
- }], rtl: [{
1284
- type: Input,
1285
- args: [{ transform: booleanAttribute }]
1286
- }], closable: [{
1287
- type: Input,
1288
- args: [{ transform: booleanAttribute }]
1289
- }], breakpoints: [{
1290
- type: Input
1291
- }], styleClass: [{
1292
- type: Input
1293
- }], maskStyleClass: [{
1294
- type: Input
1295
- }], maskStyle: [{
1296
- type: Input
1297
- }], showHeader: [{
1298
- type: Input,
1299
- args: [{ transform: booleanAttribute }]
1300
- }], blockScroll: [{
1301
- type: Input,
1302
- args: [{ transform: booleanAttribute }]
1303
- }], autoZIndex: [{
1304
- type: Input,
1305
- args: [{ transform: booleanAttribute }]
1306
- }], baseZIndex: [{
1307
- type: Input,
1308
- args: [{ transform: numberAttribute }]
1309
- }], minX: [{
1310
- type: Input,
1311
- args: [{ transform: numberAttribute }]
1312
- }], minY: [{
1313
- type: Input,
1314
- args: [{ transform: numberAttribute }]
1315
- }], focusOnShow: [{
1316
- type: Input,
1317
- args: [{ transform: booleanAttribute }]
1318
- }], maximizable: [{
1319
- type: Input,
1320
- args: [{ transform: booleanAttribute }]
1321
- }], keepInViewport: [{
1322
- type: Input,
1323
- args: [{ transform: booleanAttribute }]
1324
- }], focusTrap: [{
1325
- type: Input,
1326
- args: [{ transform: booleanAttribute }]
1327
- }], transitionOptions: [{
1328
- type: Input
1329
- }], maskMotionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "maskMotionOptions", required: false }] }], motionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionOptions", required: false }] }], closeIcon: [{
1330
- type: Input
1331
- }], closeAriaLabel: [{
1332
- type: Input
1333
- }], closeTabindex: [{
1334
- type: Input
1335
- }], minimizeIcon: [{
1336
- type: Input
1337
- }], maximizeIcon: [{
1338
- type: Input
1339
- }], closeButtonProps: [{
1340
- type: Input
1341
- }], maximizeButtonProps: [{
1342
- type: Input
1343
- }], visible: [{
1344
- type: Input
1345
- }], style: [{
1346
- type: Input
1347
- }], position: [{
1348
- type: Input
1349
- }], role: [{
1350
- type: Input
1351
- }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], onShow: [{ type: i0.Output, args: ["onShow"] }], onHide: [{ type: i0.Output, args: ["onHide"] }], visibleChange: [{ type: i0.Output, args: ["visibleChange"] }], onResizeInit: [{ type: i0.Output, args: ["onResizeInit"] }], onResizeEnd: [{ type: i0.Output, args: ["onResizeEnd"] }], onDragEnd: [{ type: i0.Output, args: ["onDragEnd"] }], onMaximize: [{ type: i0.Output, args: ["onMaximize"] }], headerViewChild: [{ type: i0.ViewChild, args: ['titlebar', { isSignal: true }] }], contentViewChild: [{ type: i0.ViewChild, args: ['content', { isSignal: true }] }], footerViewChild: [{ type: i0.ViewChild, args: ['footer', { isSignal: true }] }], headerTemplate: [{
1352
- type: Input,
1353
- args: ['content']
1354
- }], contentTemplate: [{
1355
- type: Input
1356
- }], footerTemplate: [{
1357
- type: Input
1358
- }], closeIconTemplate: [{
1359
- type: Input
1360
- }], maximizeIconTemplate: [{
1361
- type: Input
1362
- }], minimizeIconTemplate: [{
1363
- type: Input
1364
- }], headlessTemplate: [{
1365
- type: Input
1366
- }], _headerTemplate: [{ type: i0.ContentChild, args: ['header', { ...{ descendants: false }, isSignal: true }] }], _contentTemplate: [{ type: i0.ContentChild, args: ['content', { ...{ descendants: false }, isSignal: true }] }], _footerTemplate: [{ type: i0.ContentChild, args: ['footer', { ...{ descendants: false }, isSignal: true }] }], _closeiconTemplate: [{ type: i0.ContentChild, args: ['closeicon', { ...{ descendants: false }, isSignal: true }] }], _maximizeiconTemplate: [{ type: i0.ContentChild, args: ['maximizeicon', { ...{ descendants: false }, isSignal: true }] }], _minimizeiconTemplate: [{ type: i0.ContentChild, args: ['minimizeicon', { ...{ descendants: false }, isSignal: true }] }], _headlessTemplate: [{ type: i0.ContentChild, args: ['headless', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }] } });
1229
+ }], ctorParameters: () => [], propDecorators: { hostName: [{ type: i0.Input, args: [{ isSignal: true, alias: "hostName", required: false }] }], header: [{ type: i0.Input, args: [{ isSignal: true, alias: "header", required: false }] }], draggable: [{ type: i0.Input, args: [{ isSignal: true, alias: "draggable", required: false }] }], resizable: [{ type: i0.Input, args: [{ isSignal: true, alias: "resizable", required: false }] }], contentStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "contentStyle", required: false }] }], contentStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "contentStyleClass", required: false }] }], modal: [{ type: i0.Input, args: [{ isSignal: true, alias: "modal", required: false }] }], closeOnEscape: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnEscape", required: false }] }], dismissableMask: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissableMask", required: false }] }], closable: [{ type: i0.Input, args: [{ isSignal: true, alias: "closable", required: false }] }], breakpoints: [{ type: i0.Input, args: [{ isSignal: true, alias: "breakpoints", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], maskStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "maskStyleClass", required: false }] }], maskStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "maskStyle", required: false }] }], showHeader: [{ type: i0.Input, args: [{ isSignal: true, alias: "showHeader", required: false }] }], blockScroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "blockScroll", required: false }] }], autoZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoZIndex", required: false }] }], baseZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "baseZIndex", required: false }] }], minX: [{ type: i0.Input, args: [{ isSignal: true, alias: "minX", required: false }] }], minY: [{ type: i0.Input, args: [{ isSignal: true, alias: "minY", required: false }] }], focusOnShow: [{ type: i0.Input, args: [{ isSignal: true, alias: "focusOnShow", required: false }] }], maximizable: [{ type: i0.Input, args: [{ isSignal: true, alias: "maximizable", required: false }] }], keepInViewport: [{ type: i0.Input, args: [{ isSignal: true, alias: "keepInViewport", required: false }] }], focusTrap: [{ type: i0.Input, args: [{ isSignal: true, alias: "focusTrap", required: false }] }], maskMotionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "maskMotionOptions", required: false }] }], motionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionOptions", required: false }] }], closeIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeIcon", required: false }] }], closeAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeAriaLabel", required: false }] }], closeTabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeTabindex", required: false }] }], minimizeIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "minimizeIcon", required: false }] }], maximizeIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "maximizeIcon", required: false }] }], closeButtonProps: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeButtonProps", required: false }] }], maximizeButtonProps: [{ type: i0.Input, args: [{ isSignal: true, alias: "maximizeButtonProps", required: false }] }], visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }, { type: i0.Output, args: ["visibleChange"] }], style: [{ type: i0.Input, args: [{ isSignal: true, alias: "style", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], role: [{ type: i0.Input, args: [{ isSignal: true, alias: "role", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], onShow: [{ type: i0.Output, args: ["onShow"] }], onHide: [{ type: i0.Output, args: ["onHide"] }], onResizeInit: [{ type: i0.Output, args: ["onResizeInit"] }], onResizeEnd: [{ type: i0.Output, args: ["onResizeEnd"] }], onDragEnd: [{ type: i0.Output, args: ["onDragEnd"] }], onMaximize: [{ type: i0.Output, args: ["onMaximize"] }], headerViewChild: [{ type: i0.ViewChild, args: ['titlebar', { isSignal: true }] }], contentViewChild: [{ type: i0.ViewChild, args: ['content', { isSignal: true }] }], footerViewChild: [{ type: i0.ViewChild, args: ['footer', { isSignal: true }] }], headerTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "content", required: false }] }], contentTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "contentTemplate", required: false }] }], footerTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "footerTemplate", required: false }] }], closeIconTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeIconTemplate", required: false }] }], maximizeIconTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "maximizeIconTemplate", required: false }] }], minimizeIconTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "minimizeIconTemplate", required: false }] }], headlessTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "headlessTemplate", required: false }] }], _headerTemplate: [{ type: i0.ContentChild, args: ['header', { ...{ descendants: false }, isSignal: true }] }], _contentTemplate: [{ type: i0.ContentChild, args: ['content', { ...{ descendants: false }, isSignal: true }] }], _footerTemplate: [{ type: i0.ContentChild, args: ['footer', { ...{ descendants: false }, isSignal: true }] }], _closeiconTemplate: [{ type: i0.ContentChild, args: ['closeicon', { ...{ descendants: false }, isSignal: true }] }], _maximizeiconTemplate: [{ type: i0.ContentChild, args: ['maximizeicon', { ...{ descendants: false }, isSignal: true }] }], _minimizeiconTemplate: [{ type: i0.ContentChild, args: ['minimizeicon', { ...{ descendants: false }, isSignal: true }] }], _headlessTemplate: [{ type: i0.ContentChild, args: ['headless', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }] } });
1367
1230
  class DialogModule {
1368
1231
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: DialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1369
1232
  static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.2.1", ngImport: i0, type: DialogModule, imports: [Dialog, SharedModule], exports: [Dialog, SharedModule] });