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).Select={})}(this,(function(e){"use strict";function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function n(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?t(Object(i),!0).forEach((function(t){a(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):t(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function i(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;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 o(e){return o="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},o(e)}function a(e,t,n){return(t=i(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(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 l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var s={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},u=function(e){return"object"===o(e)&&!Array.isArray(e)},c=function e(t,i){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(o||!Object.assign){var r=Object.getOwnPropertyNames(i).map((function(n){return a({},n,function(e){return u(i[e])&&null!==t&&t.hasOwnProperty(e)&&u(t[e])}(n)?e(t[n],i[n],o):i[n])})).reduce((function(e,t){return n(n({},e),t)}),{});return n(n({},t),r)}return Object.assign(t,i)};var f={sizes:{default:"mdi-24px","is-small":null,"is-medium":"mdi-36px","is-large":"mdi-48px"},iconPrefix:"mdi-"},d=function(){var e=s&&s.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"}}},p=function(){var e={mdi:f,fa:d(),fas:d(),far:d(),fad:d(),fab:d(),fal:d(),"fa-solid":d(),"fa-regular":d(),"fa-light":d(),"fa-thin":d(),"fa-duotone":d(),"fa-brands":d()};return s&&s.customIconPacks&&(e=c(e,s.customIconPacks,!0)),e};function m(e,t,n,i,o,a,r,l,s,u){"boolean"!=typeof r&&(s=l,l=r,r=!1);const c="function"==typeof n?n.options:n;let f;if(e&&e.render&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),i&&(c._scopeId=i),a?(f=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,s(e)),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=f):t&&(f=r?function(e){t.call(this,u(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,l(e))}),f)if(c.functional){const e=c.render;c.render=function(t,n){return f.call(n),e(t,n)}}else{const e=c.beforeCreate;c.beforeCreate=e?[].concat(e,f):[f]}return n}var h=m({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticClass:"icon",class:[e.newType,e.size]},[e.useIconComponent?n(e.useIconComponent,{tag:"component",class:[e.customClass],attrs:{icon:[e.newPack,e.newIcon],size:e.newCustomSize}}):n("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 p()[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||s.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 n=r(e).slice(1);return"has-text-".concat(n.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||s.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),g={props:{size:String,expanded:Boolean,loading:Boolean,rounded:Boolean,icon:String,iconPack:String,autocomplete:String,maxlength:[Number,String],useHtml5Validation:{type:Boolean,default:function(){return s.defaultUseHtml5Validation}},validationMessage:String,locale:{type:[String,Array],default:function(){return s.defaultLocale}},statusIcon:{type:Boolean,default:function(){return s.defaultStatusIcon}}},data:function(){return{isValid:!0,isFocused:!1,newIconPack:this.iconPack||s.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 n=this;this.$nextTick((function(){n.parentField&&(n.parentField.type||(n.parentField.newType=e),n.parentField.message||(n.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}}}};var y,b=m({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"control",class:{"is-expanded":e.expanded,"has-icons-left":e.icon}},[n("span",{staticClass:"select",class:e.spanClasses},[n("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 n=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?n:n[0]}}},"select",e.$attrs,!1),[e.placeholder?[null==e.computedValue?n("option",{attrs:{disabled:"",hidden:""},domProps:{value:null}},[e._v(" "+e._s(e.placeholder)+" ")]):e._e()]:e._e(),e._t("default")],2)]),e.icon?n("b-icon",{staticClass:"is-left",attrs:{icon:e.icon,pack:e.iconPack,size:e.iconSize}}):e._e()],1)},staticRenderFns:[]},undefined,{name:"BSelect",components:a({},h.name,h),mixins:[g],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),v={install:function(e){!function(e,t){e.component(t.name,t)}(e,b)}};y=v,"undefined"!=typeof window&&window.Vue&&window.Vue.use(y),e.BSelect=b,e.default=v,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
@@ -0,0 +1,467 @@
|
|
|
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.Sidebar = {}));
|
|
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
|
+
|
|
78
|
+
function removeElement(el) {
|
|
79
|
+
if (typeof el.remove !== 'undefined') {
|
|
80
|
+
el.remove();
|
|
81
|
+
} else if (typeof el.parentNode !== 'undefined' && el.parentNode !== null) {
|
|
82
|
+
el.parentNode.removeChild(el);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
//
|
|
87
|
+
var script = {
|
|
88
|
+
name: 'BSidebar',
|
|
89
|
+
model: {
|
|
90
|
+
prop: 'open',
|
|
91
|
+
event: 'update:open'
|
|
92
|
+
},
|
|
93
|
+
props: {
|
|
94
|
+
open: Boolean,
|
|
95
|
+
type: [String, Object],
|
|
96
|
+
overlay: Boolean,
|
|
97
|
+
position: {
|
|
98
|
+
type: String,
|
|
99
|
+
default: 'fixed',
|
|
100
|
+
validator: function validator(value) {
|
|
101
|
+
return ['fixed', 'absolute', 'static'].indexOf(value) >= 0;
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
fullheight: Boolean,
|
|
105
|
+
fullwidth: Boolean,
|
|
106
|
+
right: Boolean,
|
|
107
|
+
mobile: {
|
|
108
|
+
type: String
|
|
109
|
+
},
|
|
110
|
+
reduce: Boolean,
|
|
111
|
+
expandOnHover: Boolean,
|
|
112
|
+
expandOnHoverFixed: Boolean,
|
|
113
|
+
delay: {
|
|
114
|
+
type: Number,
|
|
115
|
+
default: function _default() {
|
|
116
|
+
return config.defaultSidebarDelay;
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
canCancel: {
|
|
120
|
+
type: [Array, Boolean],
|
|
121
|
+
default: function _default() {
|
|
122
|
+
return ['escape', 'outside'];
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
onCancel: {
|
|
126
|
+
type: Function,
|
|
127
|
+
default: function _default() {}
|
|
128
|
+
},
|
|
129
|
+
scroll: {
|
|
130
|
+
type: String,
|
|
131
|
+
default: function _default() {
|
|
132
|
+
return config.defaultModalScroll ? config.defaultModalScroll : 'clip';
|
|
133
|
+
},
|
|
134
|
+
validator: function validator(value) {
|
|
135
|
+
return ['clip', 'keep'].indexOf(value) >= 0;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
data: function data() {
|
|
140
|
+
return {
|
|
141
|
+
isOpen: this.open,
|
|
142
|
+
isDelayOver: false,
|
|
143
|
+
transitionName: null,
|
|
144
|
+
animating: true,
|
|
145
|
+
savedScrollTop: null,
|
|
146
|
+
hasLeaved: false
|
|
147
|
+
};
|
|
148
|
+
},
|
|
149
|
+
computed: {
|
|
150
|
+
rootClasses: function rootClasses() {
|
|
151
|
+
return [this.type, {
|
|
152
|
+
'is-fixed': this.isFixed,
|
|
153
|
+
'is-static': this.isStatic,
|
|
154
|
+
'is-absolute': this.isAbsolute,
|
|
155
|
+
'is-fullheight': this.fullheight,
|
|
156
|
+
'is-fullwidth': this.fullwidth,
|
|
157
|
+
'is-right': this.right,
|
|
158
|
+
'is-mini': this.reduce && !this.isDelayOver,
|
|
159
|
+
'is-mini-expand': this.expandOnHover || this.isDelayOver,
|
|
160
|
+
'is-mini-expand-fixed': this.expandOnHover && this.expandOnHoverFixed || this.isDelayOver,
|
|
161
|
+
'is-mini-delayed': this.delay !== null,
|
|
162
|
+
'is-mini-mobile': this.mobile === 'reduce',
|
|
163
|
+
'is-hidden-mobile': this.mobile === 'hide',
|
|
164
|
+
'is-fullwidth-mobile': this.mobile === 'fullwidth'
|
|
165
|
+
}];
|
|
166
|
+
},
|
|
167
|
+
cancelOptions: function cancelOptions() {
|
|
168
|
+
return typeof this.canCancel === 'boolean' ? this.canCancel ? ['escape', 'outside'] : [] : this.canCancel;
|
|
169
|
+
},
|
|
170
|
+
isStatic: function isStatic() {
|
|
171
|
+
return this.position === 'static';
|
|
172
|
+
},
|
|
173
|
+
isFixed: function isFixed() {
|
|
174
|
+
return this.position === 'fixed';
|
|
175
|
+
},
|
|
176
|
+
isAbsolute: function isAbsolute() {
|
|
177
|
+
return this.position === 'absolute';
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
watch: {
|
|
181
|
+
open: {
|
|
182
|
+
handler: function handler(value) {
|
|
183
|
+
this.isOpen = value;
|
|
184
|
+
if (this.overlay) {
|
|
185
|
+
this.handleScroll();
|
|
186
|
+
}
|
|
187
|
+
var open = this.right ? !value : value;
|
|
188
|
+
this.transitionName = !open ? 'slide-prev' : 'slide-next';
|
|
189
|
+
},
|
|
190
|
+
immediate: true
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
methods: {
|
|
194
|
+
/**
|
|
195
|
+
* Keypress event that is bound to the document.
|
|
196
|
+
*/
|
|
197
|
+
keyPress: function keyPress(_ref) {
|
|
198
|
+
var key = _ref.key;
|
|
199
|
+
if (this.isFixed) {
|
|
200
|
+
if (this.isOpen && (key === 'Escape' || key === 'Esc')) this.cancel('escape');
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
/**
|
|
204
|
+
* Close the Sidebar if canCancel and call the onCancel prop (function).
|
|
205
|
+
*/
|
|
206
|
+
cancel: function cancel(method) {
|
|
207
|
+
if (this.cancelOptions.indexOf(method) < 0) return;
|
|
208
|
+
if (this.isStatic) return;
|
|
209
|
+
this.onCancel.apply(null, arguments);
|
|
210
|
+
this.close();
|
|
211
|
+
},
|
|
212
|
+
/**
|
|
213
|
+
* Call the onCancel prop (function) and emit events
|
|
214
|
+
*/
|
|
215
|
+
close: function close() {
|
|
216
|
+
this.isOpen = false;
|
|
217
|
+
this.$emit('close');
|
|
218
|
+
this.$emit('update:open', false);
|
|
219
|
+
},
|
|
220
|
+
/**
|
|
221
|
+
* Close fixed sidebar if clicked outside.
|
|
222
|
+
*/
|
|
223
|
+
clickedOutside: function clickedOutside(event) {
|
|
224
|
+
if (!this.isFixed || !this.isOpen || this.animating) {
|
|
225
|
+
return;
|
|
226
|
+
}
|
|
227
|
+
if (!event.composedPath().includes(this.$refs.sidebarContent)) {
|
|
228
|
+
this.cancel('outside');
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
/**
|
|
232
|
+
* Transition before-enter hook
|
|
233
|
+
*/
|
|
234
|
+
beforeEnter: function beforeEnter() {
|
|
235
|
+
this.animating = true;
|
|
236
|
+
},
|
|
237
|
+
/**
|
|
238
|
+
* Transition after-leave hook
|
|
239
|
+
*/
|
|
240
|
+
afterEnter: function afterEnter() {
|
|
241
|
+
this.animating = false;
|
|
242
|
+
},
|
|
243
|
+
handleScroll: function handleScroll() {
|
|
244
|
+
if (typeof window === 'undefined') return;
|
|
245
|
+
if (this.scroll === 'clip') {
|
|
246
|
+
if (this.open) {
|
|
247
|
+
document.documentElement.classList.add('is-clipped');
|
|
248
|
+
} else {
|
|
249
|
+
document.documentElement.classList.remove('is-clipped');
|
|
250
|
+
}
|
|
251
|
+
return;
|
|
252
|
+
}
|
|
253
|
+
this.savedScrollTop = !this.savedScrollTop ? document.documentElement.scrollTop : this.savedScrollTop;
|
|
254
|
+
if (this.open) {
|
|
255
|
+
document.body.classList.add('is-noscroll');
|
|
256
|
+
} else {
|
|
257
|
+
document.body.classList.remove('is-noscroll');
|
|
258
|
+
}
|
|
259
|
+
if (this.open) {
|
|
260
|
+
document.body.style.top = "-".concat(this.savedScrollTop, "px");
|
|
261
|
+
return;
|
|
262
|
+
}
|
|
263
|
+
document.documentElement.scrollTop = this.savedScrollTop;
|
|
264
|
+
document.body.style.top = null;
|
|
265
|
+
this.savedScrollTop = null;
|
|
266
|
+
},
|
|
267
|
+
onHover: function onHover() {
|
|
268
|
+
var _this = this;
|
|
269
|
+
if (this.delay) {
|
|
270
|
+
this.hasLeaved = false;
|
|
271
|
+
this.timer = setTimeout(function () {
|
|
272
|
+
if (!_this.hasLeaved) {
|
|
273
|
+
_this.isDelayOver = true;
|
|
274
|
+
}
|
|
275
|
+
_this.timer = null;
|
|
276
|
+
}, this.delay);
|
|
277
|
+
} else {
|
|
278
|
+
this.isDelayOver = false;
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
onHoverLeave: function onHoverLeave() {
|
|
282
|
+
this.hasLeaved = true;
|
|
283
|
+
this.timer = null;
|
|
284
|
+
this.isDelayOver = false;
|
|
285
|
+
},
|
|
286
|
+
/**
|
|
287
|
+
* Close sidebar if close button is clicked.
|
|
288
|
+
*/
|
|
289
|
+
clickedCloseButton: function clickedCloseButton() {
|
|
290
|
+
if (this.isFixed) {
|
|
291
|
+
if (this.isOpen && this.fullwidth) {
|
|
292
|
+
this.cancel('outside');
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
created: function created() {
|
|
298
|
+
if (typeof window !== 'undefined') {
|
|
299
|
+
document.addEventListener('keyup', this.keyPress);
|
|
300
|
+
document.addEventListener('click', this.clickedOutside);
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
mounted: function mounted() {
|
|
304
|
+
if (typeof window !== 'undefined') {
|
|
305
|
+
if (this.isFixed) {
|
|
306
|
+
document.body.appendChild(this.$el);
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
if (this.overlay && this.open) {
|
|
310
|
+
this.handleScroll();
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
beforeDestroy: function beforeDestroy() {
|
|
314
|
+
if (typeof window !== 'undefined') {
|
|
315
|
+
document.removeEventListener('keyup', this.keyPress);
|
|
316
|
+
document.removeEventListener('click', this.clickedOutside);
|
|
317
|
+
if (this.overlay) {
|
|
318
|
+
// reset scroll
|
|
319
|
+
document.documentElement.classList.remove('is-clipped');
|
|
320
|
+
var savedScrollTop = !this.savedScrollTop ? document.documentElement.scrollTop : this.savedScrollTop;
|
|
321
|
+
document.body.classList.remove('is-noscroll');
|
|
322
|
+
document.documentElement.scrollTop = savedScrollTop;
|
|
323
|
+
document.body.style.top = null;
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
if (this.isFixed) {
|
|
327
|
+
removeElement(this.$el);
|
|
328
|
+
}
|
|
329
|
+
clearTimeout(this.timer);
|
|
330
|
+
}
|
|
331
|
+
};
|
|
332
|
+
|
|
333
|
+
function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
|
|
334
|
+
if (typeof shadowMode !== 'boolean') {
|
|
335
|
+
createInjectorSSR = createInjector;
|
|
336
|
+
createInjector = shadowMode;
|
|
337
|
+
shadowMode = false;
|
|
338
|
+
}
|
|
339
|
+
// Vue.extend constructor export interop.
|
|
340
|
+
const options = typeof script === 'function' ? script.options : script;
|
|
341
|
+
// render functions
|
|
342
|
+
if (template && template.render) {
|
|
343
|
+
options.render = template.render;
|
|
344
|
+
options.staticRenderFns = template.staticRenderFns;
|
|
345
|
+
options._compiled = true;
|
|
346
|
+
// functional template
|
|
347
|
+
if (isFunctionalTemplate) {
|
|
348
|
+
options.functional = true;
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
// scopedId
|
|
352
|
+
if (scopeId) {
|
|
353
|
+
options._scopeId = scopeId;
|
|
354
|
+
}
|
|
355
|
+
let hook;
|
|
356
|
+
if (moduleIdentifier) {
|
|
357
|
+
// server build
|
|
358
|
+
hook = function (context) {
|
|
359
|
+
// 2.3 injection
|
|
360
|
+
context =
|
|
361
|
+
context || // cached call
|
|
362
|
+
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
363
|
+
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional
|
|
364
|
+
// 2.2 with runInNewContext: true
|
|
365
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
366
|
+
context = __VUE_SSR_CONTEXT__;
|
|
367
|
+
}
|
|
368
|
+
// inject component styles
|
|
369
|
+
if (style) {
|
|
370
|
+
style.call(this, createInjectorSSR(context));
|
|
371
|
+
}
|
|
372
|
+
// register component module identifier for async chunk inference
|
|
373
|
+
if (context && context._registeredComponents) {
|
|
374
|
+
context._registeredComponents.add(moduleIdentifier);
|
|
375
|
+
}
|
|
376
|
+
};
|
|
377
|
+
// used by ssr in case component is cached and beforeCreate
|
|
378
|
+
// never gets called
|
|
379
|
+
options._ssrRegister = hook;
|
|
380
|
+
}
|
|
381
|
+
else if (style) {
|
|
382
|
+
hook = shadowMode
|
|
383
|
+
? function (context) {
|
|
384
|
+
style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
|
|
385
|
+
}
|
|
386
|
+
: function (context) {
|
|
387
|
+
style.call(this, createInjector(context));
|
|
388
|
+
};
|
|
389
|
+
}
|
|
390
|
+
if (hook) {
|
|
391
|
+
if (options.functional) {
|
|
392
|
+
// register for functional component in vue file
|
|
393
|
+
const originalRender = options.render;
|
|
394
|
+
options.render = function renderWithStyleInjection(h, context) {
|
|
395
|
+
hook.call(context);
|
|
396
|
+
return originalRender(h, context);
|
|
397
|
+
};
|
|
398
|
+
}
|
|
399
|
+
else {
|
|
400
|
+
// inject component registration as beforeCreate hook
|
|
401
|
+
const existing = options.beforeCreate;
|
|
402
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
return script;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
/* script */
|
|
409
|
+
const __vue_script__ = script;
|
|
410
|
+
|
|
411
|
+
/* template */
|
|
412
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"b-sidebar"},[(_vm.overlay && _vm.isOpen)?_c('div',{staticClass:"sidebar-background"}):_vm._e(),_c('transition',{attrs:{"name":_vm.transitionName},on:{"before-enter":_vm.beforeEnter,"after-enter":_vm.afterEnter}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isOpen),expression:"isOpen"}],ref:"sidebarContent",staticClass:"sidebar-content",class:_vm.rootClasses,on:{"mouseenter":_vm.onHover,"mouseleave":_vm.onHoverLeave}},[(_vm.fullwidth)?_c('button',{staticClass:"modal-close is-large sidebar-close",attrs:{"type":"button","aria-label":"Close"},on:{"click":_vm.clickedCloseButton}}):_vm._e(),_vm._t("default")],2)])],1)};
|
|
413
|
+
var __vue_staticRenderFns__ = [];
|
|
414
|
+
|
|
415
|
+
/* style */
|
|
416
|
+
const __vue_inject_styles__ = undefined;
|
|
417
|
+
/* scoped */
|
|
418
|
+
const __vue_scope_id__ = undefined;
|
|
419
|
+
/* module identifier */
|
|
420
|
+
const __vue_module_identifier__ = undefined;
|
|
421
|
+
/* functional template */
|
|
422
|
+
const __vue_is_functional_template__ = false;
|
|
423
|
+
/* style inject */
|
|
424
|
+
|
|
425
|
+
/* style inject SSR */
|
|
426
|
+
|
|
427
|
+
/* style inject shadow dom */
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
const __vue_component__ = /*#__PURE__*/normalizeComponent(
|
|
432
|
+
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
|
433
|
+
__vue_inject_styles__,
|
|
434
|
+
__vue_script__,
|
|
435
|
+
__vue_scope_id__,
|
|
436
|
+
__vue_is_functional_template__,
|
|
437
|
+
__vue_module_identifier__,
|
|
438
|
+
false,
|
|
439
|
+
undefined,
|
|
440
|
+
undefined,
|
|
441
|
+
undefined
|
|
442
|
+
);
|
|
443
|
+
|
|
444
|
+
var Sidebar = __vue_component__;
|
|
445
|
+
|
|
446
|
+
var use = function use(plugin) {
|
|
447
|
+
if (typeof window !== 'undefined' && window.Vue) {
|
|
448
|
+
window.Vue.use(plugin);
|
|
449
|
+
}
|
|
450
|
+
};
|
|
451
|
+
var registerComponent = function registerComponent(Vue, component) {
|
|
452
|
+
Vue.component(component.name, component);
|
|
453
|
+
};
|
|
454
|
+
|
|
455
|
+
var Plugin = {
|
|
456
|
+
install: function install(Vue) {
|
|
457
|
+
registerComponent(Vue, Sidebar);
|
|
458
|
+
}
|
|
459
|
+
};
|
|
460
|
+
use(Plugin);
|
|
461
|
+
|
|
462
|
+
exports.BSidebar = Sidebar;
|
|
463
|
+
exports["default"] = Plugin;
|
|
464
|
+
|
|
465
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
466
|
+
|
|
467
|
+
}));
|
|
@@ -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).Sidebar={})}(this,(function(e){"use strict";var t=null,i=null;var n={name:"BSidebar",model:{prop:"open",event:"update:open"},props:{open:Boolean,type:[String,Object],overlay:Boolean,position:{type:String,default:"fixed",validator:function(e){return["fixed","absolute","static"].indexOf(e)>=0}},fullheight:Boolean,fullwidth:Boolean,right:Boolean,mobile:{type:String},reduce:Boolean,expandOnHover:Boolean,expandOnHoverFixed:Boolean,delay:{type:Number,default:function(){return t}},canCancel:{type:[Array,Boolean],default:function(){return["escape","outside"]}},onCancel:{type:Function,default:function(){}},scroll:{type:String,default:function(){return i||"clip"},validator:function(e){return["clip","keep"].indexOf(e)>=0}}},data:function(){return{isOpen:this.open,isDelayOver:!1,transitionName:null,animating:!0,savedScrollTop:null,hasLeaved:!1}},computed:{rootClasses:function(){return[this.type,{"is-fixed":this.isFixed,"is-static":this.isStatic,"is-absolute":this.isAbsolute,"is-fullheight":this.fullheight,"is-fullwidth":this.fullwidth,"is-right":this.right,"is-mini":this.reduce&&!this.isDelayOver,"is-mini-expand":this.expandOnHover||this.isDelayOver,"is-mini-expand-fixed":this.expandOnHover&&this.expandOnHoverFixed||this.isDelayOver,"is-mini-delayed":null!==this.delay,"is-mini-mobile":"reduce"===this.mobile,"is-hidden-mobile":"hide"===this.mobile,"is-fullwidth-mobile":"fullwidth"===this.mobile}]},cancelOptions:function(){return"boolean"==typeof this.canCancel?this.canCancel?["escape","outside"]:[]:this.canCancel},isStatic:function(){return"static"===this.position},isFixed:function(){return"fixed"===this.position},isAbsolute:function(){return"absolute"===this.position}},watch:{open:{handler:function(e){this.isOpen=e,this.overlay&&this.handleScroll();var t=this.right?!e:e;this.transitionName=t?"slide-next":"slide-prev"},immediate:!0}},methods:{keyPress:function(e){var t=e.key;this.isFixed&&(!this.isOpen||"Escape"!==t&&"Esc"!==t||this.cancel("escape"))},cancel:function(e){this.cancelOptions.indexOf(e)<0||this.isStatic||(this.onCancel.apply(null,arguments),this.close())},close:function(){this.isOpen=!1,this.$emit("close"),this.$emit("update:open",!1)},clickedOutside:function(e){this.isFixed&&this.isOpen&&!this.animating&&(e.composedPath().includes(this.$refs.sidebarContent)||this.cancel("outside"))},beforeEnter:function(){this.animating=!0},afterEnter:function(){this.animating=!1},handleScroll:function(){"undefined"!=typeof window&&("clip"!==this.scroll?(this.savedScrollTop=this.savedScrollTop?this.savedScrollTop:document.documentElement.scrollTop,this.open?document.body.classList.add("is-noscroll"):document.body.classList.remove("is-noscroll"),this.open?document.body.style.top="-".concat(this.savedScrollTop,"px"):(document.documentElement.scrollTop=this.savedScrollTop,document.body.style.top=null,this.savedScrollTop=null)):this.open?document.documentElement.classList.add("is-clipped"):document.documentElement.classList.remove("is-clipped"))},onHover:function(){var e=this;this.delay?(this.hasLeaved=!1,this.timer=setTimeout((function(){e.hasLeaved||(e.isDelayOver=!0),e.timer=null}),this.delay)):this.isDelayOver=!1},onHoverLeave:function(){this.hasLeaved=!0,this.timer=null,this.isDelayOver=!1},clickedCloseButton:function(){this.isFixed&&this.isOpen&&this.fullwidth&&this.cancel("outside")}},created:function(){"undefined"!=typeof window&&(document.addEventListener("keyup",this.keyPress),document.addEventListener("click",this.clickedOutside))},mounted:function(){"undefined"!=typeof window&&this.isFixed&&document.body.appendChild(this.$el),this.overlay&&this.open&&this.handleScroll()},beforeDestroy:function(){if("undefined"!=typeof window&&(document.removeEventListener("keyup",this.keyPress),document.removeEventListener("click",this.clickedOutside),this.overlay)){document.documentElement.classList.remove("is-clipped");var e=this.savedScrollTop?this.savedScrollTop:document.documentElement.scrollTop;document.body.classList.remove("is-noscroll"),document.documentElement.scrollTop=e,document.body.style.top=null}var t;this.isFixed&&(void 0!==(t=this.$el).remove?t.remove():void 0!==t.parentNode&&null!==t.parentNode&&t.parentNode.removeChild(t)),clearTimeout(this.timer)}};function o(e,t,i,n,o,s,l,d,a,r){"boolean"!=typeof l&&(a=d,d=l,l=!1);const c="function"==typeof i?i.options:i;let u;if(e&&e.render&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),n&&(c._scopeId=n),s?(u=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,a(e)),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=u):t&&(u=l?function(e){t.call(this,r(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,d(e))}),u)if(c.functional){const e=c.render;c.render=function(t,i){return u.call(i),e(t,i)}}else{const e=c.beforeCreate;c.beforeCreate=e?[].concat(e,u):[u]}return i}var s,l=o({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"b-sidebar"},[e.overlay&&e.isOpen?i("div",{staticClass:"sidebar-background"}):e._e(),i("transition",{attrs:{name:e.transitionName},on:{"before-enter":e.beforeEnter,"after-enter":e.afterEnter}},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.isOpen,expression:"isOpen"}],ref:"sidebarContent",staticClass:"sidebar-content",class:e.rootClasses,on:{mouseenter:e.onHover,mouseleave:e.onHoverLeave}},[e.fullwidth?i("button",{staticClass:"modal-close is-large sidebar-close",attrs:{type:"button","aria-label":"Close"},on:{click:e.clickedCloseButton}}):e._e(),e._t("default")],2)])],1)},staticRenderFns:[]},undefined,n,undefined,false,undefined,!1,void 0,void 0,void 0),d={install:function(e){!function(e,t){e.component(t.name,t)}(e,l)}};s=d,"undefined"!=typeof window&&window.Vue&&window.Vue.use(s),e.BSidebar=l,e.default=d,Object.defineProperty(e,"__esModule",{value:!0})}));
|