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,51 @@
|
|
|
1
|
+
import { isVueComponent } from './helpers.js';
|
|
2
|
+
|
|
3
|
+
var SlotComponent = {
|
|
4
|
+
name: 'BSlotComponent',
|
|
5
|
+
props: {
|
|
6
|
+
component: {
|
|
7
|
+
type: Object,
|
|
8
|
+
required: true
|
|
9
|
+
},
|
|
10
|
+
name: {
|
|
11
|
+
type: String,
|
|
12
|
+
default: 'default'
|
|
13
|
+
},
|
|
14
|
+
scoped: {
|
|
15
|
+
type: Boolean
|
|
16
|
+
},
|
|
17
|
+
props: {
|
|
18
|
+
type: Object
|
|
19
|
+
},
|
|
20
|
+
tag: {
|
|
21
|
+
type: String,
|
|
22
|
+
default: 'div'
|
|
23
|
+
},
|
|
24
|
+
event: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: 'hook:updated'
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
methods: {
|
|
30
|
+
refresh: function refresh() {
|
|
31
|
+
this.$forceUpdate();
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
created: function created() {
|
|
35
|
+
if (isVueComponent(this.component)) {
|
|
36
|
+
this.component.$on(this.event, this.refresh);
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
beforeDestroy: function beforeDestroy() {
|
|
40
|
+
if (isVueComponent(this.component)) {
|
|
41
|
+
this.component.$off(this.event, this.refresh);
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
render: function render(createElement) {
|
|
45
|
+
if (isVueComponent(this.component)) {
|
|
46
|
+
return createElement(this.tag, {}, this.scoped ? this.component.$scopedSlots[this.name](this.props) : this.component.$slots[this.name]);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export { SlotComponent as S };
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import { _ as _defineProperty } from './_rollupPluginBabelHelpers-df313029.js';
|
|
2
|
+
import { I as Icon } from './Icon-60d47b31.js';
|
|
3
|
+
import { S as SlotComponent } from './SlotComponent-8871a20f.js';
|
|
4
|
+
import { P as ProviderParentMixin, S as Sorted, I as InjectedChildMixin, a as Sorted$1 } from './InjectedChildMixin-b4220787.js';
|
|
5
|
+
import { bound } from './helpers.js';
|
|
6
|
+
|
|
7
|
+
var TabbedMixin = (function (cmp) {
|
|
8
|
+
return {
|
|
9
|
+
mixins: [ProviderParentMixin(cmp, Sorted)],
|
|
10
|
+
components: _defineProperty(_defineProperty({}, Icon.name, Icon), SlotComponent.name, SlotComponent),
|
|
11
|
+
props: {
|
|
12
|
+
value: {
|
|
13
|
+
type: [String, Number],
|
|
14
|
+
default: undefined
|
|
15
|
+
},
|
|
16
|
+
size: String,
|
|
17
|
+
animated: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: true
|
|
20
|
+
},
|
|
21
|
+
animation: String,
|
|
22
|
+
animateInitially: Boolean,
|
|
23
|
+
vertical: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: false
|
|
26
|
+
},
|
|
27
|
+
position: String,
|
|
28
|
+
destroyOnHide: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: false
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
data: function data() {
|
|
34
|
+
return {
|
|
35
|
+
activeId: this.value,
|
|
36
|
+
// Internal state
|
|
37
|
+
defaultSlots: [],
|
|
38
|
+
contentHeight: 0,
|
|
39
|
+
isTransitioning: false
|
|
40
|
+
};
|
|
41
|
+
},
|
|
42
|
+
mounted: function mounted() {
|
|
43
|
+
if (typeof this.value === 'number') {
|
|
44
|
+
// Backward compatibility: converts the index value to an id
|
|
45
|
+
var value = bound(this.value, 0, this.items.length - 1);
|
|
46
|
+
this.activeId = this.items[value].value;
|
|
47
|
+
} else {
|
|
48
|
+
this.activeId = this.value;
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
computed: {
|
|
52
|
+
activeItem: function activeItem() {
|
|
53
|
+
var _this = this;
|
|
54
|
+
return this.activeId === undefined ? this.items[0] : this.activeId === null ? null : this.childItems.find(function (i) {
|
|
55
|
+
return i.value === _this.activeId;
|
|
56
|
+
});
|
|
57
|
+
},
|
|
58
|
+
items: function items() {
|
|
59
|
+
return this.sortedItems;
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
watch: {
|
|
63
|
+
/**
|
|
64
|
+
* When v-model is changed set the new active tab.
|
|
65
|
+
*/
|
|
66
|
+
value: function value(_value) {
|
|
67
|
+
if (typeof _value === 'number') {
|
|
68
|
+
// Backward compatibility: converts the index value to an id
|
|
69
|
+
_value = bound(_value, 0, this.items.length - 1);
|
|
70
|
+
this.activeId = this.items[_value].value;
|
|
71
|
+
} else {
|
|
72
|
+
this.activeId = _value;
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
/**
|
|
76
|
+
* Sync internal state with external state
|
|
77
|
+
*/
|
|
78
|
+
activeId: function activeId(val, oldValue) {
|
|
79
|
+
var oldTab = oldValue !== undefined && oldValue !== null ? this.childItems.find(function (i) {
|
|
80
|
+
return i.value === oldValue;
|
|
81
|
+
}) : null;
|
|
82
|
+
if (oldTab && this.activeItem) {
|
|
83
|
+
oldTab.deactivate(this.activeItem.index);
|
|
84
|
+
this.activeItem.activate(oldTab.index);
|
|
85
|
+
}
|
|
86
|
+
val = this.activeItem ? typeof this.value === 'number' ? this.items.indexOf(this.activeItem) : this.activeItem.value : undefined;
|
|
87
|
+
if (val !== this.value) {
|
|
88
|
+
this.$emit('input', val);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
methods: {
|
|
93
|
+
/**
|
|
94
|
+
* Child click listener, emit input event and change active child.
|
|
95
|
+
*/
|
|
96
|
+
childClick: function childClick(child) {
|
|
97
|
+
this.activeId = child.value;
|
|
98
|
+
},
|
|
99
|
+
getNextItemIdx: function getNextItemIdx(fromIdx) {
|
|
100
|
+
var skipDisabled = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
101
|
+
var nextItemIdx = null;
|
|
102
|
+
var idx = fromIdx + 1;
|
|
103
|
+
for (; idx < this.items.length; idx++) {
|
|
104
|
+
var item = this.items[idx];
|
|
105
|
+
if (item.visible && (!skipDisabled || skipDisabled && !item.disabled)) {
|
|
106
|
+
nextItemIdx = idx;
|
|
107
|
+
break;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
return nextItemIdx;
|
|
111
|
+
},
|
|
112
|
+
getPrevItemIdx: function getPrevItemIdx(fromIdx) {
|
|
113
|
+
var skipDisabled = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
114
|
+
var prevItemIdx = null;
|
|
115
|
+
for (var idx = fromIdx - 1; idx >= 0; idx--) {
|
|
116
|
+
var item = this.items[idx];
|
|
117
|
+
if (item.visible && (!skipDisabled || skipDisabled && !item.disabled)) {
|
|
118
|
+
prevItemIdx = idx;
|
|
119
|
+
break;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
return prevItemIdx;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
var TabbedChildMixin = (function (parentCmp) {
|
|
129
|
+
return {
|
|
130
|
+
mixins: [InjectedChildMixin(parentCmp, Sorted$1)],
|
|
131
|
+
props: {
|
|
132
|
+
label: String,
|
|
133
|
+
icon: String,
|
|
134
|
+
iconPack: String,
|
|
135
|
+
visible: {
|
|
136
|
+
type: Boolean,
|
|
137
|
+
default: true
|
|
138
|
+
},
|
|
139
|
+
value: {
|
|
140
|
+
type: String,
|
|
141
|
+
default: function _default() {
|
|
142
|
+
return this._uid.toString();
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
headerClass: {
|
|
146
|
+
type: [String, Array, Object],
|
|
147
|
+
default: null
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
data: function data() {
|
|
151
|
+
return {
|
|
152
|
+
transitionName: null,
|
|
153
|
+
elementClass: 'item',
|
|
154
|
+
elementRole: null
|
|
155
|
+
};
|
|
156
|
+
},
|
|
157
|
+
computed: {
|
|
158
|
+
isActive: function isActive() {
|
|
159
|
+
return this.parent.activeItem === this;
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
methods: {
|
|
163
|
+
/**
|
|
164
|
+
* Activate element, alter animation name based on the index.
|
|
165
|
+
*/
|
|
166
|
+
activate: function activate(oldIndex) {
|
|
167
|
+
this.transitionName = this.index < oldIndex ? this.parent.vertical ? 'slide-down' : 'slide-next' : this.parent.vertical ? 'slide-up' : 'slide-prev';
|
|
168
|
+
},
|
|
169
|
+
/**
|
|
170
|
+
* Deactivate element, alter animation name based on the index.
|
|
171
|
+
*/
|
|
172
|
+
deactivate: function deactivate(newIndex) {
|
|
173
|
+
this.transitionName = newIndex < this.index ? this.parent.vertical ? 'slide-down' : 'slide-next' : this.parent.vertical ? 'slide-up' : 'slide-prev';
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
render: function render(createElement) {
|
|
177
|
+
var _this = this;
|
|
178
|
+
// if destroy apply v-if
|
|
179
|
+
if (this.parent.destroyOnHide) {
|
|
180
|
+
if (!this.isActive || !this.visible) {
|
|
181
|
+
return;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
var vnode = createElement('div', {
|
|
185
|
+
directives: [{
|
|
186
|
+
name: 'show',
|
|
187
|
+
value: this.isActive && this.visible
|
|
188
|
+
}],
|
|
189
|
+
staticClass: this.elementClass,
|
|
190
|
+
attrs: {
|
|
191
|
+
'role': this.elementRole,
|
|
192
|
+
'id': "".concat(this.value, "-content"),
|
|
193
|
+
'aria-labelledby': this.elementRole ? "".concat(this.value, "-label") : null,
|
|
194
|
+
'tabindex': this.isActive ? 0 : -1
|
|
195
|
+
}
|
|
196
|
+
}, this.$slots.default);
|
|
197
|
+
// check animated prop
|
|
198
|
+
if (this.parent.animated) {
|
|
199
|
+
return createElement('transition', {
|
|
200
|
+
props: {
|
|
201
|
+
'name': this.parent.animation || this.transitionName,
|
|
202
|
+
'appear': this.parent.animateInitially === true || undefined
|
|
203
|
+
},
|
|
204
|
+
on: {
|
|
205
|
+
'before-enter': function beforeEnter() {
|
|
206
|
+
_this.parent.isTransitioning = true;
|
|
207
|
+
},
|
|
208
|
+
'after-enter': function afterEnter() {
|
|
209
|
+
_this.parent.isTransitioning = false;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}, [vnode]);
|
|
213
|
+
}
|
|
214
|
+
return vnode;
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
});
|
|
218
|
+
|
|
219
|
+
export { TabbedMixin as T, TabbedChildMixin as a };
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { n as normalizeComponent } from './plugins-218aea86.js';
|
|
2
|
+
|
|
3
|
+
//
|
|
4
|
+
//
|
|
5
|
+
//
|
|
6
|
+
//
|
|
7
|
+
//
|
|
8
|
+
//
|
|
9
|
+
//
|
|
10
|
+
//
|
|
11
|
+
//
|
|
12
|
+
//
|
|
13
|
+
//
|
|
14
|
+
//
|
|
15
|
+
//
|
|
16
|
+
//
|
|
17
|
+
//
|
|
18
|
+
//
|
|
19
|
+
//
|
|
20
|
+
//
|
|
21
|
+
//
|
|
22
|
+
//
|
|
23
|
+
//
|
|
24
|
+
//
|
|
25
|
+
//
|
|
26
|
+
//
|
|
27
|
+
//
|
|
28
|
+
//
|
|
29
|
+
//
|
|
30
|
+
//
|
|
31
|
+
//
|
|
32
|
+
//
|
|
33
|
+
//
|
|
34
|
+
//
|
|
35
|
+
//
|
|
36
|
+
//
|
|
37
|
+
//
|
|
38
|
+
//
|
|
39
|
+
//
|
|
40
|
+
//
|
|
41
|
+
//
|
|
42
|
+
//
|
|
43
|
+
//
|
|
44
|
+
//
|
|
45
|
+
//
|
|
46
|
+
//
|
|
47
|
+
//
|
|
48
|
+
//
|
|
49
|
+
//
|
|
50
|
+
//
|
|
51
|
+
//
|
|
52
|
+
//
|
|
53
|
+
//
|
|
54
|
+
//
|
|
55
|
+
//
|
|
56
|
+
//
|
|
57
|
+
//
|
|
58
|
+
//
|
|
59
|
+
//
|
|
60
|
+
//
|
|
61
|
+
//
|
|
62
|
+
//
|
|
63
|
+
//
|
|
64
|
+
//
|
|
65
|
+
//
|
|
66
|
+
//
|
|
67
|
+
//
|
|
68
|
+
|
|
69
|
+
var script = {
|
|
70
|
+
name: 'BTag',
|
|
71
|
+
props: {
|
|
72
|
+
attached: Boolean,
|
|
73
|
+
closable: Boolean,
|
|
74
|
+
type: [String, Object],
|
|
75
|
+
size: String,
|
|
76
|
+
rounded: Boolean,
|
|
77
|
+
disabled: Boolean,
|
|
78
|
+
ellipsis: Boolean,
|
|
79
|
+
tabstop: {
|
|
80
|
+
type: Boolean,
|
|
81
|
+
default: true
|
|
82
|
+
},
|
|
83
|
+
ariaCloseLabel: String,
|
|
84
|
+
icon: String,
|
|
85
|
+
iconType: String,
|
|
86
|
+
iconPack: String,
|
|
87
|
+
closeType: String,
|
|
88
|
+
closeIcon: String,
|
|
89
|
+
closeIconPack: String,
|
|
90
|
+
closeIconType: String
|
|
91
|
+
},
|
|
92
|
+
methods: {
|
|
93
|
+
/**
|
|
94
|
+
* Emit close event when delete button is clicked
|
|
95
|
+
* or delete key is pressed.
|
|
96
|
+
*/
|
|
97
|
+
close: function close(event) {
|
|
98
|
+
if (this.disabled) return;
|
|
99
|
+
this.$emit('close', event);
|
|
100
|
+
},
|
|
101
|
+
/**
|
|
102
|
+
* Emit click event when tag is clicked.
|
|
103
|
+
*/
|
|
104
|
+
click: function click(event) {
|
|
105
|
+
if (this.disabled) return;
|
|
106
|
+
this.$emit('click', event);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
/* script */
|
|
112
|
+
const __vue_script__ = script;
|
|
113
|
+
|
|
114
|
+
/* template */
|
|
115
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.attached && _vm.closable)?_c('div',{staticClass:"tags has-addons inline-tags"},[_c('span',{staticClass:"tag",class:[_vm.type, _vm.size, { 'is-rounded': _vm.rounded }]},[(_vm.icon)?_c('b-icon',{attrs:{"icon":_vm.icon,"size":_vm.size,"type":_vm.iconType,"pack":_vm.iconPack}}):_vm._e(),_c('span',{class:{ 'has-ellipsis': _vm.ellipsis },on:{"click":_vm.click}},[_vm._t("default")],2)],1),_c('a',{staticClass:"tag",class:[_vm.size,
|
|
116
|
+
_vm.closeType,
|
|
117
|
+
{'is-rounded': _vm.rounded},
|
|
118
|
+
_vm.closeIcon ? 'has-delete-icon' : 'is-delete'],attrs:{"role":"button","aria-label":_vm.ariaCloseLabel,"tabindex":_vm.tabstop ? 0 : false,"disabled":_vm.disabled},on:{"click":_vm.close,"keyup":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"delete",[8,46],$event.key,["Backspace","Delete","Del"])){ return null; }$event.preventDefault();return _vm.close($event)}}},[(_vm.closeIcon)?_c('b-icon',{attrs:{"custom-class":"","icon":_vm.closeIcon,"size":_vm.size,"type":_vm.closeIconType,"pack":_vm.closeIconPack}}):_vm._e()],1)]):_c('span',{staticClass:"tag",class:[_vm.type, _vm.size, { 'is-rounded': _vm.rounded }]},[(_vm.icon)?_c('b-icon',{attrs:{"icon":_vm.icon,"size":_vm.size,"type":_vm.iconType,"pack":_vm.iconPack}}):_vm._e(),_c('span',{class:{ 'has-ellipsis': _vm.ellipsis },on:{"click":_vm.click}},[_vm._t("default")],2),(_vm.closable)?_c('a',{staticClass:"delete is-small",class:_vm.closeType,attrs:{"role":"button","aria-label":_vm.ariaCloseLabel,"disabled":_vm.disabled,"tabindex":_vm.tabstop ? 0 : false},on:{"click":_vm.close,"keyup":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"delete",[8,46],$event.key,["Backspace","Delete","Del"])){ return null; }$event.preventDefault();return _vm.close($event)}}}):_vm._e()],1)};
|
|
119
|
+
var __vue_staticRenderFns__ = [];
|
|
120
|
+
|
|
121
|
+
/* style */
|
|
122
|
+
const __vue_inject_styles__ = undefined;
|
|
123
|
+
/* scoped */
|
|
124
|
+
const __vue_scope_id__ = undefined;
|
|
125
|
+
/* module identifier */
|
|
126
|
+
const __vue_module_identifier__ = undefined;
|
|
127
|
+
/* functional template */
|
|
128
|
+
const __vue_is_functional_template__ = false;
|
|
129
|
+
/* style inject */
|
|
130
|
+
|
|
131
|
+
/* style inject SSR */
|
|
132
|
+
|
|
133
|
+
/* style inject shadow dom */
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
const __vue_component__ = /*#__PURE__*/normalizeComponent(
|
|
138
|
+
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
|
139
|
+
__vue_inject_styles__,
|
|
140
|
+
__vue_script__,
|
|
141
|
+
__vue_scope_id__,
|
|
142
|
+
__vue_is_functional_template__,
|
|
143
|
+
__vue_module_identifier__,
|
|
144
|
+
false,
|
|
145
|
+
undefined,
|
|
146
|
+
undefined,
|
|
147
|
+
undefined
|
|
148
|
+
);
|
|
149
|
+
|
|
150
|
+
var Tag = __vue_component__;
|
|
151
|
+
|
|
152
|
+
export { Tag as T };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { _ as _defineProperty } from './_rollupPluginBabelHelpers-df313029.js';
|
|
2
|
+
import { T as TimepickerMixin } from './TimepickerMixin-d736b0a9.js';
|
|
3
|
+
import { D as DropdownItem, a as Dropdown } from './DropdownItem-55682322.js';
|
|
4
|
+
import { I as Input } from './Input-20612b63.js';
|
|
5
|
+
import { F as Field } from './Field-3ceba31e.js';
|
|
6
|
+
import { S as Select } from './Select-97781d4e.js';
|
|
7
|
+
import { I as Icon } from './Icon-60d47b31.js';
|
|
8
|
+
import { n as normalizeComponent } from './plugins-218aea86.js';
|
|
9
|
+
|
|
10
|
+
var script = {
|
|
11
|
+
name: 'BTimepicker',
|
|
12
|
+
components: _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, Input.name, Input), Field.name, Field), Select.name, Select), Icon.name, Icon), Dropdown.name, Dropdown), DropdownItem.name, DropdownItem),
|
|
13
|
+
mixins: [TimepickerMixin],
|
|
14
|
+
inheritAttrs: false,
|
|
15
|
+
data: function data() {
|
|
16
|
+
return {
|
|
17
|
+
_isTimepicker: true
|
|
18
|
+
};
|
|
19
|
+
},
|
|
20
|
+
computed: {
|
|
21
|
+
nativeStep: function nativeStep() {
|
|
22
|
+
if (this.enableSeconds) return '1';
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/* script */
|
|
28
|
+
const __vue_script__ = script;
|
|
29
|
+
|
|
30
|
+
/* template */
|
|
31
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"timepicker control",class:[_vm.size, {'is-expanded': _vm.expanded}]},[(!_vm.isMobile || _vm.inline)?_c('b-dropdown',{ref:"dropdown",attrs:{"position":_vm.position,"disabled":_vm.disabled,"inline":_vm.inline,"mobile-modal":_vm.mobileModal,"append-to-body":_vm.appendToBody,"append-to-body-copy-parent":""},on:{"active-change":_vm.onActiveChange},scopedSlots:_vm._u([(!_vm.inline)?{key:"trigger",fn:function(){return [_vm._t("trigger",[_c('b-input',_vm._b({ref:"input",attrs:{"autocomplete":"off","value":_vm.formatValue(_vm.computedValue),"placeholder":_vm.placeholder,"size":_vm.size,"icon":_vm.icon,"icon-pack":_vm.iconPack,"loading":_vm.loading,"disabled":_vm.disabled,"readonly":!_vm.editable,"rounded":_vm.rounded,"use-html5-validation":_vm.useHtml5Validation},on:{"focus":_vm.handleOnFocus},nativeOn:{"keyup":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.toggle(true)},"change":function($event){return _vm.onChange($event.target.value)}}},'b-input',_vm.$attrs,false))])]},proxy:true}:null],null,true)},[_c('b-dropdown-item',{attrs:{"disabled":_vm.disabled,"focusable":_vm.focusable,"custom":""}},[_c('b-field',{attrs:{"grouped":"","position":"is-centered"}},[_c('b-select',{attrs:{"disabled":_vm.disabled,"placeholder":"00"},nativeOn:{"change":function($event){return _vm.onHoursChange($event.target.value)}},model:{value:(_vm.hoursSelected),callback:function ($$v) {_vm.hoursSelected=$$v;},expression:"hoursSelected"}},_vm._l((_vm.hours),function(hour){return _c('option',{key:hour.value,attrs:{"disabled":_vm.isHourDisabled(hour.value)},domProps:{"value":hour.value}},[_vm._v(" "+_vm._s(hour.label)+" ")])}),0),_c('span',{staticClass:"control is-colon"},[_vm._v(_vm._s(_vm.hourLiteral))]),_c('b-select',{attrs:{"disabled":_vm.disabled,"placeholder":"00"},nativeOn:{"change":function($event){return _vm.onMinutesChange($event.target.value)}},model:{value:(_vm.minutesSelected),callback:function ($$v) {_vm.minutesSelected=$$v;},expression:"minutesSelected"}},_vm._l((_vm.minutes),function(minute){return _c('option',{key:minute.value,attrs:{"disabled":_vm.isMinuteDisabled(minute.value)},domProps:{"value":minute.value}},[_vm._v(" "+_vm._s(minute.label)+" ")])}),0),(_vm.enableSeconds)?[_c('span',{staticClass:"control is-colon"},[_vm._v(_vm._s(_vm.minuteLiteral))]),_c('b-select',{attrs:{"disabled":_vm.disabled,"placeholder":"00"},nativeOn:{"change":function($event){return _vm.onSecondsChange($event.target.value)}},model:{value:(_vm.secondsSelected),callback:function ($$v) {_vm.secondsSelected=$$v;},expression:"secondsSelected"}},_vm._l((_vm.seconds),function(second){return _c('option',{key:second.value,attrs:{"disabled":_vm.isSecondDisabled(second.value)},domProps:{"value":second.value}},[_vm._v(" "+_vm._s(second.label)+" ")])}),0),_c('span',{staticClass:"control is-colon"},[_vm._v(_vm._s(_vm.secondLiteral))])]:_vm._e(),(!_vm.isHourFormat24)?_c('b-select',{attrs:{"disabled":_vm.disabled},nativeOn:{"change":function($event){return _vm.onMeridienChange($event.target.value)}},model:{value:(_vm.meridienSelected),callback:function ($$v) {_vm.meridienSelected=$$v;},expression:"meridienSelected"}},_vm._l((_vm.meridiens),function(meridien){return _c('option',{key:meridien,domProps:{"value":meridien}},[_vm._v(" "+_vm._s(meridien)+" ")])}),0):_vm._e()],2),(_vm.$slots.default !== undefined && _vm.$slots.default.length)?_c('footer',{staticClass:"timepicker-footer"},[_vm._t("default")],2):_vm._e()],1)],1):_c('b-input',_vm._b({ref:"input",attrs:{"type":"time","step":_vm.nativeStep,"autocomplete":"off","value":_vm.formatHHMMSS(_vm.computedValue),"placeholder":_vm.placeholder,"size":_vm.size,"icon":_vm.icon,"icon-pack":_vm.iconPack,"rounded":_vm.rounded,"loading":_vm.loading,"max":_vm.formatHHMMSS(_vm.maxTime),"min":_vm.formatHHMMSS(_vm.minTime),"disabled":_vm.disabled,"readonly":false,"use-html5-validation":_vm.useHtml5Validation},on:{"focus":_vm.handleOnFocus,"blur":function($event){_vm.onBlur() && _vm.checkHtml5Validity();}},nativeOn:{"change":function($event){return _vm.onChange($event.target.value)}}},'b-input',_vm.$attrs,false))],1)};
|
|
32
|
+
var __vue_staticRenderFns__ = [];
|
|
33
|
+
|
|
34
|
+
/* style */
|
|
35
|
+
const __vue_inject_styles__ = undefined;
|
|
36
|
+
/* scoped */
|
|
37
|
+
const __vue_scope_id__ = undefined;
|
|
38
|
+
/* module identifier */
|
|
39
|
+
const __vue_module_identifier__ = undefined;
|
|
40
|
+
/* functional template */
|
|
41
|
+
const __vue_is_functional_template__ = false;
|
|
42
|
+
/* style inject */
|
|
43
|
+
|
|
44
|
+
/* style inject SSR */
|
|
45
|
+
|
|
46
|
+
/* style inject shadow dom */
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
const __vue_component__ = /*#__PURE__*/normalizeComponent(
|
|
51
|
+
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
|
52
|
+
__vue_inject_styles__,
|
|
53
|
+
__vue_script__,
|
|
54
|
+
__vue_scope_id__,
|
|
55
|
+
__vue_is_functional_template__,
|
|
56
|
+
__vue_module_identifier__,
|
|
57
|
+
false,
|
|
58
|
+
undefined,
|
|
59
|
+
undefined,
|
|
60
|
+
undefined
|
|
61
|
+
);
|
|
62
|
+
|
|
63
|
+
var Timepicker = __vue_component__;
|
|
64
|
+
|
|
65
|
+
export { Timepicker as T };
|