hplx-feature-library 1.0.334 → 1.0.335
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/{APIAction-BC572SUh.cjs → APIAction-BPjQvoDr.cjs} +1 -1
- package/dist/{APIAction-BQ9teGJW.js → APIAction-CnNB821P.js} +2 -2
- package/dist/AllInvestigations/index.js +1 -1
- package/dist/{AllInvestigationsTable-CfVHX_cv.js → AllInvestigationsTable-BpzCWjdy.js} +5719 -5189
- package/dist/AllInvestigationsTable-DKMxC37E.cjs +80 -0
- package/dist/Attachments/index.js +1 -1
- package/dist/{Attachments-Dn4I_VGB.js → Attachments-CR5Hn2a-.js} +36 -36
- package/dist/Attachments-bR6Yw3b1.cjs +186 -0
- package/dist/NineDots/index.js +1 -1
- package/dist/{NineDots-CEKYCz_l.cjs → NineDots-BenIdNn6.cjs} +1 -1
- package/dist/{NineDots-lJuHzSds.js → NineDots-flStRcwQ.js} +1 -1
- package/dist/PatientAddEdit/index.js +1 -1
- package/dist/{PatientAddEdit-BsHEMXG4.js → PatientAddEdit-C_AVASJZ.js} +5 -5
- package/dist/{PatientAddEdit-CtM4xbMa.cjs → PatientAddEdit-CiUyGlRS.cjs} +1 -1
- package/dist/PatientPopup/index.js +1 -1
- package/dist/PatientPopupContainer-C1mUJt-1.cjs +36 -0
- package/dist/{PatientPopupContainer-BeIy8UXR.js → PatientPopupContainer-D2WrddXp.js} +512 -512
- package/dist/PediatricsCalculator/index.js +1 -1
- package/dist/{PediatricsCalculatorTable-MiyDnBXR.js → PediatricsCalculatorTable-B9qnPT3k.js} +2 -2
- package/dist/{PediatricsCalculatorTable-C59lNMNS.cjs → PediatricsCalculatorTable-Bfnfpscv.cjs} +1 -1
- package/dist/{PrintModal-Cl4uUWgD.js → PrintModal-CFLEX8mu.js} +587 -587
- package/dist/{PrintModal-C6CqotCi.cjs → PrintModal-D1txlk-k.cjs} +46 -46
- package/dist/SearchPatients/index.js +1 -1
- package/dist/{SearchPatients-BFfL62yW.js → SearchPatients-29CApppX.js} +3 -3
- package/dist/{SearchPatients-1FVfZoeQ.cjs → SearchPatients-BURn-eU9.cjs} +1 -1
- package/dist/UserProfile/index.js +1 -1
- package/dist/{UserProfile-my66IVx6.cjs → UserProfile-BcdsuEnn.cjs} +3 -3
- package/dist/{UserProfile-BTIhJrPQ.js → UserProfile-CuTDd35r.js} +6 -6
- package/dist/{common-utils-Xwn35s7D.js → common-utils-Bh-Z-fp6.js} +1 -1
- package/dist/{common-utils-D1ID7-VY.cjs → common-utils-BmJs-CNu.cjs} +1 -1
- package/dist/{dayjs.min-Bk353hCE.js → dayjs.min-BL-kO2DB.js} +15 -15
- package/dist/dayjs.min-QUFnA3Sz.cjs +1 -0
- package/dist/hplx-feature-library.css +1 -1
- package/dist/index-83gl7aAu.cjs +32 -0
- package/dist/index-D-bucTJp.cjs +102 -0
- package/dist/{index-CJFGOBPb.js → index-DPIXOYYJ.js} +2 -2
- package/dist/{index-f3VHwsio.js → index-DcYhl0go.js} +565 -565
- package/dist/index-Dsi-BJd2.cjs +17 -0
- package/dist/{index-0w7RM_ri.js → index-je4BA6Gv.js} +19 -19
- package/dist/index.js +9 -9
- package/dist/print-pdf/index.js +1 -1
- package/package.json +2 -2
- package/dist/AllInvestigationsTable-CpDCn0HV.cjs +0 -80
- package/dist/Attachments-e2Orioyf.cjs +0 -186
- package/dist/PatientPopupContainer-DMlG8RIK.cjs +0 -36
- package/dist/dayjs.min-Dq_-qqjW.cjs +0 -1
- package/dist/index-C8nmTIgQ.cjs +0 -102
- package/dist/index-DfcUmlge.cjs +0 -17
- package/dist/index-fA2CtGkU.cjs +0 -32
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { j as e, b as N, g as vn, e as kn, K as Le, h as Vn, P as Et, Z as Or, k as ll, a as Va, t as hr, A as ur, c as _n, N as yn, O as $l, E as bn, q as On } from "./index-
|
|
1
|
+
import { j as e, b as N, g as vn, e as kn, K as Le, h as Vn, P as Et, Z as Or, k as ll, a as Va, t as hr, A as ur, c as _n, N as yn, O as $l, E as bn, q as On } from "./index-DcYhl0go.js";
|
|
2
2
|
import ol, { createContext as Wn, useContext as Lt, useState as U, forwardRef as zn, useRef as Mr, useEffect as Ye, useCallback as $t, useMemo as Kt, useReducer as Oa } from "react";
|
|
3
3
|
import { a as Ta } from "./CommonTypes-BzMrYraH.js";
|
|
4
|
-
import { G as Yn, a as qn, b as $n, c as wn, U as Wa, d as Un, e as Cn, f as Zn, g as Kn, h as Xn, i as Jn, j as Qn, k as ei, l as ti, m as Rn, n as ri, o as jn, D as li, p as ai, q as ni, V as ii, r as Pn, s as si, t as oi, u as ci, v as di, w as ui, L as fi, x as hi, y as pi, z as mi, A as gi, F as At, B as xi, C as vi, E as _i, T as It, W as yi, H as Sn, I as bi, P as Nn } from "./PrintModal-
|
|
5
|
-
import { R as bt, h as za, f as wi, v as an, n as nn, q as Ci, i as Ri } from "./common-utils-
|
|
6
|
-
import { d as Te } from "./dayjs.min-
|
|
7
|
-
import { G as ji, U as Pi, A as Si, f as Ni, i as Di, j as sn, k as Ai } from "./APIAction-
|
|
4
|
+
import { G as Yn, a as qn, b as $n, c as wn, U as Wa, d as Un, e as Cn, f as Zn, g as Kn, h as Xn, i as Jn, j as Qn, k as ei, l as ti, m as Rn, n as ri, o as jn, D as li, p as ai, q as ni, V as ii, r as Pn, s as si, t as oi, u as ci, v as di, w as ui, L as fi, x as hi, y as pi, z as mi, A as gi, F as At, B as xi, C as vi, E as _i, T as It, W as yi, H as Sn, I as bi, P as Nn } from "./PrintModal-CFLEX8mu.js";
|
|
5
|
+
import { R as bt, h as za, f as wi, v as an, n as nn, q as Ci, i as Ri } from "./common-utils-Bh-Z-fp6.js";
|
|
6
|
+
import { d as Te } from "./dayjs.min-BL-kO2DB.js";
|
|
7
|
+
import { G as ji, U as Pi, A as Si, f as Ni, i as Di, j as sn, k as Ai } from "./APIAction-CnNB821P.js";
|
|
8
8
|
import { a as on, H as Ii, D as Pa, M as Sa, b as Ol, S as Ti, C as Na, O as Da } from "./CommonConstant-BMwbE0IZ.js";
|
|
9
9
|
import { c as Ba } from "./index.esm-Bn1Rklqj.js";
|
|
10
10
|
/* empty css */
|
|
@@ -909,10 +909,10 @@ const rl = {
|
|
|
909
909
|
};
|
|
910
910
|
var Yl = { exports: {} }, ms = Yl.exports, un;
|
|
911
911
|
function gs() {
|
|
912
|
-
return un || (un = 1, function(n, u) {
|
|
912
|
+
return un || (un = 1, (function(n, u) {
|
|
913
913
|
(function(d, i) {
|
|
914
914
|
n.exports = i();
|
|
915
|
-
})(ms, function() {
|
|
915
|
+
})(ms, (function() {
|
|
916
916
|
var d = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, i = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, v = /\d/, w = /\d\d/, a = /\d\d?/, A = /\d*[^-_:/,()\s\d]+/, S = {}, h = function(D) {
|
|
917
917
|
return (D = +D) + (D > 68 ? 1900 : 2e3);
|
|
918
918
|
}, k = function(D) {
|
|
@@ -920,11 +920,11 @@ function gs() {
|
|
|
920
920
|
this[D] = +P;
|
|
921
921
|
};
|
|
922
922
|
}, g = [/[+-]\d\d:?(\d\d)?|Z/, function(D) {
|
|
923
|
-
(this.zone || (this.zone = {})).offset = function(P) {
|
|
923
|
+
(this.zone || (this.zone = {})).offset = (function(P) {
|
|
924
924
|
if (!P || P === "Z") return 0;
|
|
925
925
|
var T = P.match(/([+-]|\d\d)/g), b = 60 * T[1] + (+T[2] || 0);
|
|
926
926
|
return b === 0 ? 0 : T[0] === "+" ? -b : b;
|
|
927
|
-
}(D);
|
|
927
|
+
})(D);
|
|
928
928
|
}], L = function(D) {
|
|
929
929
|
var P = S[D];
|
|
930
930
|
return P && (P.indexOf ? P : P.s.concat(P.f));
|
|
@@ -953,9 +953,9 @@ function gs() {
|
|
|
953
953
|
var P = S.ordinal, T = D.match(/\d+/);
|
|
954
954
|
if (this.day = T[0], P) for (var b = 1; b <= 31; b += 1) P(b).replace(/\[|\]/g, "") === D && (this.day = b);
|
|
955
955
|
}], w: [a, k("week")], ww: [w, k("week")], M: [a, k("month")], MM: [w, k("month")], MMM: [A, function(D) {
|
|
956
|
-
var P = L("months"), T = (L("monthsShort") || P.map(function(b) {
|
|
956
|
+
var P = L("months"), T = (L("monthsShort") || P.map((function(b) {
|
|
957
957
|
return b.slice(0, 3);
|
|
958
|
-
})).indexOf(D) + 1;
|
|
958
|
+
}))).indexOf(D) + 1;
|
|
959
959
|
if (T < 1) throw new Error();
|
|
960
960
|
this.month = T % 12 || T;
|
|
961
961
|
}], MMMM: [A, function(D) {
|
|
@@ -968,12 +968,12 @@ function gs() {
|
|
|
968
968
|
function I(D) {
|
|
969
969
|
var P, T;
|
|
970
970
|
P = D, T = S && S.formats;
|
|
971
|
-
for (var b = (D = P.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(ne, O, me) {
|
|
971
|
+
for (var b = (D = P.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(ne, O, me) {
|
|
972
972
|
var we = me && me.toUpperCase();
|
|
973
|
-
return O || T[me] || d[me] || T[we].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(_e, tt, he) {
|
|
973
|
+
return O || T[me] || d[me] || T[we].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(_e, tt, he) {
|
|
974
974
|
return tt || he.slice(1);
|
|
975
|
-
});
|
|
976
|
-
})).match(i), ee = b.length, B = 0; B < ee; B += 1) {
|
|
975
|
+
}));
|
|
976
|
+
}))).match(i), ee = b.length, B = 0; B < ee; B += 1) {
|
|
977
977
|
var H = b[B], z = W[H], Q = z && z[0], Y = z && z[1];
|
|
978
978
|
b[B] = Y ? { regex: Q, parser: Y } : H.replace(/^\[|\]$/g, "");
|
|
979
979
|
}
|
|
@@ -986,13 +986,13 @@ function gs() {
|
|
|
986
986
|
he.call(O, ce), ne = ne.replace(ce, "");
|
|
987
987
|
}
|
|
988
988
|
}
|
|
989
|
-
return function(M) {
|
|
989
|
+
return (function(M) {
|
|
990
990
|
var Ae = M.afternoon;
|
|
991
991
|
if (Ae !== void 0) {
|
|
992
992
|
var Fe = M.hours;
|
|
993
993
|
Ae ? Fe < 12 && (M.hours += 12) : Fe === 12 && (M.hours = 0), delete M.afternoon;
|
|
994
994
|
}
|
|
995
|
-
}(O), O;
|
|
995
|
+
})(O), O;
|
|
996
996
|
};
|
|
997
997
|
}
|
|
998
998
|
return function(D, P, T) {
|
|
@@ -1004,7 +1004,7 @@ function gs() {
|
|
|
1004
1004
|
var Y = Q[1];
|
|
1005
1005
|
if (typeof Y == "string") {
|
|
1006
1006
|
var ne = Q[2] === !0, O = Q[3] === !0, me = ne || O, we = Q[2];
|
|
1007
|
-
O && (we = Q[2]), S = this.$locale(), !ne && we && (S = T.Ls[we]), this.$d = function(X, ce, M, Ae) {
|
|
1007
|
+
O && (we = Q[2]), S = this.$locale(), !ne && we && (S = T.Ls[we]), this.$d = (function(X, ce, M, Ae) {
|
|
1008
1008
|
try {
|
|
1009
1009
|
if (["x", "X"].indexOf(ce) > -1) return new Date((ce === "X" ? 1e3 : 1) * X);
|
|
1010
1010
|
var Fe = I(ce)(X), He = Fe.year, gt = Fe.month, pt = Fe.day, it = Fe.hours, We = Fe.minutes, st = Fe.seconds, Dt = Fe.milliseconds, xt = Fe.zone, Bt = Fe.week, kt = /* @__PURE__ */ new Date(), G = pt || (He || gt ? 1 : kt.getDate()), Ie = He || kt.getFullYear(), Ue = 0;
|
|
@@ -1014,7 +1014,7 @@ function gs() {
|
|
|
1014
1014
|
} catch {
|
|
1015
1015
|
return /* @__PURE__ */ new Date("");
|
|
1016
1016
|
}
|
|
1017
|
-
}(H, Y, z, T), this.init(), we && we !== !0 && (this.$L = this.locale(we).$L), me && H != this.format(Y) && (this.$d = /* @__PURE__ */ new Date("")), S = {};
|
|
1017
|
+
})(H, Y, z, T), this.init(), we && we !== !0 && (this.$L = this.locale(we).$L), me && H != this.format(Y) && (this.$d = /* @__PURE__ */ new Date("")), S = {};
|
|
1018
1018
|
} else if (Y instanceof Array) for (var _e = Y.length, tt = 1; tt <= _e; tt += 1) {
|
|
1019
1019
|
Q[1] = Y[tt - 1];
|
|
1020
1020
|
var he = T.apply(this, Q);
|
|
@@ -1027,8 +1027,8 @@ function gs() {
|
|
|
1027
1027
|
else ee.call(this, B);
|
|
1028
1028
|
};
|
|
1029
1029
|
};
|
|
1030
|
-
});
|
|
1031
|
-
}(Yl)), Yl.exports;
|
|
1030
|
+
}));
|
|
1031
|
+
})(Yl)), Yl.exports;
|
|
1032
1032
|
}
|
|
1033
1033
|
var xs = gs();
|
|
1034
1034
|
const vs = /* @__PURE__ */ vn(xs);
|
|
@@ -3021,10 +3021,10 @@ const Tn = (...n) => {
|
|
|
3021
3021
|
};
|
|
3022
3022
|
var zl = { exports: {} }, il = { exports: {} }, Ns = il.exports, hn;
|
|
3023
3023
|
function Ds() {
|
|
3024
|
-
return hn || (hn = 1, function(n, u) {
|
|
3024
|
+
return hn || (hn = 1, (function(n, u) {
|
|
3025
3025
|
(function(d, i) {
|
|
3026
3026
|
i(u, ol);
|
|
3027
|
-
})(Ns, function(d, i) {
|
|
3027
|
+
})(Ns, (function(d, i) {
|
|
3028
3028
|
function v(t, o, f, p, C, _, R) {
|
|
3029
3029
|
try {
|
|
3030
3030
|
var q = t[_](R), K = q.value;
|
|
@@ -3036,7 +3036,7 @@ function Ds() {
|
|
|
3036
3036
|
function w(t) {
|
|
3037
3037
|
return function() {
|
|
3038
3038
|
var o = this, f = arguments;
|
|
3039
|
-
return new Promise(function(p, C) {
|
|
3039
|
+
return new Promise((function(p, C) {
|
|
3040
3040
|
var _ = t.apply(o, f);
|
|
3041
3041
|
function R(K) {
|
|
3042
3042
|
v(_, p, C, R, q, "next", K);
|
|
@@ -3045,7 +3045,7 @@ function Ds() {
|
|
|
3045
3045
|
v(_, p, C, R, q, "throw", K);
|
|
3046
3046
|
}
|
|
3047
3047
|
R(void 0);
|
|
3048
|
-
});
|
|
3048
|
+
}));
|
|
3049
3049
|
};
|
|
3050
3050
|
}
|
|
3051
3051
|
function a() {
|
|
@@ -3064,7 +3064,7 @@ function Ds() {
|
|
|
3064
3064
|
return C;
|
|
3065
3065
|
}
|
|
3066
3066
|
function S(t) {
|
|
3067
|
-
var o = function(f, p) {
|
|
3067
|
+
var o = (function(f, p) {
|
|
3068
3068
|
if (typeof f != "object" || f === null) return f;
|
|
3069
3069
|
var C = f[Symbol.toPrimitive];
|
|
3070
3070
|
if (C !== void 0) {
|
|
@@ -3073,7 +3073,7 @@ function Ds() {
|
|
|
3073
3073
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
3074
3074
|
}
|
|
3075
3075
|
return String(f);
|
|
3076
|
-
}(t, "string");
|
|
3076
|
+
})(t, "string");
|
|
3077
3077
|
return typeof o == "symbol" ? o : String(o);
|
|
3078
3078
|
}
|
|
3079
3079
|
i = i && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
|
|
@@ -3085,52 +3085,52 @@ function Ds() {
|
|
|
3085
3085
|
}, L = { Cell: k, width: 150, minWidth: 0, maxWidth: Number.MAX_SAFE_INTEGER };
|
|
3086
3086
|
function V() {
|
|
3087
3087
|
for (var t = arguments.length, o = new Array(t), f = 0; f < t; f++) o[f] = arguments[f];
|
|
3088
|
-
return o.reduce(function(p, C) {
|
|
3088
|
+
return o.reduce((function(p, C) {
|
|
3089
3089
|
var _ = C.style, R = C.className;
|
|
3090
3090
|
return p = a({}, p, {}, A(C, ["style", "className"])), _ && (p.style = p.style ? a({}, p.style || {}, {}, _ || {}) : _), R && (p.className = p.className ? p.className + " " + R : R), p.className === "" && delete p.className, p;
|
|
3091
|
-
}, {});
|
|
3091
|
+
}), {});
|
|
3092
3092
|
}
|
|
3093
3093
|
var W = function(t, o) {
|
|
3094
3094
|
return o === void 0 && (o = {}), function(f) {
|
|
3095
|
-
return f === void 0 && (f = {}), [].concat(t, [f]).reduce(function(p, C) {
|
|
3096
|
-
return function _(R, q, K) {
|
|
3095
|
+
return f === void 0 && (f = {}), [].concat(t, [f]).reduce((function(p, C) {
|
|
3096
|
+
return (function _(R, q, K) {
|
|
3097
3097
|
return typeof q == "function" ? _({}, q(R, K)) : Array.isArray(q) ? V.apply(void 0, [R].concat(q)) : V(R, q);
|
|
3098
|
-
}(p, C, a({}, o, { userProps: f }));
|
|
3099
|
-
}, {});
|
|
3098
|
+
})(p, C, a({}, o, { userProps: f }));
|
|
3099
|
+
}), {});
|
|
3100
3100
|
};
|
|
3101
3101
|
}, I = function(t, o, f, p) {
|
|
3102
|
-
return f === void 0 && (f = {}), t.reduce(function(C, _) {
|
|
3102
|
+
return f === void 0 && (f = {}), t.reduce((function(C, _) {
|
|
3103
3103
|
return _(C, f);
|
|
3104
|
-
}, o);
|
|
3104
|
+
}), o);
|
|
3105
3105
|
}, D = function(t, o, f) {
|
|
3106
|
-
return f === void 0 && (f = {}), t.forEach(function(p) {
|
|
3106
|
+
return f === void 0 && (f = {}), t.forEach((function(p) {
|
|
3107
3107
|
p(o, f);
|
|
3108
|
-
});
|
|
3108
|
+
}));
|
|
3109
3109
|
};
|
|
3110
3110
|
function P(t, o, f, p) {
|
|
3111
|
-
t.findIndex(function(C) {
|
|
3111
|
+
t.findIndex((function(C) {
|
|
3112
3112
|
return C.pluginName === f;
|
|
3113
|
-
}), o.forEach(function(C) {
|
|
3114
|
-
t.findIndex(function(_) {
|
|
3113
|
+
})), o.forEach((function(C) {
|
|
3114
|
+
t.findIndex((function(_) {
|
|
3115
3115
|
return _.pluginName === C;
|
|
3116
|
-
});
|
|
3117
|
-
});
|
|
3116
|
+
}));
|
|
3117
|
+
}));
|
|
3118
3118
|
}
|
|
3119
3119
|
function T(t, o) {
|
|
3120
3120
|
return typeof t == "function" ? t(o) : t;
|
|
3121
3121
|
}
|
|
3122
3122
|
function b(t) {
|
|
3123
3123
|
var o = i.useRef();
|
|
3124
|
-
return o.current = t, i.useCallback(function() {
|
|
3124
|
+
return o.current = t, i.useCallback((function() {
|
|
3125
3125
|
return o.current;
|
|
3126
|
-
}, []);
|
|
3126
|
+
}), []);
|
|
3127
3127
|
}
|
|
3128
3128
|
var ee = typeof document < "u" ? i.useLayoutEffect : i.useEffect;
|
|
3129
3129
|
function B(t, o) {
|
|
3130
3130
|
var f = i.useRef(!1);
|
|
3131
|
-
ee(function() {
|
|
3131
|
+
ee((function() {
|
|
3132
3132
|
f.current && t(), f.current = !0;
|
|
3133
|
-
}, o);
|
|
3133
|
+
}), o);
|
|
3134
3134
|
}
|
|
3135
3135
|
function H(t, o, f) {
|
|
3136
3136
|
return f === void 0 && (f = {}), function(p, C) {
|
|
@@ -3141,18 +3141,18 @@ function Ds() {
|
|
|
3141
3141
|
};
|
|
3142
3142
|
}
|
|
3143
3143
|
function z(t, o) {
|
|
3144
|
-
return function(p) {
|
|
3144
|
+
return (function(p) {
|
|
3145
3145
|
return typeof p == "function" && (C = Object.getPrototypeOf(p)).prototype && C.prototype.isReactComponent;
|
|
3146
3146
|
var C;
|
|
3147
|
-
}(f = t) || typeof f == "function" || function(p) {
|
|
3147
|
+
})(f = t) || typeof f == "function" || (function(p) {
|
|
3148
3148
|
return typeof p == "object" && typeof p.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(p.$$typeof.description);
|
|
3149
|
-
}(f) ? i.createElement(t, o) : t;
|
|
3149
|
+
})(f) ? i.createElement(t, o) : t;
|
|
3150
3150
|
var f;
|
|
3151
3151
|
}
|
|
3152
3152
|
function Q(t, o, f) {
|
|
3153
|
-
return f === void 0 && (f = 0), t.map(function(p) {
|
|
3153
|
+
return f === void 0 && (f = 0), t.map((function(p) {
|
|
3154
3154
|
return ne(p = a({}, p, { parent: o, depth: f })), p.columns && (p.columns = Q(p.columns, p, f + 1)), p;
|
|
3155
|
-
});
|
|
3155
|
+
}));
|
|
3156
3156
|
}
|
|
3157
3157
|
function Y(t) {
|
|
3158
3158
|
return he(t, "columns");
|
|
@@ -3163,28 +3163,28 @@ function Ds() {
|
|
|
3163
3163
|
o = o || f;
|
|
3164
3164
|
var C = f.split(".");
|
|
3165
3165
|
f = function(_) {
|
|
3166
|
-
return function(R, q, K) {
|
|
3166
|
+
return (function(R, q, K) {
|
|
3167
3167
|
if (!q) return R;
|
|
3168
|
-
var te, ge = typeof q == "function" ? q : JSON.stringify(q), ue = we.get(ge) || function() {
|
|
3169
|
-
var fe = function(ae) {
|
|
3170
|
-
return function de(Ce, Se) {
|
|
3168
|
+
var te, ge = typeof q == "function" ? q : JSON.stringify(q), ue = we.get(ge) || (function() {
|
|
3169
|
+
var fe = (function(ae) {
|
|
3170
|
+
return (function de(Ce, Se) {
|
|
3171
3171
|
if (Se === void 0 && (Se = []), Array.isArray(Ce)) for (var ke = 0; ke < Ce.length; ke += 1) de(Ce[ke], Se);
|
|
3172
3172
|
else Se.push(Ce);
|
|
3173
3173
|
return Se;
|
|
3174
|
-
}(ae).map(function(de) {
|
|
3174
|
+
})(ae).map((function(de) {
|
|
3175
3175
|
return String(de).replace(".", "_");
|
|
3176
|
-
}).join(".").replace(He, ".").replace(gt, "").split(".");
|
|
3177
|
-
}(q);
|
|
3176
|
+
})).join(".").replace(He, ".").replace(gt, "").split(".");
|
|
3177
|
+
})(q);
|
|
3178
3178
|
return we.set(ge, fe), fe;
|
|
3179
|
-
}();
|
|
3179
|
+
})();
|
|
3180
3180
|
try {
|
|
3181
|
-
te = ue.reduce(function(fe, ae) {
|
|
3181
|
+
te = ue.reduce((function(fe, ae) {
|
|
3182
3182
|
return fe[ae];
|
|
3183
|
-
}, R);
|
|
3183
|
+
}), R);
|
|
3184
3184
|
} catch {
|
|
3185
3185
|
}
|
|
3186
3186
|
return te !== void 0 ? te : K;
|
|
3187
|
-
}(_, C);
|
|
3187
|
+
})(_, C);
|
|
3188
3188
|
};
|
|
3189
3189
|
}
|
|
3190
3190
|
if (!o && typeof p == "string" && p && (o = p), !o && t.columns) throw console.error(t), new Error('A column ID (or unique "Header" value) is required!');
|
|
@@ -3202,13 +3202,13 @@ function Ds() {
|
|
|
3202
3202
|
for (var p = [], C = t, _ = 0, R = function() {
|
|
3203
3203
|
return _++;
|
|
3204
3204
|
}, q = function() {
|
|
3205
|
-
var K = { headers: [] }, te = [], ge = C.some(function(ue) {
|
|
3205
|
+
var K = { headers: [] }, te = [], ge = C.some((function(ue) {
|
|
3206
3206
|
return ue.parent;
|
|
3207
|
-
});
|
|
3208
|
-
C.forEach(function(ue) {
|
|
3207
|
+
}));
|
|
3208
|
+
C.forEach((function(ue) {
|
|
3209
3209
|
var fe, ae = [].concat(te).reverse()[0];
|
|
3210
3210
|
ge && (ue.parent ? fe = a({}, ue.parent, { originalId: ue.parent.id, id: ue.parent.id + "_" + R(), headers: [ue] }, f(ue)) : fe = O(a({ originalId: ue.id + "_placeholder", id: ue.id + "_placeholder_" + R(), placeholderOf: ue, headers: [ue] }, f(ue)), o), ae && ae.originalId === fe.originalId ? ae.headers.push(ue) : te.push(fe)), K.headers.push(ue);
|
|
3211
|
-
}), p.push(K), C = te;
|
|
3211
|
+
})), p.push(K), C = te;
|
|
3212
3212
|
}; C.length; ) q();
|
|
3213
3213
|
return p.reverse();
|
|
3214
3214
|
}
|
|
@@ -3222,21 +3222,21 @@ function Ds() {
|
|
|
3222
3222
|
}
|
|
3223
3223
|
function he(t, o) {
|
|
3224
3224
|
var f = [];
|
|
3225
|
-
return function p(C) {
|
|
3226
|
-
C.forEach(function(_) {
|
|
3225
|
+
return (function p(C) {
|
|
3226
|
+
C.forEach((function(_) {
|
|
3227
3227
|
_[o] ? p(_[o]) : f.push(_);
|
|
3228
|
-
});
|
|
3229
|
-
}(t), f;
|
|
3228
|
+
}));
|
|
3229
|
+
})(t), f;
|
|
3230
3230
|
}
|
|
3231
3231
|
function X(t, o) {
|
|
3232
3232
|
var f = o.manualExpandedKey, p = o.expanded, C = o.expandSubRows, _ = C === void 0 || C, R = [];
|
|
3233
|
-
return t.forEach(function(q) {
|
|
3234
|
-
return function K(te, ge) {
|
|
3235
|
-
ge === void 0 && (ge = !0), te.isExpanded = te.original && te.original[f] || p[te.id], te.canExpand = te.subRows && !!te.subRows.length, ge && R.push(te), te.subRows && te.subRows.length && te.isExpanded && te.subRows.forEach(function(ue) {
|
|
3233
|
+
return t.forEach((function(q) {
|
|
3234
|
+
return (function K(te, ge) {
|
|
3235
|
+
ge === void 0 && (ge = !0), te.isExpanded = te.original && te.original[f] || p[te.id], te.canExpand = te.subRows && !!te.subRows.length, ge && R.push(te), te.subRows && te.subRows.length && te.isExpanded && te.subRows.forEach((function(ue) {
|
|
3236
3236
|
return K(ue, _);
|
|
3237
|
-
});
|
|
3238
|
-
}(q);
|
|
3239
|
-
}), R;
|
|
3237
|
+
}));
|
|
3238
|
+
})(q);
|
|
3239
|
+
})), R;
|
|
3240
3240
|
}
|
|
3241
3241
|
function ce(t, o, f) {
|
|
3242
3242
|
return tt(t) || o[t] || f[t] || f.text;
|
|
@@ -3272,10 +3272,10 @@ function Ds() {
|
|
|
3272
3272
|
}
|
|
3273
3273
|
h.resetHiddenColumns = "resetHiddenColumns", h.toggleHideColumn = "toggleHideColumn", h.setHiddenColumns = "setHiddenColumns", h.toggleHideAllColumns = "toggleHideAllColumns";
|
|
3274
3274
|
var Ie = function(t) {
|
|
3275
|
-
t.getToggleHiddenProps = [Ue], t.getToggleHideAllColumnsProps = [le], t.stateReducers.push(J), t.useInstanceBeforeDimensions.push(Z), t.headerGroupsDeps.push(function(o, f) {
|
|
3275
|
+
t.getToggleHiddenProps = [Ue], t.getToggleHideAllColumnsProps = [le], t.stateReducers.push(J), t.useInstanceBeforeDimensions.push(Z), t.headerGroupsDeps.push((function(o, f) {
|
|
3276
3276
|
var p = f.instance;
|
|
3277
3277
|
return [].concat(o, [p.state.hiddenColumns]);
|
|
3278
|
-
}), t.useInstance.push(se);
|
|
3278
|
+
})), t.useInstance.push(se);
|
|
3279
3279
|
};
|
|
3280
3280
|
Ie.pluginName = "useColumnVisibility";
|
|
3281
3281
|
var Ue = function(t, o) {
|
|
@@ -3293,46 +3293,46 @@ function Ds() {
|
|
|
3293
3293
|
if (o.type === h.init) return a({ hiddenColumns: [] }, t);
|
|
3294
3294
|
if (o.type === h.resetHiddenColumns) return a({}, t, { hiddenColumns: p.initialState.hiddenColumns || [] });
|
|
3295
3295
|
if (o.type === h.toggleHideColumn) {
|
|
3296
|
-
var C = (o.value !== void 0 ? o.value : !t.hiddenColumns.includes(o.columnId)) ? [].concat(t.hiddenColumns, [o.columnId]) : t.hiddenColumns.filter(function(_) {
|
|
3296
|
+
var C = (o.value !== void 0 ? o.value : !t.hiddenColumns.includes(o.columnId)) ? [].concat(t.hiddenColumns, [o.columnId]) : t.hiddenColumns.filter((function(_) {
|
|
3297
3297
|
return _ !== o.columnId;
|
|
3298
|
-
});
|
|
3298
|
+
}));
|
|
3299
3299
|
return a({}, t, { hiddenColumns: C });
|
|
3300
3300
|
}
|
|
3301
|
-
return o.type === h.setHiddenColumns ? a({}, t, { hiddenColumns: T(o.value, t.hiddenColumns) }) : o.type === h.toggleHideAllColumns ? a({}, t, { hiddenColumns: (o.value !== void 0 ? o.value : !t.hiddenColumns.length) ? p.allColumns.map(function(_) {
|
|
3301
|
+
return o.type === h.setHiddenColumns ? a({}, t, { hiddenColumns: T(o.value, t.hiddenColumns) }) : o.type === h.toggleHideAllColumns ? a({}, t, { hiddenColumns: (o.value !== void 0 ? o.value : !t.hiddenColumns.length) ? p.allColumns.map((function(_) {
|
|
3302
3302
|
return _.id;
|
|
3303
|
-
}) : [] }) : void 0;
|
|
3303
|
+
})) : [] }) : void 0;
|
|
3304
3304
|
}
|
|
3305
3305
|
function Z(t) {
|
|
3306
3306
|
var o = t.headers, f = t.state.hiddenColumns;
|
|
3307
3307
|
i.useRef(!1).current;
|
|
3308
3308
|
var p = 0;
|
|
3309
|
-
o.forEach(function(C) {
|
|
3310
|
-
return p += function _(R, q) {
|
|
3309
|
+
o.forEach((function(C) {
|
|
3310
|
+
return p += (function _(R, q) {
|
|
3311
3311
|
R.isVisible = q && !f.includes(R.id);
|
|
3312
3312
|
var K = 0;
|
|
3313
|
-
return R.headers && R.headers.length ? R.headers.forEach(function(te) {
|
|
3313
|
+
return R.headers && R.headers.length ? R.headers.forEach((function(te) {
|
|
3314
3314
|
return K += _(te, R.isVisible);
|
|
3315
|
-
}) : K = R.isVisible ? 1 : 0, R.totalVisibleHeaderCount = K, K;
|
|
3316
|
-
}(C, !0);
|
|
3317
|
-
});
|
|
3315
|
+
})) : K = R.isVisible ? 1 : 0, R.totalVisibleHeaderCount = K, K;
|
|
3316
|
+
})(C, !0);
|
|
3317
|
+
}));
|
|
3318
3318
|
}
|
|
3319
3319
|
function se(t) {
|
|
3320
|
-
var o = t.columns, f = t.flatHeaders, p = t.dispatch, C = t.allColumns, _ = t.getHooks, R = t.state.hiddenColumns, q = t.autoResetHiddenColumns, K = q === void 0 || q, te = b(t), ge = C.length === R.length, ue = i.useCallback(function(Se, ke) {
|
|
3320
|
+
var o = t.columns, f = t.flatHeaders, p = t.dispatch, C = t.allColumns, _ = t.getHooks, R = t.state.hiddenColumns, q = t.autoResetHiddenColumns, K = q === void 0 || q, te = b(t), ge = C.length === R.length, ue = i.useCallback((function(Se, ke) {
|
|
3321
3321
|
return p({ type: h.toggleHideColumn, columnId: Se, value: ke });
|
|
3322
|
-
}, [p]), fe = i.useCallback(function(Se) {
|
|
3322
|
+
}), [p]), fe = i.useCallback((function(Se) {
|
|
3323
3323
|
return p({ type: h.setHiddenColumns, value: Se });
|
|
3324
|
-
}, [p]), ae = i.useCallback(function(Se) {
|
|
3324
|
+
}), [p]), ae = i.useCallback((function(Se) {
|
|
3325
3325
|
return p({ type: h.toggleHideAllColumns, value: Se });
|
|
3326
|
-
}, [p]), de = W(_().getToggleHideAllColumnsProps, { instance: te() });
|
|
3327
|
-
f.forEach(function(Se) {
|
|
3326
|
+
}), [p]), de = W(_().getToggleHideAllColumnsProps, { instance: te() });
|
|
3327
|
+
f.forEach((function(Se) {
|
|
3328
3328
|
Se.toggleHidden = function(ke) {
|
|
3329
3329
|
p({ type: h.toggleHideColumn, columnId: Se.id, value: ke });
|
|
3330
3330
|
}, Se.getToggleHiddenProps = W(_().getToggleHiddenProps, { instance: te(), column: Se });
|
|
3331
|
-
});
|
|
3331
|
+
}));
|
|
3332
3332
|
var Ce = b(K);
|
|
3333
|
-
B(function() {
|
|
3333
|
+
B((function() {
|
|
3334
3334
|
Ce() && p({ type: h.resetHiddenColumns });
|
|
3335
|
-
}, [p, o]), Object.assign(t, { allColumnsHidden: ge, toggleHideColumn: ue, setHiddenColumns: fe, toggleHideAllColumns: ae, getToggleHideAllColumnsProps: de });
|
|
3335
|
+
}), [p, o]), Object.assign(t, { allColumnsHidden: ge, toggleHideColumn: ue, setHiddenColumns: fe, toggleHideAllColumns: ae, getToggleHideAllColumnsProps: de });
|
|
3336
3336
|
}
|
|
3337
3337
|
var Be = {}, Pe = {}, mt = function(t, o, f) {
|
|
3338
3338
|
return t;
|
|
@@ -3350,33 +3350,33 @@ function Ds() {
|
|
|
3350
3350
|
function sr(t, o) {
|
|
3351
3351
|
o === void 0 && (o = 0);
|
|
3352
3352
|
var f = 0, p = 0, C = 0, _ = 0;
|
|
3353
|
-
return t.forEach(function(R) {
|
|
3353
|
+
return t.forEach((function(R) {
|
|
3354
3354
|
var q = R.headers;
|
|
3355
3355
|
if (R.totalLeft = o, q && q.length) {
|
|
3356
3356
|
var K = sr(q, o), te = K[0], ge = K[1], ue = K[2], fe = K[3];
|
|
3357
3357
|
R.totalMinWidth = te, R.totalWidth = ge, R.totalMaxWidth = ue, R.totalFlexWidth = fe;
|
|
3358
3358
|
} else R.totalMinWidth = R.minWidth, R.totalWidth = Math.min(Math.max(R.minWidth, R.width), R.maxWidth), R.totalMaxWidth = R.maxWidth, R.totalFlexWidth = R.canResize ? R.totalWidth : 0;
|
|
3359
3359
|
R.isVisible && (o += R.totalWidth, f += R.totalMinWidth, p += R.totalWidth, C += R.totalMaxWidth, _ += R.totalFlexWidth);
|
|
3360
|
-
}), [f, p, C, _];
|
|
3360
|
+
})), [f, p, C, _];
|
|
3361
3361
|
}
|
|
3362
3362
|
function or(t) {
|
|
3363
3363
|
var o = t.data, f = t.rows, p = t.flatRows, C = t.rowsById, _ = t.column, R = t.getRowId, q = t.getSubRows, K = t.accessValueHooks, te = t.getInstance;
|
|
3364
|
-
o.forEach(function(ge, ue) {
|
|
3365
|
-
return function fe(ae, de, Ce, Se, ke) {
|
|
3364
|
+
o.forEach((function(ge, ue) {
|
|
3365
|
+
return (function fe(ae, de, Ce, Se, ke) {
|
|
3366
3366
|
Ce === void 0 && (Ce = 0);
|
|
3367
3367
|
var at = ae, Ve = R(ae, de, Se), xe = C[Ve];
|
|
3368
|
-
if (xe) xe.subRows && xe.originalSubRows.forEach(function(Ee, Je) {
|
|
3368
|
+
if (xe) xe.subRows && xe.originalSubRows.forEach((function(Ee, Je) {
|
|
3369
3369
|
return fe(Ee, Je, Ce + 1, xe);
|
|
3370
|
-
});
|
|
3370
|
+
}));
|
|
3371
3371
|
else if ((xe = { id: Ve, original: at, index: de, depth: Ce, cells: [{}] }).cells.map = Ae, xe.cells.filter = Ae, xe.cells.forEach = Ae, xe.cells[0].getCellProps = Ae, xe.values = {}, ke.push(xe), p.push(xe), C[Ve] = xe, xe.originalSubRows = q(ae, de), xe.originalSubRows) {
|
|
3372
3372
|
var rt = [];
|
|
3373
|
-
xe.originalSubRows.forEach(function(Ee, Je) {
|
|
3373
|
+
xe.originalSubRows.forEach((function(Ee, Je) {
|
|
3374
3374
|
return fe(Ee, Je, Ce + 1, xe, rt);
|
|
3375
|
-
}), xe.subRows = rt;
|
|
3375
|
+
})), xe.subRows = rt;
|
|
3376
3376
|
}
|
|
3377
3377
|
_.accessor && (xe.values[_.id] = _.accessor(ae, de, xe, ke, o)), xe.values[_.id] = I(K, xe.values[_.id], { row: xe, column: _, instance: te() });
|
|
3378
|
-
}(ge, ue, 0, void 0, f);
|
|
3379
|
-
});
|
|
3378
|
+
})(ge, ue, 0, void 0, f);
|
|
3379
|
+
}));
|
|
3380
3380
|
}
|
|
3381
3381
|
h.resetExpanded = "resetExpanded", h.toggleRowExpanded = "toggleRowExpanded", h.toggleAllRowsExpanded = "toggleAllRowsExpanded";
|
|
3382
3382
|
var fr = function(t) {
|
|
@@ -3401,9 +3401,9 @@ function Ds() {
|
|
|
3401
3401
|
var C = o.value, _ = p.rowsById, R = Object.keys(_).length === Object.keys(t.expanded).length;
|
|
3402
3402
|
if (C !== void 0 ? C : !R) {
|
|
3403
3403
|
var q = {};
|
|
3404
|
-
return Object.keys(_).forEach(function(de) {
|
|
3404
|
+
return Object.keys(_).forEach((function(de) {
|
|
3405
3405
|
q[de] = !0;
|
|
3406
|
-
}), a({}, t, { expanded: q });
|
|
3406
|
+
})), a({}, t, { expanded: q });
|
|
3407
3407
|
}
|
|
3408
3408
|
return a({}, t, { expanded: {} });
|
|
3409
3409
|
}
|
|
@@ -3421,26 +3421,26 @@ function Ds() {
|
|
|
3421
3421
|
var o = t.data, f = t.rows, p = t.rowsById, C = t.manualExpandedKey, _ = C === void 0 ? "expanded" : C, R = t.paginateExpandedRows, q = R === void 0 || R, K = t.expandSubRows, te = K === void 0 || K, ge = t.autoResetExpanded, ue = ge === void 0 || ge, fe = t.getHooks, ae = t.plugins, de = t.state.expanded, Ce = t.dispatch;
|
|
3422
3422
|
P(ae, ["useSortBy", "useGroupBy", "usePivotColumns", "useGlobalFilter"], "useExpanded");
|
|
3423
3423
|
var Se = b(ue), ke = !!(Object.keys(p).length && Object.keys(de).length);
|
|
3424
|
-
ke && Object.keys(p).some(function(vt) {
|
|
3424
|
+
ke && Object.keys(p).some((function(vt) {
|
|
3425
3425
|
return !de[vt];
|
|
3426
|
-
}) && (ke = !1), B(function() {
|
|
3426
|
+
})) && (ke = !1), B((function() {
|
|
3427
3427
|
Se() && Ce({ type: h.resetExpanded });
|
|
3428
|
-
}, [Ce, o]);
|
|
3429
|
-
var at = i.useCallback(function(vt, qe) {
|
|
3428
|
+
}), [Ce, o]);
|
|
3429
|
+
var at = i.useCallback((function(vt, qe) {
|
|
3430
3430
|
Ce({ type: h.toggleRowExpanded, id: vt, value: qe });
|
|
3431
|
-
}, [Ce]), Ve = i.useCallback(function(vt) {
|
|
3431
|
+
}), [Ce]), Ve = i.useCallback((function(vt) {
|
|
3432
3432
|
return Ce({ type: h.toggleAllRowsExpanded, value: vt });
|
|
3433
|
-
}, [Ce]), xe = i.useMemo(function() {
|
|
3433
|
+
}), [Ce]), xe = i.useMemo((function() {
|
|
3434
3434
|
return q ? X(f, { manualExpandedKey: _, expanded: de, expandSubRows: te }) : f;
|
|
3435
|
-
}, [q, f, _, de, te]), rt = i.useMemo(function() {
|
|
3436
|
-
return function(vt) {
|
|
3435
|
+
}), [q, f, _, de, te]), rt = i.useMemo((function() {
|
|
3436
|
+
return (function(vt) {
|
|
3437
3437
|
var qe = 0;
|
|
3438
|
-
return Object.keys(vt).forEach(function(Ke) {
|
|
3438
|
+
return Object.keys(vt).forEach((function(Ke) {
|
|
3439
3439
|
var Pt = Ke.split(".");
|
|
3440
3440
|
qe = Math.max(qe, Pt.length);
|
|
3441
|
-
}), qe;
|
|
3442
|
-
}(de);
|
|
3443
|
-
}, [de]), Ee = b(t), Je = W(fe().getToggleAllRowsExpandedProps, { instance: Ee() });
|
|
3441
|
+
})), qe;
|
|
3442
|
+
})(de);
|
|
3443
|
+
}), [de]), Ee = b(t), Je = W(fe().getToggleAllRowsExpandedProps, { instance: Ee() });
|
|
3444
3444
|
Object.assign(t, { preExpandedRows: f, expandedRows: xe, rows: xe, expandedDepth: rt, isAllRowsExpanded: ke, toggleRowExpanded: at, toggleAllRowsExpanded: Ve, getToggleAllRowsExpandedProps: Je });
|
|
3445
3445
|
}
|
|
3446
3446
|
function cr(t, o) {
|
|
@@ -3450,101 +3450,101 @@ function Ds() {
|
|
|
3450
3450
|
}, t.getToggleRowExpandedProps = W(f().getToggleRowExpandedProps, { instance: p, row: t });
|
|
3451
3451
|
}
|
|
3452
3452
|
var yr = function(t, o, f) {
|
|
3453
|
-
return t = t.filter(function(p) {
|
|
3454
|
-
return o.some(function(C) {
|
|
3453
|
+
return t = t.filter((function(p) {
|
|
3454
|
+
return o.some((function(C) {
|
|
3455
3455
|
var _ = p.values[C];
|
|
3456
3456
|
return String(_).toLowerCase().includes(String(f).toLowerCase());
|
|
3457
|
-
});
|
|
3458
|
-
});
|
|
3457
|
+
}));
|
|
3458
|
+
}));
|
|
3459
3459
|
};
|
|
3460
3460
|
yr.autoRemove = function(t) {
|
|
3461
3461
|
return !t;
|
|
3462
3462
|
};
|
|
3463
3463
|
var Rr = function(t, o, f) {
|
|
3464
|
-
return t.filter(function(p) {
|
|
3465
|
-
return o.some(function(C) {
|
|
3464
|
+
return t.filter((function(p) {
|
|
3465
|
+
return o.some((function(C) {
|
|
3466
3466
|
var _ = p.values[C];
|
|
3467
3467
|
return _ === void 0 || String(_).toLowerCase() === String(f).toLowerCase();
|
|
3468
|
-
});
|
|
3469
|
-
});
|
|
3468
|
+
}));
|
|
3469
|
+
}));
|
|
3470
3470
|
};
|
|
3471
3471
|
Rr.autoRemove = function(t) {
|
|
3472
3472
|
return !t;
|
|
3473
3473
|
};
|
|
3474
3474
|
var gr = function(t, o, f) {
|
|
3475
|
-
return t.filter(function(p) {
|
|
3476
|
-
return o.some(function(C) {
|
|
3475
|
+
return t.filter((function(p) {
|
|
3476
|
+
return o.some((function(C) {
|
|
3477
3477
|
var _ = p.values[C];
|
|
3478
3478
|
return _ === void 0 || String(_) === String(f);
|
|
3479
|
-
});
|
|
3480
|
-
});
|
|
3479
|
+
}));
|
|
3480
|
+
}));
|
|
3481
3481
|
};
|
|
3482
3482
|
gr.autoRemove = function(t) {
|
|
3483
3483
|
return !t;
|
|
3484
3484
|
};
|
|
3485
3485
|
var jr = function(t, o, f) {
|
|
3486
|
-
return t.filter(function(p) {
|
|
3487
|
-
return o.some(function(C) {
|
|
3486
|
+
return t.filter((function(p) {
|
|
3487
|
+
return o.some((function(C) {
|
|
3488
3488
|
return p.values[C].includes(f);
|
|
3489
|
-
});
|
|
3490
|
-
});
|
|
3489
|
+
}));
|
|
3490
|
+
}));
|
|
3491
3491
|
};
|
|
3492
3492
|
jr.autoRemove = function(t) {
|
|
3493
3493
|
return !t || !t.length;
|
|
3494
3494
|
};
|
|
3495
3495
|
var dt = function(t, o, f) {
|
|
3496
|
-
return t.filter(function(p) {
|
|
3497
|
-
return o.some(function(C) {
|
|
3496
|
+
return t.filter((function(p) {
|
|
3497
|
+
return o.some((function(C) {
|
|
3498
3498
|
var _ = p.values[C];
|
|
3499
|
-
return _ && _.length && f.every(function(R) {
|
|
3499
|
+
return _ && _.length && f.every((function(R) {
|
|
3500
3500
|
return _.includes(R);
|
|
3501
|
-
});
|
|
3502
|
-
});
|
|
3503
|
-
});
|
|
3501
|
+
}));
|
|
3502
|
+
}));
|
|
3503
|
+
}));
|
|
3504
3504
|
};
|
|
3505
3505
|
dt.autoRemove = function(t) {
|
|
3506
3506
|
return !t || !t.length;
|
|
3507
3507
|
};
|
|
3508
3508
|
var wt = function(t, o, f) {
|
|
3509
|
-
return t.filter(function(p) {
|
|
3510
|
-
return o.some(function(C) {
|
|
3509
|
+
return t.filter((function(p) {
|
|
3510
|
+
return o.some((function(C) {
|
|
3511
3511
|
var _ = p.values[C];
|
|
3512
|
-
return _ && _.length && f.some(function(R) {
|
|
3512
|
+
return _ && _.length && f.some((function(R) {
|
|
3513
3513
|
return _.includes(R);
|
|
3514
|
-
});
|
|
3515
|
-
});
|
|
3516
|
-
});
|
|
3514
|
+
}));
|
|
3515
|
+
}));
|
|
3516
|
+
}));
|
|
3517
3517
|
};
|
|
3518
3518
|
wt.autoRemove = function(t) {
|
|
3519
3519
|
return !t || !t.length;
|
|
3520
3520
|
};
|
|
3521
3521
|
var ut = function(t, o, f) {
|
|
3522
|
-
return t.filter(function(p) {
|
|
3523
|
-
return o.some(function(C) {
|
|
3522
|
+
return t.filter((function(p) {
|
|
3523
|
+
return o.some((function(C) {
|
|
3524
3524
|
var _ = p.values[C];
|
|
3525
3525
|
return f.includes(_);
|
|
3526
|
-
});
|
|
3527
|
-
});
|
|
3526
|
+
}));
|
|
3527
|
+
}));
|
|
3528
3528
|
};
|
|
3529
3529
|
ut.autoRemove = function(t) {
|
|
3530
3530
|
return !t || !t.length;
|
|
3531
3531
|
};
|
|
3532
3532
|
var St = function(t, o, f) {
|
|
3533
|
-
return t.filter(function(p) {
|
|
3534
|
-
return o.some(function(C) {
|
|
3533
|
+
return t.filter((function(p) {
|
|
3534
|
+
return o.some((function(C) {
|
|
3535
3535
|
return p.values[C] === f;
|
|
3536
|
-
});
|
|
3537
|
-
});
|
|
3536
|
+
}));
|
|
3537
|
+
}));
|
|
3538
3538
|
};
|
|
3539
3539
|
St.autoRemove = function(t) {
|
|
3540
3540
|
return t === void 0;
|
|
3541
3541
|
};
|
|
3542
3542
|
var zt = function(t, o, f) {
|
|
3543
|
-
return t.filter(function(p) {
|
|
3544
|
-
return o.some(function(C) {
|
|
3543
|
+
return t.filter((function(p) {
|
|
3544
|
+
return o.some((function(C) {
|
|
3545
3545
|
return p.values[C] == f;
|
|
3546
|
-
});
|
|
3547
|
-
});
|
|
3546
|
+
}));
|
|
3547
|
+
}));
|
|
3548
3548
|
};
|
|
3549
3549
|
zt.autoRemove = function(t) {
|
|
3550
3550
|
return t == null;
|
|
@@ -3555,12 +3555,12 @@ function Ds() {
|
|
|
3555
3555
|
var R = C;
|
|
3556
3556
|
C = _, _ = R;
|
|
3557
3557
|
}
|
|
3558
|
-
return t.filter(function(q) {
|
|
3559
|
-
return o.some(function(K) {
|
|
3558
|
+
return t.filter((function(q) {
|
|
3559
|
+
return o.some((function(K) {
|
|
3560
3560
|
var te = q.values[K];
|
|
3561
3561
|
return te >= C && te <= _;
|
|
3562
|
-
});
|
|
3563
|
-
});
|
|
3562
|
+
}));
|
|
3563
|
+
}));
|
|
3564
3564
|
};
|
|
3565
3565
|
Ot.autoRemove = function(t) {
|
|
3566
3566
|
return !t || typeof t[0] != "number" && typeof t[1] != "number";
|
|
@@ -3574,77 +3574,77 @@ function Ds() {
|
|
|
3574
3574
|
if (o.type === h.init) return a({ filters: [] }, t);
|
|
3575
3575
|
if (o.type === h.resetFilters) return a({}, t, { filters: p.initialState.filters || [] });
|
|
3576
3576
|
if (o.type === h.setFilter) {
|
|
3577
|
-
var C = o.columnId, _ = o.filterValue, R = p.allColumns, q = p.filterTypes, K = R.find(function(Ce) {
|
|
3577
|
+
var C = o.columnId, _ = o.filterValue, R = p.allColumns, q = p.filterTypes, K = R.find((function(Ce) {
|
|
3578
3578
|
return Ce.id === C;
|
|
3579
|
-
});
|
|
3579
|
+
}));
|
|
3580
3580
|
if (!K) throw new Error("React-Table: Could not find a column with id: " + C);
|
|
3581
|
-
var te = ce(K.filter, q || {}, Yt), ge = t.filters.find(function(Ce) {
|
|
3581
|
+
var te = ce(K.filter, q || {}, Yt), ge = t.filters.find((function(Ce) {
|
|
3582
3582
|
return Ce.id === C;
|
|
3583
|
-
}), ue = T(_, ge && ge.value);
|
|
3584
|
-
return M(te.autoRemove, ue, K) ? a({}, t, { filters: t.filters.filter(function(Ce) {
|
|
3583
|
+
})), ue = T(_, ge && ge.value);
|
|
3584
|
+
return M(te.autoRemove, ue, K) ? a({}, t, { filters: t.filters.filter((function(Ce) {
|
|
3585
3585
|
return Ce.id !== C;
|
|
3586
|
-
}) }) : a({}, t, ge ? { filters: t.filters.map(function(Ce) {
|
|
3586
|
+
})) }) : a({}, t, ge ? { filters: t.filters.map((function(Ce) {
|
|
3587
3587
|
return Ce.id === C ? { id: C, value: ue } : Ce;
|
|
3588
|
-
}) } : { filters: [].concat(t.filters, [{ id: C, value: ue }]) });
|
|
3588
|
+
})) } : { filters: [].concat(t.filters, [{ id: C, value: ue }]) });
|
|
3589
3589
|
}
|
|
3590
3590
|
if (o.type === h.setAllFilters) {
|
|
3591
3591
|
var fe = o.filters, ae = p.allColumns, de = p.filterTypes;
|
|
3592
|
-
return a({}, t, { filters: T(fe, t.filters).filter(function(Ce) {
|
|
3593
|
-
var Se = ae.find(function(ke) {
|
|
3592
|
+
return a({}, t, { filters: T(fe, t.filters).filter((function(Ce) {
|
|
3593
|
+
var Se = ae.find((function(ke) {
|
|
3594
3594
|
return ke.id === Ce.id;
|
|
3595
|
-
});
|
|
3595
|
+
}));
|
|
3596
3596
|
return !M(ce(Se.filter, de || {}, Yt).autoRemove, Ce.value, Se);
|
|
3597
|
-
}) });
|
|
3597
|
+
})) });
|
|
3598
3598
|
}
|
|
3599
3599
|
}
|
|
3600
3600
|
function E(t) {
|
|
3601
|
-
var o = t.data, f = t.rows, p = t.flatRows, C = t.rowsById, _ = t.allColumns, R = t.filterTypes, q = t.manualFilters, K = t.defaultCanFilter, te = K !== void 0 && K, ge = t.disableFilters, ue = t.state.filters, fe = t.dispatch, ae = t.autoResetFilters, de = ae === void 0 || ae, Ce = i.useCallback(function(Ee, Je) {
|
|
3601
|
+
var o = t.data, f = t.rows, p = t.flatRows, C = t.rowsById, _ = t.allColumns, R = t.filterTypes, q = t.manualFilters, K = t.defaultCanFilter, te = K !== void 0 && K, ge = t.disableFilters, ue = t.state.filters, fe = t.dispatch, ae = t.autoResetFilters, de = ae === void 0 || ae, Ce = i.useCallback((function(Ee, Je) {
|
|
3602
3602
|
fe({ type: h.setFilter, columnId: Ee, filterValue: Je });
|
|
3603
|
-
}, [fe]), Se = i.useCallback(function(Ee) {
|
|
3603
|
+
}), [fe]), Se = i.useCallback((function(Ee) {
|
|
3604
3604
|
fe({ type: h.setAllFilters, filters: Ee });
|
|
3605
|
-
}, [fe]);
|
|
3606
|
-
_.forEach(function(Ee) {
|
|
3605
|
+
}), [fe]);
|
|
3606
|
+
_.forEach((function(Ee) {
|
|
3607
3607
|
var Je = Ee.id, vt = Ee.accessor, qe = Ee.defaultCanFilter, Ke = Ee.disableFilters;
|
|
3608
3608
|
Ee.canFilter = vt ? _e(Ke !== !0 && void 0, ge !== !0 && void 0, !0) : _e(qe, te, !1), Ee.setFilter = function(et) {
|
|
3609
3609
|
return Ce(Ee.id, et);
|
|
3610
3610
|
};
|
|
3611
|
-
var Pt = ue.find(function(et) {
|
|
3611
|
+
var Pt = ue.find((function(et) {
|
|
3612
3612
|
return et.id === Je;
|
|
3613
|
-
});
|
|
3613
|
+
}));
|
|
3614
3614
|
Ee.filterValue = Pt && Pt.value;
|
|
3615
|
-
});
|
|
3616
|
-
var ke = i.useMemo(function() {
|
|
3615
|
+
}));
|
|
3616
|
+
var ke = i.useMemo((function() {
|
|
3617
3617
|
if (q || !ue.length) return [f, p, C];
|
|
3618
3618
|
var Ee = [], Je = {};
|
|
3619
|
-
return [function vt(qe, Ke) {
|
|
3619
|
+
return [(function vt(qe, Ke) {
|
|
3620
3620
|
Ke === void 0 && (Ke = 0);
|
|
3621
3621
|
var Pt = qe;
|
|
3622
|
-
return (Pt = ue.reduce(function(et, Ct) {
|
|
3623
|
-
var r = Ct.id, l = Ct.value, c = _.find(function(x) {
|
|
3622
|
+
return (Pt = ue.reduce((function(et, Ct) {
|
|
3623
|
+
var r = Ct.id, l = Ct.value, c = _.find((function(x) {
|
|
3624
3624
|
return x.id === r;
|
|
3625
|
-
});
|
|
3625
|
+
}));
|
|
3626
3626
|
if (!c) return et;
|
|
3627
3627
|
Ke === 0 && (c.preFilteredRows = et);
|
|
3628
3628
|
var s = ce(c.filter, R || {}, Yt);
|
|
3629
3629
|
return s ? (c.filteredRows = s(et, [r], l), c.filteredRows) : (console.warn("Could not find a valid 'column.filter' for column with the ID: " + c.id + "."), et);
|
|
3630
|
-
}, qe)).forEach(function(et) {
|
|
3630
|
+
}), qe)).forEach((function(et) {
|
|
3631
3631
|
Ee.push(et), Je[et.id] = et, et.subRows && (et.subRows = et.subRows && et.subRows.length > 0 ? vt(et.subRows, Ke + 1) : et.subRows);
|
|
3632
|
-
}), Pt;
|
|
3633
|
-
}(f), Ee, Je];
|
|
3634
|
-
}, [q, ue, f, p, C, _, R]), at = ke[0], Ve = ke[1], xe = ke[2];
|
|
3635
|
-
i.useMemo(function() {
|
|
3636
|
-
_.filter(function(Ee) {
|
|
3637
|
-
return !ue.find(function(Je) {
|
|
3632
|
+
})), Pt;
|
|
3633
|
+
})(f), Ee, Je];
|
|
3634
|
+
}), [q, ue, f, p, C, _, R]), at = ke[0], Ve = ke[1], xe = ke[2];
|
|
3635
|
+
i.useMemo((function() {
|
|
3636
|
+
_.filter((function(Ee) {
|
|
3637
|
+
return !ue.find((function(Je) {
|
|
3638
3638
|
return Je.id === Ee.id;
|
|
3639
|
-
});
|
|
3640
|
-
}).forEach(function(Ee) {
|
|
3639
|
+
}));
|
|
3640
|
+
})).forEach((function(Ee) {
|
|
3641
3641
|
Ee.preFilteredRows = at, Ee.filteredRows = at;
|
|
3642
|
-
});
|
|
3643
|
-
}, [at, ue, _]);
|
|
3642
|
+
}));
|
|
3643
|
+
}), [at, ue, _]);
|
|
3644
3644
|
var rt = b(de);
|
|
3645
|
-
B(function() {
|
|
3645
|
+
B((function() {
|
|
3646
3646
|
rt() && fe({ type: h.resetFilters });
|
|
3647
|
-
}, [fe, q ? null : o]), Object.assign(t, { preFilteredRows: f, preFilteredFlatRows: p, preFilteredRowsById: C, filteredRows: at, filteredFlatRows: Ve, filteredRowsById: xe, rows: at, flatRows: Ve, rowsById: xe, setFilter: Ce, setAllFilters: Se });
|
|
3647
|
+
}), [fe, q ? null : o]), Object.assign(t, { preFilteredRows: f, preFilteredFlatRows: p, preFilteredRowsById: C, filteredRows: at, filteredFlatRows: Ve, filteredRowsById: xe, rows: at, flatRows: Ve, rowsById: xe, setFilter: Ce, setAllFilters: Se });
|
|
3648
3648
|
}
|
|
3649
3649
|
Ut.pluginName = "useFilters", h.resetGlobalFilter = "resetGlobalFilter", h.setGlobalFilter = "setGlobalFilter";
|
|
3650
3650
|
var ve = function(t) {
|
|
@@ -3658,59 +3658,59 @@ function Ds() {
|
|
|
3658
3658
|
}
|
|
3659
3659
|
}
|
|
3660
3660
|
function qt(t) {
|
|
3661
|
-
var o = t.data, f = t.rows, p = t.flatRows, C = t.rowsById, _ = t.allColumns, R = t.filterTypes, q = t.globalFilter, K = t.manualGlobalFilter, te = t.state.globalFilter, ge = t.dispatch, ue = t.autoResetGlobalFilter, fe = ue === void 0 || ue, ae = t.disableGlobalFilter, de = i.useCallback(function(xe) {
|
|
3661
|
+
var o = t.data, f = t.rows, p = t.flatRows, C = t.rowsById, _ = t.allColumns, R = t.filterTypes, q = t.globalFilter, K = t.manualGlobalFilter, te = t.state.globalFilter, ge = t.dispatch, ue = t.autoResetGlobalFilter, fe = ue === void 0 || ue, ae = t.disableGlobalFilter, de = i.useCallback((function(xe) {
|
|
3662
3662
|
ge({ type: h.setGlobalFilter, filterValue: xe });
|
|
3663
|
-
}, [ge]), Ce = i.useMemo(function() {
|
|
3663
|
+
}), [ge]), Ce = i.useMemo((function() {
|
|
3664
3664
|
if (K || te === void 0) return [f, p, C];
|
|
3665
3665
|
var xe = [], rt = {}, Ee = ce(q, R || {}, Yt);
|
|
3666
3666
|
if (!Ee) return console.warn("Could not find a valid 'globalFilter' option."), f;
|
|
3667
|
-
_.forEach(function(vt) {
|
|
3667
|
+
_.forEach((function(vt) {
|
|
3668
3668
|
var qe = vt.disableGlobalFilter;
|
|
3669
3669
|
vt.canFilter = _e(qe !== !0 && void 0, ae !== !0 && void 0, !0);
|
|
3670
|
-
});
|
|
3671
|
-
var Je = _.filter(function(vt) {
|
|
3670
|
+
}));
|
|
3671
|
+
var Je = _.filter((function(vt) {
|
|
3672
3672
|
return vt.canFilter === !0;
|
|
3673
|
-
});
|
|
3674
|
-
return [function vt(qe) {
|
|
3675
|
-
return (qe = Ee(qe, Je.map(function(Ke) {
|
|
3673
|
+
}));
|
|
3674
|
+
return [(function vt(qe) {
|
|
3675
|
+
return (qe = Ee(qe, Je.map((function(Ke) {
|
|
3676
3676
|
return Ke.id;
|
|
3677
|
-
}), te)).forEach(function(Ke) {
|
|
3677
|
+
})), te)).forEach((function(Ke) {
|
|
3678
3678
|
xe.push(Ke), rt[Ke.id] = Ke, Ke.subRows = Ke.subRows && Ke.subRows.length ? vt(Ke.subRows) : Ke.subRows;
|
|
3679
|
-
}), qe;
|
|
3680
|
-
}(f), xe, rt];
|
|
3681
|
-
}, [K, te, q, R, _, f, p, C, ae]), Se = Ce[0], ke = Ce[1], at = Ce[2], Ve = b(fe);
|
|
3682
|
-
B(function() {
|
|
3679
|
+
})), qe;
|
|
3680
|
+
})(f), xe, rt];
|
|
3681
|
+
}), [K, te, q, R, _, f, p, C, ae]), Se = Ce[0], ke = Ce[1], at = Ce[2], Ve = b(fe);
|
|
3682
|
+
B((function() {
|
|
3683
3683
|
Ve() && ge({ type: h.resetGlobalFilter });
|
|
3684
|
-
}, [ge, K ? null : o]), Object.assign(t, { preGlobalFilteredRows: f, preGlobalFilteredFlatRows: p, preGlobalFilteredRowsById: C, globalFilteredRows: Se, globalFilteredFlatRows: ke, globalFilteredRowsById: at, rows: Se, flatRows: ke, rowsById: at, setGlobalFilter: de, disableGlobalFilter: ae });
|
|
3684
|
+
}), [ge, K ? null : o]), Object.assign(t, { preGlobalFilteredRows: f, preGlobalFilteredFlatRows: p, preGlobalFilteredRowsById: C, globalFilteredRows: Se, globalFilteredFlatRows: ke, globalFilteredRowsById: at, rows: Se, flatRows: ke, rowsById: at, setGlobalFilter: de, disableGlobalFilter: ae });
|
|
3685
3685
|
}
|
|
3686
3686
|
function tr(t, o) {
|
|
3687
|
-
return o.reduce(function(f, p) {
|
|
3687
|
+
return o.reduce((function(f, p) {
|
|
3688
3688
|
return f + (typeof p == "number" ? p : 0);
|
|
3689
|
-
}, 0);
|
|
3689
|
+
}), 0);
|
|
3690
3690
|
}
|
|
3691
3691
|
ve.pluginName = "useGlobalFilter";
|
|
3692
3692
|
var lr = Object.freeze({ __proto__: null, sum: tr, min: function(t) {
|
|
3693
3693
|
var o = t[0] || 0;
|
|
3694
|
-
return t.forEach(function(f) {
|
|
3694
|
+
return t.forEach((function(f) {
|
|
3695
3695
|
typeof f == "number" && (o = Math.min(o, f));
|
|
3696
|
-
}), o;
|
|
3696
|
+
})), o;
|
|
3697
3697
|
}, max: function(t) {
|
|
3698
3698
|
var o = t[0] || 0;
|
|
3699
|
-
return t.forEach(function(f) {
|
|
3699
|
+
return t.forEach((function(f) {
|
|
3700
3700
|
typeof f == "number" && (o = Math.max(o, f));
|
|
3701
|
-
}), o;
|
|
3701
|
+
})), o;
|
|
3702
3702
|
}, minMax: function(t) {
|
|
3703
3703
|
var o = t[0] || 0, f = t[0] || 0;
|
|
3704
|
-
return t.forEach(function(p) {
|
|
3704
|
+
return t.forEach((function(p) {
|
|
3705
3705
|
typeof p == "number" && (o = Math.min(o, p), f = Math.max(f, p));
|
|
3706
|
-
}), o + ".." + f;
|
|
3706
|
+
})), o + ".." + f;
|
|
3707
3707
|
}, average: function(t) {
|
|
3708
3708
|
return tr(0, t) / t.length;
|
|
3709
3709
|
}, median: function(t) {
|
|
3710
3710
|
if (!t.length) return null;
|
|
3711
|
-
var o = Math.floor(t.length / 2), f = [].concat(t).sort(function(p, C) {
|
|
3711
|
+
var o = Math.floor(t.length / 2), f = [].concat(t).sort((function(p, C) {
|
|
3712
3712
|
return p - C;
|
|
3713
|
-
});
|
|
3713
|
+
}));
|
|
3714
3714
|
return t.length % 2 != 0 ? f[o] : (f[o - 1] + f[o]) / 2;
|
|
3715
3715
|
}, unique: function(t) {
|
|
3716
3716
|
return Array.from(new Set(t).values());
|
|
@@ -3721,10 +3721,10 @@ function Ds() {
|
|
|
3721
3721
|
} }), dr = [], Hr = {};
|
|
3722
3722
|
h.resetGroupBy = "resetGroupBy", h.setGroupBy = "setGroupBy", h.toggleGroupBy = "toggleGroupBy";
|
|
3723
3723
|
var zr = function(t) {
|
|
3724
|
-
t.getGroupByToggleProps = [fl], t.stateReducers.push(Tr), t.visibleColumnsDeps.push(function(o, f) {
|
|
3724
|
+
t.getGroupByToggleProps = [fl], t.stateReducers.push(Tr), t.visibleColumnsDeps.push((function(o, f) {
|
|
3725
3725
|
var p = f.instance;
|
|
3726
3726
|
return [].concat(o, [p.state.groupBy]);
|
|
3727
|
-
}), t.visibleColumns.push(hl), t.useInstance.push(Kl), t.prepareRow.push(pl);
|
|
3727
|
+
})), t.visibleColumns.push(hl), t.useInstance.push(Kl), t.prepareRow.push(pl);
|
|
3728
3728
|
};
|
|
3729
3729
|
zr.pluginName = "useGroupBy";
|
|
3730
3730
|
var fl = function(t, o) {
|
|
@@ -3739,64 +3739,64 @@ function Ds() {
|
|
|
3739
3739
|
if (o.type === h.setGroupBy) return a({}, t, { groupBy: o.value });
|
|
3740
3740
|
if (o.type === h.toggleGroupBy) {
|
|
3741
3741
|
var C = o.columnId, _ = o.value, R = _ !== void 0 ? _ : !t.groupBy.includes(C);
|
|
3742
|
-
return a({}, t, R ? { groupBy: [].concat(t.groupBy, [C]) } : { groupBy: t.groupBy.filter(function(q) {
|
|
3742
|
+
return a({}, t, R ? { groupBy: [].concat(t.groupBy, [C]) } : { groupBy: t.groupBy.filter((function(q) {
|
|
3743
3743
|
return q !== C;
|
|
3744
|
-
}) });
|
|
3744
|
+
})) });
|
|
3745
3745
|
}
|
|
3746
3746
|
}
|
|
3747
3747
|
function hl(t, o) {
|
|
3748
|
-
var f = o.instance.state.groupBy, p = f.map(function(_) {
|
|
3749
|
-
return t.find(function(R) {
|
|
3748
|
+
var f = o.instance.state.groupBy, p = f.map((function(_) {
|
|
3749
|
+
return t.find((function(R) {
|
|
3750
3750
|
return R.id === _;
|
|
3751
|
-
});
|
|
3752
|
-
}).filter(Boolean), C = t.filter(function(_) {
|
|
3751
|
+
}));
|
|
3752
|
+
})).filter(Boolean), C = t.filter((function(_) {
|
|
3753
3753
|
return !f.includes(_.id);
|
|
3754
|
-
});
|
|
3755
|
-
return (t = [].concat(p, C)).forEach(function(_) {
|
|
3754
|
+
}));
|
|
3755
|
+
return (t = [].concat(p, C)).forEach((function(_) {
|
|
3756
3756
|
_.isGrouped = f.includes(_.id), _.groupedIndex = f.indexOf(_.id);
|
|
3757
|
-
}), t;
|
|
3757
|
+
})), t;
|
|
3758
3758
|
}
|
|
3759
3759
|
var Zl = {};
|
|
3760
3760
|
function Kl(t) {
|
|
3761
3761
|
var o = t.data, f = t.rows, p = t.flatRows, C = t.rowsById, _ = t.allColumns, R = t.flatHeaders, q = t.groupByFn, K = q === void 0 ? ml : q, te = t.manualGroupBy, ge = t.aggregations, ue = ge === void 0 ? Zl : ge, fe = t.plugins, ae = t.state.groupBy, de = t.dispatch, Ce = t.autoResetGroupBy, Se = Ce === void 0 || Ce, ke = t.disableGroupBy, at = t.defaultCanGroupBy, Ve = t.getHooks;
|
|
3762
3762
|
P(fe, ["useColumnOrder", "useFilters"], "useGroupBy");
|
|
3763
3763
|
var xe = b(t);
|
|
3764
|
-
_.forEach(function(c) {
|
|
3764
|
+
_.forEach((function(c) {
|
|
3765
3765
|
var s = c.accessor, x = c.defaultGroupBy, y = c.disableGroupBy;
|
|
3766
3766
|
c.canGroupBy = s ? _e(c.canGroupBy, y !== !0 && void 0, ke !== !0 && void 0, !0) : _e(c.canGroupBy, x, at, !1), c.canGroupBy && (c.toggleGroupBy = function() {
|
|
3767
3767
|
return t.toggleGroupBy(c.id);
|
|
3768
3768
|
}), c.Aggregated = c.Aggregated || c.Cell;
|
|
3769
|
-
});
|
|
3770
|
-
var rt = i.useCallback(function(c, s) {
|
|
3769
|
+
}));
|
|
3770
|
+
var rt = i.useCallback((function(c, s) {
|
|
3771
3771
|
de({ type: h.toggleGroupBy, columnId: c, value: s });
|
|
3772
|
-
}, [de]), Ee = i.useCallback(function(c) {
|
|
3772
|
+
}), [de]), Ee = i.useCallback((function(c) {
|
|
3773
3773
|
de({ type: h.setGroupBy, value: c });
|
|
3774
|
-
}, [de]);
|
|
3775
|
-
R.forEach(function(c) {
|
|
3774
|
+
}), [de]);
|
|
3775
|
+
R.forEach((function(c) {
|
|
3776
3776
|
c.getGroupByToggleProps = W(Ve().getGroupByToggleProps, { instance: xe(), header: c });
|
|
3777
|
-
});
|
|
3778
|
-
var Je = i.useMemo(function() {
|
|
3777
|
+
}));
|
|
3778
|
+
var Je = i.useMemo((function() {
|
|
3779
3779
|
if (te || !ae.length) return [f, p, C, dr, Hr, p, C];
|
|
3780
|
-
var c = ae.filter(function(re) {
|
|
3781
|
-
return _.find(function(ye) {
|
|
3780
|
+
var c = ae.filter((function(re) {
|
|
3781
|
+
return _.find((function(ye) {
|
|
3782
3782
|
return ye.id === re;
|
|
3783
|
-
});
|
|
3784
|
-
}), s = [], x = {}, y = [], m = {}, j = [], F = {}, $ = function re(ye, oe, pe) {
|
|
3785
|
-
if (oe === void 0 && (oe = 0), oe === c.length) return ye.map(function(Ge) {
|
|
3783
|
+
}));
|
|
3784
|
+
})), s = [], x = {}, y = [], m = {}, j = [], F = {}, $ = (function re(ye, oe, pe) {
|
|
3785
|
+
if (oe === void 0 && (oe = 0), oe === c.length) return ye.map((function(Ge) {
|
|
3786
3786
|
return a({}, Ge, { depth: oe });
|
|
3787
|
-
});
|
|
3787
|
+
}));
|
|
3788
3788
|
var be = c[oe], ie = K(ye, be);
|
|
3789
|
-
return Object.entries(ie).map(function(Ge, ze) {
|
|
3790
|
-
var Ze = Ge[0], je = Ge[1], lt = be + ":" + Ze, ft = re(je, oe + 1, lt = pe ? pe + ">" + lt : lt), Ne = oe ? he(je, "leafRows") : je, Re = function(Oe, nt, ot) {
|
|
3789
|
+
return Object.entries(ie).map((function(Ge, ze) {
|
|
3790
|
+
var Ze = Ge[0], je = Ge[1], lt = be + ":" + Ze, ft = re(je, oe + 1, lt = pe ? pe + ">" + lt : lt), Ne = oe ? he(je, "leafRows") : je, Re = (function(Oe, nt, ot) {
|
|
3791
3791
|
var Tt = {};
|
|
3792
|
-
return _.forEach(function(Me) {
|
|
3792
|
+
return _.forEach((function(Me) {
|
|
3793
3793
|
if (c.includes(Me.id)) Tt[Me.id] = nt[0] ? nt[0].values[Me.id] : null;
|
|
3794
3794
|
else {
|
|
3795
3795
|
var Jt = typeof Me.aggregate == "function" ? Me.aggregate : ue[Me.aggregate] || lr[Me.aggregate];
|
|
3796
3796
|
if (Jt) {
|
|
3797
|
-
var ct = nt.map(function(Qe) {
|
|
3797
|
+
var ct = nt.map((function(Qe) {
|
|
3798
3798
|
return Qe.values[Me.id];
|
|
3799
|
-
}), Xe = Oe.map(function(Qe) {
|
|
3799
|
+
})), Xe = Oe.map((function(Qe) {
|
|
3800
3800
|
var Gt = Qe.values[Me.id];
|
|
3801
3801
|
if (!ot && Me.aggregateValue) {
|
|
3802
3802
|
var er = typeof Me.aggregateValue == "function" ? Me.aggregateValue : ue[Me.aggregateValue] || lr[Me.aggregateValue];
|
|
@@ -3804,39 +3804,39 @@ function Ds() {
|
|
|
3804
3804
|
Gt = er(Gt, Qe, Me);
|
|
3805
3805
|
}
|
|
3806
3806
|
return Gt;
|
|
3807
|
-
});
|
|
3807
|
+
}));
|
|
3808
3808
|
Tt[Me.id] = Jt(Xe, ct);
|
|
3809
3809
|
} else {
|
|
3810
3810
|
if (Me.aggregate) throw console.info({ column: Me }), new Error("React Table: Invalid column.aggregate option for column listed above");
|
|
3811
3811
|
Tt[Me.id] = null;
|
|
3812
3812
|
}
|
|
3813
3813
|
}
|
|
3814
|
-
}), Tt;
|
|
3815
|
-
}(Ne, je, oe), De = { id: lt, isGrouped: !0, groupByID: be, groupByVal: Ze, values: Re, subRows: ft, leafRows: Ne, depth: oe, index: ze };
|
|
3816
|
-
return ft.forEach(function(Oe) {
|
|
3814
|
+
})), Tt;
|
|
3815
|
+
})(Ne, je, oe), De = { id: lt, isGrouped: !0, groupByID: be, groupByVal: Ze, values: Re, subRows: ft, leafRows: Ne, depth: oe, index: ze };
|
|
3816
|
+
return ft.forEach((function(Oe) {
|
|
3817
3817
|
s.push(Oe), x[Oe.id] = Oe, Oe.isGrouped ? (y.push(Oe), m[Oe.id] = Oe) : (j.push(Oe), F[Oe.id] = Oe);
|
|
3818
|
-
}), De;
|
|
3819
|
-
});
|
|
3820
|
-
}(f);
|
|
3821
|
-
return $.forEach(function(re) {
|
|
3818
|
+
})), De;
|
|
3819
|
+
}));
|
|
3820
|
+
})(f);
|
|
3821
|
+
return $.forEach((function(re) {
|
|
3822
3822
|
s.push(re), x[re.id] = re, re.isGrouped ? (y.push(re), m[re.id] = re) : (j.push(re), F[re.id] = re);
|
|
3823
|
-
}), [$, s, x, y, m, j, F];
|
|
3824
|
-
}, [te, ae, f, p, C, _, ue, K]), vt = Je[0], qe = Je[1], Ke = Je[2], Pt = Je[3], et = Je[4], Ct = Je[5], r = Je[6], l = b(Se);
|
|
3825
|
-
B(function() {
|
|
3823
|
+
})), [$, s, x, y, m, j, F];
|
|
3824
|
+
}), [te, ae, f, p, C, _, ue, K]), vt = Je[0], qe = Je[1], Ke = Je[2], Pt = Je[3], et = Je[4], Ct = Je[5], r = Je[6], l = b(Se);
|
|
3825
|
+
B((function() {
|
|
3826
3826
|
l() && de({ type: h.resetGroupBy });
|
|
3827
|
-
}, [de, te ? null : o]), Object.assign(t, { preGroupedRows: f, preGroupedFlatRow: p, preGroupedRowsById: C, groupedRows: vt, groupedFlatRows: qe, groupedRowsById: Ke, onlyGroupedFlatRows: Pt, onlyGroupedRowsById: et, nonGroupedFlatRows: Ct, nonGroupedRowsById: r, rows: vt, flatRows: qe, rowsById: Ke, toggleGroupBy: rt, setGroupBy: Ee });
|
|
3827
|
+
}), [de, te ? null : o]), Object.assign(t, { preGroupedRows: f, preGroupedFlatRow: p, preGroupedRowsById: C, groupedRows: vt, groupedFlatRows: qe, groupedRowsById: Ke, onlyGroupedFlatRows: Pt, onlyGroupedRowsById: et, nonGroupedFlatRows: Ct, nonGroupedRowsById: r, rows: vt, flatRows: qe, rowsById: Ke, toggleGroupBy: rt, setGroupBy: Ee });
|
|
3828
3828
|
}
|
|
3829
3829
|
function pl(t) {
|
|
3830
|
-
t.allCells.forEach(function(o) {
|
|
3830
|
+
t.allCells.forEach((function(o) {
|
|
3831
3831
|
var f;
|
|
3832
3832
|
o.isGrouped = o.column.isGrouped && o.column.id === t.groupByID, o.isPlaceholder = !o.isGrouped && o.column.isGrouped, o.isAggregated = !o.isGrouped && !o.isPlaceholder && ((f = t.subRows) == null ? void 0 : f.length);
|
|
3833
|
-
});
|
|
3833
|
+
}));
|
|
3834
3834
|
}
|
|
3835
3835
|
function ml(t, o) {
|
|
3836
|
-
return t.reduce(function(f, p, C) {
|
|
3836
|
+
return t.reduce((function(f, p, C) {
|
|
3837
3837
|
var _ = "" + p.values[o];
|
|
3838
3838
|
return f[_] = Array.isArray(f[_]) ? f[_] : [], f[_].push(p), f;
|
|
3839
|
-
}, {});
|
|
3839
|
+
}), {});
|
|
3840
3840
|
}
|
|
3841
3841
|
var gl = /([0-9]+)/gm;
|
|
3842
3842
|
function Lr(t, o) {
|
|
@@ -3898,88 +3898,88 @@ function Ds() {
|
|
|
3898
3898
|
function Ql(t, o, f, p) {
|
|
3899
3899
|
if (o.type === h.init) return a({ sortBy: [] }, t);
|
|
3900
3900
|
if (o.type === h.resetSortBy) return a({}, t, { sortBy: p.initialState.sortBy || [] });
|
|
3901
|
-
if (o.type === h.clearSortBy) return a({}, t, { sortBy: t.sortBy.filter(function(xe) {
|
|
3901
|
+
if (o.type === h.clearSortBy) return a({}, t, { sortBy: t.sortBy.filter((function(xe) {
|
|
3902
3902
|
return xe.id !== o.columnId;
|
|
3903
|
-
}) });
|
|
3903
|
+
})) });
|
|
3904
3904
|
if (o.type === h.setSortBy) return a({}, t, { sortBy: o.sortBy });
|
|
3905
3905
|
if (o.type === h.toggleSortBy) {
|
|
3906
|
-
var C, _ = o.columnId, R = o.desc, q = o.multi, K = p.allColumns, te = p.disableMultiSort, ge = p.disableSortRemove, ue = p.disableMultiRemove, fe = p.maxMultiSortColCount, ae = fe === void 0 ? Number.MAX_SAFE_INTEGER : fe, de = t.sortBy, Ce = K.find(function(xe) {
|
|
3906
|
+
var C, _ = o.columnId, R = o.desc, q = o.multi, K = p.allColumns, te = p.disableMultiSort, ge = p.disableSortRemove, ue = p.disableMultiRemove, fe = p.maxMultiSortColCount, ae = fe === void 0 ? Number.MAX_SAFE_INTEGER : fe, de = t.sortBy, Ce = K.find((function(xe) {
|
|
3907
3907
|
return xe.id === _;
|
|
3908
|
-
}).sortDescFirst, Se = de.find(function(xe) {
|
|
3908
|
+
})).sortDescFirst, Se = de.find((function(xe) {
|
|
3909
3909
|
return xe.id === _;
|
|
3910
|
-
}), ke = de.findIndex(function(xe) {
|
|
3910
|
+
})), ke = de.findIndex((function(xe) {
|
|
3911
3911
|
return xe.id === _;
|
|
3912
|
-
}), at = R != null, Ve = [];
|
|
3913
|
-
return (C = !te && q ? Se ? "toggle" : "add" : ke !== de.length - 1 || de.length !== 1 ? "replace" : Se ? "toggle" : "replace") != "toggle" || ge || at || q && ue || !(Se && Se.desc && !Ce || !Se.desc && Ce) || (C = "remove"), C === "replace" ? Ve = [{ id: _, desc: at ? R : Ce }] : C === "add" ? (Ve = [].concat(de, [{ id: _, desc: at ? R : Ce }])).splice(0, Ve.length - ae) : C === "toggle" ? Ve = de.map(function(xe) {
|
|
3912
|
+
})), at = R != null, Ve = [];
|
|
3913
|
+
return (C = !te && q ? Se ? "toggle" : "add" : ke !== de.length - 1 || de.length !== 1 ? "replace" : Se ? "toggle" : "replace") != "toggle" || ge || at || q && ue || !(Se && Se.desc && !Ce || !Se.desc && Ce) || (C = "remove"), C === "replace" ? Ve = [{ id: _, desc: at ? R : Ce }] : C === "add" ? (Ve = [].concat(de, [{ id: _, desc: at ? R : Ce }])).splice(0, Ve.length - ae) : C === "toggle" ? Ve = de.map((function(xe) {
|
|
3914
3914
|
return xe.id === _ ? a({}, xe, { desc: at ? R : !Se.desc }) : xe;
|
|
3915
|
-
}) : C === "remove" && (Ve = de.filter(function(xe) {
|
|
3915
|
+
})) : C === "remove" && (Ve = de.filter((function(xe) {
|
|
3916
3916
|
return xe.id !== _;
|
|
3917
|
-
})), a({}, t, { sortBy: Ve });
|
|
3917
|
+
}))), a({}, t, { sortBy: Ve });
|
|
3918
3918
|
}
|
|
3919
3919
|
}
|
|
3920
3920
|
function ea(t) {
|
|
3921
3921
|
var o = t.data, f = t.rows, p = t.flatRows, C = t.allColumns, _ = t.orderByFn, R = _ === void 0 ? _l : _, q = t.sortTypes, K = t.manualSortBy, te = t.defaultCanSort, ge = t.disableSortBy, ue = t.flatHeaders, fe = t.state.sortBy, ae = t.dispatch, de = t.plugins, Ce = t.getHooks, Se = t.autoResetSortBy, ke = Se === void 0 || Se;
|
|
3922
3922
|
P(de, ["useFilters", "useGlobalFilter", "useGroupBy", "usePivotColumns"], "useSortBy");
|
|
3923
|
-
var at = i.useCallback(function(qe) {
|
|
3923
|
+
var at = i.useCallback((function(qe) {
|
|
3924
3924
|
ae({ type: h.setSortBy, sortBy: qe });
|
|
3925
|
-
}, [ae]), Ve = i.useCallback(function(qe, Ke, Pt) {
|
|
3925
|
+
}), [ae]), Ve = i.useCallback((function(qe, Ke, Pt) {
|
|
3926
3926
|
ae({ type: h.toggleSortBy, columnId: qe, desc: Ke, multi: Pt });
|
|
3927
|
-
}, [ae]), xe = b(t);
|
|
3928
|
-
ue.forEach(function(qe) {
|
|
3927
|
+
}), [ae]), xe = b(t);
|
|
3928
|
+
ue.forEach((function(qe) {
|
|
3929
3929
|
var Ke = qe.accessor, Pt = qe.canSort, et = qe.disableSortBy, Ct = qe.id, r = Ke ? _e(et !== !0 && void 0, ge !== !0 && void 0, !0) : _e(te, Pt, !1);
|
|
3930
3930
|
qe.canSort = r, qe.canSort && (qe.toggleSortBy = function(c, s) {
|
|
3931
3931
|
return Ve(qe.id, c, s);
|
|
3932
3932
|
}, qe.clearSortBy = function() {
|
|
3933
3933
|
ae({ type: h.clearSortBy, columnId: qe.id });
|
|
3934
3934
|
}), qe.getSortByToggleProps = W(Ce().getSortByToggleProps, { instance: xe(), column: qe });
|
|
3935
|
-
var l = fe.find(function(c) {
|
|
3935
|
+
var l = fe.find((function(c) {
|
|
3936
3936
|
return c.id === Ct;
|
|
3937
|
-
});
|
|
3938
|
-
qe.isSorted = !!l, qe.sortedIndex = fe.findIndex(function(c) {
|
|
3937
|
+
}));
|
|
3938
|
+
qe.isSorted = !!l, qe.sortedIndex = fe.findIndex((function(c) {
|
|
3939
3939
|
return c.id === Ct;
|
|
3940
|
-
}), qe.isSortedDesc = qe.isSorted ? l.desc : void 0;
|
|
3941
|
-
});
|
|
3942
|
-
var rt = i.useMemo(function() {
|
|
3940
|
+
})), qe.isSortedDesc = qe.isSorted ? l.desc : void 0;
|
|
3941
|
+
}));
|
|
3942
|
+
var rt = i.useMemo((function() {
|
|
3943
3943
|
if (K || !fe.length) return [f, p];
|
|
3944
|
-
var qe = [], Ke = fe.filter(function(Pt) {
|
|
3945
|
-
return C.find(function(et) {
|
|
3944
|
+
var qe = [], Ke = fe.filter((function(Pt) {
|
|
3945
|
+
return C.find((function(et) {
|
|
3946
3946
|
return et.id === Pt.id;
|
|
3947
|
-
});
|
|
3948
|
-
});
|
|
3949
|
-
return [function Pt(et) {
|
|
3950
|
-
var Ct = R(et, Ke.map(function(r) {
|
|
3951
|
-
var l = C.find(function(x) {
|
|
3947
|
+
}));
|
|
3948
|
+
}));
|
|
3949
|
+
return [(function Pt(et) {
|
|
3950
|
+
var Ct = R(et, Ke.map((function(r) {
|
|
3951
|
+
var l = C.find((function(x) {
|
|
3952
3952
|
return x.id === r.id;
|
|
3953
|
-
});
|
|
3953
|
+
}));
|
|
3954
3954
|
if (!l) throw new Error("React-Table: Could not find a column with id: " + r.id + " while sorting");
|
|
3955
3955
|
var c = l.sortType, s = tt(c) || (q || {})[c] || Xl[c];
|
|
3956
3956
|
if (!s) throw new Error("React-Table: Could not find a valid sortType of '" + c + "' for column '" + r.id + "'.");
|
|
3957
3957
|
return function(x, y) {
|
|
3958
3958
|
return s(x, y, r.id, r.desc);
|
|
3959
3959
|
};
|
|
3960
|
-
}), Ke.map(function(r) {
|
|
3961
|
-
var l = C.find(function(c) {
|
|
3960
|
+
})), Ke.map((function(r) {
|
|
3961
|
+
var l = C.find((function(c) {
|
|
3962
3962
|
return c.id === r.id;
|
|
3963
|
-
});
|
|
3963
|
+
}));
|
|
3964
3964
|
return l && l.sortInverted ? r.desc : !r.desc;
|
|
3965
|
-
}));
|
|
3966
|
-
return Ct.forEach(function(r) {
|
|
3965
|
+
})));
|
|
3966
|
+
return Ct.forEach((function(r) {
|
|
3967
3967
|
qe.push(r), r.subRows && r.subRows.length !== 0 && (r.subRows = Pt(r.subRows));
|
|
3968
|
-
}), Ct;
|
|
3969
|
-
}(f), qe];
|
|
3970
|
-
}, [K, fe, f, p, C, R, q]), Ee = rt[0], Je = rt[1], vt = b(ke);
|
|
3971
|
-
B(function() {
|
|
3968
|
+
})), Ct;
|
|
3969
|
+
})(f), qe];
|
|
3970
|
+
}), [K, fe, f, p, C, R, q]), Ee = rt[0], Je = rt[1], vt = b(ke);
|
|
3971
|
+
B((function() {
|
|
3972
3972
|
vt() && ae({ type: h.resetSortBy });
|
|
3973
|
-
}, [K ? null : o]), Object.assign(t, { preSortedRows: f, preSortedFlatRows: p, sortedRows: Ee, sortedFlatRows: Je, rows: Ee, flatRows: Je, setSortBy: at, toggleSortBy: Ve });
|
|
3973
|
+
}), [K ? null : o]), Object.assign(t, { preSortedRows: f, preSortedFlatRows: p, sortedRows: Ee, sortedFlatRows: Je, rows: Ee, flatRows: Je, setSortBy: at, toggleSortBy: Ve });
|
|
3974
3974
|
}
|
|
3975
3975
|
function _l(t, o, f) {
|
|
3976
|
-
return [].concat(t).sort(function(p, C) {
|
|
3976
|
+
return [].concat(t).sort((function(p, C) {
|
|
3977
3977
|
for (var _ = 0; _ < o.length; _ += 1) {
|
|
3978
3978
|
var R = o[_], q = f[_] === !1 || f[_] === "desc", K = R(p, C);
|
|
3979
3979
|
if (K !== 0) return q ? -K : K;
|
|
3980
3980
|
}
|
|
3981
3981
|
return f[0] ? p.index - C.index : C.index - p.index;
|
|
3982
|
-
});
|
|
3982
|
+
}));
|
|
3983
3983
|
}
|
|
3984
3984
|
h.resetPage = "resetPage", h.gotoPage = "gotoPage", h.setPageSize = "setPageSize";
|
|
3985
3985
|
var Yr = function(t) {
|
|
@@ -4001,14 +4001,14 @@ function Ds() {
|
|
|
4001
4001
|
var o = t.rows, f = t.autoResetPage, p = f === void 0 || f, C = t.manualExpandedKey, _ = C === void 0 ? "expanded" : C, R = t.plugins, q = t.pageCount, K = t.paginateExpandedRows, te = K === void 0 || K, ge = t.expandSubRows, ue = ge === void 0 || ge, fe = t.state, ae = fe.pageSize, de = fe.pageIndex, Ce = fe.expanded, Se = fe.globalFilter, ke = fe.filters, at = fe.groupBy, Ve = fe.sortBy, xe = t.dispatch, rt = t.data, Ee = t.manualPagination;
|
|
4002
4002
|
P(R, ["useGlobalFilter", "useFilters", "useGroupBy", "useSortBy", "useExpanded"], "usePagination");
|
|
4003
4003
|
var Je = b(p);
|
|
4004
|
-
B(function() {
|
|
4004
|
+
B((function() {
|
|
4005
4005
|
Je() && xe({ type: h.resetPage });
|
|
4006
|
-
}, [xe, Ee ? null : rt, Se, ke, at, Ve]);
|
|
4007
|
-
var vt = Ee ? q : Math.ceil(o.length / ae), qe = i.useMemo(function() {
|
|
4008
|
-
return vt > 0 ? [].concat(new Array(vt)).fill(null).map(function(s, x) {
|
|
4006
|
+
}), [xe, Ee ? null : rt, Se, ke, at, Ve]);
|
|
4007
|
+
var vt = Ee ? q : Math.ceil(o.length / ae), qe = i.useMemo((function() {
|
|
4008
|
+
return vt > 0 ? [].concat(new Array(vt)).fill(null).map((function(s, x) {
|
|
4009
4009
|
return x;
|
|
4010
|
-
}) : [];
|
|
4011
|
-
}, [vt]), Ke = i.useMemo(function() {
|
|
4010
|
+
})) : [];
|
|
4011
|
+
}), [vt]), Ke = i.useMemo((function() {
|
|
4012
4012
|
var s;
|
|
4013
4013
|
if (Ee) s = o;
|
|
4014
4014
|
else {
|
|
@@ -4016,19 +4016,19 @@ function Ds() {
|
|
|
4016
4016
|
s = o.slice(x, y);
|
|
4017
4017
|
}
|
|
4018
4018
|
return te ? s : X(s, { manualExpandedKey: _, expanded: Ce, expandSubRows: ue });
|
|
4019
|
-
}, [ue, Ce, _, Ee, de, ae, te, o]), Pt = de > 0, et = vt === -1 ? Ke.length >= ae : de < vt - 1, Ct = i.useCallback(function(s) {
|
|
4019
|
+
}), [ue, Ce, _, Ee, de, ae, te, o]), Pt = de > 0, et = vt === -1 ? Ke.length >= ae : de < vt - 1, Ct = i.useCallback((function(s) {
|
|
4020
4020
|
xe({ type: h.gotoPage, pageIndex: s });
|
|
4021
|
-
}, [xe]), r = i.useCallback(function() {
|
|
4022
|
-
return Ct(function(s) {
|
|
4021
|
+
}), [xe]), r = i.useCallback((function() {
|
|
4022
|
+
return Ct((function(s) {
|
|
4023
4023
|
return s - 1;
|
|
4024
|
-
});
|
|
4025
|
-
}, [Ct]), l = i.useCallback(function() {
|
|
4026
|
-
return Ct(function(s) {
|
|
4024
|
+
}));
|
|
4025
|
+
}), [Ct]), l = i.useCallback((function() {
|
|
4026
|
+
return Ct((function(s) {
|
|
4027
4027
|
return s + 1;
|
|
4028
|
-
});
|
|
4029
|
-
}, [Ct]), c = i.useCallback(function(s) {
|
|
4028
|
+
}));
|
|
4029
|
+
}), [Ct]), c = i.useCallback((function(s) {
|
|
4030
4030
|
xe({ type: h.setPageSize, pageSize: s });
|
|
4031
|
-
}, [xe]);
|
|
4031
|
+
}), [xe]);
|
|
4032
4032
|
Object.assign(t, { pageOptions: qe, pageCount: vt, page: Ke, canPreviousPage: Pt, canNextPage: et, gotoPage: Ct, previousPage: r, nextPage: l, setPageSize: c });
|
|
4033
4033
|
}
|
|
4034
4034
|
Yr.pluginName = "usePagination", h.resetPivot = "resetPivot", h.togglePivot = "togglePivot";
|
|
@@ -4047,21 +4047,21 @@ function Ds() {
|
|
|
4047
4047
|
if (o.type === h.resetPivot) return a({}, t, { pivotColumns: p.initialState.pivotColumns || yl });
|
|
4048
4048
|
if (o.type === h.togglePivot) {
|
|
4049
4049
|
var C = o.columnId, _ = o.value, R = _ !== void 0 ? _ : !t.pivotColumns.includes(C);
|
|
4050
|
-
return a({}, t, R ? { pivotColumns: [].concat(t.pivotColumns, [C]) } : { pivotColumns: t.pivotColumns.filter(function(q) {
|
|
4050
|
+
return a({}, t, R ? { pivotColumns: [].concat(t.pivotColumns, [C]) } : { pivotColumns: t.pivotColumns.filter((function(q) {
|
|
4051
4051
|
return q !== C;
|
|
4052
|
-
}) });
|
|
4052
|
+
})) });
|
|
4053
4053
|
}
|
|
4054
4054
|
}
|
|
4055
4055
|
function na(t) {
|
|
4056
|
-
t.allColumns.forEach(function(o) {
|
|
4056
|
+
t.allColumns.forEach((function(o) {
|
|
4057
4057
|
o.isPivotSource = t.state.pivotColumns.includes(o.id);
|
|
4058
|
-
});
|
|
4058
|
+
}));
|
|
4059
4059
|
}
|
|
4060
4060
|
function ia(t, o) {
|
|
4061
4061
|
var f = o.instance;
|
|
4062
|
-
return t.forEach(function(p) {
|
|
4062
|
+
return t.forEach((function(p) {
|
|
4063
4063
|
p.isPivotSource = f.state.pivotColumns.includes(p.id), p.uniqueValues = /* @__PURE__ */ new Set();
|
|
4064
|
-
}), t;
|
|
4064
|
+
})), t;
|
|
4065
4065
|
}
|
|
4066
4066
|
function sa(t, o) {
|
|
4067
4067
|
var f = o.column;
|
|
@@ -4070,28 +4070,28 @@ function Ds() {
|
|
|
4070
4070
|
function bl(t, o) {
|
|
4071
4071
|
var f = o.instance, p = f.allColumns, C = f.state;
|
|
4072
4072
|
if (!C.pivotColumns.length || !C.groupBy || !C.groupBy.length) return t;
|
|
4073
|
-
var _ = C.pivotColumns.map(function(K) {
|
|
4074
|
-
return p.find(function(te) {
|
|
4073
|
+
var _ = C.pivotColumns.map((function(K) {
|
|
4074
|
+
return p.find((function(te) {
|
|
4075
4075
|
return te.id === K;
|
|
4076
|
-
});
|
|
4077
|
-
}).filter(Boolean), R = p.filter(function(K) {
|
|
4076
|
+
}));
|
|
4077
|
+
})).filter(Boolean), R = p.filter((function(K) {
|
|
4078
4078
|
return !K.isPivotSource && !C.groupBy.includes(K.id) && !C.pivotColumns.includes(K.id);
|
|
4079
|
-
}), q = Y(function K(te, ge, ue) {
|
|
4079
|
+
})), q = Y((function K(te, ge, ue) {
|
|
4080
4080
|
te === void 0 && (te = 0), ue === void 0 && (ue = []);
|
|
4081
4081
|
var fe = _[te];
|
|
4082
|
-
return fe ? Array.from(fe.uniqueValues).sort().map(function(ae) {
|
|
4082
|
+
return fe ? Array.from(fe.uniqueValues).sort().map((function(ae) {
|
|
4083
4083
|
var de = a({}, fe, { Header: fe.PivotHeader || typeof fe.header == "string" ? fe.Header + ": " + ae : ae, isPivotGroup: !0, parent: ge, depth: te, id: ge ? ge.id + "." + fe.id + "." + ae : fe.id + "." + ae, pivotValue: ae });
|
|
4084
4084
|
return de.columns = K(te + 1, de, [].concat(ue, [function(Ce) {
|
|
4085
4085
|
return Ce.values[fe.id] === ae;
|
|
4086
4086
|
}])), de;
|
|
4087
|
-
}) : R.map(function(ae) {
|
|
4087
|
+
})) : R.map((function(ae) {
|
|
4088
4088
|
return a({}, ae, { canPivot: !1, isPivoted: !0, parent: ge, depth: te, id: "" + (ge ? ge.id + "." + ae.id : ae.id), accessor: function(de, Ce, Se) {
|
|
4089
|
-
if (ue.every(function(ke) {
|
|
4089
|
+
if (ue.every((function(ke) {
|
|
4090
4090
|
return ke(Se);
|
|
4091
|
-
})) return Se.values[ae.id];
|
|
4091
|
+
}))) return Se.values[ae.id];
|
|
4092
4092
|
} });
|
|
4093
|
-
});
|
|
4094
|
-
}());
|
|
4093
|
+
}));
|
|
4094
|
+
})());
|
|
4095
4095
|
return [].concat(t, q);
|
|
4096
4096
|
}
|
|
4097
4097
|
function wl(t, o) {
|
|
@@ -4100,11 +4100,11 @@ function Ds() {
|
|
|
4100
4100
|
}
|
|
4101
4101
|
function oa(t, o) {
|
|
4102
4102
|
var f = o.instance.state;
|
|
4103
|
-
return t = t.filter(function(p) {
|
|
4103
|
+
return t = t.filter((function(p) {
|
|
4104
4104
|
return !p.isPivotSource;
|
|
4105
|
-
}), f.pivotColumns.length && f.groupBy && f.groupBy.length && (t = t.filter(function(p) {
|
|
4105
|
+
})), f.pivotColumns.length && f.groupBy && f.groupBy.length && (t = t.filter((function(p) {
|
|
4106
4106
|
return p.isGrouped || p.isPivoted;
|
|
4107
|
-
})), t;
|
|
4107
|
+
}))), t;
|
|
4108
4108
|
}
|
|
4109
4109
|
function ca(t, o) {
|
|
4110
4110
|
var f = o.instance;
|
|
@@ -4114,25 +4114,25 @@ function Ds() {
|
|
|
4114
4114
|
var o = t.columns, f = t.allColumns, p = t.flatHeaders, C = t.getHooks, _ = t.plugins, R = t.dispatch, q = t.autoResetPivot, K = q === void 0 || q, te = t.manaulPivot, ge = t.disablePivot, ue = t.defaultCanPivot;
|
|
4115
4115
|
P(_, ["useGroupBy"], "usePivotColumns");
|
|
4116
4116
|
var fe = b(t);
|
|
4117
|
-
f.forEach(function(de) {
|
|
4117
|
+
f.forEach((function(de) {
|
|
4118
4118
|
var Ce = de.accessor, Se = de.defaultPivot, ke = de.disablePivot;
|
|
4119
4119
|
de.canPivot = Ce ? _e(de.canPivot, ke !== !0 && void 0, ge !== !0 && void 0, !0) : _e(de.canPivot, Se, ue, !1), de.canPivot && (de.togglePivot = function() {
|
|
4120
4120
|
return t.togglePivot(de.id);
|
|
4121
4121
|
}), de.Aggregated = de.Aggregated || de.Cell;
|
|
4122
|
-
}), p.forEach(function(de) {
|
|
4122
|
+
})), p.forEach((function(de) {
|
|
4123
4123
|
de.getPivotToggleProps = W(C().getPivotToggleProps, { instance: fe(), header: de });
|
|
4124
|
-
});
|
|
4124
|
+
}));
|
|
4125
4125
|
var ae = b(K);
|
|
4126
|
-
B(function() {
|
|
4126
|
+
B((function() {
|
|
4127
4127
|
ae() && R({ type: h.resetPivot });
|
|
4128
|
-
}, [R, te ? null : o]), Object.assign(t, { togglePivot: function(de, Ce) {
|
|
4128
|
+
}), [R, te ? null : o]), Object.assign(t, { togglePivot: function(de, Ce) {
|
|
4129
4129
|
R({ type: h.togglePivot, columnId: de, value: Ce });
|
|
4130
4130
|
} });
|
|
4131
4131
|
}
|
|
4132
4132
|
function ua(t) {
|
|
4133
|
-
t.allCells.forEach(function(o) {
|
|
4133
|
+
t.allCells.forEach((function(o) {
|
|
4134
4134
|
o.isPivoted = o.column.isPivoted;
|
|
4135
|
-
});
|
|
4135
|
+
}));
|
|
4136
4136
|
}
|
|
4137
4137
|
h.resetSelectedRows = "resetSelectedRows", h.toggleAllRowsSelected = "toggleAllRowsSelected", h.toggleRowSelected = "toggleRowSelected", h.toggleAllPageRowsSelected = "toggleAllPageRowsSelected";
|
|
4138
4138
|
var Cl = function(t) {
|
|
@@ -4153,83 +4153,83 @@ function Ds() {
|
|
|
4153
4153
|
var f = o.instance;
|
|
4154
4154
|
return [t, { onChange: function(p) {
|
|
4155
4155
|
f.toggleAllPageRowsSelected(p.target.checked);
|
|
4156
|
-
}, style: { cursor: "pointer" }, checked: f.isAllPageRowsSelected, title: "Toggle All Current Page Rows Selected", indeterminate: !!(!f.isAllPageRowsSelected && f.page.some(function(p) {
|
|
4156
|
+
}, style: { cursor: "pointer" }, checked: f.isAllPageRowsSelected, title: "Toggle All Current Page Rows Selected", indeterminate: !!(!f.isAllPageRowsSelected && f.page.some((function(p) {
|
|
4157
4157
|
var C = p.id;
|
|
4158
4158
|
return f.state.selectedRowIds[C];
|
|
4159
|
-
})) }];
|
|
4159
|
+
}))) }];
|
|
4160
4160
|
};
|
|
4161
4161
|
function fa(t, o, f, p) {
|
|
4162
4162
|
if (o.type === h.init) return a({ selectedRowIds: {} }, t);
|
|
4163
4163
|
if (o.type === h.resetSelectedRows) return a({}, t, { selectedRowIds: p.initialState.selectedRowIds || {} });
|
|
4164
4164
|
if (o.type === h.toggleAllRowsSelected) {
|
|
4165
4165
|
var C = o.value, _ = p.isAllRowsSelected, R = p.rowsById, q = p.nonGroupedRowsById, K = q === void 0 ? R : q, te = C !== void 0 ? C : !_, ge = Object.assign({}, t.selectedRowIds);
|
|
4166
|
-
return te ? Object.keys(K).forEach(function(Ct) {
|
|
4166
|
+
return te ? Object.keys(K).forEach((function(Ct) {
|
|
4167
4167
|
ge[Ct] = !0;
|
|
4168
|
-
}) : Object.keys(K).forEach(function(Ct) {
|
|
4168
|
+
})) : Object.keys(K).forEach((function(Ct) {
|
|
4169
4169
|
delete ge[Ct];
|
|
4170
|
-
}), a({}, t, { selectedRowIds: ge });
|
|
4170
|
+
})), a({}, t, { selectedRowIds: ge });
|
|
4171
4171
|
}
|
|
4172
4172
|
if (o.type === h.toggleRowSelected) {
|
|
4173
4173
|
var ue = o.id, fe = o.value, ae = p.rowsById, de = p.selectSubRows, Ce = de === void 0 || de, Se = p.getSubRows, ke = t.selectedRowIds[ue], at = fe !== void 0 ? fe : !ke;
|
|
4174
4174
|
if (ke === at) return t;
|
|
4175
4175
|
var Ve = a({}, t.selectedRowIds);
|
|
4176
|
-
return function Ct(r) {
|
|
4176
|
+
return (function Ct(r) {
|
|
4177
4177
|
var l = ae[r];
|
|
4178
|
-
if (l && (l.isGrouped || (at ? Ve[r] = !0 : delete Ve[r]), Ce && Se(l))) return Se(l).forEach(function(c) {
|
|
4178
|
+
if (l && (l.isGrouped || (at ? Ve[r] = !0 : delete Ve[r]), Ce && Se(l))) return Se(l).forEach((function(c) {
|
|
4179
4179
|
return Ct(c.id);
|
|
4180
|
-
});
|
|
4181
|
-
}(ue), a({}, t, { selectedRowIds: Ve });
|
|
4180
|
+
}));
|
|
4181
|
+
})(ue), a({}, t, { selectedRowIds: Ve });
|
|
4182
4182
|
}
|
|
4183
4183
|
if (o.type === h.toggleAllPageRowsSelected) {
|
|
4184
4184
|
var xe = o.value, rt = p.page, Ee = p.rowsById, Je = p.selectSubRows, vt = Je === void 0 || Je, qe = p.isAllPageRowsSelected, Ke = p.getSubRows, Pt = xe !== void 0 ? xe : !qe, et = a({}, t.selectedRowIds);
|
|
4185
|
-
return rt.forEach(function(Ct) {
|
|
4186
|
-
return function r(l) {
|
|
4185
|
+
return rt.forEach((function(Ct) {
|
|
4186
|
+
return (function r(l) {
|
|
4187
4187
|
var c = Ee[l];
|
|
4188
|
-
if (c.isGrouped || (Pt ? et[l] = !0 : delete et[l]), vt && Ke(c)) return Ke(c).forEach(function(s) {
|
|
4188
|
+
if (c.isGrouped || (Pt ? et[l] = !0 : delete et[l]), vt && Ke(c)) return Ke(c).forEach((function(s) {
|
|
4189
4189
|
return r(s.id);
|
|
4190
|
-
});
|
|
4191
|
-
}(Ct.id);
|
|
4192
|
-
}), a({}, t, { selectedRowIds: et });
|
|
4190
|
+
}));
|
|
4191
|
+
})(Ct.id);
|
|
4192
|
+
})), a({}, t, { selectedRowIds: et });
|
|
4193
4193
|
}
|
|
4194
4194
|
return t;
|
|
4195
4195
|
}
|
|
4196
4196
|
function jl(t) {
|
|
4197
4197
|
var o = t.data, f = t.rows, p = t.getHooks, C = t.plugins, _ = t.rowsById, R = t.nonGroupedRowsById, q = R === void 0 ? _ : R, K = t.autoResetSelectedRows, te = K === void 0 || K, ge = t.state.selectedRowIds, ue = t.selectSubRows, fe = ue === void 0 || ue, ae = t.dispatch, de = t.page, Ce = t.getSubRows;
|
|
4198
4198
|
P(C, ["useFilters", "useGroupBy", "useSortBy", "useExpanded", "usePagination"], "useRowSelect");
|
|
4199
|
-
var Se = i.useMemo(function() {
|
|
4199
|
+
var Se = i.useMemo((function() {
|
|
4200
4200
|
var Ke = [];
|
|
4201
|
-
return f.forEach(function(Pt) {
|
|
4202
|
-
var et = fe ? function Ct(r, l, c) {
|
|
4201
|
+
return f.forEach((function(Pt) {
|
|
4202
|
+
var et = fe ? (function Ct(r, l, c) {
|
|
4203
4203
|
if (l[r.id]) return !0;
|
|
4204
4204
|
var s = c(r);
|
|
4205
4205
|
if (s && s.length) {
|
|
4206
4206
|
var x = !0, y = !1;
|
|
4207
|
-
return s.forEach(function(m) {
|
|
4207
|
+
return s.forEach((function(m) {
|
|
4208
4208
|
y && !x || (Ct(m, l, c) ? y = !0 : x = !1);
|
|
4209
|
-
}), !!x || !!y && null;
|
|
4209
|
+
})), !!x || !!y && null;
|
|
4210
4210
|
}
|
|
4211
4211
|
return !1;
|
|
4212
|
-
}(Pt, ge, Ce) : !!ge[Pt.id];
|
|
4212
|
+
})(Pt, ge, Ce) : !!ge[Pt.id];
|
|
4213
4213
|
Pt.isSelected = !!et, Pt.isSomeSelected = et === null, et && Ke.push(Pt);
|
|
4214
|
-
}), Ke;
|
|
4215
|
-
}, [f, fe, ge, Ce]), ke = !!(Object.keys(q).length && Object.keys(ge).length), at = ke;
|
|
4216
|
-
ke && Object.keys(q).some(function(Ke) {
|
|
4214
|
+
})), Ke;
|
|
4215
|
+
}), [f, fe, ge, Ce]), ke = !!(Object.keys(q).length && Object.keys(ge).length), at = ke;
|
|
4216
|
+
ke && Object.keys(q).some((function(Ke) {
|
|
4217
4217
|
return !ge[Ke];
|
|
4218
|
-
}) && (ke = !1), ke || de && de.length && de.some(function(Ke) {
|
|
4218
|
+
})) && (ke = !1), ke || de && de.length && de.some((function(Ke) {
|
|
4219
4219
|
var Pt = Ke.id;
|
|
4220
4220
|
return !ge[Pt];
|
|
4221
|
-
}) && (at = !1);
|
|
4221
|
+
})) && (at = !1);
|
|
4222
4222
|
var Ve = b(te);
|
|
4223
|
-
B(function() {
|
|
4223
|
+
B((function() {
|
|
4224
4224
|
Ve() && ae({ type: h.resetSelectedRows });
|
|
4225
|
-
}, [ae, o]);
|
|
4226
|
-
var xe = i.useCallback(function(Ke) {
|
|
4225
|
+
}), [ae, o]);
|
|
4226
|
+
var xe = i.useCallback((function(Ke) {
|
|
4227
4227
|
return ae({ type: h.toggleAllRowsSelected, value: Ke });
|
|
4228
|
-
}, [ae]), rt = i.useCallback(function(Ke) {
|
|
4228
|
+
}), [ae]), rt = i.useCallback((function(Ke) {
|
|
4229
4229
|
return ae({ type: h.toggleAllPageRowsSelected, value: Ke });
|
|
4230
|
-
}, [ae]), Ee = i.useCallback(function(Ke, Pt) {
|
|
4230
|
+
}), [ae]), Ee = i.useCallback((function(Ke, Pt) {
|
|
4231
4231
|
return ae({ type: h.toggleRowSelected, id: Ke, value: Pt });
|
|
4232
|
-
}, [ae]), Je = b(t), vt = W(p().getToggleAllRowsSelectedProps, { instance: Je() }), qe = W(p().getToggleAllPageRowsSelectedProps, { instance: Je() });
|
|
4232
|
+
}), [ae]), Je = b(t), vt = W(p().getToggleAllRowsSelectedProps, { instance: Je() }), qe = W(p().getToggleAllPageRowsSelectedProps, { instance: Je() });
|
|
4233
4233
|
Object.assign(t, { selectedFlatRows: Se, isAllRowsSelected: ke, isAllPageRowsSelected: at, toggleRowSelected: Ee, toggleAllRowsSelected: xe, getToggleAllRowsSelectedProps: vt, getToggleAllPageRowsSelectedProps: qe, toggleAllPageRowsSelected: rt });
|
|
4234
4234
|
}
|
|
4235
4235
|
function ha(t, o) {
|
|
@@ -4256,38 +4256,38 @@ function Ds() {
|
|
|
4256
4256
|
return a({}, t, { rowState: a({}, t.rowState, (te = {}, te[ge] = T(ue, fe), te)) });
|
|
4257
4257
|
}
|
|
4258
4258
|
if (o.type === h.setCellState) {
|
|
4259
|
-
var ae, de, Ce, Se, ke, at = o.rowId, Ve = o.columnId, xe = o.value, rt = t.rowState[at] !== void 0 ? t.rowState[at] : _(K[at]), Ee = (rt == null || (ae = rt.cellState) == null ? void 0 : ae[Ve]) !== void 0 ? rt.cellState[Ve] : q((de = K[at]) == null || (Ce = de.cells) == null ? void 0 : Ce.find(function(Je) {
|
|
4259
|
+
var ae, de, Ce, Se, ke, at = o.rowId, Ve = o.columnId, xe = o.value, rt = t.rowState[at] !== void 0 ? t.rowState[at] : _(K[at]), Ee = (rt == null || (ae = rt.cellState) == null ? void 0 : ae[Ve]) !== void 0 ? rt.cellState[Ve] : q((de = K[at]) == null || (Ce = de.cells) == null ? void 0 : Ce.find((function(Je) {
|
|
4260
4260
|
return Je.column.id === Ve;
|
|
4261
|
-
}));
|
|
4261
|
+
})));
|
|
4262
4262
|
return a({}, t, { rowState: a({}, t.rowState, (ke = {}, ke[at] = a({}, rt, { cellState: a({}, rt.cellState || {}, (Se = {}, Se[Ve] = T(xe, Ee), Se)) }), ke)) });
|
|
4263
4263
|
}
|
|
4264
4264
|
}
|
|
4265
4265
|
function Nl(t) {
|
|
4266
|
-
var o = t.autoResetRowState, f = o === void 0 || o, p = t.data, C = t.dispatch, _ = i.useCallback(function(K, te) {
|
|
4266
|
+
var o = t.autoResetRowState, f = o === void 0 || o, p = t.data, C = t.dispatch, _ = i.useCallback((function(K, te) {
|
|
4267
4267
|
return C({ type: h.setRowState, rowId: K, value: te });
|
|
4268
|
-
}, [C]), R = i.useCallback(function(K, te, ge) {
|
|
4268
|
+
}), [C]), R = i.useCallback((function(K, te, ge) {
|
|
4269
4269
|
return C({ type: h.setCellState, rowId: K, columnId: te, value: ge });
|
|
4270
|
-
}, [C]), q = b(f);
|
|
4271
|
-
B(function() {
|
|
4270
|
+
}), [C]), q = b(f);
|
|
4271
|
+
B((function() {
|
|
4272
4272
|
q() && C({ type: h.resetRowState });
|
|
4273
|
-
}, [p]), Object.assign(t, { setRowState: _, setCellState: R });
|
|
4273
|
+
}), [p]), Object.assign(t, { setRowState: _, setCellState: R });
|
|
4274
4274
|
}
|
|
4275
4275
|
function ma(t, o) {
|
|
4276
4276
|
var f = o.instance, p = f.initialRowStateAccessor, C = p === void 0 ? Pl : p, _ = f.initialCellStateAccessor, R = _ === void 0 ? Sl : _, q = f.state.rowState;
|
|
4277
4277
|
t && (t.state = q[t.id] !== void 0 ? q[t.id] : C(t), t.setState = function(K) {
|
|
4278
4278
|
return f.setRowState(t.id, K);
|
|
4279
|
-
}, t.cells.forEach(function(K) {
|
|
4279
|
+
}, t.cells.forEach((function(K) {
|
|
4280
4280
|
t.state.cellState || (t.state.cellState = {}), K.state = t.state.cellState[K.column.id] !== void 0 ? t.state.cellState[K.column.id] : R(K), K.setState = function(te) {
|
|
4281
4281
|
return f.setCellState(t.id, K.column.id, te);
|
|
4282
4282
|
};
|
|
4283
|
-
}));
|
|
4283
|
+
})));
|
|
4284
4284
|
}
|
|
4285
4285
|
Ur.pluginName = "useRowState", h.resetColumnOrder = "resetColumnOrder", h.setColumnOrder = "setColumnOrder";
|
|
4286
4286
|
var Dl = function(t) {
|
|
4287
|
-
t.stateReducers.push(Al), t.visibleColumnsDeps.push(function(o, f) {
|
|
4287
|
+
t.stateReducers.push(Al), t.visibleColumnsDeps.push((function(o, f) {
|
|
4288
4288
|
var p = f.instance;
|
|
4289
4289
|
return [].concat(o, [p.state.columnOrder]);
|
|
4290
|
-
}), t.visibleColumns.push(Il), t.useInstance.push(ga);
|
|
4290
|
+
})), t.visibleColumns.push(Il), t.useInstance.push(ga);
|
|
4291
4291
|
};
|
|
4292
4292
|
function Al(t, o, f, p) {
|
|
4293
4293
|
return o.type === h.init ? a({ columnOrder: [] }, t) : o.type === h.resetColumnOrder ? a({}, t, { columnOrder: p.initialState.columnOrder || [] }) : o.type === h.setColumnOrder ? a({}, t, { columnOrder: T(o.columnOrder, t.columnOrder) }) : void 0;
|
|
@@ -4296,18 +4296,18 @@ function Ds() {
|
|
|
4296
4296
|
var f = o.instance.state.columnOrder;
|
|
4297
4297
|
if (!f || !f.length) return t;
|
|
4298
4298
|
for (var p = [].concat(f), C = [].concat(t), _ = [], R = function() {
|
|
4299
|
-
var q = p.shift(), K = C.findIndex(function(te) {
|
|
4299
|
+
var q = p.shift(), K = C.findIndex((function(te) {
|
|
4300
4300
|
return te.id === q;
|
|
4301
|
-
});
|
|
4301
|
+
}));
|
|
4302
4302
|
K > -1 && _.push(C.splice(K, 1)[0]);
|
|
4303
4303
|
}; C.length && p.length; ) R();
|
|
4304
4304
|
return [].concat(_, C);
|
|
4305
4305
|
}
|
|
4306
4306
|
function ga(t) {
|
|
4307
4307
|
var o = t.dispatch;
|
|
4308
|
-
t.setColumnOrder = i.useCallback(function(f) {
|
|
4308
|
+
t.setColumnOrder = i.useCallback((function(f) {
|
|
4309
4309
|
return o({ type: h.setColumnOrder, columnOrder: f });
|
|
4310
|
-
}, [o]);
|
|
4310
|
+
}), [o]);
|
|
4311
4311
|
}
|
|
4312
4312
|
Dl.pluginName = "useColumnOrder", L.canResize = !0, h.columnStartResizing = "columnStartResizing", h.columnResizing = "columnResizing", h.columnDoneResizing = "columnDoneResizing", h.resetResize = "resetResize";
|
|
4313
4313
|
var Tl = function(t) {
|
|
@@ -4319,14 +4319,14 @@ function Ds() {
|
|
|
4319
4319
|
if (R.touches && R.touches.length > 1) return;
|
|
4320
4320
|
K = !0;
|
|
4321
4321
|
}
|
|
4322
|
-
var te, ge, ue = function(Ve) {
|
|
4322
|
+
var te, ge, ue = (function(Ve) {
|
|
4323
4323
|
var xe = [];
|
|
4324
|
-
return function rt(Ee) {
|
|
4324
|
+
return (function rt(Ee) {
|
|
4325
4325
|
Ee.columns && Ee.columns.length && Ee.columns.map(rt), xe.push(Ee);
|
|
4326
|
-
}(Ve), xe;
|
|
4327
|
-
}(q).map(function(Ve) {
|
|
4326
|
+
})(Ve), xe;
|
|
4327
|
+
})(q).map((function(Ve) {
|
|
4328
4328
|
return [Ve.id, Ve.totalWidth];
|
|
4329
|
-
}), fe = K ? Math.round(R.touches[0].clientX) : R.clientX, ae = function() {
|
|
4329
|
+
})), fe = K ? Math.round(R.touches[0].clientX) : R.clientX, ae = function() {
|
|
4330
4330
|
window.cancelAnimationFrame(te), te = null, C({ type: h.columnDoneResizing });
|
|
4331
4331
|
}, de = function() {
|
|
4332
4332
|
window.cancelAnimationFrame(te), te = null, C({ type: h.columnResizing, clientX: ge });
|
|
@@ -4340,7 +4340,7 @@ function Ds() {
|
|
|
4340
4340
|
return Ve.cancelable && (Ve.preventDefault(), Ve.stopPropagation()), Ce(Ve.touches[0].clientX), !1;
|
|
4341
4341
|
}, upEvent: "touchend", upHandler: function(Ve) {
|
|
4342
4342
|
document.removeEventListener(Se.touch.moveEvent, Se.touch.moveHandler), document.removeEventListener(Se.touch.upEvent, Se.touch.moveHandler), ae();
|
|
4343
|
-
} } }, ke = K ? Se.touch : Se.mouse, at = !!function() {
|
|
4343
|
+
} } }, ke = K ? Se.touch : Se.mouse, at = !!(function() {
|
|
4344
4344
|
if (typeof Fe == "boolean") return Fe;
|
|
4345
4345
|
var Ve = !1;
|
|
4346
4346
|
try {
|
|
@@ -4352,7 +4352,7 @@ function Ds() {
|
|
|
4352
4352
|
Ve = !1;
|
|
4353
4353
|
}
|
|
4354
4354
|
return Fe = Ve;
|
|
4355
|
-
}() && { passive: !1 };
|
|
4355
|
+
})() && { passive: !1 };
|
|
4356
4356
|
document.addEventListener(ke.moveEvent, ke.moveHandler, at), document.addEventListener(ke.upEvent, ke.upHandler, at), C({ type: h.columnStartResizing, columnId: q.id, columnWidth: q.totalWidth, headerIdWidths: ue, clientX: fe });
|
|
4357
4357
|
};
|
|
4358
4358
|
return [t, { onMouseDown: function(R) {
|
|
@@ -4370,44 +4370,44 @@ function Ds() {
|
|
|
4370
4370
|
}
|
|
4371
4371
|
if (o.type === h.columnResizing) {
|
|
4372
4372
|
var R = o.clientX, q = t.columnResizing, K = q.startX, te = q.columnWidth, ge = q.headerIdWidths, ue = (R - K) / te, fe = {};
|
|
4373
|
-
return (ge === void 0 ? [] : ge).forEach(function(ae) {
|
|
4373
|
+
return (ge === void 0 ? [] : ge).forEach((function(ae) {
|
|
4374
4374
|
var de = ae[0], Ce = ae[1];
|
|
4375
4375
|
fe[de] = Math.max(Ce + Ce * ue, 0);
|
|
4376
|
-
}), a({}, t, { columnResizing: a({}, t.columnResizing, { columnWidths: a({}, t.columnResizing.columnWidths, {}, fe) }) });
|
|
4376
|
+
})), a({}, t, { columnResizing: a({}, t.columnResizing, { columnWidths: a({}, t.columnResizing.columnWidths, {}, fe) }) });
|
|
4377
4377
|
}
|
|
4378
4378
|
return o.type === h.columnDoneResizing ? a({}, t, { columnResizing: a({}, t.columnResizing, { startX: null, isResizingColumn: null }) }) : void 0;
|
|
4379
4379
|
}
|
|
4380
4380
|
Tl.pluginName = "useResizeColumns";
|
|
4381
4381
|
var _a = function(t) {
|
|
4382
4382
|
var o = t.flatHeaders, f = t.disableResizing, p = t.getHooks, C = t.state.columnResizing, _ = b(t);
|
|
4383
|
-
o.forEach(function(R) {
|
|
4383
|
+
o.forEach((function(R) {
|
|
4384
4384
|
var q = _e(R.disableResizing !== !0 && void 0, f !== !0 && void 0, !0);
|
|
4385
4385
|
R.canResize = q, R.width = C.columnWidths[R.id] || R.originalWidth || R.width, R.isResizing = C.isResizingColumn === R.id, q && (R.getResizerProps = W(p().getResizerProps, { instance: _(), header: R }));
|
|
4386
|
-
});
|
|
4386
|
+
}));
|
|
4387
4387
|
};
|
|
4388
4388
|
function ya(t) {
|
|
4389
4389
|
var o = t.plugins, f = t.dispatch, p = t.autoResetResize, C = p === void 0 || p, _ = t.columns;
|
|
4390
4390
|
P(o, ["useAbsoluteLayout"], "useResizeColumns");
|
|
4391
4391
|
var R = b(C);
|
|
4392
|
-
B(function() {
|
|
4392
|
+
B((function() {
|
|
4393
4393
|
R() && f({ type: h.resetResize });
|
|
4394
|
-
}, [_]);
|
|
4395
|
-
var q = i.useCallback(function() {
|
|
4394
|
+
}), [_]);
|
|
4395
|
+
var q = i.useCallback((function() {
|
|
4396
4396
|
return f({ type: h.resetResize });
|
|
4397
|
-
}, [f]);
|
|
4397
|
+
}), [f]);
|
|
4398
4398
|
Object.assign(t, { resetResizing: q });
|
|
4399
4399
|
}
|
|
4400
4400
|
var Zr = { position: "absolute", top: 0 }, Bl = function(t) {
|
|
4401
|
-
t.getTableBodyProps.push(kr), t.getRowProps.push(kr), t.getHeaderGroupProps.push(kr), t.getFooterGroupProps.push(kr), t.getHeaderProps.push(function(o, f) {
|
|
4401
|
+
t.getTableBodyProps.push(kr), t.getRowProps.push(kr), t.getHeaderGroupProps.push(kr), t.getFooterGroupProps.push(kr), t.getHeaderProps.push((function(o, f) {
|
|
4402
4402
|
var p = f.column;
|
|
4403
4403
|
return [o, { style: a({}, Zr, { left: p.totalLeft + "px", width: p.totalWidth + "px" }) }];
|
|
4404
|
-
}), t.getCellProps.push(function(o, f) {
|
|
4404
|
+
})), t.getCellProps.push((function(o, f) {
|
|
4405
4405
|
var p = f.cell;
|
|
4406
4406
|
return [o, { style: a({}, Zr, { left: p.column.totalLeft + "px", width: p.column.totalWidth + "px" }) }];
|
|
4407
|
-
}), t.getFooterProps.push(function(o, f) {
|
|
4407
|
+
})), t.getFooterProps.push((function(o, f) {
|
|
4408
4408
|
var p = f.column;
|
|
4409
4409
|
return [o, { style: a({}, Zr, { left: p.totalLeft + "px", width: p.totalWidth + "px" }) }];
|
|
4410
|
-
});
|
|
4410
|
+
}));
|
|
4411
4411
|
};
|
|
4412
4412
|
Bl.pluginName = "useAbsoluteLayout";
|
|
4413
4413
|
var kr = function(t, o) {
|
|
@@ -4415,16 +4415,16 @@ function Ds() {
|
|
|
4415
4415
|
}, Kr = { display: "inline-block", boxSizing: "border-box" }, Xr = function(t, o) {
|
|
4416
4416
|
return [t, { style: { display: "flex", width: o.instance.totalColumnsWidth + "px" } }];
|
|
4417
4417
|
}, Gl = function(t) {
|
|
4418
|
-
t.getRowProps.push(Xr), t.getHeaderGroupProps.push(Xr), t.getFooterGroupProps.push(Xr), t.getHeaderProps.push(function(o, f) {
|
|
4418
|
+
t.getRowProps.push(Xr), t.getHeaderGroupProps.push(Xr), t.getFooterGroupProps.push(Xr), t.getHeaderProps.push((function(o, f) {
|
|
4419
4419
|
var p = f.column;
|
|
4420
4420
|
return [o, { style: a({}, Kr, { width: p.totalWidth + "px" }) }];
|
|
4421
|
-
}), t.getCellProps.push(function(o, f) {
|
|
4421
|
+
})), t.getCellProps.push((function(o, f) {
|
|
4422
4422
|
var p = f.cell;
|
|
4423
4423
|
return [o, { style: a({}, Kr, { width: p.column.totalWidth + "px" }) }];
|
|
4424
|
-
}), t.getFooterProps.push(function(o, f) {
|
|
4424
|
+
})), t.getFooterProps.push((function(o, f) {
|
|
4425
4425
|
var p = f.column;
|
|
4426
4426
|
return [o, { style: a({}, Kr, { width: p.totalWidth + "px" }) }];
|
|
4427
|
-
});
|
|
4427
|
+
}));
|
|
4428
4428
|
};
|
|
4429
4429
|
function Jr(t) {
|
|
4430
4430
|
t.getTableProps.push(ba), t.getRowProps.push(Qr), t.getHeaderGroupProps.push(Qr), t.getFooterGroupProps.push(Qr), t.getHeaderProps.push(wa), t.getCellProps.push(Ca), t.getFooterProps.push(Ra);
|
|
@@ -4450,10 +4450,10 @@ function Ds() {
|
|
|
4450
4450
|
h.columnStartResizing = "columnStartResizing", h.columnResizing = "columnResizing", h.columnDoneResizing = "columnDoneResizing", h.resetResize = "resetResize", El.pluginName = "useGridLayout";
|
|
4451
4451
|
var Fl = function(t, o) {
|
|
4452
4452
|
var f = o.instance;
|
|
4453
|
-
return [t, { style: { display: "grid", gridTemplateColumns: f.visibleColumns.map(function(p) {
|
|
4453
|
+
return [t, { style: { display: "grid", gridTemplateColumns: f.visibleColumns.map((function(p) {
|
|
4454
4454
|
var C;
|
|
4455
4455
|
return f.state.gridLayout.columnWidths[p.id] ? f.state.gridLayout.columnWidths[p.id] + "px" : (C = f.state.columnResizing) != null && C.isResizingColumn ? f.state.gridLayout.startWidths[p.id] + "px" : typeof p.width == "number" ? p.width + "px" : p.width;
|
|
4456
|
-
}).join(" ") } }];
|
|
4456
|
+
})).join(" ") } }];
|
|
4457
4457
|
}, Ml = function(t, o) {
|
|
4458
4458
|
var f = o.column;
|
|
4459
4459
|
return [t, { id: "header-cell-" + f.id, style: { position: "sticky", gridColumn: "span " + f.totalVisibleHeaderCount } }];
|
|
@@ -4467,29 +4467,29 @@ function Ds() {
|
|
|
4467
4467
|
if (o.type === h.columnStartResizing) {
|
|
4468
4468
|
var C = o.columnId, _ = o.headerIdWidths, R = el(C);
|
|
4469
4469
|
if (R !== void 0) {
|
|
4470
|
-
var q = p.visibleColumns.reduce(function(xe, rt) {
|
|
4470
|
+
var q = p.visibleColumns.reduce((function(xe, rt) {
|
|
4471
4471
|
var Ee;
|
|
4472
4472
|
return a({}, xe, ((Ee = {})[rt.id] = el(rt.id), Ee));
|
|
4473
|
-
}, {}), K = p.visibleColumns.reduce(function(xe, rt) {
|
|
4473
|
+
}), {}), K = p.visibleColumns.reduce((function(xe, rt) {
|
|
4474
4474
|
var Ee;
|
|
4475
4475
|
return a({}, xe, ((Ee = {})[rt.id] = rt.minWidth, Ee));
|
|
4476
|
-
}, {}), te = p.visibleColumns.reduce(function(xe, rt) {
|
|
4476
|
+
}), {}), te = p.visibleColumns.reduce((function(xe, rt) {
|
|
4477
4477
|
var Ee;
|
|
4478
4478
|
return a({}, xe, ((Ee = {})[rt.id] = rt.maxWidth, Ee));
|
|
4479
|
-
}, {}), ge = _.map(function(xe) {
|
|
4479
|
+
}), {}), ge = _.map((function(xe) {
|
|
4480
4480
|
var rt = xe[0];
|
|
4481
4481
|
return [rt, el(rt)];
|
|
4482
|
-
});
|
|
4482
|
+
}));
|
|
4483
4483
|
return a({}, t, { gridLayout: a({}, t.gridLayout, { startWidths: q, minWidths: K, maxWidths: te, headerIdGridWidths: ge, columnWidth: R }) });
|
|
4484
4484
|
}
|
|
4485
4485
|
return t;
|
|
4486
4486
|
}
|
|
4487
4487
|
if (o.type === h.columnResizing) {
|
|
4488
4488
|
var ue = o.clientX, fe = t.columnResizing.startX, ae = t.gridLayout, de = ae.columnWidth, Ce = ae.minWidths, Se = ae.maxWidths, ke = ae.headerIdGridWidths, at = (ue - fe) / de, Ve = {};
|
|
4489
|
-
return (ke === void 0 ? [] : ke).forEach(function(xe) {
|
|
4489
|
+
return (ke === void 0 ? [] : ke).forEach((function(xe) {
|
|
4490
4490
|
var rt = xe[0], Ee = xe[1];
|
|
4491
4491
|
Ve[rt] = Math.min(Math.max(Ce[rt], Ee + Ee * at), Se[rt]);
|
|
4492
|
-
}), a({}, t, { gridLayout: a({}, t.gridLayout, { columnWidths: a({}, t.gridLayout.columnWidths, {}, Ve) }) });
|
|
4492
|
+
})), a({}, t, { gridLayout: a({}, t.gridLayout, { columnWidths: a({}, t.gridLayout.columnWidths, {}, Ve) }) });
|
|
4493
4493
|
}
|
|
4494
4494
|
return o.type === h.columnDoneResizing ? a({}, t, { gridLayout: a({}, t.gridLayout, { startWidths: {}, minWidths: {}, maxWidths: {} }) }) : void 0;
|
|
4495
4495
|
}
|
|
@@ -4500,17 +4500,17 @@ function Ds() {
|
|
|
4500
4500
|
d._UNSTABLE_usePivotColumns = qr, d.actions = h, d.defaultColumn = L, d.defaultGroupByFn = ml, d.defaultOrderByFn = _l, d.defaultRenderer = k, d.emptyRenderer = g, d.ensurePluginOrder = P, d.flexRender = z, d.functionalUpdate = T, d.loopHooks = D, d.makePropGetter = W, d.makeRenderer = H, d.reduceHooks = I, d.safeUseLayoutEffect = ee, d.useAbsoluteLayout = Bl, d.useAsyncDebounce = function(t, o) {
|
|
4501
4501
|
o === void 0 && (o = 0);
|
|
4502
4502
|
var f = i.useRef({}), p = b(t), C = b(o);
|
|
4503
|
-
return i.useCallback(function() {
|
|
4504
|
-
var _ = w(regeneratorRuntime.mark(function R() {
|
|
4503
|
+
return i.useCallback((function() {
|
|
4504
|
+
var _ = w(regeneratorRuntime.mark((function R() {
|
|
4505
4505
|
var q, K, te, ge = arguments;
|
|
4506
|
-
return regeneratorRuntime.wrap(function(ue) {
|
|
4506
|
+
return regeneratorRuntime.wrap((function(ue) {
|
|
4507
4507
|
for (; ; ) switch (ue.prev = ue.next) {
|
|
4508
4508
|
case 0:
|
|
4509
4509
|
for (q = ge.length, K = new Array(q), te = 0; te < q; te++) K[te] = ge[te];
|
|
4510
|
-
return f.current.promise || (f.current.promise = new Promise(function(fe, ae) {
|
|
4510
|
+
return f.current.promise || (f.current.promise = new Promise((function(fe, ae) {
|
|
4511
4511
|
f.current.resolve = fe, f.current.reject = ae;
|
|
4512
|
-
})), f.current.timeout && clearTimeout(f.current.timeout), f.current.timeout = setTimeout(w(regeneratorRuntime.mark(function fe() {
|
|
4513
|
-
return regeneratorRuntime.wrap(function(ae) {
|
|
4512
|
+
}))), f.current.timeout && clearTimeout(f.current.timeout), f.current.timeout = setTimeout(w(regeneratorRuntime.mark((function fe() {
|
|
4513
|
+
return regeneratorRuntime.wrap((function(ae) {
|
|
4514
4514
|
for (; ; ) switch (ae.prev = ae.next) {
|
|
4515
4515
|
case 0:
|
|
4516
4516
|
return delete f.current.timeout, ae.prev = 1, ae.t0 = f.current, ae.next = 5, p().apply(void 0, K);
|
|
@@ -4525,118 +4525,118 @@ function Ds() {
|
|
|
4525
4525
|
case "end":
|
|
4526
4526
|
return ae.stop();
|
|
4527
4527
|
}
|
|
4528
|
-
}, fe, null, [[1, 9, 12, 15]]);
|
|
4529
|
-
})), C()), ue.abrupt("return", f.current.promise);
|
|
4528
|
+
}), fe, null, [[1, 9, 12, 15]]);
|
|
4529
|
+
}))), C()), ue.abrupt("return", f.current.promise);
|
|
4530
4530
|
case 5:
|
|
4531
4531
|
case "end":
|
|
4532
4532
|
return ue.stop();
|
|
4533
4533
|
}
|
|
4534
|
-
}, R);
|
|
4535
|
-
}));
|
|
4534
|
+
}), R);
|
|
4535
|
+
})));
|
|
4536
4536
|
return function() {
|
|
4537
4537
|
return _.apply(this, arguments);
|
|
4538
4538
|
};
|
|
4539
|
-
}(), [p, C]);
|
|
4539
|
+
})(), [p, C]);
|
|
4540
4540
|
}, d.useBlockLayout = Gl, d.useColumnOrder = Dl, d.useExpanded = fr, d.useFilters = Ut, d.useFlexLayout = Jr, d.useGetLatest = b, d.useGlobalFilter = ve, d.useGridLayout = El, d.useGroupBy = zr, d.useMountedLayoutEffect = B, d.usePagination = Yr, d.useResizeColumns = Tl, d.useRowSelect = Cl, d.useRowState = Ur, d.useSortBy = vl, d.useTable = function(t) {
|
|
4541
4541
|
for (var o = arguments.length, f = new Array(o > 1 ? o - 1 : 0), p = 1; p < o; p++) f[p - 1] = arguments[p];
|
|
4542
4542
|
t = Vt(t), f = [Ie].concat(f);
|
|
4543
4543
|
var C = i.useRef({}), _ = b(C.current);
|
|
4544
|
-
Object.assign(_(), a({}, t, { plugins: f, hooks: G() })), f.filter(Boolean).forEach(function(m) {
|
|
4544
|
+
Object.assign(_(), a({}, t, { plugins: f, hooks: G() })), f.filter(Boolean).forEach((function(m) {
|
|
4545
4545
|
m(_().hooks);
|
|
4546
|
-
});
|
|
4546
|
+
}));
|
|
4547
4547
|
var R = b(_().hooks);
|
|
4548
4548
|
_().getHooks = R, delete _().hooks, Object.assign(_(), I(R().useOptions, Vt(t)));
|
|
4549
|
-
var q = _(), K = q.data, te = q.columns, ge = q.initialState, ue = q.defaultColumn, fe = q.getSubRows, ae = q.getRowId, de = q.stateReducer, Ce = q.useControlledState, Se = b(de), ke = i.useCallback(function(m, j) {
|
|
4549
|
+
var q = _(), K = q.data, te = q.columns, ge = q.initialState, ue = q.defaultColumn, fe = q.getSubRows, ae = q.getRowId, de = q.stateReducer, Ce = q.useControlledState, Se = b(de), ke = i.useCallback((function(m, j) {
|
|
4550
4550
|
if (!j.type) throw console.info({ action: j }), new Error("Unknown Action 👆");
|
|
4551
|
-
return [].concat(R().stateReducers, Array.isArray(Se()) ? Se() : [Se()]).reduce(function(F, $) {
|
|
4551
|
+
return [].concat(R().stateReducers, Array.isArray(Se()) ? Se() : [Se()]).reduce((function(F, $) {
|
|
4552
4552
|
return $(F, j, m, _()) || F;
|
|
4553
|
-
}, m);
|
|
4554
|
-
}, [R, Se, _]), at = i.useReducer(ke, void 0, function() {
|
|
4553
|
+
}), m);
|
|
4554
|
+
}), [R, Se, _]), at = i.useReducer(ke, void 0, (function() {
|
|
4555
4555
|
return ke(ge, { type: h.init });
|
|
4556
|
-
}), Ve = at[0], xe = at[1], rt = I([].concat(R().useControlledState, [Ce]), Ve, { instance: _() });
|
|
4556
|
+
})), Ve = at[0], xe = at[1], rt = I([].concat(R().useControlledState, [Ce]), Ve, { instance: _() });
|
|
4557
4557
|
Object.assign(_(), { state: rt, dispatch: xe });
|
|
4558
|
-
var Ee = i.useMemo(function() {
|
|
4558
|
+
var Ee = i.useMemo((function() {
|
|
4559
4559
|
return Q(I(R().columns, te, { instance: _() }));
|
|
4560
|
-
}, [R, _, te].concat(I(R().columnsDeps, [], { instance: _() })));
|
|
4560
|
+
}), [R, _, te].concat(I(R().columnsDeps, [], { instance: _() })));
|
|
4561
4561
|
_().columns = Ee;
|
|
4562
|
-
var Je = i.useMemo(function() {
|
|
4562
|
+
var Je = i.useMemo((function() {
|
|
4563
4563
|
return I(R().allColumns, Y(Ee), { instance: _() }).map(ne);
|
|
4564
|
-
}, [Ee, R, _].concat(I(R().allColumnsDeps, [], { instance: _() })));
|
|
4564
|
+
}), [Ee, R, _].concat(I(R().allColumnsDeps, [], { instance: _() })));
|
|
4565
4565
|
_().allColumns = Je;
|
|
4566
|
-
var vt = i.useMemo(function() {
|
|
4566
|
+
var vt = i.useMemo((function() {
|
|
4567
4567
|
for (var m = [], j = [], F = {}, $ = [].concat(Je); $.length; ) {
|
|
4568
4568
|
var re = $.shift();
|
|
4569
4569
|
or({ data: K, rows: m, flatRows: j, rowsById: F, column: re, getRowId: ae, getSubRows: fe, accessValueHooks: R().accessValue, getInstance: _ });
|
|
4570
4570
|
}
|
|
4571
4571
|
return [m, j, F];
|
|
4572
|
-
}, [Je, K, ae, fe, R, _]), qe = vt[0], Ke = vt[1], Pt = vt[2];
|
|
4572
|
+
}), [Je, K, ae, fe, R, _]), qe = vt[0], Ke = vt[1], Pt = vt[2];
|
|
4573
4573
|
Object.assign(_(), { rows: qe, initialRows: [].concat(qe), flatRows: Ke, rowsById: Pt }), D(R().useInstanceAfterData, _());
|
|
4574
|
-
var et = i.useMemo(function() {
|
|
4575
|
-
return I(R().visibleColumns, Je, { instance: _() }).map(function(m) {
|
|
4574
|
+
var et = i.useMemo((function() {
|
|
4575
|
+
return I(R().visibleColumns, Je, { instance: _() }).map((function(m) {
|
|
4576
4576
|
return O(m, ue);
|
|
4577
|
-
});
|
|
4578
|
-
}, [R, Je, _, ue].concat(I(R().visibleColumnsDeps, [], { instance: _() })));
|
|
4579
|
-
Je = i.useMemo(function() {
|
|
4577
|
+
}));
|
|
4578
|
+
}), [R, Je, _, ue].concat(I(R().visibleColumnsDeps, [], { instance: _() })));
|
|
4579
|
+
Je = i.useMemo((function() {
|
|
4580
4580
|
var m = [].concat(et);
|
|
4581
|
-
return Je.forEach(function(j) {
|
|
4582
|
-
m.find(function(F) {
|
|
4581
|
+
return Je.forEach((function(j) {
|
|
4582
|
+
m.find((function(F) {
|
|
4583
4583
|
return F.id === j.id;
|
|
4584
|
-
}) || m.push(j);
|
|
4585
|
-
}), m;
|
|
4586
|
-
}, [Je, et]), _().allColumns = Je;
|
|
4587
|
-
var Ct = i.useMemo(function() {
|
|
4584
|
+
})) || m.push(j);
|
|
4585
|
+
})), m;
|
|
4586
|
+
}), [Je, et]), _().allColumns = Je;
|
|
4587
|
+
var Ct = i.useMemo((function() {
|
|
4588
4588
|
return I(R().headerGroups, me(et, ue), _());
|
|
4589
|
-
}, [R, et, ue, _].concat(I(R().headerGroupsDeps, [], { instance: _() })));
|
|
4589
|
+
}), [R, et, ue, _].concat(I(R().headerGroupsDeps, [], { instance: _() })));
|
|
4590
4590
|
_().headerGroups = Ct;
|
|
4591
|
-
var r = i.useMemo(function() {
|
|
4591
|
+
var r = i.useMemo((function() {
|
|
4592
4592
|
return Ct.length ? Ct[0].headers : [];
|
|
4593
|
-
}, [Ct]);
|
|
4594
|
-
_().headers = r, _().flatHeaders = Ct.reduce(function(m, j) {
|
|
4593
|
+
}), [Ct]);
|
|
4594
|
+
_().headers = r, _().flatHeaders = Ct.reduce((function(m, j) {
|
|
4595
4595
|
return [].concat(m, j.headers);
|
|
4596
|
-
}, []), D(R().useInstanceBeforeDimensions, _());
|
|
4597
|
-
var l = et.filter(function(m) {
|
|
4596
|
+
}), []), D(R().useInstanceBeforeDimensions, _());
|
|
4597
|
+
var l = et.filter((function(m) {
|
|
4598
4598
|
return m.isVisible;
|
|
4599
|
-
}).map(function(m) {
|
|
4599
|
+
})).map((function(m) {
|
|
4600
4600
|
return m.id;
|
|
4601
|
-
}).sort().join("_");
|
|
4602
|
-
et = i.useMemo(function() {
|
|
4603
|
-
return et.filter(function(m) {
|
|
4601
|
+
})).sort().join("_");
|
|
4602
|
+
et = i.useMemo((function() {
|
|
4603
|
+
return et.filter((function(m) {
|
|
4604
4604
|
return m.isVisible;
|
|
4605
|
-
});
|
|
4606
|
-
}, [et, l]), _().visibleColumns = et;
|
|
4605
|
+
}));
|
|
4606
|
+
}), [et, l]), _().visibleColumns = et;
|
|
4607
4607
|
var c = sr(r), s = c[0], x = c[1], y = c[2];
|
|
4608
|
-
return _().totalColumnsMinWidth = s, _().totalColumnsWidth = x, _().totalColumnsMaxWidth = y, D(R().useInstance, _()), [].concat(_().flatHeaders, _().allColumns).forEach(function(m) {
|
|
4608
|
+
return _().totalColumnsMinWidth = s, _().totalColumnsWidth = x, _().totalColumnsMaxWidth = y, D(R().useInstance, _()), [].concat(_().flatHeaders, _().allColumns).forEach((function(m) {
|
|
4609
4609
|
m.render = H(_(), m), m.getHeaderProps = W(R().getHeaderProps, { instance: _(), column: m }), m.getFooterProps = W(R().getFooterProps, { instance: _(), column: m });
|
|
4610
|
-
}), _().headerGroups = i.useMemo(function() {
|
|
4611
|
-
return Ct.filter(function(m, j) {
|
|
4612
|
-
return m.headers = m.headers.filter(function(F) {
|
|
4613
|
-
return F.headers ? function $(re) {
|
|
4614
|
-
return re.filter(function(ye) {
|
|
4610
|
+
})), _().headerGroups = i.useMemo((function() {
|
|
4611
|
+
return Ct.filter((function(m, j) {
|
|
4612
|
+
return m.headers = m.headers.filter((function(F) {
|
|
4613
|
+
return F.headers ? (function $(re) {
|
|
4614
|
+
return re.filter((function(ye) {
|
|
4615
4615
|
return ye.headers ? $(ye.headers) : ye.isVisible;
|
|
4616
|
-
}).length;
|
|
4617
|
-
}(F.headers) : F.isVisible;
|
|
4618
|
-
}), !!m.headers.length && (m.getHeaderGroupProps = W(R().getHeaderGroupProps, { instance: _(), headerGroup: m, index: j }), m.getFooterGroupProps = W(R().getFooterGroupProps, { instance: _(), headerGroup: m, index: j }), !0);
|
|
4619
|
-
});
|
|
4620
|
-
}, [Ct, _, R]), _().footerGroups = [].concat(_().headerGroups).reverse(), _().prepareRow = i.useCallback(function(m) {
|
|
4621
|
-
m.getRowProps = W(R().getRowProps, { instance: _(), row: m }), m.allCells = Je.map(function(j) {
|
|
4616
|
+
})).length;
|
|
4617
|
+
})(F.headers) : F.isVisible;
|
|
4618
|
+
})), !!m.headers.length && (m.getHeaderGroupProps = W(R().getHeaderGroupProps, { instance: _(), headerGroup: m, index: j }), m.getFooterGroupProps = W(R().getFooterGroupProps, { instance: _(), headerGroup: m, index: j }), !0);
|
|
4619
|
+
}));
|
|
4620
|
+
}), [Ct, _, R]), _().footerGroups = [].concat(_().headerGroups).reverse(), _().prepareRow = i.useCallback((function(m) {
|
|
4621
|
+
m.getRowProps = W(R().getRowProps, { instance: _(), row: m }), m.allCells = Je.map((function(j) {
|
|
4622
4622
|
var F = m.values[j.id], $ = { column: j, row: m, value: F };
|
|
4623
4623
|
return $.getCellProps = W(R().getCellProps, { instance: _(), cell: $ }), $.render = H(_(), j, { row: m, cell: $, value: F }), $;
|
|
4624
|
-
}), m.cells = et.map(function(j) {
|
|
4625
|
-
return m.allCells.find(function(F) {
|
|
4624
|
+
})), m.cells = et.map((function(j) {
|
|
4625
|
+
return m.allCells.find((function(F) {
|
|
4626
4626
|
return F.column.id === j.id;
|
|
4627
|
-
});
|
|
4628
|
-
}), D(R().prepareRow, m, { instance: _() });
|
|
4629
|
-
}, [R, _, Je, et]), _().getTableProps = W(R().getTableProps, { instance: _() }), _().getTableBodyProps = W(R().getTableBodyProps, { instance: _() }), D(R().useFinalInstance, _()), _();
|
|
4627
|
+
}));
|
|
4628
|
+
})), D(R().prepareRow, m, { instance: _() });
|
|
4629
|
+
}), [R, _, Je, et]), _().getTableProps = W(R().getTableProps, { instance: _() }), _().getTableBodyProps = W(R().getTableBodyProps, { instance: _() }), D(R().useFinalInstance, _()), _();
|
|
4630
4630
|
}, Object.defineProperty(d, "__esModule", { value: !0 });
|
|
4631
|
-
});
|
|
4632
|
-
}(il, il.exports)), il.exports;
|
|
4631
|
+
}));
|
|
4632
|
+
})(il, il.exports)), il.exports;
|
|
4633
4633
|
}
|
|
4634
4634
|
var sl = { exports: {} }, As = sl.exports, pn;
|
|
4635
4635
|
function Is() {
|
|
4636
|
-
return pn || (pn = 1, function(n, u) {
|
|
4636
|
+
return pn || (pn = 1, (function(n, u) {
|
|
4637
4637
|
(function(d, i) {
|
|
4638
4638
|
i(u, ol);
|
|
4639
|
-
})(As, function(d, i) {
|
|
4639
|
+
})(As, (function(d, i) {
|
|
4640
4640
|
i = i && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
|
|
4641
4641
|
function v(r, l, c, s, x, y, m) {
|
|
4642
4642
|
try {
|
|
@@ -4779,7 +4779,7 @@ This usually means you need to need to name your plugin hook by setting the 'plu
|
|
|
4779
4779
|
l === void 0 && (l = 0);
|
|
4780
4780
|
var c = i.useRef({}), s = H(r), x = H(l);
|
|
4781
4781
|
return i.useCallback(
|
|
4782
|
-
/* @__PURE__ */ function() {
|
|
4782
|
+
/* @__PURE__ */ (function() {
|
|
4783
4783
|
var y = w(
|
|
4784
4784
|
/* @__PURE__ */ regeneratorRuntime.mark(function m() {
|
|
4785
4785
|
var j, F, $, re = arguments;
|
|
@@ -4825,7 +4825,7 @@ This usually means you need to need to name your plugin hook by setting the 'plu
|
|
|
4825
4825
|
return function() {
|
|
4826
4826
|
return y.apply(this, arguments);
|
|
4827
4827
|
};
|
|
4828
|
-
}(),
|
|
4828
|
+
})(),
|
|
4829
4829
|
[s, x]
|
|
4830
4830
|
);
|
|
4831
4831
|
}
|
|
@@ -4847,10 +4847,10 @@ This usually means you need to need to name your plugin hook by setting the 'plu
|
|
|
4847
4847
|
return we(r) || typeof r == "function" || _e(r);
|
|
4848
4848
|
}
|
|
4849
4849
|
function we(r) {
|
|
4850
|
-
return typeof r == "function" && function() {
|
|
4850
|
+
return typeof r == "function" && (function() {
|
|
4851
4851
|
var l = Object.getPrototypeOf(r);
|
|
4852
4852
|
return l.prototype && l.prototype.isReactComponent;
|
|
4853
|
-
}();
|
|
4853
|
+
})();
|
|
4854
4854
|
}
|
|
4855
4855
|
function _e(r) {
|
|
4856
4856
|
return typeof r == "object" && typeof r.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(r.$$typeof.description);
|
|
@@ -4937,10 +4937,10 @@ This usually means you need to need to name your plugin hook by setting the 'plu
|
|
|
4937
4937
|
function Fe(r, l, c) {
|
|
4938
4938
|
if (!l)
|
|
4939
4939
|
return r;
|
|
4940
|
-
var s = typeof l == "function" ? l : JSON.stringify(l), x = Ae.get(s) || function() {
|
|
4940
|
+
var s = typeof l == "function" ? l : JSON.stringify(l), x = Ae.get(s) || (function() {
|
|
4941
4941
|
var m = Ie(l);
|
|
4942
4942
|
return Ae.set(s, m), m;
|
|
4943
|
-
}(), y;
|
|
4943
|
+
})(), y;
|
|
4944
4944
|
try {
|
|
4945
4945
|
y = x.reduce(function(m, j) {
|
|
4946
4946
|
return m[j];
|
|
@@ -7306,8 +7306,8 @@ This usually means you need to need to name your plugin hook by setting the 'plu
|
|
|
7306
7306
|
return c;
|
|
7307
7307
|
}
|
|
7308
7308
|
d._UNSTABLE_usePivotColumns = Al, d.actions = g, d.defaultColumn = W, d.defaultGroupByFn = bl, d.defaultOrderByFn = Ur, d.defaultRenderer = L, d.emptyRenderer = V, d.ensurePluginOrder = ee, d.flexRender = O, d.functionalUpdate = B, d.loopHooks = b, d.makePropGetter = P, d.makeRenderer = ne, d.reduceHooks = T, d.safeUseLayoutEffect = z, d.useAbsoluteLayout = ae, d.useAsyncDebounce = Y, d.useBlockLayout = ke, d.useColumnOrder = f, d.useExpanded = ut, d.useFilters = hl, d.useFlexLayout = at, d.useGetLatest = H, d.useGlobalFilter = pl, d.useGridLayout = vt, d.useGroupBy = qr, d.useMountedLayoutEffect = Q, d.usePagination = Nl, d.useResizeColumns = R, d.useRowSelect = Jr, d.useRowState = Ll, d.useSortBy = jl, d.useTable = jr, Object.defineProperty(d, "__esModule", { value: !0 });
|
|
7309
|
-
});
|
|
7310
|
-
}(sl, sl.exports)), sl.exports;
|
|
7309
|
+
}));
|
|
7310
|
+
})(sl, sl.exports)), sl.exports;
|
|
7311
7311
|
}
|
|
7312
7312
|
var mn;
|
|
7313
7313
|
function Ts() {
|
|
@@ -9695,10 +9695,10 @@ const Bs = ({
|
|
|
9695
9695
|
};
|
|
9696
9696
|
var ql = { exports: {} }, Vs = ql.exports, xn;
|
|
9697
9697
|
function Os() {
|
|
9698
|
-
return xn || (xn = 1, function(n, u) {
|
|
9698
|
+
return xn || (xn = 1, (function(n, u) {
|
|
9699
9699
|
(function(d, i) {
|
|
9700
9700
|
n.exports = i();
|
|
9701
|
-
})(Vs, function() {
|
|
9701
|
+
})(Vs, (function() {
|
|
9702
9702
|
var d = "minute", i = /[+-]\d\d(?::?\d\d)?/g, v = /([+-]|\d\d)/g;
|
|
9703
9703
|
return function(w, a, A) {
|
|
9704
9704
|
var S = a.prototype;
|
|
@@ -9726,13 +9726,13 @@ function Os() {
|
|
|
9726
9726
|
S.utcOffset = function(I, D) {
|
|
9727
9727
|
var P = this.$utils().u;
|
|
9728
9728
|
if (P(I)) return this.$u ? 0 : P(this.$offset) ? g.call(this) : this.$offset;
|
|
9729
|
-
if (typeof I == "string" && (I = function(B) {
|
|
9729
|
+
if (typeof I == "string" && (I = (function(B) {
|
|
9730
9730
|
B === void 0 && (B = "");
|
|
9731
9731
|
var H = B.match(i);
|
|
9732
9732
|
if (!H) return null;
|
|
9733
9733
|
var z = ("" + H[0]).match(v) || ["-", 0, 0], Q = z[0], Y = 60 * +z[1] + +z[2];
|
|
9734
9734
|
return Y === 0 ? 0 : Q === "+" ? Y : -Y;
|
|
9735
|
-
}(I), I === null)) return this;
|
|
9735
|
+
})(I), I === null)) return this;
|
|
9736
9736
|
var T = Math.abs(I) <= 16 ? 60 * I : I;
|
|
9737
9737
|
if (T === 0) return this.utc(D);
|
|
9738
9738
|
var b = this.clone();
|
|
@@ -9765,8 +9765,8 @@ function Os() {
|
|
|
9765
9765
|
return W.call(T, b, D, P);
|
|
9766
9766
|
};
|
|
9767
9767
|
};
|
|
9768
|
-
});
|
|
9769
|
-
}(ql)), ql.exports;
|
|
9768
|
+
}));
|
|
9769
|
+
})(ql)), ql.exports;
|
|
9770
9770
|
}
|
|
9771
9771
|
var Ws = Os();
|
|
9772
9772
|
const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {
|