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,281 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var Icon = require('./Icon-lsDKE2wQ.js');
|
|
7
|
+
var Progress = require('./Progress-DT9Qc8Id.js');
|
|
8
|
+
var MessageMixin = require('./MessageMixin-bGuuzfev.js');
|
|
9
|
+
var _pluginVue_exportHelper = require('./_plugin-vue_export-helper-Die8u8yB.js');
|
|
10
|
+
var config = require('./config-DR826Ki2.js');
|
|
11
|
+
var helpers = require('./helpers.js');
|
|
12
|
+
var NoticeMixin = require('./NoticeMixin--3RjH43z.js');
|
|
13
|
+
var plugins = require('./plugins-DbyYGVpp.js');
|
|
14
|
+
|
|
15
|
+
const Notification$1 = vue.defineComponent({
|
|
16
|
+
name: "BNotification",
|
|
17
|
+
components: {
|
|
18
|
+
BIcon: Icon.BIcon,
|
|
19
|
+
// directly registers Progress
|
|
20
|
+
// in case Notification is programmatically opened
|
|
21
|
+
BProgress: Progress.Progress
|
|
22
|
+
},
|
|
23
|
+
mixins: [MessageMixin.MessageMixin],
|
|
24
|
+
props: {
|
|
25
|
+
position: String,
|
|
26
|
+
ariaCloseLabel: String,
|
|
27
|
+
animation: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: "fade"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
const _hoisted_1 = ["aria-label"];
|
|
35
|
+
const _hoisted_2 = {
|
|
36
|
+
key: 1,
|
|
37
|
+
class: "media"
|
|
38
|
+
};
|
|
39
|
+
const _hoisted_3 = {
|
|
40
|
+
key: 0,
|
|
41
|
+
class: "media-left"
|
|
42
|
+
};
|
|
43
|
+
const _hoisted_4 = { class: "media-content" };
|
|
44
|
+
const _hoisted_5 = ["innerHTML"];
|
|
45
|
+
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
46
|
+
const _component_b_icon = vue.resolveComponent("b-icon");
|
|
47
|
+
const _component_b_progress = vue.resolveComponent("b-progress");
|
|
48
|
+
return vue.openBlock(), vue.createBlock(vue.Transition, {
|
|
49
|
+
name: _ctx.animation,
|
|
50
|
+
persisted: ""
|
|
51
|
+
}, {
|
|
52
|
+
default: vue.withCtx(() => [
|
|
53
|
+
vue.withDirectives(vue.createElementVNode(
|
|
54
|
+
"article",
|
|
55
|
+
{
|
|
56
|
+
class: vue.normalizeClass(["notification", [_ctx.type, _ctx.position]]),
|
|
57
|
+
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.click && _ctx.click(...args))
|
|
58
|
+
},
|
|
59
|
+
[
|
|
60
|
+
_ctx.closable ? (vue.openBlock(), vue.createElementBlock("button", {
|
|
61
|
+
key: 0,
|
|
62
|
+
class: "delete",
|
|
63
|
+
type: "button",
|
|
64
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.close && _ctx.close(...args)),
|
|
65
|
+
"aria-label": _ctx.ariaCloseLabel
|
|
66
|
+
}, null, 8, _hoisted_1)) : vue.createCommentVNode("v-if", true),
|
|
67
|
+
_ctx.$slots.default || _ctx.message ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
|
|
68
|
+
_ctx.computedIcon && _ctx.hasIcon ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3, [
|
|
69
|
+
vue.createVNode(_component_b_icon, {
|
|
70
|
+
icon: _ctx.computedIcon,
|
|
71
|
+
pack: _ctx.iconPack,
|
|
72
|
+
size: _ctx.newIconSize,
|
|
73
|
+
both: "",
|
|
74
|
+
"aria-hidden": ""
|
|
75
|
+
}, null, 8, ["icon", "pack", "size"])
|
|
76
|
+
])) : vue.createCommentVNode("v-if", true),
|
|
77
|
+
vue.createElementVNode("div", _hoisted_4, [
|
|
78
|
+
_ctx.$slots.default ? vue.renderSlot(_ctx.$slots, "default", { key: 0 }) : (vue.openBlock(), vue.createElementBlock(
|
|
79
|
+
vue.Fragment,
|
|
80
|
+
{ key: 1 },
|
|
81
|
+
[
|
|
82
|
+
vue.createCommentVNode(" eslint-disable-next-line vue/no-v-html "),
|
|
83
|
+
vue.createElementVNode("p", {
|
|
84
|
+
class: "text",
|
|
85
|
+
innerHTML: _ctx.message
|
|
86
|
+
}, null, 8, _hoisted_5)
|
|
87
|
+
],
|
|
88
|
+
64
|
|
89
|
+
/* STABLE_FRAGMENT */
|
|
90
|
+
))
|
|
91
|
+
])
|
|
92
|
+
])) : vue.createCommentVNode("v-if", true),
|
|
93
|
+
_ctx.progressBar ? (vue.openBlock(), vue.createBlock(_component_b_progress, {
|
|
94
|
+
key: 2,
|
|
95
|
+
class: "auto-close-progress",
|
|
96
|
+
value: _ctx.remainingTime - 1,
|
|
97
|
+
max: _ctx.duration / 1e3 - 1,
|
|
98
|
+
type: _ctx.type,
|
|
99
|
+
rounded: false
|
|
100
|
+
}, null, 8, ["value", "max", "type"])) : vue.createCommentVNode("v-if", true)
|
|
101
|
+
],
|
|
102
|
+
2
|
|
103
|
+
/* CLASS */
|
|
104
|
+
), [
|
|
105
|
+
[vue.vShow, _ctx.isActive]
|
|
106
|
+
])
|
|
107
|
+
]),
|
|
108
|
+
_: 3
|
|
109
|
+
/* FORWARDED */
|
|
110
|
+
}, 8, ["name"]);
|
|
111
|
+
}
|
|
112
|
+
var Notification = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(Notification$1, [["render", _sfc_render$1]]);
|
|
113
|
+
|
|
114
|
+
const NotificationNotice$1 = vue.defineComponent({
|
|
115
|
+
name: "BNotificationNotice",
|
|
116
|
+
components: { BNotification: Notification },
|
|
117
|
+
mixins: [NoticeMixin.NoticeMixin],
|
|
118
|
+
data() {
|
|
119
|
+
return {
|
|
120
|
+
newDuration: this.duration || config.config.defaultNotificationDuration
|
|
121
|
+
};
|
|
122
|
+
},
|
|
123
|
+
emits: {
|
|
124
|
+
close: () => true
|
|
125
|
+
},
|
|
126
|
+
methods: {
|
|
127
|
+
close() {
|
|
128
|
+
if (!this.isPaused) {
|
|
129
|
+
clearTimeout(this.timer);
|
|
130
|
+
this.$refs.notification.isActive = false;
|
|
131
|
+
this.$emit("close");
|
|
132
|
+
setTimeout(() => {
|
|
133
|
+
helpers.removeElement(this.$el);
|
|
134
|
+
}, 150);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
|
|
140
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
141
|
+
const _component_b_notification = vue.resolveComponent("b-notification");
|
|
142
|
+
return _ctx.$slots.default != null ? (vue.openBlock(), vue.createBlock(_component_b_notification, vue.mergeProps({
|
|
143
|
+
key: 0,
|
|
144
|
+
ref: "notification",
|
|
145
|
+
position: _ctx.position,
|
|
146
|
+
"model-value": _ctx.isActive,
|
|
147
|
+
type: _ctx.type,
|
|
148
|
+
message: _ctx.message,
|
|
149
|
+
duration: _ctx.duration
|
|
150
|
+
}, _ctx.$attrs, {
|
|
151
|
+
onClick: _ctx.click,
|
|
152
|
+
onClose: _ctx.close,
|
|
153
|
+
onMouseenter: _ctx.pause,
|
|
154
|
+
onMouseleave: _ctx.removePause
|
|
155
|
+
}), {
|
|
156
|
+
default: vue.withCtx(() => [
|
|
157
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
158
|
+
]),
|
|
159
|
+
_: 3
|
|
160
|
+
/* FORWARDED */
|
|
161
|
+
}, 16, ["position", "model-value", "type", "message", "duration", "onClick", "onClose", "onMouseenter", "onMouseleave"])) : (vue.openBlock(), vue.createBlock(_component_b_notification, vue.mergeProps({
|
|
162
|
+
key: 1,
|
|
163
|
+
ref: "notification",
|
|
164
|
+
position: _ctx.position,
|
|
165
|
+
"model-value": _ctx.isActive,
|
|
166
|
+
type: _ctx.type,
|
|
167
|
+
message: _ctx.message,
|
|
168
|
+
duration: _ctx.duration
|
|
169
|
+
}, _ctx.$attrs, {
|
|
170
|
+
onClick: _ctx.click,
|
|
171
|
+
onClose: _ctx.close,
|
|
172
|
+
onMouseenter: _ctx.pause,
|
|
173
|
+
onMouseleave: _ctx.removePause
|
|
174
|
+
}), null, 16, ["position", "model-value", "type", "message", "duration", "onClick", "onClose", "onMouseenter", "onMouseleave"]));
|
|
175
|
+
}
|
|
176
|
+
var NotificationNotice = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(NotificationNotice$1, [["render", _sfc_render]]);
|
|
177
|
+
|
|
178
|
+
var __defProp = Object.defineProperty;
|
|
179
|
+
var __defProps = Object.defineProperties;
|
|
180
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
181
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
182
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
183
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
184
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
185
|
+
var __spreadValues = (a, b) => {
|
|
186
|
+
for (var prop in b || (b = {}))
|
|
187
|
+
if (__hasOwnProp.call(b, prop))
|
|
188
|
+
__defNormalProp(a, prop, b[prop]);
|
|
189
|
+
if (__getOwnPropSymbols)
|
|
190
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
191
|
+
if (__propIsEnum.call(b, prop))
|
|
192
|
+
__defNormalProp(a, prop, b[prop]);
|
|
193
|
+
}
|
|
194
|
+
return a;
|
|
195
|
+
};
|
|
196
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
197
|
+
var __objRest = (source, exclude) => {
|
|
198
|
+
var target = {};
|
|
199
|
+
for (var prop in source)
|
|
200
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
201
|
+
target[prop] = source[prop];
|
|
202
|
+
if (source != null && __getOwnPropSymbols)
|
|
203
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
204
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
205
|
+
target[prop] = source[prop];
|
|
206
|
+
}
|
|
207
|
+
return target;
|
|
208
|
+
};
|
|
209
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
|
210
|
+
class NotificationProgrammatic {
|
|
211
|
+
constructor(app) {
|
|
212
|
+
__publicField(this, "app");
|
|
213
|
+
this.app = app;
|
|
214
|
+
}
|
|
215
|
+
open(params) {
|
|
216
|
+
if (typeof params === "string") {
|
|
217
|
+
params = {
|
|
218
|
+
message: params
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
let slot;
|
|
222
|
+
let _a = params, { message } = _a, restParams = __objRest(_a, ["message"]);
|
|
223
|
+
if (typeof message !== "string") {
|
|
224
|
+
slot = message;
|
|
225
|
+
message = void 0;
|
|
226
|
+
}
|
|
227
|
+
const propsData = __spreadValues({
|
|
228
|
+
position: config.config.defaultNotificationPosition || "is-top-right",
|
|
229
|
+
message
|
|
230
|
+
}, restParams);
|
|
231
|
+
const container = document.createElement("div");
|
|
232
|
+
const vueInstance = vue.createApp({
|
|
233
|
+
data() {
|
|
234
|
+
return {
|
|
235
|
+
noticeVNode: null
|
|
236
|
+
};
|
|
237
|
+
},
|
|
238
|
+
methods: {
|
|
239
|
+
close() {
|
|
240
|
+
const notice = helpers.getComponentFromVNode(this.noticeVNode);
|
|
241
|
+
if (notice) {
|
|
242
|
+
notice.close();
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
render() {
|
|
247
|
+
this.noticeVNode = vue.h(
|
|
248
|
+
NotificationNotice,
|
|
249
|
+
__spreadProps(__spreadValues({}, propsData), {
|
|
250
|
+
onClose: () => {
|
|
251
|
+
if (propsData.onClose != null) {
|
|
252
|
+
propsData.onClose();
|
|
253
|
+
}
|
|
254
|
+
setTimeout(() => {
|
|
255
|
+
vueInstance.unmount();
|
|
256
|
+
}, 150);
|
|
257
|
+
}
|
|
258
|
+
}),
|
|
259
|
+
slot != null ? { default: () => slot } : void 0
|
|
260
|
+
);
|
|
261
|
+
return this.noticeVNode;
|
|
262
|
+
}
|
|
263
|
+
});
|
|
264
|
+
if (this.app) {
|
|
265
|
+
helpers.copyAppContext(this.app, vueInstance);
|
|
266
|
+
} else {
|
|
267
|
+
vueInstance.config.globalProperties.$buefy = {};
|
|
268
|
+
}
|
|
269
|
+
return vueInstance.mount(container);
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
const Plugin = {
|
|
273
|
+
install(Vue) {
|
|
274
|
+
plugins.registerComponent(Vue, Notification);
|
|
275
|
+
plugins.registerComponentProgrammatic(Vue, "notification", new NotificationProgrammatic(Vue));
|
|
276
|
+
}
|
|
277
|
+
};
|
|
278
|
+
|
|
279
|
+
exports.BNotification = Notification;
|
|
280
|
+
exports.NotificationProgrammatic = NotificationProgrammatic;
|
|
281
|
+
exports.default = Plugin;
|
|
@@ -0,0 +1,386 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var Icon = require('./Icon-lsDKE2wQ.js');
|
|
7
|
+
var Input = require('./Input-BcloGeZ3.js');
|
|
8
|
+
var CompatFallthroughMixin = require('./CompatFallthroughMixin-hhK0Gkhr.js');
|
|
9
|
+
var FormElementMixin = require('./FormElementMixin-DavX4iOv.js');
|
|
10
|
+
var _pluginVue_exportHelper = require('./_plugin-vue_export-helper-Die8u8yB.js');
|
|
11
|
+
var plugins = require('./plugins-DbyYGVpp.js');
|
|
12
|
+
require('./config-DR826Ki2.js');
|
|
13
|
+
require('./helpers.js');
|
|
14
|
+
|
|
15
|
+
const CONTROLS_ALIGNMENTS = ["left", "right", "center"];
|
|
16
|
+
var _sfc_main = vue.defineComponent({
|
|
17
|
+
name: "BNumberinput",
|
|
18
|
+
components: {
|
|
19
|
+
BIcon: Icon.BIcon,
|
|
20
|
+
BInput: Input.BInput
|
|
21
|
+
},
|
|
22
|
+
mixins: [CompatFallthroughMixin.CompatFallthroughMixin, FormElementMixin.FormElementMixin],
|
|
23
|
+
inject: {
|
|
24
|
+
field: {
|
|
25
|
+
from: "BField",
|
|
26
|
+
default: false
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
props: {
|
|
30
|
+
modelValue: [Number, null],
|
|
31
|
+
min: {
|
|
32
|
+
type: [Number, String]
|
|
33
|
+
},
|
|
34
|
+
max: [Number, String],
|
|
35
|
+
step: [Number, String],
|
|
36
|
+
minStep: [Number, String],
|
|
37
|
+
exponential: [Boolean, Number],
|
|
38
|
+
disabled: Boolean,
|
|
39
|
+
type: {
|
|
40
|
+
type: String,
|
|
41
|
+
default: "is-primary"
|
|
42
|
+
},
|
|
43
|
+
editable: {
|
|
44
|
+
type: Boolean,
|
|
45
|
+
default: true
|
|
46
|
+
},
|
|
47
|
+
controls: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: true
|
|
50
|
+
},
|
|
51
|
+
controlsAlignment: {
|
|
52
|
+
type: String,
|
|
53
|
+
default: "center",
|
|
54
|
+
validator: (value) => {
|
|
55
|
+
return CONTROLS_ALIGNMENTS.indexOf(value) >= 0;
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
controlsRounded: {
|
|
59
|
+
type: Boolean,
|
|
60
|
+
default: false
|
|
61
|
+
},
|
|
62
|
+
controlsPosition: String,
|
|
63
|
+
placeholder: [Number, String],
|
|
64
|
+
ariaMinusLabel: String,
|
|
65
|
+
ariaPlusLabel: String,
|
|
66
|
+
longPress: {
|
|
67
|
+
type: Boolean,
|
|
68
|
+
default: true
|
|
69
|
+
},
|
|
70
|
+
// Native options to use in HTML5 validation
|
|
71
|
+
autocomplete: String
|
|
72
|
+
},
|
|
73
|
+
emits: {
|
|
74
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
75
|
+
blur: (_event) => true,
|
|
76
|
+
focus: (_event) => true,
|
|
77
|
+
"update:modelValue": (_value) => true
|
|
78
|
+
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
79
|
+
},
|
|
80
|
+
data() {
|
|
81
|
+
return {
|
|
82
|
+
newValue: this.modelValue,
|
|
83
|
+
newStep: this.step || 1,
|
|
84
|
+
newMinStep: this.minStep,
|
|
85
|
+
timesPressed: 1,
|
|
86
|
+
_elementRef: "input",
|
|
87
|
+
_$intervalRef: void 0
|
|
88
|
+
};
|
|
89
|
+
},
|
|
90
|
+
computed: {
|
|
91
|
+
computedValue: {
|
|
92
|
+
// getter has to include `string` in the return type so that the
|
|
93
|
+
// setter can accept `string`
|
|
94
|
+
get() {
|
|
95
|
+
return this.newValue;
|
|
96
|
+
},
|
|
97
|
+
set(value) {
|
|
98
|
+
let newValue = Number(value) === 0 ? 0 : Number(value) || null;
|
|
99
|
+
if (value === "" || value === void 0 || value === null) {
|
|
100
|
+
newValue = null;
|
|
101
|
+
}
|
|
102
|
+
this.newValue = newValue;
|
|
103
|
+
if (newValue === null) {
|
|
104
|
+
this.$emit("update:modelValue", newValue);
|
|
105
|
+
} else if (!isNaN(newValue)) {
|
|
106
|
+
this.$emit("update:modelValue", Number(newValue));
|
|
107
|
+
}
|
|
108
|
+
this.$nextTick(() => {
|
|
109
|
+
if (this.$refs.input) {
|
|
110
|
+
this.$refs.input.checkHtml5Validity();
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
controlsLeft() {
|
|
116
|
+
if (this.controls && this.controlsAlignment !== "right") {
|
|
117
|
+
return this.controlsAlignment === "left" ? ["minus", "plus"] : ["minus"];
|
|
118
|
+
}
|
|
119
|
+
return [];
|
|
120
|
+
},
|
|
121
|
+
controlsRight() {
|
|
122
|
+
if (this.controls && this.controlsAlignment !== "left") {
|
|
123
|
+
return this.controlsAlignment === "right" ? ["minus", "plus"] : ["plus"];
|
|
124
|
+
}
|
|
125
|
+
return [];
|
|
126
|
+
},
|
|
127
|
+
fieldClasses() {
|
|
128
|
+
return [
|
|
129
|
+
{ "has-addons": this.controlsPosition === "compact" },
|
|
130
|
+
{ "is-grouped": this.controlsPosition !== "compact" },
|
|
131
|
+
{ "is-expanded": this.expanded }
|
|
132
|
+
];
|
|
133
|
+
},
|
|
134
|
+
buttonClasses() {
|
|
135
|
+
return [this.type, this.size, { "is-rounded": this.controlsRounded }];
|
|
136
|
+
},
|
|
137
|
+
minNumber() {
|
|
138
|
+
return typeof this.min === "string" ? parseFloat(this.min) : this.min;
|
|
139
|
+
},
|
|
140
|
+
maxNumber() {
|
|
141
|
+
return typeof this.max === "string" ? parseFloat(this.max) : this.max;
|
|
142
|
+
},
|
|
143
|
+
stepNumber() {
|
|
144
|
+
if (this.newStep === "any") {
|
|
145
|
+
return 1;
|
|
146
|
+
}
|
|
147
|
+
return typeof this.newStep === "string" ? parseFloat(this.newStep) : this.newStep;
|
|
148
|
+
},
|
|
149
|
+
minStepNumber() {
|
|
150
|
+
if (this.newStep === "any" && typeof this.newMinStep === "undefined") {
|
|
151
|
+
return "any";
|
|
152
|
+
}
|
|
153
|
+
const step = typeof this.newMinStep !== "undefined" ? this.newMinStep : this.newStep;
|
|
154
|
+
return typeof step === "string" ? parseFloat(step) : step;
|
|
155
|
+
},
|
|
156
|
+
disabledMin() {
|
|
157
|
+
return +this.computedValue - this.stepNumber < this.minNumber;
|
|
158
|
+
},
|
|
159
|
+
disabledMax() {
|
|
160
|
+
return +this.computedValue + this.stepNumber > this.maxNumber;
|
|
161
|
+
},
|
|
162
|
+
stepDecimals() {
|
|
163
|
+
const step = this.minStepNumber.toString();
|
|
164
|
+
const index = step.indexOf(".");
|
|
165
|
+
if (index >= 0) {
|
|
166
|
+
return step.substring(index + 1).length;
|
|
167
|
+
}
|
|
168
|
+
return 0;
|
|
169
|
+
},
|
|
170
|
+
disabledOrUndefined() {
|
|
171
|
+
return this.disabled || void 0;
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
watch: {
|
|
175
|
+
/*
|
|
176
|
+
* When v-model is changed:
|
|
177
|
+
* 1. Set internal value.
|
|
178
|
+
*/
|
|
179
|
+
modelValue: {
|
|
180
|
+
immediate: true,
|
|
181
|
+
handler(value) {
|
|
182
|
+
this.newValue = value;
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
step(value) {
|
|
186
|
+
this.newStep = value;
|
|
187
|
+
},
|
|
188
|
+
minStep(value) {
|
|
189
|
+
this.newMinStep = value;
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
methods: {
|
|
193
|
+
isDisabled(control) {
|
|
194
|
+
return this.disabled || (control === "plus" ? this.disabledMax : this.disabledMin);
|
|
195
|
+
},
|
|
196
|
+
decrement() {
|
|
197
|
+
if (this.computedValue === null || typeof this.computedValue === "undefined") {
|
|
198
|
+
if (this.maxNumber !== null && typeof this.maxNumber !== "undefined") {
|
|
199
|
+
this.computedValue = this.maxNumber;
|
|
200
|
+
return;
|
|
201
|
+
}
|
|
202
|
+
this.computedValue = 0;
|
|
203
|
+
}
|
|
204
|
+
if (typeof this.minNumber === "undefined" || +this.computedValue - this.stepNumber >= this.minNumber) {
|
|
205
|
+
const value = +this.computedValue - this.stepNumber;
|
|
206
|
+
this.computedValue = parseFloat(value.toFixed(this.stepDecimals));
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
increment() {
|
|
210
|
+
if (this.computedValue === null || typeof this.computedValue === "undefined" || +this.computedValue < this.minNumber) {
|
|
211
|
+
if (this.minNumber !== null && typeof this.minNumber !== "undefined") {
|
|
212
|
+
this.computedValue = this.minNumber;
|
|
213
|
+
return;
|
|
214
|
+
}
|
|
215
|
+
this.computedValue = 0;
|
|
216
|
+
}
|
|
217
|
+
if (typeof this.maxNumber === "undefined" || +this.computedValue + this.stepNumber <= this.maxNumber) {
|
|
218
|
+
const value = +this.computedValue + this.stepNumber;
|
|
219
|
+
this.computedValue = parseFloat(value.toFixed(this.stepDecimals));
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
onControlClick(event, inc) {
|
|
223
|
+
if (event.detail !== 0 || event.type !== "click") return;
|
|
224
|
+
if (inc) this.increment();
|
|
225
|
+
else this.decrement();
|
|
226
|
+
},
|
|
227
|
+
longPressTick(inc) {
|
|
228
|
+
if (inc) this.increment();
|
|
229
|
+
else this.decrement();
|
|
230
|
+
if (!this.longPress) return;
|
|
231
|
+
this._$intervalRef = setTimeout(() => {
|
|
232
|
+
this.longPressTick(inc);
|
|
233
|
+
}, this.exponential ? 250 / (+this.exponential * this.timesPressed++) : 250);
|
|
234
|
+
},
|
|
235
|
+
onStartLongPress(event, inc) {
|
|
236
|
+
if (event.button !== 0 && event.type !== "touchstart") return;
|
|
237
|
+
clearTimeout(this._$intervalRef);
|
|
238
|
+
this.longPressTick(inc);
|
|
239
|
+
},
|
|
240
|
+
onStopLongPress() {
|
|
241
|
+
if (!this._$intervalRef) return;
|
|
242
|
+
this.timesPressed = 1;
|
|
243
|
+
clearTimeout(this._$intervalRef);
|
|
244
|
+
this._$intervalRef = void 0;
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
mounted() {
|
|
248
|
+
if (this.field === this.$parent) {
|
|
249
|
+
this.$parent.wrapNumberinput({
|
|
250
|
+
controlsPosition: this.controlsPosition,
|
|
251
|
+
size: this.size
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
beforeUnmount() {
|
|
256
|
+
clearTimeout(this._$intervalRef);
|
|
257
|
+
}
|
|
258
|
+
});
|
|
259
|
+
|
|
260
|
+
const _hoisted_1 = ["disabled", "aria-label", "onMousedown", "onTouchstart", "onClick"];
|
|
261
|
+
const _hoisted_2 = ["disabled", "aria-label", "onMousedown", "onTouchstart", "onClick"];
|
|
262
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
263
|
+
const _component_b_icon = vue.resolveComponent("b-icon");
|
|
264
|
+
const _component_b_input = vue.resolveComponent("b-input");
|
|
265
|
+
return vue.openBlock(), vue.createElementBlock(
|
|
266
|
+
"div",
|
|
267
|
+
vue.mergeProps({
|
|
268
|
+
class: ["b-numberinput field", _ctx.fieldClasses]
|
|
269
|
+
}, _ctx.rootAttrs),
|
|
270
|
+
[
|
|
271
|
+
(vue.openBlock(true), vue.createElementBlock(
|
|
272
|
+
vue.Fragment,
|
|
273
|
+
null,
|
|
274
|
+
vue.renderList(_ctx.controlsLeft, (control) => {
|
|
275
|
+
return vue.openBlock(), vue.createElementBlock(
|
|
276
|
+
"p",
|
|
277
|
+
{
|
|
278
|
+
key: control,
|
|
279
|
+
class: vue.normalizeClass(["control", control]),
|
|
280
|
+
onMouseup: _cache[0] || (_cache[0] = (...args) => _ctx.onStopLongPress && _ctx.onStopLongPress(...args)),
|
|
281
|
+
onMouseleave: _cache[1] || (_cache[1] = (...args) => _ctx.onStopLongPress && _ctx.onStopLongPress(...args)),
|
|
282
|
+
onTouchend: _cache[2] || (_cache[2] = (...args) => _ctx.onStopLongPress && _ctx.onStopLongPress(...args)),
|
|
283
|
+
onTouchcancel: _cache[3] || (_cache[3] = (...args) => _ctx.onStopLongPress && _ctx.onStopLongPress(...args))
|
|
284
|
+
},
|
|
285
|
+
[
|
|
286
|
+
vue.createElementVNode("button", {
|
|
287
|
+
type: "button",
|
|
288
|
+
class: vue.normalizeClass(["button", _ctx.buttonClasses]),
|
|
289
|
+
disabled: _ctx.isDisabled(control) || void 0,
|
|
290
|
+
"aria-label": control === "plus" ? _ctx.ariaPlusLabel : _ctx.ariaMinusLabel,
|
|
291
|
+
onMousedown: ($event) => !_ctx.isDisabled(control) && _ctx.onStartLongPress($event, control === "plus"),
|
|
292
|
+
onTouchstart: vue.withModifiers(($event) => !_ctx.isDisabled(control) && _ctx.onStartLongPress($event, control === "plus"), ["prevent"]),
|
|
293
|
+
onClick: ($event) => !_ctx.isDisabled(control) && _ctx.onControlClick($event, control === "plus")
|
|
294
|
+
}, [
|
|
295
|
+
vue.createVNode(_component_b_icon, {
|
|
296
|
+
both: "",
|
|
297
|
+
icon: control,
|
|
298
|
+
pack: _ctx.iconPack,
|
|
299
|
+
size: _ctx.iconSize
|
|
300
|
+
}, null, 8, ["icon", "pack", "size"])
|
|
301
|
+
], 42, _hoisted_1)
|
|
302
|
+
],
|
|
303
|
+
34
|
|
304
|
+
/* CLASS, NEED_HYDRATION */
|
|
305
|
+
);
|
|
306
|
+
}),
|
|
307
|
+
128
|
|
308
|
+
/* KEYED_FRAGMENT */
|
|
309
|
+
)),
|
|
310
|
+
vue.createVNode(_component_b_input, vue.mergeProps({
|
|
311
|
+
type: "number",
|
|
312
|
+
ref: "input",
|
|
313
|
+
modelValue: _ctx.computedValue,
|
|
314
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => _ctx.computedValue = $event)
|
|
315
|
+
}, _ctx.fallthroughAttrs, {
|
|
316
|
+
step: _ctx.minStepNumber,
|
|
317
|
+
max: _ctx.max,
|
|
318
|
+
min: _ctx.min,
|
|
319
|
+
size: _ctx.size,
|
|
320
|
+
disabled: _ctx.disabledOrUndefined,
|
|
321
|
+
readonly: !_ctx.editable,
|
|
322
|
+
loading: _ctx.loading,
|
|
323
|
+
rounded: _ctx.rounded,
|
|
324
|
+
icon: _ctx.icon,
|
|
325
|
+
"icon-pack": _ctx.iconPack,
|
|
326
|
+
autocomplete: _ctx.autocomplete,
|
|
327
|
+
expanded: _ctx.expanded,
|
|
328
|
+
placeholder: _ctx.placeholder,
|
|
329
|
+
"use-html5-validation": _ctx.useHtml5Validation,
|
|
330
|
+
onFocus: _cache[5] || (_cache[5] = ($event) => _ctx.$emit("focus", $event)),
|
|
331
|
+
onBlur: _cache[6] || (_cache[6] = ($event) => _ctx.$emit("blur", $event))
|
|
332
|
+
}), null, 16, ["modelValue", "step", "max", "min", "size", "disabled", "readonly", "loading", "rounded", "icon", "icon-pack", "autocomplete", "expanded", "placeholder", "use-html5-validation"]),
|
|
333
|
+
(vue.openBlock(true), vue.createElementBlock(
|
|
334
|
+
vue.Fragment,
|
|
335
|
+
null,
|
|
336
|
+
vue.renderList(_ctx.controlsRight, (control) => {
|
|
337
|
+
return vue.openBlock(), vue.createElementBlock(
|
|
338
|
+
"p",
|
|
339
|
+
{
|
|
340
|
+
key: control,
|
|
341
|
+
class: vue.normalizeClass(["control", control]),
|
|
342
|
+
onMouseup: _cache[7] || (_cache[7] = (...args) => _ctx.onStopLongPress && _ctx.onStopLongPress(...args)),
|
|
343
|
+
onMouseleave: _cache[8] || (_cache[8] = (...args) => _ctx.onStopLongPress && _ctx.onStopLongPress(...args)),
|
|
344
|
+
onTouchend: _cache[9] || (_cache[9] = (...args) => _ctx.onStopLongPress && _ctx.onStopLongPress(...args)),
|
|
345
|
+
onTouchcancel: _cache[10] || (_cache[10] = (...args) => _ctx.onStopLongPress && _ctx.onStopLongPress(...args))
|
|
346
|
+
},
|
|
347
|
+
[
|
|
348
|
+
vue.createElementVNode("button", {
|
|
349
|
+
type: "button",
|
|
350
|
+
class: vue.normalizeClass(["button", _ctx.buttonClasses]),
|
|
351
|
+
disabled: _ctx.isDisabled(control) || void 0,
|
|
352
|
+
"aria-label": control === "plus" ? _ctx.ariaPlusLabel : _ctx.ariaMinusLabel,
|
|
353
|
+
onMousedown: ($event) => !_ctx.isDisabled(control) && _ctx.onStartLongPress($event, control === "plus"),
|
|
354
|
+
onTouchstart: vue.withModifiers(($event) => !_ctx.isDisabled(control) && _ctx.onStartLongPress($event, control === "plus"), ["prevent"]),
|
|
355
|
+
onClick: ($event) => !_ctx.isDisabled(control) && _ctx.onControlClick($event, control === "plus")
|
|
356
|
+
}, [
|
|
357
|
+
vue.createVNode(_component_b_icon, {
|
|
358
|
+
both: "",
|
|
359
|
+
icon: control,
|
|
360
|
+
pack: _ctx.iconPack,
|
|
361
|
+
size: _ctx.iconSize
|
|
362
|
+
}, null, 8, ["icon", "pack", "size"])
|
|
363
|
+
], 42, _hoisted_2)
|
|
364
|
+
],
|
|
365
|
+
34
|
|
366
|
+
/* CLASS, NEED_HYDRATION */
|
|
367
|
+
);
|
|
368
|
+
}),
|
|
369
|
+
128
|
|
370
|
+
/* KEYED_FRAGMENT */
|
|
371
|
+
))
|
|
372
|
+
],
|
|
373
|
+
16
|
|
374
|
+
/* FULL_PROPS */
|
|
375
|
+
);
|
|
376
|
+
}
|
|
377
|
+
var Numberinput = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
378
|
+
|
|
379
|
+
const Plugin = {
|
|
380
|
+
install(Vue) {
|
|
381
|
+
plugins.registerComponent(Vue, Numberinput);
|
|
382
|
+
}
|
|
383
|
+
};
|
|
384
|
+
|
|
385
|
+
exports.BNumberinput = Numberinput;
|
|
386
|
+
exports.default = Plugin;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var Pagination = require('./Pagination-D1MVdiLp.js');
|
|
6
|
+
var plugins = require('./plugins-DbyYGVpp.js');
|
|
7
|
+
require('vue');
|
|
8
|
+
require('./config-DR826Ki2.js');
|
|
9
|
+
require('./_plugin-vue_export-helper-Die8u8yB.js');
|
|
10
|
+
require('./Icon-lsDKE2wQ.js');
|
|
11
|
+
require('./helpers.js');
|
|
12
|
+
|
|
13
|
+
const Plugin = {
|
|
14
|
+
install(Vue) {
|
|
15
|
+
plugins.registerComponent(Vue, Pagination.BPagination);
|
|
16
|
+
plugins.registerComponent(Vue, Pagination.PaginationButton);
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
exports.BPagination = Pagination.BPagination;
|
|
21
|
+
exports.BPaginationButton = Pagination.PaginationButton;
|
|
22
|
+
exports.default = Plugin;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const registerComponent = (Vue, component, name) => {
|
|
4
|
+
const componentName = name || component.name;
|
|
5
|
+
if (componentName == null) {
|
|
6
|
+
throw new Error("Buefy.registerComponent: missing component name");
|
|
7
|
+
}
|
|
8
|
+
Vue.component(componentName, component);
|
|
9
|
+
};
|
|
10
|
+
const registerComponentProgrammatic = (Vue, property, component) => {
|
|
11
|
+
if (!Vue.config.globalProperties.$buefy) Vue.config.globalProperties.$buefy = {};
|
|
12
|
+
Vue.config.globalProperties.$buefy[property] = component;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
exports.registerComponent = registerComponent;
|
|
16
|
+
exports.registerComponentProgrammatic = registerComponentProgrammatic;
|