ados-rcm 1.0.32 → 1.0.33
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/AModule/AComponents/ASelect/ASelect.d.ts +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +114 -114
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -218,7 +218,7 @@ function Qo() {
|
|
|
218
218
|
ae < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
|
-
var
|
|
221
|
+
var z = R.ReactCurrentDispatcher, re;
|
|
222
222
|
function ce(d, D, $) {
|
|
223
223
|
{
|
|
224
224
|
if (re === void 0)
|
|
@@ -250,7 +250,7 @@ function Qo() {
|
|
|
250
250
|
var Ae = Error.prepareStackTrace;
|
|
251
251
|
Error.prepareStackTrace = void 0;
|
|
252
252
|
var De;
|
|
253
|
-
De =
|
|
253
|
+
De = z.current, z.current = null, V();
|
|
254
254
|
try {
|
|
255
255
|
if (D) {
|
|
256
256
|
var be = function() {
|
|
@@ -303,7 +303,7 @@ function Qo() {
|
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
305
|
} finally {
|
|
306
|
-
k = !1,
|
|
306
|
+
k = !1, z.current = De, Q(), Error.prepareStackTrace = Ae;
|
|
307
307
|
}
|
|
308
308
|
var At = d ? d.displayName || d.name : "", An = At ? ce(At) : "";
|
|
309
309
|
return typeof d == "function" && L.set(d, An), An;
|
|
@@ -676,7 +676,7 @@ const B = {
|
|
|
676
676
|
function ia(e, t) {
|
|
677
677
|
return e.idx !== void 0 && t.idx !== void 0 ? e.idx === t.idx : e === t;
|
|
678
678
|
}
|
|
679
|
-
const sa = (e, t) => JSON.stringify(e, null, t), la = (e) => Object.keys(e), ca = (e) => Object.values(e), ua = (e, t) => Object.keys(e).includes(t), da = (e, t) => Object.entries(e).map((r, n) => t(r, n)), fa = (e, t) => Object.entries(e).some(([r, n]) => t(r, n)), ha = (e, t) => Object.entries(e).find(([r, n]) => t(r, n)), uo = (e) => _t.isValidElement(e) || typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null || e === void 0 || Array.isArray(e) && e.every(uo),
|
|
679
|
+
const sa = (e, t) => JSON.stringify(e, null, t), la = (e) => Object.keys(e), ca = (e) => Object.values(e), ua = (e, t) => Object.keys(e).includes(t), da = (e, t) => Object.entries(e).map((r, n) => t(r, n)), fa = (e, t) => Object.entries(e).some(([r, n]) => t(r, n)), ha = (e, t) => Object.entries(e).find(([r, n]) => t(r, n)), uo = (e) => _t.isValidElement(e) || typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null || e === void 0 || Array.isArray(e) && e.every(uo), W = {
|
|
680
680
|
equal: ia,
|
|
681
681
|
parse: aa,
|
|
682
682
|
stringify: sa,
|
|
@@ -1058,7 +1058,7 @@ const sa = (e, t) => JSON.stringify(e, null, t), la = (e) => Object.keys(e), ca
|
|
|
1058
1058
|
Gear: (e) => /* @__PURE__ */ o.jsx("svg", { ...e, ref: e == null ? void 0 : e.svgRef, children: /* @__PURE__ */ o.jsx("path", { d: "M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z" }) }),
|
|
1059
1059
|
TriangleUp: (e) => /* @__PURE__ */ o.jsx("svg", { ...e, ref: e == null ? void 0 : e.svgRef, children: /* @__PURE__ */ o.jsx("path", { d: "M12 8.5L17.5 17L6.5 17L12 8.5Z" }) }),
|
|
1060
1060
|
TriangleDown: (e) => /* @__PURE__ */ o.jsx("svg", { ...e, ref: e == null ? void 0 : e.svgRef, children: /* @__PURE__ */ o.jsx("path", { d: "M12 18.5L5.93782 8L18.0622 8L12 18.5Z" }) })
|
|
1061
|
-
}), Qd =
|
|
1061
|
+
}), Qd = W.keys(fo);
|
|
1062
1062
|
function fr(e, t, r) {
|
|
1063
1063
|
return t !== void 0 && e < t ? t : r !== void 0 && e > r ? r : e;
|
|
1064
1064
|
}
|
|
@@ -1591,7 +1591,7 @@ const G = {
|
|
|
1591
1591
|
ASelect: ci
|
|
1592
1592
|
};
|
|
1593
1593
|
function ui(e, t) {
|
|
1594
|
-
|
|
1594
|
+
W.keys(t).forEach((r) => {
|
|
1595
1595
|
e[r] = t[r];
|
|
1596
1596
|
});
|
|
1597
1597
|
}
|
|
@@ -1775,7 +1775,7 @@ const Ci = (e) => {
|
|
|
1775
1775
|
return Array.isArray(r) ? r.length < 1 ? n : r.length === 1 ? /* @__PURE__ */ o.jsx(t, { option: r[0] }) : `${r.length} selected` : r === null ? n : /* @__PURE__ */ o.jsx(t, { option: r });
|
|
1776
1776
|
}, Ai = (e) => {
|
|
1777
1777
|
let { option: t } = e;
|
|
1778
|
-
return typeof t == "object" ?
|
|
1778
|
+
return typeof t == "object" ? W.stringify(t) : W.isReactNode(t) ? t : null;
|
|
1779
1779
|
}, Di = "_ASpace_fk4ge_1", ki = {
|
|
1780
1780
|
ASpace: Di
|
|
1781
1781
|
}, Be = (e) => {
|
|
@@ -1921,7 +1921,7 @@ const Ci = (e) => {
|
|
|
1921
1921
|
F(!0), setTimeout(() => ye(!0), 0), setTimeout(() => de(), 0), S(G.toString(y)), x(y.getMonth()), E(y.getFullYear());
|
|
1922
1922
|
}, [y, de]), ke = b(() => {
|
|
1923
1923
|
F(!0), ye(!1);
|
|
1924
|
-
}, []), V = A(() => U ? ke : me, [U, me, ke]), Q = b(() => F(!1), []),
|
|
1924
|
+
}, []), V = A(() => U ? ke : me, [U, me, ke]), Q = b(() => F(!1), []), z = b(
|
|
1925
1925
|
(k) => {
|
|
1926
1926
|
const L = document.getElementById("root"), w = k.target, Y = we.current, q = ae.current;
|
|
1927
1927
|
!L || !Y || !w || !q || !Y.contains(w) && L.contains(w) && !q.contains(w) && ke();
|
|
@@ -1930,8 +1930,8 @@ const Ci = (e) => {
|
|
|
1930
1930
|
);
|
|
1931
1931
|
oe(() => {
|
|
1932
1932
|
if (U)
|
|
1933
|
-
return setTimeout(() => document.addEventListener("mousedown",
|
|
1934
|
-
}, [U,
|
|
1933
|
+
return setTimeout(() => document.addEventListener("mousedown", z), 0), () => document.removeEventListener("mousedown", z);
|
|
1934
|
+
}, [U, z]);
|
|
1935
1935
|
const re = b(() => {
|
|
1936
1936
|
de();
|
|
1937
1937
|
}, [de]);
|
|
@@ -2169,11 +2169,11 @@ const yo = (e) => {
|
|
|
2169
2169
|
return ue;
|
|
2170
2170
|
}, [T, de, p, O, y, g, u, v]), me = je(null), ke = b(() => {
|
|
2171
2171
|
me && fn(me, ce, a);
|
|
2172
|
-
}, [me, a]), [V, Q] = ve(!1), [
|
|
2172
|
+
}, [me, a]), [V, Q] = ve(!1), [z, re] = ve(!1), ce = je(null), k = b(() => {
|
|
2173
2173
|
Q(!0), setTimeout(() => re(!0), 0), setTimeout(() => ke(), 0), E("sDT"), S(G.toString(y.sDate)), x(G.toString(y.eDate)), M(y.sDate.getMonth()), j(y.sDate.getFullYear());
|
|
2174
2174
|
}, [y, ke]), L = b(() => {
|
|
2175
2175
|
Q(!0), re(!1);
|
|
2176
|
-
}, []), w = A(() =>
|
|
2176
|
+
}, []), w = A(() => z ? L : k, [z, k, L]), Y = b(() => Q(!1), []), q = b(
|
|
2177
2177
|
(_) => {
|
|
2178
2178
|
const K = document.getElementById("root"), Ce = _.target, ue = ce.current, ie = me.current;
|
|
2179
2179
|
!K || !ue || !Ce || !ie || !ue.contains(Ce) && K.contains(Ce) && !ie.contains(Ce) && L();
|
|
@@ -2181,14 +2181,14 @@ const yo = (e) => {
|
|
|
2181
2181
|
[L]
|
|
2182
2182
|
);
|
|
2183
2183
|
oe(() => {
|
|
2184
|
-
if (
|
|
2184
|
+
if (z)
|
|
2185
2185
|
return setTimeout(() => document.addEventListener("mousedown", q), 0), () => document.removeEventListener("mousedown", q);
|
|
2186
|
-
}, [
|
|
2186
|
+
}, [z, q]);
|
|
2187
2187
|
const le = b(() => {
|
|
2188
2188
|
ke();
|
|
2189
2189
|
}, [ke]);
|
|
2190
2190
|
oe(() => {
|
|
2191
|
-
if (!
|
|
2191
|
+
if (!z || !(me != null && me.current))
|
|
2192
2192
|
return;
|
|
2193
2193
|
const _ = me.current;
|
|
2194
2194
|
let K = _.parentElement;
|
|
@@ -2199,10 +2199,10 @@ const yo = (e) => {
|
|
|
2199
2199
|
for (; Ce; )
|
|
2200
2200
|
Ce.removeEventListener("scroll", le), Ce = Ce.parentElement;
|
|
2201
2201
|
};
|
|
2202
|
-
}, [me,
|
|
2203
|
-
if (
|
|
2202
|
+
}, [me, z, le]), oe(() => {
|
|
2203
|
+
if (z)
|
|
2204
2204
|
return window.addEventListener("resize", le), () => window.removeEventListener("resize", le);
|
|
2205
|
-
}, [
|
|
2205
|
+
}, [z, le]);
|
|
2206
2206
|
const _e = b(
|
|
2207
2207
|
(_) => {
|
|
2208
2208
|
_[0].intersectionRatio === 0 && L();
|
|
@@ -2210,11 +2210,11 @@ const yo = (e) => {
|
|
|
2210
2210
|
[L]
|
|
2211
2211
|
);
|
|
2212
2212
|
return oe(() => {
|
|
2213
|
-
if (!
|
|
2213
|
+
if (!z)
|
|
2214
2214
|
return;
|
|
2215
2215
|
const _ = new IntersectionObserver(_e, { threshold: 0 });
|
|
2216
2216
|
return ce.current && _.observe(ce.current), () => _.disconnect();
|
|
2217
|
-
}, [ce,
|
|
2217
|
+
}, [ce, z, _e]), oe(() => {
|
|
2218
2218
|
n && (n.current = { open: k, close: L, toggle: w });
|
|
2219
2219
|
}, [n, k, L, w]), oe(() => {
|
|
2220
2220
|
if (!m)
|
|
@@ -2235,13 +2235,13 @@ const yo = (e) => {
|
|
|
2235
2235
|
/* @__PURE__ */ o.jsx(ho, {}),
|
|
2236
2236
|
f
|
|
2237
2237
|
] }),
|
|
2238
|
-
(
|
|
2238
|
+
(z || V) && $t.createPortal(
|
|
2239
2239
|
/* @__PURE__ */ o.jsxs(
|
|
2240
2240
|
"div",
|
|
2241
2241
|
{
|
|
2242
2242
|
className: ee.ADatePicker,
|
|
2243
2243
|
onTransitionEnd: Y,
|
|
2244
|
-
style: { opacity: +
|
|
2244
|
+
style: { opacity: +z, visibility: z ? "visible" : "hidden" },
|
|
2245
2245
|
ref: ce,
|
|
2246
2246
|
children: [
|
|
2247
2247
|
/* @__PURE__ */ o.jsxs("div", { className: ee.StringInputContainer, children: [
|
|
@@ -2614,7 +2614,7 @@ const he = {
|
|
|
2614
2614
|
...r
|
|
2615
2615
|
}), [r]), E = A(() => {
|
|
2616
2616
|
const T = {};
|
|
2617
|
-
return
|
|
2617
|
+
return W.keys(t).forEach((M) => {
|
|
2618
2618
|
const g = t[M], j = {
|
|
2619
2619
|
...p,
|
|
2620
2620
|
...g
|
|
@@ -2630,7 +2630,7 @@ const he = {
|
|
|
2630
2630
|
style: { opacity: +c, visibility: c ? "visible" : "hidden" },
|
|
2631
2631
|
onTransitionEnd: C,
|
|
2632
2632
|
ref: u,
|
|
2633
|
-
children:
|
|
2633
|
+
children: W.map(E, ([T]) => {
|
|
2634
2634
|
const M = { ...p, ...E[T] };
|
|
2635
2635
|
if (M.noDisplay)
|
|
2636
2636
|
return null;
|
|
@@ -2654,7 +2654,7 @@ const he = {
|
|
|
2654
2654
|
...r
|
|
2655
2655
|
}), [r]), c = A(() => {
|
|
2656
2656
|
const s = {};
|
|
2657
|
-
return
|
|
2657
|
+
return W.keys(t).forEach((f) => {
|
|
2658
2658
|
const h = t[f], u = {
|
|
2659
2659
|
...l,
|
|
2660
2660
|
...h
|
|
@@ -2662,7 +2662,7 @@ const he = {
|
|
|
2662
2662
|
s[f] = u;
|
|
2663
2663
|
}), s;
|
|
2664
2664
|
}, [l, t]);
|
|
2665
|
-
return /* @__PURE__ */ o.jsx(Ee, { ...i, className: B.clsx(vr.AListView, i.className), children:
|
|
2665
|
+
return /* @__PURE__ */ o.jsx(Ee, { ...i, className: B.clsx(vr.AListView, i.className), children: W.map(c, ([s]) => {
|
|
2666
2666
|
const f = { ...l, ...c[s] }, h = he.getContent(f.label, { defKey: s, item: n, def: f }), u = n ? he.getContent(f.content, { defKey: s, item: n, def: f }) : null;
|
|
2667
2667
|
return /* @__PURE__ */ o.jsxs("div", { className: vr.Row, style: { height: a }, children: [
|
|
2668
2668
|
/* @__PURE__ */ o.jsx("div", { className: vr.Label, children: h }),
|
|
@@ -2672,9 +2672,9 @@ const he = {
|
|
|
2672
2672
|
}, _s = (e) => e.defKey, Ss = (e) => {
|
|
2673
2673
|
let { defKey: t, item: r } = e;
|
|
2674
2674
|
if (r)
|
|
2675
|
-
if (
|
|
2675
|
+
if (W.hasKey(r, t)) {
|
|
2676
2676
|
const n = r[t];
|
|
2677
|
-
return
|
|
2677
|
+
return W.isReactNode(n) ? n : null;
|
|
2678
2678
|
} else
|
|
2679
2679
|
return null;
|
|
2680
2680
|
else
|
|
@@ -2726,7 +2726,7 @@ const he = {
|
|
|
2726
2726
|
] });
|
|
2727
2727
|
}, Nn = (e) => {
|
|
2728
2728
|
let { step: t } = e;
|
|
2729
|
-
return typeof t == "object" ?
|
|
2729
|
+
return typeof t == "object" ? W.stringify(t) : t;
|
|
2730
2730
|
}, Ps = "_ASwitch_d0xe2_1", Os = "_Track_d0xe2_6", Ms = "_Truthy_d0xe2_13", Ns = "_Thumb_d0xe2_17", Zt = {
|
|
2731
2731
|
ASwitch: Ps,
|
|
2732
2732
|
Track: Os,
|
|
@@ -2792,21 +2792,21 @@ const he = {
|
|
|
2792
2792
|
if (typeof t == "object") {
|
|
2793
2793
|
if (t === null)
|
|
2794
2794
|
return "";
|
|
2795
|
-
const r =
|
|
2795
|
+
const r = W.keys(t);
|
|
2796
2796
|
return "name" in r ? t.name : "label" in r ? t.label : "value" in r ? t.value : JSON.stringify(t);
|
|
2797
2797
|
} else
|
|
2798
2798
|
return JSON.stringify(t);
|
|
2799
2799
|
}, Fn = {
|
|
2800
2800
|
String: (e, t, r) => {
|
|
2801
2801
|
if (r.defKey === "")
|
|
2802
|
-
return
|
|
2802
|
+
return W.keys(t).some((s) => {
|
|
2803
2803
|
const f = t[s], h = he.getContent(f.asText, { defKey: s, def: f, item: e });
|
|
2804
2804
|
if (h !== void 0)
|
|
2805
2805
|
return h.toString().toLowerCase().includes(r.value.toLowerCase());
|
|
2806
2806
|
const u = he.getContent(f.content, { defKey: s, def: f, item: e });
|
|
2807
2807
|
return ["string", "number"].includes(typeof u) && u !== void 0 && u !== null ? u.toString().toLowerCase().includes(r.value.toLowerCase()) : !1;
|
|
2808
2808
|
});
|
|
2809
|
-
const n =
|
|
2809
|
+
const n = W.keys(t), a = r.defKey;
|
|
2810
2810
|
if (!n.includes(a))
|
|
2811
2811
|
return !1;
|
|
2812
2812
|
const i = t[a], l = he.getContent(i.asText, { defKey: a, def: i, item: e });
|
|
@@ -2817,14 +2817,14 @@ const he = {
|
|
|
2817
2817
|
},
|
|
2818
2818
|
Select: (e, t, r) => {
|
|
2819
2819
|
if (r.defKey === "")
|
|
2820
|
-
return
|
|
2820
|
+
return W.keys(t).some((s) => {
|
|
2821
2821
|
const f = t[s], h = he.getContent(f.asText, { defKey: s, def: f, item: e });
|
|
2822
2822
|
if (h !== void 0)
|
|
2823
2823
|
return r.values.some((v) => v.toString().toLowerCase() === h.toString().toLowerCase());
|
|
2824
2824
|
const u = he.getContent(f.content, { defKey: s, def: f, item: e });
|
|
2825
2825
|
return ["string", "number"].includes(typeof u) && u !== void 0 && u !== null ? r.values.some((v) => v.toString().toLowerCase() === u.toString().toLowerCase()) : !1;
|
|
2826
2826
|
});
|
|
2827
|
-
const n =
|
|
2827
|
+
const n = W.keys(t), a = r.defKey;
|
|
2828
2828
|
if (!n.includes(a))
|
|
2829
2829
|
return !1;
|
|
2830
2830
|
const i = t[a], l = he.getContent(i.asText, { defKey: a, def: i, item: e });
|
|
@@ -2834,7 +2834,7 @@ const he = {
|
|
|
2834
2834
|
return ["string", "number"].includes(typeof c) && c !== void 0 && c !== null ? r.values.some((s) => s.toString().toLowerCase() === c.toString().toLowerCase()) : !1;
|
|
2835
2835
|
},
|
|
2836
2836
|
Date: (e, t, r) => {
|
|
2837
|
-
const n =
|
|
2837
|
+
const n = W.keys(t), a = r.defKey;
|
|
2838
2838
|
if (!n.includes(a))
|
|
2839
2839
|
return !1;
|
|
2840
2840
|
const i = t[a], l = he.getContent(i.asText, { defKey: a, def: i, item: e });
|
|
@@ -2850,7 +2850,7 @@ const he = {
|
|
|
2850
2850
|
return !1;
|
|
2851
2851
|
},
|
|
2852
2852
|
DateRange: (e, t, r) => {
|
|
2853
|
-
const n =
|
|
2853
|
+
const n = W.keys(t), a = r.defKey;
|
|
2854
2854
|
if (!n.includes(a))
|
|
2855
2855
|
return !1;
|
|
2856
2856
|
const i = t[a], l = he.getContent(i.asText, { defKey: a, def: i, item: e });
|
|
@@ -2938,7 +2938,7 @@ const he = {
|
|
|
2938
2938
|
} = e;
|
|
2939
2939
|
const [v, y] = A(() => n ?? [], [n]), m = b(
|
|
2940
2940
|
(V) => {
|
|
2941
|
-
a || !y || !v || l != null && l(V) || (i ? v.some((Q) =>
|
|
2941
|
+
a || !y || !v || l != null && l(V) || (i ? v.some((Q) => W.equal(Q, V)) ? y(v.filter((Q) => !W.equal(Q, V))) : y([...v, V]) : y([V]));
|
|
2942
2942
|
},
|
|
2943
2943
|
[v, l, y, a, i]
|
|
2944
2944
|
);
|
|
@@ -2956,25 +2956,25 @@ const he = {
|
|
|
2956
2956
|
[C, S]
|
|
2957
2957
|
), [x, p] = ve(), E = A(() => x && ye.current ? ye.current.getBoundingClientRect().height + 50 : "100%", [x]), T = b(() => p(void 0), []);
|
|
2958
2958
|
oe(() => (document.addEventListener("mouseup", T), () => document.removeEventListener("mouseup", T)), [T]);
|
|
2959
|
-
const M = je(null), [g, j] = ve({}), O = je({ x: 0, y: 0 }), H = je({}), I = A(() =>
|
|
2959
|
+
const M = je(null), [g, j] = ve({}), O = je({ x: 0, y: 0 }), H = je({}), I = A(() => W.keys(g), [g]), Z = b(
|
|
2960
2960
|
(V) => {
|
|
2961
2961
|
if (!x || !M.current)
|
|
2962
2962
|
return;
|
|
2963
|
-
const
|
|
2963
|
+
const z = V.clientX - O.current.x, re = hl(t, x, H.current, z);
|
|
2964
2964
|
j(re);
|
|
2965
2965
|
},
|
|
2966
2966
|
[t, x]
|
|
2967
2967
|
), N = b(
|
|
2968
2968
|
(V, Q) => {
|
|
2969
|
-
const
|
|
2970
|
-
if (!
|
|
2969
|
+
const z = M.current;
|
|
2970
|
+
if (!z)
|
|
2971
2971
|
return;
|
|
2972
2972
|
const re = [];
|
|
2973
|
-
|
|
2973
|
+
z.childNodes.forEach((k) => {
|
|
2974
2974
|
k.classList.contains(Te.TH) && re.push(k);
|
|
2975
2975
|
});
|
|
2976
2976
|
const ce = {};
|
|
2977
|
-
|
|
2977
|
+
W.keys(t).forEach((k, L) => {
|
|
2978
2978
|
const w = re[L];
|
|
2979
2979
|
if (!w)
|
|
2980
2980
|
return;
|
|
@@ -2992,7 +2992,7 @@ const he = {
|
|
|
2992
2992
|
}, [x, Z]);
|
|
2993
2993
|
const ae = A(() => {
|
|
2994
2994
|
if (I.length === 0) {
|
|
2995
|
-
const
|
|
2995
|
+
const z = {}, re = W.keys(t);
|
|
2996
2996
|
for (let ce = 0; ce < re.length; ce++) {
|
|
2997
2997
|
const k = re[ce], L = t[k], w = he.getContent(L.colSpan, { defKey: k, def: L }), Y = {
|
|
2998
2998
|
width: he.getContent(L.width, { defKey: k, def: L }) ?? 80,
|
|
@@ -3000,7 +3000,7 @@ const he = {
|
|
|
3000
3000
|
maxWidth: he.getContent(L.maxWidth, { defKey: k, def: L }),
|
|
3001
3001
|
flexGrow: w ?? 1
|
|
3002
3002
|
};
|
|
3003
|
-
if (
|
|
3003
|
+
if (z[k] = Y, w !== void 0) {
|
|
3004
3004
|
for (let q = 1; q < Math.min(w, re.length - ce); q++) {
|
|
3005
3005
|
Y.width += he.getContent(t[re[ce + q]].width, { defKey: k, def: L }) ?? 80, Y.minWidth += he.getContent(t[re[ce + q]].minWidth, { defKey: k, def: L }) ?? 80;
|
|
3006
3006
|
const le = he.getContent(t[re[ce + q]].maxWidth, { defKey: k, def: L });
|
|
@@ -3009,11 +3009,11 @@ const he = {
|
|
|
3009
3009
|
ce += w - 1;
|
|
3010
3010
|
}
|
|
3011
3011
|
}
|
|
3012
|
-
return
|
|
3012
|
+
return z;
|
|
3013
3013
|
}
|
|
3014
|
-
const V = {}, Q =
|
|
3015
|
-
for (let
|
|
3016
|
-
let re = Q[
|
|
3014
|
+
const V = {}, Q = W.keys(t);
|
|
3015
|
+
for (let z = 0; z < Q.length; z++) {
|
|
3016
|
+
let re = Q[z];
|
|
3017
3017
|
const ce = t[re];
|
|
3018
3018
|
let k = g[re];
|
|
3019
3019
|
const L = he.getContent(ce.colSpan, { defKey: re, def: ce }), w = {
|
|
@@ -3022,9 +3022,9 @@ const he = {
|
|
|
3022
3022
|
flexGrow: L ?? 1
|
|
3023
3023
|
};
|
|
3024
3024
|
if (V[re] = w, L !== void 0) {
|
|
3025
|
-
for (let Y = 1; Y < Math.min(L, Q.length -
|
|
3026
|
-
re = Q[
|
|
3027
|
-
|
|
3025
|
+
for (let Y = 1; Y < Math.min(L, Q.length - z); Y++)
|
|
3026
|
+
re = Q[z + Y], w.minWidth += g[re], w.width += g[re];
|
|
3027
|
+
z += L - 1;
|
|
3028
3028
|
}
|
|
3029
3029
|
}
|
|
3030
3030
|
return V;
|
|
@@ -3049,24 +3049,24 @@ const he = {
|
|
|
3049
3049
|
className: B.clsx(Te.BodyHeader, x !== void 0 && Te.IsClicked),
|
|
3050
3050
|
onResizeCapture: te,
|
|
3051
3051
|
ref: de,
|
|
3052
|
-
children: /* @__PURE__ */ o.jsx("div", { className: Te.TRow, ref: M, children:
|
|
3053
|
-
const
|
|
3054
|
-
width: he.getContent(
|
|
3055
|
-
minWidth: he.getContent(
|
|
3056
|
-
maxWidth: he.getContent(
|
|
3057
|
-
color: he.getContent(
|
|
3058
|
-
backgroundColor: he.getContent(
|
|
3059
|
-
justifyContent: he.getContent(
|
|
3052
|
+
children: /* @__PURE__ */ o.jsx("div", { className: Te.TRow, ref: M, children: W.map(t, ([V], Q) => {
|
|
3053
|
+
const z = t[V], re = he.getContent(z.hContent, { defKey: V, def: z }), ce = Q === W.keys(t).length - 1, k = {
|
|
3054
|
+
width: he.getContent(z.width, { defKey: V, def: z }) ?? 80,
|
|
3055
|
+
minWidth: he.getContent(z.minWidth, { defKey: V, def: z }) ?? 80,
|
|
3056
|
+
maxWidth: he.getContent(z.maxWidth, { defKey: V, def: z }),
|
|
3057
|
+
color: he.getContent(z.hColor, { defKey: V, def: z }),
|
|
3058
|
+
backgroundColor: he.getContent(z.hBackgroundColor, { defKey: V, def: z }),
|
|
3059
|
+
justifyContent: he.getContent(z.align, { defKey: V, def: z })
|
|
3060
3060
|
// paddingRight: isLast ? 'var(--Scrollbar-width)' : undefined,
|
|
3061
3061
|
};
|
|
3062
3062
|
I.includes(V) && (k.width = g[V], k.minWidth = g[V]);
|
|
3063
|
-
const L =
|
|
3063
|
+
const L = z.isSortable, w = (C == null ? void 0 : C.defKey) === V, Y = C == null ? void 0 : C.isAsc;
|
|
3064
3064
|
return /* @__PURE__ */ o.jsxs(rt, { children: [
|
|
3065
3065
|
/* @__PURE__ */ o.jsxs(
|
|
3066
3066
|
"div",
|
|
3067
3067
|
{
|
|
3068
3068
|
style: k,
|
|
3069
|
-
onClick: () => L && R(V,
|
|
3069
|
+
onClick: () => L && R(V, z.sortF),
|
|
3070
3070
|
className: B.clsx(Te.TH, L && qe.IsClickable),
|
|
3071
3071
|
children: [
|
|
3072
3072
|
/* @__PURE__ */ o.jsx(tn, { className: Te.Content, children: re }),
|
|
@@ -3104,20 +3104,20 @@ const he = {
|
|
|
3104
3104
|
),
|
|
3105
3105
|
/* @__PURE__ */ o.jsxs("div", { className: B.clsx(Te.BodyBody, x !== void 0 && Te.IsClicked), ref: ye, children: [
|
|
3106
3106
|
h.map((V, Q) => {
|
|
3107
|
-
const
|
|
3107
|
+
const z = he.getContent(r, { item: V }), re = y && !a, ce = v == null ? void 0 : v.some((w) => W.equal(w, V)), k = v && (l == null ? void 0 : l(V)), L = typeof k == "string" ? k : void 0;
|
|
3108
3108
|
return /* @__PURE__ */ o.jsx(
|
|
3109
3109
|
Ee,
|
|
3110
3110
|
{
|
|
3111
|
-
...
|
|
3111
|
+
...z,
|
|
3112
3112
|
onClick: () => m(V),
|
|
3113
3113
|
isDisabled: k,
|
|
3114
3114
|
tooltip: L,
|
|
3115
|
-
className: B.clsx(Te.TRow,
|
|
3116
|
-
children:
|
|
3115
|
+
className: B.clsx(Te.TRow, z == null ? void 0 : z.className, re && Te.IsSelectable, ce && Te.IsSelected),
|
|
3116
|
+
children: W.map(t, ([w], Y) => {
|
|
3117
3117
|
const q = ae[w];
|
|
3118
3118
|
if (q === void 0)
|
|
3119
3119
|
return null;
|
|
3120
|
-
const le = Y ===
|
|
3120
|
+
const le = Y === W.keys(t).length - 1, _e = t[w], _ = he.getContent(_e.content, { defKey: w, def: _e, item: V }), K = {
|
|
3121
3121
|
width: q.width,
|
|
3122
3122
|
minWidth: q.minWidth,
|
|
3123
3123
|
maxWidth: q.maxWidth,
|
|
@@ -3166,7 +3166,7 @@ const he = {
|
|
|
3166
3166
|
);
|
|
3167
3167
|
});
|
|
3168
3168
|
function hl(e, t, r, n) {
|
|
3169
|
-
const a = { ...r }, i =
|
|
3169
|
+
const a = { ...r }, i = W.keys(e).findIndex((f) => f === t) + 1, l = Object.entries(e);
|
|
3170
3170
|
let c = i - 1, s = i;
|
|
3171
3171
|
if (n < 0) {
|
|
3172
3172
|
for (; ; ) {
|
|
@@ -3630,7 +3630,7 @@ const vl = "_ATableFooter_4nlon_1", yl = "_Button_4nlon_10", gl = "_IsSelected_4
|
|
|
3630
3630
|
...r
|
|
3631
3631
|
}), [r]), te = A(() => {
|
|
3632
3632
|
const J = {};
|
|
3633
|
-
return
|
|
3633
|
+
return W.keys(t).forEach((Se) => {
|
|
3634
3634
|
const Ve = t[Se], Ct = {
|
|
3635
3635
|
...de,
|
|
3636
3636
|
...Ve
|
|
@@ -3644,7 +3644,7 @@ const vl = "_ATableFooter_4nlon_1", yl = "_Button_4nlon_10", gl = "_IsSelected_4
|
|
|
3644
3644
|
const [ye, we] = $e(
|
|
3645
3645
|
p,
|
|
3646
3646
|
Jt(x)
|
|
3647
|
-
), [me, ke] = ve(!1), [V, Q] = A(() => me && x ? [ye, we] : [F, U], [me, F, U, ye, we, x]), [
|
|
3647
|
+
), [me, ke] = ve(!1), [V, Q] = A(() => me && x ? [ye, we] : [F, U], [me, F, U, ye, we, x]), [z, re] = ve(V), ce = A(() => v ? jt.applyFilteration(v, te, z) : [], [v, te, z]), [k, L] = $e(T, {}), w = A(() => jt.applySortation(ce, te, k), [ce, te, k]), [Y, q] = $e(E, { page: 1, pageSize: 50, pageRange: 10 }), { pagedItems: le, totalCount: _e, pagination: _ } = A(() => {
|
|
3648
3648
|
const J = { ...Y };
|
|
3649
3649
|
if (m !== void 0) {
|
|
3650
3650
|
let Se = C ?? m.length;
|
|
@@ -3659,13 +3659,13 @@ const vl = "_ATableFooter_4nlon_1", yl = "_Button_4nlon_10", gl = "_IsSelected_4
|
|
|
3659
3659
|
() => jt.getRangedPages(_.page, _e, _.pageSize, _.pageRange),
|
|
3660
3660
|
[_e, _.pageSize, _.page, _.pageRange]
|
|
3661
3661
|
), [ue, ie] = A(() => c ?? [], [c]), P = A(
|
|
3662
|
-
() => le.filter((J) => ue == null ? void 0 : ue.some((Se) =>
|
|
3662
|
+
() => le.filter((J) => ue == null ? void 0 : ue.some((Se) => W.equal(Se, J))),
|
|
3663
3663
|
[le, ue]
|
|
3664
|
-
), X = A(() => le.filter((J) => !(s != null && s(J))), [le, s]), fe = A(() => X.length > 0 && X.every((J) => P.some((Se) =>
|
|
3665
|
-
!ue || !ie || h || ie(fe || Ie ? ue.filter((J) => !X.some((Se) =>
|
|
3664
|
+
), X = A(() => le.filter((J) => !(s != null && s(J))), [le, s]), fe = A(() => X.length > 0 && X.every((J) => P.some((Se) => W.equal(Se, J))), [P, X]), Ie = A(() => fe ? !1 : X.some((J) => P.some((Se) => W.equal(Se, J))), [P, X, fe]), nt = b(() => {
|
|
3665
|
+
!ue || !ie || h || ie(fe || Ie ? ue.filter((J) => !X.some((Se) => W.equal(Se, J))) : [...ue, ...X]);
|
|
3666
3666
|
}, [ue, ie, fe, Ie, X, h]), gt = b(
|
|
3667
3667
|
(J) => {
|
|
3668
|
-
!ue || !ie || h || (ue.some((Se) =>
|
|
3668
|
+
!ue || !ie || h || (ue.some((Se) => W.equal(Se, J)) ? ie(ue.filter((Se) => !W.equal(Se, J))) : ie([...ue, J]));
|
|
3669
3669
|
},
|
|
3670
3670
|
[ue, ie, h]
|
|
3671
3671
|
);
|
|
@@ -3678,7 +3678,7 @@ const vl = "_ATableFooter_4nlon_1", yl = "_Button_4nlon_10", gl = "_IsSelected_4
|
|
|
3678
3678
|
hContent: ue && /* @__PURE__ */ o.jsx(rr, { useCheck: [fe, nt], isIndeterminate: Ie }),
|
|
3679
3679
|
content: (J) => {
|
|
3680
3680
|
let { item: Se } = J;
|
|
3681
|
-
const Ve = s == null ? void 0 : s(Se), Ct = typeof Ve == "string" ? Ve : void 0, dr = ue == null ? void 0 : ue.some(($r) =>
|
|
3681
|
+
const Ve = s == null ? void 0 : s(Se), Ct = typeof Ve == "string" ? Ve : void 0, dr = ue == null ? void 0 : ue.some(($r) => W.equal($r, Se));
|
|
3682
3682
|
return /* @__PURE__ */ o.jsx(
|
|
3683
3683
|
rr,
|
|
3684
3684
|
{
|
|
@@ -3699,9 +3699,9 @@ const vl = "_ATableFooter_4nlon_1", yl = "_Button_4nlon_10", gl = "_IsSelected_4
|
|
|
3699
3699
|
return;
|
|
3700
3700
|
} else
|
|
3701
3701
|
return;
|
|
3702
|
-
J.page < 1 ? J.page = 1 : J.page > K[K.length - 1] && (J.page = K[K.length - 1]), q(J), y == null || y({ entireItems: v, filteration:
|
|
3702
|
+
J.page < 1 ? J.page = 1 : J.page > K[K.length - 1] && (J.page = K[K.length - 1]), q(J), y == null || y({ entireItems: v, filteration: z, pagination: J, sortation: k });
|
|
3703
3703
|
},
|
|
3704
|
-
[q, _, K, y, v,
|
|
3704
|
+
[q, _, K, y, v, z, k]
|
|
3705
3705
|
), ar = b(
|
|
3706
3706
|
(J) => {
|
|
3707
3707
|
Q && (Q(J), y == null || y({ entireItems: v, filteration: J, pagination: _, sortation: k }));
|
|
@@ -3709,9 +3709,9 @@ const vl = "_ATableFooter_4nlon_1", yl = "_Button_4nlon_10", gl = "_IsSelected_4
|
|
|
3709
3709
|
[Q, y, v, _, k]
|
|
3710
3710
|
), Vt = b(
|
|
3711
3711
|
(J) => {
|
|
3712
|
-
L && (L(J), y == null || y({ entireItems: v, filteration:
|
|
3712
|
+
L && (L(J), y == null || y({ entireItems: v, filteration: z, pagination: _, sortation: J }));
|
|
3713
3713
|
},
|
|
3714
|
-
[L, y, v,
|
|
3714
|
+
[L, y, v, z, _]
|
|
3715
3715
|
), Ge = b(
|
|
3716
3716
|
(J) => {
|
|
3717
3717
|
zt({ ..._, page: J });
|
|
@@ -3764,7 +3764,7 @@ const vl = "_ATableFooter_4nlon_1", yl = "_Button_4nlon_10", gl = "_IsSelected_4
|
|
|
3764
3764
|
isSelectMulti: i,
|
|
3765
3765
|
selectDisabled: l,
|
|
3766
3766
|
isTableDisabled: h,
|
|
3767
|
-
appliedFilteration:
|
|
3767
|
+
appliedFilteration: z,
|
|
3768
3768
|
useSortation: [k, Vt],
|
|
3769
3769
|
pagination: _,
|
|
3770
3770
|
pagedItems: le,
|
|
@@ -3775,9 +3775,9 @@ const vl = "_ATableFooter_4nlon_1", yl = "_Button_4nlon_10", gl = "_IsSelected_4
|
|
|
3775
3775
|
] }) });
|
|
3776
3776
|
}, Fl = (e) => e.defKey, $l = (e) => {
|
|
3777
3777
|
let { defKey: t, item: r } = e;
|
|
3778
|
-
if (
|
|
3778
|
+
if (W.hasKey(r, t)) {
|
|
3779
3779
|
const n = r[t];
|
|
3780
|
-
return
|
|
3780
|
+
return W.isReactNode(n) ? n : null;
|
|
3781
3781
|
} else
|
|
3782
3782
|
return null;
|
|
3783
3783
|
};
|
|
@@ -4374,11 +4374,11 @@ const Jl = {}, dt = {
|
|
|
4374
4374
|
};
|
|
4375
4375
|
let rn = dt.Styles[0]["--style"];
|
|
4376
4376
|
const Ql = () => rn, Hr = (e, t) => {
|
|
4377
|
-
|
|
4377
|
+
W.keys(t).forEach((r) => {
|
|
4378
4378
|
e.style.removeProperty(`${r}`);
|
|
4379
4379
|
});
|
|
4380
4380
|
}, Wr = (e, t) => {
|
|
4381
|
-
|
|
4381
|
+
W.keys(t).forEach((r) => {
|
|
4382
4382
|
e.style.setProperty(`${r}`, t[r]);
|
|
4383
4383
|
});
|
|
4384
4384
|
}, mo = (e) => {
|
|
@@ -4523,28 +4523,28 @@ const pt = {
|
|
|
4523
4523
|
return [!1, ""];
|
|
4524
4524
|
const w = r(t);
|
|
4525
4525
|
return w === !0 ? [!0, ""] : typeof w == "string" ? [!0, w] : [!1, ""];
|
|
4526
|
-
}, [r, n, t]), N = A(() => T.some((w) =>
|
|
4526
|
+
}, [r, n, t]), N = A(() => T.some((w) => W.equal(w, t)), [T, t]), ne = A(() => !E || E.length < 1 ? "noChild" : N ? "expanded" : "collapsed", [E, N]), ae = b(
|
|
4527
4527
|
(w) => {
|
|
4528
4528
|
!M || ne === "noChild" || (M(N ? T.filter((Y) => Y.idx !== t.idx) : [...T, t]), w.stopPropagation());
|
|
4529
4529
|
},
|
|
4530
4530
|
[M, T, N, t, ne]
|
|
4531
|
-
), de = A(() => g.some((w) =>
|
|
4532
|
-
!j || I || (j(C ? de ? g.filter((w) => w.idx !== t.idx) : [...g, t] : [t]), O && H && O.items.some((w) =>
|
|
4533
|
-
}, [C, I, de, O, H, j, g, t]), F = A(() => O == null ? void 0 : O.items.some((w) =>
|
|
4534
|
-
() => F && (O == null ? void 0 : O.item) &&
|
|
4531
|
+
), de = A(() => g.some((w) => W.equal(w, t)), [g, t]), te = b(() => {
|
|
4532
|
+
!j || I || (j(C ? de ? g.filter((w) => w.idx !== t.idx) : [...g, t] : [t]), O && H && O.items.some((w) => W.equal(w, t)) && H({ ...O, item: t }));
|
|
4533
|
+
}, [C, I, de, O, H, j, g, t]), F = A(() => O == null ? void 0 : O.items.some((w) => W.equal(w, t)), [O, t]), U = A(
|
|
4534
|
+
() => F && (O == null ? void 0 : O.item) && W.equal(O.item, t),
|
|
4535
4535
|
[F, O, t]
|
|
4536
4536
|
), ye = _t.useRef(null);
|
|
4537
4537
|
oe(() => {
|
|
4538
4538
|
U && ye.current && ye.current.scrollIntoView({ behavior: "smooth", block: "center" });
|
|
4539
4539
|
}, [U]);
|
|
4540
|
-
const [we, me] = ve(!1), ke = b(() => !I && me(!0), [I]), V = b(() => !I && me(!1), [I]), Q = A(() => r ? pt.map(t, (w) => w).filter((w) => !r(w)) : pt.map(t, (w) => w), [r, t]),
|
|
4540
|
+
const [we, me] = ve(!1), ke = b(() => !I && me(!0), [I]), V = b(() => !I && me(!1), [I]), Q = A(() => r ? pt.map(t, (w) => w).filter((w) => !r(w)) : pt.map(t, (w) => w), [r, t]), z = A(() => !v || !C ? !1 : de && Q.some((w) => g.some((Y) => W.equal(w, Y))) && Q.some((w) => !g.some((Y) => W.equal(w, Y))), [v, C, de, Q, g]), re = A(() => v ? C ? Q.every((w) => g.some((Y) => W.equal(w, Y))) : g.some((w) => W.equal(w, t)) : !1, [v, C, Q, t, g]), ce = b(() => {
|
|
4541
4541
|
if (!(!j || I))
|
|
4542
4542
|
if (C)
|
|
4543
4543
|
if (de) {
|
|
4544
|
-
const w = g.filter((Y) => !(r != null && r(Y)) && Q.some((q) =>
|
|
4545
|
-
w.length > 0 && j(g.filter((Y) => !w.some((q) =>
|
|
4544
|
+
const w = g.filter((Y) => !(r != null && r(Y)) && Q.some((q) => W.equal(q, Y)));
|
|
4545
|
+
w.length > 0 && j(g.filter((Y) => !w.some((q) => W.equal(Y, q))));
|
|
4546
4546
|
} else {
|
|
4547
|
-
const w = Q.filter((Y) => !(r != null && r(Y)) && !g.some((q) =>
|
|
4547
|
+
const w = Q.filter((Y) => !(r != null && r(Y)) && !g.some((q) => W.equal(q, Y)));
|
|
4548
4548
|
w.length > 0 && j([...g, ...w]);
|
|
4549
4549
|
}
|
|
4550
4550
|
else
|
|
@@ -4558,11 +4558,11 @@ const pt = {
|
|
|
4558
4558
|
if (!v || !C || I)
|
|
4559
4559
|
return "";
|
|
4560
4560
|
if (de) {
|
|
4561
|
-
const Y = g.filter((q) => !(r != null && r(q)) && Q.some((le) =>
|
|
4561
|
+
const Y = g.filter((q) => !(r != null && r(q)) && Q.some((le) => W.equal(le, q)));
|
|
4562
4562
|
if (Y.length > 0)
|
|
4563
4563
|
return p["deselect n"](Y.length);
|
|
4564
4564
|
}
|
|
4565
|
-
const w = Q.filter((Y) => !(r != null && r(Y)) && !g.some((q) =>
|
|
4565
|
+
const w = Q.filter((Y) => !(r != null && r(Y)) && !g.some((q) => W.equal(q, Y)));
|
|
4566
4566
|
return p["select n"](w.length);
|
|
4567
4567
|
}, [r, p, I, v, C, de, Q, g]);
|
|
4568
4568
|
return /* @__PURE__ */ o.jsxs(_t.Fragment, { children: [
|
|
@@ -4593,7 +4593,7 @@ const pt = {
|
|
|
4593
4593
|
className: Re.CheckBox,
|
|
4594
4594
|
useCheck: [+re, ce],
|
|
4595
4595
|
onClick: k,
|
|
4596
|
-
isIndeterminate:
|
|
4596
|
+
isIndeterminate: z,
|
|
4597
4597
|
onMouseOver: ke,
|
|
4598
4598
|
onMouseOut: V,
|
|
4599
4599
|
tooltip: L,
|
|
@@ -4720,7 +4720,7 @@ const pt = {
|
|
|
4720
4720
|
);
|
|
4721
4721
|
}, Ac = (e) => {
|
|
4722
4722
|
let { searchResult: t, searchUp: r, searchDown: n } = e;
|
|
4723
|
-
const a = A(() => !t || t.items.length < 1 ? 0 : t.items.findIndex((u) => t.item &&
|
|
4723
|
+
const a = A(() => !t || t.items.length < 1 ? 0 : t.items.findIndex((u) => t.item && W.equal(u, t.item)) + 1, [t]), i = A(() => !t || t.items.length < 1 ? 0 : t.items.length, [t]), l = A(() => a < 2, [a]), c = A(() => a >= i, [a, i]), s = b(
|
|
4724
4724
|
(u) => {
|
|
4725
4725
|
u.stopPropagation(), !l && r();
|
|
4726
4726
|
},
|
|
@@ -4772,7 +4772,7 @@ const pt = {
|
|
|
4772
4772
|
} = e;
|
|
4773
4773
|
const T = A(() => ({ ...vt.ATree, ...R }), [R]), M = _t.useRef(null), [g, j] = $e(n, []), [O, H] = $e(a, []), [I, Z] = $e(i, []), [N, ne] = $e(l, void 0), ae = b(
|
|
4774
4774
|
(P) => {
|
|
4775
|
-
p || !H || O.some((X) =>
|
|
4775
|
+
p || !H || O.some((X) => W.equal(X, P)) || P.children === void 0 || P.children.length < 1 || H([...O, P]);
|
|
4776
4776
|
},
|
|
4777
4777
|
[O, p, H]
|
|
4778
4778
|
), de = b(() => {
|
|
@@ -4794,11 +4794,11 @@ const pt = {
|
|
|
4794
4794
|
}
|
|
4795
4795
|
const X = pt.filter(g, (Ie) => x(P, Ie));
|
|
4796
4796
|
let fe;
|
|
4797
|
-
if (X.find((Ie) => (N == null ? void 0 : N.item) &&
|
|
4797
|
+
if (X.find((Ie) => (N == null ? void 0 : N.item) && W.equal(Ie, N.item)) ? fe = N == null ? void 0 : N.item : X.length > 0 && (fe = X[0]), ne({ keyword: P, items: X, item: fe }), Z && y)
|
|
4798
4798
|
if (h)
|
|
4799
4799
|
Z(X);
|
|
4800
4800
|
else {
|
|
4801
|
-
const Ie = X.find((nt) => fe &&
|
|
4801
|
+
const Ie = X.find((nt) => fe && W.equal(nt, fe));
|
|
4802
4802
|
Z(Ie ? [Ie] : []);
|
|
4803
4803
|
}
|
|
4804
4804
|
},
|
|
@@ -4822,31 +4822,31 @@ const pt = {
|
|
|
4822
4822
|
const we = b(() => {
|
|
4823
4823
|
if (!N || !ne || p)
|
|
4824
4824
|
return;
|
|
4825
|
-
let P = N.items.findIndex((X) => N.item &&
|
|
4825
|
+
let P = N.items.findIndex((X) => N.item && W.equal(X, N.item)) - 1;
|
|
4826
4826
|
P < 0 || (ne({ ...N, item: N.items[P] }), y && F(N.items[P]));
|
|
4827
4827
|
}, [N, ne, p, F, y]), me = b(() => {
|
|
4828
4828
|
if (!N || !ne || p)
|
|
4829
4829
|
return;
|
|
4830
|
-
let P = N.items.findIndex((X) => N.item &&
|
|
4830
|
+
let P = N.items.findIndex((X) => N.item && W.equal(X, N.item)) + 1;
|
|
4831
4831
|
P >= N.items.length || (ne({ ...N, item: N.items[P] }), y && F(N.items[P]));
|
|
4832
|
-
}, [N, p, ne, F, y]), [ke, V] = ve(!1), Q = b(() => V(!0), []),
|
|
4832
|
+
}, [N, p, ne, F, y]), [ke, V] = ve(!1), Q = b(() => V(!0), []), z = b(() => V(!1), []), re = A(() => t ? pt.map(g, (P) => P).filter((P) => !t(P)) : pt.map(g, (P) => P), [t, g]), ce = A(() => !c || !h ? !1 : I.length > 0 && re.length > I.length, [c, h, I, re]), k = A(() => !c || !h ? !1 : I.length > 0 && re.length === I.length, [c, h, I, re]), L = b(() => {
|
|
4833
4833
|
if (!Z || !h || p)
|
|
4834
4834
|
return;
|
|
4835
|
-
const P = I.filter((X) => !(t != null && t(X)) && re.some((fe) =>
|
|
4835
|
+
const P = I.filter((X) => !(t != null && t(X)) && re.some((fe) => W.equal(fe, X)));
|
|
4836
4836
|
if (P.length > 0)
|
|
4837
|
-
Z(I.filter((X) => !P.some((fe) =>
|
|
4837
|
+
Z(I.filter((X) => !P.some((fe) => W.equal(X, fe))));
|
|
4838
4838
|
else {
|
|
4839
|
-
const X = re.filter((fe) => !(t != null && t(fe)) && !I.some((Ie) =>
|
|
4839
|
+
const X = re.filter((fe) => !(t != null && t(fe)) && !I.some((Ie) => W.equal(Ie, fe)));
|
|
4840
4840
|
X.length > 0 && Z([...I, ...X]);
|
|
4841
4841
|
}
|
|
4842
4842
|
}, [h, p, t, Z, I, re]), w = A(() => {
|
|
4843
4843
|
if (!c || !h || p)
|
|
4844
4844
|
return "";
|
|
4845
|
-
const P = I.filter((X) => !(t != null && t(X)) && re.some((fe) =>
|
|
4845
|
+
const P = I.filter((X) => !(t != null && t(X)) && re.some((fe) => W.equal(fe, X)));
|
|
4846
4846
|
if (P.length > 0)
|
|
4847
4847
|
return T["deselect n"](P.length);
|
|
4848
4848
|
{
|
|
4849
|
-
const X = re.filter((fe) => !(t != null && t(fe)) && !I.some((Ie) =>
|
|
4849
|
+
const X = re.filter((fe) => !(t != null && t(fe)) && !I.some((Ie) => W.equal(Ie, fe)));
|
|
4850
4850
|
return T["select n"](X.length);
|
|
4851
4851
|
}
|
|
4852
4852
|
}, [t, p, T, c, h, re, I]), [Y, q] = ve(null), [le, _e] = ve(null), _ = b(
|
|
@@ -4863,7 +4863,7 @@ const pt = {
|
|
|
4863
4863
|
},
|
|
4864
4864
|
[v, g, Y, p, j]
|
|
4865
4865
|
), Ce = b(() => {
|
|
4866
|
-
if (!v || p || !Y || !le || !j ||
|
|
4866
|
+
if (!v || p || !Y || !le || !j || W.equal(Y, le))
|
|
4867
4867
|
return;
|
|
4868
4868
|
const P = pt.replace(g, Y, le);
|
|
4869
4869
|
P && (j(P), q(null));
|
|
@@ -4895,7 +4895,7 @@ const pt = {
|
|
|
4895
4895
|
useCheck: [+k, () => L()],
|
|
4896
4896
|
isIndeterminate: ce,
|
|
4897
4897
|
onMouseOver: Q,
|
|
4898
|
-
onMouseOut:
|
|
4898
|
+
onMouseOut: z,
|
|
4899
4899
|
isDisabled: p,
|
|
4900
4900
|
tooltip: w
|
|
4901
4901
|
}
|
|
@@ -4942,14 +4942,14 @@ const pt = {
|
|
|
4942
4942
|
}, Dc = (e) => {
|
|
4943
4943
|
let { item: t } = e;
|
|
4944
4944
|
const r = {};
|
|
4945
|
-
return
|
|
4945
|
+
return W.keys(t).forEach((n) => {
|
|
4946
4946
|
n !== "children" && (r[n] = t[n]);
|
|
4947
4947
|
}), JSON.stringify(r);
|
|
4948
4948
|
};
|
|
4949
4949
|
function kc(e, t) {
|
|
4950
|
-
return
|
|
4950
|
+
return W.some(t, (r, n) => {
|
|
4951
4951
|
var a;
|
|
4952
|
-
return (a =
|
|
4952
|
+
return (a = W.stringify(n)) == null ? void 0 : a.toLowerCase().includes(e.toLowerCase());
|
|
4953
4953
|
});
|
|
4954
4954
|
}
|
|
4955
4955
|
var jc = Error, Ic = EvalError, Tc = RangeError, Rc = ReferenceError, So = SyntaxError, nr = TypeError, Ec = URIError, Lc = function() {
|
|
@@ -6365,7 +6365,7 @@ export {
|
|
|
6365
6365
|
G as dateF,
|
|
6366
6366
|
Fn as defaultPredicate,
|
|
6367
6367
|
vf as fileF,
|
|
6368
|
-
|
|
6368
|
+
W as objF,
|
|
6369
6369
|
fn as setDir12Style,
|
|
6370
6370
|
Ha as strF,
|
|
6371
6371
|
jt as tableF,
|