buefy 0.9.26 → 0.9.28
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 +3 -1
- package/dist/buefy.css +15904 -0
- package/dist/buefy.esm.js +17883 -0
- package/dist/buefy.esm.min.js +2 -0
- package/dist/buefy.js +17967 -0
- package/dist/buefy.min.css +1 -0
- package/dist/buefy.min.js +2 -0
- package/dist/cjs/Autocomplete-7a39c5ce.js +673 -0
- package/dist/cjs/Button-01827709.js +114 -0
- package/dist/cjs/CheckRadioMixin-c910f2ed.js +45 -0
- package/dist/cjs/Checkbox-43f54cc7.js +70 -0
- package/dist/cjs/Datepicker-680659bc.js +1679 -0
- package/dist/cjs/DropdownItem-422f8c34.js +559 -0
- package/dist/cjs/Field-4557b10c.js +315 -0
- package/dist/cjs/FormElementMixin-193a88b8.js +163 -0
- package/dist/cjs/Icon-78961800.js +189 -0
- package/dist/cjs/Image-c4bcd9b3.js +299 -0
- package/dist/cjs/InjectedChildMixin-d6bf7f91.js +135 -0
- package/dist/cjs/Input-e5a72d97.js +248 -0
- package/dist/cjs/Loading-6f2c7075.js +150 -0
- package/dist/cjs/MessageMixin-8d959514.js +146 -0
- package/dist/cjs/Modal-4cf07210.js +278 -0
- package/dist/cjs/NoticeMixin-01121bd2.js +154 -0
- package/dist/cjs/Pagination-d6b3fb85.js +413 -0
- package/dist/cjs/Select-2b3879bc.js +100 -0
- package/dist/cjs/SlotComponent-4fb48389.js +53 -0
- package/dist/cjs/TabbedChildMixin-907cad32.js +222 -0
- package/dist/cjs/Tag-437f65fb.js +154 -0
- package/dist/cjs/Timepicker-498fa02b.js +67 -0
- package/dist/cjs/TimepickerMixin-6c1a4ab4.js +661 -0
- package/dist/cjs/Tooltip-c1df7ee3.js +370 -0
- package/dist/cjs/_rollupPluginBabelHelpers-8b2e54ad.js +365 -0
- package/dist/cjs/autocomplete.js +22 -0
- package/dist/cjs/breadcrumb.js +139 -0
- package/dist/cjs/button.js +20 -0
- package/dist/cjs/carousel.js +662 -0
- package/dist/cjs/checkbox.js +86 -0
- package/dist/cjs/clockpicker.js +461 -0
- package/dist/cjs/collapse.js +128 -0
- package/dist/cjs/colorpicker.js +23 -0
- package/dist/cjs/config-8cfb5a4a.js +81 -0
- package/dist/cjs/config.js +18 -0
- package/dist/cjs/datepicker.js +27 -0
- package/dist/cjs/datetimepicker.js +377 -0
- package/dist/cjs/dialog.js +308 -0
- package/dist/cjs/dropdown.js +23 -0
- package/dist/cjs/field.js +18 -0
- package/dist/cjs/helpers.js +375 -0
- package/dist/cjs/icon.js +19 -0
- package/dist/cjs/image.js +19 -0
- package/dist/cjs/index-99d1c930.js +1633 -0
- package/dist/cjs/index.js +216 -0
- package/dist/cjs/input.js +21 -0
- package/dist/cjs/loading.js +38 -0
- package/dist/cjs/menu.js +304 -0
- package/dist/cjs/message.js +67 -0
- package/dist/cjs/modal.js +59 -0
- package/dist/cjs/navbar.js +679 -0
- package/dist/cjs/notification.js +181 -0
- package/dist/cjs/numberinput.js +278 -0
- package/dist/cjs/pagination.js +22 -0
- package/dist/cjs/plugins-7f41b028.js +94 -0
- package/dist/cjs/progress.js +239 -0
- package/dist/cjs/radio.js +130 -0
- package/dist/cjs/rate.js +156 -0
- package/dist/cjs/select.js +21 -0
- package/dist/cjs/sidebar.js +303 -0
- package/dist/cjs/skeleton.js +111 -0
- package/dist/cjs/slider.js +603 -0
- package/dist/cjs/snackbar.js +132 -0
- package/dist/cjs/ssr-20dba236.js +10 -0
- package/dist/cjs/steps.js +278 -0
- package/dist/cjs/switch.js +139 -0
- package/dist/cjs/table.js +1695 -0
- package/dist/cjs/tabs.js +214 -0
- package/dist/cjs/tag.js +70 -0
- package/dist/cjs/taginput.js +331 -0
- package/dist/cjs/timepicker.js +28 -0
- package/dist/cjs/toast.js +106 -0
- package/dist/cjs/tooltip.js +19 -0
- package/dist/cjs/trapFocus-261420b0.js +49 -0
- package/dist/cjs/upload.js +205 -0
- package/dist/components/autocomplete/index.js +1620 -0
- package/dist/components/autocomplete/index.min.js +2 -0
- package/dist/components/breadcrumb/index.js +297 -0
- package/dist/components/breadcrumb/index.min.js +2 -0
- package/dist/components/button/index.js +569 -0
- package/dist/components/button/index.min.js +2 -0
- package/dist/components/carousel/index.js +1629 -0
- package/dist/components/carousel/index.min.js +2 -0
- package/dist/components/checkbox/index.js +279 -0
- package/dist/components/checkbox/index.min.js +2 -0
- package/dist/components/clockpicker/index.js +3131 -0
- package/dist/components/clockpicker/index.min.js +2 -0
- package/dist/components/collapse/index.js +217 -0
- package/dist/components/collapse/index.min.js +2 -0
- package/dist/components/colorpicker/index.js +4249 -0
- package/dist/components/colorpicker/index.min.js +2 -0
- package/dist/components/datepicker/index.js +3845 -0
- package/dist/components/datepicker/index.min.js +2 -0
- package/dist/components/datetimepicker/index.js +4902 -0
- package/dist/components/datetimepicker/index.min.js +2 -0
- package/dist/components/dialog/index.js +1168 -0
- package/dist/components/dialog/index.min.js +2 -0
- package/dist/components/dropdown/index.js +1043 -0
- package/dist/components/dropdown/index.min.js +2 -0
- package/dist/components/field/index.js +511 -0
- package/dist/components/field/index.min.js +2 -0
- package/dist/components/icon/index.js +463 -0
- package/dist/components/icon/index.min.js +2 -0
- package/dist/components/image/index.js +513 -0
- package/dist/components/image/index.min.js +2 -0
- package/dist/components/input/index.js +862 -0
- package/dist/components/input/index.min.js +2 -0
- package/dist/components/loading/index.js +366 -0
- package/dist/components/loading/index.min.js +2 -0
- package/dist/components/menu/index.js +748 -0
- package/dist/components/menu/index.min.js +2 -0
- package/dist/components/message/index.js +650 -0
- package/dist/components/message/index.min.js +2 -0
- package/dist/components/modal/index.js +624 -0
- package/dist/components/modal/index.min.js +2 -0
- package/dist/components/navbar/index.js +805 -0
- package/dist/components/navbar/index.min.js +2 -0
- package/dist/components/notification/index.js +923 -0
- package/dist/components/notification/index.min.js +2 -0
- package/dist/components/numberinput/index.js +1119 -0
- package/dist/components/numberinput/index.min.js +2 -0
- package/dist/components/pagination/index.js +868 -0
- package/dist/components/pagination/index.min.js +2 -0
- package/dist/components/progress/index.js +621 -0
- package/dist/components/progress/index.min.js +2 -0
- package/dist/components/radio/index.js +260 -0
- package/dist/components/radio/index.min.js +2 -0
- package/dist/components/rate/index.js +600 -0
- package/dist/components/rate/index.min.js +2 -0
- package/dist/components/select/index.js +715 -0
- package/dist/components/select/index.min.js +2 -0
- package/dist/components/sidebar/index.js +467 -0
- package/dist/components/sidebar/index.min.js +2 -0
- package/dist/components/skeleton/index.js +200 -0
- package/dist/components/skeleton/index.min.js +2 -0
- package/dist/components/slider/index.js +1264 -0
- package/dist/components/slider/index.min.js +2 -0
- package/dist/components/snackbar/index.js +527 -0
- package/dist/components/snackbar/index.min.js +2 -0
- package/dist/components/steps/index.js +1180 -0
- package/dist/components/steps/index.min.js +2 -0
- package/dist/components/switch/index.js +297 -0
- package/dist/components/switch/index.min.js +2 -0
- package/dist/components/table/index.js +3480 -0
- package/dist/components/table/index.min.js +2 -0
- package/dist/components/tabs/index.js +1116 -0
- package/dist/components/tabs/index.min.js +2 -0
- package/dist/components/tag/index.js +307 -0
- package/dist/components/tag/index.min.js +2 -0
- package/dist/components/taginput/index.js +2104 -0
- package/dist/components/taginput/index.min.js +2 -0
- package/dist/components/timepicker/index.js +2843 -0
- package/dist/components/timepicker/index.min.js +2 -0
- package/dist/components/toast/index.js +501 -0
- package/dist/components/toast/index.min.js +2 -0
- package/dist/components/tooltip/index.js +630 -0
- package/dist/components/tooltip/index.min.js +2 -0
- package/dist/components/upload/index.js +525 -0
- package/dist/components/upload/index.min.js +2 -0
- package/dist/esm/Autocomplete-1a6e8770.js +671 -0
- package/dist/esm/Button-521f6efc.js +112 -0
- package/dist/esm/CheckRadioMixin-e726a83c.js +43 -0
- package/dist/esm/Checkbox-1d02686e.js +68 -0
- package/dist/esm/Datepicker-0ae1e826.js +1677 -0
- package/dist/esm/DropdownItem-55682322.js +556 -0
- package/dist/esm/Field-3ceba31e.js +313 -0
- package/dist/esm/FormElementMixin-b223d3c7.js +161 -0
- package/dist/esm/Icon-60d47b31.js +187 -0
- package/dist/esm/Image-75808acb.js +297 -0
- package/dist/esm/InjectedChildMixin-b4220787.js +130 -0
- package/dist/esm/Input-20612b63.js +246 -0
- package/dist/esm/Loading-ae028ea5.js +148 -0
- package/dist/esm/MessageMixin-d577a9f5.js +144 -0
- package/dist/esm/Modal-7da7641f.js +276 -0
- package/dist/esm/NoticeMixin-bd6f61d9.js +152 -0
- package/dist/esm/Pagination-68f12c1e.js +409 -0
- package/dist/esm/Select-97781d4e.js +98 -0
- package/dist/esm/SlotComponent-8871a20f.js +51 -0
- package/dist/esm/TabbedChildMixin-bcb13767.js +219 -0
- package/dist/esm/Tag-6365aa46.js +152 -0
- package/dist/esm/Timepicker-38480bbc.js +65 -0
- package/dist/esm/TimepickerMixin-d736b0a9.js +659 -0
- package/dist/esm/Tooltip-d98a769c.js +368 -0
- package/dist/esm/_rollupPluginBabelHelpers-df313029.js +350 -0
- package/dist/esm/autocomplete.js +18 -0
- package/dist/esm/breadcrumb.js +133 -0
- package/dist/esm/button.js +16 -0
- package/dist/esm/carousel.js +655 -0
- package/dist/esm/checkbox.js +81 -0
- package/dist/esm/clockpicker.js +456 -0
- package/dist/esm/collapse.js +123 -0
- package/dist/esm/colorpicker.js +14 -0
- package/dist/esm/config-e7d4b9c2.js +78 -0
- package/dist/esm/config.js +14 -0
- package/dist/esm/datepicker.js +23 -0
- package/dist/esm/datetimepicker.js +372 -0
- package/dist/esm/dialog.js +302 -0
- package/dist/esm/dropdown.js +18 -0
- package/dist/esm/field.js +14 -0
- package/dist/esm/helpers.js +348 -0
- package/dist/esm/icon.js +15 -0
- package/dist/esm/image.js +15 -0
- package/dist/esm/index-903f63ea.js +1629 -0
- package/dist/esm/index.js +182 -0
- package/dist/esm/input.js +17 -0
- package/dist/esm/loading.js +33 -0
- package/dist/esm/menu.js +297 -0
- package/dist/esm/message.js +62 -0
- package/dist/esm/modal.js +54 -0
- package/dist/esm/navbar.js +672 -0
- package/dist/esm/notification.js +175 -0
- package/dist/esm/numberinput.js +273 -0
- package/dist/esm/pagination.js +17 -0
- package/dist/esm/plugins-218aea86.js +89 -0
- package/dist/esm/progress.js +233 -0
- package/dist/esm/radio.js +124 -0
- package/dist/esm/rate.js +151 -0
- package/dist/esm/select.js +17 -0
- package/dist/esm/sidebar.js +298 -0
- package/dist/esm/skeleton.js +106 -0
- package/dist/esm/slider.js +597 -0
- package/dist/esm/snackbar.js +126 -0
- package/dist/esm/ssr-b847d137.js +7 -0
- package/dist/esm/steps.js +272 -0
- package/dist/esm/switch.js +134 -0
- package/dist/esm/table.js +1689 -0
- package/dist/esm/tabs.js +208 -0
- package/dist/esm/tag.js +65 -0
- package/dist/esm/taginput.js +326 -0
- package/dist/esm/timepicker.js +24 -0
- package/dist/esm/toast.js +100 -0
- package/dist/esm/tooltip.js +15 -0
- package/dist/esm/trapFocus-f0736873.js +47 -0
- package/dist/esm/upload.js +200 -0
- package/dist/vetur/attributes.json +3238 -0
- package/dist/vetur/tags.json +1183 -0
- package/package.json +3 -3
- package/src/components/autocomplete/Autocomplete.spec.js +16 -0
- package/src/components/autocomplete/Autocomplete.vue +9 -3
- package/src/components/colorpicker/ColorpickerHSLRepresentationSquare.vue +2 -0
- package/src/components/colorpicker/ColorpickerHSLRepresentationTriangle.vue +2 -0
- package/src/components/dropdown/Dropdown.vue +51 -3
- package/src/components/numberinput/Numberinput.vue +4 -0
- package/src/components/sidebar/Sidebar.vue +1 -0
- package/src/components/slider/Slider.vue +7 -2
- package/src/components/slider/SliderThumb.vue +8 -0
- package/src/components/table/Table.vue +4 -1
- package/src/components/table/TableColumn.spec.js +51 -0
- package/src/components/table/TableColumn.vue +8 -1
- package/src/components/taginput/Taginput.vue +7 -2
- package/src/components/tooltip/Tooltip.vue +10 -3
- package/src/scss/components/_dropdown.scss +4 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! Buefy v0.9.28 | MIT License | github.com/buefy/buefy */
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Timepicker={})}(this,(function(e){"use strict";function t(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function i(e){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{};i%2?t(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function n(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function o(e,t,i){return(t=n(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function a(e){return function(e){if(Array.isArray(e))return e}(e)||l(e)||u(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e){return function(e){if(Array.isArray(e))return c(e)}(e)||l(e)||u(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function u(e,t){if(e){if("string"==typeof e)return c(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function d(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=u(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,s=function(){};return{s:s,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,r=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){r=!0,o=e},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw o}}}}var h={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,defaultTimepickerMobileModal:!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};function f(e,t){return(e&t)===t}var m=function(e){return"object"===s(e)&&!Array.isArray(e)},p=function e(t,n){var s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(s||!Object.assign){var a=Object.getOwnPropertyNames(n).map((function(i){return o({},i,function(e){return m(n[e])&&null!==t&&t.hasOwnProperty(e)&&m(t[e])}(i)?e(t[i],n[i],s):n[i])})).reduce((function(e,t){return i(i({},e),t)}),{});return i(i({},t),a)}return Object.assign(t,n)},g={Android:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/Android/i)},BlackBerry:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return"undefined"!=typeof window&&(window.navigator.userAgent.match(/iPhone|iPad|iPod/i)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1)},Opera:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/IEMobile/i)},any:function(){return g.Android()||g.BlackBerry()||g.iOS()||g.Opera()||g.Windows()}};var v,b={props:{size:String,expanded:Boolean,loading:Boolean,rounded:Boolean,icon:String,iconPack:String,autocomplete:String,maxlength:[Number,String],useHtml5Validation:{type:Boolean,default:function(){return h.defaultUseHtml5Validation}},validationMessage:String,locale:{type:[String,Array],default:function(){return h.defaultLocale}},statusIcon:{type:Boolean,default:function(){return h.defaultStatusIcon}}},data:function(){return{isValid:!0,isFocused:!1,newIconPack:this.iconPack||h.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 i=this;this.$nextTick((function(){i.parentField&&(i.parentField.type||(i.parentField.newType=e),i.parentField.message||(i.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}}}},y="AM",S="PM",w="24",T="12",C={mixins:[b],inheritAttrs:!1,props:{value:Date,inline:Boolean,minTime:Date,maxTime:Date,placeholder:String,editable:Boolean,disabled:Boolean,hourFormat:{type:String,validator:function(e){return e===w||e===T}},incrementHours:{type:Number,default:1},incrementMinutes:{type:Number,default:1},incrementSeconds:{type:Number,default:1},timeFormatter:{type:Function,default:function(e,t){return"function"==typeof h.defaultTimeFormatter?h.defaultTimeFormatter(e):function(e,t){return t.dtf.format(e)}(e,t)}},timeParser:{type:Function,default:function(e,t){return"function"==typeof h.defaultTimeParser?h.defaultTimeParser(e):function(e,t){if(e){var i=null;if(t.computedValue&&!isNaN(t.computedValue)?i=new Date(t.computedValue):(i=t.timeCreator()).setMilliseconds(0),t.dtf.formatToParts&&"function"==typeof t.dtf.formatToParts){var n=(c=t.dtf.formatToParts(i).map((function(e){return"literal"===e.type?e.value.replace(/ /g,"\\s?"):"dayPeriod"===e.type?"((?!=<".concat(e.type,">)(").concat(t.amString,"|").concat(t.pmString,"|").concat(y,"|").concat(S,"|").concat(y.toLowerCase(),"|").concat(S.toLowerCase(),")?)"):"((?!=<".concat(e.type,">)\\d+)")})).join(""),d=e.match(c),c.toString().match(/<(.+?)>/g).map((function(e){var t=e.match(/<(.+)>/);return!t||t.length<=0?null:e.match(/<(.+)>/)[1]})).reduce((function(e,t,i,n){return d&&d.length>i?e[t]=d[i+1]:e[t]=null,e}),{}));if(n.hour=n.hour?parseInt(n.hour,10):null,n.minute=n.minute?parseInt(n.minute,10):null,n.second=n.second?parseInt(n.second,10):null,n.hour&&n.hour>=0&&n.hour<24&&n.minute&&n.minute>=0&&n.minute<59)return n.dayPeriod&&(n.dayPeriod.toLowerCase()===t.pmString.toLowerCase()||n.dayPeriod.toLowerCase()===S.toLowerCase())&&n.hour<12&&(n.hour+=12),i.setHours(n.hour),i.setMinutes(n.minute),i.setSeconds(n.second||0),i}var s=!1;if(t.hourFormat===T){var o=e.split(" ");e=o[0],s=o[1]===t.amString||o[1]===y}var a=e.split(":"),r=parseInt(a[0],10),l=parseInt(a[1],10),u=t.enableSeconds?parseInt(a[2],10):0;return isNaN(r)||r<0||r>23||t.hourFormat===T&&(r<1||r>12)||isNaN(l)||l<0||l>59?null:(i.setSeconds(u),i.setMinutes(l),t.hourFormat===T&&(s&&12===r?r=0:s||12===r||(r+=12)),i.setHours(r),new Date(i.getTime()))}var c,d;return null}(e,t)}},mobileNative:{type:Boolean,default:function(){return h.defaultTimepickerMobileNative}},mobileModal:{type:Boolean,default:function(){return h.defaultTimepickerMobileModal}},timeCreator:{type:Function,default:function(){return"function"==typeof h.defaultTimeCreator?h.defaultTimeCreator():new Date}},position:String,unselectableTimes:Array,openOnFocus:Boolean,enableSeconds:Boolean,defaultMinutes:Number,defaultSeconds:Number,focusable:{type:Boolean,default:!0},tzOffset:{type:Number,default:0},appendToBody:Boolean,resetOnMeridianChange:{type:Boolean,default:!1}},data:function(){return{dateSelected:this.value,hoursSelected:null,minutesSelected:null,secondsSelected:null,meridienSelected:null,_elementRef:"input",AM:y,PM:S,HOUR_FORMAT_24:w,HOUR_FORMAT_12:T}},computed:{computedValue:{get:function(){return this.dateSelected},set:function(e){this.dateSelected=e,this.$emit("input",this.dateSelected)}},localeOptions:function(){return new Intl.DateTimeFormat(this.locale,{hour:"numeric",minute:"numeric",second:this.enableSeconds?"numeric":void 0}).resolvedOptions()},dtf:function(){return new Intl.DateTimeFormat(this.locale,{hour:this.localeOptions.hour||"numeric",minute:this.localeOptions.minute||"numeric",second:this.enableSeconds?this.localeOptions.second||"numeric":void 0,hourCycle:this.isHourFormat24?"h23":"h12"})},newHourFormat:function(){return this.hourFormat||(this.localeOptions.hour12?T:w)},sampleTime:function(){var e=this.timeCreator();return e.setHours(10),e.setSeconds(0),e.setMinutes(0),e.setMilliseconds(0),e},hourLiteral:function(){if(this.dtf.formatToParts&&"function"==typeof this.dtf.formatToParts){var e=this.sampleTime,t=this.dtf.formatToParts(e),i=t.find((function(e,i){return i>0&&"hour"===t[i-1].type}));if(i)return i.value}return":"},minuteLiteral:function(){if(this.dtf.formatToParts&&"function"==typeof this.dtf.formatToParts){var e=this.sampleTime,t=this.dtf.formatToParts(e),i=t.find((function(e,i){return i>0&&"minute"===t[i-1].type}));if(i)return i.value}return":"},secondLiteral:function(){if(this.dtf.formatToParts&&"function"==typeof this.dtf.formatToParts){var e=this.sampleTime,t=this.dtf.formatToParts(e),i=t.find((function(e,i){return i>0&&"second"===t[i-1].type}));if(i)return i.value}},amString:function(){if(this.dtf.formatToParts&&"function"==typeof this.dtf.formatToParts){var e=this.sampleTime;e.setHours(10);var t=this.dtf.formatToParts(e).find((function(e){return"dayPeriod"===e.type}));if(t)return t.value}return y},pmString:function(){if(this.dtf.formatToParts&&"function"==typeof this.dtf.formatToParts){var e=this.sampleTime;e.setHours(20);var t=this.dtf.formatToParts(e).find((function(e){return"dayPeriod"===e.type}));if(t)return t.value}return S},hours:function(){if(!this.incrementHours||this.incrementHours<1)throw new Error("Hour increment cannot be null or less than 1.");for(var e=[],t=this.isHourFormat24?24:12,i=0;i<t;i+=this.incrementHours){var n=i,s=n;this.isHourFormat24||(s=n=i+1,this.meridienSelected===this.amString?12===n&&(n=0):this.meridienSelected===this.pmString&&12!==n&&(n+=12)),e.push({label:this.formatNumber(s),value:n})}return e},minutes:function(){if(!this.incrementMinutes||this.incrementMinutes<1)throw new Error("Minute increment cannot be null or less than 1.");for(var e=[],t=0;t<60;t+=this.incrementMinutes)e.push({label:this.formatNumber(t,!0),value:t});return e},seconds:function(){if(!this.incrementSeconds||this.incrementSeconds<1)throw new Error("Second increment cannot be null or less than 1.");for(var e=[],t=0;t<60;t+=this.incrementSeconds)e.push({label:this.formatNumber(t,!0),value:t});return e},meridiens:function(){return[this.amString,this.pmString]},isMobile:function(){return this.mobileNative&&g.any()},isHourFormat24:function(){return this.newHourFormat===w}},watch:{hourFormat:function(){null!==this.hoursSelected&&(this.meridienSelected=this.hoursSelected>=12?this.pmString:this.amString)},locale:function(){this.value||(this.meridienSelected=this.amString)},value:{handler:function(e){this.updateInternalState(e),!this.isValid&&this.$refs.input.checkHtml5Validity()},immediate:!0}},methods:{onMeridienChange:function(e){null!==this.hoursSelected&&this.resetOnMeridianChange?(this.hoursSelected=null,this.minutesSelected=null,this.secondsSelected=null,this.computedValue=null):null!==this.hoursSelected&&(e===this.pmString?this.hoursSelected+=12:e===this.amString&&(this.hoursSelected-=12)),this.updateDateSelected(this.hoursSelected,this.minutesSelected,this.enableSeconds?this.secondsSelected:0,e)},onHoursChange:function(e){this.minutesSelected||void 0===this.defaultMinutes||(this.minutesSelected=this.defaultMinutes),this.secondsSelected||void 0===this.defaultSeconds||(this.secondsSelected=this.defaultSeconds),this.updateDateSelected(parseInt(e,10),this.minutesSelected,this.enableSeconds?this.secondsSelected:0,this.meridienSelected)},onMinutesChange:function(e){!this.secondsSelected&&this.defaultSeconds&&(this.secondsSelected=this.defaultSeconds),this.updateDateSelected(this.hoursSelected,parseInt(e,10),this.enableSeconds?this.secondsSelected:0,this.meridienSelected)},onSecondsChange:function(e){this.updateDateSelected(this.hoursSelected,this.minutesSelected,parseInt(e,10),this.meridienSelected)},updateDateSelected:function(e,t,i,n){if(null!=e&&null!=t&&(!this.isHourFormat24&&null!==n||this.isHourFormat24)){var s=null;this.computedValue&&!isNaN(this.computedValue)?s=new Date(this.computedValue):(s=this.timeCreator()).setMilliseconds(0),s.setHours(e),s.setMinutes(t),s.setSeconds(i),isNaN(s.getTime())||(this.computedValue=new Date(s.getTime()))}},updateInternalState:function(e){e?(this.hoursSelected=e.getHours(),this.minutesSelected=e.getMinutes(),this.secondsSelected=e.getSeconds(),this.meridienSelected=e.getHours()>=12?this.pmString:this.amString):(this.hoursSelected=null,this.minutesSelected=null,this.secondsSelected=null,this.meridienSelected=this.amString),this.dateSelected=e},isHourDisabled:function(e){var t=this,i=!1;if(this.minTime){var n=this.minTime.getHours(),s=this.minutes.every((function(i){return t.isMinuteDisabledForHour(e,i.value)}));i=e<n||s}if(this.maxTime&&!i){var o=this.maxTime.getHours();i=e>o}this.unselectableTimes&&(i||(i=this.unselectableTimes.filter((function(i){return t.enableSeconds&&null!==t.secondsSelected?i.getHours()===e&&i.getMinutes()===t.minutesSelected&&i.getSeconds()===t.secondsSelected:null!==t.minutesSelected&&(i.getHours()===e&&i.getMinutes()===t.minutesSelected)})).length>0||this.minutes.every((function(i){return t.unselectableTimes.filter((function(t){return t.getHours()===e&&t.getMinutes()===i.value})).length>0}))));return i},isMinuteDisabledForHour:function(e,t){var i=!1;if(this.minTime){var n=this.minTime.getHours(),s=this.minTime.getMinutes();i=e===n&&t<s}if(this.maxTime&&!i){var o=this.maxTime.getHours(),a=this.maxTime.getMinutes();i=e===o&&t>a}return i},isMinuteDisabled:function(e){var t=this,i=!1;null!==this.hoursSelected&&(i=!!this.isHourDisabled(this.hoursSelected)||this.isMinuteDisabledForHour(this.hoursSelected,e),this.unselectableTimes&&(i||(i=this.unselectableTimes.filter((function(i){return t.enableSeconds&&null!==t.secondsSelected?i.getHours()===t.hoursSelected&&i.getMinutes()===e&&i.getSeconds()===t.secondsSelected:i.getHours()===t.hoursSelected&&i.getMinutes()===e})).length>0)));return i},isSecondDisabled:function(e){var t=this,i=!1;if(null!==this.minutesSelected){if(this.isMinuteDisabled(this.minutesSelected))i=!0;else{if(this.minTime){var n=this.minTime.getHours(),s=this.minTime.getMinutes(),o=this.minTime.getSeconds();i=this.hoursSelected===n&&this.minutesSelected===s&&e<o}if(this.maxTime&&!i){var a=this.maxTime.getHours(),r=this.maxTime.getMinutes(),l=this.maxTime.getSeconds();i=this.hoursSelected===a&&this.minutesSelected===r&&e>l}}if(this.unselectableTimes)if(!i)i=this.unselectableTimes.filter((function(i){return i.getHours()===t.hoursSelected&&i.getMinutes()===t.minutesSelected&&i.getSeconds()===e})).length>0}return i},onChange:function(e){var t=this.timeParser(e,this);this.updateInternalState(t),t&&!isNaN(t)?this.computedValue=t:(this.computedValue=null,this.$refs.input.newValue=this.computedValue)},toggle:function(e){this.$refs.dropdown&&(this.$refs.dropdown.isActive="boolean"==typeof e?e:!this.$refs.dropdown.isActive)},close:function(){this.toggle(!1)},handleOnFocus:function(){this.onFocus(),this.openOnFocus&&this.toggle(!0)},formatHHMMSS:function(e){var t=new Date(e);if(e&&!isNaN(t)){var i=t.getHours(),n=t.getMinutes(),s=t.getSeconds();return this.formatNumber(i,!0)+":"+this.formatNumber(n,!0)+":"+this.formatNumber(s,!0)}return""},onChangeNativePicker:function(e){var t=e.target.value;if(t){var i=null;this.computedValue&&!isNaN(this.computedValue)?i=new Date(this.computedValue):(i=new Date).setMilliseconds(0);var n=t.split(":");i.setHours(parseInt(n[0],10)),i.setMinutes(parseInt(n[1],10)),i.setSeconds(n[2]?parseInt(n[2],10):0),this.computedValue=new Date(i.getTime())}else this.computedValue=null},formatNumber:function(e,t){return this.isHourFormat24||t?this.pad(e):e},pad:function(e){return(e<10?"0":"")+e},formatValue:function(e){return e&&!isNaN(e)?this.timeFormatter(e,this):null},keyPress:function(e){var t=e.key;this.$refs.dropdown&&this.$refs.dropdown.isActive&&("Escape"===t||"Esc"===t)&&this.toggle(!1)},onActiveChange:function(e){e||this.onBlur()}},created:function(){"undefined"!=typeof window&&document.addEventListener("keyup",this.keyPress)},beforeDestroy:function(){"undefined"!=typeof window&&document.removeEventListener("keyup",this.keyPress)}},k=function(e){return e?arguments.length>1&&void 0!==arguments[1]&&arguments[1]?e.querySelectorAll('*[tabindex="-1"]'):e.querySelectorAll('a[href]:not([tabindex="-1"]),\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n *[tabindex]:not([tabindex="-1"]),\n *[contenteditable]'):null},x=["escape","outside"],M={name:"BDropdown",directives:{trapFocus:{bind:function(e,t){var i=t.value;if(void 0===i||i){var n=k(e),s=k(e,!0);n&&n.length>0&&(v=function(t){n=k(e),s=k(e,!0);var i=n[0],o=n[n.length-1];t.target===i&&t.shiftKey&&"Tab"===t.key?(t.preventDefault(),o.focus()):(t.target===o||Array.from(s).indexOf(t.target)>=0)&&!t.shiftKey&&"Tab"===t.key&&(t.preventDefault(),i.focus())},e.addEventListener("keydown",v))}},unbind:function(e){e.removeEventListener("keydown",v)}}},mixins:[function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i={provide:function(){return o({},"b"+e,this)}};return f(t,1)&&(i.data=function(){return{childItems:[]}},i.methods={_registerItem:function(e){this.childItems.push(e)},_unregisterItem:function(e){this.childItems=this.childItems.filter((function(t){return t!==e}))}},f(t,3)&&(i.watch={childItems:function(e){if(e.length>0&&this.$scopedSlots.default){var t=e[0].$vnode.tag,i=0;!function n(s){var o,a=d(s);try{var r=function(){var s=o.value;if(s.tag===t){var a=e.find((function(e){return e.$vnode===s}));a&&(a.index=i++)}else if(s.tag){var r=s.componentInstance?s.componentInstance.$scopedSlots.default?s.componentInstance.$scopedSlots.default():s.componentInstance.$children:s.children;Array.isArray(r)&&r.length>0&&n(r.map((function(e){return e.$vnode})))}};for(a.s();!(o=a.n()).done;)r()}catch(e){a.e(e)}finally{a.f()}return!1}(this.$scopedSlots.default())}}},i.computed={sortedItems:function(){return this.childItems.slice().sort((function(e,t){return e.index-t.index}))}})),i}("dropdown")],props:{value:{type:[String,Number,Boolean,Object,Array,Function],default:null},disabled:Boolean,inline:Boolean,scrollable:Boolean,maxHeight:{type:[String,Number],default:200},position:{type:String,validator:function(e){return["is-top-right","is-top-left","is-bottom-left","is-bottom-right"].indexOf(e)>-1}},triggers:{type:Array,default:function(){return["click"]}},mobileModal:{type:Boolean,default:function(){return h.defaultDropdownMobileModal}},ariaRole:{type:String,validator:function(e){return["menu","list","dialog"].indexOf(e)>-1},default:null},animation:{type:String,default:"fade"},multiple:Boolean,trapFocus:{type:Boolean,default:function(){return h.defaultTrapFocus}},closeOnClick:{type:Boolean,default:!0},canClose:{type:[Array,Boolean],default:!0},expanded:Boolean,appendToBody:Boolean,appendToBodyCopyParent:Boolean,triggerTabindex:{type:Number,default:0}},data:function(){return{selected:this.value,style:{},isActive:!1,isHoverable:!1,maybeTap:!1,isTouchEnabled:!1,_bodyEl:void 0,timeOutID:null,timeOutID2:null}},computed:{rootClasses:function(){return[this.position,{"is-disabled":this.disabled,"is-hoverable":this.hoverable,"is-inline":this.inline,"is-active":this.isActive||this.inline,"is-mobile-modal":this.isMobileModal,"is-expanded":this.expanded,"is-touch-enabled":this.isTouchEnabled}]},isMobileModal:function(){return this.mobileModal&&!this.inline},cancelOptions:function(){return"boolean"==typeof this.canClose?this.canClose?x:[]:this.canClose},contentStyle:function(){return{maxHeight:this.scrollable?(e=this.maxHeight,void 0===e?null:isNaN(e)?e:e+"px"):null,overflow:this.scrollable?"auto":null};var e},hoverable:function(){return this.triggers.indexOf("hover")>=0}},watch:{value:function(e){this.selected=e},isActive:function(e){var t=this;this.$emit("active-change",e),e||(this.timeOutID=setTimeout((function(){t.isActive||(t.isTouchEnabled=!1)}),250)),this.handleScroll(),this.appendToBody&&this.$nextTick((function(){t.updateAppendToBody()}))},isHoverable:function(e){this.hoverable&&this.$emit("active-change",e)}},methods:{handleScroll:function(){"undefined"!=typeof window&&this.isMobileModal&&(this.isActive?document.documentElement.classList.add("is-clipped-touch"):document.documentElement.classList.remove("is-clipped-touch"))},selectItem:function(e){this.multiple?(this.selected?-1===this.selected.indexOf(e)?this.selected=[].concat(r(this.selected),[e]):this.selected=this.selected.filter((function(t){return t!==e})):this.selected=[e],this.$emit("change",this.selected)):this.selected!==e&&(this.selected=e,this.$emit("change",this.selected)),this.$emit("input",this.selected),this.multiple||(this.isActive=!this.closeOnClick,this.hoverable&&this.closeOnClick&&(this.isHoverable=!1))},isInWhiteList:function(e){if(e===this.$refs.dropdownMenu)return!0;if(e===this.$refs.trigger)return!0;if(void 0!==this.$refs.dropdownMenu){var t,i=d(this.$refs.dropdownMenu.querySelectorAll("*"));try{for(i.s();!(t=i.n()).done;){if(e===t.value)return!0}}catch(e){i.e(e)}finally{i.f()}}if(void 0!==this.$refs.trigger){var n,s=d(this.$refs.trigger.querySelectorAll("*"));try{for(s.s();!(n=s.n()).done;){if(e===n.value)return!0}}catch(e){s.e(e)}finally{s.f()}}return!1},clickedOutside:function(e){if(!(this.cancelOptions.indexOf("outside")<0||this.inline)){var t="shadowRoot"in this.$root.$options?e.composedPath()[0]:e.target;this.isInWhiteList(t)||(this.isActive=!1)}},keyPress:function(e){var t=e.key;if(this.isActive&&("Escape"===t||"Esc"===t)){if(this.cancelOptions.indexOf("escape")<0)return;this.isActive=!1}},onClick:function(){-1===this.triggers.indexOf("hover")&&(this.triggers.indexOf("click")<0||this.toggle())},onContextMenu:function(){this.triggers.indexOf("contextmenu")<0||this.toggle()},onHover:function(){this.triggers.indexOf("hover")<0||this.isTouchEnabled||(this.isHoverable=!0)},onTouchStart:function(){this.maybeTap=!0},onTouchMove:function(){this.maybeTap=!1},onTouchEnd:function(e){-1!==this.triggers.indexOf("hover")&&this.maybeTap&&(e.preventDefault(),this.maybeTap=!1,this.isTouchEnabled=!0,this.toggle())},onFocus:function(){this.triggers.indexOf("focus")<0||this.toggle()},toggle:function(){var e=this;this.disabled||(this.isActive?this.isActive=!this.isActive:this.$nextTick((function(){var t=!e.isActive;e.isActive=t,e.timeOutID2=setTimeout((function(){return e.isActive=t}))})))},updateAppendToBody:function(){var e=this.$refs.dropdown,t=this.$refs.dropdownMenu,i=this.$refs.trigger;if(t&&i){var n=this.$data._bodyEl.children[0];if(n.classList.forEach((function(e){return n.classList.remove(e)})),n.classList.add("dropdown"),n.classList.add("dropdown-menu-animation"),this.$vnode&&this.$vnode.data&&this.$vnode.data.staticClass&&n.classList.add(this.$vnode.data.staticClass),this.rootClasses.forEach((function(e){if(e&&"object"===s(e))for(var t in e)e[t]&&n.classList.add(t)})),this.appendToBodyCopyParent){var o=this.$refs.dropdown.parentNode,a=this.$data._bodyEl;a.classList.forEach((function(e){return a.classList.remove(e)})),o.classList.forEach((function(e){a.classList.add(e)}))}var r=i.getBoundingClientRect(),l=r.top+window.scrollY,u=r.left+window.scrollX;!this.position||this.position.indexOf("bottom")>=0?l+=i.clientHeight:l-=t.clientHeight,this.position&&this.position.indexOf("left")>=0&&(u-=t.clientWidth-i.clientWidth),this.style={position:"absolute",top:"".concat(l,"px"),left:"".concat(u,"px"),zIndex:"99",width:this.expanded?"".concat(e.offsetWidth,"px"):void 0}}}},mounted:function(){this.appendToBody&&(this.$data._bodyEl=function(e){var t=document.createElement("div");t.style.position="absolute",t.style.left="0px",t.style.top="0px",t.style.width="100%";var i=document.createElement("div");return t.appendChild(i),i.appendChild(e),document.body.appendChild(t),t}(this.$refs.dropdownMenu),this.updateAppendToBody())},created:function(){"undefined"!=typeof window&&(document.addEventListener("click",this.clickedOutside),document.addEventListener("keyup",this.keyPress))},beforeDestroy:function(){var e;"undefined"!=typeof window&&(document.removeEventListener("click",this.clickedOutside),document.removeEventListener("keyup",this.keyPress)),this.appendToBody&&(void 0!==(e=this.$data._bodyEl).remove?e.remove():void 0!==e.parentNode&&null!==e.parentNode&&e.parentNode.removeChild(e)),clearTimeout(this.timeOutID),clearTimeout(this.timeOutID2)}};function I(e,t,i,n,s,o,a,r,l,u){"boolean"!=typeof a&&(l=r,r=a,a=!1);const c="function"==typeof i?i.options:i;let d;if(e&&e.render&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0,s&&(c.functional=!0)),n&&(c._scopeId=n),o?(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,l(e)),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=d):t&&(d=a?function(e){t.call(this,u(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,r(e))}),d)if(c.functional){const e=c.render;c.render=function(t,i){return d.call(i),e(t,i)}}else{const e=c.beforeCreate;c.beforeCreate=e?[].concat(e,d):[d]}return i}var _=I({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"dropdown",staticClass:"dropdown dropdown-menu-animation",class:e.rootClasses,on:{mouseleave:function(t){e.isHoverable=!1}}},[e.inline?e._e():i("div",{ref:"trigger",staticClass:"dropdown-trigger",attrs:{tabindex:!e.disabled&&e.triggerTabindex,"aria-haspopup":"true"},on:{click:e.onClick,contextmenu:function(t){return t.preventDefault(),e.onContextMenu(t)},mouseenter:e.onHover,"!focus":function(t){return e.onFocus(t)},touchstart:e.onTouchStart,touchmove:e.onTouchMove,touchend:e.onTouchEnd}},[e._t("trigger",null,{active:e.isActive})],2),i("transition",{attrs:{name:e.animation}},[e.isMobileModal?i("div",{directives:[{name:"show",rawName:"v-show",value:e.isActive,expression:"isActive"}],staticClass:"background",attrs:{"aria-hidden":!e.isActive}}):e._e()]),i("transition",{attrs:{name:e.animation}},[i("div",{directives:[{name:"show",rawName:"v-show",value:!e.disabled&&(e.isActive||e.isHoverable)||e.inline,expression:"(!disabled && (isActive || isHoverable)) || inline"},{name:"trap-focus",rawName:"v-trap-focus",value:e.trapFocus,expression:"trapFocus"}],ref:"dropdownMenu",staticClass:"dropdown-menu",style:e.style,attrs:{"aria-hidden":!e.isActive}},[i("div",{staticClass:"dropdown-content",style:e.contentStyle,attrs:{role:e.ariaRole,"aria-modal":!e.inline}},[e._t("default")],2)])])],1)},staticRenderFns:[]},undefined,M,undefined,false,undefined,!1,void 0,void 0,void 0),P={name:"BDropdownItem",mixins:[function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i={inject:{parent:{from:"b"+e,default:!1}},created:function(){if(this.parent)this.parent._registerItem&&this.parent._registerItem(this);else if(!f(t,2))throw this.$destroy(),new Error("You should wrap "+this.$options.name+" in a "+e)},beforeDestroy:function(){this.parent&&this.parent._unregisterItem&&this.parent._unregisterItem(this)}};return f(t,1)&&(i.data=function(){return{index:null}}),i}("dropdown")],props:{value:{type:[String,Number,Boolean,Object,Array,Function],default:null},separator:Boolean,disabled:Boolean,custom:Boolean,focusable:{type:Boolean,default:!0},paddingless:Boolean,hasLink:Boolean,ariaRole:{type:String,default:""}},computed:{anchorClasses:function(){return{"is-disabled":this.parent.disabled||this.disabled,"is-paddingless":this.paddingless,"is-active":this.isActive}},itemClasses:function(){return{"dropdown-item":!this.hasLink,"is-disabled":this.disabled,"is-paddingless":this.paddingless,"is-active":this.isActive,"has-link":this.hasLink}},ariaRoleItem:function(){return"menuitem"===this.ariaRole||"listitem"===this.ariaRole?this.ariaRole:null},isClickable:function(){return!(this.parent.disabled||this.separator||this.disabled||this.custom)},isActive:function(){return null!==this.parent.selected&&(this.parent.multiple?this.parent.selected.indexOf(this.value)>=0:this.value===this.parent.selected)},isFocusable:function(){return!this.hasLink&&this.focusable}},methods:{selectItem:function(){this.isClickable&&(this.parent.selectItem(this.value),this.$emit("click"))}}};var O=I({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.separator?i("hr",{staticClass:"dropdown-divider"}):e.custom||e.hasLink?i("div",{class:e.itemClasses,attrs:{role:e.ariaRoleItem,tabindex:e.isFocusable?0:null},on:{click:e.selectItem}},[e._t("default")],2):i("a",{staticClass:"dropdown-item",class:e.anchorClasses,attrs:{role:e.ariaRoleItem,tabindex:e.isFocusable?0:null},on:{click:e.selectItem}},[e._t("default")],2)},staticRenderFns:[]},undefined,P,undefined,false,undefined,!1,void 0,void 0,void 0),F={sizes:{default:"mdi-24px","is-small":null,"is-medium":"mdi-36px","is-large":"mdi-48px"},iconPrefix:"mdi-"},$=function(){var e=h&&h.defaultIconComponent?"":"fa-";return{sizes:{default:null,"is-small":null,"is-medium":e+"lg","is-large":e+"2x"},iconPrefix:e,internalIcons:{information:"info-circle",alert:"exclamation-triangle","alert-circle":"exclamation-circle","chevron-right":"angle-right","chevron-left":"angle-left","chevron-down":"angle-down","eye-off":"eye-slash","menu-down":"caret-down","menu-up":"caret-up","close-circle":"times-circle"}}},A=function(){var e={mdi:F,fa:$(),fas:$(),far:$(),fad:$(),fab:$(),fal:$(),"fa-solid":$(),"fa-regular":$(),"fa-light":$(),"fa-thin":$(),"fa-duotone":$(),"fa-brands":$()};return h&&h.customIconPacks&&(e=p(e,h.customIconPacks,!0)),e};var B=I({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("span",{staticClass:"icon",class:[e.newType,e.size]},[e.useIconComponent?i(e.useIconComponent,{tag:"component",class:[e.customClass],attrs:{icon:[e.newPack,e.newIcon],size:e.newCustomSize}}):i("i",{class:[e.newPack,e.newIcon,e.newCustomSize,e.customClass]})],1)},staticRenderFns:[]},undefined,{name:"BIcon",props:{type:[String,Object],component:String,pack:String,icon:String,size:String,customSize:String,customClass:String,both:Boolean},computed:{iconConfig:function(){return A()[this.newPack]},iconPrefix:function(){return this.iconConfig&&this.iconConfig.iconPrefix?this.iconConfig.iconPrefix:""},newIcon:function(){return"".concat(this.iconPrefix).concat(this.getEquivalentIconOf(this.icon))},newPack:function(){return this.pack||h.defaultIconPack},newType:function(){if(this.type){var e=[];if("string"==typeof this.type)e=this.type.split("-");else for(var t in this.type)if(this.type[t]){e=t.split("-");break}if(!(e.length<=1)){var i=a(e).slice(1);return"has-text-".concat(i.join("-"))}}},newCustomSize:function(){return this.customSize||this.customSizeByPack},customSizeByPack:function(){if(this.iconConfig&&this.iconConfig.sizes){if(this.size&&void 0!==this.iconConfig.sizes[this.size])return this.iconConfig.sizes[this.size];if(this.iconConfig.sizes.default)return this.iconConfig.sizes.default}return null},useIconComponent:function(){return this.component||h.defaultIconComponent}},methods:{getEquivalentIconOf:function(e){return this.both&&this.iconConfig&&this.iconConfig.internalIcons&&this.iconConfig.internalIcons[e]?this.iconConfig.internalIcons[e]:e}}},undefined,false,undefined,!1,void 0,void 0,void 0);var H=I({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"control",class:e.rootClasses},["textarea"!==e.type?i("input",e._b({ref:"input",staticClass:"input",class:[e.inputClasses,e.customClass],attrs:{type:e.newType,autocomplete:e.newAutocomplete,maxlength:e.maxlength},domProps:{value:e.computedValue},on:{input:e.onInput,change:e.onChange,blur:e.onBlur,focus:e.onFocus}},"input",e.$attrs,!1)):i("textarea",e._b({ref:"textarea",staticClass:"textarea",class:[e.inputClasses,e.customClass],attrs:{maxlength:e.maxlength},domProps:{value:e.computedValue},on:{input:e.onInput,change:e.onChange,blur:e.onBlur,focus:e.onFocus}},"textarea",e.$attrs,!1)),e.icon?i("b-icon",{staticClass:"is-left",class:{"is-clickable":e.iconClickable},attrs:{icon:e.icon,pack:e.iconPack,size:e.iconSize},nativeOn:{click:function(t){return e.iconClick("icon-click",t)}}}):e._e(),!e.loading&&e.hasIconRight?i("b-icon",{staticClass:"is-right",class:{"is-clickable":e.passwordReveal||e.iconRightClickable},attrs:{icon:e.rightIcon,pack:e.iconPack,size:e.iconSize,type:e.rightIconType,both:""},nativeOn:{click:function(t){return e.rightIconClick(t)}}}):e._e(),e.maxlength&&e.hasCounter&&"number"!==e.type?i("small",{staticClass:"help counter",class:{"is-invisible":!e.isFocused}},[e._v(" "+e._s(e.valueLength)+" / "+e._s(e.maxlength)+" ")]):e._e()],1)},staticRenderFns:[]},undefined,{name:"BInput",components:o({},B.name,B),mixins:[b],inheritAttrs:!1,props:{value:[Number,String],type:{type:String,default:"text"},lazy:{type:Boolean,default:!1},passwordReveal:Boolean,iconClickable:Boolean,hasCounter:{type:Boolean,default:function(){return h.defaultInputHasCounter}},customClass:{type:String,default:""},iconRight:String,iconRightClickable:Boolean,iconRightType:String},data:function(){return{newValue:this.value,newType:this.type,newAutocomplete:this.autocomplete||h.defaultInputAutocomplete,isPasswordVisible:!1,_elementRef:"textarea"===this.type?"textarea":"input"}},computed:{computedValue:{get:function(){return this.newValue},set:function(e){this.newValue=e,this.$emit("input",e)}},rootClasses:function(){return[this.iconPosition,this.size,{"is-expanded":this.expanded,"is-loading":this.loading,"is-clearfix":!this.hasMessage}]},inputClasses:function(){return[this.statusType,this.size,{"is-rounded":this.rounded}]},hasIconRight:function(){return this.passwordReveal||this.loading||this.statusIcon&&this.statusTypeIcon||this.iconRight},rightIcon:function(){return this.passwordReveal?this.passwordVisibleIcon:this.iconRight?this.iconRight:this.statusTypeIcon},rightIconType:function(){return this.passwordReveal?"is-primary":this.iconRight?this.iconRightType||null:this.statusType},iconPosition:function(){var e="";return this.icon&&(e+="has-icons-left "),this.hasIconRight&&(e+="has-icons-right"),e},statusTypeIcon:function(){switch(this.statusType){case"is-success":return"check";case"is-danger":return"alert-circle";case"is-info":return"information";case"is-warning":return"alert"}},hasMessage:function(){return!!this.statusMessage},passwordVisibleIcon:function(){return this.isPasswordVisible?"eye-off":"eye"},valueLength:function(){return"string"==typeof this.computedValue?Array.from(this.computedValue).length:"number"==typeof this.computedValue?this.computedValue.toString().length:0}},watch:{value:function(e){var t=this,i=this.computedValue!=e;this.newValue=e,i&&this.$nextTick((function(){!t.isValid&&t.checkHtml5Validity()}))},type:function(e){this.newType=e}},methods:{togglePasswordVisibility:function(){var e=this;this.isPasswordVisible=!this.isPasswordVisible,this.newType=this.isPasswordVisible?"text":"password",this.$nextTick((function(){e.focus()}))},iconClick:function(e,t){var i=this;this.$emit(e,t),this.$nextTick((function(){i.focus()}))},rightIconClick:function(e){this.passwordReveal?this.togglePasswordVisibility():this.iconRightClickable&&this.iconClick("icon-right-click",e)},onInput:function(e){if(!this.lazy){var t=e.target.value;this.updateValue(t)}},onChange:function(e){if(this.lazy){var t=e.target.value;this.updateValue(t)}},updateValue:function(e){this.computedValue=e,!this.isValid&&this.checkHtml5Validity()}}},undefined,false,undefined,!1,void 0,void 0,void 0);var V=I({},undefined,{name:"BFieldBody",props:{message:{type:[String,Array]},type:{type:[String,Object]}},render:function(e){var t=this,i=!0;return e("div",{attrs:{class:"field-body"}},this.$slots.default.map((function(n){return n.tag?(i&&(s=t.message,i=!1),e("b-field",{attrs:{type:t.type,message:s}},[n])):n;var s})))}},undefined,undefined,undefined,!1,void 0,void 0,void 0);var D=I({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"field",class:e.rootClasses},[e.horizontal?i("div",{staticClass:"field-label",class:[e.customClass,e.fieldLabelSize]},[e.hasLabel?i("label",{staticClass:"label",class:e.customClass,attrs:{for:e.labelFor}},[e.$slots.label?e._t("label"):[e._v(e._s(e.label))]],2):e._e()]):[e.hasLabel?i("label",{staticClass:"label",class:e.customClass,attrs:{for:e.labelFor}},[e.$slots.label?e._t("label"):[e._v(e._s(e.label))]],2):e._e()],e.horizontal?i("b-field-body",{attrs:{message:e.newMessage?e.formattedMessage:"",type:e.newType}},[e._t("default")],2):e.hasInnerField?i("div",{staticClass:"field-body"},[i("b-field",{class:e.innerFieldClasses,attrs:{addons:!1,type:e.type}},[e._t("default")],2)],1):[e._t("default")],e.hasMessage&&!e.horizontal?i("p",{staticClass:"help",class:e.newType},[e.$slots.message?e._t("message",null,{messages:e.formattedMessage}):[e._l(e.formattedMessage,(function(t,n){return[e._v(" "+e._s(t)+" "),n+1<e.formattedMessage.length?i("br",{key:n}):e._e()]}))]],2):e._e()],2)},staticRenderFns:[]},undefined,{name:"BField",components:o({},V.name,V),provide:function(){return{BField:this}},inject:{parent:{from:"BField",default:!1}},props:{type:[String,Object],label:String,labelFor:String,message:[String,Array,Object],grouped:Boolean,groupMultiline:Boolean,position:String,expanded:Boolean,horizontal:Boolean,addons:{type:Boolean,default:!0},customClass:String,labelPosition:{type:String,default:function(){return h.defaultFieldLabelPosition}}},data:function(){return{newType:this.type,newMessage:this.message,fieldLabelSize:null,_isField:!0}},computed:{rootClasses:function(){return[{"is-expanded":this.expanded,"is-horizontal":this.horizontal,"is-floating-in-label":this.hasLabel&&!this.horizontal&&"inside"===this.labelPosition,"is-floating-label":this.hasLabel&&!this.horizontal&&"on-border"===this.labelPosition},this.numberInputClasses]},innerFieldClasses:function(){return[this.fieldType(),this.newPosition,{"is-grouped-multiline":this.groupMultiline}]},hasInnerField:function(){return this.grouped||this.groupMultiline||this.hasAddons()},newPosition:function(){if(void 0!==this.position){var e=this.position.split("-");if(!(e.length<1)){var t=this.grouped?"is-grouped-":"has-addons-";return this.position?t+e[1]:void 0}}},formattedMessage:function(){if(this.parent&&this.parent.hasInnerField)return"";if("string"==typeof this.newMessage)return[this.newMessage];var e=[];if(Array.isArray(this.newMessage))this.newMessage.forEach((function(t){if("string"==typeof t)e.push(t);else for(var i in t)t[i]&&e.push(i)}));else for(var t in this.newMessage)this.newMessage[t]&&e.push(t);return e.filter((function(e){if(e)return e}))},hasLabel:function(){return this.label||this.$slots.label},hasMessage:function(){return(!this.parent||!this.parent.hasInnerField)&&this.newMessage||this.$slots.message},numberInputClasses:function(){if(this.$slots.default){var e=this.$slots.default.filter((function(e){return e.tag&&e.tag.toLowerCase().indexOf("numberinput")>=0}))[0];if(e){var t=["has-numberinput"],i=e.componentOptions.propsData.controlsPosition,n=e.componentOptions.propsData.size;return i&&t.push("has-numberinput-".concat(i)),n&&t.push("has-numberinput-".concat(n)),t}}return null}},watch:{type:function(e){this.newType=e},message:function(e){this.newMessage=e},newMessage:function(e){this.parent&&this.parent.hasInnerField&&(this.parent.type||(this.parent.newType=this.newType),this.parent.message||(this.parent.newMessage=e))}},methods:{fieldType:function(){return this.grouped?"is-grouped":this.hasAddons()?"has-addons":void 0},hasAddons:function(){var e=0;return this.$slots.default&&(e=this.$slots.default.reduce((function(e,t){return t.tag?e+1:e}),0)),e>1&&this.addons&&!this.horizontal}},mounted:function(){this.horizontal&&(this.$el.querySelectorAll(".input, .select, .button, .textarea, .b-slider").length>0&&(this.fieldLabelSize="is-normal"))}},undefined,false,undefined,!1,void 0,void 0,void 0);var N=I({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"control",class:{"is-expanded":e.expanded,"has-icons-left":e.icon}},[i("span",{staticClass:"select",class:e.spanClasses},[i("select",e._b({directives:[{name:"model",rawName:"v-model",value:e.computedValue,expression:"computedValue"}],ref:"select",attrs:{multiple:e.multiple,size:e.nativeSize},on:{blur:function(t){e.$emit("blur",t)&&e.checkHtml5Validity()},focus:function(t){return e.$emit("focus",t)},change:function(t){var i=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.computedValue=t.target.multiple?i:i[0]}}},"select",e.$attrs,!1),[e.placeholder?[null==e.computedValue?i("option",{attrs:{disabled:"",hidden:""},domProps:{value:null}},[e._v(" "+e._s(e.placeholder)+" ")]):e._e()]:e._e(),e._t("default")],2)]),e.icon?i("b-icon",{staticClass:"is-left",attrs:{icon:e.icon,pack:e.iconPack,size:e.iconSize}}):e._e()],1)},staticRenderFns:[]},undefined,{name:"BSelect",components:o({},B.name,B),mixins:[b],inheritAttrs:!1,props:{value:{type:[String,Number,Boolean,Object,Array,Function,Date],default:null},placeholder:String,multiple:Boolean,nativeSize:[String,Number]},data:function(){return{selected:this.value,_elementRef:"select"}},computed:{computedValue:{get:function(){return this.selected},set:function(e){this.selected=e,this.$emit("input",e),!this.isValid&&this.checkHtml5Validity()}},spanClasses:function(){return[this.size,this.statusType,{"is-fullwidth":this.expanded,"is-loading":this.loading,"is-multiple":this.multiple,"is-rounded":this.rounded,"is-empty":null===this.selected}]}},watch:{value:function(e){this.selected=e,!this.isValid&&this.checkHtml5Validity()}}},undefined,false,undefined,!1,void 0,void 0,void 0);var E,z=I({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"timepicker control",class:[e.size,{"is-expanded":e.expanded}]},[!e.isMobile||e.inline?i("b-dropdown",{ref:"dropdown",attrs:{position:e.position,disabled:e.disabled,inline:e.inline,"mobile-modal":e.mobileModal,"append-to-body":e.appendToBody,"append-to-body-copy-parent":""},on:{"active-change":e.onActiveChange},scopedSlots:e._u([e.inline?null:{key:"trigger",fn:function(){return[e._t("trigger",[i("b-input",e._b({ref:"input",attrs:{autocomplete:"off",value:e.formatValue(e.computedValue),placeholder:e.placeholder,size:e.size,icon:e.icon,"icon-pack":e.iconPack,loading:e.loading,disabled:e.disabled,readonly:!e.editable,rounded:e.rounded,"use-html5-validation":e.useHtml5Validation},on:{focus:e.handleOnFocus},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.toggle(!0)},change:function(t){return e.onChange(t.target.value)}}},"b-input",e.$attrs,!1))])]},proxy:!0}],null,!0)},[i("b-dropdown-item",{attrs:{disabled:e.disabled,focusable:e.focusable,custom:""}},[i("b-field",{attrs:{grouped:"",position:"is-centered"}},[i("b-select",{attrs:{disabled:e.disabled,placeholder:"00"},nativeOn:{change:function(t){return e.onHoursChange(t.target.value)}},model:{value:e.hoursSelected,callback:function(t){e.hoursSelected=t},expression:"hoursSelected"}},e._l(e.hours,(function(t){return i("option",{key:t.value,attrs:{disabled:e.isHourDisabled(t.value)},domProps:{value:t.value}},[e._v(" "+e._s(t.label)+" ")])})),0),i("span",{staticClass:"control is-colon"},[e._v(e._s(e.hourLiteral))]),i("b-select",{attrs:{disabled:e.disabled,placeholder:"00"},nativeOn:{change:function(t){return e.onMinutesChange(t.target.value)}},model:{value:e.minutesSelected,callback:function(t){e.minutesSelected=t},expression:"minutesSelected"}},e._l(e.minutes,(function(t){return i("option",{key:t.value,attrs:{disabled:e.isMinuteDisabled(t.value)},domProps:{value:t.value}},[e._v(" "+e._s(t.label)+" ")])})),0),e.enableSeconds?[i("span",{staticClass:"control is-colon"},[e._v(e._s(e.minuteLiteral))]),i("b-select",{attrs:{disabled:e.disabled,placeholder:"00"},nativeOn:{change:function(t){return e.onSecondsChange(t.target.value)}},model:{value:e.secondsSelected,callback:function(t){e.secondsSelected=t},expression:"secondsSelected"}},e._l(e.seconds,(function(t){return i("option",{key:t.value,attrs:{disabled:e.isSecondDisabled(t.value)},domProps:{value:t.value}},[e._v(" "+e._s(t.label)+" ")])})),0),i("span",{staticClass:"control is-colon"},[e._v(e._s(e.secondLiteral))])]:e._e(),e.isHourFormat24?e._e():i("b-select",{attrs:{disabled:e.disabled},nativeOn:{change:function(t){return e.onMeridienChange(t.target.value)}},model:{value:e.meridienSelected,callback:function(t){e.meridienSelected=t},expression:"meridienSelected"}},e._l(e.meridiens,(function(t){return i("option",{key:t,domProps:{value:t}},[e._v(" "+e._s(t)+" ")])})),0)],2),void 0!==e.$slots.default&&e.$slots.default.length?i("footer",{staticClass:"timepicker-footer"},[e._t("default")],2):e._e()],1)],1):i("b-input",e._b({ref:"input",attrs:{type:"time",step:e.nativeStep,autocomplete:"off",value:e.formatHHMMSS(e.computedValue),placeholder:e.placeholder,size:e.size,icon:e.icon,"icon-pack":e.iconPack,rounded:e.rounded,loading:e.loading,max:e.formatHHMMSS(e.maxTime),min:e.formatHHMMSS(e.minTime),disabled:e.disabled,readonly:!1,"use-html5-validation":e.useHtml5Validation},on:{focus:e.handleOnFocus,blur:function(t){e.onBlur()&&e.checkHtml5Validity()}},nativeOn:{change:function(t){return e.onChange(t.target.value)}}},"b-input",e.$attrs,!1))],1)},staticRenderFns:[]},undefined,{name:"BTimepicker",components:o(o(o(o(o(o({},H.name,H),D.name,D),N.name,N),B.name,B),_.name,_),O.name,O),mixins:[C],inheritAttrs:!1,data:function(){return{_isTimepicker:!0}},computed:{nativeStep:function(){if(this.enableSeconds)return"1"}}},undefined,false,undefined,!1,void 0,void 0,void 0),L={install:function(e){!function(e,t){e.component(t.name,t)}(e,z)}};E=L,"undefined"!=typeof window&&window.Vue&&window.Vue.use(E),e.BTimepicker=z,e.default=L,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
@@ -0,0 +1,501 @@
|
|
|
1
|
+
/*! Buefy v0.9.28 | MIT License | github.com/buefy/buefy */
|
|
2
|
+
(function (global, factory) {
|
|
3
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
4
|
+
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
5
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.Toast = {}));
|
|
6
|
+
})(this, (function (exports) { 'use strict';
|
|
7
|
+
|
|
8
|
+
var config = {
|
|
9
|
+
defaultContainerElement: null,
|
|
10
|
+
defaultIconPack: 'mdi',
|
|
11
|
+
defaultIconComponent: null,
|
|
12
|
+
defaultIconPrev: 'chevron-left',
|
|
13
|
+
defaultIconNext: 'chevron-right',
|
|
14
|
+
defaultLocale: undefined,
|
|
15
|
+
defaultDialogConfirmText: null,
|
|
16
|
+
defaultDialogCancelText: null,
|
|
17
|
+
defaultSnackbarDuration: 3500,
|
|
18
|
+
defaultSnackbarPosition: null,
|
|
19
|
+
defaultToastDuration: 2000,
|
|
20
|
+
defaultToastPosition: null,
|
|
21
|
+
defaultNotificationDuration: 2000,
|
|
22
|
+
defaultNotificationPosition: null,
|
|
23
|
+
defaultTooltipType: 'is-primary',
|
|
24
|
+
defaultTooltipDelay: null,
|
|
25
|
+
defaultTooltipCloseDelay: null,
|
|
26
|
+
defaultSidebarDelay: null,
|
|
27
|
+
defaultInputAutocomplete: 'on',
|
|
28
|
+
defaultDateFormatter: null,
|
|
29
|
+
defaultDateParser: null,
|
|
30
|
+
defaultDateCreator: null,
|
|
31
|
+
defaultTimeCreator: null,
|
|
32
|
+
defaultDayNames: null,
|
|
33
|
+
defaultMonthNames: null,
|
|
34
|
+
defaultFirstDayOfWeek: null,
|
|
35
|
+
defaultUnselectableDaysOfWeek: null,
|
|
36
|
+
defaultTimeFormatter: null,
|
|
37
|
+
defaultTimeParser: null,
|
|
38
|
+
defaultModalCanCancel: ['escape', 'x', 'outside', 'button'],
|
|
39
|
+
defaultModalScroll: null,
|
|
40
|
+
defaultDatepickerMobileNative: true,
|
|
41
|
+
defaultTimepickerMobileNative: true,
|
|
42
|
+
defaultTimepickerMobileModal: true,
|
|
43
|
+
defaultNoticeQueue: true,
|
|
44
|
+
defaultInputHasCounter: true,
|
|
45
|
+
defaultTaginputHasCounter: true,
|
|
46
|
+
defaultUseHtml5Validation: true,
|
|
47
|
+
defaultDropdownMobileModal: true,
|
|
48
|
+
defaultFieldLabelPosition: null,
|
|
49
|
+
defaultDatepickerYearsRange: [-100, 10],
|
|
50
|
+
defaultDatepickerNearbyMonthDays: true,
|
|
51
|
+
defaultDatepickerNearbySelectableMonthDays: false,
|
|
52
|
+
defaultDatepickerShowWeekNumber: false,
|
|
53
|
+
defaultDatepickerWeekNumberClickable: false,
|
|
54
|
+
defaultDatepickerMobileModal: true,
|
|
55
|
+
defaultTrapFocus: true,
|
|
56
|
+
defaultAutoFocus: true,
|
|
57
|
+
defaultButtonRounded: false,
|
|
58
|
+
defaultSwitchRounded: true,
|
|
59
|
+
defaultCarouselInterval: 3500,
|
|
60
|
+
defaultTabsExpanded: false,
|
|
61
|
+
defaultTabsAnimated: true,
|
|
62
|
+
defaultTabsType: null,
|
|
63
|
+
defaultStatusIcon: true,
|
|
64
|
+
defaultProgrammaticPromise: false,
|
|
65
|
+
defaultLinkTags: ['a', 'button', 'input', 'router-link', 'nuxt-link', 'n-link', 'RouterLink', 'NuxtLink', 'NLink'],
|
|
66
|
+
defaultImageWebpFallback: null,
|
|
67
|
+
defaultImageLazy: true,
|
|
68
|
+
defaultImageResponsive: true,
|
|
69
|
+
defaultImageRatio: null,
|
|
70
|
+
defaultImageSrcsetFormatter: null,
|
|
71
|
+
defaultBreadcrumbTag: 'a',
|
|
72
|
+
defaultBreadcrumbAlign: 'is-left',
|
|
73
|
+
defaultBreadcrumbSeparator: '',
|
|
74
|
+
defaultBreadcrumbSize: 'is-medium',
|
|
75
|
+
customIconPacks: null
|
|
76
|
+
};
|
|
77
|
+
var VueInstance;
|
|
78
|
+
|
|
79
|
+
function ownKeys(e, r) {
|
|
80
|
+
var t = Object.keys(e);
|
|
81
|
+
if (Object.getOwnPropertySymbols) {
|
|
82
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
83
|
+
r && (o = o.filter(function (r) {
|
|
84
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
85
|
+
})), t.push.apply(t, o);
|
|
86
|
+
}
|
|
87
|
+
return t;
|
|
88
|
+
}
|
|
89
|
+
function _objectSpread2(e) {
|
|
90
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
91
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
92
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
93
|
+
_defineProperty(e, r, t[r]);
|
|
94
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
95
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
return e;
|
|
99
|
+
}
|
|
100
|
+
function _toPrimitive(t, r) {
|
|
101
|
+
if ("object" != typeof t || !t) return t;
|
|
102
|
+
var e = t[Symbol.toPrimitive];
|
|
103
|
+
if (void 0 !== e) {
|
|
104
|
+
var i = e.call(t, r || "default");
|
|
105
|
+
if ("object" != typeof i) return i;
|
|
106
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
107
|
+
}
|
|
108
|
+
return ("string" === r ? String : Number)(t);
|
|
109
|
+
}
|
|
110
|
+
function _toPropertyKey(t) {
|
|
111
|
+
var i = _toPrimitive(t, "string");
|
|
112
|
+
return "symbol" == typeof i ? i : String(i);
|
|
113
|
+
}
|
|
114
|
+
function _typeof(o) {
|
|
115
|
+
"@babel/helpers - typeof";
|
|
116
|
+
|
|
117
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
118
|
+
return typeof o;
|
|
119
|
+
} : function (o) {
|
|
120
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
121
|
+
}, _typeof(o);
|
|
122
|
+
}
|
|
123
|
+
function _defineProperty(obj, key, value) {
|
|
124
|
+
key = _toPropertyKey(key);
|
|
125
|
+
if (key in obj) {
|
|
126
|
+
Object.defineProperty(obj, key, {
|
|
127
|
+
value: value,
|
|
128
|
+
enumerable: true,
|
|
129
|
+
configurable: true,
|
|
130
|
+
writable: true
|
|
131
|
+
});
|
|
132
|
+
} else {
|
|
133
|
+
obj[key] = value;
|
|
134
|
+
}
|
|
135
|
+
return obj;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Merge function to replace Object.assign with deep merging possibility
|
|
140
|
+
*/
|
|
141
|
+
var isObject = function isObject(item) {
|
|
142
|
+
return _typeof(item) === 'object' && !Array.isArray(item);
|
|
143
|
+
};
|
|
144
|
+
var mergeFn = function mergeFn(target, source) {
|
|
145
|
+
var deep = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
146
|
+
if (deep || !Object.assign) {
|
|
147
|
+
var isDeep = function isDeep(prop) {
|
|
148
|
+
return isObject(source[prop]) && target !== null && target.hasOwnProperty(prop) && isObject(target[prop]);
|
|
149
|
+
};
|
|
150
|
+
var replaced = Object.getOwnPropertyNames(source).map(function (prop) {
|
|
151
|
+
return _defineProperty({}, prop, isDeep(prop) ? mergeFn(target[prop], source[prop], deep) : source[prop]);
|
|
152
|
+
}).reduce(function (a, b) {
|
|
153
|
+
return _objectSpread2(_objectSpread2({}, a), b);
|
|
154
|
+
}, {});
|
|
155
|
+
return _objectSpread2(_objectSpread2({}, target), replaced);
|
|
156
|
+
} else {
|
|
157
|
+
return Object.assign(target, source);
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
var merge = mergeFn;
|
|
161
|
+
function removeElement(el) {
|
|
162
|
+
if (typeof el.remove !== 'undefined') {
|
|
163
|
+
el.remove();
|
|
164
|
+
} else if (typeof el.parentNode !== 'undefined' && el.parentNode !== null) {
|
|
165
|
+
el.parentNode.removeChild(el);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
var NoticeMixin = {
|
|
170
|
+
props: {
|
|
171
|
+
type: {
|
|
172
|
+
type: String,
|
|
173
|
+
default: 'is-dark'
|
|
174
|
+
},
|
|
175
|
+
message: [String, Array],
|
|
176
|
+
duration: Number,
|
|
177
|
+
queue: {
|
|
178
|
+
type: Boolean,
|
|
179
|
+
default: undefined
|
|
180
|
+
},
|
|
181
|
+
indefinite: {
|
|
182
|
+
type: Boolean,
|
|
183
|
+
default: false
|
|
184
|
+
},
|
|
185
|
+
pauseOnHover: {
|
|
186
|
+
type: Boolean,
|
|
187
|
+
default: false
|
|
188
|
+
},
|
|
189
|
+
position: {
|
|
190
|
+
type: String,
|
|
191
|
+
default: 'is-top',
|
|
192
|
+
validator: function validator(value) {
|
|
193
|
+
return ['is-top-right', 'is-top', 'is-top-left', 'is-bottom-right', 'is-bottom', 'is-bottom-left'].indexOf(value) > -1;
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
container: String
|
|
197
|
+
},
|
|
198
|
+
data: function data() {
|
|
199
|
+
return {
|
|
200
|
+
isActive: false,
|
|
201
|
+
isPaused: false,
|
|
202
|
+
parentTop: null,
|
|
203
|
+
parentBottom: null,
|
|
204
|
+
newContainer: this.container || config.defaultContainerElement
|
|
205
|
+
};
|
|
206
|
+
},
|
|
207
|
+
computed: {
|
|
208
|
+
correctParent: function correctParent() {
|
|
209
|
+
switch (this.position) {
|
|
210
|
+
case 'is-top-right':
|
|
211
|
+
case 'is-top':
|
|
212
|
+
case 'is-top-left':
|
|
213
|
+
return this.parentTop;
|
|
214
|
+
case 'is-bottom-right':
|
|
215
|
+
case 'is-bottom':
|
|
216
|
+
case 'is-bottom-left':
|
|
217
|
+
return this.parentBottom;
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
transition: function transition() {
|
|
221
|
+
switch (this.position) {
|
|
222
|
+
case 'is-top-right':
|
|
223
|
+
case 'is-top':
|
|
224
|
+
case 'is-top-left':
|
|
225
|
+
return {
|
|
226
|
+
enter: 'fadeInDown',
|
|
227
|
+
leave: 'fadeOut'
|
|
228
|
+
};
|
|
229
|
+
case 'is-bottom-right':
|
|
230
|
+
case 'is-bottom':
|
|
231
|
+
case 'is-bottom-left':
|
|
232
|
+
return {
|
|
233
|
+
enter: 'fadeInUp',
|
|
234
|
+
leave: 'fadeOut'
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
methods: {
|
|
240
|
+
pause: function pause() {
|
|
241
|
+
if (this.pauseOnHover && !this.indefinite) {
|
|
242
|
+
this.isPaused = true;
|
|
243
|
+
clearInterval(this.$buefy.globalNoticeInterval);
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
removePause: function removePause() {
|
|
247
|
+
if (this.pauseOnHover && !this.indefinite) {
|
|
248
|
+
this.isPaused = false;
|
|
249
|
+
this.close();
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
shouldQueue: function shouldQueue() {
|
|
253
|
+
var queue = this.queue !== undefined ? this.queue : config.defaultNoticeQueue;
|
|
254
|
+
if (!queue) return false;
|
|
255
|
+
return this.parentTop.childElementCount > 0 || this.parentBottom.childElementCount > 0;
|
|
256
|
+
},
|
|
257
|
+
click: function click() {
|
|
258
|
+
this.$emit('click');
|
|
259
|
+
},
|
|
260
|
+
close: function close() {
|
|
261
|
+
var _this = this;
|
|
262
|
+
if (!this.isPaused) {
|
|
263
|
+
clearTimeout(this.timer);
|
|
264
|
+
this.isActive = false;
|
|
265
|
+
this.$emit('close');
|
|
266
|
+
|
|
267
|
+
// Timeout for the animation complete before destroying
|
|
268
|
+
setTimeout(function () {
|
|
269
|
+
_this.$destroy();
|
|
270
|
+
removeElement(_this.$el);
|
|
271
|
+
}, 150);
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
timeoutCallback: function timeoutCallback() {
|
|
275
|
+
return this.close();
|
|
276
|
+
},
|
|
277
|
+
showNotice: function showNotice() {
|
|
278
|
+
var _this2 = this;
|
|
279
|
+
if (this.shouldQueue()) this.correctParent.innerHTML = '';
|
|
280
|
+
this.correctParent.insertAdjacentElement('afterbegin', this.$el);
|
|
281
|
+
this.isActive = true;
|
|
282
|
+
if (!this.indefinite) {
|
|
283
|
+
this.timer = setTimeout(function () {
|
|
284
|
+
return _this2.timeoutCallback();
|
|
285
|
+
}, this.newDuration);
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
setupContainer: function setupContainer() {
|
|
289
|
+
this.parentTop = document.querySelector((this.newContainer ? this.newContainer : 'body') + '>.notices.is-top');
|
|
290
|
+
this.parentBottom = document.querySelector((this.newContainer ? this.newContainer : 'body') + '>.notices.is-bottom');
|
|
291
|
+
if (this.parentTop && this.parentBottom) return;
|
|
292
|
+
if (!this.parentTop) {
|
|
293
|
+
this.parentTop = document.createElement('div');
|
|
294
|
+
this.parentTop.className = 'notices is-top';
|
|
295
|
+
}
|
|
296
|
+
if (!this.parentBottom) {
|
|
297
|
+
this.parentBottom = document.createElement('div');
|
|
298
|
+
this.parentBottom.className = 'notices is-bottom';
|
|
299
|
+
}
|
|
300
|
+
var container = document.querySelector(this.newContainer) || document.body;
|
|
301
|
+
container.appendChild(this.parentTop);
|
|
302
|
+
container.appendChild(this.parentBottom);
|
|
303
|
+
if (this.newContainer) {
|
|
304
|
+
this.parentTop.classList.add('has-custom-container');
|
|
305
|
+
this.parentBottom.classList.add('has-custom-container');
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
beforeMount: function beforeMount() {
|
|
310
|
+
this.setupContainer();
|
|
311
|
+
},
|
|
312
|
+
mounted: function mounted() {
|
|
313
|
+
this.showNotice();
|
|
314
|
+
}
|
|
315
|
+
};
|
|
316
|
+
|
|
317
|
+
//
|
|
318
|
+
var script = {
|
|
319
|
+
name: 'BToast',
|
|
320
|
+
mixins: [NoticeMixin],
|
|
321
|
+
data: function data() {
|
|
322
|
+
return {
|
|
323
|
+
newDuration: this.duration || config.defaultToastDuration
|
|
324
|
+
};
|
|
325
|
+
}
|
|
326
|
+
};
|
|
327
|
+
|
|
328
|
+
function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
|
|
329
|
+
if (typeof shadowMode !== 'boolean') {
|
|
330
|
+
createInjectorSSR = createInjector;
|
|
331
|
+
createInjector = shadowMode;
|
|
332
|
+
shadowMode = false;
|
|
333
|
+
}
|
|
334
|
+
// Vue.extend constructor export interop.
|
|
335
|
+
const options = typeof script === 'function' ? script.options : script;
|
|
336
|
+
// render functions
|
|
337
|
+
if (template && template.render) {
|
|
338
|
+
options.render = template.render;
|
|
339
|
+
options.staticRenderFns = template.staticRenderFns;
|
|
340
|
+
options._compiled = true;
|
|
341
|
+
// functional template
|
|
342
|
+
if (isFunctionalTemplate) {
|
|
343
|
+
options.functional = true;
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
// scopedId
|
|
347
|
+
if (scopeId) {
|
|
348
|
+
options._scopeId = scopeId;
|
|
349
|
+
}
|
|
350
|
+
let hook;
|
|
351
|
+
if (moduleIdentifier) {
|
|
352
|
+
// server build
|
|
353
|
+
hook = function (context) {
|
|
354
|
+
// 2.3 injection
|
|
355
|
+
context =
|
|
356
|
+
context || // cached call
|
|
357
|
+
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
358
|
+
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional
|
|
359
|
+
// 2.2 with runInNewContext: true
|
|
360
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
361
|
+
context = __VUE_SSR_CONTEXT__;
|
|
362
|
+
}
|
|
363
|
+
// inject component styles
|
|
364
|
+
if (style) {
|
|
365
|
+
style.call(this, createInjectorSSR(context));
|
|
366
|
+
}
|
|
367
|
+
// register component module identifier for async chunk inference
|
|
368
|
+
if (context && context._registeredComponents) {
|
|
369
|
+
context._registeredComponents.add(moduleIdentifier);
|
|
370
|
+
}
|
|
371
|
+
};
|
|
372
|
+
// used by ssr in case component is cached and beforeCreate
|
|
373
|
+
// never gets called
|
|
374
|
+
options._ssrRegister = hook;
|
|
375
|
+
}
|
|
376
|
+
else if (style) {
|
|
377
|
+
hook = shadowMode
|
|
378
|
+
? function (context) {
|
|
379
|
+
style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
|
|
380
|
+
}
|
|
381
|
+
: function (context) {
|
|
382
|
+
style.call(this, createInjector(context));
|
|
383
|
+
};
|
|
384
|
+
}
|
|
385
|
+
if (hook) {
|
|
386
|
+
if (options.functional) {
|
|
387
|
+
// register for functional component in vue file
|
|
388
|
+
const originalRender = options.render;
|
|
389
|
+
options.render = function renderWithStyleInjection(h, context) {
|
|
390
|
+
hook.call(context);
|
|
391
|
+
return originalRender(h, context);
|
|
392
|
+
};
|
|
393
|
+
}
|
|
394
|
+
else {
|
|
395
|
+
// inject component registration as beforeCreate hook
|
|
396
|
+
const existing = options.beforeCreate;
|
|
397
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
return script;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
/* script */
|
|
404
|
+
const __vue_script__ = script;
|
|
405
|
+
|
|
406
|
+
/* template */
|
|
407
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{"enter-active-class":_vm.transition.enter,"leave-active-class":_vm.transition.leave}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isActive),expression:"isActive"}],staticClass:"toast",class:[_vm.type, _vm.position],attrs:{"aria-hidden":!_vm.isActive,"role":"alert"},on:{"mouseenter":_vm.pause,"mouseleave":_vm.removePause}},[(_vm.$slots.default)?[_vm._t("default")]:[_c('div',{domProps:{"innerHTML":_vm._s(_vm.message)}})]],2)])};
|
|
408
|
+
var __vue_staticRenderFns__ = [];
|
|
409
|
+
|
|
410
|
+
/* style */
|
|
411
|
+
const __vue_inject_styles__ = undefined;
|
|
412
|
+
/* scoped */
|
|
413
|
+
const __vue_scope_id__ = undefined;
|
|
414
|
+
/* module identifier */
|
|
415
|
+
const __vue_module_identifier__ = undefined;
|
|
416
|
+
/* functional template */
|
|
417
|
+
const __vue_is_functional_template__ = false;
|
|
418
|
+
/* style inject */
|
|
419
|
+
|
|
420
|
+
/* style inject SSR */
|
|
421
|
+
|
|
422
|
+
/* style inject shadow dom */
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
const __vue_component__ = /*#__PURE__*/normalizeComponent(
|
|
427
|
+
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
|
428
|
+
__vue_inject_styles__,
|
|
429
|
+
__vue_script__,
|
|
430
|
+
__vue_scope_id__,
|
|
431
|
+
__vue_is_functional_template__,
|
|
432
|
+
__vue_module_identifier__,
|
|
433
|
+
false,
|
|
434
|
+
undefined,
|
|
435
|
+
undefined,
|
|
436
|
+
undefined
|
|
437
|
+
);
|
|
438
|
+
|
|
439
|
+
var Toast = __vue_component__;
|
|
440
|
+
|
|
441
|
+
var use = function use(plugin) {
|
|
442
|
+
if (typeof window !== 'undefined' && window.Vue) {
|
|
443
|
+
window.Vue.use(plugin);
|
|
444
|
+
}
|
|
445
|
+
};
|
|
446
|
+
var registerComponentProgrammatic = function registerComponentProgrammatic(Vue, property, component) {
|
|
447
|
+
if (!Vue.prototype.$buefy) Vue.prototype.$buefy = {};
|
|
448
|
+
Vue.prototype.$buefy[property] = component;
|
|
449
|
+
};
|
|
450
|
+
|
|
451
|
+
var localVueInstance;
|
|
452
|
+
var ToastProgrammatic = {
|
|
453
|
+
open: function open(params) {
|
|
454
|
+
var parent;
|
|
455
|
+
if (typeof params === 'string') {
|
|
456
|
+
params = {
|
|
457
|
+
message: params
|
|
458
|
+
};
|
|
459
|
+
}
|
|
460
|
+
var defaultParam = {
|
|
461
|
+
position: config.defaultToastPosition || 'is-top'
|
|
462
|
+
};
|
|
463
|
+
if (params.parent) {
|
|
464
|
+
parent = params.parent;
|
|
465
|
+
delete params.parent;
|
|
466
|
+
}
|
|
467
|
+
var slot;
|
|
468
|
+
if (Array.isArray(params.message)) {
|
|
469
|
+
slot = params.message;
|
|
470
|
+
delete params.message;
|
|
471
|
+
}
|
|
472
|
+
var propsData = merge(defaultParam, params);
|
|
473
|
+
var vm = typeof window !== 'undefined' && window.Vue ? window.Vue : localVueInstance || VueInstance;
|
|
474
|
+
var ToastComponent = vm.extend(Toast);
|
|
475
|
+
var component = new ToastComponent({
|
|
476
|
+
parent: parent,
|
|
477
|
+
el: document.createElement('div'),
|
|
478
|
+
propsData: propsData
|
|
479
|
+
});
|
|
480
|
+
if (slot) {
|
|
481
|
+
component.$slots.default = slot;
|
|
482
|
+
component.$forceUpdate();
|
|
483
|
+
}
|
|
484
|
+
return component;
|
|
485
|
+
}
|
|
486
|
+
};
|
|
487
|
+
var Plugin = {
|
|
488
|
+
install: function install(Vue) {
|
|
489
|
+
localVueInstance = Vue;
|
|
490
|
+
registerComponentProgrammatic(Vue, 'toast', ToastProgrammatic);
|
|
491
|
+
}
|
|
492
|
+
};
|
|
493
|
+
use(Plugin);
|
|
494
|
+
|
|
495
|
+
exports.BToast = Toast;
|
|
496
|
+
exports.ToastProgrammatic = ToastProgrammatic;
|
|
497
|
+
exports["default"] = Plugin;
|
|
498
|
+
|
|
499
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
500
|
+
|
|
501
|
+
}));
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! Buefy v0.9.28 | MIT License | github.com/buefy/buefy */
|
|
2
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).Toast={})}(this,(function(t){"use strict";var e=null,n=2e3,o=null,i=!0;function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function c(t,e,n){return(e=a(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var p=function(t){return"object"===u(t)&&!Array.isArray(t)},l=function t(e,n){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(o||!Object.assign){var i=Object.getOwnPropertyNames(n).map((function(i){return c({},i,function(t){return p(n[t])&&null!==e&&e.hasOwnProperty(t)&&p(e[t])}(i)?t(e[i],n[i],o):n[i])})).reduce((function(t,e){return s(s({},t),e)}),{});return s(s({},e),i)}return Object.assign(e,n)};function d(t,e,n,o,i,r,s,a,u,c){"boolean"!=typeof s&&(u=a,a=s,s=!1);const p="function"==typeof n?n.options:n;let l;if(t&&t.render&&(p.render=t.render,p.staticRenderFns=t.staticRenderFns,p._compiled=!0,i&&(p.functional=!0)),o&&(p._scopeId=o),r?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(r)},p._ssrRegister=l):e&&(l=s?function(t){e.call(this,c(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),l)if(p.functional){const t=p.render;p.render=function(e,n){return l.call(n),t(e,n)}}else{const t=p.beforeCreate;p.beforeCreate=t?[].concat(t,l):[l]}return n}var f,h,m=d({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{"enter-active-class":t.transition.enter,"leave-active-class":t.transition.leave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"toast",class:[t.type,t.position],attrs:{"aria-hidden":!t.isActive,role:"alert"},on:{mouseenter:t.pause,mouseleave:t.removePause}},[t.$slots.default?[t._t("default")]:[n("div",{domProps:{innerHTML:t._s(t.message)}})]],2)])},staticRenderFns:[]},undefined,{name:"BToast",mixins:[{props:{type:{type:String,default:"is-dark"},message:[String,Array],duration:Number,queue:{type:Boolean,default:void 0},indefinite:{type:Boolean,default:!1},pauseOnHover:{type:Boolean,default:!1},position:{type:String,default:"is-top",validator:function(t){return["is-top-right","is-top","is-top-left","is-bottom-right","is-bottom","is-bottom-left"].indexOf(t)>-1}},container:String},data:function(){return{isActive:!1,isPaused:!1,parentTop:null,parentBottom:null,newContainer:this.container||e}},computed:{correctParent:function(){switch(this.position){case"is-top-right":case"is-top":case"is-top-left":return this.parentTop;case"is-bottom-right":case"is-bottom":case"is-bottom-left":return this.parentBottom}},transition:function(){switch(this.position){case"is-top-right":case"is-top":case"is-top-left":return{enter:"fadeInDown",leave:"fadeOut"};case"is-bottom-right":case"is-bottom":case"is-bottom-left":return{enter:"fadeInUp",leave:"fadeOut"}}}},methods:{pause:function(){this.pauseOnHover&&!this.indefinite&&(this.isPaused=!0,clearInterval(this.$buefy.globalNoticeInterval))},removePause:function(){this.pauseOnHover&&!this.indefinite&&(this.isPaused=!1,this.close())},shouldQueue:function(){return!!(void 0!==this.queue?this.queue:i)&&(this.parentTop.childElementCount>0||this.parentBottom.childElementCount>0)},click:function(){this.$emit("click")},close:function(){var t=this;this.isPaused||(clearTimeout(this.timer),this.isActive=!1,this.$emit("close"),setTimeout((function(){var e;t.$destroy(),void 0!==(e=t.$el).remove?e.remove():void 0!==e.parentNode&&null!==e.parentNode&&e.parentNode.removeChild(e)}),150))},timeoutCallback:function(){return this.close()},showNotice:function(){var t=this;this.shouldQueue()&&(this.correctParent.innerHTML=""),this.correctParent.insertAdjacentElement("afterbegin",this.$el),this.isActive=!0,this.indefinite||(this.timer=setTimeout((function(){return t.timeoutCallback()}),this.newDuration))},setupContainer:function(){if(this.parentTop=document.querySelector((this.newContainer?this.newContainer:"body")+">.notices.is-top"),this.parentBottom=document.querySelector((this.newContainer?this.newContainer:"body")+">.notices.is-bottom"),!this.parentTop||!this.parentBottom){this.parentTop||(this.parentTop=document.createElement("div"),this.parentTop.className="notices is-top"),this.parentBottom||(this.parentBottom=document.createElement("div"),this.parentBottom.className="notices is-bottom");var t=document.querySelector(this.newContainer)||document.body;t.appendChild(this.parentTop),t.appendChild(this.parentBottom),this.newContainer&&(this.parentTop.classList.add("has-custom-container"),this.parentBottom.classList.add("has-custom-container"))}}},beforeMount:function(){this.setupContainer()},mounted:function(){this.showNotice()}}],data:function(){return{newDuration:this.duration||n}}},undefined,false,undefined,!1,void 0,void 0,void 0),v={open:function(t){var e;"string"==typeof t&&(t={message:t});var n,i={position:o||"is-top"};t.parent&&(e=t.parent,delete t.parent),Array.isArray(t.message)&&(n=t.message,delete t.message);var r=l(i,t),s=new(("undefined"!=typeof window&&window.Vue?window.Vue:f||undefined).extend(m))({parent:e,el:document.createElement("div"),propsData:r});return n&&(s.$slots.default=n,s.$forceUpdate()),s}},y={install:function(t){f=t,function(t,e,n){t.prototype.$buefy||(t.prototype.$buefy={}),t.prototype.$buefy[e]=n}(t,"toast",v)}};h=y,"undefined"!=typeof window&&window.Vue&&window.Vue.use(h),t.BToast=m,t.ToastProgrammatic=v,t.default=y,Object.defineProperty(t,"__esModule",{value:!0})}));
|