@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/dock/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/dock";
|
|
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/dock/src/BsDockManager.vue
|
|
5
|
+
var l = /* @__PURE__ */ t({
|
|
6
|
+
inheritAttrs: !1,
|
|
7
|
+
__name: "BsDockManager",
|
|
8
|
+
props: {
|
|
9
|
+
layout: {},
|
|
10
|
+
layoutModifiers: {}
|
|
11
|
+
},
|
|
12
|
+
emits: ["update:layout"],
|
|
13
|
+
setup(t) {
|
|
14
|
+
let l = s(t, "layout"), u = a(null), d = (e) => {
|
|
15
|
+
u.value && (u.value.layout = e ?? null);
|
|
16
|
+
};
|
|
17
|
+
r(() => d(l.value)), c(l, d);
|
|
18
|
+
function f(e) {
|
|
19
|
+
let t = e.detail;
|
|
20
|
+
t && (l.value = t);
|
|
21
|
+
}
|
|
22
|
+
return (t, r) => (i(), e("mint-dock-manager", n({
|
|
23
|
+
ref_key: "el",
|
|
24
|
+
ref: u
|
|
25
|
+
}, t.$attrs, { onDockLayoutChanged: f }), [o(t.$slots, "default")], 16));
|
|
26
|
+
}
|
|
27
27
|
});
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
28
|
+
//#endregion
|
|
29
|
+
export { l as BsDockManager };
|
package/dropdown-menu/index.mjs
CHANGED
|
@@ -1,71 +1,65 @@
|
|
|
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, watch as c } from "vue";
|
|
2
2
|
import "@mintplayer/web-components/dropdown-menu";
|
|
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
|
-
], 16));
|
|
64
|
-
}
|
|
3
|
+
//#region libs/mintplayer-vue-bootstrap/dropdown-menu/src/BsDropdownMenu.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var l = ["max-height"], u = /* @__PURE__ */ t({
|
|
5
|
+
inheritAttrs: !1,
|
|
6
|
+
__name: "BsDropdownMenu",
|
|
7
|
+
props: { maxHeight: {} },
|
|
8
|
+
emits: ["select"],
|
|
9
|
+
setup(t, { emit: c }) {
|
|
10
|
+
let u = c, d = o(null);
|
|
11
|
+
function f(e) {
|
|
12
|
+
u("select", e.detail);
|
|
13
|
+
}
|
|
14
|
+
return i(() => d.value?.addEventListener("select", f)), r(() => d.value?.removeEventListener("select", f)), (r, i) => (a(), e("mp-dropdown-menu", n({
|
|
15
|
+
ref_key: "el",
|
|
16
|
+
ref: d
|
|
17
|
+
}, r.$attrs, { "max-height": t.maxHeight }), [s(r.$slots, "default")], 16, l));
|
|
18
|
+
}
|
|
19
|
+
}), d = ["aria-disabled"], f = /* @__PURE__ */ t({
|
|
20
|
+
inheritAttrs: !1,
|
|
21
|
+
__name: "BsDropdownItem",
|
|
22
|
+
props: {
|
|
23
|
+
active: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: !1
|
|
26
|
+
},
|
|
27
|
+
disabled: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: !1
|
|
30
|
+
},
|
|
31
|
+
value: {}
|
|
32
|
+
},
|
|
33
|
+
setup(t) {
|
|
34
|
+
let r = t, l = o(null), u = () => {
|
|
35
|
+
l.value && (l.value.dropdownValue = r.value);
|
|
36
|
+
};
|
|
37
|
+
return i(u), c(() => r.value, u), (r, i) => (a(), e("li", n({
|
|
38
|
+
ref_key: "el",
|
|
39
|
+
ref: l
|
|
40
|
+
}, r.$attrs, {
|
|
41
|
+
class: ["dropdown-item", {
|
|
42
|
+
active: t.active,
|
|
43
|
+
disabled: t.disabled
|
|
44
|
+
}],
|
|
45
|
+
"aria-disabled": t.disabled ? "true" : void 0
|
|
46
|
+
}), [s(r.$slots, "default")], 16, d));
|
|
47
|
+
}
|
|
48
|
+
}), p = /* @__PURE__ */ t({
|
|
49
|
+
inheritAttrs: !1,
|
|
50
|
+
__name: "BsDropdownDivider",
|
|
51
|
+
setup(t) {
|
|
52
|
+
return (t, r) => (a(), e("li", n(t.$attrs, {
|
|
53
|
+
role: "separator",
|
|
54
|
+
class: "dropdown-divider"
|
|
55
|
+
}), null, 16));
|
|
56
|
+
}
|
|
57
|
+
}), m = /* @__PURE__ */ t({
|
|
58
|
+
inheritAttrs: !1,
|
|
59
|
+
__name: "BsDropdownHeader",
|
|
60
|
+
setup(t) {
|
|
61
|
+
return (t, r) => (a(), e("li", n(t.$attrs, { class: "dropdown-header" }), [s(t.$slots, "default")], 16));
|
|
62
|
+
}
|
|
65
63
|
});
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
g as BsDropdownHeader,
|
|
69
|
-
D as BsDropdownItem,
|
|
70
|
-
$ as BsDropdownMenu
|
|
71
|
-
};
|
|
64
|
+
//#endregion
|
|
65
|
+
export { p as BsDropdownDivider, m as BsDropdownHeader, f as BsDropdownItem, u as BsDropdownMenu };
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DropdownSelectEventDetail } from '@mintplayer/web-components/dropdown-menu';
|
|
2
2
|
type __VLS_Props = {
|
|
3
|
-
/** `menu` (default) exposes roving-tabindex menu semantics | `listbox`. */
|
|
4
|
-
mode?: DropdownMode;
|
|
5
3
|
/** Max panel height in px before the item list scrolls. */
|
|
6
4
|
maxHeight?: number;
|
|
7
5
|
};
|
|
@@ -20,9 +18,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
20
18
|
select: (detail: DropdownSelectEventDetail) => any;
|
|
21
19
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
22
20
|
onSelect?: ((detail: DropdownSelectEventDetail) => any) | undefined;
|
|
23
|
-
}>, {
|
|
24
|
-
mode: DropdownMode;
|
|
25
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
21
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
26
22
|
el: unknown;
|
|
27
23
|
}, any>;
|
|
28
24
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -2,4 +2,4 @@ export { default as BsDropdownMenu } from './BsDropdownMenu.vue';
|
|
|
2
2
|
export { default as BsDropdownItem } from './BsDropdownItem.vue';
|
|
3
3
|
export { default as BsDropdownDivider } from './BsDropdownDivider.vue';
|
|
4
4
|
export { default as BsDropdownHeader } from './BsDropdownHeader.vue';
|
|
5
|
-
export type {
|
|
5
|
+
export type { DropdownSelectEventDetail } from '@mintplayer/web-components/dropdown-menu';
|
package/file-manager/index.mjs
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createElementBlock as e, defineComponent as t, mergeProps as n, onMounted as r, openBlock as i, ref as a, watch as o } from "vue";
|
|
2
2
|
import "@mintplayer/web-components/file-manager";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region libs/mintplayer-vue-bootstrap/file-manager/src/BsFileManager.vue
|
|
5
|
+
var s = /* @__PURE__ */ t({
|
|
6
|
+
inheritAttrs: !1,
|
|
7
|
+
__name: "BsFileManager",
|
|
8
|
+
props: { nodes: {} },
|
|
9
|
+
setup(t) {
|
|
10
|
+
let s = t, c = a(null), l = () => {
|
|
11
|
+
c.value && (c.value.nodes = s.nodes ?? []);
|
|
12
|
+
};
|
|
13
|
+
return r(l), o(() => s.nodes, l, { deep: !0 }), (t, r) => (i(), e("mp-file-manager", n({
|
|
14
|
+
ref_key: "el",
|
|
15
|
+
ref: c
|
|
16
|
+
}, t.$attrs), null, 16));
|
|
17
|
+
}
|
|
18
18
|
});
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
};
|
|
19
|
+
//#endregion
|
|
20
|
+
export { s as BsFileManager };
|
package/index.mjs
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/input-group/index.mjs
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createElementBlock as e, defineComponent as t, guardReactiveProps as n, normalizeProps as r, openBlock as i, renderSlot as a } from "vue";
|
|
2
2
|
import "@mintplayer/web-components/input-group";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region libs/mintplayer-vue-bootstrap/input-group/src/BsInputGroup.vue
|
|
5
|
+
var o = /* @__PURE__ */ t({
|
|
6
|
+
inheritAttrs: !1,
|
|
7
|
+
__name: "BsInputGroup",
|
|
8
|
+
setup(t) {
|
|
9
|
+
return (t, o) => (i(), e("mp-input-group", r(n(t.$attrs)), [a(t.$slots, "default")], 16));
|
|
10
|
+
}
|
|
11
11
|
});
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { o as BsInputGroup };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as useMachine, n as useSnapshot } from "../chunks/useMachine-DLZ7g_H3.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useMachine';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ShallowRef } from 'vue';
|
|
2
|
+
import { SnapshotOf, Store } from '@mintplayer/ui-core/store';
|
|
3
|
+
/**
|
|
4
|
+
* Read a `@mintplayer/ui-core` store from a Vue component: a `shallowRef` of
|
|
5
|
+
* the snapshot, set from `subscribe` and released with the effect scope.
|
|
6
|
+
* Shallow on purpose — the snapshot is replaced wholesale and never mutated,
|
|
7
|
+
* so deep reactivity would only cost proxies (spike S1, `useMachine.spec.ts`).
|
|
8
|
+
*/
|
|
9
|
+
export declare function useSnapshot<S extends object>(store: Store<S>): Readonly<ShallowRef<S>>;
|
|
10
|
+
/** Own a machine for the component's lifetime: created in `setup`, destroyed with the scope. */
|
|
11
|
+
export declare function useMachine<M extends Store<object> & {
|
|
12
|
+
destroy(): void;
|
|
13
|
+
}>(create: () => M): [M, Readonly<ShallowRef<SnapshotOf<M>>>];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/multi-range/index.mjs
CHANGED
|
@@ -1,28 +1,29 @@
|
|
|
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/multi-range";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region libs/mintplayer-vue-bootstrap/multi-range/src/BsMultiRange.vue
|
|
5
|
+
var c = /* @__PURE__ */ t({
|
|
6
|
+
inheritAttrs: !1,
|
|
7
|
+
__name: "BsMultiRange",
|
|
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.value = e ?? []);
|
|
16
|
+
};
|
|
17
|
+
r(() => u(c.value)), s(c, u, { deep: !0 });
|
|
18
|
+
function d(e) {
|
|
19
|
+
let t = e.detail;
|
|
20
|
+
Array.isArray(t) && (c.value = [...t]);
|
|
21
|
+
}
|
|
22
|
+
return (t, r) => (i(), e("mp-multi-range", n({
|
|
23
|
+
ref_key: "el",
|
|
24
|
+
ref: l
|
|
25
|
+
}, t.$attrs, { onValueChange: d }), null, 16));
|
|
26
|
+
}
|
|
25
27
|
});
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
};
|
|
28
|
+
//#endregion
|
|
29
|
+
export { c as BsMultiRange };
|
package/navbar/index.mjs
CHANGED
|
@@ -1,82 +1,79 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createElementBlock as e, createElementVNode as t, defineComponent as n, mergeProps as r, onBeforeUnmount as i, onMounted as a, openBlock as o, ref as s, renderSlot as c } from "vue";
|
|
2
2
|
import "@mintplayer/web-components/navbar";
|
|
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
|
-
|
|
3
|
+
//#region libs/mintplayer-vue-bootstrap/navbar/src/BsNavbar.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var l = [
|
|
5
|
+
"breakpoint",
|
|
6
|
+
"color",
|
|
7
|
+
"expanded",
|
|
8
|
+
"positioning"
|
|
9
|
+
], u = /* @__PURE__ */ n({
|
|
10
|
+
inheritAttrs: !1,
|
|
11
|
+
__name: "BsNavbar",
|
|
12
|
+
props: {
|
|
13
|
+
breakpoint: { default: "md" },
|
|
14
|
+
color: {},
|
|
15
|
+
expanded: { type: Boolean },
|
|
16
|
+
positioning: {}
|
|
17
|
+
},
|
|
18
|
+
emits: ["expandedchange"],
|
|
19
|
+
setup(t, { emit: n }) {
|
|
20
|
+
let u = n, d = s(null);
|
|
21
|
+
function f(e) {
|
|
22
|
+
u("expandedchange", e.detail);
|
|
23
|
+
}
|
|
24
|
+
return a(() => d.value?.addEventListener("expandedchange", f)), i(() => d.value?.removeEventListener("expandedchange", f)), (n, i) => (o(), e("mp-navbar", r({
|
|
25
|
+
ref_key: "el",
|
|
26
|
+
ref: d
|
|
27
|
+
}, n.$attrs, {
|
|
28
|
+
breakpoint: t.breakpoint,
|
|
29
|
+
color: t.color,
|
|
30
|
+
expanded: t.expanded ? "" : void 0,
|
|
31
|
+
positioning: t.positioning
|
|
32
|
+
}), [c(n.$slots, "default")], 16, l));
|
|
33
|
+
}
|
|
34
|
+
}), d = ["active", "disabled"], f = /* @__PURE__ */ n({
|
|
35
|
+
inheritAttrs: !1,
|
|
36
|
+
__name: "BsNavbarItem",
|
|
37
|
+
props: {
|
|
38
|
+
active: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: !1
|
|
41
|
+
},
|
|
42
|
+
disabled: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
default: !1
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
setup(t) {
|
|
48
|
+
let n = s(null);
|
|
49
|
+
return (i, a) => (o(), e("mp-navbar-item", r({
|
|
50
|
+
ref_key: "el",
|
|
51
|
+
ref: n
|
|
52
|
+
}, i.$attrs, {
|
|
53
|
+
active: t.active ? "" : void 0,
|
|
54
|
+
disabled: t.disabled ? "" : void 0
|
|
55
|
+
}), [c(i.$slots, "default")], 16, d));
|
|
56
|
+
}
|
|
57
|
+
}), p = /* @__PURE__ */ n({
|
|
58
|
+
inheritAttrs: !1,
|
|
59
|
+
__name: "BsNavbarBrand",
|
|
60
|
+
setup(t) {
|
|
61
|
+
let n = s(null);
|
|
62
|
+
return (t, i) => (o(), e("mp-navbar-brand", r({
|
|
63
|
+
ref_key: "el",
|
|
64
|
+
ref: n
|
|
65
|
+
}, t.$attrs), [c(t.$slots, "default")], 16));
|
|
66
|
+
}
|
|
67
|
+
}), m = { slot: "label" }, h = /* @__PURE__ */ n({
|
|
68
|
+
inheritAttrs: !1,
|
|
69
|
+
__name: "BsNavbarDropdown",
|
|
70
|
+
setup(n) {
|
|
71
|
+
let i = s(null);
|
|
72
|
+
return (n, a) => (o(), e("mp-navbar-dropdown", r({
|
|
73
|
+
ref_key: "el",
|
|
74
|
+
ref: i
|
|
75
|
+
}, n.$attrs), [t("span", m, [c(n.$slots, "label")]), c(n.$slots, "default")], 16));
|
|
76
|
+
}
|
|
76
77
|
});
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
N as BsNavbarBrand,
|
|
80
|
-
y as BsNavbarDropdown,
|
|
81
|
-
k as BsNavbarItem
|
|
82
|
-
};
|
|
78
|
+
//#endregion
|
|
79
|
+
export { u as BsNavbar, p as BsNavbarBrand, h as BsNavbarDropdown, f as BsNavbarItem };
|
package/otp-input/index.mjs
CHANGED
|
@@ -1,28 +1,29 @@
|
|
|
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/otp-input";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region libs/mintplayer-vue-bootstrap/otp-input/src/BsOtpInput.vue
|
|
5
|
+
var c = /* @__PURE__ */ t({
|
|
6
|
+
inheritAttrs: !1,
|
|
7
|
+
__name: "BsOtpInput",
|
|
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.value = e ?? "");
|
|
16
|
+
};
|
|
17
|
+
r(() => u(c.value)), s(c, u);
|
|
18
|
+
function d(e) {
|
|
19
|
+
let t = e.detail;
|
|
20
|
+
c.value = typeof t == "string" ? t : "";
|
|
21
|
+
}
|
|
22
|
+
return (t, r) => (i(), e("mp-otp-input", n({
|
|
23
|
+
ref_key: "el",
|
|
24
|
+
ref: l
|
|
25
|
+
}, t.$attrs, { onValueChange: d }), null, 16));
|
|
26
|
+
}
|
|
25
27
|
});
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
};
|
|
28
|
+
//#endregion
|
|
29
|
+
export { c as BsOtpInput };
|