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,400 @@
|
|
|
1
|
-
/*! Buefy v0.
|
|
2
|
-
!(function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("vue"));else if("function"==typeof define&&define.amd)define(["vue"],e);else{var n=e("object"==typeof exports?require("vue"):t.Vue);for(var o in n)("object"==typeof exports?exports:t)[o]=n[o]}})("undefined"!=typeof self?self:this,(function(t){return (function(t){function e(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return t[o].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,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},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=283)})({0:function(t,e){t.exports=function(t,e,n,o,r){var i,u=t=t||{},c=typeof t.default;"object"!==c&&"function"!==c||(i=t,u=t.default);var a="function"==typeof u?u.options:u;e&&(a.render=e.render,a.staticRenderFns=e.staticRenderFns),o&&(a._scopeId=o);var l;if(r?(l=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)},a._ssrRegister=l):n&&(l=n),l){var s=a.functional,f=s?a.render:a.beforeCreate;s?a.render=function(t,e){return l.call(e),f(t,e)}:a.beforeCreate=f?[].concat(f,l):[l]}return{esModule:i,exports:u,options:a}}},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 o=n(5);t.exports=function(t){if(!o(t))throw TypeError(t+" is not an object!");return t}},108:function(t,e,n){var o=n(0)(n(120),n(121),null,null,null);t.exports=o.exports},11:function(t,e,n){var o=n(36),r=n(28);t.exports=function(t){return o(r(t))}},12:function(t,e,n){"use strict";n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}));var o=function(t){"undefined"!=typeof window&&window.Vue&&window.Vue.use(t)},r=function(t,e){t.component(e.name,e)},i=function(t,e,n){t.prototype[e]=n}},120:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(51),r=n(8);e.default={name:"BModal",props:{active:Boolean,component:[Object,Function],content:String,programmatic:Boolean,props:Object,events:Object,width:{type:[String,Number],default:960},hasModalCard:Boolean,animation:{type:String,default:"zoom-out"},canCancel:{type:[Array,Boolean],default:function(){return r.a.defaultModalCanCancel}},onCancel:{type:Function,default:function(){}},scroll:{type:String,default:function(){return r.a.defaultModalScroll?r.a.defaultModalScroll:"clip"},validator:function(t){return["clip","keep"].indexOf(t)>=0}},fullScreen:Boolean,customClass:String},data:function(){return{isActive:this.active||!1,savedScrollTop:null,newWidth:"number"==typeof this.width?this.width+"px":this.width}},computed:{cancelOptions:function(){return"boolean"==typeof this.canCancel?this.canCancel?r.a.defaultModalCanCancel:[]:this.canCancel},showX:function(){return this.cancelOptions.indexOf("x")>=0},customStyle:function(){return this.fullScreen?null:{maxWidth:this.newWidth}}},watch:{active:function(t){this.isActive=t},isActive:function(){this.handleScroll()}},methods:{handleScroll:function(){if("undefined"!=typeof window){if("clip"===this.scroll)return void(this.isActive?document.documentElement.classList.add("is-clipped"):document.documentElement.classList.remove("is-clipped"));if(this.savedScrollTop=this.savedScrollTop?this.savedScrollTop:document.documentElement.scrollTop,this.isActive?document.body.classList.add("is-noscroll"):document.body.classList.remove("is-noscroll"),this.isActive)return void(document.body.style.top="-"+this.savedScrollTop+"px");document.documentElement.scrollTop=this.savedScrollTop,document.body.style.top=null,this.savedScrollTop=null}},cancel:function(t){this.cancelOptions.indexOf(t)<0||(this.onCancel.apply(null,arguments),this.close())},close:function(){var t=this;this.$emit("close"),this.$emit("update:active",!1),this.programmatic&&(this.isActive=!1,setTimeout((function(){t.$destroy(),Object(o.d)(t.$el)}),150))},keyPress:function(t){this.isActive&&27===t.keyCode&&this.cancel("escape")}},created:function(){"undefined"!=typeof window&&document.addEventListener("keyup",this.keyPress)},beforeMount:function(){this.programmatic&&document.body.appendChild(this.$el)},mounted:function(){this.programmatic?this.isActive=!0:this.isActive&&this.handleScroll()},beforeDestroy:function(){if("undefined"!=typeof window){document.removeEventListener("keyup",this.keyPress),document.documentElement.classList.remove("is-clipped");var t=this.savedScrollTop?this.savedScrollTop:document.documentElement.scrollTop;document.body.classList.remove("is-noscroll"),document.documentElement.scrollTop=t,document.body.style.top=null}}}},121:function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:t.animation}},[t.isActive?n("div",{staticClass:"modal is-active",class:[{"is-full-screen":t.fullScreen},t.customClass]},[n("div",{staticClass:"modal-background",on:{click:function(e){t.cancel("outside")}}}),t._v(" "),n("div",{staticClass:"animation-content",class:{"modal-content":!t.hasModalCard},style:t.customStyle},[t.component?n(t.component,t._g(t._b({tag:"component",on:{close:t.close}},"component",t.props,!1),t.events)):t.content?n("div",{domProps:{innerHTML:t._s(t.content)}}):t._t("default")],2),t._v(" "),t.showX?n("button",{staticClass:"modal-close is-large",attrs:{type:"button"},on:{click:function(e){t.cancel("x")}}}):t._e()]):t._e()])},staticRenderFns:[]}},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 o=n(5);t.exports=function(t,e){if(!o(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!o(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!o(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!o(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},16:function(t,e,n){var o=n(2),r=n(3),i=n(29),u=n(9),c=n(6),a=function(t,e,n){var l,s,f,d=t&a.F,p=t&a.G,v=t&a.S,m=t&a.P,h=t&a.B,y=t&a.W,b=p?r:r[e]||(r[e]={}),w=b.prototype,x=p?o:v?o[e]:(o[e]||{}).prototype;p&&(n=e);for(l in n)(s=!d&&x&&void 0!==x[l])&&c(b,l)||(f=s?x[l]:n[l],b[l]=p&&"function"!=typeof x[l]?n[l]:h&&s?i(f,o):y&&x[l]==f?(function(t){var e=function(e,n,o){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,o)}return t.apply(this,arguments)};return e.prototype=t.prototype,e})(f):m&&"function"==typeof f?i(Function.call,f):f,m&&((b.virtual||(b.virtual={}))[l]=f,t&a.R&&w&&!w[l]&&u(w,l,f)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},17:function(t,e){var n=0,o=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+o).toString(36))}},185:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"ModalProgrammatic",(function(){return s}));var o=n(70),r=n.n(o),i=n(71),u=n.n(i),c=n(108),a=n.n(c),l=n(12);n.d(e,"Modal",(function(){return a.a}));var s={open:function(t){var e=void 0,n=void 0;"string"==typeof t&&(e=t);var o={programmatic:!0,content:e};t.parent&&(n=t.parent,delete t.parent);var i=r()(o,t);return new(("undefined"!=typeof window&&window.Vue?window.Vue:u.a).extend(a.a))({parent:n,el:document.createElement("div"),propsData:i})}},f={install:function(t){Object(l.a)(t,a.a),Object(l.b)(t,"$modal",s)}};Object(l.c)(f),e.default=f},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 o=n(5),r=n(2).document,i=o(r)&&o(r.createElement);t.exports=function(t){return i?r.createElement(t):{}}},22:function(t,e){var n=Math.ceil,o=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?o:n)(t)}},24:function(t,e,n){var o=n(34),r=n(27);t.exports=Object.keys||function(t){return o(t,r)}},25:function(t,e){e.f={}.propertyIsEnumerable},26:function(t,e,n){var o=n(3),r=n(2),i=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:o.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}},283:function(t,e,n){t.exports=n(185)},29:function(t,e,n){var o=n(32);t.exports=function(t,e,n){if(o(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,o){return t.call(e,n,o)};case 3:return function(n,o,r){return t.call(e,n,o,r)}}return function(){return t.apply(e,arguments)}}},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 o=n(26)("keys"),r=n(17);t.exports=function(t){return o[t]||(o[t]=r(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 o=n(6),r=n(11),i=n(48)(!1),u=n(31)("IE_PROTO");t.exports=function(t,e){var n,c=r(t),a=0,l=[];for(n in c)n!=u&&o(c,n)&&l.push(n);for(;e.length>a;)o(c,n=e[a++])&&(~i(l,n)||l.push(n));return l}},36:function(t,e,n){var o=n(30);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==o(t)?t.split(""):Object(t)}},4:function(t,e,n){var o=n(10),r=n(20),i=n(15),u=Object.defineProperty;e.f=n(1)?Object.defineProperty:function(t,e,n){if(o(t),e=i(e,!0),o(n),r)try{return u(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}},41:function(t,e,n){var o=n(22),r=Math.min;t.exports=function(t){return t>0?r(o(t),9007199254740991):0}},48:function(t,e,n){var o=n(11),r=n(41),i=n(49);t.exports=function(t){return function(e,n,u){var c,a=o(e),l=r(a.length),s=i(u,l);if(t&&n!=n){for(;l>s;)if((c=a[s++])!=c)return!0}else for(;l>s;s++)if((t||s in a)&&a[s]===n)return t||s||0;return!t&&-1}}},49:function(t,e,n){var o=n(22),r=Math.max,i=Math.min;t.exports=function(t,e){return t=o(t),t<0?r(t+e,0):i(t,e)}},5:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},51:function(t,e,n){"use strict";function o(t,e){return e.split(".").reduce((function(t,e){return t[e]}),t)}function r(t,e,n){if(!t)return-1;if(!n||"function"!=typeof n)return t.indexOf(e);for(var o=0;o<t.length;o++)if(n(t[o],e))return o;return-1}function i(t){void 0!==t.remove?t.remove():void 0!==t.parentNode&&t.parentNode.removeChild(t)}e.a=o,e.b=r,n.d(e,"c",(function(){return u})),e.d=i;var u={Android:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/Android/i)},BlackBerry:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/iPhone|iPad|iPod/i)},Opera:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return"undefined"!=typeof window&&window.navigator.userAgent.match(/IEMobile/i)},any:function(){return u.Android()||u.BlackBerry()||u.iOS()||u.Opera()||u.Windows()}}},54:function(t,e,n){var o=n(28);t.exports=function(t){return Object(o(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}}},70:function(t,e,n){t.exports={default:n(86),__esModule:!0}},71:function(e,n){e.exports=t},8:function(t,e,n){"use strict";var o={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=o},86:function(t,e,n){n(87),t.exports=n(3).Object.assign},87:function(t,e,n){var o=n(16);o(o.S+o.F,"Object",{assign:n(88)})},88:function(t,e,n){"use strict";var o=n(24),r=n(33),i=n(25),u=n(54),c=n(36),a=Object.assign;t.exports=!a||n(7)((function(){var t={},e={},n=Symbol(),o="abcdefghijklmnopqrst";return t[n]=7,o.split("").forEach((function(t){e[t]=t})),7!=a({},t)[n]||Object.keys(a({},e)).join("")!=o}))?function(t,e){for(var n=u(t),a=arguments.length,l=1,s=r.f,f=i.f;a>l;)for(var d,p=c(arguments[l++]),v=s?o(p).concat(s(p)):o(p),m=v.length,h=0;m>h;)f.call(p,d=v[h++])&&(n[d]=p[d]);return n}:a},9:function(t,e,n){var o=n(4),r=n(14);t.exports=n(1)?function(t,e,n){return o.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, require('vue')) :
|
|
4
|
+
typeof define === 'function' && define.amd ? define(['exports', 'vue'], factory) :
|
|
5
|
+
(global = global || self, factory(global.Modal = {}, global.Vue));
|
|
6
|
+
}(this, function (exports, Vue) { 'use strict';
|
|
7
|
+
|
|
8
|
+
Vue = Vue && Vue.hasOwnProperty('default') ? Vue['default'] : Vue;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Get value of an object property/path even if it's nested
|
|
12
|
+
*/
|
|
13
|
+
function removeElement(el) {
|
|
14
|
+
if (typeof el.remove !== 'undefined') {
|
|
15
|
+
el.remove();
|
|
16
|
+
} else if (typeof el.parentNode !== 'undefined') {
|
|
17
|
+
el.parentNode.removeChild(el);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
var config = {
|
|
22
|
+
defaultContainerElement: null,
|
|
23
|
+
defaultIconPack: 'mdi',
|
|
24
|
+
defaultIconComponent: null,
|
|
25
|
+
defaultDialogConfirmText: null,
|
|
26
|
+
defaultDialogCancelText: null,
|
|
27
|
+
defaultSnackbarDuration: 3500,
|
|
28
|
+
defaultSnackbarPosition: null,
|
|
29
|
+
defaultToastDuration: 2000,
|
|
30
|
+
defaultToastPosition: null,
|
|
31
|
+
defaultNotificationDuration: 2000,
|
|
32
|
+
defaultNotificationPosition: null,
|
|
33
|
+
defaultTooltipType: 'is-primary',
|
|
34
|
+
defaultTooltipAnimated: false,
|
|
35
|
+
defaultTooltipDelay: 0,
|
|
36
|
+
defaultInputAutocomplete: 'on',
|
|
37
|
+
defaultDateFormatter: null,
|
|
38
|
+
defaultDateParser: null,
|
|
39
|
+
defaultDateCreator: null,
|
|
40
|
+
defaultDayNames: null,
|
|
41
|
+
defaultMonthNames: null,
|
|
42
|
+
defaultFirstDayOfWeek: null,
|
|
43
|
+
defaultUnselectableDaysOfWeek: null,
|
|
44
|
+
defaultTimeFormatter: null,
|
|
45
|
+
defaultTimeParser: null,
|
|
46
|
+
defaultModalCanCancel: ['escape', 'x', 'outside', 'button'],
|
|
47
|
+
defaultModalScroll: null,
|
|
48
|
+
defaultDatepickerMobileNative: true,
|
|
49
|
+
defaultTimepickerMobileNative: true,
|
|
50
|
+
defaultNoticeQueue: true,
|
|
51
|
+
defaultInputHasCounter: true,
|
|
52
|
+
defaultTaginputHasCounter: true,
|
|
53
|
+
defaultUseHtml5Validation: true,
|
|
54
|
+
defaultDropdownMobileModal: true,
|
|
55
|
+
defaultFieldLabelPosition: null,
|
|
56
|
+
defaultDatepickerYearsRange: [-100, 3],
|
|
57
|
+
defaultDatepickerNearbyMonthDays: true,
|
|
58
|
+
defaultDatepickerNearbySelectableMonthDays: false,
|
|
59
|
+
defaultDatepickerShowWeekNumber: false
|
|
60
|
+
};
|
|
61
|
+
var config$1 = config;
|
|
62
|
+
|
|
63
|
+
//
|
|
64
|
+
var script = {
|
|
65
|
+
name: 'BModal',
|
|
66
|
+
props: {
|
|
67
|
+
active: Boolean,
|
|
68
|
+
component: [Object, Function],
|
|
69
|
+
content: String,
|
|
70
|
+
programmatic: Boolean,
|
|
71
|
+
props: Object,
|
|
72
|
+
events: Object,
|
|
73
|
+
width: {
|
|
74
|
+
type: [String, Number],
|
|
75
|
+
default: 960
|
|
76
|
+
},
|
|
77
|
+
hasModalCard: Boolean,
|
|
78
|
+
animation: {
|
|
79
|
+
type: String,
|
|
80
|
+
default: 'zoom-out'
|
|
81
|
+
},
|
|
82
|
+
canCancel: {
|
|
83
|
+
type: [Array, Boolean],
|
|
84
|
+
default: function _default() {
|
|
85
|
+
return config$1.defaultModalCanCancel;
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
onCancel: {
|
|
89
|
+
type: Function,
|
|
90
|
+
default: function _default() {}
|
|
91
|
+
},
|
|
92
|
+
scroll: {
|
|
93
|
+
type: String,
|
|
94
|
+
default: function _default() {
|
|
95
|
+
return config$1.defaultModalScroll ? config$1.defaultModalScroll : 'clip';
|
|
96
|
+
},
|
|
97
|
+
validator: function validator(value) {
|
|
98
|
+
return ['clip', 'keep'].indexOf(value) >= 0;
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
fullScreen: Boolean,
|
|
102
|
+
customClass: String
|
|
103
|
+
},
|
|
104
|
+
data: function data() {
|
|
105
|
+
return {
|
|
106
|
+
isActive: this.active || false,
|
|
107
|
+
savedScrollTop: null,
|
|
108
|
+
newWidth: typeof this.width === 'number' ? this.width + 'px' : this.width
|
|
109
|
+
};
|
|
110
|
+
},
|
|
111
|
+
computed: {
|
|
112
|
+
cancelOptions: function cancelOptions() {
|
|
113
|
+
return typeof this.canCancel === 'boolean' ? this.canCancel ? config$1.defaultModalCanCancel : [] : this.canCancel;
|
|
114
|
+
},
|
|
115
|
+
showX: function showX() {
|
|
116
|
+
return this.cancelOptions.indexOf('x') >= 0;
|
|
117
|
+
},
|
|
118
|
+
customStyle: function customStyle() {
|
|
119
|
+
if (!this.fullScreen) {
|
|
120
|
+
return {
|
|
121
|
+
maxWidth: this.newWidth
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
return null;
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
watch: {
|
|
129
|
+
active: function active(value) {
|
|
130
|
+
this.isActive = value;
|
|
131
|
+
},
|
|
132
|
+
isActive: function isActive() {
|
|
133
|
+
this.handleScroll();
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
methods: {
|
|
137
|
+
handleScroll: function handleScroll() {
|
|
138
|
+
if (typeof window === 'undefined') return;
|
|
139
|
+
|
|
140
|
+
if (this.scroll === 'clip') {
|
|
141
|
+
if (this.isActive) {
|
|
142
|
+
document.documentElement.classList.add('is-clipped');
|
|
143
|
+
} else {
|
|
144
|
+
document.documentElement.classList.remove('is-clipped');
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
this.savedScrollTop = !this.savedScrollTop ? document.documentElement.scrollTop : this.savedScrollTop;
|
|
151
|
+
|
|
152
|
+
if (this.isActive) {
|
|
153
|
+
document.body.classList.add('is-noscroll');
|
|
154
|
+
} else {
|
|
155
|
+
document.body.classList.remove('is-noscroll');
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
if (this.isActive) {
|
|
159
|
+
document.body.style.top = "-".concat(this.savedScrollTop, "px");
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
document.documentElement.scrollTop = this.savedScrollTop;
|
|
164
|
+
document.body.style.top = null;
|
|
165
|
+
this.savedScrollTop = null;
|
|
166
|
+
},
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Close the Modal if canCancel and call the onCancel prop (function).
|
|
170
|
+
*/
|
|
171
|
+
cancel: function cancel(method) {
|
|
172
|
+
if (this.cancelOptions.indexOf(method) < 0) return;
|
|
173
|
+
this.onCancel.apply(null, arguments);
|
|
174
|
+
this.close();
|
|
175
|
+
},
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Call the onCancel prop (function).
|
|
179
|
+
* Emit events, and destroy modal if it's programmatic.
|
|
180
|
+
*/
|
|
181
|
+
close: function close() {
|
|
182
|
+
var _this = this;
|
|
183
|
+
|
|
184
|
+
this.$emit('close');
|
|
185
|
+
this.$emit('update:active', false); // Timeout for the animation complete before destroying
|
|
186
|
+
|
|
187
|
+
if (this.programmatic) {
|
|
188
|
+
this.isActive = false;
|
|
189
|
+
setTimeout(function () {
|
|
190
|
+
_this.$destroy();
|
|
191
|
+
|
|
192
|
+
removeElement(_this.$el);
|
|
193
|
+
}, 150);
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* Keypress event that is bound to the document.
|
|
199
|
+
*/
|
|
200
|
+
keyPress: function keyPress(event) {
|
|
201
|
+
// Esc key
|
|
202
|
+
if (this.isActive && event.keyCode === 27) this.cancel('escape');
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
created: function created() {
|
|
206
|
+
if (typeof window !== 'undefined') {
|
|
207
|
+
document.addEventListener('keyup', this.keyPress);
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
beforeMount: function beforeMount() {
|
|
211
|
+
// Insert the Modal component in body tag
|
|
212
|
+
// only if it's programmatic
|
|
213
|
+
this.programmatic && document.body.appendChild(this.$el);
|
|
214
|
+
},
|
|
215
|
+
mounted: function mounted() {
|
|
216
|
+
if (this.programmatic) this.isActive = true;else if (this.isActive) this.handleScroll();
|
|
217
|
+
},
|
|
218
|
+
beforeDestroy: function beforeDestroy() {
|
|
219
|
+
if (typeof window !== 'undefined') {
|
|
220
|
+
document.removeEventListener('keyup', this.keyPress); // reset scroll
|
|
221
|
+
|
|
222
|
+
document.documentElement.classList.remove('is-clipped');
|
|
223
|
+
var savedScrollTop = !this.savedScrollTop ? document.documentElement.scrollTop : this.savedScrollTop;
|
|
224
|
+
document.body.classList.remove('is-noscroll');
|
|
225
|
+
document.documentElement.scrollTop = savedScrollTop;
|
|
226
|
+
document.body.style.top = null;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier
|
|
232
|
+
/* server only */
|
|
233
|
+
, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
|
|
234
|
+
if (typeof shadowMode !== 'boolean') {
|
|
235
|
+
createInjectorSSR = createInjector;
|
|
236
|
+
createInjector = shadowMode;
|
|
237
|
+
shadowMode = false;
|
|
238
|
+
} // Vue.extend constructor export interop.
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
var options = typeof script === 'function' ? script.options : script; // render functions
|
|
242
|
+
|
|
243
|
+
if (template && template.render) {
|
|
244
|
+
options.render = template.render;
|
|
245
|
+
options.staticRenderFns = template.staticRenderFns;
|
|
246
|
+
options._compiled = true; // functional template
|
|
247
|
+
|
|
248
|
+
if (isFunctionalTemplate) {
|
|
249
|
+
options.functional = true;
|
|
250
|
+
}
|
|
251
|
+
} // scopedId
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
if (scopeId) {
|
|
255
|
+
options._scopeId = scopeId;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
var hook;
|
|
259
|
+
|
|
260
|
+
if (moduleIdentifier) {
|
|
261
|
+
// server build
|
|
262
|
+
hook = function hook(context) {
|
|
263
|
+
// 2.3 injection
|
|
264
|
+
context = context || // cached call
|
|
265
|
+
this.$vnode && this.$vnode.ssrContext || // stateful
|
|
266
|
+
this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext; // functional
|
|
267
|
+
// 2.2 with runInNewContext: true
|
|
268
|
+
|
|
269
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
270
|
+
context = __VUE_SSR_CONTEXT__;
|
|
271
|
+
} // inject component styles
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
if (style) {
|
|
275
|
+
style.call(this, createInjectorSSR(context));
|
|
276
|
+
} // register component module identifier for async chunk inference
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
if (context && context._registeredComponents) {
|
|
280
|
+
context._registeredComponents.add(moduleIdentifier);
|
|
281
|
+
}
|
|
282
|
+
}; // used by ssr in case component is cached and beforeCreate
|
|
283
|
+
// never gets called
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
options._ssrRegister = hook;
|
|
287
|
+
} else if (style) {
|
|
288
|
+
hook = shadowMode ? function () {
|
|
289
|
+
style.call(this, createInjectorShadow(this.$root.$options.shadowRoot));
|
|
290
|
+
} : function (context) {
|
|
291
|
+
style.call(this, createInjector(context));
|
|
292
|
+
};
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
if (hook) {
|
|
296
|
+
if (options.functional) {
|
|
297
|
+
// register for functional component in vue file
|
|
298
|
+
var originalRender = options.render;
|
|
299
|
+
|
|
300
|
+
options.render = function renderWithStyleInjection(h, context) {
|
|
301
|
+
hook.call(context);
|
|
302
|
+
return originalRender(h, context);
|
|
303
|
+
};
|
|
304
|
+
} else {
|
|
305
|
+
// inject component registration as beforeCreate hook
|
|
306
|
+
var existing = options.beforeCreate;
|
|
307
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
return script;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
var normalizeComponent_1 = normalizeComponent;
|
|
315
|
+
|
|
316
|
+
/* script */
|
|
317
|
+
const __vue_script__ = script;
|
|
318
|
+
|
|
319
|
+
/* template */
|
|
320
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{"name":_vm.animation}},[(_vm.isActive)?_c('div',{staticClass:"modal is-active",class:[{'is-full-screen': _vm.fullScreen}, _vm.customClass]},[_c('div',{staticClass:"modal-background",on:{"click":function($event){_vm.cancel('outside');}}}),_vm._v(" "),_c('div',{staticClass:"animation-content",class:{ 'modal-content': !_vm.hasModalCard },style:(_vm.customStyle)},[(_vm.component)?_c(_vm.component,_vm._g(_vm._b({tag:"component",on:{"close":_vm.close}},'component',_vm.props,false),_vm.events)):(_vm.content)?_c('div',{domProps:{"innerHTML":_vm._s(_vm.content)}}):_vm._t("default")],2),_vm._v(" "),(_vm.showX)?_c('button',{staticClass:"modal-close is-large",attrs:{"type":"button"},on:{"click":function($event){_vm.cancel('x');}}}):_vm._e()]):_vm._e()])};
|
|
321
|
+
var __vue_staticRenderFns__ = [];
|
|
322
|
+
|
|
323
|
+
/* style */
|
|
324
|
+
const __vue_inject_styles__ = undefined;
|
|
325
|
+
/* scoped */
|
|
326
|
+
const __vue_scope_id__ = undefined;
|
|
327
|
+
/* module identifier */
|
|
328
|
+
const __vue_module_identifier__ = undefined;
|
|
329
|
+
/* functional template */
|
|
330
|
+
const __vue_is_functional_template__ = false;
|
|
331
|
+
/* style inject */
|
|
332
|
+
|
|
333
|
+
/* style inject SSR */
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
var Modal = normalizeComponent_1(
|
|
338
|
+
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
|
339
|
+
__vue_inject_styles__,
|
|
340
|
+
__vue_script__,
|
|
341
|
+
__vue_scope_id__,
|
|
342
|
+
__vue_is_functional_template__,
|
|
343
|
+
__vue_module_identifier__,
|
|
344
|
+
undefined,
|
|
345
|
+
undefined
|
|
346
|
+
);
|
|
347
|
+
|
|
348
|
+
var use = function use(plugin) {
|
|
349
|
+
if (typeof window !== 'undefined' && window.Vue) {
|
|
350
|
+
window.Vue.use(plugin);
|
|
351
|
+
}
|
|
352
|
+
};
|
|
353
|
+
var registerComponent = function registerComponent(Vue, component) {
|
|
354
|
+
Vue.component(component.name, component);
|
|
355
|
+
};
|
|
356
|
+
var registerComponentProgrammatic = function registerComponentProgrammatic(Vue, property, component) {
|
|
357
|
+
if (!Vue.prototype.$buefy) Vue.prototype.$buefy = {};
|
|
358
|
+
Vue.prototype.$buefy[property] = component;
|
|
359
|
+
};
|
|
360
|
+
|
|
361
|
+
var ModalProgrammatic = {
|
|
362
|
+
open: function open(params) {
|
|
363
|
+
var content;
|
|
364
|
+
var parent;
|
|
365
|
+
if (typeof params === 'string') content = params;
|
|
366
|
+
var defaultParam = {
|
|
367
|
+
programmatic: true,
|
|
368
|
+
content: content
|
|
369
|
+
};
|
|
370
|
+
|
|
371
|
+
if (params.parent) {
|
|
372
|
+
parent = params.parent;
|
|
373
|
+
delete params.parent;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
var propsData = Object.assign(defaultParam, params);
|
|
377
|
+
var vm = typeof window !== 'undefined' && window.Vue ? window.Vue : Vue;
|
|
378
|
+
var ModalComponent = vm.extend(Modal);
|
|
379
|
+
return new ModalComponent({
|
|
380
|
+
parent: parent,
|
|
381
|
+
el: document.createElement('div'),
|
|
382
|
+
propsData: propsData
|
|
383
|
+
});
|
|
384
|
+
}
|
|
385
|
+
};
|
|
386
|
+
var Plugin = {
|
|
387
|
+
install: function install(Vue) {
|
|
388
|
+
registerComponent(Vue, Modal);
|
|
389
|
+
registerComponentProgrammatic(Vue, 'modal', ModalProgrammatic);
|
|
390
|
+
}
|
|
391
|
+
};
|
|
392
|
+
use(Plugin);
|
|
393
|
+
|
|
394
|
+
exports.Modal = Modal;
|
|
395
|
+
exports.ModalProgrammatic = ModalProgrammatic;
|
|
396
|
+
exports.default = Plugin;
|
|
397
|
+
|
|
398
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
399
|
+
|
|
400
|
+
}));
|
|
@@ -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,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e=e||self).Modal={},e.Vue)}(this,function(e,t){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;var n={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 o,l=function(e,t,n,o,l,i,a,s,c,d){"boolean"!=typeof a&&(c=s,s=a,a=!1);var u,r="function"==typeof n?n.options:n;if(e&&e.render&&(r.render=e.render,r.staticRenderFns=e.staticRenderFns,r._compiled=!0,l&&(r.functional=!0)),o&&(r._scopeId=o),i?(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(i)},r._ssrRegister=u):t&&(u=a?function(){t.call(this,d(this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),u)if(r.functional){var f=r.render;r.render=function(e,t){return u.call(t),f(e,t)}}else{var p=r.beforeCreate;r.beforeCreate=p?[].concat(p,u):[u]}return n}({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:e.animation}},[e.isActive?n("div",{staticClass:"modal is-active",class:[{"is-full-screen":e.fullScreen},e.customClass]},[n("div",{staticClass:"modal-background",on:{click:function(t){e.cancel("outside")}}}),e._v(" "),n("div",{staticClass:"animation-content",class:{"modal-content":!e.hasModalCard},style:e.customStyle},[e.component?n(e.component,e._g(e._b({tag:"component",on:{close:e.close}},"component",e.props,!1),e.events)):e.content?n("div",{domProps:{innerHTML:e._s(e.content)}}):e._t("default")],2),e._v(" "),e.showX?n("button",{staticClass:"modal-close is-large",attrs:{type:"button"},on:{click:function(t){e.cancel("x")}}}):e._e()]):e._e()])},staticRenderFns:[]},void 0,{name:"BModal",props:{active:Boolean,component:[Object,Function],content:String,programmatic:Boolean,props:Object,events:Object,width:{type:[String,Number],default:960},hasModalCard:Boolean,animation:{type:String,default:"zoom-out"},canCancel:{type:[Array,Boolean],default:function(){return n.defaultModalCanCancel}},onCancel:{type:Function,default:function(){}},scroll:{type:String,default:function(){return n.defaultModalScroll?n.defaultModalScroll:"clip"},validator:function(e){return["clip","keep"].indexOf(e)>=0}},fullScreen:Boolean,customClass:String},data:function(){return{isActive:this.active||!1,savedScrollTop:null,newWidth:"number"==typeof this.width?this.width+"px":this.width}},computed:{cancelOptions:function(){return"boolean"==typeof this.canCancel?this.canCancel?n.defaultModalCanCancel:[]:this.canCancel},showX:function(){return this.cancelOptions.indexOf("x")>=0},customStyle:function(){return this.fullScreen?null:{maxWidth:this.newWidth}}},watch:{active:function(e){this.isActive=e},isActive:function(){this.handleScroll()}},methods:{handleScroll:function(){"undefined"!=typeof window&&("clip"!==this.scroll?(this.savedScrollTop=this.savedScrollTop?this.savedScrollTop:document.documentElement.scrollTop,this.isActive?document.body.classList.add("is-noscroll"):document.body.classList.remove("is-noscroll"),this.isActive?document.body.style.top="-".concat(this.savedScrollTop,"px"):(document.documentElement.scrollTop=this.savedScrollTop,document.body.style.top=null,this.savedScrollTop=null)):this.isActive?document.documentElement.classList.add("is-clipped"):document.documentElement.classList.remove("is-clipped"))},cancel:function(e){this.cancelOptions.indexOf(e)<0||(this.onCancel.apply(null,arguments),this.close())},close:function(){var e=this;this.$emit("close"),this.$emit("update:active",!1),this.programmatic&&(this.isActive=!1,setTimeout(function(){var t;e.$destroy(),void 0!==(t=e.$el).remove?t.remove():void 0!==t.parentNode&&t.parentNode.removeChild(t)},150))},keyPress:function(e){this.isActive&&27===e.keyCode&&this.cancel("escape")}},created:function(){"undefined"!=typeof window&&document.addEventListener("keyup",this.keyPress)},beforeMount:function(){this.programmatic&&document.body.appendChild(this.$el)},mounted:function(){this.programmatic?this.isActive=!0:this.isActive&&this.handleScroll()},beforeDestroy:function(){if("undefined"!=typeof window){document.removeEventListener("keyup",this.keyPress),document.documentElement.classList.remove("is-clipped");var e=this.savedScrollTop?this.savedScrollTop:document.documentElement.scrollTop;document.body.classList.remove("is-noscroll"),document.documentElement.scrollTop=e,document.body.style.top=null}}},void 0,!1,void 0,void 0,void 0),i={open:function(e){var n,o;"string"==typeof e&&(n=e);var i={programmatic:!0,content:n};e.parent&&(o=e.parent,delete e.parent);var a=Object.assign(i,e);return new(("undefined"!=typeof window&&window.Vue?window.Vue:t).extend(l))({parent:o,el:document.createElement("div"),propsData:a})}},a={install:function(e){!function(e,t){e.component(t.name,t)}(e,l),function(e,t,n){e.prototype.$buefy||(e.prototype.$buefy={}),e.prototype.$buefy[t]=n}(e,"modal",i)}};o=a,"undefined"!=typeof window&&window.Vue&&window.Vue.use(o),e.Modal=l,e.ModalProgrammatic=i,e.default=a,Object.defineProperty(e,"__esModule",{value:!0})});
|