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(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).Steps={})}(this,(function(t){"use strict";function e(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function n(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?e(Object(i),!0).forEach((function(e){o(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function i(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;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 a(t){return a="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},a(t)}function o(t,e,n){return(e=i(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function r(t){return function(t){if(Array.isArray(t))return t}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||s(t)||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 s(t,e){if(t){if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var u={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 c(t,e){return(t&e)===e}function d(t,e,n){return Math.max(e,Math.min(n,t))}var f=function(t){return"object"===a(t)&&!Array.isArray(t)},h=function t(e,i){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(a||!Object.assign){var r=Object.getOwnPropertyNames(i).map((function(n){return o({},n,function(t){return f(i[t])&&null!==e&&e.hasOwnProperty(t)&&f(e[t])}(n)?t(e[n],i[n],a):i[n])})).reduce((function(t,e){return n(n({},t),e)}),{});return n(n({},e),r)}return Object.assign(e,i)};function p(t){return t&&t._isVue}var m={sizes:{default:"mdi-24px","is-small":null,"is-medium":"mdi-36px","is-large":"mdi-48px"},iconPrefix:"mdi-"},v=function(){var t=u&&u.defaultIconComponent?"":"fa-";return{sizes:{default:null,"is-small":null,"is-medium":t+"lg","is-large":t+"2x"},iconPrefix:t,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"}}},b=function(){var t={mdi:m,fa:v(),fas:v(),far:v(),fad:v(),fab:v(),fal:v(),"fa-solid":v(),"fa-regular":v(),"fa-light":v(),"fa-thin":v(),"fa-duotone":v(),"fa-brands":v()};return u&&u.customIconPacks&&(t=h(t,u.customIconPacks,!0)),t};function g(t,e,n,i,a,o,r,s,l,u){"boolean"!=typeof r&&(l=s,s=r,r=!1);const c="function"==typeof n?n.options:n;let d;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,a&&(c.functional=!0)),i&&(c._scopeId=i),o?(d=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,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=d):e&&(d=r?function(t){e.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),d)if(c.functional){const t=c.render;c.render=function(e,n){return d.call(n),t(e,n)}}else{const t=c.beforeCreate;c.beforeCreate=t?[].concat(t,d):[d]}return n}var y,I=g({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"icon",class:[t.newType,t.size]},[t.useIconComponent?n(t.useIconComponent,{tag:"component",class:[t.customClass],attrs:{icon:[t.newPack,t.newIcon],size:t.newCustomSize}}):n("i",{class:[t.newPack,t.newIcon,t.newCustomSize,t.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 b()[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||u.defaultIconPack},newType:function(){if(this.type){var t=[];if("string"==typeof this.type)t=this.type.split("-");else for(var e in this.type)if(this.type[e]){t=e.split("-");break}if(!(t.length<=1)){var n=r(t).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||u.defaultIconComponent}},methods:{getEquivalentIconOf:function(t){return this.both&&this.iconConfig&&this.iconConfig.internalIcons&&this.iconConfig.internalIcons[t]?this.iconConfig.internalIcons[t]:t}}},undefined,false,undefined,!1,void 0,void 0,void 0),x={name:"BSlotComponent",props:{component:{type:Object,required:!0},name:{type:String,default:"default"},scoped:{type:Boolean},props:{type:Object},tag:{type:String,default:"div"},event:{type:String,default:"hook:updated"}},methods:{refresh:function(){this.$forceUpdate()}},created:function(){p(this.component)&&this.component.$on(this.event,this.refresh)},beforeDestroy:function(){p(this.component)&&this.component.$off(this.event,this.refresh)},render:function(t){if(p(this.component))return t(this.tag,{},this.scoped?this.component.$scopedSlots[this.name](this.props):this.component.$slots[this.name])}},S=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n={provide:function(){return o({},"b"+t,this)}};return c(e,1)&&(n.data=function(){return{childItems:[]}},n.methods={_registerItem:function(t){this.childItems.push(t)},_unregisterItem:function(t){this.childItems=this.childItems.filter((function(e){return e!==t}))}},c(e,3)&&(n.watch={childItems:function(t){if(t.length>0&&this.$scopedSlots.default){var e=t[0].$vnode.tag,n=0;!function i(a){var o,r=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=s(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,a=function(){};return{s:a,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:a}}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,r=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return r=t.done,t},e:function(t){l=!0,o=t},f:function(){try{r||null==n.return||n.return()}finally{if(l)throw o}}}}(a);try{var l=function(){var a=o.value;if(a.tag===e){var r=t.find((function(t){return t.$vnode===a}));r&&(r.index=n++)}else if(a.tag){var s=a.componentInstance?a.componentInstance.$scopedSlots.default?a.componentInstance.$scopedSlots.default():a.componentInstance.$children:a.children;Array.isArray(s)&&s.length>0&&i(s.map((function(t){return t.$vnode})))}};for(r.s();!(o=r.n()).done;)l()}catch(t){r.e(t)}finally{r.f()}return!1}(this.$scopedSlots.default())}}},n.computed={sortedItems:function(){return this.childItems.slice().sort((function(t,e){return t.index-e.index}))}})),n},C={name:"BSteps",components:o({},I.name,I),mixins:[(y="step",{mixins:[S(y,3)],components:o(o({},I.name,I),x.name,x),props:{value:{type:[String,Number],default:void 0},size:String,animated:{type:Boolean,default:!0},animation:String,animateInitially:Boolean,vertical:{type:Boolean,default:!1},position:String,destroyOnHide:{type:Boolean,default:!1}},data:function(){return{activeId:this.value,defaultSlots:[],contentHeight:0,isTransitioning:!1}},mounted:function(){if("number"==typeof this.value){var t=d(this.value,0,this.items.length-1);this.activeId=this.items[t].value}else this.activeId=this.value},computed:{activeItem:function(){var t=this;return void 0===this.activeId?this.items[0]:null===this.activeId?null:this.childItems.find((function(e){return e.value===t.activeId}))},items:function(){return this.sortedItems}},watch:{value:function(t){"number"==typeof t?(t=d(t,0,this.items.length-1),this.activeId=this.items[t].value):this.activeId=t},activeId:function(t,e){var n=null!=e?this.childItems.find((function(t){return t.value===e})):null;n&&this.activeItem&&(n.deactivate(this.activeItem.index),this.activeItem.activate(n.index)),(t=this.activeItem?"number"==typeof this.value?this.items.indexOf(this.activeItem):this.activeItem.value:void 0)!==this.value&&this.$emit("input",t)}},methods:{childClick:function(t){this.activeId=t.value},getNextItemIdx:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=null,i=t+1;i<this.items.length;i++){var a=this.items[i];if(a.visible&&(!e||e&&!a.disabled)){n=i;break}}return n},getPrevItemIdx:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=null,i=t-1;i>=0;i--){var a=this.items[i];if(a.visible&&(!e||e&&!a.disabled)){n=i;break}}return n}}})],props:{type:[String,Object],iconPack:String,iconPrev:{type:String,default:function(){return u.defaultIconPrev}},iconNext:{type:String,default:function(){return u.defaultIconNext}},hasNavigation:{type:Boolean,default:!0},labelPosition:{type:String,validator:function(t){return["bottom","right","left"].indexOf(t)>-1},default:"bottom"},rounded:{type:Boolean,default:!0},mobileMode:{type:String,validator:function(t){return["minimalist","compact"].indexOf(t)>-1},default:"minimalist"},ariaNextLabel:String,ariaPreviousLabel:String},computed:{activeItem:function(){var t=this;return this.childItems.filter((function(e){return e.value===t.activeId}))[0]||this.items[0]},wrapperClasses:function(){return[this.size,o({"is-vertical":this.vertical},this.position,this.position&&this.vertical)]},mainClasses:function(){return[this.type,o({"has-label-right":"right"===this.labelPosition,"has-label-left":"left"===this.labelPosition,"is-animated":this.animated,"is-rounded":this.rounded},"mobile-".concat(this.mobileMode),null!==this.mobileMode)]},hasPrev:function(){return null!==this.prevItemIdx},nextItemIdx:function(){var t=this.activeItem?this.items.indexOf(this.activeItem):0;return this.getNextItemIdx(t)},nextItem:function(){var t=null;return null!==this.nextItemIdx&&(t=this.items[this.nextItemIdx]),t},prevItemIdx:function(){if(!this.activeItem)return null;var t=this.items.indexOf(this.activeItem);return this.getPrevItemIdx(t)},prevItem:function(){if(!this.activeItem)return null;var t=null;return null!==this.prevItemIdx&&(t=this.items[this.prevItemIdx]),t},hasNext:function(){return null!==this.nextItemIdx},navigationProps:function(){return{previous:{disabled:!this.hasPrev,action:this.prev},next:{disabled:!this.hasNext,action:this.next}}}},methods:{isItemClickable:function(t){return void 0===t.clickable?t.index<this.activeItem.index:t.clickable},prev:function(){this.hasPrev&&(this.activeId=this.prevItem.value)},next:function(){this.hasNext&&(this.activeId=this.nextItem.value)}}};var k,P=g({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"b-steps",class:t.wrapperClasses},[n("nav",{staticClass:"steps",class:t.mainClasses},[n("ul",{staticClass:"step-items"},t._l(t.items,(function(e){return n("li",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"childItem.visible"}],key:e.value,staticClass:"step-item",class:[e.type||t.type,e.headerClass,{"is-active":e.isActive,"is-previous":t.activeItem.index>e.index}]},[n("a",{staticClass:"step-link",class:{"is-clickable":t.isItemClickable(e)},on:{click:function(n){t.isItemClickable(e)&&t.childClick(e)}}},[n("div",{staticClass:"step-marker"},[e.icon?n("b-icon",{attrs:{icon:e.icon,pack:e.iconPack,size:t.size}}):e.step?n("span",[t._v(t._s(e.step))]):t._e()],1),n("div",{staticClass:"step-details"},[n("span",{staticClass:"step-title"},[t._v(t._s(e.label))])])])])})),0)]),n("section",{staticClass:"step-content",class:{"is-transitioning":t.isTransitioning}},[t._t("default")],2),t._t("navigation",[t.hasNavigation?n("nav",{staticClass:"step-navigation"},[n("a",{staticClass:"pagination-previous",attrs:{role:"button",disabled:t.navigationProps.previous.disabled,"aria-label":t.ariaPreviousLabel},on:{click:function(e){return e.preventDefault(),t.navigationProps.previous.action(e)}}},[n("b-icon",{attrs:{icon:t.iconPrev,pack:t.iconPack,both:"","aria-hidden":"true"}})],1),n("a",{staticClass:"pagination-next",attrs:{role:"button",disabled:t.navigationProps.next.disabled,"aria-label":t.ariaNextLabel},on:{click:function(e){return e.preventDefault(),t.navigationProps.next.action(e)}}},[n("b-icon",{attrs:{icon:t.iconNext,pack:t.iconPack,both:"","aria-hidden":"true"}})],1)]):t._e()],{previous:t.navigationProps.previous,next:t.navigationProps.next})],2)},staticRenderFns:[]},undefined,C,undefined,false,undefined,!1,void 0,void 0,void 0),w=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n={inject:{parent:{from:"b"+t,default:!1}},created:function(){if(this.parent)this.parent._registerItem&&this.parent._registerItem(this);else if(!c(e,2))throw this.$destroy(),new Error("You should wrap "+this.$options.name+" in a "+t)},beforeDestroy:function(){this.parent&&this.parent._unregisterItem&&this.parent._unregisterItem(this)}};return c(e,1)&&(n.data=function(){return{index:null}}),n};var O,_=g({},undefined,{name:"BStepItem",mixins:[(k="step",{mixins:[w(k,1)],props:{label:String,icon:String,iconPack:String,visible:{type:Boolean,default:!0},value:{type:String,default:function(){return this._uid.toString()}},headerClass:{type:[String,Array,Object],default:null}},data:function(){return{transitionName:null,elementClass:"item",elementRole:null}},computed:{isActive:function(){return this.parent.activeItem===this}},methods:{activate:function(t){this.transitionName=this.index<t?this.parent.vertical?"slide-down":"slide-next":this.parent.vertical?"slide-up":"slide-prev"},deactivate:function(t){this.transitionName=t<this.index?this.parent.vertical?"slide-down":"slide-next":this.parent.vertical?"slide-up":"slide-prev"}},render:function(t){var e=this;if(!this.parent.destroyOnHide||this.isActive&&this.visible){var n=t("div",{directives:[{name:"show",value:this.isActive&&this.visible}],staticClass:this.elementClass,attrs:{role:this.elementRole,id:"".concat(this.value,"-content"),"aria-labelledby":this.elementRole?"".concat(this.value,"-label"):null,tabindex:this.isActive?0:-1}},this.$slots.default);return this.parent.animated?t("transition",{props:{name:this.parent.animation||this.transitionName,appear:!0===this.parent.animateInitially||void 0},on:{"before-enter":function(){e.parent.isTransitioning=!0},"after-enter":function(){e.parent.isTransitioning=!1}}},[n]):n}}})],props:{step:[String,Number],type:[String,Object],clickable:{type:Boolean,default:void 0}},data:function(){return{elementClass:"step-item"}}},undefined,undefined,undefined,!1,void 0,void 0,void 0),N=function(t,e){t.component(e.name,e)},T={install:function(t){N(t,P),N(t,_)}};O=T,"undefined"!=typeof window&&window.Vue&&window.Vue.use(O),t.BStepItem=_,t.BSteps=P,t.default=T,Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
@@ -0,0 +1,297 @@
|
|
|
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.Switch = {}));
|
|
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
|
+
//
|
|
79
|
+
var script = {
|
|
80
|
+
name: 'BSwitch',
|
|
81
|
+
props: {
|
|
82
|
+
value: [String, Number, Boolean, Function, Object, Array, Date],
|
|
83
|
+
nativeValue: [String, Number, Boolean, Function, Object, Array, Date],
|
|
84
|
+
disabled: Boolean,
|
|
85
|
+
type: String,
|
|
86
|
+
passiveType: String,
|
|
87
|
+
name: String,
|
|
88
|
+
required: Boolean,
|
|
89
|
+
size: String,
|
|
90
|
+
ariaLabelledby: String,
|
|
91
|
+
trueValue: {
|
|
92
|
+
type: [String, Number, Boolean, Function, Object, Array, Date],
|
|
93
|
+
default: true
|
|
94
|
+
},
|
|
95
|
+
falseValue: {
|
|
96
|
+
type: [String, Number, Boolean, Function, Object, Array, Date],
|
|
97
|
+
default: false
|
|
98
|
+
},
|
|
99
|
+
rounded: {
|
|
100
|
+
type: Boolean,
|
|
101
|
+
default: function _default() {
|
|
102
|
+
return config.defaultSwitchRounded;
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
outlined: {
|
|
106
|
+
type: Boolean,
|
|
107
|
+
default: false
|
|
108
|
+
},
|
|
109
|
+
leftLabel: {
|
|
110
|
+
type: Boolean,
|
|
111
|
+
default: false
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
data: function data() {
|
|
115
|
+
return {
|
|
116
|
+
newValue: this.value,
|
|
117
|
+
isMouseDown: false
|
|
118
|
+
};
|
|
119
|
+
},
|
|
120
|
+
computed: {
|
|
121
|
+
computedValue: {
|
|
122
|
+
get: function get() {
|
|
123
|
+
return this.newValue;
|
|
124
|
+
},
|
|
125
|
+
set: function set(value) {
|
|
126
|
+
this.newValue = value;
|
|
127
|
+
this.$emit('input', value);
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
newClass: function newClass() {
|
|
131
|
+
return [this.size, {
|
|
132
|
+
'is-disabled': this.disabled,
|
|
133
|
+
'is-rounded': this.rounded,
|
|
134
|
+
'is-outlined': this.outlined,
|
|
135
|
+
'has-left-label': this.leftLabel
|
|
136
|
+
}];
|
|
137
|
+
},
|
|
138
|
+
checkClasses: function checkClasses() {
|
|
139
|
+
return [{
|
|
140
|
+
'is-elastic': this.isMouseDown && !this.disabled
|
|
141
|
+
}, this.passiveType && "".concat(this.passiveType, "-passive"), this.type];
|
|
142
|
+
},
|
|
143
|
+
showControlLabel: function showControlLabel() {
|
|
144
|
+
return !!this.$slots.default;
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
watch: {
|
|
148
|
+
/**
|
|
149
|
+
* When v-model change, set internal value.
|
|
150
|
+
*/
|
|
151
|
+
value: function value(_value) {
|
|
152
|
+
this.newValue = _value;
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
methods: {
|
|
156
|
+
focus: function focus() {
|
|
157
|
+
// MacOS FireFox and Safari do not focus when clicked
|
|
158
|
+
this.$refs.input.focus();
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
|
|
164
|
+
if (typeof shadowMode !== 'boolean') {
|
|
165
|
+
createInjectorSSR = createInjector;
|
|
166
|
+
createInjector = shadowMode;
|
|
167
|
+
shadowMode = false;
|
|
168
|
+
}
|
|
169
|
+
// Vue.extend constructor export interop.
|
|
170
|
+
const options = typeof script === 'function' ? script.options : script;
|
|
171
|
+
// render functions
|
|
172
|
+
if (template && template.render) {
|
|
173
|
+
options.render = template.render;
|
|
174
|
+
options.staticRenderFns = template.staticRenderFns;
|
|
175
|
+
options._compiled = true;
|
|
176
|
+
// functional template
|
|
177
|
+
if (isFunctionalTemplate) {
|
|
178
|
+
options.functional = true;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
// scopedId
|
|
182
|
+
if (scopeId) {
|
|
183
|
+
options._scopeId = scopeId;
|
|
184
|
+
}
|
|
185
|
+
let hook;
|
|
186
|
+
if (moduleIdentifier) {
|
|
187
|
+
// server build
|
|
188
|
+
hook = function (context) {
|
|
189
|
+
// 2.3 injection
|
|
190
|
+
context =
|
|
191
|
+
context || // cached call
|
|
192
|
+
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
193
|
+
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional
|
|
194
|
+
// 2.2 with runInNewContext: true
|
|
195
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
196
|
+
context = __VUE_SSR_CONTEXT__;
|
|
197
|
+
}
|
|
198
|
+
// inject component styles
|
|
199
|
+
if (style) {
|
|
200
|
+
style.call(this, createInjectorSSR(context));
|
|
201
|
+
}
|
|
202
|
+
// register component module identifier for async chunk inference
|
|
203
|
+
if (context && context._registeredComponents) {
|
|
204
|
+
context._registeredComponents.add(moduleIdentifier);
|
|
205
|
+
}
|
|
206
|
+
};
|
|
207
|
+
// used by ssr in case component is cached and beforeCreate
|
|
208
|
+
// never gets called
|
|
209
|
+
options._ssrRegister = hook;
|
|
210
|
+
}
|
|
211
|
+
else if (style) {
|
|
212
|
+
hook = shadowMode
|
|
213
|
+
? function (context) {
|
|
214
|
+
style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
|
|
215
|
+
}
|
|
216
|
+
: function (context) {
|
|
217
|
+
style.call(this, createInjector(context));
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
if (hook) {
|
|
221
|
+
if (options.functional) {
|
|
222
|
+
// register for functional component in vue file
|
|
223
|
+
const originalRender = options.render;
|
|
224
|
+
options.render = function renderWithStyleInjection(h, context) {
|
|
225
|
+
hook.call(context);
|
|
226
|
+
return originalRender(h, context);
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
else {
|
|
230
|
+
// inject component registration as beforeCreate hook
|
|
231
|
+
const existing = options.beforeCreate;
|
|
232
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
return script;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
/* script */
|
|
239
|
+
const __vue_script__ = script;
|
|
240
|
+
|
|
241
|
+
/* template */
|
|
242
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('label',{ref:"label",staticClass:"switch",class:_vm.newClass,attrs:{"disabled":_vm.disabled},on:{"click":_vm.focus,"keydown":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }$event.preventDefault();return _vm.$refs.label.click()},"mousedown":function($event){_vm.isMouseDown = true;},"mouseup":function($event){_vm.isMouseDown = false;},"mouseout":function($event){_vm.isMouseDown = false;},"blur":function($event){_vm.isMouseDown = false;}}},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.computedValue),expression:"computedValue"}],ref:"input",attrs:{"type":"checkbox","disabled":_vm.disabled,"name":_vm.name,"required":_vm.required,"true-value":_vm.trueValue,"false-value":_vm.falseValue,"aria-labelledby":_vm.ariaLabelledby},domProps:{"value":_vm.nativeValue,"checked":Array.isArray(_vm.computedValue)?_vm._i(_vm.computedValue,_vm.nativeValue)>-1:_vm._q(_vm.computedValue,_vm.trueValue)},on:{"click":function($event){$event.stopPropagation();},"change":function($event){var $$a=_vm.computedValue,$$el=$event.target,$$c=$$el.checked?(_vm.trueValue):(_vm.falseValue);if(Array.isArray($$a)){var $$v=_vm.nativeValue,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.computedValue=$$a.concat([$$v]));}else {$$i>-1&&(_vm.computedValue=$$a.slice(0,$$i).concat($$a.slice($$i+1)));}}else {_vm.computedValue=$$c;}}}}),_c('span',{staticClass:"check",class:_vm.checkClasses}),(_vm.showControlLabel)?_c('span',{staticClass:"control-label",attrs:{"id":_vm.ariaLabelledby}},[_vm._t("default")],2):_vm._e()])};
|
|
243
|
+
var __vue_staticRenderFns__ = [];
|
|
244
|
+
|
|
245
|
+
/* style */
|
|
246
|
+
const __vue_inject_styles__ = undefined;
|
|
247
|
+
/* scoped */
|
|
248
|
+
const __vue_scope_id__ = undefined;
|
|
249
|
+
/* module identifier */
|
|
250
|
+
const __vue_module_identifier__ = undefined;
|
|
251
|
+
/* functional template */
|
|
252
|
+
const __vue_is_functional_template__ = false;
|
|
253
|
+
/* style inject */
|
|
254
|
+
|
|
255
|
+
/* style inject SSR */
|
|
256
|
+
|
|
257
|
+
/* style inject shadow dom */
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
const __vue_component__ = /*#__PURE__*/normalizeComponent(
|
|
262
|
+
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
|
263
|
+
__vue_inject_styles__,
|
|
264
|
+
__vue_script__,
|
|
265
|
+
__vue_scope_id__,
|
|
266
|
+
__vue_is_functional_template__,
|
|
267
|
+
__vue_module_identifier__,
|
|
268
|
+
false,
|
|
269
|
+
undefined,
|
|
270
|
+
undefined,
|
|
271
|
+
undefined
|
|
272
|
+
);
|
|
273
|
+
|
|
274
|
+
var Switch = __vue_component__;
|
|
275
|
+
|
|
276
|
+
var use = function use(plugin) {
|
|
277
|
+
if (typeof window !== 'undefined' && window.Vue) {
|
|
278
|
+
window.Vue.use(plugin);
|
|
279
|
+
}
|
|
280
|
+
};
|
|
281
|
+
var registerComponent = function registerComponent(Vue, component) {
|
|
282
|
+
Vue.component(component.name, component);
|
|
283
|
+
};
|
|
284
|
+
|
|
285
|
+
var Plugin = {
|
|
286
|
+
install: function install(Vue) {
|
|
287
|
+
registerComponent(Vue, Switch);
|
|
288
|
+
}
|
|
289
|
+
};
|
|
290
|
+
use(Plugin);
|
|
291
|
+
|
|
292
|
+
exports.BSwitch = Switch;
|
|
293
|
+
exports["default"] = Plugin;
|
|
294
|
+
|
|
295
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
296
|
+
|
|
297
|
+
}));
|
|
@@ -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).Switch={})}(this,(function(e){"use strict";var t=!0;function n(e,t,n,a,i,o,s,u,l,r){"boolean"!=typeof s&&(l=u,u=s,s=!1);const c="function"==typeof n?n.options:n;let d;if(e&&e.render&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0,i&&(c.functional=!0)),a&&(c._scopeId=a),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=s?function(e){t.call(this,r(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,u(e))}),d)if(c.functional){const e=c.render;c.render=function(t,n){return d.call(n),e(t,n)}}else{const e=c.beforeCreate;c.beforeCreate=e?[].concat(e,d):[d]}return n}var a,i=n({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{ref:"label",staticClass:"switch",class:e.newClass,attrs:{disabled:e.disabled},on:{click:e.focus,keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.$refs.label.click())},mousedown:function(t){e.isMouseDown=!0},mouseup:function(t){e.isMouseDown=!1},mouseout:function(t){e.isMouseDown=!1},blur:function(t){e.isMouseDown=!1}}},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.computedValue,expression:"computedValue"}],ref:"input",attrs:{type:"checkbox",disabled:e.disabled,name:e.name,required:e.required,"true-value":e.trueValue,"false-value":e.falseValue,"aria-labelledby":e.ariaLabelledby},domProps:{value:e.nativeValue,checked:Array.isArray(e.computedValue)?e._i(e.computedValue,e.nativeValue)>-1:e._q(e.computedValue,e.trueValue)},on:{click:function(e){e.stopPropagation()},change:function(t){var n=e.computedValue,a=t.target,i=a.checked?e.trueValue:e.falseValue;if(Array.isArray(n)){var o=e.nativeValue,s=e._i(n,o);a.checked?s<0&&(e.computedValue=n.concat([o])):s>-1&&(e.computedValue=n.slice(0,s).concat(n.slice(s+1)))}else e.computedValue=i}}}),n("span",{staticClass:"check",class:e.checkClasses}),e.showControlLabel?n("span",{staticClass:"control-label",attrs:{id:e.ariaLabelledby}},[e._t("default")],2):e._e()])},staticRenderFns:[]},undefined,{name:"BSwitch",props:{value:[String,Number,Boolean,Function,Object,Array,Date],nativeValue:[String,Number,Boolean,Function,Object,Array,Date],disabled:Boolean,type:String,passiveType:String,name:String,required:Boolean,size:String,ariaLabelledby:String,trueValue:{type:[String,Number,Boolean,Function,Object,Array,Date],default:!0},falseValue:{type:[String,Number,Boolean,Function,Object,Array,Date],default:!1},rounded:{type:Boolean,default:function(){return t}},outlined:{type:Boolean,default:!1},leftLabel:{type:Boolean,default:!1}},data:function(){return{newValue:this.value,isMouseDown:!1}},computed:{computedValue:{get:function(){return this.newValue},set:function(e){this.newValue=e,this.$emit("input",e)}},newClass:function(){return[this.size,{"is-disabled":this.disabled,"is-rounded":this.rounded,"is-outlined":this.outlined,"has-left-label":this.leftLabel}]},checkClasses:function(){return[{"is-elastic":this.isMouseDown&&!this.disabled},this.passiveType&&"".concat(this.passiveType,"-passive"),this.type]},showControlLabel:function(){return!!this.$slots.default}},watch:{value:function(e){this.newValue=e}},methods:{focus:function(){this.$refs.input.focus()}}},undefined,false,undefined,!1,void 0,void 0,void 0),o={install:function(e){!function(e,t){e.component(t.name,t)}(e,i)}};a=o,"undefined"!=typeof window&&window.Vue&&window.Vue.use(a),e.BSwitch=i,e.default=o,Object.defineProperty(e,"__esModule",{value:!0})}));
|