buefy 1.0.0 → 1.0.2
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/LICENSE.md +21 -0
- package/README.md +242 -0
- package/dist/buefy.css +15895 -0
- package/dist/buefy.d.ts +11706 -0
- package/dist/buefy.esm.js +21082 -0
- package/dist/buefy.esm.min.js +2 -0
- package/dist/buefy.js +21227 -0
- package/dist/buefy.min.css +1 -0
- package/dist/buefy.min.js +2 -0
- package/dist/cjs/Autocomplete-BMmOsPiK.js +864 -0
- package/dist/cjs/Button-Cq7yqI8p.js +118 -0
- package/dist/cjs/CheckRadioMixin-CDu0SN3g.js +58 -0
- package/dist/cjs/Checkbox-GPzAMQqM.js +85 -0
- package/dist/cjs/CompatFallthroughMixin-hhK0Gkhr.js +48 -0
- package/dist/cjs/Datepicker-B-9ReBe6.js +2120 -0
- package/dist/cjs/Dropdown-DtpKU9qf.js +470 -0
- package/dist/cjs/DropdownItem-IMOKyRGV.js +110 -0
- package/dist/cjs/Field-19ZCJFF8.js +405 -0
- package/dist/cjs/FormElementMixin-DavX4iOv.js +170 -0
- package/dist/cjs/Icon-lsDKE2wQ.js +184 -0
- package/dist/cjs/Image-CocPwU3n.js +356 -0
- package/dist/cjs/InjectedChildMixin-CUKn09dB.js +150 -0
- package/dist/cjs/Input-BcloGeZ3.js +350 -0
- package/dist/cjs/Loading-GqqqjipO.js +145 -0
- package/dist/cjs/MessageMixin-bGuuzfev.js +136 -0
- package/dist/cjs/Modal-CYpSQe2Q.js +315 -0
- package/dist/cjs/NoticeMixin--3RjH43z.js +163 -0
- package/dist/cjs/Pagination-D1MVdiLp.js +547 -0
- package/dist/cjs/Progress-DT9Qc8Id.js +177 -0
- package/dist/cjs/Select-DayPKwCY.js +147 -0
- package/dist/cjs/SlotComponent-BruGdRW3.js +41 -0
- package/dist/cjs/TabbedChildMixin-B3JUUwcf.js +211 -0
- package/dist/cjs/Tag-BprnwJJ1.js +167 -0
- package/dist/cjs/Timepicker-CDZ3V-2J.js +283 -0
- package/dist/cjs/TimepickerMixin-C9WVvcUL.js +666 -0
- package/dist/cjs/Tooltip-Cgighv0j.js +393 -0
- package/dist/cjs/_plugin-vue_export-helper-Die8u8yB.js +11 -0
- package/dist/cjs/autocomplete.js +23 -0
- package/dist/cjs/breadcrumb.js +107 -0
- package/dist/cjs/button.js +20 -0
- package/dist/cjs/carousel.js +825 -0
- package/dist/cjs/checkbox.js +88 -0
- package/dist/cjs/clockpicker.js +668 -0
- package/dist/cjs/collapse.js +99 -0
- package/dist/cjs/colorpicker.js +25 -0
- package/dist/cjs/config-DR826Ki2.js +103 -0
- package/dist/cjs/config.js +18 -0
- package/dist/cjs/datepicker.js +28 -0
- package/dist/cjs/datetimepicker.js +483 -0
- package/dist/cjs/dialog.js +506 -0
- package/dist/cjs/dropdown.js +23 -0
- package/dist/cjs/field.js +19 -0
- package/dist/cjs/helpers.js +276 -0
- package/dist/cjs/icon.js +19 -0
- package/dist/cjs/image.js +19 -0
- package/dist/cjs/index-DiQy3SCb.js +1942 -0
- package/dist/cjs/index.js +274 -0
- package/dist/cjs/input.js +22 -0
- package/dist/cjs/loading.js +87 -0
- package/dist/cjs/menu.js +340 -0
- package/dist/cjs/message.js +119 -0
- package/dist/cjs/modal.js +103 -0
- package/dist/cjs/navbar.js +572 -0
- package/dist/cjs/notification.js +281 -0
- package/dist/cjs/numberinput.js +386 -0
- package/dist/cjs/pagination.js +22 -0
- package/dist/cjs/plugins-DbyYGVpp.js +16 -0
- package/dist/cjs/progress.js +91 -0
- package/dist/cjs/radio.js +137 -0
- package/dist/cjs/rate.js +197 -0
- package/dist/cjs/select.js +22 -0
- package/dist/cjs/sidebar.js +309 -0
- package/dist/cjs/skeleton.js +78 -0
- package/dist/cjs/slider.js +699 -0
- package/dist/cjs/snackbar.js +224 -0
- package/dist/cjs/ssr-DVRFTu_P.js +8 -0
- package/dist/cjs/steps.js +347 -0
- package/dist/cjs/switch.js +161 -0
- package/dist/cjs/table.js +2391 -0
- package/dist/cjs/tabs.js +258 -0
- package/dist/cjs/tag.js +44 -0
- package/dist/cjs/taginput.js +425 -0
- package/dist/cjs/timepicker.js +29 -0
- package/dist/cjs/toast.js +162 -0
- package/dist/cjs/tooltip.js +19 -0
- package/dist/cjs/trapFocus-BlX6xykt.js +53 -0
- package/dist/cjs/upload.js +195 -0
- package/dist/components/autocomplete/index.js +1647 -0
- package/dist/components/autocomplete/index.min.js +2 -0
- package/dist/components/breadcrumb/index.js +173 -0
- package/dist/components/breadcrumb/index.min.js +2 -0
- package/dist/components/button/index.js +334 -0
- package/dist/components/button/index.min.js +2 -0
- package/dist/components/carousel/index.js +1534 -0
- package/dist/components/carousel/index.min.js +2 -0
- package/dist/components/checkbox/index.js +236 -0
- package/dist/components/checkbox/index.min.js +2 -0
- package/dist/components/clockpicker/index.js +2636 -0
- package/dist/components/clockpicker/index.min.js +2 -0
- package/dist/components/collapse/index.js +111 -0
- package/dist/components/collapse/index.min.js +2 -0
- package/dist/components/colorpicker/index.js +4251 -0
- package/dist/components/colorpicker/index.min.js +2 -0
- package/dist/components/datepicker/index.js +4110 -0
- package/dist/components/datepicker/index.min.js +2 -0
- package/dist/components/datetimepicker/index.js +5479 -0
- package/dist/components/datetimepicker/index.min.js +2 -0
- package/dist/components/dialog/index.js +1202 -0
- package/dist/components/dialog/index.min.js +2 -0
- package/dist/components/dropdown/index.js +680 -0
- package/dist/components/dropdown/index.min.js +2 -0
- package/dist/components/field/index.js +439 -0
- package/dist/components/field/index.min.js +2 -0
- package/dist/components/icon/index.js +212 -0
- package/dist/components/icon/index.min.js +2 -0
- package/dist/components/image/index.js +396 -0
- package/dist/components/image/index.min.js +2 -0
- package/dist/components/input/index.js +764 -0
- package/dist/components/input/index.min.js +2 -0
- package/dist/components/loading/index.js +280 -0
- package/dist/components/loading/index.min.js +2 -0
- package/dist/components/menu/index.js +586 -0
- package/dist/components/menu/index.min.js +2 -0
- package/dist/components/message/index.js +611 -0
- package/dist/components/message/index.min.js +2 -0
- package/dist/components/modal/index.js +516 -0
- package/dist/components/modal/index.min.js +2 -0
- package/dist/components/navbar/index.js +634 -0
- package/dist/components/navbar/index.min.js +2 -0
- package/dist/components/notification/index.js +976 -0
- package/dist/components/notification/index.min.js +2 -0
- package/dist/components/numberinput/index.js +1128 -0
- package/dist/components/numberinput/index.min.js +2 -0
- package/dist/components/pagination/index.js +764 -0
- package/dist/components/pagination/index.min.js +2 -0
- package/dist/components/progress/index.js +280 -0
- package/dist/components/progress/index.min.js +2 -0
- package/dist/components/radio/index.js +208 -0
- package/dist/components/radio/index.min.js +2 -0
- package/dist/components/rate/index.js +391 -0
- package/dist/components/rate/index.min.js +2 -0
- package/dist/components/select/index.js +560 -0
- package/dist/components/select/index.min.js +2 -0
- package/dist/components/sidebar/index.js +337 -0
- package/dist/components/sidebar/index.min.js +2 -0
- package/dist/components/skeleton/index.js +87 -0
- package/dist/components/skeleton/index.min.js +2 -0
- package/dist/components/slider/index.js +1171 -0
- package/dist/components/slider/index.min.js +2 -0
- package/dist/components/snackbar/index.js +439 -0
- package/dist/components/snackbar/index.min.js +2 -0
- package/dist/components/steps/index.js +925 -0
- package/dist/components/steps/index.min.js +2 -0
- package/dist/components/switch/index.js +182 -0
- package/dist/components/switch/index.min.js +2 -0
- package/dist/components/table/index.js +4208 -0
- package/dist/components/table/index.min.js +2 -0
- package/dist/components/tabs/index.js +837 -0
- package/dist/components/tabs/index.min.js +2 -0
- package/dist/components/tag/index.js +396 -0
- package/dist/components/tag/index.min.js +2 -0
- package/dist/components/taginput/index.js +2209 -0
- package/dist/components/taginput/index.min.js +2 -0
- package/dist/components/timepicker/index.js +2906 -0
- package/dist/components/timepicker/index.min.js +2 -0
- package/dist/components/toast/index.js +377 -0
- package/dist/components/toast/index.min.js +2 -0
- package/dist/components/tooltip/index.js +445 -0
- package/dist/components/tooltip/index.min.js +2 -0
- package/dist/components/upload/index.js +426 -0
- package/dist/components/upload/index.min.js +2 -0
- package/dist/esm/Autocomplete-CjbTh9D8.js +862 -0
- package/dist/esm/Button-DyUYShTZ.js +116 -0
- package/dist/esm/CheckRadioMixin-DSD_rjC8.js +56 -0
- package/dist/esm/Checkbox-KUMz0sfA.js +83 -0
- package/dist/esm/CompatFallthroughMixin-C8LPuwDr.js +46 -0
- package/dist/esm/Datepicker-Bl8Wfdkn.js +2118 -0
- package/dist/esm/Dropdown-CGTYVyoL.js +467 -0
- package/dist/esm/DropdownItem-Cn3nM0A3.js +108 -0
- package/dist/esm/Field-B7bX_uUg.js +403 -0
- package/dist/esm/FormElementMixin-Dd_wkBN5.js +168 -0
- package/dist/esm/Icon-DPyGDeRK.js +182 -0
- package/dist/esm/Image-DhX-4hlV.js +354 -0
- package/dist/esm/InjectedChildMixin-D2K-FwuO.js +145 -0
- package/dist/esm/Input-C4L520az.js +348 -0
- package/dist/esm/Loading-tuQoo6TU.js +143 -0
- package/dist/esm/MessageMixin-CQ7LIdvq.js +134 -0
- package/dist/esm/Modal-tfvyhxw_.js +313 -0
- package/dist/esm/NoticeMixin-ByNlva3T.js +161 -0
- package/dist/esm/Pagination-B-LAJQay.js +543 -0
- package/dist/esm/Progress-BPGTVZgr.js +174 -0
- package/dist/esm/Select-bl4qUzij.js +145 -0
- package/dist/esm/SlotComponent-BwNpVnfH.js +39 -0
- package/dist/esm/TabbedChildMixin-C4i6WP9j.js +208 -0
- package/dist/esm/Tag-jS5Bcj6N.js +165 -0
- package/dist/esm/Timepicker-DnkqnOBT.js +281 -0
- package/dist/esm/TimepickerMixin-Bikh6_Fg.js +664 -0
- package/dist/esm/Tooltip-CtDSXAqa.js +391 -0
- package/dist/esm/_plugin-vue_export-helper-OJRSZE6i.js +9 -0
- package/dist/esm/autocomplete.js +18 -0
- package/dist/esm/breadcrumb.js +101 -0
- package/dist/esm/button.js +15 -0
- package/dist/esm/carousel.js +818 -0
- package/dist/esm/checkbox.js +82 -0
- package/dist/esm/clockpicker.js +663 -0
- package/dist/esm/collapse.js +94 -0
- package/dist/esm/colorpicker.js +16 -0
- package/dist/esm/config-CKuo-p6e.js +100 -0
- package/dist/esm/config.js +14 -0
- package/dist/esm/datepicker.js +23 -0
- package/dist/esm/datetimepicker.js +478 -0
- package/dist/esm/dialog.js +500 -0
- package/dist/esm/dropdown.js +17 -0
- package/dist/esm/field.js +14 -0
- package/dist/esm/helpers.js +247 -0
- package/dist/esm/icon.js +14 -0
- package/dist/esm/image.js +14 -0
- package/dist/esm/index-CQegEsxK.js +1938 -0
- package/dist/esm/index.js +164 -0
- package/dist/esm/input.js +17 -0
- package/dist/esm/loading.js +81 -0
- package/dist/esm/menu.js +333 -0
- package/dist/esm/message.js +114 -0
- package/dist/esm/modal.js +97 -0
- package/dist/esm/navbar.js +565 -0
- package/dist/esm/notification.js +275 -0
- package/dist/esm/numberinput.js +381 -0
- package/dist/esm/pagination.js +16 -0
- package/dist/esm/plugins-B172kuKE.js +13 -0
- package/dist/esm/progress.js +85 -0
- package/dist/esm/radio.js +131 -0
- package/dist/esm/rate.js +192 -0
- package/dist/esm/select.js +17 -0
- package/dist/esm/sidebar.js +304 -0
- package/dist/esm/skeleton.js +73 -0
- package/dist/esm/slider.js +693 -0
- package/dist/esm/snackbar.js +218 -0
- package/dist/esm/ssr-C7yEpGLm.js +5 -0
- package/dist/esm/steps.js +341 -0
- package/dist/esm/switch.js +156 -0
- package/dist/esm/table.js +2385 -0
- package/dist/esm/tabs.js +252 -0
- package/dist/esm/tag.js +38 -0
- package/dist/esm/taginput.js +420 -0
- package/dist/esm/timepicker.js +24 -0
- package/dist/esm/toast.js +156 -0
- package/dist/esm/tooltip.js +14 -0
- package/dist/esm/trapFocus-KHP_kCNE.js +51 -0
- package/dist/esm/upload.js +190 -0
- package/dist/tsdoc-metadata.json +11 -0
- package/package.json +73 -6
- package/src/components/autocomplete/Autocomplete.spec.ts +783 -0
- package/src/components/autocomplete/Autocomplete.vue +966 -0
- package/src/components/autocomplete/__snapshots__/Autocomplete.spec.ts.snap +21 -0
- package/src/components/autocomplete/index.ts +16 -0
- package/src/components/breadcrumb/Breadcrumb.spec.ts +65 -0
- package/src/components/breadcrumb/Breadcrumb.vue +42 -0
- package/src/components/breadcrumb/BreadcrumbItem.spec.ts +74 -0
- package/src/components/breadcrumb/BreadcrumbItem.vue +34 -0
- package/src/components/breadcrumb/__snapshots__/Breadcrumb.spec.ts.snap +7 -0
- package/src/components/breadcrumb/__snapshots__/BreadcrumbItem.spec.ts.snap +3 -0
- package/src/components/breadcrumb/index.ts +19 -0
- package/src/components/button/Button.spec.ts +117 -0
- package/src/components/button/Button.vue +112 -0
- package/src/components/button/__snapshots__/Button.spec.ts.snap +9 -0
- package/src/components/button/index.ts +16 -0
- package/src/components/carousel/Carousel.spec.ts +304 -0
- package/src/components/carousel/Carousel.vue +389 -0
- package/src/components/carousel/CarouselItem.spec.ts +105 -0
- package/src/components/carousel/CarouselItem.vue +38 -0
- package/src/components/carousel/CarouselList.spec.ts +172 -0
- package/src/components/carousel/CarouselList.vue +364 -0
- package/src/components/carousel/__snapshots__/Carousel.spec.ts.snap +19 -0
- package/src/components/carousel/__snapshots__/CarouselItem.spec.ts.snap +7 -0
- package/src/components/carousel/__snapshots__/CarouselList.spec.ts.snap +36 -0
- package/src/components/carousel/index.ts +23 -0
- package/src/components/carousel/types.ts +17 -0
- package/src/components/checkbox/Checkbox.spec.ts +40 -0
- package/src/components/checkbox/Checkbox.vue +63 -0
- package/src/components/checkbox/CheckboxButton.spec.ts +46 -0
- package/src/components/checkbox/CheckboxButton.vue +59 -0
- package/src/components/checkbox/__snapshots__/Checkbox.spec.ts.snap +9 -0
- package/src/components/checkbox/__snapshots__/CheckboxButton.spec.ts.snap +3 -0
- package/src/components/checkbox/index.ts +20 -0
- package/src/components/clockpicker/Clockpicker.spec.ts +161 -0
- package/src/components/clockpicker/Clockpicker.vue +311 -0
- package/src/components/clockpicker/ClockpickerFace.spec.ts +99 -0
- package/src/components/clockpicker/ClockpickerFace.vue +272 -0
- package/src/components/clockpicker/__snapshots__/Clockpicker.spec.ts.snap +36 -0
- package/src/components/clockpicker/__snapshots__/ClockpickerFace.spec.ts.snap +9 -0
- package/src/components/clockpicker/index.ts +16 -0
- package/src/components/collapse/Collapse.spec.ts +106 -0
- package/src/components/collapse/Collapse.vue +98 -0
- package/src/components/collapse/__snapshots__/Collapse.spec.ts.snap +10 -0
- package/src/components/collapse/index.ts +16 -0
- package/src/components/colorpicker/Colorpicker.spec.ts +22 -0
- package/src/components/colorpicker/Colorpicker.vue +416 -0
- package/src/components/colorpicker/ColorpickerAlphaSlider.spec.ts +17 -0
- package/src/components/colorpicker/ColorpickerAlphaSlider.vue +205 -0
- package/src/components/colorpicker/ColorpickerHSLRepresentationSquare.spec.ts +23 -0
- package/src/components/colorpicker/ColorpickerHSLRepresentationSquare.vue +380 -0
- package/src/components/colorpicker/ColorpickerHSLRepresentationTriangle.spec.ts +23 -0
- package/src/components/colorpicker/ColorpickerHSLRepresentationTriangle.vue +456 -0
- package/src/components/colorpicker/__snapshots__/Colorpicker.spec.ts.snap +77 -0
- package/src/components/colorpicker/__snapshots__/ColorpickerAlphaSlider.spec.ts.snap +9 -0
- package/src/components/colorpicker/__snapshots__/ColorpickerHSLRepresentationSquare.spec.ts.snap +12 -0
- package/src/components/colorpicker/__snapshots__/ColorpickerHSLRepresentationTriangle.spec.ts.snap +36 -0
- package/src/components/colorpicker/index.ts +16 -0
- package/src/components/datepicker/Datepicker.spec.ts +482 -0
- package/src/components/datepicker/Datepicker.vue +908 -0
- package/src/components/datepicker/DatepickerMonth.spec.ts +346 -0
- package/src/components/datepicker/DatepickerMonth.vue +444 -0
- package/src/components/datepicker/DatepickerTable.spec.ts +290 -0
- package/src/components/datepicker/DatepickerTable.vue +398 -0
- package/src/components/datepicker/DatepickerTableRow.spec.ts +300 -0
- package/src/components/datepicker/DatepickerTableRow.vue +416 -0
- package/src/components/datepicker/__snapshots__/Datepicker.spec.ts.snap +54 -0
- package/src/components/datepicker/__snapshots__/DatepickerMonth.spec.ts.snap +33 -0
- package/src/components/datepicker/__snapshots__/DatepickerTable.spec.ts.snap +16 -0
- package/src/components/datepicker/__snapshots__/DatepickerTableRow.spec.ts.snap +23 -0
- package/src/components/datepicker/index.ts +17 -0
- package/src/components/datepicker/types.ts +41 -0
- package/src/components/datetimepicker/Datetimepicker.spec.ts +132 -0
- package/src/components/datetimepicker/Datetimepicker.vue +491 -0
- package/src/components/datetimepicker/index.ts +16 -0
- package/src/components/dialog/Dialog.spec.ts +108 -0
- package/src/components/dialog/Dialog.vue +300 -0
- package/src/components/dialog/index.ts +169 -0
- package/src/components/dropdown/Dropdown.spec.ts +229 -0
- package/src/components/dropdown/Dropdown.vue +491 -0
- package/src/components/dropdown/DropdownItem.spec.ts +78 -0
- package/src/components/dropdown/DropdownItem.vue +112 -0
- package/src/components/dropdown/__snapshots__/Dropdown.spec.ts.snap +15 -0
- package/src/components/dropdown/__snapshots__/DropdownItem.spec.ts.snap +3 -0
- package/src/components/dropdown/index.ts +20 -0
- package/src/components/field/Field.spec.ts +324 -0
- package/src/components/field/Field.vue +316 -0
- package/src/components/field/FieldBody.spec.ts +96 -0
- package/src/components/field/FieldBody.vue +74 -0
- package/src/components/field/__snapshots__/Field.spec.ts.snap +8 -0
- package/src/components/field/__snapshots__/FieldBody.spec.ts.snap +3 -0
- package/src/components/field/index.ts +16 -0
- package/src/components/icon/Icon.spec.ts +142 -0
- package/src/components/icon/Icon.vue +120 -0
- package/src/components/icon/__snapshots__/Icon.spec.ts.snap +3 -0
- package/src/components/icon/index.ts +17 -0
- package/src/components/image/Image.spec.ts +218 -0
- package/src/components/image/Image.vue +358 -0
- package/src/components/image/__snapshots__/Image.spec.ts.snap +37 -0
- package/src/components/image/index.ts +16 -0
- package/src/components/index.ts +179 -0
- package/src/components/input/Input.spec.ts +396 -0
- package/src/components/input/Input.vue +335 -0
- package/src/components/input/__snapshots__/Input.spec.ts.snap +9 -0
- package/src/components/input/index.ts +17 -0
- package/src/components/loading/Loading.spec.ts +151 -0
- package/src/components/loading/Loading.vue +135 -0
- package/src/components/loading/__snapshots__/Loading.spec.ts.snap +10 -0
- package/src/components/loading/index.ts +91 -0
- package/src/components/menu/Menu.spec.ts +21 -0
- package/src/components/menu/Menu.vue +31 -0
- package/src/components/menu/MenuItem.spec.ts +92 -0
- package/src/components/menu/MenuItem.vue +168 -0
- package/src/components/menu/MenuItemContainerMixin.ts +72 -0
- package/src/components/menu/MenuList.spec.ts +35 -0
- package/src/components/menu/MenuList.vue +47 -0
- package/src/components/menu/__snapshots__/Menu.spec.ts.snap +3 -0
- package/src/components/menu/__snapshots__/MenuItem.spec.ts.snap +9 -0
- package/src/components/menu/__snapshots__/MenuList.spec.ts.snap +8 -0
- package/src/components/menu/index.ts +25 -0
- package/src/components/message/Message.spec.ts +30 -0
- package/src/components/message/Message.vue +73 -0
- package/src/components/message/__snapshots__/Message.spec.ts.snap +11 -0
- package/src/components/message/index.ts +15 -0
- package/src/components/modal/Modal.spec.ts +167 -0
- package/src/components/modal/Modal.vue +335 -0
- package/src/components/modal/__snapshots__/Modal.spec.ts.snap +10 -0
- package/src/components/modal/index.ts +107 -0
- package/src/components/navbar/NavBar.spec.ts +78 -0
- package/src/components/navbar/NavBarBurger.spec.ts +30 -0
- package/src/components/navbar/NavBarItem.spec.ts +92 -0
- package/src/components/navbar/Navbar.vue +274 -0
- package/src/components/navbar/NavbarBurger.vue +29 -0
- package/src/components/navbar/NavbarDropdown.spec.ts +84 -0
- package/src/components/navbar/NavbarDropdown.vue +115 -0
- package/src/components/navbar/NavbarItem.vue +97 -0
- package/src/components/navbar/__snapshots__/NavBar.spec.ts.snap +11 -0
- package/src/components/navbar/__snapshots__/NavBarBurger.spec.ts.snap +3 -0
- package/src/components/navbar/__snapshots__/NavBarItem.spec.ts.snap +3 -0
- package/src/components/navbar/__snapshots__/NavbarDropdown.spec.ts.snap +7 -0
- package/src/components/navbar/index.ts +22 -0
- package/src/components/notification/Notification.spec.ts +21 -0
- package/src/components/notification/Notification.vue +77 -0
- package/src/components/notification/NotificationNotice.vue +76 -0
- package/src/components/notification/__snapshots__/Notification.spec.ts.snap +10 -0
- package/src/components/notification/index.ts +121 -0
- package/src/components/numberinput/Numberinput.spec.ts +445 -0
- package/src/components/numberinput/Numberinput.vue +372 -0
- package/src/components/numberinput/index.ts +16 -0
- package/src/components/pagination/Pagination.spec.ts +94 -0
- package/src/components/pagination/Pagination.vue +434 -0
- package/src/components/pagination/PaginationButton.spec.ts +42 -0
- package/src/components/pagination/PaginationButton.vue +59 -0
- package/src/components/pagination/__snapshots__/Pagination.spec.ts.snap +22 -0
- package/src/components/pagination/__snapshots__/PaginationButton.spec.ts.snap +3 -0
- package/src/components/pagination/index.ts +19 -0
- package/src/components/pagination/types.ts +11 -0
- package/src/components/progress/Progress.spec.ts +81 -0
- package/src/components/progress/Progress.vue +168 -0
- package/src/components/progress/ProgressBar.spec.ts +45 -0
- package/src/components/progress/ProgressBar.vue +74 -0
- package/src/components/progress/__snapshots__/Progress.spec.ts.snap +7 -0
- package/src/components/progress/__snapshots__/ProgressBar.spec.ts.snap +7 -0
- package/src/components/progress/index.ts +18 -0
- package/src/components/radio/Radio.spec.ts +40 -0
- package/src/components/radio/Radio.vue +35 -0
- package/src/components/radio/RadioButton.spec.ts +40 -0
- package/src/components/radio/RadioButton.vue +69 -0
- package/src/components/radio/__snapshots__/Radio.spec.ts.snap +3 -0
- package/src/components/radio/__snapshots__/RadioButton.spec.ts.snap +3 -0
- package/src/components/radio/index.ts +18 -0
- package/src/components/rate/Rate.spec.ts +90 -0
- package/src/components/rate/Rate.vue +158 -0
- package/src/components/rate/index.ts +15 -0
- package/src/components/select/Select.spec.ts +74 -0
- package/src/components/select/Select.vue +118 -0
- package/src/components/select/__snapshots__/Select.spec.ts.snap +7 -0
- package/src/components/select/index.ts +16 -0
- package/src/components/sidebar/Sidebar.spec.ts +107 -0
- package/src/components/sidebar/Sidebar.vue +316 -0
- package/src/components/sidebar/__snapshots__/Sidebar.spec.ts.snap +25 -0
- package/src/components/sidebar/index.ts +16 -0
- package/src/components/skeleton/Skeleton.spec.ts +16 -0
- package/src/components/skeleton/Skeleton.vue +98 -0
- package/src/components/skeleton/__snapshots__/Skeleton.spec.ts.snap +7 -0
- package/src/components/skeleton/index.ts +18 -0
- package/src/components/slider/Slider.spec.ts +115 -0
- package/src/components/slider/Slider.vue +374 -0
- package/src/components/slider/SliderThumb.spec.ts +176 -0
- package/src/components/slider/SliderThumb.vue +251 -0
- package/src/components/slider/SliderTick.spec.ts +33 -0
- package/src/components/slider/SliderTick.vue +50 -0
- package/src/components/slider/__snapshots__/Slider.spec.ts.snap +12 -0
- package/src/components/slider/__snapshots__/SliderThumb.spec.ts.snap +16 -0
- package/src/components/slider/__snapshots__/SliderTick.spec.ts.snap +7 -0
- package/src/components/slider/index.ts +19 -0
- package/src/components/slider/types.ts +34 -0
- package/src/components/snackbar/Snackbar.spec.ts +35 -0
- package/src/components/snackbar/Snackbar.vue +88 -0
- package/src/components/snackbar/__snapshots__/Snackbar.spec.ts.snap +12 -0
- package/src/components/snackbar/index.ts +118 -0
- package/src/components/steps/StepItem.spec.ts +114 -0
- package/src/components/steps/StepItem.vue +26 -0
- package/src/components/steps/Steps.spec.ts +125 -0
- package/src/components/steps/Steps.vue +273 -0
- package/src/components/steps/__snapshots__/StepItem.spec.ts.snap +7 -0
- package/src/components/steps/__snapshots__/Steps.spec.ts.snap +40 -0
- package/src/components/steps/index.ts +19 -0
- package/src/components/switch/Switch.spec.ts +74 -0
- package/src/components/switch/Switch.vue +146 -0
- package/src/components/switch/__snapshots__/Switch.spec.ts.snap +3 -0
- package/src/components/switch/index.ts +16 -0
- package/src/components/table/Table.spec.ts +622 -0
- package/src/components/table/Table.vue +1770 -0
- package/src/components/table/TableColumn.spec.ts +85 -0
- package/src/components/table/TableColumn.vue +140 -0
- package/src/components/table/TableMobileSort.spec.ts +47 -0
- package/src/components/table/TableMobileSort.vue +236 -0
- package/src/components/table/TablePagination.vue +86 -0
- package/src/components/table/__snapshots__/Table.spec.ts.snap +24 -0
- package/src/components/table/__snapshots__/TableMobileSort.spec.ts.snap +12 -0
- package/src/components/table/index.ts +32 -0
- package/src/components/table/mockTableColumn.ts +110 -0
- package/src/components/table/types.ts +110 -0
- package/src/components/tabs/TabItem.spec.ts +203 -0
- package/src/components/tabs/TabItem.vue +19 -0
- package/src/components/tabs/Tabs.spec.ts +122 -0
- package/src/components/tabs/Tabs.vue +204 -0
- package/src/components/tabs/__snapshots__/TabItem.spec.ts.snap +7 -0
- package/src/components/tabs/__snapshots__/Tabs.spec.ts.snap +33 -0
- package/src/components/tabs/index.ts +19 -0
- package/src/components/tag/Tag.spec.ts +32 -0
- package/src/components/tag/Tag.vue +132 -0
- package/src/components/tag/Taglist.spec.ts +21 -0
- package/src/components/tag/Taglist.vue +16 -0
- package/src/components/tag/__snapshots__/Tag.spec.ts.snap +6 -0
- package/src/components/tag/__snapshots__/Taglist.spec.ts.snap +3 -0
- package/src/components/tag/index.ts +19 -0
- package/src/components/taginput/Taginput.spec.ts +132 -0
- package/src/components/taginput/Taginput.vue +415 -0
- package/src/components/taginput/__snapshots__/Taginput.spec.ts.snap +10 -0
- package/src/components/taginput/index.ts +16 -0
- package/src/components/timepicker/Timepicker.spec.ts +108 -0
- package/src/components/timepicker/Timepicker.vue +183 -0
- package/src/components/timepicker/__snapshots__/Timepicker.spec.ts.snap +41 -0
- package/src/components/timepicker/index.ts +17 -0
- package/src/components/toast/Toast.spec.ts +74 -0
- package/src/components/toast/Toast.vue +46 -0
- package/src/components/toast/__snapshots__/Toast.spec.ts.snap +10 -0
- package/src/components/toast/index.ts +120 -0
- package/src/components/tooltip/Tooltip.spec.ts +64 -0
- package/src/components/tooltip/Tooltip.vue +393 -0
- package/src/components/tooltip/__snapshots__/Tooltip.spec.ts.snap +12 -0
- package/src/components/tooltip/index.ts +16 -0
- package/src/components/upload/Upload.spec.ts +62 -0
- package/src/components/upload/Upload.vue +188 -0
- package/src/components/upload/__snapshots__/Upload.spec.ts.snap +3 -0
- package/src/components/upload/index.ts +15 -0
- package/src/directives/clickOutside.ts +113 -0
- package/src/directives/trapFocus.ts +61 -0
- package/src/index.ts +43 -0
- package/src/scss/buefy-build.scss +6 -0
- package/src/scss/buefy.scss +39 -0
- package/src/scss/components/_autocomplete.scss +39 -0
- package/src/scss/components/_carousel.scss +204 -0
- package/src/scss/components/_checkbox.scss +106 -0
- package/src/scss/components/_clockpicker.scss +283 -0
- package/src/scss/components/_collapse.scss +9 -0
- package/src/scss/components/_colorpicker.scss +283 -0
- package/src/scss/components/_datepicker.scss +220 -0
- package/src/scss/components/_dialog.scss +54 -0
- package/src/scss/components/_dropdown.scss +143 -0
- package/src/scss/components/_form.scss +309 -0
- package/src/scss/components/_icon.scss +16 -0
- package/src/scss/components/_image.scss +20 -0
- package/src/scss/components/_loading.scss +45 -0
- package/src/scss/components/_menu.scss +11 -0
- package/src/scss/components/_message.scss +16 -0
- package/src/scss/components/_modal.scss +37 -0
- package/src/scss/components/_navbar.scss +22 -0
- package/src/scss/components/_notices.scss +144 -0
- package/src/scss/components/_notification.scss +8 -0
- package/src/scss/components/_numberinput.scss +33 -0
- package/src/scss/components/_pagination.scss +63 -0
- package/src/scss/components/_progress.scss +105 -0
- package/src/scss/components/_radio.scss +123 -0
- package/src/scss/components/_rate.scss +72 -0
- package/src/scss/components/_select.scss +38 -0
- package/src/scss/components/_sidebar.scss +107 -0
- package/src/scss/components/_skeleton.scss +66 -0
- package/src/scss/components/_slider.scss +162 -0
- package/src/scss/components/_steps.scss +491 -0
- package/src/scss/components/_switch.scss +214 -0
- package/src/scss/components/_table.scss +322 -0
- package/src/scss/components/_tabs.scss +197 -0
- package/src/scss/components/_tag.scss +36 -0
- package/src/scss/components/_taginput.scss +73 -0
- package/src/scss/components/_timepicker.scss +73 -0
- package/src/scss/components/_tooltip.scss +192 -0
- package/src/scss/components/_upload.scss +62 -0
- package/src/scss/utils/_all.scss +4 -0
- package/src/scss/utils/_animations.scss +183 -0
- package/src/scss/utils/_functions.scss +49 -0
- package/src/scss/utils/_helpers.scss +6 -0
- package/src/scss/utils/_variables-ext.scss +2 -0
- package/src/scss/utils/_variables.scss +16 -0
- package/src/utils/CheckRadioMixin.spec.ts +28 -0
- package/src/utils/CheckRadioMixin.ts +61 -0
- package/src/utils/CompatFallthroughMixin.ts +34 -0
- package/src/utils/ConfigComponent.ts +12 -0
- package/src/utils/FormElementMixin.spec.ts +41 -0
- package/src/utils/FormElementMixin.ts +206 -0
- package/src/utils/InjectedChildMixin.ts +139 -0
- package/src/utils/MessageMixin.spec.ts +51 -0
- package/src/utils/MessageMixin.ts +138 -0
- package/src/utils/NoticeMixin.spec.ts +55 -0
- package/src/utils/NoticeMixin.ts +181 -0
- package/src/utils/ProvideInjectTypes.ts +20 -0
- package/src/utils/ProviderParentMixin.ts +105 -0
- package/src/utils/SlotComponent.spec.ts +55 -0
- package/src/utils/SlotComponent.ts +38 -0
- package/src/utils/TabbedChildMixin.ts +96 -0
- package/src/utils/TabbedMixin.ts +166 -0
- package/src/utils/TabbedTypes.ts +33 -0
- package/src/utils/TimepickerMixin.spec.ts +75 -0
- package/src/utils/TimepickerMixin.ts +767 -0
- package/src/utils/color.spec.ts +55 -0
- package/src/utils/color.ts +507 -0
- package/src/utils/config.spec.ts +11 -0
- package/src/utils/config.ts +619 -0
- package/src/utils/debounce.spec.ts +52 -0
- package/src/utils/debounce.ts +20 -0
- package/src/utils/helpers.spec.ts +257 -0
- package/src/utils/helpers.ts +527 -0
- package/src/utils/icons.ts +73 -0
- package/src/utils/plugins.ts +20 -0
- package/src/utils/ssr.ts +6 -0
- package/src/utils/vue-augmentation.ts +35 -0
|
@@ -0,0 +1,825 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var config = require('./config-DR826Ki2.js');
|
|
7
|
+
var Icon = require('./Icon-lsDKE2wQ.js');
|
|
8
|
+
var InjectedChildMixin = require('./InjectedChildMixin-CUKn09dB.js');
|
|
9
|
+
var helpers = require('./helpers.js');
|
|
10
|
+
var _pluginVue_exportHelper = require('./_plugin-vue_export-helper-Die8u8yB.js');
|
|
11
|
+
var Image = require('./Image-CocPwU3n.js');
|
|
12
|
+
var plugins = require('./plugins-DbyYGVpp.js');
|
|
13
|
+
|
|
14
|
+
var _sfc_main$2 = vue.defineComponent({
|
|
15
|
+
name: "BCarousel",
|
|
16
|
+
components: {
|
|
17
|
+
BIcon: Icon.BIcon
|
|
18
|
+
},
|
|
19
|
+
mixins: [InjectedChildMixin.ProviderParentMixin("carousel", InjectedChildMixin.Sorted)],
|
|
20
|
+
props: {
|
|
21
|
+
modelValue: {
|
|
22
|
+
type: Number,
|
|
23
|
+
default: 0
|
|
24
|
+
},
|
|
25
|
+
animated: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: "slide"
|
|
28
|
+
},
|
|
29
|
+
interval: Number,
|
|
30
|
+
hasDrag: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: true
|
|
33
|
+
},
|
|
34
|
+
autoplay: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: true
|
|
37
|
+
},
|
|
38
|
+
pauseHover: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: true
|
|
41
|
+
},
|
|
42
|
+
pauseInfo: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
default: true
|
|
45
|
+
},
|
|
46
|
+
pauseInfoType: {
|
|
47
|
+
type: String,
|
|
48
|
+
default: "is-white"
|
|
49
|
+
},
|
|
50
|
+
pauseText: {
|
|
51
|
+
type: String,
|
|
52
|
+
default: "Pause"
|
|
53
|
+
},
|
|
54
|
+
arrow: {
|
|
55
|
+
type: Boolean,
|
|
56
|
+
default: true
|
|
57
|
+
},
|
|
58
|
+
arrowHover: {
|
|
59
|
+
type: Boolean,
|
|
60
|
+
default: true
|
|
61
|
+
},
|
|
62
|
+
repeat: {
|
|
63
|
+
type: Boolean,
|
|
64
|
+
default: true
|
|
65
|
+
},
|
|
66
|
+
iconPack: String,
|
|
67
|
+
iconSize: String,
|
|
68
|
+
iconPrev: {
|
|
69
|
+
type: String,
|
|
70
|
+
default: () => {
|
|
71
|
+
return config.config.defaultIconPrev;
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
iconNext: {
|
|
75
|
+
type: String,
|
|
76
|
+
default: () => {
|
|
77
|
+
return config.config.defaultIconNext;
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
indicator: {
|
|
81
|
+
type: Boolean,
|
|
82
|
+
default: true
|
|
83
|
+
},
|
|
84
|
+
indicatorBackground: Boolean,
|
|
85
|
+
indicatorCustom: Boolean,
|
|
86
|
+
indicatorCustomSize: {
|
|
87
|
+
type: String,
|
|
88
|
+
default: "is-small"
|
|
89
|
+
},
|
|
90
|
+
indicatorInside: {
|
|
91
|
+
type: Boolean,
|
|
92
|
+
default: true
|
|
93
|
+
},
|
|
94
|
+
indicatorMode: {
|
|
95
|
+
type: String,
|
|
96
|
+
default: "click"
|
|
97
|
+
},
|
|
98
|
+
indicatorPosition: {
|
|
99
|
+
type: String,
|
|
100
|
+
default: "is-bottom"
|
|
101
|
+
},
|
|
102
|
+
indicatorStyle: {
|
|
103
|
+
type: String,
|
|
104
|
+
default: "is-dots"
|
|
105
|
+
},
|
|
106
|
+
overlay: Boolean,
|
|
107
|
+
progress: Boolean,
|
|
108
|
+
progressType: {
|
|
109
|
+
type: String,
|
|
110
|
+
default: "is-primary"
|
|
111
|
+
},
|
|
112
|
+
withCarouselList: Boolean
|
|
113
|
+
},
|
|
114
|
+
emits: {
|
|
115
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
116
|
+
change: (_index) => true,
|
|
117
|
+
click: () => true,
|
|
118
|
+
"update:modelValue": (_value) => true
|
|
119
|
+
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
120
|
+
},
|
|
121
|
+
data() {
|
|
122
|
+
return {
|
|
123
|
+
transition: "next",
|
|
124
|
+
activeChild: this.modelValue || 0,
|
|
125
|
+
isPause: false,
|
|
126
|
+
dragX: false,
|
|
127
|
+
timer: void 0
|
|
128
|
+
};
|
|
129
|
+
},
|
|
130
|
+
computed: {
|
|
131
|
+
indicatorClasses() {
|
|
132
|
+
return [
|
|
133
|
+
{
|
|
134
|
+
"has-background": this.indicatorBackground,
|
|
135
|
+
"has-custom": this.indicatorCustom,
|
|
136
|
+
"is-inside": this.indicatorInside
|
|
137
|
+
},
|
|
138
|
+
this.indicatorCustom && this.indicatorCustomSize,
|
|
139
|
+
this.indicatorInside && this.indicatorPosition
|
|
140
|
+
];
|
|
141
|
+
},
|
|
142
|
+
// checking arrows
|
|
143
|
+
hasPrev() {
|
|
144
|
+
return this.repeat || this.activeChild !== 0;
|
|
145
|
+
},
|
|
146
|
+
hasNext() {
|
|
147
|
+
return this.repeat || this.activeChild < this.childItems.length - 1;
|
|
148
|
+
},
|
|
149
|
+
activeChildIndex() {
|
|
150
|
+
const item = this.sortedItems[this.activeChild];
|
|
151
|
+
return item != null ? item.index : void 0;
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
watch: {
|
|
155
|
+
/*
|
|
156
|
+
* When v-model is changed set the new active item.
|
|
157
|
+
*/
|
|
158
|
+
modelValue(value) {
|
|
159
|
+
this.changeActive(value);
|
|
160
|
+
},
|
|
161
|
+
/*
|
|
162
|
+
* When carousel-items are updated, set active one.
|
|
163
|
+
*/
|
|
164
|
+
sortedItems(items) {
|
|
165
|
+
if (this.activeChild >= items.length && this.activeChild > 0) {
|
|
166
|
+
this.changeActive(this.activeChild - 1);
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
/*
|
|
170
|
+
* When autoplay is changed, start or pause timer accordingly
|
|
171
|
+
*/
|
|
172
|
+
autoplay(status) {
|
|
173
|
+
status ? this.startTimer() : this.pauseTimer();
|
|
174
|
+
},
|
|
175
|
+
/*
|
|
176
|
+
* Since the timer can get paused at the end, if repeat is changed we need to restart it
|
|
177
|
+
*/
|
|
178
|
+
repeat(status) {
|
|
179
|
+
if (status) {
|
|
180
|
+
this.startTimer();
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
methods: {
|
|
185
|
+
startTimer() {
|
|
186
|
+
if (!this.autoplay || this.timer) return;
|
|
187
|
+
this.isPause = false;
|
|
188
|
+
this.timer = setInterval(() => {
|
|
189
|
+
if (!this.repeat && this.activeChild >= this.childItems.length - 1) {
|
|
190
|
+
this.pauseTimer();
|
|
191
|
+
} else {
|
|
192
|
+
this.next();
|
|
193
|
+
}
|
|
194
|
+
}, this.interval || config.config.defaultCarouselInterval);
|
|
195
|
+
},
|
|
196
|
+
pauseTimer() {
|
|
197
|
+
this.isPause = true;
|
|
198
|
+
if (this.timer) {
|
|
199
|
+
clearInterval(this.timer);
|
|
200
|
+
this.timer = void 0;
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
restartTimer() {
|
|
204
|
+
this.pauseTimer();
|
|
205
|
+
this.startTimer();
|
|
206
|
+
},
|
|
207
|
+
checkPause() {
|
|
208
|
+
if (this.pauseHover && this.autoplay) {
|
|
209
|
+
this.pauseTimer();
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
/*
|
|
213
|
+
* Change the active item and emit change event.
|
|
214
|
+
* action only for animated slide, there true = next, false = prev
|
|
215
|
+
*/
|
|
216
|
+
changeActive(newIndex, direction = 0) {
|
|
217
|
+
if (this.activeChild === newIndex || isNaN(newIndex)) return;
|
|
218
|
+
direction = direction || newIndex - this.activeChild;
|
|
219
|
+
newIndex = this.repeat ? helpers.mod(newIndex, this.childItems.length) : helpers.bound(newIndex, 0, this.childItems.length - 1);
|
|
220
|
+
this.transition = direction > 0 ? "prev" : "next";
|
|
221
|
+
this.activeChild = newIndex;
|
|
222
|
+
if (newIndex !== this.modelValue) {
|
|
223
|
+
this.$emit("update:modelValue", newIndex);
|
|
224
|
+
}
|
|
225
|
+
this.restartTimer();
|
|
226
|
+
this.$emit("change", newIndex);
|
|
227
|
+
},
|
|
228
|
+
// Indicator trigger when change active item.
|
|
229
|
+
modeChange(trigger, value) {
|
|
230
|
+
if (this.indicatorMode === trigger) {
|
|
231
|
+
return this.changeActive(value);
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
prev() {
|
|
235
|
+
this.changeActive(this.activeChild - 1, -1);
|
|
236
|
+
},
|
|
237
|
+
next() {
|
|
238
|
+
this.changeActive(this.activeChild + 1, 1);
|
|
239
|
+
},
|
|
240
|
+
// handle drag event
|
|
241
|
+
dragStart(event) {
|
|
242
|
+
if (!this.hasDrag || !event.target.draggable) return;
|
|
243
|
+
const touches = event.touches;
|
|
244
|
+
this.dragX = touches ? event.changedTouches[0].pageX : event.pageX;
|
|
245
|
+
if (touches) {
|
|
246
|
+
this.pauseTimer();
|
|
247
|
+
} else {
|
|
248
|
+
event.preventDefault();
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
dragEnd(event) {
|
|
252
|
+
if (this.dragX === false) return;
|
|
253
|
+
const touches = event.touches;
|
|
254
|
+
const detected = touches ? event.changedTouches[0].pageX : event.pageX;
|
|
255
|
+
const diffX = detected - this.dragX;
|
|
256
|
+
if (Math.abs(diffX) > 30) {
|
|
257
|
+
if (diffX < 0) {
|
|
258
|
+
this.next();
|
|
259
|
+
} else {
|
|
260
|
+
this.prev();
|
|
261
|
+
}
|
|
262
|
+
} else {
|
|
263
|
+
event.target.click();
|
|
264
|
+
this.sortedItems[this.activeChild].$emit("click");
|
|
265
|
+
this.$emit("click");
|
|
266
|
+
}
|
|
267
|
+
if (touches) {
|
|
268
|
+
this.startTimer();
|
|
269
|
+
}
|
|
270
|
+
this.dragX = false;
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
mounted() {
|
|
274
|
+
this.startTimer();
|
|
275
|
+
},
|
|
276
|
+
beforeUnmount() {
|
|
277
|
+
this.pauseTimer();
|
|
278
|
+
}
|
|
279
|
+
});
|
|
280
|
+
|
|
281
|
+
const _hoisted_1$2 = ["value", "max"];
|
|
282
|
+
const _hoisted_2 = {
|
|
283
|
+
key: 1,
|
|
284
|
+
class: "carousel-pause"
|
|
285
|
+
};
|
|
286
|
+
const _hoisted_3 = ["onMouseover", "onClick"];
|
|
287
|
+
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
288
|
+
const _component_b_icon = vue.resolveComponent("b-icon");
|
|
289
|
+
return vue.openBlock(), vue.createElementBlock(
|
|
290
|
+
"div",
|
|
291
|
+
{
|
|
292
|
+
class: vue.normalizeClass(["carousel", { "is-overlay": _ctx.overlay }]),
|
|
293
|
+
onMouseenter: _cache[4] || (_cache[4] = (...args) => _ctx.checkPause && _ctx.checkPause(...args)),
|
|
294
|
+
onMouseleave: _cache[5] || (_cache[5] = (...args) => _ctx.startTimer && _ctx.startTimer(...args))
|
|
295
|
+
},
|
|
296
|
+
[
|
|
297
|
+
_ctx.progress ? (vue.openBlock(), vue.createElementBlock("progress", {
|
|
298
|
+
key: 0,
|
|
299
|
+
class: vue.normalizeClass(["progress", _ctx.progressType]),
|
|
300
|
+
value: _ctx.activeChild,
|
|
301
|
+
max: _ctx.childItems.length - 1
|
|
302
|
+
}, vue.toDisplayString(_ctx.childItems.length - 1), 11, _hoisted_1$2)) : vue.createCommentVNode("v-if", true),
|
|
303
|
+
vue.createElementVNode(
|
|
304
|
+
"div",
|
|
305
|
+
{
|
|
306
|
+
class: "carousel-items",
|
|
307
|
+
onMousedown: _cache[0] || (_cache[0] = (...args) => _ctx.dragStart && _ctx.dragStart(...args)),
|
|
308
|
+
onMouseup: _cache[1] || (_cache[1] = (...args) => _ctx.dragEnd && _ctx.dragEnd(...args)),
|
|
309
|
+
onTouchstart: _cache[2] || (_cache[2] = vue.withModifiers((...args) => _ctx.dragStart && _ctx.dragStart(...args), ["stop"])),
|
|
310
|
+
onTouchend: _cache[3] || (_cache[3] = vue.withModifiers((...args) => _ctx.dragEnd && _ctx.dragEnd(...args), ["stop"]))
|
|
311
|
+
},
|
|
312
|
+
[
|
|
313
|
+
vue.renderSlot(_ctx.$slots, "default"),
|
|
314
|
+
_ctx.arrow ? (vue.openBlock(), vue.createElementBlock(
|
|
315
|
+
"div",
|
|
316
|
+
{
|
|
317
|
+
key: 0,
|
|
318
|
+
class: vue.normalizeClass(["carousel-arrow", { "is-hovered": _ctx.arrowHover }])
|
|
319
|
+
},
|
|
320
|
+
[
|
|
321
|
+
vue.withDirectives(vue.createVNode(_component_b_icon, {
|
|
322
|
+
class: "has-icons-left",
|
|
323
|
+
onClick: _ctx.prev,
|
|
324
|
+
pack: _ctx.iconPack,
|
|
325
|
+
icon: _ctx.iconPrev,
|
|
326
|
+
size: _ctx.iconSize,
|
|
327
|
+
both: ""
|
|
328
|
+
}, null, 8, ["onClick", "pack", "icon", "size"]), [
|
|
329
|
+
[vue.vShow, _ctx.hasPrev]
|
|
330
|
+
]),
|
|
331
|
+
vue.withDirectives(vue.createVNode(_component_b_icon, {
|
|
332
|
+
class: "has-icons-right",
|
|
333
|
+
onClick: _ctx.next,
|
|
334
|
+
pack: _ctx.iconPack,
|
|
335
|
+
icon: _ctx.iconNext,
|
|
336
|
+
size: _ctx.iconSize,
|
|
337
|
+
both: ""
|
|
338
|
+
}, null, 8, ["onClick", "pack", "icon", "size"]), [
|
|
339
|
+
[vue.vShow, _ctx.hasNext]
|
|
340
|
+
])
|
|
341
|
+
],
|
|
342
|
+
2
|
|
343
|
+
/* CLASS */
|
|
344
|
+
)) : vue.createCommentVNode("v-if", true)
|
|
345
|
+
],
|
|
346
|
+
32
|
|
347
|
+
/* NEED_HYDRATION */
|
|
348
|
+
),
|
|
349
|
+
_ctx.autoplay && _ctx.pauseHover && _ctx.pauseInfo && _ctx.isPause ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
|
|
350
|
+
vue.createElementVNode(
|
|
351
|
+
"span",
|
|
352
|
+
{
|
|
353
|
+
class: vue.normalizeClass(["tag", _ctx.pauseInfoType])
|
|
354
|
+
},
|
|
355
|
+
vue.toDisplayString(_ctx.pauseText),
|
|
356
|
+
3
|
|
357
|
+
/* TEXT, CLASS */
|
|
358
|
+
)
|
|
359
|
+
])) : vue.createCommentVNode("v-if", true),
|
|
360
|
+
_ctx.withCarouselList && !_ctx.indicator ? vue.renderSlot(_ctx.$slots, "list", {
|
|
361
|
+
key: 2,
|
|
362
|
+
active: _ctx.activeChild,
|
|
363
|
+
switch: _ctx.changeActive
|
|
364
|
+
}) : vue.createCommentVNode("v-if", true),
|
|
365
|
+
_ctx.indicator ? (vue.openBlock(), vue.createElementBlock(
|
|
366
|
+
"div",
|
|
367
|
+
{
|
|
368
|
+
key: 3,
|
|
369
|
+
class: vue.normalizeClass(["carousel-indicator", _ctx.indicatorClasses])
|
|
370
|
+
},
|
|
371
|
+
[
|
|
372
|
+
(vue.openBlock(true), vue.createElementBlock(
|
|
373
|
+
vue.Fragment,
|
|
374
|
+
null,
|
|
375
|
+
vue.renderList(_ctx.sortedItems, (item, index) => {
|
|
376
|
+
return vue.openBlock(), vue.createElementBlock("a", {
|
|
377
|
+
class: vue.normalizeClass(["indicator-item", { "is-active": item.isActive }]),
|
|
378
|
+
onMouseover: ($event) => _ctx.modeChange("hover", index),
|
|
379
|
+
onClick: ($event) => _ctx.modeChange("click", index),
|
|
380
|
+
key: item.uniqueValue
|
|
381
|
+
}, [
|
|
382
|
+
vue.renderSlot(_ctx.$slots, "indicators", { i: index }, () => [
|
|
383
|
+
vue.createElementVNode(
|
|
384
|
+
"span",
|
|
385
|
+
{
|
|
386
|
+
class: vue.normalizeClass(["indicator-style", _ctx.indicatorStyle])
|
|
387
|
+
},
|
|
388
|
+
null,
|
|
389
|
+
2
|
|
390
|
+
/* CLASS */
|
|
391
|
+
)
|
|
392
|
+
])
|
|
393
|
+
], 42, _hoisted_3);
|
|
394
|
+
}),
|
|
395
|
+
128
|
|
396
|
+
/* KEYED_FRAGMENT */
|
|
397
|
+
))
|
|
398
|
+
],
|
|
399
|
+
2
|
|
400
|
+
/* CLASS */
|
|
401
|
+
)) : vue.createCommentVNode("v-if", true),
|
|
402
|
+
_ctx.overlay ? vue.renderSlot(_ctx.$slots, "overlay", { key: 4 }) : vue.createCommentVNode("v-if", true)
|
|
403
|
+
],
|
|
404
|
+
34
|
|
405
|
+
/* CLASS, NEED_HYDRATION */
|
|
406
|
+
);
|
|
407
|
+
}
|
|
408
|
+
var Carousel = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$2, [["render", _sfc_render$2]]);
|
|
409
|
+
|
|
410
|
+
var _sfc_main$1 = vue.defineComponent({
|
|
411
|
+
name: "BCarouselItem",
|
|
412
|
+
mixins: [InjectedChildMixin.InjectedChildMixin("carousel", InjectedChildMixin.Sorted$1)],
|
|
413
|
+
data() {
|
|
414
|
+
return {
|
|
415
|
+
transitionName: null
|
|
416
|
+
};
|
|
417
|
+
},
|
|
418
|
+
computed: {
|
|
419
|
+
transition() {
|
|
420
|
+
if (this.parent.animated === "fade") {
|
|
421
|
+
return "fade";
|
|
422
|
+
} else if (this.parent.transition) {
|
|
423
|
+
return "slide-" + this.parent.transition;
|
|
424
|
+
} else {
|
|
425
|
+
return void 0;
|
|
426
|
+
}
|
|
427
|
+
},
|
|
428
|
+
isActive() {
|
|
429
|
+
return this.parent.activeChildIndex === this.index;
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
});
|
|
433
|
+
|
|
434
|
+
const _hoisted_1$1 = { class: "carousel-item" };
|
|
435
|
+
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
436
|
+
return vue.openBlock(), vue.createBlock(vue.Transition, {
|
|
437
|
+
name: _ctx.transition,
|
|
438
|
+
persisted: ""
|
|
439
|
+
}, {
|
|
440
|
+
default: vue.withCtx(() => [
|
|
441
|
+
vue.withDirectives(vue.createElementVNode(
|
|
442
|
+
"div",
|
|
443
|
+
_hoisted_1$1,
|
|
444
|
+
[
|
|
445
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
446
|
+
],
|
|
447
|
+
512
|
|
448
|
+
/* NEED_PATCH */
|
|
449
|
+
), [
|
|
450
|
+
[vue.vShow, _ctx.isActive]
|
|
451
|
+
])
|
|
452
|
+
]),
|
|
453
|
+
_: 3
|
|
454
|
+
/* FORWARDED */
|
|
455
|
+
}, 8, ["name"]);
|
|
456
|
+
}
|
|
457
|
+
var CarouselItem = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
|
|
458
|
+
|
|
459
|
+
var __defProp = Object.defineProperty;
|
|
460
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
461
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
462
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
463
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
464
|
+
var __spreadValues = (a, b) => {
|
|
465
|
+
for (var prop in b || (b = {}))
|
|
466
|
+
if (__hasOwnProp.call(b, prop))
|
|
467
|
+
__defNormalProp(a, prop, b[prop]);
|
|
468
|
+
if (__getOwnPropSymbols)
|
|
469
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
470
|
+
if (__propIsEnum.call(b, prop))
|
|
471
|
+
__defNormalProp(a, prop, b[prop]);
|
|
472
|
+
}
|
|
473
|
+
return a;
|
|
474
|
+
};
|
|
475
|
+
var _sfc_main = vue.defineComponent({
|
|
476
|
+
name: "BCarouselList",
|
|
477
|
+
components: {
|
|
478
|
+
BIcon: Icon.BIcon,
|
|
479
|
+
BImage: Image.Image
|
|
480
|
+
},
|
|
481
|
+
props: {
|
|
482
|
+
data: {
|
|
483
|
+
type: Array,
|
|
484
|
+
default: () => []
|
|
485
|
+
},
|
|
486
|
+
modelValue: {
|
|
487
|
+
type: Number,
|
|
488
|
+
default: 0
|
|
489
|
+
},
|
|
490
|
+
scrollValue: {
|
|
491
|
+
type: Number,
|
|
492
|
+
default: 0
|
|
493
|
+
},
|
|
494
|
+
hasDrag: {
|
|
495
|
+
type: Boolean,
|
|
496
|
+
default: true
|
|
497
|
+
},
|
|
498
|
+
hasGrayscale: Boolean,
|
|
499
|
+
hasOpacity: Boolean,
|
|
500
|
+
repeat: Boolean,
|
|
501
|
+
itemsToShow: {
|
|
502
|
+
type: Number,
|
|
503
|
+
default: 4
|
|
504
|
+
},
|
|
505
|
+
itemsToList: {
|
|
506
|
+
type: Number,
|
|
507
|
+
default: 1
|
|
508
|
+
},
|
|
509
|
+
asIndicator: Boolean,
|
|
510
|
+
arrow: {
|
|
511
|
+
type: Boolean,
|
|
512
|
+
default: true
|
|
513
|
+
},
|
|
514
|
+
arrowHover: {
|
|
515
|
+
type: Boolean,
|
|
516
|
+
default: true
|
|
517
|
+
},
|
|
518
|
+
iconPack: String,
|
|
519
|
+
iconSize: String,
|
|
520
|
+
iconPrev: {
|
|
521
|
+
type: String,
|
|
522
|
+
default: () => {
|
|
523
|
+
return config.config.defaultIconPrev;
|
|
524
|
+
}
|
|
525
|
+
},
|
|
526
|
+
iconNext: {
|
|
527
|
+
type: String,
|
|
528
|
+
default: () => {
|
|
529
|
+
return config.config.defaultIconNext;
|
|
530
|
+
}
|
|
531
|
+
},
|
|
532
|
+
breakpoints: {
|
|
533
|
+
type: Object,
|
|
534
|
+
default: () => ({})
|
|
535
|
+
}
|
|
536
|
+
},
|
|
537
|
+
emits: {
|
|
538
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
539
|
+
switch: (_value) => true,
|
|
540
|
+
"update:modelValue": (_value) => true,
|
|
541
|
+
"updated:scroll": (_index) => true
|
|
542
|
+
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
543
|
+
},
|
|
544
|
+
data() {
|
|
545
|
+
return {
|
|
546
|
+
activeItem: this.modelValue,
|
|
547
|
+
scrollIndex: this.asIndicator ? this.scrollValue : this.modelValue,
|
|
548
|
+
delta: 0,
|
|
549
|
+
dragX: false,
|
|
550
|
+
hold: 0,
|
|
551
|
+
windowWidth: 0,
|
|
552
|
+
touch: false,
|
|
553
|
+
observer: null,
|
|
554
|
+
refresh_: 0
|
|
555
|
+
};
|
|
556
|
+
},
|
|
557
|
+
computed: {
|
|
558
|
+
dragging() {
|
|
559
|
+
return this.dragX !== false;
|
|
560
|
+
},
|
|
561
|
+
listClass() {
|
|
562
|
+
return [
|
|
563
|
+
{
|
|
564
|
+
"has-grayscale": this.settings.hasGrayscale,
|
|
565
|
+
"has-opacity": this.settings.hasOpacity,
|
|
566
|
+
"is-dragging": this.dragging
|
|
567
|
+
}
|
|
568
|
+
];
|
|
569
|
+
},
|
|
570
|
+
itemStyle() {
|
|
571
|
+
return `width: ${this.itemWidth}px;`;
|
|
572
|
+
},
|
|
573
|
+
translation() {
|
|
574
|
+
return -helpers.bound(
|
|
575
|
+
this.delta + this.scrollIndex * this.itemWidth,
|
|
576
|
+
0,
|
|
577
|
+
(this.data.length - this.settings.itemsToShow) * this.itemWidth
|
|
578
|
+
);
|
|
579
|
+
},
|
|
580
|
+
total() {
|
|
581
|
+
return this.data.length - this.settings.itemsToShow;
|
|
582
|
+
},
|
|
583
|
+
hasPrev() {
|
|
584
|
+
return this.settings.repeat || this.scrollIndex > 0;
|
|
585
|
+
},
|
|
586
|
+
hasNext() {
|
|
587
|
+
return this.settings.repeat || this.scrollIndex < this.total;
|
|
588
|
+
},
|
|
589
|
+
breakpointKeys() {
|
|
590
|
+
return Object.keys(this.breakpoints).sort((a, b) => +b - +a);
|
|
591
|
+
},
|
|
592
|
+
settings() {
|
|
593
|
+
const breakpoint = this.breakpointKeys.filter((breakpoint2) => {
|
|
594
|
+
if (this.windowWidth >= +breakpoint2) {
|
|
595
|
+
return true;
|
|
596
|
+
} else {
|
|
597
|
+
return false;
|
|
598
|
+
}
|
|
599
|
+
})[0];
|
|
600
|
+
if (breakpoint) {
|
|
601
|
+
return __spreadValues(__spreadValues({}, this.$props), this.breakpoints[+breakpoint]);
|
|
602
|
+
}
|
|
603
|
+
return this.$props;
|
|
604
|
+
},
|
|
605
|
+
itemWidth() {
|
|
606
|
+
if (this.windowWidth) {
|
|
607
|
+
this.refresh_;
|
|
608
|
+
const rect = this.$el.getBoundingClientRect();
|
|
609
|
+
return rect.width / this.settings.itemsToShow;
|
|
610
|
+
}
|
|
611
|
+
return 0;
|
|
612
|
+
}
|
|
613
|
+
},
|
|
614
|
+
watch: {
|
|
615
|
+
/*
|
|
616
|
+
* When v-model is changed set the new active item.
|
|
617
|
+
*/
|
|
618
|
+
modelValue(value) {
|
|
619
|
+
this.switchTo(this.asIndicator ? value - (this.itemsToShow - 3) / 2 : value);
|
|
620
|
+
if (this.activeItem !== value) {
|
|
621
|
+
this.activeItem = helpers.bound(value, 0, this.data.length - 1);
|
|
622
|
+
}
|
|
623
|
+
},
|
|
624
|
+
scrollValue(value) {
|
|
625
|
+
this.switchTo(value);
|
|
626
|
+
}
|
|
627
|
+
},
|
|
628
|
+
methods: {
|
|
629
|
+
resized() {
|
|
630
|
+
this.windowWidth = window.innerWidth;
|
|
631
|
+
},
|
|
632
|
+
switchTo(newIndex) {
|
|
633
|
+
if (newIndex === this.scrollIndex || isNaN(newIndex)) {
|
|
634
|
+
return;
|
|
635
|
+
}
|
|
636
|
+
if (this.settings.repeat) {
|
|
637
|
+
newIndex = helpers.mod(newIndex, this.total + 1);
|
|
638
|
+
}
|
|
639
|
+
newIndex = helpers.bound(newIndex, 0, this.total);
|
|
640
|
+
this.scrollIndex = newIndex;
|
|
641
|
+
if (!this.asIndicator && this.modelValue !== newIndex) {
|
|
642
|
+
this.$emit("update:modelValue", newIndex);
|
|
643
|
+
} else if (this.scrollIndex !== newIndex) {
|
|
644
|
+
this.$emit("updated:scroll", newIndex);
|
|
645
|
+
}
|
|
646
|
+
},
|
|
647
|
+
next() {
|
|
648
|
+
this.switchTo(this.scrollIndex + this.settings.itemsToList);
|
|
649
|
+
},
|
|
650
|
+
prev() {
|
|
651
|
+
this.switchTo(this.scrollIndex - this.settings.itemsToList);
|
|
652
|
+
},
|
|
653
|
+
checkAsIndicator(value, event) {
|
|
654
|
+
if (!this.asIndicator) return;
|
|
655
|
+
const dragEndX = event.changedTouches ? event.changedTouches[0].clientX : event.clientX;
|
|
656
|
+
if (this.hold - Date.now() > 2e3 || Math.abs(+this.dragX - dragEndX) > 10) return;
|
|
657
|
+
this.dragX = false;
|
|
658
|
+
this.hold = 0;
|
|
659
|
+
event.preventDefault();
|
|
660
|
+
this.activeItem = value;
|
|
661
|
+
this.$emit("switch", value);
|
|
662
|
+
},
|
|
663
|
+
// handle drag event
|
|
664
|
+
dragStart(event) {
|
|
665
|
+
if (this.dragging || !this.settings.hasDrag || event.button !== 0 && event.type !== "touchstart") return;
|
|
666
|
+
this.hold = Date.now();
|
|
667
|
+
this.touch = !!event.touches;
|
|
668
|
+
this.dragX = this.touch ? event.touches[0].clientX : event.clientX;
|
|
669
|
+
window.addEventListener(this.touch ? "touchmove" : "mousemove", this.dragMove);
|
|
670
|
+
window.addEventListener(this.touch ? "touchend" : "mouseup", this.dragEnd);
|
|
671
|
+
},
|
|
672
|
+
dragMove(event) {
|
|
673
|
+
if (!this.dragging) return;
|
|
674
|
+
const dragEndX = event.touches ? (event.changedTouches[0] || event.touches[0]).clientX : event.clientX;
|
|
675
|
+
this.delta = +this.dragX - dragEndX;
|
|
676
|
+
if (!event.touches) {
|
|
677
|
+
event.preventDefault();
|
|
678
|
+
}
|
|
679
|
+
},
|
|
680
|
+
dragEnd() {
|
|
681
|
+
if (!this.dragging && !this.hold) return;
|
|
682
|
+
if (this.hold) {
|
|
683
|
+
const signCheck = helpers.sign(this.delta);
|
|
684
|
+
const results = Math.round(Math.abs(this.delta / this.itemWidth) + 0.15);
|
|
685
|
+
this.switchTo(this.scrollIndex + signCheck * results);
|
|
686
|
+
}
|
|
687
|
+
this.delta = 0;
|
|
688
|
+
this.dragX = false;
|
|
689
|
+
window.removeEventListener(this.touch ? "touchmove" : "mousemove", this.dragMove);
|
|
690
|
+
window.removeEventListener(this.touch ? "touchend" : "mouseup", this.dragEnd);
|
|
691
|
+
},
|
|
692
|
+
refresh() {
|
|
693
|
+
this.$nextTick(() => {
|
|
694
|
+
this.refresh_++;
|
|
695
|
+
});
|
|
696
|
+
}
|
|
697
|
+
},
|
|
698
|
+
mounted() {
|
|
699
|
+
if (typeof window !== "undefined") {
|
|
700
|
+
if (window.ResizeObserver) {
|
|
701
|
+
this.observer = new ResizeObserver(this.refresh);
|
|
702
|
+
this.observer.observe(this.$el);
|
|
703
|
+
}
|
|
704
|
+
window.addEventListener("resize", this.resized);
|
|
705
|
+
document.addEventListener("animationend", this.refresh);
|
|
706
|
+
document.addEventListener("transitionend", this.refresh);
|
|
707
|
+
document.addEventListener("transitionstart", this.refresh);
|
|
708
|
+
this.resized();
|
|
709
|
+
}
|
|
710
|
+
if (this.$attrs.config) {
|
|
711
|
+
throw new Error("The config prop was removed, you need to use v-bind instead");
|
|
712
|
+
}
|
|
713
|
+
},
|
|
714
|
+
beforeUnmount() {
|
|
715
|
+
if (typeof window !== "undefined") {
|
|
716
|
+
if (window.ResizeObserver) {
|
|
717
|
+
this.observer.disconnect();
|
|
718
|
+
}
|
|
719
|
+
window.removeEventListener("resize", this.resized);
|
|
720
|
+
document.removeEventListener("animationend", this.refresh);
|
|
721
|
+
document.removeEventListener("transitionend", this.refresh);
|
|
722
|
+
document.removeEventListener("transitionstart", this.refresh);
|
|
723
|
+
this.dragEnd();
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
});
|
|
727
|
+
|
|
728
|
+
const _hoisted_1 = ["onMouseup", "onTouchend"];
|
|
729
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
730
|
+
const _component_b_image = vue.resolveComponent("b-image");
|
|
731
|
+
const _component_b_icon = vue.resolveComponent("b-icon");
|
|
732
|
+
return vue.openBlock(), vue.createElementBlock(
|
|
733
|
+
"div",
|
|
734
|
+
{
|
|
735
|
+
class: vue.normalizeClass(["carousel-list", { "has-shadow": _ctx.scrollIndex > 0 }]),
|
|
736
|
+
onMousedown: _cache[0] || (_cache[0] = vue.withModifiers((...args) => _ctx.dragStart && _ctx.dragStart(...args), ["prevent"])),
|
|
737
|
+
onTouchstart: _cache[1] || (_cache[1] = (...args) => _ctx.dragStart && _ctx.dragStart(...args))
|
|
738
|
+
},
|
|
739
|
+
[
|
|
740
|
+
vue.createElementVNode(
|
|
741
|
+
"div",
|
|
742
|
+
{
|
|
743
|
+
class: vue.normalizeClass(["carousel-slides", _ctx.listClass]),
|
|
744
|
+
style: vue.normalizeStyle("transform:translateX(" + _ctx.translation + "px)")
|
|
745
|
+
},
|
|
746
|
+
[
|
|
747
|
+
(vue.openBlock(true), vue.createElementBlock(
|
|
748
|
+
vue.Fragment,
|
|
749
|
+
null,
|
|
750
|
+
vue.renderList(_ctx.data, (list, index) => {
|
|
751
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
752
|
+
class: vue.normalizeClass(["carousel-slide", { "is-active": _ctx.asIndicator ? _ctx.activeItem === index : _ctx.scrollIndex === index }]),
|
|
753
|
+
onMouseup: ($event) => _ctx.checkAsIndicator(index, $event),
|
|
754
|
+
onTouchend: ($event) => _ctx.checkAsIndicator(index, $event),
|
|
755
|
+
key: index,
|
|
756
|
+
style: vue.normalizeStyle(_ctx.itemStyle)
|
|
757
|
+
}, [
|
|
758
|
+
vue.renderSlot(_ctx.$slots, "item", vue.mergeProps({
|
|
759
|
+
index,
|
|
760
|
+
active: _ctx.activeItem,
|
|
761
|
+
scroll: _ctx.scrollIndex
|
|
762
|
+
}, list, { list }), () => [
|
|
763
|
+
vue.createVNode(_component_b_image, vue.mergeProps({
|
|
764
|
+
src: list.image
|
|
765
|
+
}, list), null, 16, ["src"])
|
|
766
|
+
])
|
|
767
|
+
], 46, _hoisted_1);
|
|
768
|
+
}),
|
|
769
|
+
128
|
|
770
|
+
/* KEYED_FRAGMENT */
|
|
771
|
+
))
|
|
772
|
+
],
|
|
773
|
+
6
|
|
774
|
+
/* CLASS, STYLE */
|
|
775
|
+
),
|
|
776
|
+
_ctx.arrow ? (vue.openBlock(), vue.createElementBlock(
|
|
777
|
+
"div",
|
|
778
|
+
{
|
|
779
|
+
key: 0,
|
|
780
|
+
class: vue.normalizeClass(["carousel-arrow", { "is-hovered": _ctx.settings.arrowHover }])
|
|
781
|
+
},
|
|
782
|
+
[
|
|
783
|
+
vue.withDirectives(vue.createVNode(_component_b_icon, {
|
|
784
|
+
class: "has-icons-left",
|
|
785
|
+
onClick: vue.withModifiers(_ctx.prev, ["prevent"]),
|
|
786
|
+
pack: _ctx.settings.iconPack,
|
|
787
|
+
icon: _ctx.settings.iconPrev,
|
|
788
|
+
size: _ctx.settings.iconSize,
|
|
789
|
+
both: ""
|
|
790
|
+
}, null, 8, ["onClick", "pack", "icon", "size"]), [
|
|
791
|
+
[vue.vShow, _ctx.hasPrev]
|
|
792
|
+
]),
|
|
793
|
+
vue.withDirectives(vue.createVNode(_component_b_icon, {
|
|
794
|
+
class: "has-icons-right",
|
|
795
|
+
onClick: vue.withModifiers(_ctx.next, ["prevent"]),
|
|
796
|
+
pack: _ctx.settings.iconPack,
|
|
797
|
+
icon: _ctx.settings.iconNext,
|
|
798
|
+
size: _ctx.settings.iconSize,
|
|
799
|
+
both: ""
|
|
800
|
+
}, null, 8, ["onClick", "pack", "icon", "size"]), [
|
|
801
|
+
[vue.vShow, _ctx.hasNext]
|
|
802
|
+
])
|
|
803
|
+
],
|
|
804
|
+
2
|
|
805
|
+
/* CLASS */
|
|
806
|
+
)) : vue.createCommentVNode("v-if", true)
|
|
807
|
+
],
|
|
808
|
+
34
|
|
809
|
+
/* CLASS, NEED_HYDRATION */
|
|
810
|
+
);
|
|
811
|
+
}
|
|
812
|
+
var CarouselList = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
813
|
+
|
|
814
|
+
const Plugin = {
|
|
815
|
+
install(Vue) {
|
|
816
|
+
plugins.registerComponent(Vue, Carousel);
|
|
817
|
+
plugins.registerComponent(Vue, CarouselItem);
|
|
818
|
+
plugins.registerComponent(Vue, CarouselList);
|
|
819
|
+
}
|
|
820
|
+
};
|
|
821
|
+
|
|
822
|
+
exports.BCarousel = Carousel;
|
|
823
|
+
exports.BCarouselItem = CarouselItem;
|
|
824
|
+
exports.BCarouselList = CarouselList;
|
|
825
|
+
exports.default = Plugin;
|