@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,8 +1,8 @@
1
1
  export * from '@exhaustive-ui/core/types/scrollpanel';
2
2
  import * as i2 from '@angular/common';
3
- import { isPlatformBrowser, CommonModule } from '@angular/common';
3
+ import { CommonModule } from '@angular/common';
4
4
  import * as i0 from '@angular/core';
5
- import { Injectable, InjectionToken, inject, viewChild, contentChild, contentChildren, NgZone, numberAttribute, Input, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
5
+ import { Injectable, inject, afterNextRender, afterEveryRender, input, numberAttribute, viewChild, contentChild, contentChildren, computed, signal, NgZone, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
6
6
  import { uuid, getHeight, addClass, removeClass } from '@exhaustive-ui/utils';
7
7
  import { PrimeTemplate, SharedModule } from '@exhaustive-ui/core/api';
8
8
  import { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';
@@ -68,29 +68,34 @@ var ScrollPanelClasses;
68
68
  ScrollPanelClasses["barY"] = "p-scrollpanel-bar-y";
69
69
  })(ScrollPanelClasses || (ScrollPanelClasses = {}));
70
70
 
71
- const SCROLLPANEL_INSTANCE = new InjectionToken('SCROLLPANEL_INSTANCE');
72
71
  /**
73
72
  * ScrollPanel is a cross browser, lightweight and themable alternative to native browser scrollbar.
74
73
  * @group Components
75
74
  */
76
75
  class ScrollPanel extends BaseComponent {
77
76
  componentName = 'ScrollPanel';
78
- $pcScrollPanel = inject(SCROLLPANEL_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
79
77
  bindDirectiveInstance = inject(Bind, { self: true });
80
- onAfterViewChecked() {
81
- this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
78
+ constructor() {
79
+ super();
80
+ afterNextRender(() => {
81
+ this.zone.runOutsideAngular(() => {
82
+ this.moveBar();
83
+ this.windowResizeListener.set(this.renderer.listen(window, 'resize', this.moveBar.bind(this)));
84
+ this.contentScrollListener.set(this.renderer.listen(this.contentViewChild().nativeElement, 'scroll', this.moveBar.bind(this)));
85
+ this.mouseEnterListener.set(this.renderer.listen(this.contentViewChild().nativeElement, 'mouseenter', this.moveBar.bind(this)));
86
+ this.xBarMouseDownListener.set(this.renderer.listen(this.xBarViewChild().nativeElement, 'mousedown', this.onXBarMouseDown.bind(this)));
87
+ this.yBarMouseDownListener.set(this.renderer.listen(this.yBarViewChild().nativeElement, 'mousedown', this.onYBarMouseDown.bind(this)));
88
+ this.calculateContainerHeight();
89
+ this.initialized.set(true);
90
+ });
91
+ });
92
+ afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root'])));
82
93
  }
83
- /**
84
- * Style class of the component.
85
- * @deprecated since v20.0.0, use `class` instead.
86
- * @group Props
87
- */
88
- styleClass;
89
94
  /**
90
95
  * Step factor to scroll the content while pressing the arrow keys.
91
96
  * @group Props
92
97
  */
93
- step = 5;
98
+ step = input(5, { ...(ngDevMode ? { debugName: "step" } : /* istanbul ignore next */ {}), transform: numberAttribute });
94
99
  contentViewChild = viewChild.required('content', /* @ts-ignore */
95
100
  ...(ngDevMode ? [{ debugName: "contentViewChild" }] : /* istanbul ignore next */ []));
96
101
  xBarViewChild = viewChild.required('xBar', /* @ts-ignore */
@@ -104,63 +109,48 @@ class ScrollPanel extends BaseComponent {
104
109
  contentTemplate = contentChild('content', { ...(ngDevMode ? { debugName: "contentTemplate" } : /* istanbul ignore next */ {}), descendants: false });
105
110
  templates = contentChildren(PrimeTemplate, /* @ts-ignore */
106
111
  ...(ngDevMode ? [{ debugName: "templates" }] : /* istanbul ignore next */ []));
107
- _contentTemplate;
108
- scrollYRatio;
109
- scrollXRatio;
112
+ _contentTemplate = computed(() => this.templates().at(-1)?.template, /* @ts-ignore */
113
+ ...(ngDevMode ? [{ debugName: "_contentTemplate" }] : /* istanbul ignore next */ []));
114
+ scrollYRatio = signal(undefined, /* @ts-ignore */
115
+ ...(ngDevMode ? [{ debugName: "scrollYRatio" }] : /* istanbul ignore next */ []));
116
+ scrollXRatio = signal(undefined, /* @ts-ignore */
117
+ ...(ngDevMode ? [{ debugName: "scrollXRatio" }] : /* istanbul ignore next */ []));
110
118
  timeoutFrame = (fn) => setTimeout(fn, 0);
111
- initialized = false;
112
- lastPageY;
113
- lastPageX;
114
- isXBarClicked = false;
115
- isYBarClicked = false;
116
- lastScrollLeft = 0;
117
- lastScrollTop = 0;
118
- orientation = 'vertical';
119
- timer;
120
- contentId;
121
- windowResizeListener;
122
- contentScrollListener;
123
- mouseEnterListener;
124
- xBarMouseDownListener;
125
- yBarMouseDownListener;
126
- documentMouseMoveListener;
127
- documentMouseUpListener;
119
+ initialized = signal(false, /* @ts-ignore */
120
+ ...(ngDevMode ? [{ debugName: "initialized" }] : /* istanbul ignore next */ []));
121
+ lastPageY = signal(undefined, /* @ts-ignore */
122
+ ...(ngDevMode ? [{ debugName: "lastPageY" }] : /* istanbul ignore next */ []));
123
+ lastPageX = signal(undefined, /* @ts-ignore */
124
+ ...(ngDevMode ? [{ debugName: "lastPageX" }] : /* istanbul ignore next */ []));
125
+ isXBarClicked = signal(false, /* @ts-ignore */
126
+ ...(ngDevMode ? [{ debugName: "isXBarClicked" }] : /* istanbul ignore next */ []));
127
+ isYBarClicked = signal(false, /* @ts-ignore */
128
+ ...(ngDevMode ? [{ debugName: "isYBarClicked" }] : /* istanbul ignore next */ []));
129
+ lastScrollLeft = signal(0, /* @ts-ignore */
130
+ ...(ngDevMode ? [{ debugName: "lastScrollLeft" }] : /* istanbul ignore next */ []));
131
+ lastScrollTop = signal(0, /* @ts-ignore */
132
+ ...(ngDevMode ? [{ debugName: "lastScrollTop" }] : /* istanbul ignore next */ []));
133
+ orientation = signal('vertical', /* @ts-ignore */
134
+ ...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
135
+ timer = signal(undefined, /* @ts-ignore */
136
+ ...(ngDevMode ? [{ debugName: "timer" }] : /* istanbul ignore next */ []));
137
+ contentId = uuid('pn_id_') + '_content';
138
+ windowResizeListener = signal(undefined, /* @ts-ignore */
139
+ ...(ngDevMode ? [{ debugName: "windowResizeListener" }] : /* istanbul ignore next */ []));
140
+ contentScrollListener = signal(undefined, /* @ts-ignore */
141
+ ...(ngDevMode ? [{ debugName: "contentScrollListener" }] : /* istanbul ignore next */ []));
142
+ mouseEnterListener = signal(undefined, /* @ts-ignore */
143
+ ...(ngDevMode ? [{ debugName: "mouseEnterListener" }] : /* istanbul ignore next */ []));
144
+ xBarMouseDownListener = signal(undefined, /* @ts-ignore */
145
+ ...(ngDevMode ? [{ debugName: "xBarMouseDownListener" }] : /* istanbul ignore next */ []));
146
+ yBarMouseDownListener = signal(undefined, /* @ts-ignore */
147
+ ...(ngDevMode ? [{ debugName: "yBarMouseDownListener" }] : /* istanbul ignore next */ []));
148
+ documentMouseMoveListener = signal(undefined, /* @ts-ignore */
149
+ ...(ngDevMode ? [{ debugName: "documentMouseMoveListener" }] : /* istanbul ignore next */ []));
150
+ documentMouseUpListener = signal(undefined, /* @ts-ignore */
151
+ ...(ngDevMode ? [{ debugName: "documentMouseUpListener" }] : /* istanbul ignore next */ []));
128
152
  _componentStyle = inject(ScrollPanelStyle);
129
153
  zone = inject(NgZone);
130
- onInit() {
131
- this.contentId = uuid('pn_id_') + '_content';
132
- }
133
- onAfterViewInit() {
134
- if (isPlatformBrowser(this.platformId)) {
135
- this.zone.runOutsideAngular(() => {
136
- this.moveBar();
137
- this.moveBar = this.moveBar.bind(this);
138
- this.onXBarMouseDown = this.onXBarMouseDown.bind(this);
139
- this.onYBarMouseDown = this.onYBarMouseDown.bind(this);
140
- this.onDocumentMouseMove = this.onDocumentMouseMove.bind(this);
141
- this.onDocumentMouseUp = this.onDocumentMouseUp.bind(this);
142
- this.windowResizeListener = this.renderer.listen(window, 'resize', this.moveBar);
143
- this.contentScrollListener = this.renderer.listen(this.contentViewChild().nativeElement, 'scroll', this.moveBar);
144
- this.mouseEnterListener = this.renderer.listen(this.contentViewChild().nativeElement, 'mouseenter', this.moveBar);
145
- this.xBarMouseDownListener = this.renderer.listen(this.xBarViewChild().nativeElement, 'mousedown', this.onXBarMouseDown);
146
- this.yBarMouseDownListener = this.renderer.listen(this.yBarViewChild().nativeElement, 'mousedown', this.onYBarMouseDown);
147
- this.calculateContainerHeight();
148
- this.initialized = true;
149
- });
150
- }
151
- }
152
- onAfterContentInit() {
153
- this.templates().forEach((item) => {
154
- switch (item.getType()) {
155
- case 'content':
156
- this._contentTemplate = item.template;
157
- break;
158
- default:
159
- this._contentTemplate = item.template;
160
- break;
161
- }
162
- });
163
- }
164
154
  calculateContainerHeight() {
165
155
  let container = this.el.nativeElement;
166
156
  let content = this.contentViewChild().nativeElement;
@@ -184,60 +174,59 @@ class ScrollPanel extends BaseComponent {
184
174
  let totalWidth = content.scrollWidth;
185
175
  let ownWidth = content.clientWidth;
186
176
  let bottom = (container.clientHeight - xBar.clientHeight) * -1;
187
- this.scrollXRatio = ownWidth / totalWidth;
177
+ this.scrollXRatio.set(ownWidth / totalWidth);
188
178
  /* vertical scroll */
189
179
  let yBar = this.yBarViewChild().nativeElement;
190
180
  let totalHeight = content.scrollHeight;
191
181
  let ownHeight = content.clientHeight;
192
182
  let right = (container.clientWidth - yBar.clientWidth) * -1;
193
- this.scrollYRatio = ownHeight / totalHeight;
183
+ this.scrollYRatio.set(ownHeight / totalHeight);
194
184
  this.requestAnimationFrame(() => {
195
- if (this.scrollXRatio >= 1) {
185
+ if (this.scrollXRatio() >= 1) {
196
186
  xBar.setAttribute('data-p-scrollpanel-hidden', 'true');
197
187
  !this.$unstyled() && addClass(xBar, 'p-scrollpanel-hidden');
198
188
  }
199
189
  else {
200
190
  xBar.setAttribute('data-p-scrollpanel-hidden', 'false');
201
191
  !this.$unstyled() && removeClass(xBar, 'p-scrollpanel-hidden');
202
- const xBarWidth = Math.max(this.scrollXRatio * 100, 10);
192
+ const xBarWidth = Math.max(this.scrollXRatio() * 100, 10);
203
193
  const xBarLeft = Math.abs((content.scrollLeft * (100 - xBarWidth)) / (totalWidth - ownWidth));
204
194
  xBar.style.cssText = 'width:' + xBarWidth + '%; inset-inline-start:' + xBarLeft + '%;bottom:' + bottom + 'px;';
205
195
  }
206
- if (this.scrollYRatio >= 1) {
196
+ if (this.scrollYRatio() >= 1) {
207
197
  yBar.setAttribute('data-p-scrollpanel-hidden', 'true');
208
198
  !this.$unstyled() && addClass(yBar, 'p-scrollpanel-hidden');
209
199
  }
210
200
  else {
211
201
  yBar.setAttribute('data-p-scrollpanel-hidden', 'false');
212
202
  !this.$unstyled() && removeClass(yBar, 'p-scrollpanel-hidden');
213
- const yBarHeight = Math.max(this.scrollYRatio * 100, 10);
203
+ const yBarHeight = Math.max(this.scrollYRatio() * 100, 10);
214
204
  const yBarTop = (content.scrollTop * (100 - yBarHeight)) / (totalHeight - ownHeight);
215
205
  yBar.style.cssText = 'height:' + yBarHeight + '%; top: calc(' + yBarTop + '% - ' + xBar.clientHeight + 'px); inset-inline-end:' + right + 'px;';
216
206
  }
217
207
  });
218
- this.cd.markForCheck();
219
208
  }
220
209
  onScroll(event) {
221
- if (this.lastScrollLeft !== event.target.scrollLeft) {
222
- this.lastScrollLeft = event.target.scrollLeft;
223
- this.orientation = 'horizontal';
210
+ if (this.lastScrollLeft() !== event.target.scrollLeft) {
211
+ this.lastScrollLeft.set(event.target.scrollLeft);
212
+ this.orientation.set('horizontal');
224
213
  }
225
- else if (this.lastScrollTop !== event.target.scrollTop) {
226
- this.lastScrollTop = event.target.scrollTop;
227
- this.orientation = 'vertical';
214
+ else if (this.lastScrollTop() !== event.target.scrollTop) {
215
+ this.lastScrollTop.set(event.target.scrollTop);
216
+ this.orientation.set('vertical');
228
217
  }
229
218
  this.moveBar();
230
219
  }
231
220
  onKeyDown(event) {
232
- if (this.orientation === 'vertical') {
221
+ if (this.orientation() === 'vertical') {
233
222
  switch (event.code) {
234
223
  case 'ArrowDown': {
235
- this.setTimer('scrollTop', this.step);
224
+ this.setTimer('scrollTop', this.step());
236
225
  event.preventDefault();
237
226
  break;
238
227
  }
239
228
  case 'ArrowUp': {
240
- this.setTimer('scrollTop', this.step * -1);
229
+ this.setTimer('scrollTop', this.step() * -1);
241
230
  event.preventDefault();
242
231
  break;
243
232
  }
@@ -251,15 +240,15 @@ class ScrollPanel extends BaseComponent {
251
240
  break;
252
241
  }
253
242
  }
254
- else if (this.orientation === 'horizontal') {
243
+ else if (this.orientation() === 'horizontal') {
255
244
  switch (event.code) {
256
245
  case 'ArrowRight': {
257
- this.setTimer('scrollLeft', this.step);
246
+ this.setTimer('scrollLeft', this.step());
258
247
  event.preventDefault();
259
248
  break;
260
249
  }
261
250
  case 'ArrowLeft': {
262
- this.setTimer('scrollLeft', this.step * -1);
251
+ this.setTimer('scrollLeft', this.step() * -1);
263
252
  event.preventDefault();
264
253
  break;
265
254
  }
@@ -284,44 +273,48 @@ class ScrollPanel extends BaseComponent {
284
273
  }
285
274
  setTimer(bar, step) {
286
275
  this.clearTimer();
287
- this.timer = setTimeout(() => {
276
+ this.timer.set(setTimeout(() => {
288
277
  this.repeat(bar, step);
289
- }, 40);
278
+ }, 40));
290
279
  }
291
280
  clearTimer() {
292
- if (this.timer) {
293
- clearTimeout(this.timer);
281
+ if (this.timer()) {
282
+ clearTimeout(this.timer());
294
283
  }
295
284
  }
296
285
  bindDocumentMouseListeners() {
297
- if (!this.documentMouseMoveListener) {
298
- this.documentMouseMoveListener = (e) => {
286
+ if (!this.documentMouseMoveListener()) {
287
+ const documentMouseMoveListener = (e) => {
299
288
  this.onDocumentMouseMove(e);
300
289
  };
301
- this.document.addEventListener('mousemove', this.documentMouseMoveListener);
290
+ this.documentMouseMoveListener.set(documentMouseMoveListener);
291
+ this.document.addEventListener('mousemove', documentMouseMoveListener);
302
292
  }
303
- if (!this.documentMouseUpListener) {
304
- this.documentMouseUpListener = (e) => {
293
+ if (!this.documentMouseUpListener()) {
294
+ const documentMouseUpListener = (e) => {
305
295
  this.onDocumentMouseUp(e);
306
296
  };
307
- this.document.addEventListener('mouseup', this.documentMouseUpListener);
297
+ this.documentMouseUpListener.set(documentMouseUpListener);
298
+ this.document.addEventListener('mouseup', documentMouseUpListener);
308
299
  }
309
300
  }
310
301
  unbindDocumentMouseListeners() {
311
- if (this.documentMouseMoveListener) {
312
- this.document.removeEventListener('mousemove', this.documentMouseMoveListener);
313
- this.documentMouseMoveListener = null;
302
+ const documentMouseMoveListener = this.documentMouseMoveListener();
303
+ if (documentMouseMoveListener) {
304
+ this.document.removeEventListener('mousemove', documentMouseMoveListener);
305
+ this.documentMouseMoveListener.set(null);
314
306
  }
315
- if (this.documentMouseUpListener) {
316
- document.removeEventListener('mouseup', this.documentMouseUpListener);
317
- this.documentMouseUpListener = null;
307
+ const documentMouseUpListener = this.documentMouseUpListener();
308
+ if (documentMouseUpListener) {
309
+ document.removeEventListener('mouseup', documentMouseUpListener);
310
+ this.documentMouseUpListener.set(null);
318
311
  }
319
312
  }
320
313
  onYBarMouseDown(e) {
321
- this.isYBarClicked = true;
314
+ this.isYBarClicked.set(true);
322
315
  const yBarViewChild = this.yBarViewChild();
323
316
  yBarViewChild.nativeElement.focus();
324
- this.lastPageY = e.pageY;
317
+ this.lastPageY.set(e.pageY);
325
318
  yBarViewChild.nativeElement.setAttribute('data-p-scrollpanel-grabbed', 'true');
326
319
  !this.$unstyled() && addClass(yBarViewChild.nativeElement, 'p-scrollpanel-grabbed');
327
320
  this.document.body.setAttribute('data-p-scrollpanel-grabbed', 'true');
@@ -330,10 +323,10 @@ class ScrollPanel extends BaseComponent {
330
323
  e.preventDefault();
331
324
  }
332
325
  onXBarMouseDown(e) {
333
- this.isXBarClicked = true;
326
+ this.isXBarClicked.set(true);
334
327
  const xBarViewChild = this.xBarViewChild();
335
328
  xBarViewChild.nativeElement.focus();
336
- this.lastPageX = e.pageX;
329
+ this.lastPageX.set(e.pageX);
337
330
  xBarViewChild.nativeElement.setAttribute('data-p-scrollpanel-grabbed', 'false');
338
331
  !this.$unstyled() && addClass(xBarViewChild.nativeElement, 'p-scrollpanel-grabbed');
339
332
  this.document.body.setAttribute('data-p-scrollpanel-grabbed', 'false');
@@ -342,10 +335,10 @@ class ScrollPanel extends BaseComponent {
342
335
  e.preventDefault();
343
336
  }
344
337
  onDocumentMouseMove(e) {
345
- if (this.isXBarClicked) {
338
+ if (this.isXBarClicked()) {
346
339
  this.onMouseMoveForXBar(e);
347
340
  }
348
- else if (this.isYBarClicked) {
341
+ else if (this.isYBarClicked()) {
349
342
  this.onMouseMoveForYBar(e);
350
343
  }
351
344
  else {
@@ -354,17 +347,17 @@ class ScrollPanel extends BaseComponent {
354
347
  }
355
348
  }
356
349
  onMouseMoveForXBar(e) {
357
- let deltaX = e.pageX - this.lastPageX;
358
- this.lastPageX = e.pageX;
350
+ let deltaX = e.pageX - this.lastPageX();
351
+ this.lastPageX.set(e.pageX);
359
352
  this.requestAnimationFrame(() => {
360
- this.contentViewChild().nativeElement.scrollLeft += deltaX / this.scrollXRatio;
353
+ this.contentViewChild().nativeElement.scrollLeft += deltaX / this.scrollXRatio();
361
354
  });
362
355
  }
363
356
  onMouseMoveForYBar(e) {
364
- let deltaY = e.pageY - this.lastPageY;
365
- this.lastPageY = e.pageY;
357
+ let deltaY = e.pageY - this.lastPageY();
358
+ this.lastPageY.set(e.pageY);
366
359
  this.requestAnimationFrame(() => {
367
- this.contentViewChild().nativeElement.scrollTop += deltaY / this.scrollYRatio;
360
+ this.contentViewChild().nativeElement.scrollTop += deltaY / this.scrollYRatio();
368
361
  });
369
362
  }
370
363
  /**
@@ -379,15 +372,15 @@ class ScrollPanel extends BaseComponent {
379
372
  }
380
373
  onFocus(event) {
381
374
  if (this.xBarViewChild().nativeElement?.isSameNode(event.target)) {
382
- this.orientation = 'horizontal';
375
+ this.orientation.set('horizontal');
383
376
  }
384
377
  else if (this.yBarViewChild().nativeElement?.isSameNode(event.target)) {
385
- this.orientation = 'vertical';
378
+ this.orientation.set('vertical');
386
379
  }
387
380
  }
388
381
  onBlur() {
389
- if (this.orientation === 'horizontal') {
390
- this.orientation = 'vertical';
382
+ if (this.orientation() === 'horizontal') {
383
+ this.orientation.set('vertical');
391
384
  }
392
385
  }
393
386
  onDocumentMouseUp(e) {
@@ -400,37 +393,42 @@ class ScrollPanel extends BaseComponent {
400
393
  this.document.body.setAttribute('data-p-scrollpanel-grabbed', 'false');
401
394
  !this.$unstyled() && removeClass(this.document.body, 'p-scrollpanel-grabbed');
402
395
  this.unbindDocumentMouseListeners();
403
- this.isXBarClicked = false;
404
- this.isYBarClicked = false;
396
+ this.isXBarClicked.set(false);
397
+ this.isYBarClicked.set(false);
405
398
  }
406
399
  requestAnimationFrame(f) {
407
400
  let frame = window.requestAnimationFrame || this.timeoutFrame;
408
401
  frame(f);
409
402
  }
410
403
  unbindListeners() {
411
- if (this.windowResizeListener) {
412
- this.windowResizeListener();
413
- this.windowResizeListener = null;
404
+ const windowResizeListener = this.windowResizeListener();
405
+ if (windowResizeListener) {
406
+ windowResizeListener();
407
+ this.windowResizeListener.set(null);
414
408
  }
415
- if (this.contentScrollListener) {
416
- this.contentScrollListener();
417
- this.contentScrollListener = null;
409
+ const contentScrollListener = this.contentScrollListener();
410
+ if (contentScrollListener) {
411
+ contentScrollListener();
412
+ this.contentScrollListener.set(null);
418
413
  }
419
- if (this.mouseEnterListener) {
420
- this.mouseEnterListener();
421
- this.mouseEnterListener = null;
414
+ const mouseEnterListener = this.mouseEnterListener();
415
+ if (mouseEnterListener) {
416
+ mouseEnterListener();
417
+ this.mouseEnterListener.set(null);
422
418
  }
423
- if (this.xBarMouseDownListener) {
424
- this.xBarMouseDownListener();
425
- this.xBarMouseDownListener = null;
419
+ const xBarMouseDownListener = this.xBarMouseDownListener();
420
+ if (xBarMouseDownListener) {
421
+ xBarMouseDownListener();
422
+ this.xBarMouseDownListener.set(null);
426
423
  }
427
- if (this.yBarMouseDownListener) {
428
- this.yBarMouseDownListener();
429
- this.yBarMouseDownListener = null;
424
+ const yBarMouseDownListener = this.yBarMouseDownListener();
425
+ if (yBarMouseDownListener) {
426
+ yBarMouseDownListener();
427
+ this.yBarMouseDownListener.set(null);
430
428
  }
431
429
  }
432
430
  onDestroy() {
433
- if (this.initialized) {
431
+ if (this.initialized()) {
434
432
  this.unbindListeners();
435
433
  }
436
434
  }
@@ -441,14 +439,14 @@ class ScrollPanel extends BaseComponent {
441
439
  refresh() {
442
440
  this.moveBar();
443
441
  }
444
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: ScrollPanel, deps: null, target: i0.ɵɵFactoryTarget.Component });
445
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: ScrollPanel, isStandalone: true, selector: "p-scroll-panel, p-scrollPanel, p-scrollpanel", inputs: { styleClass: "styleClass", step: ["step", "step", numberAttribute] }, host: { properties: { "class": "cn(cx(\"root\"), styleClass)" } }, providers: [ScrollPanelStyle, { provide: SCROLLPANEL_INSTANCE, useExisting: ScrollPanel }, { provide: PARENT_INSTANCE, useExisting: ScrollPanel }], queries: [{ propertyName: "contentTemplate", first: true, predicate: ["content"], isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], viewQueries: [{ propertyName: "contentViewChild", first: true, predicate: ["content"], descendants: true, isSignal: true }, { propertyName: "xBarViewChild", first: true, predicate: ["xBar"], descendants: true, isSignal: true }, { propertyName: "yBarViewChild", first: true, predicate: ["yBar"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
442
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: ScrollPanel, deps: [], target: i0.ɵɵFactoryTarget.Component });
443
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: ScrollPanel, isStandalone: true, selector: "p-scroll-panel, p-scrollPanel, p-scrollpanel", inputs: { step: { classPropertyName: "step", publicName: "step", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "cx('root')" } }, providers: [ScrollPanelStyle, { provide: PARENT_INSTANCE, useExisting: ScrollPanel }], queries: [{ propertyName: "contentTemplate", first: true, predicate: ["content"], isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], viewQueries: [{ propertyName: "contentViewChild", first: true, predicate: ["content"], descendants: true, isSignal: true }, { propertyName: "xBarViewChild", first: true, predicate: ["xBar"], descendants: true, isSignal: true }, { propertyName: "yBarViewChild", first: true, predicate: ["yBar"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
446
444
  <div [pBind]="ptm('contentContainer')" [class]="cx('contentContainer')">
447
445
  <div #content [pBind]="ptm('content')" [class]="cx('content')" (mouseenter)="moveBar()" (scroll)="onScroll($event)">
448
- @if (!contentTemplate() && !_contentTemplate) {
446
+ @if (!contentTemplate() && !_contentTemplate()) {
449
447
  <ng-content></ng-content>
450
448
  }
451
- <ng-container *ngTemplateOutlet="contentTemplate() || _contentTemplate"></ng-container>
449
+ <ng-container *ngTemplateOutlet="contentTemplate() || _contentTemplate()"></ng-container>
452
450
  </div>
453
451
  </div>
454
452
  <div
@@ -458,7 +456,7 @@ class ScrollPanel extends BaseComponent {
458
456
  tabindex="0"
459
457
  role="scrollbar"
460
458
  [attr.aria-orientation]="'horizontal'"
461
- [attr.aria-valuenow]="lastScrollLeft"
459
+ [attr.aria-valuenow]="lastScrollLeft()"
462
460
  [attr.aria-controls]="contentId"
463
461
  [attr.data-pc-group-section]="'bar'"
464
462
  (mousedown)="onXBarMouseDown($event)"
@@ -474,7 +472,7 @@ class ScrollPanel extends BaseComponent {
474
472
  tabindex="0"
475
473
  role="scrollbar"
476
474
  [attr.aria-orientation]="'vertical'"
477
- [attr.aria-valuenow]="lastScrollTop"
475
+ [attr.aria-valuenow]="lastScrollTop()"
478
476
  [attr.aria-controls]="contentId"
479
477
  (mousedown)="onYBarMouseDown($event)"
480
478
  (keydown)="onKeyDown($event)"
@@ -488,15 +486,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
488
486
  type: Component,
489
487
  args: [{
490
488
  selector: 'p-scroll-panel, p-scrollPanel, p-scrollpanel',
491
- standalone: true,
492
489
  imports: [CommonModule, SharedModule, BindModule],
493
490
  template: `
494
491
  <div [pBind]="ptm('contentContainer')" [class]="cx('contentContainer')">
495
492
  <div #content [pBind]="ptm('content')" [class]="cx('content')" (mouseenter)="moveBar()" (scroll)="onScroll($event)">
496
- @if (!contentTemplate() && !_contentTemplate) {
493
+ @if (!contentTemplate() && !_contentTemplate()) {
497
494
  <ng-content></ng-content>
498
495
  }
499
- <ng-container *ngTemplateOutlet="contentTemplate() || _contentTemplate"></ng-container>
496
+ <ng-container *ngTemplateOutlet="contentTemplate() || _contentTemplate()"></ng-container>
500
497
  </div>
501
498
  </div>
502
499
  <div
@@ -506,7 +503,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
506
503
  tabindex="0"
507
504
  role="scrollbar"
508
505
  [attr.aria-orientation]="'horizontal'"
509
- [attr.aria-valuenow]="lastScrollLeft"
506
+ [attr.aria-valuenow]="lastScrollLeft()"
510
507
  [attr.aria-controls]="contentId"
511
508
  [attr.data-pc-group-section]="'bar'"
512
509
  (mousedown)="onXBarMouseDown($event)"
@@ -522,7 +519,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
522
519
  tabindex="0"
523
520
  role="scrollbar"
524
521
  [attr.aria-orientation]="'vertical'"
525
- [attr.aria-valuenow]="lastScrollTop"
522
+ [attr.aria-valuenow]="lastScrollTop()"
526
523
  [attr.aria-controls]="contentId"
527
524
  (mousedown)="onYBarMouseDown($event)"
528
525
  (keydown)="onKeyDown($event)"
@@ -533,18 +530,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
533
530
  `,
534
531
  changeDetection: ChangeDetectionStrategy.OnPush,
535
532
  encapsulation: ViewEncapsulation.None,
536
- providers: [ScrollPanelStyle, { provide: SCROLLPANEL_INSTANCE, useExisting: ScrollPanel }, { provide: PARENT_INSTANCE, useExisting: ScrollPanel }],
533
+ providers: [ScrollPanelStyle, { provide: PARENT_INSTANCE, useExisting: ScrollPanel }],
537
534
  host: {
538
- '[class]': 'cn(cx("root"), styleClass)'
535
+ '[class]': "cx('root')"
539
536
  },
540
537
  hostDirectives: [Bind]
541
538
  }]
542
- }], propDecorators: { styleClass: [{
543
- type: Input
544
- }], step: [{
545
- type: Input,
546
- args: [{ transform: numberAttribute }]
547
- }], contentViewChild: [{ type: i0.ViewChild, args: ['content', { isSignal: true }] }], xBarViewChild: [{ type: i0.ViewChild, args: ['xBar', { isSignal: true }] }], yBarViewChild: [{ type: i0.ViewChild, args: ['yBar', { isSignal: true }] }], contentTemplate: [{ type: i0.ContentChild, args: ['content', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }] } });
539
+ }], ctorParameters: () => [], propDecorators: { step: [{ type: i0.Input, args: [{ isSignal: true, alias: "step", required: false }] }], contentViewChild: [{ type: i0.ViewChild, args: ['content', { isSignal: true }] }], xBarViewChild: [{ type: i0.ViewChild, args: ['xBar', { isSignal: true }] }], yBarViewChild: [{ type: i0.ViewChild, args: ['yBar', { isSignal: true }] }], contentTemplate: [{ type: i0.ContentChild, args: ['content', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }] } });
548
540
  class ScrollPanelModule {
549
541
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: ScrollPanelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
550
542
  static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.2.1", ngImport: i0, type: ScrollPanelModule, imports: [ScrollPanel, SharedModule, BindModule], exports: [ScrollPanel, SharedModule, BindModule] });