@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.
- package/README.md +12 -11
- package/accordion/index.mjs +48 -46
- package/card/index.mjs +90 -76
- package/card/src/BsCard.d.ts +1 -1
- package/card/src/BsCardBody.d.ts +1 -1
- package/card/src/BsCardFooter.d.ts +1 -1
- package/card/src/BsCardLink.d.ts +1 -1
- package/card/src/BsCardSubtitle.d.ts +2 -2
- package/card/src/BsCardText.d.ts +1 -1
- package/card/src/BsCardTitle.d.ts +1 -1
- package/carousel/index.mjs +26 -25
- package/checkbox/index.mjs +1 -1
- package/chunks/BsCheckbox-BZkPJ13E.mjs +66 -0
- package/chunks/{BsDatatable.generated-DCwT6fdk.mjs → BsDatatable.generated-DqNW60JA.mjs} +54 -52
- package/chunks/{BsDatetimePicker.generated-B4WBEiCo.mjs → BsDatetimePicker.generated-CxaiRt79.mjs} +32 -31
- package/chunks/BsRadio-Bw_MhAOq.mjs +57 -0
- package/datatable/index.mjs +1 -1
- package/datepicker/index.mjs +28 -27
- package/datetime-picker/index.mjs +1 -1
- package/dropdown-menu/index.mjs +43 -38
- package/file-manager/index.mjs +21 -20
- package/input-group/index.mjs +17 -15
- package/machine/index.mjs +48 -39
- package/machine/src/index.d.ts +1 -0
- package/machine/src/mark-links.d.ts +8 -0
- package/nav/index.mjs +85 -0
- package/nav/src/generated/BsNav.generated.d.ts +15 -0
- package/nav/src/generated/BsNavItem.generated.d.ts +6 -0
- package/nav/src/generated/index.d.ts +2 -0
- package/nav/src/generated/nav-item.view.generated.d.ts +14 -0
- package/nav/src/generated/nav.view.generated.d.ts +14 -0
- package/nav/src/index.d.ts +1 -0
- package/nav/src/nav-item.react.d.ts +4 -0
- package/navbar/index.mjs +87 -77
- package/navbar/src/navbar-item.react.d.ts +4 -0
- package/otp-input/index.mjs +24 -23
- package/package.json +10 -2
- package/pagination/index.mjs +37 -27
- package/phone-input/index.mjs +26 -25
- package/query-builder/index.mjs +30 -28
- package/radio/index.mjs +1 -1
- package/radio-group/index.mjs +1 -1
- package/scheduler/index.mjs +42 -41
- package/select/index.mjs +27 -26
- package/signature-pad/index.mjs +23 -22
- package/spinner/index.mjs +50 -0
- package/spinner/src/generated/BsSpinner.generated.d.ts +11 -0
- package/spinner/src/generated/index.d.ts +1 -0
- package/spinner/src/generated/spinner.view.generated.d.ts +15 -0
- package/spinner/src/index.d.ts +1 -0
- package/tab-control/index.mjs +56 -54
- package/timepicker/index.mjs +42 -41
- package/toggle-button/index.mjs +1 -1
- package/typeahead/index.mjs +90 -87
- package/chunks/BsCheckbox-BWU2Hrhf.mjs +0 -57
- package/chunks/BsRadio-D1C6Aqjv.mjs +0 -48
package/otp-input/index.mjs
CHANGED
|
@@ -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 {
|
|
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
|
|
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
|
|
46
|
+
var h = [
|
|
46
47
|
1,
|
|
47
48
|
1,
|
|
48
49
|
1,
|
|
49
50
|
1,
|
|
50
51
|
1,
|
|
51
52
|
1
|
|
52
|
-
],
|
|
53
|
-
s("otp-input",
|
|
54
|
-
let
|
|
55
|
-
a(
|
|
56
|
-
let
|
|
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:
|
|
64
|
-
errorText:
|
|
65
|
-
name:
|
|
66
|
-
inputLabel:
|
|
67
|
-
value:
|
|
64
|
+
invalid: g,
|
|
65
|
+
errorText: _,
|
|
66
|
+
name: v,
|
|
67
|
+
inputLabel: y,
|
|
68
|
+
value: b
|
|
68
69
|
}, {
|
|
69
70
|
idPrefix: "bs-otp-input",
|
|
70
|
-
label:
|
|
71
|
-
rootRef:
|
|
71
|
+
label: T["aria-label"],
|
|
72
|
+
rootRef: D,
|
|
72
73
|
emit: (e, t) => {
|
|
73
|
-
e === "valueChange" &&
|
|
74
|
+
e === "valueChange" && x?.(t), e === "complete" && S?.(t);
|
|
74
75
|
}
|
|
75
76
|
});
|
|
76
|
-
return /* @__PURE__ */ l(
|
|
77
|
-
...
|
|
78
|
-
className:
|
|
79
|
-
attrs:
|
|
80
|
-
rootRef:
|
|
81
|
-
children:
|
|
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 {
|
|
86
|
+
export { g as BsOtpInput };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mintplayer/react-bootstrap",
|
|
3
|
-
"version": "19.
|
|
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.
|
|
199
|
+
"@mintplayer/ui-core": "^1.5.0",
|
|
192
200
|
"react": "^19.0.0",
|
|
193
201
|
"react-dom": "^19.0.0"
|
|
194
202
|
},
|
package/pagination/index.mjs
CHANGED
|
@@ -1,41 +1,51 @@
|
|
|
1
1
|
import { r as e } from "../chunks/react-props-C2O2_2V2.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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
|
|
7
|
-
let { pageNumbers:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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__ */
|
|
19
|
-
|
|
20
|
-
...
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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__ */
|
|
33
|
+
children: t.kind === "gap" ? /* @__PURE__ */ i("span", {
|
|
34
|
+
"data-mps": "pagination",
|
|
27
35
|
...e(t.attrs),
|
|
28
36
|
children: t.text
|
|
29
|
-
}) :
|
|
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
|
-
|
|
42
|
+
s(e.nativeEvent) && (e.preventDefault(), C(t.target));
|
|
34
43
|
},
|
|
35
44
|
children: t.text
|
|
36
|
-
}) : /* @__PURE__ */
|
|
45
|
+
}) : /* @__PURE__ */ i("button", {
|
|
46
|
+
"data-mps": "pagination",
|
|
37
47
|
...e(t.attrs),
|
|
38
|
-
onClick: () =>
|
|
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 {
|
|
56
|
+
export { c as BsPagination };
|
package/phone-input/index.mjs
CHANGED
|
@@ -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 {
|
|
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
|
|
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
|
|
90
|
-
c("phone-input",
|
|
91
|
-
let
|
|
92
|
-
o(
|
|
93
|
-
let
|
|
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:
|
|
102
|
-
invalid:
|
|
103
|
-
errorText:
|
|
104
|
-
placeholder:
|
|
105
|
-
autocomplete:
|
|
106
|
-
name:
|
|
107
|
-
inputLabel:
|
|
108
|
-
countryLabel:
|
|
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:
|
|
112
|
-
rootRef:
|
|
112
|
+
label: k["aria-label"],
|
|
113
|
+
rootRef: j,
|
|
113
114
|
emit: (e, t) => {
|
|
114
|
-
e === "valueChange" &&
|
|
115
|
+
e === "valueChange" && w?.(t), e === "countryChange" && T?.(t), e === "phoneChange" && E?.(t);
|
|
115
116
|
}
|
|
116
117
|
});
|
|
117
|
-
return /* @__PURE__ */ u(
|
|
118
|
-
...
|
|
119
|
-
className:
|
|
120
|
-
attrs:
|
|
121
|
-
rootRef:
|
|
122
|
-
children:
|
|
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 {
|
|
127
|
+
export { g as BsPhoneInput };
|
package/query-builder/index.mjs
CHANGED
|
@@ -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 {
|
|
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
|
|
11
|
+
function U(e, t) {
|
|
10
12
|
return typeof e == "function" ? e(t) : e;
|
|
11
13
|
}
|
|
12
|
-
function
|
|
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 :
|
|
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(
|
|
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
|
|
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(
|
|
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
|
|
333
|
-
c("query-builder",
|
|
334
|
-
let
|
|
335
|
-
o(
|
|
336
|
-
let
|
|
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:
|
|
345
|
-
maxDepth:
|
|
346
|
-
showPreview:
|
|
347
|
-
showSavedQueries:
|
|
348
|
-
savedQueries:
|
|
346
|
+
messages: p,
|
|
347
|
+
maxDepth: m,
|
|
348
|
+
showPreview: h,
|
|
349
|
+
showSavedQueries: g,
|
|
350
|
+
savedQueries: _
|
|
349
351
|
}, {
|
|
350
352
|
idPrefix: "bs-query-builder",
|
|
351
|
-
label:
|
|
352
|
-
rootRef:
|
|
353
|
+
label: O["aria-label"],
|
|
354
|
+
rootRef: A,
|
|
353
355
|
emit: (e, t) => {
|
|
354
|
-
e === "queryChange" &&
|
|
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(
|
|
358
|
-
...
|
|
359
|
-
slots: { editor:
|
|
360
|
-
className:
|
|
361
|
-
attrs:
|
|
362
|
-
rootRef:
|
|
363
|
-
children:
|
|
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 {
|
|
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-
|
|
1
|
+
export { t as BsRadio } from "../chunks/BsRadio-Bw_MhAOq.mjs";
|
package/radio-group/index.mjs
CHANGED
|
@@ -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-
|
|
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";
|
package/scheduler/index.mjs
CHANGED
|
@@ -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-
|
|
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 {
|
|
9
|
-
import {
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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(
|
|
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(
|
|
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
|
|
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
|
|
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
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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
|
|
719
|
-
l("scheduler",
|
|
720
|
-
let
|
|
721
|
-
s(
|
|
722
|
-
let
|
|
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:
|
|
732
|
-
view:
|
|
733
|
-
date:
|
|
734
|
-
selectedEvent:
|
|
735
|
-
selectedRange:
|
|
732
|
+
timeFormat: m,
|
|
733
|
+
view: h,
|
|
734
|
+
date: v,
|
|
735
|
+
selectedEvent: y,
|
|
736
|
+
selectedRange: b
|
|
736
737
|
}, {
|
|
737
738
|
idPrefix: "bs-scheduler",
|
|
738
|
-
label:
|
|
739
|
-
rootRef:
|
|
739
|
+
label: V["aria-label"],
|
|
740
|
+
rootRef: U,
|
|
740
741
|
emit: (e, t) => {
|
|
741
|
-
e === "eventSelected" &&
|
|
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(
|
|
745
|
-
...
|
|
746
|
-
className:
|
|
747
|
-
attrs:
|
|
748
|
-
rootRef:
|
|
749
|
-
children:
|
|
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 {
|
|
754
|
+
export { M as BsScheduler, m as SchedulerStateManager, h as createInitialState, v as generateEventId, y as generateGroupId, b as generateResourceId };
|