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
|
@@ -1,2 +1,721 @@
|
|
|
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 i in n)("object"==typeof exports?exports:t)[i]=n[i]}})("undefined"!=typeof self?self:this,(function(){return (function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},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=290)})({0:function(t,e){t.exports=function(t,e,n,i,r){var s,o=t=t||{},a=typeof t.default;"object"!==a&&"function"!==a||(s=t,o=t.default);var c="function"==typeof o?o.options:o;e&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns),i&&(c._scopeId=i);var u;if(r?(u=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(r)},c._ssrRegister=u):n&&(u=n),u){var l=c.functional,f=l?c.render:c.beforeCreate;l?c.render=function(t,e){return u.call(e),f(t,e)}:c.beforeCreate=f?[].concat(f,u):[u]}return{esModule:s,exports:o,options:c}}},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 i=n(5);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},112:function(t,e,n){"use strict";e.a={name:"BSlotComponent",props:{component:{type:Object,required:!0},name:{type:String,default:"default"},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(t){if(this.isVueComponent()){var e=this.component.$slots[this.name];return t(this.tag,{},e)}}}},12:function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return s}));var i=function(t){"undefined"!=typeof window&&window.Vue&&window.Vue.use(t)},r=function(t,e){t.component(e.name,e)},s=function(t,e,n){t.prototype[e]=n}},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 i=n(5);t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},16:function(t,e,n){var i=n(2),r=n(3),s=n(29),o=n(9),a=n(6),c=function(t,e,n){var u,l,f,p=t&c.F,d=t&c.G,h=t&c.S,v=t&c.P,m=t&c.B,b=t&c.W,y=d?r:r[e]||(r[e]={}),S=y.prototype,x=d?i:h?i[e]:(i[e]||{}).prototype;d&&(n=e);for(u in n)(l=!p&&x&&void 0!==x[u])&&a(y,u)||(f=l?x[u]:n[u],y[u]=d&&"function"!=typeof x[u]?n[u]:m&&l?s(f,i):b&&x[u]==f?(function(t){var e=function(e,n,i){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,i)}return t.apply(this,arguments)};return e.prototype=t.prototype,e})(f):v&&"function"==typeof f?s(Function.call,f):f,v&&((y.virtual||(y.virtual={}))[u]=f,t&c.R&&S&&!S[u]&&o(S,u,f)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},18:function(t,e,n){"use strict";e.__esModule=!0;var i=n(42),r=(function(t){return t&&t.__esModule?t:{default:t}})(i);e.default=function(t,e,n){return e in t?(0,r.default)(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},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 i=n(5),r=n(2).document,s=i(r)&&i(r.createElement);t.exports=function(t){return s?r.createElement(t):{}}},210:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(211),r=n.n(i),s=n(214),o=n.n(s),a=n(12);n.d(e,"Steps",(function(){return r.a})),n.d(e,"StepItem",(function(){return o.a}));var c={install:function(t){Object(a.a)(t,r.a),Object(a.a)(t,o.a)}};Object(a.c)(c),e.default=c},211:function(t,e,n){var i=n(0)(n(212),n(213),null,null,null);t.exports=i.exports},212:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=n(18),s=n.n(r),o=n(23),a=n.n(o),c=n(112);e.default={name:"BSteps",components:(i={},s()(i,a.a.name,a.a),s()(i,c.a.name,c.a),i),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(t,e){return t.visible}))},hasPrev:function(){return this.firstVisibleStepIndex>=0&&this.activeStep>this.firstVisibleStepIndex},lastVisibleStepIndex:function(){var t=this.reversedStepItems.findIndex((function(t,e){return t.visible}));return t>=0?this.stepItems.length-1-t:t},hasNext:function(){return this.lastVisibleStepIndex>=0&&this.activeStep<this.lastVisibleStepIndex}},watch:{value:function(t){this.changeStep(t)},stepItems:function(){this.activeStep<this.stepItems.length&&(this.stepItems[this.activeStep].isActive=!0)}},methods:{changeStep:function(t){this.activeStep!==t&&(this.activeStep<this.stepItems.length&&this.stepItems[this.activeStep].deactivate(this.activeStep,t),this.stepItems[t].activate(this.activeStep,t),this.activeStep=t,this.$emit("change",t))},isItemClickable:function(t){return void 0===t.clickable?t.completed:t.clickable},stepClick:function(t){this.$emit("input",t),this.changeStep(t)},prev:function(){var t=this;if(this.hasPrev){var e=this.reversedStepItems.findIndex((function(e,n){return t.stepItems.length-1-n<t.activeStep&&e.visible}));e>=0&&(e=this.stepItems.length-1-e),this.changeStep(e)}},next:function(){var t=this;if(this.hasNext){var e=this.stepItems.findIndex((function(e,n){return n>t.activeStep&&e.visible}));this.changeStep(e)}}},mounted:function(){this.activeStep<this.stepItems.length&&(this.stepItems[this.activeStep].isActive=!0)}}},213:function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"b-steps"},[n("nav",{staticClass:"steps",class:t.mainClasses},[n("ul",{staticClass:"step-items"},t._l(t.stepItems,(function(e,i){return n("li",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"stepItem.visible"}],key:i,staticClass:"step-item",class:[e.type||t.type,{"is-active":t.activeStep===i,"is-completed":e.completed||t.activeStep>i}]},[n("a",{staticClass:"step-link",class:{"is-clickable":t.isItemClickable(e)},on:{click:function(n){t.isItemClickable(e)&&t.stepClick(i)}}},[n("div",{staticClass:"step-marker"},[e.icon?n("b-icon",{attrs:{icon:e.icon,pack:e.iconPack,size:t.size}}):t._e()],1),t._v(" "),n("div",{staticClass:"step-details"},[n("span",{staticClass:"step-title"},[t._v(t._s(e.label))])])])])})))]),t._v(" "),n("section",{staticClass:"step-content",class:{"is-transitioning":t.isTransitioning}},[t._t("default")],2),t._v(" "),t.hasNavigation?n("nav",{staticClass:"step-navigation"},[n("a",{staticClass:"pagination-previous",attrs:{role:"button",href:"#",disabled:!t.hasPrev,"aria-label":t.ariaPreviousLabel},on:{click:function(e){e.preventDefault(),t.prev(e)}}},[n("b-icon",{attrs:{icon:"chevron-left",pack:t.iconPack,both:"","aria-hidden":"true"}})],1),t._v(" "),n("a",{staticClass:"pagination-next",attrs:{role:"button",href:"#",disabled:!t.hasNext,"aria-label":t.ariaNextLabel},on:{click:function(e){e.preventDefault(),t.next(e)}}},[n("b-icon",{attrs:{icon:"chevron-right",pack:t.iconPack,both:"","aria-hidden":"true"}})],1)]):t._e()])},staticRenderFns:[]}},214:function(t,e,n){var i=n(0)(n(215),null,null,null,null);t.exports=i.exports},215:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"BStepItem",props:{label:String,type:String|Object,icon:String,iconPack:String,clickable:Boolean,completed:{type:Boolean,default:!1},visible:{type:Boolean,default:!0}},data:function(){return{isActive:!1,transitionName:null}},methods:{activate:function(t,e){this.transitionName=e<t?"slide-next":"slide-prev",this.isActive=!0},deactivate:function(t,e){this.transitionName=e<t?"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 t=this.$parent.stepItems.indexOf(this);t>=0&&this.$parent.stepItems.splice(t,1)},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}],attrs:{class:"step-item"}},this.$slots.default);return this.$parent.animated?t("transition",{props:{name:this.transitionName},on:{"before-enter":function(){e.$parent.isTransitioning=!0},"after-enter":function(){e.$parent.isTransitioning=!1}}},[n]):n}}}},23:function(t,e,n){var i=n(0)(n(46),n(47),null,null,null);t.exports=i.exports},29:function(t,e,n){var i=n(32);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},290:function(t,e,n){t.exports=n(210)},3:function(t,e){var n=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},32:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},4:function(t,e,n){var i=n(10),r=n(20),s=n(15),o=Object.defineProperty;e.f=n(1)?Object.defineProperty:function(t,e,n){if(i(t),e=s(e,!0),i(n),r)try{return o(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}},42:function(t,e,n){t.exports={default:n(43),__esModule:!0}},43:function(t,e,n){n(44);var i=n(3).Object;t.exports=function(t,e,n){return i.defineProperty(t,e,n)}},44:function(t,e,n){var i=n(16);i(i.S+i.F*!n(1),"Object",{defineProperty:n(4).f})},46:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(8);e.default={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?this.newPack+"-"+this.icon:this.addFAPrefix(this.getEquivalentIconOf(this.icon))},newPack:function(){return this.pack||i.a.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))return"has-text-"+t[1]}},newCustomSize:function(){return this.customSize||this.customSizeByPack},customSizeByPack:function(){var t="mdi"===this.newPack?"mdi-24px":this.addFAPrefix("lg"),e="mdi"===this.newPack?"mdi-36px":this.addFAPrefix("2x"),n="mdi"===this.newPack?"mdi-48px":this.addFAPrefix("3x");switch(this.size){case"is-small":return;case"is-medium":return e;case"is-large":return n;default:return t}},useIconComponent:function(){return i.a.defaultIconComponent}},methods:{addFAPrefix:function(t){return this.useIconComponent?t:"fa-"+t},getEquivalentIconOf:function(t){if(!this.both)return t;switch(t){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 t}}}}},47:function(t,e){t.exports={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:[]}},5:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},6:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},7:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},8:function(t,e,n){"use strict";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,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,defaultUseHtml5Validation:!0,defaultDropdownMobileModal:!0,defaultFieldLabelPosition:null,defaultDatepickerYearsRange:[-100,3],defaultDatepickerNearbyMonthDays:!0,defaultDatepickerNearbySelectableMonthDays:!1};e.a=i},9:function(t,e,n){var i=n(4),r=n(14);t.exports=n(1)?function(t,e,n){return i.f(t,e,r(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.Steps = {}));
|
|
6
|
+
}(this, function (exports) { 'use strict';
|
|
7
|
+
|
|
8
|
+
function _defineProperty(obj, key, value) {
|
|
9
|
+
if (key in obj) {
|
|
10
|
+
Object.defineProperty(obj, key, {
|
|
11
|
+
value: value,
|
|
12
|
+
enumerable: true,
|
|
13
|
+
configurable: true,
|
|
14
|
+
writable: true
|
|
15
|
+
});
|
|
16
|
+
} else {
|
|
17
|
+
obj[key] = value;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
return obj;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
var config = {
|
|
24
|
+
defaultContainerElement: null,
|
|
25
|
+
defaultIconPack: 'mdi',
|
|
26
|
+
defaultIconComponent: null,
|
|
27
|
+
defaultDialogConfirmText: null,
|
|
28
|
+
defaultDialogCancelText: null,
|
|
29
|
+
defaultSnackbarDuration: 3500,
|
|
30
|
+
defaultSnackbarPosition: null,
|
|
31
|
+
defaultToastDuration: 2000,
|
|
32
|
+
defaultToastPosition: null,
|
|
33
|
+
defaultNotificationDuration: 2000,
|
|
34
|
+
defaultNotificationPosition: null,
|
|
35
|
+
defaultTooltipType: 'is-primary',
|
|
36
|
+
defaultTooltipAnimated: false,
|
|
37
|
+
defaultTooltipDelay: 0,
|
|
38
|
+
defaultInputAutocomplete: 'on',
|
|
39
|
+
defaultDateFormatter: null,
|
|
40
|
+
defaultDateParser: null,
|
|
41
|
+
defaultDateCreator: null,
|
|
42
|
+
defaultDayNames: null,
|
|
43
|
+
defaultMonthNames: null,
|
|
44
|
+
defaultFirstDayOfWeek: null,
|
|
45
|
+
defaultUnselectableDaysOfWeek: null,
|
|
46
|
+
defaultTimeFormatter: null,
|
|
47
|
+
defaultTimeParser: null,
|
|
48
|
+
defaultModalCanCancel: ['escape', 'x', 'outside', 'button'],
|
|
49
|
+
defaultModalScroll: null,
|
|
50
|
+
defaultDatepickerMobileNative: true,
|
|
51
|
+
defaultTimepickerMobileNative: true,
|
|
52
|
+
defaultNoticeQueue: true,
|
|
53
|
+
defaultInputHasCounter: true,
|
|
54
|
+
defaultTaginputHasCounter: true,
|
|
55
|
+
defaultUseHtml5Validation: true,
|
|
56
|
+
defaultDropdownMobileModal: true,
|
|
57
|
+
defaultFieldLabelPosition: null,
|
|
58
|
+
defaultDatepickerYearsRange: [-100, 3],
|
|
59
|
+
defaultDatepickerNearbyMonthDays: true,
|
|
60
|
+
defaultDatepickerNearbySelectableMonthDays: false,
|
|
61
|
+
defaultDatepickerShowWeekNumber: false
|
|
62
|
+
};
|
|
63
|
+
var config$1 = config;
|
|
64
|
+
|
|
65
|
+
//
|
|
66
|
+
var script = {
|
|
67
|
+
name: 'BIcon',
|
|
68
|
+
props: {
|
|
69
|
+
type: [String, Object],
|
|
70
|
+
pack: String,
|
|
71
|
+
icon: String,
|
|
72
|
+
size: String,
|
|
73
|
+
customSize: String,
|
|
74
|
+
customClass: String,
|
|
75
|
+
both: Boolean // This is used internally to show both MDI and FA icon
|
|
76
|
+
|
|
77
|
+
},
|
|
78
|
+
computed: {
|
|
79
|
+
/**
|
|
80
|
+
* Internal icon name based on the pack.
|
|
81
|
+
* If pack is 'fa', gets the equivalent FA icon name of the MDI,
|
|
82
|
+
* internal icons are always MDI.
|
|
83
|
+
*/
|
|
84
|
+
newIcon: function newIcon() {
|
|
85
|
+
return this.newPack === 'mdi' ? "".concat(this.newPack, "-").concat(this.icon) : this.addFAPrefix(this.getEquivalentIconOf(this.icon));
|
|
86
|
+
},
|
|
87
|
+
newPack: function newPack() {
|
|
88
|
+
return this.pack || config$1.defaultIconPack;
|
|
89
|
+
},
|
|
90
|
+
newType: function newType() {
|
|
91
|
+
if (!this.type) return;
|
|
92
|
+
var splitType = [];
|
|
93
|
+
|
|
94
|
+
if (typeof this.type === 'string') {
|
|
95
|
+
splitType = this.type.split('-');
|
|
96
|
+
} else {
|
|
97
|
+
for (var key in this.type) {
|
|
98
|
+
if (this.type[key]) {
|
|
99
|
+
splitType = key.split('-');
|
|
100
|
+
break;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
if (splitType.length <= 1) return;
|
|
106
|
+
return "has-text-".concat(splitType[1]);
|
|
107
|
+
},
|
|
108
|
+
newCustomSize: function newCustomSize() {
|
|
109
|
+
return this.customSize || this.customSizeByPack;
|
|
110
|
+
},
|
|
111
|
+
customSizeByPack: function customSizeByPack() {
|
|
112
|
+
var defaultSize = this.newPack === 'mdi' ? 'mdi-24px' : this.addFAPrefix('lg');
|
|
113
|
+
var mediumSize = this.newPack === 'mdi' ? 'mdi-36px' : this.addFAPrefix('2x');
|
|
114
|
+
var largeSize = this.newPack === 'mdi' ? 'mdi-48px' : this.addFAPrefix('3x');
|
|
115
|
+
|
|
116
|
+
switch (this.size) {
|
|
117
|
+
case 'is-small':
|
|
118
|
+
return;
|
|
119
|
+
|
|
120
|
+
case 'is-medium':
|
|
121
|
+
return mediumSize;
|
|
122
|
+
|
|
123
|
+
case 'is-large':
|
|
124
|
+
return largeSize;
|
|
125
|
+
|
|
126
|
+
default:
|
|
127
|
+
return defaultSize;
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
useIconComponent: function useIconComponent() {
|
|
131
|
+
return config$1.defaultIconComponent;
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
methods: {
|
|
135
|
+
addFAPrefix: function addFAPrefix(value) {
|
|
136
|
+
if (this.useIconComponent) {
|
|
137
|
+
return value;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
return "fa-".concat(value);
|
|
141
|
+
},
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Equivalent FA icon name of the MDI.
|
|
145
|
+
*/
|
|
146
|
+
getEquivalentIconOf: function getEquivalentIconOf(value) {
|
|
147
|
+
// Only transform the class if the both prop is set to true
|
|
148
|
+
if (!this.both) {
|
|
149
|
+
return value;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
switch (value) {
|
|
153
|
+
case 'check':
|
|
154
|
+
return 'check';
|
|
155
|
+
|
|
156
|
+
case 'information':
|
|
157
|
+
return 'info-circle';
|
|
158
|
+
|
|
159
|
+
case 'check-circle':
|
|
160
|
+
return 'check-circle';
|
|
161
|
+
|
|
162
|
+
case 'alert':
|
|
163
|
+
return 'exclamation-triangle';
|
|
164
|
+
|
|
165
|
+
case 'alert-circle':
|
|
166
|
+
return 'exclamation-circle';
|
|
167
|
+
|
|
168
|
+
case 'arrow-up':
|
|
169
|
+
return 'arrow-up';
|
|
170
|
+
|
|
171
|
+
case 'chevron-right':
|
|
172
|
+
return 'angle-right';
|
|
173
|
+
|
|
174
|
+
case 'chevron-left':
|
|
175
|
+
return 'angle-left';
|
|
176
|
+
|
|
177
|
+
case 'chevron-down':
|
|
178
|
+
return 'angle-down';
|
|
179
|
+
|
|
180
|
+
case 'eye':
|
|
181
|
+
return 'eye';
|
|
182
|
+
|
|
183
|
+
case 'eye-off':
|
|
184
|
+
return 'eye-slash';
|
|
185
|
+
|
|
186
|
+
case 'menu-down':
|
|
187
|
+
return 'caret-down';
|
|
188
|
+
|
|
189
|
+
case 'menu-up':
|
|
190
|
+
return 'caret-up';
|
|
191
|
+
|
|
192
|
+
default:
|
|
193
|
+
return value;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier
|
|
200
|
+
/* server only */
|
|
201
|
+
, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
|
|
202
|
+
if (typeof shadowMode !== 'boolean') {
|
|
203
|
+
createInjectorSSR = createInjector;
|
|
204
|
+
createInjector = shadowMode;
|
|
205
|
+
shadowMode = false;
|
|
206
|
+
} // Vue.extend constructor export interop.
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
var options = typeof script === 'function' ? script.options : script; // render functions
|
|
210
|
+
|
|
211
|
+
if (template && template.render) {
|
|
212
|
+
options.render = template.render;
|
|
213
|
+
options.staticRenderFns = template.staticRenderFns;
|
|
214
|
+
options._compiled = true; // functional template
|
|
215
|
+
|
|
216
|
+
if (isFunctionalTemplate) {
|
|
217
|
+
options.functional = true;
|
|
218
|
+
}
|
|
219
|
+
} // scopedId
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
if (scopeId) {
|
|
223
|
+
options._scopeId = scopeId;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
var hook;
|
|
227
|
+
|
|
228
|
+
if (moduleIdentifier) {
|
|
229
|
+
// server build
|
|
230
|
+
hook = function hook(context) {
|
|
231
|
+
// 2.3 injection
|
|
232
|
+
context = context || // cached call
|
|
233
|
+
this.$vnode && this.$vnode.ssrContext || // stateful
|
|
234
|
+
this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext; // functional
|
|
235
|
+
// 2.2 with runInNewContext: true
|
|
236
|
+
|
|
237
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
238
|
+
context = __VUE_SSR_CONTEXT__;
|
|
239
|
+
} // inject component styles
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
if (style) {
|
|
243
|
+
style.call(this, createInjectorSSR(context));
|
|
244
|
+
} // register component module identifier for async chunk inference
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
if (context && context._registeredComponents) {
|
|
248
|
+
context._registeredComponents.add(moduleIdentifier);
|
|
249
|
+
}
|
|
250
|
+
}; // used by ssr in case component is cached and beforeCreate
|
|
251
|
+
// never gets called
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
options._ssrRegister = hook;
|
|
255
|
+
} else if (style) {
|
|
256
|
+
hook = shadowMode ? function () {
|
|
257
|
+
style.call(this, createInjectorShadow(this.$root.$options.shadowRoot));
|
|
258
|
+
} : function (context) {
|
|
259
|
+
style.call(this, createInjector(context));
|
|
260
|
+
};
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
if (hook) {
|
|
264
|
+
if (options.functional) {
|
|
265
|
+
// register for functional component in vue file
|
|
266
|
+
var originalRender = options.render;
|
|
267
|
+
|
|
268
|
+
options.render = function renderWithStyleInjection(h, context) {
|
|
269
|
+
hook.call(context);
|
|
270
|
+
return originalRender(h, context);
|
|
271
|
+
};
|
|
272
|
+
} else {
|
|
273
|
+
// inject component registration as beforeCreate hook
|
|
274
|
+
var existing = options.beforeCreate;
|
|
275
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
return script;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
var normalizeComponent_1 = normalizeComponent;
|
|
283
|
+
|
|
284
|
+
/* script */
|
|
285
|
+
const __vue_script__ = script;
|
|
286
|
+
|
|
287
|
+
/* template */
|
|
288
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:"icon",class:[_vm.newType, _vm.size]},[(!_vm.useIconComponent)?_c('i',{class:[_vm.newPack, _vm.newIcon, _vm.newCustomSize, _vm.customClass]}):_c(_vm.useIconComponent,{tag:"component",class:[_vm.customClass],attrs:{"icon":[_vm.newPack, _vm.newIcon],"size":_vm.newCustomSize}})],1)};
|
|
289
|
+
var __vue_staticRenderFns__ = [];
|
|
290
|
+
|
|
291
|
+
/* style */
|
|
292
|
+
const __vue_inject_styles__ = undefined;
|
|
293
|
+
/* scoped */
|
|
294
|
+
const __vue_scope_id__ = undefined;
|
|
295
|
+
/* module identifier */
|
|
296
|
+
const __vue_module_identifier__ = undefined;
|
|
297
|
+
/* functional template */
|
|
298
|
+
const __vue_is_functional_template__ = false;
|
|
299
|
+
/* style inject */
|
|
300
|
+
|
|
301
|
+
/* style inject SSR */
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
var Icon = normalizeComponent_1(
|
|
306
|
+
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
|
307
|
+
__vue_inject_styles__,
|
|
308
|
+
__vue_script__,
|
|
309
|
+
__vue_scope_id__,
|
|
310
|
+
__vue_is_functional_template__,
|
|
311
|
+
__vue_module_identifier__,
|
|
312
|
+
undefined,
|
|
313
|
+
undefined
|
|
314
|
+
);
|
|
315
|
+
|
|
316
|
+
var SlotComponent = {
|
|
317
|
+
name: 'BSlotComponent',
|
|
318
|
+
props: {
|
|
319
|
+
component: {
|
|
320
|
+
type: Object,
|
|
321
|
+
required: true
|
|
322
|
+
},
|
|
323
|
+
name: {
|
|
324
|
+
type: String,
|
|
325
|
+
default: 'default'
|
|
326
|
+
},
|
|
327
|
+
scoped: {
|
|
328
|
+
type: Boolean
|
|
329
|
+
},
|
|
330
|
+
props: {
|
|
331
|
+
type: Object
|
|
332
|
+
},
|
|
333
|
+
tag: {
|
|
334
|
+
type: String,
|
|
335
|
+
default: 'div'
|
|
336
|
+
},
|
|
337
|
+
event: {
|
|
338
|
+
type: String,
|
|
339
|
+
default: 'hook:updated'
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
methods: {
|
|
343
|
+
refresh: function refresh() {
|
|
344
|
+
this.$forceUpdate();
|
|
345
|
+
},
|
|
346
|
+
isVueComponent: function isVueComponent() {
|
|
347
|
+
return this.component && this.component._isVue;
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
created: function created() {
|
|
351
|
+
if (this.isVueComponent()) {
|
|
352
|
+
this.component.$on(this.event, this.refresh);
|
|
353
|
+
}
|
|
354
|
+
},
|
|
355
|
+
beforeDestroy: function beforeDestroy() {
|
|
356
|
+
if (this.isVueComponent()) {
|
|
357
|
+
this.component.$off(this.event, this.refresh);
|
|
358
|
+
}
|
|
359
|
+
},
|
|
360
|
+
render: function render(createElement) {
|
|
361
|
+
if (this.isVueComponent()) {
|
|
362
|
+
return createElement(this.tag, {}, this.scoped ? this.component.$scopedSlots[this.name](this.props) : this.component.$slots[this.name]);
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
};
|
|
366
|
+
|
|
367
|
+
var _components;
|
|
368
|
+
var script$1 = {
|
|
369
|
+
name: 'BSteps',
|
|
370
|
+
components: (_components = {}, _defineProperty(_components, Icon.name, Icon), _defineProperty(_components, SlotComponent.name, SlotComponent), _components),
|
|
371
|
+
props: {
|
|
372
|
+
value: Number,
|
|
373
|
+
type: [String, Object],
|
|
374
|
+
size: String,
|
|
375
|
+
animated: {
|
|
376
|
+
type: Boolean,
|
|
377
|
+
default: true
|
|
378
|
+
},
|
|
379
|
+
destroyOnHide: {
|
|
380
|
+
type: Boolean,
|
|
381
|
+
default: false
|
|
382
|
+
},
|
|
383
|
+
iconPack: String,
|
|
384
|
+
hasNavigation: {
|
|
385
|
+
type: Boolean,
|
|
386
|
+
default: true
|
|
387
|
+
},
|
|
388
|
+
ariaNextLabel: String,
|
|
389
|
+
ariaPreviousLabel: String
|
|
390
|
+
},
|
|
391
|
+
data: function data() {
|
|
392
|
+
return {
|
|
393
|
+
activeStep: this.value || 0,
|
|
394
|
+
stepItems: [],
|
|
395
|
+
contentHeight: 0,
|
|
396
|
+
isTransitioning: false,
|
|
397
|
+
_isSteps: true // Used internally by StepItem
|
|
398
|
+
|
|
399
|
+
};
|
|
400
|
+
},
|
|
401
|
+
computed: {
|
|
402
|
+
mainClasses: function mainClasses() {
|
|
403
|
+
return [this.type, this.size];
|
|
404
|
+
},
|
|
405
|
+
reversedStepItems: function reversedStepItems() {
|
|
406
|
+
return this.stepItems.slice().reverse();
|
|
407
|
+
},
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* Check the first visible step index.
|
|
411
|
+
*/
|
|
412
|
+
firstVisibleStepIndex: function firstVisibleStepIndex() {
|
|
413
|
+
return this.stepItems.findIndex(function (step, idx) {
|
|
414
|
+
return step.visible;
|
|
415
|
+
});
|
|
416
|
+
},
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* Check if previous button is available.
|
|
420
|
+
*/
|
|
421
|
+
hasPrev: function hasPrev() {
|
|
422
|
+
return this.firstVisibleStepIndex >= 0 && this.activeStep > this.firstVisibleStepIndex;
|
|
423
|
+
},
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* Check the last visible step index.
|
|
427
|
+
*/
|
|
428
|
+
lastVisibleStepIndex: function lastVisibleStepIndex() {
|
|
429
|
+
var idx = this.reversedStepItems.findIndex(function (step, idx) {
|
|
430
|
+
return step.visible;
|
|
431
|
+
});
|
|
432
|
+
|
|
433
|
+
if (idx >= 0) {
|
|
434
|
+
return this.stepItems.length - 1 - idx;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
return idx;
|
|
438
|
+
},
|
|
439
|
+
|
|
440
|
+
/**
|
|
441
|
+
* Check if next button is available.
|
|
442
|
+
*/
|
|
443
|
+
hasNext: function hasNext() {
|
|
444
|
+
return this.lastVisibleStepIndex >= 0 && this.activeStep < this.lastVisibleStepIndex;
|
|
445
|
+
}
|
|
446
|
+
},
|
|
447
|
+
watch: {
|
|
448
|
+
/**
|
|
449
|
+
* When v-model is changed set the new active step.
|
|
450
|
+
*/
|
|
451
|
+
value: function value(_value) {
|
|
452
|
+
this.changeStep(_value);
|
|
453
|
+
},
|
|
454
|
+
|
|
455
|
+
/**
|
|
456
|
+
* When step-items are updated, set active one.
|
|
457
|
+
*/
|
|
458
|
+
stepItems: function stepItems() {
|
|
459
|
+
if (this.activeStep < this.stepItems.length) {
|
|
460
|
+
this.stepItems[this.activeStep].isActive = true;
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
},
|
|
464
|
+
methods: {
|
|
465
|
+
/**
|
|
466
|
+
* Change the active step and emit change event.
|
|
467
|
+
*/
|
|
468
|
+
changeStep: function changeStep(newIndex) {
|
|
469
|
+
if (this.activeStep === newIndex) return;
|
|
470
|
+
|
|
471
|
+
if (this.activeStep < this.stepItems.length) {
|
|
472
|
+
this.stepItems[this.activeStep].deactivate(this.activeStep, newIndex);
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
this.stepItems[newIndex].activate(this.activeStep, newIndex);
|
|
476
|
+
this.activeStep = newIndex;
|
|
477
|
+
this.$emit('change', newIndex);
|
|
478
|
+
},
|
|
479
|
+
|
|
480
|
+
/**
|
|
481
|
+
* Return if the step should be clickable or not.
|
|
482
|
+
*/
|
|
483
|
+
isItemClickable: function isItemClickable(stepItem, index) {
|
|
484
|
+
if (stepItem.clickable === undefined) {
|
|
485
|
+
return this.activeStep > index;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
return stepItem.clickable;
|
|
489
|
+
},
|
|
490
|
+
|
|
491
|
+
/**
|
|
492
|
+
* Step click listener, emit input event and change active step.
|
|
493
|
+
*/
|
|
494
|
+
stepClick: function stepClick(value) {
|
|
495
|
+
this.$emit('input', value);
|
|
496
|
+
this.changeStep(value);
|
|
497
|
+
},
|
|
498
|
+
|
|
499
|
+
/**
|
|
500
|
+
* Previous button click listener.
|
|
501
|
+
*/
|
|
502
|
+
prev: function prev() {
|
|
503
|
+
var _this = this;
|
|
504
|
+
|
|
505
|
+
if (!this.hasPrev) return;
|
|
506
|
+
var prevItemIdx = this.reversedStepItems.findIndex(function (step, idx) {
|
|
507
|
+
return _this.stepItems.length - 1 - idx < _this.activeStep && step.visible;
|
|
508
|
+
});
|
|
509
|
+
|
|
510
|
+
if (prevItemIdx >= 0) {
|
|
511
|
+
prevItemIdx = this.stepItems.length - 1 - prevItemIdx;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
this.$emit('input', prevItemIdx);
|
|
515
|
+
this.changeStep(prevItemIdx);
|
|
516
|
+
},
|
|
517
|
+
|
|
518
|
+
/**
|
|
519
|
+
* Previous button click listener.
|
|
520
|
+
*/
|
|
521
|
+
next: function next() {
|
|
522
|
+
var _this2 = this;
|
|
523
|
+
|
|
524
|
+
if (!this.hasNext) return;
|
|
525
|
+
var nextItemIdx = this.stepItems.findIndex(function (step, idx) {
|
|
526
|
+
return idx > _this2.activeStep && step.visible;
|
|
527
|
+
});
|
|
528
|
+
this.$emit('input', nextItemIdx);
|
|
529
|
+
this.changeStep(nextItemIdx);
|
|
530
|
+
}
|
|
531
|
+
},
|
|
532
|
+
mounted: function mounted() {
|
|
533
|
+
if (this.activeStep < this.stepItems.length) {
|
|
534
|
+
this.stepItems[this.activeStep].isActive = true;
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
};
|
|
538
|
+
|
|
539
|
+
/* script */
|
|
540
|
+
const __vue_script__$1 = script$1;
|
|
541
|
+
|
|
542
|
+
/* template */
|
|
543
|
+
var __vue_render__$1 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"b-steps"},[_c('nav',{staticClass:"steps",class:_vm.mainClasses},[_c('ul',{staticClass:"step-items"},_vm._l((_vm.stepItems),function(stepItem,index){return _c('li',{directives:[{name:"show",rawName:"v-show",value:(stepItem.visible),expression:"stepItem.visible"}],key:index,staticClass:"step-item",class:[stepItem.type || _vm.type, {
|
|
544
|
+
'is-active': _vm.activeStep === index,
|
|
545
|
+
'is-previous': _vm.activeStep > index
|
|
546
|
+
}]},[_c('a',{staticClass:"step-link",class:{'is-clickable': _vm.isItemClickable(stepItem, index)},on:{"click":function($event){_vm.isItemClickable(stepItem, index) && _vm.stepClick(index);}}},[_c('div',{staticClass:"step-marker"},[(stepItem.icon)?_c('b-icon',{attrs:{"icon":stepItem.icon,"pack":stepItem.iconPack,"size":_vm.size}}):_vm._e()],1),_vm._v(" "),_c('div',{staticClass:"step-details"},[_c('span',{staticClass:"step-title"},[_vm._v(_vm._s(stepItem.label))])])])])}))]),_vm._v(" "),_c('section',{staticClass:"step-content",class:{'is-transitioning': _vm.isTransitioning}},[_vm._t("default")],2),_vm._v(" "),(_vm.hasNavigation)?_c('nav',{staticClass:"step-navigation"},[_c('a',{staticClass:"pagination-previous",attrs:{"role":"button","href":"#","disabled":!_vm.hasPrev,"aria-label":_vm.ariaPreviousLabel},on:{"click":function($event){$event.preventDefault();_vm.prev($event);}}},[_c('b-icon',{attrs:{"icon":"chevron-left","pack":_vm.iconPack,"both":"","aria-hidden":"true"}})],1),_vm._v(" "),_c('a',{staticClass:"pagination-next",attrs:{"role":"button","href":"#","disabled":!_vm.hasNext,"aria-label":_vm.ariaNextLabel},on:{"click":function($event){$event.preventDefault();_vm.next($event);}}},[_c('b-icon',{attrs:{"icon":"chevron-right","pack":_vm.iconPack,"both":"","aria-hidden":"true"}})],1)]):_vm._e()])};
|
|
547
|
+
var __vue_staticRenderFns__$1 = [];
|
|
548
|
+
|
|
549
|
+
/* style */
|
|
550
|
+
const __vue_inject_styles__$1 = undefined;
|
|
551
|
+
/* scoped */
|
|
552
|
+
const __vue_scope_id__$1 = undefined;
|
|
553
|
+
/* module identifier */
|
|
554
|
+
const __vue_module_identifier__$1 = undefined;
|
|
555
|
+
/* functional template */
|
|
556
|
+
const __vue_is_functional_template__$1 = false;
|
|
557
|
+
/* style inject */
|
|
558
|
+
|
|
559
|
+
/* style inject SSR */
|
|
560
|
+
|
|
561
|
+
|
|
562
|
+
|
|
563
|
+
var Steps = normalizeComponent_1(
|
|
564
|
+
{ render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 },
|
|
565
|
+
__vue_inject_styles__$1,
|
|
566
|
+
__vue_script__$1,
|
|
567
|
+
__vue_scope_id__$1,
|
|
568
|
+
__vue_is_functional_template__$1,
|
|
569
|
+
__vue_module_identifier__$1,
|
|
570
|
+
undefined,
|
|
571
|
+
undefined
|
|
572
|
+
);
|
|
573
|
+
|
|
574
|
+
var script$2 = {
|
|
575
|
+
name: 'BStepItem',
|
|
576
|
+
props: {
|
|
577
|
+
label: String,
|
|
578
|
+
type: String | Object,
|
|
579
|
+
icon: String,
|
|
580
|
+
iconPack: String,
|
|
581
|
+
clickable: {
|
|
582
|
+
type: Boolean,
|
|
583
|
+
default: undefined
|
|
584
|
+
},
|
|
585
|
+
visible: {
|
|
586
|
+
type: Boolean,
|
|
587
|
+
default: true
|
|
588
|
+
}
|
|
589
|
+
},
|
|
590
|
+
data: function data() {
|
|
591
|
+
return {
|
|
592
|
+
isActive: false,
|
|
593
|
+
transitionName: null
|
|
594
|
+
};
|
|
595
|
+
},
|
|
596
|
+
methods: {
|
|
597
|
+
/**
|
|
598
|
+
* Activate step, alter animation name based on the index.
|
|
599
|
+
*/
|
|
600
|
+
activate: function activate(oldIndex, index) {
|
|
601
|
+
this.transitionName = index < oldIndex ? 'slide-next' : 'slide-prev';
|
|
602
|
+
this.isActive = true;
|
|
603
|
+
},
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* Deactivate step, alter animation name based on the index.
|
|
607
|
+
*/
|
|
608
|
+
deactivate: function deactivate(oldIndex, index) {
|
|
609
|
+
this.transitionName = index < oldIndex ? 'slide-next' : 'slide-prev';
|
|
610
|
+
this.isActive = false;
|
|
611
|
+
}
|
|
612
|
+
},
|
|
613
|
+
created: function created() {
|
|
614
|
+
if (!this.$parent.$data._isSteps) {
|
|
615
|
+
this.$destroy();
|
|
616
|
+
throw new Error('You should wrap bStepItem on a bSteps');
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
this.$parent.stepItems.push(this);
|
|
620
|
+
},
|
|
621
|
+
beforeDestroy: function beforeDestroy() {
|
|
622
|
+
var index = this.$parent.stepItems.indexOf(this);
|
|
623
|
+
|
|
624
|
+
if (index >= 0) {
|
|
625
|
+
this.$parent.stepItems.splice(index, 1);
|
|
626
|
+
}
|
|
627
|
+
},
|
|
628
|
+
render: function render(createElement) {
|
|
629
|
+
var _this = this;
|
|
630
|
+
|
|
631
|
+
// if destroy apply v-if
|
|
632
|
+
if (this.$parent.destroyOnHide) {
|
|
633
|
+
if (!this.isActive || !this.visible) {
|
|
634
|
+
return;
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
var vnode = createElement('div', {
|
|
639
|
+
directives: [{
|
|
640
|
+
name: 'show',
|
|
641
|
+
value: this.isActive && this.visible
|
|
642
|
+
}],
|
|
643
|
+
attrs: {
|
|
644
|
+
'class': 'step-item'
|
|
645
|
+
}
|
|
646
|
+
}, this.$slots.default); // check animated prop
|
|
647
|
+
|
|
648
|
+
if (this.$parent.animated) {
|
|
649
|
+
return createElement('transition', {
|
|
650
|
+
props: {
|
|
651
|
+
'name': this.transitionName
|
|
652
|
+
},
|
|
653
|
+
on: {
|
|
654
|
+
'before-enter': function beforeEnter() {
|
|
655
|
+
_this.$parent.isTransitioning = true;
|
|
656
|
+
},
|
|
657
|
+
'after-enter': function afterEnter() {
|
|
658
|
+
_this.$parent.isTransitioning = false;
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
}, [vnode]);
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
return vnode;
|
|
665
|
+
}
|
|
666
|
+
};
|
|
667
|
+
|
|
668
|
+
/* script */
|
|
669
|
+
const __vue_script__$2 = script$2;
|
|
670
|
+
|
|
671
|
+
/* template */
|
|
672
|
+
|
|
673
|
+
/* style */
|
|
674
|
+
const __vue_inject_styles__$2 = undefined;
|
|
675
|
+
/* scoped */
|
|
676
|
+
const __vue_scope_id__$2 = undefined;
|
|
677
|
+
/* module identifier */
|
|
678
|
+
const __vue_module_identifier__$2 = undefined;
|
|
679
|
+
/* functional template */
|
|
680
|
+
const __vue_is_functional_template__$2 = undefined;
|
|
681
|
+
/* style inject */
|
|
682
|
+
|
|
683
|
+
/* style inject SSR */
|
|
684
|
+
|
|
685
|
+
|
|
686
|
+
|
|
687
|
+
var StepItem = normalizeComponent_1(
|
|
688
|
+
{},
|
|
689
|
+
__vue_inject_styles__$2,
|
|
690
|
+
__vue_script__$2,
|
|
691
|
+
__vue_scope_id__$2,
|
|
692
|
+
__vue_is_functional_template__$2,
|
|
693
|
+
__vue_module_identifier__$2,
|
|
694
|
+
undefined,
|
|
695
|
+
undefined
|
|
696
|
+
);
|
|
697
|
+
|
|
698
|
+
var use = function use(plugin) {
|
|
699
|
+
if (typeof window !== 'undefined' && window.Vue) {
|
|
700
|
+
window.Vue.use(plugin);
|
|
701
|
+
}
|
|
702
|
+
};
|
|
703
|
+
var registerComponent = function registerComponent(Vue, component) {
|
|
704
|
+
Vue.component(component.name, component);
|
|
705
|
+
};
|
|
706
|
+
|
|
707
|
+
var Plugin = {
|
|
708
|
+
install: function install(Vue) {
|
|
709
|
+
registerComponent(Vue, Steps);
|
|
710
|
+
registerComponent(Vue, StepItem);
|
|
711
|
+
}
|
|
712
|
+
};
|
|
713
|
+
use(Plugin);
|
|
714
|
+
|
|
715
|
+
exports.StepItem = StepItem;
|
|
716
|
+
exports.Steps = Steps;
|
|
717
|
+
exports.default = Plugin;
|
|
718
|
+
|
|
719
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
720
|
+
|
|
721
|
+
}));
|