@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/popover';
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, contentChild, contentChildren, NgZone, booleanAttribute, numberAttribute, HostListener, Input, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
5
+ import { Injectable, inject, afterEveryRender, input, booleanAttribute, numberAttribute, computed, output, signal, contentChild, contentChildren, NgZone, HostListener, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
6
6
  import { $dt } from '@exhaustive-ui/styled';
7
7
  import { isIOS, appendChild, absolutePosition, getOffset, addClass, findSingle, isTouchDevice } from '@exhaustive-ui/utils';
8
8
  import { PrimeTemplate, OverlayService, SharedModule } from '@exhaustive-ui/core/api';
@@ -35,43 +35,46 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
35
35
  type: Injectable
36
36
  }] });
37
37
 
38
- const POPOVER_INSTANCE = new InjectionToken('POPOVER_INSTANCE');
39
38
  /**
40
39
  * Popover is a container component that can overlay other components on page.
41
40
  * @group Components
42
41
  */
43
42
  class Popover extends BaseComponent {
44
43
  componentName = 'Popover';
45
- $pcPopover = inject(POPOVER_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
46
44
  bindDirectiveInstance = inject(Bind, { self: true });
47
- onAfterViewChecked() {
48
- this.bindDirectiveInstance.setAttrs(this.ptm('host'));
45
+ constructor() {
46
+ super();
47
+ afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptm('host')));
49
48
  }
50
49
  /**
51
50
  * Defines a string that labels the input for accessibility.
52
51
  * @group Props
53
52
  */
54
- ariaLabel;
53
+ ariaLabel = input(undefined, /* @ts-ignore */
54
+ ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
55
55
  /**
56
56
  * Establishes relationships between the component and label(s) where its value should be one or more element IDs.
57
57
  * @group Props
58
58
  */
59
- ariaLabelledBy;
59
+ ariaLabelledBy = input(undefined, /* @ts-ignore */
60
+ ...(ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []));
60
61
  /**
61
62
  * Enables to hide the overlay when outside is clicked.
62
63
  * @group Props
63
64
  */
64
- dismissable = true;
65
+ dismissable = input(true, { ...(ngDevMode ? { debugName: "dismissable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
65
66
  /**
66
67
  * Inline style of the component.
67
68
  * @group Props
68
69
  */
69
- style;
70
+ style = input(undefined, /* @ts-ignore */
71
+ ...(ngDevMode ? [{ debugName: "style" }] : /* istanbul ignore next */ []));
70
72
  /**
71
73
  * Style class of the component.
72
74
  * @group Props
73
75
  */
74
- styleClass;
76
+ styleClass = input(undefined, /* @ts-ignore */
77
+ ...(ngDevMode ? [{ debugName: "styleClass" }] : /* istanbul ignore next */ []));
75
78
  /**
76
79
  * Target element to attach the overlay, valid values are "body" or a local ng-template variable of another element (note: use binding with brackets for template variables, e.g. [appendTo]="mydiv" for a div element having #mydiv as variable name).
77
80
  * @defaultValue 'self'
@@ -83,34 +86,17 @@ class Popover extends BaseComponent {
83
86
  * Whether to automatically manage layering.
84
87
  * @group Props
85
88
  */
86
- autoZIndex = true;
87
- /**
88
- * Aria label of the close icon.
89
- * @group Props
90
- */
91
- ariaCloseLabel;
89
+ autoZIndex = input(true, { ...(ngDevMode ? { debugName: "autoZIndex" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
92
90
  /**
93
91
  * Base zIndex value to use in layering.
94
92
  * @group Props
95
93
  */
96
- baseZIndex = 0;
94
+ baseZIndex = input(0, { ...(ngDevMode ? { debugName: "baseZIndex" } : /* istanbul ignore next */ {}), transform: numberAttribute });
97
95
  /**
98
96
  * When enabled, first button receives focus on show.
99
97
  * @group Props
100
98
  */
101
- focusOnShow = true;
102
- /**
103
- * Transition options of the show animation.
104
- * @group Props
105
- * @deprecated since v21.0.0. Use `motionOptions` instead.
106
- */
107
- showTransitionOptions = '.12s cubic-bezier(0, 0, 0.2, 1)';
108
- /**
109
- * Transition options of the hide animation.
110
- * @group Props
111
- * @deprecated since v21.0.0. Use `motionOptions` instead.
112
- */
113
- hideTransitionOptions = '.1s linear';
99
+ focusOnShow = input(true, { ...(ngDevMode ? { debugName: "focusOnShow" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
114
100
  /**
115
101
  * The motion options.
116
102
  * @group Props
@@ -136,15 +122,22 @@ class Popover extends BaseComponent {
136
122
  onHide = output();
137
123
  $appendTo = computed(() => this.appendTo() || this.config.overlayAppendTo(), /* @ts-ignore */
138
124
  ...(ngDevMode ? [{ debugName: "$appendTo" }] : /* istanbul ignore next */ []));
139
- container;
140
- overlayVisible = false;
141
- render = false;
142
- selfClick = false;
143
- documentClickListener;
144
- target;
145
- willHide;
146
- scrollHandler;
147
- documentResizeListener;
125
+ container = signal(undefined, /* @ts-ignore */
126
+ ...(ngDevMode ? [{ debugName: "container" }] : /* istanbul ignore next */ []));
127
+ overlayVisible = signal(false, /* @ts-ignore */
128
+ ...(ngDevMode ? [{ debugName: "overlayVisible" }] : /* istanbul ignore next */ []));
129
+ render = signal(false, /* @ts-ignore */
130
+ ...(ngDevMode ? [{ debugName: "render" }] : /* istanbul ignore next */ []));
131
+ selfClick = signal(false, /* @ts-ignore */
132
+ ...(ngDevMode ? [{ debugName: "selfClick" }] : /* istanbul ignore next */ []));
133
+ documentClickListener = signal(undefined, /* @ts-ignore */
134
+ ...(ngDevMode ? [{ debugName: "documentClickListener" }] : /* istanbul ignore next */ []));
135
+ target = signal(undefined, /* @ts-ignore */
136
+ ...(ngDevMode ? [{ debugName: "target" }] : /* istanbul ignore next */ []));
137
+ scrollHandler = signal(undefined, /* @ts-ignore */
138
+ ...(ngDevMode ? [{ debugName: "scrollHandler" }] : /* istanbul ignore next */ []));
139
+ documentResizeListener = signal(undefined, /* @ts-ignore */
140
+ ...(ngDevMode ? [{ debugName: "documentResizeListener" }] : /* istanbul ignore next */ []));
148
141
  /**
149
142
  * Custom content template.
150
143
  * @param {PopoverContentTemplateContext} context - content context.
@@ -154,45 +147,43 @@ class Popover extends BaseComponent {
154
147
  contentTemplate = contentChild('content', { ...(ngDevMode ? { debugName: "contentTemplate" } : /* istanbul ignore next */ {}), descendants: false });
155
148
  templates = contentChildren(PrimeTemplate, /* @ts-ignore */
156
149
  ...(ngDevMode ? [{ debugName: "templates" }] : /* istanbul ignore next */ []));
157
- _contentTemplate;
158
- destroyCallback;
159
- overlayEventListener;
160
- overlaySubscription;
150
+ _contentTemplate = computed(() => this.templates()
151
+ .filter((item) => item.getType() === 'content')
152
+ .at(-1)?.template, /* @ts-ignore */
153
+ ...(ngDevMode ? [{ debugName: "_contentTemplate" }] : /* istanbul ignore next */ []));
154
+ destroyCallback = signal(undefined, /* @ts-ignore */
155
+ ...(ngDevMode ? [{ debugName: "destroyCallback" }] : /* istanbul ignore next */ []));
156
+ overlayEventListener = signal(undefined, /* @ts-ignore */
157
+ ...(ngDevMode ? [{ debugName: "overlayEventListener" }] : /* istanbul ignore next */ []));
158
+ overlaySubscription = signal(undefined, /* @ts-ignore */
159
+ ...(ngDevMode ? [{ debugName: "overlaySubscription" }] : /* istanbul ignore next */ []));
161
160
  _componentStyle = inject(PopoverStyle);
162
161
  zone = inject(NgZone);
163
162
  overlayService = inject(OverlayService);
164
- onAfterContentInit() {
165
- this.templates().forEach((item) => {
166
- switch (item.getType()) {
167
- case 'content':
168
- this._contentTemplate = item.template;
169
- break;
170
- }
171
- });
172
- }
173
163
  bindDocumentClickListener() {
174
164
  if (isPlatformBrowser(this.platformId)) {
175
- if (!this.documentClickListener) {
165
+ if (!this.documentClickListener()) {
176
166
  let documentEvent = isIOS() ? 'touchstart' : 'click';
177
167
  const documentTarget = this.el ? this.el.nativeElement.ownerDocument : this.document;
178
- this.documentClickListener = this.renderer.listen(documentTarget, documentEvent, (event) => {
179
- if (!this.dismissable) {
168
+ this.documentClickListener.set(this.renderer.listen(documentTarget, documentEvent, (event) => {
169
+ if (!this.dismissable()) {
180
170
  return;
181
171
  }
182
- if (!this.container?.contains(event.target) && this.target !== event.target && !this.target.contains(event.target) && !this.selfClick) {
172
+ const target = this.target();
173
+ if (!this.container()?.contains(event.target) && target !== event.target && !target.contains(event.target) && !this.selfClick()) {
183
174
  this.hide();
184
175
  }
185
- this.selfClick = false;
186
- this.cd.markForCheck();
187
- });
176
+ this.selfClick.set(false);
177
+ }));
188
178
  }
189
179
  }
190
180
  }
191
181
  unbindDocumentClickListener() {
192
- if (this.documentClickListener) {
193
- this.documentClickListener();
194
- this.documentClickListener = null;
195
- this.selfClick = false;
182
+ const documentClickListener = this.documentClickListener();
183
+ if (documentClickListener) {
184
+ documentClickListener();
185
+ this.documentClickListener.set(null);
186
+ this.selfClick.set(false);
196
187
  }
197
188
  }
198
189
  /**
@@ -202,11 +193,11 @@ class Popover extends BaseComponent {
202
193
  * @group Method
203
194
  */
204
195
  toggle(event, target) {
205
- if (this.overlayVisible) {
196
+ if (this.overlayVisible()) {
206
197
  if (this.hasTargetChanged(event, target)) {
207
- this.destroyCallback = () => {
198
+ this.destroyCallback.set(() => {
208
199
  this.show(null, target || event.currentTarget || event.target);
209
- };
200
+ });
210
201
  }
211
202
  this.hide();
212
203
  }
@@ -223,105 +214,111 @@ class Popover extends BaseComponent {
223
214
  show(event, target) {
224
215
  target && event && event.stopPropagation();
225
216
  // Clear container if it exists from previous show
226
- if (this.container && !this.overlayVisible) {
227
- this.container = null;
217
+ if (this.container() && !this.overlayVisible()) {
218
+ this.container.set(null);
228
219
  }
229
- this.target = target || event.currentTarget || event.target;
230
- this.overlayVisible = true;
231
- this.render = true;
232
- this.cd.markForCheck();
220
+ this.target.set(target || event.currentTarget || event.target);
221
+ this.overlayVisible.set(true);
222
+ this.render.set(true);
233
223
  }
234
224
  onOverlayClick(event) {
235
225
  this.overlayService.add({
236
226
  originalEvent: event,
237
227
  target: this.el.nativeElement
238
228
  });
239
- this.selfClick = true;
229
+ this.selfClick.set(true);
240
230
  }
241
231
  onContentClick(event) {
242
232
  const targetElement = event.target;
243
- this.selfClick = event.offsetX < targetElement.clientWidth && event.offsetY < targetElement.clientHeight;
233
+ this.selfClick.set(event.offsetX < targetElement.clientWidth && event.offsetY < targetElement.clientHeight);
244
234
  }
245
235
  hasTargetChanged(event, target) {
246
- return this.target != null && this.target !== (target || event.currentTarget || event.target);
236
+ return this.target() != null && this.target() !== (target || event.currentTarget || event.target);
247
237
  }
248
238
  appendOverlay() {
249
239
  if (this.$appendTo() && this.$appendTo() !== 'self') {
250
240
  if (this.$appendTo() === 'body') {
251
- appendChild(this.document.body, this.container);
241
+ appendChild(this.document.body, this.container());
252
242
  }
253
243
  else {
254
- appendChild(this.$appendTo(), this.container);
244
+ appendChild(this.$appendTo(), this.container());
255
245
  }
256
246
  }
257
247
  }
258
248
  restoreAppend() {
259
- if (this.container && this.$appendTo() && this.$appendTo() !== 'self') {
260
- appendChild(this.el.nativeElement, this.container);
249
+ const container = this.container();
250
+ if (container && this.$appendTo() && this.$appendTo() !== 'self') {
251
+ appendChild(this.el.nativeElement, container);
261
252
  }
262
253
  }
263
254
  setZIndex() {
264
- if (this.autoZIndex) {
265
- ZIndexUtils.set('overlay', this.container, this.baseZIndex + this.config.zIndex.overlay);
255
+ if (this.autoZIndex()) {
256
+ ZIndexUtils.set('overlay', this.container(), this.baseZIndex() + this.config.zIndex.overlay);
266
257
  }
267
258
  }
268
259
  align() {
269
- if (this.target && this.container) {
270
- absolutePosition(this.container, this.target, false);
271
- const containerOffset = getOffset(this.container);
272
- const targetOffset = getOffset(this.target);
273
- const borderRadius = this.document.defaultView?.getComputedStyle(this.container).getPropertyValue('border-radius');
260
+ const container = this.container();
261
+ const target = this.target();
262
+ if (target && container) {
263
+ absolutePosition(container, target, false);
264
+ const containerOffset = getOffset(container);
265
+ const targetOffset = getOffset(target);
266
+ const borderRadius = this.document.defaultView?.getComputedStyle(container).getPropertyValue('border-radius');
274
267
  let arrowLeft = 0;
275
268
  if (containerOffset.left < targetOffset.left) {
276
269
  arrowLeft = targetOffset.left - containerOffset.left - parseFloat(borderRadius) * 2;
277
270
  }
278
- this.container.style.setProperty($dt('popover.arrow.left').name, `${arrowLeft}px`);
271
+ container.style.setProperty($dt('popover.arrow.left').name, `${arrowLeft}px`);
279
272
  if (containerOffset.top < targetOffset.top) {
280
- this.container.setAttribute('data-p-popover-flipped', 'true');
281
- !this.$unstyled() && addClass(this.container, 'p-popover-flipped');
273
+ container.setAttribute('data-p-popover-flipped', 'true');
274
+ !this.$unstyled() && addClass(container, 'p-popover-flipped');
282
275
  }
283
276
  }
284
277
  }
285
278
  onAnimationStart(event) {
286
- this.container = event.element;
287
- this.container?.setAttribute(this.$attrSelector, '');
279
+ const container = event.element;
280
+ this.container.set(container);
281
+ container?.setAttribute(this.$attrSelector, '');
288
282
  this.appendOverlay();
289
283
  this.align();
290
284
  this.setZIndex();
291
285
  this.bindDocumentClickListener();
292
286
  this.bindDocumentResizeListener();
293
287
  this.bindScrollListener();
294
- if (this.focusOnShow) {
288
+ if (this.focusOnShow()) {
295
289
  this.focus();
296
290
  }
297
- this.overlayEventListener = (e) => {
298
- if (this.container && this.container.contains(e.target)) {
299
- this.selfClick = true;
291
+ this.overlayEventListener.set((e) => {
292
+ const container = this.container();
293
+ if (container && container.contains(e.target)) {
294
+ this.selfClick.set(true);
300
295
  }
301
- };
302
- this.overlaySubscription = this.overlayService.clickObservable.subscribe(this.overlayEventListener);
296
+ });
297
+ this.overlaySubscription.set(this.overlayService.clickObservable.subscribe(this.overlayEventListener()));
303
298
  this.onShow.emit(null);
304
299
  }
305
300
  onAnimationEnd() {
306
- if (!this.overlayVisible) {
307
- if (this.destroyCallback) {
308
- this.destroyCallback();
309
- this.destroyCallback = null;
301
+ if (!this.overlayVisible()) {
302
+ const destroyCallback = this.destroyCallback();
303
+ if (destroyCallback) {
304
+ destroyCallback();
305
+ this.destroyCallback.set(null);
310
306
  }
311
- if (this.overlaySubscription) {
312
- this.overlaySubscription.unsubscribe();
307
+ const overlaySubscription = this.overlaySubscription();
308
+ if (overlaySubscription) {
309
+ overlaySubscription.unsubscribe();
313
310
  }
314
- if (this.autoZIndex) {
315
- ZIndexUtils.clear(this.container);
311
+ if (this.autoZIndex()) {
312
+ ZIndexUtils.clear(this.container());
316
313
  }
317
314
  this.onContainerDestroy();
318
315
  this.onHide.emit({});
319
- this.render = false;
320
- this.container = null;
316
+ this.render.set(false);
317
+ this.container.set(null);
321
318
  }
322
319
  }
323
320
  focus() {
324
- let focusable = findSingle(this.container, '[autofocus]');
321
+ let focusable = findSingle(this.container(), '[autofocus]');
325
322
  if (focusable) {
326
323
  this.zone.runOutsideAngular(() => {
327
324
  setTimeout(() => focusable.focus(), 5);
@@ -333,8 +330,7 @@ class Popover extends BaseComponent {
333
330
  * @group Method
334
331
  */
335
332
  hide() {
336
- this.overlayVisible = false;
337
- this.cd.markForCheck();
333
+ this.overlayVisible.set(false);
338
334
  }
339
335
  onCloseClick(event) {
340
336
  this.hide();
@@ -344,83 +340,87 @@ class Popover extends BaseComponent {
344
340
  this.hide();
345
341
  }
346
342
  onWindowResize() {
347
- if (this.overlayVisible && !isTouchDevice()) {
343
+ if (this.overlayVisible() && !isTouchDevice()) {
348
344
  this.hide();
349
345
  }
350
346
  }
351
347
  bindDocumentResizeListener() {
352
348
  if (isPlatformBrowser(this.platformId)) {
353
- if (!this.documentResizeListener) {
349
+ if (!this.documentResizeListener()) {
354
350
  const window = this.document.defaultView;
355
- this.documentResizeListener = this.renderer.listen(window, 'resize', this.onWindowResize.bind(this));
351
+ this.documentResizeListener.set(this.renderer.listen(window, 'resize', this.onWindowResize.bind(this)));
356
352
  }
357
353
  }
358
354
  }
359
355
  unbindDocumentResizeListener() {
360
- if (this.documentResizeListener) {
361
- this.documentResizeListener();
362
- this.documentResizeListener = null;
356
+ const documentResizeListener = this.documentResizeListener();
357
+ if (documentResizeListener) {
358
+ documentResizeListener();
359
+ this.documentResizeListener.set(null);
363
360
  }
364
361
  }
365
362
  bindScrollListener() {
366
363
  if (isPlatformBrowser(this.platformId)) {
367
- if (!this.scrollHandler) {
368
- this.scrollHandler = new ConnectedOverlayScrollHandler(this.target, () => {
369
- if (this.overlayVisible) {
364
+ if (!this.scrollHandler()) {
365
+ this.scrollHandler.set(new ConnectedOverlayScrollHandler(this.target(), () => {
366
+ if (this.overlayVisible()) {
370
367
  this.hide();
371
368
  }
372
- });
369
+ }));
373
370
  }
374
- this.scrollHandler.bindScrollListener();
371
+ this.scrollHandler().bindScrollListener();
375
372
  }
376
373
  }
377
374
  unbindScrollListener() {
378
- if (this.scrollHandler) {
379
- this.scrollHandler.unbindScrollListener();
375
+ const scrollHandler = this.scrollHandler();
376
+ if (scrollHandler) {
377
+ scrollHandler.unbindScrollListener();
380
378
  }
381
379
  }
382
380
  onContainerDestroy() {
383
381
  if (!this.cd.destroyed) {
384
- this.target = null;
382
+ this.target.set(null);
385
383
  }
386
384
  this.unbindDocumentClickListener();
387
385
  this.unbindDocumentResizeListener();
388
386
  this.unbindScrollListener();
389
387
  }
390
388
  onDestroy() {
391
- if (this.scrollHandler) {
392
- this.scrollHandler.destroy();
393
- this.scrollHandler = null;
389
+ const scrollHandler = this.scrollHandler();
390
+ if (scrollHandler) {
391
+ scrollHandler.destroy();
392
+ this.scrollHandler.set(null);
394
393
  }
395
- if (this.container && this.autoZIndex) {
396
- ZIndexUtils.clear(this.container);
394
+ if (this.container() && this.autoZIndex()) {
395
+ ZIndexUtils.clear(this.container());
397
396
  }
398
397
  if (!this.cd.destroyed) {
399
- this.target = null;
398
+ this.target.set(null);
400
399
  }
401
- this.destroyCallback = null;
402
- if (this.container) {
400
+ this.destroyCallback.set(null);
401
+ if (this.container()) {
403
402
  this.restoreAppend();
404
403
  this.onContainerDestroy();
405
404
  }
406
- if (this.overlaySubscription) {
407
- this.overlaySubscription.unsubscribe();
405
+ const overlaySubscription = this.overlaySubscription();
406
+ if (overlaySubscription) {
407
+ overlaySubscription.unsubscribe();
408
408
  }
409
409
  }
410
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Popover, deps: null, target: i0.ɵɵFactoryTarget.Component });
411
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: Popover, isStandalone: true, selector: "p-popover", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: false, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: false, isRequired: false, transformFunction: null }, dismissable: { classPropertyName: "dismissable", publicName: "dismissable", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, style: { classPropertyName: "style", publicName: "style", isSignal: false, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: false, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, autoZIndex: { classPropertyName: "autoZIndex", publicName: "autoZIndex", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, ariaCloseLabel: { classPropertyName: "ariaCloseLabel", publicName: "ariaCloseLabel", isSignal: false, isRequired: false, transformFunction: null }, baseZIndex: { classPropertyName: "baseZIndex", publicName: "baseZIndex", isSignal: false, isRequired: false, transformFunction: numberAttribute }, focusOnShow: { classPropertyName: "focusOnShow", publicName: "focusOnShow", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, showTransitionOptions: { classPropertyName: "showTransitionOptions", publicName: "showTransitionOptions", isSignal: false, isRequired: false, transformFunction: null }, hideTransitionOptions: { classPropertyName: "hideTransitionOptions", publicName: "hideTransitionOptions", isSignal: false, isRequired: false, transformFunction: null }, motionOptions: { classPropertyName: "motionOptions", publicName: "motionOptions", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onShow: "onShow", onHide: "onHide" }, host: { listeners: { "document:keydown.escape": "onEscapeKeydown($event)" } }, providers: [PopoverStyle, { provide: POPOVER_INSTANCE, useExisting: Popover }, { provide: PARENT_INSTANCE, useExisting: Popover }], queries: [{ propertyName: "contentTemplate", first: true, predicate: ["content"], isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
412
- @if (render) {
410
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Popover, deps: [], target: i0.ɵɵFactoryTarget.Component });
411
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: Popover, isStandalone: true, selector: "p-popover", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, dismissable: { classPropertyName: "dismissable", publicName: "dismissable", 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 }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", 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 }, focusOnShow: { classPropertyName: "focusOnShow", publicName: "focusOnShow", isSignal: true, isRequired: false, transformFunction: null }, motionOptions: { classPropertyName: "motionOptions", publicName: "motionOptions", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onShow: "onShow", onHide: "onHide" }, host: { listeners: { "document:keydown.escape": "onEscapeKeydown($event)" } }, providers: [PopoverStyle, { provide: PARENT_INSTANCE, useExisting: Popover }], queries: [{ propertyName: "contentTemplate", first: true, predicate: ["content"], isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
412
+ @if (render()) {
413
413
  <div
414
414
  [pBind]="ptm('root')"
415
- [class]="cn(cx('root'), styleClass)"
415
+ [class]="cn(cx('root'), styleClass())"
416
416
  [style]="sx('root')"
417
- [ngStyle]="style"
417
+ [ngStyle]="style()"
418
418
  (click)="onOverlayClick($event)"
419
419
  role="dialog"
420
- [attr.aria-modal]="overlayVisible"
421
- [attr.aria-label]="ariaLabel"
422
- [attr.aria-labelledBy]="ariaLabelledBy"
423
- [pMotion]="overlayVisible"
420
+ [attr.aria-modal]="overlayVisible()"
421
+ [attr.aria-label]="ariaLabel()"
422
+ [attr.aria-labelledBy]="ariaLabelledBy()"
423
+ [pMotion]="overlayVisible()"
424
424
  pMotionName="p-anchored-overlay"
425
425
  [pMotionAppear]="true"
426
426
  (pMotionOnEnter)="onAnimationStart($event)"
@@ -429,7 +429,7 @@ class Popover extends BaseComponent {
429
429
  >
430
430
  <div [pBind]="ptm('content')" [class]="cx('content')" (click)="onContentClick($event)" (mousedown)="onContentClick($event)">
431
431
  <ng-content></ng-content>
432
- <ng-template *ngTemplateOutlet="contentTemplate() || _contentTemplate; context: { closeCallback: onCloseClick.bind(this) }"></ng-template>
432
+ <ng-template *ngTemplateOutlet="contentTemplate() || _contentTemplate(); context: { closeCallback: onCloseClick.bind(this) }"></ng-template>
433
433
  </div>
434
434
  </div>
435
435
  }
@@ -439,23 +439,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
439
439
  type: Component,
440
440
  args: [{
441
441
  selector: 'p-popover',
442
- standalone: true,
443
442
  imports: [CommonModule, SharedModule, Bind, MotionModule],
444
- providers: [PopoverStyle, { provide: POPOVER_INSTANCE, useExisting: Popover }, { provide: PARENT_INSTANCE, useExisting: Popover }],
443
+ providers: [PopoverStyle, { provide: PARENT_INSTANCE, useExisting: Popover }],
445
444
  hostDirectives: [Bind],
446
445
  template: `
447
- @if (render) {
446
+ @if (render()) {
448
447
  <div
449
448
  [pBind]="ptm('root')"
450
- [class]="cn(cx('root'), styleClass)"
449
+ [class]="cn(cx('root'), styleClass())"
451
450
  [style]="sx('root')"
452
- [ngStyle]="style"
451
+ [ngStyle]="style()"
453
452
  (click)="onOverlayClick($event)"
454
453
  role="dialog"
455
- [attr.aria-modal]="overlayVisible"
456
- [attr.aria-label]="ariaLabel"
457
- [attr.aria-labelledBy]="ariaLabelledBy"
458
- [pMotion]="overlayVisible"
454
+ [attr.aria-modal]="overlayVisible()"
455
+ [attr.aria-label]="ariaLabel()"
456
+ [attr.aria-labelledBy]="ariaLabelledBy()"
457
+ [pMotion]="overlayVisible()"
459
458
  pMotionName="p-anchored-overlay"
460
459
  [pMotionAppear]="true"
461
460
  (pMotionOnEnter)="onAnimationStart($event)"
@@ -464,7 +463,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
464
463
  >
465
464
  <div [pBind]="ptm('content')" [class]="cx('content')" (click)="onContentClick($event)" (mousedown)="onContentClick($event)">
466
465
  <ng-content></ng-content>
467
- <ng-template *ngTemplateOutlet="contentTemplate() || _contentTemplate; context: { closeCallback: onCloseClick.bind(this) }"></ng-template>
466
+ <ng-template *ngTemplateOutlet="contentTemplate() || _contentTemplate(); context: { closeCallback: onCloseClick.bind(this) }"></ng-template>
468
467
  </div>
469
468
  </div>
470
469
  }
@@ -472,33 +471,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
472
471
  changeDetection: ChangeDetectionStrategy.OnPush,
473
472
  encapsulation: ViewEncapsulation.None
474
473
  }]
475
- }], propDecorators: { ariaLabel: [{
476
- type: Input
477
- }], ariaLabelledBy: [{
478
- type: Input
479
- }], dismissable: [{
480
- type: Input,
481
- args: [{ transform: booleanAttribute }]
482
- }], style: [{
483
- type: Input
484
- }], styleClass: [{
485
- type: Input
486
- }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], autoZIndex: [{
487
- type: Input,
488
- args: [{ transform: booleanAttribute }]
489
- }], ariaCloseLabel: [{
490
- type: Input
491
- }], baseZIndex: [{
492
- type: Input,
493
- args: [{ transform: numberAttribute }]
494
- }], focusOnShow: [{
495
- type: Input,
496
- args: [{ transform: booleanAttribute }]
497
- }], showTransitionOptions: [{
498
- type: Input
499
- }], hideTransitionOptions: [{
500
- type: Input
501
- }], motionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionOptions", required: false }] }], onShow: [{ type: i0.Output, args: ["onShow"] }], onHide: [{ type: i0.Output, args: ["onHide"] }], contentTemplate: [{ type: i0.ContentChild, args: ['content', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }], onEscapeKeydown: [{
474
+ }], ctorParameters: () => [], propDecorators: { ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], dismissable: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissable", required: false }] }], style: [{ type: i0.Input, args: [{ isSignal: true, alias: "style", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], autoZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoZIndex", required: false }] }], baseZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "baseZIndex", required: false }] }], focusOnShow: [{ type: i0.Input, args: [{ isSignal: true, alias: "focusOnShow", required: false }] }], motionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionOptions", required: false }] }], onShow: [{ type: i0.Output, args: ["onShow"] }], onHide: [{ type: i0.Output, args: ["onHide"] }], contentTemplate: [{ type: i0.ContentChild, args: ['content', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }], onEscapeKeydown: [{
502
475
  type: HostListener,
503
476
  args: ['document:keydown.escape', ['$event']]
504
477
  }] } });