buefy 0.9.21 → 0.9.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/buefy.css +76 -24
- package/dist/buefy.esm.js +103 -89
- package/dist/buefy.esm.min.js +2 -2
- package/dist/buefy.js +103 -88
- package/dist/buefy.min.css +1 -1
- package/dist/buefy.min.js +2 -2
- package/dist/cjs/autocomplete.js +2 -2
- package/dist/cjs/{chunk-dddb035c.js → chunk-37e64a78.js} +6 -2
- package/dist/cjs/{chunk-f8eb56c6.js → chunk-4702fda4.js} +1 -1
- package/dist/cjs/{chunk-bcab8905.js → chunk-6e9f64e7.js} +3 -3
- package/dist/cjs/{chunk-eba24a95.js → chunk-8ab08774.js} +5 -5
- package/dist/cjs/{chunk-85b00a19.js → chunk-94bbc46e.js} +4 -4
- package/dist/cjs/{chunk-befea70a.js → chunk-994f8066.js} +22 -8
- package/dist/cjs/{chunk-95c4b826.js → chunk-a39776c7.js} +4 -1
- package/dist/cjs/{chunk-cc9676a6.js → chunk-b7163607.js} +2 -1
- package/dist/cjs/clockpicker.js +3 -3
- package/dist/cjs/colorpicker-a5bbcf7b.js +1774 -0
- package/dist/cjs/colorpicker.js +14 -1750
- package/dist/cjs/datepicker.js +4 -4
- package/dist/cjs/datetimepicker.js +5 -5
- package/dist/cjs/dialog.js +1 -1
- package/dist/cjs/dropdown.js +1 -1
- package/dist/cjs/field.js +1 -1
- package/dist/cjs/index.js +12 -11
- package/dist/cjs/input.js +1 -1
- package/dist/cjs/message.js +1 -1
- package/dist/cjs/modal.js +1 -1
- package/dist/cjs/navbar.js +4 -1
- package/dist/cjs/notification.js +1 -1
- package/dist/cjs/numberinput.js +7 -2
- package/dist/cjs/sidebar.js +6 -44
- package/dist/cjs/steps.js +1 -1
- package/dist/cjs/table.js +5 -5
- package/dist/cjs/tabs.js +1 -1
- package/dist/cjs/taginput.js +7 -3
- package/dist/cjs/timepicker.js +4 -4
- package/dist/components/autocomplete/index.js +26 -9
- package/dist/components/autocomplete/index.min.js +2 -2
- package/dist/components/breadcrumb/index.js +1 -1
- package/dist/components/breadcrumb/index.min.js +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/button/index.min.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/carousel/index.min.js +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox/index.min.js +1 -1
- package/dist/components/clockpicker/index.js +12 -5
- package/dist/components/clockpicker/index.min.js +2 -2
- package/dist/components/collapse/index.js +1 -1
- package/dist/components/collapse/index.min.js +1 -1
- package/dist/components/colorpicker/index.js +46 -21
- package/dist/components/colorpicker/index.min.js +2 -2
- package/dist/components/datepicker/index.js +13 -6
- package/dist/components/datepicker/index.min.js +2 -2
- package/dist/components/datetimepicker/index.js +13 -6
- package/dist/components/datetimepicker/index.min.js +2 -2
- package/dist/components/dialog/index.js +3 -2
- package/dist/components/dialog/index.min.js +2 -2
- package/dist/components/dropdown/index.js +7 -3
- package/dist/components/dropdown/index.min.js +2 -2
- package/dist/components/field/index.js +2 -2
- package/dist/components/field/index.min.js +2 -2
- package/dist/components/icon/index.js +1 -1
- package/dist/components/icon/index.min.js +1 -1
- package/dist/components/image/index.js +1 -1
- package/dist/components/image/index.min.js +1 -1
- package/dist/components/input/index.js +5 -2
- package/dist/components/input/index.min.js +2 -2
- package/dist/components/loading/index.js +1 -1
- package/dist/components/loading/index.min.js +1 -1
- package/dist/components/menu/index.js +1 -1
- package/dist/components/menu/index.min.js +1 -1
- package/dist/components/message/index.js +2 -2
- package/dist/components/message/index.min.js +2 -2
- package/dist/components/modal/index.js +3 -2
- package/dist/components/modal/index.min.js +2 -2
- package/dist/components/navbar/index.js +5 -2
- package/dist/components/navbar/index.min.js +2 -2
- package/dist/components/notification/index.js +2 -2
- package/dist/components/notification/index.min.js +2 -2
- package/dist/components/numberinput/index.js +11 -3
- package/dist/components/numberinput/index.min.js +2 -2
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/pagination/index.min.js +1 -1
- package/dist/components/progress/index.js +1 -1
- package/dist/components/progress/index.min.js +1 -1
- package/dist/components/radio/index.js +1 -1
- package/dist/components/radio/index.min.js +1 -1
- package/dist/components/rate/index.js +1 -1
- package/dist/components/rate/index.min.js +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/select/index.min.js +1 -1
- package/dist/components/sidebar/index.js +7 -48
- package/dist/components/sidebar/index.min.js +2 -2
- package/dist/components/skeleton/index.js +1 -1
- package/dist/components/skeleton/index.min.js +1 -1
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/index.min.js +1 -1
- package/dist/components/snackbar/index.js +1 -1
- package/dist/components/snackbar/index.min.js +1 -1
- package/dist/components/steps/index.js +6 -6
- package/dist/components/steps/index.min.js +2 -2
- package/dist/components/switch/index.js +1 -1
- package/dist/components/switch/index.min.js +1 -1
- package/dist/components/table/index.js +9 -6
- package/dist/components/table/index.min.js +2 -2
- package/dist/components/tabs/index.js +6 -6
- package/dist/components/tabs/index.min.js +2 -2
- package/dist/components/tag/index.js +1 -1
- package/dist/components/tag/index.min.js +1 -1
- package/dist/components/taginput/index.js +31 -10
- package/dist/components/taginput/index.min.js +2 -2
- package/dist/components/timepicker/index.js +12 -5
- package/dist/components/timepicker/index.min.js +2 -2
- package/dist/components/toast/index.js +1 -1
- package/dist/components/toast/index.min.js +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooltip/index.min.js +1 -1
- package/dist/components/upload/index.js +1 -1
- package/dist/components/upload/index.min.js +1 -1
- package/dist/esm/autocomplete.js +6 -6
- package/dist/esm/button.js +4 -4
- package/dist/esm/carousel.js +4 -4
- package/dist/esm/{chunk-293c457c.js → chunk-007b3ff8.js} +7 -7
- package/dist/esm/{chunk-c5284276.js → chunk-048831a9.js} +2 -2
- package/dist/esm/{chunk-493ff0a9.js → chunk-07da0ba7.js} +1 -1
- package/dist/esm/{chunk-ade5b253.js → chunk-0c67e5e7.js} +8 -4
- package/dist/esm/{chunk-9b0b8225.js → chunk-18dce47f.js} +1 -1
- package/dist/esm/{chunk-6e56b8bc.js → chunk-27ec55c7.js} +1 -1
- package/dist/esm/{chunk-7e17a637.js → chunk-4b289821.js} +1 -1
- package/dist/esm/{chunk-d46e7ff0.js → chunk-6a7209ee.js} +2 -2
- package/dist/esm/{chunk-b5576437.js → chunk-6b514c98.js} +2 -2
- package/dist/esm/{chunk-f32d0228.js → chunk-6efa106e.js} +9 -9
- package/dist/esm/{chunk-60a03517.js → chunk-70481141.js} +1 -1
- package/dist/esm/{chunk-455cdeae.js → chunk-851d1b8f.js} +1 -1
- package/dist/esm/{chunk-33e1434e.js → chunk-8e497030.js} +2 -1
- package/dist/esm/{chunk-b0123b89.js → chunk-9bd1f33e.js} +24 -10
- package/dist/esm/{chunk-4e788733.js → chunk-bf29bc31.js} +3 -3
- package/dist/esm/{chunk-7bb9107f.js → chunk-d62aa1f5.js} +2 -2
- package/dist/esm/{chunk-83c8b459.js → chunk-d77d421b.js} +7 -4
- package/dist/esm/{chunk-6c64686f.js → chunk-dc931ea5.js} +8 -8
- package/dist/esm/clockpicker.js +8 -8
- package/dist/esm/colorpicker-91643f19.js +1770 -0
- package/dist/esm/colorpicker.js +13 -1754
- package/dist/esm/config.js +1 -1
- package/dist/esm/datepicker.js +10 -10
- package/dist/esm/datetimepicker.js +11 -11
- package/dist/esm/dialog.js +4 -4
- package/dist/esm/dropdown.js +4 -4
- package/dist/esm/field.js +3 -3
- package/dist/esm/helpers.js +1 -1
- package/dist/esm/icon.js +3 -3
- package/dist/esm/image.js +3 -3
- package/dist/esm/index.js +24 -24
- package/dist/esm/input.js +5 -5
- package/dist/esm/loading.js +3 -3
- package/dist/esm/menu.js +2 -2
- package/dist/esm/message.js +4 -4
- package/dist/esm/modal.js +3 -3
- package/dist/esm/navbar.js +5 -2
- package/dist/esm/notification.js +5 -5
- package/dist/esm/numberinput.js +10 -5
- package/dist/esm/pagination.js +4 -4
- package/dist/esm/progress.js +2 -2
- package/dist/esm/rate.js +2 -2
- package/dist/esm/select.js +5 -5
- package/dist/esm/sidebar.js +8 -46
- package/dist/esm/slider.js +2 -2
- package/dist/esm/snackbar.js +2 -2
- package/dist/esm/steps.js +5 -5
- package/dist/esm/table.js +12 -12
- package/dist/esm/tabs.js +5 -5
- package/dist/esm/taginput.js +10 -6
- package/dist/esm/timepicker.js +11 -11
- package/dist/esm/toast.js +2 -2
- package/dist/esm/tooltip.js +3 -3
- package/dist/esm/upload.js +2 -2
- package/dist/vetur/attributes.json +12 -0
- package/dist/vetur/tags.json +5 -2
- package/package.json +3 -2
- package/src/components/autocomplete/Autocomplete.vue +23 -4
- package/src/components/autocomplete/index.js +1 -1
- package/src/components/breadcrumb/Breadcrumb.vue +0 -2
- package/src/components/breadcrumb/BreadcrumbItem.spec.js +1 -1
- package/src/components/breadcrumb/BreadcrumbItem.vue +0 -3
- package/src/components/breadcrumb/index.js +2 -2
- package/src/components/button/Button.vue +1 -1
- package/src/components/button/index.js +1 -1
- package/src/components/carousel/Carousel.vue +1 -1
- package/src/components/carousel/CarouselList.vue +2 -2
- package/src/components/carousel/index.js +3 -3
- package/src/components/checkbox/Checkbox.vue +1 -1
- package/src/components/checkbox/CheckboxButton.vue +1 -1
- package/src/components/checkbox/index.js +2 -2
- package/src/components/clockpicker/Clockpicker.vue +5 -5
- package/src/components/clockpicker/index.js +1 -1
- package/src/components/collapse/index.js +1 -1
- package/src/components/colorpicker/Colorpicker.vue +50 -31
- package/src/components/colorpicker/ColorpickerAlphaSlider.spec.js +3 -1
- package/src/components/colorpicker/ColorpickerAlphaSlider.vue +1 -1
- package/src/components/colorpicker/index.js +1 -1
- package/src/components/datepicker/Datepicker.spec.js +4 -4
- package/src/components/datepicker/Datepicker.vue +14 -13
- package/src/components/datepicker/DatepickerTable.vue +1 -1
- package/src/components/datepicker/index.js +1 -1
- package/src/components/datetimepicker/Datetimepicker.vue +2 -2
- package/src/components/datetimepicker/index.js +1 -1
- package/src/components/dialog/Dialog.vue +3 -3
- package/src/components/dialog/index.js +1 -1
- package/src/components/dropdown/Dropdown.vue +6 -2
- package/src/components/dropdown/index.js +2 -2
- package/src/components/field/Field.spec.js +11 -2
- package/src/components/field/Field.vue +6 -2
- package/src/components/field/index.js +1 -1
- package/src/components/icon/index.js +1 -1
- package/src/components/image/index.js +1 -1
- package/src/components/input/Input.spec.js +11 -0
- package/src/components/input/Input.vue +5 -2
- package/src/components/input/index.js +1 -1
- package/src/components/loading/index.js +1 -1
- package/src/components/menu/MenuItem.vue +1 -1
- package/src/components/menu/index.js +3 -3
- package/src/components/message/Message.vue +2 -1
- package/src/components/message/index.js +1 -1
- package/src/components/modal/Modal.vue +2 -1
- package/src/components/modal/index.js +1 -1
- package/src/components/navbar/NavBar.spec.js +1 -1
- package/src/components/navbar/{NavbarBurger.spec.js → NavBarBurger.spec.js} +1 -1
- package/src/components/navbar/NavBarItem.spec.js +1 -1
- package/src/components/navbar/NavbarDropdown.spec.js +1 -1
- package/src/components/navbar/NavbarDropdown.vue +10 -1
- package/src/components/navbar/index.js +3 -3
- package/src/components/notification/Notification.vue +3 -2
- package/src/components/notification/NotificationNotice.vue +1 -1
- package/src/components/notification/index.js +2 -2
- package/src/components/numberinput/Numberinput.spec.js +31 -0
- package/src/components/numberinput/Numberinput.vue +8 -3
- package/src/components/numberinput/index.js +1 -1
- package/src/components/pagination/Pagination.vue +2 -2
- package/src/components/pagination/index.js +2 -2
- package/src/components/progress/index.js +2 -2
- package/src/components/radio/Radio.vue +1 -1
- package/src/components/radio/RadioButton.vue +1 -1
- package/src/components/radio/index.js +2 -2
- package/src/components/rate/Rate.vue +1 -1
- package/src/components/rate/index.js +1 -1
- package/src/components/select/Select.vue +1 -1
- package/src/components/select/index.js +1 -1
- package/src/components/sidebar/Sidebar.vue +6 -25
- package/src/components/sidebar/index.js +1 -1
- package/src/components/skeleton/index.js +1 -1
- package/src/components/slider/Slider.vue +2 -2
- package/src/components/slider/SliderThumb.vue +1 -1
- package/src/components/slider/index.js +2 -2
- package/src/components/snackbar/Snackbar.vue +1 -1
- package/src/components/snackbar/index.js +1 -1
- package/src/components/steps/StepItem.vue +1 -1
- package/src/components/steps/Steps.vue +2 -2
- package/src/components/steps/index.js +2 -2
- package/src/components/switch/index.js +1 -1
- package/src/components/table/Table.vue +31 -19
- package/src/components/table/TableColumn.vue +121 -121
- package/src/components/table/TableMobileSort.vue +2 -2
- package/src/components/table/TablePagination.vue +1 -1
- package/src/components/table/index.js +2 -2
- package/src/components/tabs/TabItem.vue +1 -1
- package/src/components/tabs/Tabs.vue +1 -1
- package/src/components/tabs/index.js +2 -2
- package/src/components/tag/index.js +2 -2
- package/src/components/taginput/Taginput.vue +7 -3
- package/src/components/taginput/index.js +1 -1
- package/src/components/timepicker/Timepicker.vue +6 -6
- package/src/components/timepicker/index.js +1 -1
- package/src/components/toast/Toast.vue +1 -1
- package/src/components/toast/index.js +1 -1
- package/src/components/tooltip/Tooltip.spec.js +35 -0
- package/src/components/tooltip/index.js +1 -1
- package/src/components/upload/index.js +1 -1
- package/src/index.js +1 -0
- package/src/scss/components/_colorpicker.scss +1 -1
- package/src/scss/components/_datepicker.scss +2 -2
- package/src/scss/components/_message.scss +8 -2
- package/src/scss/components/_notification.scss +5 -5
- package/src/scss/components/_radio.scss +3 -0
- package/src/scss/components/_table.scss +1 -0
- package/src/utils/MessageMixin.js +1 -1
- package/src/utils/TabbedChildMixin.js +1 -1
- package/src/utils/TabbedMixin.js +1 -1
- package/src/utils/color.js +3 -2
- package/src/utils/color.spec.js +3 -1
- package/CHANGELOG.md +0 -1741
- /package/dist/esm/{chunk-6d0f2352.js → chunk-241dbe8d.js} +0 -0
- /package/dist/esm/{chunk-17b33cd2.js → chunk-6ca75105.js} +0 -0
- /package/dist/esm/{chunk-c9c18b2f.js → chunk-f37c671e.js} +0 -0
- /package/dist/esm/{chunk-a32d1427.js → chunk-f4922148.js} +0 -0
- /package/src/components/colorpicker/__snapshots__/{ColorPickerHSLRepresentationSquare.spec.js.snap → ColorpickerHSLRepresentationSquare.spec.js.snap} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! Buefy v0.9.
|
|
1
|
+
/*! Buefy v0.9.23 | MIT License | github.com/buefy/buefy */
|
|
2
2
|
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).Upload={})}(this,function(e){"use strict";var t={defaultContainerElement:null,defaultIconPack:"mdi",defaultIconComponent:null,defaultIconPrev:"chevron-left",defaultIconNext:"chevron-right",defaultLocale:void 0,defaultDialogConfirmText:null,defaultDialogCancelText:null,defaultSnackbarDuration:3500,defaultSnackbarPosition:null,defaultToastDuration:2e3,defaultToastPosition:null,defaultNotificationDuration:2e3,defaultNotificationPosition:null,defaultTooltipType:"is-primary",defaultTooltipDelay:null,defaultTooltipCloseDelay:null,defaultSidebarDelay:null,defaultInputAutocomplete:"on",defaultDateFormatter:null,defaultDateParser:null,defaultDateCreator:null,defaultTimeCreator:null,defaultDayNames:null,defaultMonthNames:null,defaultFirstDayOfWeek:null,defaultUnselectableDaysOfWeek:null,defaultTimeFormatter:null,defaultTimeParser:null,defaultModalCanCancel:["escape","x","outside","button"],defaultModalScroll:null,defaultDatepickerMobileNative:!0,defaultTimepickerMobileNative:!0,defaultNoticeQueue:!0,defaultInputHasCounter:!0,defaultTaginputHasCounter:!0,defaultUseHtml5Validation:!0,defaultDropdownMobileModal:!0,defaultFieldLabelPosition:null,defaultDatepickerYearsRange:[-100,10],defaultDatepickerNearbyMonthDays:!0,defaultDatepickerNearbySelectableMonthDays:!1,defaultDatepickerShowWeekNumber:!1,defaultDatepickerWeekNumberClickable:!1,defaultDatepickerMobileModal:!0,defaultTrapFocus:!0,defaultAutoFocus:!0,defaultButtonRounded:!1,defaultSwitchRounded:!0,defaultCarouselInterval:3500,defaultTabsExpanded:!1,defaultTabsAnimated:!0,defaultTabsType:null,defaultStatusIcon:!0,defaultProgrammaticPromise:!1,defaultLinkTags:["a","button","input","router-link","nuxt-link","n-link","RouterLink","NuxtLink","NLink"],defaultImageWebpFallback:null,defaultImageLazy:!0,defaultImageResponsive:!0,defaultImageRatio:null,defaultImageSrcsetFormatter:null,defaultBreadcrumbTag:"a",defaultBreadcrumbAlign:"is-left",defaultBreadcrumbSeparator:"",defaultBreadcrumbSize:"is-medium",customIconPacks:null};var a={props:{size:String,expanded:Boolean,loading:Boolean,rounded:Boolean,icon:String,iconPack:String,autocomplete:String,maxlength:[Number,String],useHtml5Validation:{type:Boolean,default:function(){return t.defaultUseHtml5Validation}},validationMessage:String,locale:{type:[String,Array],default:function(){return t.defaultLocale}},statusIcon:{type:Boolean,default:function(){return t.defaultStatusIcon}}},data:function(){return{isValid:!0,isFocused:!1,newIconPack:this.iconPack||t.defaultIconPack}},computed:{parentField:function(){for(var e=this.$parent,t=0;t<3;t++)e&&!e.$data._isField&&(e=e.$parent);return e},statusType:function(){var e=(this.parentField||{}).newType;if(e){if("string"==typeof e)return e;for(var t in e)if(e[t])return t}},statusMessage:function(){if(this.parentField)return this.parentField.newMessage||this.parentField.$slots.message},iconSize:function(){switch(this.size){case"is-small":return this.size;case"is-medium":return;case"is-large":return"mdi"===this.newIconPack?"is-medium":""}}},methods:{focus:function(){var e=this.getElement();void 0!==e&&this.$nextTick(function(){e&&e.focus()})},onBlur:function(e){this.isFocused=!1,this.$emit("blur",e),this.checkHtml5Validity()},onFocus:function(e){this.isFocused=!0,this.$emit("focus",e)},getElement:function(){for(var e,t=this.$refs[this.$data._elementRef];(e=t)&&e._isVue;)t=t.$refs[t.$data._elementRef];return t},setInvalid:function(){var e=this.validationMessage||this.getElement().validationMessage;this.setValidity("is-danger",e)},setValidity:function(e,t){var a=this;this.$nextTick(function(){a.parentField&&(a.parentField.type||(a.parentField.newType=e),a.parentField.message||(a.parentField.newMessage=t))})},checkHtml5Validity:function(){if(this.useHtml5Validation){var e=this.getElement();if(void 0!==e)return e.checkValidity()?(this.setValidity(null,null),this.isValid=!0):(this.setInvalid(),this.isValid=!1),this.isValid}}}},n="undefined"==typeof window,i=(n?Object:window.HTMLElement,n?Object:window.File);var l,u=function(e,t,a,n,i,l,u,o,r,s){"boolean"!=typeof u&&(r=o,o=u,u=!1);var d,f="function"==typeof a?a.options:a;if(e&&e.render&&(f.render=e.render,f.staticRenderFns=e.staticRenderFns,f._compiled=!0,i&&(f.functional=!0)),n&&(f._scopeId=n),l?(d=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,r(e)),e&&e._registeredComponents&&e._registeredComponents.add(l)},f._ssrRegister=d):t&&(d=u?function(){t.call(this,s(this.$root.$options.shadowRoot))}:function(e){t.call(this,o(e))}),d)if(f.functional){var c=f.render;f.render=function(e,t){return d.call(t),c(e,t)}}else{var p=f.beforeCreate;f.beforeCreate=p?[].concat(p,d):[d]}return a}({render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("label",{staticClass:"upload control",class:{"is-expanded":e.expanded,"is-rounded":e.rounded}},[e.dragDrop?a("div",{staticClass:"upload-draggable",class:[e.type,{"is-loading":e.loading,"is-disabled":e.disabled,"is-hovered":e.dragDropFocus,"is-expanded":e.expanded}],on:{dragover:function(t){return t.preventDefault(),e.updateDragDropFocus(!0)},dragleave:function(t){return t.preventDefault(),e.updateDragDropFocus(!1)},dragenter:function(t){return t.preventDefault(),e.updateDragDropFocus(!0)},drop:function(t){return t.preventDefault(),e.onFileChange(t)}}},[e._t("default")],2):[e._t("default")],a("input",e._b({ref:"input",attrs:{type:"file",multiple:e.multiple,accept:e.accept,disabled:e.disabled},on:{change:e.onFileChange}},"input",e.$attrs,!1))],2)},staticRenderFns:[]},void 0,{name:"BUpload",mixins:[a],inheritAttrs:!1,props:{value:{type:[Object,Function,i,Array]},multiple:Boolean,disabled:Boolean,accept:String,dragDrop:Boolean,type:{type:String,default:"is-primary"},native:{type:Boolean,default:!1},expanded:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1}},data:function(){return{newValue:this.value,dragDropFocus:!1,_elementRef:"input"}},watch:{value:function(e){this.newValue=e,(!e||Array.isArray(e)&&0===e.length)&&(this.$refs.input.value=null),!this.isValid&&!this.dragDrop&&this.checkHtml5Validity()}},methods:{onFileChange:function(e){if(!this.disabled&&!this.loading){this.dragDrop&&this.updateDragDropFocus(!1);var t=e.target.files||e.dataTransfer.files;if(0===t.length){if(!this.newValue)return;this.native&&(this.newValue=null)}else if(this.multiple){var a=!1;!this.native&&this.newValue||(this.newValue=[],a=!0);for(var n=0;n<t.length;n++){var i=t[n];this.checkType(i)&&(this.newValue.push(i),a=!0)}if(!a)return}else{if(this.dragDrop&&1!==t.length)return;var l=t[0];if(this.checkType(l))this.newValue=l;else{if(!this.newValue)return this.clearInput(),void this.checkHtml5Validity();this.newValue=null,this.clearInput()}}this.$emit("input",this.newValue),!this.dragDrop&&this.checkHtml5Validity()}},clearInput:function(){this.$refs.input.value=null},updateDragDropFocus:function(e){this.disabled||this.loading||(this.dragDropFocus=e)},checkType:function(e){if(!this.accept)return!0;var t=this.accept.split(",");if(0===t.length)return!0;for(var a=!1,n=0;n<t.length&&!a;n++){var i=t[n].trim();if(i)if("."===i.substring(0,1))e.name.toLowerCase().slice(-i.length)===i.toLowerCase()&&(a=!0);else e.type.match(i)&&(a=!0)}return a||this.$emit("invalid"),a}}},void 0,!1,void 0,void 0,void 0),o={install:function(e){!function(e,t){e.component(t.name,t)}(e,u)}};l=o,"undefined"!=typeof window&&window.Vue&&window.Vue.use(l),e.BUpload=u,e.default=o,Object.defineProperty(e,"__esModule",{value:!0})});
|
package/dist/esm/autocomplete.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import './chunk-
|
|
1
|
+
import './chunk-851d1b8f.js';
|
|
2
2
|
import './helpers.js';
|
|
3
3
|
import './chunk-e92e3389.js';
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
4
|
+
import './chunk-6ca75105.js';
|
|
5
|
+
import './chunk-4b289821.js';
|
|
6
6
|
import { r as registerComponent, u as use } from './chunk-cca88db8.js';
|
|
7
|
-
import './chunk-
|
|
8
|
-
import { A as Autocomplete } from './chunk-
|
|
9
|
-
export { A as BAutocomplete } from './chunk-
|
|
7
|
+
import './chunk-d77d421b.js';
|
|
8
|
+
import { A as Autocomplete } from './chunk-9bd1f33e.js';
|
|
9
|
+
export { A as BAutocomplete } from './chunk-9bd1f33e.js';
|
|
10
10
|
|
|
11
11
|
var Plugin = {
|
|
12
12
|
install: function install(Vue) {
|
package/dist/esm/button.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import './chunk-
|
|
1
|
+
import './chunk-851d1b8f.js';
|
|
2
2
|
import './helpers.js';
|
|
3
3
|
import './chunk-e92e3389.js';
|
|
4
|
-
import './chunk-
|
|
4
|
+
import './chunk-4b289821.js';
|
|
5
5
|
import { r as registerComponent, u as use } from './chunk-cca88db8.js';
|
|
6
|
-
import { B as Button } from './chunk-
|
|
7
|
-
export { B as BButton } from './chunk-
|
|
6
|
+
import { B as Button } from './chunk-6b514c98.js';
|
|
7
|
+
export { B as BButton } from './chunk-6b514c98.js';
|
|
8
8
|
|
|
9
9
|
var Plugin = {
|
|
10
10
|
install: function install(Vue) {
|
package/dist/esm/carousel.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { _ as _defineProperty, a as _objectSpread2 } from './chunk-
|
|
1
|
+
import { _ as _defineProperty, a as _objectSpread2 } from './chunk-851d1b8f.js';
|
|
2
2
|
import { mod, bound, sign } from './helpers.js';
|
|
3
3
|
import { c as config } from './chunk-e92e3389.js';
|
|
4
|
-
import { I as Icon } from './chunk-
|
|
4
|
+
import { I as Icon } from './chunk-4b289821.js';
|
|
5
5
|
import { _ as __vue_normalize__, r as registerComponent, u as use } from './chunk-cca88db8.js';
|
|
6
|
-
import { P as ProviderParentMixin, S as Sorted, I as InjectedChildMixin, a as Sorted$1 } from './chunk-
|
|
7
|
-
import { I as Image } from './chunk-
|
|
6
|
+
import { P as ProviderParentMixin, S as Sorted, I as InjectedChildMixin, a as Sorted$1 } from './chunk-70481141.js';
|
|
7
|
+
import { I as Image } from './chunk-07da0ba7.js';
|
|
8
8
|
|
|
9
9
|
var script = {
|
|
10
10
|
name: 'BCarousel',
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { _ as _defineProperty } from './chunk-
|
|
2
|
-
import { I as Icon } from './chunk-
|
|
1
|
+
import { _ as _defineProperty } from './chunk-851d1b8f.js';
|
|
2
|
+
import { I as Icon } from './chunk-4b289821.js';
|
|
3
3
|
import { _ as __vue_normalize__ } from './chunk-cca88db8.js';
|
|
4
|
-
import { I as Input } from './chunk-
|
|
5
|
-
import { T as TimepickerMixin } from './chunk-
|
|
6
|
-
import { D as Dropdown, a as DropdownItem } from './chunk-
|
|
7
|
-
import { F as Field } from './chunk-
|
|
8
|
-
import { S as Select } from './chunk-
|
|
4
|
+
import { I as Input } from './chunk-d77d421b.js';
|
|
5
|
+
import { T as TimepickerMixin } from './chunk-27ec55c7.js';
|
|
6
|
+
import { D as Dropdown, a as DropdownItem } from './chunk-0c67e5e7.js';
|
|
7
|
+
import { F as Field } from './chunk-6a7209ee.js';
|
|
8
|
+
import { S as Select } from './chunk-bf29bc31.js';
|
|
9
9
|
|
|
10
10
|
var _components;
|
|
11
11
|
var script = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as _defineProperty } from './chunk-
|
|
1
|
+
import { _ as _defineProperty } from './chunk-851d1b8f.js';
|
|
2
2
|
import { c as config } from './chunk-e92e3389.js';
|
|
3
|
-
import { I as Icon } from './chunk-
|
|
3
|
+
import { I as Icon } from './chunk-4b289821.js';
|
|
4
4
|
import { _ as __vue_normalize__ } from './chunk-cca88db8.js';
|
|
5
5
|
|
|
6
6
|
//
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as _defineProperty } from './chunk-
|
|
1
|
+
import { _ as _defineProperty } from './chunk-851d1b8f.js';
|
|
2
2
|
import { isWebpSupported } from './helpers.js';
|
|
3
3
|
import { c as config } from './chunk-e92e3389.js';
|
|
4
4
|
import { _ as __vue_normalize__ } from './chunk-cca88db8.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as _toConsumableArray, b as _typeof } from './chunk-
|
|
1
|
+
import { d as _toConsumableArray, b as _typeof } from './chunk-851d1b8f.js';
|
|
2
2
|
import { toCssWidth, isCustomElement, createAbsoluteElement, removeElement } from './helpers.js';
|
|
3
3
|
import { c as config } from './chunk-e92e3389.js';
|
|
4
4
|
import { _ as __vue_normalize__ } from './chunk-cca88db8.js';
|
|
5
|
-
import { P as ProviderParentMixin, I as InjectedChildMixin } from './chunk-
|
|
5
|
+
import { P as ProviderParentMixin, I as InjectedChildMixin } from './chunk-70481141.js';
|
|
6
6
|
import { t as trapFocus } from './chunk-42f463e6.js';
|
|
7
7
|
|
|
8
8
|
var DEFAULT_CLOSE_OPTIONS = ['escape', 'outside'];
|
|
@@ -70,7 +70,11 @@ var script = {
|
|
|
70
70
|
},
|
|
71
71
|
expanded: Boolean,
|
|
72
72
|
appendToBody: Boolean,
|
|
73
|
-
appendToBodyCopyParent: Boolean
|
|
73
|
+
appendToBodyCopyParent: Boolean,
|
|
74
|
+
triggerTabindex: {
|
|
75
|
+
type: Number,
|
|
76
|
+
default: 0
|
|
77
|
+
}
|
|
74
78
|
},
|
|
75
79
|
data: function data() {
|
|
76
80
|
return {
|
|
@@ -417,7 +421,7 @@ var script = {
|
|
|
417
421
|
const __vue_script__ = script;
|
|
418
422
|
|
|
419
423
|
/* template */
|
|
420
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"dropdown",staticClass:"dropdown dropdown-menu-animation",class:_vm.rootClasses,on:{"mouseleave":function($event){_vm.isHoverable = false;}}},[(!_vm.inline)?_c('div',{ref:"trigger",staticClass:"dropdown-trigger",attrs:{"tabindex":_vm.disabled ? false :
|
|
424
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"dropdown",staticClass:"dropdown dropdown-menu-animation",class:_vm.rootClasses,on:{"mouseleave":function($event){_vm.isHoverable = false;}}},[(!_vm.inline)?_c('div',{ref:"trigger",staticClass:"dropdown-trigger",attrs:{"tabindex":_vm.disabled ? false : _vm.triggerTabindex,"aria-haspopup":"true"},on:{"click":_vm.onClick,"contextmenu":function($event){$event.preventDefault();return _vm.onContextMenu($event)},"mouseenter":_vm.onHover,"!focus":function($event){return _vm.onFocus($event)}}},[_vm._t("trigger",null,{"active":_vm.isActive})],2):_vm._e(),_c('transition',{attrs:{"name":_vm.animation}},[(_vm.isMobileModal)?_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isActive),expression:"isActive"}],staticClass:"background",attrs:{"aria-hidden":!_vm.isActive}}):_vm._e()]),_c('transition',{attrs:{"name":_vm.animation}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:((!_vm.disabled && (_vm.isActive || _vm.isHoverable)) || _vm.inline),expression:"(!disabled && (isActive || isHoverable)) || inline"},{name:"trap-focus",rawName:"v-trap-focus",value:(_vm.trapFocus),expression:"trapFocus"}],ref:"dropdownMenu",staticClass:"dropdown-menu",style:(_vm.style),attrs:{"aria-hidden":!_vm.isActive}},[_c('div',{staticClass:"dropdown-content",style:(_vm.contentStyle),attrs:{"role":_vm.ariaRole,"aria-modal":!_vm.inline}},[_vm._t("default")],2)])])],1)};
|
|
421
425
|
var __vue_staticRenderFns__ = [];
|
|
422
426
|
|
|
423
427
|
/* style */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as _typeof } from './chunk-
|
|
1
|
+
import { b as _typeof } from './chunk-851d1b8f.js';
|
|
2
2
|
import { createAbsoluteElement, removeElement } from './helpers.js';
|
|
3
3
|
import { c as config } from './chunk-e92e3389.js';
|
|
4
4
|
import { _ as __vue_normalize__ } from './chunk-cca88db8.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isMobile, matchWithGroups } from './helpers.js';
|
|
2
2
|
import { c as config } from './chunk-e92e3389.js';
|
|
3
|
-
import { F as FormElementMixin } from './chunk-
|
|
3
|
+
import { F as FormElementMixin } from './chunk-6ca75105.js';
|
|
4
4
|
|
|
5
5
|
var AM = 'AM';
|
|
6
6
|
var PM = 'PM';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as _defineProperty } from './chunk-
|
|
1
|
+
import { _ as _defineProperty } from './chunk-851d1b8f.js';
|
|
2
2
|
import { c as config } from './chunk-e92e3389.js';
|
|
3
3
|
import { _ as __vue_normalize__ } from './chunk-cca88db8.js';
|
|
4
4
|
|
|
@@ -292,7 +292,7 @@ var script$1 = {
|
|
|
292
292
|
const __vue_script__$1 = script$1;
|
|
293
293
|
|
|
294
294
|
/* template */
|
|
295
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"field",class:_vm.rootClasses},[(_vm.horizontal)?_c('div',{staticClass:"field-label",class:[_vm.customClass, _vm.fieldLabelSize]},[(_vm.hasLabel)?_c('label',{staticClass:"label",class:_vm.customClass,attrs:{"for":_vm.labelFor}},[(_vm.$slots.label)?_vm._t("label"):[_vm._v(_vm._s(_vm.label))]],2):_vm._e()]):[(_vm.hasLabel)?_c('label',{staticClass:"label",class:_vm.customClass,attrs:{"for":_vm.labelFor}},[(_vm.$slots.label)?_vm._t("label"):[_vm._v(_vm._s(_vm.label))]],2):_vm._e()],(_vm.horizontal)?_c('b-field-body',{attrs:{"message":_vm.newMessage ? _vm.formattedMessage : '',"type":_vm.newType}},[_vm._t("default")],2):(_vm.hasInnerField)?_c('div',{staticClass:"field-body"},[_c('b-field',{class:_vm.innerFieldClasses,attrs:{"addons":false,"type":_vm.newType}},[_vm._t("default")],2)],1):[_vm._t("default")],(_vm.hasMessage && !_vm.horizontal)?_c('p',{staticClass:"help",class:_vm.newType},[(_vm.$slots.message)?_vm._t("message"):[_vm._l((_vm.formattedMessage),function(mess,i){return [_vm._v(" "+_vm._s(mess)+" "),((i + 1) < _vm.formattedMessage.length)?_c('br',{key:i}):_vm._e()]})]],2):_vm._e()],2)};
|
|
295
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"field",class:_vm.rootClasses},[(_vm.horizontal)?_c('div',{staticClass:"field-label",class:[_vm.customClass, _vm.fieldLabelSize]},[(_vm.hasLabel)?_c('label',{staticClass:"label",class:_vm.customClass,attrs:{"for":_vm.labelFor}},[(_vm.$slots.label)?_vm._t("label"):[_vm._v(_vm._s(_vm.label))]],2):_vm._e()]):[(_vm.hasLabel)?_c('label',{staticClass:"label",class:_vm.customClass,attrs:{"for":_vm.labelFor}},[(_vm.$slots.label)?_vm._t("label"):[_vm._v(_vm._s(_vm.label))]],2):_vm._e()],(_vm.horizontal)?_c('b-field-body',{attrs:{"message":_vm.newMessage ? _vm.formattedMessage : '',"type":_vm.newType}},[_vm._t("default")],2):(_vm.hasInnerField)?_c('div',{staticClass:"field-body"},[_c('b-field',{class:_vm.innerFieldClasses,attrs:{"addons":false,"type":_vm.newType}},[_vm._t("default")],2)],1):[_vm._t("default")],(_vm.hasMessage && !_vm.horizontal)?_c('p',{staticClass:"help",class:_vm.newType},[(_vm.$slots.message)?_vm._t("message",null,{"messages":_vm.formattedMessage}):[_vm._l((_vm.formattedMessage),function(mess,i){return [_vm._v(" "+_vm._s(mess)+" "),((i + 1) < _vm.formattedMessage.length)?_c('br',{key:i}):_vm._e()]})]],2):_vm._e()],2)};
|
|
296
296
|
var __vue_staticRenderFns__ = [];
|
|
297
297
|
|
|
298
298
|
/* style */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as _defineProperty } from './chunk-
|
|
1
|
+
import { _ as _defineProperty } from './chunk-851d1b8f.js';
|
|
2
2
|
import { c as config } from './chunk-e92e3389.js';
|
|
3
|
-
import { I as Icon } from './chunk-
|
|
3
|
+
import { I as Icon } from './chunk-4b289821.js';
|
|
4
4
|
import { _ as __vue_normalize__ } from './chunk-cca88db8.js';
|
|
5
5
|
|
|
6
6
|
var script = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as _defineProperty } from './chunk-
|
|
1
|
+
import { _ as _defineProperty } from './chunk-851d1b8f.js';
|
|
2
2
|
import { bound } from './helpers.js';
|
|
3
|
-
import { I as Icon } from './chunk-
|
|
4
|
-
import { P as ProviderParentMixin, S as Sorted, I as InjectedChildMixin, a as Sorted$1 } from './chunk-
|
|
5
|
-
import { S as SlotComponent } from './chunk-
|
|
3
|
+
import { I as Icon } from './chunk-4b289821.js';
|
|
4
|
+
import { P as ProviderParentMixin, S as Sorted, I as InjectedChildMixin, a as Sorted$1 } from './chunk-70481141.js';
|
|
5
|
+
import { S as SlotComponent } from './chunk-f37c671e.js';
|
|
6
6
|
|
|
7
7
|
var TabbedMixin = (function (cmp) {
|
|
8
8
|
var _components;
|
|
@@ -173,15 +173,15 @@ var TabbedChildMixin = (function (parentCmp) {
|
|
|
173
173
|
}
|
|
174
174
|
},
|
|
175
175
|
methods: {
|
|
176
|
-
/**
|
|
177
|
-
* Activate element, alter animation name based on the index.
|
|
176
|
+
/**
|
|
177
|
+
* Activate element, alter animation name based on the index.
|
|
178
178
|
*/
|
|
179
179
|
activate: function activate(oldIndex) {
|
|
180
180
|
this.transitionName = this.index < oldIndex ? this.parent.vertical ? 'slide-down' : 'slide-next' : this.parent.vertical ? 'slide-up' : 'slide-prev';
|
|
181
181
|
},
|
|
182
182
|
|
|
183
|
-
/**
|
|
184
|
-
* Deactivate element, alter animation name based on the index.
|
|
183
|
+
/**
|
|
184
|
+
* Deactivate element, alter animation name based on the index.
|
|
185
185
|
*/
|
|
186
186
|
deactivate: function deactivate(newIndex) {
|
|
187
187
|
this.transitionName = newIndex < this.index ? this.parent.vertical ? 'slide-down' : 'slide-next' : this.parent.vertical ? 'slide-up' : 'slide-prev';
|
|
@@ -202,8 +202,8 @@ var TabbedChildMixin = (function (parentCmp) {
|
|
|
202
202
|
name: 'show',
|
|
203
203
|
value: this.isActive && this.visible
|
|
204
204
|
}],
|
|
205
|
+
staticClass: this.elementClass,
|
|
205
206
|
attrs: {
|
|
206
|
-
'class': this.elementClass,
|
|
207
207
|
'role': this.elementRole,
|
|
208
208
|
'id': "".concat(this.value, "-content"),
|
|
209
209
|
'aria-labelledby': this.elementRole ? "".concat(this.value, "-label") : null,
|
|
@@ -314,4 +314,4 @@ function _nonIterableRest() {
|
|
|
314
314
|
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
315
315
|
}
|
|
316
316
|
|
|
317
|
-
export { _defineProperty as _, _objectSpread2 as a, _typeof as b, _toArray as c, _toConsumableArray as d, _inherits as e, _wrapNativeSuper as f,
|
|
317
|
+
export { _defineProperty as _, _objectSpread2 as a, _typeof as b, _toArray as c, _toConsumableArray as d, _inherits as e, _wrapNativeSuper as f, _createClass as g, _classCallCheck as h, _possibleConstructorReturn as i, _getPrototypeOf as j, _slicedToArray as k, _taggedTemplateLiteral as l, _objectWithoutProperties as m };
|
|
@@ -63,6 +63,7 @@ var script = {
|
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
customClass: String,
|
|
66
|
+
customContentClass: [String, Array, Object],
|
|
66
67
|
ariaRole: {
|
|
67
68
|
type: String,
|
|
68
69
|
validator: function validator(value) {
|
|
@@ -250,7 +251,7 @@ var script = {
|
|
|
250
251
|
const __vue_script__ = script;
|
|
251
252
|
|
|
252
253
|
/* template */
|
|
253
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{"name":_vm.animation},on:{"after-enter":_vm.afterEnter,"before-leave":_vm.beforeLeave,"after-leave":_vm.afterLeave}},[(!_vm.destroyed)?_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isActive),expression:"isActive"},{name:"trap-focus",rawName:"v-trap-focus",value:(_vm.trapFocus),expression:"trapFocus"}],staticClass:"modal is-active",class:[{'is-full-screen': _vm.fullScreen}, _vm.customClass],attrs:{"tabindex":"-1","role":_vm.ariaRole,"aria-label":_vm.ariaLabel,"aria-modal":_vm.ariaModal}},[_c('div',{staticClass:"modal-background",on:{"click":function($event){return _vm.cancel('outside')}}}),_c('div',{staticClass:"animation-content",class:{ 'modal-content': !_vm.hasModalCard },style:(_vm.customStyle)},[(_vm.component)?_c(_vm.component,_vm._g(_vm._b({tag:"component",attrs:{"can-cancel":_vm.canCancel},on:{"close":_vm.close}},'component',_vm.props,false),_vm.events)):(_vm.content)?[_c('div',{domProps:{"innerHTML":_vm._s(_vm.content)}})]:_vm._t("default",null,{"canCancel":_vm.canCancel,"close":_vm.close}),(_vm.showX)?_c('button',{directives:[{name:"show",rawName:"v-show",value:(!_vm.animating),expression:"!animating"}],staticClass:"modal-close is-large",attrs:{"type":"button","aria-label":_vm.closeButtonAriaLabel},on:{"click":function($event){return _vm.cancel('x')}}}):_vm._e()],2)]):_vm._e()])};
|
|
254
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{"name":_vm.animation},on:{"after-enter":_vm.afterEnter,"before-leave":_vm.beforeLeave,"after-leave":_vm.afterLeave}},[(!_vm.destroyed)?_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isActive),expression:"isActive"},{name:"trap-focus",rawName:"v-trap-focus",value:(_vm.trapFocus),expression:"trapFocus"}],staticClass:"modal is-active",class:[{'is-full-screen': _vm.fullScreen}, _vm.customClass],attrs:{"tabindex":"-1","role":_vm.ariaRole,"aria-label":_vm.ariaLabel,"aria-modal":_vm.ariaModal}},[_c('div',{staticClass:"modal-background",on:{"click":function($event){return _vm.cancel('outside')}}}),_c('div',{staticClass:"animation-content",class:[{ 'modal-content': !_vm.hasModalCard }, _vm.customContentClass],style:(_vm.customStyle)},[(_vm.component)?_c(_vm.component,_vm._g(_vm._b({tag:"component",attrs:{"can-cancel":_vm.canCancel},on:{"close":_vm.close}},'component',_vm.props,false),_vm.events)):(_vm.content)?[_c('div',{domProps:{"innerHTML":_vm._s(_vm.content)}})]:_vm._t("default",null,{"canCancel":_vm.canCancel,"close":_vm.close}),(_vm.showX)?_c('button',{directives:[{name:"show",rawName:"v-show",value:(!_vm.animating),expression:"!animating"}],staticClass:"modal-close is-large",attrs:{"type":"button","aria-label":_vm.closeButtonAriaLabel},on:{"click":function($event){return _vm.cancel('x')}}}):_vm._e()],2)]):_vm._e()])};
|
|
254
255
|
var __vue_staticRenderFns__ = [];
|
|
255
256
|
|
|
256
257
|
/* style */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as _defineProperty, d as _toConsumableArray, b as _typeof } from './chunk-
|
|
1
|
+
import { _ as _defineProperty, d as _toConsumableArray, b as _typeof } from './chunk-851d1b8f.js';
|
|
2
2
|
import { getValueByPath, toCssWidth, isCustomElement, createAbsoluteElement, removeElement } from './helpers.js';
|
|
3
|
-
import { F as FormElementMixin } from './chunk-
|
|
3
|
+
import { F as FormElementMixin } from './chunk-6ca75105.js';
|
|
4
4
|
import { _ as __vue_normalize__ } from './chunk-cca88db8.js';
|
|
5
|
-
import { I as Input } from './chunk-
|
|
5
|
+
import { I as Input } from './chunk-d77d421b.js';
|
|
6
6
|
|
|
7
7
|
var script = {
|
|
8
8
|
name: 'BAutocomplete',
|
|
@@ -266,6 +266,21 @@ var script = {
|
|
|
266
266
|
}
|
|
267
267
|
},
|
|
268
268
|
|
|
269
|
+
/**
|
|
270
|
+
* When checkInfiniteScroll property changes scroll event should be removed or added
|
|
271
|
+
*/
|
|
272
|
+
checkInfiniteScroll: function checkInfiniteScroll(_checkInfiniteScroll) {
|
|
273
|
+
if ((this.$refs.dropdown && this.$refs.dropdown.querySelector('.dropdown-content')) === false) return;
|
|
274
|
+
var list = this.$refs.dropdown.querySelector('.dropdown-content');
|
|
275
|
+
|
|
276
|
+
if (_checkInfiniteScroll === true) {
|
|
277
|
+
list.addEventListener('scroll', this.checkIfReachedTheEndOfScroll);
|
|
278
|
+
return;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
list.removeEventListener('scroll', this.checkIfReachedTheEndOfScroll);
|
|
282
|
+
},
|
|
283
|
+
|
|
269
284
|
/**
|
|
270
285
|
* When updating input's value
|
|
271
286
|
* 1. Emit changes
|
|
@@ -476,8 +491,11 @@ var script = {
|
|
|
476
491
|
* Check if the scroll list inside the dropdown
|
|
477
492
|
* reached it's end.
|
|
478
493
|
*/
|
|
479
|
-
checkIfReachedTheEndOfScroll: function checkIfReachedTheEndOfScroll(
|
|
480
|
-
|
|
494
|
+
checkIfReachedTheEndOfScroll: function checkIfReachedTheEndOfScroll() {
|
|
495
|
+
var list = this.$refs.dropdown.querySelector('.dropdown-content');
|
|
496
|
+
var footerHeight = this.hasFooterSlot ? list.querySelectorAll('div.dropdown-footer')[0].clientHeight : 0;
|
|
497
|
+
|
|
498
|
+
if (list.clientHeight !== list.scrollHeight && list.scrollTop + list.parentElement.clientHeight + footerHeight >= list.scrollHeight) {
|
|
481
499
|
this.$emit('infinite-scroll');
|
|
482
500
|
}
|
|
483
501
|
},
|
|
@@ -682,13 +700,9 @@ var script = {
|
|
|
682
700
|
}
|
|
683
701
|
},
|
|
684
702
|
mounted: function mounted() {
|
|
685
|
-
var _this8 = this;
|
|
686
|
-
|
|
687
703
|
if (this.checkInfiniteScroll && this.$refs.dropdown && this.$refs.dropdown.querySelector('.dropdown-content')) {
|
|
688
704
|
var list = this.$refs.dropdown.querySelector('.dropdown-content');
|
|
689
|
-
list.addEventListener('scroll',
|
|
690
|
-
return _this8.checkIfReachedTheEndOfScroll(list);
|
|
691
|
-
});
|
|
705
|
+
list.addEventListener('scroll', this.checkIfReachedTheEndOfScroll);
|
|
692
706
|
}
|
|
693
707
|
|
|
694
708
|
if (this.appendToBody) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as _defineProperty } from './chunk-
|
|
2
|
-
import { F as FormElementMixin } from './chunk-
|
|
3
|
-
import { I as Icon } from './chunk-
|
|
1
|
+
import { _ as _defineProperty } from './chunk-851d1b8f.js';
|
|
2
|
+
import { F as FormElementMixin } from './chunk-6ca75105.js';
|
|
3
|
+
import { I as Icon } from './chunk-4b289821.js';
|
|
4
4
|
import { _ as __vue_normalize__ } from './chunk-cca88db8.js';
|
|
5
5
|
|
|
6
6
|
var script = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as _defineProperty } from './chunk-
|
|
2
|
-
import { I as Icon } from './chunk-
|
|
1
|
+
import { _ as _defineProperty } from './chunk-851d1b8f.js';
|
|
2
|
+
import { I as Icon } from './chunk-4b289821.js';
|
|
3
3
|
|
|
4
4
|
var MessageMixin = {
|
|
5
5
|
components: _defineProperty({}, Icon.name, Icon),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as _defineProperty } from './chunk-
|
|
1
|
+
import { _ as _defineProperty } from './chunk-851d1b8f.js';
|
|
2
2
|
import { c as config } from './chunk-e92e3389.js';
|
|
3
|
-
import { F as FormElementMixin } from './chunk-
|
|
4
|
-
import { I as Icon } from './chunk-
|
|
3
|
+
import { F as FormElementMixin } from './chunk-6ca75105.js';
|
|
4
|
+
import { I as Icon } from './chunk-4b289821.js';
|
|
5
5
|
import { _ as __vue_normalize__ } from './chunk-cca88db8.js';
|
|
6
6
|
|
|
7
7
|
var script = {
|
|
@@ -143,7 +143,7 @@ var script = {
|
|
|
143
143
|
*/
|
|
144
144
|
valueLength: function valueLength() {
|
|
145
145
|
if (typeof this.computedValue === 'string') {
|
|
146
|
-
return this.computedValue.length;
|
|
146
|
+
return Array.from(this.computedValue).length;
|
|
147
147
|
} else if (typeof this.computedValue === 'number') {
|
|
148
148
|
return this.computedValue.toString().length;
|
|
149
149
|
}
|
|
@@ -158,6 +158,9 @@ var script = {
|
|
|
158
158
|
*/
|
|
159
159
|
value: function value(_value) {
|
|
160
160
|
this.newValue = _value;
|
|
161
|
+
},
|
|
162
|
+
type: function type(_type) {
|
|
163
|
+
this.newType = _type;
|
|
161
164
|
}
|
|
162
165
|
},
|
|
163
166
|
methods: {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { _ as _defineProperty, d as _toConsumableArray } from './chunk-
|
|
1
|
+
import { _ as _defineProperty, d as _toConsumableArray } from './chunk-851d1b8f.js';
|
|
2
2
|
import { isDefined, getMonthNames, getWeekdayNames, isMobile, matchWithGroups } from './helpers.js';
|
|
3
3
|
import { c as config } from './chunk-e92e3389.js';
|
|
4
|
-
import { F as FormElementMixin } from './chunk-
|
|
5
|
-
import { I as Icon } from './chunk-
|
|
4
|
+
import { F as FormElementMixin } from './chunk-6ca75105.js';
|
|
5
|
+
import { I as Icon } from './chunk-4b289821.js';
|
|
6
6
|
import { _ as __vue_normalize__ } from './chunk-cca88db8.js';
|
|
7
|
-
import { I as Input } from './chunk-
|
|
8
|
-
import { D as Dropdown, a as DropdownItem } from './chunk-
|
|
9
|
-
import { F as Field } from './chunk-
|
|
10
|
-
import { S as Select } from './chunk-
|
|
7
|
+
import { I as Input } from './chunk-d77d421b.js';
|
|
8
|
+
import { D as Dropdown, a as DropdownItem } from './chunk-0c67e5e7.js';
|
|
9
|
+
import { F as Field } from './chunk-6a7209ee.js';
|
|
10
|
+
import { S as Select } from './chunk-bf29bc31.js';
|
|
11
11
|
|
|
12
12
|
//
|
|
13
13
|
//
|
|
@@ -1794,7 +1794,7 @@ var script$3 = {
|
|
|
1794
1794
|
const __vue_script__$3 = script$3;
|
|
1795
1795
|
|
|
1796
1796
|
/* template */
|
|
1797
|
-
var __vue_render__$3 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"datepicker control",class:[_vm.size, {'is-expanded': _vm.expanded}]},[(!_vm.isMobile || _vm.inline)?_c('b-dropdown',{ref:"dropdown",attrs:{"position":_vm.position,"disabled":_vm.disabled,"inline":_vm.inline,"mobile-modal":_vm.mobileModal,"trap-focus":_vm.trapFocus,"aria-role":_vm.ariaRole,"append-to-body":_vm.appendToBody,"append-to-body-copy-parent":""},on:{"active-change":_vm.onActiveChange},scopedSlots:_vm._u([(!_vm.inline)?{key:"trigger",fn:function(){return [_vm._t("trigger",[_c('b-input',_vm._b({ref:"input",attrs:{"autocomplete":"off","value":_vm.formattedValue,"placeholder":_vm.placeholder,"size":_vm.size,"icon":_vm.icon,"icon-right":_vm.iconRight,"icon-right-clickable":_vm.iconRightClickable,"icon-pack":_vm.iconPack,"rounded":_vm.rounded,"loading":_vm.loading,"disabled":_vm.disabled,"readonly":!_vm.editable,"use-html5-validation":false},on:{"icon-right-click":function($event){return _vm.$emit('icon-right-click', $event)},"focus":_vm.handleOnFocus},nativeOn:{"click":function($event){return _vm.onInputClick($event)},"keyup":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.togglePicker(true)},"change":function($event){return _vm.onChange($event.target.value)}}},'b-input',_vm.$attrs,false))])]}
|
|
1797
|
+
var __vue_render__$3 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"datepicker control",class:[_vm.size, {'is-expanded': _vm.expanded}]},[(!_vm.isMobile || _vm.inline)?_c('b-dropdown',{ref:"dropdown",attrs:{"position":_vm.position,"disabled":_vm.disabled,"inline":_vm.inline,"mobile-modal":_vm.mobileModal,"trap-focus":_vm.trapFocus,"aria-role":_vm.ariaRole,"append-to-body":_vm.appendToBody,"append-to-body-copy-parent":"","trigger-tabindex":-1},on:{"active-change":_vm.onActiveChange},scopedSlots:_vm._u([(!_vm.inline)?{key:"trigger",fn:function(props){return [_vm._t("trigger",[_c('b-input',_vm._b({ref:"input",attrs:{"autocomplete":"off","value":_vm.formattedValue,"placeholder":_vm.placeholder,"size":_vm.size,"icon":_vm.icon,"icon-right":_vm.iconRight,"icon-right-clickable":_vm.iconRightClickable,"icon-pack":_vm.iconPack,"rounded":_vm.rounded,"loading":_vm.loading,"disabled":_vm.disabled,"readonly":!_vm.editable,"use-html5-validation":false},on:{"icon-right-click":function($event){return _vm.$emit('icon-right-click', $event)},"focus":_vm.handleOnFocus},nativeOn:{"click":function($event){return _vm.onInputClick($event)},"keyup":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.togglePicker(true)},"change":function($event){return _vm.onChange($event.target.value)}}},'b-input',_vm.$attrs,false))],null,props)]}}:null],null,true)},[_c('b-dropdown-item',{class:{'dropdown-horizontal-timepicker': _vm.horizontalTimePicker},attrs:{"disabled":_vm.disabled,"focusable":_vm.focusable,"custom":""}},[_c('div',[_c('header',{staticClass:"datepicker-header"},[(_vm.$slots.header !== undefined && _vm.$slots.header.length)?[_vm._t("header")]:_c('div',{staticClass:"pagination field is-centered",class:_vm.size},[_c('a',{directives:[{name:"show",rawName:"v-show",value:(!_vm.showPrev && !_vm.disabled),expression:"!showPrev && !disabled"}],staticClass:"pagination-previous",attrs:{"role":"button","href":"#","disabled":_vm.disabled,"aria-label":_vm.ariaPreviousLabel},on:{"click":function($event){$event.preventDefault();return _vm.prev($event)},"keydown":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }$event.preventDefault();return _vm.prev($event)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"space",32,$event.key,[" ","Spacebar"])){ return null; }$event.preventDefault();return _vm.prev($event)}]}},[_c('b-icon',{attrs:{"icon":_vm.iconPrev,"pack":_vm.iconPack,"both":"","type":"is-primary is-clickable"}})],1),_c('a',{directives:[{name:"show",rawName:"v-show",value:(!_vm.showNext && !_vm.disabled),expression:"!showNext && !disabled"}],staticClass:"pagination-next",attrs:{"role":"button","href":"#","disabled":_vm.disabled,"aria-label":_vm.ariaNextLabel},on:{"click":function($event){$event.preventDefault();return _vm.next($event)},"keydown":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }$event.preventDefault();return _vm.next($event)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"space",32,$event.key,[" ","Spacebar"])){ return null; }$event.preventDefault();return _vm.next($event)}]}},[_c('b-icon',{attrs:{"icon":_vm.iconNext,"pack":_vm.iconPack,"both":"","type":"is-primary is-clickable"}})],1),_c('div',{staticClass:"pagination-list"},[_c('b-field',[(!_vm.isTypeMonth)?_c('b-select',{attrs:{"disabled":_vm.disabled,"size":_vm.size},model:{value:(_vm.focusedDateData.month),callback:function ($$v) {_vm.$set(_vm.focusedDateData, "month", $$v);},expression:"focusedDateData.month"}},_vm._l((_vm.listOfMonths),function(month){return _c('option',{key:month.name,attrs:{"disabled":month.disabled},domProps:{"value":month.index}},[_vm._v(" "+_vm._s(month.name)+" ")])}),0):_vm._e(),_c('b-select',{attrs:{"disabled":_vm.disabled,"size":_vm.size},model:{value:(_vm.focusedDateData.year),callback:function ($$v) {_vm.$set(_vm.focusedDateData, "year", $$v);},expression:"focusedDateData.year"}},_vm._l((_vm.listOfYears),function(year){return _c('option',{key:year,domProps:{"value":year}},[_vm._v(" "+_vm._s(year)+" ")])}),0)],1)],1)])],2),(!_vm.isTypeMonth)?_c('div',{staticClass:"datepicker-content",class:{'content-horizontal-timepicker': _vm.horizontalTimePicker}},[_c('b-datepicker-table',{attrs:{"day-names":_vm.newDayNames,"month-names":_vm.newMonthNames,"first-day-of-week":_vm.firstDayOfWeek,"rules-for-first-week":_vm.rulesForFirstWeek,"min-date":_vm.minDate,"max-date":_vm.maxDate,"focused":_vm.focusedDateData,"disabled":_vm.disabled,"unselectable-dates":_vm.unselectableDates,"unselectable-days-of-week":_vm.unselectableDaysOfWeek,"selectable-dates":_vm.selectableDates,"events":_vm.events,"indicators":_vm.indicators,"date-creator":_vm.dateCreator,"type-month":_vm.isTypeMonth,"nearby-month-days":_vm.nearbyMonthDays,"nearby-selectable-month-days":_vm.nearbySelectableMonthDays,"show-week-number":_vm.showWeekNumber,"week-number-clickable":_vm.weekNumberClickable,"range":_vm.range,"multiple":_vm.multiple},on:{"range-start":function (date) { return _vm.$emit('range-start', date); },"range-end":function (date) { return _vm.$emit('range-end', date); },"close":function($event){return _vm.togglePicker(false)},"update:focused":function($event){_vm.focusedDateData = $event;}},model:{value:(_vm.computedValue),callback:function ($$v) {_vm.computedValue=$$v;},expression:"computedValue"}})],1):_c('div',[_c('b-datepicker-month',{attrs:{"month-names":_vm.newMonthNames,"min-date":_vm.minDate,"max-date":_vm.maxDate,"focused":_vm.focusedDateData,"disabled":_vm.disabled,"unselectable-dates":_vm.unselectableDates,"unselectable-days-of-week":_vm.unselectableDaysOfWeek,"selectable-dates":_vm.selectableDates,"events":_vm.events,"indicators":_vm.indicators,"date-creator":_vm.dateCreator,"range":_vm.range,"multiple":_vm.multiple},on:{"range-start":function (date) { return _vm.$emit('range-start', date); },"range-end":function (date) { return _vm.$emit('range-end', date); },"close":function($event){return _vm.togglePicker(false)},"change-focus":_vm.changeFocus,"update:focused":function($event){_vm.focusedDateData = $event;}},model:{value:(_vm.computedValue),callback:function ($$v) {_vm.computedValue=$$v;},expression:"computedValue"}})],1)]),(_vm.$slots.default !== undefined && _vm.$slots.default.length)?_c('footer',{staticClass:"datepicker-footer",class:{'footer-horizontal-timepicker': _vm.horizontalTimePicker}},[_vm._t("default")],2):_vm._e()])],1):_c('b-input',_vm._b({ref:"input",attrs:{"type":!_vm.isTypeMonth ? 'date' : 'month',"autocomplete":"off","value":_vm.formatNative(_vm.computedValue),"placeholder":_vm.placeholder,"size":_vm.size,"icon":_vm.icon,"icon-pack":_vm.iconPack,"rounded":_vm.rounded,"loading":_vm.loading,"max":_vm.formatNative(_vm.maxDate),"min":_vm.formatNative(_vm.minDate),"disabled":_vm.disabled,"readonly":false,"use-html5-validation":false},on:{"focus":_vm.onFocus,"blur":_vm.onBlur},nativeOn:{"change":function($event){return _vm.onChangeNativePicker($event)}}},'b-input',_vm.$attrs,false))],1)};
|
|
1798
1798
|
var __vue_staticRenderFns__$3 = [];
|
|
1799
1799
|
|
|
1800
1800
|
/* style */
|
package/dist/esm/clockpicker.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { _ as _defineProperty } from './chunk-
|
|
1
|
+
import { _ as _defineProperty } from './chunk-851d1b8f.js';
|
|
2
2
|
import './helpers.js';
|
|
3
3
|
import { c as config } from './chunk-e92e3389.js';
|
|
4
|
-
import './chunk-
|
|
5
|
-
import { I as Icon } from './chunk-
|
|
4
|
+
import './chunk-6ca75105.js';
|
|
5
|
+
import { I as Icon } from './chunk-4b289821.js';
|
|
6
6
|
import { _ as __vue_normalize__, r as registerComponent, u as use } from './chunk-cca88db8.js';
|
|
7
|
-
import { I as Input } from './chunk-
|
|
8
|
-
import './chunk-
|
|
9
|
-
import { T as TimepickerMixin } from './chunk-
|
|
7
|
+
import { I as Input } from './chunk-d77d421b.js';
|
|
8
|
+
import './chunk-70481141.js';
|
|
9
|
+
import { T as TimepickerMixin } from './chunk-27ec55c7.js';
|
|
10
10
|
import './chunk-42f463e6.js';
|
|
11
|
-
import { D as Dropdown, a as DropdownItem } from './chunk-
|
|
12
|
-
import { F as Field } from './chunk-
|
|
11
|
+
import { D as Dropdown, a as DropdownItem } from './chunk-0c67e5e7.js';
|
|
12
|
+
import { F as Field } from './chunk-6a7209ee.js';
|
|
13
13
|
|
|
14
14
|
//
|
|
15
15
|
//
|