primeng 22.1.1 → 22.1.3

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 (854) hide show
  1. package/fesm2022/primeng-accordion.mjs +999 -596
  2. package/fesm2022/primeng-animateonscroll.mjs +265 -174
  3. package/fesm2022/primeng-api.mjs +887 -848
  4. package/fesm2022/primeng-autocomplete.mjs +2535 -1633
  5. package/fesm2022/primeng-autofocus.mjs +113 -77
  6. package/fesm2022/primeng-avatar.mjs +329 -189
  7. package/fesm2022/primeng-avatargroup.mjs +177 -95
  8. package/fesm2022/primeng-badge.mjs +289 -156
  9. package/fesm2022/primeng-base.mjs +105 -83
  10. package/fesm2022/primeng-basecomponent.mjs +592 -478
  11. package/fesm2022/primeng-baseeditableholder.mjs +130 -74
  12. package/fesm2022/primeng-baseinput.mjs +213 -99
  13. package/fesm2022/primeng-basemodelholder.mjs +38 -26
  14. package/fesm2022/primeng-bind.mjs +157 -97
  15. package/fesm2022/primeng-blockui.mjs +359 -225
  16. package/fesm2022/primeng-breadcrumb.mjs +457 -220
  17. package/fesm2022/primeng-button.mjs +1562 -710
  18. package/fesm2022/primeng-buttongroup.mjs +126 -75
  19. package/fesm2022/primeng-card.mjs +388 -178
  20. package/fesm2022/primeng-carousel.mjs +2398 -1776
  21. package/fesm2022/primeng-cascadeselect.mjs +2380 -1407
  22. package/fesm2022/primeng-chart.mjs +401 -231
  23. package/fesm2022/primeng-checkbox.mjs +649 -351
  24. package/fesm2022/primeng-chip.mjs +410 -224
  25. package/fesm2022/primeng-classnames.mjs +94 -48
  26. package/fesm2022/primeng-colorpicker.mjs +889 -635
  27. package/fesm2022/primeng-commandmenu.mjs +567 -313
  28. package/fesm2022/primeng-compare.mjs +842 -481
  29. package/fesm2022/primeng-config.mjs +436 -321
  30. package/fesm2022/primeng-confirmdialog.mjs +1196 -536
  31. package/fesm2022/primeng-confirmpopup.mjs +815 -522
  32. package/fesm2022/primeng-contextmenu.mjs +1871 -1090
  33. package/fesm2022/primeng-dataview.mjs +1129 -550
  34. package/fesm2022/primeng-datepicker.mjs +3783 -3366
  35. package/fesm2022/primeng-dialog.mjs +1649 -977
  36. package/fesm2022/primeng-divider.mjs +271 -146
  37. package/fesm2022/primeng-dock.mjs +608 -391
  38. package/fesm2022/primeng-dom.mjs +611 -767
  39. package/fesm2022/primeng-dragdrop.mjs +324 -312
  40. package/fesm2022/primeng-drawer.mjs +911 -484
  41. package/fesm2022/primeng-dynamicdialog.mjs +829 -917
  42. package/fesm2022/primeng-editor.mjs +546 -391
  43. package/fesm2022/primeng-fieldset.mjs +559 -273
  44. package/fesm2022/primeng-fileupload.mjs +1843 -1062
  45. package/fesm2022/primeng-floatlabel.mjs +186 -102
  46. package/fesm2022/primeng-fluid.mjs +155 -85
  47. package/fesm2022/primeng-focustrap.mjs +149 -112
  48. package/fesm2022/primeng-galleria.mjs +2594 -1412
  49. package/fesm2022/primeng-gallery.mjs +2767 -1796
  50. package/fesm2022/primeng-iconfield.mjs +191 -93
  51. package/fesm2022/primeng-icons-angledoubledown.mjs +40 -23
  52. package/fesm2022/primeng-icons-angledoubleleft.mjs +40 -23
  53. package/fesm2022/primeng-icons-angledoubleright.mjs +40 -23
  54. package/fesm2022/primeng-icons-angledoubleup.mjs +40 -23
  55. package/fesm2022/primeng-icons-angledown.mjs +40 -23
  56. package/fesm2022/primeng-icons-angleleft.mjs +40 -23
  57. package/fesm2022/primeng-icons-angleright.mjs +40 -23
  58. package/fesm2022/primeng-icons-angleup.mjs +40 -23
  59. package/fesm2022/primeng-icons-arrowdown.mjs +44 -28
  60. package/fesm2022/primeng-icons-arrowdownleft.mjs +40 -23
  61. package/fesm2022/primeng-icons-arrowdownright.mjs +40 -23
  62. package/fesm2022/primeng-icons-arrowleft.mjs +44 -28
  63. package/fesm2022/primeng-icons-arrowright.mjs +40 -23
  64. package/fesm2022/primeng-icons-arrowup.mjs +44 -28
  65. package/fesm2022/primeng-icons-ban.mjs +44 -28
  66. package/fesm2022/primeng-icons-bars.mjs +40 -23
  67. package/fesm2022/primeng-icons-baseicon.mjs +110 -67
  68. package/fesm2022/primeng-icons-blank.mjs +39 -22
  69. package/fesm2022/primeng-icons-calendar.mjs +40 -23
  70. package/fesm2022/primeng-icons-caretleft.mjs +40 -23
  71. package/fesm2022/primeng-icons-caretright.mjs +40 -23
  72. package/fesm2022/primeng-icons-check.mjs +40 -23
  73. package/fesm2022/primeng-icons-chevrondown.mjs +40 -23
  74. package/fesm2022/primeng-icons-chevronleft.mjs +40 -23
  75. package/fesm2022/primeng-icons-chevronright.mjs +40 -23
  76. package/fesm2022/primeng-icons-chevronup.mjs +40 -23
  77. package/fesm2022/primeng-icons-exclamationtriangle.mjs +44 -28
  78. package/fesm2022/primeng-icons-eye.mjs +40 -23
  79. package/fesm2022/primeng-icons-eyeslash.mjs +44 -28
  80. package/fesm2022/primeng-icons-filter.mjs +44 -28
  81. package/fesm2022/primeng-icons-filterfill.mjs +40 -23
  82. package/fesm2022/primeng-icons-filterslash.mjs +44 -28
  83. package/fesm2022/primeng-icons-home.mjs +44 -28
  84. package/fesm2022/primeng-icons-infocircle.mjs +44 -28
  85. package/fesm2022/primeng-icons-minus.mjs +40 -23
  86. package/fesm2022/primeng-icons-pencil.mjs +44 -28
  87. package/fesm2022/primeng-icons-plus.mjs +44 -28
  88. package/fesm2022/primeng-icons-refresh.mjs +44 -28
  89. package/fesm2022/primeng-icons-search.mjs +44 -28
  90. package/fesm2022/primeng-icons-searchminus.mjs +44 -28
  91. package/fesm2022/primeng-icons-searchplus.mjs +44 -28
  92. package/fesm2022/primeng-icons-sortalt.mjs +44 -28
  93. package/fesm2022/primeng-icons-sortamountdown.mjs +44 -28
  94. package/fesm2022/primeng-icons-sortamountupalt.mjs +44 -28
  95. package/fesm2022/primeng-icons-spinner.mjs +44 -28
  96. package/fesm2022/primeng-icons-star.mjs +44 -28
  97. package/fesm2022/primeng-icons-starfill.mjs +44 -28
  98. package/fesm2022/primeng-icons-thlarge.mjs +44 -28
  99. package/fesm2022/primeng-icons-times.mjs +40 -23
  100. package/fesm2022/primeng-icons-timescircle.mjs +44 -28
  101. package/fesm2022/primeng-icons-trash.mjs +44 -28
  102. package/fesm2022/primeng-icons-undo.mjs +44 -28
  103. package/fesm2022/primeng-icons-upload.mjs +44 -28
  104. package/fesm2022/primeng-icons-windowmaximize.mjs +44 -28
  105. package/fesm2022/primeng-icons-windowminimize.mjs +44 -28
  106. package/fesm2022/primeng-icons.mjs +53 -63
  107. package/fesm2022/primeng-iftalabel.mjs +152 -86
  108. package/fesm2022/primeng-image.mjs +1022 -534
  109. package/fesm2022/primeng-imagecompare.mjs +324 -165
  110. package/fesm2022/primeng-inplace.mjs +400 -199
  111. package/fesm2022/primeng-inputcolor.mjs +2626 -2189
  112. package/fesm2022/primeng-inputgroup.mjs +158 -91
  113. package/fesm2022/primeng-inputgroupaddon.mjs +152 -68
  114. package/fesm2022/primeng-inputicon.mjs +172 -72
  115. package/fesm2022/primeng-inputmask.mjs +1606 -1387
  116. package/fesm2022/primeng-inputnumber.mjs +1645 -1305
  117. package/fesm2022/primeng-inputotp.mjs +570 -376
  118. package/fesm2022/primeng-inputpassword.mjs +178 -96
  119. package/fesm2022/primeng-inputtags.mjs +1211 -588
  120. package/fesm2022/primeng-inputtext.mjs +324 -175
  121. package/fesm2022/primeng-isolation.mjs +280 -0
  122. package/fesm2022/primeng-keyfilter.mjs +267 -244
  123. package/fesm2022/primeng-knob.mjs +625 -405
  124. package/fesm2022/primeng-label.mjs +142 -81
  125. package/fesm2022/primeng-license.mjs +9 -36
  126. package/fesm2022/primeng-listbox.mjs +2426 -1622
  127. package/fesm2022/primeng-megamenu.mjs +2008 -1143
  128. package/fesm2022/primeng-menu.mjs +1434 -852
  129. package/fesm2022/primeng-menubar.mjs +1836 -996
  130. package/fesm2022/primeng-message.mjs +471 -239
  131. package/fesm2022/primeng-metergroup.mjs +662 -331
  132. package/fesm2022/primeng-motion.mjs +1178 -690
  133. package/fesm2022/primeng-multiselect.mjs +3421 -1940
  134. package/fesm2022/primeng-orderlist.mjs +1320 -668
  135. package/fesm2022/primeng-organizationchart.mjs +911 -595
  136. package/fesm2022/primeng-overlay.mjs +933 -626
  137. package/fesm2022/primeng-overlaybadge.mjs +290 -107
  138. package/fesm2022/primeng-paginator.mjs +961 -503
  139. package/fesm2022/primeng-panel.mjs +668 -345
  140. package/fesm2022/primeng-panelmenu.mjs +1845 -1002
  141. package/fesm2022/primeng-passthrough.mjs +7 -16
  142. package/fesm2022/primeng-password.mjs +1517 -866
  143. package/fesm2022/primeng-picklist.mjs +2278 -1256
  144. package/fesm2022/primeng-popover.mjs +658 -438
  145. package/fesm2022/primeng-progressbar.mjs +345 -168
  146. package/fesm2022/primeng-progressspinner.mjs +337 -188
  147. package/fesm2022/primeng-radiobutton.mjs +498 -292
  148. package/fesm2022/primeng-rating.mjs +583 -354
  149. package/fesm2022/primeng-ripple.mjs +195 -184
  150. package/fesm2022/primeng-scrollarea.mjs +1017 -721
  151. package/fesm2022/primeng-scroller.mjs +1388 -1083
  152. package/fesm2022/primeng-scrollpanel.mjs +567 -480
  153. package/fesm2022/primeng-scrolltop.mjs +510 -262
  154. package/fesm2022/primeng-select.mjs +3073 -1793
  155. package/fesm2022/primeng-selectbutton.mjs +628 -339
  156. package/fesm2022/primeng-sidebar.mjs +2559 -1416
  157. package/fesm2022/primeng-skeleton.mjs +299 -157
  158. package/fesm2022/primeng-slider.mjs +840 -604
  159. package/fesm2022/primeng-speeddial.mjs +1118 -719
  160. package/fesm2022/primeng-splitbutton.mjs +887 -339
  161. package/fesm2022/primeng-splitter.mjs +996 -759
  162. package/fesm2022/primeng-stepper.mjs +1356 -643
  163. package/fesm2022/primeng-steps.mjs +396 -304
  164. package/fesm2022/primeng-styleclass.mjs +447 -334
  165. package/fesm2022/primeng-table.mjs +9827 -5913
  166. package/fesm2022/primeng-tabs.mjs +1356 -831
  167. package/fesm2022/primeng-tag.mjs +304 -151
  168. package/fesm2022/primeng-terminal.mjs +367 -216
  169. package/fesm2022/primeng-textarea.mjs +344 -208
  170. package/fesm2022/primeng-tieredmenu.mjs +1921 -1129
  171. package/fesm2022/primeng-timeline.mjs +303 -165
  172. package/fesm2022/primeng-toast.mjs +1384 -922
  173. package/fesm2022/primeng-togglebutton.mjs +562 -309
  174. package/fesm2022/primeng-toggleswitch.mjs +463 -237
  175. package/fesm2022/primeng-toolbar.mjs +298 -129
  176. package/fesm2022/primeng-tooltip.mjs +1017 -778
  177. package/fesm2022/primeng-tree.mjs +2680 -1877
  178. package/fesm2022/primeng-treeselect.mjs +1683 -945
  179. package/fesm2022/primeng-treetable.mjs +5868 -3768
  180. package/fesm2022/primeng-ts-helpers.mjs +0 -4
  181. package/fesm2022/primeng-types-accordion.mjs +0 -4
  182. package/fesm2022/primeng-types-autocomplete.mjs +0 -4
  183. package/fesm2022/primeng-types-avatar.mjs +0 -4
  184. package/fesm2022/primeng-types-avatargroup.mjs +0 -4
  185. package/fesm2022/primeng-types-badge.mjs +0 -4
  186. package/fesm2022/primeng-types-blockui.mjs +0 -4
  187. package/fesm2022/primeng-types-breadcrumb.mjs +0 -4
  188. package/fesm2022/primeng-types-button.mjs +0 -4
  189. package/fesm2022/primeng-types-card.mjs +0 -4
  190. package/fesm2022/primeng-types-carousel.mjs +0 -4
  191. package/fesm2022/primeng-types-cascadeselect.mjs +0 -4
  192. package/fesm2022/primeng-types-chart.mjs +0 -4
  193. package/fesm2022/primeng-types-checkbox.mjs +0 -4
  194. package/fesm2022/primeng-types-chip.mjs +0 -4
  195. package/fesm2022/primeng-types-colorpicker.mjs +0 -4
  196. package/fesm2022/primeng-types-commandmenu.mjs +0 -4
  197. package/fesm2022/primeng-types-compare.mjs +0 -4
  198. package/fesm2022/primeng-types-confirmdialog.mjs +0 -4
  199. package/fesm2022/primeng-types-confirmpopup.mjs +0 -4
  200. package/fesm2022/primeng-types-contextmenu.mjs +0 -4
  201. package/fesm2022/primeng-types-dataview.mjs +0 -4
  202. package/fesm2022/primeng-types-datepicker.mjs +0 -4
  203. package/fesm2022/primeng-types-dialog.mjs +0 -4
  204. package/fesm2022/primeng-types-divider.mjs +0 -4
  205. package/fesm2022/primeng-types-dock.mjs +0 -4
  206. package/fesm2022/primeng-types-drawer.mjs +0 -4
  207. package/fesm2022/primeng-types-editor.mjs +0 -4
  208. package/fesm2022/primeng-types-fieldset.mjs +0 -4
  209. package/fesm2022/primeng-types-fileupload.mjs +0 -4
  210. package/fesm2022/primeng-types-floatlabel.mjs +0 -4
  211. package/fesm2022/primeng-types-fluid.mjs +0 -4
  212. package/fesm2022/primeng-types-galleria.mjs +0 -4
  213. package/fesm2022/primeng-types-gallery.mjs +0 -4
  214. package/fesm2022/primeng-types-iconfield.mjs +0 -4
  215. package/fesm2022/primeng-types-iftalabel.mjs +0 -4
  216. package/fesm2022/primeng-types-image.mjs +0 -4
  217. package/fesm2022/primeng-types-imagecompare.mjs +0 -4
  218. package/fesm2022/primeng-types-inplace.mjs +0 -4
  219. package/fesm2022/primeng-types-inputcolor.mjs +0 -4
  220. package/fesm2022/primeng-types-inputgroup.mjs +0 -4
  221. package/fesm2022/primeng-types-inputgroupaddon.mjs +0 -4
  222. package/fesm2022/primeng-types-inputicon.mjs +0 -4
  223. package/fesm2022/primeng-types-inputmask.mjs +0 -4
  224. package/fesm2022/primeng-types-inputnumber.mjs +0 -4
  225. package/fesm2022/primeng-types-inputotp.mjs +0 -4
  226. package/fesm2022/primeng-types-inputpassword.mjs +0 -4
  227. package/fesm2022/primeng-types-inputtags.mjs +0 -4
  228. package/fesm2022/primeng-types-inputtext.mjs +0 -4
  229. package/fesm2022/primeng-types-knob.mjs +0 -4
  230. package/fesm2022/primeng-types-label.mjs +0 -4
  231. package/fesm2022/primeng-types-listbox.mjs +0 -4
  232. package/fesm2022/primeng-types-megamenu.mjs +0 -4
  233. package/fesm2022/primeng-types-menu.mjs +0 -4
  234. package/fesm2022/primeng-types-menubar.mjs +0 -4
  235. package/fesm2022/primeng-types-message.mjs +0 -4
  236. package/fesm2022/primeng-types-metergroup.mjs +0 -4
  237. package/fesm2022/primeng-types-motion.mjs +0 -4
  238. package/fesm2022/primeng-types-multiselect.mjs +0 -4
  239. package/fesm2022/primeng-types-orderlist.mjs +0 -4
  240. package/fesm2022/primeng-types-organizationchart.mjs +0 -4
  241. package/fesm2022/primeng-types-overlay.mjs +0 -4
  242. package/fesm2022/primeng-types-overlaybadge.mjs +0 -4
  243. package/fesm2022/primeng-types-paginator.mjs +0 -4
  244. package/fesm2022/primeng-types-panel.mjs +0 -4
  245. package/fesm2022/primeng-types-panelmenu.mjs +0 -4
  246. package/fesm2022/primeng-types-password.mjs +0 -4
  247. package/fesm2022/primeng-types-picklist.mjs +0 -4
  248. package/fesm2022/primeng-types-popover.mjs +0 -4
  249. package/fesm2022/primeng-types-progressbar.mjs +0 -4
  250. package/fesm2022/primeng-types-progressspinner.mjs +0 -4
  251. package/fesm2022/primeng-types-radiobutton.mjs +0 -4
  252. package/fesm2022/primeng-types-rating.mjs +0 -4
  253. package/fesm2022/primeng-types-scrollarea.mjs +0 -4
  254. package/fesm2022/primeng-types-scroller.mjs +0 -4
  255. package/fesm2022/primeng-types-scrollpanel.mjs +0 -4
  256. package/fesm2022/primeng-types-scrolltop.mjs +0 -4
  257. package/fesm2022/primeng-types-select.mjs +0 -4
  258. package/fesm2022/primeng-types-selectbutton.mjs +0 -4
  259. package/fesm2022/primeng-types-shared.mjs +0 -4
  260. package/fesm2022/primeng-types-sidebar.mjs +0 -4
  261. package/fesm2022/primeng-types-skeleton.mjs +0 -4
  262. package/fesm2022/primeng-types-slider.mjs +0 -4
  263. package/fesm2022/primeng-types-speeddial.mjs +0 -4
  264. package/fesm2022/primeng-types-splitbutton.mjs +0 -4
  265. package/fesm2022/primeng-types-splitter.mjs +0 -4
  266. package/fesm2022/primeng-types-stepper.mjs +0 -4
  267. package/fesm2022/primeng-types-table.mjs +0 -4
  268. package/fesm2022/primeng-types-tabs.mjs +0 -4
  269. package/fesm2022/primeng-types-tag.mjs +0 -4
  270. package/fesm2022/primeng-types-terminal.mjs +0 -4
  271. package/fesm2022/primeng-types-textarea.mjs +0 -4
  272. package/fesm2022/primeng-types-tieredmenu.mjs +0 -4
  273. package/fesm2022/primeng-types-timeline.mjs +0 -4
  274. package/fesm2022/primeng-types-toast.mjs +0 -4
  275. package/fesm2022/primeng-types-togglebutton.mjs +0 -4
  276. package/fesm2022/primeng-types-toggleswitch.mjs +0 -4
  277. package/fesm2022/primeng-types-toolbar.mjs +0 -4
  278. package/fesm2022/primeng-types-tooltip.mjs +0 -4
  279. package/fesm2022/primeng-types-tree.mjs +0 -4
  280. package/fesm2022/primeng-types-treeselect.mjs +0 -4
  281. package/fesm2022/primeng-types-treetable.mjs +0 -4
  282. package/fesm2022/primeng-useid.mjs +38 -0
  283. package/fesm2022/primeng-usestyle.mjs +325 -112
  284. package/fesm2022/primeng-utils.mjs +267 -317
  285. package/fesm2022/primeng.mjs +0 -5
  286. package/package.json +17 -4
  287. package/types/primeng-accordion.d.ts +280 -219
  288. package/types/primeng-animateonscroll.d.ts +89 -60
  289. package/types/primeng-api.d.ts +1755 -1789
  290. package/types/primeng-autocomplete.d.ts +1051 -754
  291. package/types/primeng-autofocus.d.ts +27 -24
  292. package/types/primeng-avatar.d.ts +152 -114
  293. package/types/primeng-avatargroup.d.ts +45 -40
  294. package/types/primeng-badge.d.ts +104 -78
  295. package/types/primeng-base.d.ts +51 -52
  296. package/types/primeng-basecomponent.d.ts +209 -174
  297. package/types/primeng-baseeditableholder.d.ts +63 -45
  298. package/types/primeng-baseinput.d.ts +122 -74
  299. package/types/primeng-basemodelholder.d.ts +9 -12
  300. package/types/primeng-bind.d.ts +36 -32
  301. package/types/primeng-blockui.d.ts +99 -80
  302. package/types/primeng-breadcrumb.d.ts +159 -133
  303. package/types/primeng-button.d.ts +688 -426
  304. package/types/primeng-buttongroup.d.ts +26 -30
  305. package/types/primeng-card.d.ts +130 -119
  306. package/types/primeng-carousel.d.ts +777 -629
  307. package/types/primeng-cascadeselect.d.ts +753 -562
  308. package/types/primeng-chart.d.ts +158 -112
  309. package/types/primeng-checkbox.d.ts +298 -208
  310. package/types/primeng-chip.d.ts +187 -143
  311. package/types/primeng-classnames.d.ts +23 -21
  312. package/types/primeng-colorpicker.d.ts +324 -269
  313. package/types/primeng-commandmenu.d.ts +213 -165
  314. package/types/primeng-compare.d.ts +258 -189
  315. package/types/primeng-config.d.ts +319 -304
  316. package/types/primeng-confirmdialog.d.ts +505 -325
  317. package/types/primeng-confirmpopup.d.ts +251 -207
  318. package/types/primeng-contextmenu.d.ts +522 -366
  319. package/types/primeng-dataview.d.ts +497 -342
  320. package/types/primeng-datepicker.d.ts +1258 -969
  321. package/types/primeng-dialog.d.ts +668 -462
  322. package/types/primeng-divider.d.ts +112 -96
  323. package/types/primeng-dock.d.ts +206 -172
  324. package/types/primeng-dom.d.ts +99 -107
  325. package/types/primeng-dragdrop.d.ts +143 -107
  326. package/types/primeng-drawer.d.ts +354 -254
  327. package/types/primeng-dynamicdialog.d.ts +528 -534
  328. package/types/primeng-editor.d.ts +210 -162
  329. package/types/primeng-fieldset.d.ts +198 -163
  330. package/types/primeng-fileupload.d.ts +726 -523
  331. package/types/primeng-floatlabel.d.ts +54 -48
  332. package/types/primeng-fluid.d.ts +36 -36
  333. package/types/primeng-focustrap.d.ts +30 -27
  334. package/types/primeng-galleria.d.ts +569 -430
  335. package/types/primeng-gallery.d.ts +668 -529
  336. package/types/primeng-iconfield.d.ts +53 -42
  337. package/types/primeng-icons-angledoubledown.d.ts +6 -9
  338. package/types/primeng-icons-angledoubleleft.d.ts +6 -9
  339. package/types/primeng-icons-angledoubleright.d.ts +6 -9
  340. package/types/primeng-icons-angledoubleup.d.ts +6 -9
  341. package/types/primeng-icons-angledown.d.ts +6 -9
  342. package/types/primeng-icons-angleleft.d.ts +6 -9
  343. package/types/primeng-icons-angleright.d.ts +6 -9
  344. package/types/primeng-icons-angleup.d.ts +6 -9
  345. package/types/primeng-icons-arrowdown.d.ts +8 -11
  346. package/types/primeng-icons-arrowdownleft.d.ts +6 -9
  347. package/types/primeng-icons-arrowdownright.d.ts +6 -9
  348. package/types/primeng-icons-arrowleft.d.ts +8 -11
  349. package/types/primeng-icons-arrowright.d.ts +6 -9
  350. package/types/primeng-icons-arrowup.d.ts +8 -11
  351. package/types/primeng-icons-ban.d.ts +8 -11
  352. package/types/primeng-icons-bars.d.ts +6 -9
  353. package/types/primeng-icons-baseicon.d.ts +23 -22
  354. package/types/primeng-icons-blank.d.ts +6 -9
  355. package/types/primeng-icons-calendar.d.ts +6 -9
  356. package/types/primeng-icons-caretleft.d.ts +6 -9
  357. package/types/primeng-icons-caretright.d.ts +6 -9
  358. package/types/primeng-icons-check.d.ts +6 -9
  359. package/types/primeng-icons-chevrondown.d.ts +6 -9
  360. package/types/primeng-icons-chevronleft.d.ts +6 -9
  361. package/types/primeng-icons-chevronright.d.ts +6 -9
  362. package/types/primeng-icons-chevronup.d.ts +6 -9
  363. package/types/primeng-icons-exclamationtriangle.d.ts +8 -11
  364. package/types/primeng-icons-eye.d.ts +6 -9
  365. package/types/primeng-icons-eyeslash.d.ts +8 -11
  366. package/types/primeng-icons-filter.d.ts +8 -11
  367. package/types/primeng-icons-filterfill.d.ts +6 -9
  368. package/types/primeng-icons-filterslash.d.ts +8 -11
  369. package/types/primeng-icons-home.d.ts +8 -11
  370. package/types/primeng-icons-infocircle.d.ts +8 -11
  371. package/types/primeng-icons-minus.d.ts +6 -9
  372. package/types/primeng-icons-pencil.d.ts +8 -11
  373. package/types/primeng-icons-plus.d.ts +8 -11
  374. package/types/primeng-icons-refresh.d.ts +8 -11
  375. package/types/primeng-icons-search.d.ts +8 -11
  376. package/types/primeng-icons-searchminus.d.ts +8 -11
  377. package/types/primeng-icons-searchplus.d.ts +8 -11
  378. package/types/primeng-icons-sortalt.d.ts +8 -11
  379. package/types/primeng-icons-sortamountdown.d.ts +8 -11
  380. package/types/primeng-icons-sortamountupalt.d.ts +8 -11
  381. package/types/primeng-icons-spinner.d.ts +8 -11
  382. package/types/primeng-icons-star.d.ts +8 -11
  383. package/types/primeng-icons-starfill.d.ts +8 -11
  384. package/types/primeng-icons-thlarge.d.ts +8 -11
  385. package/types/primeng-icons-times.d.ts +6 -9
  386. package/types/primeng-icons-timescircle.d.ts +8 -11
  387. package/types/primeng-icons-trash.d.ts +8 -11
  388. package/types/primeng-icons-undo.d.ts +8 -11
  389. package/types/primeng-icons-upload.d.ts +8 -11
  390. package/types/primeng-icons-windowmaximize.d.ts +8 -11
  391. package/types/primeng-icons-windowminimize.d.ts +8 -11
  392. package/types/primeng-icons.d.ts +53 -53
  393. package/types/primeng-iftalabel.d.ts +37 -37
  394. package/types/primeng-image.d.ts +403 -308
  395. package/types/primeng-imagecompare.d.ts +93 -77
  396. package/types/primeng-inplace.d.ts +125 -111
  397. package/types/primeng-inputcolor.d.ts +590 -484
  398. package/types/primeng-inputgroup.d.ts +41 -41
  399. package/types/primeng-inputgroupaddon.d.ts +31 -31
  400. package/types/primeng-inputicon.d.ts +38 -32
  401. package/types/primeng-inputmask.d.ts +519 -362
  402. package/types/primeng-inputnumber.d.ts +572 -405
  403. package/types/primeng-inputotp.d.ts +205 -156
  404. package/types/primeng-inputpassword.d.ts +59 -43
  405. package/types/primeng-inputtags.d.ts +451 -297
  406. package/types/primeng-inputtext.d.ts +129 -93
  407. package/types/primeng-isolation.d.ts +21 -0
  408. package/types/primeng-keyfilter.d.ts +62 -53
  409. package/types/primeng-knob.d.ts +256 -183
  410. package/types/primeng-label.d.ts +36 -36
  411. package/types/primeng-license.d.ts +1 -3
  412. package/types/primeng-listbox.d.ts +1041 -786
  413. package/types/primeng-megamenu.d.ts +539 -383
  414. package/types/primeng-menu.d.ts +477 -361
  415. package/types/primeng-menubar.d.ts +495 -354
  416. package/types/primeng-message.d.ts +191 -148
  417. package/types/primeng-metergroup.d.ts +249 -187
  418. package/types/primeng-motion.d.ts +596 -383
  419. package/types/primeng-multiselect.d.ts +1194 -858
  420. package/types/primeng-orderlist.d.ts +539 -390
  421. package/types/primeng-organizationchart.d.ts +235 -192
  422. package/types/primeng-overlay.d.ts +394 -294
  423. package/types/primeng-overlaybadge.d.ts +95 -64
  424. package/types/primeng-paginator.d.ts +409 -309
  425. package/types/primeng-panel.d.ts +267 -217
  426. package/types/primeng-panelmenu.d.ts +254 -228
  427. package/types/primeng-passthrough.d.ts +5 -7
  428. package/types/primeng-password.d.ts +605 -430
  429. package/types/primeng-picklist.d.ts +1042 -756
  430. package/types/primeng-popover.d.ts +235 -176
  431. package/types/primeng-progressbar.d.ts +130 -99
  432. package/types/primeng-progressspinner.d.ts +144 -108
  433. package/types/primeng-radiobutton.d.ts +218 -168
  434. package/types/primeng-rating.d.ts +239 -189
  435. package/types/primeng-ripple.d.ts +38 -42
  436. package/types/primeng-scrollarea.d.ts +275 -239
  437. package/types/primeng-scroller.d.ts +523 -387
  438. package/types/primeng-scrollpanel.d.ts +134 -128
  439. package/types/primeng-scrolltop.d.ts +169 -123
  440. package/types/primeng-select.d.ts +1054 -738
  441. package/types/primeng-selectbutton.d.ts +238 -164
  442. package/types/primeng-sidebar.d.ts +699 -535
  443. package/types/primeng-skeleton.d.ts +114 -83
  444. package/types/primeng-slider.d.ts +375 -306
  445. package/types/primeng-speeddial.d.ts +492 -370
  446. package/types/primeng-splitbutton.d.ts +381 -240
  447. package/types/primeng-splitter.d.ts +389 -299
  448. package/types/primeng-stepper.d.ts +405 -250
  449. package/types/primeng-steps.d.ts +157 -134
  450. package/types/primeng-styleclass.d.ts +163 -105
  451. package/types/primeng-table.d.ts +2826 -1912
  452. package/types/primeng-tabs.d.ts +452 -300
  453. package/types/primeng-tag.d.ts +106 -85
  454. package/types/primeng-terminal.d.ts +131 -117
  455. package/types/primeng-textarea.d.ts +145 -107
  456. package/types/primeng-tieredmenu.d.ts +572 -398
  457. package/types/primeng-timeline.d.ts +125 -109
  458. package/types/primeng-toast.d.ts +312 -247
  459. package/types/primeng-togglebutton.d.ts +254 -182
  460. package/types/primeng-toggleswitch.d.ts +188 -140
  461. package/types/primeng-toolbar.d.ts +82 -76
  462. package/types/primeng-tooltip.d.ts +334 -232
  463. package/types/primeng-tree.d.ts +762 -559
  464. package/types/primeng-treeselect.d.ts +749 -547
  465. package/types/primeng-treetable.d.ts +1752 -1314
  466. package/types/primeng-ts-helpers.d.ts +4 -6
  467. package/types/primeng-types-accordion.d.ts +58 -62
  468. package/types/primeng-types-autocomplete.d.ts +230 -233
  469. package/types/primeng-types-avatar.d.ts +25 -28
  470. package/types/primeng-types-avatargroup.d.ts +11 -14
  471. package/types/primeng-types-badge.d.ts +13 -16
  472. package/types/primeng-types-blockui.d.ts +18 -21
  473. package/types/primeng-types-breadcrumb.d.ts +65 -68
  474. package/types/primeng-types-button.d.ts +106 -109
  475. package/types/primeng-types-card.d.ts +54 -57
  476. package/types/primeng-types-carousel.d.ts +143 -146
  477. package/types/primeng-types-cascadeselect.d.ts +186 -192
  478. package/types/primeng-types-chart.d.ts +34 -39
  479. package/types/primeng-types-checkbox.d.ts +52 -55
  480. package/types/primeng-types-chip.d.ts +48 -51
  481. package/types/primeng-types-colorpicker.d.ts +59 -62
  482. package/types/primeng-types-commandmenu.d.ts +98 -101
  483. package/types/primeng-types-compare.d.ts +33 -36
  484. package/types/primeng-types-confirmdialog.d.ts +124 -127
  485. package/types/primeng-types-confirmpopup.d.ts +75 -78
  486. package/types/primeng-types-contextmenu.d.ts +100 -103
  487. package/types/primeng-types-dataview.d.ts +180 -183
  488. package/types/primeng-types-datepicker.d.ts +442 -445
  489. package/types/primeng-types-dialog.d.ts +93 -96
  490. package/types/primeng-types-divider.d.ts +14 -17
  491. package/types/primeng-types-dock.d.ts +45 -48
  492. package/types/primeng-types-drawer.d.ts +62 -65
  493. package/types/primeng-types-editor.d.ts +143 -146
  494. package/types/primeng-types-fieldset.d.ts +83 -87
  495. package/types/primeng-types-fileupload.d.ts +296 -301
  496. package/types/primeng-types-floatlabel.d.ts +12 -15
  497. package/types/primeng-types-fluid.d.ts +11 -14
  498. package/types/primeng-types-galleria.d.ts +209 -212
  499. package/types/primeng-types-gallery.d.ts +195 -198
  500. package/types/primeng-types-iconfield.d.ts +12 -15
  501. package/types/primeng-types-iftalabel.d.ts +11 -14
  502. package/types/primeng-types-image.d.ts +118 -121
  503. package/types/primeng-types-imagecompare.d.ts +22 -25
  504. package/types/primeng-types-inplace.d.ts +46 -49
  505. package/types/primeng-types-inputcolor.d.ts +86 -89
  506. package/types/primeng-types-inputgroup.d.ts +11 -14
  507. package/types/primeng-types-inputgroupaddon.d.ts +11 -14
  508. package/types/primeng-types-inputicon.d.ts +11 -14
  509. package/types/primeng-types-inputmask.d.ts +30 -33
  510. package/types/primeng-types-inputnumber.d.ts +72 -75
  511. package/types/primeng-types-inputotp.d.ts +67 -70
  512. package/types/primeng-types-inputpassword.d.ts +7 -10
  513. package/types/primeng-types-inputtags.d.ts +122 -125
  514. package/types/primeng-types-inputtext.d.ts +7 -10
  515. package/types/primeng-types-knob.d.ts +23 -26
  516. package/types/primeng-types-label.d.ts +7 -10
  517. package/types/primeng-types-listbox.d.ts +263 -267
  518. package/types/primeng-types-megamenu.d.ts +135 -138
  519. package/types/primeng-types-menu.d.ts +98 -101
  520. package/types/primeng-types-menubar.d.ts +122 -125
  521. package/types/primeng-types-message.d.ts +69 -72
  522. package/types/primeng-types-metergroup.d.ts +137 -140
  523. package/types/primeng-types-motion.d.ts +11 -14
  524. package/types/primeng-types-multiselect.d.ts +329 -333
  525. package/types/primeng-types-orderlist.d.ts +126 -129
  526. package/types/primeng-types-organizationchart.d.ts +147 -153
  527. package/types/primeng-types-overlay.d.ts +31 -34
  528. package/types/primeng-types-overlaybadge.d.ts +17 -20
  529. package/types/primeng-types-paginator.d.ts +131 -134
  530. package/types/primeng-types-panel.d.ts +91 -95
  531. package/types/primeng-types-panelmenu.d.ts +150 -153
  532. package/types/primeng-types-password.d.ts +94 -97
  533. package/types/primeng-types-picklist.d.ts +250 -260
  534. package/types/primeng-types-popover.d.ts +33 -36
  535. package/types/primeng-types-progressbar.d.ts +33 -36
  536. package/types/primeng-types-progressspinner.d.ts +27 -30
  537. package/types/primeng-types-radiobutton.d.ts +29 -32
  538. package/types/primeng-types-rating.d.ts +62 -65
  539. package/types/primeng-types-scrollarea.d.ts +35 -38
  540. package/types/primeng-types-scroller.d.ts +142 -146
  541. package/types/primeng-types-scrollpanel.d.ts +31 -34
  542. package/types/primeng-types-scrolltop.d.ts +37 -40
  543. package/types/primeng-types-select.d.ts +255 -254
  544. package/types/primeng-types-selectbutton.d.ts +56 -59
  545. package/types/primeng-types-shared.d.ts +6 -9
  546. package/types/primeng-types-sidebar.d.ts +105 -108
  547. package/types/primeng-types-skeleton.d.ts +11 -14
  548. package/types/primeng-types-slider.d.ts +59 -62
  549. package/types/primeng-types-speeddial.d.ts +71 -74
  550. package/types/primeng-types-splitbutton.d.ts +35 -38
  551. package/types/primeng-types-splitter.d.ts +58 -63
  552. package/types/primeng-types-stepper.d.ts +77 -80
  553. package/types/primeng-types-table.d.ts +743 -749
  554. package/types/primeng-types-tabs.d.ts +48 -51
  555. package/types/primeng-types-tag.d.ts +27 -30
  556. package/types/primeng-types-terminal.d.ts +43 -46
  557. package/types/primeng-types-textarea.d.ts +11 -14
  558. package/types/primeng-types-tieredmenu.d.ts +154 -157
  559. package/types/primeng-types-timeline.d.ts +60 -63
  560. package/types/primeng-types-toast.d.ts +92 -95
  561. package/types/primeng-types-togglebutton.d.ts +52 -55
  562. package/types/primeng-types-toggleswitch.d.ts +41 -44
  563. package/types/primeng-types-toolbar.d.ts +34 -37
  564. package/types/primeng-types-tooltip.d.ts +17 -20
  565. package/types/primeng-types-tree.d.ts +237 -246
  566. package/types/primeng-types-treeselect.d.ts +198 -202
  567. package/types/primeng-types-treetable.d.ts +492 -497
  568. package/types/primeng-useid.d.ts +15 -0
  569. package/types/primeng-usestyle.d.ts +107 -30
  570. package/types/primeng-utils.d.ts +79 -40
  571. package/types/primeng.d.ts +2 -2
  572. package/fesm2022/primeng-accordion.mjs.map +0 -1
  573. package/fesm2022/primeng-animateonscroll.mjs.map +0 -1
  574. package/fesm2022/primeng-api.mjs.map +0 -1
  575. package/fesm2022/primeng-autocomplete.mjs.map +0 -1
  576. package/fesm2022/primeng-autofocus.mjs.map +0 -1
  577. package/fesm2022/primeng-avatar.mjs.map +0 -1
  578. package/fesm2022/primeng-avatargroup.mjs.map +0 -1
  579. package/fesm2022/primeng-badge.mjs.map +0 -1
  580. package/fesm2022/primeng-base.mjs.map +0 -1
  581. package/fesm2022/primeng-basecomponent.mjs.map +0 -1
  582. package/fesm2022/primeng-baseeditableholder.mjs.map +0 -1
  583. package/fesm2022/primeng-baseinput.mjs.map +0 -1
  584. package/fesm2022/primeng-basemodelholder.mjs.map +0 -1
  585. package/fesm2022/primeng-bind.mjs.map +0 -1
  586. package/fesm2022/primeng-blockui.mjs.map +0 -1
  587. package/fesm2022/primeng-breadcrumb.mjs.map +0 -1
  588. package/fesm2022/primeng-button.mjs.map +0 -1
  589. package/fesm2022/primeng-buttongroup.mjs.map +0 -1
  590. package/fesm2022/primeng-card.mjs.map +0 -1
  591. package/fesm2022/primeng-carousel.mjs.map +0 -1
  592. package/fesm2022/primeng-cascadeselect.mjs.map +0 -1
  593. package/fesm2022/primeng-chart.mjs.map +0 -1
  594. package/fesm2022/primeng-checkbox.mjs.map +0 -1
  595. package/fesm2022/primeng-chip.mjs.map +0 -1
  596. package/fesm2022/primeng-classnames.mjs.map +0 -1
  597. package/fesm2022/primeng-colorpicker.mjs.map +0 -1
  598. package/fesm2022/primeng-commandmenu.mjs.map +0 -1
  599. package/fesm2022/primeng-compare.mjs.map +0 -1
  600. package/fesm2022/primeng-config.mjs.map +0 -1
  601. package/fesm2022/primeng-confirmdialog.mjs.map +0 -1
  602. package/fesm2022/primeng-confirmpopup.mjs.map +0 -1
  603. package/fesm2022/primeng-contextmenu.mjs.map +0 -1
  604. package/fesm2022/primeng-dataview.mjs.map +0 -1
  605. package/fesm2022/primeng-datepicker.mjs.map +0 -1
  606. package/fesm2022/primeng-dialog.mjs.map +0 -1
  607. package/fesm2022/primeng-divider.mjs.map +0 -1
  608. package/fesm2022/primeng-dock.mjs.map +0 -1
  609. package/fesm2022/primeng-dom.mjs.map +0 -1
  610. package/fesm2022/primeng-dragdrop.mjs.map +0 -1
  611. package/fesm2022/primeng-drawer.mjs.map +0 -1
  612. package/fesm2022/primeng-dynamicdialog.mjs.map +0 -1
  613. package/fesm2022/primeng-editor.mjs.map +0 -1
  614. package/fesm2022/primeng-fieldset.mjs.map +0 -1
  615. package/fesm2022/primeng-fileupload.mjs.map +0 -1
  616. package/fesm2022/primeng-floatlabel.mjs.map +0 -1
  617. package/fesm2022/primeng-fluid.mjs.map +0 -1
  618. package/fesm2022/primeng-focustrap.mjs.map +0 -1
  619. package/fesm2022/primeng-galleria.mjs.map +0 -1
  620. package/fesm2022/primeng-gallery.mjs.map +0 -1
  621. package/fesm2022/primeng-iconfield.mjs.map +0 -1
  622. package/fesm2022/primeng-icons-angledoubledown.mjs.map +0 -1
  623. package/fesm2022/primeng-icons-angledoubleleft.mjs.map +0 -1
  624. package/fesm2022/primeng-icons-angledoubleright.mjs.map +0 -1
  625. package/fesm2022/primeng-icons-angledoubleup.mjs.map +0 -1
  626. package/fesm2022/primeng-icons-angledown.mjs.map +0 -1
  627. package/fesm2022/primeng-icons-angleleft.mjs.map +0 -1
  628. package/fesm2022/primeng-icons-angleright.mjs.map +0 -1
  629. package/fesm2022/primeng-icons-angleup.mjs.map +0 -1
  630. package/fesm2022/primeng-icons-arrowdown.mjs.map +0 -1
  631. package/fesm2022/primeng-icons-arrowdownleft.mjs.map +0 -1
  632. package/fesm2022/primeng-icons-arrowdownright.mjs.map +0 -1
  633. package/fesm2022/primeng-icons-arrowleft.mjs.map +0 -1
  634. package/fesm2022/primeng-icons-arrowright.mjs.map +0 -1
  635. package/fesm2022/primeng-icons-arrowup.mjs.map +0 -1
  636. package/fesm2022/primeng-icons-ban.mjs.map +0 -1
  637. package/fesm2022/primeng-icons-bars.mjs.map +0 -1
  638. package/fesm2022/primeng-icons-baseicon.mjs.map +0 -1
  639. package/fesm2022/primeng-icons-blank.mjs.map +0 -1
  640. package/fesm2022/primeng-icons-calendar.mjs.map +0 -1
  641. package/fesm2022/primeng-icons-caretleft.mjs.map +0 -1
  642. package/fesm2022/primeng-icons-caretright.mjs.map +0 -1
  643. package/fesm2022/primeng-icons-check.mjs.map +0 -1
  644. package/fesm2022/primeng-icons-chevrondown.mjs.map +0 -1
  645. package/fesm2022/primeng-icons-chevronleft.mjs.map +0 -1
  646. package/fesm2022/primeng-icons-chevronright.mjs.map +0 -1
  647. package/fesm2022/primeng-icons-chevronup.mjs.map +0 -1
  648. package/fesm2022/primeng-icons-exclamationtriangle.mjs.map +0 -1
  649. package/fesm2022/primeng-icons-eye.mjs.map +0 -1
  650. package/fesm2022/primeng-icons-eyeslash.mjs.map +0 -1
  651. package/fesm2022/primeng-icons-filter.mjs.map +0 -1
  652. package/fesm2022/primeng-icons-filterfill.mjs.map +0 -1
  653. package/fesm2022/primeng-icons-filterslash.mjs.map +0 -1
  654. package/fesm2022/primeng-icons-home.mjs.map +0 -1
  655. package/fesm2022/primeng-icons-infocircle.mjs.map +0 -1
  656. package/fesm2022/primeng-icons-minus.mjs.map +0 -1
  657. package/fesm2022/primeng-icons-pencil.mjs.map +0 -1
  658. package/fesm2022/primeng-icons-plus.mjs.map +0 -1
  659. package/fesm2022/primeng-icons-refresh.mjs.map +0 -1
  660. package/fesm2022/primeng-icons-search.mjs.map +0 -1
  661. package/fesm2022/primeng-icons-searchminus.mjs.map +0 -1
  662. package/fesm2022/primeng-icons-searchplus.mjs.map +0 -1
  663. package/fesm2022/primeng-icons-sortalt.mjs.map +0 -1
  664. package/fesm2022/primeng-icons-sortamountdown.mjs.map +0 -1
  665. package/fesm2022/primeng-icons-sortamountupalt.mjs.map +0 -1
  666. package/fesm2022/primeng-icons-spinner.mjs.map +0 -1
  667. package/fesm2022/primeng-icons-star.mjs.map +0 -1
  668. package/fesm2022/primeng-icons-starfill.mjs.map +0 -1
  669. package/fesm2022/primeng-icons-thlarge.mjs.map +0 -1
  670. package/fesm2022/primeng-icons-times.mjs.map +0 -1
  671. package/fesm2022/primeng-icons-timescircle.mjs.map +0 -1
  672. package/fesm2022/primeng-icons-trash.mjs.map +0 -1
  673. package/fesm2022/primeng-icons-undo.mjs.map +0 -1
  674. package/fesm2022/primeng-icons-upload.mjs.map +0 -1
  675. package/fesm2022/primeng-icons-windowmaximize.mjs.map +0 -1
  676. package/fesm2022/primeng-icons-windowminimize.mjs.map +0 -1
  677. package/fesm2022/primeng-icons.mjs.map +0 -1
  678. package/fesm2022/primeng-iftalabel.mjs.map +0 -1
  679. package/fesm2022/primeng-image.mjs.map +0 -1
  680. package/fesm2022/primeng-imagecompare.mjs.map +0 -1
  681. package/fesm2022/primeng-inplace.mjs.map +0 -1
  682. package/fesm2022/primeng-inputcolor.mjs.map +0 -1
  683. package/fesm2022/primeng-inputgroup.mjs.map +0 -1
  684. package/fesm2022/primeng-inputgroupaddon.mjs.map +0 -1
  685. package/fesm2022/primeng-inputicon.mjs.map +0 -1
  686. package/fesm2022/primeng-inputmask.mjs.map +0 -1
  687. package/fesm2022/primeng-inputnumber.mjs.map +0 -1
  688. package/fesm2022/primeng-inputotp.mjs.map +0 -1
  689. package/fesm2022/primeng-inputpassword.mjs.map +0 -1
  690. package/fesm2022/primeng-inputtags.mjs.map +0 -1
  691. package/fesm2022/primeng-inputtext.mjs.map +0 -1
  692. package/fesm2022/primeng-keyfilter.mjs.map +0 -1
  693. package/fesm2022/primeng-knob.mjs.map +0 -1
  694. package/fesm2022/primeng-label.mjs.map +0 -1
  695. package/fesm2022/primeng-license.mjs.map +0 -1
  696. package/fesm2022/primeng-listbox.mjs.map +0 -1
  697. package/fesm2022/primeng-megamenu.mjs.map +0 -1
  698. package/fesm2022/primeng-menu.mjs.map +0 -1
  699. package/fesm2022/primeng-menubar.mjs.map +0 -1
  700. package/fesm2022/primeng-message.mjs.map +0 -1
  701. package/fesm2022/primeng-metergroup.mjs.map +0 -1
  702. package/fesm2022/primeng-motion.mjs.map +0 -1
  703. package/fesm2022/primeng-multiselect.mjs.map +0 -1
  704. package/fesm2022/primeng-orderlist.mjs.map +0 -1
  705. package/fesm2022/primeng-organizationchart.mjs.map +0 -1
  706. package/fesm2022/primeng-overlay.mjs.map +0 -1
  707. package/fesm2022/primeng-overlaybadge.mjs.map +0 -1
  708. package/fesm2022/primeng-paginator.mjs.map +0 -1
  709. package/fesm2022/primeng-panel.mjs.map +0 -1
  710. package/fesm2022/primeng-panelmenu.mjs.map +0 -1
  711. package/fesm2022/primeng-passthrough.mjs.map +0 -1
  712. package/fesm2022/primeng-password.mjs.map +0 -1
  713. package/fesm2022/primeng-picklist.mjs.map +0 -1
  714. package/fesm2022/primeng-popover.mjs.map +0 -1
  715. package/fesm2022/primeng-progressbar.mjs.map +0 -1
  716. package/fesm2022/primeng-progressspinner.mjs.map +0 -1
  717. package/fesm2022/primeng-radiobutton.mjs.map +0 -1
  718. package/fesm2022/primeng-rating.mjs.map +0 -1
  719. package/fesm2022/primeng-ripple.mjs.map +0 -1
  720. package/fesm2022/primeng-scrollarea.mjs.map +0 -1
  721. package/fesm2022/primeng-scroller.mjs.map +0 -1
  722. package/fesm2022/primeng-scrollpanel.mjs.map +0 -1
  723. package/fesm2022/primeng-scrolltop.mjs.map +0 -1
  724. package/fesm2022/primeng-select.mjs.map +0 -1
  725. package/fesm2022/primeng-selectbutton.mjs.map +0 -1
  726. package/fesm2022/primeng-sidebar.mjs.map +0 -1
  727. package/fesm2022/primeng-skeleton.mjs.map +0 -1
  728. package/fesm2022/primeng-slider.mjs.map +0 -1
  729. package/fesm2022/primeng-speeddial.mjs.map +0 -1
  730. package/fesm2022/primeng-splitbutton.mjs.map +0 -1
  731. package/fesm2022/primeng-splitter.mjs.map +0 -1
  732. package/fesm2022/primeng-stepper.mjs.map +0 -1
  733. package/fesm2022/primeng-steps.mjs.map +0 -1
  734. package/fesm2022/primeng-styleclass.mjs.map +0 -1
  735. package/fesm2022/primeng-table.mjs.map +0 -1
  736. package/fesm2022/primeng-tabs.mjs.map +0 -1
  737. package/fesm2022/primeng-tag.mjs.map +0 -1
  738. package/fesm2022/primeng-terminal.mjs.map +0 -1
  739. package/fesm2022/primeng-textarea.mjs.map +0 -1
  740. package/fesm2022/primeng-tieredmenu.mjs.map +0 -1
  741. package/fesm2022/primeng-timeline.mjs.map +0 -1
  742. package/fesm2022/primeng-toast.mjs.map +0 -1
  743. package/fesm2022/primeng-togglebutton.mjs.map +0 -1
  744. package/fesm2022/primeng-toggleswitch.mjs.map +0 -1
  745. package/fesm2022/primeng-toolbar.mjs.map +0 -1
  746. package/fesm2022/primeng-tooltip.mjs.map +0 -1
  747. package/fesm2022/primeng-tree.mjs.map +0 -1
  748. package/fesm2022/primeng-treeselect.mjs.map +0 -1
  749. package/fesm2022/primeng-treetable.mjs.map +0 -1
  750. package/fesm2022/primeng-ts-helpers.mjs.map +0 -1
  751. package/fesm2022/primeng-types-accordion.mjs.map +0 -1
  752. package/fesm2022/primeng-types-autocomplete.mjs.map +0 -1
  753. package/fesm2022/primeng-types-avatar.mjs.map +0 -1
  754. package/fesm2022/primeng-types-avatargroup.mjs.map +0 -1
  755. package/fesm2022/primeng-types-badge.mjs.map +0 -1
  756. package/fesm2022/primeng-types-blockui.mjs.map +0 -1
  757. package/fesm2022/primeng-types-breadcrumb.mjs.map +0 -1
  758. package/fesm2022/primeng-types-button.mjs.map +0 -1
  759. package/fesm2022/primeng-types-card.mjs.map +0 -1
  760. package/fesm2022/primeng-types-carousel.mjs.map +0 -1
  761. package/fesm2022/primeng-types-cascadeselect.mjs.map +0 -1
  762. package/fesm2022/primeng-types-chart.mjs.map +0 -1
  763. package/fesm2022/primeng-types-checkbox.mjs.map +0 -1
  764. package/fesm2022/primeng-types-chip.mjs.map +0 -1
  765. package/fesm2022/primeng-types-colorpicker.mjs.map +0 -1
  766. package/fesm2022/primeng-types-commandmenu.mjs.map +0 -1
  767. package/fesm2022/primeng-types-compare.mjs.map +0 -1
  768. package/fesm2022/primeng-types-confirmdialog.mjs.map +0 -1
  769. package/fesm2022/primeng-types-confirmpopup.mjs.map +0 -1
  770. package/fesm2022/primeng-types-contextmenu.mjs.map +0 -1
  771. package/fesm2022/primeng-types-dataview.mjs.map +0 -1
  772. package/fesm2022/primeng-types-datepicker.mjs.map +0 -1
  773. package/fesm2022/primeng-types-dialog.mjs.map +0 -1
  774. package/fesm2022/primeng-types-divider.mjs.map +0 -1
  775. package/fesm2022/primeng-types-dock.mjs.map +0 -1
  776. package/fesm2022/primeng-types-drawer.mjs.map +0 -1
  777. package/fesm2022/primeng-types-editor.mjs.map +0 -1
  778. package/fesm2022/primeng-types-fieldset.mjs.map +0 -1
  779. package/fesm2022/primeng-types-fileupload.mjs.map +0 -1
  780. package/fesm2022/primeng-types-floatlabel.mjs.map +0 -1
  781. package/fesm2022/primeng-types-fluid.mjs.map +0 -1
  782. package/fesm2022/primeng-types-galleria.mjs.map +0 -1
  783. package/fesm2022/primeng-types-gallery.mjs.map +0 -1
  784. package/fesm2022/primeng-types-iconfield.mjs.map +0 -1
  785. package/fesm2022/primeng-types-iftalabel.mjs.map +0 -1
  786. package/fesm2022/primeng-types-image.mjs.map +0 -1
  787. package/fesm2022/primeng-types-imagecompare.mjs.map +0 -1
  788. package/fesm2022/primeng-types-inplace.mjs.map +0 -1
  789. package/fesm2022/primeng-types-inputcolor.mjs.map +0 -1
  790. package/fesm2022/primeng-types-inputgroup.mjs.map +0 -1
  791. package/fesm2022/primeng-types-inputgroupaddon.mjs.map +0 -1
  792. package/fesm2022/primeng-types-inputicon.mjs.map +0 -1
  793. package/fesm2022/primeng-types-inputmask.mjs.map +0 -1
  794. package/fesm2022/primeng-types-inputnumber.mjs.map +0 -1
  795. package/fesm2022/primeng-types-inputotp.mjs.map +0 -1
  796. package/fesm2022/primeng-types-inputpassword.mjs.map +0 -1
  797. package/fesm2022/primeng-types-inputtags.mjs.map +0 -1
  798. package/fesm2022/primeng-types-inputtext.mjs.map +0 -1
  799. package/fesm2022/primeng-types-knob.mjs.map +0 -1
  800. package/fesm2022/primeng-types-label.mjs.map +0 -1
  801. package/fesm2022/primeng-types-listbox.mjs.map +0 -1
  802. package/fesm2022/primeng-types-megamenu.mjs.map +0 -1
  803. package/fesm2022/primeng-types-menu.mjs.map +0 -1
  804. package/fesm2022/primeng-types-menubar.mjs.map +0 -1
  805. package/fesm2022/primeng-types-message.mjs.map +0 -1
  806. package/fesm2022/primeng-types-metergroup.mjs.map +0 -1
  807. package/fesm2022/primeng-types-motion.mjs.map +0 -1
  808. package/fesm2022/primeng-types-multiselect.mjs.map +0 -1
  809. package/fesm2022/primeng-types-orderlist.mjs.map +0 -1
  810. package/fesm2022/primeng-types-organizationchart.mjs.map +0 -1
  811. package/fesm2022/primeng-types-overlay.mjs.map +0 -1
  812. package/fesm2022/primeng-types-overlaybadge.mjs.map +0 -1
  813. package/fesm2022/primeng-types-paginator.mjs.map +0 -1
  814. package/fesm2022/primeng-types-panel.mjs.map +0 -1
  815. package/fesm2022/primeng-types-panelmenu.mjs.map +0 -1
  816. package/fesm2022/primeng-types-password.mjs.map +0 -1
  817. package/fesm2022/primeng-types-picklist.mjs.map +0 -1
  818. package/fesm2022/primeng-types-popover.mjs.map +0 -1
  819. package/fesm2022/primeng-types-progressbar.mjs.map +0 -1
  820. package/fesm2022/primeng-types-progressspinner.mjs.map +0 -1
  821. package/fesm2022/primeng-types-radiobutton.mjs.map +0 -1
  822. package/fesm2022/primeng-types-rating.mjs.map +0 -1
  823. package/fesm2022/primeng-types-scrollarea.mjs.map +0 -1
  824. package/fesm2022/primeng-types-scroller.mjs.map +0 -1
  825. package/fesm2022/primeng-types-scrollpanel.mjs.map +0 -1
  826. package/fesm2022/primeng-types-scrolltop.mjs.map +0 -1
  827. package/fesm2022/primeng-types-select.mjs.map +0 -1
  828. package/fesm2022/primeng-types-selectbutton.mjs.map +0 -1
  829. package/fesm2022/primeng-types-shared.mjs.map +0 -1
  830. package/fesm2022/primeng-types-sidebar.mjs.map +0 -1
  831. package/fesm2022/primeng-types-skeleton.mjs.map +0 -1
  832. package/fesm2022/primeng-types-slider.mjs.map +0 -1
  833. package/fesm2022/primeng-types-speeddial.mjs.map +0 -1
  834. package/fesm2022/primeng-types-splitbutton.mjs.map +0 -1
  835. package/fesm2022/primeng-types-splitter.mjs.map +0 -1
  836. package/fesm2022/primeng-types-stepper.mjs.map +0 -1
  837. package/fesm2022/primeng-types-table.mjs.map +0 -1
  838. package/fesm2022/primeng-types-tabs.mjs.map +0 -1
  839. package/fesm2022/primeng-types-tag.mjs.map +0 -1
  840. package/fesm2022/primeng-types-terminal.mjs.map +0 -1
  841. package/fesm2022/primeng-types-textarea.mjs.map +0 -1
  842. package/fesm2022/primeng-types-tieredmenu.mjs.map +0 -1
  843. package/fesm2022/primeng-types-timeline.mjs.map +0 -1
  844. package/fesm2022/primeng-types-toast.mjs.map +0 -1
  845. package/fesm2022/primeng-types-togglebutton.mjs.map +0 -1
  846. package/fesm2022/primeng-types-toggleswitch.mjs.map +0 -1
  847. package/fesm2022/primeng-types-toolbar.mjs.map +0 -1
  848. package/fesm2022/primeng-types-tooltip.mjs.map +0 -1
  849. package/fesm2022/primeng-types-tree.mjs.map +0 -1
  850. package/fesm2022/primeng-types-treeselect.mjs.map +0 -1
  851. package/fesm2022/primeng-types-treetable.mjs.map +0 -1
  852. package/fesm2022/primeng-usestyle.mjs.map +0 -1
  853. package/fesm2022/primeng-utils.mjs.map +0 -1
  854. package/fesm2022/primeng.mjs.map +0 -1
@@ -1,452 +1,495 @@
1
- export * from 'primeng/types/galleria';
2
- import * as i0 from '@angular/core';
3
- import { InjectionToken, input, inject, computed, ChangeDetectionStrategy, Component, Injectable, booleanAttribute, output, linkedSignal, effect, viewChild, model, HostListener, numberAttribute, signal, contentChild, ElementRef, ViewEncapsulation, NgModule } from '@angular/core';
4
- import { removeClass, setAttribute, find, getAttribute, findSingle, addClass, uuid, focus } from '@primeuix/utils';
5
- import { SharedModule } from 'primeng/api';
6
- import { BaseComponent, PARENT_INSTANCE } from 'primeng/basecomponent';
7
- import * as i1 from 'primeng/bind';
8
- import { Bind, BindModule } from 'primeng/bind';
9
- import { blockBodyScroll, unblockBodyScroll } from 'primeng/dom';
10
- import { FocusTrap } from 'primeng/focustrap';
11
- import * as i2 from 'primeng/motion';
12
- import { MotionModule } from 'primeng/motion';
13
- import { ZIndexUtils } from 'primeng/utils';
14
- import { NgTemplateOutlet, isPlatformBrowser } from '@angular/common';
15
- import { Times } from '@primeicons/angular/times';
16
- import { ChevronLeft } from '@primeicons/angular/chevron-left';
17
- import { ChevronRight } from '@primeicons/angular/chevron-right';
18
- import { style } from '@primeuix/styles/galleria';
19
- import { BaseStyle } from 'primeng/base';
20
- import { ChevronDown } from '@primeicons/angular/chevron-down';
21
- import { ChevronUp } from '@primeicons/angular/chevron-up';
22
- import { Ripple } from 'primeng/ripple';
23
-
24
- const GALLERIA_INSTANCE = new InjectionToken('GALLERIA_INSTANCE');
25
-
26
- class GalleriaItemSlot extends BaseComponent {
27
- hostName = 'Galleria';
28
- index = input(/* @ts-ignore */
29
- ...(ngDevMode ? [undefined, { debugName: "index" }] : /* istanbul ignore next */ []));
30
- item = input(/* @ts-ignore */
31
- ...(ngDevMode ? [undefined, { debugName: "item" }] : /* istanbul ignore next */ []));
32
- type = input(/* @ts-ignore */
33
- ...(ngDevMode ? [undefined, { debugName: "type" }] : /* istanbul ignore next */ []));
34
- galleria = inject(GALLERIA_INSTANCE);
35
- $pcGalleria = inject(GALLERIA_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
36
- contentTemplate = computed(() => {
37
- const type = this.type();
38
- switch (type) {
39
- case 'item':
40
- return this.galleria.itemTemplate();
41
- case 'caption':
42
- return this.galleria.captionTemplate();
43
- case 'thumbnail':
44
- return this.galleria.thumbnailTemplate();
45
- case 'indicator':
46
- return this.galleria.indicatorTemplate();
47
- case 'footer':
48
- return this.galleria.footerTemplate();
49
- case 'header':
50
- return this.galleria.headerTemplate();
51
- default:
52
- return this.galleria.itemTemplate();
53
- }
54
- }, /* @ts-ignore */
55
- ...(ngDevMode ? [{ debugName: "contentTemplate" }] : /* istanbul ignore next */ []));
56
- context = computed(() => {
57
- const type = this.type();
58
- if (type === 'indicator') {
59
- return { $implicit: this.index() };
60
- }
61
- return { $implicit: this.item() };
62
- }, /* @ts-ignore */
63
- ...(ngDevMode ? [{ debugName: "context" }] : /* istanbul ignore next */ []));
64
- shouldRender() {
65
- return !!this.contentTemplate();
66
- }
67
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: GalleriaItemSlot, deps: null, target: i0.ɵɵFactoryTarget.Component });
68
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: GalleriaItemSlot, isStandalone: true, selector: "div[pGalleriaItemSlot]", inputs: { index: { classPropertyName: "index", publicName: "index", isSignal: true, isRequired: false, transformFunction: null }, item: { classPropertyName: "item", publicName: "item", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: `
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, ElementRef, HostListener, Injectable, InjectionToken, NgModule, ViewEncapsulation, booleanAttribute, computed, contentChild, effect, inject, input, linkedSignal, model, numberAttribute, output, signal, viewChild } from "@angular/core";
3
+ import { addClass, find, findSingle, focus, getAttribute, removeClass, setAttribute } from "@primeuix/utils";
4
+ import { SharedModule } from "primeng/api";
5
+ import { BaseComponent, PARENT_INSTANCE } from "primeng/basecomponent";
6
+ import * as i1 from "primeng/bind";
7
+ import { Bind, BindModule } from "primeng/bind";
8
+ import { FocusTrap } from "primeng/focustrap";
9
+ import * as i2 from "primeng/motion";
10
+ import { MotionModule } from "primeng/motion";
11
+ import { ZIndexUtils } from "primeng/utils";
12
+ import { NgTemplateOutlet, isPlatformBrowser } from "@angular/common";
13
+ import { Times } from "@primeicons/angular/times";
14
+ import { ChevronLeft } from "@primeicons/angular/chevron-left";
15
+ import { ChevronRight } from "@primeicons/angular/chevron-right";
16
+ import { style } from "@primeuix/styles/galleria";
17
+ import { BaseStyle } from "primeng/base";
18
+ import { getShadowRoot } from "primeng/dom";
19
+ import { ChevronDown } from "@primeicons/angular/chevron-down";
20
+ import { ChevronUp } from "@primeicons/angular/chevron-up";
21
+ import { Ripple } from "primeng/ripple";
22
+ export * from "primeng/types/galleria";
23
+ const GALLERIA_INSTANCE = new InjectionToken("GALLERIA_INSTANCE");
24
+ var GalleriaItemSlot = class GalleriaItemSlot extends BaseComponent {
25
+ hostName = "Galleria";
26
+ index = input(...ngDevMode ? [void 0, { debugName: "index" }] : /* istanbul ignore next */ []);
27
+ item = input(...ngDevMode ? [void 0, { debugName: "item" }] : /* istanbul ignore next */ []);
28
+ type = input(...ngDevMode ? [void 0, { debugName: "type" }] : /* istanbul ignore next */ []);
29
+ galleria = inject(GALLERIA_INSTANCE);
30
+ $pcGalleria = inject(GALLERIA_INSTANCE, {
31
+ optional: true,
32
+ skipSelf: true
33
+ }) ?? void 0;
34
+ contentTemplate = computed(() => {
35
+ switch (this.type()) {
36
+ case "item": return this.galleria.itemTemplate();
37
+ case "caption": return this.galleria.captionTemplate();
38
+ case "thumbnail": return this.galleria.thumbnailTemplate();
39
+ case "indicator": return this.galleria.indicatorTemplate();
40
+ case "footer": return this.galleria.footerTemplate();
41
+ case "header": return this.galleria.headerTemplate();
42
+ default: return this.galleria.itemTemplate();
43
+ }
44
+ }, ...ngDevMode ? [{ debugName: "contentTemplate" }] : /* istanbul ignore next */ []);
45
+ context = computed(() => {
46
+ if (this.type() === "indicator") return { $implicit: this.index() };
47
+ return { $implicit: this.item() };
48
+ }, ...ngDevMode ? [{ debugName: "context" }] : /* istanbul ignore next */ []);
49
+ shouldRender() {
50
+ return !!this.contentTemplate();
51
+ }
52
+ static ɵfac = i0.ɵɵngDeclareFactory({
53
+ minVersion: "12.0.0",
54
+ version: "22.2.3",
55
+ ngImport: i0,
56
+ type: GalleriaItemSlot,
57
+ deps: null,
58
+ target: i0.ɵɵFactoryTarget.Component
59
+ });
60
+ static ɵcmp = i0.ɵɵngDeclareComponent({
61
+ minVersion: "17.0.0",
62
+ version: "22.2.3",
63
+ type: GalleriaItemSlot,
64
+ isStandalone: true,
65
+ selector: "div[pGalleriaItemSlot]",
66
+ inputs: {
67
+ index: {
68
+ classPropertyName: "index",
69
+ publicName: "index",
70
+ isSignal: true,
71
+ isRequired: false,
72
+ transformFunction: null
73
+ },
74
+ item: {
75
+ classPropertyName: "item",
76
+ publicName: "item",
77
+ isSignal: true,
78
+ isRequired: false,
79
+ transformFunction: null
80
+ },
81
+ type: {
82
+ classPropertyName: "type",
83
+ publicName: "type",
84
+ isSignal: true,
85
+ isRequired: false,
86
+ transformFunction: null
87
+ }
88
+ },
89
+ usesInheritance: true,
90
+ ngImport: i0,
91
+ template: `
69
92
  @if (shouldRender()) {
70
93
  <ng-container [ngTemplateOutlet]="contentTemplate()" [ngTemplateOutletContext]="context()"></ng-container>
71
94
  }
72
- `, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
73
- }
74
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: GalleriaItemSlot, decorators: [{
75
- type: Component,
76
- args: [{
77
- selector: 'div[pGalleriaItemSlot]',
78
- standalone: true,
79
- imports: [NgTemplateOutlet],
80
- template: `
95
+ `,
96
+ isInline: true,
97
+ dependencies: [{
98
+ kind: "directive",
99
+ type: NgTemplateOutlet,
100
+ selector: "[ngTemplateOutlet]",
101
+ inputs: [
102
+ "ngTemplateOutletContext",
103
+ "ngTemplateOutlet",
104
+ "ngTemplateOutletInjector"
105
+ ]
106
+ }],
107
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
108
+ });
109
+ };
110
+ i0.ɵɵngDeclareClassMetadata({
111
+ minVersion: "12.0.0",
112
+ version: "22.2.3",
113
+ ngImport: i0,
114
+ type: GalleriaItemSlot,
115
+ decorators: [{
116
+ type: Component,
117
+ args: [{
118
+ selector: "div[pGalleriaItemSlot]",
119
+ standalone: true,
120
+ imports: [NgTemplateOutlet],
121
+ template: `
81
122
  @if (shouldRender()) {
82
123
  <ng-container [ngTemplateOutlet]="contentTemplate()" [ngTemplateOutletContext]="context()"></ng-container>
83
124
  }
84
125
  `,
85
- changeDetection: ChangeDetectionStrategy.OnPush
86
- }]
87
- }], propDecorators: { index: [{ type: i0.Input, args: [{ isSignal: true, alias: "index", required: false }] }], item: [{ type: i0.Input, args: [{ isSignal: true, alias: "item", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }] } });
88
-
126
+ changeDetection: ChangeDetectionStrategy.OnPush
127
+ }]
128
+ }],
129
+ propDecorators: {
130
+ index: [{
131
+ type: i0.Input,
132
+ args: [{
133
+ isSignal: true,
134
+ alias: "index",
135
+ required: false
136
+ }]
137
+ }],
138
+ item: [{
139
+ type: i0.Input,
140
+ args: [{
141
+ isSignal: true,
142
+ alias: "item",
143
+ required: false
144
+ }]
145
+ }],
146
+ type: [{
147
+ type: i0.Input,
148
+ args: [{
149
+ isSignal: true,
150
+ alias: "type",
151
+ required: false
152
+ }]
153
+ }]
154
+ }
155
+ });
89
156
  const classes = {
90
- mask: 'p-galleria-mask p-overlay-mask',
91
- root: ({ instance }) => {
92
- const thumbnailsPosClass = instance.galleria.showThumbnails() && instance.getPositionClass('p-galleria-thumbnails', instance.galleria.thumbnailsPosition());
93
- const indicatorPosClass = instance.galleria.showIndicators() && instance.getPositionClass('p-galleria-indicators', instance.galleria.indicatorsPosition());
94
- return [
95
- 'p-galleria p-component',
96
- {
97
- 'p-galleria-fullscreen': instance.galleria.fullScreen(),
98
- 'p-galleria-inset-indicators': instance.galleria.showIndicatorsOnItem(),
99
- 'p-galleria-hover-navigators': instance.galleria.showItemNavigatorsOnHover() && !instance.galleria.fullScreen()
100
- },
101
- thumbnailsPosClass,
102
- indicatorPosClass
103
- ];
104
- },
105
- closeButton: 'p-galleria-close-button',
106
- closeIcon: 'p-galleria-close-icon',
107
- header: 'p-galleria-header',
108
- content: 'p-galleria-content',
109
- footer: 'p-galleria-footer',
110
- itemsContainer: 'p-galleria-items-container',
111
- items: 'p-galleria-items',
112
- prevButton: ({ instance }) => [
113
- 'p-galleria-prev-button p-galleria-nav-button',
114
- {
115
- 'p-disabled': instance.isNavBackwardDisabled()
116
- }
117
- ],
118
- prevIcon: 'p-galleria-prev-icon',
119
- item: 'p-galleria-item',
120
- nextButton: ({ instance }) => [
121
- 'p-galleria-next-button p-galleria-nav-button',
122
- {
123
- 'p-disabled': instance.isNavForwardDisabled()
124
- }
125
- ],
126
- nextIcon: 'p-galleria-next-icon',
127
- caption: 'p-galleria-caption',
128
- indicatorList: 'p-galleria-indicator-list',
129
- indicator: ({ instance, index }) => [
130
- 'p-galleria-indicator',
131
- {
132
- 'p-galleria-indicator-active': instance.isIndicatorItemActive(index)
133
- }
134
- ],
135
- indicatorButton: 'p-galleria-indicator-button',
136
- thumbnails: 'p-galleria-thumbnails',
137
- thumbnailContent: 'p-galleria-thumbnails-content',
138
- thumbnailPrevButton: ({ instance }) => [
139
- 'p-galleria-thumbnail-prev-button p-galleria-thumbnail-nav-button',
140
- {
141
- 'p-disabled': instance.isNavBackwardDisabled()
142
- }
143
- ],
144
- thumbnailPrevIcon: 'p-galleria-thumbnail-prev-icon',
145
- thumbnailsViewport: 'p-galleria-thumbnails-viewport',
146
- thumbnailItems: 'p-galleria-thumbnail-items',
147
- thumbnailItem: ({ instance, index, activeIndex }) => [
148
- 'p-galleria-thumbnail-item',
149
- {
150
- 'p-galleria-thumbnail-item-current': activeIndex === index,
151
- 'p-galleria-thumbnail-item-active': instance.isItemActive(index),
152
- 'p-galleria-thumbnail-item-start': instance.firstItemAciveIndex() === index,
153
- 'p-galleria-thumbnail-item-end': instance.lastItemActiveIndex() === index
154
- }
155
- ],
156
- thumbnail: 'p-galleria-thumbnail',
157
- thumbnailNextButton: ({ instance }) => [
158
- 'p-galleria-thumbnail-next-button p-galleria-thumbnail-nav-button',
159
- {
160
- 'p-disabled': instance.isNavForwardDisabled()
161
- }
162
- ],
163
- thumbnailNextIcon: 'p-galleria-thumbnail-next-icon'
157
+ mask: "p-galleria-mask p-overlay-mask",
158
+ root: ({ instance }) => {
159
+ const thumbnailsPosClass = instance.galleria.showThumbnails() && instance.getPositionClass("p-galleria-thumbnails", instance.galleria.thumbnailsPosition());
160
+ const indicatorPosClass = instance.galleria.showIndicators() && instance.getPositionClass("p-galleria-indicators", instance.galleria.indicatorsPosition());
161
+ return [
162
+ "p-galleria p-component",
163
+ {
164
+ "p-galleria-fullscreen": instance.galleria.fullScreen(),
165
+ "p-galleria-inset-indicators": instance.galleria.showIndicatorsOnItem(),
166
+ "p-galleria-hover-navigators": instance.galleria.showItemNavigatorsOnHover() && !instance.galleria.fullScreen()
167
+ },
168
+ thumbnailsPosClass,
169
+ indicatorPosClass
170
+ ];
171
+ },
172
+ closeButton: "p-galleria-close-button",
173
+ closeIcon: "p-galleria-close-icon",
174
+ header: "p-galleria-header",
175
+ content: "p-galleria-content",
176
+ footer: "p-galleria-footer",
177
+ itemsContainer: "p-galleria-items-container",
178
+ items: "p-galleria-items",
179
+ prevButton: ({ instance }) => ["p-galleria-prev-button p-galleria-nav-button", { "p-disabled": instance.isNavBackwardDisabled() }],
180
+ prevIcon: "p-galleria-prev-icon",
181
+ item: "p-galleria-item",
182
+ nextButton: ({ instance }) => ["p-galleria-next-button p-galleria-nav-button", { "p-disabled": instance.isNavForwardDisabled() }],
183
+ nextIcon: "p-galleria-next-icon",
184
+ caption: "p-galleria-caption",
185
+ indicatorList: "p-galleria-indicator-list",
186
+ indicator: ({ instance, index }) => ["p-galleria-indicator", { "p-galleria-indicator-active": instance.isIndicatorItemActive(index) }],
187
+ indicatorButton: "p-galleria-indicator-button",
188
+ thumbnails: "p-galleria-thumbnails",
189
+ thumbnailContent: "p-galleria-thumbnails-content",
190
+ thumbnailPrevButton: ({ instance }) => ["p-galleria-thumbnail-prev-button p-galleria-thumbnail-nav-button", { "p-disabled": instance.isNavBackwardDisabled() }],
191
+ thumbnailPrevIcon: "p-galleria-thumbnail-prev-icon",
192
+ thumbnailsViewport: "p-galleria-thumbnails-viewport",
193
+ thumbnailItems: "p-galleria-thumbnail-items",
194
+ thumbnailItem: ({ instance, index, activeIndex }) => ["p-galleria-thumbnail-item", {
195
+ "p-galleria-thumbnail-item-current": activeIndex === index,
196
+ "p-galleria-thumbnail-item-active": instance.isItemActive(index),
197
+ "p-galleria-thumbnail-item-start": instance.firstItemAciveIndex() === index,
198
+ "p-galleria-thumbnail-item-end": instance.lastItemActiveIndex() === index
199
+ }],
200
+ thumbnail: "p-galleria-thumbnail",
201
+ thumbnailNextButton: ({ instance }) => ["p-galleria-thumbnail-next-button p-galleria-thumbnail-nav-button", { "p-disabled": instance.isNavForwardDisabled() }],
202
+ thumbnailNextIcon: "p-galleria-thumbnail-next-icon"
203
+ };
204
+ var GalleriaStyle = class GalleriaStyle extends BaseStyle {
205
+ name = "galleria";
206
+ style = style;
207
+ classes = classes;
208
+ static ɵfac = i0.ɵɵngDeclareFactory({
209
+ minVersion: "12.0.0",
210
+ version: "22.2.3",
211
+ ngImport: i0,
212
+ type: GalleriaStyle,
213
+ deps: null,
214
+ target: i0.ɵɵFactoryTarget.Injectable
215
+ });
216
+ static ɵprov = i0.ɵɵngDeclareInjectable({
217
+ minVersion: "12.0.0",
218
+ version: "22.2.3",
219
+ ngImport: i0,
220
+ type: GalleriaStyle
221
+ });
164
222
  };
165
- class GalleriaStyle extends BaseStyle {
166
- name = 'galleria';
167
- style = style;
168
- classes = classes;
169
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: GalleriaStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
170
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: GalleriaStyle });
171
- }
172
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: GalleriaStyle, decorators: [{
173
- type: Injectable
174
- }] });
175
- /**
176
- *
177
- * Galleria is an advanced content gallery component.
178
- *
179
- * [Live Demo](https://www.primeng.org/galleria/)
180
- *
181
- * @module galleriastyle
182
- *
183
- */
223
+ i0.ɵɵngDeclareClassMetadata({
224
+ minVersion: "12.0.0",
225
+ version: "22.2.3",
226
+ ngImport: i0,
227
+ type: GalleriaStyle,
228
+ decorators: [{ type: Injectable }]
229
+ });
184
230
  var GalleriaClasses;
185
- (function (GalleriaClasses) {
186
- /**
187
- * Class name of the mask element
188
- */
189
- GalleriaClasses["mask"] = "p-galleria-mask";
190
- /**
191
- * Class name of the root element
192
- */
193
- GalleriaClasses["root"] = "p-galleria";
194
- /**
195
- * Class name of the close button element
196
- */
197
- GalleriaClasses["closeButton"] = "p-galleria-close-button";
198
- /**
199
- * Class name of the close icon element
200
- */
201
- GalleriaClasses["closeIcon"] = "p-galleria-close-icon";
202
- /**
203
- * Class name of the header element
204
- */
205
- GalleriaClasses["header"] = "p-galleria-header";
206
- /**
207
- * Class name of the content element
208
- */
209
- GalleriaClasses["content"] = "p-galleria-content";
210
- /**
211
- * Class name of the footer element
212
- */
213
- GalleriaClasses["footer"] = "p-galleria-footer";
214
- /**
215
- * Class name of the items container element
216
- */
217
- GalleriaClasses["itemsContainer"] = "p-galleria-items-container";
218
- /**
219
- * Class name of the items element
220
- */
221
- GalleriaClasses["items"] = "p-galleria-items";
222
- /**
223
- * Class name of the previous item button element
224
- */
225
- GalleriaClasses["prevButton"] = "p-galleria-prev-button";
226
- /**
227
- * Class name of the previous item icon element
228
- */
229
- GalleriaClasses["prevIcon"] = "p-galleria-prev-icon";
230
- /**
231
- * Class name of the item element
232
- */
233
- GalleriaClasses["item"] = "p-galleria-item";
234
- /**
235
- * Class name of the next item button element
236
- */
237
- GalleriaClasses["nextButton"] = "p-galleria-next-button";
238
- /**
239
- * Class name of the next item icon element
240
- */
241
- GalleriaClasses["nextIcon"] = "p-galleria-next-icon";
242
- /**
243
- * Class name of the caption element
244
- */
245
- GalleriaClasses["caption"] = "p-galleria-caption";
246
- /**
247
- * Class name of the indicator list element
248
- */
249
- GalleriaClasses["indicatorList"] = "p-galleria-indicator-list";
250
- /**
251
- * Class name of the indicator element
252
- */
253
- GalleriaClasses["indicator"] = "p-galleria-indicator";
254
- /**
255
- * Class name of the indicator button element
256
- */
257
- GalleriaClasses["indicatorButton"] = "p-galleria-indicator-button";
258
- /**
259
- * Class name of the thumbnails element
260
- */
261
- GalleriaClasses["thumbnails"] = "p-galleria-thumbnails";
262
- /**
263
- * Class name of the thumbnail content element
264
- */
265
- GalleriaClasses["thumbnailContent"] = "p-galleria-thumbnails-content";
266
- /**
267
- * Class name of the previous thumbnail button element
268
- */
269
- GalleriaClasses["previousThumbnailButton"] = "p-galleria-thumbnail-prev-button";
270
- /**
271
- * Class name of the previous thumbnail icon element
272
- */
273
- GalleriaClasses["previousThumbnailIcon"] = "p-galleria-thumbnail-prev-icon";
274
- /**
275
- * Class name of the thumbnails viewport element
276
- */
277
- GalleriaClasses["thumbnailsViewport"] = "p-galleria-thumbnails-viewport";
278
- /**
279
- * Class name of the thumbnail items element
280
- */
281
- GalleriaClasses["thumbnailItems"] = "p-galleria-thumbnail-items";
282
- /**
283
- * Class name of the thumbnail item element
284
- */
285
- GalleriaClasses["thumbnailItem"] = "p-galleria-thumbnail-item";
286
- /**
287
- * Class name of the thumbnail element
288
- */
289
- GalleriaClasses["thumbnail"] = "p-galleria-thumbnail";
290
- /**
291
- * Class name of the next thumbnail button element
292
- */
293
- GalleriaClasses["nextThumbnailButton"] = "p-galleria-thumbnail-next-button";
294
- /**
295
- * Class name of the next thumbnail icon element
296
- */
297
- GalleriaClasses["nextThumbnailIcon"] = "p-galleria-thumbnail-next-icon";
231
+ (function(GalleriaClasses) {
232
+ GalleriaClasses["mask"] = "p-galleria-mask";
233
+ GalleriaClasses["root"] = "p-galleria";
234
+ GalleriaClasses["closeButton"] = "p-galleria-close-button";
235
+ GalleriaClasses["closeIcon"] = "p-galleria-close-icon";
236
+ GalleriaClasses["header"] = "p-galleria-header";
237
+ GalleriaClasses["content"] = "p-galleria-content";
238
+ GalleriaClasses["footer"] = "p-galleria-footer";
239
+ GalleriaClasses["itemsContainer"] = "p-galleria-items-container";
240
+ GalleriaClasses["items"] = "p-galleria-items";
241
+ GalleriaClasses["prevButton"] = "p-galleria-prev-button";
242
+ GalleriaClasses["prevIcon"] = "p-galleria-prev-icon";
243
+ GalleriaClasses["item"] = "p-galleria-item";
244
+ GalleriaClasses["nextButton"] = "p-galleria-next-button";
245
+ GalleriaClasses["nextIcon"] = "p-galleria-next-icon";
246
+ GalleriaClasses["caption"] = "p-galleria-caption";
247
+ GalleriaClasses["indicatorList"] = "p-galleria-indicator-list";
248
+ GalleriaClasses["indicator"] = "p-galleria-indicator";
249
+ GalleriaClasses["indicatorButton"] = "p-galleria-indicator-button";
250
+ GalleriaClasses["thumbnails"] = "p-galleria-thumbnails";
251
+ GalleriaClasses["thumbnailContent"] = "p-galleria-thumbnails-content";
252
+ GalleriaClasses["previousThumbnailButton"] = "p-galleria-thumbnail-prev-button";
253
+ GalleriaClasses["previousThumbnailIcon"] = "p-galleria-thumbnail-prev-icon";
254
+ GalleriaClasses["thumbnailsViewport"] = "p-galleria-thumbnails-viewport";
255
+ GalleriaClasses["thumbnailItems"] = "p-galleria-thumbnail-items";
256
+ GalleriaClasses["thumbnailItem"] = "p-galleria-thumbnail-item";
257
+ GalleriaClasses["thumbnail"] = "p-galleria-thumbnail";
258
+ GalleriaClasses["nextThumbnailButton"] = "p-galleria-thumbnail-next-button";
259
+ GalleriaClasses["nextThumbnailIcon"] = "p-galleria-thumbnail-next-icon";
298
260
  })(GalleriaClasses || (GalleriaClasses = {}));
299
-
300
- class GalleriaItem extends BaseComponent {
301
- hostName = 'Galleria';
302
- galleria = inject(GALLERIA_INSTANCE);
303
- bindDirectiveInstance = inject(Bind, { self: true });
304
- id = input(/* @ts-ignore */
305
- ...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
306
- circular = input(false, { ...(ngDevMode ? { debugName: "circular" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
307
- value = input(/* @ts-ignore */
308
- ...(ngDevMode ? [undefined, { debugName: "value" }] : /* istanbul ignore next */ []));
309
- showItemNavigators = input(false, { ...(ngDevMode ? { debugName: "showItemNavigators" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
310
- showIndicators = input(true, { ...(ngDevMode ? { debugName: "showIndicators" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
311
- slideShowActive = input(true, { ...(ngDevMode ? { debugName: "slideShowActive" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
312
- changeItemOnIndicatorHover = input(true, { ...(ngDevMode ? { debugName: "changeItemOnIndicatorHover" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
313
- autoPlay = input(false, { ...(ngDevMode ? { debugName: "autoPlay" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
314
- startSlideShow = output();
315
- stopSlideShow = output();
316
- onActiveIndexChange = output();
317
- _componentStyle = inject(GalleriaStyle);
318
- _activeIndex = linkedSignal(() => this.activeIndexInput(), /* @ts-ignore */
319
- ...(ngDevMode ? [{ debugName: "_activeIndex" }] : /* istanbul ignore next */ []));
320
- activeItem = computed(() => {
321
- const val = this.value();
322
- return val && val[this._activeIndex()];
323
- }, /* @ts-ignore */
324
- ...(ngDevMode ? [{ debugName: "activeItem" }] : /* istanbul ignore next */ []));
325
- activeItemId = computed(() => this.id() + '_item_' + this._activeIndex(), /* @ts-ignore */
326
- ...(ngDevMode ? [{ debugName: "activeItemId" }] : /* istanbul ignore next */ []));
327
- leftButtonFocused = false;
328
- rightButtonFocused = false;
329
- get aria() {
330
- return this.galleria.config.translation.aria;
331
- }
332
- constructor() {
333
- super();
334
- // Handle autoPlay changes
335
- effect(() => {
336
- const auto = this.autoPlay();
337
- if (auto) {
338
- this.startSlideShow.emit();
339
- }
340
- });
341
- }
342
- // eslint-disable-next-line @angular-eslint/no-input-rename
343
- activeIndexInput = input(0, { ...(ngDevMode ? { debugName: "activeIndexInput" } : /* istanbul ignore next */ {}), alias: 'activeIndex' });
344
- onAfterViewChecked() {
345
- this.bindDirectiveInstance.setAttrs(this.ptm('itemsContainer'));
346
- }
347
- getIndicatorPTOptions(index) {
348
- return this.ptm('indicator', {
349
- context: {
350
- highlighted: this._activeIndex() === index
351
- }
352
- });
353
- }
354
- next() {
355
- const val = this.value();
356
- const currentIndex = this._activeIndex();
357
- let nextItemIndex = currentIndex + 1;
358
- let activeIndex = this.circular() && val.length - 1 === currentIndex ? 0 : nextItemIndex;
359
- this.onActiveIndexChange.emit(activeIndex);
360
- }
361
- prev() {
362
- const val = this.value();
363
- const currentIndex = this._activeIndex();
364
- let prevItemIndex = currentIndex !== 0 ? currentIndex - 1 : 0;
365
- let activeIndex = this.circular() && currentIndex === 0 ? val.length - 1 : prevItemIndex;
366
- this.onActiveIndexChange.emit(activeIndex);
367
- }
368
- onButtonFocus(pos) {
369
- if (pos === 'left') {
370
- this.leftButtonFocused = true;
371
- }
372
- else
373
- this.rightButtonFocused = true;
374
- }
375
- onButtonBlur(pos) {
376
- if (pos === 'left') {
377
- this.leftButtonFocused = false;
378
- }
379
- else
380
- this.rightButtonFocused = false;
381
- }
382
- stopTheSlideShow() {
383
- if (this.slideShowActive()) {
384
- this.stopSlideShow.emit();
385
- }
386
- }
387
- navForward(e) {
388
- this.stopTheSlideShow();
389
- this.next();
390
- if (e && e.cancelable) {
391
- e.stopPropagation();
392
- e.preventDefault();
393
- }
394
- }
395
- navBackward(e) {
396
- this.stopTheSlideShow();
397
- this.prev();
398
- if (e && e.cancelable) {
399
- e.stopPropagation();
400
- e.preventDefault();
401
- }
402
- }
403
- onIndicatorClick(index) {
404
- this.stopTheSlideShow();
405
- this.onActiveIndexChange.emit(index);
406
- }
407
- onIndicatorMouseEnter(index) {
408
- if (this.changeItemOnIndicatorHover()) {
409
- this.stopTheSlideShow();
410
- this.onActiveIndexChange.emit(index);
411
- }
412
- }
413
- onIndicatorKeyDown(event, index) {
414
- switch (event.code) {
415
- case 'Enter':
416
- case 'Space':
417
- this.stopTheSlideShow();
418
- this.onActiveIndexChange.emit(index);
419
- event.preventDefault();
420
- break;
421
- case 'ArrowDown':
422
- case 'ArrowUp':
423
- event.preventDefault();
424
- break;
425
- default:
426
- break;
427
- }
428
- }
429
- isNavForwardDisabled() {
430
- const val = this.value();
431
- return !this.circular() && this._activeIndex() === val.length - 1;
432
- }
433
- isNavBackwardDisabled() {
434
- return !this.circular() && this._activeIndex() === 0;
435
- }
436
- isIndicatorItemActive(index) {
437
- return this._activeIndex() === index;
438
- }
439
- ariaSlideLabel() {
440
- return this.aria?.slide;
441
- }
442
- ariaSlideNumber(value) {
443
- return this.aria?.slideNumber?.replace(/{slideNumber}/g, value);
444
- }
445
- ariaPageLabel(value) {
446
- return this.aria?.pageLabel?.replace(/{page}/g, value);
447
- }
448
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: GalleriaItem, deps: [], target: i0.ɵɵFactoryTarget.Component });
449
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: GalleriaItem, isStandalone: true, selector: "div[pGalleriaItem]", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, circular: { classPropertyName: "circular", publicName: "circular", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, showItemNavigators: { classPropertyName: "showItemNavigators", publicName: "showItemNavigators", isSignal: true, isRequired: false, transformFunction: null }, showIndicators: { classPropertyName: "showIndicators", publicName: "showIndicators", isSignal: true, isRequired: false, transformFunction: null }, slideShowActive: { classPropertyName: "slideShowActive", publicName: "slideShowActive", isSignal: true, isRequired: false, transformFunction: null }, changeItemOnIndicatorHover: { classPropertyName: "changeItemOnIndicatorHover", publicName: "changeItemOnIndicatorHover", isSignal: true, isRequired: false, transformFunction: null }, autoPlay: { classPropertyName: "autoPlay", publicName: "autoPlay", isSignal: true, isRequired: false, transformFunction: null }, activeIndexInput: { classPropertyName: "activeIndexInput", publicName: "activeIndex", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { startSlideShow: "startSlideShow", stopSlideShow: "stopSlideShow", onActiveIndexChange: "onActiveIndexChange" }, providers: [GalleriaStyle], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
261
+ var GalleriaItem = class GalleriaItem extends BaseComponent {
262
+ hostName = "Galleria";
263
+ galleria = inject(GALLERIA_INSTANCE);
264
+ bindDirectiveInstance = inject(Bind, { self: true });
265
+ id = input(...ngDevMode ? [void 0, { debugName: "id" }] : /* istanbul ignore next */ []);
266
+ circular = input(false, {
267
+ ...ngDevMode ? { debugName: "circular" } : /* istanbul ignore next */ {},
268
+ transform: booleanAttribute
269
+ });
270
+ value = input(...ngDevMode ? [void 0, { debugName: "value" }] : /* istanbul ignore next */ []);
271
+ showItemNavigators = input(false, {
272
+ ...ngDevMode ? { debugName: "showItemNavigators" } : /* istanbul ignore next */ {},
273
+ transform: booleanAttribute
274
+ });
275
+ showIndicators = input(true, {
276
+ ...ngDevMode ? { debugName: "showIndicators" } : /* istanbul ignore next */ {},
277
+ transform: booleanAttribute
278
+ });
279
+ slideShowActive = input(true, {
280
+ ...ngDevMode ? { debugName: "slideShowActive" } : /* istanbul ignore next */ {},
281
+ transform: booleanAttribute
282
+ });
283
+ changeItemOnIndicatorHover = input(true, {
284
+ ...ngDevMode ? { debugName: "changeItemOnIndicatorHover" } : /* istanbul ignore next */ {},
285
+ transform: booleanAttribute
286
+ });
287
+ autoPlay = input(false, {
288
+ ...ngDevMode ? { debugName: "autoPlay" } : /* istanbul ignore next */ {},
289
+ transform: booleanAttribute
290
+ });
291
+ startSlideShow = output();
292
+ stopSlideShow = output();
293
+ onActiveIndexChange = output();
294
+ _componentStyle = inject(GalleriaStyle);
295
+ _activeIndex = linkedSignal(() => this.activeIndexInput(), ...ngDevMode ? [{ debugName: "_activeIndex" }] : /* istanbul ignore next */ []);
296
+ activeItem = computed(() => {
297
+ const val = this.value();
298
+ return val && val[this._activeIndex()];
299
+ }, ...ngDevMode ? [{ debugName: "activeItem" }] : /* istanbul ignore next */ []);
300
+ activeItemId = computed(() => this.id() + "_item_" + this._activeIndex(), ...ngDevMode ? [{ debugName: "activeItemId" }] : /* istanbul ignore next */ []);
301
+ leftButtonFocused = false;
302
+ rightButtonFocused = false;
303
+ get aria() {
304
+ return this.galleria.config.translation.aria;
305
+ }
306
+ constructor() {
307
+ super();
308
+ effect(() => {
309
+ if (this.autoPlay()) this.startSlideShow.emit();
310
+ });
311
+ }
312
+ activeIndexInput = input(0, {
313
+ ...ngDevMode ? { debugName: "activeIndexInput" } : /* istanbul ignore next */ {},
314
+ alias: "activeIndex"
315
+ });
316
+ onAfterViewChecked() {
317
+ this.bindDirectiveInstance.setAttrs(this.ptm("itemsContainer"));
318
+ }
319
+ getIndicatorPTOptions(index) {
320
+ return this.ptm("indicator", { context: { highlighted: this._activeIndex() === index } });
321
+ }
322
+ next() {
323
+ const val = this.value();
324
+ const currentIndex = this._activeIndex();
325
+ let nextItemIndex = currentIndex + 1;
326
+ let activeIndex = this.circular() && val.length - 1 === currentIndex ? 0 : nextItemIndex;
327
+ this.onActiveIndexChange.emit(activeIndex);
328
+ }
329
+ prev() {
330
+ const val = this.value();
331
+ const currentIndex = this._activeIndex();
332
+ let prevItemIndex = currentIndex !== 0 ? currentIndex - 1 : 0;
333
+ let activeIndex = this.circular() && currentIndex === 0 ? val.length - 1 : prevItemIndex;
334
+ this.onActiveIndexChange.emit(activeIndex);
335
+ }
336
+ onButtonFocus(pos) {
337
+ if (pos === "left") this.leftButtonFocused = true;
338
+ else this.rightButtonFocused = true;
339
+ }
340
+ onButtonBlur(pos) {
341
+ if (pos === "left") this.leftButtonFocused = false;
342
+ else this.rightButtonFocused = false;
343
+ }
344
+ stopTheSlideShow() {
345
+ if (this.slideShowActive()) this.stopSlideShow.emit();
346
+ }
347
+ navForward(e) {
348
+ this.stopTheSlideShow();
349
+ this.next();
350
+ if (e && e.cancelable) {
351
+ e.stopPropagation();
352
+ e.preventDefault();
353
+ }
354
+ }
355
+ navBackward(e) {
356
+ this.stopTheSlideShow();
357
+ this.prev();
358
+ if (e && e.cancelable) {
359
+ e.stopPropagation();
360
+ e.preventDefault();
361
+ }
362
+ }
363
+ onIndicatorClick(index) {
364
+ this.stopTheSlideShow();
365
+ this.onActiveIndexChange.emit(index);
366
+ }
367
+ onIndicatorMouseEnter(index) {
368
+ if (this.changeItemOnIndicatorHover()) {
369
+ this.stopTheSlideShow();
370
+ this.onActiveIndexChange.emit(index);
371
+ }
372
+ }
373
+ onIndicatorKeyDown(event, index) {
374
+ switch (event.code) {
375
+ case "Enter":
376
+ case "Space":
377
+ this.stopTheSlideShow();
378
+ this.onActiveIndexChange.emit(index);
379
+ event.preventDefault();
380
+ break;
381
+ case "ArrowDown":
382
+ case "ArrowUp": event.preventDefault();
383
+ }
384
+ }
385
+ isNavForwardDisabled() {
386
+ const val = this.value();
387
+ return !this.circular() && this._activeIndex() === val.length - 1;
388
+ }
389
+ isNavBackwardDisabled() {
390
+ return !this.circular() && this._activeIndex() === 0;
391
+ }
392
+ isIndicatorItemActive(index) {
393
+ return this._activeIndex() === index;
394
+ }
395
+ ariaSlideLabel() {
396
+ return this.aria?.slide;
397
+ }
398
+ ariaSlideNumber(value) {
399
+ return this.aria?.slideNumber?.replace(/{slideNumber}/g, value);
400
+ }
401
+ ariaPageLabel(value) {
402
+ return this.aria?.pageLabel?.replace(/{page}/g, value);
403
+ }
404
+ static ɵfac = i0.ɵɵngDeclareFactory({
405
+ minVersion: "12.0.0",
406
+ version: "22.2.3",
407
+ ngImport: i0,
408
+ type: GalleriaItem,
409
+ deps: [],
410
+ target: i0.ɵɵFactoryTarget.Component
411
+ });
412
+ static ɵcmp = i0.ɵɵngDeclareComponent({
413
+ minVersion: "17.0.0",
414
+ version: "22.2.3",
415
+ type: GalleriaItem,
416
+ isStandalone: true,
417
+ selector: "div[pGalleriaItem]",
418
+ inputs: {
419
+ id: {
420
+ classPropertyName: "id",
421
+ publicName: "id",
422
+ isSignal: true,
423
+ isRequired: false,
424
+ transformFunction: null
425
+ },
426
+ circular: {
427
+ classPropertyName: "circular",
428
+ publicName: "circular",
429
+ isSignal: true,
430
+ isRequired: false,
431
+ transformFunction: null
432
+ },
433
+ value: {
434
+ classPropertyName: "value",
435
+ publicName: "value",
436
+ isSignal: true,
437
+ isRequired: false,
438
+ transformFunction: null
439
+ },
440
+ showItemNavigators: {
441
+ classPropertyName: "showItemNavigators",
442
+ publicName: "showItemNavigators",
443
+ isSignal: true,
444
+ isRequired: false,
445
+ transformFunction: null
446
+ },
447
+ showIndicators: {
448
+ classPropertyName: "showIndicators",
449
+ publicName: "showIndicators",
450
+ isSignal: true,
451
+ isRequired: false,
452
+ transformFunction: null
453
+ },
454
+ slideShowActive: {
455
+ classPropertyName: "slideShowActive",
456
+ publicName: "slideShowActive",
457
+ isSignal: true,
458
+ isRequired: false,
459
+ transformFunction: null
460
+ },
461
+ changeItemOnIndicatorHover: {
462
+ classPropertyName: "changeItemOnIndicatorHover",
463
+ publicName: "changeItemOnIndicatorHover",
464
+ isSignal: true,
465
+ isRequired: false,
466
+ transformFunction: null
467
+ },
468
+ autoPlay: {
469
+ classPropertyName: "autoPlay",
470
+ publicName: "autoPlay",
471
+ isSignal: true,
472
+ isRequired: false,
473
+ transformFunction: null
474
+ },
475
+ activeIndexInput: {
476
+ classPropertyName: "activeIndexInput",
477
+ publicName: "activeIndex",
478
+ isSignal: true,
479
+ isRequired: false,
480
+ transformFunction: null
481
+ }
482
+ },
483
+ outputs: {
484
+ startSlideShow: "startSlideShow",
485
+ stopSlideShow: "stopSlideShow",
486
+ onActiveIndexChange: "onActiveIndexChange"
487
+ },
488
+ providers: [GalleriaStyle],
489
+ usesInheritance: true,
490
+ hostDirectives: [{ directive: i1.Bind }],
491
+ ngImport: i0,
492
+ template: `
450
493
  <div [pBind]="ptm('items')" [class]="cx('items')">
451
494
  @if (showItemNavigators()) {
452
495
  <button type="button" role="navigation" [pBind]="ptm('prevButton')" [class]="cx('prevButton')" (click)="navBackward($event)" (focus)="onButtonFocus('left')" (blur)="onButtonBlur('left')" data-pc-group-section="itemnavigator">
@@ -504,15 +547,71 @@ class GalleriaItem extends BaseComponent {
504
547
  }
505
548
  </ul>
506
549
  }
507
- `, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: BindModule }, { kind: "directive", type: i1.Bind, selector: "[pBind]", inputs: ["pBind"] }, { kind: "component", type: ChevronLeft, selector: "svg[data-p-icon=\"chevron-left\"]" }, { kind: "component", type: ChevronRight, selector: "svg[data-p-icon=\"chevron-right\"]" }, { kind: "component", type: GalleriaItemSlot, selector: "div[pGalleriaItemSlot]", inputs: ["index", "item", "type"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
508
- }
509
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: GalleriaItem, decorators: [{
510
- type: Component,
511
- args: [{
512
- selector: 'div[pGalleriaItem]',
513
- standalone: true,
514
- imports: [NgTemplateOutlet, BindModule, ChevronLeft, ChevronRight, GalleriaItemSlot],
515
- template: `
550
+ `,
551
+ isInline: true,
552
+ dependencies: [
553
+ {
554
+ kind: "directive",
555
+ type: NgTemplateOutlet,
556
+ selector: "[ngTemplateOutlet]",
557
+ inputs: [
558
+ "ngTemplateOutletContext",
559
+ "ngTemplateOutlet",
560
+ "ngTemplateOutletInjector"
561
+ ]
562
+ },
563
+ {
564
+ kind: "ngmodule",
565
+ type: BindModule
566
+ },
567
+ {
568
+ kind: "directive",
569
+ type: i1.Bind,
570
+ selector: "[pBind]",
571
+ inputs: ["pBind"]
572
+ },
573
+ {
574
+ kind: "component",
575
+ type: ChevronLeft,
576
+ selector: "svg[data-p-icon=\"chevron-left\"]"
577
+ },
578
+ {
579
+ kind: "component",
580
+ type: ChevronRight,
581
+ selector: "svg[data-p-icon=\"chevron-right\"]"
582
+ },
583
+ {
584
+ kind: "component",
585
+ type: GalleriaItemSlot,
586
+ selector: "div[pGalleriaItemSlot]",
587
+ inputs: [
588
+ "index",
589
+ "item",
590
+ "type"
591
+ ]
592
+ }
593
+ ],
594
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
595
+ });
596
+ };
597
+ i0.ɵɵngDeclareClassMetadata({
598
+ minVersion: "12.0.0",
599
+ version: "22.2.3",
600
+ ngImport: i0,
601
+ type: GalleriaItem,
602
+ decorators: [{
603
+ type: Component,
604
+ args: [{
605
+ selector: "div[pGalleriaItem]",
606
+ standalone: true,
607
+ imports: [
608
+ NgTemplateOutlet,
609
+ BindModule,
610
+ ChevronLeft,
611
+ ChevronRight,
612
+ GalleriaItemSlot
613
+ ],
614
+ template: `
516
615
  <div [pBind]="ptm('items')" [class]="cx('items')">
517
616
  @if (showItemNavigators()) {
518
617
  <button type="button" role="navigation" [pBind]="ptm('prevButton')" [class]="cx('prevButton')" (click)="navBackward($event)" (focus)="onButtonFocus('left')" (blur)="onButtonBlur('left')" data-pc-group-section="itemnavigator">
@@ -571,462 +670,588 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
571
670
  </ul>
572
671
  }
573
672
  `,
574
- changeDetection: ChangeDetectionStrategy.OnPush,
575
- providers: [GalleriaStyle],
576
- hostDirectives: [Bind]
577
- }]
578
- }], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], circular: [{ type: i0.Input, args: [{ isSignal: true, alias: "circular", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], showItemNavigators: [{ type: i0.Input, args: [{ isSignal: true, alias: "showItemNavigators", required: false }] }], showIndicators: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIndicators", required: false }] }], slideShowActive: [{ type: i0.Input, args: [{ isSignal: true, alias: "slideShowActive", required: false }] }], changeItemOnIndicatorHover: [{ type: i0.Input, args: [{ isSignal: true, alias: "changeItemOnIndicatorHover", required: false }] }], autoPlay: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoPlay", required: false }] }], startSlideShow: [{ type: i0.Output, args: ["startSlideShow"] }], stopSlideShow: [{ type: i0.Output, args: ["stopSlideShow"] }], onActiveIndexChange: [{ type: i0.Output, args: ["onActiveIndexChange"] }], activeIndexInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeIndex", required: false }] }] } });
579
-
580
- class GalleriaThumbnails extends BaseComponent {
581
- hostName = 'Galleria';
582
- galleria = inject(GALLERIA_INSTANCE);
583
- bindDirectiveInstance = inject(Bind, { self: true });
584
- containerId = input(/* @ts-ignore */
585
- ...(ngDevMode ? [undefined, { debugName: "containerId" }] : /* istanbul ignore next */ []));
586
- value = input(/* @ts-ignore */
587
- ...(ngDevMode ? [undefined, { debugName: "value" }] : /* istanbul ignore next */ []));
588
- isVertical = input(false, { ...(ngDevMode ? { debugName: "isVertical" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
589
- slideShowActive = input(false, { ...(ngDevMode ? { debugName: "slideShowActive" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
590
- circular = input(false, { ...(ngDevMode ? { debugName: "circular" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
591
- responsiveOptions = input(/* @ts-ignore */
592
- ...(ngDevMode ? [undefined, { debugName: "responsiveOptions" }] : /* istanbul ignore next */ []));
593
- contentHeight = input('300px', /* @ts-ignore */
594
- ...(ngDevMode ? [{ debugName: "contentHeight" }] : /* istanbul ignore next */ []));
595
- showThumbnailNavigators = input(true, { ...(ngDevMode ? { debugName: "showThumbnailNavigators" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
596
- // eslint-disable-next-line @angular-eslint/no-input-rename
597
- numVisibleInput = input(0, { ...(ngDevMode ? { debugName: "numVisibleInput" } : /* istanbul ignore next */ {}), alias: 'numVisible' });
598
- // eslint-disable-next-line @angular-eslint/no-input-rename
599
- activeIndexInput = input(0, { ...(ngDevMode ? { debugName: "activeIndexInput" } : /* istanbul ignore next */ {}), alias: 'activeIndex' });
600
- onActiveIndexChange = output();
601
- stopSlideShow = output();
602
- itemsContainer = viewChild('itemsContainer', /* @ts-ignore */
603
- ...(ngDevMode ? [{ debugName: "itemsContainer" }] : /* istanbul ignore next */ []));
604
- index;
605
- startPos = null;
606
- thumbnailsStyle = null;
607
- sortedResponsiveOptions = null;
608
- totalShiftedItems = 0;
609
- page = 0;
610
- documentResizeListener;
611
- _numVisible = linkedSignal(() => this.numVisibleInput(), /* @ts-ignore */
612
- ...(ngDevMode ? [{ debugName: "_numVisible" }] : /* istanbul ignore next */ []));
613
- _oldNumVisible = 0;
614
- d_numVisible = linkedSignal({ ...(ngDevMode ? { debugName: "d_numVisible" } : /* istanbul ignore next */ {}), source: () => this.numVisibleInput(),
615
- computation: (source, previous) => {
616
- if (previous) {
617
- this._oldNumVisible = previous.value;
618
- }
619
- return source;
620
- } });
621
- _oldactiveIndex = 0;
622
- _activeIndex = linkedSignal({ ...(ngDevMode ? { debugName: "_activeIndex" } : /* istanbul ignore next */ {}), source: () => this.activeIndexInput(),
623
- computation: (source, previous) => {
624
- if (previous) {
625
- this._oldactiveIndex = previous.value;
626
- }
627
- return source;
628
- } });
629
- _componentStyle = inject(GalleriaStyle);
630
- viewportHeight = computed(() => (this.isVertical() ? this.contentHeight() : ''), /* @ts-ignore */
631
- ...(ngDevMode ? [{ debugName: "viewportHeight" }] : /* istanbul ignore next */ []));
632
- get aria() {
633
- return this.galleria.config.translation.aria;
634
- }
635
- onAfterViewChecked() {
636
- this.bindDirectiveInstance.setAttrs(this.ptm('thumbnails'));
637
- }
638
- isActiveItem(index) {
639
- return this._activeIndex() === index;
640
- }
641
- getItemTabIndex(index) {
642
- return this.isActiveItem(index) ? 0 : -1;
643
- }
644
- getAriaCurrent(index) {
645
- return this.isActiveItem(index) ? 'page' : undefined;
646
- }
647
- getAriaControls(index) {
648
- return this.containerId() + '_item_' + index;
649
- }
650
- onInit() {
651
- if (isPlatformBrowser(this.platformId)) {
652
- this.createStyle();
653
- if (this.responsiveOptions()) {
654
- this.bindDocumentListeners();
655
- }
656
- }
657
- }
658
- onAfterContentChecked() {
659
- let totalShiftedItems = this.totalShiftedItems;
660
- const d_numVisible = this.d_numVisible();
661
- const activeIndex = this._activeIndex();
662
- const itemsContainer = this.itemsContainer();
663
- const val = this.value();
664
- if ((this._oldNumVisible !== d_numVisible || this._oldactiveIndex !== activeIndex) && itemsContainer) {
665
- if (activeIndex <= this.getMedianItemIndex()) {
666
- totalShiftedItems = 0;
667
- }
668
- else if (val.length - d_numVisible + this.getMedianItemIndex() < activeIndex) {
669
- totalShiftedItems = d_numVisible - val.length;
670
- }
671
- else if (val.length - d_numVisible < activeIndex && d_numVisible % 2 === 0) {
672
- totalShiftedItems = activeIndex * -1 + this.getMedianItemIndex() + 1;
673
- }
674
- else {
675
- totalShiftedItems = activeIndex * -1 + this.getMedianItemIndex();
676
- }
677
- if (totalShiftedItems !== this.totalShiftedItems) {
678
- this.totalShiftedItems = totalShiftedItems;
679
- }
680
- if (itemsContainer && itemsContainer.nativeElement) {
681
- itemsContainer.nativeElement.style.transform = this.isVertical() ? `translate3d(0, ${totalShiftedItems * (100 / d_numVisible)}%, 0)` : `translate3d(${totalShiftedItems * (100 / d_numVisible)}%, 0, 0)`;
682
- }
683
- if (this._oldactiveIndex !== activeIndex) {
684
- this.document.body.setAttribute('data-p-items-hidden', 'false');
685
- if (!this.$unstyled()) {
686
- removeClass(itemsContainer.nativeElement, 'p-items-hidden');
687
- }
688
- itemsContainer.nativeElement.style.transition = 'transform 500ms ease 0s';
689
- }
690
- this._oldactiveIndex = activeIndex;
691
- this._oldNumVisible = d_numVisible;
692
- }
693
- }
694
- onAfterViewInit() {
695
- if (isPlatformBrowser(this.platformId)) {
696
- this.calculatePosition();
697
- }
698
- }
699
- createStyle() {
700
- if (!this.thumbnailsStyle) {
701
- this.thumbnailsStyle = this.document.createElement('style');
702
- setAttribute(this.thumbnailsStyle, 'nonce', this.galleria.config?.csp()?.nonce);
703
- this.document.body.appendChild(this.thumbnailsStyle);
704
- }
705
- const d_numVisible = this.d_numVisible();
706
- let innerHTML = `
673
+ changeDetection: ChangeDetectionStrategy.OnPush,
674
+ providers: [GalleriaStyle],
675
+ hostDirectives: [Bind]
676
+ }]
677
+ }],
678
+ ctorParameters: () => [],
679
+ propDecorators: {
680
+ id: [{
681
+ type: i0.Input,
682
+ args: [{
683
+ isSignal: true,
684
+ alias: "id",
685
+ required: false
686
+ }]
687
+ }],
688
+ circular: [{
689
+ type: i0.Input,
690
+ args: [{
691
+ isSignal: true,
692
+ alias: "circular",
693
+ required: false
694
+ }]
695
+ }],
696
+ value: [{
697
+ type: i0.Input,
698
+ args: [{
699
+ isSignal: true,
700
+ alias: "value",
701
+ required: false
702
+ }]
703
+ }],
704
+ showItemNavigators: [{
705
+ type: i0.Input,
706
+ args: [{
707
+ isSignal: true,
708
+ alias: "showItemNavigators",
709
+ required: false
710
+ }]
711
+ }],
712
+ showIndicators: [{
713
+ type: i0.Input,
714
+ args: [{
715
+ isSignal: true,
716
+ alias: "showIndicators",
717
+ required: false
718
+ }]
719
+ }],
720
+ slideShowActive: [{
721
+ type: i0.Input,
722
+ args: [{
723
+ isSignal: true,
724
+ alias: "slideShowActive",
725
+ required: false
726
+ }]
727
+ }],
728
+ changeItemOnIndicatorHover: [{
729
+ type: i0.Input,
730
+ args: [{
731
+ isSignal: true,
732
+ alias: "changeItemOnIndicatorHover",
733
+ required: false
734
+ }]
735
+ }],
736
+ autoPlay: [{
737
+ type: i0.Input,
738
+ args: [{
739
+ isSignal: true,
740
+ alias: "autoPlay",
741
+ required: false
742
+ }]
743
+ }],
744
+ startSlideShow: [{
745
+ type: i0.Output,
746
+ args: ["startSlideShow"]
747
+ }],
748
+ stopSlideShow: [{
749
+ type: i0.Output,
750
+ args: ["stopSlideShow"]
751
+ }],
752
+ onActiveIndexChange: [{
753
+ type: i0.Output,
754
+ args: ["onActiveIndexChange"]
755
+ }],
756
+ activeIndexInput: [{
757
+ type: i0.Input,
758
+ args: [{
759
+ isSignal: true,
760
+ alias: "activeIndex",
761
+ required: false
762
+ }]
763
+ }]
764
+ }
765
+ });
766
+ var GalleriaThumbnails = class GalleriaThumbnails extends BaseComponent {
767
+ hostName = "Galleria";
768
+ galleria = inject(GALLERIA_INSTANCE);
769
+ bindDirectiveInstance = inject(Bind, { self: true });
770
+ containerId = input(...ngDevMode ? [void 0, { debugName: "containerId" }] : /* istanbul ignore next */ []);
771
+ value = input(...ngDevMode ? [void 0, { debugName: "value" }] : /* istanbul ignore next */ []);
772
+ isVertical = input(false, {
773
+ ...ngDevMode ? { debugName: "isVertical" } : /* istanbul ignore next */ {},
774
+ transform: booleanAttribute
775
+ });
776
+ slideShowActive = input(false, {
777
+ ...ngDevMode ? { debugName: "slideShowActive" } : /* istanbul ignore next */ {},
778
+ transform: booleanAttribute
779
+ });
780
+ circular = input(false, {
781
+ ...ngDevMode ? { debugName: "circular" } : /* istanbul ignore next */ {},
782
+ transform: booleanAttribute
783
+ });
784
+ responsiveOptions = input(...ngDevMode ? [void 0, { debugName: "responsiveOptions" }] : /* istanbul ignore next */ []);
785
+ contentHeight = input("300px", ...ngDevMode ? [{ debugName: "contentHeight" }] : /* istanbul ignore next */ []);
786
+ showThumbnailNavigators = input(true, {
787
+ ...ngDevMode ? { debugName: "showThumbnailNavigators" } : /* istanbul ignore next */ {},
788
+ transform: booleanAttribute
789
+ });
790
+ numVisibleInput = input(0, {
791
+ ...ngDevMode ? { debugName: "numVisibleInput" } : /* istanbul ignore next */ {},
792
+ alias: "numVisible"
793
+ });
794
+ activeIndexInput = input(0, {
795
+ ...ngDevMode ? { debugName: "activeIndexInput" } : /* istanbul ignore next */ {},
796
+ alias: "activeIndex"
797
+ });
798
+ onActiveIndexChange = output();
799
+ stopSlideShow = output();
800
+ itemsContainer = viewChild("itemsContainer", ...ngDevMode ? [{ debugName: "itemsContainer" }] : /* istanbul ignore next */ []);
801
+ index;
802
+ startPos = null;
803
+ thumbnailsStyle = null;
804
+ sortedResponsiveOptions = null;
805
+ totalShiftedItems = 0;
806
+ page = 0;
807
+ documentResizeListener;
808
+ _numVisible = linkedSignal(() => this.numVisibleInput(), ...ngDevMode ? [{ debugName: "_numVisible" }] : /* istanbul ignore next */ []);
809
+ _oldNumVisible = 0;
810
+ d_numVisible = linkedSignal({
811
+ ...ngDevMode ? { debugName: "d_numVisible" } : /* istanbul ignore next */ {},
812
+ source: () => this.numVisibleInput(),
813
+ computation: (source, previous) => {
814
+ if (previous) this._oldNumVisible = previous.value;
815
+ return source;
816
+ }
817
+ });
818
+ _oldactiveIndex = 0;
819
+ _activeIndex = linkedSignal({
820
+ ...ngDevMode ? { debugName: "_activeIndex" } : /* istanbul ignore next */ {},
821
+ source: () => this.activeIndexInput(),
822
+ computation: (source, previous) => {
823
+ if (previous) this._oldactiveIndex = previous.value;
824
+ return source;
825
+ }
826
+ });
827
+ _componentStyle = inject(GalleriaStyle);
828
+ viewportHeight = computed(() => this.isVertical() ? this.contentHeight() : "", ...ngDevMode ? [{ debugName: "viewportHeight" }] : /* istanbul ignore next */ []);
829
+ get aria() {
830
+ return this.galleria.config.translation.aria;
831
+ }
832
+ onAfterViewChecked() {
833
+ this.bindDirectiveInstance.setAttrs(this.ptm("thumbnails"));
834
+ }
835
+ isActiveItem(index) {
836
+ return this._activeIndex() === index;
837
+ }
838
+ getItemTabIndex(index) {
839
+ return this.isActiveItem(index) ? 0 : -1;
840
+ }
841
+ getAriaCurrent(index) {
842
+ return this.isActiveItem(index) ? "page" : void 0;
843
+ }
844
+ getAriaControls(index) {
845
+ return this.containerId() + "_item_" + index;
846
+ }
847
+ onInit() {
848
+ if (isPlatformBrowser(this.platformId)) {
849
+ this.createStyle();
850
+ if (this.responsiveOptions()) this.bindDocumentListeners();
851
+ }
852
+ }
853
+ onAfterContentChecked() {
854
+ let totalShiftedItems = this.totalShiftedItems;
855
+ const d_numVisible = this.d_numVisible();
856
+ const activeIndex = this._activeIndex();
857
+ const itemsContainer = this.itemsContainer();
858
+ const val = this.value();
859
+ if ((this._oldNumVisible !== d_numVisible || this._oldactiveIndex !== activeIndex) && itemsContainer) {
860
+ if (activeIndex <= this.getMedianItemIndex()) totalShiftedItems = 0;
861
+ else if (val.length - d_numVisible + this.getMedianItemIndex() < activeIndex) totalShiftedItems = d_numVisible - val.length;
862
+ else if (val.length - d_numVisible < activeIndex && d_numVisible % 2 === 0) totalShiftedItems = activeIndex * -1 + this.getMedianItemIndex() + 1;
863
+ else totalShiftedItems = activeIndex * -1 + this.getMedianItemIndex();
864
+ if (totalShiftedItems !== this.totalShiftedItems) this.totalShiftedItems = totalShiftedItems;
865
+ if (itemsContainer && itemsContainer.nativeElement) itemsContainer.nativeElement.style.transform = this.isVertical() ? `translate3d(0, ${totalShiftedItems * (100 / d_numVisible)}%, 0)` : `translate3d(${totalShiftedItems * (100 / d_numVisible)}%, 0, 0)`;
866
+ if (this._oldactiveIndex !== activeIndex) {
867
+ this.document.body.setAttribute("data-p-items-hidden", "false");
868
+ if (!this.$unstyled()) removeClass(itemsContainer.nativeElement, this.pcn("p-items-hidden"));
869
+ itemsContainer.nativeElement.style.transition = "transform 500ms ease 0s";
870
+ }
871
+ this._oldactiveIndex = activeIndex;
872
+ this._oldNumVisible = d_numVisible;
873
+ }
874
+ }
875
+ onAfterViewInit() {
876
+ if (isPlatformBrowser(this.platformId)) this.calculatePosition();
877
+ }
878
+ createStyle() {
879
+ if (!this.thumbnailsStyle && !this.$styleScope.isolated) {
880
+ this.thumbnailsStyle = this.document.createElement("style");
881
+ setAttribute(this.thumbnailsStyle, "nonce", this.galleria.config?.csp()?.nonce);
882
+ (getShadowRoot(this.el.nativeElement) ?? this.document.body).appendChild(this.thumbnailsStyle);
883
+ }
884
+ const d_numVisible = this.d_numVisible();
885
+ let innerHTML = `
707
886
  #${this.containerId()} .p-galleria-thumbnail-item {
708
887
  flex: 1 0 ${100 / d_numVisible}%
709
888
  }
710
889
  `;
711
- const responsiveOptions = this.responsiveOptions();
712
- if (responsiveOptions && !this.$unstyled()) {
713
- this.sortedResponsiveOptions = [...responsiveOptions];
714
- this.sortedResponsiveOptions.sort((data1, data2) => {
715
- const value1 = data1.breakpoint;
716
- const value2 = data2.breakpoint;
717
- let result;
718
- if (value1 == null && value2 != null)
719
- result = -1;
720
- else if (value1 != null && value2 == null)
721
- result = 1;
722
- else if (value1 == null && value2 == null)
723
- result = 0;
724
- else if (typeof value1 === 'string' && typeof value2 === 'string')
725
- result = value1.localeCompare(value2, undefined, { numeric: true });
726
- else
727
- result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;
728
- return -1 * result;
729
- });
730
- for (let i = 0; i < this.sortedResponsiveOptions.length; i++) {
731
- let res = this.sortedResponsiveOptions[i];
732
- innerHTML += `
890
+ const responsiveOptions = this.responsiveOptions();
891
+ if (responsiveOptions && !this.$unstyled()) {
892
+ this.sortedResponsiveOptions = [...responsiveOptions];
893
+ this.sortedResponsiveOptions.sort((data1, data2) => {
894
+ const value1 = data1.breakpoint;
895
+ const value2 = data2.breakpoint;
896
+ let result;
897
+ if (value1 == null && value2 != null) result = -1;
898
+ else if (value1 != null && value2 == null) result = 1;
899
+ else if (value1 == null && value2 == null) result = 0;
900
+ else if (typeof value1 === "string" && typeof value2 === "string") result = value1.localeCompare(value2, void 0, { numeric: true });
901
+ else result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;
902
+ return -1 * result;
903
+ });
904
+ for (let i = 0; i < this.sortedResponsiveOptions.length; i++) {
905
+ let res = this.sortedResponsiveOptions[i];
906
+ innerHTML += `
733
907
  @media screen and (max-width: ${res.breakpoint}) {
734
908
  #${this.containerId()} .p-galleria-thumbnail-item {
735
909
  flex: 1 0 ${100 / res.numVisible}%
736
910
  }
737
911
  }
738
912
  `;
739
- }
740
- }
741
- this.thumbnailsStyle.innerHTML = innerHTML;
742
- setAttribute(this.thumbnailsStyle, 'nonce', this.galleria.config?.csp()?.nonce);
743
- }
744
- calculatePosition() {
745
- if (isPlatformBrowser(this.platformId)) {
746
- const itemsContainer = this.itemsContainer();
747
- if (itemsContainer && this.sortedResponsiveOptions) {
748
- let windowWidth = window.innerWidth;
749
- let matchedResponsiveData = {
750
- numVisible: this._numVisible()
751
- };
752
- for (let i = 0; i < this.sortedResponsiveOptions.length; i++) {
753
- let res = this.sortedResponsiveOptions[i];
754
- if (parseInt(res.breakpoint, 10) >= windowWidth) {
755
- matchedResponsiveData = res;
756
- }
757
- }
758
- if (this.d_numVisible() !== matchedResponsiveData.numVisible) {
759
- this.d_numVisible.set(matchedResponsiveData.numVisible);
760
- }
761
- }
762
- }
763
- }
764
- getTabIndex(index) {
765
- return this.isItemActive(index) ? 0 : null;
766
- }
767
- navForward(e) {
768
- this.stopTheSlideShow();
769
- const activeIndex = this._activeIndex();
770
- const val = this.value();
771
- let nextItemIndex = activeIndex + 1;
772
- if (nextItemIndex + this.totalShiftedItems > this.getMedianItemIndex() && (-1 * this.totalShiftedItems < this.getTotalPageNumber() - 1 || this.circular())) {
773
- this.step(-1);
774
- }
775
- let newActiveIndex = this.circular() && val.length - 1 === activeIndex ? 0 : nextItemIndex;
776
- this.onActiveIndexChange.emit(newActiveIndex);
777
- if (e.cancelable) {
778
- e.preventDefault();
779
- }
780
- }
781
- navBackward(e) {
782
- this.stopTheSlideShow();
783
- const activeIndex = this._activeIndex();
784
- const val = this.value();
785
- let prevItemIndex = activeIndex !== 0 ? activeIndex - 1 : 0;
786
- let diff = prevItemIndex + this.totalShiftedItems;
787
- if (this.d_numVisible() - diff - 1 > this.getMedianItemIndex() && (-1 * this.totalShiftedItems !== 0 || this.circular())) {
788
- this.step(1);
789
- }
790
- let newActiveIndex = this.circular() && activeIndex === 0 ? val.length - 1 : prevItemIndex;
791
- this.onActiveIndexChange.emit(newActiveIndex);
792
- if (e.cancelable) {
793
- e.preventDefault();
794
- }
795
- }
796
- onItemClick(index) {
797
- this.stopTheSlideShow();
798
- const activeIndex = this._activeIndex();
799
- let selectedItemIndex = index;
800
- if (selectedItemIndex !== activeIndex) {
801
- const diff = selectedItemIndex + this.totalShiftedItems;
802
- let dir = 0;
803
- if (selectedItemIndex < activeIndex) {
804
- dir = this.d_numVisible() - diff - 1 - this.getMedianItemIndex();
805
- if (dir > 0 && -1 * this.totalShiftedItems !== 0) {
806
- this.step(dir);
807
- }
808
- }
809
- else {
810
- dir = this.getMedianItemIndex() - diff;
811
- if (dir < 0 && -1 * this.totalShiftedItems < this.getTotalPageNumber() - 1) {
812
- this.step(dir);
813
- }
814
- }
815
- this._activeIndex.set(selectedItemIndex);
816
- this.onActiveIndexChange.emit(selectedItemIndex);
817
- }
818
- }
819
- onThumbnailKeydown(event, index) {
820
- if (event.code === 'Enter' || event.code === 'Space') {
821
- this.onItemClick(index);
822
- event.preventDefault();
823
- }
824
- switch (event.code) {
825
- case 'ArrowRight':
826
- this.onRightKey();
827
- break;
828
- case 'ArrowLeft':
829
- this.onLeftKey();
830
- break;
831
- case 'Home':
832
- this.onHomeKey();
833
- event.preventDefault();
834
- break;
835
- case 'End':
836
- this.onEndKey();
837
- event.preventDefault();
838
- break;
839
- case 'ArrowUp':
840
- case 'ArrowDown':
841
- event.preventDefault();
842
- break;
843
- case 'Tab':
844
- this.onTabKey();
845
- break;
846
- default:
847
- break;
848
- }
849
- }
850
- onRightKey() {
851
- const itemsContainer = this.itemsContainer();
852
- const indicators = find(itemsContainer?.nativeElement, '[data-pc-section="thumbnailitem"]');
853
- const activeIndex = this.findFocusedIndicatorIndex();
854
- this.changedFocusedIndicator(activeIndex, activeIndex + 1 === indicators.length ? indicators.length - 1 : activeIndex + 1);
855
- }
856
- onLeftKey() {
857
- const activeIndex = this.findFocusedIndicatorIndex();
858
- this.changedFocusedIndicator(activeIndex, activeIndex - 1 <= 0 ? 0 : activeIndex - 1);
859
- }
860
- onHomeKey() {
861
- const activeIndex = this.findFocusedIndicatorIndex();
862
- this.changedFocusedIndicator(activeIndex, 0);
863
- }
864
- onEndKey() {
865
- const itemsContainer = this.itemsContainer();
866
- const indicators = find(itemsContainer?.nativeElement, '[data-pc-section="thumbnailitem"]');
867
- const activeIndex = this.findFocusedIndicatorIndex();
868
- this.changedFocusedIndicator(activeIndex, indicators.length - 1);
869
- }
870
- onTabKey() {
871
- const itemsContainer = this.itemsContainer();
872
- const indicators = [...find(itemsContainer?.nativeElement, '[data-pc-section="thumbnailitem"]')];
873
- const highlightedIndex = indicators.findIndex((ind) => getAttribute(ind, 'data-p-active') === true);
874
- const activeIndicator = findSingle(itemsContainer?.nativeElement, '[tabindex="0"]');
875
- const activeIndex = indicators.findIndex((ind) => ind === activeIndicator?.parentElement);
876
- indicators[activeIndex].children[0].tabIndex = '-1';
877
- indicators[highlightedIndex].children[0].tabIndex = '0';
878
- }
879
- findFocusedIndicatorIndex() {
880
- const itemsContainer = this.itemsContainer();
881
- const indicators = [...find(itemsContainer?.nativeElement, '[data-pc-section="thumbnailitem"]')];
882
- const activeIndicator = findSingle(itemsContainer?.nativeElement, '[data-pc-section="thumbnailitem"] > [tabindex="0"]');
883
- return indicators.findIndex((ind) => ind === activeIndicator?.parentElement);
884
- }
885
- changedFocusedIndicator(prevInd, nextInd) {
886
- const itemsContainer = this.itemsContainer();
887
- const indicators = find(itemsContainer?.nativeElement, '[data-pc-section="thumbnailitem"]');
888
- indicators[prevInd].children[0].tabIndex = '-1';
889
- indicators[nextInd].children[0].tabIndex = '0';
890
- indicators[nextInd].children[0].focus();
891
- }
892
- step(dir) {
893
- const d_numVisible = this.d_numVisible();
894
- const val = this.value();
895
- const activeIndex = this._activeIndex();
896
- let totalShiftedItems = this.totalShiftedItems + dir;
897
- if (dir < 0 && -1 * totalShiftedItems + d_numVisible > val.length - 1) {
898
- totalShiftedItems = d_numVisible - val.length;
899
- }
900
- else if (dir > 0 && totalShiftedItems > 0) {
901
- totalShiftedItems = 0;
902
- }
903
- if (this.circular()) {
904
- if (dir < 0 && val.length - 1 === activeIndex) {
905
- totalShiftedItems = 0;
906
- }
907
- else if (dir > 0 && activeIndex === 0) {
908
- totalShiftedItems = d_numVisible - val.length;
909
- }
910
- }
911
- const itemsContainer = this.itemsContainer();
912
- if (itemsContainer) {
913
- this.document.body.setAttribute('data-p-items-hidden', 'false');
914
- if (!this.$unstyled()) {
915
- removeClass(itemsContainer.nativeElement, 'p-items-hidden');
916
- }
917
- itemsContainer.nativeElement.style.transform = this.isVertical() ? `translate3d(0, ${totalShiftedItems * (100 / d_numVisible)}%, 0)` : `translate3d(${totalShiftedItems * (100 / d_numVisible)}%, 0, 0)`;
918
- itemsContainer.nativeElement.style.transition = 'transform 500ms ease 0s';
919
- }
920
- this.totalShiftedItems = totalShiftedItems;
921
- }
922
- stopTheSlideShow() {
923
- if (this.slideShowActive()) {
924
- this.stopSlideShow.emit();
925
- }
926
- }
927
- changePageOnTouch(e, diff) {
928
- if (diff < 0) {
929
- // left
930
- this.navForward(e);
931
- }
932
- else {
933
- // right
934
- this.navBackward(e);
935
- }
936
- }
937
- getTotalPageNumber() {
938
- const val = this.value();
939
- const d_numVisible = this.d_numVisible();
940
- return val.length > d_numVisible ? val.length - d_numVisible + 1 : 0;
941
- }
942
- getMedianItemIndex() {
943
- const d_numVisible = this.d_numVisible();
944
- let index = Math.floor(d_numVisible / 2);
945
- return d_numVisible % 2 ? index : index - 1;
946
- }
947
- onTransitionEnd() {
948
- const itemsContainer = this.itemsContainer();
949
- if (itemsContainer && itemsContainer.nativeElement) {
950
- this.document.body.setAttribute('data-p-items-hidden', 'true');
951
- if (!this.$unstyled()) {
952
- addClass(itemsContainer.nativeElement, 'p-items-hidden');
953
- }
954
- itemsContainer.nativeElement.style.transition = '';
955
- }
956
- }
957
- onTouchEnd(e) {
958
- let touchobj = e.changedTouches[0];
959
- if (this.isVertical()) {
960
- this.changePageOnTouch(e, touchobj.pageY - this.startPos.y);
961
- }
962
- else {
963
- this.changePageOnTouch(e, touchobj.pageX - this.startPos.x);
964
- }
965
- }
966
- onTouchMove(e) {
967
- if (e.cancelable) {
968
- e.preventDefault();
969
- }
970
- }
971
- onTouchStart(e) {
972
- let touchobj = e.changedTouches[0];
973
- this.startPos = {
974
- x: touchobj.pageX,
975
- y: touchobj.pageY
976
- };
977
- }
978
- isNavBackwardDisabled() {
979
- const val = this.value();
980
- const d_numVisible = this.d_numVisible();
981
- return (!this.circular() && this._activeIndex() === 0) || val.length <= d_numVisible;
982
- }
983
- isNavForwardDisabled() {
984
- const val = this.value();
985
- const d_numVisible = this.d_numVisible();
986
- return (!this.circular() && this._activeIndex() === val.length - 1) || val.length <= d_numVisible;
987
- }
988
- firstItemAciveIndex() {
989
- return this.totalShiftedItems * -1;
990
- }
991
- lastItemActiveIndex() {
992
- return this.firstItemAciveIndex() + this.d_numVisible() - 1;
993
- }
994
- isItemActive(index) {
995
- return this.firstItemAciveIndex() <= index && this.lastItemActiveIndex() >= index;
996
- }
997
- bindDocumentListeners() {
998
- if (isPlatformBrowser(this.platformId)) {
999
- const window = this.document.defaultView || 'window';
1000
- this.documentResizeListener = this.renderer.listen(window, 'resize', () => {
1001
- this.calculatePosition();
1002
- });
1003
- }
1004
- }
1005
- unbindDocumentListeners() {
1006
- if (this.documentResizeListener) {
1007
- this.documentResizeListener();
1008
- this.documentResizeListener = null;
1009
- }
1010
- }
1011
- onDestroy() {
1012
- if (this.responsiveOptions()) {
1013
- this.unbindDocumentListeners();
1014
- }
1015
- if (this.thumbnailsStyle) {
1016
- this.thumbnailsStyle.parentNode?.removeChild(this.thumbnailsStyle);
1017
- }
1018
- }
1019
- ariaPrevButtonLabel() {
1020
- return this.aria?.prevPageLabel;
1021
- }
1022
- ariaNextButtonLabel() {
1023
- return this.aria?.nextPageLabel;
1024
- }
1025
- ariaPageLabel(value) {
1026
- return this.aria?.pageLabel?.replace(/{page}/g, value);
1027
- }
1028
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: GalleriaThumbnails, deps: null, target: i0.ɵɵFactoryTarget.Component });
1029
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: GalleriaThumbnails, isStandalone: true, selector: "div[pGalleriaThumbnails]", inputs: { containerId: { classPropertyName: "containerId", publicName: "containerId", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, isVertical: { classPropertyName: "isVertical", publicName: "isVertical", isSignal: true, isRequired: false, transformFunction: null }, slideShowActive: { classPropertyName: "slideShowActive", publicName: "slideShowActive", isSignal: true, isRequired: false, transformFunction: null }, circular: { classPropertyName: "circular", publicName: "circular", isSignal: true, isRequired: false, transformFunction: null }, responsiveOptions: { classPropertyName: "responsiveOptions", publicName: "responsiveOptions", isSignal: true, isRequired: false, transformFunction: null }, contentHeight: { classPropertyName: "contentHeight", publicName: "contentHeight", isSignal: true, isRequired: false, transformFunction: null }, showThumbnailNavigators: { classPropertyName: "showThumbnailNavigators", publicName: "showThumbnailNavigators", isSignal: true, isRequired: false, transformFunction: null }, numVisibleInput: { classPropertyName: "numVisibleInput", publicName: "numVisible", isSignal: true, isRequired: false, transformFunction: null }, activeIndexInput: { classPropertyName: "activeIndexInput", publicName: "activeIndex", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onActiveIndexChange: "onActiveIndexChange", stopSlideShow: "stopSlideShow" }, host: { properties: { "class": "cx(\"thumbnails\")" } }, providers: [GalleriaStyle], viewQueries: [{ propertyName: "itemsContainer", first: true, predicate: ["itemsContainer"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
913
+ }
914
+ }
915
+ if (this.$styleScope.isolated) {
916
+ this.$isolatedStyle("thumbnails", this.psel(innerHTML));
917
+ return;
918
+ }
919
+ this.thumbnailsStyle.innerHTML = this.psel(innerHTML);
920
+ setAttribute(this.thumbnailsStyle, "nonce", this.galleria.config?.csp()?.nonce);
921
+ }
922
+ calculatePosition() {
923
+ if (isPlatformBrowser(this.platformId)) {
924
+ if (this.itemsContainer() && this.sortedResponsiveOptions) {
925
+ let windowWidth = window.innerWidth;
926
+ let matchedResponsiveData = { numVisible: this._numVisible() };
927
+ for (let i = 0; i < this.sortedResponsiveOptions.length; i++) {
928
+ let res = this.sortedResponsiveOptions[i];
929
+ if (parseInt(res.breakpoint, 10) >= windowWidth) matchedResponsiveData = res;
930
+ }
931
+ if (this.d_numVisible() !== matchedResponsiveData.numVisible) this.d_numVisible.set(matchedResponsiveData.numVisible);
932
+ }
933
+ }
934
+ }
935
+ getTabIndex(index) {
936
+ return this.isItemActive(index) ? 0 : null;
937
+ }
938
+ navForward(e) {
939
+ this.stopTheSlideShow();
940
+ const activeIndex = this._activeIndex();
941
+ const val = this.value();
942
+ let nextItemIndex = activeIndex + 1;
943
+ if (nextItemIndex + this.totalShiftedItems > this.getMedianItemIndex() && (-1 * this.totalShiftedItems < this.getTotalPageNumber() - 1 || this.circular())) this.step(-1);
944
+ let newActiveIndex = this.circular() && val.length - 1 === activeIndex ? 0 : nextItemIndex;
945
+ this.onActiveIndexChange.emit(newActiveIndex);
946
+ if (e.cancelable) e.preventDefault();
947
+ }
948
+ navBackward(e) {
949
+ this.stopTheSlideShow();
950
+ const activeIndex = this._activeIndex();
951
+ const val = this.value();
952
+ let prevItemIndex = activeIndex !== 0 ? activeIndex - 1 : 0;
953
+ let diff = prevItemIndex + this.totalShiftedItems;
954
+ if (this.d_numVisible() - diff - 1 > this.getMedianItemIndex() && (-1 * this.totalShiftedItems !== 0 || this.circular())) this.step(1);
955
+ let newActiveIndex = this.circular() && activeIndex === 0 ? val.length - 1 : prevItemIndex;
956
+ this.onActiveIndexChange.emit(newActiveIndex);
957
+ if (e.cancelable) e.preventDefault();
958
+ }
959
+ onItemClick(index) {
960
+ this.stopTheSlideShow();
961
+ const activeIndex = this._activeIndex();
962
+ let selectedItemIndex = index;
963
+ if (selectedItemIndex !== activeIndex) {
964
+ const diff = selectedItemIndex + this.totalShiftedItems;
965
+ let dir = 0;
966
+ if (selectedItemIndex < activeIndex) {
967
+ dir = this.d_numVisible() - diff - 1 - this.getMedianItemIndex();
968
+ if (dir > 0 && -1 * this.totalShiftedItems !== 0) this.step(dir);
969
+ } else {
970
+ dir = this.getMedianItemIndex() - diff;
971
+ if (dir < 0 && -1 * this.totalShiftedItems < this.getTotalPageNumber() - 1) this.step(dir);
972
+ }
973
+ this._activeIndex.set(selectedItemIndex);
974
+ this.onActiveIndexChange.emit(selectedItemIndex);
975
+ }
976
+ }
977
+ onThumbnailKeydown(event, index) {
978
+ if (event.code === "Enter" || event.code === "Space") {
979
+ this.onItemClick(index);
980
+ event.preventDefault();
981
+ }
982
+ switch (event.code) {
983
+ case "ArrowRight":
984
+ this.onRightKey();
985
+ break;
986
+ case "ArrowLeft":
987
+ this.onLeftKey();
988
+ break;
989
+ case "Home":
990
+ this.onHomeKey();
991
+ event.preventDefault();
992
+ break;
993
+ case "End":
994
+ this.onEndKey();
995
+ event.preventDefault();
996
+ break;
997
+ case "ArrowUp":
998
+ case "ArrowDown":
999
+ event.preventDefault();
1000
+ break;
1001
+ case "Tab": this.onTabKey();
1002
+ }
1003
+ }
1004
+ onRightKey() {
1005
+ const itemsContainer = this.itemsContainer();
1006
+ const indicators = find(itemsContainer?.nativeElement, "[data-pc-section=\"thumbnailitem\"]");
1007
+ const activeIndex = this.findFocusedIndicatorIndex();
1008
+ this.changedFocusedIndicator(activeIndex, activeIndex + 1 === indicators.length ? indicators.length - 1 : activeIndex + 1);
1009
+ }
1010
+ onLeftKey() {
1011
+ const activeIndex = this.findFocusedIndicatorIndex();
1012
+ this.changedFocusedIndicator(activeIndex, activeIndex - 1 <= 0 ? 0 : activeIndex - 1);
1013
+ }
1014
+ onHomeKey() {
1015
+ const activeIndex = this.findFocusedIndicatorIndex();
1016
+ this.changedFocusedIndicator(activeIndex, 0);
1017
+ }
1018
+ onEndKey() {
1019
+ const itemsContainer = this.itemsContainer();
1020
+ const indicators = find(itemsContainer?.nativeElement, "[data-pc-section=\"thumbnailitem\"]");
1021
+ const activeIndex = this.findFocusedIndicatorIndex();
1022
+ this.changedFocusedIndicator(activeIndex, indicators.length - 1);
1023
+ }
1024
+ onTabKey() {
1025
+ const itemsContainer = this.itemsContainer();
1026
+ const indicators = [...find(itemsContainer?.nativeElement, "[data-pc-section=\"thumbnailitem\"]")];
1027
+ const highlightedIndex = indicators.findIndex((ind) => getAttribute(ind, "data-p-active") === true);
1028
+ const activeIndicator = findSingle(itemsContainer?.nativeElement, "[tabindex=\"0\"]");
1029
+ const activeIndex = indicators.findIndex((ind) => ind === activeIndicator?.parentElement);
1030
+ indicators[activeIndex].children[0].tabIndex = "-1";
1031
+ indicators[highlightedIndex].children[0].tabIndex = "0";
1032
+ }
1033
+ findFocusedIndicatorIndex() {
1034
+ const itemsContainer = this.itemsContainer();
1035
+ const indicators = [...find(itemsContainer?.nativeElement, "[data-pc-section=\"thumbnailitem\"]")];
1036
+ const activeIndicator = findSingle(itemsContainer?.nativeElement, "[data-pc-section=\"thumbnailitem\"] > [tabindex=\"0\"]");
1037
+ return indicators.findIndex((ind) => ind === activeIndicator?.parentElement);
1038
+ }
1039
+ changedFocusedIndicator(prevInd, nextInd) {
1040
+ const itemsContainer = this.itemsContainer();
1041
+ const indicators = find(itemsContainer?.nativeElement, "[data-pc-section=\"thumbnailitem\"]");
1042
+ indicators[prevInd].children[0].tabIndex = "-1";
1043
+ indicators[nextInd].children[0].tabIndex = "0";
1044
+ indicators[nextInd].children[0].focus();
1045
+ }
1046
+ step(dir) {
1047
+ const d_numVisible = this.d_numVisible();
1048
+ const val = this.value();
1049
+ const activeIndex = this._activeIndex();
1050
+ let totalShiftedItems = this.totalShiftedItems + dir;
1051
+ if (dir < 0 && -1 * totalShiftedItems + d_numVisible > val.length - 1) totalShiftedItems = d_numVisible - val.length;
1052
+ else if (dir > 0 && totalShiftedItems > 0) totalShiftedItems = 0;
1053
+ if (this.circular()) {
1054
+ if (dir < 0 && val.length - 1 === activeIndex) totalShiftedItems = 0;
1055
+ else if (dir > 0 && activeIndex === 0) totalShiftedItems = d_numVisible - val.length;
1056
+ }
1057
+ const itemsContainer = this.itemsContainer();
1058
+ if (itemsContainer) {
1059
+ this.document.body.setAttribute("data-p-items-hidden", "false");
1060
+ if (!this.$unstyled()) removeClass(itemsContainer.nativeElement, this.pcn("p-items-hidden"));
1061
+ itemsContainer.nativeElement.style.transform = this.isVertical() ? `translate3d(0, ${totalShiftedItems * (100 / d_numVisible)}%, 0)` : `translate3d(${totalShiftedItems * (100 / d_numVisible)}%, 0, 0)`;
1062
+ itemsContainer.nativeElement.style.transition = "transform 500ms ease 0s";
1063
+ }
1064
+ this.totalShiftedItems = totalShiftedItems;
1065
+ }
1066
+ stopTheSlideShow() {
1067
+ if (this.slideShowActive()) this.stopSlideShow.emit();
1068
+ }
1069
+ changePageOnTouch(e, diff) {
1070
+ if (diff < 0) this.navForward(e);
1071
+ else this.navBackward(e);
1072
+ }
1073
+ getTotalPageNumber() {
1074
+ const val = this.value();
1075
+ const d_numVisible = this.d_numVisible();
1076
+ return val.length > d_numVisible ? val.length - d_numVisible + 1 : 0;
1077
+ }
1078
+ getMedianItemIndex() {
1079
+ const d_numVisible = this.d_numVisible();
1080
+ let index = Math.floor(d_numVisible / 2);
1081
+ return d_numVisible % 2 ? index : index - 1;
1082
+ }
1083
+ onTransitionEnd() {
1084
+ const itemsContainer = this.itemsContainer();
1085
+ if (itemsContainer && itemsContainer.nativeElement) {
1086
+ this.document.body.setAttribute("data-p-items-hidden", "true");
1087
+ if (!this.$unstyled()) addClass(itemsContainer.nativeElement, this.pcn("p-items-hidden"));
1088
+ itemsContainer.nativeElement.style.transition = "";
1089
+ }
1090
+ }
1091
+ onTouchEnd(e) {
1092
+ let touchobj = e.changedTouches[0];
1093
+ if (this.isVertical()) this.changePageOnTouch(e, touchobj.pageY - this.startPos.y);
1094
+ else this.changePageOnTouch(e, touchobj.pageX - this.startPos.x);
1095
+ }
1096
+ onTouchMove(e) {
1097
+ if (e.cancelable) e.preventDefault();
1098
+ }
1099
+ onTouchStart(e) {
1100
+ let touchobj = e.changedTouches[0];
1101
+ this.startPos = {
1102
+ x: touchobj.pageX,
1103
+ y: touchobj.pageY
1104
+ };
1105
+ }
1106
+ isNavBackwardDisabled() {
1107
+ const val = this.value();
1108
+ const d_numVisible = this.d_numVisible();
1109
+ return !this.circular() && this._activeIndex() === 0 || val.length <= d_numVisible;
1110
+ }
1111
+ isNavForwardDisabled() {
1112
+ const val = this.value();
1113
+ const d_numVisible = this.d_numVisible();
1114
+ return !this.circular() && this._activeIndex() === val.length - 1 || val.length <= d_numVisible;
1115
+ }
1116
+ firstItemAciveIndex() {
1117
+ return this.totalShiftedItems * -1;
1118
+ }
1119
+ lastItemActiveIndex() {
1120
+ return this.firstItemAciveIndex() + this.d_numVisible() - 1;
1121
+ }
1122
+ isItemActive(index) {
1123
+ return this.firstItemAciveIndex() <= index && this.lastItemActiveIndex() >= index;
1124
+ }
1125
+ bindDocumentListeners() {
1126
+ if (isPlatformBrowser(this.platformId)) {
1127
+ const window = this.document.defaultView || "window";
1128
+ this.documentResizeListener = this.renderer.listen(window, "resize", () => {
1129
+ this.calculatePosition();
1130
+ });
1131
+ }
1132
+ }
1133
+ unbindDocumentListeners() {
1134
+ if (this.documentResizeListener) {
1135
+ this.documentResizeListener();
1136
+ this.documentResizeListener = null;
1137
+ }
1138
+ }
1139
+ onDestroy() {
1140
+ if (this.responsiveOptions()) this.unbindDocumentListeners();
1141
+ if (this.thumbnailsStyle) this.thumbnailsStyle.parentNode?.removeChild(this.thumbnailsStyle);
1142
+ }
1143
+ ariaPrevButtonLabel() {
1144
+ return this.aria?.prevPageLabel;
1145
+ }
1146
+ ariaNextButtonLabel() {
1147
+ return this.aria?.nextPageLabel;
1148
+ }
1149
+ ariaPageLabel(value) {
1150
+ return this.aria?.pageLabel?.replace(/{page}/g, value);
1151
+ }
1152
+ static ɵfac = i0.ɵɵngDeclareFactory({
1153
+ minVersion: "12.0.0",
1154
+ version: "22.2.3",
1155
+ ngImport: i0,
1156
+ type: GalleriaThumbnails,
1157
+ deps: null,
1158
+ target: i0.ɵɵFactoryTarget.Component
1159
+ });
1160
+ static ɵcmp = i0.ɵɵngDeclareComponent({
1161
+ minVersion: "17.0.0",
1162
+ version: "22.2.3",
1163
+ type: GalleriaThumbnails,
1164
+ isStandalone: true,
1165
+ selector: "div[pGalleriaThumbnails]",
1166
+ inputs: {
1167
+ containerId: {
1168
+ classPropertyName: "containerId",
1169
+ publicName: "containerId",
1170
+ isSignal: true,
1171
+ isRequired: false,
1172
+ transformFunction: null
1173
+ },
1174
+ value: {
1175
+ classPropertyName: "value",
1176
+ publicName: "value",
1177
+ isSignal: true,
1178
+ isRequired: false,
1179
+ transformFunction: null
1180
+ },
1181
+ isVertical: {
1182
+ classPropertyName: "isVertical",
1183
+ publicName: "isVertical",
1184
+ isSignal: true,
1185
+ isRequired: false,
1186
+ transformFunction: null
1187
+ },
1188
+ slideShowActive: {
1189
+ classPropertyName: "slideShowActive",
1190
+ publicName: "slideShowActive",
1191
+ isSignal: true,
1192
+ isRequired: false,
1193
+ transformFunction: null
1194
+ },
1195
+ circular: {
1196
+ classPropertyName: "circular",
1197
+ publicName: "circular",
1198
+ isSignal: true,
1199
+ isRequired: false,
1200
+ transformFunction: null
1201
+ },
1202
+ responsiveOptions: {
1203
+ classPropertyName: "responsiveOptions",
1204
+ publicName: "responsiveOptions",
1205
+ isSignal: true,
1206
+ isRequired: false,
1207
+ transformFunction: null
1208
+ },
1209
+ contentHeight: {
1210
+ classPropertyName: "contentHeight",
1211
+ publicName: "contentHeight",
1212
+ isSignal: true,
1213
+ isRequired: false,
1214
+ transformFunction: null
1215
+ },
1216
+ showThumbnailNavigators: {
1217
+ classPropertyName: "showThumbnailNavigators",
1218
+ publicName: "showThumbnailNavigators",
1219
+ isSignal: true,
1220
+ isRequired: false,
1221
+ transformFunction: null
1222
+ },
1223
+ numVisibleInput: {
1224
+ classPropertyName: "numVisibleInput",
1225
+ publicName: "numVisible",
1226
+ isSignal: true,
1227
+ isRequired: false,
1228
+ transformFunction: null
1229
+ },
1230
+ activeIndexInput: {
1231
+ classPropertyName: "activeIndexInput",
1232
+ publicName: "activeIndex",
1233
+ isSignal: true,
1234
+ isRequired: false,
1235
+ transformFunction: null
1236
+ }
1237
+ },
1238
+ outputs: {
1239
+ onActiveIndexChange: "onActiveIndexChange",
1240
+ stopSlideShow: "stopSlideShow"
1241
+ },
1242
+ host: { properties: { "class": "cx(\"thumbnails\")" } },
1243
+ providers: [GalleriaStyle],
1244
+ viewQueries: [{
1245
+ propertyName: "itemsContainer",
1246
+ first: true,
1247
+ predicate: ["itemsContainer"],
1248
+ descendants: true,
1249
+ isSignal: true
1250
+ }],
1251
+ usesInheritance: true,
1252
+ hostDirectives: [{ directive: i1.Bind }],
1253
+ ngImport: i0,
1254
+ template: `
1030
1255
  <div [pBind]="ptm('thumbnailContent')" [class]="cx('thumbnailContent')">
1031
1256
  @if (showThumbnailNavigators()) {
1032
1257
  <button type="button" [pBind]="ptm('thumbnailPrevButton')" [class]="cx('thumbnailPrevButton')" (click)="navBackward($event)" pRipple [attr.aria-label]="ariaPrevButtonLabel()" data-pc-group-section="thumbnailnavigator">
@@ -1080,15 +1305,89 @@ class GalleriaThumbnails extends BaseComponent {
1080
1305
  </button>
1081
1306
  }
1082
1307
  </div>
1083
- `, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: BindModule }, { kind: "directive", type: i1.Bind, selector: "[pBind]", inputs: ["pBind"] }, { kind: "directive", type: Ripple, selector: "[pRipple]" }, { kind: "component", type: ChevronLeft, selector: "svg[data-p-icon=\"chevron-left\"]" }, { kind: "component", type: ChevronRight, selector: "svg[data-p-icon=\"chevron-right\"]" }, { kind: "component", type: ChevronUp, selector: "svg[data-p-icon=\"chevron-up\"]" }, { kind: "component", type: ChevronDown, selector: "svg[data-p-icon=\"chevron-down\"]" }, { kind: "component", type: GalleriaItemSlot, selector: "div[pGalleriaItemSlot]", inputs: ["index", "item", "type"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1084
- }
1085
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: GalleriaThumbnails, decorators: [{
1086
- type: Component,
1087
- args: [{
1088
- selector: 'div[pGalleriaThumbnails]',
1089
- standalone: true,
1090
- imports: [NgTemplateOutlet, BindModule, Ripple, ChevronLeft, ChevronRight, ChevronUp, ChevronDown, GalleriaItemSlot],
1091
- template: `
1308
+ `,
1309
+ isInline: true,
1310
+ dependencies: [
1311
+ {
1312
+ kind: "directive",
1313
+ type: NgTemplateOutlet,
1314
+ selector: "[ngTemplateOutlet]",
1315
+ inputs: [
1316
+ "ngTemplateOutletContext",
1317
+ "ngTemplateOutlet",
1318
+ "ngTemplateOutletInjector"
1319
+ ]
1320
+ },
1321
+ {
1322
+ kind: "ngmodule",
1323
+ type: BindModule
1324
+ },
1325
+ {
1326
+ kind: "directive",
1327
+ type: i1.Bind,
1328
+ selector: "[pBind]",
1329
+ inputs: ["pBind"]
1330
+ },
1331
+ {
1332
+ kind: "directive",
1333
+ type: Ripple,
1334
+ selector: "[pRipple]"
1335
+ },
1336
+ {
1337
+ kind: "component",
1338
+ type: ChevronLeft,
1339
+ selector: "svg[data-p-icon=\"chevron-left\"]"
1340
+ },
1341
+ {
1342
+ kind: "component",
1343
+ type: ChevronRight,
1344
+ selector: "svg[data-p-icon=\"chevron-right\"]"
1345
+ },
1346
+ {
1347
+ kind: "component",
1348
+ type: ChevronUp,
1349
+ selector: "svg[data-p-icon=\"chevron-up\"]"
1350
+ },
1351
+ {
1352
+ kind: "component",
1353
+ type: ChevronDown,
1354
+ selector: "svg[data-p-icon=\"chevron-down\"]"
1355
+ },
1356
+ {
1357
+ kind: "component",
1358
+ type: GalleriaItemSlot,
1359
+ selector: "div[pGalleriaItemSlot]",
1360
+ inputs: [
1361
+ "index",
1362
+ "item",
1363
+ "type"
1364
+ ]
1365
+ }
1366
+ ],
1367
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
1368
+ });
1369
+ };
1370
+ i0.ɵɵngDeclareClassMetadata({
1371
+ minVersion: "12.0.0",
1372
+ version: "22.2.3",
1373
+ ngImport: i0,
1374
+ type: GalleriaThumbnails,
1375
+ decorators: [{
1376
+ type: Component,
1377
+ args: [{
1378
+ selector: "div[pGalleriaThumbnails]",
1379
+ standalone: true,
1380
+ imports: [
1381
+ NgTemplateOutlet,
1382
+ BindModule,
1383
+ Ripple,
1384
+ ChevronLeft,
1385
+ ChevronRight,
1386
+ ChevronUp,
1387
+ ChevronDown,
1388
+ GalleriaItemSlot
1389
+ ],
1390
+ template: `
1092
1391
  <div [pBind]="ptm('thumbnailContent')" [class]="cx('thumbnailContent')">
1093
1392
  @if (showThumbnailNavigators()) {
1094
1393
  <button type="button" [pBind]="ptm('thumbnailPrevButton')" [class]="cx('thumbnailPrevButton')" (click)="navBackward($event)" pRipple [attr.aria-label]="ariaPrevButtonLabel()" data-pc-group-section="thumbnailnavigator">
@@ -1143,121 +1442,267 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
1143
1442
  }
1144
1443
  </div>
1145
1444
  `,
1146
- changeDetection: ChangeDetectionStrategy.OnPush,
1147
- providers: [GalleriaStyle],
1148
- host: {
1149
- '[class]': 'cx("thumbnails")'
1150
- },
1151
- hostDirectives: [Bind]
1152
- }]
1153
- }], propDecorators: { containerId: [{ type: i0.Input, args: [{ isSignal: true, alias: "containerId", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], isVertical: [{ type: i0.Input, args: [{ isSignal: true, alias: "isVertical", required: false }] }], slideShowActive: [{ type: i0.Input, args: [{ isSignal: true, alias: "slideShowActive", required: false }] }], circular: [{ type: i0.Input, args: [{ isSignal: true, alias: "circular", required: false }] }], responsiveOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "responsiveOptions", required: false }] }], contentHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "contentHeight", required: false }] }], showThumbnailNavigators: [{ type: i0.Input, args: [{ isSignal: true, alias: "showThumbnailNavigators", required: false }] }], numVisibleInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "numVisible", required: false }] }], activeIndexInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeIndex", required: false }] }], onActiveIndexChange: [{ type: i0.Output, args: ["onActiveIndexChange"] }], stopSlideShow: [{ type: i0.Output, args: ["stopSlideShow"] }], itemsContainer: [{ type: i0.ViewChild, args: ['itemsContainer', { isSignal: true }] }] } });
1154
-
1155
- class GalleriaContent extends BaseComponent {
1156
- hostName = 'Galleria';
1157
- galleria = inject(GALLERIA_INSTANCE);
1158
- bindDirectiveInstance = inject(Bind, { self: true });
1159
- value = input([], /* @ts-ignore */
1160
- ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
1161
- numVisible = input(3, /* @ts-ignore */
1162
- ...(ngDevMode ? [{ debugName: "numVisible" }] : /* istanbul ignore next */ []));
1163
- fullScreen = model(false, /* @ts-ignore */
1164
- ...(ngDevMode ? [{ debugName: "fullScreen" }] : /* istanbul ignore next */ []));
1165
- // eslint-disable-next-line @angular-eslint/no-input-rename
1166
- activeIndexInput = input(0, { ...(ngDevMode ? { debugName: "activeIndexInput" } : /* istanbul ignore next */ {}), alias: 'activeIndex' });
1167
- maskHide = output();
1168
- activeItemChange = output();
1169
- closeButton = viewChild('closeButton', /* @ts-ignore */
1170
- ...(ngDevMode ? [{ debugName: "closeButton" }] : /* istanbul ignore next */ []));
1171
- _componentStyle = inject(GalleriaStyle);
1172
- $pcGalleria = inject(GALLERIA_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
1173
- _generatedId = uuid('pn_id_');
1174
- id = computed(() => this.galleria.id() || this._generatedId, /* @ts-ignore */
1175
- ...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
1176
- _activeIndex = linkedSignal(() => this.activeIndexInput(), /* @ts-ignore */
1177
- ...(ngDevMode ? [{ debugName: "_activeIndex" }] : /* istanbul ignore next */ []));
1178
- slideShowActive = true;
1179
- interval;
1180
- hostStyle = computed(() => (!this.galleria.fullScreen() ? this.galleria.containerStyle() : {}), /* @ts-ignore */
1181
- ...(ngDevMode ? [{ debugName: "hostStyle" }] : /* istanbul ignore next */ []));
1182
- contentAriaLive = computed(() => (this.galleria.autoPlay() ? 'polite' : 'off'), /* @ts-ignore */
1183
- ...(ngDevMode ? [{ debugName: "contentAriaLive" }] : /* istanbul ignore next */ []));
1184
- isVertical = computed(() => this.galleria.thumbnailsPosition() === 'left' || this.galleria.thumbnailsPosition() === 'right', /* @ts-ignore */
1185
- ...(ngDevMode ? [{ debugName: "isVertical" }] : /* istanbul ignore next */ []));
1186
- hasValue = computed(() => {
1187
- const val = this.value();
1188
- return val && val.length > 0;
1189
- }, /* @ts-ignore */
1190
- ...(ngDevMode ? [{ debugName: "hasValue" }] : /* istanbul ignore next */ []));
1191
- onAfterViewChecked() {
1192
- this.bindDirectiveInstance.setAttrs(this.getPTOptions('root'));
1193
- }
1194
- // For custom fullscreen
1195
- handleFullscreenChange() {
1196
- if (document?.fullscreenElement === this.el.nativeElement?.children[0]) {
1197
- this.fullScreen.set(true);
1198
- }
1199
- else {
1200
- this.fullScreen.set(false);
1201
- }
1202
- }
1203
- shouldRenderHeader() {
1204
- return !!this.galleria.headerTemplate();
1205
- }
1206
- shouldRenderFooter() {
1207
- return !!this.galleria.footerTemplate();
1208
- }
1209
- startSlideShow() {
1210
- if (isPlatformBrowser(this.galleria.platformId)) {
1211
- if (this.interval) {
1212
- clearInterval(this.interval);
1213
- }
1214
- this.interval = setInterval(() => {
1215
- let activeIndex = this.galleria.circular() && this.value().length - 1 === this._activeIndex() ? 0 : this._activeIndex() + 1;
1216
- this.onActiveIndexChange(activeIndex);
1217
- this._activeIndex.set(activeIndex);
1218
- }, this.galleria.transitionInterval());
1219
- this.slideShowActive = true;
1220
- }
1221
- }
1222
- stopSlideShow() {
1223
- if (this.galleria.autoPlay() && !this.galleria.shouldStopAutoplayByClick()) {
1224
- return;
1225
- }
1226
- if (this.interval) {
1227
- clearInterval(this.interval);
1228
- }
1229
- this.slideShowActive = false;
1230
- }
1231
- getPositionClass(preClassName, position) {
1232
- const positions = ['top', 'left', 'bottom', 'right'];
1233
- const pos = positions.find((item) => item === position);
1234
- return pos ? `${preClassName}-${pos}` : '';
1235
- }
1236
- onActiveIndexChange(index) {
1237
- if (this._activeIndex() !== index) {
1238
- this._activeIndex.set(index);
1239
- this.activeItemChange.emit(this._activeIndex());
1240
- }
1241
- }
1242
- closeAriaLabel() {
1243
- return this.config.translation.aria ? this.config.translation.aria.close : undefined;
1244
- }
1245
- onDestroy() {
1246
- if (this.interval) {
1247
- clearInterval(this.interval);
1248
- this.interval = null;
1249
- }
1250
- }
1251
- getPTOptions(key) {
1252
- return this.ptm(key, {
1253
- context: {
1254
- pt: this.pt(),
1255
- unstyled: this.unstyled()
1256
- }
1257
- });
1258
- }
1259
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: GalleriaContent, deps: null, target: i0.ɵɵFactoryTarget.Component });
1260
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: GalleriaContent, isStandalone: true, selector: "div[pGalleriaContent]", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, numVisible: { classPropertyName: "numVisible", publicName: "numVisible", isSignal: true, isRequired: false, transformFunction: null }, fullScreen: { classPropertyName: "fullScreen", publicName: "fullScreen", isSignal: true, isRequired: false, transformFunction: null }, activeIndexInput: { classPropertyName: "activeIndexInput", publicName: "activeIndex", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { fullScreen: "fullScreenChange", maskHide: "maskHide", activeItemChange: "activeItemChange" }, host: { listeners: { "document:fullscreenchange": "handleFullscreenChange()" }, properties: { "attr.id": "id()", "attr.role": "\"region\"", "style": "hostStyle()", "class": "cx('root')" } }, providers: [GalleriaStyle], viewQueries: [{ propertyName: "closeButton", first: true, predicate: ["closeButton"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
1445
+ changeDetection: ChangeDetectionStrategy.OnPush,
1446
+ providers: [GalleriaStyle],
1447
+ host: { "[class]": "cx(\"thumbnails\")" },
1448
+ hostDirectives: [Bind]
1449
+ }]
1450
+ }],
1451
+ propDecorators: {
1452
+ containerId: [{
1453
+ type: i0.Input,
1454
+ args: [{
1455
+ isSignal: true,
1456
+ alias: "containerId",
1457
+ required: false
1458
+ }]
1459
+ }],
1460
+ value: [{
1461
+ type: i0.Input,
1462
+ args: [{
1463
+ isSignal: true,
1464
+ alias: "value",
1465
+ required: false
1466
+ }]
1467
+ }],
1468
+ isVertical: [{
1469
+ type: i0.Input,
1470
+ args: [{
1471
+ isSignal: true,
1472
+ alias: "isVertical",
1473
+ required: false
1474
+ }]
1475
+ }],
1476
+ slideShowActive: [{
1477
+ type: i0.Input,
1478
+ args: [{
1479
+ isSignal: true,
1480
+ alias: "slideShowActive",
1481
+ required: false
1482
+ }]
1483
+ }],
1484
+ circular: [{
1485
+ type: i0.Input,
1486
+ args: [{
1487
+ isSignal: true,
1488
+ alias: "circular",
1489
+ required: false
1490
+ }]
1491
+ }],
1492
+ responsiveOptions: [{
1493
+ type: i0.Input,
1494
+ args: [{
1495
+ isSignal: true,
1496
+ alias: "responsiveOptions",
1497
+ required: false
1498
+ }]
1499
+ }],
1500
+ contentHeight: [{
1501
+ type: i0.Input,
1502
+ args: [{
1503
+ isSignal: true,
1504
+ alias: "contentHeight",
1505
+ required: false
1506
+ }]
1507
+ }],
1508
+ showThumbnailNavigators: [{
1509
+ type: i0.Input,
1510
+ args: [{
1511
+ isSignal: true,
1512
+ alias: "showThumbnailNavigators",
1513
+ required: false
1514
+ }]
1515
+ }],
1516
+ numVisibleInput: [{
1517
+ type: i0.Input,
1518
+ args: [{
1519
+ isSignal: true,
1520
+ alias: "numVisible",
1521
+ required: false
1522
+ }]
1523
+ }],
1524
+ activeIndexInput: [{
1525
+ type: i0.Input,
1526
+ args: [{
1527
+ isSignal: true,
1528
+ alias: "activeIndex",
1529
+ required: false
1530
+ }]
1531
+ }],
1532
+ onActiveIndexChange: [{
1533
+ type: i0.Output,
1534
+ args: ["onActiveIndexChange"]
1535
+ }],
1536
+ stopSlideShow: [{
1537
+ type: i0.Output,
1538
+ args: ["stopSlideShow"]
1539
+ }],
1540
+ itemsContainer: [{
1541
+ type: i0.ViewChild,
1542
+ args: ["itemsContainer", { isSignal: true }]
1543
+ }]
1544
+ }
1545
+ });
1546
+ var GalleriaContent = class GalleriaContent extends BaseComponent {
1547
+ hostName = "Galleria";
1548
+ galleria = inject(GALLERIA_INSTANCE);
1549
+ bindDirectiveInstance = inject(Bind, { self: true });
1550
+ value = input([], ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
1551
+ numVisible = input(3, ...ngDevMode ? [{ debugName: "numVisible" }] : /* istanbul ignore next */ []);
1552
+ fullScreen = model(false, ...ngDevMode ? [{ debugName: "fullScreen" }] : /* istanbul ignore next */ []);
1553
+ activeIndexInput = input(0, {
1554
+ ...ngDevMode ? { debugName: "activeIndexInput" } : /* istanbul ignore next */ {},
1555
+ alias: "activeIndex"
1556
+ });
1557
+ maskHide = output();
1558
+ activeItemChange = output();
1559
+ closeButton = viewChild("closeButton", ...ngDevMode ? [{ debugName: "closeButton" }] : /* istanbul ignore next */ []);
1560
+ _componentStyle = inject(GalleriaStyle);
1561
+ $pcGalleria = inject(GALLERIA_INSTANCE, {
1562
+ optional: true,
1563
+ skipSelf: true
1564
+ }) ?? void 0;
1565
+ _generatedId = this.$useId.next("pn_id_");
1566
+ id = computed(() => this.galleria.id() || this._generatedId, ...ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []);
1567
+ _activeIndex = linkedSignal(() => this.activeIndexInput(), ...ngDevMode ? [{ debugName: "_activeIndex" }] : /* istanbul ignore next */ []);
1568
+ slideShowActive = true;
1569
+ interval;
1570
+ hostStyle = computed(() => !this.galleria.fullScreen() ? this.galleria.containerStyle() : {}, ...ngDevMode ? [{ debugName: "hostStyle" }] : /* istanbul ignore next */ []);
1571
+ contentAriaLive = computed(() => this.galleria.autoPlay() ? "polite" : "off", ...ngDevMode ? [{ debugName: "contentAriaLive" }] : /* istanbul ignore next */ []);
1572
+ isVertical = computed(() => this.galleria.thumbnailsPosition() === "left" || this.galleria.thumbnailsPosition() === "right", ...ngDevMode ? [{ debugName: "isVertical" }] : /* istanbul ignore next */ []);
1573
+ hasValue = computed(() => {
1574
+ const val = this.value();
1575
+ return val && val.length > 0;
1576
+ }, ...ngDevMode ? [{ debugName: "hasValue" }] : /* istanbul ignore next */ []);
1577
+ onAfterViewChecked() {
1578
+ this.bindDirectiveInstance.setAttrs(this.getPTOptions("root"));
1579
+ }
1580
+ handleFullscreenChange() {
1581
+ if (document?.fullscreenElement === this.el.nativeElement?.children[0]) this.fullScreen.set(true);
1582
+ else this.fullScreen.set(false);
1583
+ }
1584
+ shouldRenderHeader() {
1585
+ return !!this.galleria.headerTemplate();
1586
+ }
1587
+ shouldRenderFooter() {
1588
+ return !!this.galleria.footerTemplate();
1589
+ }
1590
+ startSlideShow() {
1591
+ if (isPlatformBrowser(this.galleria.platformId)) {
1592
+ if (this.interval) clearInterval(this.interval);
1593
+ this.interval = setInterval(() => {
1594
+ let activeIndex = this.galleria.circular() && this.value().length - 1 === this._activeIndex() ? 0 : this._activeIndex() + 1;
1595
+ this.onActiveIndexChange(activeIndex);
1596
+ this._activeIndex.set(activeIndex);
1597
+ }, this.galleria.transitionInterval());
1598
+ this.slideShowActive = true;
1599
+ }
1600
+ }
1601
+ stopSlideShow() {
1602
+ if (this.galleria.autoPlay() && !this.galleria.shouldStopAutoplayByClick()) return;
1603
+ if (this.interval) clearInterval(this.interval);
1604
+ this.slideShowActive = false;
1605
+ }
1606
+ getPositionClass(preClassName, position) {
1607
+ const pos = [
1608
+ "top",
1609
+ "left",
1610
+ "bottom",
1611
+ "right"
1612
+ ].find((item) => item === position);
1613
+ return pos ? `${preClassName}-${pos}` : "";
1614
+ }
1615
+ onActiveIndexChange(index) {
1616
+ if (this._activeIndex() !== index) {
1617
+ this._activeIndex.set(index);
1618
+ this.activeItemChange.emit(this._activeIndex());
1619
+ }
1620
+ }
1621
+ closeAriaLabel() {
1622
+ return this.config.translation.aria ? this.config.translation.aria.close : void 0;
1623
+ }
1624
+ onDestroy() {
1625
+ if (this.interval) {
1626
+ clearInterval(this.interval);
1627
+ this.interval = null;
1628
+ }
1629
+ }
1630
+ getPTOptions(key) {
1631
+ return this.ptm(key, { context: {
1632
+ pt: this.pt(),
1633
+ unstyled: this.unstyled()
1634
+ } });
1635
+ }
1636
+ static ɵfac = i0.ɵɵngDeclareFactory({
1637
+ minVersion: "12.0.0",
1638
+ version: "22.2.3",
1639
+ ngImport: i0,
1640
+ type: GalleriaContent,
1641
+ deps: null,
1642
+ target: i0.ɵɵFactoryTarget.Component
1643
+ });
1644
+ static ɵcmp = i0.ɵɵngDeclareComponent({
1645
+ minVersion: "17.0.0",
1646
+ version: "22.2.3",
1647
+ type: GalleriaContent,
1648
+ isStandalone: true,
1649
+ selector: "div[pGalleriaContent]",
1650
+ inputs: {
1651
+ value: {
1652
+ classPropertyName: "value",
1653
+ publicName: "value",
1654
+ isSignal: true,
1655
+ isRequired: false,
1656
+ transformFunction: null
1657
+ },
1658
+ numVisible: {
1659
+ classPropertyName: "numVisible",
1660
+ publicName: "numVisible",
1661
+ isSignal: true,
1662
+ isRequired: false,
1663
+ transformFunction: null
1664
+ },
1665
+ fullScreen: {
1666
+ classPropertyName: "fullScreen",
1667
+ publicName: "fullScreen",
1668
+ isSignal: true,
1669
+ isRequired: false,
1670
+ transformFunction: null
1671
+ },
1672
+ activeIndexInput: {
1673
+ classPropertyName: "activeIndexInput",
1674
+ publicName: "activeIndex",
1675
+ isSignal: true,
1676
+ isRequired: false,
1677
+ transformFunction: null
1678
+ }
1679
+ },
1680
+ outputs: {
1681
+ fullScreen: "fullScreenChange",
1682
+ maskHide: "maskHide",
1683
+ activeItemChange: "activeItemChange"
1684
+ },
1685
+ host: {
1686
+ listeners: { "document:fullscreenchange": "handleFullscreenChange()" },
1687
+ properties: {
1688
+ "attr.id": "id()",
1689
+ "attr.role": "\"region\"",
1690
+ "style": "hostStyle()",
1691
+ "class": "cx('root')"
1692
+ }
1693
+ },
1694
+ providers: [GalleriaStyle],
1695
+ viewQueries: [{
1696
+ propertyName: "closeButton",
1697
+ first: true,
1698
+ predicate: ["closeButton"],
1699
+ descendants: true,
1700
+ isSignal: true
1701
+ }],
1702
+ usesInheritance: true,
1703
+ hostDirectives: [{ directive: i1.Bind }],
1704
+ ngImport: i0,
1705
+ template: `
1261
1706
  @if (hasValue()) {
1262
1707
  @if (galleria.fullScreen()) {
1263
1708
  <button type="button" [pBind]="getPTOptions('closeButton')" [class]="cx('closeButton')" (click)="maskHide.emit(true)" [attr.aria-label]="closeAriaLabel()">
@@ -1314,15 +1759,106 @@ class GalleriaContent extends BaseComponent {
1314
1759
  <div pGalleriaItemSlot [pBind]="getPTOptions('footer')" [class]="cx('footer')" type="footer" [unstyled]="unstyled()"></div>
1315
1760
  }
1316
1761
  }
1317
- `, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: BindModule }, { kind: "directive", type: i1.Bind, selector: "[pBind]", inputs: ["pBind"] }, { kind: "component", type: Times, selector: "svg[data-p-icon=\"times\"]" }, { kind: "component", type: GalleriaItemSlot, selector: "div[pGalleriaItemSlot]", inputs: ["index", "item", "type"] }, { kind: "component", type: GalleriaItem, selector: "div[pGalleriaItem]", inputs: ["id", "circular", "value", "showItemNavigators", "showIndicators", "slideShowActive", "changeItemOnIndicatorHover", "autoPlay", "activeIndex"], outputs: ["startSlideShow", "stopSlideShow", "onActiveIndexChange"] }, { kind: "component", type: GalleriaThumbnails, selector: "div[pGalleriaThumbnails]", inputs: ["containerId", "value", "isVertical", "slideShowActive", "circular", "responsiveOptions", "contentHeight", "showThumbnailNavigators", "numVisible", "activeIndex"], outputs: ["onActiveIndexChange", "stopSlideShow"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1318
- }
1319
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: GalleriaContent, decorators: [{
1320
- type: Component,
1321
- args: [{
1322
- selector: 'div[pGalleriaContent]',
1323
- standalone: true,
1324
- imports: [NgTemplateOutlet, BindModule, Times, GalleriaItemSlot, GalleriaItem, GalleriaThumbnails],
1325
- template: `
1762
+ `,
1763
+ isInline: true,
1764
+ dependencies: [
1765
+ {
1766
+ kind: "directive",
1767
+ type: NgTemplateOutlet,
1768
+ selector: "[ngTemplateOutlet]",
1769
+ inputs: [
1770
+ "ngTemplateOutletContext",
1771
+ "ngTemplateOutlet",
1772
+ "ngTemplateOutletInjector"
1773
+ ]
1774
+ },
1775
+ {
1776
+ kind: "ngmodule",
1777
+ type: BindModule
1778
+ },
1779
+ {
1780
+ kind: "directive",
1781
+ type: i1.Bind,
1782
+ selector: "[pBind]",
1783
+ inputs: ["pBind"]
1784
+ },
1785
+ {
1786
+ kind: "component",
1787
+ type: Times,
1788
+ selector: "svg[data-p-icon=\"times\"]"
1789
+ },
1790
+ {
1791
+ kind: "component",
1792
+ type: GalleriaItemSlot,
1793
+ selector: "div[pGalleriaItemSlot]",
1794
+ inputs: [
1795
+ "index",
1796
+ "item",
1797
+ "type"
1798
+ ]
1799
+ },
1800
+ {
1801
+ kind: "component",
1802
+ type: GalleriaItem,
1803
+ selector: "div[pGalleriaItem]",
1804
+ inputs: [
1805
+ "id",
1806
+ "circular",
1807
+ "value",
1808
+ "showItemNavigators",
1809
+ "showIndicators",
1810
+ "slideShowActive",
1811
+ "changeItemOnIndicatorHover",
1812
+ "autoPlay",
1813
+ "activeIndex"
1814
+ ],
1815
+ outputs: [
1816
+ "startSlideShow",
1817
+ "stopSlideShow",
1818
+ "onActiveIndexChange"
1819
+ ]
1820
+ },
1821
+ {
1822
+ kind: "component",
1823
+ type: GalleriaThumbnails,
1824
+ selector: "div[pGalleriaThumbnails]",
1825
+ inputs: [
1826
+ "containerId",
1827
+ "value",
1828
+ "isVertical",
1829
+ "slideShowActive",
1830
+ "circular",
1831
+ "responsiveOptions",
1832
+ "contentHeight",
1833
+ "showThumbnailNavigators",
1834
+ "numVisible",
1835
+ "activeIndex"
1836
+ ],
1837
+ outputs: ["onActiveIndexChange", "stopSlideShow"]
1838
+ }
1839
+ ],
1840
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
1841
+ });
1842
+ };
1843
+ i0.ɵɵngDeclareClassMetadata({
1844
+ minVersion: "12.0.0",
1845
+ version: "22.2.3",
1846
+ ngImport: i0,
1847
+ type: GalleriaContent,
1848
+ decorators: [{
1849
+ type: Component,
1850
+ args: [{
1851
+ selector: "div[pGalleriaContent]",
1852
+ standalone: true,
1853
+ imports: [
1854
+ NgTemplateOutlet,
1855
+ BindModule,
1856
+ Times,
1857
+ GalleriaItemSlot,
1858
+ GalleriaItem,
1859
+ GalleriaThumbnails
1860
+ ],
1861
+ template: `
1326
1862
  @if (hasValue()) {
1327
1863
  @if (galleria.fullScreen()) {
1328
1864
  <button type="button" [pBind]="getPTOptions('closeButton')" [class]="cx('closeButton')" (click)="maskHide.emit(true)" [attr.aria-label]="closeAriaLabel()">
@@ -1380,357 +1916,574 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
1380
1916
  }
1381
1917
  }
1382
1918
  `,
1383
- changeDetection: ChangeDetectionStrategy.OnPush,
1384
- providers: [GalleriaStyle],
1385
- host: {
1386
- '[attr.id]': 'id()',
1387
- '[attr.role]': '"region"',
1388
- '[style]': 'hostStyle()',
1389
- '[class]': "cx('root')"
1390
- },
1391
- hostDirectives: [Bind]
1392
- }]
1393
- }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], numVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "numVisible", required: false }] }], fullScreen: [{ type: i0.Input, args: [{ isSignal: true, alias: "fullScreen", required: false }] }, { type: i0.Output, args: ["fullScreenChange"] }], activeIndexInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeIndex", required: false }] }], maskHide: [{ type: i0.Output, args: ["maskHide"] }], activeItemChange: [{ type: i0.Output, args: ["activeItemChange"] }], closeButton: [{ type: i0.ViewChild, args: ['closeButton', { isSignal: true }] }], handleFullscreenChange: [{
1394
- type: HostListener,
1395
- args: ['document:fullscreenchange']
1396
- }] } });
1397
-
1398
- /**
1399
- * Galleria is an advanced content gallery component.
1400
- * @group Components
1401
- * @deprecated Use Gallery component instead.
1402
- */
1403
- class Galleria extends BaseComponent {
1404
- componentName = 'Galleria';
1405
- bindDirectiveInstance = inject(Bind, { self: true });
1406
- $pcGalleria = inject(GALLERIA_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
1407
- /**
1408
- * Index of the first item.
1409
- * @group Props
1410
- */
1411
- activeIndex = input(0, { ...(ngDevMode ? { debugName: "activeIndex" } : /* istanbul ignore next */ {}), transform: numberAttribute });
1412
- /**
1413
- * Whether to display the component on fullscreen.
1414
- * @group Props
1415
- */
1416
- fullScreen = input(false, { ...(ngDevMode ? { debugName: "fullScreen" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1417
- /**
1418
- * Unique identifier of the element.
1419
- * @group Props
1420
- */
1421
- id = input(/* @ts-ignore */
1422
- ...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
1423
- /**
1424
- * An array of objects to display.
1425
- * @group Props
1426
- */
1427
- value = input(/* @ts-ignore */
1428
- ...(ngDevMode ? [undefined, { debugName: "value" }] : /* istanbul ignore next */ []));
1429
- /**
1430
- * Number of items per page.
1431
- * @group Props
1432
- */
1433
- numVisible = input(3, { ...(ngDevMode ? { debugName: "numVisible" } : /* istanbul ignore next */ {}), transform: numberAttribute });
1434
- /**
1435
- * An array of options for responsive design.
1436
- * @see {GalleriaResponsiveOptions}
1437
- * @group Props
1438
- */
1439
- responsiveOptions = input(/* @ts-ignore */
1440
- ...(ngDevMode ? [undefined, { debugName: "responsiveOptions" }] : /* istanbul ignore next */ []));
1441
- /**
1442
- * Whether to display navigation buttons in item section.
1443
- * @group Props
1444
- */
1445
- showItemNavigators = input(false, { ...(ngDevMode ? { debugName: "showItemNavigators" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1446
- /**
1447
- * Whether to display navigation buttons in thumbnail container.
1448
- * @group Props
1449
- */
1450
- showThumbnailNavigators = input(true, { ...(ngDevMode ? { debugName: "showThumbnailNavigators" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1451
- /**
1452
- * Whether to display navigation buttons on item hover.
1453
- * @group Props
1454
- */
1455
- showItemNavigatorsOnHover = input(false, { ...(ngDevMode ? { debugName: "showItemNavigatorsOnHover" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1456
- /**
1457
- * When enabled, item is changed on indicator hover.
1458
- * @group Props
1459
- */
1460
- changeItemOnIndicatorHover = input(false, { ...(ngDevMode ? { debugName: "changeItemOnIndicatorHover" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1461
- /**
1462
- * Defines if scrolling would be infinite.
1463
- * @group Props
1464
- */
1465
- circular = input(false, { ...(ngDevMode ? { debugName: "circular" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1466
- /**
1467
- * Items are displayed with a slideshow in autoPlay mode.
1468
- * @group Props
1469
- */
1470
- autoPlay = input(false, { ...(ngDevMode ? { debugName: "autoPlay" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1471
- /**
1472
- * When enabled, autorun should stop by click.
1473
- * @group Props
1474
- */
1475
- shouldStopAutoplayByClick = input(true, { ...(ngDevMode ? { debugName: "shouldStopAutoplayByClick" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1476
- /**
1477
- * Time in milliseconds to scroll items.
1478
- * @group Props
1479
- */
1480
- transitionInterval = input(4000, { ...(ngDevMode ? { debugName: "transitionInterval" } : /* istanbul ignore next */ {}), transform: numberAttribute });
1481
- /**
1482
- * Whether to display thumbnail container.
1483
- * @group Props
1484
- */
1485
- showThumbnails = input(true, { ...(ngDevMode ? { debugName: "showThumbnails" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1486
- /**
1487
- * Position of thumbnails.
1488
- * @group Props
1489
- */
1490
- thumbnailsPosition = input('bottom', /* @ts-ignore */
1491
- ...(ngDevMode ? [{ debugName: "thumbnailsPosition" }] : /* istanbul ignore next */ []));
1492
- /**
1493
- * Height of the viewport in vertical thumbnail.
1494
- * @group Props
1495
- */
1496
- verticalThumbnailViewPortHeight = input('300px', /* @ts-ignore */
1497
- ...(ngDevMode ? [{ debugName: "verticalThumbnailViewPortHeight" }] : /* istanbul ignore next */ []));
1498
- /**
1499
- * Whether to display indicator container.
1500
- * @group Props
1501
- */
1502
- showIndicators = input(false, { ...(ngDevMode ? { debugName: "showIndicators" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1503
- /**
1504
- * When enabled, indicator container is displayed on item container.
1505
- * @group Props
1506
- */
1507
- showIndicatorsOnItem = input(false, { ...(ngDevMode ? { debugName: "showIndicatorsOnItem" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1508
- /**
1509
- * Position of indicators.
1510
- * @group Props
1511
- */
1512
- indicatorsPosition = input('bottom', /* @ts-ignore */
1513
- ...(ngDevMode ? [{ debugName: "indicatorsPosition" }] : /* istanbul ignore next */ []));
1514
- /**
1515
- * Base zIndex value to use in layering.
1516
- * @group Props
1517
- */
1518
- baseZIndex = input(0, { ...(ngDevMode ? { debugName: "baseZIndex" } : /* istanbul ignore next */ {}), transform: numberAttribute });
1519
- /**
1520
- * Style class of the mask on fullscreen mode.
1521
- * @group Props
1522
- */
1523
- maskClass = input(/* @ts-ignore */
1524
- ...(ngDevMode ? [undefined, { debugName: "maskClass" }] : /* istanbul ignore next */ []));
1525
- /**
1526
- * Style class of the component on fullscreen mode. Otherwise, the 'class' property can be used.
1527
- * @group Props
1528
- */
1529
- containerClass = input(/* @ts-ignore */
1530
- ...(ngDevMode ? [undefined, { debugName: "containerClass" }] : /* istanbul ignore next */ []));
1531
- /**
1532
- * Inline style of the component on fullscreen mode. Otherwise, the 'style' property can be used.
1533
- * @group Props
1534
- */
1535
- containerStyle = input(/* @ts-ignore */
1536
- ...(ngDevMode ? [undefined, { debugName: "containerStyle" }] : /* istanbul ignore next */ []));
1537
- /**
1538
- * The motion options.
1539
- * @group Props
1540
- */
1541
- motionOptions = input(/* @ts-ignore */
1542
- ...(ngDevMode ? [undefined, { debugName: "motionOptions" }] : /* istanbul ignore next */ []));
1543
- computedMotionOptions = computed(() => ({
1544
- ...this.ptm('motion'),
1545
- ...this.motionOptions()
1546
- }), /* @ts-ignore */
1547
- ...(ngDevMode ? [{ debugName: "computedMotionOptions" }] : /* istanbul ignore next */ []));
1548
- /**
1549
- * The mask motion options.
1550
- * @group Props
1551
- */
1552
- maskMotionOptions = input(/* @ts-ignore */
1553
- ...(ngDevMode ? [undefined, { debugName: "maskMotionOptions" }] : /* istanbul ignore next */ []));
1554
- computedMaskMotionOptions = computed(() => ({
1555
- ...this.ptm('maskMotion'),
1556
- ...this.maskMotionOptions()
1557
- }), /* @ts-ignore */
1558
- ...(ngDevMode ? [{ debugName: "computedMaskMotionOptions" }] : /* istanbul ignore next */ []));
1559
- maskEnterActiveClass = computed(() => (this.fullScreen() ? 'p-overlay-mask-enter-active' : ''), /* @ts-ignore */
1560
- ...(ngDevMode ? [{ debugName: "maskEnterActiveClass" }] : /* istanbul ignore next */ []));
1561
- maskLeaveActiveClass = computed(() => (this.fullScreen() ? 'p-overlay-mask-leave-active' : ''), /* @ts-ignore */
1562
- ...(ngDevMode ? [{ debugName: "maskLeaveActiveClass" }] : /* istanbul ignore next */ []));
1563
- maskRole = computed(() => (this.fullScreen() ? 'dialog' : 'region'), /* @ts-ignore */
1564
- ...(ngDevMode ? [{ debugName: "maskRole" }] : /* istanbul ignore next */ []));
1565
- maskAriaModal = computed(() => (this.fullScreen() ? 'true' : undefined), /* @ts-ignore */
1566
- ...(ngDevMode ? [{ debugName: "maskAriaModal" }] : /* istanbul ignore next */ []));
1567
- /**
1568
- * Specifies the visibility of the mask on fullscreen mode.
1569
- * @group Props
1570
- */
1571
- visible = model(false, /* @ts-ignore */
1572
- ...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
1573
- renderMask = signal(false, /* @ts-ignore */
1574
- ...(ngDevMode ? [{ debugName: "renderMask" }] : /* istanbul ignore next */ []));
1575
- renderContent = signal(false, /* @ts-ignore */
1576
- ...(ngDevMode ? [{ debugName: "renderContent" }] : /* istanbul ignore next */ []));
1577
- /**
1578
- * Callback to invoke on active index change.
1579
- * @param {number} number - Active index.
1580
- * @group Emits
1581
- */
1582
- activeIndexChange = output();
1583
- container = viewChild('container', /* @ts-ignore */
1584
- ...(ngDevMode ? [{ debugName: "container" }] : /* istanbul ignore next */ []));
1585
- _activeIndex = linkedSignal(() => this.activeIndex(), /* @ts-ignore */
1586
- ...(ngDevMode ? [{ debugName: "_activeIndex" }] : /* istanbul ignore next */ []));
1587
- /**
1588
- * Custom header template.
1589
- * @group Templates
1590
- */
1591
- headerTemplate = contentChild('header', { ...(ngDevMode ? { debugName: "headerTemplate" } : /* istanbul ignore next */ {}), descendants: false });
1592
- /**
1593
- * Custom footer template.
1594
- * @group Templates
1595
- */
1596
- footerTemplate = contentChild('footer', { ...(ngDevMode ? { debugName: "footerTemplate" } : /* istanbul ignore next */ {}), descendants: false });
1597
- /**
1598
- * Custom indicator template.
1599
- * @group Templates
1600
- */
1601
- indicatorTemplate = contentChild('indicator', { ...(ngDevMode ? { debugName: "indicatorTemplate" } : /* istanbul ignore next */ {}), descendants: false });
1602
- /**
1603
- * Custom caption template.
1604
- * @group Templates
1605
- */
1606
- captionTemplate = contentChild('caption', { ...(ngDevMode ? { debugName: "captionTemplate" } : /* istanbul ignore next */ {}), descendants: false });
1607
- /**
1608
- * Custom close icon template.
1609
- * @group Templates
1610
- */
1611
- closeIconTemplate = contentChild('closeicon', { ...(ngDevMode ? { debugName: "closeIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
1612
- /**
1613
- * Custom previous thumbnail icon template.
1614
- * @group Templates
1615
- */
1616
- previousThumbnailIconTemplate = contentChild('previousthumbnailicon', { ...(ngDevMode ? { debugName: "previousThumbnailIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
1617
- /**
1618
- * Custom next thumbnail icon template.
1619
- * @group Templates
1620
- */
1621
- nextThumbnailIconTemplate = contentChild('nextthumbnailicon', { ...(ngDevMode ? { debugName: "nextThumbnailIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
1622
- /**
1623
- * Custom item previous icon template.
1624
- * @group Templates
1625
- */
1626
- itemPreviousIconTemplate = contentChild('itempreviousicon', { ...(ngDevMode ? { debugName: "itemPreviousIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
1627
- /**
1628
- * Custom item next icon template.
1629
- * @group Templates
1630
- */
1631
- itemNextIconTemplate = contentChild('itemnexticon', { ...(ngDevMode ? { debugName: "itemNextIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
1632
- /**
1633
- * Custom item template.
1634
- * @group Templates
1635
- */
1636
- itemTemplate = contentChild('item', { ...(ngDevMode ? { debugName: "itemTemplate" } : /* istanbul ignore next */ {}), descendants: false });
1637
- /**
1638
- * Custom thumbnail template.
1639
- * @group Templates
1640
- */
1641
- thumbnailTemplate = contentChild('thumbnail', { ...(ngDevMode ? { debugName: "thumbnailTemplate" } : /* istanbul ignore next */ {}), descendants: false });
1642
- maskVisible = false;
1643
- numVisibleLimit = signal(0, /* @ts-ignore */
1644
- ...(ngDevMode ? [{ debugName: "numVisibleLimit" }] : /* istanbul ignore next */ []));
1645
- d_numVisible = computed(() => this.numVisibleLimit() || this.numVisible(), /* @ts-ignore */
1646
- ...(ngDevMode ? [{ debugName: "d_numVisible" }] : /* istanbul ignore next */ []));
1647
- _componentStyle = inject(GalleriaStyle);
1648
- mask;
1649
- element = inject(ElementRef);
1650
- constructor() {
1651
- super();
1652
- // Effect for visible changes
1653
- effect(() => {
1654
- const isVisible = this.visible();
1655
- if (isVisible && !this.maskVisible) {
1656
- this.maskVisible = true;
1657
- this.renderMask.set(true);
1658
- this.renderContent.set(true);
1659
- }
1660
- else if (!isVisible && this.maskVisible) {
1661
- this.maskVisible = false;
1662
- }
1663
- });
1664
- // Effect for value changes
1665
- effect(() => {
1666
- const val = this.value();
1667
- if (val && val.length < this.numVisible()) {
1668
- this.numVisibleLimit.set(val.length);
1669
- }
1670
- else {
1671
- this.numVisibleLimit.set(0);
1672
- }
1673
- });
1674
- }
1675
- onAfterViewChecked() {
1676
- this.bindDirectiveInstance.setAttrs(this.ptm('host'));
1677
- }
1678
- onMaskHide(event) {
1679
- if (!event || event.target === event.currentTarget) {
1680
- this.visible.set(false);
1681
- }
1682
- }
1683
- onActiveItemChange(index) {
1684
- if (this._activeIndex() !== index) {
1685
- this._activeIndex.set(index);
1686
- this.activeIndexChange.emit(index);
1687
- }
1688
- }
1689
- onBeforeEnter(event) {
1690
- this.mask = event.element?.parentElement;
1691
- this.enableModality();
1692
- setTimeout(() => {
1693
- const focusTarget = findSingle(this.container()?.nativeElement, '[data-pc-section="closebutton"]');
1694
- if (focusTarget)
1695
- focus(focusTarget);
1696
- }, 25);
1697
- }
1698
- onBeforeLeave() {
1699
- if (this.mask) {
1700
- this.maskVisible = false;
1701
- }
1702
- }
1703
- onAfterLeave() {
1704
- this.disableModality();
1705
- this.renderContent.set(false);
1706
- }
1707
- onMaskAfterLeave() {
1708
- if (!this.renderContent()) {
1709
- this.renderMask.set(false);
1710
- }
1711
- }
1712
- enableModality() {
1713
- blockBodyScroll();
1714
- if (this.mask) {
1715
- ZIndexUtils.set('modal', this.mask, this.baseZIndex() || this.config.zIndex.modal);
1716
- }
1717
- }
1718
- disableModality() {
1719
- unblockBodyScroll();
1720
- if (this.mask) {
1721
- ZIndexUtils.clear(this.mask);
1722
- }
1723
- }
1724
- onDestroy() {
1725
- if (this.fullScreen()) {
1726
- removeClass(this.document.body, 'p-overflow-hidden');
1727
- }
1728
- if (this.mask) {
1729
- this.disableModality();
1730
- }
1731
- }
1732
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: Galleria, deps: [], target: i0.ɵɵFactoryTarget.Component });
1733
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.5", type: Galleria, isStandalone: true, selector: "p-galleria", inputs: { activeIndex: { classPropertyName: "activeIndex", publicName: "activeIndex", isSignal: true, isRequired: false, transformFunction: null }, fullScreen: { classPropertyName: "fullScreen", publicName: "fullScreen", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, numVisible: { classPropertyName: "numVisible", publicName: "numVisible", isSignal: true, isRequired: false, transformFunction: null }, responsiveOptions: { classPropertyName: "responsiveOptions", publicName: "responsiveOptions", isSignal: true, isRequired: false, transformFunction: null }, showItemNavigators: { classPropertyName: "showItemNavigators", publicName: "showItemNavigators", isSignal: true, isRequired: false, transformFunction: null }, showThumbnailNavigators: { classPropertyName: "showThumbnailNavigators", publicName: "showThumbnailNavigators", isSignal: true, isRequired: false, transformFunction: null }, showItemNavigatorsOnHover: { classPropertyName: "showItemNavigatorsOnHover", publicName: "showItemNavigatorsOnHover", isSignal: true, isRequired: false, transformFunction: null }, changeItemOnIndicatorHover: { classPropertyName: "changeItemOnIndicatorHover", publicName: "changeItemOnIndicatorHover", isSignal: true, isRequired: false, transformFunction: null }, circular: { classPropertyName: "circular", publicName: "circular", isSignal: true, isRequired: false, transformFunction: null }, autoPlay: { classPropertyName: "autoPlay", publicName: "autoPlay", isSignal: true, isRequired: false, transformFunction: null }, shouldStopAutoplayByClick: { classPropertyName: "shouldStopAutoplayByClick", publicName: "shouldStopAutoplayByClick", isSignal: true, isRequired: false, transformFunction: null }, transitionInterval: { classPropertyName: "transitionInterval", publicName: "transitionInterval", isSignal: true, isRequired: false, transformFunction: null }, showThumbnails: { classPropertyName: "showThumbnails", publicName: "showThumbnails", isSignal: true, isRequired: false, transformFunction: null }, thumbnailsPosition: { classPropertyName: "thumbnailsPosition", publicName: "thumbnailsPosition", isSignal: true, isRequired: false, transformFunction: null }, verticalThumbnailViewPortHeight: { classPropertyName: "verticalThumbnailViewPortHeight", publicName: "verticalThumbnailViewPortHeight", isSignal: true, isRequired: false, transformFunction: null }, showIndicators: { classPropertyName: "showIndicators", publicName: "showIndicators", isSignal: true, isRequired: false, transformFunction: null }, showIndicatorsOnItem: { classPropertyName: "showIndicatorsOnItem", publicName: "showIndicatorsOnItem", isSignal: true, isRequired: false, transformFunction: null }, indicatorsPosition: { classPropertyName: "indicatorsPosition", publicName: "indicatorsPosition", isSignal: true, isRequired: false, transformFunction: null }, baseZIndex: { classPropertyName: "baseZIndex", publicName: "baseZIndex", isSignal: true, isRequired: false, transformFunction: null }, maskClass: { classPropertyName: "maskClass", publicName: "maskClass", isSignal: true, isRequired: false, transformFunction: null }, containerClass: { classPropertyName: "containerClass", publicName: "containerClass", isSignal: true, isRequired: false, transformFunction: null }, containerStyle: { classPropertyName: "containerStyle", publicName: "containerStyle", isSignal: true, isRequired: false, transformFunction: null }, motionOptions: { classPropertyName: "motionOptions", publicName: "motionOptions", isSignal: true, isRequired: false, transformFunction: null }, maskMotionOptions: { classPropertyName: "maskMotionOptions", publicName: "maskMotionOptions", isSignal: true, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visible: "visibleChange", activeIndexChange: "activeIndexChange" }, providers: [GalleriaStyle, { provide: GALLERIA_INSTANCE, useExisting: Galleria }, { provide: PARENT_INSTANCE, useExisting: Galleria }], queries: [{ propertyName: "headerTemplate", first: true, predicate: ["header"], isSignal: true }, { propertyName: "footerTemplate", first: true, predicate: ["footer"], isSignal: true }, { propertyName: "indicatorTemplate", first: true, predicate: ["indicator"], isSignal: true }, { propertyName: "captionTemplate", first: true, predicate: ["caption"], isSignal: true }, { propertyName: "closeIconTemplate", first: true, predicate: ["closeicon"], isSignal: true }, { propertyName: "previousThumbnailIconTemplate", first: true, predicate: ["previousthumbnailicon"], isSignal: true }, { propertyName: "nextThumbnailIconTemplate", first: true, predicate: ["nextthumbnailicon"], isSignal: true }, { propertyName: "itemPreviousIconTemplate", first: true, predicate: ["itempreviousicon"], isSignal: true }, { propertyName: "itemNextIconTemplate", first: true, predicate: ["itemnexticon"], isSignal: true }, { propertyName: "itemTemplate", first: true, predicate: ["item"], isSignal: true }, { propertyName: "thumbnailTemplate", first: true, predicate: ["thumbnail"], isSignal: true }], viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
1919
+ changeDetection: ChangeDetectionStrategy.OnPush,
1920
+ providers: [GalleriaStyle],
1921
+ host: {
1922
+ "[attr.id]": "id()",
1923
+ "[attr.role]": "\"region\"",
1924
+ "[style]": "hostStyle()",
1925
+ "[class]": "cx('root')"
1926
+ },
1927
+ hostDirectives: [Bind]
1928
+ }]
1929
+ }],
1930
+ propDecorators: {
1931
+ value: [{
1932
+ type: i0.Input,
1933
+ args: [{
1934
+ isSignal: true,
1935
+ alias: "value",
1936
+ required: false
1937
+ }]
1938
+ }],
1939
+ numVisible: [{
1940
+ type: i0.Input,
1941
+ args: [{
1942
+ isSignal: true,
1943
+ alias: "numVisible",
1944
+ required: false
1945
+ }]
1946
+ }],
1947
+ fullScreen: [{
1948
+ type: i0.Input,
1949
+ args: [{
1950
+ isSignal: true,
1951
+ alias: "fullScreen",
1952
+ required: false
1953
+ }]
1954
+ }, {
1955
+ type: i0.Output,
1956
+ args: ["fullScreenChange"]
1957
+ }],
1958
+ activeIndexInput: [{
1959
+ type: i0.Input,
1960
+ args: [{
1961
+ isSignal: true,
1962
+ alias: "activeIndex",
1963
+ required: false
1964
+ }]
1965
+ }],
1966
+ maskHide: [{
1967
+ type: i0.Output,
1968
+ args: ["maskHide"]
1969
+ }],
1970
+ activeItemChange: [{
1971
+ type: i0.Output,
1972
+ args: ["activeItemChange"]
1973
+ }],
1974
+ closeButton: [{
1975
+ type: i0.ViewChild,
1976
+ args: ["closeButton", { isSignal: true }]
1977
+ }],
1978
+ handleFullscreenChange: [{
1979
+ type: HostListener,
1980
+ args: ["document:fullscreenchange"]
1981
+ }]
1982
+ }
1983
+ });
1984
+ var Galleria = class Galleria extends BaseComponent {
1985
+ componentName = "Galleria";
1986
+ bindDirectiveInstance = inject(Bind, { self: true });
1987
+ $pcGalleria = inject(GALLERIA_INSTANCE, {
1988
+ optional: true,
1989
+ skipSelf: true
1990
+ }) ?? void 0;
1991
+ activeIndex = input(0, {
1992
+ ...ngDevMode ? { debugName: "activeIndex" } : /* istanbul ignore next */ {},
1993
+ transform: numberAttribute
1994
+ });
1995
+ fullScreen = input(false, {
1996
+ ...ngDevMode ? { debugName: "fullScreen" } : /* istanbul ignore next */ {},
1997
+ transform: booleanAttribute
1998
+ });
1999
+ id = input(...ngDevMode ? [void 0, { debugName: "id" }] : /* istanbul ignore next */ []);
2000
+ value = input(...ngDevMode ? [void 0, { debugName: "value" }] : /* istanbul ignore next */ []);
2001
+ numVisible = input(3, {
2002
+ ...ngDevMode ? { debugName: "numVisible" } : /* istanbul ignore next */ {},
2003
+ transform: numberAttribute
2004
+ });
2005
+ responsiveOptions = input(...ngDevMode ? [void 0, { debugName: "responsiveOptions" }] : /* istanbul ignore next */ []);
2006
+ showItemNavigators = input(false, {
2007
+ ...ngDevMode ? { debugName: "showItemNavigators" } : /* istanbul ignore next */ {},
2008
+ transform: booleanAttribute
2009
+ });
2010
+ showThumbnailNavigators = input(true, {
2011
+ ...ngDevMode ? { debugName: "showThumbnailNavigators" } : /* istanbul ignore next */ {},
2012
+ transform: booleanAttribute
2013
+ });
2014
+ showItemNavigatorsOnHover = input(false, {
2015
+ ...ngDevMode ? { debugName: "showItemNavigatorsOnHover" } : /* istanbul ignore next */ {},
2016
+ transform: booleanAttribute
2017
+ });
2018
+ changeItemOnIndicatorHover = input(false, {
2019
+ ...ngDevMode ? { debugName: "changeItemOnIndicatorHover" } : /* istanbul ignore next */ {},
2020
+ transform: booleanAttribute
2021
+ });
2022
+ circular = input(false, {
2023
+ ...ngDevMode ? { debugName: "circular" } : /* istanbul ignore next */ {},
2024
+ transform: booleanAttribute
2025
+ });
2026
+ autoPlay = input(false, {
2027
+ ...ngDevMode ? { debugName: "autoPlay" } : /* istanbul ignore next */ {},
2028
+ transform: booleanAttribute
2029
+ });
2030
+ shouldStopAutoplayByClick = input(true, {
2031
+ ...ngDevMode ? { debugName: "shouldStopAutoplayByClick" } : /* istanbul ignore next */ {},
2032
+ transform: booleanAttribute
2033
+ });
2034
+ transitionInterval = input(4e3, {
2035
+ ...ngDevMode ? { debugName: "transitionInterval" } : /* istanbul ignore next */ {},
2036
+ transform: numberAttribute
2037
+ });
2038
+ showThumbnails = input(true, {
2039
+ ...ngDevMode ? { debugName: "showThumbnails" } : /* istanbul ignore next */ {},
2040
+ transform: booleanAttribute
2041
+ });
2042
+ thumbnailsPosition = input("bottom", ...ngDevMode ? [{ debugName: "thumbnailsPosition" }] : /* istanbul ignore next */ []);
2043
+ verticalThumbnailViewPortHeight = input("300px", ...ngDevMode ? [{ debugName: "verticalThumbnailViewPortHeight" }] : /* istanbul ignore next */ []);
2044
+ showIndicators = input(false, {
2045
+ ...ngDevMode ? { debugName: "showIndicators" } : /* istanbul ignore next */ {},
2046
+ transform: booleanAttribute
2047
+ });
2048
+ showIndicatorsOnItem = input(false, {
2049
+ ...ngDevMode ? { debugName: "showIndicatorsOnItem" } : /* istanbul ignore next */ {},
2050
+ transform: booleanAttribute
2051
+ });
2052
+ indicatorsPosition = input("bottom", ...ngDevMode ? [{ debugName: "indicatorsPosition" }] : /* istanbul ignore next */ []);
2053
+ baseZIndex = input(0, {
2054
+ ...ngDevMode ? { debugName: "baseZIndex" } : /* istanbul ignore next */ {},
2055
+ transform: numberAttribute
2056
+ });
2057
+ maskClass = input(...ngDevMode ? [void 0, { debugName: "maskClass" }] : /* istanbul ignore next */ []);
2058
+ containerClass = input(...ngDevMode ? [void 0, { debugName: "containerClass" }] : /* istanbul ignore next */ []);
2059
+ containerStyle = input(...ngDevMode ? [void 0, { debugName: "containerStyle" }] : /* istanbul ignore next */ []);
2060
+ motionOptions = input(...ngDevMode ? [void 0, { debugName: "motionOptions" }] : /* istanbul ignore next */ []);
2061
+ computedMotionOptions = computed(() => ({
2062
+ ...this.ptm("motion"),
2063
+ ...this.motionOptions()
2064
+ }), ...ngDevMode ? [{ debugName: "computedMotionOptions" }] : /* istanbul ignore next */ []);
2065
+ maskMotionOptions = input(...ngDevMode ? [void 0, { debugName: "maskMotionOptions" }] : /* istanbul ignore next */ []);
2066
+ computedMaskMotionOptions = computed(() => ({
2067
+ ...this.ptm("maskMotion"),
2068
+ ...this.maskMotionOptions()
2069
+ }), ...ngDevMode ? [{ debugName: "computedMaskMotionOptions" }] : /* istanbul ignore next */ []);
2070
+ maskEnterActiveClass = computed(() => this.fullScreen() ? "p-overlay-mask-enter-active" : "", ...ngDevMode ? [{ debugName: "maskEnterActiveClass" }] : /* istanbul ignore next */ []);
2071
+ maskLeaveActiveClass = computed(() => this.fullScreen() ? "p-overlay-mask-leave-active" : "", ...ngDevMode ? [{ debugName: "maskLeaveActiveClass" }] : /* istanbul ignore next */ []);
2072
+ maskRole = computed(() => this.fullScreen() ? "dialog" : "region", ...ngDevMode ? [{ debugName: "maskRole" }] : /* istanbul ignore next */ []);
2073
+ maskAriaModal = computed(() => this.fullScreen() ? "true" : void 0, ...ngDevMode ? [{ debugName: "maskAriaModal" }] : /* istanbul ignore next */ []);
2074
+ visible = model(false, ...ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []);
2075
+ renderMask = signal(false, ...ngDevMode ? [{ debugName: "renderMask" }] : /* istanbul ignore next */ []);
2076
+ renderContent = signal(false, ...ngDevMode ? [{ debugName: "renderContent" }] : /* istanbul ignore next */ []);
2077
+ activeIndexChange = output();
2078
+ container = viewChild("container", ...ngDevMode ? [{ debugName: "container" }] : /* istanbul ignore next */ []);
2079
+ _activeIndex = linkedSignal(() => this.activeIndex(), ...ngDevMode ? [{ debugName: "_activeIndex" }] : /* istanbul ignore next */ []);
2080
+ headerTemplate = contentChild("header", {
2081
+ ...ngDevMode ? { debugName: "headerTemplate" } : /* istanbul ignore next */ {},
2082
+ descendants: false
2083
+ });
2084
+ footerTemplate = contentChild("footer", {
2085
+ ...ngDevMode ? { debugName: "footerTemplate" } : /* istanbul ignore next */ {},
2086
+ descendants: false
2087
+ });
2088
+ indicatorTemplate = contentChild("indicator", {
2089
+ ...ngDevMode ? { debugName: "indicatorTemplate" } : /* istanbul ignore next */ {},
2090
+ descendants: false
2091
+ });
2092
+ captionTemplate = contentChild("caption", {
2093
+ ...ngDevMode ? { debugName: "captionTemplate" } : /* istanbul ignore next */ {},
2094
+ descendants: false
2095
+ });
2096
+ closeIconTemplate = contentChild("closeicon", {
2097
+ ...ngDevMode ? { debugName: "closeIconTemplate" } : /* istanbul ignore next */ {},
2098
+ descendants: false
2099
+ });
2100
+ previousThumbnailIconTemplate = contentChild("previousthumbnailicon", {
2101
+ ...ngDevMode ? { debugName: "previousThumbnailIconTemplate" } : /* istanbul ignore next */ {},
2102
+ descendants: false
2103
+ });
2104
+ nextThumbnailIconTemplate = contentChild("nextthumbnailicon", {
2105
+ ...ngDevMode ? { debugName: "nextThumbnailIconTemplate" } : /* istanbul ignore next */ {},
2106
+ descendants: false
2107
+ });
2108
+ itemPreviousIconTemplate = contentChild("itempreviousicon", {
2109
+ ...ngDevMode ? { debugName: "itemPreviousIconTemplate" } : /* istanbul ignore next */ {},
2110
+ descendants: false
2111
+ });
2112
+ itemNextIconTemplate = contentChild("itemnexticon", {
2113
+ ...ngDevMode ? { debugName: "itemNextIconTemplate" } : /* istanbul ignore next */ {},
2114
+ descendants: false
2115
+ });
2116
+ itemTemplate = contentChild("item", {
2117
+ ...ngDevMode ? { debugName: "itemTemplate" } : /* istanbul ignore next */ {},
2118
+ descendants: false
2119
+ });
2120
+ thumbnailTemplate = contentChild("thumbnail", {
2121
+ ...ngDevMode ? { debugName: "thumbnailTemplate" } : /* istanbul ignore next */ {},
2122
+ descendants: false
2123
+ });
2124
+ maskVisible = false;
2125
+ numVisibleLimit = signal(0, ...ngDevMode ? [{ debugName: "numVisibleLimit" }] : /* istanbul ignore next */ []);
2126
+ d_numVisible = computed(() => this.numVisibleLimit() || this.numVisible(), ...ngDevMode ? [{ debugName: "d_numVisible" }] : /* istanbul ignore next */ []);
2127
+ _componentStyle = inject(GalleriaStyle);
2128
+ mask;
2129
+ element = inject(ElementRef);
2130
+ constructor() {
2131
+ super();
2132
+ effect(() => {
2133
+ const isVisible = this.visible();
2134
+ if (isVisible && !this.maskVisible) {
2135
+ this.maskVisible = true;
2136
+ this.renderMask.set(true);
2137
+ this.renderContent.set(true);
2138
+ } else if (!isVisible && this.maskVisible) this.maskVisible = false;
2139
+ });
2140
+ effect(() => {
2141
+ const val = this.value();
2142
+ if (val && val.length < this.numVisible()) this.numVisibleLimit.set(val.length);
2143
+ else this.numVisibleLimit.set(0);
2144
+ });
2145
+ }
2146
+ onAfterViewChecked() {
2147
+ this.bindDirectiveInstance.setAttrs(this.ptm("host"));
2148
+ }
2149
+ onMaskHide(event) {
2150
+ if (!event || event.target === event.currentTarget) this.visible.set(false);
2151
+ }
2152
+ onActiveItemChange(index) {
2153
+ if (this._activeIndex() !== index) {
2154
+ this._activeIndex.set(index);
2155
+ this.activeIndexChange.emit(index);
2156
+ }
2157
+ }
2158
+ onBeforeEnter(event) {
2159
+ this.mask = event.element?.parentElement;
2160
+ this.enableModality();
2161
+ setTimeout(() => {
2162
+ const focusTarget = findSingle(this.container()?.nativeElement, "[data-pc-section=\"closebutton\"]");
2163
+ if (focusTarget) focus(focusTarget);
2164
+ }, 25);
2165
+ }
2166
+ onBeforeLeave() {
2167
+ if (this.mask) this.maskVisible = false;
2168
+ }
2169
+ onAfterLeave() {
2170
+ this.disableModality();
2171
+ this.renderContent.set(false);
2172
+ }
2173
+ onMaskAfterLeave() {
2174
+ if (!this.renderContent()) this.renderMask.set(false);
2175
+ }
2176
+ enableModality() {
2177
+ this.$blockBodyScroll();
2178
+ if (this.mask) ZIndexUtils.set("modal", this.mask, this.baseZIndex() || this.config.zIndex.modal);
2179
+ }
2180
+ disableModality() {
2181
+ this.$unblockBodyScroll();
2182
+ if (this.mask) ZIndexUtils.clear(this.mask);
2183
+ }
2184
+ onDestroy() {
2185
+ if (this.fullScreen()) removeClass(this.document.body, this.pcn("p-overflow-hidden"));
2186
+ if (this.mask) this.disableModality();
2187
+ }
2188
+ static ɵfac = i0.ɵɵngDeclareFactory({
2189
+ minVersion: "12.0.0",
2190
+ version: "22.2.3",
2191
+ ngImport: i0,
2192
+ type: Galleria,
2193
+ deps: [],
2194
+ target: i0.ɵɵFactoryTarget.Component
2195
+ });
2196
+ static ɵcmp = i0.ɵɵngDeclareComponent({
2197
+ minVersion: "17.0.0",
2198
+ version: "22.2.3",
2199
+ type: Galleria,
2200
+ isStandalone: true,
2201
+ selector: "p-galleria",
2202
+ inputs: {
2203
+ activeIndex: {
2204
+ classPropertyName: "activeIndex",
2205
+ publicName: "activeIndex",
2206
+ isSignal: true,
2207
+ isRequired: false,
2208
+ transformFunction: null
2209
+ },
2210
+ fullScreen: {
2211
+ classPropertyName: "fullScreen",
2212
+ publicName: "fullScreen",
2213
+ isSignal: true,
2214
+ isRequired: false,
2215
+ transformFunction: null
2216
+ },
2217
+ id: {
2218
+ classPropertyName: "id",
2219
+ publicName: "id",
2220
+ isSignal: true,
2221
+ isRequired: false,
2222
+ transformFunction: null
2223
+ },
2224
+ value: {
2225
+ classPropertyName: "value",
2226
+ publicName: "value",
2227
+ isSignal: true,
2228
+ isRequired: false,
2229
+ transformFunction: null
2230
+ },
2231
+ numVisible: {
2232
+ classPropertyName: "numVisible",
2233
+ publicName: "numVisible",
2234
+ isSignal: true,
2235
+ isRequired: false,
2236
+ transformFunction: null
2237
+ },
2238
+ responsiveOptions: {
2239
+ classPropertyName: "responsiveOptions",
2240
+ publicName: "responsiveOptions",
2241
+ isSignal: true,
2242
+ isRequired: false,
2243
+ transformFunction: null
2244
+ },
2245
+ showItemNavigators: {
2246
+ classPropertyName: "showItemNavigators",
2247
+ publicName: "showItemNavigators",
2248
+ isSignal: true,
2249
+ isRequired: false,
2250
+ transformFunction: null
2251
+ },
2252
+ showThumbnailNavigators: {
2253
+ classPropertyName: "showThumbnailNavigators",
2254
+ publicName: "showThumbnailNavigators",
2255
+ isSignal: true,
2256
+ isRequired: false,
2257
+ transformFunction: null
2258
+ },
2259
+ showItemNavigatorsOnHover: {
2260
+ classPropertyName: "showItemNavigatorsOnHover",
2261
+ publicName: "showItemNavigatorsOnHover",
2262
+ isSignal: true,
2263
+ isRequired: false,
2264
+ transformFunction: null
2265
+ },
2266
+ changeItemOnIndicatorHover: {
2267
+ classPropertyName: "changeItemOnIndicatorHover",
2268
+ publicName: "changeItemOnIndicatorHover",
2269
+ isSignal: true,
2270
+ isRequired: false,
2271
+ transformFunction: null
2272
+ },
2273
+ circular: {
2274
+ classPropertyName: "circular",
2275
+ publicName: "circular",
2276
+ isSignal: true,
2277
+ isRequired: false,
2278
+ transformFunction: null
2279
+ },
2280
+ autoPlay: {
2281
+ classPropertyName: "autoPlay",
2282
+ publicName: "autoPlay",
2283
+ isSignal: true,
2284
+ isRequired: false,
2285
+ transformFunction: null
2286
+ },
2287
+ shouldStopAutoplayByClick: {
2288
+ classPropertyName: "shouldStopAutoplayByClick",
2289
+ publicName: "shouldStopAutoplayByClick",
2290
+ isSignal: true,
2291
+ isRequired: false,
2292
+ transformFunction: null
2293
+ },
2294
+ transitionInterval: {
2295
+ classPropertyName: "transitionInterval",
2296
+ publicName: "transitionInterval",
2297
+ isSignal: true,
2298
+ isRequired: false,
2299
+ transformFunction: null
2300
+ },
2301
+ showThumbnails: {
2302
+ classPropertyName: "showThumbnails",
2303
+ publicName: "showThumbnails",
2304
+ isSignal: true,
2305
+ isRequired: false,
2306
+ transformFunction: null
2307
+ },
2308
+ thumbnailsPosition: {
2309
+ classPropertyName: "thumbnailsPosition",
2310
+ publicName: "thumbnailsPosition",
2311
+ isSignal: true,
2312
+ isRequired: false,
2313
+ transformFunction: null
2314
+ },
2315
+ verticalThumbnailViewPortHeight: {
2316
+ classPropertyName: "verticalThumbnailViewPortHeight",
2317
+ publicName: "verticalThumbnailViewPortHeight",
2318
+ isSignal: true,
2319
+ isRequired: false,
2320
+ transformFunction: null
2321
+ },
2322
+ showIndicators: {
2323
+ classPropertyName: "showIndicators",
2324
+ publicName: "showIndicators",
2325
+ isSignal: true,
2326
+ isRequired: false,
2327
+ transformFunction: null
2328
+ },
2329
+ showIndicatorsOnItem: {
2330
+ classPropertyName: "showIndicatorsOnItem",
2331
+ publicName: "showIndicatorsOnItem",
2332
+ isSignal: true,
2333
+ isRequired: false,
2334
+ transformFunction: null
2335
+ },
2336
+ indicatorsPosition: {
2337
+ classPropertyName: "indicatorsPosition",
2338
+ publicName: "indicatorsPosition",
2339
+ isSignal: true,
2340
+ isRequired: false,
2341
+ transformFunction: null
2342
+ },
2343
+ baseZIndex: {
2344
+ classPropertyName: "baseZIndex",
2345
+ publicName: "baseZIndex",
2346
+ isSignal: true,
2347
+ isRequired: false,
2348
+ transformFunction: null
2349
+ },
2350
+ maskClass: {
2351
+ classPropertyName: "maskClass",
2352
+ publicName: "maskClass",
2353
+ isSignal: true,
2354
+ isRequired: false,
2355
+ transformFunction: null
2356
+ },
2357
+ containerClass: {
2358
+ classPropertyName: "containerClass",
2359
+ publicName: "containerClass",
2360
+ isSignal: true,
2361
+ isRequired: false,
2362
+ transformFunction: null
2363
+ },
2364
+ containerStyle: {
2365
+ classPropertyName: "containerStyle",
2366
+ publicName: "containerStyle",
2367
+ isSignal: true,
2368
+ isRequired: false,
2369
+ transformFunction: null
2370
+ },
2371
+ motionOptions: {
2372
+ classPropertyName: "motionOptions",
2373
+ publicName: "motionOptions",
2374
+ isSignal: true,
2375
+ isRequired: false,
2376
+ transformFunction: null
2377
+ },
2378
+ maskMotionOptions: {
2379
+ classPropertyName: "maskMotionOptions",
2380
+ publicName: "maskMotionOptions",
2381
+ isSignal: true,
2382
+ isRequired: false,
2383
+ transformFunction: null
2384
+ },
2385
+ visible: {
2386
+ classPropertyName: "visible",
2387
+ publicName: "visible",
2388
+ isSignal: true,
2389
+ isRequired: false,
2390
+ transformFunction: null
2391
+ }
2392
+ },
2393
+ outputs: {
2394
+ visible: "visibleChange",
2395
+ activeIndexChange: "activeIndexChange"
2396
+ },
2397
+ providers: [
2398
+ GalleriaStyle,
2399
+ {
2400
+ provide: GALLERIA_INSTANCE,
2401
+ useExisting: Galleria
2402
+ },
2403
+ {
2404
+ provide: PARENT_INSTANCE,
2405
+ useExisting: Galleria
2406
+ }
2407
+ ],
2408
+ queries: [
2409
+ {
2410
+ propertyName: "headerTemplate",
2411
+ first: true,
2412
+ predicate: ["header"],
2413
+ isSignal: true
2414
+ },
2415
+ {
2416
+ propertyName: "footerTemplate",
2417
+ first: true,
2418
+ predicate: ["footer"],
2419
+ isSignal: true
2420
+ },
2421
+ {
2422
+ propertyName: "indicatorTemplate",
2423
+ first: true,
2424
+ predicate: ["indicator"],
2425
+ isSignal: true
2426
+ },
2427
+ {
2428
+ propertyName: "captionTemplate",
2429
+ first: true,
2430
+ predicate: ["caption"],
2431
+ isSignal: true
2432
+ },
2433
+ {
2434
+ propertyName: "closeIconTemplate",
2435
+ first: true,
2436
+ predicate: ["closeicon"],
2437
+ isSignal: true
2438
+ },
2439
+ {
2440
+ propertyName: "previousThumbnailIconTemplate",
2441
+ first: true,
2442
+ predicate: ["previousthumbnailicon"],
2443
+ isSignal: true
2444
+ },
2445
+ {
2446
+ propertyName: "nextThumbnailIconTemplate",
2447
+ first: true,
2448
+ predicate: ["nextthumbnailicon"],
2449
+ isSignal: true
2450
+ },
2451
+ {
2452
+ propertyName: "itemPreviousIconTemplate",
2453
+ first: true,
2454
+ predicate: ["itempreviousicon"],
2455
+ isSignal: true
2456
+ },
2457
+ {
2458
+ propertyName: "itemNextIconTemplate",
2459
+ first: true,
2460
+ predicate: ["itemnexticon"],
2461
+ isSignal: true
2462
+ },
2463
+ {
2464
+ propertyName: "itemTemplate",
2465
+ first: true,
2466
+ predicate: ["item"],
2467
+ isSignal: true
2468
+ },
2469
+ {
2470
+ propertyName: "thumbnailTemplate",
2471
+ first: true,
2472
+ predicate: ["thumbnail"],
2473
+ isSignal: true
2474
+ }
2475
+ ],
2476
+ viewQueries: [{
2477
+ propertyName: "container",
2478
+ first: true,
2479
+ predicate: ["container"],
2480
+ descendants: true,
2481
+ isSignal: true
2482
+ }],
2483
+ usesInheritance: true,
2484
+ hostDirectives: [{ directive: i1.Bind }],
2485
+ ngImport: i0,
2486
+ template: `
1734
2487
  @if (fullScreen()) {
1735
2488
  <div #container>
1736
2489
  @if (renderMask()) {
@@ -1752,7 +2505,7 @@ class Galleria extends BaseComponent {
1752
2505
  pGalleriaContent
1753
2506
  [pMotion]="visible()"
1754
2507
  [pMotionAppear]="true"
1755
- [pMotionName]="'p-galleria'"
2508
+ [pMotionName]="pcn('p-galleria')"
1756
2509
  [pMotionOptions]="computedMotionOptions()"
1757
2510
  (pMotionOnBeforeEnter)="onBeforeEnter($event)"
1758
2511
  (pMotionOnBeforeLeave)="onBeforeLeave()"
@@ -1776,15 +2529,101 @@ class Galleria extends BaseComponent {
1776
2529
  } @else {
1777
2530
  <div pGalleriaContent [pt]="pt()" [unstyled]="unstyled()" [value]="value() ?? []" [activeIndex]="_activeIndex()" [numVisible]="d_numVisible()" (activeItemChange)="onActiveItemChange($event)"></div>
1778
2531
  }
1779
- `, isInline: true, dependencies: [{ kind: "component", type: GalleriaContent, selector: "div[pGalleriaContent]", inputs: ["value", "numVisible", "fullScreen", "activeIndex"], outputs: ["fullScreenChange", "maskHide", "activeItemChange"] }, { kind: "ngmodule", type: BindModule }, { kind: "directive", type: i1.Bind, selector: "[pBind]", inputs: ["pBind"] }, { kind: "ngmodule", type: MotionModule }, { kind: "directive", type: i2.MotionDirective, selector: "[pMotion]", inputs: ["pMotion", "pMotionName", "pMotionType", "pMotionSafe", "pMotionDisabled", "pMotionAppear", "pMotionEnter", "pMotionLeave", "pMotionDuration", "pMotionHideStrategy", "pMotionEnterFromClass", "pMotionEnterToClass", "pMotionEnterActiveClass", "pMotionLeaveFromClass", "pMotionLeaveToClass", "pMotionLeaveActiveClass", "pMotionOptions"], outputs: ["pMotionOnBeforeEnter", "pMotionOnEnter", "pMotionOnAfterEnter", "pMotionOnEnterCancelled", "pMotionOnBeforeLeave", "pMotionOnLeave", "pMotionOnAfterLeave", "pMotionOnLeaveCancelled"] }, { kind: "directive", type: FocusTrap, selector: "[pFocusTrap]", inputs: ["pFocusTrapDisabled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1780
- }
1781
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: Galleria, decorators: [{
1782
- type: Component,
1783
- args: [{
1784
- selector: 'p-galleria',
1785
- standalone: true,
1786
- imports: [GalleriaContent, BindModule, MotionModule, FocusTrap],
1787
- template: `
2532
+ `,
2533
+ isInline: true,
2534
+ dependencies: [
2535
+ {
2536
+ kind: "component",
2537
+ type: GalleriaContent,
2538
+ selector: "div[pGalleriaContent]",
2539
+ inputs: [
2540
+ "value",
2541
+ "numVisible",
2542
+ "fullScreen",
2543
+ "activeIndex"
2544
+ ],
2545
+ outputs: [
2546
+ "fullScreenChange",
2547
+ "maskHide",
2548
+ "activeItemChange"
2549
+ ]
2550
+ },
2551
+ {
2552
+ kind: "ngmodule",
2553
+ type: BindModule
2554
+ },
2555
+ {
2556
+ kind: "directive",
2557
+ type: i1.Bind,
2558
+ selector: "[pBind]",
2559
+ inputs: ["pBind"]
2560
+ },
2561
+ {
2562
+ kind: "ngmodule",
2563
+ type: MotionModule
2564
+ },
2565
+ {
2566
+ kind: "directive",
2567
+ type: i2.MotionDirective,
2568
+ selector: "[pMotion]",
2569
+ inputs: [
2570
+ "pMotion",
2571
+ "pMotionName",
2572
+ "pMotionType",
2573
+ "pMotionSafe",
2574
+ "pMotionDisabled",
2575
+ "pMotionAppear",
2576
+ "pMotionEnter",
2577
+ "pMotionLeave",
2578
+ "pMotionDuration",
2579
+ "pMotionHideStrategy",
2580
+ "pMotionEnterFromClass",
2581
+ "pMotionEnterToClass",
2582
+ "pMotionEnterActiveClass",
2583
+ "pMotionLeaveFromClass",
2584
+ "pMotionLeaveToClass",
2585
+ "pMotionLeaveActiveClass",
2586
+ "pMotionOptions"
2587
+ ],
2588
+ outputs: [
2589
+ "pMotionOnBeforeEnter",
2590
+ "pMotionOnEnter",
2591
+ "pMotionOnAfterEnter",
2592
+ "pMotionOnEnterCancelled",
2593
+ "pMotionOnBeforeLeave",
2594
+ "pMotionOnLeave",
2595
+ "pMotionOnAfterLeave",
2596
+ "pMotionOnLeaveCancelled"
2597
+ ]
2598
+ },
2599
+ {
2600
+ kind: "directive",
2601
+ type: FocusTrap,
2602
+ selector: "[pFocusTrap]",
2603
+ inputs: ["pFocusTrapDisabled"]
2604
+ }
2605
+ ],
2606
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
2607
+ encapsulation: i0.ViewEncapsulation.None
2608
+ });
2609
+ };
2610
+ i0.ɵɵngDeclareClassMetadata({
2611
+ minVersion: "12.0.0",
2612
+ version: "22.2.3",
2613
+ ngImport: i0,
2614
+ type: Galleria,
2615
+ decorators: [{
2616
+ type: Component,
2617
+ args: [{
2618
+ selector: "p-galleria",
2619
+ standalone: true,
2620
+ imports: [
2621
+ GalleriaContent,
2622
+ BindModule,
2623
+ MotionModule,
2624
+ FocusTrap
2625
+ ],
2626
+ template: `
1788
2627
  @if (fullScreen()) {
1789
2628
  <div #container>
1790
2629
  @if (renderMask()) {
@@ -1806,7 +2645,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
1806
2645
  pGalleriaContent
1807
2646
  [pMotion]="visible()"
1808
2647
  [pMotionAppear]="true"
1809
- [pMotionName]="'p-galleria'"
2648
+ [pMotionName]="pcn('p-galleria')"
1810
2649
  [pMotionOptions]="computedMotionOptions()"
1811
2650
  (pMotionOnBeforeEnter)="onBeforeEnter($event)"
1812
2651
  (pMotionOnBeforeLeave)="onBeforeLeave()"
@@ -1831,28 +2670,371 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImpor
1831
2670
  <div pGalleriaContent [pt]="pt()" [unstyled]="unstyled()" [value]="value() ?? []" [activeIndex]="_activeIndex()" [numVisible]="d_numVisible()" (activeItemChange)="onActiveItemChange($event)"></div>
1832
2671
  }
1833
2672
  `,
1834
- changeDetection: ChangeDetectionStrategy.OnPush,
1835
- encapsulation: ViewEncapsulation.None,
1836
- providers: [GalleriaStyle, { provide: GALLERIA_INSTANCE, useExisting: Galleria }, { provide: PARENT_INSTANCE, useExisting: Galleria }],
1837
- hostDirectives: [Bind]
1838
- }]
1839
- }], ctorParameters: () => [], propDecorators: { activeIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeIndex", required: false }] }], fullScreen: [{ type: i0.Input, args: [{ isSignal: true, alias: "fullScreen", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], numVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "numVisible", required: false }] }], responsiveOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "responsiveOptions", required: false }] }], showItemNavigators: [{ type: i0.Input, args: [{ isSignal: true, alias: "showItemNavigators", required: false }] }], showThumbnailNavigators: [{ type: i0.Input, args: [{ isSignal: true, alias: "showThumbnailNavigators", required: false }] }], showItemNavigatorsOnHover: [{ type: i0.Input, args: [{ isSignal: true, alias: "showItemNavigatorsOnHover", required: false }] }], changeItemOnIndicatorHover: [{ type: i0.Input, args: [{ isSignal: true, alias: "changeItemOnIndicatorHover", required: false }] }], circular: [{ type: i0.Input, args: [{ isSignal: true, alias: "circular", required: false }] }], autoPlay: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoPlay", required: false }] }], shouldStopAutoplayByClick: [{ type: i0.Input, args: [{ isSignal: true, alias: "shouldStopAutoplayByClick", required: false }] }], transitionInterval: [{ type: i0.Input, args: [{ isSignal: true, alias: "transitionInterval", required: false }] }], showThumbnails: [{ type: i0.Input, args: [{ isSignal: true, alias: "showThumbnails", required: false }] }], thumbnailsPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "thumbnailsPosition", required: false }] }], verticalThumbnailViewPortHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "verticalThumbnailViewPortHeight", required: false }] }], showIndicators: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIndicators", required: false }] }], showIndicatorsOnItem: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIndicatorsOnItem", required: false }] }], indicatorsPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "indicatorsPosition", required: false }] }], baseZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "baseZIndex", required: false }] }], maskClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "maskClass", required: false }] }], containerClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "containerClass", required: false }] }], containerStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "containerStyle", required: false }] }], motionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionOptions", required: false }] }], maskMotionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "maskMotionOptions", required: false }] }], visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }, { type: i0.Output, args: ["visibleChange"] }], activeIndexChange: [{ type: i0.Output, args: ["activeIndexChange"] }], container: [{ type: i0.ViewChild, args: ['container', { isSignal: true }] }], headerTemplate: [{ type: i0.ContentChild, args: ['header', { ...{ descendants: false }, isSignal: true }] }], footerTemplate: [{ type: i0.ContentChild, args: ['footer', { ...{ descendants: false }, isSignal: true }] }], indicatorTemplate: [{ type: i0.ContentChild, args: ['indicator', { ...{ descendants: false }, isSignal: true }] }], captionTemplate: [{ type: i0.ContentChild, args: ['caption', { ...{ descendants: false }, isSignal: true }] }], closeIconTemplate: [{ type: i0.ContentChild, args: ['closeicon', { ...{ descendants: false }, isSignal: true }] }], previousThumbnailIconTemplate: [{ type: i0.ContentChild, args: ['previousthumbnailicon', { ...{ descendants: false }, isSignal: true }] }], nextThumbnailIconTemplate: [{ type: i0.ContentChild, args: ['nextthumbnailicon', { ...{ descendants: false }, isSignal: true }] }], itemPreviousIconTemplate: [{ type: i0.ContentChild, args: ['itempreviousicon', { ...{ descendants: false }, isSignal: true }] }], itemNextIconTemplate: [{ type: i0.ContentChild, args: ['itemnexticon', { ...{ descendants: false }, isSignal: true }] }], itemTemplate: [{ type: i0.ContentChild, args: ['item', { ...{ descendants: false }, isSignal: true }] }], thumbnailTemplate: [{ type: i0.ContentChild, args: ['thumbnail', { ...{ descendants: false }, isSignal: true }] }] } });
1840
- class GalleriaModule {
1841
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: GalleriaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1842
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.5", ngImport: i0, type: GalleriaModule, imports: [Galleria, SharedModule], exports: [Galleria, SharedModule] });
1843
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: GalleriaModule, imports: [Galleria, SharedModule, SharedModule] });
1844
- }
1845
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.5", ngImport: i0, type: GalleriaModule, decorators: [{
1846
- type: NgModule,
1847
- args: [{
1848
- imports: [Galleria, SharedModule],
1849
- exports: [Galleria, SharedModule]
1850
- }]
1851
- }] });
1852
-
1853
- /**
1854
- * Generated bundle index. Do not edit.
1855
- */
1856
-
2673
+ changeDetection: ChangeDetectionStrategy.OnPush,
2674
+ encapsulation: ViewEncapsulation.None,
2675
+ providers: [
2676
+ GalleriaStyle,
2677
+ {
2678
+ provide: GALLERIA_INSTANCE,
2679
+ useExisting: Galleria
2680
+ },
2681
+ {
2682
+ provide: PARENT_INSTANCE,
2683
+ useExisting: Galleria
2684
+ }
2685
+ ],
2686
+ hostDirectives: [Bind]
2687
+ }]
2688
+ }],
2689
+ ctorParameters: () => [],
2690
+ propDecorators: {
2691
+ activeIndex: [{
2692
+ type: i0.Input,
2693
+ args: [{
2694
+ isSignal: true,
2695
+ alias: "activeIndex",
2696
+ required: false
2697
+ }]
2698
+ }],
2699
+ fullScreen: [{
2700
+ type: i0.Input,
2701
+ args: [{
2702
+ isSignal: true,
2703
+ alias: "fullScreen",
2704
+ required: false
2705
+ }]
2706
+ }],
2707
+ id: [{
2708
+ type: i0.Input,
2709
+ args: [{
2710
+ isSignal: true,
2711
+ alias: "id",
2712
+ required: false
2713
+ }]
2714
+ }],
2715
+ value: [{
2716
+ type: i0.Input,
2717
+ args: [{
2718
+ isSignal: true,
2719
+ alias: "value",
2720
+ required: false
2721
+ }]
2722
+ }],
2723
+ numVisible: [{
2724
+ type: i0.Input,
2725
+ args: [{
2726
+ isSignal: true,
2727
+ alias: "numVisible",
2728
+ required: false
2729
+ }]
2730
+ }],
2731
+ responsiveOptions: [{
2732
+ type: i0.Input,
2733
+ args: [{
2734
+ isSignal: true,
2735
+ alias: "responsiveOptions",
2736
+ required: false
2737
+ }]
2738
+ }],
2739
+ showItemNavigators: [{
2740
+ type: i0.Input,
2741
+ args: [{
2742
+ isSignal: true,
2743
+ alias: "showItemNavigators",
2744
+ required: false
2745
+ }]
2746
+ }],
2747
+ showThumbnailNavigators: [{
2748
+ type: i0.Input,
2749
+ args: [{
2750
+ isSignal: true,
2751
+ alias: "showThumbnailNavigators",
2752
+ required: false
2753
+ }]
2754
+ }],
2755
+ showItemNavigatorsOnHover: [{
2756
+ type: i0.Input,
2757
+ args: [{
2758
+ isSignal: true,
2759
+ alias: "showItemNavigatorsOnHover",
2760
+ required: false
2761
+ }]
2762
+ }],
2763
+ changeItemOnIndicatorHover: [{
2764
+ type: i0.Input,
2765
+ args: [{
2766
+ isSignal: true,
2767
+ alias: "changeItemOnIndicatorHover",
2768
+ required: false
2769
+ }]
2770
+ }],
2771
+ circular: [{
2772
+ type: i0.Input,
2773
+ args: [{
2774
+ isSignal: true,
2775
+ alias: "circular",
2776
+ required: false
2777
+ }]
2778
+ }],
2779
+ autoPlay: [{
2780
+ type: i0.Input,
2781
+ args: [{
2782
+ isSignal: true,
2783
+ alias: "autoPlay",
2784
+ required: false
2785
+ }]
2786
+ }],
2787
+ shouldStopAutoplayByClick: [{
2788
+ type: i0.Input,
2789
+ args: [{
2790
+ isSignal: true,
2791
+ alias: "shouldStopAutoplayByClick",
2792
+ required: false
2793
+ }]
2794
+ }],
2795
+ transitionInterval: [{
2796
+ type: i0.Input,
2797
+ args: [{
2798
+ isSignal: true,
2799
+ alias: "transitionInterval",
2800
+ required: false
2801
+ }]
2802
+ }],
2803
+ showThumbnails: [{
2804
+ type: i0.Input,
2805
+ args: [{
2806
+ isSignal: true,
2807
+ alias: "showThumbnails",
2808
+ required: false
2809
+ }]
2810
+ }],
2811
+ thumbnailsPosition: [{
2812
+ type: i0.Input,
2813
+ args: [{
2814
+ isSignal: true,
2815
+ alias: "thumbnailsPosition",
2816
+ required: false
2817
+ }]
2818
+ }],
2819
+ verticalThumbnailViewPortHeight: [{
2820
+ type: i0.Input,
2821
+ args: [{
2822
+ isSignal: true,
2823
+ alias: "verticalThumbnailViewPortHeight",
2824
+ required: false
2825
+ }]
2826
+ }],
2827
+ showIndicators: [{
2828
+ type: i0.Input,
2829
+ args: [{
2830
+ isSignal: true,
2831
+ alias: "showIndicators",
2832
+ required: false
2833
+ }]
2834
+ }],
2835
+ showIndicatorsOnItem: [{
2836
+ type: i0.Input,
2837
+ args: [{
2838
+ isSignal: true,
2839
+ alias: "showIndicatorsOnItem",
2840
+ required: false
2841
+ }]
2842
+ }],
2843
+ indicatorsPosition: [{
2844
+ type: i0.Input,
2845
+ args: [{
2846
+ isSignal: true,
2847
+ alias: "indicatorsPosition",
2848
+ required: false
2849
+ }]
2850
+ }],
2851
+ baseZIndex: [{
2852
+ type: i0.Input,
2853
+ args: [{
2854
+ isSignal: true,
2855
+ alias: "baseZIndex",
2856
+ required: false
2857
+ }]
2858
+ }],
2859
+ maskClass: [{
2860
+ type: i0.Input,
2861
+ args: [{
2862
+ isSignal: true,
2863
+ alias: "maskClass",
2864
+ required: false
2865
+ }]
2866
+ }],
2867
+ containerClass: [{
2868
+ type: i0.Input,
2869
+ args: [{
2870
+ isSignal: true,
2871
+ alias: "containerClass",
2872
+ required: false
2873
+ }]
2874
+ }],
2875
+ containerStyle: [{
2876
+ type: i0.Input,
2877
+ args: [{
2878
+ isSignal: true,
2879
+ alias: "containerStyle",
2880
+ required: false
2881
+ }]
2882
+ }],
2883
+ motionOptions: [{
2884
+ type: i0.Input,
2885
+ args: [{
2886
+ isSignal: true,
2887
+ alias: "motionOptions",
2888
+ required: false
2889
+ }]
2890
+ }],
2891
+ maskMotionOptions: [{
2892
+ type: i0.Input,
2893
+ args: [{
2894
+ isSignal: true,
2895
+ alias: "maskMotionOptions",
2896
+ required: false
2897
+ }]
2898
+ }],
2899
+ visible: [{
2900
+ type: i0.Input,
2901
+ args: [{
2902
+ isSignal: true,
2903
+ alias: "visible",
2904
+ required: false
2905
+ }]
2906
+ }, {
2907
+ type: i0.Output,
2908
+ args: ["visibleChange"]
2909
+ }],
2910
+ activeIndexChange: [{
2911
+ type: i0.Output,
2912
+ args: ["activeIndexChange"]
2913
+ }],
2914
+ container: [{
2915
+ type: i0.ViewChild,
2916
+ args: ["container", { isSignal: true }]
2917
+ }],
2918
+ headerTemplate: [{
2919
+ type: i0.ContentChild,
2920
+ args: ["header", {
2921
+ descendants: false,
2922
+ isSignal: true
2923
+ }]
2924
+ }],
2925
+ footerTemplate: [{
2926
+ type: i0.ContentChild,
2927
+ args: ["footer", {
2928
+ descendants: false,
2929
+ isSignal: true
2930
+ }]
2931
+ }],
2932
+ indicatorTemplate: [{
2933
+ type: i0.ContentChild,
2934
+ args: ["indicator", {
2935
+ descendants: false,
2936
+ isSignal: true
2937
+ }]
2938
+ }],
2939
+ captionTemplate: [{
2940
+ type: i0.ContentChild,
2941
+ args: ["caption", {
2942
+ descendants: false,
2943
+ isSignal: true
2944
+ }]
2945
+ }],
2946
+ closeIconTemplate: [{
2947
+ type: i0.ContentChild,
2948
+ args: ["closeicon", {
2949
+ descendants: false,
2950
+ isSignal: true
2951
+ }]
2952
+ }],
2953
+ previousThumbnailIconTemplate: [{
2954
+ type: i0.ContentChild,
2955
+ args: ["previousthumbnailicon", {
2956
+ descendants: false,
2957
+ isSignal: true
2958
+ }]
2959
+ }],
2960
+ nextThumbnailIconTemplate: [{
2961
+ type: i0.ContentChild,
2962
+ args: ["nextthumbnailicon", {
2963
+ descendants: false,
2964
+ isSignal: true
2965
+ }]
2966
+ }],
2967
+ itemPreviousIconTemplate: [{
2968
+ type: i0.ContentChild,
2969
+ args: ["itempreviousicon", {
2970
+ descendants: false,
2971
+ isSignal: true
2972
+ }]
2973
+ }],
2974
+ itemNextIconTemplate: [{
2975
+ type: i0.ContentChild,
2976
+ args: ["itemnexticon", {
2977
+ descendants: false,
2978
+ isSignal: true
2979
+ }]
2980
+ }],
2981
+ itemTemplate: [{
2982
+ type: i0.ContentChild,
2983
+ args: ["item", {
2984
+ descendants: false,
2985
+ isSignal: true
2986
+ }]
2987
+ }],
2988
+ thumbnailTemplate: [{
2989
+ type: i0.ContentChild,
2990
+ args: ["thumbnail", {
2991
+ descendants: false,
2992
+ isSignal: true
2993
+ }]
2994
+ }]
2995
+ }
2996
+ });
2997
+ var GalleriaModule = class GalleriaModule {
2998
+ static ɵfac = i0.ɵɵngDeclareFactory({
2999
+ minVersion: "12.0.0",
3000
+ version: "22.2.3",
3001
+ ngImport: i0,
3002
+ type: GalleriaModule,
3003
+ deps: [],
3004
+ target: i0.ɵɵFactoryTarget.NgModule
3005
+ });
3006
+ static ɵmod = i0.ɵɵngDeclareNgModule({
3007
+ minVersion: "14.0.0",
3008
+ version: "22.2.3",
3009
+ ngImport: i0,
3010
+ type: GalleriaModule,
3011
+ imports: [Galleria, SharedModule],
3012
+ exports: [Galleria, SharedModule]
3013
+ });
3014
+ static ɵinj = i0.ɵɵngDeclareInjector({
3015
+ minVersion: "12.0.0",
3016
+ version: "22.2.3",
3017
+ ngImport: i0,
3018
+ type: GalleriaModule,
3019
+ imports: [
3020
+ Galleria,
3021
+ SharedModule,
3022
+ SharedModule
3023
+ ]
3024
+ });
3025
+ };
3026
+ i0.ɵɵngDeclareClassMetadata({
3027
+ minVersion: "12.0.0",
3028
+ version: "22.2.3",
3029
+ ngImport: i0,
3030
+ type: GalleriaModule,
3031
+ decorators: [{
3032
+ type: NgModule,
3033
+ args: [{
3034
+ imports: [Galleria, SharedModule],
3035
+ exports: [Galleria, SharedModule]
3036
+ }]
3037
+ }]
3038
+ });
1857
3039
  export { Galleria, GalleriaClasses, GalleriaModule, GalleriaStyle };
1858
- //# sourceMappingURL=primeng-galleria.mjs.map
3040
+