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