@sheetxl/studio-vanilla 0.4.14 → 0.4.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/cjs/{rIOsSIPwxoXlIawS.cjs → 2z48hC9Lgl_XFiR8.cjs} +1 -1
- package/browser/cjs/{CTuM_aZX8wZICUe_.cjs → 527-wdwXfhlxqigX.cjs} +1 -1
- package/browser/cjs/{CE5U7gB5L-PE17gV.cjs → 8iv5H_Fv58DG9HON.cjs} +2 -2
- package/browser/cjs/{D6uIvR-6Y690_Em2.cjs → 9FygAwnwGtj51rKR.cjs} +6 -6
- package/browser/cjs/{10IK8MFijJb-yvV6.cjs → B3FNhqGnpjO3bF1J.cjs} +3 -3
- package/browser/cjs/{Cuq8Nim-ol5Gdehe.cjs → B8PZzwEzGHdX2D1A.cjs} +1 -1
- package/browser/cjs/{CJZtyunL_qaXFylY.cjs → BDDHipsk8fDa6KzG.cjs} +2 -2
- package/browser/cjs/{dbUUj8LyIitsdYpk.cjs → BDiEyTUhhZ0E4TEV.cjs} +1 -1
- package/browser/cjs/{D4vbOk4hD8-b-c10.cjs → BEuLDE1KvRWWFlHK.cjs} +1 -1
- package/browser/cjs/{D5YUIQeOcujtq6XS.cjs → BNiCvN3wpcuvRJDa.cjs} +3 -3
- package/browser/cjs/{D4NcrJlqcLExwCNT.cjs → BOjR7WcuPM7CqQ61.cjs} +4 -4
- package/browser/cjs/{DPbzY4ppgKPrdbWc.cjs → BOwI__-2C4zHdb02.cjs} +1 -1
- package/browser/cjs/{C_mbaid3FQ52usBI.cjs → BPEiEiVl_5BbvIuk.cjs} +2 -2
- package/browser/cjs/BbEY710KwFxGt-nx.cjs +364 -0
- package/browser/cjs/{yBSdtSSuNERefFhR.cjs → BmHg0RJIh8fueA1b.cjs} +5 -5
- package/browser/cjs/{Cl0XSnWVDoaHTIlF.cjs → BqhC-4_bAAdxiG10.cjs} +1 -1
- package/browser/cjs/{Bm9fNNMIOLIwq-94.cjs → BxKEYXw6K_cJQVyL.cjs} +1 -1
- package/browser/cjs/{DCd5OZXj2IRbxEF2.cjs → By5yxiEAIP-yru4E.cjs} +1 -1
- package/browser/cjs/{xDqIifM_--oXscCV.cjs → C7E9AxEhqGR5hjuF.cjs} +2 -2
- package/browser/cjs/{D_7RtbQABH1zdcjr.cjs → C9e_gEokumOSJEQE.cjs} +1 -1
- package/browser/cjs/{DlnKrZRyxBfbqaTi.cjs → CDqIINbe_kUDiu3S.cjs} +2 -2
- package/browser/cjs/{DtpB0PMEtamaB-Hv.cjs → CFTqCNfD7KPB5D2t.cjs} +1 -1
- package/browser/cjs/{CWW_yQpIswo7DEAT.cjs → CGMIvqM1bAMiSrpL.cjs} +1 -1
- package/browser/cjs/{C0ySf2emOB0Mslc-.cjs → CIXCQscBfq2DpLXc.cjs} +1 -1
- package/browser/cjs/{AnJTeEGq7VP4T1b7.cjs → CPcLGP9ohAPquX_P.cjs} +2 -2
- package/browser/cjs/{DWzQm8Q32qNP7qKL.cjs → CSZA-xOWQAk2bPo6.cjs} +1 -1
- package/browser/cjs/{BtiY-n4sGy6WaqNg.cjs → C_rz86UiiqTsrxS_.cjs} +4 -4
- package/browser/cjs/{DL4HgriZ3TY2K-QP.cjs → CgMWE9E3Hpz-3OT8.cjs} +1 -1
- package/browser/cjs/{CpRfx14is2_4Wgp3.cjs → CitQIsT3Zql2d5Vu.cjs} +2 -2
- package/browser/cjs/{BU5k1OZewc-Z-kR9.cjs → Cn5jJo4kHJGk3N7P.cjs} +2 -2
- package/browser/cjs/{DxBLU16_E62Umowp.cjs → CpZL07iGOPpGjHM-.cjs} +1 -1
- package/browser/cjs/{VU_KaqGTjvnisS9e.cjs → CuF5AeSoTUyseIPf.cjs} +1 -1
- package/browser/cjs/{DBNXGIWfZmgb_sHL.cjs → CxILJtUEEXVq79VE.cjs} +2 -2
- package/browser/cjs/CxRW9GVbe6zNc--Y.cjs +19 -0
- package/browser/cjs/{CYLnJHryQcQO4XoG.cjs → D33_ArewzvVZrJs5.cjs} +1 -1
- package/browser/cjs/{sMBG5eQ3-iacLXUm.cjs → D5txayapke7SLywP.cjs} +2 -2
- package/browser/cjs/{CNcsGELwCAV-A5oH.cjs → D96Vd9ML6lEp2yNc.cjs} +2 -2
- package/browser/cjs/{Cj_1qUo5cZ3FnOpK.cjs → DAuVoLkfGR03lbJL.cjs} +2 -2
- package/browser/cjs/{Dv8SE05ABKNLPY6A.cjs → DFforK4FhDLP9UUc.cjs} +1 -1
- package/browser/cjs/{DdTcwutSPJMeCIv3.cjs → DHmgJr7cr-5rmqrC.cjs} +2 -2
- package/browser/cjs/{BH3MYcOF7rxLX3Bk.cjs → DM17oP0REi-dMzRh.cjs} +1 -1
- package/browser/cjs/DXEqr7NfFBng4qp7.cjs +6 -0
- package/browser/cjs/{tShlMZrIxsGZSeHX.cjs → Dd8-Ixj1ckpU18vR.cjs} +4 -4
- package/browser/cjs/{D_Q0s9KLnWHwKxTK.cjs → DduMAzPLo62DsEIv.cjs} +1 -1
- package/browser/cjs/{DIYOARVcGtRjKpjZ.cjs → Dh4QAMYLxa-nm3b1.cjs} +1 -1
- package/browser/cjs/{eZGLUWbfY3JdZRM5.cjs → DsMEB6CCQ9XeKx0W.cjs} +1 -1
- package/browser/cjs/{BxgDhdrrKrJMEaXd.cjs → DuV6aIKntSIlFlmP.cjs} +1 -1
- package/browser/cjs/{CpIIsygD5mnJyl47.cjs → DvOP3Sz4bOvvB51y.cjs} +4 -4
- package/browser/cjs/{CnLdhURNkVXo_0Eg.cjs → DwBWZnrTp5UcLnAE.cjs} +1 -1
- package/browser/cjs/{BzT1y15V6Zs7c_zX.cjs → EEd3txVEsMOS25kJ.cjs} +1 -1
- package/browser/cjs/{CHd9vauNLHnOLflj.cjs → MDi4HLKgwSCu6fyR.cjs} +1 -1
- package/browser/cjs/{mBk4Z4LZ65b3f58_.cjs → OLQtPYBVwDJUVBX4.cjs} +2 -2
- package/browser/cjs/{BlwK-VslgEVH2cgX.cjs → SKR8zQ_6EFd3QuXc.cjs} +1 -1
- package/browser/cjs/{bS_BOH9cvVCFy36v.cjs → hosXXKv9_3bMMvPn.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{DAbScbuk-sjZXMIC.cjs → isuVkDnj-ShYtgWE.cjs} +1 -1
- package/browser/cjs/{DFNisISrsMnZrV4B.cjs → kbVoRE7sSKze9AGf.cjs} +1 -1
- package/browser/cjs/tHZy6iR0C8BJ7ao2.cjs +14 -0
- package/{cdn/assets/DwRHGEuscm3FvnkM.js → browser/esm/3LUy01lLdiAyu4L8.mjs} +1 -1
- package/{cdn/assets/BHy77Km4i4t5U7ka.js → browser/esm/6dBbccz3d0UDCmId.mjs} +1 -1
- package/browser/esm/{Pkb6GWdyZdze_XAw.mjs → 7zmlmdpV46wT0D_8.mjs} +2 -2
- package/browser/esm/{uuCmCmYQQXgwyRSd.mjs → AbVL9q93k2OjvNMS.mjs} +1 -1
- package/{cdn/assets/DXIWAG-DUKHzNlRl.js → browser/esm/B0pXYR2QIxH_yyCd.mjs} +1 -1
- package/browser/esm/{HyTvrvH0vItPFnFG.mjs → BDpFOktVt42TQpcN.mjs} +4 -4
- package/browser/esm/BFGNX8BKN0YukAfE.mjs +49894 -0
- package/browser/esm/{C5GgK_mW25DZYw-I.mjs → BIPFm0SUVy_xxuHx.mjs} +2 -2
- package/browser/esm/{QZikWr_NQfcFWCBV.mjs → BJqUNdAULMuqfoNS.mjs} +7 -7
- package/{cdn/assets/CcARDY0PFSWkqsG9.js → browser/esm/BMcBO1IQO3eNx3D8.mjs} +1 -1
- package/browser/esm/{BP6hA-zc0dMuMOIA.mjs → BQEjN2Ny_1RjJRRG.mjs} +2 -2
- package/browser/esm/{BfFDvyaRcdKS0wPD.mjs → BcnRo-70LV3dW2F8.mjs} +1 -1
- package/browser/esm/{BXABqQEa6kQQcjmt.mjs → BegJ95DwnjizqVvZ.mjs} +2 -2
- package/{cdn/assets/73gcCsbqgbW3KIoA.js → browser/esm/BphrEGpsPHge38iD.mjs} +1 -1
- package/{cdn/assets/BZxAttR2mi9td3k1.js → browser/esm/Bxh-G6GIKLTgdQSU.mjs} +1 -1
- package/{cdn/assets/B8TNpfJ8ymQcPriE.js → browser/esm/CEn_nscDh2qWGWkf.mjs} +1 -1
- package/browser/esm/{DCyJNVtrh6kEt73Q.mjs → CHQ2p5JXvpblW5Mr.mjs} +9 -9
- package/{cdn/assets/DaUJajqmQYuM0Gew.js → browser/esm/CJ2VfoplPO3aOFIS.mjs} +58 -61
- package/browser/esm/{DgO85Q5iHe-ZmvtQ.mjs → CM9SSh6zB4mXFuiK.mjs} +1 -1
- package/browser/esm/{4eRu4yzXkvCBip8J.mjs → CNNQFdovfxmKTLqX.mjs} +1 -1
- package/{cdn/assets/BF5nlSYZ38RJ0dPX.js → browser/esm/CPzGoc5ivg6BGW5V.mjs} +1 -1
- package/browser/esm/{jkSJc6Omxbf-rPQY.mjs → CQ8SVGYEop2G_eer.mjs} +1 -1
- package/browser/esm/{DR7oVoNSe0FFWHOr.mjs → CR-h2aljy2JwwOmN.mjs} +18 -18
- package/browser/esm/CYW0tIypPPivmPYC.mjs +39 -0
- package/browser/esm/{CHjb5a2xwEWs4RgS.mjs → Cyu6G1cmylOjsfqu.mjs} +114 -115
- package/browser/esm/{CeF0ZRfeSy83i80_.mjs → CzcfqZRl8TT7_AA8.mjs} +4 -4
- package/browser/esm/{DHPHhaCxihdR9Hl6.mjs → D0HahgSi_BcRitIR.mjs} +1 -1
- package/browser/esm/D6rU9DOoEw4c1pUc.mjs +6800 -0
- package/browser/esm/{aLv-xujBO4X6ilhV.mjs → DDaraJFhLInV4GMJ.mjs} +1 -1
- package/{cdn/assets/DVRMAeHUj0-TY-vK.js → browser/esm/DE8w2hURn5qI8AKp.mjs} +1 -1
- package/browser/esm/{BdFNxdtES-3_yQ9R.mjs → DGk-Ommc_o1xYlw-.mjs} +1 -1
- package/browser/esm/{D9eVsUckA6bWBHni.mjs → DHwgBfUeVdooDLZu.mjs} +1 -1
- package/browser/esm/DNmLY801ferFO5Uk.mjs +20 -0
- package/{cdn/assets/Dft4BSeY0bp0A6z0.js → browser/esm/DPRM8hNlNCr3-T5W.mjs} +1 -1
- package/browser/esm/{Crza3kRJdEVylOfk.mjs → DSgo1psKmx1fs5GP.mjs} +2 -2
- package/browser/esm/{BPen6C7JE2sWVgdi.mjs → D_SW7AJGTxZZhEhN.mjs} +1 -1
- package/browser/esm/{DFwxjsVr4xKLPTGf.mjs → Dcro_uZlLqe8StKp.mjs} +2 -2
- package/browser/esm/{BvYUsRgBXLSuaQ-S.mjs → Ddco0tbzyQ9zfvAR.mjs} +1 -1
- package/browser/esm/{wV8riZWKJE7AoKQk.mjs → DhtBGaXEjpSpeQD2.mjs} +1 -1
- package/browser/esm/{wxvli1IH1NkfqE6-.mjs → DmeMooAnq1CVPk8s.mjs} +1 -1
- package/{cdn/assets/B_pEA9HeXKvEOCdS.js → browser/esm/DnDDStLug64LBv-3.mjs} +1 -1
- package/browser/esm/{c9fba0RuWGogsH0X.mjs → Dp4czjfjfaFH_dEJ.mjs} +7 -7
- package/browser/esm/DqP6X7y9HwGY7VjP.mjs +47 -0
- package/{cdn/assets/BzE-61bmpRQzEVPt.js → browser/esm/DrT_zO6kt_14yLBZ.mjs} +1 -1
- package/browser/esm/{CJiHNujoVUdO_G7X.mjs → DuJX6KV57WopKk9q.mjs} +12 -12
- package/{cdn/assets/B4ji-HZTY0uvH8r7.js → browser/esm/DwUhQt38jwVGevvy.mjs} +1 -1
- package/{cdn/assets/Cmtx4dAVZrwq5cVO.js → browser/esm/IF2d9xZoQ-KwvBKh.mjs} +1 -1
- package/browser/esm/{DAscSzG63-mM5p50.mjs → MXO5bWHStxysNVsg.mjs} +11 -11
- package/{cdn/assets/CN73n4VDayKh_l1J.js → browser/esm/PzttknQejK9onrpS.mjs} +1 -1
- package/browser/esm/{CITPwlsNzJvv551I.mjs → TM6K2pq3Dcv9IkuU.mjs} +1 -1
- package/browser/esm/{DQLk_UmdpJBt-zZi.mjs → XMnVd_ZFLys2rjY7.mjs} +198 -198
- package/{cdn/assets/DzyNujjbHLXo9UmH.js → browser/esm/iYM_upfOH9oA049a.mjs} +6 -6
- package/browser/esm/index.mjs +3 -3
- package/browser/esm/{D3L89e08b7ewR6mt.mjs → kXeRQRPLeKsnYZWE.mjs} +8 -8
- package/{cdn/assets/BIUVt79NHXdZx2Dz.js → browser/esm/mMMnv_KWRsRe75FG.mjs} +1 -1
- package/browser/esm/{C28AZ0Rwo79iGg0v.mjs → q0yHqQ5GBeLgY-gd.mjs} +1 -1
- package/browser/esm/{BBDu-GNDE7ZA-1sJ.mjs → tBO69ofaNapzt3L4.mjs} +16 -16
- package/browser/esm/{D4G17ip9xxOX5jDd.mjs → wt2Q3yM9_nGedjrL.mjs} +88 -88
- package/{browser/esm/DwRHGEuscm3FvnkM.mjs → cdn/assets/3LUy01lLdiAyu4L8.js} +1 -1
- package/{browser/esm/BHy77Km4i4t5U7ka.mjs → cdn/assets/6dBbccz3d0UDCmId.js} +1 -1
- package/cdn/assets/A8eAz4-PTuL72Hin.js +58 -0
- package/cdn/assets/{uuCmCmYQQXgwyRSd.js → AbVL9q93k2OjvNMS.js} +1 -1
- package/{browser/esm/DXIWAG-DUKHzNlRl.mjs → cdn/assets/B0pXYR2QIxH_yyCd.js} +1 -1
- package/cdn/assets/{C3W0xsNrt-Was9g-.js → B3boJwK33Z6RqPqk.js} +2 -2
- package/cdn/assets/{DZNoPrlxULASVlOi.js → B6sQ-SvjZgQQji5w.js} +11 -11
- package/cdn/assets/{BEfetwH6zTr6B51I.js → BHIQzrKfKNFUBjR9.js} +844 -843
- package/{browser/esm/CcARDY0PFSWkqsG9.mjs → cdn/assets/BMcBO1IQO3eNx3D8.js} +1 -1
- package/cdn/assets/{BfFDvyaRcdKS0wPD.js → BcnRo-70LV3dW2F8.js} +1 -1
- package/cdn/assets/Ber1-vHUp5sOqFS7.js +390 -0
- package/cdn/assets/{DBpku3D2DSTmW4II.js → Bj-ZU4RLivZywsqT.js} +2 -2
- package/cdn/assets/Bjv69OWhcDpPMIFg.js +49722 -0
- package/{browser/esm/73gcCsbqgbW3KIoA.mjs → cdn/assets/BphrEGpsPHge38iD.js} +1 -1
- package/cdn/assets/Bt3GnfDq2p0GHntP.js +23 -0
- package/{browser/esm/w3TGaFTjdsc4XTcz.mjs → cdn/assets/BuEJOKp47YUO-SKV.js} +73 -73
- package/{browser/esm/BZxAttR2mi9td3k1.mjs → cdn/assets/Bxh-G6GIKLTgdQSU.js} +1 -1
- package/cdn/assets/{C8rQWD8C7ccUHNZL.js → BzJDFxx0-f3ofc07.js} +3 -3
- package/cdn/assets/{DEOxG6u6itV8bGym.js → Bzmc21lMGO689Gtm.js} +849 -849
- package/cdn/assets/{Cdx6LrqtHZKbwl63.js → CBZHbb2bqbziokhD.js} +42 -42
- package/cdn/assets/{Zi3E5Kzxw2FPtLVL.js → CCyqNw5QYfgHLK1w.js} +2 -2
- package/{browser/esm/B8TNpfJ8ymQcPriE.mjs → cdn/assets/CEn_nscDh2qWGWkf.js} +1 -1
- package/cdn/assets/{B3TPDOzYf_VRBIr6.js → CK4HRZFkpjItprps.js} +422 -422
- package/cdn/assets/{DgO85Q5iHe-ZmvtQ.js → CM9SSh6zB4mXFuiK.js} +1 -1
- package/cdn/assets/{4eRu4yzXkvCBip8J.js → CNNQFdovfxmKTLqX.js} +1 -1
- package/{browser/esm/BF5nlSYZ38RJ0dPX.mjs → cdn/assets/CPzGoc5ivg6BGW5V.js} +1 -1
- package/cdn/assets/{jkSJc6Omxbf-rPQY.js → CQ8SVGYEop2G_eer.js} +1 -1
- package/cdn/assets/{DnWjhq4ZlgIuFcii.js → CQeDWMJhZEMvysUh.js} +5 -5
- package/cdn/assets/{CWkF-50YF43t7qge.js → CWgLS_jMj5DNrggO.js} +4 -4
- package/cdn/assets/Ch5JO1OSaLcDuY1a.js +22 -0
- package/cdn/assets/{DHPHhaCxihdR9Hl6.js → D0HahgSi_BcRitIR.js} +1 -1
- package/cdn/assets/{B7Ky6m4VWP8vxhPt.js → D5-W8jVCdTuhwV4I.js} +18 -18
- package/cdn/assets/{aLv-xujBO4X6ilhV.js → DDaraJFhLInV4GMJ.js} +1 -1
- package/{browser/esm/DVRMAeHUj0-TY-vK.mjs → cdn/assets/DE8w2hURn5qI8AKp.js} +1 -1
- package/cdn/assets/{BdFNxdtES-3_yQ9R.js → DGk-Ommc_o1xYlw-.js} +1 -1
- package/cdn/assets/{D9eVsUckA6bWBHni.js → DHwgBfUeVdooDLZu.js} +1 -1
- package/cdn/assets/DI9WWYlw4XtaKxJ9.js +149 -0
- package/cdn/assets/DN9WPHXLnxyrdP62.js +49 -0
- package/cdn/assets/DOoM8QGUlLAU2iqo.js +43 -0
- package/{browser/esm/Dft4BSeY0bp0A6z0.mjs → cdn/assets/DPRM8hNlNCr3-T5W.js} +1 -1
- package/cdn/assets/DSfbEMCq8-gDBtv_.js +46 -0
- package/cdn/assets/{ChB-XZno7w9v221u.js → DZyvhfi33GteuMM3.js} +4 -4
- package/cdn/assets/{BPen6C7JE2sWVgdi.js → D_SW7AJGTxZZhEhN.js} +1 -1
- package/cdn/assets/{BvYUsRgBXLSuaQ-S.js → Ddco0tbzyQ9zfvAR.js} +1 -1
- package/cdn/assets/{0fI22OQK5IczUH6s.js → DdjDNvycthoT3npY.js} +2 -2
- package/cdn/assets/{wV8riZWKJE7AoKQk.js → DhtBGaXEjpSpeQD2.js} +1 -1
- package/cdn/assets/{wxvli1IH1NkfqE6-.js → DmeMooAnq1CVPk8s.js} +1 -1
- package/{browser/esm/B_pEA9HeXKvEOCdS.mjs → cdn/assets/DnDDStLug64LBv-3.js} +1 -1
- package/{browser/esm/BzE-61bmpRQzEVPt.mjs → cdn/assets/DrT_zO6kt_14yLBZ.js} +1 -1
- package/{browser/esm/B4ji-HZTY0uvH8r7.mjs → cdn/assets/DwUhQt38jwVGevvy.js} +1 -1
- package/{browser/esm/Cmtx4dAVZrwq5cVO.mjs → cdn/assets/IF2d9xZoQ-KwvBKh.js} +1 -1
- package/{browser/esm/CN73n4VDayKh_l1J.mjs → cdn/assets/PzttknQejK9onrpS.js} +1 -1
- package/cdn/assets/{CITPwlsNzJvv551I.js → TM6K2pq3Dcv9IkuU.js} +1 -1
- package/cdn/assets/UYuqeLmzk4CZISVt.js +50 -0
- package/{browser/esm/BIUVt79NHXdZx2Dz.mjs → cdn/assets/mMMnv_KWRsRe75FG.js} +1 -1
- package/cdn/assets/{C28AZ0Rwo79iGg0v.js → q0yHqQ5GBeLgY-gd.js} +1 -1
- package/cdn/assets/sZe9Sjpn-rLq53T6.js +41 -0
- package/cdn/index.js +73 -73
- package/cdn/loader.js +1 -1
- package/package.json +3 -3
- package/browser/cjs/1bCMnueqxHW3rn0c.cjs +0 -6
- package/browser/cjs/BQ4QeJYaIhLaInyR.cjs +0 -6
- package/browser/cjs/CJoJ19i1z94kndlS.cjs +0 -19
- package/browser/cjs/CXIHULOe7x4DYKXw.cjs +0 -12
- package/browser/cjs/DQGdVVTxixgptLdj.cjs +0 -366
- package/browser/esm/B383N9irNfyfYC2l.mjs +0 -20
- package/browser/esm/BUqd1uVUNoWmepd2.mjs +0 -148
- package/browser/esm/BbW_1O3cEhZ4aSgS.mjs +0 -55785
- package/browser/esm/Bqqcb80cNalBs-sB.mjs +0 -939
- package/browser/esm/BrEcIDq0-c5AiQEf.mjs +0 -21
- package/browser/esm/DKbJ-iVPuUbr3iZ_.mjs +0 -47
- package/browser/esm/DbZJQpjZJIcz2ypV.mjs +0 -39
- package/cdn/assets/5HYy7pIZxQRDUQl-.js +0 -50
- package/cdn/assets/6oc_f4xkoSmftsRd.js +0 -22
- package/cdn/assets/B4HW_cy7gbE01jar.js +0 -390
- package/cdn/assets/BS1p7DgoyO-WkvB8.js +0 -41
- package/cdn/assets/BiKaXKU3o287mgkN.js +0 -12
- package/cdn/assets/C0yI-QYraFhnJUdD.js +0 -49
- package/cdn/assets/C3FTuqvfGalOVHql.js +0 -43
- package/cdn/assets/CaKPs_ILqLIWfUUN.js +0 -23
- package/cdn/assets/CkY7wM_4OGwZvJ4f.js +0 -942
- package/cdn/assets/CrBywNOOyPHSBoTT.js +0 -27
- package/cdn/assets/DMWARnjq06oQnfrL.js +0 -58
- package/cdn/assets/DRa6yXWuTlAjuaKT.js +0 -90
- package/cdn/assets/DYowHOSLHcADsXuK.js +0 -27
- package/cdn/assets/DcdQwhlGoI1knRUy.js +0 -46
- package/cdn/assets/Dm0hrXCbV7DITOhi.js +0 -36
- package/cdn/assets/EYTSqAG9YOdb1vKx.js +0 -48823
- package/cdn/assets/Ux2jUY_EwSsYBCov.js +0 -241
- package/cdn/assets/XoKiuP2ZFq0cNGkH.js +0 -6481
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
1
|
+
import { jsx as H, jsxs as We } from "react/jsx-runtime";
|
|
2
|
+
import { J as to, L as oo, M as no, O as ro, P as io, Q, U as lo, W as so, X as ao, Z as co, j as Z, a0 as uo, a1 as ho, a2 as wt, E as fo, B as he, i as po, a3 as mo, a4 as go, a5 as vo, a6 as fe, a7 as _o, a8 as So, a9 as yo, aa as wo, ab as Co, ac as De, ad as xo, ae as Ro, af as bo, ag as ye, ah as To, ai as zo, aj as q, ak as Io, al as N, am as V, an as Po } from "./Bjv69OWhcDpPMIFg.js";
|
|
3
|
+
import * as x from "react";
|
|
4
|
+
import Ct, { useState as pe, useMemo as ko, useEffect as je, cloneElement as Oo } from "react";
|
|
5
5
|
/**
|
|
6
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
6
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.16
|
|
7
7
|
*
|
|
8
8
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
9
9
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
10
10
|
*/
|
|
11
|
-
const
|
|
12
|
-
function
|
|
13
|
-
return
|
|
11
|
+
const Mo = x.createContext(), Lo = x.createContext();
|
|
12
|
+
function Go(o) {
|
|
13
|
+
return oo("MuiTableCell", o);
|
|
14
14
|
}
|
|
15
|
-
const
|
|
15
|
+
const Ao = to("MuiTableCell", ["root", "head", "body", "footer", "sizeSmall", "sizeMedium", "paddingCheckbox", "paddingNone", "alignLeft", "alignCenter", "alignRight", "alignJustify", "stickyHeader"]), Eo = ro("td", { name: "MuiTableCell", slot: "Root", overridesResolver: (o, e) => {
|
|
16
16
|
const { ownerState: t } = o;
|
|
17
17
|
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];
|
|
18
|
-
} })(
|
|
19
|
-
${o.palette.mode === "light" ?
|
|
20
|
-
const t =
|
|
18
|
+
} })(so(({ theme: o }) => ({ ...o.typography.body2, display: "table-cell", verticalAlign: "inherit", borderBottom: o.vars ? `1px solid ${o.vars.palette.TableCell.border}` : `1px solid
|
|
19
|
+
${o.palette.mode === "light" ? ao(Z(o.palette.divider, 1), 0.88) : co(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", [`&.${Ao.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 } }] }))), Fe = x.forwardRef(function(o, e) {
|
|
20
|
+
const t = no({ props: o, name: "MuiTableCell" }), { align: n = "inherit", className: r, component: l, padding: i, scope: a, size: s, sortDirection: c, variant: d, ...h } = t, f = x.useContext(Mo), u = x.useContext(Lo), v = u && u.variant === "head";
|
|
21
21
|
let m;
|
|
22
22
|
m = l || (v ? "th" : "td");
|
|
23
23
|
let _ = a;
|
|
24
24
|
m === "td" ? _ = void 0 : !_ && v && (_ = "col");
|
|
25
|
-
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 = ((
|
|
26
|
-
const { classes:
|
|
27
|
-
return
|
|
25
|
+
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 = ((C) => {
|
|
26
|
+
const { classes: b, variant: R, align: z, padding: I, size: k, stickyHeader: P } = C, T = { root: ["root", R, P && "stickyHeader", z !== "inherit" && `align${Q(z)}`, I !== "normal" && `padding${Q(I)}`, `size${Q(k)}`] };
|
|
27
|
+
return lo(T, Go, b);
|
|
28
28
|
})(y);
|
|
29
29
|
let w = null;
|
|
30
|
-
return c && (w = c === "asc" ? "ascending" : "descending"),
|
|
31
|
-
}),
|
|
32
|
-
function
|
|
30
|
+
return c && (w = c === "asc" ? "ascending" : "descending"), H(Eo, { as: m, ref: e, className: io(g.root, r), "aria-sort": w, scope: _, ownerState: y, ...h });
|
|
31
|
+
}), Ho = wo();
|
|
32
|
+
function we(o) {
|
|
33
33
|
return o !== "ownerState" && o !== "theme" && o !== "sx" && o !== "as";
|
|
34
34
|
}
|
|
35
35
|
function K(o, e) {
|
|
36
36
|
return e && o && typeof o == "object" && o.styles && !o.styles.startsWith("@layer") && (o.styles = `@layer ${e}{${String(o.styles)}}`), o;
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function Wo(o) {
|
|
39
39
|
return o ? (e, t) => t[o] : null;
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function ve(o, e, t) {
|
|
42
42
|
const n = typeof e == "function" ? e(o) : e;
|
|
43
|
-
if (Array.isArray(n)) return n.flatMap((r) =>
|
|
43
|
+
if (Array.isArray(n)) return n.flatMap((r) => ve(o, r, t));
|
|
44
44
|
if (Array.isArray(n?.variants)) {
|
|
45
45
|
let r;
|
|
46
46
|
if (n.isProcessed) r = t ? K(n.style, t) : n.style;
|
|
@@ -48,11 +48,11 @@ function ge(o, e, t) {
|
|
|
48
48
|
const { variants: l, ...i } = n;
|
|
49
49
|
r = t ? K(q(i), t) : i;
|
|
50
50
|
}
|
|
51
|
-
return
|
|
51
|
+
return xt(o, n.variants, [r], t);
|
|
52
52
|
}
|
|
53
53
|
return n?.isProcessed ? t ? K(q(n.style), t) : n.style : t ? K(q(n), t) : n;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function xt(o, e, t = [], n = void 0) {
|
|
56
56
|
let r;
|
|
57
57
|
e: for (let l = 0; l < e.length; l += 1) {
|
|
58
58
|
const i = e[l];
|
|
@@ -63,11 +63,11 @@ function yt(o, e, t = [], n = void 0) {
|
|
|
63
63
|
}
|
|
64
64
|
return t;
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function Do(o) {
|
|
67
67
|
return o && o.charAt(0).toLowerCase() + o.slice(1);
|
|
68
68
|
}
|
|
69
|
-
const
|
|
70
|
-
const { themeId: e, defaultTheme: t =
|
|
69
|
+
const jo = function(o = {}) {
|
|
70
|
+
const { themeId: e, defaultTheme: t = Ho, rootShouldForwardProp: n = we, slotShouldForwardProp: r = we } = o;
|
|
71
71
|
function l(i) {
|
|
72
72
|
var a, s, c;
|
|
73
73
|
s = e, c = t, (a = i).theme = function(d) {
|
|
@@ -76,53 +76,53 @@ const Ao = function(o = {}) {
|
|
|
76
76
|
}(a.theme) ? c : a.theme[s] || a.theme;
|
|
77
77
|
}
|
|
78
78
|
return (i, a = {}) => {
|
|
79
|
-
|
|
80
|
-
const { name: s, slot: c, skipVariantsResolver: d, skipSx: h, overridesResolver: f =
|
|
81
|
-
let S =
|
|
79
|
+
Co(i, (b) => b.filter((R) => R !== De));
|
|
80
|
+
const { name: s, slot: c, skipVariantsResolver: d, skipSx: h, overridesResolver: f = Wo(Do(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
|
+
let S = we;
|
|
82
82
|
var y;
|
|
83
83
|
c === "Root" || c === "root" ? S = n : c ? S = r : typeof (y = i) == "string" && y.charCodeAt(0) > 96 && (S = void 0);
|
|
84
|
-
const g =
|
|
85
|
-
if (
|
|
86
|
-
if (typeof
|
|
87
|
-
return
|
|
84
|
+
const g = xo(i, { shouldForwardProp: S, label: void 0, ...u }), w = (b) => {
|
|
85
|
+
if (b.__emotion_real === b) return b;
|
|
86
|
+
if (typeof b == "function") return function(R) {
|
|
87
|
+
return ve(R, b, R.theme.modularCssLayers ? v : void 0);
|
|
88
88
|
};
|
|
89
|
-
if (
|
|
90
|
-
const
|
|
91
|
-
const { variants: I, ...
|
|
92
|
-
return P.style ===
|
|
93
|
-
typeof
|
|
89
|
+
if (zo(b)) {
|
|
90
|
+
const R = function(z) {
|
|
91
|
+
const { variants: I, ...k } = z, P = { variants: I, style: q(k), isProcessed: !0 };
|
|
92
|
+
return P.style === k || I && I.forEach((T) => {
|
|
93
|
+
typeof T.style != "function" && (T.style = q(T.style));
|
|
94
94
|
}), P;
|
|
95
|
-
}(
|
|
96
|
-
return function(
|
|
97
|
-
return
|
|
95
|
+
}(b);
|
|
96
|
+
return function(z) {
|
|
97
|
+
return R.variants ? ve(z, R, z.theme.modularCssLayers ? v : void 0) : z.theme.modularCssLayers ? K(R.style, v) : R.style;
|
|
98
98
|
};
|
|
99
99
|
}
|
|
100
|
-
return
|
|
101
|
-
},
|
|
102
|
-
const
|
|
103
|
-
if (
|
|
104
|
-
const L =
|
|
100
|
+
return b;
|
|
101
|
+
}, C = (...b) => {
|
|
102
|
+
const R = [], z = b.map(w), I = [];
|
|
103
|
+
if (R.push(l), s && f && I.push(function(T) {
|
|
104
|
+
const L = T.theme, G = L.components?.[s]?.styleOverrides;
|
|
105
105
|
if (!G) return null;
|
|
106
106
|
const B = {};
|
|
107
|
-
for (const
|
|
108
|
-
return f(
|
|
109
|
-
}), s && !m && I.push(function(
|
|
110
|
-
const L =
|
|
111
|
-
return G ?
|
|
112
|
-
}), _ || I.push(
|
|
113
|
-
const
|
|
107
|
+
for (const He in G) B[He] = ve(T, G[He], T.theme.modularCssLayers ? "theme" : void 0);
|
|
108
|
+
return f(T, B);
|
|
109
|
+
}), s && !m && I.push(function(T) {
|
|
110
|
+
const L = T.theme, G = L?.components?.[s]?.variants;
|
|
111
|
+
return G ? xt(T, G, [], T.theme.modularCssLayers ? "theme" : void 0) : null;
|
|
112
|
+
}), _ || I.push(De), Array.isArray(z[0])) {
|
|
113
|
+
const T = z.shift(), L = new Array(R.length).fill(""), G = new Array(I.length).fill("");
|
|
114
114
|
let B;
|
|
115
|
-
B = [...L, ...
|
|
115
|
+
B = [...L, ...T, ...G], B.raw = [...L, ...T.raw, ...G], R.unshift(B);
|
|
116
116
|
}
|
|
117
|
-
const
|
|
117
|
+
const k = [...R, ...z, ...I], P = g(...k);
|
|
118
118
|
return i.muiName && (P.muiName = i.muiName), P;
|
|
119
119
|
};
|
|
120
|
-
return g.withConfig && (
|
|
120
|
+
return g.withConfig && (C.withConfig = g.withConfig), C;
|
|
121
121
|
};
|
|
122
|
-
}({ themeId:
|
|
122
|
+
}({ themeId: Ro, defaultTheme: bo, rootShouldForwardProp: (o) => /* @__PURE__ */ function(e) {
|
|
123
123
|
return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
|
|
124
124
|
}(o) && o !== "classes" });
|
|
125
|
-
function
|
|
125
|
+
function A(o, e) {
|
|
126
126
|
if (!(o instanceof e)) throw new TypeError("Cannot call a class as a function");
|
|
127
127
|
}
|
|
128
128
|
function ee(o) {
|
|
@@ -132,7 +132,7 @@ function ee(o) {
|
|
|
132
132
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
133
133
|
})(o);
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function Rt(o) {
|
|
136
136
|
var e = function(t) {
|
|
137
137
|
if (ee(t) != "object" || !t) return t;
|
|
138
138
|
var n = t[Symbol.toPrimitive];
|
|
@@ -145,14 +145,14 @@ function wt(o) {
|
|
|
145
145
|
}(o);
|
|
146
146
|
return ee(e) == "symbol" ? e : e + "";
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function Ne(o, e) {
|
|
149
149
|
for (var t = 0; t < e.length; t++) {
|
|
150
150
|
var n = e[t];
|
|
151
|
-
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(o,
|
|
151
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(o, Rt(n.key), n);
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
|
-
function
|
|
155
|
-
return e &&
|
|
154
|
+
function E(o, e, t) {
|
|
155
|
+
return e && Ne(o.prototype, e), t && Ne(o, t), Object.defineProperty(o, "prototype", { writable: !1 }), o;
|
|
156
156
|
}
|
|
157
157
|
function W(o, e) {
|
|
158
158
|
if (e && (ee(e) == "object" || typeof e == "function")) return e;
|
|
@@ -162,28 +162,28 @@ function W(o, e) {
|
|
|
162
162
|
return t;
|
|
163
163
|
}(o);
|
|
164
164
|
}
|
|
165
|
-
function
|
|
166
|
-
return (
|
|
165
|
+
function O(o) {
|
|
166
|
+
return (O = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
167
167
|
return e.__proto__ || Object.getPrototypeOf(e);
|
|
168
168
|
})(o);
|
|
169
169
|
}
|
|
170
170
|
function D(o, e) {
|
|
171
171
|
if (typeof e != "function" && e !== null) throw new TypeError("Super expression must either be null or a function");
|
|
172
|
-
o.prototype = Object.create(e && e.prototype, { constructor: { value: o, writable: !0, configurable: !0 } }), Object.defineProperty(o, "prototype", { writable: !1 }), e &&
|
|
172
|
+
o.prototype = Object.create(e && e.prototype, { constructor: { value: o, writable: !0, configurable: !0 } }), Object.defineProperty(o, "prototype", { writable: !1 }), e && Io(o, e);
|
|
173
173
|
}
|
|
174
174
|
function p(o, e, t) {
|
|
175
|
-
return (e =
|
|
175
|
+
return (e = Rt(e)) in o ? Object.defineProperty(o, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : o[e] = t, o;
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function bt() {
|
|
178
178
|
var o = this.constructor.getDerivedStateFromProps(this.props, this.state);
|
|
179
179
|
o != null && this.setState(o);
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function Tt(o) {
|
|
182
182
|
this.setState(function(e) {
|
|
183
183
|
return this.constructor.getDerivedStateFromProps(o, e) ?? null;
|
|
184
184
|
}.bind(this));
|
|
185
185
|
}
|
|
186
|
-
function
|
|
186
|
+
function zt(o, e) {
|
|
187
187
|
try {
|
|
188
188
|
var t = this.props, n = this.state;
|
|
189
189
|
this.props = o, this.state = e, this.__reactInternalSnapshotFlag = !0, this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(t, n);
|
|
@@ -208,9 +208,9 @@ function ue(o) {
|
|
|
208
208
|
The above lifecycles should be removed. Learn more about this warning here:
|
|
209
209
|
https://fb.me/react-async-component-lifecycle-hooks`);
|
|
210
210
|
}
|
|
211
|
-
if (typeof o.getDerivedStateFromProps == "function" && (e.componentWillMount =
|
|
211
|
+
if (typeof o.getDerivedStateFromProps == "function" && (e.componentWillMount = bt, e.componentWillReceiveProps = Tt), typeof e.getSnapshotBeforeUpdate == "function") {
|
|
212
212
|
if (typeof e.componentDidUpdate != "function") throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");
|
|
213
|
-
e.componentWillUpdate =
|
|
213
|
+
e.componentWillUpdate = zt;
|
|
214
214
|
var a = e.componentDidUpdate;
|
|
215
215
|
e.componentDidUpdate = function(s, c, d) {
|
|
216
216
|
var h = this.__reactInternalSnapshotFlag ? this.__reactInternalSnapshot : d;
|
|
@@ -219,7 +219,7 @@ https://fb.me/react-async-component-lifecycle-hooks`);
|
|
|
219
219
|
}
|
|
220
220
|
return o;
|
|
221
221
|
}
|
|
222
|
-
function
|
|
222
|
+
function Be(o, e) {
|
|
223
223
|
var t = Object.keys(o);
|
|
224
224
|
if (Object.getOwnPropertySymbols) {
|
|
225
225
|
var n = Object.getOwnPropertySymbols(o);
|
|
@@ -229,34 +229,34 @@ function je(o, e) {
|
|
|
229
229
|
}
|
|
230
230
|
return t;
|
|
231
231
|
}
|
|
232
|
-
function
|
|
232
|
+
function Ue(o) {
|
|
233
233
|
for (var e = 1; e < arguments.length; e++) {
|
|
234
234
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
235
|
-
e % 2 ?
|
|
235
|
+
e % 2 ? Be(Object(t), !0).forEach(function(n) {
|
|
236
236
|
p(o, n, t[n]);
|
|
237
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) :
|
|
237
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : Be(Object(t)).forEach(function(n) {
|
|
238
238
|
Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
|
|
239
239
|
});
|
|
240
240
|
}
|
|
241
241
|
return o;
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function It() {
|
|
244
244
|
try {
|
|
245
245
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
246
246
|
}));
|
|
247
247
|
} catch {
|
|
248
248
|
}
|
|
249
|
-
return (
|
|
249
|
+
return (It = function() {
|
|
250
250
|
return !!o;
|
|
251
251
|
})();
|
|
252
252
|
}
|
|
253
|
-
|
|
254
|
-
var
|
|
253
|
+
bt.__suppressDeprecationWarning = !0, Tt.__suppressDeprecationWarning = !0, zt.__suppressDeprecationWarning = !0;
|
|
254
|
+
var Ve = function() {
|
|
255
255
|
function o() {
|
|
256
256
|
var e, t, n, r;
|
|
257
|
-
|
|
257
|
+
A(this, o);
|
|
258
258
|
for (var l = arguments.length, i = new Array(l), a = 0; a < l; a++) i[a] = arguments[a];
|
|
259
|
-
return t = this, n = o, r = [].concat(i), n =
|
|
259
|
+
return t = this, n = o, r = [].concat(i), n = O(n), p(e = W(t, It() ? Reflect.construct(n, r || [], O(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) {
|
|
260
260
|
var c = e.props, d = c.columnCount, h = c.disabled, f = c.mode, u = c.rowCount;
|
|
261
261
|
if (!h) {
|
|
262
262
|
var v = e._getScrollState(), m = v.scrollToColumn, _ = v.scrollToRow, S = e._getScrollState(), y = S.scrollToColumn, g = S.scrollToRow;
|
|
@@ -280,22 +280,22 @@ var Ne = function() {
|
|
|
280
280
|
e._columnStartIndex = c, e._columnStopIndex = d, e._rowStartIndex = h, e._rowStopIndex = f;
|
|
281
281
|
}), e;
|
|
282
282
|
}
|
|
283
|
-
return D(o,
|
|
283
|
+
return D(o, x.PureComponent), E(o, [{ key: "setScrollIndexes", value: function(e) {
|
|
284
284
|
var t = e.scrollToColumn, n = e.scrollToRow;
|
|
285
285
|
this.setState({ scrollToRow: n, scrollToColumn: t });
|
|
286
286
|
} }, { key: "render", value: function() {
|
|
287
287
|
var e = this.props, t = e.className, n = e.children, r = this._getScrollState(), l = r.scrollToColumn, i = r.scrollToRow;
|
|
288
|
-
return
|
|
288
|
+
return x.createElement("div", { className: t, onKeyDown: this._onKeyDown }, n({ onSectionRendered: this._onSectionRendered, scrollToColumn: l, scrollToRow: i }));
|
|
289
289
|
} }, { key: "_getScrollState", value: function() {
|
|
290
290
|
return this.props.isControlled ? this.props : this.state;
|
|
291
291
|
} }, { key: "_updateScrollState", value: function(e) {
|
|
292
292
|
var t = e.scrollToColumn, n = e.scrollToRow, r = this.props, l = r.isControlled, i = r.onScrollToChange;
|
|
293
293
|
typeof i == "function" && i({ scrollToColumn: t, scrollToRow: n }), l || this.setState({ scrollToColumn: t, scrollToRow: n });
|
|
294
294
|
} }], [{ key: "getDerivedStateFromProps", value: function(e, t) {
|
|
295
|
-
return e.isControlled ? {} : e.scrollToColumn !== t.instanceProps.prevScrollToColumn || e.scrollToRow !== t.instanceProps.prevScrollToRow ?
|
|
295
|
+
return e.isControlled ? {} : e.scrollToColumn !== t.instanceProps.prevScrollToColumn || e.scrollToRow !== t.instanceProps.prevScrollToRow ? Ue(Ue({}, t), {}, { scrollToColumn: e.scrollToColumn, scrollToRow: e.scrollToRow, instanceProps: { prevScrollToColumn: e.scrollToColumn, prevScrollToRow: e.scrollToRow } }) : {};
|
|
296
296
|
} }]);
|
|
297
297
|
}();
|
|
298
|
-
function
|
|
298
|
+
function Pt(o, e) {
|
|
299
299
|
var t, n, r = (t = e !== void 0 ? e : typeof window < "u" ? window : typeof self < "u" ? self : global).document !== void 0 && t.document.attachEvent;
|
|
300
300
|
if (!r) {
|
|
301
301
|
var l = (n = t.requestAnimationFrame || t.mozRequestAnimationFrame || t.webkitRequestAnimationFrame || function(g) {
|
|
@@ -308,15 +308,15 @@ function zt(o, e) {
|
|
|
308
308
|
return g(w);
|
|
309
309
|
};
|
|
310
310
|
}(), a = function(g) {
|
|
311
|
-
var w = g.__resizeTriggers__,
|
|
312
|
-
|
|
311
|
+
var w = g.__resizeTriggers__, C = w.firstElementChild, b = w.lastElementChild, R = C.firstElementChild;
|
|
312
|
+
b.scrollLeft = b.scrollWidth, b.scrollTop = b.scrollHeight, R.style.width = C.offsetWidth + 1 + "px", R.style.height = C.offsetHeight + 1 + "px", C.scrollLeft = C.scrollWidth, C.scrollTop = C.scrollHeight;
|
|
313
313
|
}, s = function(g) {
|
|
314
314
|
if (!(g.target.className && typeof g.target.className.indexOf == "function" && g.target.className.indexOf("contract-trigger") < 0 && g.target.className.indexOf("expand-trigger") < 0)) {
|
|
315
315
|
var w = this;
|
|
316
316
|
a(this), this.__resizeRAF__ && i(this.__resizeRAF__), this.__resizeRAF__ = l(function() {
|
|
317
|
-
var
|
|
318
|
-
((
|
|
319
|
-
|
|
317
|
+
var C;
|
|
318
|
+
((C = w).offsetWidth != C.__resizeLast__.width || C.offsetHeight != C.__resizeLast__.height) && (w.__resizeLast__.width = w.offsetWidth, w.__resizeLast__.height = w.offsetHeight, w.__resizeListeners__.forEach(function(b) {
|
|
319
|
+
b.call(w, g);
|
|
320
320
|
}));
|
|
321
321
|
});
|
|
322
322
|
}
|
|
@@ -333,17 +333,17 @@ function zt(o, e) {
|
|
|
333
333
|
if (r) g.attachEvent("onresize", w);
|
|
334
334
|
else {
|
|
335
335
|
if (!g.__resizeTriggers__) {
|
|
336
|
-
var
|
|
337
|
-
|
|
336
|
+
var C = g.ownerDocument, b = t.getComputedStyle(g);
|
|
337
|
+
b && b.position == "static" && (g.style.position = "relative"), function(I) {
|
|
338
338
|
if (!I.getElementById("detectElementResize")) {
|
|
339
|
-
var
|
|
340
|
-
|
|
339
|
+
var k = (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], T = I.createElement("style");
|
|
340
|
+
T.id = "detectElementResize", T.type = "text/css", o != null && T.setAttribute("nonce", o), T.styleSheet ? T.styleSheet.cssText = k : T.appendChild(I.createTextNode(k)), P.appendChild(T);
|
|
341
341
|
}
|
|
342
|
-
}(
|
|
343
|
-
var
|
|
344
|
-
|
|
345
|
-
var
|
|
346
|
-
|
|
342
|
+
}(C), g.__resizeLast__ = {}, g.__resizeListeners__ = [], (g.__resizeTriggers__ = C.createElement("div")).className = "resize-triggers";
|
|
343
|
+
var R = C.createElement("div");
|
|
344
|
+
R.className = "expand-trigger", R.appendChild(C.createElement("div"));
|
|
345
|
+
var z = C.createElement("div");
|
|
346
|
+
z.className = "contract-trigger", g.__resizeTriggers__.appendChild(R), g.__resizeTriggers__.appendChild(z), g.appendChild(g.__resizeTriggers__), a(g), g.addEventListener("scroll", s, !0), h && (g.__resizeTriggers__.__animationListener__ = function(I) {
|
|
347
347
|
I.animationName == _ && a(g);
|
|
348
348
|
}, g.__resizeTriggers__.addEventListener(h, g.__resizeTriggers__.__animationListener__));
|
|
349
349
|
}
|
|
@@ -360,7 +360,7 @@ function zt(o, e) {
|
|
|
360
360
|
}
|
|
361
361
|
} };
|
|
362
362
|
}
|
|
363
|
-
function
|
|
363
|
+
function $e(o, e) {
|
|
364
364
|
var t = Object.keys(o);
|
|
365
365
|
if (Object.getOwnPropertySymbols) {
|
|
366
366
|
var n = Object.getOwnPropertySymbols(o);
|
|
@@ -370,34 +370,34 @@ function Be(o, e) {
|
|
|
370
370
|
}
|
|
371
371
|
return t;
|
|
372
372
|
}
|
|
373
|
-
function
|
|
373
|
+
function Ke(o) {
|
|
374
374
|
for (var e = 1; e < arguments.length; e++) {
|
|
375
375
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
376
|
-
e % 2 ?
|
|
376
|
+
e % 2 ? $e(Object(t), !0).forEach(function(n) {
|
|
377
377
|
p(o, n, t[n]);
|
|
378
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) :
|
|
378
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : $e(Object(t)).forEach(function(n) {
|
|
379
379
|
Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
|
|
380
380
|
});
|
|
381
381
|
}
|
|
382
382
|
return o;
|
|
383
383
|
}
|
|
384
|
-
function
|
|
384
|
+
function kt() {
|
|
385
385
|
try {
|
|
386
386
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
387
387
|
}));
|
|
388
388
|
} catch {
|
|
389
389
|
}
|
|
390
|
-
return (
|
|
390
|
+
return (kt = function() {
|
|
391
391
|
return !!o;
|
|
392
392
|
})();
|
|
393
393
|
}
|
|
394
|
-
p(
|
|
395
|
-
var
|
|
394
|
+
p(Ve, "defaultProps", { disabled: !1, isControlled: !1, mode: "edges", scrollToColumn: 0, scrollToRow: 0 }), ue(Ve);
|
|
395
|
+
var Ot = function() {
|
|
396
396
|
function o() {
|
|
397
397
|
var e, t, n, r;
|
|
398
|
-
|
|
398
|
+
A(this, o);
|
|
399
399
|
for (var l = arguments.length, i = new Array(l), a = 0; a < l; a++) i[a] = arguments[a];
|
|
400
|
-
return t = this, n = o, r = [].concat(i), n =
|
|
400
|
+
return t = this, n = o, r = [].concat(i), n = O(n), p(e = W(t, kt() ? Reflect.construct(n, r || [], O(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() {
|
|
401
401
|
var s = e.props, c = s.disableHeight, d = s.disableWidth, h = s.onResize;
|
|
402
402
|
if (e._parentNode) {
|
|
403
403
|
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 - _;
|
|
@@ -407,47 +407,47 @@ var It = function() {
|
|
|
407
407
|
e._autoSizer = s;
|
|
408
408
|
}), e;
|
|
409
409
|
}
|
|
410
|
-
return D(o,
|
|
410
|
+
return D(o, x.Component), E(o, [{ key: "componentDidMount", value: function() {
|
|
411
411
|
var e = this.props.nonce;
|
|
412
|
-
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 =
|
|
412
|
+
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 = Pt(e, this._window), this._detectElementResize.addResizeListener(this._parentNode, this._onResize), this._onResize());
|
|
413
413
|
} }, { key: "componentWillUnmount", value: function() {
|
|
414
414
|
this._detectElementResize && this._parentNode && this._detectElementResize.removeResizeListener(this._parentNode, this._onResize);
|
|
415
415
|
} }, { key: "render", value: function() {
|
|
416
416
|
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 = {};
|
|
417
|
-
return r || (d.height = 0, h.height = s), l || (d.width = 0, h.width = c),
|
|
417
|
+
return r || (d.height = 0, h.height = s), l || (d.width = 0, h.width = c), x.createElement("div", { className: n, ref: this._setRef, style: Ke(Ke({}, d), i) }, t(h));
|
|
418
418
|
} }]);
|
|
419
419
|
}();
|
|
420
|
-
function
|
|
420
|
+
function Mt() {
|
|
421
421
|
try {
|
|
422
422
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
423
423
|
}));
|
|
424
424
|
} catch {
|
|
425
425
|
}
|
|
426
|
-
return (
|
|
426
|
+
return (Mt = function() {
|
|
427
427
|
return !!o;
|
|
428
428
|
})();
|
|
429
429
|
}
|
|
430
|
-
p(
|
|
430
|
+
p(Ot, "defaultProps", { onResize: function() {
|
|
431
431
|
}, disableHeight: !1, disableWidth: !1, style: {} });
|
|
432
|
-
var
|
|
432
|
+
var Fo = function() {
|
|
433
433
|
function o() {
|
|
434
434
|
var e, t, n, r;
|
|
435
|
-
|
|
435
|
+
A(this, o);
|
|
436
436
|
for (var l = arguments.length, i = new Array(l), a = 0; a < l; a++) i[a] = arguments[a];
|
|
437
|
-
return t = this, n = o, r = [].concat(i), n =
|
|
437
|
+
return t = this, n = o, r = [].concat(i), n = O(n), p(e = W(t, Mt() ? Reflect.construct(n, r || [], O(t).constructor) : n.apply(t, r)), "_child", x.createRef()), p(e, "_measure", function() {
|
|
438
438
|
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;
|
|
439
439
|
_ === 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 }));
|
|
440
440
|
}), p(e, "_registerChild", function(s) {
|
|
441
441
|
!s || s instanceof Element || console.warn("CellMeasurer registerChild expects to be passed Element or null"), e._child.current = s, s && e._maybeMeasureCell();
|
|
442
442
|
}), e;
|
|
443
443
|
}
|
|
444
|
-
return D(o,
|
|
444
|
+
return D(o, x.PureComponent), E(o, [{ key: "componentDidMount", value: function() {
|
|
445
445
|
this._maybeMeasureCell();
|
|
446
446
|
} }, { key: "componentDidUpdate", value: function() {
|
|
447
447
|
this._maybeMeasureCell();
|
|
448
448
|
} }, { key: "render", value: function() {
|
|
449
449
|
var e = this, t = this.props.children, n = typeof t == "function" ? t({ measure: this._measure, registerChild: this._registerChild }) : t;
|
|
450
|
-
return n === null ? n :
|
|
450
|
+
return n === null ? n : Oo(n, { ref: function(r) {
|
|
451
451
|
typeof n.ref == "function" ? n.ref(r) : n.ref && (n.ref.current = r), e._child.current = r;
|
|
452
452
|
} });
|
|
453
453
|
} }, { key: "_getCellMeasurements", value: function() {
|
|
@@ -480,17 +480,17 @@ function te() {
|
|
|
480
480
|
e = r, i && a && n(r);
|
|
481
481
|
};
|
|
482
482
|
}
|
|
483
|
-
p(
|
|
484
|
-
const
|
|
485
|
-
var
|
|
486
|
-
function
|
|
487
|
-
if ((!
|
|
483
|
+
p(Fo, "__internalCellMeasurerFlag", !1);
|
|
484
|
+
const No = !(typeof window > "u" || !window.document || !window.document.createElement);
|
|
485
|
+
var me;
|
|
486
|
+
function Te(o) {
|
|
487
|
+
if ((!me && me !== 0 || o) && No) {
|
|
488
488
|
var e = document.createElement("div");
|
|
489
|
-
e.style.position = "absolute", e.style.top = "-9999px", e.style.width = "50px", e.style.height = "50px", e.style.overflow = "scroll", document.body.appendChild(e),
|
|
489
|
+
e.style.position = "absolute", e.style.top = "-9999px", e.style.width = "50px", e.style.height = "50px", e.style.overflow = "scroll", document.body.appendChild(e), me = e.offsetWidth - e.clientWidth, document.body.removeChild(e);
|
|
490
490
|
}
|
|
491
|
-
return
|
|
491
|
+
return me;
|
|
492
492
|
}
|
|
493
|
-
function
|
|
493
|
+
function qe(o, e) {
|
|
494
494
|
var t = Object.keys(o);
|
|
495
495
|
if (Object.getOwnPropertySymbols) {
|
|
496
496
|
var n = Object.getOwnPropertySymbols(o);
|
|
@@ -500,33 +500,33 @@ function Ve(o, e) {
|
|
|
500
500
|
}
|
|
501
501
|
return t;
|
|
502
502
|
}
|
|
503
|
-
function
|
|
503
|
+
function Xe(o) {
|
|
504
504
|
for (var e = 1; e < arguments.length; e++) {
|
|
505
505
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
506
|
-
e % 2 ?
|
|
506
|
+
e % 2 ? qe(Object(t), !0).forEach(function(n) {
|
|
507
507
|
p(o, n, t[n]);
|
|
508
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) :
|
|
508
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : qe(Object(t)).forEach(function(n) {
|
|
509
509
|
Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
|
|
510
510
|
});
|
|
511
511
|
}
|
|
512
512
|
return o;
|
|
513
513
|
}
|
|
514
|
-
function
|
|
514
|
+
function Lt() {
|
|
515
515
|
try {
|
|
516
516
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
517
517
|
}));
|
|
518
518
|
} catch {
|
|
519
519
|
}
|
|
520
|
-
return (
|
|
520
|
+
return (Lt = function() {
|
|
521
521
|
return !!o;
|
|
522
522
|
})();
|
|
523
523
|
}
|
|
524
|
-
var ne = "requested",
|
|
524
|
+
var ne = "requested", _e = function() {
|
|
525
525
|
function o() {
|
|
526
526
|
var e, t, n, r;
|
|
527
|
-
|
|
527
|
+
A(this, o);
|
|
528
528
|
for (var l = arguments.length, i = new Array(l), a = 0; a < l; a++) i[a] = arguments[a];
|
|
529
|
-
return t = this, n = o, r = [].concat(i), n =
|
|
529
|
+
return t = this, n = o, r = [].concat(i), n = O(n), p(e = W(t, Lt() ? Reflect.construct(n, r || [], O(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() {
|
|
530
530
|
var s = e.props, c = s.cellLayoutManager, d = s.onSectionRendered;
|
|
531
531
|
e._onSectionRenderedMemoizer({ callback: d, indices: { indices: c.getLastRenderedIndices() } });
|
|
532
532
|
}), p(e, "_setScrollingContainerRef", function(s) {
|
|
@@ -547,13 +547,13 @@ var ne = "requested", ve = function() {
|
|
|
547
547
|
}
|
|
548
548
|
e._invokeOnScrollMemoizer({ scrollLeft: y, scrollTop: g, totalWidth: S, totalHeight: _ });
|
|
549
549
|
}
|
|
550
|
-
}), e._scrollbarSize =
|
|
550
|
+
}), e._scrollbarSize = Te(), e._scrollbarSize === void 0 ? (e._scrollbarSizeMeasured = !1, e._scrollbarSize = 0) : e._scrollbarSizeMeasured = !0, e;
|
|
551
551
|
}
|
|
552
|
-
return D(o,
|
|
552
|
+
return D(o, x.PureComponent), E(o, [{ key: "recomputeCellSizesAndPositions", value: function() {
|
|
553
553
|
this._calculateSizeAndPositionDataOnNextUpdate = !0, this.forceUpdate();
|
|
554
554
|
} }, { key: "componentDidMount", value: function() {
|
|
555
555
|
var e = this.props, t = e.cellLayoutManager, n = e.scrollLeft, r = e.scrollToCell, l = e.scrollTop;
|
|
556
|
-
this._scrollbarSizeMeasured || (this._scrollbarSize =
|
|
556
|
+
this._scrollbarSizeMeasured || (this._scrollbarSize = Te(), this._scrollbarSizeMeasured = !0, this.setState({})), r >= 0 ? this._updateScrollPositionForScrollToCell() : (n >= 0 || l >= 0) && this._setScrollPosition({ scrollLeft: n, scrollTop: l }), this._invokeOnSectionRenderedHelper();
|
|
557
557
|
var i = t.getTotalSize(), a = i.height, s = i.width;
|
|
558
558
|
this._invokeOnScrollMemoizer({ scrollLeft: n || 0, scrollTop: l || 0, totalHeight: a, totalWidth: s });
|
|
559
559
|
} }, { key: "componentDidUpdate", value: function(e, t) {
|
|
@@ -564,8 +564,8 @@ var ne = "requested", ve = function() {
|
|
|
564
564
|
} }, { key: "render", value: function() {
|
|
565
565
|
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;
|
|
566
566
|
(this._lastRenderedCellCount !== n || this._lastRenderedCellLayoutManager !== r || this._calculateSizeAndPositionDataOnNextUpdate) && (this._lastRenderedCellCount = n, this._lastRenderedCellLayoutManager = r, this._calculateSizeAndPositionDataOnNextUpdate = !1, r.calculateSizeAndPositionData());
|
|
567
|
-
var S = r.getTotalSize(), y = S.height, g = S.width, w = Math.max(0, m - a),
|
|
568
|
-
return I.overflowX = g +
|
|
567
|
+
var S = r.getTotalSize(), y = S.height, g = S.width, w = Math.max(0, m - a), C = Math.max(0, _ - h), b = Math.min(g, m + f + a), R = Math.min(y, _ + i + h), z = i > 0 && f > 0 ? r.cellRenderers({ height: R - C, isScrolling: v, width: b - w, x: w, y: C }) : [], I = { boxSizing: "border-box", direction: "ltr", height: t ? "auto" : i, position: "relative", WebkitOverflowScrolling: "touch", width: f, willChange: "transform" }, k = y > i ? this._scrollbarSize : 0, P = g > f ? this._scrollbarSize : 0;
|
|
568
|
+
return I.overflowX = g + k <= f ? "hidden" : "auto", I.overflowY = y + P <= i ? "hidden" : "auto", x.createElement("div", { ref: this._setScrollingContainerRef, "aria-label": this.props["aria-label"], className: N("ReactVirtualized__Collection", l), id: s, onScroll: this._onScroll, role: "grid", style: Xe(Xe({}, I), d), tabIndex: 0 }, n > 0 && x.createElement("div", { className: "ReactVirtualized__Collection__innerScrollContainer", style: { height: y, maxHeight: y, maxWidth: g, overflow: "hidden", pointerEvents: v ? "none" : "", width: g } }, z), n === 0 && c());
|
|
569
569
|
} }, { key: "_enablePointerEventsAfterDelay", value: function() {
|
|
570
570
|
var e = this;
|
|
571
571
|
this._disablePointerEventsTimeoutId && clearTimeout(this._disablePointerEventsTimeoutId), this._disablePointerEventsTimeoutId = setTimeout(function() {
|
|
@@ -584,16 +584,16 @@ var ne = "requested", ve = function() {
|
|
|
584
584
|
return e.cellCount !== 0 || t.scrollLeft === 0 && t.scrollTop === 0 ? e.scrollLeft !== t.scrollLeft || e.scrollTop !== t.scrollTop ? { scrollLeft: e.scrollLeft != null ? e.scrollLeft : t.scrollLeft, scrollTop: e.scrollTop != null ? e.scrollTop : t.scrollTop, scrollPositionChangeReason: ne } : null : { scrollLeft: 0, scrollTop: 0, scrollPositionChangeReason: ne };
|
|
585
585
|
} }]);
|
|
586
586
|
}();
|
|
587
|
-
p(
|
|
587
|
+
p(_e, "defaultProps", { "aria-label": "grid", horizontalOverscanSize: 0, noContentRenderer: function() {
|
|
588
588
|
return null;
|
|
589
589
|
}, onScroll: function() {
|
|
590
590
|
return null;
|
|
591
591
|
}, onSectionRendered: function() {
|
|
592
592
|
return null;
|
|
593
|
-
}, scrollToAlignment: "auto", scrollToCell: -1, style: {}, verticalOverscanSize: 0 }),
|
|
594
|
-
var
|
|
593
|
+
}, scrollToAlignment: "auto", scrollToCell: -1, style: {}, verticalOverscanSize: 0 }), _e.propTypes = {}, ue(_e);
|
|
594
|
+
var Bo = E(function o(e) {
|
|
595
595
|
var t = e.height, n = e.width, r = e.x, l = e.y;
|
|
596
|
-
|
|
596
|
+
A(this, o), this.height = t, this.width = n, this.x = r, this.y = l, this._indexMap = {}, this._indices = [];
|
|
597
597
|
}, [{ key: "addCellIndex", value: function(o) {
|
|
598
598
|
var e = o.index;
|
|
599
599
|
this._indexMap[e] || (this._indexMap[e] = !0, this._indices.push(e));
|
|
@@ -601,9 +601,9 @@ var Wo = H(function o(e) {
|
|
|
601
601
|
return this._indices;
|
|
602
602
|
} }, { key: "toString", value: function() {
|
|
603
603
|
return "".concat(this.x, ",").concat(this.y, " ").concat(this.width, "x").concat(this.height);
|
|
604
|
-
} }]),
|
|
604
|
+
} }]), Uo = E(function o() {
|
|
605
605
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 100;
|
|
606
|
-
|
|
606
|
+
A(this, o), this._sectionSize = e, this._cellMetadata = [], this._sections = {};
|
|
607
607
|
}, [{ key: "getCellIndices", value: function(o) {
|
|
608
608
|
var e = o.height, t = o.width, n = o.x, r = o.y, l = {};
|
|
609
609
|
return this.getSections({ height: e, width: t, x: n, y: r }).forEach(function(i) {
|
|
@@ -619,7 +619,7 @@ var Wo = H(function o(e) {
|
|
|
619
619
|
} }, { key: "getSections", value: function(o) {
|
|
620
620
|
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++) {
|
|
621
621
|
var f = "".concat(d, ".").concat(h);
|
|
622
|
-
this._sections[f] || (this._sections[f] = new
|
|
622
|
+
this._sections[f] || (this._sections[f] = new Bo({ height: this._sectionSize, width: this._sectionSize, x: d * this._sectionSize, y: h * this._sectionSize })), c.push(this._sections[f]);
|
|
623
623
|
}
|
|
624
624
|
return c;
|
|
625
625
|
} }, { key: "getTotalSectionCount", value: function() {
|
|
@@ -635,7 +635,7 @@ var Wo = H(function o(e) {
|
|
|
635
635
|
return n.addCellIndex({ index: t });
|
|
636
636
|
});
|
|
637
637
|
} }]);
|
|
638
|
-
function
|
|
638
|
+
function Ye(o) {
|
|
639
639
|
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;
|
|
640
640
|
switch (t) {
|
|
641
641
|
case "start":
|
|
@@ -648,22 +648,22 @@ function Ke(o) {
|
|
|
648
648
|
return Math.max(s, Math.min(a, i));
|
|
649
649
|
}
|
|
650
650
|
}
|
|
651
|
-
function
|
|
651
|
+
function Gt() {
|
|
652
652
|
try {
|
|
653
653
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
654
654
|
}));
|
|
655
655
|
} catch {
|
|
656
656
|
}
|
|
657
|
-
return (
|
|
657
|
+
return (Gt = function() {
|
|
658
658
|
return !!o;
|
|
659
659
|
})();
|
|
660
660
|
}
|
|
661
|
-
var
|
|
661
|
+
var Je = function() {
|
|
662
662
|
function o(e, t) {
|
|
663
663
|
var n, r, l, i;
|
|
664
|
-
return
|
|
664
|
+
return A(this, o), r = this, i = [e, t], l = O(l = o), (n = W(r, Gt() ? Reflect.construct(l, i || [], O(r).constructor) : l.apply(r, i)))._cellMetadata = [], n._lastRenderedCellIndices = [], n._cellCache = [], n._isScrollingChange = n._isScrollingChange.bind(n), n._setCollectionViewRef = n._setCollectionViewRef.bind(n), n;
|
|
665
665
|
}
|
|
666
|
-
return D(o,
|
|
666
|
+
return D(o, x.PureComponent), E(o, [{ key: "forceUpdate", value: function() {
|
|
667
667
|
this._collectionView !== void 0 && this._collectionView.forceUpdate();
|
|
668
668
|
} }, { key: "recomputeCellSizesAndPositions", value: function() {
|
|
669
669
|
this._cellCache = [], this._collectionView.recomputeCellSizesAndPositions();
|
|
@@ -671,10 +671,10 @@ var qe = function() {
|
|
|
671
671
|
var e = V({}, (function(t) {
|
|
672
672
|
if (t == null) throw new TypeError("Cannot destructure " + t);
|
|
673
673
|
}(this.props), this.props));
|
|
674
|
-
return
|
|
674
|
+
return x.createElement(_e, V({ cellLayoutManager: this, isScrollingChange: this._isScrollingChange, ref: this._setCollectionViewRef }, e));
|
|
675
675
|
} }, { key: "calculateSizeAndPositionData", value: function() {
|
|
676
676
|
var e = this.props, t = function(n) {
|
|
677
|
-
for (var r = n.cellCount, l = n.cellSizeAndPositionGetter, i = [], a = new
|
|
677
|
+
for (var r = n.cellCount, l = n.cellSizeAndPositionGetter, i = [], a = new Uo(n.sectionSize), s = 0, c = 0, d = 0; d < r; d++) {
|
|
678
678
|
var h = l({ index: d });
|
|
679
679
|
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, `:
|
|
680
680
|
x:`).concat(h.x, ", y:").concat(h.y, ", width:").concat(h.width, ", height:").concat(h.height));
|
|
@@ -689,7 +689,7 @@ var qe = function() {
|
|
|
689
689
|
var t = e.align, n = e.cellIndex, r = e.height, l = e.scrollLeft, i = e.scrollTop, a = e.width, s = this.props.cellCount;
|
|
690
690
|
if (n >= 0 && n < s) {
|
|
691
691
|
var c = this._cellMetadata[n];
|
|
692
|
-
l =
|
|
692
|
+
l = Ye({ align: t, cellOffset: c.x, cellSize: c.width, containerSize: a, currentOffset: l }), i = Ye({ align: t, cellOffset: c.y, cellSize: c.height, containerSize: r, currentOffset: i });
|
|
693
693
|
}
|
|
694
694
|
return { scrollLeft: l, scrollTop: i };
|
|
695
695
|
} }, { key: "getTotalSize", value: function() {
|
|
@@ -706,30 +706,30 @@ var qe = function() {
|
|
|
706
706
|
this._collectionView = e;
|
|
707
707
|
} }]);
|
|
708
708
|
}();
|
|
709
|
-
function
|
|
709
|
+
function At() {
|
|
710
710
|
try {
|
|
711
711
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
712
712
|
}));
|
|
713
713
|
} catch {
|
|
714
714
|
}
|
|
715
|
-
return (
|
|
715
|
+
return (At = function() {
|
|
716
716
|
return !!o;
|
|
717
717
|
})();
|
|
718
718
|
}
|
|
719
|
-
function
|
|
719
|
+
function Ze(o) {
|
|
720
720
|
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;
|
|
721
721
|
e === l && (typeof t != "number" && typeof i != "number" || t === i) || (n(r), s >= 0 && s === a && c());
|
|
722
722
|
}
|
|
723
723
|
function ie(o, e) {
|
|
724
724
|
if (o == null) return {};
|
|
725
|
-
var t, n, r =
|
|
725
|
+
var t, n, r = Po(o, e);
|
|
726
726
|
if (Object.getOwnPropertySymbols) {
|
|
727
727
|
var l = Object.getOwnPropertySymbols(o);
|
|
728
728
|
for (n = 0; n < l.length; n++) t = l[n], e.indexOf(t) === -1 && {}.propertyIsEnumerable.call(o, t) && (r[t] = o[t]);
|
|
729
729
|
}
|
|
730
730
|
return r;
|
|
731
731
|
}
|
|
732
|
-
p(
|
|
732
|
+
p(Je, "defaultProps", { "aria-label": "grid", cellGroupRenderer: function(o) {
|
|
733
733
|
var e = o.cellCache, t = o.cellRenderer, n = o.cellSizeAndPositionGetter, r = o.indices, l = o.isScrolling;
|
|
734
734
|
return r.map(function(i) {
|
|
735
735
|
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 } };
|
|
@@ -737,12 +737,12 @@ p(qe, "defaultProps", { "aria-label": "grid", cellGroupRenderer: function(o) {
|
|
|
737
737
|
}).filter(function(i) {
|
|
738
738
|
return !!i;
|
|
739
739
|
});
|
|
740
|
-
} }),
|
|
740
|
+
} }), Je.propTypes = {}, function() {
|
|
741
741
|
function o(e, t) {
|
|
742
742
|
var n, r, l, i;
|
|
743
|
-
return
|
|
743
|
+
return A(this, o), r = this, i = [e, t], l = O(l = o), (n = W(r, At() ? Reflect.construct(l, i || [], O(r).constructor) : l.apply(r, i)))._registerChild = n._registerChild.bind(n), n;
|
|
744
744
|
}
|
|
745
|
-
return D(o,
|
|
745
|
+
return D(o, x.PureComponent), E(o, [{ key: "componentDidUpdate", value: function(e) {
|
|
746
746
|
var t = this.props, n = t.columnMaxWidth, r = t.columnMinWidth, l = t.columnCount, i = t.width;
|
|
747
747
|
n === e.columnMaxWidth && r === e.columnMinWidth && l === e.columnCount && i === e.width || this._registeredChild && this._registeredChild.recomputeGridSize();
|
|
748
748
|
} }, { key: "render", value: function() {
|
|
@@ -755,9 +755,9 @@ p(qe, "defaultProps", { "aria-label": "grid", cellGroupRenderer: function(o) {
|
|
|
755
755
|
this._registeredChild = e, this._registeredChild && this._registeredChild.recomputeGridSize();
|
|
756
756
|
} }]);
|
|
757
757
|
}().propTypes = {};
|
|
758
|
-
var F,
|
|
758
|
+
var F, Vo = E(function o(e) {
|
|
759
759
|
var t = e.cellCount, n = e.cellSizeGetter, r = e.estimatedCellSize;
|
|
760
|
-
|
|
760
|
+
A(this, o), p(this, "_cellSizeAndPositionData", {}), p(this, "_lastMeasuredIndex", -1), p(this, "_lastBatchedIndex", -1), p(this, "_cellCount", void 0), p(this, "_cellSizeGetter", void 0), p(this, "_estimatedCellSize", void 0), this._cellSizeGetter = n, this._cellCount = t, this._estimatedCellSize = r;
|
|
761
761
|
}, [{ key: "areOffsetsAdjusted", value: function() {
|
|
762
762
|
return !1;
|
|
763
763
|
} }, { key: "configure", value: function(o) {
|
|
@@ -827,9 +827,9 @@ var F, jo = H(function o(e) {
|
|
|
827
827
|
o = Math.max(0, o);
|
|
828
828
|
var e = this.getSizeAndPositionOfLastMeasuredCell(), t = Math.max(0, this._lastMeasuredIndex);
|
|
829
829
|
return e.offset >= o ? this._binarySearch(t, 0, o) : this._exponentialSearch(t, o);
|
|
830
|
-
} }]),
|
|
831
|
-
var t = e.maxScrollSize, n = t === void 0 ? typeof window < "u" && window.chrome ? 16777100 : 15e5 : t, r = ie(e,
|
|
832
|
-
|
|
830
|
+
} }]), $o = ["maxScrollSize"], Qe = E(function o(e) {
|
|
831
|
+
var t = e.maxScrollSize, n = t === void 0 ? typeof window < "u" && window.chrome ? 16777100 : 15e5 : t, r = ie(e, $o);
|
|
832
|
+
A(this, o), p(this, "_cellSizeAndPositionManager", void 0), p(this, "_maxScrollSize", void 0), this._cellSizeAndPositionManager = new Vo(r), this._maxScrollSize = n;
|
|
833
833
|
}, [{ key: "areOffsetsAdjusted", value: function() {
|
|
834
834
|
return this._cellSizeAndPositionManager.getTotalSize() > this._maxScrollSize;
|
|
835
835
|
} }, { key: "configure", value: function(o) {
|
|
@@ -873,27 +873,27 @@ var F, jo = H(function o(e) {
|
|
|
873
873
|
var l = this._getOffsetPercentage({ containerSize: e, offset: t, totalSize: r });
|
|
874
874
|
return Math.round(l * (n - e));
|
|
875
875
|
} }]);
|
|
876
|
-
function
|
|
876
|
+
function et(o) {
|
|
877
877
|
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;
|
|
878
878
|
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);
|
|
879
879
|
}
|
|
880
|
-
var
|
|
880
|
+
var Ko = (F = typeof window < "u" ? window : typeof self < "u" ? self : {}).requestAnimationFrame || F.webkitRequestAnimationFrame || F.mozRequestAnimationFrame || F.oRequestAnimationFrame || F.msRequestAnimationFrame || function(o) {
|
|
881
881
|
return F.setTimeout(o, 1e3 / 60);
|
|
882
|
-
},
|
|
882
|
+
}, qo = F.cancelAnimationFrame || F.webkitCancelAnimationFrame || F.mozCancelAnimationFrame || F.oCancelAnimationFrame || F.msCancelAnimationFrame || function(o) {
|
|
883
883
|
F.clearTimeout(o);
|
|
884
|
-
},
|
|
885
|
-
return
|
|
886
|
-
},
|
|
884
|
+
}, tt = Ko, Xo = qo, oe = function(o) {
|
|
885
|
+
return Xo(o.id);
|
|
886
|
+
}, Ge = function(o, e) {
|
|
887
887
|
var t;
|
|
888
888
|
Promise.resolve().then(function() {
|
|
889
889
|
t = Date.now();
|
|
890
890
|
});
|
|
891
891
|
var n = function() {
|
|
892
|
-
Date.now() - t >= e ? o.call() : r.id =
|
|
893
|
-
}, r = { id:
|
|
892
|
+
Date.now() - t >= e ? o.call() : r.id = tt(n);
|
|
893
|
+
}, r = { id: tt(n) };
|
|
894
894
|
return r;
|
|
895
895
|
};
|
|
896
|
-
function
|
|
896
|
+
function ot(o, e) {
|
|
897
897
|
var t = Object.keys(o);
|
|
898
898
|
if (Object.getOwnPropertySymbols) {
|
|
899
899
|
var n = Object.getOwnPropertySymbols(o);
|
|
@@ -906,28 +906,28 @@ function Qe(o, e) {
|
|
|
906
906
|
function j(o) {
|
|
907
907
|
for (var e = 1; e < arguments.length; e++) {
|
|
908
908
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
909
|
-
e % 2 ?
|
|
909
|
+
e % 2 ? ot(Object(t), !0).forEach(function(n) {
|
|
910
910
|
p(o, n, t[n]);
|
|
911
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) :
|
|
911
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : ot(Object(t)).forEach(function(n) {
|
|
912
912
|
Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
|
|
913
913
|
});
|
|
914
914
|
}
|
|
915
915
|
return o;
|
|
916
916
|
}
|
|
917
|
-
function
|
|
917
|
+
function Et() {
|
|
918
918
|
try {
|
|
919
919
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
920
920
|
}));
|
|
921
921
|
} catch {
|
|
922
922
|
}
|
|
923
|
-
return (
|
|
923
|
+
return (Et = function() {
|
|
924
924
|
return !!o;
|
|
925
925
|
})();
|
|
926
926
|
}
|
|
927
|
-
var
|
|
927
|
+
var nt = "requested", $ = function() {
|
|
928
928
|
function o(e) {
|
|
929
929
|
var t, n, r, l;
|
|
930
|
-
|
|
930
|
+
A(this, o), n = this, l = [e], r = O(r = o), p(t = W(n, Et() ? Reflect.construct(r, l || [], O(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() {
|
|
931
931
|
t._disablePointerEventsTimeoutId = null, t.setState({ isScrolling: !1, needToResetStyleCache: !1 });
|
|
932
932
|
}), p(t, "_invokeOnGridRenderedHelper", function() {
|
|
933
933
|
var s = t.props.onSectionRendered;
|
|
@@ -937,14 +937,14 @@ var et = "requested", $ = function() {
|
|
|
937
937
|
}), p(t, "_onScroll", function(s) {
|
|
938
938
|
s.target === t._scrollingContainer && t.handleScrollEvent(s.target);
|
|
939
939
|
});
|
|
940
|
-
var i = new
|
|
940
|
+
var i = new Qe({ cellCount: e.columnCount, cellSizeGetter: function(s) {
|
|
941
941
|
return o._wrapSizeGetter(e.columnWidth)(s);
|
|
942
|
-
}, estimatedCellSize: o._getEstimatedColumnSize(e) }), a = new
|
|
942
|
+
}, estimatedCellSize: o._getEstimatedColumnSize(e) }), a = new Qe({ cellCount: e.rowCount, cellSizeGetter: function(s) {
|
|
943
943
|
return o._wrapSizeGetter(e.rowHeight)(s);
|
|
944
944
|
}, estimatedCellSize: o._getEstimatedRowSize(e) });
|
|
945
945
|
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;
|
|
946
946
|
}
|
|
947
|
-
return D(o,
|
|
947
|
+
return D(o, x.PureComponent), E(o, [{ key: "getOffsetForCell", value: function() {
|
|
948
948
|
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 });
|
|
949
949
|
return { scrollLeft: this._getCalculatedScrollLeft(s), scrollTop: this._getCalculatedScrollTop(s) };
|
|
950
950
|
} }, { key: "getTotalRowsHeight", value: function() {
|
|
@@ -990,15 +990,15 @@ var et = "requested", $ = function() {
|
|
|
990
990
|
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;
|
|
991
991
|
this._handleInvalidatedGridSize();
|
|
992
992
|
var g = a > 0 && e.columnCount === 0 || c > 0 && e.rowCount === 0;
|
|
993
|
-
_ ===
|
|
993
|
+
_ === nt && (!i && m >= 0 && (m !== this._scrollingContainer.scrollLeft || g) && (this._scrollingContainer.scrollLeft = m), !l && S >= 0 && (S !== this._scrollingContainer.scrollTop || g) && (this._scrollingContainer.scrollTop = S));
|
|
994
994
|
var w = (e.width === 0 || e.height === 0) && s > 0 && u > 0;
|
|
995
|
-
if (this._recomputeScrollLeftFlag ? (this._recomputeScrollLeftFlag = !1, this._updateScrollLeftForScrollToColumn(this.props)) :
|
|
995
|
+
if (this._recomputeScrollLeftFlag ? (this._recomputeScrollLeftFlag = !1, this._updateScrollLeftForScrollToColumn(this.props)) : et({ 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() {
|
|
996
996
|
return n._updateScrollLeftForScrollToColumn(n.props);
|
|
997
|
-
} }), this._recomputeScrollTopFlag ? (this._recomputeScrollTopFlag = !1, this._updateScrollTopForScrollToRow(this.props)) :
|
|
997
|
+
} }), this._recomputeScrollTopFlag ? (this._recomputeScrollTopFlag = !1, this._updateScrollTopForScrollToRow(this.props)) : et({ 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() {
|
|
998
998
|
return n._updateScrollTopForScrollToRow(n.props);
|
|
999
999
|
} }), this._invokeOnGridRenderedHelper(), m !== t.scrollLeft || S !== t.scrollTop) {
|
|
1000
|
-
var
|
|
1001
|
-
this._invokeOnScrollMemoizer({ scrollLeft: m, scrollTop: S, totalColumnsWidth:
|
|
1000
|
+
var C = y.rowSizeAndPositionManager.getTotalSize(), b = y.columnSizeAndPositionManager.getTotalSize();
|
|
1001
|
+
this._invokeOnScrollMemoizer({ scrollLeft: m, scrollTop: S, totalColumnsWidth: b, totalRowsHeight: C });
|
|
1002
1002
|
}
|
|
1003
1003
|
this._maybeCallOnScrollbarPresenceChange();
|
|
1004
1004
|
} }, { key: "componentWillUnmount", value: function() {
|
|
@@ -1006,35 +1006,35 @@ var et = "requested", $ = function() {
|
|
|
1006
1006
|
} }, { key: "render", value: function() {
|
|
1007
1007
|
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" };
|
|
1008
1008
|
y && (this._styleCache = {}), this.state.isScrolling || this._resetStyleCache(), this._calculateChildrenToRender(this.props, this.state);
|
|
1009
|
-
var
|
|
1010
|
-
|
|
1011
|
-
var I = this._childrenToDisplay,
|
|
1012
|
-
return
|
|
1009
|
+
var C = S.columnSizeAndPositionManager.getTotalSize(), b = S.rowSizeAndPositionManager.getTotalSize(), R = b > c ? S.scrollbarSize : 0, z = C > m ? S.scrollbarSize : 0;
|
|
1010
|
+
z === this._horizontalScrollBarSize && R === this._verticalScrollBarSize || (this._horizontalScrollBarSize = z, this._verticalScrollBarSize = R, this._scrollbarPresenceChanged = !0), w.overflowX = C + R <= m ? "hidden" : "auto", w.overflowY = b + z <= c ? "hidden" : "auto";
|
|
1011
|
+
var I = this._childrenToDisplay, k = I.length === 0 && c > 0 && m > 0;
|
|
1012
|
+
return x.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 && x.createElement("div", { className: "ReactVirtualized__Grid__innerScrollContainer", role: a, style: j({ width: t ? "auto" : C, height: b, maxWidth: C, maxHeight: b, overflow: "hidden", pointerEvents: g ? "none" : "", position: "relative" }, s) }, I), k && h());
|
|
1013
1013
|
} }, { key: "_calculateChildrenToRender", value: function() {
|
|
1014
1014
|
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);
|
|
1015
1015
|
if (this._childrenToDisplay = [], a > 0 && f > 0) {
|
|
1016
|
-
var w = _.columnSizeAndPositionManager.getVisibleCellRange({ containerSize: f, offset: y }),
|
|
1017
|
-
this._renderedColumnStartIndex = w.start, this._renderedColumnStopIndex = w.stop, this._renderedRowStartIndex =
|
|
1018
|
-
var
|
|
1016
|
+
var w = _.columnSizeAndPositionManager.getVisibleCellRange({ containerSize: f, offset: y }), C = _.rowSizeAndPositionManager.getVisibleCellRange({ containerSize: a, offset: S }), b = _.columnSizeAndPositionManager.getOffsetAdjustment({ containerSize: f, offset: y }), R = _.rowSizeAndPositionManager.getOffsetAdjustment({ containerSize: a, offset: S });
|
|
1017
|
+
this._renderedColumnStartIndex = w.start, this._renderedColumnStopIndex = w.stop, this._renderedRowStartIndex = C.start, this._renderedRowStopIndex = C.stop;
|
|
1018
|
+
var z = 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 C.start == "number" ? C.start : 0, stopIndex: typeof C.stop == "number" ? C.stop : -1 }), k = z.overscanStartIndex, P = z.overscanStopIndex, T = I.overscanStartIndex, L = I.overscanStopIndex;
|
|
1019
1019
|
if (i) {
|
|
1020
1020
|
if (!i.hasFixedHeight()) {
|
|
1021
|
-
for (var G =
|
|
1022
|
-
|
|
1021
|
+
for (var G = T; G <= L; G++) if (!i.has(G, 0)) {
|
|
1022
|
+
k = 0, P = l - 1;
|
|
1023
1023
|
break;
|
|
1024
1024
|
}
|
|
1025
1025
|
}
|
|
1026
1026
|
if (!i.hasFixedWidth()) {
|
|
1027
|
-
for (var B =
|
|
1028
|
-
|
|
1027
|
+
for (var B = k; B <= P; B++) if (!i.has(0, B)) {
|
|
1028
|
+
T = 0, L = h - 1;
|
|
1029
1029
|
break;
|
|
1030
1030
|
}
|
|
1031
1031
|
}
|
|
1032
1032
|
}
|
|
1033
|
-
this._childrenToDisplay = r({ cellCache: this._cellCache, cellRenderer: n, columnSizeAndPositionManager: _.columnSizeAndPositionManager, columnStartIndex:
|
|
1033
|
+
this._childrenToDisplay = r({ cellCache: this._cellCache, cellRenderer: n, columnSizeAndPositionManager: _.columnSizeAndPositionManager, columnStartIndex: k, columnStopIndex: P, deferredMeasurementCache: i, horizontalOffsetAdjustment: b, isScrolling: g, isScrollingOptOut: u, parent: this, rowSizeAndPositionManager: _.rowSizeAndPositionManager, rowStartIndex: T, rowStopIndex: L, scrollLeft: y, scrollTop: S, styleCache: this._styleCache, verticalOffsetAdjustment: R, visibleColumnIndices: w, visibleRowIndices: C }), this._columnStartIndex = k, this._columnStopIndex = P, this._rowStartIndex = T, this._rowStopIndex = L;
|
|
1034
1034
|
}
|
|
1035
1035
|
} }, { key: "_debounceScrollEnded", value: function() {
|
|
1036
1036
|
var e = this.props.scrollingResetTimeInterval;
|
|
1037
|
-
this._disablePointerEventsTimeoutId && oe(this._disablePointerEventsTimeoutId), this._disablePointerEventsTimeoutId =
|
|
1037
|
+
this._disablePointerEventsTimeoutId && oe(this._disablePointerEventsTimeoutId), this._disablePointerEventsTimeoutId = Ge(this._debounceScrollEndedCallback, e);
|
|
1038
1038
|
} }, { key: "_handleInvalidatedGridSize", value: function() {
|
|
1039
1039
|
if (typeof this._deferredInvalidateColumnIndex == "number" && typeof this._deferredInvalidateRowIndex == "number") {
|
|
1040
1040
|
var e = this._deferredInvalidateColumnIndex, t = this._deferredInvalidateRowIndex;
|
|
@@ -1080,11 +1080,11 @@ var et = "requested", $ = function() {
|
|
|
1080
1080
|
var n = {};
|
|
1081
1081
|
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 }));
|
|
1082
1082
|
var r, l, i = t.instanceProps;
|
|
1083
|
-
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 }),
|
|
1083
|
+
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 }), Ze({ cellCount: i.prevColumnCount, cellSize: typeof i.prevColumnWidth == "number" ? i.prevColumnWidth : null, computeMetadataCallback: function() {
|
|
1084
1084
|
return i.columnSizeAndPositionManager.resetCell(0);
|
|
1085
1085
|
}, computeMetadataCallbackProps: e, nextCellsCount: e.columnCount, nextCellSize: typeof e.columnWidth == "number" ? e.columnWidth : null, nextScrollToIndex: e.scrollToColumn, scrollToIndex: i.prevScrollToColumn, updateScrollOffsetForScrollToIndex: function() {
|
|
1086
1086
|
r = o._getScrollLeftForScrollToColumnStateUpdate(e, t);
|
|
1087
|
-
} }),
|
|
1087
|
+
} }), Ze({ cellCount: i.prevRowCount, cellSize: typeof i.prevRowHeight == "number" ? i.prevRowHeight : null, computeMetadataCallback: function() {
|
|
1088
1088
|
return i.rowSizeAndPositionManager.resetCell(0);
|
|
1089
1089
|
}, computeMetadataCallbackProps: e, nextCellsCount: e.rowCount, nextCellSize: typeof e.rowHeight == "number" ? e.rowHeight : null, nextScrollToIndex: e.scrollToRow, scrollToIndex: i.prevScrollToRow, updateScrollOffsetForScrollToIndex: function() {
|
|
1090
1090
|
l = o._getScrollTopForScrollToRowStateUpdate(e, t);
|
|
@@ -1094,7 +1094,7 @@ var et = "requested", $ = function() {
|
|
|
1094
1094
|
} }, { key: "_getEstimatedRowSize", value: function(e) {
|
|
1095
1095
|
return typeof e.rowHeight == "number" ? e.rowHeight : e.estimatedRowSize;
|
|
1096
1096
|
} }, { key: "_getScrollToPositionStateUpdate", value: function(e) {
|
|
1097
|
-
var t = e.prevState, n = e.scrollLeft, r = e.scrollTop, l = { scrollPositionChangeReason:
|
|
1097
|
+
var t = e.prevState, n = e.scrollLeft, r = e.scrollTop, l = { scrollPositionChangeReason: nt };
|
|
1098
1098
|
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 : {};
|
|
1099
1099
|
} }, { key: "_wrapSizeGetter", value: function(e) {
|
|
1100
1100
|
return typeof e == "function" ? e : function() {
|
|
@@ -1122,7 +1122,7 @@ var et = "requested", $ = function() {
|
|
|
1122
1122
|
return typeof r == "number" && r >= 0 && n !== r ? o._getScrollToPositionStateUpdate({ prevState: t, scrollLeft: -1, scrollTop: r }) : {};
|
|
1123
1123
|
} }]);
|
|
1124
1124
|
}();
|
|
1125
|
-
function
|
|
1125
|
+
function Ht(o) {
|
|
1126
1126
|
var e = o.cellCount, t = o.overscanCellsCount, n = o.scrollDirection, r = o.startIndex, l = o.stopIndex;
|
|
1127
1127
|
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) };
|
|
1128
1128
|
}
|
|
@@ -1131,32 +1131,32 @@ function ze(o, e) {
|
|
|
1131
1131
|
for (var t = 0, n = Array(e); t < e; t++) n[t] = o[t];
|
|
1132
1132
|
return n;
|
|
1133
1133
|
}
|
|
1134
|
-
function
|
|
1134
|
+
function Wt(o, e) {
|
|
1135
1135
|
if (o) {
|
|
1136
1136
|
if (typeof o == "string") return ze(o, e);
|
|
1137
1137
|
var t = {}.toString.call(o).slice(8, -1);
|
|
1138
1138
|
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;
|
|
1139
1139
|
}
|
|
1140
1140
|
}
|
|
1141
|
-
function
|
|
1141
|
+
function Dt() {
|
|
1142
1142
|
try {
|
|
1143
1143
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1144
1144
|
}));
|
|
1145
1145
|
} catch {
|
|
1146
1146
|
}
|
|
1147
|
-
return (
|
|
1147
|
+
return (Dt = function() {
|
|
1148
1148
|
return !!o;
|
|
1149
1149
|
})();
|
|
1150
1150
|
}
|
|
1151
1151
|
p($, "defaultProps", { "aria-label": "grid", "aria-readonly": !0, autoContainerWidth: !1, autoHeight: !1, autoWidth: !1, cellRangeRenderer: function(o) {
|
|
1152
|
-
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,
|
|
1153
|
-
var
|
|
1154
|
-
w && v[
|
|
1155
|
-
var
|
|
1156
|
-
!c && !s || a || m ? L = t(
|
|
1152
|
+
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, C = f; C <= u; C++) for (var b = h.getSizeAndPositionOfCell(C), R = r; R <= l; R++) {
|
|
1153
|
+
var z = n.getSizeAndPositionOfCell(R), I = R >= _.start && R <= _.stop && C >= S.start && C <= S.stop, k = "".concat(C, "-").concat(R), P = void 0;
|
|
1154
|
+
w && v[k] ? P = v[k] : i && !i.has(C, R) ? P = { height: "auto", left: 0, position: "absolute", top: 0, width: "auto" } : (P = { height: b.size, left: z.offset + a, position: "absolute", top: b.offset + m, width: z.size }, v[k] = P);
|
|
1155
|
+
var T = { columnIndex: R, isScrolling: s, isVisible: I, key: k, parent: d, rowIndex: C, style: P }, L = void 0;
|
|
1156
|
+
!c && !s || a || m ? L = t(T) : (e[k] || (e[k] = t(T)), L = e[k]), L != null && L !== !1 && (L.props.role || (L = Ct.cloneElement(L, { role: "gridcell" })), y.push(L));
|
|
1157
1157
|
}
|
|
1158
1158
|
return y;
|
|
1159
|
-
}, containerRole: "row", containerStyle: {}, estimatedColumnSize: 100, estimatedRowSize: 30, getScrollbarSize:
|
|
1159
|
+
}, containerRole: "row", containerStyle: {}, estimatedColumnSize: 100, estimatedRowSize: 30, getScrollbarSize: Te, noContentRenderer: function() {
|
|
1160
1160
|
return null;
|
|
1161
1161
|
}, onScroll: function() {
|
|
1162
1162
|
}, onScrollbarPresenceChange: function() {
|
|
@@ -1165,12 +1165,12 @@ p($, "defaultProps", { "aria-label": "grid", "aria-readonly": !0, autoContainerW
|
|
|
1165
1165
|
var e = o.cellCount, t = o.overscanCellsCount, n = o.scrollDirection, r = o.startIndex, l = o.stopIndex;
|
|
1166
1166
|
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) };
|
|
1167
1167
|
}, overscanRowCount: 10, role: "grid", scrollingResetTimeInterval: 150, scrollToAlignment: "auto", scrollToColumn: -1, scrollToRow: -1, style: {}, tabIndex: 0, isScrollingOptOut: !1 }), ue($);
|
|
1168
|
-
var
|
|
1168
|
+
var rt = function() {
|
|
1169
1169
|
function o(e, t) {
|
|
1170
1170
|
var n, r, l, i;
|
|
1171
|
-
return
|
|
1171
|
+
return A(this, o), r = this, i = [e, t], l = O(l = o), (n = W(r, Dt() ? Reflect.construct(l, i || [], O(r).constructor) : l.apply(r, i)))._loadMoreRowsMemoizer = te(), n._onRowsRendered = n._onRowsRendered.bind(n), n._registerChild = n._registerChild.bind(n), n;
|
|
1172
1172
|
}
|
|
1173
|
-
return D(o,
|
|
1173
|
+
return D(o, x.PureComponent), E(o, [{ key: "resetLoadMoreRowsCache", value: function(e) {
|
|
1174
1174
|
this._loadMoreRowsMemoizer = te(), e && this._doStuff(this._lastRenderedStartIndex, this._lastRenderedStopIndex);
|
|
1175
1175
|
} }, { key: "render", value: function() {
|
|
1176
1176
|
return (0, this.props.children)({ onRowsRendered: this._onRowsRendered, registerChild: this._registerChild });
|
|
@@ -1193,13 +1193,13 @@ var tt = function() {
|
|
|
1193
1193
|
var n, r = this, l = this.props, i = l.isRowLoaded, a = l.minimumBatchSize, s = l.rowCount, c = l.threshold, d = function(f) {
|
|
1194
1194
|
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));
|
|
1195
1195
|
if (g !== null) {
|
|
1196
|
-
for (var
|
|
1196
|
+
for (var C = Math.min(Math.max(g, y + v - 1), m - 1), b = g + 1; b <= C && !u({ index: b }); b++) g = b;
|
|
1197
1197
|
S.push({ startIndex: y, stopIndex: g });
|
|
1198
1198
|
}
|
|
1199
|
-
if (S.length) for (var
|
|
1200
|
-
var
|
|
1201
|
-
if (u({ index:
|
|
1202
|
-
|
|
1199
|
+
if (S.length) for (var R = S[0]; R.stopIndex - R.startIndex + 1 < v && R.startIndex > 0; ) {
|
|
1200
|
+
var z = R.startIndex - 1;
|
|
1201
|
+
if (u({ index: z })) break;
|
|
1202
|
+
R.startIndex = z;
|
|
1203
1203
|
}
|
|
1204
1204
|
return S;
|
|
1205
1205
|
}({ isRowLoaded: i, minimumBatchSize: a, rowCount: s, startIndex: Math.max(0, e - c), stopIndex: Math.min(s - 1, t + c) }), h = (n = []).concat.apply(n, function(f) {
|
|
@@ -1207,7 +1207,7 @@ var tt = function() {
|
|
|
1207
1207
|
if (Array.isArray(u)) return ze(u);
|
|
1208
1208
|
}(f) || function(u) {
|
|
1209
1209
|
if (typeof Symbol < "u" && u[Symbol.iterator] != null || u["@@iterator"] != null) return Array.from(u);
|
|
1210
|
-
}(f) ||
|
|
1210
|
+
}(f) || Wt(f) || function() {
|
|
1211
1211
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1212
1212
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1213
1213
|
}();
|
|
@@ -1221,23 +1221,23 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1221
1221
|
this._registeredChild = e;
|
|
1222
1222
|
} }]);
|
|
1223
1223
|
}();
|
|
1224
|
-
function
|
|
1224
|
+
function jt() {
|
|
1225
1225
|
try {
|
|
1226
1226
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1227
1227
|
}));
|
|
1228
1228
|
} catch {
|
|
1229
1229
|
}
|
|
1230
|
-
return (
|
|
1230
|
+
return (jt = function() {
|
|
1231
1231
|
return !!o;
|
|
1232
1232
|
})();
|
|
1233
1233
|
}
|
|
1234
|
-
p(
|
|
1235
|
-
var
|
|
1234
|
+
p(rt, "defaultProps", { minimumBatchSize: 10, rowCount: 0, threshold: 15 }), rt.propTypes = {};
|
|
1235
|
+
var Yo = function() {
|
|
1236
1236
|
function o() {
|
|
1237
1237
|
var e, t, n, r;
|
|
1238
|
-
|
|
1238
|
+
A(this, o);
|
|
1239
1239
|
for (var l = arguments.length, i = new Array(l), a = 0; a < l; a++) i[a] = arguments[a];
|
|
1240
|
-
return t = this, n = o, r = [].concat(i), n =
|
|
1240
|
+
return t = this, n = o, r = [].concat(i), n = O(n), p(e = W(t, jt() ? Reflect.construct(n, r || [], O(t).constructor) : n.apply(t, r)), "Grid", void 0), p(e, "_cellRenderer", function(s) {
|
|
1241
1241
|
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");
|
|
1242
1242
|
return _ && _.writable && (h.width = "100%"), m({ index: d, style: h, isScrolling: f, isVisible: u, key: v, parent: c });
|
|
1243
1243
|
}), p(e, "_setRef", function(s) {
|
|
@@ -1250,7 +1250,7 @@ var Vo = function() {
|
|
|
1250
1250
|
(0, e.props.onRowsRendered)({ overscanStartIndex: c, overscanStopIndex: d, startIndex: h, stopIndex: f });
|
|
1251
1251
|
}), e;
|
|
1252
1252
|
}
|
|
1253
|
-
return D(o,
|
|
1253
|
+
return D(o, x.PureComponent), E(o, [{ key: "forceUpdateGrid", value: function() {
|
|
1254
1254
|
this.Grid && this.Grid.forceUpdate();
|
|
1255
1255
|
} }, { key: "getOffsetForRow", value: function(e) {
|
|
1256
1256
|
var t = e.alignment, n = e.index;
|
|
@@ -1274,15 +1274,15 @@ var Vo = function() {
|
|
|
1274
1274
|
this.Grid && this.Grid.scrollToCell({ columnIndex: 0, rowIndex: e });
|
|
1275
1275
|
} }, { key: "render", value: function() {
|
|
1276
1276
|
var e = this.props, t = e.className, n = e.noRowsRenderer, r = e.scrollToIndex, l = e.width, i = N("ReactVirtualized__List", t);
|
|
1277
|
-
return
|
|
1277
|
+
return x.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 }));
|
|
1278
1278
|
} }]);
|
|
1279
1279
|
}();
|
|
1280
|
-
p(
|
|
1280
|
+
p(Yo, "defaultProps", { autoHeight: !1, estimatedRowSize: 30, onScroll: function() {
|
|
1281
1281
|
}, noRowsRenderer: function() {
|
|
1282
1282
|
return null;
|
|
1283
1283
|
}, onRowsRendered: function() {
|
|
1284
|
-
}, overscanIndicesGetter:
|
|
1285
|
-
const
|
|
1284
|
+
}, overscanIndicesGetter: Ht, overscanRowCount: 10, scrollToAlignment: "auto", scrollToIndex: -1, style: {} });
|
|
1285
|
+
const ge = function(o, e, t, n, r) {
|
|
1286
1286
|
return typeof t == "function" ? function(l, i, a, s, c) {
|
|
1287
1287
|
for (var d = a + 1; i <= a; ) {
|
|
1288
1288
|
var h = i + a >>> 1;
|
|
@@ -1297,81 +1297,81 @@ const me = function(o, e, t, n, r) {
|
|
|
1297
1297
|
return c;
|
|
1298
1298
|
}(o, t === void 0 ? 0 : 0 | t, n === void 0 ? o.length - 1 : 0 | n, e);
|
|
1299
1299
|
};
|
|
1300
|
-
function
|
|
1300
|
+
function Ae(o, e, t, n, r) {
|
|
1301
1301
|
this.mid = o, this.left = e, this.right = t, this.leftPoints = n, this.rightPoints = r, this.count = (e ? e.count : 0) + (t ? t.count : 0) + n.length;
|
|
1302
1302
|
}
|
|
1303
|
-
var re =
|
|
1304
|
-
function
|
|
1303
|
+
var re = Ae.prototype;
|
|
1304
|
+
function Ce(o, e) {
|
|
1305
1305
|
o.mid = e.mid, o.left = e.left, o.right = e.right, o.leftPoints = e.leftPoints, o.rightPoints = e.rightPoints, o.count = e.count;
|
|
1306
1306
|
}
|
|
1307
|
-
function
|
|
1307
|
+
function Ft(o, e) {
|
|
1308
1308
|
var t = ce(e);
|
|
1309
1309
|
o.mid = t.mid, o.left = t.left, o.right = t.right, o.leftPoints = t.leftPoints, o.rightPoints = t.rightPoints, o.count = t.count;
|
|
1310
1310
|
}
|
|
1311
|
-
function
|
|
1311
|
+
function it(o, e) {
|
|
1312
1312
|
var t = o.intervals([]);
|
|
1313
|
-
t.push(e),
|
|
1313
|
+
t.push(e), Ft(o, t);
|
|
1314
1314
|
}
|
|
1315
|
-
function
|
|
1315
|
+
function lt(o, e) {
|
|
1316
1316
|
var t = o.intervals([]), n = t.indexOf(e);
|
|
1317
|
-
return n < 0 ? 0 : (t.splice(n, 1),
|
|
1317
|
+
return n < 0 ? 0 : (t.splice(n, 1), Ft(o, t), 1);
|
|
1318
1318
|
}
|
|
1319
|
-
function
|
|
1319
|
+
function st(o, e, t) {
|
|
1320
1320
|
for (var n = 0; n < o.length && o[n][0] <= e; ++n) {
|
|
1321
1321
|
var r = t(o[n]);
|
|
1322
1322
|
if (r) return r;
|
|
1323
1323
|
}
|
|
1324
1324
|
}
|
|
1325
|
-
function
|
|
1325
|
+
function at(o, e, t) {
|
|
1326
1326
|
for (var n = o.length - 1; n >= 0 && o[n][1] >= e; --n) {
|
|
1327
1327
|
var r = t(o[n]);
|
|
1328
1328
|
if (r) return r;
|
|
1329
1329
|
}
|
|
1330
1330
|
}
|
|
1331
|
-
function
|
|
1331
|
+
function ct(o, e) {
|
|
1332
1332
|
for (var t = 0; t < o.length; ++t) {
|
|
1333
1333
|
var n = e(o[t]);
|
|
1334
1334
|
if (n) return n;
|
|
1335
1335
|
}
|
|
1336
1336
|
}
|
|
1337
|
-
function
|
|
1337
|
+
function Jo(o, e) {
|
|
1338
1338
|
return o - e;
|
|
1339
1339
|
}
|
|
1340
|
-
function
|
|
1340
|
+
function Ie(o, e) {
|
|
1341
1341
|
return o[0] - e[0] || o[1] - e[1];
|
|
1342
1342
|
}
|
|
1343
|
-
function
|
|
1343
|
+
function Pe(o, e) {
|
|
1344
1344
|
return o[1] - e[1] || o[0] - e[0];
|
|
1345
1345
|
}
|
|
1346
1346
|
function ce(o) {
|
|
1347
1347
|
if (o.length === 0) return null;
|
|
1348
1348
|
for (var e = [], t = 0; t < o.length; ++t) e.push(o[t][0], o[t][1]);
|
|
1349
|
-
e.sort(
|
|
1349
|
+
e.sort(Jo);
|
|
1350
1350
|
var n = e[e.length >> 1], r = [], l = [], i = [];
|
|
1351
1351
|
for (t = 0; t < o.length; ++t) {
|
|
1352
1352
|
var a = o[t];
|
|
1353
1353
|
a[1] < n ? r.push(a) : n < a[0] ? l.push(a) : i.push(a);
|
|
1354
1354
|
}
|
|
1355
1355
|
var s = i, c = i.slice();
|
|
1356
|
-
return s.sort(
|
|
1356
|
+
return s.sort(Ie), c.sort(Pe), new Ae(n, ce(r), ce(l), s, c);
|
|
1357
1357
|
}
|
|
1358
|
-
function
|
|
1358
|
+
function Nt(o) {
|
|
1359
1359
|
this.root = o;
|
|
1360
1360
|
}
|
|
1361
1361
|
re.intervals = function(o) {
|
|
1362
1362
|
return o.push.apply(o, this.leftPoints), this.left && this.left.intervals(o), this.right && this.right.intervals(o), o;
|
|
1363
1363
|
}, re.insert = function(o) {
|
|
1364
1364
|
var e = this.count - this.leftPoints.length;
|
|
1365
|
-
if (this.count += 1, o[1] < this.mid) this.left ? 4 * (this.left.count + 1) > 3 * (e + 1) ?
|
|
1366
|
-
else if (o[0] > this.mid) this.right ? 4 * (this.right.count + 1) > 3 * (e + 1) ?
|
|
1365
|
+
if (this.count += 1, o[1] < this.mid) this.left ? 4 * (this.left.count + 1) > 3 * (e + 1) ? it(this, o) : this.left.insert(o) : this.left = ce([o]);
|
|
1366
|
+
else if (o[0] > this.mid) this.right ? 4 * (this.right.count + 1) > 3 * (e + 1) ? it(this, o) : this.right.insert(o) : this.right = ce([o]);
|
|
1367
1367
|
else {
|
|
1368
|
-
var t =
|
|
1368
|
+
var t = ge(this.leftPoints, o, Ie), n = ge(this.rightPoints, o, Pe);
|
|
1369
1369
|
this.leftPoints.splice(t, 0, o), this.rightPoints.splice(n, 0, o);
|
|
1370
1370
|
}
|
|
1371
1371
|
}, re.remove = function(o) {
|
|
1372
1372
|
var e = this.count - this.leftPoints;
|
|
1373
|
-
if (o[1] < this.mid) return this.left ? 4 * (this.right ? this.right.count : 0) > 3 * (e - 1) ?
|
|
1374
|
-
if (o[0] > this.mid) return this.right ? 4 * (this.left ? this.left.count : 0) > 3 * (e - 1) ?
|
|
1373
|
+
if (o[1] < this.mid) return this.left ? 4 * (this.right ? this.right.count : 0) > 3 * (e - 1) ? lt(this, o) : (l = this.left.remove(o)) === 2 ? (this.left = null, this.count -= 1, 1) : (l === 1 && (this.count -= 1), l) : 0;
|
|
1374
|
+
if (o[0] > this.mid) return this.right ? 4 * (this.left ? this.left.count : 0) > 3 * (e - 1) ? lt(this, o) : (l = this.right.remove(o)) === 2 ? (this.right = null, this.count -= 1, 1) : (l === 1 && (this.count -= 1), l) : 0;
|
|
1375
1375
|
if (this.count === 1) return this.leftPoints[0] === o ? 2 : 0;
|
|
1376
1376
|
if (this.leftPoints.length === 1 && this.leftPoints[0] === o) {
|
|
1377
1377
|
if (this.left && this.right) {
|
|
@@ -1381,24 +1381,24 @@ re.intervals = function(o) {
|
|
|
1381
1381
|
var r = this.left, l = this.right;
|
|
1382
1382
|
t.count -= n.count, t.right = n.left, n.left = r, n.right = l;
|
|
1383
1383
|
}
|
|
1384
|
-
|
|
1385
|
-
} else this.left ?
|
|
1384
|
+
Ce(this, n), this.count = (this.left ? this.left.count : 0) + (this.right ? this.right.count : 0) + this.leftPoints.length;
|
|
1385
|
+
} else this.left ? Ce(this, this.left) : Ce(this, this.right);
|
|
1386
1386
|
return 1;
|
|
1387
1387
|
}
|
|
1388
|
-
for (r =
|
|
1389
|
-
for (this.count -= 1, this.leftPoints.splice(r, 1), l =
|
|
1388
|
+
for (r = ge(this.leftPoints, o, Ie); r < this.leftPoints.length && this.leftPoints[r][0] === o[0]; ++r) if (this.leftPoints[r] === o) {
|
|
1389
|
+
for (this.count -= 1, this.leftPoints.splice(r, 1), l = ge(this.rightPoints, o, Pe); l < this.rightPoints.length && this.rightPoints[l][1] === o[1]; ++l) if (this.rightPoints[l] === o) return this.rightPoints.splice(l, 1), 1;
|
|
1390
1390
|
}
|
|
1391
1391
|
return 0;
|
|
1392
1392
|
}, re.queryPoint = function(o, e) {
|
|
1393
|
-
return o < this.mid ? this.left && (t = this.left.queryPoint(o, e)) ? t :
|
|
1393
|
+
return o < this.mid ? this.left && (t = this.left.queryPoint(o, e)) ? t : st(this.leftPoints, o, e) : o > this.mid ? this.right && (t = this.right.queryPoint(o, e)) ? t : at(this.rightPoints, o, e) : ct(this.leftPoints, e);
|
|
1394
1394
|
var t;
|
|
1395
1395
|
}, re.queryInterval = function(o, e, t) {
|
|
1396
1396
|
var n;
|
|
1397
|
-
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 ?
|
|
1397
|
+
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 ? st(this.leftPoints, e, t) : o > this.mid ? at(this.rightPoints, o, t) : ct(this.leftPoints, t);
|
|
1398
1398
|
};
|
|
1399
|
-
var J =
|
|
1399
|
+
var J = Nt.prototype;
|
|
1400
1400
|
J.insert = function(o) {
|
|
1401
|
-
this.root ? this.root.insert(o) : this.root = new
|
|
1401
|
+
this.root ? this.root.insert(o) : this.root = new Ae(o[0], null, null, [o], [o]);
|
|
1402
1402
|
}, J.remove = function(o) {
|
|
1403
1403
|
if (this.root) {
|
|
1404
1404
|
var e = this.root.remove(o);
|
|
@@ -1414,8 +1414,8 @@ J.insert = function(o) {
|
|
|
1414
1414
|
} }), Object.defineProperty(J, "intervals", { get: function() {
|
|
1415
1415
|
return this.root ? this.root.intervals([]) : [];
|
|
1416
1416
|
} });
|
|
1417
|
-
var
|
|
1418
|
-
|
|
1417
|
+
var xe = E(function o() {
|
|
1418
|
+
A(this, o), p(this, "_columnSizeMap", {}), p(this, "_intervalTree", new Nt(null)), p(this, "_leftMap", {});
|
|
1419
1419
|
}, [{ key: "estimateTotalHeight", value: function(o, e, t) {
|
|
1420
1420
|
var n = o - this.count;
|
|
1421
1421
|
return this.tallestColumnSize + Math.ceil(n / e) * t;
|
|
@@ -1442,7 +1442,7 @@ var Ce = H(function o() {
|
|
|
1442
1442
|
}
|
|
1443
1443
|
return S;
|
|
1444
1444
|
}
|
|
1445
|
-
}(s, c) ||
|
|
1445
|
+
}(s, c) || Wt(s, c) || function() {
|
|
1446
1446
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1447
1447
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1448
1448
|
}();
|
|
@@ -1472,7 +1472,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1472
1472
|
}
|
|
1473
1473
|
return e;
|
|
1474
1474
|
} }]);
|
|
1475
|
-
function
|
|
1475
|
+
function dt(o, e) {
|
|
1476
1476
|
var t = Object.keys(o);
|
|
1477
1477
|
if (Object.getOwnPropertySymbols) {
|
|
1478
1478
|
var n = Object.getOwnPropertySymbols(o);
|
|
@@ -1482,33 +1482,33 @@ function st(o, e) {
|
|
|
1482
1482
|
}
|
|
1483
1483
|
return t;
|
|
1484
1484
|
}
|
|
1485
|
-
function
|
|
1485
|
+
function Zo(o) {
|
|
1486
1486
|
for (var e = 1; e < arguments.length; e++) {
|
|
1487
1487
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
1488
|
-
e % 2 ?
|
|
1488
|
+
e % 2 ? dt(Object(t), !0).forEach(function(n) {
|
|
1489
1489
|
p(o, n, t[n]);
|
|
1490
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) :
|
|
1490
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : dt(Object(t)).forEach(function(n) {
|
|
1491
1491
|
Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
|
|
1492
1492
|
});
|
|
1493
1493
|
}
|
|
1494
1494
|
return o;
|
|
1495
1495
|
}
|
|
1496
|
-
function
|
|
1496
|
+
function Bt() {
|
|
1497
1497
|
try {
|
|
1498
1498
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1499
1499
|
}));
|
|
1500
1500
|
} catch {
|
|
1501
1501
|
}
|
|
1502
|
-
return (
|
|
1502
|
+
return (Bt = function() {
|
|
1503
1503
|
return !!o;
|
|
1504
1504
|
})();
|
|
1505
1505
|
}
|
|
1506
|
-
var
|
|
1506
|
+
var ut = function() {
|
|
1507
1507
|
function o() {
|
|
1508
1508
|
var e, t, n, r;
|
|
1509
|
-
|
|
1509
|
+
A(this, o);
|
|
1510
1510
|
for (var l = arguments.length, i = new Array(l), a = 0; a < l; a++) i[a] = arguments[a];
|
|
1511
|
-
return t = this, n = o, r = [].concat(i), n =
|
|
1511
|
+
return t = this, n = o, r = [].concat(i), n = O(n), p(e = W(t, Bt() ? Reflect.construct(n, r || [], O(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 xe()), p(e, "_startIndex", null), p(e, "_startIndexMemoized", null), p(e, "_stopIndex", null), p(e, "_stopIndexMemoized", null), p(e, "_debounceResetIsScrollingCallback", function() {
|
|
1512
1512
|
e.setState({ isScrolling: !1 });
|
|
1513
1513
|
}), p(e, "_setScrollingContainerRef", function(s) {
|
|
1514
1514
|
e._scrollingContainer = s;
|
|
@@ -1517,14 +1517,14 @@ var at = function() {
|
|
|
1517
1517
|
d === h && (e._debounceResetIsScrolling(), e.state.scrollTop !== h && e.setState({ isScrolling: !0, scrollTop: h }));
|
|
1518
1518
|
}), e;
|
|
1519
1519
|
}
|
|
1520
|
-
return D(o,
|
|
1521
|
-
this._positionCache = new
|
|
1520
|
+
return D(o, x.PureComponent), E(o, [{ key: "clearCellPositions", value: function() {
|
|
1521
|
+
this._positionCache = new xe(), this.forceUpdate();
|
|
1522
1522
|
} }, { key: "invalidateCellSizeAfterRender", value: function(e) {
|
|
1523
1523
|
var t = e.rowIndex;
|
|
1524
1524
|
this._invalidateOnUpdateStartIndex === null ? (this._invalidateOnUpdateStartIndex = t, this._invalidateOnUpdateStopIndex = t) : (this._invalidateOnUpdateStartIndex = Math.min(this._invalidateOnUpdateStartIndex, t), this._invalidateOnUpdateStopIndex = Math.max(this._invalidateOnUpdateStopIndex, t));
|
|
1525
1525
|
} }, { key: "recomputeCellPositions", value: function() {
|
|
1526
1526
|
var e = this._positionCache.count - 1;
|
|
1527
|
-
this._positionCache = new
|
|
1527
|
+
this._positionCache = new xe(), this._populatePositionCache(0, e), this.forceUpdate();
|
|
1528
1528
|
} }, { key: "componentDidMount", value: function() {
|
|
1529
1529
|
this._checkInvalidateOnUpdate(), this._invokeOnScrollCallback(), this._invokeOnCellsRenderedCallback();
|
|
1530
1530
|
} }, { key: "componentDidUpdate", value: function(e, t) {
|
|
@@ -1532,11 +1532,11 @@ var at = function() {
|
|
|
1532
1532
|
} }, { key: "componentWillUnmount", value: function() {
|
|
1533
1533
|
this._debounceResetIsScrollingId && oe(this._debounceResetIsScrollingId);
|
|
1534
1534
|
} }, { key: "render", value: function() {
|
|
1535
|
-
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,
|
|
1536
|
-
if (this._positionCache.range(Math.max(0, w - f), c + 2 * f, function(
|
|
1537
|
-
e === void 0 ? (I =
|
|
1538
|
-
}),
|
|
1539
|
-
return this._startIndex = I, this._stopIndex = e,
|
|
1535
|
+
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, C = [], b = this._getEstimatedTotalHeight(), R = this._positionCache.shortestColumnSize, z = this._positionCache.count, I = 0;
|
|
1536
|
+
if (this._positionCache.range(Math.max(0, w - f), c + 2 * f, function(T, L, G) {
|
|
1537
|
+
e === void 0 ? (I = T, e = T) : (I = Math.min(I, T), e = Math.max(e, T)), C.push(a({ index: T, isScrolling: g, key: h(T), parent: t, style: p(p(p(p({ height: i.getHeight(T) }, S === "ltr" ? "left" : "right", L), "position", "absolute"), "top", G), "width", i.getWidth(T)) }));
|
|
1538
|
+
}), R < w + c + f && z < l) for (var k = Math.min(l - z, Math.ceil((w + c + f - R) / i.defaultHeight * _ / i.defaultWidth)), P = z; P < z + k; P++) e = P, C.push(a({ index: P, isScrolling: g, key: h(P), parent: this, style: { width: i.getWidth(P) } }));
|
|
1539
|
+
return this._startIndex = I, this._stopIndex = e, x.createElement("div", { ref: this._setScrollingContainerRef, "aria-label": this.props["aria-label"], className: N("ReactVirtualized__Masonry", s), id: d, onScroll: this._onScroll, role: u, style: Zo({ boxSizing: "border-box", direction: "ltr", height: r ? "auto" : c, overflowX: "hidden", overflowY: b < c ? "hidden" : "auto", position: "relative", width: _, WebkitOverflowScrolling: "touch", willChange: "transform" }, v), tabIndex: m }, x.createElement("div", { className: "ReactVirtualized__Masonry__innerScrollContainer", style: { width: "100%", height: b, maxWidth: "100%", maxHeight: b, overflow: "hidden", pointerEvents: g ? "none" : "", position: "relative" } }, C));
|
|
1540
1540
|
} }, { key: "_checkInvalidateOnUpdate", value: function() {
|
|
1541
1541
|
if (typeof this._invalidateOnUpdateStartIndex == "number") {
|
|
1542
1542
|
var e = this._invalidateOnUpdateStartIndex, t = this._invalidateOnUpdateStopIndex;
|
|
@@ -1544,7 +1544,7 @@ var at = function() {
|
|
|
1544
1544
|
}
|
|
1545
1545
|
} }, { key: "_debounceResetIsScrolling", value: function() {
|
|
1546
1546
|
var e = this.props.scrollingResetTimeInterval;
|
|
1547
|
-
this._debounceResetIsScrollingId && oe(this._debounceResetIsScrollingId), this._debounceResetIsScrollingId =
|
|
1547
|
+
this._debounceResetIsScrollingId && oe(this._debounceResetIsScrollingId), this._debounceResetIsScrollingId = Ge(this._debounceResetIsScrollingCallback, e);
|
|
1548
1548
|
} }, { key: "_getEstimatedTotalHeight", value: function() {
|
|
1549
1549
|
var e = this.props, t = e.cellCount, n = e.cellMeasurerCache, r = e.width, l = Math.max(1, Math.floor(r / n.defaultWidth));
|
|
1550
1550
|
return this._positionCache.estimateTotalHeight(t, l, n.defaultHeight);
|
|
@@ -1562,14 +1562,14 @@ var at = function() {
|
|
|
1562
1562
|
return e.scrollTop !== void 0 && t.scrollTop !== e.scrollTop ? { isScrolling: !0, scrollTop: e.scrollTop } : null;
|
|
1563
1563
|
} }]);
|
|
1564
1564
|
}();
|
|
1565
|
-
function
|
|
1565
|
+
function ht() {
|
|
1566
1566
|
}
|
|
1567
|
-
p(
|
|
1567
|
+
p(ut, "defaultProps", { autoHeight: !1, keyMapper: function(o) {
|
|
1568
1568
|
return o;
|
|
1569
|
-
}, onCellsRendered:
|
|
1570
|
-
var
|
|
1569
|
+
}, onCellsRendered: ht, onScroll: ht, overscanByPixels: 20, role: "grid", scrollingResetTimeInterval: 150, style: {}, tabIndex: 0, rowDirection: "ltr" }), ue(ut);
|
|
1570
|
+
var Re = E(function o() {
|
|
1571
1571
|
var e = this, t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1572
|
-
|
|
1572
|
+
A(this, o), p(this, "_cellMeasurerCache", void 0), p(this, "_columnIndexOffset", void 0), p(this, "_rowIndexOffset", void 0), p(this, "columnWidth", function(s) {
|
|
1573
1573
|
var c = s.index;
|
|
1574
1574
|
e._cellMeasurerCache.columnWidth({ index: c + e._columnIndexOffset });
|
|
1575
1575
|
}), p(this, "rowHeight", function(s) {
|
|
@@ -1601,8 +1601,8 @@ var xe = H(function o() {
|
|
|
1601
1601
|
return this._cellMeasurerCache.has(o + this._rowIndexOffset, e + this._columnIndexOffset);
|
|
1602
1602
|
} }, { key: "set", value: function(o, e, t, n) {
|
|
1603
1603
|
this._cellMeasurerCache.set(o + this._rowIndexOffset, e + this._columnIndexOffset, t, n);
|
|
1604
|
-
} }]),
|
|
1605
|
-
function
|
|
1604
|
+
} }]), Qo = ["rowIndex"], en = ["columnIndex", "rowIndex"], tn = ["columnIndex"], on = ["onScroll", "onSectionRendered", "onScrollbarPresenceChange", "scrollLeft", "scrollToColumn", "scrollTop", "scrollToRow"];
|
|
1605
|
+
function ft(o, e) {
|
|
1606
1606
|
var t = Object.keys(o);
|
|
1607
1607
|
if (Object.getOwnPropertySymbols) {
|
|
1608
1608
|
var n = Object.getOwnPropertySymbols(o);
|
|
@@ -1615,40 +1615,40 @@ function dt(o, e) {
|
|
|
1615
1615
|
function M(o) {
|
|
1616
1616
|
for (var e = 1; e < arguments.length; e++) {
|
|
1617
1617
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
1618
|
-
e % 2 ?
|
|
1618
|
+
e % 2 ? ft(Object(t), !0).forEach(function(n) {
|
|
1619
1619
|
p(o, n, t[n]);
|
|
1620
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) :
|
|
1620
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : ft(Object(t)).forEach(function(n) {
|
|
1621
1621
|
Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
|
|
1622
1622
|
});
|
|
1623
1623
|
}
|
|
1624
1624
|
return o;
|
|
1625
1625
|
}
|
|
1626
|
-
function
|
|
1626
|
+
function Ut() {
|
|
1627
1627
|
try {
|
|
1628
1628
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1629
1629
|
}));
|
|
1630
1630
|
} catch {
|
|
1631
1631
|
}
|
|
1632
|
-
return (
|
|
1632
|
+
return (Ut = function() {
|
|
1633
1633
|
return !!o;
|
|
1634
1634
|
})();
|
|
1635
1635
|
}
|
|
1636
1636
|
var be = function() {
|
|
1637
1637
|
function o(e, t) {
|
|
1638
1638
|
var n, r, l, i;
|
|
1639
|
-
|
|
1639
|
+
A(this, o), r = this, i = [e, t], l = O(l = o), p(n = W(r, Ut() ? Reflect.construct(l, i || [], O(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) {
|
|
1640
1640
|
n._bottomLeftGrid = d;
|
|
1641
1641
|
}), p(n, "_bottomRightGridRef", function(d) {
|
|
1642
1642
|
n._bottomRightGrid = d;
|
|
1643
1643
|
}), p(n, "_cellRendererBottomLeftGrid", function(d) {
|
|
1644
|
-
var h = d.rowIndex, f = ie(d,
|
|
1645
|
-
return h === u.rowCount - m ?
|
|
1644
|
+
var h = d.rowIndex, f = ie(d, Qo), u = n.props, v = u.cellRenderer, m = u.fixedRowCount;
|
|
1645
|
+
return h === u.rowCount - m ? x.createElement("div", { key: f.key, style: M(M({}, f.style), {}, { height: 20 }) }) : v(M(M({}, f), {}, { parent: n, rowIndex: h + m }));
|
|
1646
1646
|
}), p(n, "_cellRendererBottomRightGrid", function(d) {
|
|
1647
|
-
var h = d.columnIndex, f = d.rowIndex, u = ie(d,
|
|
1647
|
+
var h = d.columnIndex, f = d.rowIndex, u = ie(d, en), v = n.props, m = v.cellRenderer, _ = v.fixedColumnCount, S = v.fixedRowCount;
|
|
1648
1648
|
return m(M(M({}, u), {}, { columnIndex: h + _, parent: n, rowIndex: f + S }));
|
|
1649
1649
|
}), p(n, "_cellRendererTopRightGrid", function(d) {
|
|
1650
|
-
var h = d.columnIndex, f = ie(d,
|
|
1651
|
-
return h === m - _ ?
|
|
1650
|
+
var h = d.columnIndex, f = ie(d, tn), u = n.props, v = u.cellRenderer, m = u.columnCount, _ = u.fixedColumnCount;
|
|
1651
|
+
return h === m - _ ? x.createElement("div", { key: f.key, style: M(M({}, f.style), {}, { width: 20 }) }) : v(M(M({}, f), {}, { columnIndex: h + _, parent: n }));
|
|
1652
1652
|
}), p(n, "_columnWidthRightGrid", function(d) {
|
|
1653
1653
|
var h = d.index, f = n.props, u = f.columnCount, v = f.fixedColumnCount, m = f.columnWidth, _ = n.state, S = _.scrollbarSize;
|
|
1654
1654
|
return _.showHorizontalScrollbar && h === u - v ? S : typeof m == "function" ? m({ index: h + v }) : m;
|
|
@@ -1679,9 +1679,9 @@ var be = function() {
|
|
|
1679
1679
|
n._topRightGrid = d;
|
|
1680
1680
|
});
|
|
1681
1681
|
var a = e.deferredMeasurementCache, s = e.fixedColumnCount, c = e.fixedRowCount;
|
|
1682
|
-
return n._maybeCalculateCachedStyles(!0), a && (n._deferredMeasurementCacheBottomLeftGrid = c > 0 ? new
|
|
1682
|
+
return n._maybeCalculateCachedStyles(!0), a && (n._deferredMeasurementCacheBottomLeftGrid = c > 0 ? new Re({ cellMeasurerCache: a, columnIndexOffset: 0, rowIndexOffset: c }) : a, n._deferredMeasurementCacheBottomRightGrid = s > 0 || c > 0 ? new Re({ cellMeasurerCache: a, columnIndexOffset: s, rowIndexOffset: c }) : a, n._deferredMeasurementCacheTopRightGrid = s > 0 ? new Re({ cellMeasurerCache: a, columnIndexOffset: s, rowIndexOffset: 0 }) : a), n;
|
|
1683
1683
|
}
|
|
1684
|
-
return D(o,
|
|
1684
|
+
return D(o, x.PureComponent), E(o, [{ key: "forceUpdateGrids", value: function() {
|
|
1685
1685
|
this._bottomLeftGrid && this._bottomLeftGrid.forceUpdate(), this._bottomRightGrid && this._bottomRightGrid.forceUpdate(), this._topLeftGrid && this._topLeftGrid.forceUpdate(), this._topRightGrid && this._topRightGrid.forceUpdate();
|
|
1686
1686
|
} }, { key: "invalidateCellSizeAfterRender", value: function() {
|
|
1687
1687
|
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;
|
|
@@ -1705,10 +1705,10 @@ var be = function() {
|
|
|
1705
1705
|
e.onScrollbarPresenceChange, e.scrollLeft;
|
|
1706
1706
|
var r = e.scrollToColumn;
|
|
1707
1707
|
e.scrollTop;
|
|
1708
|
-
var l = e.scrollToRow, i = ie(e,
|
|
1708
|
+
var l = e.scrollToRow, i = ie(e, on);
|
|
1709
1709
|
if (this._prepareForRender(), this.props.width === 0 || this.props.height === 0) return null;
|
|
1710
1710
|
var a = this.state, s = a.scrollLeft, c = a.scrollTop;
|
|
1711
|
-
return
|
|
1711
|
+
return x.createElement("div", { style: this._containerOuterStyle }, x.createElement("div", { style: this._containerTopStyle }, this._renderTopLeftGrid(i), this._renderTopRightGrid(M(M({}, i), {}, { onScroll: t, scrollLeft: s }))), x.createElement("div", { style: this._containerBottomStyle }, this._renderBottomLeftGrid(M(M({}, i), {}, { onScroll: t, scrollTop: c })), this._renderBottomRightGrid(M(M({}, i), {}, { onScroll: t, onSectionRendered: n, scrollLeft: s, scrollToColumn: r, scrollToRow: l, scrollTop: c }))));
|
|
1712
1712
|
} }, { key: "_getBottomGridHeight", value: function(e) {
|
|
1713
1713
|
return e.height - this._getTopGridHeight(e);
|
|
1714
1714
|
} }, { key: "_getLeftGridWidth", value: function(e) {
|
|
@@ -1740,41 +1740,41 @@ var be = function() {
|
|
|
1740
1740
|
} }, { key: "_renderBottomLeftGrid", value: function(e) {
|
|
1741
1741
|
var t = e.enableFixedColumnScroll, n = e.fixedColumnCount, r = e.fixedRowCount, l = e.rowCount, i = e.hideBottomLeftGridScrollbar, a = this.state.showVerticalScrollbar;
|
|
1742
1742
|
if (!n) return null;
|
|
1743
|
-
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 =
|
|
1744
|
-
return i ?
|
|
1743
|
+
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 = x.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 }));
|
|
1744
|
+
return i ? x.createElement("div", { className: "BottomLeftGrid_ScrollWrapper", style: M(M({}, this._bottomLeftGridStyle), {}, { height: c, width: d, overflowY: "hidden" }) }, u) : u;
|
|
1745
1745
|
} }, { key: "_renderBottomRightGrid", value: function(e) {
|
|
1746
1746
|
var t = e.columnCount, n = e.fixedColumnCount, r = e.fixedRowCount, l = e.rowCount, i = e.scrollToColumn, a = e.scrollToRow;
|
|
1747
|
-
return
|
|
1747
|
+
return x.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) }));
|
|
1748
1748
|
} }, { key: "_renderTopLeftGrid", value: function(e) {
|
|
1749
1749
|
var t = e.fixedColumnCount, n = e.fixedRowCount;
|
|
1750
|
-
return t && n ?
|
|
1750
|
+
return t && n ? x.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;
|
|
1751
1751
|
} }, { key: "_renderTopRightGrid", value: function(e) {
|
|
1752
1752
|
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;
|
|
1753
1753
|
if (!l) return null;
|
|
1754
1754
|
var h = c ? 1 : 0, f = this._getTopGridHeight(e), u = this._getRightGridWidth(e), v = c ? d : 0, m = f, _ = this._topRightGridStyle;
|
|
1755
1755
|
a && (m = f + v, _ = M(M({}, this._topRightGridStyle), {}, { left: 0 }));
|
|
1756
|
-
var S =
|
|
1757
|
-
return a ?
|
|
1756
|
+
var S = x.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 }));
|
|
1757
|
+
return a ? x.createElement("div", { className: "TopRightGrid_ScrollWrapper", style: M(M({}, this._topRightGridStyle), {}, { height: f, width: u, overflowX: "hidden" }) }, S) : S;
|
|
1758
1758
|
} }], [{ key: "getDerivedStateFromProps", value: function(e, t) {
|
|
1759
1759
|
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;
|
|
1760
1760
|
} }]);
|
|
1761
1761
|
}();
|
|
1762
|
-
function
|
|
1762
|
+
function Vt() {
|
|
1763
1763
|
try {
|
|
1764
1764
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1765
1765
|
}));
|
|
1766
1766
|
} catch {
|
|
1767
1767
|
}
|
|
1768
|
-
return (
|
|
1768
|
+
return (Vt = function() {
|
|
1769
1769
|
return !!o;
|
|
1770
1770
|
})();
|
|
1771
1771
|
}
|
|
1772
1772
|
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() {
|
|
1773
1773
|
function o(e, t) {
|
|
1774
1774
|
var n, r, l, i;
|
|
1775
|
-
return
|
|
1775
|
+
return A(this, o), r = this, i = [e, t], l = O(l = o), (n = W(r, Vt() ? Reflect.construct(l, i || [], O(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;
|
|
1776
1776
|
}
|
|
1777
|
-
return D(o,
|
|
1777
|
+
return D(o, x.PureComponent), E(o, [{ key: "render", value: function() {
|
|
1778
1778
|
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;
|
|
1779
1779
|
return e({ clientHeight: n, clientWidth: r, onScroll: this._onScroll, scrollHeight: l, scrollLeft: i, scrollTop: a, scrollWidth: s });
|
|
1780
1780
|
} }, { key: "_onScroll", value: function(e) {
|
|
@@ -1782,30 +1782,30 @@ p(be, "defaultProps", { classNameBottomLeftGrid: "", classNameBottomRightGrid: "
|
|
|
1782
1782
|
this.setState({ clientHeight: t, clientWidth: n, scrollHeight: r, scrollLeft: l, scrollTop: i, scrollWidth: a });
|
|
1783
1783
|
} }]);
|
|
1784
1784
|
}().propTypes = {};
|
|
1785
|
-
var de = "ASC",
|
|
1786
|
-
function
|
|
1787
|
-
var e = o.sortDirection, t = N("ReactVirtualized__Table__sortableHeaderIcon", { "ReactVirtualized__Table__sortableHeaderIcon--ASC": e === de, "ReactVirtualized__Table__sortableHeaderIcon--DESC": e ===
|
|
1788
|
-
return
|
|
1785
|
+
var de = "ASC", ke = "DESC";
|
|
1786
|
+
function $t(o) {
|
|
1787
|
+
var e = o.sortDirection, t = N("ReactVirtualized__Table__sortableHeaderIcon", { "ReactVirtualized__Table__sortableHeaderIcon--ASC": e === de, "ReactVirtualized__Table__sortableHeaderIcon--DESC": e === ke });
|
|
1788
|
+
return x.createElement("svg", { className: t, width: 18, height: 18, viewBox: "0 0 24 24" }, e === de ? x.createElement("path", { d: "M7 14l5-5 5 5z" }) : x.createElement("path", { d: "M7 10l5 5 5-5z" }), x.createElement("path", { d: "M0 0h24v24H0z", fill: "none" }));
|
|
1789
1789
|
}
|
|
1790
|
-
function
|
|
1790
|
+
function Kt() {
|
|
1791
1791
|
try {
|
|
1792
1792
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1793
1793
|
}));
|
|
1794
1794
|
} catch {
|
|
1795
1795
|
}
|
|
1796
|
-
return (
|
|
1796
|
+
return (Kt = function() {
|
|
1797
1797
|
return !!o;
|
|
1798
1798
|
})();
|
|
1799
1799
|
}
|
|
1800
|
-
|
|
1801
|
-
var
|
|
1800
|
+
$t.propTypes = {};
|
|
1801
|
+
var Se = function() {
|
|
1802
1802
|
function o() {
|
|
1803
|
-
return
|
|
1803
|
+
return A(this, o), e = this, n = arguments, t = O(t = o), W(e, Kt() ? Reflect.construct(t, n || [], O(e).constructor) : t.apply(e, n));
|
|
1804
1804
|
var e, t, n;
|
|
1805
1805
|
}
|
|
1806
|
-
return D(o,
|
|
1806
|
+
return D(o, x.Component), E(o);
|
|
1807
1807
|
}();
|
|
1808
|
-
function
|
|
1808
|
+
function pt(o, e) {
|
|
1809
1809
|
var t = Object.keys(o);
|
|
1810
1810
|
if (Object.getOwnPropertySymbols) {
|
|
1811
1811
|
var n = Object.getOwnPropertySymbols(o);
|
|
@@ -1818,40 +1818,40 @@ function ut(o, e) {
|
|
|
1818
1818
|
function U(o) {
|
|
1819
1819
|
for (var e = 1; e < arguments.length; e++) {
|
|
1820
1820
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
1821
|
-
e % 2 ?
|
|
1821
|
+
e % 2 ? pt(Object(t), !0).forEach(function(n) {
|
|
1822
1822
|
p(o, n, t[n]);
|
|
1823
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) :
|
|
1823
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : pt(Object(t)).forEach(function(n) {
|
|
1824
1824
|
Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
|
|
1825
1825
|
});
|
|
1826
1826
|
}
|
|
1827
1827
|
return o;
|
|
1828
1828
|
}
|
|
1829
|
-
function
|
|
1829
|
+
function qt() {
|
|
1830
1830
|
try {
|
|
1831
1831
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1832
1832
|
}));
|
|
1833
1833
|
} catch {
|
|
1834
1834
|
}
|
|
1835
|
-
return (
|
|
1835
|
+
return (qt = function() {
|
|
1836
1836
|
return !!o;
|
|
1837
1837
|
})();
|
|
1838
1838
|
}
|
|
1839
|
-
p(
|
|
1839
|
+
p(Se, "defaultProps", { cellDataGetter: function(o) {
|
|
1840
1840
|
var e = o.dataKey, t = o.rowData;
|
|
1841
1841
|
return typeof t.get == "function" ? t.get(e) : t[e];
|
|
1842
1842
|
}, cellRenderer: function(o) {
|
|
1843
1843
|
var e = o.cellData;
|
|
1844
1844
|
return e == null ? "" : String(e);
|
|
1845
1845
|
}, defaultSortDirection: de, flexGrow: 0, flexShrink: 1, headerRenderer: function(o) {
|
|
1846
|
-
var e = o.dataKey, t = o.label, n = o.sortBy, r = o.sortDirection, l = n === e, i = [
|
|
1847
|
-
return l && i.push(
|
|
1848
|
-
}, style: {} }),
|
|
1846
|
+
var e = o.dataKey, t = o.label, n = o.sortBy, r = o.sortDirection, l = n === e, i = [x.createElement("span", { className: "ReactVirtualized__Table__headerTruncatedText", key: "label", title: typeof t == "string" ? t : null }, t)];
|
|
1847
|
+
return l && i.push(x.createElement($t, { key: "SortIndicator", sortDirection: r })), i;
|
|
1848
|
+
}, style: {} }), Se.propTypes = {};
|
|
1849
1849
|
var Oe = function() {
|
|
1850
1850
|
function o(e) {
|
|
1851
1851
|
var t, n, r, l;
|
|
1852
|
-
return
|
|
1852
|
+
return A(this, o), n = this, l = [e], r = O(r = o), (t = W(n, qt() ? Reflect.construct(r, l || [], O(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;
|
|
1853
1853
|
}
|
|
1854
|
-
return D(o,
|
|
1854
|
+
return D(o, x.PureComponent), E(o, [{ key: "forceUpdateGrid", value: function() {
|
|
1855
1855
|
this.Grid && this.Grid.forceUpdate();
|
|
1856
1856
|
} }, { key: "getOffsetForRow", value: function(e) {
|
|
1857
1857
|
var t = e.alignment, n = e.index;
|
|
@@ -1884,38 +1884,38 @@ var Oe = function() {
|
|
|
1884
1884
|
} }, { key: "componentDidUpdate", value: function() {
|
|
1885
1885
|
this._setScrollbarWidth();
|
|
1886
1886
|
} }, { key: "render", value: function() {
|
|
1887
|
-
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,
|
|
1888
|
-
return this._cachedColumnStyles = [],
|
|
1889
|
-
var
|
|
1890
|
-
e._cachedColumnStyles[
|
|
1891
|
-
}),
|
|
1887
|
+
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, C = typeof v == "function" ? v({ index: -1 }) : v;
|
|
1888
|
+
return this._cachedColumnStyles = [], x.Children.toArray(n).forEach(function(b, R) {
|
|
1889
|
+
var z = e._getFlexStyleForColumn(b, b.props.style || Se.defaultProps.style);
|
|
1890
|
+
e._cachedColumnStyles[R] = U({ overflow: "hidden" }, z);
|
|
1891
|
+
}), x.createElement("div", { "aria-label": this.props["aria-label"], "aria-labelledby": this.props["aria-labelledby"], "aria-colcount": x.Children.toArray(n).length, "aria-rowcount": this.props.rowCount, className: N("ReactVirtualized__Table", r), id: h, role: "grid", style: _ }, !l && c({ className: N("ReactVirtualized__Table__headerRow", w), columns: this._getHeaderColumns(), style: U({ height: s, overflow: "hidden", paddingRight: y, width: S }, C) }), x.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" }) })));
|
|
1892
1892
|
} }, { key: "_createColumn", value: function(e) {
|
|
1893
1893
|
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;
|
|
1894
|
-
return
|
|
1894
|
+
return x.createElement("div", { "aria-colindex": n + 1, "aria-describedby": m, className: N("ReactVirtualized__Table__rowColumn", f), key: "Row" + a + "-Col" + n, onClick: function(g) {
|
|
1895
1895
|
s && s({ columnData: u, dataKey: v, event: g });
|
|
1896
1896
|
}, role: "gridcell", style: S, title: y }, _);
|
|
1897
1897
|
} }, { key: "_createHeader", value: function(e) {
|
|
1898
|
-
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,
|
|
1899
|
-
if (
|
|
1900
|
-
var
|
|
1901
|
-
|
|
1898
|
+
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, C = _.headerRenderer, b = _.id, R = _.label, z = !w && u, I = N("ReactVirtualized__Table__headerColumn", d, a.props.headerClassName, { ReactVirtualized__Table__sortableHeaderColumn: z }), k = this._getFlexStyleForColumn(a, U(U({}, h), a.props.headerStyle)), P = C({ columnData: S, dataKey: y, disableSort: w, label: R, sortBy: v, sortDirection: m });
|
|
1899
|
+
if (z || f) {
|
|
1900
|
+
var T = v !== y ? g : m === ke ? de : ke, L = function(G) {
|
|
1901
|
+
z && u({ defaultSortDirection: g, event: G, sortBy: y, sortDirection: T }), f && f({ columnData: S, dataKey: y, event: G });
|
|
1902
1902
|
};
|
|
1903
|
-
i = a.props["aria-label"] ||
|
|
1903
|
+
i = a.props["aria-label"] || R || y, l = "none", r = 0, t = L, n = function(G) {
|
|
1904
1904
|
G.key !== "Enter" && G.key !== " " || L(G);
|
|
1905
1905
|
};
|
|
1906
1906
|
}
|
|
1907
|
-
return v === y && (l = m === de ? "ascending" : "descending"),
|
|
1907
|
+
return v === y && (l = m === de ? "ascending" : "descending"), x.createElement("div", { "aria-label": i, "aria-sort": l, className: I, id: b, key: "Header-Col" + s, onClick: t, onKeyDown: n, role: "columnheader", style: k, tabIndex: r }, P);
|
|
1908
1908
|
} }, { key: "_createRow", value: function(e) {
|
|
1909
|
-
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,
|
|
1910
|
-
return t._createColumn({ column:
|
|
1911
|
-
}),
|
|
1912
|
-
return S({ className:
|
|
1909
|
+
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, C = typeof y == "function" ? y({ index: n }) : y, b = _({ index: n }), R = x.Children.toArray(c).map(function(k, P) {
|
|
1910
|
+
return t._createColumn({ column: k, columnIndex: P, isScrolling: r, parent: i, rowData: b, rowIndex: n, scrollbarWidth: g });
|
|
1911
|
+
}), z = N("ReactVirtualized__Table__row", w), I = U(U({}, a), {}, { height: this._getRowHeight(n), overflow: "hidden", paddingRight: g }, C);
|
|
1912
|
+
return S({ className: z, columns: R, index: n, isScrolling: r, key: l, onRowClick: d, onRowDoubleClick: h, onRowRightClick: f, onRowMouseOver: u, onRowMouseOut: v, rowData: b, style: I });
|
|
1913
1913
|
} }, { key: "_getFlexStyleForColumn", value: function(e) {
|
|
1914
1914
|
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 });
|
|
1915
1915
|
return e.props.maxWidth && (r.maxWidth = e.props.maxWidth), e.props.minWidth && (r.minWidth = e.props.minWidth), r;
|
|
1916
1916
|
} }, { key: "_getHeaderColumns", value: function() {
|
|
1917
1917
|
var e = this, t = this.props, n = t.children;
|
|
1918
|
-
return (t.disableHeader ? [] :
|
|
1918
|
+
return (t.disableHeader ? [] : x.Children.toArray(n)).map(function(r, l) {
|
|
1919
1919
|
return e._createHeader({ column: r, index: l });
|
|
1920
1920
|
});
|
|
1921
1921
|
} }, { key: "_getRowHeight", value: function(e) {
|
|
@@ -1942,7 +1942,7 @@ p(Oe, "defaultProps", { disableHeader: !1, estimatedRowSize: 30, headerHeight: 0
|
|
|
1942
1942
|
return null;
|
|
1943
1943
|
}, onScroll: function() {
|
|
1944
1944
|
return null;
|
|
1945
|
-
}, overscanIndicesGetter:
|
|
1945
|
+
}, overscanIndicesGetter: Ht, overscanRowCount: 10, rowRenderer: function(o) {
|
|
1946
1946
|
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 };
|
|
1947
1947
|
return (l || i || a || s || c) && (f["aria-label"] = "row", f.tabIndex = 0, l && (f.onClick = function(u) {
|
|
1948
1948
|
return l({ event: u, index: n, rowData: d });
|
|
@@ -1954,49 +1954,49 @@ p(Oe, "defaultProps", { disableHeader: !1, estimatedRowSize: 30, headerHeight: 0
|
|
|
1954
1954
|
return s({ event: u, index: n, rowData: d });
|
|
1955
1955
|
}), c && (f.onContextMenu = function(u) {
|
|
1956
1956
|
return c({ event: u, index: n, rowData: d });
|
|
1957
|
-
})),
|
|
1957
|
+
})), x.createElement("div", V({}, f, { className: e, key: r, role: "row", style: h }), t);
|
|
1958
1958
|
}, headerRowRenderer: function(o) {
|
|
1959
1959
|
var e = o.className, t = o.columns, n = o.style;
|
|
1960
|
-
return
|
|
1960
|
+
return x.createElement("div", { className: e, role: "row", style: n }, t);
|
|
1961
1961
|
}, rowStyle: {}, scrollToAlignment: "auto", scrollToIndex: -1, style: {} }), Oe.propTypes = {};
|
|
1962
1962
|
var Y = [], ae = null, X = null;
|
|
1963
|
-
function
|
|
1963
|
+
function Xt() {
|
|
1964
1964
|
X && (X = null, document.body && ae != null && (document.body.style.pointerEvents = ae), ae = null);
|
|
1965
1965
|
}
|
|
1966
|
-
function
|
|
1967
|
-
|
|
1966
|
+
function nn() {
|
|
1967
|
+
Xt(), Y.forEach(function(o) {
|
|
1968
1968
|
return o.__resetIsScrolling();
|
|
1969
1969
|
});
|
|
1970
1970
|
}
|
|
1971
|
-
function
|
|
1971
|
+
function Yt(o) {
|
|
1972
1972
|
o.currentTarget === window && ae == null && document.body && (ae = document.body.style.pointerEvents, document.body.style.pointerEvents = "none"), function() {
|
|
1973
1973
|
X && oe(X);
|
|
1974
1974
|
var e = 0;
|
|
1975
1975
|
Y.forEach(function(t) {
|
|
1976
1976
|
e = Math.max(e, t.props.scrollingResetTimeInterval);
|
|
1977
|
-
}), X =
|
|
1977
|
+
}), X = Ge(nn, e);
|
|
1978
1978
|
}(), Y.forEach(function(e) {
|
|
1979
1979
|
e.props.scrollElement === o.currentTarget && e.__handleWindowScrollEvent();
|
|
1980
1980
|
});
|
|
1981
1981
|
}
|
|
1982
|
-
function
|
|
1982
|
+
function mt(o, e) {
|
|
1983
1983
|
Y.some(function(t) {
|
|
1984
1984
|
return t.props.scrollElement === e;
|
|
1985
|
-
}) || e.addEventListener("scroll",
|
|
1985
|
+
}) || e.addEventListener("scroll", Yt), Y.push(o);
|
|
1986
1986
|
}
|
|
1987
|
-
function
|
|
1987
|
+
function gt(o, e) {
|
|
1988
1988
|
(Y = Y.filter(function(t) {
|
|
1989
1989
|
return t !== o;
|
|
1990
|
-
})).length || (e.removeEventListener("scroll",
|
|
1990
|
+
})).length || (e.removeEventListener("scroll", Yt), X && (oe(X), Xt()));
|
|
1991
1991
|
}
|
|
1992
|
-
var
|
|
1992
|
+
var Ee = function(o) {
|
|
1993
1993
|
return o === window;
|
|
1994
1994
|
}, le = function(o) {
|
|
1995
1995
|
return o.getBoundingClientRect();
|
|
1996
1996
|
};
|
|
1997
|
-
function
|
|
1997
|
+
function vt(o, e) {
|
|
1998
1998
|
if (o) {
|
|
1999
|
-
if (
|
|
1999
|
+
if (Ee(o)) {
|
|
2000
2000
|
var t = window, n = t.innerHeight, r = t.innerWidth;
|
|
2001
2001
|
return { height: typeof n == "number" ? n : 0, width: typeof r == "number" ? r : 0 };
|
|
2002
2002
|
}
|
|
@@ -2004,10 +2004,10 @@ function pt(o, e) {
|
|
|
2004
2004
|
}
|
|
2005
2005
|
return { height: e.serverHeight, width: e.serverWidth };
|
|
2006
2006
|
}
|
|
2007
|
-
function
|
|
2008
|
-
return
|
|
2007
|
+
function _t(o) {
|
|
2008
|
+
return Ee(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 };
|
|
2009
2009
|
}
|
|
2010
|
-
function
|
|
2010
|
+
function St(o, e) {
|
|
2011
2011
|
var t = Object.keys(o);
|
|
2012
2012
|
if (Object.getOwnPropertySymbols) {
|
|
2013
2013
|
var n = Object.getOwnPropertySymbols(o);
|
|
@@ -2017,35 +2017,35 @@ function gt(o, e) {
|
|
|
2017
2017
|
}
|
|
2018
2018
|
return t;
|
|
2019
2019
|
}
|
|
2020
|
-
function
|
|
2020
|
+
function yt(o) {
|
|
2021
2021
|
for (var e = 1; e < arguments.length; e++) {
|
|
2022
2022
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
2023
|
-
e % 2 ?
|
|
2023
|
+
e % 2 ? St(Object(t), !0).forEach(function(n) {
|
|
2024
2024
|
p(o, n, t[n]);
|
|
2025
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) :
|
|
2025
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : St(Object(t)).forEach(function(n) {
|
|
2026
2026
|
Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
|
|
2027
2027
|
});
|
|
2028
2028
|
}
|
|
2029
2029
|
return o;
|
|
2030
2030
|
}
|
|
2031
|
-
function
|
|
2031
|
+
function Jt() {
|
|
2032
2032
|
try {
|
|
2033
2033
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
2034
2034
|
}));
|
|
2035
2035
|
} catch {
|
|
2036
2036
|
}
|
|
2037
|
-
return (
|
|
2037
|
+
return (Jt = function() {
|
|
2038
2038
|
return !!o;
|
|
2039
2039
|
})();
|
|
2040
2040
|
}
|
|
2041
|
-
var
|
|
2041
|
+
var Zt = function() {
|
|
2042
2042
|
return typeof window < "u" ? window : void 0;
|
|
2043
|
-
},
|
|
2043
|
+
}, rn = function() {
|
|
2044
2044
|
function o() {
|
|
2045
2045
|
var e, t, n, r;
|
|
2046
|
-
|
|
2046
|
+
A(this, o);
|
|
2047
2047
|
for (var l = arguments.length, i = new Array(l), a = 0; a < l; a++) i[a] = arguments[a];
|
|
2048
|
-
return t = this, n = o, r = [].concat(i), n =
|
|
2048
|
+
return t = this, n = o, r = [].concat(i), n = O(n), p(e = W(t, Jt() ? Reflect.construct(n, r || [], O(t).constructor) : n.apply(t, r)), "_window", Zt()), p(e, "_isMounted", !1), p(e, "_positionFromTop", 0), p(e, "_positionFromLeft", 0), p(e, "_detectElementResize", void 0), p(e, "_child", void 0), p(e, "_windowScrollerRef", x.createRef()), p(e, "state", yt(yt({}, vt(e.props.scrollElement, e.props)), {}, { isScrolling: !1, scrollLeft: 0, scrollTop: 0 })), p(e, "_registerChild", function(s) {
|
|
2049
2049
|
!s || s instanceof Element || console.warn("WindowScroller registerChild expects to be passed Element or null"), e._child = s, e.updatePosition();
|
|
2050
2050
|
}), p(e, "_onChildScroll", function(s) {
|
|
2051
2051
|
var c = s.scrollTop;
|
|
@@ -2063,7 +2063,7 @@ var Xt = function() {
|
|
|
2063
2063
|
if (e._isMounted) {
|
|
2064
2064
|
var s = e.props.onScroll, c = e.props.scrollElement;
|
|
2065
2065
|
if (c) {
|
|
2066
|
-
var d =
|
|
2066
|
+
var d = _t(c), h = Math.max(0, d.left - e._positionFromLeft), f = Math.max(0, d.top - e._positionFromTop);
|
|
2067
2067
|
e.setState({ isScrolling: !0, scrollLeft: h, scrollTop: f }), s({ scrollLeft: h, scrollTop: f });
|
|
2068
2068
|
}
|
|
2069
2069
|
}
|
|
@@ -2071,51 +2071,51 @@ var Xt = function() {
|
|
|
2071
2071
|
e.setState({ isScrolling: !1 });
|
|
2072
2072
|
}), e;
|
|
2073
2073
|
}
|
|
2074
|
-
return D(o,
|
|
2074
|
+
return D(o, x.PureComponent), E(o, [{ key: "updatePosition", value: function() {
|
|
2075
2075
|
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;
|
|
2076
2076
|
if (i instanceof Element && e) {
|
|
2077
2077
|
var a = function(c, d) {
|
|
2078
|
-
if (
|
|
2078
|
+
if (Ee(d) && document.documentElement) {
|
|
2079
2079
|
var h = document.documentElement, f = le(c), u = le(h);
|
|
2080
2080
|
return { top: f.top - u.top, left: f.left - u.left };
|
|
2081
2081
|
}
|
|
2082
|
-
var v =
|
|
2082
|
+
var v = _t(d), m = le(c), _ = le(d);
|
|
2083
2083
|
return { top: m.top + v.top - _.top, left: m.left + v.left - _.left };
|
|
2084
2084
|
}(i, e);
|
|
2085
2085
|
this._positionFromTop = a.top, this._positionFromLeft = a.left;
|
|
2086
2086
|
}
|
|
2087
|
-
var s =
|
|
2087
|
+
var s = vt(e, this.props);
|
|
2088
2088
|
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());
|
|
2089
2089
|
} }, { key: "componentDidMount", value: function() {
|
|
2090
2090
|
var e = this.props.scrollElement;
|
|
2091
|
-
this._detectElementResize =
|
|
2091
|
+
this._detectElementResize = Pt(), this.updatePosition(e), e && (mt(this, e), this._registerResizeListener(e)), this._isMounted = !0;
|
|
2092
2092
|
} }, { key: "componentDidUpdate", value: function(e, t) {
|
|
2093
2093
|
var n = this.props.scrollElement, r = e.scrollElement;
|
|
2094
|
-
r !== n && r != null && n != null && (this.updatePosition(n),
|
|
2094
|
+
r !== n && r != null && n != null && (this.updatePosition(n), gt(this, r), mt(this, n), this._unregisterResizeListener(r), this._registerResizeListener(n));
|
|
2095
2095
|
} }, { key: "componentWillUnmount", value: function() {
|
|
2096
2096
|
var e = this.props.scrollElement;
|
|
2097
|
-
e && (
|
|
2097
|
+
e && (gt(this, e), this._unregisterResizeListener(e)), this._isMounted = !1;
|
|
2098
2098
|
} }, { key: "render", value: function() {
|
|
2099
2099
|
var e = this.props.children, t = this.state, n = t.isScrolling, r = t.scrollTop, l = t.scrollLeft, i = t.height, a = t.width;
|
|
2100
|
-
return
|
|
2100
|
+
return x.createElement("div", { ref: this._windowScrollerRef }, e({ onChildScroll: this._onChildScroll, registerChild: this._registerChild, height: i, isScrolling: n, scrollLeft: l, scrollTop: r, width: a }));
|
|
2101
2101
|
} }]);
|
|
2102
2102
|
}();
|
|
2103
|
-
p(
|
|
2103
|
+
p(rn, "defaultProps", { onResize: function() {
|
|
2104
2104
|
}, onScroll: function() {
|
|
2105
|
-
}, scrollingResetTimeInterval: 150, scrollElement:
|
|
2106
|
-
const se = "ReactVirtualizedDemo-flexContainer",
|
|
2107
|
-
class
|
|
2105
|
+
}, scrollingResetTimeInterval: 150, scrollElement: Zt(), serverHeight: 0, serverWidth: 0 });
|
|
2106
|
+
const se = "ReactVirtualizedDemo-flexContainer", Qt = "ReactVirtualizedDemo-tableRow", eo = "ReactVirtualizedDemo-tableRowHover", Me = "ReactVirtualizedDemo-tableCell", Le = "ReactVirtualizedDemo-noClick";
|
|
2107
|
+
class ln extends Ct.PureComponent {
|
|
2108
2108
|
constructor() {
|
|
2109
2109
|
super(...arguments), this.getRowClassName = ({ index: e }) => {
|
|
2110
2110
|
const { onRowClick: t } = this.props;
|
|
2111
|
-
return
|
|
2111
|
+
return ye(Qt, se, { [eo]: e !== -1 && t != null });
|
|
2112
2112
|
}, this.cellRenderer = ({ cellData: e, dataKey: t, columnIndex: n, width: r }) => {
|
|
2113
2113
|
const { columns: l, rowHeight: i, onRowClick: a } = this.props;
|
|
2114
2114
|
let s = e, c = { height: i, paddingRight: "2px", paddingTop: "0px", paddingBottom: "0px", minWidth: `${r}px`, maxWidth: `${r}px` };
|
|
2115
|
-
return t === "shortcut" ? s =
|
|
2115
|
+
return t === "shortcut" ? s = To(e) : t === "description" && (c = { ...c, fontSize: ".75rem", display: "block", paddingTop: "4px", whiteSpace: "pre-line" }), H(Fe, { component: "div", className: ye(Me, se, { [Le]: a == null }), variant: "body", style: c, align: n != null && l[n].numeric ? "right" : "left", children: s });
|
|
2116
2116
|
}, this.headerRenderer = ({ label: e, columnIndex: t, width: n }) => {
|
|
2117
2117
|
const { headerHeight: r, columns: l } = this.props, i = l[t];
|
|
2118
|
-
return
|
|
2118
|
+
return H(Fe, { component: "div", className: ye(Me, se, Le), variant: "head", sx: { width: n, height: r, backgroundColor: (a) => a.palette.grey[300] }, align: i.numeric ? "right" : "left", children: H("span", { children: i.label }) });
|
|
2119
2119
|
};
|
|
2120
2120
|
}
|
|
2121
2121
|
static {
|
|
@@ -2123,15 +2123,15 @@ class en extends St.PureComponent {
|
|
|
2123
2123
|
}
|
|
2124
2124
|
render() {
|
|
2125
2125
|
const { columns: e, rowHeight: t, headerHeight: n, ...r } = this.props;
|
|
2126
|
-
return
|
|
2126
|
+
return H(Ot, { children: ({ height: l, width: i }) => H(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) => {
|
|
2127
2127
|
const f = c ? i - c : s;
|
|
2128
|
-
return
|
|
2128
|
+
return H(Se, { 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);
|
|
2129
2129
|
}) }) });
|
|
2130
2130
|
}
|
|
2131
2131
|
}
|
|
2132
|
-
const
|
|
2133
|
-
function
|
|
2134
|
-
const { commands: e, ...t } = o, [n, r] =
|
|
2132
|
+
const sn = jo(ln)(({ 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" }, [`& .${Qt}`]: { cursor: "pointer" }, [`& .${eo}`]: { "&:hover:not([disabled])": { backgroundColor: o.palette.grey[200] } }, [`& .${Me}`]: { flex: 1 }, [`& .${Le}`]: { cursor: "initial" } }));
|
|
2133
|
+
function an(o) {
|
|
2134
|
+
const { commands: e, ...t } = o, [n, r] = pe(!1), [l, i] = pe(""), a = ko(() => {
|
|
2135
2135
|
let u = e.getAllCommands();
|
|
2136
2136
|
n || (u = u.filter((_) => _.command.shortcut())), u.sort((_, S) => _.command.label().localeCompare(S.command.label()));
|
|
2137
2137
|
const v = [], m = (_) => _.replace(/\n\n/g, `
|
|
@@ -2144,34 +2144,34 @@ function on(o) {
|
|
|
2144
2144
|
} else v.push({ label: S.label(), description: m(S.description()), shortcut: S.shortcut() });
|
|
2145
2145
|
}
|
|
2146
2146
|
return v;
|
|
2147
|
-
}, [n, e]), [s, c] =
|
|
2148
|
-
|
|
2149
|
-
import("./
|
|
2147
|
+
}, [n, e]), [s, c] = pe(null);
|
|
2148
|
+
je(() => {
|
|
2149
|
+
import("./CM9SSh6zB4mXFuiK.js").then((u) => {
|
|
2150
2150
|
c(new u.default(a, { threshold: 0, ignoreLocation: !0, keys: ["label", "description"] }));
|
|
2151
2151
|
});
|
|
2152
2152
|
}, [a]);
|
|
2153
|
-
const [d, h] =
|
|
2154
|
-
return
|
|
2155
|
-
s &&
|
|
2153
|
+
const [d, h] = pe(a), f = l.length > 0 && d.length === 0;
|
|
2154
|
+
return je(() => {
|
|
2155
|
+
s && fo.debounce(() => {
|
|
2156
2156
|
if (l.trim().length === 0) return void h(a);
|
|
2157
2157
|
const u = s.search(l.trim()), v = new Array(u.length);
|
|
2158
2158
|
for (let m = 0; m < u.length; m++) v[m] = u[m].item;
|
|
2159
2159
|
h(v);
|
|
2160
2160
|
}, 90)();
|
|
2161
|
-
}, [s, l]),
|
|
2161
|
+
}, [s, l]), We(he, { style: { height: 440, width: "100%", display: "flex", flexDirection: "column" }, ...t, children: [We(he, { sx: { display: "flex", alignItems: "center", justifyContent: "end", marginBottom: (u) => u.spacing(2), color: (u) => u.palette.text.secondary }, children: [H(po, { 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: H(mo, { sx: { opacity: l.length > 0 ? 1 : 0, display: l.length > 0 ? "flex" : "none" }, position: "end", children: H(go, { "aria-label": "clear search", onClick: () => i(""), edge: "end", children: H(vo, {}) }) }) }, 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) => {
|
|
2162
2162
|
i(u.target.value);
|
|
2163
2163
|
}, onKeyDown: (u) => {
|
|
2164
|
-
u.which ===
|
|
2164
|
+
u.which === wt.Escape && l.length > 0 && (i(""), u.stopPropagation(), u.preventDefault());
|
|
2165
2165
|
}, onContextMenu: (u) => {
|
|
2166
2166
|
u.stopPropagation();
|
|
2167
|
-
} }),
|
|
2167
|
+
} }), H(_o, { sx: { flex: "1 1 60%" }, control: H(So, { checked: n, onChange: () => r(!n) }), label: "Show commands without key bindings", labelPlacement: "start" })] }), H(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: H(sn, { 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 }] }) }), H(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: H(yo, { 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" : ""}` }) })] });
|
|
2168
2168
|
}
|
|
2169
|
-
const
|
|
2169
|
+
const hn = (o) => {
|
|
2170
2170
|
const { title: e = "Shortcut Keys", commands: t, sx: n, ...r } = o;
|
|
2171
|
-
return
|
|
2172
|
-
l.keyCode ===
|
|
2173
|
-
}, sx: { width: "780px", ...n }, title: e, autoFocusSel: ".input", ...r, children:
|
|
2171
|
+
return H(uo, { isModal: !0, onKeyDown: (l) => {
|
|
2172
|
+
l.keyCode === wt.F1 && l.preventDefault();
|
|
2173
|
+
}, sx: { width: "780px", ...n }, title: e, autoFocusSel: ".input", ...r, children: H(ho, { dividers: !0, children: H(an, { commands: t, sx: { marginBottom: "8px" } }) }) });
|
|
2174
2174
|
};
|
|
2175
2175
|
export {
|
|
2176
|
-
|
|
2176
|
+
hn as default
|
|
2177
2177
|
};
|