@mintplayer/vue-bootstrap 3.8.1 → 3.10.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 +66 -0
- package/accordion/src/BsAccordion.vue.d.ts +13 -0
- package/accordion/src/BsAccordionItem.vue.d.ts +23 -0
- package/accordion/src/index.d.ts +3 -0
- package/card/index.mjs +2 -2
- package/carousel/index.mjs +60 -0
- package/carousel/src/BsCarousel.vue.d.ts +53 -0
- package/carousel/src/index.d.ts +2 -0
- package/dropdown-menu/index.mjs +20 -22
- package/dropdown-menu/src/BsDropdownMenu.vue.d.ts +0 -2
- package/navbar/index.mjs +10 -12
- package/navbar/src/BsNavbar.vue.d.ts +0 -2
- package/package.json +5 -2
- package/radio-group/index.mjs +30 -0
- package/radio-group/src/BsRadioGroup.vue.d.ts +29 -0
- package/radio-group/src/index.d.ts +1 -0
- package/signature-pad/index.mjs +27 -0
- package/signature-pad/src/BsSignaturePad.vue.d.ts +12 -0
- package/signature-pad/src/index.d.ts +2 -0
- package/tree-select/src/BsTreeSelect.vue.d.ts +1 -1
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { defineComponent as u, computed as i, openBlock as m, createElementBlock as h, Fragment as g, createElementVNode as d, renderSlot as p, mergeProps as v, useSlots as B, cloneVNode as T, createVNode as y } from "vue";
|
|
2
|
+
import "@mintplayer/web-components/accordion";
|
|
3
|
+
const $ = ["slot"], x = ["slot", "is-active", "disabled"], I = /* @__PURE__ */ u({
|
|
4
|
+
inheritAttrs: !1,
|
|
5
|
+
__name: "BsAccordionItem",
|
|
6
|
+
props: {
|
|
7
|
+
index: {},
|
|
8
|
+
isActive: { type: Boolean },
|
|
9
|
+
disabled: { type: Boolean }
|
|
10
|
+
},
|
|
11
|
+
setup(r) {
|
|
12
|
+
const s = r, a = i(() => s.index ?? 0), n = i(() => s.isActive ? "" : void 0), c = i(() => s.disabled ? "" : void 0);
|
|
13
|
+
return (o, l) => (m(), h(g, null, [
|
|
14
|
+
d("span", {
|
|
15
|
+
"accordion-header": "",
|
|
16
|
+
slot: `h${a.value}`
|
|
17
|
+
}, [
|
|
18
|
+
p(o.$slots, "header")
|
|
19
|
+
], 8, $),
|
|
20
|
+
d("mp-accordion-tab", v({
|
|
21
|
+
"accordion-tab": "",
|
|
22
|
+
slot: `c${a.value}`,
|
|
23
|
+
"is-active": n.value,
|
|
24
|
+
disabled: c.value
|
|
25
|
+
}, o.$attrs), [
|
|
26
|
+
p(o.$slots, "default")
|
|
27
|
+
], 16, x)
|
|
28
|
+
], 64));
|
|
29
|
+
}
|
|
30
|
+
}), N = ["multi", "highlight-active-tab"], E = /* @__PURE__ */ u({
|
|
31
|
+
inheritAttrs: !1,
|
|
32
|
+
__name: "BsAccordion",
|
|
33
|
+
props: {
|
|
34
|
+
multi: { type: Boolean },
|
|
35
|
+
highlightActiveTab: { type: Boolean }
|
|
36
|
+
},
|
|
37
|
+
emits: ["tabToggle"],
|
|
38
|
+
setup(r, { emit: s }) {
|
|
39
|
+
const a = r, n = s, c = B();
|
|
40
|
+
function o(t) {
|
|
41
|
+
return t.flatMap(
|
|
42
|
+
(e) => e.type === g && Array.isArray(e.children) ? o(e.children) : [e]
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
const l = i(() => {
|
|
46
|
+
let t = 0;
|
|
47
|
+
return o(c.default?.() ?? []).map(
|
|
48
|
+
(e) => e.type === I ? T(e, { index: t++ }) : e
|
|
49
|
+
);
|
|
50
|
+
}), A = () => l.value, b = i(() => a.multi ? "" : void 0), _ = i(() => a.highlightActiveTab ? "" : void 0);
|
|
51
|
+
function f(t) {
|
|
52
|
+
t.target === t.currentTarget && (t.stopPropagation(), n("tabToggle", t.detail));
|
|
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
|
+
}
|
|
62
|
+
});
|
|
63
|
+
export {
|
|
64
|
+
E as BsAccordion,
|
|
65
|
+
I as BsAccordionItem
|
|
66
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AccordionTabToggleDetail } from '@mintplayer/web-components/accordion';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** Allow several tabs to stay open at once (checkbox machine with JS off). */
|
|
4
|
+
multi?: boolean;
|
|
5
|
+
/** Paint the open header with the Bootstrap active background. */
|
|
6
|
+
highlightActiveTab?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
+
tabToggle: (detail: AccordionTabToggleDetail) => any;
|
|
10
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
+
onTabToggle?: ((detail: AccordionTabToggleDetail) => any) | undefined;
|
|
12
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
index?: number;
|
|
3
|
+
isActive?: boolean;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: {
|
|
9
|
+
header?(_: {}): any;
|
|
10
|
+
default?(_: {}): any;
|
|
11
|
+
};
|
|
12
|
+
refs: {};
|
|
13
|
+
rootEl: any;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
package/card/index.mjs
CHANGED
|
@@ -81,7 +81,7 @@ const T = /* @__PURE__ */ l({
|
|
|
81
81
|
d("img", n({
|
|
82
82
|
class: "card-img",
|
|
83
83
|
src: s.src,
|
|
84
|
-
alt: s.alt
|
|
84
|
+
alt: s.alt ?? ""
|
|
85
85
|
}, c.$attrs), null, 16, v),
|
|
86
86
|
d("div", y, [
|
|
87
87
|
o(c.$slots, "default")
|
|
@@ -90,7 +90,7 @@ const T = /* @__PURE__ */ l({
|
|
|
90
90
|
key: 1,
|
|
91
91
|
class: r.value,
|
|
92
92
|
src: s.src,
|
|
93
|
-
alt: s.alt
|
|
93
|
+
alt: s.alt ?? ""
|
|
94
94
|
}, c.$attrs), null, 16, g));
|
|
95
95
|
}
|
|
96
96
|
}), A = ["href"], E = /* @__PURE__ */ l({
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { defineComponent as c, useModel as p, ref as E, onMounted as h, onBeforeUnmount as y, openBlock as l, createElementBlock as u, mergeProps as g, renderSlot as v, createCommentVNode as B, mergeModels as m } from "vue";
|
|
2
|
+
import "@mintplayer/web-components/carousel";
|
|
3
|
+
const k = ["animation", "orientation", "indicators", "interval", "wrap", "keyboard-events", "paused"], C = {
|
|
4
|
+
key: 0,
|
|
5
|
+
slot: "play-pause"
|
|
6
|
+
}, w = /* @__PURE__ */ c({
|
|
7
|
+
inheritAttrs: !1,
|
|
8
|
+
__name: "BsCarousel",
|
|
9
|
+
props: /* @__PURE__ */ m({
|
|
10
|
+
animation: { default: "slide" },
|
|
11
|
+
orientation: { default: "horizontal" },
|
|
12
|
+
indicators: { type: Boolean },
|
|
13
|
+
interval: {},
|
|
14
|
+
wrap: { type: Boolean, default: !0 },
|
|
15
|
+
keyboardEvents: { type: Boolean, default: !0 }
|
|
16
|
+
}, {
|
|
17
|
+
paused: { type: Boolean, default: !1 },
|
|
18
|
+
pausedModifiers: {}
|
|
19
|
+
}),
|
|
20
|
+
emits: /* @__PURE__ */ m(["slideChange", "animationStart", "animationEnd"], ["update:paused"]),
|
|
21
|
+
setup(e, { emit: f }) {
|
|
22
|
+
const i = p(e, "paused"), t = f, a = E(null);
|
|
23
|
+
function o(n) {
|
|
24
|
+
t("slideChange", n.detail);
|
|
25
|
+
}
|
|
26
|
+
function s(n) {
|
|
27
|
+
i.value = n.detail.paused;
|
|
28
|
+
}
|
|
29
|
+
function r() {
|
|
30
|
+
t("animationStart");
|
|
31
|
+
}
|
|
32
|
+
function d() {
|
|
33
|
+
t("animationEnd");
|
|
34
|
+
}
|
|
35
|
+
return h(() => {
|
|
36
|
+
a.value?.addEventListener("slide-change", o), a.value?.addEventListener("paused-change", s), a.value?.addEventListener("animation-start", r), a.value?.addEventListener("animation-end", d);
|
|
37
|
+
}), y(() => {
|
|
38
|
+
a.value?.removeEventListener("slide-change", o), a.value?.removeEventListener("paused-change", s), a.value?.removeEventListener("animation-start", r), a.value?.removeEventListener("animation-end", d);
|
|
39
|
+
}), (n, L) => (l(), u("mp-carousel", g({
|
|
40
|
+
ref_key: "el",
|
|
41
|
+
ref: a
|
|
42
|
+
}, n.$attrs, {
|
|
43
|
+
animation: e.animation,
|
|
44
|
+
orientation: e.orientation,
|
|
45
|
+
indicators: e.indicators ? "" : void 0,
|
|
46
|
+
interval: e.interval && e.interval > 0 ? e.interval : void 0,
|
|
47
|
+
wrap: e.wrap === !1 ? "false" : void 0,
|
|
48
|
+
"keyboard-events": e.keyboardEvents === !1 ? "false" : void 0,
|
|
49
|
+
paused: i.value ? "" : void 0
|
|
50
|
+
}), [
|
|
51
|
+
v(n.$slots, "default"),
|
|
52
|
+
n.$slots["play-pause"] ? (l(), u("span", C, [
|
|
53
|
+
v(n.$slots, "play-pause")
|
|
54
|
+
])) : B("", !0)
|
|
55
|
+
], 16, k));
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
export {
|
|
59
|
+
w as BsCarousel
|
|
60
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { CarouselAnimation, CarouselOrientation, CarouselSlideChangeEventDetail } from '@mintplayer/web-components/carousel';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
animation?: CarouselAnimation;
|
|
4
|
+
orientation?: CarouselOrientation;
|
|
5
|
+
/** Show the indicator dots. */
|
|
6
|
+
indicators?: boolean;
|
|
7
|
+
/** Auto-advance interval in ms; omit for no autoplay. */
|
|
8
|
+
interval?: number;
|
|
9
|
+
/** Wrap around at the ends. */
|
|
10
|
+
wrap?: boolean;
|
|
11
|
+
/** Arrow/Home/End navigation on the focused viewport. */
|
|
12
|
+
keyboardEvents?: boolean;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_PublicProps = {
|
|
15
|
+
'paused'?: boolean;
|
|
16
|
+
} & __VLS_Props;
|
|
17
|
+
declare function __VLS_template(): {
|
|
18
|
+
attrs: Partial<{}>;
|
|
19
|
+
slots: {
|
|
20
|
+
default?(_: {}): any;
|
|
21
|
+
'play-pause'?(_: {}): any;
|
|
22
|
+
};
|
|
23
|
+
refs: {
|
|
24
|
+
el: unknown;
|
|
25
|
+
};
|
|
26
|
+
rootEl: any;
|
|
27
|
+
};
|
|
28
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
29
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
30
|
+
slideChange: (detail: CarouselSlideChangeEventDetail) => any;
|
|
31
|
+
animationStart: () => any;
|
|
32
|
+
animationEnd: () => any;
|
|
33
|
+
"update:paused": (value: boolean) => any;
|
|
34
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
35
|
+
onSlideChange?: ((detail: CarouselSlideChangeEventDetail) => any) | undefined;
|
|
36
|
+
onAnimationStart?: (() => any) | undefined;
|
|
37
|
+
onAnimationEnd?: (() => any) | undefined;
|
|
38
|
+
"onUpdate:paused"?: ((value: boolean) => any) | undefined;
|
|
39
|
+
}>, {
|
|
40
|
+
orientation: CarouselOrientation;
|
|
41
|
+
wrap: boolean;
|
|
42
|
+
animation: CarouselAnimation;
|
|
43
|
+
keyboardEvents: boolean;
|
|
44
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
45
|
+
el: unknown;
|
|
46
|
+
}, any>;
|
|
47
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
48
|
+
export default _default;
|
|
49
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
50
|
+
new (): {
|
|
51
|
+
$slots: S;
|
|
52
|
+
};
|
|
53
|
+
};
|
package/dropdown-menu/index.mjs
CHANGED
|
@@ -1,31 +1,29 @@
|
|
|
1
|
-
import { defineComponent as r, ref as c, onMounted as m, onBeforeUnmount as
|
|
1
|
+
import { defineComponent as r, ref as c, onMounted as m, onBeforeUnmount as p, openBlock as l, createElementBlock as d, mergeProps as i, renderSlot as u, watch as f } from "vue";
|
|
2
2
|
import "@mintplayer/web-components/dropdown-menu";
|
|
3
|
-
const
|
|
3
|
+
const _ = ["mode", "max-height"], $ = /* @__PURE__ */ r({
|
|
4
4
|
inheritAttrs: !1,
|
|
5
5
|
__name: "BsDropdownMenu",
|
|
6
6
|
props: {
|
|
7
7
|
mode: { default: "menu" },
|
|
8
|
-
maxHeight: {}
|
|
9
|
-
labelId: {}
|
|
8
|
+
maxHeight: {}
|
|
10
9
|
},
|
|
11
10
|
emits: ["select"],
|
|
12
11
|
setup(e, { emit: t }) {
|
|
13
|
-
const
|
|
12
|
+
const s = t, a = c(null);
|
|
14
13
|
function n(o) {
|
|
15
|
-
|
|
14
|
+
s("select", o.detail);
|
|
16
15
|
}
|
|
17
|
-
return m(() =>
|
|
16
|
+
return m(() => a.value?.addEventListener("select", n)), p(() => a.value?.removeEventListener("select", n)), (o, v) => (l(), d("mp-dropdown-menu", i({
|
|
18
17
|
ref_key: "el",
|
|
19
|
-
ref:
|
|
18
|
+
ref: a
|
|
20
19
|
}, o.$attrs, {
|
|
21
20
|
mode: e.mode,
|
|
22
|
-
"max-height": e.maxHeight
|
|
23
|
-
"label-id": e.labelId
|
|
21
|
+
"max-height": e.maxHeight
|
|
24
22
|
}), [
|
|
25
23
|
u(o.$slots, "default")
|
|
26
|
-
], 16,
|
|
24
|
+
], 16, _));
|
|
27
25
|
}
|
|
28
|
-
}),
|
|
26
|
+
}), h = ["aria-disabled"], D = /* @__PURE__ */ r({
|
|
29
27
|
inheritAttrs: !1,
|
|
30
28
|
__name: "BsDropdownItem",
|
|
31
29
|
props: {
|
|
@@ -34,24 +32,24 @@ const h = ["mode", "max-height", "label-id"], $ = /* @__PURE__ */ r({
|
|
|
34
32
|
value: {}
|
|
35
33
|
},
|
|
36
34
|
setup(e) {
|
|
37
|
-
const t = e,
|
|
38
|
-
|
|
35
|
+
const t = e, s = c(null), a = () => {
|
|
36
|
+
s.value && (s.value.value = t.value);
|
|
39
37
|
};
|
|
40
|
-
return m(
|
|
38
|
+
return m(a), f(() => t.value, a), (n, o) => (l(), d("li", i({
|
|
41
39
|
ref_key: "el",
|
|
42
|
-
ref:
|
|
40
|
+
ref: s
|
|
43
41
|
}, n.$attrs, {
|
|
44
42
|
class: ["dropdown-item", { active: e.active, disabled: e.disabled }],
|
|
45
43
|
"aria-disabled": e.disabled ? "true" : void 0
|
|
46
44
|
}), [
|
|
47
45
|
u(n.$slots, "default")
|
|
48
|
-
], 16,
|
|
46
|
+
], 16, h));
|
|
49
47
|
}
|
|
50
|
-
}),
|
|
48
|
+
}), b = /* @__PURE__ */ r({
|
|
51
49
|
inheritAttrs: !1,
|
|
52
50
|
__name: "BsDropdownDivider",
|
|
53
51
|
setup(e) {
|
|
54
|
-
return (t,
|
|
52
|
+
return (t, s) => (l(), d("li", i(t.$attrs, {
|
|
55
53
|
role: "separator",
|
|
56
54
|
class: "dropdown-divider"
|
|
57
55
|
}), null, 16));
|
|
@@ -60,14 +58,14 @@ const h = ["mode", "max-height", "label-id"], $ = /* @__PURE__ */ r({
|
|
|
60
58
|
inheritAttrs: !1,
|
|
61
59
|
__name: "BsDropdownHeader",
|
|
62
60
|
setup(e) {
|
|
63
|
-
return (t,
|
|
61
|
+
return (t, s) => (l(), d("li", i(t.$attrs, { class: "dropdown-header" }), [
|
|
64
62
|
u(t.$slots, "default")
|
|
65
63
|
], 16));
|
|
66
64
|
}
|
|
67
65
|
});
|
|
68
66
|
export {
|
|
69
|
-
|
|
67
|
+
b as BsDropdownDivider,
|
|
70
68
|
g as BsDropdownHeader,
|
|
71
|
-
|
|
69
|
+
D as BsDropdownItem,
|
|
72
70
|
$ as BsDropdownMenu
|
|
73
71
|
};
|
|
@@ -4,8 +4,6 @@ type __VLS_Props = {
|
|
|
4
4
|
mode?: DropdownMode;
|
|
5
5
|
/** Max panel height in px before the item list scrolls. */
|
|
6
6
|
maxHeight?: number;
|
|
7
|
-
/** `id` of an external element that labels the menu (aria-labelledby). */
|
|
8
|
-
labelId?: string;
|
|
9
7
|
};
|
|
10
8
|
declare function __VLS_template(): {
|
|
11
9
|
attrs: Partial<{}>;
|
package/navbar/index.mjs
CHANGED
|
@@ -1,35 +1,33 @@
|
|
|
1
|
-
import { defineComponent as s, ref as l, onMounted as f, onBeforeUnmount as m, openBlock as
|
|
1
|
+
import { defineComponent as s, ref as l, onMounted as f, onBeforeUnmount as m, openBlock as d, createElementBlock as i, mergeProps as p, renderSlot as r, createElementVNode as u } from "vue";
|
|
2
2
|
import "@mintplayer/web-components/navbar";
|
|
3
|
-
const
|
|
3
|
+
const v = ["breakpoint", "color", "expanded", "positioning"], g = /* @__PURE__ */ s({
|
|
4
4
|
inheritAttrs: !1,
|
|
5
5
|
__name: "BsNavbar",
|
|
6
6
|
props: {
|
|
7
7
|
breakpoint: { default: "md" },
|
|
8
8
|
color: {},
|
|
9
9
|
expanded: { type: Boolean },
|
|
10
|
-
ariaLabel: {},
|
|
11
10
|
positioning: {}
|
|
12
11
|
},
|
|
13
12
|
emits: ["expandedchange"],
|
|
14
13
|
setup(a, { emit: n }) {
|
|
15
14
|
const e = n, t = l(null);
|
|
16
|
-
function
|
|
15
|
+
function c(o) {
|
|
17
16
|
e("expandedchange", o.detail);
|
|
18
17
|
}
|
|
19
|
-
return f(() => t.value?.addEventListener("expandedchange",
|
|
18
|
+
return f(() => t.value?.addEventListener("expandedchange", c)), m(() => t.value?.removeEventListener("expandedchange", c)), (o, h) => (d(), i("mp-navbar", p({
|
|
20
19
|
ref_key: "el",
|
|
21
20
|
ref: t
|
|
22
21
|
}, o.$attrs, {
|
|
23
22
|
breakpoint: a.breakpoint,
|
|
24
23
|
color: a.color,
|
|
25
|
-
"aria-label": a.ariaLabel,
|
|
26
24
|
expanded: a.expanded ? "" : void 0,
|
|
27
25
|
positioning: a.positioning
|
|
28
26
|
}), [
|
|
29
27
|
r(o.$slots, "default")
|
|
30
|
-
], 16,
|
|
28
|
+
], 16, v));
|
|
31
29
|
}
|
|
32
|
-
}),
|
|
30
|
+
}), b = ["active", "disabled"], k = /* @__PURE__ */ s({
|
|
33
31
|
inheritAttrs: !1,
|
|
34
32
|
__name: "BsNavbarItem",
|
|
35
33
|
props: {
|
|
@@ -38,7 +36,7 @@ const b = ["breakpoint", "color", "aria-label", "expanded", "positioning"], g =
|
|
|
38
36
|
},
|
|
39
37
|
setup(a) {
|
|
40
38
|
const n = l(null);
|
|
41
|
-
return (e, t) => (
|
|
39
|
+
return (e, t) => (d(), i("mp-navbar-item", p({
|
|
42
40
|
ref_key: "el",
|
|
43
41
|
ref: n
|
|
44
42
|
}, e.$attrs, {
|
|
@@ -46,14 +44,14 @@ const b = ["breakpoint", "color", "aria-label", "expanded", "positioning"], g =
|
|
|
46
44
|
disabled: a.disabled ? "" : void 0
|
|
47
45
|
}), [
|
|
48
46
|
r(e.$slots, "default")
|
|
49
|
-
], 16,
|
|
47
|
+
], 16, b));
|
|
50
48
|
}
|
|
51
49
|
}), N = /* @__PURE__ */ s({
|
|
52
50
|
inheritAttrs: !1,
|
|
53
51
|
__name: "BsNavbarBrand",
|
|
54
52
|
setup(a) {
|
|
55
53
|
const n = l(null);
|
|
56
|
-
return (e, t) => (
|
|
54
|
+
return (e, t) => (d(), i("mp-navbar-brand", p({
|
|
57
55
|
ref_key: "el",
|
|
58
56
|
ref: n
|
|
59
57
|
}, e.$attrs), [
|
|
@@ -65,7 +63,7 @@ const b = ["breakpoint", "color", "aria-label", "expanded", "positioning"], g =
|
|
|
65
63
|
__name: "BsNavbarDropdown",
|
|
66
64
|
setup(a) {
|
|
67
65
|
const n = l(null);
|
|
68
|
-
return (e, t) => (
|
|
66
|
+
return (e, t) => (d(), i("mp-navbar-dropdown", p({
|
|
69
67
|
ref_key: "el",
|
|
70
68
|
ref: n
|
|
71
69
|
}, e.$attrs), [
|
|
@@ -6,8 +6,6 @@ type __VLS_Props = {
|
|
|
6
6
|
color?: string;
|
|
7
7
|
/** Reflected open state of the collapsed menu (boolean attribute). */
|
|
8
8
|
expanded?: boolean;
|
|
9
|
-
/** Accessible label for the navbar landmark. */
|
|
10
|
-
ariaLabel?: string;
|
|
11
9
|
/** `fixed` pins the bar to the top of the viewport, full width; omit for in-flow. */
|
|
12
10
|
positioning?: 'fixed';
|
|
13
11
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mintplayer/vue-bootstrap",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.10.0",
|
|
4
4
|
"description": "Vue 3.5 SFC adapters around @mintplayer/web-components. Each sub-entry maps one-to-one with a WC sub-entry and exposes typed Vue components with v-model support for input WCs.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -14,7 +14,10 @@
|
|
|
14
14
|
"email": "info@mintplayer.com"
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
|
-
"sideEffects": [
|
|
17
|
+
"sideEffects": [
|
|
18
|
+
"**/src/index.{ts,js,mjs}",
|
|
19
|
+
"**/Bs*.vue"
|
|
20
|
+
],
|
|
18
21
|
"main": "./index.mjs",
|
|
19
22
|
"types": "./src/index.d.ts",
|
|
20
23
|
"exports": {
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { defineComponent as u, useModel as s, ref as d, onMounted as i, watch as m, openBlock as p, createElementBlock as c, mergeProps as f, renderSlot as v } from "vue";
|
|
2
|
+
import "@mintplayer/web-components/radio-group";
|
|
3
|
+
const B = /* @__PURE__ */ u({
|
|
4
|
+
inheritAttrs: !1,
|
|
5
|
+
__name: "BsRadioGroup",
|
|
6
|
+
props: {
|
|
7
|
+
modelValue: {},
|
|
8
|
+
modelModifiers: {}
|
|
9
|
+
},
|
|
10
|
+
emits: ["update:modelValue"],
|
|
11
|
+
setup(r) {
|
|
12
|
+
const o = s(r, "modelValue"), l = d(null), a = (e) => {
|
|
13
|
+
l.value && (l.value.value = e ?? null);
|
|
14
|
+
};
|
|
15
|
+
i(() => a(o.value)), m(o, a);
|
|
16
|
+
function n(e) {
|
|
17
|
+
const t = e.detail;
|
|
18
|
+
t && (o.value = t.value);
|
|
19
|
+
}
|
|
20
|
+
return (e, t) => (p(), c("mp-radio-group", f({
|
|
21
|
+
ref_key: "el",
|
|
22
|
+
ref: l
|
|
23
|
+
}, e.$attrs, { onGroupChange: n }), [
|
|
24
|
+
v(e.$slots, "default")
|
|
25
|
+
], 16));
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
export {
|
|
29
|
+
B as BsRadioGroup
|
|
30
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { MpRadioGroup } from '@mintplayer/web-components/radio-group';
|
|
2
|
+
type __VLS_PublicProps = {
|
|
3
|
+
modelValue?: string | null;
|
|
4
|
+
};
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
slots: {
|
|
8
|
+
default?(_: {}): any;
|
|
9
|
+
};
|
|
10
|
+
refs: {
|
|
11
|
+
el: MpRadioGroup | null;
|
|
12
|
+
};
|
|
13
|
+
rootEl: any;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
17
|
+
"update:modelValue": (value: string | null) => any;
|
|
18
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
19
|
+
"onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
|
|
20
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
21
|
+
el: MpRadioGroup | null;
|
|
22
|
+
}, any>;
|
|
23
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BsRadioGroup } from './BsRadioGroup.vue';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { defineComponent as r, useModel as s, ref as u, onMounted as i, watch as m, openBlock as d, createElementBlock as c, mergeProps as p } from "vue";
|
|
2
|
+
import "@mintplayer/web-components/signature-pad";
|
|
3
|
+
const h = /* @__PURE__ */ r({
|
|
4
|
+
inheritAttrs: !1,
|
|
5
|
+
__name: "BsSignaturePad",
|
|
6
|
+
props: {
|
|
7
|
+
modelValue: {},
|
|
8
|
+
modelModifiers: {}
|
|
9
|
+
},
|
|
10
|
+
emits: ["update:modelValue"],
|
|
11
|
+
setup(a) {
|
|
12
|
+
const t = s(a, "modelValue"), n = u(null), o = (e) => {
|
|
13
|
+
n.value && (n.value.signature = e ?? { strokes: [] });
|
|
14
|
+
};
|
|
15
|
+
i(() => o(t.value)), m(t, o);
|
|
16
|
+
function l(e) {
|
|
17
|
+
t.value = e.detail;
|
|
18
|
+
}
|
|
19
|
+
return (e, f) => (d(), c("mp-signature-pad", p({
|
|
20
|
+
ref_key: "el",
|
|
21
|
+
ref: n
|
|
22
|
+
}, e.$attrs, { onSignatureChange: l }), null, 16));
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
export {
|
|
26
|
+
h as BsSignaturePad
|
|
27
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Signature } from '@mintplayer/web-components/signature-pad';
|
|
2
|
+
type __VLS_PublicProps = {
|
|
3
|
+
modelValue?: Signature;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
+
"update:modelValue": (value: Signature) => any;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
8
|
+
"onUpdate:modelValue"?: ((value: Signature) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
10
|
+
el: unknown;
|
|
11
|
+
}, any>;
|
|
12
|
+
export default _default;
|
|
@@ -19,9 +19,9 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
19
19
|
"onUpdate:modelValue"?: ((value: TreeNode | TreeNode[] | null) => any) | undefined;
|
|
20
20
|
}>, {
|
|
21
21
|
disabled: boolean;
|
|
22
|
+
mode: TreeSelectMode;
|
|
22
23
|
placeholder: string;
|
|
23
24
|
showClear: boolean;
|
|
24
|
-
mode: TreeSelectMode;
|
|
25
25
|
variant: TreeSelectVariant;
|
|
26
26
|
cascadeSelect: boolean;
|
|
27
27
|
panelScrollHeight: string;
|