primevue 3.28.0 → 3.29.0

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 (420) hide show
  1. package/README.md +3 -3
  2. package/autocomplete/AutoComplete.d.ts +153 -1
  3. package/autocomplete/AutoComplete.vue +46 -17
  4. package/autocomplete/autocomplete.cjs.js +80 -74
  5. package/autocomplete/autocomplete.cjs.min.js +1 -1
  6. package/autocomplete/autocomplete.esm.js +80 -75
  7. package/autocomplete/autocomplete.esm.min.js +1 -1
  8. package/autocomplete/autocomplete.js +81 -76
  9. package/autocomplete/autocomplete.min.js +1 -1
  10. package/basecomponent/BaseComponent.vue +19 -5
  11. package/basecomponent/basecomponent.cjs.js +19 -5
  12. package/basecomponent/basecomponent.cjs.min.js +1 -1
  13. package/basecomponent/basecomponent.esm.js +19 -5
  14. package/basecomponent/basecomponent.esm.min.js +1 -1
  15. package/basecomponent/basecomponent.js +20 -7
  16. package/basecomponent/basecomponent.min.js +1 -1
  17. package/calendar/Calendar.d.ts +269 -0
  18. package/calendar/Calendar.vue +75 -59
  19. package/calendar/calendar.cjs.js +223 -259
  20. package/calendar/calendar.cjs.min.js +1 -1
  21. package/calendar/calendar.esm.js +223 -260
  22. package/calendar/calendar.esm.min.js +1 -1
  23. package/calendar/calendar.js +224 -261
  24. package/calendar/calendar.min.js +1 -1
  25. package/carousel/Carousel.d.ts +154 -0
  26. package/carousel/Carousel.vue +27 -14
  27. package/carousel/carousel.cjs.js +64 -65
  28. package/carousel/carousel.cjs.min.js +1 -1
  29. package/carousel/carousel.esm.js +64 -66
  30. package/carousel/carousel.esm.min.js +1 -1
  31. package/carousel/carousel.js +65 -67
  32. package/carousel/carousel.min.js +1 -1
  33. package/cascadeselect/CascadeSelect.d.ts +133 -0
  34. package/cascadeselect/CascadeSelect.vue +15 -12
  35. package/cascadeselect/CascadeSelectSub.vue +7 -3
  36. package/cascadeselect/cascadeselect.cjs.js +63 -66
  37. package/cascadeselect/cascadeselect.cjs.min.js +1 -1
  38. package/cascadeselect/cascadeselect.esm.js +63 -67
  39. package/cascadeselect/cascadeselect.esm.min.js +1 -1
  40. package/cascadeselect/cascadeselect.js +64 -68
  41. package/cascadeselect/cascadeselect.min.js +1 -1
  42. package/checkbox/Checkbox.d.ts +60 -0
  43. package/checkbox/Checkbox.vue +7 -5
  44. package/checkbox/checkbox.cjs.js +17 -15
  45. package/checkbox/checkbox.cjs.min.js +1 -1
  46. package/checkbox/checkbox.esm.js +17 -16
  47. package/checkbox/checkbox.esm.min.js +1 -1
  48. package/checkbox/checkbox.js +18 -17
  49. package/checkbox/checkbox.min.js +1 -1
  50. package/chips/Chips.d.ts +80 -0
  51. package/chips/Chips.vue +9 -5
  52. package/chips/chips.cjs.js +23 -24
  53. package/chips/chips.cjs.min.js +1 -1
  54. package/chips/chips.esm.js +23 -25
  55. package/chips/chips.esm.min.js +1 -1
  56. package/chips/chips.js +24 -26
  57. package/chips/chips.min.js +1 -1
  58. package/colorpicker/ColorPicker.d.ts +76 -0
  59. package/colorpicker/ColorPicker.vue +11 -9
  60. package/colorpicker/colorpicker.cjs.js +28 -27
  61. package/colorpicker/colorpicker.cjs.min.js +1 -1
  62. package/colorpicker/colorpicker.esm.js +28 -28
  63. package/colorpicker/colorpicker.esm.min.js +1 -1
  64. package/colorpicker/colorpicker.js +29 -29
  65. package/colorpicker/colorpicker.min.js +1 -1
  66. package/column/Column.d.ts +303 -2
  67. package/column/Column.vue +3 -0
  68. package/column/column.cjs.js +7 -0
  69. package/column/column.cjs.min.js +1 -1
  70. package/column/column.esm.js +3 -0
  71. package/column/column.esm.min.js +1 -1
  72. package/column/column.js +7 -2
  73. package/column/column.min.js +1 -1
  74. package/columngroup/ColumnGroup.d.ts +34 -0
  75. package/columngroup/ColumnGroup.vue +3 -0
  76. package/columngroup/columngroup.cjs.js +7 -0
  77. package/columngroup/columngroup.cjs.min.js +1 -1
  78. package/columngroup/columngroup.esm.js +3 -0
  79. package/columngroup/columngroup.esm.min.js +1 -1
  80. package/columngroup/columngroup.js +7 -2
  81. package/columngroup/columngroup.min.js +1 -1
  82. package/config/PrimeVue.d.ts +163 -2
  83. package/confirmdialog/ConfirmDialog.d.ts +14 -7
  84. package/contextmenu/ContextMenu.d.ts +1 -1
  85. package/core/core.js +448 -331
  86. package/core/core.min.js +9 -9
  87. package/datatable/BodyCell.vue +29 -13
  88. package/datatable/ColumnFilter.vue +49 -20
  89. package/datatable/DataTable.d.ts +188 -1
  90. package/datatable/DataTable.vue +25 -14
  91. package/datatable/FooterCell.vue +15 -1
  92. package/datatable/HeaderCell.vue +31 -6
  93. package/datatable/HeaderCheckbox.vue +35 -5
  94. package/datatable/RowCheckbox.vue +36 -5
  95. package/datatable/RowRadioButton.vue +26 -6
  96. package/datatable/TableBody.vue +41 -11
  97. package/datatable/TableFooter.vue +31 -5
  98. package/datatable/TableHeader.vue +53 -6
  99. package/datatable/datatable.cjs.js +559 -376
  100. package/datatable/datatable.cjs.min.js +1 -1
  101. package/datatable/datatable.esm.js +559 -377
  102. package/datatable/datatable.esm.min.js +1 -1
  103. package/datatable/datatable.js +560 -378
  104. package/datatable/datatable.min.js +1 -1
  105. package/dataview/DataView.d.ts +72 -0
  106. package/dataview/DataView.vue +13 -8
  107. package/dataview/dataview.cjs.js +33 -37
  108. package/dataview/dataview.cjs.min.js +1 -1
  109. package/dataview/dataview.esm.js +33 -38
  110. package/dataview/dataview.esm.min.js +1 -1
  111. package/dataview/dataview.js +33 -38
  112. package/dataview/dataview.min.js +1 -1
  113. package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +65 -0
  114. package/dataviewlayoutoptions/DataViewLayoutOptions.vue +7 -5
  115. package/dataviewlayoutoptions/dataviewlayoutoptions.cjs.js +19 -17
  116. package/dataviewlayoutoptions/dataviewlayoutoptions.cjs.min.js +1 -1
  117. package/dataviewlayoutoptions/dataviewlayoutoptions.esm.js +19 -18
  118. package/dataviewlayoutoptions/dataviewlayoutoptions.esm.min.js +1 -1
  119. package/dataviewlayoutoptions/dataviewlayoutoptions.js +20 -19
  120. package/dataviewlayoutoptions/dataviewlayoutoptions.min.js +1 -1
  121. package/dialog/Dialog.d.ts +6 -4
  122. package/dialog/Dialog.vue +2 -3
  123. package/dialog/dialog.cjs.js +4 -5
  124. package/dialog/dialog.cjs.min.js +1 -1
  125. package/dialog/dialog.esm.js +4 -5
  126. package/dialog/dialog.esm.min.js +1 -1
  127. package/dialog/dialog.js +4 -5
  128. package/dialog/dialog.min.js +1 -1
  129. package/dropdown/Dropdown.d.ts +162 -1
  130. package/dropdown/Dropdown.vue +44 -25
  131. package/dropdown/dropdown.cjs.js +97 -93
  132. package/dropdown/dropdown.cjs.min.js +1 -1
  133. package/dropdown/dropdown.esm.js +97 -94
  134. package/dropdown/dropdown.esm.min.js +1 -1
  135. package/dropdown/dropdown.js +98 -95
  136. package/dropdown/dropdown.min.js +1 -1
  137. package/editor/Editor.d.ts +67 -0
  138. package/editor/Editor.vue +35 -33
  139. package/editor/editor.cjs.js +88 -73
  140. package/editor/editor.cjs.min.js +1 -1
  141. package/editor/editor.esm.js +85 -74
  142. package/editor/editor.esm.min.js +1 -1
  143. package/editor/editor.js +89 -75
  144. package/editor/editor.min.js +1 -1
  145. package/fileupload/FileUpload.d.ts +23 -23
  146. package/fileupload/FileUpload.vue +3 -3
  147. package/fileupload/fileupload.cjs.js +4 -4
  148. package/fileupload/fileupload.cjs.min.js +1 -1
  149. package/fileupload/fileupload.esm.js +4 -4
  150. package/fileupload/fileupload.esm.min.js +1 -1
  151. package/fileupload/fileupload.js +4 -4
  152. package/fileupload/fileupload.min.js +1 -1
  153. package/galleria/Galleria.d.ts +196 -0
  154. package/galleria/Galleria.vue +5 -3
  155. package/galleria/GalleriaContent.vue +10 -6
  156. package/galleria/GalleriaItem.vue +12 -9
  157. package/galleria/GalleriaThumbnails.vue +46 -9
  158. package/galleria/galleria.cjs.js +106 -104
  159. package/galleria/galleria.cjs.min.js +1 -1
  160. package/galleria/galleria.esm.js +106 -105
  161. package/galleria/galleria.esm.min.js +1 -1
  162. package/galleria/galleria.js +107 -106
  163. package/galleria/galleria.min.js +1 -1
  164. package/image/Image.d.ts +170 -0
  165. package/image/Image.vue +49 -21
  166. package/image/image.cjs.js +94 -59
  167. package/image/image.cjs.min.js +1 -1
  168. package/image/image.esm.js +94 -60
  169. package/image/image.esm.min.js +1 -1
  170. package/image/image.js +95 -61
  171. package/image/image.min.js +1 -1
  172. package/inputmask/InputMask.d.ts +25 -0
  173. package/inputmask/InputMask.vue +3 -1
  174. package/inputmask/inputmask.cjs.js +9 -3
  175. package/inputmask/inputmask.cjs.min.js +1 -1
  176. package/inputmask/inputmask.esm.js +6 -4
  177. package/inputmask/inputmask.esm.min.js +1 -1
  178. package/inputmask/inputmask.js +10 -5
  179. package/inputmask/inputmask.min.js +1 -1
  180. package/inputnumber/InputNumber.d.ts +69 -0
  181. package/inputnumber/InputNumber.vue +13 -11
  182. package/inputnumber/inputnumber.cjs.js +19 -28
  183. package/inputnumber/inputnumber.cjs.min.js +1 -1
  184. package/inputnumber/inputnumber.esm.js +19 -29
  185. package/inputnumber/inputnumber.esm.min.js +1 -1
  186. package/inputnumber/inputnumber.js +20 -30
  187. package/inputnumber/inputnumber.min.js +1 -1
  188. package/inputswitch/InputSwitch.d.ts +51 -0
  189. package/inputswitch/InputSwitch.vue +7 -4
  190. package/inputswitch/inputswitch.cjs.js +15 -11
  191. package/inputswitch/inputswitch.cjs.min.js +1 -1
  192. package/inputswitch/inputswitch.esm.js +12 -12
  193. package/inputswitch/inputswitch.esm.min.js +1 -1
  194. package/inputswitch/inputswitch.js +16 -13
  195. package/inputswitch/inputswitch.min.js +1 -1
  196. package/inputtext/InputText.d.ts +25 -0
  197. package/inputtext/InputText.vue +4 -1
  198. package/inputtext/inputtext.cjs.js +9 -3
  199. package/inputtext/inputtext.cjs.min.js +1 -1
  200. package/inputtext/inputtext.esm.js +6 -4
  201. package/inputtext/inputtext.esm.min.js +1 -1
  202. package/inputtext/inputtext.js +10 -5
  203. package/inputtext/inputtext.min.js +1 -1
  204. package/knob/Knob.d.ts +78 -0
  205. package/knob/Knob.vue +8 -4
  206. package/knob/knob.cjs.js +17 -13
  207. package/knob/knob.cjs.min.js +1 -1
  208. package/knob/knob.esm.js +14 -14
  209. package/knob/knob.esm.min.js +1 -1
  210. package/knob/knob.js +18 -15
  211. package/knob/knob.min.js +1 -1
  212. package/listbox/Listbox.d.ts +137 -1
  213. package/listbox/Listbox.vue +28 -15
  214. package/listbox/listbox.cjs.js +83 -78
  215. package/listbox/listbox.cjs.min.js +1 -1
  216. package/listbox/listbox.esm.js +83 -79
  217. package/listbox/listbox.esm.min.js +1 -1
  218. package/listbox/listbox.js +84 -80
  219. package/listbox/listbox.min.js +1 -1
  220. package/megamenu/MegaMenu.d.ts +5 -5
  221. package/menu/Menu.d.ts +4 -4
  222. package/menubar/Menubar.d.ts +1 -1
  223. package/multiselect/MultiSelect.d.ts +223 -1
  224. package/multiselect/MultiSelect.vue +72 -41
  225. package/multiselect/multiselect.cjs.js +156 -151
  226. package/multiselect/multiselect.cjs.min.js +1 -1
  227. package/multiselect/multiselect.esm.js +156 -152
  228. package/multiselect/multiselect.esm.min.js +1 -1
  229. package/multiselect/multiselect.js +157 -153
  230. package/multiselect/multiselect.min.js +1 -1
  231. package/orderlist/OrderList.d.ts +94 -0
  232. package/orderlist/OrderList.vue +38 -18
  233. package/orderlist/orderlist.cjs.js +50 -36
  234. package/orderlist/orderlist.cjs.min.js +1 -1
  235. package/orderlist/orderlist.esm.js +50 -37
  236. package/orderlist/orderlist.esm.min.js +1 -1
  237. package/orderlist/orderlist.js +51 -38
  238. package/orderlist/orderlist.min.js +1 -1
  239. package/organizationchart/OrganizationChart.d.ts +129 -0
  240. package/organizationchart/OrganizationChart.vue +14 -2
  241. package/organizationchart/OrganizationChartNode.vue +37 -16
  242. package/organizationchart/organizationchart.cjs.js +77 -61
  243. package/organizationchart/organizationchart.cjs.min.js +1 -1
  244. package/organizationchart/organizationchart.esm.js +77 -62
  245. package/organizationchart/organizationchart.esm.min.js +1 -1
  246. package/organizationchart/organizationchart.js +78 -63
  247. package/organizationchart/organizationchart.min.js +1 -1
  248. package/package.json +1 -1
  249. package/paginator/CurrentPageReport.vue +5 -1
  250. package/paginator/FirstPageLink.vue +13 -2
  251. package/paginator/JumpToPageDropdown.vue +3 -1
  252. package/paginator/JumpToPageInput.vue +3 -1
  253. package/paginator/LastPageLink.vue +13 -2
  254. package/paginator/NextPageLink.vue +13 -2
  255. package/paginator/PageLinks.vue +12 -2
  256. package/paginator/Paginator.d.ts +133 -0
  257. package/paginator/Paginator.vue +23 -12
  258. package/paginator/PrevPageLink.vue +13 -2
  259. package/paginator/RowsPerPageDropdown.vue +3 -1
  260. package/paginator/paginator.cjs.js +135 -76
  261. package/paginator/paginator.cjs.min.js +1 -1
  262. package/paginator/paginator.esm.js +135 -77
  263. package/paginator/paginator.esm.min.js +1 -1
  264. package/paginator/paginator.js +136 -78
  265. package/paginator/paginator.min.js +1 -1
  266. package/panelmenu/PanelMenu.d.ts +4 -8
  267. package/password/Password.d.ts +104 -0
  268. package/password/Password.vue +11 -9
  269. package/password/password.cjs.js +26 -28
  270. package/password/password.cjs.min.js +1 -1
  271. package/password/password.esm.js +26 -29
  272. package/password/password.esm.min.js +1 -1
  273. package/password/password.js +27 -30
  274. package/password/password.min.js +1 -1
  275. package/picklist/PickList.d.ts +160 -0
  276. package/picklist/PickList.vue +46 -34
  277. package/picklist/picklist.cjs.js +111 -85
  278. package/picklist/picklist.cjs.min.js +1 -1
  279. package/picklist/picklist.esm.js +111 -86
  280. package/picklist/picklist.esm.min.js +1 -1
  281. package/picklist/picklist.js +112 -87
  282. package/picklist/picklist.min.js +1 -1
  283. package/radiobutton/RadioButton.d.ts +55 -0
  284. package/radiobutton/RadioButton.vue +7 -5
  285. package/radiobutton/radiobutton.cjs.js +19 -16
  286. package/radiobutton/radiobutton.cjs.min.js +1 -1
  287. package/radiobutton/radiobutton.esm.js +16 -17
  288. package/radiobutton/radiobutton.esm.min.js +1 -1
  289. package/radiobutton/radiobutton.js +20 -18
  290. package/radiobutton/radiobutton.min.js +1 -1
  291. package/rating/Rating.d.ts +96 -0
  292. package/rating/Rating.vue +32 -9
  293. package/rating/rating.cjs.js +41 -34
  294. package/rating/rating.cjs.min.js +1 -1
  295. package/rating/rating.esm.js +41 -35
  296. package/rating/rating.esm.min.js +1 -1
  297. package/rating/rating.js +42 -36
  298. package/rating/rating.min.js +1 -1
  299. package/row/Row.d.ts +29 -0
  300. package/row/Row.vue +3 -0
  301. package/row/row.cjs.js +7 -0
  302. package/row/row.cjs.min.js +1 -1
  303. package/row/row.esm.js +3 -0
  304. package/row/row.esm.min.js +1 -1
  305. package/row/row.js +7 -2
  306. package/row/row.min.js +1 -1
  307. package/selectbutton/SelectButton.d.ts +68 -0
  308. package/selectbutton/SelectButton.vue +13 -2
  309. package/selectbutton/selectbutton.cjs.js +20 -10
  310. package/selectbutton/selectbutton.cjs.min.js +1 -1
  311. package/selectbutton/selectbutton.esm.js +20 -11
  312. package/selectbutton/selectbutton.esm.min.js +1 -1
  313. package/selectbutton/selectbutton.js +21 -12
  314. package/selectbutton/selectbutton.min.js +1 -1
  315. package/slider/Slider.d.ts +48 -0
  316. package/slider/Slider.vue +7 -2
  317. package/slider/slider.cjs.js +22 -16
  318. package/slider/slider.cjs.min.js +1 -1
  319. package/slider/slider.esm.js +19 -17
  320. package/slider/slider.esm.min.js +1 -1
  321. package/slider/slider.js +23 -18
  322. package/slider/slider.min.js +1 -1
  323. package/splitbutton/SplitButton.d.ts +0 -4
  324. package/splitbutton/SplitButton.vue +2 -2
  325. package/splitbutton/splitbutton.cjs.js +7 -6
  326. package/splitbutton/splitbutton.cjs.min.js +1 -1
  327. package/splitbutton/splitbutton.esm.js +7 -6
  328. package/splitbutton/splitbutton.esm.min.js +1 -1
  329. package/splitbutton/splitbutton.js +7 -6
  330. package/splitbutton/splitbutton.min.js +1 -1
  331. package/splitter/Splitter.d.ts +3 -3
  332. package/textarea/Textarea.d.ts +32 -0
  333. package/textarea/Textarea.vue +4 -1
  334. package/textarea/textarea.cjs.js +9 -3
  335. package/textarea/textarea.cjs.min.js +1 -1
  336. package/textarea/textarea.esm.js +6 -4
  337. package/textarea/textarea.esm.min.js +1 -1
  338. package/textarea/textarea.js +10 -5
  339. package/textarea/textarea.min.js +1 -1
  340. package/timeline/Timeline.d.ts +49 -0
  341. package/timeline/Timeline.vue +9 -7
  342. package/timeline/timeline.cjs.js +19 -21
  343. package/timeline/timeline.cjs.min.js +1 -1
  344. package/timeline/timeline.esm.js +16 -22
  345. package/timeline/timeline.esm.min.js +1 -1
  346. package/timeline/timeline.js +20 -23
  347. package/timeline/timeline.min.js +1 -1
  348. package/toast/Toast.d.ts +4 -0
  349. package/toast/Toast.vue +1 -1
  350. package/toast/toast.cjs.js +3 -3
  351. package/toast/toast.cjs.min.js +1 -1
  352. package/toast/toast.esm.js +3 -3
  353. package/toast/toast.esm.min.js +1 -1
  354. package/toast/toast.js +3 -3
  355. package/toast/toast.min.js +1 -1
  356. package/togglebutton/ToggleButton.d.ts +59 -0
  357. package/togglebutton/ToggleButton.vue +7 -5
  358. package/togglebutton/togglebutton.cjs.js +15 -14
  359. package/togglebutton/togglebutton.cjs.min.js +1 -1
  360. package/togglebutton/togglebutton.esm.js +15 -15
  361. package/togglebutton/togglebutton.esm.min.js +1 -1
  362. package/togglebutton/togglebutton.js +16 -16
  363. package/togglebutton/togglebutton.min.js +1 -1
  364. package/tooltip/Tooltip.d.ts +10 -0
  365. package/tooltip/tooltip.cjs.js +51 -9
  366. package/tooltip/tooltip.cjs.min.js +1 -1
  367. package/tooltip/tooltip.esm.js +52 -10
  368. package/tooltip/tooltip.esm.min.js +1 -1
  369. package/tooltip/tooltip.js +51 -9
  370. package/tooltip/tooltip.min.js +1 -1
  371. package/tree/Tree.d.ts +137 -0
  372. package/tree/Tree.vue +12 -9
  373. package/tree/TreeNode.vue +23 -10
  374. package/tree/tree.cjs.js +85 -79
  375. package/tree/tree.cjs.min.js +1 -1
  376. package/tree/tree.esm.js +85 -80
  377. package/tree/tree.esm.min.js +1 -1
  378. package/tree/tree.js +86 -81
  379. package/tree/tree.min.js +1 -1
  380. package/treeselect/TreeSelect.d.ts +103 -1
  381. package/treeselect/TreeSelect.vue +15 -12
  382. package/treeselect/treeselect.cjs.js +37 -39
  383. package/treeselect/treeselect.cjs.min.js +1 -1
  384. package/treeselect/treeselect.esm.js +37 -40
  385. package/treeselect/treeselect.esm.min.js +1 -1
  386. package/treeselect/treeselect.js +38 -41
  387. package/treeselect/treeselect.min.js +1 -1
  388. package/treetable/BodyCell.vue +38 -10
  389. package/treetable/FooterCell.vue +15 -1
  390. package/treetable/HeaderCell.vue +28 -5
  391. package/treetable/TreeTable.d.ts +162 -0
  392. package/treetable/TreeTable.vue +25 -19
  393. package/treetable/TreeTableRow.vue +5 -0
  394. package/treetable/treetable.cjs.js +205 -158
  395. package/treetable/treetable.cjs.min.js +1 -1
  396. package/treetable/treetable.esm.js +205 -159
  397. package/treetable/treetable.esm.min.js +1 -1
  398. package/treetable/treetable.js +206 -160
  399. package/treetable/treetable.min.js +1 -1
  400. package/tristatecheckbox/TriStateCheckbox.d.ts +93 -0
  401. package/tristatecheckbox/TriStateCheckbox.vue +19 -8
  402. package/tristatecheckbox/tristatecheckbox.cjs.js +31 -22
  403. package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
  404. package/tristatecheckbox/tristatecheckbox.esm.js +31 -23
  405. package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
  406. package/tristatecheckbox/tristatecheckbox.js +32 -24
  407. package/tristatecheckbox/tristatecheckbox.min.js +1 -1
  408. package/ts-helpers.d.ts +3 -1
  409. package/vetur-attributes.json +180 -0
  410. package/vetur-tags.json +94 -39
  411. package/virtualscroller/VirtualScroller.d.ts +97 -0
  412. package/virtualscroller/VirtualScroller.vue +7 -5
  413. package/virtualscroller/virtualscroller.cjs.js +22 -19
  414. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  415. package/virtualscroller/virtualscroller.esm.js +22 -20
  416. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  417. package/virtualscroller/virtualscroller.js +23 -21
  418. package/virtualscroller/virtualscroller.min.js +1 -1
  419. package/web-types.json +467 -3
  420. package/datatable/TableLoadingBody.vue +0 -25
@@ -1 +1 @@
1
- this.primevue=this.primevue||{},this.primevue.galleria=function(e,t,i,n,a,l,s,o,r,c){"use strict";function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var h=d(e),m=d(t),p=d(n),u=d(a),v=d(l),g=d(s),f=d(r),b=d(c),I={name:"GalleriaItem",emits:["start-slideshow","stop-slideshow","update:activeIndex"],props:{circular:{type:Boolean,default:!1},activeIndex:{type:Number,default:0},value:{type:Array,default:null},showItemNavigators:{type:Boolean,default:!0},showIndicators:{type:Boolean,default:!0},slideShowActive:{type:Boolean,default:!0},changeItemOnIndicatorHover:{type:Boolean,default:!0},autoPlay:{type:Boolean,default:!1},templates:{type:null,default:null},id:{type:String,default:null}},mounted(){this.autoPlay&&this.$emit("start-slideshow")},methods:{next(){let e=this.activeIndex+1,t=this.circular&&this.value.length-1===this.activeIndex?0:e;this.$emit("update:activeIndex",t)},prev(){let e=0!==this.activeIndex?this.activeIndex-1:0,t=this.circular&&0===this.activeIndex?this.value.length-1:e;this.$emit("update:activeIndex",t)},stopSlideShow(){this.slideShowActive&&this.stopSlideShow&&this.$emit("stop-slideshow")},navBackward(e){this.stopSlideShow(),this.prev(),e&&e.cancelable&&e.preventDefault()},navForward(e){this.stopSlideShow(),this.next(),e&&e.cancelable&&e.preventDefault()},onIndicatorClick(e){this.stopSlideShow(),this.$emit("update:activeIndex",e)},onIndicatorMouseEnter(e){this.changeItemOnIndicatorHover&&(this.stopSlideShow(),this.$emit("update:activeIndex",e))},onIndicatorKeyDown(e,t){switch(e.code){case"Enter":case"Space":this.stopSlideShow(),this.$emit("update:activeIndex",t),e.preventDefault();break;case"ArrowDown":case"ArrowUp":e.preventDefault()}},isIndicatorItemActive(e){return this.activeIndex===e},isNavBackwardDisabled(){return!this.circular&&0===this.activeIndex},isNavForwardDisabled(){return!this.circular&&this.activeIndex===this.value.length-1},ariaSlideNumber(e){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.slideNumber.replace(/{slideNumber}/g,e):void 0},ariaPageLabel(e){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.pageLabel.replace(/{page}/g,e):void 0}},computed:{activeItem(){return this.value[this.activeIndex]},navBackwardClass(){return["p-galleria-item-prev p-galleria-item-nav p-link",{"p-disabled":this.isNavBackwardDisabled()}]},navForwardClass(){return["p-galleria-item-next p-galleria-item-nav p-link",{"p-disabled":this.isNavForwardDisabled()}]},ariaSlideLabel(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.slide:void 0}},components:{ChevronLeftIcon:v.default,ChevronRightIcon:g.default},directives:{ripple:u.default}};const y={class:"p-galleria-item-wrapper"},x={class:"p-galleria-item-container"},w=["disabled"],k=["id","aria-label","aria-roledescription"],S=["disabled"],C={key:2,class:"p-galleria-caption"},B={key:0,class:"p-galleria-indicators p-reset"},$=["aria-label","aria-selected","aria-controls","onClick","onMouseenter","onKeydown"],V={key:0,type:"button",tabindex:"-1",class:"p-link"};I.render=function(e,t,i,n,a,l){const s=o.resolveDirective("ripple");return o.openBlock(),o.createElementBlock("div",y,[o.createElementVNode("div",x,[i.showItemNavigators?o.withDirectives((o.openBlock(),o.createElementBlock("button",{key:0,type:"button",class:o.normalizeClass(l.navBackwardClass),onClick:t[0]||(t[0]=e=>l.navBackward(e)),disabled:l.isNavBackwardDisabled()},[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(i.templates.previousitemicon||"ChevronLeftIcon"),{class:"p-galleria-item-prev-icon"}))],10,w)),[[s]]):o.createCommentVNode("",!0),o.createElementVNode("div",{id:i.id+"_item_"+i.activeIndex,class:"p-galleria-item",role:"group","aria-label":l.ariaSlideNumber(i.activeIndex+1),"aria-roledescription":l.ariaSlideLabel},[i.templates.item?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(i.templates.item),{key:0,item:l.activeItem},null,8,["item"])):o.createCommentVNode("",!0)],8,k),i.showItemNavigators?o.withDirectives((o.openBlock(),o.createElementBlock("button",{key:1,type:"button",class:o.normalizeClass(l.navForwardClass),onClick:t[1]||(t[1]=e=>l.navForward(e)),disabled:l.isNavForwardDisabled()},[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(i.templates.nextitemicon||"ChevronRightIcon"),{class:"p-galleria-item-next-icon"}))],10,S)),[[s]]):o.createCommentVNode("",!0),i.templates.caption?(o.openBlock(),o.createElementBlock("div",C,[i.templates.caption?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(i.templates.caption),{key:0,item:l.activeItem},null,8,["item"])):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)]),i.showIndicators?(o.openBlock(),o.createElementBlock("ul",B,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,((e,t)=>(o.openBlock(),o.createElementBlock("li",{key:`p-galleria-indicator-${t}`,class:o.normalizeClass(["p-galleria-indicator",{"p-highlight":l.isIndicatorItemActive(t)}]),tabindex:"0","aria-label":l.ariaPageLabel(t+1),"aria-selected":i.activeIndex===t,"aria-controls":i.id+"_item_"+t,onClick:e=>l.onIndicatorClick(t),onMouseenter:e=>l.onIndicatorMouseEnter(t),onKeydown:e=>l.onIndicatorKeyDown(e,t)},[i.templates.indicator?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("button",V)),i.templates.indicator?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(i.templates.indicator),{key:1,index:t},null,8,["index"])):o.createCommentVNode("",!0)],42,$)))),128))])):o.createCommentVNode("",!0)])};var N={name:"GalleriaThumbnails",emits:["stop-slideshow","update:activeIndex"],props:{containerId:{type:String,default:null},value:{type:Array,default:null},numVisible:{type:Number,default:3},activeIndex:{type:Number,default:0},isVertical:{type:Boolean,default:!1},slideShowActive:{type:Boolean,default:!1},circular:{type:Boolean,default:!1},responsiveOptions:{type:Array,default:null},contentHeight:{type:String,default:"300px"},showThumbnailNavigators:{type:Boolean,default:!0},templates:{type:null,default:null},prevButtonProps:{type:null,default:null},nextButtonProps:{type:null,default:null}},startPos:null,thumbnailsStyle:null,sortedResponsiveOptions:null,data(){return{d_numVisible:this.numVisible,d_oldNumVisible:this.numVisible,d_activeIndex:this.activeIndex,d_oldActiveItemIndex:this.activeIndex,totalShiftedItems:0,page:0}},watch:{numVisible(e,t){this.d_numVisible=e,this.d_oldNumVisible=t},activeIndex(e,t){this.d_activeIndex=e,this.d_oldActiveItemIndex=t}},mounted(){this.createStyle(),this.calculatePosition(),this.responsiveOptions&&this.bindDocumentListeners()},updated(){let e=this.totalShiftedItems;this.d_oldNumVisible===this.d_numVisible&&this.d_oldActiveItemIndex===this.d_activeIndex||(e=this.d_activeIndex<=this.getMedianItemIndex()?0:this.value.length-this.d_numVisible+this.getMedianItemIndex()<this.d_activeIndex?this.d_numVisible-this.value.length:this.value.length-this.d_numVisible<this.d_activeIndex&&this.d_numVisible%2==0?-1*this.d_activeIndex+this.getMedianItemIndex()+1:-1*this.d_activeIndex+this.getMedianItemIndex(),e!==this.totalShiftedItems&&(this.totalShiftedItems=e),this.$refs.itemsContainer.style.transform=this.isVertical?`translate3d(0, ${e*(100/this.d_numVisible)}%, 0)`:`translate3d(${e*(100/this.d_numVisible)}%, 0, 0)`,this.d_oldActiveItemIndex!==this.d_activeIndex&&(i.DomHandler.removeClass(this.$refs.itemsContainer,"p-items-hidden"),this.$refs.itemsContainer.style.transition="transform 500ms ease 0s"),this.d_oldActiveItemIndex=this.d_activeIndex,this.d_oldNumVisible=this.d_numVisible)},beforeUnmount(){this.responsiveOptions&&this.unbindDocumentListeners(),this.thumbnailsStyle&&this.thumbnailsStyle.parentNode.removeChild(this.thumbnailsStyle)},methods:{step(e){let t=this.totalShiftedItems+e;e<0&&-1*t+this.d_numVisible>this.value.length-1?t=this.d_numVisible-this.value.length:e>0&&t>0&&(t=0),this.circular&&(e<0&&this.value.length-1===this.d_activeIndex?t=0:e>0&&0===this.d_activeIndex&&(t=this.d_numVisible-this.value.length)),this.$refs.itemsContainer&&(i.DomHandler.removeClass(this.$refs.itemsContainer,"p-items-hidden"),this.$refs.itemsContainer.style.transform=this.isVertical?`translate3d(0, ${t*(100/this.d_numVisible)}%, 0)`:`translate3d(${t*(100/this.d_numVisible)}%, 0, 0)`,this.$refs.itemsContainer.style.transition="transform 500ms ease 0s"),this.totalShiftedItems=t},stopSlideShow(){this.slideShowActive&&this.stopSlideShow&&this.$emit("stop-slideshow")},getMedianItemIndex(){let e=Math.floor(this.d_numVisible/2);return this.d_numVisible%2?e:e-1},navBackward(e){this.stopSlideShow();let t=0!==this.d_activeIndex?this.d_activeIndex-1:0,i=t+this.totalShiftedItems;this.d_numVisible-i-1>this.getMedianItemIndex()&&(-1*this.totalShiftedItems!=0||this.circular)&&this.step(1);let n=this.circular&&0===this.d_activeIndex?this.value.length-1:t;this.$emit("update:activeIndex",n),e.cancelable&&e.preventDefault()},navForward(e){this.stopSlideShow();let t=this.d_activeIndex===this.value.length-1?this.value.length-1:this.d_activeIndex+1;t+this.totalShiftedItems>this.getMedianItemIndex()&&(-1*this.totalShiftedItems<this.getTotalPageNumber()-1||this.circular)&&this.step(-1);let i=this.circular&&this.value.length-1===this.d_activeIndex?0:t;this.$emit("update:activeIndex",i),e.cancelable&&e.preventDefault()},onItemClick(e){this.stopSlideShow();let t=e;if(t!==this.d_activeIndex){const e=t+this.totalShiftedItems;let i=0;t<this.d_activeIndex?(i=this.d_numVisible-e-1-this.getMedianItemIndex(),i>0&&-1*this.totalShiftedItems!=0&&this.step(i)):(i=this.getMedianItemIndex()-e,i<0&&-1*this.totalShiftedItems<this.getTotalPageNumber()-1&&this.step(i)),this.$emit("update:activeIndex",t)}},onThumbnailKeydown(e,t){switch("Enter"!==e.code&&"Space"!==e.code||(this.onItemClick(t),e.preventDefault()),e.code){case"ArrowRight":this.onRightKey();break;case"ArrowLeft":this.onLeftKey();break;case"Home":this.onHomeKey(),e.preventDefault();break;case"End":this.onEndKey(),e.preventDefault();break;case"ArrowUp":case"ArrowDown":e.preventDefault();break;case"Tab":this.onTabKey()}},onRightKey(){const e=i.DomHandler.find(this.$refs.itemsContainer,".p-galleria-thumbnail-item"),t=this.findFocusedIndicatorIndex();this.changedFocusedIndicator(t,t+1===e.length?e.length-1:t+1)},onLeftKey(){const e=this.findFocusedIndicatorIndex();this.changedFocusedIndicator(e,e-1<=0?0:e-1)},onHomeKey(){const e=this.findFocusedIndicatorIndex();this.changedFocusedIndicator(e,0)},onEndKey(){const e=i.DomHandler.find(this.$refs.itemsContainer,".p-galleria-thumbnail-item"),t=this.findFocusedIndicatorIndex();this.changedFocusedIndicator(t,e.length-1)},onTabKey(){const e=[...i.DomHandler.find(this.$refs.itemsContainer,".p-galleria-thumbnail-item")],t=e.findIndex((e=>i.DomHandler.hasClass(e,"p-galleria-thumbnail-item-current"))),n=i.DomHandler.findSingle(this.$refs.itemsContainer,'.p-galleria-thumbnail-item > [tabindex="0"'),a=e.findIndex((e=>e===n.parentElement));e[a].children[0].tabIndex="-1",e[t].children[0].tabIndex="0"},findFocusedIndicatorIndex(){const e=[...i.DomHandler.find(this.$refs.itemsContainer,".p-galleria-thumbnail-item")],t=i.DomHandler.findSingle(this.$refs.itemsContainer,'.p-galleria-thumbnail-item > [tabindex="0"]');return e.findIndex((e=>e===t.parentElement))},changedFocusedIndicator(e,t){const n=i.DomHandler.find(this.$refs.itemsContainer,".p-galleria-thumbnail-item");n[e].children[0].tabIndex="-1",n[t].children[0].tabIndex="0",n[t].children[0].focus()},onTransitionEnd(){this.$refs.itemsContainer&&(i.DomHandler.addClass(this.$refs.itemsContainer,"p-items-hidden"),this.$refs.itemsContainer.style.transition="")},onTouchStart(e){let t=e.changedTouches[0];this.startPos={x:t.pageX,y:t.pageY}},onTouchMove(e){e.cancelable&&e.preventDefault()},onTouchEnd(e){let t=e.changedTouches[0];this.isVertical?this.changePageOnTouch(e,t.pageY-this.startPos.y):this.changePageOnTouch(e,t.pageX-this.startPos.x)},changePageOnTouch(e,t){t<0?this.navForward(e):this.navBackward(e)},getTotalPageNumber(){return this.value.length>this.d_numVisible?this.value.length-this.d_numVisible+1:0},createStyle(){this.thumbnailsStyle||(this.thumbnailsStyle=document.createElement("style"),this.thumbnailsStyle.type="text/css",document.body.appendChild(this.thumbnailsStyle));let e=`\n #${this.containerId} .p-galleria-thumbnail-item {\n flex: 1 0 ${100/this.d_numVisible}%\n }\n `;if(this.responsiveOptions){this.sortedResponsiveOptions=[...this.responsiveOptions],this.sortedResponsiveOptions.sort(((e,t)=>{const i=e.breakpoint,n=t.breakpoint;let a=null;return a=null==i&&null!=n?-1:null!=i&&null==n?1:null==i&&null==n?0:"string"==typeof i&&"string"==typeof n?i.localeCompare(n,void 0,{numeric:!0}):i<n?-1:i>n?1:0,-1*a}));for(let t=0;t<this.sortedResponsiveOptions.length;t++){let i=this.sortedResponsiveOptions[t];e+=`\n @media screen and (max-width: ${i.breakpoint}) {\n #${this.containerId} .p-galleria-thumbnail-item {\n flex: 1 0 ${100/i.numVisible}%\n }\n }\n `}}this.thumbnailsStyle.innerHTML=e},calculatePosition(){if(this.$refs.itemsContainer&&this.sortedResponsiveOptions){let e=window.innerWidth,t={numVisible:this.numVisible};for(let i=0;i<this.sortedResponsiveOptions.length;i++){let n=this.sortedResponsiveOptions[i];parseInt(n.breakpoint,10)>=e&&(t=n)}this.d_numVisible!==t.numVisible&&(this.d_numVisible=t.numVisible)}},bindDocumentListeners(){this.documentResizeListener||(this.documentResizeListener=()=>{this.calculatePosition()},window.addEventListener("resize",this.documentResizeListener))},unbindDocumentListeners(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)},isNavBackwardDisabled(){return!this.circular&&0===this.d_activeIndex||this.value.length<=this.d_numVisible},isNavForwardDisabled(){return!this.circular&&this.d_activeIndex===this.value.length-1||this.value.length<=this.d_numVisible},firstItemAciveIndex(){return-1*this.totalShiftedItems},lastItemActiveIndex(){return this.firstItemAciveIndex()+this.d_numVisible-1},isItemActive(e){return this.firstItemAciveIndex()<=e&&this.lastItemActiveIndex()>=e},ariaPageLabel(e){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.pageLabel.replace(/{page}/g,e):void 0}},computed:{navBackwardClass(){return["p-galleria-thumbnail-prev p-link",{"p-disabled":this.isNavBackwardDisabled()}]},navForwardClass(){return["p-galleria-thumbnail-next p-link",{"p-disabled":this.isNavForwardDisabled()}]},ariaPrevButtonLabel(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.prevPageLabel:void 0},ariaNextButtonLabel(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.nextPageLabel:void 0}},components:{ChevronLeftIcon:v.default,ChevronRightIcon:g.default,ChevronUpIcon:b.default,ChevronDownIcon:f.default},directives:{ripple:u.default}};const D={class:"p-galleria-thumbnail-wrapper"},_={class:"p-galleria-thumbnail-container"},A=["disabled","aria-label"],P=["aria-selected","aria-controls","onKeydown"],E=["tabindex","aria-label","aria-current","onClick"],T=["disabled","aria-label"];N.render=function(e,t,i,n,a,l){const s=o.resolveDirective("ripple");return o.openBlock(),o.createElementBlock("div",D,[o.createElementVNode("div",_,[i.showThumbnailNavigators?o.withDirectives((o.openBlock(),o.createElementBlock("button",o.mergeProps({key:0,class:l.navBackwardClass,disabled:l.isNavBackwardDisabled(),type:"button","aria-label":l.ariaPrevButtonLabel,onClick:t[0]||(t[0]=e=>l.navBackward(e))},i.prevButtonProps),[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(i.templates.previousthumbnailicon||(i.isVertical?"ChevronUpIcon":"ChevronLeftIcon")),{class:"p-galleria-thumbnail-prev-icon"}))],16,A)),[[s]]):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"p-galleria-thumbnail-items-container",style:o.normalizeStyle({height:i.isVertical?i.contentHeight:""})},[o.createElementVNode("div",{ref:"itemsContainer",class:"p-galleria-thumbnail-items",role:"tablist",onTransitionend:t[1]||(t[1]=(...e)=>l.onTransitionEnd&&l.onTransitionEnd(...e)),onTouchstart:t[2]||(t[2]=e=>l.onTouchStart(e)),onTouchmove:t[3]||(t[3]=e=>l.onTouchMove(e)),onTouchend:t[4]||(t[4]=e=>l.onTouchEnd(e))},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,((e,t)=>(o.openBlock(),o.createElementBlock("div",{key:`p-galleria-thumbnail-item-${t}`,class:o.normalizeClass(["p-galleria-thumbnail-item",{"p-galleria-thumbnail-item-current":i.activeIndex===t,"p-galleria-thumbnail-item-active":l.isItemActive(t),"p-galleria-thumbnail-item-start":l.firstItemAciveIndex()===t,"p-galleria-thumbnail-item-end":l.lastItemActiveIndex()===t}]),role:"tab","aria-selected":i.activeIndex===t,"aria-controls":i.containerId+"_item_"+t,onKeydown:e=>l.onThumbnailKeydown(e,t)},[o.createElementVNode("div",{class:"p-galleria-thumbnail-item-content",tabindex:i.activeIndex===t?"0":"-1","aria-label":l.ariaPageLabel(t+1),"aria-current":i.activeIndex===t?"page":void 0,onClick:e=>l.onItemClick(t)},[i.templates.thumbnail?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(i.templates.thumbnail),{key:0,item:e},null,8,["item"])):o.createCommentVNode("",!0)],8,E)],42,P)))),128))],544)],4),i.showThumbnailNavigators?o.withDirectives((o.openBlock(),o.createElementBlock("button",o.mergeProps({key:1,class:l.navForwardClass,disabled:l.isNavForwardDisabled(),type:"button","aria-label":l.ariaNextButtonLabel,onClick:t[5]||(t[5]=e=>l.navForward(e))},i.nextButtonProps),[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(i.templates.nextthumbnailicon||(i.isVertical?"ChevronDownIcon":"ChevronRightIcon")),{class:"p-galleria-thumbnail-prev-icon"}))],16,T)),[[s]]):o.createCommentVNode("",!0)])])};var L={name:"GalleriaContent",inheritAttrs:!1,interval:null,emits:["activeitem-change","mask-hide"],data(){return{id:this.$attrs.id||i.UniqueComponentId(),activeIndex:this.$attrs.activeIndex,numVisible:this.$attrs.numVisible,slideShowActive:!1}},watch:{"$attrs.value":function(e){e&&e.length<this.numVisible&&(this.numVisible=e.length)},"$attrs.activeIndex":function(e){this.activeIndex=e},"$attrs.numVisible":function(e){this.numVisible=e},"$attrs.autoPlay":function(e){e?this.startSlideShow():this.stopSlideShow()}},updated(){this.$emit("activeitem-change",this.activeIndex)},beforeUnmount(){this.slideShowActive&&this.stopSlideShow()},methods:{isAutoPlayActive(){return this.slideShowActive},startSlideShow(){this.interval=setInterval((()=>{let e=this.$attrs.circular&&this.$attrs.value.length-1===this.activeIndex?0:this.activeIndex+1;this.activeIndex=e}),this.$attrs.transitionInterval),this.slideShowActive=!0},stopSlideShow(){this.interval&&clearInterval(this.interval),this.slideShowActive=!1},getPositionClass(e,t){const i=["top","left","bottom","right"].find((e=>e===t));return i?`${e}-${i}`:""},isVertical(){return"left"===this.$attrs.thumbnailsPosition||"right"===this.$attrs.thumbnailsPosition}},computed:{galleriaClass(){const e=this.$attrs.showThumbnails&&this.getPositionClass("p-galleria-thumbnails",this.$attrs.thumbnailsPosition),t=this.$attrs.showIndicators&&this.getPositionClass("p-galleria-indicators",this.$attrs.indicatorsPosition);return["p-galleria p-component",{"p-galleria-fullscreen":this.$attrs.fullScreen,"p-galleria-indicator-onitem":this.$attrs.showIndicatorsOnItem,"p-galleria-item-nav-onhover":this.$attrs.showItemNavigatorsOnHover&&!this.$attrs.fullScreen},e,t,this.$attrs.containerClass]},closeAriaLabel(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0}},components:{GalleriaItem:I,GalleriaThumbnails:N,TimesIcon:p.default},directives:{ripple:u.default}};const H=["id"],O=["aria-label"],F={key:1,class:"p-galleria-header"},R=["aria-live"],z={key:2,class:"p-galleria-footer"};L.render=function(e,t,i,n,a,l){const s=o.resolveComponent("GalleriaItem"),r=o.resolveComponent("GalleriaThumbnails"),c=o.resolveDirective("ripple");return e.$attrs.value&&e.$attrs.value.length>0?(o.openBlock(),o.createElementBlock("div",o.mergeProps({key:0,id:a.id,class:l.galleriaClass,style:e.$attrs.containerStyle},e.$attrs.containerProps),[e.$attrs.fullScreen?o.withDirectives((o.openBlock(),o.createElementBlock("button",{key:0,autofocus:"",type:"button",class:"p-galleria-close p-link","aria-label":l.closeAriaLabel,onClick:t[0]||(t[0]=t=>e.$emit("mask-hide"))},[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.$attrs.templates.closeicon||"TimesIcon"),{class:"p-galleria-close-icon"}))],8,O)),[[c]]):o.createCommentVNode("",!0),e.$attrs.templates&&e.$attrs.templates.header?(o.openBlock(),o.createElementBlock("div",F,[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.$attrs.templates.header)))])):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"p-galleria-content","aria-live":e.$attrs.autoPlay?"polite":"off"},[o.createVNode(s,{id:a.id,activeIndex:a.activeIndex,"onUpdate:activeIndex":t[1]||(t[1]=e=>a.activeIndex=e),slideShowActive:a.slideShowActive,"onUpdate:slideShowActive":t[2]||(t[2]=e=>a.slideShowActive=e),value:e.$attrs.value,circular:e.$attrs.circular,templates:e.$attrs.templates,showIndicators:e.$attrs.showIndicators,changeItemOnIndicatorHover:e.$attrs.changeItemOnIndicatorHover,showItemNavigators:e.$attrs.showItemNavigators,autoPlay:e.$attrs.autoPlay,onStartSlideshow:l.startSlideShow,onStopSlideshow:l.stopSlideShow},null,8,["id","activeIndex","slideShowActive","value","circular","templates","showIndicators","changeItemOnIndicatorHover","showItemNavigators","autoPlay","onStartSlideshow","onStopSlideshow"]),e.$attrs.showThumbnails?(o.openBlock(),o.createBlock(r,{key:0,activeIndex:a.activeIndex,"onUpdate:activeIndex":t[3]||(t[3]=e=>a.activeIndex=e),slideShowActive:a.slideShowActive,"onUpdate:slideShowActive":t[4]||(t[4]=e=>a.slideShowActive=e),containerId:a.id,value:e.$attrs.value,templates:e.$attrs.templates,numVisible:a.numVisible,responsiveOptions:e.$attrs.responsiveOptions,circular:e.$attrs.circular,isVertical:l.isVertical(),contentHeight:e.$attrs.verticalThumbnailViewPortHeight,showThumbnailNavigators:e.$attrs.showThumbnailNavigators,prevButtonProps:e.$attrs.prevButtonProps,nextButtonProps:e.$attrs.nextButtonProps,onStopSlideshow:l.stopSlideShow},null,8,["activeIndex","slideShowActive","containerId","value","templates","numVisible","responsiveOptions","circular","isVertical","contentHeight","showThumbnailNavigators","prevButtonProps","nextButtonProps","onStopSlideshow"])):o.createCommentVNode("",!0)],8,R),e.$attrs.templates&&e.$attrs.templates.footer?(o.openBlock(),o.createElementBlock("div",z,[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.$attrs.templates.footer)))])):o.createCommentVNode("",!0)],16,H)):o.createCommentVNode("",!0)};var K={name:"Galleria",inheritAttrs:!1,emits:["update:activeIndex","update:visible"],props:{id:{type:String,default:null},value:{type:Array,default:null},activeIndex:{type:Number,default:0},fullScreen:{type:Boolean,default:!1},visible:{type:Boolean,default:!1},numVisible:{type:Number,default:3},responsiveOptions:{type:Array,default:null},showItemNavigators:{type:Boolean,default:!1},showThumbnailNavigators:{type:Boolean,default:!0},showItemNavigatorsOnHover:{type:Boolean,default:!1},changeItemOnIndicatorHover:{type:Boolean,default:!1},circular:{type:Boolean,default:!1},autoPlay:{type:Boolean,default:!1},transitionInterval:{type:Number,default:4e3},showThumbnails:{type:Boolean,default:!0},thumbnailsPosition:{type:String,default:"bottom"},verticalThumbnailViewPortHeight:{type:String,default:"300px"},showIndicators:{type:Boolean,default:!1},showIndicatorsOnItem:{type:Boolean,default:!1},indicatorsPosition:{type:String,default:"bottom"},baseZIndex:{type:Number,default:0},maskClass:{type:String,default:null},containerStyle:{type:null,default:null},containerClass:{type:null,default:null},containerProps:{type:null,default:null},prevButtonProps:{type:null,default:null},nextButtonProps:{type:null,default:null}},container:null,mask:null,data(){return{containerVisible:this.visible}},updated(){this.fullScreen&&this.visible&&(this.containerVisible=this.visible)},beforeUnmount(){this.fullScreen&&i.DomHandler.removeClass(document.body,"p-overflow-hidden"),this.mask=null,this.container&&(i.ZIndexUtils.clear(this.container),this.container=null)},methods:{onBeforeEnter(e){i.ZIndexUtils.set("modal",e,this.baseZIndex||this.$primevue.config.zIndex.modal)},onEnter(e){this.mask.style.zIndex=String(parseInt(e.style.zIndex,10)-1),i.DomHandler.addClass(document.body,"p-overflow-hidden"),this.focus()},onBeforeLeave(){i.DomHandler.addClass(this.mask,"p-component-overlay-leave")},onAfterLeave(e){i.ZIndexUtils.clear(e),this.containerVisible=!1,i.DomHandler.removeClass(document.body,"p-overflow-hidden")},onActiveItemChange(e){this.activeIndex!==e&&this.$emit("update:activeIndex",e)},maskHide(){this.$emit("update:visible",!1)},containerRef(e){this.container=e},maskRef(e){this.mask=e},focus(){let e=this.container.$el.querySelector("[autofocus]");e&&e.focus()}},computed:{maskContentClass(){return["p-galleria-mask p-component-overlay p-component-overlay-enter",this.maskClass,{"p-input-filled":"filled"===this.$primevue.config.inputStyle,"p-ripple-disabled":!1===this.$primevue.config.ripple}]}},components:{GalleriaContent:L,Portal:m.default},directives:{focustrap:h.default}};const M=["role","aria-modal"];return function(e,t){void 0===t&&(t={});var i=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===i&&n.firstChild?n.insertBefore(a,n.firstChild):n.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}("\n.p-galleria-content {\n display: flex;\n flex-direction: column;\n}\n.p-galleria-item-wrapper {\n display: flex;\n flex-direction: column;\n position: relative;\n}\n.p-galleria-item-container {\n position: relative;\n display: flex;\n height: 100%;\n}\n.p-galleria-item-nav {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n}\n.p-galleria-item-prev {\n left: 0;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n.p-galleria-item-next {\n right: 0;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.p-galleria-item {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n width: 100%;\n}\n.p-galleria-item-nav-onhover .p-galleria-item-nav {\n pointer-events: none;\n opacity: 0;\n transition: opacity 0.2s ease-in-out;\n}\n.p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav {\n pointer-events: all;\n opacity: 1;\n}\n.p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav.p-disabled {\n pointer-events: none;\n}\n.p-galleria-caption {\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n}\n\n/* Thumbnails */\n.p-galleria-thumbnail-wrapper {\n display: flex;\n flex-direction: column;\n overflow: auto;\n flex-shrink: 0;\n}\n.p-galleria-thumbnail-prev,\n.p-galleria-thumbnail-next {\n align-self: center;\n flex: 0 0 auto;\n display: flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n position: relative;\n}\n.p-galleria-thumbnail-prev span,\n.p-galleria-thumbnail-next span {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.p-galleria-thumbnail-container {\n display: flex;\n flex-direction: row;\n}\n.p-galleria-thumbnail-items-container {\n overflow: hidden;\n width: 100%;\n}\n.p-galleria-thumbnail-items {\n display: flex;\n}\n.p-galleria-thumbnail-item {\n overflow: auto;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n opacity: 0.5;\n}\n.p-galleria-thumbnail-item:hover {\n opacity: 1;\n transition: opacity 0.3s;\n}\n.p-galleria-thumbnail-item-current {\n opacity: 1;\n}\n\n/* Positions */\n/* Thumbnails */\n.p-galleria-thumbnails-left .p-galleria-content,\n.p-galleria-thumbnails-right .p-galleria-content {\n flex-direction: row;\n}\n.p-galleria-thumbnails-left .p-galleria-item-wrapper,\n.p-galleria-thumbnails-right .p-galleria-item-wrapper {\n flex-direction: row;\n}\n.p-galleria-thumbnails-left .p-galleria-item-wrapper,\n.p-galleria-thumbnails-top .p-galleria-item-wrapper {\n order: 2;\n}\n.p-galleria-thumbnails-left .p-galleria-thumbnail-wrapper,\n.p-galleria-thumbnails-top .p-galleria-thumbnail-wrapper {\n order: 1;\n}\n.p-galleria-thumbnails-left .p-galleria-thumbnail-container,\n.p-galleria-thumbnails-right .p-galleria-thumbnail-container {\n flex-direction: column;\n flex-grow: 1;\n}\n.p-galleria-thumbnails-left .p-galleria-thumbnail-items,\n.p-galleria-thumbnails-right .p-galleria-thumbnail-items {\n flex-direction: column;\n height: 100%;\n}\n\n/* Indicators */\n.p-galleria-indicators {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.p-galleria-indicator > button {\n display: inline-flex;\n align-items: center;\n}\n.p-galleria-indicators-left .p-galleria-item-wrapper,\n.p-galleria-indicators-right .p-galleria-item-wrapper {\n flex-direction: row;\n align-items: center;\n}\n.p-galleria-indicators-left .p-galleria-item-container,\n.p-galleria-indicators-top .p-galleria-item-container {\n order: 2;\n}\n.p-galleria-indicators-left .p-galleria-indicators,\n.p-galleria-indicators-top .p-galleria-indicators {\n order: 1;\n}\n.p-galleria-indicators-left .p-galleria-indicators,\n.p-galleria-indicators-right .p-galleria-indicators {\n flex-direction: column;\n}\n.p-galleria-indicator-onitem .p-galleria-indicators {\n position: absolute;\n display: flex;\n}\n.p-galleria-indicator-onitem.p-galleria-indicators-top .p-galleria-indicators {\n top: 0;\n left: 0;\n width: 100%;\n align-items: flex-start;\n}\n.p-galleria-indicator-onitem.p-galleria-indicators-right .p-galleria-indicators {\n right: 0;\n top: 0;\n height: 100%;\n align-items: flex-end;\n}\n.p-galleria-indicator-onitem.p-galleria-indicators-bottom .p-galleria-indicators {\n bottom: 0;\n left: 0;\n width: 100%;\n align-items: flex-end;\n}\n.p-galleria-indicator-onitem.p-galleria-indicators-left .p-galleria-indicators {\n left: 0;\n top: 0;\n height: 100%;\n align-items: flex-start;\n}\n\n/* FullScreen */\n.p-galleria-mask {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.p-galleria-close {\n position: absolute;\n top: 0;\n right: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n}\n.p-galleria-mask .p-galleria-item-nav {\n position: fixed;\n top: 50%;\n margin-top: -0.5rem;\n}\n\n/* Animation */\n.p-galleria-enter-active {\n transition: all 150ms cubic-bezier(0, 0, 0.2, 1);\n}\n.p-galleria-leave-active {\n transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);\n}\n.p-galleria-enter-from,\n.p-galleria-leave-to {\n opacity: 0;\n transform: scale(0.7);\n}\n.p-galleria-enter-active .p-galleria-item-nav {\n opacity: 0;\n}\n\n/* Keyboard Support */\n.p-items-hidden .p-galleria-thumbnail-item {\n visibility: hidden;\n}\n.p-items-hidden .p-galleria-thumbnail-item.p-galleria-thumbnail-item-active {\n visibility: visible;\n}\n"),K.render=function(e,t,i,n,a,l){const s=o.resolveComponent("GalleriaContent"),r=o.resolveComponent("Portal"),c=o.resolveDirective("focustrap");return i.fullScreen?(o.openBlock(),o.createBlock(r,{key:0},{default:o.withCtx((()=>[a.containerVisible?(o.openBlock(),o.createElementBlock("div",{key:0,ref:l.maskRef,class:o.normalizeClass(l.maskContentClass),role:i.fullScreen?"dialog":"region","aria-modal":i.fullScreen?"true":void 0},[o.createVNode(o.Transition,{name:"p-galleria",onBeforeEnter:l.onBeforeEnter,onEnter:l.onEnter,onBeforeLeave:l.onBeforeLeave,onAfterLeave:l.onAfterLeave,appear:""},{default:o.withCtx((()=>[i.visible?o.withDirectives((o.openBlock(),o.createBlock(s,o.mergeProps({key:0,ref:l.containerRef,onMaskHide:l.maskHide,templates:e.$slots,onActiveitemChange:l.onActiveItemChange},e.$props),null,16,["onMaskHide","templates","onActiveitemChange"])),[[c]]):o.createCommentVNode("",!0)])),_:1},8,["onBeforeEnter","onEnter","onBeforeLeave","onAfterLeave"])],10,M)):o.createCommentVNode("",!0)])),_:1})):(o.openBlock(),o.createBlock(s,o.mergeProps({key:1,templates:e.$slots,onActiveitemChange:l.onActiveItemChange},e.$props),null,16,["templates","onActiveitemChange"]))},K}(primevue.focustrap,primevue.portal,primevue.utils,primevue.icons.times,primevue.ripple,primevue.icons.chevronleft,primevue.icons.chevronright,Vue,primevue.icons.chevrondown,primevue.icons.chevronup);
1
+ this.primevue=this.primevue||{},this.primevue.galleria=function(e,t,i,n,a,l,s,o,r,c,d){"use strict";function m(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var p=m(e),h=m(t),u=m(i),v=m(a),g=m(l),b=m(s),f=m(o),I=m(c),y=m(d),x={name:"GalleriaItem",extends:p.default,emits:["start-slideshow","stop-slideshow","update:activeIndex"],props:{circular:{type:Boolean,default:!1},activeIndex:{type:Number,default:0},value:{type:Array,default:null},showItemNavigators:{type:Boolean,default:!0},showIndicators:{type:Boolean,default:!0},slideShowActive:{type:Boolean,default:!0},changeItemOnIndicatorHover:{type:Boolean,default:!0},autoPlay:{type:Boolean,default:!1},templates:{type:null,default:null},id:{type:String,default:null}},mounted(){this.autoPlay&&this.$emit("start-slideshow")},methods:{next(){let e=this.activeIndex+1,t=this.circular&&this.value.length-1===this.activeIndex?0:e;this.$emit("update:activeIndex",t)},prev(){let e=0!==this.activeIndex?this.activeIndex-1:0,t=this.circular&&0===this.activeIndex?this.value.length-1:e;this.$emit("update:activeIndex",t)},stopSlideShow(){this.slideShowActive&&this.stopSlideShow&&this.$emit("stop-slideshow")},navBackward(e){this.stopSlideShow(),this.prev(),e&&e.cancelable&&e.preventDefault()},navForward(e){this.stopSlideShow(),this.next(),e&&e.cancelable&&e.preventDefault()},onIndicatorClick(e){this.stopSlideShow(),this.$emit("update:activeIndex",e)},onIndicatorMouseEnter(e){this.changeItemOnIndicatorHover&&(this.stopSlideShow(),this.$emit("update:activeIndex",e))},onIndicatorKeyDown(e,t){switch(e.code){case"Enter":case"Space":this.stopSlideShow(),this.$emit("update:activeIndex",t),e.preventDefault();break;case"ArrowDown":case"ArrowUp":e.preventDefault()}},isIndicatorItemActive(e){return this.activeIndex===e},isNavBackwardDisabled(){return!this.circular&&0===this.activeIndex},isNavForwardDisabled(){return!this.circular&&this.activeIndex===this.value.length-1},ariaSlideNumber(e){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.slideNumber.replace(/{slideNumber}/g,e):void 0},ariaPageLabel(e){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.pageLabel.replace(/{page}/g,e):void 0}},computed:{activeItem(){return this.value[this.activeIndex]},navBackwardClass(){return["p-galleria-item-prev p-galleria-item-nav p-link",{"p-disabled":this.isNavBackwardDisabled()}]},navForwardClass(){return["p-galleria-item-next p-galleria-item-nav p-link",{"p-disabled":this.isNavForwardDisabled()}]},ariaSlideLabel(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.slide:void 0}},components:{ChevronLeftIcon:b.default,ChevronRightIcon:f.default},directives:{ripple:g.default}};const w=["disabled"],k=["id","aria-label","aria-roledescription"],B=["disabled"],S=["aria-label","aria-selected","aria-controls","onClick","onMouseenter","onKeydown"],C={key:0,type:"button",tabindex:"-1",class:"p-link"};x.render=function(e,t,i,n,a,l){const s=r.resolveDirective("ripple");return r.openBlock(),r.createElementBlock("div",r.mergeProps({class:"p-galleria-item-wrapper"},e.ptm("itemWrapper")),[r.createElementVNode("div",r.mergeProps({class:"p-galleria-item-container"},e.ptm("itemContainer")),[i.showItemNavigators?r.withDirectives((r.openBlock(),r.createElementBlock("button",r.mergeProps({key:0,type:"button",class:l.navBackwardClass,onClick:t[0]||(t[0]=e=>l.navBackward(e)),disabled:l.isNavBackwardDisabled()},e.ptm("previousItemButton")),[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.templates.previousitemicon||"ChevronLeftIcon"),r.mergeProps({class:"p-galleria-item-prev-icon"},e.ptm("previousItemIcon")),null,16))],16,w)),[[s]]):r.createCommentVNode("",!0),r.createElementVNode("div",r.mergeProps({id:i.id+"_item_"+i.activeIndex,class:"p-galleria-item",role:"group","aria-label":l.ariaSlideNumber(i.activeIndex+1),"aria-roledescription":l.ariaSlideLabel},e.ptm("item")),[i.templates.item?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.templates.item),{key:0,item:l.activeItem},null,8,["item"])):r.createCommentVNode("",!0)],16,k),i.showItemNavigators?r.withDirectives((r.openBlock(),r.createElementBlock("button",r.mergeProps({key:1,type:"button",class:l.navForwardClass,onClick:t[1]||(t[1]=e=>l.navForward(e)),disabled:l.isNavForwardDisabled()},e.ptm("nextItemButton")),[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.templates.nextitemicon||"ChevronRightIcon"),r.mergeProps({class:"p-galleria-item-next-icon"},e.ptm("nextItemIcon")),null,16))],16,B)),[[s]]):r.createCommentVNode("",!0),i.templates.caption?(r.openBlock(),r.createElementBlock("div",r.mergeProps({key:2,class:"p-galleria-caption"},e.ptm("caption")),[i.templates.caption?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.templates.caption),{key:0,item:l.activeItem},null,8,["item"])):r.createCommentVNode("",!0)],16)):r.createCommentVNode("",!0)],16),i.showIndicators?(r.openBlock(),r.createElementBlock("ul",r.mergeProps({key:0,class:"p-galleria-indicators p-reset"},e.ptm("indicators")),[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.value,((t,n)=>(r.openBlock(),r.createElementBlock("li",r.mergeProps({key:`p-galleria-indicator-${n}`,class:["p-galleria-indicator",{"p-highlight":l.isIndicatorItemActive(n)}],tabindex:"0","aria-label":l.ariaPageLabel(n+1),"aria-selected":i.activeIndex===n,"aria-controls":i.id+"_item_"+n,onClick:e=>l.onIndicatorClick(n),onMouseenter:e=>l.onIndicatorMouseEnter(n),onKeydown:e=>l.onIndicatorKeyDown(e,n)},e.ptm("indicator")),[i.templates.indicator?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("button",C)),i.templates.indicator?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.templates.indicator),{key:1,index:n},null,8,["index"])):r.createCommentVNode("",!0)],16,S)))),128))],16)):r.createCommentVNode("",!0)],16)};var $={name:"GalleriaThumbnails",extends:p.default,emits:["stop-slideshow","update:activeIndex"],props:{containerId:{type:String,default:null},value:{type:Array,default:null},numVisible:{type:Number,default:3},activeIndex:{type:Number,default:0},isVertical:{type:Boolean,default:!1},slideShowActive:{type:Boolean,default:!1},circular:{type:Boolean,default:!1},responsiveOptions:{type:Array,default:null},contentHeight:{type:String,default:"300px"},showThumbnailNavigators:{type:Boolean,default:!0},templates:{type:null,default:null},prevButtonProps:{type:null,default:null},nextButtonProps:{type:null,default:null}},startPos:null,thumbnailsStyle:null,sortedResponsiveOptions:null,data(){return{d_numVisible:this.numVisible,d_oldNumVisible:this.numVisible,d_activeIndex:this.activeIndex,d_oldActiveItemIndex:this.activeIndex,totalShiftedItems:0,page:0}},watch:{numVisible(e,t){this.d_numVisible=e,this.d_oldNumVisible=t},activeIndex(e,t){this.d_activeIndex=e,this.d_oldActiveItemIndex=t}},mounted(){this.createStyle(),this.calculatePosition(),this.responsiveOptions&&this.bindDocumentListeners()},updated(){let e=this.totalShiftedItems;this.d_oldNumVisible===this.d_numVisible&&this.d_oldActiveItemIndex===this.d_activeIndex||(e=this.d_activeIndex<=this.getMedianItemIndex()?0:this.value.length-this.d_numVisible+this.getMedianItemIndex()<this.d_activeIndex?this.d_numVisible-this.value.length:this.value.length-this.d_numVisible<this.d_activeIndex&&this.d_numVisible%2==0?-1*this.d_activeIndex+this.getMedianItemIndex()+1:-1*this.d_activeIndex+this.getMedianItemIndex(),e!==this.totalShiftedItems&&(this.totalShiftedItems=e),this.$refs.itemsContainer.style.transform=this.isVertical?`translate3d(0, ${e*(100/this.d_numVisible)}%, 0)`:`translate3d(${e*(100/this.d_numVisible)}%, 0, 0)`,this.d_oldActiveItemIndex!==this.d_activeIndex&&(n.DomHandler.removeClass(this.$refs.itemsContainer,"p-items-hidden"),this.$refs.itemsContainer.style.transition="transform 500ms ease 0s"),this.d_oldActiveItemIndex=this.d_activeIndex,this.d_oldNumVisible=this.d_numVisible)},beforeUnmount(){this.responsiveOptions&&this.unbindDocumentListeners(),this.thumbnailsStyle&&this.thumbnailsStyle.parentNode.removeChild(this.thumbnailsStyle)},methods:{step(e){let t=this.totalShiftedItems+e;e<0&&-1*t+this.d_numVisible>this.value.length-1?t=this.d_numVisible-this.value.length:e>0&&t>0&&(t=0),this.circular&&(e<0&&this.value.length-1===this.d_activeIndex?t=0:e>0&&0===this.d_activeIndex&&(t=this.d_numVisible-this.value.length)),this.$refs.itemsContainer&&(n.DomHandler.removeClass(this.$refs.itemsContainer,"p-items-hidden"),this.$refs.itemsContainer.style.transform=this.isVertical?`translate3d(0, ${t*(100/this.d_numVisible)}%, 0)`:`translate3d(${t*(100/this.d_numVisible)}%, 0, 0)`,this.$refs.itemsContainer.style.transition="transform 500ms ease 0s"),this.totalShiftedItems=t},stopSlideShow(){this.slideShowActive&&this.stopSlideShow&&this.$emit("stop-slideshow")},getMedianItemIndex(){let e=Math.floor(this.d_numVisible/2);return this.d_numVisible%2?e:e-1},navBackward(e){this.stopSlideShow();let t=0!==this.d_activeIndex?this.d_activeIndex-1:0,i=t+this.totalShiftedItems;this.d_numVisible-i-1>this.getMedianItemIndex()&&(-1*this.totalShiftedItems!=0||this.circular)&&this.step(1);let n=this.circular&&0===this.d_activeIndex?this.value.length-1:t;this.$emit("update:activeIndex",n),e.cancelable&&e.preventDefault()},navForward(e){this.stopSlideShow();let t=this.d_activeIndex===this.value.length-1?this.value.length-1:this.d_activeIndex+1;t+this.totalShiftedItems>this.getMedianItemIndex()&&(-1*this.totalShiftedItems<this.getTotalPageNumber()-1||this.circular)&&this.step(-1);let i=this.circular&&this.value.length-1===this.d_activeIndex?0:t;this.$emit("update:activeIndex",i),e.cancelable&&e.preventDefault()},onItemClick(e){this.stopSlideShow();let t=e;if(t!==this.d_activeIndex){const e=t+this.totalShiftedItems;let i=0;t<this.d_activeIndex?(i=this.d_numVisible-e-1-this.getMedianItemIndex(),i>0&&-1*this.totalShiftedItems!=0&&this.step(i)):(i=this.getMedianItemIndex()-e,i<0&&-1*this.totalShiftedItems<this.getTotalPageNumber()-1&&this.step(i)),this.$emit("update:activeIndex",t)}},onThumbnailKeydown(e,t){switch("Enter"!==e.code&&"Space"!==e.code||(this.onItemClick(t),e.preventDefault()),e.code){case"ArrowRight":this.onRightKey();break;case"ArrowLeft":this.onLeftKey();break;case"Home":this.onHomeKey(),e.preventDefault();break;case"End":this.onEndKey(),e.preventDefault();break;case"ArrowUp":case"ArrowDown":e.preventDefault();break;case"Tab":this.onTabKey()}},onRightKey(){const e=n.DomHandler.find(this.$refs.itemsContainer,".p-galleria-thumbnail-item"),t=this.findFocusedIndicatorIndex();this.changedFocusedIndicator(t,t+1===e.length?e.length-1:t+1)},onLeftKey(){const e=this.findFocusedIndicatorIndex();this.changedFocusedIndicator(e,e-1<=0?0:e-1)},onHomeKey(){const e=this.findFocusedIndicatorIndex();this.changedFocusedIndicator(e,0)},onEndKey(){const e=n.DomHandler.find(this.$refs.itemsContainer,".p-galleria-thumbnail-item"),t=this.findFocusedIndicatorIndex();this.changedFocusedIndicator(t,e.length-1)},onTabKey(){const e=[...n.DomHandler.find(this.$refs.itemsContainer,".p-galleria-thumbnail-item")],t=e.findIndex((e=>n.DomHandler.hasClass(e,"p-galleria-thumbnail-item-current"))),i=n.DomHandler.findSingle(this.$refs.itemsContainer,'.p-galleria-thumbnail-item > [tabindex="0"'),a=e.findIndex((e=>e===i.parentElement));e[a].children[0].tabIndex="-1",e[t].children[0].tabIndex="0"},findFocusedIndicatorIndex(){const e=[...n.DomHandler.find(this.$refs.itemsContainer,".p-galleria-thumbnail-item")],t=n.DomHandler.findSingle(this.$refs.itemsContainer,'.p-galleria-thumbnail-item > [tabindex="0"]');return e.findIndex((e=>e===t.parentElement))},changedFocusedIndicator(e,t){const i=n.DomHandler.find(this.$refs.itemsContainer,".p-galleria-thumbnail-item");i[e].children[0].tabIndex="-1",i[t].children[0].tabIndex="0",i[t].children[0].focus()},onTransitionEnd(){this.$refs.itemsContainer&&(n.DomHandler.addClass(this.$refs.itemsContainer,"p-items-hidden"),this.$refs.itemsContainer.style.transition="")},onTouchStart(e){let t=e.changedTouches[0];this.startPos={x:t.pageX,y:t.pageY}},onTouchMove(e){e.cancelable&&e.preventDefault()},onTouchEnd(e){let t=e.changedTouches[0];this.isVertical?this.changePageOnTouch(e,t.pageY-this.startPos.y):this.changePageOnTouch(e,t.pageX-this.startPos.x)},changePageOnTouch(e,t){t<0?this.navForward(e):this.navBackward(e)},getTotalPageNumber(){return this.value.length>this.d_numVisible?this.value.length-this.d_numVisible+1:0},createStyle(){this.thumbnailsStyle||(this.thumbnailsStyle=document.createElement("style"),this.thumbnailsStyle.type="text/css",document.body.appendChild(this.thumbnailsStyle));let e=`\n #${this.containerId} .p-galleria-thumbnail-item {\n flex: 1 0 ${100/this.d_numVisible}%\n }\n `;if(this.responsiveOptions){this.sortedResponsiveOptions=[...this.responsiveOptions],this.sortedResponsiveOptions.sort(((e,t)=>{const i=e.breakpoint,n=t.breakpoint;let a=null;return a=null==i&&null!=n?-1:null!=i&&null==n?1:null==i&&null==n?0:"string"==typeof i&&"string"==typeof n?i.localeCompare(n,void 0,{numeric:!0}):i<n?-1:i>n?1:0,-1*a}));for(let t=0;t<this.sortedResponsiveOptions.length;t++){let i=this.sortedResponsiveOptions[t];e+=`\n @media screen and (max-width: ${i.breakpoint}) {\n #${this.containerId} .p-galleria-thumbnail-item {\n flex: 1 0 ${100/i.numVisible}%\n }\n }\n `}}this.thumbnailsStyle.innerHTML=e},calculatePosition(){if(this.$refs.itemsContainer&&this.sortedResponsiveOptions){let e=window.innerWidth,t={numVisible:this.numVisible};for(let i=0;i<this.sortedResponsiveOptions.length;i++){let n=this.sortedResponsiveOptions[i];parseInt(n.breakpoint,10)>=e&&(t=n)}this.d_numVisible!==t.numVisible&&(this.d_numVisible=t.numVisible)}},bindDocumentListeners(){this.documentResizeListener||(this.documentResizeListener=()=>{this.calculatePosition()},window.addEventListener("resize",this.documentResizeListener))},unbindDocumentListeners(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)},isNavBackwardDisabled(){return!this.circular&&0===this.d_activeIndex||this.value.length<=this.d_numVisible},isNavForwardDisabled(){return!this.circular&&this.d_activeIndex===this.value.length-1||this.value.length<=this.d_numVisible},firstItemAciveIndex(){return-1*this.totalShiftedItems},lastItemActiveIndex(){return this.firstItemAciveIndex()+this.d_numVisible-1},isItemActive(e){return this.firstItemAciveIndex()<=e&&this.lastItemActiveIndex()>=e},ariaPageLabel(e){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.pageLabel.replace(/{page}/g,e):void 0}},computed:{navBackwardClass(){return["p-galleria-thumbnail-prev p-link",{"p-disabled":this.isNavBackwardDisabled()}]},navForwardClass(){return["p-galleria-thumbnail-next p-link",{"p-disabled":this.isNavForwardDisabled()}]},ariaPrevButtonLabel(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.prevPageLabel:void 0},ariaNextButtonLabel(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.nextPageLabel:void 0}},components:{ChevronLeftIcon:b.default,ChevronRightIcon:f.default,ChevronUpIcon:y.default,ChevronDownIcon:I.default},directives:{ripple:g.default}};const V=["disabled","aria-label"],P=["aria-selected","aria-controls","onKeydown"],N=["tabindex","aria-label","aria-current","onClick"],D=["disabled","aria-label"];$.render=function(e,t,i,n,a,l){const s=r.resolveDirective("ripple");return r.openBlock(),r.createElementBlock("div",r.mergeProps({class:"p-galleria-thumbnail-wrapper"},e.ptm("thumbnailWrapper")),[r.createElementVNode("div",r.mergeProps({class:"p-galleria-thumbnail-container"},e.ptm("thumbnailContainer")),[i.showThumbnailNavigators?r.withDirectives((r.openBlock(),r.createElementBlock("button",r.mergeProps({key:0,class:l.navBackwardClass,disabled:l.isNavBackwardDisabled(),type:"button","aria-label":l.ariaPrevButtonLabel,onClick:t[0]||(t[0]=e=>l.navBackward(e))},{...i.prevButtonProps,...e.ptm("previousThumbnailButton")}),[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.templates.previousthumbnailicon||(i.isVertical?"ChevronUpIcon":"ChevronLeftIcon")),r.mergeProps({class:"p-galleria-thumbnail-prev-icon"},e.ptm("previousThumbnailIcon")),null,16))],16,V)),[[s]]):r.createCommentVNode("",!0),r.createElementVNode("div",r.mergeProps({class:"p-galleria-thumbnail-items-container",style:{height:i.isVertical?i.contentHeight:""}},e.ptm("thumbnailItemsContainer")),[r.createElementVNode("div",r.mergeProps({ref:"itemsContainer",class:"p-galleria-thumbnail-items",role:"tablist",onTransitionend:t[1]||(t[1]=(...e)=>l.onTransitionEnd&&l.onTransitionEnd(...e)),onTouchstart:t[2]||(t[2]=e=>l.onTouchStart(e)),onTouchmove:t[3]||(t[3]=e=>l.onTouchMove(e)),onTouchend:t[4]||(t[4]=e=>l.onTouchEnd(e))},e.ptm("thumbnailItems")),[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.value,((t,n)=>(r.openBlock(),r.createElementBlock("div",r.mergeProps({key:`p-galleria-thumbnail-item-${n}`,class:["p-galleria-thumbnail-item",{"p-galleria-thumbnail-item-current":i.activeIndex===n,"p-galleria-thumbnail-item-active":l.isItemActive(n),"p-galleria-thumbnail-item-start":l.firstItemAciveIndex()===n,"p-galleria-thumbnail-item-end":l.lastItemActiveIndex()===n}],role:"tab","aria-selected":i.activeIndex===n,"aria-controls":i.containerId+"_item_"+n,onKeydown:e=>l.onThumbnailKeydown(e,n)},e.ptm("thumbnailItem")),[r.createElementVNode("div",r.mergeProps({class:"p-galleria-thumbnail-item-content",tabindex:i.activeIndex===n?"0":"-1","aria-label":l.ariaPageLabel(n+1),"aria-current":i.activeIndex===n?"page":void 0,onClick:e=>l.onItemClick(n)},e.ptm("thumbnailItemContent")),[i.templates.thumbnail?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.templates.thumbnail),{key:0,item:t},null,8,["item"])):r.createCommentVNode("",!0)],16,N)],16,P)))),128))],16)],16),i.showThumbnailNavigators?r.withDirectives((r.openBlock(),r.createElementBlock("button",r.mergeProps({key:1,class:l.navForwardClass,disabled:l.isNavForwardDisabled(),type:"button","aria-label":l.ariaNextButtonLabel,onClick:t[5]||(t[5]=e=>l.navForward(e))},{...i.nextButtonProps,...e.ptm("nextThumbnailButton")}),[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(i.templates.nextthumbnailicon||(i.isVertical?"ChevronDownIcon":"ChevronRightIcon")),r.mergeProps({class:"p-galleria-thumbnail-next-icon"},e.ptm("nextThumbnailIcon")),null,16))],16,D)),[[s]]):r.createCommentVNode("",!0)],16)],16)};var _={name:"GalleriaContent",extends:p.default,inheritAttrs:!1,interval:null,emits:["activeitem-change","mask-hide"],data(){return{id:this.$attrs.id||n.UniqueComponentId(),activeIndex:this.$attrs.activeIndex,numVisible:this.$attrs.numVisible,slideShowActive:!1}},watch:{"$attrs.value":function(e){e&&e.length<this.numVisible&&(this.numVisible=e.length)},"$attrs.activeIndex":function(e){this.activeIndex=e},"$attrs.numVisible":function(e){this.numVisible=e},"$attrs.autoPlay":function(e){e?this.startSlideShow():this.stopSlideShow()}},updated(){this.$emit("activeitem-change",this.activeIndex)},beforeUnmount(){this.slideShowActive&&this.stopSlideShow()},methods:{isAutoPlayActive(){return this.slideShowActive},startSlideShow(){this.interval=setInterval((()=>{let e=this.$attrs.circular&&this.$attrs.value.length-1===this.activeIndex?0:this.activeIndex+1;this.activeIndex=e}),this.$attrs.transitionInterval),this.slideShowActive=!0},stopSlideShow(){this.interval&&clearInterval(this.interval),this.slideShowActive=!1},getPositionClass(e,t){const i=["top","left","bottom","right"].find((e=>e===t));return i?`${e}-${i}`:""},isVertical(){return"left"===this.$attrs.thumbnailsPosition||"right"===this.$attrs.thumbnailsPosition}},computed:{galleriaClass(){const e=this.$attrs.showThumbnails&&this.getPositionClass("p-galleria-thumbnails",this.$attrs.thumbnailsPosition),t=this.$attrs.showIndicators&&this.getPositionClass("p-galleria-indicators",this.$attrs.indicatorsPosition);return["p-galleria p-component",{"p-galleria-fullscreen":this.$attrs.fullScreen,"p-galleria-indicator-onitem":this.$attrs.showIndicatorsOnItem,"p-galleria-item-nav-onhover":this.$attrs.showItemNavigatorsOnHover&&!this.$attrs.fullScreen},e,t,this.$attrs.containerClass]},closeAriaLabel(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0}},components:{GalleriaItem:x,GalleriaThumbnails:$,TimesIcon:v.default},directives:{ripple:g.default}};const A=["id"],T=["aria-label"],E=["aria-live"];_.render=function(e,t,i,n,a,l){const s=r.resolveComponent("GalleriaItem"),o=r.resolveComponent("GalleriaThumbnails"),c=r.resolveDirective("ripple");return e.$attrs.value&&e.$attrs.value.length>0?(r.openBlock(),r.createElementBlock("div",r.mergeProps({key:0,id:a.id,class:l.galleriaClass,style:e.$attrs.containerStyle},{...e.$attrs.containerProps,...e.ptm("root")}),[e.$attrs.fullScreen?r.withDirectives((r.openBlock(),r.createElementBlock("button",r.mergeProps({key:0,autofocus:"",type:"button",class:"p-galleria-close p-link","aria-label":l.closeAriaLabel,onClick:t[0]||(t[0]=t=>e.$emit("mask-hide"))},e.ptm("closeButton")),[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.$attrs.templates.closeicon||"TimesIcon"),r.mergeProps({class:"p-galleria-close-icon"},e.ptm("closeIcon")),null,16))],16,T)),[[c]]):r.createCommentVNode("",!0),e.$attrs.templates&&e.$attrs.templates.header?(r.openBlock(),r.createElementBlock("div",r.mergeProps({key:1,class:"p-galleria-header"},e.ptm("header")),[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.$attrs.templates.header)))],16)):r.createCommentVNode("",!0),r.createElementVNode("div",r.mergeProps({class:"p-galleria-content","aria-live":e.$attrs.autoPlay?"polite":"off"},e.ptm("content")),[r.createVNode(s,{id:a.id,activeIndex:a.activeIndex,"onUpdate:activeIndex":t[1]||(t[1]=e=>a.activeIndex=e),slideShowActive:a.slideShowActive,"onUpdate:slideShowActive":t[2]||(t[2]=e=>a.slideShowActive=e),value:e.$attrs.value,circular:e.$attrs.circular,templates:e.$attrs.templates,showIndicators:e.$attrs.showIndicators,changeItemOnIndicatorHover:e.$attrs.changeItemOnIndicatorHover,showItemNavigators:e.$attrs.showItemNavigators,autoPlay:e.$attrs.autoPlay,onStartSlideshow:l.startSlideShow,onStopSlideshow:l.stopSlideShow,pt:e.pt},null,8,["id","activeIndex","slideShowActive","value","circular","templates","showIndicators","changeItemOnIndicatorHover","showItemNavigators","autoPlay","onStartSlideshow","onStopSlideshow","pt"]),e.$attrs.showThumbnails?(r.openBlock(),r.createBlock(o,{key:0,activeIndex:a.activeIndex,"onUpdate:activeIndex":t[3]||(t[3]=e=>a.activeIndex=e),slideShowActive:a.slideShowActive,"onUpdate:slideShowActive":t[4]||(t[4]=e=>a.slideShowActive=e),containerId:a.id,value:e.$attrs.value,templates:e.$attrs.templates,numVisible:a.numVisible,responsiveOptions:e.$attrs.responsiveOptions,circular:e.$attrs.circular,isVertical:l.isVertical(),contentHeight:e.$attrs.verticalThumbnailViewPortHeight,showThumbnailNavigators:e.$attrs.showThumbnailNavigators,prevButtonProps:e.$attrs.prevButtonProps,nextButtonProps:e.$attrs.nextButtonProps,onStopSlideshow:l.stopSlideShow,pt:e.pt},null,8,["activeIndex","slideShowActive","containerId","value","templates","numVisible","responsiveOptions","circular","isVertical","contentHeight","showThumbnailNavigators","prevButtonProps","nextButtonProps","onStopSlideshow","pt"])):r.createCommentVNode("",!0)],16,E),e.$attrs.templates&&e.$attrs.templates.footer?(r.openBlock(),r.createElementBlock("div",r.mergeProps({key:2,class:"p-galleria-footer"},e.ptm("footer")),[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.$attrs.templates.footer)))],16)):r.createCommentVNode("",!0)],16,A)):r.createCommentVNode("",!0)};var L={name:"Galleria",extends:p.default,inheritAttrs:!1,emits:["update:activeIndex","update:visible"],props:{id:{type:String,default:null},value:{type:Array,default:null},activeIndex:{type:Number,default:0},fullScreen:{type:Boolean,default:!1},visible:{type:Boolean,default:!1},numVisible:{type:Number,default:3},responsiveOptions:{type:Array,default:null},showItemNavigators:{type:Boolean,default:!1},showThumbnailNavigators:{type:Boolean,default:!0},showItemNavigatorsOnHover:{type:Boolean,default:!1},changeItemOnIndicatorHover:{type:Boolean,default:!1},circular:{type:Boolean,default:!1},autoPlay:{type:Boolean,default:!1},transitionInterval:{type:Number,default:4e3},showThumbnails:{type:Boolean,default:!0},thumbnailsPosition:{type:String,default:"bottom"},verticalThumbnailViewPortHeight:{type:String,default:"300px"},showIndicators:{type:Boolean,default:!1},showIndicatorsOnItem:{type:Boolean,default:!1},indicatorsPosition:{type:String,default:"bottom"},baseZIndex:{type:Number,default:0},maskClass:{type:String,default:null},containerStyle:{type:null,default:null},containerClass:{type:null,default:null},containerProps:{type:null,default:null},prevButtonProps:{type:null,default:null},nextButtonProps:{type:null,default:null}},container:null,mask:null,data(){return{containerVisible:this.visible}},updated(){this.fullScreen&&this.visible&&(this.containerVisible=this.visible)},beforeUnmount(){this.fullScreen&&n.DomHandler.removeClass(document.body,"p-overflow-hidden"),this.mask=null,this.container&&(n.ZIndexUtils.clear(this.container),this.container=null)},methods:{onBeforeEnter(e){n.ZIndexUtils.set("modal",e,this.baseZIndex||this.$primevue.config.zIndex.modal)},onEnter(e){this.mask.style.zIndex=String(parseInt(e.style.zIndex,10)-1),n.DomHandler.addClass(document.body,"p-overflow-hidden"),this.focus()},onBeforeLeave(){n.DomHandler.addClass(this.mask,"p-component-overlay-leave")},onAfterLeave(e){n.ZIndexUtils.clear(e),this.containerVisible=!1,n.DomHandler.removeClass(document.body,"p-overflow-hidden")},onActiveItemChange(e){this.activeIndex!==e&&this.$emit("update:activeIndex",e)},maskHide(){this.$emit("update:visible",!1)},containerRef(e){this.container=e},maskRef(e){this.mask=e},focus(){let e=this.container.$el.querySelector("[autofocus]");e&&e.focus()}},computed:{maskContentClass(){return["p-galleria-mask p-component-overlay p-component-overlay-enter",this.maskClass,{"p-input-filled":"filled"===this.$primevue.config.inputStyle,"p-ripple-disabled":!1===this.$primevue.config.ripple}]}},components:{GalleriaContent:_,Portal:u.default},directives:{focustrap:h.default}};const H=["role","aria-modal"];return function(e,t){void 0===t&&(t={});var i=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===i&&n.firstChild?n.insertBefore(a,n.firstChild):n.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}("\n.p-galleria-content {\n display: flex;\n flex-direction: column;\n}\n.p-galleria-item-wrapper {\n display: flex;\n flex-direction: column;\n position: relative;\n}\n.p-galleria-item-container {\n position: relative;\n display: flex;\n height: 100%;\n}\n.p-galleria-item-nav {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n}\n.p-galleria-item-prev {\n left: 0;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n.p-galleria-item-next {\n right: 0;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.p-galleria-item {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n width: 100%;\n}\n.p-galleria-item-nav-onhover .p-galleria-item-nav {\n pointer-events: none;\n opacity: 0;\n transition: opacity 0.2s ease-in-out;\n}\n.p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav {\n pointer-events: all;\n opacity: 1;\n}\n.p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav.p-disabled {\n pointer-events: none;\n}\n.p-galleria-caption {\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n}\n\n/* Thumbnails */\n.p-galleria-thumbnail-wrapper {\n display: flex;\n flex-direction: column;\n overflow: auto;\n flex-shrink: 0;\n}\n.p-galleria-thumbnail-prev,\n.p-galleria-thumbnail-next {\n align-self: center;\n flex: 0 0 auto;\n display: flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n position: relative;\n}\n.p-galleria-thumbnail-prev span,\n.p-galleria-thumbnail-next span {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.p-galleria-thumbnail-container {\n display: flex;\n flex-direction: row;\n}\n.p-galleria-thumbnail-items-container {\n overflow: hidden;\n width: 100%;\n}\n.p-galleria-thumbnail-items {\n display: flex;\n}\n.p-galleria-thumbnail-item {\n overflow: auto;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n opacity: 0.5;\n}\n.p-galleria-thumbnail-item:hover {\n opacity: 1;\n transition: opacity 0.3s;\n}\n.p-galleria-thumbnail-item-current {\n opacity: 1;\n}\n\n/* Positions */\n/* Thumbnails */\n.p-galleria-thumbnails-left .p-galleria-content,\n.p-galleria-thumbnails-right .p-galleria-content {\n flex-direction: row;\n}\n.p-galleria-thumbnails-left .p-galleria-item-wrapper,\n.p-galleria-thumbnails-right .p-galleria-item-wrapper {\n flex-direction: row;\n}\n.p-galleria-thumbnails-left .p-galleria-item-wrapper,\n.p-galleria-thumbnails-top .p-galleria-item-wrapper {\n order: 2;\n}\n.p-galleria-thumbnails-left .p-galleria-thumbnail-wrapper,\n.p-galleria-thumbnails-top .p-galleria-thumbnail-wrapper {\n order: 1;\n}\n.p-galleria-thumbnails-left .p-galleria-thumbnail-container,\n.p-galleria-thumbnails-right .p-galleria-thumbnail-container {\n flex-direction: column;\n flex-grow: 1;\n}\n.p-galleria-thumbnails-left .p-galleria-thumbnail-items,\n.p-galleria-thumbnails-right .p-galleria-thumbnail-items {\n flex-direction: column;\n height: 100%;\n}\n\n/* Indicators */\n.p-galleria-indicators {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.p-galleria-indicator > button {\n display: inline-flex;\n align-items: center;\n}\n.p-galleria-indicators-left .p-galleria-item-wrapper,\n.p-galleria-indicators-right .p-galleria-item-wrapper {\n flex-direction: row;\n align-items: center;\n}\n.p-galleria-indicators-left .p-galleria-item-container,\n.p-galleria-indicators-top .p-galleria-item-container {\n order: 2;\n}\n.p-galleria-indicators-left .p-galleria-indicators,\n.p-galleria-indicators-top .p-galleria-indicators {\n order: 1;\n}\n.p-galleria-indicators-left .p-galleria-indicators,\n.p-galleria-indicators-right .p-galleria-indicators {\n flex-direction: column;\n}\n.p-galleria-indicator-onitem .p-galleria-indicators {\n position: absolute;\n display: flex;\n}\n.p-galleria-indicator-onitem.p-galleria-indicators-top .p-galleria-indicators {\n top: 0;\n left: 0;\n width: 100%;\n align-items: flex-start;\n}\n.p-galleria-indicator-onitem.p-galleria-indicators-right .p-galleria-indicators {\n right: 0;\n top: 0;\n height: 100%;\n align-items: flex-end;\n}\n.p-galleria-indicator-onitem.p-galleria-indicators-bottom .p-galleria-indicators {\n bottom: 0;\n left: 0;\n width: 100%;\n align-items: flex-end;\n}\n.p-galleria-indicator-onitem.p-galleria-indicators-left .p-galleria-indicators {\n left: 0;\n top: 0;\n height: 100%;\n align-items: flex-start;\n}\n\n/* FullScreen */\n.p-galleria-mask {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.p-galleria-close {\n position: absolute;\n top: 0;\n right: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n}\n.p-galleria-mask .p-galleria-item-nav {\n position: fixed;\n top: 50%;\n margin-top: -0.5rem;\n}\n\n/* Animation */\n.p-galleria-enter-active {\n transition: all 150ms cubic-bezier(0, 0, 0.2, 1);\n}\n.p-galleria-leave-active {\n transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);\n}\n.p-galleria-enter-from,\n.p-galleria-leave-to {\n opacity: 0;\n transform: scale(0.7);\n}\n.p-galleria-enter-active .p-galleria-item-nav {\n opacity: 0;\n}\n\n/* Keyboard Support */\n.p-items-hidden .p-galleria-thumbnail-item {\n visibility: hidden;\n}\n.p-items-hidden .p-galleria-thumbnail-item.p-galleria-thumbnail-item-active {\n visibility: visible;\n}\n"),L.render=function(e,t,i,n,a,l){const s=r.resolveComponent("GalleriaContent"),o=r.resolveComponent("Portal"),c=r.resolveDirective("focustrap");return i.fullScreen?(r.openBlock(),r.createBlock(o,{key:0},{default:r.withCtx((()=>[a.containerVisible?(r.openBlock(),r.createElementBlock("div",r.mergeProps({key:0,ref:l.maskRef,class:l.maskContentClass,role:i.fullScreen?"dialog":"region","aria-modal":i.fullScreen?"true":void 0},e.ptm("mask")),[r.createVNode(r.Transition,{name:"p-galleria",onBeforeEnter:l.onBeforeEnter,onEnter:l.onEnter,onBeforeLeave:l.onBeforeLeave,onAfterLeave:l.onAfterLeave,appear:""},{default:r.withCtx((()=>[i.visible?r.withDirectives((r.openBlock(),r.createBlock(s,r.mergeProps({key:0,ref:l.containerRef,onMaskHide:l.maskHide,templates:e.$slots,onActiveitemChange:l.onActiveItemChange,pt:e.pt},e.$props),null,16,["onMaskHide","templates","onActiveitemChange","pt"])),[[c]]):r.createCommentVNode("",!0)])),_:1},8,["onBeforeEnter","onEnter","onBeforeLeave","onAfterLeave"])],16,H)):r.createCommentVNode("",!0)])),_:1})):(r.openBlock(),r.createBlock(s,r.mergeProps({key:1,templates:e.$slots,onActiveitemChange:l.onActiveItemChange,pt:e.pt},e.$props),null,16,["templates","onActiveitemChange","pt"]))},L}(primevue.basecomponent,primevue.focustrap,primevue.portal,primevue.utils,primevue.icons.times,primevue.ripple,primevue.icons.chevronleft,primevue.icons.chevronright,Vue,primevue.icons.chevrondown,primevue.icons.chevronup);
package/image/Image.d.ts CHANGED
@@ -9,6 +9,127 @@
9
9
  */
10
10
  import { VNode } from 'vue';
11
11
  import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
12
+ export declare type ImagePassThroughOptionType = ImagePassThroughAttributes | ((options: ImagePassThroughMethodOptions) => ImagePassThroughAttributes) | null | undefined;
13
+
14
+ /**
15
+ * Custom passthrough(pt) option method.
16
+ */
17
+ export interface ImagePassThroughMethodOptions {
18
+ props: ImageProps;
19
+ state: ImageState;
20
+ }
21
+
22
+ /**
23
+ * Custom passthrough(pt) options.
24
+ * @see {@link ImageProps.pt}
25
+ */
26
+ export interface ImagePassThroughOptions {
27
+ /**
28
+ * Uses to pass attributes to the root's DOM element.
29
+ */
30
+ root?: ImagePassThroughOptionType;
31
+ /**
32
+ * Uses to pass attributes to the image's DOM element.
33
+ */
34
+ image?: ImagePassThroughOptionType;
35
+ /**
36
+ * Uses to pass attributes to the button's DOM element.
37
+ */
38
+ button?: ImagePassThroughOptionType;
39
+ /**
40
+ * Uses to pass attributes to the icon's DOM element.
41
+ */
42
+ icon?: ImagePassThroughOptionType;
43
+ /**
44
+ * Uses to pass attributes to the mask's DOM element.
45
+ */
46
+ mask?: ImagePassThroughOptionType;
47
+ /**
48
+ * Uses to pass attributes to the toolbar's DOM element.
49
+ */
50
+ toolbar?: ImagePassThroughOptionType;
51
+ /**
52
+ * Uses to pass attributes to the rotate right button's DOM element.
53
+ */
54
+ rotateRightButton?: ImagePassThroughOptionType;
55
+ /**
56
+ * Uses to pass attributes to the rotate right icon's DOM element.
57
+ */
58
+ rotateRightIcon?: ImagePassThroughOptionType;
59
+ /**
60
+ * Uses to pass attributes to the rotate left button's DOM element.
61
+ */
62
+ rotateLeftButton?: ImagePassThroughOptionType;
63
+ /**
64
+ * Uses to pass attributes to the rotate left icon's DOM element.
65
+ */
66
+ rotateLeftIcon?: ImagePassThroughOptionType;
67
+ /**
68
+ * Uses to pass attributes to the zoom out button's DOM element.
69
+ */
70
+ zoomOutButton?: ImagePassThroughOptionType;
71
+ /**
72
+ * Uses to pass attributes to the zoom out icon's DOM element.
73
+ */
74
+ zoomOutIcon?: ImagePassThroughOptionType;
75
+ /**
76
+ * Uses to pass attributes to the zoom in button's DOM element.
77
+ */
78
+ zoomInButton?: ImagePassThroughOptionType;
79
+ /**
80
+ * Uses to pass attributes to the zoom in icon's DOM element.
81
+ */
82
+ zoomInIcon?: ImagePassThroughOptionType;
83
+ /**
84
+ * Uses to pass attributes to the close button's DOM element.
85
+ */
86
+ closeButton?: ImagePassThroughOptionType;
87
+ /**
88
+ * Uses to pass attributes to the close icon's DOM element.
89
+ */
90
+ closeIcon?: ImagePassThroughOptionType;
91
+ /**
92
+ * Uses to pass attributes to the preview container's DOM element.
93
+ */
94
+ previewContainer?: ImagePassThroughOptionType;
95
+ /**
96
+ * Uses to pass attributes to the preview's DOM element.
97
+ */
98
+ preview?: ImagePassThroughOptionType;
99
+ }
100
+
101
+ /**
102
+ * Custom passthrough attributes for each DOM elements
103
+ */
104
+ export interface ImagePassThroughAttributes {
105
+ [key: string]: any;
106
+ }
107
+
108
+ /**
109
+ * Defines current inline state in Image component.
110
+ */
111
+ export interface ImageState {
112
+ /**
113
+ * Mask visible state as a boolean.
114
+ * @defaultValue false
115
+ */
116
+ maskVisible: boolean;
117
+ /**
118
+ * Preview visible state as a boolean.
119
+ * @defaultValue false
120
+ */
121
+ previewVisible: boolean;
122
+ /**
123
+ * Rotate state as a number.
124
+ * @defaultValue 0
125
+ */
126
+ rotate: number;
127
+ /**
128
+ * Scale state as a boolean.
129
+ * @defaultValue 1
130
+ */
131
+ scale: number;
132
+ }
12
133
 
13
134
  /**
14
135
  * Defines valid properties in Image component.
@@ -32,6 +153,21 @@ export interface ImageProps {
32
153
  * @deprecated since v3.27.0. Use 'indicator' slot.
33
154
  */
34
155
  indicatorIcon?: string;
156
+ /**
157
+ * Disable the zoom-in button
158
+ * @defaultValue false
159
+ */
160
+ zoomInDisabled?: boolean | undefined;
161
+ /**
162
+ * Disable the zoom-out button
163
+ * @defaultValue false
164
+ */
165
+ zoomOutDisabled?: boolean | undefined;
166
+ /**
167
+ * Uses to pass attributes to DOM elements inside the component.
168
+ * @type {ImagePassThroughOptions}
169
+ */
170
+ pt?: ImagePassThroughOptions;
35
171
  }
36
172
 
37
173
  /**
@@ -62,6 +198,40 @@ export interface ImageSlots {
62
198
  * Custom close template.
63
199
  */
64
200
  close(): VNode[];
201
+ /**
202
+ * Custom image template.
203
+ */
204
+ image(scope: {
205
+ /**
206
+ * Style class of the image element.
207
+ */
208
+ class: any;
209
+ /**
210
+ * Style of the image element.
211
+ */
212
+ style: any;
213
+ /**
214
+ * Image error function.
215
+ */
216
+ onError: void;
217
+ }): VNode[];
218
+ /**
219
+ * Custom preview template.
220
+ */
221
+ preview(scope: {
222
+ /**
223
+ * Style class of the preview image element.
224
+ */
225
+ class: any;
226
+ /**
227
+ * Style of the preview image element.
228
+ */
229
+ style: any;
230
+ /**
231
+ * Preview click function.
232
+ */
233
+ onClick: void;
234
+ }): VNode[];
65
235
  }
66
236
 
67
237
  export interface ImageEmits {}
package/image/Image.vue CHANGED
@@ -1,47 +1,51 @@
1
1
  <template>
2
- <span :class="containerClass" :style="style">
3
- <img v-bind="$attrs" :style="imageStyle" :class="imageClass" @error="onError" />
4
- <button v-if="preview" ref="previewButton" class="p-image-preview-indicator" @click="onImageClick" v-bind="previewButtonProps">
2
+ <span :class="containerClass" :style="style" v-bind="ptm('root')">
3
+ <slot name="image" :class="imageClass" :style="imageStyle" :onError="onError">
4
+ <img :style="imageStyle" :class="imageClass" @error="onError" v-bind="{ ...$attrs, ...ptm('image') }" />
5
+ </slot>
6
+ <button v-if="preview" ref="previewButton" class="p-image-preview-indicator" @click="onImageClick" v-bind="{ ...previewButtonProps, ...ptm('button') }">
5
7
  <slot name="indicatoricon">
6
- <component :is="indicatorIcon ? 'i' : 'EyeIcon'" class="p-image-preview-icon" />
8
+ <component :is="indicatorIcon ? 'i' : 'EyeIcon'" class="p-image-preview-icon" v-bind="ptm('icon')" />
7
9
  </slot>
8
10
  </button>
9
11
  <Portal>
10
- <div v-if="maskVisible" :ref="maskRef" v-focustrap role="dialog" :class="maskClass" :aria-modal="maskVisible" @click="onMaskClick" @keydown="onMaskKeydown">
11
- <div class="p-image-toolbar">
12
- <button class="p-image-action p-link" @click="rotateRight" type="button" :aria-label="rightAriaLabel">
12
+ <div v-if="maskVisible" :ref="maskRef" v-focustrap role="dialog" :class="maskClass" :aria-modal="maskVisible" @click="onMaskClick" @keydown="onMaskKeydown" v-bind="ptm('mask')">
13
+ <div class="p-image-toolbar" v-bind="ptm('toolbar')">
14
+ <button class="p-image-action p-link" @click="rotateRight" type="button" :aria-label="rightAriaLabel" v-bind="ptm('rotateRightButton')">
13
15
  <slot name="refresh">
14
- <RefreshIcon />
16
+ <RefreshIcon v-bind="ptm('rotateRightIcon')" />
15
17
  </slot>
16
18
  </button>
17
19
 
18
- <button class="p-image-action p-link" @click="rotateLeft" type="button" :aria-label="leftAriaLabel">
20
+ <button class="p-image-action p-link" @click="rotateLeft" type="button" :aria-label="leftAriaLabel" v-bind="ptm('rotateLeftButton')">
19
21
  <slot name="undo">
20
- <UndoIcon />
22
+ <UndoIcon v-bind="ptm('rotateLeftIcon')" />
21
23
  </slot>
22
24
  </button>
23
25
 
24
- <button class="p-image-action p-link" @click="zoomOut" type="button" :disabled="zoomDisabled" :aria-label="zoomOutAriaLabel">
26
+ <button :class="['p-image-action p-link', { 'p-disabled': isZoomOutDisabled }]" @click="zoomOut" type="button" :disabled="isZoomOutDisabled" :aria-label="zoomOutAriaLabel" v-bind="ptm('zoomOutButton')">
25
27
  <slot name="zoomout">
26
- <SearchMinusIcon />
28
+ <SearchMinusIcon v-bind="ptm('zoomOutIcon')" />
27
29
  </slot>
28
30
  </button>
29
31
 
30
- <button class="p-image-action p-link" @click="zoomIn" type="button" :disabled="zoomDisabled" :aria-label="zoomInAriaLabel">
32
+ <button :class="['p-image-action p-link', { 'p-disabled': isZoomInDisabled }]" @click="zoomIn" type="button" :disabled="isZoomInDisabled" :aria-label="zoomInAriaLabel" v-bind="ptm('zoomInButton')">
31
33
  <slot name="zoomin">
32
- <SearchPlusIcon />
34
+ <SearchPlusIcon v-bind="ptm('zoomInIcon')" />
33
35
  </slot>
34
36
  </button>
35
37
 
36
- <button class="p-image-action p-link" type="button" @click="hidePreview" :aria-label="closeAriaLabel" autofocus>
38
+ <button class="p-image-action p-link" type="button" @click="hidePreview" :aria-label="closeAriaLabel" autofocus v-bind="ptm('closeButton')">
37
39
  <slot name="close">
38
- <TimesIcon />
40
+ <TimesIcon v-bind="ptm('closeIcon')" />
39
41
  </slot>
40
42
  </button>
41
43
  </div>
42
44
  <transition name="p-image-preview" @before-enter="onBeforeEnter" @enter="onEnter" @leave="onLeave" @before-leave="onBeforeLeave" @after-leave="onAfterLeave">
43
- <div v-if="previewVisible">
44
- <img :src="$attrs.src" class="p-image-preview" :style="imagePreviewStyle" @click="onPreviewImageClick" />
45
+ <div v-if="previewVisible" v-bind="ptm('previewContainer')">
46
+ <slot name="preview" class="p-image-preview" :style="imagePreviewStyle" :onClick="onPreviewImageClick">
47
+ <img :src="$attrs.src" class="p-image-preview" :style="imagePreviewStyle" @click="onPreviewImageClick" v-bind="ptm('preview')" />
48
+ </slot>
45
49
  </div>
46
50
  </transition>
47
51
  </div>
@@ -50,6 +54,7 @@
50
54
  </template>
51
55
 
52
56
  <script>
57
+ import BaseComponent from 'primevue/basecomponent';
53
58
  import FocusTrap from 'primevue/focustrap';
54
59
  import EyeIcon from 'primevue/icons/eye';
55
60
  import RefreshIcon from 'primevue/icons/refresh';
@@ -62,6 +67,7 @@ import { DomHandler, ZIndexUtils } from 'primevue/utils';
62
67
 
63
68
  export default {
64
69
  name: 'Image',
70
+ extends: BaseComponent,
65
71
  inheritAttrs: false,
66
72
  emits: ['show', 'hide', 'error'],
67
73
  props: {
@@ -92,6 +98,14 @@ export default {
92
98
  indicatorIcon: {
93
99
  type: String,
94
100
  default: undefined
101
+ },
102
+ zoomInDisabled: {
103
+ type: Boolean,
104
+ default: false
105
+ },
106
+ zoomOutDisabled: {
107
+ type: Boolean,
108
+ default: false
95
109
  }
96
110
  },
97
111
  mask: null,
@@ -126,7 +140,13 @@ export default {
126
140
  onPreviewImageClick() {
127
141
  this.previewClick = true;
128
142
  },
129
- onMaskClick() {
143
+ onMaskClick(event) {
144
+ const isActionbarTarget = [event.target.classList].includes('p-image-action') || event.target.closest('.p-image-action');
145
+
146
+ if (isActionbarTarget) {
147
+ return;
148
+ }
149
+
130
150
  if (!this.previewClick) {
131
151
  this.previewVisible = false;
132
152
  this.rotate = 0;
@@ -192,6 +212,11 @@ export default {
192
212
  if (focusTarget) {
193
213
  focusTarget.focus();
194
214
  }
215
+ },
216
+ hidePreview() {
217
+ this.previewVisible = false;
218
+ this.rotate = 0;
219
+ this.scale = 1;
195
220
  }
196
221
  },
197
222
  computed: {
@@ -213,8 +238,11 @@ export default {
213
238
  imagePreviewStyle() {
214
239
  return { transform: 'rotate(' + this.rotate + 'deg) scale(' + this.scale + ')' };
215
240
  },
216
- zoomDisabled() {
217
- return this.scale <= 0.5 || this.scale >= 1.5;
241
+ isZoomInDisabled() {
242
+ return this.zoomInDisabled || this.scale >= 1.5;
243
+ },
244
+ isZoomOutDisabled() {
245
+ return this.zoomOutDisabled || this.scale <= 0.5;
218
246
  },
219
247
  rightAriaLabel() {
220
248
  return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.rotateRight : undefined;