@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
@@ -1,7 +1,7 @@
1
1
  import * as i2 from '@angular/common';
2
2
  import { CommonModule, DOCUMENT } from '@angular/common';
3
3
  import * as i0 from '@angular/core';
4
- import { inject, ViewContainerRef, Directive, Injectable, InjectionToken, viewChild, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule, ApplicationRef, Injector, createComponent } from '@angular/core';
4
+ import { inject, ViewContainerRef, Directive, Injectable, InjectionToken, afterEveryRender, afterNextRender, signal, viewChild, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule, ApplicationRef, Injector, createComponent } from '@angular/core';
5
5
  import { uuid, appendChild } from '@exhaustive-ui/utils';
6
6
  import { TranslationKeys, SharedModule } from '@exhaustive-ui/core/api';
7
7
  import { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';
@@ -82,6 +82,7 @@ class DynamicDialogConfig {
82
82
  dismissableMask = false;
83
83
  /**
84
84
  * Inline style of the component.
85
+ * @deprecated since v3.0.0. It has no effect anymore: the dialog never read it.
85
86
  * @group Props
86
87
  */
87
88
  rtl = false;
@@ -102,6 +103,7 @@ class DynamicDialogConfig {
102
103
  styleClass;
103
104
  /**
104
105
  * Transition options of the animation.
106
+ * @deprecated since v3.0.0. It has no effect anymore: the dialog animation is driven by motion options.
105
107
  * @group Props
106
108
  */
107
109
  transitionOptions;
@@ -403,16 +405,25 @@ class DynamicDialog extends BaseComponent {
403
405
  _componentStyle = inject(DynamicDialogStyle);
404
406
  $pcDynamicDialog = inject(DYNAMIC_DIALOG_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
405
407
  bindDirectiveInstance = inject(Bind, { self: true });
406
- onAfterViewChecked() {
407
- this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
408
+ constructor() {
409
+ super();
410
+ afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root'])));
411
+ afterNextRender(() => {
412
+ this.loadChildComponent(this.childComponentType());
413
+ this.cd.detectChanges();
414
+ });
408
415
  }
409
- visible = true;
410
- componentRef;
416
+ visible = signal(true, /* @ts-ignore */
417
+ ...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
418
+ componentRef = signal(undefined, /* @ts-ignore */
419
+ ...(ngDevMode ? [{ debugName: "componentRef" }] : /* istanbul ignore next */ []));
411
420
  id = uuid('pn_id_');
412
421
  insertionPoint = viewChild(DynamicDialogContent, /* @ts-ignore */
413
422
  ...(ngDevMode ? [{ debugName: "insertionPoint" }] : /* istanbul ignore next */ []));
414
- childComponentType;
415
- inputValues;
423
+ childComponentType = signal(undefined, /* @ts-ignore */
424
+ ...(ngDevMode ? [{ debugName: "childComponentType" }] : /* istanbul ignore next */ []));
425
+ inputValues = signal(undefined, /* @ts-ignore */
426
+ ...(ngDevMode ? [{ debugName: "inputValues" }] : /* istanbul ignore next */ []));
416
427
  get minX() {
417
428
  return this.ddconfig.minX ? this.ddconfig.minX : 0;
418
429
  }
@@ -480,305 +491,61 @@ class DynamicDialog extends BaseComponent {
480
491
  get isUnstyled() {
481
492
  return this.ddconfig.unstyled || this.$unstyled();
482
493
  }
483
- maximized;
484
- dragging;
485
- resizing;
486
- ariaLabelledBy;
487
- _style = {};
488
- styleElement;
489
- lastPageX;
490
- lastPageY;
491
- contentViewChild;
492
- footerViewChild;
493
- headerViewChild;
494
- maskViewChild;
495
- maskClickListener;
496
- documentDragListener;
497
- documentDragEndListener;
498
- documentResizeListener;
499
- documentResizeEndListener;
500
- documentEscapeListener;
494
+ maximized = signal(undefined, /* @ts-ignore */
495
+ ...(ngDevMode ? [{ debugName: "maximized" }] : /* istanbul ignore next */ []));
496
+ resizing = signal(undefined, /* @ts-ignore */
497
+ ...(ngDevMode ? [{ debugName: "resizing" }] : /* istanbul ignore next */ []));
501
498
  onVisibleChange(visible) {
502
499
  if (!visible) {
503
500
  this.dialogRef.close();
504
501
  }
505
502
  }
506
- onAfterViewInit() {
507
- this.loadChildComponent(this.childComponentType);
508
- this.ariaLabelledBy = this.getAriaLabelledBy();
509
- this.cd.detectChanges();
510
- }
511
- getAriaLabelledBy() {
512
- const { header, showHeader, ariaLabelledBy } = this.ddconfig;
513
- if (ariaLabelledBy) {
514
- return ariaLabelledBy;
515
- }
516
- if (header === null || showHeader === false) {
517
- return null;
518
- }
519
- return uuid('pn_id_') + '_header';
520
- }
521
503
  loadChildComponent(componentType) {
522
504
  let viewContainerRef = this.insertionPoint()?.viewContainerRef;
523
505
  viewContainerRef?.clear();
524
- this.componentRef = viewContainerRef?.createComponent(componentType);
525
- if (this.inputValues && this.componentRef) {
526
- Object.entries(this.inputValues).forEach(([key, value]) => {
527
- this.componentRef.setInput(key, value);
506
+ const componentRef = viewContainerRef?.createComponent(componentType);
507
+ this.componentRef.set(componentRef);
508
+ const inputValues = this.inputValues();
509
+ if (inputValues && componentRef) {
510
+ Object.entries(inputValues).forEach(([key, value]) => {
511
+ componentRef.setInput(key, value);
528
512
  });
529
513
  }
530
- this.dialogRef.onChildComponentLoaded.next(this.componentRef.instance);
514
+ this.dialogRef.onChildComponentLoaded.next(componentRef.instance);
531
515
  }
532
516
  onDialogHide(event) {
533
517
  this.dialogRef.destroy();
534
518
  }
535
519
  onDialogMaximize(event) {
536
- this.maximized = event.maximized;
520
+ this.maximized.set(event.maximized);
537
521
  this.dialogRef.maximize(event);
538
522
  }
539
523
  onDialogResizeInit(event) {
540
- this.resizing = true;
524
+ this.resizing.set(true);
541
525
  this.dialogRef.resizeInit(event);
542
526
  }
543
527
  onDialogResizeEnd(event) {
544
- this.resizing = false;
528
+ this.resizing.set(false);
545
529
  this.dialogRef.resizeEnd(event);
546
530
  }
547
531
  onDialogDragEnd(event) {
548
- this.dragging = false;
549
532
  this.dialogRef.dragEnd(event);
550
533
  }
551
534
  close() {
552
- this.visible = false;
553
- this.cd.markForCheck();
535
+ this.visible.set(false);
554
536
  }
555
537
  hide() {
556
538
  if (this.dialogRef) {
557
539
  this.dialogRef.close();
558
540
  }
559
541
  }
560
- get _parent() {
561
- const domElements = Array.from(this.document.getElementsByClassName('p-dialog'));
562
- if (domElements.length > 1) {
563
- return domElements.pop();
564
- }
565
- }
566
- get parentContent() {
567
- const domElements = Array.from(this.document.getElementsByClassName('p-dialog'));
568
- if (domElements.length > 0) {
569
- const contentElements = domElements[domElements.length - 1].querySelector('.p-dialog-content');
570
- if (contentElements)
571
- return Array.isArray(contentElements) ? contentElements[0] : contentElements;
572
- }
573
- }
574
- container;
575
- wrapper;
576
- unbindGlobalListeners() {
577
- this.unbindDocumentEscapeListener();
578
- this.unbindDocumentResizeListeners();
579
- this.unbindDocumentDragListener();
580
- this.unbindDocumentDragEndListener();
581
- }
582
- onAnimationStart(event) {
583
- if (event.toState === 'visible') {
584
- // If parent dialog exists, unbind its listeners first
585
- if (this._parent) {
586
- this.unbindGlobalListeners();
587
- }
588
- if (this.ddconfig.modal) {
589
- this.enableModality();
590
- }
591
- }
592
- }
593
- onAnimationEnd(event) {
594
- if (event.toState === 'void') {
595
- this.onContainerDestroy();
596
- this.dialogRef.destroy();
597
- }
598
- }
599
- onContainerDestroy() {
600
- this.unbindGlobalListeners();
601
- if (this.ddconfig.modal) {
602
- this.disableModality();
603
- }
604
- this.container = null;
605
- }
606
- bindDocumentDragListener() {
607
- if (!this.documentDragListener) {
608
- this.documentDragListener = this.renderer.listen(this.document.defaultView, 'mousemove', (event) => {
609
- this.onDrag(event);
610
- });
611
- }
612
- }
613
- bindDocumentDragEndListener() {
614
- if (!this.documentDragEndListener) {
615
- this.documentDragEndListener = this.renderer.listen(this.document.defaultView, 'mouseup', (event) => {
616
- this.endDrag(event);
617
- });
618
- }
619
- }
620
- unbindDocumentDragEndListener() {
621
- if (this.documentDragEndListener) {
622
- this.documentDragEndListener();
623
- this.documentDragEndListener = null;
624
- }
625
- }
626
- unbindDocumentDragListener() {
627
- if (this.documentDragListener) {
628
- this.documentDragListener();
629
- this.documentDragListener = null;
630
- }
631
- }
632
- initDrag(event) {
633
- // Don't initialize drag when clicking on header icons
634
- if (event.target instanceof HTMLElement) {
635
- const target = event.target;
636
- if (target.closest('.p-dialog-header-icon') || target.closest('.p-dialog-header-icons')) {
637
- return;
638
- }
639
- }
640
- this.dragging = true;
641
- this.lastPageX = event.pageX;
642
- this.lastPageY = event.pageY;
643
- this.dialogRef.dragStart(event);
644
- this.bindDocumentDragListener();
645
- this.bindDocumentDragEndListener();
646
- // Handled by Dialog component
647
- }
648
- onDrag(event) {
649
- if (this.dragging) {
650
- this.lastPageX = event.pageX;
651
- this.lastPageY = event.pageY;
652
- if (this.ddconfig.keepInViewport && this.container) {
653
- this.container.style.position = 'fixed';
654
- }
655
- }
656
- }
657
- endDrag(event) {
658
- if (this.dragging) {
659
- this.dragging = false;
660
- this.dialogRef.dragEnd(event);
661
- this.cd.detectChanges();
662
- }
663
- }
664
- resetPosition() {
665
- if (this.container) {
666
- this.container.style.position = '';
667
- this.container.style.left = '';
668
- this.container.style.top = '';
669
- this.container.style.margin = '';
670
- }
671
- }
672
- bindDocumentResizeListeners() {
673
- if (!this.documentResizeListener) {
674
- this.documentResizeListener = this.renderer.listen(this.document.defaultView, 'mousemove', (event) => {
675
- this.onResize(event);
676
- });
677
- }
678
- if (!this.documentResizeEndListener) {
679
- this.documentResizeEndListener = this.renderer.listen(this.document.defaultView, 'mouseup', (event) => {
680
- this.resizeEnd(event);
681
- });
682
- }
683
- }
684
- unbindDocumentResizeListeners() {
685
- if (this.documentResizeListener) {
686
- this.documentResizeListener();
687
- this.documentResizeListener = null;
688
- }
689
- if (this.documentResizeEndListener) {
690
- this.documentResizeEndListener();
691
- this.documentResizeEndListener = null;
692
- }
693
- }
694
- initResize(event) {
695
- this.resizing = true;
696
- this.lastPageX = event.pageX;
697
- this.lastPageY = event.pageY;
698
- this.dialogRef.resizeInit(event);
699
- }
700
- onResize(event) {
701
- if (this.resizing) {
702
- this.lastPageX = event.pageX;
703
- this.lastPageY = event.pageY;
704
- }
705
- }
706
- resizeEnd(event) {
707
- if (this.resizing) {
708
- this.resizing = false;
709
- this.dialogRef.resizeEnd(event);
710
- }
711
- }
712
- maximize() {
713
- this.maximized = !this.maximized;
714
- this.dialogRef.maximize({ maximized: this.maximized });
715
- }
716
- enableModality() {
717
- if (this.ddconfig.dismissableMask && this.wrapper) {
718
- this.maskClickListener = this.renderer.listen(this.wrapper, 'mousedown', (event) => {
719
- if (this.wrapper && this.wrapper.isSameNode(event.target)) {
720
- this.hide();
721
- }
722
- });
723
- }
724
- }
725
- disableModality() {
726
- this.unbindMaskClickListener();
727
- this.cd.detectChanges();
728
- }
729
- unbindMaskClickListener() {
730
- if (this.maskClickListener) {
731
- this.maskClickListener();
732
- this.maskClickListener = null;
733
- }
734
- }
735
- bindDocumentEscapeListener() {
736
- if (this.ddconfig.closeOnEscape) {
737
- this.documentEscapeListener = this.renderer.listen(this.document, 'keydown', (event) => {
738
- if (event.key === 'Escape' && this.container) {
739
- this.hide();
740
- }
741
- });
742
- }
743
- }
744
- unbindDocumentEscapeListener() {
745
- if (this.documentEscapeListener) {
746
- this.documentEscapeListener();
747
- this.documentEscapeListener = null;
748
- }
749
- }
750
- createStyle() {
751
- if (!this.styleElement && this.breakpoints) {
752
- this.styleElement = this.renderer.createElement('style');
753
- this.styleElement.type = 'text/css';
754
- this.renderer.appendChild(this.document.head, this.styleElement);
755
- let innerHTML = '';
756
- for (let breakpoint in this.breakpoints) {
757
- innerHTML += `
758
- @media screen and (max-width: ${breakpoint}) {
759
- .p-dialog[${this.dialogId}] {
760
- width: ${this.breakpoints[breakpoint]} !important;
761
- }
762
- }
763
- `;
764
- }
765
- this.renderer.setProperty(this.styleElement, 'innerHTML', innerHTML);
766
- }
767
- }
768
- destroyStyle() {
769
- if (this.styleElement) {
770
- this.renderer.removeChild(this.document.head, this.styleElement);
771
- this.styleElement = null;
772
- }
773
- }
774
542
  onDestroy() {
775
- this.onContainerDestroy();
776
- if (this.componentRef && typeof this.componentRef.destroy === 'function') {
777
- this.componentRef.destroy();
543
+ const componentRef = this.componentRef();
544
+ if (componentRef && typeof componentRef.destroy === 'function') {
545
+ componentRef.destroy();
778
546
  }
779
- this.destroyStyle();
780
547
  }
781
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: DynamicDialog, deps: null, target: i0.ɵɵFactoryTarget.Component });
548
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: DynamicDialog, deps: [], target: i0.ɵɵFactoryTarget.Component });
782
549
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: DynamicDialog, isStandalone: true, selector: "p-dynamicDialog, p-dynamicdialog, p-dynamic-dialog", providers: [DynamicDialogStyle, { provide: DYNAMIC_DIALOG_INSTANCE, useExisting: DynamicDialog }, { provide: PARENT_INSTANCE, useExisting: DynamicDialog }], viewQueries: [{ propertyName: "insertionPoint", first: true, predicate: DynamicDialogContent, descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
783
550
  <p-dialog
784
551
  [(visible)]="visible"
@@ -789,7 +556,6 @@ class DynamicDialog extends BaseComponent {
789
556
  [modal]="ddconfig?.modal !== false"
790
557
  [closeOnEscape]="ddconfig?.closeOnEscape !== false"
791
558
  [dismissableMask]="ddconfig?.dismissableMask"
792
- [rtl]="ddconfig?.rtl"
793
559
  [closable]="closable"
794
560
  [breakpoints]="breakpoints"
795
561
  [styleClass]="ddconfig?.styleClass"
@@ -803,7 +569,6 @@ class DynamicDialog extends BaseComponent {
803
569
  [maximizable]="maximizable"
804
570
  [keepInViewport]="keepInViewport"
805
571
  [focusTrap]="ddconfig?.focusTrap !== false"
806
- [transitionOptions]="ddconfig?.transitionOptions || '150ms cubic-bezier(0, 0, 0.2, 1)'"
807
572
  [closeAriaLabel]="ddconfig?.closeAriaLabel || defaultCloseAriaLabel"
808
573
  [ariaLabelledBy]="ddconfig?.ariaLabelledBy"
809
574
  [minimizeIcon]="minimizeIcon"
@@ -861,13 +626,12 @@ class DynamicDialog extends BaseComponent {
861
626
  <div>{{ ddconfig.footer }}</div>
862
627
  }
863
628
  </p-dialog>
864
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "ngmodule", type: SharedModule }, { kind: "directive", type: DynamicDialogContent, selector: "[pDynamicDialogContent]" }, { kind: "component", type: Dialog, selector: "p-dialog", inputs: ["hostName", "header", "draggable", "resizable", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "breakpoints", "styleClass", "maskStyleClass", "maskStyle", "showHeader", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "maskMotionOptions", "motionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "closeButtonProps", "maximizeButtonProps", "visible", "style", "position", "role", "ariaLabelledBy", "appendTo", "content", "contentTemplate", "footerTemplate", "closeIconTemplate", "maximizeIconTemplate", "minimizeIconTemplate", "headlessTemplate"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }, { kind: "ngmodule", type: BindModule }], changeDetection: i0.ChangeDetectionStrategy.Eager, encapsulation: i0.ViewEncapsulation.None });
629
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "ngmodule", type: SharedModule }, { kind: "directive", type: DynamicDialogContent, selector: "[pDynamicDialogContent]" }, { kind: "component", type: Dialog, selector: "p-dialog", inputs: ["hostName", "header", "draggable", "resizable", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "closable", "breakpoints", "styleClass", "maskStyleClass", "maskStyle", "showHeader", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "maskMotionOptions", "motionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "closeButtonProps", "maximizeButtonProps", "visible", "style", "position", "role", "ariaLabelledBy", "appendTo", "content", "contentTemplate", "footerTemplate", "closeIconTemplate", "maximizeIconTemplate", "minimizeIconTemplate", "headlessTemplate"], outputs: ["visibleChange", "onShow", "onHide", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }, { kind: "ngmodule", type: BindModule }], changeDetection: i0.ChangeDetectionStrategy.Eager, encapsulation: i0.ViewEncapsulation.None });
865
630
  }
866
631
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: DynamicDialog, decorators: [{
867
632
  type: Component,
868
633
  args: [{
869
634
  selector: 'p-dynamicDialog, p-dynamicdialog, p-dynamic-dialog',
870
- standalone: true,
871
635
  imports: [CommonModule, SharedModule, DynamicDialogContent, Dialog, BindModule],
872
636
  template: `
873
637
  <p-dialog
@@ -879,7 +643,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
879
643
  [modal]="ddconfig?.modal !== false"
880
644
  [closeOnEscape]="ddconfig?.closeOnEscape !== false"
881
645
  [dismissableMask]="ddconfig?.dismissableMask"
882
- [rtl]="ddconfig?.rtl"
883
646
  [closable]="closable"
884
647
  [breakpoints]="breakpoints"
885
648
  [styleClass]="ddconfig?.styleClass"
@@ -893,7 +656,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
893
656
  [maximizable]="maximizable"
894
657
  [keepInViewport]="keepInViewport"
895
658
  [focusTrap]="ddconfig?.focusTrap !== false"
896
- [transitionOptions]="ddconfig?.transitionOptions || '150ms cubic-bezier(0, 0, 0.2, 1)'"
897
659
  [closeAriaLabel]="ddconfig?.closeAriaLabel || defaultCloseAriaLabel"
898
660
  [ariaLabelledBy]="ddconfig?.ariaLabelledBy"
899
661
  [minimizeIcon]="minimizeIcon"
@@ -957,7 +719,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
957
719
  providers: [DynamicDialogStyle, { provide: DYNAMIC_DIALOG_INSTANCE, useExisting: DynamicDialog }, { provide: PARENT_INSTANCE, useExisting: DynamicDialog }],
958
720
  hostDirectives: [Bind]
959
721
  }]
960
- }], propDecorators: { insertionPoint: [{ type: i0.ViewChild, args: [i0.forwardRef(() => DynamicDialogContent), { isSignal: true }] }] } });
722
+ }], ctorParameters: () => [], propDecorators: { insertionPoint: [{ type: i0.ViewChild, args: [i0.forwardRef(() => DynamicDialogContent), { isSignal: true }] }] } });
961
723
  class DynamicDialogModule {
962
724
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: DynamicDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
963
725
  static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.2.1", ngImport: i0, type: DynamicDialogModule, imports: [DynamicDialog, SharedModule], exports: [DynamicDialog, SharedModule] });
@@ -1009,8 +771,8 @@ class DialogService {
1009
771
  const dialogRef = this.appendDialogComponentToBody(config, componentType);
1010
772
  const componentRefInstance = this.dialogComponentRefMap.get(dialogRef);
1011
773
  if (componentRefInstance) {
1012
- componentRefInstance.instance.childComponentType = componentType;
1013
- componentRefInstance.instance.inputValues = config.inputValues || {};
774
+ componentRefInstance.instance.childComponentType.set(componentType);
775
+ componentRefInstance.instance.inputValues.set(config.inputValues || {});
1014
776
  }
1015
777
  return dialogRef;
1016
778
  }
@@ -1068,7 +830,7 @@ class DialogService {
1068
830
  }
1069
831
  let permission = true;
1070
832
  for (const [key, value] of this.dialogComponentRefMap) {
1071
- if (value.instance.childComponentType === componentType) {
833
+ if (value.instance.childComponentType() === componentType) {
1072
834
  permission = false;
1073
835
  break;
1074
836
  }