@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,6 +1,6 @@
1
1
  import { isPlatformBrowser } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
- import { booleanAttribute, numberAttribute, Input, Directive, NgModule } from '@angular/core';
3
+ import { input, numberAttribute, booleanAttribute, signal, afterNextRender, computed, Directive, NgModule } from '@angular/core';
4
4
  import { removeClass, addClass } from '@exhaustive-ui/utils';
5
5
  import { BaseComponent } from '@exhaustive-ui/core/basecomponent';
6
6
 
@@ -13,57 +13,68 @@ class AnimateOnScroll extends BaseComponent {
13
13
  * Selector to define the CSS class for enter animation.
14
14
  * @group Props
15
15
  */
16
- enterClass;
16
+ enterClass = input(/* @ts-ignore */
17
+ ...(ngDevMode ? [undefined, { debugName: "enterClass" }] : /* istanbul ignore next */ []));
17
18
  /**
18
19
  * Selector to define the CSS class for leave animation.
19
20
  * @group Props
20
21
  */
21
- leaveClass;
22
+ leaveClass = input(/* @ts-ignore */
23
+ ...(ngDevMode ? [undefined, { debugName: "leaveClass" }] : /* istanbul ignore next */ []));
22
24
  /**
23
25
  * Specifies the root option of the IntersectionObserver API.
24
26
  * @group Props
25
27
  */
26
- root;
28
+ root = input(/* @ts-ignore */
29
+ ...(ngDevMode ? [undefined, { debugName: "root" }] : /* istanbul ignore next */ []));
27
30
  /**
28
31
  * Specifies the rootMargin option of the IntersectionObserver API.
29
32
  * @group Props
30
33
  */
31
- rootMargin;
34
+ rootMargin = input(/* @ts-ignore */
35
+ ...(ngDevMode ? [undefined, { debugName: "rootMargin" }] : /* istanbul ignore next */ []));
32
36
  /**
33
37
  * Specifies the threshold option of the IntersectionObserver API
34
38
  * @group Props
35
39
  */
36
- threshold = 0.5;
40
+ threshold = input(0.5, { ...(ngDevMode ? { debugName: "threshold" } : /* istanbul ignore next */ {}), transform: numberAttribute });
37
41
  /**
38
42
  * Whether the scroll event listener should be removed after initial run.
39
43
  * @group Props
40
44
  */
41
- once = false;
42
- observer;
43
- resetObserver;
44
- isObserverActive = false;
45
- animationState;
46
- animationEndListener;
47
- onInit() {
48
- if (isPlatformBrowser(this.platformId)) {
49
- this.renderer.setStyle(this.el.nativeElement, 'opacity', this.enterClass ? '0' : '');
50
- }
45
+ once = input(false, { ...(ngDevMode ? { debugName: "once" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
46
+ observer = signal(undefined, /* @ts-ignore */
47
+ ...(ngDevMode ? [{ debugName: "observer" }] : /* istanbul ignore next */ []));
48
+ resetObserver = signal(undefined, /* @ts-ignore */
49
+ ...(ngDevMode ? [{ debugName: "resetObserver" }] : /* istanbul ignore next */ []));
50
+ isObserverActive = signal(false, /* @ts-ignore */
51
+ ...(ngDevMode ? [{ debugName: "isObserverActive" }] : /* istanbul ignore next */ []));
52
+ animationState = signal(undefined, /* @ts-ignore */
53
+ ...(ngDevMode ? [{ debugName: "animationState" }] : /* istanbul ignore next */ []));
54
+ animationEndListener = signal(undefined, /* @ts-ignore */
55
+ ...(ngDevMode ? [{ debugName: "animationEndListener" }] : /* istanbul ignore next */ []));
56
+ constructor() {
57
+ super();
58
+ afterNextRender(() => {
59
+ this.bindIntersectionObserver();
60
+ });
51
61
  }
52
- onAfterViewInit() {
62
+ onInit() {
53
63
  if (isPlatformBrowser(this.platformId)) {
54
- this.bindIntersectionObserver();
64
+ this.renderer.setStyle(this.el.nativeElement, 'opacity', this.enterClass() ? '0' : '');
55
65
  }
56
66
  }
57
- get options() {
67
+ options = computed(() => {
58
68
  return {
59
- root: this.root,
60
- rootMargin: this.rootMargin,
61
- threshold: this.threshold || 0.5
69
+ root: this.root(),
70
+ rootMargin: this.rootMargin(),
71
+ threshold: this.threshold() || 0.5
62
72
  };
63
- }
73
+ }, /* @ts-ignore */
74
+ ...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
64
75
  bindIntersectionObserver() {
65
- this.observer = new IntersectionObserver(([entry]) => {
66
- if (this.isObserverActive) {
76
+ this.observer.set(new IntersectionObserver(([entry]) => {
77
+ if (this.isObserverActive()) {
67
78
  if (entry.boundingClientRect.top > 0) {
68
79
  entry.isIntersecting ? this.enter() : this.leave();
69
80
  }
@@ -71,89 +82,77 @@ class AnimateOnScroll extends BaseComponent {
71
82
  else if (entry.isIntersecting) {
72
83
  this.enter();
73
84
  }
74
- this.isObserverActive = true;
75
- }, this.options);
76
- setTimeout(() => this.observer?.observe(this.el.nativeElement), 0);
85
+ this.isObserverActive.set(true);
86
+ }, this.options()));
87
+ setTimeout(() => this.observer()?.observe(this.el.nativeElement), 0);
77
88
  // Reset
78
- this.resetObserver = new IntersectionObserver(([entry]) => {
89
+ this.resetObserver.set(new IntersectionObserver(([entry]) => {
79
90
  if (entry.boundingClientRect.top > 0 && !entry.isIntersecting) {
80
- this.el.nativeElement.style.opacity = this.enterClass ? '0' : '';
81
- removeClass(this.el.nativeElement, [this.enterClass, this.leaveClass]);
82
- this.resetObserver.unobserve(this.el.nativeElement);
91
+ this.el.nativeElement.style.opacity = this.enterClass() ? '0' : '';
92
+ removeClass(this.el.nativeElement, [this.enterClass(), this.leaveClass()]);
93
+ this.resetObserver().unobserve(this.el.nativeElement);
83
94
  }
84
- this.animationState = undefined;
85
- }, { ...this.options, threshold: 0 });
95
+ this.animationState.set(undefined);
96
+ }, { ...this.options(), threshold: 0 }));
86
97
  }
87
98
  enter() {
88
- if (this.animationState !== 'enter' && this.enterClass) {
99
+ const enterClass = this.enterClass();
100
+ if (this.animationState() !== 'enter' && enterClass) {
89
101
  this.el.nativeElement.style.opacity = '';
90
- removeClass(this.el.nativeElement, this.leaveClass);
91
- addClass(this.el.nativeElement, this.enterClass);
92
- this.once && this.unbindIntersectionObserver();
102
+ removeClass(this.el.nativeElement, this.leaveClass());
103
+ addClass(this.el.nativeElement, enterClass);
104
+ this.once() && this.unbindIntersectionObserver();
93
105
  this.bindAnimationEvents();
94
- this.animationState = 'enter';
106
+ this.animationState.set('enter');
95
107
  }
96
108
  }
97
109
  leave() {
98
- if (this.animationState !== 'leave' && this.leaveClass) {
99
- this.el.nativeElement.style.opacity = this.enterClass ? '0' : '';
100
- removeClass(this.el.nativeElement, this.enterClass);
101
- addClass(this.el.nativeElement, this.leaveClass);
110
+ const leaveClass = this.leaveClass();
111
+ if (this.animationState() !== 'leave' && leaveClass) {
112
+ this.el.nativeElement.style.opacity = this.enterClass() ? '0' : '';
113
+ removeClass(this.el.nativeElement, this.enterClass());
114
+ addClass(this.el.nativeElement, leaveClass);
102
115
  this.bindAnimationEvents();
103
- this.animationState = 'leave';
116
+ this.animationState.set('leave');
104
117
  }
105
118
  }
106
119
  bindAnimationEvents() {
107
- if (!this.animationEndListener) {
108
- this.animationEndListener = this.renderer.listen(this.el.nativeElement, 'animationend', () => {
109
- removeClass(this.el.nativeElement, [this.enterClass, this.leaveClass]);
110
- !this.once && this.resetObserver.observe(this.el.nativeElement);
120
+ if (!this.animationEndListener()) {
121
+ this.animationEndListener.set(this.renderer.listen(this.el.nativeElement, 'animationend', () => {
122
+ removeClass(this.el.nativeElement, [this.enterClass(), this.leaveClass()]);
123
+ !this.once() && this.resetObserver().observe(this.el.nativeElement);
111
124
  this.unbindAnimationEvents();
112
- });
125
+ }));
113
126
  }
114
127
  }
115
128
  unbindAnimationEvents() {
116
- if (this.animationEndListener) {
117
- this.animationEndListener();
118
- this.animationEndListener = null;
129
+ const animationEndListener = this.animationEndListener();
130
+ if (animationEndListener) {
131
+ animationEndListener();
132
+ this.animationEndListener.set(null);
119
133
  }
120
134
  }
121
135
  unbindIntersectionObserver() {
122
- this.observer?.unobserve(this.el.nativeElement);
123
- this.resetObserver?.unobserve(this.el.nativeElement);
124
- this.isObserverActive = false;
136
+ this.observer()?.unobserve(this.el.nativeElement);
137
+ this.resetObserver()?.unobserve(this.el.nativeElement);
138
+ this.isObserverActive.set(false);
125
139
  }
126
140
  onDestroy() {
127
141
  this.unbindAnimationEvents();
128
142
  this.unbindIntersectionObserver();
129
143
  }
130
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: AnimateOnScroll, deps: null, target: i0.ɵɵFactoryTarget.Directive });
131
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "22.2.1", type: AnimateOnScroll, isStandalone: true, selector: "[pAnimateOnScroll]", inputs: { enterClass: "enterClass", leaveClass: "leaveClass", root: "root", rootMargin: "rootMargin", threshold: ["threshold", "threshold", numberAttribute], once: ["once", "once", booleanAttribute] }, host: { properties: { "class.p-animateonscroll": "true" } }, usesInheritance: true, ngImport: i0 });
144
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: AnimateOnScroll, deps: [], target: i0.ɵɵFactoryTarget.Directive });
145
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.2.1", type: AnimateOnScroll, isStandalone: true, selector: "[pAnimateOnScroll]", inputs: { enterClass: { classPropertyName: "enterClass", publicName: "enterClass", isSignal: true, isRequired: false, transformFunction: null }, leaveClass: { classPropertyName: "leaveClass", publicName: "leaveClass", isSignal: true, isRequired: false, transformFunction: null }, root: { classPropertyName: "root", publicName: "root", isSignal: true, isRequired: false, transformFunction: null }, rootMargin: { classPropertyName: "rootMargin", publicName: "rootMargin", isSignal: true, isRequired: false, transformFunction: null }, threshold: { classPropertyName: "threshold", publicName: "threshold", isSignal: true, isRequired: false, transformFunction: null }, once: { classPropertyName: "once", publicName: "once", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.p-animateonscroll": "true" } }, usesInheritance: true, ngImport: i0 });
132
146
  }
133
147
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: AnimateOnScroll, decorators: [{
134
148
  type: Directive,
135
149
  args: [{
136
150
  selector: '[pAnimateOnScroll]',
137
- standalone: true,
138
151
  host: {
139
152
  '[class.p-animateonscroll]': 'true'
140
153
  }
141
154
  }]
142
- }], propDecorators: { enterClass: [{
143
- type: Input
144
- }], leaveClass: [{
145
- type: Input
146
- }], root: [{
147
- type: Input
148
- }], rootMargin: [{
149
- type: Input
150
- }], threshold: [{
151
- type: Input,
152
- args: [{ transform: numberAttribute }]
153
- }], once: [{
154
- type: Input,
155
- args: [{ transform: booleanAttribute }]
156
- }] } });
155
+ }], ctorParameters: () => [], propDecorators: { enterClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "enterClass", required: false }] }], leaveClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "leaveClass", required: false }] }], root: [{ type: i0.Input, args: [{ isSignal: true, alias: "root", required: false }] }], rootMargin: [{ type: i0.Input, args: [{ isSignal: true, alias: "rootMargin", required: false }] }], threshold: [{ type: i0.Input, args: [{ isSignal: true, alias: "threshold", required: false }] }], once: [{ type: i0.Input, args: [{ isSignal: true, alias: "once", required: false }] }] } });
157
156
  class AnimateOnScrollModule {
158
157
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: AnimateOnScrollModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
159
158
  static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.2.1", ngImport: i0, type: AnimateOnScrollModule, imports: [AnimateOnScroll], exports: [AnimateOnScroll] });
@@ -1 +1 @@
1
- {"version":3,"file":"exhaustive-ui-core-animateonscroll.mjs","sources":["../../src/animateonscroll/animateonscroll.ts","../../src/animateonscroll/exhaustive-ui-core-animateonscroll.ts"],"sourcesContent":["import { isPlatformBrowser } from '@angular/common';\nimport { booleanAttribute, Directive, Input, NgModule, numberAttribute } from '@angular/core';\nimport { addClass, removeClass } from '@exhaustive-ui/utils';\nimport { BaseComponent } from '@exhaustive-ui/core/basecomponent';\n\ninterface AnimateOnScrollOptions {\n root?: HTMLElement | null;\n rootMargin?: string;\n threshold?: number;\n}\n\n/**\n * AnimateOnScroll is used to apply animations to elements when entering or leaving the viewport during scrolling.\n * @group Components\n */\n@Directive({\n selector: '[pAnimateOnScroll]',\n standalone: true,\n host: {\n '[class.p-animateonscroll]': 'true'\n }\n})\nexport class AnimateOnScroll extends BaseComponent {\n /**\n * Selector to define the CSS class for enter animation.\n * @group Props\n */\n @Input() enterClass: string | undefined;\n /**\n * Selector to define the CSS class for leave animation.\n * @group Props\n */\n @Input() leaveClass: string | undefined;\n /**\n * Specifies the root option of the IntersectionObserver API.\n * @group Props\n */\n @Input() root: HTMLElement | undefined | null;\n /**\n * Specifies the rootMargin option of the IntersectionObserver API.\n * @group Props\n */\n @Input() rootMargin: string | undefined;\n /**\n * Specifies the threshold option of the IntersectionObserver API\n * @group Props\n */\n @Input({ transform: numberAttribute }) threshold: number | undefined = 0.5;\n /**\n * Whether the scroll event listener should be removed after initial run.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) once: boolean = false;\n\n observer: IntersectionObserver | undefined;\n\n resetObserver: any;\n\n isObserverActive: boolean = false;\n\n animationState: any;\n\n animationEndListener: VoidFunction | null | undefined;\n\n onInit() {\n if (isPlatformBrowser(this.platformId)) {\n this.renderer.setStyle(this.el.nativeElement, 'opacity', this.enterClass ? '0' : '');\n }\n }\n\n onAfterViewInit() {\n if (isPlatformBrowser(this.platformId)) {\n this.bindIntersectionObserver();\n }\n }\n\n get options(): AnimateOnScrollOptions {\n return {\n root: this.root,\n rootMargin: this.rootMargin,\n threshold: this.threshold || 0.5\n };\n }\n\n bindIntersectionObserver() {\n this.observer = new IntersectionObserver(([entry]) => {\n if (this.isObserverActive) {\n if (entry.boundingClientRect.top > 0) {\n entry.isIntersecting ? this.enter() : this.leave();\n }\n } else if (entry.isIntersecting) {\n this.enter();\n }\n\n this.isObserverActive = true;\n }, this.options);\n\n setTimeout(() => this.observer?.observe(this.el.nativeElement), 0);\n\n // Reset\n\n this.resetObserver = new IntersectionObserver(\n ([entry]) => {\n if (entry.boundingClientRect.top > 0 && !entry.isIntersecting) {\n this.el.nativeElement.style.opacity = this.enterClass ? '0' : '';\n removeClass(this.el.nativeElement, [this.enterClass, this.leaveClass]);\n\n this.resetObserver.unobserve(this.el.nativeElement);\n }\n\n this.animationState = undefined;\n },\n { ...this.options, threshold: 0 }\n );\n }\n\n enter() {\n if (this.animationState !== 'enter' && this.enterClass) {\n this.el.nativeElement.style.opacity = '';\n removeClass(this.el.nativeElement, this.leaveClass);\n addClass(this.el.nativeElement, this.enterClass);\n\n this.once && this.unbindIntersectionObserver();\n\n this.bindAnimationEvents();\n this.animationState = 'enter';\n }\n }\n\n leave() {\n if (this.animationState !== 'leave' && this.leaveClass) {\n this.el.nativeElement.style.opacity = this.enterClass ? '0' : '';\n removeClass(this.el.nativeElement, this.enterClass);\n addClass(this.el.nativeElement, this.leaveClass);\n\n this.bindAnimationEvents();\n this.animationState = 'leave';\n }\n }\n\n bindAnimationEvents() {\n if (!this.animationEndListener) {\n this.animationEndListener = this.renderer.listen(this.el.nativeElement, 'animationend', () => {\n removeClass(this.el.nativeElement, [this.enterClass, this.leaveClass]);\n !this.once && this.resetObserver.observe(this.el.nativeElement);\n this.unbindAnimationEvents();\n });\n }\n }\n\n unbindAnimationEvents() {\n if (this.animationEndListener) {\n this.animationEndListener();\n this.animationEndListener = null;\n }\n }\n\n unbindIntersectionObserver() {\n this.observer?.unobserve(this.el.nativeElement);\n this.resetObserver?.unobserve(this.el.nativeElement);\n this.isObserverActive = false;\n }\n\n onDestroy() {\n this.unbindAnimationEvents();\n this.unbindIntersectionObserver();\n }\n}\n\n@NgModule({\n imports: [AnimateOnScroll],\n exports: [AnimateOnScroll]\n})\nexport class AnimateOnScrollModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;AAWA;;;AAGG;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yH7B,qBAAqB,CAAA;uGAArB,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;wGAArB,qBAAqB,EAAA,OAAA,EAAA,CAvJrB,eAAe,CAAA,EAAA,OAAA,EAAA,CAAf,eAAe,CAAA,EAAA,CAAA;wGAuJf,qBAAqB,EAAA,CAAA;;2FAArB,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAJjC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,OAAO,EAAE,CAAC,eAAe,CAAC;oBAC1B,OAAO,EAAE,CAAC,eAAe;AAC5B,iBAAA;;;AC5KD;;AAEG;;;;"}
1
+ {"version":3,"file":"exhaustive-ui-core-animateonscroll.mjs","sources":["../../src/animateonscroll/animateonscroll.ts","../../src/animateonscroll/exhaustive-ui-core-animateonscroll.ts"],"sourcesContent":["import { isPlatformBrowser } from '@angular/common';\nimport { afterNextRender, booleanAttribute, computed, Directive, input, NgModule, numberAttribute, signal } from '@angular/core';\nimport { addClass, removeClass } from '@exhaustive-ui/utils';\nimport { BaseComponent } from '@exhaustive-ui/core/basecomponent';\n\ninterface AnimateOnScrollOptions {\n root?: HTMLElement | null;\n rootMargin?: string;\n threshold?: number;\n}\n\n/**\n * AnimateOnScroll is used to apply animations to elements when entering or leaving the viewport during scrolling.\n * @group Components\n */\n@Directive({\n selector: '[pAnimateOnScroll]',\n host: {\n '[class.p-animateonscroll]': 'true'\n }\n})\nexport class AnimateOnScroll extends BaseComponent {\n /**\n * Selector to define the CSS class for enter animation.\n * @group Props\n */\n readonly enterClass = input<string | undefined>();\n /**\n * Selector to define the CSS class for leave animation.\n * @group Props\n */\n readonly leaveClass = input<string | undefined>();\n /**\n * Specifies the root option of the IntersectionObserver API.\n * @group Props\n */\n readonly root = input<HTMLElement | undefined | null>();\n /**\n * Specifies the rootMargin option of the IntersectionObserver API.\n * @group Props\n */\n readonly rootMargin = input<string | undefined>();\n /**\n * Specifies the threshold option of the IntersectionObserver API\n * @group Props\n */\n readonly threshold = input<number | undefined, unknown>(0.5, { transform: numberAttribute });\n /**\n * Whether the scroll event listener should be removed after initial run.\n * @group Props\n */\n readonly once = input<boolean, unknown>(false, { transform: booleanAttribute });\n\n observer = signal<IntersectionObserver | undefined>(undefined);\n\n resetObserver = signal<any>(undefined);\n\n isObserverActive = signal<boolean>(false);\n\n animationState = signal<any>(undefined);\n\n animationEndListener = signal<VoidFunction | null | undefined>(undefined);\n\n constructor() {\n super();\n afterNextRender(() => {\n this.bindIntersectionObserver();\n });\n }\n\n onInit() {\n if (isPlatformBrowser(this.platformId)) {\n this.renderer.setStyle(this.el.nativeElement, 'opacity', this.enterClass() ? '0' : '');\n }\n }\n\n options = computed<AnimateOnScrollOptions>(() => {\n return {\n root: this.root(),\n rootMargin: this.rootMargin(),\n threshold: this.threshold() || 0.5\n };\n });\n\n bindIntersectionObserver() {\n this.observer.set(\n new IntersectionObserver(([entry]) => {\n if (this.isObserverActive()) {\n if (entry.boundingClientRect.top > 0) {\n entry.isIntersecting ? this.enter() : this.leave();\n }\n } else if (entry.isIntersecting) {\n this.enter();\n }\n\n this.isObserverActive.set(true);\n }, this.options())\n );\n\n setTimeout(() => this.observer()?.observe(this.el.nativeElement), 0);\n\n // Reset\n\n this.resetObserver.set(\n new IntersectionObserver(\n ([entry]) => {\n if (entry.boundingClientRect.top > 0 && !entry.isIntersecting) {\n this.el.nativeElement.style.opacity = this.enterClass() ? '0' : '';\n removeClass(this.el.nativeElement, [this.enterClass(), this.leaveClass()]);\n\n this.resetObserver().unobserve(this.el.nativeElement);\n }\n\n this.animationState.set(undefined);\n },\n { ...this.options(), threshold: 0 }\n )\n );\n }\n\n enter() {\n const enterClass = this.enterClass();\n\n if (this.animationState() !== 'enter' && enterClass) {\n this.el.nativeElement.style.opacity = '';\n removeClass(this.el.nativeElement, this.leaveClass());\n addClass(this.el.nativeElement, enterClass);\n\n this.once() && this.unbindIntersectionObserver();\n\n this.bindAnimationEvents();\n this.animationState.set('enter');\n }\n }\n\n leave() {\n const leaveClass = this.leaveClass();\n\n if (this.animationState() !== 'leave' && leaveClass) {\n this.el.nativeElement.style.opacity = this.enterClass() ? '0' : '';\n removeClass(this.el.nativeElement, this.enterClass());\n addClass(this.el.nativeElement, leaveClass);\n\n this.bindAnimationEvents();\n this.animationState.set('leave');\n }\n }\n\n bindAnimationEvents() {\n if (!this.animationEndListener()) {\n this.animationEndListener.set(\n this.renderer.listen(this.el.nativeElement, 'animationend', () => {\n removeClass(this.el.nativeElement, [this.enterClass(), this.leaveClass()]);\n !this.once() && this.resetObserver().observe(this.el.nativeElement);\n this.unbindAnimationEvents();\n })\n );\n }\n }\n\n unbindAnimationEvents() {\n const animationEndListener = this.animationEndListener();\n\n if (animationEndListener) {\n animationEndListener();\n this.animationEndListener.set(null);\n }\n }\n\n unbindIntersectionObserver() {\n this.observer()?.unobserve(this.el.nativeElement);\n this.resetObserver()?.unobserve(this.el.nativeElement);\n this.isObserverActive.set(false);\n }\n\n onDestroy() {\n this.unbindAnimationEvents();\n this.unbindIntersectionObserver();\n }\n}\n\n@NgModule({\n imports: [AnimateOnScroll],\n exports: [AnimateOnScroll]\n})\nexport class AnimateOnScrollModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;AAWA;;;AAGG;AAOG,MAAO,eAAgB,SAAQ,aAAa,CAAA;AAC9C;;;AAGG;AACM,IAAA,UAAU,GAAG,KAAK;8FAAsB;AACjD;;;AAGG;AACM,IAAA,UAAU,GAAG,KAAK;8FAAsB;AACjD;;;AAGG;AACM,IAAA,IAAI,GAAG,KAAK;wFAAkC;AACvD;;;AAGG;AACM,IAAA,UAAU,GAAG,KAAK;8FAAsB;AACjD;;;AAGG;IACM,SAAS,GAAG,KAAK,CAA8B,GAAG,iFAAI,SAAS,EAAE,eAAe,EAAA,CAAG;AAC5F;;;AAGG;IACM,IAAI,GAAG,KAAK,CAA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,OAAO,EAAE,CAAC,eAAe,CAAC;oBAC1B,OAAO,EAAE,CAAC,eAAe;AAC5B,iBAAA;;;ACxLD;;AAEG;;;;"}
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injectable, ChangeDetectionStrategy, Component, inject, TemplateRef, Input, Directive, NgModule } from '@angular/core';
2
+ import { Injectable, ChangeDetectionStrategy, Component, inject, TemplateRef, input, Directive, NgModule } from '@angular/core';
3
3
  import { Subject } from 'rxjs';
4
4
  import { resolveFieldData, equals, removeAccents } from '@exhaustive-ui/utils';
5
5
  import { CommonModule } from '@angular/common';
@@ -734,26 +734,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
734
734
  }] });
735
735
  class PrimeTemplate {
736
736
  template = inject(TemplateRef);
737
- type;
738
- name;
737
+ name = input(undefined, { ...(ngDevMode ? { debugName: "name" } : /* istanbul ignore next */ {}), alias: 'pTemplate' });
739
738
  getType() {
740
- return this.name;
739
+ return this.name();
741
740
  }
742
741
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: PrimeTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
743
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.2.1", type: PrimeTemplate, isStandalone: true, selector: "[pTemplate]", inputs: { type: "type", name: ["pTemplate", "name"] }, ngImport: i0 });
742
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.2.1", type: PrimeTemplate, isStandalone: true, selector: "[pTemplate]", inputs: { name: { classPropertyName: "name", publicName: "pTemplate", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
744
743
  }
745
744
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: PrimeTemplate, decorators: [{
746
745
  type: Directive,
747
746
  args: [{
748
- selector: '[pTemplate]',
749
- standalone: true
747
+ selector: '[pTemplate]'
750
748
  }]
751
- }], propDecorators: { type: [{
752
- type: Input
753
- }], name: [{
754
- type: Input,
755
- args: ['pTemplate']
756
- }] } });
749
+ }], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "pTemplate", required: false }] }] } });
757
750
  class SharedModule {
758
751
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: SharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
759
752
  static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.2.1", ngImport: i0, type: SharedModule, declarations: [Header, Footer], imports: [CommonModule, PrimeTemplate], exports: [Header, Footer, PrimeTemplate] });