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
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import './chunk-d6200087.js';
|
|
2
|
+
import './chunk-e5fce48f.js';
|
|
3
|
+
import { c as config } from './chunk-9e3207cc.js';
|
|
4
|
+
import './chunk-e84b4047.js';
|
|
5
|
+
import { _ as __vue_normalize__, r as registerComponent, a as registerComponentProgrammatic, u as use } from './chunk-cca88db8.js';
|
|
6
|
+
import Vue from 'vue';
|
|
7
|
+
import { M as MessageMixin } from './chunk-edd8ff91.js';
|
|
8
|
+
import { N as NoticeMixin } from './chunk-daeac852.js';
|
|
9
|
+
|
|
10
|
+
//
|
|
11
|
+
var script = {
|
|
12
|
+
name: 'BNotification',
|
|
13
|
+
mixins: [MessageMixin],
|
|
14
|
+
props: {
|
|
15
|
+
position: String,
|
|
16
|
+
ariaCloseLabel: String
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/* script */
|
|
21
|
+
const __vue_script__ = script;
|
|
22
|
+
|
|
23
|
+
/* template */
|
|
24
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{"name":"fade"}},[_c('article',{directives:[{name:"show",rawName:"v-show",value:(_vm.isActive),expression:"isActive"}],staticClass:"notification",class:[_vm.type, _vm.position]},[(_vm.closable)?_c('button',{staticClass:"delete",attrs:{"type":"button","aria-label":_vm.ariaCloseLabel},on:{"click":_vm.close}}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"media"},[(_vm.icon && _vm.hasIcon)?_c('div',{staticClass:"media-left"},[_c('b-icon',{attrs:{"icon":_vm.icon,"pack":_vm.iconPack,"both":"","size":"is-large","aria-hidden":""}})],1):_vm._e(),_vm._v(" "),_c('div',{staticClass:"media-content"},[(_vm.message)?_c('p',{staticClass:"text",domProps:{"innerHTML":_vm._s(_vm.message)}}):_vm._t("default")],2)])])])};
|
|
25
|
+
var __vue_staticRenderFns__ = [];
|
|
26
|
+
|
|
27
|
+
/* style */
|
|
28
|
+
const __vue_inject_styles__ = undefined;
|
|
29
|
+
/* scoped */
|
|
30
|
+
const __vue_scope_id__ = undefined;
|
|
31
|
+
/* module identifier */
|
|
32
|
+
const __vue_module_identifier__ = undefined;
|
|
33
|
+
/* functional template */
|
|
34
|
+
const __vue_is_functional_template__ = false;
|
|
35
|
+
/* style inject */
|
|
36
|
+
|
|
37
|
+
/* style inject SSR */
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
var Notification = __vue_normalize__(
|
|
42
|
+
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
|
43
|
+
__vue_inject_styles__,
|
|
44
|
+
__vue_script__,
|
|
45
|
+
__vue_scope_id__,
|
|
46
|
+
__vue_is_functional_template__,
|
|
47
|
+
__vue_module_identifier__,
|
|
48
|
+
undefined,
|
|
49
|
+
undefined
|
|
50
|
+
);
|
|
51
|
+
|
|
52
|
+
//
|
|
53
|
+
var script$1 = {
|
|
54
|
+
name: 'BNotificationNotice',
|
|
55
|
+
mixins: [NoticeMixin],
|
|
56
|
+
props: {
|
|
57
|
+
indefinite: {
|
|
58
|
+
type: Boolean,
|
|
59
|
+
default: false
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
data: function data() {
|
|
63
|
+
return {
|
|
64
|
+
newDuration: this.duration || config.defaultNotificationDuration
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
/* script */
|
|
70
|
+
const __vue_script__$1 = script$1;
|
|
71
|
+
|
|
72
|
+
/* template */
|
|
73
|
+
var __vue_render__$1 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-notification',_vm._b({on:{"close":_vm.close}},'b-notification',_vm.$options.propsData,false))};
|
|
74
|
+
var __vue_staticRenderFns__$1 = [];
|
|
75
|
+
|
|
76
|
+
/* style */
|
|
77
|
+
const __vue_inject_styles__$1 = undefined;
|
|
78
|
+
/* scoped */
|
|
79
|
+
const __vue_scope_id__$1 = undefined;
|
|
80
|
+
/* module identifier */
|
|
81
|
+
const __vue_module_identifier__$1 = undefined;
|
|
82
|
+
/* functional template */
|
|
83
|
+
const __vue_is_functional_template__$1 = false;
|
|
84
|
+
/* style inject */
|
|
85
|
+
|
|
86
|
+
/* style inject SSR */
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
var NotificationNotice = __vue_normalize__(
|
|
91
|
+
{ render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 },
|
|
92
|
+
__vue_inject_styles__$1,
|
|
93
|
+
__vue_script__$1,
|
|
94
|
+
__vue_scope_id__$1,
|
|
95
|
+
__vue_is_functional_template__$1,
|
|
96
|
+
__vue_module_identifier__$1,
|
|
97
|
+
undefined,
|
|
98
|
+
undefined
|
|
99
|
+
);
|
|
100
|
+
|
|
101
|
+
var NotificationProgrammatic = {
|
|
102
|
+
open: function open(params) {
|
|
103
|
+
var message;
|
|
104
|
+
var parent;
|
|
105
|
+
if (typeof params === 'string') message = params;
|
|
106
|
+
var defaultParam = {
|
|
107
|
+
message: message,
|
|
108
|
+
position: config.defaultNotificationPosition || 'is-top-right'
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
if (params.parent) {
|
|
112
|
+
parent = params.parent;
|
|
113
|
+
delete params.parent;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
var propsData = Object.assign(defaultParam, typeof params === 'string' ? {} : params);
|
|
117
|
+
var vm = typeof window !== 'undefined' && window.Vue ? window.Vue : Vue;
|
|
118
|
+
var NotificationNoticeComponent = vm.extend(NotificationNotice);
|
|
119
|
+
return new NotificationNoticeComponent({
|
|
120
|
+
parent: parent,
|
|
121
|
+
el: document.createElement('div'),
|
|
122
|
+
propsData: propsData
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
var Plugin = {
|
|
127
|
+
install: function install(Vue) {
|
|
128
|
+
registerComponent(Vue, Notification);
|
|
129
|
+
registerComponentProgrammatic(Vue, 'notification', NotificationProgrammatic);
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
use(Plugin);
|
|
133
|
+
|
|
134
|
+
export default Plugin;
|
|
135
|
+
export { Notification, NotificationProgrammatic };
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
import { _ as _defineProperty } from './chunk-d6200087.js';
|
|
2
|
+
import './chunk-9e3207cc.js';
|
|
3
|
+
import { F as FormElementMixin } from './chunk-10c85529.js';
|
|
4
|
+
import { I as Icon } from './chunk-e84b4047.js';
|
|
5
|
+
import { _ as __vue_normalize__, r as registerComponent, u as use } from './chunk-cca88db8.js';
|
|
6
|
+
import { I as Input } from './chunk-98e86f40.js';
|
|
7
|
+
|
|
8
|
+
var _components;
|
|
9
|
+
var script = {
|
|
10
|
+
name: 'BNumberinput',
|
|
11
|
+
components: (_components = {}, _defineProperty(_components, Icon.name, Icon), _defineProperty(_components, Input.name, Input), _components),
|
|
12
|
+
mixins: [FormElementMixin],
|
|
13
|
+
inheritAttrs: false,
|
|
14
|
+
props: {
|
|
15
|
+
value: Number,
|
|
16
|
+
min: [Number, String],
|
|
17
|
+
max: [Number, String],
|
|
18
|
+
step: [Number, String],
|
|
19
|
+
disabled: Boolean,
|
|
20
|
+
type: {
|
|
21
|
+
type: String,
|
|
22
|
+
default: 'is-primary'
|
|
23
|
+
},
|
|
24
|
+
editable: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: true
|
|
27
|
+
},
|
|
28
|
+
controlsRounded: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: false
|
|
31
|
+
},
|
|
32
|
+
controlsPosition: String
|
|
33
|
+
},
|
|
34
|
+
data: function data() {
|
|
35
|
+
return {
|
|
36
|
+
newValue: !isNaN(this.value) ? this.value : parseFloat(this.min) || 0,
|
|
37
|
+
newStep: this.step || 1,
|
|
38
|
+
_elementRef: 'input'
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
computed: {
|
|
42
|
+
computedValue: {
|
|
43
|
+
get: function get() {
|
|
44
|
+
return this.newValue;
|
|
45
|
+
},
|
|
46
|
+
set: function set(value) {
|
|
47
|
+
var newValue = value;
|
|
48
|
+
|
|
49
|
+
if (value === '') {
|
|
50
|
+
newValue = parseFloat(this.min) || 0;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
this.newValue = newValue;
|
|
54
|
+
this.$emit('input', newValue);
|
|
55
|
+
!this.isValid && this.$refs.input.checkHtml5Validity();
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
fieldClasses: function fieldClasses() {
|
|
59
|
+
return [{
|
|
60
|
+
'has-addons': this.controlsPosition === 'compact'
|
|
61
|
+
}, {
|
|
62
|
+
'is-grouped': this.controlsPosition !== 'compact'
|
|
63
|
+
}];
|
|
64
|
+
},
|
|
65
|
+
buttonClasses: function buttonClasses() {
|
|
66
|
+
return [this.type, this.size, {
|
|
67
|
+
'is-rounded': this.controlsRounded
|
|
68
|
+
}];
|
|
69
|
+
},
|
|
70
|
+
minNumber: function minNumber() {
|
|
71
|
+
return typeof this.min === 'string' ? parseFloat(this.min) : this.min;
|
|
72
|
+
},
|
|
73
|
+
maxNumber: function maxNumber() {
|
|
74
|
+
return typeof this.max === 'string' ? parseFloat(this.max) : this.max;
|
|
75
|
+
},
|
|
76
|
+
stepNumber: function stepNumber() {
|
|
77
|
+
return typeof this.newStep === 'string' ? parseFloat(this.newStep) : this.newStep;
|
|
78
|
+
},
|
|
79
|
+
disabledMin: function disabledMin() {
|
|
80
|
+
return this.computedValue - this.stepNumber < this.minNumber;
|
|
81
|
+
},
|
|
82
|
+
disabledMax: function disabledMax() {
|
|
83
|
+
return this.computedValue + this.stepNumber > this.maxNumber;
|
|
84
|
+
},
|
|
85
|
+
stepDecimals: function stepDecimals() {
|
|
86
|
+
var step = this.stepNumber.toString();
|
|
87
|
+
var index = step.indexOf('.');
|
|
88
|
+
|
|
89
|
+
if (index >= 0) {
|
|
90
|
+
return step.substring(index + 1).length;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return 0;
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
watch: {
|
|
97
|
+
/**
|
|
98
|
+
* When v-model is changed:
|
|
99
|
+
* 1. Set internal value.
|
|
100
|
+
*/
|
|
101
|
+
value: function value(_value) {
|
|
102
|
+
this.newValue = _value;
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
methods: {
|
|
106
|
+
decrement: function decrement() {
|
|
107
|
+
if (typeof this.minNumber === 'undefined' || this.computedValue - this.stepNumber >= this.minNumber) {
|
|
108
|
+
var value = this.computedValue - this.stepNumber;
|
|
109
|
+
this.computedValue = parseFloat(value.toFixed(this.stepDecimals));
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
increment: function increment() {
|
|
113
|
+
if (typeof this.maxNumber === 'undefined' || this.computedValue + this.stepNumber <= this.maxNumber) {
|
|
114
|
+
var value = this.computedValue + this.stepNumber;
|
|
115
|
+
this.computedValue = parseFloat(value.toFixed(this.stepDecimals));
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
onControlClick: function onControlClick(event, inc) {
|
|
119
|
+
// IE 11 -> filter click event
|
|
120
|
+
if (event.detail !== 0 || event.type === 'click') return;
|
|
121
|
+
if (inc) this.increment();else this.decrement();
|
|
122
|
+
},
|
|
123
|
+
onStartLongPress: function onStartLongPress(event, inc) {
|
|
124
|
+
var _this = this;
|
|
125
|
+
|
|
126
|
+
if (event.button !== 0 && event.type !== 'touchstart') return;
|
|
127
|
+
this._$intervalTime = new Date();
|
|
128
|
+
clearInterval(this._$intervalRef);
|
|
129
|
+
this._$intervalRef = setInterval(function () {
|
|
130
|
+
if (inc) _this.increment();else _this.decrement();
|
|
131
|
+
}, 250);
|
|
132
|
+
},
|
|
133
|
+
onStopLongPress: function onStopLongPress(inc) {
|
|
134
|
+
if (!this._$intervalRef) return;
|
|
135
|
+
var d = new Date();
|
|
136
|
+
|
|
137
|
+
if (d - this._$intervalTime < 250) {
|
|
138
|
+
if (inc) this.increment();else this.decrement();
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
clearInterval(this._$intervalRef);
|
|
142
|
+
this._$intervalRef = null;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
/* script */
|
|
148
|
+
const __vue_script__ = script;
|
|
149
|
+
|
|
150
|
+
/* template */
|
|
151
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"b-numberinput field",class:_vm.fieldClasses},[_c('p',{staticClass:"control",on:{"mouseup":function($event){_vm.onStopLongPress(false);},"mouseleave":function($event){_vm.onStopLongPress(false);},"touchend":function($event){_vm.onStopLongPress(false);},"touchcancel":function($event){_vm.onStopLongPress(false);}}},[_c('button',{staticClass:"button",class:_vm.buttonClasses,attrs:{"type":"button","disabled":_vm.disabled || _vm.disabledMin},on:{"mousedown":function($event){_vm.onStartLongPress($event, false);},"touchstart":function($event){$event.preventDefault();_vm.onStartLongPress($event, false);},"click":function($event){_vm.onControlClick($event, false);}}},[_c('b-icon',{attrs:{"icon":"minus","pack":_vm.iconPack,"size":_vm.iconSize}})],1)]),_vm._v(" "),_c('b-input',_vm._b({ref:"input",attrs:{"type":"number","step":_vm.newStep,"max":_vm.max,"min":_vm.min,"size":_vm.size,"disabled":_vm.disabled,"readonly":!_vm.editable,"loading":_vm.loading,"rounded":_vm.rounded,"icon":_vm.icon,"icon-pack":_vm.iconPack,"autocomplete":_vm.autocomplete,"expanded":_vm.expanded,"use-html5-validation":_vm.useHtml5Validation},on:{"focus":function($event){_vm.$emit('focus', $event);},"blur":function($event){_vm.$emit('blur', $event);}},model:{value:(_vm.computedValue),callback:function ($$v) {_vm.computedValue=_vm._n($$v);},expression:"computedValue"}},'b-input',_vm.$attrs,false)),_vm._v(" "),_c('p',{staticClass:"control",on:{"mouseup":function($event){_vm.onStopLongPress(true);},"mouseleave":function($event){_vm.onStopLongPress(true);},"touchend":function($event){_vm.onStopLongPress(true);},"touchcancel":function($event){_vm.onStopLongPress(true);}}},[_c('button',{staticClass:"button",class:_vm.buttonClasses,attrs:{"type":"button","disabled":_vm.disabled || _vm.disabledMax},on:{"mousedown":function($event){_vm.onStartLongPress($event, true);},"touchstart":function($event){$event.preventDefault();_vm.onStartLongPress($event, true);},"click":function($event){_vm.onControlClick($event, true);}}},[_c('b-icon',{attrs:{"icon":"plus","pack":_vm.iconPack,"size":_vm.iconSize}})],1)])],1)};
|
|
152
|
+
var __vue_staticRenderFns__ = [];
|
|
153
|
+
|
|
154
|
+
/* style */
|
|
155
|
+
const __vue_inject_styles__ = undefined;
|
|
156
|
+
/* scoped */
|
|
157
|
+
const __vue_scope_id__ = undefined;
|
|
158
|
+
/* module identifier */
|
|
159
|
+
const __vue_module_identifier__ = undefined;
|
|
160
|
+
/* functional template */
|
|
161
|
+
const __vue_is_functional_template__ = false;
|
|
162
|
+
/* style inject */
|
|
163
|
+
|
|
164
|
+
/* style inject SSR */
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
var Numberinput = __vue_normalize__(
|
|
169
|
+
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
|
170
|
+
__vue_inject_styles__,
|
|
171
|
+
__vue_script__,
|
|
172
|
+
__vue_scope_id__,
|
|
173
|
+
__vue_is_functional_template__,
|
|
174
|
+
__vue_module_identifier__,
|
|
175
|
+
undefined,
|
|
176
|
+
undefined
|
|
177
|
+
);
|
|
178
|
+
|
|
179
|
+
var Plugin = {
|
|
180
|
+
install: function install(Vue) {
|
|
181
|
+
registerComponent(Vue, Numberinput);
|
|
182
|
+
}
|
|
183
|
+
};
|
|
184
|
+
use(Plugin);
|
|
185
|
+
|
|
186
|
+
export default Plugin;
|
|
187
|
+
export { Numberinput };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import './chunk-d6200087.js';
|
|
2
|
+
import './chunk-9e3207cc.js';
|
|
3
|
+
import './chunk-e84b4047.js';
|
|
4
|
+
import { r as registerComponent, u as use } from './chunk-cca88db8.js';
|
|
5
|
+
import { P as Pagination } from './chunk-cc718c15.js';
|
|
6
|
+
export { P as Pagination } from './chunk-cc718c15.js';
|
|
7
|
+
|
|
8
|
+
var Plugin = {
|
|
9
|
+
install: function install(Vue) {
|
|
10
|
+
registerComponent(Vue, Pagination);
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
use(Plugin);
|
|
14
|
+
|
|
15
|
+
export default Plugin;
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { _ as __vue_normalize__, r as registerComponent, u as use } from './chunk-cca88db8.js';
|
|
2
|
+
|
|
3
|
+
//
|
|
4
|
+
//
|
|
5
|
+
//
|
|
6
|
+
//
|
|
7
|
+
//
|
|
8
|
+
//
|
|
9
|
+
//
|
|
10
|
+
//
|
|
11
|
+
//
|
|
12
|
+
//
|
|
13
|
+
//
|
|
14
|
+
//
|
|
15
|
+
//
|
|
16
|
+
var script = {
|
|
17
|
+
name: 'BProgress',
|
|
18
|
+
props: {
|
|
19
|
+
type: {
|
|
20
|
+
type: [String, Object],
|
|
21
|
+
default: 'is-darkgrey'
|
|
22
|
+
},
|
|
23
|
+
size: String,
|
|
24
|
+
value: {
|
|
25
|
+
type: Number,
|
|
26
|
+
default: undefined
|
|
27
|
+
},
|
|
28
|
+
max: {
|
|
29
|
+
type: Number,
|
|
30
|
+
default: 100
|
|
31
|
+
},
|
|
32
|
+
showValue: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
default: false
|
|
35
|
+
},
|
|
36
|
+
format: {
|
|
37
|
+
type: String,
|
|
38
|
+
default: 'raw',
|
|
39
|
+
validator: function validator(value) {
|
|
40
|
+
return ['raw', 'percent'].indexOf(value) >= 0;
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
precision: {
|
|
44
|
+
type: Number,
|
|
45
|
+
default: 2
|
|
46
|
+
},
|
|
47
|
+
keepTrailingZeroes: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: false
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
computed: {
|
|
53
|
+
isIndeterminate: function isIndeterminate() {
|
|
54
|
+
return this.value === undefined || this.value === null;
|
|
55
|
+
},
|
|
56
|
+
newType: function newType() {
|
|
57
|
+
return [this.size, this.type];
|
|
58
|
+
},
|
|
59
|
+
newValue: function newValue() {
|
|
60
|
+
if (this.value === undefined || this.value === null || isNaN(this.value)) {
|
|
61
|
+
return undefined;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
if (this.format === 'percent') {
|
|
65
|
+
var _val = this.toFixed(this.value * this.max / 100);
|
|
66
|
+
|
|
67
|
+
return "".concat(_val, "%");
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
var val = this.toFixed(this.value);
|
|
71
|
+
return val;
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
watch: {
|
|
75
|
+
value: function value(_value) {
|
|
76
|
+
this.setValue(_value);
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
methods: {
|
|
80
|
+
/**
|
|
81
|
+
* When value is changed back to undefined, value of native progress get reset to 0.
|
|
82
|
+
* Need to add and remove the value attribute to have the indeterminate or not.
|
|
83
|
+
*/
|
|
84
|
+
setValue: function setValue(value) {
|
|
85
|
+
if (this.isIndeterminate) {
|
|
86
|
+
this.$refs.progress.removeAttribute('value');
|
|
87
|
+
} else {
|
|
88
|
+
this.$refs.progress.setAttribute('value', value);
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
// Custom function that imitate the javascript toFixed method with improved rounding
|
|
92
|
+
toFixed: function toFixed(num) {
|
|
93
|
+
var fixed = (+"".concat(Math.round(+"".concat(num, "e").concat(this.precision)), "e").concat(-this.precision)).toFixed(this.precision);
|
|
94
|
+
|
|
95
|
+
if (!this.keepTrailingZeroes) {
|
|
96
|
+
fixed = fixed.replace(/\.?0+$/, '');
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
return fixed;
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
mounted: function mounted() {
|
|
103
|
+
this.setValue(this.value);
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
/* script */
|
|
108
|
+
const __vue_script__ = script;
|
|
109
|
+
|
|
110
|
+
/* template */
|
|
111
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"progress-wrapper"},[_c('progress',{ref:"progress",staticClass:"progress",class:_vm.newType,attrs:{"max":_vm.max}},[_vm._v(_vm._s(_vm.newValue))]),_vm._v(" "),(_vm.showValue)?_c('p',{staticClass:"progress-value has-text-white"},[_vm._t("default",[_vm._v(_vm._s(_vm.newValue))])],2):_vm._e()])};
|
|
112
|
+
var __vue_staticRenderFns__ = [];
|
|
113
|
+
|
|
114
|
+
/* style */
|
|
115
|
+
const __vue_inject_styles__ = undefined;
|
|
116
|
+
/* scoped */
|
|
117
|
+
const __vue_scope_id__ = undefined;
|
|
118
|
+
/* module identifier */
|
|
119
|
+
const __vue_module_identifier__ = undefined;
|
|
120
|
+
/* functional template */
|
|
121
|
+
const __vue_is_functional_template__ = false;
|
|
122
|
+
/* style inject */
|
|
123
|
+
|
|
124
|
+
/* style inject SSR */
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
var Progress = __vue_normalize__(
|
|
129
|
+
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
|
130
|
+
__vue_inject_styles__,
|
|
131
|
+
__vue_script__,
|
|
132
|
+
__vue_scope_id__,
|
|
133
|
+
__vue_is_functional_template__,
|
|
134
|
+
__vue_module_identifier__,
|
|
135
|
+
undefined,
|
|
136
|
+
undefined
|
|
137
|
+
);
|
|
138
|
+
|
|
139
|
+
var Plugin = {
|
|
140
|
+
install: function install(Vue) {
|
|
141
|
+
registerComponent(Vue, Progress);
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
use(Plugin);
|
|
145
|
+
|
|
146
|
+
export default Plugin;
|
|
147
|
+
export { Progress };
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import { _ as __vue_normalize__, r as registerComponent, u as use } from './chunk-cca88db8.js';
|
|
2
|
+
|
|
3
|
+
//
|
|
4
|
+
//
|
|
5
|
+
//
|
|
6
|
+
//
|
|
7
|
+
//
|
|
8
|
+
//
|
|
9
|
+
//
|
|
10
|
+
//
|
|
11
|
+
//
|
|
12
|
+
//
|
|
13
|
+
//
|
|
14
|
+
//
|
|
15
|
+
//
|
|
16
|
+
//
|
|
17
|
+
//
|
|
18
|
+
//
|
|
19
|
+
//
|
|
20
|
+
//
|
|
21
|
+
//
|
|
22
|
+
//
|
|
23
|
+
//
|
|
24
|
+
//
|
|
25
|
+
var script = {
|
|
26
|
+
name: 'BRadio',
|
|
27
|
+
props: {
|
|
28
|
+
value: [String, Number, Boolean, Function, Object, Array],
|
|
29
|
+
nativeValue: [String, Number, Boolean, Function, Object, Array],
|
|
30
|
+
type: String,
|
|
31
|
+
disabled: Boolean,
|
|
32
|
+
required: Boolean,
|
|
33
|
+
name: String,
|
|
34
|
+
size: String
|
|
35
|
+
},
|
|
36
|
+
data: function data() {
|
|
37
|
+
return {
|
|
38
|
+
newValue: this.value
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
computed: {
|
|
42
|
+
computedValue: {
|
|
43
|
+
get: function get() {
|
|
44
|
+
return this.newValue;
|
|
45
|
+
},
|
|
46
|
+
set: function set(value) {
|
|
47
|
+
this.newValue = value;
|
|
48
|
+
this.$emit('input', value);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
watch: {
|
|
53
|
+
/**
|
|
54
|
+
* When v-model change, set internal value.
|
|
55
|
+
*/
|
|
56
|
+
value: function value(_value) {
|
|
57
|
+
this.newValue = _value;
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
methods: {
|
|
61
|
+
focus: function focus() {
|
|
62
|
+
// MacOS FireFox and Safari do not focus when clicked
|
|
63
|
+
this.$refs.input.focus();
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
/* script */
|
|
69
|
+
const __vue_script__ = script;
|
|
70
|
+
|
|
71
|
+
/* template */
|
|
72
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('label',{ref:"label",staticClass:"b-radio radio",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":"radio","disabled":_vm.disabled,"required":_vm.required,"name":_vm.name},domProps:{"value":_vm.nativeValue,"checked":_vm._q(_vm.computedValue,_vm.nativeValue)},on:{"click":function($event){$event.stopPropagation();},"change":function($event){_vm.computedValue=_vm.nativeValue;}}}),_vm._v(" "),_c('span',{staticClass:"check",class:_vm.type}),_vm._v(" "),_c('span',{staticClass:"control-label"},[_vm._t("default")],2)])};
|
|
73
|
+
var __vue_staticRenderFns__ = [];
|
|
74
|
+
|
|
75
|
+
/* style */
|
|
76
|
+
const __vue_inject_styles__ = undefined;
|
|
77
|
+
/* scoped */
|
|
78
|
+
const __vue_scope_id__ = undefined;
|
|
79
|
+
/* module identifier */
|
|
80
|
+
const __vue_module_identifier__ = undefined;
|
|
81
|
+
/* functional template */
|
|
82
|
+
const __vue_is_functional_template__ = false;
|
|
83
|
+
/* style inject */
|
|
84
|
+
|
|
85
|
+
/* style inject SSR */
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
var Radio = __vue_normalize__(
|
|
90
|
+
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
|
91
|
+
__vue_inject_styles__,
|
|
92
|
+
__vue_script__,
|
|
93
|
+
__vue_scope_id__,
|
|
94
|
+
__vue_is_functional_template__,
|
|
95
|
+
__vue_module_identifier__,
|
|
96
|
+
undefined,
|
|
97
|
+
undefined
|
|
98
|
+
);
|
|
99
|
+
|
|
100
|
+
//
|
|
101
|
+
//
|
|
102
|
+
//
|
|
103
|
+
//
|
|
104
|
+
//
|
|
105
|
+
//
|
|
106
|
+
//
|
|
107
|
+
//
|
|
108
|
+
//
|
|
109
|
+
//
|
|
110
|
+
//
|
|
111
|
+
//
|
|
112
|
+
//
|
|
113
|
+
//
|
|
114
|
+
//
|
|
115
|
+
//
|
|
116
|
+
//
|
|
117
|
+
//
|
|
118
|
+
//
|
|
119
|
+
//
|
|
120
|
+
//
|
|
121
|
+
//
|
|
122
|
+
//
|
|
123
|
+
//
|
|
124
|
+
//
|
|
125
|
+
//
|
|
126
|
+
//
|
|
127
|
+
//
|
|
128
|
+
var script$1 = {
|
|
129
|
+
name: 'BRadioButton',
|
|
130
|
+
props: {
|
|
131
|
+
value: [String, Number, Boolean, Function, Object, Array],
|
|
132
|
+
nativeValue: [String, Number, Boolean, Function, Object, Array],
|
|
133
|
+
type: {
|
|
134
|
+
type: String,
|
|
135
|
+
default: 'is-primary'
|
|
136
|
+
},
|
|
137
|
+
disabled: Boolean,
|
|
138
|
+
required: Boolean,
|
|
139
|
+
name: String,
|
|
140
|
+
size: String
|
|
141
|
+
},
|
|
142
|
+
data: function data() {
|
|
143
|
+
return {
|
|
144
|
+
newValue: this.value,
|
|
145
|
+
isFocused: false
|
|
146
|
+
};
|
|
147
|
+
},
|
|
148
|
+
computed: {
|
|
149
|
+
computedValue: {
|
|
150
|
+
get: function get() {
|
|
151
|
+
return this.newValue;
|
|
152
|
+
},
|
|
153
|
+
set: function set(value) {
|
|
154
|
+
this.newValue = value;
|
|
155
|
+
this.$emit('input', value);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
watch: {
|
|
160
|
+
/**
|
|
161
|
+
* When v-model change, set internal value.
|
|
162
|
+
*/
|
|
163
|
+
value: function value(_value) {
|
|
164
|
+
this.newValue = _value;
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
methods: {
|
|
168
|
+
focus: function focus() {
|
|
169
|
+
// MacOS FireFox and Safari do not focus when clicked
|
|
170
|
+
this.$refs.input.focus();
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
/* script */
|
|
176
|
+
const __vue_script__$1 = script$1;
|
|
177
|
+
|
|
178
|
+
/* template */
|
|
179
|
+
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-radio radio button",class:[_vm.newValue === _vm.nativeValue ? _vm.type : null, _vm.size, {
|
|
180
|
+
'is-disabled': _vm.disabled,
|
|
181
|
+
'is-focused': _vm.isFocused
|
|
182
|
+
}],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":"radio","disabled":_vm.disabled,"required":_vm.required,"name":_vm.name},domProps:{"value":_vm.nativeValue,"checked":_vm._q(_vm.computedValue,_vm.nativeValue)},on:{"click":function($event){$event.stopPropagation();},"focus":function($event){_vm.isFocused = true;},"blur":function($event){_vm.isFocused = false;},"change":function($event){_vm.computedValue=_vm.nativeValue;}}})],2)])};
|
|
183
|
+
var __vue_staticRenderFns__$1 = [];
|
|
184
|
+
|
|
185
|
+
/* style */
|
|
186
|
+
const __vue_inject_styles__$1 = undefined;
|
|
187
|
+
/* scoped */
|
|
188
|
+
const __vue_scope_id__$1 = undefined;
|
|
189
|
+
/* module identifier */
|
|
190
|
+
const __vue_module_identifier__$1 = undefined;
|
|
191
|
+
/* functional template */
|
|
192
|
+
const __vue_is_functional_template__$1 = false;
|
|
193
|
+
/* style inject */
|
|
194
|
+
|
|
195
|
+
/* style inject SSR */
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
var RadioButton = __vue_normalize__(
|
|
200
|
+
{ render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 },
|
|
201
|
+
__vue_inject_styles__$1,
|
|
202
|
+
__vue_script__$1,
|
|
203
|
+
__vue_scope_id__$1,
|
|
204
|
+
__vue_is_functional_template__$1,
|
|
205
|
+
__vue_module_identifier__$1,
|
|
206
|
+
undefined,
|
|
207
|
+
undefined
|
|
208
|
+
);
|
|
209
|
+
|
|
210
|
+
var Plugin = {
|
|
211
|
+
install: function install(Vue) {
|
|
212
|
+
registerComponent(Vue, Radio);
|
|
213
|
+
registerComponent(Vue, RadioButton);
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
use(Plugin);
|
|
217
|
+
|
|
218
|
+
export default Plugin;
|
|
219
|
+
export { Radio, RadioButton };
|