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