@mintplayer/vue-bootstrap 3.23.0 → 3.25.0
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/accordion/index.mjs +54 -64
- package/calendar/index.mjs +27 -28
- package/card/index.mjs +104 -145
- package/carousel/index.mjs +74 -58
- package/charts/hierarchy/index.mjs +44 -43
- package/charts/sparkline/index.mjs +25 -24
- package/charts/trend/index.mjs +25 -24
- package/checkbox/index.mjs +27 -28
- package/code-snippet/index.mjs +34 -32
- package/datatable/index.mjs +84 -70
- package/datepicker/index.mjs +27 -28
- package/datetime-picker/index.mjs +27 -28
- package/dock/index.mjs +27 -28
- package/dropdown-menu/index.mjs +69 -69
- package/file-manager/index.mjs +18 -19
- package/index.mjs +0 -1
- package/input-group/index.mjs +11 -12
- package/multi-range/index.mjs +27 -26
- package/navbar/index.mjs +77 -80
- package/otp-input/index.mjs +27 -26
- package/package.json +2 -2
- package/pagination/index.mjs +27 -26
- package/phone-input/index.mjs +35 -34
- package/query-builder/index.mjs +45 -41
- package/radio/index.mjs +27 -28
- package/radio-group/index.mjs +27 -28
- package/ribbon/index.mjs +28 -47
- package/scheduler/index.mjs +45 -42
- package/select/index.mjs +33 -34
- package/shell/index.mjs +37 -33
- package/signature-pad/index.mjs +26 -25
- package/splitter/index.mjs +12 -14
- package/tab-control/index.mjs +28 -31
- package/theming/index.mjs +37 -55
- package/tile-manager/index.mjs +18 -21
- package/timeline/index.mjs +151 -146
- package/timepicker/index.mjs +49 -53
- package/toggle-button/index.mjs +27 -28
- package/tree-select/index.mjs +105 -97
- package/treeview/index.mjs +56 -55
- package/vue-bootstrap.css +2 -1
package/timepicker/index.mjs
CHANGED
|
@@ -1,55 +1,51 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createElementBlock as e, defineComponent as t, mergeProps as n, onMounted as r, openBlock as i, ref as a, renderSlot as o, useModel as s, watch as c } from "vue";
|
|
2
2
|
import "@mintplayer/web-components/timepicker";
|
|
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
|
-
], 16));
|
|
50
|
-
}
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region libs/mintplayer-vue-bootstrap/timepicker/src/BsTimepicker.vue
|
|
5
|
+
var l = /* @__PURE__ */ t({
|
|
6
|
+
inheritAttrs: !1,
|
|
7
|
+
__name: "BsTimepicker",
|
|
8
|
+
props: {
|
|
9
|
+
modelValue: {},
|
|
10
|
+
modelModifiers: {}
|
|
11
|
+
},
|
|
12
|
+
emits: ["update:modelValue"],
|
|
13
|
+
setup(t) {
|
|
14
|
+
let l = s(t, "modelValue"), u = a(null), d = (e) => {
|
|
15
|
+
u.value && (u.value.selectedTime = e ?? null);
|
|
16
|
+
};
|
|
17
|
+
r(() => d(l.value)), c(l, d);
|
|
18
|
+
function f(e) {
|
|
19
|
+
let t = e.detail;
|
|
20
|
+
l.value = t instanceof Date ? t : null;
|
|
21
|
+
}
|
|
22
|
+
return (t, r) => (i(), e("mp-timepicker", n({
|
|
23
|
+
ref_key: "el",
|
|
24
|
+
ref: u
|
|
25
|
+
}, t.$attrs, { onSelectedTimeChange: f }), [o(t.$slots, "default")], 16));
|
|
26
|
+
}
|
|
27
|
+
}), u = /* @__PURE__ */ t({
|
|
28
|
+
inheritAttrs: !1,
|
|
29
|
+
__name: "BsTimeList",
|
|
30
|
+
props: {
|
|
31
|
+
modelValue: {},
|
|
32
|
+
modelModifiers: {}
|
|
33
|
+
},
|
|
34
|
+
emits: ["update:modelValue"],
|
|
35
|
+
setup(t) {
|
|
36
|
+
let l = s(t, "modelValue"), u = a(null), d = (e) => {
|
|
37
|
+
u.value && (u.value.selectedTime = e ?? null);
|
|
38
|
+
};
|
|
39
|
+
r(() => d(l.value)), c(l, d);
|
|
40
|
+
function f(e) {
|
|
41
|
+
let t = e.detail;
|
|
42
|
+
l.value = t instanceof Date ? t : null;
|
|
43
|
+
}
|
|
44
|
+
return (t, r) => (i(), e("mp-time-list", n({
|
|
45
|
+
ref_key: "el",
|
|
46
|
+
ref: u
|
|
47
|
+
}, t.$attrs, { onSelectedTimeChange: f }), [o(t.$slots, "default")], 16));
|
|
48
|
+
}
|
|
51
49
|
});
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
V as BsTimepicker
|
|
55
|
-
};
|
|
50
|
+
//#endregion
|
|
51
|
+
export { u as BsTimeList, l as BsTimepicker };
|
package/toggle-button/index.mjs
CHANGED
|
@@ -1,30 +1,29 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createElementBlock as e, defineComponent as t, mergeProps as n, onMounted as r, openBlock as i, ref as a, renderSlot as o, useModel as s, watch as c } from "vue";
|
|
2
2
|
import "@mintplayer/web-components/toggle-button";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region libs/mintplayer-vue-bootstrap/toggle-button/src/BsToggleButton.vue
|
|
5
|
+
var l = /* @__PURE__ */ t({
|
|
6
|
+
inheritAttrs: !1,
|
|
7
|
+
__name: "BsToggleButton",
|
|
8
|
+
props: {
|
|
9
|
+
modelValue: { type: Boolean },
|
|
10
|
+
modelModifiers: {}
|
|
11
|
+
},
|
|
12
|
+
emits: ["update:modelValue"],
|
|
13
|
+
setup(t) {
|
|
14
|
+
let l = s(t, "modelValue"), u = a(null), d = (e) => {
|
|
15
|
+
u.value && (u.value.checked = !!e);
|
|
16
|
+
};
|
|
17
|
+
r(() => d(l.value)), c(l, d);
|
|
18
|
+
function f(e) {
|
|
19
|
+
let t = e.detail;
|
|
20
|
+
l.value = t.checked;
|
|
21
|
+
}
|
|
22
|
+
return (t, r) => (i(), e("mp-toggle-button", n({
|
|
23
|
+
ref_key: "el",
|
|
24
|
+
ref: u
|
|
25
|
+
}, t.$attrs, { onChange: f }), [o(t.$slots, "default")], 16));
|
|
26
|
+
}
|
|
27
27
|
});
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
28
|
+
//#endregion
|
|
29
|
+
export { l as BsToggleButton };
|
package/tree-select/index.mjs
CHANGED
|
@@ -1,98 +1,106 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { InMemoryTreeSelectProvider as
|
|
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
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
1
|
+
import { createElementBlock as e, defineComponent as t, h as n, mergeModels as r, mergeProps as i, onBeforeUnmount as a, onMounted as o, openBlock as s, ref as c, render as l, useModel as u, useSlots as d, watch as f } from "vue";
|
|
2
|
+
import { InMemoryTreeSelectProvider as p } from "@mintplayer/web-components/tree-select";
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region libs/mintplayer-vue-bootstrap/tree-select/src/BsTreeSelect.vue
|
|
5
|
+
var m = /* @__PURE__ */ t({
|
|
6
|
+
inheritAttrs: !1,
|
|
7
|
+
__name: "BsTreeSelect",
|
|
8
|
+
props: /*@__PURE__*/ r({
|
|
9
|
+
provider: {},
|
|
10
|
+
mode: { default: "single" },
|
|
11
|
+
variant: { default: "textbox" },
|
|
12
|
+
cascadeSelect: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
default: !1
|
|
15
|
+
},
|
|
16
|
+
placeholder: { default: "" },
|
|
17
|
+
showClear: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: !1
|
|
20
|
+
},
|
|
21
|
+
panelScrollHeight: { default: "300px" },
|
|
22
|
+
searchDebounceMs: { default: 200 },
|
|
23
|
+
disabled: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: !1
|
|
26
|
+
}
|
|
27
|
+
}, {
|
|
28
|
+
modelValue: { default: null },
|
|
29
|
+
modelModifiers: {}
|
|
30
|
+
}),
|
|
31
|
+
emits: ["update:modelValue"],
|
|
32
|
+
setup(t) {
|
|
33
|
+
let r = t, p = u(t, "modelValue"), m = c(null), h = () => {
|
|
34
|
+
let e = m.value;
|
|
35
|
+
e && (e.mode = r.mode, e.variant = r.variant, e.cascadeSelect = r.cascadeSelect, e.placeholder = r.placeholder, e.showClear = r.showClear, e.panelScrollHeight = r.panelScrollHeight, e.searchDebounceMs = r.searchDebounceMs, e.disabled = r.disabled, e.provider = r.provider);
|
|
36
|
+
}, g = d(), _ = [];
|
|
37
|
+
function v(e) {
|
|
38
|
+
return _.push(e), e;
|
|
39
|
+
}
|
|
40
|
+
function y(e) {
|
|
41
|
+
let t = g[e];
|
|
42
|
+
if (!t) return;
|
|
43
|
+
let r = /* @__PURE__ */ new Map();
|
|
44
|
+
return (e, i) => {
|
|
45
|
+
let a = r.get(e.id);
|
|
46
|
+
if (a) r.delete(e.id), r.set(e.id, a);
|
|
47
|
+
else if (a = v(document.createElement("span")), r.set(e.id, a), r.size > 400) {
|
|
48
|
+
let e = r.keys().next().value, t = r.get(e);
|
|
49
|
+
if (t) {
|
|
50
|
+
l(null, t);
|
|
51
|
+
let e = _.indexOf(t);
|
|
52
|
+
e > -1 && _.splice(e, 1);
|
|
53
|
+
}
|
|
54
|
+
r.delete(e);
|
|
55
|
+
}
|
|
56
|
+
return l(n("span", null, t({
|
|
57
|
+
node: e,
|
|
58
|
+
query: i
|
|
59
|
+
})), a), a;
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
function b() {
|
|
63
|
+
let e = g.button;
|
|
64
|
+
if (!e) return;
|
|
65
|
+
let t = v(document.createElement("span"));
|
|
66
|
+
return (r) => (l(n("span", null, e({ value: r })), t), t);
|
|
67
|
+
}
|
|
68
|
+
function x(e) {
|
|
69
|
+
let t = g[e];
|
|
70
|
+
if (!t) return;
|
|
71
|
+
let r = v(document.createElement("span"));
|
|
72
|
+
return () => (l(n("span", null, t()), r), r);
|
|
73
|
+
}
|
|
74
|
+
let S = () => {
|
|
75
|
+
let e = m.value;
|
|
76
|
+
e && (e.itemTemplate = y("item"), e.suggestionTemplate = y("suggestion"), e.buttonTemplate = b(), e.headerTemplate = x("header"), e.footerTemplate = x("footer"), e.noResultsTemplate = x("noResults"), e.enterSearchTermTemplate = x("enterSearchTerm"));
|
|
77
|
+
};
|
|
78
|
+
o(() => {
|
|
79
|
+
h(), S(), m.value && (m.value.value = p.value);
|
|
80
|
+
}), f(() => [
|
|
81
|
+
r.mode,
|
|
82
|
+
r.variant,
|
|
83
|
+
r.cascadeSelect,
|
|
84
|
+
r.placeholder,
|
|
85
|
+
r.showClear,
|
|
86
|
+
r.panelScrollHeight,
|
|
87
|
+
r.searchDebounceMs,
|
|
88
|
+
r.disabled,
|
|
89
|
+
r.provider
|
|
90
|
+
], h), f(p, (e) => {
|
|
91
|
+
m.value && (m.value.value = e ?? null);
|
|
92
|
+
}), a(() => {
|
|
93
|
+
for (let e of _) l(null, e);
|
|
94
|
+
});
|
|
95
|
+
function C(e) {
|
|
96
|
+
let t = e.detail;
|
|
97
|
+
p.value = t?.value ?? null;
|
|
98
|
+
}
|
|
99
|
+
return (t, n) => (s(), e("mp-tree-select", i({
|
|
100
|
+
ref_key: "el",
|
|
101
|
+
ref: m
|
|
102
|
+
}, t.$attrs, { onValueChange: C }), null, 16));
|
|
103
|
+
}
|
|
94
104
|
});
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
W as InMemoryTreeSelectProvider
|
|
98
|
-
};
|
|
105
|
+
//#endregion
|
|
106
|
+
export { m as BsTreeSelect, p as InMemoryTreeSelectProvider };
|
package/treeview/index.mjs
CHANGED
|
@@ -1,57 +1,58 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createElementBlock as e, defineComponent as t, mergeModels as n, mergeProps as r, onMounted as i, openBlock as a, ref as o, useModel as s, watch as c } from "vue";
|
|
2
2
|
import "@mintplayer/web-components/treeview";
|
|
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
|
-
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region libs/mintplayer-vue-bootstrap/treeview/src/BsTreeview.vue
|
|
5
|
+
var l = /* @__PURE__ */ t({
|
|
6
|
+
inheritAttrs: !1,
|
|
7
|
+
__name: "BsTreeview",
|
|
8
|
+
props: /*@__PURE__*/ n({
|
|
9
|
+
items: {},
|
|
10
|
+
selectionMode: {},
|
|
11
|
+
nodeRenderer: { type: Function },
|
|
12
|
+
iconResolver: { type: Function }
|
|
13
|
+
}, {
|
|
14
|
+
expandedIds: { default: () => [] },
|
|
15
|
+
expandedIdsModifiers: {},
|
|
16
|
+
selectedIds: { default: () => [] },
|
|
17
|
+
selectedIdsModifiers: {}
|
|
18
|
+
}),
|
|
19
|
+
emits: ["update:expandedIds", "update:selectedIds"],
|
|
20
|
+
setup(t) {
|
|
21
|
+
let n = t, l = s(t, "expandedIds"), u = s(t, "selectedIds"), d = o(null), f = () => {
|
|
22
|
+
d.value && (d.value.items = n.items ?? []);
|
|
23
|
+
}, p = () => {
|
|
24
|
+
d.value && (d.value.expandedIds = l.value);
|
|
25
|
+
}, m = () => {
|
|
26
|
+
d.value && (d.value.selectedIds = u.value);
|
|
27
|
+
}, h = () => {
|
|
28
|
+
d.value && (d.value.selectionMode = n.selectionMode ?? "single");
|
|
29
|
+
}, g = () => {
|
|
30
|
+
d.value && (n.nodeRenderer !== void 0 && (d.value.nodeRenderer = n.nodeRenderer), n.iconResolver !== void 0 && (d.value.iconResolver = n.iconResolver));
|
|
31
|
+
};
|
|
32
|
+
i(() => {
|
|
33
|
+
f(), p(), m(), h(), g();
|
|
34
|
+
}), c(() => n.items, f), c(l, p), c(u, m), c(() => n.selectionMode, h), c(() => n.nodeRenderer, g), c(() => n.iconResolver, g);
|
|
35
|
+
function _(e) {
|
|
36
|
+
let t = e.detail;
|
|
37
|
+
t && (l.value = [...t.expandedIds]);
|
|
38
|
+
}
|
|
39
|
+
function v(e) {
|
|
40
|
+
let t = e.detail;
|
|
41
|
+
t && (l.value = [...t.expandedIds]);
|
|
42
|
+
}
|
|
43
|
+
function y(e) {
|
|
44
|
+
let t = e.detail;
|
|
45
|
+
t && (u.value = [...t.selectedIds]);
|
|
46
|
+
}
|
|
47
|
+
return (t, n) => (a(), e("mp-treeview", r({
|
|
48
|
+
ref_key: "el",
|
|
49
|
+
ref: d
|
|
50
|
+
}, t.$attrs, {
|
|
51
|
+
onTreeNodeExpand: _,
|
|
52
|
+
onTreeNodeCollapse: v,
|
|
53
|
+
onTreeNodeSelect: y
|
|
54
|
+
}), null, 16));
|
|
55
|
+
}
|
|
54
56
|
});
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
};
|
|
57
|
+
//#endregion
|
|
58
|
+
export { l as BsTreeview };
|
package/vue-bootstrap.css
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
.dropdown-item>a,.dropdown-item>button{
|
|
1
|
+
.dropdown-item>a,.dropdown-item>button{width:auto;margin:calc(-1 * var(--bs-dropdown-item-padding-y,.25rem)) calc(-1 * var(--bs-dropdown-item-padding-x,1rem));padding:var(--bs-dropdown-item-padding-y,.25rem) var(--bs-dropdown-item-padding-x,1rem);color:inherit;text-align:inherit;font:inherit;background:0 0;border:0;text-decoration:none;display:block}.dropdown-item>a.active,.dropdown-item>button.active{color:var(--bs-dropdown-link-active-color,#fff);background-color:var(--bs-dropdown-link-active-bg,var(--bs-primary))}
|
|
2
|
+
/*$vite$:1*/
|