@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.
Files changed (52) hide show
  1. package/accordion/index.mjs +54 -64
  2. package/calendar/index.mjs +27 -28
  3. package/card/index.mjs +104 -145
  4. package/carousel/index.mjs +74 -58
  5. package/charts/hierarchy/index.mjs +44 -43
  6. package/charts/sparkline/index.mjs +25 -24
  7. package/charts/trend/index.mjs +25 -24
  8. package/checkbox/index.mjs +27 -28
  9. package/chunks/useMachine-DLZ7g_H3.mjs +14 -0
  10. package/code-snippet/index.mjs +34 -32
  11. package/datatable/index.mjs +84 -70
  12. package/datepicker/index.mjs +27 -28
  13. package/datetime-picker/index.mjs +27 -28
  14. package/dock/index.mjs +27 -28
  15. package/dropdown-menu/index.mjs +63 -69
  16. package/dropdown-menu/src/BsDropdownItem.vue.d.ts +1 -1
  17. package/dropdown-menu/src/BsDropdownMenu.vue.d.ts +2 -6
  18. package/dropdown-menu/src/index.d.ts +1 -1
  19. package/file-manager/index.mjs +18 -19
  20. package/index.mjs +0 -1
  21. package/input-group/index.mjs +11 -12
  22. package/machine/index.mjs +1 -0
  23. package/machine/src/index.d.ts +1 -0
  24. package/machine/src/useMachine.d.ts +13 -0
  25. package/machine/src/useMachine.spec.d.ts +1 -0
  26. package/multi-range/index.mjs +27 -26
  27. package/navbar/index.mjs +77 -80
  28. package/otp-input/index.mjs +27 -26
  29. package/package.json +11 -2
  30. package/pagination/index.mjs +27 -26
  31. package/phone-input/index.mjs +35 -34
  32. package/query-builder/index.mjs +45 -41
  33. package/radio/index.mjs +27 -28
  34. package/radio-group/index.mjs +27 -28
  35. package/ribbon/index.mjs +28 -47
  36. package/scheduler/index.mjs +45 -42
  37. package/select/index.mjs +33 -34
  38. package/shell/index.mjs +37 -33
  39. package/signature-pad/index.mjs +26 -25
  40. package/splitter/index.mjs +12 -14
  41. package/tab-control/index.mjs +28 -31
  42. package/theming/index.mjs +37 -55
  43. package/tile-manager/index.mjs +18 -21
  44. package/timeline/index.mjs +151 -146
  45. package/timepicker/index.mjs +49 -53
  46. package/toggle-button/index.mjs +27 -28
  47. package/tree-select/index.mjs +105 -97
  48. package/treeview/index.mjs +56 -55
  49. package/typeahead/index.mjs +119 -0
  50. package/typeahead/src/BsTypeahead.vue.d.ts +46 -0
  51. package/typeahead/src/index.d.ts +3 -0
  52. package/vue-bootstrap.css +2 -1
package/dock/index.mjs CHANGED
@@ -1,30 +1,29 @@
1
- import { defineComponent as u, useModel as s, ref as c, onMounted as i, watch as d, openBlock as f, createElementBlock as m, mergeProps as p, renderSlot as y } from "vue";
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
- const h = /* @__PURE__ */ u({
4
- inheritAttrs: !1,
5
- __name: "BsDockManager",
6
- props: {
7
- layout: {},
8
- layoutModifiers: {}
9
- },
10
- emits: ["update:layout"],
11
- setup(l) {
12
- const o = s(l, "layout"), t = c(null), n = (e) => {
13
- t.value && (t.value.layout = e ?? null);
14
- };
15
- i(() => n(o.value)), d(o, n);
16
- function r(e) {
17
- const a = e.detail;
18
- a && (o.value = a);
19
- }
20
- return (e, a) => (f(), m("mint-dock-manager", p({
21
- ref_key: "el",
22
- ref: t
23
- }, e.$attrs, { onDockLayoutChanged: r }), [
24
- y(e.$slots, "default")
25
- ], 16));
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
- export {
29
- h as BsDockManager
30
- };
28
+ //#endregion
29
+ export { l as BsDockManager };
@@ -1,71 +1,65 @@
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";
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
- const _ = ["mode", "max-height"], $ = /* @__PURE__ */ r({
4
- inheritAttrs: !1,
5
- __name: "BsDropdownMenu",
6
- props: {
7
- mode: { default: "menu" },
8
- maxHeight: {}
9
- },
10
- emits: ["select"],
11
- setup(e, { emit: t }) {
12
- const s = t, o = c(null);
13
- function a(n) {
14
- s("select", n.detail);
15
- }
16
- return m(() => o.value?.addEventListener("select", a)), p(() => o.value?.removeEventListener("select", a)), (n, v) => (l(), d("mp-dropdown-menu", i({
17
- ref_key: "el",
18
- ref: o
19
- }, n.$attrs, {
20
- mode: e.mode,
21
- "max-height": e.maxHeight
22
- }), [
23
- u(n.$slots, "default")
24
- ], 16, _));
25
- }
26
- }), h = ["aria-disabled"], D = /* @__PURE__ */ r({
27
- inheritAttrs: !1,
28
- __name: "BsDropdownItem",
29
- props: {
30
- active: { type: Boolean, default: !1 },
31
- disabled: { type: Boolean, default: !1 },
32
- value: {}
33
- },
34
- setup(e) {
35
- const t = e, s = c(null), o = () => {
36
- s.value && (s.value.dropdownValue = t.value);
37
- };
38
- return m(o), f(() => t.value, o), (a, n) => (l(), d("li", i({
39
- ref_key: "el",
40
- ref: s
41
- }, a.$attrs, {
42
- class: ["dropdown-item", { active: e.active, disabled: e.disabled }],
43
- "aria-disabled": e.disabled ? "true" : void 0
44
- }), [
45
- u(a.$slots, "default")
46
- ], 16, h));
47
- }
48
- }), b = /* @__PURE__ */ r({
49
- inheritAttrs: !1,
50
- __name: "BsDropdownDivider",
51
- setup(e) {
52
- return (t, s) => (l(), d("li", i(t.$attrs, {
53
- role: "separator",
54
- class: "dropdown-divider"
55
- }), null, 16));
56
- }
57
- }), g = /* @__PURE__ */ r({
58
- inheritAttrs: !1,
59
- __name: "BsDropdownHeader",
60
- setup(e) {
61
- return (t, s) => (l(), d("li", i(t.$attrs, { class: "dropdown-header" }), [
62
- u(t.$slots, "default")
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
- export {
67
- b as BsDropdownDivider,
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,5 +1,5 @@
1
1
  type __VLS_Props = {
2
- /** Bootstrap `.active` appearance (also drives `aria-selected` in a listbox). */
2
+ /** Bootstrap `.active` appearance. */
3
3
  active?: boolean;
4
4
  /** Non-interactive; removed from the menu's roving order. */
5
5
  disabled?: boolean;
@@ -1,7 +1,5 @@
1
- import { DropdownMode, DropdownSelectEventDetail } from '@mintplayer/web-components/dropdown-menu';
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 { DropdownMode, DropdownSelectEventDetail } from '@mintplayer/web-components/dropdown-menu';
5
+ export type { DropdownSelectEventDetail } from '@mintplayer/web-components/dropdown-menu';
@@ -1,21 +1,20 @@
1
- import { defineComponent as t, ref as a, onMounted as l, watch as p, openBlock as c, createElementBlock as i, mergeProps as m } from "vue";
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
- const _ = /* @__PURE__ */ t({
4
- inheritAttrs: !1,
5
- __name: "BsFileManager",
6
- props: {
7
- nodes: {}
8
- },
9
- setup(o) {
10
- const n = o, e = a(null), r = () => {
11
- e.value && (e.value.nodes = n.nodes ?? []);
12
- };
13
- return l(r), p(() => n.nodes, r, { deep: !0 }), (s, f) => (c(), i("mp-file-manager", m({
14
- ref_key: "el",
15
- ref: e
16
- }, s.$attrs), null, 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
- export {
20
- _ as BsFileManager
21
- };
19
+ //#endregion
20
+ export { s as BsFileManager };
package/index.mjs CHANGED
@@ -1 +0,0 @@
1
-
@@ -1,14 +1,13 @@
1
- import { defineComponent as r, openBlock as t, createElementBlock as o, normalizeProps as p, guardReactiveProps as n, renderSlot as s } from "vue";
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
- const l = /* @__PURE__ */ r({
4
- inheritAttrs: !1,
5
- __name: "BsInputGroup",
6
- setup(a) {
7
- return (e, u) => (t(), o("mp-input-group", p(n(e.$attrs)), [
8
- s(e.$slots, "default")
9
- ], 16));
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
- export {
13
- l as BsInputGroup
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 {};
@@ -1,28 +1,29 @@
1
- import { defineComponent as u, useModel as s, ref as i, onMounted as m, watch as c, openBlock as d, createElementBlock as p, mergeProps as f } from "vue";
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
- const v = /* @__PURE__ */ u({
4
- inheritAttrs: !1,
5
- __name: "BsMultiRange",
6
- props: {
7
- modelValue: {},
8
- modelModifiers: {}
9
- },
10
- emits: ["update:modelValue"],
11
- setup(n) {
12
- const l = s(n, "modelValue"), t = i(null), a = (e) => {
13
- t.value && (t.value.value = e ?? []);
14
- };
15
- m(() => a(l.value)), c(l, a, { deep: !0 });
16
- function r(e) {
17
- const o = e.detail;
18
- Array.isArray(o) && (l.value = [...o]);
19
- }
20
- return (e, o) => (d(), p("mp-multi-range", f({
21
- ref_key: "el",
22
- ref: t
23
- }, e.$attrs, { onValueChange: r }), null, 16));
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
- export {
27
- v as BsMultiRange
28
- };
28
+ //#endregion
29
+ export { c as BsMultiRange };
package/navbar/index.mjs CHANGED
@@ -1,82 +1,79 @@
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";
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
- const v = ["breakpoint", "color", "expanded", "positioning"], g = /* @__PURE__ */ s({
4
- inheritAttrs: !1,
5
- __name: "BsNavbar",
6
- props: {
7
- breakpoint: { default: "md" },
8
- color: {},
9
- expanded: { type: Boolean },
10
- positioning: {}
11
- },
12
- emits: ["expandedchange"],
13
- setup(a, { emit: n }) {
14
- const e = n, t = l(null);
15
- function c(o) {
16
- e("expandedchange", o.detail);
17
- }
18
- return f(() => t.value?.addEventListener("expandedchange", c)), m(() => t.value?.removeEventListener("expandedchange", c)), (o, h) => (d(), i("mp-navbar", p({
19
- ref_key: "el",
20
- ref: t
21
- }, o.$attrs, {
22
- breakpoint: a.breakpoint,
23
- color: a.color,
24
- expanded: a.expanded ? "" : void 0,
25
- positioning: a.positioning
26
- }), [
27
- r(o.$slots, "default")
28
- ], 16, v));
29
- }
30
- }), b = ["active", "disabled"], k = /* @__PURE__ */ s({
31
- inheritAttrs: !1,
32
- __name: "BsNavbarItem",
33
- props: {
34
- active: { type: Boolean, default: !1 },
35
- disabled: { type: Boolean, default: !1 }
36
- },
37
- setup(a) {
38
- const n = l(null);
39
- return (e, t) => (d(), i("mp-navbar-item", p({
40
- ref_key: "el",
41
- ref: n
42
- }, e.$attrs, {
43
- active: a.active ? "" : void 0,
44
- disabled: a.disabled ? "" : void 0
45
- }), [
46
- r(e.$slots, "default")
47
- ], 16, b));
48
- }
49
- }), N = /* @__PURE__ */ s({
50
- inheritAttrs: !1,
51
- __name: "BsNavbarBrand",
52
- setup(a) {
53
- const n = l(null);
54
- return (e, t) => (d(), i("mp-navbar-brand", p({
55
- ref_key: "el",
56
- ref: n
57
- }, e.$attrs), [
58
- r(e.$slots, "default")
59
- ], 16));
60
- }
61
- }), _ = { slot: "label" }, y = /* @__PURE__ */ s({
62
- inheritAttrs: !1,
63
- __name: "BsNavbarDropdown",
64
- setup(a) {
65
- const n = l(null);
66
- return (e, t) => (d(), i("mp-navbar-dropdown", p({
67
- ref_key: "el",
68
- ref: n
69
- }, e.$attrs), [
70
- u("span", _, [
71
- r(e.$slots, "label")
72
- ]),
73
- r(e.$slots, "default")
74
- ], 16));
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
- export {
78
- g as BsNavbar,
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 };
@@ -1,28 +1,29 @@
1
- import { defineComponent as r, useModel as s, ref as p, onMounted as i, watch as m, openBlock as c, createElementBlock as d, mergeProps as f } from "vue";
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
- const V = /* @__PURE__ */ r({
4
- inheritAttrs: !1,
5
- __name: "BsOtpInput",
6
- props: {
7
- modelValue: {},
8
- modelModifiers: {}
9
- },
10
- emits: ["update:modelValue"],
11
- setup(a) {
12
- const t = s(a, "modelValue"), o = p(null), n = (e) => {
13
- o.value && (o.value.value = e ?? "");
14
- };
15
- i(() => n(t.value)), m(t, n);
16
- function u(e) {
17
- const l = e.detail;
18
- t.value = typeof l == "string" ? l : "";
19
- }
20
- return (e, l) => (c(), d("mp-otp-input", f({
21
- ref_key: "el",
22
- ref: o
23
- }, e.$attrs, { onValueChange: u }), null, 16));
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
- export {
27
- V as BsOtpInput
28
- };
28
+ //#endregion
29
+ export { c as BsOtpInput };