@sheetxl/studio-mui 0.3.5 → 0.3.7
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/browser/cjs/{DAIK3n9uEZA5B3jo.cjs → 5lrQc6ebnKFysmq3.cjs} +1 -1
- package/browser/cjs/{LLqao183uS5MMxF5.cjs → B-tcUZY3WwHVsjFC.cjs} +2 -2
- package/browser/cjs/{D76n8Obon9BUBaN9.cjs → B063Nbr-uy6miEeW.cjs} +1 -1
- package/browser/cjs/{Dold2uHEN8H8QsT-.cjs → BZIDHjX8evLBDbvt.cjs} +1 -1
- package/browser/cjs/{kEe9PBONC8-oT9AU.cjs → Bp25JuCA2taK48lY.cjs} +2 -2
- package/browser/cjs/{Bav0cmsoPAA3a5yu.cjs → Bptt_-UuaRMKdwY9.cjs} +2 -2
- package/browser/cjs/{q9JmnJDMYsSf7UfZ.cjs → Br0gn69JbvyUYDMg.cjs} +2 -2
- package/browser/cjs/BveI4rysOlsRJvby.cjs +18 -0
- package/browser/cjs/{B13OXuZsTC4RULMo.cjs → CBfo8BUCxQqr5EG7.cjs} +1 -1
- package/browser/cjs/{4qy63Boa4nvdxyjo.cjs → CPE8Vo584fYhmjso.cjs} +2 -2
- package/browser/cjs/{ByVL-_c8JG4yCwyg.cjs → CQmIQDdsypx55cb8.cjs} +2 -2
- package/browser/cjs/{zAZ0LJZMPXeu6JSh.cjs → CgewvR53mvgndBYJ.cjs} +37 -37
- package/browser/cjs/{BlxVofqfnSMNcuv8.cjs → DEeqvwGNuFw8w157.cjs} +1 -1
- package/browser/cjs/{BHJSCG4oU8pmuDwm.cjs → DEnkHWsu727igCDW.cjs} +1 -1
- package/browser/cjs/{Bkl3DGri3E5UGuvv.cjs → DP_7ozELxxlik0xI.cjs} +1 -1
- package/browser/cjs/{DQxMsOz7p1VlzGGr.cjs → DSOsPfZL9_kyL9ln.cjs} +3 -3
- package/browser/cjs/{CauYni4UlnUOg2KD.cjs → DY_2g7vioK75DWuW.cjs} +2 -2
- package/browser/cjs/{p8j2cCUulAy7yD2q.cjs → D_3Edl4zCIfGZD8s.cjs} +2 -2
- package/browser/cjs/DjwklvllCc5gCwOJ.cjs +6 -0
- package/browser/cjs/{DSumeKv5upBoatXJ.cjs → M0QSvCGTWhSO5dni.cjs} +5 -5
- package/browser/cjs/{AQ9Vi-Cv6JK-IezR.cjs → V5ipiTc5GTsPLIat.cjs} +1 -1
- package/browser/cjs/{CGHGrJD1KaYGPUWt.cjs → WYCmUJpGhaAzfJcr.cjs} +3 -3
- package/browser/cjs/{CQXkduebOzsWYR7I.cjs → ZDbKPSGJ-yUI16Lb.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{wwocjd0UfaRLBBMZ.cjs → tRx7tGimGNCQpr04.cjs} +2 -2
- package/browser/cjs/{CetwWGtSVR7MPQmq.cjs → wfgBpIXW-R13NDRi.cjs} +2 -2
- package/browser/esm/{DQwg0nFQOuoWa9vC.mjs → B3Ij1XnTXKB8Ra6l.mjs} +1 -1
- package/browser/esm/{Bx8dhDDGV4fnPcL4.mjs → BIM5Wii-WyRfiTCP.mjs} +2 -2
- package/browser/esm/{DhJgaHDvhGW9Q-Jd.mjs → BJoEILXGs-4dsOid.mjs} +1 -1
- package/browser/esm/{C2gkPo-K972JVp5g.mjs → BrjzLQb3ECtQX_oE.mjs} +2 -2
- package/browser/esm/{BYUh5NiLu-E5n_2A.mjs → BsNWvF5TK-6d7dXG.mjs} +3 -3
- package/browser/esm/{BRJgzXA_m_2aKWbd.mjs → C7Ks61IOWv5mxPi5.mjs} +2 -2
- package/browser/esm/{Dr-hrT0HVZs3fkdF.mjs → CLwgNIcx1dXAlqFF.mjs} +2 -2
- package/browser/esm/{DK4TrH-nckKO9Q9L.mjs → CNHwFwsPDx506Pv1.mjs} +1 -1
- package/browser/esm/{B5O5PCrKRZ4DUAH5.mjs → CRxSFb6mxsdqaEWw.mjs} +3 -3
- package/browser/esm/{Dw7dYD6MrvZb3WPh.mjs → C_iaOAYxfBeQ_Eao.mjs} +488 -485
- package/browser/esm/{D0WM4vskQ31-MkSX.mjs → CfXsn2J2t5iZRq47.mjs} +6 -6
- package/browser/esm/{DVEcYvO4EkDBk4FX.mjs → CpvBz72f-J2m43rR.mjs} +1 -1
- package/browser/esm/{CsT1vXKI_o6hLmzM.mjs → CvbzFydCbYFpqozz.mjs} +1 -1
- package/browser/esm/{XSaSkbiadpjvNPF-.mjs → CzYlxA9vwNmFQ8sE.mjs} +2 -2
- package/browser/esm/{DHvI-gSNOpEkZS0_.mjs → D5zMI93VuwbUlba7.mjs} +40 -40
- package/browser/esm/{q-qojAI33CqmRx77.mjs → D90EhJlb6d3offOa.mjs} +15 -15
- package/browser/esm/{DzW551wAkGdUKn1f.mjs → D9i2f_vC22Se56A1.mjs} +2 -2
- package/browser/esm/{B89QkSJt5Nra70ba.mjs → DmMAkUHShQPrUYdy.mjs} +5604 -5596
- package/browser/esm/{DdsrrZg_d16qXBaF.mjs → Dr00OJODZaQoFOPH.mjs} +2 -2
- package/browser/esm/{Cb9SB2mI9VqoMLgo.mjs → DwF_wDqk6LJKkqHC.mjs} +1 -1
- package/browser/esm/{CEvGwR40Y6Ef-WDe.mjs → DyytGTk_wDfb9u5F.mjs} +1 -1
- package/browser/esm/{DMOlhSnOh4hHXiw0.mjs → DzVmvHLdD-ek8bqb.mjs} +2 -2
- package/browser/esm/{D5FRlmQmwf6Y4j_G.mjs → EqfxPHEY1TqRj5Ux.mjs} +1 -1
- package/browser/esm/{Drjhq-zlZ3HTK_ZI.mjs → _W9VYfMjuPSlrtP4.mjs} +2 -2
- package/browser/esm/index.mjs +11 -11
- package/browser/esm/{DEorp4Rd9a565r_h.mjs → jwJWVJb9gDdlQ0cW.mjs} +1 -1
- package/licenses/dependencies.txt +8 -8
- package/node/esm/{CvxTDOd3lLLowV8Z.mjs → -ufruJ1KO7sCgQCc.mjs} +1 -1
- package/node/esm/{BXZpU4qRYF5maAg0.mjs → 5GES52ASlImUnxiG.mjs} +3 -3
- package/node/esm/{BNhJrLEKwde0o2dg.mjs → AR8Pu9U1TlCmFr4k.mjs} +1 -1
- package/node/esm/{BiU1UyUrEkNS9WeH.mjs → B0ES7zIqSifg8qCO.mjs} +1 -1
- package/node/esm/{CZtyxHtVSnQOWUIw.mjs → BEeB-u2zgjucbLGy.mjs} +5 -5
- package/node/esm/{BUDeEhnsn9-yrQlE.mjs → BNjGAhc55jrQ1g3j.mjs} +1 -1
- package/node/esm/{C63AwhK2bi3nQ-qh.mjs → BWyrDf4jgObFanXE.mjs} +1 -1
- package/node/esm/{C53eiTE5QbclOU-x.mjs → Bea8u6AT5GuuzREd.mjs} +1 -1
- package/node/esm/{Dca0ee8jhGRibBhk.mjs → Bu4F0S4wnxFDgT0c.mjs} +1 -1
- package/node/esm/{D_wrbdHZwcqLBmob.mjs → C1B1mWQAcYHCdSs1.mjs} +1 -1
- package/node/esm/{BQWO9jQkGVXLYnCK.mjs → CEg9fJasdT_kctZx.mjs} +1 -1
- package/node/esm/{mEXgu7-CAzFc23RE.mjs → CUBSAaqg00w1oZse.mjs} +1 -1
- package/node/esm/{BexDrSYf11he63De.mjs → ChUaw-6H_k-rQrin.mjs} +1 -1
- package/node/esm/{DpB6jqJa5heTZlo1.mjs → DPeCPqMlSAhL24yo.mjs} +1 -1
- package/node/esm/{B6na2FpIb2N8_BII.mjs → DSlqkNGniwMkptsL.mjs} +1 -1
- package/node/esm/{BCqh-sztmdgZm9pd.mjs → D_HsSmvAUM93hhV7.mjs} +1 -1
- package/node/esm/{0VUK_26rxW-1p-no.mjs → DpUbzQzROf1E0IEX.mjs} +2 -2
- package/node/esm/{B4Eo0tFRg7GybYQq.mjs → RlDXWMx7VZdvm6v_.mjs} +1 -1
- package/node/esm/{CKS2ltb4Bv_q8qad.mjs → SjEP8IGjTybFF3GO.mjs} +1 -1
- package/node/esm/index.mjs +8 -8
- package/node/esm/{DuL4Zvdz5hbTWC1z.mjs → k29lAtxWgg2NJOmE.mjs} +3 -3
- package/node/esm/{DrgN5wWkYF1hgIK3.mjs → sPH28U-9oXTmsgtc.mjs} +1 -1
- package/node/esm/{DQv4OOMysHEA_ih5.mjs → txd-xYXneGIWdMTi.mjs} +1 -1
- package/node/esm/{CJzMybL2SEMDl1Nw.mjs → zgQ7l8vqbi0BmUvJ.mjs} +1 -1
- package/package.json +13 -13
- package/browser/cjs/DKTmOXPHU474-EAe.cjs +0 -6
- package/browser/cjs/K7lHFQm8oaMP4Fc7.cjs +0 -18
|
@@ -1,55 +1,58 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Box as
|
|
3
|
-
import { an as
|
|
1
|
+
import { jsxs as Ee, jsx as W } from "react/jsx-runtime";
|
|
2
|
+
import { Box as ue, TextField as Qt, InputAdornment as eo, IconButton as to, FormControlLabel as oo, Checkbox as no, Typography as ro, TableCell as We, DialogContent as io } from "@mui/material";
|
|
3
|
+
import { an as lo, ao as He, ap as so, aq as ao, ar as co, as as uo, at as U, au as ho, Y as fo, a4 as St, a5 as de, b as Se, av as po, a6 as mo } from "./DmMAkUHShQPrUYdy.mjs";
|
|
4
4
|
import * as x from "react";
|
|
5
|
-
import
|
|
6
|
-
import { Close as
|
|
7
|
-
import { c as N } from "./
|
|
8
|
-
import
|
|
9
|
-
import { alpha as
|
|
5
|
+
import yt, { cloneElement as go, useState as he, useMemo as vo, useEffect as De } from "react";
|
|
6
|
+
import { Close as _o } from "@mui/icons-material";
|
|
7
|
+
import { c as N } from "./D5zMI93VuwbUlba7.mjs";
|
|
8
|
+
import So, { internal_serializeStyles as K, internal_mutateStyles as yo } from "@mui/styled-engine";
|
|
9
|
+
import { alpha as fe } from "@mui/system";
|
|
10
10
|
/**
|
|
11
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.
|
|
11
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.7
|
|
12
12
|
*
|
|
13
13
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
14
14
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
15
15
|
*/
|
|
16
|
-
const
|
|
17
|
-
function
|
|
16
|
+
const wo = lo();
|
|
17
|
+
function ye(o) {
|
|
18
18
|
return o !== "ownerState" && o !== "theme" && o !== "sx" && o !== "as";
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function q(o, e) {
|
|
21
|
+
return e && o && typeof o == "object" && o.styles && !o.styles.startsWith("@layer") && (o.styles = `@layer ${e}{${String(o.styles)}}`), o;
|
|
22
|
+
}
|
|
23
|
+
function Co(o) {
|
|
21
24
|
return o ? (e, t) => t[o] : null;
|
|
22
25
|
}
|
|
23
|
-
function
|
|
24
|
-
const
|
|
25
|
-
if (Array.isArray(
|
|
26
|
-
if (Array.isArray(
|
|
27
|
-
let
|
|
28
|
-
if (
|
|
26
|
+
function ge(o, e, t) {
|
|
27
|
+
const n = typeof e == "function" ? e(o) : e;
|
|
28
|
+
if (Array.isArray(n)) return n.flatMap((r) => ge(o, r, t));
|
|
29
|
+
if (Array.isArray(n?.variants)) {
|
|
30
|
+
let r;
|
|
31
|
+
if (n.isProcessed) r = t ? q(n.style, t) : n.style;
|
|
29
32
|
else {
|
|
30
|
-
const { variants:
|
|
31
|
-
|
|
33
|
+
const { variants: l, ...i } = n;
|
|
34
|
+
r = t ? q(K(i), t) : i;
|
|
32
35
|
}
|
|
33
|
-
return
|
|
36
|
+
return wt(o, n.variants, [r], t);
|
|
34
37
|
}
|
|
35
|
-
return
|
|
38
|
+
return n?.isProcessed ? t ? q(K(n.style), t) : n.style : t ? q(K(n), t) : n;
|
|
36
39
|
}
|
|
37
|
-
function
|
|
38
|
-
let
|
|
39
|
-
e: for (let
|
|
40
|
-
const
|
|
41
|
-
if (typeof
|
|
42
|
-
if (
|
|
43
|
-
} else for (const
|
|
44
|
-
typeof
|
|
40
|
+
function wt(o, e, t = [], n = void 0) {
|
|
41
|
+
let r;
|
|
42
|
+
e: for (let l = 0; l < e.length; l += 1) {
|
|
43
|
+
const i = e[l];
|
|
44
|
+
if (typeof i.props == "function") {
|
|
45
|
+
if (r ??= { ...o, ...o.ownerState, ownerState: o.ownerState }, !i.props(r)) continue;
|
|
46
|
+
} else for (const a in i.props) if (o[a] !== i.props[a] && o.ownerState?.[a] !== i.props[a]) continue e;
|
|
47
|
+
typeof i.style == "function" ? (r ??= { ...o, ...o.ownerState, ownerState: o.ownerState }, t.push(n ? q(K(i.style(r)), n) : i.style(r))) : t.push(n ? q(K(i.style), n) : i.style);
|
|
45
48
|
}
|
|
46
49
|
return t;
|
|
47
50
|
}
|
|
48
|
-
function
|
|
51
|
+
function xo(o) {
|
|
49
52
|
return o && o.charAt(0).toLowerCase() + o.slice(1);
|
|
50
53
|
}
|
|
51
|
-
const
|
|
52
|
-
const { themeId: e, defaultTheme: t =
|
|
54
|
+
const Ro = function(o = {}) {
|
|
55
|
+
const { themeId: e, defaultTheme: t = wo, rootShouldForwardProp: n = ye, slotShouldForwardProp: r = ye } = o;
|
|
53
56
|
function l(i) {
|
|
54
57
|
(function(a, s, c) {
|
|
55
58
|
a.theme = function(u) {
|
|
@@ -59,116 +62,116 @@ const xo = function(o = {}) {
|
|
|
59
62
|
})(i, e, t);
|
|
60
63
|
}
|
|
61
64
|
return (i, a = {}) => {
|
|
62
|
-
|
|
63
|
-
const { name: s, slot: c, skipVariantsResolver: u, skipSx: d, overridesResolver: f =
|
|
64
|
-
let
|
|
65
|
-
c === "Root" || c === "root" ?
|
|
66
|
-
return typeof
|
|
67
|
-
}(i) && (
|
|
68
|
-
const
|
|
69
|
-
if (
|
|
70
|
-
if (typeof
|
|
71
|
-
return
|
|
65
|
+
yo(i, (C) => C.filter((R) => R !== He));
|
|
66
|
+
const { name: s, slot: c, skipVariantsResolver: u, skipSx: d, overridesResolver: f = Co(xo(c)), ...h } = a, g = s && s.startsWith("Mui") || c ? "components" : "custom", v = u !== void 0 ? u : c && c !== "Root" && c !== "root" || !1, _ = d || !1;
|
|
67
|
+
let S = ye;
|
|
68
|
+
c === "Root" || c === "root" ? S = n : c ? S = r : function(C) {
|
|
69
|
+
return typeof C == "string" && C.charCodeAt(0) > 96;
|
|
70
|
+
}(i) && (S = void 0);
|
|
71
|
+
const m = So(i, { shouldForwardProp: S, label: void 0, ...h }), y = (C) => {
|
|
72
|
+
if (C.__emotion_real === C) return C;
|
|
73
|
+
if (typeof C == "function") return function(R) {
|
|
74
|
+
return ge(R, C, R.theme.modularCssLayers ? g : void 0);
|
|
72
75
|
};
|
|
73
|
-
if (
|
|
74
|
-
const
|
|
75
|
-
const { variants:
|
|
76
|
-
return
|
|
77
|
-
typeof
|
|
78
|
-
}),
|
|
79
|
-
}(
|
|
80
|
-
return
|
|
81
|
-
return
|
|
82
|
-
}
|
|
76
|
+
if (so(C)) {
|
|
77
|
+
const R = function(z) {
|
|
78
|
+
const { variants: b, ...I } = z, O = { variants: b, style: K(I), isProcessed: !0 };
|
|
79
|
+
return O.style === I || b && b.forEach((T) => {
|
|
80
|
+
typeof T.style != "function" && (T.style = K(T.style));
|
|
81
|
+
}), O;
|
|
82
|
+
}(C);
|
|
83
|
+
return function(z) {
|
|
84
|
+
return R.variants ? ge(z, R, z.theme.modularCssLayers ? g : void 0) : z.theme.modularCssLayers ? q(R.style, g) : R.style;
|
|
85
|
+
};
|
|
83
86
|
}
|
|
84
|
-
return
|
|
85
|
-
}, w = (...
|
|
86
|
-
const
|
|
87
|
-
if (
|
|
88
|
-
const
|
|
87
|
+
return C;
|
|
88
|
+
}, w = (...C) => {
|
|
89
|
+
const R = [], z = C.map(y), b = [];
|
|
90
|
+
if (R.push(l), s && f && b.push(function(T) {
|
|
91
|
+
const L = T.theme, k = L.components?.[s]?.styleOverrides;
|
|
89
92
|
if (!k) return null;
|
|
90
|
-
const
|
|
91
|
-
for (const
|
|
92
|
-
return f(
|
|
93
|
-
}), s && !
|
|
94
|
-
const
|
|
95
|
-
return k ?
|
|
96
|
-
}),
|
|
97
|
-
const
|
|
98
|
-
let
|
|
99
|
-
|
|
93
|
+
const E = {};
|
|
94
|
+
for (const J in k) E[J] = ge(T, k[J], T.theme.modularCssLayers ? "theme" : void 0);
|
|
95
|
+
return f(T, E);
|
|
96
|
+
}), s && !v && b.push(function(T) {
|
|
97
|
+
const L = T.theme, k = L?.components?.[s]?.variants;
|
|
98
|
+
return k ? wt(T, k, [], T.theme.modularCssLayers ? "theme" : void 0) : null;
|
|
99
|
+
}), _ || b.push(He), Array.isArray(z[0])) {
|
|
100
|
+
const T = z.shift(), L = new Array(R.length).fill(""), k = new Array(b.length).fill("");
|
|
101
|
+
let E;
|
|
102
|
+
E = [...L, ...T, ...k], E.raw = [...L, ...T.raw, ...k], R.unshift(E);
|
|
100
103
|
}
|
|
101
|
-
const
|
|
102
|
-
return i.muiName && (
|
|
104
|
+
const I = [...R, ...z, ...b], O = m(...I);
|
|
105
|
+
return i.muiName && (O.muiName = i.muiName), O;
|
|
103
106
|
};
|
|
104
|
-
return
|
|
107
|
+
return m.withConfig && (w.withConfig = m.withConfig), w;
|
|
105
108
|
};
|
|
106
|
-
}({ themeId:
|
|
109
|
+
}({ themeId: ao, defaultTheme: co, rootShouldForwardProp: (o) => /* @__PURE__ */ function(e) {
|
|
107
110
|
return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
|
|
108
111
|
}(o) && o !== "classes" });
|
|
109
112
|
function G(o, e) {
|
|
110
113
|
if (!(o instanceof e)) throw new TypeError("Cannot call a class as a function");
|
|
111
114
|
}
|
|
112
|
-
function
|
|
113
|
-
return
|
|
115
|
+
function $(o) {
|
|
116
|
+
return $ = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
114
117
|
return typeof e;
|
|
115
118
|
} : function(e) {
|
|
116
119
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
117
|
-
},
|
|
120
|
+
}, $(o);
|
|
118
121
|
}
|
|
119
|
-
function
|
|
122
|
+
function Ct(o) {
|
|
120
123
|
var e = function(t, n) {
|
|
121
|
-
if (
|
|
124
|
+
if ($(t) != "object" || !t) return t;
|
|
122
125
|
var r = t[Symbol.toPrimitive];
|
|
123
126
|
if (r !== void 0) {
|
|
124
127
|
var l = r.call(t, n);
|
|
125
|
-
if (
|
|
128
|
+
if ($(l) != "object") return l;
|
|
126
129
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
127
130
|
}
|
|
128
131
|
return String(t);
|
|
129
132
|
}(o, "string");
|
|
130
|
-
return
|
|
133
|
+
return $(e) == "symbol" ? e : e + "";
|
|
131
134
|
}
|
|
132
|
-
function
|
|
135
|
+
function je(o, e) {
|
|
133
136
|
for (var t = 0; t < e.length; t++) {
|
|
134
137
|
var n = e[t];
|
|
135
|
-
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(o,
|
|
138
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(o, Ct(n.key), n);
|
|
136
139
|
}
|
|
137
140
|
}
|
|
138
141
|
function A(o, e, t) {
|
|
139
|
-
return e &&
|
|
142
|
+
return e && je(o.prototype, e), t && je(o, t), Object.defineProperty(o, "prototype", { writable: !1 }), o;
|
|
140
143
|
}
|
|
141
|
-
function
|
|
142
|
-
if (e && (
|
|
144
|
+
function H(o, e) {
|
|
145
|
+
if (e && ($(e) == "object" || typeof e == "function")) return e;
|
|
143
146
|
if (e !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
144
147
|
return function(t) {
|
|
145
148
|
if (t === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
146
149
|
return t;
|
|
147
150
|
}(o);
|
|
148
151
|
}
|
|
149
|
-
function
|
|
150
|
-
return
|
|
152
|
+
function P(o) {
|
|
153
|
+
return P = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
151
154
|
return e.__proto__ || Object.getPrototypeOf(e);
|
|
152
|
-
},
|
|
155
|
+
}, P(o);
|
|
153
156
|
}
|
|
154
157
|
function D(o, e) {
|
|
155
158
|
if (typeof e != "function" && e !== null) throw new TypeError("Super expression must either be null or a function");
|
|
156
|
-
o.prototype = Object.create(e && e.prototype, { constructor: { value: o, writable: !0, configurable: !0 } }), Object.defineProperty(o, "prototype", { writable: !1 }), e &&
|
|
159
|
+
o.prototype = Object.create(e && e.prototype, { constructor: { value: o, writable: !0, configurable: !0 } }), Object.defineProperty(o, "prototype", { writable: !1 }), e && uo(o, e);
|
|
157
160
|
}
|
|
158
161
|
function p(o, e, t) {
|
|
159
|
-
return (e =
|
|
162
|
+
return (e = Ct(e)) in o ? Object.defineProperty(o, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : o[e] = t, o;
|
|
160
163
|
}
|
|
161
|
-
function
|
|
164
|
+
function xt() {
|
|
162
165
|
var o = this.constructor.getDerivedStateFromProps(this.props, this.state);
|
|
163
166
|
o != null && this.setState(o);
|
|
164
167
|
}
|
|
165
|
-
function
|
|
168
|
+
function Rt(o) {
|
|
166
169
|
this.setState(function(e) {
|
|
167
170
|
var t = this.constructor.getDerivedStateFromProps(o, e);
|
|
168
171
|
return t ?? null;
|
|
169
172
|
}.bind(this));
|
|
170
173
|
}
|
|
171
|
-
function
|
|
174
|
+
function bt(o, e) {
|
|
172
175
|
try {
|
|
173
176
|
var t = this.props, n = this.state;
|
|
174
177
|
this.props = o, this.state = e, this.__reactInternalSnapshotFlag = !0, this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(t, n);
|
|
@@ -176,7 +179,7 @@ function Rt(o, e) {
|
|
|
176
179
|
this.props = t, this.state = n;
|
|
177
180
|
}
|
|
178
181
|
}
|
|
179
|
-
function
|
|
182
|
+
function ce(o) {
|
|
180
183
|
var e = o.prototype;
|
|
181
184
|
if (!e || !e.isReactComponent) throw new Error("Can only polyfill class components");
|
|
182
185
|
if (typeof o.getDerivedStateFromProps != "function" && typeof e.getSnapshotBeforeUpdate != "function") return o;
|
|
@@ -193,9 +196,9 @@ function le(o) {
|
|
|
193
196
|
The above lifecycles should be removed. Learn more about this warning here:
|
|
194
197
|
https://fb.me/react-async-component-lifecycle-hooks`);
|
|
195
198
|
}
|
|
196
|
-
if (typeof o.getDerivedStateFromProps == "function" && (e.componentWillMount =
|
|
199
|
+
if (typeof o.getDerivedStateFromProps == "function" && (e.componentWillMount = xt, e.componentWillReceiveProps = Rt), typeof e.getSnapshotBeforeUpdate == "function") {
|
|
197
200
|
if (typeof e.componentDidUpdate != "function") throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");
|
|
198
|
-
e.componentWillUpdate =
|
|
201
|
+
e.componentWillUpdate = bt;
|
|
199
202
|
var a = e.componentDidUpdate;
|
|
200
203
|
e.componentDidUpdate = function(s, c, u) {
|
|
201
204
|
var d = this.__reactInternalSnapshotFlag ? this.__reactInternalSnapshot : u;
|
|
@@ -204,7 +207,7 @@ https://fb.me/react-async-component-lifecycle-hooks`);
|
|
|
204
207
|
}
|
|
205
208
|
return o;
|
|
206
209
|
}
|
|
207
|
-
function
|
|
210
|
+
function Fe(o, e) {
|
|
208
211
|
var t = Object.keys(o);
|
|
209
212
|
if (Object.getOwnPropertySymbols) {
|
|
210
213
|
var n = Object.getOwnPropertySymbols(o);
|
|
@@ -214,40 +217,40 @@ function je(o, e) {
|
|
|
214
217
|
}
|
|
215
218
|
return t;
|
|
216
219
|
}
|
|
217
|
-
function
|
|
220
|
+
function Ne(o) {
|
|
218
221
|
for (var e = 1; e < arguments.length; e++) {
|
|
219
222
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
220
|
-
e % 2 ?
|
|
223
|
+
e % 2 ? Fe(Object(t), !0).forEach(function(n) {
|
|
221
224
|
p(o, n, t[n]);
|
|
222
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) :
|
|
225
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : Fe(Object(t)).forEach(function(n) {
|
|
223
226
|
Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
|
|
224
227
|
});
|
|
225
228
|
}
|
|
226
229
|
return o;
|
|
227
230
|
}
|
|
228
|
-
function
|
|
231
|
+
function Tt() {
|
|
229
232
|
try {
|
|
230
233
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
231
234
|
}));
|
|
232
235
|
} catch {
|
|
233
236
|
}
|
|
234
|
-
return (
|
|
237
|
+
return (Tt = function() {
|
|
235
238
|
return !!o;
|
|
236
239
|
})();
|
|
237
240
|
}
|
|
238
|
-
|
|
239
|
-
var
|
|
241
|
+
xt.__suppressDeprecationWarning = !0, Rt.__suppressDeprecationWarning = !0, bt.__suppressDeprecationWarning = !0;
|
|
242
|
+
var Be = function() {
|
|
240
243
|
function o() {
|
|
241
244
|
var e, t, n, r;
|
|
242
245
|
G(this, o);
|
|
243
246
|
for (var l = arguments.length, i = new Array(l), a = 0; a < l; a++) i[a] = arguments[a];
|
|
244
|
-
return t = this, n = o, r = [].concat(i), n =
|
|
247
|
+
return t = this, n = o, r = [].concat(i), n = P(n), p(e = H(t, Tt() ? Reflect.construct(n, r || [], P(t).constructor) : n.apply(t, r)), "state", { scrollToColumn: 0, scrollToRow: 0, instanceProps: { prevScrollToColumn: 0, prevScrollToRow: 0 } }), p(e, "_columnStartIndex", 0), p(e, "_columnStopIndex", 0), p(e, "_rowStartIndex", 0), p(e, "_rowStopIndex", 0), p(e, "_onKeyDown", function(s) {
|
|
245
248
|
var c = e.props, u = c.columnCount, d = c.disabled, f = c.mode, h = c.rowCount;
|
|
246
249
|
if (!d) {
|
|
247
|
-
var g = e._getScrollState(), v = g.scrollToColumn, _ = g.scrollToRow, S = e._getScrollState(), m = S.scrollToColumn,
|
|
250
|
+
var g = e._getScrollState(), v = g.scrollToColumn, _ = g.scrollToRow, S = e._getScrollState(), m = S.scrollToColumn, y = S.scrollToRow;
|
|
248
251
|
switch (s.key) {
|
|
249
252
|
case "ArrowDown":
|
|
250
|
-
|
|
253
|
+
y = Math.min(f === "cells" ? y + 1 : e._rowStopIndex + 1, h - 1);
|
|
251
254
|
break;
|
|
252
255
|
case "ArrowLeft":
|
|
253
256
|
m = Math.max(f === "cells" ? m - 1 : e._columnStartIndex - 1, 0);
|
|
@@ -256,9 +259,9 @@ var Ne = function() {
|
|
|
256
259
|
m = Math.min(f === "cells" ? m + 1 : e._columnStopIndex + 1, u - 1);
|
|
257
260
|
break;
|
|
258
261
|
case "ArrowUp":
|
|
259
|
-
|
|
262
|
+
y = Math.max(f === "cells" ? y - 1 : e._rowStartIndex - 1, 0);
|
|
260
263
|
}
|
|
261
|
-
m === v &&
|
|
264
|
+
m === v && y === _ || (s.preventDefault(), e._updateScrollState({ scrollToColumn: m, scrollToRow: y }));
|
|
262
265
|
}
|
|
263
266
|
}), p(e, "_onSectionRendered", function(s) {
|
|
264
267
|
var c = s.columnStartIndex, u = s.columnStopIndex, d = s.rowStartIndex, f = s.rowStopIndex;
|
|
@@ -277,35 +280,35 @@ var Ne = function() {
|
|
|
277
280
|
var t = e.scrollToColumn, n = e.scrollToRow, r = this.props, l = r.isControlled, i = r.onScrollToChange;
|
|
278
281
|
typeof i == "function" && i({ scrollToColumn: t, scrollToRow: n }), l || this.setState({ scrollToColumn: t, scrollToRow: n });
|
|
279
282
|
} }], [{ key: "getDerivedStateFromProps", value: function(e, t) {
|
|
280
|
-
return e.isControlled ? {} : e.scrollToColumn !== t.instanceProps.prevScrollToColumn || e.scrollToRow !== t.instanceProps.prevScrollToRow ?
|
|
283
|
+
return e.isControlled ? {} : e.scrollToColumn !== t.instanceProps.prevScrollToColumn || e.scrollToRow !== t.instanceProps.prevScrollToRow ? Ne(Ne({}, t), {}, { scrollToColumn: e.scrollToColumn, scrollToRow: e.scrollToRow, instanceProps: { prevScrollToColumn: e.scrollToColumn, prevScrollToRow: e.scrollToRow } }) : {};
|
|
281
284
|
} }]);
|
|
282
285
|
}();
|
|
283
|
-
function
|
|
286
|
+
function zt(o, e) {
|
|
284
287
|
var t, n = (t = e !== void 0 ? e : typeof window < "u" ? window : typeof self < "u" ? self : global).document !== void 0 && t.document.attachEvent;
|
|
285
288
|
if (!n) {
|
|
286
289
|
var r = function() {
|
|
287
|
-
var m = t.requestAnimationFrame || t.mozRequestAnimationFrame || t.webkitRequestAnimationFrame || function(
|
|
288
|
-
return t.setTimeout(
|
|
290
|
+
var m = t.requestAnimationFrame || t.mozRequestAnimationFrame || t.webkitRequestAnimationFrame || function(y) {
|
|
291
|
+
return t.setTimeout(y, 20);
|
|
289
292
|
};
|
|
290
|
-
return function(
|
|
291
|
-
return m(
|
|
293
|
+
return function(y) {
|
|
294
|
+
return m(y);
|
|
292
295
|
};
|
|
293
296
|
}(), l = function() {
|
|
294
297
|
var m = t.cancelAnimationFrame || t.mozCancelAnimationFrame || t.webkitCancelAnimationFrame || t.clearTimeout;
|
|
295
|
-
return function(
|
|
296
|
-
return m(
|
|
298
|
+
return function(y) {
|
|
299
|
+
return m(y);
|
|
297
300
|
};
|
|
298
301
|
}(), i = function(m) {
|
|
299
|
-
var
|
|
300
|
-
C.scrollLeft = C.scrollWidth, C.scrollTop = C.scrollHeight,
|
|
302
|
+
var y = m.__resizeTriggers__, w = y.firstElementChild, C = y.lastElementChild, R = w.firstElementChild;
|
|
303
|
+
C.scrollLeft = C.scrollWidth, C.scrollTop = C.scrollHeight, R.style.width = w.offsetWidth + 1 + "px", R.style.height = w.offsetHeight + 1 + "px", w.scrollLeft = w.scrollWidth, w.scrollTop = w.scrollHeight;
|
|
301
304
|
}, a = function(m) {
|
|
302
305
|
if (!(m.target.className && typeof m.target.className.indexOf == "function" && m.target.className.indexOf("contract-trigger") < 0 && m.target.className.indexOf("expand-trigger") < 0)) {
|
|
303
|
-
var
|
|
306
|
+
var y = this;
|
|
304
307
|
i(this), this.__resizeRAF__ && l(this.__resizeRAF__), this.__resizeRAF__ = r(function() {
|
|
305
|
-
(function(
|
|
306
|
-
return
|
|
307
|
-
})(
|
|
308
|
-
|
|
308
|
+
(function(w) {
|
|
309
|
+
return w.offsetWidth != w.__resizeLast__.width || w.offsetHeight != w.__resizeLast__.height;
|
|
310
|
+
})(y) && (y.__resizeLast__.width = y.offsetWidth, y.__resizeLast__.height = y.offsetHeight, y.__resizeListeners__.forEach(function(w) {
|
|
311
|
+
w.call(y, m);
|
|
309
312
|
}));
|
|
310
313
|
});
|
|
311
314
|
}
|
|
@@ -318,29 +321,29 @@ function Tt(o, e) {
|
|
|
318
321
|
}
|
|
319
322
|
var v = "resizeanim", _ = "@" + c + "keyframes " + v + " { from { opacity: 0; } to { opacity: 0; } } ", S = c + "animation: 1ms " + v + "; ";
|
|
320
323
|
}
|
|
321
|
-
return { addResizeListener: function(m,
|
|
322
|
-
if (n) m.attachEvent("onresize",
|
|
324
|
+
return { addResizeListener: function(m, y) {
|
|
325
|
+
if (n) m.attachEvent("onresize", y);
|
|
323
326
|
else {
|
|
324
327
|
if (!m.__resizeTriggers__) {
|
|
325
|
-
var
|
|
328
|
+
var w = m.ownerDocument, C = t.getComputedStyle(m);
|
|
326
329
|
C && C.position == "static" && (m.style.position = "relative"), function(b) {
|
|
327
330
|
if (!b.getElementById("detectElementResize")) {
|
|
328
|
-
var
|
|
329
|
-
|
|
331
|
+
var I = (_ || "") + ".resize-triggers { " + (S || "") + 'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }', O = b.head || b.getElementsByTagName("head")[0], T = b.createElement("style");
|
|
332
|
+
T.id = "detectElementResize", T.type = "text/css", o != null && T.setAttribute("nonce", o), T.styleSheet ? T.styleSheet.cssText = I : T.appendChild(b.createTextNode(I)), O.appendChild(T);
|
|
330
333
|
}
|
|
331
|
-
}(
|
|
332
|
-
var
|
|
333
|
-
|
|
334
|
-
var
|
|
335
|
-
|
|
334
|
+
}(w), m.__resizeLast__ = {}, m.__resizeListeners__ = [], (m.__resizeTriggers__ = w.createElement("div")).className = "resize-triggers";
|
|
335
|
+
var R = w.createElement("div");
|
|
336
|
+
R.className = "expand-trigger", R.appendChild(w.createElement("div"));
|
|
337
|
+
var z = w.createElement("div");
|
|
338
|
+
z.className = "contract-trigger", m.__resizeTriggers__.appendChild(R), m.__resizeTriggers__.appendChild(z), m.appendChild(m.__resizeTriggers__), i(m), m.addEventListener("scroll", a, !0), u && (m.__resizeTriggers__.__animationListener__ = function(b) {
|
|
336
339
|
b.animationName == v && i(m);
|
|
337
340
|
}, m.__resizeTriggers__.addEventListener(u, m.__resizeTriggers__.__animationListener__));
|
|
338
341
|
}
|
|
339
|
-
m.__resizeListeners__.push(
|
|
342
|
+
m.__resizeListeners__.push(y);
|
|
340
343
|
}
|
|
341
|
-
}, removeResizeListener: function(m,
|
|
342
|
-
if (n) m.detachEvent("onresize",
|
|
343
|
-
else if (m.__resizeListeners__.splice(m.__resizeListeners__.indexOf(
|
|
344
|
+
}, removeResizeListener: function(m, y) {
|
|
345
|
+
if (n) m.detachEvent("onresize", y);
|
|
346
|
+
else if (m.__resizeListeners__.splice(m.__resizeListeners__.indexOf(y), 1), !m.__resizeListeners__.length) {
|
|
344
347
|
m.removeEventListener("scroll", a, !0), m.__resizeTriggers__.__animationListener__ && (m.__resizeTriggers__.removeEventListener(u, m.__resizeTriggers__.__animationListener__), m.__resizeTriggers__.__animationListener__ = null);
|
|
345
348
|
try {
|
|
346
349
|
m.__resizeTriggers__ = !m.removeChild(m.__resizeTriggers__);
|
|
@@ -349,7 +352,7 @@ function Tt(o, e) {
|
|
|
349
352
|
}
|
|
350
353
|
} };
|
|
351
354
|
}
|
|
352
|
-
function
|
|
355
|
+
function Ue(o, e) {
|
|
353
356
|
var t = Object.keys(o);
|
|
354
357
|
if (Object.getOwnPropertySymbols) {
|
|
355
358
|
var n = Object.getOwnPropertySymbols(o);
|
|
@@ -359,38 +362,38 @@ function Be(o, e) {
|
|
|
359
362
|
}
|
|
360
363
|
return t;
|
|
361
364
|
}
|
|
362
|
-
function
|
|
365
|
+
function Ve(o) {
|
|
363
366
|
for (var e = 1; e < arguments.length; e++) {
|
|
364
367
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
365
|
-
e % 2 ?
|
|
368
|
+
e % 2 ? Ue(Object(t), !0).forEach(function(n) {
|
|
366
369
|
p(o, n, t[n]);
|
|
367
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) :
|
|
370
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : Ue(Object(t)).forEach(function(n) {
|
|
368
371
|
Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
|
|
369
372
|
});
|
|
370
373
|
}
|
|
371
374
|
return o;
|
|
372
375
|
}
|
|
373
|
-
function
|
|
376
|
+
function It() {
|
|
374
377
|
try {
|
|
375
378
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
376
379
|
}));
|
|
377
380
|
} catch {
|
|
378
381
|
}
|
|
379
|
-
return (
|
|
382
|
+
return (It = function() {
|
|
380
383
|
return !!o;
|
|
381
384
|
})();
|
|
382
385
|
}
|
|
383
|
-
p(
|
|
384
|
-
var
|
|
386
|
+
p(Be, "defaultProps", { disabled: !1, isControlled: !1, mode: "edges", scrollToColumn: 0, scrollToRow: 0 }), ce(Be);
|
|
387
|
+
var Pt = function() {
|
|
385
388
|
function o() {
|
|
386
389
|
var e, t, n, r;
|
|
387
390
|
G(this, o);
|
|
388
391
|
for (var l = arguments.length, i = new Array(l), a = 0; a < l; a++) i[a] = arguments[a];
|
|
389
|
-
return t = this, n = o, r = [].concat(i), n =
|
|
392
|
+
return t = this, n = o, r = [].concat(i), n = P(n), p(e = H(t, It() ? Reflect.construct(n, r || [], P(t).constructor) : n.apply(t, r)), "state", { height: e.props.defaultHeight || 0, width: e.props.defaultWidth || 0 }), p(e, "_parentNode", void 0), p(e, "_autoSizer", void 0), p(e, "_window", void 0), p(e, "_detectElementResize", void 0), p(e, "_onResize", function() {
|
|
390
393
|
var s = e.props, c = s.disableHeight, u = s.disableWidth, d = s.onResize;
|
|
391
394
|
if (e._parentNode) {
|
|
392
|
-
var f = e._parentNode.offsetHeight || 0, h = e._parentNode.offsetWidth || 0, g = (e._window || window).getComputedStyle(e._parentNode) || {}, v = parseInt(g.paddingLeft, 10) || 0, _ = parseInt(g.paddingRight, 10) || 0, S = parseInt(g.paddingTop, 10) || 0, m = parseInt(g.paddingBottom, 10) || 0,
|
|
393
|
-
(!c && e.state.height !==
|
|
395
|
+
var f = e._parentNode.offsetHeight || 0, h = e._parentNode.offsetWidth || 0, g = (e._window || window).getComputedStyle(e._parentNode) || {}, v = parseInt(g.paddingLeft, 10) || 0, _ = parseInt(g.paddingRight, 10) || 0, S = parseInt(g.paddingTop, 10) || 0, m = parseInt(g.paddingBottom, 10) || 0, y = f - S - m, w = h - v - _;
|
|
396
|
+
(!c && e.state.height !== y || !u && e.state.width !== w) && (e.setState({ height: f - S - m, width: h - v - _ }), d({ height: f, width: h }));
|
|
394
397
|
}
|
|
395
398
|
}), p(e, "_setRef", function(s) {
|
|
396
399
|
e._autoSizer = s;
|
|
@@ -398,32 +401,32 @@ var It = function() {
|
|
|
398
401
|
}
|
|
399
402
|
return D(o, x.Component), A(o, [{ key: "componentDidMount", value: function() {
|
|
400
403
|
var e = this.props.nonce;
|
|
401
|
-
this._autoSizer && this._autoSizer.parentNode && this._autoSizer.parentNode.ownerDocument && this._autoSizer.parentNode.ownerDocument.defaultView && this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement && (this._parentNode = this._autoSizer.parentNode, this._window = this._autoSizer.parentNode.ownerDocument.defaultView, this._detectElementResize =
|
|
404
|
+
this._autoSizer && this._autoSizer.parentNode && this._autoSizer.parentNode.ownerDocument && this._autoSizer.parentNode.ownerDocument.defaultView && this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement && (this._parentNode = this._autoSizer.parentNode, this._window = this._autoSizer.parentNode.ownerDocument.defaultView, this._detectElementResize = zt(e, this._window), this._detectElementResize.addResizeListener(this._parentNode, this._onResize), this._onResize());
|
|
402
405
|
} }, { key: "componentWillUnmount", value: function() {
|
|
403
406
|
this._detectElementResize && this._parentNode && this._detectElementResize.removeResizeListener(this._parentNode, this._onResize);
|
|
404
407
|
} }, { key: "render", value: function() {
|
|
405
408
|
var e = this.props, t = e.children, n = e.className, r = e.disableHeight, l = e.disableWidth, i = e.style, a = this.state, s = a.height, c = a.width, u = { overflow: "visible" }, d = {};
|
|
406
|
-
return r || (u.height = 0, d.height = s), l || (u.width = 0, d.width = c), x.createElement("div", { className: n, ref: this._setRef, style:
|
|
409
|
+
return r || (u.height = 0, d.height = s), l || (u.width = 0, d.width = c), x.createElement("div", { className: n, ref: this._setRef, style: Ve(Ve({}, u), i) }, t(d));
|
|
407
410
|
} }]);
|
|
408
411
|
}();
|
|
409
|
-
function
|
|
412
|
+
function Ot() {
|
|
410
413
|
try {
|
|
411
414
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
412
415
|
}));
|
|
413
416
|
} catch {
|
|
414
417
|
}
|
|
415
|
-
return (
|
|
418
|
+
return (Ot = function() {
|
|
416
419
|
return !!o;
|
|
417
420
|
})();
|
|
418
421
|
}
|
|
419
|
-
p(
|
|
422
|
+
p(Pt, "defaultProps", { onResize: function() {
|
|
420
423
|
}, disableHeight: !1, disableWidth: !1, style: {} });
|
|
421
|
-
var
|
|
424
|
+
var bo = function() {
|
|
422
425
|
function o() {
|
|
423
426
|
var e, t, n, r;
|
|
424
427
|
G(this, o);
|
|
425
428
|
for (var l = arguments.length, i = new Array(l), a = 0; a < l; a++) i[a] = arguments[a];
|
|
426
|
-
return t = this, n = o, r = [].concat(i), n =
|
|
429
|
+
return t = this, n = o, r = [].concat(i), n = P(n), p(e = H(t, Ot() ? Reflect.construct(n, r || [], P(t).constructor) : n.apply(t, r)), "_child", x.createRef()), p(e, "_measure", function() {
|
|
427
430
|
var s = e.props, c = s.cache, u = s.columnIndex, d = u === void 0 ? 0 : u, f = s.parent, h = s.rowIndex, g = h === void 0 ? e.props.index || 0 : h, v = e._getCellMeasurements(), _ = v.height, S = v.width;
|
|
428
431
|
_ === c.getHeight(g, d) && S === c.getWidth(g, d) || (c.set(g, d, S, _), f && typeof f.recomputeGridSize == "function" && f.recomputeGridSize({ columnIndex: d, rowIndex: g }));
|
|
429
432
|
}), p(e, "_registerChild", function(s) {
|
|
@@ -436,7 +439,7 @@ var Ro = function() {
|
|
|
436
439
|
this._maybeMeasureCell();
|
|
437
440
|
} }, { key: "render", value: function() {
|
|
438
441
|
var e = this, t = this.props.children, n = typeof t == "function" ? t({ measure: this._measure, registerChild: this._registerChild }) : t;
|
|
439
|
-
return n === null ? n :
|
|
442
|
+
return n === null ? n : go(n, { ref: function(r) {
|
|
440
443
|
typeof n.ref == "function" ? n.ref(r) : n.ref && (n.ref.current = r), e._child.current = r;
|
|
441
444
|
} });
|
|
442
445
|
} }, { key: "_getCellMeasurements", value: function() {
|
|
@@ -456,7 +459,7 @@ var Ro = function() {
|
|
|
456
459
|
}
|
|
457
460
|
} }]);
|
|
458
461
|
}();
|
|
459
|
-
function
|
|
462
|
+
function Q() {
|
|
460
463
|
var o = !(arguments.length > 0 && arguments[0] !== void 0) || arguments[0], e = {};
|
|
461
464
|
return function(t) {
|
|
462
465
|
var n = t.callback, r = t.indices, l = Object.keys(r), i = !o || l.every(function(s) {
|
|
@@ -469,17 +472,17 @@ function Y() {
|
|
|
469
472
|
e = r, i && a && n(r);
|
|
470
473
|
};
|
|
471
474
|
}
|
|
472
|
-
p(
|
|
473
|
-
const
|
|
474
|
-
var
|
|
475
|
-
function
|
|
476
|
-
if ((!
|
|
475
|
+
p(bo, "__internalCellMeasurerFlag", !1);
|
|
476
|
+
const To = !(typeof window > "u" || !window.document || !window.document.createElement);
|
|
477
|
+
var pe;
|
|
478
|
+
function be(o) {
|
|
479
|
+
if ((!pe && pe !== 0 || o) && To) {
|
|
477
480
|
var e = document.createElement("div");
|
|
478
|
-
e.style.position = "absolute", e.style.top = "-9999px", e.style.width = "50px", e.style.height = "50px", e.style.overflow = "scroll", document.body.appendChild(e),
|
|
481
|
+
e.style.position = "absolute", e.style.top = "-9999px", e.style.width = "50px", e.style.height = "50px", e.style.overflow = "scroll", document.body.appendChild(e), pe = e.offsetWidth - e.clientWidth, document.body.removeChild(e);
|
|
479
482
|
}
|
|
480
|
-
return
|
|
483
|
+
return pe;
|
|
481
484
|
}
|
|
482
|
-
function
|
|
485
|
+
function qe(o, e) {
|
|
483
486
|
var t = Object.keys(o);
|
|
484
487
|
if (Object.getOwnPropertySymbols) {
|
|
485
488
|
var n = Object.getOwnPropertySymbols(o);
|
|
@@ -489,33 +492,33 @@ function Ve(o, e) {
|
|
|
489
492
|
}
|
|
490
493
|
return t;
|
|
491
494
|
}
|
|
492
|
-
function
|
|
495
|
+
function Ke(o) {
|
|
493
496
|
for (var e = 1; e < arguments.length; e++) {
|
|
494
497
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
495
|
-
e % 2 ?
|
|
498
|
+
e % 2 ? qe(Object(t), !0).forEach(function(n) {
|
|
496
499
|
p(o, n, t[n]);
|
|
497
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) :
|
|
500
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : qe(Object(t)).forEach(function(n) {
|
|
498
501
|
Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
|
|
499
502
|
});
|
|
500
503
|
}
|
|
501
504
|
return o;
|
|
502
505
|
}
|
|
503
|
-
function
|
|
506
|
+
function kt() {
|
|
504
507
|
try {
|
|
505
508
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
506
509
|
}));
|
|
507
510
|
} catch {
|
|
508
511
|
}
|
|
509
|
-
return (
|
|
512
|
+
return (kt = function() {
|
|
510
513
|
return !!o;
|
|
511
514
|
})();
|
|
512
515
|
}
|
|
513
|
-
var
|
|
516
|
+
var zo = "observed", te = "requested", ve = function() {
|
|
514
517
|
function o() {
|
|
515
518
|
var e, t, n, r;
|
|
516
519
|
G(this, o);
|
|
517
520
|
for (var l = arguments.length, i = new Array(l), a = 0; a < l; a++) i[a] = arguments[a];
|
|
518
|
-
return t = this, n = o, r = [].concat(i), n =
|
|
521
|
+
return t = this, n = o, r = [].concat(i), n = P(n), p(e = H(t, kt() ? Reflect.construct(n, r || [], P(t).constructor) : n.apply(t, r)), "state", { isScrolling: !1, scrollLeft: 0, scrollTop: 0 }), p(e, "_calculateSizeAndPositionDataOnNextUpdate", !1), p(e, "_onSectionRenderedMemoizer", Q()), p(e, "_onScrollMemoizer", Q(!1)), p(e, "_invokeOnSectionRenderedHelper", function() {
|
|
519
522
|
var s = e.props, c = s.cellLayoutManager, u = s.onSectionRendered;
|
|
520
523
|
e._onSectionRenderedMemoizer({ callback: u, indices: { indices: c.getLastRenderedIndices() } });
|
|
521
524
|
}), p(e, "_setScrollingContainerRef", function(s) {
|
|
@@ -529,32 +532,32 @@ var To = "observed", Z = "requested", pe = function() {
|
|
|
529
532
|
}), p(e, "_onScroll", function(s) {
|
|
530
533
|
if (s.target === e._scrollingContainer) {
|
|
531
534
|
e._enablePointerEventsAfterDelay();
|
|
532
|
-
var c = e.props, u = c.cellLayoutManager, d = c.height, f = c.isScrollingChange, h = c.width, g = e._scrollbarSize, v = u.getTotalSize(), _ = v.height, S = v.width, m = Math.max(0, Math.min(S - h + g, s.target.scrollLeft)),
|
|
533
|
-
if (e.state.scrollLeft !== m || e.state.scrollTop !==
|
|
534
|
-
var
|
|
535
|
-
e.state.isScrolling || f(!0), e.setState({ isScrolling: !0, scrollLeft: m, scrollPositionChangeReason:
|
|
535
|
+
var c = e.props, u = c.cellLayoutManager, d = c.height, f = c.isScrollingChange, h = c.width, g = e._scrollbarSize, v = u.getTotalSize(), _ = v.height, S = v.width, m = Math.max(0, Math.min(S - h + g, s.target.scrollLeft)), y = Math.max(0, Math.min(_ - d + g, s.target.scrollTop));
|
|
536
|
+
if (e.state.scrollLeft !== m || e.state.scrollTop !== y) {
|
|
537
|
+
var w = s.cancelable ? zo : te;
|
|
538
|
+
e.state.isScrolling || f(!0), e.setState({ isScrolling: !0, scrollLeft: m, scrollPositionChangeReason: w, scrollTop: y });
|
|
536
539
|
}
|
|
537
|
-
e._invokeOnScrollMemoizer({ scrollLeft: m, scrollTop:
|
|
540
|
+
e._invokeOnScrollMemoizer({ scrollLeft: m, scrollTop: y, totalWidth: S, totalHeight: _ });
|
|
538
541
|
}
|
|
539
|
-
}), e._scrollbarSize =
|
|
542
|
+
}), e._scrollbarSize = be(), e._scrollbarSize === void 0 ? (e._scrollbarSizeMeasured = !1, e._scrollbarSize = 0) : e._scrollbarSizeMeasured = !0, e;
|
|
540
543
|
}
|
|
541
544
|
return D(o, x.PureComponent), A(o, [{ key: "recomputeCellSizesAndPositions", value: function() {
|
|
542
545
|
this._calculateSizeAndPositionDataOnNextUpdate = !0, this.forceUpdate();
|
|
543
546
|
} }, { key: "componentDidMount", value: function() {
|
|
544
547
|
var e = this.props, t = e.cellLayoutManager, n = e.scrollLeft, r = e.scrollToCell, l = e.scrollTop;
|
|
545
|
-
this._scrollbarSizeMeasured || (this._scrollbarSize =
|
|
548
|
+
this._scrollbarSizeMeasured || (this._scrollbarSize = be(), this._scrollbarSizeMeasured = !0, this.setState({})), r >= 0 ? this._updateScrollPositionForScrollToCell() : (n >= 0 || l >= 0) && this._setScrollPosition({ scrollLeft: n, scrollTop: l }), this._invokeOnSectionRenderedHelper();
|
|
546
549
|
var i = t.getTotalSize(), a = i.height, s = i.width;
|
|
547
550
|
this._invokeOnScrollMemoizer({ scrollLeft: n || 0, scrollTop: l || 0, totalHeight: a, totalWidth: s });
|
|
548
551
|
} }, { key: "componentDidUpdate", value: function(e, t) {
|
|
549
552
|
var n = this.props, r = n.height, l = n.scrollToAlignment, i = n.scrollToCell, a = n.width, s = this.state, c = s.scrollLeft, u = s.scrollPositionChangeReason, d = s.scrollTop;
|
|
550
|
-
u ===
|
|
553
|
+
u === te && (c >= 0 && c !== t.scrollLeft && c !== this._scrollingContainer.scrollLeft && (this._scrollingContainer.scrollLeft = c), d >= 0 && d !== t.scrollTop && d !== this._scrollingContainer.scrollTop && (this._scrollingContainer.scrollTop = d)), r === e.height && l === e.scrollToAlignment && i === e.scrollToCell && a === e.width || this._updateScrollPositionForScrollToCell(), this._invokeOnSectionRenderedHelper();
|
|
551
554
|
} }, { key: "componentWillUnmount", value: function() {
|
|
552
555
|
this._disablePointerEventsTimeoutId && clearTimeout(this._disablePointerEventsTimeoutId);
|
|
553
556
|
} }, { key: "render", value: function() {
|
|
554
557
|
var e = this.props, t = e.autoHeight, n = e.cellCount, r = e.cellLayoutManager, l = e.className, i = e.height, a = e.horizontalOverscanSize, s = e.id, c = e.noContentRenderer, u = e.style, d = e.verticalOverscanSize, f = e.width, h = this.state, g = h.isScrolling, v = h.scrollLeft, _ = h.scrollTop;
|
|
555
558
|
(this._lastRenderedCellCount !== n || this._lastRenderedCellLayoutManager !== r || this._calculateSizeAndPositionDataOnNextUpdate) && (this._lastRenderedCellCount = n, this._lastRenderedCellLayoutManager = r, this._calculateSizeAndPositionDataOnNextUpdate = !1, r.calculateSizeAndPositionData());
|
|
556
|
-
var S = r.getTotalSize(), m = S.height,
|
|
557
|
-
return
|
|
559
|
+
var S = r.getTotalSize(), m = S.height, y = S.width, w = Math.max(0, v - a), C = Math.max(0, _ - d), R = Math.min(y, v + f + a), z = Math.min(m, _ + i + d), b = i > 0 && f > 0 ? r.cellRenderers({ height: z - C, isScrolling: g, width: R - w, x: w, y: C }) : [], I = { boxSizing: "border-box", direction: "ltr", height: t ? "auto" : i, position: "relative", WebkitOverflowScrolling: "touch", width: f, willChange: "transform" }, O = m > i ? this._scrollbarSize : 0, T = y > f ? this._scrollbarSize : 0;
|
|
560
|
+
return I.overflowX = y + O <= f ? "hidden" : "auto", I.overflowY = m + T <= i ? "hidden" : "auto", x.createElement("div", { ref: this._setScrollingContainerRef, "aria-label": this.props["aria-label"], className: N("ReactVirtualized__Collection", l), id: s, onScroll: this._onScroll, role: "grid", style: Ke(Ke({}, I), u), tabIndex: 0 }, n > 0 && x.createElement("div", { className: "ReactVirtualized__Collection__innerScrollContainer", style: { height: m, maxHeight: m, maxWidth: y, overflow: "hidden", pointerEvents: g ? "none" : "", width: y } }, b), n === 0 && c());
|
|
558
561
|
} }, { key: "_enablePointerEventsAfterDelay", value: function() {
|
|
559
562
|
var e = this;
|
|
560
563
|
this._disablePointerEventsTimeoutId && clearTimeout(this._disablePointerEventsTimeoutId), this._disablePointerEventsTimeoutId = setTimeout(function() {
|
|
@@ -567,20 +570,20 @@ var To = "observed", Z = "requested", pe = function() {
|
|
|
567
570
|
(0, u.onScroll)({ clientHeight: d, clientWidth: u.width, scrollHeight: l, scrollLeft: s, scrollTop: c, scrollWidth: i });
|
|
568
571
|
}, indices: { scrollLeft: n, scrollTop: r } });
|
|
569
572
|
} }, { key: "_setScrollPosition", value: function(e) {
|
|
570
|
-
var t = e.scrollLeft, n = e.scrollTop, r = { scrollPositionChangeReason:
|
|
573
|
+
var t = e.scrollLeft, n = e.scrollTop, r = { scrollPositionChangeReason: te };
|
|
571
574
|
t >= 0 && (r.scrollLeft = t), n >= 0 && (r.scrollTop = n), (t >= 0 && t !== this.state.scrollLeft || n >= 0 && n !== this.state.scrollTop) && this.setState(r);
|
|
572
575
|
} }], [{ key: "getDerivedStateFromProps", value: function(e, t) {
|
|
573
|
-
return e.cellCount !== 0 || t.scrollLeft === 0 && t.scrollTop === 0 ? e.scrollLeft !== t.scrollLeft || e.scrollTop !== t.scrollTop ? { scrollLeft: e.scrollLeft != null ? e.scrollLeft : t.scrollLeft, scrollTop: e.scrollTop != null ? e.scrollTop : t.scrollTop, scrollPositionChangeReason:
|
|
576
|
+
return e.cellCount !== 0 || t.scrollLeft === 0 && t.scrollTop === 0 ? e.scrollLeft !== t.scrollLeft || e.scrollTop !== t.scrollTop ? { scrollLeft: e.scrollLeft != null ? e.scrollLeft : t.scrollLeft, scrollTop: e.scrollTop != null ? e.scrollTop : t.scrollTop, scrollPositionChangeReason: te } : null : { scrollLeft: 0, scrollTop: 0, scrollPositionChangeReason: te };
|
|
574
577
|
} }]);
|
|
575
578
|
}();
|
|
576
|
-
p(
|
|
579
|
+
p(ve, "defaultProps", { "aria-label": "grid", horizontalOverscanSize: 0, noContentRenderer: function() {
|
|
577
580
|
return null;
|
|
578
581
|
}, onScroll: function() {
|
|
579
582
|
return null;
|
|
580
583
|
}, onSectionRendered: function() {
|
|
581
584
|
return null;
|
|
582
|
-
}, scrollToAlignment: "auto", scrollToCell: -1, style: {}, verticalOverscanSize: 0 }),
|
|
583
|
-
var
|
|
585
|
+
}, scrollToAlignment: "auto", scrollToCell: -1, style: {}, verticalOverscanSize: 0 }), ve.propTypes = {}, ce(ve);
|
|
586
|
+
var Io = function() {
|
|
584
587
|
return A(function o(e) {
|
|
585
588
|
var t = e.height, n = e.width, r = e.x, l = e.y;
|
|
586
589
|
G(this, o), this.height = t, this.width = n, this.x = r, this.y = l, this._indexMap = {}, this._indices = [];
|
|
@@ -592,7 +595,7 @@ var zo = function() {
|
|
|
592
595
|
} }, { key: "toString", value: function() {
|
|
593
596
|
return "".concat(this.x, ",").concat(this.y, " ").concat(this.width, "x").concat(this.height);
|
|
594
597
|
} }]);
|
|
595
|
-
}(),
|
|
598
|
+
}(), Po = function() {
|
|
596
599
|
return A(function o() {
|
|
597
600
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 100;
|
|
598
601
|
G(this, o), this._sectionSize = e, this._cellMetadata = [], this._sections = {};
|
|
@@ -611,7 +614,7 @@ var zo = function() {
|
|
|
611
614
|
} }, { key: "getSections", value: function(o) {
|
|
612
615
|
for (var e = o.height, t = o.width, n = o.x, r = o.y, l = Math.floor(n / this._sectionSize), i = Math.floor((n + t - 1) / this._sectionSize), a = Math.floor(r / this._sectionSize), s = Math.floor((r + e - 1) / this._sectionSize), c = [], u = l; u <= i; u++) for (var d = a; d <= s; d++) {
|
|
613
616
|
var f = "".concat(u, ".").concat(d);
|
|
614
|
-
this._sections[f] || (this._sections[f] = new
|
|
617
|
+
this._sections[f] || (this._sections[f] = new Io({ height: this._sectionSize, width: this._sectionSize, x: u * this._sectionSize, y: d * this._sectionSize })), c.push(this._sections[f]);
|
|
615
618
|
}
|
|
616
619
|
return c;
|
|
617
620
|
} }, { key: "getTotalSectionCount", value: function() {
|
|
@@ -628,7 +631,7 @@ var zo = function() {
|
|
|
628
631
|
});
|
|
629
632
|
} }]);
|
|
630
633
|
}();
|
|
631
|
-
function
|
|
634
|
+
function $e(o) {
|
|
632
635
|
var e = o.align, t = e === void 0 ? "auto" : e, n = o.cellOffset, r = o.cellSize, l = o.containerSize, i = o.currentOffset, a = n, s = a - l + r;
|
|
633
636
|
switch (t) {
|
|
634
637
|
case "start":
|
|
@@ -641,20 +644,20 @@ function Ke(o) {
|
|
|
641
644
|
return Math.max(s, Math.min(a, i));
|
|
642
645
|
}
|
|
643
646
|
}
|
|
644
|
-
function
|
|
647
|
+
function Mt() {
|
|
645
648
|
try {
|
|
646
649
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
647
650
|
}));
|
|
648
651
|
} catch {
|
|
649
652
|
}
|
|
650
|
-
return (
|
|
653
|
+
return (Mt = function() {
|
|
651
654
|
return !!o;
|
|
652
655
|
})();
|
|
653
656
|
}
|
|
654
|
-
var
|
|
657
|
+
var Xe = function() {
|
|
655
658
|
function o(e, t) {
|
|
656
659
|
var n, r, l, i;
|
|
657
|
-
return G(this, o), r = this, i = [e, t], l =
|
|
660
|
+
return G(this, o), r = this, i = [e, t], l = P(l = o), (n = H(r, Mt() ? Reflect.construct(l, i || [], P(r).constructor) : l.apply(r, i)))._cellMetadata = [], n._lastRenderedCellIndices = [], n._cellCache = [], n._isScrollingChange = n._isScrollingChange.bind(n), n._setCollectionViewRef = n._setCollectionViewRef.bind(n), n;
|
|
658
661
|
}
|
|
659
662
|
return D(o, x.PureComponent), A(o, [{ key: "forceUpdate", value: function() {
|
|
660
663
|
this._collectionView !== void 0 && this._collectionView.forceUpdate();
|
|
@@ -664,10 +667,10 @@ var $e = function() {
|
|
|
664
667
|
var e = U({}, (function(t) {
|
|
665
668
|
if (t == null) throw new TypeError("Cannot destructure " + t);
|
|
666
669
|
}(this.props), this.props));
|
|
667
|
-
return x.createElement(
|
|
670
|
+
return x.createElement(ve, U({ cellLayoutManager: this, isScrollingChange: this._isScrollingChange, ref: this._setCollectionViewRef }, e));
|
|
668
671
|
} }, { key: "calculateSizeAndPositionData", value: function() {
|
|
669
672
|
var e = this.props, t = function(n) {
|
|
670
|
-
for (var r = n.cellCount, l = n.cellSizeAndPositionGetter, i = n.sectionSize, a = [], s = new
|
|
673
|
+
for (var r = n.cellCount, l = n.cellSizeAndPositionGetter, i = n.sectionSize, a = [], s = new Po(i), c = 0, u = 0, d = 0; d < r; d++) {
|
|
671
674
|
var f = l({ index: d });
|
|
672
675
|
if (f.height == null || isNaN(f.height) || f.width == null || isNaN(f.width) || f.x == null || isNaN(f.x) || f.y == null || isNaN(f.y)) throw Error("Invalid metadata returned for cell ".concat(d, `:
|
|
673
676
|
x:`).concat(f.x, ", y:").concat(f.y, ", width:").concat(f.width, ", height:").concat(f.height));
|
|
@@ -682,7 +685,7 @@ var $e = function() {
|
|
|
682
685
|
var t = e.align, n = e.cellIndex, r = e.height, l = e.scrollLeft, i = e.scrollTop, a = e.width, s = this.props.cellCount;
|
|
683
686
|
if (n >= 0 && n < s) {
|
|
684
687
|
var c = this._cellMetadata[n];
|
|
685
|
-
l =
|
|
688
|
+
l = $e({ align: t, cellOffset: c.x, cellSize: c.width, containerSize: a, currentOffset: l }), i = $e({ align: t, cellOffset: c.y, cellSize: c.height, containerSize: r, currentOffset: i });
|
|
686
689
|
}
|
|
687
690
|
return { scrollLeft: l, scrollTop: i };
|
|
688
691
|
} }, { key: "getTotalSize", value: function() {
|
|
@@ -699,30 +702,30 @@ var $e = function() {
|
|
|
699
702
|
this._collectionView = e;
|
|
700
703
|
} }]);
|
|
701
704
|
}();
|
|
702
|
-
function
|
|
705
|
+
function Lt() {
|
|
703
706
|
try {
|
|
704
707
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
705
708
|
}));
|
|
706
709
|
} catch {
|
|
707
710
|
}
|
|
708
|
-
return (
|
|
711
|
+
return (Lt = function() {
|
|
709
712
|
return !!o;
|
|
710
713
|
})();
|
|
711
714
|
}
|
|
712
|
-
function
|
|
715
|
+
function Ye(o) {
|
|
713
716
|
var e = o.cellCount, t = o.cellSize, n = o.computeMetadataCallback, r = o.computeMetadataCallbackProps, l = o.nextCellsCount, i = o.nextCellSize, a = o.nextScrollToIndex, s = o.scrollToIndex, c = o.updateScrollOffsetForScrollToIndex;
|
|
714
717
|
e === l && (typeof t != "number" && typeof i != "number" || t === i) || (n(r), s >= 0 && s === a && c());
|
|
715
718
|
}
|
|
716
|
-
function
|
|
719
|
+
function ne(o, e) {
|
|
717
720
|
if (o == null) return {};
|
|
718
|
-
var t, n, r =
|
|
721
|
+
var t, n, r = ho(o, e);
|
|
719
722
|
if (Object.getOwnPropertySymbols) {
|
|
720
723
|
var l = Object.getOwnPropertySymbols(o);
|
|
721
724
|
for (n = 0; n < l.length; n++) t = l[n], e.indexOf(t) === -1 && {}.propertyIsEnumerable.call(o, t) && (r[t] = o[t]);
|
|
722
725
|
}
|
|
723
726
|
return r;
|
|
724
727
|
}
|
|
725
|
-
p(
|
|
728
|
+
p(Xe, "defaultProps", { "aria-label": "grid", cellGroupRenderer: function(o) {
|
|
726
729
|
var e = o.cellCache, t = o.cellRenderer, n = o.cellSizeAndPositionGetter, r = o.indices, l = o.isScrolling;
|
|
727
730
|
return r.map(function(i) {
|
|
728
731
|
var a = n({ index: i }), s = { index: i, isScrolling: l, key: i, style: { height: a.height, left: a.x, position: "absolute", top: a.y, width: a.width } };
|
|
@@ -730,10 +733,10 @@ p($e, "defaultProps", { "aria-label": "grid", cellGroupRenderer: function(o) {
|
|
|
730
733
|
}).filter(function(i) {
|
|
731
734
|
return !!i;
|
|
732
735
|
});
|
|
733
|
-
} }),
|
|
736
|
+
} }), Xe.propTypes = {}, function() {
|
|
734
737
|
function o(e, t) {
|
|
735
738
|
var n, r, l, i;
|
|
736
|
-
return G(this, o), r = this, i = [e, t], l =
|
|
739
|
+
return G(this, o), r = this, i = [e, t], l = P(l = o), (n = H(r, Lt() ? Reflect.construct(l, i || [], P(r).constructor) : l.apply(r, i)))._registerChild = n._registerChild.bind(n), n;
|
|
737
740
|
}
|
|
738
741
|
return D(o, x.PureComponent), A(o, [{ key: "componentDidUpdate", value: function(e) {
|
|
739
742
|
var t = this.props, n = t.columnMaxWidth, r = t.columnMinWidth, l = t.columnCount, i = t.width;
|
|
@@ -748,7 +751,7 @@ p($e, "defaultProps", { "aria-label": "grid", cellGroupRenderer: function(o) {
|
|
|
748
751
|
this._registeredChild = e, this._registeredChild && this._registeredChild.recomputeGridSize();
|
|
749
752
|
} }]);
|
|
750
753
|
}().propTypes = {};
|
|
751
|
-
var F,
|
|
754
|
+
var F, Oo = function() {
|
|
752
755
|
return A(function o(e) {
|
|
753
756
|
var t = e.cellCount, n = e.cellSizeGetter, r = e.estimatedCellSize;
|
|
754
757
|
G(this, o), p(this, "_cellSizeAndPositionData", {}), p(this, "_lastMeasuredIndex", -1), p(this, "_lastBatchedIndex", -1), p(this, "_cellCount", void 0), p(this, "_cellSizeGetter", void 0), p(this, "_estimatedCellSize", void 0), this._cellSizeGetter = n, this._cellCount = t, this._estimatedCellSize = r;
|
|
@@ -822,12 +825,12 @@ var F, Po = function() {
|
|
|
822
825
|
var e = this.getSizeAndPositionOfLastMeasuredCell(), t = Math.max(0, this._lastMeasuredIndex);
|
|
823
826
|
return e.offset >= o ? this._binarySearch(t, 0, o) : this._exponentialSearch(t, o);
|
|
824
827
|
} }]);
|
|
825
|
-
}(),
|
|
828
|
+
}(), ko = function() {
|
|
826
829
|
return typeof window < "u" && window.chrome ? 16777100 : 15e5;
|
|
827
|
-
},
|
|
830
|
+
}, Mo = ["maxScrollSize"], Je = function() {
|
|
828
831
|
return A(function o(e) {
|
|
829
|
-
var t = e.maxScrollSize, n = t === void 0 ?
|
|
830
|
-
G(this, o), p(this, "_cellSizeAndPositionManager", void 0), p(this, "_maxScrollSize", void 0), this._cellSizeAndPositionManager = new
|
|
832
|
+
var t = e.maxScrollSize, n = t === void 0 ? ko() : t, r = ne(e, Mo);
|
|
833
|
+
G(this, o), p(this, "_cellSizeAndPositionManager", void 0), p(this, "_maxScrollSize", void 0), this._cellSizeAndPositionManager = new Oo(r), this._maxScrollSize = n;
|
|
831
834
|
}, [{ key: "areOffsetsAdjusted", value: function() {
|
|
832
835
|
return this._cellSizeAndPositionManager.getTotalSize() > this._maxScrollSize;
|
|
833
836
|
} }, { key: "configure", value: function(o) {
|
|
@@ -872,27 +875,27 @@ var F, Po = function() {
|
|
|
872
875
|
return Math.round(l * (n - e));
|
|
873
876
|
} }]);
|
|
874
877
|
}();
|
|
875
|
-
function
|
|
878
|
+
function Ze(o) {
|
|
876
879
|
var e = o.cellSize, t = o.cellSizeAndPositionManager, n = o.previousCellsCount, r = o.previousCellSize, l = o.previousScrollToAlignment, i = o.previousScrollToIndex, a = o.previousSize, s = o.scrollOffset, c = o.scrollToAlignment, u = o.scrollToIndex, d = o.size, f = o.sizeJustIncreasedFromZero, h = o.updateScrollIndexCallback, g = t.getCellCount(), v = u >= 0 && u < g;
|
|
877
880
|
v && (d !== a || f || !r || typeof e == "number" && e !== r || c !== l || u !== i) ? h(u) : !v && g > 0 && (d < a || g < n) && s > t.getTotalSize() - d && h(g - 1);
|
|
878
881
|
}
|
|
879
|
-
var
|
|
882
|
+
var Lo = (F = typeof window < "u" ? window : typeof self < "u" ? self : {}).requestAnimationFrame || F.webkitRequestAnimationFrame || F.mozRequestAnimationFrame || F.oRequestAnimationFrame || F.msRequestAnimationFrame || function(o) {
|
|
880
883
|
return F.setTimeout(o, 1e3 / 60);
|
|
881
|
-
},
|
|
884
|
+
}, Go = F.cancelAnimationFrame || F.webkitCancelAnimationFrame || F.mozCancelAnimationFrame || F.oCancelAnimationFrame || F.msCancelAnimationFrame || function(o) {
|
|
882
885
|
F.clearTimeout(o);
|
|
883
|
-
},
|
|
884
|
-
return
|
|
885
|
-
},
|
|
886
|
+
}, Qe = Lo, Ao = Go, ee = function(o) {
|
|
887
|
+
return Ao(o.id);
|
|
888
|
+
}, Le = function(o, e) {
|
|
886
889
|
var t;
|
|
887
890
|
Promise.resolve().then(function() {
|
|
888
891
|
t = Date.now();
|
|
889
892
|
});
|
|
890
893
|
var n = function() {
|
|
891
|
-
Date.now() - t >= e ? o.call() : r.id =
|
|
892
|
-
}, r = { id:
|
|
894
|
+
Date.now() - t >= e ? o.call() : r.id = Qe(n);
|
|
895
|
+
}, r = { id: Qe(n) };
|
|
893
896
|
return r;
|
|
894
897
|
};
|
|
895
|
-
function
|
|
898
|
+
function et(o, e) {
|
|
896
899
|
var t = Object.keys(o);
|
|
897
900
|
if (Object.getOwnPropertySymbols) {
|
|
898
901
|
var n = Object.getOwnPropertySymbols(o);
|
|
@@ -905,40 +908,40 @@ function Qe(o, e) {
|
|
|
905
908
|
function j(o) {
|
|
906
909
|
for (var e = 1; e < arguments.length; e++) {
|
|
907
910
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
908
|
-
e % 2 ?
|
|
911
|
+
e % 2 ? et(Object(t), !0).forEach(function(n) {
|
|
909
912
|
p(o, n, t[n]);
|
|
910
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) :
|
|
913
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : et(Object(t)).forEach(function(n) {
|
|
911
914
|
Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
|
|
912
915
|
});
|
|
913
916
|
}
|
|
914
917
|
return o;
|
|
915
918
|
}
|
|
916
|
-
function
|
|
919
|
+
function Gt() {
|
|
917
920
|
try {
|
|
918
921
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
919
922
|
}));
|
|
920
923
|
} catch {
|
|
921
924
|
}
|
|
922
|
-
return (
|
|
925
|
+
return (Gt = function() {
|
|
923
926
|
return !!o;
|
|
924
927
|
})();
|
|
925
928
|
}
|
|
926
|
-
var
|
|
929
|
+
var Eo = "observed", tt = "requested", V = function() {
|
|
927
930
|
function o(e) {
|
|
928
931
|
var t, n, r, l;
|
|
929
|
-
G(this, o), n = this, l = [e], r =
|
|
932
|
+
G(this, o), n = this, l = [e], r = P(r = o), p(t = H(n, Gt() ? Reflect.construct(r, l || [], P(n).constructor) : r.apply(n, l)), "_onGridRenderedMemoizer", Q()), p(t, "_onScrollMemoizer", Q(!1)), p(t, "_deferredInvalidateColumnIndex", null), p(t, "_deferredInvalidateRowIndex", null), p(t, "_recomputeScrollLeftFlag", !1), p(t, "_recomputeScrollTopFlag", !1), p(t, "_horizontalScrollBarSize", 0), p(t, "_verticalScrollBarSize", 0), p(t, "_scrollbarPresenceChanged", !1), p(t, "_scrollingContainer", void 0), p(t, "_childrenToDisplay", void 0), p(t, "_columnStartIndex", void 0), p(t, "_columnStopIndex", void 0), p(t, "_rowStartIndex", void 0), p(t, "_rowStopIndex", void 0), p(t, "_renderedColumnStartIndex", 0), p(t, "_renderedColumnStopIndex", 0), p(t, "_renderedRowStartIndex", 0), p(t, "_renderedRowStopIndex", 0), p(t, "_initialScrollTop", void 0), p(t, "_initialScrollLeft", void 0), p(t, "_disablePointerEventsTimeoutId", void 0), p(t, "_styleCache", {}), p(t, "_cellCache", {}), p(t, "_debounceScrollEndedCallback", function() {
|
|
930
933
|
t._disablePointerEventsTimeoutId = null, t.setState({ isScrolling: !1, needToResetStyleCache: !1 });
|
|
931
934
|
}), p(t, "_invokeOnGridRenderedHelper", function() {
|
|
932
935
|
var s = t.props.onSectionRendered;
|
|
933
936
|
t._onGridRenderedMemoizer({ callback: s, indices: { columnOverscanStartIndex: t._columnStartIndex, columnOverscanStopIndex: t._columnStopIndex, columnStartIndex: t._renderedColumnStartIndex, columnStopIndex: t._renderedColumnStopIndex, rowOverscanStartIndex: t._rowStartIndex, rowOverscanStopIndex: t._rowStopIndex, rowStartIndex: t._renderedRowStartIndex, rowStopIndex: t._renderedRowStopIndex } });
|
|
934
937
|
}), p(t, "_setScrollingContainerRef", function(s) {
|
|
935
|
-
t._scrollingContainer = s, typeof t.props.elementRef == "function" ? t.props.elementRef(s) :
|
|
938
|
+
t._scrollingContainer = s, typeof t.props.elementRef == "function" ? t.props.elementRef(s) : $(t.props.elementRef) === "object" && (t.props.elementRef.current = s);
|
|
936
939
|
}), p(t, "_onScroll", function(s) {
|
|
937
940
|
s.target === t._scrollingContainer && t.handleScrollEvent(s.target);
|
|
938
941
|
});
|
|
939
|
-
var i = new
|
|
942
|
+
var i = new Je({ cellCount: e.columnCount, cellSizeGetter: function(s) {
|
|
940
943
|
return o._wrapSizeGetter(e.columnWidth)(s);
|
|
941
|
-
}, estimatedCellSize: o._getEstimatedColumnSize(e) }), a = new
|
|
944
|
+
}, estimatedCellSize: o._getEstimatedColumnSize(e) }), a = new Je({ cellCount: e.rowCount, cellSizeGetter: function(s) {
|
|
942
945
|
return o._wrapSizeGetter(e.rowHeight)(s);
|
|
943
946
|
}, estimatedCellSize: o._getEstimatedRowSize(e) });
|
|
944
947
|
return t.state = { instanceProps: { columnSizeAndPositionManager: i, rowSizeAndPositionManager: a, prevColumnWidth: e.columnWidth, prevRowHeight: e.rowHeight, prevColumnCount: e.columnCount, prevRowCount: e.rowCount, prevIsScrolling: e.isScrolling === !0, prevScrollToColumn: e.scrollToColumn, prevScrollToRow: e.scrollToRow, scrollbarSize: 0, scrollbarSizeMeasured: !1 }, isScrolling: !1, scrollDirectionHorizontal: 1, scrollDirectionVertical: 1, scrollLeft: 0, scrollTop: 0, scrollPositionChangeReason: null, needToResetStyleCache: !1 }, e.scrollToRow > 0 && (t._initialScrollTop = t._getCalculatedScrollTop(e, t.state)), e.scrollToColumn > 0 && (t._initialScrollLeft = t._getCalculatedScrollLeft(e, t.state)), t;
|
|
@@ -956,7 +959,7 @@ var Ao = "observed", et = "requested", V = function() {
|
|
|
956
959
|
this._debounceScrollEnded();
|
|
957
960
|
var i = this.props, a = i.autoHeight, s = i.autoWidth, c = i.height, u = i.width, d = this.state.instanceProps, f = d.scrollbarSize, h = d.rowSizeAndPositionManager.getTotalSize(), g = d.columnSizeAndPositionManager.getTotalSize(), v = Math.min(Math.max(0, g - u + f), n), _ = Math.min(Math.max(0, h - c + f), l);
|
|
958
961
|
if (this.state.scrollLeft !== v || this.state.scrollTop !== _) {
|
|
959
|
-
var S = { isScrolling: !0, scrollDirectionHorizontal: v !== this.state.scrollLeft ? v > this.state.scrollLeft ? 1 : -1 : this.state.scrollDirectionHorizontal, scrollDirectionVertical: _ !== this.state.scrollTop ? _ > this.state.scrollTop ? 1 : -1 : this.state.scrollDirectionVertical, scrollPositionChangeReason:
|
|
962
|
+
var S = { isScrolling: !0, scrollDirectionHorizontal: v !== this.state.scrollLeft ? v > this.state.scrollLeft ? 1 : -1 : this.state.scrollDirectionHorizontal, scrollDirectionVertical: _ !== this.state.scrollTop ? _ > this.state.scrollTop ? 1 : -1 : this.state.scrollDirectionVertical, scrollPositionChangeReason: Eo };
|
|
960
963
|
a || (S.scrollTop = _), s || (S.scrollLeft = v), S.needToResetStyleCache = !1, this.setState(S);
|
|
961
964
|
}
|
|
962
965
|
this._invokeOnScrollMemoizer({ scrollLeft: v, scrollTop: _, totalColumnsWidth: g, totalRowsHeight: h });
|
|
@@ -988,52 +991,52 @@ var Ao = "observed", et = "requested", V = function() {
|
|
|
988
991
|
} }, { key: "componentDidUpdate", value: function(e, t) {
|
|
989
992
|
var n = this, r = this.props, l = r.autoHeight, i = r.autoWidth, a = r.columnCount, s = r.height, c = r.rowCount, u = r.scrollToAlignment, d = r.scrollToColumn, f = r.scrollToRow, h = r.width, g = this.state, v = g.scrollLeft, _ = g.scrollPositionChangeReason, S = g.scrollTop, m = g.instanceProps;
|
|
990
993
|
this._handleInvalidatedGridSize();
|
|
991
|
-
var
|
|
992
|
-
_ ===
|
|
993
|
-
var
|
|
994
|
-
if (this._recomputeScrollLeftFlag ? (this._recomputeScrollLeftFlag = !1, this._updateScrollLeftForScrollToColumn(this.props)) :
|
|
994
|
+
var y = a > 0 && e.columnCount === 0 || c > 0 && e.rowCount === 0;
|
|
995
|
+
_ === tt && (!i && v >= 0 && (v !== this._scrollingContainer.scrollLeft || y) && (this._scrollingContainer.scrollLeft = v), !l && S >= 0 && (S !== this._scrollingContainer.scrollTop || y) && (this._scrollingContainer.scrollTop = S));
|
|
996
|
+
var w = (e.width === 0 || e.height === 0) && s > 0 && h > 0;
|
|
997
|
+
if (this._recomputeScrollLeftFlag ? (this._recomputeScrollLeftFlag = !1, this._updateScrollLeftForScrollToColumn(this.props)) : Ze({ cellSizeAndPositionManager: m.columnSizeAndPositionManager, previousCellsCount: e.columnCount, previousCellSize: e.columnWidth, previousScrollToAlignment: e.scrollToAlignment, previousScrollToIndex: e.scrollToColumn, previousSize: e.width, scrollOffset: v, scrollToAlignment: u, scrollToIndex: d, size: h, sizeJustIncreasedFromZero: w, updateScrollIndexCallback: function() {
|
|
995
998
|
return n._updateScrollLeftForScrollToColumn(n.props);
|
|
996
|
-
} }), this._recomputeScrollTopFlag ? (this._recomputeScrollTopFlag = !1, this._updateScrollTopForScrollToRow(this.props)) :
|
|
999
|
+
} }), this._recomputeScrollTopFlag ? (this._recomputeScrollTopFlag = !1, this._updateScrollTopForScrollToRow(this.props)) : Ze({ cellSizeAndPositionManager: m.rowSizeAndPositionManager, previousCellsCount: e.rowCount, previousCellSize: e.rowHeight, previousScrollToAlignment: e.scrollToAlignment, previousScrollToIndex: e.scrollToRow, previousSize: e.height, scrollOffset: S, scrollToAlignment: u, scrollToIndex: f, size: s, sizeJustIncreasedFromZero: w, updateScrollIndexCallback: function() {
|
|
997
1000
|
return n._updateScrollTopForScrollToRow(n.props);
|
|
998
1001
|
} }), this._invokeOnGridRenderedHelper(), v !== t.scrollLeft || S !== t.scrollTop) {
|
|
999
|
-
var C = m.rowSizeAndPositionManager.getTotalSize(),
|
|
1000
|
-
this._invokeOnScrollMemoizer({ scrollLeft: v, scrollTop: S, totalColumnsWidth:
|
|
1002
|
+
var C = m.rowSizeAndPositionManager.getTotalSize(), R = m.columnSizeAndPositionManager.getTotalSize();
|
|
1003
|
+
this._invokeOnScrollMemoizer({ scrollLeft: v, scrollTop: S, totalColumnsWidth: R, totalRowsHeight: C });
|
|
1001
1004
|
}
|
|
1002
1005
|
this._maybeCallOnScrollbarPresenceChange();
|
|
1003
1006
|
} }, { key: "componentWillUnmount", value: function() {
|
|
1004
|
-
this._disablePointerEventsTimeoutId &&
|
|
1007
|
+
this._disablePointerEventsTimeoutId && ee(this._disablePointerEventsTimeoutId);
|
|
1005
1008
|
} }, { key: "render", value: function() {
|
|
1006
|
-
var e = this.props, t = e.autoContainerWidth, n = e.autoHeight, r = e.autoWidth, l = e.className, i = e.containerProps, a = e.containerRole, s = e.containerStyle, c = e.height, u = e.id, d = e.noContentRenderer, f = e.role, h = e.style, g = e.tabIndex, v = e.width, _ = this.state, S = _.instanceProps, m = _.needToResetStyleCache,
|
|
1009
|
+
var e = this.props, t = e.autoContainerWidth, n = e.autoHeight, r = e.autoWidth, l = e.className, i = e.containerProps, a = e.containerRole, s = e.containerStyle, c = e.height, u = e.id, d = e.noContentRenderer, f = e.role, h = e.style, g = e.tabIndex, v = e.width, _ = this.state, S = _.instanceProps, m = _.needToResetStyleCache, y = this._isScrolling(), w = { boxSizing: "border-box", direction: "ltr", height: n ? "auto" : c, position: "relative", width: r ? "auto" : v, WebkitOverflowScrolling: "touch", willChange: "transform" };
|
|
1007
1010
|
m && (this._styleCache = {}), this.state.isScrolling || this._resetStyleCache(), this._calculateChildrenToRender(this.props, this.state);
|
|
1008
|
-
var C = S.columnSizeAndPositionManager.getTotalSize(),
|
|
1009
|
-
b === this._horizontalScrollBarSize &&
|
|
1010
|
-
var
|
|
1011
|
-
return x.createElement("div", U({ ref: this._setScrollingContainerRef }, i, { "aria-label": this.props["aria-label"], "aria-readonly": this.props["aria-readonly"], className: N("ReactVirtualized__Grid", l), id: u, onScroll: this._onScroll, role: f, style: j(j({},
|
|
1011
|
+
var C = S.columnSizeAndPositionManager.getTotalSize(), R = S.rowSizeAndPositionManager.getTotalSize(), z = R > c ? S.scrollbarSize : 0, b = C > v ? S.scrollbarSize : 0;
|
|
1012
|
+
b === this._horizontalScrollBarSize && z === this._verticalScrollBarSize || (this._horizontalScrollBarSize = b, this._verticalScrollBarSize = z, this._scrollbarPresenceChanged = !0), w.overflowX = C + z <= v ? "hidden" : "auto", w.overflowY = R + b <= c ? "hidden" : "auto";
|
|
1013
|
+
var I = this._childrenToDisplay, O = I.length === 0 && c > 0 && v > 0;
|
|
1014
|
+
return x.createElement("div", U({ ref: this._setScrollingContainerRef }, i, { "aria-label": this.props["aria-label"], "aria-readonly": this.props["aria-readonly"], className: N("ReactVirtualized__Grid", l), id: u, onScroll: this._onScroll, role: f, style: j(j({}, w), h), tabIndex: g }), I.length > 0 && x.createElement("div", { className: "ReactVirtualized__Grid__innerScrollContainer", role: a, style: j({ width: t ? "auto" : C, height: R, maxWidth: C, maxHeight: R, overflow: "hidden", pointerEvents: y ? "none" : "", position: "relative" }, s) }, I), O && d());
|
|
1012
1015
|
} }, { key: "_calculateChildrenToRender", value: function() {
|
|
1013
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.props, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.state, n = e.cellRenderer, r = e.cellRangeRenderer, l = e.columnCount, i = e.deferredMeasurementCache, a = e.height, s = e.overscanColumnCount, c = e.overscanIndicesGetter, u = e.overscanRowCount, d = e.rowCount, f = e.width, h = e.isScrollingOptOut, g = t.scrollDirectionHorizontal, v = t.scrollDirectionVertical, _ = t.instanceProps, S = this._initialScrollTop > 0 ? this._initialScrollTop : t.scrollTop, m = this._initialScrollLeft > 0 ? this._initialScrollLeft : t.scrollLeft,
|
|
1016
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.props, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.state, n = e.cellRenderer, r = e.cellRangeRenderer, l = e.columnCount, i = e.deferredMeasurementCache, a = e.height, s = e.overscanColumnCount, c = e.overscanIndicesGetter, u = e.overscanRowCount, d = e.rowCount, f = e.width, h = e.isScrollingOptOut, g = t.scrollDirectionHorizontal, v = t.scrollDirectionVertical, _ = t.instanceProps, S = this._initialScrollTop > 0 ? this._initialScrollTop : t.scrollTop, m = this._initialScrollLeft > 0 ? this._initialScrollLeft : t.scrollLeft, y = this._isScrolling(e, t);
|
|
1014
1017
|
if (this._childrenToDisplay = [], a > 0 && f > 0) {
|
|
1015
|
-
var
|
|
1016
|
-
this._renderedColumnStartIndex =
|
|
1017
|
-
var b = c({ direction: "horizontal", cellCount: l, overscanCellsCount: s, scrollDirection: g, startIndex: typeof
|
|
1018
|
+
var w = _.columnSizeAndPositionManager.getVisibleCellRange({ containerSize: f, offset: m }), C = _.rowSizeAndPositionManager.getVisibleCellRange({ containerSize: a, offset: S }), R = _.columnSizeAndPositionManager.getOffsetAdjustment({ containerSize: f, offset: m }), z = _.rowSizeAndPositionManager.getOffsetAdjustment({ containerSize: a, offset: S });
|
|
1019
|
+
this._renderedColumnStartIndex = w.start, this._renderedColumnStopIndex = w.stop, this._renderedRowStartIndex = C.start, this._renderedRowStopIndex = C.stop;
|
|
1020
|
+
var b = c({ direction: "horizontal", cellCount: l, overscanCellsCount: s, scrollDirection: g, startIndex: typeof w.start == "number" ? w.start : 0, stopIndex: typeof w.stop == "number" ? w.stop : -1 }), I = c({ direction: "vertical", cellCount: d, overscanCellsCount: u, scrollDirection: v, startIndex: typeof C.start == "number" ? C.start : 0, stopIndex: typeof C.stop == "number" ? C.stop : -1 }), O = b.overscanStartIndex, T = b.overscanStopIndex, L = I.overscanStartIndex, k = I.overscanStopIndex;
|
|
1018
1021
|
if (i) {
|
|
1019
1022
|
if (!i.hasFixedHeight()) {
|
|
1020
|
-
for (var
|
|
1021
|
-
|
|
1023
|
+
for (var E = L; E <= k; E++) if (!i.has(E, 0)) {
|
|
1024
|
+
O = 0, T = l - 1;
|
|
1022
1025
|
break;
|
|
1023
1026
|
}
|
|
1024
1027
|
}
|
|
1025
1028
|
if (!i.hasFixedWidth()) {
|
|
1026
|
-
for (var
|
|
1027
|
-
|
|
1029
|
+
for (var J = O; J <= T; J++) if (!i.has(0, J)) {
|
|
1030
|
+
L = 0, k = d - 1;
|
|
1028
1031
|
break;
|
|
1029
1032
|
}
|
|
1030
1033
|
}
|
|
1031
1034
|
}
|
|
1032
|
-
this._childrenToDisplay = r({ cellCache: this._cellCache, cellRenderer: n, columnSizeAndPositionManager: _.columnSizeAndPositionManager, columnStartIndex:
|
|
1035
|
+
this._childrenToDisplay = r({ cellCache: this._cellCache, cellRenderer: n, columnSizeAndPositionManager: _.columnSizeAndPositionManager, columnStartIndex: O, columnStopIndex: T, deferredMeasurementCache: i, horizontalOffsetAdjustment: R, isScrolling: y, isScrollingOptOut: h, parent: this, rowSizeAndPositionManager: _.rowSizeAndPositionManager, rowStartIndex: L, rowStopIndex: k, scrollLeft: m, scrollTop: S, styleCache: this._styleCache, verticalOffsetAdjustment: z, visibleColumnIndices: w, visibleRowIndices: C }), this._columnStartIndex = O, this._columnStopIndex = T, this._rowStartIndex = L, this._rowStopIndex = k;
|
|
1033
1036
|
}
|
|
1034
1037
|
} }, { key: "_debounceScrollEnded", value: function() {
|
|
1035
1038
|
var e = this.props.scrollingResetTimeInterval;
|
|
1036
|
-
this._disablePointerEventsTimeoutId &&
|
|
1039
|
+
this._disablePointerEventsTimeoutId && ee(this._disablePointerEventsTimeoutId), this._disablePointerEventsTimeoutId = Le(this._debounceScrollEndedCallback, e);
|
|
1037
1040
|
} }, { key: "_handleInvalidatedGridSize", value: function() {
|
|
1038
1041
|
if (typeof this._deferredInvalidateColumnIndex == "number" && typeof this._deferredInvalidateRowIndex == "number") {
|
|
1039
1042
|
var e = this._deferredInvalidateColumnIndex, t = this._deferredInvalidateRowIndex;
|
|
@@ -1079,11 +1082,11 @@ var Ao = "observed", et = "requested", V = function() {
|
|
|
1079
1082
|
var n = {};
|
|
1080
1083
|
e.columnCount === 0 && t.scrollLeft !== 0 || e.rowCount === 0 && t.scrollTop !== 0 ? (n.scrollLeft = 0, n.scrollTop = 0) : (e.scrollLeft !== t.scrollLeft && e.scrollToColumn < 0 || e.scrollTop !== t.scrollTop && e.scrollToRow < 0) && Object.assign(n, o._getScrollToPositionStateUpdate({ prevState: t, scrollLeft: e.scrollLeft, scrollTop: e.scrollTop }));
|
|
1081
1084
|
var r, l, i = t.instanceProps;
|
|
1082
|
-
return n.needToResetStyleCache = !1, e.columnWidth === i.prevColumnWidth && e.rowHeight === i.prevRowHeight || (n.needToResetStyleCache = !0), i.columnSizeAndPositionManager.configure({ cellCount: e.columnCount, estimatedCellSize: o._getEstimatedColumnSize(e), cellSizeGetter: o._wrapSizeGetter(e.columnWidth) }), i.rowSizeAndPositionManager.configure({ cellCount: e.rowCount, estimatedCellSize: o._getEstimatedRowSize(e), cellSizeGetter: o._wrapSizeGetter(e.rowHeight) }), i.prevColumnCount !== 0 && i.prevRowCount !== 0 || (i.prevColumnCount = 0, i.prevRowCount = 0), e.autoHeight && e.isScrolling === !1 && i.prevIsScrolling === !0 && Object.assign(n, { isScrolling: !1 }),
|
|
1085
|
+
return n.needToResetStyleCache = !1, e.columnWidth === i.prevColumnWidth && e.rowHeight === i.prevRowHeight || (n.needToResetStyleCache = !0), i.columnSizeAndPositionManager.configure({ cellCount: e.columnCount, estimatedCellSize: o._getEstimatedColumnSize(e), cellSizeGetter: o._wrapSizeGetter(e.columnWidth) }), i.rowSizeAndPositionManager.configure({ cellCount: e.rowCount, estimatedCellSize: o._getEstimatedRowSize(e), cellSizeGetter: o._wrapSizeGetter(e.rowHeight) }), i.prevColumnCount !== 0 && i.prevRowCount !== 0 || (i.prevColumnCount = 0, i.prevRowCount = 0), e.autoHeight && e.isScrolling === !1 && i.prevIsScrolling === !0 && Object.assign(n, { isScrolling: !1 }), Ye({ cellCount: i.prevColumnCount, cellSize: typeof i.prevColumnWidth == "number" ? i.prevColumnWidth : null, computeMetadataCallback: function() {
|
|
1083
1086
|
return i.columnSizeAndPositionManager.resetCell(0);
|
|
1084
1087
|
}, computeMetadataCallbackProps: e, nextCellsCount: e.columnCount, nextCellSize: typeof e.columnWidth == "number" ? e.columnWidth : null, nextScrollToIndex: e.scrollToColumn, scrollToIndex: i.prevScrollToColumn, updateScrollOffsetForScrollToIndex: function() {
|
|
1085
1088
|
r = o._getScrollLeftForScrollToColumnStateUpdate(e, t);
|
|
1086
|
-
} }),
|
|
1089
|
+
} }), Ye({ cellCount: i.prevRowCount, cellSize: typeof i.prevRowHeight == "number" ? i.prevRowHeight : null, computeMetadataCallback: function() {
|
|
1087
1090
|
return i.rowSizeAndPositionManager.resetCell(0);
|
|
1088
1091
|
}, computeMetadataCallbackProps: e, nextCellsCount: e.rowCount, nextCellSize: typeof e.rowHeight == "number" ? e.rowHeight : null, nextScrollToIndex: e.scrollToRow, scrollToIndex: i.prevScrollToRow, updateScrollOffsetForScrollToIndex: function() {
|
|
1089
1092
|
l = o._getScrollTopForScrollToRowStateUpdate(e, t);
|
|
@@ -1093,7 +1096,7 @@ var Ao = "observed", et = "requested", V = function() {
|
|
|
1093
1096
|
} }, { key: "_getEstimatedRowSize", value: function(e) {
|
|
1094
1097
|
return typeof e.rowHeight == "number" ? e.rowHeight : e.estimatedRowSize;
|
|
1095
1098
|
} }, { key: "_getScrollToPositionStateUpdate", value: function(e) {
|
|
1096
|
-
var t = e.prevState, n = e.scrollLeft, r = e.scrollTop, l = { scrollPositionChangeReason:
|
|
1099
|
+
var t = e.prevState, n = e.scrollLeft, r = e.scrollTop, l = { scrollPositionChangeReason: tt };
|
|
1097
1100
|
return typeof n == "number" && n >= 0 && (l.scrollDirectionHorizontal = n > t.scrollLeft ? 1 : -1, l.scrollLeft = n), typeof r == "number" && r >= 0 && (l.scrollDirectionVertical = r > t.scrollTop ? 1 : -1, l.scrollTop = r), typeof n == "number" && n >= 0 && n !== t.scrollLeft || typeof r == "number" && r >= 0 && r !== t.scrollTop ? l : {};
|
|
1098
1101
|
} }, { key: "_wrapSizeGetter", value: function(e) {
|
|
1099
1102
|
return typeof e == "function" ? e : function() {
|
|
@@ -1122,14 +1125,14 @@ var Ao = "observed", et = "requested", V = function() {
|
|
|
1122
1125
|
} }]);
|
|
1123
1126
|
}();
|
|
1124
1127
|
p(V, "defaultProps", { "aria-label": "grid", "aria-readonly": !0, autoContainerWidth: !1, autoHeight: !1, autoWidth: !1, cellRangeRenderer: function(o) {
|
|
1125
|
-
for (var e = o.cellCache, t = o.cellRenderer, n = o.columnSizeAndPositionManager, r = o.columnStartIndex, l = o.columnStopIndex, i = o.deferredMeasurementCache, a = o.horizontalOffsetAdjustment, s = o.isScrolling, c = o.isScrollingOptOut, u = o.parent, d = o.rowSizeAndPositionManager, f = o.rowStartIndex, h = o.rowStopIndex, g = o.styleCache, v = o.verticalOffsetAdjustment, _ = o.visibleColumnIndices, S = o.visibleRowIndices, m = [],
|
|
1126
|
-
var b = n.getSizeAndPositionOfCell(
|
|
1127
|
-
|
|
1128
|
-
var
|
|
1129
|
-
!c && !s || a || v ?
|
|
1128
|
+
for (var e = o.cellCache, t = o.cellRenderer, n = o.columnSizeAndPositionManager, r = o.columnStartIndex, l = o.columnStopIndex, i = o.deferredMeasurementCache, a = o.horizontalOffsetAdjustment, s = o.isScrolling, c = o.isScrollingOptOut, u = o.parent, d = o.rowSizeAndPositionManager, f = o.rowStartIndex, h = o.rowStopIndex, g = o.styleCache, v = o.verticalOffsetAdjustment, _ = o.visibleColumnIndices, S = o.visibleRowIndices, m = [], y = n.areOffsetsAdjusted() || d.areOffsetsAdjusted(), w = !s && !y, C = f; C <= h; C++) for (var R = d.getSizeAndPositionOfCell(C), z = r; z <= l; z++) {
|
|
1129
|
+
var b = n.getSizeAndPositionOfCell(z), I = z >= _.start && z <= _.stop && C >= S.start && C <= S.stop, O = "".concat(C, "-").concat(z), T = void 0;
|
|
1130
|
+
w && g[O] ? T = g[O] : i && !i.has(C, z) ? T = { height: "auto", left: 0, position: "absolute", top: 0, width: "auto" } : (T = { height: R.size, left: b.offset + a, position: "absolute", top: R.offset + v, width: b.size }, g[O] = T);
|
|
1131
|
+
var L = { columnIndex: z, isScrolling: s, isVisible: I, key: O, parent: u, rowIndex: C, style: T }, k = void 0;
|
|
1132
|
+
!c && !s || a || v ? k = t(L) : (e[O] || (e[O] = t(L)), k = e[O]), k != null && k !== !1 && (k.props.role || (k = yt.cloneElement(k, { role: "gridcell" })), m.push(k));
|
|
1130
1133
|
}
|
|
1131
1134
|
return m;
|
|
1132
|
-
}, containerRole: "row", containerStyle: {}, estimatedColumnSize: 100, estimatedRowSize: 30, getScrollbarSize:
|
|
1135
|
+
}, containerRole: "row", containerStyle: {}, estimatedColumnSize: 100, estimatedRowSize: 30, getScrollbarSize: be, noContentRenderer: function() {
|
|
1133
1136
|
return null;
|
|
1134
1137
|
}, onScroll: function() {
|
|
1135
1138
|
}, onScrollbarPresenceChange: function() {
|
|
@@ -1137,50 +1140,50 @@ p(V, "defaultProps", { "aria-label": "grid", "aria-readonly": !0, autoContainerW
|
|
|
1137
1140
|
}, overscanColumnCount: 0, overscanIndicesGetter: function(o) {
|
|
1138
1141
|
var e = o.cellCount, t = o.overscanCellsCount, n = o.scrollDirection, r = o.startIndex, l = o.stopIndex;
|
|
1139
1142
|
return n === 1 ? { overscanStartIndex: Math.max(0, r), overscanStopIndex: Math.min(e - 1, l + t) } : { overscanStartIndex: Math.max(0, r - t), overscanStopIndex: Math.min(e - 1, l) };
|
|
1140
|
-
}, overscanRowCount: 10, role: "grid", scrollingResetTimeInterval: 150, scrollToAlignment: "auto", scrollToColumn: -1, scrollToRow: -1, style: {}, tabIndex: 0, isScrollingOptOut: !1 }),
|
|
1141
|
-
function
|
|
1143
|
+
}, overscanRowCount: 10, role: "grid", scrollingResetTimeInterval: 150, scrollToAlignment: "auto", scrollToColumn: -1, scrollToRow: -1, style: {}, tabIndex: 0, isScrollingOptOut: !1 }), ce(V);
|
|
1144
|
+
function At(o) {
|
|
1142
1145
|
var e = o.cellCount, t = o.overscanCellsCount, n = o.scrollDirection, r = o.startIndex, l = o.stopIndex;
|
|
1143
1146
|
return t = Math.max(1, t), n === 1 ? { overscanStartIndex: Math.max(0, r - 1), overscanStopIndex: Math.min(e - 1, l + t) } : { overscanStartIndex: Math.max(0, r - t), overscanStopIndex: Math.min(e - 1, l + 1) };
|
|
1144
1147
|
}
|
|
1145
|
-
function
|
|
1148
|
+
function Te(o, e) {
|
|
1146
1149
|
(e == null || e > o.length) && (e = o.length);
|
|
1147
1150
|
for (var t = 0, n = Array(e); t < e; t++) n[t] = o[t];
|
|
1148
1151
|
return n;
|
|
1149
1152
|
}
|
|
1150
|
-
function
|
|
1153
|
+
function Et(o, e) {
|
|
1151
1154
|
if (o) {
|
|
1152
|
-
if (typeof o == "string") return
|
|
1155
|
+
if (typeof o == "string") return Te(o, e);
|
|
1153
1156
|
var t = {}.toString.call(o).slice(8, -1);
|
|
1154
|
-
return t === "Object" && o.constructor && (t = o.constructor.name), t === "Map" || t === "Set" ? Array.from(o) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ?
|
|
1157
|
+
return t === "Object" && o.constructor && (t = o.constructor.name), t === "Map" || t === "Set" ? Array.from(o) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? Te(o, e) : void 0;
|
|
1155
1158
|
}
|
|
1156
1159
|
}
|
|
1157
|
-
function
|
|
1160
|
+
function Wo(o) {
|
|
1158
1161
|
return function(e) {
|
|
1159
|
-
if (Array.isArray(e)) return
|
|
1162
|
+
if (Array.isArray(e)) return Te(e);
|
|
1160
1163
|
}(o) || function(e) {
|
|
1161
1164
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
1162
|
-
}(o) ||
|
|
1165
|
+
}(o) || Et(o) || function() {
|
|
1163
1166
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1164
1167
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1165
1168
|
}();
|
|
1166
1169
|
}
|
|
1167
|
-
function
|
|
1170
|
+
function Wt() {
|
|
1168
1171
|
try {
|
|
1169
1172
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1170
1173
|
}));
|
|
1171
1174
|
} catch {
|
|
1172
1175
|
}
|
|
1173
|
-
return (
|
|
1176
|
+
return (Wt = function() {
|
|
1174
1177
|
return !!o;
|
|
1175
1178
|
})();
|
|
1176
1179
|
}
|
|
1177
|
-
var
|
|
1180
|
+
var ot = function() {
|
|
1178
1181
|
function o(e, t) {
|
|
1179
1182
|
var n, r, l, i;
|
|
1180
|
-
return G(this, o), r = this, i = [e, t], l =
|
|
1183
|
+
return G(this, o), r = this, i = [e, t], l = P(l = o), (n = H(r, Wt() ? Reflect.construct(l, i || [], P(r).constructor) : l.apply(r, i)))._loadMoreRowsMemoizer = Q(), n._onRowsRendered = n._onRowsRendered.bind(n), n._registerChild = n._registerChild.bind(n), n;
|
|
1181
1184
|
}
|
|
1182
1185
|
return D(o, x.PureComponent), A(o, [{ key: "resetLoadMoreRowsCache", value: function(e) {
|
|
1183
|
-
this._loadMoreRowsMemoizer =
|
|
1186
|
+
this._loadMoreRowsMemoizer = Q(), e && this._doStuff(this._lastRenderedStartIndex, this._lastRenderedStopIndex);
|
|
1184
1187
|
} }, { key: "render", value: function() {
|
|
1185
1188
|
return (0, this.props.children)({ onRowsRendered: this._onRowsRendered, registerChild: this._registerChild });
|
|
1186
1189
|
} }, { key: "_loadUnloadedRanges", value: function(e) {
|
|
@@ -1200,19 +1203,19 @@ var tt = function() {
|
|
|
1200
1203
|
this._lastRenderedStartIndex = t, this._lastRenderedStopIndex = n, this._doStuff(t, n);
|
|
1201
1204
|
} }, { key: "_doStuff", value: function(e, t) {
|
|
1202
1205
|
var n, r = this, l = this.props, i = l.isRowLoaded, a = l.minimumBatchSize, s = l.rowCount, c = l.threshold, u = function(f) {
|
|
1203
|
-
for (var h = f.isRowLoaded, g = f.minimumBatchSize, v = f.rowCount, _ = f.startIndex, S = f.stopIndex, m = [],
|
|
1204
|
-
h({ index: C }) ?
|
|
1205
|
-
if (
|
|
1206
|
-
for (var
|
|
1207
|
-
m.push({ startIndex:
|
|
1206
|
+
for (var h = f.isRowLoaded, g = f.minimumBatchSize, v = f.rowCount, _ = f.startIndex, S = f.stopIndex, m = [], y = null, w = null, C = _; C <= S; C++)
|
|
1207
|
+
h({ index: C }) ? w !== null && (m.push({ startIndex: y, stopIndex: w }), y = w = null) : (w = C, y === null && (y = C));
|
|
1208
|
+
if (w !== null) {
|
|
1209
|
+
for (var R = Math.min(Math.max(w, y + g - 1), v - 1), z = w + 1; z <= R && !h({ index: z }); z++) w = z;
|
|
1210
|
+
m.push({ startIndex: y, stopIndex: w });
|
|
1208
1211
|
}
|
|
1209
1212
|
if (m.length) for (var b = m[0]; b.stopIndex - b.startIndex + 1 < g && b.startIndex > 0; ) {
|
|
1210
|
-
var
|
|
1211
|
-
if (h({ index:
|
|
1212
|
-
b.startIndex =
|
|
1213
|
+
var I = b.startIndex - 1;
|
|
1214
|
+
if (h({ index: I })) break;
|
|
1215
|
+
b.startIndex = I;
|
|
1213
1216
|
}
|
|
1214
1217
|
return m;
|
|
1215
|
-
}({ isRowLoaded: i, minimumBatchSize: a, rowCount: s, startIndex: Math.max(0, e - c), stopIndex: Math.min(s - 1, t + c) }), d = (n = []).concat.apply(n,
|
|
1218
|
+
}({ isRowLoaded: i, minimumBatchSize: a, rowCount: s, startIndex: Math.max(0, e - c), stopIndex: Math.min(s - 1, t + c) }), d = (n = []).concat.apply(n, Wo(u.map(function(f) {
|
|
1216
1219
|
return [f.startIndex, f.stopIndex];
|
|
1217
1220
|
})));
|
|
1218
1221
|
this._loadMoreRowsMemoizer({ callback: function() {
|
|
@@ -1232,13 +1235,13 @@ function Ht() {
|
|
|
1232
1235
|
return !!o;
|
|
1233
1236
|
})();
|
|
1234
1237
|
}
|
|
1235
|
-
p(
|
|
1238
|
+
p(ot, "defaultProps", { minimumBatchSize: 10, rowCount: 0, threshold: 15 }), ot.propTypes = {};
|
|
1236
1239
|
var Ho = function() {
|
|
1237
1240
|
function o() {
|
|
1238
1241
|
var e, t, n, r;
|
|
1239
1242
|
G(this, o);
|
|
1240
1243
|
for (var l = arguments.length, i = new Array(l), a = 0; a < l; a++) i[a] = arguments[a];
|
|
1241
|
-
return t = this, n = o, r = [].concat(i), n =
|
|
1244
|
+
return t = this, n = o, r = [].concat(i), n = P(n), p(e = H(t, Ht() ? Reflect.construct(n, r || [], P(t).constructor) : n.apply(t, r)), "Grid", void 0), p(e, "_cellRenderer", function(s) {
|
|
1242
1245
|
var c = s.parent, u = s.rowIndex, d = s.style, f = s.isScrolling, h = s.isVisible, g = s.key, v = e.props.rowRenderer, _ = Object.getOwnPropertyDescriptor(d, "width");
|
|
1243
1246
|
return _ && _.writable && (d.width = "100%"), v({ index: u, style: d, isScrolling: f, isVisible: h, key: g, parent: c });
|
|
1244
1247
|
}), p(e, "_setRef", function(s) {
|
|
@@ -1278,7 +1281,7 @@ var Ho = function() {
|
|
|
1278
1281
|
return x.createElement(V, U({}, this.props, { autoContainerWidth: !0, cellRenderer: this._cellRenderer, className: i, columnWidth: l, columnCount: 1, noContentRenderer: n, onScroll: this._onScroll, onSectionRendered: this._onSectionRendered, ref: this._setRef, scrollToRow: r }));
|
|
1279
1282
|
} }]);
|
|
1280
1283
|
}();
|
|
1281
|
-
function
|
|
1284
|
+
function Do(o, e) {
|
|
1282
1285
|
return function(t) {
|
|
1283
1286
|
if (Array.isArray(t)) return t;
|
|
1284
1287
|
}(o) || function(t, n) {
|
|
@@ -1298,7 +1301,7 @@ function Wo(o, e) {
|
|
|
1298
1301
|
}
|
|
1299
1302
|
return c;
|
|
1300
1303
|
}
|
|
1301
|
-
}(o, e) ||
|
|
1304
|
+
}(o, e) || Et(o, e) || function() {
|
|
1302
1305
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1303
1306
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1304
1307
|
}();
|
|
@@ -1307,8 +1310,8 @@ p(Ho, "defaultProps", { autoHeight: !1, estimatedRowSize: 30, onScroll: function
|
|
|
1307
1310
|
}, noRowsRenderer: function() {
|
|
1308
1311
|
return null;
|
|
1309
1312
|
}, onRowsRendered: function() {
|
|
1310
|
-
}, overscanIndicesGetter:
|
|
1311
|
-
const
|
|
1313
|
+
}, overscanIndicesGetter: At, overscanRowCount: 10, scrollToAlignment: "auto", scrollToIndex: -1, style: {} });
|
|
1314
|
+
const me = { ge: function(o, e, t, n, r) {
|
|
1312
1315
|
return typeof t == "function" ? function(l, i, a, s, c) {
|
|
1313
1316
|
for (var u = a + 1; i <= a; ) {
|
|
1314
1317
|
var d = i + a >>> 1;
|
|
@@ -1381,83 +1384,83 @@ const he = { ge: function(o, e, t, n, r) {
|
|
|
1381
1384
|
return -1;
|
|
1382
1385
|
}(o, t === void 0 ? 0 : 0 | t, n === void 0 ? o.length - 1 : 0 | n, e);
|
|
1383
1386
|
} };
|
|
1384
|
-
function
|
|
1387
|
+
function Ge(o, e, t, n, r) {
|
|
1385
1388
|
this.mid = o, this.left = e, this.right = t, this.leftPoints = n, this.rightPoints = r, this.count = (e ? e.count : 0) + (t ? t.count : 0) + n.length;
|
|
1386
1389
|
}
|
|
1387
|
-
var
|
|
1388
|
-
function
|
|
1390
|
+
var oe = Ge.prototype;
|
|
1391
|
+
function we(o, e) {
|
|
1389
1392
|
o.mid = e.mid, o.left = e.left, o.right = e.right, o.leftPoints = e.leftPoints, o.rightPoints = e.rightPoints, o.count = e.count;
|
|
1390
1393
|
}
|
|
1391
|
-
function
|
|
1392
|
-
var t =
|
|
1394
|
+
function Dt(o, e) {
|
|
1395
|
+
var t = se(e);
|
|
1393
1396
|
o.mid = t.mid, o.left = t.left, o.right = t.right, o.leftPoints = t.leftPoints, o.rightPoints = t.rightPoints, o.count = t.count;
|
|
1394
1397
|
}
|
|
1395
|
-
function
|
|
1398
|
+
function nt(o, e) {
|
|
1396
1399
|
var t = o.intervals([]);
|
|
1397
|
-
t.push(e),
|
|
1400
|
+
t.push(e), Dt(o, t);
|
|
1398
1401
|
}
|
|
1399
|
-
function
|
|
1402
|
+
function rt(o, e) {
|
|
1400
1403
|
var t = o.intervals([]), n = t.indexOf(e);
|
|
1401
|
-
return n < 0 ? 0 : (t.splice(n, 1),
|
|
1404
|
+
return n < 0 ? 0 : (t.splice(n, 1), Dt(o, t), 1);
|
|
1402
1405
|
}
|
|
1403
|
-
function
|
|
1406
|
+
function it(o, e, t) {
|
|
1404
1407
|
for (var n = 0; n < o.length && o[n][0] <= e; ++n) {
|
|
1405
1408
|
var r = t(o[n]);
|
|
1406
1409
|
if (r) return r;
|
|
1407
1410
|
}
|
|
1408
1411
|
}
|
|
1409
|
-
function
|
|
1412
|
+
function lt(o, e, t) {
|
|
1410
1413
|
for (var n = o.length - 1; n >= 0 && o[n][1] >= e; --n) {
|
|
1411
1414
|
var r = t(o[n]);
|
|
1412
1415
|
if (r) return r;
|
|
1413
1416
|
}
|
|
1414
1417
|
}
|
|
1415
|
-
function
|
|
1418
|
+
function st(o, e) {
|
|
1416
1419
|
for (var t = 0; t < o.length; ++t) {
|
|
1417
1420
|
var n = e(o[t]);
|
|
1418
1421
|
if (n) return n;
|
|
1419
1422
|
}
|
|
1420
1423
|
}
|
|
1421
|
-
function
|
|
1424
|
+
function jo(o, e) {
|
|
1422
1425
|
return o - e;
|
|
1423
1426
|
}
|
|
1424
|
-
function
|
|
1427
|
+
function ze(o, e) {
|
|
1425
1428
|
var t = o[0] - e[0];
|
|
1426
1429
|
return t || o[1] - e[1];
|
|
1427
1430
|
}
|
|
1428
|
-
function
|
|
1431
|
+
function Ie(o, e) {
|
|
1429
1432
|
var t = o[1] - e[1];
|
|
1430
1433
|
return t || o[0] - e[0];
|
|
1431
1434
|
}
|
|
1432
|
-
function
|
|
1435
|
+
function se(o) {
|
|
1433
1436
|
if (o.length === 0) return null;
|
|
1434
1437
|
for (var e = [], t = 0; t < o.length; ++t) e.push(o[t][0], o[t][1]);
|
|
1435
|
-
e.sort(
|
|
1438
|
+
e.sort(jo);
|
|
1436
1439
|
var n = e[e.length >> 1], r = [], l = [], i = [];
|
|
1437
1440
|
for (t = 0; t < o.length; ++t) {
|
|
1438
1441
|
var a = o[t];
|
|
1439
1442
|
a[1] < n ? r.push(a) : n < a[0] ? l.push(a) : i.push(a);
|
|
1440
1443
|
}
|
|
1441
1444
|
var s = i, c = i.slice();
|
|
1442
|
-
return s.sort(
|
|
1445
|
+
return s.sort(ze), c.sort(Ie), new Ge(n, se(r), se(l), s, c);
|
|
1443
1446
|
}
|
|
1444
|
-
function
|
|
1447
|
+
function jt(o) {
|
|
1445
1448
|
this.root = o;
|
|
1446
1449
|
}
|
|
1447
|
-
|
|
1450
|
+
oe.intervals = function(o) {
|
|
1448
1451
|
return o.push.apply(o, this.leftPoints), this.left && this.left.intervals(o), this.right && this.right.intervals(o), o;
|
|
1449
|
-
},
|
|
1452
|
+
}, oe.insert = function(o) {
|
|
1450
1453
|
var e = this.count - this.leftPoints.length;
|
|
1451
|
-
if (this.count += 1, o[1] < this.mid) this.left ? 4 * (this.left.count + 1) > 3 * (e + 1) ?
|
|
1452
|
-
else if (o[0] > this.mid) this.right ? 4 * (this.right.count + 1) > 3 * (e + 1) ?
|
|
1454
|
+
if (this.count += 1, o[1] < this.mid) this.left ? 4 * (this.left.count + 1) > 3 * (e + 1) ? nt(this, o) : this.left.insert(o) : this.left = se([o]);
|
|
1455
|
+
else if (o[0] > this.mid) this.right ? 4 * (this.right.count + 1) > 3 * (e + 1) ? nt(this, o) : this.right.insert(o) : this.right = se([o]);
|
|
1453
1456
|
else {
|
|
1454
|
-
var t =
|
|
1457
|
+
var t = me.ge(this.leftPoints, o, ze), n = me.ge(this.rightPoints, o, Ie);
|
|
1455
1458
|
this.leftPoints.splice(t, 0, o), this.rightPoints.splice(n, 0, o);
|
|
1456
1459
|
}
|
|
1457
|
-
},
|
|
1460
|
+
}, oe.remove = function(o) {
|
|
1458
1461
|
var e = this.count - this.leftPoints;
|
|
1459
|
-
if (o[1] < this.mid) return this.left ? 4 * (this.right ? this.right.count : 0) > 3 * (e - 1) ?
|
|
1460
|
-
if (o[0] > this.mid) return this.right ? 4 * (this.left ? this.left.count : 0) > 3 * (e - 1) ?
|
|
1462
|
+
if (o[1] < this.mid) return this.left ? 4 * (this.right ? this.right.count : 0) > 3 * (e - 1) ? rt(this, o) : (l = this.left.remove(o)) === 2 ? (this.left = null, this.count -= 1, 1) : (l === 1 && (this.count -= 1), l) : 0;
|
|
1463
|
+
if (o[0] > this.mid) return this.right ? 4 * (this.left ? this.left.count : 0) > 3 * (e - 1) ? rt(this, o) : (l = this.right.remove(o)) === 2 ? (this.right = null, this.count -= 1, 1) : (l === 1 && (this.count -= 1), l) : 0;
|
|
1461
1464
|
if (this.count === 1) return this.leftPoints[0] === o ? 2 : 0;
|
|
1462
1465
|
if (this.leftPoints.length === 1 && this.leftPoints[0] === o) {
|
|
1463
1466
|
if (this.left && this.right) {
|
|
@@ -1467,54 +1470,54 @@ Q.intervals = function(o) {
|
|
|
1467
1470
|
var r = this.left, l = this.right;
|
|
1468
1471
|
t.count -= n.count, t.right = n.left, n.left = r, n.right = l;
|
|
1469
1472
|
}
|
|
1470
|
-
|
|
1471
|
-
} else this.left ?
|
|
1473
|
+
we(this, n), this.count = (this.left ? this.left.count : 0) + (this.right ? this.right.count : 0) + this.leftPoints.length;
|
|
1474
|
+
} else this.left ? we(this, this.left) : we(this, this.right);
|
|
1472
1475
|
return 1;
|
|
1473
1476
|
}
|
|
1474
|
-
for (r =
|
|
1475
|
-
for (this.count -= 1, this.leftPoints.splice(r, 1), l =
|
|
1477
|
+
for (r = me.ge(this.leftPoints, o, ze); r < this.leftPoints.length && this.leftPoints[r][0] === o[0]; ++r) if (this.leftPoints[r] === o) {
|
|
1478
|
+
for (this.count -= 1, this.leftPoints.splice(r, 1), l = me.ge(this.rightPoints, o, Ie); l < this.rightPoints.length && this.rightPoints[l][1] === o[1]; ++l) if (this.rightPoints[l] === o) return this.rightPoints.splice(l, 1), 1;
|
|
1476
1479
|
}
|
|
1477
1480
|
return 0;
|
|
1478
|
-
},
|
|
1481
|
+
}, oe.queryPoint = function(o, e) {
|
|
1479
1482
|
if (o < this.mid)
|
|
1480
|
-
return this.left && (t = this.left.queryPoint(o, e)) ? t :
|
|
1483
|
+
return this.left && (t = this.left.queryPoint(o, e)) ? t : it(this.leftPoints, o, e);
|
|
1481
1484
|
if (o > this.mid) {
|
|
1482
1485
|
var t;
|
|
1483
|
-
return this.right && (t = this.right.queryPoint(o, e)) ? t :
|
|
1486
|
+
return this.right && (t = this.right.queryPoint(o, e)) ? t : lt(this.rightPoints, o, e);
|
|
1484
1487
|
}
|
|
1485
|
-
return
|
|
1486
|
-
},
|
|
1488
|
+
return st(this.leftPoints, e);
|
|
1489
|
+
}, oe.queryInterval = function(o, e, t) {
|
|
1487
1490
|
var n;
|
|
1488
|
-
return o < this.mid && this.left && (n = this.left.queryInterval(o, e, t)) || e > this.mid && this.right && (n = this.right.queryInterval(o, e, t)) ? n : e < this.mid ?
|
|
1491
|
+
return o < this.mid && this.left && (n = this.left.queryInterval(o, e, t)) || e > this.mid && this.right && (n = this.right.queryInterval(o, e, t)) ? n : e < this.mid ? it(this.leftPoints, e, t) : o > this.mid ? lt(this.rightPoints, o, t) : st(this.leftPoints, t);
|
|
1489
1492
|
};
|
|
1490
|
-
var
|
|
1491
|
-
|
|
1492
|
-
this.root ? this.root.insert(o) : this.root = new
|
|
1493
|
-
},
|
|
1493
|
+
var Z = jt.prototype;
|
|
1494
|
+
Z.insert = function(o) {
|
|
1495
|
+
this.root ? this.root.insert(o) : this.root = new Ge(o[0], null, null, [o], [o]);
|
|
1496
|
+
}, Z.remove = function(o) {
|
|
1494
1497
|
if (this.root) {
|
|
1495
1498
|
var e = this.root.remove(o);
|
|
1496
1499
|
return e === 2 && (this.root = null), e !== 0;
|
|
1497
1500
|
}
|
|
1498
1501
|
return !1;
|
|
1499
|
-
},
|
|
1502
|
+
}, Z.queryPoint = function(o, e) {
|
|
1500
1503
|
if (this.root) return this.root.queryPoint(o, e);
|
|
1501
|
-
},
|
|
1504
|
+
}, Z.queryInterval = function(o, e, t) {
|
|
1502
1505
|
if (o <= e && this.root) return this.root.queryInterval(o, e, t);
|
|
1503
|
-
}, Object.defineProperty(
|
|
1506
|
+
}, Object.defineProperty(Z, "count", { get: function() {
|
|
1504
1507
|
return this.root ? this.root.count : 0;
|
|
1505
|
-
} }), Object.defineProperty(
|
|
1508
|
+
} }), Object.defineProperty(Z, "intervals", { get: function() {
|
|
1506
1509
|
return this.root ? this.root.intervals([]) : [];
|
|
1507
1510
|
} });
|
|
1508
|
-
var
|
|
1511
|
+
var Ce = function() {
|
|
1509
1512
|
return A(function o() {
|
|
1510
|
-
G(this, o), p(this, "_columnSizeMap", {}), p(this, "_intervalTree", new
|
|
1513
|
+
G(this, o), p(this, "_columnSizeMap", {}), p(this, "_intervalTree", new jt(null)), p(this, "_leftMap", {});
|
|
1511
1514
|
}, [{ key: "estimateTotalHeight", value: function(o, e, t) {
|
|
1512
1515
|
var n = o - this.count;
|
|
1513
1516
|
return this.tallestColumnSize + Math.ceil(n / e) * t;
|
|
1514
1517
|
} }, { key: "range", value: function(o, e, t) {
|
|
1515
1518
|
var n = this;
|
|
1516
1519
|
this._intervalTree.queryInterval(o, o + e, function(r) {
|
|
1517
|
-
var l =
|
|
1520
|
+
var l = Do(r, 3), i = l[0];
|
|
1518
1521
|
l[1];
|
|
1519
1522
|
var a = l[2];
|
|
1520
1523
|
return t(a, n._leftMap[a], i);
|
|
@@ -1541,7 +1544,7 @@ var ye = function() {
|
|
|
1541
1544
|
return e;
|
|
1542
1545
|
} }]);
|
|
1543
1546
|
}();
|
|
1544
|
-
function
|
|
1547
|
+
function at(o, e) {
|
|
1545
1548
|
var t = Object.keys(o);
|
|
1546
1549
|
if (Object.getOwnPropertySymbols) {
|
|
1547
1550
|
var n = Object.getOwnPropertySymbols(o);
|
|
@@ -1551,33 +1554,33 @@ function st(o, e) {
|
|
|
1551
1554
|
}
|
|
1552
1555
|
return t;
|
|
1553
1556
|
}
|
|
1554
|
-
function
|
|
1557
|
+
function Fo(o) {
|
|
1555
1558
|
for (var e = 1; e < arguments.length; e++) {
|
|
1556
1559
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
1557
|
-
e % 2 ?
|
|
1560
|
+
e % 2 ? at(Object(t), !0).forEach(function(n) {
|
|
1558
1561
|
p(o, n, t[n]);
|
|
1559
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) :
|
|
1562
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : at(Object(t)).forEach(function(n) {
|
|
1560
1563
|
Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
|
|
1561
1564
|
});
|
|
1562
1565
|
}
|
|
1563
1566
|
return o;
|
|
1564
1567
|
}
|
|
1565
|
-
function
|
|
1568
|
+
function Ft() {
|
|
1566
1569
|
try {
|
|
1567
1570
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1568
1571
|
}));
|
|
1569
1572
|
} catch {
|
|
1570
1573
|
}
|
|
1571
|
-
return (
|
|
1574
|
+
return (Ft = function() {
|
|
1572
1575
|
return !!o;
|
|
1573
1576
|
})();
|
|
1574
1577
|
}
|
|
1575
|
-
var
|
|
1578
|
+
var ct = function() {
|
|
1576
1579
|
function o() {
|
|
1577
1580
|
var e, t, n, r;
|
|
1578
1581
|
G(this, o);
|
|
1579
1582
|
for (var l = arguments.length, i = new Array(l), a = 0; a < l; a++) i[a] = arguments[a];
|
|
1580
|
-
return t = this, n = o, r = [].concat(i), n =
|
|
1583
|
+
return t = this, n = o, r = [].concat(i), n = P(n), p(e = H(t, Ft() ? Reflect.construct(n, r || [], P(t).constructor) : n.apply(t, r)), "state", { isScrolling: !1, scrollTop: 0 }), p(e, "_debounceResetIsScrollingId", void 0), p(e, "_invalidateOnUpdateStartIndex", null), p(e, "_invalidateOnUpdateStopIndex", null), p(e, "_positionCache", new Ce()), p(e, "_startIndex", null), p(e, "_startIndexMemoized", null), p(e, "_stopIndex", null), p(e, "_stopIndexMemoized", null), p(e, "_debounceResetIsScrollingCallback", function() {
|
|
1581
1584
|
e.setState({ isScrolling: !1 });
|
|
1582
1585
|
}), p(e, "_setScrollingContainerRef", function(s) {
|
|
1583
1586
|
e._scrollingContainer = s;
|
|
@@ -1587,25 +1590,25 @@ var at = function() {
|
|
|
1587
1590
|
}), e;
|
|
1588
1591
|
}
|
|
1589
1592
|
return D(o, x.PureComponent), A(o, [{ key: "clearCellPositions", value: function() {
|
|
1590
|
-
this._positionCache = new
|
|
1593
|
+
this._positionCache = new Ce(), this.forceUpdate();
|
|
1591
1594
|
} }, { key: "invalidateCellSizeAfterRender", value: function(e) {
|
|
1592
1595
|
var t = e.rowIndex;
|
|
1593
1596
|
this._invalidateOnUpdateStartIndex === null ? (this._invalidateOnUpdateStartIndex = t, this._invalidateOnUpdateStopIndex = t) : (this._invalidateOnUpdateStartIndex = Math.min(this._invalidateOnUpdateStartIndex, t), this._invalidateOnUpdateStopIndex = Math.max(this._invalidateOnUpdateStopIndex, t));
|
|
1594
1597
|
} }, { key: "recomputeCellPositions", value: function() {
|
|
1595
1598
|
var e = this._positionCache.count - 1;
|
|
1596
|
-
this._positionCache = new
|
|
1599
|
+
this._positionCache = new Ce(), this._populatePositionCache(0, e), this.forceUpdate();
|
|
1597
1600
|
} }, { key: "componentDidMount", value: function() {
|
|
1598
1601
|
this._checkInvalidateOnUpdate(), this._invokeOnScrollCallback(), this._invokeOnCellsRenderedCallback();
|
|
1599
1602
|
} }, { key: "componentDidUpdate", value: function(e, t) {
|
|
1600
1603
|
this._checkInvalidateOnUpdate(), this._invokeOnScrollCallback(), this._invokeOnCellsRenderedCallback(), this.props.scrollTop !== e.scrollTop && this._debounceResetIsScrolling();
|
|
1601
1604
|
} }, { key: "componentWillUnmount", value: function() {
|
|
1602
|
-
this._debounceResetIsScrollingId &&
|
|
1605
|
+
this._debounceResetIsScrollingId && ee(this._debounceResetIsScrollingId);
|
|
1603
1606
|
} }, { key: "render", value: function() {
|
|
1604
|
-
var e, t = this, n = this.props, r = n.autoHeight, l = n.cellCount, i = n.cellMeasurerCache, a = n.cellRenderer, s = n.className, c = n.height, u = n.id, d = n.keyMapper, f = n.overscanByPixels, h = n.role, g = n.style, v = n.tabIndex, _ = n.width, S = n.rowDirection, m = this.state,
|
|
1605
|
-
if (this._positionCache.range(Math.max(0,
|
|
1606
|
-
e === void 0 ? (
|
|
1607
|
-
}),
|
|
1608
|
-
return this._startIndex =
|
|
1607
|
+
var e, t = this, n = this.props, r = n.autoHeight, l = n.cellCount, i = n.cellMeasurerCache, a = n.cellRenderer, s = n.className, c = n.height, u = n.id, d = n.keyMapper, f = n.overscanByPixels, h = n.role, g = n.style, v = n.tabIndex, _ = n.width, S = n.rowDirection, m = this.state, y = m.isScrolling, w = m.scrollTop, C = [], R = this._getEstimatedTotalHeight(), z = this._positionCache.shortestColumnSize, b = this._positionCache.count, I = 0;
|
|
1608
|
+
if (this._positionCache.range(Math.max(0, w - f), c + 2 * f, function(L, k, E) {
|
|
1609
|
+
e === void 0 ? (I = L, e = L) : (I = Math.min(I, L), e = Math.max(e, L)), C.push(a({ index: L, isScrolling: y, key: d(L), parent: t, style: p(p(p(p({ height: i.getHeight(L) }, S === "ltr" ? "left" : "right", k), "position", "absolute"), "top", E), "width", i.getWidth(L)) }));
|
|
1610
|
+
}), z < w + c + f && b < l) for (var O = Math.min(l - b, Math.ceil((w + c + f - z) / i.defaultHeight * _ / i.defaultWidth)), T = b; T < b + O; T++) e = T, C.push(a({ index: T, isScrolling: y, key: d(T), parent: this, style: { width: i.getWidth(T) } }));
|
|
1611
|
+
return this._startIndex = I, this._stopIndex = e, x.createElement("div", { ref: this._setScrollingContainerRef, "aria-label": this.props["aria-label"], className: N("ReactVirtualized__Masonry", s), id: u, onScroll: this._onScroll, role: h, style: Fo({ boxSizing: "border-box", direction: "ltr", height: r ? "auto" : c, overflowX: "hidden", overflowY: R < c ? "hidden" : "auto", position: "relative", width: _, WebkitOverflowScrolling: "touch", willChange: "transform" }, g), tabIndex: v }, x.createElement("div", { className: "ReactVirtualized__Masonry__innerScrollContainer", style: { width: "100%", height: R, maxWidth: "100%", maxHeight: R, overflow: "hidden", pointerEvents: y ? "none" : "", position: "relative" } }, C));
|
|
1609
1612
|
} }, { key: "_checkInvalidateOnUpdate", value: function() {
|
|
1610
1613
|
if (typeof this._invalidateOnUpdateStartIndex == "number") {
|
|
1611
1614
|
var e = this._invalidateOnUpdateStartIndex, t = this._invalidateOnUpdateStopIndex;
|
|
@@ -1613,7 +1616,7 @@ var at = function() {
|
|
|
1613
1616
|
}
|
|
1614
1617
|
} }, { key: "_debounceResetIsScrolling", value: function() {
|
|
1615
1618
|
var e = this.props.scrollingResetTimeInterval;
|
|
1616
|
-
this._debounceResetIsScrollingId &&
|
|
1619
|
+
this._debounceResetIsScrollingId && ee(this._debounceResetIsScrollingId), this._debounceResetIsScrollingId = Le(this._debounceResetIsScrollingCallback, e);
|
|
1617
1620
|
} }, { key: "_getEstimatedTotalHeight", value: function() {
|
|
1618
1621
|
var e = this.props, t = e.cellCount, n = e.cellMeasurerCache, r = e.width, l = Math.max(1, Math.floor(r / n.defaultWidth));
|
|
1619
1622
|
return this._positionCache.estimateTotalHeight(t, l, n.defaultHeight);
|
|
@@ -1631,12 +1634,12 @@ var at = function() {
|
|
|
1631
1634
|
return e.scrollTop !== void 0 && t.scrollTop !== e.scrollTop ? { isScrolling: !0, scrollTop: e.scrollTop } : null;
|
|
1632
1635
|
} }]);
|
|
1633
1636
|
}();
|
|
1634
|
-
function
|
|
1637
|
+
function ut() {
|
|
1635
1638
|
}
|
|
1636
|
-
p(
|
|
1639
|
+
p(ct, "defaultProps", { autoHeight: !1, keyMapper: function(o) {
|
|
1637
1640
|
return o;
|
|
1638
|
-
}, onCellsRendered:
|
|
1639
|
-
var
|
|
1641
|
+
}, onCellsRendered: ut, onScroll: ut, overscanByPixels: 20, role: "grid", scrollingResetTimeInterval: 150, style: {}, tabIndex: 0, rowDirection: "ltr" }), ce(ct);
|
|
1642
|
+
var xe = function() {
|
|
1640
1643
|
return A(function o() {
|
|
1641
1644
|
var e = this, t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1642
1645
|
G(this, o), p(this, "_cellMeasurerCache", void 0), p(this, "_columnIndexOffset", void 0), p(this, "_rowIndexOffset", void 0), p(this, "columnWidth", function(s) {
|
|
@@ -1672,8 +1675,8 @@ var we = function() {
|
|
|
1672
1675
|
} }, { key: "set", value: function(o, e, t, n) {
|
|
1673
1676
|
this._cellMeasurerCache.set(o + this._rowIndexOffset, e + this._columnIndexOffset, t, n);
|
|
1674
1677
|
} }]);
|
|
1675
|
-
}(),
|
|
1676
|
-
function
|
|
1678
|
+
}(), No = ["rowIndex"], Bo = ["columnIndex", "rowIndex"], Uo = ["columnIndex"], Vo = ["onScroll", "onSectionRendered", "onScrollbarPresenceChange", "scrollLeft", "scrollToColumn", "scrollTop", "scrollToRow"];
|
|
1679
|
+
function dt(o, e) {
|
|
1677
1680
|
var t = Object.keys(o);
|
|
1678
1681
|
if (Object.getOwnPropertySymbols) {
|
|
1679
1682
|
var n = Object.getOwnPropertySymbols(o);
|
|
@@ -1686,39 +1689,39 @@ function ut(o, e) {
|
|
|
1686
1689
|
function M(o) {
|
|
1687
1690
|
for (var e = 1; e < arguments.length; e++) {
|
|
1688
1691
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
1689
|
-
e % 2 ?
|
|
1692
|
+
e % 2 ? dt(Object(t), !0).forEach(function(n) {
|
|
1690
1693
|
p(o, n, t[n]);
|
|
1691
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) :
|
|
1694
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : dt(Object(t)).forEach(function(n) {
|
|
1692
1695
|
Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
|
|
1693
1696
|
});
|
|
1694
1697
|
}
|
|
1695
1698
|
return o;
|
|
1696
1699
|
}
|
|
1697
|
-
function
|
|
1700
|
+
function Nt() {
|
|
1698
1701
|
try {
|
|
1699
1702
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1700
1703
|
}));
|
|
1701
1704
|
} catch {
|
|
1702
1705
|
}
|
|
1703
|
-
return (
|
|
1706
|
+
return (Nt = function() {
|
|
1704
1707
|
return !!o;
|
|
1705
1708
|
})();
|
|
1706
1709
|
}
|
|
1707
|
-
var
|
|
1710
|
+
var Re = function() {
|
|
1708
1711
|
function o(e, t) {
|
|
1709
1712
|
var n, r, l, i;
|
|
1710
|
-
G(this, o), r = this, i = [e, t], l =
|
|
1713
|
+
G(this, o), r = this, i = [e, t], l = P(l = o), p(n = H(r, Nt() ? Reflect.construct(l, i || [], P(r).constructor) : l.apply(r, i)), "state", { scrollLeft: 0, scrollTop: 0, scrollbarSize: 0, showHorizontalScrollbar: !1, showVerticalScrollbar: !1 }), p(n, "_deferredInvalidateColumnIndex", null), p(n, "_deferredInvalidateRowIndex", null), p(n, "_bottomLeftGridRef", function(u) {
|
|
1711
1714
|
n._bottomLeftGrid = u;
|
|
1712
1715
|
}), p(n, "_bottomRightGridRef", function(u) {
|
|
1713
1716
|
n._bottomRightGrid = u;
|
|
1714
1717
|
}), p(n, "_cellRendererBottomLeftGrid", function(u) {
|
|
1715
|
-
var d = u.rowIndex, f =
|
|
1718
|
+
var d = u.rowIndex, f = ne(u, No), h = n.props, g = h.cellRenderer, v = h.fixedRowCount;
|
|
1716
1719
|
return d === h.rowCount - v ? x.createElement("div", { key: f.key, style: M(M({}, f.style), {}, { height: 20 }) }) : g(M(M({}, f), {}, { parent: n, rowIndex: d + v }));
|
|
1717
1720
|
}), p(n, "_cellRendererBottomRightGrid", function(u) {
|
|
1718
|
-
var d = u.columnIndex, f = u.rowIndex, h =
|
|
1721
|
+
var d = u.columnIndex, f = u.rowIndex, h = ne(u, Bo), g = n.props, v = g.cellRenderer, _ = g.fixedColumnCount, S = g.fixedRowCount;
|
|
1719
1722
|
return v(M(M({}, h), {}, { columnIndex: d + _, parent: n, rowIndex: f + S }));
|
|
1720
1723
|
}), p(n, "_cellRendererTopRightGrid", function(u) {
|
|
1721
|
-
var d = u.columnIndex, f =
|
|
1724
|
+
var d = u.columnIndex, f = ne(u, Uo), h = n.props, g = h.cellRenderer, v = h.columnCount, _ = h.fixedColumnCount;
|
|
1722
1725
|
return d === v - _ ? x.createElement("div", { key: f.key, style: M(M({}, f.style), {}, { width: 20 }) }) : g(M(M({}, f), {}, { columnIndex: d + _, parent: n }));
|
|
1723
1726
|
}), p(n, "_columnWidthRightGrid", function(u) {
|
|
1724
1727
|
var d = u.index, f = n.props, h = f.columnCount, g = f.fixedColumnCount, v = f.columnWidth, _ = n.state, S = _.scrollbarSize;
|
|
@@ -1750,7 +1753,7 @@ var Ce = function() {
|
|
|
1750
1753
|
n._topRightGrid = u;
|
|
1751
1754
|
});
|
|
1752
1755
|
var a = e.deferredMeasurementCache, s = e.fixedColumnCount, c = e.fixedRowCount;
|
|
1753
|
-
return n._maybeCalculateCachedStyles(!0), a && (n._deferredMeasurementCacheBottomLeftGrid = c > 0 ? new
|
|
1756
|
+
return n._maybeCalculateCachedStyles(!0), a && (n._deferredMeasurementCacheBottomLeftGrid = c > 0 ? new xe({ cellMeasurerCache: a, columnIndexOffset: 0, rowIndexOffset: c }) : a, n._deferredMeasurementCacheBottomRightGrid = s > 0 || c > 0 ? new xe({ cellMeasurerCache: a, columnIndexOffset: s, rowIndexOffset: c }) : a, n._deferredMeasurementCacheTopRightGrid = s > 0 ? new xe({ cellMeasurerCache: a, columnIndexOffset: s, rowIndexOffset: 0 }) : a), n;
|
|
1754
1757
|
}
|
|
1755
1758
|
return D(o, x.PureComponent), A(o, [{ key: "forceUpdateGrids", value: function() {
|
|
1756
1759
|
this._bottomLeftGrid && this._bottomLeftGrid.forceUpdate(), this._bottomRightGrid && this._bottomRightGrid.forceUpdate(), this._topLeftGrid && this._topLeftGrid.forceUpdate(), this._topRightGrid && this._topRightGrid.forceUpdate();
|
|
@@ -1776,7 +1779,7 @@ var Ce = function() {
|
|
|
1776
1779
|
e.onScrollbarPresenceChange, e.scrollLeft;
|
|
1777
1780
|
var r = e.scrollToColumn;
|
|
1778
1781
|
e.scrollTop;
|
|
1779
|
-
var l = e.scrollToRow, i =
|
|
1782
|
+
var l = e.scrollToRow, i = ne(e, Vo);
|
|
1780
1783
|
if (this._prepareForRender(), this.props.width === 0 || this.props.height === 0) return null;
|
|
1781
1784
|
var a = this.state, s = a.scrollLeft, c = a.scrollTop;
|
|
1782
1785
|
return x.createElement("div", { style: this._containerOuterStyle }, x.createElement("div", { style: this._containerTopStyle }, this._renderTopLeftGrid(i), this._renderTopRightGrid(M(M({}, i), {}, { onScroll: t, scrollLeft: s }))), x.createElement("div", { style: this._containerBottomStyle }, this._renderBottomLeftGrid(M(M({}, i), {}, { onScroll: t, scrollTop: c })), this._renderBottomRightGrid(M(M({}, i), {}, { onScroll: t, onSectionRendered: n, scrollLeft: s, scrollToColumn: r, scrollToRow: l, scrollTop: c }))));
|
|
@@ -1830,20 +1833,20 @@ var Ce = function() {
|
|
|
1830
1833
|
return e.scrollLeft !== t.scrollLeft || e.scrollTop !== t.scrollTop ? { scrollLeft: e.scrollLeft != null && e.scrollLeft >= 0 ? e.scrollLeft : t.scrollLeft, scrollTop: e.scrollTop != null && e.scrollTop >= 0 ? e.scrollTop : t.scrollTop } : null;
|
|
1831
1834
|
} }]);
|
|
1832
1835
|
}();
|
|
1833
|
-
function
|
|
1836
|
+
function Bt() {
|
|
1834
1837
|
try {
|
|
1835
1838
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1836
1839
|
}));
|
|
1837
1840
|
} catch {
|
|
1838
1841
|
}
|
|
1839
|
-
return (
|
|
1842
|
+
return (Bt = function() {
|
|
1840
1843
|
return !!o;
|
|
1841
1844
|
})();
|
|
1842
1845
|
}
|
|
1843
|
-
p(
|
|
1846
|
+
p(Re, "defaultProps", { classNameBottomLeftGrid: "", classNameBottomRightGrid: "", classNameTopLeftGrid: "", classNameTopRightGrid: "", enableFixedColumnScroll: !1, enableFixedRowScroll: !1, fixedColumnCount: 0, fixedRowCount: 0, scrollToColumn: -1, scrollToRow: -1, style: {}, styleBottomLeftGrid: {}, styleBottomRightGrid: {}, styleTopLeftGrid: {}, styleTopRightGrid: {}, hideTopRightGridScrollbar: !1, hideBottomLeftGridScrollbar: !1 }), Re.propTypes = {}, ce(Re), function() {
|
|
1844
1847
|
function o(e, t) {
|
|
1845
1848
|
var n, r, l, i;
|
|
1846
|
-
return G(this, o), r = this, i = [e, t], l =
|
|
1849
|
+
return G(this, o), r = this, i = [e, t], l = P(l = o), (n = H(r, Bt() ? Reflect.construct(l, i || [], P(r).constructor) : l.apply(r, i))).state = { clientHeight: 0, clientWidth: 0, scrollHeight: 0, scrollLeft: 0, scrollTop: 0, scrollWidth: 0 }, n._onScroll = n._onScroll.bind(n), n;
|
|
1847
1850
|
}
|
|
1848
1851
|
return D(o, x.PureComponent), A(o, [{ key: "render", value: function() {
|
|
1849
1852
|
var e = this.props.children, t = this.state, n = t.clientHeight, r = t.clientWidth, l = t.scrollHeight, i = t.scrollLeft, a = t.scrollTop, s = t.scrollWidth;
|
|
@@ -1853,30 +1856,30 @@ p(Ce, "defaultProps", { classNameBottomLeftGrid: "", classNameBottomRightGrid: "
|
|
|
1853
1856
|
this.setState({ clientHeight: t, clientWidth: n, scrollHeight: r, scrollLeft: l, scrollTop: i, scrollWidth: a });
|
|
1854
1857
|
} }]);
|
|
1855
1858
|
}().propTypes = {};
|
|
1856
|
-
var
|
|
1857
|
-
function
|
|
1858
|
-
var e = o.sortDirection, t = N("ReactVirtualized__Table__sortableHeaderIcon", { "ReactVirtualized__Table__sortableHeaderIcon--ASC": e ===
|
|
1859
|
-
return x.createElement("svg", { className: t, width: 18, height: 18, viewBox: "0 0 24 24" }, e ===
|
|
1859
|
+
var ae = "ASC", Pe = "DESC";
|
|
1860
|
+
function Ut(o) {
|
|
1861
|
+
var e = o.sortDirection, t = N("ReactVirtualized__Table__sortableHeaderIcon", { "ReactVirtualized__Table__sortableHeaderIcon--ASC": e === ae, "ReactVirtualized__Table__sortableHeaderIcon--DESC": e === Pe });
|
|
1862
|
+
return x.createElement("svg", { className: t, width: 18, height: 18, viewBox: "0 0 24 24" }, e === ae ? x.createElement("path", { d: "M7 14l5-5 5 5z" }) : x.createElement("path", { d: "M7 10l5 5 5-5z" }), x.createElement("path", { d: "M0 0h24v24H0z", fill: "none" }));
|
|
1860
1863
|
}
|
|
1861
|
-
function
|
|
1864
|
+
function Vt() {
|
|
1862
1865
|
try {
|
|
1863
1866
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1864
1867
|
}));
|
|
1865
1868
|
} catch {
|
|
1866
1869
|
}
|
|
1867
|
-
return (
|
|
1870
|
+
return (Vt = function() {
|
|
1868
1871
|
return !!o;
|
|
1869
1872
|
})();
|
|
1870
1873
|
}
|
|
1871
|
-
|
|
1872
|
-
var
|
|
1874
|
+
Ut.propTypes = {};
|
|
1875
|
+
var _e = function() {
|
|
1873
1876
|
function o() {
|
|
1874
|
-
return G(this, o), e = this, n = arguments, t =
|
|
1877
|
+
return G(this, o), e = this, n = arguments, t = P(t = o), H(e, Vt() ? Reflect.construct(t, n || [], P(e).constructor) : t.apply(e, n));
|
|
1875
1878
|
var e, t, n;
|
|
1876
1879
|
}
|
|
1877
1880
|
return D(o, x.Component), A(o);
|
|
1878
1881
|
}();
|
|
1879
|
-
function
|
|
1882
|
+
function ht(o, e) {
|
|
1880
1883
|
var t = Object.keys(o);
|
|
1881
1884
|
if (Object.getOwnPropertySymbols) {
|
|
1882
1885
|
var n = Object.getOwnPropertySymbols(o);
|
|
@@ -1889,38 +1892,38 @@ function dt(o, e) {
|
|
|
1889
1892
|
function B(o) {
|
|
1890
1893
|
for (var e = 1; e < arguments.length; e++) {
|
|
1891
1894
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
1892
|
-
e % 2 ?
|
|
1895
|
+
e % 2 ? ht(Object(t), !0).forEach(function(n) {
|
|
1893
1896
|
p(o, n, t[n]);
|
|
1894
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) :
|
|
1897
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : ht(Object(t)).forEach(function(n) {
|
|
1895
1898
|
Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
|
|
1896
1899
|
});
|
|
1897
1900
|
}
|
|
1898
1901
|
return o;
|
|
1899
1902
|
}
|
|
1900
|
-
function
|
|
1903
|
+
function qt() {
|
|
1901
1904
|
try {
|
|
1902
1905
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1903
1906
|
}));
|
|
1904
1907
|
} catch {
|
|
1905
1908
|
}
|
|
1906
|
-
return (
|
|
1909
|
+
return (qt = function() {
|
|
1907
1910
|
return !!o;
|
|
1908
1911
|
})();
|
|
1909
1912
|
}
|
|
1910
|
-
p(
|
|
1913
|
+
p(_e, "defaultProps", { cellDataGetter: function(o) {
|
|
1911
1914
|
var e = o.dataKey, t = o.rowData;
|
|
1912
1915
|
return typeof t.get == "function" ? t.get(e) : t[e];
|
|
1913
1916
|
}, cellRenderer: function(o) {
|
|
1914
1917
|
var e = o.cellData;
|
|
1915
1918
|
return e == null ? "" : String(e);
|
|
1916
|
-
}, defaultSortDirection:
|
|
1919
|
+
}, defaultSortDirection: ae, flexGrow: 0, flexShrink: 1, headerRenderer: function(o) {
|
|
1917
1920
|
var e = o.dataKey, t = o.label, n = o.sortBy, r = o.sortDirection, l = n === e, i = [x.createElement("span", { className: "ReactVirtualized__Table__headerTruncatedText", key: "label", title: typeof t == "string" ? t : null }, t)];
|
|
1918
|
-
return l && i.push(x.createElement(
|
|
1919
|
-
}, style: {} }),
|
|
1920
|
-
var
|
|
1921
|
+
return l && i.push(x.createElement(Ut, { key: "SortIndicator", sortDirection: r })), i;
|
|
1922
|
+
}, style: {} }), _e.propTypes = {};
|
|
1923
|
+
var Oe = function() {
|
|
1921
1924
|
function o(e) {
|
|
1922
1925
|
var t, n, r, l;
|
|
1923
|
-
return G(this, o), n = this, l = [e], r =
|
|
1926
|
+
return G(this, o), n = this, l = [e], r = P(r = o), (t = H(n, qt() ? Reflect.construct(r, l || [], P(n).constructor) : r.apply(n, l))).state = { scrollbarWidth: 0 }, t._createColumn = t._createColumn.bind(t), t._createRow = t._createRow.bind(t), t._onScroll = t._onScroll.bind(t), t._onSectionRendered = t._onSectionRendered.bind(t), t._setRef = t._setRef.bind(t), t._setGridElementRef = t._setGridElementRef.bind(t), t;
|
|
1924
1927
|
}
|
|
1925
1928
|
return D(o, x.PureComponent), A(o, [{ key: "forceUpdateGrid", value: function() {
|
|
1926
1929
|
this.Grid && this.Grid.forceUpdate();
|
|
@@ -1955,32 +1958,32 @@ var Ie = function() {
|
|
|
1955
1958
|
} }, { key: "componentDidUpdate", value: function() {
|
|
1956
1959
|
this._setScrollbarWidth();
|
|
1957
1960
|
} }, { key: "render", value: function() {
|
|
1958
|
-
var e = this, t = this.props, n = t.children, r = t.className, l = t.disableHeader, i = t.gridClassName, a = t.gridStyle, s = t.headerHeight, c = t.headerRowRenderer, u = t.height, d = t.id, f = t.noRowsRenderer, h = t.rowClassName, g = t.rowStyle, v = t.scrollToIndex, _ = t.style, S = t.width, m = this.state.scrollbarWidth,
|
|
1959
|
-
return this._cachedColumnStyles = [], x.Children.toArray(n).forEach(function(
|
|
1960
|
-
var b = e._getFlexStyleForColumn(
|
|
1961
|
-
e._cachedColumnStyles[
|
|
1962
|
-
}), x.createElement("div", { "aria-label": this.props["aria-label"], "aria-labelledby": this.props["aria-labelledby"], "aria-colcount": x.Children.toArray(n).length, "aria-rowcount": this.props.rowCount, className: N("ReactVirtualized__Table", r), id: d, role: "grid", style: _ }, !l && c({ className: N("ReactVirtualized__Table__headerRow",
|
|
1961
|
+
var e = this, t = this.props, n = t.children, r = t.className, l = t.disableHeader, i = t.gridClassName, a = t.gridStyle, s = t.headerHeight, c = t.headerRowRenderer, u = t.height, d = t.id, f = t.noRowsRenderer, h = t.rowClassName, g = t.rowStyle, v = t.scrollToIndex, _ = t.style, S = t.width, m = this.state.scrollbarWidth, y = l ? u : u - s, w = typeof h == "function" ? h({ index: -1 }) : h, C = typeof g == "function" ? g({ index: -1 }) : g;
|
|
1962
|
+
return this._cachedColumnStyles = [], x.Children.toArray(n).forEach(function(R, z) {
|
|
1963
|
+
var b = e._getFlexStyleForColumn(R, R.props.style || _e.defaultProps.style);
|
|
1964
|
+
e._cachedColumnStyles[z] = B({ overflow: "hidden" }, b);
|
|
1965
|
+
}), x.createElement("div", { "aria-label": this.props["aria-label"], "aria-labelledby": this.props["aria-labelledby"], "aria-colcount": x.Children.toArray(n).length, "aria-rowcount": this.props.rowCount, className: N("ReactVirtualized__Table", r), id: d, role: "grid", style: _ }, !l && c({ className: N("ReactVirtualized__Table__headerRow", w), columns: this._getHeaderColumns(), style: B({ height: s, overflow: "hidden", paddingRight: m, width: S }, C) }), x.createElement(V, U({}, this.props, { elementRef: this._setGridElementRef, "aria-readonly": null, autoContainerWidth: !0, className: N("ReactVirtualized__Table__Grid", i), cellRenderer: this._createRow, columnWidth: S, columnCount: 1, height: y, id: void 0, noContentRenderer: f, onScroll: this._onScroll, onSectionRendered: this._onSectionRendered, ref: this._setRef, role: "rowgroup", scrollbarWidth: m, scrollToRow: v, style: B(B({}, a), {}, { overflowX: "hidden" }) })));
|
|
1963
1966
|
} }, { key: "_createColumn", value: function(e) {
|
|
1964
1967
|
var t = e.column, n = e.columnIndex, r = e.isScrolling, l = e.parent, i = e.rowData, a = e.rowIndex, s = this.props.onColumnClick, c = t.props, u = c.cellDataGetter, d = c.cellRenderer, f = c.className, h = c.columnData, g = c.dataKey, v = c.id, _ = d({ cellData: u({ columnData: h, dataKey: g, rowData: i }), columnData: h, columnIndex: n, dataKey: g, isScrolling: r, parent: l, rowData: i, rowIndex: a }), S = this._cachedColumnStyles[n], m = typeof _ == "string" ? _ : null;
|
|
1965
|
-
return x.createElement("div", { "aria-colindex": n + 1, "aria-describedby": v, className: N("ReactVirtualized__Table__rowColumn", f), key: "Row" + a + "-Col" + n, onClick: function(
|
|
1966
|
-
s && s({ columnData: h, dataKey: g, event:
|
|
1968
|
+
return x.createElement("div", { "aria-colindex": n + 1, "aria-describedby": v, className: N("ReactVirtualized__Table__rowColumn", f), key: "Row" + a + "-Col" + n, onClick: function(y) {
|
|
1969
|
+
s && s({ columnData: h, dataKey: g, event: y });
|
|
1967
1970
|
}, role: "gridcell", style: S, title: m }, _);
|
|
1968
1971
|
} }, { key: "_createHeader", value: function(e) {
|
|
1969
|
-
var t, n, r, l, i, a = e.column, s = e.index, c = this.props, u = c.headerClassName, d = c.headerStyle, f = c.onHeaderClick, h = c.sort, g = c.sortBy, v = c.sortDirection, _ = a.props, S = _.columnData, m = _.dataKey,
|
|
1972
|
+
var t, n, r, l, i, a = e.column, s = e.index, c = this.props, u = c.headerClassName, d = c.headerStyle, f = c.onHeaderClick, h = c.sort, g = c.sortBy, v = c.sortDirection, _ = a.props, S = _.columnData, m = _.dataKey, y = _.defaultSortDirection, w = _.disableSort, C = _.headerRenderer, R = _.id, z = _.label, b = !w && h, I = N("ReactVirtualized__Table__headerColumn", u, a.props.headerClassName, { ReactVirtualized__Table__sortableHeaderColumn: b }), O = this._getFlexStyleForColumn(a, B(B({}, d), a.props.headerStyle)), T = C({ columnData: S, dataKey: m, disableSort: w, label: z, sortBy: g, sortDirection: v });
|
|
1970
1973
|
if (b || f) {
|
|
1971
|
-
var
|
|
1972
|
-
b && h({ defaultSortDirection:
|
|
1974
|
+
var L = g !== m ? y : v === Pe ? ae : Pe, k = function(E) {
|
|
1975
|
+
b && h({ defaultSortDirection: y, event: E, sortBy: m, sortDirection: L }), f && f({ columnData: S, dataKey: m, event: E });
|
|
1973
1976
|
};
|
|
1974
|
-
i = a.props["aria-label"] ||
|
|
1975
|
-
|
|
1977
|
+
i = a.props["aria-label"] || z || m, l = "none", r = 0, t = k, n = function(E) {
|
|
1978
|
+
E.key !== "Enter" && E.key !== " " || k(E);
|
|
1976
1979
|
};
|
|
1977
1980
|
}
|
|
1978
|
-
return g === m && (l = v ===
|
|
1981
|
+
return g === m && (l = v === ae ? "ascending" : "descending"), x.createElement("div", { "aria-label": i, "aria-sort": l, className: I, id: R, key: "Header-Col" + s, onClick: t, onKeyDown: n, role: "columnheader", style: O, tabIndex: r }, T);
|
|
1979
1982
|
} }, { key: "_createRow", value: function(e) {
|
|
1980
|
-
var t = this, n = e.rowIndex, r = e.isScrolling, l = e.key, i = e.parent, a = e.style, s = this.props, c = s.children, u = s.onRowClick, d = s.onRowDoubleClick, f = s.onRowRightClick, h = s.onRowMouseOver, g = s.onRowMouseOut, v = s.rowClassName, _ = s.rowGetter, S = s.rowRenderer, m = s.rowStyle,
|
|
1981
|
-
return t._createColumn({ column:
|
|
1982
|
-
}), b = N("ReactVirtualized__Table__row",
|
|
1983
|
-
return S({ className: b, columns:
|
|
1983
|
+
var t = this, n = e.rowIndex, r = e.isScrolling, l = e.key, i = e.parent, a = e.style, s = this.props, c = s.children, u = s.onRowClick, d = s.onRowDoubleClick, f = s.onRowRightClick, h = s.onRowMouseOver, g = s.onRowMouseOut, v = s.rowClassName, _ = s.rowGetter, S = s.rowRenderer, m = s.rowStyle, y = this.state.scrollbarWidth, w = typeof v == "function" ? v({ index: n }) : v, C = typeof m == "function" ? m({ index: n }) : m, R = _({ index: n }), z = x.Children.toArray(c).map(function(O, T) {
|
|
1984
|
+
return t._createColumn({ column: O, columnIndex: T, isScrolling: r, parent: i, rowData: R, rowIndex: n, scrollbarWidth: y });
|
|
1985
|
+
}), b = N("ReactVirtualized__Table__row", w), I = B(B({}, a), {}, { height: this._getRowHeight(n), overflow: "hidden", paddingRight: y }, C);
|
|
1986
|
+
return S({ className: b, columns: z, index: n, isScrolling: r, key: l, onRowClick: u, onRowDoubleClick: d, onRowRightClick: f, onRowMouseOver: h, onRowMouseOut: g, rowData: R, style: I });
|
|
1984
1987
|
} }, { key: "_getFlexStyleForColumn", value: function(e) {
|
|
1985
1988
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = "".concat(e.props.flexGrow, " ").concat(e.props.flexShrink, " ").concat(e.props.width, "px"), r = B(B({}, t), {}, { flex: n, msFlex: n, WebkitFlex: n });
|
|
1986
1989
|
return e.props.maxWidth && (r.maxWidth = e.props.maxWidth), e.props.minWidth && (r.minWidth = e.props.minWidth), r;
|
|
@@ -2007,13 +2010,13 @@ var Ie = function() {
|
|
|
2007
2010
|
this.setState({ scrollbarWidth: e });
|
|
2008
2011
|
} }]);
|
|
2009
2012
|
}();
|
|
2010
|
-
p(
|
|
2013
|
+
p(Oe, "defaultProps", { disableHeader: !1, estimatedRowSize: 30, headerHeight: 0, headerStyle: {}, noRowsRenderer: function() {
|
|
2011
2014
|
return null;
|
|
2012
2015
|
}, onRowsRendered: function() {
|
|
2013
2016
|
return null;
|
|
2014
2017
|
}, onScroll: function() {
|
|
2015
2018
|
return null;
|
|
2016
|
-
}, overscanIndicesGetter:
|
|
2019
|
+
}, overscanIndicesGetter: At, overscanRowCount: 10, rowRenderer: function(o) {
|
|
2017
2020
|
var e = o.className, t = o.columns, n = o.index, r = o.key, l = o.onRowClick, i = o.onRowDoubleClick, a = o.onRowMouseOut, s = o.onRowMouseOver, c = o.onRowRightClick, u = o.rowData, d = o.style, f = { "aria-rowindex": n + 1 };
|
|
2018
2021
|
return (l || i || a || s || c) && (f["aria-label"] = "row", f.tabIndex = 0, l && (f.onClick = function(h) {
|
|
2019
2022
|
return l({ event: h, index: n, rowData: u });
|
|
@@ -2029,56 +2032,56 @@ p(Ie, "defaultProps", { disableHeader: !1, estimatedRowSize: 30, headerHeight: 0
|
|
|
2029
2032
|
}, headerRowRenderer: function(o) {
|
|
2030
2033
|
var e = o.className, t = o.columns, n = o.style;
|
|
2031
2034
|
return x.createElement("div", { className: e, role: "row", style: n }, t);
|
|
2032
|
-
}, rowStyle: {}, scrollToAlignment: "auto", scrollToIndex: -1, style: {} }),
|
|
2033
|
-
var
|
|
2034
|
-
function
|
|
2035
|
-
|
|
2035
|
+
}, rowStyle: {}, scrollToAlignment: "auto", scrollToIndex: -1, style: {} }), Oe.propTypes = {};
|
|
2036
|
+
var Y = [], le = null, X = null;
|
|
2037
|
+
function Kt() {
|
|
2038
|
+
X && (X = null, document.body && le != null && (document.body.style.pointerEvents = le), le = null);
|
|
2036
2039
|
}
|
|
2037
|
-
function
|
|
2038
|
-
|
|
2040
|
+
function qo() {
|
|
2041
|
+
Kt(), Y.forEach(function(o) {
|
|
2039
2042
|
return o.__resetIsScrolling();
|
|
2040
2043
|
});
|
|
2041
2044
|
}
|
|
2042
|
-
function
|
|
2043
|
-
o.currentTarget === window &&
|
|
2044
|
-
|
|
2045
|
+
function $t(o) {
|
|
2046
|
+
o.currentTarget === window && le == null && document.body && (le = document.body.style.pointerEvents, document.body.style.pointerEvents = "none"), function() {
|
|
2047
|
+
X && ee(X);
|
|
2045
2048
|
var e = 0;
|
|
2046
|
-
|
|
2049
|
+
Y.forEach(function(t) {
|
|
2047
2050
|
e = Math.max(e, t.props.scrollingResetTimeInterval);
|
|
2048
|
-
}),
|
|
2049
|
-
}(),
|
|
2051
|
+
}), X = Le(qo, e);
|
|
2052
|
+
}(), Y.forEach(function(e) {
|
|
2050
2053
|
e.props.scrollElement === o.currentTarget && e.__handleWindowScrollEvent();
|
|
2051
2054
|
});
|
|
2052
2055
|
}
|
|
2053
|
-
function
|
|
2054
|
-
|
|
2056
|
+
function ft(o, e) {
|
|
2057
|
+
Y.some(function(t) {
|
|
2055
2058
|
return t.props.scrollElement === e;
|
|
2056
|
-
}) || e.addEventListener("scroll",
|
|
2059
|
+
}) || e.addEventListener("scroll", $t), Y.push(o);
|
|
2057
2060
|
}
|
|
2058
|
-
function
|
|
2059
|
-
(
|
|
2061
|
+
function pt(o, e) {
|
|
2062
|
+
(Y = Y.filter(function(t) {
|
|
2060
2063
|
return t !== o;
|
|
2061
|
-
})).length || (e.removeEventListener("scroll",
|
|
2064
|
+
})).length || (e.removeEventListener("scroll", $t), X && (ee(X), Kt()));
|
|
2062
2065
|
}
|
|
2063
|
-
var
|
|
2066
|
+
var Ae = function(o) {
|
|
2064
2067
|
return o === window;
|
|
2065
|
-
},
|
|
2068
|
+
}, re = function(o) {
|
|
2066
2069
|
return o.getBoundingClientRect();
|
|
2067
2070
|
};
|
|
2068
|
-
function
|
|
2071
|
+
function mt(o, e) {
|
|
2069
2072
|
if (o) {
|
|
2070
|
-
if (
|
|
2073
|
+
if (Ae(o)) {
|
|
2071
2074
|
var t = window, n = t.innerHeight, r = t.innerWidth;
|
|
2072
2075
|
return { height: typeof n == "number" ? n : 0, width: typeof r == "number" ? r : 0 };
|
|
2073
2076
|
}
|
|
2074
|
-
return
|
|
2077
|
+
return re(o);
|
|
2075
2078
|
}
|
|
2076
2079
|
return { height: e.serverHeight, width: e.serverWidth };
|
|
2077
2080
|
}
|
|
2078
|
-
function
|
|
2079
|
-
return
|
|
2081
|
+
function gt(o) {
|
|
2082
|
+
return Ae(o) && document.documentElement ? { top: "scrollY" in window ? window.scrollY : document.documentElement.scrollTop, left: "scrollX" in window ? window.scrollX : document.documentElement.scrollLeft } : { top: o.scrollTop, left: o.scrollLeft };
|
|
2080
2083
|
}
|
|
2081
|
-
function
|
|
2084
|
+
function vt(o, e) {
|
|
2082
2085
|
var t = Object.keys(o);
|
|
2083
2086
|
if (Object.getOwnPropertySymbols) {
|
|
2084
2087
|
var n = Object.getOwnPropertySymbols(o);
|
|
@@ -2088,35 +2091,35 @@ function gt(o, e) {
|
|
|
2088
2091
|
}
|
|
2089
2092
|
return t;
|
|
2090
2093
|
}
|
|
2091
|
-
function
|
|
2094
|
+
function _t(o) {
|
|
2092
2095
|
for (var e = 1; e < arguments.length; e++) {
|
|
2093
2096
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
2094
|
-
e % 2 ?
|
|
2097
|
+
e % 2 ? vt(Object(t), !0).forEach(function(n) {
|
|
2095
2098
|
p(o, n, t[n]);
|
|
2096
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) :
|
|
2099
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : vt(Object(t)).forEach(function(n) {
|
|
2097
2100
|
Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
|
|
2098
2101
|
});
|
|
2099
2102
|
}
|
|
2100
2103
|
return o;
|
|
2101
2104
|
}
|
|
2102
|
-
function
|
|
2105
|
+
function Xt() {
|
|
2103
2106
|
try {
|
|
2104
2107
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
2105
2108
|
}));
|
|
2106
2109
|
} catch {
|
|
2107
2110
|
}
|
|
2108
|
-
return (
|
|
2111
|
+
return (Xt = function() {
|
|
2109
2112
|
return !!o;
|
|
2110
2113
|
})();
|
|
2111
2114
|
}
|
|
2112
|
-
var
|
|
2115
|
+
var Yt = function() {
|
|
2113
2116
|
return typeof window < "u" ? window : void 0;
|
|
2114
|
-
},
|
|
2117
|
+
}, Ko = function() {
|
|
2115
2118
|
function o() {
|
|
2116
2119
|
var e, t, n, r;
|
|
2117
2120
|
G(this, o);
|
|
2118
2121
|
for (var l = arguments.length, i = new Array(l), a = 0; a < l; a++) i[a] = arguments[a];
|
|
2119
|
-
return t = this, n = o, r = [].concat(i), n =
|
|
2122
|
+
return t = this, n = o, r = [].concat(i), n = P(n), p(e = H(t, Xt() ? Reflect.construct(n, r || [], P(t).constructor) : n.apply(t, r)), "_window", Yt()), p(e, "_isMounted", !1), p(e, "_positionFromTop", 0), p(e, "_positionFromLeft", 0), p(e, "_detectElementResize", void 0), p(e, "_child", void 0), p(e, "_windowScrollerRef", x.createRef()), p(e, "state", _t(_t({}, mt(e.props.scrollElement, e.props)), {}, { isScrolling: !1, scrollLeft: 0, scrollTop: 0 })), p(e, "_registerChild", function(s) {
|
|
2120
2123
|
!s || s instanceof Element || console.warn("WindowScroller registerChild expects to be passed Element or null"), e._child = s, e.updatePosition();
|
|
2121
2124
|
}), p(e, "_onChildScroll", function(s) {
|
|
2122
2125
|
var c = s.scrollTop;
|
|
@@ -2134,7 +2137,7 @@ var Xt = function() {
|
|
|
2134
2137
|
if (e._isMounted) {
|
|
2135
2138
|
var s = e.props.onScroll, c = e.props.scrollElement;
|
|
2136
2139
|
if (c) {
|
|
2137
|
-
var u =
|
|
2140
|
+
var u = gt(c), d = Math.max(0, u.left - e._positionFromLeft), f = Math.max(0, u.top - e._positionFromTop);
|
|
2138
2141
|
e.setState({ isScrolling: !0, scrollLeft: d, scrollTop: f }), s({ scrollLeft: d, scrollTop: f });
|
|
2139
2142
|
}
|
|
2140
2143
|
}
|
|
@@ -2146,47 +2149,47 @@ var Xt = function() {
|
|
|
2146
2149
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.props.scrollElement, t = this.props.onResize, n = this.state, r = n.height, l = n.width, i = this._child || this._windowScrollerRef.current;
|
|
2147
2150
|
if (i instanceof Element && e) {
|
|
2148
2151
|
var a = function(c, u) {
|
|
2149
|
-
if (
|
|
2150
|
-
var d = document.documentElement, f =
|
|
2152
|
+
if (Ae(u) && document.documentElement) {
|
|
2153
|
+
var d = document.documentElement, f = re(c), h = re(d);
|
|
2151
2154
|
return { top: f.top - h.top, left: f.left - h.left };
|
|
2152
2155
|
}
|
|
2153
|
-
var g =
|
|
2156
|
+
var g = gt(u), v = re(c), _ = re(u);
|
|
2154
2157
|
return { top: v.top + g.top - _.top, left: v.left + g.left - _.left };
|
|
2155
2158
|
}(i, e);
|
|
2156
2159
|
this._positionFromTop = a.top, this._positionFromLeft = a.left;
|
|
2157
2160
|
}
|
|
2158
|
-
var s =
|
|
2161
|
+
var s = mt(e, this.props);
|
|
2159
2162
|
r === s.height && l === s.width || (this.setState({ height: s.height, width: s.width }), t({ height: s.height, width: s.width })), this.props.updateScrollTopOnUpdatePosition === !0 && (this.__handleWindowScrollEvent(), this.__resetIsScrolling());
|
|
2160
2163
|
} }, { key: "componentDidMount", value: function() {
|
|
2161
2164
|
var e = this.props.scrollElement;
|
|
2162
|
-
this._detectElementResize =
|
|
2165
|
+
this._detectElementResize = zt(), this.updatePosition(e), e && (ft(this, e), this._registerResizeListener(e)), this._isMounted = !0;
|
|
2163
2166
|
} }, { key: "componentDidUpdate", value: function(e, t) {
|
|
2164
2167
|
var n = this.props.scrollElement, r = e.scrollElement;
|
|
2165
|
-
r !== n && r != null && n != null && (this.updatePosition(n),
|
|
2168
|
+
r !== n && r != null && n != null && (this.updatePosition(n), pt(this, r), ft(this, n), this._unregisterResizeListener(r), this._registerResizeListener(n));
|
|
2166
2169
|
} }, { key: "componentWillUnmount", value: function() {
|
|
2167
2170
|
var e = this.props.scrollElement;
|
|
2168
|
-
e && (
|
|
2171
|
+
e && (pt(this, e), this._unregisterResizeListener(e)), this._isMounted = !1;
|
|
2169
2172
|
} }, { key: "render", value: function() {
|
|
2170
2173
|
var e = this.props.children, t = this.state, n = t.isScrolling, r = t.scrollTop, l = t.scrollLeft, i = t.height, a = t.width;
|
|
2171
2174
|
return x.createElement("div", { ref: this._windowScrollerRef }, e({ onChildScroll: this._onChildScroll, registerChild: this._registerChild, height: i, isScrolling: n, scrollLeft: l, scrollTop: r, width: a }));
|
|
2172
2175
|
} }]);
|
|
2173
2176
|
}();
|
|
2174
|
-
p(
|
|
2177
|
+
p(Ko, "defaultProps", { onResize: function() {
|
|
2175
2178
|
}, onScroll: function() {
|
|
2176
|
-
}, scrollingResetTimeInterval: 150, scrollElement:
|
|
2177
|
-
const
|
|
2178
|
-
class
|
|
2179
|
+
}, scrollingResetTimeInterval: 150, scrollElement: Yt(), serverHeight: 0, serverWidth: 0 });
|
|
2180
|
+
const ie = "ReactVirtualizedDemo-flexContainer", Jt = "ReactVirtualizedDemo-tableRow", Zt = "ReactVirtualizedDemo-tableRowHover", ke = "ReactVirtualizedDemo-tableCell", Me = "ReactVirtualizedDemo-noClick";
|
|
2181
|
+
class $o extends yt.PureComponent {
|
|
2179
2182
|
constructor() {
|
|
2180
2183
|
super(...arguments), this.getRowClassName = ({ index: e }) => {
|
|
2181
2184
|
const { onRowClick: t } = this.props;
|
|
2182
|
-
return
|
|
2185
|
+
return Se(Jt, ie, { [Zt]: e !== -1 && t != null });
|
|
2183
2186
|
}, this.cellRenderer = ({ cellData: e, columnIndex: t, dataKey: n }) => {
|
|
2184
2187
|
const { columns: r, rowHeight: l, onRowClick: i } = this.props;
|
|
2185
2188
|
let a = e, s = { height: l, paddingRight: "2px", paddingTop: "0px", paddingBottom: "0px" };
|
|
2186
|
-
return n === "shortcut" ? a =
|
|
2189
|
+
return n === "shortcut" ? a = po(e) : n === "description" && (s = { ...s, fontSize: ".75rem", display: "block", paddingTop: "4px", whiteSpace: "pre-line" }), W(We, { component: "div", className: Se(ke, ie, { [Me]: i == null }), variant: "body", style: s, align: t != null && r[t].numeric ? "right" : "left", children: a });
|
|
2187
2190
|
}, this.headerRenderer = ({ label: e, columnIndex: t }) => {
|
|
2188
2191
|
const { headerHeight: n, columns: r } = this.props;
|
|
2189
|
-
return
|
|
2192
|
+
return W(We, { component: "div", className: Se(ke, ie, Me), variant: "head", sx: { height: n, backgroundColor: (l) => l.palette.grey[300] }, align: r[t].numeric ? "right" : "left", children: W("span", { children: e }) });
|
|
2190
2193
|
};
|
|
2191
2194
|
}
|
|
2192
2195
|
static {
|
|
@@ -2194,15 +2197,15 @@ class Ko extends St.PureComponent {
|
|
|
2194
2197
|
}
|
|
2195
2198
|
render() {
|
|
2196
2199
|
const { columns: e, rowHeight: t, headerHeight: n, ...r } = this.props;
|
|
2197
|
-
return
|
|
2200
|
+
return W(Pt, { children: ({ height: l, width: i }) => W(Oe, { height: l, width: i, rowHeight: t, gridStyle: { direction: "inherit" }, headerHeight: n, ...r, rowClassName: this.getRowClassName, children: e.map(({ dataKey: a, width: s, widthLess: c, ...u }, d) => {
|
|
2198
2201
|
const f = c ? i - c : s;
|
|
2199
|
-
return
|
|
2202
|
+
return W(_e, { headerRenderer: (h) => this.headerRenderer({ ...h, columnIndex: d }), className: ie, cellRenderer: this.cellRenderer, dataKey: a, width: f, ...u }, a);
|
|
2200
2203
|
}) }) });
|
|
2201
2204
|
}
|
|
2202
2205
|
}
|
|
2203
|
-
const
|
|
2204
|
-
function
|
|
2205
|
-
const { commands: e, ...t } = o, [n, r] =
|
|
2206
|
+
const Xo = Ro($o)(({ theme: o }) => ({ "& .ReactVirtualized__Table__headerRow": { ...o.direction === "rtl" && { paddingLeft: "0 !important" }, ...o.direction !== "rtl" && { paddingRight: void 0 } }, "& .ReactVirtualized__Table__Grid": { outline: "none" }, [`& .${ie}`]: { display: "flex", alignItems: "center", boxSizing: "border-box" }, [`& .${Jt}`]: { cursor: "pointer" }, [`& .${Zt}`]: { "&:hover:not([disabled])": { backgroundColor: o.palette.grey[200] } }, [`& .${ke}`]: { flex: 1 }, [`& .${Me}`]: { cursor: "initial" } }));
|
|
2207
|
+
function Yo(o) {
|
|
2208
|
+
const { commands: e, ...t } = o, [n, r] = he(!1), [l, i] = he(""), a = vo(() => {
|
|
2206
2209
|
let h = e.getAllCommands();
|
|
2207
2210
|
n || (h = h.filter((_) => _.command.shortcut())), h.sort((_, S) => _.command.label().localeCompare(S.command.label()));
|
|
2208
2211
|
const g = [], v = (_) => _.replace(/\n\n/g, `
|
|
@@ -2210,39 +2213,39 @@ function Xo(o) {
|
|
|
2210
2213
|
for (let _ = 0; _ < h.length; _++) {
|
|
2211
2214
|
const S = h[_].command, m = S.shortcut();
|
|
2212
2215
|
if (Array.isArray(m)) {
|
|
2213
|
-
const
|
|
2214
|
-
for (let
|
|
2216
|
+
const y = m;
|
|
2217
|
+
for (let w = 0; w < y.length; w++) g.push({ label: S.label(), description: v(S.description()), shortcut: y[w] });
|
|
2215
2218
|
} else g.push({ label: S.label(), description: v(S.description()), shortcut: S.shortcut() });
|
|
2216
2219
|
}
|
|
2217
2220
|
return g;
|
|
2218
|
-
}, [n, e]), [s, c] =
|
|
2219
|
-
|
|
2220
|
-
import("./
|
|
2221
|
+
}, [n, e]), [s, c] = he(null);
|
|
2222
|
+
De(() => {
|
|
2223
|
+
import("./CNHwFwsPDx506Pv1.mjs").then((h) => {
|
|
2221
2224
|
c(new h.default(a, { threshold: 0, ignoreLocation: !0, keys: ["label", "description"] }));
|
|
2222
2225
|
});
|
|
2223
2226
|
}, [a]);
|
|
2224
|
-
const [u, d] =
|
|
2225
|
-
return
|
|
2226
|
-
s &&
|
|
2227
|
+
const [u, d] = he(a), f = l.length > 0 && u.length === 0;
|
|
2228
|
+
return De(() => {
|
|
2229
|
+
s && fo.debounce(() => {
|
|
2227
2230
|
if (l.trim().length === 0) return void d(a);
|
|
2228
2231
|
const h = s.search(l.trim()), g = new Array(h.length);
|
|
2229
2232
|
for (let v = 0; v < h.length; v++) g[v] = h[v].item;
|
|
2230
2233
|
d(g);
|
|
2231
2234
|
}, 90)();
|
|
2232
|
-
}, [s, l]),
|
|
2235
|
+
}, [s, l]), Ee(ue, { style: { height: 440, width: "100%", display: "flex", flexDirection: "column" }, ...t, children: [Ee(ue, { sx: { display: "flex", alignItems: "center", justifyContent: "end", marginBottom: (h) => h.spacing(2), color: (h) => h.palette.text.secondary }, children: [W(Qt, { InputProps: { sx: { backgroundImage: `linear-gradient(${fe("#fff", de(5))}, ${fe("#fff", de(5))})` }, inputProps: { className: "input", autoFocus: !0, spellCheck: !1, placeholder: "Type to search key bindings", autoComplete: "off", sx: { paddingTop: (h) => h.spacing(1), paddingBottom: (h) => h.spacing(1) } }, endAdornment: W(eo, { sx: { opacity: l.length > 0 ? 1 : 0, display: l.length > 0 ? "flex" : "none" }, position: "end", children: W(to, { "aria-label": "clear search", onClick: () => i(""), edge: "end", children: W(_o, {}) }) }) }, sx: { flex: "1 1 40%", marginRight: (h) => h.spacing(1), "& .MuiOutlinedInput-notchedOutline": { borderColor: (h) => f ? `${h.palette.error.main} !important` : void 0 }, "& .MuiInputLabel-outlined": { color: (h) => f ? `${h.palette.error.main} !important` : void 0 } }, value: l, onChange: (h) => {
|
|
2233
2236
|
i(h.target.value);
|
|
2234
2237
|
}, onKeyDown: (h) => {
|
|
2235
|
-
h.which ===
|
|
2238
|
+
h.which === St.Escape && l.length > 0 && (i(""), h.stopPropagation(), h.preventDefault());
|
|
2236
2239
|
}, onContextMenu: (h) => {
|
|
2237
2240
|
h.stopPropagation();
|
|
2238
|
-
} }),
|
|
2241
|
+
} }), W(oo, { sx: { flex: "1 1 60%" }, control: W(no, { checked: n, onChange: () => r(!n) }), label: "Show commands without key bindings", labelPlacement: "start" })] }), W(ue, { sx: { flex: "1 1 100%", borderRadius: (h) => `${h.shape.borderRadius}px`, border: (h) => `solid ${h.palette.divider} 1px`, paddingRight: "1px", overflow: "hidden", "* .MuiTableCell-head": { background: (h) => h.palette.background.paper, backgroundImage: `linear-gradient(${fe("#fff", de(5))}, ${fe("#fff", de(5))})` } }, children: W(Xo, { rowCount: u.length, rowGetter: (h) => u[h.index], columns: [{ width: 180, label: "Command", dataKey: "label" }, { width: 260, label: "Key Binding", dataKey: "shortcut" }, { width: 240, label: "Description", dataKey: "description", widthLess: 440 }] }) }), W(ue, { sx: { display: "flex", flexShrink: "0", paddingLeft: (h) => h.spacing(1), paddingTop: (h) => h.spacing(1), paddingRight: (h) => h.spacing(1), userSelect: "none", justifyContent: "flex-end" }, children: W(ro, { noWrap: !0, component: "div", sx: { color: (h) => f ? h.palette.error.main : h.palette.text.secondary }, children: `${u.length === 0 ? "No" : u.length} shortcut key${u.length === 1 ? "" : "s"}${l.length > 0 ? " found" : ""}` }) })] });
|
|
2239
2242
|
}
|
|
2240
|
-
const
|
|
2243
|
+
const ln = (o) => {
|
|
2241
2244
|
const { title: e = "Shortcut Keys", commands: t, sx: n, ...r } = o;
|
|
2242
|
-
return
|
|
2243
|
-
l.keyCode ===
|
|
2244
|
-
}, sx: { width: "780px", ...n }, title: e, autoFocusSel: ".input", ...r, children:
|
|
2245
|
+
return W(mo, { isModal: !0, onKeyDown: (l) => {
|
|
2246
|
+
l.keyCode === St.F1 && l.preventDefault();
|
|
2247
|
+
}, sx: { width: "780px", ...n }, title: e, autoFocusSel: ".input", ...r, children: W(io, { dividers: !0, children: W(Yo, { commands: t, sx: { marginBottom: "8px" } }) }) });
|
|
2245
2248
|
};
|
|
2246
2249
|
export {
|
|
2247
|
-
|
|
2250
|
+
ln as default
|
|
2248
2251
|
};
|