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,342 @@
|
|
|
1
|
-
/*! Buefy v0.
|
|
2
|
-
!(function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}})("undefined"!=typeof self?self:this,(function(){return (function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=271)})({0:function(e,t){e.exports=function(e,t,n,r,o){var u,i=e=e||{},c=typeof e.default;"object"!==c&&"function"!==c||(u=e,i=e.default);var a="function"==typeof i?i.options:i;t&&(a.render=t.render,a.staticRenderFns=t.staticRenderFns),r&&(a._scopeId=r);var f;if(o?(f=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),n&&n.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},a._ssrRegister=f):n&&(f=n),f){var s=a.functional,l=s?a.render:a.beforeCreate;s?a.render=function(e,t){return f.call(t),l(e,t)}:a.beforeCreate=l?[].concat(l,f):[f]}return{esModule:u,exports:i,options:a}}},1:function(e,t,n){e.exports=!n(7)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},10:function(e,t,n){var r=n(5);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},106:function(e,t,n){var r=n(0)(n(118),n(119),null,null,null);e.exports=r.exports},11:function(e,t,n){var r=n(36),o=n(28);e.exports=function(e){return r(o(e))}},118:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(37),o=n.n(r);t.default={name:"BCheckbox",props:{value:[String,Number,Boolean,Function,Object,Array,o.a],nativeValue:[String,Number,Boolean,Function,Object,Array,o.a],indeterminate:Boolean,type:String,disabled:Boolean,required:Boolean,name:String,size:String,trueValue:{type:[String,Number,Boolean,Function,Object,Array,o.a],default:!0},falseValue:{type:[String,Number,Boolean,Function,Object,Array,o.a],default:!1}},data:function(){return{newValue:this.value}},computed:{computedValue:{get:function(){return this.newValue},set:function(e){this.newValue=e,this.$emit("input",e)}}},watch:{value:function(e){this.newValue=e}}}},119:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{ref:"label",staticClass:"b-checkbox checkbox",class:[e.size,{"is-disabled":e.disabled}],attrs:{disabled:e.disabled},on:{keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key))return null;t.preventDefault(),e.$refs.label.click()}}},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.computedValue,expression:"computedValue"}],attrs:{type:"checkbox",disabled:e.disabled,required:e.required,name:e.name,"true-value":e.trueValue,"false-value":e.falseValue},domProps:{indeterminate:e.indeterminate,value:e.nativeValue,checked:Array.isArray(e.computedValue)?e._i(e.computedValue,e.nativeValue)>-1:e._q(e.computedValue,e.trueValue)},on:{click:function(e){e.stopPropagation()},change:function(t){var n=e.computedValue,r=t.target,o=r.checked?e.trueValue:e.falseValue;if(Array.isArray(n)){var u=e.nativeValue,i=e._i(n,u);r.checked?i<0&&(e.computedValue=n.concat([u])):i>-1&&(e.computedValue=n.slice(0,i).concat(n.slice(i+1)))}else e.computedValue=o}}}),e._v(" "),n("span",{staticClass:"check",class:e.type}),e._v(" "),n("span",{staticClass:"control-label"},[e._t("default")],2)])},staticRenderFns:[]}},12:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return u}));var r=function(e){"undefined"!=typeof window&&window.Vue&&window.Vue.use(e)},o=function(e,t){e.component(t.name,t)},u=function(e,t,n){e.prototype[t]=n}},13:function(e,t,n){var r=n(26)("wks"),o=n(17),u=n(2).Symbol,i="function"==typeof u;(e.exports=function(e){return r[e]||(r[e]=i&&u[e]||(i?u:o)("Symbol."+e))}).store=r},132:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(106),o=n.n(r),u=n(133),i=n.n(u),c=n(12);n.d(t,"Checkbox",(function(){return o.a})),n.d(t,"CheckboxButton",(function(){return i.a}));var a={install:function(e){Object(c.a)(e,o.a),Object(c.a)(e,i.a)}};Object(c.c)(a),t.default=a},133:function(e,t,n){var r=n(0)(n(134),n(135),null,null,null);e.exports=r.exports},134:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(37),o=n.n(r);t.default={name:"BCheckboxButton",props:{value:[String,Number,Boolean,Function,Object,Array,o.a],nativeValue:[String,Number,Boolean,Function,Object,Array,o.a],disabled:Boolean,required:Boolean,name:String,size:String,type:{type:String,default:"is-primary"}},data:function(){return{newValue:this.value,isFocused:!1}},computed:{computedValue:{get:function(){return this.newValue},set:function(e){this.newValue=e,this.$emit("input",e)}},checked:function(){return Array.isArray(this.newValue)?this.newValue.indexOf(this.nativeValue)>=0:this.newValue===this.nativeValue}},watch:{value:function(e){this.newValue=e}}}},135:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"control"},[n("label",{ref:"label",staticClass:"b-checkbox checkbox button",class:[e.checked?e.type:null,e.size,{"is-disabled":e.disabled,"is-focused":e.isFocused}],attrs:{disabled:e.disabled},on:{keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key))return null;t.preventDefault(),e.$refs.label.click()}}},[e._t("default"),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.computedValue,expression:"computedValue"}],attrs:{type:"checkbox",disabled:e.disabled,required:e.required,name:e.name},domProps:{value:e.nativeValue,checked:Array.isArray(e.computedValue)?e._i(e.computedValue,e.nativeValue)>-1:e.computedValue},on:{click:function(e){e.stopPropagation()},focus:function(t){e.isFocused=!0},blur:function(t){e.isFocused=!1},change:function(t){var n=e.computedValue,r=t.target,o=!!r.checked;if(Array.isArray(n)){var u=e.nativeValue,i=e._i(n,u);r.checked?i<0&&(e.computedValue=n.concat([u])):i>-1&&(e.computedValue=n.slice(0,i).concat(n.slice(i+1)))}else e.computedValue=o}}})],2)])},staticRenderFns:[]}},14:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},15:function(e,t,n){var r=n(5);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},16:function(e,t,n){var r=n(2),o=n(3),u=n(29),i=n(9),c=n(6),a=function(e,t,n){var f,s,l,p=e&a.F,d=e&a.G,v=e&a.S,y=e&a.P,b=e&a.B,h=e&a.W,m=d?o:o[t]||(o[t]={}),x=m.prototype,g=d?r:v?r[t]:(r[t]||{}).prototype;d&&(n=t);for(f in n)(s=!p&&g&&void 0!==g[f])&&c(m,f)||(l=s?g[f]:n[f],m[f]=d&&"function"!=typeof g[f]?n[f]:b&&s?u(l,r):h&&g[f]==l?(function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t})(l):y&&"function"==typeof l?u(Function.call,l):l,y&&((m.virtual||(m.virtual={}))[f]=l,e&a.R&&x&&!x[f]&&i(x,f,l)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,e.exports=a},17:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},19:function(e,t){e.exports=!0},2:function(e,t){var n=e.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(e,t,n){e.exports=!n(1)&&!n(7)((function(){return 7!=Object.defineProperty(n(21)("div"),"a",{get:function(){return 7}}).a}))},21:function(e,t,n){var r=n(5),o=n(2).document,u=r(o)&&r(o.createElement);e.exports=function(e){return u?o.createElement(e):{}}},22:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},24:function(e,t,n){var r=n(34),o=n(27);e.exports=Object.keys||function(e){return r(e,o)}},25:function(e,t){t.f={}.propertyIsEnumerable},26:function(e,t,n){var r=n(3),o=n(2),u=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(e.exports=function(e,t){return u[e]||(u[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(19)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},27:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},271:function(e,t,n){e.exports=n(132)},28:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},29:function(e,t,n){var r=n(32);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},3:function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},30:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},31:function(e,t,n){var r=n(26)("keys"),o=n(17);e.exports=function(e){return r[e]||(r[e]=o(e))}},32:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},33:function(e,t){t.f=Object.getOwnPropertySymbols},34:function(e,t,n){var r=n(6),o=n(11),u=n(48)(!1),i=n(31)("IE_PROTO");e.exports=function(e,t){var n,c=o(e),a=0,f=[];for(n in c)n!=i&&r(c,n)&&f.push(n);for(;t.length>a;)r(c,n=t[a++])&&(~u(f,n)||f.push(n));return f}},35:function(e,t,n){var r=n(2),o=n(3),u=n(19),i=n(40),c=n(4).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=u?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||c(t,e,{value:i.f(e)})}},36:function(e,t,n){var r=n(30);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},37:function(e,t,n){e.exports={default:n(57),__esModule:!0}},39:function(e,t,n){var r=n(4).f,o=n(6),u=n(13)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,u)&&r(e,u,{configurable:!0,value:t})}},4:function(e,t,n){var r=n(10),o=n(20),u=n(15),i=Object.defineProperty;t.f=n(1)?Object.defineProperty:function(e,t,n){if(r(e),t=u(t,!0),r(n),o)try{return i(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},40:function(e,t,n){t.f=n(13)},41:function(e,t,n){var r=n(22),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},48:function(e,t,n){var r=n(11),o=n(41),u=n(49);e.exports=function(e){return function(t,n,i){var c,a=r(t),f=o(a.length),s=u(i,f);if(e&&n!=n){for(;f>s;)if((c=a[s++])!=c)return!0}else for(;f>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}}},49:function(e,t,n){var r=n(22),o=Math.max,u=Math.min;e.exports=function(e,t){return e=r(e),e<0?o(e+t,0):u(e,t)}},5:function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},50:function(e,t,n){var r=n(34),o=n(27).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},52:function(e,t,n){e.exports=n(9)},53:function(e,t,n){var r=n(10),o=n(55),u=n(27),i=n(31)("IE_PROTO"),c=function(){},a=function(){var e,t=n(21)("iframe"),r=u.length;for(t.style.display="none",n(56).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("<script>document.F=Object<\/script>"),e.close(),a=e.F;r--;)delete a.prototype[u[r]];return a()};e.exports=Object.create||function(e,t){var n;return null!==e?(c.prototype=r(e),n=new c,c.prototype=null,n[i]=e):n=a(),void 0===t?n:o(n,t)}},55:function(e,t,n){var r=n(4),o=n(10),u=n(24);e.exports=n(1)?Object.defineProperties:function(e,t){o(e);for(var n,i=u(t),c=i.length,a=0;c>a;)r.f(e,n=i[a++],t[n]);return e}},56:function(e,t,n){var r=n(2).document;e.exports=r&&r.documentElement},57:function(e,t,n){n(58),n(64),n(65),n(66),e.exports=n(3).Symbol},58:function(e,t,n){"use strict";var r=n(2),o=n(6),u=n(1),i=n(16),c=n(52),a=n(59).KEY,f=n(7),s=n(26),l=n(39),p=n(17),d=n(13),v=n(40),y=n(35),b=n(60),h=n(61),m=n(10),x=n(5),g=n(11),w=n(15),_=n(14),O=n(53),S=n(62),V=n(63),j=n(4),k=n(24),P=V.f,E=j.f,F=S.f,C=r.Symbol,N=r.JSON,A=N&&N.stringify,M=d("_hidden"),B=d("toPrimitive"),T={}.propertyIsEnumerable,R=s("symbol-registry"),I=s("symbols"),$=s("op-symbols"),q=Object.prototype,z="function"==typeof C,D=r.QObject,W=!D||!D.prototype||!D.prototype.findChild,J=u&&f((function(){return 7!=O(E({},"a",{get:function(){return E(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=P(q,t);r&&delete q[t],E(e,t,n),r&&e!==q&&E(q,t,r)}:E,G=function(e){var t=I[e]=O(C.prototype);return t._k=e,t},K=z&&"symbol"==typeof C.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof C},U=function(e,t,n){return e===q&&U($,t,n),m(e),t=w(t,!0),m(n),o(I,t)?(n.enumerable?(o(e,M)&&e[M][t]&&(e[M][t]=!1),n=O(n,{enumerable:_(0,!1)})):(o(e,M)||E(e,M,_(1,{})),e[M][t]=!0),J(e,t,n)):E(e,t,n)},X=function(e,t){m(e);for(var n,r=b(t=g(t)),o=0,u=r.length;u>o;)U(e,n=r[o++],t[n]);return e},Y=function(e,t){return void 0===t?O(e):X(O(e),t)},L=function(e){var t=T.call(this,e=w(e,!0));return!(this===q&&o(I,e)&&!o($,e))&&(!(t||!o(this,e)||!o(I,e)||o(this,M)&&this[M][e])||t)},Q=function(e,t){if(e=g(e),t=w(t,!0),e!==q||!o(I,t)||o($,t)){var n=P(e,t);return!n||!o(I,t)||o(e,M)&&e[M][t]||(n.enumerable=!0),n}},H=function(e){for(var t,n=F(g(e)),r=[],u=0;n.length>u;)o(I,t=n[u++])||t==M||t==a||r.push(t);return r},Z=function(e){for(var t,n=e===q,r=F(n?$:g(e)),u=[],i=0;r.length>i;)!o(I,t=r[i++])||n&&!o(q,t)||u.push(I[t]);return u};z||(C=function(){if(this instanceof C)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===q&&t.call($,n),o(this,M)&&o(this[M],e)&&(this[M][e]=!1),J(this,e,_(1,n))};return u&&W&&J(q,e,{configurable:!0,set:t}),G(e)},c(C.prototype,"toString",(function(){return this._k})),V.f=Q,j.f=U,n(50).f=S.f=H,n(25).f=L,n(33).f=Z,u&&!n(19)&&c(q,"propertyIsEnumerable",L,!0),v.f=function(e){return G(d(e))}),i(i.G+i.W+i.F*!z,{Symbol:C});for(var ee="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),te=0;ee.length>te;)d(ee[te++]);for(var ne=k(d.store),re=0;ne.length>re;)y(ne[re++]);i(i.S+i.F*!z,"Symbol",{for:function(e){return o(R,e+="")?R[e]:R[e]=C(e)},keyFor:function(e){if(!K(e))throw TypeError(e+" is not a symbol!");for(var t in R)if(R[t]===e)return t},useSetter:function(){W=!0},useSimple:function(){W=!1}}),i(i.S+i.F*!z,"Object",{create:Y,defineProperty:U,defineProperties:X,getOwnPropertyDescriptor:Q,getOwnPropertyNames:H,getOwnPropertySymbols:Z}),N&&i(i.S+i.F*(!z||f((function(){var e=C();return"[null]"!=A([e])||"{}"!=A({a:e})||"{}"!=A(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=t=r[1],(x(t)||void 0!==e)&&!K(e))return h(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!K(t))return t}),r[1]=t,A.apply(N,r)}}),C.prototype[B]||n(9)(C.prototype,B,C.prototype.valueOf),l(C,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},59:function(e,t,n){var r=n(17)("meta"),o=n(5),u=n(6),i=n(4).f,c=0,a=Object.isExtensible||function(){return!0},f=!n(7)((function(){return a(Object.preventExtensions({}))})),s=function(e){i(e,r,{value:{i:"O"+ ++c,w:{}}})},l=function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!u(e,r)){if(!a(e))return"F";if(!t)return"E";s(e)}return e[r].i},p=function(e,t){if(!u(e,r)){if(!a(e))return!0;if(!t)return!1;s(e)}return e[r].w},d=function(e){return f&&v.NEED&&a(e)&&!u(e,r)&&s(e),e},v=e.exports={KEY:r,NEED:!1,fastKey:l,getWeak:p,onFreeze:d}},6:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},60:function(e,t,n){var r=n(24),o=n(33),u=n(25);e.exports=function(e){var t=r(e),n=o.f;if(n)for(var i,c=n(e),a=u.f,f=0;c.length>f;)a.call(e,i=c[f++])&&t.push(i);return t}},61:function(e,t,n){var r=n(30);e.exports=Array.isArray||function(e){return"Array"==r(e)}},62:function(e,t,n){var r=n(11),o=n(50).f,u={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(e){try{return o(e)}catch(e){return i.slice()}};e.exports.f=function(e){return i&&"[object Window]"==u.call(e)?c(e):o(r(e))}},63:function(e,t,n){var r=n(25),o=n(14),u=n(11),i=n(15),c=n(6),a=n(20),f=Object.getOwnPropertyDescriptor;t.f=n(1)?f:function(e,t){if(e=u(e),t=i(t,!0),a)try{return f(e,t)}catch(e){}if(c(e,t))return o(!r.f.call(e,t),e[t])}},64:function(e,t){},65:function(e,t,n){n(35)("asyncIterator")},66:function(e,t,n){n(35)("observable")},7:function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},9:function(e,t,n){var r=n(4),o=n(14);e.exports=n(1)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}}})}));
|
|
1
|
+
/*! Buefy v0.8.2 | MIT License | github.com/buefy/buefy */
|
|
2
|
+
(function (global, factory) {
|
|
3
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
4
|
+
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
5
|
+
(global = global || self, factory(global.Checkbox = {}));
|
|
6
|
+
}(this, function (exports) { 'use strict';
|
|
7
|
+
|
|
8
|
+
//
|
|
9
|
+
//
|
|
10
|
+
//
|
|
11
|
+
//
|
|
12
|
+
//
|
|
13
|
+
//
|
|
14
|
+
//
|
|
15
|
+
//
|
|
16
|
+
//
|
|
17
|
+
//
|
|
18
|
+
//
|
|
19
|
+
//
|
|
20
|
+
//
|
|
21
|
+
//
|
|
22
|
+
//
|
|
23
|
+
//
|
|
24
|
+
//
|
|
25
|
+
//
|
|
26
|
+
//
|
|
27
|
+
//
|
|
28
|
+
//
|
|
29
|
+
//
|
|
30
|
+
//
|
|
31
|
+
//
|
|
32
|
+
//
|
|
33
|
+
var script = {
|
|
34
|
+
name: 'BCheckbox',
|
|
35
|
+
props: {
|
|
36
|
+
value: [String, Number, Boolean, Function, Object, Array],
|
|
37
|
+
nativeValue: [String, Number, Boolean, Function, Object, Array],
|
|
38
|
+
indeterminate: Boolean,
|
|
39
|
+
type: String,
|
|
40
|
+
disabled: Boolean,
|
|
41
|
+
required: Boolean,
|
|
42
|
+
name: String,
|
|
43
|
+
size: String,
|
|
44
|
+
trueValue: {
|
|
45
|
+
type: [String, Number, Boolean, Function, Object, Array],
|
|
46
|
+
default: true
|
|
47
|
+
},
|
|
48
|
+
falseValue: {
|
|
49
|
+
type: [String, Number, Boolean, Function, Object, Array],
|
|
50
|
+
default: false
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
data: function data() {
|
|
54
|
+
return {
|
|
55
|
+
newValue: this.value
|
|
56
|
+
};
|
|
57
|
+
},
|
|
58
|
+
computed: {
|
|
59
|
+
computedValue: {
|
|
60
|
+
get: function get() {
|
|
61
|
+
return this.newValue;
|
|
62
|
+
},
|
|
63
|
+
set: function set(value) {
|
|
64
|
+
this.newValue = value;
|
|
65
|
+
this.$emit('input', value);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
watch: {
|
|
70
|
+
/**
|
|
71
|
+
* When v-model change, set internal value.
|
|
72
|
+
*/
|
|
73
|
+
value: function value(_value) {
|
|
74
|
+
this.newValue = _value;
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
methods: {
|
|
78
|
+
focus: function focus() {
|
|
79
|
+
// MacOS FireFox and Safari do not focus when clicked
|
|
80
|
+
this.$refs.input.focus();
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier
|
|
86
|
+
/* server only */
|
|
87
|
+
, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
|
|
88
|
+
if (typeof shadowMode !== 'boolean') {
|
|
89
|
+
createInjectorSSR = createInjector;
|
|
90
|
+
createInjector = shadowMode;
|
|
91
|
+
shadowMode = false;
|
|
92
|
+
} // Vue.extend constructor export interop.
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
var options = typeof script === 'function' ? script.options : script; // render functions
|
|
96
|
+
|
|
97
|
+
if (template && template.render) {
|
|
98
|
+
options.render = template.render;
|
|
99
|
+
options.staticRenderFns = template.staticRenderFns;
|
|
100
|
+
options._compiled = true; // functional template
|
|
101
|
+
|
|
102
|
+
if (isFunctionalTemplate) {
|
|
103
|
+
options.functional = true;
|
|
104
|
+
}
|
|
105
|
+
} // scopedId
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
if (scopeId) {
|
|
109
|
+
options._scopeId = scopeId;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
var hook;
|
|
113
|
+
|
|
114
|
+
if (moduleIdentifier) {
|
|
115
|
+
// server build
|
|
116
|
+
hook = function hook(context) {
|
|
117
|
+
// 2.3 injection
|
|
118
|
+
context = context || // cached call
|
|
119
|
+
this.$vnode && this.$vnode.ssrContext || // stateful
|
|
120
|
+
this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext; // functional
|
|
121
|
+
// 2.2 with runInNewContext: true
|
|
122
|
+
|
|
123
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
124
|
+
context = __VUE_SSR_CONTEXT__;
|
|
125
|
+
} // inject component styles
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
if (style) {
|
|
129
|
+
style.call(this, createInjectorSSR(context));
|
|
130
|
+
} // register component module identifier for async chunk inference
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
if (context && context._registeredComponents) {
|
|
134
|
+
context._registeredComponents.add(moduleIdentifier);
|
|
135
|
+
}
|
|
136
|
+
}; // used by ssr in case component is cached and beforeCreate
|
|
137
|
+
// never gets called
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
options._ssrRegister = hook;
|
|
141
|
+
} else if (style) {
|
|
142
|
+
hook = shadowMode ? function () {
|
|
143
|
+
style.call(this, createInjectorShadow(this.$root.$options.shadowRoot));
|
|
144
|
+
} : function (context) {
|
|
145
|
+
style.call(this, createInjector(context));
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
if (hook) {
|
|
150
|
+
if (options.functional) {
|
|
151
|
+
// register for functional component in vue file
|
|
152
|
+
var originalRender = options.render;
|
|
153
|
+
|
|
154
|
+
options.render = function renderWithStyleInjection(h, context) {
|
|
155
|
+
hook.call(context);
|
|
156
|
+
return originalRender(h, context);
|
|
157
|
+
};
|
|
158
|
+
} else {
|
|
159
|
+
// inject component registration as beforeCreate hook
|
|
160
|
+
var existing = options.beforeCreate;
|
|
161
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
return script;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
var normalizeComponent_1 = normalizeComponent;
|
|
169
|
+
|
|
170
|
+
/* script */
|
|
171
|
+
const __vue_script__ = script;
|
|
172
|
+
|
|
173
|
+
/* template */
|
|
174
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('label',{ref:"label",staticClass:"b-checkbox checkbox",class:[_vm.size, { 'is-disabled': _vm.disabled }],attrs:{"disabled":_vm.disabled},on:{"click":_vm.focus,"keydown":function($event){if(!('button' in $event)&&_vm._k($event.keyCode,"enter",13,$event.key)){ return null; }$event.preventDefault();_vm.$refs.label.click();}}},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.computedValue),expression:"computedValue"}],ref:"input",attrs:{"type":"checkbox","disabled":_vm.disabled,"required":_vm.required,"name":_vm.name,"true-value":_vm.trueValue,"false-value":_vm.falseValue},domProps:{"indeterminate":_vm.indeterminate,"value":_vm.nativeValue,"checked":Array.isArray(_vm.computedValue)?_vm._i(_vm.computedValue,_vm.nativeValue)>-1:_vm._q(_vm.computedValue,_vm.trueValue)},on:{"click":function($event){$event.stopPropagation();},"change":function($event){var $$a=_vm.computedValue,$$el=$event.target,$$c=$$el.checked?(_vm.trueValue):(_vm.falseValue);if(Array.isArray($$a)){var $$v=_vm.nativeValue,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.computedValue=$$a.concat([$$v]));}else{$$i>-1&&(_vm.computedValue=$$a.slice(0,$$i).concat($$a.slice($$i+1)));}}else{_vm.computedValue=$$c;}}}}),_vm._v(" "),_c('span',{staticClass:"check",class:_vm.type}),_vm._v(" "),_c('span',{staticClass:"control-label"},[_vm._t("default")],2)])};
|
|
175
|
+
var __vue_staticRenderFns__ = [];
|
|
176
|
+
|
|
177
|
+
/* style */
|
|
178
|
+
const __vue_inject_styles__ = undefined;
|
|
179
|
+
/* scoped */
|
|
180
|
+
const __vue_scope_id__ = undefined;
|
|
181
|
+
/* module identifier */
|
|
182
|
+
const __vue_module_identifier__ = undefined;
|
|
183
|
+
/* functional template */
|
|
184
|
+
const __vue_is_functional_template__ = false;
|
|
185
|
+
/* style inject */
|
|
186
|
+
|
|
187
|
+
/* style inject SSR */
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
var Checkbox = normalizeComponent_1(
|
|
192
|
+
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
|
193
|
+
__vue_inject_styles__,
|
|
194
|
+
__vue_script__,
|
|
195
|
+
__vue_scope_id__,
|
|
196
|
+
__vue_is_functional_template__,
|
|
197
|
+
__vue_module_identifier__,
|
|
198
|
+
undefined,
|
|
199
|
+
undefined
|
|
200
|
+
);
|
|
201
|
+
|
|
202
|
+
//
|
|
203
|
+
//
|
|
204
|
+
//
|
|
205
|
+
//
|
|
206
|
+
//
|
|
207
|
+
//
|
|
208
|
+
//
|
|
209
|
+
//
|
|
210
|
+
//
|
|
211
|
+
//
|
|
212
|
+
//
|
|
213
|
+
//
|
|
214
|
+
//
|
|
215
|
+
//
|
|
216
|
+
//
|
|
217
|
+
//
|
|
218
|
+
//
|
|
219
|
+
//
|
|
220
|
+
//
|
|
221
|
+
//
|
|
222
|
+
//
|
|
223
|
+
//
|
|
224
|
+
//
|
|
225
|
+
//
|
|
226
|
+
//
|
|
227
|
+
//
|
|
228
|
+
//
|
|
229
|
+
//
|
|
230
|
+
var script$1 = {
|
|
231
|
+
name: 'BCheckboxButton',
|
|
232
|
+
props: {
|
|
233
|
+
value: [String, Number, Boolean, Function, Object, Array],
|
|
234
|
+
nativeValue: [String, Number, Boolean, Function, Object, Array],
|
|
235
|
+
disabled: Boolean,
|
|
236
|
+
required: Boolean,
|
|
237
|
+
name: String,
|
|
238
|
+
size: String,
|
|
239
|
+
type: {
|
|
240
|
+
type: String,
|
|
241
|
+
default: 'is-primary'
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
data: function data() {
|
|
245
|
+
return {
|
|
246
|
+
newValue: this.value,
|
|
247
|
+
isFocused: false
|
|
248
|
+
};
|
|
249
|
+
},
|
|
250
|
+
computed: {
|
|
251
|
+
computedValue: {
|
|
252
|
+
get: function get() {
|
|
253
|
+
return this.newValue;
|
|
254
|
+
},
|
|
255
|
+
set: function set(value) {
|
|
256
|
+
this.newValue = value;
|
|
257
|
+
this.$emit('input', value);
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
checked: function checked() {
|
|
261
|
+
if (Array.isArray(this.newValue)) {
|
|
262
|
+
return this.newValue.indexOf(this.nativeValue) >= 0;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
return this.newValue === this.nativeValue;
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
watch: {
|
|
269
|
+
/**
|
|
270
|
+
* When v-model change, set internal value.
|
|
271
|
+
*/
|
|
272
|
+
value: function value(_value) {
|
|
273
|
+
this.newValue = _value;
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
methods: {
|
|
277
|
+
focus: function focus() {
|
|
278
|
+
// MacOS FireFox and Safari do not focus when clicked
|
|
279
|
+
this.$refs.input.focus();
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
};
|
|
283
|
+
|
|
284
|
+
/* script */
|
|
285
|
+
const __vue_script__$1 = script$1;
|
|
286
|
+
|
|
287
|
+
/* template */
|
|
288
|
+
var __vue_render__$1 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"control"},[_c('label',{ref:"label",staticClass:"b-checkbox checkbox button",class:[_vm.checked ? _vm.type : null, _vm.size, {
|
|
289
|
+
'is-disabled': _vm.disabled,
|
|
290
|
+
'is-focused': _vm.isFocused
|
|
291
|
+
}],attrs:{"disabled":_vm.disabled},on:{"click":_vm.focus,"keydown":function($event){if(!('button' in $event)&&_vm._k($event.keyCode,"enter",13,$event.key)){ return null; }$event.preventDefault();_vm.$refs.label.click();}}},[_vm._t("default"),_vm._v(" "),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.computedValue),expression:"computedValue"}],ref:"input",attrs:{"type":"checkbox","disabled":_vm.disabled,"required":_vm.required,"name":_vm.name},domProps:{"value":_vm.nativeValue,"checked":Array.isArray(_vm.computedValue)?_vm._i(_vm.computedValue,_vm.nativeValue)>-1:(_vm.computedValue)},on:{"click":function($event){$event.stopPropagation();},"focus":function($event){_vm.isFocused = true;},"blur":function($event){_vm.isFocused = false;},"change":function($event){var $$a=_vm.computedValue,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=_vm.nativeValue,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.computedValue=$$a.concat([$$v]));}else{$$i>-1&&(_vm.computedValue=$$a.slice(0,$$i).concat($$a.slice($$i+1)));}}else{_vm.computedValue=$$c;}}}})],2)])};
|
|
292
|
+
var __vue_staticRenderFns__$1 = [];
|
|
293
|
+
|
|
294
|
+
/* style */
|
|
295
|
+
const __vue_inject_styles__$1 = undefined;
|
|
296
|
+
/* scoped */
|
|
297
|
+
const __vue_scope_id__$1 = undefined;
|
|
298
|
+
/* module identifier */
|
|
299
|
+
const __vue_module_identifier__$1 = undefined;
|
|
300
|
+
/* functional template */
|
|
301
|
+
const __vue_is_functional_template__$1 = false;
|
|
302
|
+
/* style inject */
|
|
303
|
+
|
|
304
|
+
/* style inject SSR */
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
var CheckboxButton = normalizeComponent_1(
|
|
309
|
+
{ render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 },
|
|
310
|
+
__vue_inject_styles__$1,
|
|
311
|
+
__vue_script__$1,
|
|
312
|
+
__vue_scope_id__$1,
|
|
313
|
+
__vue_is_functional_template__$1,
|
|
314
|
+
__vue_module_identifier__$1,
|
|
315
|
+
undefined,
|
|
316
|
+
undefined
|
|
317
|
+
);
|
|
318
|
+
|
|
319
|
+
var use = function use(plugin) {
|
|
320
|
+
if (typeof window !== 'undefined' && window.Vue) {
|
|
321
|
+
window.Vue.use(plugin);
|
|
322
|
+
}
|
|
323
|
+
};
|
|
324
|
+
var registerComponent = function registerComponent(Vue, component) {
|
|
325
|
+
Vue.component(component.name, component);
|
|
326
|
+
};
|
|
327
|
+
|
|
328
|
+
var Plugin = {
|
|
329
|
+
install: function install(Vue) {
|
|
330
|
+
registerComponent(Vue, Checkbox);
|
|
331
|
+
registerComponent(Vue, CheckboxButton);
|
|
332
|
+
}
|
|
333
|
+
};
|
|
334
|
+
use(Plugin);
|
|
335
|
+
|
|
336
|
+
exports.Checkbox = Checkbox;
|
|
337
|
+
exports.CheckboxButton = CheckboxButton;
|
|
338
|
+
exports.default = Plugin;
|
|
339
|
+
|
|
340
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
341
|
+
|
|
342
|
+
}));
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! Buefy v0.8.2 | MIT License | github.com/buefy/buefy */
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).Checkbox={})}(this,function(e){"use strict";var t=function(e,t,n,a,i,o,u,r,c,l){"boolean"!=typeof u&&(c=r,r=u,u=!1);var s,d="function"==typeof n?n.options:n;if(e&&e.render&&(d.render=e.render,d.staticRenderFns=e.staticRenderFns,d._compiled=!0,i&&(d.functional=!0)),a&&(d._scopeId=a),o?(s=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(o)},d._ssrRegister=s):t&&(s=u?function(){t.call(this,l(this.$root.$options.shadowRoot))}:function(e){t.call(this,r(e))}),s)if(d.functional){var f=d.render;d.render=function(e,t){return s.call(t),f(e,t)}}else{var p=d.beforeCreate;d.beforeCreate=p?[].concat(p,s):[s]}return n};var n=t({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{ref:"label",staticClass:"b-checkbox checkbox",class:[e.size,{"is-disabled":e.disabled}],attrs:{disabled:e.disabled},on:{click:e.focus,keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key))return null;t.preventDefault(),e.$refs.label.click()}}},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.computedValue,expression:"computedValue"}],ref:"input",attrs:{type:"checkbox",disabled:e.disabled,required:e.required,name:e.name,"true-value":e.trueValue,"false-value":e.falseValue},domProps:{indeterminate:e.indeterminate,value:e.nativeValue,checked:Array.isArray(e.computedValue)?e._i(e.computedValue,e.nativeValue)>-1:e._q(e.computedValue,e.trueValue)},on:{click:function(e){e.stopPropagation()},change:function(t){var n=e.computedValue,a=t.target,i=a.checked?e.trueValue:e.falseValue;if(Array.isArray(n)){var o=e.nativeValue,u=e._i(n,o);a.checked?u<0&&(e.computedValue=n.concat([o])):u>-1&&(e.computedValue=n.slice(0,u).concat(n.slice(u+1)))}else e.computedValue=i}}}),e._v(" "),n("span",{staticClass:"check",class:e.type}),e._v(" "),n("span",{staticClass:"control-label"},[e._t("default")],2)])},staticRenderFns:[]},void 0,{name:"BCheckbox",props:{value:[String,Number,Boolean,Function,Object,Array],nativeValue:[String,Number,Boolean,Function,Object,Array],indeterminate:Boolean,type:String,disabled:Boolean,required:Boolean,name:String,size:String,trueValue:{type:[String,Number,Boolean,Function,Object,Array],default:!0},falseValue:{type:[String,Number,Boolean,Function,Object,Array],default:!1}},data:function(){return{newValue:this.value}},computed:{computedValue:{get:function(){return this.newValue},set:function(e){this.newValue=e,this.$emit("input",e)}}},watch:{value:function(e){this.newValue=e}},methods:{focus:function(){this.$refs.input.focus()}}},void 0,!1,void 0,void 0,void 0);var a,i=t({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"control"},[n("label",{ref:"label",staticClass:"b-checkbox checkbox button",class:[e.checked?e.type:null,e.size,{"is-disabled":e.disabled,"is-focused":e.isFocused}],attrs:{disabled:e.disabled},on:{click:e.focus,keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key))return null;t.preventDefault(),e.$refs.label.click()}}},[e._t("default"),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.computedValue,expression:"computedValue"}],ref:"input",attrs:{type:"checkbox",disabled:e.disabled,required:e.required,name:e.name},domProps:{value:e.nativeValue,checked:Array.isArray(e.computedValue)?e._i(e.computedValue,e.nativeValue)>-1:e.computedValue},on:{click:function(e){e.stopPropagation()},focus:function(t){e.isFocused=!0},blur:function(t){e.isFocused=!1},change:function(t){var n=e.computedValue,a=t.target,i=!!a.checked;if(Array.isArray(n)){var o=e.nativeValue,u=e._i(n,o);a.checked?u<0&&(e.computedValue=n.concat([o])):u>-1&&(e.computedValue=n.slice(0,u).concat(n.slice(u+1)))}else e.computedValue=i}}})],2)])},staticRenderFns:[]},void 0,{name:"BCheckboxButton",props:{value:[String,Number,Boolean,Function,Object,Array],nativeValue:[String,Number,Boolean,Function,Object,Array],disabled:Boolean,required:Boolean,name:String,size:String,type:{type:String,default:"is-primary"}},data:function(){return{newValue:this.value,isFocused:!1}},computed:{computedValue:{get:function(){return this.newValue},set:function(e){this.newValue=e,this.$emit("input",e)}},checked:function(){return Array.isArray(this.newValue)?this.newValue.indexOf(this.nativeValue)>=0:this.newValue===this.nativeValue}},watch:{value:function(e){this.newValue=e}},methods:{focus:function(){this.$refs.input.focus()}}},void 0,!1,void 0,void 0,void 0),o=function(e,t){e.component(t.name,t)},u={install:function(e){o(e,n),o(e,i)}};a=u,"undefined"!=typeof window&&window.Vue&&window.Vue.use(a),e.Checkbox=n,e.CheckboxButton=i,e.default=u,Object.defineProperty(e,"__esModule",{value:!0})});
|