@mintplayer/vue-bootstrap 3.9.0 → 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/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({
@@ -1,6 +1,6 @@
1
- import { defineComponent as c, useModel as p, ref as E, onMounted as h, onBeforeUnmount as y, openBlock as d, createElementBlock as u, mergeProps as g, renderSlot as v, createCommentVNode as L, mergeModels as m } from "vue";
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 B = ["animation", "orientation", "indicators", "interval", "wrap", "keyboard-events", "paused", "aria-label"], b = {
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 l(n) {
26
+ function s(n) {
28
27
  i.value = n.detail.paused;
29
28
  }
30
- function s() {
29
+ function r() {
31
30
  t("animationStart");
32
31
  }
33
- function r() {
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", l), a.value?.addEventListener("animation-start", s), a.value?.addEventListener("animation-end", r);
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", l), a.value?.removeEventListener("animation-start", s), a.value?.removeEventListener("animation-end", r);
40
- }), (n, k) => (d(), u("mp-carousel", g({
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"] ? (d(), u("span", b, [
52
+ n.$slots["play-pause"] ? (l(), u("span", C, [
55
53
  v(n.$slots, "play-pause")
56
- ])) : L("", !0)
57
- ], 16, B));
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;
@@ -1,31 +1,29 @@
1
- import { defineComponent as r, ref as c, onMounted as m, onBeforeUnmount as f, openBlock as l, createElementBlock as d, mergeProps as i, renderSlot as u, watch as p } from "vue";
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 h = ["mode", "max-height", "label-id"], $ = /* @__PURE__ */ r({
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 a = t, s = c(null);
12
+ const s = t, a = c(null);
14
13
  function n(o) {
15
- a("select", o.detail);
14
+ s("select", o.detail);
16
15
  }
17
- return m(() => s.value?.addEventListener("select", n)), f(() => s.value?.removeEventListener("select", n)), (o, _) => (l(), d("mp-dropdown-menu", i({
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: s
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, h));
24
+ ], 16, _));
27
25
  }
28
- }), v = ["aria-disabled"], b = /* @__PURE__ */ r({
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, a = c(null), s = () => {
38
- a.value && (a.value.value = t.value);
35
+ const t = e, s = c(null), a = () => {
36
+ s.value && (s.value.value = t.value);
39
37
  };
40
- return m(s), p(() => t.value, s), (n, o) => (l(), d("li", i({
38
+ return m(a), f(() => t.value, a), (n, o) => (l(), d("li", i({
41
39
  ref_key: "el",
42
- ref: a
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, v));
46
+ ], 16, h));
49
47
  }
50
- }), D = /* @__PURE__ */ r({
48
+ }), b = /* @__PURE__ */ r({
51
49
  inheritAttrs: !1,
52
50
  __name: "BsDropdownDivider",
53
51
  setup(e) {
54
- return (t, a) => (l(), d("li", i(t.$attrs, {
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, a) => (l(), d("li", i(t.$attrs, { class: "dropdown-header" }), [
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
- D as BsDropdownDivider,
67
+ b as BsDropdownDivider,
70
68
  g as BsDropdownHeader,
71
- b as BsDropdownItem,
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 i, createElementBlock as d, mergeProps as c, renderSlot as r, createElementVNode as u } from "vue";
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 b = ["breakpoint", "color", "aria-label", "expanded", "positioning"], g = /* @__PURE__ */ s({
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 p(o) {
15
+ function c(o) {
17
16
  e("expandedchange", o.detail);
18
17
  }
19
- return f(() => t.value?.addEventListener("expandedchange", p)), m(() => t.value?.removeEventListener("expandedchange", p)), (o, h) => (i(), d("mp-navbar", c({
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, b));
28
+ ], 16, v));
31
29
  }
32
- }), v = ["active", "disabled"], k = /* @__PURE__ */ s({
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) => (i(), d("mp-navbar-item", c({
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, v));
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) => (i(), d("mp-navbar-brand", c({
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) => (i(), d("mp-navbar-dropdown", c({
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.9.0",
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": {
@@ -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;
@@ -0,0 +1,2 @@
1
+ export { default as BsSignaturePad } from './BsSignaturePad.vue';
2
+ export type { Point, Signature, Stroke } from '@mintplayer/web-components/signature-pad';