@standardbeagle/edit-db 0.4.451 → 0.4.453
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/dist/editor.es.js +180 -177
- package/dist/editor.umd.cjs +17 -17
- package/dist/hooks/usePath.test.d.ts +1 -0
- package/package.json +1 -1
package/dist/editor.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as x from "react";
|
|
2
|
-
import
|
|
2
|
+
import ln, { createContext as Bt, forwardRef as xi, useContext as Ge, useReducer as Im, Children as Am, isValidElement as Dm, useMemo as ae, createElement as qs, useState as J, useLayoutEffect as hc, useRef as Ne, useEffect as Oe, useCallback as oe, Component as Om, Suspense as Oa } from "react";
|
|
3
3
|
import { useQuery as pt, useQueryClient as bi, useMutation as so, QueryClient as $m, QueryClientProvider as Vm } from "@tanstack/react-query";
|
|
4
4
|
import * as ar from "react-dom";
|
|
5
5
|
var Er = { exports: {} }, In = {};
|
|
@@ -7,7 +7,7 @@ var $a;
|
|
|
7
7
|
function Lm() {
|
|
8
8
|
if ($a) return In;
|
|
9
9
|
$a = 1;
|
|
10
|
-
var e =
|
|
10
|
+
var e = ln, n = /* @__PURE__ */ Symbol.for("react.element"), t = /* @__PURE__ */ Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
11
11
|
function i(l, c, d) {
|
|
12
12
|
var f, u = {}, m = null, p = null;
|
|
13
13
|
d !== void 0 && (m = "" + d), c.key !== void 0 && (m = "" + c.key), c.ref !== void 0 && (p = c.ref);
|
|
@@ -21,7 +21,7 @@ var An = {};
|
|
|
21
21
|
var Va;
|
|
22
22
|
function zm() {
|
|
23
23
|
return Va || (Va = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
24
|
-
var e =
|
|
24
|
+
var e = ln, n = /* @__PURE__ */ Symbol.for("react.element"), t = /* @__PURE__ */ Symbol.for("react.portal"), r = /* @__PURE__ */ Symbol.for("react.fragment"), o = /* @__PURE__ */ Symbol.for("react.strict_mode"), s = /* @__PURE__ */ Symbol.for("react.profiler"), i = /* @__PURE__ */ Symbol.for("react.provider"), l = /* @__PURE__ */ Symbol.for("react.context"), c = /* @__PURE__ */ Symbol.for("react.forward_ref"), d = /* @__PURE__ */ Symbol.for("react.suspense"), f = /* @__PURE__ */ Symbol.for("react.suspense_list"), u = /* @__PURE__ */ Symbol.for("react.memo"), m = /* @__PURE__ */ Symbol.for("react.lazy"), p = /* @__PURE__ */ Symbol.for("react.offscreen"), h = Symbol.iterator, g = "@@iterator";
|
|
25
25
|
function v(R) {
|
|
26
26
|
if (R === null || typeof R != "object")
|
|
27
27
|
return null;
|
|
@@ -217,29 +217,29 @@ function zm() {
|
|
|
217
217
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
218
218
|
try {
|
|
219
219
|
Reflect.construct(xe, []);
|
|
220
|
-
} catch (
|
|
221
|
-
te =
|
|
220
|
+
} catch ($e) {
|
|
221
|
+
te = $e;
|
|
222
222
|
}
|
|
223
223
|
Reflect.construct(R, [], xe);
|
|
224
224
|
} else {
|
|
225
225
|
try {
|
|
226
226
|
xe.call();
|
|
227
|
-
} catch (
|
|
228
|
-
te =
|
|
227
|
+
} catch ($e) {
|
|
228
|
+
te = $e;
|
|
229
229
|
}
|
|
230
230
|
R.call(xe.prototype);
|
|
231
231
|
}
|
|
232
232
|
} else {
|
|
233
233
|
try {
|
|
234
234
|
throw Error();
|
|
235
|
-
} catch (
|
|
236
|
-
te =
|
|
235
|
+
} catch ($e) {
|
|
236
|
+
te = $e;
|
|
237
237
|
}
|
|
238
238
|
R();
|
|
239
239
|
}
|
|
240
|
-
} catch (
|
|
241
|
-
if (
|
|
242
|
-
for (var he =
|
|
240
|
+
} catch ($e) {
|
|
241
|
+
if ($e && te && typeof $e.stack == "string") {
|
|
242
|
+
for (var he = $e.stack.split(`
|
|
243
243
|
`), Ie = te.stack.split(`
|
|
244
244
|
`), Re = he.length - 1, _e = Ie.length - 1; Re >= 1 && _e >= 0 && he[Re] !== Ie[_e]; )
|
|
245
245
|
_e--;
|
|
@@ -259,7 +259,7 @@ function zm() {
|
|
|
259
259
|
} finally {
|
|
260
260
|
ne = !1, se.current = Se, U(), Error.prepareStackTrace = be;
|
|
261
261
|
}
|
|
262
|
-
var
|
|
262
|
+
var mn = R ? R.displayName || R.name : "", Ut = mn ? ie(mn) : "";
|
|
263
263
|
return typeof R == "function" && fe.set(R, Ut), Ut;
|
|
264
264
|
}
|
|
265
265
|
function Ee(R, F, L) {
|
|
@@ -444,7 +444,7 @@ function zm() {
|
|
|
444
444
|
}
|
|
445
445
|
}
|
|
446
446
|
var ts = y.ReactCurrentOwner, Fa = y.ReactDebugCurrentFrame;
|
|
447
|
-
function
|
|
447
|
+
function fn(R) {
|
|
448
448
|
if (R) {
|
|
449
449
|
var F = R._owner, L = Ve(R.type, R._source, F ? F.type : null);
|
|
450
450
|
Fa.setExtraStackFrame(L);
|
|
@@ -494,7 +494,7 @@ Check the top-level render call using <` + L + ">.");
|
|
|
494
494
|
return;
|
|
495
495
|
ka[L] = !0;
|
|
496
496
|
var te = "";
|
|
497
|
-
R && R._owner && R._owner !== ts.current && (te = " It was passed a child from " + G(R._owner.type) + "."),
|
|
497
|
+
R && R._owner && R._owner !== ts.current && (te = " It was passed a child from " + G(R._owner.type) + "."), fn(R), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', L, te), fn(null);
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
500
|
function Ia(R, F) {
|
|
@@ -546,11 +546,11 @@ Check the top-level render call using <` + L + ">.");
|
|
|
546
546
|
for (var F = Object.keys(R.props), L = 0; L < F.length; L++) {
|
|
547
547
|
var te = F[L];
|
|
548
548
|
if (te !== "children" && te !== "key") {
|
|
549
|
-
|
|
549
|
+
fn(R), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", te), fn(null);
|
|
550
550
|
break;
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
|
-
R.ref !== null && (
|
|
553
|
+
R.ref !== null && (fn(R), b("Invalid attribute `ref` supplied to `React.Fragment`."), fn(null));
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
556
|
var Aa = {};
|
|
@@ -573,8 +573,8 @@ Check the top-level render call using <` + L + ">.");
|
|
|
573
573
|
if (We !== void 0)
|
|
574
574
|
if (te)
|
|
575
575
|
if (yt(We)) {
|
|
576
|
-
for (var
|
|
577
|
-
Ia(We[
|
|
576
|
+
for (var mn = 0; mn < We.length; mn++)
|
|
577
|
+
Ia(We[mn], R);
|
|
578
578
|
Object.freeze && Object.freeze(We);
|
|
579
579
|
} else
|
|
580
580
|
b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
@@ -582,11 +582,11 @@ Check the top-level render call using <` + L + ">.");
|
|
|
582
582
|
Ia(We, R);
|
|
583
583
|
}
|
|
584
584
|
if (Ze.call(F, "key")) {
|
|
585
|
-
var Ut = G(R),
|
|
585
|
+
var Ut = G(R), $e = Object.keys(F).filter(function(Pm) {
|
|
586
586
|
return Pm !== "key";
|
|
587
|
-
}), os =
|
|
587
|
+
}), os = $e.length > 0 ? "{key: someKey, " + $e.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
588
588
|
if (!Aa[Ut + os]) {
|
|
589
|
-
var km =
|
|
589
|
+
var km = $e.length > 0 ? "{" + $e.join(": ..., ") + ": ...}" : "{}";
|
|
590
590
|
b(`A props object containing a "key" prop is being spread into JSX:
|
|
591
591
|
let props = %s;
|
|
592
592
|
<%s {...props} />
|
|
@@ -2586,10 +2586,10 @@ const kp = (e, n) => {
|
|
|
2586
2586
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
2587
2587
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
2588
2588
|
rh.test(e) && !oh.test(e)
|
|
2589
|
-
), Mi = () => !1, lh = (e) => sh.test(e), ch = (e) => ih.test(e), uh = (e) => !z(e) && !q(e), dh = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), fh = (e) => Gt(e, $c, Mi), z = (e) => Pc.test(e), Kt = (e) => Gt(e, Vc, ah), Wa = (e) => Gt(e, yh, ue), mh = (e) => Gt(e, zc, Ac), ph = (e) => Gt(e, Lc, Mi), Ua = (e) => Gt(e, Dc, Mi), hh = (e) => Gt(e, Oc, ch), kr = (e) => Gt(e, Bc, lh), q = (e) => Ic.test(e), On = (e) =>
|
|
2589
|
+
), Mi = () => !1, lh = (e) => sh.test(e), ch = (e) => ih.test(e), uh = (e) => !z(e) && !q(e), dh = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), fh = (e) => Gt(e, $c, Mi), z = (e) => Pc.test(e), Kt = (e) => Gt(e, Vc, ah), Wa = (e) => Gt(e, yh, ue), mh = (e) => Gt(e, zc, Ac), ph = (e) => Gt(e, Lc, Mi), Ua = (e) => Gt(e, Dc, Mi), hh = (e) => Gt(e, Oc, ch), kr = (e) => Gt(e, Bc, lh), q = (e) => Ic.test(e), On = (e) => cn(e, Vc), gh = (e) => cn(e, Lc), Ka = (e) => cn(e, Dc), vh = (e) => cn(e, $c), xh = (e) => cn(e, Oc), Pr = (e) => cn(e, Bc, !0), bh = (e) => cn(e, zc, !0), Gt = (e, n, t) => {
|
|
2590
2590
|
const r = Pc.exec(e);
|
|
2591
2591
|
return r ? r[1] ? n(r[1]) : t(r[2]) : !1;
|
|
2592
|
-
},
|
|
2592
|
+
}, cn = (e, n, t = !1) => {
|
|
2593
2593
|
const r = Ic.exec(e);
|
|
2594
2594
|
return r ? r[1] ? n(r[1]) : t : !1;
|
|
2595
2595
|
}, Dc = (e) => e === "position" || e === "percentage", Oc = (e) => e === "image" || e === "url", $c = (e) => e === "length" || e === "size" || e === "bg-size", Vc = (e) => e === "length", yh = (e) => e === "number", Lc = (e) => e === "family-name", zc = (e) => e === "number" || e === "weight", Bc = (e) => e === "shadow", wh = () => {
|
|
@@ -5378,13 +5378,13 @@ function Cn(e, n, ...t) {
|
|
|
5378
5378
|
throw r.framesToPop = 1, r;
|
|
5379
5379
|
}
|
|
5380
5380
|
}
|
|
5381
|
-
const
|
|
5382
|
-
function Xa(e, n =
|
|
5381
|
+
const en = (e) => typeof e == "function", Ch = (e) => e.length === 0, Ya = (e) => e.toString(), ms = (e) => typeof e == "string", Ri = "/", Xr = "||", tn = (e) => e, Ja = (e) => e === null;
|
|
5382
|
+
function Xa(e, n = tn, t) {
|
|
5383
5383
|
Cn(
|
|
5384
|
-
|
|
5384
|
+
en(n) || Ja(n),
|
|
5385
5385
|
"Expected payloadCreator to be a function, undefined or null"
|
|
5386
5386
|
);
|
|
5387
|
-
const r = Ja(n) || n ===
|
|
5387
|
+
const r = Ja(n) || n === tn ? tn : (l, ...c) => l instanceof Error ? l : n(l, ...c), o = en(t), s = e.toString(), i = (...l) => {
|
|
5388
5388
|
const c = r(...l), d = { type: e };
|
|
5389
5389
|
return c instanceof Error && (d.error = !0), c !== void 0 && (d.payload = c), o && (d.meta = t(...l)), d;
|
|
5390
5390
|
};
|
|
@@ -5473,11 +5473,11 @@ function Oh(e, n) {
|
|
|
5473
5473
|
}
|
|
5474
5474
|
function Zc(e, { prefix: n, namespace: t = Ri } = {}) {
|
|
5475
5475
|
function r(o) {
|
|
5476
|
-
if (
|
|
5476
|
+
if (en(o) || Yc(o))
|
|
5477
5477
|
return !0;
|
|
5478
5478
|
if (Qa(o)) {
|
|
5479
|
-
const [s =
|
|
5480
|
-
return
|
|
5479
|
+
const [s = tn, i] = o;
|
|
5480
|
+
return en(s) && en(i);
|
|
5481
5481
|
}
|
|
5482
5482
|
return !1;
|
|
5483
5483
|
}
|
|
@@ -5497,7 +5497,7 @@ function Zc(e, { prefix: n, namespace: t = Ri } = {}) {
|
|
|
5497
5497
|
function el(e, n) {
|
|
5498
5498
|
const t = Qs(
|
|
5499
5499
|
e,
|
|
5500
|
-
(o, s) => ({ ...o, [s]:
|
|
5500
|
+
(o, s) => ({ ...o, [s]: tn })
|
|
5501
5501
|
), r = Zc(t, n);
|
|
5502
5502
|
return Qs(
|
|
5503
5503
|
Object.keys(r),
|
|
@@ -5508,17 +5508,17 @@ function el(e, n) {
|
|
|
5508
5508
|
);
|
|
5509
5509
|
}
|
|
5510
5510
|
const $h = (e) => e === void 0;
|
|
5511
|
-
function Vh(e, n =
|
|
5511
|
+
function Vh(e, n = tn, t) {
|
|
5512
5512
|
const r = Ya(e).split(Xr);
|
|
5513
5513
|
Cn(
|
|
5514
5514
|
!$h(t),
|
|
5515
5515
|
`defaultState for reducer handling ${r.join(", ")} should be defined`
|
|
5516
5516
|
), Cn(
|
|
5517
|
-
|
|
5517
|
+
en(n) || Mn(n),
|
|
5518
5518
|
"Expected reducer to be a function or object with next and throw reducers"
|
|
5519
5519
|
);
|
|
5520
|
-
const [o, s] =
|
|
5521
|
-
(i) => Yc(i) ?
|
|
5520
|
+
const [o, s] = en(n) ? [n, n] : [n.next, n.throw].map(
|
|
5521
|
+
(i) => Yc(i) ? tn : i
|
|
5522
5522
|
);
|
|
5523
5523
|
return (i = t, l) => {
|
|
5524
5524
|
const { type: c } = l;
|
|
@@ -5638,17 +5638,19 @@ const Yn = xi(({ to: e, children: n, ...t }, r) => {
|
|
|
5638
5638
|
);
|
|
5639
5639
|
});
|
|
5640
5640
|
function hs({ children: e }) {
|
|
5641
|
-
const n = Ge(Xn), t = Ge(Eo), r = nu(e, n.path).map((
|
|
5642
|
-
|
|
5641
|
+
const n = Ge(Xn), t = Ge(Eo), r = nu(e, n.path).map((i) => [i, eg(i.route, t.path)]).find(([, i]) => i.isMatch);
|
|
5642
|
+
if (!r) return /* @__PURE__ */ a.jsx(a.Fragment, {});
|
|
5643
|
+
const [o, s] = r;
|
|
5644
|
+
return /* @__PURE__ */ a.jsx(Xn.Provider, { value: { ...s }, children: o.element });
|
|
5643
5645
|
}
|
|
5644
|
-
function
|
|
5646
|
+
function Ae({ path: e, element: n }) {
|
|
5645
5647
|
return /* @__PURE__ */ a.jsx(a.Fragment, {});
|
|
5646
5648
|
}
|
|
5647
5649
|
function nu(e, n) {
|
|
5648
5650
|
const t = [];
|
|
5649
5651
|
return Am.map(e, (r) => {
|
|
5650
5652
|
if (!Dm(r)) return;
|
|
5651
|
-
if (r.type ===
|
|
5653
|
+
if (r.type === ln.Fragment) {
|
|
5652
5654
|
t.push.apply(t, nu(r.props.children, n));
|
|
5653
5655
|
return;
|
|
5654
5656
|
}
|
|
@@ -6058,7 +6060,7 @@ const Wg = [
|
|
|
6058
6060
|
key: "sc7q7i"
|
|
6059
6061
|
}
|
|
6060
6062
|
]
|
|
6061
|
-
],
|
|
6063
|
+
], Qt = re("funnel", Wg);
|
|
6062
6064
|
const Ug = [
|
|
6063
6065
|
["line", { x1: "4", x2: "20", y1: "9", y2: "9", key: "4lhtct" }],
|
|
6064
6066
|
["line", { x1: "4", x2: "20", y1: "15", y2: "15", key: "vyu0kd" }],
|
|
@@ -6498,7 +6500,7 @@ function ye(...e) {
|
|
|
6498
6500
|
return x.useCallback(Ii(...e), e);
|
|
6499
6501
|
}
|
|
6500
6502
|
// @__NO_SIDE_EFFECTS__
|
|
6501
|
-
function
|
|
6503
|
+
function on(e) {
|
|
6502
6504
|
const n = x.forwardRef((t, r) => {
|
|
6503
6505
|
let { children: o, ...s } = t, i = null, l = !1;
|
|
6504
6506
|
const c = [];
|
|
@@ -6530,7 +6532,7 @@ function rn(e) {
|
|
|
6530
6532
|
});
|
|
6531
6533
|
return n.displayName = `${e}.Slot`, n;
|
|
6532
6534
|
}
|
|
6533
|
-
var Lv = /* @__PURE__ */
|
|
6535
|
+
var Lv = /* @__PURE__ */ on("Slot"), zv = /* @__PURE__ */ Symbol.for("radix.slottable"), Bv = (e, n) => {
|
|
6534
6536
|
if ("child" in e.props) {
|
|
6535
6537
|
const t = e.props.child;
|
|
6536
6538
|
return x.isValidElement(t) ? x.cloneElement(t, void 0, e.props.children(t.props.children)) : null;
|
|
@@ -6621,7 +6623,7 @@ var Xv = [
|
|
|
6621
6623
|
"svg",
|
|
6622
6624
|
"ul"
|
|
6623
6625
|
], de = Xv.reduce((e, n) => {
|
|
6624
|
-
const t = /* @__PURE__ */
|
|
6626
|
+
const t = /* @__PURE__ */ on(`Primitive.${n}`), r = x.forwardRef((o, s) => {
|
|
6625
6627
|
const { asChild: i, ...l } = o, c = i ? t : n;
|
|
6626
6628
|
return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ a.jsx(c, { ...l, ref: s });
|
|
6627
6629
|
});
|
|
@@ -6712,14 +6714,14 @@ function Ai(e) {
|
|
|
6712
6714
|
return /* @__PURE__ */ a.jsx(o, { scope: v, itemMap: S, collectionRef: b, children: y });
|
|
6713
6715
|
};
|
|
6714
6716
|
i.displayName = n;
|
|
6715
|
-
const l = e + "CollectionSlot", c = /* @__PURE__ */
|
|
6717
|
+
const l = e + "CollectionSlot", c = /* @__PURE__ */ on(l), d = x.forwardRef(
|
|
6716
6718
|
(g, v) => {
|
|
6717
6719
|
const { scope: y, children: b } = g, S = s(l, y), M = ye(v, S.collectionRef);
|
|
6718
6720
|
return /* @__PURE__ */ a.jsx(c, { ref: M, children: b });
|
|
6719
6721
|
}
|
|
6720
6722
|
);
|
|
6721
6723
|
d.displayName = l;
|
|
6722
|
-
const f = e + "CollectionItemSlot", u = "data-radix-collection-item", m = /* @__PURE__ */
|
|
6724
|
+
const f = e + "CollectionItemSlot", u = "data-radix-collection-item", m = /* @__PURE__ */ on(f), p = x.forwardRef(
|
|
6723
6725
|
(g, v) => {
|
|
6724
6726
|
const { scope: y, children: b, ...S } = g, M = x.useRef(null), _ = ye(v, M), w = s(f, y);
|
|
6725
6727
|
return x.useEffect(() => (w.itemMap.set(M, { ref: M, ...S }), () => {
|
|
@@ -7238,13 +7240,13 @@ var jx = "Portal", fr = x.forwardRef((e, n) => {
|
|
|
7238
7240
|
return i ? ar.createPortal(/* @__PURE__ */ a.jsx(de.div, { ...r, ref: n }), i) : null;
|
|
7239
7241
|
});
|
|
7240
7242
|
fr.displayName = jx;
|
|
7241
|
-
var Dr = 0,
|
|
7243
|
+
var Dr = 0, pn = null;
|
|
7242
7244
|
function $i() {
|
|
7243
7245
|
x.useEffect(() => {
|
|
7244
|
-
|
|
7245
|
-
const { start: e, end: n } =
|
|
7246
|
+
pn || (pn = { start: xl(), end: xl() });
|
|
7247
|
+
const { start: e, end: n } = pn;
|
|
7246
7248
|
return document.body.firstElementChild !== e && document.body.insertAdjacentElement("afterbegin", e), document.body.lastElementChild !== n && document.body.insertAdjacentElement("beforeend", n), Dr++, () => {
|
|
7247
|
-
Dr === 1 && (
|
|
7249
|
+
Dr === 1 && (pn?.start.remove(), pn?.end.remove(), pn = null), Dr = Math.max(0, Dr - 1);
|
|
7248
7250
|
};
|
|
7249
7251
|
}, []);
|
|
7250
7252
|
}
|
|
@@ -7555,7 +7557,7 @@ if (typeof window < "u")
|
|
|
7555
7557
|
} catch {
|
|
7556
7558
|
ti = !1;
|
|
7557
7559
|
}
|
|
7558
|
-
var
|
|
7560
|
+
var hn = ti ? { passive: !1 } : !1, Xx = function(e) {
|
|
7559
7561
|
return e.tagName === "TEXTAREA";
|
|
7560
7562
|
}, _u = function(e, n) {
|
|
7561
7563
|
if (!(e instanceof Element))
|
|
@@ -7631,7 +7633,7 @@ var pn = ti ? { passive: !1 } : !1, Xx = function(e) {
|
|
|
7631
7633
|
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
7632
7634
|
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
7633
7635
|
`);
|
|
7634
|
-
}, ib = 0,
|
|
7636
|
+
}, ib = 0, gn = [];
|
|
7635
7637
|
function ab(e) {
|
|
7636
7638
|
var n = x.useRef([]), t = x.useRef([0, 0]), r = x.useRef(), o = x.useState(ib++)[0], s = x.useState(Ru)[0], i = x.useRef(e);
|
|
7637
7639
|
x.useEffect(function() {
|
|
@@ -7669,7 +7671,7 @@ function ab(e) {
|
|
|
7669
7671
|
return rb($, v, g, $ === "h" ? S : M);
|
|
7670
7672
|
}, []), c = x.useCallback(function(g) {
|
|
7671
7673
|
var v = g;
|
|
7672
|
-
if (!(!
|
|
7674
|
+
if (!(!gn.length || gn[gn.length - 1] !== s)) {
|
|
7673
7675
|
var y = "deltaY" in v ? Sl(v) : $r(v), b = n.current.filter(function(_) {
|
|
7674
7676
|
return _.name === v.type && (_.target === v.target || v.target === _.shadowParent) && ob(_.delta, y);
|
|
7675
7677
|
})[0];
|
|
@@ -7699,14 +7701,14 @@ function ab(e) {
|
|
|
7699
7701
|
d(g.type, $r(g), g.target, l(g, e.lockRef.current));
|
|
7700
7702
|
}, []);
|
|
7701
7703
|
x.useEffect(function() {
|
|
7702
|
-
return
|
|
7704
|
+
return gn.push(s), e.setCallbacks({
|
|
7703
7705
|
onScrollCapture: u,
|
|
7704
7706
|
onWheelCapture: u,
|
|
7705
7707
|
onTouchMoveCapture: m
|
|
7706
|
-
}), document.addEventListener("wheel", c,
|
|
7707
|
-
|
|
7708
|
+
}), document.addEventListener("wheel", c, hn), document.addEventListener("touchmove", c, hn), document.addEventListener("touchstart", f, hn), function() {
|
|
7709
|
+
gn = gn.filter(function(g) {
|
|
7708
7710
|
return g !== s;
|
|
7709
|
-
}), document.removeEventListener("wheel", c,
|
|
7711
|
+
}), document.removeEventListener("wheel", c, hn), document.removeEventListener("touchmove", c, hn), document.removeEventListener("touchstart", f, hn);
|
|
7710
7712
|
};
|
|
7711
7713
|
}, []);
|
|
7712
7714
|
var p = e.removeScrollBar, h = e.inert;
|
|
@@ -7732,7 +7734,7 @@ var ub = function(e) {
|
|
|
7732
7734
|
return null;
|
|
7733
7735
|
var n = Array.isArray(e) ? e[0] : e;
|
|
7734
7736
|
return n.ownerDocument.body;
|
|
7735
|
-
},
|
|
7737
|
+
}, vn = /* @__PURE__ */ new WeakMap(), Vr = /* @__PURE__ */ new WeakMap(), Lr = {}, Cs = 0, Nu = function(e) {
|
|
7736
7738
|
return e && (e.host || Nu(e.parentNode));
|
|
7737
7739
|
}, db = function(e, n) {
|
|
7738
7740
|
return n.map(function(t) {
|
|
@@ -7756,8 +7758,8 @@ var ub = function(e) {
|
|
|
7756
7758
|
f(m);
|
|
7757
7759
|
else
|
|
7758
7760
|
try {
|
|
7759
|
-
var p = m.getAttribute(r), h = p !== null && p !== "false", g = (
|
|
7760
|
-
|
|
7761
|
+
var p = m.getAttribute(r), h = p !== null && p !== "false", g = (vn.get(m) || 0) + 1, v = (s.get(m) || 0) + 1;
|
|
7762
|
+
vn.set(m, g), s.set(m, v), i.push(m), g === 1 && h && Vr.set(m, !0), v === 1 && m.setAttribute(t, "true"), h || m.setAttribute(r, "true");
|
|
7761
7763
|
} catch (y) {
|
|
7762
7764
|
console.error("aria-hidden: cannot operate on ", m, y);
|
|
7763
7765
|
}
|
|
@@ -7765,9 +7767,9 @@ var ub = function(e) {
|
|
|
7765
7767
|
};
|
|
7766
7768
|
return f(n), l.clear(), Cs++, function() {
|
|
7767
7769
|
i.forEach(function(u) {
|
|
7768
|
-
var m =
|
|
7769
|
-
|
|
7770
|
-
}), Cs--, Cs || (
|
|
7770
|
+
var m = vn.get(u) - 1, p = s.get(u) - 1;
|
|
7771
|
+
vn.set(u, m), s.set(u, p), m || (Vr.has(u) || u.removeAttribute(r), Vr.delete(u)), p || u.removeAttribute(t);
|
|
7772
|
+
}), Cs--, Cs || (vn = /* @__PURE__ */ new WeakMap(), vn = /* @__PURE__ */ new WeakMap(), Vr = /* @__PURE__ */ new WeakMap(), Lr = {});
|
|
7771
7773
|
};
|
|
7772
7774
|
}, Vi = function(e, n, t) {
|
|
7773
7775
|
t === void 0 && (t = "data-aria-hidden");
|
|
@@ -7840,7 +7842,7 @@ var uo = "DialogOverlay", Gi = x.forwardRef(
|
|
|
7840
7842
|
}
|
|
7841
7843
|
);
|
|
7842
7844
|
Gi.displayName = uo;
|
|
7843
|
-
var hb = /* @__PURE__ */
|
|
7845
|
+
var hb = /* @__PURE__ */ on("DialogOverlay.RemoveScroll"), gb = x.forwardRef(
|
|
7844
7846
|
(e, n) => {
|
|
7845
7847
|
const { __scopeDialog: t, ...r } = e, o = at(uo, t), s = vx(), i = ye(n, s);
|
|
7846
7848
|
return (
|
|
@@ -9003,7 +9005,7 @@ function Zu(e) {
|
|
|
9003
9005
|
function Kb(e, n, t) {
|
|
9004
9006
|
return n === void 0 && (n = !1), !t || n && t !== Be(e) ? !1 : n;
|
|
9005
9007
|
}
|
|
9006
|
-
function
|
|
9008
|
+
function sn(e, n, t, r) {
|
|
9007
9009
|
n === void 0 && (n = !1), t === void 0 && (t = !1);
|
|
9008
9010
|
const o = e.getBoundingClientRect(), s = ea(e);
|
|
9009
9011
|
let i = mt(1);
|
|
@@ -9027,7 +9029,7 @@ function on(e, n, t, r) {
|
|
|
9027
9029
|
}
|
|
9028
9030
|
function Lo(e, n) {
|
|
9029
9031
|
const t = Vo(e).scrollLeft;
|
|
9030
|
-
return n ? n.left + t :
|
|
9032
|
+
return n ? n.left + t : sn(ht(e)).left + t;
|
|
9031
9033
|
}
|
|
9032
9034
|
function ed(e, n) {
|
|
9033
9035
|
const t = e.getBoundingClientRect(), r = t.left + n.scrollLeft - Lo(e, t), o = t.top + n.scrollTop;
|
|
@@ -9052,7 +9054,7 @@ function Yb(e) {
|
|
|
9052
9054
|
}, d = mt(1);
|
|
9053
9055
|
const f = mt(0), u = Et(r);
|
|
9054
9056
|
if ((u || !u && !s) && ((Fn(r) !== "body" || pr(i)) && (c = Vo(r)), u)) {
|
|
9055
|
-
const p =
|
|
9057
|
+
const p = sn(r);
|
|
9056
9058
|
d = Sn(r), f.x = p.x + r.clientLeft, f.y = p.y + r.clientTop;
|
|
9057
9059
|
}
|
|
9058
9060
|
const m = i && !u && !s ? ed(i, c) : mt(0);
|
|
@@ -9099,7 +9101,7 @@ function Qb(e, n) {
|
|
|
9099
9101
|
};
|
|
9100
9102
|
}
|
|
9101
9103
|
function Zb(e, n) {
|
|
9102
|
-
const t =
|
|
9104
|
+
const t = sn(e, !0, n === "fixed"), r = t.top + e.clientTop, o = t.left + e.clientLeft, s = Et(e) ? Sn(e) : mt(1), i = e.clientWidth * s.x, l = e.clientHeight * s.y, c = o * s.x, d = r * s.y;
|
|
9103
9105
|
return {
|
|
9104
9106
|
width: i,
|
|
9105
9107
|
height: l,
|
|
@@ -9174,7 +9176,7 @@ function ny(e) {
|
|
|
9174
9176
|
};
|
|
9175
9177
|
}
|
|
9176
9178
|
function ry(e, n, t) {
|
|
9177
|
-
const r = Et(n), o = ht(n), s = t === "fixed", i =
|
|
9179
|
+
const r = Et(n), o = ht(n), s = t === "fixed", i = sn(e, !0, s, n);
|
|
9178
9180
|
let l = {
|
|
9179
9181
|
scrollLeft: 0,
|
|
9180
9182
|
scrollTop: 0
|
|
@@ -9185,7 +9187,7 @@ function ry(e, n, t) {
|
|
|
9185
9187
|
}
|
|
9186
9188
|
if (r || !r && !s)
|
|
9187
9189
|
if ((Fn(n) !== "body" || pr(o)) && (l = Vo(n)), r) {
|
|
9188
|
-
const p =
|
|
9190
|
+
const p = sn(n, !0, s, n);
|
|
9189
9191
|
c.x = p.x + n.clientLeft, c.y = p.y + n.clientTop;
|
|
9190
9192
|
} else o && d();
|
|
9191
9193
|
s && !r && o && d();
|
|
@@ -9325,10 +9327,10 @@ function ly(e, n, t, r) {
|
|
|
9325
9327
|
(S = p) == null || S.observe(n);
|
|
9326
9328
|
})), t();
|
|
9327
9329
|
}), d && !c && p.observe(d), n && p.observe(n));
|
|
9328
|
-
let h, g = c ?
|
|
9330
|
+
let h, g = c ? sn(e) : null;
|
|
9329
9331
|
c && v();
|
|
9330
9332
|
function v() {
|
|
9331
|
-
const y =
|
|
9333
|
+
const y = sn(e);
|
|
9332
9334
|
g && !rd(g, y) && t(), g = y, h = requestAnimationFrame(v);
|
|
9333
9335
|
}
|
|
9334
9336
|
return t(), () => {
|
|
@@ -9990,11 +9992,11 @@ var qy = gd, Wy = xd, ii = ["Enter", " "], Uy = ["ArrowDown", "PageUp", "Home"],
|
|
|
9990
9992
|
}, Jy = {
|
|
9991
9993
|
ltr: ["ArrowLeft"],
|
|
9992
9994
|
rtl: ["ArrowRight"]
|
|
9993
|
-
}, gr = "Menu", [Zn, Xy, Qy] = Ai(gr), [
|
|
9995
|
+
}, gr = "Menu", [Zn, Xy, Qy] = Ai(gr), [un, wd] = jt(gr, [
|
|
9994
9996
|
Qy,
|
|
9995
9997
|
Tn,
|
|
9996
9998
|
hd
|
|
9997
|
-
]), vr = Tn(), Sd = hd(), [Cd, Ht] =
|
|
9999
|
+
]), vr = Tn(), Sd = hd(), [Cd, Ht] = un(gr), [Zy, xr] = un(gr), Md = (e) => {
|
|
9998
10000
|
const { __scopeMenu: n, open: t = !1, children: r, dir: o, onOpenChange: s, modal: i = !0 } = e, l = vr(n), [c, d] = x.useState(null), f = x.useRef(!1), u = ot(s), m = Di(o);
|
|
9999
10001
|
return x.useEffect(() => {
|
|
10000
10002
|
const p = () => {
|
|
@@ -10038,14 +10040,14 @@ var ew = "MenuAnchor", aa = x.forwardRef(
|
|
|
10038
10040
|
}
|
|
10039
10041
|
);
|
|
10040
10042
|
aa.displayName = ew;
|
|
10041
|
-
var la = "MenuPortal", [tw, Rd] =
|
|
10043
|
+
var la = "MenuPortal", [tw, Rd] = un(la, {
|
|
10042
10044
|
forceMount: void 0
|
|
10043
10045
|
}), _d = (e) => {
|
|
10044
10046
|
const { __scopeMenu: n, forceMount: t, children: r, container: o } = e, s = Ht(la, n);
|
|
10045
10047
|
return /* @__PURE__ */ a.jsx(tw, { scope: n, forceMount: t, children: /* @__PURE__ */ a.jsx(Qe, { present: t || s.open, children: /* @__PURE__ */ a.jsx(fr, { asChild: !0, container: o, children: r }) }) });
|
|
10046
10048
|
};
|
|
10047
10049
|
_d.displayName = la;
|
|
10048
|
-
var Ke = "MenuContent", [nw, ca] =
|
|
10050
|
+
var Ke = "MenuContent", [nw, ca] = un(Ke), jd = x.forwardRef(
|
|
10049
10051
|
(e, n) => {
|
|
10050
10052
|
const t = Rd(Ke, e.__scopeMenu), { forceMount: r = t.forceMount, ...o } = e, s = Ht(Ke, e.__scopeMenu), i = xr(Ke, e.__scopeMenu);
|
|
10051
10053
|
return /* @__PURE__ */ a.jsx(Zn.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(Qe, { present: r || s.open, children: /* @__PURE__ */ a.jsx(Zn.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ a.jsx(rw, { ...o, ref: n }) : /* @__PURE__ */ a.jsx(ow, { ...o, ref: n }) }) }) });
|
|
@@ -10086,7 +10088,7 @@ var Ke = "MenuContent", [nw, ca] = cn(Ke), jd = x.forwardRef(
|
|
|
10086
10088
|
onDismiss: () => t.onOpenChange(!1)
|
|
10087
10089
|
}
|
|
10088
10090
|
);
|
|
10089
|
-
}), sw = /* @__PURE__ */
|
|
10091
|
+
}), sw = /* @__PURE__ */ on("MenuContent.ScrollLock"), ua = x.forwardRef(
|
|
10090
10092
|
(e, n) => {
|
|
10091
10093
|
const {
|
|
10092
10094
|
__scopeMenu: t,
|
|
@@ -10322,7 +10324,7 @@ var Nd = x.forwardRef(
|
|
|
10322
10324
|
}
|
|
10323
10325
|
);
|
|
10324
10326
|
Fd.displayName = lw;
|
|
10325
|
-
var Td = "MenuRadioGroup", [cw, uw] =
|
|
10327
|
+
var Td = "MenuRadioGroup", [cw, uw] = un(
|
|
10326
10328
|
Td,
|
|
10327
10329
|
{ value: void 0, onValueChange: () => {
|
|
10328
10330
|
} }
|
|
@@ -10354,7 +10356,7 @@ var Pd = "MenuRadioItem", Id = x.forwardRef(
|
|
|
10354
10356
|
}
|
|
10355
10357
|
);
|
|
10356
10358
|
Id.displayName = Pd;
|
|
10357
|
-
var fa = "MenuItemIndicator", [Ad, dw] =
|
|
10359
|
+
var fa = "MenuItemIndicator", [Ad, dw] = un(
|
|
10358
10360
|
fa,
|
|
10359
10361
|
{ checked: !1 }
|
|
10360
10362
|
), Dd = x.forwardRef(
|
|
@@ -10399,7 +10401,7 @@ var mw = "MenuArrow", $d = x.forwardRef(
|
|
|
10399
10401
|
}
|
|
10400
10402
|
);
|
|
10401
10403
|
$d.displayName = mw;
|
|
10402
|
-
var ma = "MenuSub", [pw, Vd] =
|
|
10404
|
+
var ma = "MenuSub", [pw, Vd] = un(ma), Ld = (e) => {
|
|
10403
10405
|
const { __scopeMenu: n, children: t, open: r = !1, onOpenChange: o } = e, s = Ht(ma, n), i = vr(n), [l, c] = x.useState(null), [d, f] = x.useState(null), u = ot(o);
|
|
10404
10406
|
return x.useEffect(() => (s.open === !1 && u(!1), () => u(!1)), [s.open, u]), /* @__PURE__ */ a.jsx(zo, { ...i, children: /* @__PURE__ */ a.jsx(
|
|
10405
10407
|
Cd,
|
|
@@ -10930,10 +10932,10 @@ var SS = af, CS = cf, MS = uf, RS = df;
|
|
|
10930
10932
|
function Dl(e, [n, t]) {
|
|
10931
10933
|
return Math.min(t, Math.max(n, e));
|
|
10932
10934
|
}
|
|
10933
|
-
var _S = [" ", "Enter", "ArrowUp", "ArrowDown"], jS = [" ", "Enter"],
|
|
10935
|
+
var _S = [" ", "Enter", "ArrowUp", "ArrowDown"], jS = [" ", "Enter"], an = "Select", [Uo, Ko, ES] = Ai(an), [dn] = jt(an, [
|
|
10934
10936
|
ES,
|
|
10935
10937
|
Tn
|
|
10936
|
-
]), Yo = Tn(), [NS, qt] =
|
|
10938
|
+
]), Yo = Tn(), [NS, qt] = dn(an), [FS, TS] = dn(an), kS = "SelectProvider";
|
|
10937
10939
|
function ff(e) {
|
|
10938
10940
|
const {
|
|
10939
10941
|
__scopeSelect: n,
|
|
@@ -10956,12 +10958,12 @@ function ff(e) {
|
|
|
10956
10958
|
prop: r,
|
|
10957
10959
|
defaultProp: o ?? !1,
|
|
10958
10960
|
onChange: s,
|
|
10959
|
-
caller:
|
|
10961
|
+
caller: an
|
|
10960
10962
|
}), [N, k] = $t({
|
|
10961
10963
|
prop: i,
|
|
10962
10964
|
defaultProp: l,
|
|
10963
10965
|
onChange: c,
|
|
10964
|
-
caller:
|
|
10966
|
+
caller: an
|
|
10965
10967
|
}), $ = x.useRef(null), G = y ? !!h || !!y.closest("form") : !0, [A, V] = x.useState(/* @__PURE__ */ new Set()), I = nt(), K = Array.from(A).map((ge) => ge.props.value).join(";"), H = x.useCallback((ge) => {
|
|
10966
10968
|
V((ve) => new Set(ve).add(ge));
|
|
10967
10969
|
}, []), P = x.useCallback((ge) => {
|
|
@@ -11022,7 +11024,7 @@ var mf = (e) => {
|
|
|
11022
11024
|
}
|
|
11023
11025
|
);
|
|
11024
11026
|
};
|
|
11025
|
-
mf.displayName =
|
|
11027
|
+
mf.displayName = an;
|
|
11026
11028
|
var pf = "SelectTrigger", hf = x.forwardRef(
|
|
11027
11029
|
(e, n) => {
|
|
11028
11030
|
const { __scopeSelect: t, disabled: r = !1, ...o } = e, s = Yo(t), i = qt(pf, t), l = i.disabled || r, c = ye(n, i.onTriggerChange), d = Ko(t), f = x.useRef("touch"), [u, m, p] = Lf((g) => {
|
|
@@ -11094,7 +11096,7 @@ var PS = "SelectIcon", xf = x.forwardRef(
|
|
|
11094
11096
|
}
|
|
11095
11097
|
);
|
|
11096
11098
|
xf.displayName = PS;
|
|
11097
|
-
var bf = "SelectPortal", [IS, AS] =
|
|
11099
|
+
var bf = "SelectPortal", [IS, AS] = dn(bf, {
|
|
11098
11100
|
forceMount: void 0
|
|
11099
11101
|
}), yf = (e) => {
|
|
11100
11102
|
const { __scopeSelect: n, forceMount: t, ...r } = e;
|
|
@@ -11118,7 +11120,7 @@ var Sf = x.forwardRef((e, n) => {
|
|
|
11118
11120
|
) : null;
|
|
11119
11121
|
});
|
|
11120
11122
|
Sf.displayName = "SelectContentFragment";
|
|
11121
|
-
var et = 10, [Cf, Wt] =
|
|
11123
|
+
var et = 10, [Cf, Wt] = dn(zt), DS = "SelectContentImpl", OS = /* @__PURE__ */ on("SelectContent.RemoveScroll"), Mf = x.forwardRef(
|
|
11122
11124
|
(e, n) => {
|
|
11123
11125
|
const { __scopeSelect: t } = e, {
|
|
11124
11126
|
position: r = "item-aligned",
|
|
@@ -11420,7 +11422,7 @@ var VS = "SelectPopperPosition", ai = x.forwardRef((e, n) => {
|
|
|
11420
11422
|
);
|
|
11421
11423
|
});
|
|
11422
11424
|
ai.displayName = VS;
|
|
11423
|
-
var [LS, ga] =
|
|
11425
|
+
var [LS, ga] = dn(zt, {}), li = "SelectViewport", _f = x.forwardRef(
|
|
11424
11426
|
(e, n) => {
|
|
11425
11427
|
const { __scopeSelect: t, nonce: r, ...o } = e, s = Wt(li, t), i = ga(li, t), l = ye(n, s.onViewportChange), c = x.useRef(0);
|
|
11426
11428
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
@@ -11473,7 +11475,7 @@ var [LS, ga] = un(zt, {}), li = "SelectViewport", _f = x.forwardRef(
|
|
|
11473
11475
|
}
|
|
11474
11476
|
);
|
|
11475
11477
|
_f.displayName = li;
|
|
11476
|
-
var jf = "SelectGroup", [zS, BS] =
|
|
11478
|
+
var jf = "SelectGroup", [zS, BS] = dn(jf), GS = x.forwardRef(
|
|
11477
11479
|
(e, n) => {
|
|
11478
11480
|
const { __scopeSelect: t, ...r } = e, o = nt();
|
|
11479
11481
|
return /* @__PURE__ */ a.jsx(zS, { scope: t, id: o, children: /* @__PURE__ */ a.jsx(de.div, { role: "group", "aria-labelledby": o, ...r, ref: n }) });
|
|
@@ -11487,7 +11489,7 @@ var Ef = "SelectLabel", HS = x.forwardRef(
|
|
|
11487
11489
|
}
|
|
11488
11490
|
);
|
|
11489
11491
|
HS.displayName = Ef;
|
|
11490
|
-
var yo = "SelectItem", [qS, Nf] =
|
|
11492
|
+
var yo = "SelectItem", [qS, Nf] = dn(yo), Ff = x.forwardRef(
|
|
11491
11493
|
(e, n) => {
|
|
11492
11494
|
const {
|
|
11493
11495
|
__scopeSelect: t,
|
|
@@ -12059,7 +12061,7 @@ function t0({ column: e }) {
|
|
|
12059
12061
|
const t = (e.columnDef.meta?.filterOperators ?? []).filter((h) => h in Ol), r = e.getFilterValue(), [o, s] = J(r?.operator ?? "_contains"), [i, l] = J(
|
|
12060
12062
|
r?.operator === "_null" ? "" : String(r?.value ?? "")
|
|
12061
12063
|
), c = Ne(), d = o === "_null";
|
|
12062
|
-
|
|
12064
|
+
Oe(() => () => {
|
|
12063
12065
|
c.current && clearTimeout(c.current);
|
|
12064
12066
|
}, []);
|
|
12065
12067
|
const f = (h, g) => {
|
|
@@ -12131,7 +12133,7 @@ function Ns(e, n) {
|
|
|
12131
12133
|
}
|
|
12132
12134
|
function r0({ column: e }) {
|
|
12133
12135
|
const t = (e.columnDef.meta?.filterOperators ?? []).filter((C) => C in $l), r = n0(e), o = e.getFilterValue(), s = o?.operator ?? "_eq", [i, l] = J(s), [c, d] = J(() => !o || o.operator === "_null" || o.operator === "_between" ? "" : String(o.value ?? "")), [f, u] = J(() => o?.operator === "_between" && Array.isArray(o.value) ? String(o.value[0] ?? "") : ""), [m, p] = J(() => o?.operator === "_between" && Array.isArray(o.value) ? String(o.value[1] ?? "") : ""), h = Ne();
|
|
12134
|
-
|
|
12136
|
+
Oe(() => () => {
|
|
12135
12137
|
h.current && clearTimeout(h.current);
|
|
12136
12138
|
}, []);
|
|
12137
12139
|
const g = (C, E) => {
|
|
@@ -12489,7 +12491,7 @@ function v0({ column: e, fkMeta: n }) {
|
|
|
12489
12491
|
] })
|
|
12490
12492
|
] });
|
|
12491
12493
|
}
|
|
12492
|
-
function
|
|
12494
|
+
function xn({
|
|
12493
12495
|
column: e,
|
|
12494
12496
|
table: n,
|
|
12495
12497
|
title: t
|
|
@@ -12508,7 +12510,7 @@ function vn({
|
|
|
12508
12510
|
),
|
|
12509
12511
|
children: [
|
|
12510
12512
|
/* @__PURE__ */ a.jsx("span", { children: t }),
|
|
12511
|
-
s && /* @__PURE__ */ a.jsx(
|
|
12513
|
+
s && /* @__PURE__ */ a.jsx(Qt, { className: "size-3 text-primary" }),
|
|
12512
12514
|
o === "desc" ? /* @__PURE__ */ a.jsx(rl, { className: "size-4" }) : o === "asc" ? /* @__PURE__ */ a.jsx(sl, { className: "size-4" }) : /* @__PURE__ */ a.jsx(ol, { className: "size-4" })
|
|
12513
12515
|
]
|
|
12514
12516
|
}
|
|
@@ -12533,7 +12535,7 @@ function vn({
|
|
|
12533
12535
|
/* @__PURE__ */ a.jsx(Jt, {}),
|
|
12534
12536
|
/* @__PURE__ */ a.jsxs(Vn, { children: [
|
|
12535
12537
|
/* @__PURE__ */ a.jsxs(Ln, { children: [
|
|
12536
|
-
/* @__PURE__ */ a.jsx(
|
|
12538
|
+
/* @__PURE__ */ a.jsx(Qt, { className: ee(
|
|
12537
12539
|
"size-3.5",
|
|
12538
12540
|
s ? "text-primary" : "text-muted-foreground"
|
|
12539
12541
|
) }),
|
|
@@ -12546,7 +12548,7 @@ function vn({
|
|
|
12546
12548
|
/* @__PURE__ */ a.jsx(Jt, {}),
|
|
12547
12549
|
/* @__PURE__ */ a.jsxs(Vn, { children: [
|
|
12548
12550
|
/* @__PURE__ */ a.jsxs(Ln, { children: [
|
|
12549
|
-
/* @__PURE__ */ a.jsx(
|
|
12551
|
+
/* @__PURE__ */ a.jsx(Qt, { className: ee(
|
|
12550
12552
|
"size-3.5",
|
|
12551
12553
|
s ? "text-primary" : "text-muted-foreground"
|
|
12552
12554
|
) }),
|
|
@@ -12559,7 +12561,7 @@ function vn({
|
|
|
12559
12561
|
/* @__PURE__ */ a.jsx(Jt, {}),
|
|
12560
12562
|
/* @__PURE__ */ a.jsxs(Vn, { children: [
|
|
12561
12563
|
/* @__PURE__ */ a.jsxs(Ln, { children: [
|
|
12562
|
-
/* @__PURE__ */ a.jsx(
|
|
12564
|
+
/* @__PURE__ */ a.jsx(Qt, { className: ee(
|
|
12563
12565
|
"size-3.5",
|
|
12564
12566
|
s ? "text-primary" : "text-muted-foreground"
|
|
12565
12567
|
) }),
|
|
@@ -12572,7 +12574,7 @@ function vn({
|
|
|
12572
12574
|
/* @__PURE__ */ a.jsx(Jt, {}),
|
|
12573
12575
|
/* @__PURE__ */ a.jsxs(Vn, { children: [
|
|
12574
12576
|
/* @__PURE__ */ a.jsxs(Ln, { children: [
|
|
12575
|
-
/* @__PURE__ */ a.jsx(
|
|
12577
|
+
/* @__PURE__ */ a.jsx(Qt, { className: ee(
|
|
12576
12578
|
"size-3.5",
|
|
12577
12579
|
s ? "text-primary" : "text-muted-foreground"
|
|
12578
12580
|
) }),
|
|
@@ -12585,7 +12587,7 @@ function vn({
|
|
|
12585
12587
|
/* @__PURE__ */ a.jsx(Jt, {}),
|
|
12586
12588
|
/* @__PURE__ */ a.jsxs(Vn, { children: [
|
|
12587
12589
|
/* @__PURE__ */ a.jsxs(Ln, { children: [
|
|
12588
|
-
/* @__PURE__ */ a.jsx(
|
|
12590
|
+
/* @__PURE__ */ a.jsx(Qt, { className: ee(
|
|
12589
12591
|
"size-3.5",
|
|
12590
12592
|
s ? "text-primary" : "text-muted-foreground"
|
|
12591
12593
|
) }),
|
|
@@ -13191,7 +13193,7 @@ const hC = (e, n, t, r) => {
|
|
|
13191
13193
|
return {
|
|
13192
13194
|
id: i.name,
|
|
13193
13195
|
accessorKey: i.name,
|
|
13194
|
-
header: ({ column: y, table: b }) => /* @__PURE__ */ a.jsx(
|
|
13196
|
+
header: ({ column: y, table: b }) => /* @__PURE__ */ a.jsx(xn, { column: y, table: b, title: v }),
|
|
13195
13197
|
enableSorting: !0,
|
|
13196
13198
|
meta: {
|
|
13197
13199
|
sortField: i.name,
|
|
@@ -13247,7 +13249,7 @@ const hC = (e, n, t, r) => {
|
|
|
13247
13249
|
id: i.name,
|
|
13248
13250
|
accessorFn: (h) => i.name ? String(h?.[i.name] ?? "") : "",
|
|
13249
13251
|
cell: ({ row: h }) => wo(h.original[i.name], i),
|
|
13250
|
-
header: ({ column: h, table: g }) => /* @__PURE__ */ a.jsx(
|
|
13252
|
+
header: ({ column: h, table: g }) => /* @__PURE__ */ a.jsx(xn, { column: h, table: g, title: i.label }),
|
|
13251
13253
|
enableSorting: !0,
|
|
13252
13254
|
meta: {
|
|
13253
13255
|
sortField: i.name,
|
|
@@ -13267,7 +13269,7 @@ const hC = (e, n, t, r) => {
|
|
|
13267
13269
|
return i?.joinTable ? {
|
|
13268
13270
|
id: i.name,
|
|
13269
13271
|
accessorKey: i.name,
|
|
13270
|
-
header: ({ column: u, table: m }) => /* @__PURE__ */ a.jsx(
|
|
13272
|
+
header: ({ column: u, table: m }) => /* @__PURE__ */ a.jsx(xn, { column: u, table: m, title: i.label }),
|
|
13271
13273
|
enableSorting: !0,
|
|
13272
13274
|
meta: { sortField: i.name, paramType: i.paramType, filterOperators: d, column: i },
|
|
13273
13275
|
cell: ({ row: u }) => {
|
|
@@ -13281,13 +13283,13 @@ const hC = (e, n, t, r) => {
|
|
|
13281
13283
|
const m = u.original[i.name];
|
|
13282
13284
|
return m == null || m === "" ? /* @__PURE__ */ a.jsx(En, { kind: m === "" ? "empty" : "null" }) : ql(m);
|
|
13283
13285
|
},
|
|
13284
|
-
header: ({ column: u, table: m }) => /* @__PURE__ */ a.jsx(
|
|
13286
|
+
header: ({ column: u, table: m }) => /* @__PURE__ */ a.jsx(xn, { column: u, table: m, title: i.label }),
|
|
13285
13287
|
enableSorting: !0,
|
|
13286
13288
|
meta: { sortField: i.name, paramType: i.paramType, dbType: i.dbType, filterOperators: d, column: i }
|
|
13287
13289
|
} : So(i.dbType) || tr(i.dbType) ? {
|
|
13288
13290
|
id: i.name,
|
|
13289
13291
|
accessorFn: (u) => i.name ? String(u?.[i.name] ?? "") : "",
|
|
13290
|
-
header: ({ column: u, table: m }) => /* @__PURE__ */ a.jsx(
|
|
13292
|
+
header: ({ column: u, table: m }) => /* @__PURE__ */ a.jsx(xn, { column: u, table: m, title: i.label }),
|
|
13291
13293
|
enableSorting: !0,
|
|
13292
13294
|
meta: { sortField: i.name, paramType: i.paramType, dbType: i.dbType, filterOperators: d, column: i },
|
|
13293
13295
|
cell: ({ row: u }) => /* @__PURE__ */ a.jsx(
|
|
@@ -13302,7 +13304,7 @@ const hC = (e, n, t, r) => {
|
|
|
13302
13304
|
id: i.name,
|
|
13303
13305
|
accessorFn: (u) => i.name ? String(u?.[i.name] ?? "") : "",
|
|
13304
13306
|
cell: ({ row: u }) => wo(u.original[i.name], i),
|
|
13305
|
-
header: ({ column: u, table: m }) => /* @__PURE__ */ a.jsx(
|
|
13307
|
+
header: ({ column: u, table: m }) => /* @__PURE__ */ a.jsx(xn, { column: u, table: m, title: i.label }),
|
|
13306
13308
|
enableSorting: !0,
|
|
13307
13309
|
meta: { sortField: i.name, paramType: i.paramType, dbType: i.dbType, filterOperators: d, column: i }
|
|
13308
13310
|
};
|
|
@@ -14194,24 +14196,24 @@ const pi = ({
|
|
|
14194
14196
|
formLevelError: e,
|
|
14195
14197
|
fieldLevelError: n
|
|
14196
14198
|
}) => n ? { newErrorValue: n, newSource: "field" } : e ? { newErrorValue: e, newSource: "form" } : { newErrorValue: void 0, newSource: void 0 };
|
|
14197
|
-
function
|
|
14199
|
+
function De(e, n) {
|
|
14198
14200
|
return e == null ? n : { ...e, ...n };
|
|
14199
14201
|
}
|
|
14200
|
-
let
|
|
14202
|
+
let Zt = 256;
|
|
14201
14203
|
const ro = [];
|
|
14202
14204
|
let Hr;
|
|
14203
|
-
for (;
|
|
14204
|
-
ro[
|
|
14205
|
+
for (; Zt--; )
|
|
14206
|
+
ro[Zt] = (Zt + 256).toString(16).substring(1);
|
|
14205
14207
|
function rm() {
|
|
14206
14208
|
let e = 0, n, t = "";
|
|
14207
|
-
if (!Hr ||
|
|
14209
|
+
if (!Hr || Zt + 16 > 256) {
|
|
14208
14210
|
for (Hr = new Array(256), e = 256; e--; )
|
|
14209
14211
|
Hr[e] = 256 * Math.random() | 0;
|
|
14210
|
-
e = 0,
|
|
14212
|
+
e = 0, Zt = 0;
|
|
14211
14213
|
}
|
|
14212
14214
|
for (; e < 16; e++)
|
|
14213
|
-
n = Hr[
|
|
14214
|
-
return
|
|
14215
|
+
n = Hr[Zt + e], e === 6 ? t += ro[n & 15 | 64] : e === 8 ? t += ro[n & 63 | 128] : t += ro[n], e & 1 && e > 1 && e < 11 && (t += "-");
|
|
14216
|
+
return Zt++, t;
|
|
14215
14217
|
}
|
|
14216
14218
|
const kC = _C(
|
|
14217
14219
|
(e) => Ue.emit("form-state", {
|
|
@@ -14250,7 +14252,7 @@ function Un(e) {
|
|
|
14250
14252
|
Object.prototype.hasOwnProperty.call(e, t) && (n[t] = Un(e[t]));
|
|
14251
14253
|
return n;
|
|
14252
14254
|
}
|
|
14253
|
-
function
|
|
14255
|
+
function nn(e, n) {
|
|
14254
14256
|
return n === e || n.startsWith(`${e}.`) || n.startsWith(`${e}[`);
|
|
14255
14257
|
}
|
|
14256
14258
|
const ft = (e) => {
|
|
@@ -14326,7 +14328,7 @@ const Ql = (e, n) => {
|
|
|
14326
14328
|
form: t,
|
|
14327
14329
|
fields: t
|
|
14328
14330
|
};
|
|
14329
|
-
},
|
|
14331
|
+
}, rn = {
|
|
14330
14332
|
validate({
|
|
14331
14333
|
value: e,
|
|
14332
14334
|
validationSource: n
|
|
@@ -14988,7 +14990,7 @@ class Zl {
|
|
|
14988
14990
|
l,
|
|
14989
14991
|
...f.slice(i)
|
|
14990
14992
|
],
|
|
14991
|
-
|
|
14993
|
+
De(c, { dontValidate: !0 })
|
|
14992
14994
|
);
|
|
14993
14995
|
const d = c?.dontValidate ?? !1;
|
|
14994
14996
|
d || await this.validateField(s, "change"), kt(this).handleArrayInsert(s, i), d || await this.validateArrayFieldsStartingFrom(s, i, "change");
|
|
@@ -14998,7 +15000,7 @@ class Zl {
|
|
|
14998
15000
|
(f) => f.map(
|
|
14999
15001
|
(u, m) => m === i ? l : u
|
|
15000
15002
|
),
|
|
15001
|
-
|
|
15003
|
+
De(c, { dontValidate: !0 })
|
|
15002
15004
|
), kt(this).bumpArrayVersion(s), (c?.dontValidate ?? !1) || (await this.validateField(s, "change"), await this.validateArrayFieldsStartingFrom(s, i, "change"));
|
|
15003
15005
|
}, this.removeFieldValue = async (s, i, l) => {
|
|
15004
15006
|
const c = this.getFieldValue(s), d = Array.isArray(c) ? Math.max(c.length - 1, 0) : null;
|
|
@@ -15007,7 +15009,7 @@ class Zl {
|
|
|
15007
15009
|
(u) => u.filter(
|
|
15008
15010
|
(m, p) => p !== i
|
|
15009
15011
|
),
|
|
15010
|
-
|
|
15012
|
+
De(l, { dontValidate: !0 })
|
|
15011
15013
|
), kt(this).handleArrayRemove(s, i), d !== null) {
|
|
15012
15014
|
const u = `${s}[${d}]`;
|
|
15013
15015
|
this.deleteField(u);
|
|
@@ -15020,7 +15022,7 @@ class Zl {
|
|
|
15020
15022
|
const u = f[i], m = f[l];
|
|
15021
15023
|
return Bn(Bn(f, `${i}`, m), `${l}`, u);
|
|
15022
15024
|
},
|
|
15023
|
-
|
|
15025
|
+
De(c, { dontValidate: !0 })
|
|
15024
15026
|
), kt(this).handleArraySwap(s, i, l), (c?.dontValidate ?? !1) || (this.validateField(s, "change"), this.validateField(`${s}[${i}]`, "change"), this.validateField(`${s}[${l}]`, "change"));
|
|
15025
15027
|
}, this.moveFieldValues = (s, i, l, c) => {
|
|
15026
15028
|
this.setFieldValue(
|
|
@@ -15029,14 +15031,14 @@ class Zl {
|
|
|
15029
15031
|
const u = [...f];
|
|
15030
15032
|
return u.splice(l, 0, u.splice(i, 1)[0]), u;
|
|
15031
15033
|
},
|
|
15032
|
-
|
|
15034
|
+
De(c, { dontValidate: !0 })
|
|
15033
15035
|
), kt(this).handleArrayMove(s, i, l), (c?.dontValidate ?? !1) || (this.validateField(s, "change"), this.validateField(`${s}[${i}]`, "change"), this.validateField(`${s}[${l}]`, "change"));
|
|
15034
15036
|
}, this.clearFieldValues = (s, i) => {
|
|
15035
15037
|
const l = this.getFieldValue(s), c = Array.isArray(l) ? Math.max(l.length - 1, 0) : null;
|
|
15036
15038
|
if (this.setFieldValue(
|
|
15037
15039
|
s,
|
|
15038
15040
|
[],
|
|
15039
|
-
|
|
15041
|
+
De(i, { dontValidate: !0 })
|
|
15040
15042
|
), kt(this).bumpArrayVersion(s), c !== null)
|
|
15041
15043
|
for (let f = 0; f <= c; f++) {
|
|
15042
15044
|
const u = `${s}[${f}]`;
|
|
@@ -15104,10 +15106,10 @@ class Zl {
|
|
|
15104
15106
|
}), s),
|
|
15105
15107
|
{}
|
|
15106
15108
|
)
|
|
15107
|
-
}), this.parseValuesWithSchema = (s) =>
|
|
15109
|
+
}), this.parseValuesWithSchema = (s) => rn.validate(
|
|
15108
15110
|
{ value: this.state.values, validationSource: "form" },
|
|
15109
15111
|
s
|
|
15110
|
-
), this.parseValuesWithSchemaAsync = (s) =>
|
|
15112
|
+
), this.parseValuesWithSchemaAsync = (s) => rn.validateAsync(
|
|
15111
15113
|
{ value: this.state.values, validationSource: "form" },
|
|
15112
15114
|
s
|
|
15113
15115
|
), this.timeoutIds = {
|
|
@@ -15199,12 +15201,12 @@ class Zl {
|
|
|
15199
15201
|
}, m = l[f];
|
|
15200
15202
|
let p = !1, h = !0, g = !1, v = !1, y = !0, b = !1;
|
|
15201
15203
|
for (const V in l) {
|
|
15202
|
-
if (V === f || !
|
|
15204
|
+
if (V === f || !nn(f, V)) continue;
|
|
15203
15205
|
const I = l[V];
|
|
15204
15206
|
I && (I.isValidating && (p = !0), I.isValid || (h = !1), I.isTouched && (g = !0), I.isBlurred && (v = !0), I.isDefaultValue || (y = !1), I.isDirty && (b = !0));
|
|
15205
15207
|
}
|
|
15206
15208
|
const S = !b, M = !!p || u.isValidating, _ = m?.errorMap ?? {}, w = m?.errorSourceMap ?? {}, j = !!(_.onMount || Object.entries(l).some(
|
|
15207
|
-
([V, I]) => I && V !== f &&
|
|
15209
|
+
([V, I]) => I && V !== f && nn(f, V) && I.errorMap.onMount
|
|
15208
15210
|
)), C = s?.[f];
|
|
15209
15211
|
let E = C?.errors ?? [];
|
|
15210
15212
|
(!C || C.__srcErrorMap !== _) && (E = Object.values(_).reduce((V, I) => {
|
|
@@ -15305,7 +15307,7 @@ class Zl {
|
|
|
15305
15307
|
* @private
|
|
15306
15308
|
*/
|
|
15307
15309
|
runValidator(n) {
|
|
15308
|
-
return Ca(n.validate) ?
|
|
15310
|
+
return Ca(n.validate) ? rn[n.type](
|
|
15309
15311
|
n.value,
|
|
15310
15312
|
n.validate
|
|
15311
15313
|
) : n.validate(n.value);
|
|
@@ -15431,52 +15433,52 @@ class sr {
|
|
|
15431
15433
|
this.form.setFieldValue(
|
|
15432
15434
|
this.name,
|
|
15433
15435
|
t,
|
|
15434
|
-
|
|
15436
|
+
De(r, { dontRunListeners: !0, dontValidate: !0 })
|
|
15435
15437
|
), r?.dontRunListeners || this.triggerOnChangeListener(), r?.dontValidate || this.validate("change");
|
|
15436
15438
|
}, this.getMeta = () => this.store.state.meta, this.setMeta = (t) => this.form.setFieldMeta(this.name, t), this.getInfo = () => this.form.getFieldInfo(this.name), this.pushValue = (t, r) => {
|
|
15437
15439
|
this.form.pushFieldValue(
|
|
15438
15440
|
this.name,
|
|
15439
15441
|
t,
|
|
15440
|
-
|
|
15442
|
+
De(r, { dontRunListeners: !0 })
|
|
15441
15443
|
), r?.dontRunListeners || this.triggerOnChangeListener();
|
|
15442
15444
|
}, this.insertValue = (t, r, o) => {
|
|
15443
15445
|
this.form.insertFieldValue(
|
|
15444
15446
|
this.name,
|
|
15445
15447
|
t,
|
|
15446
15448
|
r,
|
|
15447
|
-
|
|
15449
|
+
De(o, { dontRunListeners: !0 })
|
|
15448
15450
|
), o?.dontRunListeners || this.triggerOnChangeListener();
|
|
15449
15451
|
}, this.replaceValue = (t, r, o) => {
|
|
15450
15452
|
this.form.replaceFieldValue(
|
|
15451
15453
|
this.name,
|
|
15452
15454
|
t,
|
|
15453
15455
|
r,
|
|
15454
|
-
|
|
15456
|
+
De(o, { dontRunListeners: !0 })
|
|
15455
15457
|
), o?.dontRunListeners || this.triggerOnChangeListener();
|
|
15456
15458
|
}, this.removeValue = (t, r) => {
|
|
15457
15459
|
this.form.removeFieldValue(
|
|
15458
15460
|
this.name,
|
|
15459
15461
|
t,
|
|
15460
|
-
|
|
15462
|
+
De(r, { dontRunListeners: !0 })
|
|
15461
15463
|
), r?.dontRunListeners || this.triggerOnChangeListener();
|
|
15462
15464
|
}, this.swapValues = (t, r, o) => {
|
|
15463
15465
|
this.form.swapFieldValues(
|
|
15464
15466
|
this.name,
|
|
15465
15467
|
t,
|
|
15466
15468
|
r,
|
|
15467
|
-
|
|
15469
|
+
De(o, { dontRunListeners: !0 })
|
|
15468
15470
|
), o?.dontRunListeners || this.triggerOnChangeListener();
|
|
15469
15471
|
}, this.moveValue = (t, r, o) => {
|
|
15470
15472
|
this.form.moveFieldValues(
|
|
15471
15473
|
this.name,
|
|
15472
15474
|
t,
|
|
15473
15475
|
r,
|
|
15474
|
-
|
|
15476
|
+
De(o, { dontRunListeners: !0 })
|
|
15475
15477
|
), o?.dontRunListeners || this.triggerOnChangeListener();
|
|
15476
15478
|
}, this.clearValues = (t) => {
|
|
15477
15479
|
this.form.clearFieldValues(
|
|
15478
15480
|
this.name,
|
|
15479
|
-
|
|
15481
|
+
De(t, { dontRunListeners: !0 })
|
|
15480
15482
|
), t?.dontRunListeners || this.triggerOnChangeListener();
|
|
15481
15483
|
}, this.getLinkedFields = (t) => {
|
|
15482
15484
|
const r = Object.values(this.form.fieldInfo), o = [];
|
|
@@ -15669,7 +15671,7 @@ class sr {
|
|
|
15669
15671
|
{
|
|
15670
15672
|
group: m,
|
|
15671
15673
|
dontUpdateFormErrorMap: !0,
|
|
15672
|
-
filterFieldNames: (h) =>
|
|
15674
|
+
filterFieldNames: (h) => nn(m.name, h)
|
|
15673
15675
|
}
|
|
15674
15676
|
);
|
|
15675
15677
|
i = {
|
|
@@ -15718,10 +15720,10 @@ class sr {
|
|
|
15718
15720
|
...t
|
|
15719
15721
|
}
|
|
15720
15722
|
}));
|
|
15721
|
-
}, this.parseValueWithSchema = (t) =>
|
|
15723
|
+
}, this.parseValueWithSchema = (t) => rn.validate(
|
|
15722
15724
|
{ value: this.state.value, validationSource: "field" },
|
|
15723
15725
|
t
|
|
15724
|
-
), this.parseValueWithSchemaAsync = (t) =>
|
|
15726
|
+
), this.parseValueWithSchemaAsync = (t) => rn.validateAsync(
|
|
15725
15727
|
{ value: this.state.value, validationSource: "field" },
|
|
15726
15728
|
t
|
|
15727
15729
|
), this.triggerOnBlurListener = () => {
|
|
@@ -15767,7 +15769,7 @@ class sr {
|
|
|
15767
15769
|
fieldApi: this
|
|
15768
15770
|
});
|
|
15769
15771
|
for (const o of this.form.formGroupApis)
|
|
15770
|
-
|
|
15772
|
+
nn(o.name, this.name) && o.triggerOnChangeListener();
|
|
15771
15773
|
}, this.triggerOnSubmitListener = () => {
|
|
15772
15774
|
this.options.listeners?.onSubmit?.({
|
|
15773
15775
|
value: this.state.value,
|
|
@@ -15802,7 +15804,7 @@ class sr {
|
|
|
15802
15804
|
* @private
|
|
15803
15805
|
*/
|
|
15804
15806
|
runValidator(n) {
|
|
15805
|
-
return Ca(n.validate) ?
|
|
15807
|
+
return Ca(n.validate) ? rn[n.type](
|
|
15806
15808
|
n.value,
|
|
15807
15809
|
n.validate
|
|
15808
15810
|
) : n.validate(n.value);
|
|
@@ -15955,7 +15957,7 @@ class ir {
|
|
|
15955
15957
|
this.form.setFieldValue(
|
|
15956
15958
|
this.name,
|
|
15957
15959
|
t,
|
|
15958
|
-
|
|
15960
|
+
De(r, { dontRunListeners: !0, dontValidate: !0 })
|
|
15959
15961
|
), r?.dontRunListeners || this.triggerOnChangeListener(), r?.dontValidate || this.validate("change");
|
|
15960
15962
|
}, this.getMeta = () => this.store.state.meta, this.setMeta = (t) => this.form.setFieldMeta(this.name, t), this.getInfo = () => this.fieldInfo, this.getRelatedFields = () => {
|
|
15961
15963
|
const t = Object.values(this.form.fieldInfo), r = [];
|
|
@@ -15965,7 +15967,7 @@ class ir {
|
|
|
15965
15967
|
}, this.getRelatedFieldMetasDerived = () => {
|
|
15966
15968
|
const t = Object.entries(this.form.fieldMetaDerived.state), r = [];
|
|
15967
15969
|
for (const [o, s] of t)
|
|
15968
|
-
o !== this.name &&
|
|
15970
|
+
o !== this.name && nn(this.name, o) && r.push({ ...s, name: o });
|
|
15969
15971
|
return r;
|
|
15970
15972
|
}, this.buildChildFieldName = (t) => t === "" ? this.name : t.startsWith("[") ? `${this.name}${t}` : `${this.name}.${t}`, this.distributeFieldErrors = (t, r) => {
|
|
15971
15973
|
const o = this._lastDistributedFieldNames[t] ?? /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set();
|
|
@@ -16203,7 +16205,7 @@ class ir {
|
|
|
16203
16205
|
), this.validate = (t, r) => {
|
|
16204
16206
|
const { fieldsErrorMap: o } = r?.skipFormValidation ? { fieldsErrorMap: {} } : this.form.validateSync(t, {
|
|
16205
16207
|
dontUpdateFormErrorMap: !0,
|
|
16206
|
-
filterFieldNames: (l) =>
|
|
16208
|
+
filterFieldNames: (l) => nn(this.name, l)
|
|
16207
16209
|
}), { hasErrored: s } = this.validateSync(
|
|
16208
16210
|
t,
|
|
16209
16211
|
o[this.name] ?? {},
|
|
@@ -16213,7 +16215,7 @@ class ir {
|
|
|
16213
16215
|
return this.getInfo().validationMetaMap[qr(t)]?.lastAbortController.abort(), this.state.meta.errors;
|
|
16214
16216
|
const i = r?.skipFormValidation ? Promise.resolve({}) : this.form.validateAsync(t, {
|
|
16215
16217
|
dontUpdateFormErrorMap: !0,
|
|
16216
|
-
filterFieldNames: (l) =>
|
|
16218
|
+
filterFieldNames: (l) => nn(this.name, l)
|
|
16217
16219
|
});
|
|
16218
16220
|
return this.validateAsync(t, i, {
|
|
16219
16221
|
skipRelatedFieldValidation: r?.skipRelatedFieldValidation
|
|
@@ -16350,7 +16352,7 @@ class ir {
|
|
|
16350
16352
|
*/
|
|
16351
16353
|
runValidator(n) {
|
|
16352
16354
|
if (Ca(n.validate)) {
|
|
16353
|
-
const t =
|
|
16355
|
+
const t = rn[n.type](
|
|
16354
16356
|
n.value,
|
|
16355
16357
|
n.validate
|
|
16356
16358
|
);
|
|
@@ -16422,7 +16424,7 @@ var nc;
|
|
|
16422
16424
|
function DC() {
|
|
16423
16425
|
if (nc) return $s;
|
|
16424
16426
|
nc = 1;
|
|
16425
|
-
var e =
|
|
16427
|
+
var e = ln;
|
|
16426
16428
|
function n(u, m) {
|
|
16427
16429
|
return u === m && (u !== 0 || 1 / u === 1 / m) || u !== u && m !== m;
|
|
16428
16430
|
}
|
|
@@ -16509,7 +16511,7 @@ function OC() {
|
|
|
16509
16511
|
return h();
|
|
16510
16512
|
}
|
|
16511
16513
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
16512
|
-
var o =
|
|
16514
|
+
var o = ln, s = typeof Object.is == "function" ? Object.is : e, i = o.useState, l = o.useEffect, c = o.useLayoutEffect, d = o.useDebugValue, f = !1, u = !1, m = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : n;
|
|
16513
16515
|
Vs.useSyncExternalStore = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore : m, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
16514
16516
|
})()), Vs;
|
|
16515
16517
|
}
|
|
@@ -16521,7 +16523,7 @@ var sc;
|
|
|
16521
16523
|
function $C() {
|
|
16522
16524
|
if (sc) return Os;
|
|
16523
16525
|
sc = 1;
|
|
16524
|
-
var e =
|
|
16526
|
+
var e = ln, n = om();
|
|
16525
16527
|
function t(d, f) {
|
|
16526
16528
|
return d === f && (d !== 0 || 1 / d === 1 / f) || d !== d && f !== f;
|
|
16527
16529
|
}
|
|
@@ -16576,7 +16578,7 @@ function VC() {
|
|
|
16576
16578
|
return d === f && (d !== 0 || 1 / d === 1 / f) || d !== d && f !== f;
|
|
16577
16579
|
}
|
|
16578
16580
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
16579
|
-
var n =
|
|
16581
|
+
var n = ln, t = om(), r = typeof Object.is == "function" ? Object.is : e, o = t.useSyncExternalStore, s = n.useRef, i = n.useEffect, l = n.useMemo, c = n.useDebugValue;
|
|
16580
16582
|
Ls.useSyncExternalStoreWithSelector = function(d, f, u, m, p) {
|
|
16581
16583
|
var h = s(null);
|
|
16582
16584
|
if (h.current === null) {
|
|
@@ -16636,7 +16638,7 @@ function GC(e, n = (r) => r, t) {
|
|
|
16636
16638
|
}, [e]), s = oe(() => e.get(), [e]);
|
|
16637
16639
|
return zC.useSyncExternalStoreWithSelector(o, s, s, n, r);
|
|
16638
16640
|
}
|
|
16639
|
-
const Ce = (e, n = (r) => r, t) => GC(e, n), At = typeof window < "u" ? hc :
|
|
16641
|
+
const Ce = (e, n = (r) => r, t) => GC(e, n), At = typeof window < "u" ? hc : Oe;
|
|
16640
16642
|
function HC(e) {
|
|
16641
16643
|
const [n, t] = J(() => ({
|
|
16642
16644
|
form: e.form,
|
|
@@ -17143,7 +17145,7 @@ function sM({
|
|
|
17143
17145
|
const b = p.current;
|
|
17144
17146
|
b && (b.style.height = "auto", b.style.height = Math.min(b.scrollHeight, 400) + "px");
|
|
17145
17147
|
}, []);
|
|
17146
|
-
if (
|
|
17148
|
+
if (Oe(h, [t, h]), c)
|
|
17147
17149
|
return /* @__PURE__ */ a.jsx(iM, { name: e, label: n, value: t });
|
|
17148
17150
|
if (!d && f === "text")
|
|
17149
17151
|
return null;
|
|
@@ -17640,7 +17642,7 @@ function es({ errors: e }) {
|
|
|
17640
17642
|
}
|
|
17641
17643
|
function xM({ anchorEl: e, onEdit: n, onDelete: t, onMouseEnter: r, onDismiss: o }) {
|
|
17642
17644
|
const s = Ne(null);
|
|
17643
|
-
return
|
|
17645
|
+
return Oe(() => {
|
|
17644
17646
|
const i = s.current;
|
|
17645
17647
|
return i ? ((() => {
|
|
17646
17648
|
const c = e.getBoundingClientRect(), d = i.offsetHeight, f = i.offsetWidth;
|
|
@@ -17653,7 +17655,7 @@ function xM({ anchorEl: e, onEdit: n, onDelete: t, onMouseEnter: r, onDismiss: o
|
|
|
17653
17655
|
} catch {
|
|
17654
17656
|
}
|
|
17655
17657
|
}) : void 0;
|
|
17656
|
-
}, [e]),
|
|
17658
|
+
}, [e]), Oe(() => {
|
|
17657
17659
|
const i = (l) => {
|
|
17658
17660
|
const c = s.current;
|
|
17659
17661
|
c && !c.contains(l.target) && o();
|
|
@@ -17753,7 +17755,7 @@ function CM({
|
|
|
17753
17755
|
}, [A]), [K, H] = J({}), [P, T] = J({}), [ge, ve] = J(
|
|
17754
17756
|
() => t ? dc(t) : {}
|
|
17755
17757
|
), [le, pe] = J(!0), U = Ne(null);
|
|
17756
|
-
|
|
17758
|
+
Oe(() => {
|
|
17757
17759
|
t && wM(t, ge);
|
|
17758
17760
|
}, [t, ge]);
|
|
17759
17761
|
const se = Ne(t);
|
|
@@ -17781,7 +17783,7 @@ function CM({
|
|
|
17781
17783
|
const D = U.current;
|
|
17782
17784
|
return D ? Math.max(5, Math.floor((D.clientHeight - Hc) / Gc)) : 10;
|
|
17783
17785
|
}, []);
|
|
17784
|
-
|
|
17786
|
+
Oe(() => {
|
|
17785
17787
|
if (!le) return;
|
|
17786
17788
|
const D = U.current;
|
|
17787
17789
|
if (!D) return;
|
|
@@ -17792,7 +17794,7 @@ function CM({
|
|
|
17792
17794
|
return Ft.observe(D), () => {
|
|
17793
17795
|
cancelAnimationFrame(we), Ft.disconnect();
|
|
17794
17796
|
};
|
|
17795
|
-
}, [le, fe, v]),
|
|
17797
|
+
}, [le, fe, v]), Oe(() => {
|
|
17796
17798
|
T({});
|
|
17797
17799
|
}, [n, o]);
|
|
17798
17800
|
const me = [];
|
|
@@ -18244,9 +18246,9 @@ function AM({
|
|
|
18244
18246
|
canNavigateNext: s
|
|
18245
18247
|
}) {
|
|
18246
18248
|
const [i, l] = J(!1), [c, d] = J(!1), [f, u] = J(""), [m, p] = J(!1), h = Ne(null), g = e?.value ?? "", v = va(g, e?.dbType), y = kM[v], b = IM(g, v);
|
|
18247
|
-
|
|
18249
|
+
Oe(() => {
|
|
18248
18250
|
d(!1), u(""), p(!1);
|
|
18249
|
-
}, [e?.rowIndex, e?.columnName]),
|
|
18251
|
+
}, [e?.rowIndex, e?.columnName]), Oe(() => {
|
|
18250
18252
|
if (!e) return;
|
|
18251
18253
|
const A = (V) => {
|
|
18252
18254
|
c || (V.key === "ArrowUp" && o ? (V.preventDefault(), t("prev")) : V.key === "ArrowDown" && s && (V.preventDefault(), t("next")));
|
|
@@ -18700,7 +18702,7 @@ function fc(e) {
|
|
|
18700
18702
|
}
|
|
18701
18703
|
function mm({ parentTable: e, selectedRowId: n, onClose: t, onOpenColumn: r }) {
|
|
18702
18704
|
const o = qe(), s = dm(e), [i, l] = J(s[0]?.key ?? ""), [c, d] = J(!1), [f, u] = J(null), m = s.find((g) => g.key === i) ?? s[0];
|
|
18703
|
-
if (
|
|
18705
|
+
if (Oe(() => {
|
|
18704
18706
|
u(null);
|
|
18705
18707
|
}, [i, n]), s.length === 0 || !o.data) return null;
|
|
18706
18708
|
const p = m.kind === "child" ? o.findTable(m.join.destinationTable) : void 0, h = (p?.multiJoins?.length ?? 0) > 0;
|
|
@@ -18872,7 +18874,7 @@ function XM(e, n, t) {
|
|
|
18872
18874
|
function vi(e, n) {
|
|
18873
18875
|
return e.find((t) => t.name === n);
|
|
18874
18876
|
}
|
|
18875
|
-
function
|
|
18877
|
+
function Xt() {
|
|
18876
18878
|
const e = Ni(), { table: n, id: t, filterTable: r } = e, { loading: o, error: s, data: i } = qe(), [l, c] = J(null), [d, f] = J([]), u = Ne(n);
|
|
18877
18879
|
n !== u.current && (u.current = n, d.length > 0 && f([]));
|
|
18878
18880
|
const { register: m, unregister: p } = KM(), h = Ne(null), g = Ne(/* @__PURE__ */ new Map()), v = ae(() => i ? vi(i, n) : void 0, [i, n]), y = v ? dm(v).length > 0 : !1, b = oe((w) => {
|
|
@@ -18888,7 +18890,7 @@ function xn() {
|
|
|
18888
18890
|
}),
|
|
18889
18891
|
[n, d, i]
|
|
18890
18892
|
);
|
|
18891
|
-
return
|
|
18893
|
+
return Oe(() => {
|
|
18892
18894
|
const w = g.current;
|
|
18893
18895
|
w.set(0, h.current);
|
|
18894
18896
|
for (const j of w.keys())
|
|
@@ -19017,7 +19019,7 @@ function Hs() {
|
|
|
19017
19019
|
() => v?.columns?.map((_) => ({ key: _.name, value: `${_.name},${_.paramType}`, label: _.label })),
|
|
19018
19020
|
[v]
|
|
19019
19021
|
), [b, S] = J(y?.at(0)?.value ?? "");
|
|
19020
|
-
|
|
19022
|
+
Oe(() => {
|
|
19021
19023
|
f(""), S(y?.at(0)?.value ?? "");
|
|
19022
19024
|
}, [y]);
|
|
19023
19025
|
const M = () => {
|
|
@@ -19111,7 +19113,7 @@ function Hs() {
|
|
|
19111
19113
|
)
|
|
19112
19114
|
] }),
|
|
19113
19115
|
/* @__PURE__ */ a.jsxs(X, { variant: "ghost", size: "sm", onClick: M, className: "shrink-0 rounded-none border-l border-border h-8 px-3 text-xs", children: [
|
|
19114
|
-
/* @__PURE__ */ a.jsx(
|
|
19116
|
+
/* @__PURE__ */ a.jsx(Qt, { className: "size-3.5" }),
|
|
19115
19117
|
"Filter"
|
|
19116
19118
|
] })
|
|
19117
19119
|
] }),
|
|
@@ -19242,34 +19244,35 @@ function nR() {
|
|
|
19242
19244
|
}
|
|
19243
19245
|
),
|
|
19244
19246
|
/* @__PURE__ */ a.jsx("div", { className: "flex-1 min-w-0", children: /* @__PURE__ */ a.jsx(Yr, { section: "Header", children: /* @__PURE__ */ a.jsxs(hs, { children: [
|
|
19245
|
-
/* @__PURE__ */ a.jsx(
|
|
19246
|
-
/* @__PURE__ */ a.jsx(
|
|
19247
|
-
/* @__PURE__ */ a.jsx(
|
|
19247
|
+
/* @__PURE__ */ a.jsx(Ae, { path: "/:table/*", element: /* @__PURE__ */ a.jsx(Hs, {}) }),
|
|
19248
|
+
/* @__PURE__ */ a.jsx(Ae, { path: "/:table", element: /* @__PURE__ */ a.jsx(Hs, {}) }),
|
|
19249
|
+
/* @__PURE__ */ a.jsx(Ae, { path: "/", element: /* @__PURE__ */ a.jsx(Hs, {}) })
|
|
19248
19250
|
] }) }) })
|
|
19249
19251
|
] }),
|
|
19250
19252
|
/* @__PURE__ */ a.jsx("nav", { "aria-label": "Tables", className: `border-r border-border overflow-y-auto sticky top-14 ${e ? "" : "hidden"} md:block`, children: /* @__PURE__ */ a.jsx(Yr, { section: "Table List", children: /* @__PURE__ */ a.jsx(Vv, {}) }) }),
|
|
19251
19253
|
/* @__PURE__ */ a.jsxs("main", { className: "flex flex-col overflow-hidden min-h-0 px-1 py-0.5", children: [
|
|
19252
19254
|
/* @__PURE__ */ a.jsx(Yr, { section: "Data Panel", children: /* @__PURE__ */ a.jsx(Oa, { fallback: /* @__PURE__ */ a.jsx(pc, {}), children: /* @__PURE__ */ a.jsxs(hs, { children: [
|
|
19253
|
-
/* @__PURE__ */ a.jsx(
|
|
19254
|
-
/* @__PURE__ */ a.jsx(
|
|
19255
|
-
/* @__PURE__ */ a.jsx(
|
|
19256
|
-
/* @__PURE__ */ a.jsx(
|
|
19257
|
-
/* @__PURE__ */ a.jsx(
|
|
19258
|
-
/* @__PURE__ */ a.jsx(
|
|
19259
|
-
/* @__PURE__ */ a.jsx(
|
|
19255
|
+
/* @__PURE__ */ a.jsx(Ae, { path: "/:table/from/:filterTable/:id/edit/:editid", element: /* @__PURE__ */ a.jsx(Xt, {}) }),
|
|
19256
|
+
/* @__PURE__ */ a.jsx(Ae, { path: "/:table/from/:filterTable/:id", element: /* @__PURE__ */ a.jsx(Xt, {}) }),
|
|
19257
|
+
/* @__PURE__ */ a.jsx(Ae, { path: "/:table/:id/edit/:editid", element: /* @__PURE__ */ a.jsx(Xt, {}) }),
|
|
19258
|
+
/* @__PURE__ */ a.jsx(Ae, { path: "/:table/edit/:editid", element: /* @__PURE__ */ a.jsx(Xt, {}) }),
|
|
19259
|
+
/* @__PURE__ */ a.jsx(Ae, { path: "/:table/edit", element: /* @__PURE__ */ a.jsx(Xt, {}) }),
|
|
19260
|
+
/* @__PURE__ */ a.jsx(Ae, { path: "/:table/:id", element: /* @__PURE__ */ a.jsx(Xt, {}) }),
|
|
19261
|
+
/* @__PURE__ */ a.jsx(Ae, { path: "/:table", element: /* @__PURE__ */ a.jsx(Xt, {}) }),
|
|
19262
|
+
/* @__PURE__ */ a.jsx(Ae, { path: "/", element: /* @__PURE__ */ a.jsx(eR, {}) })
|
|
19260
19263
|
] }) }) }),
|
|
19261
19264
|
/* @__PURE__ */ a.jsx(Yr, { section: "Data Edit", children: /* @__PURE__ */ a.jsx(Oa, { fallback: /* @__PURE__ */ a.jsx(pc, {}), children: /* @__PURE__ */ a.jsxs(hs, { children: [
|
|
19262
|
-
/* @__PURE__ */ a.jsx(
|
|
19263
|
-
/* @__PURE__ */ a.jsx(
|
|
19264
|
-
/* @__PURE__ */ a.jsx(
|
|
19265
|
-
/* @__PURE__ */ a.jsx(
|
|
19265
|
+
/* @__PURE__ */ a.jsx(Ae, { path: "/:table/from/:filterTable/:id/edit/:editid", element: /* @__PURE__ */ a.jsx(Kr, {}) }),
|
|
19266
|
+
/* @__PURE__ */ a.jsx(Ae, { path: "/:table/:id/edit/:editid", element: /* @__PURE__ */ a.jsx(Kr, {}) }),
|
|
19267
|
+
/* @__PURE__ */ a.jsx(Ae, { path: "/:table/edit/:editid", element: /* @__PURE__ */ a.jsx(Kr, {}) }),
|
|
19268
|
+
/* @__PURE__ */ a.jsx(Ae, { path: "/:table/edit", element: /* @__PURE__ */ a.jsx(Kr, {}) })
|
|
19266
19269
|
] }) }) })
|
|
19267
19270
|
] })
|
|
19268
19271
|
] }) }) });
|
|
19269
19272
|
}
|
|
19270
19273
|
function rR({ onLocate: e }) {
|
|
19271
19274
|
const n = Uh();
|
|
19272
|
-
return
|
|
19275
|
+
return Oe(() => {
|
|
19273
19276
|
e?.(n);
|
|
19274
19277
|
}, [n, e]), /* @__PURE__ */ a.jsx(nR, {});
|
|
19275
19278
|
}
|