@mintplayer/react-bootstrap 19.30.0 → 19.31.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 (56) hide show
  1. package/README.md +12 -11
  2. package/accordion/index.mjs +48 -46
  3. package/card/index.mjs +90 -76
  4. package/card/src/BsCard.d.ts +1 -1
  5. package/card/src/BsCardBody.d.ts +1 -1
  6. package/card/src/BsCardFooter.d.ts +1 -1
  7. package/card/src/BsCardLink.d.ts +1 -1
  8. package/card/src/BsCardSubtitle.d.ts +2 -2
  9. package/card/src/BsCardText.d.ts +1 -1
  10. package/card/src/BsCardTitle.d.ts +1 -1
  11. package/carousel/index.mjs +26 -25
  12. package/checkbox/index.mjs +1 -1
  13. package/chunks/BsCheckbox-BZkPJ13E.mjs +66 -0
  14. package/chunks/{BsDatatable.generated-DCwT6fdk.mjs → BsDatatable.generated-DqNW60JA.mjs} +54 -52
  15. package/chunks/{BsDatetimePicker.generated-B4WBEiCo.mjs → BsDatetimePicker.generated-CxaiRt79.mjs} +32 -31
  16. package/chunks/BsRadio-Bw_MhAOq.mjs +57 -0
  17. package/datatable/index.mjs +1 -1
  18. package/datepicker/index.mjs +28 -27
  19. package/datetime-picker/index.mjs +1 -1
  20. package/dropdown-menu/index.mjs +43 -38
  21. package/file-manager/index.mjs +21 -20
  22. package/input-group/index.mjs +17 -15
  23. package/machine/index.mjs +48 -39
  24. package/machine/src/index.d.ts +1 -0
  25. package/machine/src/mark-links.d.ts +8 -0
  26. package/nav/index.mjs +85 -0
  27. package/nav/src/generated/BsNav.generated.d.ts +15 -0
  28. package/nav/src/generated/BsNavItem.generated.d.ts +6 -0
  29. package/nav/src/generated/index.d.ts +2 -0
  30. package/nav/src/generated/nav-item.view.generated.d.ts +14 -0
  31. package/nav/src/generated/nav.view.generated.d.ts +14 -0
  32. package/nav/src/index.d.ts +1 -0
  33. package/nav/src/nav-item.react.d.ts +4 -0
  34. package/navbar/index.mjs +87 -77
  35. package/navbar/src/navbar-item.react.d.ts +4 -0
  36. package/otp-input/index.mjs +24 -23
  37. package/package.json +10 -2
  38. package/pagination/index.mjs +37 -27
  39. package/phone-input/index.mjs +26 -25
  40. package/query-builder/index.mjs +30 -28
  41. package/radio/index.mjs +1 -1
  42. package/radio-group/index.mjs +1 -1
  43. package/scheduler/index.mjs +42 -41
  44. package/select/index.mjs +27 -26
  45. package/signature-pad/index.mjs +23 -22
  46. package/spinner/index.mjs +50 -0
  47. package/spinner/src/generated/BsSpinner.generated.d.ts +11 -0
  48. package/spinner/src/generated/index.d.ts +1 -0
  49. package/spinner/src/generated/spinner.view.generated.d.ts +15 -0
  50. package/spinner/src/index.d.ts +1 -0
  51. package/tab-control/index.mjs +56 -54
  52. package/timepicker/index.mjs +42 -41
  53. package/toggle-button/index.mjs +1 -1
  54. package/typeahead/index.mjs +90 -87
  55. package/chunks/BsCheckbox-BWU2Hrhf.mjs +0 -57
  56. package/chunks/BsRadio-D1C6Aqjv.mjs +0 -48
@@ -4,9 +4,10 @@ import * as r from "react";
4
4
  import { forwardRef as i, useImperativeHandle as a, useRef as o } from "react";
5
5
  import { installLightStyles as s } from "@mintplayer/ui-core/scoped-styles";
6
6
  import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
7
- import { otpInputCore as d, otpInputScopedStyles as f } from "@mintplayer/ui-core/otp-input";
7
+ import { bootstrapForms as d } from "@mintplayer/ui-core/bootstrap/forms";
8
+ import { otpInputCore as f, otpInputScopedStyles as p } from "@mintplayer/ui-core/otp-input";
8
9
  //#region libs/mintplayer-react-bootstrap/otp-input/src/generated/otp-input.view.generated.tsx
9
- function p({ view: n, slots: i = {}, children: a, className: o, attrs: s, rootRef: d }) {
10
+ function m({ view: n, slots: i = {}, children: a, className: o, attrs: s, rootRef: d }) {
10
11
  return /* @__PURE__ */ l(c, { children: /* @__PURE__ */ u("div", {
11
12
  "data-mps": "otp-input",
12
13
  ...e(n.root),
@@ -42,44 +43,44 @@ function p({ view: n, slots: i = {}, children: a, className: o, attrs: s, rootRe
42
43
  }
43
44
  //#endregion
44
45
  //#region libs/mintplayer-react-bootstrap/otp-input/src/generated/BsOtpInput.generated.tsx
45
- var m = [
46
+ var h = [
46
47
  1,
47
48
  1,
48
49
  1,
49
50
  1,
50
51
  1,
51
52
  1
52
- ], h = i(function({ groups: e = m, type: t = "numeric", letterCase: r = "upper", size: i = "md", disabled: c = !1, required: u = !1, invalid: h = !1, errorText: g, name: _, inputLabel: v, value: y = "", onValueChange: b, onComplete: x, className: S, children: C, ...w }, T) {
53
- s("otp-input", f);
54
- let E = o(null);
55
- a(T, () => E.current);
56
- let D = n(d, {
53
+ ], g = i(function({ groups: e = h, type: t = "numeric", letterCase: r = "upper", size: i = "md", disabled: c = !1, required: u = !1, invalid: g = !1, errorText: _, name: v, inputLabel: y, value: b = "", onValueChange: x, onComplete: S, className: C, children: w, ...T }, E) {
54
+ s(d.key, d.css, { order: d.order }), s("otp-input", p);
55
+ let D = o(null);
56
+ a(E, () => D.current);
57
+ let O = n(f, {
57
58
  groups: e,
58
59
  type: t,
59
60
  letterCase: r,
60
61
  size: i,
61
62
  disabled: c,
62
63
  required: u,
63
- invalid: h,
64
- errorText: g,
65
- name: _,
66
- inputLabel: v,
67
- value: y
64
+ invalid: g,
65
+ errorText: _,
66
+ name: v,
67
+ inputLabel: y,
68
+ value: b
68
69
  }, {
69
70
  idPrefix: "bs-otp-input",
70
- label: w["aria-label"],
71
- rootRef: E,
71
+ label: T["aria-label"],
72
+ rootRef: D,
72
73
  emit: (e, t) => {
73
- e === "valueChange" && b?.(t), e === "complete" && x?.(t);
74
+ e === "valueChange" && x?.(t), e === "complete" && S?.(t);
74
75
  }
75
76
  });
76
- return /* @__PURE__ */ l(p, {
77
- ...D.props,
78
- className: S,
79
- attrs: w,
80
- rootRef: E,
81
- children: C
77
+ return /* @__PURE__ */ l(m, {
78
+ ...O.props,
79
+ className: C,
80
+ attrs: T,
81
+ rootRef: D,
82
+ children: w
82
83
  });
83
84
  });
84
85
  //#endregion
85
- export { h as BsOtpInput };
86
+ export { g as BsOtpInput };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mintplayer/react-bootstrap",
3
- "version": "19.30.0",
3
+ "version": "19.31.0",
4
4
  "description": "React 19 Bootstrap components. Each sub-entry renders its own JSX over a framework-neutral core from @mintplayer/ui-core, 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
  "react": "^19.0.0",
193
201
  "react-dom": "^19.0.0"
194
202
  },
@@ -1,41 +1,51 @@
1
1
  import { r as e } from "../chunks/react-props-C2O2_2V2.mjs";
2
- import { forwardRef as t, useState as n } from "react";
3
- import { jsx as r } from "react/jsx-runtime";
4
- import { connectPagination as i, isPlainClick as a } from "@mintplayer/ui-core/pagination";
2
+ import { installBootstrap as t } from "@mintplayer/ui-core/bootstrap";
3
+ import { forwardRef as n, useState as r } from "react";
4
+ import { jsx as i } from "react/jsx-runtime";
5
+ import { bootstrapPagination as a } from "@mintplayer/ui-core/bootstrap/pagination";
6
+ import { connectPagination as o, isPlainClick as s } from "@mintplayer/ui-core/pagination";
5
7
  //#region libs/mintplayer-react-bootstrap/pagination/src/BsPagination.tsx
6
- var o = t(function(t, o) {
7
- let { pageNumbers: s = [], selectedPageNumber: c, defaultSelectedPageNumber: l = 1, numberOfBoxes: u = 0, showArrows: d = !0, size: f = "medium", labels: p = null, hrefFor: m = null, onPageChange: h, ...g } = t, [_, v] = n(l), y = c ?? _, b = i({
8
- pageNumbers: s,
9
- selectedPageNumber: y,
10
- numberOfBoxes: u,
11
- showArrows: d,
12
- size: f,
13
- labels: p,
14
- hrefFor: m
15
- }), x = (e) => {
16
- e !== null && e !== y && (v(e), h?.(e));
8
+ var c = n(function(n, c) {
9
+ let { pageNumbers: l = [], selectedPageNumber: u, defaultSelectedPageNumber: d = 1, numberOfBoxes: f = 0, showArrows: p = !0, size: m = "medium", labels: h = null, hrefFor: g = null, onPageChange: _, ...v } = n;
10
+ t(a);
11
+ let [y, b] = r(d), x = u ?? y, S = o({
12
+ pageNumbers: l,
13
+ selectedPageNumber: x,
14
+ numberOfBoxes: f,
15
+ showArrows: p,
16
+ size: m,
17
+ labels: h,
18
+ hrefFor: g
19
+ }), C = (e) => {
20
+ e !== null && e !== x && (b(e), _?.(e));
17
21
  };
18
- return /* @__PURE__ */ r("nav", {
19
- ...e(b.nav),
20
- ...g,
21
- ref: o,
22
- children: /* @__PURE__ */ r("ul", {
23
- className: b.listClass,
24
- children: b.entries.map((t) => /* @__PURE__ */ r("li", {
22
+ return /* @__PURE__ */ i("nav", {
23
+ "data-mps": "pagination",
24
+ ...e(S.nav),
25
+ ...v,
26
+ ref: c,
27
+ children: /* @__PURE__ */ i("ul", {
28
+ "data-mps": "pagination",
29
+ className: S.listClass,
30
+ children: S.entries.map((t) => /* @__PURE__ */ i("li", {
31
+ "data-mps": "pagination",
25
32
  className: t.itemClass,
26
- children: t.kind === "gap" ? /* @__PURE__ */ r("span", {
33
+ children: t.kind === "gap" ? /* @__PURE__ */ i("span", {
34
+ "data-mps": "pagination",
27
35
  ...e(t.attrs),
28
36
  children: t.text
29
- }) : b.tag === "a" ? /* @__PURE__ */ r("a", {
37
+ }) : S.tag === "a" ? /* @__PURE__ */ i("a", {
38
+ "data-mps": "pagination",
30
39
  ...e(t.attrs),
31
40
  href: t.href ?? void 0,
32
41
  onClick: (e) => {
33
- a(e.nativeEvent) && (e.preventDefault(), x(t.target));
42
+ s(e.nativeEvent) && (e.preventDefault(), C(t.target));
34
43
  },
35
44
  children: t.text
36
- }) : /* @__PURE__ */ r("button", {
45
+ }) : /* @__PURE__ */ i("button", {
46
+ "data-mps": "pagination",
37
47
  ...e(t.attrs),
38
- onClick: () => x(t.target),
48
+ onClick: () => C(t.target),
39
49
  children: t.text
40
50
  })
41
51
  }, t.key))
@@ -43,4 +53,4 @@ var o = t(function(t, o) {
43
53
  });
44
54
  });
45
55
  //#endregion
46
- export { o as BsPagination };
56
+ export { c as BsPagination };
@@ -4,9 +4,10 @@ import * as i from "react";
4
4
  import { forwardRef as a, useImperativeHandle as o, useRef as s } from "react";
5
5
  import { installLightStyles as c } from "@mintplayer/ui-core/scoped-styles";
6
6
  import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
7
- import { phoneInputCore as f, phoneInputScopedStyles as p } from "@mintplayer/ui-core/phone-input";
7
+ import { bootstrapForms as f } from "@mintplayer/ui-core/bootstrap/forms";
8
+ import { phoneInputCore as p, phoneInputScopedStyles as m } from "@mintplayer/ui-core/phone-input";
8
9
  //#region libs/mintplayer-react-bootstrap/phone-input/src/generated/phone-input.view.generated.tsx
9
- function m({ view: r, slots: a = {}, children: o, className: s, attrs: c, rootRef: f }) {
10
+ function h({ view: r, slots: a = {}, children: o, className: s, attrs: c, rootRef: f }) {
10
11
  return /* @__PURE__ */ u(l, { children: /* @__PURE__ */ d("div", {
11
12
  "data-mps": "phone-input",
12
13
  ...t(r.root),
@@ -86,11 +87,11 @@ function m({ view: r, slots: a = {}, children: o, className: s, attrs: c, rootRe
86
87
  }
87
88
  //#endregion
88
89
  //#region libs/mintplayer-react-bootstrap/phone-input/src/generated/BsPhoneInput.generated.tsx
89
- var h = a(function({ value: e = null, country: t = null, defaultCountry: n, locale: i, preferredCountries: a = null, allowedCountries: l = null, disabled: d = !1, required: h = !1, invalid: g = !1, errorText: _, placeholder: v, autocomplete: y = "tel-national", name: b, inputLabel: x, countryLabel: S, onValueChange: C, onCountryChange: w, onPhoneChange: T, className: E, children: D, ...O }, k) {
90
- c("phone-input", p);
91
- let A = s(null);
92
- o(k, () => A.current);
93
- let j = r(f, {
90
+ var g = a(function({ value: e = null, country: t = null, defaultCountry: n, locale: i, preferredCountries: a = null, allowedCountries: l = null, disabled: d = !1, required: g = !1, invalid: _ = !1, errorText: v, placeholder: y, autocomplete: b = "tel-national", name: x, inputLabel: S, countryLabel: C, onValueChange: w, onCountryChange: T, onPhoneChange: E, className: D, children: O, ...k }, A) {
91
+ c(f.key, f.css, { order: f.order }), c("phone-input", m);
92
+ let j = s(null);
93
+ o(A, () => j.current);
94
+ let M = r(p, {
94
95
  value: e,
95
96
  country: t,
96
97
  defaultCountry: n,
@@ -98,29 +99,29 @@ var h = a(function({ value: e = null, country: t = null, defaultCountry: n, loca
98
99
  preferredCountries: a,
99
100
  allowedCountries: l,
100
101
  disabled: d,
101
- required: h,
102
- invalid: g,
103
- errorText: _,
104
- placeholder: v,
105
- autocomplete: y,
106
- name: b,
107
- inputLabel: x,
108
- countryLabel: S
102
+ required: g,
103
+ invalid: _,
104
+ errorText: v,
105
+ placeholder: y,
106
+ autocomplete: b,
107
+ name: x,
108
+ inputLabel: S,
109
+ countryLabel: C
109
110
  }, {
110
111
  idPrefix: "bs-phone-input",
111
- label: O["aria-label"],
112
- rootRef: A,
112
+ label: k["aria-label"],
113
+ rootRef: j,
113
114
  emit: (e, t) => {
114
- e === "valueChange" && C?.(t), e === "countryChange" && w?.(t), e === "phoneChange" && T?.(t);
115
+ e === "valueChange" && w?.(t), e === "countryChange" && T?.(t), e === "phoneChange" && E?.(t);
115
116
  }
116
117
  });
117
- return /* @__PURE__ */ u(m, {
118
- ...j.props,
119
- className: E,
120
- attrs: O,
121
- rootRef: A,
122
- children: D
118
+ return /* @__PURE__ */ u(h, {
119
+ ...M.props,
120
+ className: D,
121
+ attrs: k,
122
+ rootRef: j,
123
+ children: O
123
124
  });
124
125
  });
125
126
  //#endregion
126
- export { h as BsPhoneInput };
127
+ export { g as BsPhoneInput };
@@ -4,12 +4,14 @@ import * as i from "react";
4
4
  import { forwardRef as a, useImperativeHandle as o, useRef as s } from "react";
5
5
  import { installLightStyles as c } from "@mintplayer/ui-core/scoped-styles";
6
6
  import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
7
- import { DEFAULT_MESSAGES as f, DEFAULT_OPERATOR_CATALOG as p, MaxDepthExceededError as m, addChild as h, addEmptyConditionTo as g, addEmptyGroupTo as _, addEmptySubqueryTo as v, changeConditionField as y, changeConditionOperator as b, cloneTree as x, collectDescendantIds as S, defaultValueFor as C, emptyCondition as w, emptyGroup as T, emptySubquery as E, findNodeById as D, mapTree as O, moveNode as k, newId as A, operatorsForType as j, queryBuilderCore as M, queryBuilderScopedStyles as N, removeNode as P, renderExpression as F, setGroupLogic as I, updateCondition as L, validateOperatorOverrides as R, valueShapeFor as z, visitTree as B } from "@mintplayer/ui-core/query-builder";
7
+ import { bootstrapForms as f } from "@mintplayer/ui-core/bootstrap/forms";
8
+ import { DEFAULT_MESSAGES as p, DEFAULT_OPERATOR_CATALOG as m, MaxDepthExceededError as h, addChild as g, addEmptyConditionTo as _, addEmptyGroupTo as v, addEmptySubqueryTo as y, changeConditionField as b, changeConditionOperator as x, cloneTree as S, collectDescendantIds as C, defaultValueFor as w, emptyCondition as T, emptyGroup as E, emptySubquery as D, findNodeById as O, mapTree as k, moveNode as A, newId as j, operatorsForType as M, queryBuilderCore as N, queryBuilderScopedStyles as P, removeNode as F, renderExpression as I, setGroupLogic as L, updateCondition as R, validateOperatorOverrides as z, valueShapeFor as B, visitTree as V } from "@mintplayer/ui-core/query-builder";
9
+ import { bootstrapButtonGroup as H } from "@mintplayer/ui-core/bootstrap/button-group";
8
10
  //#region libs/mintplayer-react-bootstrap/query-builder/src/generated/query-builder-item.view.generated.tsx
9
- function V(e, t) {
11
+ function U(e, t) {
10
12
  return typeof e == "function" ? e(t) : e;
11
13
  }
12
- function H({ node: r, view: a, slots: o = {}, children: s, className: c, attrs: f }) {
14
+ function W({ node: r, view: a, slots: o = {}, children: s, className: c, attrs: f }) {
13
15
  return /* @__PURE__ */ u(l, { children: /* @__PURE__ */ d("li", {
14
16
  "data-mps": "query-builder",
15
17
  ...t(r.item),
@@ -89,7 +91,7 @@ function H({ node: r, view: a, slots: o = {}, children: s, className: c, attrs:
89
91
  r.condition.hasEditor ? /* @__PURE__ */ u(l, { children: /* @__PURE__ */ u("span", {
90
92
  "data-mps": "query-builder",
91
93
  ...t(r.condition.editor.wrap),
92
- children: r.condition.editor.custom ? /* @__PURE__ */ u(l, { children: o.editor === void 0 ? null : V(o.editor, { ctx: r.condition.editor.ctx }) }) : r.condition.editor.isSelect ? /* @__PURE__ */ u(l, { children: /* @__PURE__ */ u("select", {
94
+ children: r.condition.editor.custom ? /* @__PURE__ */ u(l, { children: o.editor === void 0 ? null : U(o.editor, { ctx: r.condition.editor.ctx }) }) : r.condition.editor.isSelect ? /* @__PURE__ */ u(l, { children: /* @__PURE__ */ u("select", {
93
95
  "data-mps": "query-builder",
94
96
  ...n(r.condition.editor.select),
95
97
  defaultValue: r.condition.editor.selectValue,
@@ -168,7 +170,7 @@ function H({ node: r, view: a, slots: o = {}, children: s, className: c, attrs:
168
170
  }) }), r.children.length ? /* @__PURE__ */ u(l, { children: /* @__PURE__ */ u("ul", {
169
171
  "data-mps": "query-builder",
170
172
  ...t(r.list),
171
- children: r.children.map((e, t) => /* @__PURE__ */ u(i.Fragment, { children: /* @__PURE__ */ u(H, {
173
+ children: r.children.map((e, t) => /* @__PURE__ */ u(i.Fragment, { children: /* @__PURE__ */ u(W, {
172
174
  node: e,
173
175
  view: a,
174
176
  slots: o
@@ -178,7 +180,7 @@ function H({ node: r, view: a, slots: o = {}, children: s, className: c, attrs:
178
180
  }
179
181
  //#endregion
180
182
  //#region libs/mintplayer-react-bootstrap/query-builder/src/generated/query-builder.view.generated.tsx
181
- function U({ view: r, slots: a = {}, children: o, className: s, attrs: c, rootRef: f }) {
183
+ function G({ view: r, slots: a = {}, children: o, className: s, attrs: c, rootRef: f }) {
182
184
  return /* @__PURE__ */ u(l, { children: /* @__PURE__ */ d("div", {
183
185
  "data-mps": "query-builder",
184
186
  ...t(r.root),
@@ -318,7 +320,7 @@ function U({ view: r, slots: a = {}, children: o, className: s, attrs: c, rootRe
318
320
  /* @__PURE__ */ u("ul", {
319
321
  "data-mps": "query-builder",
320
322
  ...t(r.list),
321
- children: /* @__PURE__ */ u(H, {
323
+ children: /* @__PURE__ */ u(W, {
322
324
  node: r.tree,
323
325
  view: r,
324
326
  slots: a
@@ -329,11 +331,11 @@ function U({ view: r, slots: a = {}, children: o, className: s, attrs: c, rootRe
329
331
  }
330
332
  //#endregion
331
333
  //#region libs/mintplayer-react-bootstrap/query-builder/src/generated/BsQueryBuilder.generated.tsx
332
- var W = [], G = [], K = [], q = [], J = a(function({ query: e = null, schema: t = W, rootEntity: n = "", multiEntityPickerEnabled: i = !1, selectedFields: a = G, sortBy: l = K, disabled: d = !1, messages: f, maxDepth: p = 32, showPreview: m = !1, showSavedQueries: h = !1, savedQueries: g = q, onQueryChange: _, onRootEntityChange: v, onSelectedFieldsChange: y, onSortByChange: b, onSaveQuery: x, onLoadQuery: S, onDeleteQuery: C, editor: w, className: T, children: E, ...D }, O) {
333
- c("query-builder", N);
334
- let k = s(null);
335
- o(O, () => k.current);
336
- let A = r(M, {
334
+ var K = [], q = [], J = [], Y = [], X = a(function({ query: e = null, schema: t = K, rootEntity: n = "", multiEntityPickerEnabled: i = !1, selectedFields: a = q, sortBy: l = J, disabled: d = !1, messages: p, maxDepth: m = 32, showPreview: h = !1, showSavedQueries: g = !1, savedQueries: _ = Y, onQueryChange: v, onRootEntityChange: y, onSelectedFieldsChange: b, onSortByChange: x, onSaveQuery: S, onLoadQuery: C, onDeleteQuery: w, editor: T, className: E, children: D, ...O }, k) {
335
+ c(f.key, f.css, { order: f.order }), c(H.key, H.css, { order: H.order }), c("query-builder", P);
336
+ let A = s(null);
337
+ o(k, () => A.current);
338
+ let j = r(N, {
337
339
  query: e,
338
340
  schema: t,
339
341
  rootEntity: n,
@@ -341,27 +343,27 @@ var W = [], G = [], K = [], q = [], J = a(function({ query: e = null, schema: t
341
343
  selectedFields: a,
342
344
  sortBy: l,
343
345
  disabled: d,
344
- messages: f,
345
- maxDepth: p,
346
- showPreview: m,
347
- showSavedQueries: h,
348
- savedQueries: g
346
+ messages: p,
347
+ maxDepth: m,
348
+ showPreview: h,
349
+ showSavedQueries: g,
350
+ savedQueries: _
349
351
  }, {
350
352
  idPrefix: "bs-query-builder",
351
- label: D["aria-label"],
352
- rootRef: k,
353
+ label: O["aria-label"],
354
+ rootRef: A,
353
355
  emit: (e, t) => {
354
- e === "queryChange" && _?.(t), e === "rootEntityChange" && v?.(t), e === "selectedFieldsChange" && y?.(t), e === "sortByChange" && b?.(t), e === "saveQuery" && x?.(t), e === "loadQuery" && S?.(t), e === "deleteQuery" && C?.(t);
356
+ e === "queryChange" && v?.(t), e === "rootEntityChange" && y?.(t), e === "selectedFieldsChange" && b?.(t), e === "sortByChange" && x?.(t), e === "saveQuery" && S?.(t), e === "loadQuery" && C?.(t), e === "deleteQuery" && w?.(t);
355
357
  }
356
358
  });
357
- return /* @__PURE__ */ u(U, {
358
- ...A.props,
359
- slots: { editor: w },
360
- className: T,
361
- attrs: D,
362
- rootRef: k,
363
- children: E
359
+ return /* @__PURE__ */ u(G, {
360
+ ...j.props,
361
+ slots: { editor: T },
362
+ className: E,
363
+ attrs: O,
364
+ rootRef: A,
365
+ children: D
364
366
  });
365
367
  });
366
368
  //#endregion
367
- export { J as BsQueryBuilder, f as DEFAULT_MESSAGES, p as DEFAULT_OPERATOR_CATALOG, m as MaxDepthExceededError, h as addChild, g as addEmptyConditionTo, _ as addEmptyGroupTo, v as addEmptySubqueryTo, y as changeConditionField, b as changeConditionOperator, x as cloneTree, S as collectDescendantIds, C as defaultValueFor, w as emptyCondition, T as emptyGroup, E as emptySubquery, D as findNodeById, O as mapTree, k as moveNode, A as newId, j as operatorsForType, P as removeNode, F as renderExpression, I as setGroupLogic, L as updateCondition, R as validateOperatorOverrides, z as valueShapeFor, B as visitTree };
369
+ export { X as BsQueryBuilder, p as DEFAULT_MESSAGES, m as DEFAULT_OPERATOR_CATALOG, h as MaxDepthExceededError, g as addChild, _ as addEmptyConditionTo, v as addEmptyGroupTo, y as addEmptySubqueryTo, b as changeConditionField, x as changeConditionOperator, S as cloneTree, C as collectDescendantIds, w as defaultValueFor, T as emptyCondition, E as emptyGroup, D as emptySubquery, O as findNodeById, k as mapTree, A as moveNode, j as newId, M as operatorsForType, F as removeNode, I as renderExpression, L as setGroupLogic, R as updateCondition, z as validateOperatorOverrides, B as valueShapeFor, V as visitTree };
package/radio/index.mjs CHANGED
@@ -1 +1 @@
1
- export { t as BsRadio } from "../chunks/BsRadio-D1C6Aqjv.mjs";
1
+ export { t as BsRadio } from "../chunks/BsRadio-Bw_MhAOq.mjs";
@@ -1,5 +1,5 @@
1
1
  import { r as e } from "../chunks/react-props-C2O2_2V2.mjs";
2
- import { n as t } from "../chunks/BsRadio-D1C6Aqjv.mjs";
2
+ import { n as t } from "../chunks/BsRadio-Bw_MhAOq.mjs";
3
3
  import { forwardRef as n, useId as r, useMemo as i } from "react";
4
4
  import { jsx as a } from "react/jsx-runtime";
5
5
  import { connectRadioGroup as o, radioGroupName as s } from "@mintplayer/ui-core/radio";
@@ -1,14 +1,15 @@
1
1
  import { i as e, r as t, t as n } from "../chunks/react-props-C2O2_2V2.mjs";
2
2
  import { useCore as r } from "../machine/index.mjs";
3
- import { t as i } from "../chunks/BsDatetimePicker.generated-B4WBEiCo.mjs";
3
+ import { t as i } from "../chunks/BsDatetimePicker.generated-CxaiRt79.mjs";
4
4
  import * as a from "react";
5
5
  import { forwardRef as o, useImperativeHandle as s, useRef as c } from "react";
6
6
  import { installLightStyles as l } from "@mintplayer/ui-core/scoped-styles";
7
7
  import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
8
- import { SchedulerStateManager as p, createInitialState as m, schedulerCore as h, schedulerScopedStyles as g } from "@mintplayer/ui-core/scheduler";
9
- import { generateEventId as _, generateGroupId as v, generateResourceId as y } from "@mintplayer/ui-core/scheduler-core";
8
+ import { bootstrapForms as p } from "@mintplayer/ui-core/bootstrap/forms";
9
+ import { SchedulerStateManager as m, createInitialState as h, schedulerCore as g, schedulerScopedStyles as _ } from "@mintplayer/ui-core/scheduler";
10
+ import { generateEventId as v, generateGroupId as y, generateResourceId as b } from "@mintplayer/ui-core/scheduler-core";
10
11
  //#region libs/mintplayer-react-bootstrap/scheduler/src/generated/sched-time-grid.view.generated.tsx
11
- function b({ grid: n, slots: r = {}, children: i, className: o, attrs: s }) {
12
+ function x({ grid: n, slots: r = {}, children: i, className: o, attrs: s }) {
12
13
  return /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ f("div", {
13
14
  "data-mps": "scheduler",
14
15
  ...t(n.headerRow),
@@ -103,7 +104,7 @@ function b({ grid: n, slots: r = {}, children: i, className: o, attrs: s }) {
103
104
  }
104
105
  //#endregion
105
106
  //#region libs/mintplayer-react-bootstrap/scheduler/src/generated/sched-month.view.generated.tsx
106
- function x({ month: n, slots: r = {}, children: i, className: o, attrs: s }) {
107
+ function S({ month: n, slots: r = {}, children: i, className: o, attrs: s }) {
107
108
  return /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("div", {
108
109
  "data-mps": "scheduler",
109
110
  ...t(n.headerRow),
@@ -145,7 +146,7 @@ function x({ month: n, slots: r = {}, children: i, className: o, attrs: s }) {
145
146
  }
146
147
  //#endregion
147
148
  //#region libs/mintplayer-react-bootstrap/scheduler/src/generated/sched-year.view.generated.tsx
148
- function S({ year: e, slots: n = {}, children: r, className: i, attrs: o }) {
149
+ function C({ year: e, slots: n = {}, children: r, className: i, attrs: o }) {
149
150
  return /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d("div", {
150
151
  "data-mps": "scheduler",
151
152
  ...t(e.grid),
@@ -177,7 +178,7 @@ function S({ year: e, slots: n = {}, children: r, className: i, attrs: o }) {
177
178
  }
178
179
  //#endregion
179
180
  //#region libs/mintplayer-react-bootstrap/scheduler/src/generated/sched-timeline.view.generated.tsx
180
- function C({ timeline: r, slots: i = {}, children: o, className: s, attrs: c }) {
181
+ function w({ timeline: r, slots: i = {}, children: o, className: s, attrs: c }) {
181
182
  return /* @__PURE__ */ d(u, { children: /* @__PURE__ */ f("div", {
182
183
  "data-mps": "scheduler",
183
184
  ...t(r.timeline),
@@ -314,7 +315,7 @@ function C({ timeline: r, slots: i = {}, children: o, className: s, attrs: c })
314
315
  }
315
316
  //#endregion
316
317
  //#region libs/mintplayer-react-bootstrap/scheduler/src/generated/sched-popover-event.view.generated.tsx
317
- function w({ event: n, slots: r = {}, children: i, className: a, attrs: o }) {
318
+ function T({ event: n, slots: r = {}, children: i, className: a, attrs: o }) {
318
319
  return /* @__PURE__ */ d(u, { children: /* @__PURE__ */ f("li", {
319
320
  "data-mps": "scheduler",
320
321
  ...t(n.row),
@@ -346,7 +347,7 @@ function w({ event: n, slots: r = {}, children: i, className: a, attrs: o }) {
346
347
  }
347
348
  //#endregion
348
349
  //#region libs/mintplayer-react-bootstrap/scheduler/src/generated/sched-popover.view.generated.tsx
349
- function T({ popover: e, slots: r = {}, children: i, className: o, attrs: s }) {
350
+ function E({ popover: e, slots: r = {}, children: i, className: o, attrs: s }) {
350
351
  return /* @__PURE__ */ d(u, { children: /* @__PURE__ */ f("div", {
351
352
  "data-mps": "scheduler",
352
353
  ...t(e.bag),
@@ -386,7 +387,7 @@ function T({ popover: e, slots: r = {}, children: i, className: o, attrs: s }) {
386
387
  e.list ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d("ul", {
387
388
  "data-mps": "scheduler",
388
389
  ...t(e.list),
389
- children: e.events.map((e, t) => /* @__PURE__ */ d(a.Fragment, { children: /* @__PURE__ */ d(w, {
390
+ children: e.events.map((e, t) => /* @__PURE__ */ d(a.Fragment, { children: /* @__PURE__ */ d(T, {
390
391
  event: e,
391
392
  slots: r
392
393
  }) }, e.key))
@@ -401,7 +402,7 @@ function T({ popover: e, slots: r = {}, children: i, className: o, attrs: s }) {
401
402
  }), /* @__PURE__ */ d("ul", {
402
403
  "data-mps": "scheduler",
403
404
  ...t(e.list),
404
- children: e.events.map((e, t) => /* @__PURE__ */ d(a.Fragment, { children: /* @__PURE__ */ d(w, {
405
+ children: e.events.map((e, t) => /* @__PURE__ */ d(a.Fragment, { children: /* @__PURE__ */ d(T, {
405
406
  event: e,
406
407
  slots: r
407
408
  }) }, e.key))
@@ -442,7 +443,7 @@ function T({ popover: e, slots: r = {}, children: i, className: o, attrs: s }) {
442
443
  }
443
444
  //#endregion
444
445
  //#region libs/mintplayer-react-bootstrap/scheduler/src/generated/sched-row-panel.view.generated.tsx
445
- function E({ panel: e, slots: r = {}, children: i, className: o, attrs: s }) {
446
+ function D({ panel: e, slots: r = {}, children: i, className: o, attrs: s }) {
446
447
  return /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d("div", {
447
448
  "data-mps": "scheduler",
448
449
  ...t(e.bag),
@@ -469,7 +470,7 @@ function E({ panel: e, slots: r = {}, children: i, className: o, attrs: s }) {
469
470
  }
470
471
  //#endregion
471
472
  //#region libs/mintplayer-react-bootstrap/scheduler/src/generated/sched-editor.view.generated.tsx
472
- function D({ editor: e, slots: r = {}, children: a, className: o, attrs: s }) {
473
+ function O({ editor: e, slots: r = {}, children: a, className: o, attrs: s }) {
473
474
  return /* @__PURE__ */ d(u, { children: /* @__PURE__ */ f("div", {
474
475
  "data-mps": "scheduler",
475
476
  ...t(e.bag),
@@ -598,7 +599,7 @@ function D({ editor: e, slots: r = {}, children: a, className: o, attrs: s }) {
598
599
  }
599
600
  //#endregion
600
601
  //#region libs/mintplayer-react-bootstrap/scheduler/src/generated/scheduler.view.generated.tsx
601
- function O({ view: n, slots: r = {}, children: i, className: o, attrs: s, rootRef: c }) {
602
+ function k({ view: n, slots: r = {}, children: i, className: o, attrs: s, rootRef: c }) {
602
603
  return /* @__PURE__ */ d(u, { children: /* @__PURE__ */ f("div", {
603
604
  "data-mps": "scheduler",
604
605
  ...t(n.root),
@@ -655,19 +656,19 @@ function O({ view: n, slots: r = {}, children: i, className: o, attrs: s, rootRe
655
656
  ...t(n.content),
656
657
  style: e(n.contentStyle),
657
658
  children: [
658
- n.timeGrid ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d(b, {
659
+ n.timeGrid ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d(x, {
659
660
  grid: n.timeGrid,
660
661
  slots: r
661
662
  }) }) : null,
662
- n.month ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d(x, {
663
+ n.month ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d(S, {
663
664
  month: n.month,
664
665
  slots: r
665
666
  }) }) : null,
666
- n.year ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d(S, {
667
+ n.year ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d(C, {
667
668
  year: n.year,
668
669
  slots: r
669
670
  }) }) : null,
670
- n.timeline ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d(C, {
671
+ n.timeline ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d(w, {
671
672
  timeline: n.timeline,
672
673
  slots: r
673
674
  }) }) : null,
@@ -693,15 +694,15 @@ function O({ view: n, slots: r = {}, children: i, className: o, attrs: s, rootRe
693
694
  ...t(n.kbdEvent),
694
695
  children: n.kbdEventText
695
696
  }),
696
- n.popover ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d(T, {
697
+ n.popover ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d(E, {
697
698
  popover: n.popover,
698
699
  slots: r
699
700
  }) }) : null,
700
- n.rowPanel ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d(E, {
701
+ n.rowPanel ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d(D, {
701
702
  panel: n.rowPanel,
702
703
  slots: r
703
704
  }) }) : null,
704
- n.editor ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d(D, {
705
+ n.editor ? /* @__PURE__ */ d(u, { children: /* @__PURE__ */ d(O, {
705
706
  editor: n.editor,
706
707
  slots: r
707
708
  }) }) : null,
@@ -715,11 +716,11 @@ function O({ view: n, slots: r = {}, children: i, className: o, attrs: s, rootRe
715
716
  }
716
717
  //#endregion
717
718
  //#region libs/mintplayer-react-bootstrap/scheduler/src/generated/BsScheduler.generated.tsx
718
- var k = [], A = [], j = o(function({ events: e = k, resources: t = A, options: n = null, readonly: i = !1, eventEditor: a = !0, locale: o = null, firstDayOfWeek: u = null, slotDuration: f = null, timeFormat: p = null, view: m = null, date: _ = null, selectedEvent: v = null, selectedRange: y = null, onEventSelected: b, onEventDblClick: x, onEventCreate: S, onEventUpdate: C, onEventDelete: w, onDateClick: T, onSelectionChanged: E, onResourceCreate: D, onGroupCreate: j, onResourceUpdate: M, onResourceDelete: N, onViewChange: P, onDateChange: F, onSelectedEventChange: I, onSelectedRangeChange: L, className: R, children: z, ...B }, V) {
719
- l("scheduler", g);
720
- let H = c(null);
721
- s(V, () => H.current);
722
- let U = r(h, {
719
+ var A = [], j = [], M = o(function({ events: e = A, resources: t = j, options: n = null, readonly: i = !1, eventEditor: a = !0, locale: o = null, firstDayOfWeek: u = null, slotDuration: f = null, timeFormat: m = null, view: h = null, date: v = null, selectedEvent: y = null, selectedRange: b = null, onEventSelected: x, onEventDblClick: S, onEventCreate: C, onEventUpdate: w, onEventDelete: T, onDateClick: E, onSelectionChanged: D, onResourceCreate: O, onGroupCreate: M, onResourceUpdate: N, onResourceDelete: P, onViewChange: F, onDateChange: I, onSelectedEventChange: L, onSelectedRangeChange: R, className: z, children: B, ...V }, H) {
720
+ l(p.key, p.css, { order: p.order }), l("scheduler", _);
721
+ let U = c(null);
722
+ s(H, () => U.current);
723
+ let W = r(g, {
723
724
  events: e,
724
725
  resources: t,
725
726
  options: n,
@@ -728,26 +729,26 @@ var k = [], A = [], j = o(function({ events: e = k, resources: t = A, options: n
728
729
  locale: o,
729
730
  firstDayOfWeek: u,
730
731
  slotDuration: f,
731
- timeFormat: p,
732
- view: m,
733
- date: _,
734
- selectedEvent: v,
735
- selectedRange: y
732
+ timeFormat: m,
733
+ view: h,
734
+ date: v,
735
+ selectedEvent: y,
736
+ selectedRange: b
736
737
  }, {
737
738
  idPrefix: "bs-scheduler",
738
- label: B["aria-label"],
739
- rootRef: H,
739
+ label: V["aria-label"],
740
+ rootRef: U,
740
741
  emit: (e, t) => {
741
- e === "eventSelected" && b?.(t), e === "eventDblClick" && x?.(t), e === "eventCreate" && S?.(t), e === "eventUpdate" && C?.(t), e === "eventDelete" && w?.(t), e === "dateClick" && T?.(t), e === "selectionChanged" && E?.(t), e === "resourceCreate" && D?.(t), e === "groupCreate" && j?.(t), e === "resourceUpdate" && M?.(t), e === "resourceDelete" && N?.(t), e === "viewChange" && P?.(t), e === "dateChange" && F?.(t), e === "selectedEventChange" && I?.(t), e === "selectedRangeChange" && L?.(t);
742
+ e === "eventSelected" && x?.(t), e === "eventDblClick" && S?.(t), e === "eventCreate" && C?.(t), e === "eventUpdate" && w?.(t), e === "eventDelete" && T?.(t), e === "dateClick" && E?.(t), e === "selectionChanged" && D?.(t), e === "resourceCreate" && O?.(t), e === "groupCreate" && M?.(t), e === "resourceUpdate" && N?.(t), e === "resourceDelete" && P?.(t), e === "viewChange" && F?.(t), e === "dateChange" && I?.(t), e === "selectedEventChange" && L?.(t), e === "selectedRangeChange" && R?.(t);
742
743
  }
743
744
  });
744
- return /* @__PURE__ */ d(O, {
745
- ...U.props,
746
- className: R,
747
- attrs: B,
748
- rootRef: H,
749
- children: z
745
+ return /* @__PURE__ */ d(k, {
746
+ ...W.props,
747
+ className: z,
748
+ attrs: V,
749
+ rootRef: U,
750
+ children: B
750
751
  });
751
752
  });
752
753
  //#endregion
753
- export { j as BsScheduler, p as SchedulerStateManager, m as createInitialState, _ as generateEventId, v as generateGroupId, y as generateResourceId };
754
+ export { M as BsScheduler, m as SchedulerStateManager, h as createInitialState, v as generateEventId, y as generateGroupId, b as generateResourceId };