@mintplayer/vue-bootstrap 3.31.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-87kABKmn.mjs → BsDatatable.generated-Dy-c1OTA.mjs} +16 -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 +1 -1
  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
@@ -1,10 +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, defineComponent as o, mergeProps as s, openBlock as c, renderList as l, toDisplayString as u, unref as d, useTemplateRef as f } from "vue";
3
3
  import { installLightStyles as p } from "@mintplayer/ui-core/scoped-styles";
4
- import { otpInputCore as m, otpInputScopedStyles as h } from "@mintplayer/ui-core/otp-input";
4
+ import { bootstrapForms as m } from "@mintplayer/ui-core/bootstrap/forms";
5
+ import { otpInputCore as h, otpInputScopedStyles as g } from "@mintplayer/ui-core/otp-input";
5
6
  //#endregion
6
7
  //#region libs/mintplayer-vue-bootstrap/otp-input/src/generated/otp-input.view.generated.vue
7
- var g = /* @__PURE__ */ o({
8
+ var _ = /* @__PURE__ */ o({
8
9
  inheritAttrs: !1,
9
10
  __name: "otp-input.view.generated",
10
11
  props: { view: {} },
@@ -28,7 +29,7 @@ var g = /* @__PURE__ */ o({
28
29
  "data-mps": "otp-input"
29
30
  }, e.view.feedback.attrs), u(e.view.feedback.text), 17)) : r("", !0)], 16));
30
31
  }
31
- }), _ = /* @__PURE__ */ o({
32
+ }), v = /* @__PURE__ */ o({
32
33
  name: "BsOtpInput",
33
34
  __name: "BsOtpInput.generated",
34
35
  props: {
@@ -91,8 +92,8 @@ var g = /* @__PURE__ */ o({
91
92
  ],
92
93
  setup(t, { expose: r, emit: i }) {
93
94
  let a = t, o = i;
94
- p("otp-input", h);
95
- let l = f("template"), u = e(m, () => ({
95
+ p(m.key, m.css, { order: m.order }), p("otp-input", g);
96
+ let l = f("template"), u = e(h, () => ({
96
97
  groups: a.groups,
97
98
  type: a.type,
98
99
  letterCase: a.letterCase,
@@ -109,15 +110,15 @@ var g = /* @__PURE__ */ o({
109
110
  root: () => l.value?.$el,
110
111
  emit: (e, t) => o(e.startsWith("update:") ? e : e.toLowerCase(), t),
111
112
  models: ["value"]
112
- }), _ = u.props;
113
+ }), v = u.props;
113
114
  return r({
114
115
  clear: (...e) => u.call("clear", e),
115
116
  focusInput: (...e) => u.call("focusInput", e)
116
- }), (e, t) => (c(), n(g, s({
117
+ }), (e, t) => (c(), n(_, s({
117
118
  ref_key: "template",
118
119
  ref: l
119
- }, d(_)), null, 16));
120
+ }, d(v)), null, 16));
120
121
  }
121
122
  });
122
123
  //#endregion
123
- export { _ as BsOtpInput };
124
+ export { v as BsOtpInput };
@@ -108,8 +108,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
108
108
  disabled: boolean;
109
109
  value: string;
110
110
  size: import('@mintplayer/ui-core/otp-input').OtpInputSize;
111
- type: import('@mintplayer/ui-core/otp-input').OtpInputType;
112
111
  invalid: boolean;
112
+ type: import('@mintplayer/ui-core/otp-input').OtpInputType;
113
113
  inputLabel: string | null | undefined;
114
114
  required: boolean;
115
115
  errorText: string | null | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mintplayer/vue-bootstrap",
3
- "version": "3.31.0",
3
+ "version": "3.32.0",
4
4
  "description": "Vue 3.5 Bootstrap components. Each sub-entry renders its own template over a framework-neutral core from @mintplayer/ui-core, with v-model on every two-way input, so it server-renders real HTML and defines no custom elements.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -98,6 +98,10 @@
98
98
  "types": "./multi-range/src/index.d.ts",
99
99
  "import": "./multi-range/index.mjs"
100
100
  },
101
+ "./nav": {
102
+ "types": "./nav/src/index.d.ts",
103
+ "import": "./nav/index.mjs"
104
+ },
101
105
  "./navbar": {
102
106
  "types": "./navbar/src/index.d.ts",
103
107
  "import": "./navbar/index.mjs"
@@ -146,6 +150,10 @@
146
150
  "types": "./signature-pad/src/index.d.ts",
147
151
  "import": "./signature-pad/index.mjs"
148
152
  },
153
+ "./spinner": {
154
+ "types": "./spinner/src/index.d.ts",
155
+ "import": "./spinner/index.mjs"
156
+ },
149
157
  "./splitter": {
150
158
  "types": "./splitter/src/index.d.ts",
151
159
  "import": "./splitter/index.mjs"
@@ -188,7 +196,7 @@
188
196
  }
189
197
  },
190
198
  "peerDependencies": {
191
- "@mintplayer/ui-core": "^1.4.0",
199
+ "@mintplayer/ui-core": "^1.5.0",
192
200
  "vue": "^3.5.0"
193
201
  },
194
202
  "dependencies": {
@@ -1,10 +1,12 @@
1
- import { Fragment as e, computed as t, createElementBlock as n, createElementVNode as r, defineComponent as i, guardReactiveProps as a, mergeModels as o, mergeProps as s, normalizeClass as c, normalizeProps as l, openBlock as u, renderList as d, toDisplayString as f, useModel as p } from "vue";
1
+ import { Fragment as e, computed as t, createElementBlock as n, createElementVNode as r, defineComponent as i, mergeModels as a, mergeProps as o, normalizeClass as s, openBlock as c, renderList as l, toDisplayString as u, useModel as d } from "vue";
2
+ import { installBootstrap as f } from "@mintplayer/ui-core/bootstrap";
3
+ import { bootstrapPagination as p } from "@mintplayer/ui-core/bootstrap/pagination";
2
4
  import { connectPagination as m, isPlainClick as h } from "@mintplayer/ui-core/pagination";
3
5
  //#region libs/mintplayer-vue-bootstrap/pagination/src/BsPagination.vue?vue&type=script&setup=true&lang.ts
4
6
  var g = ["href", "onClick"], _ = ["onClick"], v = /* @__PURE__ */ i({
5
7
  inheritAttrs: !1,
6
8
  __name: "BsPagination",
7
- props: /*@__PURE__*/ o({
9
+ props: /*@__PURE__*/ a({
8
10
  pageNumbers: { default: () => [] },
9
11
  numberOfBoxes: { default: 0 },
10
12
  showArrows: {
@@ -23,14 +25,15 @@ var g = ["href", "onClick"], _ = ["onClick"], v = /* @__PURE__ */ i({
23
25
  }),
24
26
  emits: ["update:modelValue"],
25
27
  setup(i) {
26
- let o = i, v = p(i, "modelValue"), y = t(() => m({
27
- pageNumbers: o.pageNumbers,
28
+ f(p);
29
+ let a = i, v = d(i, "modelValue"), y = t(() => m({
30
+ pageNumbers: a.pageNumbers,
28
31
  selectedPageNumber: typeof v.value == "number" ? v.value : 1,
29
- numberOfBoxes: o.numberOfBoxes,
30
- showArrows: o.showArrows,
31
- size: o.size,
32
- labels: o.labels,
33
- hrefFor: o.hrefFor
32
+ numberOfBoxes: a.numberOfBoxes,
33
+ showArrows: a.showArrows,
34
+ size: a.size,
35
+ labels: a.labels,
36
+ hrefFor: a.hrefFor
34
37
  }));
35
38
  function b(e) {
36
39
  e !== null && (v.value = e);
@@ -38,25 +41,29 @@ var g = ["href", "onClick"], _ = ["onClick"], v = /* @__PURE__ */ i({
38
41
  function x(e, t) {
39
42
  h(e) && (e.preventDefault(), b(t));
40
43
  }
41
- return (t, i) => (u(), n("nav", l(a({
44
+ return (t, i) => (c(), n("nav", o({ "data-mps": "pagination" }, {
42
45
  ...y.value.nav,
43
46
  ...t.$attrs
44
- })), [r("ul", { class: c(y.value.listClass) }, [(u(!0), n(e, null, d(y.value.entries, (e) => (u(), n("li", {
47
+ }), [r("ul", {
48
+ "data-mps": "pagination",
49
+ class: s(y.value.listClass)
50
+ }, [(c(!0), n(e, null, l(y.value.entries, (e) => (c(), n("li", {
51
+ "data-mps": "pagination",
45
52
  key: e.key,
46
- class: c(e.itemClass)
47
- }, [e.kind === "gap" ? (u(), n("span", s({
53
+ class: s(e.itemClass)
54
+ }, [e.kind === "gap" ? (c(), n("span", o({
48
55
  key: 0,
49
- ref_for: !0
50
- }, e.attrs), f(e.text), 17)) : y.value.tag === "a" ? (u(), n("a", s({
56
+ "data-mps": "pagination"
57
+ }, { ref_for: !0 }, e.attrs), u(e.text), 17)) : y.value.tag === "a" ? (c(), n("a", o({
51
58
  key: 1,
52
- ref_for: !0
53
- }, e.attrs, {
59
+ "data-mps": "pagination"
60
+ }, { ref_for: !0 }, e.attrs, {
54
61
  href: e.href ?? void 0,
55
62
  onClick: (t) => x(t, e.target)
56
- }), f(e.text), 17, g)) : (u(), n("button", s({
63
+ }), u(e.text), 17, g)) : (c(), n("button", o({
57
64
  key: 2,
58
- ref_for: !0
59
- }, e.attrs, { onClick: (t) => b(e.target) }), f(e.text), 17, _))], 2))), 128))], 2)], 16));
65
+ "data-mps": "pagination"
66
+ }, { ref_for: !0 }, e.attrs, { onClick: (t) => b(e.target) }), u(e.text), 17, _))], 2))), 128))], 2)], 16));
60
67
  }
61
68
  });
62
69
  //#endregion
@@ -1,13 +1,14 @@
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, createTextVNode as o, defineComponent as s, mergeProps as c, openBlock as l, renderList as u, toDisplayString as d, unref as f, useTemplateRef as p } from "vue";
3
3
  import { installLightStyles as m } from "@mintplayer/ui-core/scoped-styles";
4
- import { phoneInputCore as h, phoneInputScopedStyles as g } from "@mintplayer/ui-core/phone-input";
4
+ import { bootstrapForms as h } from "@mintplayer/ui-core/bootstrap/forms";
5
+ import { phoneInputCore as g, phoneInputScopedStyles as _ } from "@mintplayer/ui-core/phone-input";
5
6
  //#region libs/mintplayer-vue-bootstrap/phone-input/src/generated/phone-input.view.generated.vue?vue&type=script&setup=true&lang.ts
6
- var _ = {
7
+ var v = {
7
8
  key: 0,
8
9
  "data-mps": "phone-input",
9
10
  type: "button"
10
- }, v = ["innerHTML"], y = ["innerHTML"], b = /* @__PURE__ */ s({
11
+ }, y = ["innerHTML"], b = ["innerHTML"], x = /* @__PURE__ */ s({
11
12
  inheritAttrs: !1,
12
13
  __name: "phone-input.view.generated",
13
14
  props: { view: {} },
@@ -19,16 +20,16 @@ var _ = {
19
20
  ref: "root"
20
21
  }, e.view.root), [
21
22
  a("div", c({ "data-mps": "phone-input" }, e.view.group), [
22
- a("select", c({ "data-mps": "phone-input" }, e.view.select), [e.view.rich ? (l(), i("button", _, [...s[0] ||= [a("selectedcontent", null, null, -1)]])) : r("", !0), (l(!0), i(t, null, u(e.view.options, (n) => (l(), i("option", c({
23
+ a("select", c({ "data-mps": "phone-input" }, e.view.select), [e.view.rich ? (l(), i("button", v, [...s[0] ||= [a("selectedcontent", null, null, -1)]])) : r("", !0), (l(!0), i(t, null, u(e.view.options, (n) => (l(), i("option", c({
23
24
  "data-mps": "phone-input",
24
25
  key: n.key
25
26
  }, { ref_for: !0 }, n.bag), [e.view.rich ? (l(), i(t, { key: 0 }, [
26
- a("span", c({ "data-mps": "phone-input" }, { ref_for: !0 }, e.view.flagBox, { innerHTML: n.flag }), null, 16, v),
27
+ a("span", c({ "data-mps": "phone-input" }, { ref_for: !0 }, e.view.flagBox, { innerHTML: n.flag }), null, 16, y),
27
28
  a("span", c({ "data-mps": "phone-input" }, { ref_for: !0 }, e.view.richLabel), d(n.name), 17),
28
29
  a("span", c({ "data-mps": "phone-input" }, { ref_for: !0 }, e.view.listOnly), d(n.dial), 17),
29
30
  a("span", c({ "data-mps": "phone-input" }, { ref_for: !0 }, e.view.closedOnly), d(n.iso), 17)
30
31
  ], 64)) : (l(), i(t, { key: 1 }, [o(d(n.label), 1)], 64))], 16))), 128))], 16),
31
- a("span", c({ "data-mps": "phone-input" }, e.view.addon), [a("span", c({ "data-mps": "phone-input" }, e.view.flag, { innerHTML: e.view.flagHtml }), null, 16, y), a("span", c({ "data-mps": "phone-input" }, e.view.dial), d(e.view.dialText), 17)], 16),
32
+ a("span", c({ "data-mps": "phone-input" }, e.view.addon), [a("span", c({ "data-mps": "phone-input" }, e.view.flag, { innerHTML: e.view.flagHtml }), null, 16, b), a("span", c({ "data-mps": "phone-input" }, e.view.dial), d(e.view.dialText), 17)], 16),
32
33
  a("input", c({ "data-mps": "phone-input" }, {
33
34
  ...e.view.input,
34
35
  ...n.$attrs,
@@ -47,7 +48,7 @@ var _ = {
47
48
  }, e.view.feedback.attrs), d(e.view.feedback.text), 17)) : r("", !0)
48
49
  ], 16));
49
50
  }
50
- }), x = /* @__PURE__ */ s({
51
+ }), S = /* @__PURE__ */ s({
51
52
  name: "BsPhoneInput",
52
53
  __name: "BsPhoneInput.generated",
53
54
  props: {
@@ -121,8 +122,8 @@ var _ = {
121
122
  ],
122
123
  setup(t, { expose: r, emit: i }) {
123
124
  let a = t, o = i;
124
- m("phone-input", g);
125
- let s = p("template"), u = e(h, () => ({
125
+ m(h.key, h.css, { order: h.order }), m("phone-input", _);
126
+ let s = p("template"), u = e(g, () => ({
126
127
  value: a.value,
127
128
  country: a.country,
128
129
  defaultCountry: a.defaultCountry,
@@ -147,11 +148,11 @@ var _ = {
147
148
  return r({
148
149
  focusInput: (...e) => u.call("focusInput", e),
149
150
  whenReady: (...e) => u.call("whenReady", e)
150
- }), (e, t) => (l(), n(b, c({
151
+ }), (e, t) => (l(), n(x, c({
151
152
  ref_key: "template",
152
153
  ref: s
153
154
  }, f(d)), null, 16));
154
155
  }
155
156
  });
156
157
  //#endregion
157
- export { x as BsPhoneInput };
158
+ export { S as BsPhoneInput };
@@ -1,10 +1,12 @@
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, createVNode as c, defineComponent as l, guardReactiveProps as u, mergeProps as d, normalizeProps as f, openBlock as p, renderList as m, renderSlot as h, toDisplayString as g, unref as _, useTemplateRef as v, withCtx as y } from "vue";
3
3
  import { installLightStyles as b } from "@mintplayer/ui-core/scoped-styles";
4
- import { DEFAULT_MESSAGES as x, DEFAULT_OPERATOR_CATALOG as S, MaxDepthExceededError as C, addChild as w, addEmptyConditionTo as T, addEmptyGroupTo as E, addEmptySubqueryTo as D, changeConditionField as O, changeConditionOperator as k, cloneTree as A, collectDescendantIds as j, defaultValueFor as M, emptyCondition as N, emptyGroup as P, emptySubquery as F, findNodeById as I, mapTree as L, moveNode as R, newId as z, operatorsForType as B, queryBuilderCore as V, queryBuilderScopedStyles as H, removeNode as U, renderExpression as W, setGroupLogic as G, updateCondition as K, validateOperatorOverrides as q, valueShapeFor as J, visitTree as Y } from "@mintplayer/ui-core/query-builder";
4
+ import { bootstrapForms as x } from "@mintplayer/ui-core/bootstrap/forms";
5
+ import { DEFAULT_MESSAGES as S, DEFAULT_OPERATOR_CATALOG as C, MaxDepthExceededError as w, addChild as T, addEmptyConditionTo as E, addEmptyGroupTo as D, addEmptySubqueryTo as O, changeConditionField as k, changeConditionOperator as A, cloneTree as j, collectDescendantIds as M, defaultValueFor as N, emptyCondition as P, emptyGroup as F, emptySubquery as I, findNodeById as L, mapTree as R, moveNode as z, newId as B, operatorsForType as V, queryBuilderCore as H, queryBuilderScopedStyles as U, removeNode as W, renderExpression as G, setGroupLogic as K, updateCondition as q, validateOperatorOverrides as J, valueShapeFor as Y, visitTree as X } from "@mintplayer/ui-core/query-builder";
6
+ import { bootstrapButtonGroup as Z } from "@mintplayer/ui-core/bootstrap/button-group";
5
7
  //#endregion
6
8
  //#region libs/mintplayer-vue-bootstrap/query-builder/src/generated/query-builder-item.view.generated.vue
7
- var X = /* @__PURE__ */ l({
9
+ var Q = /* @__PURE__ */ l({
8
10
  __name: "query-builder-item.view.generated",
9
11
  props: {
10
12
  node: {},
@@ -78,7 +80,7 @@ var X = /* @__PURE__ */ l({
78
80
  }, e.node.note), g(e.node.text), 17)), e.node.children.length ? (p(), i("ul", d({
79
81
  key: 4,
80
82
  "data-mps": "query-builder"
81
- }, e.node.list), [(p(!0), i(t, null, m(e.node.children, (t) => (p(), n(X, {
83
+ }, e.node.list), [(p(!0), i(t, null, m(e.node.children, (t) => (p(), n(Q, {
82
84
  key: t.key,
83
85
  node: t,
84
86
  view: e.view
@@ -88,7 +90,7 @@ var X = /* @__PURE__ */ l({
88
90
  key: "0"
89
91
  } : void 0]), 1032, ["node", "view"]))), 128))], 16)) : r("", !0)], 16));
90
92
  }
91
- }), Z = /* @__PURE__ */ l({
93
+ }), $ = /* @__PURE__ */ l({
92
94
  __name: "query-builder.view.generated",
93
95
  props: { view: {} },
94
96
  setup(e) {
@@ -147,7 +149,7 @@ var X = /* @__PURE__ */ l({
147
149
  key: 2,
148
150
  "data-mps": "query-builder"
149
151
  }, e.view.previewBox), g(e.view.previewText), 17)) : r("", !0),
150
- a("ul", d({ "data-mps": "query-builder" }, e.view.list), [c(X, {
152
+ a("ul", d({ "data-mps": "query-builder" }, e.view.list), [c(Q, {
151
153
  node: e.view.tree,
152
154
  view: e.view
153
155
  }, o({ _: 2 }, [n.$slots.editor ? {
@@ -157,7 +159,7 @@ var X = /* @__PURE__ */ l({
157
159
  } : void 0]), 1032, ["node", "view"])], 16)
158
160
  ], 16));
159
161
  }
160
- }), Q = /* @__PURE__ */ l({
162
+ }), ee = /* @__PURE__ */ l({
161
163
  name: "BsQueryBuilder",
162
164
  __name: "BsQueryBuilder.generated",
163
165
  props: {
@@ -225,8 +227,8 @@ var X = /* @__PURE__ */ l({
225
227
  ],
226
228
  setup(t, { emit: r }) {
227
229
  let i = t, a = r;
228
- b("query-builder", H);
229
- let s = v("template"), c = e(V, () => ({
230
+ b(x.key, x.css, { order: x.order }), b(Z.key, Z.css, { order: Z.order }), b("query-builder", U);
231
+ let s = v("template"), c = e(H, () => ({
230
232
  query: i.query,
231
233
  schema: i.schema,
232
234
  rootEntity: i.rootEntity,
@@ -250,7 +252,7 @@ var X = /* @__PURE__ */ l({
250
252
  "sortBy"
251
253
  ]
252
254
  }).props;
253
- return (e, t) => (p(), n(Z, d({
255
+ return (e, t) => (p(), n($, d({
254
256
  ref_key: "template",
255
257
  ref: s
256
258
  }, _(c)), o({ _: 2 }, [e.$slots.editor ? {
@@ -261,4 +263,4 @@ var X = /* @__PURE__ */ l({
261
263
  }
262
264
  });
263
265
  //#endregion
264
- export { Q as BsQueryBuilder, x as DEFAULT_MESSAGES, S as DEFAULT_OPERATOR_CATALOG, C as MaxDepthExceededError, w as addChild, T as addEmptyConditionTo, E as addEmptyGroupTo, D as addEmptySubqueryTo, O as changeConditionField, k as changeConditionOperator, A as cloneTree, j as collectDescendantIds, M as defaultValueFor, N as emptyCondition, P as emptyGroup, F as emptySubquery, I as findNodeById, L as mapTree, R as moveNode, z as newId, B as operatorsForType, U as removeNode, W as renderExpression, G as setGroupLogic, K as updateCondition, q as validateOperatorOverrides, J as valueShapeFor, Y as visitTree };
266
+ export { ee as BsQueryBuilder, S as DEFAULT_MESSAGES, C as DEFAULT_OPERATOR_CATALOG, w as MaxDepthExceededError, T as addChild, E as addEmptyConditionTo, D as addEmptyGroupTo, O as addEmptySubqueryTo, k as changeConditionField, A as changeConditionOperator, j as cloneTree, M as collectDescendantIds, N as defaultValueFor, P as emptyCondition, F as emptyGroup, I as emptySubquery, L as findNodeById, R as mapTree, z as moveNode, B as newId, V as operatorsForType, W as removeNode, G as renderExpression, K as setGroupLogic, q as updateCondition, J as validateOperatorOverrides, Y as valueShapeFor, X as visitTree };
package/radio/index.mjs CHANGED
@@ -1,8 +1,10 @@
1
1
  import { t as e } from "../chunks/radio-group-key-CnFhXLW0.mjs";
2
- import { Fragment as t, computed as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, defineComponent as o, inject as s, mergeModels as c, mergeProps as l, normalizeClass as u, normalizeProps as d, openBlock as f, renderSlot as p, toDisplayString as m, useAttrs as h, useId as g, useModel as _ } from "vue";
3
- import { connectRadio as v, radioClasses as y } from "@mintplayer/ui-core/radio";
2
+ import { Fragment as t, computed as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, defineComponent as o, inject as s, mergeModels as c, mergeProps as l, normalizeClass as u, openBlock as d, renderSlot as f, toDisplayString as p, useAttrs as m, useId as h, useModel as g } from "vue";
3
+ import { installBootstrap as _ } from "@mintplayer/ui-core/bootstrap";
4
+ import { bootstrapForms as v } from "@mintplayer/ui-core/bootstrap/forms";
5
+ import { connectRadio as y, radioClasses as b } from "@mintplayer/ui-core/radio";
4
6
  //#region libs/mintplayer-vue-bootstrap/radio/src/BsRadio.vue?vue&type=script&setup=true&lang.ts
5
- var b = ["checked"], x = ["for"], S = ["checked"], C = /* @__PURE__ */ o({
7
+ var x = ["checked"], S = ["for"], C = ["checked"], w = /* @__PURE__ */ o({
6
8
  inheritAttrs: !1,
7
9
  __name: "BsRadio",
8
10
  props: /*@__PURE__*/ c({
@@ -32,51 +34,62 @@ var b = ["checked"], x = ["for"], S = ["checked"], C = /* @__PURE__ */ o({
32
34
  }),
33
35
  emits: ["update:modelValue"],
34
36
  setup(o) {
35
- let c = o, C = _(o, "modelValue"), w = s(e, null), T = `bs-radio-${g()}`, E = n(() => w ? w.value.value !== null && w.value.value === c.value : C.value), D = n(() => ({
37
+ _(v);
38
+ let c = o, w = g(o, "modelValue"), T = s(e, null), E = `bs-radio-${h()}`, D = n(() => T ? T.value.value !== null && T.value.value === c.value : w.value), O = n(() => ({
36
39
  type: c.type,
37
- checked: E.value,
38
- disabled: c.disabled || !!w?.disabled.value,
39
- required: c.required || !!w?.required.value,
40
+ checked: D.value,
41
+ disabled: c.disabled || !!T?.disabled.value,
42
+ required: c.required || !!T?.required.value,
40
43
  invalid: c.invalid,
41
- name: w?.name.value ?? c.name,
44
+ name: T?.name.value ?? c.name,
42
45
  value: c.value,
43
46
  errorText: c.errorText
44
- })), O = n(() => y(c.type, c.color, c.invalid)), k = h();
45
- function A() {
46
- let { "aria-describedby": e, ...t } = k;
47
+ })), k = n(() => b(c.type, c.color, c.invalid)), A = m();
48
+ function j() {
49
+ let { "aria-describedby": e, ...t } = A;
47
50
  return {
48
- ...v(D.value, T, e ?? null).input,
51
+ ...y(O.value, E, e ?? null).input,
49
52
  ...t
50
53
  };
51
54
  }
52
- let j = n(() => v(D.value, T));
53
- function M() {
54
- return String(k.id ?? j.value.input.id);
55
+ let M = n(() => y(O.value, E));
56
+ function N() {
57
+ return String(A.id ?? M.value.input.id);
55
58
  }
56
- function N(e) {
59
+ function P(e) {
57
60
  let t = e.target.checked;
58
- w && c.value !== null ? w.select(c.value) : C.value = t;
61
+ T && c.value !== null ? T.select(c.value) : w.value = t;
59
62
  }
60
- return (e, n) => (f(), i(t, null, [O.value.root === null ? (f(), i(t, { key: 0 }, [a("input", l({
63
+ return (e, n) => (d(), i(t, null, [k.value.root === null ? (d(), i(t, { key: 0 }, [a("input", l({
64
+ "data-mps": "radio",
61
65
  type: "radio",
62
- class: O.value.input
63
- }, A(), {
64
- checked: E.value,
65
- onChange: N
66
- }), null, 16, b), a("label", {
67
- class: u(O.value.label),
68
- for: M()
69
- }, [p(e.$slots, "default")], 10, x)], 64)) : (f(), i("label", {
66
+ class: k.value.input
67
+ }, j(), {
68
+ checked: D.value,
69
+ onChange: P
70
+ }), null, 16, x), a("label", {
71
+ "data-mps": "radio",
72
+ class: u(k.value.label),
73
+ for: N()
74
+ }, [f(e.$slots, "default")], 10, S)], 64)) : (d(), i("label", {
70
75
  key: 1,
71
- class: u(O.value.root)
76
+ "data-mps": "radio",
77
+ class: u(k.value.root)
72
78
  }, [a("input", l({
79
+ "data-mps": "radio",
73
80
  type: "radio",
74
- class: O.value.input
75
- }, A(), {
76
- checked: E.value,
77
- onChange: N
78
- }), null, 16, S), a("span", { class: u(O.value.label) }, [p(e.$slots, "default")], 2)], 2)), j.value.feedback ? (f(), i("div", d(l({ key: 2 }, j.value.feedback.attrs)), m(j.value.feedback.text), 17)) : r("", !0)], 64));
81
+ class: k.value.input
82
+ }, j(), {
83
+ checked: D.value,
84
+ onChange: P
85
+ }), null, 16, C), a("span", {
86
+ "data-mps": "radio",
87
+ class: u(k.value.label)
88
+ }, [f(e.$slots, "default")], 2)], 2)), M.value.feedback ? (d(), i("div", l({
89
+ key: 2,
90
+ "data-mps": "radio"
91
+ }, M.value.feedback.attrs), p(M.value.feedback.text), 17)) : r("", !0)], 64));
79
92
  }
80
93
  });
81
94
  //#endregion
82
- export { C as BsRadio, e as radioGroupKey };
95
+ export { w as BsRadio, e as radioGroupKey };
@@ -34,8 +34,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
34
34
  name: string | null;
35
35
  disabled: boolean;
36
36
  value: string | null;
37
- type: RadioType;
38
37
  invalid: boolean;
38
+ type: RadioType;
39
39
  color: ToggleButtonColor;
40
40
  required: boolean;
41
41
  errorText: string | null;
@@ -82,8 +82,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
82
82
  label: string | undefined;
83
83
  disabled: boolean | undefined;
84
84
  size: import('@mintplayer/ui-core/ribbon').RibbonItemSize | undefined;
85
- checked: boolean | undefined;
86
85
  tooltip: string | undefined;
86
+ checked: boolean | undefined;
87
87
  keyTip: string | null | undefined;
88
88
  icon: string | undefined;
89
89
  itemId: string | undefined;
@@ -82,8 +82,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
82
82
  label: string | undefined;
83
83
  disabled: boolean | undefined;
84
84
  size: import('@mintplayer/ui-core/ribbon').RibbonItemSize | undefined;
85
- color: string | undefined;
86
85
  tooltip: string | undefined;
86
+ color: string | undefined;
87
87
  keyTip: string | null | undefined;
88
88
  icon: string | undefined;
89
89
  itemId: string | undefined;