buefy 0.9.26 → 0.9.28
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/README.md +3 -1
- package/dist/buefy.css +15904 -0
- package/dist/buefy.esm.js +17883 -0
- package/dist/buefy.esm.min.js +2 -0
- package/dist/buefy.js +17967 -0
- package/dist/buefy.min.css +1 -0
- package/dist/buefy.min.js +2 -0
- package/dist/cjs/Autocomplete-7a39c5ce.js +673 -0
- package/dist/cjs/Button-01827709.js +114 -0
- package/dist/cjs/CheckRadioMixin-c910f2ed.js +45 -0
- package/dist/cjs/Checkbox-43f54cc7.js +70 -0
- package/dist/cjs/Datepicker-680659bc.js +1679 -0
- package/dist/cjs/DropdownItem-422f8c34.js +559 -0
- package/dist/cjs/Field-4557b10c.js +315 -0
- package/dist/cjs/FormElementMixin-193a88b8.js +163 -0
- package/dist/cjs/Icon-78961800.js +189 -0
- package/dist/cjs/Image-c4bcd9b3.js +299 -0
- package/dist/cjs/InjectedChildMixin-d6bf7f91.js +135 -0
- package/dist/cjs/Input-e5a72d97.js +248 -0
- package/dist/cjs/Loading-6f2c7075.js +150 -0
- package/dist/cjs/MessageMixin-8d959514.js +146 -0
- package/dist/cjs/Modal-4cf07210.js +278 -0
- package/dist/cjs/NoticeMixin-01121bd2.js +154 -0
- package/dist/cjs/Pagination-d6b3fb85.js +413 -0
- package/dist/cjs/Select-2b3879bc.js +100 -0
- package/dist/cjs/SlotComponent-4fb48389.js +53 -0
- package/dist/cjs/TabbedChildMixin-907cad32.js +222 -0
- package/dist/cjs/Tag-437f65fb.js +154 -0
- package/dist/cjs/Timepicker-498fa02b.js +67 -0
- package/dist/cjs/TimepickerMixin-6c1a4ab4.js +661 -0
- package/dist/cjs/Tooltip-c1df7ee3.js +370 -0
- package/dist/cjs/_rollupPluginBabelHelpers-8b2e54ad.js +365 -0
- package/dist/cjs/autocomplete.js +22 -0
- package/dist/cjs/breadcrumb.js +139 -0
- package/dist/cjs/button.js +20 -0
- package/dist/cjs/carousel.js +662 -0
- package/dist/cjs/checkbox.js +86 -0
- package/dist/cjs/clockpicker.js +461 -0
- package/dist/cjs/collapse.js +128 -0
- package/dist/cjs/colorpicker.js +23 -0
- package/dist/cjs/config-8cfb5a4a.js +81 -0
- package/dist/cjs/config.js +18 -0
- package/dist/cjs/datepicker.js +27 -0
- package/dist/cjs/datetimepicker.js +377 -0
- package/dist/cjs/dialog.js +308 -0
- package/dist/cjs/dropdown.js +23 -0
- package/dist/cjs/field.js +18 -0
- package/dist/cjs/helpers.js +375 -0
- package/dist/cjs/icon.js +19 -0
- package/dist/cjs/image.js +19 -0
- package/dist/cjs/index-99d1c930.js +1633 -0
- package/dist/cjs/index.js +216 -0
- package/dist/cjs/input.js +21 -0
- package/dist/cjs/loading.js +38 -0
- package/dist/cjs/menu.js +304 -0
- package/dist/cjs/message.js +67 -0
- package/dist/cjs/modal.js +59 -0
- package/dist/cjs/navbar.js +679 -0
- package/dist/cjs/notification.js +181 -0
- package/dist/cjs/numberinput.js +278 -0
- package/dist/cjs/pagination.js +22 -0
- package/dist/cjs/plugins-7f41b028.js +94 -0
- package/dist/cjs/progress.js +239 -0
- package/dist/cjs/radio.js +130 -0
- package/dist/cjs/rate.js +156 -0
- package/dist/cjs/select.js +21 -0
- package/dist/cjs/sidebar.js +303 -0
- package/dist/cjs/skeleton.js +111 -0
- package/dist/cjs/slider.js +603 -0
- package/dist/cjs/snackbar.js +132 -0
- package/dist/cjs/ssr-20dba236.js +10 -0
- package/dist/cjs/steps.js +278 -0
- package/dist/cjs/switch.js +139 -0
- package/dist/cjs/table.js +1695 -0
- package/dist/cjs/tabs.js +214 -0
- package/dist/cjs/tag.js +70 -0
- package/dist/cjs/taginput.js +331 -0
- package/dist/cjs/timepicker.js +28 -0
- package/dist/cjs/toast.js +106 -0
- package/dist/cjs/tooltip.js +19 -0
- package/dist/cjs/trapFocus-261420b0.js +49 -0
- package/dist/cjs/upload.js +205 -0
- package/dist/components/autocomplete/index.js +1620 -0
- package/dist/components/autocomplete/index.min.js +2 -0
- package/dist/components/breadcrumb/index.js +297 -0
- package/dist/components/breadcrumb/index.min.js +2 -0
- package/dist/components/button/index.js +569 -0
- package/dist/components/button/index.min.js +2 -0
- package/dist/components/carousel/index.js +1629 -0
- package/dist/components/carousel/index.min.js +2 -0
- package/dist/components/checkbox/index.js +279 -0
- package/dist/components/checkbox/index.min.js +2 -0
- package/dist/components/clockpicker/index.js +3131 -0
- package/dist/components/clockpicker/index.min.js +2 -0
- package/dist/components/collapse/index.js +217 -0
- package/dist/components/collapse/index.min.js +2 -0
- package/dist/components/colorpicker/index.js +4249 -0
- package/dist/components/colorpicker/index.min.js +2 -0
- package/dist/components/datepicker/index.js +3845 -0
- package/dist/components/datepicker/index.min.js +2 -0
- package/dist/components/datetimepicker/index.js +4902 -0
- package/dist/components/datetimepicker/index.min.js +2 -0
- package/dist/components/dialog/index.js +1168 -0
- package/dist/components/dialog/index.min.js +2 -0
- package/dist/components/dropdown/index.js +1043 -0
- package/dist/components/dropdown/index.min.js +2 -0
- package/dist/components/field/index.js +511 -0
- package/dist/components/field/index.min.js +2 -0
- package/dist/components/icon/index.js +463 -0
- package/dist/components/icon/index.min.js +2 -0
- package/dist/components/image/index.js +513 -0
- package/dist/components/image/index.min.js +2 -0
- package/dist/components/input/index.js +862 -0
- package/dist/components/input/index.min.js +2 -0
- package/dist/components/loading/index.js +366 -0
- package/dist/components/loading/index.min.js +2 -0
- package/dist/components/menu/index.js +748 -0
- package/dist/components/menu/index.min.js +2 -0
- package/dist/components/message/index.js +650 -0
- package/dist/components/message/index.min.js +2 -0
- package/dist/components/modal/index.js +624 -0
- package/dist/components/modal/index.min.js +2 -0
- package/dist/components/navbar/index.js +805 -0
- package/dist/components/navbar/index.min.js +2 -0
- package/dist/components/notification/index.js +923 -0
- package/dist/components/notification/index.min.js +2 -0
- package/dist/components/numberinput/index.js +1119 -0
- package/dist/components/numberinput/index.min.js +2 -0
- package/dist/components/pagination/index.js +868 -0
- package/dist/components/pagination/index.min.js +2 -0
- package/dist/components/progress/index.js +621 -0
- package/dist/components/progress/index.min.js +2 -0
- package/dist/components/radio/index.js +260 -0
- package/dist/components/radio/index.min.js +2 -0
- package/dist/components/rate/index.js +600 -0
- package/dist/components/rate/index.min.js +2 -0
- package/dist/components/select/index.js +715 -0
- package/dist/components/select/index.min.js +2 -0
- package/dist/components/sidebar/index.js +467 -0
- package/dist/components/sidebar/index.min.js +2 -0
- package/dist/components/skeleton/index.js +200 -0
- package/dist/components/skeleton/index.min.js +2 -0
- package/dist/components/slider/index.js +1264 -0
- package/dist/components/slider/index.min.js +2 -0
- package/dist/components/snackbar/index.js +527 -0
- package/dist/components/snackbar/index.min.js +2 -0
- package/dist/components/steps/index.js +1180 -0
- package/dist/components/steps/index.min.js +2 -0
- package/dist/components/switch/index.js +297 -0
- package/dist/components/switch/index.min.js +2 -0
- package/dist/components/table/index.js +3480 -0
- package/dist/components/table/index.min.js +2 -0
- package/dist/components/tabs/index.js +1116 -0
- package/dist/components/tabs/index.min.js +2 -0
- package/dist/components/tag/index.js +307 -0
- package/dist/components/tag/index.min.js +2 -0
- package/dist/components/taginput/index.js +2104 -0
- package/dist/components/taginput/index.min.js +2 -0
- package/dist/components/timepicker/index.js +2843 -0
- package/dist/components/timepicker/index.min.js +2 -0
- package/dist/components/toast/index.js +501 -0
- package/dist/components/toast/index.min.js +2 -0
- package/dist/components/tooltip/index.js +630 -0
- package/dist/components/tooltip/index.min.js +2 -0
- package/dist/components/upload/index.js +525 -0
- package/dist/components/upload/index.min.js +2 -0
- package/dist/esm/Autocomplete-1a6e8770.js +671 -0
- package/dist/esm/Button-521f6efc.js +112 -0
- package/dist/esm/CheckRadioMixin-e726a83c.js +43 -0
- package/dist/esm/Checkbox-1d02686e.js +68 -0
- package/dist/esm/Datepicker-0ae1e826.js +1677 -0
- package/dist/esm/DropdownItem-55682322.js +556 -0
- package/dist/esm/Field-3ceba31e.js +313 -0
- package/dist/esm/FormElementMixin-b223d3c7.js +161 -0
- package/dist/esm/Icon-60d47b31.js +187 -0
- package/dist/esm/Image-75808acb.js +297 -0
- package/dist/esm/InjectedChildMixin-b4220787.js +130 -0
- package/dist/esm/Input-20612b63.js +246 -0
- package/dist/esm/Loading-ae028ea5.js +148 -0
- package/dist/esm/MessageMixin-d577a9f5.js +144 -0
- package/dist/esm/Modal-7da7641f.js +276 -0
- package/dist/esm/NoticeMixin-bd6f61d9.js +152 -0
- package/dist/esm/Pagination-68f12c1e.js +409 -0
- package/dist/esm/Select-97781d4e.js +98 -0
- package/dist/esm/SlotComponent-8871a20f.js +51 -0
- package/dist/esm/TabbedChildMixin-bcb13767.js +219 -0
- package/dist/esm/Tag-6365aa46.js +152 -0
- package/dist/esm/Timepicker-38480bbc.js +65 -0
- package/dist/esm/TimepickerMixin-d736b0a9.js +659 -0
- package/dist/esm/Tooltip-d98a769c.js +368 -0
- package/dist/esm/_rollupPluginBabelHelpers-df313029.js +350 -0
- package/dist/esm/autocomplete.js +18 -0
- package/dist/esm/breadcrumb.js +133 -0
- package/dist/esm/button.js +16 -0
- package/dist/esm/carousel.js +655 -0
- package/dist/esm/checkbox.js +81 -0
- package/dist/esm/clockpicker.js +456 -0
- package/dist/esm/collapse.js +123 -0
- package/dist/esm/colorpicker.js +14 -0
- package/dist/esm/config-e7d4b9c2.js +78 -0
- package/dist/esm/config.js +14 -0
- package/dist/esm/datepicker.js +23 -0
- package/dist/esm/datetimepicker.js +372 -0
- package/dist/esm/dialog.js +302 -0
- package/dist/esm/dropdown.js +18 -0
- package/dist/esm/field.js +14 -0
- package/dist/esm/helpers.js +348 -0
- package/dist/esm/icon.js +15 -0
- package/dist/esm/image.js +15 -0
- package/dist/esm/index-903f63ea.js +1629 -0
- package/dist/esm/index.js +182 -0
- package/dist/esm/input.js +17 -0
- package/dist/esm/loading.js +33 -0
- package/dist/esm/menu.js +297 -0
- package/dist/esm/message.js +62 -0
- package/dist/esm/modal.js +54 -0
- package/dist/esm/navbar.js +672 -0
- package/dist/esm/notification.js +175 -0
- package/dist/esm/numberinput.js +273 -0
- package/dist/esm/pagination.js +17 -0
- package/dist/esm/plugins-218aea86.js +89 -0
- package/dist/esm/progress.js +233 -0
- package/dist/esm/radio.js +124 -0
- package/dist/esm/rate.js +151 -0
- package/dist/esm/select.js +17 -0
- package/dist/esm/sidebar.js +298 -0
- package/dist/esm/skeleton.js +106 -0
- package/dist/esm/slider.js +597 -0
- package/dist/esm/snackbar.js +126 -0
- package/dist/esm/ssr-b847d137.js +7 -0
- package/dist/esm/steps.js +272 -0
- package/dist/esm/switch.js +134 -0
- package/dist/esm/table.js +1689 -0
- package/dist/esm/tabs.js +208 -0
- package/dist/esm/tag.js +65 -0
- package/dist/esm/taginput.js +326 -0
- package/dist/esm/timepicker.js +24 -0
- package/dist/esm/toast.js +100 -0
- package/dist/esm/tooltip.js +15 -0
- package/dist/esm/trapFocus-f0736873.js +47 -0
- package/dist/esm/upload.js +200 -0
- package/dist/vetur/attributes.json +3238 -0
- package/dist/vetur/tags.json +1183 -0
- package/package.json +3 -3
- package/src/components/autocomplete/Autocomplete.spec.js +16 -0
- package/src/components/autocomplete/Autocomplete.vue +9 -3
- package/src/components/colorpicker/ColorpickerHSLRepresentationSquare.vue +2 -0
- package/src/components/colorpicker/ColorpickerHSLRepresentationTriangle.vue +2 -0
- package/src/components/dropdown/Dropdown.vue +51 -3
- package/src/components/numberinput/Numberinput.vue +4 -0
- package/src/components/sidebar/Sidebar.vue +1 -0
- package/src/components/slider/Slider.vue +7 -2
- package/src/components/slider/SliderThumb.vue +8 -0
- package/src/components/table/Table.vue +4 -1
- package/src/components/table/TableColumn.spec.js +51 -0
- package/src/components/table/TableColumn.vue +8 -1
- package/src/components/taginput/Taginput.vue +7 -2
- package/src/components/tooltip/Tooltip.vue +10 -3
- package/src/scss/components/_dropdown.scss +4 -2
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { c as config } from './config-e7d4b9c2.js';
|
|
2
|
+
import { removeElement } from './helpers.js';
|
|
3
|
+
|
|
4
|
+
var NoticeMixin = {
|
|
5
|
+
props: {
|
|
6
|
+
type: {
|
|
7
|
+
type: String,
|
|
8
|
+
default: 'is-dark'
|
|
9
|
+
},
|
|
10
|
+
message: [String, Array],
|
|
11
|
+
duration: Number,
|
|
12
|
+
queue: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
default: undefined
|
|
15
|
+
},
|
|
16
|
+
indefinite: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: false
|
|
19
|
+
},
|
|
20
|
+
pauseOnHover: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: false
|
|
23
|
+
},
|
|
24
|
+
position: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: 'is-top',
|
|
27
|
+
validator: function validator(value) {
|
|
28
|
+
return ['is-top-right', 'is-top', 'is-top-left', 'is-bottom-right', 'is-bottom', 'is-bottom-left'].indexOf(value) > -1;
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
container: String
|
|
32
|
+
},
|
|
33
|
+
data: function data() {
|
|
34
|
+
return {
|
|
35
|
+
isActive: false,
|
|
36
|
+
isPaused: false,
|
|
37
|
+
parentTop: null,
|
|
38
|
+
parentBottom: null,
|
|
39
|
+
newContainer: this.container || config.defaultContainerElement
|
|
40
|
+
};
|
|
41
|
+
},
|
|
42
|
+
computed: {
|
|
43
|
+
correctParent: function correctParent() {
|
|
44
|
+
switch (this.position) {
|
|
45
|
+
case 'is-top-right':
|
|
46
|
+
case 'is-top':
|
|
47
|
+
case 'is-top-left':
|
|
48
|
+
return this.parentTop;
|
|
49
|
+
case 'is-bottom-right':
|
|
50
|
+
case 'is-bottom':
|
|
51
|
+
case 'is-bottom-left':
|
|
52
|
+
return this.parentBottom;
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
transition: function transition() {
|
|
56
|
+
switch (this.position) {
|
|
57
|
+
case 'is-top-right':
|
|
58
|
+
case 'is-top':
|
|
59
|
+
case 'is-top-left':
|
|
60
|
+
return {
|
|
61
|
+
enter: 'fadeInDown',
|
|
62
|
+
leave: 'fadeOut'
|
|
63
|
+
};
|
|
64
|
+
case 'is-bottom-right':
|
|
65
|
+
case 'is-bottom':
|
|
66
|
+
case 'is-bottom-left':
|
|
67
|
+
return {
|
|
68
|
+
enter: 'fadeInUp',
|
|
69
|
+
leave: 'fadeOut'
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
methods: {
|
|
75
|
+
pause: function pause() {
|
|
76
|
+
if (this.pauseOnHover && !this.indefinite) {
|
|
77
|
+
this.isPaused = true;
|
|
78
|
+
clearInterval(this.$buefy.globalNoticeInterval);
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
removePause: function removePause() {
|
|
82
|
+
if (this.pauseOnHover && !this.indefinite) {
|
|
83
|
+
this.isPaused = false;
|
|
84
|
+
this.close();
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
shouldQueue: function shouldQueue() {
|
|
88
|
+
var queue = this.queue !== undefined ? this.queue : config.defaultNoticeQueue;
|
|
89
|
+
if (!queue) return false;
|
|
90
|
+
return this.parentTop.childElementCount > 0 || this.parentBottom.childElementCount > 0;
|
|
91
|
+
},
|
|
92
|
+
click: function click() {
|
|
93
|
+
this.$emit('click');
|
|
94
|
+
},
|
|
95
|
+
close: function close() {
|
|
96
|
+
var _this = this;
|
|
97
|
+
if (!this.isPaused) {
|
|
98
|
+
clearTimeout(this.timer);
|
|
99
|
+
this.isActive = false;
|
|
100
|
+
this.$emit('close');
|
|
101
|
+
|
|
102
|
+
// Timeout for the animation complete before destroying
|
|
103
|
+
setTimeout(function () {
|
|
104
|
+
_this.$destroy();
|
|
105
|
+
removeElement(_this.$el);
|
|
106
|
+
}, 150);
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
timeoutCallback: function timeoutCallback() {
|
|
110
|
+
return this.close();
|
|
111
|
+
},
|
|
112
|
+
showNotice: function showNotice() {
|
|
113
|
+
var _this2 = this;
|
|
114
|
+
if (this.shouldQueue()) this.correctParent.innerHTML = '';
|
|
115
|
+
this.correctParent.insertAdjacentElement('afterbegin', this.$el);
|
|
116
|
+
this.isActive = true;
|
|
117
|
+
if (!this.indefinite) {
|
|
118
|
+
this.timer = setTimeout(function () {
|
|
119
|
+
return _this2.timeoutCallback();
|
|
120
|
+
}, this.newDuration);
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
setupContainer: function setupContainer() {
|
|
124
|
+
this.parentTop = document.querySelector((this.newContainer ? this.newContainer : 'body') + '>.notices.is-top');
|
|
125
|
+
this.parentBottom = document.querySelector((this.newContainer ? this.newContainer : 'body') + '>.notices.is-bottom');
|
|
126
|
+
if (this.parentTop && this.parentBottom) return;
|
|
127
|
+
if (!this.parentTop) {
|
|
128
|
+
this.parentTop = document.createElement('div');
|
|
129
|
+
this.parentTop.className = 'notices is-top';
|
|
130
|
+
}
|
|
131
|
+
if (!this.parentBottom) {
|
|
132
|
+
this.parentBottom = document.createElement('div');
|
|
133
|
+
this.parentBottom.className = 'notices is-bottom';
|
|
134
|
+
}
|
|
135
|
+
var container = document.querySelector(this.newContainer) || document.body;
|
|
136
|
+
container.appendChild(this.parentTop);
|
|
137
|
+
container.appendChild(this.parentBottom);
|
|
138
|
+
if (this.newContainer) {
|
|
139
|
+
this.parentTop.classList.add('has-custom-container');
|
|
140
|
+
this.parentBottom.classList.add('has-custom-container');
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
beforeMount: function beforeMount() {
|
|
145
|
+
this.setupContainer();
|
|
146
|
+
},
|
|
147
|
+
mounted: function mounted() {
|
|
148
|
+
this.showNotice();
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
export { NoticeMixin as N };
|
|
@@ -0,0 +1,409 @@
|
|
|
1
|
+
import { _ as _defineProperty } from './_rollupPluginBabelHelpers-df313029.js';
|
|
2
|
+
import { c as config } from './config-e7d4b9c2.js';
|
|
3
|
+
import { n as normalizeComponent } from './plugins-218aea86.js';
|
|
4
|
+
import { I as Icon } from './Icon-60d47b31.js';
|
|
5
|
+
|
|
6
|
+
//
|
|
7
|
+
var script$1 = {
|
|
8
|
+
name: 'BPaginationButton',
|
|
9
|
+
props: {
|
|
10
|
+
page: {
|
|
11
|
+
type: Object,
|
|
12
|
+
required: true
|
|
13
|
+
},
|
|
14
|
+
tag: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: 'a',
|
|
17
|
+
validator: function validator(value) {
|
|
18
|
+
return config.defaultLinkTags.indexOf(value) >= 0;
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
disabled: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: false
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
computed: {
|
|
27
|
+
href: function href() {
|
|
28
|
+
if (this.tag === 'a') {
|
|
29
|
+
return '#';
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
isDisabled: function isDisabled() {
|
|
33
|
+
return this.disabled || this.page.disabled;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/* script */
|
|
39
|
+
const __vue_script__$1 = script$1;
|
|
40
|
+
|
|
41
|
+
/* template */
|
|
42
|
+
var __vue_render__$1 = function () {
|
|
43
|
+
var _obj;
|
|
44
|
+
var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(_vm.tag,_vm._b({tag:"component",staticClass:"pagination-link",class:( _obj = { 'is-current': _vm.page.isCurrent }, _obj[_vm.page.class] = true, _obj ),attrs:{"role":"button","href":_vm.href,"disabled":_vm.isDisabled,"aria-label":_vm.page['aria-label'],"aria-current":_vm.page.isCurrent},on:{"click":function($event){$event.preventDefault();return _vm.page.click($event)}}},'component',_vm.$attrs,false),[_vm._t("default",[_vm._v(_vm._s(_vm.page.number))])],2)};
|
|
45
|
+
var __vue_staticRenderFns__$1 = [];
|
|
46
|
+
|
|
47
|
+
/* style */
|
|
48
|
+
const __vue_inject_styles__$1 = undefined;
|
|
49
|
+
/* scoped */
|
|
50
|
+
const __vue_scope_id__$1 = undefined;
|
|
51
|
+
/* module identifier */
|
|
52
|
+
const __vue_module_identifier__$1 = undefined;
|
|
53
|
+
/* functional template */
|
|
54
|
+
const __vue_is_functional_template__$1 = false;
|
|
55
|
+
/* style inject */
|
|
56
|
+
|
|
57
|
+
/* style inject SSR */
|
|
58
|
+
|
|
59
|
+
/* style inject shadow dom */
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
const __vue_component__$1 = /*#__PURE__*/normalizeComponent(
|
|
64
|
+
{ render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 },
|
|
65
|
+
__vue_inject_styles__$1,
|
|
66
|
+
__vue_script__$1,
|
|
67
|
+
__vue_scope_id__$1,
|
|
68
|
+
__vue_is_functional_template__$1,
|
|
69
|
+
__vue_module_identifier__$1,
|
|
70
|
+
false,
|
|
71
|
+
undefined,
|
|
72
|
+
undefined,
|
|
73
|
+
undefined
|
|
74
|
+
);
|
|
75
|
+
|
|
76
|
+
var PaginationButton = __vue_component__$1;
|
|
77
|
+
|
|
78
|
+
function debounce (func, wait, immediate) {
|
|
79
|
+
var timeout;
|
|
80
|
+
return function () {
|
|
81
|
+
var context = this;
|
|
82
|
+
var args = arguments;
|
|
83
|
+
var later = function later() {
|
|
84
|
+
timeout = null;
|
|
85
|
+
if (!immediate) func.apply(context, args);
|
|
86
|
+
};
|
|
87
|
+
var callNow = immediate && !timeout;
|
|
88
|
+
clearTimeout(timeout);
|
|
89
|
+
timeout = setTimeout(later, wait);
|
|
90
|
+
if (callNow) func.apply(context, args);
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
var script = {
|
|
95
|
+
name: 'BPagination',
|
|
96
|
+
components: _defineProperty(_defineProperty({}, Icon.name, Icon), PaginationButton.name, PaginationButton),
|
|
97
|
+
// deprecated, to replace with default 'value' in the next breaking change
|
|
98
|
+
model: {
|
|
99
|
+
prop: 'current',
|
|
100
|
+
event: 'update:current'
|
|
101
|
+
},
|
|
102
|
+
props: {
|
|
103
|
+
total: [Number, String],
|
|
104
|
+
perPage: {
|
|
105
|
+
type: [Number, String],
|
|
106
|
+
default: 20
|
|
107
|
+
},
|
|
108
|
+
current: {
|
|
109
|
+
type: [Number, String],
|
|
110
|
+
default: 1
|
|
111
|
+
},
|
|
112
|
+
rangeBefore: {
|
|
113
|
+
type: [Number, String],
|
|
114
|
+
default: 1
|
|
115
|
+
},
|
|
116
|
+
rangeAfter: {
|
|
117
|
+
type: [Number, String],
|
|
118
|
+
default: 1
|
|
119
|
+
},
|
|
120
|
+
size: String,
|
|
121
|
+
simple: Boolean,
|
|
122
|
+
rounded: Boolean,
|
|
123
|
+
order: String,
|
|
124
|
+
iconPack: String,
|
|
125
|
+
iconPrev: {
|
|
126
|
+
type: String,
|
|
127
|
+
default: function _default() {
|
|
128
|
+
return config.defaultIconPrev;
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
iconNext: {
|
|
132
|
+
type: String,
|
|
133
|
+
default: function _default() {
|
|
134
|
+
return config.defaultIconNext;
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
ariaNextLabel: String,
|
|
138
|
+
ariaPreviousLabel: String,
|
|
139
|
+
ariaPageLabel: String,
|
|
140
|
+
ariaCurrentLabel: String,
|
|
141
|
+
pageInput: {
|
|
142
|
+
type: Boolean,
|
|
143
|
+
default: false
|
|
144
|
+
},
|
|
145
|
+
pageInputPosition: String,
|
|
146
|
+
debouncePageInput: [Number, String]
|
|
147
|
+
},
|
|
148
|
+
data: function data() {
|
|
149
|
+
return {
|
|
150
|
+
inputValue: this.current
|
|
151
|
+
};
|
|
152
|
+
},
|
|
153
|
+
computed: {
|
|
154
|
+
rootClasses: function rootClasses() {
|
|
155
|
+
return [this.order, this.size, this.pageInputPosition, {
|
|
156
|
+
'is-simple': this.simple,
|
|
157
|
+
'is-rounded': this.rounded,
|
|
158
|
+
'has-input': this.pageInput
|
|
159
|
+
}];
|
|
160
|
+
},
|
|
161
|
+
beforeCurrent: function beforeCurrent() {
|
|
162
|
+
return parseInt(this.rangeBefore);
|
|
163
|
+
},
|
|
164
|
+
afterCurrent: function afterCurrent() {
|
|
165
|
+
return parseInt(this.rangeAfter);
|
|
166
|
+
},
|
|
167
|
+
/**
|
|
168
|
+
* Total page size (count).
|
|
169
|
+
*/
|
|
170
|
+
pageCount: function pageCount() {
|
|
171
|
+
return Math.ceil(this.total / this.perPage);
|
|
172
|
+
},
|
|
173
|
+
/**
|
|
174
|
+
* First item of the page (count).
|
|
175
|
+
*/
|
|
176
|
+
firstItem: function firstItem() {
|
|
177
|
+
var firstItem = this.current * this.perPage - this.perPage + 1;
|
|
178
|
+
return firstItem >= 0 ? firstItem : 0;
|
|
179
|
+
},
|
|
180
|
+
/**
|
|
181
|
+
* Check if previous button is available.
|
|
182
|
+
*/
|
|
183
|
+
hasPrev: function hasPrev() {
|
|
184
|
+
return this.current > 1;
|
|
185
|
+
},
|
|
186
|
+
/**
|
|
187
|
+
* Check if first page button should be visible.
|
|
188
|
+
*/
|
|
189
|
+
hasFirst: function hasFirst() {
|
|
190
|
+
return this.current >= 2 + this.beforeCurrent;
|
|
191
|
+
},
|
|
192
|
+
/**
|
|
193
|
+
* Check if first ellipsis should be visible.
|
|
194
|
+
*/
|
|
195
|
+
hasFirstEllipsis: function hasFirstEllipsis() {
|
|
196
|
+
return this.current >= this.beforeCurrent + 4;
|
|
197
|
+
},
|
|
198
|
+
/**
|
|
199
|
+
* Check if last page button should be visible.
|
|
200
|
+
*/
|
|
201
|
+
hasLast: function hasLast() {
|
|
202
|
+
return this.current <= this.pageCount - (1 + this.afterCurrent);
|
|
203
|
+
},
|
|
204
|
+
/**
|
|
205
|
+
* Check if last ellipsis should be visible.
|
|
206
|
+
*/
|
|
207
|
+
hasLastEllipsis: function hasLastEllipsis() {
|
|
208
|
+
return this.current < this.pageCount - (2 + this.afterCurrent);
|
|
209
|
+
},
|
|
210
|
+
/**
|
|
211
|
+
* Check if next button is available.
|
|
212
|
+
*/
|
|
213
|
+
hasNext: function hasNext() {
|
|
214
|
+
return this.current < this.pageCount;
|
|
215
|
+
},
|
|
216
|
+
/**
|
|
217
|
+
* Get near pages, 1 before and 1 after the current.
|
|
218
|
+
* Also add the click event to the array.
|
|
219
|
+
*/
|
|
220
|
+
pagesInRange: function pagesInRange() {
|
|
221
|
+
if (this.simple) return;
|
|
222
|
+
var left = Math.max(1, this.current - this.beforeCurrent);
|
|
223
|
+
if (left - 1 === 2) {
|
|
224
|
+
left--; // Do not show the ellipsis if there is only one to hide
|
|
225
|
+
}
|
|
226
|
+
var right = Math.min(this.current + this.afterCurrent, this.pageCount);
|
|
227
|
+
if (this.pageCount - right === 2) {
|
|
228
|
+
right++; // Do not show the ellipsis if there is only one to hide
|
|
229
|
+
}
|
|
230
|
+
var pages = [];
|
|
231
|
+
for (var i = left; i <= right; i++) {
|
|
232
|
+
pages.push(this.getPage(i));
|
|
233
|
+
}
|
|
234
|
+
return pages;
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
watch: {
|
|
238
|
+
/**
|
|
239
|
+
* If current page is trying to be greater than page count, set to last.
|
|
240
|
+
*/
|
|
241
|
+
pageCount: function pageCount(value) {
|
|
242
|
+
if (this.current > value) this.last();
|
|
243
|
+
},
|
|
244
|
+
current: function current(value) {
|
|
245
|
+
this.inputValue = value;
|
|
246
|
+
},
|
|
247
|
+
debouncePageInput: {
|
|
248
|
+
handler: function handler(value) {
|
|
249
|
+
this.debounceHandlePageInput = debounce(this.handleOnInputPageChange, value);
|
|
250
|
+
},
|
|
251
|
+
immediate: true
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
methods: {
|
|
255
|
+
/**
|
|
256
|
+
* Previous button click listener.
|
|
257
|
+
*/
|
|
258
|
+
prev: function prev(event) {
|
|
259
|
+
this.changePage(this.current - 1, event);
|
|
260
|
+
},
|
|
261
|
+
/**
|
|
262
|
+
* Next button click listener.
|
|
263
|
+
*/
|
|
264
|
+
next: function next(event) {
|
|
265
|
+
this.changePage(this.current + 1, event);
|
|
266
|
+
},
|
|
267
|
+
/**
|
|
268
|
+
* First button click listener.
|
|
269
|
+
*/
|
|
270
|
+
first: function first(event) {
|
|
271
|
+
this.changePage(1, event);
|
|
272
|
+
},
|
|
273
|
+
/**
|
|
274
|
+
* Last button click listener.
|
|
275
|
+
*/
|
|
276
|
+
last: function last(event) {
|
|
277
|
+
this.changePage(this.pageCount, event);
|
|
278
|
+
},
|
|
279
|
+
changePage: function changePage(num, event) {
|
|
280
|
+
if (this.current === num || num < 1 || num > this.pageCount) return;
|
|
281
|
+
this.$emit('update:current', num);
|
|
282
|
+
this.$emit('change', num);
|
|
283
|
+
|
|
284
|
+
// Set focus on element to keep tab order
|
|
285
|
+
if (event && event.target) {
|
|
286
|
+
this.$nextTick(function () {
|
|
287
|
+
return event.target.focus();
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
getPage: function getPage(num) {
|
|
292
|
+
var _this = this;
|
|
293
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
294
|
+
return {
|
|
295
|
+
number: num,
|
|
296
|
+
isCurrent: this.current === num,
|
|
297
|
+
click: function click(event) {
|
|
298
|
+
return _this.changePage(num, event);
|
|
299
|
+
},
|
|
300
|
+
input: function input(event, inputNum) {
|
|
301
|
+
return _this.changePage(+inputNum, event);
|
|
302
|
+
},
|
|
303
|
+
disabled: options.disabled || false,
|
|
304
|
+
class: options.class || '',
|
|
305
|
+
'aria-label': options['aria-label'] || this.getAriaPageLabel(num, this.current === num)
|
|
306
|
+
};
|
|
307
|
+
},
|
|
308
|
+
/**
|
|
309
|
+
* Get text for aria-label according to page number.
|
|
310
|
+
*/
|
|
311
|
+
getAriaPageLabel: function getAriaPageLabel(pageNumber, isCurrent) {
|
|
312
|
+
if (this.ariaPageLabel && (!isCurrent || !this.ariaCurrentLabel)) {
|
|
313
|
+
return this.ariaPageLabel + ' ' + pageNumber + '.';
|
|
314
|
+
} else if (this.ariaPageLabel && isCurrent && this.ariaCurrentLabel) {
|
|
315
|
+
return this.ariaCurrentLabel + ', ' + this.ariaPageLabel + ' ' + pageNumber + '.';
|
|
316
|
+
}
|
|
317
|
+
return null;
|
|
318
|
+
},
|
|
319
|
+
handleOnInputPageChange: function handleOnInputPageChange(event) {
|
|
320
|
+
this.getPage(this.inputValue).input(event, this.inputValue);
|
|
321
|
+
},
|
|
322
|
+
handleOnInputDebounce: function handleOnInputDebounce(event) {
|
|
323
|
+
if (this.debouncePageInput) {
|
|
324
|
+
this.debounceHandlePageInput(event);
|
|
325
|
+
} else {
|
|
326
|
+
this.handleOnInputPageChange(event);
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
handleOnKeyPress: function handleOnKeyPress(event) {
|
|
330
|
+
// --- This is required to only allow numeric inputs for the page input - --- //
|
|
331
|
+
// --- size attribute does not work with input type number. --- //
|
|
332
|
+
var ASCIICode = event.which || event.keyCode;
|
|
333
|
+
if (ASCIICode >= 48 && ASCIICode <= 57) {
|
|
334
|
+
return true;
|
|
335
|
+
} else {
|
|
336
|
+
return event.preventDefault();
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
handleAllowableInputPageRange: function handleAllowableInputPageRange(event) {
|
|
340
|
+
if (+event.target.value > 0 && +event.target.value <= this.pageCount) {
|
|
341
|
+
this.handleOnInputValue(event);
|
|
342
|
+
} else {
|
|
343
|
+
// --- It is nessacery to set inputValue to 1 and then to '' so that the DOM- --- //
|
|
344
|
+
// --- will update the input component even when Backspace is used and then-
|
|
345
|
+
// --- 0 us entered. --- //
|
|
346
|
+
this.inputValue = 1;
|
|
347
|
+
this.inputValue = '';
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
handleOnInputValue: function handleOnInputValue(event) {
|
|
351
|
+
var inputValue = +event.target.value;
|
|
352
|
+
this.inputValue = inputValue;
|
|
353
|
+
if (Number.isInteger(this.inputValue)) {
|
|
354
|
+
this.handleOnInputDebounce(event);
|
|
355
|
+
} else {
|
|
356
|
+
// --- if NaN, then set inputValue back to current --- //
|
|
357
|
+
this.inputValue = this.current;
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
};
|
|
362
|
+
|
|
363
|
+
/* script */
|
|
364
|
+
const __vue_script__ = script;
|
|
365
|
+
|
|
366
|
+
/* template */
|
|
367
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('nav',{staticClass:"pagination",class:_vm.rootClasses},[(_vm.$scopedSlots.previous)?_vm._t("previous",[_c('b-icon',{attrs:{"icon":_vm.iconPrev,"pack":_vm.iconPack,"both":"","aria-hidden":"true"}})],{"page":_vm.getPage(_vm.current - 1, {
|
|
368
|
+
disabled: !_vm.hasPrev,
|
|
369
|
+
class: 'pagination-previous',
|
|
370
|
+
'aria-label': _vm.ariaPreviousLabel,
|
|
371
|
+
})}):_c('BPaginationButton',{staticClass:"pagination-previous",attrs:{"disabled":!_vm.hasPrev,"page":_vm.getPage(_vm.current - 1),"aria-label":_vm.ariaPreviousLabel}},[_c('b-icon',{attrs:{"icon":_vm.iconPrev,"pack":_vm.iconPack,"both":"","aria-hidden":"true"}})],1),(_vm.$scopedSlots.next)?_vm._t("next",[_c('b-icon',{attrs:{"icon":_vm.iconNext,"pack":_vm.iconPack,"both":"","aria-hidden":"true"}})],{"page":_vm.getPage(_vm.current + 1, {
|
|
372
|
+
disabled: !_vm.hasNext,
|
|
373
|
+
class: 'pagination-next',
|
|
374
|
+
'aria-label': _vm.ariaNextLabel,
|
|
375
|
+
})}):_c('BPaginationButton',{staticClass:"pagination-next",attrs:{"disabled":!_vm.hasNext,"page":_vm.getPage(_vm.current + 1),"aria-label":_vm.ariaNextLabel}},[_c('b-icon',{attrs:{"icon":_vm.iconNext,"pack":_vm.iconPack,"both":"","aria-hidden":"true"}})],1),_c('div',{staticClass:"control pagination-input"},[(_vm.pageInput)?_c('input',{staticClass:"input",attrs:{"size":_vm.pageCount.toString().length,"maxlength":_vm.pageCount.toString().length},domProps:{"value":_vm.inputValue},on:{"input":_vm.handleAllowableInputPageRange,"keypress":_vm.handleOnKeyPress}}):_vm._e()]),(_vm.simple)?_c('small',{staticClass:"info"},[(_vm.perPage == 1)?[_vm._v(" "+_vm._s(_vm.firstItem)+" / "+_vm._s(_vm.total)+" ")]:[_vm._v(" "+_vm._s(_vm.firstItem)+"-"+_vm._s(Math.min(_vm.current * _vm.perPage, _vm.total))+" / "+_vm._s(_vm.total)+" ")]],2):_c('ul',{staticClass:"pagination-list"},[(_vm.hasFirst)?_c('li',[(_vm.$scopedSlots.default)?_vm._t("default",null,{"page":_vm.getPage(1)}):_c('BPaginationButton',{attrs:{"page":_vm.getPage(1)}})],2):_vm._e(),(_vm.hasFirstEllipsis)?_c('li',[_c('span',{staticClass:"pagination-ellipsis"},[_vm._v("…")])]):_vm._e(),_vm._l((_vm.pagesInRange),function(page){return _c('li',{key:page.number},[(_vm.$scopedSlots.default)?_vm._t("default",null,{"page":page}):_c('BPaginationButton',{attrs:{"page":page}})],2)}),(_vm.hasLastEllipsis)?_c('li',[_c('span',{staticClass:"pagination-ellipsis"},[_vm._v("…")])]):_vm._e(),(_vm.hasLast)?_c('li',[(_vm.$scopedSlots.default)?_vm._t("default",null,{"page":_vm.getPage(_vm.pageCount)}):_c('BPaginationButton',{attrs:{"page":_vm.getPage(_vm.pageCount)}})],2):_vm._e()],2)],2)};
|
|
376
|
+
var __vue_staticRenderFns__ = [];
|
|
377
|
+
|
|
378
|
+
/* style */
|
|
379
|
+
const __vue_inject_styles__ = undefined;
|
|
380
|
+
/* scoped */
|
|
381
|
+
const __vue_scope_id__ = undefined;
|
|
382
|
+
/* module identifier */
|
|
383
|
+
const __vue_module_identifier__ = undefined;
|
|
384
|
+
/* functional template */
|
|
385
|
+
const __vue_is_functional_template__ = false;
|
|
386
|
+
/* style inject */
|
|
387
|
+
|
|
388
|
+
/* style inject SSR */
|
|
389
|
+
|
|
390
|
+
/* style inject shadow dom */
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
const __vue_component__ = /*#__PURE__*/normalizeComponent(
|
|
395
|
+
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
|
396
|
+
__vue_inject_styles__,
|
|
397
|
+
__vue_script__,
|
|
398
|
+
__vue_scope_id__,
|
|
399
|
+
__vue_is_functional_template__,
|
|
400
|
+
__vue_module_identifier__,
|
|
401
|
+
false,
|
|
402
|
+
undefined,
|
|
403
|
+
undefined,
|
|
404
|
+
undefined
|
|
405
|
+
);
|
|
406
|
+
|
|
407
|
+
var Pagination = __vue_component__;
|
|
408
|
+
|
|
409
|
+
export { Pagination as P, PaginationButton as a, debounce as d };
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { _ as _defineProperty } from './_rollupPluginBabelHelpers-df313029.js';
|
|
2
|
+
import { I as Icon } from './Icon-60d47b31.js';
|
|
3
|
+
import { F as FormElementMixin } from './FormElementMixin-b223d3c7.js';
|
|
4
|
+
import { n as normalizeComponent } from './plugins-218aea86.js';
|
|
5
|
+
|
|
6
|
+
var script = {
|
|
7
|
+
name: 'BSelect',
|
|
8
|
+
components: _defineProperty({}, Icon.name, Icon),
|
|
9
|
+
mixins: [FormElementMixin],
|
|
10
|
+
inheritAttrs: false,
|
|
11
|
+
props: {
|
|
12
|
+
value: {
|
|
13
|
+
type: [String, Number, Boolean, Object, Array, Function, Date],
|
|
14
|
+
default: null
|
|
15
|
+
},
|
|
16
|
+
placeholder: String,
|
|
17
|
+
multiple: Boolean,
|
|
18
|
+
nativeSize: [String, Number]
|
|
19
|
+
},
|
|
20
|
+
data: function data() {
|
|
21
|
+
return {
|
|
22
|
+
selected: this.value,
|
|
23
|
+
_elementRef: 'select'
|
|
24
|
+
};
|
|
25
|
+
},
|
|
26
|
+
computed: {
|
|
27
|
+
computedValue: {
|
|
28
|
+
get: function get() {
|
|
29
|
+
return this.selected;
|
|
30
|
+
},
|
|
31
|
+
set: function set(value) {
|
|
32
|
+
this.selected = value;
|
|
33
|
+
this.$emit('input', value);
|
|
34
|
+
!this.isValid && this.checkHtml5Validity();
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
spanClasses: function spanClasses() {
|
|
38
|
+
return [this.size, this.statusType, {
|
|
39
|
+
'is-fullwidth': this.expanded,
|
|
40
|
+
'is-loading': this.loading,
|
|
41
|
+
'is-multiple': this.multiple,
|
|
42
|
+
'is-rounded': this.rounded,
|
|
43
|
+
'is-empty': this.selected === null
|
|
44
|
+
}];
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
watch: {
|
|
48
|
+
/**
|
|
49
|
+
* When v-model is changed:
|
|
50
|
+
* 1. Set the selected option.
|
|
51
|
+
* 2. If it's invalid, validate again.
|
|
52
|
+
*/
|
|
53
|
+
value: function value(_value) {
|
|
54
|
+
this.selected = _value;
|
|
55
|
+
!this.isValid && this.checkHtml5Validity();
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
/* script */
|
|
61
|
+
const __vue_script__ = script;
|
|
62
|
+
|
|
63
|
+
/* template */
|
|
64
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"control",class:{ 'is-expanded': _vm.expanded, 'has-icons-left': _vm.icon }},[_c('span',{staticClass:"select",class:_vm.spanClasses},[_c('select',_vm._b({directives:[{name:"model",rawName:"v-model",value:(_vm.computedValue),expression:"computedValue"}],ref:"select",attrs:{"multiple":_vm.multiple,"size":_vm.nativeSize},on:{"blur":function($event){_vm.$emit('blur', $event) && _vm.checkHtml5Validity();},"focus":function($event){return _vm.$emit('focus', $event)},"change":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return val}); _vm.computedValue=$event.target.multiple ? $$selectedVal : $$selectedVal[0];}}},'select',_vm.$attrs,false),[(_vm.placeholder)?[(_vm.computedValue == null)?_c('option',{attrs:{"disabled":"","hidden":""},domProps:{"value":null}},[_vm._v(" "+_vm._s(_vm.placeholder)+" ")]):_vm._e()]:_vm._e(),_vm._t("default")],2)]),(_vm.icon)?_c('b-icon',{staticClass:"is-left",attrs:{"icon":_vm.icon,"pack":_vm.iconPack,"size":_vm.iconSize}}):_vm._e()],1)};
|
|
65
|
+
var __vue_staticRenderFns__ = [];
|
|
66
|
+
|
|
67
|
+
/* style */
|
|
68
|
+
const __vue_inject_styles__ = undefined;
|
|
69
|
+
/* scoped */
|
|
70
|
+
const __vue_scope_id__ = undefined;
|
|
71
|
+
/* module identifier */
|
|
72
|
+
const __vue_module_identifier__ = undefined;
|
|
73
|
+
/* functional template */
|
|
74
|
+
const __vue_is_functional_template__ = false;
|
|
75
|
+
/* style inject */
|
|
76
|
+
|
|
77
|
+
/* style inject SSR */
|
|
78
|
+
|
|
79
|
+
/* style inject shadow dom */
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
const __vue_component__ = /*#__PURE__*/normalizeComponent(
|
|
84
|
+
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
|
85
|
+
__vue_inject_styles__,
|
|
86
|
+
__vue_script__,
|
|
87
|
+
__vue_scope_id__,
|
|
88
|
+
__vue_is_functional_template__,
|
|
89
|
+
__vue_module_identifier__,
|
|
90
|
+
false,
|
|
91
|
+
undefined,
|
|
92
|
+
undefined,
|
|
93
|
+
undefined
|
|
94
|
+
);
|
|
95
|
+
|
|
96
|
+
var Select = __vue_component__;
|
|
97
|
+
|
|
98
|
+
export { Select as S };
|