@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/shell/index.mjs
CHANGED
|
@@ -1,35 +1,39 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createElementBlock as e, defineComponent as t, mergeProps as n, onBeforeUnmount as r, onMounted as i, openBlock as a, ref as o, renderSlot as s } from "vue";
|
|
2
2
|
import "@mintplayer/web-components/shell";
|
|
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
|
-
|
|
3
|
+
//#region libs/mintplayer-vue-bootstrap/shell/src/BsShell.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var c = [
|
|
5
|
+
"state",
|
|
6
|
+
"breakpoint",
|
|
7
|
+
"size",
|
|
8
|
+
"external-toggle",
|
|
9
|
+
"dismiss-on-navigate"
|
|
10
|
+
], l = /* @__PURE__ */ t({
|
|
11
|
+
inheritAttrs: !1,
|
|
12
|
+
__name: "BsShell",
|
|
13
|
+
props: {
|
|
14
|
+
state: { default: "auto" },
|
|
15
|
+
breakpoint: { default: "md" },
|
|
16
|
+
size: {},
|
|
17
|
+
externalToggle: { type: Boolean },
|
|
18
|
+
dismissOnNavigate: { type: Boolean }
|
|
19
|
+
},
|
|
20
|
+
emits: ["statechange"],
|
|
21
|
+
setup(t, { emit: l }) {
|
|
22
|
+
let u = l, d = o(null);
|
|
23
|
+
function f(e) {
|
|
24
|
+
u("statechange", e.detail);
|
|
25
|
+
}
|
|
26
|
+
return i(() => d.value?.addEventListener("statechange", f)), r(() => d.value?.removeEventListener("statechange", f)), (r, i) => (a(), e("mp-shell", n({
|
|
27
|
+
ref_key: "el",
|
|
28
|
+
ref: d
|
|
29
|
+
}, r.$attrs, {
|
|
30
|
+
state: t.state,
|
|
31
|
+
breakpoint: t.breakpoint,
|
|
32
|
+
size: t.size,
|
|
33
|
+
"external-toggle": t.externalToggle ? "" : void 0,
|
|
34
|
+
"dismiss-on-navigate": t.dismissOnNavigate ? "" : void 0
|
|
35
|
+
}), [s(r.$slots, "default")], 16, c));
|
|
36
|
+
}
|
|
32
37
|
});
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
};
|
|
38
|
+
//#endregion
|
|
39
|
+
export { l as BsShell };
|
package/signature-pad/index.mjs
CHANGED
|
@@ -1,27 +1,28 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createElementBlock as e, defineComponent as t, mergeProps as n, onMounted as r, openBlock as i, ref as a, useModel as o, watch as s } from "vue";
|
|
2
2
|
import "@mintplayer/web-components/signature-pad";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region libs/mintplayer-vue-bootstrap/signature-pad/src/BsSignaturePad.vue
|
|
5
|
+
var c = /* @__PURE__ */ t({
|
|
6
|
+
inheritAttrs: !1,
|
|
7
|
+
__name: "BsSignaturePad",
|
|
8
|
+
props: {
|
|
9
|
+
modelValue: {},
|
|
10
|
+
modelModifiers: {}
|
|
11
|
+
},
|
|
12
|
+
emits: ["update:modelValue"],
|
|
13
|
+
setup(t) {
|
|
14
|
+
let c = o(t, "modelValue"), l = a(null), u = (e) => {
|
|
15
|
+
l.value && (l.value.signature = e ?? { strokes: [] });
|
|
16
|
+
};
|
|
17
|
+
r(() => u(c.value)), s(c, u);
|
|
18
|
+
function d(e) {
|
|
19
|
+
c.value = e.detail;
|
|
20
|
+
}
|
|
21
|
+
return (t, r) => (i(), e("mp-signature-pad", n({
|
|
22
|
+
ref_key: "el",
|
|
23
|
+
ref: l
|
|
24
|
+
}, t.$attrs, { onSignatureChange: d }), null, 16));
|
|
25
|
+
}
|
|
24
26
|
});
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
};
|
|
27
|
+
//#endregion
|
|
28
|
+
export { c as BsSignaturePad };
|
package/splitter/index.mjs
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { createElementBlock as e, defineComponent as t, guardReactiveProps as n, normalizeProps as r, openBlock as i, renderSlot as a } from "vue";
|
|
2
|
+
import { MpSplitter as o } from "@mintplayer/web-components/splitter";
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region libs/mintplayer-vue-bootstrap/splitter/src/BsSplitter.vue
|
|
5
|
+
var s = /* @__PURE__ */ t({
|
|
6
|
+
inheritAttrs: !1,
|
|
7
|
+
__name: "BsSplitter",
|
|
8
|
+
setup(t) {
|
|
9
|
+
return (t, o) => (i(), e("mp-splitter", r(n(t.$attrs)), [a(t.$slots, "default")], 16));
|
|
10
|
+
}
|
|
11
11
|
});
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
_ as MpSplitter
|
|
15
|
-
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { s as BsSplitter, o as MpSplitter };
|
package/tab-control/index.mjs
CHANGED
|
@@ -1,32 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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
|
+
import { MpTabControl as l, MpTabPage as u } from "@mintplayer/web-components/tab-control";
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region libs/mintplayer-vue-bootstrap/tab-control/src/BsTabControl.vue
|
|
5
|
+
var d = /* @__PURE__ */ t({
|
|
6
|
+
inheritAttrs: !1,
|
|
7
|
+
__name: "BsTabControl",
|
|
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 && e !== void 0 && u.value.setAttribute("active-tab", e);
|
|
16
|
+
};
|
|
17
|
+
r(() => d(l.value)), c(l, d);
|
|
18
|
+
function f(e) {
|
|
19
|
+
let t = e.detail;
|
|
20
|
+
t && (l.value = t.tabId);
|
|
21
|
+
}
|
|
22
|
+
return (t, r) => (i(), e("mp-tab-control", n({
|
|
23
|
+
ref_key: "el",
|
|
24
|
+
ref: u
|
|
25
|
+
}, t.$attrs, { onTabActivate: f }), [o(t.$slots, "default")], 16));
|
|
26
|
+
}
|
|
27
27
|
});
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
B as MpTabControl,
|
|
31
|
-
C as MpTabPage
|
|
32
|
-
};
|
|
28
|
+
//#endregion
|
|
29
|
+
export { d as BsTabControl, l as MpTabControl, u as MpTabPage };
|
package/theming/index.mjs
CHANGED
|
@@ -1,57 +1,39 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { BS_THEME_DEFAULT_MODES as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
d() && m().setMode(o);
|
|
1
|
+
import { createElementBlock as e, defineComponent as t, getCurrentInstance as n, getCurrentScope as r, mergeProps as i, onMounted as a, onScopeDispose as o, openBlock as s, readonly as c, ref as l, shallowRef as u, watch as d } from "vue";
|
|
2
|
+
import { BS_THEME_COOKIE_NAME as f, BS_THEME_DEFAULT_MODES as p, BS_THEME_DEFAULT_MODES as m, BS_THEME_DEFAULT_MODE_META as h, configureBsTheme as g, getBsThemeStore as _, getBsThemeStore as v, injectThemeAttribute as y, isValidThemeMode as b, readDefaultModeMeta as x, readThemeCookie as S, resolveMode as C, resolveMode as w, resolveServerTheme as T, writeThemeCookie as E } from "@mintplayer/web-components/theming";
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region libs/mintplayer-vue-bootstrap/theming/src/BsThemeToggle.vue
|
|
5
|
+
var D = /* @__PURE__ */ t({
|
|
6
|
+
inheritAttrs: !1,
|
|
7
|
+
__name: "BsThemeToggle",
|
|
8
|
+
props: { modes: {} },
|
|
9
|
+
setup(t) {
|
|
10
|
+
let n = t, r = l(null), o = () => {
|
|
11
|
+
r.value && (r.value.modes = n.modes ?? m);
|
|
12
|
+
};
|
|
13
|
+
return a(o), d(() => n.modes, o), (t, n) => (s(), e("mp-theme-toggle", i({
|
|
14
|
+
ref_key: "el",
|
|
15
|
+
ref: r
|
|
16
|
+
}, t.$attrs), null, 16));
|
|
17
|
+
}
|
|
18
|
+
}), O = () => typeof window < "u", k = (e) => {
|
|
19
|
+
O() && v().setMode(e);
|
|
21
20
|
};
|
|
22
|
-
function
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
setMode: S,
|
|
39
|
-
stop: e
|
|
40
|
-
};
|
|
21
|
+
function A() {
|
|
22
|
+
let e = u("auto"), t = u(w("auto", !1)), i = () => void 0;
|
|
23
|
+
if (O()) {
|
|
24
|
+
let s = v(), c = () => {
|
|
25
|
+
e.value = s.getMode(), t.value = s.effectiveMode();
|
|
26
|
+
}, l = s.subscribe(c), u = !1;
|
|
27
|
+
i = () => {
|
|
28
|
+
u || (u = !0, l());
|
|
29
|
+
}, r() && o(i), n() ? a(c) : c();
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
mode: c(e),
|
|
33
|
+
effectiveMode: c(t),
|
|
34
|
+
setMode: k,
|
|
35
|
+
stop: i
|
|
36
|
+
};
|
|
41
37
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
O as BS_THEME_DEFAULT_MODES,
|
|
45
|
-
H as BS_THEME_DEFAULT_MODE_META,
|
|
46
|
-
w as BsThemeToggle,
|
|
47
|
-
F as configureBsTheme,
|
|
48
|
-
L as getBsThemeStore,
|
|
49
|
-
U as injectThemeAttribute,
|
|
50
|
-
x as isValidThemeMode,
|
|
51
|
-
I as readDefaultModeMeta,
|
|
52
|
-
j as readThemeCookie,
|
|
53
|
-
K as resolveMode,
|
|
54
|
-
N as resolveServerTheme,
|
|
55
|
-
C as useBsTheme,
|
|
56
|
-
P as writeThemeCookie
|
|
57
|
-
};
|
|
38
|
+
//#endregion
|
|
39
|
+
export { f as BS_THEME_COOKIE_NAME, p as BS_THEME_DEFAULT_MODES, h as BS_THEME_DEFAULT_MODE_META, D as BsThemeToggle, g as configureBsTheme, _ as getBsThemeStore, y as injectThemeAttribute, b as isValidThemeMode, x as readDefaultModeMeta, S as readThemeCookie, C as resolveMode, T as resolveServerTheme, A as useBsTheme, E as writeThemeCookie };
|
package/tile-manager/index.mjs
CHANGED
|
@@ -1,23 +1,20 @@
|
|
|
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, watch as s } from "vue";
|
|
2
2
|
import "@mintplayer/web-components/tile-manager";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
], 16));
|
|
19
|
-
}
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region libs/mintplayer-vue-bootstrap/tile-manager/src/BsTileManager.vue
|
|
5
|
+
var c = /* @__PURE__ */ t({
|
|
6
|
+
inheritAttrs: !1,
|
|
7
|
+
__name: "BsTileManager",
|
|
8
|
+
props: { tiles: {} },
|
|
9
|
+
setup(t) {
|
|
10
|
+
let c = t, l = a(null), u = () => {
|
|
11
|
+
l.value && (l.value.tiles = c.tiles ?? []);
|
|
12
|
+
};
|
|
13
|
+
return r(u), s(() => c.tiles, u), (t, r) => (i(), e("mp-tile-manager", n({
|
|
14
|
+
ref_key: "el",
|
|
15
|
+
ref: l
|
|
16
|
+
}, t.$attrs), [o(t.$slots, "default")], 16));
|
|
17
|
+
}
|
|
20
18
|
});
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
};
|
|
19
|
+
//#endregion
|
|
20
|
+
export { c as BsTileManager };
|