primevue 3.29.2 → 3.30.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1288) hide show
  1. package/README.md +16 -8
  2. package/accordion/Accordion.d.ts +23 -1
  3. package/accordion/Accordion.vue +39 -92
  4. package/accordion/BaseAccordion.vue +93 -0
  5. package/accordion/accordion.cjs.js +336 -330
  6. package/accordion/accordion.cjs.min.js +1 -1
  7. package/accordion/accordion.esm.js +336 -330
  8. package/accordion/accordion.esm.min.js +1 -1
  9. package/accordion/accordion.js +336 -331
  10. package/accordion/accordion.min.js +1 -1
  11. package/accordiontab/AccordionTab.d.ts +29 -1
  12. package/accordiontab/AccordionTab.vue +2 -13
  13. package/accordiontab/BaseAccordionTab.vue +24 -0
  14. package/accordiontab/accordiontab.cjs.js +24 -14
  15. package/accordiontab/accordiontab.cjs.min.js +1 -1
  16. package/accordiontab/accordiontab.esm.js +24 -14
  17. package/accordiontab/accordiontab.esm.min.js +1 -1
  18. package/accordiontab/accordiontab.js +24 -14
  19. package/accordiontab/accordiontab.min.js +1 -1
  20. package/api/api.cjs.js +475 -500
  21. package/api/api.cjs.min.js +1 -1
  22. package/api/api.esm.js +475 -500
  23. package/api/api.esm.min.js +1 -1
  24. package/api/api.js +475 -500
  25. package/api/api.min.js +1 -1
  26. package/autocomplete/AutoComplete.d.ts +24 -3
  27. package/autocomplete/AutoComplete.vue +40 -322
  28. package/autocomplete/BaseAutoComplete.vue +322 -0
  29. package/autocomplete/autocomplete.cjs.js +1290 -1237
  30. package/autocomplete/autocomplete.cjs.min.js +1 -1
  31. package/autocomplete/autocomplete.esm.js +1291 -1238
  32. package/autocomplete/autocomplete.esm.min.js +1 -1
  33. package/autocomplete/autocomplete.js +1290 -1238
  34. package/autocomplete/autocomplete.min.js +1 -1
  35. package/avatar/Avatar.d.ts +15 -1
  36. package/avatar/Avatar.vue +13 -81
  37. package/avatar/BaseAvatar.vue +96 -0
  38. package/avatar/avatar.cjs.js +101 -110
  39. package/avatar/avatar.cjs.min.js +1 -1
  40. package/avatar/avatar.esm.js +102 -111
  41. package/avatar/avatar.esm.min.js +1 -1
  42. package/avatar/avatar.js +102 -112
  43. package/avatar/avatar.min.js +1 -1
  44. package/avatargroup/AvatarGroup.d.ts +11 -0
  45. package/avatargroup/AvatarGroup.vue +3 -14
  46. package/avatargroup/BaseAvatarGroup.vue +35 -0
  47. package/avatargroup/avatargroup.cjs.js +31 -35
  48. package/avatargroup/avatargroup.cjs.min.js +1 -1
  49. package/avatargroup/avatargroup.esm.js +31 -35
  50. package/avatargroup/avatargroup.esm.min.js +1 -1
  51. package/avatargroup/avatargroup.js +32 -37
  52. package/avatargroup/avatargroup.min.js +1 -1
  53. package/badge/Badge.d.ts +13 -1
  54. package/badge/Badge.vue +3 -38
  55. package/badge/BaseBadge.vue +86 -0
  56. package/badge/badge.cjs.js +59 -40
  57. package/badge/badge.cjs.min.js +1 -1
  58. package/badge/badge.esm.js +59 -40
  59. package/badge/badge.esm.min.js +1 -1
  60. package/badge/badge.js +60 -42
  61. package/badge/badge.min.js +1 -1
  62. package/badgedirective/BadgeDirective.d.ts +43 -1
  63. package/badgedirective/badgedirective.cjs.js +66 -45
  64. package/badgedirective/badgedirective.cjs.min.js +1 -1
  65. package/badgedirective/badgedirective.esm.js +64 -47
  66. package/badgedirective/badgedirective.esm.min.js +1 -1
  67. package/badgedirective/badgedirective.js +66 -47
  68. package/badgedirective/badgedirective.min.js +1 -1
  69. package/base/base.cjs.js +18 -0
  70. package/base/base.cjs.min.js +1 -0
  71. package/base/base.esm.js +13 -0
  72. package/base/base.esm.min.js +1 -0
  73. package/base/base.js +22 -0
  74. package/base/base.min.js +1 -0
  75. package/base/package.json +5 -0
  76. package/basecomponent/BaseComponent.d.ts +23 -0
  77. package/basecomponent/BaseComponent.vue +458 -12
  78. package/basecomponent/basecomponent.cjs.js +182 -36
  79. package/basecomponent/basecomponent.cjs.min.js +1 -1
  80. package/basecomponent/basecomponent.esm.js +182 -36
  81. package/basecomponent/basecomponent.esm.min.js +1 -1
  82. package/basecomponent/basecomponent.js +182 -38
  83. package/basecomponent/basecomponent.min.js +1 -1
  84. package/basecomponent/package.json +1 -0
  85. package/basedirective/BaseDirective.d.ts +38 -0
  86. package/basedirective/basedirective.cjs.js +163 -0
  87. package/basedirective/basedirective.cjs.min.js +1 -0
  88. package/basedirective/basedirective.esm.js +161 -0
  89. package/basedirective/basedirective.esm.min.js +1 -0
  90. package/basedirective/basedirective.js +163 -0
  91. package/basedirective/basedirective.min.js +1 -0
  92. package/basedirective/package.json +6 -0
  93. package/baseicon/baseicon.cjs.js +22 -26
  94. package/baseicon/baseicon.cjs.min.js +1 -1
  95. package/baseicon/baseicon.esm.js +22 -26
  96. package/baseicon/baseicon.esm.min.js +1 -1
  97. package/baseicon/baseicon.js +22 -26
  98. package/baseicon/baseicon.min.js +1 -1
  99. package/blockui/BaseBlockUI.vue +64 -0
  100. package/blockui/BlockUI.d.ts +13 -1
  101. package/blockui/BlockUI.vue +10 -48
  102. package/blockui/blockui.cjs.js +103 -115
  103. package/blockui/blockui.cjs.min.js +1 -1
  104. package/blockui/blockui.esm.js +103 -115
  105. package/blockui/blockui.esm.min.js +1 -1
  106. package/blockui/blockui.js +103 -116
  107. package/blockui/blockui.min.js +1 -1
  108. package/breadcrumb/BaseBreadcrumb.vue +85 -0
  109. package/breadcrumb/Breadcrumb.d.ts +13 -1
  110. package/breadcrumb/Breadcrumb.vue +6 -54
  111. package/breadcrumb/BreadcrumbItem.vue +10 -21
  112. package/breadcrumb/breadcrumb.cjs.js +198 -219
  113. package/breadcrumb/breadcrumb.cjs.min.js +1 -1
  114. package/breadcrumb/breadcrumb.esm.js +198 -219
  115. package/breadcrumb/breadcrumb.esm.min.js +1 -1
  116. package/breadcrumb/breadcrumb.js +198 -220
  117. package/breadcrumb/breadcrumb.min.js +1 -1
  118. package/button/BaseButton.vue +115 -0
  119. package/button/Button.d.ts +25 -1
  120. package/button/Button.vue +21 -121
  121. package/button/button.cjs.js +176 -174
  122. package/button/button.cjs.min.js +1 -1
  123. package/button/button.esm.js +174 -173
  124. package/button/button.esm.min.js +1 -1
  125. package/button/button.js +176 -175
  126. package/button/button.min.js +1 -1
  127. package/calendar/BaseCalendar.vue +453 -0
  128. package/calendar/Calendar.d.ts +25 -13
  129. package/calendar/Calendar.vue +127 -491
  130. package/calendar/calendar.cjs.js +3115 -3197
  131. package/calendar/calendar.cjs.min.js +1 -1
  132. package/calendar/calendar.esm.js +3115 -3197
  133. package/calendar/calendar.esm.min.js +1 -1
  134. package/calendar/calendar.js +3115 -3198
  135. package/calendar/calendar.min.js +1 -1
  136. package/card/BaseCard.vue +21 -0
  137. package/card/Card.d.ts +11 -0
  138. package/card/Card.vue +9 -9
  139. package/card/card.cjs.js +40 -41
  140. package/card/card.cjs.min.js +1 -1
  141. package/card/card.esm.js +40 -41
  142. package/card/card.esm.min.js +1 -1
  143. package/card/card.js +40 -41
  144. package/card/card.min.js +1 -1
  145. package/carousel/BaseCarousel.vue +197 -0
  146. package/carousel/Carousel.d.ts +13 -1
  147. package/carousel/Carousel.vue +36 -188
  148. package/carousel/carousel.cjs.js +705 -737
  149. package/carousel/carousel.cjs.min.js +1 -1
  150. package/carousel/carousel.esm.js +704 -736
  151. package/carousel/carousel.esm.min.js +1 -1
  152. package/carousel/carousel.js +705 -738
  153. package/carousel/carousel.min.js +1 -1
  154. package/cascadeselect/BaseCascadeSelect.vue +257 -0
  155. package/cascadeselect/CascadeSelect.d.ts +20 -8
  156. package/cascadeselect/CascadeSelect.vue +18 -242
  157. package/cascadeselect/CascadeSelectSub.vue +15 -22
  158. package/cascadeselect/cascadeselect.cjs.js +1143 -1083
  159. package/cascadeselect/cascadeselect.cjs.min.js +1 -1
  160. package/cascadeselect/cascadeselect.esm.js +1143 -1083
  161. package/cascadeselect/cascadeselect.esm.min.js +1 -1
  162. package/cascadeselect/cascadeselect.js +1143 -1084
  163. package/cascadeselect/cascadeselect.min.js +1 -1
  164. package/chart/BaseChart.vue +48 -0
  165. package/chart/Chart.d.ts +13 -1
  166. package/chart/Chart.vue +3 -27
  167. package/chart/chart.cjs.js +144 -135
  168. package/chart/chart.cjs.min.js +1 -1
  169. package/chart/chart.esm.js +144 -135
  170. package/chart/chart.esm.min.js +1 -1
  171. package/chart/chart.js +145 -137
  172. package/chart/chart.min.js +1 -1
  173. package/checkbox/BaseCheckbox.vue +93 -0
  174. package/checkbox/Checkbox.d.ts +42 -1
  175. package/checkbox/Checkbox.vue +16 -74
  176. package/checkbox/checkbox.cjs.js +201 -140
  177. package/checkbox/checkbox.cjs.min.js +1 -1
  178. package/checkbox/checkbox.esm.js +201 -140
  179. package/checkbox/checkbox.esm.min.js +1 -1
  180. package/checkbox/checkbox.js +202 -141
  181. package/checkbox/checkbox.min.js +1 -1
  182. package/chip/BaseChip.vue +78 -0
  183. package/chip/Chip.d.ts +13 -1
  184. package/chip/Chip.vue +7 -63
  185. package/chip/chip.cjs.js +106 -129
  186. package/chip/chip.cjs.min.js +1 -1
  187. package/chip/chip.esm.js +105 -128
  188. package/chip/chip.esm.min.js +1 -1
  189. package/chip/chip.js +106 -130
  190. package/chip/chip.min.js +1 -1
  191. package/chips/BaseChips.vue +143 -0
  192. package/chips/Chips.d.ts +13 -1
  193. package/chips/Chips.vue +11 -127
  194. package/chips/chips.cjs.js +368 -344
  195. package/chips/chips.cjs.min.js +1 -1
  196. package/chips/chips.esm.js +368 -344
  197. package/chips/chips.esm.min.js +1 -1
  198. package/chips/chips.js +368 -345
  199. package/chips/chips.min.js +1 -1
  200. package/colorpicker/BaseColorPicker.vue +89 -0
  201. package/colorpicker/ColorPicker.d.ts +15 -3
  202. package/colorpicker/ColorPicker.vue +16 -34
  203. package/colorpicker/colorpicker.cjs.js +699 -650
  204. package/colorpicker/colorpicker.cjs.min.js +1 -1
  205. package/colorpicker/colorpicker.esm.js +698 -649
  206. package/colorpicker/colorpicker.esm.min.js +1 -1
  207. package/colorpicker/colorpicker.js +699 -651
  208. package/colorpicker/colorpicker.min.js +1 -1
  209. package/column/BaseColumn.vue +191 -0
  210. package/column/Column.d.ts +57 -30
  211. package/column/Column.vue +2 -180
  212. package/column/column.cjs.js +193 -183
  213. package/column/column.cjs.min.js +1 -1
  214. package/column/column.esm.js +193 -183
  215. package/column/column.esm.min.js +1 -1
  216. package/column/column.js +193 -183
  217. package/column/column.min.js +1 -1
  218. package/columngroup/BaseColumnGroup.vue +19 -0
  219. package/columngroup/ColumnGroup.d.ts +24 -1
  220. package/columngroup/ColumnGroup.vue +2 -8
  221. package/columngroup/columngroup.cjs.js +21 -11
  222. package/columngroup/columngroup.cjs.min.js +1 -1
  223. package/columngroup/columngroup.esm.js +21 -11
  224. package/columngroup/columngroup.esm.min.js +1 -1
  225. package/columngroup/columngroup.js +21 -11
  226. package/columngroup/columngroup.min.js +1 -1
  227. package/config/PrimeVue.d.ts +28 -7
  228. package/config/config.cjs.js +167 -168
  229. package/config/config.cjs.min.js +1 -1
  230. package/config/config.esm.js +167 -168
  231. package/config/config.esm.min.js +1 -1
  232. package/config/config.js +167 -168
  233. package/config/config.min.js +1 -1
  234. package/confirmationservice/confirmationservice.cjs.js +12 -13
  235. package/confirmationservice/confirmationservice.cjs.min.js +1 -1
  236. package/confirmationservice/confirmationservice.esm.js +12 -13
  237. package/confirmationservice/confirmationservice.esm.min.js +1 -1
  238. package/confirmationservice/confirmationservice.js +12 -13
  239. package/confirmationservice/confirmationservice.min.js +1 -1
  240. package/confirmdialog/BaseConfirmDialog.vue +35 -0
  241. package/confirmdialog/ConfirmDialog.d.ts +13 -1
  242. package/confirmdialog/ConfirmDialog.vue +18 -33
  243. package/confirmdialog/confirmdialog.cjs.js +213 -183
  244. package/confirmdialog/confirmdialog.cjs.min.js +1 -1
  245. package/confirmdialog/confirmdialog.esm.js +213 -183
  246. package/confirmdialog/confirmdialog.esm.min.js +1 -1
  247. package/confirmdialog/confirmdialog.js +214 -184
  248. package/confirmdialog/confirmdialog.min.js +1 -1
  249. package/confirmpopup/BaseConfirmPopup.vue +111 -0
  250. package/confirmpopup/ConfirmPopup.d.ts +13 -1
  251. package/confirmpopup/ConfirmPopup.vue +21 -109
  252. package/confirmpopup/confirmpopup.cjs.js +375 -377
  253. package/confirmpopup/confirmpopup.cjs.min.js +1 -1
  254. package/confirmpopup/confirmpopup.esm.js +375 -377
  255. package/confirmpopup/confirmpopup.esm.min.js +1 -1
  256. package/confirmpopup/confirmpopup.js +375 -378
  257. package/confirmpopup/confirmpopup.min.js +1 -1
  258. package/contextmenu/BaseContextMenu.vue +133 -0
  259. package/contextmenu/ContextMenu.d.ts +17 -1
  260. package/contextmenu/ContextMenu.vue +6 -93
  261. package/contextmenu/ContextMenuSub.vue +24 -58
  262. package/contextmenu/contextmenu.cjs.js +989 -951
  263. package/contextmenu/contextmenu.cjs.min.js +1 -1
  264. package/contextmenu/contextmenu.esm.js +988 -950
  265. package/contextmenu/contextmenu.esm.min.js +1 -1
  266. package/contextmenu/contextmenu.js +989 -952
  267. package/contextmenu/contextmenu.min.js +1 -1
  268. package/core/core.js +12190 -11725
  269. package/core/core.min.js +76 -70
  270. package/datatable/BaseDataTable.vue +740 -0
  271. package/datatable/BodyCell.vue +49 -35
  272. package/datatable/ColumnFilter.vue +74 -59
  273. package/datatable/DataTable.d.ts +32 -9
  274. package/datatable/DataTable.vue +82 -593
  275. package/datatable/FooterCell.vue +16 -11
  276. package/datatable/HeaderCell.vue +31 -24
  277. package/datatable/HeaderCheckbox.vue +8 -7
  278. package/datatable/RowCheckbox.vue +13 -7
  279. package/datatable/RowRadioButton.vue +13 -7
  280. package/datatable/TableBody.vue +24 -35
  281. package/datatable/TableFooter.vue +21 -9
  282. package/datatable/TableHeader.vue +33 -21
  283. package/datatable/datatable.cjs.js +5878 -5739
  284. package/datatable/datatable.cjs.min.js +1 -1
  285. package/datatable/datatable.esm.js +5878 -5739
  286. package/datatable/datatable.esm.min.js +1 -1
  287. package/datatable/datatable.js +5878 -5740
  288. package/datatable/datatable.min.js +1 -1
  289. package/dataview/BaseDataView.vue +99 -0
  290. package/dataview/DataView.d.ts +17 -1
  291. package/dataview/DataView.vue +14 -87
  292. package/dataview/dataview.cjs.js +283 -295
  293. package/dataview/dataview.cjs.min.js +1 -1
  294. package/dataview/dataview.esm.js +282 -294
  295. package/dataview/dataview.esm.min.js +1 -1
  296. package/dataview/dataview.js +284 -296
  297. package/dataview/dataview.min.js +1 -1
  298. package/dataviewlayoutoptions/BaseDataViewLayoutOptions.vue +35 -0
  299. package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +18 -1
  300. package/dataviewlayoutoptions/DataViewLayoutOptions.vue +5 -14
  301. package/dataviewlayoutoptions/dataviewlayoutoptions.cjs.js +91 -75
  302. package/dataviewlayoutoptions/dataviewlayoutoptions.cjs.min.js +1 -1
  303. package/dataviewlayoutoptions/dataviewlayoutoptions.esm.js +90 -74
  304. package/dataviewlayoutoptions/dataviewlayoutoptions.esm.min.js +1 -1
  305. package/dataviewlayoutoptions/dataviewlayoutoptions.js +92 -76
  306. package/dataviewlayoutoptions/dataviewlayoutoptions.min.js +1 -1
  307. package/deferredcontent/DeferredContent.d.ts +13 -1
  308. package/deferredcontent/deferredcontent.cjs.js +49 -51
  309. package/deferredcontent/deferredcontent.cjs.min.js +1 -1
  310. package/deferredcontent/deferredcontent.esm.js +49 -51
  311. package/deferredcontent/deferredcontent.esm.min.js +1 -1
  312. package/deferredcontent/deferredcontent.js +49 -51
  313. package/deferredcontent/deferredcontent.min.js +1 -1
  314. package/dialog/BaseDialog.vue +319 -0
  315. package/dialog/Dialog.d.ts +13 -1
  316. package/dialog/Dialog.vue +23 -339
  317. package/dialog/dialog.cjs.js +591 -603
  318. package/dialog/dialog.cjs.min.js +1 -1
  319. package/dialog/dialog.esm.js +590 -602
  320. package/dialog/dialog.esm.min.js +1 -1
  321. package/dialog/dialog.js +591 -604
  322. package/dialog/dialog.min.js +1 -1
  323. package/dialogservice/dialogservice.cjs.js +24 -21
  324. package/dialogservice/dialogservice.cjs.min.js +1 -1
  325. package/dialogservice/dialogservice.esm.js +23 -20
  326. package/dialogservice/dialogservice.esm.min.js +1 -1
  327. package/dialogservice/dialogservice.js +24 -21
  328. package/dialogservice/dialogservice.min.js +1 -1
  329. package/divider/BaseDivider.vue +136 -0
  330. package/divider/Divider.d.ts +13 -1
  331. package/divider/Divider.vue +4 -120
  332. package/divider/divider.cjs.js +64 -74
  333. package/divider/divider.cjs.min.js +1 -1
  334. package/divider/divider.esm.js +64 -74
  335. package/divider/divider.esm.min.js +1 -1
  336. package/divider/divider.js +65 -76
  337. package/divider/divider.min.js +1 -1
  338. package/dock/BaseDock.vue +185 -0
  339. package/dock/Dock.d.ts +13 -1
  340. package/dock/Dock.vue +3 -146
  341. package/dock/DockSub.vue +19 -39
  342. package/dock/dock.cjs.js +423 -411
  343. package/dock/dock.cjs.min.js +1 -1
  344. package/dock/dock.esm.js +424 -412
  345. package/dock/dock.esm.min.js +1 -1
  346. package/dock/dock.js +424 -413
  347. package/dock/dock.min.js +1 -1
  348. package/dropdown/BaseDropdown.vue +313 -0
  349. package/dropdown/Dropdown.d.ts +18 -2
  350. package/dropdown/Dropdown.vue +60 -320
  351. package/dropdown/dropdown.cjs.js +1261 -1226
  352. package/dropdown/dropdown.cjs.min.js +1 -1
  353. package/dropdown/dropdown.esm.js +1261 -1226
  354. package/dropdown/dropdown.esm.min.js +1 -1
  355. package/dropdown/dropdown.js +1261 -1227
  356. package/dropdown/dropdown.min.js +1 -1
  357. package/dynamicdialog/DynamicDialog.d.ts +7 -1
  358. package/dynamicdialog/DynamicDialog.vue +3 -3
  359. package/dynamicdialog/dynamicdialog.cjs.js +90 -89
  360. package/dynamicdialog/dynamicdialog.cjs.min.js +1 -1
  361. package/dynamicdialog/dynamicdialog.esm.js +90 -89
  362. package/dynamicdialog/dynamicdialog.esm.min.js +1 -1
  363. package/dynamicdialog/dynamicdialog.js +90 -89
  364. package/dynamicdialog/dynamicdialog.min.js +1 -1
  365. package/editor/BaseEditor.vue +996 -0
  366. package/editor/Editor.d.ts +58 -6
  367. package/editor/Editor.vue +25 -981
  368. package/editor/editor.cjs.js +241 -236
  369. package/editor/editor.cjs.min.js +1 -1
  370. package/editor/editor.esm.js +241 -236
  371. package/editor/editor.esm.min.js +1 -1
  372. package/editor/editor.js +241 -237
  373. package/editor/editor.min.js +1 -1
  374. package/fieldset/BaseFieldset.vue +65 -0
  375. package/fieldset/Fieldset.d.ts +13 -1
  376. package/fieldset/Fieldset.vue +9 -39
  377. package/fieldset/fieldset.cjs.js +150 -140
  378. package/fieldset/fieldset.cjs.min.js +1 -1
  379. package/fieldset/fieldset.esm.js +149 -139
  380. package/fieldset/fieldset.esm.min.js +1 -1
  381. package/fieldset/fieldset.js +150 -141
  382. package/fieldset/fieldset.min.js +1 -1
  383. package/fileupload/BaseFileUpload.vue +189 -0
  384. package/fileupload/FileContent.vue +10 -8
  385. package/fileupload/FileUpload.d.ts +13 -5
  386. package/fileupload/FileUpload.vue +29 -190
  387. package/fileupload/fileupload.cjs.js +817 -790
  388. package/fileupload/fileupload.cjs.min.js +1 -1
  389. package/fileupload/fileupload.esm.js +817 -790
  390. package/fileupload/fileupload.esm.min.js +1 -1
  391. package/fileupload/fileupload.js +817 -790
  392. package/fileupload/fileupload.min.js +1 -1
  393. package/focustrap/FocusTrap.d.ts +44 -0
  394. package/focustrap/focustrap.cjs.js +116 -102
  395. package/focustrap/focustrap.cjs.min.js +1 -1
  396. package/focustrap/focustrap.esm.js +116 -106
  397. package/focustrap/focustrap.esm.min.js +1 -1
  398. package/focustrap/focustrap.js +117 -104
  399. package/focustrap/focustrap.min.js +1 -1
  400. package/galleria/BaseGalleria.vue +499 -0
  401. package/galleria/Galleria.d.ts +13 -1
  402. package/galleria/Galleria.vue +6 -413
  403. package/galleria/GalleriaContent.vue +8 -22
  404. package/galleria/GalleriaItem.vue +13 -27
  405. package/galleria/GalleriaThumbnails.vue +32 -56
  406. package/galleria/galleria.cjs.js +1164 -1247
  407. package/galleria/galleria.cjs.min.js +1 -1
  408. package/galleria/galleria.esm.js +1164 -1247
  409. package/galleria/galleria.esm.min.js +1 -1
  410. package/galleria/galleria.js +1164 -1248
  411. package/galleria/galleria.min.js +1 -1
  412. package/icons/angledoubledown/index.cjs.js +6 -9
  413. package/icons/angledoubledown/index.cjs.min.js +1 -1
  414. package/icons/angledoubledown/index.esm.js +6 -9
  415. package/icons/angledoubledown/index.esm.min.js +1 -1
  416. package/icons/angledoubledown/index.js +6 -9
  417. package/icons/angledoubledown/index.min.js +1 -1
  418. package/icons/angledoubleleft/index.cjs.js +6 -9
  419. package/icons/angledoubleleft/index.cjs.min.js +1 -1
  420. package/icons/angledoubleleft/index.esm.js +6 -9
  421. package/icons/angledoubleleft/index.esm.min.js +1 -1
  422. package/icons/angledoubleleft/index.js +6 -9
  423. package/icons/angledoubleleft/index.min.js +1 -1
  424. package/icons/angledoubleright/index.cjs.js +6 -9
  425. package/icons/angledoubleright/index.cjs.min.js +1 -1
  426. package/icons/angledoubleright/index.esm.js +6 -9
  427. package/icons/angledoubleright/index.esm.min.js +1 -1
  428. package/icons/angledoubleright/index.js +6 -9
  429. package/icons/angledoubleright/index.min.js +1 -1
  430. package/icons/angledoubleup/index.cjs.js +6 -9
  431. package/icons/angledoubleup/index.cjs.min.js +1 -1
  432. package/icons/angledoubleup/index.esm.js +6 -9
  433. package/icons/angledoubleup/index.esm.min.js +1 -1
  434. package/icons/angledoubleup/index.js +6 -9
  435. package/icons/angledoubleup/index.min.js +1 -1
  436. package/icons/angledown/index.cjs.js +6 -9
  437. package/icons/angledown/index.cjs.min.js +1 -1
  438. package/icons/angledown/index.esm.js +6 -9
  439. package/icons/angledown/index.esm.min.js +1 -1
  440. package/icons/angledown/index.js +6 -9
  441. package/icons/angledown/index.min.js +1 -1
  442. package/icons/angleleft/index.cjs.js +6 -9
  443. package/icons/angleleft/index.cjs.min.js +1 -1
  444. package/icons/angleleft/index.esm.js +6 -9
  445. package/icons/angleleft/index.esm.min.js +1 -1
  446. package/icons/angleleft/index.js +6 -9
  447. package/icons/angleleft/index.min.js +1 -1
  448. package/icons/angleright/index.cjs.js +6 -9
  449. package/icons/angleright/index.cjs.min.js +1 -1
  450. package/icons/angleright/index.esm.js +6 -9
  451. package/icons/angleright/index.esm.min.js +1 -1
  452. package/icons/angleright/index.js +6 -9
  453. package/icons/angleright/index.min.js +1 -1
  454. package/icons/angleup/index.cjs.js +6 -9
  455. package/icons/angleup/index.cjs.min.js +1 -1
  456. package/icons/angleup/index.esm.js +6 -9
  457. package/icons/angleup/index.esm.min.js +1 -1
  458. package/icons/angleup/index.js +6 -9
  459. package/icons/angleup/index.min.js +1 -1
  460. package/icons/arrowdown/index.cjs.js +29 -26
  461. package/icons/arrowdown/index.cjs.min.js +1 -1
  462. package/icons/arrowdown/index.esm.js +29 -26
  463. package/icons/arrowdown/index.esm.min.js +1 -1
  464. package/icons/arrowdown/index.js +30 -28
  465. package/icons/arrowdown/index.min.js +1 -1
  466. package/icons/arrowdown/index.vue +10 -3
  467. package/icons/arrowup/index.cjs.js +29 -26
  468. package/icons/arrowup/index.cjs.min.js +1 -1
  469. package/icons/arrowup/index.esm.js +29 -26
  470. package/icons/arrowup/index.esm.min.js +1 -1
  471. package/icons/arrowup/index.js +30 -28
  472. package/icons/arrowup/index.min.js +1 -1
  473. package/icons/arrowup/index.vue +10 -3
  474. package/icons/ban/index.cjs.js +27 -24
  475. package/icons/ban/index.cjs.min.js +1 -1
  476. package/icons/ban/index.esm.js +27 -24
  477. package/icons/ban/index.esm.min.js +1 -1
  478. package/icons/ban/index.js +28 -26
  479. package/icons/ban/index.min.js +1 -1
  480. package/icons/ban/index.vue +10 -3
  481. package/icons/bars/index.cjs.js +6 -9
  482. package/icons/bars/index.cjs.min.js +1 -1
  483. package/icons/bars/index.esm.js +6 -9
  484. package/icons/bars/index.esm.min.js +1 -1
  485. package/icons/bars/index.js +6 -9
  486. package/icons/bars/index.min.js +1 -1
  487. package/icons/calendar/index.cjs.js +6 -9
  488. package/icons/calendar/index.cjs.min.js +1 -1
  489. package/icons/calendar/index.esm.js +6 -9
  490. package/icons/calendar/index.esm.min.js +1 -1
  491. package/icons/calendar/index.js +6 -9
  492. package/icons/calendar/index.min.js +1 -1
  493. package/icons/check/index.cjs.js +6 -9
  494. package/icons/check/index.cjs.min.js +1 -1
  495. package/icons/check/index.esm.js +6 -9
  496. package/icons/check/index.esm.min.js +1 -1
  497. package/icons/check/index.js +6 -9
  498. package/icons/check/index.min.js +1 -1
  499. package/icons/chevrondown/index.cjs.js +6 -9
  500. package/icons/chevrondown/index.cjs.min.js +1 -1
  501. package/icons/chevrondown/index.esm.js +6 -9
  502. package/icons/chevrondown/index.esm.min.js +1 -1
  503. package/icons/chevrondown/index.js +6 -9
  504. package/icons/chevrondown/index.min.js +1 -1
  505. package/icons/chevronleft/index.cjs.js +6 -9
  506. package/icons/chevronleft/index.cjs.min.js +1 -1
  507. package/icons/chevronleft/index.esm.js +6 -9
  508. package/icons/chevronleft/index.esm.min.js +1 -1
  509. package/icons/chevronleft/index.js +6 -9
  510. package/icons/chevronleft/index.min.js +1 -1
  511. package/icons/chevronright/index.cjs.js +6 -9
  512. package/icons/chevronright/index.cjs.min.js +1 -1
  513. package/icons/chevronright/index.esm.js +6 -9
  514. package/icons/chevronright/index.esm.min.js +1 -1
  515. package/icons/chevronright/index.js +6 -9
  516. package/icons/chevronright/index.min.js +1 -1
  517. package/icons/chevronup/index.cjs.js +6 -9
  518. package/icons/chevronup/index.cjs.min.js +1 -1
  519. package/icons/chevronup/index.esm.js +6 -9
  520. package/icons/chevronup/index.esm.min.js +1 -1
  521. package/icons/chevronup/index.js +6 -9
  522. package/icons/chevronup/index.min.js +1 -1
  523. package/icons/exclamationtriangle/index.cjs.js +35 -9
  524. package/icons/exclamationtriangle/index.cjs.min.js +1 -1
  525. package/icons/exclamationtriangle/index.esm.js +36 -10
  526. package/icons/exclamationtriangle/index.esm.min.js +1 -1
  527. package/icons/exclamationtriangle/index.js +36 -11
  528. package/icons/exclamationtriangle/index.min.js +1 -1
  529. package/icons/exclamationtriangle/index.vue +10 -3
  530. package/icons/eye/index.cjs.js +6 -9
  531. package/icons/eye/index.cjs.min.js +1 -1
  532. package/icons/eye/index.esm.js +6 -9
  533. package/icons/eye/index.esm.min.js +1 -1
  534. package/icons/eye/index.js +6 -9
  535. package/icons/eye/index.min.js +1 -1
  536. package/icons/eyeslash/index.cjs.js +29 -26
  537. package/icons/eyeslash/index.cjs.min.js +1 -1
  538. package/icons/eyeslash/index.esm.js +29 -26
  539. package/icons/eyeslash/index.esm.min.js +1 -1
  540. package/icons/eyeslash/index.js +30 -28
  541. package/icons/eyeslash/index.min.js +1 -1
  542. package/icons/eyeslash/index.vue +10 -3
  543. package/icons/filter/index.cjs.js +27 -24
  544. package/icons/filter/index.cjs.min.js +1 -1
  545. package/icons/filter/index.esm.js +27 -24
  546. package/icons/filter/index.esm.min.js +1 -1
  547. package/icons/filter/index.js +28 -26
  548. package/icons/filter/index.min.js +1 -1
  549. package/icons/filter/index.vue +10 -3
  550. package/icons/filterslash/index.cjs.js +29 -26
  551. package/icons/filterslash/index.cjs.min.js +1 -1
  552. package/icons/filterslash/index.esm.js +29 -26
  553. package/icons/filterslash/index.esm.min.js +1 -1
  554. package/icons/filterslash/index.js +30 -28
  555. package/icons/filterslash/index.min.js +1 -1
  556. package/icons/filterslash/index.vue +10 -3
  557. package/icons/infocircle/index.cjs.js +29 -26
  558. package/icons/infocircle/index.cjs.min.js +1 -1
  559. package/icons/infocircle/index.esm.js +29 -26
  560. package/icons/infocircle/index.esm.min.js +1 -1
  561. package/icons/infocircle/index.js +30 -28
  562. package/icons/infocircle/index.min.js +1 -1
  563. package/icons/infocircle/index.vue +10 -3
  564. package/icons/minus/index.cjs.js +6 -9
  565. package/icons/minus/index.cjs.min.js +1 -1
  566. package/icons/minus/index.esm.js +6 -9
  567. package/icons/minus/index.esm.min.js +1 -1
  568. package/icons/minus/index.js +6 -9
  569. package/icons/minus/index.min.js +1 -1
  570. package/icons/pencil/index.cjs.js +27 -24
  571. package/icons/pencil/index.cjs.min.js +1 -1
  572. package/icons/pencil/index.esm.js +27 -24
  573. package/icons/pencil/index.esm.min.js +1 -1
  574. package/icons/pencil/index.js +28 -26
  575. package/icons/pencil/index.min.js +1 -1
  576. package/icons/pencil/index.vue +10 -3
  577. package/icons/plus/index.cjs.js +27 -24
  578. package/icons/plus/index.cjs.min.js +1 -1
  579. package/icons/plus/index.esm.js +27 -24
  580. package/icons/plus/index.esm.min.js +1 -1
  581. package/icons/plus/index.js +28 -26
  582. package/icons/plus/index.min.js +1 -1
  583. package/icons/plus/index.vue +10 -3
  584. package/icons/refresh/index.cjs.js +29 -26
  585. package/icons/refresh/index.cjs.min.js +1 -1
  586. package/icons/refresh/index.esm.js +29 -26
  587. package/icons/refresh/index.esm.min.js +1 -1
  588. package/icons/refresh/index.js +30 -28
  589. package/icons/refresh/index.min.js +1 -1
  590. package/icons/refresh/index.vue +10 -3
  591. package/icons/search/index.cjs.js +29 -26
  592. package/icons/search/index.cjs.min.js +1 -1
  593. package/icons/search/index.esm.js +29 -26
  594. package/icons/search/index.esm.min.js +1 -1
  595. package/icons/search/index.js +30 -28
  596. package/icons/search/index.min.js +1 -1
  597. package/icons/search/index.vue +10 -3
  598. package/icons/searchminus/index.cjs.js +29 -26
  599. package/icons/searchminus/index.cjs.min.js +1 -1
  600. package/icons/searchminus/index.esm.js +29 -26
  601. package/icons/searchminus/index.esm.min.js +1 -1
  602. package/icons/searchminus/index.js +30 -28
  603. package/icons/searchminus/index.min.js +1 -1
  604. package/icons/searchminus/index.vue +10 -3
  605. package/icons/searchplus/index.cjs.js +29 -26
  606. package/icons/searchplus/index.cjs.min.js +1 -1
  607. package/icons/searchplus/index.esm.js +29 -26
  608. package/icons/searchplus/index.esm.min.js +1 -1
  609. package/icons/searchplus/index.js +30 -28
  610. package/icons/searchplus/index.min.js +1 -1
  611. package/icons/searchplus/index.vue +10 -3
  612. package/icons/sortalt/index.cjs.js +39 -9
  613. package/icons/sortalt/index.cjs.min.js +1 -1
  614. package/icons/sortalt/index.esm.js +40 -10
  615. package/icons/sortalt/index.esm.min.js +1 -1
  616. package/icons/sortalt/index.js +40 -11
  617. package/icons/sortalt/index.min.js +1 -1
  618. package/icons/sortalt/index.vue +10 -3
  619. package/icons/sortamountdown/index.cjs.js +24 -9
  620. package/icons/sortamountdown/index.cjs.min.js +1 -1
  621. package/icons/sortamountdown/index.esm.js +25 -10
  622. package/icons/sortamountdown/index.esm.min.js +1 -1
  623. package/icons/sortamountdown/index.js +25 -11
  624. package/icons/sortamountdown/index.min.js +1 -1
  625. package/icons/sortamountdown/index.vue +10 -3
  626. package/icons/sortamountupalt/index.cjs.js +24 -9
  627. package/icons/sortamountupalt/index.cjs.min.js +1 -1
  628. package/icons/sortamountupalt/index.esm.js +25 -10
  629. package/icons/sortamountupalt/index.esm.min.js +1 -1
  630. package/icons/sortamountupalt/index.js +25 -11
  631. package/icons/sortamountupalt/index.min.js +1 -1
  632. package/icons/sortamountupalt/index.vue +10 -3
  633. package/icons/spinner/index.cjs.js +27 -24
  634. package/icons/spinner/index.cjs.min.js +1 -1
  635. package/icons/spinner/index.esm.js +27 -24
  636. package/icons/spinner/index.esm.min.js +1 -1
  637. package/icons/spinner/index.js +28 -26
  638. package/icons/spinner/index.min.js +1 -1
  639. package/icons/spinner/index.vue +10 -3
  640. package/icons/star/index.cjs.js +27 -24
  641. package/icons/star/index.cjs.min.js +1 -1
  642. package/icons/star/index.esm.js +27 -24
  643. package/icons/star/index.esm.min.js +1 -1
  644. package/icons/star/index.js +28 -26
  645. package/icons/star/index.min.js +1 -1
  646. package/icons/star/index.vue +10 -3
  647. package/icons/starfill/index.cjs.js +27 -24
  648. package/icons/starfill/index.cjs.min.js +1 -1
  649. package/icons/starfill/index.esm.js +27 -24
  650. package/icons/starfill/index.esm.min.js +1 -1
  651. package/icons/starfill/index.js +28 -26
  652. package/icons/starfill/index.min.js +1 -1
  653. package/icons/starfill/index.vue +10 -3
  654. package/icons/thlarge/index.cjs.js +29 -26
  655. package/icons/thlarge/index.cjs.min.js +1 -1
  656. package/icons/thlarge/index.esm.js +29 -26
  657. package/icons/thlarge/index.esm.min.js +1 -1
  658. package/icons/thlarge/index.js +30 -28
  659. package/icons/thlarge/index.min.js +1 -1
  660. package/icons/thlarge/index.vue +10 -3
  661. package/icons/times/index.cjs.js +6 -9
  662. package/icons/times/index.cjs.min.js +1 -1
  663. package/icons/times/index.esm.js +6 -9
  664. package/icons/times/index.esm.min.js +1 -1
  665. package/icons/times/index.js +6 -9
  666. package/icons/times/index.min.js +1 -1
  667. package/icons/timescircle/index.cjs.js +29 -26
  668. package/icons/timescircle/index.cjs.min.js +1 -1
  669. package/icons/timescircle/index.esm.js +29 -26
  670. package/icons/timescircle/index.esm.min.js +1 -1
  671. package/icons/timescircle/index.js +30 -28
  672. package/icons/timescircle/index.min.js +1 -1
  673. package/icons/timescircle/index.vue +10 -3
  674. package/icons/trash/index.cjs.js +29 -26
  675. package/icons/trash/index.cjs.min.js +1 -1
  676. package/icons/trash/index.esm.js +29 -26
  677. package/icons/trash/index.esm.min.js +1 -1
  678. package/icons/trash/index.js +30 -28
  679. package/icons/trash/index.min.js +1 -1
  680. package/icons/trash/index.vue +10 -3
  681. package/icons/undo/index.cjs.js +29 -26
  682. package/icons/undo/index.cjs.min.js +1 -1
  683. package/icons/undo/index.esm.js +29 -26
  684. package/icons/undo/index.esm.min.js +1 -1
  685. package/icons/undo/index.js +30 -28
  686. package/icons/undo/index.min.js +1 -1
  687. package/icons/undo/index.vue +10 -3
  688. package/icons/upload/index.cjs.js +29 -26
  689. package/icons/upload/index.cjs.min.js +1 -1
  690. package/icons/upload/index.esm.js +29 -26
  691. package/icons/upload/index.esm.min.js +1 -1
  692. package/icons/upload/index.js +30 -28
  693. package/icons/upload/index.min.js +1 -1
  694. package/icons/upload/index.vue +10 -3
  695. package/icons/windowmaximize/index.cjs.js +29 -26
  696. package/icons/windowmaximize/index.cjs.min.js +1 -1
  697. package/icons/windowmaximize/index.esm.js +29 -26
  698. package/icons/windowmaximize/index.esm.min.js +1 -1
  699. package/icons/windowmaximize/index.js +30 -28
  700. package/icons/windowmaximize/index.min.js +1 -1
  701. package/icons/windowmaximize/index.vue +10 -3
  702. package/icons/windowminimize/index.cjs.js +29 -26
  703. package/icons/windowminimize/index.cjs.min.js +1 -1
  704. package/icons/windowminimize/index.esm.js +29 -26
  705. package/icons/windowminimize/index.esm.min.js +1 -1
  706. package/icons/windowminimize/index.js +30 -28
  707. package/icons/windowminimize/index.min.js +1 -1
  708. package/icons/windowminimize/index.vue +10 -3
  709. package/image/BaseImage.vue +153 -0
  710. package/image/Image.d.ts +13 -1
  711. package/image/Image.vue +17 -130
  712. package/image/image.cjs.js +385 -379
  713. package/image/image.cjs.min.js +1 -1
  714. package/image/image.esm.js +385 -379
  715. package/image/image.esm.min.js +1 -1
  716. package/image/image.js +385 -380
  717. package/image/image.min.js +1 -1
  718. package/inlinemessage/BaseInlineMessage.vue +54 -0
  719. package/inlinemessage/InlineMessage.d.ts +13 -1
  720. package/inlinemessage/InlineMessage.vue +5 -36
  721. package/inlinemessage/inlinemessage.cjs.js +80 -80
  722. package/inlinemessage/inlinemessage.cjs.min.js +1 -1
  723. package/inlinemessage/inlinemessage.esm.js +80 -80
  724. package/inlinemessage/inlinemessage.esm.min.js +1 -1
  725. package/inlinemessage/inlinemessage.js +81 -82
  726. package/inlinemessage/inlinemessage.min.js +1 -1
  727. package/inplace/BaseInplace.vue +72 -0
  728. package/inplace/Inplace.d.ts +13 -1
  729. package/inplace/Inplace.vue +6 -58
  730. package/inplace/inplace.cjs.js +145 -145
  731. package/inplace/inplace.cjs.min.js +1 -1
  732. package/inplace/inplace.esm.js +144 -144
  733. package/inplace/inplace.esm.min.js +1 -1
  734. package/inplace/inplace.js +145 -146
  735. package/inplace/inplace.min.js +1 -1
  736. package/inputmask/BaseInputMask.vue +43 -0
  737. package/inputmask/InputMask.d.ts +11 -0
  738. package/inputmask/InputMask.vue +3 -34
  739. package/inputmask/inputmask.cjs.js +464 -519
  740. package/inputmask/inputmask.cjs.min.js +1 -1
  741. package/inputmask/inputmask.esm.js +464 -519
  742. package/inputmask/inputmask.esm.min.js +1 -1
  743. package/inputmask/inputmask.js +465 -520
  744. package/inputmask/inputmask.min.js +1 -1
  745. package/inputnumber/BaseInputNumber.vue +288 -0
  746. package/inputnumber/InputNumber.d.ts +13 -1
  747. package/inputnumber/InputNumber.vue +50 -283
  748. package/inputnumber/inputnumber.cjs.js +1113 -1157
  749. package/inputnumber/inputnumber.cjs.min.js +1 -1
  750. package/inputnumber/inputnumber.esm.js +1112 -1156
  751. package/inputnumber/inputnumber.esm.min.js +1 -1
  752. package/inputnumber/inputnumber.js +1113 -1158
  753. package/inputnumber/inputnumber.min.js +1 -1
  754. package/inputswitch/BaseInputSwitch.vue +101 -0
  755. package/inputswitch/InputSwitch.d.ts +18 -1
  756. package/inputswitch/InputSwitch.vue +6 -83
  757. package/inputswitch/inputswitch.cjs.js +149 -138
  758. package/inputswitch/inputswitch.cjs.min.js +1 -1
  759. package/inputswitch/inputswitch.esm.js +149 -138
  760. package/inputswitch/inputswitch.esm.min.js +1 -1
  761. package/inputswitch/inputswitch.js +150 -140
  762. package/inputswitch/inputswitch.min.js +1 -1
  763. package/inputtext/BaseInputText.vue +34 -0
  764. package/inputtext/InputText.d.ts +41 -1
  765. package/inputtext/InputText.vue +11 -6
  766. package/inputtext/inputtext.cjs.js +59 -20
  767. package/inputtext/inputtext.cjs.min.js +1 -1
  768. package/inputtext/inputtext.esm.js +59 -20
  769. package/inputtext/inputtext.esm.min.js +1 -1
  770. package/inputtext/inputtext.js +59 -20
  771. package/inputtext/inputtext.min.js +1 -1
  772. package/knob/BaseKnob.vue +114 -0
  773. package/knob/Knob.d.ts +13 -1
  774. package/knob/Knob.vue +6 -101
  775. package/knob/knob.cjs.js +316 -326
  776. package/knob/knob.cjs.min.js +1 -1
  777. package/knob/knob.esm.js +316 -326
  778. package/knob/knob.esm.min.js +1 -1
  779. package/knob/knob.js +317 -328
  780. package/knob/knob.min.js +1 -1
  781. package/listbox/BaseListbox.vue +156 -0
  782. package/listbox/Listbox.d.ts +13 -1
  783. package/listbox/Listbox.vue +45 -141
  784. package/listbox/listbox.cjs.js +925 -877
  785. package/listbox/listbox.cjs.min.js +1 -1
  786. package/listbox/listbox.esm.js +925 -877
  787. package/listbox/listbox.esm.min.js +1 -1
  788. package/listbox/listbox.js +925 -878
  789. package/listbox/listbox.min.js +1 -1
  790. package/megamenu/BaseMegaMenu.vue +238 -0
  791. package/megamenu/MegaMenu.d.ts +17 -1
  792. package/megamenu/MegaMenu.vue +6 -129
  793. package/megamenu/MegaMenuSub.vue +27 -91
  794. package/megamenu/megamenu.cjs.js +1028 -979
  795. package/megamenu/megamenu.cjs.min.js +1 -1
  796. package/megamenu/megamenu.esm.js +1029 -980
  797. package/megamenu/megamenu.esm.min.js +1 -1
  798. package/megamenu/megamenu.js +1028 -980
  799. package/megamenu/megamenu.min.js +1 -1
  800. package/menu/BaseMenu.vue +112 -0
  801. package/menu/Menu.d.ts +13 -1
  802. package/menu/Menu.vue +15 -92
  803. package/menu/Menuitem.vue +22 -27
  804. package/menu/menu.cjs.js +609 -651
  805. package/menu/menu.cjs.min.js +1 -1
  806. package/menu/menu.esm.js +608 -650
  807. package/menu/menu.esm.min.js +1 -1
  808. package/menu/menu.js +609 -652
  809. package/menu/menu.min.js +1 -1
  810. package/menubar/BaseMenubar.vue +155 -0
  811. package/menubar/Menubar.d.ts +17 -1
  812. package/menubar/Menubar.vue +11 -110
  813. package/menubar/MenubarSub.vue +19 -55
  814. package/menubar/menubar.cjs.js +970 -923
  815. package/menubar/menubar.cjs.min.js +1 -1
  816. package/menubar/menubar.esm.js +970 -923
  817. package/menubar/menubar.esm.min.js +1 -1
  818. package/menubar/menubar.js +970 -924
  819. package/menubar/menubar.min.js +1 -1
  820. package/message/BaseMessage.vue +105 -0
  821. package/message/Message.d.ts +13 -1
  822. package/message/Message.vue +10 -89
  823. package/message/message.cjs.js +150 -154
  824. package/message/message.cjs.min.js +1 -1
  825. package/message/message.esm.js +149 -153
  826. package/message/message.esm.min.js +1 -1
  827. package/message/message.js +150 -155
  828. package/message/message.min.js +1 -1
  829. package/multiselect/BaseMultiSelect.vue +363 -0
  830. package/multiselect/MultiSelect.d.ts +13 -6
  831. package/multiselect/MultiSelect.vue +76 -373
  832. package/multiselect/multiselect.cjs.js +1513 -1449
  833. package/multiselect/multiselect.cjs.min.js +1 -1
  834. package/multiselect/multiselect.esm.js +1513 -1449
  835. package/multiselect/multiselect.esm.min.js +1 -1
  836. package/multiselect/multiselect.js +1513 -1450
  837. package/multiselect/multiselect.min.js +1 -1
  838. package/orderlist/BaseOrderList.vue +146 -0
  839. package/orderlist/OrderList.d.ts +30 -1
  840. package/orderlist/OrderList.vue +38 -159
  841. package/orderlist/orderlist.cjs.js +631 -686
  842. package/orderlist/orderlist.cjs.min.js +1 -1
  843. package/orderlist/orderlist.esm.js +630 -685
  844. package/orderlist/orderlist.esm.min.js +1 -1
  845. package/orderlist/orderlist.js +631 -687
  846. package/orderlist/orderlist.min.js +1 -1
  847. package/organizationchart/BaseOrganizationChart.vue +111 -0
  848. package/organizationchart/OrganizationChart.d.ts +13 -1
  849. package/organizationchart/OrganizationChart.vue +4 -80
  850. package/organizationchart/OrganizationChartNode.vue +15 -16
  851. package/organizationchart/organizationchart.cjs.js +315 -313
  852. package/organizationchart/organizationchart.cjs.min.js +1 -1
  853. package/organizationchart/organizationchart.esm.js +315 -313
  854. package/organizationchart/organizationchart.esm.min.js +1 -1
  855. package/organizationchart/organizationchart.js +316 -315
  856. package/organizationchart/organizationchart.min.js +1 -1
  857. package/overlaypanel/BaseOverlayPanel.vue +135 -0
  858. package/overlaypanel/OverlayPanel.d.ts +13 -1
  859. package/overlaypanel/OverlayPanel.vue +10 -122
  860. package/overlaypanel/overlaypanel.cjs.js +352 -374
  861. package/overlaypanel/overlaypanel.cjs.min.js +1 -1
  862. package/overlaypanel/overlaypanel.esm.js +351 -373
  863. package/overlaypanel/overlaypanel.esm.min.js +1 -1
  864. package/overlaypanel/overlaypanel.js +352 -375
  865. package/overlaypanel/overlaypanel.min.js +1 -1
  866. package/package.json +1 -1
  867. package/paginator/BasePaginator.vue +147 -0
  868. package/paginator/CurrentPageReport.vue +2 -1
  869. package/paginator/FirstPageLink.vue +3 -12
  870. package/paginator/JumpToPageDropdown.vue +13 -1
  871. package/paginator/JumpToPageInput.vue +12 -1
  872. package/paginator/LastPageLink.vue +3 -12
  873. package/paginator/NextPageLink.vue +3 -12
  874. package/paginator/PageLinks.vue +4 -2
  875. package/paginator/Paginator.d.ts +20 -9
  876. package/paginator/Paginator.vue +19 -93
  877. package/paginator/PrevPageLink.vue +3 -12
  878. package/paginator/RowsPerPageDropdown.vue +13 -1
  879. package/paginator/paginator.cjs.js +753 -782
  880. package/paginator/paginator.cjs.min.js +1 -1
  881. package/paginator/paginator.esm.js +754 -783
  882. package/paginator/paginator.esm.min.js +1 -1
  883. package/paginator/paginator.js +753 -783
  884. package/paginator/paginator.min.js +1 -1
  885. package/panel/BasePanel.vue +67 -0
  886. package/panel/Panel.d.ts +14 -2
  887. package/panel/Panel.vue +11 -45
  888. package/panel/panel.cjs.js +151 -154
  889. package/panel/panel.cjs.min.js +1 -1
  890. package/panel/panel.esm.js +151 -154
  891. package/panel/panel.esm.min.js +1 -1
  892. package/panel/panel.js +151 -155
  893. package/panel/panel.min.js +1 -1
  894. package/panelmenu/BasePanelMenu.vue +118 -0
  895. package/panelmenu/PanelMenu.d.ts +17 -1
  896. package/panelmenu/PanelMenu.vue +28 -104
  897. package/panelmenu/PanelMenuList.vue +5 -3
  898. package/panelmenu/PanelMenuSub.vue +29 -49
  899. package/panelmenu/panelmenu.cjs.js +1034 -1007
  900. package/panelmenu/panelmenu.cjs.min.js +1 -1
  901. package/panelmenu/panelmenu.esm.js +1034 -1007
  902. package/panelmenu/panelmenu.esm.min.js +1 -1
  903. package/panelmenu/panelmenu.js +1034 -1008
  904. package/panelmenu/panelmenu.min.js +1 -1
  905. package/password/BasePassword.vue +180 -0
  906. package/password/Password.d.ts +17 -1
  907. package/password/Password.vue +12 -176
  908. package/password/password.cjs.js +473 -479
  909. package/password/password.cjs.min.js +1 -1
  910. package/password/password.esm.js +472 -478
  911. package/password/password.esm.min.js +1 -1
  912. package/password/password.js +473 -480
  913. package/password/password.min.js +1 -1
  914. package/picklist/BasePickList.vue +167 -0
  915. package/picklist/PickList.d.ts +36 -3
  916. package/picklist/PickList.vue +51 -180
  917. package/picklist/picklist.cjs.js +1072 -1108
  918. package/picklist/picklist.cjs.min.js +1 -1
  919. package/picklist/picklist.esm.js +1071 -1107
  920. package/picklist/picklist.esm.min.js +1 -1
  921. package/picklist/picklist.js +1072 -1109
  922. package/picklist/picklist.min.js +1 -1
  923. package/portal/portal.cjs.js +28 -32
  924. package/portal/portal.cjs.min.js +1 -1
  925. package/portal/portal.esm.js +28 -32
  926. package/portal/portal.esm.min.js +1 -1
  927. package/portal/portal.js +28 -32
  928. package/portal/portal.min.js +1 -1
  929. package/progressbar/BaseProgressBar.vue +158 -0
  930. package/progressbar/ProgressBar.d.ts +13 -1
  931. package/progressbar/ProgressBar.vue +7 -141
  932. package/progressbar/progressbar.cjs.js +80 -100
  933. package/progressbar/progressbar.cjs.min.js +1 -1
  934. package/progressbar/progressbar.esm.js +80 -100
  935. package/progressbar/progressbar.esm.min.js +1 -1
  936. package/progressbar/progressbar.js +81 -102
  937. package/progressbar/progressbar.min.js +1 -1
  938. package/progressspinner/BaseProgressSpinner.vue +68 -0
  939. package/progressspinner/ProgressSpinner.d.ts +13 -1
  940. package/progressspinner/ProgressSpinner.vue +5 -47
  941. package/progressspinner/progressspinner.cjs.js +65 -72
  942. package/progressspinner/progressspinner.cjs.min.js +1 -1
  943. package/progressspinner/progressspinner.esm.js +65 -72
  944. package/progressspinner/progressspinner.esm.min.js +1 -1
  945. package/progressspinner/progressspinner.js +66 -74
  946. package/progressspinner/progressspinner.min.js +1 -1
  947. package/radiobutton/BaseRadioButton.vue +72 -0
  948. package/radiobutton/RadioButton.d.ts +18 -1
  949. package/radiobutton/RadioButton.vue +7 -68
  950. package/radiobutton/radiobutton.cjs.js +145 -106
  951. package/radiobutton/radiobutton.cjs.min.js +1 -1
  952. package/radiobutton/radiobutton.esm.js +145 -106
  953. package/radiobutton/radiobutton.esm.min.js +1 -1
  954. package/radiobutton/radiobutton.js +146 -107
  955. package/radiobutton/radiobutton.min.js +1 -1
  956. package/rating/BaseRating.vue +98 -0
  957. package/rating/Rating.d.ts +31 -2
  958. package/rating/Rating.vue +13 -76
  959. package/rating/rating.cjs.js +238 -206
  960. package/rating/rating.cjs.min.js +1 -1
  961. package/rating/rating.esm.js +238 -206
  962. package/rating/rating.esm.min.js +1 -1
  963. package/rating/rating.js +238 -207
  964. package/rating/rating.min.js +1 -1
  965. package/resources/primevue.css +3 -521
  966. package/resources/primevue.min.css +3 -1
  967. package/ripple/Ripple.d.ts +48 -1
  968. package/ripple/ripple.cjs.js +102 -82
  969. package/ripple/ripple.cjs.min.js +1 -1
  970. package/ripple/ripple.esm.js +100 -84
  971. package/ripple/ripple.esm.min.js +1 -1
  972. package/ripple/ripple.js +102 -84
  973. package/ripple/ripple.min.js +1 -1
  974. package/row/Row.d.ts +26 -2
  975. package/row/row.cjs.js +5 -5
  976. package/row/row.cjs.min.js +1 -1
  977. package/row/row.esm.js +5 -5
  978. package/row/row.esm.min.js +1 -1
  979. package/row/row.js +5 -5
  980. package/row/row.min.js +1 -1
  981. package/scrollpanel/BaseScrollPanel.vue +92 -0
  982. package/scrollpanel/ScrollPanel.d.ts +13 -1
  983. package/scrollpanel/ScrollPanel.vue +29 -82
  984. package/scrollpanel/scrollpanel.cjs.js +370 -358
  985. package/scrollpanel/scrollpanel.cjs.min.js +1 -1
  986. package/scrollpanel/scrollpanel.esm.js +370 -358
  987. package/scrollpanel/scrollpanel.esm.min.js +1 -1
  988. package/scrollpanel/scrollpanel.js +370 -359
  989. package/scrollpanel/scrollpanel.min.js +1 -1
  990. package/scrolltop/BaseScrollTop.vue +78 -0
  991. package/scrolltop/ScrollTop.d.ts +13 -1
  992. package/scrolltop/ScrollTop.vue +5 -61
  993. package/scrolltop/scrolltop.cjs.js +140 -147
  994. package/scrolltop/scrolltop.cjs.min.js +1 -1
  995. package/scrolltop/scrolltop.esm.js +140 -147
  996. package/scrolltop/scrolltop.esm.min.js +1 -1
  997. package/scrolltop/scrolltop.js +140 -148
  998. package/scrolltop/scrolltop.min.js +1 -1
  999. package/selectbutton/BaseSelectButton.vue +46 -0
  1000. package/selectbutton/SelectButton.d.ts +13 -1
  1001. package/selectbutton/SelectButton.vue +11 -44
  1002. package/selectbutton/selectbutton.cjs.js +241 -209
  1003. package/selectbutton/selectbutton.cjs.min.js +1 -1
  1004. package/selectbutton/selectbutton.esm.js +241 -209
  1005. package/selectbutton/selectbutton.esm.min.js +1 -1
  1006. package/selectbutton/selectbutton.js +242 -210
  1007. package/selectbutton/selectbutton.min.js +1 -1
  1008. package/sidebar/BaseSidebar.vue +255 -0
  1009. package/sidebar/Sidebar.d.ts +13 -1
  1010. package/sidebar/Sidebar.vue +10 -251
  1011. package/sidebar/sidebar.cjs.js +316 -329
  1012. package/sidebar/sidebar.cjs.min.js +1 -1
  1013. package/sidebar/sidebar.esm.js +315 -328
  1014. package/sidebar/sidebar.esm.min.js +1 -1
  1015. package/sidebar/sidebar.js +316 -330
  1016. package/sidebar/sidebar.min.js +1 -1
  1017. package/skeleton/BaseSkeleton.vue +96 -0
  1018. package/skeleton/Skeleton.d.ts +13 -1
  1019. package/skeleton/Skeleton.vue +3 -74
  1020. package/skeleton/skeleton.cjs.js +81 -75
  1021. package/skeleton/skeleton.cjs.min.js +1 -1
  1022. package/skeleton/skeleton.esm.js +81 -75
  1023. package/skeleton/skeleton.esm.min.js +1 -1
  1024. package/skeleton/skeleton.js +82 -77
  1025. package/skeleton/skeleton.min.js +1 -1
  1026. package/slider/BaseSlider.vue +118 -0
  1027. package/slider/Slider.d.ts +13 -1
  1028. package/slider/Slider.vue +13 -104
  1029. package/slider/slider.cjs.js +411 -400
  1030. package/slider/slider.cjs.min.js +1 -1
  1031. package/slider/slider.esm.js +411 -400
  1032. package/slider/slider.esm.min.js +1 -1
  1033. package/slider/slider.js +411 -401
  1034. package/slider/slider.min.js +1 -1
  1035. package/speeddial/BaseSpeedDial.vue +234 -0
  1036. package/speeddial/SpeedDial.d.ts +13 -1
  1037. package/speeddial/SpeedDial.vue +19 -237
  1038. package/speeddial/speeddial.cjs.js +607 -614
  1039. package/speeddial/speeddial.cjs.min.js +1 -1
  1040. package/speeddial/speeddial.esm.js +606 -613
  1041. package/speeddial/speeddial.esm.min.js +1 -1
  1042. package/speeddial/speeddial.js +607 -615
  1043. package/speeddial/speeddial.min.js +1 -1
  1044. package/splitbutton/BaseSplitButton.vue +149 -0
  1045. package/splitbutton/SplitButton.d.ts +25 -3
  1046. package/splitbutton/SplitButton.vue +17 -135
  1047. package/splitbutton/splitbutton.cjs.js +230 -220
  1048. package/splitbutton/splitbutton.cjs.min.js +1 -1
  1049. package/splitbutton/splitbutton.esm.js +230 -220
  1050. package/splitbutton/splitbutton.esm.min.js +1 -1
  1051. package/splitbutton/splitbutton.js +230 -221
  1052. package/splitbutton/splitbutton.min.js +1 -1
  1053. package/splitter/BaseSplitter.vue +101 -0
  1054. package/splitter/Splitter.d.ts +13 -1
  1055. package/splitter/Splitter.vue +13 -97
  1056. package/splitter/splitter.cjs.js +427 -409
  1057. package/splitter/splitter.cjs.min.js +1 -1
  1058. package/splitter/splitter.esm.js +427 -409
  1059. package/splitter/splitter.esm.min.js +1 -1
  1060. package/splitter/splitter.js +427 -410
  1061. package/splitter/splitter.min.js +1 -1
  1062. package/splitterpanel/BaseSplitterPanel.vue +49 -0
  1063. package/splitterpanel/SplitterPanel.d.ts +13 -1
  1064. package/splitterpanel/SplitterPanel.vue +3 -16
  1065. package/splitterpanel/splitterpanel.cjs.js +52 -26
  1066. package/splitterpanel/splitterpanel.cjs.min.js +1 -1
  1067. package/splitterpanel/splitterpanel.esm.js +52 -26
  1068. package/splitterpanel/splitterpanel.esm.min.js +1 -1
  1069. package/splitterpanel/splitterpanel.js +53 -28
  1070. package/splitterpanel/splitterpanel.min.js +1 -1
  1071. package/steps/BaseSteps.vue +112 -0
  1072. package/steps/Steps.d.ts +13 -1
  1073. package/steps/Steps.vue +14 -110
  1074. package/steps/steps.cjs.js +248 -260
  1075. package/steps/steps.cjs.min.js +1 -1
  1076. package/steps/steps.esm.js +248 -260
  1077. package/steps/steps.esm.min.js +1 -1
  1078. package/steps/steps.js +248 -261
  1079. package/steps/steps.min.js +1 -1
  1080. package/styleclass/StyleClass.d.ts +17 -0
  1081. package/styleclass/styleclass.cjs.js +117 -141
  1082. package/styleclass/styleclass.cjs.min.js +1 -1
  1083. package/styleclass/styleclass.esm.js +113 -141
  1084. package/styleclass/styleclass.esm.min.js +1 -1
  1085. package/styleclass/styleclass.js +117 -142
  1086. package/styleclass/styleclass.min.js +1 -1
  1087. package/tabmenu/BaseTabMenu.vue +100 -0
  1088. package/tabmenu/TabMenu.d.ts +13 -1
  1089. package/tabmenu/TabMenu.vue +39 -107
  1090. package/tabmenu/tabmenu.cjs.js +365 -394
  1091. package/tabmenu/tabmenu.cjs.min.js +1 -1
  1092. package/tabmenu/tabmenu.esm.js +364 -393
  1093. package/tabmenu/tabmenu.esm.min.js +1 -1
  1094. package/tabmenu/tabmenu.js +365 -395
  1095. package/tabmenu/tabmenu.min.js +1 -1
  1096. package/tabpanel/BaseTabPanel.vue +19 -0
  1097. package/tabpanel/TabPanel.d.ts +36 -1
  1098. package/tabpanel/TabPanel.vue +3 -13
  1099. package/tabpanel/tabpanel.cjs.js +19 -14
  1100. package/tabpanel/tabpanel.cjs.min.js +1 -1
  1101. package/tabpanel/tabpanel.esm.js +19 -14
  1102. package/tabpanel/tabpanel.esm.min.js +1 -1
  1103. package/tabpanel/tabpanel.js +19 -14
  1104. package/tabpanel/tabpanel.min.js +1 -1
  1105. package/tabview/BaseTabView.vue +159 -0
  1106. package/tabview/TabView.d.ts +22 -1
  1107. package/tabview/TabView.vue +59 -172
  1108. package/tabview/tabview.cjs.js +462 -459
  1109. package/tabview/tabview.cjs.min.js +1 -1
  1110. package/tabview/tabview.esm.js +462 -459
  1111. package/tabview/tabview.esm.min.js +1 -1
  1112. package/tabview/tabview.js +462 -460
  1113. package/tabview/tabview.min.js +1 -1
  1114. package/tag/BaseTag.vue +59 -0
  1115. package/tag/Tag.d.ts +13 -1
  1116. package/tag/Tag.vue +6 -47
  1117. package/tag/tag.cjs.js +58 -71
  1118. package/tag/tag.cjs.min.js +1 -1
  1119. package/tag/tag.esm.js +58 -71
  1120. package/tag/tag.esm.min.js +1 -1
  1121. package/tag/tag.js +59 -73
  1122. package/tag/tag.min.js +1 -1
  1123. package/terminal/BaseTerminal.vue +65 -0
  1124. package/terminal/Terminal.d.ts +13 -1
  1125. package/terminal/Terminal.vue +10 -45
  1126. package/terminal/terminal.cjs.js +112 -107
  1127. package/terminal/terminal.cjs.min.js +1 -1
  1128. package/terminal/terminal.esm.js +111 -106
  1129. package/terminal/terminal.esm.min.js +1 -1
  1130. package/terminal/terminal.js +112 -108
  1131. package/terminal/terminal.min.js +1 -1
  1132. package/textarea/BaseTextarea.vue +45 -0
  1133. package/textarea/Textarea.d.ts +30 -1
  1134. package/textarea/Textarea.vue +10 -18
  1135. package/textarea/textarea.cjs.js +85 -77
  1136. package/textarea/textarea.cjs.min.js +1 -1
  1137. package/textarea/textarea.esm.js +85 -77
  1138. package/textarea/textarea.esm.min.js +1 -1
  1139. package/textarea/textarea.js +86 -79
  1140. package/textarea/textarea.min.js +1 -1
  1141. package/tieredmenu/BaseTieredMenu.vue +142 -0
  1142. package/tieredmenu/TieredMenu.d.ts +17 -1
  1143. package/tieredmenu/TieredMenu.vue +5 -105
  1144. package/tieredmenu/TieredMenuSub.vue +23 -50
  1145. package/tieredmenu/tieredmenu.cjs.js +987 -941
  1146. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  1147. package/tieredmenu/tieredmenu.esm.js +987 -941
  1148. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  1149. package/tieredmenu/tieredmenu.js +987 -942
  1150. package/tieredmenu/tieredmenu.min.js +1 -1
  1151. package/timeline/BaseTimeline.vue +155 -0
  1152. package/timeline/Timeline.d.ts +31 -1
  1153. package/timeline/Timeline.vue +17 -139
  1154. package/timeline/timeline.cjs.js +97 -90
  1155. package/timeline/timeline.cjs.min.js +1 -1
  1156. package/timeline/timeline.esm.js +97 -90
  1157. package/timeline/timeline.esm.min.js +1 -1
  1158. package/timeline/timeline.js +97 -91
  1159. package/timeline/timeline.min.js +1 -1
  1160. package/toast/BaseToast.vue +181 -0
  1161. package/toast/Toast.d.ts +13 -1
  1162. package/toast/Toast.vue +4 -155
  1163. package/toast/ToastMessage.vue +9 -31
  1164. package/toast/toast.cjs.js +389 -380
  1165. package/toast/toast.cjs.min.js +1 -1
  1166. package/toast/toast.esm.js +388 -379
  1167. package/toast/toast.esm.min.js +1 -1
  1168. package/toast/toast.js +389 -381
  1169. package/toast/toast.min.js +1 -1
  1170. package/toastservice/toastservice.cjs.js +15 -16
  1171. package/toastservice/toastservice.cjs.min.js +1 -1
  1172. package/toastservice/toastservice.esm.js +15 -16
  1173. package/toastservice/toastservice.esm.min.js +1 -1
  1174. package/toastservice/toastservice.js +15 -16
  1175. package/toastservice/toastservice.min.js +1 -1
  1176. package/togglebutton/BaseToggleButton.vue +85 -0
  1177. package/togglebutton/ToggleButton.d.ts +13 -1
  1178. package/togglebutton/ToggleButton.vue +7 -77
  1179. package/togglebutton/togglebutton.cjs.js +193 -170
  1180. package/togglebutton/togglebutton.cjs.min.js +1 -1
  1181. package/togglebutton/togglebutton.esm.js +192 -169
  1182. package/togglebutton/togglebutton.esm.min.js +1 -1
  1183. package/togglebutton/togglebutton.js +194 -171
  1184. package/togglebutton/togglebutton.min.js +1 -1
  1185. package/toolbar/BaseToolbar.vue +55 -0
  1186. package/toolbar/Toolbar.d.ts +13 -1
  1187. package/toolbar/Toolbar.vue +7 -34
  1188. package/toolbar/toolbar.cjs.js +50 -52
  1189. package/toolbar/toolbar.cjs.min.js +1 -1
  1190. package/toolbar/toolbar.esm.js +50 -52
  1191. package/toolbar/toolbar.esm.min.js +1 -1
  1192. package/toolbar/toolbar.js +51 -54
  1193. package/toolbar/toolbar.min.js +1 -1
  1194. package/tooltip/Tooltip.d.ts +44 -0
  1195. package/tooltip/tooltip.cjs.js +379 -400
  1196. package/tooltip/tooltip.cjs.min.js +1 -1
  1197. package/tooltip/tooltip.esm.js +379 -404
  1198. package/tooltip/tooltip.esm.min.js +1 -1
  1199. package/tooltip/tooltip.js +409 -432
  1200. package/tooltip/tooltip.min.js +1 -1
  1201. package/tree/BaseTree.vue +211 -0
  1202. package/tree/Tree.d.ts +33 -11
  1203. package/tree/Tree.vue +13 -173
  1204. package/tree/TreeNode.vue +23 -45
  1205. package/tree/tree.cjs.js +852 -855
  1206. package/tree/tree.cjs.min.js +1 -1
  1207. package/tree/tree.esm.js +852 -855
  1208. package/tree/tree.esm.min.js +1 -1
  1209. package/tree/tree.js +852 -856
  1210. package/tree/tree.min.js +1 -1
  1211. package/treeselect/BaseTreeSelect.vue +184 -0
  1212. package/treeselect/TreeSelect.d.ts +20 -3
  1213. package/treeselect/TreeSelect.vue +21 -180
  1214. package/treeselect/treeselect.cjs.js +675 -622
  1215. package/treeselect/treeselect.cjs.min.js +1 -1
  1216. package/treeselect/treeselect.esm.js +675 -622
  1217. package/treeselect/treeselect.esm.min.js +1 -1
  1218. package/treeselect/treeselect.js +675 -623
  1219. package/treeselect/treeselect.min.js +1 -1
  1220. package/treetable/BaseTreeTable.vue +434 -0
  1221. package/treetable/BodyCell.vue +31 -29
  1222. package/treetable/FooterCell.vue +16 -11
  1223. package/treetable/HeaderCell.vue +27 -21
  1224. package/treetable/TreeTable.d.ts +30 -5
  1225. package/treetable/TreeTable.vue +38 -379
  1226. package/treetable/TreeTableRow.vue +9 -11
  1227. package/treetable/treetable.cjs.js +2088 -2129
  1228. package/treetable/treetable.cjs.min.js +1 -1
  1229. package/treetable/treetable.esm.js +2088 -2129
  1230. package/treetable/treetable.esm.min.js +1 -1
  1231. package/treetable/treetable.js +2088 -2130
  1232. package/treetable/treetable.min.js +1 -1
  1233. package/tristatecheckbox/BaseTriStateCheckbox.vue +65 -0
  1234. package/tristatecheckbox/TriStateCheckbox.d.ts +34 -7
  1235. package/tristatecheckbox/TriStateCheckbox.vue +12 -49
  1236. package/tristatecheckbox/tristatecheckbox.cjs.js +196 -144
  1237. package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
  1238. package/tristatecheckbox/tristatecheckbox.esm.js +196 -144
  1239. package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
  1240. package/tristatecheckbox/tristatecheckbox.js +197 -145
  1241. package/tristatecheckbox/tristatecheckbox.min.js +1 -1
  1242. package/useconfirm/useconfirm.cjs.js +6 -9
  1243. package/useconfirm/useconfirm.cjs.min.js +1 -1
  1244. package/useconfirm/useconfirm.esm.js +6 -9
  1245. package/useconfirm/useconfirm.esm.min.js +1 -1
  1246. package/useconfirm/useconfirm.js +6 -9
  1247. package/useconfirm/useconfirm.min.js +1 -1
  1248. package/usedialog/usedialog.cjs.js +6 -9
  1249. package/usedialog/usedialog.cjs.min.js +1 -1
  1250. package/usedialog/usedialog.esm.js +6 -9
  1251. package/usedialog/usedialog.esm.min.js +1 -1
  1252. package/usedialog/usedialog.js +6 -9
  1253. package/usedialog/usedialog.min.js +1 -1
  1254. package/usestyle/UseStyle.d.ts +20 -0
  1255. package/usestyle/package.json +6 -0
  1256. package/usestyle/usestyle.cjs.js +75 -0
  1257. package/usestyle/usestyle.cjs.min.js +1 -0
  1258. package/usestyle/usestyle.esm.js +71 -0
  1259. package/usestyle/usestyle.esm.min.js +1 -0
  1260. package/usestyle/usestyle.js +78 -0
  1261. package/usestyle/usestyle.min.js +1 -0
  1262. package/usetoast/usetoast.cjs.js +6 -9
  1263. package/usetoast/usetoast.cjs.min.js +1 -1
  1264. package/usetoast/usetoast.esm.js +6 -9
  1265. package/usetoast/usetoast.esm.min.js +1 -1
  1266. package/usetoast/usetoast.js +6 -9
  1267. package/usetoast/usetoast.min.js +1 -1
  1268. package/utils/Utils.d.ts +14 -2
  1269. package/utils/utils.cjs.js +972 -996
  1270. package/utils/utils.cjs.min.js +1 -1
  1271. package/utils/utils.esm.js +972 -996
  1272. package/utils/utils.esm.min.js +1 -1
  1273. package/utils/utils.js +972 -996
  1274. package/utils/utils.min.js +1 -1
  1275. package/vetur-attributes.json +332 -0
  1276. package/vetur-tags.json +168 -80
  1277. package/virtualscroller/BaseVirtualScroller.vue +164 -0
  1278. package/virtualscroller/VirtualScroller.d.ts +23 -6
  1279. package/virtualscroller/VirtualScroller.vue +6 -151
  1280. package/virtualscroller/virtualscroller.cjs.js +865 -800
  1281. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  1282. package/virtualscroller/virtualscroller.esm.js +864 -799
  1283. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  1284. package/virtualscroller/virtualscroller.js +865 -801
  1285. package/virtualscroller/virtualscroller.min.js +1 -1
  1286. package/web-types.json +836 -4
  1287. package/resources/images/color.png +0 -0
  1288. package/resources/images/hue.png +0 -0
@@ -1,12 +1,12 @@
1
1
  this.primevue = this.primevue || {};
2
- this.primevue.galleria = (function (BaseComponent, FocusTrap, Portal, utils, TimesIcon, Ripple, ChevronLeftIcon, ChevronRightIcon, vue, ChevronDownIcon, ChevronUpIcon) {
2
+ this.primevue.galleria = (function (FocusTrap, Portal, utils, BaseComponent, usestyle, TimesIcon, Ripple, ChevronLeftIcon, ChevronRightIcon, vue, ChevronDownIcon, ChevronUpIcon) {
3
3
  'use strict';
4
4
 
5
5
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
6
6
 
7
- var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
8
7
  var FocusTrap__default = /*#__PURE__*/_interopDefaultLegacy(FocusTrap);
9
8
  var Portal__default = /*#__PURE__*/_interopDefaultLegacy(Portal);
9
+ var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
10
10
  var TimesIcon__default = /*#__PURE__*/_interopDefaultLegacy(TimesIcon);
11
11
  var Ripple__default = /*#__PURE__*/_interopDefaultLegacy(Ripple);
12
12
  var ChevronLeftIcon__default = /*#__PURE__*/_interopDefaultLegacy(ChevronLeftIcon);
@@ -14,1322 +14,1238 @@ this.primevue.galleria = (function (BaseComponent, FocusTrap, Portal, utils, Tim
14
14
  var ChevronDownIcon__default = /*#__PURE__*/_interopDefaultLegacy(ChevronDownIcon);
15
15
  var ChevronUpIcon__default = /*#__PURE__*/_interopDefaultLegacy(ChevronUpIcon);
16
16
 
17
- var script$3 = {
18
- name: 'GalleriaItem',
19
- extends: BaseComponent__default["default"],
20
- emits: ['start-slideshow', 'stop-slideshow', 'update:activeIndex'],
21
- props: {
22
- circular: {
23
- type: Boolean,
24
- default: false
25
- },
26
- activeIndex: {
27
- type: Number,
28
- default: 0
29
- },
30
- value: {
31
- type: Array,
32
- default: null
33
- },
34
- showItemNavigators: {
35
- type: Boolean,
36
- default: true
37
- },
38
- showIndicators: {
39
- type: Boolean,
40
- default: true
41
- },
42
- slideShowActive: {
43
- type: Boolean,
44
- default: true
45
- },
46
- changeItemOnIndicatorHover: {
47
- type: Boolean,
48
- default: true
49
- },
50
- autoPlay: {
51
- type: Boolean,
52
- default: false
53
- },
54
- templates: {
55
- type: null,
56
- default: null
57
- },
58
- id: {
59
- type: String,
60
- default: null
61
- }
17
+ var styles = "\n.p-galleria-content {\n display: flex;\n flex-direction: column;\n}\n\n.p-galleria-item-wrapper {\n display: flex;\n flex-direction: column;\n position: relative;\n}\n\n.p-galleria-item-container {\n position: relative;\n display: flex;\n height: 100%;\n}\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\n.p-galleria-item-prev {\n left: 0;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n\n.p-galleria-item-next {\n right: 0;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n.p-galleria-item {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n width: 100%;\n}\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\n.p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav {\n pointer-events: all;\n opacity: 1;\n}\n\n.p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav.p-disabled {\n pointer-events: none;\n}\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\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\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\n.p-galleria-thumbnail-container {\n display: flex;\n flex-direction: row;\n}\n\n.p-galleria-thumbnail-items-container {\n overflow: hidden;\n width: 100%;\n}\n\n.p-galleria-thumbnail-items {\n display: flex;\n}\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\n.p-galleria-thumbnail-item:hover {\n opacity: 1;\n transition: opacity 0.3s;\n}\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\n.p-galleria-thumbnails-left .p-galleria-item-wrapper,\n.p-galleria-thumbnails-right .p-galleria-item-wrapper {\n flex-direction: row;\n}\n\n.p-galleria-thumbnails-left .p-galleria-item-wrapper,\n.p-galleria-thumbnails-top .p-galleria-item-wrapper {\n order: 2;\n}\n\n.p-galleria-thumbnails-left .p-galleria-thumbnail-wrapper,\n.p-galleria-thumbnails-top .p-galleria-thumbnail-wrapper {\n order: 1;\n}\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\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\n.p-galleria-indicator > button {\n display: inline-flex;\n align-items: center;\n}\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\n.p-galleria-indicators-left .p-galleria-item-container,\n.p-galleria-indicators-top .p-galleria-item-container {\n order: 2;\n}\n\n.p-galleria-indicators-left .p-galleria-indicators,\n.p-galleria-indicators-top .p-galleria-indicators {\n order: 1;\n}\n\n.p-galleria-indicators-left .p-galleria-indicators,\n.p-galleria-indicators-right .p-galleria-indicators {\n flex-direction: column;\n}\n\n.p-galleria-indicator-onitem .p-galleria-indicators {\n position: absolute;\n display: flex;\n}\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\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\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\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\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\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\n.p-galleria-leave-active {\n transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);\n}\n\n.p-galleria-enter-from,\n.p-galleria-leave-to {\n opacity: 0;\n transform: scale(0.7);\n}\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\n.p-items-hidden .p-galleria-thumbnail-item.p-galleria-thumbnail-item-active {\n visibility: visible;\n}\n";
18
+ var classes = {
19
+ mask: function mask(_ref) {
20
+ var instance = _ref.instance;
21
+ return ['p-galleria-mask p-component-overlay p-component-overlay-enter', {
22
+ 'p-input-filled': instance.$primevue.config.inputStyle === 'filled',
23
+ 'p-ripple-disabled': instance.$primevue.config.ripple === false
24
+ }];
25
+ },
26
+ root: function root(_ref2) {
27
+ var instance = _ref2.instance;
28
+ var thumbnailsPosClass = instance.$attrs.showThumbnails && instance.getPositionClass('p-galleria-thumbnails', instance.$attrs.thumbnailsPosition);
29
+ var indicatorPosClass = instance.$attrs.showIndicators && instance.getPositionClass('p-galleria-indicators', instance.$attrs.indicatorsPosition);
30
+ return ['p-galleria p-component', {
31
+ 'p-galleria-fullscreen': instance.$attrs.fullScreen,
32
+ 'p-galleria-indicator-onitem': instance.$attrs.showIndicatorsOnItem,
33
+ 'p-galleria-item-nav-onhover': instance.$attrs.showItemNavigatorsOnHover && !instance.$attrs.fullScreen
34
+ }, thumbnailsPosClass, indicatorPosClass];
35
+ },
36
+ closeButton: 'p-galleria-close p-link',
37
+ closeIcon: 'p-galleria-close-icon',
38
+ header: 'p-galleria-header',
39
+ content: 'p-galleria-content',
40
+ footer: 'p-galleria-footer',
41
+ itemWrapper: 'p-galleria-item-wrapper',
42
+ itemContainer: 'p-galleria-item-container',
43
+ previousItemButton: function previousItemButton(_ref3) {
44
+ var instance = _ref3.instance;
45
+ return ['p-galleria-item-prev p-galleria-item-nav p-link', {
46
+ 'p-disabled': instance.isNavBackwardDisabled()
47
+ }];
48
+ },
49
+ previousItemIcon: 'p-galleria-item-prev-icon',
50
+ item: 'p-galleria-item',
51
+ nextItemButton: function nextItemButton(_ref4) {
52
+ var instance = _ref4.instance;
53
+ return ['p-galleria-item-next p-galleria-item-nav p-link', {
54
+ 'p-disabled': instance.isNavForwardDisabled()
55
+ }];
56
+ },
57
+ nextItemIcon: 'p-galleria-item-next-icon',
58
+ caption: 'p-galleria-caption',
59
+ indicators: 'p-galleria-indicators p-reset',
60
+ indicator: function indicator(_ref5) {
61
+ var instance = _ref5.instance,
62
+ index = _ref5.index;
63
+ return ['p-galleria-indicator', {
64
+ 'p-highlight': instance.isIndicatorItemActive(index)
65
+ }];
66
+ },
67
+ indicatorButton: 'p-link',
68
+ thumbnailWrapper: 'p-galleria-thumbnail-wrapper',
69
+ thumbnailContainer: 'p-galleria-thumbnail-container',
70
+ previousThumbnailButton: function previousThumbnailButton(_ref6) {
71
+ var instance = _ref6.instance;
72
+ return ['p-galleria-thumbnail-prev p-link', {
73
+ 'p-disabled': instance.isNavBackwardDisabled()
74
+ }];
75
+ },
76
+ previousThumbnailIcon: 'p-galleria-thumbnail-prev-icon',
77
+ thumbnailItemsContainer: 'p-galleria-thumbnail-items-container',
78
+ thumbnailItems: 'p-galleria-thumbnail-items',
79
+ thumbnailItem: function thumbnailItem(_ref7) {
80
+ var instance = _ref7.instance,
81
+ index = _ref7.index,
82
+ activeIndex = _ref7.activeIndex;
83
+ return ['p-galleria-thumbnail-item', {
84
+ 'p-galleria-thumbnail-item-current': activeIndex === index,
85
+ 'p-galleria-thumbnail-item-active': instance.isItemActive(index),
86
+ 'p-galleria-thumbnail-item-start': instance.firstItemAciveIndex() === index,
87
+ 'p-galleria-thumbnail-item-end': instance.lastItemActiveIndex() === index
88
+ }];
89
+ },
90
+ thumbnailItemContent: 'p-galleria-thumbnail-item-content',
91
+ nextThumbnailButton: function nextThumbnailButton(_ref8) {
92
+ var instance = _ref8.instance;
93
+ return ['p-galleria-thumbnail-next p-link', {
94
+ 'p-disabled': instance.isNavForwardDisabled()
95
+ }];
96
+ },
97
+ nextThumbnailIcon: 'p-galleria-thumbnail-next-icon'
98
+ };
99
+ var _useStyle = usestyle.useStyle(styles, {
100
+ name: 'galleria',
101
+ manual: true
102
+ }),
103
+ loadStyle = _useStyle.load;
104
+ var script$4 = {
105
+ name: 'BaseGalleria',
106
+ "extends": BaseComponent__default["default"],
107
+ props: {
108
+ id: {
109
+ type: String,
110
+ "default": null
62
111
  },
63
- mounted() {
64
- if (this.autoPlay) {
65
- this.$emit('start-slideshow');
66
- }
112
+ value: {
113
+ type: Array,
114
+ "default": null
67
115
  },
68
- methods: {
69
- next() {
70
- let nextItemIndex = this.activeIndex + 1;
71
- let activeIndex = this.circular && this.value.length - 1 === this.activeIndex ? 0 : nextItemIndex;
72
-
73
- this.$emit('update:activeIndex', activeIndex);
74
- },
75
- prev() {
76
- let prevItemIndex = this.activeIndex !== 0 ? this.activeIndex - 1 : 0;
77
- let activeIndex = this.circular && this.activeIndex === 0 ? this.value.length - 1 : prevItemIndex;
78
-
79
- this.$emit('update:activeIndex', activeIndex);
80
- },
81
- stopSlideShow() {
82
- if (this.slideShowActive && this.stopSlideShow) {
83
- this.$emit('stop-slideshow');
84
- }
85
- },
86
- navBackward(e) {
87
- this.stopSlideShow();
88
- this.prev();
89
-
90
- if (e && e.cancelable) {
91
- e.preventDefault();
92
- }
93
- },
94
- navForward(e) {
95
- this.stopSlideShow();
96
- this.next();
97
-
98
- if (e && e.cancelable) {
99
- e.preventDefault();
100
- }
101
- },
102
- onIndicatorClick(index) {
103
- this.stopSlideShow();
104
- this.$emit('update:activeIndex', index);
105
- },
106
- onIndicatorMouseEnter(index) {
107
- if (this.changeItemOnIndicatorHover) {
108
- this.stopSlideShow();
109
-
110
- this.$emit('update:activeIndex', index);
111
- }
112
- },
113
- onIndicatorKeyDown(event, index) {
114
- switch (event.code) {
115
- case 'Enter':
116
- case 'Space':
117
- this.stopSlideShow();
118
-
119
- this.$emit('update:activeIndex', index);
120
- event.preventDefault();
121
- break;
122
-
123
- case 'ArrowDown':
124
- case 'ArrowUp':
125
- event.preventDefault();
126
- break;
127
- }
128
- },
129
- isIndicatorItemActive(index) {
130
- return this.activeIndex === index;
131
- },
132
- isNavBackwardDisabled() {
133
- return !this.circular && this.activeIndex === 0;
134
- },
135
- isNavForwardDisabled() {
136
- return !this.circular && this.activeIndex === this.value.length - 1;
137
- },
138
- ariaSlideNumber(value) {
139
- return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.slideNumber.replace(/{slideNumber}/g, value) : undefined;
140
- },
141
- ariaPageLabel(value) {
142
- return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.pageLabel.replace(/{page}/g, value) : undefined;
143
- }
116
+ activeIndex: {
117
+ type: Number,
118
+ "default": 0
144
119
  },
145
- computed: {
146
- activeItem() {
147
- return this.value[this.activeIndex];
148
- },
149
- navBackwardClass() {
150
- return [
151
- 'p-galleria-item-prev p-galleria-item-nav p-link',
152
- {
153
- 'p-disabled': this.isNavBackwardDisabled()
154
- }
155
- ];
156
- },
157
- navForwardClass() {
158
- return [
159
- 'p-galleria-item-next p-galleria-item-nav p-link',
160
- {
161
- 'p-disabled': this.isNavForwardDisabled()
162
- }
163
- ];
164
- },
165
- ariaSlideLabel() {
166
- return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.slide : undefined;
167
- }
120
+ fullScreen: {
121
+ type: Boolean,
122
+ "default": false
123
+ },
124
+ visible: {
125
+ type: Boolean,
126
+ "default": false
127
+ },
128
+ numVisible: {
129
+ type: Number,
130
+ "default": 3
131
+ },
132
+ responsiveOptions: {
133
+ type: Array,
134
+ "default": null
135
+ },
136
+ showItemNavigators: {
137
+ type: Boolean,
138
+ "default": false
139
+ },
140
+ showThumbnailNavigators: {
141
+ type: Boolean,
142
+ "default": true
143
+ },
144
+ showItemNavigatorsOnHover: {
145
+ type: Boolean,
146
+ "default": false
147
+ },
148
+ changeItemOnIndicatorHover: {
149
+ type: Boolean,
150
+ "default": false
151
+ },
152
+ circular: {
153
+ type: Boolean,
154
+ "default": false
155
+ },
156
+ autoPlay: {
157
+ type: Boolean,
158
+ "default": false
159
+ },
160
+ transitionInterval: {
161
+ type: Number,
162
+ "default": 4000
163
+ },
164
+ showThumbnails: {
165
+ type: Boolean,
166
+ "default": true
167
+ },
168
+ thumbnailsPosition: {
169
+ type: String,
170
+ "default": 'bottom'
171
+ },
172
+ verticalThumbnailViewPortHeight: {
173
+ type: String,
174
+ "default": '300px'
168
175
  },
169
- components: {
170
- ChevronLeftIcon: ChevronLeftIcon__default["default"],
171
- ChevronRightIcon: ChevronRightIcon__default["default"]
176
+ showIndicators: {
177
+ type: Boolean,
178
+ "default": false
172
179
  },
173
- directives: {
174
- ripple: Ripple__default["default"]
180
+ showIndicatorsOnItem: {
181
+ type: Boolean,
182
+ "default": false
183
+ },
184
+ indicatorsPosition: {
185
+ type: String,
186
+ "default": 'bottom'
187
+ },
188
+ baseZIndex: {
189
+ type: Number,
190
+ "default": 0
191
+ },
192
+ maskClass: {
193
+ type: String,
194
+ "default": null
195
+ },
196
+ containerStyle: {
197
+ type: null,
198
+ "default": null
199
+ },
200
+ containerClass: {
201
+ type: null,
202
+ "default": null
203
+ },
204
+ containerProps: {
205
+ type: null,
206
+ "default": null
207
+ },
208
+ prevButtonProps: {
209
+ type: null,
210
+ "default": null
211
+ },
212
+ nextButtonProps: {
213
+ type: null,
214
+ "default": null
175
215
  }
216
+ },
217
+ css: {
218
+ classes: classes,
219
+ loadStyle: loadStyle
220
+ },
221
+ provide: function provide() {
222
+ return {
223
+ $parentInstance: this
224
+ };
225
+ }
176
226
  };
177
227
 
178
- const _hoisted_1$3 = ["disabled"];
179
- const _hoisted_2$2 = ["id", "aria-label", "aria-roledescription"];
180
- const _hoisted_3$2 = ["disabled"];
181
- const _hoisted_4$1 = ["aria-label", "aria-selected", "aria-controls", "onClick", "onMouseenter", "onKeydown"];
182
- const _hoisted_5 = {
183
- key: 0,
184
- type: "button",
185
- tabindex: "-1",
186
- class: "p-link"
228
+ var script$3 = {
229
+ name: 'GalleriaItem',
230
+ "extends": BaseComponent__default["default"],
231
+ emits: ['start-slideshow', 'stop-slideshow', 'update:activeIndex'],
232
+ props: {
233
+ circular: {
234
+ type: Boolean,
235
+ "default": false
236
+ },
237
+ activeIndex: {
238
+ type: Number,
239
+ "default": 0
240
+ },
241
+ value: {
242
+ type: Array,
243
+ "default": null
244
+ },
245
+ showItemNavigators: {
246
+ type: Boolean,
247
+ "default": true
248
+ },
249
+ showIndicators: {
250
+ type: Boolean,
251
+ "default": true
252
+ },
253
+ slideShowActive: {
254
+ type: Boolean,
255
+ "default": true
256
+ },
257
+ changeItemOnIndicatorHover: {
258
+ type: Boolean,
259
+ "default": true
260
+ },
261
+ autoPlay: {
262
+ type: Boolean,
263
+ "default": false
264
+ },
265
+ templates: {
266
+ type: null,
267
+ "default": null
268
+ },
269
+ id: {
270
+ type: String,
271
+ "default": null
272
+ }
273
+ },
274
+ mounted: function mounted() {
275
+ if (this.autoPlay) {
276
+ this.$emit('start-slideshow');
277
+ }
278
+ },
279
+ methods: {
280
+ next: function next() {
281
+ var nextItemIndex = this.activeIndex + 1;
282
+ var activeIndex = this.circular && this.value.length - 1 === this.activeIndex ? 0 : nextItemIndex;
283
+ this.$emit('update:activeIndex', activeIndex);
284
+ },
285
+ prev: function prev() {
286
+ var prevItemIndex = this.activeIndex !== 0 ? this.activeIndex - 1 : 0;
287
+ var activeIndex = this.circular && this.activeIndex === 0 ? this.value.length - 1 : prevItemIndex;
288
+ this.$emit('update:activeIndex', activeIndex);
289
+ },
290
+ stopSlideShow: function stopSlideShow() {
291
+ if (this.slideShowActive && this.stopSlideShow) {
292
+ this.$emit('stop-slideshow');
293
+ }
294
+ },
295
+ navBackward: function navBackward(e) {
296
+ this.stopSlideShow();
297
+ this.prev();
298
+ if (e && e.cancelable) {
299
+ e.preventDefault();
300
+ }
301
+ },
302
+ navForward: function navForward(e) {
303
+ this.stopSlideShow();
304
+ this.next();
305
+ if (e && e.cancelable) {
306
+ e.preventDefault();
307
+ }
308
+ },
309
+ onIndicatorClick: function onIndicatorClick(index) {
310
+ this.stopSlideShow();
311
+ this.$emit('update:activeIndex', index);
312
+ },
313
+ onIndicatorMouseEnter: function onIndicatorMouseEnter(index) {
314
+ if (this.changeItemOnIndicatorHover) {
315
+ this.stopSlideShow();
316
+ this.$emit('update:activeIndex', index);
317
+ }
318
+ },
319
+ onIndicatorKeyDown: function onIndicatorKeyDown(event, index) {
320
+ switch (event.code) {
321
+ case 'Enter':
322
+ case 'Space':
323
+ this.stopSlideShow();
324
+ this.$emit('update:activeIndex', index);
325
+ event.preventDefault();
326
+ break;
327
+ case 'ArrowDown':
328
+ case 'ArrowUp':
329
+ event.preventDefault();
330
+ break;
331
+ }
332
+ },
333
+ isIndicatorItemActive: function isIndicatorItemActive(index) {
334
+ return this.activeIndex === index;
335
+ },
336
+ isNavBackwardDisabled: function isNavBackwardDisabled() {
337
+ return !this.circular && this.activeIndex === 0;
338
+ },
339
+ isNavForwardDisabled: function isNavForwardDisabled() {
340
+ return !this.circular && this.activeIndex === this.value.length - 1;
341
+ },
342
+ ariaSlideNumber: function ariaSlideNumber(value) {
343
+ return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.slideNumber.replace(/{slideNumber}/g, value) : undefined;
344
+ },
345
+ ariaPageLabel: function ariaPageLabel(value) {
346
+ return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.pageLabel.replace(/{page}/g, value) : undefined;
347
+ }
348
+ },
349
+ computed: {
350
+ activeItem: function activeItem() {
351
+ return this.value[this.activeIndex];
352
+ },
353
+ ariaSlideLabel: function ariaSlideLabel() {
354
+ return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.slide : undefined;
355
+ }
356
+ },
357
+ components: {
358
+ ChevronLeftIcon: ChevronLeftIcon__default["default"],
359
+ ChevronRightIcon: ChevronRightIcon__default["default"]
360
+ },
361
+ directives: {
362
+ ripple: Ripple__default["default"]
363
+ }
187
364
  };
188
365
 
366
+ var _hoisted_1$3 = ["disabled"];
367
+ var _hoisted_2$2 = ["id", "aria-label", "aria-roledescription"];
368
+ var _hoisted_3$2 = ["disabled"];
369
+ var _hoisted_4$1 = ["aria-label", "aria-selected", "aria-controls", "onClick", "onMouseenter", "onKeydown", "data-p-highlight"];
189
370
  function render$3(_ctx, _cache, $props, $setup, $data, $options) {
190
- const _directive_ripple = vue.resolveDirective("ripple");
191
-
192
- return (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({ class: "p-galleria-item-wrapper" }, _ctx.ptm('itemWrapper')), [
193
- vue.createElementVNode("div", vue.mergeProps({ class: "p-galleria-item-container" }, _ctx.ptm('itemContainer')), [
194
- ($props.showItemNavigators)
195
- ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
196
- key: 0,
197
- type: "button",
198
- class: $options.navBackwardClass,
199
- onClick: _cache[0] || (_cache[0] = $event => ($options.navBackward($event))),
200
- disabled: $options.isNavBackwardDisabled()
201
- }, _ctx.ptm('previousItemButton')), [
202
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates.previousitemicon || 'ChevronLeftIcon'), vue.mergeProps({ class: "p-galleria-item-prev-icon" }, _ctx.ptm('previousItemIcon')), null, 16))
203
- ], 16, _hoisted_1$3)), [
204
- [_directive_ripple]
205
- ])
206
- : vue.createCommentVNode("", true),
207
- vue.createElementVNode("div", vue.mergeProps({
208
- id: $props.id + '_item_' + $props.activeIndex,
209
- class: "p-galleria-item",
210
- role: "group",
211
- "aria-label": $options.ariaSlideNumber($props.activeIndex + 1),
212
- "aria-roledescription": $options.ariaSlideLabel
213
- }, _ctx.ptm('item')), [
214
- ($props.templates.item)
215
- ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates.item), {
216
- key: 0,
217
- item: $options.activeItem
218
- }, null, 8, ["item"]))
219
- : vue.createCommentVNode("", true)
220
- ], 16, _hoisted_2$2),
221
- ($props.showItemNavigators)
222
- ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
223
- key: 1,
224
- type: "button",
225
- class: $options.navForwardClass,
226
- onClick: _cache[1] || (_cache[1] = $event => ($options.navForward($event))),
227
- disabled: $options.isNavForwardDisabled()
228
- }, _ctx.ptm('nextItemButton')), [
229
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates.nextitemicon || 'ChevronRightIcon'), vue.mergeProps({ class: "p-galleria-item-next-icon" }, _ctx.ptm('nextItemIcon')), null, 16))
230
- ], 16, _hoisted_3$2)), [
231
- [_directive_ripple]
232
- ])
233
- : vue.createCommentVNode("", true),
234
- ($props.templates['caption'])
235
- ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
236
- key: 2,
237
- class: "p-galleria-caption"
238
- }, _ctx.ptm('caption')), [
239
- ($props.templates.caption)
240
- ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates.caption), {
241
- key: 0,
242
- item: $options.activeItem
243
- }, null, 8, ["item"]))
244
- : vue.createCommentVNode("", true)
245
- ], 16))
246
- : vue.createCommentVNode("", true)
247
- ], 16),
248
- ($props.showIndicators)
249
- ? (vue.openBlock(), vue.createElementBlock("ul", vue.mergeProps({
250
- key: 0,
251
- class: "p-galleria-indicators p-reset"
252
- }, _ctx.ptm('indicators')), [
253
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.value, (item, index) => {
254
- return (vue.openBlock(), vue.createElementBlock("li", vue.mergeProps({
255
- key: `p-galleria-indicator-${index}`,
256
- class: ['p-galleria-indicator', { 'p-highlight': $options.isIndicatorItemActive(index) }],
257
- tabindex: "0",
258
- "aria-label": $options.ariaPageLabel(index + 1),
259
- "aria-selected": $props.activeIndex === index,
260
- "aria-controls": $props.id + '_item_' + index,
261
- onClick: $event => ($options.onIndicatorClick(index)),
262
- onMouseenter: $event => ($options.onIndicatorMouseEnter(index)),
263
- onKeydown: $event => ($options.onIndicatorKeyDown($event, index))
264
- }, _ctx.ptm('indicator')), [
265
- (!$props.templates['indicator'])
266
- ? (vue.openBlock(), vue.createElementBlock("button", _hoisted_5))
267
- : vue.createCommentVNode("", true),
268
- ($props.templates.indicator)
269
- ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates.indicator), {
270
- key: 1,
271
- index: index
272
- }, null, 8, ["index"]))
273
- : vue.createCommentVNode("", true)
274
- ], 16, _hoisted_4$1))
275
- }), 128))
276
- ], 16))
277
- : vue.createCommentVNode("", true)
278
- ], 16))
371
+ var _directive_ripple = vue.resolveDirective("ripple");
372
+ return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
373
+ "class": _ctx.cx('itemWrapper')
374
+ }, _ctx.ptm('itemWrapper')), [vue.createElementVNode("div", vue.mergeProps({
375
+ "class": _ctx.cx('itemContainer')
376
+ }, _ctx.ptm('itemContainer')), [$props.showItemNavigators ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
377
+ key: 0,
378
+ type: "button",
379
+ "class": _ctx.cx('previousItemButton'),
380
+ onClick: _cache[0] || (_cache[0] = function ($event) {
381
+ return $options.navBackward($event);
382
+ }),
383
+ disabled: $options.isNavBackwardDisabled()
384
+ }, _ctx.ptm('previousItemButton')), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates.previousitemicon || 'ChevronLeftIcon'), vue.mergeProps({
385
+ "class": _ctx.cx('previousItemIcon')
386
+ }, _ctx.ptm('previousItemIcon')), null, 16, ["class"]))], 16, _hoisted_1$3)), [[_directive_ripple]]) : vue.createCommentVNode("", true), vue.createElementVNode("div", vue.mergeProps({
387
+ id: $props.id + '_item_' + $props.activeIndex,
388
+ "class": _ctx.cx('item'),
389
+ role: "group",
390
+ "aria-label": $options.ariaSlideNumber($props.activeIndex + 1),
391
+ "aria-roledescription": $options.ariaSlideLabel
392
+ }, _ctx.ptm('item')), [$props.templates.item ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates.item), {
393
+ key: 0,
394
+ item: $options.activeItem
395
+ }, null, 8, ["item"])) : vue.createCommentVNode("", true)], 16, _hoisted_2$2), $props.showItemNavigators ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
396
+ key: 1,
397
+ type: "button",
398
+ "class": _ctx.cx('nextItemButton'),
399
+ onClick: _cache[1] || (_cache[1] = function ($event) {
400
+ return $options.navForward($event);
401
+ }),
402
+ disabled: $options.isNavForwardDisabled()
403
+ }, _ctx.ptm('nextItemButton')), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates.nextitemicon || 'ChevronRightIcon'), vue.mergeProps({
404
+ "class": _ctx.cx('nextItemIcon')
405
+ }, _ctx.ptm('nextItemIcon')), null, 16, ["class"]))], 16, _hoisted_3$2)), [[_directive_ripple]]) : vue.createCommentVNode("", true), $props.templates['caption'] ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
406
+ key: 2,
407
+ "class": _ctx.cx('caption')
408
+ }, _ctx.ptm('caption')), [$props.templates.caption ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates.caption), {
409
+ key: 0,
410
+ item: $options.activeItem
411
+ }, null, 8, ["item"])) : vue.createCommentVNode("", true)], 16)) : vue.createCommentVNode("", true)], 16), $props.showIndicators ? (vue.openBlock(), vue.createElementBlock("ul", vue.mergeProps({
412
+ key: 0,
413
+ "class": _ctx.cx('indicators')
414
+ }, _ctx.ptm('indicators')), [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.value, function (item, index) {
415
+ return vue.openBlock(), vue.createElementBlock("li", vue.mergeProps({
416
+ key: "p-galleria-indicator-".concat(index),
417
+ "class": _ctx.cx('indicator', {
418
+ index: index
419
+ }),
420
+ tabindex: "0",
421
+ "aria-label": $options.ariaPageLabel(index + 1),
422
+ "aria-selected": $props.activeIndex === index,
423
+ "aria-controls": $props.id + '_item_' + index,
424
+ onClick: function onClick($event) {
425
+ return $options.onIndicatorClick(index);
426
+ },
427
+ onMouseenter: function onMouseenter($event) {
428
+ return $options.onIndicatorMouseEnter(index);
429
+ },
430
+ onKeydown: function onKeydown($event) {
431
+ return $options.onIndicatorKeyDown($event, index);
432
+ }
433
+ }, _ctx.ptm('indicator'), {
434
+ "data-p-highlight": $options.isIndicatorItemActive(index)
435
+ }), [!$props.templates['indicator'] ? (vue.openBlock(), vue.createElementBlock("button", {
436
+ key: 0,
437
+ type: "button",
438
+ tabindex: "-1",
439
+ "class": vue.normalizeClass(_ctx.cx('indicatorButton'))
440
+ }, null, 2)) : vue.createCommentVNode("", true), $props.templates.indicator ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates.indicator), {
441
+ key: 1,
442
+ index: index
443
+ }, null, 8, ["index"])) : vue.createCommentVNode("", true)], 16, _hoisted_4$1);
444
+ }), 128))], 16)) : vue.createCommentVNode("", true)], 16);
279
445
  }
280
446
 
281
447
  script$3.render = render$3;
282
448
 
449
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
450
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
451
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
452
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
453
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
454
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
283
455
  var script$2 = {
284
- name: 'GalleriaThumbnails',
285
- extends: BaseComponent__default["default"],
286
- emits: ['stop-slideshow', 'update:activeIndex'],
287
- props: {
288
- containerId: {
289
- type: String,
290
- default: null
291
- },
292
- value: {
293
- type: Array,
294
- default: null
295
- },
296
- numVisible: {
297
- type: Number,
298
- default: 3
299
- },
300
- activeIndex: {
301
- type: Number,
302
- default: 0
303
- },
304
- isVertical: {
305
- type: Boolean,
306
- default: false
307
- },
308
- slideShowActive: {
309
- type: Boolean,
310
- default: false
311
- },
312
- circular: {
313
- type: Boolean,
314
- default: false
315
- },
316
- responsiveOptions: {
317
- type: Array,
318
- default: null
319
- },
320
- contentHeight: {
321
- type: String,
322
- default: '300px'
323
- },
324
- showThumbnailNavigators: {
325
- type: Boolean,
326
- default: true
327
- },
328
- templates: {
329
- type: null,
330
- default: null
331
- },
332
- prevButtonProps: {
333
- type: null,
334
- default: null
335
- },
336
- nextButtonProps: {
337
- type: null,
338
- default: null
339
- }
456
+ name: 'GalleriaThumbnails',
457
+ "extends": BaseComponent__default["default"],
458
+ emits: ['stop-slideshow', 'update:activeIndex'],
459
+ props: {
460
+ containerId: {
461
+ type: String,
462
+ "default": null
340
463
  },
341
- startPos: null,
342
- thumbnailsStyle: null,
343
- sortedResponsiveOptions: null,
344
- data() {
345
- return {
346
- d_numVisible: this.numVisible,
347
- d_oldNumVisible: this.numVisible,
348
- d_activeIndex: this.activeIndex,
349
- d_oldActiveItemIndex: this.activeIndex,
350
- totalShiftedItems: 0,
351
- page: 0
352
- };
464
+ value: {
465
+ type: Array,
466
+ "default": null
353
467
  },
354
- watch: {
355
- numVisible(newValue, oldValue) {
356
- this.d_numVisible = newValue;
357
- this.d_oldNumVisible = oldValue;
358
- },
359
- activeIndex(newValue, oldValue) {
360
- this.d_activeIndex = newValue;
361
- this.d_oldActiveItemIndex = oldValue;
468
+ numVisible: {
469
+ type: Number,
470
+ "default": 3
471
+ },
472
+ activeIndex: {
473
+ type: Number,
474
+ "default": 0
475
+ },
476
+ isVertical: {
477
+ type: Boolean,
478
+ "default": false
479
+ },
480
+ slideShowActive: {
481
+ type: Boolean,
482
+ "default": false
483
+ },
484
+ circular: {
485
+ type: Boolean,
486
+ "default": false
487
+ },
488
+ responsiveOptions: {
489
+ type: Array,
490
+ "default": null
491
+ },
492
+ contentHeight: {
493
+ type: String,
494
+ "default": '300px'
495
+ },
496
+ showThumbnailNavigators: {
497
+ type: Boolean,
498
+ "default": true
499
+ },
500
+ templates: {
501
+ type: null,
502
+ "default": null
503
+ },
504
+ prevButtonProps: {
505
+ type: null,
506
+ "default": null
507
+ },
508
+ nextButtonProps: {
509
+ type: null,
510
+ "default": null
511
+ }
512
+ },
513
+ startPos: null,
514
+ thumbnailsStyle: null,
515
+ sortedResponsiveOptions: null,
516
+ data: function data() {
517
+ return {
518
+ d_numVisible: this.numVisible,
519
+ d_oldNumVisible: this.numVisible,
520
+ d_activeIndex: this.activeIndex,
521
+ d_oldActiveItemIndex: this.activeIndex,
522
+ totalShiftedItems: 0,
523
+ page: 0
524
+ };
525
+ },
526
+ watch: {
527
+ numVisible: function numVisible(newValue, oldValue) {
528
+ this.d_numVisible = newValue;
529
+ this.d_oldNumVisible = oldValue;
530
+ },
531
+ activeIndex: function activeIndex(newValue, oldValue) {
532
+ this.d_activeIndex = newValue;
533
+ this.d_oldActiveItemIndex = oldValue;
534
+ }
535
+ },
536
+ mounted: function mounted() {
537
+ this.createStyle();
538
+ this.calculatePosition();
539
+ if (this.responsiveOptions) {
540
+ this.bindDocumentListeners();
541
+ }
542
+ },
543
+ updated: function updated() {
544
+ var totalShiftedItems = this.totalShiftedItems;
545
+ if (this.d_oldNumVisible !== this.d_numVisible || this.d_oldActiveItemIndex !== this.d_activeIndex) {
546
+ if (this.d_activeIndex <= this.getMedianItemIndex()) {
547
+ totalShiftedItems = 0;
548
+ } else if (this.value.length - this.d_numVisible + this.getMedianItemIndex() < this.d_activeIndex) {
549
+ totalShiftedItems = this.d_numVisible - this.value.length;
550
+ } else if (this.value.length - this.d_numVisible < this.d_activeIndex && this.d_numVisible % 2 === 0) {
551
+ totalShiftedItems = this.d_activeIndex * -1 + this.getMedianItemIndex() + 1;
552
+ } else {
553
+ totalShiftedItems = this.d_activeIndex * -1 + this.getMedianItemIndex();
554
+ }
555
+ if (totalShiftedItems !== this.totalShiftedItems) {
556
+ this.totalShiftedItems = totalShiftedItems;
557
+ }
558
+ this.$refs.itemsContainer.style.transform = this.isVertical ? "translate3d(0, ".concat(totalShiftedItems * (100 / this.d_numVisible), "%, 0)") : "translate3d(".concat(totalShiftedItems * (100 / this.d_numVisible), "%, 0, 0)");
559
+ if (this.d_oldActiveItemIndex !== this.d_activeIndex) {
560
+ document.body.setAttribute('data-p-items-hidden', 'false');
561
+ !this.isUnstyled && utils.DomHandler.removeClass(this.$refs.itemsContainer, 'p-items-hidden');
562
+ this.$refs.itemsContainer.style.transition = 'transform 500ms ease 0s';
563
+ }
564
+ this.d_oldActiveItemIndex = this.d_activeIndex;
565
+ this.d_oldNumVisible = this.d_numVisible;
566
+ }
567
+ },
568
+ beforeUnmount: function beforeUnmount() {
569
+ if (this.responsiveOptions) {
570
+ this.unbindDocumentListeners();
571
+ }
572
+ if (this.thumbnailsStyle) {
573
+ this.thumbnailsStyle.parentNode.removeChild(this.thumbnailsStyle);
574
+ }
575
+ },
576
+ methods: {
577
+ step: function step(dir) {
578
+ var totalShiftedItems = this.totalShiftedItems + dir;
579
+ if (dir < 0 && -1 * totalShiftedItems + this.d_numVisible > this.value.length - 1) {
580
+ totalShiftedItems = this.d_numVisible - this.value.length;
581
+ } else if (dir > 0 && totalShiftedItems > 0) {
582
+ totalShiftedItems = 0;
583
+ }
584
+ if (this.circular) {
585
+ if (dir < 0 && this.value.length - 1 === this.d_activeIndex) {
586
+ totalShiftedItems = 0;
587
+ } else if (dir > 0 && this.d_activeIndex === 0) {
588
+ totalShiftedItems = this.d_numVisible - this.value.length;
362
589
  }
590
+ }
591
+ if (this.$refs.itemsContainer) {
592
+ document.body.setAttribute('data-p-items-hidden', 'false');
593
+ !this.isUnstyled && utils.DomHandler.removeClass(this.$refs.itemsContainer, 'p-items-hidden');
594
+ this.$refs.itemsContainer.style.transform = this.isVertical ? "translate3d(0, ".concat(totalShiftedItems * (100 / this.d_numVisible), "%, 0)") : "translate3d(".concat(totalShiftedItems * (100 / this.d_numVisible), "%, 0, 0)");
595
+ this.$refs.itemsContainer.style.transition = 'transform 500ms ease 0s';
596
+ }
597
+ this.totalShiftedItems = totalShiftedItems;
363
598
  },
364
- mounted() {
365
- this.createStyle();
366
- this.calculatePosition();
367
-
368
- if (this.responsiveOptions) {
369
- this.bindDocumentListeners();
599
+ stopSlideShow: function stopSlideShow() {
600
+ if (this.slideShowActive && this.stopSlideShow) {
601
+ this.$emit('stop-slideshow');
602
+ }
603
+ },
604
+ getMedianItemIndex: function getMedianItemIndex() {
605
+ var index = Math.floor(this.d_numVisible / 2);
606
+ return this.d_numVisible % 2 ? index : index - 1;
607
+ },
608
+ navBackward: function navBackward(e) {
609
+ this.stopSlideShow();
610
+ var prevItemIndex = this.d_activeIndex !== 0 ? this.d_activeIndex - 1 : 0;
611
+ var diff = prevItemIndex + this.totalShiftedItems;
612
+ if (this.d_numVisible - diff - 1 > this.getMedianItemIndex() && (-1 * this.totalShiftedItems !== 0 || this.circular)) {
613
+ this.step(1);
614
+ }
615
+ var activeIndex = this.circular && this.d_activeIndex === 0 ? this.value.length - 1 : prevItemIndex;
616
+ this.$emit('update:activeIndex', activeIndex);
617
+ if (e.cancelable) {
618
+ e.preventDefault();
619
+ }
620
+ },
621
+ navForward: function navForward(e) {
622
+ this.stopSlideShow();
623
+ var nextItemIndex = this.d_activeIndex === this.value.length - 1 ? this.value.length - 1 : this.d_activeIndex + 1;
624
+ if (nextItemIndex + this.totalShiftedItems > this.getMedianItemIndex() && (-1 * this.totalShiftedItems < this.getTotalPageNumber() - 1 || this.circular)) {
625
+ this.step(-1);
626
+ }
627
+ var activeIndex = this.circular && this.value.length - 1 === this.d_activeIndex ? 0 : nextItemIndex;
628
+ this.$emit('update:activeIndex', activeIndex);
629
+ if (e.cancelable) {
630
+ e.preventDefault();
631
+ }
632
+ },
633
+ onItemClick: function onItemClick(index) {
634
+ this.stopSlideShow();
635
+ var selectedItemIndex = index;
636
+ if (selectedItemIndex !== this.d_activeIndex) {
637
+ var diff = selectedItemIndex + this.totalShiftedItems;
638
+ var dir = 0;
639
+ if (selectedItemIndex < this.d_activeIndex) {
640
+ dir = this.d_numVisible - diff - 1 - this.getMedianItemIndex();
641
+ if (dir > 0 && -1 * this.totalShiftedItems !== 0) {
642
+ this.step(dir);
643
+ }
644
+ } else {
645
+ dir = this.getMedianItemIndex() - diff;
646
+ if (dir < 0 && -1 * this.totalShiftedItems < this.getTotalPageNumber() - 1) {
647
+ this.step(dir);
648
+ }
370
649
  }
650
+ this.$emit('update:activeIndex', selectedItemIndex);
651
+ }
371
652
  },
372
- updated() {
373
- let totalShiftedItems = this.totalShiftedItems;
374
-
375
- if (this.d_oldNumVisible !== this.d_numVisible || this.d_oldActiveItemIndex !== this.d_activeIndex) {
376
- if (this.d_activeIndex <= this.getMedianItemIndex()) {
377
- totalShiftedItems = 0;
378
- } else if (this.value.length - this.d_numVisible + this.getMedianItemIndex() < this.d_activeIndex) {
379
- totalShiftedItems = this.d_numVisible - this.value.length;
380
- } else if (this.value.length - this.d_numVisible < this.d_activeIndex && this.d_numVisible % 2 === 0) {
381
- totalShiftedItems = this.d_activeIndex * -1 + this.getMedianItemIndex() + 1;
382
- } else {
383
- totalShiftedItems = this.d_activeIndex * -1 + this.getMedianItemIndex();
384
- }
385
-
386
- if (totalShiftedItems !== this.totalShiftedItems) {
387
- this.totalShiftedItems = totalShiftedItems;
388
- }
389
-
390
- this.$refs.itemsContainer.style.transform = this.isVertical ? `translate3d(0, ${totalShiftedItems * (100 / this.d_numVisible)}%, 0)` : `translate3d(${totalShiftedItems * (100 / this.d_numVisible)}%, 0, 0)`;
391
-
392
- if (this.d_oldActiveItemIndex !== this.d_activeIndex) {
393
- utils.DomHandler.removeClass(this.$refs.itemsContainer, 'p-items-hidden');
394
- this.$refs.itemsContainer.style.transition = 'transform 500ms ease 0s';
395
- }
396
-
397
- this.d_oldActiveItemIndex = this.d_activeIndex;
398
- this.d_oldNumVisible = this.d_numVisible;
653
+ onThumbnailKeydown: function onThumbnailKeydown(event, index) {
654
+ if (event.code === 'Enter' || event.code === 'Space') {
655
+ this.onItemClick(index);
656
+ event.preventDefault();
657
+ }
658
+ switch (event.code) {
659
+ case 'ArrowRight':
660
+ this.onRightKey();
661
+ break;
662
+ case 'ArrowLeft':
663
+ this.onLeftKey();
664
+ break;
665
+ case 'Home':
666
+ this.onHomeKey();
667
+ event.preventDefault();
668
+ break;
669
+ case 'End':
670
+ this.onEndKey();
671
+ event.preventDefault();
672
+ break;
673
+ case 'ArrowUp':
674
+ case 'ArrowDown':
675
+ event.preventDefault();
676
+ break;
677
+ case 'Tab':
678
+ this.onTabKey();
679
+ break;
680
+ }
681
+ },
682
+ onRightKey: function onRightKey() {
683
+ var indicators = utils.DomHandler.find(this.$refs.itemsContainer, '[data-pc-section="thumbnailitem"]');
684
+ var activeIndex = this.findFocusedIndicatorIndex();
685
+ this.changedFocusedIndicator(activeIndex, activeIndex + 1 === indicators.length ? indicators.length - 1 : activeIndex + 1);
686
+ },
687
+ onLeftKey: function onLeftKey() {
688
+ var activeIndex = this.findFocusedIndicatorIndex();
689
+ this.changedFocusedIndicator(activeIndex, activeIndex - 1 <= 0 ? 0 : activeIndex - 1);
690
+ },
691
+ onHomeKey: function onHomeKey() {
692
+ var activeIndex = this.findFocusedIndicatorIndex();
693
+ this.changedFocusedIndicator(activeIndex, 0);
694
+ },
695
+ onEndKey: function onEndKey() {
696
+ var indicators = utils.DomHandler.find(this.$refs.itemsContainer, '[data-pc-section="thumbnailitem"]');
697
+ var activeIndex = this.findFocusedIndicatorIndex();
698
+ this.changedFocusedIndicator(activeIndex, indicators.length - 1);
699
+ },
700
+ onTabKey: function onTabKey() {
701
+ var indicators = _toConsumableArray(utils.DomHandler.find(this.$refs.itemsContainer, '[data-pc-section="thumbnailitem"]'));
702
+ var highlightedIndex = indicators.findIndex(function (ind) {
703
+ return utils.DomHandler.getAttribute(ind, 'data-p-active') === true;
704
+ });
705
+ var activeIndicator = utils.DomHandler.findSingle(this.$refs.itemsContainer, '[tabindex="0"]');
706
+ var activeIndex = indicators.findIndex(function (ind) {
707
+ return ind === activeIndicator.parentElement;
708
+ });
709
+ indicators[activeIndex].children[0].tabIndex = '-1';
710
+ indicators[highlightedIndex].children[0].tabIndex = '0';
711
+ },
712
+ findFocusedIndicatorIndex: function findFocusedIndicatorIndex() {
713
+ var indicators = _toConsumableArray(utils.DomHandler.find(this.$refs.itemsContainer, '[data-pc-section="thumbnailitem"]'));
714
+ var activeIndicator = utils.DomHandler.findSingle(this.$refs.itemsContainer, '[data-pc-section="thumbnailitem"] > [tabindex="0"]');
715
+ return indicators.findIndex(function (ind) {
716
+ return ind === activeIndicator.parentElement;
717
+ });
718
+ },
719
+ changedFocusedIndicator: function changedFocusedIndicator(prevInd, nextInd) {
720
+ var indicators = utils.DomHandler.find(this.$refs.itemsContainer, '[data-pc-section="thumbnailitem"]');
721
+ indicators[prevInd].children[0].tabIndex = '-1';
722
+ indicators[nextInd].children[0].tabIndex = '0';
723
+ indicators[nextInd].children[0].focus();
724
+ },
725
+ onTransitionEnd: function onTransitionEnd() {
726
+ if (this.$refs.itemsContainer) {
727
+ document.body.setAttribute('data-p-items-hidden', 'true');
728
+ !this.isUnstyled && utils.DomHandler.addClass(this.$refs.itemsContainer, 'p-items-hidden');
729
+ this.$refs.itemsContainer.style.transition = '';
730
+ }
731
+ },
732
+ onTouchStart: function onTouchStart(e) {
733
+ var touchobj = e.changedTouches[0];
734
+ this.startPos = {
735
+ x: touchobj.pageX,
736
+ y: touchobj.pageY
737
+ };
738
+ },
739
+ onTouchMove: function onTouchMove(e) {
740
+ if (e.cancelable) {
741
+ e.preventDefault();
742
+ }
743
+ },
744
+ onTouchEnd: function onTouchEnd(e) {
745
+ var touchobj = e.changedTouches[0];
746
+ if (this.isVertical) {
747
+ this.changePageOnTouch(e, touchobj.pageY - this.startPos.y);
748
+ } else {
749
+ this.changePageOnTouch(e, touchobj.pageX - this.startPos.x);
750
+ }
751
+ },
752
+ changePageOnTouch: function changePageOnTouch(e, diff) {
753
+ if (diff < 0) {
754
+ // left
755
+ this.navForward(e);
756
+ } else {
757
+ // right
758
+ this.navBackward(e);
759
+ }
760
+ },
761
+ getTotalPageNumber: function getTotalPageNumber() {
762
+ return this.value.length > this.d_numVisible ? this.value.length - this.d_numVisible + 1 : 0;
763
+ },
764
+ createStyle: function createStyle() {
765
+ if (!this.thumbnailsStyle) {
766
+ this.thumbnailsStyle = document.createElement('style');
767
+ this.thumbnailsStyle.type = 'text/css';
768
+ document.body.appendChild(this.thumbnailsStyle);
769
+ }
770
+ var innerHTML = "\n #".concat(this.containerId, " [data-pc-section=\"thumbnailitem\"] {\n flex: 1 0 ").concat(100 / this.d_numVisible, "%\n }\n ");
771
+ if (this.responsiveOptions && !this.isUnstyled) {
772
+ this.sortedResponsiveOptions = _toConsumableArray(this.responsiveOptions);
773
+ this.sortedResponsiveOptions.sort(function (data1, data2) {
774
+ var value1 = data1.breakpoint;
775
+ var value2 = data2.breakpoint;
776
+ var result = null;
777
+ if (value1 == null && value2 != null) result = -1;else if (value1 != null && value2 == null) result = 1;else if (value1 == null && value2 == null) result = 0;else if (typeof value1 === 'string' && typeof value2 === 'string') result = value1.localeCompare(value2, undefined, {
778
+ numeric: true
779
+ });else result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;
780
+ return -1 * result;
781
+ });
782
+ for (var i = 0; i < this.sortedResponsiveOptions.length; i++) {
783
+ var res = this.sortedResponsiveOptions[i];
784
+ innerHTML += "\n @media screen and (max-width: ".concat(res.breakpoint, ") {\n #").concat(this.containerId, " .p-galleria-thumbnail-item {\n flex: 1 0 ").concat(100 / res.numVisible, "%\n }\n }\n ");
399
785
  }
786
+ }
787
+ this.thumbnailsStyle.innerHTML = innerHTML;
400
788
  },
401
- beforeUnmount() {
402
- if (this.responsiveOptions) {
403
- this.unbindDocumentListeners();
789
+ calculatePosition: function calculatePosition() {
790
+ if (this.$refs.itemsContainer && this.sortedResponsiveOptions) {
791
+ var windowWidth = window.innerWidth;
792
+ var matchedResponsiveData = {
793
+ numVisible: this.numVisible
794
+ };
795
+ for (var i = 0; i < this.sortedResponsiveOptions.length; i++) {
796
+ var res = this.sortedResponsiveOptions[i];
797
+ if (parseInt(res.breakpoint, 10) >= windowWidth) {
798
+ matchedResponsiveData = res;
799
+ }
404
800
  }
405
-
406
- if (this.thumbnailsStyle) {
407
- this.thumbnailsStyle.parentNode.removeChild(this.thumbnailsStyle);
801
+ if (this.d_numVisible !== matchedResponsiveData.numVisible) {
802
+ this.d_numVisible = matchedResponsiveData.numVisible;
408
803
  }
804
+ }
409
805
  },
410
- methods: {
411
- step(dir) {
412
- let totalShiftedItems = this.totalShiftedItems + dir;
413
-
414
- if (dir < 0 && -1 * totalShiftedItems + this.d_numVisible > this.value.length - 1) {
415
- totalShiftedItems = this.d_numVisible - this.value.length;
416
- } else if (dir > 0 && totalShiftedItems > 0) {
417
- totalShiftedItems = 0;
418
- }
419
-
420
- if (this.circular) {
421
- if (dir < 0 && this.value.length - 1 === this.d_activeIndex) {
422
- totalShiftedItems = 0;
423
- } else if (dir > 0 && this.d_activeIndex === 0) {
424
- totalShiftedItems = this.d_numVisible - this.value.length;
425
- }
426
- }
427
-
428
- if (this.$refs.itemsContainer) {
429
- utils.DomHandler.removeClass(this.$refs.itemsContainer, 'p-items-hidden');
430
- this.$refs.itemsContainer.style.transform = this.isVertical ? `translate3d(0, ${totalShiftedItems * (100 / this.d_numVisible)}%, 0)` : `translate3d(${totalShiftedItems * (100 / this.d_numVisible)}%, 0, 0)`;
431
- this.$refs.itemsContainer.style.transition = 'transform 500ms ease 0s';
432
- }
433
-
434
- this.totalShiftedItems = totalShiftedItems;
435
- },
436
- stopSlideShow() {
437
- if (this.slideShowActive && this.stopSlideShow) {
438
- this.$emit('stop-slideshow');
439
- }
440
- },
441
- getMedianItemIndex() {
442
- let index = Math.floor(this.d_numVisible / 2);
443
-
444
- return this.d_numVisible % 2 ? index : index - 1;
445
- },
446
- navBackward(e) {
447
- this.stopSlideShow();
448
-
449
- let prevItemIndex = this.d_activeIndex !== 0 ? this.d_activeIndex - 1 : 0;
450
- let diff = prevItemIndex + this.totalShiftedItems;
451
-
452
- if (this.d_numVisible - diff - 1 > this.getMedianItemIndex() && (-1 * this.totalShiftedItems !== 0 || this.circular)) {
453
- this.step(1);
454
- }
455
-
456
- let activeIndex = this.circular && this.d_activeIndex === 0 ? this.value.length - 1 : prevItemIndex;
457
-
458
- this.$emit('update:activeIndex', activeIndex);
459
-
460
- if (e.cancelable) {
461
- e.preventDefault();
462
- }
463
- },
464
- navForward(e) {
465
- this.stopSlideShow();
466
-
467
- let nextItemIndex = this.d_activeIndex === this.value.length - 1 ? this.value.length - 1 : this.d_activeIndex + 1;
468
-
469
- if (nextItemIndex + this.totalShiftedItems > this.getMedianItemIndex() && (-1 * this.totalShiftedItems < this.getTotalPageNumber() - 1 || this.circular)) {
470
- this.step(-1);
471
- }
472
-
473
- let activeIndex = this.circular && this.value.length - 1 === this.d_activeIndex ? 0 : nextItemIndex;
474
-
475
- this.$emit('update:activeIndex', activeIndex);
476
-
477
- if (e.cancelable) {
478
- e.preventDefault();
479
- }
480
- },
481
- onItemClick(index) {
482
- this.stopSlideShow();
483
-
484
- let selectedItemIndex = index;
485
-
486
- if (selectedItemIndex !== this.d_activeIndex) {
487
- const diff = selectedItemIndex + this.totalShiftedItems;
488
- let dir = 0;
489
-
490
- if (selectedItemIndex < this.d_activeIndex) {
491
- dir = this.d_numVisible - diff - 1 - this.getMedianItemIndex();
492
-
493
- if (dir > 0 && -1 * this.totalShiftedItems !== 0) {
494
- this.step(dir);
495
- }
496
- } else {
497
- dir = this.getMedianItemIndex() - diff;
498
-
499
- if (dir < 0 && -1 * this.totalShiftedItems < this.getTotalPageNumber() - 1) {
500
- this.step(dir);
501
- }
502
- }
503
-
504
- this.$emit('update:activeIndex', selectedItemIndex);
505
- }
506
- },
507
- onThumbnailKeydown(event, index) {
508
- if (event.code === 'Enter' || event.code === 'Space') {
509
- this.onItemClick(index);
510
- event.preventDefault();
511
- }
512
-
513
- switch (event.code) {
514
- case 'ArrowRight':
515
- this.onRightKey();
516
- break;
517
-
518
- case 'ArrowLeft':
519
- this.onLeftKey();
520
- break;
521
-
522
- case 'Home':
523
- this.onHomeKey();
524
- event.preventDefault();
525
- break;
526
-
527
- case 'End':
528
- this.onEndKey();
529
- event.preventDefault();
530
- break;
531
-
532
- case 'ArrowUp':
533
- case 'ArrowDown':
534
- event.preventDefault();
535
- break;
536
-
537
- case 'Tab':
538
- this.onTabKey();
539
- break;
540
- }
541
- },
542
- onRightKey() {
543
- const indicators = utils.DomHandler.find(this.$refs.itemsContainer, '.p-galleria-thumbnail-item');
544
- const activeIndex = this.findFocusedIndicatorIndex();
545
-
546
- this.changedFocusedIndicator(activeIndex, activeIndex + 1 === indicators.length ? indicators.length - 1 : activeIndex + 1);
547
- },
548
- onLeftKey() {
549
- const activeIndex = this.findFocusedIndicatorIndex();
550
-
551
- this.changedFocusedIndicator(activeIndex, activeIndex - 1 <= 0 ? 0 : activeIndex - 1);
552
- },
553
- onHomeKey() {
554
- const activeIndex = this.findFocusedIndicatorIndex();
555
-
556
- this.changedFocusedIndicator(activeIndex, 0);
557
- },
558
- onEndKey() {
559
- const indicators = utils.DomHandler.find(this.$refs.itemsContainer, '.p-galleria-thumbnail-item');
560
- const activeIndex = this.findFocusedIndicatorIndex();
561
-
562
- this.changedFocusedIndicator(activeIndex, indicators.length - 1);
563
- },
564
- onTabKey() {
565
- const indicators = [...utils.DomHandler.find(this.$refs.itemsContainer, '.p-galleria-thumbnail-item')];
566
- const highlightedIndex = indicators.findIndex((ind) => utils.DomHandler.hasClass(ind, 'p-galleria-thumbnail-item-current'));
567
-
568
- const activeIndicator = utils.DomHandler.findSingle(this.$refs.itemsContainer, '.p-galleria-thumbnail-item > [tabindex="0"');
569
- const activeIndex = indicators.findIndex((ind) => ind === activeIndicator.parentElement);
570
-
571
- indicators[activeIndex].children[0].tabIndex = '-1';
572
- indicators[highlightedIndex].children[0].tabIndex = '0';
573
- },
574
- findFocusedIndicatorIndex() {
575
- const indicators = [...utils.DomHandler.find(this.$refs.itemsContainer, '.p-galleria-thumbnail-item')];
576
- const activeIndicator = utils.DomHandler.findSingle(this.$refs.itemsContainer, '.p-galleria-thumbnail-item > [tabindex="0"]');
577
-
578
- return indicators.findIndex((ind) => ind === activeIndicator.parentElement);
579
- },
580
- changedFocusedIndicator(prevInd, nextInd) {
581
- const indicators = utils.DomHandler.find(this.$refs.itemsContainer, '.p-galleria-thumbnail-item');
582
-
583
- indicators[prevInd].children[0].tabIndex = '-1';
584
- indicators[nextInd].children[0].tabIndex = '0';
585
- indicators[nextInd].children[0].focus();
586
- },
587
- onTransitionEnd() {
588
- if (this.$refs.itemsContainer) {
589
- utils.DomHandler.addClass(this.$refs.itemsContainer, 'p-items-hidden');
590
- this.$refs.itemsContainer.style.transition = '';
591
- }
592
- },
593
- onTouchStart(e) {
594
- let touchobj = e.changedTouches[0];
595
-
596
- this.startPos = {
597
- x: touchobj.pageX,
598
- y: touchobj.pageY
599
- };
600
- },
601
- onTouchMove(e) {
602
- if (e.cancelable) {
603
- e.preventDefault();
604
- }
605
- },
606
- onTouchEnd(e) {
607
- let touchobj = e.changedTouches[0];
608
-
609
- if (this.isVertical) {
610
- this.changePageOnTouch(e, touchobj.pageY - this.startPos.y);
611
- } else {
612
- this.changePageOnTouch(e, touchobj.pageX - this.startPos.x);
613
- }
614
- },
615
- changePageOnTouch(e, diff) {
616
- if (diff < 0) {
617
- // left
618
- this.navForward(e);
619
- } else {
620
- // right
621
- this.navBackward(e);
622
- }
623
- },
624
- getTotalPageNumber() {
625
- return this.value.length > this.d_numVisible ? this.value.length - this.d_numVisible + 1 : 0;
626
- },
627
- createStyle() {
628
- if (!this.thumbnailsStyle) {
629
- this.thumbnailsStyle = document.createElement('style');
630
- this.thumbnailsStyle.type = 'text/css';
631
- document.body.appendChild(this.thumbnailsStyle);
632
- }
633
-
634
- let innerHTML = `
635
- #${this.containerId} .p-galleria-thumbnail-item {
636
- flex: 1 0 ${100 / this.d_numVisible}%
637
- }
638
- `;
639
-
640
- if (this.responsiveOptions) {
641
- this.sortedResponsiveOptions = [...this.responsiveOptions];
642
- this.sortedResponsiveOptions.sort((data1, data2) => {
643
- const value1 = data1.breakpoint;
644
- const value2 = data2.breakpoint;
645
- let result = null;
646
-
647
- if (value1 == null && value2 != null) result = -1;
648
- else if (value1 != null && value2 == null) result = 1;
649
- else if (value1 == null && value2 == null) result = 0;
650
- else if (typeof value1 === 'string' && typeof value2 === 'string') result = value1.localeCompare(value2, undefined, { numeric: true });
651
- else result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;
652
-
653
- return -1 * result;
654
- });
655
-
656
- for (let i = 0; i < this.sortedResponsiveOptions.length; i++) {
657
- let res = this.sortedResponsiveOptions[i];
658
-
659
- innerHTML += `
660
- @media screen and (max-width: ${res.breakpoint}) {
661
- #${this.containerId} .p-galleria-thumbnail-item {
662
- flex: 1 0 ${100 / res.numVisible}%
663
- }
664
- }
665
- `;
666
- }
667
- }
668
-
669
- this.thumbnailsStyle.innerHTML = innerHTML;
670
- },
671
- calculatePosition() {
672
- if (this.$refs.itemsContainer && this.sortedResponsiveOptions) {
673
- let windowWidth = window.innerWidth;
674
- let matchedResponsiveData = {
675
- numVisible: this.numVisible
676
- };
677
-
678
- for (let i = 0; i < this.sortedResponsiveOptions.length; i++) {
679
- let res = this.sortedResponsiveOptions[i];
680
-
681
- if (parseInt(res.breakpoint, 10) >= windowWidth) {
682
- matchedResponsiveData = res;
683
- }
684
- }
685
-
686
- if (this.d_numVisible !== matchedResponsiveData.numVisible) {
687
- this.d_numVisible = matchedResponsiveData.numVisible;
688
- }
689
- }
690
- },
691
- bindDocumentListeners() {
692
- if (!this.documentResizeListener) {
693
- this.documentResizeListener = () => {
694
- this.calculatePosition();
695
- };
696
-
697
- window.addEventListener('resize', this.documentResizeListener);
698
- }
699
- },
700
- unbindDocumentListeners() {
701
- if (this.documentResizeListener) {
702
- window.removeEventListener('resize', this.documentResizeListener);
703
- this.documentResizeListener = null;
704
- }
705
- },
706
- isNavBackwardDisabled() {
707
- return (!this.circular && this.d_activeIndex === 0) || this.value.length <= this.d_numVisible;
708
- },
709
- isNavForwardDisabled() {
710
- return (!this.circular && this.d_activeIndex === this.value.length - 1) || this.value.length <= this.d_numVisible;
711
- },
712
- firstItemAciveIndex() {
713
- return this.totalShiftedItems * -1;
714
- },
715
- lastItemActiveIndex() {
716
- return this.firstItemAciveIndex() + this.d_numVisible - 1;
717
- },
718
- isItemActive(index) {
719
- return this.firstItemAciveIndex() <= index && this.lastItemActiveIndex() >= index;
720
- },
721
- ariaPageLabel(value) {
722
- return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.pageLabel.replace(/{page}/g, value) : undefined;
723
- }
806
+ bindDocumentListeners: function bindDocumentListeners() {
807
+ var _this = this;
808
+ if (!this.documentResizeListener) {
809
+ this.documentResizeListener = function () {
810
+ _this.calculatePosition();
811
+ };
812
+ window.addEventListener('resize', this.documentResizeListener);
813
+ }
724
814
  },
725
- computed: {
726
- navBackwardClass() {
727
- return [
728
- 'p-galleria-thumbnail-prev p-link',
729
- {
730
- 'p-disabled': this.isNavBackwardDisabled()
731
- }
732
- ];
733
- },
734
- navForwardClass() {
735
- return [
736
- 'p-galleria-thumbnail-next p-link',
737
- {
738
- 'p-disabled': this.isNavForwardDisabled()
739
- }
740
- ];
741
- },
742
- ariaPrevButtonLabel() {
743
- return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.prevPageLabel : undefined;
744
- },
745
- ariaNextButtonLabel() {
746
- return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.nextPageLabel : undefined;
747
- }
815
+ unbindDocumentListeners: function unbindDocumentListeners() {
816
+ if (this.documentResizeListener) {
817
+ window.removeEventListener('resize', this.documentResizeListener);
818
+ this.documentResizeListener = null;
819
+ }
820
+ },
821
+ isNavBackwardDisabled: function isNavBackwardDisabled() {
822
+ return !this.circular && this.d_activeIndex === 0 || this.value.length <= this.d_numVisible;
823
+ },
824
+ isNavForwardDisabled: function isNavForwardDisabled() {
825
+ return !this.circular && this.d_activeIndex === this.value.length - 1 || this.value.length <= this.d_numVisible;
748
826
  },
749
- components: {
750
- ChevronLeftIcon: ChevronLeftIcon__default["default"],
751
- ChevronRightIcon: ChevronRightIcon__default["default"],
752
- ChevronUpIcon: ChevronUpIcon__default["default"],
753
- ChevronDownIcon: ChevronDownIcon__default["default"]
827
+ firstItemAciveIndex: function firstItemAciveIndex() {
828
+ return this.totalShiftedItems * -1;
754
829
  },
755
- directives: {
756
- ripple: Ripple__default["default"]
830
+ lastItemActiveIndex: function lastItemActiveIndex() {
831
+ return this.firstItemAciveIndex() + this.d_numVisible - 1;
832
+ },
833
+ isItemActive: function isItemActive(index) {
834
+ return this.firstItemAciveIndex() <= index && this.lastItemActiveIndex() >= index;
835
+ },
836
+ ariaPageLabel: function ariaPageLabel(value) {
837
+ return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.pageLabel.replace(/{page}/g, value) : undefined;
838
+ }
839
+ },
840
+ computed: {
841
+ ariaPrevButtonLabel: function ariaPrevButtonLabel() {
842
+ return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.prevPageLabel : undefined;
843
+ },
844
+ ariaNextButtonLabel: function ariaNextButtonLabel() {
845
+ return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.nextPageLabel : undefined;
757
846
  }
847
+ },
848
+ components: {
849
+ ChevronLeftIcon: ChevronLeftIcon__default["default"],
850
+ ChevronRightIcon: ChevronRightIcon__default["default"],
851
+ ChevronUpIcon: ChevronUpIcon__default["default"],
852
+ ChevronDownIcon: ChevronDownIcon__default["default"]
853
+ },
854
+ directives: {
855
+ ripple: Ripple__default["default"]
856
+ }
758
857
  };
759
858
 
760
- const _hoisted_1$2 = ["disabled", "aria-label"];
761
- const _hoisted_2$1 = ["aria-selected", "aria-controls", "onKeydown"];
762
- const _hoisted_3$1 = ["tabindex", "aria-label", "aria-current", "onClick"];
763
- const _hoisted_4 = ["disabled", "aria-label"];
764
-
859
+ function _typeof$1(obj) { "@babel/helpers - typeof"; return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$1(obj); }
860
+ function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
861
+ function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
862
+ function _defineProperty$1(obj, key, value) { key = _toPropertyKey$1(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
863
+ function _toPropertyKey$1(arg) { var key = _toPrimitive$1(arg, "string"); return _typeof$1(key) === "symbol" ? key : String(key); }
864
+ function _toPrimitive$1(input, hint) { if (_typeof$1(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$1(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
865
+ var _hoisted_1$2 = ["disabled", "aria-label"];
866
+ var _hoisted_2$1 = ["data-p-active", "aria-selected", "aria-controls", "onKeydown", "data-p-galleria-thumbnail-item-current", "data-p-galleria-thumbnail-item-active", "data-p-galleria-thumbnail-item-start", "data-p-galleria-thumbnail-item-end"];
867
+ var _hoisted_3$1 = ["tabindex", "aria-label", "aria-current", "onClick"];
868
+ var _hoisted_4 = ["disabled", "aria-label"];
765
869
  function render$2(_ctx, _cache, $props, $setup, $data, $options) {
766
- const _directive_ripple = vue.resolveDirective("ripple");
767
-
768
- return (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({ class: "p-galleria-thumbnail-wrapper" }, _ctx.ptm('thumbnailWrapper')), [
769
- vue.createElementVNode("div", vue.mergeProps({ class: "p-galleria-thumbnail-container" }, _ctx.ptm('thumbnailContainer')), [
770
- ($props.showThumbnailNavigators)
771
- ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
772
- key: 0,
773
- class: $options.navBackwardClass,
774
- disabled: $options.isNavBackwardDisabled(),
775
- type: "button",
776
- "aria-label": $options.ariaPrevButtonLabel,
777
- onClick: _cache[0] || (_cache[0] = $event => ($options.navBackward($event)))
778
- }, { ...$props.prevButtonProps, ..._ctx.ptm('previousThumbnailButton') }), [
779
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates.previousthumbnailicon || ($props.isVertical ? 'ChevronUpIcon' : 'ChevronLeftIcon')), vue.mergeProps({ class: "p-galleria-thumbnail-prev-icon" }, _ctx.ptm('previousThumbnailIcon')), null, 16))
780
- ], 16, _hoisted_1$2)), [
781
- [_directive_ripple]
782
- ])
783
- : vue.createCommentVNode("", true),
784
- vue.createElementVNode("div", vue.mergeProps({
785
- class: "p-galleria-thumbnail-items-container",
786
- style: { height: $props.isVertical ? $props.contentHeight : '' }
787
- }, _ctx.ptm('thumbnailItemsContainer')), [
788
- vue.createElementVNode("div", vue.mergeProps({
789
- ref: "itemsContainer",
790
- class: "p-galleria-thumbnail-items",
791
- role: "tablist",
792
- onTransitionend: _cache[1] || (_cache[1] = (...args) => ($options.onTransitionEnd && $options.onTransitionEnd(...args))),
793
- onTouchstart: _cache[2] || (_cache[2] = $event => ($options.onTouchStart($event))),
794
- onTouchmove: _cache[3] || (_cache[3] = $event => ($options.onTouchMove($event))),
795
- onTouchend: _cache[4] || (_cache[4] = $event => ($options.onTouchEnd($event)))
796
- }, _ctx.ptm('thumbnailItems')), [
797
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.value, (item, index) => {
798
- return (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
799
- key: `p-galleria-thumbnail-item-${index}`,
800
- class: [
801
- 'p-galleria-thumbnail-item',
802
- {
803
- 'p-galleria-thumbnail-item-current': $props.activeIndex === index,
804
- 'p-galleria-thumbnail-item-active': $options.isItemActive(index),
805
- 'p-galleria-thumbnail-item-start': $options.firstItemAciveIndex() === index,
806
- 'p-galleria-thumbnail-item-end': $options.lastItemActiveIndex() === index
807
- }
808
- ],
809
- role: "tab",
810
- "aria-selected": $props.activeIndex === index,
811
- "aria-controls": $props.containerId + '_item_' + index,
812
- onKeydown: $event => ($options.onThumbnailKeydown($event, index))
813
- }, _ctx.ptm('thumbnailItem')), [
814
- vue.createElementVNode("div", vue.mergeProps({
815
- class: "p-galleria-thumbnail-item-content",
816
- tabindex: $props.activeIndex === index ? '0' : '-1',
817
- "aria-label": $options.ariaPageLabel(index + 1),
818
- "aria-current": $props.activeIndex === index ? 'page' : undefined,
819
- onClick: $event => ($options.onItemClick(index))
820
- }, _ctx.ptm('thumbnailItemContent')), [
821
- ($props.templates.thumbnail)
822
- ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates.thumbnail), {
823
- key: 0,
824
- item: item
825
- }, null, 8, ["item"]))
826
- : vue.createCommentVNode("", true)
827
- ], 16, _hoisted_3$1)
828
- ], 16, _hoisted_2$1))
829
- }), 128))
830
- ], 16)
831
- ], 16),
832
- ($props.showThumbnailNavigators)
833
- ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
834
- key: 1,
835
- class: $options.navForwardClass,
836
- disabled: $options.isNavForwardDisabled(),
837
- type: "button",
838
- "aria-label": $options.ariaNextButtonLabel,
839
- onClick: _cache[5] || (_cache[5] = $event => ($options.navForward($event)))
840
- }, { ...$props.nextButtonProps, ..._ctx.ptm('nextThumbnailButton') }), [
841
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates.nextthumbnailicon || ($props.isVertical ? 'ChevronDownIcon' : 'ChevronRightIcon')), vue.mergeProps({ class: "p-galleria-thumbnail-next-icon" }, _ctx.ptm('nextThumbnailIcon')), null, 16))
842
- ], 16, _hoisted_4)), [
843
- [_directive_ripple]
844
- ])
845
- : vue.createCommentVNode("", true)
846
- ], 16)
847
- ], 16))
870
+ var _directive_ripple = vue.resolveDirective("ripple");
871
+ return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
872
+ "class": _ctx.cx('thumbnailWrapper')
873
+ }, _ctx.ptm('thumbnailWrapper')), [vue.createElementVNode("div", vue.mergeProps({
874
+ "class": _ctx.cx('thumbnailContainer')
875
+ }, _ctx.ptm('thumbnailContainer')), [$props.showThumbnailNavigators ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
876
+ key: 0,
877
+ "class": _ctx.cx('previousThumbnailButton'),
878
+ disabled: $options.isNavBackwardDisabled(),
879
+ type: "button",
880
+ "aria-label": $options.ariaPrevButtonLabel,
881
+ onClick: _cache[0] || (_cache[0] = function ($event) {
882
+ return $options.navBackward($event);
883
+ })
884
+ }, _objectSpread$1(_objectSpread$1({}, $props.prevButtonProps), _ctx.ptm('previousThumbnailButton'))), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates.previousthumbnailicon || ($props.isVertical ? 'ChevronUpIcon' : 'ChevronLeftIcon')), vue.mergeProps({
885
+ "class": _ctx.cx('previousThumbnailIcon')
886
+ }, _ctx.ptm('previousThumbnailIcon')), null, 16, ["class"]))], 16, _hoisted_1$2)), [[_directive_ripple]]) : vue.createCommentVNode("", true), vue.createElementVNode("div", vue.mergeProps({
887
+ "class": _ctx.cx('thumbnailItemsContainer'),
888
+ style: {
889
+ height: $props.isVertical ? $props.contentHeight : ''
890
+ }
891
+ }, _ctx.ptm('thumbnailItemsContainer')), [vue.createElementVNode("div", vue.mergeProps({
892
+ ref: "itemsContainer",
893
+ "class": _ctx.cx('thumbnailItems'),
894
+ role: "tablist",
895
+ onTransitionend: _cache[1] || (_cache[1] = function () {
896
+ return $options.onTransitionEnd && $options.onTransitionEnd.apply($options, arguments);
897
+ }),
898
+ onTouchstart: _cache[2] || (_cache[2] = function ($event) {
899
+ return $options.onTouchStart($event);
900
+ }),
901
+ onTouchmove: _cache[3] || (_cache[3] = function ($event) {
902
+ return $options.onTouchMove($event);
903
+ }),
904
+ onTouchend: _cache[4] || (_cache[4] = function ($event) {
905
+ return $options.onTouchEnd($event);
906
+ })
907
+ }, _ctx.ptm('thumbnailItems')), [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.value, function (item, index) {
908
+ return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
909
+ key: "p-galleria-thumbnail-item-".concat(index),
910
+ "class": _ctx.cx('thumbnailItem', {
911
+ index: index,
912
+ activeIndex: $props.activeIndex
913
+ }),
914
+ role: "tab",
915
+ "data-p-active": $props.activeIndex === index,
916
+ "aria-selected": $props.activeIndex === index,
917
+ "aria-controls": $props.containerId + '_item_' + index,
918
+ onKeydown: function onKeydown($event) {
919
+ return $options.onThumbnailKeydown($event, index);
920
+ }
921
+ }, _ctx.ptm('thumbnailItem'), {
922
+ "data-p-galleria-thumbnail-item-current": $props.activeIndex === index,
923
+ "data-p-galleria-thumbnail-item-active": $options.isItemActive(index),
924
+ "data-p-galleria-thumbnail-item-start": $options.firstItemAciveIndex() === index,
925
+ "data-p-galleria-thumbnail-item-end": $options.lastItemActiveIndex() === index
926
+ }), [vue.createElementVNode("div", vue.mergeProps({
927
+ "class": _ctx.cx('thumbnailItemContent'),
928
+ tabindex: $props.activeIndex === index ? '0' : '-1',
929
+ "aria-label": $options.ariaPageLabel(index + 1),
930
+ "aria-current": $props.activeIndex === index ? 'page' : undefined,
931
+ onClick: function onClick($event) {
932
+ return $options.onItemClick(index);
933
+ }
934
+ }, _ctx.ptm('thumbnailItemContent')), [$props.templates.thumbnail ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates.thumbnail), {
935
+ key: 0,
936
+ item: item
937
+ }, null, 8, ["item"])) : vue.createCommentVNode("", true)], 16, _hoisted_3$1)], 16, _hoisted_2$1);
938
+ }), 128))], 16)], 16), $props.showThumbnailNavigators ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
939
+ key: 1,
940
+ "class": _ctx.cx('nextThumbnailButton'),
941
+ disabled: $options.isNavForwardDisabled(),
942
+ type: "button",
943
+ "aria-label": $options.ariaNextButtonLabel,
944
+ onClick: _cache[5] || (_cache[5] = function ($event) {
945
+ return $options.navForward($event);
946
+ })
947
+ }, _objectSpread$1(_objectSpread$1({}, $props.nextButtonProps), _ctx.ptm('nextThumbnailButton'))), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.templates.nextthumbnailicon || ($props.isVertical ? 'ChevronDownIcon' : 'ChevronRightIcon')), vue.mergeProps({
948
+ "class": _ctx.cx('nextThumbnailIcon')
949
+ }, _ctx.ptm('nextThumbnailIcon')), null, 16, ["class"]))], 16, _hoisted_4)), [[_directive_ripple]]) : vue.createCommentVNode("", true)], 16)], 16);
848
950
  }
849
951
 
850
952
  script$2.render = render$2;
851
953
 
852
954
  var script$1 = {
853
- name: 'GalleriaContent',
854
- extends: BaseComponent__default["default"],
855
- inheritAttrs: false,
856
- interval: null,
857
- emits: ['activeitem-change', 'mask-hide'],
858
- data() {
859
- return {
860
- id: this.$attrs.id || utils.UniqueComponentId(),
861
- activeIndex: this.$attrs.activeIndex,
862
- numVisible: this.$attrs.numVisible,
863
- slideShowActive: false
864
- };
955
+ name: 'GalleriaContent',
956
+ "extends": BaseComponent__default["default"],
957
+ inheritAttrs: false,
958
+ interval: null,
959
+ emits: ['activeitem-change', 'mask-hide'],
960
+ data: function data() {
961
+ return {
962
+ id: this.$attrs.id || utils.UniqueComponentId(),
963
+ activeIndex: this.$attrs.activeIndex,
964
+ numVisible: this.$attrs.numVisible,
965
+ slideShowActive: false
966
+ };
967
+ },
968
+ watch: {
969
+ '$attrs.value': function $attrsValue(newVal) {
970
+ if (newVal && newVal.length < this.numVisible) {
971
+ this.numVisible = newVal.length;
972
+ }
865
973
  },
866
- watch: {
867
- '$attrs.value': function (newVal) {
868
- if (newVal && newVal.length < this.numVisible) {
869
- this.numVisible = newVal.length;
870
- }
871
- },
872
- '$attrs.activeIndex': function (newVal) {
873
- this.activeIndex = newVal;
874
- },
875
- '$attrs.numVisible': function (newVal) {
876
- this.numVisible = newVal;
877
- },
878
- '$attrs.autoPlay': function (newVal) {
879
- newVal ? this.startSlideShow() : this.stopSlideShow();
880
- }
974
+ '$attrs.activeIndex': function $attrsActiveIndex(newVal) {
975
+ this.activeIndex = newVal;
881
976
  },
882
- updated() {
883
- this.$emit('activeitem-change', this.activeIndex);
977
+ '$attrs.numVisible': function $attrsNumVisible(newVal) {
978
+ this.numVisible = newVal;
884
979
  },
885
- beforeUnmount() {
886
- if (this.slideShowActive) {
887
- this.stopSlideShow();
888
- }
980
+ '$attrs.autoPlay': function $attrsAutoPlay(newVal) {
981
+ newVal ? this.startSlideShow() : this.stopSlideShow();
982
+ }
983
+ },
984
+ updated: function updated() {
985
+ this.$emit('activeitem-change', this.activeIndex);
986
+ },
987
+ beforeUnmount: function beforeUnmount() {
988
+ if (this.slideShowActive) {
989
+ this.stopSlideShow();
990
+ }
991
+ },
992
+ methods: {
993
+ isAutoPlayActive: function isAutoPlayActive() {
994
+ return this.slideShowActive;
889
995
  },
890
- methods: {
891
- isAutoPlayActive() {
892
- return this.slideShowActive;
893
- },
894
- startSlideShow() {
895
- this.interval = setInterval(() => {
896
- let activeIndex = this.$attrs.circular && this.$attrs.value.length - 1 === this.activeIndex ? 0 : this.activeIndex + 1;
897
-
898
- this.activeIndex = activeIndex;
899
- }, this.$attrs.transitionInterval);
900
-
901
- this.slideShowActive = true;
902
- },
903
- stopSlideShow() {
904
- if (this.interval) {
905
- clearInterval(this.interval);
906
- }
907
-
908
- this.slideShowActive = false;
909
- },
910
- getPositionClass(preClassName, position) {
911
- const positions = ['top', 'left', 'bottom', 'right'];
912
- const pos = positions.find((item) => item === position);
913
-
914
- return pos ? `${preClassName}-${pos}` : '';
915
- },
916
- isVertical() {
917
- return this.$attrs.thumbnailsPosition === 'left' || this.$attrs.thumbnailsPosition === 'right';
918
- }
996
+ startSlideShow: function startSlideShow() {
997
+ var _this = this;
998
+ this.interval = setInterval(function () {
999
+ var activeIndex = _this.$attrs.circular && _this.$attrs.value.length - 1 === _this.activeIndex ? 0 : _this.activeIndex + 1;
1000
+ _this.activeIndex = activeIndex;
1001
+ }, this.$attrs.transitionInterval);
1002
+ this.slideShowActive = true;
919
1003
  },
920
- computed: {
921
- galleriaClass() {
922
- const thumbnailsPosClass = this.$attrs.showThumbnails && this.getPositionClass('p-galleria-thumbnails', this.$attrs.thumbnailsPosition);
923
- const indicatorPosClass = this.$attrs.showIndicators && this.getPositionClass('p-galleria-indicators', this.$attrs.indicatorsPosition);
924
-
925
- return [
926
- 'p-galleria p-component',
927
- {
928
- 'p-galleria-fullscreen': this.$attrs.fullScreen,
929
- 'p-galleria-indicator-onitem': this.$attrs.showIndicatorsOnItem,
930
- 'p-galleria-item-nav-onhover': this.$attrs.showItemNavigatorsOnHover && !this.$attrs.fullScreen
931
- },
932
- thumbnailsPosClass,
933
- indicatorPosClass,
934
- this.$attrs.containerClass
935
- ];
936
- },
937
- closeAriaLabel() {
938
- return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.close : undefined;
939
- }
1004
+ stopSlideShow: function stopSlideShow() {
1005
+ if (this.interval) {
1006
+ clearInterval(this.interval);
1007
+ }
1008
+ this.slideShowActive = false;
940
1009
  },
941
- components: {
942
- GalleriaItem: script$3,
943
- GalleriaThumbnails: script$2,
944
- TimesIcon: TimesIcon__default["default"]
1010
+ getPositionClass: function getPositionClass(preClassName, position) {
1011
+ var positions = ['top', 'left', 'bottom', 'right'];
1012
+ var pos = positions.find(function (item) {
1013
+ return item === position;
1014
+ });
1015
+ return pos ? "".concat(preClassName, "-").concat(pos) : '';
945
1016
  },
946
- directives: {
947
- ripple: Ripple__default["default"]
1017
+ isVertical: function isVertical() {
1018
+ return this.$attrs.thumbnailsPosition === 'left' || this.$attrs.thumbnailsPosition === 'right';
948
1019
  }
1020
+ },
1021
+ computed: {
1022
+ closeAriaLabel: function closeAriaLabel() {
1023
+ return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.close : undefined;
1024
+ }
1025
+ },
1026
+ components: {
1027
+ GalleriaItem: script$3,
1028
+ GalleriaThumbnails: script$2,
1029
+ TimesIcon: TimesIcon__default["default"]
1030
+ },
1031
+ directives: {
1032
+ ripple: Ripple__default["default"]
1033
+ }
949
1034
  };
950
1035
 
951
- const _hoisted_1$1 = ["id"];
952
- const _hoisted_2 = ["aria-label"];
953
- const _hoisted_3 = ["aria-live"];
954
-
1036
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
1037
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1038
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1039
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1040
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
1041
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
1042
+ var _hoisted_1$1 = ["id"];
1043
+ var _hoisted_2 = ["aria-label"];
1044
+ var _hoisted_3 = ["aria-live"];
955
1045
  function render$1(_ctx, _cache, $props, $setup, $data, $options) {
956
- const _component_GalleriaItem = vue.resolveComponent("GalleriaItem");
957
- const _component_GalleriaThumbnails = vue.resolveComponent("GalleriaThumbnails");
958
- const _directive_ripple = vue.resolveDirective("ripple");
959
-
960
- return (_ctx.$attrs.value && _ctx.$attrs.value.length > 0)
961
- ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
962
- key: 0,
963
- id: $data.id,
964
- class: $options.galleriaClass,
965
- style: _ctx.$attrs.containerStyle
966
- }, { ..._ctx.$attrs.containerProps, ..._ctx.ptm('root') }), [
967
- (_ctx.$attrs.fullScreen)
968
- ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
969
- key: 0,
970
- autofocus: "",
971
- type: "button",
972
- class: "p-galleria-close p-link",
973
- "aria-label": $options.closeAriaLabel,
974
- onClick: _cache[0] || (_cache[0] = $event => (_ctx.$emit('mask-hide')))
975
- }, _ctx.ptm('closeButton')), [
976
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.$attrs.templates['closeicon'] || 'TimesIcon'), vue.mergeProps({ class: "p-galleria-close-icon" }, _ctx.ptm('closeIcon')), null, 16))
977
- ], 16, _hoisted_2)), [
978
- [_directive_ripple]
979
- ])
980
- : vue.createCommentVNode("", true),
981
- (_ctx.$attrs.templates && _ctx.$attrs.templates['header'])
982
- ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
983
- key: 1,
984
- class: "p-galleria-header"
985
- }, _ctx.ptm('header')), [
986
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.$attrs.templates['header'])))
987
- ], 16))
988
- : vue.createCommentVNode("", true),
989
- vue.createElementVNode("div", vue.mergeProps({
990
- class: "p-galleria-content",
991
- "aria-live": _ctx.$attrs.autoPlay ? 'polite' : 'off'
992
- }, _ctx.ptm('content')), [
993
- vue.createVNode(_component_GalleriaItem, {
994
- id: $data.id,
995
- activeIndex: $data.activeIndex,
996
- "onUpdate:activeIndex": _cache[1] || (_cache[1] = $event => (($data.activeIndex) = $event)),
997
- slideShowActive: $data.slideShowActive,
998
- "onUpdate:slideShowActive": _cache[2] || (_cache[2] = $event => (($data.slideShowActive) = $event)),
999
- value: _ctx.$attrs.value,
1000
- circular: _ctx.$attrs.circular,
1001
- templates: _ctx.$attrs.templates,
1002
- showIndicators: _ctx.$attrs.showIndicators,
1003
- changeItemOnIndicatorHover: _ctx.$attrs.changeItemOnIndicatorHover,
1004
- showItemNavigators: _ctx.$attrs.showItemNavigators,
1005
- autoPlay: _ctx.$attrs.autoPlay,
1006
- onStartSlideshow: $options.startSlideShow,
1007
- onStopSlideshow: $options.stopSlideShow,
1008
- pt: _ctx.pt
1009
- }, null, 8, ["id", "activeIndex", "slideShowActive", "value", "circular", "templates", "showIndicators", "changeItemOnIndicatorHover", "showItemNavigators", "autoPlay", "onStartSlideshow", "onStopSlideshow", "pt"]),
1010
- (_ctx.$attrs.showThumbnails)
1011
- ? (vue.openBlock(), vue.createBlock(_component_GalleriaThumbnails, {
1012
- key: 0,
1013
- activeIndex: $data.activeIndex,
1014
- "onUpdate:activeIndex": _cache[3] || (_cache[3] = $event => (($data.activeIndex) = $event)),
1015
- slideShowActive: $data.slideShowActive,
1016
- "onUpdate:slideShowActive": _cache[4] || (_cache[4] = $event => (($data.slideShowActive) = $event)),
1017
- containerId: $data.id,
1018
- value: _ctx.$attrs.value,
1019
- templates: _ctx.$attrs.templates,
1020
- numVisible: $data.numVisible,
1021
- responsiveOptions: _ctx.$attrs.responsiveOptions,
1022
- circular: _ctx.$attrs.circular,
1023
- isVertical: $options.isVertical(),
1024
- contentHeight: _ctx.$attrs.verticalThumbnailViewPortHeight,
1025
- showThumbnailNavigators: _ctx.$attrs.showThumbnailNavigators,
1026
- prevButtonProps: _ctx.$attrs.prevButtonProps,
1027
- nextButtonProps: _ctx.$attrs.nextButtonProps,
1028
- onStopSlideshow: $options.stopSlideShow,
1029
- pt: _ctx.pt
1030
- }, null, 8, ["activeIndex", "slideShowActive", "containerId", "value", "templates", "numVisible", "responsiveOptions", "circular", "isVertical", "contentHeight", "showThumbnailNavigators", "prevButtonProps", "nextButtonProps", "onStopSlideshow", "pt"]))
1031
- : vue.createCommentVNode("", true)
1032
- ], 16, _hoisted_3),
1033
- (_ctx.$attrs.templates && _ctx.$attrs.templates['footer'])
1034
- ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
1035
- key: 2,
1036
- class: "p-galleria-footer"
1037
- }, _ctx.ptm('footer')), [
1038
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.$attrs.templates['footer'])))
1039
- ], 16))
1040
- : vue.createCommentVNode("", true)
1041
- ], 16, _hoisted_1$1))
1042
- : vue.createCommentVNode("", true)
1046
+ var _component_GalleriaItem = vue.resolveComponent("GalleriaItem");
1047
+ var _component_GalleriaThumbnails = vue.resolveComponent("GalleriaThumbnails");
1048
+ var _directive_ripple = vue.resolveDirective("ripple");
1049
+ return _ctx.$attrs.value && _ctx.$attrs.value.length > 0 ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
1050
+ key: 0,
1051
+ id: $data.id,
1052
+ "class": [_ctx.cx('root'), _ctx.$attrs.containerClass],
1053
+ style: _ctx.$attrs.containerStyle
1054
+ }, _objectSpread(_objectSpread({}, _ctx.$attrs.containerProps), _ctx.ptm('root')), {
1055
+ "data-pc-name": "galleria"
1056
+ }), [_ctx.$attrs.fullScreen ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("button", vue.mergeProps({
1057
+ key: 0,
1058
+ autofocus: "",
1059
+ type: "button",
1060
+ "class": _ctx.cx('closeButton'),
1061
+ "aria-label": $options.closeAriaLabel,
1062
+ onClick: _cache[0] || (_cache[0] = function ($event) {
1063
+ return _ctx.$emit('mask-hide');
1064
+ })
1065
+ }, _ctx.ptm('closeButton')), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.$attrs.templates['closeicon'] || 'TimesIcon'), vue.mergeProps({
1066
+ "class": _ctx.cx('closeIcon')
1067
+ }, _ctx.ptm('closeIcon')), null, 16, ["class"]))], 16, _hoisted_2)), [[_directive_ripple]]) : vue.createCommentVNode("", true), _ctx.$attrs.templates && _ctx.$attrs.templates['header'] ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
1068
+ key: 1,
1069
+ "class": _ctx.cx('header')
1070
+ }, _ctx.ptm('header')), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.$attrs.templates['header'])))], 16)) : vue.createCommentVNode("", true), vue.createElementVNode("div", vue.mergeProps({
1071
+ "class": _ctx.cx('content'),
1072
+ "aria-live": _ctx.$attrs.autoPlay ? 'polite' : 'off'
1073
+ }, _ctx.ptm('content')), [vue.createVNode(_component_GalleriaItem, {
1074
+ id: $data.id,
1075
+ activeIndex: $data.activeIndex,
1076
+ "onUpdate:activeIndex": _cache[1] || (_cache[1] = function ($event) {
1077
+ return $data.activeIndex = $event;
1078
+ }),
1079
+ slideShowActive: $data.slideShowActive,
1080
+ "onUpdate:slideShowActive": _cache[2] || (_cache[2] = function ($event) {
1081
+ return $data.slideShowActive = $event;
1082
+ }),
1083
+ value: _ctx.$attrs.value,
1084
+ circular: _ctx.$attrs.circular,
1085
+ templates: _ctx.$attrs.templates,
1086
+ showIndicators: _ctx.$attrs.showIndicators,
1087
+ changeItemOnIndicatorHover: _ctx.$attrs.changeItemOnIndicatorHover,
1088
+ showItemNavigators: _ctx.$attrs.showItemNavigators,
1089
+ autoPlay: _ctx.$attrs.autoPlay,
1090
+ onStartSlideshow: $options.startSlideShow,
1091
+ onStopSlideshow: $options.stopSlideShow,
1092
+ pt: _ctx.pt,
1093
+ unstyled: _ctx.unstyled
1094
+ }, null, 8, ["id", "activeIndex", "slideShowActive", "value", "circular", "templates", "showIndicators", "changeItemOnIndicatorHover", "showItemNavigators", "autoPlay", "onStartSlideshow", "onStopSlideshow", "pt", "unstyled"]), _ctx.$attrs.showThumbnails ? (vue.openBlock(), vue.createBlock(_component_GalleriaThumbnails, {
1095
+ key: 0,
1096
+ activeIndex: $data.activeIndex,
1097
+ "onUpdate:activeIndex": _cache[3] || (_cache[3] = function ($event) {
1098
+ return $data.activeIndex = $event;
1099
+ }),
1100
+ slideShowActive: $data.slideShowActive,
1101
+ "onUpdate:slideShowActive": _cache[4] || (_cache[4] = function ($event) {
1102
+ return $data.slideShowActive = $event;
1103
+ }),
1104
+ containerId: $data.id,
1105
+ value: _ctx.$attrs.value,
1106
+ templates: _ctx.$attrs.templates,
1107
+ numVisible: $data.numVisible,
1108
+ responsiveOptions: _ctx.$attrs.responsiveOptions,
1109
+ circular: _ctx.$attrs.circular,
1110
+ isVertical: $options.isVertical(),
1111
+ contentHeight: _ctx.$attrs.verticalThumbnailViewPortHeight,
1112
+ showThumbnailNavigators: _ctx.$attrs.showThumbnailNavigators,
1113
+ prevButtonProps: _ctx.$attrs.prevButtonProps,
1114
+ nextButtonProps: _ctx.$attrs.nextButtonProps,
1115
+ onStopSlideshow: $options.stopSlideShow,
1116
+ pt: _ctx.pt,
1117
+ unstyled: _ctx.unstyled
1118
+ }, null, 8, ["activeIndex", "slideShowActive", "containerId", "value", "templates", "numVisible", "responsiveOptions", "circular", "isVertical", "contentHeight", "showThumbnailNavigators", "prevButtonProps", "nextButtonProps", "onStopSlideshow", "pt", "unstyled"])) : vue.createCommentVNode("", true)], 16, _hoisted_3), _ctx.$attrs.templates && _ctx.$attrs.templates['footer'] ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
1119
+ key: 2,
1120
+ "class": _ctx.cx('footer')
1121
+ }, _ctx.ptm('footer')), [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.$attrs.templates['footer'])))], 16)) : vue.createCommentVNode("", true)], 16, _hoisted_1$1)) : vue.createCommentVNode("", true);
1043
1122
  }
1044
1123
 
1045
1124
  script$1.render = render$1;
1046
1125
 
1047
1126
  var script = {
1048
- name: 'Galleria',
1049
- extends: BaseComponent__default["default"],
1050
- inheritAttrs: false,
1051
- emits: ['update:activeIndex', 'update:visible'],
1052
- props: {
1053
- id: {
1054
- type: String,
1055
- default: null
1056
- },
1057
- value: {
1058
- type: Array,
1059
- default: null
1060
- },
1061
- activeIndex: {
1062
- type: Number,
1063
- default: 0
1064
- },
1065
- fullScreen: {
1066
- type: Boolean,
1067
- default: false
1068
- },
1069
- visible: {
1070
- type: Boolean,
1071
- default: false
1072
- },
1073
- numVisible: {
1074
- type: Number,
1075
- default: 3
1076
- },
1077
- responsiveOptions: {
1078
- type: Array,
1079
- default: null
1080
- },
1081
- showItemNavigators: {
1082
- type: Boolean,
1083
- default: false
1084
- },
1085
- showThumbnailNavigators: {
1086
- type: Boolean,
1087
- default: true
1088
- },
1089
- showItemNavigatorsOnHover: {
1090
- type: Boolean,
1091
- default: false
1092
- },
1093
- changeItemOnIndicatorHover: {
1094
- type: Boolean,
1095
- default: false
1096
- },
1097
- circular: {
1098
- type: Boolean,
1099
- default: false
1100
- },
1101
- autoPlay: {
1102
- type: Boolean,
1103
- default: false
1104
- },
1105
- transitionInterval: {
1106
- type: Number,
1107
- default: 4000
1108
- },
1109
- showThumbnails: {
1110
- type: Boolean,
1111
- default: true
1112
- },
1113
- thumbnailsPosition: {
1114
- type: String,
1115
- default: 'bottom'
1116
- },
1117
- verticalThumbnailViewPortHeight: {
1118
- type: String,
1119
- default: '300px'
1120
- },
1121
- showIndicators: {
1122
- type: Boolean,
1123
- default: false
1124
- },
1125
- showIndicatorsOnItem: {
1126
- type: Boolean,
1127
- default: false
1128
- },
1129
- indicatorsPosition: {
1130
- type: String,
1131
- default: 'bottom'
1132
- },
1133
- baseZIndex: {
1134
- type: Number,
1135
- default: 0
1136
- },
1137
- maskClass: {
1138
- type: String,
1139
- default: null
1140
- },
1141
- containerStyle: {
1142
- type: null,
1143
- default: null
1144
- },
1145
- containerClass: {
1146
- type: null,
1147
- default: null
1148
- },
1149
- containerProps: {
1150
- type: null,
1151
- default: null
1152
- },
1153
- prevButtonProps: {
1154
- type: null,
1155
- default: null
1156
- },
1157
- nextButtonProps: {
1158
- type: null,
1159
- default: null
1160
- }
1127
+ name: 'Galleria',
1128
+ "extends": script$4,
1129
+ inheritAttrs: false,
1130
+ emits: ['update:activeIndex', 'update:visible'],
1131
+ container: null,
1132
+ mask: null,
1133
+ data: function data() {
1134
+ return {
1135
+ containerVisible: this.visible
1136
+ };
1137
+ },
1138
+ updated: function updated() {
1139
+ if (this.fullScreen && this.visible) {
1140
+ this.containerVisible = this.visible;
1141
+ }
1142
+ },
1143
+ beforeUnmount: function beforeUnmount() {
1144
+ if (this.fullScreen) {
1145
+ utils.DomHandler.removeClass(document.body, 'p-overflow-hidden');
1146
+ }
1147
+ this.mask = null;
1148
+ if (this.container) {
1149
+ utils.ZIndexUtils.clear(this.container);
1150
+ this.container = null;
1151
+ }
1152
+ },
1153
+ methods: {
1154
+ onBeforeEnter: function onBeforeEnter(el) {
1155
+ utils.ZIndexUtils.set('modal', el, this.baseZIndex || this.$primevue.config.zIndex.modal);
1161
1156
  },
1162
- container: null,
1163
- mask: null,
1164
- data() {
1165
- return {
1166
- containerVisible: this.visible
1167
- };
1157
+ onEnter: function onEnter(el) {
1158
+ this.mask.style.zIndex = String(parseInt(el.style.zIndex, 10) - 1);
1159
+ utils.DomHandler.addClass(document.body, 'p-overflow-hidden');
1160
+ this.focus();
1168
1161
  },
1169
- updated() {
1170
- if (this.fullScreen && this.visible) {
1171
- this.containerVisible = this.visible;
1172
- }
1162
+ onBeforeLeave: function onBeforeLeave() {
1163
+ !this.isUnstyled && utils.DomHandler.addClass(this.mask, 'p-component-overlay-leave');
1173
1164
  },
1174
- beforeUnmount() {
1175
- if (this.fullScreen) {
1176
- utils.DomHandler.removeClass(document.body, 'p-overflow-hidden');
1177
- }
1178
-
1179
- this.mask = null;
1180
-
1181
- if (this.container) {
1182
- utils.ZIndexUtils.clear(this.container);
1183
- this.container = null;
1184
- }
1165
+ onAfterLeave: function onAfterLeave(el) {
1166
+ utils.ZIndexUtils.clear(el);
1167
+ this.containerVisible = false;
1168
+ utils.DomHandler.removeClass(document.body, 'p-overflow-hidden');
1185
1169
  },
1186
- methods: {
1187
- onBeforeEnter(el) {
1188
- utils.ZIndexUtils.set('modal', el, this.baseZIndex || this.$primevue.config.zIndex.modal);
1189
- },
1190
- onEnter(el) {
1191
- this.mask.style.zIndex = String(parseInt(el.style.zIndex, 10) - 1);
1192
- utils.DomHandler.addClass(document.body, 'p-overflow-hidden');
1193
- this.focus();
1194
- },
1195
- onBeforeLeave() {
1196
- utils.DomHandler.addClass(this.mask, 'p-component-overlay-leave');
1197
- },
1198
- onAfterLeave(el) {
1199
- utils.ZIndexUtils.clear(el);
1200
- this.containerVisible = false;
1201
- utils.DomHandler.removeClass(document.body, 'p-overflow-hidden');
1202
- },
1203
- onActiveItemChange(index) {
1204
- if (this.activeIndex !== index) {
1205
- this.$emit('update:activeIndex', index);
1206
- }
1207
- },
1208
- maskHide() {
1209
- this.$emit('update:visible', false);
1210
- },
1211
- containerRef(el) {
1212
- this.container = el;
1213
- },
1214
- maskRef(el) {
1215
- this.mask = el;
1216
- },
1217
- focus() {
1218
- let focusTarget = this.container.$el.querySelector('[autofocus]');
1219
-
1220
- if (focusTarget) {
1221
- focusTarget.focus();
1222
- }
1223
- }
1170
+ onActiveItemChange: function onActiveItemChange(index) {
1171
+ if (this.activeIndex !== index) {
1172
+ this.$emit('update:activeIndex', index);
1173
+ }
1224
1174
  },
1225
- computed: {
1226
- maskContentClass() {
1227
- return [
1228
- 'p-galleria-mask p-component-overlay p-component-overlay-enter',
1229
- this.maskClass,
1230
- {
1231
- 'p-input-filled': this.$primevue.config.inputStyle === 'filled',
1232
- 'p-ripple-disabled': this.$primevue.config.ripple === false
1233
- }
1234
- ];
1235
- }
1175
+ maskHide: function maskHide() {
1176
+ this.$emit('update:visible', false);
1236
1177
  },
1237
- components: {
1238
- GalleriaContent: script$1,
1239
- Portal: Portal__default["default"]
1178
+ containerRef: function containerRef(el) {
1179
+ this.container = el;
1240
1180
  },
1241
- directives: {
1242
- focustrap: FocusTrap__default["default"]
1181
+ maskRef: function maskRef(el) {
1182
+ this.mask = el;
1183
+ },
1184
+ focus: function focus() {
1185
+ var focusTarget = this.container.$el.querySelector('[autofocus]');
1186
+ if (focusTarget) {
1187
+ focusTarget.focus();
1188
+ }
1243
1189
  }
1190
+ },
1191
+ components: {
1192
+ GalleriaContent: script$1,
1193
+ Portal: Portal__default["default"]
1194
+ },
1195
+ directives: {
1196
+ focustrap: FocusTrap__default["default"]
1197
+ }
1244
1198
  };
1245
1199
 
1246
- const _hoisted_1 = ["role", "aria-modal"];
1247
-
1200
+ var _hoisted_1 = ["role", "aria-modal"];
1248
1201
  function render(_ctx, _cache, $props, $setup, $data, $options) {
1249
- const _component_GalleriaContent = vue.resolveComponent("GalleriaContent");
1250
- const _component_Portal = vue.resolveComponent("Portal");
1251
- const _directive_focustrap = vue.resolveDirective("focustrap");
1252
-
1253
- return ($props.fullScreen)
1254
- ? (vue.openBlock(), vue.createBlock(_component_Portal, { key: 0 }, {
1255
- default: vue.withCtx(() => [
1256
- ($data.containerVisible)
1257
- ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
1258
- key: 0,
1259
- ref: $options.maskRef,
1260
- class: $options.maskContentClass,
1261
- role: $props.fullScreen ? 'dialog' : 'region',
1262
- "aria-modal": $props.fullScreen ? 'true' : undefined
1263
- }, _ctx.ptm('mask')), [
1264
- vue.createVNode(vue.Transition, {
1265
- name: "p-galleria",
1266
- onBeforeEnter: $options.onBeforeEnter,
1267
- onEnter: $options.onEnter,
1268
- onBeforeLeave: $options.onBeforeLeave,
1269
- onAfterLeave: $options.onAfterLeave,
1270
- appear: ""
1271
- }, {
1272
- default: vue.withCtx(() => [
1273
- ($props.visible)
1274
- ? vue.withDirectives((vue.openBlock(), vue.createBlock(_component_GalleriaContent, vue.mergeProps({
1275
- key: 0,
1276
- ref: $options.containerRef,
1277
- onMaskHide: $options.maskHide,
1278
- templates: _ctx.$slots,
1279
- onActiveitemChange: $options.onActiveItemChange,
1280
- pt: _ctx.pt
1281
- }, _ctx.$props), null, 16, ["onMaskHide", "templates", "onActiveitemChange", "pt"])), [
1282
- [_directive_focustrap]
1283
- ])
1284
- : vue.createCommentVNode("", true)
1285
- ]),
1286
- _: 1
1287
- }, 8, ["onBeforeEnter", "onEnter", "onBeforeLeave", "onAfterLeave"])
1288
- ], 16, _hoisted_1))
1289
- : vue.createCommentVNode("", true)
1290
- ]),
1202
+ var _component_GalleriaContent = vue.resolveComponent("GalleriaContent");
1203
+ var _component_Portal = vue.resolveComponent("Portal");
1204
+ var _directive_focustrap = vue.resolveDirective("focustrap");
1205
+ return _ctx.fullScreen ? (vue.openBlock(), vue.createBlock(_component_Portal, {
1206
+ key: 0
1207
+ }, {
1208
+ "default": vue.withCtx(function () {
1209
+ return [$data.containerVisible ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
1210
+ key: 0,
1211
+ ref: $options.maskRef,
1212
+ "class": [_ctx.cx('mask'), _ctx.maskClass],
1213
+ role: _ctx.fullScreen ? 'dialog' : 'region',
1214
+ "aria-modal": _ctx.fullScreen ? 'true' : undefined
1215
+ }, _ctx.ptm('mask')), [vue.createVNode(vue.Transition, {
1216
+ name: "p-galleria",
1217
+ onBeforeEnter: $options.onBeforeEnter,
1218
+ onEnter: $options.onEnter,
1219
+ onBeforeLeave: $options.onBeforeLeave,
1220
+ onAfterLeave: $options.onAfterLeave,
1221
+ appear: ""
1222
+ }, {
1223
+ "default": vue.withCtx(function () {
1224
+ return [_ctx.visible ? vue.withDirectives((vue.openBlock(), vue.createBlock(_component_GalleriaContent, vue.mergeProps({
1225
+ key: 0,
1226
+ ref: $options.containerRef,
1227
+ onMaskHide: $options.maskHide,
1228
+ templates: _ctx.$slots,
1229
+ onActiveitemChange: $options.onActiveItemChange,
1230
+ pt: _ctx.pt,
1231
+ unstyled: _ctx.unstyled
1232
+ }, _ctx.$props), null, 16, ["onMaskHide", "templates", "onActiveitemChange", "pt", "unstyled"])), [[_directive_focustrap]]) : vue.createCommentVNode("", true)];
1233
+ }),
1291
1234
  _: 1
1292
- }))
1293
- : (vue.openBlock(), vue.createBlock(_component_GalleriaContent, vue.mergeProps({
1294
- key: 1,
1295
- templates: _ctx.$slots,
1296
- onActiveitemChange: $options.onActiveItemChange,
1297
- pt: _ctx.pt
1298
- }, _ctx.$props), null, 16, ["templates", "onActiveitemChange", "pt"]))
1235
+ }, 8, ["onBeforeEnter", "onEnter", "onBeforeLeave", "onAfterLeave"])], 16, _hoisted_1)) : vue.createCommentVNode("", true)];
1236
+ }),
1237
+ _: 1
1238
+ })) : (vue.openBlock(), vue.createBlock(_component_GalleriaContent, vue.mergeProps({
1239
+ key: 1,
1240
+ templates: _ctx.$slots,
1241
+ onActiveitemChange: $options.onActiveItemChange,
1242
+ pt: _ctx.pt,
1243
+ unstyled: _ctx.unstyled
1244
+ }, _ctx.$props), null, 16, ["templates", "onActiveitemChange", "pt", "unstyled"]));
1299
1245
  }
1300
1246
 
1301
- function styleInject(css, ref) {
1302
- if ( ref === void 0 ) ref = {};
1303
- var insertAt = ref.insertAt;
1304
-
1305
- if (!css || typeof document === 'undefined') { return; }
1306
-
1307
- var head = document.head || document.getElementsByTagName('head')[0];
1308
- var style = document.createElement('style');
1309
- style.type = 'text/css';
1310
-
1311
- if (insertAt === 'top') {
1312
- if (head.firstChild) {
1313
- head.insertBefore(style, head.firstChild);
1314
- } else {
1315
- head.appendChild(style);
1316
- }
1317
- } else {
1318
- head.appendChild(style);
1319
- }
1320
-
1321
- if (style.styleSheet) {
1322
- style.styleSheet.cssText = css;
1323
- } else {
1324
- style.appendChild(document.createTextNode(css));
1325
- }
1326
- }
1327
-
1328
- var css_248z = "\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";
1329
- styleInject(css_248z);
1330
-
1331
1247
  script.render = render;
1332
1248
 
1333
1249
  return script;
1334
1250
 
1335
- })(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);
1251
+ })(primevue.focustrap, primevue.portal, primevue.utils, primevue.basecomponent, primevue.usestyle, primevue.icons.times, primevue.ripple, primevue.icons.chevronleft, primevue.icons.chevronright, Vue, primevue.icons.chevrondown, primevue.icons.chevronup);