@mintplayer/vue-bootstrap 3.30.0 → 3.32.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 (57) hide show
  1. package/README.md +12 -11
  2. package/accordion/index.mjs +26 -24
  3. package/card/index.mjs +65 -29
  4. package/carousel/index.mjs +15 -14
  5. package/checkbox/index.mjs +1 -1
  6. package/checkbox/src/BsCheckbox.vue.d.ts +1 -1
  7. package/chunks/BsCheckbox-D7eBD_nx.mjs +109 -0
  8. package/chunks/{BsDatatable.generated-uNBvWmhM.mjs → BsDatatable.generated-Dy-c1OTA.mjs} +17 -14
  9. package/chunks/{BsDatetimePicker.generated-DB9itVGP.mjs → BsDatetimePicker.generated-C7_hr0cg.mjs} +11 -10
  10. package/datatable/index.mjs +1 -1
  11. package/datatable/src/generated/BsDatatable.generated.vue.d.ts +5 -3
  12. package/datepicker/index.mjs +11 -10
  13. package/datepicker/src/generated/BsDatepicker.generated.vue.d.ts +1 -1
  14. package/datetime-picker/index.mjs +1 -1
  15. package/datetime-picker/src/generated/BsDatetimePicker.generated.vue.d.ts +1 -1
  16. package/dropdown-menu/index.mjs +25 -18
  17. package/file-manager/index.mjs +10 -9
  18. package/input-group/index.mjs +12 -10
  19. package/machine/index.mjs +55 -44
  20. package/machine/src/index.d.ts +1 -0
  21. package/machine/src/mark-links.d.ts +10 -0
  22. package/nav/index.mjs +92 -0
  23. package/nav/src/generated/BsNav.generated.vue.d.ts +162 -0
  24. package/nav/src/generated/BsNavItem.generated.vue.d.ts +122 -0
  25. package/nav/src/generated/index.d.ts +2 -0
  26. package/nav/src/generated/nav-item.view.generated.vue.d.ts +27 -0
  27. package/nav/src/generated/nav.view.generated.vue.d.ts +27 -0
  28. package/nav/src/index.d.ts +1 -0
  29. package/nav/src/nav-item.vue.d.ts +2 -0
  30. package/navbar/index.mjs +81 -72
  31. package/navbar/src/navbar-item.vue.d.ts +2 -0
  32. package/otp-input/index.mjs +10 -9
  33. package/otp-input/src/generated/BsOtpInput.generated.vue.d.ts +1 -1
  34. package/package.json +10 -2
  35. package/pagination/index.mjs +27 -20
  36. package/phone-input/index.mjs +12 -11
  37. package/query-builder/index.mjs +12 -10
  38. package/radio/index.mjs +46 -33
  39. package/radio/src/BsRadio.vue.d.ts +1 -1
  40. package/ribbon/src/generated/BsRibbonCheckBox.generated.vue.d.ts +1 -1
  41. package/ribbon/src/generated/BsRibbonColorPicker.generated.vue.d.ts +1 -1
  42. package/scheduler/index.mjs +35 -34
  43. package/select/index.mjs +10 -9
  44. package/signature-pad/index.mjs +15 -14
  45. package/spinner/index.mjs +63 -0
  46. package/spinner/src/generated/BsSpinner.generated.vue.d.ts +60 -0
  47. package/spinner/src/generated/index.d.ts +1 -0
  48. package/spinner/src/generated/spinner.view.generated.vue.d.ts +9 -0
  49. package/spinner/src/index.d.ts +1 -0
  50. package/tab-control/index.mjs +29 -27
  51. package/timepicker/index.mjs +17 -16
  52. package/timepicker/src/generated/BsTimepicker.generated.vue.d.ts +1 -1
  53. package/toggle-button/index.mjs +1 -1
  54. package/tree-select/src/generated/BsTreeSelect.generated.vue.d.ts +1 -1
  55. package/typeahead/index.mjs +62 -59
  56. package/typeahead/src/BsTypeahead.vue.d.ts +1 -1
  57. package/chunks/BsCheckbox-C8H1KT2D.mjs +0 -96
package/README.md CHANGED
@@ -6,17 +6,18 @@ This library was generated with [Nx](https://nx.dev).
6
6
 
7
7
  Run `nx test mintplayer-vue-bootstrap` to execute the unit tests via [Vitest](https://vitest.dev/).
8
8
 
9
- ## Styling and encapsulation
9
+ ## Architecture and styling
10
10
 
11
- Most components keep a shadow root and take your content through native slots, so your stylesheets
12
- reach that content normally.
11
+ Each component here is the Vue front of a framework-neutral TypeScript core in
12
+ `@mintplayer/ui-core` (state, keyboard, ARIA, async lifecycles). It renders its own HTML from that
13
+ core. It does **not** wrap or render a web component, so server rendering emits real markup.
13
14
 
14
- ``BsDatatable`, `BsTreeview`, `BsTreeSelect` and `BsQueryBuilder`` mount DOM you author (row / node templates, cell renderers,
15
- editor factories) and therefore render in the **light DOM**, with their own CSS scoped at build time
16
- onto a `data-mps` attribute — the same device Angular uses for `_ngcontent`. Your styles and
17
- Bootstrap's utilities reach anything you render into them; in exchange, page CSS also reaches their
18
- internals, exactly as emulated encapsulation behaves elsewhere. `::part()` and `::slotted()` no
19
- longer address them.
15
+ - **Styles ship per component.** A component installs its own scoped sheet and the Bootstrap partial
16
+ its markup uses, once per page, when it first renders (written into `<head>` during SSR). Your
17
+ global stylesheet loads only the page-level Bootstrap baseline, never component partials. A component
18
+ and its styles can ship in the lazy chunk of the page that uses it.
19
+ - **Light DOM, emulated encapsulation.** No shadow root. The component's CSS is scoped at build time onto
20
+ a `data-mps` attribute, like Angular's `_ngcontent`. Your CSS and Bootstrap's utilities reach anything
21
+ you render into a component, page CSS also reaches its internals, and its own rules cannot leak out.
20
22
 
21
- See **Styling and encapsulation** in the [workspace README](../../README.md) for the full contract
22
- and the migration table.
23
+ See **Styling and encapsulation** in the [workspace README](../../README.md).
@@ -1,8 +1,10 @@
1
1
  import { Fragment as e, cloneVNode as t, computed as n, createElementBlock as r, createElementVNode as i, createVNode as a, defineComponent as o, guardReactiveProps as s, inject as c, mergeProps as l, normalizeProps as u, openBlock as d, provide as f, renderSlot as p, unref as m, useId as h, useSlots as g, useTemplateRef as _ } from "vue";
2
- import { installLightStyles as v } from "@mintplayer/ui-core/scoped-styles";
3
- import { ACCORDION_SCOPE as y, accordionKeydown as b, accordionScopedStyles as x, accordionSummaryClick as S, accordionToggled as C, connectAccordion as w, connectAccordionTab as T } from "@mintplayer/ui-core/accordion";
2
+ import { installBootstrap as v } from "@mintplayer/ui-core/bootstrap";
3
+ import { bootstrapAccordion as y } from "@mintplayer/ui-core/bootstrap/accordion";
4
+ import { installLightStyles as b } from "@mintplayer/ui-core/scoped-styles";
5
+ import { ACCORDION_SCOPE as x, accordionKeydown as S, accordionScopedStyles as C, accordionSummaryClick as w, accordionToggled as T, connectAccordion as E, connectAccordionTab as D } from "@mintplayer/ui-core/accordion";
4
6
  //#region libs/mintplayer-vue-bootstrap/accordion/src/accordion-context.ts
5
- var E = Symbol("bs-accordion"), D = ["open"], O = /* @__PURE__ */ o({
7
+ var O = Symbol("bs-accordion"), k = ["open"], A = /* @__PURE__ */ o({
6
8
  __name: "BsAccordionItem",
7
9
  props: {
8
10
  index: {},
@@ -10,20 +12,20 @@ var E = Symbol("bs-accordion"), D = ["open"], O = /* @__PURE__ */ o({
10
12
  disabled: { type: Boolean }
11
13
  },
12
14
  setup(e) {
13
- let t = e, a = c(E, null), o = n(() => t.index ?? 0), f = n(() => T(a?.options.value ?? { id: "bs-accordion" }, o.value, { disabled: t.disabled }));
15
+ let t = e, a = c(O, null), o = n(() => t.index ?? 0), f = n(() => D(a?.options.value ?? { id: "bs-accordion" }, o.value, { disabled: t.disabled }));
14
16
  function m(e) {
15
- S(e, !!t.disabled);
17
+ w(e, !!t.disabled);
16
18
  }
17
19
  function h(e) {
18
20
  let n = a?.root.value;
19
- n && b(n, e, o.value, !!t.disabled);
21
+ n && S(n, e, o.value, !!t.disabled);
20
22
  }
21
23
  return (t, n) => (d(), r("details", l(f.value.item, { open: e.isActive }), [i("summary", l(f.value.summary, {
22
24
  onClick: m,
23
25
  onKeydown: h
24
- }), [p(t.$slots, "header")], 16), i("div", u(s(f.value.content)), [p(t.$slots, "default")], 16)], 16, D));
26
+ }), [p(t.$slots, "header")], 16), i("div", u(s(f.value.content)), [p(t.$slots, "default")], 16)], 16, k));
25
27
  }
26
- }), k = /* @__PURE__ */ o({
28
+ }), j = /* @__PURE__ */ o({
27
29
  __name: "BsAccordion",
28
30
  props: {
29
31
  multi: { type: Boolean },
@@ -32,34 +34,34 @@ var E = Symbol("bs-accordion"), D = ["open"], O = /* @__PURE__ */ o({
32
34
  emits: ["tabToggle"],
33
35
  setup(i, { emit: o }) {
34
36
  let s = i, c = o;
35
- v(y, x);
37
+ v(y), b(x, C);
36
38
  let u = `bs-accordion-${h()}`, p = n(() => ({
37
39
  id: u,
38
40
  multi: s.multi,
39
41
  highlightActiveTab: s.highlightActiveTab
40
- })), b = _("root");
41
- f(E, {
42
+ })), S = _("root");
43
+ f(O, {
42
44
  options: p,
43
- root: b
45
+ root: S
44
46
  });
45
- let S = g();
46
- function T(t) {
47
- return t.flatMap((t) => t.type === e && Array.isArray(t.children) ? T(t.children) : [t]);
47
+ let w = g();
48
+ function D(t) {
49
+ return t.flatMap((t) => t.type === e && Array.isArray(t.children) ? D(t.children) : [t]);
48
50
  }
49
- let D = n(() => {
51
+ let k = n(() => {
50
52
  let e = 0;
51
- return T(S.default?.() ?? []).map((n) => n.type === O ? t(n, { index: e++ }) : n);
52
- }), k = () => D.value;
53
- function A(e) {
54
- if (!b.value) return;
55
- let t = C(b.value, e, !!s.multi);
53
+ return D(w.default?.() ?? []).map((n) => n.type === A ? t(n, { index: e++ }) : n);
54
+ }), j = () => k.value;
55
+ function M(e) {
56
+ if (!S.value) return;
57
+ let t = T(S.value, e, !!s.multi);
56
58
  t && c("tabToggle", t);
57
59
  }
58
60
  return (e, t) => (d(), r("div", l({
59
61
  ref_key: "root",
60
- ref: b
61
- }, m(w)(p.value), { onToggleCapture: A }), [a(k)], 16));
62
+ ref: S
63
+ }, m(E)(p.value), { onToggleCapture: M }), [a(j)], 16));
62
64
  }
63
65
  });
64
66
  //#endregion
65
- export { k as BsAccordion, O as BsAccordionItem };
67
+ export { j as BsAccordion, A as BsAccordionItem };
package/card/index.mjs CHANGED
@@ -1,8 +1,10 @@
1
1
  import { Fragment as e, computed as t, createElementBlock as n, createElementVNode as r, defineComponent as i, mergeProps as a, openBlock as o, renderSlot as s } from "vue";
2
- import { capColorClasses as c, cardColorClasses as l, cardImgClass as u } from "@mintplayer/ui-core/card";
2
+ import { installBootstrap as c } from "@mintplayer/ui-core/bootstrap";
3
+ import { bootstrapCard as l } from "@mintplayer/ui-core/bootstrap/card";
4
+ import { capColorClasses as u, cardColorClasses as d, cardImgClass as f } from "@mintplayer/ui-core/card";
3
5
  //#endregion
4
6
  //#region libs/mintplayer-vue-bootstrap/card/src/BsCard.vue
5
- var d = /* @__PURE__ */ i({
7
+ var p = /* @__PURE__ */ i({
6
8
  inheritAttrs: !1,
7
9
  __name: "BsCard",
8
10
  props: {
@@ -13,38 +15,59 @@ var d = /* @__PURE__ */ i({
13
15
  }
14
16
  },
15
17
  setup(e) {
16
- let r = e, i = t(() => ["card", ...l(r.color, r.outline)]);
17
- return (e, t) => (o(), n("div", a({ class: i.value }, e.$attrs), [s(e.$slots, "default")], 16));
18
+ c(l);
19
+ let r = e, i = t(() => ["card", ...d(r.color, r.outline)]);
20
+ return (e, t) => (o(), n("div", a({
21
+ "data-mps": "card",
22
+ class: i.value
23
+ }, e.$attrs), [s(e.$slots, "default")], 16));
18
24
  }
19
- }), f = /* @__PURE__ */ i({
25
+ }), m = /* @__PURE__ */ i({
20
26
  inheritAttrs: !1,
21
27
  __name: "BsCardBody",
22
28
  setup(e) {
23
- return (e, t) => (o(), n("div", a({ class: "card-body" }, e.$attrs), [s(e.$slots, "default")], 16));
29
+ return c(l), (e, t) => (o(), n("div", a({
30
+ "data-mps": "card",
31
+ class: "card-body"
32
+ }, e.$attrs), [s(e.$slots, "default")], 16));
24
33
  }
25
- }), p = /* @__PURE__ */ i({
34
+ }), h = /* @__PURE__ */ i({
26
35
  inheritAttrs: !1,
27
36
  __name: "BsCardFooter",
28
37
  props: { color: {} },
29
38
  setup(e) {
30
- let r = e, i = t(() => ["card-footer", ...c(r.color)]);
31
- return (e, t) => (o(), n("div", a({ class: i.value }, e.$attrs), [s(e.$slots, "default")], 16));
39
+ c(l);
40
+ let r = e, i = t(() => ["card-footer", ...u(r.color)]);
41
+ return (e, t) => (o(), n("div", a({
42
+ "data-mps": "card",
43
+ class: i.value
44
+ }, e.$attrs), [s(e.$slots, "default")], 16));
32
45
  }
33
- }), m = /* @__PURE__ */ i({
46
+ }), g = /* @__PURE__ */ i({
34
47
  inheritAttrs: !1,
35
48
  __name: "BsCardGroup",
36
49
  setup(e) {
37
- return (e, t) => (o(), n("div", a({ class: "card-group" }, e.$attrs), [s(e.$slots, "default")], 16));
50
+ return c(l), (e, t) => (o(), n("div", a({
51
+ "data-mps": "card",
52
+ class: "card-group"
53
+ }, e.$attrs), [s(e.$slots, "default")], 16));
38
54
  }
39
- }), h = /* @__PURE__ */ i({
55
+ }), _ = /* @__PURE__ */ i({
40
56
  inheritAttrs: !1,
41
57
  __name: "BsCardHeader",
42
58
  props: { color: {} },
43
59
  setup(e) {
44
- let r = e, i = t(() => ["card-header", ...c(r.color)]);
45
- return (e, t) => (o(), n("div", a({ class: i.value }, e.$attrs), [s(e.$slots, "default")], 16));
60
+ c(l);
61
+ let r = e, i = t(() => ["card-header", ...u(r.color)]);
62
+ return (e, t) => (o(), n("div", a({
63
+ "data-mps": "card",
64
+ class: i.value
65
+ }, e.$attrs), [s(e.$slots, "default")], 16));
46
66
  }
47
- }), g = ["src", "alt"], _ = { class: "card-img-overlay" }, v = ["src", "alt"], y = /* @__PURE__ */ i({
67
+ }), v = ["src", "alt"], y = {
68
+ "data-mps": "card",
69
+ class: "card-img-overlay"
70
+ }, b = ["src", "alt"], x = /* @__PURE__ */ i({
48
71
  inheritAttrs: !1,
49
72
  __name: "BsCardImg",
50
73
  props: {
@@ -53,46 +76,59 @@ var d = /* @__PURE__ */ i({
53
76
  alt: {}
54
77
  },
55
78
  setup(i) {
56
- let c = i, l = t(() => u(c.position));
79
+ c(l);
80
+ let u = i, d = t(() => f(u.position));
57
81
  return (t, c) => i.position === "overlay" ? (o(), n(e, { key: 0 }, [r("img", a({
82
+ "data-mps": "card",
58
83
  class: "card-img",
59
84
  src: i.src,
60
85
  alt: i.alt ?? ""
61
- }, t.$attrs), null, 16, g), r("div", _, [s(t.$slots, "default")])], 64)) : (o(), n("img", a({
86
+ }, t.$attrs), null, 16, v), r("div", y, [s(t.$slots, "default")])], 64)) : (o(), n("img", a({
62
87
  key: 1,
63
- class: l.value,
88
+ "data-mps": "card",
89
+ class: d.value,
64
90
  src: i.src,
65
91
  alt: i.alt ?? ""
66
- }, t.$attrs), null, 16, v));
92
+ }, t.$attrs), null, 16, b));
67
93
  }
68
- }), b = ["href"], x = /* @__PURE__ */ i({
94
+ }), S = ["href"], C = /* @__PURE__ */ i({
69
95
  inheritAttrs: !1,
70
96
  __name: "BsCardLink",
71
97
  props: { href: {} },
72
98
  setup(e) {
73
- return (t, r) => (o(), n("a", a({
99
+ return c(l), (t, r) => (o(), n("a", a({
100
+ "data-mps": "card",
74
101
  class: "card-link",
75
102
  href: e.href
76
- }, t.$attrs), [s(t.$slots, "default")], 16, b));
103
+ }, t.$attrs), [s(t.$slots, "default")], 16, S));
77
104
  }
78
- }), S = /* @__PURE__ */ i({
105
+ }), w = /* @__PURE__ */ i({
79
106
  inheritAttrs: !1,
80
107
  __name: "BsCardSubtitle",
81
108
  setup(e) {
82
- return (e, t) => (o(), n("div", a({ class: "card-subtitle" }, e.$attrs), [s(e.$slots, "default")], 16));
109
+ return c(l), (e, t) => (o(), n("div", a({
110
+ "data-mps": "card",
111
+ class: "card-subtitle"
112
+ }, e.$attrs), [s(e.$slots, "default")], 16));
83
113
  }
84
- }), C = /* @__PURE__ */ i({
114
+ }), T = /* @__PURE__ */ i({
85
115
  inheritAttrs: !1,
86
116
  __name: "BsCardText",
87
117
  setup(e) {
88
- return (e, t) => (o(), n("div", a({ class: "card-text" }, e.$attrs), [s(e.$slots, "default")], 16));
118
+ return c(l), (e, t) => (o(), n("div", a({
119
+ "data-mps": "card",
120
+ class: "card-text"
121
+ }, e.$attrs), [s(e.$slots, "default")], 16));
89
122
  }
90
- }), w = /* @__PURE__ */ i({
123
+ }), E = /* @__PURE__ */ i({
91
124
  inheritAttrs: !1,
92
125
  __name: "BsCardTitle",
93
126
  setup(e) {
94
- return (e, t) => (o(), n("div", a({ class: "card-title" }, e.$attrs), [s(e.$slots, "default")], 16));
127
+ return c(l), (e, t) => (o(), n("div", a({
128
+ "data-mps": "card",
129
+ class: "card-title"
130
+ }, e.$attrs), [s(e.$slots, "default")], 16));
95
131
  }
96
132
  });
97
133
  //#endregion
98
- export { d as BsCard, f as BsCardBody, p as BsCardFooter, m as BsCardGroup, h as BsCardHeader, y as BsCardImg, x as BsCardLink, S as BsCardSubtitle, C as BsCardText, w as BsCardTitle };
134
+ export { p as BsCard, m as BsCardBody, h as BsCardFooter, g as BsCardGroup, _ as BsCardHeader, x as BsCardImg, C as BsCardLink, w as BsCardSubtitle, T as BsCardText, E as BsCardTitle };
@@ -2,9 +2,10 @@ import { useCore as e } from "../machine/index.mjs";
2
2
  import { Comment as t, Fragment as n, Text as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, defineComponent as c, mergeProps as l, openBlock as u, renderList as d, renderSlot as f, unref as p, useSlots as m, useTemplateRef as h, withCtx as g } from "vue";
3
3
  import { installLightStyles as _ } from "@mintplayer/ui-core/scoped-styles";
4
4
  import { carouselCore as v, carouselItemCore as y, carouselScopedStyles as b } from "@mintplayer/ui-core/carousel";
5
+ import { bootstrapCarousel as x } from "@mintplayer/ui-core/bootstrap/carousel";
5
6
  //#endregion
6
7
  //#region libs/mintplayer-vue-bootstrap/carousel/src/generated/carousel.view.generated.vue
7
- var x = /* @__PURE__ */ c({
8
+ var S = /* @__PURE__ */ c({
8
9
  __name: "carousel.view.generated",
9
10
  props: { view: {} },
10
11
  setup(e) {
@@ -37,19 +38,19 @@ var x = /* @__PURE__ */ c({
37
38
  });
38
39
  //#endregion
39
40
  //#region libs/mintplayer-vue-bootstrap/carousel/src/carousel.vue.ts
40
- function S(e) {
41
- return e.reduce((e, i) => i.type === n ? e + S(Array.isArray(i.children) ? i.children : []) : i.type === t || i.type === r ? e : e + 1, 0);
42
- }
43
41
  function C(e) {
42
+ return e.reduce((e, i) => i.type === n ? e + C(Array.isArray(i.children) ? i.children : []) : i.type === t || i.type === r ? e : e + 1, 0);
43
+ }
44
+ function w(e) {
44
45
  let t = m();
45
46
  return () => ({
46
47
  ...e(),
47
- slideCount: S(t.default?.() ?? [])
48
+ slideCount: C(t.default?.() ?? [])
48
49
  });
49
50
  }
50
51
  //#endregion
51
52
  //#region libs/mintplayer-vue-bootstrap/carousel/src/generated/BsCarousel.generated.vue
52
- var w = /* @__PURE__ */ c({
53
+ var T = /* @__PURE__ */ c({
53
54
  name: "BsCarousel",
54
55
  __name: "BsCarousel.generated",
55
56
  props: {
@@ -99,8 +100,8 @@ var w = /* @__PURE__ */ c({
99
100
  ],
100
101
  setup(t, { expose: n, emit: r }) {
101
102
  let a = t, o = r;
102
- _("carousel", b);
103
- let s = h("template"), c = e(v, C(() => ({
103
+ _(x.key, x.css, { order: x.order }), _("carousel", b);
104
+ let s = h("template"), c = e(v, w(() => ({
104
105
  animation: a.animation,
105
106
  orientation: a.orientation,
106
107
  indicators: a.indicators,
@@ -123,7 +124,7 @@ var w = /* @__PURE__ */ c({
123
124
  play: (...e) => c.call("play", e),
124
125
  pause: (...e) => c.call("pause", e),
125
126
  togglePaused: (...e) => c.call("togglePaused", e)
126
- }), (e, t) => (u(), i(x, l({
127
+ }), (e, t) => (u(), i(S, l({
127
128
  ref_key: "template",
128
129
  ref: s
129
130
  }, p(d)), {
@@ -131,7 +132,7 @@ var w = /* @__PURE__ */ c({
131
132
  _: 3
132
133
  }, 16));
133
134
  }
134
- }), T = /* @__PURE__ */ c({
135
+ }), E = /* @__PURE__ */ c({
135
136
  __name: "carousel-item.view.generated",
136
137
  props: { view: {} },
137
138
  setup(e) {
@@ -140,18 +141,18 @@ var w = /* @__PURE__ */ c({
140
141
  ref: "root"
141
142
  }, e.view.root), [f(t.$slots, "default")], 16));
142
143
  }
143
- }), E = /* @__PURE__ */ c({
144
+ }), D = /* @__PURE__ */ c({
144
145
  name: "BsCarouselItem",
145
146
  __name: "BsCarouselItem.generated",
146
147
  props: {},
147
148
  setup(t) {
148
- _("carousel", b);
149
+ _(x.key, x.css, { order: x.order }), _("carousel", b);
149
150
  let n = h("template"), r = e(y, () => ({}), {
150
151
  idPrefix: "bs-carousel-item",
151
152
  root: () => n.value?.$el,
152
153
  emit: () => void 0
153
154
  }).props;
154
- return (e, t) => (u(), i(T, l({
155
+ return (e, t) => (u(), i(E, l({
155
156
  ref_key: "template",
156
157
  ref: n
157
158
  }, p(r)), {
@@ -161,4 +162,4 @@ var w = /* @__PURE__ */ c({
161
162
  }
162
163
  });
163
164
  //#endregion
164
- export { w as BsCarousel, E as BsCarouselItem };
165
+ export { T as BsCarousel, D as BsCarouselItem };
@@ -1 +1 @@
1
- export { t as BsCheckbox } from "../chunks/BsCheckbox-C8H1KT2D.mjs";
1
+ export { t as BsCheckbox } from "../chunks/BsCheckbox-D7eBD_nx.mjs";
@@ -36,8 +36,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
36
36
  name: string | null;
37
37
  disabled: boolean;
38
38
  value: string | null;
39
- type: CheckboxType;
40
39
  invalid: boolean;
40
+ type: CheckboxType;
41
41
  color: ToggleButtonColor;
42
42
  required: boolean;
43
43
  errorText: string | null;
@@ -0,0 +1,109 @@
1
+ import { Fragment as e, computed as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, defineComponent as a, mergeModels as o, mergeProps as s, normalizeClass as c, openBlock as l, renderSlot as u, toDisplayString as d, useAttrs as f, useId as p, useModel as m, useTemplateRef as h, watchEffect as g } from "vue";
2
+ import { installBootstrap as _ } from "@mintplayer/ui-core/bootstrap";
3
+ import { bootstrapForms as v } from "@mintplayer/ui-core/bootstrap/forms";
4
+ import { checkboxClasses as y, connectCheckbox as b, effectiveIndeterminate as x } from "@mintplayer/ui-core/checkbox";
5
+ //#region libs/mintplayer-vue-bootstrap/checkbox/src/BsCheckbox.vue?vue&type=script&setup=true&lang.ts
6
+ var S = ["checked"], C = ["for"], w = ["checked"], T = /* @__PURE__ */ a({
7
+ inheritAttrs: !1,
8
+ __name: "BsCheckbox",
9
+ props: /*@__PURE__*/ o({
10
+ type: { default: "checkbox" },
11
+ color: { default: "primary" },
12
+ name: { default: null },
13
+ value: { default: null },
14
+ disabled: {
15
+ type: Boolean,
16
+ default: !1
17
+ },
18
+ required: {
19
+ type: Boolean,
20
+ default: !1
21
+ },
22
+ invalid: {
23
+ type: Boolean,
24
+ default: !1
25
+ },
26
+ errorText: { default: null }
27
+ }, {
28
+ modelValue: {
29
+ type: Boolean,
30
+ default: !1
31
+ },
32
+ modelModifiers: {},
33
+ indeterminate: {
34
+ type: Boolean,
35
+ default: !1
36
+ },
37
+ indeterminateModifiers: {}
38
+ }),
39
+ emits: ["update:modelValue", "update:indeterminate"],
40
+ setup(a) {
41
+ _(v);
42
+ let o = a, T = m(a, "modelValue"), E = m(a, "indeterminate"), D = `bs-checkbox-${p()}`, O = t(() => ({
43
+ type: o.type,
44
+ checked: T.value,
45
+ indeterminate: x({
46
+ type: o.type,
47
+ indeterminate: E.value
48
+ }),
49
+ disabled: o.disabled,
50
+ required: o.required,
51
+ invalid: o.invalid,
52
+ name: o.name,
53
+ value: o.value,
54
+ errorText: o.errorText
55
+ })), k = t(() => y(o.type, o.color, o.invalid)), A = f();
56
+ function j() {
57
+ let { "aria-describedby": e, role: t, ...n } = A, r = b(O.value, D, e ?? null);
58
+ return {
59
+ ...r.input,
60
+ ...n,
61
+ role: r.input.role ?? t ?? null
62
+ };
63
+ }
64
+ let M = t(() => b(O.value, D));
65
+ function N() {
66
+ return String(A.id ?? M.value.input.id);
67
+ }
68
+ let P = h("input");
69
+ g(() => {
70
+ P.value && (P.value.indeterminate = O.value.indeterminate);
71
+ }, { flush: "post" });
72
+ function F(e) {
73
+ T.value = e.target.checked, E.value = !1;
74
+ }
75
+ return (t, a) => (l(), r(e, null, [k.value.root === null ? (l(), r(e, { key: 0 }, [i("input", s({
76
+ "data-mps": "checkbox",
77
+ ref: "input",
78
+ type: "checkbox",
79
+ class: k.value.input
80
+ }, j(), {
81
+ checked: T.value,
82
+ onChange: F
83
+ }), null, 16, S), i("label", {
84
+ "data-mps": "checkbox",
85
+ class: c(k.value.label),
86
+ for: N()
87
+ }, [u(t.$slots, "default")], 10, C)], 64)) : (l(), r("label", {
88
+ key: 1,
89
+ "data-mps": "checkbox",
90
+ class: c(k.value.root)
91
+ }, [i("input", s({
92
+ "data-mps": "checkbox",
93
+ ref: "input",
94
+ type: "checkbox",
95
+ class: k.value.input
96
+ }, j(), {
97
+ checked: T.value,
98
+ onChange: F
99
+ }), null, 16, w), i("span", {
100
+ "data-mps": "checkbox",
101
+ class: c(k.value.label)
102
+ }, [u(t.$slots, "default")], 2)], 2)), M.value.feedback ? (l(), r("div", s({
103
+ key: 2,
104
+ "data-mps": "checkbox"
105
+ }, M.value.feedback.attrs), d(M.value.feedback.text), 17)) : n("", !0)], 64));
106
+ }
107
+ });
108
+ //#endregion
109
+ export { T as t };
@@ -1,9 +1,11 @@
1
1
  import { useCore as e } from "../machine/index.mjs";
2
2
  import { Fragment as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createSlots as o, createTextVNode as s, defineComponent as c, guardReactiveProps as l, mergeProps as u, normalizeProps as d, openBlock as f, renderList as p, renderSlot as m, toDisplayString as h, unref as g, useTemplateRef as _, withCtx as v } from "vue";
3
3
  import { installLightStyles as y } from "@mintplayer/ui-core/scoped-styles";
4
- import { datatableCore as b, datatableScopedStyles as x } from "@mintplayer/ui-core/datatable";
4
+ import { bootstrapForms as b } from "@mintplayer/ui-core/bootstrap/forms";
5
+ import { datatableCore as x, datatableScopedStyles as S } from "@mintplayer/ui-core/datatable";
6
+ import { bootstrapPagination as C } from "@mintplayer/ui-core/bootstrap/pagination";
5
7
  //#region libs/mintplayer-vue-bootstrap/datatable/src/generated/datatable.view.generated.vue?vue&type=script&setup=true&lang.ts
6
- var S = [".indeterminate"], C = ["href"], w = [".value"], T = [".value"], E = [".checked"], D = { "data-mps": "datatable" }, O = [".checked", ".indeterminate"], k = ["href"], A = /* @__PURE__ */ c({
8
+ var w = [".indeterminate"], T = ["href"], E = [".value"], D = [".value"], O = [".checked"], k = { "data-mps": "datatable" }, A = [".checked", ".indeterminate"], j = ["href"], M = /* @__PURE__ */ c({
7
9
  __name: "datatable.view.generated",
8
10
  props: { view: {} },
9
11
  setup(e) {
@@ -28,7 +30,7 @@ var S = [".indeterminate"], C = ["href"], w = [".value"], T = [".value"], E = ["
28
30
  }, e.view.checkHeader), [a("input", u({ "data-mps": "datatable" }, e.view.deselectAll, {
29
31
  ".checked": !1,
30
32
  ".indeterminate": e.view.anySelected
31
- }), null, 48, S)], 16)) : r("", !0),
33
+ }), null, 48, w)], 16)) : r("", !0),
32
34
  (f(!0), i(t, null, p(e.view.headers, (e) => (f(), i("th", u({
33
35
  "data-mps": "datatable",
34
36
  key: e.key
@@ -38,7 +40,7 @@ var S = [".indeterminate"], C = ["href"], w = [".value"], T = [".value"], E = ["
38
40
  }, { ref_for: !0 }, e.sort, { href: e.sortHref }), [a("span", u({ "data-mps": "datatable" }, { ref_for: !0 }, e.text), [m(n.$slots, "header", { column: e.column }, () => [s(h(e.label), 1)])], 16), e.sortIndex ? (f(), i("span", u({
39
41
  key: 0,
40
42
  "data-mps": "datatable"
41
- }, { ref_for: !0 }, e.sortIndex), h(e.sortIndexText), 17)) : r("", !0)], 16, C)) : e.sortable ? (f(), i("button", u({
43
+ }, { ref_for: !0 }, e.sortIndex), h(e.sortIndexText), 17)) : r("", !0)], 16, T)) : e.sortable ? (f(), i("button", u({
42
44
  key: 1,
43
45
  "data-mps": "datatable"
44
46
  }, { ref_for: !0 }, e.sort), [a("span", u({ "data-mps": "datatable" }, { ref_for: !0 }, e.text), [m(n.$slots, "header", { column: e.column }, () => [s(h(e.label), 1)])], 16), e.sortIndex ? (f(), i("span", u({
@@ -92,7 +94,7 @@ var S = [".indeterminate"], C = ["href"], w = [".value"], T = [".value"], E = ["
92
94
  }, { ref_for: !0 }, e.open.comparison.wrap), [a("select", u({ "data-mps": "datatable" }, { ref_for: !0 }, e.open.comparison.operator), [(f(!0), i(t, null, p(e.open.comparison.operators, (e) => (f(), i("option", u({
93
95
  "data-mps": "datatable",
94
96
  key: e.key
95
- }, { ref_for: !0 }, e.option), h(e.text), 17))), 128))], 16), a("input", u({ "data-mps": "datatable" }, { ref_for: !0 }, e.open.comparison.operand, { ".value": e.open.comparison.operandText }), null, 48, w)], 16)) : r("", !0),
97
+ }, { ref_for: !0 }, e.option), h(e.text), 17))), 128))], 16), a("input", u({ "data-mps": "datatable" }, { ref_for: !0 }, e.open.comparison.operand, { ".value": e.open.comparison.operandText }), null, 48, E)], 16)) : r("", !0),
96
98
  e.open.comparison && e.open.comparison.applied ? (f(), i("small", u({
97
99
  key: 1,
98
100
  "data-mps": "datatable"
@@ -100,7 +102,7 @@ var S = [".indeterminate"], C = ["href"], w = [".value"], T = [".value"], E = ["
100
102
  e.open.list ? (f(), i("input", u({
101
103
  key: 2,
102
104
  "data-mps": "datatable"
103
- }, { ref_for: !0 }, e.open.list.search, { ".value": e.open.list.term }), null, 48, T)) : r("", !0),
105
+ }, { ref_for: !0 }, e.open.list.search, { ".value": e.open.list.term }), null, 48, D)) : r("", !0),
104
106
  e.open.list ? (f(), i("button", u({
105
107
  key: 3,
106
108
  "data-mps": "datatable"
@@ -116,7 +118,7 @@ var S = [".indeterminate"], C = ["href"], w = [".value"], T = [".value"], E = ["
116
118
  (f(!0), i(t, null, p(e.open.list.options, (e) => (f(), i("label", u({
117
119
  "data-mps": "datatable",
118
120
  key: e.key
119
- }, { ref_for: !0 }, e.label), [a("input", u({ "data-mps": "datatable" }, { ref_for: !0 }, e.input, { ".checked": e.checked }), null, 48, E), a("span", D, h(e.text), 1)], 16))), 128)),
121
+ }, { ref_for: !0 }, e.label), [a("input", u({ "data-mps": "datatable" }, { ref_for: !0 }, e.input, { ".checked": e.checked }), null, 48, O), a("span", k, h(e.text), 1)], 16))), 128)),
120
122
  e.open.list.noValues ? (f(), i("span", u({
121
123
  key: 1,
122
124
  "data-mps": "datatable"
@@ -157,7 +159,7 @@ var S = [".indeterminate"], C = ["href"], w = [".value"], T = [".value"], E = ["
157
159
  }, { ref_for: !0 }, e.check, {
158
160
  ".checked": e.checked,
159
161
  ".indeterminate": e.indeterminate
160
- }), null, 48, O)) : r("", !0)], 16)) : r("", !0),
162
+ }), null, 48, A)) : r("", !0)], 16)) : r("", !0),
161
163
  e.placeholder ? (f(), i("td", u({
162
164
  key: 2,
163
165
  "data-mps": "datatable"
@@ -194,7 +196,7 @@ var S = [".indeterminate"], C = ["href"], w = [".value"], T = [".value"], E = ["
194
196
  }, { ref_for: !0 }, e.link), h(e.text), 17)) : e.anchor ? (f(), i("a", u({
195
197
  key: 1,
196
198
  "data-mps": "datatable"
197
- }, { ref_for: !0 }, e.link, { href: e.href }), h(e.text), 17, k)) : (f(), i("button", u({
199
+ }, { ref_for: !0 }, e.link, { href: e.href }), h(e.text), 17, j)) : (f(), i("button", u({
198
200
  key: 2,
199
201
  "data-mps": "datatable"
200
202
  }, { ref_for: !0 }, e.link), h(e.text), 17))], 16))), 128))], 16)], 16))), 128))], 16)) : r("", !0)], 16),
@@ -209,7 +211,7 @@ var S = [".indeterminate"], C = ["href"], w = [".value"], T = [".value"], E = ["
209
211
  ], 16)
210
212
  ], 16));
211
213
  }
212
- }), j = /* @__PURE__ */ c({
214
+ }), N = /* @__PURE__ */ c({
213
215
  name: "BsDatatable",
214
216
  __name: "BsDatatable.generated",
215
217
  props: {
@@ -375,6 +377,7 @@ var S = [".indeterminate"], C = ["href"], w = [".value"], T = [".value"], E = ["
375
377
  "rowexpand",
376
378
  "rowcollapse",
377
379
  "loaderror",
380
+ "pageload",
378
381
  "filterschange",
379
382
  "update:sortColumns",
380
383
  "update:page",
@@ -385,8 +388,8 @@ var S = [".indeterminate"], C = ["href"], w = [".value"], T = [".value"], E = ["
385
388
  ],
386
389
  setup(t, { expose: r, emit: i }) {
387
390
  let a = t, s = i;
388
- y("datatable", x);
389
- let c = _("template"), p = e(b, () => ({
391
+ y(b.key, b.css, { order: b.order }), y(C.key, C.css, { order: C.order }), y("datatable", S);
392
+ let c = _("template"), p = e(x, () => ({
390
393
  columns: a.columns,
391
394
  data: a.data,
392
395
  fetch: a.fetch,
@@ -436,7 +439,7 @@ var S = [".indeterminate"], C = ["href"], w = [".value"], T = [".value"], E = ["
436
439
  "filters"
437
440
  ]
438
441
  }), h = p.props;
439
- return r({ reload: (...e) => p.call("reload", e) }), (e, t) => (f(), n(A, u({
442
+ return r({ reload: (...e) => p.call("reload", e) }), (e, t) => (f(), n(M, u({
440
443
  ref_key: "template",
441
444
  ref: c
442
445
  }, g(h)), o({ _: 2 }, [
@@ -464,4 +467,4 @@ var S = [".indeterminate"], C = ["href"], w = [".value"], T = [".value"], E = ["
464
467
  }
465
468
  });
466
469
  //#endregion
467
- export { j as t };
470
+ export { N as t };