@mintplayer/vue-bootstrap 3.24.0 → 3.26.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/chunks/useMachine-DLZ7g_H3.mjs +14 -0
- 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 +63 -69
- package/dropdown-menu/src/BsDropdownItem.vue.d.ts +1 -1
- package/dropdown-menu/src/BsDropdownMenu.vue.d.ts +2 -6
- package/dropdown-menu/src/index.d.ts +1 -1
- package/file-manager/index.mjs +18 -19
- package/index.mjs +0 -1
- package/input-group/index.mjs +11 -12
- package/machine/index.mjs +1 -0
- package/machine/src/index.d.ts +1 -0
- package/machine/src/useMachine.d.ts +13 -0
- package/machine/src/useMachine.spec.d.ts +1 -0
- package/multi-range/index.mjs +27 -26
- package/navbar/index.mjs +77 -80
- package/otp-input/index.mjs +27 -26
- package/package.json +11 -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/typeahead/index.mjs +119 -0
- package/typeahead/src/BsTypeahead.vue.d.ts +46 -0
- package/typeahead/src/index.d.ts +3 -0
- package/vue-bootstrap.css +2 -1
package/accordion/index.mjs
CHANGED
|
@@ -1,66 +1,56 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Fragment as e, cloneVNode as t, computed as n, createElementBlock as r, createElementVNode as i, createVNode as a, defineComponent as o, mergeProps as s, openBlock as c, renderSlot as l, useSlots as u } from "vue";
|
|
2
2
|
import "@mintplayer/web-components/accordion";
|
|
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
|
-
return (t, e) => (m(), h("mp-accordion", v(t.$attrs, {
|
|
55
|
-
multi: b.value,
|
|
56
|
-
"highlight-active-tab": _.value,
|
|
57
|
-
onMpAccordionTabToggle: f
|
|
58
|
-
}), [
|
|
59
|
-
y(A)
|
|
60
|
-
], 16, N));
|
|
61
|
-
}
|
|
3
|
+
//#region libs/mintplayer-vue-bootstrap/accordion/src/BsAccordionItem.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var d = ["slot"], f = [
|
|
5
|
+
"slot",
|
|
6
|
+
"is-active",
|
|
7
|
+
"disabled"
|
|
8
|
+
], p = /* @__PURE__ */ o({
|
|
9
|
+
inheritAttrs: !1,
|
|
10
|
+
__name: "BsAccordionItem",
|
|
11
|
+
props: {
|
|
12
|
+
index: {},
|
|
13
|
+
isActive: { type: Boolean },
|
|
14
|
+
disabled: { type: Boolean }
|
|
15
|
+
},
|
|
16
|
+
setup(t) {
|
|
17
|
+
let a = t, o = n(() => a.index ?? 0), u = n(() => a.isActive ? "" : void 0), p = n(() => a.disabled ? "" : void 0);
|
|
18
|
+
return (t, n) => (c(), r(e, null, [i("span", {
|
|
19
|
+
"accordion-header": "",
|
|
20
|
+
slot: `h${o.value}`
|
|
21
|
+
}, [l(t.$slots, "header")], 8, d), i("mp-accordion-tab", s({
|
|
22
|
+
"accordion-tab": "",
|
|
23
|
+
slot: `c${o.value}`,
|
|
24
|
+
"is-active": u.value,
|
|
25
|
+
disabled: p.value
|
|
26
|
+
}, t.$attrs), [l(t.$slots, "default")], 16, f)], 64));
|
|
27
|
+
}
|
|
28
|
+
}), m = ["multi", "highlight-active-tab"], h = /* @__PURE__ */ o({
|
|
29
|
+
inheritAttrs: !1,
|
|
30
|
+
__name: "BsAccordion",
|
|
31
|
+
props: {
|
|
32
|
+
multi: { type: Boolean },
|
|
33
|
+
highlightActiveTab: { type: Boolean }
|
|
34
|
+
},
|
|
35
|
+
emits: ["tabToggle"],
|
|
36
|
+
setup(i, { emit: o }) {
|
|
37
|
+
let l = i, d = o, f = u();
|
|
38
|
+
function h(t) {
|
|
39
|
+
return t.flatMap((t) => t.type === e && Array.isArray(t.children) ? h(t.children) : [t]);
|
|
40
|
+
}
|
|
41
|
+
let g = n(() => {
|
|
42
|
+
let e = 0;
|
|
43
|
+
return h(f.default?.() ?? []).map((n) => n.type === p ? t(n, { index: e++ }) : n);
|
|
44
|
+
}), _ = () => g.value, v = n(() => l.multi ? "" : void 0), y = n(() => l.highlightActiveTab ? "" : void 0);
|
|
45
|
+
function b(e) {
|
|
46
|
+
e.target === e.currentTarget && (e.stopPropagation(), d("tabToggle", e.detail));
|
|
47
|
+
}
|
|
48
|
+
return (e, t) => (c(), r("mp-accordion", s(e.$attrs, {
|
|
49
|
+
multi: v.value,
|
|
50
|
+
"highlight-active-tab": y.value,
|
|
51
|
+
onMpAccordionTabToggle: b
|
|
52
|
+
}), [a(_)], 16, m));
|
|
53
|
+
}
|
|
62
54
|
});
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
I as BsAccordionItem
|
|
66
|
-
};
|
|
55
|
+
//#endregion
|
|
56
|
+
export { h as BsAccordion, p as BsAccordionItem };
|
package/calendar/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/calendar";
|
|
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/calendar/src/BsCalendar.vue
|
|
5
|
+
var l = /* @__PURE__ */ t({
|
|
6
|
+
inheritAttrs: !1,
|
|
7
|
+
__name: "BsCalendar",
|
|
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.selectedDate = 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-calendar", n({
|
|
23
|
+
ref_key: "el",
|
|
24
|
+
ref: u
|
|
25
|
+
}, t.$attrs, { onSelectedDateChange: f }), [o(t.$slots, "default")], 16));
|
|
26
|
+
}
|
|
27
27
|
});
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
28
|
+
//#endregion
|
|
29
|
+
export { l as BsCalendar };
|
package/card/index.mjs
CHANGED
|
@@ -1,146 +1,105 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { applyHeaderNavStyle 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
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
return (t, r) => (e(), a("a", n({
|
|
104
|
-
class: "card-link",
|
|
105
|
-
href: s.href
|
|
106
|
-
}, t.$attrs), [
|
|
107
|
-
o(t.$slots, "default")
|
|
108
|
-
], 16, A));
|
|
109
|
-
}
|
|
110
|
-
}), G = /* @__PURE__ */ l({
|
|
111
|
-
inheritAttrs: !1,
|
|
112
|
-
__name: "BsCardSubtitle",
|
|
113
|
-
setup(s) {
|
|
114
|
-
return (t, r) => (e(), a("div", n({ class: "card-subtitle" }, t.$attrs), [
|
|
115
|
-
o(t.$slots, "default")
|
|
116
|
-
], 16));
|
|
117
|
-
}
|
|
118
|
-
}), I = /* @__PURE__ */ l({
|
|
119
|
-
inheritAttrs: !1,
|
|
120
|
-
__name: "BsCardText",
|
|
121
|
-
setup(s) {
|
|
122
|
-
return (t, r) => (e(), a("div", n({ class: "card-text" }, t.$attrs), [
|
|
123
|
-
o(t.$slots, "default")
|
|
124
|
-
], 16));
|
|
125
|
-
}
|
|
126
|
-
}), L = /* @__PURE__ */ l({
|
|
127
|
-
inheritAttrs: !1,
|
|
128
|
-
__name: "BsCardTitle",
|
|
129
|
-
setup(s) {
|
|
130
|
-
return (t, r) => (e(), a("div", n({ class: "card-title" }, t.$attrs), [
|
|
131
|
-
o(t.$slots, "default")
|
|
132
|
-
], 16));
|
|
133
|
-
}
|
|
1
|
+
import { Fragment as e, computed as t, createElementBlock as n, createElementVNode as r, defineComponent as i, guardReactiveProps as a, mergeProps as o, nextTick as s, normalizeProps as c, onMounted as l, openBlock as u, ref as d, renderSlot as f, watch as p } from "vue";
|
|
2
|
+
import { applyHeaderNavStyle as m } from "@mintplayer/web-components/card";
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region libs/mintplayer-vue-bootstrap/card/src/BsCard.vue
|
|
5
|
+
var h = /* @__PURE__ */ i({
|
|
6
|
+
inheritAttrs: !1,
|
|
7
|
+
__name: "BsCard",
|
|
8
|
+
setup(e) {
|
|
9
|
+
return (e, t) => (u(), n("mp-card", c(a(e.$attrs)), [f(e.$slots, "default")], 16));
|
|
10
|
+
}
|
|
11
|
+
}), g = /* @__PURE__ */ i({
|
|
12
|
+
inheritAttrs: !1,
|
|
13
|
+
__name: "BsCardBody",
|
|
14
|
+
setup(e) {
|
|
15
|
+
return (e, t) => (u(), n("div", o({ class: "card-body" }, e.$attrs), [f(e.$slots, "default")], 16));
|
|
16
|
+
}
|
|
17
|
+
}), _ = /* @__PURE__ */ i({
|
|
18
|
+
inheritAttrs: !1,
|
|
19
|
+
__name: "BsCardFooter",
|
|
20
|
+
props: { color: {} },
|
|
21
|
+
setup(e) {
|
|
22
|
+
return (t, r) => (u(), n("div", o({ class: ["card-footer", e.color ? "text-bg-" + e.color : null] }, t.$attrs), [f(t.$slots, "default")], 16));
|
|
23
|
+
}
|
|
24
|
+
}), v = /* @__PURE__ */ i({
|
|
25
|
+
inheritAttrs: !1,
|
|
26
|
+
__name: "BsCardGroup",
|
|
27
|
+
setup(e) {
|
|
28
|
+
return (e, t) => (u(), n("div", o({ class: "card-group" }, e.$attrs), [f(e.$slots, "default")], 16));
|
|
29
|
+
}
|
|
30
|
+
}), y = /* @__PURE__ */ i({
|
|
31
|
+
inheritAttrs: !1,
|
|
32
|
+
__name: "BsCardHeader",
|
|
33
|
+
props: {
|
|
34
|
+
color: {},
|
|
35
|
+
navStyle: {}
|
|
36
|
+
},
|
|
37
|
+
setup(e) {
|
|
38
|
+
let t = e, r = d(null);
|
|
39
|
+
async function i() {
|
|
40
|
+
await s(), r.value && m(r.value, t.navStyle ?? null);
|
|
41
|
+
}
|
|
42
|
+
return l(i), p(() => t.navStyle, i), (t, i) => (u(), n("div", o({
|
|
43
|
+
ref_key: "el",
|
|
44
|
+
ref: r,
|
|
45
|
+
class: ["card-header", e.color ? "text-bg-" + e.color : null]
|
|
46
|
+
}, t.$attrs), [f(t.$slots, "default")], 16));
|
|
47
|
+
}
|
|
48
|
+
}), b = ["src", "alt"], x = { class: "card-img-overlay" }, S = ["src", "alt"], C = /* @__PURE__ */ i({
|
|
49
|
+
inheritAttrs: !1,
|
|
50
|
+
__name: "BsCardImg",
|
|
51
|
+
props: {
|
|
52
|
+
position: {},
|
|
53
|
+
src: {},
|
|
54
|
+
alt: {}
|
|
55
|
+
},
|
|
56
|
+
setup(i) {
|
|
57
|
+
let a = i, s = t(() => {
|
|
58
|
+
switch (a.position) {
|
|
59
|
+
case "bottom": return "card-img-bottom";
|
|
60
|
+
case "overlay": return "card-img";
|
|
61
|
+
default: return "card-img-top";
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
return (t, a) => i.position === "overlay" ? (u(), n(e, { key: 0 }, [r("img", o({
|
|
65
|
+
class: "card-img",
|
|
66
|
+
src: i.src,
|
|
67
|
+
alt: i.alt ?? ""
|
|
68
|
+
}, t.$attrs), null, 16, b), r("div", x, [f(t.$slots, "default")])], 64)) : (u(), n("img", o({
|
|
69
|
+
key: 1,
|
|
70
|
+
class: s.value,
|
|
71
|
+
src: i.src,
|
|
72
|
+
alt: i.alt ?? ""
|
|
73
|
+
}, t.$attrs), null, 16, S));
|
|
74
|
+
}
|
|
75
|
+
}), w = ["href"], T = /* @__PURE__ */ i({
|
|
76
|
+
inheritAttrs: !1,
|
|
77
|
+
__name: "BsCardLink",
|
|
78
|
+
props: { href: {} },
|
|
79
|
+
setup(e) {
|
|
80
|
+
return (t, r) => (u(), n("a", o({
|
|
81
|
+
class: "card-link",
|
|
82
|
+
href: e.href
|
|
83
|
+
}, t.$attrs), [f(t.$slots, "default")], 16, w));
|
|
84
|
+
}
|
|
85
|
+
}), E = /* @__PURE__ */ i({
|
|
86
|
+
inheritAttrs: !1,
|
|
87
|
+
__name: "BsCardSubtitle",
|
|
88
|
+
setup(e) {
|
|
89
|
+
return (e, t) => (u(), n("div", o({ class: "card-subtitle" }, e.$attrs), [f(e.$slots, "default")], 16));
|
|
90
|
+
}
|
|
91
|
+
}), D = /* @__PURE__ */ i({
|
|
92
|
+
inheritAttrs: !1,
|
|
93
|
+
__name: "BsCardText",
|
|
94
|
+
setup(e) {
|
|
95
|
+
return (e, t) => (u(), n("div", o({ class: "card-text" }, e.$attrs), [f(e.$slots, "default")], 16));
|
|
96
|
+
}
|
|
97
|
+
}), O = /* @__PURE__ */ i({
|
|
98
|
+
inheritAttrs: !1,
|
|
99
|
+
__name: "BsCardTitle",
|
|
100
|
+
setup(e) {
|
|
101
|
+
return (e, t) => (u(), n("div", o({ class: "card-title" }, e.$attrs), [f(e.$slots, "default")], 16));
|
|
102
|
+
}
|
|
134
103
|
});
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
w as BsCardBody,
|
|
138
|
-
F as BsCardFooter,
|
|
139
|
-
H as BsCardGroup,
|
|
140
|
-
N as BsCardHeader,
|
|
141
|
-
P as BsCardImg,
|
|
142
|
-
E as BsCardLink,
|
|
143
|
-
G as BsCardSubtitle,
|
|
144
|
-
I as BsCardText,
|
|
145
|
-
L as BsCardTitle
|
|
146
|
-
};
|
|
104
|
+
//#endregion
|
|
105
|
+
export { h as BsCard, g as BsCardBody, _ as BsCardFooter, v as BsCardGroup, y as BsCardHeader, C as BsCardImg, T as BsCardLink, E as BsCardSubtitle, D as BsCardText, O as BsCardTitle };
|
package/carousel/index.mjs
CHANGED
|
@@ -1,60 +1,76 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createCommentVNode as e, createElementBlock as t, defineComponent as n, mergeModels as r, mergeProps as i, onBeforeUnmount as a, onMounted as o, openBlock as s, ref as c, renderSlot as l, useModel as u } from "vue";
|
|
2
2
|
import "@mintplayer/web-components/carousel";
|
|
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
|
-
|
|
3
|
+
//#region libs/mintplayer-vue-bootstrap/carousel/src/BsCarousel.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var d = [
|
|
5
|
+
"animation",
|
|
6
|
+
"orientation",
|
|
7
|
+
"indicators",
|
|
8
|
+
"interval",
|
|
9
|
+
"wrap",
|
|
10
|
+
"keyboard-events",
|
|
11
|
+
"paused"
|
|
12
|
+
], f = {
|
|
13
|
+
key: 0,
|
|
14
|
+
slot: "play-pause"
|
|
15
|
+
}, p = /* @__PURE__ */ n({
|
|
16
|
+
inheritAttrs: !1,
|
|
17
|
+
__name: "BsCarousel",
|
|
18
|
+
props: /*@__PURE__*/ r({
|
|
19
|
+
animation: { default: "slide" },
|
|
20
|
+
orientation: { default: "horizontal" },
|
|
21
|
+
indicators: { type: Boolean },
|
|
22
|
+
interval: {},
|
|
23
|
+
wrap: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: !0
|
|
26
|
+
},
|
|
27
|
+
keyboardEvents: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: !0
|
|
30
|
+
}
|
|
31
|
+
}, {
|
|
32
|
+
paused: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
default: !1
|
|
35
|
+
},
|
|
36
|
+
pausedModifiers: {}
|
|
37
|
+
}),
|
|
38
|
+
emits: /*@__PURE__*/ r([
|
|
39
|
+
"slideChange",
|
|
40
|
+
"animationStart",
|
|
41
|
+
"animationEnd"
|
|
42
|
+
], ["update:paused"]),
|
|
43
|
+
setup(n, { emit: r }) {
|
|
44
|
+
let p = u(n, "paused"), m = r, h = c(null);
|
|
45
|
+
function g(e) {
|
|
46
|
+
m("slideChange", e.detail);
|
|
47
|
+
}
|
|
48
|
+
function _(e) {
|
|
49
|
+
p.value = e.detail.paused;
|
|
50
|
+
}
|
|
51
|
+
function v() {
|
|
52
|
+
m("animationStart");
|
|
53
|
+
}
|
|
54
|
+
function y() {
|
|
55
|
+
m("animationEnd");
|
|
56
|
+
}
|
|
57
|
+
return o(() => {
|
|
58
|
+
h.value?.addEventListener("slide-change", g), h.value?.addEventListener("paused-change", _), h.value?.addEventListener("animation-start", v), h.value?.addEventListener("animation-end", y);
|
|
59
|
+
}), a(() => {
|
|
60
|
+
h.value?.removeEventListener("slide-change", g), h.value?.removeEventListener("paused-change", _), h.value?.removeEventListener("animation-start", v), h.value?.removeEventListener("animation-end", y);
|
|
61
|
+
}), (r, a) => (s(), t("mp-carousel", i({
|
|
62
|
+
ref_key: "el",
|
|
63
|
+
ref: h
|
|
64
|
+
}, r.$attrs, {
|
|
65
|
+
animation: n.animation,
|
|
66
|
+
orientation: n.orientation,
|
|
67
|
+
indicators: n.indicators ? "" : void 0,
|
|
68
|
+
interval: n.interval && n.interval > 0 ? n.interval : void 0,
|
|
69
|
+
wrap: n.wrap === !1 ? "false" : void 0,
|
|
70
|
+
"keyboard-events": n.keyboardEvents === !1 ? "false" : void 0,
|
|
71
|
+
paused: p.value ? "" : void 0
|
|
72
|
+
}), [l(r.$slots, "default"), r.$slots["play-pause"] ? (s(), t("span", f, [l(r.$slots, "play-pause")])) : e("", !0)], 16, d));
|
|
73
|
+
}
|
|
57
74
|
});
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
};
|
|
75
|
+
//#endregion
|
|
76
|
+
export { p as BsCarousel };
|