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