@sheetxl/studio-vanilla 0.4.10 → 0.4.12
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/B35OZ0mE8aINQPP9.cjs +7 -0
- package/browser/cjs/BPzEQNENF-gEBkg9.cjs +7 -0
- package/browser/cjs/BUokV6yuzE-_8MyK.cjs +7 -0
- package/browser/cjs/BeZHmOKfa37mFNAu.cjs +7 -0
- package/browser/cjs/BflJ_0gT9lQtDvY_.cjs +7 -0
- package/browser/cjs/BwN8vKi5o3-PbIMo.cjs +7 -0
- package/browser/cjs/C3OizZPVuxO2fjSG.cjs +7 -0
- package/browser/cjs/CBL6KkiWI2RPflEN.cjs +7 -0
- package/browser/cjs/CN6-6xpZMpFqSS8M.cjs +7 -0
- package/browser/cjs/CTrEV_UpxC0W6cZZ.cjs +7 -0
- package/browser/cjs/CU30GVjjFXl44vEU.cjs +7 -0
- package/browser/cjs/CZWBxvUXzfpn_zmc.cjs +7 -0
- package/browser/cjs/Ccs2ouvlLekaLGH0.cjs +7 -0
- package/browser/cjs/Ce-8L4Viq3I_6j0i.cjs +7 -0
- package/browser/cjs/CtNjLzIHB8WX63Bl.cjs +7 -0
- package/browser/cjs/DAHpsyykuPBkoh-Z.cjs +7 -0
- package/browser/cjs/DJbKKxeeTEHHA1gR.cjs +107 -0
- package/browser/cjs/D_VQzwC1zzTJyKtG.cjs +7 -0
- package/browser/cjs/GrsZZ_mEdsM5dEMA.cjs +7 -0
- package/browser/cjs/JKEGlXjMwGnXk_Gv.cjs +7 -0
- package/browser/cjs/L1iE_VcelYZIy0wI.cjs +7 -0
- package/browser/cjs/Q_VvA-yUQx3xFKiJ.cjs +7 -0
- package/browser/cjs/fTGpiXzFm3K_u2Fm.cjs +7 -0
- package/browser/cjs/hwDUzorB6aCvH1eL.cjs +7 -0
- package/browser/cjs/index.cjs +4 -3
- package/browser/cjs/no5c2H18QD2qmOH6.cjs +7 -0
- package/browser/esm/B4Mm5gczpI_k2zzN.mjs +7 -0
- package/browser/esm/B8ISUdOxsJMYWzNN.mjs +7 -0
- package/browser/esm/BnJiF38TGudjoHzT.mjs +7 -0
- package/browser/esm/Bts4nCgfCAUpTfxz.mjs +7 -0
- package/browser/esm/C3cyAbIH8Qc8MIFN.mjs +107 -0
- package/browser/esm/C4jlaVv8bELgiHyE.mjs +7 -0
- package/browser/esm/CYIhGb86r-kKOrP5.mjs +7 -0
- package/browser/esm/CcpskguvlvemArQn.mjs +7 -0
- package/browser/esm/CeRfALx1iU5fqOUg.mjs +7 -0
- package/browser/esm/CfYWmP_Hots5f0f6.mjs +7 -0
- package/browser/esm/CkarbqNx_lhlBnw7.mjs +7 -0
- package/browser/esm/D2PlWNQjrTgf6GuR.mjs +7 -0
- package/browser/esm/D3KNxvnrwR6_fTJE.mjs +7 -0
- package/browser/esm/DIJyH94oCzUnlcNZ.mjs +7 -0
- package/browser/esm/DVAG1NxFe3cMjLE1.mjs +7 -0
- package/browser/esm/DVqga7g7j0FUiM6p.mjs +7 -0
- package/browser/esm/DcX8yGEBX6qi9RCe.mjs +7 -0
- package/browser/esm/DeXfOSxGE_Ez7DZq.mjs +7 -0
- package/browser/esm/DzgM_rkwyIHsCb6I.mjs +7 -0
- package/browser/esm/M4hZ25330e96seUM.mjs +7 -0
- package/browser/esm/Qp2Toeh_EbJH_f_6.mjs +7 -0
- package/browser/esm/SAyRTPVprOHZ8Up8.mjs +7 -0
- package/browser/esm/_ft7JYO6QdDbIu3d.mjs +7 -0
- package/browser/esm/dpdy0BU4GGI5lZrX.mjs +7 -0
- package/browser/esm/index.mjs +2 -8
- package/browser/esm/oLCocGFRAwsVsOSE.mjs +7 -0
- package/cdn/assets/7_O6nILzn1fSVvkO.js +13449 -0
- package/cdn/assets/B3kbBB6oxKBErwzn.js +27 -0
- package/cdn/assets/BB66NDz7S3ocEfRB.js +150 -0
- package/cdn/assets/BCK7yhx9JfzU2rF0.js +22 -0
- package/{browser/esm/DIGFi66CQPMV3HsL.mjs → cdn/assets/BSAH88RG1oubICau.js} +25 -25
- package/cdn/assets/{B-9FcTf3xBEVGdjV.js → BT5EcMEFBsphczwC.js} +536 -534
- package/cdn/assets/BcWoqhD_sX85c7Mh.js +1701 -0
- package/cdn/assets/BoOefjrM4kZ-YXxa.js +90 -0
- package/cdn/assets/BtweFYnoj_aEfydW.js +1371 -0
- package/cdn/assets/Bv0Xb6DdcQbPYJKo.js +24 -0
- package/cdn/assets/CC-S4NMYhLg3WgqO.js +3875 -0
- package/cdn/assets/CJhyHcQcrhbtC33r.js +50 -0
- package/cdn/assets/CUc6gRjjRGTFWSHD.js +50 -0
- package/{browser/esm/D47D26mVYSAdb5C8.mjs → cdn/assets/CfObTzh8pGdd8D23.js} +560 -555
- package/cdn/assets/CiY3HumGDc_5bMtR.js +58 -0
- package/cdn/assets/CpPLN0-hDsTIFHZV.js +46 -0
- package/{browser/esm/C_Zx1tYjI3n7KKZH.mjs → cdn/assets/Cq94woVmlxhjWVRI.js} +2 -2
- package/cdn/assets/CsjftXmSYQRHNKdq.js +41 -0
- package/cdn/assets/DBL4jY0AVc53RGNm.js +637 -0
- package/cdn/assets/DDW1WJ2IM_9ZUfKm.js +36 -0
- package/cdn/assets/{Bt1JSlSpWXDOBfq3.js → DJQOS9qxVAlpgDMt.js} +5 -4
- package/cdn/assets/DWJE3K3jMKMTCi3o.js +393 -0
- package/cdn/assets/D_5RgqgwXsoqLJDR.js +241 -0
- package/cdn/assets/DfmaL8DmDaFAv8M_.js +6481 -0
- package/cdn/assets/DgLPO_EQ9DYoGgec.js +423 -0
- package/cdn/assets/{B3J6oAmsS7oLNFPd.js → DkS6quwH1okWaho6.js} +3 -3
- package/cdn/assets/DxMu6URURFWj9aXM.js +2373 -0
- package/cdn/assets/Jhm2DAcrfAqiM-Y-.js +26490 -0
- package/cdn/assets/MRBi3juXAW0lA_mj.js +1358 -0
- package/cdn/assets/dk2teWHDODYNarJY.js +27 -0
- package/cdn/assets/phYz0vGgqIEQ2hco.js +12 -0
- package/cdn/assets/qA23x9VVBL9R4qxN.js +43 -0
- package/cdn/index.js +8 -8
- package/cdn/loader.js +1 -1
- package/package.json +5 -5
- package/browser/cjs/B1UGqZP_7Z0Ewpog.cjs +0 -6
- package/browser/cjs/B6m9VXoFseD4zuZ5.cjs +0 -6
- package/browser/cjs/BKePSaEpM6Z063z-.cjs +0 -161
- package/browser/cjs/Bqn0ZeP_srNfL9rG.cjs +0 -6
- package/browser/cjs/C-izbj62pQuZjOrT.cjs +0 -304
- package/browser/cjs/C-w-GX8N54TxTjjf.cjs +0 -6
- package/browser/cjs/C1QGdcqJ-9sdGTQR.cjs +0 -6
- package/browser/cjs/C38aiRglHLxZ8KRY.cjs +0 -6
- package/browser/cjs/C4JMn_hMnlOnDpQO.cjs +0 -6
- package/browser/cjs/CApEj4LhhPUvQjIG.cjs +0 -16
- package/browser/cjs/CFcJbmmXjWjl6fQH.cjs +0 -6
- package/browser/cjs/CKiDbCZ6rGgXK7yN.cjs +0 -42
- package/browser/cjs/CM8btXQsJbnFKXUm.cjs +0 -6
- package/browser/cjs/Cb0K3Wzp7BAa4zni.cjs +0 -15
- package/browser/cjs/CiAUhPU7v1BK-8Bb.cjs +0 -7
- package/browser/cjs/CsXS-EN0N5SZHTnQ.cjs +0 -145
- package/browser/cjs/Cu2eUomoF0HToa4l.cjs +0 -6
- package/browser/cjs/Cy7ii9B_Vqx94pbu.cjs +0 -19
- package/browser/cjs/CzI4ZcsmzsyPBpWN.cjs +0 -12
- package/browser/cjs/DKHzUx2gKXwboKy1.cjs +0 -11
- package/browser/cjs/DKc8wAq8dwbDddQn.cjs +0 -11
- package/browser/cjs/DMyKApbUVRtNYC4e.cjs +0 -6
- package/browser/cjs/DROR08HMGyg7rizQ.cjs +0 -6
- package/browser/cjs/DfGDZlbFVknGyu_X.cjs +0 -6
- package/browser/cjs/OQdqVM_6m78kE5Aj.cjs +0 -7
- package/browser/cjs/v4OEtYXaUw_GeiXM.cjs +0 -12
- package/browser/esm/4uEr84M4w57AMyDg.mjs +0 -1703
- package/browser/esm/B8Ja5DlyKAy8xfQD.mjs +0 -1365
- package/browser/esm/B9bN60uAvy62vnwt.mjs +0 -22
- package/browser/esm/BAOzSQdzHl43K9Hd.mjs +0 -50
- package/browser/esm/BQYSD5Nb35y0WeeV.mjs +0 -421
- package/browser/esm/BVcaNvORp_uKPQgJ.mjs +0 -46
- package/browser/esm/BqXO_cQhrMJu7JoQ.mjs +0 -3756
- package/browser/esm/C18A_DcIEHNYBDvR.mjs +0 -46
- package/browser/esm/C7FoKZbSzjvuY3UB.mjs +0 -43
- package/browser/esm/CCIJpHSbFPjTEF8S.mjs +0 -1665
- package/browser/esm/CHNPjJxb0GY_naLa.mjs +0 -25025
- package/browser/esm/CKHsU9LUNYowimxS.mjs +0 -1346
- package/browser/esm/Cm-m3bZh0V44y0li.mjs +0 -390
- package/browser/esm/D1e_ccSgcNXvWHgy.mjs +0 -151
- package/browser/esm/D9CdO3PtV12RnK8K.mjs +0 -1467
- package/browser/esm/D9x-Q8y57gePf-tE.mjs +0 -944
- package/browser/esm/DHhXutXh7b5LsU1m.mjs +0 -2346
- package/browser/esm/DamiTeQsSMP2Cwld.mjs +0 -58
- package/browser/esm/DhD48oFrbrnZ6Zg5.mjs +0 -13208
- package/browser/esm/Ln2ZalJgj1CiJJue.mjs +0 -50
- package/browser/esm/S9fgUO7h8YgZxoKH.mjs +0 -633
- package/browser/esm/qVAHcpq07IhtAaQc.mjs +0 -24
- package/browser/esm/xrzJ8ILZHb118Oyt.mjs +0 -41
- package/cdn/assets/2-xJlw77WsCoyz09.js +0 -24872
- package/cdn/assets/B-p1i2SNRMunPXCF.js +0 -43
- package/cdn/assets/B8Ja5DlyKAy8xfQD.js +0 -1365
- package/cdn/assets/BG3YTMAzNKPRGoLs.js +0 -50
- package/cdn/assets/BQYSD5Nb35y0WeeV.js +0 -421
- package/cdn/assets/BbzUpvQOkxsN-yIH.js +0 -2346
- package/cdn/assets/BqXO_cQhrMJu7JoQ.js +0 -3756
- package/cdn/assets/CCIJpHSbFPjTEF8S.js +0 -1665
- package/cdn/assets/CKHsU9LUNYowimxS.js +0 -1346
- package/cdn/assets/CWLJZwD2GVXljoWG.js +0 -46
- package/cdn/assets/Cm-m3bZh0V44y0li.js +0 -390
- package/cdn/assets/CtQlXGkNWgI-vtGy.js +0 -2178
- package/cdn/assets/DIGFi66CQPMV3HsL.js +0 -84
- package/cdn/assets/DK4S0DbayChkfTD6.js +0 -58
- package/cdn/assets/DQvsBz9F1GS_S7r9.js +0 -50
- package/cdn/assets/DTOgv_zwXSur-yCq.js +0 -151
- package/cdn/assets/DYZjOnD8WWQkCYuH.js +0 -944
- package/cdn/assets/DhD48oFrbrnZ6Zg5.js +0 -13208
- package/cdn/assets/DhyAyTCDkMBf392P.js +0 -21
- package/cdn/assets/P7HeVw5SHROLSWBz.js +0 -24
- package/cdn/assets/S4Z0SN8x6EltjsHT.js +0 -22
- package/cdn/assets/S9fgUO7h8YgZxoKH.js +0 -633
- package/cdn/assets/guYe4C_6pE93QsDV.js +0 -41
|
@@ -1,190 +1,191 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import Ct, { useState as pe, useMemo as ko, useEffect as je, cloneElement as Oo } from "react";
|
|
5
|
-
import { h as N } from "./D9x-Q8y57gePf-tE.mjs";
|
|
1
|
+
import { a as G } from "./DDW1WJ2IM_9ZUfKm.js";
|
|
2
|
+
import { g as Jt, f as Zt, u as Qt, h as eo, i as to, j as ee, k as oo, m as no, l as ro, n as io, a as Q, V as lo, D as so, o as vt, _ as ao, B as he, T as co, I as uo, p as ho, r as fo, v as fe, w as po, C as mo, x as go, Z as vo, y as _o, z as Ee, A as So, E as yo, G as wo, H as Se, Y as Co, L as xo, N as K, O as Ro, P as N, Q as U, R as bo } from "./Jhm2DAcrfAqiM-Y-.js";
|
|
3
|
+
import { r as C, z as _t } from "./dk2teWHDODYNarJY.js";
|
|
6
4
|
/**
|
|
7
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
5
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.12
|
|
8
6
|
*
|
|
9
7
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
10
8
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
11
9
|
*/
|
|
12
|
-
const
|
|
13
|
-
function
|
|
14
|
-
return
|
|
10
|
+
const To = C.createContext(), zo = C.createContext();
|
|
11
|
+
function Io(o) {
|
|
12
|
+
return Zt("MuiTableCell", o);
|
|
15
13
|
}
|
|
16
|
-
const
|
|
14
|
+
const Po = Jt("MuiTableCell", ["root", "head", "body", "footer", "sizeSmall", "sizeMedium", "paddingCheckbox", "paddingNone", "alignLeft", "alignCenter", "alignRight", "alignJustify", "stickyHeader"]), ko = eo("td", { name: "MuiTableCell", slot: "Root", overridesResolver: (o, e) => {
|
|
17
15
|
const { ownerState: t } = o;
|
|
18
|
-
return [e.root, e[t.variant], e[`size${
|
|
19
|
-
} })(
|
|
20
|
-
${o.palette.mode === "light" ?
|
|
21
|
-
const t =
|
|
22
|
-
let
|
|
23
|
-
|
|
16
|
+
return [e.root, e[t.variant], e[`size${ee(t.size)}`], t.padding !== "normal" && e[`padding${ee(t.padding)}`], t.align !== "inherit" && e[`align${ee(t.align)}`], t.stickyHeader && e.stickyHeader];
|
|
17
|
+
} })(no(({ theme: o }) => ({ ...o.typography.body2, display: "table-cell", verticalAlign: "inherit", borderBottom: o.vars ? `1px solid ${o.vars.palette.TableCell.border}` : `1px solid
|
|
18
|
+
${o.palette.mode === "light" ? ro(Q(o.palette.divider, 1), 0.88) : io(Q(o.palette.divider, 1), 0.68)}`, textAlign: "left", padding: 16, variants: [{ props: { variant: "head" }, style: { color: (o.vars || o).palette.text.primary, lineHeight: o.typography.pxToRem(24), fontWeight: o.typography.fontWeightMedium } }, { props: { variant: "body" }, style: { color: (o.vars || o).palette.text.primary } }, { props: { variant: "footer" }, style: { color: (o.vars || o).palette.text.secondary, lineHeight: o.typography.pxToRem(21), fontSize: o.typography.pxToRem(12) } }, { props: { size: "small" }, style: { padding: "6px 16px", [`&.${Po.paddingCheckbox}`]: { width: 24, padding: "0 12px 0 16px", "& > *": { padding: 0 } } } }, { props: { padding: "checkbox" }, style: { width: 48, padding: "0 0 0 4px" } }, { props: { padding: "none" }, style: { padding: 0 } }, { props: { align: "left" }, style: { textAlign: "left" } }, { props: { align: "center" }, style: { textAlign: "center" } }, { props: { align: "right" }, style: { textAlign: "right", flexDirection: "row-reverse" } }, { props: { align: "justify" }, style: { textAlign: "justify" } }, { props: ({ ownerState: e }) => e.stickyHeader, style: { position: "sticky", top: 0, zIndex: 2, backgroundColor: (o.vars || o).palette.background.default } }] }))), He = C.forwardRef(function(o, e) {
|
|
19
|
+
const t = Qt({ props: o, name: "MuiTableCell" }), { align: n = "inherit", className: r, component: l, padding: i, scope: a, size: s, sortDirection: c, variant: d, ...h } = t, f = C.useContext(To), u = C.useContext(zo), v = u && u.variant === "head";
|
|
20
|
+
let g;
|
|
21
|
+
g = l || (v ? "th" : "td");
|
|
24
22
|
let _ = a;
|
|
25
|
-
|
|
26
|
-
const S = d || u && u.variant,
|
|
27
|
-
const { classes:
|
|
28
|
-
return
|
|
29
|
-
})(
|
|
23
|
+
g === "td" ? _ = void 0 : !_ && v && (_ = "col");
|
|
24
|
+
const S = d || u && u.variant, m = { ...t, align: n, component: g, padding: i || (f && f.padding ? f.padding : "normal"), size: s || (f && f.size ? f.size : "medium"), sortDirection: c, stickyHeader: S === "head" && f && f.stickyHeader, variant: S }, y = ((x) => {
|
|
25
|
+
const { classes: R, variant: z, align: T, padding: I, size: P, stickyHeader: b } = x, M = { root: ["root", z, b && "stickyHeader", T !== "inherit" && `align${ee(T)}`, I !== "normal" && `padding${ee(I)}`, `size${ee(P)}`] };
|
|
26
|
+
return oo(M, Io, R);
|
|
27
|
+
})(m);
|
|
30
28
|
let w = null;
|
|
31
|
-
return c && (w = c === "asc" ? "ascending" : "descending"),
|
|
32
|
-
}),
|
|
33
|
-
function
|
|
29
|
+
return c && (w = c === "asc" ? "ascending" : "descending"), G.jsx(ko, { as: g, ref: e, className: to(y.root, r), "aria-sort": w, scope: _, ownerState: m, ...h });
|
|
30
|
+
}), Oo = vo();
|
|
31
|
+
function ye(o) {
|
|
34
32
|
return o !== "ownerState" && o !== "theme" && o !== "sx" && o !== "as";
|
|
35
33
|
}
|
|
36
|
-
function
|
|
34
|
+
function $(o, e) {
|
|
37
35
|
return e && o && typeof o == "object" && o.styles && !o.styles.startsWith("@layer") && (o.styles = `@layer ${e}{${String(o.styles)}}`), o;
|
|
38
36
|
}
|
|
39
|
-
function
|
|
37
|
+
function Mo(o) {
|
|
40
38
|
return o ? (e, t) => t[o] : null;
|
|
41
39
|
}
|
|
42
|
-
function
|
|
40
|
+
function ge(o, e, t) {
|
|
43
41
|
const n = typeof e == "function" ? e(o) : e;
|
|
44
|
-
if (Array.isArray(n)) return n.flatMap((r) =>
|
|
42
|
+
if (Array.isArray(n)) return n.flatMap((r) => ge(o, r, t));
|
|
45
43
|
if (Array.isArray(n?.variants)) {
|
|
46
44
|
let r;
|
|
47
|
-
if (n.isProcessed) r = t ?
|
|
45
|
+
if (n.isProcessed) r = t ? $(n.style, t) : n.style;
|
|
48
46
|
else {
|
|
49
47
|
const { variants: l, ...i } = n;
|
|
50
|
-
r = t ? K(
|
|
48
|
+
r = t ? $(K(i), t) : i;
|
|
51
49
|
}
|
|
52
|
-
return
|
|
50
|
+
return St(o, n.variants, [r], t);
|
|
53
51
|
}
|
|
54
|
-
return n?.isProcessed ? t ? K(
|
|
52
|
+
return n?.isProcessed ? t ? $(K(n.style), t) : n.style : t ? $(K(n), t) : n;
|
|
55
53
|
}
|
|
56
|
-
function
|
|
54
|
+
function St(o, e, t = [], n = void 0) {
|
|
57
55
|
let r;
|
|
58
56
|
e: for (let l = 0; l < e.length; l += 1) {
|
|
59
57
|
const i = e[l];
|
|
60
58
|
if (typeof i.props == "function") {
|
|
61
59
|
if (r ??= { ...o, ...o.ownerState, ownerState: o.ownerState }, !i.props(r)) continue;
|
|
62
60
|
} else for (const a in i.props) if (o[a] !== i.props[a] && o.ownerState?.[a] !== i.props[a]) continue e;
|
|
63
|
-
typeof i.style == "function" ? (r ??= { ...o, ...o.ownerState, ownerState: o.ownerState }, t.push(n ? K(
|
|
61
|
+
typeof i.style == "function" ? (r ??= { ...o, ...o.ownerState, ownerState: o.ownerState }, t.push(n ? $(K(i.style(r)), n) : i.style(r))) : t.push(n ? $(K(i.style), n) : i.style);
|
|
64
62
|
}
|
|
65
63
|
return t;
|
|
66
64
|
}
|
|
67
|
-
function
|
|
65
|
+
function Lo(o) {
|
|
68
66
|
return o && o.charAt(0).toLowerCase() + o.slice(1);
|
|
69
67
|
}
|
|
70
|
-
const
|
|
71
|
-
const { themeId: e, defaultTheme: t =
|
|
68
|
+
const Go = function(o = {}) {
|
|
69
|
+
const { themeId: e, defaultTheme: t = Oo, rootShouldForwardProp: n = ye, slotShouldForwardProp: r = ye } = o;
|
|
72
70
|
function l(i) {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
71
|
+
(function(a, s, c) {
|
|
72
|
+
a.theme = function(d) {
|
|
73
|
+
for (const h in d) return !1;
|
|
74
|
+
return !0;
|
|
75
|
+
}(a.theme) ? c : a.theme[s] || a.theme;
|
|
76
|
+
})(i, e, t);
|
|
78
77
|
}
|
|
79
78
|
return (i, a = {}) => {
|
|
80
|
-
|
|
81
|
-
const { name: s, slot: c, skipVariantsResolver: d, skipSx: h, overridesResolver: f =
|
|
82
|
-
let S =
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
if (
|
|
88
|
-
|
|
79
|
+
_o(i, (x) => x.filter((R) => R !== Ee));
|
|
80
|
+
const { name: s, slot: c, skipVariantsResolver: d, skipSx: h, overridesResolver: f = Mo(Lo(c)), ...u } = a, v = s && s.startsWith("Mui") || c ? "components" : "custom", g = d !== void 0 ? d : c && c !== "Root" && c !== "root" || !1, _ = h || !1;
|
|
81
|
+
let S = ye;
|
|
82
|
+
c === "Root" || c === "root" ? S = n : c ? S = r : function(x) {
|
|
83
|
+
return typeof x == "string" && x.charCodeAt(0) > 96;
|
|
84
|
+
}(i) && (S = void 0);
|
|
85
|
+
const m = So(i, { shouldForwardProp: S, label: void 0, ...u }), y = (x) => {
|
|
86
|
+
if (x.__emotion_real === x) return x;
|
|
87
|
+
if (typeof x == "function") return function(R) {
|
|
88
|
+
return ge(R, x, R.theme.modularCssLayers ? v : void 0);
|
|
89
89
|
};
|
|
90
|
-
if (
|
|
90
|
+
if (xo(x)) {
|
|
91
91
|
const R = function(z) {
|
|
92
|
-
const { variants:
|
|
93
|
-
return P.style ===
|
|
94
|
-
typeof
|
|
92
|
+
const { variants: T, ...I } = z, P = { variants: T, style: K(I), isProcessed: !0 };
|
|
93
|
+
return P.style === I || T && T.forEach((b) => {
|
|
94
|
+
typeof b.style != "function" && (b.style = K(b.style));
|
|
95
95
|
}), P;
|
|
96
|
-
}(
|
|
96
|
+
}(x);
|
|
97
97
|
return function(z) {
|
|
98
|
-
return R.variants ?
|
|
98
|
+
return R.variants ? ge(z, R, z.theme.modularCssLayers ? v : void 0) : z.theme.modularCssLayers ? $(R.style, v) : R.style;
|
|
99
99
|
};
|
|
100
100
|
}
|
|
101
|
-
return
|
|
102
|
-
},
|
|
103
|
-
const R = [], z =
|
|
104
|
-
if (R.push(l), s && f &&
|
|
105
|
-
const
|
|
106
|
-
if (!
|
|
107
|
-
const
|
|
108
|
-
for (const
|
|
109
|
-
return f(
|
|
110
|
-
}), s && !
|
|
111
|
-
const
|
|
112
|
-
return
|
|
113
|
-
}), _ ||
|
|
114
|
-
const
|
|
115
|
-
let
|
|
116
|
-
|
|
101
|
+
return x;
|
|
102
|
+
}, w = (...x) => {
|
|
103
|
+
const R = [], z = x.map(y), T = [];
|
|
104
|
+
if (R.push(l), s && f && T.push(function(b) {
|
|
105
|
+
const M = b.theme, O = M.components?.[s]?.styleOverrides;
|
|
106
|
+
if (!O) return null;
|
|
107
|
+
const H = {};
|
|
108
|
+
for (const J in O) H[J] = ge(b, O[J], b.theme.modularCssLayers ? "theme" : void 0);
|
|
109
|
+
return f(b, H);
|
|
110
|
+
}), s && !g && T.push(function(b) {
|
|
111
|
+
const M = b.theme, O = M?.components?.[s]?.variants;
|
|
112
|
+
return O ? St(b, O, [], b.theme.modularCssLayers ? "theme" : void 0) : null;
|
|
113
|
+
}), _ || T.push(Ee), Array.isArray(z[0])) {
|
|
114
|
+
const b = z.shift(), M = new Array(R.length).fill(""), O = new Array(T.length).fill("");
|
|
115
|
+
let H;
|
|
116
|
+
H = [...M, ...b, ...O], H.raw = [...M, ...b.raw, ...O], R.unshift(H);
|
|
117
117
|
}
|
|
118
|
-
const
|
|
118
|
+
const I = [...R, ...z, ...T], P = m(...I);
|
|
119
119
|
return i.muiName && (P.muiName = i.muiName), P;
|
|
120
120
|
};
|
|
121
|
-
return
|
|
121
|
+
return m.withConfig && (w.withConfig = m.withConfig), w;
|
|
122
122
|
};
|
|
123
|
-
}({ themeId:
|
|
123
|
+
}({ themeId: yo, defaultTheme: wo, rootShouldForwardProp: (o) => /* @__PURE__ */ function(e) {
|
|
124
124
|
return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
|
|
125
125
|
}(o) && o !== "classes" });
|
|
126
126
|
function A(o, e) {
|
|
127
127
|
if (!(o instanceof e)) throw new TypeError("Cannot call a class as a function");
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
return
|
|
129
|
+
function q(o) {
|
|
130
|
+
return q = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
131
131
|
return typeof e;
|
|
132
132
|
} : function(e) {
|
|
133
133
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
134
|
-
}
|
|
134
|
+
}, q(o);
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function yt(o) {
|
|
137
137
|
var e = function(t) {
|
|
138
|
-
if (
|
|
138
|
+
if (q(t) != "object" || !t) return t;
|
|
139
139
|
var n = t[Symbol.toPrimitive];
|
|
140
140
|
if (n !== void 0) {
|
|
141
141
|
var r = n.call(t, "string");
|
|
142
|
-
if (
|
|
142
|
+
if (q(r) != "object") return r;
|
|
143
143
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
144
144
|
}
|
|
145
145
|
return String(t);
|
|
146
146
|
}(o);
|
|
147
|
-
return
|
|
147
|
+
return q(e) == "symbol" ? e : e + "";
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function We(o, e) {
|
|
150
150
|
for (var t = 0; t < e.length; t++) {
|
|
151
151
|
var n = e[t];
|
|
152
|
-
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(o,
|
|
152
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(o, yt(n.key), n);
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
function E(o, e, t) {
|
|
156
|
-
return e &&
|
|
156
|
+
return e && We(o.prototype, e), t && We(o, t), Object.defineProperty(o, "prototype", { writable: !1 }), o;
|
|
157
157
|
}
|
|
158
158
|
function W(o, e) {
|
|
159
|
-
if (e && (
|
|
159
|
+
if (e && (q(e) == "object" || typeof e == "function")) return e;
|
|
160
160
|
if (e !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
161
161
|
return function(t) {
|
|
162
162
|
if (t === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
163
163
|
return t;
|
|
164
164
|
}(o);
|
|
165
165
|
}
|
|
166
|
-
function
|
|
167
|
-
return
|
|
166
|
+
function k(o) {
|
|
167
|
+
return k = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
168
168
|
return e.__proto__ || Object.getPrototypeOf(e);
|
|
169
|
-
}
|
|
169
|
+
}, k(o);
|
|
170
170
|
}
|
|
171
171
|
function D(o, e) {
|
|
172
172
|
if (typeof e != "function" && e !== null) throw new TypeError("Super expression must either be null or a function");
|
|
173
|
-
o.prototype = Object.create(e && e.prototype, { constructor: { value: o, writable: !0, configurable: !0 } }), Object.defineProperty(o, "prototype", { writable: !1 }), e &&
|
|
173
|
+
o.prototype = Object.create(e && e.prototype, { constructor: { value: o, writable: !0, configurable: !0 } }), Object.defineProperty(o, "prototype", { writable: !1 }), e && Ro(o, e);
|
|
174
174
|
}
|
|
175
175
|
function p(o, e, t) {
|
|
176
|
-
return (e =
|
|
176
|
+
return (e = yt(e)) in o ? Object.defineProperty(o, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : o[e] = t, o;
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function wt() {
|
|
179
179
|
var o = this.constructor.getDerivedStateFromProps(this.props, this.state);
|
|
180
180
|
o != null && this.setState(o);
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function Ct(o) {
|
|
183
183
|
this.setState(function(e) {
|
|
184
|
-
|
|
184
|
+
var t = this.constructor.getDerivedStateFromProps(o, e);
|
|
185
|
+
return t ?? null;
|
|
185
186
|
}.bind(this));
|
|
186
187
|
}
|
|
187
|
-
function
|
|
188
|
+
function xt(o, e) {
|
|
188
189
|
try {
|
|
189
190
|
var t = this.props, n = this.state;
|
|
190
191
|
this.props = o, this.state = e, this.__reactInternalSnapshotFlag = !0, this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(t, n);
|
|
@@ -209,9 +210,9 @@ function ue(o) {
|
|
|
209
210
|
The above lifecycles should be removed. Learn more about this warning here:
|
|
210
211
|
https://fb.me/react-async-component-lifecycle-hooks`);
|
|
211
212
|
}
|
|
212
|
-
if (typeof o.getDerivedStateFromProps == "function" && (e.componentWillMount =
|
|
213
|
+
if (typeof o.getDerivedStateFromProps == "function" && (e.componentWillMount = wt, e.componentWillReceiveProps = Ct), typeof e.getSnapshotBeforeUpdate == "function") {
|
|
213
214
|
if (typeof e.componentDidUpdate != "function") throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");
|
|
214
|
-
e.componentWillUpdate =
|
|
215
|
+
e.componentWillUpdate = xt;
|
|
215
216
|
var a = e.componentDidUpdate;
|
|
216
217
|
e.componentDidUpdate = function(s, c, d) {
|
|
217
218
|
var h = this.__reactInternalSnapshotFlag ? this.__reactInternalSnapshot : d;
|
|
@@ -220,7 +221,7 @@ https://fb.me/react-async-component-lifecycle-hooks`);
|
|
|
220
221
|
}
|
|
221
222
|
return o;
|
|
222
223
|
}
|
|
223
|
-
function
|
|
224
|
+
function De(o, e) {
|
|
224
225
|
var t = Object.keys(o);
|
|
225
226
|
if (Object.getOwnPropertySymbols) {
|
|
226
227
|
var n = Object.getOwnPropertySymbols(o);
|
|
@@ -230,138 +231,142 @@ function Be(o, e) {
|
|
|
230
231
|
}
|
|
231
232
|
return t;
|
|
232
233
|
}
|
|
233
|
-
function
|
|
234
|
+
function je(o) {
|
|
234
235
|
for (var e = 1; e < arguments.length; e++) {
|
|
235
236
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
236
|
-
e % 2 ?
|
|
237
|
+
e % 2 ? De(Object(t), !0).forEach(function(n) {
|
|
237
238
|
p(o, n, t[n]);
|
|
238
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) :
|
|
239
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : De(Object(t)).forEach(function(n) {
|
|
239
240
|
Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
|
|
240
241
|
});
|
|
241
242
|
}
|
|
242
243
|
return o;
|
|
243
244
|
}
|
|
244
|
-
function
|
|
245
|
+
function Rt() {
|
|
245
246
|
try {
|
|
246
247
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
247
248
|
}));
|
|
248
249
|
} catch {
|
|
249
250
|
}
|
|
250
|
-
return (
|
|
251
|
+
return (Rt = function() {
|
|
251
252
|
return !!o;
|
|
252
253
|
})();
|
|
253
254
|
}
|
|
254
|
-
|
|
255
|
-
var
|
|
255
|
+
wt.__suppressDeprecationWarning = !0, Ct.__suppressDeprecationWarning = !0, xt.__suppressDeprecationWarning = !0;
|
|
256
|
+
var Fe = function() {
|
|
256
257
|
function o() {
|
|
257
258
|
var e, t, n, r;
|
|
258
259
|
A(this, o);
|
|
259
260
|
for (var l = arguments.length, i = new Array(l), a = 0; a < l; a++) i[a] = arguments[a];
|
|
260
|
-
return t = this, n = o, r = [].concat(i), n =
|
|
261
|
+
return t = this, n = o, r = [].concat(i), n = k(n), p(e = W(t, Rt() ? Reflect.construct(n, r || [], k(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) {
|
|
261
262
|
var c = e.props, d = c.columnCount, h = c.disabled, f = c.mode, u = c.rowCount;
|
|
262
263
|
if (!h) {
|
|
263
|
-
var v = e._getScrollState(),
|
|
264
|
+
var v = e._getScrollState(), g = v.scrollToColumn, _ = v.scrollToRow, S = e._getScrollState(), m = S.scrollToColumn, y = S.scrollToRow;
|
|
264
265
|
switch (s.key) {
|
|
265
266
|
case "ArrowDown":
|
|
266
|
-
|
|
267
|
+
y = Math.min(f === "cells" ? y + 1 : e._rowStopIndex + 1, u - 1);
|
|
267
268
|
break;
|
|
268
269
|
case "ArrowLeft":
|
|
269
|
-
|
|
270
|
+
m = Math.max(f === "cells" ? m - 1 : e._columnStartIndex - 1, 0);
|
|
270
271
|
break;
|
|
271
272
|
case "ArrowRight":
|
|
272
|
-
|
|
273
|
+
m = Math.min(f === "cells" ? m + 1 : e._columnStopIndex + 1, d - 1);
|
|
273
274
|
break;
|
|
274
275
|
case "ArrowUp":
|
|
275
|
-
|
|
276
|
+
y = Math.max(f === "cells" ? y - 1 : e._rowStartIndex - 1, 0);
|
|
276
277
|
}
|
|
277
|
-
|
|
278
|
+
m === g && y === _ || (s.preventDefault(), e._updateScrollState({ scrollToColumn: m, scrollToRow: y }));
|
|
278
279
|
}
|
|
279
280
|
}), p(e, "_onSectionRendered", function(s) {
|
|
280
281
|
var c = s.columnStartIndex, d = s.columnStopIndex, h = s.rowStartIndex, f = s.rowStopIndex;
|
|
281
282
|
e._columnStartIndex = c, e._columnStopIndex = d, e._rowStartIndex = h, e._rowStopIndex = f;
|
|
282
283
|
}), e;
|
|
283
284
|
}
|
|
284
|
-
return D(o,
|
|
285
|
+
return D(o, C.PureComponent), E(o, [{ key: "setScrollIndexes", value: function(e) {
|
|
285
286
|
var t = e.scrollToColumn, n = e.scrollToRow;
|
|
286
287
|
this.setState({ scrollToRow: n, scrollToColumn: t });
|
|
287
288
|
} }, { key: "render", value: function() {
|
|
288
289
|
var e = this.props, t = e.className, n = e.children, r = this._getScrollState(), l = r.scrollToColumn, i = r.scrollToRow;
|
|
289
|
-
return
|
|
290
|
+
return C.createElement("div", { className: t, onKeyDown: this._onKeyDown }, n({ onSectionRendered: this._onSectionRendered, scrollToColumn: l, scrollToRow: i }));
|
|
290
291
|
} }, { key: "_getScrollState", value: function() {
|
|
291
292
|
return this.props.isControlled ? this.props : this.state;
|
|
292
293
|
} }, { key: "_updateScrollState", value: function(e) {
|
|
293
294
|
var t = e.scrollToColumn, n = e.scrollToRow, r = this.props, l = r.isControlled, i = r.onScrollToChange;
|
|
294
295
|
typeof i == "function" && i({ scrollToColumn: t, scrollToRow: n }), l || this.setState({ scrollToColumn: t, scrollToRow: n });
|
|
295
296
|
} }], [{ key: "getDerivedStateFromProps", value: function(e, t) {
|
|
296
|
-
return e.isControlled ? {} : e.scrollToColumn !== t.instanceProps.prevScrollToColumn || e.scrollToRow !== t.instanceProps.prevScrollToRow ?
|
|
297
|
+
return e.isControlled ? {} : e.scrollToColumn !== t.instanceProps.prevScrollToColumn || e.scrollToRow !== t.instanceProps.prevScrollToRow ? je(je({}, t), {}, { scrollToColumn: e.scrollToColumn, scrollToRow: e.scrollToRow, instanceProps: { prevScrollToColumn: e.scrollToColumn, prevScrollToRow: e.scrollToRow } }) : {};
|
|
297
298
|
} }]);
|
|
298
299
|
}();
|
|
299
|
-
function
|
|
300
|
-
var t, n
|
|
301
|
-
if (!
|
|
302
|
-
var
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
return function(w) {
|
|
309
|
-
return g(w);
|
|
300
|
+
function bt(o, e) {
|
|
301
|
+
var t, n = (t = e !== void 0 ? e : typeof window < "u" ? window : typeof self < "u" ? self : global).document !== void 0 && t.document.attachEvent;
|
|
302
|
+
if (!n) {
|
|
303
|
+
var r = function() {
|
|
304
|
+
var m = t.requestAnimationFrame || t.mozRequestAnimationFrame || t.webkitRequestAnimationFrame || function(y) {
|
|
305
|
+
return t.setTimeout(y, 20);
|
|
306
|
+
};
|
|
307
|
+
return function(y) {
|
|
308
|
+
return m(y);
|
|
310
309
|
};
|
|
311
|
-
}(),
|
|
312
|
-
var
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
310
|
+
}(), l = function() {
|
|
311
|
+
var m = t.cancelAnimationFrame || t.mozCancelAnimationFrame || t.webkitCancelAnimationFrame || t.clearTimeout;
|
|
312
|
+
return function(y) {
|
|
313
|
+
return m(y);
|
|
314
|
+
};
|
|
315
|
+
}(), i = function(m) {
|
|
316
|
+
var y = m.__resizeTriggers__, w = y.firstElementChild, x = y.lastElementChild, R = w.firstElementChild;
|
|
317
|
+
x.scrollLeft = x.scrollWidth, x.scrollTop = x.scrollHeight, R.style.width = w.offsetWidth + 1 + "px", R.style.height = w.offsetHeight + 1 + "px", w.scrollLeft = w.scrollWidth, w.scrollTop = w.scrollHeight;
|
|
318
|
+
}, a = function(m) {
|
|
319
|
+
if (!(m.target.className && typeof m.target.className.indexOf == "function" && m.target.className.indexOf("contract-trigger") < 0 && m.target.className.indexOf("expand-trigger") < 0)) {
|
|
320
|
+
var y = this;
|
|
321
|
+
i(this), this.__resizeRAF__ && l(this.__resizeRAF__), this.__resizeRAF__ = r(function() {
|
|
322
|
+
(function(w) {
|
|
323
|
+
return w.offsetWidth != w.__resizeLast__.width || w.offsetHeight != w.__resizeLast__.height;
|
|
324
|
+
})(y) && (y.__resizeLast__.width = y.offsetWidth, y.__resizeLast__.height = y.offsetHeight, y.__resizeListeners__.forEach(function(w) {
|
|
325
|
+
w.call(y, m);
|
|
321
326
|
}));
|
|
322
327
|
});
|
|
323
328
|
}
|
|
324
|
-
},
|
|
325
|
-
if (
|
|
326
|
-
for (var
|
|
327
|
-
|
|
329
|
+
}, s = !1, c = "", d = "animationstart", h = "Webkit Moz O ms".split(" "), f = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "), u = t.document.createElement("fakeelement");
|
|
330
|
+
if (u.style.animationName !== void 0 && (s = !0), s === !1) {
|
|
331
|
+
for (var v = 0; v < h.length; v++) if (u.style[h[v] + "AnimationName"] !== void 0) {
|
|
332
|
+
c = "-" + h[v].toLowerCase() + "-", d = f[v], s = !0;
|
|
328
333
|
break;
|
|
329
334
|
}
|
|
330
335
|
}
|
|
331
|
-
var
|
|
336
|
+
var g = "resizeanim", _ = "@" + c + "keyframes " + g + " { from { opacity: 0; } to { opacity: 0; } } ", S = c + "animation: 1ms " + g + "; ";
|
|
332
337
|
}
|
|
333
|
-
return { addResizeListener: function(
|
|
334
|
-
if (
|
|
338
|
+
return { addResizeListener: function(m, y) {
|
|
339
|
+
if (n) m.attachEvent("onresize", y);
|
|
335
340
|
else {
|
|
336
|
-
if (!
|
|
337
|
-
var
|
|
338
|
-
|
|
339
|
-
if (!
|
|
340
|
-
var
|
|
341
|
-
|
|
341
|
+
if (!m.__resizeTriggers__) {
|
|
342
|
+
var w = m.ownerDocument, x = t.getComputedStyle(m);
|
|
343
|
+
x && x.position == "static" && (m.style.position = "relative"), function(T) {
|
|
344
|
+
if (!T.getElementById("detectElementResize")) {
|
|
345
|
+
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%; }', P = T.head || T.getElementsByTagName("head")[0], b = T.createElement("style");
|
|
346
|
+
b.id = "detectElementResize", b.type = "text/css", o != null && b.setAttribute("nonce", o), b.styleSheet ? b.styleSheet.cssText = I : b.appendChild(T.createTextNode(I)), P.appendChild(b);
|
|
342
347
|
}
|
|
343
|
-
}(
|
|
344
|
-
var R =
|
|
345
|
-
R.className = "expand-trigger", R.appendChild(
|
|
346
|
-
var z =
|
|
347
|
-
z.className = "contract-trigger",
|
|
348
|
-
|
|
349
|
-
},
|
|
348
|
+
}(w), m.__resizeLast__ = {}, m.__resizeListeners__ = [], (m.__resizeTriggers__ = w.createElement("div")).className = "resize-triggers";
|
|
349
|
+
var R = w.createElement("div");
|
|
350
|
+
R.className = "expand-trigger", R.appendChild(w.createElement("div"));
|
|
351
|
+
var z = w.createElement("div");
|
|
352
|
+
z.className = "contract-trigger", m.__resizeTriggers__.appendChild(R), m.__resizeTriggers__.appendChild(z), m.appendChild(m.__resizeTriggers__), i(m), m.addEventListener("scroll", a, !0), d && (m.__resizeTriggers__.__animationListener__ = function(T) {
|
|
353
|
+
T.animationName == g && i(m);
|
|
354
|
+
}, m.__resizeTriggers__.addEventListener(d, m.__resizeTriggers__.__animationListener__));
|
|
350
355
|
}
|
|
351
|
-
|
|
356
|
+
m.__resizeListeners__.push(y);
|
|
352
357
|
}
|
|
353
|
-
}, removeResizeListener: function(
|
|
354
|
-
if (
|
|
355
|
-
else if (
|
|
356
|
-
|
|
358
|
+
}, removeResizeListener: function(m, y) {
|
|
359
|
+
if (n) m.detachEvent("onresize", y);
|
|
360
|
+
else if (m.__resizeListeners__.splice(m.__resizeListeners__.indexOf(y), 1), !m.__resizeListeners__.length) {
|
|
361
|
+
m.removeEventListener("scroll", a, !0), m.__resizeTriggers__.__animationListener__ && (m.__resizeTriggers__.removeEventListener(d, m.__resizeTriggers__.__animationListener__), m.__resizeTriggers__.__animationListener__ = null);
|
|
357
362
|
try {
|
|
358
|
-
|
|
363
|
+
m.__resizeTriggers__ = !m.removeChild(m.__resizeTriggers__);
|
|
359
364
|
} catch {
|
|
360
365
|
}
|
|
361
366
|
}
|
|
362
367
|
} };
|
|
363
368
|
}
|
|
364
|
-
function
|
|
369
|
+
function Ne(o, e) {
|
|
365
370
|
var t = Object.keys(o);
|
|
366
371
|
if (Object.getOwnPropertySymbols) {
|
|
367
372
|
var n = Object.getOwnPropertySymbols(o);
|
|
@@ -371,84 +376,84 @@ function $e(o, e) {
|
|
|
371
376
|
}
|
|
372
377
|
return t;
|
|
373
378
|
}
|
|
374
|
-
function
|
|
379
|
+
function Be(o) {
|
|
375
380
|
for (var e = 1; e < arguments.length; e++) {
|
|
376
381
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
377
|
-
e % 2 ?
|
|
382
|
+
e % 2 ? Ne(Object(t), !0).forEach(function(n) {
|
|
378
383
|
p(o, n, t[n]);
|
|
379
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) :
|
|
384
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : Ne(Object(t)).forEach(function(n) {
|
|
380
385
|
Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
|
|
381
386
|
});
|
|
382
387
|
}
|
|
383
388
|
return o;
|
|
384
389
|
}
|
|
385
|
-
function
|
|
390
|
+
function Tt() {
|
|
386
391
|
try {
|
|
387
392
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
388
393
|
}));
|
|
389
394
|
} catch {
|
|
390
395
|
}
|
|
391
|
-
return (
|
|
396
|
+
return (Tt = function() {
|
|
392
397
|
return !!o;
|
|
393
398
|
})();
|
|
394
399
|
}
|
|
395
|
-
p(
|
|
396
|
-
var
|
|
400
|
+
p(Fe, "defaultProps", { disabled: !1, isControlled: !1, mode: "edges", scrollToColumn: 0, scrollToRow: 0 }), ue(Fe);
|
|
401
|
+
var zt = function() {
|
|
397
402
|
function o() {
|
|
398
403
|
var e, t, n, r;
|
|
399
404
|
A(this, o);
|
|
400
405
|
for (var l = arguments.length, i = new Array(l), a = 0; a < l; a++) i[a] = arguments[a];
|
|
401
|
-
return t = this, n = o, r = [].concat(i), n =
|
|
406
|
+
return t = this, n = o, r = [].concat(i), n = k(n), p(e = W(t, Tt() ? Reflect.construct(n, r || [], k(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() {
|
|
402
407
|
var s = e.props, c = s.disableHeight, d = s.disableWidth, h = s.onResize;
|
|
403
408
|
if (e._parentNode) {
|
|
404
|
-
var f = e._parentNode.offsetHeight || 0, u = e._parentNode.offsetWidth || 0, v = (e._window || window).getComputedStyle(e._parentNode) || {},
|
|
405
|
-
(!c && e.state.height !==
|
|
409
|
+
var f = e._parentNode.offsetHeight || 0, u = e._parentNode.offsetWidth || 0, v = (e._window || window).getComputedStyle(e._parentNode) || {}, g = parseInt(v.paddingLeft, 10) || 0, _ = parseInt(v.paddingRight, 10) || 0, S = parseInt(v.paddingTop, 10) || 0, m = parseInt(v.paddingBottom, 10) || 0, y = f - S - m, w = u - g - _;
|
|
410
|
+
(!c && e.state.height !== y || !d && e.state.width !== w) && (e.setState({ height: f - S - m, width: u - g - _ }), h({ height: f, width: u }));
|
|
406
411
|
}
|
|
407
412
|
}), p(e, "_setRef", function(s) {
|
|
408
413
|
e._autoSizer = s;
|
|
409
414
|
}), e;
|
|
410
415
|
}
|
|
411
|
-
return D(o,
|
|
416
|
+
return D(o, C.Component), E(o, [{ key: "componentDidMount", value: function() {
|
|
412
417
|
var e = this.props.nonce;
|
|
413
|
-
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 =
|
|
418
|
+
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 = bt(e, this._window), this._detectElementResize.addResizeListener(this._parentNode, this._onResize), this._onResize());
|
|
414
419
|
} }, { key: "componentWillUnmount", value: function() {
|
|
415
420
|
this._detectElementResize && this._parentNode && this._detectElementResize.removeResizeListener(this._parentNode, this._onResize);
|
|
416
421
|
} }, { key: "render", value: function() {
|
|
417
422
|
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, d = { overflow: "visible" }, h = {};
|
|
418
|
-
return r || (d.height = 0, h.height = s), l || (d.width = 0, h.width = c),
|
|
423
|
+
return r || (d.height = 0, h.height = s), l || (d.width = 0, h.width = c), C.createElement("div", { className: n, ref: this._setRef, style: Be(Be({}, d), i) }, t(h));
|
|
419
424
|
} }]);
|
|
420
425
|
}();
|
|
421
|
-
function
|
|
426
|
+
function It() {
|
|
422
427
|
try {
|
|
423
428
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
424
429
|
}));
|
|
425
430
|
} catch {
|
|
426
431
|
}
|
|
427
|
-
return (
|
|
432
|
+
return (It = function() {
|
|
428
433
|
return !!o;
|
|
429
434
|
})();
|
|
430
435
|
}
|
|
431
|
-
p(
|
|
436
|
+
p(zt, "defaultProps", { onResize: function() {
|
|
432
437
|
}, disableHeight: !1, disableWidth: !1, style: {} });
|
|
433
|
-
var
|
|
438
|
+
var Ao = function() {
|
|
434
439
|
function o() {
|
|
435
440
|
var e, t, n, r;
|
|
436
441
|
A(this, o);
|
|
437
442
|
for (var l = arguments.length, i = new Array(l), a = 0; a < l; a++) i[a] = arguments[a];
|
|
438
|
-
return t = this, n = o, r = [].concat(i), n =
|
|
439
|
-
var s = e.props, c = s.cache, d = s.columnIndex, h = d === void 0 ? 0 : d, f = s.parent, u = s.rowIndex, v = u === void 0 ? e.props.index || 0 : u,
|
|
443
|
+
return t = this, n = o, r = [].concat(i), n = k(n), p(e = W(t, It() ? Reflect.construct(n, r || [], k(t).constructor) : n.apply(t, r)), "_child", C.createRef()), p(e, "_measure", function() {
|
|
444
|
+
var s = e.props, c = s.cache, d = s.columnIndex, h = d === void 0 ? 0 : d, f = s.parent, u = s.rowIndex, v = u === void 0 ? e.props.index || 0 : u, g = e._getCellMeasurements(), _ = g.height, S = g.width;
|
|
440
445
|
_ === c.getHeight(v, h) && S === c.getWidth(v, h) || (c.set(v, h, S, _), f && typeof f.recomputeGridSize == "function" && f.recomputeGridSize({ columnIndex: h, rowIndex: v }));
|
|
441
446
|
}), p(e, "_registerChild", function(s) {
|
|
442
447
|
!s || s instanceof Element || console.warn("CellMeasurer registerChild expects to be passed Element or null"), e._child.current = s, s && e._maybeMeasureCell();
|
|
443
448
|
}), e;
|
|
444
449
|
}
|
|
445
|
-
return D(o,
|
|
450
|
+
return D(o, C.PureComponent), E(o, [{ key: "componentDidMount", value: function() {
|
|
446
451
|
this._maybeMeasureCell();
|
|
447
452
|
} }, { key: "componentDidUpdate", value: function() {
|
|
448
453
|
this._maybeMeasureCell();
|
|
449
454
|
} }, { key: "render", value: function() {
|
|
450
455
|
var e = this, t = this.props.children, n = typeof t == "function" ? t({ measure: this._measure, registerChild: this._registerChild }) : t;
|
|
451
|
-
return n === null ? n :
|
|
456
|
+
return n === null ? n : C.cloneElement(n, { ref: function(r) {
|
|
452
457
|
typeof n.ref == "function" ? n.ref(r) : n.ref && (n.ref.current = r), e._child.current = r;
|
|
453
458
|
} });
|
|
454
459
|
} }, { key: "_getCellMeasurements", value: function() {
|
|
@@ -481,17 +486,17 @@ function te() {
|
|
|
481
486
|
e = r, i && a && n(r);
|
|
482
487
|
};
|
|
483
488
|
}
|
|
484
|
-
p(
|
|
485
|
-
const
|
|
486
|
-
var
|
|
487
|
-
function
|
|
488
|
-
if ((!
|
|
489
|
+
p(Ao, "__internalCellMeasurerFlag", !1);
|
|
490
|
+
const Eo = !(typeof window > "u" || !window.document || !window.document.createElement);
|
|
491
|
+
var pe;
|
|
492
|
+
function be(o) {
|
|
493
|
+
if ((!pe && pe !== 0 || o) && Eo) {
|
|
489
494
|
var e = document.createElement("div");
|
|
490
|
-
e.style.position = "absolute", e.style.top = "-9999px", e.style.width = "50px", e.style.height = "50px", e.style.overflow = "scroll", document.body.appendChild(e),
|
|
495
|
+
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);
|
|
491
496
|
}
|
|
492
|
-
return
|
|
497
|
+
return pe;
|
|
493
498
|
}
|
|
494
|
-
function
|
|
499
|
+
function Ue(o, e) {
|
|
495
500
|
var t = Object.keys(o);
|
|
496
501
|
if (Object.getOwnPropertySymbols) {
|
|
497
502
|
var n = Object.getOwnPropertySymbols(o);
|
|
@@ -501,60 +506,60 @@ function qe(o, e) {
|
|
|
501
506
|
}
|
|
502
507
|
return t;
|
|
503
508
|
}
|
|
504
|
-
function
|
|
509
|
+
function Ve(o) {
|
|
505
510
|
for (var e = 1; e < arguments.length; e++) {
|
|
506
511
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
507
|
-
e % 2 ?
|
|
512
|
+
e % 2 ? Ue(Object(t), !0).forEach(function(n) {
|
|
508
513
|
p(o, n, t[n]);
|
|
509
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) :
|
|
514
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : Ue(Object(t)).forEach(function(n) {
|
|
510
515
|
Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
|
|
511
516
|
});
|
|
512
517
|
}
|
|
513
518
|
return o;
|
|
514
519
|
}
|
|
515
|
-
function
|
|
520
|
+
function Pt() {
|
|
516
521
|
try {
|
|
517
522
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
518
523
|
}));
|
|
519
524
|
} catch {
|
|
520
525
|
}
|
|
521
|
-
return (
|
|
526
|
+
return (Pt = function() {
|
|
522
527
|
return !!o;
|
|
523
528
|
})();
|
|
524
529
|
}
|
|
525
|
-
var ne = "requested",
|
|
530
|
+
var ne = "requested", ve = function() {
|
|
526
531
|
function o() {
|
|
527
532
|
var e, t, n, r;
|
|
528
533
|
A(this, o);
|
|
529
534
|
for (var l = arguments.length, i = new Array(l), a = 0; a < l; a++) i[a] = arguments[a];
|
|
530
|
-
return t = this, n = o, r = [].concat(i), n =
|
|
535
|
+
return t = this, n = o, r = [].concat(i), n = k(n), p(e = W(t, Pt() ? Reflect.construct(n, r || [], k(t).constructor) : n.apply(t, r)), "state", { isScrolling: !1, scrollLeft: 0, scrollTop: 0 }), p(e, "_calculateSizeAndPositionDataOnNextUpdate", !1), p(e, "_onSectionRenderedMemoizer", te()), p(e, "_onScrollMemoizer", te(!1)), p(e, "_invokeOnSectionRenderedHelper", function() {
|
|
531
536
|
var s = e.props, c = s.cellLayoutManager, d = s.onSectionRendered;
|
|
532
537
|
e._onSectionRenderedMemoizer({ callback: d, indices: { indices: c.getLastRenderedIndices() } });
|
|
533
538
|
}), p(e, "_setScrollingContainerRef", function(s) {
|
|
534
539
|
e._scrollingContainer = s;
|
|
535
540
|
}), p(e, "_updateScrollPositionForScrollToCell", function() {
|
|
536
|
-
var s = e.props, c = s.cellLayoutManager, d = s.height, h = s.scrollToAlignment, f = s.scrollToCell, u = s.width, v = e.state,
|
|
541
|
+
var s = e.props, c = s.cellLayoutManager, d = s.height, h = s.scrollToAlignment, f = s.scrollToCell, u = s.width, v = e.state, g = v.scrollLeft, _ = v.scrollTop;
|
|
537
542
|
if (f >= 0) {
|
|
538
|
-
var S = c.getScrollPositionForCell({ align: h, cellIndex: f, height: d, scrollLeft:
|
|
539
|
-
S.scrollLeft ===
|
|
543
|
+
var S = c.getScrollPositionForCell({ align: h, cellIndex: f, height: d, scrollLeft: g, scrollTop: _, width: u });
|
|
544
|
+
S.scrollLeft === g && S.scrollTop === _ || e._setScrollPosition(S);
|
|
540
545
|
}
|
|
541
546
|
}), p(e, "_onScroll", function(s) {
|
|
542
547
|
if (s.target === e._scrollingContainer) {
|
|
543
548
|
e._enablePointerEventsAfterDelay();
|
|
544
|
-
var c = e.props, d = c.cellLayoutManager, h = c.height, f = c.isScrollingChange, u = c.width, v = e._scrollbarSize,
|
|
545
|
-
if (e.state.scrollLeft !==
|
|
549
|
+
var c = e.props, d = c.cellLayoutManager, h = c.height, f = c.isScrollingChange, u = c.width, v = e._scrollbarSize, g = d.getTotalSize(), _ = g.height, S = g.width, m = Math.max(0, Math.min(S - u + v, s.target.scrollLeft)), y = Math.max(0, Math.min(_ - h + v, s.target.scrollTop));
|
|
550
|
+
if (e.state.scrollLeft !== m || e.state.scrollTop !== y) {
|
|
546
551
|
var w = s.cancelable ? "observed" : ne;
|
|
547
|
-
e.state.isScrolling || f(!0), e.setState({ isScrolling: !0, scrollLeft:
|
|
552
|
+
e.state.isScrolling || f(!0), e.setState({ isScrolling: !0, scrollLeft: m, scrollPositionChangeReason: w, scrollTop: y });
|
|
548
553
|
}
|
|
549
|
-
e._invokeOnScrollMemoizer({ scrollLeft:
|
|
554
|
+
e._invokeOnScrollMemoizer({ scrollLeft: m, scrollTop: y, totalWidth: S, totalHeight: _ });
|
|
550
555
|
}
|
|
551
|
-
}), e._scrollbarSize =
|
|
556
|
+
}), e._scrollbarSize = be(), e._scrollbarSize === void 0 ? (e._scrollbarSizeMeasured = !1, e._scrollbarSize = 0) : e._scrollbarSizeMeasured = !0, e;
|
|
552
557
|
}
|
|
553
|
-
return D(o,
|
|
558
|
+
return D(o, C.PureComponent), E(o, [{ key: "recomputeCellSizesAndPositions", value: function() {
|
|
554
559
|
this._calculateSizeAndPositionDataOnNextUpdate = !0, this.forceUpdate();
|
|
555
560
|
} }, { key: "componentDidMount", value: function() {
|
|
556
561
|
var e = this.props, t = e.cellLayoutManager, n = e.scrollLeft, r = e.scrollToCell, l = e.scrollTop;
|
|
557
|
-
this._scrollbarSizeMeasured || (this._scrollbarSize =
|
|
562
|
+
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();
|
|
558
563
|
var i = t.getTotalSize(), a = i.height, s = i.width;
|
|
559
564
|
this._invokeOnScrollMemoizer({ scrollLeft: n || 0, scrollTop: l || 0, totalHeight: a, totalWidth: s });
|
|
560
565
|
} }, { key: "componentDidUpdate", value: function(e, t) {
|
|
@@ -563,10 +568,10 @@ var ne = "requested", _e = function() {
|
|
|
563
568
|
} }, { key: "componentWillUnmount", value: function() {
|
|
564
569
|
this._disablePointerEventsTimeoutId && clearTimeout(this._disablePointerEventsTimeoutId);
|
|
565
570
|
} }, { key: "render", value: function() {
|
|
566
|
-
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, d = e.style, h = e.verticalOverscanSize, f = e.width, u = this.state, v = u.isScrolling,
|
|
571
|
+
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, d = e.style, h = e.verticalOverscanSize, f = e.width, u = this.state, v = u.isScrolling, g = u.scrollLeft, _ = u.scrollTop;
|
|
567
572
|
(this._lastRenderedCellCount !== n || this._lastRenderedCellLayoutManager !== r || this._calculateSizeAndPositionDataOnNextUpdate) && (this._lastRenderedCellCount = n, this._lastRenderedCellLayoutManager = r, this._calculateSizeAndPositionDataOnNextUpdate = !1, r.calculateSizeAndPositionData());
|
|
568
|
-
var S = r.getTotalSize(),
|
|
569
|
-
return I.overflowX =
|
|
573
|
+
var S = r.getTotalSize(), m = S.height, y = S.width, w = Math.max(0, g - a), x = Math.max(0, _ - h), R = Math.min(y, g + f + a), z = Math.min(m, _ + i + h), T = i > 0 && f > 0 ? r.cellRenderers({ height: z - x, isScrolling: v, width: R - w, x: w, y: x }) : [], I = { boxSizing: "border-box", direction: "ltr", height: t ? "auto" : i, position: "relative", WebkitOverflowScrolling: "touch", width: f, willChange: "transform" }, P = m > i ? this._scrollbarSize : 0, b = y > f ? this._scrollbarSize : 0;
|
|
574
|
+
return I.overflowX = y + P <= f ? "hidden" : "auto", I.overflowY = m + b <= i ? "hidden" : "auto", C.createElement("div", { ref: this._setScrollingContainerRef, "aria-label": this.props["aria-label"], className: N("ReactVirtualized__Collection", l), id: s, onScroll: this._onScroll, role: "grid", style: Ve(Ve({}, I), d), tabIndex: 0 }, n > 0 && C.createElement("div", { className: "ReactVirtualized__Collection__innerScrollContainer", style: { height: m, maxHeight: m, maxWidth: y, overflow: "hidden", pointerEvents: v ? "none" : "", width: y } }, T), n === 0 && c());
|
|
570
575
|
} }, { key: "_enablePointerEventsAfterDelay", value: function() {
|
|
571
576
|
var e = this;
|
|
572
577
|
this._disablePointerEventsTimeoutId && clearTimeout(this._disablePointerEventsTimeoutId), this._disablePointerEventsTimeoutId = setTimeout(function() {
|
|
@@ -585,14 +590,14 @@ var ne = "requested", _e = function() {
|
|
|
585
590
|
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: ne } : null : { scrollLeft: 0, scrollTop: 0, scrollPositionChangeReason: ne };
|
|
586
591
|
} }]);
|
|
587
592
|
}();
|
|
588
|
-
p(
|
|
593
|
+
p(ve, "defaultProps", { "aria-label": "grid", horizontalOverscanSize: 0, noContentRenderer: function() {
|
|
589
594
|
return null;
|
|
590
595
|
}, onScroll: function() {
|
|
591
596
|
return null;
|
|
592
597
|
}, onSectionRendered: function() {
|
|
593
598
|
return null;
|
|
594
|
-
}, scrollToAlignment: "auto", scrollToCell: -1, style: {}, verticalOverscanSize: 0 }),
|
|
595
|
-
var
|
|
599
|
+
}, scrollToAlignment: "auto", scrollToCell: -1, style: {}, verticalOverscanSize: 0 }), ve.propTypes = {}, ue(ve);
|
|
600
|
+
var Ho = E(function o(e) {
|
|
596
601
|
var t = e.height, n = e.width, r = e.x, l = e.y;
|
|
597
602
|
A(this, o), this.height = t, this.width = n, this.x = r, this.y = l, this._indexMap = {}, this._indices = [];
|
|
598
603
|
}, [{ key: "addCellIndex", value: function(o) {
|
|
@@ -602,7 +607,7 @@ var Bo = E(function o(e) {
|
|
|
602
607
|
return this._indices;
|
|
603
608
|
} }, { key: "toString", value: function() {
|
|
604
609
|
return "".concat(this.x, ",").concat(this.y, " ").concat(this.width, "x").concat(this.height);
|
|
605
|
-
} }]),
|
|
610
|
+
} }]), Wo = E(function o() {
|
|
606
611
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 100;
|
|
607
612
|
A(this, o), this._sectionSize = e, this._cellMetadata = [], this._sections = {};
|
|
608
613
|
}, [{ key: "getCellIndices", value: function(o) {
|
|
@@ -620,7 +625,7 @@ var Bo = E(function o(e) {
|
|
|
620
625
|
} }, { key: "getSections", value: function(o) {
|
|
621
626
|
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 = [], d = l; d <= i; d++) for (var h = a; h <= s; h++) {
|
|
622
627
|
var f = "".concat(d, ".").concat(h);
|
|
623
|
-
this._sections[f] || (this._sections[f] = new
|
|
628
|
+
this._sections[f] || (this._sections[f] = new Ho({ height: this._sectionSize, width: this._sectionSize, x: d * this._sectionSize, y: h * this._sectionSize })), c.push(this._sections[f]);
|
|
624
629
|
}
|
|
625
630
|
return c;
|
|
626
631
|
} }, { key: "getTotalSectionCount", value: function() {
|
|
@@ -636,7 +641,7 @@ var Bo = E(function o(e) {
|
|
|
636
641
|
return n.addCellIndex({ index: t });
|
|
637
642
|
});
|
|
638
643
|
} }]);
|
|
639
|
-
function
|
|
644
|
+
function $e(o) {
|
|
640
645
|
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;
|
|
641
646
|
switch (t) {
|
|
642
647
|
case "start":
|
|
@@ -649,33 +654,33 @@ function Ye(o) {
|
|
|
649
654
|
return Math.max(s, Math.min(a, i));
|
|
650
655
|
}
|
|
651
656
|
}
|
|
652
|
-
function
|
|
657
|
+
function kt() {
|
|
653
658
|
try {
|
|
654
659
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
655
660
|
}));
|
|
656
661
|
} catch {
|
|
657
662
|
}
|
|
658
|
-
return (
|
|
663
|
+
return (kt = function() {
|
|
659
664
|
return !!o;
|
|
660
665
|
})();
|
|
661
666
|
}
|
|
662
|
-
var
|
|
667
|
+
var Ke = function() {
|
|
663
668
|
function o(e, t) {
|
|
664
669
|
var n, r, l, i;
|
|
665
|
-
return A(this, o), r = this, i = [e, t], l =
|
|
670
|
+
return A(this, o), r = this, i = [e, t], l = k(l = o), (n = W(r, kt() ? Reflect.construct(l, i || [], k(r).constructor) : l.apply(r, i)))._cellMetadata = [], n._lastRenderedCellIndices = [], n._cellCache = [], n._isScrollingChange = n._isScrollingChange.bind(n), n._setCollectionViewRef = n._setCollectionViewRef.bind(n), n;
|
|
666
671
|
}
|
|
667
|
-
return D(o,
|
|
672
|
+
return D(o, C.PureComponent), E(o, [{ key: "forceUpdate", value: function() {
|
|
668
673
|
this._collectionView !== void 0 && this._collectionView.forceUpdate();
|
|
669
674
|
} }, { key: "recomputeCellSizesAndPositions", value: function() {
|
|
670
675
|
this._cellCache = [], this._collectionView.recomputeCellSizesAndPositions();
|
|
671
676
|
} }, { key: "render", value: function() {
|
|
672
|
-
var e =
|
|
677
|
+
var e = U({}, (function(t) {
|
|
673
678
|
if (t == null) throw new TypeError("Cannot destructure " + t);
|
|
674
679
|
}(this.props), this.props));
|
|
675
|
-
return
|
|
680
|
+
return C.createElement(ve, U({ cellLayoutManager: this, isScrollingChange: this._isScrollingChange, ref: this._setCollectionViewRef }, e));
|
|
676
681
|
} }, { key: "calculateSizeAndPositionData", value: function() {
|
|
677
682
|
var e = this.props, t = function(n) {
|
|
678
|
-
for (var r = n.cellCount, l = n.cellSizeAndPositionGetter, i = [], a = new
|
|
683
|
+
for (var r = n.cellCount, l = n.cellSizeAndPositionGetter, i = [], a = new Wo(n.sectionSize), s = 0, c = 0, d = 0; d < r; d++) {
|
|
679
684
|
var h = l({ index: d });
|
|
680
685
|
if (h.height == null || isNaN(h.height) || h.width == null || isNaN(h.width) || h.x == null || isNaN(h.x) || h.y == null || isNaN(h.y)) throw Error("Invalid metadata returned for cell ".concat(d, `:
|
|
681
686
|
x:`).concat(h.x, ", y:").concat(h.y, ", width:").concat(h.width, ", height:").concat(h.height));
|
|
@@ -690,7 +695,7 @@ var Je = function() {
|
|
|
690
695
|
var t = e.align, n = e.cellIndex, r = e.height, l = e.scrollLeft, i = e.scrollTop, a = e.width, s = this.props.cellCount;
|
|
691
696
|
if (n >= 0 && n < s) {
|
|
692
697
|
var c = this._cellMetadata[n];
|
|
693
|
-
l =
|
|
698
|
+
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 });
|
|
694
699
|
}
|
|
695
700
|
return { scrollLeft: l, scrollTop: i };
|
|
696
701
|
} }, { key: "getTotalSize", value: function() {
|
|
@@ -707,30 +712,30 @@ var Je = function() {
|
|
|
707
712
|
this._collectionView = e;
|
|
708
713
|
} }]);
|
|
709
714
|
}();
|
|
710
|
-
function
|
|
715
|
+
function Ot() {
|
|
711
716
|
try {
|
|
712
717
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
713
718
|
}));
|
|
714
719
|
} catch {
|
|
715
720
|
}
|
|
716
|
-
return (
|
|
721
|
+
return (Ot = function() {
|
|
717
722
|
return !!o;
|
|
718
723
|
})();
|
|
719
724
|
}
|
|
720
|
-
function
|
|
725
|
+
function qe(o) {
|
|
721
726
|
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;
|
|
722
727
|
e === l && (typeof t != "number" && typeof i != "number" || t === i) || (n(r), s >= 0 && s === a && c());
|
|
723
728
|
}
|
|
724
729
|
function ie(o, e) {
|
|
725
730
|
if (o == null) return {};
|
|
726
|
-
var t, n, r =
|
|
731
|
+
var t, n, r = bo(o, e);
|
|
727
732
|
if (Object.getOwnPropertySymbols) {
|
|
728
733
|
var l = Object.getOwnPropertySymbols(o);
|
|
729
734
|
for (n = 0; n < l.length; n++) t = l[n], e.indexOf(t) === -1 && {}.propertyIsEnumerable.call(o, t) && (r[t] = o[t]);
|
|
730
735
|
}
|
|
731
736
|
return r;
|
|
732
737
|
}
|
|
733
|
-
p(
|
|
738
|
+
p(Ke, "defaultProps", { "aria-label": "grid", cellGroupRenderer: function(o) {
|
|
734
739
|
var e = o.cellCache, t = o.cellRenderer, n = o.cellSizeAndPositionGetter, r = o.indices, l = o.isScrolling;
|
|
735
740
|
return r.map(function(i) {
|
|
736
741
|
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 } };
|
|
@@ -738,12 +743,12 @@ p(Je, "defaultProps", { "aria-label": "grid", cellGroupRenderer: function(o) {
|
|
|
738
743
|
}).filter(function(i) {
|
|
739
744
|
return !!i;
|
|
740
745
|
});
|
|
741
|
-
} }),
|
|
746
|
+
} }), Ke.propTypes = {}, function() {
|
|
742
747
|
function o(e, t) {
|
|
743
748
|
var n, r, l, i;
|
|
744
|
-
return A(this, o), r = this, i = [e, t], l =
|
|
749
|
+
return A(this, o), r = this, i = [e, t], l = k(l = o), (n = W(r, Ot() ? Reflect.construct(l, i || [], k(r).constructor) : l.apply(r, i)))._registerChild = n._registerChild.bind(n), n;
|
|
745
750
|
}
|
|
746
|
-
return D(o,
|
|
751
|
+
return D(o, C.PureComponent), E(o, [{ key: "componentDidUpdate", value: function(e) {
|
|
747
752
|
var t = this.props, n = t.columnMaxWidth, r = t.columnMinWidth, l = t.columnCount, i = t.width;
|
|
748
753
|
n === e.columnMaxWidth && r === e.columnMinWidth && l === e.columnCount && i === e.width || this._registeredChild && this._registeredChild.recomputeGridSize();
|
|
749
754
|
} }, { key: "render", value: function() {
|
|
@@ -756,7 +761,7 @@ p(Je, "defaultProps", { "aria-label": "grid", cellGroupRenderer: function(o) {
|
|
|
756
761
|
this._registeredChild = e, this._registeredChild && this._registeredChild.recomputeGridSize();
|
|
757
762
|
} }]);
|
|
758
763
|
}().propTypes = {};
|
|
759
|
-
var F,
|
|
764
|
+
var F, Do = E(function o(e) {
|
|
760
765
|
var t = e.cellCount, n = e.cellSizeGetter, r = e.estimatedCellSize;
|
|
761
766
|
A(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;
|
|
762
767
|
}, [{ key: "areOffsetsAdjusted", value: function() {
|
|
@@ -828,9 +833,9 @@ var F, Vo = E(function o(e) {
|
|
|
828
833
|
o = Math.max(0, o);
|
|
829
834
|
var e = this.getSizeAndPositionOfLastMeasuredCell(), t = Math.max(0, this._lastMeasuredIndex);
|
|
830
835
|
return e.offset >= o ? this._binarySearch(t, 0, o) : this._exponentialSearch(t, o);
|
|
831
|
-
} }]),
|
|
832
|
-
var t = e.maxScrollSize, n = t === void 0 ? typeof window < "u" && window.chrome ? 16777100 : 15e5 : t, r = ie(e,
|
|
833
|
-
A(this, o), p(this, "_cellSizeAndPositionManager", void 0), p(this, "_maxScrollSize", void 0), this._cellSizeAndPositionManager = new
|
|
836
|
+
} }]), jo = ["maxScrollSize"], Xe = E(function o(e) {
|
|
837
|
+
var t = e.maxScrollSize, n = t === void 0 ? typeof window < "u" && window.chrome ? 16777100 : 15e5 : t, r = ie(e, jo);
|
|
838
|
+
A(this, o), p(this, "_cellSizeAndPositionManager", void 0), p(this, "_maxScrollSize", void 0), this._cellSizeAndPositionManager = new Do(r), this._maxScrollSize = n;
|
|
834
839
|
}, [{ key: "areOffsetsAdjusted", value: function() {
|
|
835
840
|
return this._cellSizeAndPositionManager.getTotalSize() > this._maxScrollSize;
|
|
836
841
|
} }, { key: "configure", value: function(o) {
|
|
@@ -874,27 +879,27 @@ var F, Vo = E(function o(e) {
|
|
|
874
879
|
var l = this._getOffsetPercentage({ containerSize: e, offset: t, totalSize: r });
|
|
875
880
|
return Math.round(l * (n - e));
|
|
876
881
|
} }]);
|
|
877
|
-
function
|
|
878
|
-
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, d = o.scrollToIndex, h = o.size, f = o.sizeJustIncreasedFromZero, u = o.updateScrollIndexCallback, v = t.getCellCount(),
|
|
879
|
-
|
|
882
|
+
function Ye(o) {
|
|
883
|
+
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, d = o.scrollToIndex, h = o.size, f = o.sizeJustIncreasedFromZero, u = o.updateScrollIndexCallback, v = t.getCellCount(), g = d >= 0 && d < v;
|
|
884
|
+
g && (h !== a || f || !r || typeof e == "number" && e !== r || c !== l || d !== i) ? u(d) : !g && v > 0 && (h < a || v < n) && s > t.getTotalSize() - h && u(v - 1);
|
|
880
885
|
}
|
|
881
|
-
var
|
|
886
|
+
var Fo = (F = typeof window < "u" ? window : typeof self < "u" ? self : {}).requestAnimationFrame || F.webkitRequestAnimationFrame || F.mozRequestAnimationFrame || F.oRequestAnimationFrame || F.msRequestAnimationFrame || function(o) {
|
|
882
887
|
return F.setTimeout(o, 1e3 / 60);
|
|
883
|
-
},
|
|
888
|
+
}, No = F.cancelAnimationFrame || F.webkitCancelAnimationFrame || F.mozCancelAnimationFrame || F.oCancelAnimationFrame || F.msCancelAnimationFrame || function(o) {
|
|
884
889
|
F.clearTimeout(o);
|
|
885
|
-
},
|
|
886
|
-
return
|
|
887
|
-
},
|
|
890
|
+
}, Je = Fo, Bo = No, oe = function(o) {
|
|
891
|
+
return Bo(o.id);
|
|
892
|
+
}, Le = function(o, e) {
|
|
888
893
|
var t;
|
|
889
894
|
Promise.resolve().then(function() {
|
|
890
895
|
t = Date.now();
|
|
891
896
|
});
|
|
892
897
|
var n = function() {
|
|
893
|
-
Date.now() - t >= e ? o.call() : r.id =
|
|
894
|
-
}, r = { id:
|
|
898
|
+
Date.now() - t >= e ? o.call() : r.id = Je(n);
|
|
899
|
+
}, r = { id: Je(n) };
|
|
895
900
|
return r;
|
|
896
901
|
};
|
|
897
|
-
function
|
|
902
|
+
function Ze(o, e) {
|
|
898
903
|
var t = Object.keys(o);
|
|
899
904
|
if (Object.getOwnPropertySymbols) {
|
|
900
905
|
var n = Object.getOwnPropertySymbols(o);
|
|
@@ -907,45 +912,45 @@ function ot(o, e) {
|
|
|
907
912
|
function j(o) {
|
|
908
913
|
for (var e = 1; e < arguments.length; e++) {
|
|
909
914
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
910
|
-
e % 2 ?
|
|
915
|
+
e % 2 ? Ze(Object(t), !0).forEach(function(n) {
|
|
911
916
|
p(o, n, t[n]);
|
|
912
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) :
|
|
917
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : Ze(Object(t)).forEach(function(n) {
|
|
913
918
|
Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
|
|
914
919
|
});
|
|
915
920
|
}
|
|
916
921
|
return o;
|
|
917
922
|
}
|
|
918
|
-
function
|
|
923
|
+
function Mt() {
|
|
919
924
|
try {
|
|
920
925
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
921
926
|
}));
|
|
922
927
|
} catch {
|
|
923
928
|
}
|
|
924
|
-
return (
|
|
929
|
+
return (Mt = function() {
|
|
925
930
|
return !!o;
|
|
926
931
|
})();
|
|
927
932
|
}
|
|
928
|
-
var
|
|
933
|
+
var Qe = "requested", V = function() {
|
|
929
934
|
function o(e) {
|
|
930
935
|
var t, n, r, l;
|
|
931
|
-
A(this, o), n = this, l = [e], r =
|
|
936
|
+
A(this, o), n = this, l = [e], r = k(r = o), p(t = W(n, Mt() ? Reflect.construct(r, l || [], k(n).constructor) : r.apply(n, l)), "_onGridRenderedMemoizer", te()), p(t, "_onScrollMemoizer", te(!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() {
|
|
932
937
|
t._disablePointerEventsTimeoutId = null, t.setState({ isScrolling: !1, needToResetStyleCache: !1 });
|
|
933
938
|
}), p(t, "_invokeOnGridRenderedHelper", function() {
|
|
934
939
|
var s = t.props.onSectionRendered;
|
|
935
940
|
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 } });
|
|
936
941
|
}), p(t, "_setScrollingContainerRef", function(s) {
|
|
937
|
-
t._scrollingContainer = s, typeof t.props.elementRef == "function" ? t.props.elementRef(s) :
|
|
942
|
+
t._scrollingContainer = s, typeof t.props.elementRef == "function" ? t.props.elementRef(s) : q(t.props.elementRef) === "object" && (t.props.elementRef.current = s);
|
|
938
943
|
}), p(t, "_onScroll", function(s) {
|
|
939
944
|
s.target === t._scrollingContainer && t.handleScrollEvent(s.target);
|
|
940
945
|
});
|
|
941
|
-
var i = new
|
|
946
|
+
var i = new Xe({ cellCount: e.columnCount, cellSizeGetter: function(s) {
|
|
942
947
|
return o._wrapSizeGetter(e.columnWidth)(s);
|
|
943
|
-
}, estimatedCellSize: o._getEstimatedColumnSize(e) }), a = new
|
|
948
|
+
}, estimatedCellSize: o._getEstimatedColumnSize(e) }), a = new Xe({ cellCount: e.rowCount, cellSizeGetter: function(s) {
|
|
944
949
|
return o._wrapSizeGetter(e.rowHeight)(s);
|
|
945
950
|
}, estimatedCellSize: o._getEstimatedRowSize(e) });
|
|
946
951
|
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;
|
|
947
952
|
}
|
|
948
|
-
return D(o,
|
|
953
|
+
return D(o, C.PureComponent), E(o, [{ key: "getOffsetForCell", value: function() {
|
|
949
954
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.alignment, n = t === void 0 ? this.props.scrollToAlignment : t, r = e.columnIndex, l = r === void 0 ? this.props.scrollToColumn : r, i = e.rowIndex, a = i === void 0 ? this.props.scrollToRow : i, s = j(j({}, this.props), {}, { scrollToAlignment: n, scrollToColumn: l, scrollToRow: a });
|
|
950
955
|
return { scrollLeft: this._getCalculatedScrollLeft(s), scrollTop: this._getCalculatedScrollTop(s) };
|
|
951
956
|
} }, { key: "getTotalRowsHeight", value: function() {
|
|
@@ -956,12 +961,12 @@ var nt = "requested", $ = function() {
|
|
|
956
961
|
var t = e.scrollLeft, n = t === void 0 ? 0 : t, r = e.scrollTop, l = r === void 0 ? 0 : r;
|
|
957
962
|
if (!(l < 0)) {
|
|
958
963
|
this._debounceScrollEnded();
|
|
959
|
-
var i = this.props, a = i.autoHeight, s = i.autoWidth, c = i.height, d = i.width, h = this.state.instanceProps, f = h.scrollbarSize, u = h.rowSizeAndPositionManager.getTotalSize(), v = h.columnSizeAndPositionManager.getTotalSize(),
|
|
960
|
-
if (this.state.scrollLeft !==
|
|
961
|
-
var S = { isScrolling: !0, scrollDirectionHorizontal:
|
|
962
|
-
a || (S.scrollTop = _), s || (S.scrollLeft =
|
|
964
|
+
var i = this.props, a = i.autoHeight, s = i.autoWidth, c = i.height, d = i.width, h = this.state.instanceProps, f = h.scrollbarSize, u = h.rowSizeAndPositionManager.getTotalSize(), v = h.columnSizeAndPositionManager.getTotalSize(), g = Math.min(Math.max(0, v - d + f), n), _ = Math.min(Math.max(0, u - c + f), l);
|
|
965
|
+
if (this.state.scrollLeft !== g || this.state.scrollTop !== _) {
|
|
966
|
+
var S = { isScrolling: !0, scrollDirectionHorizontal: g !== this.state.scrollLeft ? g > this.state.scrollLeft ? 1 : -1 : this.state.scrollDirectionHorizontal, scrollDirectionVertical: _ !== this.state.scrollTop ? _ > this.state.scrollTop ? 1 : -1 : this.state.scrollDirectionVertical, scrollPositionChangeReason: "observed" };
|
|
967
|
+
a || (S.scrollTop = _), s || (S.scrollLeft = g), S.needToResetStyleCache = !1, this.setState(S);
|
|
963
968
|
}
|
|
964
|
-
this._invokeOnScrollMemoizer({ scrollLeft:
|
|
969
|
+
this._invokeOnScrollMemoizer({ scrollLeft: g, scrollTop: _, totalColumnsWidth: v, totalRowsHeight: u });
|
|
965
970
|
}
|
|
966
971
|
} }, { key: "invalidateCellSizeAfterRender", value: function(e) {
|
|
967
972
|
var t = e.columnIndex, n = e.rowIndex;
|
|
@@ -988,54 +993,54 @@ var nt = "requested", $ = function() {
|
|
|
988
993
|
var h = n > 0 && s > 0;
|
|
989
994
|
l >= 0 && h && this._updateScrollLeftForScrollToColumn(), a >= 0 && h && this._updateScrollTopForScrollToRow(), this._invokeOnGridRenderedHelper(), this._invokeOnScrollMemoizer({ scrollLeft: r || 0, scrollTop: i || 0, totalColumnsWidth: c.columnSizeAndPositionManager.getTotalSize(), totalRowsHeight: c.rowSizeAndPositionManager.getTotalSize() }), this._maybeCallOnScrollbarPresenceChange();
|
|
990
995
|
} }, { key: "componentDidUpdate", value: function(e, t) {
|
|
991
|
-
var n = this, r = this.props, l = r.autoHeight, i = r.autoWidth, a = r.columnCount, s = r.height, c = r.rowCount, d = r.scrollToAlignment, h = r.scrollToColumn, f = r.scrollToRow, u = r.width, v = this.state,
|
|
996
|
+
var n = this, r = this.props, l = r.autoHeight, i = r.autoWidth, a = r.columnCount, s = r.height, c = r.rowCount, d = r.scrollToAlignment, h = r.scrollToColumn, f = r.scrollToRow, u = r.width, v = this.state, g = v.scrollLeft, _ = v.scrollPositionChangeReason, S = v.scrollTop, m = v.instanceProps;
|
|
992
997
|
this._handleInvalidatedGridSize();
|
|
993
|
-
var
|
|
994
|
-
_ ===
|
|
998
|
+
var y = a > 0 && e.columnCount === 0 || c > 0 && e.rowCount === 0;
|
|
999
|
+
_ === Qe && (!i && g >= 0 && (g !== this._scrollingContainer.scrollLeft || y) && (this._scrollingContainer.scrollLeft = g), !l && S >= 0 && (S !== this._scrollingContainer.scrollTop || y) && (this._scrollingContainer.scrollTop = S));
|
|
995
1000
|
var w = (e.width === 0 || e.height === 0) && s > 0 && u > 0;
|
|
996
|
-
if (this._recomputeScrollLeftFlag ? (this._recomputeScrollLeftFlag = !1, this._updateScrollLeftForScrollToColumn(this.props)) :
|
|
1001
|
+
if (this._recomputeScrollLeftFlag ? (this._recomputeScrollLeftFlag = !1, this._updateScrollLeftForScrollToColumn(this.props)) : Ye({ cellSizeAndPositionManager: m.columnSizeAndPositionManager, previousCellsCount: e.columnCount, previousCellSize: e.columnWidth, previousScrollToAlignment: e.scrollToAlignment, previousScrollToIndex: e.scrollToColumn, previousSize: e.width, scrollOffset: g, scrollToAlignment: d, scrollToIndex: h, size: u, sizeJustIncreasedFromZero: w, updateScrollIndexCallback: function() {
|
|
997
1002
|
return n._updateScrollLeftForScrollToColumn(n.props);
|
|
998
|
-
} }), this._recomputeScrollTopFlag ? (this._recomputeScrollTopFlag = !1, this._updateScrollTopForScrollToRow(this.props)) :
|
|
1003
|
+
} }), this._recomputeScrollTopFlag ? (this._recomputeScrollTopFlag = !1, this._updateScrollTopForScrollToRow(this.props)) : Ye({ cellSizeAndPositionManager: m.rowSizeAndPositionManager, previousCellsCount: e.rowCount, previousCellSize: e.rowHeight, previousScrollToAlignment: e.scrollToAlignment, previousScrollToIndex: e.scrollToRow, previousSize: e.height, scrollOffset: S, scrollToAlignment: d, scrollToIndex: f, size: s, sizeJustIncreasedFromZero: w, updateScrollIndexCallback: function() {
|
|
999
1004
|
return n._updateScrollTopForScrollToRow(n.props);
|
|
1000
|
-
} }), this._invokeOnGridRenderedHelper(),
|
|
1001
|
-
var
|
|
1002
|
-
this._invokeOnScrollMemoizer({ scrollLeft:
|
|
1005
|
+
} }), this._invokeOnGridRenderedHelper(), g !== t.scrollLeft || S !== t.scrollTop) {
|
|
1006
|
+
var x = m.rowSizeAndPositionManager.getTotalSize(), R = m.columnSizeAndPositionManager.getTotalSize();
|
|
1007
|
+
this._invokeOnScrollMemoizer({ scrollLeft: g, scrollTop: S, totalColumnsWidth: R, totalRowsHeight: x });
|
|
1003
1008
|
}
|
|
1004
1009
|
this._maybeCallOnScrollbarPresenceChange();
|
|
1005
1010
|
} }, { key: "componentWillUnmount", value: function() {
|
|
1006
1011
|
this._disablePointerEventsTimeoutId && oe(this._disablePointerEventsTimeoutId);
|
|
1007
1012
|
} }, { key: "render", value: function() {
|
|
1008
|
-
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, d = e.id, h = e.noContentRenderer, f = e.role, u = e.style, v = e.tabIndex,
|
|
1009
|
-
|
|
1010
|
-
var
|
|
1011
|
-
|
|
1012
|
-
var I = this._childrenToDisplay,
|
|
1013
|
-
return
|
|
1013
|
+
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, d = e.id, h = e.noContentRenderer, f = e.role, u = e.style, v = e.tabIndex, g = 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" : g, WebkitOverflowScrolling: "touch", willChange: "transform" };
|
|
1014
|
+
m && (this._styleCache = {}), this.state.isScrolling || this._resetStyleCache(), this._calculateChildrenToRender(this.props, this.state);
|
|
1015
|
+
var x = S.columnSizeAndPositionManager.getTotalSize(), R = S.rowSizeAndPositionManager.getTotalSize(), z = R > c ? S.scrollbarSize : 0, T = x > g ? S.scrollbarSize : 0;
|
|
1016
|
+
T === this._horizontalScrollBarSize && z === this._verticalScrollBarSize || (this._horizontalScrollBarSize = T, this._verticalScrollBarSize = z, this._scrollbarPresenceChanged = !0), w.overflowX = x + z <= g ? "hidden" : "auto", w.overflowY = R + T <= c ? "hidden" : "auto";
|
|
1017
|
+
var I = this._childrenToDisplay, P = I.length === 0 && c > 0 && g > 0;
|
|
1018
|
+
return C.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: d, onScroll: this._onScroll, role: f, style: j(j({}, w), u), tabIndex: v }), I.length > 0 && C.createElement("div", { className: "ReactVirtualized__Grid__innerScrollContainer", role: a, style: j({ width: t ? "auto" : x, height: R, maxWidth: x, maxHeight: R, overflow: "hidden", pointerEvents: y ? "none" : "", position: "relative" }, s) }, I), P && h());
|
|
1014
1019
|
} }, { key: "_calculateChildrenToRender", value: function() {
|
|
1015
|
-
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, d = e.overscanRowCount, h = e.rowCount, f = e.width, u = e.isScrollingOptOut, v = t.scrollDirectionHorizontal,
|
|
1020
|
+
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, d = e.overscanRowCount, h = e.rowCount, f = e.width, u = e.isScrollingOptOut, v = t.scrollDirectionHorizontal, g = 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);
|
|
1016
1021
|
if (this._childrenToDisplay = [], a > 0 && f > 0) {
|
|
1017
|
-
var w = _.columnSizeAndPositionManager.getVisibleCellRange({ containerSize: f, offset:
|
|
1018
|
-
this._renderedColumnStartIndex = w.start, this._renderedColumnStopIndex = w.stop, this._renderedRowStartIndex =
|
|
1019
|
-
var
|
|
1022
|
+
var w = _.columnSizeAndPositionManager.getVisibleCellRange({ containerSize: f, offset: m }), x = _.rowSizeAndPositionManager.getVisibleCellRange({ containerSize: a, offset: S }), R = _.columnSizeAndPositionManager.getOffsetAdjustment({ containerSize: f, offset: m }), z = _.rowSizeAndPositionManager.getOffsetAdjustment({ containerSize: a, offset: S });
|
|
1023
|
+
this._renderedColumnStartIndex = w.start, this._renderedColumnStopIndex = w.stop, this._renderedRowStartIndex = x.start, this._renderedRowStopIndex = x.stop;
|
|
1024
|
+
var T = c({ direction: "horizontal", cellCount: l, overscanCellsCount: s, scrollDirection: v, startIndex: typeof w.start == "number" ? w.start : 0, stopIndex: typeof w.stop == "number" ? w.stop : -1 }), I = c({ direction: "vertical", cellCount: h, overscanCellsCount: d, scrollDirection: g, startIndex: typeof x.start == "number" ? x.start : 0, stopIndex: typeof x.stop == "number" ? x.stop : -1 }), P = T.overscanStartIndex, b = T.overscanStopIndex, M = I.overscanStartIndex, O = I.overscanStopIndex;
|
|
1020
1025
|
if (i) {
|
|
1021
1026
|
if (!i.hasFixedHeight()) {
|
|
1022
|
-
for (var
|
|
1023
|
-
|
|
1027
|
+
for (var H = M; H <= O; H++) if (!i.has(H, 0)) {
|
|
1028
|
+
P = 0, b = l - 1;
|
|
1024
1029
|
break;
|
|
1025
1030
|
}
|
|
1026
1031
|
}
|
|
1027
1032
|
if (!i.hasFixedWidth()) {
|
|
1028
|
-
for (var
|
|
1029
|
-
|
|
1033
|
+
for (var J = P; J <= b; J++) if (!i.has(0, J)) {
|
|
1034
|
+
M = 0, O = h - 1;
|
|
1030
1035
|
break;
|
|
1031
1036
|
}
|
|
1032
1037
|
}
|
|
1033
1038
|
}
|
|
1034
|
-
this._childrenToDisplay = r({ cellCache: this._cellCache, cellRenderer: n, columnSizeAndPositionManager: _.columnSizeAndPositionManager, columnStartIndex:
|
|
1039
|
+
this._childrenToDisplay = r({ cellCache: this._cellCache, cellRenderer: n, columnSizeAndPositionManager: _.columnSizeAndPositionManager, columnStartIndex: P, columnStopIndex: b, deferredMeasurementCache: i, horizontalOffsetAdjustment: R, isScrolling: y, isScrollingOptOut: u, parent: this, rowSizeAndPositionManager: _.rowSizeAndPositionManager, rowStartIndex: M, rowStopIndex: O, scrollLeft: m, scrollTop: S, styleCache: this._styleCache, verticalOffsetAdjustment: z, visibleColumnIndices: w, visibleRowIndices: x }), this._columnStartIndex = P, this._columnStopIndex = b, this._rowStartIndex = M, this._rowStopIndex = O;
|
|
1035
1040
|
}
|
|
1036
1041
|
} }, { key: "_debounceScrollEnded", value: function() {
|
|
1037
1042
|
var e = this.props.scrollingResetTimeInterval;
|
|
1038
|
-
this._disablePointerEventsTimeoutId && oe(this._disablePointerEventsTimeoutId), this._disablePointerEventsTimeoutId =
|
|
1043
|
+
this._disablePointerEventsTimeoutId && oe(this._disablePointerEventsTimeoutId), this._disablePointerEventsTimeoutId = Le(this._debounceScrollEndedCallback, e);
|
|
1039
1044
|
} }, { key: "_handleInvalidatedGridSize", value: function() {
|
|
1040
1045
|
if (typeof this._deferredInvalidateColumnIndex == "number" && typeof this._deferredInvalidateRowIndex == "number") {
|
|
1041
1046
|
var e = this._deferredInvalidateColumnIndex, t = this._deferredInvalidateRowIndex;
|
|
@@ -1081,11 +1086,11 @@ var nt = "requested", $ = function() {
|
|
|
1081
1086
|
var n = {};
|
|
1082
1087
|
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 }));
|
|
1083
1088
|
var r, l, i = t.instanceProps;
|
|
1084
|
-
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 }),
|
|
1089
|
+
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 }), qe({ cellCount: i.prevColumnCount, cellSize: typeof i.prevColumnWidth == "number" ? i.prevColumnWidth : null, computeMetadataCallback: function() {
|
|
1085
1090
|
return i.columnSizeAndPositionManager.resetCell(0);
|
|
1086
1091
|
}, computeMetadataCallbackProps: e, nextCellsCount: e.columnCount, nextCellSize: typeof e.columnWidth == "number" ? e.columnWidth : null, nextScrollToIndex: e.scrollToColumn, scrollToIndex: i.prevScrollToColumn, updateScrollOffsetForScrollToIndex: function() {
|
|
1087
1092
|
r = o._getScrollLeftForScrollToColumnStateUpdate(e, t);
|
|
1088
|
-
} }),
|
|
1093
|
+
} }), qe({ cellCount: i.prevRowCount, cellSize: typeof i.prevRowHeight == "number" ? i.prevRowHeight : null, computeMetadataCallback: function() {
|
|
1089
1094
|
return i.rowSizeAndPositionManager.resetCell(0);
|
|
1090
1095
|
}, computeMetadataCallbackProps: e, nextCellsCount: e.rowCount, nextCellSize: typeof e.rowHeight == "number" ? e.rowHeight : null, nextScrollToIndex: e.scrollToRow, scrollToIndex: i.prevScrollToRow, updateScrollOffsetForScrollToIndex: function() {
|
|
1091
1096
|
l = o._getScrollTopForScrollToRowStateUpdate(e, t);
|
|
@@ -1095,7 +1100,7 @@ var nt = "requested", $ = function() {
|
|
|
1095
1100
|
} }, { key: "_getEstimatedRowSize", value: function(e) {
|
|
1096
1101
|
return typeof e.rowHeight == "number" ? e.rowHeight : e.estimatedRowSize;
|
|
1097
1102
|
} }, { key: "_getScrollToPositionStateUpdate", value: function(e) {
|
|
1098
|
-
var t = e.prevState, n = e.scrollLeft, r = e.scrollTop, l = { scrollPositionChangeReason:
|
|
1103
|
+
var t = e.prevState, n = e.scrollLeft, r = e.scrollTop, l = { scrollPositionChangeReason: Qe };
|
|
1099
1104
|
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 : {};
|
|
1100
1105
|
} }, { key: "_wrapSizeGetter", value: function(e) {
|
|
1101
1106
|
return typeof e == "function" ? e : function() {
|
|
@@ -1123,41 +1128,41 @@ var nt = "requested", $ = function() {
|
|
|
1123
1128
|
return typeof r == "number" && r >= 0 && n !== r ? o._getScrollToPositionStateUpdate({ prevState: t, scrollLeft: -1, scrollTop: r }) : {};
|
|
1124
1129
|
} }]);
|
|
1125
1130
|
}();
|
|
1126
|
-
function
|
|
1131
|
+
function Lt(o) {
|
|
1127
1132
|
var e = o.cellCount, t = o.overscanCellsCount, n = o.scrollDirection, r = o.startIndex, l = o.stopIndex;
|
|
1128
1133
|
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) };
|
|
1129
1134
|
}
|
|
1130
|
-
function
|
|
1135
|
+
function Te(o, e) {
|
|
1131
1136
|
(e == null || e > o.length) && (e = o.length);
|
|
1132
1137
|
for (var t = 0, n = Array(e); t < e; t++) n[t] = o[t];
|
|
1133
1138
|
return n;
|
|
1134
1139
|
}
|
|
1135
|
-
function
|
|
1140
|
+
function Gt(o, e) {
|
|
1136
1141
|
if (o) {
|
|
1137
|
-
if (typeof o == "string") return
|
|
1142
|
+
if (typeof o == "string") return Te(o, e);
|
|
1138
1143
|
var t = {}.toString.call(o).slice(8, -1);
|
|
1139
|
-
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) ?
|
|
1144
|
+
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;
|
|
1140
1145
|
}
|
|
1141
1146
|
}
|
|
1142
|
-
function
|
|
1147
|
+
function At() {
|
|
1143
1148
|
try {
|
|
1144
1149
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1145
1150
|
}));
|
|
1146
1151
|
} catch {
|
|
1147
1152
|
}
|
|
1148
|
-
return (
|
|
1153
|
+
return (At = function() {
|
|
1149
1154
|
return !!o;
|
|
1150
1155
|
})();
|
|
1151
1156
|
}
|
|
1152
|
-
p(
|
|
1153
|
-
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, d = o.parent, h = o.rowSizeAndPositionManager, f = o.rowStartIndex, u = o.rowStopIndex, v = o.styleCache,
|
|
1154
|
-
var
|
|
1155
|
-
w && v[
|
|
1156
|
-
var
|
|
1157
|
-
!c && !s || a ||
|
|
1157
|
+
p(V, "defaultProps", { "aria-label": "grid", "aria-readonly": !0, autoContainerWidth: !1, autoHeight: !1, autoWidth: !1, cellRangeRenderer: function(o) {
|
|
1158
|
+
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, d = o.parent, h = o.rowSizeAndPositionManager, f = o.rowStartIndex, u = o.rowStopIndex, v = o.styleCache, g = o.verticalOffsetAdjustment, _ = o.visibleColumnIndices, S = o.visibleRowIndices, m = [], y = n.areOffsetsAdjusted() || h.areOffsetsAdjusted(), w = !s && !y, x = f; x <= u; x++) for (var R = h.getSizeAndPositionOfCell(x), z = r; z <= l; z++) {
|
|
1159
|
+
var T = n.getSizeAndPositionOfCell(z), I = z >= _.start && z <= _.stop && x >= S.start && x <= S.stop, P = "".concat(x, "-").concat(z), b = void 0;
|
|
1160
|
+
w && v[P] ? b = v[P] : i && !i.has(x, z) ? b = { height: "auto", left: 0, position: "absolute", top: 0, width: "auto" } : (b = { height: R.size, left: T.offset + a, position: "absolute", top: R.offset + g, width: T.size }, v[P] = b);
|
|
1161
|
+
var M = { columnIndex: z, isScrolling: s, isVisible: I, key: P, parent: d, rowIndex: x, style: b }, O = void 0;
|
|
1162
|
+
!c && !s || a || g ? O = t(M) : (e[P] || (e[P] = t(M)), O = e[P]), O != null && O !== !1 && (O.props.role || (O = _t.cloneElement(O, { role: "gridcell" })), m.push(O));
|
|
1158
1163
|
}
|
|
1159
|
-
return
|
|
1160
|
-
}, containerRole: "row", containerStyle: {}, estimatedColumnSize: 100, estimatedRowSize: 30, getScrollbarSize:
|
|
1164
|
+
return m;
|
|
1165
|
+
}, containerRole: "row", containerStyle: {}, estimatedColumnSize: 100, estimatedRowSize: 30, getScrollbarSize: be, noContentRenderer: function() {
|
|
1161
1166
|
return null;
|
|
1162
1167
|
}, onScroll: function() {
|
|
1163
1168
|
}, onScrollbarPresenceChange: function() {
|
|
@@ -1165,13 +1170,13 @@ p($, "defaultProps", { "aria-label": "grid", "aria-readonly": !0, autoContainerW
|
|
|
1165
1170
|
}, overscanColumnCount: 0, overscanIndicesGetter: function(o) {
|
|
1166
1171
|
var e = o.cellCount, t = o.overscanCellsCount, n = o.scrollDirection, r = o.startIndex, l = o.stopIndex;
|
|
1167
1172
|
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) };
|
|
1168
|
-
}, overscanRowCount: 10, role: "grid", scrollingResetTimeInterval: 150, scrollToAlignment: "auto", scrollToColumn: -1, scrollToRow: -1, style: {}, tabIndex: 0, isScrollingOptOut: !1 }), ue(
|
|
1169
|
-
var
|
|
1173
|
+
}, overscanRowCount: 10, role: "grid", scrollingResetTimeInterval: 150, scrollToAlignment: "auto", scrollToColumn: -1, scrollToRow: -1, style: {}, tabIndex: 0, isScrollingOptOut: !1 }), ue(V);
|
|
1174
|
+
var et = function() {
|
|
1170
1175
|
function o(e, t) {
|
|
1171
1176
|
var n, r, l, i;
|
|
1172
|
-
return A(this, o), r = this, i = [e, t], l =
|
|
1177
|
+
return A(this, o), r = this, i = [e, t], l = k(l = o), (n = W(r, At() ? Reflect.construct(l, i || [], k(r).constructor) : l.apply(r, i)))._loadMoreRowsMemoizer = te(), n._onRowsRendered = n._onRowsRendered.bind(n), n._registerChild = n._registerChild.bind(n), n;
|
|
1173
1178
|
}
|
|
1174
|
-
return D(o,
|
|
1179
|
+
return D(o, C.PureComponent), E(o, [{ key: "resetLoadMoreRowsCache", value: function(e) {
|
|
1175
1180
|
this._loadMoreRowsMemoizer = te(), e && this._doStuff(this._lastRenderedStartIndex, this._lastRenderedStopIndex);
|
|
1176
1181
|
} }, { key: "render", value: function() {
|
|
1177
1182
|
return (0, this.props.children)({ onRowsRendered: this._onRowsRendered, registerChild: this._registerChild });
|
|
@@ -1192,23 +1197,23 @@ var rt = function() {
|
|
|
1192
1197
|
this._lastRenderedStartIndex = t, this._lastRenderedStopIndex = n, this._doStuff(t, n);
|
|
1193
1198
|
} }, { key: "_doStuff", value: function(e, t) {
|
|
1194
1199
|
var n, r = this, l = this.props, i = l.isRowLoaded, a = l.minimumBatchSize, s = l.rowCount, c = l.threshold, d = function(f) {
|
|
1195
|
-
for (var u = f.isRowLoaded, v = f.minimumBatchSize,
|
|
1196
|
-
if (
|
|
1197
|
-
for (var
|
|
1198
|
-
S.push({ startIndex:
|
|
1200
|
+
for (var u = f.isRowLoaded, v = f.minimumBatchSize, g = f.rowCount, _ = f.stopIndex, S = [], m = null, y = null, w = f.startIndex; w <= _; w++) u({ index: w }) ? y !== null && (S.push({ startIndex: m, stopIndex: y }), m = y = null) : (y = w, m === null && (m = w));
|
|
1201
|
+
if (y !== null) {
|
|
1202
|
+
for (var x = Math.min(Math.max(y, m + v - 1), g - 1), R = y + 1; R <= x && !u({ index: R }); R++) y = R;
|
|
1203
|
+
S.push({ startIndex: m, stopIndex: y });
|
|
1199
1204
|
}
|
|
1200
|
-
if (S.length) for (var
|
|
1201
|
-
var
|
|
1202
|
-
if (u({ index:
|
|
1203
|
-
|
|
1205
|
+
if (S.length) for (var z = S[0]; z.stopIndex - z.startIndex + 1 < v && z.startIndex > 0; ) {
|
|
1206
|
+
var T = z.startIndex - 1;
|
|
1207
|
+
if (u({ index: T })) break;
|
|
1208
|
+
z.startIndex = T;
|
|
1204
1209
|
}
|
|
1205
1210
|
return S;
|
|
1206
1211
|
}({ isRowLoaded: i, minimumBatchSize: a, rowCount: s, startIndex: Math.max(0, e - c), stopIndex: Math.min(s - 1, t + c) }), h = (n = []).concat.apply(n, function(f) {
|
|
1207
1212
|
return function(u) {
|
|
1208
|
-
if (Array.isArray(u)) return
|
|
1213
|
+
if (Array.isArray(u)) return Te(u);
|
|
1209
1214
|
}(f) || function(u) {
|
|
1210
1215
|
if (typeof Symbol < "u" && u[Symbol.iterator] != null || u["@@iterator"] != null) return Array.from(u);
|
|
1211
|
-
}(f) ||
|
|
1216
|
+
}(f) || Gt(f) || function() {
|
|
1212
1217
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1213
1218
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1214
1219
|
}();
|
|
@@ -1222,25 +1227,25 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1222
1227
|
this._registeredChild = e;
|
|
1223
1228
|
} }]);
|
|
1224
1229
|
}();
|
|
1225
|
-
function
|
|
1230
|
+
function Et() {
|
|
1226
1231
|
try {
|
|
1227
1232
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1228
1233
|
}));
|
|
1229
1234
|
} catch {
|
|
1230
1235
|
}
|
|
1231
|
-
return (
|
|
1236
|
+
return (Et = function() {
|
|
1232
1237
|
return !!o;
|
|
1233
1238
|
})();
|
|
1234
1239
|
}
|
|
1235
|
-
p(
|
|
1236
|
-
var
|
|
1240
|
+
p(et, "defaultProps", { minimumBatchSize: 10, rowCount: 0, threshold: 15 }), et.propTypes = {};
|
|
1241
|
+
var Uo = function() {
|
|
1237
1242
|
function o() {
|
|
1238
1243
|
var e, t, n, r;
|
|
1239
1244
|
A(this, o);
|
|
1240
1245
|
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 =
|
|
1242
|
-
var c = s.parent, d = s.rowIndex, h = s.style, f = s.isScrolling, u = s.isVisible, v = s.key,
|
|
1243
|
-
return _ && _.writable && (h.width = "100%"),
|
|
1246
|
+
return t = this, n = o, r = [].concat(i), n = k(n), p(e = W(t, Et() ? Reflect.construct(n, r || [], k(t).constructor) : n.apply(t, r)), "Grid", void 0), p(e, "_cellRenderer", function(s) {
|
|
1247
|
+
var c = s.parent, d = s.rowIndex, h = s.style, f = s.isScrolling, u = s.isVisible, v = s.key, g = e.props.rowRenderer, _ = Object.getOwnPropertyDescriptor(h, "width");
|
|
1248
|
+
return _ && _.writable && (h.width = "100%"), g({ index: d, style: h, isScrolling: f, isVisible: u, key: v, parent: c });
|
|
1244
1249
|
}), p(e, "_setRef", function(s) {
|
|
1245
1250
|
e.Grid = s;
|
|
1246
1251
|
}), p(e, "_onScroll", function(s) {
|
|
@@ -1251,7 +1256,7 @@ var Yo = function() {
|
|
|
1251
1256
|
(0, e.props.onRowsRendered)({ overscanStartIndex: c, overscanStopIndex: d, startIndex: h, stopIndex: f });
|
|
1252
1257
|
}), e;
|
|
1253
1258
|
}
|
|
1254
|
-
return D(o,
|
|
1259
|
+
return D(o, C.PureComponent), E(o, [{ key: "forceUpdateGrid", value: function() {
|
|
1255
1260
|
this.Grid && this.Grid.forceUpdate();
|
|
1256
1261
|
} }, { key: "getOffsetForRow", value: function(e) {
|
|
1257
1262
|
var t = e.alignment, n = e.index;
|
|
@@ -1275,15 +1280,15 @@ var Yo = function() {
|
|
|
1275
1280
|
this.Grid && this.Grid.scrollToCell({ columnIndex: 0, rowIndex: e });
|
|
1276
1281
|
} }, { key: "render", value: function() {
|
|
1277
1282
|
var e = this.props, t = e.className, n = e.noRowsRenderer, r = e.scrollToIndex, l = e.width, i = N("ReactVirtualized__List", t);
|
|
1278
|
-
return
|
|
1283
|
+
return C.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
1284
|
} }]);
|
|
1280
1285
|
}();
|
|
1281
|
-
p(
|
|
1286
|
+
p(Uo, "defaultProps", { autoHeight: !1, estimatedRowSize: 30, onScroll: function() {
|
|
1282
1287
|
}, noRowsRenderer: function() {
|
|
1283
1288
|
return null;
|
|
1284
1289
|
}, onRowsRendered: function() {
|
|
1285
|
-
}, overscanIndicesGetter:
|
|
1286
|
-
const
|
|
1290
|
+
}, overscanIndicesGetter: Lt, overscanRowCount: 10, scrollToAlignment: "auto", scrollToIndex: -1, style: {} });
|
|
1291
|
+
const me = function(o, e, t, n, r) {
|
|
1287
1292
|
return typeof t == "function" ? function(l, i, a, s, c) {
|
|
1288
1293
|
for (var d = a + 1; i <= a; ) {
|
|
1289
1294
|
var h = i + a >>> 1;
|
|
@@ -1298,81 +1303,81 @@ const ge = function(o, e, t, n, r) {
|
|
|
1298
1303
|
return c;
|
|
1299
1304
|
}(o, t === void 0 ? 0 : 0 | t, n === void 0 ? o.length - 1 : 0 | n, e);
|
|
1300
1305
|
};
|
|
1301
|
-
function
|
|
1306
|
+
function Ge(o, e, t, n, r) {
|
|
1302
1307
|
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;
|
|
1303
1308
|
}
|
|
1304
|
-
var re =
|
|
1305
|
-
function
|
|
1309
|
+
var re = Ge.prototype;
|
|
1310
|
+
function we(o, e) {
|
|
1306
1311
|
o.mid = e.mid, o.left = e.left, o.right = e.right, o.leftPoints = e.leftPoints, o.rightPoints = e.rightPoints, o.count = e.count;
|
|
1307
1312
|
}
|
|
1308
|
-
function
|
|
1313
|
+
function Ht(o, e) {
|
|
1309
1314
|
var t = ce(e);
|
|
1310
1315
|
o.mid = t.mid, o.left = t.left, o.right = t.right, o.leftPoints = t.leftPoints, o.rightPoints = t.rightPoints, o.count = t.count;
|
|
1311
1316
|
}
|
|
1312
|
-
function
|
|
1317
|
+
function tt(o, e) {
|
|
1313
1318
|
var t = o.intervals([]);
|
|
1314
|
-
t.push(e),
|
|
1319
|
+
t.push(e), Ht(o, t);
|
|
1315
1320
|
}
|
|
1316
|
-
function
|
|
1321
|
+
function ot(o, e) {
|
|
1317
1322
|
var t = o.intervals([]), n = t.indexOf(e);
|
|
1318
|
-
return n < 0 ? 0 : (t.splice(n, 1),
|
|
1323
|
+
return n < 0 ? 0 : (t.splice(n, 1), Ht(o, t), 1);
|
|
1319
1324
|
}
|
|
1320
|
-
function
|
|
1325
|
+
function nt(o, e, t) {
|
|
1321
1326
|
for (var n = 0; n < o.length && o[n][0] <= e; ++n) {
|
|
1322
1327
|
var r = t(o[n]);
|
|
1323
1328
|
if (r) return r;
|
|
1324
1329
|
}
|
|
1325
1330
|
}
|
|
1326
|
-
function
|
|
1331
|
+
function rt(o, e, t) {
|
|
1327
1332
|
for (var n = o.length - 1; n >= 0 && o[n][1] >= e; --n) {
|
|
1328
1333
|
var r = t(o[n]);
|
|
1329
1334
|
if (r) return r;
|
|
1330
1335
|
}
|
|
1331
1336
|
}
|
|
1332
|
-
function
|
|
1337
|
+
function it(o, e) {
|
|
1333
1338
|
for (var t = 0; t < o.length; ++t) {
|
|
1334
1339
|
var n = e(o[t]);
|
|
1335
1340
|
if (n) return n;
|
|
1336
1341
|
}
|
|
1337
1342
|
}
|
|
1338
|
-
function
|
|
1343
|
+
function Vo(o, e) {
|
|
1339
1344
|
return o - e;
|
|
1340
1345
|
}
|
|
1341
|
-
function
|
|
1346
|
+
function ze(o, e) {
|
|
1342
1347
|
return o[0] - e[0] || o[1] - e[1];
|
|
1343
1348
|
}
|
|
1344
|
-
function
|
|
1349
|
+
function Ie(o, e) {
|
|
1345
1350
|
return o[1] - e[1] || o[0] - e[0];
|
|
1346
1351
|
}
|
|
1347
1352
|
function ce(o) {
|
|
1348
1353
|
if (o.length === 0) return null;
|
|
1349
1354
|
for (var e = [], t = 0; t < o.length; ++t) e.push(o[t][0], o[t][1]);
|
|
1350
|
-
e.sort(
|
|
1355
|
+
e.sort(Vo);
|
|
1351
1356
|
var n = e[e.length >> 1], r = [], l = [], i = [];
|
|
1352
1357
|
for (t = 0; t < o.length; ++t) {
|
|
1353
1358
|
var a = o[t];
|
|
1354
1359
|
a[1] < n ? r.push(a) : n < a[0] ? l.push(a) : i.push(a);
|
|
1355
1360
|
}
|
|
1356
1361
|
var s = i, c = i.slice();
|
|
1357
|
-
return s.sort(
|
|
1362
|
+
return s.sort(ze), c.sort(Ie), new Ge(n, ce(r), ce(l), s, c);
|
|
1358
1363
|
}
|
|
1359
|
-
function
|
|
1364
|
+
function Wt(o) {
|
|
1360
1365
|
this.root = o;
|
|
1361
1366
|
}
|
|
1362
1367
|
re.intervals = function(o) {
|
|
1363
1368
|
return o.push.apply(o, this.leftPoints), this.left && this.left.intervals(o), this.right && this.right.intervals(o), o;
|
|
1364
1369
|
}, re.insert = function(o) {
|
|
1365
1370
|
var e = this.count - this.leftPoints.length;
|
|
1366
|
-
if (this.count += 1, o[1] < this.mid) this.left ? 4 * (this.left.count + 1) > 3 * (e + 1) ?
|
|
1367
|
-
else if (o[0] > this.mid) this.right ? 4 * (this.right.count + 1) > 3 * (e + 1) ?
|
|
1371
|
+
if (this.count += 1, o[1] < this.mid) this.left ? 4 * (this.left.count + 1) > 3 * (e + 1) ? tt(this, o) : this.left.insert(o) : this.left = ce([o]);
|
|
1372
|
+
else if (o[0] > this.mid) this.right ? 4 * (this.right.count + 1) > 3 * (e + 1) ? tt(this, o) : this.right.insert(o) : this.right = ce([o]);
|
|
1368
1373
|
else {
|
|
1369
|
-
var t =
|
|
1374
|
+
var t = me(this.leftPoints, o, ze), n = me(this.rightPoints, o, Ie);
|
|
1370
1375
|
this.leftPoints.splice(t, 0, o), this.rightPoints.splice(n, 0, o);
|
|
1371
1376
|
}
|
|
1372
1377
|
}, re.remove = function(o) {
|
|
1373
1378
|
var e = this.count - this.leftPoints;
|
|
1374
|
-
if (o[1] < this.mid) return this.left ? 4 * (this.right ? this.right.count : 0) > 3 * (e - 1) ?
|
|
1375
|
-
if (o[0] > this.mid) return this.right ? 4 * (this.left ? this.left.count : 0) > 3 * (e - 1) ?
|
|
1379
|
+
if (o[1] < this.mid) return this.left ? 4 * (this.right ? this.right.count : 0) > 3 * (e - 1) ? ot(this, o) : (l = this.left.remove(o)) === 2 ? (this.left = null, this.count -= 1, 1) : (l === 1 && (this.count -= 1), l) : 0;
|
|
1380
|
+
if (o[0] > this.mid) return this.right ? 4 * (this.left ? this.left.count : 0) > 3 * (e - 1) ? ot(this, o) : (l = this.right.remove(o)) === 2 ? (this.right = null, this.count -= 1, 1) : (l === 1 && (this.count -= 1), l) : 0;
|
|
1376
1381
|
if (this.count === 1) return this.leftPoints[0] === o ? 2 : 0;
|
|
1377
1382
|
if (this.leftPoints.length === 1 && this.leftPoints[0] === o) {
|
|
1378
1383
|
if (this.left && this.right) {
|
|
@@ -1382,41 +1387,41 @@ re.intervals = function(o) {
|
|
|
1382
1387
|
var r = this.left, l = this.right;
|
|
1383
1388
|
t.count -= n.count, t.right = n.left, n.left = r, n.right = l;
|
|
1384
1389
|
}
|
|
1385
|
-
|
|
1386
|
-
} else this.left ?
|
|
1390
|
+
we(this, n), this.count = (this.left ? this.left.count : 0) + (this.right ? this.right.count : 0) + this.leftPoints.length;
|
|
1391
|
+
} else this.left ? we(this, this.left) : we(this, this.right);
|
|
1387
1392
|
return 1;
|
|
1388
1393
|
}
|
|
1389
|
-
for (r =
|
|
1390
|
-
for (this.count -= 1, this.leftPoints.splice(r, 1), l =
|
|
1394
|
+
for (r = me(this.leftPoints, o, ze); r < this.leftPoints.length && this.leftPoints[r][0] === o[0]; ++r) if (this.leftPoints[r] === o) {
|
|
1395
|
+
for (this.count -= 1, this.leftPoints.splice(r, 1), l = me(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;
|
|
1391
1396
|
}
|
|
1392
1397
|
return 0;
|
|
1393
1398
|
}, re.queryPoint = function(o, e) {
|
|
1394
|
-
return o < this.mid ? this.left && (t = this.left.queryPoint(o, e)) ? t :
|
|
1399
|
+
return o < this.mid ? this.left && (t = this.left.queryPoint(o, e)) ? t : nt(this.leftPoints, o, e) : o > this.mid ? this.right && (t = this.right.queryPoint(o, e)) ? t : rt(this.rightPoints, o, e) : it(this.leftPoints, e);
|
|
1395
1400
|
var t;
|
|
1396
1401
|
}, re.queryInterval = function(o, e, t) {
|
|
1397
1402
|
var n;
|
|
1398
|
-
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 ?
|
|
1403
|
+
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 ? nt(this.leftPoints, e, t) : o > this.mid ? rt(this.rightPoints, o, t) : it(this.leftPoints, t);
|
|
1399
1404
|
};
|
|
1400
|
-
var
|
|
1401
|
-
|
|
1402
|
-
this.root ? this.root.insert(o) : this.root = new
|
|
1403
|
-
},
|
|
1405
|
+
var Z = Wt.prototype;
|
|
1406
|
+
Z.insert = function(o) {
|
|
1407
|
+
this.root ? this.root.insert(o) : this.root = new Ge(o[0], null, null, [o], [o]);
|
|
1408
|
+
}, Z.remove = function(o) {
|
|
1404
1409
|
if (this.root) {
|
|
1405
1410
|
var e = this.root.remove(o);
|
|
1406
1411
|
return e === 2 && (this.root = null), e !== 0;
|
|
1407
1412
|
}
|
|
1408
1413
|
return !1;
|
|
1409
|
-
},
|
|
1414
|
+
}, Z.queryPoint = function(o, e) {
|
|
1410
1415
|
if (this.root) return this.root.queryPoint(o, e);
|
|
1411
|
-
},
|
|
1416
|
+
}, Z.queryInterval = function(o, e, t) {
|
|
1412
1417
|
if (o <= e && this.root) return this.root.queryInterval(o, e, t);
|
|
1413
|
-
}, Object.defineProperty(
|
|
1418
|
+
}, Object.defineProperty(Z, "count", { get: function() {
|
|
1414
1419
|
return this.root ? this.root.count : 0;
|
|
1415
|
-
} }), Object.defineProperty(
|
|
1420
|
+
} }), Object.defineProperty(Z, "intervals", { get: function() {
|
|
1416
1421
|
return this.root ? this.root.intervals([]) : [];
|
|
1417
1422
|
} });
|
|
1418
|
-
var
|
|
1419
|
-
A(this, o), p(this, "_columnSizeMap", {}), p(this, "_intervalTree", new
|
|
1423
|
+
var Ce = E(function o() {
|
|
1424
|
+
A(this, o), p(this, "_columnSizeMap", {}), p(this, "_intervalTree", new Wt(null)), p(this, "_leftMap", {});
|
|
1420
1425
|
}, [{ key: "estimateTotalHeight", value: function(o, e, t) {
|
|
1421
1426
|
var n = o - this.count;
|
|
1422
1427
|
return this.tallestColumnSize + Math.ceil(n / e) * t;
|
|
@@ -1429,21 +1434,21 @@ var xe = E(function o() {
|
|
|
1429
1434
|
}(s) || function(d, h) {
|
|
1430
1435
|
var f = d == null ? null : typeof Symbol < "u" && d[Symbol.iterator] || d["@@iterator"];
|
|
1431
1436
|
if (f != null) {
|
|
1432
|
-
var u, v,
|
|
1437
|
+
var u, v, g, _, S = [], m = !0, y = !1;
|
|
1433
1438
|
try {
|
|
1434
|
-
if (
|
|
1439
|
+
if (g = (f = f.call(d)).next, h !== 0) for (; !(m = (u = g.call(f)).done) && (S.push(u.value), S.length !== h); m = !0) ;
|
|
1435
1440
|
} catch (w) {
|
|
1436
|
-
|
|
1441
|
+
y = !0, v = w;
|
|
1437
1442
|
} finally {
|
|
1438
1443
|
try {
|
|
1439
|
-
if (!
|
|
1444
|
+
if (!m && f.return != null && (_ = f.return(), Object(_) !== _)) return;
|
|
1440
1445
|
} finally {
|
|
1441
|
-
if (
|
|
1446
|
+
if (y) throw v;
|
|
1442
1447
|
}
|
|
1443
1448
|
}
|
|
1444
1449
|
return S;
|
|
1445
1450
|
}
|
|
1446
|
-
}(s, c) ||
|
|
1451
|
+
}(s, c) || Gt(s, c) || function() {
|
|
1447
1452
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1448
1453
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1449
1454
|
}();
|
|
@@ -1473,7 +1478,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1473
1478
|
}
|
|
1474
1479
|
return e;
|
|
1475
1480
|
} }]);
|
|
1476
|
-
function
|
|
1481
|
+
function lt(o, e) {
|
|
1477
1482
|
var t = Object.keys(o);
|
|
1478
1483
|
if (Object.getOwnPropertySymbols) {
|
|
1479
1484
|
var n = Object.getOwnPropertySymbols(o);
|
|
@@ -1483,33 +1488,33 @@ function dt(o, e) {
|
|
|
1483
1488
|
}
|
|
1484
1489
|
return t;
|
|
1485
1490
|
}
|
|
1486
|
-
function
|
|
1491
|
+
function $o(o) {
|
|
1487
1492
|
for (var e = 1; e < arguments.length; e++) {
|
|
1488
1493
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
1489
|
-
e % 2 ?
|
|
1494
|
+
e % 2 ? lt(Object(t), !0).forEach(function(n) {
|
|
1490
1495
|
p(o, n, t[n]);
|
|
1491
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) :
|
|
1496
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : lt(Object(t)).forEach(function(n) {
|
|
1492
1497
|
Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
|
|
1493
1498
|
});
|
|
1494
1499
|
}
|
|
1495
1500
|
return o;
|
|
1496
1501
|
}
|
|
1497
|
-
function
|
|
1502
|
+
function Dt() {
|
|
1498
1503
|
try {
|
|
1499
1504
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1500
1505
|
}));
|
|
1501
1506
|
} catch {
|
|
1502
1507
|
}
|
|
1503
|
-
return (
|
|
1508
|
+
return (Dt = function() {
|
|
1504
1509
|
return !!o;
|
|
1505
1510
|
})();
|
|
1506
1511
|
}
|
|
1507
|
-
var
|
|
1512
|
+
var st = function() {
|
|
1508
1513
|
function o() {
|
|
1509
1514
|
var e, t, n, r;
|
|
1510
1515
|
A(this, o);
|
|
1511
1516
|
for (var l = arguments.length, i = new Array(l), a = 0; a < l; a++) i[a] = arguments[a];
|
|
1512
|
-
return t = this, n = o, r = [].concat(i), n =
|
|
1517
|
+
return t = this, n = o, r = [].concat(i), n = k(n), p(e = W(t, Dt() ? Reflect.construct(n, r || [], k(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() {
|
|
1513
1518
|
e.setState({ isScrolling: !1 });
|
|
1514
1519
|
}), p(e, "_setScrollingContainerRef", function(s) {
|
|
1515
1520
|
e._scrollingContainer = s;
|
|
@@ -1518,14 +1523,14 @@ var ut = function() {
|
|
|
1518
1523
|
d === h && (e._debounceResetIsScrolling(), e.state.scrollTop !== h && e.setState({ isScrolling: !0, scrollTop: h }));
|
|
1519
1524
|
}), e;
|
|
1520
1525
|
}
|
|
1521
|
-
return D(o,
|
|
1522
|
-
this._positionCache = new
|
|
1526
|
+
return D(o, C.PureComponent), E(o, [{ key: "clearCellPositions", value: function() {
|
|
1527
|
+
this._positionCache = new Ce(), this.forceUpdate();
|
|
1523
1528
|
} }, { key: "invalidateCellSizeAfterRender", value: function(e) {
|
|
1524
1529
|
var t = e.rowIndex;
|
|
1525
1530
|
this._invalidateOnUpdateStartIndex === null ? (this._invalidateOnUpdateStartIndex = t, this._invalidateOnUpdateStopIndex = t) : (this._invalidateOnUpdateStartIndex = Math.min(this._invalidateOnUpdateStartIndex, t), this._invalidateOnUpdateStopIndex = Math.max(this._invalidateOnUpdateStopIndex, t));
|
|
1526
1531
|
} }, { key: "recomputeCellPositions", value: function() {
|
|
1527
1532
|
var e = this._positionCache.count - 1;
|
|
1528
|
-
this._positionCache = new
|
|
1533
|
+
this._positionCache = new Ce(), this._populatePositionCache(0, e), this.forceUpdate();
|
|
1529
1534
|
} }, { key: "componentDidMount", value: function() {
|
|
1530
1535
|
this._checkInvalidateOnUpdate(), this._invokeOnScrollCallback(), this._invokeOnCellsRenderedCallback();
|
|
1531
1536
|
} }, { key: "componentDidUpdate", value: function(e, t) {
|
|
@@ -1533,11 +1538,11 @@ var ut = function() {
|
|
|
1533
1538
|
} }, { key: "componentWillUnmount", value: function() {
|
|
1534
1539
|
this._debounceResetIsScrollingId && oe(this._debounceResetIsScrollingId);
|
|
1535
1540
|
} }, { key: "render", value: function() {
|
|
1536
|
-
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, d = n.id, h = n.keyMapper, f = n.overscanByPixels, u = n.role, v = n.style,
|
|
1537
|
-
if (this._positionCache.range(Math.max(0, w - f), c + 2 * f, function(
|
|
1538
|
-
e === void 0 ? (I =
|
|
1539
|
-
}),
|
|
1540
|
-
return this._startIndex = I, this._stopIndex = e,
|
|
1541
|
+
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, d = n.id, h = n.keyMapper, f = n.overscanByPixels, u = n.role, v = n.style, g = n.tabIndex, _ = n.width, S = n.rowDirection, m = this.state, y = m.isScrolling, w = m.scrollTop, x = [], R = this._getEstimatedTotalHeight(), z = this._positionCache.shortestColumnSize, T = this._positionCache.count, I = 0;
|
|
1542
|
+
if (this._positionCache.range(Math.max(0, w - f), c + 2 * f, function(M, O, H) {
|
|
1543
|
+
e === void 0 ? (I = M, e = M) : (I = Math.min(I, M), e = Math.max(e, M)), x.push(a({ index: M, isScrolling: y, key: h(M), parent: t, style: p(p(p(p({ height: i.getHeight(M) }, S === "ltr" ? "left" : "right", O), "position", "absolute"), "top", H), "width", i.getWidth(M)) }));
|
|
1544
|
+
}), z < w + c + f && T < l) for (var P = Math.min(l - T, Math.ceil((w + c + f - z) / i.defaultHeight * _ / i.defaultWidth)), b = T; b < T + P; b++) e = b, x.push(a({ index: b, isScrolling: y, key: h(b), parent: this, style: { width: i.getWidth(b) } }));
|
|
1545
|
+
return this._startIndex = I, this._stopIndex = e, C.createElement("div", { ref: this._setScrollingContainerRef, "aria-label": this.props["aria-label"], className: N("ReactVirtualized__Masonry", s), id: d, onScroll: this._onScroll, role: u, style: $o({ boxSizing: "border-box", direction: "ltr", height: r ? "auto" : c, overflowX: "hidden", overflowY: R < c ? "hidden" : "auto", position: "relative", width: _, WebkitOverflowScrolling: "touch", willChange: "transform" }, v), tabIndex: g }, C.createElement("div", { className: "ReactVirtualized__Masonry__innerScrollContainer", style: { width: "100%", height: R, maxWidth: "100%", maxHeight: R, overflow: "hidden", pointerEvents: y ? "none" : "", position: "relative" } }, x));
|
|
1541
1546
|
} }, { key: "_checkInvalidateOnUpdate", value: function() {
|
|
1542
1547
|
if (typeof this._invalidateOnUpdateStartIndex == "number") {
|
|
1543
1548
|
var e = this._invalidateOnUpdateStartIndex, t = this._invalidateOnUpdateStopIndex;
|
|
@@ -1545,7 +1550,7 @@ var ut = function() {
|
|
|
1545
1550
|
}
|
|
1546
1551
|
} }, { key: "_debounceResetIsScrolling", value: function() {
|
|
1547
1552
|
var e = this.props.scrollingResetTimeInterval;
|
|
1548
|
-
this._debounceResetIsScrollingId && oe(this._debounceResetIsScrollingId), this._debounceResetIsScrollingId =
|
|
1553
|
+
this._debounceResetIsScrollingId && oe(this._debounceResetIsScrollingId), this._debounceResetIsScrollingId = Le(this._debounceResetIsScrollingCallback, e);
|
|
1549
1554
|
} }, { key: "_getEstimatedTotalHeight", value: function() {
|
|
1550
1555
|
var e = this.props, t = e.cellCount, n = e.cellMeasurerCache, r = e.width, l = Math.max(1, Math.floor(r / n.defaultWidth));
|
|
1551
1556
|
return this._positionCache.estimateTotalHeight(t, l, n.defaultHeight);
|
|
@@ -1563,12 +1568,12 @@ var ut = function() {
|
|
|
1563
1568
|
return e.scrollTop !== void 0 && t.scrollTop !== e.scrollTop ? { isScrolling: !0, scrollTop: e.scrollTop } : null;
|
|
1564
1569
|
} }]);
|
|
1565
1570
|
}();
|
|
1566
|
-
function
|
|
1571
|
+
function at() {
|
|
1567
1572
|
}
|
|
1568
|
-
p(
|
|
1573
|
+
p(st, "defaultProps", { autoHeight: !1, keyMapper: function(o) {
|
|
1569
1574
|
return o;
|
|
1570
|
-
}, onCellsRendered:
|
|
1571
|
-
var
|
|
1575
|
+
}, onCellsRendered: at, onScroll: at, overscanByPixels: 20, role: "grid", scrollingResetTimeInterval: 150, style: {}, tabIndex: 0, rowDirection: "ltr" }), ue(st);
|
|
1576
|
+
var xe = E(function o() {
|
|
1572
1577
|
var e = this, t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1573
1578
|
A(this, o), p(this, "_cellMeasurerCache", void 0), p(this, "_columnIndexOffset", void 0), p(this, "_rowIndexOffset", void 0), p(this, "columnWidth", function(s) {
|
|
1574
1579
|
var c = s.index;
|
|
@@ -1602,8 +1607,8 @@ var Re = E(function o() {
|
|
|
1602
1607
|
return this._cellMeasurerCache.has(o + this._rowIndexOffset, e + this._columnIndexOffset);
|
|
1603
1608
|
} }, { key: "set", value: function(o, e, t, n) {
|
|
1604
1609
|
this._cellMeasurerCache.set(o + this._rowIndexOffset, e + this._columnIndexOffset, t, n);
|
|
1605
|
-
} }]),
|
|
1606
|
-
function
|
|
1610
|
+
} }]), Ko = ["rowIndex"], qo = ["columnIndex", "rowIndex"], Xo = ["columnIndex"], Yo = ["onScroll", "onSectionRendered", "onScrollbarPresenceChange", "scrollLeft", "scrollToColumn", "scrollTop", "scrollToRow"];
|
|
1611
|
+
function ct(o, e) {
|
|
1607
1612
|
var t = Object.keys(o);
|
|
1608
1613
|
if (Object.getOwnPropertySymbols) {
|
|
1609
1614
|
var n = Object.getOwnPropertySymbols(o);
|
|
@@ -1613,54 +1618,54 @@ function ft(o, e) {
|
|
|
1613
1618
|
}
|
|
1614
1619
|
return t;
|
|
1615
1620
|
}
|
|
1616
|
-
function
|
|
1621
|
+
function L(o) {
|
|
1617
1622
|
for (var e = 1; e < arguments.length; e++) {
|
|
1618
1623
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
1619
|
-
e % 2 ?
|
|
1624
|
+
e % 2 ? ct(Object(t), !0).forEach(function(n) {
|
|
1620
1625
|
p(o, n, t[n]);
|
|
1621
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) :
|
|
1626
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : ct(Object(t)).forEach(function(n) {
|
|
1622
1627
|
Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
|
|
1623
1628
|
});
|
|
1624
1629
|
}
|
|
1625
1630
|
return o;
|
|
1626
1631
|
}
|
|
1627
|
-
function
|
|
1632
|
+
function jt() {
|
|
1628
1633
|
try {
|
|
1629
1634
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1630
1635
|
}));
|
|
1631
1636
|
} catch {
|
|
1632
1637
|
}
|
|
1633
|
-
return (
|
|
1638
|
+
return (jt = function() {
|
|
1634
1639
|
return !!o;
|
|
1635
1640
|
})();
|
|
1636
1641
|
}
|
|
1637
|
-
var
|
|
1642
|
+
var Re = function() {
|
|
1638
1643
|
function o(e, t) {
|
|
1639
1644
|
var n, r, l, i;
|
|
1640
|
-
A(this, o), r = this, i = [e, t], l =
|
|
1645
|
+
A(this, o), r = this, i = [e, t], l = k(l = o), p(n = W(r, jt() ? Reflect.construct(l, i || [], k(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(d) {
|
|
1641
1646
|
n._bottomLeftGrid = d;
|
|
1642
1647
|
}), p(n, "_bottomRightGridRef", function(d) {
|
|
1643
1648
|
n._bottomRightGrid = d;
|
|
1644
1649
|
}), p(n, "_cellRendererBottomLeftGrid", function(d) {
|
|
1645
|
-
var h = d.rowIndex, f = ie(d,
|
|
1646
|
-
return h === u.rowCount -
|
|
1650
|
+
var h = d.rowIndex, f = ie(d, Ko), u = n.props, v = u.cellRenderer, g = u.fixedRowCount;
|
|
1651
|
+
return h === u.rowCount - g ? C.createElement("div", { key: f.key, style: L(L({}, f.style), {}, { height: 20 }) }) : v(L(L({}, f), {}, { parent: n, rowIndex: h + g }));
|
|
1647
1652
|
}), p(n, "_cellRendererBottomRightGrid", function(d) {
|
|
1648
|
-
var h = d.columnIndex, f = d.rowIndex, u = ie(d,
|
|
1649
|
-
return
|
|
1653
|
+
var h = d.columnIndex, f = d.rowIndex, u = ie(d, qo), v = n.props, g = v.cellRenderer, _ = v.fixedColumnCount, S = v.fixedRowCount;
|
|
1654
|
+
return g(L(L({}, u), {}, { columnIndex: h + _, parent: n, rowIndex: f + S }));
|
|
1650
1655
|
}), p(n, "_cellRendererTopRightGrid", function(d) {
|
|
1651
|
-
var h = d.columnIndex, f = ie(d,
|
|
1652
|
-
return h ===
|
|
1656
|
+
var h = d.columnIndex, f = ie(d, Xo), u = n.props, v = u.cellRenderer, g = u.columnCount, _ = u.fixedColumnCount;
|
|
1657
|
+
return h === g - _ ? C.createElement("div", { key: f.key, style: L(L({}, f.style), {}, { width: 20 }) }) : v(L(L({}, f), {}, { columnIndex: h + _, parent: n }));
|
|
1653
1658
|
}), p(n, "_columnWidthRightGrid", function(d) {
|
|
1654
|
-
var h = d.index, f = n.props, u = f.columnCount, v = f.fixedColumnCount,
|
|
1655
|
-
return _.showHorizontalScrollbar && h === u - v ? S : typeof
|
|
1659
|
+
var h = d.index, f = n.props, u = f.columnCount, v = f.fixedColumnCount, g = f.columnWidth, _ = n.state, S = _.scrollbarSize;
|
|
1660
|
+
return _.showHorizontalScrollbar && h === u - v ? S : typeof g == "function" ? g({ index: h + v }) : g;
|
|
1656
1661
|
}), p(n, "_onScroll", function(d) {
|
|
1657
1662
|
var h = d.scrollLeft, f = d.scrollTop;
|
|
1658
1663
|
n.setState({ scrollLeft: h, scrollTop: f });
|
|
1659
1664
|
var u = n.props.onScroll;
|
|
1660
1665
|
u && u(d);
|
|
1661
1666
|
}), p(n, "_onScrollbarPresenceChange", function(d) {
|
|
1662
|
-
var h = d.horizontal, f = d.size, u = d.vertical, v = n.state,
|
|
1663
|
-
if (h !==
|
|
1667
|
+
var h = d.horizontal, f = d.size, u = d.vertical, v = n.state, g = v.showHorizontalScrollbar, _ = v.showVerticalScrollbar;
|
|
1668
|
+
if (h !== g || u !== _) {
|
|
1664
1669
|
n.setState({ scrollbarSize: f, showHorizontalScrollbar: h, showVerticalScrollbar: u });
|
|
1665
1670
|
var S = n.props.onScrollbarPresenceChange;
|
|
1666
1671
|
typeof S == "function" && S({ horizontal: h, size: f, vertical: u });
|
|
@@ -1672,17 +1677,17 @@ var be = function() {
|
|
|
1672
1677
|
var h = d.scrollTop;
|
|
1673
1678
|
n._onScroll({ scrollTop: h, scrollLeft: n.state.scrollLeft });
|
|
1674
1679
|
}), p(n, "_rowHeightBottomGrid", function(d) {
|
|
1675
|
-
var h = d.index, f = n.props, u = f.fixedRowCount, v = f.rowCount,
|
|
1676
|
-
return _.showVerticalScrollbar && h === v - u ? S : typeof
|
|
1680
|
+
var h = d.index, f = n.props, u = f.fixedRowCount, v = f.rowCount, g = f.rowHeight, _ = n.state, S = _.scrollbarSize;
|
|
1681
|
+
return _.showVerticalScrollbar && h === v - u ? S : typeof g == "function" ? g({ index: h + u }) : g;
|
|
1677
1682
|
}), p(n, "_topLeftGridRef", function(d) {
|
|
1678
1683
|
n._topLeftGrid = d;
|
|
1679
1684
|
}), p(n, "_topRightGridRef", function(d) {
|
|
1680
1685
|
n._topRightGrid = d;
|
|
1681
1686
|
});
|
|
1682
1687
|
var a = e.deferredMeasurementCache, s = e.fixedColumnCount, c = e.fixedRowCount;
|
|
1683
|
-
return n._maybeCalculateCachedStyles(!0), a && (n._deferredMeasurementCacheBottomLeftGrid = c > 0 ? new
|
|
1688
|
+
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;
|
|
1684
1689
|
}
|
|
1685
|
-
return D(o,
|
|
1690
|
+
return D(o, C.PureComponent), E(o, [{ key: "forceUpdateGrids", value: function() {
|
|
1686
1691
|
this._bottomLeftGrid && this._bottomLeftGrid.forceUpdate(), this._bottomRightGrid && this._bottomRightGrid.forceUpdate(), this._topLeftGrid && this._topLeftGrid.forceUpdate(), this._topRightGrid && this._topRightGrid.forceUpdate();
|
|
1687
1692
|
} }, { key: "invalidateCellSizeAfterRender", value: function() {
|
|
1688
1693
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.columnIndex, n = t === void 0 ? 0 : t, r = e.rowIndex, l = r === void 0 ? 0 : r;
|
|
@@ -1706,10 +1711,10 @@ var be = function() {
|
|
|
1706
1711
|
e.onScrollbarPresenceChange, e.scrollLeft;
|
|
1707
1712
|
var r = e.scrollToColumn;
|
|
1708
1713
|
e.scrollTop;
|
|
1709
|
-
var l = e.scrollToRow, i = ie(e,
|
|
1714
|
+
var l = e.scrollToRow, i = ie(e, Yo);
|
|
1710
1715
|
if (this._prepareForRender(), this.props.width === 0 || this.props.height === 0) return null;
|
|
1711
1716
|
var a = this.state, s = a.scrollLeft, c = a.scrollTop;
|
|
1712
|
-
return
|
|
1717
|
+
return C.createElement("div", { style: this._containerOuterStyle }, C.createElement("div", { style: this._containerTopStyle }, this._renderTopLeftGrid(i), this._renderTopRightGrid(L(L({}, i), {}, { onScroll: t, scrollLeft: s }))), C.createElement("div", { style: this._containerBottomStyle }, this._renderBottomLeftGrid(L(L({}, i), {}, { onScroll: t, scrollTop: c })), this._renderBottomRightGrid(L(L({}, i), {}, { onScroll: t, onSectionRendered: n, scrollLeft: s, scrollToColumn: r, scrollToRow: l, scrollTop: c }))));
|
|
1713
1718
|
} }, { key: "_getBottomGridHeight", value: function(e) {
|
|
1714
1719
|
return e.height - this._getTopGridHeight(e);
|
|
1715
1720
|
} }, { key: "_getLeftGridWidth", value: function(e) {
|
|
@@ -1734,48 +1739,48 @@ var be = function() {
|
|
|
1734
1739
|
this._deferredInvalidateColumnIndex = null, this._deferredInvalidateRowIndex = null, this.recomputeGridSize({ columnIndex: e, rowIndex: t }), this.forceUpdate();
|
|
1735
1740
|
}
|
|
1736
1741
|
} }, { key: "_maybeCalculateCachedStyles", value: function(e) {
|
|
1737
|
-
var t = this.props, n = t.columnWidth, r = t.enableFixedColumnScroll, l = t.enableFixedRowScroll, i = t.height, a = t.fixedColumnCount, s = t.fixedRowCount, c = t.rowHeight, d = t.style, h = t.styleBottomLeftGrid, f = t.styleBottomRightGrid, u = t.styleTopLeftGrid, v = t.styleTopRightGrid,
|
|
1738
|
-
(e || _ || d !== this._lastRenderedStyle) && (this._containerOuterStyle =
|
|
1742
|
+
var t = this.props, n = t.columnWidth, r = t.enableFixedColumnScroll, l = t.enableFixedRowScroll, i = t.height, a = t.fixedColumnCount, s = t.fixedRowCount, c = t.rowHeight, d = t.style, h = t.styleBottomLeftGrid, f = t.styleBottomRightGrid, u = t.styleTopLeftGrid, v = t.styleTopRightGrid, g = t.width, _ = e || i !== this._lastRenderedHeight || g !== this._lastRenderedWidth, S = e || n !== this._lastRenderedColumnWidth || a !== this._lastRenderedFixedColumnCount, m = e || s !== this._lastRenderedFixedRowCount || c !== this._lastRenderedRowHeight;
|
|
1743
|
+
(e || _ || d !== this._lastRenderedStyle) && (this._containerOuterStyle = L({ height: i, overflow: "visible", width: g }, d)), (e || _ || m) && (this._containerTopStyle = { height: this._getTopGridHeight(this.props), position: "relative", width: g }, this._containerBottomStyle = { height: i - this._getTopGridHeight(this.props), overflow: "visible", position: "relative", width: g }), (e || h !== this._lastRenderedStyleBottomLeftGrid) && (this._bottomLeftGridStyle = L({ left: 0, overflowX: "hidden", overflowY: r ? "auto" : "hidden", position: "absolute" }, h)), (e || S || f !== this._lastRenderedStyleBottomRightGrid) && (this._bottomRightGridStyle = L({ left: this._getLeftGridWidth(this.props), position: "absolute" }, f)), (e || u !== this._lastRenderedStyleTopLeftGrid) && (this._topLeftGridStyle = L({ left: 0, overflowX: "hidden", overflowY: "hidden", position: "absolute", top: 0 }, u)), (e || S || v !== this._lastRenderedStyleTopRightGrid) && (this._topRightGridStyle = L({ left: this._getLeftGridWidth(this.props), overflowX: l ? "auto" : "hidden", overflowY: "hidden", position: "absolute", top: 0 }, v)), this._lastRenderedColumnWidth = n, this._lastRenderedFixedColumnCount = a, this._lastRenderedFixedRowCount = s, this._lastRenderedHeight = i, this._lastRenderedRowHeight = c, this._lastRenderedStyle = d, this._lastRenderedStyleBottomLeftGrid = h, this._lastRenderedStyleBottomRightGrid = f, this._lastRenderedStyleTopLeftGrid = u, this._lastRenderedStyleTopRightGrid = v, this._lastRenderedWidth = g;
|
|
1739
1744
|
} }, { key: "_prepareForRender", value: function() {
|
|
1740
1745
|
this._lastRenderedColumnWidth === this.props.columnWidth && this._lastRenderedFixedColumnCount === this.props.fixedColumnCount || (this._leftGridWidth = null), this._lastRenderedFixedRowCount === this.props.fixedRowCount && this._lastRenderedRowHeight === this.props.rowHeight || (this._topGridHeight = null), this._maybeCalculateCachedStyles(), this._lastRenderedColumnWidth = this.props.columnWidth, this._lastRenderedFixedColumnCount = this.props.fixedColumnCount, this._lastRenderedFixedRowCount = this.props.fixedRowCount, this._lastRenderedRowHeight = this.props.rowHeight;
|
|
1741
1746
|
} }, { key: "_renderBottomLeftGrid", value: function(e) {
|
|
1742
1747
|
var t = e.enableFixedColumnScroll, n = e.fixedColumnCount, r = e.fixedRowCount, l = e.rowCount, i = e.hideBottomLeftGridScrollbar, a = this.state.showVerticalScrollbar;
|
|
1743
1748
|
if (!n) return null;
|
|
1744
|
-
var s = a ? 1 : 0, c = this._getBottomGridHeight(e), d = this._getLeftGridWidth(e), h = this.state.showVerticalScrollbar ? this.state.scrollbarSize : 0, f = i ? d + h : d, u =
|
|
1745
|
-
return i ?
|
|
1749
|
+
var s = a ? 1 : 0, c = this._getBottomGridHeight(e), d = this._getLeftGridWidth(e), h = this.state.showVerticalScrollbar ? this.state.scrollbarSize : 0, f = i ? d + h : d, u = C.createElement(V, U({}, e, { cellRenderer: this._cellRendererBottomLeftGrid, className: this.props.classNameBottomLeftGrid, columnCount: n, deferredMeasurementCache: this._deferredMeasurementCacheBottomLeftGrid, height: c, onScroll: t ? this._onScrollTop : void 0, ref: this._bottomLeftGridRef, rowCount: Math.max(0, l - r) + s, rowHeight: this._rowHeightBottomGrid, style: this._bottomLeftGridStyle, tabIndex: null, width: f }));
|
|
1750
|
+
return i ? C.createElement("div", { className: "BottomLeftGrid_ScrollWrapper", style: L(L({}, this._bottomLeftGridStyle), {}, { height: c, width: d, overflowY: "hidden" }) }, u) : u;
|
|
1746
1751
|
} }, { key: "_renderBottomRightGrid", value: function(e) {
|
|
1747
1752
|
var t = e.columnCount, n = e.fixedColumnCount, r = e.fixedRowCount, l = e.rowCount, i = e.scrollToColumn, a = e.scrollToRow;
|
|
1748
|
-
return
|
|
1753
|
+
return C.createElement(V, U({}, e, { cellRenderer: this._cellRendererBottomRightGrid, className: this.props.classNameBottomRightGrid, columnCount: Math.max(0, t - n), columnWidth: this._columnWidthRightGrid, deferredMeasurementCache: this._deferredMeasurementCacheBottomRightGrid, height: this._getBottomGridHeight(e), onScroll: this._onScroll, onScrollbarPresenceChange: this._onScrollbarPresenceChange, ref: this._bottomRightGridRef, rowCount: Math.max(0, l - r), rowHeight: this._rowHeightBottomGrid, scrollToColumn: i - n, scrollToRow: a - r, style: this._bottomRightGridStyle, width: this._getRightGridWidth(e) }));
|
|
1749
1754
|
} }, { key: "_renderTopLeftGrid", value: function(e) {
|
|
1750
1755
|
var t = e.fixedColumnCount, n = e.fixedRowCount;
|
|
1751
|
-
return t && n ?
|
|
1756
|
+
return t && n ? C.createElement(V, U({}, e, { className: this.props.classNameTopLeftGrid, columnCount: t, height: this._getTopGridHeight(e), ref: this._topLeftGridRef, rowCount: n, style: this._topLeftGridStyle, tabIndex: null, width: this._getLeftGridWidth(e) })) : null;
|
|
1752
1757
|
} }, { key: "_renderTopRightGrid", value: function(e) {
|
|
1753
1758
|
var t = e.columnCount, n = e.enableFixedRowScroll, r = e.fixedColumnCount, l = e.fixedRowCount, i = e.scrollLeft, a = e.hideTopRightGridScrollbar, s = this.state, c = s.showHorizontalScrollbar, d = s.scrollbarSize;
|
|
1754
1759
|
if (!l) return null;
|
|
1755
|
-
var h = c ? 1 : 0, f = this._getTopGridHeight(e), u = this._getRightGridWidth(e), v = c ? d : 0,
|
|
1756
|
-
a && (
|
|
1757
|
-
var S =
|
|
1758
|
-
return a ?
|
|
1760
|
+
var h = c ? 1 : 0, f = this._getTopGridHeight(e), u = this._getRightGridWidth(e), v = c ? d : 0, g = f, _ = this._topRightGridStyle;
|
|
1761
|
+
a && (g = f + v, _ = L(L({}, this._topRightGridStyle), {}, { left: 0 }));
|
|
1762
|
+
var S = C.createElement(V, U({}, e, { cellRenderer: this._cellRendererTopRightGrid, className: this.props.classNameTopRightGrid, columnCount: Math.max(0, t - r) + h, columnWidth: this._columnWidthRightGrid, deferredMeasurementCache: this._deferredMeasurementCacheTopRightGrid, height: g, onScroll: n ? this._onScrollLeft : void 0, ref: this._topRightGridRef, rowCount: l, scrollLeft: i, style: _, tabIndex: null, width: u }));
|
|
1763
|
+
return a ? C.createElement("div", { className: "TopRightGrid_ScrollWrapper", style: L(L({}, this._topRightGridStyle), {}, { height: f, width: u, overflowX: "hidden" }) }, S) : S;
|
|
1759
1764
|
} }], [{ key: "getDerivedStateFromProps", value: function(e, t) {
|
|
1760
1765
|
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;
|
|
1761
1766
|
} }]);
|
|
1762
1767
|
}();
|
|
1763
|
-
function
|
|
1768
|
+
function Ft() {
|
|
1764
1769
|
try {
|
|
1765
1770
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1766
1771
|
}));
|
|
1767
1772
|
} catch {
|
|
1768
1773
|
}
|
|
1769
|
-
return (
|
|
1774
|
+
return (Ft = function() {
|
|
1770
1775
|
return !!o;
|
|
1771
1776
|
})();
|
|
1772
1777
|
}
|
|
1773
|
-
p(
|
|
1778
|
+
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 = {}, ue(Re), function() {
|
|
1774
1779
|
function o(e, t) {
|
|
1775
1780
|
var n, r, l, i;
|
|
1776
|
-
return A(this, o), r = this, i = [e, t], l =
|
|
1781
|
+
return A(this, o), r = this, i = [e, t], l = k(l = o), (n = W(r, Ft() ? Reflect.construct(l, i || [], k(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;
|
|
1777
1782
|
}
|
|
1778
|
-
return D(o,
|
|
1783
|
+
return D(o, C.PureComponent), E(o, [{ key: "render", value: function() {
|
|
1779
1784
|
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;
|
|
1780
1785
|
return e({ clientHeight: n, clientWidth: r, onScroll: this._onScroll, scrollHeight: l, scrollLeft: i, scrollTop: a, scrollWidth: s });
|
|
1781
1786
|
} }, { key: "_onScroll", value: function(e) {
|
|
@@ -1783,30 +1788,30 @@ p(be, "defaultProps", { classNameBottomLeftGrid: "", classNameBottomRightGrid: "
|
|
|
1783
1788
|
this.setState({ clientHeight: t, clientWidth: n, scrollHeight: r, scrollLeft: l, scrollTop: i, scrollWidth: a });
|
|
1784
1789
|
} }]);
|
|
1785
1790
|
}().propTypes = {};
|
|
1786
|
-
var de = "ASC",
|
|
1787
|
-
function
|
|
1788
|
-
var e = o.sortDirection, t = N("ReactVirtualized__Table__sortableHeaderIcon", { "ReactVirtualized__Table__sortableHeaderIcon--ASC": e === de, "ReactVirtualized__Table__sortableHeaderIcon--DESC": e ===
|
|
1789
|
-
return
|
|
1791
|
+
var de = "ASC", Pe = "DESC";
|
|
1792
|
+
function Nt(o) {
|
|
1793
|
+
var e = o.sortDirection, t = N("ReactVirtualized__Table__sortableHeaderIcon", { "ReactVirtualized__Table__sortableHeaderIcon--ASC": e === de, "ReactVirtualized__Table__sortableHeaderIcon--DESC": e === Pe });
|
|
1794
|
+
return C.createElement("svg", { className: t, width: 18, height: 18, viewBox: "0 0 24 24" }, e === de ? C.createElement("path", { d: "M7 14l5-5 5 5z" }) : C.createElement("path", { d: "M7 10l5 5 5-5z" }), C.createElement("path", { d: "M0 0h24v24H0z", fill: "none" }));
|
|
1790
1795
|
}
|
|
1791
|
-
function
|
|
1796
|
+
function Bt() {
|
|
1792
1797
|
try {
|
|
1793
1798
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1794
1799
|
}));
|
|
1795
1800
|
} catch {
|
|
1796
1801
|
}
|
|
1797
|
-
return (
|
|
1802
|
+
return (Bt = function() {
|
|
1798
1803
|
return !!o;
|
|
1799
1804
|
})();
|
|
1800
1805
|
}
|
|
1801
|
-
|
|
1802
|
-
var
|
|
1806
|
+
Nt.propTypes = {};
|
|
1807
|
+
var _e = function() {
|
|
1803
1808
|
function o() {
|
|
1804
|
-
return A(this, o), e = this, n = arguments, t =
|
|
1809
|
+
return A(this, o), e = this, n = arguments, t = k(t = o), W(e, Bt() ? Reflect.construct(t, n || [], k(e).constructor) : t.apply(e, n));
|
|
1805
1810
|
var e, t, n;
|
|
1806
1811
|
}
|
|
1807
|
-
return D(o,
|
|
1812
|
+
return D(o, C.Component), E(o);
|
|
1808
1813
|
}();
|
|
1809
|
-
function
|
|
1814
|
+
function dt(o, e) {
|
|
1810
1815
|
var t = Object.keys(o);
|
|
1811
1816
|
if (Object.getOwnPropertySymbols) {
|
|
1812
1817
|
var n = Object.getOwnPropertySymbols(o);
|
|
@@ -1816,43 +1821,43 @@ function pt(o, e) {
|
|
|
1816
1821
|
}
|
|
1817
1822
|
return t;
|
|
1818
1823
|
}
|
|
1819
|
-
function
|
|
1824
|
+
function B(o) {
|
|
1820
1825
|
for (var e = 1; e < arguments.length; e++) {
|
|
1821
1826
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
1822
|
-
e % 2 ?
|
|
1827
|
+
e % 2 ? dt(Object(t), !0).forEach(function(n) {
|
|
1823
1828
|
p(o, n, t[n]);
|
|
1824
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) :
|
|
1829
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : dt(Object(t)).forEach(function(n) {
|
|
1825
1830
|
Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
|
|
1826
1831
|
});
|
|
1827
1832
|
}
|
|
1828
1833
|
return o;
|
|
1829
1834
|
}
|
|
1830
|
-
function
|
|
1835
|
+
function Ut() {
|
|
1831
1836
|
try {
|
|
1832
1837
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1833
1838
|
}));
|
|
1834
1839
|
} catch {
|
|
1835
1840
|
}
|
|
1836
|
-
return (
|
|
1841
|
+
return (Ut = function() {
|
|
1837
1842
|
return !!o;
|
|
1838
1843
|
})();
|
|
1839
1844
|
}
|
|
1840
|
-
p(
|
|
1845
|
+
p(_e, "defaultProps", { cellDataGetter: function(o) {
|
|
1841
1846
|
var e = o.dataKey, t = o.rowData;
|
|
1842
1847
|
return typeof t.get == "function" ? t.get(e) : t[e];
|
|
1843
1848
|
}, cellRenderer: function(o) {
|
|
1844
1849
|
var e = o.cellData;
|
|
1845
1850
|
return e == null ? "" : String(e);
|
|
1846
1851
|
}, defaultSortDirection: de, flexGrow: 0, flexShrink: 1, headerRenderer: function(o) {
|
|
1847
|
-
var e = o.dataKey, t = o.label, n = o.sortBy, r = o.sortDirection, l = n === e, i = [
|
|
1848
|
-
return l && i.push(
|
|
1849
|
-
}, style: {} }),
|
|
1850
|
-
var
|
|
1852
|
+
var e = o.dataKey, t = o.label, n = o.sortBy, r = o.sortDirection, l = n === e, i = [C.createElement("span", { className: "ReactVirtualized__Table__headerTruncatedText", key: "label", title: typeof t == "string" ? t : null }, t)];
|
|
1853
|
+
return l && i.push(C.createElement(Nt, { key: "SortIndicator", sortDirection: r })), i;
|
|
1854
|
+
}, style: {} }), _e.propTypes = {};
|
|
1855
|
+
var ke = function() {
|
|
1851
1856
|
function o(e) {
|
|
1852
1857
|
var t, n, r, l;
|
|
1853
|
-
return A(this, o), n = this, l = [e], r =
|
|
1858
|
+
return A(this, o), n = this, l = [e], r = k(r = o), (t = W(n, Ut() ? Reflect.construct(r, l || [], k(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;
|
|
1854
1859
|
}
|
|
1855
|
-
return D(o,
|
|
1860
|
+
return D(o, C.PureComponent), E(o, [{ key: "forceUpdateGrid", value: function() {
|
|
1856
1861
|
this.Grid && this.Grid.forceUpdate();
|
|
1857
1862
|
} }, { key: "getOffsetForRow", value: function(e) {
|
|
1858
1863
|
var t = e.alignment, n = e.index;
|
|
@@ -1885,38 +1890,38 @@ var Oe = function() {
|
|
|
1885
1890
|
} }, { key: "componentDidUpdate", value: function() {
|
|
1886
1891
|
this._setScrollbarWidth();
|
|
1887
1892
|
} }, { key: "render", value: function() {
|
|
1888
|
-
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, d = t.height, h = t.id, f = t.noRowsRenderer, u = t.rowClassName, v = t.rowStyle,
|
|
1889
|
-
return this._cachedColumnStyles = [],
|
|
1890
|
-
var
|
|
1891
|
-
e._cachedColumnStyles[
|
|
1892
|
-
}),
|
|
1893
|
+
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, d = t.height, h = t.id, f = t.noRowsRenderer, u = t.rowClassName, v = t.rowStyle, g = t.scrollToIndex, _ = t.style, S = t.width, m = this.state.scrollbarWidth, y = l ? d : d - s, w = typeof u == "function" ? u({ index: -1 }) : u, x = typeof v == "function" ? v({ index: -1 }) : v;
|
|
1894
|
+
return this._cachedColumnStyles = [], C.Children.toArray(n).forEach(function(R, z) {
|
|
1895
|
+
var T = e._getFlexStyleForColumn(R, R.props.style || _e.defaultProps.style);
|
|
1896
|
+
e._cachedColumnStyles[z] = B({ overflow: "hidden" }, T);
|
|
1897
|
+
}), C.createElement("div", { "aria-label": this.props["aria-label"], "aria-labelledby": this.props["aria-labelledby"], "aria-colcount": C.Children.toArray(n).length, "aria-rowcount": this.props.rowCount, className: N("ReactVirtualized__Table", r), id: h, role: "grid", style: _ }, !l && c({ className: N("ReactVirtualized__Table__headerRow", w), columns: this._getHeaderColumns(), style: B({ height: s, overflow: "hidden", paddingRight: m, width: S }, x) }), C.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: g, style: B(B({}, a), {}, { overflowX: "hidden" }) })));
|
|
1893
1898
|
} }, { key: "_createColumn", value: function(e) {
|
|
1894
|
-
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, d = c.cellDataGetter, h = c.cellRenderer, f = c.className, u = c.columnData, v = c.dataKey,
|
|
1895
|
-
return
|
|
1896
|
-
s && s({ columnData: u, dataKey: v, event:
|
|
1897
|
-
}, role: "gridcell", style: S, title:
|
|
1899
|
+
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, d = c.cellDataGetter, h = c.cellRenderer, f = c.className, u = c.columnData, v = c.dataKey, g = c.id, _ = h({ cellData: d({ columnData: u, dataKey: v, rowData: i }), columnData: u, columnIndex: n, dataKey: v, isScrolling: r, parent: l, rowData: i, rowIndex: a }), S = this._cachedColumnStyles[n], m = typeof _ == "string" ? _ : null;
|
|
1900
|
+
return C.createElement("div", { "aria-colindex": n + 1, "aria-describedby": g, className: N("ReactVirtualized__Table__rowColumn", f), key: "Row" + a + "-Col" + n, onClick: function(y) {
|
|
1901
|
+
s && s({ columnData: u, dataKey: v, event: y });
|
|
1902
|
+
}, role: "gridcell", style: S, title: m }, _);
|
|
1898
1903
|
} }, { key: "_createHeader", value: function(e) {
|
|
1899
|
-
var t, n, r, l, i, a = e.column, s = e.index, c = this.props, d = c.headerClassName, h = c.headerStyle, f = c.onHeaderClick, u = c.sort, v = c.sortBy,
|
|
1900
|
-
if (
|
|
1901
|
-
var
|
|
1902
|
-
|
|
1904
|
+
var t, n, r, l, i, a = e.column, s = e.index, c = this.props, d = c.headerClassName, h = c.headerStyle, f = c.onHeaderClick, u = c.sort, v = c.sortBy, g = c.sortDirection, _ = a.props, S = _.columnData, m = _.dataKey, y = _.defaultSortDirection, w = _.disableSort, x = _.headerRenderer, R = _.id, z = _.label, T = !w && u, I = N("ReactVirtualized__Table__headerColumn", d, a.props.headerClassName, { ReactVirtualized__Table__sortableHeaderColumn: T }), P = this._getFlexStyleForColumn(a, B(B({}, h), a.props.headerStyle)), b = x({ columnData: S, dataKey: m, disableSort: w, label: z, sortBy: v, sortDirection: g });
|
|
1905
|
+
if (T || f) {
|
|
1906
|
+
var M = v !== m ? y : g === Pe ? de : Pe, O = function(H) {
|
|
1907
|
+
T && u({ defaultSortDirection: y, event: H, sortBy: m, sortDirection: M }), f && f({ columnData: S, dataKey: m, event: H });
|
|
1903
1908
|
};
|
|
1904
|
-
i = a.props["aria-label"] ||
|
|
1905
|
-
|
|
1909
|
+
i = a.props["aria-label"] || z || m, l = "none", r = 0, t = O, n = function(H) {
|
|
1910
|
+
H.key !== "Enter" && H.key !== " " || O(H);
|
|
1906
1911
|
};
|
|
1907
1912
|
}
|
|
1908
|
-
return v ===
|
|
1913
|
+
return v === m && (l = g === de ? "ascending" : "descending"), C.createElement("div", { "aria-label": i, "aria-sort": l, className: I, id: R, key: "Header-Col" + s, onClick: t, onKeyDown: n, role: "columnheader", style: P, tabIndex: r }, b);
|
|
1909
1914
|
} }, { key: "_createRow", value: function(e) {
|
|
1910
|
-
var t = this, n = e.rowIndex, r = e.isScrolling, l = e.key, i = e.parent, a = e.style, s = this.props, c = s.children, d = s.onRowClick, h = s.onRowDoubleClick, f = s.onRowRightClick, u = s.onRowMouseOver, v = s.onRowMouseOut,
|
|
1911
|
-
return t._createColumn({ column:
|
|
1912
|
-
}),
|
|
1913
|
-
return S({ className:
|
|
1915
|
+
var t = this, n = e.rowIndex, r = e.isScrolling, l = e.key, i = e.parent, a = e.style, s = this.props, c = s.children, d = s.onRowClick, h = s.onRowDoubleClick, f = s.onRowRightClick, u = s.onRowMouseOver, v = s.onRowMouseOut, g = s.rowClassName, _ = s.rowGetter, S = s.rowRenderer, m = s.rowStyle, y = this.state.scrollbarWidth, w = typeof g == "function" ? g({ index: n }) : g, x = typeof m == "function" ? m({ index: n }) : m, R = _({ index: n }), z = C.Children.toArray(c).map(function(P, b) {
|
|
1916
|
+
return t._createColumn({ column: P, columnIndex: b, isScrolling: r, parent: i, rowData: R, rowIndex: n, scrollbarWidth: y });
|
|
1917
|
+
}), T = N("ReactVirtualized__Table__row", w), I = B(B({}, a), {}, { height: this._getRowHeight(n), overflow: "hidden", paddingRight: y }, x);
|
|
1918
|
+
return S({ className: T, columns: z, index: n, isScrolling: r, key: l, onRowClick: d, onRowDoubleClick: h, onRowRightClick: f, onRowMouseOver: u, onRowMouseOut: v, rowData: R, style: I });
|
|
1914
1919
|
} }, { key: "_getFlexStyleForColumn", value: function(e) {
|
|
1915
|
-
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 =
|
|
1920
|
+
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 });
|
|
1916
1921
|
return e.props.maxWidth && (r.maxWidth = e.props.maxWidth), e.props.minWidth && (r.minWidth = e.props.minWidth), r;
|
|
1917
1922
|
} }, { key: "_getHeaderColumns", value: function() {
|
|
1918
1923
|
var e = this, t = this.props, n = t.children;
|
|
1919
|
-
return (t.disableHeader ? [] :
|
|
1924
|
+
return (t.disableHeader ? [] : C.Children.toArray(n)).map(function(r, l) {
|
|
1920
1925
|
return e._createHeader({ column: r, index: l });
|
|
1921
1926
|
});
|
|
1922
1927
|
} }, { key: "_getRowHeight", value: function(e) {
|
|
@@ -1937,13 +1942,13 @@ var Oe = function() {
|
|
|
1937
1942
|
this.setState({ scrollbarWidth: e });
|
|
1938
1943
|
} }]);
|
|
1939
1944
|
}();
|
|
1940
|
-
p(
|
|
1945
|
+
p(ke, "defaultProps", { disableHeader: !1, estimatedRowSize: 30, headerHeight: 0, headerStyle: {}, noRowsRenderer: function() {
|
|
1941
1946
|
return null;
|
|
1942
1947
|
}, onRowsRendered: function() {
|
|
1943
1948
|
return null;
|
|
1944
1949
|
}, onScroll: function() {
|
|
1945
1950
|
return null;
|
|
1946
|
-
}, overscanIndicesGetter:
|
|
1951
|
+
}, overscanIndicesGetter: Lt, overscanRowCount: 10, rowRenderer: function(o) {
|
|
1947
1952
|
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, d = o.rowData, h = o.style, f = { "aria-rowindex": n + 1 };
|
|
1948
1953
|
return (l || i || a || s || c) && (f["aria-label"] = "row", f.tabIndex = 0, l && (f.onClick = function(u) {
|
|
1949
1954
|
return l({ event: u, index: n, rowData: d });
|
|
@@ -1955,49 +1960,49 @@ p(Oe, "defaultProps", { disableHeader: !1, estimatedRowSize: 30, headerHeight: 0
|
|
|
1955
1960
|
return s({ event: u, index: n, rowData: d });
|
|
1956
1961
|
}), c && (f.onContextMenu = function(u) {
|
|
1957
1962
|
return c({ event: u, index: n, rowData: d });
|
|
1958
|
-
})),
|
|
1963
|
+
})), C.createElement("div", U({}, f, { className: e, key: r, role: "row", style: h }), t);
|
|
1959
1964
|
}, headerRowRenderer: function(o) {
|
|
1960
1965
|
var e = o.className, t = o.columns, n = o.style;
|
|
1961
|
-
return
|
|
1962
|
-
}, rowStyle: {}, scrollToAlignment: "auto", scrollToIndex: -1, style: {} }),
|
|
1966
|
+
return C.createElement("div", { className: e, role: "row", style: n }, t);
|
|
1967
|
+
}, rowStyle: {}, scrollToAlignment: "auto", scrollToIndex: -1, style: {} }), ke.propTypes = {};
|
|
1963
1968
|
var Y = [], ae = null, X = null;
|
|
1964
|
-
function
|
|
1969
|
+
function Vt() {
|
|
1965
1970
|
X && (X = null, document.body && ae != null && (document.body.style.pointerEvents = ae), ae = null);
|
|
1966
1971
|
}
|
|
1967
|
-
function
|
|
1968
|
-
|
|
1972
|
+
function Jo() {
|
|
1973
|
+
Vt(), Y.forEach(function(o) {
|
|
1969
1974
|
return o.__resetIsScrolling();
|
|
1970
1975
|
});
|
|
1971
1976
|
}
|
|
1972
|
-
function
|
|
1977
|
+
function $t(o) {
|
|
1973
1978
|
o.currentTarget === window && ae == null && document.body && (ae = document.body.style.pointerEvents, document.body.style.pointerEvents = "none"), function() {
|
|
1974
1979
|
X && oe(X);
|
|
1975
1980
|
var e = 0;
|
|
1976
1981
|
Y.forEach(function(t) {
|
|
1977
1982
|
e = Math.max(e, t.props.scrollingResetTimeInterval);
|
|
1978
|
-
}), X =
|
|
1983
|
+
}), X = Le(Jo, e);
|
|
1979
1984
|
}(), Y.forEach(function(e) {
|
|
1980
1985
|
e.props.scrollElement === o.currentTarget && e.__handleWindowScrollEvent();
|
|
1981
1986
|
});
|
|
1982
1987
|
}
|
|
1983
|
-
function
|
|
1988
|
+
function ut(o, e) {
|
|
1984
1989
|
Y.some(function(t) {
|
|
1985
1990
|
return t.props.scrollElement === e;
|
|
1986
|
-
}) || e.addEventListener("scroll",
|
|
1991
|
+
}) || e.addEventListener("scroll", $t), Y.push(o);
|
|
1987
1992
|
}
|
|
1988
|
-
function
|
|
1993
|
+
function ht(o, e) {
|
|
1989
1994
|
(Y = Y.filter(function(t) {
|
|
1990
1995
|
return t !== o;
|
|
1991
|
-
})).length || (e.removeEventListener("scroll",
|
|
1996
|
+
})).length || (e.removeEventListener("scroll", $t), X && (oe(X), Vt()));
|
|
1992
1997
|
}
|
|
1993
|
-
var
|
|
1998
|
+
var Ae = function(o) {
|
|
1994
1999
|
return o === window;
|
|
1995
2000
|
}, le = function(o) {
|
|
1996
2001
|
return o.getBoundingClientRect();
|
|
1997
2002
|
};
|
|
1998
|
-
function
|
|
2003
|
+
function ft(o, e) {
|
|
1999
2004
|
if (o) {
|
|
2000
|
-
if (
|
|
2005
|
+
if (Ae(o)) {
|
|
2001
2006
|
var t = window, n = t.innerHeight, r = t.innerWidth;
|
|
2002
2007
|
return { height: typeof n == "number" ? n : 0, width: typeof r == "number" ? r : 0 };
|
|
2003
2008
|
}
|
|
@@ -2005,10 +2010,10 @@ function vt(o, e) {
|
|
|
2005
2010
|
}
|
|
2006
2011
|
return { height: e.serverHeight, width: e.serverWidth };
|
|
2007
2012
|
}
|
|
2008
|
-
function
|
|
2009
|
-
return
|
|
2013
|
+
function pt(o) {
|
|
2014
|
+
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 };
|
|
2010
2015
|
}
|
|
2011
|
-
function
|
|
2016
|
+
function mt(o, e) {
|
|
2012
2017
|
var t = Object.keys(o);
|
|
2013
2018
|
if (Object.getOwnPropertySymbols) {
|
|
2014
2019
|
var n = Object.getOwnPropertySymbols(o);
|
|
@@ -2018,35 +2023,35 @@ function St(o, e) {
|
|
|
2018
2023
|
}
|
|
2019
2024
|
return t;
|
|
2020
2025
|
}
|
|
2021
|
-
function
|
|
2026
|
+
function gt(o) {
|
|
2022
2027
|
for (var e = 1; e < arguments.length; e++) {
|
|
2023
2028
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
2024
|
-
e % 2 ?
|
|
2029
|
+
e % 2 ? mt(Object(t), !0).forEach(function(n) {
|
|
2025
2030
|
p(o, n, t[n]);
|
|
2026
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) :
|
|
2031
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : mt(Object(t)).forEach(function(n) {
|
|
2027
2032
|
Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
|
|
2028
2033
|
});
|
|
2029
2034
|
}
|
|
2030
2035
|
return o;
|
|
2031
2036
|
}
|
|
2032
|
-
function
|
|
2037
|
+
function Kt() {
|
|
2033
2038
|
try {
|
|
2034
2039
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
2035
2040
|
}));
|
|
2036
2041
|
} catch {
|
|
2037
2042
|
}
|
|
2038
|
-
return (
|
|
2043
|
+
return (Kt = function() {
|
|
2039
2044
|
return !!o;
|
|
2040
2045
|
})();
|
|
2041
2046
|
}
|
|
2042
|
-
var
|
|
2047
|
+
var qt = function() {
|
|
2043
2048
|
return typeof window < "u" ? window : void 0;
|
|
2044
|
-
},
|
|
2049
|
+
}, Zo = function() {
|
|
2045
2050
|
function o() {
|
|
2046
2051
|
var e, t, n, r;
|
|
2047
2052
|
A(this, o);
|
|
2048
2053
|
for (var l = arguments.length, i = new Array(l), a = 0; a < l; a++) i[a] = arguments[a];
|
|
2049
|
-
return t = this, n = o, r = [].concat(i), n =
|
|
2054
|
+
return t = this, n = o, r = [].concat(i), n = k(n), p(e = W(t, Kt() ? Reflect.construct(n, r || [], k(t).constructor) : n.apply(t, r)), "_window", qt()), 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", C.createRef()), p(e, "state", gt(gt({}, ft(e.props.scrollElement, e.props)), {}, { isScrolling: !1, scrollLeft: 0, scrollTop: 0 })), p(e, "_registerChild", function(s) {
|
|
2050
2055
|
!s || s instanceof Element || console.warn("WindowScroller registerChild expects to be passed Element or null"), e._child = s, e.updatePosition();
|
|
2051
2056
|
}), p(e, "_onChildScroll", function(s) {
|
|
2052
2057
|
var c = s.scrollTop;
|
|
@@ -2064,7 +2069,7 @@ var Zt = function() {
|
|
|
2064
2069
|
if (e._isMounted) {
|
|
2065
2070
|
var s = e.props.onScroll, c = e.props.scrollElement;
|
|
2066
2071
|
if (c) {
|
|
2067
|
-
var d =
|
|
2072
|
+
var d = pt(c), h = Math.max(0, d.left - e._positionFromLeft), f = Math.max(0, d.top - e._positionFromTop);
|
|
2068
2073
|
e.setState({ isScrolling: !0, scrollLeft: h, scrollTop: f }), s({ scrollLeft: h, scrollTop: f });
|
|
2069
2074
|
}
|
|
2070
2075
|
}
|
|
@@ -2072,51 +2077,51 @@ var Zt = function() {
|
|
|
2072
2077
|
e.setState({ isScrolling: !1 });
|
|
2073
2078
|
}), e;
|
|
2074
2079
|
}
|
|
2075
|
-
return D(o,
|
|
2080
|
+
return D(o, C.PureComponent), E(o, [{ key: "updatePosition", value: function() {
|
|
2076
2081
|
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;
|
|
2077
2082
|
if (i instanceof Element && e) {
|
|
2078
2083
|
var a = function(c, d) {
|
|
2079
|
-
if (
|
|
2084
|
+
if (Ae(d) && document.documentElement) {
|
|
2080
2085
|
var h = document.documentElement, f = le(c), u = le(h);
|
|
2081
2086
|
return { top: f.top - u.top, left: f.left - u.left };
|
|
2082
2087
|
}
|
|
2083
|
-
var v =
|
|
2084
|
-
return { top:
|
|
2088
|
+
var v = pt(d), g = le(c), _ = le(d);
|
|
2089
|
+
return { top: g.top + v.top - _.top, left: g.left + v.left - _.left };
|
|
2085
2090
|
}(i, e);
|
|
2086
2091
|
this._positionFromTop = a.top, this._positionFromLeft = a.left;
|
|
2087
2092
|
}
|
|
2088
|
-
var s =
|
|
2093
|
+
var s = ft(e, this.props);
|
|
2089
2094
|
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());
|
|
2090
2095
|
} }, { key: "componentDidMount", value: function() {
|
|
2091
2096
|
var e = this.props.scrollElement;
|
|
2092
|
-
this._detectElementResize =
|
|
2097
|
+
this._detectElementResize = bt(), this.updatePosition(e), e && (ut(this, e), this._registerResizeListener(e)), this._isMounted = !0;
|
|
2093
2098
|
} }, { key: "componentDidUpdate", value: function(e, t) {
|
|
2094
2099
|
var n = this.props.scrollElement, r = e.scrollElement;
|
|
2095
|
-
r !== n && r != null && n != null && (this.updatePosition(n),
|
|
2100
|
+
r !== n && r != null && n != null && (this.updatePosition(n), ht(this, r), ut(this, n), this._unregisterResizeListener(r), this._registerResizeListener(n));
|
|
2096
2101
|
} }, { key: "componentWillUnmount", value: function() {
|
|
2097
2102
|
var e = this.props.scrollElement;
|
|
2098
|
-
e && (
|
|
2103
|
+
e && (ht(this, e), this._unregisterResizeListener(e)), this._isMounted = !1;
|
|
2099
2104
|
} }, { key: "render", value: function() {
|
|
2100
2105
|
var e = this.props.children, t = this.state, n = t.isScrolling, r = t.scrollTop, l = t.scrollLeft, i = t.height, a = t.width;
|
|
2101
|
-
return
|
|
2106
|
+
return C.createElement("div", { ref: this._windowScrollerRef }, e({ onChildScroll: this._onChildScroll, registerChild: this._registerChild, height: i, isScrolling: n, scrollLeft: l, scrollTop: r, width: a }));
|
|
2102
2107
|
} }]);
|
|
2103
2108
|
}();
|
|
2104
|
-
p(
|
|
2109
|
+
p(Zo, "defaultProps", { onResize: function() {
|
|
2105
2110
|
}, onScroll: function() {
|
|
2106
|
-
}, scrollingResetTimeInterval: 150, scrollElement:
|
|
2107
|
-
const se = "ReactVirtualizedDemo-flexContainer",
|
|
2108
|
-
class
|
|
2111
|
+
}, scrollingResetTimeInterval: 150, scrollElement: qt(), serverHeight: 0, serverWidth: 0 });
|
|
2112
|
+
const se = "ReactVirtualizedDemo-flexContainer", Xt = "ReactVirtualizedDemo-tableRow", Yt = "ReactVirtualizedDemo-tableRowHover", Oe = "ReactVirtualizedDemo-tableCell", Me = "ReactVirtualizedDemo-noClick";
|
|
2113
|
+
class Qo extends _t.PureComponent {
|
|
2109
2114
|
constructor() {
|
|
2110
2115
|
super(...arguments), this.getRowClassName = ({ index: e }) => {
|
|
2111
2116
|
const { onRowClick: t } = this.props;
|
|
2112
|
-
return
|
|
2117
|
+
return Se(Xt, se, { [Yt]: e !== -1 && t != null });
|
|
2113
2118
|
}, this.cellRenderer = ({ cellData: e, dataKey: t, columnIndex: n, width: r }) => {
|
|
2114
2119
|
const { columns: l, rowHeight: i, onRowClick: a } = this.props;
|
|
2115
2120
|
let s = e, c = { height: i, paddingRight: "2px", paddingTop: "0px", paddingBottom: "0px", minWidth: `${r}px`, maxWidth: `${r}px` };
|
|
2116
|
-
return t === "shortcut" ? s =
|
|
2121
|
+
return t === "shortcut" ? s = Co(e) : t === "description" && (c = { ...c, fontSize: ".75rem", display: "block", paddingTop: "4px", whiteSpace: "pre-line" }), G.jsx(He, { component: "div", className: Se(Oe, se, { [Me]: a == null }), variant: "body", style: c, align: n != null && l[n].numeric ? "right" : "left", children: s });
|
|
2117
2122
|
}, this.headerRenderer = ({ label: e, columnIndex: t, width: n }) => {
|
|
2118
2123
|
const { headerHeight: r, columns: l } = this.props, i = l[t];
|
|
2119
|
-
return
|
|
2124
|
+
return G.jsx(He, { component: "div", className: Se(Oe, se, Me), variant: "head", sx: { width: n, height: r, backgroundColor: (a) => a.palette.grey[300] }, align: i.numeric ? "right" : "left", children: G.jsx("span", { children: i.label }) });
|
|
2120
2125
|
};
|
|
2121
2126
|
}
|
|
2122
2127
|
static {
|
|
@@ -2124,55 +2129,55 @@ class ln extends Ct.PureComponent {
|
|
|
2124
2129
|
}
|
|
2125
2130
|
render() {
|
|
2126
2131
|
const { columns: e, rowHeight: t, headerHeight: n, ...r } = this.props;
|
|
2127
|
-
return
|
|
2132
|
+
return G.jsx(zt, { children: ({ height: l, width: i }) => G.jsx(ke, { height: l, width: i, rowHeight: t, gridStyle: { direction: "inherit" }, headerHeight: n, ...r, rowClassName: this.getRowClassName, children: e.map(({ dataKey: a, width: s, widthLess: c, ...d }, h) => {
|
|
2128
2133
|
const f = c ? i - c : s;
|
|
2129
|
-
return
|
|
2134
|
+
return G.jsx(_e, { style: { flex: `1 1 ${f}px` }, headerRenderer: (u) => this.headerRenderer({ ...u, width: f, columnIndex: h }), className: se, cellDataGetter: ({ rowData: u, columnData: v, dataKey: g }) => u[g], cellRenderer: (u) => this.cellRenderer({ ...u, width: f, columnIndex: h }), dataKey: a, width: f, ...d }, a);
|
|
2130
2135
|
}) }) });
|
|
2131
2136
|
}
|
|
2132
2137
|
}
|
|
2133
|
-
const
|
|
2134
|
-
function
|
|
2135
|
-
const { commands: e, ...t } = o, [n, r] =
|
|
2138
|
+
const en = Go(Qo)(({ theme: o }) => ({ "& .ReactVirtualized__Table__headerRow": { ...o.direction === "rtl" && { paddingLeft: "0 !important" }, ...o.direction !== "rtl" && { paddingRight: void 0 } }, "& .ReactVirtualized__Table__Grid": { outline: "none" }, [`& .${se}`]: { display: "flex", alignItems: "center", boxSizing: "border-box" }, [`& .${Xt}`]: { cursor: "pointer" }, [`& .${Yt}`]: { "&:hover:not([disabled])": { backgroundColor: o.palette.grey[200] } }, [`& .${Oe}`]: { flex: 1 }, [`& .${Me}`]: { cursor: "initial" } }));
|
|
2139
|
+
function tn(o) {
|
|
2140
|
+
const { commands: e, ...t } = o, [n, r] = C.useState(!1), [l, i] = C.useState(""), a = C.useMemo(() => {
|
|
2136
2141
|
let u = e.getAllCommands();
|
|
2137
2142
|
n || (u = u.filter((_) => _.command.shortcut())), u.sort((_, S) => _.command.label().localeCompare(S.command.label()));
|
|
2138
|
-
const v = [],
|
|
2143
|
+
const v = [], g = (_) => _.replace(/\n\n/g, `
|
|
2139
2144
|
`);
|
|
2140
2145
|
for (let _ = 0; _ < u.length; _++) {
|
|
2141
|
-
const S = u[_].command,
|
|
2142
|
-
if (Array.isArray(
|
|
2143
|
-
const
|
|
2144
|
-
for (let w = 0; w <
|
|
2145
|
-
} else v.push({ label: S.label(), description:
|
|
2146
|
+
const S = u[_].command, m = S.shortcut();
|
|
2147
|
+
if (Array.isArray(m)) {
|
|
2148
|
+
const y = m;
|
|
2149
|
+
for (let w = 0; w < y.length; w++) v.push({ label: S.label(), description: g(S.description()), shortcut: y[w] });
|
|
2150
|
+
} else v.push({ label: S.label(), description: g(S.description()), shortcut: S.shortcut() });
|
|
2146
2151
|
}
|
|
2147
2152
|
return v;
|
|
2148
|
-
}, [n, e]), [s, c] =
|
|
2149
|
-
|
|
2150
|
-
import("./
|
|
2153
|
+
}, [n, e]), [s, c] = C.useState(null);
|
|
2154
|
+
C.useEffect(() => {
|
|
2155
|
+
import("./DBL4jY0AVc53RGNm.js").then((u) => {
|
|
2151
2156
|
c(new u.default(a, { threshold: 0, ignoreLocation: !0, keys: ["label", "description"] }));
|
|
2152
2157
|
});
|
|
2153
2158
|
}, [a]);
|
|
2154
|
-
const [d, h] =
|
|
2155
|
-
return
|
|
2156
|
-
s &&
|
|
2159
|
+
const [d, h] = C.useState(a), f = l.length > 0 && d.length === 0;
|
|
2160
|
+
return C.useEffect(() => {
|
|
2161
|
+
s && ao.debounce(() => {
|
|
2157
2162
|
if (l.trim().length === 0) return void h(a);
|
|
2158
2163
|
const u = s.search(l.trim()), v = new Array(u.length);
|
|
2159
|
-
for (let
|
|
2164
|
+
for (let g = 0; g < u.length; g++) v[g] = u[g].item;
|
|
2160
2165
|
h(v);
|
|
2161
2166
|
}, 90)();
|
|
2162
|
-
}, [s, l]),
|
|
2167
|
+
}, [s, l]), G.jsxs(he, { style: { height: 440, width: "100%", display: "flex", flexDirection: "column" }, ...t, children: [G.jsxs(he, { sx: { display: "flex", alignItems: "center", justifyContent: "end", marginBottom: (u) => u.spacing(2), color: (u) => u.palette.text.secondary }, children: [G.jsx(co, { InputProps: { sx: { backgroundImage: `linear-gradient(${Q("#fff", fe(5))}, ${Q("#fff", fe(5))})` }, inputProps: { className: "input", autoFocus: !0, spellCheck: !1, placeholder: "Type to search key bindings", autoComplete: "off", sx: { paddingTop: (u) => u.spacing(1), paddingBottom: (u) => u.spacing(1) } }, endAdornment: G.jsx(uo, { sx: { opacity: l.length > 0 ? 1 : 0, display: l.length > 0 ? "flex" : "none" }, position: "end", children: G.jsx(ho, { "aria-label": "clear search", onClick: () => i(""), edge: "end", children: G.jsx(fo, {}) }) }) }, sx: { flex: "1 1 40%", marginRight: (u) => u.spacing(1), "& .MuiOutlinedInput-notchedOutline": { borderColor: (u) => f ? `${u.palette.error.main} !important` : void 0 }, "& .MuiInputLabel-outlined": { color: (u) => f ? `${u.palette.error.main} !important` : void 0 } }, value: l, onChange: (u) => {
|
|
2163
2168
|
i(u.target.value);
|
|
2164
2169
|
}, onKeyDown: (u) => {
|
|
2165
|
-
u.which ===
|
|
2170
|
+
u.which === vt.Escape && l.length > 0 && (i(""), u.stopPropagation(), u.preventDefault());
|
|
2166
2171
|
}, onContextMenu: (u) => {
|
|
2167
2172
|
u.stopPropagation();
|
|
2168
|
-
} }),
|
|
2173
|
+
} }), G.jsx(po, { sx: { flex: "1 1 60%" }, control: G.jsx(mo, { checked: n, onChange: () => r(!n) }), label: "Show commands without key bindings", labelPlacement: "start" })] }), G.jsx(he, { sx: { flex: "1 1 100%", borderRadius: (u) => `${u.shape.borderRadius}px`, border: (u) => `solid ${u.palette.divider} 1px`, paddingRight: "1px", overflow: "hidden", "* .MuiTableCell-head": { background: (u) => u.palette.background.paper, backgroundImage: `linear-gradient(${Q("#fff", fe(5))}, ${Q("#fff", fe(5))})` } }, children: G.jsx(en, { rowCount: d.length, rowGetter: (u) => d[u.index], columns: [{ width: 180, label: "Command", dataKey: "label" }, { width: 260, label: "Key Binding", dataKey: "shortcut" }, { width: 240, label: "Description", dataKey: "description", widthLess: 440 }] }) }), G.jsx(he, { sx: { display: "flex", flexShrink: "0", paddingLeft: (u) => u.spacing(1), paddingTop: (u) => u.spacing(1), paddingRight: (u) => u.spacing(1), userSelect: "none", justifyContent: "flex-end" }, children: G.jsx(go, { noWrap: !0, component: "div", sx: { color: (u) => f ? u.palette.error.main : u.palette.text.secondary }, children: `${d.length === 0 ? "No" : d.length} shortcut key${d.length === 1 ? "" : "s"}${l.length > 0 ? " found" : ""}` }) })] });
|
|
2169
2174
|
}
|
|
2170
|
-
const
|
|
2175
|
+
const ln = (o) => {
|
|
2171
2176
|
const { title: e = "Shortcut Keys", commands: t, sx: n, ...r } = o;
|
|
2172
|
-
return
|
|
2173
|
-
l.keyCode ===
|
|
2174
|
-
}, sx: { width: "780px", ...n }, title: e, autoFocusSel: ".input", ...r, children:
|
|
2177
|
+
return G.jsx(lo, { isModal: !0, onKeyDown: (l) => {
|
|
2178
|
+
l.keyCode === vt.F1 && l.preventDefault();
|
|
2179
|
+
}, sx: { width: "780px", ...n }, title: e, autoFocusSel: ".input", ...r, children: G.jsx(so, { dividers: !0, children: G.jsx(tn, { commands: t, sx: { marginBottom: "8px" } }) }) });
|
|
2175
2180
|
};
|
|
2176
2181
|
export {
|
|
2177
|
-
|
|
2182
|
+
ln as default
|
|
2178
2183
|
};
|