@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/shell/index.mjs CHANGED
@@ -1,35 +1,39 @@
1
- import { defineComponent as i, ref as l, onMounted as r, onBeforeUnmount as m, openBlock as g, createElementBlock as d, mergeProps as c, renderSlot as u } 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 } from "vue";
2
2
  import "@mintplayer/web-components/shell";
3
- const f = ["state", "breakpoint", "size", "external-toggle", "dismiss-on-navigate"], k = /* @__PURE__ */ i({
4
- inheritAttrs: !1,
5
- __name: "BsShell",
6
- props: {
7
- state: { default: "auto" },
8
- breakpoint: { default: "md" },
9
- size: {},
10
- externalToggle: { type: Boolean },
11
- dismissOnNavigate: { type: Boolean }
12
- },
13
- emits: ["statechange"],
14
- setup(e, { emit: s }) {
15
- const o = s, n = l(null);
16
- function a(t) {
17
- o("statechange", t.detail);
18
- }
19
- return r(() => n.value?.addEventListener("statechange", a)), m(() => n.value?.removeEventListener("statechange", a)), (t, h) => (g(), d("mp-shell", c({
20
- ref_key: "el",
21
- ref: n
22
- }, t.$attrs, {
23
- state: e.state,
24
- breakpoint: e.breakpoint,
25
- size: e.size,
26
- "external-toggle": e.externalToggle ? "" : void 0,
27
- "dismiss-on-navigate": e.dismissOnNavigate ? "" : void 0
28
- }), [
29
- u(t.$slots, "default")
30
- ], 16, f));
31
- }
3
+ //#region libs/mintplayer-vue-bootstrap/shell/src/BsShell.vue?vue&type=script&setup=true&lang.ts
4
+ var c = [
5
+ "state",
6
+ "breakpoint",
7
+ "size",
8
+ "external-toggle",
9
+ "dismiss-on-navigate"
10
+ ], l = /* @__PURE__ */ t({
11
+ inheritAttrs: !1,
12
+ __name: "BsShell",
13
+ props: {
14
+ state: { default: "auto" },
15
+ breakpoint: { default: "md" },
16
+ size: {},
17
+ externalToggle: { type: Boolean },
18
+ dismissOnNavigate: { type: Boolean }
19
+ },
20
+ emits: ["statechange"],
21
+ setup(t, { emit: l }) {
22
+ let u = l, d = o(null);
23
+ function f(e) {
24
+ u("statechange", e.detail);
25
+ }
26
+ return i(() => d.value?.addEventListener("statechange", f)), r(() => d.value?.removeEventListener("statechange", f)), (r, i) => (a(), e("mp-shell", n({
27
+ ref_key: "el",
28
+ ref: d
29
+ }, r.$attrs, {
30
+ state: t.state,
31
+ breakpoint: t.breakpoint,
32
+ size: t.size,
33
+ "external-toggle": t.externalToggle ? "" : void 0,
34
+ "dismiss-on-navigate": t.dismissOnNavigate ? "" : void 0
35
+ }), [s(r.$slots, "default")], 16, c));
36
+ }
32
37
  });
33
- export {
34
- k as BsShell
35
- };
38
+ //#endregion
39
+ export { l as BsShell };
@@ -1,27 +1,28 @@
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";
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/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
- }
3
+ //#endregion
4
+ //#region libs/mintplayer-vue-bootstrap/signature-pad/src/BsSignaturePad.vue
5
+ var c = /* @__PURE__ */ t({
6
+ inheritAttrs: !1,
7
+ __name: "BsSignaturePad",
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.signature = e ?? { strokes: [] });
16
+ };
17
+ r(() => u(c.value)), s(c, u);
18
+ function d(e) {
19
+ c.value = e.detail;
20
+ }
21
+ return (t, r) => (i(), e("mp-signature-pad", n({
22
+ ref_key: "el",
23
+ ref: l
24
+ }, t.$attrs, { onSignatureChange: d }), null, 16));
25
+ }
24
26
  });
25
- export {
26
- h as BsSignaturePad
27
- };
27
+ //#endregion
28
+ export { c as BsSignaturePad };
@@ -1,15 +1,13 @@
1
- import { MpSplitter as _ } from "@mintplayer/web-components/splitter";
2
- import { defineComponent as t, openBlock as r, createElementBlock as o, normalizeProps as p, guardReactiveProps as s, renderSlot as n } from "vue";
3
- const m = /* @__PURE__ */ t({
4
- inheritAttrs: !1,
5
- __name: "BsSplitter",
6
- setup(l) {
7
- return (e, a) => (r(), o("mp-splitter", p(s(e.$attrs)), [
8
- n(e.$slots, "default")
9
- ], 16));
10
- }
1
+ import { createElementBlock as e, defineComponent as t, guardReactiveProps as n, normalizeProps as r, openBlock as i, renderSlot as a } from "vue";
2
+ import { MpSplitter as o } from "@mintplayer/web-components/splitter";
3
+ //#endregion
4
+ //#region libs/mintplayer-vue-bootstrap/splitter/src/BsSplitter.vue
5
+ var s = /* @__PURE__ */ t({
6
+ inheritAttrs: !1,
7
+ __name: "BsSplitter",
8
+ setup(t) {
9
+ return (t, o) => (i(), e("mp-splitter", r(n(t.$attrs)), [a(t.$slots, "default")], 16));
10
+ }
11
11
  });
12
- export {
13
- m as BsSplitter,
14
- _ as MpSplitter
15
- };
12
+ //#endregion
13
+ export { s as BsSplitter, o as MpSplitter };
@@ -1,32 +1,29 @@
1
- import { MpTabControl as B, MpTabPage as C } from "@mintplayer/web-components/tab-control";
2
- import { defineComponent as s, useModel as u, ref as i, onMounted as c, watch as d, openBlock as m, createElementBlock as f, mergeProps as p, renderSlot as b } from "vue";
3
- const T = /* @__PURE__ */ s({
4
- inheritAttrs: !1,
5
- __name: "BsTabControl",
6
- props: {
7
- modelValue: {},
8
- modelModifiers: {}
9
- },
10
- emits: ["update:modelValue"],
11
- setup(n) {
12
- const t = u(n, "modelValue"), o = i(null), a = (e) => {
13
- o.value && e !== void 0 && o.value.setAttribute("active-tab", e);
14
- };
15
- c(() => a(t.value)), d(t, a);
16
- function r(e) {
17
- const l = e.detail;
18
- l && (t.value = l.tabId);
19
- }
20
- return (e, l) => (m(), f("mp-tab-control", p({
21
- ref_key: "el",
22
- ref: o
23
- }, e.$attrs, { onTabActivate: r }), [
24
- b(e.$slots, "default")
25
- ], 16));
26
- }
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
+ import { MpTabControl as l, MpTabPage as u } from "@mintplayer/web-components/tab-control";
3
+ //#endregion
4
+ //#region libs/mintplayer-vue-bootstrap/tab-control/src/BsTabControl.vue
5
+ var d = /* @__PURE__ */ t({
6
+ inheritAttrs: !1,
7
+ __name: "BsTabControl",
8
+ props: {
9
+ modelValue: {},
10
+ modelModifiers: {}
11
+ },
12
+ emits: ["update:modelValue"],
13
+ setup(t) {
14
+ let l = s(t, "modelValue"), u = a(null), d = (e) => {
15
+ u.value && e !== void 0 && u.value.setAttribute("active-tab", e);
16
+ };
17
+ r(() => d(l.value)), c(l, d);
18
+ function f(e) {
19
+ let t = e.detail;
20
+ t && (l.value = t.tabId);
21
+ }
22
+ return (t, r) => (i(), e("mp-tab-control", n({
23
+ ref_key: "el",
24
+ ref: u
25
+ }, t.$attrs, { onTabActivate: f }), [o(t.$slots, "default")], 16));
26
+ }
27
27
  });
28
- export {
29
- T as BsTabControl,
30
- B as MpTabControl,
31
- C as MpTabPage
32
- };
28
+ //#endregion
29
+ export { d as BsTabControl, l as MpTabControl, u as MpTabPage };
package/theming/index.mjs CHANGED
@@ -1,57 +1,39 @@
1
- import { defineComponent as u, ref as a, onMounted as f, watch as M, openBlock as T, createElementBlock as p, mergeProps as _, shallowRef as i, getCurrentScope as E, onScopeDispose as h, getCurrentInstance as g, readonly as l } from "vue";
2
- import { BS_THEME_DEFAULT_MODES as B, resolveMode as v, getBsThemeStore as m } from "@mintplayer/web-components/theming";
3
- import { BS_THEME_COOKIE_NAME as y, BS_THEME_DEFAULT_MODES as O, BS_THEME_DEFAULT_MODE_META as H, configureBsTheme as F, getBsThemeStore as L, injectThemeAttribute as U, isValidThemeMode as x, readDefaultModeMeta as I, readThemeCookie as j, resolveMode as K, resolveServerTheme as N, writeThemeCookie as P } from "@mintplayer/web-components/theming";
4
- const w = /* @__PURE__ */ u({
5
- inheritAttrs: !1,
6
- __name: "BsThemeToggle",
7
- props: {
8
- modes: {}
9
- },
10
- setup(o) {
11
- const s = o, e = a(null), t = () => {
12
- e.value && (e.value.modes = s.modes ?? B);
13
- };
14
- return f(t), M(() => s.modes, t), (r, n) => (T(), p("mp-theme-toggle", _({
15
- ref_key: "el",
16
- ref: e
17
- }, r.$attrs), null, 16));
18
- }
19
- }), d = () => typeof window < "u", S = (o) => {
20
- d() && m().setMode(o);
1
+ import { createElementBlock as e, defineComponent as t, getCurrentInstance as n, getCurrentScope as r, mergeProps as i, onMounted as a, onScopeDispose as o, openBlock as s, readonly as c, ref as l, shallowRef as u, watch as d } from "vue";
2
+ import { BS_THEME_COOKIE_NAME as f, BS_THEME_DEFAULT_MODES as p, BS_THEME_DEFAULT_MODES as m, BS_THEME_DEFAULT_MODE_META as h, configureBsTheme as g, getBsThemeStore as _, getBsThemeStore as v, injectThemeAttribute as y, isValidThemeMode as b, readDefaultModeMeta as x, readThemeCookie as S, resolveMode as C, resolveMode as w, resolveServerTheme as T, writeThemeCookie as E } from "@mintplayer/web-components/theming";
3
+ //#endregion
4
+ //#region libs/mintplayer-vue-bootstrap/theming/src/BsThemeToggle.vue
5
+ var D = /* @__PURE__ */ t({
6
+ inheritAttrs: !1,
7
+ __name: "BsThemeToggle",
8
+ props: { modes: {} },
9
+ setup(t) {
10
+ let n = t, r = l(null), o = () => {
11
+ r.value && (r.value.modes = n.modes ?? m);
12
+ };
13
+ return a(o), d(() => n.modes, o), (t, n) => (s(), e("mp-theme-toggle", i({
14
+ ref_key: "el",
15
+ ref: r
16
+ }, t.$attrs), null, 16));
17
+ }
18
+ }), O = () => typeof window < "u", k = (e) => {
19
+ O() && v().setMode(e);
21
20
  };
22
- function C() {
23
- const o = i("auto"), s = i(v("auto", !1));
24
- let e = () => {
25
- };
26
- if (d()) {
27
- const t = m(), r = () => {
28
- o.value = t.getMode(), s.value = t.effectiveMode();
29
- }, n = t.subscribe(r);
30
- let c = !1;
31
- e = () => {
32
- c || (c = !0, n());
33
- }, E() && h(e), g() ? f(r) : r();
34
- }
35
- return {
36
- mode: l(o),
37
- effectiveMode: l(s),
38
- setMode: S,
39
- stop: e
40
- };
21
+ function A() {
22
+ let e = u("auto"), t = u(w("auto", !1)), i = () => void 0;
23
+ if (O()) {
24
+ let s = v(), c = () => {
25
+ e.value = s.getMode(), t.value = s.effectiveMode();
26
+ }, l = s.subscribe(c), u = !1;
27
+ i = () => {
28
+ u || (u = !0, l());
29
+ }, r() && o(i), n() ? a(c) : c();
30
+ }
31
+ return {
32
+ mode: c(e),
33
+ effectiveMode: c(t),
34
+ setMode: k,
35
+ stop: i
36
+ };
41
37
  }
42
- export {
43
- y as BS_THEME_COOKIE_NAME,
44
- O as BS_THEME_DEFAULT_MODES,
45
- H as BS_THEME_DEFAULT_MODE_META,
46
- w as BsThemeToggle,
47
- F as configureBsTheme,
48
- L as getBsThemeStore,
49
- U as injectThemeAttribute,
50
- x as isValidThemeMode,
51
- I as readDefaultModeMeta,
52
- j as readThemeCookie,
53
- K as resolveMode,
54
- N as resolveServerTheme,
55
- C as useBsTheme,
56
- P as writeThemeCookie
57
- };
38
+ //#endregion
39
+ export { f as BS_THEME_COOKIE_NAME, p as BS_THEME_DEFAULT_MODES, h as BS_THEME_DEFAULT_MODE_META, D as BsThemeToggle, g as configureBsTheme, _ as getBsThemeStore, y as injectThemeAttribute, b as isValidThemeMode, x as readDefaultModeMeta, S as readThemeCookie, C as resolveMode, T as resolveServerTheme, A as useBsTheme, E as writeThemeCookie };
@@ -1,23 +1,20 @@
1
- import { defineComponent as l, ref as o, onMounted as a, watch as i, openBlock as p, createElementBlock as c, mergeProps as m, renderSlot as f } 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, watch as s } from "vue";
2
2
  import "@mintplayer/web-components/tile-manager";
3
- const g = /* @__PURE__ */ l({
4
- inheritAttrs: !1,
5
- __name: "BsTileManager",
6
- props: {
7
- tiles: {}
8
- },
9
- setup(n) {
10
- const t = n, e = o(null), r = () => {
11
- e.value && (e.value.tiles = t.tiles ?? []);
12
- };
13
- return a(r), i(() => t.tiles, r), (s, u) => (p(), c("mp-tile-manager", m({
14
- ref_key: "el",
15
- ref: e
16
- }, s.$attrs), [
17
- f(s.$slots, "default")
18
- ], 16));
19
- }
3
+ //#endregion
4
+ //#region libs/mintplayer-vue-bootstrap/tile-manager/src/BsTileManager.vue
5
+ var c = /* @__PURE__ */ t({
6
+ inheritAttrs: !1,
7
+ __name: "BsTileManager",
8
+ props: { tiles: {} },
9
+ setup(t) {
10
+ let c = t, l = a(null), u = () => {
11
+ l.value && (l.value.tiles = c.tiles ?? []);
12
+ };
13
+ return r(u), s(() => c.tiles, u), (t, r) => (i(), e("mp-tile-manager", n({
14
+ ref_key: "el",
15
+ ref: l
16
+ }, t.$attrs), [o(t.$slots, "default")], 16));
17
+ }
20
18
  });
21
- export {
22
- g as BsTileManager
23
- };
19
+ //#endregion
20
+ export { c as BsTileManager };