primeng 22.1.0 → 22.1.2

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