primevue 3.29.2 → 3.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -9
- package/accordion/Accordion.d.ts +17 -0
- package/accordion/Accordion.vue +38 -92
- package/accordion/BaseAccordion.vue +93 -0
- package/accordion/accordion.cjs.js +340 -330
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.esm.js +339 -329
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +340 -331
- package/accordion/accordion.min.js +1 -1
- package/accordiontab/AccordionTab.d.ts +28 -0
- 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 +23 -2
- 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 +14 -0
- 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 +12 -0
- 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 +462 -12
- package/basecomponent/basecomponent.cjs.js +170 -36
- package/basecomponent/basecomponent.cjs.min.js +1 -1
- package/basecomponent/basecomponent.esm.js +170 -36
- package/basecomponent/basecomponent.esm.min.js +1 -1
- package/basecomponent/basecomponent.js +170 -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 +157 -0
- package/basedirective/basedirective.cjs.min.js +1 -0
- package/basedirective/basedirective.esm.js +155 -0
- package/basedirective/basedirective.esm.min.js +1 -0
- package/basedirective/basedirective.js +157 -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 +12 -0
- 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 +12 -0
- 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 +24 -0
- 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 +24 -12
- 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 +12 -0
- 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 +19 -7
- 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 +12 -0
- 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 +41 -0
- 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 +12 -0
- 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 +12 -0
- 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 +14 -2
- 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 +56 -29
- 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 +23 -0
- 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 +15 -1
- 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 +12 -0
- 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 +12 -0
- 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 +16 -0
- 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 +12138 -11708
- package/core/core.min.js +76 -70
- package/datatable/BaseDataTable.vue +740 -0
- package/datatable/BodyCell.vue +48 -35
- package/datatable/ColumnFilter.vue +74 -59
- package/datatable/DataTable.d.ts +31 -8
- package/datatable/DataTable.vue +82 -593
- package/datatable/FooterCell.vue +15 -11
- package/datatable/HeaderCell.vue +30 -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 +20 -9
- package/datatable/TableHeader.vue +32 -21
- package/datatable/datatable.cjs.js +5908 -5739
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +5908 -5739
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +5908 -5740
- package/datatable/datatable.min.js +1 -1
- package/dataview/BaseDataView.vue +100 -0
- package/dataview/DataView.d.ts +16 -0
- package/dataview/DataView.vue +13 -86
- package/dataview/dataview.cjs.js +291 -295
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.esm.js +290 -294
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +292 -296
- package/dataview/dataview.min.js +1 -1
- package/dataviewlayoutoptions/BaseDataViewLayoutOptions.vue +35 -0
- package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +12 -0
- 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 +12 -0
- 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 +12 -0
- 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 +12 -0
- 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 +12 -0
- 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 +17 -1
- 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 +57 -5
- 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 +12 -0
- 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 +12 -4
- 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 +12 -0
- 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 +12 -0
- 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 +12 -0
- 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 +12 -0
- 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 +12 -0
- 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 +17 -0
- 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 +15 -0
- package/inputtext/InputText.vue +10 -6
- package/inputtext/inputtext.cjs.js +58 -20
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.esm.js +58 -20
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +58 -20
- package/inputtext/inputtext.min.js +1 -1
- package/knob/BaseKnob.vue +114 -0
- package/knob/Knob.d.ts +12 -0
- 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 +12 -0
- 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 +16 -0
- 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 +12 -0
- 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 +16 -0
- 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 +12 -0
- 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 +12 -5
- 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 +12 -0
- package/orderlist/OrderList.vue +35 -156
- package/orderlist/orderlist.cjs.js +627 -686
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +626 -685
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +627 -687
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/BaseOrganizationChart.vue +111 -0
- package/organizationchart/OrganizationChart.d.ts +12 -0
- 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 +12 -0
- 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 +41 -5
- 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 +12 -0
- 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 +16 -0
- 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 +16 -0
- 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 +14 -2
- package/picklist/PickList.vue +46 -175
- package/picklist/picklist.cjs.js +1060 -1108
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +1059 -1107
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +1060 -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 +12 -0
- 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 +12 -0
- 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 +17 -0
- 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 +30 -1
- 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 +25 -1
- 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 +12 -0
- 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 +12 -0
- 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 +12 -0
- 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 +12 -0
- 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 +12 -0
- 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 +12 -0
- 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 +12 -0
- 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 +24 -2
- 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 +12 -0
- 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 +12 -0
- 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 +12 -0
- 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 +12 -0
- 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 +19 -0
- 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 +16 -0
- package/tabview/TabView.vue +53 -172
- package/tabview/tabview.cjs.js +459 -459
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.esm.js +458 -458
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +459 -460
- package/tabview/tabview.min.js +1 -1
- package/tag/BaseTag.vue +59 -0
- package/tag/Tag.d.ts +12 -0
- 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 +12 -0
- 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 +12 -0
- package/textarea/Textarea.vue +3 -18
- package/textarea/textarea.cjs.js +80 -79
- package/textarea/textarea.cjs.min.js +1 -1
- package/textarea/textarea.esm.js +80 -79
- package/textarea/textarea.esm.min.js +1 -1
- package/textarea/textarea.js +81 -81
- package/textarea/textarea.min.js +1 -1
- package/tieredmenu/BaseTieredMenu.vue +142 -0
- package/tieredmenu/TieredMenu.d.ts +16 -0
- 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 +11 -0
- package/timeline/Timeline.vue +9 -139
- package/timeline/timeline.cjs.js +87 -90
- package/timeline/timeline.cjs.min.js +1 -1
- package/timeline/timeline.esm.js +87 -90
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +87 -91
- package/timeline/timeline.min.js +1 -1
- package/toast/BaseToast.vue +181 -0
- package/toast/Toast.d.ts +12 -0
- 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 +12 -0
- 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 +12 -0
- 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 +32 -10
- 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 +19 -2
- 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 +30 -29
- package/treetable/FooterCell.vue +15 -11
- package/treetable/HeaderCell.vue +26 -21
- package/treetable/TreeTable.d.ts +29 -4
- package/treetable/TreeTable.vue +37 -379
- package/treetable/TreeTableRow.vue +9 -11
- package/treetable/treetable.cjs.js +2104 -2129
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +2104 -2129
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +2104 -2130
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/BaseTriStateCheckbox.vue +65 -0
- package/tristatecheckbox/TriStateCheckbox.d.ts +33 -6
- 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 +19 -0
- package/usestyle/package.json +6 -0
- package/usestyle/usestyle.cjs.js +73 -0
- package/usestyle/usestyle.cjs.min.js +1 -0
- package/usestyle/usestyle.esm.js +69 -0
- package/usestyle/usestyle.esm.min.js +1 -0
- package/usestyle/usestyle.js +76 -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 +12 -1
- package/utils/utils.cjs.js +958 -996
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +958 -996
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +958 -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 +22 -5
- 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/carousel/carousel.esm.js
CHANGED
|
@@ -1,774 +1,742 @@
|
|
|
1
|
-
import BaseComponent from 'primevue/basecomponent';
|
|
2
1
|
import ChevronDownIcon from 'primevue/icons/chevrondown';
|
|
3
2
|
import ChevronLeftIcon from 'primevue/icons/chevronleft';
|
|
4
3
|
import ChevronRightIcon from 'primevue/icons/chevronright';
|
|
5
4
|
import ChevronUpIcon from 'primevue/icons/chevronup';
|
|
6
5
|
import Ripple from 'primevue/ripple';
|
|
7
6
|
import { DomHandler, UniqueComponentId } from 'primevue/utils';
|
|
7
|
+
import BaseComponent from 'primevue/basecomponent';
|
|
8
|
+
import { useStyle } from 'primevue/usestyle';
|
|
8
9
|
import { resolveDirective, openBlock, createElementBlock, mergeProps, renderSlot, createCommentVNode, createElementVNode, withDirectives, createBlock, resolveDynamicComponent, Fragment, renderList } from 'vue';
|
|
9
10
|
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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
|
-
|
|
11
|
+
var styles = "\n.p-carousel {\n display: flex;\n flex-direction: column;\n}\n\n.p-carousel-content {\n display: flex;\n flex-direction: column;\n overflow: auto;\n}\n\n.p-carousel-prev,\n.p-carousel-next {\n align-self: center;\n flex-grow: 0;\n flex-shrink: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n position: relative;\n}\n\n.p-carousel-container {\n display: flex;\n flex-direction: row;\n}\n\n.p-carousel-items-content {\n overflow: hidden;\n width: 100%;\n}\n\n.p-carousel-items-container {\n display: flex;\n flex-direction: row;\n}\n\n.p-carousel-indicators {\n display: flex;\n flex-direction: row;\n justify-content: center;\n flex-wrap: wrap;\n}\n\n.p-carousel-indicator > button {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n/* Vertical */\n.p-carousel-vertical .p-carousel-container {\n flex-direction: column;\n}\n\n.p-carousel-vertical .p-carousel-items-container {\n flex-direction: column;\n height: 100%;\n}\n\n/* Keyboard Support */\n.p-items-hidden .p-carousel-item {\n visibility: hidden;\n}\n\n.p-items-hidden .p-carousel-item.p-carousel-item-active {\n visibility: visible;\n}\n";
|
|
12
|
+
var classes = {
|
|
13
|
+
root: function root(_ref) {
|
|
14
|
+
var instance = _ref.instance;
|
|
15
|
+
return ['p-carousel p-component', {
|
|
16
|
+
'p-carousel-vertical': instance.isVertical(),
|
|
17
|
+
'p-carousel-horizontal': !instance.isVertical()
|
|
18
|
+
}];
|
|
19
|
+
},
|
|
20
|
+
header: 'p-carousel-header',
|
|
21
|
+
content: 'p-carousel-content',
|
|
22
|
+
container: 'p-carousel-container',
|
|
23
|
+
previousButton: function previousButton(_ref2) {
|
|
24
|
+
var instance = _ref2.instance;
|
|
25
|
+
return ['p-carousel-prev p-link', {
|
|
26
|
+
'p-disabled': instance.backwardIsDisabled
|
|
27
|
+
}];
|
|
28
|
+
},
|
|
29
|
+
previousButtonIcon: 'p-carousel-next-icon',
|
|
30
|
+
itemsContent: 'p-carousel-items-content',
|
|
31
|
+
itemsContainer: 'p-carousel-items-container',
|
|
32
|
+
itemCloned: function itemCloned(_ref3) {
|
|
33
|
+
var index = _ref3.index,
|
|
34
|
+
value = _ref3.value,
|
|
35
|
+
totalShiftedItems = _ref3.totalShiftedItems,
|
|
36
|
+
d_numVisible = _ref3.d_numVisible;
|
|
37
|
+
return ['p-carousel-item p-carousel-item-cloned', {
|
|
38
|
+
'p-carousel-item-active': totalShiftedItems * -1 === value.length + d_numVisible,
|
|
39
|
+
'p-carousel-item-start': index === 0,
|
|
40
|
+
'p-carousel-item-end': value.slice(-1 * d_numVisible).length - 1 === index
|
|
41
|
+
}];
|
|
42
|
+
},
|
|
43
|
+
item: function item(_ref4) {
|
|
44
|
+
var instance = _ref4.instance,
|
|
45
|
+
index = _ref4.index;
|
|
46
|
+
return ['p-carousel-item', {
|
|
47
|
+
'p-carousel-item-active': instance.firstIndex() <= index && instance.lastIndex() >= index,
|
|
48
|
+
'p-carousel-item-start': instance.firstIndex() === index,
|
|
49
|
+
'p-carousel-item-end': instance.lastIndex() === index
|
|
50
|
+
}];
|
|
51
|
+
},
|
|
52
|
+
nextButton: function nextButton(_ref5) {
|
|
53
|
+
var instance = _ref5.instance;
|
|
54
|
+
return ['p-carousel-next p-link', {
|
|
55
|
+
'p-disabled': instance.forwardIsDisabled
|
|
56
|
+
}];
|
|
57
|
+
},
|
|
58
|
+
nextButtonIcon: 'p-carousel-prev-icon',
|
|
59
|
+
indicators: 'p-carousel-indicators p-reset',
|
|
60
|
+
indicator: function indicator(_ref6) {
|
|
61
|
+
var instance = _ref6.instance,
|
|
62
|
+
index = _ref6.index;
|
|
63
|
+
return ['p-carousel-indicator', {
|
|
64
|
+
'p-highlight': instance.d_page === index
|
|
65
|
+
}];
|
|
66
|
+
},
|
|
67
|
+
indicatorButton: 'p-link',
|
|
68
|
+
footer: 'p-carousel-footer'
|
|
69
|
+
};
|
|
70
|
+
var _useStyle = useStyle(styles, {
|
|
71
|
+
name: 'carousel',
|
|
72
|
+
manual: true
|
|
73
|
+
}),
|
|
74
|
+
loadStyle = _useStyle.load;
|
|
75
|
+
var script$1 = {
|
|
76
|
+
name: 'BaseCarousel',
|
|
77
|
+
"extends": BaseComponent,
|
|
78
|
+
props: {
|
|
79
|
+
value: null,
|
|
80
|
+
page: {
|
|
81
|
+
type: Number,
|
|
82
|
+
"default": 0
|
|
64
83
|
},
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
remainingItems: 0,
|
|
69
|
-
d_numVisible: this.numVisible,
|
|
70
|
-
d_numScroll: this.numScroll,
|
|
71
|
-
d_oldNumScroll: 0,
|
|
72
|
-
d_oldNumVisible: 0,
|
|
73
|
-
d_oldValue: null,
|
|
74
|
-
d_page: this.page,
|
|
75
|
-
totalShiftedItems: this.page * this.numScroll * -1,
|
|
76
|
-
allowAutoplay: !!this.autoplayInterval,
|
|
77
|
-
d_circular: this.circular || this.allowAutoplay,
|
|
78
|
-
swipeThreshold: 20
|
|
79
|
-
};
|
|
84
|
+
numVisible: {
|
|
85
|
+
type: Number,
|
|
86
|
+
"default": 1
|
|
80
87
|
},
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
},
|
|
85
|
-
circular(newValue) {
|
|
86
|
-
this.d_circular = newValue;
|
|
87
|
-
},
|
|
88
|
-
numVisible(newValue, oldValue) {
|
|
89
|
-
this.d_numVisible = newValue;
|
|
90
|
-
this.d_oldNumVisible = oldValue;
|
|
91
|
-
},
|
|
92
|
-
numScroll(newValue, oldValue) {
|
|
93
|
-
this.d_oldNumScroll = oldValue;
|
|
94
|
-
this.d_numScroll = newValue;
|
|
95
|
-
},
|
|
96
|
-
value(oldValue) {
|
|
97
|
-
this.d_oldValue = oldValue;
|
|
98
|
-
}
|
|
88
|
+
numScroll: {
|
|
89
|
+
type: Number,
|
|
90
|
+
"default": 1
|
|
99
91
|
},
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
92
|
+
responsiveOptions: Array,
|
|
93
|
+
orientation: {
|
|
94
|
+
type: String,
|
|
95
|
+
"default": 'horizontal'
|
|
96
|
+
},
|
|
97
|
+
verticalViewPortHeight: {
|
|
98
|
+
type: String,
|
|
99
|
+
"default": '300px'
|
|
100
|
+
},
|
|
101
|
+
contentClass: String,
|
|
102
|
+
containerClass: String,
|
|
103
|
+
indicatorsContentClass: String,
|
|
104
|
+
circular: {
|
|
105
|
+
type: Boolean,
|
|
106
|
+
"default": false
|
|
107
|
+
},
|
|
108
|
+
autoplayInterval: {
|
|
109
|
+
type: Number,
|
|
110
|
+
"default": 0
|
|
111
|
+
},
|
|
112
|
+
showNavigators: {
|
|
113
|
+
type: Boolean,
|
|
114
|
+
"default": true
|
|
115
|
+
},
|
|
116
|
+
showIndicators: {
|
|
117
|
+
type: Boolean,
|
|
118
|
+
"default": true
|
|
119
|
+
},
|
|
120
|
+
prevButtonProps: {
|
|
121
|
+
type: null,
|
|
122
|
+
"default": null
|
|
123
|
+
},
|
|
124
|
+
nextButtonProps: {
|
|
125
|
+
type: null,
|
|
126
|
+
"default": null
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
css: {
|
|
130
|
+
classes: classes,
|
|
131
|
+
loadStyle: loadStyle
|
|
132
|
+
},
|
|
133
|
+
provide: function provide() {
|
|
134
|
+
return {
|
|
135
|
+
$parentInstance: this
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
};
|
|
106
139
|
|
|
107
|
-
|
|
108
|
-
|
|
140
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
141
|
+
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."); }
|
|
142
|
+
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); }
|
|
143
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
144
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
145
|
+
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; }
|
|
146
|
+
var script = {
|
|
147
|
+
name: 'Carousel',
|
|
148
|
+
"extends": script$1,
|
|
149
|
+
emits: ['update:page'],
|
|
150
|
+
isRemainingItemsAdded: false,
|
|
151
|
+
data: function data() {
|
|
152
|
+
return {
|
|
153
|
+
remainingItems: 0,
|
|
154
|
+
d_numVisible: this.numVisible,
|
|
155
|
+
d_numScroll: this.numScroll,
|
|
156
|
+
d_oldNumScroll: 0,
|
|
157
|
+
d_oldNumVisible: 0,
|
|
158
|
+
d_oldValue: null,
|
|
159
|
+
d_page: this.page,
|
|
160
|
+
totalShiftedItems: this.page * this.numScroll * -1,
|
|
161
|
+
allowAutoplay: !!this.autoplayInterval,
|
|
162
|
+
d_circular: this.circular || this.allowAutoplay,
|
|
163
|
+
swipeThreshold: 20
|
|
164
|
+
};
|
|
165
|
+
},
|
|
166
|
+
watch: {
|
|
167
|
+
page: function page(newValue) {
|
|
168
|
+
this.d_page = newValue;
|
|
169
|
+
},
|
|
170
|
+
circular: function circular(newValue) {
|
|
171
|
+
this.d_circular = newValue;
|
|
172
|
+
},
|
|
173
|
+
numVisible: function numVisible(newValue, oldValue) {
|
|
174
|
+
this.d_numVisible = newValue;
|
|
175
|
+
this.d_oldNumVisible = oldValue;
|
|
176
|
+
},
|
|
177
|
+
numScroll: function numScroll(newValue, oldValue) {
|
|
178
|
+
this.d_oldNumScroll = oldValue;
|
|
179
|
+
this.d_numScroll = newValue;
|
|
180
|
+
},
|
|
181
|
+
value: function value(oldValue) {
|
|
182
|
+
this.d_oldValue = oldValue;
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
mounted: function mounted() {
|
|
186
|
+
var stateChanged = false;
|
|
187
|
+
this.$el.setAttribute(this.attributeSelector, '');
|
|
188
|
+
this.createStyle();
|
|
189
|
+
this.calculatePosition();
|
|
190
|
+
if (this.responsiveOptions) {
|
|
191
|
+
this.bindDocumentListeners();
|
|
192
|
+
}
|
|
193
|
+
if (this.isCircular()) {
|
|
194
|
+
var totalShiftedItems = this.totalShiftedItems;
|
|
195
|
+
if (this.d_page === 0) {
|
|
196
|
+
totalShiftedItems = -1 * this.d_numVisible;
|
|
197
|
+
} else if (totalShiftedItems === 0) {
|
|
198
|
+
totalShiftedItems = -1 * this.value.length;
|
|
199
|
+
if (this.remainingItems > 0) {
|
|
200
|
+
this.isRemainingItemsAdded = true;
|
|
109
201
|
}
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
202
|
+
}
|
|
203
|
+
if (totalShiftedItems !== this.totalShiftedItems) {
|
|
204
|
+
this.totalShiftedItems = totalShiftedItems;
|
|
205
|
+
stateChanged = true;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
if (!stateChanged && this.isAutoplay()) {
|
|
209
|
+
this.startAutoplay();
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
updated: function updated() {
|
|
213
|
+
var isCircular = this.isCircular();
|
|
214
|
+
var stateChanged = false;
|
|
215
|
+
var totalShiftedItems = this.totalShiftedItems;
|
|
216
|
+
if (this.autoplayInterval) {
|
|
217
|
+
this.stopAutoplay();
|
|
218
|
+
}
|
|
219
|
+
if (this.d_oldNumScroll !== this.d_numScroll || this.d_oldNumVisible !== this.d_numVisible || this.d_oldValue.length !== this.value.length) {
|
|
220
|
+
this.remainingItems = (this.value.length - this.d_numVisible) % this.d_numScroll;
|
|
221
|
+
var page = this.d_page;
|
|
222
|
+
if (this.totalIndicators !== 0 && page >= this.totalIndicators) {
|
|
223
|
+
page = this.totalIndicators - 1;
|
|
224
|
+
this.$emit('update:page', page);
|
|
225
|
+
this.d_page = page;
|
|
226
|
+
stateChanged = true;
|
|
227
|
+
}
|
|
228
|
+
totalShiftedItems = page * this.d_numScroll * -1;
|
|
229
|
+
if (isCircular) {
|
|
230
|
+
totalShiftedItems -= this.d_numVisible;
|
|
231
|
+
}
|
|
232
|
+
if (page === this.totalIndicators - 1 && this.remainingItems > 0) {
|
|
233
|
+
totalShiftedItems += -1 * this.remainingItems + this.d_numScroll;
|
|
234
|
+
this.isRemainingItemsAdded = true;
|
|
235
|
+
} else {
|
|
236
|
+
this.isRemainingItemsAdded = false;
|
|
237
|
+
}
|
|
238
|
+
if (totalShiftedItems !== this.totalShiftedItems) {
|
|
239
|
+
this.totalShiftedItems = totalShiftedItems;
|
|
240
|
+
stateChanged = true;
|
|
241
|
+
}
|
|
242
|
+
this.d_oldNumScroll = this.d_numScroll;
|
|
243
|
+
this.d_oldNumVisible = this.d_numVisible;
|
|
244
|
+
this.d_oldValue = this.value;
|
|
245
|
+
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)");
|
|
246
|
+
}
|
|
247
|
+
if (isCircular) {
|
|
248
|
+
if (this.d_page === 0) {
|
|
249
|
+
totalShiftedItems = -1 * this.d_numVisible;
|
|
250
|
+
} else if (totalShiftedItems === 0) {
|
|
251
|
+
totalShiftedItems = -1 * this.value.length;
|
|
252
|
+
if (this.remainingItems > 0) {
|
|
253
|
+
this.isRemainingItemsAdded = true;
|
|
129
254
|
}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
255
|
+
}
|
|
256
|
+
if (totalShiftedItems !== this.totalShiftedItems) {
|
|
257
|
+
this.totalShiftedItems = totalShiftedItems;
|
|
258
|
+
stateChanged = true;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
if (!stateChanged && this.isAutoplay()) {
|
|
262
|
+
this.startAutoplay();
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
beforeUnmount: function beforeUnmount() {
|
|
266
|
+
if (this.responsiveOptions) {
|
|
267
|
+
this.unbindDocumentListeners();
|
|
268
|
+
}
|
|
269
|
+
if (this.autoplayInterval) {
|
|
270
|
+
this.stopAutoplay();
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
methods: {
|
|
274
|
+
step: function step(dir, page) {
|
|
275
|
+
var totalShiftedItems = this.totalShiftedItems;
|
|
276
|
+
var isCircular = this.isCircular();
|
|
277
|
+
if (page != null) {
|
|
278
|
+
totalShiftedItems = this.d_numScroll * page * -1;
|
|
279
|
+
if (isCircular) {
|
|
280
|
+
totalShiftedItems -= this.d_numVisible;
|
|
281
|
+
}
|
|
282
|
+
this.isRemainingItemsAdded = false;
|
|
283
|
+
} else {
|
|
284
|
+
totalShiftedItems += this.d_numScroll * dir;
|
|
285
|
+
if (this.isRemainingItemsAdded) {
|
|
286
|
+
totalShiftedItems += this.remainingItems - this.d_numScroll * dir;
|
|
287
|
+
this.isRemainingItemsAdded = false;
|
|
133
288
|
}
|
|
289
|
+
var originalShiftedItems = isCircular ? totalShiftedItems + this.d_numVisible : totalShiftedItems;
|
|
290
|
+
page = Math.abs(Math.floor(originalShiftedItems / this.d_numScroll));
|
|
291
|
+
}
|
|
292
|
+
if (isCircular && this.d_page === this.totalIndicators - 1 && dir === -1) {
|
|
293
|
+
totalShiftedItems = -1 * (this.value.length + this.d_numVisible);
|
|
294
|
+
page = 0;
|
|
295
|
+
} else if (isCircular && this.d_page === 0 && dir === 1) {
|
|
296
|
+
totalShiftedItems = 0;
|
|
297
|
+
page = this.totalIndicators - 1;
|
|
298
|
+
} else if (page === this.totalIndicators - 1 && this.remainingItems > 0) {
|
|
299
|
+
totalShiftedItems += this.remainingItems * -1 - this.d_numScroll * dir;
|
|
300
|
+
this.isRemainingItemsAdded = true;
|
|
301
|
+
}
|
|
302
|
+
if (this.$refs.itemsContainer) {
|
|
303
|
+
!this.isUnstyled && DomHandler.removeClass(this.$refs.itemsContainer, 'p-items-hidden');
|
|
304
|
+
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)");
|
|
305
|
+
this.$refs.itemsContainer.style.transition = 'transform 500ms ease 0s';
|
|
306
|
+
}
|
|
307
|
+
this.totalShiftedItems = totalShiftedItems;
|
|
308
|
+
this.$emit('update:page', page);
|
|
309
|
+
this.d_page = page;
|
|
134
310
|
},
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
311
|
+
calculatePosition: function calculatePosition() {
|
|
312
|
+
if (this.$refs.itemsContainer && this.responsiveOptions) {
|
|
313
|
+
var windowWidth = window.innerWidth;
|
|
314
|
+
var matchedResponsiveOptionsData = {
|
|
315
|
+
numVisible: this.numVisible,
|
|
316
|
+
numScroll: this.numScroll
|
|
317
|
+
};
|
|
318
|
+
for (var i = 0; i < this.responsiveOptions.length; i++) {
|
|
319
|
+
var res = this.responsiveOptions[i];
|
|
320
|
+
if (parseInt(res.breakpoint, 10) >= windowWidth) {
|
|
321
|
+
matchedResponsiveOptionsData = res;
|
|
322
|
+
}
|
|
142
323
|
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
this.d_page = page;
|
|
154
|
-
|
|
155
|
-
stateChanged = true;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
totalShiftedItems = page * this.d_numScroll * -1;
|
|
159
|
-
|
|
160
|
-
if (isCircular) {
|
|
161
|
-
totalShiftedItems -= this.d_numVisible;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
if (page === this.totalIndicators - 1 && this.remainingItems > 0) {
|
|
165
|
-
totalShiftedItems += -1 * this.remainingItems + this.d_numScroll;
|
|
166
|
-
this.isRemainingItemsAdded = true;
|
|
167
|
-
} else {
|
|
168
|
-
this.isRemainingItemsAdded = false;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
if (totalShiftedItems !== this.totalShiftedItems) {
|
|
172
|
-
this.totalShiftedItems = totalShiftedItems;
|
|
173
|
-
|
|
174
|
-
stateChanged = true;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
this.d_oldNumScroll = this.d_numScroll;
|
|
178
|
-
this.d_oldNumVisible = this.d_numVisible;
|
|
179
|
-
this.d_oldValue = this.value;
|
|
180
|
-
|
|
181
|
-
this.$refs.itemsContainer.style.transform = this.isVertical() ? `translate3d(0, ${totalShiftedItems * (100 / this.d_numVisible)}%, 0)` : `translate3d(${totalShiftedItems * (100 / this.d_numVisible)}%, 0, 0)`;
|
|
324
|
+
if (this.d_numScroll !== matchedResponsiveOptionsData.numScroll) {
|
|
325
|
+
var page = this.d_page;
|
|
326
|
+
page = parseInt(page * this.d_numScroll / matchedResponsiveOptionsData.numScroll);
|
|
327
|
+
this.totalShiftedItems = matchedResponsiveOptionsData.numScroll * page * -1;
|
|
328
|
+
if (this.isCircular()) {
|
|
329
|
+
this.totalShiftedItems -= matchedResponsiveOptionsData.numVisible;
|
|
330
|
+
}
|
|
331
|
+
this.d_numScroll = matchedResponsiveOptionsData.numScroll;
|
|
332
|
+
this.$emit('update:page', page);
|
|
333
|
+
this.d_page = page;
|
|
182
334
|
}
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
if (this.d_page === 0) {
|
|
186
|
-
totalShiftedItems = -1 * this.d_numVisible;
|
|
187
|
-
} else if (totalShiftedItems === 0) {
|
|
188
|
-
totalShiftedItems = -1 * this.value.length;
|
|
189
|
-
|
|
190
|
-
if (this.remainingItems > 0) {
|
|
191
|
-
this.isRemainingItemsAdded = true;
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
if (totalShiftedItems !== this.totalShiftedItems) {
|
|
196
|
-
this.totalShiftedItems = totalShiftedItems;
|
|
197
|
-
|
|
198
|
-
stateChanged = true;
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
if (!stateChanged && this.isAutoplay()) {
|
|
203
|
-
this.startAutoplay();
|
|
335
|
+
if (this.d_numVisible !== matchedResponsiveOptionsData.numVisible) {
|
|
336
|
+
this.d_numVisible = matchedResponsiveOptionsData.numVisible;
|
|
204
337
|
}
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
navBackward: function navBackward(e, index) {
|
|
341
|
+
if (this.d_circular || this.d_page !== 0) {
|
|
342
|
+
this.step(1, index);
|
|
343
|
+
}
|
|
344
|
+
this.allowAutoplay = false;
|
|
345
|
+
if (e.cancelable) {
|
|
346
|
+
e.preventDefault();
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
navForward: function navForward(e, index) {
|
|
350
|
+
if (this.d_circular || this.d_page < this.totalIndicators - 1) {
|
|
351
|
+
this.step(-1, index);
|
|
352
|
+
}
|
|
353
|
+
this.allowAutoplay = false;
|
|
354
|
+
if (e.cancelable) {
|
|
355
|
+
e.preventDefault();
|
|
356
|
+
}
|
|
205
357
|
},
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
358
|
+
onIndicatorClick: function onIndicatorClick(e, index) {
|
|
359
|
+
var page = this.d_page;
|
|
360
|
+
if (index > page) {
|
|
361
|
+
this.navForward(e, index);
|
|
362
|
+
} else if (index < page) {
|
|
363
|
+
this.navBackward(e, index);
|
|
364
|
+
}
|
|
365
|
+
},
|
|
366
|
+
onTransitionEnd: function onTransitionEnd() {
|
|
367
|
+
if (this.$refs.itemsContainer) {
|
|
368
|
+
!this.isUnstyled && DomHandler.addClass(this.$refs.itemsContainer, 'p-items-hidden');
|
|
369
|
+
this.$refs.itemsContainer.style.transition = '';
|
|
370
|
+
if ((this.d_page === 0 || this.d_page === this.totalIndicators - 1) && this.isCircular()) {
|
|
371
|
+
this.$refs.itemsContainer.style.transform = this.isVertical() ? "translate3d(0, ".concat(this.totalShiftedItems * (100 / this.d_numVisible), "%, 0)") : "translate3d(".concat(this.totalShiftedItems * (100 / this.d_numVisible), "%, 0, 0)");
|
|
209
372
|
}
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
373
|
+
}
|
|
374
|
+
},
|
|
375
|
+
onTouchStart: function onTouchStart(e) {
|
|
376
|
+
var touchobj = e.changedTouches[0];
|
|
377
|
+
this.startPos = {
|
|
378
|
+
x: touchobj.pageX,
|
|
379
|
+
y: touchobj.pageY
|
|
380
|
+
};
|
|
381
|
+
},
|
|
382
|
+
onTouchMove: function onTouchMove(e) {
|
|
383
|
+
if (e.cancelable) {
|
|
384
|
+
e.preventDefault();
|
|
385
|
+
}
|
|
386
|
+
},
|
|
387
|
+
onTouchEnd: function onTouchEnd(e) {
|
|
388
|
+
var touchobj = e.changedTouches[0];
|
|
389
|
+
if (this.isVertical()) {
|
|
390
|
+
this.changePageOnTouch(e, touchobj.pageY - this.startPos.y);
|
|
391
|
+
} else {
|
|
392
|
+
this.changePageOnTouch(e, touchobj.pageX - this.startPos.x);
|
|
393
|
+
}
|
|
394
|
+
},
|
|
395
|
+
changePageOnTouch: function changePageOnTouch(e, diff) {
|
|
396
|
+
if (Math.abs(diff) > this.swipeThreshold) {
|
|
397
|
+
if (diff < 0) {
|
|
398
|
+
// left
|
|
399
|
+
this.navForward(e);
|
|
400
|
+
} else {
|
|
401
|
+
// right
|
|
402
|
+
this.navBackward(e);
|
|
213
403
|
}
|
|
404
|
+
}
|
|
214
405
|
},
|
|
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
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
this.allowAutoplay = false;
|
|
307
|
-
|
|
308
|
-
if (e.cancelable) {
|
|
309
|
-
e.preventDefault();
|
|
310
|
-
}
|
|
311
|
-
},
|
|
312
|
-
navForward(e, index) {
|
|
313
|
-
if (this.d_circular || this.d_page < this.totalIndicators - 1) {
|
|
314
|
-
this.step(-1, index);
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
this.allowAutoplay = false;
|
|
318
|
-
|
|
319
|
-
if (e.cancelable) {
|
|
320
|
-
e.preventDefault();
|
|
321
|
-
}
|
|
322
|
-
},
|
|
323
|
-
onIndicatorClick(e, index) {
|
|
324
|
-
let page = this.d_page;
|
|
325
|
-
|
|
326
|
-
if (index > page) {
|
|
327
|
-
this.navForward(e, index);
|
|
328
|
-
} else if (index < page) {
|
|
329
|
-
this.navBackward(e, index);
|
|
330
|
-
}
|
|
331
|
-
},
|
|
332
|
-
onTransitionEnd() {
|
|
333
|
-
if (this.$refs.itemsContainer) {
|
|
334
|
-
DomHandler.addClass(this.$refs.itemsContainer, 'p-items-hidden');
|
|
335
|
-
this.$refs.itemsContainer.style.transition = '';
|
|
336
|
-
|
|
337
|
-
if ((this.d_page === 0 || this.d_page === this.totalIndicators - 1) && this.isCircular()) {
|
|
338
|
-
this.$refs.itemsContainer.style.transform = this.isVertical() ? `translate3d(0, ${this.totalShiftedItems * (100 / this.d_numVisible)}%, 0)` : `translate3d(${this.totalShiftedItems * (100 / this.d_numVisible)}%, 0, 0)`;
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
},
|
|
342
|
-
onTouchStart(e) {
|
|
343
|
-
let touchobj = e.changedTouches[0];
|
|
344
|
-
|
|
345
|
-
this.startPos = {
|
|
346
|
-
x: touchobj.pageX,
|
|
347
|
-
y: touchobj.pageY
|
|
348
|
-
};
|
|
349
|
-
},
|
|
350
|
-
onTouchMove(e) {
|
|
351
|
-
if (e.cancelable) {
|
|
352
|
-
e.preventDefault();
|
|
353
|
-
}
|
|
354
|
-
},
|
|
355
|
-
onTouchEnd(e) {
|
|
356
|
-
let touchobj = e.changedTouches[0];
|
|
357
|
-
|
|
358
|
-
if (this.isVertical()) {
|
|
359
|
-
this.changePageOnTouch(e, touchobj.pageY - this.startPos.y);
|
|
360
|
-
} else {
|
|
361
|
-
this.changePageOnTouch(e, touchobj.pageX - this.startPos.x);
|
|
362
|
-
}
|
|
363
|
-
},
|
|
364
|
-
changePageOnTouch(e, diff) {
|
|
365
|
-
if (Math.abs(diff) > this.swipeThreshold) {
|
|
366
|
-
if (diff < 0) {
|
|
367
|
-
// left
|
|
368
|
-
this.navForward(e);
|
|
369
|
-
} else {
|
|
370
|
-
// right
|
|
371
|
-
this.navBackward(e);
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
},
|
|
375
|
-
onIndicatorKeydown(event) {
|
|
376
|
-
switch (event.code) {
|
|
377
|
-
case 'ArrowRight':
|
|
378
|
-
this.onRightKey();
|
|
379
|
-
break;
|
|
380
|
-
|
|
381
|
-
case 'ArrowLeft':
|
|
382
|
-
this.onLeftKey();
|
|
383
|
-
break;
|
|
384
|
-
|
|
385
|
-
case 'Home':
|
|
386
|
-
this.onHomeKey();
|
|
387
|
-
event.preventDefault();
|
|
388
|
-
break;
|
|
389
|
-
|
|
390
|
-
case 'End':
|
|
391
|
-
this.onEndKey();
|
|
392
|
-
event.preventDefault();
|
|
393
|
-
break;
|
|
394
|
-
|
|
395
|
-
case 'ArrowUp':
|
|
396
|
-
case 'ArrowDown':
|
|
397
|
-
event.preventDefault();
|
|
398
|
-
break;
|
|
399
|
-
|
|
400
|
-
case 'Tab':
|
|
401
|
-
this.onTabKey();
|
|
402
|
-
break;
|
|
403
|
-
}
|
|
404
|
-
},
|
|
405
|
-
onRightKey() {
|
|
406
|
-
const indicators = [...DomHandler.find(this.$refs.indicatorContent, '.p-carousel-indicator')];
|
|
407
|
-
const activeIndex = this.findFocusedIndicatorIndex();
|
|
408
|
-
|
|
409
|
-
this.changedFocusedIndicator(activeIndex, activeIndex + 1 === indicators.length ? indicators.length - 1 : activeIndex + 1);
|
|
410
|
-
},
|
|
411
|
-
onLeftKey() {
|
|
412
|
-
const activeIndex = this.findFocusedIndicatorIndex();
|
|
413
|
-
|
|
414
|
-
this.changedFocusedIndicator(activeIndex, activeIndex - 1 <= 0 ? 0 : activeIndex - 1);
|
|
415
|
-
},
|
|
416
|
-
onHomeKey() {
|
|
417
|
-
const activeIndex = this.findFocusedIndicatorIndex();
|
|
418
|
-
|
|
419
|
-
this.changedFocusedIndicator(activeIndex, 0);
|
|
420
|
-
},
|
|
421
|
-
onEndKey() {
|
|
422
|
-
const indicators = [...DomHandler.find(this.$refs.indicatorContent, '.p-carousel-indicator')];
|
|
423
|
-
const activeIndex = this.findFocusedIndicatorIndex();
|
|
424
|
-
|
|
425
|
-
this.changedFocusedIndicator(activeIndex, indicators.length - 1);
|
|
426
|
-
},
|
|
427
|
-
onTabKey() {
|
|
428
|
-
const indicators = [...DomHandler.find(this.$refs.indicatorContent, '.p-carousel-indicator')];
|
|
429
|
-
const highlightedIndex = indicators.findIndex((ind) => DomHandler.hasClass(ind, 'p-highlight'));
|
|
430
|
-
|
|
431
|
-
const activeIndicator = DomHandler.findSingle(this.$refs.indicatorContent, '.p-carousel-indicator > button[tabindex="0"]');
|
|
432
|
-
const activeIndex = indicators.findIndex((ind) => ind === activeIndicator.parentElement);
|
|
433
|
-
|
|
434
|
-
indicators[activeIndex].children[0].tabIndex = '-1';
|
|
435
|
-
indicators[highlightedIndex].children[0].tabIndex = '0';
|
|
436
|
-
},
|
|
437
|
-
findFocusedIndicatorIndex() {
|
|
438
|
-
const indicators = [...DomHandler.find(this.$refs.indicatorContent, '.p-carousel-indicator')];
|
|
439
|
-
const activeIndicator = DomHandler.findSingle(this.$refs.indicatorContent, '.p-carousel-indicator > button[tabindex="0"]');
|
|
440
|
-
|
|
441
|
-
return indicators.findIndex((ind) => ind === activeIndicator.parentElement);
|
|
442
|
-
},
|
|
443
|
-
changedFocusedIndicator(prevInd, nextInd) {
|
|
444
|
-
const indicators = [...DomHandler.find(this.$refs.indicatorContent, '.p-carousel-indicator')];
|
|
445
|
-
|
|
446
|
-
indicators[prevInd].children[0].tabIndex = '-1';
|
|
447
|
-
indicators[nextInd].children[0].tabIndex = '0';
|
|
448
|
-
indicators[nextInd].children[0].focus();
|
|
449
|
-
},
|
|
450
|
-
bindDocumentListeners() {
|
|
451
|
-
if (!this.documentResizeListener) {
|
|
452
|
-
this.documentResizeListener = (e) => {
|
|
453
|
-
this.calculatePosition(e);
|
|
454
|
-
};
|
|
455
|
-
|
|
456
|
-
window.addEventListener('resize', this.documentResizeListener);
|
|
457
|
-
}
|
|
458
|
-
},
|
|
459
|
-
unbindDocumentListeners() {
|
|
460
|
-
if (this.documentResizeListener) {
|
|
461
|
-
window.removeEventListener('resize', this.documentResizeListener);
|
|
462
|
-
this.documentResizeListener = null;
|
|
463
|
-
}
|
|
464
|
-
},
|
|
465
|
-
startAutoplay() {
|
|
466
|
-
this.interval = setInterval(() => {
|
|
467
|
-
if (this.d_page === this.totalIndicators - 1) {
|
|
468
|
-
this.step(-1, 0);
|
|
469
|
-
} else {
|
|
470
|
-
this.step(-1, this.d_page + 1);
|
|
471
|
-
}
|
|
472
|
-
}, this.autoplayInterval);
|
|
473
|
-
},
|
|
474
|
-
stopAutoplay() {
|
|
475
|
-
if (this.interval) {
|
|
476
|
-
clearInterval(this.interval);
|
|
477
|
-
}
|
|
478
|
-
},
|
|
479
|
-
createStyle() {
|
|
480
|
-
if (!this.carouselStyle) {
|
|
481
|
-
this.carouselStyle = document.createElement('style');
|
|
482
|
-
this.carouselStyle.type = 'text/css';
|
|
483
|
-
document.body.appendChild(this.carouselStyle);
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
let innerHTML = `
|
|
487
|
-
.p-carousel[${this.attributeSelector}] .p-carousel-item {
|
|
488
|
-
flex: 1 0 ${100 / this.d_numVisible}%
|
|
489
|
-
}
|
|
490
|
-
`;
|
|
491
|
-
|
|
492
|
-
if (this.responsiveOptions) {
|
|
493
|
-
let _responsiveOptions = [...this.responsiveOptions];
|
|
494
|
-
|
|
495
|
-
_responsiveOptions.sort((data1, data2) => {
|
|
496
|
-
const value1 = data1.breakpoint;
|
|
497
|
-
const value2 = data2.breakpoint;
|
|
498
|
-
let result = null;
|
|
499
|
-
|
|
500
|
-
if (value1 == null && value2 != null) result = -1;
|
|
501
|
-
else if (value1 != null && value2 == null) result = 1;
|
|
502
|
-
else if (value1 == null && value2 == null) result = 0;
|
|
503
|
-
else if (typeof value1 === 'string' && typeof value2 === 'string') result = value1.localeCompare(value2, undefined, { numeric: true });
|
|
504
|
-
else result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;
|
|
505
|
-
|
|
506
|
-
return -1 * result;
|
|
507
|
-
});
|
|
508
|
-
|
|
509
|
-
for (let i = 0; i < _responsiveOptions.length; i++) {
|
|
510
|
-
let res = _responsiveOptions[i];
|
|
511
|
-
|
|
512
|
-
innerHTML += `
|
|
513
|
-
@media screen and (max-width: ${res.breakpoint}) {
|
|
514
|
-
.p-carousel[${this.attributeSelector}] .p-carousel-item {
|
|
515
|
-
flex: 1 0 ${100 / res.numVisible}%
|
|
516
|
-
}
|
|
517
|
-
}
|
|
518
|
-
`;
|
|
519
|
-
}
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
this.carouselStyle.innerHTML = innerHTML;
|
|
523
|
-
},
|
|
524
|
-
isVertical() {
|
|
525
|
-
return this.orientation === 'vertical';
|
|
526
|
-
},
|
|
527
|
-
isCircular() {
|
|
528
|
-
return this.value && this.d_circular && this.value.length >= this.d_numVisible;
|
|
529
|
-
},
|
|
530
|
-
isAutoplay() {
|
|
531
|
-
return this.autoplayInterval && this.allowAutoplay;
|
|
532
|
-
},
|
|
533
|
-
firstIndex() {
|
|
534
|
-
return this.isCircular() ? -1 * (this.totalShiftedItems + this.d_numVisible) : this.totalShiftedItems * -1;
|
|
535
|
-
},
|
|
536
|
-
lastIndex() {
|
|
537
|
-
return this.firstIndex() + this.d_numVisible - 1;
|
|
538
|
-
},
|
|
539
|
-
ariaSlideNumber(value) {
|
|
540
|
-
return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.slideNumber.replace(/{slideNumber}/g, value) : undefined;
|
|
541
|
-
},
|
|
542
|
-
ariaPageLabel(value) {
|
|
543
|
-
return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.pageLabel.replace(/{page}/g, value) : undefined;
|
|
406
|
+
onIndicatorKeydown: function onIndicatorKeydown(event) {
|
|
407
|
+
switch (event.code) {
|
|
408
|
+
case 'ArrowRight':
|
|
409
|
+
this.onRightKey();
|
|
410
|
+
break;
|
|
411
|
+
case 'ArrowLeft':
|
|
412
|
+
this.onLeftKey();
|
|
413
|
+
break;
|
|
414
|
+
case 'Home':
|
|
415
|
+
this.onHomeKey();
|
|
416
|
+
event.preventDefault();
|
|
417
|
+
break;
|
|
418
|
+
case 'End':
|
|
419
|
+
this.onEndKey();
|
|
420
|
+
event.preventDefault();
|
|
421
|
+
break;
|
|
422
|
+
case 'ArrowUp':
|
|
423
|
+
case 'ArrowDown':
|
|
424
|
+
event.preventDefault();
|
|
425
|
+
break;
|
|
426
|
+
case 'Tab':
|
|
427
|
+
this.onTabKey();
|
|
428
|
+
break;
|
|
429
|
+
}
|
|
430
|
+
},
|
|
431
|
+
onRightKey: function onRightKey() {
|
|
432
|
+
var indicators = _toConsumableArray(DomHandler.find(this.$refs.indicatorContent, '[data-pc-section="indicator"]'));
|
|
433
|
+
var activeIndex = this.findFocusedIndicatorIndex();
|
|
434
|
+
this.changedFocusedIndicator(activeIndex, activeIndex + 1 === indicators.length ? indicators.length - 1 : activeIndex + 1);
|
|
435
|
+
},
|
|
436
|
+
onLeftKey: function onLeftKey() {
|
|
437
|
+
var activeIndex = this.findFocusedIndicatorIndex();
|
|
438
|
+
this.changedFocusedIndicator(activeIndex, activeIndex - 1 <= 0 ? 0 : activeIndex - 1);
|
|
439
|
+
},
|
|
440
|
+
onHomeKey: function onHomeKey() {
|
|
441
|
+
var activeIndex = this.findFocusedIndicatorIndex();
|
|
442
|
+
this.changedFocusedIndicator(activeIndex, 0);
|
|
443
|
+
},
|
|
444
|
+
onEndKey: function onEndKey() {
|
|
445
|
+
var indicators = _toConsumableArray(DomHandler.find(this.$refs.indicatorContent, '[data-pc-section="indicator"]r'));
|
|
446
|
+
var activeIndex = this.findFocusedIndicatorIndex();
|
|
447
|
+
this.changedFocusedIndicator(activeIndex, indicators.length - 1);
|
|
448
|
+
},
|
|
449
|
+
onTabKey: function onTabKey() {
|
|
450
|
+
var indicators = _toConsumableArray(DomHandler.find(this.$refs.indicatorContent, '[data-pc-section="indicator"]'));
|
|
451
|
+
var highlightedIndex = indicators.findIndex(function (ind) {
|
|
452
|
+
return DomHandler.getAttribute(ind, 'data-p-highlight') === true;
|
|
453
|
+
});
|
|
454
|
+
var activeIndicator = DomHandler.findSingle(this.$refs.indicatorContent, '[data-pc-section="indicator"] > button[tabindex="0"]');
|
|
455
|
+
var activeIndex = indicators.findIndex(function (ind) {
|
|
456
|
+
return ind === activeIndicator.parentElement;
|
|
457
|
+
});
|
|
458
|
+
indicators[activeIndex].children[0].tabIndex = '-1';
|
|
459
|
+
indicators[highlightedIndex].children[0].tabIndex = '0';
|
|
460
|
+
},
|
|
461
|
+
findFocusedIndicatorIndex: function findFocusedIndicatorIndex() {
|
|
462
|
+
var indicators = _toConsumableArray(DomHandler.find(this.$refs.indicatorContent, '[data-pc-section="indicator"]'));
|
|
463
|
+
var activeIndicator = DomHandler.findSingle(this.$refs.indicatorContent, '[data-pc-section="indicator"] > button[tabindex="0"]');
|
|
464
|
+
return indicators.findIndex(function (ind) {
|
|
465
|
+
return ind === activeIndicator.parentElement;
|
|
466
|
+
});
|
|
467
|
+
},
|
|
468
|
+
changedFocusedIndicator: function changedFocusedIndicator(prevInd, nextInd) {
|
|
469
|
+
var indicators = _toConsumableArray(DomHandler.find(this.$refs.indicatorContent, '[data-pc-section="indicator"]'));
|
|
470
|
+
indicators[prevInd].children[0].tabIndex = '-1';
|
|
471
|
+
indicators[nextInd].children[0].tabIndex = '0';
|
|
472
|
+
indicators[nextInd].children[0].focus();
|
|
473
|
+
},
|
|
474
|
+
bindDocumentListeners: function bindDocumentListeners() {
|
|
475
|
+
var _this = this;
|
|
476
|
+
if (!this.documentResizeListener) {
|
|
477
|
+
this.documentResizeListener = function (e) {
|
|
478
|
+
_this.calculatePosition(e);
|
|
479
|
+
};
|
|
480
|
+
window.addEventListener('resize', this.documentResizeListener);
|
|
481
|
+
}
|
|
482
|
+
},
|
|
483
|
+
unbindDocumentListeners: function unbindDocumentListeners() {
|
|
484
|
+
if (this.documentResizeListener) {
|
|
485
|
+
window.removeEventListener('resize', this.documentResizeListener);
|
|
486
|
+
this.documentResizeListener = null;
|
|
487
|
+
}
|
|
488
|
+
},
|
|
489
|
+
startAutoplay: function startAutoplay() {
|
|
490
|
+
var _this2 = this;
|
|
491
|
+
this.interval = setInterval(function () {
|
|
492
|
+
if (_this2.d_page === _this2.totalIndicators - 1) {
|
|
493
|
+
_this2.step(-1, 0);
|
|
494
|
+
} else {
|
|
495
|
+
_this2.step(-1, _this2.d_page + 1);
|
|
544
496
|
}
|
|
497
|
+
}, this.autoplayInterval);
|
|
545
498
|
},
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.nextPageLabel : undefined;
|
|
573
|
-
},
|
|
574
|
-
attributeSelector() {
|
|
575
|
-
return UniqueComponentId();
|
|
499
|
+
stopAutoplay: function stopAutoplay() {
|
|
500
|
+
if (this.interval) {
|
|
501
|
+
clearInterval(this.interval);
|
|
502
|
+
}
|
|
503
|
+
},
|
|
504
|
+
createStyle: function createStyle() {
|
|
505
|
+
if (!this.carouselStyle) {
|
|
506
|
+
this.carouselStyle = document.createElement('style');
|
|
507
|
+
this.carouselStyle.type = 'text/css';
|
|
508
|
+
document.body.appendChild(this.carouselStyle);
|
|
509
|
+
}
|
|
510
|
+
var innerHTML = "\n .p-carousel[".concat(this.attributeSelector, "] .p-carousel-item {\n flex: 1 0 ").concat(100 / this.d_numVisible, "%\n }\n ");
|
|
511
|
+
if (this.responsiveOptions && !this.isUnstyled) {
|
|
512
|
+
var _responsiveOptions = _toConsumableArray(this.responsiveOptions);
|
|
513
|
+
_responsiveOptions.sort(function (data1, data2) {
|
|
514
|
+
var value1 = data1.breakpoint;
|
|
515
|
+
var value2 = data2.breakpoint;
|
|
516
|
+
var result = null;
|
|
517
|
+
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, {
|
|
518
|
+
numeric: true
|
|
519
|
+
});else result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;
|
|
520
|
+
return -1 * result;
|
|
521
|
+
});
|
|
522
|
+
for (var i = 0; i < _responsiveOptions.length; i++) {
|
|
523
|
+
var res = _responsiveOptions[i];
|
|
524
|
+
innerHTML += "\n @media screen and (max-width: ".concat(res.breakpoint, ") {\n .p-carousel[").concat(this.attributeSelector, "] .p-carousel-item {\n flex: 1 0 ").concat(100 / res.numVisible, "%\n }\n }\n ");
|
|
576
525
|
}
|
|
526
|
+
}
|
|
527
|
+
this.carouselStyle.innerHTML = innerHTML;
|
|
528
|
+
},
|
|
529
|
+
isVertical: function isVertical() {
|
|
530
|
+
return this.orientation === 'vertical';
|
|
577
531
|
},
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
ChevronDownIcon,
|
|
581
|
-
ChevronLeftIcon,
|
|
582
|
-
ChevronUpIcon
|
|
532
|
+
isCircular: function isCircular() {
|
|
533
|
+
return this.value && this.d_circular && this.value.length >= this.d_numVisible;
|
|
583
534
|
},
|
|
584
|
-
|
|
585
|
-
|
|
535
|
+
isAutoplay: function isAutoplay() {
|
|
536
|
+
return this.autoplayInterval && this.allowAutoplay;
|
|
537
|
+
},
|
|
538
|
+
firstIndex: function firstIndex() {
|
|
539
|
+
return this.isCircular() ? -1 * (this.totalShiftedItems + this.d_numVisible) : this.totalShiftedItems * -1;
|
|
540
|
+
},
|
|
541
|
+
lastIndex: function lastIndex() {
|
|
542
|
+
return this.firstIndex() + this.d_numVisible - 1;
|
|
543
|
+
},
|
|
544
|
+
ariaSlideNumber: function ariaSlideNumber(value) {
|
|
545
|
+
return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.slideNumber.replace(/{slideNumber}/g, value) : undefined;
|
|
546
|
+
},
|
|
547
|
+
ariaPageLabel: function ariaPageLabel(value) {
|
|
548
|
+
return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.pageLabel.replace(/{page}/g, value) : undefined;
|
|
586
549
|
}
|
|
550
|
+
},
|
|
551
|
+
computed: {
|
|
552
|
+
totalIndicators: function totalIndicators() {
|
|
553
|
+
return this.value ? Math.max(Math.ceil((this.value.length - this.d_numVisible) / this.d_numScroll) + 1, 0) : 0;
|
|
554
|
+
},
|
|
555
|
+
backwardIsDisabled: function backwardIsDisabled() {
|
|
556
|
+
return this.value && (!this.circular || this.value.length < this.d_numVisible) && this.d_page === 0;
|
|
557
|
+
},
|
|
558
|
+
forwardIsDisabled: function forwardIsDisabled() {
|
|
559
|
+
return this.value && (!this.circular || this.value.length < this.d_numVisible) && (this.d_page === this.totalIndicators - 1 || this.totalIndicators === 0);
|
|
560
|
+
},
|
|
561
|
+
ariaSlideLabel: function ariaSlideLabel() {
|
|
562
|
+
return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.slide : undefined;
|
|
563
|
+
},
|
|
564
|
+
ariaPrevButtonLabel: function ariaPrevButtonLabel() {
|
|
565
|
+
return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.prevPageLabel : undefined;
|
|
566
|
+
},
|
|
567
|
+
ariaNextButtonLabel: function ariaNextButtonLabel() {
|
|
568
|
+
return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.nextPageLabel : undefined;
|
|
569
|
+
},
|
|
570
|
+
attributeSelector: function attributeSelector() {
|
|
571
|
+
return UniqueComponentId();
|
|
572
|
+
}
|
|
573
|
+
},
|
|
574
|
+
components: {
|
|
575
|
+
ChevronRightIcon: ChevronRightIcon,
|
|
576
|
+
ChevronDownIcon: ChevronDownIcon,
|
|
577
|
+
ChevronLeftIcon: ChevronLeftIcon,
|
|
578
|
+
ChevronUpIcon: ChevronUpIcon
|
|
579
|
+
},
|
|
580
|
+
directives: {
|
|
581
|
+
ripple: Ripple
|
|
582
|
+
}
|
|
587
583
|
};
|
|
588
584
|
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
585
|
+
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); }
|
|
586
|
+
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; }
|
|
587
|
+
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; }
|
|
588
|
+
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; }
|
|
589
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
590
|
+
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); }
|
|
591
|
+
var _hoisted_1 = ["aria-live"];
|
|
592
|
+
var _hoisted_2 = ["disabled", "aria-label"];
|
|
593
|
+
var _hoisted_3 = ["data-p-carousel-item-active", "data-p-carousel-item-start", "data-p-carousel-item-end"];
|
|
594
|
+
var _hoisted_4 = ["aria-hidden", "aria-label", "aria-roledescription", "data-p-carousel-item-active", "data-p-carousel-item-start", "data-p-carousel-item-end"];
|
|
595
|
+
var _hoisted_5 = ["disabled", "aria-label"];
|
|
596
|
+
var _hoisted_6 = ["data-p-highlight"];
|
|
597
|
+
var _hoisted_7 = ["tabindex", "aria-label", "aria-current", "onClick"];
|
|
595
598
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
class: ['p-carousel p-component', { 'p-carousel-vertical': $options.isVertical(), 'p-carousel-horizontal': !$options.isVertical() }],
|
|
599
|
+
var _directive_ripple = resolveDirective("ripple");
|
|
600
|
+
return openBlock(), createElementBlock("div", mergeProps({
|
|
601
|
+
"class": _ctx.cx('root'),
|
|
600
602
|
role: "region"
|
|
601
|
-
}, _ctx.ptm('root')), [
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
renderSlot(_ctx.$slots, "footer")
|
|
737
|
-
], 16))
|
|
738
|
-
: createCommentVNode("", true)
|
|
739
|
-
], 16))
|
|
603
|
+
}, _ctx.ptm('root')), [_ctx.$slots.header ? (openBlock(), createElementBlock("div", mergeProps({
|
|
604
|
+
key: 0,
|
|
605
|
+
"class": _ctx.cx('header')
|
|
606
|
+
}, _ctx.ptm('header')), [renderSlot(_ctx.$slots, "header")], 16)) : createCommentVNode("", true), createElementVNode("div", mergeProps({
|
|
607
|
+
"class": [_ctx.cx('content'), _ctx.contentClass]
|
|
608
|
+
}, _ctx.ptm('content')), [createElementVNode("div", mergeProps({
|
|
609
|
+
"class": [_ctx.cx('container'), _ctx.containerClass],
|
|
610
|
+
"aria-live": $data.allowAutoplay ? 'polite' : 'off'
|
|
611
|
+
}, _ctx.ptm('container')), [_ctx.showNavigators ? withDirectives((openBlock(), createElementBlock("button", mergeProps({
|
|
612
|
+
key: 0,
|
|
613
|
+
type: "button",
|
|
614
|
+
"class": _ctx.cx('previousButton'),
|
|
615
|
+
disabled: $options.backwardIsDisabled,
|
|
616
|
+
"aria-label": $options.ariaPrevButtonLabel,
|
|
617
|
+
onClick: _cache[0] || (_cache[0] = function () {
|
|
618
|
+
return $options.navBackward && $options.navBackward.apply($options, arguments);
|
|
619
|
+
})
|
|
620
|
+
}, _objectSpread(_objectSpread({}, _ctx.prevButtonProps), _ctx.ptm('previousButton'))), [renderSlot(_ctx.$slots, "previousicon", {}, function () {
|
|
621
|
+
return [(openBlock(), createBlock(resolveDynamicComponent($options.isVertical() ? 'ChevronUpIcon' : 'ChevronLeftIcon'), mergeProps({
|
|
622
|
+
"class": _ctx.cx('previousButtonIcon')
|
|
623
|
+
}, _ctx.ptm('previousButtonIcon')), null, 16, ["class"]))];
|
|
624
|
+
})], 16, _hoisted_2)), [[_directive_ripple]]) : createCommentVNode("", true), createElementVNode("div", mergeProps({
|
|
625
|
+
"class": _ctx.cx('itemsContent'),
|
|
626
|
+
style: [{
|
|
627
|
+
height: $options.isVertical() ? _ctx.verticalViewPortHeight : 'auto'
|
|
628
|
+
}],
|
|
629
|
+
onTouchend: _cache[2] || (_cache[2] = function () {
|
|
630
|
+
return $options.onTouchEnd && $options.onTouchEnd.apply($options, arguments);
|
|
631
|
+
}),
|
|
632
|
+
onTouchstart: _cache[3] || (_cache[3] = function () {
|
|
633
|
+
return $options.onTouchStart && $options.onTouchStart.apply($options, arguments);
|
|
634
|
+
}),
|
|
635
|
+
onTouchmove: _cache[4] || (_cache[4] = function () {
|
|
636
|
+
return $options.onTouchMove && $options.onTouchMove.apply($options, arguments);
|
|
637
|
+
})
|
|
638
|
+
}, _ctx.ptm('itemsContent')), [createElementVNode("div", mergeProps({
|
|
639
|
+
ref: "itemsContainer",
|
|
640
|
+
"class": _ctx.cx('itemsContainer'),
|
|
641
|
+
onTransitionend: _cache[1] || (_cache[1] = function () {
|
|
642
|
+
return $options.onTransitionEnd && $options.onTransitionEnd.apply($options, arguments);
|
|
643
|
+
})
|
|
644
|
+
}, _ctx.ptm('itemsContainer')), [$options.isCircular() ? (openBlock(true), createElementBlock(Fragment, {
|
|
645
|
+
key: 0
|
|
646
|
+
}, renderList(_ctx.value.slice(-1 * $data.d_numVisible), function (item, index) {
|
|
647
|
+
return openBlock(), createElementBlock("div", mergeProps({
|
|
648
|
+
key: index + '_scloned',
|
|
649
|
+
"class": _ctx.cx('itemCloned', {
|
|
650
|
+
index: index,
|
|
651
|
+
value: _ctx.value,
|
|
652
|
+
totalShiftedItems: $data.totalShiftedItems,
|
|
653
|
+
d_numVisible: $data.d_numVisible
|
|
654
|
+
})
|
|
655
|
+
}, _ctx.ptm('itemCloned'), {
|
|
656
|
+
"data-p-carousel-item-active": $data.totalShiftedItems * -1 === _ctx.value.length + $data.d_numVisible,
|
|
657
|
+
"data-p-carousel-item-start": index === 0,
|
|
658
|
+
"data-p-carousel-item-end": _ctx.value.slice(-1 * $data.d_numVisible).length - 1 === index
|
|
659
|
+
}), [renderSlot(_ctx.$slots, "item", {
|
|
660
|
+
data: item,
|
|
661
|
+
index: index
|
|
662
|
+
})], 16, _hoisted_3);
|
|
663
|
+
}), 128)) : createCommentVNode("", true), (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.value, function (item, index) {
|
|
664
|
+
return openBlock(), createElementBlock("div", mergeProps({
|
|
665
|
+
key: index,
|
|
666
|
+
"class": _ctx.cx('item', {
|
|
667
|
+
index: index
|
|
668
|
+
}),
|
|
669
|
+
role: "group",
|
|
670
|
+
"aria-hidden": $options.firstIndex() > index || $options.lastIndex() < index ? true : undefined,
|
|
671
|
+
"aria-label": $options.ariaSlideNumber(index),
|
|
672
|
+
"aria-roledescription": $options.ariaSlideLabel
|
|
673
|
+
}, _ctx.ptm('item'), {
|
|
674
|
+
"data-p-carousel-item-active": $options.firstIndex() <= index && $options.lastIndex() >= index,
|
|
675
|
+
"data-p-carousel-item-start": $options.firstIndex() === index,
|
|
676
|
+
"data-p-carousel-item-end": $options.lastIndex() === index
|
|
677
|
+
}), [renderSlot(_ctx.$slots, "item", {
|
|
678
|
+
data: item,
|
|
679
|
+
index: index
|
|
680
|
+
})], 16, _hoisted_4);
|
|
681
|
+
}), 128)), $options.isCircular() ? (openBlock(true), createElementBlock(Fragment, {
|
|
682
|
+
key: 1
|
|
683
|
+
}, renderList(_ctx.value.slice(0, $data.d_numVisible), function (item, index) {
|
|
684
|
+
return openBlock(), createElementBlock("div", mergeProps({
|
|
685
|
+
key: index + '_fcloned',
|
|
686
|
+
"class": _ctx.cx('itemCloned', {
|
|
687
|
+
index: index,
|
|
688
|
+
value: _ctx.value,
|
|
689
|
+
totalShiftedItems: $data.totalShiftedItems,
|
|
690
|
+
d_numVisible: $data.d_numVisible
|
|
691
|
+
})
|
|
692
|
+
}, _ctx.ptm('itemCloned')), [renderSlot(_ctx.$slots, "item", {
|
|
693
|
+
data: item,
|
|
694
|
+
index: index
|
|
695
|
+
})], 16);
|
|
696
|
+
}), 128)) : createCommentVNode("", true)], 16)], 16), _ctx.showNavigators ? withDirectives((openBlock(), createElementBlock("button", mergeProps({
|
|
697
|
+
key: 1,
|
|
698
|
+
type: "button",
|
|
699
|
+
"class": _ctx.cx('nextButton'),
|
|
700
|
+
disabled: $options.forwardIsDisabled,
|
|
701
|
+
"aria-label": $options.ariaNextButtonLabel,
|
|
702
|
+
onClick: _cache[5] || (_cache[5] = function () {
|
|
703
|
+
return $options.navForward && $options.navForward.apply($options, arguments);
|
|
704
|
+
})
|
|
705
|
+
}, _objectSpread(_objectSpread({}, _ctx.nextButtonProps), _ctx.ptm('nextButton'))), [renderSlot(_ctx.$slots, "nexticon", {}, function () {
|
|
706
|
+
return [(openBlock(), createBlock(resolveDynamicComponent($options.isVertical() ? 'ChevronDownIcon' : 'ChevronRightIcon'), mergeProps({
|
|
707
|
+
"class": _ctx.cx('nextButtonIcon')
|
|
708
|
+
}, _ctx.ptm('nextButtonIcon')), null, 16, ["class"]))];
|
|
709
|
+
})], 16, _hoisted_5)), [[_directive_ripple]]) : createCommentVNode("", true)], 16, _hoisted_1), $options.totalIndicators >= 0 && _ctx.showIndicators ? (openBlock(), createElementBlock("ul", mergeProps({
|
|
710
|
+
key: 0,
|
|
711
|
+
ref: "indicatorContent",
|
|
712
|
+
"class": [_ctx.cx('indicators'), _ctx.indicatorsContentClass],
|
|
713
|
+
onKeydown: _cache[6] || (_cache[6] = function () {
|
|
714
|
+
return $options.onIndicatorKeydown && $options.onIndicatorKeydown.apply($options, arguments);
|
|
715
|
+
})
|
|
716
|
+
}, _ctx.ptm('indicators')), [(openBlock(true), createElementBlock(Fragment, null, renderList($options.totalIndicators, function (indicator, i) {
|
|
717
|
+
return openBlock(), createElementBlock("li", mergeProps({
|
|
718
|
+
key: 'p-carousel-indicator-' + i.toString(),
|
|
719
|
+
"class": _ctx.cx('indicator', {
|
|
720
|
+
index: i
|
|
721
|
+
})
|
|
722
|
+
}, _ctx.ptm('indicator'), {
|
|
723
|
+
"data-p-highlight": $data.d_page === i
|
|
724
|
+
}), [createElementVNode("button", mergeProps({
|
|
725
|
+
"class": _ctx.cx('indicatorButton'),
|
|
726
|
+
type: "button",
|
|
727
|
+
tabindex: $data.d_page === i ? '0' : '-1',
|
|
728
|
+
"aria-label": $options.ariaPageLabel(i + 1),
|
|
729
|
+
"aria-current": $data.d_page === i ? 'page' : undefined,
|
|
730
|
+
onClick: function onClick($event) {
|
|
731
|
+
return $options.onIndicatorClick($event, i);
|
|
732
|
+
}
|
|
733
|
+
}, _ctx.ptm('indicatorButton')), null, 16, _hoisted_7)], 16, _hoisted_6);
|
|
734
|
+
}), 128))], 16)) : createCommentVNode("", true)], 16), _ctx.$slots.footer ? (openBlock(), createElementBlock("div", mergeProps({
|
|
735
|
+
key: 1,
|
|
736
|
+
"class": _ctx.cx('footer')
|
|
737
|
+
}, _ctx.ptm('footer')), [renderSlot(_ctx.$slots, "footer")], 16)) : createCommentVNode("", true)], 16);
|
|
740
738
|
}
|
|
741
739
|
|
|
742
|
-
function styleInject(css, ref) {
|
|
743
|
-
if ( ref === void 0 ) ref = {};
|
|
744
|
-
var insertAt = ref.insertAt;
|
|
745
|
-
|
|
746
|
-
if (!css || typeof document === 'undefined') { return; }
|
|
747
|
-
|
|
748
|
-
var head = document.head || document.getElementsByTagName('head')[0];
|
|
749
|
-
var style = document.createElement('style');
|
|
750
|
-
style.type = 'text/css';
|
|
751
|
-
|
|
752
|
-
if (insertAt === 'top') {
|
|
753
|
-
if (head.firstChild) {
|
|
754
|
-
head.insertBefore(style, head.firstChild);
|
|
755
|
-
} else {
|
|
756
|
-
head.appendChild(style);
|
|
757
|
-
}
|
|
758
|
-
} else {
|
|
759
|
-
head.appendChild(style);
|
|
760
|
-
}
|
|
761
|
-
|
|
762
|
-
if (style.styleSheet) {
|
|
763
|
-
style.styleSheet.cssText = css;
|
|
764
|
-
} else {
|
|
765
|
-
style.appendChild(document.createTextNode(css));
|
|
766
|
-
}
|
|
767
|
-
}
|
|
768
|
-
|
|
769
|
-
var css_248z = "\n.p-carousel {\n display: flex;\n flex-direction: column;\n}\n.p-carousel-content {\n display: flex;\n flex-direction: column;\n overflow: auto;\n}\n.p-carousel-prev,\n.p-carousel-next {\n align-self: center;\n flex-grow: 0;\n flex-shrink: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n position: relative;\n}\n.p-carousel-container {\n display: flex;\n flex-direction: row;\n}\n.p-carousel-items-content {\n overflow: hidden;\n width: 100%;\n}\n.p-carousel-items-container {\n display: flex;\n flex-direction: row;\n}\n.p-carousel-indicators {\n display: flex;\n flex-direction: row;\n justify-content: center;\n flex-wrap: wrap;\n}\n.p-carousel-indicator > button {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n/* Vertical */\n.p-carousel-vertical .p-carousel-container {\n flex-direction: column;\n}\n.p-carousel-vertical .p-carousel-items-container {\n flex-direction: column;\n height: 100%;\n}\n\n/* Keyboard Support */\n.p-items-hidden .p-carousel-item {\n visibility: hidden;\n}\n.p-items-hidden .p-carousel-item.p-carousel-item-active {\n visibility: visible;\n}\n";
|
|
770
|
-
styleInject(css_248z);
|
|
771
|
-
|
|
772
740
|
script.render = render;
|
|
773
741
|
|
|
774
742
|
export { script as default };
|