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,401 @@
|
|
|
1
|
+
import { c as config } from './chunk-648b9aa4.js';
|
|
2
|
+
import { _ as __vue_normalize__ } from './chunk-e8d90b72.js';
|
|
3
|
+
|
|
4
|
+
//
|
|
5
|
+
var script = {
|
|
6
|
+
name: 'BDropdown',
|
|
7
|
+
props: {
|
|
8
|
+
value: {
|
|
9
|
+
type: [String, Number, Boolean, Object, Array, Symbol, Function],
|
|
10
|
+
default: null
|
|
11
|
+
},
|
|
12
|
+
disabled: Boolean,
|
|
13
|
+
hoverable: Boolean,
|
|
14
|
+
inline: Boolean,
|
|
15
|
+
position: {
|
|
16
|
+
type: String,
|
|
17
|
+
validator: function validator(value) {
|
|
18
|
+
return ['is-top-right', 'is-top-left', 'is-bottom-left'].indexOf(value) > -1;
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
mobileModal: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: function _default() {
|
|
24
|
+
return config.defaultDropdownMobileModal;
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
ariaRole: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: ''
|
|
30
|
+
},
|
|
31
|
+
animation: {
|
|
32
|
+
type: String,
|
|
33
|
+
default: 'fade'
|
|
34
|
+
},
|
|
35
|
+
multiple: Boolean,
|
|
36
|
+
closeOnClick: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
default: true
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
data: function data() {
|
|
42
|
+
return {
|
|
43
|
+
selected: this.value,
|
|
44
|
+
isActive: false,
|
|
45
|
+
isHoverable: this.hoverable,
|
|
46
|
+
_isDropdown: true // Used internally by DropdownItem
|
|
47
|
+
|
|
48
|
+
};
|
|
49
|
+
},
|
|
50
|
+
computed: {
|
|
51
|
+
rootClasses: function rootClasses() {
|
|
52
|
+
return [this.position, {
|
|
53
|
+
'is-disabled': this.disabled,
|
|
54
|
+
'is-hoverable': this.hoverable,
|
|
55
|
+
'is-inline': this.inline,
|
|
56
|
+
'is-active': this.isActive || this.inline,
|
|
57
|
+
'is-mobile-modal': this.isMobileModal
|
|
58
|
+
}];
|
|
59
|
+
},
|
|
60
|
+
isMobileModal: function isMobileModal() {
|
|
61
|
+
return this.mobileModal && !this.inline && !this.hoverable;
|
|
62
|
+
},
|
|
63
|
+
ariaRoleMenu: function ariaRoleMenu() {
|
|
64
|
+
return this.ariaRole === 'menu' || this.ariaRole === 'list' ? this.ariaRole : null;
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
watch: {
|
|
68
|
+
/**
|
|
69
|
+
* When v-model is changed set the new selected item.
|
|
70
|
+
*/
|
|
71
|
+
value: function value(_value) {
|
|
72
|
+
this.selected = _value;
|
|
73
|
+
},
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Emit event when isActive value is changed.
|
|
77
|
+
*/
|
|
78
|
+
isActive: function isActive(value) {
|
|
79
|
+
this.$emit('active-change', value);
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
methods: {
|
|
83
|
+
/**
|
|
84
|
+
* Click listener from DropdownItem.
|
|
85
|
+
* 1. Set new selected item.
|
|
86
|
+
* 2. Emit input event to update the user v-model.
|
|
87
|
+
* 3. Close the dropdown.
|
|
88
|
+
*/
|
|
89
|
+
selectItem: function selectItem(value) {
|
|
90
|
+
if (this.multiple) {
|
|
91
|
+
if (this.selected) {
|
|
92
|
+
var index = this.selected.indexOf(value);
|
|
93
|
+
|
|
94
|
+
if (index === -1) {
|
|
95
|
+
this.selected.push(value);
|
|
96
|
+
} else {
|
|
97
|
+
this.selected.splice(index, 1);
|
|
98
|
+
}
|
|
99
|
+
} else {
|
|
100
|
+
this.selected = [value];
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
this.$emit('change', this.selected);
|
|
104
|
+
} else {
|
|
105
|
+
if (this.selected !== value) {
|
|
106
|
+
this.selected = value;
|
|
107
|
+
this.$emit('change', this.selected);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
this.$emit('input', this.selected);
|
|
112
|
+
|
|
113
|
+
if (!this.multiple) {
|
|
114
|
+
this.isActive = !this.closeOnClick;
|
|
115
|
+
/*
|
|
116
|
+
* breaking change
|
|
117
|
+
if (this.hoverable && this.closeOnClick) {
|
|
118
|
+
this.isHoverable = false
|
|
119
|
+
// Timeout for the animation complete before destroying
|
|
120
|
+
setTimeout(() => {
|
|
121
|
+
this.isHoverable = true
|
|
122
|
+
}, 250)
|
|
123
|
+
}
|
|
124
|
+
*/
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* White-listed items to not close when clicked.
|
|
130
|
+
*/
|
|
131
|
+
isInWhiteList: function isInWhiteList(el) {
|
|
132
|
+
if (el === this.$refs.dropdownMenu) return true;
|
|
133
|
+
if (el === this.$refs.trigger) return true; // All chidren from dropdown
|
|
134
|
+
|
|
135
|
+
if (this.$refs.dropdownMenu !== undefined) {
|
|
136
|
+
var children = this.$refs.dropdownMenu.querySelectorAll('*');
|
|
137
|
+
var _iteratorNormalCompletion = true;
|
|
138
|
+
var _didIteratorError = false;
|
|
139
|
+
var _iteratorError = undefined;
|
|
140
|
+
|
|
141
|
+
try {
|
|
142
|
+
for (var _iterator = children[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
143
|
+
var child = _step.value;
|
|
144
|
+
|
|
145
|
+
if (el === child) {
|
|
146
|
+
return true;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
} catch (err) {
|
|
150
|
+
_didIteratorError = true;
|
|
151
|
+
_iteratorError = err;
|
|
152
|
+
} finally {
|
|
153
|
+
try {
|
|
154
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
155
|
+
_iterator.return();
|
|
156
|
+
}
|
|
157
|
+
} finally {
|
|
158
|
+
if (_didIteratorError) {
|
|
159
|
+
throw _iteratorError;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
} // All children from trigger
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
if (this.$refs.trigger !== undefined) {
|
|
167
|
+
var _children = this.$refs.trigger.querySelectorAll('*');
|
|
168
|
+
|
|
169
|
+
var _iteratorNormalCompletion2 = true;
|
|
170
|
+
var _didIteratorError2 = false;
|
|
171
|
+
var _iteratorError2 = undefined;
|
|
172
|
+
|
|
173
|
+
try {
|
|
174
|
+
for (var _iterator2 = _children[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
|
|
175
|
+
var _child = _step2.value;
|
|
176
|
+
|
|
177
|
+
if (el === _child) {
|
|
178
|
+
return true;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
} catch (err) {
|
|
182
|
+
_didIteratorError2 = true;
|
|
183
|
+
_iteratorError2 = err;
|
|
184
|
+
} finally {
|
|
185
|
+
try {
|
|
186
|
+
if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
|
|
187
|
+
_iterator2.return();
|
|
188
|
+
}
|
|
189
|
+
} finally {
|
|
190
|
+
if (_didIteratorError2) {
|
|
191
|
+
throw _iteratorError2;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
return false;
|
|
198
|
+
},
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Close dropdown if clicked outside.
|
|
202
|
+
*/
|
|
203
|
+
clickedOutside: function clickedOutside(event) {
|
|
204
|
+
if (this.inline) return;
|
|
205
|
+
if (!this.isInWhiteList(event.target)) this.isActive = false;
|
|
206
|
+
},
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* Toggle dropdown if it's not disabled.
|
|
210
|
+
*/
|
|
211
|
+
toggle: function toggle() {
|
|
212
|
+
var _this = this;
|
|
213
|
+
|
|
214
|
+
if (this.disabled) return;
|
|
215
|
+
|
|
216
|
+
if (!this.isActive) {
|
|
217
|
+
// if not active, toggle after clickOutside event
|
|
218
|
+
// this fixes toggling programmatic
|
|
219
|
+
this.$nextTick(function () {
|
|
220
|
+
var value = !_this.isActive;
|
|
221
|
+
_this.isActive = value; // Vue 2.6.x ???
|
|
222
|
+
|
|
223
|
+
setTimeout(function () {
|
|
224
|
+
return _this.isActive = value;
|
|
225
|
+
});
|
|
226
|
+
});
|
|
227
|
+
} else {
|
|
228
|
+
this.isActive = !this.isActive;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
created: function created() {
|
|
233
|
+
if (typeof window !== 'undefined') {
|
|
234
|
+
document.addEventListener('click', this.clickedOutside);
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
beforeDestroy: function beforeDestroy() {
|
|
238
|
+
if (typeof window !== 'undefined') {
|
|
239
|
+
document.removeEventListener('click', this.clickedOutside);
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
};
|
|
243
|
+
|
|
244
|
+
/* script */
|
|
245
|
+
const __vue_script__ = script;
|
|
246
|
+
|
|
247
|
+
/* template */
|
|
248
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"dropdown",class:_vm.rootClasses},[(!_vm.inline)?_c('div',{ref:"trigger",staticClass:"dropdown-trigger",attrs:{"role":"button","aria-haspopup":"true"},on:{"click":_vm.toggle}},[_vm._t("trigger")],2):_vm._e(),_vm._v(" "),_c('transition',{attrs:{"name":_vm.animation}},[(_vm.isMobileModal)?_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isActive),expression:"isActive"}],staticClass:"background",attrs:{"aria-hidden":!_vm.isActive}}):_vm._e()]),_vm._v(" "),_c('transition',{attrs:{"name":_vm.animation}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:((!_vm.disabled && (_vm.isActive || _vm.isHoverable)) || _vm.inline),expression:"(!disabled && (isActive || isHoverable)) || inline"}],ref:"dropdownMenu",staticClass:"dropdown-menu",attrs:{"aria-hidden":!_vm.isActive}},[_c('div',{staticClass:"dropdown-content",attrs:{"role":_vm.ariaRoleMenu}},[_vm._t("default")],2)])])],1)};
|
|
249
|
+
var __vue_staticRenderFns__ = [];
|
|
250
|
+
|
|
251
|
+
/* style */
|
|
252
|
+
const __vue_inject_styles__ = undefined;
|
|
253
|
+
/* scoped */
|
|
254
|
+
const __vue_scope_id__ = undefined;
|
|
255
|
+
/* module identifier */
|
|
256
|
+
const __vue_module_identifier__ = undefined;
|
|
257
|
+
/* functional template */
|
|
258
|
+
const __vue_is_functional_template__ = false;
|
|
259
|
+
/* style inject */
|
|
260
|
+
|
|
261
|
+
/* style inject SSR */
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
var Dropdown = __vue_normalize__(
|
|
266
|
+
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
|
267
|
+
__vue_inject_styles__,
|
|
268
|
+
__vue_script__,
|
|
269
|
+
__vue_scope_id__,
|
|
270
|
+
__vue_is_functional_template__,
|
|
271
|
+
__vue_module_identifier__,
|
|
272
|
+
undefined,
|
|
273
|
+
undefined
|
|
274
|
+
);
|
|
275
|
+
|
|
276
|
+
//
|
|
277
|
+
//
|
|
278
|
+
//
|
|
279
|
+
//
|
|
280
|
+
//
|
|
281
|
+
//
|
|
282
|
+
//
|
|
283
|
+
//
|
|
284
|
+
//
|
|
285
|
+
//
|
|
286
|
+
//
|
|
287
|
+
//
|
|
288
|
+
//
|
|
289
|
+
//
|
|
290
|
+
//
|
|
291
|
+
//
|
|
292
|
+
//
|
|
293
|
+
//
|
|
294
|
+
//
|
|
295
|
+
//
|
|
296
|
+
//
|
|
297
|
+
var script$1 = {
|
|
298
|
+
name: 'BDropdownItem',
|
|
299
|
+
props: {
|
|
300
|
+
value: {
|
|
301
|
+
type: [String, Number, Boolean, Object, Array, Symbol, Function],
|
|
302
|
+
default: null
|
|
303
|
+
},
|
|
304
|
+
separator: Boolean,
|
|
305
|
+
disabled: Boolean,
|
|
306
|
+
custom: Boolean,
|
|
307
|
+
focusable: {
|
|
308
|
+
type: Boolean,
|
|
309
|
+
default: true
|
|
310
|
+
},
|
|
311
|
+
paddingless: Boolean,
|
|
312
|
+
hasLink: Boolean,
|
|
313
|
+
ariaRole: {
|
|
314
|
+
type: String,
|
|
315
|
+
default: ''
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
computed: {
|
|
319
|
+
anchorClasses: function anchorClasses() {
|
|
320
|
+
return {
|
|
321
|
+
'is-disabled': this.$parent.disabled || this.disabled,
|
|
322
|
+
'is-paddingless': this.paddingless,
|
|
323
|
+
'is-active': this.isActive
|
|
324
|
+
};
|
|
325
|
+
},
|
|
326
|
+
itemClasses: function itemClasses() {
|
|
327
|
+
return {
|
|
328
|
+
'dropdown-item': !this.hasLink,
|
|
329
|
+
'is-disabled': this.disabled,
|
|
330
|
+
'is-paddingless': this.paddingless,
|
|
331
|
+
'is-active': this.isActive,
|
|
332
|
+
'has-link': this.hasLink
|
|
333
|
+
};
|
|
334
|
+
},
|
|
335
|
+
ariaRoleItem: function ariaRoleItem() {
|
|
336
|
+
return this.ariaRole === 'menuitem' || this.ariaRole === 'listitem' ? this.ariaRole : null;
|
|
337
|
+
},
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* Check if item can be clickable.
|
|
341
|
+
*/
|
|
342
|
+
isClickable: function isClickable() {
|
|
343
|
+
return !this.$parent.disabled && !this.separator && !this.disabled && !this.custom;
|
|
344
|
+
},
|
|
345
|
+
isActive: function isActive() {
|
|
346
|
+
if (this.$parent.selected === null) return false;
|
|
347
|
+
if (this.$parent.multiple) return this.$parent.selected.indexOf(this.value) >= 0;
|
|
348
|
+
return this.value === this.$parent.selected;
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
methods: {
|
|
352
|
+
/**
|
|
353
|
+
* Click listener, select the item.
|
|
354
|
+
*/
|
|
355
|
+
selectItem: function selectItem() {
|
|
356
|
+
if (!this.isClickable) return;
|
|
357
|
+
this.$parent.selectItem(this.value);
|
|
358
|
+
this.$emit('click');
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
created: function created() {
|
|
362
|
+
if (!this.$parent.$data._isDropdown) {
|
|
363
|
+
this.$destroy();
|
|
364
|
+
throw new Error('You should wrap bDropdownItem on a bDropdown');
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
};
|
|
368
|
+
|
|
369
|
+
/* script */
|
|
370
|
+
const __vue_script__$1 = script$1;
|
|
371
|
+
|
|
372
|
+
/* template */
|
|
373
|
+
var __vue_render__$1 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.separator)?_c('hr',{staticClass:"dropdown-divider"}):(!_vm.custom && !_vm.hasLink)?_c('a',{staticClass:"dropdown-item",class:_vm.anchorClasses,attrs:{"role":_vm.ariaRoleItem,"tabindex":_vm.focusable ? 0 : null},on:{"click":_vm.selectItem}},[_vm._t("default")],2):_c('div',{class:_vm.itemClasses,attrs:{"role":_vm.ariaRoleItem,"tabindex":_vm.focusable ? 0 : null},on:{"click":_vm.selectItem}},[_vm._t("default")],2)};
|
|
374
|
+
var __vue_staticRenderFns__$1 = [];
|
|
375
|
+
|
|
376
|
+
/* style */
|
|
377
|
+
const __vue_inject_styles__$1 = undefined;
|
|
378
|
+
/* scoped */
|
|
379
|
+
const __vue_scope_id__$1 = undefined;
|
|
380
|
+
/* module identifier */
|
|
381
|
+
const __vue_module_identifier__$1 = undefined;
|
|
382
|
+
/* functional template */
|
|
383
|
+
const __vue_is_functional_template__$1 = false;
|
|
384
|
+
/* style inject */
|
|
385
|
+
|
|
386
|
+
/* style inject SSR */
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
var DropdownItem = __vue_normalize__(
|
|
391
|
+
{ render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 },
|
|
392
|
+
__vue_inject_styles__$1,
|
|
393
|
+
__vue_script__$1,
|
|
394
|
+
__vue_scope_id__$1,
|
|
395
|
+
__vue_is_functional_template__$1,
|
|
396
|
+
__vue_module_identifier__$1,
|
|
397
|
+
undefined,
|
|
398
|
+
undefined
|
|
399
|
+
);
|
|
400
|
+
|
|
401
|
+
export { Dropdown as D, DropdownItem as a };
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
/*! Buefy v0.7.10 | MIT License | github.com/buefy/buefy */
|
|
2
|
+
import { _ as _defineProperty } from './chunk-6f881e7d.js';
|
|
3
|
+
import { c as config } from './chunk-2cb6f867.js';
|
|
4
|
+
import { F as FormElementMixin } from './chunk-0566c90d.js';
|
|
5
|
+
import { I as Icon } from './chunk-4f508891.js';
|
|
6
|
+
import { _ as __vue_normalize__ } from './chunk-fd5b0e1e.js';
|
|
7
|
+
|
|
8
|
+
var script = {
|
|
9
|
+
name: 'BInput',
|
|
10
|
+
components: _defineProperty({}, Icon.name, Icon),
|
|
11
|
+
mixins: [FormElementMixin],
|
|
12
|
+
inheritAttrs: false,
|
|
13
|
+
props: {
|
|
14
|
+
value: [Number, String],
|
|
15
|
+
type: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: 'text'
|
|
18
|
+
},
|
|
19
|
+
passwordReveal: Boolean,
|
|
20
|
+
hasCounter: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: function _default() {
|
|
23
|
+
return config.defaultInputHasCounter;
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
customClass: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: ''
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
data: function data() {
|
|
32
|
+
return {
|
|
33
|
+
newValue: this.value,
|
|
34
|
+
newType: this.type,
|
|
35
|
+
newAutocomplete: this.autocomplete || config.defaultInputAutocomplete,
|
|
36
|
+
isPasswordVisible: false,
|
|
37
|
+
_elementRef: this.type === 'textarea' ? 'textarea' : 'input'
|
|
38
|
+
};
|
|
39
|
+
},
|
|
40
|
+
computed: {
|
|
41
|
+
computedValue: {
|
|
42
|
+
get: function get() {
|
|
43
|
+
return this.newValue;
|
|
44
|
+
},
|
|
45
|
+
set: function set(value) {
|
|
46
|
+
this.newValue = value;
|
|
47
|
+
this.$emit('input', value);
|
|
48
|
+
!this.isValid && this.checkHtml5Validity();
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
rootClasses: function rootClasses() {
|
|
52
|
+
return [this.iconPosition, this.size, {
|
|
53
|
+
'is-expanded': this.expanded,
|
|
54
|
+
'is-loading': this.loading,
|
|
55
|
+
'is-clearfix': !this.hasMessage
|
|
56
|
+
}];
|
|
57
|
+
},
|
|
58
|
+
inputClasses: function inputClasses() {
|
|
59
|
+
return [this.statusType, this.size, {
|
|
60
|
+
'is-rounded': this.rounded
|
|
61
|
+
}];
|
|
62
|
+
},
|
|
63
|
+
hasIconRight: function hasIconRight() {
|
|
64
|
+
return this.passwordReveal || this.loading || this.statusTypeIcon;
|
|
65
|
+
},
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Position of the icon or if it's both sides.
|
|
69
|
+
*/
|
|
70
|
+
iconPosition: function iconPosition() {
|
|
71
|
+
if (this.icon && this.hasIconRight) {
|
|
72
|
+
return 'has-icons-left has-icons-right';
|
|
73
|
+
} else if (!this.icon && this.hasIconRight) {
|
|
74
|
+
return 'has-icons-right';
|
|
75
|
+
} else if (this.icon) {
|
|
76
|
+
return 'has-icons-left';
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Icon name (MDI) based on the type.
|
|
82
|
+
*/
|
|
83
|
+
statusTypeIcon: function statusTypeIcon() {
|
|
84
|
+
switch (this.statusType) {
|
|
85
|
+
case 'is-success':
|
|
86
|
+
return 'check';
|
|
87
|
+
|
|
88
|
+
case 'is-danger':
|
|
89
|
+
return 'alert-circle';
|
|
90
|
+
|
|
91
|
+
case 'is-info':
|
|
92
|
+
return 'information';
|
|
93
|
+
|
|
94
|
+
case 'is-warning':
|
|
95
|
+
return 'alert';
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Check if have any message prop from parent if it's a Field.
|
|
101
|
+
*/
|
|
102
|
+
hasMessage: function hasMessage() {
|
|
103
|
+
return !!this.statusMessage;
|
|
104
|
+
},
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Current password-reveal icon name.
|
|
108
|
+
*/
|
|
109
|
+
passwordVisibleIcon: function passwordVisibleIcon() {
|
|
110
|
+
return !this.isPasswordVisible ? 'eye' : 'eye-off';
|
|
111
|
+
},
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Get value length
|
|
115
|
+
*/
|
|
116
|
+
valueLength: function valueLength() {
|
|
117
|
+
if (typeof this.computedValue === 'string') {
|
|
118
|
+
return this.computedValue.length;
|
|
119
|
+
} else if (typeof this.computedValue === 'number') {
|
|
120
|
+
return this.computedValue.toString().length;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
return 0;
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
watch: {
|
|
127
|
+
/**
|
|
128
|
+
* When v-model is changed:
|
|
129
|
+
* 1. Set internal value.
|
|
130
|
+
*/
|
|
131
|
+
value: function value(_value) {
|
|
132
|
+
this.newValue = _value;
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
methods: {
|
|
136
|
+
/**
|
|
137
|
+
* Toggle the visibility of a password-reveal input
|
|
138
|
+
* by changing the type and focus the input right away.
|
|
139
|
+
*/
|
|
140
|
+
togglePasswordVisibility: function togglePasswordVisibility() {
|
|
141
|
+
var _this = this;
|
|
142
|
+
|
|
143
|
+
this.isPasswordVisible = !this.isPasswordVisible;
|
|
144
|
+
this.newType = this.isPasswordVisible ? 'text' : 'password';
|
|
145
|
+
this.$nextTick(function () {
|
|
146
|
+
_this.$refs.input.focus();
|
|
147
|
+
});
|
|
148
|
+
},
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Input's 'input' event listener, 'nextTick' is used to prevent event firing
|
|
152
|
+
* before ui update, helps when using masks (Cleavejs and potentially others).
|
|
153
|
+
*/
|
|
154
|
+
onInput: function onInput(event) {
|
|
155
|
+
var _this2 = this;
|
|
156
|
+
|
|
157
|
+
this.$nextTick(function () {
|
|
158
|
+
if (event.target) {
|
|
159
|
+
_this2.computedValue = event.target.value;
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
/* script */
|
|
167
|
+
const __vue_script__ = script;
|
|
168
|
+
|
|
169
|
+
/* template */
|
|
170
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"control",class:_vm.rootClasses},[(_vm.type !== 'textarea')?_c('input',_vm._b({ref:"input",staticClass:"input",class:[_vm.inputClasses, _vm.customClass],attrs:{"type":_vm.newType,"autocomplete":_vm.newAutocomplete,"maxlength":_vm.maxlength},domProps:{"value":_vm.computedValue},on:{"input":_vm.onInput,"blur":_vm.onBlur,"focus":_vm.onFocus}},'input',_vm.$attrs,false)):_c('textarea',_vm._b({ref:"textarea",staticClass:"textarea",class:[_vm.inputClasses, _vm.customClass],attrs:{"maxlength":_vm.maxlength},domProps:{"value":_vm.computedValue},on:{"input":_vm.onInput,"blur":_vm.onBlur,"focus":_vm.onFocus}},'textarea',_vm.$attrs,false)),_vm._v(" "),(_vm.icon)?_c('b-icon',{staticClass:"is-left",attrs:{"icon":_vm.icon,"pack":_vm.iconPack,"size":_vm.iconSize}}):_vm._e(),_vm._v(" "),(!_vm.loading && (_vm.passwordReveal || _vm.statusTypeIcon))?_c('b-icon',{staticClass:"is-right",class:{ 'is-clickable': _vm.passwordReveal },attrs:{"icon":_vm.passwordReveal ? _vm.passwordVisibleIcon : _vm.statusTypeIcon,"pack":_vm.iconPack,"size":_vm.iconSize,"type":!_vm.passwordReveal ? _vm.statusType : 'is-primary',"both":""},nativeOn:{"click":function($event){_vm.togglePasswordVisibility($event);}}}):_vm._e(),_vm._v(" "),(_vm.maxlength && _vm.hasCounter && _vm.type !== 'number')?_c('small',{staticClass:"help counter",class:{ 'is-invisible': !_vm.isFocused }},[_vm._v("\n "+_vm._s(_vm.valueLength)+" / "+_vm._s(_vm.maxlength)+"\n ")]):_vm._e()],1)};
|
|
171
|
+
var __vue_staticRenderFns__ = [];
|
|
172
|
+
|
|
173
|
+
/* style */
|
|
174
|
+
const __vue_inject_styles__ = undefined;
|
|
175
|
+
/* scoped */
|
|
176
|
+
const __vue_scope_id__ = undefined;
|
|
177
|
+
/* module identifier */
|
|
178
|
+
const __vue_module_identifier__ = undefined;
|
|
179
|
+
/* functional template */
|
|
180
|
+
const __vue_is_functional_template__ = false;
|
|
181
|
+
/* style inject */
|
|
182
|
+
|
|
183
|
+
/* style inject SSR */
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
var Input = __vue_normalize__(
|
|
188
|
+
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
|
189
|
+
__vue_inject_styles__,
|
|
190
|
+
__vue_script__,
|
|
191
|
+
__vue_scope_id__,
|
|
192
|
+
__vue_is_functional_template__,
|
|
193
|
+
__vue_module_identifier__,
|
|
194
|
+
undefined,
|
|
195
|
+
undefined
|
|
196
|
+
);
|
|
197
|
+
|
|
198
|
+
export { Input as I };
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/*! Buefy v0.7.10 | MIT License | github.com/buefy/buefy */
|
|
2
|
+
import { c as config } from './chunk-2cb6f867.js';
|
|
3
|
+
import { _ as __vue_normalize__ } from './chunk-fd5b0e1e.js';
|
|
4
|
+
|
|
5
|
+
//
|
|
6
|
+
var script = {
|
|
7
|
+
name: 'BTooltip',
|
|
8
|
+
props: {
|
|
9
|
+
active: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
default: true
|
|
12
|
+
},
|
|
13
|
+
type: String,
|
|
14
|
+
label: String,
|
|
15
|
+
position: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: 'is-top',
|
|
18
|
+
validator: function validator(value) {
|
|
19
|
+
return ['is-top', 'is-bottom', 'is-left', 'is-right'].indexOf(value) > -1;
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
always: Boolean,
|
|
23
|
+
animated: Boolean,
|
|
24
|
+
square: Boolean,
|
|
25
|
+
dashed: Boolean,
|
|
26
|
+
multilined: Boolean,
|
|
27
|
+
size: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: 'is-medium'
|
|
30
|
+
},
|
|
31
|
+
delay: Number
|
|
32
|
+
},
|
|
33
|
+
computed: {
|
|
34
|
+
newType: function newType() {
|
|
35
|
+
return this.type || config.defaultTooltipType;
|
|
36
|
+
},
|
|
37
|
+
newAnimated: function newAnimated() {
|
|
38
|
+
return this.animated || config.defaultTooltipAnimated;
|
|
39
|
+
},
|
|
40
|
+
newDelay: function newDelay() {
|
|
41
|
+
return this.delay || config.defaultTooltipDelay;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/* script */
|
|
47
|
+
const __vue_script__ = script;
|
|
48
|
+
|
|
49
|
+
/* template */
|
|
50
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{class:[_vm.newType, _vm.position, _vm.size, {
|
|
51
|
+
'b-tooltip': _vm.active,
|
|
52
|
+
'is-square': _vm.square,
|
|
53
|
+
'is-animated': _vm.newAnimated,
|
|
54
|
+
'is-always': _vm.always,
|
|
55
|
+
'is-multiline': _vm.multilined,
|
|
56
|
+
'is-dashed': _vm.dashed
|
|
57
|
+
}],style:({'transition-delay': (_vm.newDelay + "ms")}),attrs:{"data-label":_vm.label}},[_vm._t("default")],2)};
|
|
58
|
+
var __vue_staticRenderFns__ = [];
|
|
59
|
+
|
|
60
|
+
/* style */
|
|
61
|
+
const __vue_inject_styles__ = undefined;
|
|
62
|
+
/* scoped */
|
|
63
|
+
const __vue_scope_id__ = undefined;
|
|
64
|
+
/* module identifier */
|
|
65
|
+
const __vue_module_identifier__ = undefined;
|
|
66
|
+
/* functional template */
|
|
67
|
+
const __vue_is_functional_template__ = false;
|
|
68
|
+
/* style inject */
|
|
69
|
+
|
|
70
|
+
/* style inject SSR */
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
var Tooltip = __vue_normalize__(
|
|
75
|
+
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
|
76
|
+
__vue_inject_styles__,
|
|
77
|
+
__vue_script__,
|
|
78
|
+
__vue_scope_id__,
|
|
79
|
+
__vue_is_functional_template__,
|
|
80
|
+
__vue_module_identifier__,
|
|
81
|
+
undefined,
|
|
82
|
+
undefined
|
|
83
|
+
);
|
|
84
|
+
|
|
85
|
+
export { Tooltip as T };
|