buefy 0.7.9 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +82 -0
- package/dist/buefy.css +13759 -8263
- package/dist/buefy.js +9073 -14866
- package/dist/buefy.min.css +1 -5
- package/dist/buefy.min.js +2 -2
- package/dist/cjs/autocomplete.js +22 -0
- package/dist/cjs/button.js +106 -0
- package/dist/cjs/checkbox.js +135 -0
- package/dist/cjs/chunk-07fe6fc0.js +247 -0
- package/dist/cjs/chunk-0af453a7.js +105 -0
- package/dist/cjs/chunk-0e89e51b.js +394 -0
- package/dist/cjs/chunk-13e039f5.js +104 -0
- package/dist/cjs/chunk-143d9e6d.js +404 -0
- package/dist/cjs/chunk-19ebd649.js +114 -0
- package/dist/cjs/chunk-1b1231ce.js +94 -0
- package/dist/cjs/chunk-1e6abfcf.js +94 -0
- package/dist/cjs/chunk-28d164b1.js +172 -0
- package/dist/cjs/chunk-3396605d.js +394 -0
- package/dist/cjs/chunk-364a37a0.js +404 -0
- package/dist/cjs/chunk-3b066933.js +103 -0
- package/dist/cjs/chunk-3dffe6e7.js +54 -0
- package/dist/cjs/chunk-4a03b064.js +199 -0
- package/dist/cjs/chunk-50b06939.js +153 -0
- package/dist/cjs/chunk-52623128.js +105 -0
- package/dist/cjs/chunk-53d4f332.js +94 -0
- package/dist/cjs/chunk-544a95da.js +404 -0
- package/dist/cjs/chunk-545f01b1.js +49 -0
- package/dist/cjs/chunk-59b91990.js +64 -0
- package/dist/cjs/chunk-5b2a3329.js +394 -0
- package/dist/cjs/chunk-60061aa8.js +172 -0
- package/dist/cjs/chunk-67658e54.js +404 -0
- package/dist/cjs/chunk-6963026a.js +86 -0
- package/dist/cjs/chunk-6cece6b7.js +140 -0
- package/dist/cjs/chunk-6d6465c1.js +140 -0
- package/dist/cjs/chunk-6e9c0aca.js +94 -0
- package/dist/cjs/chunk-77f69fca.js +106 -0
- package/dist/cjs/chunk-7a25d736.js +114 -0
- package/dist/cjs/chunk-876befa8.js +247 -0
- package/dist/cjs/chunk-8985ffff.js +105 -0
- package/dist/cjs/chunk-8a05c8c9.js +207 -0
- package/dist/cjs/chunk-90407463.js +258 -0
- package/dist/cjs/chunk-956525c9.js +106 -0
- package/dist/cjs/chunk-96ce35a2.js +114 -0
- package/dist/cjs/chunk-9da1d120.js +86 -0
- package/dist/cjs/chunk-9f6a8079.js +54 -0
- package/dist/cjs/chunk-a60dc21d.js +281 -0
- package/dist/cjs/chunk-b628277d.js +199 -0
- package/dist/cjs/chunk-c146745e.js +153 -0
- package/dist/cjs/chunk-c2aec7a9.js +547 -0
- package/dist/cjs/chunk-c9641331.js +86 -0
- package/dist/cjs/chunk-d492406b.js +172 -0
- package/dist/cjs/chunk-e0aa62a0.js +404 -0
- package/dist/cjs/chunk-e45e0329.js +48 -0
- package/dist/cjs/chunk-e5de6583.js +207 -0
- package/dist/cjs/chunk-e85cceb6.js +258 -0
- package/dist/cjs/chunk-ed5addd6.js +547 -0
- package/dist/cjs/chunk-ef4753d5.js +283 -0
- package/dist/cjs/chunk-f0c597f9.js +199 -0
- package/dist/cjs/chunk-f1df1c63.js +9 -0
- package/dist/cjs/chunk-f1ee2f5c.js +207 -0
- package/dist/cjs/chunk-fbd4d545.js +247 -0
- package/dist/cjs/clockpicker.js +447 -0
- package/dist/cjs/collapse.js +102 -0
- package/dist/cjs/datepicker.js +1281 -0
- package/dist/cjs/dialog.js +237 -0
- package/dist/cjs/dropdown.js +19 -0
- package/dist/cjs/field.js +18 -0
- package/dist/cjs/icon.js +17 -0
- package/dist/cjs/index.js +164 -0
- package/dist/cjs/input.js +20 -0
- package/dist/cjs/loading.js +166 -0
- package/dist/cjs/menu.js +231 -0
- package/dist/cjs/message.js +65 -0
- package/dist/cjs/modal.js +48 -0
- package/dist/cjs/navbar.js +258 -0
- package/dist/cjs/notification.js +142 -0
- package/dist/cjs/numberinput.js +191 -0
- package/dist/cjs/pagination.js +19 -0
- package/dist/cjs/progress.js +151 -0
- package/dist/cjs/radio.js +224 -0
- package/dist/cjs/select.js +20 -0
- package/dist/cjs/slider.js +511 -0
- package/dist/cjs/snackbar.js +114 -0
- package/dist/cjs/steps.js +352 -0
- package/dist/cjs/switch.js +144 -0
- package/dist/cjs/table.js +877 -0
- package/dist/cjs/tabs.js +258 -0
- package/dist/cjs/tag.js +63 -0
- package/dist/cjs/taginput.js +297 -0
- package/dist/cjs/timepicker.js +75 -0
- package/dist/cjs/toast.js +89 -0
- package/dist/cjs/tooltip.js +17 -0
- package/dist/cjs/upload.js +210 -0
- package/dist/components/autocomplete/index.js +1084 -2
- package/dist/components/autocomplete/index.min.js +2 -0
- package/dist/components/button/index.js +425 -2
- package/dist/components/button/index.min.js +2 -0
- package/dist/components/checkbox/index.js +342 -2
- package/dist/components/checkbox/index.min.js +2 -0
- package/dist/components/clockpicker/index.js +2340 -2
- package/dist/components/clockpicker/index.min.js +2 -0
- package/dist/components/collapse/index.js +201 -2
- package/dist/components/collapse/index.min.js +2 -0
- package/dist/components/datepicker/index.js +2720 -2
- package/dist/components/datepicker/index.min.js +2 -0
- package/dist/components/dialog/index.js +768 -2
- package/dist/components/dialog/index.min.js +2 -0
- package/dist/components/dropdown/index.js +555 -2
- package/dist/components/dropdown/index.min.js +2 -0
- package/dist/components/field/index.js +447 -2
- package/dist/components/field/index.min.js +2 -0
- package/dist/components/icon/index.js +322 -2
- package/dist/components/icon/index.min.js +2 -0
- package/dist/components/input/index.js +675 -2
- package/dist/components/input/index.min.js +2 -0
- package/dist/components/loading/index.js +282 -2
- package/dist/components/loading/index.min.js +2 -0
- package/dist/components/menu/index.js +550 -2
- package/dist/components/menu/index.min.js +2 -0
- package/dist/components/message/index.js +482 -2
- package/dist/components/message/index.min.js +2 -0
- package/dist/components/modal/index.js +400 -2
- package/dist/components/modal/index.min.js +2 -0
- package/dist/components/navbar/index.js +371 -0
- package/dist/components/navbar/index.min.js +2 -0
- package/dist/components/notification/index.js +705 -2
- package/dist/components/notification/index.min.js +2 -0
- package/dist/components/numberinput/index.js +846 -2
- package/dist/components/numberinput/index.min.js +2 -0
- package/dist/components/pagination/index.js +577 -2
- package/dist/components/pagination/index.min.js +2 -0
- package/dist/components/progress/index.js +250 -0
- package/dist/components/progress/index.min.js +2 -0
- package/dist/components/radio/index.js +323 -2
- package/dist/components/radio/index.min.js +2 -0
- package/dist/components/select/index.js +571 -2
- package/dist/components/select/index.min.js +2 -0
- package/dist/components/slider/index.js +764 -0
- package/dist/components/slider/index.min.js +2 -0
- package/dist/components/snackbar/index.js +397 -2
- package/dist/components/snackbar/index.min.js +2 -0
- package/dist/components/steps/index.js +721 -2
- package/dist/components/steps/index.min.js +2 -0
- package/dist/components/switch/index.js +243 -2
- package/dist/components/switch/index.min.js +2 -0
- package/dist/components/table/index.js +1870 -2
- package/dist/components/table/index.min.js +2 -0
- package/dist/components/tabs/index.js +627 -2
- package/dist/components/tabs/index.min.js +2 -0
- package/dist/components/tag/index.js +262 -2
- package/dist/components/tag/index.min.js +2 -0
- package/dist/components/taginput/index.js +1459 -2
- package/dist/components/taginput/index.min.js +2 -0
- package/dist/components/timepicker/index.js +2053 -2
- package/dist/components/timepicker/index.min.js +2 -0
- package/dist/components/toast/index.js +372 -2
- package/dist/components/toast/index.min.js +2 -0
- package/dist/components/tooltip/index.js +236 -2
- package/dist/components/tooltip/index.min.js +2 -0
- package/dist/components/upload/index.js +501 -2
- package/dist/components/upload/index.min.js +2 -0
- package/dist/esm/autocomplete.js +18 -0
- package/dist/esm/button.js +102 -0
- package/dist/esm/checkbox.js +131 -0
- package/dist/esm/chunk-00e3e67f.js +401 -0
- package/dist/esm/chunk-051f8b06.js +105 -0
- package/dist/esm/chunk-0566c90d.js +152 -0
- package/dist/esm/chunk-07e19446.js +545 -0
- package/dist/esm/chunk-085a700d.js +7 -0
- package/dist/esm/chunk-0ad6938a.js +53 -0
- package/dist/esm/chunk-0e3f4fb5.js +52 -0
- package/dist/esm/chunk-10c85529.js +151 -0
- package/dist/esm/chunk-121b1efa.js +197 -0
- package/dist/esm/chunk-19dad95e.js +256 -0
- package/dist/esm/chunk-231b6066.js +113 -0
- package/dist/esm/chunk-24d1a01f.js +279 -0
- package/dist/esm/chunk-297bff6b.js +393 -0
- package/dist/esm/chunk-2b2ae5c6.js +245 -0
- package/dist/esm/chunk-2cb6f867.js +46 -0
- package/dist/esm/chunk-33717194.js +392 -0
- package/dist/esm/chunk-3b811b77.js +139 -0
- package/dist/esm/chunk-3e47308f.js +104 -0
- package/dist/esm/chunk-411d6eea.js +84 -0
- package/dist/esm/chunk-4535dec5.js +92 -0
- package/dist/esm/chunk-47a5f3a1.js +103 -0
- package/dist/esm/chunk-4a5384da.js +205 -0
- package/dist/esm/chunk-4b663574.js +112 -0
- package/dist/esm/chunk-4d393f09.js +170 -0
- package/dist/esm/chunk-4d695899.js +257 -0
- package/dist/esm/chunk-4f508891.js +171 -0
- package/dist/esm/chunk-531b8274.js +281 -0
- package/dist/esm/chunk-591ee4a2.js +151 -0
- package/dist/esm/chunk-5d3bf82e.js +170 -0
- package/dist/esm/chunk-5e0b0665.js +104 -0
- package/dist/esm/chunk-648b9aa4.js +45 -0
- package/dist/esm/chunk-666940cf.js +546 -0
- package/dist/esm/chunk-67c97e13.js +246 -0
- package/dist/esm/chunk-6844653e.js +401 -0
- package/dist/esm/chunk-699b7cb4.js +245 -0
- package/dist/esm/chunk-6f881e7d.js +51 -0
- package/dist/esm/chunk-7123d158.js +256 -0
- package/dist/esm/chunk-7cf87590.js +60 -0
- package/dist/esm/chunk-823177ac.js +545 -0
- package/dist/esm/chunk-8838757a.js +401 -0
- package/dist/esm/chunk-8ca878c0.js +198 -0
- package/dist/esm/chunk-8fc2e874.js +85 -0
- package/dist/esm/chunk-912ed715.js +92 -0
- package/dist/esm/chunk-92acc21f.js +392 -0
- package/dist/esm/chunk-98e86f40.js +197 -0
- package/dist/esm/chunk-99a1f9df.js +92 -0
- package/dist/esm/chunk-9a776697.js +112 -0
- package/dist/esm/chunk-9e3207cc.js +46 -0
- package/dist/esm/chunk-9ec14e09.js +112 -0
- package/dist/esm/chunk-a5ea70d0.js +205 -0
- package/dist/esm/chunk-ac3f4847.js +138 -0
- package/dist/esm/chunk-b5376f3e.js +92 -0
- package/dist/esm/chunk-b56eb2c8.js +197 -0
- package/dist/esm/chunk-b796d1b2.js +392 -0
- package/dist/esm/chunk-b822a5db.js +205 -0
- package/dist/esm/chunk-b9bdb0e4.js +6 -0
- package/dist/esm/chunk-bfe15983.js +401 -0
- package/dist/esm/chunk-c9039f68.js +104 -0
- package/dist/esm/chunk-cc718c15.js +245 -0
- package/dist/esm/chunk-cca88db8.js +99 -0
- package/dist/esm/chunk-d6200087.js +50 -0
- package/dist/esm/chunk-daeac852.js +138 -0
- package/dist/esm/chunk-db31c548.js +103 -0
- package/dist/esm/chunk-e5568f45.js +84 -0
- package/dist/esm/chunk-e5fce48f.js +59 -0
- package/dist/esm/chunk-e84b4047.js +170 -0
- package/dist/esm/chunk-e8d90b72.js +98 -0
- package/dist/esm/chunk-e932bb68.js +206 -0
- package/dist/esm/chunk-edd8ff91.js +103 -0
- package/dist/esm/chunk-f0465d8d.js +84 -0
- package/dist/esm/chunk-f743d154.js +93 -0
- package/dist/esm/chunk-f8036b32.js +402 -0
- package/dist/esm/chunk-f984748f.js +401 -0
- package/dist/esm/chunk-fd5b0e1e.js +99 -0
- package/dist/esm/clockpicker.js +443 -0
- package/dist/esm/collapse.js +98 -0
- package/dist/esm/datepicker.js +1277 -0
- package/dist/esm/dialog.js +231 -0
- package/dist/esm/dropdown.js +14 -0
- package/dist/esm/field.js +14 -0
- package/dist/esm/icon.js +13 -0
- package/dist/esm/index.js +154 -0
- package/dist/esm/input.js +16 -0
- package/dist/esm/loading.js +159 -0
- package/dist/esm/menu.js +225 -0
- package/dist/esm/message.js +61 -0
- package/dist/esm/modal.js +42 -0
- package/dist/esm/navbar.js +253 -0
- package/dist/esm/notification.js +135 -0
- package/dist/esm/numberinput.js +187 -0
- package/dist/esm/pagination.js +15 -0
- package/dist/esm/progress.js +147 -0
- package/dist/esm/radio.js +219 -0
- package/dist/esm/select.js +16 -0
- package/dist/esm/slider.js +506 -0
- package/dist/esm/snackbar.js +108 -0
- package/dist/esm/steps.js +347 -0
- package/dist/esm/switch.js +140 -0
- package/dist/esm/table.js +872 -0
- package/dist/esm/tabs.js +253 -0
- package/dist/esm/tag.js +59 -0
- package/dist/esm/taginput.js +293 -0
- package/dist/esm/timepicker.js +71 -0
- package/dist/esm/toast.js +83 -0
- package/dist/esm/tooltip.js +13 -0
- package/dist/esm/upload.js +206 -0
- package/package.json +26 -4
- package/src/components/checkbox/Checkbox.vue +12 -4
- package/src/components/checkbox/CheckboxButton.vue +10 -2
- package/src/components/clockpicker/Clockpicker.vue +0 -5
- package/src/components/datepicker/Datepicker.spec.js +60 -0
- package/src/components/datepicker/Datepicker.vue +46 -19
- package/src/components/datepicker/DatepickerTable.spec.js +107 -2
- package/src/components/datepicker/DatepickerTable.vue +73 -4
- package/src/components/datepicker/DatepickerTableRow.spec.js +127 -17
- package/src/components/datepicker/DatepickerTableRow.vue +103 -4
- package/src/components/dialog/Dialog.vue +5 -3
- package/src/components/dialog/index.js +2 -2
- package/src/components/dropdown/Dropdown.vue +1 -4
- package/src/components/dropdown/DropdownItem.vue +7 -3
- package/src/components/field/Field.spec.js +18 -0
- package/src/components/field/Field.vue +21 -2
- package/src/components/index.js +6 -0
- package/src/components/input/Input.vue +2 -2
- package/src/components/loading/index.js +1 -1
- package/src/components/modal/index.js +1 -1
- package/src/components/navbar/NavBar.spec.js +76 -0
- package/src/components/navbar/Navbar.vue +127 -0
- package/src/components/navbar/NavbarBurger.vue +25 -0
- package/src/components/navbar/NavbarItem.vue +21 -0
- package/src/components/navbar/index.js +20 -0
- package/src/components/notification/index.js +1 -1
- package/src/components/pagination/Pagination.vue +28 -6
- package/src/components/progress/Progress.spec.js +77 -0
- package/src/components/progress/Progress.vue +108 -0
- package/src/components/progress/__snapshots__/Progress.spec.js.snap +7 -0
- package/src/components/progress/index.js +17 -0
- package/src/components/radio/Radio.spec.js +18 -1
- package/src/components/radio/Radio.vue +11 -5
- package/src/components/radio/RadioButton.spec.js +18 -1
- package/src/components/radio/RadioButton.vue +20 -8
- package/src/components/select/Select.spec.js +22 -1
- package/src/components/select/Select.vue +2 -1
- package/src/components/select/__snapshots__/Select.spec.js.snap +7 -0
- package/src/components/slider/Slider.spec.js +10 -0
- package/src/components/slider/Slider.vue +240 -0
- package/src/components/slider/SliderThumb.vue +188 -0
- package/src/components/slider/SliderTick.vue +43 -0
- package/src/components/slider/index.js +20 -0
- package/src/components/snackbar/index.js +2 -2
- package/src/components/steps/StepItem.vue +2 -3
- package/src/components/steps/Steps.vue +7 -5
- package/src/components/switch/Switch.spec.js +29 -0
- package/src/components/switch/Switch.vue +29 -5
- package/src/components/switch/__snapshots__/Switch.spec.js.snap +3 -0
- package/src/components/table/Table.vue +30 -8
- package/src/components/table/TableColumn.vue +2 -2
- package/src/components/tag/Tag.vue +4 -1
- package/src/components/taginput/Taginput.spec.js +10 -0
- package/src/components/taginput/Taginput.vue +8 -3
- package/src/components/toast/index.js +2 -2
- package/src/components/tooltip/Tooltip.vue +5 -5
- package/src/components/upload/Upload.vue +15 -8
- package/src/index.js +11 -4
- package/src/scss/buefy-build.scss +3 -3
- package/src/scss/buefy.scss +4 -0
- package/src/scss/components/_datepicker.scss +40 -1
- package/src/scss/components/_form.scss +52 -1
- package/src/scss/components/_progress.scss +45 -0
- package/src/scss/components/_radio.scss +14 -14
- package/src/scss/components/_slider.scss +138 -0
- package/src/scss/components/_steps.scss +4 -4
- package/src/scss/components/_switch.scss +54 -2
- package/src/scss/components/_taginput.scss +3 -0
- package/src/scss/components/_upload.scss +1 -3
- package/src/utils/SlotComponent.js +9 -2
- package/src/utils/TimepickerMixin.js +17 -6
- package/src/utils/config.js +4 -1
- package/src/utils/helpers.spec.js +67 -0
- package/src/utils/plugins.js +2 -1
- package/types/components.d.ts +3 -3
- package/types/index.d.ts +24 -11
- package/dist/components/index.js +0 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! Buefy v0.8.2 | 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=e||self).Steps={})}(this,function(e){"use strict";function t(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var i={defaultContainerElement:null,defaultIconPack:"mdi",defaultIconComponent:null,defaultDialogConfirmText:null,defaultDialogCancelText:null,defaultSnackbarDuration:3500,defaultSnackbarPosition:null,defaultToastDuration:2e3,defaultToastPosition:null,defaultNotificationDuration:2e3,defaultNotificationPosition:null,defaultTooltipType:"is-primary",defaultTooltipAnimated:!1,defaultTooltipDelay:0,defaultInputAutocomplete:"on",defaultDateFormatter:null,defaultDateParser:null,defaultDateCreator:null,defaultDayNames:null,defaultMonthNames:null,defaultFirstDayOfWeek:null,defaultUnselectableDaysOfWeek:null,defaultTimeFormatter:null,defaultTimeParser:null,defaultModalCanCancel:["escape","x","outside","button"],defaultModalScroll:null,defaultDatepickerMobileNative:!0,defaultTimepickerMobileNative:!0,defaultNoticeQueue:!0,defaultInputHasCounter:!0,defaultTaginputHasCounter:!0,defaultUseHtml5Validation:!0,defaultDropdownMobileModal:!0,defaultFieldLabelPosition:null,defaultDatepickerYearsRange:[-100,3],defaultDatepickerNearbyMonthDays:!0,defaultDatepickerNearbySelectableMonthDays:!1,defaultDatepickerShowWeekNumber:!1};var n=function(e,t,i,n,s,a,o,r,c,l){"boolean"!=typeof o&&(c=r,r=o,o=!1);var u,p="function"==typeof i?i.options:i;if(e&&e.render&&(p.render=e.render,p.staticRenderFns=e.staticRenderFns,p._compiled=!0,s&&(p.functional=!0)),n&&(p._scopeId=n),a?(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,c(e)),e&&e._registeredComponents&&e._registeredComponents.add(a)},p._ssrRegister=u):t&&(u=o?function(){t.call(this,l(this.$root.$options.shadowRoot))}:function(e){t.call(this,r(e))}),u)if(p.functional){var d=p.render;p.render=function(e,t){return u.call(t),d(e,t)}}else{var f=p.beforeCreate;p.beforeCreate=f?[].concat(f,u):[u]}return i};var s,a=n({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("span",{staticClass:"icon",class:[e.newType,e.size]},[e.useIconComponent?i(e.useIconComponent,{tag:"component",class:[e.customClass],attrs:{icon:[e.newPack,e.newIcon],size:e.newCustomSize}}):i("i",{class:[e.newPack,e.newIcon,e.newCustomSize,e.customClass]})],1)},staticRenderFns:[]},void 0,{name:"BIcon",props:{type:[String,Object],pack:String,icon:String,size:String,customSize:String,customClass:String,both:Boolean},computed:{newIcon:function(){return"mdi"===this.newPack?"".concat(this.newPack,"-").concat(this.icon):this.addFAPrefix(this.getEquivalentIconOf(this.icon))},newPack:function(){return this.pack||i.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))return"has-text-".concat(e[1])}},newCustomSize:function(){return this.customSize||this.customSizeByPack},customSizeByPack:function(){var e="mdi"===this.newPack?"mdi-24px":this.addFAPrefix("lg"),t="mdi"===this.newPack?"mdi-36px":this.addFAPrefix("2x"),i="mdi"===this.newPack?"mdi-48px":this.addFAPrefix("3x");switch(this.size){case"is-small":return;case"is-medium":return t;case"is-large":return i;default:return e}},useIconComponent:function(){return i.defaultIconComponent}},methods:{addFAPrefix:function(e){return this.useIconComponent?e:"fa-".concat(e)},getEquivalentIconOf:function(e){if(!this.both)return e;switch(e){case"check":return"check";case"information":return"info-circle";case"check-circle":return"check-circle";case"alert":return"exclamation-triangle";case"alert-circle":return"exclamation-circle";case"arrow-up":return"arrow-up";case"chevron-right":return"angle-right";case"chevron-left":return"angle-left";case"chevron-down":return"angle-down";case"eye":return"eye";case"eye-off":return"eye-slash";case"menu-down":return"caret-down";case"menu-up":return"caret-up";default:return e}}}},void 0,!1,void 0,void 0,void 0),o={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()},isVueComponent:function(){return this.component&&this.component._isVue}},created:function(){this.isVueComponent()&&this.component.$on(this.event,this.refresh)},beforeDestroy:function(){this.isVueComponent()&&this.component.$off(this.event,this.refresh)},render:function(e){if(this.isVueComponent())return e(this.tag,{},this.scoped?this.component.$scopedSlots[this.name](this.props):this.component.$slots[this.name])}};var r=n({render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"b-steps"},[i("nav",{staticClass:"steps",class:e.mainClasses},[i("ul",{staticClass:"step-items"},e._l(e.stepItems,function(t,n){return i("li",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"stepItem.visible"}],key:n,staticClass:"step-item",class:[t.type||e.type,{"is-active":e.activeStep===n,"is-previous":e.activeStep>n}]},[i("a",{staticClass:"step-link",class:{"is-clickable":e.isItemClickable(t,n)},on:{click:function(i){e.isItemClickable(t,n)&&e.stepClick(n)}}},[i("div",{staticClass:"step-marker"},[t.icon?i("b-icon",{attrs:{icon:t.icon,pack:t.iconPack,size:e.size}}):e._e()],1),e._v(" "),i("div",{staticClass:"step-details"},[i("span",{staticClass:"step-title"},[e._v(e._s(t.label))])])])])}))]),e._v(" "),i("section",{staticClass:"step-content",class:{"is-transitioning":e.isTransitioning}},[e._t("default")],2),e._v(" "),e.hasNavigation?i("nav",{staticClass:"step-navigation"},[i("a",{staticClass:"pagination-previous",attrs:{role:"button",href:"#",disabled:!e.hasPrev,"aria-label":e.ariaPreviousLabel},on:{click:function(t){t.preventDefault(),e.prev(t)}}},[i("b-icon",{attrs:{icon:"chevron-left",pack:e.iconPack,both:"","aria-hidden":"true"}})],1),e._v(" "),i("a",{staticClass:"pagination-next",attrs:{role:"button",href:"#",disabled:!e.hasNext,"aria-label":e.ariaNextLabel},on:{click:function(t){t.preventDefault(),e.next(t)}}},[i("b-icon",{attrs:{icon:"chevron-right",pack:e.iconPack,both:"","aria-hidden":"true"}})],1)]):e._e()])},staticRenderFns:[]},void 0,{name:"BSteps",components:(s={},t(s,a.name,a),t(s,o.name,o),s),props:{value:Number,type:[String,Object],size:String,animated:{type:Boolean,default:!0},destroyOnHide:{type:Boolean,default:!1},iconPack:String,hasNavigation:{type:Boolean,default:!0},ariaNextLabel:String,ariaPreviousLabel:String},data:function(){return{activeStep:this.value||0,stepItems:[],contentHeight:0,isTransitioning:!1,_isSteps:!0}},computed:{mainClasses:function(){return[this.type,this.size]},reversedStepItems:function(){return this.stepItems.slice().reverse()},firstVisibleStepIndex:function(){return this.stepItems.findIndex(function(e,t){return e.visible})},hasPrev:function(){return this.firstVisibleStepIndex>=0&&this.activeStep>this.firstVisibleStepIndex},lastVisibleStepIndex:function(){var e=this.reversedStepItems.findIndex(function(e,t){return e.visible});return e>=0?this.stepItems.length-1-e:e},hasNext:function(){return this.lastVisibleStepIndex>=0&&this.activeStep<this.lastVisibleStepIndex}},watch:{value:function(e){this.changeStep(e)},stepItems:function(){this.activeStep<this.stepItems.length&&(this.stepItems[this.activeStep].isActive=!0)}},methods:{changeStep:function(e){this.activeStep!==e&&(this.activeStep<this.stepItems.length&&this.stepItems[this.activeStep].deactivate(this.activeStep,e),this.stepItems[e].activate(this.activeStep,e),this.activeStep=e,this.$emit("change",e))},isItemClickable:function(e,t){return void 0===e.clickable?this.activeStep>t:e.clickable},stepClick:function(e){this.$emit("input",e),this.changeStep(e)},prev:function(){var e=this;if(this.hasPrev){var t=this.reversedStepItems.findIndex(function(t,i){return e.stepItems.length-1-i<e.activeStep&&t.visible});t>=0&&(t=this.stepItems.length-1-t),this.$emit("input",t),this.changeStep(t)}},next:function(){var e=this;if(this.hasNext){var t=this.stepItems.findIndex(function(t,i){return i>e.activeStep&&t.visible});this.$emit("input",t),this.changeStep(t)}}},mounted:function(){this.activeStep<this.stepItems.length&&(this.stepItems[this.activeStep].isActive=!0)}},void 0,!1,void 0,void 0,void 0);var c,l=n({},void 0,{name:"BStepItem",props:{label:String,type:String|Object,icon:String,iconPack:String,clickable:{type:Boolean,default:void 0},visible:{type:Boolean,default:!0}},data:function(){return{isActive:!1,transitionName:null}},methods:{activate:function(e,t){this.transitionName=t<e?"slide-next":"slide-prev",this.isActive=!0},deactivate:function(e,t){this.transitionName=t<e?"slide-next":"slide-prev",this.isActive=!1}},created:function(){if(!this.$parent.$data._isSteps)throw this.$destroy(),new Error("You should wrap bStepItem on a bSteps");this.$parent.stepItems.push(this)},beforeDestroy:function(){var e=this.$parent.stepItems.indexOf(this);e>=0&&this.$parent.stepItems.splice(e,1)},render:function(e){var t=this;if(!this.$parent.destroyOnHide||this.isActive&&this.visible){var i=e("div",{directives:[{name:"show",value:this.isActive&&this.visible}],attrs:{class:"step-item"}},this.$slots.default);return this.$parent.animated?e("transition",{props:{name:this.transitionName},on:{"before-enter":function(){t.$parent.isTransitioning=!0},"after-enter":function(){t.$parent.isTransitioning=!1}}},[i]):i}}},void 0,void 0,void 0,void 0,void 0),u=function(e,t){e.component(t.name,t)},p={install:function(e){u(e,r),u(e,l)}};c=p,"undefined"!=typeof window&&window.Vue&&window.Vue.use(c),e.StepItem=l,e.Steps=r,e.default=p,Object.defineProperty(e,"__esModule",{value:!0})});
|
|
@@ -1,2 +1,243 @@
|
|
|
1
|
-
/*! Buefy v0.
|
|
2
|
-
!(function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}})("undefined"!=typeof self?self:this,(function(){return (function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=291)})({0:function(t,e){t.exports=function(t,e,n,r,o){var u,i=t=t||{},c=typeof t.default;"object"!==c&&"function"!==c||(u=t,i=t.default);var f="function"==typeof i?i.options:i;e&&(f.render=e.render,f.staticRenderFns=e.staticRenderFns),r&&(f._scopeId=r);var a;if(o?(a=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},f._ssrRegister=a):n&&(a=n),a){var s=f.functional,l=s?f.render:f.beforeCreate;s?f.render=function(t,e){return a.call(e),l(t,e)}:f.beforeCreate=l?[].concat(l,a):[a]}return{esModule:u,exports:i,options:f}}},1:function(t,e,n){t.exports=!n(7)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},10:function(t,e,n){var r=n(5);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},11:function(t,e,n){var r=n(36),o=n(28);t.exports=function(t){return r(o(t))}},12:function(t,e,n){"use strict";n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return u}));var r=function(t){"undefined"!=typeof window&&window.Vue&&window.Vue.use(t)},o=function(t,e){t.component(e.name,e)},u=function(t,e,n){t.prototype[e]=n}},13:function(t,e,n){var r=n(26)("wks"),o=n(17),u=n(2).Symbol,i="function"==typeof u;(t.exports=function(t){return r[t]||(r[t]=i&&u[t]||(i?u:o)("Symbol."+t))}).store=r},14:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},15:function(t,e,n){var r=n(5);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},16:function(t,e,n){var r=n(2),o=n(3),u=n(29),i=n(9),c=n(6),f=function(t,e,n){var a,s,l,p=t&f.F,d=t&f.G,y=t&f.S,v=t&f.P,b=t&f.B,h=t&f.W,m=d?o:o[e]||(o[e]={}),g=m.prototype,w=d?r:y?r[e]:(r[e]||{}).prototype;d&&(n=e);for(a in n)(s=!p&&w&&void 0!==w[a])&&c(m,a)||(l=s?w[a]:n[a],m[a]=d&&"function"!=typeof w[a]?n[a]:b&&s?u(l,r):h&&w[a]==l?(function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e})(l):v&&"function"==typeof l?u(Function.call,l):l,v&&((m.virtual||(m.virtual={}))[a]=l,t&f.R&&g&&!g[a]&&i(g,a,l)))};f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,t.exports=f},17:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},19:function(t,e){t.exports=!0},2:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},20:function(t,e,n){t.exports=!n(1)&&!n(7)((function(){return 7!=Object.defineProperty(n(21)("div"),"a",{get:function(){return 7}}).a}))},21:function(t,e,n){var r=n(5),o=n(2).document,u=r(o)&&r(o.createElement);t.exports=function(t){return u?o.createElement(t):{}}},216:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(217),o=n.n(r),u=n(12);n.d(e,"Switch",(function(){return o.a}));var i={install:function(t){Object(u.a)(t,o.a)}};Object(u.c)(i),e.default=i},217:function(t,e,n){var r=n(0)(n(218),n(219),null,null,null);t.exports=r.exports},218:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(37),o=n.n(r);e.default={name:"BSwitch",props:{value:[String,Number,Boolean,Function,Object,Array,o.a],nativeValue:[String,Number,Boolean,Function,Object,Array,o.a],disabled:Boolean,type:String,name:String,required:Boolean,size:String,trueValue:{type:[String,Number,Boolean,Function,Object,Array,o.a],default:!0},falseValue:{type:[String,Number,Boolean,Function,Object,Array,o.a],default:!1}},data:function(){return{newValue:this.value,isMouseDown:!1}},computed:{computedValue:{get:function(){return this.newValue},set:function(t){this.newValue=t,this.$emit("input",t)}}},watch:{value:function(t){this.newValue=t}}}},219:function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{ref:"label",staticClass:"switch",class:[t.size,{"is-disabled":t.disabled}],attrs:{disabled:t.disabled},on:{keydown:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;e.preventDefault(),t.$refs.label.click()},mousedown:function(e){t.isMouseDown=!0},mouseup:function(e){t.isMouseDown=!1},mouseout:function(e){t.isMouseDown=!1},blur:function(e){t.isMouseDown=!1}}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.computedValue,expression:"computedValue"}],attrs:{type:"checkbox",disabled:t.disabled,name:t.name,required:t.required,"true-value":t.trueValue,"false-value":t.falseValue},domProps:{value:t.nativeValue,checked:Array.isArray(t.computedValue)?t._i(t.computedValue,t.nativeValue)>-1:t._q(t.computedValue,t.trueValue)},on:{click:function(t){t.stopPropagation()},change:function(e){var n=t.computedValue,r=e.target,o=r.checked?t.trueValue:t.falseValue;if(Array.isArray(n)){var u=t.nativeValue,i=t._i(n,u);r.checked?i<0&&(t.computedValue=n.concat([u])):i>-1&&(t.computedValue=n.slice(0,i).concat(n.slice(i+1)))}else t.computedValue=o}}}),t._v(" "),n("span",{staticClass:"check",class:[{"is-elastic":t.isMouseDown&&!t.disabled},t.type]}),t._v(" "),n("span",{staticClass:"control-label"},[t._t("default")],2)])},staticRenderFns:[]}},22:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},24:function(t,e,n){var r=n(34),o=n(27);t.exports=Object.keys||function(t){return r(t,o)}},25:function(t,e){e.f={}.propertyIsEnumerable},26:function(t,e,n){var r=n(3),o=n(2),u=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return u[t]||(u[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(19)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},27:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},28:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},29:function(t,e,n){var r=n(32);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},291:function(t,e,n){t.exports=n(216)},3:function(t,e){var n=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},30:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},31:function(t,e,n){var r=n(26)("keys"),o=n(17);t.exports=function(t){return r[t]||(r[t]=o(t))}},32:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},33:function(t,e){e.f=Object.getOwnPropertySymbols},34:function(t,e,n){var r=n(6),o=n(11),u=n(48)(!1),i=n(31)("IE_PROTO");t.exports=function(t,e){var n,c=o(t),f=0,a=[];for(n in c)n!=i&&r(c,n)&&a.push(n);for(;e.length>f;)r(c,n=e[f++])&&(~u(a,n)||a.push(n));return a}},35:function(t,e,n){var r=n(2),o=n(3),u=n(19),i=n(40),c=n(4).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=u?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||c(e,t,{value:i.f(t)})}},36:function(t,e,n){var r=n(30);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},37:function(t,e,n){t.exports={default:n(57),__esModule:!0}},39:function(t,e,n){var r=n(4).f,o=n(6),u=n(13)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,u)&&r(t,u,{configurable:!0,value:e})}},4:function(t,e,n){var r=n(10),o=n(20),u=n(15),i=Object.defineProperty;e.f=n(1)?Object.defineProperty:function(t,e,n){if(r(t),e=u(e,!0),r(n),o)try{return i(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},40:function(t,e,n){e.f=n(13)},41:function(t,e,n){var r=n(22),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},48:function(t,e,n){var r=n(11),o=n(41),u=n(49);t.exports=function(t){return function(e,n,i){var c,f=r(e),a=o(f.length),s=u(i,a);if(t&&n!=n){for(;a>s;)if((c=f[s++])!=c)return!0}else for(;a>s;s++)if((t||s in f)&&f[s]===n)return t||s||0;return!t&&-1}}},49:function(t,e,n){var r=n(22),o=Math.max,u=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):u(t,e)}},5:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},50:function(t,e,n){var r=n(34),o=n(27).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},52:function(t,e,n){t.exports=n(9)},53:function(t,e,n){var r=n(10),o=n(55),u=n(27),i=n(31)("IE_PROTO"),c=function(){},f=function(){var t,e=n(21)("iframe"),r=u.length;for(e.style.display="none",n(56).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),f=t.F;r--;)delete f.prototype[u[r]];return f()};t.exports=Object.create||function(t,e){var n;return null!==t?(c.prototype=r(t),n=new c,c.prototype=null,n[i]=t):n=f(),void 0===e?n:o(n,e)}},55:function(t,e,n){var r=n(4),o=n(10),u=n(24);t.exports=n(1)?Object.defineProperties:function(t,e){o(t);for(var n,i=u(e),c=i.length,f=0;c>f;)r.f(t,n=i[f++],e[n]);return t}},56:function(t,e,n){var r=n(2).document;t.exports=r&&r.documentElement},57:function(t,e,n){n(58),n(64),n(65),n(66),t.exports=n(3).Symbol},58:function(t,e,n){"use strict";var r=n(2),o=n(6),u=n(1),i=n(16),c=n(52),f=n(59).KEY,a=n(7),s=n(26),l=n(39),p=n(17),d=n(13),y=n(40),v=n(35),b=n(60),h=n(61),m=n(10),g=n(5),w=n(11),x=n(15),O=n(14),_=n(53),S=n(62),j=n(63),P=n(4),E=n(24),V=j.f,M=P.f,k=S.f,F=r.Symbol,N=r.JSON,C=N&&N.stringify,T=d("_hidden"),A=d("toPrimitive"),D={}.propertyIsEnumerable,I=s("symbol-registry"),R=s("symbols"),B=s("op-symbols"),$=Object.prototype,W="function"==typeof F,z=r.QObject,q=!z||!z.prototype||!z.prototype.findChild,J=u&&a((function(){return 7!=_(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=V($,e);r&&delete $[e],M(t,e,n),r&&t!==$&&M($,e,r)}:M,G=function(t){var e=R[t]=_(F.prototype);return e._k=t,e},K=W&&"symbol"==typeof F.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof F},U=function(t,e,n){return t===$&&U(B,e,n),m(t),e=x(e,!0),m(n),o(R,e)?(n.enumerable?(o(t,T)&&t[T][e]&&(t[T][e]=!1),n=_(n,{enumerable:O(0,!1)})):(o(t,T)||M(t,T,O(1,{})),t[T][e]=!0),J(t,e,n)):M(t,e,n)},X=function(t,e){m(t);for(var n,r=b(e=w(e)),o=0,u=r.length;u>o;)U(t,n=r[o++],e[n]);return t},Y=function(t,e){return void 0===e?_(t):X(_(t),e)},L=function(t){var e=D.call(this,t=x(t,!0));return!(this===$&&o(R,t)&&!o(B,t))&&(!(e||!o(this,t)||!o(R,t)||o(this,T)&&this[T][t])||e)},Q=function(t,e){if(t=w(t),e=x(e,!0),t!==$||!o(R,e)||o(B,e)){var n=V(t,e);return!n||!o(R,e)||o(t,T)&&t[T][e]||(n.enumerable=!0),n}},H=function(t){for(var e,n=k(w(t)),r=[],u=0;n.length>u;)o(R,e=n[u++])||e==T||e==f||r.push(e);return r},Z=function(t){for(var e,n=t===$,r=k(n?B:w(t)),u=[],i=0;r.length>i;)!o(R,e=r[i++])||n&&!o($,e)||u.push(R[e]);return u};W||(F=function(){if(this instanceof F)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===$&&e.call(B,n),o(this,T)&&o(this[T],t)&&(this[T][t]=!1),J(this,t,O(1,n))};return u&&q&&J($,t,{configurable:!0,set:e}),G(t)},c(F.prototype,"toString",(function(){return this._k})),j.f=Q,P.f=U,n(50).f=S.f=H,n(25).f=L,n(33).f=Z,u&&!n(19)&&c($,"propertyIsEnumerable",L,!0),y.f=function(t){return G(d(t))}),i(i.G+i.W+i.F*!W,{Symbol:F});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;tt.length>et;)d(tt[et++]);for(var nt=E(d.store),rt=0;nt.length>rt;)v(nt[rt++]);i(i.S+i.F*!W,"Symbol",{for:function(t){return o(I,t+="")?I[t]:I[t]=F(t)},keyFor:function(t){if(!K(t))throw TypeError(t+" is not a symbol!");for(var e in I)if(I[e]===t)return e},useSetter:function(){q=!0},useSimple:function(){q=!1}}),i(i.S+i.F*!W,"Object",{create:Y,defineProperty:U,defineProperties:X,getOwnPropertyDescriptor:Q,getOwnPropertyNames:H,getOwnPropertySymbols:Z}),N&&i(i.S+i.F*(!W||a((function(){var t=F();return"[null]"!=C([t])||"{}"!=C({a:t})||"{}"!=C(Object(t))}))),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(g(e)||void 0!==t)&&!K(t))return h(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!K(e))return e}),r[1]=e,C.apply(N,r)}}),F.prototype[A]||n(9)(F.prototype,A,F.prototype.valueOf),l(F,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},59:function(t,e,n){var r=n(17)("meta"),o=n(5),u=n(6),i=n(4).f,c=0,f=Object.isExtensible||function(){return!0},a=!n(7)((function(){return f(Object.preventExtensions({}))})),s=function(t){i(t,r,{value:{i:"O"+ ++c,w:{}}})},l=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!u(t,r)){if(!f(t))return"F";if(!e)return"E";s(t)}return t[r].i},p=function(t,e){if(!u(t,r)){if(!f(t))return!0;if(!e)return!1;s(t)}return t[r].w},d=function(t){return a&&y.NEED&&f(t)&&!u(t,r)&&s(t),t},y=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:p,onFreeze:d}},6:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},60:function(t,e,n){var r=n(24),o=n(33),u=n(25);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var i,c=n(t),f=u.f,a=0;c.length>a;)f.call(t,i=c[a++])&&e.push(i);return e}},61:function(t,e,n){var r=n(30);t.exports=Array.isArray||function(t){return"Array"==r(t)}},62:function(t,e,n){var r=n(11),o=n(50).f,u={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return o(t)}catch(t){return i.slice()}};t.exports.f=function(t){return i&&"[object Window]"==u.call(t)?c(t):o(r(t))}},63:function(t,e,n){var r=n(25),o=n(14),u=n(11),i=n(15),c=n(6),f=n(20),a=Object.getOwnPropertyDescriptor;e.f=n(1)?a:function(t,e){if(t=u(t),e=i(e,!0),f)try{return a(t,e)}catch(t){}if(c(t,e))return o(!r.f.call(t,e),t[e])}},64:function(t,e){},65:function(t,e,n){n(35)("asyncIterator")},66:function(t,e,n){n(35)("observable")},7:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},9:function(t,e,n){var r=n(4),o=n(14);t.exports=n(1)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}}})}));
|
|
1
|
+
/*! Buefy v0.8.2 | 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 = global || self, factory(global.Switch = {}));
|
|
6
|
+
}(this, function (exports) { 'use strict';
|
|
7
|
+
|
|
8
|
+
//
|
|
9
|
+
//
|
|
10
|
+
//
|
|
11
|
+
//
|
|
12
|
+
//
|
|
13
|
+
//
|
|
14
|
+
//
|
|
15
|
+
//
|
|
16
|
+
//
|
|
17
|
+
//
|
|
18
|
+
//
|
|
19
|
+
//
|
|
20
|
+
//
|
|
21
|
+
//
|
|
22
|
+
//
|
|
23
|
+
//
|
|
24
|
+
//
|
|
25
|
+
//
|
|
26
|
+
//
|
|
27
|
+
//
|
|
28
|
+
//
|
|
29
|
+
//
|
|
30
|
+
//
|
|
31
|
+
//
|
|
32
|
+
//
|
|
33
|
+
//
|
|
34
|
+
//
|
|
35
|
+
//
|
|
36
|
+
var script = {
|
|
37
|
+
name: 'BSwitch',
|
|
38
|
+
props: {
|
|
39
|
+
value: [String, Number, Boolean, Function, Object, Array],
|
|
40
|
+
nativeValue: [String, Number, Boolean, Function, Object, Array],
|
|
41
|
+
disabled: Boolean,
|
|
42
|
+
type: String,
|
|
43
|
+
name: String,
|
|
44
|
+
required: Boolean,
|
|
45
|
+
size: String,
|
|
46
|
+
trueValue: {
|
|
47
|
+
type: [String, Number, Boolean, Function, Object, Array],
|
|
48
|
+
default: true
|
|
49
|
+
},
|
|
50
|
+
falseValue: {
|
|
51
|
+
type: [String, Number, Boolean, Function, Object, Array],
|
|
52
|
+
default: false
|
|
53
|
+
},
|
|
54
|
+
rounded: {
|
|
55
|
+
type: Boolean,
|
|
56
|
+
default: true
|
|
57
|
+
},
|
|
58
|
+
outlined: {
|
|
59
|
+
type: Boolean,
|
|
60
|
+
default: false
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
data: function data() {
|
|
64
|
+
return {
|
|
65
|
+
newValue: this.value,
|
|
66
|
+
isMouseDown: false
|
|
67
|
+
};
|
|
68
|
+
},
|
|
69
|
+
computed: {
|
|
70
|
+
computedValue: {
|
|
71
|
+
get: function get() {
|
|
72
|
+
return this.newValue;
|
|
73
|
+
},
|
|
74
|
+
set: function set(value) {
|
|
75
|
+
this.newValue = value;
|
|
76
|
+
this.$emit('input', value);
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
newClass: function newClass() {
|
|
80
|
+
return [this.size, {
|
|
81
|
+
'is-disabled': this.disabled
|
|
82
|
+
}, {
|
|
83
|
+
'is-rounded': this.rounded
|
|
84
|
+
}, {
|
|
85
|
+
'is-outlined': this.outlined
|
|
86
|
+
}];
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
watch: {
|
|
90
|
+
/**
|
|
91
|
+
* When v-model change, set internal value.
|
|
92
|
+
*/
|
|
93
|
+
value: function value(_value) {
|
|
94
|
+
this.newValue = _value;
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
methods: {
|
|
98
|
+
focus: function focus() {
|
|
99
|
+
// MacOS FireFox and Safari do not focus when clicked
|
|
100
|
+
this.$refs.input.focus();
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier
|
|
106
|
+
/* server only */
|
|
107
|
+
, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
|
|
108
|
+
if (typeof shadowMode !== 'boolean') {
|
|
109
|
+
createInjectorSSR = createInjector;
|
|
110
|
+
createInjector = shadowMode;
|
|
111
|
+
shadowMode = false;
|
|
112
|
+
} // Vue.extend constructor export interop.
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
var options = typeof script === 'function' ? script.options : script; // render functions
|
|
116
|
+
|
|
117
|
+
if (template && template.render) {
|
|
118
|
+
options.render = template.render;
|
|
119
|
+
options.staticRenderFns = template.staticRenderFns;
|
|
120
|
+
options._compiled = true; // functional template
|
|
121
|
+
|
|
122
|
+
if (isFunctionalTemplate) {
|
|
123
|
+
options.functional = true;
|
|
124
|
+
}
|
|
125
|
+
} // scopedId
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
if (scopeId) {
|
|
129
|
+
options._scopeId = scopeId;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
var hook;
|
|
133
|
+
|
|
134
|
+
if (moduleIdentifier) {
|
|
135
|
+
// server build
|
|
136
|
+
hook = function hook(context) {
|
|
137
|
+
// 2.3 injection
|
|
138
|
+
context = context || // cached call
|
|
139
|
+
this.$vnode && this.$vnode.ssrContext || // stateful
|
|
140
|
+
this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext; // functional
|
|
141
|
+
// 2.2 with runInNewContext: true
|
|
142
|
+
|
|
143
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
144
|
+
context = __VUE_SSR_CONTEXT__;
|
|
145
|
+
} // inject component styles
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
if (style) {
|
|
149
|
+
style.call(this, createInjectorSSR(context));
|
|
150
|
+
} // register component module identifier for async chunk inference
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
if (context && context._registeredComponents) {
|
|
154
|
+
context._registeredComponents.add(moduleIdentifier);
|
|
155
|
+
}
|
|
156
|
+
}; // used by ssr in case component is cached and beforeCreate
|
|
157
|
+
// never gets called
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
options._ssrRegister = hook;
|
|
161
|
+
} else if (style) {
|
|
162
|
+
hook = shadowMode ? function () {
|
|
163
|
+
style.call(this, createInjectorShadow(this.$root.$options.shadowRoot));
|
|
164
|
+
} : function (context) {
|
|
165
|
+
style.call(this, createInjector(context));
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
if (hook) {
|
|
170
|
+
if (options.functional) {
|
|
171
|
+
// register for functional component in vue file
|
|
172
|
+
var originalRender = options.render;
|
|
173
|
+
|
|
174
|
+
options.render = function renderWithStyleInjection(h, context) {
|
|
175
|
+
hook.call(context);
|
|
176
|
+
return originalRender(h, context);
|
|
177
|
+
};
|
|
178
|
+
} else {
|
|
179
|
+
// inject component registration as beforeCreate hook
|
|
180
|
+
var existing = options.beforeCreate;
|
|
181
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
return script;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
var normalizeComponent_1 = normalizeComponent;
|
|
189
|
+
|
|
190
|
+
/* script */
|
|
191
|
+
const __vue_script__ = script;
|
|
192
|
+
|
|
193
|
+
/* template */
|
|
194
|
+
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(!('button' in $event)&&_vm._k($event.keyCode,"enter",13,$event.key)){ return null; }$event.preventDefault();_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},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;}}}}),_vm._v(" "),_c('span',{staticClass:"check",class:[{ 'is-elastic': _vm.isMouseDown && !_vm.disabled }, _vm.type]}),_vm._v(" "),_c('span',{staticClass:"control-label"},[_vm._t("default")],2)])};
|
|
195
|
+
var __vue_staticRenderFns__ = [];
|
|
196
|
+
|
|
197
|
+
/* style */
|
|
198
|
+
const __vue_inject_styles__ = undefined;
|
|
199
|
+
/* scoped */
|
|
200
|
+
const __vue_scope_id__ = undefined;
|
|
201
|
+
/* module identifier */
|
|
202
|
+
const __vue_module_identifier__ = undefined;
|
|
203
|
+
/* functional template */
|
|
204
|
+
const __vue_is_functional_template__ = false;
|
|
205
|
+
/* style inject */
|
|
206
|
+
|
|
207
|
+
/* style inject SSR */
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
var Switch = normalizeComponent_1(
|
|
212
|
+
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
|
213
|
+
__vue_inject_styles__,
|
|
214
|
+
__vue_script__,
|
|
215
|
+
__vue_scope_id__,
|
|
216
|
+
__vue_is_functional_template__,
|
|
217
|
+
__vue_module_identifier__,
|
|
218
|
+
undefined,
|
|
219
|
+
undefined
|
|
220
|
+
);
|
|
221
|
+
|
|
222
|
+
var use = function use(plugin) {
|
|
223
|
+
if (typeof window !== 'undefined' && window.Vue) {
|
|
224
|
+
window.Vue.use(plugin);
|
|
225
|
+
}
|
|
226
|
+
};
|
|
227
|
+
var registerComponent = function registerComponent(Vue, component) {
|
|
228
|
+
Vue.component(component.name, component);
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
var Plugin = {
|
|
232
|
+
install: function install(Vue) {
|
|
233
|
+
registerComponent(Vue, Switch);
|
|
234
|
+
}
|
|
235
|
+
};
|
|
236
|
+
use(Plugin);
|
|
237
|
+
|
|
238
|
+
exports.Switch = Switch;
|
|
239
|
+
exports.default = Plugin;
|
|
240
|
+
|
|
241
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
242
|
+
|
|
243
|
+
}));
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! Buefy v0.8.2 | 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=e||self).Switch={})}(this,function(e){"use strict";var t,n=function(e,t,n,o,i,u,a,s,r,l){"boolean"!=typeof a&&(r=s,s=a,a=!1);var c,d="function"==typeof n?n.options:n;if(e&&e.render&&(d.render=e.render,d.staticRenderFns=e.staticRenderFns,d._compiled=!0,i&&(d.functional=!0)),o&&(d._scopeId=o),u?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,r(e)),e&&e._registeredComponents&&e._registeredComponents.add(u)},d._ssrRegister=c):t&&(c=a?function(){t.call(this,l(this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),c)if(d.functional){var f=d.render;d.render=function(e,t){return c.call(t),f(e,t)}}else{var p=d.beforeCreate;d.beforeCreate=p?[].concat(p,c):[c]}return 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){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key))return 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},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,o=t.target,i=o.checked?e.trueValue:e.falseValue;if(Array.isArray(n)){var u=e.nativeValue,a=e._i(n,u);o.checked?a<0&&(e.computedValue=n.concat([u])):a>-1&&(e.computedValue=n.slice(0,a).concat(n.slice(a+1)))}else e.computedValue=i}}}),e._v(" "),n("span",{staticClass:"check",class:[{"is-elastic":e.isMouseDown&&!e.disabled},e.type]}),e._v(" "),n("span",{staticClass:"control-label"},[e._t("default")],2)])},staticRenderFns:[]},void 0,{name:"BSwitch",props:{value:[String,Number,Boolean,Function,Object,Array],nativeValue:[String,Number,Boolean,Function,Object,Array],disabled:Boolean,type:String,name:String,required:Boolean,size:String,trueValue:{type:[String,Number,Boolean,Function,Object,Array],default:!0},falseValue:{type:[String,Number,Boolean,Function,Object,Array],default:!1},rounded:{type:Boolean,default:!0},outlined:{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}]}},watch:{value:function(e){this.newValue=e}},methods:{focus:function(){this.$refs.input.focus()}}},void 0,!1,void 0,void 0,void 0),o={install:function(e){!function(e,t){e.component(t.name,t)}(e,n)}};t=o,"undefined"!=typeof window&&window.Vue&&window.Vue.use(t),e.Switch=n,e.default=o,Object.defineProperty(e,"__esModule",{value:!0})});
|