@sheetxl/studio-vanilla 0.3.4 → 0.3.5
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/-aNm3r-RpjcRRCbw.cjs +6 -0
- package/browser/cjs/6e91IXsvk9_k3W5c.cjs +6 -0
- package/browser/cjs/{BTgA_stiR3dZAHop.cjs → BLHbDre9R0bvyb9G.cjs} +2 -2
- package/browser/cjs/{BlYpCVX1NOGpcNB6.cjs → BN0MiwKQ8NjKXgue.cjs} +3 -3
- package/browser/cjs/BNtn_2pcq6Dd-2HL.cjs +11 -0
- package/browser/cjs/{D-I49Eh-SQg7zJYX.cjs → BW_fZwvTtMLqteuJ.cjs} +1 -1
- package/browser/cjs/{CdVKz1bz20BYztuB.cjs → Bg9KIoDuqtkhIYfN.cjs} +1 -1
- package/browser/cjs/{CpPM7Ir1EZB_8bER.cjs → BiiW2FlRZHxGIWso.cjs} +1 -1
- package/browser/cjs/{WPXWuf9j-uwazW31.cjs → Biyqj-Wu75uxLHv1.cjs} +2 -2
- package/browser/cjs/BwocMiKAPb8s__1Z.cjs +6 -0
- package/browser/cjs/{DzE824T4cXRcKowY.cjs → CdWBtYv7LuuDLPL2.cjs} +1 -1
- package/browser/cjs/CuY7mAREmYhHuYWx.cjs +6 -0
- package/browser/cjs/CvESC6HiL0-peppq.cjs +12 -0
- package/browser/cjs/{BDACVe5nzEmYknRm.cjs → Cxt39d6l0pu9k1vT.cjs} +8 -8
- package/browser/cjs/{CuldnUeQxpcu8oJ7.cjs → D7NgrO__M-IUmM8o.cjs} +1 -1
- package/browser/cjs/{BB5pxJh1jhHsvVZ1.cjs → DCWZ2ZkLp-Horeca.cjs} +1 -1
- package/browser/cjs/DDhq2nYMdw5b7wP6.cjs +301 -0
- package/browser/cjs/{BDmE5OFneHwyeeiD.cjs → DIawrhwQ7E_1l99b.cjs} +6 -6
- package/browser/cjs/{yZrSgyFKPqsiym7z.cjs → DKit140jXAUUSf-_.cjs} +2 -2
- package/browser/cjs/DKsZXMMHWKP9IZ4E.cjs +12 -0
- package/browser/cjs/DeAt9vyyaeB2vbxQ.cjs +6 -0
- package/browser/cjs/Dkl2t2DSaDxPbm2V.cjs +6 -0
- package/browser/cjs/Ya4f5p9go_UndgNy.cjs +6 -0
- package/browser/cjs/{46C8cTP5D1fDfsPs.cjs → hSI9QVPgIxqt3pXc.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/qjPE6k7aYlu-R90s.cjs +6 -0
- package/browser/cjs/{DD0VHDU8F1FiLKcs.cjs → yvA5FY7oe6FILMqB.cjs} +1 -1
- package/{cdn/assets/CGUSbWH383tudMFu.js → browser/esm/BLsIMzjofsOnRFrU.mjs} +12 -12
- package/{cdn/assets/BY5dcSv5nxuvXMsr.js → browser/esm/BTQ-TGJnw7w1Y0CX.mjs} +13 -13
- package/{cdn/assets/CNhPYXS_v3a2ATBg.js → browser/esm/BdLAPrmXIfjGFhhA.mjs} +231 -231
- package/browser/esm/BsDYj6xix3mlXry2.mjs +46 -0
- package/browser/esm/{pxRv4ndPNkOMM_s3.mjs → Btk74VwCVJ1T5LQD.mjs} +13 -13
- package/browser/esm/{s8U6UEvd4LQsvEnH.mjs → C60KakDbde-A4anI.mjs} +1 -1
- package/browser/esm/{BfNo01-WwZl_5N1M.mjs → CAm14rTtmPL5-rvQ.mjs} +220 -219
- package/browser/esm/CLTP12OHGQ2k4_Kt.mjs +50 -0
- package/browser/esm/{qchlbvmOxrybWJep.mjs → CPWh2H15145LP-d5.mjs} +1 -1
- package/browser/esm/CYXzmWJtZn5OJVBF.mjs +24861 -0
- package/{cdn/assets/dQu9CDkkTpS5h580.js → browser/esm/ChMaIhqaEhF3SLLt.mjs} +8 -8
- package/browser/esm/{Dq1oxXMudxqdJaKZ.mjs → CntwHkPpskE88Ixu.mjs} +11 -10
- package/{cdn/assets/C-oc6cc0wXRVBFx2.js → browser/esm/CsVV_QnEl77BQM3V.mjs} +1 -1
- package/browser/esm/{CTdGamCv2VtpI05C.mjs → CvFAAktSd9TQK1h4.mjs} +1 -1
- package/browser/esm/{BjLCBG20KyjNKCpy.mjs → D0-tgawYa4KXYT2c.mjs} +2 -2
- package/browser/esm/{BXMZNx8rs4_V8pQL.mjs → D244UwY3qPC_LNc5.mjs} +2 -2
- package/{cdn/assets/Dl02UNFD2tNwtHQ9.js → browser/esm/DCuLWmzd9eLWgI03.mjs} +1 -1
- package/browser/esm/{C2Ik_RfF43fmFDeS.mjs → DDD5zfwNNPKuc_zZ.mjs} +1 -1
- package/browser/esm/{BNq1DlA_v8-hm8PQ.mjs → DFa_tXqv1VN1OZdv.mjs} +75 -74
- package/browser/esm/{CeWIrhJ_bsxOl7mw.mjs → DJxioSY-hxyM7dmk.mjs} +24 -23
- package/{cdn/assets/ct9ztJbQB16MJoyP.js → browser/esm/DdrICyX8Ead15N32.mjs} +7 -7
- package/browser/esm/Di2tNceI3NodSsgU.mjs +41 -0
- package/browser/esm/{BrWhLiIy81LKNSUX.mjs → Did46-x6ZVwk_-r-.mjs} +1 -1
- package/browser/esm/{DLJ1zBZE-WPdkpt2.mjs → Q1yWEkJBu4cVEF33.mjs} +132 -131
- package/browser/esm/index.mjs +2 -2
- package/{cdn/assets/RWhi_dOrWDICNt1t.js → browser/esm/mq5uPzTIc1x8unBP.mjs} +1 -1
- package/browser/esm/wziCLl5xvHu6Guu_.mjs +22 -0
- package/cdn/assets/{LxoKYdUqZ4Zgxjza.js → B41q92oKD_VR31Dd.js} +13 -13
- package/cdn/assets/{BMb4pCD8O5vK2p1B.js → BOl7blN8JotSzCHJ.js} +2 -2
- package/{browser/esm/Ddm9jggzrr5VJQ68.mjs → cdn/assets/Bs-psXrTRw1jFety.js} +13 -13
- package/cdn/assets/{COFTB6OufFls7NP1.js → BzptX9H_YCM2l0DE.js} +11 -10
- package/cdn/assets/{s8U6UEvd4LQsvEnH.js → C60KakDbde-A4anI.js} +1 -1
- package/cdn/assets/C8omEbSXHWI_wNjp.js +41 -0
- package/{browser/esm/CZRLp5H9dSrMEgaI.mjs → cdn/assets/CEXK9SXjFf1dGHZe.js} +12 -12
- package/cdn/assets/{qchlbvmOxrybWJep.js → CPWh2H15145LP-d5.js} +1 -1
- package/cdn/assets/C_E1C68wCcRpC6XN.js +46 -0
- package/cdn/assets/{BKDQtGZxRUUzBmnI.js → ClFGbVy7cnhMW-dO.js} +2 -2
- package/cdn/assets/{Be9YovX6b_0gKXs5.js → CoCIP7n4THmzOggq.js} +75 -74
- package/{browser/esm/C-oc6cc0wXRVBFx2.mjs → cdn/assets/CsVV_QnEl77BQM3V.js} +1 -1
- package/cdn/assets/{CTdGamCv2VtpI05C.js → CvFAAktSd9TQK1h4.js} +1 -1
- package/cdn/assets/{6tFlyQMvtppXfmuU.js → Cz33L9W3cdQckAL5.js} +24 -23
- package/{browser/esm/BoL2rsWK1YyT1PP7.mjs → cdn/assets/DBgbBl_3O65WhfWN.js} +8 -8
- package/{browser/esm/Dl02UNFD2tNwtHQ9.mjs → cdn/assets/DCuLWmzd9eLWgI03.js} +1 -1
- package/cdn/assets/{C2Ik_RfF43fmFDeS.js → DDD5zfwNNPKuc_zZ.js} +1 -1
- package/cdn/assets/{mAWImp_J2v8z8hbZ.js → DLYF-18qErpwF9Q-.js} +132 -131
- package/{browser/esm/Br4TnuxGRULZDhCA.mjs → cdn/assets/DXMyzCcyP7039z13.js} +231 -231
- package/{browser/esm/GbTp1_3jFZu0Ex24.mjs → cdn/assets/DdrICyX8Ead15N32.js} +7 -7
- package/cdn/assets/{BrWhLiIy81LKNSUX.js → Did46-x6ZVwk_-r-.js} +1 -1
- package/cdn/assets/{DYgFWlitgXmKdN_I.js → Dj3GhNedlKE9TeTn.js} +220 -219
- package/cdn/assets/F-RqJeKWiW4i5344.js +24708 -0
- package/cdn/assets/NHbXgEQMftGzY01r.js +50 -0
- package/cdn/assets/lM5it-aJgI7DLNH9.js +22 -0
- package/{browser/esm/RWhi_dOrWDICNt1t.mjs → cdn/assets/mq5uPzTIc1x8unBP.js} +1 -1
- package/cdn/index.js +2 -2
- package/cdn/loader.js +1 -1
- package/package.json +3 -2
- package/browser/cjs/0dkhOl0ItVZXnHg_.cjs +0 -6
- package/browser/cjs/7Xjct_4bBSU-vad1.cjs +0 -6
- package/browser/cjs/B2kFbeodTh3Gk-aQ.cjs +0 -6
- package/browser/cjs/B5UGK4AzAC9SjXJp.cjs +0 -6
- package/browser/cjs/B9kurj8mOePUlJX2.cjs +0 -6
- package/browser/cjs/BG8OR9VWCkyIRwrw.cjs +0 -6
- package/browser/cjs/BML8p6hKVpqMb-13.cjs +0 -124
- package/browser/cjs/BeGusiaaShhfh7Ch.cjs +0 -7
- package/browser/cjs/BgJ-surJf8jSxqmk.cjs +0 -6
- package/browser/cjs/BgJFVvwpAWB3ssLE.cjs +0 -6
- package/browser/cjs/Bi8tk3LAhLkM7IXm.cjs +0 -6
- package/browser/cjs/BnZdvx8z2BIDZv9J.cjs +0 -355
- package/browser/cjs/BvnUfF0WlIXumm-E.cjs +0 -6
- package/browser/cjs/BwGs6fp9j-iFwDlB.cjs +0 -32
- package/browser/cjs/C4JyilwtB4aWsWnG.cjs +0 -6
- package/browser/cjs/C8PUqW17bEbzJthE.cjs +0 -6
- package/browser/cjs/CBTWDt8vxgXfkDfh.cjs +0 -6
- package/browser/cjs/CJ29qM66PMBNE3G9.cjs +0 -6
- package/browser/cjs/CKtzkomrFnDVY5SY.cjs +0 -11
- package/browser/cjs/CLarA_vLTlgU3TCF.cjs +0 -13
- package/browser/cjs/CN8Y9NZjRCPl8CqY.cjs +0 -6
- package/browser/cjs/CNIPdrSO6Xr2gkt9.cjs +0 -6
- package/browser/cjs/CNkEdWYoHRiw_Uez.cjs +0 -6
- package/browser/cjs/CPFRW8nnIVWYeQYn.cjs +0 -12
- package/browser/cjs/CZih4fqvAIVbCVO4.cjs +0 -6
- package/browser/cjs/Cx3wCYZR6BKbOtgk.cjs +0 -6
- package/browser/cjs/Cx8xafhEESu639Ig.cjs +0 -6
- package/browser/cjs/CzqzVoUeKxH16SDC.cjs +0 -6
- package/browser/cjs/D-GDPxpVRx45cdpQ.cjs +0 -6
- package/browser/cjs/D50Wzp-4UIlO9uVc.cjs +0 -6
- package/browser/cjs/DB9rOzEP0g0ZGfBj.cjs +0 -6
- package/browser/cjs/DIeyUTfGkxwK6bdT.cjs +0 -15
- package/browser/cjs/DX_oDw_K4CB6Ej9i.cjs +0 -6
- package/browser/cjs/DcNRcLtSOkHAK_Mt.cjs +0 -6
- package/browser/cjs/Df8ZAsCgZ69F33-C.cjs +0 -6
- package/browser/cjs/DfCiN8VOEQt4cw-x.cjs +0 -12
- package/browser/cjs/DnkG5azaxDtt-73G.cjs +0 -6
- package/browser/cjs/Dr_HVAdkD1bM9yrW.cjs +0 -6
- package/browser/cjs/KbKjJCMErVEwKqoi.cjs +0 -6
- package/browser/cjs/Px_DbuQFWhjhPilq.cjs +0 -6
- package/browser/cjs/VmYEO_-N9Cn7JpZN.cjs +0 -6
- package/browser/cjs/c4HmqMqg3ugRd4gl.cjs +0 -1501
- package/browser/cjs/jmPMUQMT7KTdf9Sr.cjs +0 -6
- package/browser/cjs/zRbLzzCcfjQpsQ4j.cjs +0 -6
- package/browser/esm/0M23_yfYSvrAB5iY.mjs +0 -472
- package/browser/esm/2sPP8EL_OzSYDsKu.mjs +0 -10
- package/browser/esm/3SiPV9yNzSbQVINg.mjs +0 -10
- package/browser/esm/6CkscKSECxQpy0v6.mjs +0 -10
- package/browser/esm/94SRg1Gxbdr9B75m.mjs +0 -10
- package/browser/esm/B2I1Hudz2EIGw59h.mjs +0 -10
- package/browser/esm/B2fqssq7kMsGIg5g.mjs +0 -10
- package/browser/esm/BBBP9totA24zTbqh.mjs +0 -10
- package/browser/esm/BEYxIKe5B75ADXWP.mjs +0 -5582
- package/browser/esm/BIHHiMjUvXmWQ6w_.mjs +0 -10
- package/browser/esm/BYRVuU6FUEX6XBFW.mjs +0 -10
- package/browser/esm/Bq_HFm6_6_ycs_gE.mjs +0 -48519
- package/browser/esm/Bs6fth_bBoNrYDwE.mjs +0 -21
- package/browser/esm/C-QHwmJCeB3o-mzv.mjs +0 -3934
- package/browser/esm/C0U_bX9Hj97edVC9.mjs +0 -10
- package/browser/esm/CC8aO_pPT-tkJK_H.mjs +0 -10
- package/browser/esm/CGxu5NKxrEXE8QIe.mjs +0 -24
- package/browser/esm/CKHDKAaHkwZHUkoS.mjs +0 -22
- package/browser/esm/CbTDhJiJfpR6Btxp.mjs +0 -10
- package/browser/esm/CsUNORBKkJ7f3diG.mjs +0 -10
- package/browser/esm/CyYXh2ng_dKgHzbE.mjs +0 -29
- package/browser/esm/DRFsMc27LyLwGu56.mjs +0 -820
- package/browser/esm/DT09m4FGTu5N2LZJ.mjs +0 -10
- package/browser/esm/DUgyehn3re1zGQT5.mjs +0 -10
- package/browser/esm/DWOT4LkGXRN4FrJI.mjs +0 -10
- package/browser/esm/Dx1J8HBJdbrROP0v.mjs +0 -10
- package/browser/esm/Dz8v5MSOgkaH_zTd.mjs +0 -49
- package/browser/esm/F7oUe3nLrtaRYTas.mjs +0 -10
- package/browser/esm/FCkxbRy2XiqD3GdL.mjs +0 -41
- package/browser/esm/L5HOBW-m9BjZTUuw.mjs +0 -10
- package/browser/esm/XL9-bWRsLjEvW1Y0.mjs +0 -10
- package/browser/esm/ZXuNMFT0sYh8ui7O.mjs +0 -1575
- package/browser/esm/gX1gbnkwbpalR57F.mjs +0 -12
- package/browser/esm/im3UoVISx3VXhEFp.mjs +0 -46
- package/browser/esm/kagl0zcUDaK1IX_X.mjs +0 -10
- package/browser/esm/t7CffsKJY64LMXgS.mjs +0 -10
- package/browser/esm/x9wy-F3t5pNOvOIp.mjs +0 -425
- package/cdn/assets/2sPP8EL_OzSYDsKu.js +0 -10
- package/cdn/assets/3SiPV9yNzSbQVINg.js +0 -10
- package/cdn/assets/6CkscKSECxQpy0v6.js +0 -10
- package/cdn/assets/94SRg1Gxbdr9B75m.js +0 -10
- package/cdn/assets/B2I1Hudz2EIGw59h.js +0 -10
- package/cdn/assets/B2fqssq7kMsGIg5g.js +0 -10
- package/cdn/assets/BBBP9totA24zTbqh.js +0 -10
- package/cdn/assets/BD1S4plUUe1NPAqV.js +0 -425
- package/cdn/assets/BIHHiMjUvXmWQ6w_.js +0 -10
- package/cdn/assets/BPStm90FUYfOgibU.js +0 -41
- package/cdn/assets/BYRVuU6FUEX6XBFW.js +0 -10
- package/cdn/assets/Bs6fth_bBoNrYDwE.js +0 -21
- package/cdn/assets/BzlAT8jiYfNV3kGy.js +0 -820
- package/cdn/assets/C0U_bX9Hj97edVC9.js +0 -10
- package/cdn/assets/CC8aO_pPT-tkJK_H.js +0 -10
- package/cdn/assets/CG-YuIoWsi12_nu9.js +0 -22
- package/cdn/assets/CGxu5NKxrEXE8QIe.js +0 -24
- package/cdn/assets/CJOmvmuvywU33q7C.js +0 -3934
- package/cdn/assets/CbTDhJiJfpR6Btxp.js +0 -10
- package/cdn/assets/CsUNORBKkJ7f3diG.js +0 -10
- package/cdn/assets/DBq5E3hmvVO5ss1V.js +0 -5582
- package/cdn/assets/DT09m4FGTu5N2LZJ.js +0 -10
- package/cdn/assets/DUgyehn3re1zGQT5.js +0 -10
- package/cdn/assets/DWOT4LkGXRN4FrJI.js +0 -10
- package/cdn/assets/Det1P4Jrl9aZHFGe.js +0 -472
- package/cdn/assets/DjHCn_TmfObC_aJ1.js +0 -46
- package/cdn/assets/Dt3qIbvMvgQhNgeR.js +0 -1575
- package/cdn/assets/Dx1J8HBJdbrROP0v.js +0 -10
- package/cdn/assets/F7oUe3nLrtaRYTas.js +0 -10
- package/cdn/assets/L5HOBW-m9BjZTUuw.js +0 -10
- package/cdn/assets/U_ihCP2tbaRnqD2g.js +0 -48366
- package/cdn/assets/XL9-bWRsLjEvW1Y0.js +0 -10
- package/cdn/assets/Z4Ov3rzhXnezd-gU.js +0 -29
- package/cdn/assets/dR_uwa9znq6_hDmB.js +0 -49
- package/cdn/assets/gX1gbnkwbpalR57F.js +0 -12
- package/cdn/assets/kagl0zcUDaK1IX_X.js +0 -10
- package/cdn/assets/t7CffsKJY64LMXgS.js +0 -10
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import { jsx as E, jsxs as Ae } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { d as Qt, g as eo, u as to, k as oo, l as no, aT as Z, n as ro, p as io, aU as lo, aV as so, b as Y, aA as ao, aB as co, av as St, Q as uo, B as de, a as ho, aF as fo, a0 as po, a2 as go, ay as ue, at as mo, au as vo, Z as _o, aW as So, aX as yo, aY as Ee, aZ as wo, a_ as Co, a$ as xo, L as _e, b0 as Ro, b1 as bo, b2 as He, b3 as To, b4 as U, b5 as zo } from "./CYXzmWJtZn5OJVBF.mjs";
|
|
3
3
|
import * as x from "react";
|
|
4
4
|
import yt, { useState as he, useMemo as Io, useEffect as We, cloneElement as Po } from "react";
|
|
5
|
-
import { f as N } from "./
|
|
5
|
+
import { f as N } from "./CAm14rTtmPL5-rvQ.mjs";
|
|
6
6
|
/**
|
|
7
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
7
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.5
|
|
8
8
|
*
|
|
9
9
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
10
10
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
11
11
|
*/
|
|
12
|
-
const
|
|
12
|
+
const Oo = x.createContext(), ko = x.createContext();
|
|
13
13
|
function Mo(o) {
|
|
14
14
|
return eo("MuiTableCell", o);
|
|
15
15
|
}
|
|
16
16
|
const Lo = Qt("MuiTableCell", ["root", "head", "body", "footer", "sizeSmall", "sizeMedium", "paddingCheckbox", "paddingNone", "alignLeft", "alignCenter", "alignRight", "alignJustify", "stickyHeader"]), Go = oo("td", { name: "MuiTableCell", slot: "Root", overridesResolver: (o, e) => {
|
|
17
17
|
const { ownerState: t } = o;
|
|
18
|
-
return [e.root, e[t.variant], e[`size${
|
|
18
|
+
return [e.root, e[t.variant], e[`size${Z(t.size)}`], t.padding !== "normal" && e[`padding${Z(t.padding)}`], t.align !== "inherit" && e[`align${Z(t.align)}`], t.stickyHeader && e.stickyHeader];
|
|
19
19
|
} })(io(({ theme: o }) => ({ ...o.typography.body2, display: "table-cell", verticalAlign: "inherit", borderBottom: o.vars ? `1px solid ${o.vars.palette.TableCell.border}` : `1px solid
|
|
20
20
|
${o.palette.mode === "light" ? lo(Y(o.palette.divider, 1), 0.88) : so(Y(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", [`&.${Lo.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 } }] }))), De = x.forwardRef(function(o, e) {
|
|
21
|
-
const t = to({ props: o, name: "MuiTableCell" }), { align: n = "inherit", className: r, component: i, padding: l, scope: a, size: s, sortDirection: c, variant: d, ...h } = t, f = x.useContext(
|
|
22
|
-
let
|
|
23
|
-
|
|
24
|
-
let
|
|
25
|
-
|
|
26
|
-
const S = d || u && u.variant, y = { ...t, align: n, component:
|
|
27
|
-
const { classes:
|
|
28
|
-
return ro(P, Mo,
|
|
21
|
+
const t = to({ props: o, name: "MuiTableCell" }), { align: n = "inherit", className: r, component: i, padding: l, scope: a, size: s, sortDirection: c, variant: d, ...h } = t, f = x.useContext(Oo), u = x.useContext(ko), _ = u && u.variant === "head";
|
|
22
|
+
let g;
|
|
23
|
+
g = i || (_ ? "th" : "td");
|
|
24
|
+
let m = a;
|
|
25
|
+
g === "td" ? m = void 0 : !m && _ && (m = "col");
|
|
26
|
+
const S = d || u && u.variant, y = { ...t, align: n, component: g, padding: l || (f && f.padding ? f.padding : "normal"), size: s || (f && f.size ? f.size : "medium"), sortDirection: c, stickyHeader: S === "head" && f && f.stickyHeader, variant: S }, v = ((w) => {
|
|
27
|
+
const { classes: R, variant: b, align: T, padding: I, size: O, stickyHeader: z } = w, P = { root: ["root", b, z && "stickyHeader", T !== "inherit" && `align${Z(T)}`, I !== "normal" && `padding${Z(I)}`, `size${Z(O)}`] };
|
|
28
|
+
return ro(P, Mo, R);
|
|
29
29
|
})(y);
|
|
30
30
|
let C = null;
|
|
31
|
-
return c && (C = c === "asc" ? "ascending" : "descending"), E(Go, { as:
|
|
31
|
+
return c && (C = c === "asc" ? "ascending" : "descending"), E(Go, { as: g, ref: e, className: no(v.root, r), "aria-sort": C, scope: m, ownerState: y, ...h });
|
|
32
32
|
}), Ao = So();
|
|
33
33
|
function Se(o) {
|
|
34
34
|
return o !== "ownerState" && o !== "theme" && o !== "sx" && o !== "as";
|
|
@@ -36,9 +36,9 @@ function Se(o) {
|
|
|
36
36
|
function Eo(o) {
|
|
37
37
|
return o ? (e, t) => t[o] : null;
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function ge(o, e) {
|
|
40
40
|
const t = typeof e == "function" ? e(o) : e;
|
|
41
|
-
if (Array.isArray(t)) return t.flatMap((n) =>
|
|
41
|
+
if (Array.isArray(t)) return t.flatMap((n) => ge(o, n));
|
|
42
42
|
if (Array.isArray(t?.variants)) {
|
|
43
43
|
let n;
|
|
44
44
|
if (t.isProcessed) n = t.style;
|
|
@@ -74,46 +74,46 @@ const Wo = function(o = {}) {
|
|
|
74
74
|
}(a.theme) ? c : a.theme[s] || a.theme;
|
|
75
75
|
}
|
|
76
76
|
return (l, a = {}) => {
|
|
77
|
-
yo(l, (w) => w.filter((
|
|
78
|
-
const { name: s, slot: c, skipVariantsResolver: d, skipSx: h, overridesResolver: f = Eo(Ho(c)), ...u } = a, _ = d !== void 0 ? d : c && c !== "Root" && c !== "root" || !1,
|
|
79
|
-
let
|
|
77
|
+
yo(l, (w) => w.filter((R) => R !== Ee));
|
|
78
|
+
const { name: s, slot: c, skipVariantsResolver: d, skipSx: h, overridesResolver: f = Eo(Ho(c)), ...u } = a, _ = d !== void 0 ? d : c && c !== "Root" && c !== "root" || !1, g = h || !1;
|
|
79
|
+
let m = Se;
|
|
80
80
|
var S;
|
|
81
|
-
c === "Root" || c === "root" ?
|
|
82
|
-
const y = wo(l, { shouldForwardProp:
|
|
81
|
+
c === "Root" || c === "root" ? m = n : c ? m = r : typeof (S = l) == "string" && S.charCodeAt(0) > 96 && (m = void 0);
|
|
82
|
+
const y = wo(l, { shouldForwardProp: m, label: void 0, ...u }), v = (w) => {
|
|
83
83
|
if (w.__emotion_real === w) return w;
|
|
84
|
-
if (typeof w == "function") return function(
|
|
85
|
-
return
|
|
84
|
+
if (typeof w == "function") return function(R) {
|
|
85
|
+
return ge(R, w);
|
|
86
86
|
};
|
|
87
|
-
if (
|
|
88
|
-
const
|
|
89
|
-
const { variants: T, ...I } =
|
|
90
|
-
return
|
|
87
|
+
if (bo(w)) {
|
|
88
|
+
const R = function(b) {
|
|
89
|
+
const { variants: T, ...I } = b, O = { variants: T, style: He(I), isProcessed: !0 };
|
|
90
|
+
return O.style === I || T && T.forEach((z) => {
|
|
91
91
|
typeof z.style != "function" && (z.style = He(z.style));
|
|
92
|
-
}),
|
|
92
|
+
}), O;
|
|
93
93
|
}(w);
|
|
94
|
-
return
|
|
95
|
-
return
|
|
96
|
-
} :
|
|
94
|
+
return R.variants ? function(b) {
|
|
95
|
+
return ge(b, R);
|
|
96
|
+
} : R.style;
|
|
97
97
|
}
|
|
98
98
|
return w;
|
|
99
99
|
}, C = (...w) => {
|
|
100
|
-
const
|
|
101
|
-
if (
|
|
100
|
+
const R = [], b = w.map(v), T = [];
|
|
101
|
+
if (R.push(i), s && f && T.push(function(z) {
|
|
102
102
|
const P = z.theme, M = P.components?.[s]?.styleOverrides;
|
|
103
103
|
if (!M) return null;
|
|
104
104
|
const H = {};
|
|
105
|
-
for (const
|
|
105
|
+
for (const K in M) H[K] = ge(z, M[K]);
|
|
106
106
|
return f(z, H);
|
|
107
107
|
}), s && !_ && T.push(function(z) {
|
|
108
108
|
const P = z.theme, M = P?.components?.[s]?.variants;
|
|
109
109
|
return M ? wt(z, M) : null;
|
|
110
|
-
}),
|
|
111
|
-
const z =
|
|
110
|
+
}), g || T.push(Ee), Array.isArray(b[0])) {
|
|
111
|
+
const z = b.shift(), P = new Array(R.length).fill(""), M = new Array(T.length).fill("");
|
|
112
112
|
let H;
|
|
113
|
-
H = [...P, ...z, ...M], H.raw = [...P, ...z.raw, ...M],
|
|
113
|
+
H = [...P, ...z, ...M], H.raw = [...P, ...z.raw, ...M], R.unshift(H);
|
|
114
114
|
}
|
|
115
|
-
const I = [...
|
|
116
|
-
return l.muiName && (
|
|
115
|
+
const I = [...R, ...b, ...T], O = y(...I);
|
|
116
|
+
return l.muiName && (O.muiName = l.muiName), O;
|
|
117
117
|
};
|
|
118
118
|
return y.withConfig && (C.withConfig = y.withConfig), C;
|
|
119
119
|
};
|
|
@@ -123,8 +123,8 @@ const Wo = function(o = {}) {
|
|
|
123
123
|
function G(o, e) {
|
|
124
124
|
if (!(o instanceof e)) throw new TypeError("Cannot call a class as a function");
|
|
125
125
|
}
|
|
126
|
-
function
|
|
127
|
-
return (
|
|
126
|
+
function J(o) {
|
|
127
|
+
return (J = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
128
128
|
return typeof e;
|
|
129
129
|
} : function(e) {
|
|
130
130
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
@@ -132,16 +132,16 @@ function Z(o) {
|
|
|
132
132
|
}
|
|
133
133
|
function Ct(o) {
|
|
134
134
|
var e = function(t) {
|
|
135
|
-
if (
|
|
135
|
+
if (J(t) != "object" || !t) return t;
|
|
136
136
|
var n = t[Symbol.toPrimitive];
|
|
137
137
|
if (n !== void 0) {
|
|
138
138
|
var r = n.call(t, "string");
|
|
139
|
-
if (
|
|
139
|
+
if (J(r) != "object") return r;
|
|
140
140
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
141
141
|
}
|
|
142
142
|
return String(t);
|
|
143
143
|
}(o);
|
|
144
|
-
return
|
|
144
|
+
return J(e) == "symbol" ? e : e + "";
|
|
145
145
|
}
|
|
146
146
|
function je(o, e) {
|
|
147
147
|
for (var t = 0; t < e.length; t++) {
|
|
@@ -153,15 +153,15 @@ function A(o, e, t) {
|
|
|
153
153
|
return e && je(o.prototype, e), t && je(o, t), Object.defineProperty(o, "prototype", { writable: !1 }), o;
|
|
154
154
|
}
|
|
155
155
|
function W(o, e) {
|
|
156
|
-
if (e && (
|
|
156
|
+
if (e && (J(e) == "object" || typeof e == "function")) return e;
|
|
157
157
|
if (e !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
158
158
|
return function(t) {
|
|
159
159
|
if (t === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
160
160
|
return t;
|
|
161
161
|
}(o);
|
|
162
162
|
}
|
|
163
|
-
function
|
|
164
|
-
return (
|
|
163
|
+
function k(o) {
|
|
164
|
+
return (k = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
165
165
|
return e.__proto__ || Object.getPrototypeOf(e);
|
|
166
166
|
})(o);
|
|
167
167
|
}
|
|
@@ -176,12 +176,12 @@ function xt() {
|
|
|
176
176
|
var o = this.constructor.getDerivedStateFromProps(this.props, this.state);
|
|
177
177
|
o != null && this.setState(o);
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function Rt(o) {
|
|
180
180
|
this.setState(function(e) {
|
|
181
181
|
return this.constructor.getDerivedStateFromProps(o, e) ?? null;
|
|
182
182
|
}.bind(this));
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function bt(o, e) {
|
|
185
185
|
try {
|
|
186
186
|
var t = this.props, n = this.state;
|
|
187
187
|
this.props = o, this.state = e, this.__reactInternalSnapshotFlag = !0, this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(t, n);
|
|
@@ -206,9 +206,9 @@ function ce(o) {
|
|
|
206
206
|
The above lifecycles should be removed. Learn more about this warning here:
|
|
207
207
|
https://fb.me/react-async-component-lifecycle-hooks`);
|
|
208
208
|
}
|
|
209
|
-
if (typeof o.getDerivedStateFromProps == "function" && (e.componentWillMount = xt, e.componentWillReceiveProps =
|
|
209
|
+
if (typeof o.getDerivedStateFromProps == "function" && (e.componentWillMount = xt, e.componentWillReceiveProps = Rt), typeof e.getSnapshotBeforeUpdate == "function") {
|
|
210
210
|
if (typeof e.componentDidUpdate != "function") throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");
|
|
211
|
-
e.componentWillUpdate =
|
|
211
|
+
e.componentWillUpdate = bt;
|
|
212
212
|
var a = e.componentDidUpdate;
|
|
213
213
|
e.componentDidUpdate = function(s, c, d) {
|
|
214
214
|
var h = this.__reactInternalSnapshotFlag ? this.__reactInternalSnapshot : d;
|
|
@@ -248,16 +248,16 @@ function Tt() {
|
|
|
248
248
|
return !!o;
|
|
249
249
|
})();
|
|
250
250
|
}
|
|
251
|
-
xt.__suppressDeprecationWarning = !0,
|
|
251
|
+
xt.__suppressDeprecationWarning = !0, Rt.__suppressDeprecationWarning = !0, bt.__suppressDeprecationWarning = !0;
|
|
252
252
|
var Be = function() {
|
|
253
253
|
function o() {
|
|
254
254
|
var e, t, n, r;
|
|
255
255
|
G(this, o);
|
|
256
256
|
for (var i = arguments.length, l = new Array(i), a = 0; a < i; a++) l[a] = arguments[a];
|
|
257
|
-
return t = this, n = o, r = [].concat(l), n =
|
|
257
|
+
return t = this, n = o, r = [].concat(l), n = k(n), p(e = W(t, Tt() ? 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) {
|
|
258
258
|
var c = e.props, d = c.columnCount, h = c.disabled, f = c.mode, u = c.rowCount;
|
|
259
259
|
if (!h) {
|
|
260
|
-
var _ = e._getScrollState(),
|
|
260
|
+
var _ = e._getScrollState(), g = _.scrollToColumn, m = _.scrollToRow, S = e._getScrollState(), y = S.scrollToColumn, v = S.scrollToRow;
|
|
261
261
|
switch (s.key) {
|
|
262
262
|
case "ArrowDown":
|
|
263
263
|
v = Math.min(f === "cells" ? v + 1 : e._rowStopIndex + 1, u - 1);
|
|
@@ -271,7 +271,7 @@ var Be = function() {
|
|
|
271
271
|
case "ArrowUp":
|
|
272
272
|
v = Math.max(f === "cells" ? v - 1 : e._rowStartIndex - 1, 0);
|
|
273
273
|
}
|
|
274
|
-
y ===
|
|
274
|
+
y === g && v === m || (s.preventDefault(), e._updateScrollState({ scrollToColumn: y, scrollToRow: v }));
|
|
275
275
|
}
|
|
276
276
|
}), p(e, "_onSectionRendered", function(s) {
|
|
277
277
|
var c = s.columnStartIndex, d = s.columnStopIndex, h = s.rowStartIndex, f = s.rowStopIndex;
|
|
@@ -306,43 +306,43 @@ function zt(o, e) {
|
|
|
306
306
|
return v(C);
|
|
307
307
|
};
|
|
308
308
|
}(), a = function(v) {
|
|
309
|
-
var C = v.__resizeTriggers__, w = C.firstElementChild,
|
|
310
|
-
|
|
309
|
+
var C = v.__resizeTriggers__, w = C.firstElementChild, R = C.lastElementChild, b = w.firstElementChild;
|
|
310
|
+
R.scrollLeft = R.scrollWidth, R.scrollTop = R.scrollHeight, b.style.width = w.offsetWidth + 1 + "px", b.style.height = w.offsetHeight + 1 + "px", w.scrollLeft = w.scrollWidth, w.scrollTop = w.scrollHeight;
|
|
311
311
|
}, s = function(v) {
|
|
312
312
|
if (!(v.target.className && typeof v.target.className.indexOf == "function" && v.target.className.indexOf("contract-trigger") < 0 && v.target.className.indexOf("expand-trigger") < 0)) {
|
|
313
313
|
var C = this;
|
|
314
314
|
a(this), this.__resizeRAF__ && l(this.__resizeRAF__), this.__resizeRAF__ = i(function() {
|
|
315
315
|
var w;
|
|
316
|
-
((w = C).offsetWidth != w.__resizeLast__.width || w.offsetHeight != w.__resizeLast__.height) && (C.__resizeLast__.width = C.offsetWidth, C.__resizeLast__.height = C.offsetHeight, C.__resizeListeners__.forEach(function(
|
|
317
|
-
|
|
316
|
+
((w = C).offsetWidth != w.__resizeLast__.width || w.offsetHeight != w.__resizeLast__.height) && (C.__resizeLast__.width = C.offsetWidth, C.__resizeLast__.height = C.offsetHeight, C.__resizeListeners__.forEach(function(R) {
|
|
317
|
+
R.call(C, v);
|
|
318
318
|
}));
|
|
319
319
|
});
|
|
320
320
|
}
|
|
321
321
|
}, c = !1, d = "", h = "animationstart", f = "Webkit Moz O ms".split(" "), u = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "), _ = t.document.createElement("fakeelement");
|
|
322
322
|
if (_.style.animationName !== void 0 && (c = !0), c === !1) {
|
|
323
|
-
for (var
|
|
324
|
-
d = "-" + f[
|
|
323
|
+
for (var g = 0; g < f.length; g++) if (_.style[f[g] + "AnimationName"] !== void 0) {
|
|
324
|
+
d = "-" + f[g].toLowerCase() + "-", h = u[g], c = !0;
|
|
325
325
|
break;
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
|
-
var
|
|
328
|
+
var m = "resizeanim", S = "@" + d + "keyframes " + m + " { from { opacity: 0; } to { opacity: 0; } } ", y = d + "animation: 1ms " + m + "; ";
|
|
329
329
|
}
|
|
330
330
|
return { addResizeListener: function(v, C) {
|
|
331
331
|
if (r) v.attachEvent("onresize", C);
|
|
332
332
|
else {
|
|
333
333
|
if (!v.__resizeTriggers__) {
|
|
334
|
-
var w = v.ownerDocument,
|
|
335
|
-
|
|
334
|
+
var w = v.ownerDocument, R = t.getComputedStyle(v);
|
|
335
|
+
R && R.position == "static" && (v.style.position = "relative"), function(I) {
|
|
336
336
|
if (!I.getElementById("detectElementResize")) {
|
|
337
|
-
var
|
|
338
|
-
P.id = "detectElementResize", P.type = "text/css", o != null && P.setAttribute("nonce", o), P.styleSheet ? P.styleSheet.cssText =
|
|
337
|
+
var O = (S || "") + ".resize-triggers { " + (y || "") + '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%; }', z = I.head || I.getElementsByTagName("head")[0], P = I.createElement("style");
|
|
338
|
+
P.id = "detectElementResize", P.type = "text/css", o != null && P.setAttribute("nonce", o), P.styleSheet ? P.styleSheet.cssText = O : P.appendChild(I.createTextNode(O)), z.appendChild(P);
|
|
339
339
|
}
|
|
340
340
|
}(w), v.__resizeLast__ = {}, v.__resizeListeners__ = [], (v.__resizeTriggers__ = w.createElement("div")).className = "resize-triggers";
|
|
341
|
-
var
|
|
342
|
-
|
|
341
|
+
var b = w.createElement("div");
|
|
342
|
+
b.className = "expand-trigger", b.appendChild(w.createElement("div"));
|
|
343
343
|
var T = w.createElement("div");
|
|
344
|
-
T.className = "contract-trigger", v.__resizeTriggers__.appendChild(
|
|
345
|
-
I.animationName ==
|
|
344
|
+
T.className = "contract-trigger", v.__resizeTriggers__.appendChild(b), v.__resizeTriggers__.appendChild(T), v.appendChild(v.__resizeTriggers__), a(v), v.addEventListener("scroll", s, !0), h && (v.__resizeTriggers__.__animationListener__ = function(I) {
|
|
345
|
+
I.animationName == m && a(v);
|
|
346
346
|
}, v.__resizeTriggers__.addEventListener(h, v.__resizeTriggers__.__animationListener__));
|
|
347
347
|
}
|
|
348
348
|
v.__resizeListeners__.push(C);
|
|
@@ -395,11 +395,11 @@ var Pt = function() {
|
|
|
395
395
|
var e, t, n, r;
|
|
396
396
|
G(this, o);
|
|
397
397
|
for (var i = arguments.length, l = new Array(i), a = 0; a < i; a++) l[a] = arguments[a];
|
|
398
|
-
return t = this, n = o, r = [].concat(l), n =
|
|
398
|
+
return t = this, n = o, r = [].concat(l), n = k(n), p(e = W(t, It() ? 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() {
|
|
399
399
|
var s = e.props, c = s.disableHeight, d = s.disableWidth, h = s.onResize;
|
|
400
400
|
if (e._parentNode) {
|
|
401
|
-
var f = e._parentNode.offsetHeight || 0, u = e._parentNode.offsetWidth || 0, _ = (e._window || window).getComputedStyle(e._parentNode) || {},
|
|
402
|
-
(!c && e.state.height !== v || !d && e.state.width !== C) && (e.setState({ height: f - S - y, width: u -
|
|
401
|
+
var f = e._parentNode.offsetHeight || 0, u = e._parentNode.offsetWidth || 0, _ = (e._window || window).getComputedStyle(e._parentNode) || {}, g = parseInt(_.paddingLeft, 10) || 0, m = parseInt(_.paddingRight, 10) || 0, S = parseInt(_.paddingTop, 10) || 0, y = parseInt(_.paddingBottom, 10) || 0, v = f - S - y, C = u - g - m;
|
|
402
|
+
(!c && e.state.height !== v || !d && e.state.width !== C) && (e.setState({ height: f - S - y, width: u - g - m }), h({ height: f, width: u }));
|
|
403
403
|
}
|
|
404
404
|
}), p(e, "_setRef", function(s) {
|
|
405
405
|
e._autoSizer = s;
|
|
@@ -415,13 +415,13 @@ var Pt = function() {
|
|
|
415
415
|
return r || (d.height = 0, h.height = s), i || (d.width = 0, h.width = c), x.createElement("div", { className: n, ref: this._setRef, style: Ve(Ve({}, d), l) }, t(h));
|
|
416
416
|
} }]);
|
|
417
417
|
}();
|
|
418
|
-
function
|
|
418
|
+
function Ot() {
|
|
419
419
|
try {
|
|
420
420
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
421
421
|
}));
|
|
422
422
|
} catch {
|
|
423
423
|
}
|
|
424
|
-
return (
|
|
424
|
+
return (Ot = function() {
|
|
425
425
|
return !!o;
|
|
426
426
|
})();
|
|
427
427
|
}
|
|
@@ -432,9 +432,9 @@ var Do = function() {
|
|
|
432
432
|
var e, t, n, r;
|
|
433
433
|
G(this, o);
|
|
434
434
|
for (var i = arguments.length, l = new Array(i), a = 0; a < i; a++) l[a] = arguments[a];
|
|
435
|
-
return t = this, n = o, r = [].concat(l), n =
|
|
436
|
-
var s = e.props, c = s.cache, d = s.columnIndex, h = d === void 0 ? 0 : d, f = s.parent, u = s.rowIndex, _ = u === void 0 ? e.props.index || 0 : u,
|
|
437
|
-
|
|
435
|
+
return t = this, n = o, r = [].concat(l), n = k(n), p(e = W(t, Ot() ? Reflect.construct(n, r || [], k(t).constructor) : n.apply(t, r)), "_child", x.createRef()), p(e, "_measure", function() {
|
|
436
|
+
var s = e.props, c = s.cache, d = s.columnIndex, h = d === void 0 ? 0 : d, f = s.parent, u = s.rowIndex, _ = u === void 0 ? e.props.index || 0 : u, g = e._getCellMeasurements(), m = g.height, S = g.width;
|
|
437
|
+
m === c.getHeight(_, h) && S === c.getWidth(_, h) || (c.set(_, h, S, m), f && typeof f.recomputeGridSize == "function" && f.recomputeGridSize({ columnIndex: h, rowIndex: _ }));
|
|
438
438
|
}), p(e, "_registerChild", function(s) {
|
|
439
439
|
!s || s instanceof Element || console.warn("CellMeasurer registerChild expects to be passed Element or null"), e._child.current = s, s && e._maybeMeasureCell();
|
|
440
440
|
}), e;
|
|
@@ -481,7 +481,7 @@ function Q() {
|
|
|
481
481
|
p(Do, "__internalCellMeasurerFlag", !1);
|
|
482
482
|
const jo = !(typeof window > "u" || !window.document || !window.document.createElement);
|
|
483
483
|
var fe;
|
|
484
|
-
function
|
|
484
|
+
function Re(o) {
|
|
485
485
|
if ((!fe && fe !== 0 || o) && jo) {
|
|
486
486
|
var e = document.createElement("div");
|
|
487
487
|
e.style.position = "absolute", e.style.top = "-9999px", e.style.width = "50px", e.style.height = "50px", e.style.overflow = "scroll", document.body.appendChild(e), fe = e.offsetWidth - e.clientWidth, document.body.removeChild(e);
|
|
@@ -498,7 +498,7 @@ function $e(o, e) {
|
|
|
498
498
|
}
|
|
499
499
|
return t;
|
|
500
500
|
}
|
|
501
|
-
function
|
|
501
|
+
function qe(o) {
|
|
502
502
|
for (var e = 1; e < arguments.length; e++) {
|
|
503
503
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
504
504
|
e % 2 ? $e(Object(t), !0).forEach(function(n) {
|
|
@@ -509,49 +509,49 @@ function Ke(o) {
|
|
|
509
509
|
}
|
|
510
510
|
return o;
|
|
511
511
|
}
|
|
512
|
-
function
|
|
512
|
+
function kt() {
|
|
513
513
|
try {
|
|
514
514
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
515
515
|
}));
|
|
516
516
|
} catch {
|
|
517
517
|
}
|
|
518
|
-
return (
|
|
518
|
+
return (kt = function() {
|
|
519
519
|
return !!o;
|
|
520
520
|
})();
|
|
521
521
|
}
|
|
522
|
-
var te = "requested",
|
|
522
|
+
var te = "requested", me = function() {
|
|
523
523
|
function o() {
|
|
524
524
|
var e, t, n, r;
|
|
525
525
|
G(this, o);
|
|
526
526
|
for (var i = arguments.length, l = new Array(i), a = 0; a < i; a++) l[a] = arguments[a];
|
|
527
|
-
return t = this, n = o, r = [].concat(l), n =
|
|
527
|
+
return t = this, n = o, r = [].concat(l), n = k(n), p(e = W(t, kt() ? 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", Q()), p(e, "_onScrollMemoizer", Q(!1)), p(e, "_invokeOnSectionRenderedHelper", function() {
|
|
528
528
|
var s = e.props, c = s.cellLayoutManager, d = s.onSectionRendered;
|
|
529
529
|
e._onSectionRenderedMemoizer({ callback: d, indices: { indices: c.getLastRenderedIndices() } });
|
|
530
530
|
}), p(e, "_setScrollingContainerRef", function(s) {
|
|
531
531
|
e._scrollingContainer = s;
|
|
532
532
|
}), p(e, "_updateScrollPositionForScrollToCell", function() {
|
|
533
|
-
var s = e.props, c = s.cellLayoutManager, d = s.height, h = s.scrollToAlignment, f = s.scrollToCell, u = s.width, _ = e.state,
|
|
533
|
+
var s = e.props, c = s.cellLayoutManager, d = s.height, h = s.scrollToAlignment, f = s.scrollToCell, u = s.width, _ = e.state, g = _.scrollLeft, m = _.scrollTop;
|
|
534
534
|
if (f >= 0) {
|
|
535
|
-
var S = c.getScrollPositionForCell({ align: h, cellIndex: f, height: d, scrollLeft:
|
|
536
|
-
S.scrollLeft ===
|
|
535
|
+
var S = c.getScrollPositionForCell({ align: h, cellIndex: f, height: d, scrollLeft: g, scrollTop: m, width: u });
|
|
536
|
+
S.scrollLeft === g && S.scrollTop === m || e._setScrollPosition(S);
|
|
537
537
|
}
|
|
538
538
|
}), p(e, "_onScroll", function(s) {
|
|
539
539
|
if (s.target === e._scrollingContainer) {
|
|
540
540
|
e._enablePointerEventsAfterDelay();
|
|
541
|
-
var c = e.props, d = c.cellLayoutManager, h = c.height, f = c.isScrollingChange, u = c.width, _ = e._scrollbarSize,
|
|
541
|
+
var c = e.props, d = c.cellLayoutManager, h = c.height, f = c.isScrollingChange, u = c.width, _ = e._scrollbarSize, g = d.getTotalSize(), m = g.height, S = g.width, y = Math.max(0, Math.min(S - u + _, s.target.scrollLeft)), v = Math.max(0, Math.min(m - h + _, s.target.scrollTop));
|
|
542
542
|
if (e.state.scrollLeft !== y || e.state.scrollTop !== v) {
|
|
543
543
|
var C = s.cancelable ? "observed" : te;
|
|
544
544
|
e.state.isScrolling || f(!0), e.setState({ isScrolling: !0, scrollLeft: y, scrollPositionChangeReason: C, scrollTop: v });
|
|
545
545
|
}
|
|
546
|
-
e._invokeOnScrollMemoizer({ scrollLeft: y, scrollTop: v, totalWidth: S, totalHeight:
|
|
546
|
+
e._invokeOnScrollMemoizer({ scrollLeft: y, scrollTop: v, totalWidth: S, totalHeight: m });
|
|
547
547
|
}
|
|
548
|
-
}), e._scrollbarSize =
|
|
548
|
+
}), e._scrollbarSize = Re(), e._scrollbarSize === void 0 ? (e._scrollbarSizeMeasured = !1, e._scrollbarSize = 0) : e._scrollbarSizeMeasured = !0, e;
|
|
549
549
|
}
|
|
550
550
|
return D(o, x.PureComponent), A(o, [{ key: "recomputeCellSizesAndPositions", value: function() {
|
|
551
551
|
this._calculateSizeAndPositionDataOnNextUpdate = !0, this.forceUpdate();
|
|
552
552
|
} }, { key: "componentDidMount", value: function() {
|
|
553
553
|
var e = this.props, t = e.cellLayoutManager, n = e.scrollLeft, r = e.scrollToCell, i = e.scrollTop;
|
|
554
|
-
this._scrollbarSizeMeasured || (this._scrollbarSize =
|
|
554
|
+
this._scrollbarSizeMeasured || (this._scrollbarSize = Re(), this._scrollbarSizeMeasured = !0, this.setState({})), r >= 0 ? this._updateScrollPositionForScrollToCell() : (n >= 0 || i >= 0) && this._setScrollPosition({ scrollLeft: n, scrollTop: i }), this._invokeOnSectionRenderedHelper();
|
|
555
555
|
var l = t.getTotalSize(), a = l.height, s = l.width;
|
|
556
556
|
this._invokeOnScrollMemoizer({ scrollLeft: n || 0, scrollTop: i || 0, totalHeight: a, totalWidth: s });
|
|
557
557
|
} }, { key: "componentDidUpdate", value: function(e, t) {
|
|
@@ -560,10 +560,10 @@ var te = "requested", ge = function() {
|
|
|
560
560
|
} }, { key: "componentWillUnmount", value: function() {
|
|
561
561
|
this._disablePointerEventsTimeoutId && clearTimeout(this._disablePointerEventsTimeoutId);
|
|
562
562
|
} }, { key: "render", value: function() {
|
|
563
|
-
var e = this.props, t = e.autoHeight, n = e.cellCount, r = e.cellLayoutManager, i = e.className, l = e.height, a = e.horizontalOverscanSize, s = e.id, c = e.noContentRenderer, d = e.style, h = e.verticalOverscanSize, f = e.width, u = this.state, _ = u.isScrolling,
|
|
563
|
+
var e = this.props, t = e.autoHeight, n = e.cellCount, r = e.cellLayoutManager, i = e.className, l = e.height, a = e.horizontalOverscanSize, s = e.id, c = e.noContentRenderer, d = e.style, h = e.verticalOverscanSize, f = e.width, u = this.state, _ = u.isScrolling, g = u.scrollLeft, m = u.scrollTop;
|
|
564
564
|
(this._lastRenderedCellCount !== n || this._lastRenderedCellLayoutManager !== r || this._calculateSizeAndPositionDataOnNextUpdate) && (this._lastRenderedCellCount = n, this._lastRenderedCellLayoutManager = r, this._calculateSizeAndPositionDataOnNextUpdate = !1, r.calculateSizeAndPositionData());
|
|
565
|
-
var S = r.getTotalSize(), y = S.height, v = S.width, C = Math.max(0,
|
|
566
|
-
return I.overflowX = v +
|
|
565
|
+
var S = r.getTotalSize(), y = S.height, v = S.width, C = Math.max(0, g - a), w = Math.max(0, m - h), R = Math.min(v, g + f + a), b = Math.min(y, m + l + h), T = l > 0 && f > 0 ? r.cellRenderers({ height: b - w, isScrolling: _, width: R - C, x: C, y: w }) : [], I = { boxSizing: "border-box", direction: "ltr", height: t ? "auto" : l, position: "relative", WebkitOverflowScrolling: "touch", width: f, willChange: "transform" }, O = y > l ? this._scrollbarSize : 0, z = v > f ? this._scrollbarSize : 0;
|
|
566
|
+
return I.overflowX = v + O <= f ? "hidden" : "auto", I.overflowY = y + z <= l ? "hidden" : "auto", x.createElement("div", { ref: this._setScrollingContainerRef, "aria-label": this.props["aria-label"], className: N("ReactVirtualized__Collection", i), id: s, onScroll: this._onScroll, role: "grid", style: qe(qe({}, I), d), tabIndex: 0 }, n > 0 && x.createElement("div", { className: "ReactVirtualized__Collection__innerScrollContainer", style: { height: y, maxHeight: y, maxWidth: v, overflow: "hidden", pointerEvents: _ ? "none" : "", width: v } }, T), n === 0 && c());
|
|
567
567
|
} }, { key: "_enablePointerEventsAfterDelay", value: function() {
|
|
568
568
|
var e = this;
|
|
569
569
|
this._disablePointerEventsTimeoutId && clearTimeout(this._disablePointerEventsTimeoutId), this._disablePointerEventsTimeoutId = setTimeout(function() {
|
|
@@ -582,13 +582,13 @@ var te = "requested", ge = function() {
|
|
|
582
582
|
return e.cellCount !== 0 || t.scrollLeft === 0 && t.scrollTop === 0 ? e.scrollLeft !== t.scrollLeft || e.scrollTop !== t.scrollTop ? { scrollLeft: e.scrollLeft != null ? e.scrollLeft : t.scrollLeft, scrollTop: e.scrollTop != null ? e.scrollTop : t.scrollTop, scrollPositionChangeReason: te } : null : { scrollLeft: 0, scrollTop: 0, scrollPositionChangeReason: te };
|
|
583
583
|
} }]);
|
|
584
584
|
}();
|
|
585
|
-
p(
|
|
585
|
+
p(me, "defaultProps", { "aria-label": "grid", horizontalOverscanSize: 0, noContentRenderer: function() {
|
|
586
586
|
return null;
|
|
587
587
|
}, onScroll: function() {
|
|
588
588
|
return null;
|
|
589
589
|
}, onSectionRendered: function() {
|
|
590
590
|
return null;
|
|
591
|
-
}, scrollToAlignment: "auto", scrollToCell: -1, style: {}, verticalOverscanSize: 0 }),
|
|
591
|
+
}, scrollToAlignment: "auto", scrollToCell: -1, style: {}, verticalOverscanSize: 0 }), me.propTypes = {}, ce(me);
|
|
592
592
|
var Fo = A(function o(e) {
|
|
593
593
|
var t = e.height, n = e.width, r = e.x, i = e.y;
|
|
594
594
|
G(this, o), this.height = t, this.width = n, this.x = r, this.y = i, this._indexMap = {}, this._indices = [];
|
|
@@ -633,7 +633,7 @@ var Fo = A(function o(e) {
|
|
|
633
633
|
return n.addCellIndex({ index: t });
|
|
634
634
|
});
|
|
635
635
|
} }]);
|
|
636
|
-
function
|
|
636
|
+
function Ke(o) {
|
|
637
637
|
var e = o.align, t = e === void 0 ? "auto" : e, n = o.cellOffset, r = o.cellSize, i = o.containerSize, l = o.currentOffset, a = n, s = a - i + r;
|
|
638
638
|
switch (t) {
|
|
639
639
|
case "start":
|
|
@@ -659,7 +659,7 @@ function Mt() {
|
|
|
659
659
|
var Xe = function() {
|
|
660
660
|
function o(e, t) {
|
|
661
661
|
var n, r, i, l;
|
|
662
|
-
return G(this, o), r = this, l = [e, t], i =
|
|
662
|
+
return G(this, o), r = this, l = [e, t], i = k(i = o), (n = W(r, Mt() ? Reflect.construct(i, l || [], k(r).constructor) : i.apply(r, l)))._cellMetadata = [], n._lastRenderedCellIndices = [], n._cellCache = [], n._isScrollingChange = n._isScrollingChange.bind(n), n._setCollectionViewRef = n._setCollectionViewRef.bind(n), n;
|
|
663
663
|
}
|
|
664
664
|
return D(o, x.PureComponent), A(o, [{ key: "forceUpdate", value: function() {
|
|
665
665
|
this._collectionView !== void 0 && this._collectionView.forceUpdate();
|
|
@@ -669,7 +669,7 @@ var Xe = function() {
|
|
|
669
669
|
var e = U({}, (function(t) {
|
|
670
670
|
if (t == null) throw new TypeError("Cannot destructure " + t);
|
|
671
671
|
}(this.props), this.props));
|
|
672
|
-
return x.createElement(
|
|
672
|
+
return x.createElement(me, U({ cellLayoutManager: this, isScrollingChange: this._isScrollingChange, ref: this._setCollectionViewRef }, e));
|
|
673
673
|
} }, { key: "calculateSizeAndPositionData", value: function() {
|
|
674
674
|
var e = this.props, t = function(n) {
|
|
675
675
|
for (var r = n.cellCount, i = n.cellSizeAndPositionGetter, l = [], a = new No(n.sectionSize), s = 0, c = 0, d = 0; d < r; d++) {
|
|
@@ -687,7 +687,7 @@ var Xe = function() {
|
|
|
687
687
|
var t = e.align, n = e.cellIndex, r = e.height, i = e.scrollLeft, l = e.scrollTop, a = e.width, s = this.props.cellCount;
|
|
688
688
|
if (n >= 0 && n < s) {
|
|
689
689
|
var c = this._cellMetadata[n];
|
|
690
|
-
i =
|
|
690
|
+
i = Ke({ align: t, cellOffset: c.x, cellSize: c.width, containerSize: a, currentOffset: i }), l = Ke({ align: t, cellOffset: c.y, cellSize: c.height, containerSize: r, currentOffset: l });
|
|
691
691
|
}
|
|
692
692
|
return { scrollLeft: i, scrollTop: l };
|
|
693
693
|
} }, { key: "getTotalSize", value: function() {
|
|
@@ -738,7 +738,7 @@ p(Xe, "defaultProps", { "aria-label": "grid", cellGroupRenderer: function(o) {
|
|
|
738
738
|
} }), Xe.propTypes = {}, function() {
|
|
739
739
|
function o(e, t) {
|
|
740
740
|
var n, r, i, l;
|
|
741
|
-
return G(this, o), r = this, l = [e, t], i =
|
|
741
|
+
return G(this, o), r = this, l = [e, t], i = k(i = o), (n = W(r, Lt() ? Reflect.construct(i, l || [], k(r).constructor) : i.apply(r, l)))._registerChild = n._registerChild.bind(n), n;
|
|
742
742
|
}
|
|
743
743
|
return D(o, x.PureComponent), A(o, [{ key: "componentDidUpdate", value: function(e) {
|
|
744
744
|
var t = this.props, n = t.columnMaxWidth, r = t.columnMinWidth, i = t.columnCount, l = t.width;
|
|
@@ -825,7 +825,7 @@ var F, Bo = A(function o(e) {
|
|
|
825
825
|
o = Math.max(0, o);
|
|
826
826
|
var e = this.getSizeAndPositionOfLastMeasuredCell(), t = Math.max(0, this._lastMeasuredIndex);
|
|
827
827
|
return e.offset >= o ? this._binarySearch(t, 0, o) : this._exponentialSearch(t, o);
|
|
828
|
-
} }]), Uo = ["maxScrollSize"],
|
|
828
|
+
} }]), Uo = ["maxScrollSize"], Ze = A(function o(e) {
|
|
829
829
|
var t = e.maxScrollSize, n = t === void 0 ? typeof window < "u" && window.chrome ? 16777100 : 15e5 : t, r = ne(e, Uo);
|
|
830
830
|
G(this, o), p(this, "_cellSizeAndPositionManager", void 0), p(this, "_maxScrollSize", void 0), this._cellSizeAndPositionManager = new Bo(r), this._maxScrollSize = n;
|
|
831
831
|
}, [{ key: "areOffsetsAdjusted", value: function() {
|
|
@@ -871,16 +871,16 @@ var F, Bo = A(function o(e) {
|
|
|
871
871
|
var i = this._getOffsetPercentage({ containerSize: e, offset: t, totalSize: r });
|
|
872
872
|
return Math.round(i * (n - e));
|
|
873
873
|
} }]);
|
|
874
|
-
function
|
|
875
|
-
var e = o.cellSize, t = o.cellSizeAndPositionManager, n = o.previousCellsCount, r = o.previousCellSize, i = o.previousScrollToAlignment, l = o.previousScrollToIndex, a = o.previousSize, s = o.scrollOffset, c = o.scrollToAlignment, d = o.scrollToIndex, h = o.size, f = o.sizeJustIncreasedFromZero, u = o.updateScrollIndexCallback, _ = t.getCellCount(),
|
|
876
|
-
|
|
874
|
+
function Je(o) {
|
|
875
|
+
var e = o.cellSize, t = o.cellSizeAndPositionManager, n = o.previousCellsCount, r = o.previousCellSize, i = o.previousScrollToAlignment, l = o.previousScrollToIndex, a = o.previousSize, s = o.scrollOffset, c = o.scrollToAlignment, d = o.scrollToIndex, h = o.size, f = o.sizeJustIncreasedFromZero, u = o.updateScrollIndexCallback, _ = t.getCellCount(), g = d >= 0 && d < _;
|
|
876
|
+
g && (h !== a || f || !r || typeof e == "number" && e !== r || c !== i || d !== l) ? u(d) : !g && _ > 0 && (h < a || _ < n) && s > t.getTotalSize() - h && u(_ - 1);
|
|
877
877
|
}
|
|
878
878
|
var Vo = (F = typeof window < "u" ? window : typeof self < "u" ? self : {}).requestAnimationFrame || F.webkitRequestAnimationFrame || F.mozRequestAnimationFrame || F.oRequestAnimationFrame || F.msRequestAnimationFrame || function(o) {
|
|
879
879
|
return F.setTimeout(o, 1e3 / 60);
|
|
880
880
|
}, $o = F.cancelAnimationFrame || F.webkitCancelAnimationFrame || F.mozCancelAnimationFrame || F.oCancelAnimationFrame || F.msCancelAnimationFrame || function(o) {
|
|
881
881
|
F.clearTimeout(o);
|
|
882
|
-
}, Qe = Vo,
|
|
883
|
-
return
|
|
882
|
+
}, Qe = Vo, qo = $o, ee = function(o) {
|
|
883
|
+
return qo(o.id);
|
|
884
884
|
}, Me = function(o, e) {
|
|
885
885
|
var t;
|
|
886
886
|
Promise.resolve().then(function() {
|
|
@@ -925,19 +925,19 @@ function Gt() {
|
|
|
925
925
|
var tt = "requested", V = function() {
|
|
926
926
|
function o(e) {
|
|
927
927
|
var t, n, r, i;
|
|
928
|
-
G(this, o), n = this, i = [e], r =
|
|
928
|
+
G(this, o), n = this, i = [e], r = k(r = o), p(t = W(n, Gt() ? Reflect.construct(r, i || [], k(n).constructor) : r.apply(n, i)), "_onGridRenderedMemoizer", Q()), p(t, "_onScrollMemoizer", Q(!1)), p(t, "_deferredInvalidateColumnIndex", null), p(t, "_deferredInvalidateRowIndex", null), p(t, "_recomputeScrollLeftFlag", !1), p(t, "_recomputeScrollTopFlag", !1), p(t, "_horizontalScrollBarSize", 0), p(t, "_verticalScrollBarSize", 0), p(t, "_scrollbarPresenceChanged", !1), p(t, "_scrollingContainer", void 0), p(t, "_childrenToDisplay", void 0), p(t, "_columnStartIndex", void 0), p(t, "_columnStopIndex", void 0), p(t, "_rowStartIndex", void 0), p(t, "_rowStopIndex", void 0), p(t, "_renderedColumnStartIndex", 0), p(t, "_renderedColumnStopIndex", 0), p(t, "_renderedRowStartIndex", 0), p(t, "_renderedRowStopIndex", 0), p(t, "_initialScrollTop", void 0), p(t, "_initialScrollLeft", void 0), p(t, "_disablePointerEventsTimeoutId", void 0), p(t, "_styleCache", {}), p(t, "_cellCache", {}), p(t, "_debounceScrollEndedCallback", function() {
|
|
929
929
|
t._disablePointerEventsTimeoutId = null, t.setState({ isScrolling: !1, needToResetStyleCache: !1 });
|
|
930
930
|
}), p(t, "_invokeOnGridRenderedHelper", function() {
|
|
931
931
|
var s = t.props.onSectionRendered;
|
|
932
932
|
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 } });
|
|
933
933
|
}), p(t, "_setScrollingContainerRef", function(s) {
|
|
934
|
-
t._scrollingContainer = s, typeof t.props.elementRef == "function" ? t.props.elementRef(s) :
|
|
934
|
+
t._scrollingContainer = s, typeof t.props.elementRef == "function" ? t.props.elementRef(s) : J(t.props.elementRef) === "object" && (t.props.elementRef.current = s);
|
|
935
935
|
}), p(t, "_onScroll", function(s) {
|
|
936
936
|
s.target === t._scrollingContainer && t.handleScrollEvent(s.target);
|
|
937
937
|
});
|
|
938
|
-
var l = new
|
|
938
|
+
var l = new Ze({ cellCount: e.columnCount, cellSizeGetter: function(s) {
|
|
939
939
|
return o._wrapSizeGetter(e.columnWidth)(s);
|
|
940
|
-
}, estimatedCellSize: o._getEstimatedColumnSize(e) }), a = new
|
|
940
|
+
}, estimatedCellSize: o._getEstimatedColumnSize(e) }), a = new Ze({ cellCount: e.rowCount, cellSizeGetter: function(s) {
|
|
941
941
|
return o._wrapSizeGetter(e.rowHeight)(s);
|
|
942
942
|
}, estimatedCellSize: o._getEstimatedRowSize(e) });
|
|
943
943
|
return t.state = { instanceProps: { columnSizeAndPositionManager: l, 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;
|
|
@@ -953,12 +953,12 @@ var tt = "requested", V = function() {
|
|
|
953
953
|
var t = e.scrollLeft, n = t === void 0 ? 0 : t, r = e.scrollTop, i = r === void 0 ? 0 : r;
|
|
954
954
|
if (!(i < 0)) {
|
|
955
955
|
this._debounceScrollEnded();
|
|
956
|
-
var l = this.props, a = l.autoHeight, s = l.autoWidth, c = l.height, d = l.width, h = this.state.instanceProps, f = h.scrollbarSize, u = h.rowSizeAndPositionManager.getTotalSize(), _ = h.columnSizeAndPositionManager.getTotalSize(),
|
|
957
|
-
if (this.state.scrollLeft !==
|
|
958
|
-
var S = { isScrolling: !0, scrollDirectionHorizontal:
|
|
959
|
-
a || (S.scrollTop =
|
|
956
|
+
var l = this.props, a = l.autoHeight, s = l.autoWidth, c = l.height, d = l.width, h = this.state.instanceProps, f = h.scrollbarSize, u = h.rowSizeAndPositionManager.getTotalSize(), _ = h.columnSizeAndPositionManager.getTotalSize(), g = Math.min(Math.max(0, _ - d + f), n), m = Math.min(Math.max(0, u - c + f), i);
|
|
957
|
+
if (this.state.scrollLeft !== g || this.state.scrollTop !== m) {
|
|
958
|
+
var S = { isScrolling: !0, scrollDirectionHorizontal: g !== this.state.scrollLeft ? g > this.state.scrollLeft ? 1 : -1 : this.state.scrollDirectionHorizontal, scrollDirectionVertical: m !== this.state.scrollTop ? m > this.state.scrollTop ? 1 : -1 : this.state.scrollDirectionVertical, scrollPositionChangeReason: "observed" };
|
|
959
|
+
a || (S.scrollTop = m), s || (S.scrollLeft = g), S.needToResetStyleCache = !1, this.setState(S);
|
|
960
960
|
}
|
|
961
|
-
this._invokeOnScrollMemoizer({ scrollLeft:
|
|
961
|
+
this._invokeOnScrollMemoizer({ scrollLeft: g, scrollTop: m, totalColumnsWidth: _, totalRowsHeight: u });
|
|
962
962
|
}
|
|
963
963
|
} }, { key: "invalidateCellSizeAfterRender", value: function(e) {
|
|
964
964
|
var t = e.columnIndex, n = e.rowIndex;
|
|
@@ -985,50 +985,50 @@ var tt = "requested", V = function() {
|
|
|
985
985
|
var h = n > 0 && s > 0;
|
|
986
986
|
i >= 0 && h && this._updateScrollLeftForScrollToColumn(), a >= 0 && h && this._updateScrollTopForScrollToRow(), this._invokeOnGridRenderedHelper(), this._invokeOnScrollMemoizer({ scrollLeft: r || 0, scrollTop: l || 0, totalColumnsWidth: c.columnSizeAndPositionManager.getTotalSize(), totalRowsHeight: c.rowSizeAndPositionManager.getTotalSize() }), this._maybeCallOnScrollbarPresenceChange();
|
|
987
987
|
} }, { key: "componentDidUpdate", value: function(e, t) {
|
|
988
|
-
var n = this, r = this.props, i = r.autoHeight, l = r.autoWidth, a = r.columnCount, s = r.height, c = r.rowCount, d = r.scrollToAlignment, h = r.scrollToColumn, f = r.scrollToRow, u = r.width, _ = this.state,
|
|
988
|
+
var n = this, r = this.props, i = r.autoHeight, l = r.autoWidth, a = r.columnCount, s = r.height, c = r.rowCount, d = r.scrollToAlignment, h = r.scrollToColumn, f = r.scrollToRow, u = r.width, _ = this.state, g = _.scrollLeft, m = _.scrollPositionChangeReason, S = _.scrollTop, y = _.instanceProps;
|
|
989
989
|
this._handleInvalidatedGridSize();
|
|
990
990
|
var v = a > 0 && e.columnCount === 0 || c > 0 && e.rowCount === 0;
|
|
991
|
-
|
|
991
|
+
m === tt && (!l && g >= 0 && (g !== this._scrollingContainer.scrollLeft || v) && (this._scrollingContainer.scrollLeft = g), !i && S >= 0 && (S !== this._scrollingContainer.scrollTop || v) && (this._scrollingContainer.scrollTop = S));
|
|
992
992
|
var C = (e.width === 0 || e.height === 0) && s > 0 && u > 0;
|
|
993
|
-
if (this._recomputeScrollLeftFlag ? (this._recomputeScrollLeftFlag = !1, this._updateScrollLeftForScrollToColumn(this.props)) :
|
|
993
|
+
if (this._recomputeScrollLeftFlag ? (this._recomputeScrollLeftFlag = !1, this._updateScrollLeftForScrollToColumn(this.props)) : Je({ cellSizeAndPositionManager: y.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: C, updateScrollIndexCallback: function() {
|
|
994
994
|
return n._updateScrollLeftForScrollToColumn(n.props);
|
|
995
|
-
} }), this._recomputeScrollTopFlag ? (this._recomputeScrollTopFlag = !1, this._updateScrollTopForScrollToRow(this.props)) :
|
|
995
|
+
} }), this._recomputeScrollTopFlag ? (this._recomputeScrollTopFlag = !1, this._updateScrollTopForScrollToRow(this.props)) : Je({ cellSizeAndPositionManager: y.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: C, updateScrollIndexCallback: function() {
|
|
996
996
|
return n._updateScrollTopForScrollToRow(n.props);
|
|
997
|
-
} }), this._invokeOnGridRenderedHelper(),
|
|
998
|
-
var w = y.rowSizeAndPositionManager.getTotalSize(),
|
|
999
|
-
this._invokeOnScrollMemoizer({ scrollLeft:
|
|
997
|
+
} }), this._invokeOnGridRenderedHelper(), g !== t.scrollLeft || S !== t.scrollTop) {
|
|
998
|
+
var w = y.rowSizeAndPositionManager.getTotalSize(), R = y.columnSizeAndPositionManager.getTotalSize();
|
|
999
|
+
this._invokeOnScrollMemoizer({ scrollLeft: g, scrollTop: S, totalColumnsWidth: R, totalRowsHeight: w });
|
|
1000
1000
|
}
|
|
1001
1001
|
this._maybeCallOnScrollbarPresenceChange();
|
|
1002
1002
|
} }, { key: "componentWillUnmount", value: function() {
|
|
1003
1003
|
this._disablePointerEventsTimeoutId && ee(this._disablePointerEventsTimeoutId);
|
|
1004
1004
|
} }, { key: "render", value: function() {
|
|
1005
|
-
var e = this.props, t = e.autoContainerWidth, n = e.autoHeight, r = e.autoWidth, i = e.className, l = e.containerProps, a = e.containerRole, s = e.containerStyle, c = e.height, d = e.id, h = e.noContentRenderer, f = e.role, u = e.style, _ = e.tabIndex,
|
|
1005
|
+
var e = this.props, t = e.autoContainerWidth, n = e.autoHeight, r = e.autoWidth, i = e.className, l = e.containerProps, a = e.containerRole, s = e.containerStyle, c = e.height, d = e.id, h = e.noContentRenderer, f = e.role, u = e.style, _ = e.tabIndex, g = e.width, m = this.state, S = m.instanceProps, y = m.needToResetStyleCache, v = this._isScrolling(), C = { boxSizing: "border-box", direction: "ltr", height: n ? "auto" : c, position: "relative", width: r ? "auto" : g, WebkitOverflowScrolling: "touch", willChange: "transform" };
|
|
1006
1006
|
y && (this._styleCache = {}), this.state.isScrolling || this._resetStyleCache(), this._calculateChildrenToRender(this.props, this.state);
|
|
1007
|
-
var w = S.columnSizeAndPositionManager.getTotalSize(),
|
|
1008
|
-
T === this._horizontalScrollBarSize &&
|
|
1009
|
-
var I = this._childrenToDisplay,
|
|
1010
|
-
return x.createElement("div", U({ ref: this._setScrollingContainerRef }, l, { "aria-label": this.props["aria-label"], "aria-readonly": this.props["aria-readonly"], className: N("ReactVirtualized__Grid", i), id: d, onScroll: this._onScroll, role: f, style: j(j({}, C), u), tabIndex: _ }), I.length > 0 && x.createElement("div", { className: "ReactVirtualized__Grid__innerScrollContainer", role: a, style: j({ width: t ? "auto" : w, height:
|
|
1007
|
+
var w = S.columnSizeAndPositionManager.getTotalSize(), R = S.rowSizeAndPositionManager.getTotalSize(), b = R > c ? S.scrollbarSize : 0, T = w > g ? S.scrollbarSize : 0;
|
|
1008
|
+
T === this._horizontalScrollBarSize && b === this._verticalScrollBarSize || (this._horizontalScrollBarSize = T, this._verticalScrollBarSize = b, this._scrollbarPresenceChanged = !0), C.overflowX = w + b <= g ? "hidden" : "auto", C.overflowY = R + T <= c ? "hidden" : "auto";
|
|
1009
|
+
var I = this._childrenToDisplay, O = I.length === 0 && c > 0 && g > 0;
|
|
1010
|
+
return x.createElement("div", U({ ref: this._setScrollingContainerRef }, l, { "aria-label": this.props["aria-label"], "aria-readonly": this.props["aria-readonly"], className: N("ReactVirtualized__Grid", i), id: d, onScroll: this._onScroll, role: f, style: j(j({}, C), u), tabIndex: _ }), I.length > 0 && x.createElement("div", { className: "ReactVirtualized__Grid__innerScrollContainer", role: a, style: j({ width: t ? "auto" : w, height: R, maxWidth: w, maxHeight: R, overflow: "hidden", pointerEvents: v ? "none" : "", position: "relative" }, s) }, I), O && h());
|
|
1011
1011
|
} }, { key: "_calculateChildrenToRender", value: function() {
|
|
1012
|
-
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, i = e.columnCount, l = e.deferredMeasurementCache, a = e.height, s = e.overscanColumnCount, c = e.overscanIndicesGetter, d = e.overscanRowCount, h = e.rowCount, f = e.width, u = e.isScrollingOptOut, _ = t.scrollDirectionHorizontal,
|
|
1012
|
+
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, i = e.columnCount, l = e.deferredMeasurementCache, a = e.height, s = e.overscanColumnCount, c = e.overscanIndicesGetter, d = e.overscanRowCount, h = e.rowCount, f = e.width, u = e.isScrollingOptOut, _ = t.scrollDirectionHorizontal, g = t.scrollDirectionVertical, m = t.instanceProps, S = this._initialScrollTop > 0 ? this._initialScrollTop : t.scrollTop, y = this._initialScrollLeft > 0 ? this._initialScrollLeft : t.scrollLeft, v = this._isScrolling(e, t);
|
|
1013
1013
|
if (this._childrenToDisplay = [], a > 0 && f > 0) {
|
|
1014
|
-
var C =
|
|
1014
|
+
var C = m.columnSizeAndPositionManager.getVisibleCellRange({ containerSize: f, offset: y }), w = m.rowSizeAndPositionManager.getVisibleCellRange({ containerSize: a, offset: S }), R = m.columnSizeAndPositionManager.getOffsetAdjustment({ containerSize: f, offset: y }), b = m.rowSizeAndPositionManager.getOffsetAdjustment({ containerSize: a, offset: S });
|
|
1015
1015
|
this._renderedColumnStartIndex = C.start, this._renderedColumnStopIndex = C.stop, this._renderedRowStartIndex = w.start, this._renderedRowStopIndex = w.stop;
|
|
1016
|
-
var T = c({ direction: "horizontal", cellCount: i, overscanCellsCount: s, scrollDirection: _, startIndex: typeof C.start == "number" ? C.start : 0, stopIndex: typeof C.stop == "number" ? C.stop : -1 }), I = c({ direction: "vertical", cellCount: h, overscanCellsCount: d, scrollDirection:
|
|
1016
|
+
var T = c({ direction: "horizontal", cellCount: i, overscanCellsCount: s, scrollDirection: _, startIndex: typeof C.start == "number" ? C.start : 0, stopIndex: typeof C.stop == "number" ? C.stop : -1 }), I = c({ direction: "vertical", cellCount: h, overscanCellsCount: d, scrollDirection: g, startIndex: typeof w.start == "number" ? w.start : 0, stopIndex: typeof w.stop == "number" ? w.stop : -1 }), O = T.overscanStartIndex, z = T.overscanStopIndex, P = I.overscanStartIndex, M = I.overscanStopIndex;
|
|
1017
1017
|
if (l) {
|
|
1018
1018
|
if (!l.hasFixedHeight()) {
|
|
1019
1019
|
for (var H = P; H <= M; H++) if (!l.has(H, 0)) {
|
|
1020
|
-
|
|
1020
|
+
O = 0, z = i - 1;
|
|
1021
1021
|
break;
|
|
1022
1022
|
}
|
|
1023
1023
|
}
|
|
1024
1024
|
if (!l.hasFixedWidth()) {
|
|
1025
|
-
for (var
|
|
1025
|
+
for (var K = O; K <= z; K++) if (!l.has(0, K)) {
|
|
1026
1026
|
P = 0, M = h - 1;
|
|
1027
1027
|
break;
|
|
1028
1028
|
}
|
|
1029
1029
|
}
|
|
1030
1030
|
}
|
|
1031
|
-
this._childrenToDisplay = r({ cellCache: this._cellCache, cellRenderer: n, columnSizeAndPositionManager:
|
|
1031
|
+
this._childrenToDisplay = r({ cellCache: this._cellCache, cellRenderer: n, columnSizeAndPositionManager: m.columnSizeAndPositionManager, columnStartIndex: O, columnStopIndex: z, deferredMeasurementCache: l, horizontalOffsetAdjustment: R, isScrolling: v, isScrollingOptOut: u, parent: this, rowSizeAndPositionManager: m.rowSizeAndPositionManager, rowStartIndex: P, rowStopIndex: M, scrollLeft: y, scrollTop: S, styleCache: this._styleCache, verticalOffsetAdjustment: b, visibleColumnIndices: C, visibleRowIndices: w }), this._columnStartIndex = O, this._columnStopIndex = z, this._rowStartIndex = P, this._rowStopIndex = M;
|
|
1032
1032
|
}
|
|
1033
1033
|
} }, { key: "_debounceScrollEnded", value: function() {
|
|
1034
1034
|
var e = this.props.scrollingResetTimeInterval;
|
|
@@ -1124,16 +1124,16 @@ function At(o) {
|
|
|
1124
1124
|
var e = o.cellCount, t = o.overscanCellsCount, n = o.scrollDirection, r = o.startIndex, i = o.stopIndex;
|
|
1125
1125
|
return t = Math.max(1, t), n === 1 ? { overscanStartIndex: Math.max(0, r - 1), overscanStopIndex: Math.min(e - 1, i + t) } : { overscanStartIndex: Math.max(0, r - t), overscanStopIndex: Math.min(e - 1, i + 1) };
|
|
1126
1126
|
}
|
|
1127
|
-
function
|
|
1127
|
+
function be(o, e) {
|
|
1128
1128
|
(e == null || e > o.length) && (e = o.length);
|
|
1129
1129
|
for (var t = 0, n = Array(e); t < e; t++) n[t] = o[t];
|
|
1130
1130
|
return n;
|
|
1131
1131
|
}
|
|
1132
1132
|
function Et(o, e) {
|
|
1133
1133
|
if (o) {
|
|
1134
|
-
if (typeof o == "string") return
|
|
1134
|
+
if (typeof o == "string") return be(o, e);
|
|
1135
1135
|
var t = {}.toString.call(o).slice(8, -1);
|
|
1136
|
-
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) ?
|
|
1136
|
+
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) ? be(o, e) : void 0;
|
|
1137
1137
|
}
|
|
1138
1138
|
}
|
|
1139
1139
|
function Ht() {
|
|
@@ -1147,14 +1147,14 @@ function Ht() {
|
|
|
1147
1147
|
})();
|
|
1148
1148
|
}
|
|
1149
1149
|
p(V, "defaultProps", { "aria-label": "grid", "aria-readonly": !0, autoContainerWidth: !1, autoHeight: !1, autoWidth: !1, cellRangeRenderer: function(o) {
|
|
1150
|
-
for (var e = o.cellCache, t = o.cellRenderer, n = o.columnSizeAndPositionManager, r = o.columnStartIndex, i = o.columnStopIndex, l = o.deferredMeasurementCache, a = o.horizontalOffsetAdjustment, s = o.isScrolling, c = o.isScrollingOptOut, d = o.parent, h = o.rowSizeAndPositionManager, f = o.rowStartIndex, u = o.rowStopIndex, _ = o.styleCache,
|
|
1151
|
-
var T = n.getSizeAndPositionOfCell(
|
|
1152
|
-
C && _[
|
|
1153
|
-
var P = { columnIndex:
|
|
1154
|
-
!c && !s || a ||
|
|
1150
|
+
for (var e = o.cellCache, t = o.cellRenderer, n = o.columnSizeAndPositionManager, r = o.columnStartIndex, i = o.columnStopIndex, l = o.deferredMeasurementCache, a = o.horizontalOffsetAdjustment, s = o.isScrolling, c = o.isScrollingOptOut, d = o.parent, h = o.rowSizeAndPositionManager, f = o.rowStartIndex, u = o.rowStopIndex, _ = o.styleCache, g = o.verticalOffsetAdjustment, m = o.visibleColumnIndices, S = o.visibleRowIndices, y = [], v = n.areOffsetsAdjusted() || h.areOffsetsAdjusted(), C = !s && !v, w = f; w <= u; w++) for (var R = h.getSizeAndPositionOfCell(w), b = r; b <= i; b++) {
|
|
1151
|
+
var T = n.getSizeAndPositionOfCell(b), I = b >= m.start && b <= m.stop && w >= S.start && w <= S.stop, O = "".concat(w, "-").concat(b), z = void 0;
|
|
1152
|
+
C && _[O] ? z = _[O] : l && !l.has(w, b) ? z = { height: "auto", left: 0, position: "absolute", top: 0, width: "auto" } : (z = { height: R.size, left: T.offset + a, position: "absolute", top: R.offset + g, width: T.size }, _[O] = z);
|
|
1153
|
+
var P = { columnIndex: b, isScrolling: s, isVisible: I, key: O, parent: d, rowIndex: w, style: z }, M = void 0;
|
|
1154
|
+
!c && !s || a || g ? M = t(P) : (e[O] || (e[O] = t(P)), M = e[O]), M != null && M !== !1 && (M.props.role || (M = yt.cloneElement(M, { role: "gridcell" })), y.push(M));
|
|
1155
1155
|
}
|
|
1156
1156
|
return y;
|
|
1157
|
-
}, containerRole: "row", containerStyle: {}, estimatedColumnSize: 100, estimatedRowSize: 30, getScrollbarSize:
|
|
1157
|
+
}, containerRole: "row", containerStyle: {}, estimatedColumnSize: 100, estimatedRowSize: 30, getScrollbarSize: Re, noContentRenderer: function() {
|
|
1158
1158
|
return null;
|
|
1159
1159
|
}, onScroll: function() {
|
|
1160
1160
|
}, onScrollbarPresenceChange: function() {
|
|
@@ -1166,7 +1166,7 @@ p(V, "defaultProps", { "aria-label": "grid", "aria-readonly": !0, autoContainerW
|
|
|
1166
1166
|
var ot = function() {
|
|
1167
1167
|
function o(e, t) {
|
|
1168
1168
|
var n, r, i, l;
|
|
1169
|
-
return G(this, o), r = this, l = [e, t], i =
|
|
1169
|
+
return G(this, o), r = this, l = [e, t], i = k(i = o), (n = W(r, Ht() ? Reflect.construct(i, l || [], k(r).constructor) : i.apply(r, l)))._loadMoreRowsMemoizer = Q(), n._onRowsRendered = n._onRowsRendered.bind(n), n._registerChild = n._registerChild.bind(n), n;
|
|
1170
1170
|
}
|
|
1171
1171
|
return D(o, x.PureComponent), A(o, [{ key: "resetLoadMoreRowsCache", value: function(e) {
|
|
1172
1172
|
this._loadMoreRowsMemoizer = Q(), e && this._doStuff(this._lastRenderedStartIndex, this._lastRenderedStopIndex);
|
|
@@ -1189,20 +1189,20 @@ var ot = function() {
|
|
|
1189
1189
|
this._lastRenderedStartIndex = t, this._lastRenderedStopIndex = n, this._doStuff(t, n);
|
|
1190
1190
|
} }, { key: "_doStuff", value: function(e, t) {
|
|
1191
1191
|
var n, r = this, i = this.props, l = i.isRowLoaded, a = i.minimumBatchSize, s = i.rowCount, c = i.threshold, d = function(f) {
|
|
1192
|
-
for (var u = f.isRowLoaded, _ = f.minimumBatchSize,
|
|
1192
|
+
for (var u = f.isRowLoaded, _ = f.minimumBatchSize, g = f.rowCount, m = f.stopIndex, S = [], y = null, v = null, C = f.startIndex; C <= m; C++) u({ index: C }) ? v !== null && (S.push({ startIndex: y, stopIndex: v }), y = v = null) : (v = C, y === null && (y = C));
|
|
1193
1193
|
if (v !== null) {
|
|
1194
|
-
for (var w = Math.min(Math.max(v, y + _ - 1),
|
|
1194
|
+
for (var w = Math.min(Math.max(v, y + _ - 1), g - 1), R = v + 1; R <= w && !u({ index: R }); R++) v = R;
|
|
1195
1195
|
S.push({ startIndex: y, stopIndex: v });
|
|
1196
1196
|
}
|
|
1197
|
-
if (S.length) for (var
|
|
1198
|
-
var T =
|
|
1197
|
+
if (S.length) for (var b = S[0]; b.stopIndex - b.startIndex + 1 < _ && b.startIndex > 0; ) {
|
|
1198
|
+
var T = b.startIndex - 1;
|
|
1199
1199
|
if (u({ index: T })) break;
|
|
1200
|
-
|
|
1200
|
+
b.startIndex = T;
|
|
1201
1201
|
}
|
|
1202
1202
|
return S;
|
|
1203
1203
|
}({ isRowLoaded: l, minimumBatchSize: a, rowCount: s, startIndex: Math.max(0, e - c), stopIndex: Math.min(s - 1, t + c) }), h = (n = []).concat.apply(n, function(f) {
|
|
1204
1204
|
return function(u) {
|
|
1205
|
-
if (Array.isArray(u)) return
|
|
1205
|
+
if (Array.isArray(u)) return be(u);
|
|
1206
1206
|
}(f) || function(u) {
|
|
1207
1207
|
if (typeof Symbol < "u" && u[Symbol.iterator] != null || u["@@iterator"] != null) return Array.from(u);
|
|
1208
1208
|
}(f) || Et(f) || function() {
|
|
@@ -1230,14 +1230,14 @@ function Wt() {
|
|
|
1230
1230
|
})();
|
|
1231
1231
|
}
|
|
1232
1232
|
p(ot, "defaultProps", { minimumBatchSize: 10, rowCount: 0, threshold: 15 }), ot.propTypes = {};
|
|
1233
|
-
var
|
|
1233
|
+
var Ko = function() {
|
|
1234
1234
|
function o() {
|
|
1235
1235
|
var e, t, n, r;
|
|
1236
1236
|
G(this, o);
|
|
1237
1237
|
for (var i = arguments.length, l = new Array(i), a = 0; a < i; a++) l[a] = arguments[a];
|
|
1238
|
-
return t = this, n = o, r = [].concat(l), n =
|
|
1239
|
-
var c = s.parent, d = s.rowIndex, h = s.style, f = s.isScrolling, u = s.isVisible, _ = s.key,
|
|
1240
|
-
return
|
|
1238
|
+
return t = this, n = o, r = [].concat(l), n = k(n), p(e = W(t, Wt() ? Reflect.construct(n, r || [], k(t).constructor) : n.apply(t, r)), "Grid", void 0), p(e, "_cellRenderer", function(s) {
|
|
1239
|
+
var c = s.parent, d = s.rowIndex, h = s.style, f = s.isScrolling, u = s.isVisible, _ = s.key, g = e.props.rowRenderer, m = Object.getOwnPropertyDescriptor(h, "width");
|
|
1240
|
+
return m && m.writable && (h.width = "100%"), g({ index: d, style: h, isScrolling: f, isVisible: u, key: _, parent: c });
|
|
1241
1241
|
}), p(e, "_setRef", function(s) {
|
|
1242
1242
|
e.Grid = s;
|
|
1243
1243
|
}), p(e, "_onScroll", function(s) {
|
|
@@ -1275,7 +1275,7 @@ var qo = function() {
|
|
|
1275
1275
|
return x.createElement(V, U({}, this.props, { autoContainerWidth: !0, cellRenderer: this._cellRenderer, className: l, columnWidth: i, columnCount: 1, noContentRenderer: n, onScroll: this._onScroll, onSectionRendered: this._onSectionRendered, ref: this._setRef, scrollToRow: r }));
|
|
1276
1276
|
} }]);
|
|
1277
1277
|
}();
|
|
1278
|
-
p(
|
|
1278
|
+
p(Ko, "defaultProps", { autoHeight: !1, estimatedRowSize: 30, onScroll: function() {
|
|
1279
1279
|
}, noRowsRenderer: function() {
|
|
1280
1280
|
return null;
|
|
1281
1281
|
}, onRowsRendered: function() {
|
|
@@ -1426,14 +1426,14 @@ var we = A(function o() {
|
|
|
1426
1426
|
}(s) || function(d, h) {
|
|
1427
1427
|
var f = d == null ? null : typeof Symbol < "u" && d[Symbol.iterator] || d["@@iterator"];
|
|
1428
1428
|
if (f != null) {
|
|
1429
|
-
var u, _,
|
|
1429
|
+
var u, _, g, m, S = [], y = !0, v = !1;
|
|
1430
1430
|
try {
|
|
1431
|
-
if (
|
|
1431
|
+
if (g = (f = f.call(d)).next, h !== 0) for (; !(y = (u = g.call(f)).done) && (S.push(u.value), S.length !== h); y = !0) ;
|
|
1432
1432
|
} catch (C) {
|
|
1433
1433
|
v = !0, _ = C;
|
|
1434
1434
|
} finally {
|
|
1435
1435
|
try {
|
|
1436
|
-
if (!y && f.return != null && (
|
|
1436
|
+
if (!y && f.return != null && (m = f.return(), Object(m) !== m)) return;
|
|
1437
1437
|
} finally {
|
|
1438
1438
|
if (v) throw _;
|
|
1439
1439
|
}
|
|
@@ -1506,7 +1506,7 @@ var ct = function() {
|
|
|
1506
1506
|
var e, t, n, r;
|
|
1507
1507
|
G(this, o);
|
|
1508
1508
|
for (var i = arguments.length, l = new Array(i), a = 0; a < i; a++) l[a] = arguments[a];
|
|
1509
|
-
return t = this, n = o, r = [].concat(l), n =
|
|
1509
|
+
return t = this, n = o, r = [].concat(l), n = k(n), p(e = W(t, Ft() ? 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 we()), p(e, "_startIndex", null), p(e, "_startIndexMemoized", null), p(e, "_stopIndex", null), p(e, "_stopIndexMemoized", null), p(e, "_debounceResetIsScrollingCallback", function() {
|
|
1510
1510
|
e.setState({ isScrolling: !1 });
|
|
1511
1511
|
}), p(e, "_setScrollingContainerRef", function(s) {
|
|
1512
1512
|
e._scrollingContainer = s;
|
|
@@ -1530,11 +1530,11 @@ var ct = function() {
|
|
|
1530
1530
|
} }, { key: "componentWillUnmount", value: function() {
|
|
1531
1531
|
this._debounceResetIsScrollingId && ee(this._debounceResetIsScrollingId);
|
|
1532
1532
|
} }, { key: "render", value: function() {
|
|
1533
|
-
var e, t = this, n = this.props, r = n.autoHeight, i = n.cellCount, l = n.cellMeasurerCache, a = n.cellRenderer, s = n.className, c = n.height, d = n.id, h = n.keyMapper, f = n.overscanByPixels, u = n.role, _ = n.style,
|
|
1533
|
+
var e, t = this, n = this.props, r = n.autoHeight, i = n.cellCount, l = n.cellMeasurerCache, a = n.cellRenderer, s = n.className, c = n.height, d = n.id, h = n.keyMapper, f = n.overscanByPixels, u = n.role, _ = n.style, g = n.tabIndex, m = n.width, S = n.rowDirection, y = this.state, v = y.isScrolling, C = y.scrollTop, w = [], R = this._getEstimatedTotalHeight(), b = this._positionCache.shortestColumnSize, T = this._positionCache.count, I = 0;
|
|
1534
1534
|
if (this._positionCache.range(Math.max(0, C - f), c + 2 * f, function(P, M, H) {
|
|
1535
1535
|
e === void 0 ? (I = P, e = P) : (I = Math.min(I, P), e = Math.max(e, P)), w.push(a({ index: P, isScrolling: v, key: h(P), parent: t, style: p(p(p(p({ height: l.getHeight(P) }, S === "ltr" ? "left" : "right", M), "position", "absolute"), "top", H), "width", l.getWidth(P)) }));
|
|
1536
|
-
}),
|
|
1537
|
-
return this._startIndex = I, this._stopIndex = e, x.createElement("div", { ref: this._setScrollingContainerRef, "aria-label": this.props["aria-label"], className: N("ReactVirtualized__Masonry", s), id: d, onScroll: this._onScroll, role: u, style: Yo({ boxSizing: "border-box", direction: "ltr", height: r ? "auto" : c, overflowX: "hidden", overflowY:
|
|
1536
|
+
}), b < C + c + f && T < i) for (var O = Math.min(i - T, Math.ceil((C + c + f - b) / l.defaultHeight * m / l.defaultWidth)), z = T; z < T + O; z++) e = z, w.push(a({ index: z, isScrolling: v, key: h(z), parent: this, style: { width: l.getWidth(z) } }));
|
|
1537
|
+
return this._startIndex = I, this._stopIndex = e, x.createElement("div", { ref: this._setScrollingContainerRef, "aria-label": this.props["aria-label"], className: N("ReactVirtualized__Masonry", s), id: d, onScroll: this._onScroll, role: u, style: Yo({ boxSizing: "border-box", direction: "ltr", height: r ? "auto" : c, overflowX: "hidden", overflowY: R < c ? "hidden" : "auto", position: "relative", width: m, WebkitOverflowScrolling: "touch", willChange: "transform" }, _), tabIndex: g }, x.createElement("div", { className: "ReactVirtualized__Masonry__innerScrollContainer", style: { width: "100%", height: R, maxWidth: "100%", maxHeight: R, overflow: "hidden", pointerEvents: v ? "none" : "", position: "relative" } }, w));
|
|
1538
1538
|
} }, { key: "_checkInvalidateOnUpdate", value: function() {
|
|
1539
1539
|
if (typeof this._invalidateOnUpdateStartIndex == "number") {
|
|
1540
1540
|
var e = this._invalidateOnUpdateStartIndex, t = this._invalidateOnUpdateStopIndex;
|
|
@@ -1599,7 +1599,7 @@ var Ce = A(function o() {
|
|
|
1599
1599
|
return this._cellMeasurerCache.has(o + this._rowIndexOffset, e + this._columnIndexOffset);
|
|
1600
1600
|
} }, { key: "set", value: function(o, e, t, n) {
|
|
1601
1601
|
this._cellMeasurerCache.set(o + this._rowIndexOffset, e + this._columnIndexOffset, t, n);
|
|
1602
|
-
} }]),
|
|
1602
|
+
} }]), Zo = ["rowIndex"], Jo = ["columnIndex", "rowIndex"], Qo = ["columnIndex"], en = ["onScroll", "onSectionRendered", "onScrollbarPresenceChange", "scrollLeft", "scrollToColumn", "scrollTop", "scrollToRow"];
|
|
1603
1603
|
function ut(o, e) {
|
|
1604
1604
|
var t = Object.keys(o);
|
|
1605
1605
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -1634,30 +1634,30 @@ function Nt() {
|
|
|
1634
1634
|
var xe = function() {
|
|
1635
1635
|
function o(e, t) {
|
|
1636
1636
|
var n, r, i, l;
|
|
1637
|
-
G(this, o), r = this, l = [e, t], i =
|
|
1637
|
+
G(this, o), r = this, l = [e, t], i = k(i = o), p(n = W(r, Nt() ? Reflect.construct(i, l || [], k(r).constructor) : i.apply(r, l)), "state", { scrollLeft: 0, scrollTop: 0, scrollbarSize: 0, showHorizontalScrollbar: !1, showVerticalScrollbar: !1 }), p(n, "_deferredInvalidateColumnIndex", null), p(n, "_deferredInvalidateRowIndex", null), p(n, "_bottomLeftGridRef", function(d) {
|
|
1638
1638
|
n._bottomLeftGrid = d;
|
|
1639
1639
|
}), p(n, "_bottomRightGridRef", function(d) {
|
|
1640
1640
|
n._bottomRightGrid = d;
|
|
1641
1641
|
}), p(n, "_cellRendererBottomLeftGrid", function(d) {
|
|
1642
|
-
var h = d.rowIndex, f = ne(d,
|
|
1643
|
-
return h === u.rowCount -
|
|
1642
|
+
var h = d.rowIndex, f = ne(d, Zo), u = n.props, _ = u.cellRenderer, g = u.fixedRowCount;
|
|
1643
|
+
return h === u.rowCount - g ? x.createElement("div", { key: f.key, style: L(L({}, f.style), {}, { height: 20 }) }) : _(L(L({}, f), {}, { parent: n, rowIndex: h + g }));
|
|
1644
1644
|
}), p(n, "_cellRendererBottomRightGrid", function(d) {
|
|
1645
|
-
var h = d.columnIndex, f = d.rowIndex, u = ne(d,
|
|
1646
|
-
return
|
|
1645
|
+
var h = d.columnIndex, f = d.rowIndex, u = ne(d, Jo), _ = n.props, g = _.cellRenderer, m = _.fixedColumnCount, S = _.fixedRowCount;
|
|
1646
|
+
return g(L(L({}, u), {}, { columnIndex: h + m, parent: n, rowIndex: f + S }));
|
|
1647
1647
|
}), p(n, "_cellRendererTopRightGrid", function(d) {
|
|
1648
|
-
var h = d.columnIndex, f = ne(d, Qo), u = n.props, _ = u.cellRenderer,
|
|
1649
|
-
return h ===
|
|
1648
|
+
var h = d.columnIndex, f = ne(d, Qo), u = n.props, _ = u.cellRenderer, g = u.columnCount, m = u.fixedColumnCount;
|
|
1649
|
+
return h === g - m ? x.createElement("div", { key: f.key, style: L(L({}, f.style), {}, { width: 20 }) }) : _(L(L({}, f), {}, { columnIndex: h + m, parent: n }));
|
|
1650
1650
|
}), p(n, "_columnWidthRightGrid", function(d) {
|
|
1651
|
-
var h = d.index, f = n.props, u = f.columnCount, _ = f.fixedColumnCount,
|
|
1652
|
-
return
|
|
1651
|
+
var h = d.index, f = n.props, u = f.columnCount, _ = f.fixedColumnCount, g = f.columnWidth, m = n.state, S = m.scrollbarSize;
|
|
1652
|
+
return m.showHorizontalScrollbar && h === u - _ ? S : typeof g == "function" ? g({ index: h + _ }) : g;
|
|
1653
1653
|
}), p(n, "_onScroll", function(d) {
|
|
1654
1654
|
var h = d.scrollLeft, f = d.scrollTop;
|
|
1655
1655
|
n.setState({ scrollLeft: h, scrollTop: f });
|
|
1656
1656
|
var u = n.props.onScroll;
|
|
1657
1657
|
u && u(d);
|
|
1658
1658
|
}), p(n, "_onScrollbarPresenceChange", function(d) {
|
|
1659
|
-
var h = d.horizontal, f = d.size, u = d.vertical, _ = n.state,
|
|
1660
|
-
if (h !==
|
|
1659
|
+
var h = d.horizontal, f = d.size, u = d.vertical, _ = n.state, g = _.showHorizontalScrollbar, m = _.showVerticalScrollbar;
|
|
1660
|
+
if (h !== g || u !== m) {
|
|
1661
1661
|
n.setState({ scrollbarSize: f, showHorizontalScrollbar: h, showVerticalScrollbar: u });
|
|
1662
1662
|
var S = n.props.onScrollbarPresenceChange;
|
|
1663
1663
|
typeof S == "function" && S({ horizontal: h, size: f, vertical: u });
|
|
@@ -1669,8 +1669,8 @@ var xe = function() {
|
|
|
1669
1669
|
var h = d.scrollTop;
|
|
1670
1670
|
n._onScroll({ scrollTop: h, scrollLeft: n.state.scrollLeft });
|
|
1671
1671
|
}), p(n, "_rowHeightBottomGrid", function(d) {
|
|
1672
|
-
var h = d.index, f = n.props, u = f.fixedRowCount, _ = f.rowCount,
|
|
1673
|
-
return
|
|
1672
|
+
var h = d.index, f = n.props, u = f.fixedRowCount, _ = f.rowCount, g = f.rowHeight, m = n.state, S = m.scrollbarSize;
|
|
1673
|
+
return m.showVerticalScrollbar && h === _ - u ? S : typeof g == "function" ? g({ index: h + u }) : g;
|
|
1674
1674
|
}), p(n, "_topLeftGridRef", function(d) {
|
|
1675
1675
|
n._topLeftGrid = d;
|
|
1676
1676
|
}), p(n, "_topRightGridRef", function(d) {
|
|
@@ -1731,8 +1731,8 @@ var xe = function() {
|
|
|
1731
1731
|
this._deferredInvalidateColumnIndex = null, this._deferredInvalidateRowIndex = null, this.recomputeGridSize({ columnIndex: e, rowIndex: t }), this.forceUpdate();
|
|
1732
1732
|
}
|
|
1733
1733
|
} }, { key: "_maybeCalculateCachedStyles", value: function(e) {
|
|
1734
|
-
var t = this.props, n = t.columnWidth, r = t.enableFixedColumnScroll, i = t.enableFixedRowScroll, l = t.height, a = t.fixedColumnCount, s = t.fixedRowCount, c = t.rowHeight, d = t.style, h = t.styleBottomLeftGrid, f = t.styleBottomRightGrid, u = t.styleTopLeftGrid, _ = t.styleTopRightGrid,
|
|
1735
|
-
(e ||
|
|
1734
|
+
var t = this.props, n = t.columnWidth, r = t.enableFixedColumnScroll, i = t.enableFixedRowScroll, l = t.height, a = t.fixedColumnCount, s = t.fixedRowCount, c = t.rowHeight, d = t.style, h = t.styleBottomLeftGrid, f = t.styleBottomRightGrid, u = t.styleTopLeftGrid, _ = t.styleTopRightGrid, g = t.width, m = e || l !== this._lastRenderedHeight || g !== this._lastRenderedWidth, S = e || n !== this._lastRenderedColumnWidth || a !== this._lastRenderedFixedColumnCount, y = e || s !== this._lastRenderedFixedRowCount || c !== this._lastRenderedRowHeight;
|
|
1735
|
+
(e || m || d !== this._lastRenderedStyle) && (this._containerOuterStyle = L({ height: l, overflow: "visible", width: g }, d)), (e || m || y) && (this._containerTopStyle = { height: this._getTopGridHeight(this.props), position: "relative", width: g }, this._containerBottomStyle = { height: l - 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 || _ !== this._lastRenderedStyleTopRightGrid) && (this._topRightGridStyle = L({ left: this._getLeftGridWidth(this.props), overflowX: i ? "auto" : "hidden", overflowY: "hidden", position: "absolute", top: 0 }, _)), this._lastRenderedColumnWidth = n, this._lastRenderedFixedColumnCount = a, this._lastRenderedFixedRowCount = s, this._lastRenderedHeight = l, this._lastRenderedRowHeight = c, this._lastRenderedStyle = d, this._lastRenderedStyleBottomLeftGrid = h, this._lastRenderedStyleBottomRightGrid = f, this._lastRenderedStyleTopLeftGrid = u, this._lastRenderedStyleTopRightGrid = _, this._lastRenderedWidth = g;
|
|
1736
1736
|
} }, { key: "_prepareForRender", value: function() {
|
|
1737
1737
|
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;
|
|
1738
1738
|
} }, { key: "_renderBottomLeftGrid", value: function(e) {
|
|
@@ -1749,9 +1749,9 @@ var xe = function() {
|
|
|
1749
1749
|
} }, { key: "_renderTopRightGrid", value: function(e) {
|
|
1750
1750
|
var t = e.columnCount, n = e.enableFixedRowScroll, r = e.fixedColumnCount, i = e.fixedRowCount, l = e.scrollLeft, a = e.hideTopRightGridScrollbar, s = this.state, c = s.showHorizontalScrollbar, d = s.scrollbarSize;
|
|
1751
1751
|
if (!i) return null;
|
|
1752
|
-
var h = c ? 1 : 0, f = this._getTopGridHeight(e), u = this._getRightGridWidth(e), _ = c ? d : 0,
|
|
1753
|
-
a && (
|
|
1754
|
-
var S = x.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:
|
|
1752
|
+
var h = c ? 1 : 0, f = this._getTopGridHeight(e), u = this._getRightGridWidth(e), _ = c ? d : 0, g = f, m = this._topRightGridStyle;
|
|
1753
|
+
a && (g = f + _, m = L(L({}, this._topRightGridStyle), {}, { left: 0 }));
|
|
1754
|
+
var S = x.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: i, scrollLeft: l, style: m, tabIndex: null, width: u }));
|
|
1755
1755
|
return a ? x.createElement("div", { className: "TopRightGrid_ScrollWrapper", style: L(L({}, this._topRightGridStyle), {}, { height: f, width: u, overflowX: "hidden" }) }, S) : S;
|
|
1756
1756
|
} }], [{ key: "getDerivedStateFromProps", value: function(e, t) {
|
|
1757
1757
|
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;
|
|
@@ -1770,7 +1770,7 @@ function Bt() {
|
|
|
1770
1770
|
p(xe, "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 }), xe.propTypes = {}, ce(xe), function() {
|
|
1771
1771
|
function o(e, t) {
|
|
1772
1772
|
var n, r, i, l;
|
|
1773
|
-
return G(this, o), r = this, l = [e, t], i =
|
|
1773
|
+
return G(this, o), r = this, l = [e, t], i = k(i = o), (n = W(r, Bt() ? Reflect.construct(i, l || [], k(r).constructor) : i.apply(r, l))).state = { clientHeight: 0, clientWidth: 0, scrollHeight: 0, scrollLeft: 0, scrollTop: 0, scrollWidth: 0 }, n._onScroll = n._onScroll.bind(n), n;
|
|
1774
1774
|
}
|
|
1775
1775
|
return D(o, x.PureComponent), A(o, [{ key: "render", value: function() {
|
|
1776
1776
|
var e = this.props.children, t = this.state, n = t.clientHeight, r = t.clientWidth, i = t.scrollHeight, l = t.scrollLeft, a = t.scrollTop, s = t.scrollWidth;
|
|
@@ -1798,7 +1798,7 @@ function Vt() {
|
|
|
1798
1798
|
Ut.propTypes = {};
|
|
1799
1799
|
var ve = function() {
|
|
1800
1800
|
function o() {
|
|
1801
|
-
return G(this, o), e = this, n = arguments, t =
|
|
1801
|
+
return G(this, o), e = this, n = arguments, t = k(t = o), W(e, Vt() ? Reflect.construct(t, n || [], k(e).constructor) : t.apply(e, n));
|
|
1802
1802
|
var e, t, n;
|
|
1803
1803
|
}
|
|
1804
1804
|
return D(o, x.Component), A(o);
|
|
@@ -1847,7 +1847,7 @@ p(ve, "defaultProps", { cellDataGetter: function(o) {
|
|
|
1847
1847
|
var Pe = function() {
|
|
1848
1848
|
function o(e) {
|
|
1849
1849
|
var t, n, r, i;
|
|
1850
|
-
return G(this, o), n = this, i = [e], r =
|
|
1850
|
+
return G(this, o), n = this, i = [e], r = k(r = o), (t = W(n, $t() ? Reflect.construct(r, i || [], k(n).constructor) : r.apply(n, i))).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;
|
|
1851
1851
|
}
|
|
1852
1852
|
return D(o, x.PureComponent), A(o, [{ key: "forceUpdateGrid", value: function() {
|
|
1853
1853
|
this.Grid && this.Grid.forceUpdate();
|
|
@@ -1882,32 +1882,32 @@ var Pe = function() {
|
|
|
1882
1882
|
} }, { key: "componentDidUpdate", value: function() {
|
|
1883
1883
|
this._setScrollbarWidth();
|
|
1884
1884
|
} }, { key: "render", value: function() {
|
|
1885
|
-
var e = this, t = this.props, n = t.children, r = t.className, i = t.disableHeader, l = t.gridClassName, a = t.gridStyle, s = t.headerHeight, c = t.headerRowRenderer, d = t.height, h = t.id, f = t.noRowsRenderer, u = t.rowClassName, _ = t.rowStyle,
|
|
1886
|
-
return this._cachedColumnStyles = [], x.Children.toArray(n).forEach(function(
|
|
1887
|
-
var T = e._getFlexStyleForColumn(
|
|
1888
|
-
e._cachedColumnStyles[
|
|
1889
|
-
}), x.createElement("div", { "aria-label": this.props["aria-label"], "aria-labelledby": this.props["aria-labelledby"], "aria-colcount": x.Children.toArray(n).length, "aria-rowcount": this.props.rowCount, className: N("ReactVirtualized__Table", r), id: h, role: "grid", style:
|
|
1885
|
+
var e = this, t = this.props, n = t.children, r = t.className, i = t.disableHeader, l = t.gridClassName, a = t.gridStyle, s = t.headerHeight, c = t.headerRowRenderer, d = t.height, h = t.id, f = t.noRowsRenderer, u = t.rowClassName, _ = t.rowStyle, g = t.scrollToIndex, m = t.style, S = t.width, y = this.state.scrollbarWidth, v = i ? d : d - s, C = typeof u == "function" ? u({ index: -1 }) : u, w = typeof _ == "function" ? _({ index: -1 }) : _;
|
|
1886
|
+
return this._cachedColumnStyles = [], x.Children.toArray(n).forEach(function(R, b) {
|
|
1887
|
+
var T = e._getFlexStyleForColumn(R, R.props.style || ve.defaultProps.style);
|
|
1888
|
+
e._cachedColumnStyles[b] = B({ overflow: "hidden" }, T);
|
|
1889
|
+
}), x.createElement("div", { "aria-label": this.props["aria-label"], "aria-labelledby": this.props["aria-labelledby"], "aria-colcount": x.Children.toArray(n).length, "aria-rowcount": this.props.rowCount, className: N("ReactVirtualized__Table", r), id: h, role: "grid", style: m }, !i && c({ className: N("ReactVirtualized__Table__headerRow", C), columns: this._getHeaderColumns(), style: B({ height: s, overflow: "hidden", paddingRight: y, width: S }, w) }), x.createElement(V, U({}, this.props, { elementRef: this._setGridElementRef, "aria-readonly": null, autoContainerWidth: !0, className: N("ReactVirtualized__Table__Grid", l), cellRenderer: this._createRow, columnWidth: S, columnCount: 1, height: v, id: void 0, noContentRenderer: f, onScroll: this._onScroll, onSectionRendered: this._onSectionRendered, ref: this._setRef, role: "rowgroup", scrollbarWidth: y, scrollToRow: g, style: B(B({}, a), {}, { overflowX: "hidden" }) })));
|
|
1890
1890
|
} }, { key: "_createColumn", value: function(e) {
|
|
1891
|
-
var t = e.column, n = e.columnIndex, r = e.isScrolling, i = e.parent, l = e.rowData, a = e.rowIndex, s = this.props.onColumnClick, c = t.props, d = c.cellDataGetter, h = c.cellRenderer, f = c.className, u = c.columnData, _ = c.dataKey,
|
|
1892
|
-
return x.createElement("div", { "aria-colindex": n + 1, "aria-describedby":
|
|
1891
|
+
var t = e.column, n = e.columnIndex, r = e.isScrolling, i = e.parent, l = e.rowData, a = e.rowIndex, s = this.props.onColumnClick, c = t.props, d = c.cellDataGetter, h = c.cellRenderer, f = c.className, u = c.columnData, _ = c.dataKey, g = c.id, m = h({ cellData: d({ columnData: u, dataKey: _, rowData: l }), columnData: u, columnIndex: n, dataKey: _, isScrolling: r, parent: i, rowData: l, rowIndex: a }), S = this._cachedColumnStyles[n], y = typeof m == "string" ? m : null;
|
|
1892
|
+
return x.createElement("div", { "aria-colindex": n + 1, "aria-describedby": g, className: N("ReactVirtualized__Table__rowColumn", f), key: "Row" + a + "-Col" + n, onClick: function(v) {
|
|
1893
1893
|
s && s({ columnData: u, dataKey: _, event: v });
|
|
1894
|
-
}, role: "gridcell", style: S, title: y },
|
|
1894
|
+
}, role: "gridcell", style: S, title: y }, m);
|
|
1895
1895
|
} }, { key: "_createHeader", value: function(e) {
|
|
1896
|
-
var t, n, r, i, l, a = e.column, s = e.index, c = this.props, d = c.headerClassName, h = c.headerStyle, f = c.onHeaderClick, u = c.sort, _ = c.sortBy,
|
|
1896
|
+
var t, n, r, i, l, a = e.column, s = e.index, c = this.props, d = c.headerClassName, h = c.headerStyle, f = c.onHeaderClick, u = c.sort, _ = c.sortBy, g = c.sortDirection, m = a.props, S = m.columnData, y = m.dataKey, v = m.defaultSortDirection, C = m.disableSort, w = m.headerRenderer, R = m.id, b = m.label, T = !C && u, I = N("ReactVirtualized__Table__headerColumn", d, a.props.headerClassName, { ReactVirtualized__Table__sortableHeaderColumn: T }), O = this._getFlexStyleForColumn(a, B(B({}, h), a.props.headerStyle)), z = w({ columnData: S, dataKey: y, disableSort: C, label: b, sortBy: _, sortDirection: g });
|
|
1897
1897
|
if (T || f) {
|
|
1898
|
-
var P = _ !== y ? v :
|
|
1898
|
+
var P = _ !== y ? v : g === Ie ? ae : Ie, M = function(H) {
|
|
1899
1899
|
T && u({ defaultSortDirection: v, event: H, sortBy: y, sortDirection: P }), f && f({ columnData: S, dataKey: y, event: H });
|
|
1900
1900
|
};
|
|
1901
|
-
l = a.props["aria-label"] ||
|
|
1901
|
+
l = a.props["aria-label"] || b || y, i = "none", r = 0, t = M, n = function(H) {
|
|
1902
1902
|
H.key !== "Enter" && H.key !== " " || M(H);
|
|
1903
1903
|
};
|
|
1904
1904
|
}
|
|
1905
|
-
return _ === y && (i =
|
|
1905
|
+
return _ === y && (i = g === ae ? "ascending" : "descending"), x.createElement("div", { "aria-label": l, "aria-sort": i, className: I, id: R, key: "Header-Col" + s, onClick: t, onKeyDown: n, role: "columnheader", style: O, tabIndex: r }, z);
|
|
1906
1906
|
} }, { key: "_createRow", value: function(e) {
|
|
1907
|
-
var t = this, n = e.rowIndex, r = e.isScrolling, i = e.key, l = e.parent, a = e.style, s = this.props, c = s.children, d = s.onRowClick, h = s.onRowDoubleClick, f = s.onRowRightClick, u = s.onRowMouseOver, _ = s.onRowMouseOut,
|
|
1908
|
-
return t._createColumn({ column:
|
|
1907
|
+
var t = this, n = e.rowIndex, r = e.isScrolling, i = e.key, l = e.parent, a = e.style, s = this.props, c = s.children, d = s.onRowClick, h = s.onRowDoubleClick, f = s.onRowRightClick, u = s.onRowMouseOver, _ = s.onRowMouseOut, g = s.rowClassName, m = s.rowGetter, S = s.rowRenderer, y = s.rowStyle, v = this.state.scrollbarWidth, C = typeof g == "function" ? g({ index: n }) : g, w = typeof y == "function" ? y({ index: n }) : y, R = m({ index: n }), b = x.Children.toArray(c).map(function(O, z) {
|
|
1908
|
+
return t._createColumn({ column: O, columnIndex: z, isScrolling: r, parent: l, rowData: R, rowIndex: n, scrollbarWidth: v });
|
|
1909
1909
|
}), T = N("ReactVirtualized__Table__row", C), I = B(B({}, a), {}, { height: this._getRowHeight(n), overflow: "hidden", paddingRight: v }, w);
|
|
1910
|
-
return S({ className: T, columns:
|
|
1910
|
+
return S({ className: T, columns: b, index: n, isScrolling: r, key: i, onRowClick: d, onRowDoubleClick: h, onRowRightClick: f, onRowMouseOver: u, onRowMouseOut: _, rowData: R, style: I });
|
|
1911
1911
|
} }, { key: "_getFlexStyleForColumn", value: function(e) {
|
|
1912
1912
|
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 });
|
|
1913
1913
|
return e.props.maxWidth && (r.maxWidth = e.props.maxWidth), e.props.minWidth && (r.minWidth = e.props.minWidth), r;
|
|
@@ -1957,42 +1957,42 @@ p(Pe, "defaultProps", { disableHeader: !1, estimatedRowSize: 30, headerHeight: 0
|
|
|
1957
1957
|
var e = o.className, t = o.columns, n = o.style;
|
|
1958
1958
|
return x.createElement("div", { className: e, role: "row", style: n }, t);
|
|
1959
1959
|
}, rowStyle: {}, scrollToAlignment: "auto", scrollToIndex: -1, style: {} }), Pe.propTypes = {};
|
|
1960
|
-
var
|
|
1961
|
-
function
|
|
1960
|
+
var q = [], le = null, $ = null;
|
|
1961
|
+
function qt() {
|
|
1962
1962
|
$ && ($ = null, document.body && le != null && (document.body.style.pointerEvents = le), le = null);
|
|
1963
1963
|
}
|
|
1964
1964
|
function tn() {
|
|
1965
|
-
|
|
1965
|
+
qt(), q.forEach(function(o) {
|
|
1966
1966
|
return o.__resetIsScrolling();
|
|
1967
1967
|
});
|
|
1968
1968
|
}
|
|
1969
|
-
function
|
|
1969
|
+
function Kt(o) {
|
|
1970
1970
|
o.currentTarget === window && le == null && document.body && (le = document.body.style.pointerEvents, document.body.style.pointerEvents = "none"), function() {
|
|
1971
1971
|
$ && ee($);
|
|
1972
1972
|
var e = 0;
|
|
1973
|
-
|
|
1973
|
+
q.forEach(function(t) {
|
|
1974
1974
|
e = Math.max(e, t.props.scrollingResetTimeInterval);
|
|
1975
1975
|
}), $ = Me(tn, e);
|
|
1976
|
-
}(),
|
|
1976
|
+
}(), q.forEach(function(e) {
|
|
1977
1977
|
e.props.scrollElement === o.currentTarget && e.__handleWindowScrollEvent();
|
|
1978
1978
|
});
|
|
1979
1979
|
}
|
|
1980
1980
|
function ft(o, e) {
|
|
1981
|
-
|
|
1981
|
+
q.some(function(t) {
|
|
1982
1982
|
return t.props.scrollElement === e;
|
|
1983
|
-
}) || e.addEventListener("scroll",
|
|
1983
|
+
}) || e.addEventListener("scroll", Kt), q.push(o);
|
|
1984
1984
|
}
|
|
1985
1985
|
function pt(o, e) {
|
|
1986
|
-
(
|
|
1986
|
+
(q = q.filter(function(t) {
|
|
1987
1987
|
return t !== o;
|
|
1988
|
-
})).length || (e.removeEventListener("scroll",
|
|
1988
|
+
})).length || (e.removeEventListener("scroll", Kt), $ && (ee($), qt()));
|
|
1989
1989
|
}
|
|
1990
1990
|
var Ge = function(o) {
|
|
1991
1991
|
return o === window;
|
|
1992
1992
|
}, re = function(o) {
|
|
1993
1993
|
return o.getBoundingClientRect();
|
|
1994
1994
|
};
|
|
1995
|
-
function
|
|
1995
|
+
function gt(o, e) {
|
|
1996
1996
|
if (o) {
|
|
1997
1997
|
if (Ge(o)) {
|
|
1998
1998
|
var t = window, n = t.innerHeight, r = t.innerWidth;
|
|
@@ -2002,7 +2002,7 @@ function mt(o, e) {
|
|
|
2002
2002
|
}
|
|
2003
2003
|
return { height: e.serverHeight, width: e.serverWidth };
|
|
2004
2004
|
}
|
|
2005
|
-
function
|
|
2005
|
+
function mt(o) {
|
|
2006
2006
|
return Ge(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 };
|
|
2007
2007
|
}
|
|
2008
2008
|
function vt(o, e) {
|
|
@@ -2043,7 +2043,7 @@ var Yt = function() {
|
|
|
2043
2043
|
var e, t, n, r;
|
|
2044
2044
|
G(this, o);
|
|
2045
2045
|
for (var i = arguments.length, l = new Array(i), a = 0; a < i; a++) l[a] = arguments[a];
|
|
2046
|
-
return t = this, n = o, r = [].concat(l), n =
|
|
2046
|
+
return t = this, n = o, r = [].concat(l), n = k(n), p(e = W(t, Xt() ? Reflect.construct(n, r || [], k(t).constructor) : n.apply(t, r)), "_window", Yt()), p(e, "_isMounted", !1), p(e, "_positionFromTop", 0), p(e, "_positionFromLeft", 0), p(e, "_detectElementResize", void 0), p(e, "_child", void 0), p(e, "_windowScrollerRef", x.createRef()), p(e, "state", _t(_t({}, gt(e.props.scrollElement, e.props)), {}, { isScrolling: !1, scrollLeft: 0, scrollTop: 0 })), p(e, "_registerChild", function(s) {
|
|
2047
2047
|
!s || s instanceof Element || console.warn("WindowScroller registerChild expects to be passed Element or null"), e._child = s, e.updatePosition();
|
|
2048
2048
|
}), p(e, "_onChildScroll", function(s) {
|
|
2049
2049
|
var c = s.scrollTop;
|
|
@@ -2061,7 +2061,7 @@ var Yt = function() {
|
|
|
2061
2061
|
if (e._isMounted) {
|
|
2062
2062
|
var s = e.props.onScroll, c = e.props.scrollElement;
|
|
2063
2063
|
if (c) {
|
|
2064
|
-
var d =
|
|
2064
|
+
var d = mt(c), h = Math.max(0, d.left - e._positionFromLeft), f = Math.max(0, d.top - e._positionFromTop);
|
|
2065
2065
|
e.setState({ isScrolling: !0, scrollLeft: h, scrollTop: f }), s({ scrollLeft: h, scrollTop: f });
|
|
2066
2066
|
}
|
|
2067
2067
|
}
|
|
@@ -2077,12 +2077,12 @@ var Yt = function() {
|
|
|
2077
2077
|
var h = document.documentElement, f = re(c), u = re(h);
|
|
2078
2078
|
return { top: f.top - u.top, left: f.left - u.left };
|
|
2079
2079
|
}
|
|
2080
|
-
var _ =
|
|
2081
|
-
return { top:
|
|
2080
|
+
var _ = mt(d), g = re(c), m = re(d);
|
|
2081
|
+
return { top: g.top + _.top - m.top, left: g.left + _.left - m.left };
|
|
2082
2082
|
}(l, e);
|
|
2083
2083
|
this._positionFromTop = a.top, this._positionFromLeft = a.left;
|
|
2084
2084
|
}
|
|
2085
|
-
var s =
|
|
2085
|
+
var s = gt(e, this.props);
|
|
2086
2086
|
r === s.height && i === 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());
|
|
2087
2087
|
} }, { key: "componentDidMount", value: function() {
|
|
2088
2088
|
var e = this.props.scrollElement;
|
|
@@ -2101,19 +2101,19 @@ var Yt = function() {
|
|
|
2101
2101
|
p(on, "defaultProps", { onResize: function() {
|
|
2102
2102
|
}, onScroll: function() {
|
|
2103
2103
|
}, scrollingResetTimeInterval: 150, scrollElement: Yt(), serverHeight: 0, serverWidth: 0 });
|
|
2104
|
-
const ie = "ReactVirtualizedDemo-flexContainer",
|
|
2104
|
+
const ie = "ReactVirtualizedDemo-flexContainer", Zt = "ReactVirtualizedDemo-tableRow", Jt = "ReactVirtualizedDemo-tableRowHover", Oe = "ReactVirtualizedDemo-tableCell", ke = "ReactVirtualizedDemo-noClick";
|
|
2105
2105
|
class nn extends yt.PureComponent {
|
|
2106
2106
|
constructor() {
|
|
2107
2107
|
super(...arguments), this.getRowClassName = ({ index: e }) => {
|
|
2108
2108
|
const { onRowClick: t } = this.props;
|
|
2109
|
-
return _e(
|
|
2109
|
+
return _e(Zt, ie, { [Jt]: e !== -1 && t != null });
|
|
2110
2110
|
}, this.cellRenderer = ({ cellData: e, columnIndex: t, dataKey: n }) => {
|
|
2111
2111
|
const { columns: r, rowHeight: i, onRowClick: l } = this.props;
|
|
2112
2112
|
let a = e, s = { height: i, paddingRight: "2px", paddingTop: "0px", paddingBottom: "0px" };
|
|
2113
|
-
return n === "shortcut" ? a =
|
|
2113
|
+
return n === "shortcut" ? a = Ro(e) : n === "description" && (s = { ...s, fontSize: ".75rem", display: "block", paddingTop: "4px", whiteSpace: "pre-line" }), E(De, { component: "div", className: _e(Oe, ie, { [ke]: l == null }), variant: "body", style: s, align: t != null && r[t].numeric ? "right" : "left", children: a });
|
|
2114
2114
|
}, this.headerRenderer = ({ label: e, columnIndex: t }) => {
|
|
2115
2115
|
const { headerHeight: n, columns: r } = this.props;
|
|
2116
|
-
return E(De, { component: "div", className: _e(
|
|
2116
|
+
return E(De, { component: "div", className: _e(Oe, ie, ke), variant: "head", sx: { height: n, backgroundColor: (i) => i.palette.grey[300] }, align: r[t].numeric ? "right" : "left", children: E("span", { children: e }) });
|
|
2117
2117
|
};
|
|
2118
2118
|
}
|
|
2119
2119
|
static {
|
|
@@ -2127,24 +2127,24 @@ class nn extends yt.PureComponent {
|
|
|
2127
2127
|
}) }) });
|
|
2128
2128
|
}
|
|
2129
2129
|
}
|
|
2130
|
-
const rn = Wo(nn)(({ theme: o }) => ({ "& .ReactVirtualized__Table__headerRow": { ...o.direction === "rtl" && { paddingLeft: "0 !important" }, ...o.direction !== "rtl" && { paddingRight: void 0 } }, "& .ReactVirtualized__Table__Grid": { outline: "none" }, [`& .${ie}`]: { display: "flex", alignItems: "center", boxSizing: "border-box" }, [`& .${
|
|
2130
|
+
const rn = Wo(nn)(({ theme: o }) => ({ "& .ReactVirtualized__Table__headerRow": { ...o.direction === "rtl" && { paddingLeft: "0 !important" }, ...o.direction !== "rtl" && { paddingRight: void 0 } }, "& .ReactVirtualized__Table__Grid": { outline: "none" }, [`& .${ie}`]: { display: "flex", alignItems: "center", boxSizing: "border-box" }, [`& .${Zt}`]: { cursor: "pointer" }, [`& .${Jt}`]: { "&:hover:not([disabled])": { backgroundColor: o.palette.grey[200] } }, [`& .${Oe}`]: { flex: 1 }, [`& .${ke}`]: { cursor: "initial" } }));
|
|
2131
2131
|
function ln(o) {
|
|
2132
2132
|
const { commands: e, ...t } = o, [n, r] = he(!1), [i, l] = he(""), a = Io(() => {
|
|
2133
2133
|
let u = e.getAllCommands();
|
|
2134
|
-
n || (u = u.filter((
|
|
2135
|
-
const _ = [],
|
|
2134
|
+
n || (u = u.filter((m) => m.command.shortcut())), u.sort((m, S) => m.command.label().localeCompare(S.command.label()));
|
|
2135
|
+
const _ = [], g = (m) => m.replace(/\n\n/g, `
|
|
2136
2136
|
`);
|
|
2137
|
-
for (let
|
|
2138
|
-
const S = u[
|
|
2137
|
+
for (let m = 0; m < u.length; m++) {
|
|
2138
|
+
const S = u[m].command, y = S.shortcut();
|
|
2139
2139
|
if (Array.isArray(y)) {
|
|
2140
2140
|
const v = y;
|
|
2141
|
-
for (let C = 0; C < v.length; C++) _.push({ label: S.label(), description:
|
|
2142
|
-
} else _.push({ label: S.label(), description:
|
|
2141
|
+
for (let C = 0; C < v.length; C++) _.push({ label: S.label(), description: g(S.description()), shortcut: v[C] });
|
|
2142
|
+
} else _.push({ label: S.label(), description: g(S.description()), shortcut: S.shortcut() });
|
|
2143
2143
|
}
|
|
2144
2144
|
return _;
|
|
2145
2145
|
}, [n, e]), [s, c] = he(null);
|
|
2146
2146
|
We(() => {
|
|
2147
|
-
import("./
|
|
2147
|
+
import("./C60KakDbde-A4anI.mjs").then((u) => {
|
|
2148
2148
|
c(new u.default(a, { threshold: 0, ignoreLocation: !0, keys: ["label", "description"] }));
|
|
2149
2149
|
});
|
|
2150
2150
|
}, [a]);
|
|
@@ -2153,16 +2153,16 @@ function ln(o) {
|
|
|
2153
2153
|
s && uo.debounce(() => {
|
|
2154
2154
|
if (i.trim().length === 0) return void h(a);
|
|
2155
2155
|
const u = s.search(i.trim()), _ = new Array(u.length);
|
|
2156
|
-
for (let
|
|
2156
|
+
for (let g = 0; g < u.length; g++) _[g] = u[g].item;
|
|
2157
2157
|
h(_);
|
|
2158
2158
|
}, 90)();
|
|
2159
|
-
}, [s, i]), Ae(de, { style: { height: 440, width: "100%", display: "flex", flexDirection: "column" }, ...t, children: [Ae(de, { sx: { display: "flex", alignItems: "center", justifyContent: "end", marginBottom: (u) => u.spacing(2), color: (u) => u.palette.text.secondary }, children: [E(ho, { InputProps: { sx: { backgroundImage: `linear-gradient(${Y("#fff", ue(5))}, ${Y("#fff", ue(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: E(fo, { sx: { opacity: i.length > 0 ? 1 : 0, display: i.length > 0 ? "flex" : "none" }, position: "end", children: E(po, { "aria-label": "clear search", onClick: () => l(""), edge: "end", children: E(
|
|
2159
|
+
}, [s, i]), Ae(de, { style: { height: 440, width: "100%", display: "flex", flexDirection: "column" }, ...t, children: [Ae(de, { sx: { display: "flex", alignItems: "center", justifyContent: "end", marginBottom: (u) => u.spacing(2), color: (u) => u.palette.text.secondary }, children: [E(ho, { InputProps: { sx: { backgroundImage: `linear-gradient(${Y("#fff", ue(5))}, ${Y("#fff", ue(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: E(fo, { sx: { opacity: i.length > 0 ? 1 : 0, display: i.length > 0 ? "flex" : "none" }, position: "end", children: E(po, { "aria-label": "clear search", onClick: () => l(""), edge: "end", children: E(go, {}) }) }) }, 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: i, onChange: (u) => {
|
|
2160
2160
|
l(u.target.value);
|
|
2161
2161
|
}, onKeyDown: (u) => {
|
|
2162
2162
|
u.which === St.Escape && i.length > 0 && (l(""), u.stopPropagation(), u.preventDefault());
|
|
2163
2163
|
}, onContextMenu: (u) => {
|
|
2164
2164
|
u.stopPropagation();
|
|
2165
|
-
} }), E(
|
|
2165
|
+
} }), E(mo, { sx: { flex: "1 1 60%" }, control: E(vo, { checked: n, onChange: () => r(!n) }), label: "Show commands without key bindings", labelPlacement: "start" })] }), E(de, { 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(${Y("#fff", ue(5))}, ${Y("#fff", ue(5))})` } }, children: E(rn, { 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 }] }) }), E(de, { 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: E(_o, { 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"}${i.length > 0 ? " found" : ""}` }) })] });
|
|
2166
2166
|
}
|
|
2167
2167
|
const un = (o) => {
|
|
2168
2168
|
const { title: e = "Shortcut Keys", commands: t, sx: n, ...r } = o;
|