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