@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,8 @@ export * from '@exhaustive-ui/core/types/confirmpopup';
2
2
  import * as i2 from '@angular/common';
3
3
  import { DOCUMENT, CommonModule } from '@angular/common';
4
4
  import * as i0 from '@angular/core';
5
- import { Injectable, InjectionToken, inject, ElementRef, Renderer2, ChangeDetectorRef, input, signal, computed, contentChild, viewChild, effect, untracked, contentChildren, numberAttribute, booleanAttribute, HostListener, Input, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
5
+ import { Injectable, InjectionToken, inject, ElementRef, Renderer2, input, booleanAttribute, numberAttribute, signal, computed, contentChild, viewChild, afterEveryRender, effect, untracked, contentChildren, isSignal, HostListener, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
6
+ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
6
7
  import { findSingle, absolutePosition, getOffset, addClass, appendChild, focus, isIOS, isTouchDevice } from '@exhaustive-ui/utils';
7
8
  import { ConfirmationService, OverlayService, PrimeTemplate, TranslationKeys, SharedModule } from '@exhaustive-ui/core/api';
8
9
  import { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';
@@ -88,57 +89,45 @@ class ConfirmPopup extends BaseComponent {
88
89
  el = inject(ElementRef);
89
90
  confirmationService = inject(ConfirmationService);
90
91
  renderer = inject(Renderer2);
91
- cd = inject(ChangeDetectorRef);
92
92
  overlayService = inject(OverlayService);
93
93
  document = inject(DOCUMENT);
94
94
  componentName = 'ConfirmPopup';
95
95
  $pcConfirmPopup = inject(CONFIRMPOPUP_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
96
96
  bindDirectiveInstance = inject(Bind, { self: true });
97
- onAfterViewChecked() {
98
- this.bindDirectiveInstance.setAttrs(this.ptm('host'));
99
- }
100
97
  /**
101
98
  * Optional key to match the key of confirm object, necessary to use when component tree has multiple confirm dialogs.
102
99
  * @group Props
103
100
  */
104
- key;
101
+ key = input(/* @ts-ignore */
102
+ ...(ngDevMode ? [undefined, { debugName: "key" }] : /* istanbul ignore next */ []));
105
103
  /**
106
104
  * Element to receive the focus when the popup gets visible, valid values are "accept", "reject", and "none".
107
105
  * @group Props
108
106
  */
109
- defaultFocus = 'accept';
110
- /**
111
- * Transition options of the show animation.
112
- * @group Props
113
- * @deprecated since v21.0.0. Use `motionOptions` instead.
114
- */
115
- showTransitionOptions = '.12s cubic-bezier(0, 0, 0.2, 1)';
116
- /**
117
- * Transition options of the hide animation.
118
- * @group Props
119
- * @deprecated since v21.0.0. Use `motionOptions` instead.
120
- */
121
- hideTransitionOptions = '.1s linear';
107
+ defaultFocus = input('accept', /* @ts-ignore */
108
+ ...(ngDevMode ? [{ debugName: "defaultFocus" }] : /* istanbul ignore next */ []));
122
109
  /**
123
110
  * Whether to automatically manage layering.
124
111
  * @group Props
125
112
  */
126
- autoZIndex = true;
113
+ autoZIndex = input(true, { ...(ngDevMode ? { debugName: "autoZIndex" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
127
114
  /**
128
115
  * Base zIndex value to use in layering.
129
116
  * @group Props
130
117
  */
131
- baseZIndex = 0;
118
+ baseZIndex = input(0, { ...(ngDevMode ? { debugName: "baseZIndex" } : /* istanbul ignore next */ {}), transform: numberAttribute });
132
119
  /**
133
120
  * Inline style of the component.
134
121
  * @group Props
135
122
  */
136
- style;
123
+ style = input(/* @ts-ignore */
124
+ ...(ngDevMode ? [undefined, { debugName: "style" }] : /* istanbul ignore next */ []));
137
125
  /**
138
126
  * Style class of the component.
139
127
  * @group Props
140
128
  */
141
- styleClass;
129
+ styleClass = input(/* @ts-ignore */
130
+ ...(ngDevMode ? [undefined, { debugName: "styleClass" }] : /* istanbul ignore next */ []));
142
131
  /**
143
132
  * Defines if the component is visible.
144
133
  * @group Props
@@ -173,11 +162,14 @@ class ConfirmPopup extends BaseComponent {
173
162
  ...(ngDevMode ? [{ debugName: "appendTo" }] : /* istanbul ignore next */ []));
174
163
  $appendTo = computed(() => this.appendTo() || this.config.overlayAppendTo(), /* @ts-ignore */
175
164
  ...(ngDevMode ? [{ debugName: "$appendTo" }] : /* istanbul ignore next */ []));
176
- container;
177
- subscription;
178
- confirmation;
179
- autoFocusAccept = false;
180
- autoFocusReject = false;
165
+ container = signal(undefined, /* @ts-ignore */
166
+ ...(ngDevMode ? [{ debugName: "container" }] : /* istanbul ignore next */ []));
167
+ confirmation = signal(undefined, /* @ts-ignore */
168
+ ...(ngDevMode ? [{ debugName: "confirmation" }] : /* istanbul ignore next */ []));
169
+ autoFocusAccept = signal(false, /* @ts-ignore */
170
+ ...(ngDevMode ? [{ debugName: "autoFocusAccept" }] : /* istanbul ignore next */ []));
171
+ autoFocusReject = signal(false, /* @ts-ignore */
172
+ ...(ngDevMode ? [{ debugName: "autoFocusReject" }] : /* istanbul ignore next */ []));
181
173
  /**
182
174
  * Custom content template.
183
175
  * @group Templates
@@ -200,19 +192,34 @@ class ConfirmPopup extends BaseComponent {
200
192
  headlessTemplate = contentChild('headless', { ...(ngDevMode ? { debugName: "headlessTemplate" } : /* istanbul ignore next */ {}), descendants: false });
201
193
  acceptButtonViewChild = viewChild('acceptButton', { ...(ngDevMode ? { debugName: "acceptButtonViewChild" } : /* istanbul ignore next */ {}), read: ElementRef });
202
194
  rejectButtonViewChild = viewChild('rejectButton', { ...(ngDevMode ? { debugName: "rejectButtonViewChild" } : /* istanbul ignore next */ {}), read: ElementRef });
203
- _contentTemplate;
204
- _acceptIconTemplate;
205
- _rejectIconTemplate;
206
- _headlessTemplate;
207
- documentClickListener;
208
- documentResizeListener;
209
- scrollHandler;
210
- window;
195
+ _contentTemplate = computed(() => this.templates()
196
+ .filter((item) => item.getType() === 'content')
197
+ .at(-1)?.template, /* @ts-ignore */
198
+ ...(ngDevMode ? [{ debugName: "_contentTemplate" }] : /* istanbul ignore next */ []));
199
+ _acceptIconTemplate = computed(() => this.templates()
200
+ .filter((item) => item.getType() === 'accepticon')
201
+ .at(-1)?.template, /* @ts-ignore */
202
+ ...(ngDevMode ? [{ debugName: "_acceptIconTemplate" }] : /* istanbul ignore next */ []));
203
+ _rejectIconTemplate = computed(() => this.templates()
204
+ .filter((item) => item.getType() === 'rejecticon')
205
+ .at(-1)?.template, /* @ts-ignore */
206
+ ...(ngDevMode ? [{ debugName: "_rejectIconTemplate" }] : /* istanbul ignore next */ []));
207
+ _headlessTemplate = computed(() => this.templates()
208
+ .filter((item) => item.getType() === 'headless')
209
+ .at(-1)?.template, /* @ts-ignore */
210
+ ...(ngDevMode ? [{ debugName: "_headlessTemplate" }] : /* istanbul ignore next */ []));
211
+ documentClickListener = signal(undefined, /* @ts-ignore */
212
+ ...(ngDevMode ? [{ debugName: "documentClickListener" }] : /* istanbul ignore next */ []));
213
+ documentResizeListener = signal(undefined, /* @ts-ignore */
214
+ ...(ngDevMode ? [{ debugName: "documentResizeListener" }] : /* istanbul ignore next */ []));
215
+ scrollHandler = signal(undefined, /* @ts-ignore */
216
+ ...(ngDevMode ? [{ debugName: "scrollHandler" }] : /* istanbul ignore next */ []));
217
+ window = this.document.defaultView;
211
218
  _componentStyle = inject(ConfirmPopupStyle);
212
219
  constructor() {
213
220
  super();
214
- this.window = this.document.defaultView;
215
- this.subscription = this.confirmationService.requireConfirmation$.subscribe((confirmation) => {
221
+ afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptm('host')));
222
+ this.confirmationService.requireConfirmation$.pipe(takeUntilDestroyed()).subscribe((confirmation) => {
216
223
  if (!confirmation) {
217
224
  this.hide();
218
225
  return;
@@ -220,19 +227,18 @@ class ConfirmPopup extends BaseComponent {
220
227
  if (this.computedVisible()) {
221
228
  requestAnimationFrame(() => {
222
229
  this.alignOverlay();
223
- this.cd.markForCheck();
224
230
  });
225
231
  }
226
- if (confirmation.key === this.key) {
227
- this.confirmation = confirmation;
228
- if (this.confirmation.accept) {
229
- this.confirmation.acceptEvent = new Subject();
230
- this.confirmation.acceptEvent.subscribe(this.confirmation.accept);
232
+ if (confirmation.key === this.key()) {
233
+ if (confirmation.accept) {
234
+ confirmation.acceptEvent = new Subject();
235
+ confirmation.acceptEvent.subscribe(confirmation.accept);
231
236
  }
232
- if (this.confirmation.reject) {
233
- this.confirmation.rejectEvent = new Subject();
234
- this.confirmation.rejectEvent.subscribe(this.confirmation.reject);
237
+ if (confirmation.reject) {
238
+ confirmation.rejectEvent = new Subject();
239
+ confirmation.rejectEvent.subscribe(confirmation.reject);
235
240
  }
241
+ this.confirmation.set(confirmation);
236
242
  this._visible.set(true);
237
243
  }
238
244
  });
@@ -248,47 +254,31 @@ class ConfirmPopup extends BaseComponent {
248
254
  }
249
255
  templates = contentChildren(PrimeTemplate, /* @ts-ignore */
250
256
  ...(ngDevMode ? [{ debugName: "templates" }] : /* istanbul ignore next */ []));
251
- onAfterContentInit() {
252
- this.templates()?.forEach((item) => {
253
- switch (item.getType()) {
254
- case 'content':
255
- this._contentTemplate = item.template;
256
- break;
257
- case 'rejecticon':
258
- this._rejectIconTemplate = item.template;
259
- break;
260
- case 'accepticon':
261
- this._acceptIconTemplate = item.template;
262
- break;
263
- case 'headless':
264
- this._headlessTemplate = item.template;
265
- break;
266
- }
267
- });
268
- }
269
257
  option(name, k) {
270
- const confirmation = this.confirmation ?? {};
258
+ const confirmation = this.confirmation() ?? {};
271
259
  const source = Object.prototype.hasOwnProperty.call(confirmation, name) ? confirmation : this;
272
260
  if (Object.prototype.hasOwnProperty.call(source, name)) {
261
+ const value = isSignal(source[name]) ? source[name]() : source[name];
273
262
  if (k) {
274
- return source[name]?.[k];
263
+ return value?.[k];
275
264
  }
276
- return source[name];
265
+ return value;
277
266
  }
278
267
  return undefined;
279
268
  }
280
269
  onEscapeKeydown(event) {
281
- if (this.confirmation && this.confirmation.closeOnEscape !== false) {
270
+ const confirmation = this.confirmation();
271
+ if (confirmation && confirmation.closeOnEscape !== false) {
282
272
  this.onReject();
283
273
  }
284
274
  }
285
275
  onBeforeEnter(event) {
286
- if (this.confirmation) {
276
+ if (this.confirmation()) {
287
277
  const focus = this.option('defaultFocus');
288
- this.autoFocusAccept = focus === 'accept';
289
- this.autoFocusReject = focus === 'reject';
278
+ this.autoFocusAccept.set(focus === 'accept');
279
+ this.autoFocusReject.set(focus === 'reject');
290
280
  }
291
- this.container = event.element;
281
+ this.container.set(event.element);
292
282
  this.appendOverlay();
293
283
  this.alignOverlay();
294
284
  this.alignArrow();
@@ -304,56 +294,57 @@ class ConfirmPopup extends BaseComponent {
304
294
  }
305
295
  }
306
296
  onAfterLeave() {
307
- this.autoFocusAccept = false;
308
- this.autoFocusReject = false;
297
+ this.autoFocusAccept.set(false);
298
+ this.autoFocusReject.set(false);
309
299
  this.restoreAppend();
310
300
  this.onContainerDestroy();
311
301
  }
312
- getAcceptButtonProps() {
313
- return this.option('acceptButtonProps');
314
- }
315
- getRejectButtonProps() {
316
- return this.option('rejectButtonProps');
317
- }
302
+ getAcceptButtonProps = computed(() => this.option('acceptButtonProps'), /* @ts-ignore */
303
+ ...(ngDevMode ? [{ debugName: "getAcceptButtonProps" }] : /* istanbul ignore next */ []));
304
+ getRejectButtonProps = computed(() => this.option('rejectButtonProps'), /* @ts-ignore */
305
+ ...(ngDevMode ? [{ debugName: "getRejectButtonProps" }] : /* istanbul ignore next */ []));
318
306
  alignOverlay() {
319
- if (!this.confirmation || !this.confirmation.target) {
307
+ const confirmation = this.confirmation();
308
+ if (!confirmation || !confirmation.target) {
320
309
  return;
321
310
  }
322
- absolutePosition(this.container, this.confirmation?.target, false);
311
+ absolutePosition(this.container(), confirmation.target, false);
323
312
  }
324
313
  setZIndex() {
325
- if (this.autoZIndex) {
326
- ZIndexUtils.set('overlay', this.container, this.config.zIndex.overlay);
314
+ if (this.autoZIndex()) {
315
+ ZIndexUtils.set('overlay', this.container(), this.config.zIndex.overlay);
327
316
  }
328
317
  }
329
318
  alignArrow() {
330
- const containerOffset = getOffset(this.container);
331
- const targetOffset = getOffset(this.confirmation?.target);
319
+ const container = this.container();
320
+ const containerOffset = getOffset(container);
321
+ const targetOffset = getOffset(this.confirmation()?.target);
332
322
  let arrowLeft = 0;
333
323
  if (containerOffset && targetOffset && containerOffset.left < targetOffset.left) {
334
324
  arrowLeft = targetOffset.left - containerOffset.left;
335
325
  }
336
- if (this.container) {
337
- this.container.style.setProperty('--p-confirmpopup-arrow-left', `${arrowLeft}px`);
326
+ if (container) {
327
+ container.style.setProperty('--p-confirmpopup-arrow-left', `${arrowLeft}px`);
338
328
  }
339
329
  if (containerOffset && targetOffset && containerOffset.top < targetOffset.top) {
340
- this.container.setAttribute('data-p-confirmpopup-flipped', 'true');
341
- !this.$unstyled() && addClass(this.container, 'p-confirm-popup-flipped');
330
+ container.setAttribute('data-p-confirmpopup-flipped', 'true');
331
+ !this.$unstyled() && addClass(container, 'p-confirm-popup-flipped');
342
332
  }
343
333
  }
344
334
  appendOverlay() {
345
335
  if (this.$appendTo() && this.$appendTo() !== 'self') {
346
336
  if (this.$appendTo() === 'body') {
347
- appendChild(this.document.body, this.container);
337
+ appendChild(this.document.body, this.container());
348
338
  }
349
339
  else {
350
- appendChild(this.$appendTo(), this.container);
340
+ appendChild(this.$appendTo(), this.container());
351
341
  }
352
342
  }
353
343
  }
354
344
  restoreAppend() {
355
- if (this.container && this.$appendTo() !== 'self') {
356
- appendChild(this.el.nativeElement, this.container);
345
+ const container = this.container();
346
+ if (container && this.$appendTo() !== 'self') {
347
+ appendChild(this.el.nativeElement, container);
357
348
  }
358
349
  this.onContainerDestroy();
359
350
  }
@@ -361,18 +352,20 @@ class ConfirmPopup extends BaseComponent {
361
352
  this._visible.set(false);
362
353
  }
363
354
  onAccept() {
364
- if (this.confirmation?.acceptEvent) {
365
- this.confirmation.acceptEvent.next(undefined);
355
+ const confirmation = this.confirmation();
356
+ if (confirmation?.acceptEvent) {
357
+ confirmation.acceptEvent.next(undefined);
366
358
  }
367
359
  this.hide();
368
- focus(this.confirmation?.target);
360
+ focus(confirmation?.target);
369
361
  }
370
362
  onReject() {
371
- if (this.confirmation?.rejectEvent) {
372
- this.confirmation.rejectEvent.next(undefined);
363
+ const confirmation = this.confirmation();
364
+ if (confirmation?.rejectEvent) {
365
+ confirmation.rejectEvent.next(undefined);
373
366
  }
374
367
  this.hide();
375
- focus(this.confirmation?.target);
368
+ focus(confirmation?.target);
376
369
  }
377
370
  onOverlayClick(event) {
378
371
  this.overlayService.add({
@@ -398,23 +391,26 @@ class ConfirmPopup extends BaseComponent {
398
391
  this.unbindScrollListener();
399
392
  }
400
393
  bindDocumentClickListener() {
401
- if (!this.documentClickListener) {
394
+ if (!this.documentClickListener()) {
402
395
  let documentEvent = isIOS() ? 'touchstart' : 'click';
403
396
  const documentTarget = this.el ? this.el.nativeElement.ownerDocument : this.document;
404
- this.documentClickListener = this.renderer.listen(documentTarget, documentEvent, (event) => {
405
- if (this.confirmation && this.confirmation.dismissableMask !== false) {
406
- let targetElement = this.confirmation.target;
407
- if (this.container !== event.target && !this.container?.contains(event.target) && targetElement !== event.target && !targetElement.contains(event.target)) {
397
+ this.documentClickListener.set(this.renderer.listen(documentTarget, documentEvent, (event) => {
398
+ const confirmation = this.confirmation();
399
+ if (confirmation && confirmation.dismissableMask !== false) {
400
+ const container = this.container();
401
+ let targetElement = confirmation.target;
402
+ if (container !== event.target && !container?.contains(event.target) && targetElement !== event.target && !targetElement.contains(event.target)) {
408
403
  this.hide();
409
404
  }
410
405
  }
411
- });
406
+ }));
412
407
  }
413
408
  }
414
409
  unbindDocumentClickListener() {
415
- if (this.documentClickListener) {
416
- this.documentClickListener();
417
- this.documentClickListener = null;
410
+ const documentClickListener = this.documentClickListener();
411
+ if (documentClickListener) {
412
+ documentClickListener();
413
+ this.documentClickListener.set(null);
418
414
  }
419
415
  }
420
416
  onWindowResize() {
@@ -423,65 +419,65 @@ class ConfirmPopup extends BaseComponent {
423
419
  }
424
420
  }
425
421
  bindDocumentResizeListener() {
426
- if (!this.documentResizeListener) {
427
- this.documentResizeListener = this.renderer.listen(this.window, 'resize', this.onWindowResize.bind(this));
422
+ if (!this.documentResizeListener()) {
423
+ this.documentResizeListener.set(this.renderer.listen(this.window, 'resize', this.onWindowResize.bind(this)));
428
424
  }
429
425
  }
430
426
  unbindDocumentResizeListener() {
431
- if (this.documentResizeListener) {
432
- this.documentResizeListener();
433
- this.documentResizeListener = null;
427
+ const documentResizeListener = this.documentResizeListener();
428
+ if (documentResizeListener) {
429
+ documentResizeListener();
430
+ this.documentResizeListener.set(null);
434
431
  }
435
432
  }
436
433
  bindScrollListener() {
437
- if (!this.scrollHandler) {
438
- this.scrollHandler = new ConnectedOverlayScrollHandler(this.confirmation?.target, () => {
434
+ let scrollHandler = this.scrollHandler();
435
+ if (!scrollHandler) {
436
+ scrollHandler = new ConnectedOverlayScrollHandler(this.confirmation()?.target, () => {
439
437
  if (this.computedVisible()) {
440
438
  this.hide();
441
439
  }
442
440
  });
441
+ this.scrollHandler.set(scrollHandler);
443
442
  }
444
- this.scrollHandler.bindScrollListener();
443
+ scrollHandler.bindScrollListener();
445
444
  }
446
445
  unbindScrollListener() {
447
- if (this.scrollHandler) {
448
- this.scrollHandler.unbindScrollListener();
446
+ const scrollHandler = this.scrollHandler();
447
+ if (scrollHandler) {
448
+ scrollHandler.unbindScrollListener();
449
449
  }
450
450
  }
451
451
  unsubscribeConfirmationSubscriptions() {
452
- if (this.confirmation) {
453
- if (this.confirmation.acceptEvent) {
454
- this.confirmation.acceptEvent.unsubscribe();
452
+ const confirmation = this.confirmation();
453
+ if (confirmation) {
454
+ if (confirmation.acceptEvent) {
455
+ confirmation.acceptEvent.unsubscribe();
455
456
  }
456
- if (this.confirmation.rejectEvent) {
457
- this.confirmation.rejectEvent.unsubscribe();
457
+ if (confirmation.rejectEvent) {
458
+ confirmation.rejectEvent.unsubscribe();
458
459
  }
459
460
  }
460
461
  }
461
462
  onContainerDestroy() {
462
463
  this.unbindListeners();
463
464
  this.unsubscribeConfirmationSubscriptions();
464
- if (this.autoZIndex) {
465
- ZIndexUtils.clear(this.container);
465
+ if (this.autoZIndex()) {
466
+ ZIndexUtils.clear(this.container());
466
467
  }
467
- this.confirmation = null;
468
+ this.confirmation.set(null);
468
469
  this.render.set(false);
469
- this.container = null;
470
- }
471
- get acceptButtonLabel() {
472
- return this.confirmation?.acceptLabel || this.confirmation?.acceptButtonProps?.label || this.config.getTranslation(TranslationKeys.ACCEPT);
473
- }
474
- get rejectButtonLabel() {
475
- return this.confirmation?.rejectLabel || this.confirmation?.rejectButtonProps?.label || this.config.getTranslation(TranslationKeys.REJECT);
470
+ this.container.set(null);
476
471
  }
472
+ acceptButtonLabel = computed(() => this.confirmation()?.acceptLabel || this.confirmation()?.acceptButtonProps?.label || this.config.getTranslation(TranslationKeys.ACCEPT), /* @ts-ignore */
473
+ ...(ngDevMode ? [{ debugName: "acceptButtonLabel" }] : /* istanbul ignore next */ []));
474
+ rejectButtonLabel = computed(() => this.confirmation()?.rejectLabel || this.confirmation()?.rejectButtonProps?.label || this.config.getTranslation(TranslationKeys.REJECT), /* @ts-ignore */
475
+ ...(ngDevMode ? [{ debugName: "rejectButtonLabel" }] : /* istanbul ignore next */ []));
477
476
  onDestroy() {
478
477
  this.restoreAppend();
479
- if (this.subscription) {
480
- this.subscription.unsubscribe();
481
- }
482
478
  }
483
479
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: ConfirmPopup, deps: [], target: i0.ɵɵFactoryTarget.Component });
484
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: ConfirmPopup, isStandalone: true, selector: "p-confirmpopup", inputs: { key: { classPropertyName: "key", publicName: "key", isSignal: false, isRequired: false, transformFunction: null }, defaultFocus: { classPropertyName: "defaultFocus", publicName: "defaultFocus", isSignal: false, isRequired: false, transformFunction: null }, showTransitionOptions: { classPropertyName: "showTransitionOptions", publicName: "showTransitionOptions", isSignal: false, isRequired: false, transformFunction: null }, hideTransitionOptions: { classPropertyName: "hideTransitionOptions", publicName: "hideTransitionOptions", isSignal: false, isRequired: false, transformFunction: null }, autoZIndex: { classPropertyName: "autoZIndex", publicName: "autoZIndex", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, baseZIndex: { classPropertyName: "baseZIndex", publicName: "baseZIndex", isSignal: false, isRequired: false, transformFunction: numberAttribute }, style: { classPropertyName: "style", publicName: "style", isSignal: false, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: false, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, motionOptions: { classPropertyName: "motionOptions", publicName: "motionOptions", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "document:keydown.Escape": "onEscapeKeydown($event)" } }, providers: [ConfirmPopupStyle, { provide: CONFIRMPOPUP_INSTANCE, useExisting: ConfirmPopup }, { provide: PARENT_INSTANCE, useExisting: ConfirmPopup }], queries: [{ propertyName: "contentTemplate", first: true, predicate: ["content"], isSignal: true }, { propertyName: "acceptIconTemplate", first: true, predicate: ["accepticon"], isSignal: true }, { propertyName: "rejectIconTemplate", first: true, predicate: ["rejecticon"], isSignal: true }, { propertyName: "headlessTemplate", first: true, predicate: ["headless"], isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], viewQueries: [{ propertyName: "acceptButtonViewChild", first: true, predicate: ["acceptButton"], descendants: true, read: ElementRef, isSignal: true }, { propertyName: "rejectButtonViewChild", first: true, predicate: ["rejectButton"], descendants: true, read: ElementRef, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
480
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: ConfirmPopup, isStandalone: true, selector: "p-confirmpopup", inputs: { key: { classPropertyName: "key", publicName: "key", isSignal: true, isRequired: false, transformFunction: null }, defaultFocus: { classPropertyName: "defaultFocus", publicName: "defaultFocus", 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 }, style: { classPropertyName: "style", publicName: "style", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, motionOptions: { classPropertyName: "motionOptions", publicName: "motionOptions", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "document:keydown.Escape": "onEscapeKeydown($event)" } }, providers: [ConfirmPopupStyle, { provide: CONFIRMPOPUP_INSTANCE, useExisting: ConfirmPopup }, { provide: PARENT_INSTANCE, useExisting: ConfirmPopup }], queries: [{ propertyName: "contentTemplate", first: true, predicate: ["content"], isSignal: true }, { propertyName: "acceptIconTemplate", first: true, predicate: ["accepticon"], isSignal: true }, { propertyName: "rejectIconTemplate", first: true, predicate: ["rejecticon"], isSignal: true }, { propertyName: "headlessTemplate", first: true, predicate: ["headless"], isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], viewQueries: [{ propertyName: "acceptButtonViewChild", first: true, predicate: ["acceptButton"], descendants: true, read: ElementRef, isSignal: true }, { propertyName: "rejectButtonViewChild", first: true, predicate: ["rejectButton"], descendants: true, read: ElementRef, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
485
481
  @if (render()) {
486
482
  <div
487
483
  [pMotion]="computedVisible()"
@@ -492,75 +488,74 @@ class ConfirmPopup extends BaseComponent {
492
488
  (pMotionOnAfterLeave)="onAfterLeave()"
493
489
  pFocusTrap
494
490
  [pBind]="ptm('root')"
495
- [class]="cn(cx('root'), styleClass)"
496
- [ngStyle]="style"
491
+ [class]="cn(cx('root'), styleClass())"
492
+ [ngStyle]="style()"
497
493
  role="alertdialog"
498
494
  (click)="onOverlayClick($event)"
499
495
  >
500
- <ng-container *ngIf="headlessTemplate() || _headlessTemplate; else notHeadless">
501
- <ng-container *ngTemplateOutlet="headlessTemplate() || _headlessTemplate; context: { $implicit: confirmation }"></ng-container>
496
+ <ng-container *ngIf="headlessTemplate() || _headlessTemplate(); else notHeadless">
497
+ <ng-container *ngTemplateOutlet="headlessTemplate() || _headlessTemplate(); context: { $implicit: confirmation() }"></ng-container>
502
498
  </ng-container>
503
499
  <ng-template #notHeadless>
504
500
  <div #content [pBind]="ptm('content')" [class]="cx('content')">
505
- <ng-container *ngIf="contentTemplate() || _contentTemplate; else withoutContentTemplate">
506
- <ng-container *ngTemplateOutlet="contentTemplate() || _contentTemplate; context: { $implicit: confirmation }"></ng-container>
501
+ <ng-container *ngIf="contentTemplate() || _contentTemplate(); else withoutContentTemplate">
502
+ <ng-container *ngTemplateOutlet="contentTemplate() || _contentTemplate(); context: { $implicit: confirmation() }"></ng-container>
507
503
  </ng-container>
508
504
  <ng-template #withoutContentTemplate>
509
- <i [pBind]="ptm('icon')" [class]="cx('icon')" *ngIf="confirmation?.icon"></i>
510
- <span [pBind]="ptm('message')" [class]="cx('message')">{{ confirmation?.message }}</span>
505
+ <i [pBind]="ptm('icon')" [class]="cx('icon')" *ngIf="confirmation()?.icon"></i>
506
+ <span [pBind]="ptm('message')" [class]="cx('message')">{{ confirmation()?.message }}</span>
511
507
  </ng-template>
512
508
  </div>
513
509
  <div [pBind]="ptm('footer')" [class]="cx('footer')">
514
510
  <p-button
515
511
  type="button"
516
- [label]="rejectButtonLabel"
512
+ [label]="rejectButtonLabel()"
517
513
  (onClick)="onReject()"
518
514
  [pt]="ptm('pcRejectButton')"
519
515
  [class]="cx('pcRejectButton')"
520
- [styleClass]="confirmation?.rejectButtonStyleClass"
521
- [size]="confirmation?.rejectButtonProps?.size || 'small'"
522
- [text]="confirmation?.rejectButtonProps?.text || false"
523
- *ngIf="confirmation?.rejectVisible !== false"
524
- [attr.aria-label]="rejectButtonLabel"
516
+ [styleClass]="confirmation()?.rejectButtonStyleClass"
517
+ [size]="confirmation()?.rejectButtonProps?.size || 'small'"
518
+ [text]="confirmation()?.rejectButtonProps?.text || false"
519
+ *ngIf="confirmation()?.rejectVisible !== false"
520
+ [attr.aria-label]="rejectButtonLabel()"
525
521
  [buttonProps]="getRejectButtonProps()"
526
- [autofocus]="autoFocusReject"
522
+ [autofocus]="autoFocusReject()"
527
523
  [unstyled]="unstyled()"
528
524
  >
529
525
  <ng-template #icon>
530
- <i [class]="confirmation?.rejectIcon" *ngIf="confirmation?.rejectIcon; else rejecticon"></i>
531
- <ng-template #rejecticon *ngTemplateOutlet="rejectIconTemplate() || _rejectIconTemplate"></ng-template>
526
+ <i [class]="confirmation()?.rejectIcon" *ngIf="confirmation()?.rejectIcon; else rejecticon"></i>
527
+ <ng-template #rejecticon *ngTemplateOutlet="rejectIconTemplate() || _rejectIconTemplate()"></ng-template>
532
528
  </ng-template>
533
529
  </p-button>
534
530
  <p-button
535
531
  type="button"
536
- [label]="acceptButtonLabel"
532
+ [label]="acceptButtonLabel()"
537
533
  (onClick)="onAccept()"
538
534
  [pt]="ptm('pcAcceptButton')"
539
535
  [class]="cx('pcAcceptButton')"
540
- [styleClass]="confirmation?.acceptButtonStyleClass"
541
- [size]="confirmation?.acceptButtonProps?.size || 'small'"
542
- *ngIf="confirmation?.acceptVisible !== false"
543
- [attr.aria-label]="acceptButtonLabel"
536
+ [styleClass]="confirmation()?.acceptButtonStyleClass"
537
+ [size]="confirmation()?.acceptButtonProps?.size || 'small'"
538
+ *ngIf="confirmation()?.acceptVisible !== false"
539
+ [attr.aria-label]="acceptButtonLabel()"
544
540
  [buttonProps]="getAcceptButtonProps()"
545
- [autofocus]="autoFocusAccept"
541
+ [autofocus]="autoFocusAccept()"
546
542
  [unstyled]="unstyled()"
547
543
  >
548
544
  <ng-template #icon>
549
- <i [class]="confirmation?.acceptIcon" *ngIf="confirmation?.acceptIcon; else accepticontemplate"></i>
550
- <ng-template #accepticontemplate *ngTemplateOutlet="acceptIconTemplate() || _acceptIconTemplate"></ng-template>
545
+ <i [class]="confirmation()?.acceptIcon" *ngIf="confirmation()?.acceptIcon; else accepticontemplate"></i>
546
+ <ng-template #accepticontemplate *ngTemplateOutlet="acceptIconTemplate() || _acceptIconTemplate()"></ng-template>
551
547
  </ng-template>
552
548
  </p-button>
553
549
  </div>
554
550
  </ng-template>
555
551
  </div>
556
552
  }
557
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: SharedModule }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i3.Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "directive", type: FocusTrap, selector: "[pFocusTrap]", inputs: ["pFocusTrapDisabled"] }, { kind: "directive", type: Bind, selector: "[pBind]", inputs: ["pBind"] }, { kind: "ngmodule", type: MotionModule }, { kind: "directive", type: i4.MotionDirective, selector: "[pMotion]", inputs: ["pMotion", "pMotionName", "pMotionType", "pMotionSafe", "pMotionDisabled", "pMotionAppear", "pMotionEnter", "pMotionLeave", "pMotionDuration", "pMotionHideStrategy", "pMotionEnterFromClass", "pMotionEnterToClass", "pMotionEnterActiveClass", "pMotionLeaveFromClass", "pMotionLeaveToClass", "pMotionLeaveActiveClass", "pMotionOptions"], outputs: ["pMotionOnBeforeEnter", "pMotionOnEnter", "pMotionOnAfterEnter", "pMotionOnEnterCancelled", "pMotionOnBeforeLeave", "pMotionOnLeave", "pMotionOnAfterLeave", "pMotionOnLeaveCancelled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
553
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: SharedModule }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i3.Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "directive", type: FocusTrap, selector: "[pFocusTrap]", inputs: ["pFocusTrapDisabled"] }, { kind: "directive", type: Bind, selector: "[pBind]", inputs: ["pBind"] }, { kind: "ngmodule", type: MotionModule }, { kind: "directive", type: i4.MotionDirective, selector: "[pMotion]", inputs: ["pMotion", "pMotionName", "pMotionType", "pMotionSafe", "pMotionDisabled", "pMotionAppear", "pMotionEnter", "pMotionLeave", "pMotionDuration", "pMotionHideStrategy", "pMotionEnterFromClass", "pMotionEnterToClass", "pMotionEnterActiveClass", "pMotionLeaveFromClass", "pMotionLeaveToClass", "pMotionLeaveActiveClass", "pMotionOptions"], outputs: ["pMotionOnBeforeEnter", "pMotionOnEnter", "pMotionOnAfterEnter", "pMotionOnEnterCancelled", "pMotionOnBeforeLeave", "pMotionOnLeave", "pMotionOnAfterLeave", "pMotionOnLeaveCancelled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
558
554
  }
559
555
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: ConfirmPopup, decorators: [{
560
556
  type: Component,
561
557
  args: [{
562
558
  selector: 'p-confirmpopup',
563
- standalone: true,
564
559
  imports: [CommonModule, SharedModule, ButtonModule, FocusTrap, Bind, MotionModule],
565
560
  providers: [ConfirmPopupStyle, { provide: CONFIRMPOPUP_INSTANCE, useExisting: ConfirmPopup }, { provide: PARENT_INSTANCE, useExisting: ConfirmPopup }],
566
561
  hostDirectives: [Bind],
@@ -575,62 +570,62 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
575
570
  (pMotionOnAfterLeave)="onAfterLeave()"
576
571
  pFocusTrap
577
572
  [pBind]="ptm('root')"
578
- [class]="cn(cx('root'), styleClass)"
579
- [ngStyle]="style"
573
+ [class]="cn(cx('root'), styleClass())"
574
+ [ngStyle]="style()"
580
575
  role="alertdialog"
581
576
  (click)="onOverlayClick($event)"
582
577
  >
583
- <ng-container *ngIf="headlessTemplate() || _headlessTemplate; else notHeadless">
584
- <ng-container *ngTemplateOutlet="headlessTemplate() || _headlessTemplate; context: { $implicit: confirmation }"></ng-container>
578
+ <ng-container *ngIf="headlessTemplate() || _headlessTemplate(); else notHeadless">
579
+ <ng-container *ngTemplateOutlet="headlessTemplate() || _headlessTemplate(); context: { $implicit: confirmation() }"></ng-container>
585
580
  </ng-container>
586
581
  <ng-template #notHeadless>
587
582
  <div #content [pBind]="ptm('content')" [class]="cx('content')">
588
- <ng-container *ngIf="contentTemplate() || _contentTemplate; else withoutContentTemplate">
589
- <ng-container *ngTemplateOutlet="contentTemplate() || _contentTemplate; context: { $implicit: confirmation }"></ng-container>
583
+ <ng-container *ngIf="contentTemplate() || _contentTemplate(); else withoutContentTemplate">
584
+ <ng-container *ngTemplateOutlet="contentTemplate() || _contentTemplate(); context: { $implicit: confirmation() }"></ng-container>
590
585
  </ng-container>
591
586
  <ng-template #withoutContentTemplate>
592
- <i [pBind]="ptm('icon')" [class]="cx('icon')" *ngIf="confirmation?.icon"></i>
593
- <span [pBind]="ptm('message')" [class]="cx('message')">{{ confirmation?.message }}</span>
587
+ <i [pBind]="ptm('icon')" [class]="cx('icon')" *ngIf="confirmation()?.icon"></i>
588
+ <span [pBind]="ptm('message')" [class]="cx('message')">{{ confirmation()?.message }}</span>
594
589
  </ng-template>
595
590
  </div>
596
591
  <div [pBind]="ptm('footer')" [class]="cx('footer')">
597
592
  <p-button
598
593
  type="button"
599
- [label]="rejectButtonLabel"
594
+ [label]="rejectButtonLabel()"
600
595
  (onClick)="onReject()"
601
596
  [pt]="ptm('pcRejectButton')"
602
597
  [class]="cx('pcRejectButton')"
603
- [styleClass]="confirmation?.rejectButtonStyleClass"
604
- [size]="confirmation?.rejectButtonProps?.size || 'small'"
605
- [text]="confirmation?.rejectButtonProps?.text || false"
606
- *ngIf="confirmation?.rejectVisible !== false"
607
- [attr.aria-label]="rejectButtonLabel"
598
+ [styleClass]="confirmation()?.rejectButtonStyleClass"
599
+ [size]="confirmation()?.rejectButtonProps?.size || 'small'"
600
+ [text]="confirmation()?.rejectButtonProps?.text || false"
601
+ *ngIf="confirmation()?.rejectVisible !== false"
602
+ [attr.aria-label]="rejectButtonLabel()"
608
603
  [buttonProps]="getRejectButtonProps()"
609
- [autofocus]="autoFocusReject"
604
+ [autofocus]="autoFocusReject()"
610
605
  [unstyled]="unstyled()"
611
606
  >
612
607
  <ng-template #icon>
613
- <i [class]="confirmation?.rejectIcon" *ngIf="confirmation?.rejectIcon; else rejecticon"></i>
614
- <ng-template #rejecticon *ngTemplateOutlet="rejectIconTemplate() || _rejectIconTemplate"></ng-template>
608
+ <i [class]="confirmation()?.rejectIcon" *ngIf="confirmation()?.rejectIcon; else rejecticon"></i>
609
+ <ng-template #rejecticon *ngTemplateOutlet="rejectIconTemplate() || _rejectIconTemplate()"></ng-template>
615
610
  </ng-template>
616
611
  </p-button>
617
612
  <p-button
618
613
  type="button"
619
- [label]="acceptButtonLabel"
614
+ [label]="acceptButtonLabel()"
620
615
  (onClick)="onAccept()"
621
616
  [pt]="ptm('pcAcceptButton')"
622
617
  [class]="cx('pcAcceptButton')"
623
- [styleClass]="confirmation?.acceptButtonStyleClass"
624
- [size]="confirmation?.acceptButtonProps?.size || 'small'"
625
- *ngIf="confirmation?.acceptVisible !== false"
626
- [attr.aria-label]="acceptButtonLabel"
618
+ [styleClass]="confirmation()?.acceptButtonStyleClass"
619
+ [size]="confirmation()?.acceptButtonProps?.size || 'small'"
620
+ *ngIf="confirmation()?.acceptVisible !== false"
621
+ [attr.aria-label]="acceptButtonLabel()"
627
622
  [buttonProps]="getAcceptButtonProps()"
628
- [autofocus]="autoFocusAccept"
623
+ [autofocus]="autoFocusAccept()"
629
624
  [unstyled]="unstyled()"
630
625
  >
631
626
  <ng-template #icon>
632
- <i [class]="confirmation?.acceptIcon" *ngIf="confirmation?.acceptIcon; else accepticontemplate"></i>
633
- <ng-template #accepticontemplate *ngTemplateOutlet="acceptIconTemplate() || _acceptIconTemplate"></ng-template>
627
+ <i [class]="confirmation()?.acceptIcon" *ngIf="confirmation()?.acceptIcon; else accepticontemplate"></i>
628
+ <ng-template #accepticontemplate *ngTemplateOutlet="acceptIconTemplate() || _acceptIconTemplate()"></ng-template>
634
629
  </ng-template>
635
630
  </p-button>
636
631
  </div>
@@ -641,25 +636,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
641
636
  changeDetection: ChangeDetectionStrategy.OnPush,
642
637
  encapsulation: ViewEncapsulation.None
643
638
  }]
644
- }], ctorParameters: () => [], propDecorators: { key: [{
645
- type: Input
646
- }], defaultFocus: [{
647
- type: Input
648
- }], showTransitionOptions: [{
649
- type: Input
650
- }], hideTransitionOptions: [{
651
- type: Input
652
- }], autoZIndex: [{
653
- type: Input,
654
- args: [{ transform: booleanAttribute }]
655
- }], baseZIndex: [{
656
- type: Input,
657
- args: [{ transform: numberAttribute }]
658
- }], style: [{
659
- type: Input
660
- }], styleClass: [{
661
- type: Input
662
- }], visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }], motionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionOptions", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], contentTemplate: [{ type: i0.ContentChild, args: ['content', { ...{ descendants: false }, isSignal: true }] }], acceptIconTemplate: [{ type: i0.ContentChild, args: ['accepticon', { ...{ descendants: false }, isSignal: true }] }], rejectIconTemplate: [{ type: i0.ContentChild, args: ['rejecticon', { ...{ descendants: false }, isSignal: true }] }], headlessTemplate: [{ type: i0.ContentChild, args: ['headless', { ...{ descendants: false }, isSignal: true }] }], acceptButtonViewChild: [{ type: i0.ViewChild, args: ['acceptButton', { ...{ read: ElementRef }, isSignal: true }] }], rejectButtonViewChild: [{ type: i0.ViewChild, args: ['rejectButton', { ...{ read: ElementRef }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }], onEscapeKeydown: [{
639
+ }], ctorParameters: () => [], propDecorators: { key: [{ type: i0.Input, args: [{ isSignal: true, alias: "key", required: false }] }], defaultFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultFocus", required: false }] }], autoZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoZIndex", required: false }] }], baseZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "baseZIndex", required: false }] }], style: [{ type: i0.Input, args: [{ isSignal: true, alias: "style", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }], motionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionOptions", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], contentTemplate: [{ type: i0.ContentChild, args: ['content', { ...{ descendants: false }, isSignal: true }] }], acceptIconTemplate: [{ type: i0.ContentChild, args: ['accepticon', { ...{ descendants: false }, isSignal: true }] }], rejectIconTemplate: [{ type: i0.ContentChild, args: ['rejecticon', { ...{ descendants: false }, isSignal: true }] }], headlessTemplate: [{ type: i0.ContentChild, args: ['headless', { ...{ descendants: false }, isSignal: true }] }], acceptButtonViewChild: [{ type: i0.ViewChild, args: ['acceptButton', { ...{ read: ElementRef }, isSignal: true }] }], rejectButtonViewChild: [{ type: i0.ViewChild, args: ['rejectButton', { ...{ read: ElementRef }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }], onEscapeKeydown: [{
663
640
  type: HostListener,
664
641
  args: ['document:keydown.Escape', ['$event']]
665
642
  }] } });