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,447 @@
|
|
|
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 o in n)("object"==typeof exports?exports:e)[o]=n[o]}})("undefined"!=typeof self?self:this,(function(){return (function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},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=277)})({0:function(e,t){e.exports=function(e,t,n,o,r){var i,a=e=e||{},u=typeof e.default;"object"!==u&&"function"!==u||(i=e,a=e.default);var l="function"==typeof a?a.options:a;t&&(l.render=t.render,l.staticRenderFns=t.staticRenderFns),o&&(l._scopeId=o);var s;if(r?(s=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(r)},l._ssrRegister=s):n&&(s=n),s){var f=l.functional,c=f?l.render:l.beforeCreate;f?l.render=function(e,t){return s.call(t),c(e,t)}:l.beforeCreate=c?[].concat(c,s):[s]}return{esModule:i,exports:a,options:l}}},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 o=n(5);e.exports=function(e){if(!o(e))throw TypeError(e+" is not an object!");return e}},100:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"field",class:[e.rootClasses,e.fieldType()]},[e.horizontal?n("div",{staticClass:"field-label",class:[e.customClass,e.fieldLabelSize]},[e.hasLabel?n("label",{staticClass:"label",class:e.customClass,attrs:{for:e.labelFor}},[e.$slots.label?e._t("label"):[e._v(e._s(e.label))]],2):e._e()]):[e.hasLabel?n("label",{staticClass:"label",class:e.customClass,attrs:{for:e.labelFor}},[e.$slots.label?e._t("label"):[e._v(e._s(e.label))]],2):e._e()],e._v(" "),e.horizontal?n("b-field-body",{attrs:{message:e.newMessage?e.formattedMessage:"",type:e.newType}},[e._t("default")],2):[e._t("default")],e._v(" "),e.newMessage&&!e.horizontal?n("p",{staticClass:"help",class:e.newType,domProps:{innerHTML:e._s(e.formattedMessage)}}):e._e()],2)},staticRenderFns:[]}},12:function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var o=function(e){"undefined"!=typeof window&&window.Vue&&window.Vue.use(e)},r=function(e,t){e.component(t.name,t)},i=function(e,t,n){e.prototype[t]=n}},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 o=n(5);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},16:function(e,t,n){var o=n(2),r=n(3),i=n(29),a=n(9),u=n(6),l=function(e,t,n){var s,f,c,d=e&l.F,p=e&l.G,h=e&l.S,b=e&l.P,y=e&l.B,v=e&l.W,g=p?r:r[t]||(r[t]={}),m=g.prototype,_=p?o:h?o[t]:(o[t]||{}).prototype;p&&(n=t);for(s in n)(f=!d&&_&&void 0!==_[s])&&u(g,s)||(c=f?_[s]:n[s],g[s]=p&&"function"!=typeof _[s]?n[s]:y&&f?i(c,o):v&&_[s]==c?(function(e){var t=function(t,n,o){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,o)}return e.apply(this,arguments)};return t.prototype=e.prototype,t})(c):b&&"function"==typeof c?i(Function.call,c):c,b&&((g.virtual||(g.virtual={}))[s]=c,e&l.R&&m&&!m[s]&&a(m,s,c)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},165:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(91),r=n.n(o),i=n(12);n.d(t,"Field",(function(){return r.a}));var a={install:function(e){Object(i.a)(e,r.a)}};Object(i.c)(a),t.default=a},18:function(e,t,n){"use strict";t.__esModule=!0;var o=n(42),r=(function(e){return e&&e.__esModule?e:{default:e}})(o);t.default=function(e,t,n){return t in e?(0,r.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},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 o=n(5),r=n(2).document,i=o(r)&&o(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},277:function(e,t,n){e.exports=n(165)},29:function(e,t,n){var o=n(32);e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}}},3:function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},32:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},4:function(e,t,n){var o=n(10),r=n(20),i=n(15),a=Object.defineProperty;t.f=n(1)?Object.defineProperty:function(e,t,n){if(o(e),t=i(t,!0),o(n),r)try{return a(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}},42:function(e,t,n){e.exports={default:n(43),__esModule:!0}},43:function(e,t,n){n(44);var o=n(3).Object;e.exports=function(e,t,n){return o.defineProperty(e,t,n)}},44:function(e,t,n){var o=n(16);o(o.S+o.F*!n(1),"Object",{defineProperty:n(4).f})},5:function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},6:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},7:function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},8:function(e,t,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};t.a=o},9:function(e,t,n){var o=n(4),r=n(14);e.exports=n(1)?function(e,t,n){return o.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},91:function(e,t,n){var o=n(0)(n(97),n(100),null,null,null);e.exports=o.exports},97:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(18),r=n.n(o),i=n(8),a=n(98),u=n.n(a);t.default={name:"BField",components:r()({},u.a.name,u.a),props:{type:[String,Object],label:String,labelFor:String,message:[String,Array,Object],grouped:Boolean,groupMultiline:Boolean,position:String,expanded:Boolean,horizontal:Boolean,addons:{type:Boolean,default:!0},customClass:String,labelPosition:{type:String,default:function(){return i.a.defaultFieldLabelPosition}}},data:function(){return{newType:this.type,newMessage:this.message,fieldLabelSize:null,_isField:!0}},computed:{rootClasses:function(){return[this.newPosition,{"is-expanded":this.expanded,"is-grouped-multiline":this.groupMultiline,"is-horizontal":this.horizontal,"is-floating-in-label":this.hasLabel&&!this.horizontal&&"inside"===this.labelPosition,"is-floating-label":this.hasLabel&&!this.horizontal&&"on-border"===this.labelPosition}]},newPosition:function(){if(void 0!==this.position){var e=this.position.split("-");if(!(e.length<1)){var t=this.grouped?"is-grouped-":"has-addons-";return this.position?t+e[1]:void 0}}},formattedMessage:function(){if("string"==typeof this.newMessage)return this.newMessage;var e=[];if(Array.isArray(this.newMessage))this.newMessage.forEach((function(t){if("string"==typeof t)e.push(t);else for(var n in t)t[n]&&e.push(n)}));else for(var t in this.newMessage)this.newMessage[t]&&e.push(t);return e.filter((function(e){if(e)return e})).join(" <br> ")},hasLabel:function(){return this.label||this.$slots.label}},watch:{type:function(e){this.newType=e},message:function(e){this.newMessage=e}},methods:{fieldType:function(){if(this.grouped)return"is-grouped";var e=0;return this.$slots.default&&(e=this.$slots.default.reduce((function(e,t){return t.tag?e+1:e}),0)),e>1&&this.addons&&!this.horizontal?"has-addons":void 0}},mounted:function(){if(this.horizontal){this.$el.querySelectorAll(".input, .select, .button, .textarea").length>0&&(this.fieldLabelSize="is-normal")}}}},98:function(e,t,n){var o=n(0)(n(99),null,null,null,null);e.exports=o.exports},99:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"BFieldBody",props:{message:{type:String},type:{type:[String,Object]}},render:function(e){var t=this;return e("div",{attrs:{class:"field-body"}},this.$slots.default.map((function(n){return n.tag?t.message?e("b-field",{attrs:{message:t.message,type:t.type}},[n]):e("b-field",{attrs:{type:t.type}},[n]):n})))}}}})}));
|
|
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.Field = {}));
|
|
6
|
+
}(this, function (exports) { 'use strict';
|
|
7
|
+
|
|
8
|
+
function _defineProperty(obj, key, value) {
|
|
9
|
+
if (key in obj) {
|
|
10
|
+
Object.defineProperty(obj, key, {
|
|
11
|
+
value: value,
|
|
12
|
+
enumerable: true,
|
|
13
|
+
configurable: true,
|
|
14
|
+
writable: true
|
|
15
|
+
});
|
|
16
|
+
} else {
|
|
17
|
+
obj[key] = value;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
return obj;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
var config = {
|
|
24
|
+
defaultContainerElement: null,
|
|
25
|
+
defaultIconPack: 'mdi',
|
|
26
|
+
defaultIconComponent: null,
|
|
27
|
+
defaultDialogConfirmText: null,
|
|
28
|
+
defaultDialogCancelText: null,
|
|
29
|
+
defaultSnackbarDuration: 3500,
|
|
30
|
+
defaultSnackbarPosition: null,
|
|
31
|
+
defaultToastDuration: 2000,
|
|
32
|
+
defaultToastPosition: null,
|
|
33
|
+
defaultNotificationDuration: 2000,
|
|
34
|
+
defaultNotificationPosition: null,
|
|
35
|
+
defaultTooltipType: 'is-primary',
|
|
36
|
+
defaultTooltipAnimated: false,
|
|
37
|
+
defaultTooltipDelay: 0,
|
|
38
|
+
defaultInputAutocomplete: 'on',
|
|
39
|
+
defaultDateFormatter: null,
|
|
40
|
+
defaultDateParser: null,
|
|
41
|
+
defaultDateCreator: null,
|
|
42
|
+
defaultDayNames: null,
|
|
43
|
+
defaultMonthNames: null,
|
|
44
|
+
defaultFirstDayOfWeek: null,
|
|
45
|
+
defaultUnselectableDaysOfWeek: null,
|
|
46
|
+
defaultTimeFormatter: null,
|
|
47
|
+
defaultTimeParser: null,
|
|
48
|
+
defaultModalCanCancel: ['escape', 'x', 'outside', 'button'],
|
|
49
|
+
defaultModalScroll: null,
|
|
50
|
+
defaultDatepickerMobileNative: true,
|
|
51
|
+
defaultTimepickerMobileNative: true,
|
|
52
|
+
defaultNoticeQueue: true,
|
|
53
|
+
defaultInputHasCounter: true,
|
|
54
|
+
defaultTaginputHasCounter: true,
|
|
55
|
+
defaultUseHtml5Validation: true,
|
|
56
|
+
defaultDropdownMobileModal: true,
|
|
57
|
+
defaultFieldLabelPosition: null,
|
|
58
|
+
defaultDatepickerYearsRange: [-100, 3],
|
|
59
|
+
defaultDatepickerNearbyMonthDays: true,
|
|
60
|
+
defaultDatepickerNearbySelectableMonthDays: false,
|
|
61
|
+
defaultDatepickerShowWeekNumber: false
|
|
62
|
+
};
|
|
63
|
+
var config$1 = config;
|
|
64
|
+
|
|
65
|
+
var script = {
|
|
66
|
+
name: 'BFieldBody',
|
|
67
|
+
props: {
|
|
68
|
+
message: {
|
|
69
|
+
type: String
|
|
70
|
+
},
|
|
71
|
+
type: {
|
|
72
|
+
type: [String, Object]
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
render: function render(createElement) {
|
|
76
|
+
var _this = this;
|
|
77
|
+
|
|
78
|
+
return createElement('div', {
|
|
79
|
+
attrs: {
|
|
80
|
+
'class': 'field-body'
|
|
81
|
+
}
|
|
82
|
+
}, this.$slots.default.map(function (element) {
|
|
83
|
+
// skip returns and comments
|
|
84
|
+
if (!element.tag) {
|
|
85
|
+
return element;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
if (_this.message) {
|
|
89
|
+
return createElement('b-field', {
|
|
90
|
+
attrs: {
|
|
91
|
+
message: _this.message,
|
|
92
|
+
'type': _this.type
|
|
93
|
+
}
|
|
94
|
+
}, [element]);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
return createElement('b-field', {
|
|
98
|
+
attrs: {
|
|
99
|
+
'type': _this.type
|
|
100
|
+
}
|
|
101
|
+
}, [element]);
|
|
102
|
+
}));
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier
|
|
107
|
+
/* server only */
|
|
108
|
+
, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
|
|
109
|
+
if (typeof shadowMode !== 'boolean') {
|
|
110
|
+
createInjectorSSR = createInjector;
|
|
111
|
+
createInjector = shadowMode;
|
|
112
|
+
shadowMode = false;
|
|
113
|
+
} // Vue.extend constructor export interop.
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
var options = typeof script === 'function' ? script.options : script; // render functions
|
|
117
|
+
|
|
118
|
+
if (template && template.render) {
|
|
119
|
+
options.render = template.render;
|
|
120
|
+
options.staticRenderFns = template.staticRenderFns;
|
|
121
|
+
options._compiled = true; // functional template
|
|
122
|
+
|
|
123
|
+
if (isFunctionalTemplate) {
|
|
124
|
+
options.functional = true;
|
|
125
|
+
}
|
|
126
|
+
} // scopedId
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
if (scopeId) {
|
|
130
|
+
options._scopeId = scopeId;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
var hook;
|
|
134
|
+
|
|
135
|
+
if (moduleIdentifier) {
|
|
136
|
+
// server build
|
|
137
|
+
hook = function hook(context) {
|
|
138
|
+
// 2.3 injection
|
|
139
|
+
context = context || // cached call
|
|
140
|
+
this.$vnode && this.$vnode.ssrContext || // stateful
|
|
141
|
+
this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext; // functional
|
|
142
|
+
// 2.2 with runInNewContext: true
|
|
143
|
+
|
|
144
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
145
|
+
context = __VUE_SSR_CONTEXT__;
|
|
146
|
+
} // inject component styles
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
if (style) {
|
|
150
|
+
style.call(this, createInjectorSSR(context));
|
|
151
|
+
} // register component module identifier for async chunk inference
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
if (context && context._registeredComponents) {
|
|
155
|
+
context._registeredComponents.add(moduleIdentifier);
|
|
156
|
+
}
|
|
157
|
+
}; // used by ssr in case component is cached and beforeCreate
|
|
158
|
+
// never gets called
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
options._ssrRegister = hook;
|
|
162
|
+
} else if (style) {
|
|
163
|
+
hook = shadowMode ? function () {
|
|
164
|
+
style.call(this, createInjectorShadow(this.$root.$options.shadowRoot));
|
|
165
|
+
} : function (context) {
|
|
166
|
+
style.call(this, createInjector(context));
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
if (hook) {
|
|
171
|
+
if (options.functional) {
|
|
172
|
+
// register for functional component in vue file
|
|
173
|
+
var originalRender = options.render;
|
|
174
|
+
|
|
175
|
+
options.render = function renderWithStyleInjection(h, context) {
|
|
176
|
+
hook.call(context);
|
|
177
|
+
return originalRender(h, context);
|
|
178
|
+
};
|
|
179
|
+
} else {
|
|
180
|
+
// inject component registration as beforeCreate hook
|
|
181
|
+
var existing = options.beforeCreate;
|
|
182
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
return script;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
var normalizeComponent_1 = normalizeComponent;
|
|
190
|
+
|
|
191
|
+
/* script */
|
|
192
|
+
const __vue_script__ = script;
|
|
193
|
+
|
|
194
|
+
/* template */
|
|
195
|
+
|
|
196
|
+
/* style */
|
|
197
|
+
const __vue_inject_styles__ = undefined;
|
|
198
|
+
/* scoped */
|
|
199
|
+
const __vue_scope_id__ = undefined;
|
|
200
|
+
/* module identifier */
|
|
201
|
+
const __vue_module_identifier__ = undefined;
|
|
202
|
+
/* functional template */
|
|
203
|
+
const __vue_is_functional_template__ = undefined;
|
|
204
|
+
/* style inject */
|
|
205
|
+
|
|
206
|
+
/* style inject SSR */
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
var FieldBody = normalizeComponent_1(
|
|
211
|
+
{},
|
|
212
|
+
__vue_inject_styles__,
|
|
213
|
+
__vue_script__,
|
|
214
|
+
__vue_scope_id__,
|
|
215
|
+
__vue_is_functional_template__,
|
|
216
|
+
__vue_module_identifier__,
|
|
217
|
+
undefined,
|
|
218
|
+
undefined
|
|
219
|
+
);
|
|
220
|
+
|
|
221
|
+
var script$1 = {
|
|
222
|
+
name: 'BField',
|
|
223
|
+
components: _defineProperty({}, FieldBody.name, FieldBody),
|
|
224
|
+
props: {
|
|
225
|
+
type: [String, Object],
|
|
226
|
+
label: String,
|
|
227
|
+
labelFor: String,
|
|
228
|
+
message: [String, Array, Object],
|
|
229
|
+
grouped: Boolean,
|
|
230
|
+
groupMultiline: Boolean,
|
|
231
|
+
position: String,
|
|
232
|
+
expanded: Boolean,
|
|
233
|
+
horizontal: Boolean,
|
|
234
|
+
addons: {
|
|
235
|
+
type: Boolean,
|
|
236
|
+
default: true
|
|
237
|
+
},
|
|
238
|
+
customClass: String,
|
|
239
|
+
labelPosition: {
|
|
240
|
+
type: String,
|
|
241
|
+
default: function _default() {
|
|
242
|
+
return config$1.defaultFieldLabelPosition;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
data: function data() {
|
|
247
|
+
return {
|
|
248
|
+
newType: this.type,
|
|
249
|
+
newMessage: this.message,
|
|
250
|
+
fieldLabelSize: null,
|
|
251
|
+
_isField: true // Used internally by Input and Select
|
|
252
|
+
|
|
253
|
+
};
|
|
254
|
+
},
|
|
255
|
+
computed: {
|
|
256
|
+
rootClasses: function rootClasses() {
|
|
257
|
+
return [this.newPosition, {
|
|
258
|
+
'is-expanded': this.expanded,
|
|
259
|
+
'is-grouped-multiline': this.groupMultiline,
|
|
260
|
+
'is-horizontal': this.horizontal,
|
|
261
|
+
'is-floating-in-label': this.hasLabel && !this.horizontal && this.labelPosition === 'inside',
|
|
262
|
+
'is-floating-label': this.hasLabel && !this.horizontal && this.labelPosition === 'on-border'
|
|
263
|
+
}, this.numberInputClasses];
|
|
264
|
+
},
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Correct Bulma class for the side of the addon or group.
|
|
268
|
+
*
|
|
269
|
+
* This is not kept like the others (is-small, etc.),
|
|
270
|
+
* because since 'has-addons' is set automatically it
|
|
271
|
+
* doesn't make sense to teach users what addons are exactly.
|
|
272
|
+
*/
|
|
273
|
+
newPosition: function newPosition() {
|
|
274
|
+
if (this.position === undefined) return;
|
|
275
|
+
var position = this.position.split('-');
|
|
276
|
+
if (position.length < 1) return;
|
|
277
|
+
var prefix = this.grouped ? 'is-grouped-' : 'has-addons-';
|
|
278
|
+
if (this.position) return prefix + position[1];
|
|
279
|
+
},
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* Formatted message in case it's an array
|
|
283
|
+
* (each element is separated by <br> tag)
|
|
284
|
+
*/
|
|
285
|
+
formattedMessage: function formattedMessage() {
|
|
286
|
+
if (typeof this.newMessage === 'string') {
|
|
287
|
+
return this.newMessage;
|
|
288
|
+
} else {
|
|
289
|
+
var messages = [];
|
|
290
|
+
|
|
291
|
+
if (Array.isArray(this.newMessage)) {
|
|
292
|
+
this.newMessage.forEach(function (message) {
|
|
293
|
+
if (typeof message === 'string') {
|
|
294
|
+
messages.push(message);
|
|
295
|
+
} else {
|
|
296
|
+
for (var key in message) {
|
|
297
|
+
if (message[key]) {
|
|
298
|
+
messages.push(key);
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
});
|
|
303
|
+
} else {
|
|
304
|
+
for (var key in this.newMessage) {
|
|
305
|
+
if (this.newMessage[key]) {
|
|
306
|
+
messages.push(key);
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
return messages.filter(function (m) {
|
|
312
|
+
if (m) return m;
|
|
313
|
+
}).join(' <br> ');
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
hasLabel: function hasLabel() {
|
|
317
|
+
return this.label || this.$slots.label;
|
|
318
|
+
},
|
|
319
|
+
numberInputClasses: function numberInputClasses() {
|
|
320
|
+
if (this.$slots.default) {
|
|
321
|
+
var numberinput = this.$slots.default.filter(function (node) {
|
|
322
|
+
return node.tag && node.tag.toLowerCase().indexOf('numberinput') >= 0;
|
|
323
|
+
})[0];
|
|
324
|
+
|
|
325
|
+
if (numberinput) {
|
|
326
|
+
var classes = ['has-numberinput'];
|
|
327
|
+
var controlsPosition = numberinput.componentOptions.propsData.controlsPosition;
|
|
328
|
+
var size = numberinput.componentOptions.propsData.size;
|
|
329
|
+
|
|
330
|
+
if (controlsPosition) {
|
|
331
|
+
classes.push("has-numberinput-".concat(controlsPosition));
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
if (size) {
|
|
335
|
+
classes.push("has-numberinput-".concat(size));
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
return classes;
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
return null;
|
|
343
|
+
}
|
|
344
|
+
},
|
|
345
|
+
watch: {
|
|
346
|
+
/**
|
|
347
|
+
* Set internal type when prop change.
|
|
348
|
+
*/
|
|
349
|
+
type: function type(value) {
|
|
350
|
+
this.newType = value;
|
|
351
|
+
},
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* Set internal message when prop change.
|
|
355
|
+
*/
|
|
356
|
+
message: function message(value) {
|
|
357
|
+
this.newMessage = value;
|
|
358
|
+
}
|
|
359
|
+
},
|
|
360
|
+
methods: {
|
|
361
|
+
/**
|
|
362
|
+
* Field has addons if there are more than one slot
|
|
363
|
+
* (element / component) in the Field.
|
|
364
|
+
* Or is grouped when prop is set.
|
|
365
|
+
* Is a method to be called when component re-render.
|
|
366
|
+
*/
|
|
367
|
+
fieldType: function fieldType() {
|
|
368
|
+
if (this.grouped) return 'is-grouped';
|
|
369
|
+
var renderedNode = 0;
|
|
370
|
+
|
|
371
|
+
if (this.$slots.default) {
|
|
372
|
+
renderedNode = this.$slots.default.reduce(function (i, node) {
|
|
373
|
+
return node.tag ? i + 1 : i;
|
|
374
|
+
}, 0);
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
if (renderedNode > 1 && this.addons && !this.horizontal) {
|
|
378
|
+
return 'has-addons';
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
},
|
|
382
|
+
mounted: function mounted() {
|
|
383
|
+
if (this.horizontal) {
|
|
384
|
+
// Bulma docs: .is-normal for any .input or .button
|
|
385
|
+
var elements = this.$el.querySelectorAll('.input, .select, .button, .textarea, .b-slider');
|
|
386
|
+
|
|
387
|
+
if (elements.length > 0) {
|
|
388
|
+
this.fieldLabelSize = 'is-normal';
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
};
|
|
393
|
+
|
|
394
|
+
/* script */
|
|
395
|
+
const __vue_script__$1 = script$1;
|
|
396
|
+
|
|
397
|
+
/* template */
|
|
398
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"field",class:[_vm.rootClasses, _vm.fieldType()]},[(_vm.horizontal)?_c('div',{staticClass:"field-label",class:[_vm.customClass, _vm.fieldLabelSize]},[(_vm.hasLabel)?_c('label',{staticClass:"label",class:_vm.customClass,attrs:{"for":_vm.labelFor}},[(_vm.$slots.label)?_vm._t("label"):[_vm._v(_vm._s(_vm.label))]],2):_vm._e()]):[(_vm.hasLabel)?_c('label',{staticClass:"label",class:_vm.customClass,attrs:{"for":_vm.labelFor}},[(_vm.$slots.label)?_vm._t("label"):[_vm._v(_vm._s(_vm.label))]],2):_vm._e()],_vm._v(" "),(_vm.horizontal)?_c('b-field-body',{attrs:{"message":_vm.newMessage ? _vm.formattedMessage : '',"type":_vm.newType}},[_vm._t("default")],2):[_vm._t("default")],_vm._v(" "),(_vm.newMessage && !_vm.horizontal)?_c('p',{staticClass:"help",class:_vm.newType,domProps:{"innerHTML":_vm._s(_vm.formattedMessage)}}):_vm._e()],2)};
|
|
399
|
+
var __vue_staticRenderFns__ = [];
|
|
400
|
+
|
|
401
|
+
/* style */
|
|
402
|
+
const __vue_inject_styles__$1 = undefined;
|
|
403
|
+
/* scoped */
|
|
404
|
+
const __vue_scope_id__$1 = undefined;
|
|
405
|
+
/* module identifier */
|
|
406
|
+
const __vue_module_identifier__$1 = undefined;
|
|
407
|
+
/* functional template */
|
|
408
|
+
const __vue_is_functional_template__$1 = false;
|
|
409
|
+
/* style inject */
|
|
410
|
+
|
|
411
|
+
/* style inject SSR */
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
var Field = normalizeComponent_1(
|
|
416
|
+
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
|
417
|
+
__vue_inject_styles__$1,
|
|
418
|
+
__vue_script__$1,
|
|
419
|
+
__vue_scope_id__$1,
|
|
420
|
+
__vue_is_functional_template__$1,
|
|
421
|
+
__vue_module_identifier__$1,
|
|
422
|
+
undefined,
|
|
423
|
+
undefined
|
|
424
|
+
);
|
|
425
|
+
|
|
426
|
+
var use = function use(plugin) {
|
|
427
|
+
if (typeof window !== 'undefined' && window.Vue) {
|
|
428
|
+
window.Vue.use(plugin);
|
|
429
|
+
}
|
|
430
|
+
};
|
|
431
|
+
var registerComponent = function registerComponent(Vue, component) {
|
|
432
|
+
Vue.component(component.name, component);
|
|
433
|
+
};
|
|
434
|
+
|
|
435
|
+
var Plugin = {
|
|
436
|
+
install: function install(Vue) {
|
|
437
|
+
registerComponent(Vue, Field);
|
|
438
|
+
}
|
|
439
|
+
};
|
|
440
|
+
use(Plugin);
|
|
441
|
+
|
|
442
|
+
exports.Field = Field;
|
|
443
|
+
exports.default = Plugin;
|
|
444
|
+
|
|
445
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
446
|
+
|
|
447
|
+
}));
|
|
@@ -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).Field={})}(this,function(e){"use strict";var t={defaultContainerElement:null,defaultIconPack:"mdi",defaultIconComponent:null,defaultDialogConfirmText:null,defaultDialogCancelText:null,defaultSnackbarDuration:3500,defaultSnackbarPosition:null,defaultToastDuration:2e3,defaultToastPosition:null,defaultNotificationDuration:2e3,defaultNotificationPosition:null,defaultTooltipType:"is-primary",defaultTooltipAnimated:!1,defaultTooltipDelay:0,defaultInputAutocomplete:"on",defaultDateFormatter:null,defaultDateParser:null,defaultDateCreator:null,defaultDayNames:null,defaultMonthNames:null,defaultFirstDayOfWeek:null,defaultUnselectableDaysOfWeek:null,defaultTimeFormatter:null,defaultTimeParser:null,defaultModalCanCancel:["escape","x","outside","button"],defaultModalScroll:null,defaultDatepickerMobileNative:!0,defaultTimepickerMobileNative:!0,defaultNoticeQueue:!0,defaultInputHasCounter:!0,defaultTaginputHasCounter:!0,defaultUseHtml5Validation:!0,defaultDropdownMobileModal:!0,defaultFieldLabelPosition:null,defaultDatepickerYearsRange:[-100,3],defaultDatepickerNearbyMonthDays:!0,defaultDatepickerNearbySelectableMonthDays:!1,defaultDatepickerShowWeekNumber:!1};var a=function(e,t,a,n,i,s,l,o,r,u){"boolean"!=typeof l&&(r=o,o=l,l=!1);var d,f="function"==typeof a?a.options:a;if(e&&e.render&&(f.render=e.render,f.staticRenderFns=e.staticRenderFns,f._compiled=!0,i&&(f.functional=!0)),n&&(f._scopeId=n),s?(d=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,r(e)),e&&e._registeredComponents&&e._registeredComponents.add(s)},f._ssrRegister=d):t&&(d=l?function(){t.call(this,u(this.$root.$options.shadowRoot))}:function(e){t.call(this,o(e))}),d)if(f.functional){var p=f.render;f.render=function(e,t){return d.call(t),p(e,t)}}else{var c=f.beforeCreate;f.beforeCreate=c?[].concat(c,d):[d]}return a};var n,i,s,l=a({},void 0,{name:"BFieldBody",props:{message:{type:String},type:{type:[String,Object]}},render:function(e){var t=this;return e("div",{attrs:{class:"field-body"}},this.$slots.default.map(function(a){return a.tag?t.message?e("b-field",{attrs:{message:t.message,type:t.type}},[a]):e("b-field",{attrs:{type:t.type}},[a]):a}))}},void 0,void 0,void 0,void 0,void 0);var o,r=a({render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"field",class:[e.rootClasses,e.fieldType()]},[e.horizontal?a("div",{staticClass:"field-label",class:[e.customClass,e.fieldLabelSize]},[e.hasLabel?a("label",{staticClass:"label",class:e.customClass,attrs:{for:e.labelFor}},[e.$slots.label?e._t("label"):[e._v(e._s(e.label))]],2):e._e()]):[e.hasLabel?a("label",{staticClass:"label",class:e.customClass,attrs:{for:e.labelFor}},[e.$slots.label?e._t("label"):[e._v(e._s(e.label))]],2):e._e()],e._v(" "),e.horizontal?a("b-field-body",{attrs:{message:e.newMessage?e.formattedMessage:"",type:e.newType}},[e._t("default")],2):[e._t("default")],e._v(" "),e.newMessage&&!e.horizontal?a("p",{staticClass:"help",class:e.newType,domProps:{innerHTML:e._s(e.formattedMessage)}}):e._e()],2)},staticRenderFns:[]},void 0,{name:"BField",components:(n={},i=l.name,s=l,i in n?Object.defineProperty(n,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):n[i]=s,n),props:{type:[String,Object],label:String,labelFor:String,message:[String,Array,Object],grouped:Boolean,groupMultiline:Boolean,position:String,expanded:Boolean,horizontal:Boolean,addons:{type:Boolean,default:!0},customClass:String,labelPosition:{type:String,default:function(){return t.defaultFieldLabelPosition}}},data:function(){return{newType:this.type,newMessage:this.message,fieldLabelSize:null,_isField:!0}},computed:{rootClasses:function(){return[this.newPosition,{"is-expanded":this.expanded,"is-grouped-multiline":this.groupMultiline,"is-horizontal":this.horizontal,"is-floating-in-label":this.hasLabel&&!this.horizontal&&"inside"===this.labelPosition,"is-floating-label":this.hasLabel&&!this.horizontal&&"on-border"===this.labelPosition},this.numberInputClasses]},newPosition:function(){if(void 0!==this.position){var e=this.position.split("-");if(!(e.length<1)){var t=this.grouped?"is-grouped-":"has-addons-";return this.position?t+e[1]:void 0}}},formattedMessage:function(){if("string"==typeof this.newMessage)return this.newMessage;var e=[];if(Array.isArray(this.newMessage))this.newMessage.forEach(function(t){if("string"==typeof t)e.push(t);else for(var a in t)t[a]&&e.push(a)});else for(var t in this.newMessage)this.newMessage[t]&&e.push(t);return e.filter(function(e){if(e)return e}).join(" <br> ")},hasLabel:function(){return this.label||this.$slots.label},numberInputClasses:function(){if(this.$slots.default){var e=this.$slots.default.filter(function(e){return e.tag&&e.tag.toLowerCase().indexOf("numberinput")>=0})[0];if(e){var t=["has-numberinput"],a=e.componentOptions.propsData.controlsPosition,n=e.componentOptions.propsData.size;return a&&t.push("has-numberinput-".concat(a)),n&&t.push("has-numberinput-".concat(n)),t}}return null}},watch:{type:function(e){this.newType=e},message:function(e){this.newMessage=e}},methods:{fieldType:function(){if(this.grouped)return"is-grouped";var e=0;return this.$slots.default&&(e=this.$slots.default.reduce(function(e,t){return t.tag?e+1:e},0)),e>1&&this.addons&&!this.horizontal?"has-addons":void 0}},mounted:function(){this.horizontal&&(this.$el.querySelectorAll(".input, .select, .button, .textarea, .b-slider").length>0&&(this.fieldLabelSize="is-normal"))}},void 0,!1,void 0,void 0,void 0),u={install:function(e){!function(e,t){e.component(t.name,t)}(e,r)}};o=u,"undefined"!=typeof window&&window.Vue&&window.Vue.use(o),e.Field=r,e.default=u,Object.defineProperty(e,"__esModule",{value:!0})});
|