@mintplayer/vue-bootstrap 3.9.0 → 3.11.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/card/index.mjs +2 -2
- package/carousel/index.mjs +13 -15
- package/carousel/src/BsCarousel.vue.d.ts +0 -2
- 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 +1 -1
- 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/scheduler/index.mjs +27 -22
- package/scheduler/src/BsScheduler.vue.d.ts +5 -1
- 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/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({
|
package/carousel/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as c, useModel as p, ref as E, onMounted as h, onBeforeUnmount as y, openBlock as
|
|
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
2
|
import "@mintplayer/web-components/carousel";
|
|
3
|
-
const
|
|
3
|
+
const k = ["animation", "orientation", "indicators", "interval", "wrap", "keyboard-events", "paused"], C = {
|
|
4
4
|
key: 0,
|
|
5
5
|
slot: "play-pause"
|
|
6
6
|
}, w = /* @__PURE__ */ c({
|
|
@@ -12,8 +12,7 @@ const B = ["animation", "orientation", "indicators", "interval", "wrap", "keyboa
|
|
|
12
12
|
indicators: { type: Boolean },
|
|
13
13
|
interval: {},
|
|
14
14
|
wrap: { type: Boolean, default: !0 },
|
|
15
|
-
keyboardEvents: { type: Boolean, default: !0 }
|
|
16
|
-
ariaLabel: {}
|
|
15
|
+
keyboardEvents: { type: Boolean, default: !0 }
|
|
17
16
|
}, {
|
|
18
17
|
paused: { type: Boolean, default: !1 },
|
|
19
18
|
pausedModifiers: {}
|
|
@@ -24,20 +23,20 @@ const B = ["animation", "orientation", "indicators", "interval", "wrap", "keyboa
|
|
|
24
23
|
function o(n) {
|
|
25
24
|
t("slideChange", n.detail);
|
|
26
25
|
}
|
|
27
|
-
function
|
|
26
|
+
function s(n) {
|
|
28
27
|
i.value = n.detail.paused;
|
|
29
28
|
}
|
|
30
|
-
function
|
|
29
|
+
function r() {
|
|
31
30
|
t("animationStart");
|
|
32
31
|
}
|
|
33
|
-
function
|
|
32
|
+
function d() {
|
|
34
33
|
t("animationEnd");
|
|
35
34
|
}
|
|
36
35
|
return h(() => {
|
|
37
|
-
a.value?.addEventListener("slide-change", o), a.value?.addEventListener("paused-change",
|
|
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);
|
|
38
37
|
}), y(() => {
|
|
39
|
-
a.value?.removeEventListener("slide-change", o), a.value?.removeEventListener("paused-change",
|
|
40
|
-
}), (n,
|
|
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({
|
|
41
40
|
ref_key: "el",
|
|
42
41
|
ref: a
|
|
43
42
|
}, n.$attrs, {
|
|
@@ -47,14 +46,13 @@ const B = ["animation", "orientation", "indicators", "interval", "wrap", "keyboa
|
|
|
47
46
|
interval: e.interval && e.interval > 0 ? e.interval : void 0,
|
|
48
47
|
wrap: e.wrap === !1 ? "false" : void 0,
|
|
49
48
|
"keyboard-events": e.keyboardEvents === !1 ? "false" : void 0,
|
|
50
|
-
paused: i.value ? "" : void 0
|
|
51
|
-
"aria-label": e.ariaLabel
|
|
49
|
+
paused: i.value ? "" : void 0
|
|
52
50
|
}), [
|
|
53
51
|
v(n.$slots, "default"),
|
|
54
|
-
n.$slots["play-pause"] ? (
|
|
52
|
+
n.$slots["play-pause"] ? (l(), u("span", C, [
|
|
55
53
|
v(n.$slots, "play-pause")
|
|
56
|
-
])) :
|
|
57
|
-
], 16,
|
|
54
|
+
])) : B("", !0)
|
|
55
|
+
], 16, k));
|
|
58
56
|
}
|
|
59
57
|
});
|
|
60
58
|
export {
|
|
@@ -10,8 +10,6 @@ type __VLS_Props = {
|
|
|
10
10
|
wrap?: boolean;
|
|
11
11
|
/** Arrow/Home/End navigation on the focused viewport. */
|
|
12
12
|
keyboardEvents?: boolean;
|
|
13
|
-
/** Accessible label for the carousel region. */
|
|
14
|
-
ariaLabel?: string;
|
|
15
13
|
};
|
|
16
14
|
type __VLS_PublicProps = {
|
|
17
15
|
'paused'?: boolean;
|
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.11.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": {
|
|
@@ -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';
|
package/scheduler/index.mjs
CHANGED
|
@@ -1,36 +1,41 @@
|
|
|
1
|
-
import { MpScheduler as
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
const
|
|
1
|
+
import { MpScheduler as x } from "@mintplayer/web-components/scheduler";
|
|
2
|
+
import { defineComponent as f, useModel as v, ref as p, onMounted as m, watch as s, openBlock as w, createElementBlock as h, mergeProps as M, mergeModels as y } from "vue";
|
|
3
|
+
const g = /* @__PURE__ */ f({
|
|
4
4
|
inheritAttrs: !1,
|
|
5
5
|
__name: "BsScheduler",
|
|
6
|
-
props: /* @__PURE__ */
|
|
6
|
+
props: /* @__PURE__ */ y({
|
|
7
7
|
events: {},
|
|
8
|
-
resources: {}
|
|
8
|
+
resources: {},
|
|
9
|
+
options: {}
|
|
9
10
|
}, {
|
|
10
11
|
view: {},
|
|
11
|
-
viewModifiers: {}
|
|
12
|
+
viewModifiers: {},
|
|
13
|
+
date: {},
|
|
14
|
+
dateModifiers: {}
|
|
12
15
|
}),
|
|
13
|
-
emits: ["update:view"],
|
|
14
|
-
setup(
|
|
15
|
-
const e =
|
|
16
|
-
|
|
16
|
+
emits: ["update:view", "update:date"],
|
|
17
|
+
setup(u) {
|
|
18
|
+
const e = u, o = v(u, "view"), n = v(u, "date"), t = p(null), r = () => {
|
|
19
|
+
t.value && (e.events && (t.value.events = e.events), e.resources && (t.value.resources = e.resources), e.options && (t.value.options = e.options));
|
|
17
20
|
}, l = () => {
|
|
18
|
-
|
|
21
|
+
t.value && o.value && (t.value.view = o.value);
|
|
22
|
+
}, c = () => {
|
|
23
|
+
t.value && n.value && (t.value.date = n.value);
|
|
19
24
|
};
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}),
|
|
23
|
-
function i
|
|
24
|
-
const
|
|
25
|
-
|
|
25
|
+
m(() => {
|
|
26
|
+
r(), l(), c();
|
|
27
|
+
}), s(() => e.events, r), s(() => e.resources, r), s(() => e.options, r), s(o, l), s(n, c);
|
|
28
|
+
function d(i) {
|
|
29
|
+
const a = i.detail;
|
|
30
|
+
a && (o.value = a.view, n.value = a.date);
|
|
26
31
|
}
|
|
27
|
-
return (
|
|
32
|
+
return (i, a) => (w(), h("mp-scheduler", M({
|
|
28
33
|
ref_key: "el",
|
|
29
|
-
ref:
|
|
30
|
-
},
|
|
34
|
+
ref: t
|
|
35
|
+
}, i.$attrs, { onViewChange: d }), null, 16));
|
|
31
36
|
}
|
|
32
37
|
});
|
|
33
38
|
export {
|
|
34
|
-
|
|
35
|
-
|
|
39
|
+
g as BsScheduler,
|
|
40
|
+
x as MpScheduler
|
|
36
41
|
};
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
import { MpScheduler } from '@mintplayer/web-components/scheduler';
|
|
2
|
-
import { SchedulerEvent, Resource, ViewType } from '@mintplayer/web-components/scheduler-core';
|
|
2
|
+
import { SchedulerEvent, SchedulerOptions, Resource, ViewType } from '@mintplayer/web-components/scheduler-core';
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
events?: SchedulerEvent[];
|
|
5
5
|
resources?: Resource[];
|
|
6
|
+
options?: Partial<SchedulerOptions>;
|
|
6
7
|
};
|
|
7
8
|
type __VLS_PublicProps = {
|
|
8
9
|
'view'?: ViewType;
|
|
10
|
+
'date'?: Date;
|
|
9
11
|
} & __VLS_Props;
|
|
10
12
|
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
13
|
"update:view": (value: ViewType) => any;
|
|
14
|
+
"update:date": (value: Date) => any;
|
|
12
15
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
13
16
|
"onUpdate:view"?: ((value: ViewType) => any) | undefined;
|
|
17
|
+
"onUpdate:date"?: ((value: Date) => any) | undefined;
|
|
14
18
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
15
19
|
el: MpScheduler | null;
|
|
16
20
|
}, any>;
|
|
@@ -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;
|