primevue 3.29.2 → 3.30.0

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