cecomponent 2.0.95 → 2.0.97
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/ce-component-lib.css +1 -1
- package/dist/ce-component-lib.js +8 -8
- package/dist/ce-component-lib.mjs +134 -149
- package/package.json +1 -1
|
@@ -11365,7 +11365,7 @@ const buttonBaseClasses = generateUtilityClasses("MuiButtonBase", ["root", "disa
|
|
|
11365
11365
|
Ce === "button" && (q.href || q.to) && (Ce = S);
|
|
11366
11366
|
const qe = {};
|
|
11367
11367
|
Ce === "button" ? (qe.type = z === void 0 ? "button" : z, qe.disabled = m) : (!q.href && !q.to && (qe.role = "button"), m && (qe["aria-disabled"] = m));
|
|
11368
|
-
const Je = useForkRef(n, M),
|
|
11368
|
+
const Je = useForkRef(n, M), rt = {
|
|
11369
11369
|
...i,
|
|
11370
11370
|
centerRipple: l,
|
|
11371
11371
|
component: p,
|
|
@@ -11375,11 +11375,11 @@ const buttonBaseClasses = generateUtilityClasses("MuiButtonBase", ["root", "disa
|
|
|
11375
11375
|
focusRipple: b,
|
|
11376
11376
|
tabIndex: H,
|
|
11377
11377
|
focusVisible: V
|
|
11378
|
-
},
|
|
11378
|
+
}, tt = useUtilityClasses$c(rt);
|
|
11379
11379
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(ButtonBaseRoot, {
|
|
11380
11380
|
as: Ce,
|
|
11381
|
-
className: clsx(
|
|
11382
|
-
ownerState:
|
|
11381
|
+
className: clsx(tt.root, f),
|
|
11382
|
+
ownerState: rt,
|
|
11383
11383
|
onBlur: ae,
|
|
11384
11384
|
onClick: T,
|
|
11385
11385
|
onContextMenu: Q,
|
|
@@ -13076,8 +13076,8 @@ function preventOverflow(e) {
|
|
|
13076
13076
|
I[O] = We, N[O] = We - q;
|
|
13077
13077
|
}
|
|
13078
13078
|
if (f) {
|
|
13079
|
-
var Ce, qe = O === "x" ? top : left, Je = O === "x" ? bottom : right,
|
|
13080
|
-
I[j] = ze, N[j] = ze -
|
|
13079
|
+
var Ce, qe = O === "x" ? top : left, Je = O === "x" ? bottom : right, rt = I[j], tt = j === "y" ? "height" : "width", Ve = rt + T[qe], yt = rt - T[Je], it = [top, left].indexOf(C) !== -1, Oe = (Ce = U == null ? void 0 : U[j]) != null ? Ce : 0, Me = it ? Ve : rt - D[tt] - F[tt] - Oe + X.altAxis, Be = it ? rt + D[tt] + F[tt] - Oe - X.altAxis : yt, ze = E && it ? withinMaxClamp(Me, rt, Be) : within(E ? Me : Ve, rt, E ? Be : yt);
|
|
13080
|
+
I[j] = ze, N[j] = ze - rt;
|
|
13081
13081
|
}
|
|
13082
13082
|
t.modifiersData[i] = N;
|
|
13083
13083
|
}
|
|
@@ -15083,10 +15083,10 @@ const Tooltip$1 = /* @__PURE__ */ React.forwardRef(function(t, n) {
|
|
|
15083
15083
|
de.clear(), we.start(A, () => {
|
|
15084
15084
|
Ce(Ye);
|
|
15085
15085
|
});
|
|
15086
|
-
}, [,
|
|
15087
|
-
isFocusVisible(Ye.target) || (
|
|
15086
|
+
}, [, rt] = React.useState(!1), tt = (Ye) => {
|
|
15087
|
+
isFocusVisible(Ye.target) || (rt(!1), Je(Ye));
|
|
15088
15088
|
}, Ve = (Ye) => {
|
|
15089
|
-
K || V(Ye.currentTarget), isFocusVisible(Ye.target) && (
|
|
15089
|
+
K || V(Ye.currentTarget), isFocusVisible(Ye.target) && (rt(!0), qe(Ye));
|
|
15090
15090
|
}, yt = (Ye) => {
|
|
15091
15091
|
G.current = !0;
|
|
15092
15092
|
const lt = q.props;
|
|
@@ -15136,7 +15136,7 @@ const Tooltip$1 = /* @__PURE__ */ React.forwardRef(function(t, n) {
|
|
|
15136
15136
|
`));
|
|
15137
15137
|
}, [K]));
|
|
15138
15138
|
const ot = {};
|
|
15139
|
-
E || (ct.onTouchStart = it, ct.onTouchEnd = Oe), g || (ct.onMouseOver = composeEventHandler(qe, ct.onMouseOver), ct.onMouseLeave = composeEventHandler(Je, ct.onMouseLeave), Q || (ot.onMouseOver = qe, ot.onMouseLeave = Je)), d || (ct.onFocus = composeEventHandler(Ve, ct.onFocus), ct.onBlur = composeEventHandler(
|
|
15139
|
+
E || (ct.onTouchStart = it, ct.onTouchEnd = Oe), g || (ct.onMouseOver = composeEventHandler(qe, ct.onMouseOver), ct.onMouseLeave = composeEventHandler(Je, ct.onMouseLeave), Q || (ot.onMouseOver = qe, ot.onMouseLeave = Je)), d || (ct.onFocus = composeEventHandler(Ve, ct.onFocus), ct.onBlur = composeEventHandler(tt, ct.onBlur), Q || (ot.onFocus = Ve, ot.onBlur = tt)), process.env.NODE_ENV !== "production" && q.props.title && console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.", `Remove this title prop \`${q.props.title}\` or the Tooltip component.`].join(`
|
|
15140
15140
|
`));
|
|
15141
15141
|
const Tt = {
|
|
15142
15142
|
...i,
|
|
@@ -18327,8 +18327,8 @@ function requireLottie() {
|
|
|
18327
18327
|
var Se = this.props;
|
|
18328
18328
|
if (M === 1 && L === 0 && K === 0 && V === 0 && B === 0 && Y === 1 && G === 0 && Q === 0 && ue === 0 && de === 0 && we === 1 && pe === 0)
|
|
18329
18329
|
return Se[12] = Se[12] * M + Se[15] * ye, Se[13] = Se[13] * Y + Se[15] * Re, Se[14] = Se[14] * we + Se[15] * ae, Se[15] *= Ie, this._identityCalculated = !1, this;
|
|
18330
|
-
var Ue = Se[0], We = Se[1], Ce = Se[2], qe = Se[3], Je = Se[4],
|
|
18331
|
-
return Se[0] = Ue * M + We * B + Ce * ue + qe * ye, Se[1] = Ue * L + We * Y + Ce * de + qe * Re, Se[2] = Ue * K + We * G + Ce * we + qe * ae, Se[3] = Ue * V + We * Q + Ce * pe + qe * Ie, Se[4] = Je * M +
|
|
18330
|
+
var Ue = Se[0], We = Se[1], Ce = Se[2], qe = Se[3], Je = Se[4], rt = Se[5], tt = Se[6], Ve = Se[7], yt = Se[8], it = Se[9], Oe = Se[10], Me = Se[11], Be = Se[12], ze = Se[13], Qe = Se[14], ut = Se[15];
|
|
18331
|
+
return Se[0] = Ue * M + We * B + Ce * ue + qe * ye, Se[1] = Ue * L + We * Y + Ce * de + qe * Re, Se[2] = Ue * K + We * G + Ce * we + qe * ae, Se[3] = Ue * V + We * Q + Ce * pe + qe * Ie, Se[4] = Je * M + rt * B + tt * ue + Ve * ye, Se[5] = Je * L + rt * Y + tt * de + Ve * Re, Se[6] = Je * K + rt * G + tt * we + Ve * ae, Se[7] = Je * V + rt * Q + tt * pe + Ve * Ie, Se[8] = yt * M + it * B + Oe * ue + Me * ye, Se[9] = yt * L + it * Y + Oe * de + Me * Re, Se[10] = yt * K + it * G + Oe * we + Me * ae, Se[11] = yt * V + it * Q + Oe * pe + Me * Ie, Se[12] = Be * M + ze * B + Qe * ue + ut * ye, Se[13] = Be * L + ze * Y + Qe * de + ut * Re, Se[14] = Be * K + ze * G + Qe * we + ut * ae, Se[15] = Be * V + ze * Q + Qe * pe + ut * Ie, this._identityCalculated = !1, this;
|
|
18332
18332
|
}
|
|
18333
18333
|
function T(M) {
|
|
18334
18334
|
var L = M.props;
|
|
@@ -20823,25 +20823,25 @@ function requireLottie() {
|
|
|
20823
20823
|
g = b.length, p = 0, m = 0;
|
|
20824
20824
|
var ee = e.finalSize * 1.2 * 0.714, te = !0, z, q, M, L, K;
|
|
20825
20825
|
L = i.length;
|
|
20826
|
-
var V, B = -1, Y, G, Q, ue = S, de = A, we = R, pe = -1, ye, Re, ae, Ie, Se, Ue, We, Ce, qe = "", Je = this.defaultPropsArray,
|
|
20826
|
+
var V, B = -1, Y, G, Q, ue = S, de = A, we = R, pe = -1, ye, Re, ae, Ie, Se, Ue, We, Ce, qe = "", Je = this.defaultPropsArray, rt;
|
|
20827
20827
|
if (e.j === 2 || e.j === 1) {
|
|
20828
|
-
var
|
|
20828
|
+
var tt = 0, Ve = 0, yt = e.j === 2 ? -0.5 : -1, it = 0, Oe = !0;
|
|
20829
20829
|
for (d = 0; d < g; d += 1)
|
|
20830
20830
|
if (b[d].n) {
|
|
20831
|
-
for (
|
|
20832
|
-
b[it].animatorJustifyOffset =
|
|
20833
|
-
|
|
20831
|
+
for (tt && (tt += Ve); it < d; )
|
|
20832
|
+
b[it].animatorJustifyOffset = tt, it += 1;
|
|
20833
|
+
tt = 0, Oe = !0;
|
|
20834
20834
|
} else {
|
|
20835
20835
|
for (M = 0; M < L; M += 1)
|
|
20836
|
-
z = i[M].a, z.t.propType && (Oe && e.j === 2 && (Ve += z.t.v * yt), q = i[M].s, V = q.getMult(b[d].anIndexes[M], o.a[M].s.totalChars), V.length ?
|
|
20836
|
+
z = i[M].a, z.t.propType && (Oe && e.j === 2 && (Ve += z.t.v * yt), q = i[M].s, V = q.getMult(b[d].anIndexes[M], o.a[M].s.totalChars), V.length ? tt += z.t.v * V[0] * yt : tt += z.t.v * V * yt);
|
|
20837
20837
|
Oe = !1;
|
|
20838
20838
|
}
|
|
20839
|
-
for (
|
|
20840
|
-
b[it].animatorJustifyOffset =
|
|
20839
|
+
for (tt && (tt += Ve); it < d; )
|
|
20840
|
+
b[it].animatorJustifyOffset = tt, it += 1;
|
|
20841
20841
|
}
|
|
20842
20842
|
for (d = 0; d < g; d += 1) {
|
|
20843
20843
|
if (l.reset(), ye = 1, b[d].n)
|
|
20844
|
-
p = 0, m += e.yOffset, m += te ? 1 : 0, S = ue, te = !1, this._hasMaskedPath && (A = de, R = we, j = I[A].points, O = j[R - 1], _ = j[R], D = _.partialLength, T = 0), qe = "", Ce = "", Ue = "",
|
|
20844
|
+
p = 0, m += e.yOffset, m += te ? 1 : 0, S = ue, te = !1, this._hasMaskedPath && (A = de, R = we, j = I[A].points, O = j[R - 1], _ = j[R], D = _.partialLength, T = 0), qe = "", Ce = "", Ue = "", rt = "", Je = this.defaultPropsArray;
|
|
20845
20845
|
else {
|
|
20846
20846
|
if (this._hasMaskedPath) {
|
|
20847
20847
|
if (pe !== b[d].line) {
|
|
@@ -20901,9 +20901,9 @@ function requireLottie() {
|
|
|
20901
20901
|
}
|
|
20902
20902
|
l.translate(0, -e.ls), l.translate(Y, 0, 0), l.translate(n[0] * b[d].an * 5e-3, n[1] * ee * 0.01, 0), p += b[d].l + e.tr * 1e-3 * e.finalSize;
|
|
20903
20903
|
}
|
|
20904
|
-
u === "html" ? qe = l.toCSS() : u === "svg" ? qe = l.to2dCSS() : Je = [l.props[0], l.props[1], l.props[2], l.props[3], l.props[4], l.props[5], l.props[6], l.props[7], l.props[8], l.props[9], l.props[10], l.props[11], l.props[12], l.props[13], l.props[14], l.props[15]],
|
|
20904
|
+
u === "html" ? qe = l.toCSS() : u === "svg" ? qe = l.to2dCSS() : Je = [l.props[0], l.props[1], l.props[2], l.props[3], l.props[4], l.props[5], l.props[6], l.props[7], l.props[8], l.props[9], l.props[10], l.props[11], l.props[12], l.props[13], l.props[14], l.props[15]], rt = ye;
|
|
20905
20905
|
}
|
|
20906
|
-
f <= d ? (K = new LetterProps(
|
|
20906
|
+
f <= d ? (K = new LetterProps(rt, Ue, We, Ce, qe, Je), this.renderedLetters.push(K), f += 1, this.lettersChangedFlag = !0) : (K = this.renderedLetters[d], this.lettersChangedFlag = K.update(rt, Ue, We, Ce, qe, Je) || this.lettersChangedFlag);
|
|
20907
20907
|
}
|
|
20908
20908
|
}
|
|
20909
20909
|
}, TextAnimatorProperty.prototype.getValue = function() {
|
|
@@ -25909,11 +25909,11 @@ var CRC32 = /* @__PURE__ */ (function() {
|
|
|
25909
25909
|
dt[ve].name = "!Directory", ce > 0 && Te !== H && (dt[Te].name = "!MiniFAT"), dt[ge[0]].name = "!FAT", dt.fat_addrs = ge, dt.ssz = se;
|
|
25910
25910
|
var Ge = {}, ht = [], Ft = [], Wt = [];
|
|
25911
25911
|
A(ve, dt, Ze, ht, ce, Ge, Ft, Te), S(Ft, Wt, ht), ht.shift();
|
|
25912
|
-
var
|
|
25912
|
+
var et = {
|
|
25913
25913
|
FileIndex: Ft,
|
|
25914
25914
|
FullPaths: Wt
|
|
25915
25915
|
};
|
|
25916
|
-
return oe && oe.raw && (
|
|
25916
|
+
return oe && oe.raw && (et.raw = { header: ke, sectors: Ze }), et;
|
|
25917
25917
|
}
|
|
25918
25918
|
function g(J) {
|
|
25919
25919
|
if (J[J.l] == 80 && J[J.l + 1] == 75) return [0, 0];
|
|
@@ -26124,8 +26124,8 @@ var CRC32 = /* @__PURE__ */ (function() {
|
|
|
26124
26124
|
Ge > 0 && (Ge < 4096 ? Pe += Ge + 63 >> 6 : Le += Ge + 511 >> 9);
|
|
26125
26125
|
}
|
|
26126
26126
|
}
|
|
26127
|
-
for (var ht = Ne.FullPaths.length + 3 >> 2, Ft = Pe + 7 >> 3, Wt = Pe + 127 >> 7,
|
|
26128
|
-
var St = [1,
|
|
26127
|
+
for (var ht = Ne.FullPaths.length + 3 >> 2, Ft = Pe + 7 >> 3, Wt = Pe + 127 >> 7, et = Ft + Le + ht + Wt, At = et + 127 >> 7, ft = At <= 109 ? 0 : Math.ceil((At - 109) / 127); et + At + ft + 127 >> 7 > At; ) ft = ++At <= 109 ? 0 : Math.ceil((At - 109) / 127);
|
|
26128
|
+
var St = [1, ft, At, Wt, ht, Le, Pe, 0];
|
|
26129
26129
|
return Ne.FileIndex[0].size = Pe << 6, St[7] = (Ne.FileIndex[0].start = St[0] + St[1] + St[2] + St[3] + St[4] + St[5]) + (St[6] + 7 >> 3), St;
|
|
26130
26130
|
})(J), ce = new_buf(se[7] << 9), fe = 0, ve = 0;
|
|
26131
26131
|
{
|
|
@@ -26301,11 +26301,11 @@ var CRC32 = /* @__PURE__ */ (function() {
|
|
|
26301
26301
|
var se = oe & 7, ce = oe >>> 3;
|
|
26302
26302
|
return se <= 5 ? J[ce] |= (ie & 7) << se : (J[ce] |= ie << se & 255, J[ce + 1] = (ie & 7) >> 8 - se), oe + 3;
|
|
26303
26303
|
}
|
|
26304
|
-
function
|
|
26304
|
+
function rt(J, oe, ie) {
|
|
26305
26305
|
var se = oe & 7, ce = oe >>> 3;
|
|
26306
26306
|
return ie = (ie & 1) << se, J[ce] |= ie, oe + 1;
|
|
26307
26307
|
}
|
|
26308
|
-
function
|
|
26308
|
+
function tt(J, oe, ie) {
|
|
26309
26309
|
var se = oe & 7, ce = oe >>> 3;
|
|
26310
26310
|
return ie <<= se, J[ce] |= ie & 255, ie >>>= 8, J[ce + 1] = ie, oe + 8;
|
|
26311
26311
|
}
|
|
@@ -26399,18 +26399,18 @@ var CRC32 = /* @__PURE__ */ (function() {
|
|
|
26399
26399
|
if ((Le = je[Ne]) && (Le |= me & -32768, Le > me && (Le -= 32768), Le < me))
|
|
26400
26400
|
for (; Te[Le + Ze] == Te[me + Ze] && Ze < 250; ) ++Ze;
|
|
26401
26401
|
if (Ze > 2) {
|
|
26402
|
-
Pe = ce[Ze], Pe <= 22 ? ge =
|
|
26402
|
+
Pe = ce[Ze], Pe <= 22 ? ge = tt(be, ge, ye[Pe + 1] >> 1) - 1 : (tt(be, ge, 3), ge += 5, tt(be, ge, ye[Pe - 23] >> 5), ge += 3);
|
|
26403
26403
|
var dt = Pe < 8 ? 0 : Pe - 4 >> 2;
|
|
26404
|
-
dt > 0 && (Ve(be, ge, Ze - ue[Pe]), ge += dt), Pe = oe[me - Le], ge =
|
|
26404
|
+
dt > 0 && (Ve(be, ge, Ze - ue[Pe]), ge += dt), Pe = oe[me - Le], ge = tt(be, ge, ye[Pe] >> 3), ge -= 3;
|
|
26405
26405
|
var Ge = Pe < 4 ? 0 : Pe - 2 >> 1;
|
|
26406
26406
|
Ge > 0 && (Ve(be, ge, me - Le - de[Pe]), ge += Ge);
|
|
26407
26407
|
for (var ht = 0; ht < Ze; ++ht)
|
|
26408
26408
|
je[Ne] = me & 32767, Ne = (Ne << 5 ^ Te[me]) & 32767, ++me;
|
|
26409
26409
|
ke -= Ze - 1;
|
|
26410
26410
|
} else
|
|
26411
|
-
Pe <= 143 ? Pe = Pe + 48 : ge =
|
|
26411
|
+
Pe <= 143 ? Pe = Pe + 48 : ge = rt(be, ge, 1), ge = tt(be, ge, ye[Pe]), je[Ne] = me & 32767, ++me;
|
|
26412
26412
|
}
|
|
26413
|
-
ge =
|
|
26413
|
+
ge = tt(be, ge, 0) - 1;
|
|
26414
26414
|
}
|
|
26415
26415
|
return be.l = (ge + 7) / 8 | 0, be.l;
|
|
26416
26416
|
}
|
|
@@ -29966,9 +29966,9 @@ var DBF = /* @__PURE__ */ (function() {
|
|
|
29966
29966
|
/* NUMBER */
|
|
29967
29967
|
case 16:
|
|
29968
29968
|
Je == 14 && (Ce[2] & 112) == 112 && (Ce[2] & 15) > 1 && (Ce[2] & 15) < 15 && (Ce[1].z = G.dateNF || table_fmt[14], G.cellDates && (Ce[1].t = "d", Ce[1].v = numdate(Ce[1].v))), G.qpro && Ce[3] > we && (Q["!ref"] = encode_range(ae), pe[ue] = Q, ye.push(ue), Q = G.dense ? [] : {}, ae = { s: { r: 0, c: 0 }, e: { r: 0, c: 0 } }, we = Ce[3], ue = de || "Sheet" + (we + 1), de = "");
|
|
29969
|
-
var
|
|
29970
|
-
if (
|
|
29971
|
-
|
|
29969
|
+
var rt = G.dense ? (Q[Ce[0].r] || [])[Ce[0].c] : Q[encode_cell(Ce[0])];
|
|
29970
|
+
if (rt) {
|
|
29971
|
+
rt.t = Ce[1].t, rt.v = Ce[1].v, Ce[1].z != null && (rt.z = Ce[1].z), Ce[1].f != null && (rt.f = Ce[1].f);
|
|
29972
29972
|
break;
|
|
29973
29973
|
}
|
|
29974
29974
|
G.dense ? (Q[Ce[0].r] || (Q[Ce[0].r] = []), Q[Ce[0].r][Ce[0].c] = Ce[1]) : Q[encode_cell(Ce[0])] = Ce[1];
|
|
@@ -41120,8 +41120,8 @@ const viewManager = new ViewManager(), useViewPersistence = (e, t = !0) => {
|
|
|
41120
41120
|
handleSelectedRows: Ce,
|
|
41121
41121
|
rowsSelected: qe,
|
|
41122
41122
|
selectionKey: Je = "id",
|
|
41123
|
-
onPageChange:
|
|
41124
|
-
getRowDisabled:
|
|
41123
|
+
onPageChange: rt,
|
|
41124
|
+
getRowDisabled: tt,
|
|
41125
41125
|
getRowStyle: Ve,
|
|
41126
41126
|
customActions: yt = [],
|
|
41127
41127
|
shouldColumnPersist: it = !1,
|
|
@@ -41150,11 +41150,11 @@ const viewManager = new ViewManager(), useViewPersistence = (e, t = !0) => {
|
|
|
41150
41150
|
/* @__PURE__ */ new Set()
|
|
41151
41151
|
), [Zt, Jt] = useState({}), [$t, Ot] = useState(null), [J, oe] = useState(!1), [ie, se] = useState(""), [ce, fe] = useState(null), [ve, Te] = useState("contains"), [be, ge] = useState(""), [me, je] = useState({}), [ke, Ne] = useState(0), [Pe, Le] = useState(
|
|
41152
41152
|
q ?? 10
|
|
41153
|
-
), [Ze, dt] = useState(/* @__PURE__ */ new Set()), [Ge, ht] = useState(""), [Ft, Wt] = useState(!1), [
|
|
41153
|
+
), [Ze, dt] = useState(/* @__PURE__ */ new Set()), [Ge, ht] = useState(""), [Ft, Wt] = useState(!1), [et, At] = useState(/* @__PURE__ */ new Set()), [ft, St] = useState([]), [Qt, _r] = useState(null), [jr, or] = useState(null), Er = useRef(null), Ir = useRef(null), Dr = useRef(null), un = useRef(null), [er, fn] = useState(/* @__PURE__ */ new Set()), [pt, pn] = useState([]), [Ut, Nr] = useState(
|
|
41154
41154
|
null
|
|
41155
41155
|
), [jt, Sr] = useState(null), [lr, dn] = useState(!1), [Yn, Zn] = useState(!1), [nt, cr] = useState(null), [ur, Mr] = useState(!1), [hn, It] = useState(!0), $r = useRef([]), Fr = useRef(""), Lr = useRef(""), mn = useRef(void 0), Br = useRef("");
|
|
41156
41156
|
useRef(!1);
|
|
41157
|
-
const pr = useRef(!1), Vr = useRef([]), Wr = useRef([]), zr = useRef([]), wr = useRef(!1), Ur = useRef(
|
|
41157
|
+
const pr = useRef(!1), Vr = useRef([]), Wr = useRef([]), zr = useRef([]), wr = useRef(!1), Ur = useRef(rt), Hr = useRef({
|
|
41158
41158
|
visibleColumns: [],
|
|
41159
41159
|
columnOrder: [],
|
|
41160
41160
|
frozenColumnIds: [],
|
|
@@ -41174,8 +41174,8 @@ const viewManager = new ViewManager(), useViewPersistence = (e, t = !0) => {
|
|
|
41174
41174
|
sortConfig: nt,
|
|
41175
41175
|
filters: me,
|
|
41176
41176
|
searchQuery: Ge,
|
|
41177
|
-
visibleColumns: Array.from(
|
|
41178
|
-
columnOrder:
|
|
41177
|
+
visibleColumns: Array.from(et),
|
|
41178
|
+
columnOrder: ft,
|
|
41179
41179
|
frozenColumnIds: lt
|
|
41180
41180
|
}, ne = JSON.stringify(Z);
|
|
41181
41181
|
if (ne !== Lr.current)
|
|
@@ -41190,8 +41190,8 @@ const viewManager = new ViewManager(), useViewPersistence = (e, t = !0) => {
|
|
|
41190
41190
|
nt,
|
|
41191
41191
|
me,
|
|
41192
41192
|
Ge,
|
|
41193
|
-
|
|
41194
|
-
|
|
41193
|
+
et,
|
|
41194
|
+
ft,
|
|
41195
41195
|
lt
|
|
41196
41196
|
]), xr = useCallback(
|
|
41197
41197
|
(Z) => {
|
|
@@ -41236,10 +41236,10 @@ const viewManager = new ViewManager(), useViewPersistence = (e, t = !0) => {
|
|
|
41236
41236
|
le !== Ge && (ht(le), ne = !0);
|
|
41237
41237
|
}
|
|
41238
41238
|
if (Array.isArray(He.visibleColumns)) {
|
|
41239
|
-
const le = Array.from(
|
|
41239
|
+
const le = Array.from(et);
|
|
41240
41240
|
yr(le, He.visibleColumns) || (At(new Set(He.visibleColumns)), ne = !0);
|
|
41241
41241
|
}
|
|
41242
|
-
Array.isArray(He.columnOrder) && (yr(
|
|
41242
|
+
Array.isArray(He.columnOrder) && (yr(ft, He.columnOrder) || (St(He.columnOrder), ne = !0)), Array.isArray(He.frozenColumnIds) && (yr(lt, He.frozenColumnIds) || (Dt(He.frozenColumnIds), ne = !0)), ne && (wr.current = !0, Promise.resolve().then(() => {
|
|
41243
41243
|
wr.current = !1;
|
|
41244
41244
|
}));
|
|
41245
41245
|
}, [
|
|
@@ -41249,8 +41249,8 @@ const viewManager = new ViewManager(), useViewPersistence = (e, t = !0) => {
|
|
|
41249
41249
|
nt,
|
|
41250
41250
|
me,
|
|
41251
41251
|
Ge,
|
|
41252
|
-
|
|
41253
|
-
|
|
41252
|
+
et,
|
|
41253
|
+
ft,
|
|
41254
41254
|
lt
|
|
41255
41255
|
]), useEffect(() => {
|
|
41256
41256
|
Kr();
|
|
@@ -41263,8 +41263,8 @@ const viewManager = new ViewManager(), useViewPersistence = (e, t = !0) => {
|
|
|
41263
41263
|
}
|
|
41264
41264
|
}, [ot, ut, kt, xr]), useEffect(() => {
|
|
41265
41265
|
!ct || !ut || kt.autoSave(
|
|
41266
|
-
Array.from(
|
|
41267
|
-
|
|
41266
|
+
Array.from(et),
|
|
41267
|
+
ft,
|
|
41268
41268
|
lt,
|
|
41269
41269
|
ke,
|
|
41270
41270
|
Pe,
|
|
@@ -41276,8 +41276,8 @@ const viewManager = new ViewManager(), useViewPersistence = (e, t = !0) => {
|
|
|
41276
41276
|
ct,
|
|
41277
41277
|
ut,
|
|
41278
41278
|
kt,
|
|
41279
|
-
|
|
41280
|
-
|
|
41279
|
+
et,
|
|
41280
|
+
ft,
|
|
41281
41281
|
lt,
|
|
41282
41282
|
ke,
|
|
41283
41283
|
Pe,
|
|
@@ -41286,8 +41286,8 @@ const viewManager = new ViewManager(), useViewPersistence = (e, t = !0) => {
|
|
|
41286
41286
|
Ge
|
|
41287
41287
|
]), useEffect(() => {
|
|
41288
41288
|
Hr.current = {
|
|
41289
|
-
visibleColumns: Array.from(
|
|
41290
|
-
columnOrder:
|
|
41289
|
+
visibleColumns: Array.from(et),
|
|
41290
|
+
columnOrder: ft,
|
|
41291
41291
|
frozenColumnIds: lt,
|
|
41292
41292
|
currentPage: ke,
|
|
41293
41293
|
rowsPerPage: Pe,
|
|
@@ -41296,8 +41296,8 @@ const viewManager = new ViewManager(), useViewPersistence = (e, t = !0) => {
|
|
|
41296
41296
|
searchQuery: Ge
|
|
41297
41297
|
};
|
|
41298
41298
|
}, [
|
|
41299
|
-
|
|
41300
|
-
|
|
41299
|
+
et,
|
|
41300
|
+
ft,
|
|
41301
41301
|
lt,
|
|
41302
41302
|
ke,
|
|
41303
41303
|
Pe,
|
|
@@ -41334,8 +41334,8 @@ const viewManager = new ViewManager(), useViewPersistence = (e, t = !0) => {
|
|
|
41334
41334
|
ne !== ke && (Oe && It(!0), Ne(ne));
|
|
41335
41335
|
};
|
|
41336
41336
|
useEffect(() => {
|
|
41337
|
-
Ur.current =
|
|
41338
|
-
}, [
|
|
41337
|
+
Ur.current = rt;
|
|
41338
|
+
}, [rt]), useEffect(() => {
|
|
41339
41339
|
const Z = Ur.current;
|
|
41340
41340
|
if (typeof Z == "function")
|
|
41341
41341
|
try {
|
|
@@ -41569,46 +41569,46 @@ const viewManager = new ViewManager(), useViewPersistence = (e, t = !0) => {
|
|
|
41569
41569
|
ze,
|
|
41570
41570
|
kt
|
|
41571
41571
|
]), useEffect(() => {
|
|
41572
|
-
if (
|
|
41573
|
-
const Z = Array.from(
|
|
41574
|
-
(le) => !
|
|
41572
|
+
if (pt.length === 0) return;
|
|
41573
|
+
const Z = Array.from(et).filter(
|
|
41574
|
+
(le) => !pt.some(
|
|
41575
41575
|
(he) => he.id === le && he.shouldVisible !== !1
|
|
41576
41576
|
)
|
|
41577
41577
|
);
|
|
41578
41578
|
if (Z.length > 0) {
|
|
41579
41579
|
const le = new Set(
|
|
41580
|
-
Array.from(
|
|
41580
|
+
Array.from(et).filter(
|
|
41581
41581
|
(he) => !Z.includes(he)
|
|
41582
41582
|
)
|
|
41583
41583
|
);
|
|
41584
41584
|
if (le.size === 0) {
|
|
41585
|
-
const he =
|
|
41585
|
+
const he = pt.find(
|
|
41586
41586
|
(xe) => xe.shouldDisplay !== !1 && xe.shouldVisible !== !1
|
|
41587
41587
|
);
|
|
41588
41588
|
he && le.add(he.id);
|
|
41589
41589
|
}
|
|
41590
41590
|
At(le);
|
|
41591
41591
|
}
|
|
41592
|
-
const ne =
|
|
41592
|
+
const ne = ft.filter(
|
|
41593
41593
|
(le) => {
|
|
41594
41594
|
var he;
|
|
41595
|
-
return ((he =
|
|
41595
|
+
return ((he = pt.find((xe) => xe.id === le)) == null ? void 0 : he.shouldVisible) === !1;
|
|
41596
41596
|
}
|
|
41597
41597
|
);
|
|
41598
41598
|
if (ne.length > 0) {
|
|
41599
|
-
const le =
|
|
41599
|
+
const le = ft.filter(
|
|
41600
41600
|
(he) => !ne.includes(he)
|
|
41601
41601
|
);
|
|
41602
41602
|
St(le);
|
|
41603
41603
|
}
|
|
41604
|
-
}, [
|
|
41604
|
+
}, [pt, et, ft]), useEffect(() => {
|
|
41605
41605
|
if (lr)
|
|
41606
41606
|
try {
|
|
41607
41607
|
if (typeof window < "u")
|
|
41608
41608
|
if (it) {
|
|
41609
41609
|
const Z = {
|
|
41610
|
-
visibleColumns: Array.from(
|
|
41611
|
-
columnOrder:
|
|
41610
|
+
visibleColumns: Array.from(et),
|
|
41611
|
+
columnOrder: ft,
|
|
41612
41612
|
frozenColumnIds: lt
|
|
41613
41613
|
};
|
|
41614
41614
|
window.localStorage.setItem(
|
|
@@ -41621,8 +41621,8 @@ const viewManager = new ViewManager(), useViewPersistence = (e, t = !0) => {
|
|
|
41621
41621
|
console.warn("[CEDataGrid] Failed to manage column persistence:", Z);
|
|
41622
41622
|
}
|
|
41623
41623
|
}, [
|
|
41624
|
-
|
|
41625
|
-
|
|
41624
|
+
et,
|
|
41625
|
+
ft,
|
|
41626
41626
|
lt,
|
|
41627
41627
|
rr,
|
|
41628
41628
|
lr,
|
|
@@ -41737,20 +41737,13 @@ const viewManager = new ViewManager(), useViewPersistence = (e, t = !0) => {
|
|
|
41737
41737
|
}, Jr = (Z, ne) => {
|
|
41738
41738
|
At((le) => {
|
|
41739
41739
|
const he = new Set(le);
|
|
41740
|
-
|
|
41741
|
-
|
|
41742
|
-
|
|
41743
|
-
if (he.size <= 1 && he.has(Z))
|
|
41744
|
-
return le;
|
|
41745
|
-
he.delete(Z), Dt(
|
|
41746
|
-
(xe) => xe.filter((Ae) => Ae !== Z)
|
|
41747
|
-
);
|
|
41748
|
-
}
|
|
41749
|
-
return he;
|
|
41740
|
+
return ne ? he.add(Z) : (he.delete(Z), Dt(
|
|
41741
|
+
(xe) => xe.filter((Ae) => Ae !== Z)
|
|
41742
|
+
)), he;
|
|
41750
41743
|
});
|
|
41751
41744
|
}, Cn = (Z, ne) => {
|
|
41752
41745
|
!Z || !ne || Z === ne || St((le) => {
|
|
41753
|
-
const he =
|
|
41746
|
+
const he = pt.filter((Fe) => Fe.shouldVisible !== !1).map((Fe) => Fe.id), xe = [
|
|
41754
41747
|
...le.filter((Fe) => he.includes(Fe)),
|
|
41755
41748
|
...he.filter((Fe) => !le.includes(Fe))
|
|
41756
41749
|
], Ae = xe.indexOf(Z), De = xe.indexOf(ne);
|
|
@@ -41761,21 +41754,21 @@ const viewManager = new ViewManager(), useViewPersistence = (e, t = !0) => {
|
|
|
41761
41754
|
});
|
|
41762
41755
|
}, Qr = useCallback(() => {
|
|
41763
41756
|
if (Wt(!1), Mt) {
|
|
41764
|
-
const Z =
|
|
41765
|
-
...
|
|
41766
|
-
...Z.filter((he) => !
|
|
41757
|
+
const Z = pt.filter((he) => he.shouldVisible !== !1).map((he) => he.id), le = (ft.length > 0 ? [
|
|
41758
|
+
...ft.filter((he) => Z.includes(he)),
|
|
41759
|
+
...Z.filter((he) => !ft.includes(he))
|
|
41767
41760
|
] : Z).map((he, xe) => {
|
|
41768
|
-
const Ae =
|
|
41761
|
+
const Ae = pt.find((De) => De.id === he);
|
|
41769
41762
|
return {
|
|
41770
41763
|
id: he,
|
|
41771
41764
|
label: Ae == null ? void 0 : Ae.label,
|
|
41772
41765
|
position: xe + 1,
|
|
41773
|
-
visible:
|
|
41766
|
+
visible: et.has(he)
|
|
41774
41767
|
};
|
|
41775
41768
|
});
|
|
41776
41769
|
Mt(le);
|
|
41777
41770
|
}
|
|
41778
|
-
}, [
|
|
41771
|
+
}, [ft, pt, et, Mt]), en = (Z, ne = null) => {
|
|
41779
41772
|
const le = ne ? `${Z}-${ne}` : `${Z}`, he = new Set(Ze);
|
|
41780
41773
|
he.has(le) ? he.delete(le) : (Array.from(he).forEach((xe) => {
|
|
41781
41774
|
xe.startsWith(`${Z}`) && he.delete(xe);
|
|
@@ -41848,7 +41841,7 @@ const viewManager = new ViewManager(), useViewPersistence = (e, t = !0) => {
|
|
|
41848
41841
|
if (le && le.trim()) {
|
|
41849
41842
|
const xe = le.toLowerCase();
|
|
41850
41843
|
he = he.filter(
|
|
41851
|
-
(Ae) => Object.entries(Ae).some(([De, Ee]) =>
|
|
41844
|
+
(Ae) => Object.entries(Ae).some(([De, Ee]) => et.has(De) ? String(Ee ?? "").toLowerCase().includes(xe) : !1)
|
|
41852
41845
|
);
|
|
41853
41846
|
}
|
|
41854
41847
|
return Object.entries(ne || {}).forEach(([xe, Ae]) => {
|
|
@@ -42182,7 +42175,7 @@ const viewManager = new ViewManager(), useViewPersistence = (e, t = !0) => {
|
|
|
42182
42175
|
}
|
|
42183
42176
|
Ar();
|
|
42184
42177
|
}, vr = Nt.some(
|
|
42185
|
-
(Z) => Array.from(
|
|
42178
|
+
(Z) => Array.from(et).some(
|
|
42186
42179
|
(ne) => Array.isArray(Z[ne]) && Z[ne].length > 0 && Z[ne].some(
|
|
42187
42180
|
(le) => typeof le == "object" && le !== null
|
|
42188
42181
|
)
|
|
@@ -42200,7 +42193,7 @@ const viewManager = new ViewManager(), useViewPersistence = (e, t = !0) => {
|
|
|
42200
42193
|
return Z;
|
|
42201
42194
|
}
|
|
42202
42195
|
}, gr = (Z = !1) => {
|
|
42203
|
-
const ne =
|
|
42196
|
+
const ne = pt.filter((_e) => et.has(_e.id));
|
|
42204
42197
|
let le;
|
|
42205
42198
|
if (Z || !(at && at.length > 0))
|
|
42206
42199
|
le = Ke;
|
|
@@ -42236,7 +42229,7 @@ const viewManager = new ViewManager(), useViewPersistence = (e, t = !0) => {
|
|
|
42236
42229
|
{
|
|
42237
42230
|
className: Ie ? "esign-table-container" : "table-container",
|
|
42238
42231
|
children: [
|
|
42239
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "table-scroll-container", children:
|
|
42232
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "table-scroll-container", children: et.size === 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
42240
42233
|
"div",
|
|
42241
42234
|
{
|
|
42242
42235
|
style: {
|
|
@@ -42262,7 +42255,7 @@ const viewManager = new ViewManager(), useViewPersistence = (e, t = !0) => {
|
|
|
42262
42255
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("thead", { children: [
|
|
42263
42256
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("tr", { children: [
|
|
42264
42257
|
vr && /* @__PURE__ */ jsxRuntimeExports.jsx("th", { className: "expand-column" }),
|
|
42265
|
-
i && /* @__PURE__ */ jsxRuntimeExports.jsx("th", { className: "checkbox-column", children: o ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
42258
|
+
i && et.size > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("th", { className: "checkbox-column", children: o ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
42266
42259
|
CECheckBox,
|
|
42267
42260
|
{
|
|
42268
42261
|
label: "",
|
|
@@ -42278,7 +42271,7 @@ const viewManager = new ViewManager(), useViewPersistence = (e, t = !0) => {
|
|
|
42278
42271
|
{
|
|
42279
42272
|
label: "",
|
|
42280
42273
|
checked: Nt.length > 0 && (() => {
|
|
42281
|
-
const Z = Ke && Ke.length > 0 ? Ke : at || [], ne = Nt.filter((le) => !(typeof
|
|
42274
|
+
const Z = Ke && Ke.length > 0 ? Ke : at || [], ne = Nt.filter((le) => !(typeof tt == "function" ? tt(le) : !1));
|
|
42282
42275
|
return ne.length > 0 && ne.every((le) => {
|
|
42283
42276
|
let he = gt(le);
|
|
42284
42277
|
if (he === void 0) {
|
|
@@ -42289,7 +42282,7 @@ const viewManager = new ViewManager(), useViewPersistence = (e, t = !0) => {
|
|
|
42289
42282
|
});
|
|
42290
42283
|
})(),
|
|
42291
42284
|
onChange: (Z) => {
|
|
42292
|
-
const ne = new Set(Rt), le = Ke && Ke.length > 0 ? Ke : at || [], he = Nt.filter((Ae) => !(typeof
|
|
42285
|
+
const ne = new Set(Rt), le = Ke && Ke.length > 0 ? Ke : at || [], he = Nt.filter((Ae) => !(typeof tt == "function" ? tt(Ae) : !1)).map((Ae) => {
|
|
42293
42286
|
const De = gt(Ae);
|
|
42294
42287
|
if (De !== void 0) return De;
|
|
42295
42288
|
const Ee = le.indexOf(Ae);
|
|
@@ -42361,8 +42354,8 @@ const viewManager = new ViewManager(), useViewPersistence = (e, t = !0) => {
|
|
|
42361
42354
|
}
|
|
42362
42355
|
)
|
|
42363
42356
|
) }),
|
|
42364
|
-
_t.filter((Z) =>
|
|
42365
|
-
const ne =
|
|
42357
|
+
_t.filter((Z) => pt.find((le) => le.id === Z) && et.has(Z)).map((Z) => {
|
|
42358
|
+
const ne = pt.find((le) => le.id === Z);
|
|
42366
42359
|
return ne ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
42367
42360
|
"th",
|
|
42368
42361
|
{
|
|
@@ -42527,10 +42520,10 @@ const viewManager = new ViewManager(), useViewPersistence = (e, t = !0) => {
|
|
|
42527
42520
|
] }),
|
|
42528
42521
|
qt && /* @__PURE__ */ jsxRuntimeExports.jsxs("tr", { className: "filter-row", children: [
|
|
42529
42522
|
vr && /* @__PURE__ */ jsxRuntimeExports.jsx("td", {}),
|
|
42530
|
-
i && /* @__PURE__ */ jsxRuntimeExports.jsx("td", {}),
|
|
42531
|
-
_t.filter((Z) =>
|
|
42523
|
+
i && et.size > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("td", {}),
|
|
42524
|
+
_t.filter((Z) => pt.find((le) => le.id === Z) && et.has(Z)).map((Z) => {
|
|
42532
42525
|
var le;
|
|
42533
|
-
const ne =
|
|
42526
|
+
const ne = pt.find((he) => he.id === Z);
|
|
42534
42527
|
return ne ? /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
42535
42528
|
"td",
|
|
42536
42529
|
{
|
|
@@ -42589,7 +42582,7 @@ const viewManager = new ViewManager(), useViewPersistence = (e, t = !0) => {
|
|
|
42589
42582
|
/* @__PURE__ */ jsxRuntimeExports.jsx("tbody", { children: Nt.length === 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx("tr", { className: "no-records-row", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
42590
42583
|
"td",
|
|
42591
42584
|
{
|
|
42592
|
-
colSpan: (vr ? 1 : 0) + (i ? 1 : 0) + Array.from(
|
|
42585
|
+
colSpan: (vr ? 1 : 0) + (i ? 1 : 0) + Array.from(et).length + (mr ? 1 : 0),
|
|
42593
42586
|
className: "no-records-cell",
|
|
42594
42587
|
children: Ge.trim() || Object.keys(me).length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
42595
42588
|
"div",
|
|
@@ -42678,7 +42671,7 @@ const viewManager = new ViewManager(), useViewPersistence = (e, t = !0) => {
|
|
|
42678
42671
|
),
|
|
42679
42672
|
Object.entries(me).map(
|
|
42680
42673
|
([Z, ne]) => {
|
|
42681
|
-
const le =
|
|
42674
|
+
const le = pt.find(
|
|
42682
42675
|
(he) => he.id === Z
|
|
42683
42676
|
);
|
|
42684
42677
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
@@ -42748,7 +42741,7 @@ const viewManager = new ViewManager(), useViewPersistence = (e, t = !0) => {
|
|
|
42748
42741
|
) : "No Data found"
|
|
42749
42742
|
}
|
|
42750
42743
|
) }) : Nt.map((Z, ne) => {
|
|
42751
|
-
const le = typeof
|
|
42744
|
+
const le = typeof tt == "function" ? tt(Z) : !1, xe = (Ke && Ke.length > 0 ? Ke : at).indexOf(Z), Ae = gt(
|
|
42752
42745
|
Z,
|
|
42753
42746
|
xe >= 0 ? xe : ke * Pe + ne
|
|
42754
42747
|
), De = H && Ut !== null && Ae !== void 0 && (Ae === Ut || String(Ae) === String(Ut));
|
|
@@ -42766,7 +42759,7 @@ const viewManager = new ViewManager(), useViewPersistence = (e, t = !0) => {
|
|
|
42766
42759
|
...typeof Ve == "function" ? Ve(Z) : {}
|
|
42767
42760
|
},
|
|
42768
42761
|
children: [
|
|
42769
|
-
vr && /* @__PURE__ */ jsxRuntimeExports.jsx("td", { className: "expand-column", children: Array.from(
|
|
42762
|
+
vr && /* @__PURE__ */ jsxRuntimeExports.jsx("td", { className: "expand-column", children: Array.from(et).some(
|
|
42770
42763
|
(Ee) => Array.isArray(Z[Ee]) && Z[Ee].length > 0 && Z[Ee].some(
|
|
42771
42764
|
(_e) => typeof _e == "object" && _e !== null
|
|
42772
42765
|
)
|
|
@@ -42780,7 +42773,7 @@ const viewManager = new ViewManager(), useViewPersistence = (e, t = !0) => {
|
|
|
42780
42773
|
) ? "▼" : "▶"
|
|
42781
42774
|
}
|
|
42782
42775
|
) }),
|
|
42783
|
-
i && /* @__PURE__ */ jsxRuntimeExports.jsx("td", { className: "checkbox-column", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
42776
|
+
i && et.size > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("td", { className: "checkbox-column", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
42784
42777
|
CECheckBox,
|
|
42785
42778
|
{
|
|
42786
42779
|
label: "",
|
|
@@ -42842,8 +42835,8 @@ const viewManager = new ViewManager(), useViewPersistence = (e, t = !0) => {
|
|
|
42842
42835
|
})
|
|
42843
42836
|
}
|
|
42844
42837
|
) }) }),
|
|
42845
|
-
_t.filter((Ee) =>
|
|
42846
|
-
const _e =
|
|
42838
|
+
_t.filter((Ee) => pt.find((Fe) => Fe.id === Ee) && et.has(Ee)).map((Ee) => {
|
|
42839
|
+
const _e = pt.find(($e) => $e.id === Ee);
|
|
42847
42840
|
if (!_e) return null;
|
|
42848
42841
|
const Fe = De ? Mn(_e, Z) : !1;
|
|
42849
42842
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -43125,7 +43118,7 @@ const viewManager = new ViewManager(), useViewPersistence = (e, t = !0) => {
|
|
|
43125
43118
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
43126
43119
|
"td",
|
|
43127
43120
|
{
|
|
43128
|
-
colSpan:
|
|
43121
|
+
colSpan: et.size + 2,
|
|
43129
43122
|
className: "expanded-cell",
|
|
43130
43123
|
children: Object.entries($e).map(
|
|
43131
43124
|
([Xe, st], xt) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
@@ -43167,7 +43160,7 @@ const viewManager = new ViewManager(), useViewPersistence = (e, t = !0) => {
|
|
|
43167
43160
|
}) })
|
|
43168
43161
|
]
|
|
43169
43162
|
},
|
|
43170
|
-
`table-${Array.from(
|
|
43163
|
+
`table-${Array.from(et).join("|")}__${_t.join("|")}`
|
|
43171
43164
|
) }),
|
|
43172
43165
|
Se && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "pagination-container", children: [
|
|
43173
43166
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: { display: "flex", alignItems: "center", gap: "40px" }, children: [
|
|
@@ -43229,7 +43222,7 @@ const viewManager = new ViewManager(), useViewPersistence = (e, t = !0) => {
|
|
|
43229
43222
|
className: "filter-select",
|
|
43230
43223
|
"aria-label": "Filter column",
|
|
43231
43224
|
title: "Select column to filter",
|
|
43232
|
-
children:
|
|
43225
|
+
children: pt.map((Z) => /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: Z.id, children: Z.label }, Z.id))
|
|
43233
43226
|
}
|
|
43234
43227
|
)
|
|
43235
43228
|
] }),
|
|
@@ -43289,7 +43282,7 @@ const viewManager = new ViewManager(), useViewPersistence = (e, t = !0) => {
|
|
|
43289
43282
|
Object.keys(me).length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "active-filters-summary", children: [
|
|
43290
43283
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "active-filters-header", children: "Active Filters:" }),
|
|
43291
43284
|
Object.entries(me).map(([Z, ne]) => {
|
|
43292
|
-
const le =
|
|
43285
|
+
const le = pt.find((he) => he.id === Z);
|
|
43293
43286
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "active-filter-item", children: [
|
|
43294
43287
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("span", { children: [
|
|
43295
43288
|
(le == null ? void 0 : le.label) || Z,
|
|
@@ -43338,8 +43331,8 @@ const viewManager = new ViewManager(), useViewPersistence = (e, t = !0) => {
|
|
|
43338
43331
|
}).finally(() => {
|
|
43339
43332
|
It(!1);
|
|
43340
43333
|
});
|
|
43341
|
-
else if (Oe &&
|
|
43342
|
-
It(!0), Promise.resolve(
|
|
43334
|
+
else if (Oe && rt)
|
|
43335
|
+
It(!0), Promise.resolve(rt(ke, Pe)).catch(() => {
|
|
43343
43336
|
}).finally(() => {
|
|
43344
43337
|
It(!1);
|
|
43345
43338
|
});
|
|
@@ -43360,28 +43353,28 @@ const viewManager = new ViewManager(), useViewPersistence = (e, t = !0) => {
|
|
|
43360
43353
|
);
|
|
43361
43354
|
ke > Ae && Ne(Ae), It(!1);
|
|
43362
43355
|
}
|
|
43363
|
-
}, Rr =
|
|
43356
|
+
}, Rr = pt.filter(
|
|
43364
43357
|
(Z) => Z.shouldVisible !== !1
|
|
43365
43358
|
), _t = useMemo(() => {
|
|
43366
|
-
const Z = Rr.map((he) => he.id), ne =
|
|
43359
|
+
const Z = Rr.map((he) => he.id), ne = ft.filter((he) => Z.includes(he)), le = Z.filter((he) => !ne.includes(he));
|
|
43367
43360
|
return [...ne, ...le];
|
|
43368
|
-
}, [
|
|
43369
|
-
() => _t.filter((Z) =>
|
|
43370
|
-
[_t,
|
|
43361
|
+
}, [ft, Rr]), an = useMemo(
|
|
43362
|
+
() => _t.filter((Z) => et.has(Z)),
|
|
43363
|
+
[_t, et]
|
|
43371
43364
|
), zn = 40, ir = useMemo(
|
|
43372
|
-
() => lt.filter((Z) =>
|
|
43373
|
-
[lt,
|
|
43365
|
+
() => lt.filter((Z) => et.has(Z)),
|
|
43366
|
+
[lt, et]
|
|
43374
43367
|
), Or = useMemo(() => {
|
|
43375
43368
|
const Z = {};
|
|
43376
43369
|
let ne = i || f ? zn : 0;
|
|
43377
43370
|
return ir.forEach((le) => {
|
|
43378
43371
|
Z[le] = ne;
|
|
43379
|
-
const he =
|
|
43372
|
+
const he = pt.find((De) => De.id === le), xe = Pt[le], Ae = typeof xe == "number" && xe > 0 ? xe : typeof (he == null ? void 0 : he.width) == "string" && parseFloat(he.width) || 150;
|
|
43380
43373
|
ne += Ae;
|
|
43381
43374
|
}), Z;
|
|
43382
43375
|
}, [
|
|
43383
43376
|
ir,
|
|
43384
|
-
|
|
43377
|
+
pt,
|
|
43385
43378
|
Pt,
|
|
43386
43379
|
i,
|
|
43387
43380
|
f
|
|
@@ -43426,21 +43419,21 @@ const viewManager = new ViewManager(), useViewPersistence = (e, t = !0) => {
|
|
|
43426
43419
|
return le;
|
|
43427
43420
|
});
|
|
43428
43421
|
}, qn = Rr.every(
|
|
43429
|
-
(Z) =>
|
|
43422
|
+
(Z) => et.has(Z.id)
|
|
43430
43423
|
);
|
|
43431
43424
|
return useEffect(() => {
|
|
43432
43425
|
if (_t.length !== 0) {
|
|
43433
|
-
if (_t.length !==
|
|
43426
|
+
if (_t.length !== ft.length) {
|
|
43434
43427
|
St(_t);
|
|
43435
43428
|
return;
|
|
43436
43429
|
}
|
|
43437
43430
|
for (let Z = 0; Z < _t.length; Z++)
|
|
43438
|
-
if (_t[Z] !==
|
|
43431
|
+
if (_t[Z] !== ft[Z]) {
|
|
43439
43432
|
St(_t);
|
|
43440
43433
|
return;
|
|
43441
43434
|
}
|
|
43442
43435
|
}
|
|
43443
|
-
}, [_t,
|
|
43436
|
+
}, [_t, ft]), /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
43444
43437
|
"div",
|
|
43445
43438
|
{
|
|
43446
43439
|
className: `datatable-wrapper${ur ? " ce-grid-fullscreen" : ""}`,
|
|
@@ -43632,31 +43625,23 @@ const viewManager = new ViewManager(), useViewPersistence = (e, t = !0) => {
|
|
|
43632
43625
|
type: "checkbox",
|
|
43633
43626
|
checked: qn,
|
|
43634
43627
|
onChange: (Z) => {
|
|
43635
|
-
|
|
43636
|
-
|
|
43637
|
-
|
|
43638
|
-
|
|
43639
|
-
|
|
43640
|
-
|
|
43641
|
-
else {
|
|
43642
|
-
const le = ft.find(
|
|
43643
|
-
(he) => he.shouldVisible !== !1
|
|
43644
|
-
);
|
|
43645
|
-
At(
|
|
43646
|
-
le ? /* @__PURE__ */ new Set([le.id]) : /* @__PURE__ */ new Set()
|
|
43647
|
-
);
|
|
43648
|
-
}
|
|
43628
|
+
const ne = Z.target.checked;
|
|
43629
|
+
At(
|
|
43630
|
+
ne ? new Set(
|
|
43631
|
+
pt.filter((le) => le.shouldVisible !== !1).map((le) => le.id)
|
|
43632
|
+
) : /* @__PURE__ */ new Set()
|
|
43633
|
+
);
|
|
43649
43634
|
}
|
|
43650
43635
|
}
|
|
43651
43636
|
),
|
|
43652
43637
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: "Select All" })
|
|
43653
43638
|
] }) }) }),
|
|
43654
43639
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "cecol-list-container", children: _t.filter(
|
|
43655
|
-
(Z) =>
|
|
43640
|
+
(Z) => pt.find(
|
|
43656
43641
|
(ne) => ne.id === Z && ne.shouldVisible !== !1
|
|
43657
43642
|
)
|
|
43658
43643
|
).map((Z) => {
|
|
43659
|
-
const ne =
|
|
43644
|
+
const ne = pt.find((le) => le.id === Z);
|
|
43660
43645
|
return ne ? /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
43661
43646
|
"div",
|
|
43662
43647
|
{
|
|
@@ -43673,7 +43658,7 @@ const viewManager = new ViewManager(), useViewPersistence = (e, t = !0) => {
|
|
|
43673
43658
|
jr === ne.id && or(null);
|
|
43674
43659
|
},
|
|
43675
43660
|
onClick: (le) => {
|
|
43676
|
-
const he = !
|
|
43661
|
+
const he = !et.has(ne.id);
|
|
43677
43662
|
Jr(ne.id, he);
|
|
43678
43663
|
},
|
|
43679
43664
|
children: [
|
|
@@ -43704,7 +43689,7 @@ const viewManager = new ViewManager(), useViewPersistence = (e, t = !0) => {
|
|
|
43704
43689
|
"input",
|
|
43705
43690
|
{
|
|
43706
43691
|
type: "checkbox",
|
|
43707
|
-
checked:
|
|
43692
|
+
checked: et.has(ne.id),
|
|
43708
43693
|
onClick: (le) => le.stopPropagation(),
|
|
43709
43694
|
onChange: (le) => {
|
|
43710
43695
|
le.stopPropagation(), Jr(ne.id, le.target.checked);
|
|
@@ -43739,7 +43724,7 @@ const viewManager = new ViewManager(), useViewPersistence = (e, t = !0) => {
|
|
|
43739
43724
|
hn ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
43740
43725
|
CESkeletonTable,
|
|
43741
43726
|
{
|
|
43742
|
-
columns:
|
|
43727
|
+
columns: pt.length || 5,
|
|
43743
43728
|
rows: Pe || 10
|
|
43744
43729
|
}
|
|
43745
43730
|
) : Vn()
|
|
@@ -43971,12 +43956,12 @@ const viewManager = new ViewManager(), useViewPersistence = (e, t = !0) => {
|
|
|
43971
43956
|
return !0;
|
|
43972
43957
|
},
|
|
43973
43958
|
[S, ue, G]
|
|
43974
|
-
), qe = ue == null ? void 0 : ue.getFullYear(), Je = G == null ? void 0 : G.getFullYear(),
|
|
43959
|
+
), qe = ue == null ? void 0 : ue.getFullYear(), Je = G == null ? void 0 : G.getFullYear(), rt = (Oe) => {
|
|
43975
43960
|
if (qe !== void 0 && Oe < qe || Je !== void 0 && Oe > Je)
|
|
43976
43961
|
return;
|
|
43977
43962
|
const Me = new Date(Oe, S.getMonth(), 1);
|
|
43978
43963
|
_(Me), C(!1);
|
|
43979
|
-
},
|
|
43964
|
+
}, tt = () => {
|
|
43980
43965
|
const Oe = new Date(
|
|
43981
43966
|
S.getFullYear(),
|
|
43982
43967
|
S.getMonth(),
|
|
@@ -44159,7 +44144,7 @@ const viewManager = new ViewManager(), useViewPersistence = (e, t = !0) => {
|
|
|
44159
44144
|
"div",
|
|
44160
44145
|
{
|
|
44161
44146
|
className: `dp-year-item ${qe !== void 0 && Be < qe || Je !== void 0 && Be > Je ? "disabled" : ""}`,
|
|
44162
|
-
onClick: () =>
|
|
44147
|
+
onClick: () => rt(Be),
|
|
44163
44148
|
"aria-disabled": qe !== void 0 && Be < qe || Je !== void 0 && Be > Je ? "true" : "false",
|
|
44164
44149
|
children: Be
|
|
44165
44150
|
},
|
|
@@ -44170,7 +44155,7 @@ const viewManager = new ViewManager(), useViewPersistence = (e, t = !0) => {
|
|
|
44170
44155
|
"div",
|
|
44171
44156
|
{
|
|
44172
44157
|
className: `dp-days dp-slide-${O}`,
|
|
44173
|
-
children:
|
|
44158
|
+
children: tt()
|
|
44174
44159
|
},
|
|
44175
44160
|
I
|
|
44176
44161
|
)
|