@sheetxl/studio-vanilla 0.7.9 → 0.7.11
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/{DdQwp9nBpZcoIdAJ.cjs → 7SU9suBhubURGggI.cjs} +1 -1
- package/browser/cjs/{DjKwZTEjS8bDI6vB.cjs → 8nqR2-rPIuGdEIQe.cjs} +2 -2
- package/browser/cjs/{DxEYABfvkvMQXjkd.cjs → 9o1eLnownogeMwyc.cjs} +1 -1
- package/browser/cjs/{28ueRdtTlxneL0gM.cjs → B0DhV18jarXPtbol.cjs} +2 -2
- package/browser/cjs/{LmL4erfidoyTg6Rn.cjs → BBv22Aw9g1E8MWdn.cjs} +4 -4
- package/browser/cjs/{gGyygQPVOUdpU2hb.cjs → BNnHt6qDqZksLII1.cjs} +1 -1
- package/browser/cjs/{2KLpsnKefVyEmZ2O.cjs → BRH1VPMpSG0urT1s.cjs} +1 -1
- package/browser/cjs/{C7XUWFBNagw3WqkA.cjs → BRxxZi2wGy13iclf.cjs} +5 -5
- package/browser/cjs/{DsvmywyXGwBNM-Zk.cjs → BUvFKOHPMIHwdtUB.cjs} +1 -1
- package/browser/cjs/{Ddyt1ktuWSMrEkIX.cjs → BY92Z-WFFfG3MbD7.cjs} +2 -2
- package/browser/cjs/{4HQQsZp_Dtpou5d-.cjs → BdR6D9fV7KmZujdP.cjs} +1 -1
- package/browser/cjs/{B3zn4UACSeM23IZD.cjs → BkPYmGB-wP6TVE8-.cjs} +1 -1
- package/browser/cjs/{VCKB7r9Cy9W_Y2eC.cjs → Bl_3smYj2qnYq-3F.cjs} +7 -7
- package/browser/cjs/{CFajgGuqITaobO3F.cjs → BmmfQP1wV5Absyg8.cjs} +3 -3
- package/browser/cjs/{fsmwv8vXa5GMorQG.cjs → BqdbIarOdh9Axvt0.cjs} +1 -1
- package/browser/cjs/{zbjyZT6o6ykMIKBr.cjs → Bto0ftjeF47cvJdi.cjs} +1 -1
- package/browser/cjs/{DWnnzbiYZqMYfOtO.cjs → C-Im8uqzZv17lOnP.cjs} +2 -2
- package/browser/cjs/{-jRNNdUXwoXaLfLk.cjs → C12TnTNCrGjUdbGt.cjs} +3 -3
- package/browser/cjs/{mphO2n0YWLCwl-y3.cjs → C6kzo8uPQQoXWKYr.cjs} +8 -8
- package/browser/cjs/{DmP5P4nD6s_T0R0_.cjs → CBxhVkStLoRggBtV.cjs} +2 -2
- package/browser/cjs/{B1b4yakNGFFm6RKb.cjs → CC6DJpfXrAfymnhw.cjs} +1 -1
- package/browser/cjs/{BSNMVqk1t0UhVqdb.cjs → CCA9YQiTLqOXq0Wt.cjs} +1 -1
- package/browser/cjs/{BtXW0ExoOeHBxuRe.cjs → CRv97HV3of8kSjnz.cjs} +2 -2
- package/browser/cjs/{D8X6TP0dbfp_I68L.cjs → CSx9V80P-82annVz.cjs} +2 -2
- package/browser/cjs/CW_TjfGnemEUJ58_.cjs +6 -0
- package/browser/cjs/{w5JxRpgiKOvh5tFM.cjs → CjRiqIYPXpCRU6Y9.cjs} +1 -1
- package/browser/cjs/{Dd6hGYHS3cbMBbXA.cjs → CnWBwBAZBjLCyQ20.cjs} +1 -1
- package/browser/cjs/{CsXxIP9lLu9aFL3J.cjs → CtAf7EADj-tj9o6G.cjs} +1 -1
- package/browser/cjs/{BzWBS9dKcCw5_3VL.cjs → CuBNorzcKplEAvqK.cjs} +1 -1
- package/browser/cjs/{CvShkDwGyhYRrNiN.cjs → D-0Fik4ourpwXi3i.cjs} +1 -1
- package/browser/cjs/D6K2fCFGtiRPHmMV.cjs +327 -0
- package/browser/cjs/{Dy8reGDChpxfnCJ_.cjs → D7Ac5EKfAPyrrhkS.cjs} +2 -2
- package/browser/cjs/{Cae33-B3bPeB4Lry.cjs → D8v3BenpdWipIJkL.cjs} +1 -1
- package/browser/cjs/{D55IuXpDG_yOqLOr.cjs → DAEbq_E3O5eEDAPQ.cjs} +1 -1
- package/browser/cjs/{v6JQur9NiLDO0Ktv.cjs → DDhGqGMGGeQc5Vo8.cjs} +1 -1
- package/browser/cjs/{C3Fhn8b2S1z6xZCM.cjs → DI7s2NqJg76ihNkK.cjs} +1 -1
- package/browser/cjs/{DBIXaKPrKqoX5Ej0.cjs → DIPpP05UV3BNtX9g.cjs} +1 -1
- package/browser/cjs/{DzdNT91Z6wp2t1ln.cjs → DMSNO64aZh_fw3zf.cjs} +2 -2
- package/browser/cjs/{C-hbHl6SPjfJFws_.cjs → DSk0ysK_11319VY2.cjs} +1 -1
- package/browser/cjs/{DoIc8TRrn9BXtvZS.cjs → D_IRo0PO19CnzL3N.cjs} +2 -2
- package/browser/cjs/{DtcVgpdytT29BDrX.cjs → D_YtxTTSDi9Asoyu.cjs} +1 -1
- package/browser/cjs/{BO3zSl1fYMj4HEPM.cjs → DrrBxsEjp39C74ju.cjs} +1 -1
- package/browser/cjs/{4602FFTU0gpad3xf.cjs → DvTY5XJeT47xrY8Q.cjs} +1 -1
- package/browser/cjs/Dw4fCUKQgEqqfBV4.cjs +11 -0
- package/browser/cjs/{DRWk3O67719LopNw.cjs → Dxn-fVORDhlAaX6v.cjs} +1 -1
- package/browser/cjs/{BLkZ10BgGSKfXn8i.cjs → FfG5Bkr-7M9137BO.cjs} +2 -2
- package/browser/cjs/{ax00EVAzg1-wEeli.cjs → I4zHKiFqVlr_w0Fm.cjs} +1 -1
- package/browser/cjs/{Dyfld4qTyM2o0k8p.cjs → JPo5MA_EKlNadwdM.cjs} +4 -4
- package/browser/cjs/{DXz9_M2oCUFeOvd6.cjs → JZDqc5W9_nwxtBJ3.cjs} +1 -1
- package/browser/cjs/{BeKopOONXyBBKG_1.cjs → N6tUn_g0pOE0uDoQ.cjs} +2 -2
- package/browser/cjs/{Bi3eyLr3xw96w_Ec.cjs → PMU3QZ4iJEMfHvFs.cjs} +1 -1
- package/browser/cjs/{CpuJvPRM-ZfIbNLP.cjs → QTL9F1HRnB1Wn2-A.cjs} +1 -1
- package/browser/cjs/{DaQSG2NK8zorWz4p.cjs → XWeausRSKBOymZ4u.cjs} +3 -3
- package/browser/cjs/_uPzYzEoCOEeLyon.cjs +32 -0
- package/browser/cjs/{BH4rNjGU9wYFc-uC.cjs → g9WJWiyqT9ymbp5V.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{BZ7A3G8yvWBEbPQg.cjs → sdCc7oY00lsobMRi.cjs} +1 -1
- package/browser/cjs/tyi6ASN0_O5JsRMI.cjs +6 -0
- package/browser/esm/1gFo3mDvymIc_GSM.mjs +48 -0
- package/browser/esm/{Crulydg0c0mpXHIv.mjs → 1lg1IRnwlZaeRS7t.mjs} +1 -1
- package/{cdn/assets/DIPL9v_lUxBLj7uL.js → browser/esm/26cl6zBoRTZUZazo.mjs} +1 -1
- package/browser/esm/{CqqOAWyXxM1Y7xHg.mjs → 8ipqSgbg2rPEK06x.mjs} +13 -13
- package/browser/esm/{J1nGYMTPHDl0Dtk1.mjs → B4snRWo3ROdmId1c.mjs} +2 -2
- package/{cdn/assets/DaH--fxsswaRgEcF.js → browser/esm/BAhhLfl8o1dGoNbb.mjs} +1 -1
- package/browser/esm/{D31oMNVEevFiSSu3.mjs → BHtxIFAotk1srRF7.mjs} +1 -1
- package/browser/esm/{_GsOJmagfG9vJ3_O.mjs → BO7w8FY_b864MJsH.mjs} +1 -1
- package/browser/esm/{Cw7cbwion0vbFHQC.mjs → Be8UqB7qQ3yEIghH.mjs} +1 -1
- package/browser/esm/{Cnj0U7PbRaaA2bEF.mjs → BkpJCaRBrTV7-14x.mjs} +4 -4
- package/browser/esm/{CPIVxYDjYBGrlKzN.mjs → BmViPhy9qOxkdlIY.mjs} +1 -1
- package/browser/esm/{DSAXrKks652VbNll.mjs → BsQRDtmffYBPjRzI.mjs} +2 -2
- package/browser/esm/{rltHJRjXNQqhdulf.mjs → BvGP9PN8T5kYYqXn.mjs} +8 -8
- package/browser/esm/{BC4z07NIqrag6LK1.mjs → Bzql4m9lZvOU06fz.mjs} +1 -1
- package/browser/esm/{pRXKDt8_bIadmeiR.mjs → C0THPGQwZ1R4wGso.mjs} +1 -1
- package/{cdn/assets/lgPHHQHWLWGNnYGO.js → browser/esm/C4XCAo0TpxslRVJ5.mjs} +1 -1
- package/browser/esm/{iQsD2LQQtFWVdA0k.mjs → C97jkP_D9xckt66O.mjs} +297 -293
- package/{cdn/assets/B2niIQY0fIjYfoM9.js → browser/esm/C9IxpFcjTqaCRk2N.mjs} +1 -1
- package/{cdn/assets/CyAL0Nk6PrxryVRw.js → browser/esm/CBzKugXFy2maB9T2.mjs} +1 -1
- package/browser/esm/{BJDgDeqzt7VmeRxD.mjs → CH1QLqVaEaDCToun.mjs} +4 -4
- package/browser/esm/{D9mNgZwIB18h1gd3.mjs → CO-25pcw5LMrahel.mjs} +1 -1
- package/{cdn/assets/CKPAoMVPiyx_7ozH.js → browser/esm/COD8frfCMwYHZn2a.mjs} +1 -1
- package/browser/esm/{kjrrmIaLKG4Y49Rj.mjs → CY5YAVLlBtHpA3zo.mjs} +2 -2
- package/browser/esm/{vrPREn1FiY2DXcCj.mjs → CbotKmuc-u3i6l2r.mjs} +1 -1
- package/{cdn/assets/Ql3e_vvI0FI2W43h.js → browser/esm/CcAlI0U1H8U3WLIc.mjs} +2 -2
- package/{cdn/assets/JjYKx_AWKoQp1iP5.js → browser/esm/CdHALOHfiCjQPb6m.mjs} +1 -1
- package/browser/esm/{C4ESbAWre7JpSMEG.mjs → CeihNWbiiXjlhNOB.mjs} +5 -5
- package/browser/esm/{CTls6jXHDizCTQqa.mjs → CfnDaW3FdBoQdTqQ.mjs} +1 -1
- package/{cdn/assets/DTiWq6c6dIhO7q3w.js → browser/esm/Cg54fkIVLhuRoiMb.mjs} +2 -2
- package/{cdn/assets/BitbWBCvLcgf5_k8.js → browser/esm/Ch9HnAWCAsXaP3LD.mjs} +1 -1
- package/browser/esm/{CjbmSAjgptXZOZub.mjs → Coys8HEmiwsrQIFr.mjs} +6 -6
- package/{cdn/assets/BOTc2W6k6GWqCVcp.js → browser/esm/Cu60N7T14PGlI74M.mjs} +1 -1
- package/browser/esm/{DCGMWZ69nZwmiyhn.mjs → CuKWS6_Je8iloPLI.mjs} +1 -1
- package/browser/esm/{Bd8Yvpc8OayD21zg.mjs → Cvdg3u2WzV4R8Z8w.mjs} +1 -1
- package/browser/esm/{CfnYVg2Fcignoanv.mjs → CwVNl2iequRw_jgb.mjs} +1 -1
- package/browser/esm/{Bq2-_FvbBSnQ1mRA.mjs → D-HCTBSjPpxDVjYI.mjs} +8 -8
- package/{cdn/assets/DB6k1pDUo7QnUyag.js → browser/esm/DEgxjiNnO2CGe0Mg.mjs} +1 -1
- package/browser/esm/{DuOp_v2dInrQQz2J.mjs → DKxMLVTxqrGDxkjf.mjs} +6 -6
- package/{cdn/assets/CTnPqIJ_buVJyq7v.js → browser/esm/DUlZT2QnfU4sQVQt.mjs} +1 -1
- package/browser/esm/{BvxCl7fyU6J4RrDH.mjs → De46gfEGYBOgbv15.mjs} +2 -2
- package/browser/esm/{BlRskWTo6RyVPYhw.mjs → DfEf5-SRjm41tv36.mjs} +3 -3
- package/browser/esm/{CrW2aOCLgiCxGleL.mjs → DiAV3Uz5gPX10g2b.mjs} +535 -530
- package/browser/esm/{BbFJbFt12fFxLxgW.mjs → DiClzo3XuRzjd65q.mjs} +1 -1
- package/{cdn/assets/CjNqjvPAYIJ1Txzc.js → browser/esm/DinosjN3TV2mmmEf.mjs} +1 -1
- package/browser/esm/{BVZ3XoT7zKr_Qy4r.mjs → Dj0SnQZEOd1_XKRM.mjs} +3 -3
- package/browser/esm/{CbWw3rzixUR8EDhs.mjs → DoFBMKmsTAV7_8ML.mjs} +2 -2
- package/browser/esm/F1uHh-svIwyYB_ba.mjs +11 -0
- package/browser/esm/{BRcmFAIQ2SPbJ-XM.mjs → GBJRbVY1swquhqKO.mjs} +4 -4
- package/browser/esm/{Cnao9JBvOgVnFQZP.mjs → RhlIOd-I5pWXW3GT.mjs} +2 -2
- package/{cdn/assets/CO0-isMoTEJCBD3A.js → browser/esm/SsRUVWcrhua0o1Dm.mjs} +1 -1
- package/browser/esm/{BRQ5s5G8SIeFcq2K.mjs → WzG__NqEXcEJGXF9.mjs} +1 -1
- package/browser/esm/{DT2Nk1w2teUvSMOy.mjs → YMtZzDjMWgR3_4eN.mjs} +1 -1
- package/browser/esm/{CRoUrsxPF-3VB2tH.mjs → dyaQatTfQy8_i9f1.mjs} +12110 -12060
- package/browser/esm/{CHKwHt2qLiyuOTYD.mjs → i0t_3E3HmaueoYzo.mjs} +10 -10
- package/browser/esm/index.mjs +2 -2
- package/browser/esm/{CyiZ9q3nsOxuzkPs.mjs → mRBUVHHKueJc-e6f.mjs} +1 -1
- package/{cdn/assets/PhwSfaFQy7vsmHQH.js → browser/esm/ou3Du5ZoOZAZnu26.mjs} +1 -1
- package/{cdn/assets/C_XaNFGBTyUBeyCT.js → browser/esm/zfgtBucZchI4hg1A.mjs} +1 -1
- package/cdn/assets/{Crulydg0c0mpXHIv.js → 1lg1IRnwlZaeRS7t.js} +1 -1
- package/{browser/esm/DIPL9v_lUxBLj7uL.mjs → cdn/assets/26cl6zBoRTZUZazo.js} +1 -1
- package/cdn/assets/{B2MR39qRXcxeC2TY.js → 2ZLWir-4zep4jFhL.js} +4 -4
- package/cdn/assets/{CqfbNUobbGU7YeN6.js → B2HJ-ePk9OHKl210.js} +4 -4
- package/cdn/assets/{CAaDybJknuY5Rk4X.js → B38DoSAYxJ40EixD.js} +9 -9
- package/{browser/esm/BcoTAKeH3O9xhPgO.mjs → cdn/assets/BAap2Os5GIeCh2L0.js} +2 -2
- package/{browser/esm/DaH--fxsswaRgEcF.mjs → cdn/assets/BAhhLfl8o1dGoNbb.js} +1 -1
- package/cdn/assets/{CQX8wcJJrnAOBgqs.js → BC_FaAAhtBWSONdx.js} +3 -3
- package/cdn/assets/{DQVq0WtjtMUmA_iU.js → BCzo1TO2mJqJ4Jtc.js} +2 -2
- package/cdn/assets/{NkjC32CMsHhn6YZJ.js → BHK8a9LH6Q5f48Fd.js} +23 -23
- package/cdn/assets/{D31oMNVEevFiSSu3.js → BHtxIFAotk1srRF7.js} +1 -1
- package/cdn/assets/{_GsOJmagfG9vJ3_O.js → BO7w8FY_b864MJsH.js} +1 -1
- package/cdn/assets/{CmJmZ1IbSjVFq_Hy.js → BV1DpPV78XursgLU.js} +4 -4
- package/cdn/assets/{CUji_8_tNWmnGxA-.js → BVPJB6VMnAqpPW4u.js} +3 -3
- package/cdn/assets/BbHaD-o5eMctGIB1.js +12 -0
- package/cdn/assets/{Cw7cbwion0vbFHQC.js → Be8UqB7qQ3yEIghH.js} +1 -1
- package/cdn/assets/{KqkDMLfvKbmvpsXV.js → BflHOjJ4oo10vE1N.js} +19 -19
- package/cdn/assets/{Budczm2E0D1oDtxb.js → BkDbp2f1WaqQ_XeQ.js} +34 -34
- package/cdn/assets/{AuxAIQlEjIRo3x4L.js → BpBgYsdvef1vL5wt.js} +4 -4
- package/cdn/assets/{BC4z07NIqrag6LK1.js → Bzql4m9lZvOU06fz.js} +1 -1
- package/cdn/assets/{pRXKDt8_bIadmeiR.js → C0THPGQwZ1R4wGso.js} +1 -1
- package/cdn/assets/{CPpuNRDowyacHTZD.js → C3_t9M2RoTrmk5Zt.js} +1 -1
- package/{browser/esm/lgPHHQHWLWGNnYGO.mjs → cdn/assets/C4XCAo0TpxslRVJ5.js} +1 -1
- package/cdn/assets/C8tUn6sYjNisxPK4.js +46 -0
- package/{browser/esm/B2niIQY0fIjYfoM9.mjs → cdn/assets/C9IxpFcjTqaCRk2N.js} +1 -1
- package/{browser/esm/CyAL0Nk6PrxryVRw.mjs → cdn/assets/CBzKugXFy2maB9T2.js} +1 -1
- package/cdn/assets/{Dih1QKQhKyzIsly7.js → CE7fjscGl466fl91.js} +2 -2
- package/cdn/assets/{D9mNgZwIB18h1gd3.js → CO-25pcw5LMrahel.js} +1 -1
- package/{browser/esm/CKPAoMVPiyx_7ozH.mjs → cdn/assets/COD8frfCMwYHZn2a.js} +1 -1
- package/cdn/assets/{vrPREn1FiY2DXcCj.js → CbotKmuc-u3i6l2r.js} +1 -1
- package/cdn/assets/Cbrcyb3H3PezHtVF.js +41 -0
- package/{browser/esm/JjYKx_AWKoQp1iP5.mjs → cdn/assets/CdHALOHfiCjQPb6m.js} +1 -1
- package/cdn/assets/{CTls6jXHDizCTQqa.js → CfnDaW3FdBoQdTqQ.js} +1 -1
- package/{browser/esm/BitbWBCvLcgf5_k8.mjs → cdn/assets/Ch9HnAWCAsXaP3LD.js} +1 -1
- package/cdn/assets/{D5cBSeQ7k8GlZgsV.js → CmRz3KIo8G3LOw9G.js} +4 -4
- package/cdn/assets/{B1eWg6aDktGH7WwS.js → Cn1auE03N9wLXfjt.js} +4 -4
- package/{browser/esm/BOTc2W6k6GWqCVcp.mjs → cdn/assets/Cu60N7T14PGlI74M.js} +1 -1
- package/cdn/assets/{DCGMWZ69nZwmiyhn.js → CuKWS6_Je8iloPLI.js} +1 -1
- package/cdn/assets/{Bd8Yvpc8OayD21zg.js → Cvdg3u2WzV4R8Z8w.js} +1 -1
- package/cdn/assets/{CfnYVg2Fcignoanv.js → CwVNl2iequRw_jgb.js} +1 -1
- package/cdn/assets/{B-fEw_RqtU2JwlFR.js → Cz4z8vfL-Faa_U_Z.js} +2 -2
- package/cdn/assets/{CzlrfkoZCsC-jd7h.js → D6PR-KOMtKuKwViW.js} +12759 -12709
- package/cdn/assets/{DNnTxeTzLFooA_UL.js → D9188qd49uC6RCBX.js} +2 -2
- package/cdn/assets/{CnWk1uC-0lCbD-Xj.js → D9GwwaruuneTLALL.js} +4 -4
- package/cdn/assets/{UdKHykZGCh2M-vBY.js → D9XR5CEdI7H3Fqqw.js} +6 -6
- package/{browser/esm/DB6k1pDUo7QnUyag.mjs → cdn/assets/DEgxjiNnO2CGe0Mg.js} +1 -1
- package/cdn/assets/{D6w3q0288dODJlma.js → DGYEafEa6_TZj551.js} +3 -3
- package/cdn/assets/{Nrog426oRA7TG4QM.js → DOkzFxGiB06blrS9.js} +299 -295
- package/{browser/esm/CTnPqIJ_buVJyq7v.mjs → cdn/assets/DUlZT2QnfU4sQVQt.js} +1 -1
- package/cdn/assets/{BbFJbFt12fFxLxgW.js → DiClzo3XuRzjd65q.js} +1 -1
- package/{browser/esm/CjNqjvPAYIJ1Txzc.mjs → cdn/assets/DinosjN3TV2mmmEf.js} +1 -1
- package/cdn/assets/{C5vXwUdGo1QPuz37.js → DlXpFGquI4mSMGm1.js} +2 -2
- package/{browser/esm/CoZ8jQyUjenp9yNL.mjs → cdn/assets/DtqMH6GVpBAzJIaG.js} +2 -2
- package/cdn/assets/{dLGHt7fYI2QA8zVZ.js → DygZx1ZfiNYakAxe.js} +1 -1
- package/cdn/assets/{BlAVbL9PoGGN-eLF.js → HG75sA6aXdbc62Ko.js} +535 -530
- package/cdn/assets/{CRpTXJTj6-teqdEk.js → RLa3ezMcHnNW3QIP.js} +5 -5
- package/{browser/esm/CO0-isMoTEJCBD3A.mjs → cdn/assets/SsRUVWcrhua0o1Dm.js} +1 -1
- package/cdn/assets/{BRQ5s5G8SIeFcq2K.js → WzG__NqEXcEJGXF9.js} +1 -1
- package/cdn/assets/{DT2Nk1w2teUvSMOy.js → YMtZzDjMWgR3_4eN.js} +1 -1
- package/cdn/assets/{DNpMIeruLey0l4fR.js → ZA-dboXEhQS2FBOt.js} +2 -2
- package/cdn/assets/{CyiZ9q3nsOxuzkPs.js → mRBUVHHKueJc-e6f.js} +1 -1
- package/{browser/esm/PhwSfaFQy7vsmHQH.mjs → cdn/assets/ou3Du5ZoOZAZnu26.js} +1 -1
- package/cdn/assets/{BxXfkgY3YQZkihsr.js → oyGe2Lwd4q3JlxxI.js} +42 -42
- package/{browser/esm/C_XaNFGBTyUBeyCT.mjs → cdn/assets/zfgtBucZchI4hg1A.js} +1 -1
- package/cdn/index.js +2 -2
- package/cdn/loader.js +1 -1
- package/package.json +3 -3
- package/browser/cjs/B17LiG4dyBmP6TrN.cjs +0 -32
- package/browser/cjs/BuXXymW3NvKvPMkQ.cjs +0 -6
- package/browser/cjs/Codn0RTBGbMdTfjS.cjs +0 -11
- package/browser/cjs/DMkg41_NWFmCCTPS.cjs +0 -6
- package/browser/cjs/GPgjyt_HTe2fOhPL.cjs +0 -327
- package/browser/esm/B1o6XtsajKzSB_Ee.mjs +0 -11
- package/browser/esm/w4952094eLDa6Dfm.mjs +0 -48
- package/cdn/assets/BlASKis61iVryoIm.js +0 -41
- package/cdn/assets/DU715r3dWSIxWSHJ.js +0 -12
- package/cdn/assets/DyGoZdjTBNNXu9LZ.js +0 -46
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { r as
|
|
1
|
+
import { r as w, a as Kt, b as qt, c as Xt, j as L, s as ht, e as Yt, f as X, h as Jt, m as Zt, k as Qt, l as eo, T as ft, t as to, B as ae, n as oo, o as ce, I as no, p as ro, q as pt, v as de, F as io, C as lo, w as so, g as gt, x as me, J as ao, z as co, V as N, L as U, y as uo } from "./dyaQatTfQy8_i9f1.mjs";
|
|
2
2
|
/**
|
|
3
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.
|
|
3
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.11
|
|
4
4
|
*
|
|
5
5
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
6
6
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
7
7
|
*/
|
|
8
|
-
const ho =
|
|
8
|
+
const ho = w.createContext(), fo = w.createContext();
|
|
9
9
|
function po(o) {
|
|
10
|
-
return
|
|
10
|
+
return qt("MuiTableCell", o);
|
|
11
11
|
}
|
|
12
|
-
const go =
|
|
12
|
+
const go = Kt("MuiTableCell", ["root", "head", "body", "footer", "sizeSmall", "sizeMedium", "paddingCheckbox", "paddingNone", "alignLeft", "alignCenter", "alignRight", "alignJustify", "stickyHeader"]), mo = ht("td", { name: "MuiTableCell", slot: "Root", overridesResolver: (o, e) => {
|
|
13
13
|
const { ownerState: t } = o;
|
|
14
14
|
return [e.root, e[t.variant], e[`size${X(t.size)}`], t.padding !== "normal" && e[`padding${X(t.padding)}`], t.align !== "inherit" && e[`align${X(t.align)}`], t.stickyHeader && e.stickyHeader];
|
|
15
|
-
} })(
|
|
16
|
-
${o.palette.mode === "light" ? o.lighten(o.alpha(o.palette.divider, 1), 0.88) : o.darken(o.alpha(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", [`&.${go.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 } }] }))), Me =
|
|
17
|
-
const t =
|
|
15
|
+
} })(Zt(({ theme: o }) => ({ ...o.typography.body2, display: "table-cell", verticalAlign: "inherit", borderBottom: o.vars ? `1px solid ${o.vars.palette.TableCell.border}` : `1px solid
|
|
16
|
+
${o.palette.mode === "light" ? o.lighten(o.alpha(o.palette.divider, 1), 0.88) : o.darken(o.alpha(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", [`&.${go.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 } }] }))), Me = w.forwardRef(function(o, e) {
|
|
17
|
+
const t = Xt({ props: o, name: "MuiTableCell" }), { align: n = "inherit", className: r, component: i, padding: l, scope: a, size: s, sortDirection: c, variant: d, ...h } = t, f = w.useContext(ho), u = w.useContext(fo), v = u && u.variant === "head";
|
|
18
18
|
let g;
|
|
19
|
-
g = i || (
|
|
20
|
-
let
|
|
21
|
-
g === "td" ?
|
|
22
|
-
const S = d || u && u.variant, y = { ...t, align: n, component: g, padding: l || (f && f.padding ? f.padding : "normal"), size: s || (f && f.size ? f.size : "medium"), sortDirection: c, stickyHeader: S === "head" && f && f.stickyHeader, variant: S },
|
|
19
|
+
g = i || (v ? "th" : "td");
|
|
20
|
+
let _ = a;
|
|
21
|
+
g === "td" ? _ = void 0 : !_ && v && (_ = "col");
|
|
22
|
+
const S = d || u && u.variant, y = { ...t, align: n, component: g, padding: l || (f && f.padding ? f.padding : "normal"), size: s || (f && f.size ? f.size : "medium"), sortDirection: c, stickyHeader: S === "head" && f && f.stickyHeader, variant: S }, m = ((x) => {
|
|
23
23
|
const { classes: R, variant: b, align: z, padding: T, size: O, stickyHeader: k } = x, P = { root: ["root", b, k && "stickyHeader", z !== "inherit" && `align${X(z)}`, T !== "normal" && `padding${X(T)}`, `size${X(O)}`] };
|
|
24
|
-
return
|
|
24
|
+
return Jt(P, po, R);
|
|
25
25
|
})(y);
|
|
26
|
-
let
|
|
27
|
-
return c && (
|
|
26
|
+
let C = null;
|
|
27
|
+
return c && (C = c === "asc" ? "ascending" : "descending"), L.jsx(mo, { as: g, ref: e, className: Yt(m.root, r), "aria-sort": C, scope: _, ownerState: y, ...h });
|
|
28
28
|
});
|
|
29
29
|
function G(o, e) {
|
|
30
30
|
if (!(o instanceof e)) throw new TypeError("Cannot call a class as a function");
|
|
@@ -36,7 +36,7 @@ function Y(o) {
|
|
|
36
36
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
37
37
|
})(o);
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function mt(o) {
|
|
40
40
|
var e = (function(t) {
|
|
41
41
|
if (Y(t) != "object" || !t) return t;
|
|
42
42
|
var n = t[Symbol.toPrimitive];
|
|
@@ -52,7 +52,7 @@ function gt(o) {
|
|
|
52
52
|
function Le(o, e) {
|
|
53
53
|
for (var t = 0; t < e.length; t++) {
|
|
54
54
|
var n = e[t];
|
|
55
|
-
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(o,
|
|
55
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(o, mt(n.key), n);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
function A(o, e, t) {
|
|
@@ -76,18 +76,18 @@ function W(o, e) {
|
|
|
76
76
|
o.prototype = Object.create(e && e.prototype, { constructor: { value: o, writable: !0, configurable: !0 } }), Object.defineProperty(o, "prototype", { writable: !1 }), e && co(o, e);
|
|
77
77
|
}
|
|
78
78
|
function p(o, e, t) {
|
|
79
|
-
return (e =
|
|
79
|
+
return (e = mt(e)) in o ? Object.defineProperty(o, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : o[e] = t, o;
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function vt() {
|
|
82
82
|
var o = this.constructor.getDerivedStateFromProps(this.props, this.state);
|
|
83
83
|
o != null && this.setState(o);
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function _t(o) {
|
|
86
86
|
this.setState(function(e) {
|
|
87
87
|
return this.constructor.getDerivedStateFromProps(o, e) ?? null;
|
|
88
88
|
}.bind(this));
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function St(o, e) {
|
|
91
91
|
try {
|
|
92
92
|
var t = this.props, n = this.state;
|
|
93
93
|
this.props = o, this.state = e, this.__reactInternalSnapshotFlag = !0, this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(t, n);
|
|
@@ -112,9 +112,9 @@ function se(o) {
|
|
|
112
112
|
The above lifecycles should be removed. Learn more about this warning here:
|
|
113
113
|
https://fb.me/react-async-component-lifecycle-hooks`);
|
|
114
114
|
}
|
|
115
|
-
if (typeof o.getDerivedStateFromProps == "function" && (e.componentWillMount =
|
|
115
|
+
if (typeof o.getDerivedStateFromProps == "function" && (e.componentWillMount = vt, e.componentWillReceiveProps = _t), typeof e.getSnapshotBeforeUpdate == "function") {
|
|
116
116
|
if (typeof e.componentDidUpdate != "function") throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");
|
|
117
|
-
e.componentWillUpdate =
|
|
117
|
+
e.componentWillUpdate = St;
|
|
118
118
|
var a = e.componentDidUpdate;
|
|
119
119
|
e.componentDidUpdate = function(s, c, d) {
|
|
120
120
|
var h = this.__reactInternalSnapshotFlag ? this.__reactInternalSnapshot : d;
|
|
@@ -144,29 +144,29 @@ function Ae(o) {
|
|
|
144
144
|
}
|
|
145
145
|
return o;
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function yt() {
|
|
148
148
|
try {
|
|
149
149
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
150
150
|
}));
|
|
151
151
|
} catch {
|
|
152
152
|
}
|
|
153
|
-
return (
|
|
153
|
+
return (yt = function() {
|
|
154
154
|
return !!o;
|
|
155
155
|
})();
|
|
156
156
|
}
|
|
157
|
-
|
|
157
|
+
vt.__suppressDeprecationWarning = !0, _t.__suppressDeprecationWarning = !0, St.__suppressDeprecationWarning = !0;
|
|
158
158
|
var Ee = (function() {
|
|
159
159
|
function o() {
|
|
160
160
|
var e, t, n, r;
|
|
161
161
|
G(this, o);
|
|
162
162
|
for (var i = arguments.length, l = new Array(i), a = 0; a < i; a++) l[a] = arguments[a];
|
|
163
|
-
return t = this, n = o, r = [].concat(l), n = I(n), p(e = H(t,
|
|
163
|
+
return t = this, n = o, r = [].concat(l), n = I(n), p(e = H(t, yt() ? Reflect.construct(n, r || [], I(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) {
|
|
164
164
|
var c = e.props, d = c.columnCount, h = c.disabled, f = c.mode, u = c.rowCount;
|
|
165
165
|
if (!h) {
|
|
166
|
-
var
|
|
166
|
+
var v = e._getScrollState(), g = v.scrollToColumn, _ = v.scrollToRow, S = e._getScrollState(), y = S.scrollToColumn, m = S.scrollToRow;
|
|
167
167
|
switch (s.key) {
|
|
168
168
|
case "ArrowDown":
|
|
169
|
-
|
|
169
|
+
m = Math.min(f === "cells" ? m + 1 : e._rowStopIndex + 1, u - 1);
|
|
170
170
|
break;
|
|
171
171
|
case "ArrowLeft":
|
|
172
172
|
y = Math.max(f === "cells" ? y - 1 : e._columnStartIndex - 1, 0);
|
|
@@ -175,21 +175,21 @@ var Ee = (function() {
|
|
|
175
175
|
y = Math.min(f === "cells" ? y + 1 : e._columnStopIndex + 1, d - 1);
|
|
176
176
|
break;
|
|
177
177
|
case "ArrowUp":
|
|
178
|
-
|
|
178
|
+
m = Math.max(f === "cells" ? m - 1 : e._rowStartIndex - 1, 0);
|
|
179
179
|
}
|
|
180
|
-
y === g &&
|
|
180
|
+
y === g && m === _ || (s.preventDefault(), e._updateScrollState({ scrollToColumn: y, scrollToRow: m }));
|
|
181
181
|
}
|
|
182
182
|
}), p(e, "_onSectionRendered", function(s) {
|
|
183
183
|
var c = s.columnStartIndex, d = s.columnStopIndex, h = s.rowStartIndex, f = s.rowStopIndex;
|
|
184
184
|
e._columnStartIndex = c, e._columnStopIndex = d, e._rowStartIndex = h, e._rowStopIndex = f;
|
|
185
185
|
}), e;
|
|
186
186
|
}
|
|
187
|
-
return W(o,
|
|
187
|
+
return W(o, w.PureComponent), A(o, [{ key: "setScrollIndexes", value: function(e) {
|
|
188
188
|
var t = e.scrollToColumn, n = e.scrollToRow;
|
|
189
189
|
this.setState({ scrollToRow: n, scrollToColumn: t });
|
|
190
190
|
} }, { key: "render", value: function() {
|
|
191
191
|
var e = this.props, t = e.className, n = e.children, r = this._getScrollState(), i = r.scrollToColumn, l = r.scrollToRow;
|
|
192
|
-
return
|
|
192
|
+
return w.createElement("div", { className: t, onKeyDown: this._onKeyDown }, n({ onSectionRendered: this._onSectionRendered, scrollToColumn: i, scrollToRow: l }));
|
|
193
193
|
} }, { key: "_getScrollState", value: function() {
|
|
194
194
|
return this.props.isControlled ? this.props : this.state;
|
|
195
195
|
} }, { key: "_updateScrollState", value: function(e) {
|
|
@@ -199,66 +199,66 @@ var Ee = (function() {
|
|
|
199
199
|
return e.isControlled ? {} : e.scrollToColumn !== t.instanceProps.prevScrollToColumn || e.scrollToRow !== t.instanceProps.prevScrollToRow ? Ae(Ae({}, t), {}, { scrollToColumn: e.scrollToColumn, scrollToRow: e.scrollToRow, instanceProps: { prevScrollToColumn: e.scrollToColumn, prevScrollToRow: e.scrollToRow } }) : {};
|
|
200
200
|
} }]);
|
|
201
201
|
})();
|
|
202
|
-
function
|
|
202
|
+
function wt(o, e) {
|
|
203
203
|
var t, n, r = (t = e !== void 0 ? e : typeof window < "u" ? window : typeof self < "u" ? self : global).document !== void 0 && t.document.attachEvent;
|
|
204
204
|
if (!r) {
|
|
205
|
-
var i = (n = t.requestAnimationFrame || t.mozRequestAnimationFrame || t.webkitRequestAnimationFrame || function(
|
|
206
|
-
return t.setTimeout(
|
|
207
|
-
}, function(
|
|
208
|
-
return n(
|
|
205
|
+
var i = (n = t.requestAnimationFrame || t.mozRequestAnimationFrame || t.webkitRequestAnimationFrame || function(m) {
|
|
206
|
+
return t.setTimeout(m, 20);
|
|
207
|
+
}, function(m) {
|
|
208
|
+
return n(m);
|
|
209
209
|
}), l = (function() {
|
|
210
|
-
var
|
|
211
|
-
return function(
|
|
212
|
-
return
|
|
210
|
+
var m = t.cancelAnimationFrame || t.mozCancelAnimationFrame || t.webkitCancelAnimationFrame || t.clearTimeout;
|
|
211
|
+
return function(C) {
|
|
212
|
+
return m(C);
|
|
213
213
|
};
|
|
214
|
-
})(), a = function(
|
|
215
|
-
var
|
|
214
|
+
})(), a = function(m) {
|
|
215
|
+
var C = m.__resizeTriggers__, x = C.firstElementChild, R = C.lastElementChild, b = x.firstElementChild;
|
|
216
216
|
R.scrollLeft = R.scrollWidth, R.scrollTop = R.scrollHeight, b.style.width = x.offsetWidth + 1 + "px", b.style.height = x.offsetHeight + 1 + "px", x.scrollLeft = x.scrollWidth, x.scrollTop = x.scrollHeight;
|
|
217
|
-
}, s = function(
|
|
218
|
-
if (!(
|
|
219
|
-
var
|
|
217
|
+
}, s = function(m) {
|
|
218
|
+
if (!(m.target.className && typeof m.target.className.indexOf == "function" && m.target.className.indexOf("contract-trigger") < 0 && m.target.className.indexOf("expand-trigger") < 0)) {
|
|
219
|
+
var C = this;
|
|
220
220
|
a(this), this.__resizeRAF__ && l(this.__resizeRAF__), this.__resizeRAF__ = i(function() {
|
|
221
221
|
var x;
|
|
222
|
-
((x =
|
|
223
|
-
R.call(
|
|
222
|
+
((x = C).offsetWidth != x.__resizeLast__.width || x.offsetHeight != x.__resizeLast__.height) && (C.__resizeLast__.width = C.offsetWidth, C.__resizeLast__.height = C.offsetHeight, C.__resizeListeners__.forEach(function(R) {
|
|
223
|
+
R.call(C, m);
|
|
224
224
|
}));
|
|
225
225
|
});
|
|
226
226
|
}
|
|
227
|
-
}, c = !1, d = "", h = "animationstart", f = "Webkit Moz O ms".split(" "), u = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),
|
|
228
|
-
if (
|
|
229
|
-
for (var g = 0; g < f.length; g++) if (
|
|
227
|
+
}, c = !1, d = "", h = "animationstart", f = "Webkit Moz O ms".split(" "), u = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "), v = t.document.createElement("fakeelement");
|
|
228
|
+
if (v.style.animationName !== void 0 && (c = !0), c === !1) {
|
|
229
|
+
for (var g = 0; g < f.length; g++) if (v.style[f[g] + "AnimationName"] !== void 0) {
|
|
230
230
|
d = "-" + f[g].toLowerCase() + "-", h = u[g], c = !0;
|
|
231
231
|
break;
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
|
-
var
|
|
234
|
+
var _ = "resizeanim", S = "@" + d + "keyframes " + _ + " { from { opacity: 0; } to { opacity: 0; } } ", y = d + "animation: 1ms " + _ + "; ";
|
|
235
235
|
}
|
|
236
|
-
return { addResizeListener: function(
|
|
237
|
-
if (r)
|
|
236
|
+
return { addResizeListener: function(m, C) {
|
|
237
|
+
if (r) m.attachEvent("onresize", C);
|
|
238
238
|
else {
|
|
239
|
-
if (!
|
|
240
|
-
var x =
|
|
241
|
-
R && R.position == "static" && (
|
|
239
|
+
if (!m.__resizeTriggers__) {
|
|
240
|
+
var x = m.ownerDocument, R = t.getComputedStyle(m);
|
|
241
|
+
R && R.position == "static" && (m.style.position = "relative"), (function(T) {
|
|
242
242
|
if (!T.getElementById("detectElementResize")) {
|
|
243
243
|
var O = (S || "") + ".resize-triggers { " + (y || "") + 'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }', k = T.head || T.getElementsByTagName("head")[0], P = T.createElement("style");
|
|
244
244
|
P.id = "detectElementResize", P.type = "text/css", o != null && P.setAttribute("nonce", o), P.styleSheet ? P.styleSheet.cssText = O : P.appendChild(T.createTextNode(O)), k.appendChild(P);
|
|
245
245
|
}
|
|
246
|
-
})(x),
|
|
246
|
+
})(x), m.__resizeLast__ = {}, m.__resizeListeners__ = [], (m.__resizeTriggers__ = x.createElement("div")).className = "resize-triggers";
|
|
247
247
|
var b = x.createElement("div");
|
|
248
248
|
b.className = "expand-trigger", b.appendChild(x.createElement("div"));
|
|
249
249
|
var z = x.createElement("div");
|
|
250
|
-
z.className = "contract-trigger",
|
|
251
|
-
T.animationName ==
|
|
252
|
-
},
|
|
250
|
+
z.className = "contract-trigger", m.__resizeTriggers__.appendChild(b), m.__resizeTriggers__.appendChild(z), m.appendChild(m.__resizeTriggers__), a(m), m.addEventListener("scroll", s, !0), h && (m.__resizeTriggers__.__animationListener__ = function(T) {
|
|
251
|
+
T.animationName == _ && a(m);
|
|
252
|
+
}, m.__resizeTriggers__.addEventListener(h, m.__resizeTriggers__.__animationListener__));
|
|
253
253
|
}
|
|
254
|
-
|
|
254
|
+
m.__resizeListeners__.push(C);
|
|
255
255
|
}
|
|
256
|
-
}, removeResizeListener: function(
|
|
257
|
-
if (r)
|
|
258
|
-
else if (
|
|
259
|
-
|
|
256
|
+
}, removeResizeListener: function(m, C) {
|
|
257
|
+
if (r) m.detachEvent("onresize", C);
|
|
258
|
+
else if (m.__resizeListeners__.splice(m.__resizeListeners__.indexOf(C), 1), !m.__resizeListeners__.length) {
|
|
259
|
+
m.removeEventListener("scroll", s, !0), m.__resizeTriggers__.__animationListener__ && (m.__resizeTriggers__.removeEventListener(h, m.__resizeTriggers__.__animationListener__), m.__resizeTriggers__.__animationListener__ = null);
|
|
260
260
|
try {
|
|
261
|
-
|
|
261
|
+
m.__resizeTriggers__ = !m.removeChild(m.__resizeTriggers__);
|
|
262
262
|
} catch {
|
|
263
263
|
}
|
|
264
264
|
}
|
|
@@ -285,73 +285,73 @@ function We(o) {
|
|
|
285
285
|
}
|
|
286
286
|
return o;
|
|
287
287
|
}
|
|
288
|
-
function
|
|
288
|
+
function Ct() {
|
|
289
289
|
try {
|
|
290
290
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
291
291
|
}));
|
|
292
292
|
} catch {
|
|
293
293
|
}
|
|
294
|
-
return (
|
|
294
|
+
return (Ct = function() {
|
|
295
295
|
return !!o;
|
|
296
296
|
})();
|
|
297
297
|
}
|
|
298
298
|
p(Ee, "defaultProps", { disabled: !1, isControlled: !1, mode: "edges", scrollToColumn: 0, scrollToRow: 0 }), se(Ee);
|
|
299
|
-
var
|
|
299
|
+
var xt = (function() {
|
|
300
300
|
function o() {
|
|
301
301
|
var e, t, n, r;
|
|
302
302
|
G(this, o);
|
|
303
303
|
for (var i = arguments.length, l = new Array(i), a = 0; a < i; a++) l[a] = arguments[a];
|
|
304
|
-
return t = this, n = o, r = [].concat(l), n = I(n), p(e = H(t,
|
|
304
|
+
return t = this, n = o, r = [].concat(l), n = I(n), p(e = H(t, Ct() ? Reflect.construct(n, r || [], I(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() {
|
|
305
305
|
var s = e.props, c = s.disableHeight, d = s.disableWidth, h = s.onResize;
|
|
306
306
|
if (e._parentNode) {
|
|
307
|
-
var f = e._parentNode.offsetHeight || 0, u = e._parentNode.offsetWidth || 0,
|
|
308
|
-
(!c && e.state.height !==
|
|
307
|
+
var f = e._parentNode.offsetHeight || 0, u = e._parentNode.offsetWidth || 0, v = (e._window || window).getComputedStyle(e._parentNode) || {}, g = parseInt(v.paddingLeft, 10) || 0, _ = parseInt(v.paddingRight, 10) || 0, S = parseInt(v.paddingTop, 10) || 0, y = parseInt(v.paddingBottom, 10) || 0, m = f - S - y, C = u - g - _;
|
|
308
|
+
(!c && e.state.height !== m || !d && e.state.width !== C) && (e.setState({ height: f - S - y, width: u - g - _ }), h({ height: f, width: u }));
|
|
309
309
|
}
|
|
310
310
|
}), p(e, "_setRef", function(s) {
|
|
311
311
|
e._autoSizer = s;
|
|
312
312
|
}), e;
|
|
313
313
|
}
|
|
314
|
-
return W(o,
|
|
314
|
+
return W(o, w.Component), A(o, [{ key: "componentDidMount", value: function() {
|
|
315
315
|
var e = this.props.nonce;
|
|
316
|
-
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 =
|
|
316
|
+
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 = wt(e, this._window), this._detectElementResize.addResizeListener(this._parentNode, this._onResize), this._onResize());
|
|
317
317
|
} }, { key: "componentWillUnmount", value: function() {
|
|
318
318
|
this._detectElementResize && this._parentNode && this._detectElementResize.removeResizeListener(this._parentNode, this._onResize);
|
|
319
319
|
} }, { key: "render", value: function() {
|
|
320
320
|
var e = this.props, t = e.children, n = e.className, r = e.disableHeight, i = e.disableWidth, l = e.style, a = this.state, s = a.height, c = a.width, d = { overflow: "visible" }, h = {};
|
|
321
|
-
return r || (d.height = 0, h.height = s), i || (d.width = 0, h.width = c),
|
|
321
|
+
return r || (d.height = 0, h.height = s), i || (d.width = 0, h.width = c), w.createElement("div", { className: n, ref: this._setRef, style: We(We({}, d), l) }, t(h));
|
|
322
322
|
} }]);
|
|
323
323
|
})();
|
|
324
|
-
function
|
|
324
|
+
function Rt() {
|
|
325
325
|
try {
|
|
326
326
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
327
327
|
}));
|
|
328
328
|
} catch {
|
|
329
329
|
}
|
|
330
|
-
return (
|
|
330
|
+
return (Rt = function() {
|
|
331
331
|
return !!o;
|
|
332
332
|
})();
|
|
333
333
|
}
|
|
334
|
-
p(
|
|
334
|
+
p(xt, "defaultProps", { onResize: function() {
|
|
335
335
|
}, disableHeight: !1, disableWidth: !1, style: {} });
|
|
336
336
|
var vo = (function() {
|
|
337
337
|
function o() {
|
|
338
338
|
var e, t, n, r;
|
|
339
339
|
G(this, o);
|
|
340
340
|
for (var i = arguments.length, l = new Array(i), a = 0; a < i; a++) l[a] = arguments[a];
|
|
341
|
-
return t = this, n = o, r = [].concat(l), n = I(n), p(e = H(t,
|
|
342
|
-
var s = e.props, c = s.cache, d = s.columnIndex, h = d === void 0 ? 0 : d, f = s.parent, u = s.rowIndex,
|
|
343
|
-
|
|
341
|
+
return t = this, n = o, r = [].concat(l), n = I(n), p(e = H(t, Rt() ? Reflect.construct(n, r || [], I(t).constructor) : n.apply(t, r)), "_child", w.createRef()), p(e, "_measure", function() {
|
|
342
|
+
var s = e.props, c = s.cache, d = s.columnIndex, h = d === void 0 ? 0 : d, f = s.parent, u = s.rowIndex, v = u === void 0 ? e.props.index || 0 : u, g = e._getCellMeasurements(), _ = g.height, S = g.width;
|
|
343
|
+
_ === 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 }));
|
|
344
344
|
}), p(e, "_registerChild", function(s) {
|
|
345
345
|
!s || s instanceof Element || console.warn("CellMeasurer registerChild expects to be passed Element or null"), e._child.current = s, s && e._maybeMeasureCell();
|
|
346
346
|
}), e;
|
|
347
347
|
}
|
|
348
|
-
return W(o,
|
|
348
|
+
return W(o, w.PureComponent), A(o, [{ key: "componentDidMount", value: function() {
|
|
349
349
|
this._maybeMeasureCell();
|
|
350
350
|
} }, { key: "componentDidUpdate", value: function() {
|
|
351
351
|
this._maybeMeasureCell();
|
|
352
352
|
} }, { key: "render", value: function() {
|
|
353
353
|
var e = this, t = this.props.children, n = typeof t == "function" ? t({ measure: this._measure, registerChild: this._registerChild }) : t;
|
|
354
|
-
return n === null ? n :
|
|
354
|
+
return n === null ? n : w.cloneElement(n, { ref: function(r) {
|
|
355
355
|
typeof n.ref == "function" ? n.ref(r) : n.ref && (n.ref.current = r), e._child.current = r;
|
|
356
356
|
} });
|
|
357
357
|
} }, { key: "_getCellMeasurements", value: function() {
|
|
@@ -415,13 +415,13 @@ function je(o) {
|
|
|
415
415
|
}
|
|
416
416
|
return o;
|
|
417
417
|
}
|
|
418
|
-
function
|
|
418
|
+
function bt() {
|
|
419
419
|
try {
|
|
420
420
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
421
421
|
}));
|
|
422
422
|
} catch {
|
|
423
423
|
}
|
|
424
|
-
return (
|
|
424
|
+
return (bt = function() {
|
|
425
425
|
return !!o;
|
|
426
426
|
})();
|
|
427
427
|
}
|
|
@@ -430,30 +430,30 @@ var Q = "requested", fe = (function() {
|
|
|
430
430
|
var e, t, n, r;
|
|
431
431
|
G(this, o);
|
|
432
432
|
for (var i = arguments.length, l = new Array(i), a = 0; a < i; a++) l[a] = arguments[a];
|
|
433
|
-
return t = this, n = o, r = [].concat(l), n = I(n), p(e = H(t,
|
|
433
|
+
return t = this, n = o, r = [].concat(l), n = I(n), p(e = H(t, bt() ? Reflect.construct(n, r || [], I(t).constructor) : n.apply(t, r)), "state", { isScrolling: !1, scrollLeft: 0, scrollTop: 0 }), p(e, "_calculateSizeAndPositionDataOnNextUpdate", !1), p(e, "_onSectionRenderedMemoizer", J()), p(e, "_onScrollMemoizer", J(!1)), p(e, "_invokeOnSectionRenderedHelper", function() {
|
|
434
434
|
var s = e.props, c = s.cellLayoutManager, d = s.onSectionRendered;
|
|
435
435
|
e._onSectionRenderedMemoizer({ callback: d, indices: { indices: c.getLastRenderedIndices() } });
|
|
436
436
|
}), p(e, "_setScrollingContainerRef", function(s) {
|
|
437
437
|
e._scrollingContainer = s;
|
|
438
438
|
}), p(e, "_updateScrollPositionForScrollToCell", function() {
|
|
439
|
-
var s = e.props, c = s.cellLayoutManager, d = s.height, h = s.scrollToAlignment, f = s.scrollToCell, u = s.width,
|
|
439
|
+
var s = e.props, c = s.cellLayoutManager, d = s.height, h = s.scrollToAlignment, f = s.scrollToCell, u = s.width, v = e.state, g = v.scrollLeft, _ = v.scrollTop;
|
|
440
440
|
if (f >= 0) {
|
|
441
|
-
var S = c.getScrollPositionForCell({ align: h, cellIndex: f, height: d, scrollLeft: g, scrollTop:
|
|
442
|
-
S.scrollLeft === g && S.scrollTop ===
|
|
441
|
+
var S = c.getScrollPositionForCell({ align: h, cellIndex: f, height: d, scrollLeft: g, scrollTop: _, width: u });
|
|
442
|
+
S.scrollLeft === g && S.scrollTop === _ || e._setScrollPosition(S);
|
|
443
443
|
}
|
|
444
444
|
}), p(e, "_onScroll", function(s) {
|
|
445
445
|
if (s.target === e._scrollingContainer) {
|
|
446
446
|
e._enablePointerEventsAfterDelay();
|
|
447
|
-
var c = e.props, d = c.cellLayoutManager, h = c.height, f = c.isScrollingChange, u = c.width,
|
|
448
|
-
if (e.state.scrollLeft !== y || e.state.scrollTop !==
|
|
449
|
-
var
|
|
450
|
-
e.state.isScrolling || f(!0), e.setState({ isScrolling: !0, scrollLeft: y, scrollPositionChangeReason:
|
|
447
|
+
var c = e.props, d = c.cellLayoutManager, h = c.height, f = c.isScrollingChange, u = c.width, v = e._scrollbarSize, g = d.getTotalSize(), _ = g.height, S = g.width, y = Math.max(0, Math.min(S - u + v, s.target.scrollLeft)), m = Math.max(0, Math.min(_ - h + v, s.target.scrollTop));
|
|
448
|
+
if (e.state.scrollLeft !== y || e.state.scrollTop !== m) {
|
|
449
|
+
var C = s.cancelable ? "observed" : Q;
|
|
450
|
+
e.state.isScrolling || f(!0), e.setState({ isScrolling: !0, scrollLeft: y, scrollPositionChangeReason: C, scrollTop: m });
|
|
451
451
|
}
|
|
452
|
-
e._invokeOnScrollMemoizer({ scrollLeft: y, scrollTop:
|
|
452
|
+
e._invokeOnScrollMemoizer({ scrollLeft: y, scrollTop: m, totalWidth: S, totalHeight: _ });
|
|
453
453
|
}
|
|
454
454
|
}), e._scrollbarSize = we(), e._scrollbarSize === void 0 ? (e._scrollbarSizeMeasured = !1, e._scrollbarSize = 0) : e._scrollbarSizeMeasured = !0, e;
|
|
455
455
|
}
|
|
456
|
-
return W(o,
|
|
456
|
+
return W(o, w.PureComponent), A(o, [{ key: "recomputeCellSizesAndPositions", value: function() {
|
|
457
457
|
this._calculateSizeAndPositionDataOnNextUpdate = !0, this.forceUpdate();
|
|
458
458
|
} }, { key: "componentDidMount", value: function() {
|
|
459
459
|
var e = this.props, t = e.cellLayoutManager, n = e.scrollLeft, r = e.scrollToCell, i = e.scrollTop;
|
|
@@ -466,10 +466,10 @@ var Q = "requested", fe = (function() {
|
|
|
466
466
|
} }, { key: "componentWillUnmount", value: function() {
|
|
467
467
|
this._disablePointerEventsTimeoutId && clearTimeout(this._disablePointerEventsTimeoutId);
|
|
468
468
|
} }, { key: "render", value: function() {
|
|
469
|
-
var e = this.props, t = e.autoHeight, n = e.cellCount, r = e.cellLayoutManager, i = e.className, l = e.height, a = e.horizontalOverscanSize, s = e.id, c = e.noContentRenderer, d = e.style, h = e.verticalOverscanSize, f = e.width, u = this.state,
|
|
469
|
+
var e = this.props, t = e.autoHeight, n = e.cellCount, r = e.cellLayoutManager, i = e.className, l = e.height, a = e.horizontalOverscanSize, s = e.id, c = e.noContentRenderer, d = e.style, h = e.verticalOverscanSize, f = e.width, u = this.state, v = u.isScrolling, g = u.scrollLeft, _ = u.scrollTop;
|
|
470
470
|
(this._lastRenderedCellCount !== n || this._lastRenderedCellLayoutManager !== r || this._calculateSizeAndPositionDataOnNextUpdate) && (this._lastRenderedCellCount = n, this._lastRenderedCellLayoutManager = r, this._calculateSizeAndPositionDataOnNextUpdate = !1, r.calculateSizeAndPositionData());
|
|
471
|
-
var S = r.getTotalSize(), y = S.height,
|
|
472
|
-
return T.overflowX =
|
|
471
|
+
var S = r.getTotalSize(), y = S.height, m = S.width, C = Math.max(0, g - a), x = Math.max(0, _ - h), R = Math.min(m, g + f + a), b = Math.min(y, _ + l + h), z = l > 0 && f > 0 ? r.cellRenderers({ height: b - x, isScrolling: v, width: R - C, x: C, y: x }) : [], T = { boxSizing: "border-box", direction: "ltr", height: t ? "auto" : l, position: "relative", WebkitOverflowScrolling: "touch", width: f, willChange: "transform" }, O = y > l ? this._scrollbarSize : 0, k = m > f ? this._scrollbarSize : 0;
|
|
472
|
+
return T.overflowX = m + O <= f ? "hidden" : "auto", T.overflowY = y + k <= l ? "hidden" : "auto", w.createElement("div", { ref: this._setScrollingContainerRef, "aria-label": this.props["aria-label"], className: N("ReactVirtualized__Collection", i), id: s, onScroll: this._onScroll, role: "grid", style: je(je({}, T), d), tabIndex: 0 }, n > 0 && w.createElement("div", { className: "ReactVirtualized__Collection__innerScrollContainer", style: { height: y, maxHeight: y, maxWidth: m, overflow: "hidden", pointerEvents: v ? "none" : "", width: m } }, z), n === 0 && c());
|
|
473
473
|
} }, { key: "_enablePointerEventsAfterDelay", value: function() {
|
|
474
474
|
var e = this;
|
|
475
475
|
this._disablePointerEventsTimeoutId && clearTimeout(this._disablePointerEventsTimeoutId), this._disablePointerEventsTimeoutId = setTimeout(function() {
|
|
@@ -552,22 +552,22 @@ function Fe(o) {
|
|
|
552
552
|
return Math.max(s, Math.min(a, l));
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
|
-
function
|
|
555
|
+
function zt() {
|
|
556
556
|
try {
|
|
557
557
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
558
558
|
}));
|
|
559
559
|
} catch {
|
|
560
560
|
}
|
|
561
|
-
return (
|
|
561
|
+
return (zt = function() {
|
|
562
562
|
return !!o;
|
|
563
563
|
})();
|
|
564
564
|
}
|
|
565
565
|
var Ne = (function() {
|
|
566
566
|
function o(e, t) {
|
|
567
567
|
var n, r, i, l;
|
|
568
|
-
return G(this, o), r = this, l = [e, t], i = I(i = o), (n = H(r,
|
|
568
|
+
return G(this, o), r = this, l = [e, t], i = I(i = o), (n = H(r, zt() ? Reflect.construct(i, l || [], I(r).constructor) : i.apply(r, l)))._cellMetadata = [], n._lastRenderedCellIndices = [], n._cellCache = [], n._isScrollingChange = n._isScrollingChange.bind(n), n._setCollectionViewRef = n._setCollectionViewRef.bind(n), n;
|
|
569
569
|
}
|
|
570
|
-
return W(o,
|
|
570
|
+
return W(o, w.PureComponent), A(o, [{ key: "forceUpdate", value: function() {
|
|
571
571
|
this._collectionView !== void 0 && this._collectionView.forceUpdate();
|
|
572
572
|
} }, { key: "recomputeCellSizesAndPositions", value: function() {
|
|
573
573
|
this._cellCache = [], this._collectionView.recomputeCellSizesAndPositions();
|
|
@@ -575,7 +575,7 @@ var Ne = (function() {
|
|
|
575
575
|
var e = U({}, ((function(t) {
|
|
576
576
|
if (t == null) throw new TypeError("Cannot destructure " + t);
|
|
577
577
|
})(this.props), this.props));
|
|
578
|
-
return
|
|
578
|
+
return w.createElement(fe, U({ cellLayoutManager: this, isScrollingChange: this._isScrollingChange, ref: this._setCollectionViewRef }, e));
|
|
579
579
|
} }, { key: "calculateSizeAndPositionData", value: function() {
|
|
580
580
|
var e = this.props, t = (function(n) {
|
|
581
581
|
for (var r = n.cellCount, i = n.cellSizeAndPositionGetter, l = [], a = new yo(n.sectionSize), s = 0, c = 0, d = 0; d < r; d++) {
|
|
@@ -610,13 +610,13 @@ var Ne = (function() {
|
|
|
610
610
|
this._collectionView = e;
|
|
611
611
|
} }]);
|
|
612
612
|
})();
|
|
613
|
-
function
|
|
613
|
+
function Tt() {
|
|
614
614
|
try {
|
|
615
615
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
616
616
|
}));
|
|
617
617
|
} catch {
|
|
618
618
|
}
|
|
619
|
-
return (
|
|
619
|
+
return (Tt = function() {
|
|
620
620
|
return !!o;
|
|
621
621
|
})();
|
|
622
622
|
}
|
|
@@ -644,9 +644,9 @@ p(Ne, "defaultProps", { "aria-label": "grid", cellGroupRenderer: function(o) {
|
|
|
644
644
|
} }), Ne.propTypes = {}, (function() {
|
|
645
645
|
function o(e, t) {
|
|
646
646
|
var n, r, i, l;
|
|
647
|
-
return G(this, o), r = this, l = [e, t], i = I(i = o), (n = H(r,
|
|
647
|
+
return G(this, o), r = this, l = [e, t], i = I(i = o), (n = H(r, Tt() ? Reflect.construct(i, l || [], I(r).constructor) : i.apply(r, l)))._registerChild = n._registerChild.bind(n), n;
|
|
648
648
|
}
|
|
649
|
-
return W(o,
|
|
649
|
+
return W(o, w.PureComponent), A(o, [{ key: "componentDidUpdate", value: function(e) {
|
|
650
650
|
var t = this.props, n = t.columnMaxWidth, r = t.columnMinWidth, i = t.columnCount, l = t.width;
|
|
651
651
|
n === e.columnMaxWidth && r === e.columnMinWidth && i === e.columnCount && l === e.width || this._registeredChild && this._registeredChild.recomputeGridSize();
|
|
652
652
|
} }, { key: "render", value: function() {
|
|
@@ -778,8 +778,8 @@ var F, wo = A(function o(e) {
|
|
|
778
778
|
return Math.round(i * (n - e));
|
|
779
779
|
} }]);
|
|
780
780
|
function Ve(o) {
|
|
781
|
-
var e = o.cellSize, t = o.cellSizeAndPositionManager, n = o.previousCellsCount, r = o.previousCellSize, i = o.previousScrollToAlignment, l = o.previousScrollToIndex, a = o.previousSize, s = o.scrollOffset, c = o.scrollToAlignment, d = o.scrollToIndex, h = o.size, f = o.sizeJustIncreasedFromZero, u = o.updateScrollIndexCallback,
|
|
782
|
-
g && (h !== a || f || !r || typeof e == "number" && e !== r || c !== i || d !== l) ? u(d) : !g &&
|
|
781
|
+
var e = o.cellSize, t = o.cellSizeAndPositionManager, n = o.previousCellsCount, r = o.previousCellSize, i = o.previousScrollToAlignment, l = o.previousScrollToIndex, a = o.previousSize, s = o.scrollOffset, c = o.scrollToAlignment, d = o.scrollToIndex, h = o.size, f = o.sizeJustIncreasedFromZero, u = o.updateScrollIndexCallback, v = t.getCellCount(), g = d >= 0 && d < v;
|
|
782
|
+
g && (h !== a || f || !r || typeof e == "number" && e !== r || c !== i || d !== l) ? u(d) : !g && v > 0 && (h < a || v < n) && s > t.getTotalSize() - h && u(v - 1);
|
|
783
783
|
}
|
|
784
784
|
var xo = (F = typeof window < "u" ? window : typeof self < "u" ? self : {}).requestAnimationFrame || F.webkitRequestAnimationFrame || F.mozRequestAnimationFrame || F.oRequestAnimationFrame || F.msRequestAnimationFrame || function(o) {
|
|
785
785
|
return F.setTimeout(o, 1e3 / 60);
|
|
@@ -818,20 +818,20 @@ function D(o) {
|
|
|
818
818
|
}
|
|
819
819
|
return o;
|
|
820
820
|
}
|
|
821
|
-
function
|
|
821
|
+
function It() {
|
|
822
822
|
try {
|
|
823
823
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
824
824
|
}));
|
|
825
825
|
} catch {
|
|
826
826
|
}
|
|
827
|
-
return (
|
|
827
|
+
return (It = function() {
|
|
828
828
|
return !!o;
|
|
829
829
|
})();
|
|
830
830
|
}
|
|
831
831
|
var qe = "requested", V = (function() {
|
|
832
832
|
function o(e) {
|
|
833
833
|
var t, n, r, i;
|
|
834
|
-
G(this, o), n = this, i = [e], r = I(r = o), p(t = H(n,
|
|
834
|
+
G(this, o), n = this, i = [e], r = I(r = o), p(t = H(n, It() ? Reflect.construct(r, i || [], I(n).constructor) : r.apply(n, i)), "_onGridRenderedMemoizer", J()), p(t, "_onScrollMemoizer", J(!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() {
|
|
835
835
|
t._disablePointerEventsTimeoutId = null, t.setState({ isScrolling: !1, needToResetStyleCache: !1 });
|
|
836
836
|
}), p(t, "_invokeOnGridRenderedHelper", function() {
|
|
837
837
|
var s = t.props.onSectionRendered;
|
|
@@ -848,7 +848,7 @@ var qe = "requested", V = (function() {
|
|
|
848
848
|
}, estimatedCellSize: o._getEstimatedRowSize(e) });
|
|
849
849
|
return t.state = { instanceProps: { columnSizeAndPositionManager: l, rowSizeAndPositionManager: a, prevColumnWidth: e.columnWidth, prevRowHeight: e.rowHeight, prevColumnCount: e.columnCount, prevRowCount: e.rowCount, prevIsScrolling: e.isScrolling === !0, prevScrollToColumn: e.scrollToColumn, prevScrollToRow: e.scrollToRow, scrollbarSize: 0, scrollbarSizeMeasured: !1 }, isScrolling: !1, scrollDirectionHorizontal: 1, scrollDirectionVertical: 1, scrollLeft: 0, scrollTop: 0, scrollPositionChangeReason: null, needToResetStyleCache: !1 }, e.scrollToRow > 0 && (t._initialScrollTop = t._getCalculatedScrollTop(e, t.state)), e.scrollToColumn > 0 && (t._initialScrollLeft = t._getCalculatedScrollLeft(e, t.state)), t;
|
|
850
850
|
}
|
|
851
|
-
return W(o,
|
|
851
|
+
return W(o, w.PureComponent), A(o, [{ key: "getOffsetForCell", value: function() {
|
|
852
852
|
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, i = r === void 0 ? this.props.scrollToColumn : r, l = e.rowIndex, a = l === void 0 ? this.props.scrollToRow : l, s = D(D({}, this.props), {}, { scrollToAlignment: n, scrollToColumn: i, scrollToRow: a });
|
|
853
853
|
return { scrollLeft: this._getCalculatedScrollLeft(s), scrollTop: this._getCalculatedScrollTop(s) };
|
|
854
854
|
} }, { key: "getTotalRowsHeight", value: function() {
|
|
@@ -859,12 +859,12 @@ var qe = "requested", V = (function() {
|
|
|
859
859
|
var t = e.scrollLeft, n = t === void 0 ? 0 : t, r = e.scrollTop, i = r === void 0 ? 0 : r;
|
|
860
860
|
if (!(i < 0)) {
|
|
861
861
|
this._debounceScrollEnded();
|
|
862
|
-
var l = this.props, a = l.autoHeight, s = l.autoWidth, c = l.height, d = l.width, h = this.state.instanceProps, f = h.scrollbarSize, u = h.rowSizeAndPositionManager.getTotalSize(),
|
|
863
|
-
if (this.state.scrollLeft !== g || this.state.scrollTop !==
|
|
864
|
-
var S = { isScrolling: !0, scrollDirectionHorizontal: g !== this.state.scrollLeft ? g > this.state.scrollLeft ? 1 : -1 : this.state.scrollDirectionHorizontal, scrollDirectionVertical:
|
|
865
|
-
a || (S.scrollTop =
|
|
862
|
+
var l = this.props, a = l.autoHeight, s = l.autoWidth, c = l.height, d = l.width, h = this.state.instanceProps, f = h.scrollbarSize, u = h.rowSizeAndPositionManager.getTotalSize(), v = h.columnSizeAndPositionManager.getTotalSize(), g = Math.min(Math.max(0, v - d + f), n), _ = Math.min(Math.max(0, u - c + f), i);
|
|
863
|
+
if (this.state.scrollLeft !== g || this.state.scrollTop !== _) {
|
|
864
|
+
var S = { isScrolling: !0, scrollDirectionHorizontal: g !== this.state.scrollLeft ? g > this.state.scrollLeft ? 1 : -1 : this.state.scrollDirectionHorizontal, scrollDirectionVertical: _ !== this.state.scrollTop ? _ > this.state.scrollTop ? 1 : -1 : this.state.scrollDirectionVertical, scrollPositionChangeReason: "observed" };
|
|
865
|
+
a || (S.scrollTop = _), s || (S.scrollLeft = g), S.needToResetStyleCache = !1, this.setState(S);
|
|
866
866
|
}
|
|
867
|
-
this._invokeOnScrollMemoizer({ scrollLeft: g, scrollTop:
|
|
867
|
+
this._invokeOnScrollMemoizer({ scrollLeft: g, scrollTop: _, totalColumnsWidth: v, totalRowsHeight: u });
|
|
868
868
|
}
|
|
869
869
|
} }, { key: "invalidateCellSizeAfterRender", value: function(e) {
|
|
870
870
|
var t = e.columnIndex, n = e.rowIndex;
|
|
@@ -891,14 +891,14 @@ var qe = "requested", V = (function() {
|
|
|
891
891
|
var h = n > 0 && s > 0;
|
|
892
892
|
i >= 0 && h && this._updateScrollLeftForScrollToColumn(), a >= 0 && h && this._updateScrollTopForScrollToRow(), this._invokeOnGridRenderedHelper(), this._invokeOnScrollMemoizer({ scrollLeft: r || 0, scrollTop: l || 0, totalColumnsWidth: c.columnSizeAndPositionManager.getTotalSize(), totalRowsHeight: c.rowSizeAndPositionManager.getTotalSize() }), this._maybeCallOnScrollbarPresenceChange();
|
|
893
893
|
} }, { key: "componentDidUpdate", value: function(e, t) {
|
|
894
|
-
var n = this, r = this.props, i = r.autoHeight, l = r.autoWidth, a = r.columnCount, s = r.height, c = r.rowCount, d = r.scrollToAlignment, h = r.scrollToColumn, f = r.scrollToRow, u = r.width,
|
|
894
|
+
var n = this, r = this.props, i = r.autoHeight, l = r.autoWidth, a = r.columnCount, s = r.height, c = r.rowCount, d = r.scrollToAlignment, h = r.scrollToColumn, f = r.scrollToRow, u = r.width, v = this.state, g = v.scrollLeft, _ = v.scrollPositionChangeReason, S = v.scrollTop, y = v.instanceProps;
|
|
895
895
|
this._handleInvalidatedGridSize();
|
|
896
|
-
var
|
|
897
|
-
|
|
898
|
-
var
|
|
899
|
-
if (this._recomputeScrollLeftFlag ? (this._recomputeScrollLeftFlag = !1, this._updateScrollLeftForScrollToColumn(this.props)) : Ve({ cellSizeAndPositionManager: y.columnSizeAndPositionManager, previousCellsCount: e.columnCount, previousCellSize: e.columnWidth, previousScrollToAlignment: e.scrollToAlignment, previousScrollToIndex: e.scrollToColumn, previousSize: e.width, scrollOffset: g, scrollToAlignment: d, scrollToIndex: h, size: u, sizeJustIncreasedFromZero:
|
|
896
|
+
var m = a > 0 && e.columnCount === 0 || c > 0 && e.rowCount === 0;
|
|
897
|
+
_ === qe && (!l && g >= 0 && (g !== this._scrollingContainer.scrollLeft || m) && (this._scrollingContainer.scrollLeft = g), !i && S >= 0 && (S !== this._scrollingContainer.scrollTop || m) && (this._scrollingContainer.scrollTop = S));
|
|
898
|
+
var C = (e.width === 0 || e.height === 0) && s > 0 && u > 0;
|
|
899
|
+
if (this._recomputeScrollLeftFlag ? (this._recomputeScrollLeftFlag = !1, this._updateScrollLeftForScrollToColumn(this.props)) : Ve({ cellSizeAndPositionManager: y.columnSizeAndPositionManager, previousCellsCount: e.columnCount, previousCellSize: e.columnWidth, previousScrollToAlignment: e.scrollToAlignment, previousScrollToIndex: e.scrollToColumn, previousSize: e.width, scrollOffset: g, scrollToAlignment: d, scrollToIndex: h, size: u, sizeJustIncreasedFromZero: C, updateScrollIndexCallback: function() {
|
|
900
900
|
return n._updateScrollLeftForScrollToColumn(n.props);
|
|
901
|
-
} }), this._recomputeScrollTopFlag ? (this._recomputeScrollTopFlag = !1, this._updateScrollTopForScrollToRow(this.props)) : Ve({ 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:
|
|
901
|
+
} }), this._recomputeScrollTopFlag ? (this._recomputeScrollTopFlag = !1, this._updateScrollTopForScrollToRow(this.props)) : Ve({ cellSizeAndPositionManager: y.rowSizeAndPositionManager, previousCellsCount: e.rowCount, previousCellSize: e.rowHeight, previousScrollToAlignment: e.scrollToAlignment, previousScrollToIndex: e.scrollToRow, previousSize: e.height, scrollOffset: S, scrollToAlignment: d, scrollToIndex: f, size: s, sizeJustIncreasedFromZero: C, updateScrollIndexCallback: function() {
|
|
902
902
|
return n._updateScrollTopForScrollToRow(n.props);
|
|
903
903
|
} }), this._invokeOnGridRenderedHelper(), g !== t.scrollLeft || S !== t.scrollTop) {
|
|
904
904
|
var x = y.rowSizeAndPositionManager.getTotalSize(), R = y.columnSizeAndPositionManager.getTotalSize();
|
|
@@ -908,18 +908,18 @@ var qe = "requested", V = (function() {
|
|
|
908
908
|
} }, { key: "componentWillUnmount", value: function() {
|
|
909
909
|
this._disablePointerEventsTimeoutId && Z(this._disablePointerEventsTimeoutId);
|
|
910
910
|
} }, { key: "render", value: function() {
|
|
911
|
-
var e = this.props, t = e.autoContainerWidth, n = e.autoHeight, r = e.autoWidth, i = e.className, l = e.containerProps, a = e.containerRole, s = e.containerStyle, c = e.height, d = e.id, h = e.noContentRenderer, f = e.role, u = e.style,
|
|
911
|
+
var e = this.props, t = e.autoContainerWidth, n = e.autoHeight, r = e.autoWidth, i = e.className, l = e.containerProps, a = e.containerRole, s = e.containerStyle, c = e.height, d = e.id, h = e.noContentRenderer, f = e.role, u = e.style, v = e.tabIndex, g = e.width, _ = this.state, S = _.instanceProps, y = _.needToResetStyleCache, m = this._isScrolling(), C = { boxSizing: "border-box", direction: "ltr", height: n ? "auto" : c, position: "relative", width: r ? "auto" : g, WebkitOverflowScrolling: "touch", willChange: "transform" };
|
|
912
912
|
y && (this._styleCache = {}), this.state.isScrolling || this._resetStyleCache(), this._calculateChildrenToRender(this.props, this.state);
|
|
913
913
|
var x = S.columnSizeAndPositionManager.getTotalSize(), R = S.rowSizeAndPositionManager.getTotalSize(), b = R > c ? S.scrollbarSize : 0, z = x > g ? S.scrollbarSize : 0;
|
|
914
|
-
z === this._horizontalScrollBarSize && b === this._verticalScrollBarSize || (this._horizontalScrollBarSize = z, this._verticalScrollBarSize = b, this._scrollbarPresenceChanged = !0),
|
|
914
|
+
z === this._horizontalScrollBarSize && b === this._verticalScrollBarSize || (this._horizontalScrollBarSize = z, this._verticalScrollBarSize = b, this._scrollbarPresenceChanged = !0), C.overflowX = x + b <= g ? "hidden" : "auto", C.overflowY = R + z <= c ? "hidden" : "auto";
|
|
915
915
|
var T = this._childrenToDisplay, O = T.length === 0 && c > 0 && g > 0;
|
|
916
|
-
return
|
|
916
|
+
return w.createElement("div", U({ ref: this._setScrollingContainerRef }, l, { "aria-label": this.props["aria-label"], "aria-readonly": this.props["aria-readonly"], className: N("ReactVirtualized__Grid", i), id: d, onScroll: this._onScroll, role: f, style: D(D({}, C), u), tabIndex: v }), T.length > 0 && w.createElement("div", { className: "ReactVirtualized__Grid__innerScrollContainer", role: a, style: D({ width: t ? "auto" : x, height: R, maxWidth: x, maxHeight: R, overflow: "hidden", pointerEvents: m ? "none" : "", position: "relative" }, s) }, T), O && h());
|
|
917
917
|
} }, { key: "_calculateChildrenToRender", value: function() {
|
|
918
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.props, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.state, n = e.cellRenderer, r = e.cellRangeRenderer, i = e.columnCount, l = e.deferredMeasurementCache, a = e.height, s = e.overscanColumnCount, c = e.overscanIndicesGetter, d = e.overscanRowCount, h = e.rowCount, f = e.width, u = e.isScrollingOptOut,
|
|
918
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.props, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.state, n = e.cellRenderer, r = e.cellRangeRenderer, i = e.columnCount, l = e.deferredMeasurementCache, a = e.height, s = e.overscanColumnCount, c = e.overscanIndicesGetter, d = e.overscanRowCount, h = e.rowCount, f = e.width, u = e.isScrollingOptOut, v = t.scrollDirectionHorizontal, g = t.scrollDirectionVertical, _ = t.instanceProps, S = this._initialScrollTop > 0 ? this._initialScrollTop : t.scrollTop, y = this._initialScrollLeft > 0 ? this._initialScrollLeft : t.scrollLeft, m = this._isScrolling(e, t);
|
|
919
919
|
if (this._childrenToDisplay = [], a > 0 && f > 0) {
|
|
920
|
-
var
|
|
921
|
-
this._renderedColumnStartIndex =
|
|
922
|
-
var z = c({ direction: "horizontal", cellCount: i, overscanCellsCount: s, scrollDirection:
|
|
920
|
+
var C = _.columnSizeAndPositionManager.getVisibleCellRange({ containerSize: f, offset: y }), x = _.rowSizeAndPositionManager.getVisibleCellRange({ containerSize: a, offset: S }), R = _.columnSizeAndPositionManager.getOffsetAdjustment({ containerSize: f, offset: y }), b = _.rowSizeAndPositionManager.getOffsetAdjustment({ containerSize: a, offset: S });
|
|
921
|
+
this._renderedColumnStartIndex = C.start, this._renderedColumnStopIndex = C.stop, this._renderedRowStartIndex = x.start, this._renderedRowStopIndex = x.stop;
|
|
922
|
+
var z = c({ direction: "horizontal", cellCount: i, overscanCellsCount: s, scrollDirection: v, startIndex: typeof C.start == "number" ? C.start : 0, stopIndex: typeof C.stop == "number" ? C.stop : -1 }), T = c({ direction: "vertical", cellCount: h, overscanCellsCount: d, scrollDirection: g, startIndex: typeof x.start == "number" ? x.start : 0, stopIndex: typeof x.stop == "number" ? x.stop : -1 }), O = z.overscanStartIndex, k = z.overscanStopIndex, P = T.overscanStartIndex, E = T.overscanStopIndex;
|
|
923
923
|
if (l) {
|
|
924
924
|
if (!l.hasFixedHeight()) {
|
|
925
925
|
for (var j = P; j <= E; j++) if (!l.has(j, 0)) {
|
|
@@ -934,7 +934,7 @@ var qe = "requested", V = (function() {
|
|
|
934
934
|
}
|
|
935
935
|
}
|
|
936
936
|
}
|
|
937
|
-
this._childrenToDisplay = r({ cellCache: this._cellCache, cellRenderer: n, columnSizeAndPositionManager:
|
|
937
|
+
this._childrenToDisplay = r({ cellCache: this._cellCache, cellRenderer: n, columnSizeAndPositionManager: _.columnSizeAndPositionManager, columnStartIndex: O, columnStopIndex: k, deferredMeasurementCache: l, horizontalOffsetAdjustment: R, isScrolling: m, isScrollingOptOut: u, parent: this, rowSizeAndPositionManager: _.rowSizeAndPositionManager, rowStartIndex: P, rowStopIndex: E, scrollLeft: y, scrollTop: S, styleCache: this._styleCache, verticalOffsetAdjustment: b, visibleColumnIndices: C, visibleRowIndices: x }), this._columnStartIndex = O, this._columnStopIndex = k, this._rowStartIndex = P, this._rowStopIndex = E;
|
|
938
938
|
}
|
|
939
939
|
} }, { key: "_debounceScrollEnded", value: function() {
|
|
940
940
|
var e = this.props.scrollingResetTimeInterval;
|
|
@@ -1026,7 +1026,7 @@ var qe = "requested", V = (function() {
|
|
|
1026
1026
|
return typeof r == "number" && r >= 0 && n !== r ? o._getScrollToPositionStateUpdate({ prevState: t, scrollLeft: -1, scrollTop: r }) : {};
|
|
1027
1027
|
} }]);
|
|
1028
1028
|
})();
|
|
1029
|
-
function
|
|
1029
|
+
function Pt(o) {
|
|
1030
1030
|
var e = o.cellCount, t = o.overscanCellsCount, n = o.scrollDirection, r = o.startIndex, i = o.stopIndex;
|
|
1031
1031
|
return t = Math.max(1, t), n === 1 ? { overscanStartIndex: Math.max(0, r - 1), overscanStopIndex: Math.min(e - 1, i + t) } : { overscanStartIndex: Math.max(0, r - t), overscanStopIndex: Math.min(e - 1, i + 1) };
|
|
1032
1032
|
}
|
|
@@ -1035,29 +1035,29 @@ function Ce(o, e) {
|
|
|
1035
1035
|
for (var t = 0, n = Array(e); t < e; t++) n[t] = o[t];
|
|
1036
1036
|
return n;
|
|
1037
1037
|
}
|
|
1038
|
-
function
|
|
1038
|
+
function Ot(o, e) {
|
|
1039
1039
|
if (o) {
|
|
1040
1040
|
if (typeof o == "string") return Ce(o, e);
|
|
1041
1041
|
var t = {}.toString.call(o).slice(8, -1);
|
|
1042
1042
|
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) ? Ce(o, e) : void 0;
|
|
1043
1043
|
}
|
|
1044
1044
|
}
|
|
1045
|
-
function
|
|
1045
|
+
function kt() {
|
|
1046
1046
|
try {
|
|
1047
1047
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1048
1048
|
}));
|
|
1049
1049
|
} catch {
|
|
1050
1050
|
}
|
|
1051
|
-
return (
|
|
1051
|
+
return (kt = function() {
|
|
1052
1052
|
return !!o;
|
|
1053
1053
|
})();
|
|
1054
1054
|
}
|
|
1055
1055
|
p(V, "defaultProps", { "aria-label": "grid", "aria-readonly": !0, autoContainerWidth: !1, autoHeight: !1, autoWidth: !1, cellRangeRenderer: function(o) {
|
|
1056
|
-
for (var e = o.cellCache, t = o.cellRenderer, n = o.columnSizeAndPositionManager, r = o.columnStartIndex, i = o.columnStopIndex, l = o.deferredMeasurementCache, a = o.horizontalOffsetAdjustment, s = o.isScrolling, c = o.isScrollingOptOut, d = o.parent, h = o.rowSizeAndPositionManager, f = o.rowStartIndex, u = o.rowStopIndex,
|
|
1057
|
-
var z = n.getSizeAndPositionOfCell(b), T = b >=
|
|
1058
|
-
|
|
1056
|
+
for (var e = o.cellCache, t = o.cellRenderer, n = o.columnSizeAndPositionManager, r = o.columnStartIndex, i = o.columnStopIndex, l = o.deferredMeasurementCache, a = o.horizontalOffsetAdjustment, s = o.isScrolling, c = o.isScrollingOptOut, d = o.parent, h = o.rowSizeAndPositionManager, f = o.rowStartIndex, u = o.rowStopIndex, v = o.styleCache, g = o.verticalOffsetAdjustment, _ = o.visibleColumnIndices, S = o.visibleRowIndices, y = [], m = n.areOffsetsAdjusted() || h.areOffsetsAdjusted(), C = !s && !m, x = f; x <= u; x++) for (var R = h.getSizeAndPositionOfCell(x), b = r; b <= i; b++) {
|
|
1057
|
+
var z = n.getSizeAndPositionOfCell(b), T = b >= _.start && b <= _.stop && x >= S.start && x <= S.stop, O = "".concat(x, "-").concat(b), k = void 0;
|
|
1058
|
+
C && v[O] ? k = v[O] : l && !l.has(x, b) ? k = { height: "auto", left: 0, position: "absolute", top: 0, width: "auto" } : (k = { height: R.size, left: z.offset + a, position: "absolute", top: R.offset + g, width: z.size }, v[O] = k);
|
|
1059
1059
|
var P = { columnIndex: b, isScrolling: s, isVisible: T, key: O, parent: d, rowIndex: x, style: k }, E = void 0;
|
|
1060
|
-
!c && !s || a || g ? E = t(P) : (e[O] || (e[O] = t(P)), E = e[O]), E != null && E !== !1 && (E.props.role || (E =
|
|
1060
|
+
!c && !s || a || g ? E = t(P) : (e[O] || (e[O] = t(P)), E = e[O]), E != null && E !== !1 && (E.props.role || (E = gt.cloneElement(E, { role: "gridcell" })), y.push(E));
|
|
1061
1061
|
}
|
|
1062
1062
|
return y;
|
|
1063
1063
|
}, containerRole: "row", containerStyle: {}, estimatedColumnSize: 100, estimatedRowSize: 30, getScrollbarSize: we, noContentRenderer: function() {
|
|
@@ -1072,9 +1072,9 @@ p(V, "defaultProps", { "aria-label": "grid", "aria-readonly": !0, autoContainerW
|
|
|
1072
1072
|
var Xe = (function() {
|
|
1073
1073
|
function o(e, t) {
|
|
1074
1074
|
var n, r, i, l;
|
|
1075
|
-
return G(this, o), r = this, l = [e, t], i = I(i = o), (n = H(r,
|
|
1075
|
+
return G(this, o), r = this, l = [e, t], i = I(i = o), (n = H(r, kt() ? Reflect.construct(i, l || [], I(r).constructor) : i.apply(r, l)))._loadMoreRowsMemoizer = J(), n._onRowsRendered = n._onRowsRendered.bind(n), n._registerChild = n._registerChild.bind(n), n;
|
|
1076
1076
|
}
|
|
1077
|
-
return W(o,
|
|
1077
|
+
return W(o, w.PureComponent), A(o, [{ key: "resetLoadMoreRowsCache", value: function(e) {
|
|
1078
1078
|
this._loadMoreRowsMemoizer = J(), e && this._doStuff(this._lastRenderedStartIndex, this._lastRenderedStopIndex);
|
|
1079
1079
|
} }, { key: "render", value: function() {
|
|
1080
1080
|
return (0, this.props.children)({ onRowsRendered: this._onRowsRendered, registerChild: this._registerChild });
|
|
@@ -1095,12 +1095,12 @@ var Xe = (function() {
|
|
|
1095
1095
|
this._lastRenderedStartIndex = t, this._lastRenderedStopIndex = n, this._doStuff(t, n);
|
|
1096
1096
|
} }, { key: "_doStuff", value: function(e, t) {
|
|
1097
1097
|
var n, r = this, i = this.props, l = i.isRowLoaded, a = i.minimumBatchSize, s = i.rowCount, c = i.threshold, d = (function(f) {
|
|
1098
|
-
for (var u = f.isRowLoaded,
|
|
1099
|
-
if (
|
|
1100
|
-
for (var x = Math.min(Math.max(
|
|
1101
|
-
S.push({ startIndex: y, stopIndex:
|
|
1098
|
+
for (var u = f.isRowLoaded, v = f.minimumBatchSize, g = f.rowCount, _ = f.stopIndex, S = [], y = null, m = null, C = f.startIndex; C <= _; C++) u({ index: C }) ? m !== null && (S.push({ startIndex: y, stopIndex: m }), y = m = null) : (m = C, y === null && (y = C));
|
|
1099
|
+
if (m !== null) {
|
|
1100
|
+
for (var x = Math.min(Math.max(m, y + v - 1), g - 1), R = m + 1; R <= x && !u({ index: R }); R++) m = R;
|
|
1101
|
+
S.push({ startIndex: y, stopIndex: m });
|
|
1102
1102
|
}
|
|
1103
|
-
if (S.length) for (var b = S[0]; b.stopIndex - b.startIndex + 1 <
|
|
1103
|
+
if (S.length) for (var b = S[0]; b.stopIndex - b.startIndex + 1 < v && b.startIndex > 0; ) {
|
|
1104
1104
|
var z = b.startIndex - 1;
|
|
1105
1105
|
if (u({ index: z })) break;
|
|
1106
1106
|
b.startIndex = z;
|
|
@@ -1111,7 +1111,7 @@ var Xe = (function() {
|
|
|
1111
1111
|
if (Array.isArray(u)) return Ce(u);
|
|
1112
1112
|
})(f) || (function(u) {
|
|
1113
1113
|
if (typeof Symbol < "u" && u[Symbol.iterator] != null || u["@@iterator"] != null) return Array.from(u);
|
|
1114
|
-
})(f) ||
|
|
1114
|
+
})(f) || Ot(f) || (function() {
|
|
1115
1115
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1116
1116
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1117
1117
|
})();
|
|
@@ -1125,13 +1125,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1125
1125
|
this._registeredChild = e;
|
|
1126
1126
|
} }]);
|
|
1127
1127
|
})();
|
|
1128
|
-
function
|
|
1128
|
+
function Mt() {
|
|
1129
1129
|
try {
|
|
1130
1130
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1131
1131
|
}));
|
|
1132
1132
|
} catch {
|
|
1133
1133
|
}
|
|
1134
|
-
return (
|
|
1134
|
+
return (Mt = function() {
|
|
1135
1135
|
return !!o;
|
|
1136
1136
|
})();
|
|
1137
1137
|
}
|
|
@@ -1141,9 +1141,9 @@ var zo = (function() {
|
|
|
1141
1141
|
var e, t, n, r;
|
|
1142
1142
|
G(this, o);
|
|
1143
1143
|
for (var i = arguments.length, l = new Array(i), a = 0; a < i; a++) l[a] = arguments[a];
|
|
1144
|
-
return t = this, n = o, r = [].concat(l), n = I(n), p(e = H(t,
|
|
1145
|
-
var c = s.parent, d = s.rowIndex, h = s.style, f = s.isScrolling, u = s.isVisible,
|
|
1146
|
-
return
|
|
1144
|
+
return t = this, n = o, r = [].concat(l), n = I(n), p(e = H(t, Mt() ? Reflect.construct(n, r || [], I(t).constructor) : n.apply(t, r)), "Grid", void 0), p(e, "_cellRenderer", function(s) {
|
|
1145
|
+
var c = s.parent, d = s.rowIndex, h = s.style, f = s.isScrolling, u = s.isVisible, v = s.key, g = e.props.rowRenderer, _ = Object.getOwnPropertyDescriptor(h, "width");
|
|
1146
|
+
return _ && _.writable && (h.width = "100%"), g({ index: d, style: h, isScrolling: f, isVisible: u, key: v, parent: c });
|
|
1147
1147
|
}), p(e, "_setRef", function(s) {
|
|
1148
1148
|
e.Grid = s;
|
|
1149
1149
|
}), p(e, "_onScroll", function(s) {
|
|
@@ -1154,7 +1154,7 @@ var zo = (function() {
|
|
|
1154
1154
|
(0, e.props.onRowsRendered)({ overscanStartIndex: c, overscanStopIndex: d, startIndex: h, stopIndex: f });
|
|
1155
1155
|
}), e;
|
|
1156
1156
|
}
|
|
1157
|
-
return W(o,
|
|
1157
|
+
return W(o, w.PureComponent), A(o, [{ key: "forceUpdateGrid", value: function() {
|
|
1158
1158
|
this.Grid && this.Grid.forceUpdate();
|
|
1159
1159
|
} }, { key: "getOffsetForRow", value: function(e) {
|
|
1160
1160
|
var t = e.alignment, n = e.index;
|
|
@@ -1178,14 +1178,14 @@ var zo = (function() {
|
|
|
1178
1178
|
this.Grid && this.Grid.scrollToCell({ columnIndex: 0, rowIndex: e });
|
|
1179
1179
|
} }, { key: "render", value: function() {
|
|
1180
1180
|
var e = this.props, t = e.className, n = e.noRowsRenderer, r = e.scrollToIndex, i = e.width, l = N("ReactVirtualized__List", t);
|
|
1181
|
-
return
|
|
1181
|
+
return w.createElement(V, U({}, this.props, { autoContainerWidth: !0, cellRenderer: this._cellRenderer, className: l, columnWidth: i, columnCount: 1, noContentRenderer: n, onScroll: this._onScroll, onSectionRendered: this._onSectionRendered, ref: this._setRef, scrollToRow: r }));
|
|
1182
1182
|
} }]);
|
|
1183
1183
|
})();
|
|
1184
1184
|
p(zo, "defaultProps", { autoHeight: !1, estimatedRowSize: 30, onScroll: function() {
|
|
1185
1185
|
}, noRowsRenderer: function() {
|
|
1186
1186
|
return null;
|
|
1187
1187
|
}, onRowsRendered: function() {
|
|
1188
|
-
}, overscanIndicesGetter:
|
|
1188
|
+
}, overscanIndicesGetter: Pt, overscanRowCount: 10, scrollToAlignment: "auto", scrollToIndex: -1, style: {} });
|
|
1189
1189
|
const he = function(o, e, t, n, r) {
|
|
1190
1190
|
return typeof t == "function" ? (function(i, l, a, s, c) {
|
|
1191
1191
|
for (var d = a + 1; l <= a; ) {
|
|
@@ -1208,17 +1208,17 @@ var ee = Oe.prototype;
|
|
|
1208
1208
|
function ve(o, e) {
|
|
1209
1209
|
o.mid = e.mid, o.left = e.left, o.right = e.right, o.leftPoints = e.leftPoints, o.rightPoints = e.rightPoints, o.count = e.count;
|
|
1210
1210
|
}
|
|
1211
|
-
function
|
|
1211
|
+
function Lt(o, e) {
|
|
1212
1212
|
var t = ie(e);
|
|
1213
1213
|
o.mid = t.mid, o.left = t.left, o.right = t.right, o.leftPoints = t.leftPoints, o.rightPoints = t.rightPoints, o.count = t.count;
|
|
1214
1214
|
}
|
|
1215
1215
|
function Ye(o, e) {
|
|
1216
1216
|
var t = o.intervals([]);
|
|
1217
|
-
t.push(e),
|
|
1217
|
+
t.push(e), Lt(o, t);
|
|
1218
1218
|
}
|
|
1219
1219
|
function Je(o, e) {
|
|
1220
1220
|
var t = o.intervals([]), n = t.indexOf(e);
|
|
1221
|
-
return n < 0 ? 0 : (t.splice(n, 1),
|
|
1221
|
+
return n < 0 ? 0 : (t.splice(n, 1), Lt(o, t), 1);
|
|
1222
1222
|
}
|
|
1223
1223
|
function Ze(o, e, t) {
|
|
1224
1224
|
for (var n = 0; n < o.length && o[n][0] <= e; ++n) {
|
|
@@ -1259,7 +1259,7 @@ function ie(o) {
|
|
|
1259
1259
|
var s = l, c = l.slice();
|
|
1260
1260
|
return s.sort(xe), c.sort(Re), new Oe(n, ie(r), ie(i), s, c);
|
|
1261
1261
|
}
|
|
1262
|
-
function
|
|
1262
|
+
function Gt(o) {
|
|
1263
1263
|
this.root = o;
|
|
1264
1264
|
}
|
|
1265
1265
|
ee.intervals = function(o) {
|
|
@@ -1300,7 +1300,7 @@ ee.intervals = function(o) {
|
|
|
1300
1300
|
var n;
|
|
1301
1301
|
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 ? Ze(this.leftPoints, e, t) : o > this.mid ? Qe(this.rightPoints, o, t) : et(this.leftPoints, t);
|
|
1302
1302
|
};
|
|
1303
|
-
var q =
|
|
1303
|
+
var q = Gt.prototype;
|
|
1304
1304
|
q.insert = function(o) {
|
|
1305
1305
|
this.root ? this.root.insert(o) : this.root = new Oe(o[0], null, null, [o], [o]);
|
|
1306
1306
|
}, q.remove = function(o) {
|
|
@@ -1319,7 +1319,7 @@ q.insert = function(o) {
|
|
|
1319
1319
|
return this.root ? this.root.intervals([]) : [];
|
|
1320
1320
|
} });
|
|
1321
1321
|
var _e = A(function o() {
|
|
1322
|
-
G(this, o), p(this, "_columnSizeMap", {}), p(this, "_intervalTree", new
|
|
1322
|
+
G(this, o), p(this, "_columnSizeMap", {}), p(this, "_intervalTree", new Gt(null)), p(this, "_leftMap", {});
|
|
1323
1323
|
}, [{ key: "estimateTotalHeight", value: function(o, e, t) {
|
|
1324
1324
|
var n = o - this.count;
|
|
1325
1325
|
return this.tallestColumnSize + Math.ceil(n / e) * t;
|
|
@@ -1332,21 +1332,21 @@ var _e = A(function o() {
|
|
|
1332
1332
|
})(s) || (function(d, h) {
|
|
1333
1333
|
var f = d == null ? null : typeof Symbol < "u" && d[Symbol.iterator] || d["@@iterator"];
|
|
1334
1334
|
if (f != null) {
|
|
1335
|
-
var u,
|
|
1335
|
+
var u, v, g, _, S = [], y = !0, m = !1;
|
|
1336
1336
|
try {
|
|
1337
1337
|
if (g = (f = f.call(d)).next, h !== 0) for (; !(y = (u = g.call(f)).done) && (S.push(u.value), S.length !== h); y = !0) ;
|
|
1338
|
-
} catch (
|
|
1339
|
-
|
|
1338
|
+
} catch (C) {
|
|
1339
|
+
m = !0, v = C;
|
|
1340
1340
|
} finally {
|
|
1341
1341
|
try {
|
|
1342
|
-
if (!y && f.return != null && (
|
|
1342
|
+
if (!y && f.return != null && (_ = f.return(), Object(_) !== _)) return;
|
|
1343
1343
|
} finally {
|
|
1344
|
-
if (
|
|
1344
|
+
if (m) throw v;
|
|
1345
1345
|
}
|
|
1346
1346
|
}
|
|
1347
1347
|
return S;
|
|
1348
1348
|
}
|
|
1349
|
-
})(s, c) ||
|
|
1349
|
+
})(s, c) || Ot(s, c) || (function() {
|
|
1350
1350
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1351
1351
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1352
1352
|
})();
|
|
@@ -1397,13 +1397,13 @@ function Io(o) {
|
|
|
1397
1397
|
}
|
|
1398
1398
|
return o;
|
|
1399
1399
|
}
|
|
1400
|
-
function
|
|
1400
|
+
function At() {
|
|
1401
1401
|
try {
|
|
1402
1402
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1403
1403
|
}));
|
|
1404
1404
|
} catch {
|
|
1405
1405
|
}
|
|
1406
|
-
return (
|
|
1406
|
+
return (At = function() {
|
|
1407
1407
|
return !!o;
|
|
1408
1408
|
})();
|
|
1409
1409
|
}
|
|
@@ -1412,7 +1412,7 @@ var ot = (function() {
|
|
|
1412
1412
|
var e, t, n, r;
|
|
1413
1413
|
G(this, o);
|
|
1414
1414
|
for (var i = arguments.length, l = new Array(i), a = 0; a < i; a++) l[a] = arguments[a];
|
|
1415
|
-
return t = this, n = o, r = [].concat(l), n = I(n), p(e = H(t,
|
|
1415
|
+
return t = this, n = o, r = [].concat(l), n = I(n), p(e = H(t, At() ? Reflect.construct(n, r || [], I(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 _e()), p(e, "_startIndex", null), p(e, "_startIndexMemoized", null), p(e, "_stopIndex", null), p(e, "_stopIndexMemoized", null), p(e, "_debounceResetIsScrollingCallback", function() {
|
|
1416
1416
|
e.setState({ isScrolling: !1 });
|
|
1417
1417
|
}), p(e, "_setScrollingContainerRef", function(s) {
|
|
1418
1418
|
e._scrollingContainer = s;
|
|
@@ -1421,7 +1421,7 @@ var ot = (function() {
|
|
|
1421
1421
|
d === h && (e._debounceResetIsScrolling(), e.state.scrollTop !== h && e.setState({ isScrolling: !0, scrollTop: h }));
|
|
1422
1422
|
}), e;
|
|
1423
1423
|
}
|
|
1424
|
-
return W(o,
|
|
1424
|
+
return W(o, w.PureComponent), A(o, [{ key: "clearCellPositions", value: function() {
|
|
1425
1425
|
this._positionCache = new _e(), this.forceUpdate();
|
|
1426
1426
|
} }, { key: "invalidateCellSizeAfterRender", value: function(e) {
|
|
1427
1427
|
var t = e.rowIndex;
|
|
@@ -1436,11 +1436,11 @@ var ot = (function() {
|
|
|
1436
1436
|
} }, { key: "componentWillUnmount", value: function() {
|
|
1437
1437
|
this._debounceResetIsScrollingId && Z(this._debounceResetIsScrollingId);
|
|
1438
1438
|
} }, { key: "render", value: function() {
|
|
1439
|
-
var e, t = this, n = this.props, r = n.autoHeight, i = n.cellCount, l = n.cellMeasurerCache, a = n.cellRenderer, s = n.className, c = n.height, d = n.id, h = n.keyMapper, f = n.overscanByPixels, u = n.role,
|
|
1440
|
-
if (this._positionCache.range(Math.max(0,
|
|
1441
|
-
e === void 0 ? (T = P, e = P) : (T = Math.min(T, P), e = Math.max(e, P)), x.push(a({ index: P, isScrolling:
|
|
1442
|
-
}), b <
|
|
1443
|
-
return this._startIndex = T, this._stopIndex = e,
|
|
1439
|
+
var e, t = this, n = this.props, r = n.autoHeight, i = n.cellCount, l = n.cellMeasurerCache, a = n.cellRenderer, s = n.className, c = n.height, d = n.id, h = n.keyMapper, f = n.overscanByPixels, u = n.role, v = n.style, g = n.tabIndex, _ = n.width, S = n.rowDirection, y = this.state, m = y.isScrolling, C = y.scrollTop, x = [], R = this._getEstimatedTotalHeight(), b = this._positionCache.shortestColumnSize, z = this._positionCache.count, T = 0;
|
|
1440
|
+
if (this._positionCache.range(Math.max(0, C - f), c + 2 * f, function(P, E, j) {
|
|
1441
|
+
e === void 0 ? (T = P, e = P) : (T = Math.min(T, P), e = Math.max(e, P)), x.push(a({ index: P, isScrolling: m, key: h(P), parent: t, style: p(p(p(p({ height: l.getHeight(P) }, S === "ltr" ? "left" : "right", E), "position", "absolute"), "top", j), "width", l.getWidth(P)) }));
|
|
1442
|
+
}), b < C + c + f && z < i) for (var O = Math.min(i - z, Math.ceil((C + c + f - b) / l.defaultHeight * _ / l.defaultWidth)), k = z; k < z + O; k++) e = k, x.push(a({ index: k, isScrolling: m, key: h(k), parent: this, style: { width: l.getWidth(k) } }));
|
|
1443
|
+
return this._startIndex = T, this._stopIndex = e, w.createElement("div", { ref: this._setScrollingContainerRef, "aria-label": this.props["aria-label"], className: N("ReactVirtualized__Masonry", s), id: d, onScroll: this._onScroll, role: u, style: Io({ boxSizing: "border-box", direction: "ltr", height: r ? "auto" : c, overflowX: "hidden", overflowY: R < c ? "hidden" : "auto", position: "relative", width: _, WebkitOverflowScrolling: "touch", willChange: "transform" }, v), tabIndex: g }, w.createElement("div", { className: "ReactVirtualized__Masonry__innerScrollContainer", style: { width: "100%", height: R, maxWidth: "100%", maxHeight: R, overflow: "hidden", pointerEvents: m ? "none" : "", position: "relative" } }, x));
|
|
1444
1444
|
} }, { key: "_checkInvalidateOnUpdate", value: function() {
|
|
1445
1445
|
if (typeof this._invalidateOnUpdateStartIndex == "number") {
|
|
1446
1446
|
var e = this._invalidateOnUpdateStartIndex, t = this._invalidateOnUpdateStopIndex;
|
|
@@ -1527,43 +1527,43 @@ function M(o) {
|
|
|
1527
1527
|
}
|
|
1528
1528
|
return o;
|
|
1529
1529
|
}
|
|
1530
|
-
function
|
|
1530
|
+
function Et() {
|
|
1531
1531
|
try {
|
|
1532
1532
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1533
1533
|
}));
|
|
1534
1534
|
} catch {
|
|
1535
1535
|
}
|
|
1536
|
-
return (
|
|
1536
|
+
return (Et = function() {
|
|
1537
1537
|
return !!o;
|
|
1538
1538
|
})();
|
|
1539
1539
|
}
|
|
1540
1540
|
var ye = (function() {
|
|
1541
1541
|
function o(e, t) {
|
|
1542
1542
|
var n, r, i, l;
|
|
1543
|
-
G(this, o), r = this, l = [e, t], i = I(i = o), p(n = H(r,
|
|
1543
|
+
G(this, o), r = this, l = [e, t], i = I(i = o), p(n = H(r, Et() ? Reflect.construct(i, l || [], I(r).constructor) : i.apply(r, l)), "state", { scrollLeft: 0, scrollTop: 0, scrollbarSize: 0, showHorizontalScrollbar: !1, showVerticalScrollbar: !1 }), p(n, "_deferredInvalidateColumnIndex", null), p(n, "_deferredInvalidateRowIndex", null), p(n, "_bottomLeftGridRef", function(d) {
|
|
1544
1544
|
n._bottomLeftGrid = d;
|
|
1545
1545
|
}), p(n, "_bottomRightGridRef", function(d) {
|
|
1546
1546
|
n._bottomRightGrid = d;
|
|
1547
1547
|
}), p(n, "_cellRendererBottomLeftGrid", function(d) {
|
|
1548
|
-
var h = d.rowIndex, f = te(d, Po), u = n.props,
|
|
1549
|
-
return h === u.rowCount - g ?
|
|
1548
|
+
var h = d.rowIndex, f = te(d, Po), u = n.props, v = u.cellRenderer, g = u.fixedRowCount;
|
|
1549
|
+
return h === u.rowCount - g ? w.createElement("div", { key: f.key, style: M(M({}, f.style), {}, { height: 20 }) }) : v(M(M({}, f), {}, { parent: n, rowIndex: h + g }));
|
|
1550
1550
|
}), p(n, "_cellRendererBottomRightGrid", function(d) {
|
|
1551
|
-
var h = d.columnIndex, f = d.rowIndex, u = te(d, Oo),
|
|
1552
|
-
return g(M(M({}, u), {}, { columnIndex: h +
|
|
1551
|
+
var h = d.columnIndex, f = d.rowIndex, u = te(d, Oo), v = n.props, g = v.cellRenderer, _ = v.fixedColumnCount, S = v.fixedRowCount;
|
|
1552
|
+
return g(M(M({}, u), {}, { columnIndex: h + _, parent: n, rowIndex: f + S }));
|
|
1553
1553
|
}), p(n, "_cellRendererTopRightGrid", function(d) {
|
|
1554
|
-
var h = d.columnIndex, f = te(d, ko), u = n.props,
|
|
1555
|
-
return h === g -
|
|
1554
|
+
var h = d.columnIndex, f = te(d, ko), u = n.props, v = u.cellRenderer, g = u.columnCount, _ = u.fixedColumnCount;
|
|
1555
|
+
return h === g - _ ? w.createElement("div", { key: f.key, style: M(M({}, f.style), {}, { width: 20 }) }) : v(M(M({}, f), {}, { columnIndex: h + _, parent: n }));
|
|
1556
1556
|
}), p(n, "_columnWidthRightGrid", function(d) {
|
|
1557
|
-
var h = d.index, f = n.props, u = f.columnCount,
|
|
1558
|
-
return
|
|
1557
|
+
var h = d.index, f = n.props, u = f.columnCount, v = f.fixedColumnCount, g = f.columnWidth, _ = n.state, S = _.scrollbarSize;
|
|
1558
|
+
return _.showHorizontalScrollbar && h === u - v ? S : typeof g == "function" ? g({ index: h + v }) : g;
|
|
1559
1559
|
}), p(n, "_onScroll", function(d) {
|
|
1560
1560
|
var h = d.scrollLeft, f = d.scrollTop;
|
|
1561
1561
|
n.setState({ scrollLeft: h, scrollTop: f });
|
|
1562
1562
|
var u = n.props.onScroll;
|
|
1563
1563
|
u && u(d);
|
|
1564
1564
|
}), p(n, "_onScrollbarPresenceChange", function(d) {
|
|
1565
|
-
var h = d.horizontal, f = d.size, u = d.vertical,
|
|
1566
|
-
if (h !== g || u !==
|
|
1565
|
+
var h = d.horizontal, f = d.size, u = d.vertical, v = n.state, g = v.showHorizontalScrollbar, _ = v.showVerticalScrollbar;
|
|
1566
|
+
if (h !== g || u !== _) {
|
|
1567
1567
|
n.setState({ scrollbarSize: f, showHorizontalScrollbar: h, showVerticalScrollbar: u });
|
|
1568
1568
|
var S = n.props.onScrollbarPresenceChange;
|
|
1569
1569
|
typeof S == "function" && S({ horizontal: h, size: f, vertical: u });
|
|
@@ -1575,8 +1575,8 @@ var ye = (function() {
|
|
|
1575
1575
|
var h = d.scrollTop;
|
|
1576
1576
|
n._onScroll({ scrollTop: h, scrollLeft: n.state.scrollLeft });
|
|
1577
1577
|
}), p(n, "_rowHeightBottomGrid", function(d) {
|
|
1578
|
-
var h = d.index, f = n.props, u = f.fixedRowCount,
|
|
1579
|
-
return
|
|
1578
|
+
var h = d.index, f = n.props, u = f.fixedRowCount, v = f.rowCount, g = f.rowHeight, _ = n.state, S = _.scrollbarSize;
|
|
1579
|
+
return _.showVerticalScrollbar && h === v - u ? S : typeof g == "function" ? g({ index: h + u }) : g;
|
|
1580
1580
|
}), p(n, "_topLeftGridRef", function(d) {
|
|
1581
1581
|
n._topLeftGrid = d;
|
|
1582
1582
|
}), p(n, "_topRightGridRef", function(d) {
|
|
@@ -1585,7 +1585,7 @@ var ye = (function() {
|
|
|
1585
1585
|
var a = e.deferredMeasurementCache, s = e.fixedColumnCount, c = e.fixedRowCount;
|
|
1586
1586
|
return n._maybeCalculateCachedStyles(!0), a && (n._deferredMeasurementCacheBottomLeftGrid = c > 0 ? new Se({ cellMeasurerCache: a, columnIndexOffset: 0, rowIndexOffset: c }) : a, n._deferredMeasurementCacheBottomRightGrid = s > 0 || c > 0 ? new Se({ cellMeasurerCache: a, columnIndexOffset: s, rowIndexOffset: c }) : a, n._deferredMeasurementCacheTopRightGrid = s > 0 ? new Se({ cellMeasurerCache: a, columnIndexOffset: s, rowIndexOffset: 0 }) : a), n;
|
|
1587
1587
|
}
|
|
1588
|
-
return W(o,
|
|
1588
|
+
return W(o, w.PureComponent), A(o, [{ key: "forceUpdateGrids", value: function() {
|
|
1589
1589
|
this._bottomLeftGrid && this._bottomLeftGrid.forceUpdate(), this._bottomRightGrid && this._bottomRightGrid.forceUpdate(), this._topLeftGrid && this._topLeftGrid.forceUpdate(), this._topRightGrid && this._topRightGrid.forceUpdate();
|
|
1590
1590
|
} }, { key: "invalidateCellSizeAfterRender", value: function() {
|
|
1591
1591
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.columnIndex, n = t === void 0 ? 0 : t, r = e.rowIndex, i = r === void 0 ? 0 : r;
|
|
@@ -1612,7 +1612,7 @@ var ye = (function() {
|
|
|
1612
1612
|
var i = e.scrollToRow, l = te(e, Mo);
|
|
1613
1613
|
if (this._prepareForRender(), this.props.width === 0 || this.props.height === 0) return null;
|
|
1614
1614
|
var a = this.state, s = a.scrollLeft, c = a.scrollTop;
|
|
1615
|
-
return
|
|
1615
|
+
return w.createElement("div", { style: this._containerOuterStyle }, w.createElement("div", { style: this._containerTopStyle }, this._renderTopLeftGrid(l), this._renderTopRightGrid(M(M({}, l), {}, { onScroll: t, scrollLeft: s }))), w.createElement("div", { style: this._containerBottomStyle }, this._renderBottomLeftGrid(M(M({}, l), {}, { onScroll: t, scrollTop: c })), this._renderBottomRightGrid(M(M({}, l), {}, { onScroll: t, onSectionRendered: n, scrollLeft: s, scrollToColumn: r, scrollToRow: i, scrollTop: c }))));
|
|
1616
1616
|
} }, { key: "_getBottomGridHeight", value: function(e) {
|
|
1617
1617
|
return e.height - this._getTopGridHeight(e);
|
|
1618
1618
|
} }, { key: "_getLeftGridWidth", value: function(e) {
|
|
@@ -1637,48 +1637,48 @@ var ye = (function() {
|
|
|
1637
1637
|
this._deferredInvalidateColumnIndex = null, this._deferredInvalidateRowIndex = null, this.recomputeGridSize({ columnIndex: e, rowIndex: t }), this.forceUpdate();
|
|
1638
1638
|
}
|
|
1639
1639
|
} }, { key: "_maybeCalculateCachedStyles", value: function(e) {
|
|
1640
|
-
var t = this.props, n = t.columnWidth, r = t.enableFixedColumnScroll, i = t.enableFixedRowScroll, l = t.height, a = t.fixedColumnCount, s = t.fixedRowCount, c = t.rowHeight, d = t.style, h = t.styleBottomLeftGrid, f = t.styleBottomRightGrid, u = t.styleTopLeftGrid,
|
|
1641
|
-
(e ||
|
|
1640
|
+
var t = this.props, n = t.columnWidth, r = t.enableFixedColumnScroll, i = t.enableFixedRowScroll, l = t.height, a = t.fixedColumnCount, s = t.fixedRowCount, c = t.rowHeight, d = t.style, h = t.styleBottomLeftGrid, f = t.styleBottomRightGrid, u = t.styleTopLeftGrid, v = t.styleTopRightGrid, g = t.width, _ = e || l !== this._lastRenderedHeight || g !== this._lastRenderedWidth, S = e || n !== this._lastRenderedColumnWidth || a !== this._lastRenderedFixedColumnCount, y = e || s !== this._lastRenderedFixedRowCount || c !== this._lastRenderedRowHeight;
|
|
1641
|
+
(e || _ || d !== this._lastRenderedStyle) && (this._containerOuterStyle = M({ height: l, overflow: "visible", width: g }, d)), (e || _ || y) && (this._containerTopStyle = { height: this._getTopGridHeight(this.props), position: "relative", width: g }, this._containerBottomStyle = { height: l - this._getTopGridHeight(this.props), overflow: "visible", position: "relative", width: g }), (e || h !== this._lastRenderedStyleBottomLeftGrid) && (this._bottomLeftGridStyle = M({ left: 0, overflowX: "hidden", overflowY: r ? "auto" : "hidden", position: "absolute" }, h)), (e || S || f !== this._lastRenderedStyleBottomRightGrid) && (this._bottomRightGridStyle = M({ left: this._getLeftGridWidth(this.props), position: "absolute" }, f)), (e || u !== this._lastRenderedStyleTopLeftGrid) && (this._topLeftGridStyle = M({ left: 0, overflowX: "hidden", overflowY: "hidden", position: "absolute", top: 0 }, u)), (e || S || v !== this._lastRenderedStyleTopRightGrid) && (this._topRightGridStyle = M({ left: this._getLeftGridWidth(this.props), overflowX: i ? "auto" : "hidden", overflowY: "hidden", position: "absolute", top: 0 }, v)), this._lastRenderedColumnWidth = n, this._lastRenderedFixedColumnCount = a, this._lastRenderedFixedRowCount = s, this._lastRenderedHeight = l, this._lastRenderedRowHeight = c, this._lastRenderedStyle = d, this._lastRenderedStyleBottomLeftGrid = h, this._lastRenderedStyleBottomRightGrid = f, this._lastRenderedStyleTopLeftGrid = u, this._lastRenderedStyleTopRightGrid = v, this._lastRenderedWidth = g;
|
|
1642
1642
|
} }, { key: "_prepareForRender", value: function() {
|
|
1643
1643
|
this._lastRenderedColumnWidth === this.props.columnWidth && this._lastRenderedFixedColumnCount === this.props.fixedColumnCount || (this._leftGridWidth = null), this._lastRenderedFixedRowCount === this.props.fixedRowCount && this._lastRenderedRowHeight === this.props.rowHeight || (this._topGridHeight = null), this._maybeCalculateCachedStyles(), this._lastRenderedColumnWidth = this.props.columnWidth, this._lastRenderedFixedColumnCount = this.props.fixedColumnCount, this._lastRenderedFixedRowCount = this.props.fixedRowCount, this._lastRenderedRowHeight = this.props.rowHeight;
|
|
1644
1644
|
} }, { key: "_renderBottomLeftGrid", value: function(e) {
|
|
1645
1645
|
var t = e.enableFixedColumnScroll, n = e.fixedColumnCount, r = e.fixedRowCount, i = e.rowCount, l = e.hideBottomLeftGridScrollbar, a = this.state.showVerticalScrollbar;
|
|
1646
1646
|
if (!n) return null;
|
|
1647
|
-
var s = a ? 1 : 0, c = this._getBottomGridHeight(e), d = this._getLeftGridWidth(e), h = this.state.showVerticalScrollbar ? this.state.scrollbarSize : 0, f = l ? d + h : d, u =
|
|
1648
|
-
return l ?
|
|
1647
|
+
var s = a ? 1 : 0, c = this._getBottomGridHeight(e), d = this._getLeftGridWidth(e), h = this.state.showVerticalScrollbar ? this.state.scrollbarSize : 0, f = l ? d + h : d, u = w.createElement(V, U({}, e, { cellRenderer: this._cellRendererBottomLeftGrid, className: this.props.classNameBottomLeftGrid, columnCount: n, deferredMeasurementCache: this._deferredMeasurementCacheBottomLeftGrid, height: c, onScroll: t ? this._onScrollTop : void 0, ref: this._bottomLeftGridRef, rowCount: Math.max(0, i - r) + s, rowHeight: this._rowHeightBottomGrid, style: this._bottomLeftGridStyle, tabIndex: null, width: f }));
|
|
1648
|
+
return l ? w.createElement("div", { className: "BottomLeftGrid_ScrollWrapper", style: M(M({}, this._bottomLeftGridStyle), {}, { height: c, width: d, overflowY: "hidden" }) }, u) : u;
|
|
1649
1649
|
} }, { key: "_renderBottomRightGrid", value: function(e) {
|
|
1650
1650
|
var t = e.columnCount, n = e.fixedColumnCount, r = e.fixedRowCount, i = e.rowCount, l = e.scrollToColumn, a = e.scrollToRow;
|
|
1651
|
-
return
|
|
1651
|
+
return w.createElement(V, U({}, e, { cellRenderer: this._cellRendererBottomRightGrid, className: this.props.classNameBottomRightGrid, columnCount: Math.max(0, t - n), columnWidth: this._columnWidthRightGrid, deferredMeasurementCache: this._deferredMeasurementCacheBottomRightGrid, height: this._getBottomGridHeight(e), onScroll: this._onScroll, onScrollbarPresenceChange: this._onScrollbarPresenceChange, ref: this._bottomRightGridRef, rowCount: Math.max(0, i - r), rowHeight: this._rowHeightBottomGrid, scrollToColumn: l - n, scrollToRow: a - r, style: this._bottomRightGridStyle, width: this._getRightGridWidth(e) }));
|
|
1652
1652
|
} }, { key: "_renderTopLeftGrid", value: function(e) {
|
|
1653
1653
|
var t = e.fixedColumnCount, n = e.fixedRowCount;
|
|
1654
|
-
return t && n ?
|
|
1654
|
+
return t && n ? w.createElement(V, U({}, e, { className: this.props.classNameTopLeftGrid, columnCount: t, height: this._getTopGridHeight(e), ref: this._topLeftGridRef, rowCount: n, style: this._topLeftGridStyle, tabIndex: null, width: this._getLeftGridWidth(e) })) : null;
|
|
1655
1655
|
} }, { key: "_renderTopRightGrid", value: function(e) {
|
|
1656
1656
|
var t = e.columnCount, n = e.enableFixedRowScroll, r = e.fixedColumnCount, i = e.fixedRowCount, l = e.scrollLeft, a = e.hideTopRightGridScrollbar, s = this.state, c = s.showHorizontalScrollbar, d = s.scrollbarSize;
|
|
1657
1657
|
if (!i) return null;
|
|
1658
|
-
var h = c ? 1 : 0, f = this._getTopGridHeight(e), u = this._getRightGridWidth(e),
|
|
1659
|
-
a && (g = f +
|
|
1660
|
-
var S =
|
|
1661
|
-
return a ?
|
|
1658
|
+
var h = c ? 1 : 0, f = this._getTopGridHeight(e), u = this._getRightGridWidth(e), v = c ? d : 0, g = f, _ = this._topRightGridStyle;
|
|
1659
|
+
a && (g = f + v, _ = M(M({}, this._topRightGridStyle), {}, { left: 0 }));
|
|
1660
|
+
var S = w.createElement(V, U({}, e, { cellRenderer: this._cellRendererTopRightGrid, className: this.props.classNameTopRightGrid, columnCount: Math.max(0, t - r) + h, columnWidth: this._columnWidthRightGrid, deferredMeasurementCache: this._deferredMeasurementCacheTopRightGrid, height: g, onScroll: n ? this._onScrollLeft : void 0, ref: this._topRightGridRef, rowCount: i, scrollLeft: l, style: _, tabIndex: null, width: u }));
|
|
1661
|
+
return a ? w.createElement("div", { className: "TopRightGrid_ScrollWrapper", style: M(M({}, this._topRightGridStyle), {}, { height: f, width: u, overflowX: "hidden" }) }, S) : S;
|
|
1662
1662
|
} }], [{ key: "getDerivedStateFromProps", value: function(e, t) {
|
|
1663
1663
|
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;
|
|
1664
1664
|
} }]);
|
|
1665
1665
|
})();
|
|
1666
|
-
function
|
|
1666
|
+
function Ht() {
|
|
1667
1667
|
try {
|
|
1668
1668
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1669
1669
|
}));
|
|
1670
1670
|
} catch {
|
|
1671
1671
|
}
|
|
1672
|
-
return (
|
|
1672
|
+
return (Ht = function() {
|
|
1673
1673
|
return !!o;
|
|
1674
1674
|
})();
|
|
1675
1675
|
}
|
|
1676
1676
|
p(ye, "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 }), ye.propTypes = {}, se(ye), (function() {
|
|
1677
1677
|
function o(e, t) {
|
|
1678
1678
|
var n, r, i, l;
|
|
1679
|
-
return G(this, o), r = this, l = [e, t], i = I(i = o), (n = H(r,
|
|
1679
|
+
return G(this, o), r = this, l = [e, t], i = I(i = o), (n = H(r, Ht() ? Reflect.construct(i, l || [], I(r).constructor) : i.apply(r, l))).state = { clientHeight: 0, clientWidth: 0, scrollHeight: 0, scrollLeft: 0, scrollTop: 0, scrollWidth: 0 }, n._onScroll = n._onScroll.bind(n), n;
|
|
1680
1680
|
}
|
|
1681
|
-
return W(o,
|
|
1681
|
+
return W(o, w.PureComponent), A(o, [{ key: "render", value: function() {
|
|
1682
1682
|
var e = this.props.children, t = this.state, n = t.clientHeight, r = t.clientWidth, i = t.scrollHeight, l = t.scrollLeft, a = t.scrollTop, s = t.scrollWidth;
|
|
1683
1683
|
return e({ clientHeight: n, clientWidth: r, onScroll: this._onScroll, scrollHeight: i, scrollLeft: l, scrollTop: a, scrollWidth: s });
|
|
1684
1684
|
} }, { key: "_onScroll", value: function(e) {
|
|
@@ -1687,27 +1687,27 @@ p(ye, "defaultProps", { classNameBottomLeftGrid: "", classNameBottomRightGrid: "
|
|
|
1687
1687
|
} }]);
|
|
1688
1688
|
})().propTypes = {};
|
|
1689
1689
|
var le = "ASC", be = "DESC";
|
|
1690
|
-
function
|
|
1690
|
+
function Wt(o) {
|
|
1691
1691
|
var e = o.sortDirection, t = N("ReactVirtualized__Table__sortableHeaderIcon", { "ReactVirtualized__Table__sortableHeaderIcon--ASC": e === le, "ReactVirtualized__Table__sortableHeaderIcon--DESC": e === be });
|
|
1692
|
-
return
|
|
1692
|
+
return w.createElement("svg", { className: t, width: 18, height: 18, viewBox: "0 0 24 24" }, e === le ? w.createElement("path", { d: "M7 14l5-5 5 5z" }) : w.createElement("path", { d: "M7 10l5 5 5-5z" }), w.createElement("path", { d: "M0 0h24v24H0z", fill: "none" }));
|
|
1693
1693
|
}
|
|
1694
|
-
function
|
|
1694
|
+
function Dt() {
|
|
1695
1695
|
try {
|
|
1696
1696
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1697
1697
|
}));
|
|
1698
1698
|
} catch {
|
|
1699
1699
|
}
|
|
1700
|
-
return (
|
|
1700
|
+
return (Dt = function() {
|
|
1701
1701
|
return !!o;
|
|
1702
1702
|
})();
|
|
1703
1703
|
}
|
|
1704
|
-
|
|
1704
|
+
Wt.propTypes = {};
|
|
1705
1705
|
var pe = (function() {
|
|
1706
1706
|
function o() {
|
|
1707
|
-
return G(this, o), e = this, n = arguments, t = I(t = o), H(e,
|
|
1707
|
+
return G(this, o), e = this, n = arguments, t = I(t = o), H(e, Dt() ? Reflect.construct(t, n || [], I(e).constructor) : t.apply(e, n));
|
|
1708
1708
|
var e, t, n;
|
|
1709
1709
|
}
|
|
1710
|
-
return W(o,
|
|
1710
|
+
return W(o, w.Component), A(o);
|
|
1711
1711
|
})();
|
|
1712
1712
|
function it(o, e) {
|
|
1713
1713
|
var t = Object.keys(o);
|
|
@@ -1730,13 +1730,13 @@ function B(o) {
|
|
|
1730
1730
|
}
|
|
1731
1731
|
return o;
|
|
1732
1732
|
}
|
|
1733
|
-
function
|
|
1733
|
+
function jt() {
|
|
1734
1734
|
try {
|
|
1735
1735
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1736
1736
|
}));
|
|
1737
1737
|
} catch {
|
|
1738
1738
|
}
|
|
1739
|
-
return (
|
|
1739
|
+
return (jt = function() {
|
|
1740
1740
|
return !!o;
|
|
1741
1741
|
})();
|
|
1742
1742
|
}
|
|
@@ -1747,15 +1747,15 @@ p(pe, "defaultProps", { cellDataGetter: function(o) {
|
|
|
1747
1747
|
var e = o.cellData;
|
|
1748
1748
|
return e == null ? "" : String(e);
|
|
1749
1749
|
}, defaultSortDirection: le, flexGrow: 0, flexShrink: 1, headerRenderer: function(o) {
|
|
1750
|
-
var e = o.dataKey, t = o.label, n = o.sortBy, r = o.sortDirection, i = n === e, l = [
|
|
1751
|
-
return i && l.push(
|
|
1750
|
+
var e = o.dataKey, t = o.label, n = o.sortBy, r = o.sortDirection, i = n === e, l = [w.createElement("span", { className: "ReactVirtualized__Table__headerTruncatedText", key: "label", title: typeof t == "string" ? t : null }, t)];
|
|
1751
|
+
return i && l.push(w.createElement(Wt, { key: "SortIndicator", sortDirection: r })), l;
|
|
1752
1752
|
}, style: {} }), pe.propTypes = {};
|
|
1753
1753
|
var ze = (function() {
|
|
1754
1754
|
function o(e) {
|
|
1755
1755
|
var t, n, r, i;
|
|
1756
|
-
return G(this, o), n = this, i = [e], r = I(r = o), (t = H(n,
|
|
1756
|
+
return G(this, o), n = this, i = [e], r = I(r = o), (t = H(n, jt() ? Reflect.construct(r, i || [], I(n).constructor) : r.apply(n, i))).state = { scrollbarWidth: 0 }, t._createColumn = t._createColumn.bind(t), t._createRow = t._createRow.bind(t), t._onScroll = t._onScroll.bind(t), t._onSectionRendered = t._onSectionRendered.bind(t), t._setRef = t._setRef.bind(t), t._setGridElementRef = t._setGridElementRef.bind(t), t;
|
|
1757
1757
|
}
|
|
1758
|
-
return W(o,
|
|
1758
|
+
return W(o, w.PureComponent), A(o, [{ key: "forceUpdateGrid", value: function() {
|
|
1759
1759
|
this.Grid && this.Grid.forceUpdate();
|
|
1760
1760
|
} }, { key: "getOffsetForRow", value: function(e) {
|
|
1761
1761
|
var t = e.alignment, n = e.index;
|
|
@@ -1788,38 +1788,38 @@ var ze = (function() {
|
|
|
1788
1788
|
} }, { key: "componentDidUpdate", value: function() {
|
|
1789
1789
|
this._setScrollbarWidth();
|
|
1790
1790
|
} }, { key: "render", value: function() {
|
|
1791
|
-
var e = this, t = this.props, n = t.children, r = t.className, i = t.disableHeader, l = t.gridClassName, a = t.gridStyle, s = t.headerHeight, c = t.headerRowRenderer, d = t.height, h = t.id, f = t.noRowsRenderer, u = t.rowClassName,
|
|
1792
|
-
return this._cachedColumnStyles = [],
|
|
1791
|
+
var e = this, t = this.props, n = t.children, r = t.className, i = t.disableHeader, l = t.gridClassName, a = t.gridStyle, s = t.headerHeight, c = t.headerRowRenderer, d = t.height, h = t.id, f = t.noRowsRenderer, u = t.rowClassName, v = t.rowStyle, g = t.scrollToIndex, _ = t.style, S = t.width, y = this.state.scrollbarWidth, m = i ? d : d - s, C = typeof u == "function" ? u({ index: -1 }) : u, x = typeof v == "function" ? v({ index: -1 }) : v;
|
|
1792
|
+
return this._cachedColumnStyles = [], w.Children.toArray(n).forEach(function(R, b) {
|
|
1793
1793
|
var z = e._getFlexStyleForColumn(R, R.props.style || pe.defaultProps.style);
|
|
1794
1794
|
e._cachedColumnStyles[b] = B({ overflow: "hidden" }, z);
|
|
1795
|
-
}),
|
|
1795
|
+
}), w.createElement("div", { "aria-label": this.props["aria-label"], "aria-labelledby": this.props["aria-labelledby"], "aria-colcount": w.Children.toArray(n).length, "aria-rowcount": this.props.rowCount, className: N("ReactVirtualized__Table", r), id: h, role: "grid", style: _ }, !i && c({ className: N("ReactVirtualized__Table__headerRow", C), columns: this._getHeaderColumns(), style: B({ height: s, overflow: "hidden", paddingRight: y, width: S }, x) }), w.createElement(V, U({}, this.props, { elementRef: this._setGridElementRef, "aria-readonly": null, autoContainerWidth: !0, className: N("ReactVirtualized__Table__Grid", l), cellRenderer: this._createRow, columnWidth: S, columnCount: 1, height: m, id: void 0, noContentRenderer: f, onScroll: this._onScroll, onSectionRendered: this._onSectionRendered, ref: this._setRef, role: "rowgroup", scrollbarWidth: y, scrollToRow: g, style: B(B({}, a), {}, { overflowX: "hidden" }) })));
|
|
1796
1796
|
} }, { key: "_createColumn", value: function(e) {
|
|
1797
|
-
var t = e.column, n = e.columnIndex, r = e.isScrolling, i = e.parent, l = e.rowData, a = e.rowIndex, s = this.props.onColumnClick, c = t.props, d = c.cellDataGetter, h = c.cellRenderer, f = c.className, u = c.columnData,
|
|
1798
|
-
return
|
|
1799
|
-
s && s({ columnData: u, dataKey:
|
|
1800
|
-
}, role: "gridcell", style: S, title: y },
|
|
1797
|
+
var t = e.column, n = e.columnIndex, r = e.isScrolling, i = e.parent, l = e.rowData, a = e.rowIndex, s = this.props.onColumnClick, c = t.props, d = c.cellDataGetter, h = c.cellRenderer, f = c.className, u = c.columnData, v = c.dataKey, g = c.id, _ = h({ cellData: d({ columnData: u, dataKey: v, rowData: l }), columnData: u, columnIndex: n, dataKey: v, isScrolling: r, parent: i, rowData: l, rowIndex: a }), S = this._cachedColumnStyles[n], y = typeof _ == "string" ? _ : null;
|
|
1798
|
+
return w.createElement("div", { "aria-colindex": n + 1, "aria-describedby": g, className: N("ReactVirtualized__Table__rowColumn", f), key: "Row" + a + "-Col" + n, onClick: function(m) {
|
|
1799
|
+
s && s({ columnData: u, dataKey: v, event: m });
|
|
1800
|
+
}, role: "gridcell", style: S, title: y }, _);
|
|
1801
1801
|
} }, { key: "_createHeader", value: function(e) {
|
|
1802
|
-
var t, n, r, i, l, a = e.column, s = e.index, c = this.props, d = c.headerClassName, h = c.headerStyle, f = c.onHeaderClick, u = c.sort,
|
|
1802
|
+
var t, n, r, i, l, a = e.column, s = e.index, c = this.props, d = c.headerClassName, h = c.headerStyle, f = c.onHeaderClick, u = c.sort, v = c.sortBy, g = c.sortDirection, _ = a.props, S = _.columnData, y = _.dataKey, m = _.defaultSortDirection, C = _.disableSort, x = _.headerRenderer, R = _.id, b = _.label, z = !C && u, T = N("ReactVirtualized__Table__headerColumn", d, a.props.headerClassName, { ReactVirtualized__Table__sortableHeaderColumn: z }), O = this._getFlexStyleForColumn(a, B(B({}, h), a.props.headerStyle)), k = x({ columnData: S, dataKey: y, disableSort: C, label: b, sortBy: v, sortDirection: g });
|
|
1803
1803
|
if (z || f) {
|
|
1804
|
-
var P =
|
|
1805
|
-
z && u({ defaultSortDirection:
|
|
1804
|
+
var P = v !== y ? m : g === be ? le : be, E = function(j) {
|
|
1805
|
+
z && u({ defaultSortDirection: m, event: j, sortBy: y, sortDirection: P }), f && f({ columnData: S, dataKey: y, event: j });
|
|
1806
1806
|
};
|
|
1807
1807
|
l = a.props["aria-label"] || b || y, i = "none", r = 0, t = E, n = function(j) {
|
|
1808
1808
|
j.key !== "Enter" && j.key !== " " || E(j);
|
|
1809
1809
|
};
|
|
1810
1810
|
}
|
|
1811
|
-
return
|
|
1811
|
+
return v === y && (i = g === le ? "ascending" : "descending"), w.createElement("div", { "aria-label": l, "aria-sort": i, className: T, id: R, key: "Header-Col" + s, onClick: t, onKeyDown: n, role: "columnheader", style: O, tabIndex: r }, k);
|
|
1812
1812
|
} }, { key: "_createRow", value: function(e) {
|
|
1813
|
-
var t = this, n = e.rowIndex, r = e.isScrolling, i = e.key, l = e.parent, a = e.style, s = this.props, c = s.children, d = s.onRowClick, h = s.onRowDoubleClick, f = s.onRowRightClick, u = s.onRowMouseOver,
|
|
1814
|
-
return t._createColumn({ column: O, columnIndex: k, isScrolling: r, parent: l, rowData: R, rowIndex: n, scrollbarWidth:
|
|
1815
|
-
}), z = N("ReactVirtualized__Table__row",
|
|
1816
|
-
return S({ className: z, columns: b, index: n, isScrolling: r, key: i, onRowClick: d, onRowDoubleClick: h, onRowRightClick: f, onRowMouseOver: u, onRowMouseOut:
|
|
1813
|
+
var t = this, n = e.rowIndex, r = e.isScrolling, i = e.key, l = e.parent, a = e.style, s = this.props, c = s.children, d = s.onRowClick, h = s.onRowDoubleClick, f = s.onRowRightClick, u = s.onRowMouseOver, v = s.onRowMouseOut, g = s.rowClassName, _ = s.rowGetter, S = s.rowRenderer, y = s.rowStyle, m = this.state.scrollbarWidth, C = typeof g == "function" ? g({ index: n }) : g, x = typeof y == "function" ? y({ index: n }) : y, R = _({ index: n }), b = w.Children.toArray(c).map(function(O, k) {
|
|
1814
|
+
return t._createColumn({ column: O, columnIndex: k, isScrolling: r, parent: l, rowData: R, rowIndex: n, scrollbarWidth: m });
|
|
1815
|
+
}), z = N("ReactVirtualized__Table__row", C), T = B(B({}, a), {}, { height: this._getRowHeight(n), overflow: "hidden", paddingRight: m }, x);
|
|
1816
|
+
return S({ className: z, columns: b, index: n, isScrolling: r, key: i, onRowClick: d, onRowDoubleClick: h, onRowRightClick: f, onRowMouseOver: u, onRowMouseOut: v, rowData: R, style: T });
|
|
1817
1817
|
} }, { key: "_getFlexStyleForColumn", value: function(e) {
|
|
1818
1818
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = "".concat(e.props.flexGrow, " ").concat(e.props.flexShrink, " ").concat(e.props.width, "px"), r = B(B({}, t), {}, { flex: n, msFlex: n, WebkitFlex: n });
|
|
1819
1819
|
return e.props.maxWidth && (r.maxWidth = e.props.maxWidth), e.props.minWidth && (r.minWidth = e.props.minWidth), r;
|
|
1820
1820
|
} }, { key: "_getHeaderColumns", value: function() {
|
|
1821
1821
|
var e = this, t = this.props, n = t.children;
|
|
1822
|
-
return (t.disableHeader ? [] :
|
|
1822
|
+
return (t.disableHeader ? [] : w.Children.toArray(n)).map(function(r, i) {
|
|
1823
1823
|
return e._createHeader({ column: r, index: i });
|
|
1824
1824
|
});
|
|
1825
1825
|
} }, { key: "_getRowHeight", value: function(e) {
|
|
@@ -1846,7 +1846,7 @@ p(ze, "defaultProps", { disableHeader: !1, estimatedRowSize: 30, headerHeight: 0
|
|
|
1846
1846
|
return null;
|
|
1847
1847
|
}, onScroll: function() {
|
|
1848
1848
|
return null;
|
|
1849
|
-
}, overscanIndicesGetter:
|
|
1849
|
+
}, overscanIndicesGetter: Pt, overscanRowCount: 10, rowRenderer: function(o) {
|
|
1850
1850
|
var e = o.className, t = o.columns, n = o.index, r = o.key, i = o.onRowClick, l = o.onRowDoubleClick, a = o.onRowMouseOut, s = o.onRowMouseOver, c = o.onRowRightClick, d = o.rowData, h = o.style, f = { "aria-rowindex": n + 1 };
|
|
1851
1851
|
return (i || l || a || s || c) && (f["aria-label"] = "row", f.tabIndex = 0, i && (f.onClick = function(u) {
|
|
1852
1852
|
return i({ event: u, index: n, rowData: d });
|
|
@@ -1858,21 +1858,21 @@ p(ze, "defaultProps", { disableHeader: !1, estimatedRowSize: 30, headerHeight: 0
|
|
|
1858
1858
|
return s({ event: u, index: n, rowData: d });
|
|
1859
1859
|
}), c && (f.onContextMenu = function(u) {
|
|
1860
1860
|
return c({ event: u, index: n, rowData: d });
|
|
1861
|
-
})),
|
|
1861
|
+
})), w.createElement("div", U({}, f, { className: e, key: r, role: "row", style: h }), t);
|
|
1862
1862
|
}, headerRowRenderer: function(o) {
|
|
1863
1863
|
var e = o.className, t = o.columns, n = o.style;
|
|
1864
|
-
return
|
|
1864
|
+
return w.createElement("div", { className: e, role: "row", style: n }, t);
|
|
1865
1865
|
}, rowStyle: {}, scrollToAlignment: "auto", scrollToIndex: -1, style: {} }), ze.propTypes = {};
|
|
1866
1866
|
var K = [], re = null, $ = null;
|
|
1867
|
-
function
|
|
1867
|
+
function Ft() {
|
|
1868
1868
|
$ && ($ = null, document.body && re != null && (document.body.style.pointerEvents = re), re = null);
|
|
1869
1869
|
}
|
|
1870
1870
|
function Lo() {
|
|
1871
|
-
|
|
1871
|
+
Ft(), K.forEach(function(o) {
|
|
1872
1872
|
return o.__resetIsScrolling();
|
|
1873
1873
|
});
|
|
1874
1874
|
}
|
|
1875
|
-
function
|
|
1875
|
+
function Nt(o) {
|
|
1876
1876
|
o.currentTarget === window && re == null && document.body && (re = document.body.style.pointerEvents, document.body.style.pointerEvents = "none"), (function() {
|
|
1877
1877
|
$ && Z($);
|
|
1878
1878
|
var e = 0;
|
|
@@ -1886,12 +1886,12 @@ function Ft(o) {
|
|
|
1886
1886
|
function lt(o, e) {
|
|
1887
1887
|
K.some(function(t) {
|
|
1888
1888
|
return t.props.scrollElement === e;
|
|
1889
|
-
}) || e.addEventListener("scroll",
|
|
1889
|
+
}) || e.addEventListener("scroll", Nt), K.push(o);
|
|
1890
1890
|
}
|
|
1891
1891
|
function st(o, e) {
|
|
1892
1892
|
(K = K.filter(function(t) {
|
|
1893
1893
|
return t !== o;
|
|
1894
|
-
})).length || (e.removeEventListener("scroll",
|
|
1894
|
+
})).length || (e.removeEventListener("scroll", Nt), $ && (Z($), Ft()));
|
|
1895
1895
|
}
|
|
1896
1896
|
var ke = function(o) {
|
|
1897
1897
|
return o === window;
|
|
@@ -1932,24 +1932,24 @@ function ut(o) {
|
|
|
1932
1932
|
}
|
|
1933
1933
|
return o;
|
|
1934
1934
|
}
|
|
1935
|
-
function
|
|
1935
|
+
function Bt() {
|
|
1936
1936
|
try {
|
|
1937
1937
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1938
1938
|
}));
|
|
1939
1939
|
} catch {
|
|
1940
1940
|
}
|
|
1941
|
-
return (
|
|
1941
|
+
return (Bt = function() {
|
|
1942
1942
|
return !!o;
|
|
1943
1943
|
})();
|
|
1944
1944
|
}
|
|
1945
|
-
var
|
|
1945
|
+
var Ut = function() {
|
|
1946
1946
|
return typeof window < "u" ? window : void 0;
|
|
1947
1947
|
}, Go = (function() {
|
|
1948
1948
|
function o() {
|
|
1949
1949
|
var e, t, n, r;
|
|
1950
1950
|
G(this, o);
|
|
1951
1951
|
for (var i = arguments.length, l = new Array(i), a = 0; a < i; a++) l[a] = arguments[a];
|
|
1952
|
-
return t = this, n = o, r = [].concat(l), n = I(n), p(e = H(t,
|
|
1952
|
+
return t = this, n = o, r = [].concat(l), n = I(n), p(e = H(t, Bt() ? Reflect.construct(n, r || [], I(t).constructor) : n.apply(t, r)), "_window", Ut()), 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", w.createRef()), p(e, "state", ut(ut({}, at(e.props.scrollElement, e.props)), {}, { isScrolling: !1, scrollLeft: 0, scrollTop: 0 })), p(e, "_registerChild", function(s) {
|
|
1953
1953
|
!s || s instanceof Element || console.warn("WindowScroller registerChild expects to be passed Element or null"), e._child = s, e.updatePosition();
|
|
1954
1954
|
}), p(e, "_onChildScroll", function(s) {
|
|
1955
1955
|
var c = s.scrollTop;
|
|
@@ -1975,7 +1975,7 @@ var Bt = function() {
|
|
|
1975
1975
|
e.setState({ isScrolling: !1 });
|
|
1976
1976
|
}), e;
|
|
1977
1977
|
}
|
|
1978
|
-
return W(o,
|
|
1978
|
+
return W(o, w.PureComponent), A(o, [{ key: "updatePosition", value: function() {
|
|
1979
1979
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.props.scrollElement, t = this.props.onResize, n = this.state, r = n.height, i = n.width, l = this._child || this._windowScrollerRef.current;
|
|
1980
1980
|
if (l instanceof Element && e) {
|
|
1981
1981
|
var a = (function(c, d) {
|
|
@@ -1983,8 +1983,8 @@ var Bt = function() {
|
|
|
1983
1983
|
var h = document.documentElement, f = oe(c), u = oe(h);
|
|
1984
1984
|
return { top: f.top - u.top, left: f.left - u.left };
|
|
1985
1985
|
}
|
|
1986
|
-
var
|
|
1987
|
-
return { top: g.top +
|
|
1986
|
+
var v = ct(d), g = oe(c), _ = oe(d);
|
|
1987
|
+
return { top: g.top + v.top - _.top, left: g.left + v.left - _.left };
|
|
1988
1988
|
})(l, e);
|
|
1989
1989
|
this._positionFromTop = a.top, this._positionFromLeft = a.left;
|
|
1990
1990
|
}
|
|
@@ -1992,7 +1992,7 @@ var Bt = function() {
|
|
|
1992
1992
|
r === s.height && i === s.width || (this.setState({ height: s.height, width: s.width }), t({ height: s.height, width: s.width })), this.props.updateScrollTopOnUpdatePosition === !0 && (this.__handleWindowScrollEvent(), this.__resetIsScrolling());
|
|
1993
1993
|
} }, { key: "componentDidMount", value: function() {
|
|
1994
1994
|
var e = this.props.scrollElement;
|
|
1995
|
-
this._detectElementResize =
|
|
1995
|
+
this._detectElementResize = wt(), this.updatePosition(e), e && (lt(this, e), this._registerResizeListener(e)), this._isMounted = !0;
|
|
1996
1996
|
} }, { key: "componentDidUpdate", value: function(e, t) {
|
|
1997
1997
|
var n = this.props.scrollElement, r = e.scrollElement;
|
|
1998
1998
|
r !== n && r != null && n != null && (this.updatePosition(n), st(this, r), lt(this, n), this._unregisterResizeListener(r), this._registerResizeListener(n));
|
|
@@ -2001,25 +2001,29 @@ var Bt = function() {
|
|
|
2001
2001
|
e && (st(this, e), this._unregisterResizeListener(e)), this._isMounted = !1;
|
|
2002
2002
|
} }, { key: "render", value: function() {
|
|
2003
2003
|
var e = this.props.children, t = this.state, n = t.isScrolling, r = t.scrollTop, i = t.scrollLeft, l = t.height, a = t.width;
|
|
2004
|
-
return
|
|
2004
|
+
return w.createElement("div", { ref: this._windowScrollerRef }, e({ onChildScroll: this._onChildScroll, registerChild: this._registerChild, height: l, isScrolling: n, scrollLeft: i, scrollTop: r, width: a }));
|
|
2005
2005
|
} }]);
|
|
2006
2006
|
})();
|
|
2007
2007
|
p(Go, "defaultProps", { onResize: function() {
|
|
2008
2008
|
}, onScroll: function() {
|
|
2009
|
-
}, scrollingResetTimeInterval: 150, scrollElement:
|
|
2010
|
-
const ne = "ReactVirtualizedDemo-flexContainer",
|
|
2011
|
-
class Ao extends
|
|
2009
|
+
}, scrollingResetTimeInterval: 150, scrollElement: Ut(), serverHeight: 0, serverWidth: 0 });
|
|
2010
|
+
const ne = "ReactVirtualizedDemo-flexContainer", Vt = "ReactVirtualizedDemo-tableRow", $t = "ReactVirtualizedDemo-tableRowHover", Te = "ReactVirtualizedDemo-tableCell", Ie = "ReactVirtualizedDemo-noClick";
|
|
2011
|
+
class Ao extends gt.PureComponent {
|
|
2012
2012
|
constructor() {
|
|
2013
2013
|
super(...arguments), this.getRowClassName = ({ index: e }) => {
|
|
2014
2014
|
const { onRowClick: t } = this.props;
|
|
2015
|
-
return me(
|
|
2016
|
-
}, this.cellRenderer = ({ cellData: e,
|
|
2017
|
-
const { columns:
|
|
2018
|
-
let
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2015
|
+
return me(Vt, ne, { [$t]: e !== -1 && t != null });
|
|
2016
|
+
}, this.cellRenderer = ({ cellData: e, rowData: t, dataKey: n, columnIndex: r, width: i }) => {
|
|
2017
|
+
const { columns: l, rowHeight: a, onRowClick: s } = this.props;
|
|
2018
|
+
let c = e, d = { height: a, paddingRight: "2px", paddingTop: "0px", paddingBottom: "0px", minWidth: `${i}px`, maxWidth: `${i}px` };
|
|
2019
|
+
if (n === "shortcut" ? c = ao(e) : n === "description" && (d = { ...d, fontSize: ".75rem", display: "block", paddingTop: "4px", paddingRight: "8px", whiteSpace: "pre-line" }), n === "label") {
|
|
2020
|
+
let h = t.icon;
|
|
2021
|
+
h && typeof h != "string" || (h = L.jsx(pt, { iconKey: h })), c = L.jsxs("div", { style: { display: "flex", alignItems: "center", gap: "8px" }, children: [h, e] });
|
|
2022
|
+
}
|
|
2023
|
+
return L.jsx(Me, { component: "div", className: me(Te, ne, { [Ie]: s == null }), variant: "body", style: d, align: r != null && l[r].numeric ? "right" : "left", children: c });
|
|
2024
|
+
}, this.headerRenderer = ({ label: e, columnIndex: t, dataKey: n, width: r }) => {
|
|
2025
|
+
const { headerHeight: i, columns: l } = this.props, a = l[t];
|
|
2026
|
+
return L.jsx(Me, { component: "div", className: me(Te, ne, Ie), variant: "head", sx: { width: r, height: i, paddingLeft: n === "label" ? "calc(16px + 8px + var(--icon-size, 1rem))" : void 0, backgroundColor: (s) => s.palette.grey[300] }, align: a.numeric ? "right" : "left", children: L.jsx("div", { children: a.label }) });
|
|
2023
2027
|
};
|
|
2024
2028
|
}
|
|
2025
2029
|
static {
|
|
@@ -2027,54 +2031,54 @@ class Ao extends pt.PureComponent {
|
|
|
2027
2031
|
}
|
|
2028
2032
|
render() {
|
|
2029
2033
|
const { columns: e, rowHeight: t, headerHeight: n, ...r } = this.props;
|
|
2030
|
-
return L.jsx(
|
|
2034
|
+
return L.jsx(xt, { children: ({ height: i, width: l }) => L.jsx(ze, { height: i, width: l, rowHeight: t, gridStyle: { direction: "inherit" }, headerHeight: n, ...r, rowClassName: this.getRowClassName, children: e.map(({ dataKey: a, width: s, widthLess: c, ...d }, h) => {
|
|
2031
2035
|
const f = c ? l - c : s;
|
|
2032
|
-
return L.jsx(pe, { style: { flex: `1 1 ${f}px` }, headerRenderer: (u) => this.headerRenderer({ ...u, width: f, columnIndex: h }), className: ne, cellDataGetter: ({ rowData: u, columnData:
|
|
2036
|
+
return L.jsx(pe, { style: { flex: `1 1 ${f}px` }, headerRenderer: (u) => this.headerRenderer({ ...u, width: f, columnIndex: h }), className: ne, cellDataGetter: ({ rowData: u, columnData: v, dataKey: g }) => u[g], cellRenderer: (u) => this.cellRenderer({ ...u, width: f, columnIndex: h }), dataKey: a, width: f, ...d }, a);
|
|
2033
2037
|
}) }) });
|
|
2034
2038
|
}
|
|
2035
2039
|
}
|
|
2036
|
-
const Eo = ht(Ao)(({ theme: o }) => ({ "& .ReactVirtualized__Table__headerRow": { ...o.direction === "rtl" && { paddingLeft: "0 !important" }, ...o.direction !== "rtl" && { paddingRight: void 0 } }, "& .ReactVirtualized__Table__Grid": { outline: "none" }, [`& .${ne}`]: { display: "flex", alignItems: "center", boxSizing: "border-box" }, [`& .${
|
|
2040
|
+
const Eo = ht(Ao)(({ theme: o }) => ({ "& .ReactVirtualized__Table__headerRow": { ...o.direction === "rtl" && { paddingLeft: "0 !important" }, ...o.direction !== "rtl" && { paddingRight: void 0 } }, "& .ReactVirtualized__Table__Grid": { outline: "none" }, [`& .${ne}`]: { display: "flex", alignItems: "center", boxSizing: "border-box" }, [`& .${Vt}`]: { cursor: "pointer" }, [`& .${$t}`]: { "&:hover:not([disabled])": { backgroundColor: o.palette.grey[200] } }, [`& .${Te}`]: { flex: 1 }, [`& .${Ie}`]: { cursor: "initial" } }));
|
|
2037
2041
|
function Ho(o) {
|
|
2038
|
-
const { commands: e, ...t } = o, [n, r] =
|
|
2042
|
+
const { commands: e, ...t } = o, [n, r] = w.useState(!1), [i, l] = w.useState(""), a = w.useMemo(() => {
|
|
2039
2043
|
let u = e.getAllCommands();
|
|
2040
|
-
n || (u = u.filter((
|
|
2041
|
-
const
|
|
2042
|
-
`);
|
|
2043
|
-
for (let
|
|
2044
|
-
const
|
|
2045
|
-
if (Array.isArray(
|
|
2046
|
-
const
|
|
2047
|
-
for (let
|
|
2048
|
-
} else
|
|
2044
|
+
n || (u = u.filter((S) => S.command.shortcut())), u.sort((S, y) => S.command.label().localeCompare(y.command.label()));
|
|
2045
|
+
const v = [], g = (S) => S.replace(/\n\n/g, `
|
|
2046
|
+
`), _ = u.length;
|
|
2047
|
+
for (let S = 0; S < _; S++) {
|
|
2048
|
+
const y = u[S].command, m = y.shortcut();
|
|
2049
|
+
if (Array.isArray(m)) {
|
|
2050
|
+
const C = m, x = C.length;
|
|
2051
|
+
for (let R = 0; R < x; R++) v.push({ label: y.label(), icon: y.icon(), description: g(y.description()), shortcut: C[R] });
|
|
2052
|
+
} else v.push({ label: y.label(), icon: y.icon(), description: g(y.description()), shortcut: y.shortcut() });
|
|
2049
2053
|
}
|
|
2050
|
-
return
|
|
2051
|
-
}, [n, e]), [s, c] =
|
|
2052
|
-
|
|
2053
|
-
import("./
|
|
2054
|
+
return v;
|
|
2055
|
+
}, [n, e]), [s, c] = w.useState(null);
|
|
2056
|
+
w.useEffect(() => {
|
|
2057
|
+
import("./YMtZzDjMWgR3_4eN.mjs").then((u) => {
|
|
2054
2058
|
c(new u.default(a, { threshold: 0, ignoreLocation: !0, keys: ["label", "description"] }));
|
|
2055
2059
|
});
|
|
2056
2060
|
}, [a]);
|
|
2057
|
-
const [d, h] =
|
|
2058
|
-
return
|
|
2059
|
-
s &&
|
|
2061
|
+
const [d, h] = w.useState(a), f = i.length > 0 && d.length === 0;
|
|
2062
|
+
return w.useEffect(() => {
|
|
2063
|
+
s && to.debounce(() => {
|
|
2060
2064
|
if (i.trim().length === 0) return void h(a);
|
|
2061
|
-
const u = s.search(i.trim()),
|
|
2062
|
-
for (let g = 0; g < u.length; g++)
|
|
2063
|
-
h(
|
|
2065
|
+
const u = s.search(i.trim()), v = new Array(u.length);
|
|
2066
|
+
for (let g = 0; g < u.length; g++) v[g] = u[g].item;
|
|
2067
|
+
h(v);
|
|
2064
2068
|
}, 90)();
|
|
2065
|
-
}, [s, i]), L.jsxs(ae, { style: { height: 440, width: "100%", display: "flex", flexDirection: "column" }, ...t, children: [L.jsxs(ae, { sx: { display: "flex", alignItems: "center", justifyContent: "end", marginBottom: (u) => u.spacing(2), color: (u) => u.palette.text.secondary }, children: [L.jsx(
|
|
2069
|
+
}, [s, i]), L.jsxs(ae, { style: { height: 440, width: "100%", display: "flex", flexDirection: "column" }, ...t, children: [L.jsxs(ae, { sx: { display: "flex", alignItems: "center", justifyContent: "end", marginBottom: (u) => u.spacing(2), color: (u) => u.palette.text.secondary }, children: [L.jsx(oo, { slotProps: { input: { sx: { backgroundImage: `linear-gradient(${ce("#fff", de(5))}, ${ce("#fff", de(5))})` }, endAdornment: L.jsx(no, { sx: { opacity: i.length > 0 ? 1 : 0, display: i.length > 0 ? "flex" : "none" }, position: "end", children: L.jsx(ro, { "aria-label": "clear search", onClick: () => l(""), edge: "end", children: L.jsx(pt, { iconKey: "Close" }) }) }) }, htmlInput: { 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) } } }, sx: { flex: "1 1 40%", marginRight: (u) => u.spacing(1), "& .MuiOutlinedInput-notchedOutline": { borderColor: (u) => f ? `${u.palette.error.main} !important` : void 0 }, "& .MuiInputLabel-outlined": { color: (u) => f ? `${u.palette.error.main} !important` : void 0 } }, value: i, onChange: (u) => {
|
|
2066
2070
|
l(u.target.value);
|
|
2067
2071
|
}, onKeyDown: (u) => {
|
|
2068
2072
|
u.which === ft.Escape && i.length > 0 && (l(""), u.stopPropagation(), u.preventDefault());
|
|
2069
2073
|
}, onContextMenu: (u) => {
|
|
2070
2074
|
u.stopPropagation();
|
|
2071
|
-
} }), L.jsx(io, { sx: { flex: "1 1 60%" }, control: L.jsx(lo, { checked: n, onChange: () => r(!n) }), label: "Show commands without key bindings", labelPlacement: "start" })] }), L.jsx(ae, { 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(${ce("#fff", de(5))}, ${ce("#fff", de(5))})` } }, children: L.jsx(Eo, { rowCount: d.length, rowGetter: (u) => d[u.index], columns: [{ width:
|
|
2075
|
+
} }), L.jsx(io, { sx: { flex: "1 1 60%" }, control: L.jsx(lo, { checked: n, onChange: () => r(!n) }), label: "Show commands without key bindings", labelPlacement: "start" })] }), L.jsx(ae, { 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(${ce("#fff", de(5))}, ${ce("#fff", de(5))})` } }, children: L.jsx(Eo, { rowCount: d.length, rowGetter: (u) => d[u.index], columns: [{ width: 214, label: "Command", dataKey: "label" }, { width: 226, label: "Key Binding", dataKey: "shortcut" }, { label: "Description", dataKey: "description", widthLess: 453 }] }) }), L.jsx(ae, { 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: L.jsx(so, { noWrap: !0, component: "div", sx: { color: (u) => f ? u.palette.error.main : u.palette.text.secondary }, children: `${d.length === 0 ? "No" : d.length} shortcut key${d.length === 1 ? "" : "s"}${i.length > 0 ? " found" : ""}` }) })] });
|
|
2072
2076
|
}
|
|
2073
2077
|
const Do = (o) => {
|
|
2074
2078
|
const { title: e = "Shortcut Keys", commands: t, sx: n, ...r } = o;
|
|
2075
|
-
return L.jsx(
|
|
2079
|
+
return L.jsx(Qt, { isModal: !0, onKeyDown: (i) => {
|
|
2076
2080
|
i.keyCode === ft.F1 && i.preventDefault();
|
|
2077
|
-
}, sx: { width: "780px", ...n }, title: e, autoFocusSel: ".input", ...r, children: L.jsx(
|
|
2081
|
+
}, sx: { width: "780px", ...n }, title: e, autoFocusSel: ".input", ...r, children: L.jsx(eo, { dividers: !0, children: L.jsx(Ho, { commands: t, sx: { marginBottom: "8px" } }) }) });
|
|
2078
2082
|
};
|
|
2079
2083
|
export {
|
|
2080
2084
|
Do as default
|