@sheetxl/studio-vanilla 0.7.9 → 0.7.10
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/{BzWBS9dKcCw5_3VL.cjs → 8RfiafCVuvalyWgG.cjs} +1 -1
- package/browser/cjs/{DtcVgpdytT29BDrX.cjs → A2sMA1rkxY2C4imP.cjs} +1 -1
- package/browser/cjs/{ax00EVAzg1-wEeli.cjs → B6uycsDeyWfXd30N.cjs} +1 -1
- package/browser/cjs/{D8X6TP0dbfp_I68L.cjs → B8LS7_xuiRLqiz39.cjs} +2 -2
- package/browser/cjs/{4HQQsZp_Dtpou5d-.cjs → BGVhZTZCsB43TTwA.cjs} +1 -1
- package/browser/cjs/{DWnnzbiYZqMYfOtO.cjs → BLBn-CLuulR6I2Ga.cjs} +2 -2
- package/browser/cjs/{BZ7A3G8yvWBEbPQg.cjs → BS1TrhHmuCvzVnwe.cjs} +1 -1
- package/browser/cjs/{B3zn4UACSeM23IZD.cjs → BSYX8XwNn0_At72M.cjs} +1 -1
- package/browser/cjs/{Dyfld4qTyM2o0k8p.cjs → BkcYqE4Mg0roejM4.cjs} +19 -19
- package/browser/cjs/{DMkg41_NWFmCCTPS.cjs → BwLSPp7eayMgYH4t.cjs} +2 -2
- package/browser/cjs/{gGyygQPVOUdpU2hb.cjs → BwUirvy83NgauAe_.cjs} +1 -1
- package/browser/cjs/{v6JQur9NiLDO0Ktv.cjs → C2Ym9o2UyGdPMpGF.cjs} +1 -1
- package/browser/cjs/{D55IuXpDG_yOqLOr.cjs → CEjYsjf5rhuYUZBY.cjs} +1 -1
- package/browser/cjs/{DoIc8TRrn9BXtvZS.cjs → CFbyIOIIDflCG8xf.cjs} +2 -2
- package/browser/cjs/{DBIXaKPrKqoX5Ej0.cjs → CI-SIObGARYLlaD0.cjs} +1 -1
- package/browser/cjs/{Dd6hGYHS3cbMBbXA.cjs → CJ6ep0mCcKwe-K6x.cjs} +1 -1
- package/browser/cjs/CN4kAKDbbc5vx7ze.cjs +6 -0
- package/browser/cjs/{B1b4yakNGFFm6RKb.cjs → CQrPirttQBD2oFlH.cjs} +1 -1
- package/browser/cjs/CU6n-o9BpYTLqmrY.cjs +11 -0
- package/browser/cjs/{fsmwv8vXa5GMorQG.cjs → CVirc38g7rX4naWE.cjs} +1 -1
- package/browser/cjs/{CvShkDwGyhYRrNiN.cjs → Chn3GBWzbmL5oSIb.cjs} +1 -1
- package/browser/cjs/{B17LiG4dyBmP6TrN.cjs → CmkLGqQl06XTkl2M.cjs} +4 -4
- package/browser/cjs/{BuXXymW3NvKvPMkQ.cjs → CnErGY1yxFa4tbhh.cjs} +2 -2
- package/browser/cjs/{VCKB7r9Cy9W_Y2eC.cjs → CsTewh7bEYZ5WE9U.cjs} +7 -7
- package/browser/cjs/{DXz9_M2oCUFeOvd6.cjs → CwJonjnwEq4xJqkh.cjs} +1 -1
- package/browser/cjs/{BSNMVqk1t0UhVqdb.cjs → CyIkHwcwTWN17li5.cjs} +1 -1
- package/browser/cjs/{BLkZ10BgGSKfXn8i.cjs → D1gnAsTKRtDyWDp5.cjs} +2 -2
- package/browser/cjs/{Bi3eyLr3xw96w_Ec.cjs → D6BPthEVXFKI4EuF.cjs} +1 -1
- package/browser/cjs/{DdQwp9nBpZcoIdAJ.cjs → DBBW-RCAhmWrWfDZ.cjs} +1 -1
- package/browser/cjs/{CFajgGuqITaobO3F.cjs → DEunIC6P9scgWw1P.cjs} +3 -3
- package/browser/cjs/{Dy8reGDChpxfnCJ_.cjs → DK6kyoOWh-JARjgf.cjs} +2 -2
- package/browser/cjs/{mphO2n0YWLCwl-y3.cjs → DNCTKUi0YOVTayYE.cjs} +8 -8
- package/browser/cjs/DU1ovF3blyLu7Vpl.cjs +6 -0
- package/browser/cjs/{DaQSG2NK8zorWz4p.cjs → DX5CowMMCd9GCv4f.cjs} +3 -3
- package/browser/cjs/{C-hbHl6SPjfJFws_.cjs → DcUyMcC3dlHUZl4L.cjs} +1 -1
- package/browser/cjs/{28ueRdtTlxneL0gM.cjs → DcpYpFxUS3nhucCH.cjs} +2 -2
- package/browser/cjs/{-jRNNdUXwoXaLfLk.cjs → DeGuXojfhauTW29M.cjs} +2 -2
- package/browser/cjs/{DRWk3O67719LopNw.cjs → DiiaRC786jf-ic4p.cjs} +1 -1
- package/browser/cjs/{DxEYABfvkvMQXjkd.cjs → DmPC8C_CNdahQl0b.cjs} +1 -1
- package/browser/cjs/{DzdNT91Z6wp2t1ln.cjs → DrSYCVmQNqWJPApL.cjs} +3 -3
- package/browser/cjs/{CsXxIP9lLu9aFL3J.cjs → Gtbnzd4B9f1DIKAU.cjs} +1 -1
- package/browser/cjs/{CpuJvPRM-ZfIbNLP.cjs → Pm0_WqtObuxp-EuT.cjs} +1 -1
- package/browser/cjs/{DsvmywyXGwBNM-Zk.cjs → RZjOTUkBjANiPQLN.cjs} +1 -1
- package/browser/cjs/{LmL4erfidoyTg6Rn.cjs → RjrLHqUK_EdTAiSS.cjs} +4 -4
- package/browser/cjs/{4602FFTU0gpad3xf.cjs → a64ODK1QnL34lHpX.cjs} +1 -1
- package/browser/cjs/{Ddyt1ktuWSMrEkIX.cjs → bPlEup1_WNEt_RwV.cjs} +2 -2
- package/browser/cjs/{Cae33-B3bPeB4Lry.cjs → dzwDCMIhgcZc9cbb.cjs} +1 -1
- package/browser/cjs/{BeKopOONXyBBKG_1.cjs → eov1JMx2WBMhdpoJ.cjs} +2 -2
- package/browser/cjs/{BH4rNjGU9wYFc-uC.cjs → eu-ZFKAZZ7B6uk1x.cjs} +1 -1
- package/browser/cjs/{2KLpsnKefVyEmZ2O.cjs → ewAfXUp0y0GHQf37.cjs} +1 -1
- package/browser/cjs/{zbjyZT6o6ykMIKBr.cjs → hkiktbu43dbh7QWI.cjs} +1 -1
- package/browser/cjs/{BtXW0ExoOeHBxuRe.cjs → iNwxwTjW5q41Gklb.cjs} +2 -2
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/kNEruqqvNqSMEAzQ.cjs +327 -0
- package/browser/cjs/{C7XUWFBNagw3WqkA.cjs → r2nncfSTgk8IoVXa.cjs} +5 -5
- package/browser/cjs/{BO3zSl1fYMj4HEPM.cjs → vx0u0BKzwHXjkFOr.cjs} +1 -1
- package/browser/cjs/{C3Fhn8b2S1z6xZCM.cjs → xnY4O4rqueY08rpT.cjs} +1 -1
- package/browser/cjs/{w5JxRpgiKOvh5tFM.cjs → z6f40QLDeC0y99VG.cjs} +1 -1
- package/{cdn/assets/Ql3e_vvI0FI2W43h.js → browser/esm/38k3YnsYUefZ1KgM.mjs} +2 -2
- package/browser/esm/7mwDc5DIxFaeIWKF.mjs +48 -0
- package/{cdn/assets/CyAL0Nk6PrxryVRw.js → browser/esm/AbjhUeTNR-U8qKZd.mjs} +1 -1
- package/browser/esm/{pRXKDt8_bIadmeiR.mjs → B5M-s1vNMxf-NkNs.mjs} +1 -1
- package/browser/esm/{BRcmFAIQ2SPbJ-XM.mjs → B5_mlhtTkaqvQKMh.mjs} +7 -7
- package/browser/esm/{CqqOAWyXxM1Y7xHg.mjs → B9cPVUQiue_I563s.mjs} +2 -2
- package/browser/esm/{DCGMWZ69nZwmiyhn.mjs → B9miygVhYR02HXbg.mjs} +1 -1
- package/browser/esm/{CfnYVg2Fcignoanv.mjs → BC2iutbmE7Q2bHNb.mjs} +1 -1
- package/browser/esm/{D31oMNVEevFiSSu3.mjs → BDCQh_NtcP3UtNFO.mjs} +1 -1
- package/browser/esm/{CbWw3rzixUR8EDhs.mjs → BEhiMpe9sj2HllDD.mjs} +2 -2
- package/{cdn/assets/BOTc2W6k6GWqCVcp.js → browser/esm/BFVNKOKUJHGXx3_N.mjs} +1 -1
- package/browser/esm/{CHKwHt2qLiyuOTYD.mjs → BK06ihtf1I-_67oo.mjs} +6 -6
- package/{cdn/assets/DTiWq6c6dIhO7q3w.js → browser/esm/BNEk0-9ePYVYTTS4.mjs} +2 -2
- package/browser/esm/{D9mNgZwIB18h1gd3.mjs → BNQAmohXUIzw05d1.mjs} +1 -1
- package/browser/esm/{Bd8Yvpc8OayD21zg.mjs → BPdip6dtPdYr7KkR.mjs} +1 -1
- package/browser/esm/{J1nGYMTPHDl0Dtk1.mjs → BQaQHVsou6-pv9Ju.mjs} +2 -2
- package/browser/esm/{BRQ5s5G8SIeFcq2K.mjs → BXfFV2BdBlhgkv9G.mjs} +1 -1
- package/{cdn/assets/PhwSfaFQy7vsmHQH.js → browser/esm/BYMb2NO7eaBtRT3r.mjs} +1 -1
- package/browser/esm/{BC4z07NIqrag6LK1.mjs → BcUhpG_sMmRcqqQs.mjs} +1 -1
- package/browser/esm/{Cw7cbwion0vbFHQC.mjs → BfgfgjIhYIB7Iea-.mjs} +1 -1
- package/{cdn/assets/CjNqjvPAYIJ1Txzc.js → browser/esm/BiOFFDEgChuOwhDE.mjs} +1 -1
- package/{cdn/assets/DaH--fxsswaRgEcF.js → browser/esm/Bl_TetCg54CHQqHm.mjs} +1 -1
- package/browser/esm/{Cnao9JBvOgVnFQZP.mjs → Bp9Eeb58kHoP7YGC.mjs} +2 -2
- package/{cdn/assets/CO0-isMoTEJCBD3A.js → browser/esm/BvIcikdTDlEgEQ6f.mjs} +1 -1
- package/browser/esm/{CPIVxYDjYBGrlKzN.mjs → CAOJk3YprB5zINMx.mjs} +1 -1
- package/browser/esm/{DuOp_v2dInrQQz2J.mjs → CEmFDYC7bYojak4f.mjs} +2 -2
- package/browser/esm/{CyiZ9q3nsOxuzkPs.mjs → CQ8dCPE-ihoMrQAl.mjs} +1 -1
- package/browser/esm/{BlRskWTo6RyVPYhw.mjs → CQv5nnKDSep6_Lrr.mjs} +3 -3
- package/{cdn/assets/DIPL9v_lUxBLj7uL.js → browser/esm/CVPNLOJ8pTObaFlz.mjs} +1 -1
- package/browser/esm/{BbFJbFt12fFxLxgW.mjs → C_3VkH0ZheZ071rN.mjs} +1 -1
- package/{cdn/assets/BitbWBCvLcgf5_k8.js → browser/esm/Cb5eiZuAiDsI8J4q.mjs} +1 -1
- package/{cdn/assets/Budczm2E0D1oDtxb.js → browser/esm/CkIGtcKufzFHfIOa.mjs} +34 -34
- package/{cdn/assets/CTnPqIJ_buVJyq7v.js → browser/esm/CltETef3jhrkecPf.mjs} +1 -1
- package/{cdn/assets/DB6k1pDUo7QnUyag.js → browser/esm/Cu_mvr8D4-6ZsoaY.mjs} +1 -1
- package/browser/esm/{BJDgDeqzt7VmeRxD.mjs → CzokFhjn3Zd8eHAV.mjs} +4 -4
- package/{cdn/assets/lgPHHQHWLWGNnYGO.js → browser/esm/Czxxkqcv2kfogbB3.mjs} +1 -1
- package/{cdn/assets/CKPAoMVPiyx_7ozH.js → browser/esm/D3Vs8usLpvWrfPaD.mjs} +1 -1
- package/{cdn/assets/JjYKx_AWKoQp1iP5.js → browser/esm/DIKQVQUhIEDd8OHB.mjs} +1 -1
- package/browser/esm/{vrPREn1FiY2DXcCj.mjs → DJ2cli9crYBDffna.mjs} +1 -1
- package/browser/esm/{B1o6XtsajKzSB_Ee.mjs → DOLR2rBtsRGjK38Q.mjs} +2 -2
- package/browser/esm/{Bq2-_FvbBSnQ1mRA.mjs → DP96oVn4D_WVyEii.mjs} +3 -3
- package/browser/esm/{CTls6jXHDizCTQqa.mjs → DUZ2FYogdfTwBU1s.mjs} +1 -1
- package/browser/esm/{DT2Nk1w2teUvSMOy.mjs → DXps-gn4Z0b70HV6.mjs} +1 -1
- package/browser/esm/{DSAXrKks652VbNll.mjs → DfOdt_g3leZhg92P.mjs} +2 -2
- package/browser/esm/{CrW2aOCLgiCxGleL.mjs → DjbsjMrDZxmueStH.mjs} +535 -530
- package/browser/esm/{_GsOJmagfG9vJ3_O.mjs → DpunkhfrdW9tMyiB.mjs} +1 -1
- package/{cdn/assets/C_XaNFGBTyUBeyCT.js → browser/esm/DsGfDyrPuOLTSGzn.mjs} +1 -1
- package/browser/esm/{CRoUrsxPF-3VB2tH.mjs → DxzUHJ6WmoMZwB7B.mjs} +11107 -11067
- package/browser/esm/{CjbmSAjgptXZOZub.mjs → FcLh9simFslbIw7z.mjs} +6 -6
- package/browser/esm/{kjrrmIaLKG4Y49Rj.mjs → KN6_FHcdgAaW1FOp.mjs} +2 -2
- package/browser/esm/index.mjs +2 -2
- package/browser/esm/{iQsD2LQQtFWVdA0k.mjs → kfVyLUlQFwMOrtte.mjs} +297 -293
- package/{cdn/assets/B2niIQY0fIjYfoM9.js → browser/esm/mcVONUsaRKHFvrNv.mjs} +1 -1
- package/browser/esm/{Cnj0U7PbRaaA2bEF.mjs → nvSrYkBMwLtC2sW6.mjs} +4 -4
- package/browser/esm/{rltHJRjXNQqhdulf.mjs → q78ROlDJASSNUTW7.mjs} +13 -13
- package/browser/esm/{Crulydg0c0mpXHIv.mjs → r9LAUwYbHSuMlTKO.mjs} +1 -1
- package/browser/esm/{BvxCl7fyU6J4RrDH.mjs → vjJjgi1zidw9mn_p.mjs} +2 -2
- package/browser/esm/{C4ESbAWre7JpSMEG.mjs → zyU823tQU2DE6Ff6.mjs} +2 -2
- package/{browser/esm/CyAL0Nk6PrxryVRw.mjs → cdn/assets/AbjhUeTNR-U8qKZd.js} +1 -1
- package/cdn/assets/{CnWk1uC-0lCbD-Xj.js → B0Ir7uCbQF3-mEU3.js} +4 -4
- package/cdn/assets/{CmJmZ1IbSjVFq_Hy.js → B5B-prjpWkwoWjie.js} +4 -4
- package/cdn/assets/{pRXKDt8_bIadmeiR.js → B5M-s1vNMxf-NkNs.js} +1 -1
- package/cdn/assets/{DU715r3dWSIxWSHJ.js → B5sObQ-xoa3R4ReP.js} +3 -3
- package/cdn/assets/{C5vXwUdGo1QPuz37.js → B7D8V6hl0pqrQbTn.js} +2 -2
- package/cdn/assets/{DCGMWZ69nZwmiyhn.js → B9miygVhYR02HXbg.js} +1 -1
- package/cdn/assets/{CQX8wcJJrnAOBgqs.js → BADnvy5bTGT8cX40.js} +7 -7
- package/cdn/assets/{NkjC32CMsHhn6YZJ.js → BAvxGh8BmrH0FQlm.js} +28 -28
- package/cdn/assets/{CfnYVg2Fcignoanv.js → BC2iutbmE7Q2bHNb.js} +1 -1
- package/cdn/assets/{D31oMNVEevFiSSu3.js → BDCQh_NtcP3UtNFO.js} +1 -1
- package/{browser/esm/BOTc2W6k6GWqCVcp.mjs → cdn/assets/BFVNKOKUJHGXx3_N.js} +1 -1
- package/cdn/assets/{BxXfkgY3YQZkihsr.js → BI9MEeqtjZ3NfNHD.js} +43 -43
- package/cdn/assets/{D9mNgZwIB18h1gd3.js → BNQAmohXUIzw05d1.js} +1 -1
- package/cdn/assets/{Bd8Yvpc8OayD21zg.js → BPdip6dtPdYr7KkR.js} +1 -1
- package/cdn/assets/{D6w3q0288dODJlma.js → BQvjW9Jty4-U9SFK.js} +3 -3
- package/cdn/assets/{BRQ5s5G8SIeFcq2K.js → BXfFV2BdBlhgkv9G.js} +1 -1
- package/{browser/esm/PhwSfaFQy7vsmHQH.mjs → cdn/assets/BYMb2NO7eaBtRT3r.js} +1 -1
- package/cdn/assets/{dLGHt7fYI2QA8zVZ.js → Bc2e5A_96EeltLb_.js} +1 -1
- package/cdn/assets/{BC4z07NIqrag6LK1.js → BcUhpG_sMmRcqqQs.js} +1 -1
- package/cdn/assets/{Cw7cbwion0vbFHQC.js → BfgfgjIhYIB7Iea-.js} +1 -1
- package/{browser/esm/CjNqjvPAYIJ1Txzc.mjs → cdn/assets/BiOFFDEgChuOwhDE.js} +1 -1
- package/cdn/assets/{B2MR39qRXcxeC2TY.js → BiSKRg5rgwN8P_b3.js} +7 -7
- package/{browser/esm/DaH--fxsswaRgEcF.mjs → cdn/assets/Bl_TetCg54CHQqHm.js} +1 -1
- package/{browser/esm/CO0-isMoTEJCBD3A.mjs → cdn/assets/BvIcikdTDlEgEQ6f.js} +1 -1
- package/cdn/assets/{CPpuNRDowyacHTZD.js → C1pxxUzCqRQ7o_0N.js} +1 -1
- package/{browser/esm/BVZ3XoT7zKr_Qy4r.mjs → cdn/assets/C8iM1Hgq_DrD3Gf0.js} +3 -3
- package/cdn/assets/{B1eWg6aDktGH7WwS.js → CAmj2oLwI3DeBBsG.js} +4 -4
- package/cdn/assets/{CAaDybJknuY5Rk4X.js → CBun3_1B9YitAgHd.js} +9 -9
- package/cdn/assets/{Dih1QKQhKyzIsly7.js → CGd5FvkBKn68xVbC.js} +2 -2
- package/cdn/assets/{DNpMIeruLey0l4fR.js → COxP66Oa4UF7vs0r.js} +2 -2
- package/cdn/assets/{CyiZ9q3nsOxuzkPs.js → CQ8dCPE-ihoMrQAl.js} +1 -1
- package/{browser/esm/DIPL9v_lUxBLj7uL.mjs → cdn/assets/CVPNLOJ8pTObaFlz.js} +1 -1
- package/cdn/assets/{BbFJbFt12fFxLxgW.js → C_3VkH0ZheZ071rN.js} +1 -1
- package/{browser/esm/BitbWBCvLcgf5_k8.mjs → cdn/assets/Cb5eiZuAiDsI8J4q.js} +1 -1
- package/{browser/esm/CTnPqIJ_buVJyq7v.mjs → cdn/assets/CltETef3jhrkecPf.js} +1 -1
- package/cdn/assets/{UdKHykZGCh2M-vBY.js → CmLC_Rn8ALwIQeJW.js} +7 -7
- package/{browser/esm/DB6k1pDUo7QnUyag.mjs → cdn/assets/Cu_mvr8D4-6ZsoaY.js} +1 -1
- package/cdn/assets/{AuxAIQlEjIRo3x4L.js → CyinLzMAW_Amnu6N.js} +4 -4
- package/{browser/esm/lgPHHQHWLWGNnYGO.mjs → cdn/assets/Czxxkqcv2kfogbB3.js} +1 -1
- package/{browser/esm/CKPAoMVPiyx_7ozH.mjs → cdn/assets/D3Vs8usLpvWrfPaD.js} +1 -1
- package/{browser/esm/JjYKx_AWKoQp1iP5.mjs → cdn/assets/DIKQVQUhIEDd8OHB.js} +1 -1
- package/cdn/assets/{vrPREn1FiY2DXcCj.js → DJ2cli9crYBDffna.js} +1 -1
- package/cdn/assets/{Nrog426oRA7TG4QM.js → DLsiLi8vx5Dfptv-.js} +299 -295
- package/cdn/assets/{BlASKis61iVryoIm.js → DNuCczMLMAIbZD23.js} +11 -11
- package/cdn/assets/{B-fEw_RqtU2JwlFR.js → DOjZi6T0-bH7nqRD.js} +2 -2
- package/cdn/assets/{CTls6jXHDizCTQqa.js → DUZ2FYogdfTwBU1s.js} +1 -1
- package/cdn/assets/{DT2Nk1w2teUvSMOy.js → DXps-gn4Z0b70HV6.js} +1 -1
- package/cdn/assets/{DQVq0WtjtMUmA_iU.js → D_zn49P7Vl2EfoIZ.js} +2 -2
- package/cdn/assets/{DyGoZdjTBNNXu9LZ.js → DamY69Nh17USJC4D.js} +15 -15
- package/cdn/assets/{D5cBSeQ7k8GlZgsV.js → Dfl2D3cYNOI5S_je.js} +4 -4
- package/cdn/assets/{CUji_8_tNWmnGxA-.js → Dlyhn7y9N6lvS2m8.js} +3 -3
- package/cdn/assets/{_GsOJmagfG9vJ3_O.js → DpunkhfrdW9tMyiB.js} +1 -1
- package/{browser/esm/C_XaNFGBTyUBeyCT.mjs → cdn/assets/DsGfDyrPuOLTSGzn.js} +1 -1
- package/cdn/assets/{KqkDMLfvKbmvpsXV.js → DwuTMIrWJCUalUcq.js} +20 -20
- package/cdn/assets/{CqfbNUobbGU7YeN6.js → LlLVEq_yWPMPI-k2.js} +4 -4
- package/cdn/assets/{CzlrfkoZCsC-jd7h.js → MlhOVOZDOPIWEne0.js} +11812 -11772
- package/{browser/esm/BcoTAKeH3O9xhPgO.mjs → cdn/assets/PKHd0iQO69iNIAx0.js} +2 -2
- package/{browser/esm/CoZ8jQyUjenp9yNL.mjs → cdn/assets/TpfdiXShlwAgtUkY.js} +2 -2
- package/cdn/assets/{DNnTxeTzLFooA_UL.js → XR4G5EYDdHGkrxmW.js} +2 -2
- package/cdn/assets/{CRpTXJTj6-teqdEk.js → Xugp6lHzQ6dLo2g4.js} +5 -5
- package/cdn/assets/{BlAVbL9PoGGN-eLF.js → lvoY5e0ca7208QtA.js} +535 -530
- package/{browser/esm/B2niIQY0fIjYfoM9.mjs → cdn/assets/mcVONUsaRKHFvrNv.js} +1 -1
- package/cdn/assets/{Crulydg0c0mpXHIv.js → r9LAUwYbHSuMlTKO.js} +1 -1
- package/cdn/index.js +2 -2
- package/cdn/loader.js +1 -1
- package/package.json +3 -3
- package/browser/cjs/Codn0RTBGbMdTfjS.cjs +0 -11
- package/browser/cjs/DjKwZTEjS8bDI6vB.cjs +0 -6
- package/browser/cjs/DmP5P4nD6s_T0R0_.cjs +0 -6
- package/browser/cjs/GPgjyt_HTe2fOhPL.cjs +0 -327
- package/browser/esm/w4952094eLDa6Dfm.mjs +0 -48
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { a as L } from "./
|
|
2
|
-
import {
|
|
3
|
-
import { r as
|
|
1
|
+
import { a as L } from "./XR4G5EYDdHGkrxmW.js";
|
|
2
|
+
import { g as Kt, f as qt, j as Xt, s as ht, m as Yt, o as X, p as Jt, q as Zt, r as Qt, v as eo, E as ft, t as to, B as ae, T as oo, x as ce, y as no, z as ro, C as pt, F as de, G as io, J as lo, K as so, L as me, P as ao, Q as co, V as N, R as U, X as uo } from "./MlhOVOZDOPIWEne0.js";
|
|
3
|
+
import { r as w, g as gt } from "./Xugp6lHzQ6dLo2g4.js";
|
|
4
4
|
/**
|
|
5
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.
|
|
5
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.10
|
|
6
6
|
*
|
|
7
7
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
8
8
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
9
9
|
*/
|
|
10
|
-
const ho =
|
|
10
|
+
const ho = w.createContext(), fo = w.createContext();
|
|
11
11
|
function po(o) {
|
|
12
|
-
return
|
|
12
|
+
return qt("MuiTableCell", o);
|
|
13
13
|
}
|
|
14
|
-
const go =
|
|
14
|
+
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) => {
|
|
15
15
|
const { ownerState: t } = o;
|
|
16
16
|
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];
|
|
17
|
-
} })(
|
|
18
|
-
${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 =
|
|
19
|
-
const t =
|
|
17
|
+
} })(Zt(({ theme: o }) => ({ ...o.typography.body2, display: "table-cell", verticalAlign: "inherit", borderBottom: o.vars ? `1px solid ${o.vars.palette.TableCell.border}` : `1px solid
|
|
18
|
+
${o.palette.mode === "light" ? 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) {
|
|
19
|
+
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";
|
|
20
20
|
let g;
|
|
21
|
-
g = i || (
|
|
22
|
-
let
|
|
23
|
-
g === "td" ?
|
|
24
|
-
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 },
|
|
21
|
+
g = i || (v ? "th" : "td");
|
|
22
|
+
let _ = a;
|
|
23
|
+
g === "td" ? _ = void 0 : !_ && v && (_ = "col");
|
|
24
|
+
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) => {
|
|
25
25
|
const { classes: R, variant: b, align: z, padding: T, size: O, stickyHeader: P } = x, k = { root: ["root", b, P && "stickyHeader", z !== "inherit" && `align${X(z)}`, T !== "normal" && `padding${X(T)}`, `size${X(O)}`] };
|
|
26
|
-
return
|
|
26
|
+
return Jt(k, po, R);
|
|
27
27
|
})(y);
|
|
28
|
-
let
|
|
29
|
-
return c && (
|
|
28
|
+
let C = null;
|
|
29
|
+
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 });
|
|
30
30
|
});
|
|
31
31
|
function G(o, e) {
|
|
32
32
|
if (!(o instanceof e)) throw new TypeError("Cannot call a class as a function");
|
|
@@ -38,7 +38,7 @@ function Y(o) {
|
|
|
38
38
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
39
39
|
})(o);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function mt(o) {
|
|
42
42
|
var e = (function(t) {
|
|
43
43
|
if (Y(t) != "object" || !t) return t;
|
|
44
44
|
var n = t[Symbol.toPrimitive];
|
|
@@ -54,7 +54,7 @@ function gt(o) {
|
|
|
54
54
|
function Le(o, e) {
|
|
55
55
|
for (var t = 0; t < e.length; t++) {
|
|
56
56
|
var n = e[t];
|
|
57
|
-
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(o,
|
|
57
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(o, mt(n.key), n);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
function A(o, e, t) {
|
|
@@ -78,18 +78,18 @@ function W(o, e) {
|
|
|
78
78
|
o.prototype = Object.create(e && e.prototype, { constructor: { value: o, writable: !0, configurable: !0 } }), Object.defineProperty(o, "prototype", { writable: !1 }), e && co(o, e);
|
|
79
79
|
}
|
|
80
80
|
function p(o, e, t) {
|
|
81
|
-
return (e =
|
|
81
|
+
return (e = mt(e)) in o ? Object.defineProperty(o, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : o[e] = t, o;
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function vt() {
|
|
84
84
|
var o = this.constructor.getDerivedStateFromProps(this.props, this.state);
|
|
85
85
|
o != null && this.setState(o);
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function _t(o) {
|
|
88
88
|
this.setState(function(e) {
|
|
89
89
|
return this.constructor.getDerivedStateFromProps(o, e) ?? null;
|
|
90
90
|
}.bind(this));
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function St(o, e) {
|
|
93
93
|
try {
|
|
94
94
|
var t = this.props, n = this.state;
|
|
95
95
|
this.props = o, this.state = e, this.__reactInternalSnapshotFlag = !0, this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(t, n);
|
|
@@ -114,9 +114,9 @@ function se(o) {
|
|
|
114
114
|
The above lifecycles should be removed. Learn more about this warning here:
|
|
115
115
|
https://fb.me/react-async-component-lifecycle-hooks`);
|
|
116
116
|
}
|
|
117
|
-
if (typeof o.getDerivedStateFromProps == "function" && (e.componentWillMount =
|
|
117
|
+
if (typeof o.getDerivedStateFromProps == "function" && (e.componentWillMount = vt, e.componentWillReceiveProps = _t), typeof e.getSnapshotBeforeUpdate == "function") {
|
|
118
118
|
if (typeof e.componentDidUpdate != "function") throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");
|
|
119
|
-
e.componentWillUpdate =
|
|
119
|
+
e.componentWillUpdate = St;
|
|
120
120
|
var a = e.componentDidUpdate;
|
|
121
121
|
e.componentDidUpdate = function(s, c, d) {
|
|
122
122
|
var h = this.__reactInternalSnapshotFlag ? this.__reactInternalSnapshot : d;
|
|
@@ -146,29 +146,29 @@ function Ae(o) {
|
|
|
146
146
|
}
|
|
147
147
|
return o;
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function yt() {
|
|
150
150
|
try {
|
|
151
151
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
152
152
|
}));
|
|
153
153
|
} catch {
|
|
154
154
|
}
|
|
155
|
-
return (
|
|
155
|
+
return (yt = function() {
|
|
156
156
|
return !!o;
|
|
157
157
|
})();
|
|
158
158
|
}
|
|
159
|
-
|
|
159
|
+
vt.__suppressDeprecationWarning = !0, _t.__suppressDeprecationWarning = !0, St.__suppressDeprecationWarning = !0;
|
|
160
160
|
var Ee = (function() {
|
|
161
161
|
function o() {
|
|
162
162
|
var e, t, n, r;
|
|
163
163
|
G(this, o);
|
|
164
164
|
for (var i = arguments.length, l = new Array(i), a = 0; a < i; a++) l[a] = arguments[a];
|
|
165
|
-
return t = this, n = o, r = [].concat(l), n = I(n), p(e = H(t,
|
|
165
|
+
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) {
|
|
166
166
|
var c = e.props, d = c.columnCount, h = c.disabled, f = c.mode, u = c.rowCount;
|
|
167
167
|
if (!h) {
|
|
168
|
-
var
|
|
168
|
+
var v = e._getScrollState(), g = v.scrollToColumn, _ = v.scrollToRow, S = e._getScrollState(), y = S.scrollToColumn, m = S.scrollToRow;
|
|
169
169
|
switch (s.key) {
|
|
170
170
|
case "ArrowDown":
|
|
171
|
-
|
|
171
|
+
m = Math.min(f === "cells" ? m + 1 : e._rowStopIndex + 1, u - 1);
|
|
172
172
|
break;
|
|
173
173
|
case "ArrowLeft":
|
|
174
174
|
y = Math.max(f === "cells" ? y - 1 : e._columnStartIndex - 1, 0);
|
|
@@ -177,21 +177,21 @@ var Ee = (function() {
|
|
|
177
177
|
y = Math.min(f === "cells" ? y + 1 : e._columnStopIndex + 1, d - 1);
|
|
178
178
|
break;
|
|
179
179
|
case "ArrowUp":
|
|
180
|
-
|
|
180
|
+
m = Math.max(f === "cells" ? m - 1 : e._rowStartIndex - 1, 0);
|
|
181
181
|
}
|
|
182
|
-
y === g &&
|
|
182
|
+
y === g && m === _ || (s.preventDefault(), e._updateScrollState({ scrollToColumn: y, scrollToRow: m }));
|
|
183
183
|
}
|
|
184
184
|
}), p(e, "_onSectionRendered", function(s) {
|
|
185
185
|
var c = s.columnStartIndex, d = s.columnStopIndex, h = s.rowStartIndex, f = s.rowStopIndex;
|
|
186
186
|
e._columnStartIndex = c, e._columnStopIndex = d, e._rowStartIndex = h, e._rowStopIndex = f;
|
|
187
187
|
}), e;
|
|
188
188
|
}
|
|
189
|
-
return W(o,
|
|
189
|
+
return W(o, w.PureComponent), A(o, [{ key: "setScrollIndexes", value: function(e) {
|
|
190
190
|
var t = e.scrollToColumn, n = e.scrollToRow;
|
|
191
191
|
this.setState({ scrollToRow: n, scrollToColumn: t });
|
|
192
192
|
} }, { key: "render", value: function() {
|
|
193
193
|
var e = this.props, t = e.className, n = e.children, r = this._getScrollState(), i = r.scrollToColumn, l = r.scrollToRow;
|
|
194
|
-
return
|
|
194
|
+
return w.createElement("div", { className: t, onKeyDown: this._onKeyDown }, n({ onSectionRendered: this._onSectionRendered, scrollToColumn: i, scrollToRow: l }));
|
|
195
195
|
} }, { key: "_getScrollState", value: function() {
|
|
196
196
|
return this.props.isControlled ? this.props : this.state;
|
|
197
197
|
} }, { key: "_updateScrollState", value: function(e) {
|
|
@@ -201,66 +201,66 @@ var Ee = (function() {
|
|
|
201
201
|
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 } }) : {};
|
|
202
202
|
} }]);
|
|
203
203
|
})();
|
|
204
|
-
function
|
|
204
|
+
function wt(o, e) {
|
|
205
205
|
var t, n, r = (t = e !== void 0 ? e : typeof window < "u" ? window : typeof self < "u" ? self : global).document !== void 0 && t.document.attachEvent;
|
|
206
206
|
if (!r) {
|
|
207
|
-
var i = (n = t.requestAnimationFrame || t.mozRequestAnimationFrame || t.webkitRequestAnimationFrame || function(
|
|
208
|
-
return t.setTimeout(
|
|
209
|
-
}, function(
|
|
210
|
-
return n(
|
|
207
|
+
var i = (n = t.requestAnimationFrame || t.mozRequestAnimationFrame || t.webkitRequestAnimationFrame || function(m) {
|
|
208
|
+
return t.setTimeout(m, 20);
|
|
209
|
+
}, function(m) {
|
|
210
|
+
return n(m);
|
|
211
211
|
}), l = (function() {
|
|
212
|
-
var
|
|
213
|
-
return function(
|
|
214
|
-
return
|
|
212
|
+
var m = t.cancelAnimationFrame || t.mozCancelAnimationFrame || t.webkitCancelAnimationFrame || t.clearTimeout;
|
|
213
|
+
return function(C) {
|
|
214
|
+
return m(C);
|
|
215
215
|
};
|
|
216
|
-
})(), a = function(
|
|
217
|
-
var
|
|
216
|
+
})(), a = function(m) {
|
|
217
|
+
var C = m.__resizeTriggers__, x = C.firstElementChild, R = C.lastElementChild, b = x.firstElementChild;
|
|
218
218
|
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;
|
|
219
|
-
}, s = function(
|
|
220
|
-
if (!(
|
|
221
|
-
var
|
|
219
|
+
}, s = function(m) {
|
|
220
|
+
if (!(m.target.className && typeof m.target.className.indexOf == "function" && m.target.className.indexOf("contract-trigger") < 0 && m.target.className.indexOf("expand-trigger") < 0)) {
|
|
221
|
+
var C = this;
|
|
222
222
|
a(this), this.__resizeRAF__ && l(this.__resizeRAF__), this.__resizeRAF__ = i(function() {
|
|
223
223
|
var x;
|
|
224
|
-
((x =
|
|
225
|
-
R.call(
|
|
224
|
+
((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) {
|
|
225
|
+
R.call(C, m);
|
|
226
226
|
}));
|
|
227
227
|
});
|
|
228
228
|
}
|
|
229
|
-
}, c = !1, d = "", h = "animationstart", f = "Webkit Moz O ms".split(" "), u = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),
|
|
230
|
-
if (
|
|
231
|
-
for (var g = 0; g < f.length; g++) if (
|
|
229
|
+
}, c = !1, d = "", h = "animationstart", f = "Webkit Moz O ms".split(" "), u = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "), v = t.document.createElement("fakeelement");
|
|
230
|
+
if (v.style.animationName !== void 0 && (c = !0), c === !1) {
|
|
231
|
+
for (var g = 0; g < f.length; g++) if (v.style[f[g] + "AnimationName"] !== void 0) {
|
|
232
232
|
d = "-" + f[g].toLowerCase() + "-", h = u[g], c = !0;
|
|
233
233
|
break;
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
|
-
var
|
|
236
|
+
var _ = "resizeanim", S = "@" + d + "keyframes " + _ + " { from { opacity: 0; } to { opacity: 0; } } ", y = d + "animation: 1ms " + _ + "; ";
|
|
237
237
|
}
|
|
238
|
-
return { addResizeListener: function(
|
|
239
|
-
if (r)
|
|
238
|
+
return { addResizeListener: function(m, C) {
|
|
239
|
+
if (r) m.attachEvent("onresize", C);
|
|
240
240
|
else {
|
|
241
|
-
if (!
|
|
242
|
-
var x =
|
|
243
|
-
R && R.position == "static" && (
|
|
241
|
+
if (!m.__resizeTriggers__) {
|
|
242
|
+
var x = m.ownerDocument, R = t.getComputedStyle(m);
|
|
243
|
+
R && R.position == "static" && (m.style.position = "relative"), (function(T) {
|
|
244
244
|
if (!T.getElementById("detectElementResize")) {
|
|
245
245
|
var O = (S || "") + ".resize-triggers { " + (y || "") + 'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }', P = T.head || T.getElementsByTagName("head")[0], k = T.createElement("style");
|
|
246
246
|
k.id = "detectElementResize", k.type = "text/css", o != null && k.setAttribute("nonce", o), k.styleSheet ? k.styleSheet.cssText = O : k.appendChild(T.createTextNode(O)), P.appendChild(k);
|
|
247
247
|
}
|
|
248
|
-
})(x),
|
|
248
|
+
})(x), m.__resizeLast__ = {}, m.__resizeListeners__ = [], (m.__resizeTriggers__ = x.createElement("div")).className = "resize-triggers";
|
|
249
249
|
var b = x.createElement("div");
|
|
250
250
|
b.className = "expand-trigger", b.appendChild(x.createElement("div"));
|
|
251
251
|
var z = x.createElement("div");
|
|
252
|
-
z.className = "contract-trigger",
|
|
253
|
-
T.animationName ==
|
|
254
|
-
},
|
|
252
|
+
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) {
|
|
253
|
+
T.animationName == _ && a(m);
|
|
254
|
+
}, m.__resizeTriggers__.addEventListener(h, m.__resizeTriggers__.__animationListener__));
|
|
255
255
|
}
|
|
256
|
-
|
|
256
|
+
m.__resizeListeners__.push(C);
|
|
257
257
|
}
|
|
258
|
-
}, removeResizeListener: function(
|
|
259
|
-
if (r)
|
|
260
|
-
else if (
|
|
261
|
-
|
|
258
|
+
}, removeResizeListener: function(m, C) {
|
|
259
|
+
if (r) m.detachEvent("onresize", C);
|
|
260
|
+
else if (m.__resizeListeners__.splice(m.__resizeListeners__.indexOf(C), 1), !m.__resizeListeners__.length) {
|
|
261
|
+
m.removeEventListener("scroll", s, !0), m.__resizeTriggers__.__animationListener__ && (m.__resizeTriggers__.removeEventListener(h, m.__resizeTriggers__.__animationListener__), m.__resizeTriggers__.__animationListener__ = null);
|
|
262
262
|
try {
|
|
263
|
-
|
|
263
|
+
m.__resizeTriggers__ = !m.removeChild(m.__resizeTriggers__);
|
|
264
264
|
} catch {
|
|
265
265
|
}
|
|
266
266
|
}
|
|
@@ -287,73 +287,73 @@ function We(o) {
|
|
|
287
287
|
}
|
|
288
288
|
return o;
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function Ct() {
|
|
291
291
|
try {
|
|
292
292
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
293
293
|
}));
|
|
294
294
|
} catch {
|
|
295
295
|
}
|
|
296
|
-
return (
|
|
296
|
+
return (Ct = function() {
|
|
297
297
|
return !!o;
|
|
298
298
|
})();
|
|
299
299
|
}
|
|
300
300
|
p(Ee, "defaultProps", { disabled: !1, isControlled: !1, mode: "edges", scrollToColumn: 0, scrollToRow: 0 }), se(Ee);
|
|
301
|
-
var
|
|
301
|
+
var xt = (function() {
|
|
302
302
|
function o() {
|
|
303
303
|
var e, t, n, r;
|
|
304
304
|
G(this, o);
|
|
305
305
|
for (var i = arguments.length, l = new Array(i), a = 0; a < i; a++) l[a] = arguments[a];
|
|
306
|
-
return t = this, n = o, r = [].concat(l), n = I(n), p(e = H(t,
|
|
306
|
+
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() {
|
|
307
307
|
var s = e.props, c = s.disableHeight, d = s.disableWidth, h = s.onResize;
|
|
308
308
|
if (e._parentNode) {
|
|
309
|
-
var f = e._parentNode.offsetHeight || 0, u = e._parentNode.offsetWidth || 0,
|
|
310
|
-
(!c && e.state.height !==
|
|
309
|
+
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 - _;
|
|
310
|
+
(!c && e.state.height !== m || !d && e.state.width !== C) && (e.setState({ height: f - S - y, width: u - g - _ }), h({ height: f, width: u }));
|
|
311
311
|
}
|
|
312
312
|
}), p(e, "_setRef", function(s) {
|
|
313
313
|
e._autoSizer = s;
|
|
314
314
|
}), e;
|
|
315
315
|
}
|
|
316
|
-
return W(o,
|
|
316
|
+
return W(o, w.Component), A(o, [{ key: "componentDidMount", value: function() {
|
|
317
317
|
var e = this.props.nonce;
|
|
318
|
-
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 =
|
|
318
|
+
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());
|
|
319
319
|
} }, { key: "componentWillUnmount", value: function() {
|
|
320
320
|
this._detectElementResize && this._parentNode && this._detectElementResize.removeResizeListener(this._parentNode, this._onResize);
|
|
321
321
|
} }, { key: "render", value: function() {
|
|
322
322
|
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 = {};
|
|
323
|
-
return r || (d.height = 0, h.height = s), i || (d.width = 0, h.width = c),
|
|
323
|
+
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));
|
|
324
324
|
} }]);
|
|
325
325
|
})();
|
|
326
|
-
function
|
|
326
|
+
function Rt() {
|
|
327
327
|
try {
|
|
328
328
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
329
329
|
}));
|
|
330
330
|
} catch {
|
|
331
331
|
}
|
|
332
|
-
return (
|
|
332
|
+
return (Rt = function() {
|
|
333
333
|
return !!o;
|
|
334
334
|
})();
|
|
335
335
|
}
|
|
336
|
-
p(
|
|
336
|
+
p(xt, "defaultProps", { onResize: function() {
|
|
337
337
|
}, disableHeight: !1, disableWidth: !1, style: {} });
|
|
338
338
|
var vo = (function() {
|
|
339
339
|
function o() {
|
|
340
340
|
var e, t, n, r;
|
|
341
341
|
G(this, o);
|
|
342
342
|
for (var i = arguments.length, l = new Array(i), a = 0; a < i; a++) l[a] = arguments[a];
|
|
343
|
-
return t = this, n = o, r = [].concat(l), n = I(n), p(e = H(t,
|
|
344
|
-
var s = e.props, c = s.cache, d = s.columnIndex, h = d === void 0 ? 0 : d, f = s.parent, u = s.rowIndex,
|
|
345
|
-
|
|
343
|
+
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() {
|
|
344
|
+
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;
|
|
345
|
+
_ === 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 }));
|
|
346
346
|
}), p(e, "_registerChild", function(s) {
|
|
347
347
|
!s || s instanceof Element || console.warn("CellMeasurer registerChild expects to be passed Element or null"), e._child.current = s, s && e._maybeMeasureCell();
|
|
348
348
|
}), e;
|
|
349
349
|
}
|
|
350
|
-
return W(o,
|
|
350
|
+
return W(o, w.PureComponent), A(o, [{ key: "componentDidMount", value: function() {
|
|
351
351
|
this._maybeMeasureCell();
|
|
352
352
|
} }, { key: "componentDidUpdate", value: function() {
|
|
353
353
|
this._maybeMeasureCell();
|
|
354
354
|
} }, { key: "render", value: function() {
|
|
355
355
|
var e = this, t = this.props.children, n = typeof t == "function" ? t({ measure: this._measure, registerChild: this._registerChild }) : t;
|
|
356
|
-
return n === null ? n :
|
|
356
|
+
return n === null ? n : w.cloneElement(n, { ref: function(r) {
|
|
357
357
|
typeof n.ref == "function" ? n.ref(r) : n.ref && (n.ref.current = r), e._child.current = r;
|
|
358
358
|
} });
|
|
359
359
|
} }, { key: "_getCellMeasurements", value: function() {
|
|
@@ -417,13 +417,13 @@ function je(o) {
|
|
|
417
417
|
}
|
|
418
418
|
return o;
|
|
419
419
|
}
|
|
420
|
-
function
|
|
420
|
+
function bt() {
|
|
421
421
|
try {
|
|
422
422
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
423
423
|
}));
|
|
424
424
|
} catch {
|
|
425
425
|
}
|
|
426
|
-
return (
|
|
426
|
+
return (bt = function() {
|
|
427
427
|
return !!o;
|
|
428
428
|
})();
|
|
429
429
|
}
|
|
@@ -432,30 +432,30 @@ var Q = "requested", fe = (function() {
|
|
|
432
432
|
var e, t, n, r;
|
|
433
433
|
G(this, o);
|
|
434
434
|
for (var i = arguments.length, l = new Array(i), a = 0; a < i; a++) l[a] = arguments[a];
|
|
435
|
-
return t = this, n = o, r = [].concat(l), n = I(n), p(e = H(t,
|
|
435
|
+
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() {
|
|
436
436
|
var s = e.props, c = s.cellLayoutManager, d = s.onSectionRendered;
|
|
437
437
|
e._onSectionRenderedMemoizer({ callback: d, indices: { indices: c.getLastRenderedIndices() } });
|
|
438
438
|
}), p(e, "_setScrollingContainerRef", function(s) {
|
|
439
439
|
e._scrollingContainer = s;
|
|
440
440
|
}), p(e, "_updateScrollPositionForScrollToCell", function() {
|
|
441
|
-
var s = e.props, c = s.cellLayoutManager, d = s.height, h = s.scrollToAlignment, f = s.scrollToCell, u = s.width,
|
|
441
|
+
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;
|
|
442
442
|
if (f >= 0) {
|
|
443
|
-
var S = c.getScrollPositionForCell({ align: h, cellIndex: f, height: d, scrollLeft: g, scrollTop:
|
|
444
|
-
S.scrollLeft === g && S.scrollTop ===
|
|
443
|
+
var S = c.getScrollPositionForCell({ align: h, cellIndex: f, height: d, scrollLeft: g, scrollTop: _, width: u });
|
|
444
|
+
S.scrollLeft === g && S.scrollTop === _ || e._setScrollPosition(S);
|
|
445
445
|
}
|
|
446
446
|
}), p(e, "_onScroll", function(s) {
|
|
447
447
|
if (s.target === e._scrollingContainer) {
|
|
448
448
|
e._enablePointerEventsAfterDelay();
|
|
449
|
-
var c = e.props, d = c.cellLayoutManager, h = c.height, f = c.isScrollingChange, u = c.width,
|
|
450
|
-
if (e.state.scrollLeft !== y || e.state.scrollTop !==
|
|
451
|
-
var
|
|
452
|
-
e.state.isScrolling || f(!0), e.setState({ isScrolling: !0, scrollLeft: y, scrollPositionChangeReason:
|
|
449
|
+
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));
|
|
450
|
+
if (e.state.scrollLeft !== y || e.state.scrollTop !== m) {
|
|
451
|
+
var C = s.cancelable ? "observed" : Q;
|
|
452
|
+
e.state.isScrolling || f(!0), e.setState({ isScrolling: !0, scrollLeft: y, scrollPositionChangeReason: C, scrollTop: m });
|
|
453
453
|
}
|
|
454
|
-
e._invokeOnScrollMemoizer({ scrollLeft: y, scrollTop:
|
|
454
|
+
e._invokeOnScrollMemoizer({ scrollLeft: y, scrollTop: m, totalWidth: S, totalHeight: _ });
|
|
455
455
|
}
|
|
456
456
|
}), e._scrollbarSize = we(), e._scrollbarSize === void 0 ? (e._scrollbarSizeMeasured = !1, e._scrollbarSize = 0) : e._scrollbarSizeMeasured = !0, e;
|
|
457
457
|
}
|
|
458
|
-
return W(o,
|
|
458
|
+
return W(o, w.PureComponent), A(o, [{ key: "recomputeCellSizesAndPositions", value: function() {
|
|
459
459
|
this._calculateSizeAndPositionDataOnNextUpdate = !0, this.forceUpdate();
|
|
460
460
|
} }, { key: "componentDidMount", value: function() {
|
|
461
461
|
var e = this.props, t = e.cellLayoutManager, n = e.scrollLeft, r = e.scrollToCell, i = e.scrollTop;
|
|
@@ -468,10 +468,10 @@ var Q = "requested", fe = (function() {
|
|
|
468
468
|
} }, { key: "componentWillUnmount", value: function() {
|
|
469
469
|
this._disablePointerEventsTimeoutId && clearTimeout(this._disablePointerEventsTimeoutId);
|
|
470
470
|
} }, { key: "render", value: function() {
|
|
471
|
-
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,
|
|
471
|
+
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;
|
|
472
472
|
(this._lastRenderedCellCount !== n || this._lastRenderedCellLayoutManager !== r || this._calculateSizeAndPositionDataOnNextUpdate) && (this._lastRenderedCellCount = n, this._lastRenderedCellLayoutManager = r, this._calculateSizeAndPositionDataOnNextUpdate = !1, r.calculateSizeAndPositionData());
|
|
473
|
-
var S = r.getTotalSize(), y = S.height,
|
|
474
|
-
return T.overflowX =
|
|
473
|
+
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, P = m > f ? this._scrollbarSize : 0;
|
|
474
|
+
return T.overflowX = m + O <= f ? "hidden" : "auto", T.overflowY = y + P <= 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());
|
|
475
475
|
} }, { key: "_enablePointerEventsAfterDelay", value: function() {
|
|
476
476
|
var e = this;
|
|
477
477
|
this._disablePointerEventsTimeoutId && clearTimeout(this._disablePointerEventsTimeoutId), this._disablePointerEventsTimeoutId = setTimeout(function() {
|
|
@@ -554,22 +554,22 @@ function Fe(o) {
|
|
|
554
554
|
return Math.max(s, Math.min(a, l));
|
|
555
555
|
}
|
|
556
556
|
}
|
|
557
|
-
function
|
|
557
|
+
function zt() {
|
|
558
558
|
try {
|
|
559
559
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
560
560
|
}));
|
|
561
561
|
} catch {
|
|
562
562
|
}
|
|
563
|
-
return (
|
|
563
|
+
return (zt = function() {
|
|
564
564
|
return !!o;
|
|
565
565
|
})();
|
|
566
566
|
}
|
|
567
567
|
var Ne = (function() {
|
|
568
568
|
function o(e, t) {
|
|
569
569
|
var n, r, i, l;
|
|
570
|
-
return G(this, o), r = this, l = [e, t], i = I(i = o), (n = H(r,
|
|
570
|
+
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;
|
|
571
571
|
}
|
|
572
|
-
return W(o,
|
|
572
|
+
return W(o, w.PureComponent), A(o, [{ key: "forceUpdate", value: function() {
|
|
573
573
|
this._collectionView !== void 0 && this._collectionView.forceUpdate();
|
|
574
574
|
} }, { key: "recomputeCellSizesAndPositions", value: function() {
|
|
575
575
|
this._cellCache = [], this._collectionView.recomputeCellSizesAndPositions();
|
|
@@ -577,7 +577,7 @@ var Ne = (function() {
|
|
|
577
577
|
var e = U({}, ((function(t) {
|
|
578
578
|
if (t == null) throw new TypeError("Cannot destructure " + t);
|
|
579
579
|
})(this.props), this.props));
|
|
580
|
-
return
|
|
580
|
+
return w.createElement(fe, U({ cellLayoutManager: this, isScrollingChange: this._isScrollingChange, ref: this._setCollectionViewRef }, e));
|
|
581
581
|
} }, { key: "calculateSizeAndPositionData", value: function() {
|
|
582
582
|
var e = this.props, t = (function(n) {
|
|
583
583
|
for (var r = n.cellCount, i = n.cellSizeAndPositionGetter, l = [], a = new yo(n.sectionSize), s = 0, c = 0, d = 0; d < r; d++) {
|
|
@@ -612,13 +612,13 @@ var Ne = (function() {
|
|
|
612
612
|
this._collectionView = e;
|
|
613
613
|
} }]);
|
|
614
614
|
})();
|
|
615
|
-
function
|
|
615
|
+
function Tt() {
|
|
616
616
|
try {
|
|
617
617
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
618
618
|
}));
|
|
619
619
|
} catch {
|
|
620
620
|
}
|
|
621
|
-
return (
|
|
621
|
+
return (Tt = function() {
|
|
622
622
|
return !!o;
|
|
623
623
|
})();
|
|
624
624
|
}
|
|
@@ -646,9 +646,9 @@ p(Ne, "defaultProps", { "aria-label": "grid", cellGroupRenderer: function(o) {
|
|
|
646
646
|
} }), Ne.propTypes = {}, (function() {
|
|
647
647
|
function o(e, t) {
|
|
648
648
|
var n, r, i, l;
|
|
649
|
-
return G(this, o), r = this, l = [e, t], i = I(i = o), (n = H(r,
|
|
649
|
+
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;
|
|
650
650
|
}
|
|
651
|
-
return W(o,
|
|
651
|
+
return W(o, w.PureComponent), A(o, [{ key: "componentDidUpdate", value: function(e) {
|
|
652
652
|
var t = this.props, n = t.columnMaxWidth, r = t.columnMinWidth, i = t.columnCount, l = t.width;
|
|
653
653
|
n === e.columnMaxWidth && r === e.columnMinWidth && i === e.columnCount && l === e.width || this._registeredChild && this._registeredChild.recomputeGridSize();
|
|
654
654
|
} }, { key: "render", value: function() {
|
|
@@ -780,8 +780,8 @@ var F, wo = A(function o(e) {
|
|
|
780
780
|
return Math.round(i * (n - e));
|
|
781
781
|
} }]);
|
|
782
782
|
function Ve(o) {
|
|
783
|
-
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,
|
|
784
|
-
g && (h !== a || f || !r || typeof e == "number" && e !== r || c !== i || d !== l) ? u(d) : !g &&
|
|
783
|
+
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;
|
|
784
|
+
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);
|
|
785
785
|
}
|
|
786
786
|
var xo = (F = typeof window < "u" ? window : typeof self < "u" ? self : {}).requestAnimationFrame || F.webkitRequestAnimationFrame || F.mozRequestAnimationFrame || F.oRequestAnimationFrame || F.msRequestAnimationFrame || function(o) {
|
|
787
787
|
return F.setTimeout(o, 1e3 / 60);
|
|
@@ -820,20 +820,20 @@ function D(o) {
|
|
|
820
820
|
}
|
|
821
821
|
return o;
|
|
822
822
|
}
|
|
823
|
-
function
|
|
823
|
+
function It() {
|
|
824
824
|
try {
|
|
825
825
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
826
826
|
}));
|
|
827
827
|
} catch {
|
|
828
828
|
}
|
|
829
|
-
return (
|
|
829
|
+
return (It = function() {
|
|
830
830
|
return !!o;
|
|
831
831
|
})();
|
|
832
832
|
}
|
|
833
833
|
var qe = "requested", V = (function() {
|
|
834
834
|
function o(e) {
|
|
835
835
|
var t, n, r, i;
|
|
836
|
-
G(this, o), n = this, i = [e], r = I(r = o), p(t = H(n,
|
|
836
|
+
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() {
|
|
837
837
|
t._disablePointerEventsTimeoutId = null, t.setState({ isScrolling: !1, needToResetStyleCache: !1 });
|
|
838
838
|
}), p(t, "_invokeOnGridRenderedHelper", function() {
|
|
839
839
|
var s = t.props.onSectionRendered;
|
|
@@ -850,7 +850,7 @@ var qe = "requested", V = (function() {
|
|
|
850
850
|
}, estimatedCellSize: o._getEstimatedRowSize(e) });
|
|
851
851
|
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;
|
|
852
852
|
}
|
|
853
|
-
return W(o,
|
|
853
|
+
return W(o, w.PureComponent), A(o, [{ key: "getOffsetForCell", value: function() {
|
|
854
854
|
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 });
|
|
855
855
|
return { scrollLeft: this._getCalculatedScrollLeft(s), scrollTop: this._getCalculatedScrollTop(s) };
|
|
856
856
|
} }, { key: "getTotalRowsHeight", value: function() {
|
|
@@ -861,12 +861,12 @@ var qe = "requested", V = (function() {
|
|
|
861
861
|
var t = e.scrollLeft, n = t === void 0 ? 0 : t, r = e.scrollTop, i = r === void 0 ? 0 : r;
|
|
862
862
|
if (!(i < 0)) {
|
|
863
863
|
this._debounceScrollEnded();
|
|
864
|
-
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(),
|
|
865
|
-
if (this.state.scrollLeft !== g || this.state.scrollTop !==
|
|
866
|
-
var S = { isScrolling: !0, scrollDirectionHorizontal: g !== this.state.scrollLeft ? g > this.state.scrollLeft ? 1 : -1 : this.state.scrollDirectionHorizontal, scrollDirectionVertical:
|
|
867
|
-
a || (S.scrollTop =
|
|
864
|
+
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);
|
|
865
|
+
if (this.state.scrollLeft !== g || this.state.scrollTop !== _) {
|
|
866
|
+
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" };
|
|
867
|
+
a || (S.scrollTop = _), s || (S.scrollLeft = g), S.needToResetStyleCache = !1, this.setState(S);
|
|
868
868
|
}
|
|
869
|
-
this._invokeOnScrollMemoizer({ scrollLeft: g, scrollTop:
|
|
869
|
+
this._invokeOnScrollMemoizer({ scrollLeft: g, scrollTop: _, totalColumnsWidth: v, totalRowsHeight: u });
|
|
870
870
|
}
|
|
871
871
|
} }, { key: "invalidateCellSizeAfterRender", value: function(e) {
|
|
872
872
|
var t = e.columnIndex, n = e.rowIndex;
|
|
@@ -893,14 +893,14 @@ var qe = "requested", V = (function() {
|
|
|
893
893
|
var h = n > 0 && s > 0;
|
|
894
894
|
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();
|
|
895
895
|
} }, { key: "componentDidUpdate", value: function(e, t) {
|
|
896
|
-
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,
|
|
896
|
+
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;
|
|
897
897
|
this._handleInvalidatedGridSize();
|
|
898
|
-
var
|
|
899
|
-
|
|
900
|
-
var
|
|
901
|
-
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:
|
|
898
|
+
var m = a > 0 && e.columnCount === 0 || c > 0 && e.rowCount === 0;
|
|
899
|
+
_ === 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));
|
|
900
|
+
var C = (e.width === 0 || e.height === 0) && s > 0 && u > 0;
|
|
901
|
+
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() {
|
|
902
902
|
return n._updateScrollLeftForScrollToColumn(n.props);
|
|
903
|
-
} }), 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:
|
|
903
|
+
} }), 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() {
|
|
904
904
|
return n._updateScrollTopForScrollToRow(n.props);
|
|
905
905
|
} }), this._invokeOnGridRenderedHelper(), g !== t.scrollLeft || S !== t.scrollTop) {
|
|
906
906
|
var x = y.rowSizeAndPositionManager.getTotalSize(), R = y.columnSizeAndPositionManager.getTotalSize();
|
|
@@ -910,18 +910,18 @@ var qe = "requested", V = (function() {
|
|
|
910
910
|
} }, { key: "componentWillUnmount", value: function() {
|
|
911
911
|
this._disablePointerEventsTimeoutId && Z(this._disablePointerEventsTimeoutId);
|
|
912
912
|
} }, { key: "render", value: function() {
|
|
913
|
-
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,
|
|
913
|
+
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" };
|
|
914
914
|
y && (this._styleCache = {}), this.state.isScrolling || this._resetStyleCache(), this._calculateChildrenToRender(this.props, this.state);
|
|
915
915
|
var x = S.columnSizeAndPositionManager.getTotalSize(), R = S.rowSizeAndPositionManager.getTotalSize(), b = R > c ? S.scrollbarSize : 0, z = x > g ? S.scrollbarSize : 0;
|
|
916
|
-
z === this._horizontalScrollBarSize && b === this._verticalScrollBarSize || (this._horizontalScrollBarSize = z, this._verticalScrollBarSize = b, this._scrollbarPresenceChanged = !0),
|
|
916
|
+
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";
|
|
917
917
|
var T = this._childrenToDisplay, O = T.length === 0 && c > 0 && g > 0;
|
|
918
|
-
return
|
|
918
|
+
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());
|
|
919
919
|
} }, { key: "_calculateChildrenToRender", value: function() {
|
|
920
|
-
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,
|
|
920
|
+
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);
|
|
921
921
|
if (this._childrenToDisplay = [], a > 0 && f > 0) {
|
|
922
|
-
var
|
|
923
|
-
this._renderedColumnStartIndex =
|
|
924
|
-
var z = c({ direction: "horizontal", cellCount: i, overscanCellsCount: s, scrollDirection:
|
|
922
|
+
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 });
|
|
923
|
+
this._renderedColumnStartIndex = C.start, this._renderedColumnStopIndex = C.stop, this._renderedRowStartIndex = x.start, this._renderedRowStopIndex = x.stop;
|
|
924
|
+
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, P = z.overscanStopIndex, k = T.overscanStartIndex, E = T.overscanStopIndex;
|
|
925
925
|
if (l) {
|
|
926
926
|
if (!l.hasFixedHeight()) {
|
|
927
927
|
for (var j = k; j <= E; j++) if (!l.has(j, 0)) {
|
|
@@ -936,7 +936,7 @@ var qe = "requested", V = (function() {
|
|
|
936
936
|
}
|
|
937
937
|
}
|
|
938
938
|
}
|
|
939
|
-
this._childrenToDisplay = r({ cellCache: this._cellCache, cellRenderer: n, columnSizeAndPositionManager:
|
|
939
|
+
this._childrenToDisplay = r({ cellCache: this._cellCache, cellRenderer: n, columnSizeAndPositionManager: _.columnSizeAndPositionManager, columnStartIndex: O, columnStopIndex: P, deferredMeasurementCache: l, horizontalOffsetAdjustment: R, isScrolling: m, isScrollingOptOut: u, parent: this, rowSizeAndPositionManager: _.rowSizeAndPositionManager, rowStartIndex: k, rowStopIndex: E, scrollLeft: y, scrollTop: S, styleCache: this._styleCache, verticalOffsetAdjustment: b, visibleColumnIndices: C, visibleRowIndices: x }), this._columnStartIndex = O, this._columnStopIndex = P, this._rowStartIndex = k, this._rowStopIndex = E;
|
|
940
940
|
}
|
|
941
941
|
} }, { key: "_debounceScrollEnded", value: function() {
|
|
942
942
|
var e = this.props.scrollingResetTimeInterval;
|
|
@@ -1028,7 +1028,7 @@ var qe = "requested", V = (function() {
|
|
|
1028
1028
|
return typeof r == "number" && r >= 0 && n !== r ? o._getScrollToPositionStateUpdate({ prevState: t, scrollLeft: -1, scrollTop: r }) : {};
|
|
1029
1029
|
} }]);
|
|
1030
1030
|
})();
|
|
1031
|
-
function
|
|
1031
|
+
function kt(o) {
|
|
1032
1032
|
var e = o.cellCount, t = o.overscanCellsCount, n = o.scrollDirection, r = o.startIndex, i = o.stopIndex;
|
|
1033
1033
|
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) };
|
|
1034
1034
|
}
|
|
@@ -1037,29 +1037,29 @@ function Ce(o, e) {
|
|
|
1037
1037
|
for (var t = 0, n = Array(e); t < e; t++) n[t] = o[t];
|
|
1038
1038
|
return n;
|
|
1039
1039
|
}
|
|
1040
|
-
function
|
|
1040
|
+
function Ot(o, e) {
|
|
1041
1041
|
if (o) {
|
|
1042
1042
|
if (typeof o == "string") return Ce(o, e);
|
|
1043
1043
|
var t = {}.toString.call(o).slice(8, -1);
|
|
1044
1044
|
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;
|
|
1045
1045
|
}
|
|
1046
1046
|
}
|
|
1047
|
-
function
|
|
1047
|
+
function Pt() {
|
|
1048
1048
|
try {
|
|
1049
1049
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1050
1050
|
}));
|
|
1051
1051
|
} catch {
|
|
1052
1052
|
}
|
|
1053
|
-
return (
|
|
1053
|
+
return (Pt = function() {
|
|
1054
1054
|
return !!o;
|
|
1055
1055
|
})();
|
|
1056
1056
|
}
|
|
1057
1057
|
p(V, "defaultProps", { "aria-label": "grid", "aria-readonly": !0, autoContainerWidth: !1, autoHeight: !1, autoWidth: !1, cellRangeRenderer: function(o) {
|
|
1058
|
-
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,
|
|
1059
|
-
var z = n.getSizeAndPositionOfCell(b), T = b >=
|
|
1060
|
-
|
|
1058
|
+
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++) {
|
|
1059
|
+
var z = n.getSizeAndPositionOfCell(b), T = b >= _.start && b <= _.stop && x >= S.start && x <= S.stop, O = "".concat(x, "-").concat(b), P = void 0;
|
|
1060
|
+
C && v[O] ? P = v[O] : l && !l.has(x, b) ? P = { height: "auto", left: 0, position: "absolute", top: 0, width: "auto" } : (P = { height: R.size, left: z.offset + a, position: "absolute", top: R.offset + g, width: z.size }, v[O] = P);
|
|
1061
1061
|
var k = { columnIndex: b, isScrolling: s, isVisible: T, key: O, parent: d, rowIndex: x, style: P }, E = void 0;
|
|
1062
|
-
!c && !s || a || g ? E = t(k) : (e[O] || (e[O] = t(k)), E = e[O]), E != null && E !== !1 && (E.props.role || (E =
|
|
1062
|
+
!c && !s || a || g ? E = t(k) : (e[O] || (e[O] = t(k)), E = e[O]), E != null && E !== !1 && (E.props.role || (E = gt.cloneElement(E, { role: "gridcell" })), y.push(E));
|
|
1063
1063
|
}
|
|
1064
1064
|
return y;
|
|
1065
1065
|
}, containerRole: "row", containerStyle: {}, estimatedColumnSize: 100, estimatedRowSize: 30, getScrollbarSize: we, noContentRenderer: function() {
|
|
@@ -1074,9 +1074,9 @@ p(V, "defaultProps", { "aria-label": "grid", "aria-readonly": !0, autoContainerW
|
|
|
1074
1074
|
var Xe = (function() {
|
|
1075
1075
|
function o(e, t) {
|
|
1076
1076
|
var n, r, i, l;
|
|
1077
|
-
return G(this, o), r = this, l = [e, t], i = I(i = o), (n = H(r,
|
|
1077
|
+
return G(this, o), r = this, l = [e, t], i = I(i = o), (n = H(r, Pt() ? 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;
|
|
1078
1078
|
}
|
|
1079
|
-
return W(o,
|
|
1079
|
+
return W(o, w.PureComponent), A(o, [{ key: "resetLoadMoreRowsCache", value: function(e) {
|
|
1080
1080
|
this._loadMoreRowsMemoizer = J(), e && this._doStuff(this._lastRenderedStartIndex, this._lastRenderedStopIndex);
|
|
1081
1081
|
} }, { key: "render", value: function() {
|
|
1082
1082
|
return (0, this.props.children)({ onRowsRendered: this._onRowsRendered, registerChild: this._registerChild });
|
|
@@ -1097,12 +1097,12 @@ var Xe = (function() {
|
|
|
1097
1097
|
this._lastRenderedStartIndex = t, this._lastRenderedStopIndex = n, this._doStuff(t, n);
|
|
1098
1098
|
} }, { key: "_doStuff", value: function(e, t) {
|
|
1099
1099
|
var n, r = this, i = this.props, l = i.isRowLoaded, a = i.minimumBatchSize, s = i.rowCount, c = i.threshold, d = (function(f) {
|
|
1100
|
-
for (var u = f.isRowLoaded,
|
|
1101
|
-
if (
|
|
1102
|
-
for (var x = Math.min(Math.max(
|
|
1103
|
-
S.push({ startIndex: y, stopIndex:
|
|
1100
|
+
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));
|
|
1101
|
+
if (m !== null) {
|
|
1102
|
+
for (var x = Math.min(Math.max(m, y + v - 1), g - 1), R = m + 1; R <= x && !u({ index: R }); R++) m = R;
|
|
1103
|
+
S.push({ startIndex: y, stopIndex: m });
|
|
1104
1104
|
}
|
|
1105
|
-
if (S.length) for (var b = S[0]; b.stopIndex - b.startIndex + 1 <
|
|
1105
|
+
if (S.length) for (var b = S[0]; b.stopIndex - b.startIndex + 1 < v && b.startIndex > 0; ) {
|
|
1106
1106
|
var z = b.startIndex - 1;
|
|
1107
1107
|
if (u({ index: z })) break;
|
|
1108
1108
|
b.startIndex = z;
|
|
@@ -1113,7 +1113,7 @@ var Xe = (function() {
|
|
|
1113
1113
|
if (Array.isArray(u)) return Ce(u);
|
|
1114
1114
|
})(f) || (function(u) {
|
|
1115
1115
|
if (typeof Symbol < "u" && u[Symbol.iterator] != null || u["@@iterator"] != null) return Array.from(u);
|
|
1116
|
-
})(f) ||
|
|
1116
|
+
})(f) || Ot(f) || (function() {
|
|
1117
1117
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1118
1118
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1119
1119
|
})();
|
|
@@ -1127,13 +1127,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1127
1127
|
this._registeredChild = e;
|
|
1128
1128
|
} }]);
|
|
1129
1129
|
})();
|
|
1130
|
-
function
|
|
1130
|
+
function Mt() {
|
|
1131
1131
|
try {
|
|
1132
1132
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1133
1133
|
}));
|
|
1134
1134
|
} catch {
|
|
1135
1135
|
}
|
|
1136
|
-
return (
|
|
1136
|
+
return (Mt = function() {
|
|
1137
1137
|
return !!o;
|
|
1138
1138
|
})();
|
|
1139
1139
|
}
|
|
@@ -1143,9 +1143,9 @@ var zo = (function() {
|
|
|
1143
1143
|
var e, t, n, r;
|
|
1144
1144
|
G(this, o);
|
|
1145
1145
|
for (var i = arguments.length, l = new Array(i), a = 0; a < i; a++) l[a] = arguments[a];
|
|
1146
|
-
return t = this, n = o, r = [].concat(l), n = I(n), p(e = H(t,
|
|
1147
|
-
var c = s.parent, d = s.rowIndex, h = s.style, f = s.isScrolling, u = s.isVisible,
|
|
1148
|
-
return
|
|
1146
|
+
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) {
|
|
1147
|
+
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");
|
|
1148
|
+
return _ && _.writable && (h.width = "100%"), g({ index: d, style: h, isScrolling: f, isVisible: u, key: v, parent: c });
|
|
1149
1149
|
}), p(e, "_setRef", function(s) {
|
|
1150
1150
|
e.Grid = s;
|
|
1151
1151
|
}), p(e, "_onScroll", function(s) {
|
|
@@ -1156,7 +1156,7 @@ var zo = (function() {
|
|
|
1156
1156
|
(0, e.props.onRowsRendered)({ overscanStartIndex: c, overscanStopIndex: d, startIndex: h, stopIndex: f });
|
|
1157
1157
|
}), e;
|
|
1158
1158
|
}
|
|
1159
|
-
return W(o,
|
|
1159
|
+
return W(o, w.PureComponent), A(o, [{ key: "forceUpdateGrid", value: function() {
|
|
1160
1160
|
this.Grid && this.Grid.forceUpdate();
|
|
1161
1161
|
} }, { key: "getOffsetForRow", value: function(e) {
|
|
1162
1162
|
var t = e.alignment, n = e.index;
|
|
@@ -1180,14 +1180,14 @@ var zo = (function() {
|
|
|
1180
1180
|
this.Grid && this.Grid.scrollToCell({ columnIndex: 0, rowIndex: e });
|
|
1181
1181
|
} }, { key: "render", value: function() {
|
|
1182
1182
|
var e = this.props, t = e.className, n = e.noRowsRenderer, r = e.scrollToIndex, i = e.width, l = N("ReactVirtualized__List", t);
|
|
1183
|
-
return
|
|
1183
|
+
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 }));
|
|
1184
1184
|
} }]);
|
|
1185
1185
|
})();
|
|
1186
1186
|
p(zo, "defaultProps", { autoHeight: !1, estimatedRowSize: 30, onScroll: function() {
|
|
1187
1187
|
}, noRowsRenderer: function() {
|
|
1188
1188
|
return null;
|
|
1189
1189
|
}, onRowsRendered: function() {
|
|
1190
|
-
}, overscanIndicesGetter:
|
|
1190
|
+
}, overscanIndicesGetter: kt, overscanRowCount: 10, scrollToAlignment: "auto", scrollToIndex: -1, style: {} });
|
|
1191
1191
|
const he = function(o, e, t, n, r) {
|
|
1192
1192
|
return typeof t == "function" ? (function(i, l, a, s, c) {
|
|
1193
1193
|
for (var d = a + 1; l <= a; ) {
|
|
@@ -1210,17 +1210,17 @@ var ee = Oe.prototype;
|
|
|
1210
1210
|
function ve(o, e) {
|
|
1211
1211
|
o.mid = e.mid, o.left = e.left, o.right = e.right, o.leftPoints = e.leftPoints, o.rightPoints = e.rightPoints, o.count = e.count;
|
|
1212
1212
|
}
|
|
1213
|
-
function
|
|
1213
|
+
function Lt(o, e) {
|
|
1214
1214
|
var t = ie(e);
|
|
1215
1215
|
o.mid = t.mid, o.left = t.left, o.right = t.right, o.leftPoints = t.leftPoints, o.rightPoints = t.rightPoints, o.count = t.count;
|
|
1216
1216
|
}
|
|
1217
1217
|
function Ye(o, e) {
|
|
1218
1218
|
var t = o.intervals([]);
|
|
1219
|
-
t.push(e),
|
|
1219
|
+
t.push(e), Lt(o, t);
|
|
1220
1220
|
}
|
|
1221
1221
|
function Je(o, e) {
|
|
1222
1222
|
var t = o.intervals([]), n = t.indexOf(e);
|
|
1223
|
-
return n < 0 ? 0 : (t.splice(n, 1),
|
|
1223
|
+
return n < 0 ? 0 : (t.splice(n, 1), Lt(o, t), 1);
|
|
1224
1224
|
}
|
|
1225
1225
|
function Ze(o, e, t) {
|
|
1226
1226
|
for (var n = 0; n < o.length && o[n][0] <= e; ++n) {
|
|
@@ -1261,7 +1261,7 @@ function ie(o) {
|
|
|
1261
1261
|
var s = l, c = l.slice();
|
|
1262
1262
|
return s.sort(xe), c.sort(Re), new Oe(n, ie(r), ie(i), s, c);
|
|
1263
1263
|
}
|
|
1264
|
-
function
|
|
1264
|
+
function Gt(o) {
|
|
1265
1265
|
this.root = o;
|
|
1266
1266
|
}
|
|
1267
1267
|
ee.intervals = function(o) {
|
|
@@ -1302,7 +1302,7 @@ ee.intervals = function(o) {
|
|
|
1302
1302
|
var n;
|
|
1303
1303
|
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);
|
|
1304
1304
|
};
|
|
1305
|
-
var q =
|
|
1305
|
+
var q = Gt.prototype;
|
|
1306
1306
|
q.insert = function(o) {
|
|
1307
1307
|
this.root ? this.root.insert(o) : this.root = new Oe(o[0], null, null, [o], [o]);
|
|
1308
1308
|
}, q.remove = function(o) {
|
|
@@ -1321,7 +1321,7 @@ q.insert = function(o) {
|
|
|
1321
1321
|
return this.root ? this.root.intervals([]) : [];
|
|
1322
1322
|
} });
|
|
1323
1323
|
var _e = A(function o() {
|
|
1324
|
-
G(this, o), p(this, "_columnSizeMap", {}), p(this, "_intervalTree", new
|
|
1324
|
+
G(this, o), p(this, "_columnSizeMap", {}), p(this, "_intervalTree", new Gt(null)), p(this, "_leftMap", {});
|
|
1325
1325
|
}, [{ key: "estimateTotalHeight", value: function(o, e, t) {
|
|
1326
1326
|
var n = o - this.count;
|
|
1327
1327
|
return this.tallestColumnSize + Math.ceil(n / e) * t;
|
|
@@ -1334,21 +1334,21 @@ var _e = A(function o() {
|
|
|
1334
1334
|
})(s) || (function(d, h) {
|
|
1335
1335
|
var f = d == null ? null : typeof Symbol < "u" && d[Symbol.iterator] || d["@@iterator"];
|
|
1336
1336
|
if (f != null) {
|
|
1337
|
-
var u,
|
|
1337
|
+
var u, v, g, _, S = [], y = !0, m = !1;
|
|
1338
1338
|
try {
|
|
1339
1339
|
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) ;
|
|
1340
|
-
} catch (
|
|
1341
|
-
|
|
1340
|
+
} catch (C) {
|
|
1341
|
+
m = !0, v = C;
|
|
1342
1342
|
} finally {
|
|
1343
1343
|
try {
|
|
1344
|
-
if (!y && f.return != null && (
|
|
1344
|
+
if (!y && f.return != null && (_ = f.return(), Object(_) !== _)) return;
|
|
1345
1345
|
} finally {
|
|
1346
|
-
if (
|
|
1346
|
+
if (m) throw v;
|
|
1347
1347
|
}
|
|
1348
1348
|
}
|
|
1349
1349
|
return S;
|
|
1350
1350
|
}
|
|
1351
|
-
})(s, c) ||
|
|
1351
|
+
})(s, c) || Ot(s, c) || (function() {
|
|
1352
1352
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1353
1353
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1354
1354
|
})();
|
|
@@ -1399,13 +1399,13 @@ function Io(o) {
|
|
|
1399
1399
|
}
|
|
1400
1400
|
return o;
|
|
1401
1401
|
}
|
|
1402
|
-
function
|
|
1402
|
+
function At() {
|
|
1403
1403
|
try {
|
|
1404
1404
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1405
1405
|
}));
|
|
1406
1406
|
} catch {
|
|
1407
1407
|
}
|
|
1408
|
-
return (
|
|
1408
|
+
return (At = function() {
|
|
1409
1409
|
return !!o;
|
|
1410
1410
|
})();
|
|
1411
1411
|
}
|
|
@@ -1414,7 +1414,7 @@ var ot = (function() {
|
|
|
1414
1414
|
var e, t, n, r;
|
|
1415
1415
|
G(this, o);
|
|
1416
1416
|
for (var i = arguments.length, l = new Array(i), a = 0; a < i; a++) l[a] = arguments[a];
|
|
1417
|
-
return t = this, n = o, r = [].concat(l), n = I(n), p(e = H(t,
|
|
1417
|
+
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() {
|
|
1418
1418
|
e.setState({ isScrolling: !1 });
|
|
1419
1419
|
}), p(e, "_setScrollingContainerRef", function(s) {
|
|
1420
1420
|
e._scrollingContainer = s;
|
|
@@ -1423,7 +1423,7 @@ var ot = (function() {
|
|
|
1423
1423
|
d === h && (e._debounceResetIsScrolling(), e.state.scrollTop !== h && e.setState({ isScrolling: !0, scrollTop: h }));
|
|
1424
1424
|
}), e;
|
|
1425
1425
|
}
|
|
1426
|
-
return W(o,
|
|
1426
|
+
return W(o, w.PureComponent), A(o, [{ key: "clearCellPositions", value: function() {
|
|
1427
1427
|
this._positionCache = new _e(), this.forceUpdate();
|
|
1428
1428
|
} }, { key: "invalidateCellSizeAfterRender", value: function(e) {
|
|
1429
1429
|
var t = e.rowIndex;
|
|
@@ -1438,11 +1438,11 @@ var ot = (function() {
|
|
|
1438
1438
|
} }, { key: "componentWillUnmount", value: function() {
|
|
1439
1439
|
this._debounceResetIsScrollingId && Z(this._debounceResetIsScrollingId);
|
|
1440
1440
|
} }, { key: "render", value: function() {
|
|
1441
|
-
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,
|
|
1442
|
-
if (this._positionCache.range(Math.max(0,
|
|
1443
|
-
e === void 0 ? (T = k, e = k) : (T = Math.min(T, k), e = Math.max(e, k)), x.push(a({ index: k, isScrolling:
|
|
1444
|
-
}), b <
|
|
1445
|
-
return this._startIndex = T, this._stopIndex = e,
|
|
1441
|
+
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;
|
|
1442
|
+
if (this._positionCache.range(Math.max(0, C - f), c + 2 * f, function(k, E, j) {
|
|
1443
|
+
e === void 0 ? (T = k, e = k) : (T = Math.min(T, k), e = Math.max(e, k)), x.push(a({ index: k, isScrolling: m, key: h(k), parent: t, style: p(p(p(p({ height: l.getHeight(k) }, S === "ltr" ? "left" : "right", E), "position", "absolute"), "top", j), "width", l.getWidth(k)) }));
|
|
1444
|
+
}), b < C + c + f && z < i) for (var O = Math.min(i - z, Math.ceil((C + c + f - b) / l.defaultHeight * _ / l.defaultWidth)), P = z; P < z + O; P++) e = P, x.push(a({ index: P, isScrolling: m, key: h(P), parent: this, style: { width: l.getWidth(P) } }));
|
|
1445
|
+
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));
|
|
1446
1446
|
} }, { key: "_checkInvalidateOnUpdate", value: function() {
|
|
1447
1447
|
if (typeof this._invalidateOnUpdateStartIndex == "number") {
|
|
1448
1448
|
var e = this._invalidateOnUpdateStartIndex, t = this._invalidateOnUpdateStopIndex;
|
|
@@ -1529,43 +1529,43 @@ function M(o) {
|
|
|
1529
1529
|
}
|
|
1530
1530
|
return o;
|
|
1531
1531
|
}
|
|
1532
|
-
function
|
|
1532
|
+
function Et() {
|
|
1533
1533
|
try {
|
|
1534
1534
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1535
1535
|
}));
|
|
1536
1536
|
} catch {
|
|
1537
1537
|
}
|
|
1538
|
-
return (
|
|
1538
|
+
return (Et = function() {
|
|
1539
1539
|
return !!o;
|
|
1540
1540
|
})();
|
|
1541
1541
|
}
|
|
1542
1542
|
var ye = (function() {
|
|
1543
1543
|
function o(e, t) {
|
|
1544
1544
|
var n, r, i, l;
|
|
1545
|
-
G(this, o), r = this, l = [e, t], i = I(i = o), p(n = H(r,
|
|
1545
|
+
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) {
|
|
1546
1546
|
n._bottomLeftGrid = d;
|
|
1547
1547
|
}), p(n, "_bottomRightGridRef", function(d) {
|
|
1548
1548
|
n._bottomRightGrid = d;
|
|
1549
1549
|
}), p(n, "_cellRendererBottomLeftGrid", function(d) {
|
|
1550
|
-
var h = d.rowIndex, f = te(d, ko), u = n.props,
|
|
1551
|
-
return h === u.rowCount - g ?
|
|
1550
|
+
var h = d.rowIndex, f = te(d, ko), u = n.props, v = u.cellRenderer, g = u.fixedRowCount;
|
|
1551
|
+
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 }));
|
|
1552
1552
|
}), p(n, "_cellRendererBottomRightGrid", function(d) {
|
|
1553
|
-
var h = d.columnIndex, f = d.rowIndex, u = te(d, Oo),
|
|
1554
|
-
return g(M(M({}, u), {}, { columnIndex: h +
|
|
1553
|
+
var h = d.columnIndex, f = d.rowIndex, u = te(d, Oo), v = n.props, g = v.cellRenderer, _ = v.fixedColumnCount, S = v.fixedRowCount;
|
|
1554
|
+
return g(M(M({}, u), {}, { columnIndex: h + _, parent: n, rowIndex: f + S }));
|
|
1555
1555
|
}), p(n, "_cellRendererTopRightGrid", function(d) {
|
|
1556
|
-
var h = d.columnIndex, f = te(d, Po), u = n.props,
|
|
1557
|
-
return h === g -
|
|
1556
|
+
var h = d.columnIndex, f = te(d, Po), u = n.props, v = u.cellRenderer, g = u.columnCount, _ = u.fixedColumnCount;
|
|
1557
|
+
return h === g - _ ? w.createElement("div", { key: f.key, style: M(M({}, f.style), {}, { width: 20 }) }) : v(M(M({}, f), {}, { columnIndex: h + _, parent: n }));
|
|
1558
1558
|
}), p(n, "_columnWidthRightGrid", function(d) {
|
|
1559
|
-
var h = d.index, f = n.props, u = f.columnCount,
|
|
1560
|
-
return
|
|
1559
|
+
var h = d.index, f = n.props, u = f.columnCount, v = f.fixedColumnCount, g = f.columnWidth, _ = n.state, S = _.scrollbarSize;
|
|
1560
|
+
return _.showHorizontalScrollbar && h === u - v ? S : typeof g == "function" ? g({ index: h + v }) : g;
|
|
1561
1561
|
}), p(n, "_onScroll", function(d) {
|
|
1562
1562
|
var h = d.scrollLeft, f = d.scrollTop;
|
|
1563
1563
|
n.setState({ scrollLeft: h, scrollTop: f });
|
|
1564
1564
|
var u = n.props.onScroll;
|
|
1565
1565
|
u && u(d);
|
|
1566
1566
|
}), p(n, "_onScrollbarPresenceChange", function(d) {
|
|
1567
|
-
var h = d.horizontal, f = d.size, u = d.vertical,
|
|
1568
|
-
if (h !== g || u !==
|
|
1567
|
+
var h = d.horizontal, f = d.size, u = d.vertical, v = n.state, g = v.showHorizontalScrollbar, _ = v.showVerticalScrollbar;
|
|
1568
|
+
if (h !== g || u !== _) {
|
|
1569
1569
|
n.setState({ scrollbarSize: f, showHorizontalScrollbar: h, showVerticalScrollbar: u });
|
|
1570
1570
|
var S = n.props.onScrollbarPresenceChange;
|
|
1571
1571
|
typeof S == "function" && S({ horizontal: h, size: f, vertical: u });
|
|
@@ -1577,8 +1577,8 @@ var ye = (function() {
|
|
|
1577
1577
|
var h = d.scrollTop;
|
|
1578
1578
|
n._onScroll({ scrollTop: h, scrollLeft: n.state.scrollLeft });
|
|
1579
1579
|
}), p(n, "_rowHeightBottomGrid", function(d) {
|
|
1580
|
-
var h = d.index, f = n.props, u = f.fixedRowCount,
|
|
1581
|
-
return
|
|
1580
|
+
var h = d.index, f = n.props, u = f.fixedRowCount, v = f.rowCount, g = f.rowHeight, _ = n.state, S = _.scrollbarSize;
|
|
1581
|
+
return _.showVerticalScrollbar && h === v - u ? S : typeof g == "function" ? g({ index: h + u }) : g;
|
|
1582
1582
|
}), p(n, "_topLeftGridRef", function(d) {
|
|
1583
1583
|
n._topLeftGrid = d;
|
|
1584
1584
|
}), p(n, "_topRightGridRef", function(d) {
|
|
@@ -1587,7 +1587,7 @@ var ye = (function() {
|
|
|
1587
1587
|
var a = e.deferredMeasurementCache, s = e.fixedColumnCount, c = e.fixedRowCount;
|
|
1588
1588
|
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;
|
|
1589
1589
|
}
|
|
1590
|
-
return W(o,
|
|
1590
|
+
return W(o, w.PureComponent), A(o, [{ key: "forceUpdateGrids", value: function() {
|
|
1591
1591
|
this._bottomLeftGrid && this._bottomLeftGrid.forceUpdate(), this._bottomRightGrid && this._bottomRightGrid.forceUpdate(), this._topLeftGrid && this._topLeftGrid.forceUpdate(), this._topRightGrid && this._topRightGrid.forceUpdate();
|
|
1592
1592
|
} }, { key: "invalidateCellSizeAfterRender", value: function() {
|
|
1593
1593
|
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;
|
|
@@ -1614,7 +1614,7 @@ var ye = (function() {
|
|
|
1614
1614
|
var i = e.scrollToRow, l = te(e, Mo);
|
|
1615
1615
|
if (this._prepareForRender(), this.props.width === 0 || this.props.height === 0) return null;
|
|
1616
1616
|
var a = this.state, s = a.scrollLeft, c = a.scrollTop;
|
|
1617
|
-
return
|
|
1617
|
+
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 }))));
|
|
1618
1618
|
} }, { key: "_getBottomGridHeight", value: function(e) {
|
|
1619
1619
|
return e.height - this._getTopGridHeight(e);
|
|
1620
1620
|
} }, { key: "_getLeftGridWidth", value: function(e) {
|
|
@@ -1639,48 +1639,48 @@ var ye = (function() {
|
|
|
1639
1639
|
this._deferredInvalidateColumnIndex = null, this._deferredInvalidateRowIndex = null, this.recomputeGridSize({ columnIndex: e, rowIndex: t }), this.forceUpdate();
|
|
1640
1640
|
}
|
|
1641
1641
|
} }, { key: "_maybeCalculateCachedStyles", value: function(e) {
|
|
1642
|
-
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,
|
|
1643
|
-
(e ||
|
|
1642
|
+
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;
|
|
1643
|
+
(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;
|
|
1644
1644
|
} }, { key: "_prepareForRender", value: function() {
|
|
1645
1645
|
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;
|
|
1646
1646
|
} }, { key: "_renderBottomLeftGrid", value: function(e) {
|
|
1647
1647
|
var t = e.enableFixedColumnScroll, n = e.fixedColumnCount, r = e.fixedRowCount, i = e.rowCount, l = e.hideBottomLeftGridScrollbar, a = this.state.showVerticalScrollbar;
|
|
1648
1648
|
if (!n) return null;
|
|
1649
|
-
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 =
|
|
1650
|
-
return l ?
|
|
1649
|
+
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 }));
|
|
1650
|
+
return l ? w.createElement("div", { className: "BottomLeftGrid_ScrollWrapper", style: M(M({}, this._bottomLeftGridStyle), {}, { height: c, width: d, overflowY: "hidden" }) }, u) : u;
|
|
1651
1651
|
} }, { key: "_renderBottomRightGrid", value: function(e) {
|
|
1652
1652
|
var t = e.columnCount, n = e.fixedColumnCount, r = e.fixedRowCount, i = e.rowCount, l = e.scrollToColumn, a = e.scrollToRow;
|
|
1653
|
-
return
|
|
1653
|
+
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) }));
|
|
1654
1654
|
} }, { key: "_renderTopLeftGrid", value: function(e) {
|
|
1655
1655
|
var t = e.fixedColumnCount, n = e.fixedRowCount;
|
|
1656
|
-
return t && n ?
|
|
1656
|
+
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;
|
|
1657
1657
|
} }, { key: "_renderTopRightGrid", value: function(e) {
|
|
1658
1658
|
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;
|
|
1659
1659
|
if (!i) return null;
|
|
1660
|
-
var h = c ? 1 : 0, f = this._getTopGridHeight(e), u = this._getRightGridWidth(e),
|
|
1661
|
-
a && (g = f +
|
|
1662
|
-
var S =
|
|
1663
|
-
return a ?
|
|
1660
|
+
var h = c ? 1 : 0, f = this._getTopGridHeight(e), u = this._getRightGridWidth(e), v = c ? d : 0, g = f, _ = this._topRightGridStyle;
|
|
1661
|
+
a && (g = f + v, _ = M(M({}, this._topRightGridStyle), {}, { left: 0 }));
|
|
1662
|
+
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 }));
|
|
1663
|
+
return a ? w.createElement("div", { className: "TopRightGrid_ScrollWrapper", style: M(M({}, this._topRightGridStyle), {}, { height: f, width: u, overflowX: "hidden" }) }, S) : S;
|
|
1664
1664
|
} }], [{ key: "getDerivedStateFromProps", value: function(e, t) {
|
|
1665
1665
|
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;
|
|
1666
1666
|
} }]);
|
|
1667
1667
|
})();
|
|
1668
|
-
function
|
|
1668
|
+
function Ht() {
|
|
1669
1669
|
try {
|
|
1670
1670
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1671
1671
|
}));
|
|
1672
1672
|
} catch {
|
|
1673
1673
|
}
|
|
1674
|
-
return (
|
|
1674
|
+
return (Ht = function() {
|
|
1675
1675
|
return !!o;
|
|
1676
1676
|
})();
|
|
1677
1677
|
}
|
|
1678
1678
|
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() {
|
|
1679
1679
|
function o(e, t) {
|
|
1680
1680
|
var n, r, i, l;
|
|
1681
|
-
return G(this, o), r = this, l = [e, t], i = I(i = o), (n = H(r,
|
|
1681
|
+
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;
|
|
1682
1682
|
}
|
|
1683
|
-
return W(o,
|
|
1683
|
+
return W(o, w.PureComponent), A(o, [{ key: "render", value: function() {
|
|
1684
1684
|
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;
|
|
1685
1685
|
return e({ clientHeight: n, clientWidth: r, onScroll: this._onScroll, scrollHeight: i, scrollLeft: l, scrollTop: a, scrollWidth: s });
|
|
1686
1686
|
} }, { key: "_onScroll", value: function(e) {
|
|
@@ -1689,27 +1689,27 @@ p(ye, "defaultProps", { classNameBottomLeftGrid: "", classNameBottomRightGrid: "
|
|
|
1689
1689
|
} }]);
|
|
1690
1690
|
})().propTypes = {};
|
|
1691
1691
|
var le = "ASC", be = "DESC";
|
|
1692
|
-
function
|
|
1692
|
+
function Wt(o) {
|
|
1693
1693
|
var e = o.sortDirection, t = N("ReactVirtualized__Table__sortableHeaderIcon", { "ReactVirtualized__Table__sortableHeaderIcon--ASC": e === le, "ReactVirtualized__Table__sortableHeaderIcon--DESC": e === be });
|
|
1694
|
-
return
|
|
1694
|
+
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" }));
|
|
1695
1695
|
}
|
|
1696
|
-
function
|
|
1696
|
+
function Dt() {
|
|
1697
1697
|
try {
|
|
1698
1698
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1699
1699
|
}));
|
|
1700
1700
|
} catch {
|
|
1701
1701
|
}
|
|
1702
|
-
return (
|
|
1702
|
+
return (Dt = function() {
|
|
1703
1703
|
return !!o;
|
|
1704
1704
|
})();
|
|
1705
1705
|
}
|
|
1706
|
-
|
|
1706
|
+
Wt.propTypes = {};
|
|
1707
1707
|
var pe = (function() {
|
|
1708
1708
|
function o() {
|
|
1709
|
-
return G(this, o), e = this, n = arguments, t = I(t = o), H(e,
|
|
1709
|
+
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));
|
|
1710
1710
|
var e, t, n;
|
|
1711
1711
|
}
|
|
1712
|
-
return W(o,
|
|
1712
|
+
return W(o, w.Component), A(o);
|
|
1713
1713
|
})();
|
|
1714
1714
|
function it(o, e) {
|
|
1715
1715
|
var t = Object.keys(o);
|
|
@@ -1732,13 +1732,13 @@ function B(o) {
|
|
|
1732
1732
|
}
|
|
1733
1733
|
return o;
|
|
1734
1734
|
}
|
|
1735
|
-
function
|
|
1735
|
+
function jt() {
|
|
1736
1736
|
try {
|
|
1737
1737
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1738
1738
|
}));
|
|
1739
1739
|
} catch {
|
|
1740
1740
|
}
|
|
1741
|
-
return (
|
|
1741
|
+
return (jt = function() {
|
|
1742
1742
|
return !!o;
|
|
1743
1743
|
})();
|
|
1744
1744
|
}
|
|
@@ -1749,15 +1749,15 @@ p(pe, "defaultProps", { cellDataGetter: function(o) {
|
|
|
1749
1749
|
var e = o.cellData;
|
|
1750
1750
|
return e == null ? "" : String(e);
|
|
1751
1751
|
}, defaultSortDirection: le, flexGrow: 0, flexShrink: 1, headerRenderer: function(o) {
|
|
1752
|
-
var e = o.dataKey, t = o.label, n = o.sortBy, r = o.sortDirection, i = n === e, l = [
|
|
1753
|
-
return i && l.push(
|
|
1752
|
+
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)];
|
|
1753
|
+
return i && l.push(w.createElement(Wt, { key: "SortIndicator", sortDirection: r })), l;
|
|
1754
1754
|
}, style: {} }), pe.propTypes = {};
|
|
1755
1755
|
var ze = (function() {
|
|
1756
1756
|
function o(e) {
|
|
1757
1757
|
var t, n, r, i;
|
|
1758
|
-
return G(this, o), n = this, i = [e], r = I(r = o), (t = H(n,
|
|
1758
|
+
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;
|
|
1759
1759
|
}
|
|
1760
|
-
return W(o,
|
|
1760
|
+
return W(o, w.PureComponent), A(o, [{ key: "forceUpdateGrid", value: function() {
|
|
1761
1761
|
this.Grid && this.Grid.forceUpdate();
|
|
1762
1762
|
} }, { key: "getOffsetForRow", value: function(e) {
|
|
1763
1763
|
var t = e.alignment, n = e.index;
|
|
@@ -1790,38 +1790,38 @@ var ze = (function() {
|
|
|
1790
1790
|
} }, { key: "componentDidUpdate", value: function() {
|
|
1791
1791
|
this._setScrollbarWidth();
|
|
1792
1792
|
} }, { key: "render", value: function() {
|
|
1793
|
-
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,
|
|
1794
|
-
return this._cachedColumnStyles = [],
|
|
1793
|
+
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;
|
|
1794
|
+
return this._cachedColumnStyles = [], w.Children.toArray(n).forEach(function(R, b) {
|
|
1795
1795
|
var z = e._getFlexStyleForColumn(R, R.props.style || pe.defaultProps.style);
|
|
1796
1796
|
e._cachedColumnStyles[b] = B({ overflow: "hidden" }, z);
|
|
1797
|
-
}),
|
|
1797
|
+
}), 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" }) })));
|
|
1798
1798
|
} }, { key: "_createColumn", value: function(e) {
|
|
1799
|
-
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,
|
|
1800
|
-
return
|
|
1801
|
-
s && s({ columnData: u, dataKey:
|
|
1802
|
-
}, role: "gridcell", style: S, title: y },
|
|
1799
|
+
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;
|
|
1800
|
+
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) {
|
|
1801
|
+
s && s({ columnData: u, dataKey: v, event: m });
|
|
1802
|
+
}, role: "gridcell", style: S, title: y }, _);
|
|
1803
1803
|
} }, { key: "_createHeader", value: function(e) {
|
|
1804
|
-
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,
|
|
1804
|
+
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)), P = x({ columnData: S, dataKey: y, disableSort: C, label: b, sortBy: v, sortDirection: g });
|
|
1805
1805
|
if (z || f) {
|
|
1806
|
-
var k =
|
|
1807
|
-
z && u({ defaultSortDirection:
|
|
1806
|
+
var k = v !== y ? m : g === be ? le : be, E = function(j) {
|
|
1807
|
+
z && u({ defaultSortDirection: m, event: j, sortBy: y, sortDirection: k }), f && f({ columnData: S, dataKey: y, event: j });
|
|
1808
1808
|
};
|
|
1809
1809
|
l = a.props["aria-label"] || b || y, i = "none", r = 0, t = E, n = function(j) {
|
|
1810
1810
|
j.key !== "Enter" && j.key !== " " || E(j);
|
|
1811
1811
|
};
|
|
1812
1812
|
}
|
|
1813
|
-
return
|
|
1813
|
+
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 }, P);
|
|
1814
1814
|
} }, { key: "_createRow", value: function(e) {
|
|
1815
|
-
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,
|
|
1816
|
-
return t._createColumn({ column: O, columnIndex: P, isScrolling: r, parent: l, rowData: R, rowIndex: n, scrollbarWidth:
|
|
1817
|
-
}), z = N("ReactVirtualized__Table__row",
|
|
1818
|
-
return S({ className: z, columns: b, index: n, isScrolling: r, key: i, onRowClick: d, onRowDoubleClick: h, onRowRightClick: f, onRowMouseOver: u, onRowMouseOut:
|
|
1815
|
+
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, P) {
|
|
1816
|
+
return t._createColumn({ column: O, columnIndex: P, isScrolling: r, parent: l, rowData: R, rowIndex: n, scrollbarWidth: m });
|
|
1817
|
+
}), z = N("ReactVirtualized__Table__row", C), T = B(B({}, a), {}, { height: this._getRowHeight(n), overflow: "hidden", paddingRight: m }, x);
|
|
1818
|
+
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 });
|
|
1819
1819
|
} }, { key: "_getFlexStyleForColumn", value: function(e) {
|
|
1820
1820
|
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 });
|
|
1821
1821
|
return e.props.maxWidth && (r.maxWidth = e.props.maxWidth), e.props.minWidth && (r.minWidth = e.props.minWidth), r;
|
|
1822
1822
|
} }, { key: "_getHeaderColumns", value: function() {
|
|
1823
1823
|
var e = this, t = this.props, n = t.children;
|
|
1824
|
-
return (t.disableHeader ? [] :
|
|
1824
|
+
return (t.disableHeader ? [] : w.Children.toArray(n)).map(function(r, i) {
|
|
1825
1825
|
return e._createHeader({ column: r, index: i });
|
|
1826
1826
|
});
|
|
1827
1827
|
} }, { key: "_getRowHeight", value: function(e) {
|
|
@@ -1848,7 +1848,7 @@ p(ze, "defaultProps", { disableHeader: !1, estimatedRowSize: 30, headerHeight: 0
|
|
|
1848
1848
|
return null;
|
|
1849
1849
|
}, onScroll: function() {
|
|
1850
1850
|
return null;
|
|
1851
|
-
}, overscanIndicesGetter:
|
|
1851
|
+
}, overscanIndicesGetter: kt, overscanRowCount: 10, rowRenderer: function(o) {
|
|
1852
1852
|
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 };
|
|
1853
1853
|
return (i || l || a || s || c) && (f["aria-label"] = "row", f.tabIndex = 0, i && (f.onClick = function(u) {
|
|
1854
1854
|
return i({ event: u, index: n, rowData: d });
|
|
@@ -1860,21 +1860,21 @@ p(ze, "defaultProps", { disableHeader: !1, estimatedRowSize: 30, headerHeight: 0
|
|
|
1860
1860
|
return s({ event: u, index: n, rowData: d });
|
|
1861
1861
|
}), c && (f.onContextMenu = function(u) {
|
|
1862
1862
|
return c({ event: u, index: n, rowData: d });
|
|
1863
|
-
})),
|
|
1863
|
+
})), w.createElement("div", U({}, f, { className: e, key: r, role: "row", style: h }), t);
|
|
1864
1864
|
}, headerRowRenderer: function(o) {
|
|
1865
1865
|
var e = o.className, t = o.columns, n = o.style;
|
|
1866
|
-
return
|
|
1866
|
+
return w.createElement("div", { className: e, role: "row", style: n }, t);
|
|
1867
1867
|
}, rowStyle: {}, scrollToAlignment: "auto", scrollToIndex: -1, style: {} }), ze.propTypes = {};
|
|
1868
1868
|
var K = [], re = null, $ = null;
|
|
1869
|
-
function
|
|
1869
|
+
function Ft() {
|
|
1870
1870
|
$ && ($ = null, document.body && re != null && (document.body.style.pointerEvents = re), re = null);
|
|
1871
1871
|
}
|
|
1872
1872
|
function Lo() {
|
|
1873
|
-
|
|
1873
|
+
Ft(), K.forEach(function(o) {
|
|
1874
1874
|
return o.__resetIsScrolling();
|
|
1875
1875
|
});
|
|
1876
1876
|
}
|
|
1877
|
-
function
|
|
1877
|
+
function Nt(o) {
|
|
1878
1878
|
o.currentTarget === window && re == null && document.body && (re = document.body.style.pointerEvents, document.body.style.pointerEvents = "none"), (function() {
|
|
1879
1879
|
$ && Z($);
|
|
1880
1880
|
var e = 0;
|
|
@@ -1888,12 +1888,12 @@ function Ft(o) {
|
|
|
1888
1888
|
function lt(o, e) {
|
|
1889
1889
|
K.some(function(t) {
|
|
1890
1890
|
return t.props.scrollElement === e;
|
|
1891
|
-
}) || e.addEventListener("scroll",
|
|
1891
|
+
}) || e.addEventListener("scroll", Nt), K.push(o);
|
|
1892
1892
|
}
|
|
1893
1893
|
function st(o, e) {
|
|
1894
1894
|
(K = K.filter(function(t) {
|
|
1895
1895
|
return t !== o;
|
|
1896
|
-
})).length || (e.removeEventListener("scroll",
|
|
1896
|
+
})).length || (e.removeEventListener("scroll", Nt), $ && (Z($), Ft()));
|
|
1897
1897
|
}
|
|
1898
1898
|
var Pe = function(o) {
|
|
1899
1899
|
return o === window;
|
|
@@ -1934,24 +1934,24 @@ function ut(o) {
|
|
|
1934
1934
|
}
|
|
1935
1935
|
return o;
|
|
1936
1936
|
}
|
|
1937
|
-
function
|
|
1937
|
+
function Bt() {
|
|
1938
1938
|
try {
|
|
1939
1939
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1940
1940
|
}));
|
|
1941
1941
|
} catch {
|
|
1942
1942
|
}
|
|
1943
|
-
return (
|
|
1943
|
+
return (Bt = function() {
|
|
1944
1944
|
return !!o;
|
|
1945
1945
|
})();
|
|
1946
1946
|
}
|
|
1947
|
-
var
|
|
1947
|
+
var Ut = function() {
|
|
1948
1948
|
return typeof window < "u" ? window : void 0;
|
|
1949
1949
|
}, Go = (function() {
|
|
1950
1950
|
function o() {
|
|
1951
1951
|
var e, t, n, r;
|
|
1952
1952
|
G(this, o);
|
|
1953
1953
|
for (var i = arguments.length, l = new Array(i), a = 0; a < i; a++) l[a] = arguments[a];
|
|
1954
|
-
return t = this, n = o, r = [].concat(l), n = I(n), p(e = H(t,
|
|
1954
|
+
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) {
|
|
1955
1955
|
!s || s instanceof Element || console.warn("WindowScroller registerChild expects to be passed Element or null"), e._child = s, e.updatePosition();
|
|
1956
1956
|
}), p(e, "_onChildScroll", function(s) {
|
|
1957
1957
|
var c = s.scrollTop;
|
|
@@ -1977,7 +1977,7 @@ var Bt = function() {
|
|
|
1977
1977
|
e.setState({ isScrolling: !1 });
|
|
1978
1978
|
}), e;
|
|
1979
1979
|
}
|
|
1980
|
-
return W(o,
|
|
1980
|
+
return W(o, w.PureComponent), A(o, [{ key: "updatePosition", value: function() {
|
|
1981
1981
|
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;
|
|
1982
1982
|
if (l instanceof Element && e) {
|
|
1983
1983
|
var a = (function(c, d) {
|
|
@@ -1985,8 +1985,8 @@ var Bt = function() {
|
|
|
1985
1985
|
var h = document.documentElement, f = oe(c), u = oe(h);
|
|
1986
1986
|
return { top: f.top - u.top, left: f.left - u.left };
|
|
1987
1987
|
}
|
|
1988
|
-
var
|
|
1989
|
-
return { top: g.top +
|
|
1988
|
+
var v = ct(d), g = oe(c), _ = oe(d);
|
|
1989
|
+
return { top: g.top + v.top - _.top, left: g.left + v.left - _.left };
|
|
1990
1990
|
})(l, e);
|
|
1991
1991
|
this._positionFromTop = a.top, this._positionFromLeft = a.left;
|
|
1992
1992
|
}
|
|
@@ -1994,7 +1994,7 @@ var Bt = function() {
|
|
|
1994
1994
|
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());
|
|
1995
1995
|
} }, { key: "componentDidMount", value: function() {
|
|
1996
1996
|
var e = this.props.scrollElement;
|
|
1997
|
-
this._detectElementResize =
|
|
1997
|
+
this._detectElementResize = wt(), this.updatePosition(e), e && (lt(this, e), this._registerResizeListener(e)), this._isMounted = !0;
|
|
1998
1998
|
} }, { key: "componentDidUpdate", value: function(e, t) {
|
|
1999
1999
|
var n = this.props.scrollElement, r = e.scrollElement;
|
|
2000
2000
|
r !== n && r != null && n != null && (this.updatePosition(n), st(this, r), lt(this, n), this._unregisterResizeListener(r), this._registerResizeListener(n));
|
|
@@ -2003,25 +2003,29 @@ var Bt = function() {
|
|
|
2003
2003
|
e && (st(this, e), this._unregisterResizeListener(e)), this._isMounted = !1;
|
|
2004
2004
|
} }, { key: "render", value: function() {
|
|
2005
2005
|
var e = this.props.children, t = this.state, n = t.isScrolling, r = t.scrollTop, i = t.scrollLeft, l = t.height, a = t.width;
|
|
2006
|
-
return
|
|
2006
|
+
return w.createElement("div", { ref: this._windowScrollerRef }, e({ onChildScroll: this._onChildScroll, registerChild: this._registerChild, height: l, isScrolling: n, scrollLeft: i, scrollTop: r, width: a }));
|
|
2007
2007
|
} }]);
|
|
2008
2008
|
})();
|
|
2009
2009
|
p(Go, "defaultProps", { onResize: function() {
|
|
2010
2010
|
}, onScroll: function() {
|
|
2011
|
-
}, scrollingResetTimeInterval: 150, scrollElement:
|
|
2012
|
-
const ne = "ReactVirtualizedDemo-flexContainer",
|
|
2013
|
-
class Ao extends
|
|
2011
|
+
}, scrollingResetTimeInterval: 150, scrollElement: Ut(), serverHeight: 0, serverWidth: 0 });
|
|
2012
|
+
const ne = "ReactVirtualizedDemo-flexContainer", Vt = "ReactVirtualizedDemo-tableRow", $t = "ReactVirtualizedDemo-tableRowHover", Te = "ReactVirtualizedDemo-tableCell", Ie = "ReactVirtualizedDemo-noClick";
|
|
2013
|
+
class Ao extends gt.PureComponent {
|
|
2014
2014
|
constructor() {
|
|
2015
2015
|
super(...arguments), this.getRowClassName = ({ index: e }) => {
|
|
2016
2016
|
const { onRowClick: t } = this.props;
|
|
2017
|
-
return me(
|
|
2018
|
-
}, this.cellRenderer = ({ cellData: e,
|
|
2019
|
-
const { columns:
|
|
2020
|
-
let
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2017
|
+
return me(Vt, ne, { [$t]: e !== -1 && t != null });
|
|
2018
|
+
}, this.cellRenderer = ({ cellData: e, rowData: t, dataKey: n, columnIndex: r, width: i }) => {
|
|
2019
|
+
const { columns: l, rowHeight: a, onRowClick: s } = this.props;
|
|
2020
|
+
let c = e, d = { height: a, paddingRight: "2px", paddingTop: "0px", paddingBottom: "0px", minWidth: `${i}px`, maxWidth: `${i}px` };
|
|
2021
|
+
if (n === "shortcut" ? c = ao(e) : n === "description" && (d = { ...d, fontSize: ".75rem", display: "block", paddingTop: "4px", paddingRight: "8px", whiteSpace: "pre-line" }), n === "label") {
|
|
2022
|
+
let h = t.icon;
|
|
2023
|
+
h && typeof h != "string" || (h = L.jsx(pt, { iconKey: h })), c = L.jsxs("div", { style: { display: "flex", alignItems: "center", gap: "8px" }, children: [h, e] });
|
|
2024
|
+
}
|
|
2025
|
+
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 });
|
|
2026
|
+
}, this.headerRenderer = ({ label: e, columnIndex: t, dataKey: n, width: r }) => {
|
|
2027
|
+
const { headerHeight: i, columns: l } = this.props, a = l[t];
|
|
2028
|
+
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 }) });
|
|
2025
2029
|
};
|
|
2026
2030
|
}
|
|
2027
2031
|
static {
|
|
@@ -2029,54 +2033,54 @@ class Ao extends pt.PureComponent {
|
|
|
2029
2033
|
}
|
|
2030
2034
|
render() {
|
|
2031
2035
|
const { columns: e, rowHeight: t, headerHeight: n, ...r } = this.props;
|
|
2032
|
-
return L.jsx(
|
|
2036
|
+
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) => {
|
|
2033
2037
|
const f = c ? l - c : s;
|
|
2034
|
-
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:
|
|
2038
|
+
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);
|
|
2035
2039
|
}) }) });
|
|
2036
2040
|
}
|
|
2037
2041
|
}
|
|
2038
|
-
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" }, [`& .${
|
|
2042
|
+
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" } }));
|
|
2039
2043
|
function Ho(o) {
|
|
2040
|
-
const { commands: e, ...t } = o, [n, r] =
|
|
2044
|
+
const { commands: e, ...t } = o, [n, r] = w.useState(!1), [i, l] = w.useState(""), a = w.useMemo(() => {
|
|
2041
2045
|
let u = e.getAllCommands();
|
|
2042
|
-
n || (u = u.filter((
|
|
2043
|
-
const
|
|
2044
|
-
`);
|
|
2045
|
-
for (let
|
|
2046
|
-
const
|
|
2047
|
-
if (Array.isArray(
|
|
2048
|
-
const
|
|
2049
|
-
for (let
|
|
2050
|
-
} else
|
|
2046
|
+
n || (u = u.filter((S) => S.command.shortcut())), u.sort((S, y) => S.command.label().localeCompare(y.command.label()));
|
|
2047
|
+
const v = [], g = (S) => S.replace(/\n\n/g, `
|
|
2048
|
+
`), _ = u.length;
|
|
2049
|
+
for (let S = 0; S < _; S++) {
|
|
2050
|
+
const y = u[S].command, m = y.shortcut();
|
|
2051
|
+
if (Array.isArray(m)) {
|
|
2052
|
+
const C = m, x = C.length;
|
|
2053
|
+
for (let R = 0; R < x; R++) v.push({ label: y.label(), icon: y.icon(), description: g(y.description()), shortcut: C[R] });
|
|
2054
|
+
} else v.push({ label: y.label(), icon: y.icon(), description: g(y.description()), shortcut: y.shortcut() });
|
|
2051
2055
|
}
|
|
2052
|
-
return
|
|
2053
|
-
}, [n, e]), [s, c] =
|
|
2054
|
-
|
|
2055
|
-
import("./
|
|
2056
|
+
return v;
|
|
2057
|
+
}, [n, e]), [s, c] = w.useState(null);
|
|
2058
|
+
w.useEffect(() => {
|
|
2059
|
+
import("./DXps-gn4Z0b70HV6.js").then((u) => {
|
|
2056
2060
|
c(new u.default(a, { threshold: 0, ignoreLocation: !0, keys: ["label", "description"] }));
|
|
2057
2061
|
});
|
|
2058
2062
|
}, [a]);
|
|
2059
|
-
const [d, h] =
|
|
2060
|
-
return
|
|
2061
|
-
s &&
|
|
2063
|
+
const [d, h] = w.useState(a), f = i.length > 0 && d.length === 0;
|
|
2064
|
+
return w.useEffect(() => {
|
|
2065
|
+
s && to.debounce(() => {
|
|
2062
2066
|
if (i.trim().length === 0) return void h(a);
|
|
2063
|
-
const u = s.search(i.trim()),
|
|
2064
|
-
for (let g = 0; g < u.length; g++)
|
|
2065
|
-
h(
|
|
2067
|
+
const u = s.search(i.trim()), v = new Array(u.length);
|
|
2068
|
+
for (let g = 0; g < u.length; g++) v[g] = u[g].item;
|
|
2069
|
+
h(v);
|
|
2066
2070
|
}, 90)();
|
|
2067
|
-
}, [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(
|
|
2071
|
+
}, [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) => {
|
|
2068
2072
|
l(u.target.value);
|
|
2069
2073
|
}, onKeyDown: (u) => {
|
|
2070
2074
|
u.which === ft.Escape && i.length > 0 && (l(""), u.stopPropagation(), u.preventDefault());
|
|
2071
2075
|
}, onContextMenu: (u) => {
|
|
2072
2076
|
u.stopPropagation();
|
|
2073
|
-
} }), 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:
|
|
2077
|
+
} }), 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" : ""}` }) })] });
|
|
2074
2078
|
}
|
|
2075
2079
|
const Fo = (o) => {
|
|
2076
2080
|
const { title: e = "Shortcut Keys", commands: t, sx: n, ...r } = o;
|
|
2077
|
-
return L.jsx(
|
|
2081
|
+
return L.jsx(Qt, { isModal: !0, onKeyDown: (i) => {
|
|
2078
2082
|
i.keyCode === ft.F1 && i.preventDefault();
|
|
2079
|
-
}, sx: { width: "780px", ...n }, title: e, autoFocusSel: ".input", ...r, children: L.jsx(
|
|
2083
|
+
}, sx: { width: "780px", ...n }, title: e, autoFocusSel: ".input", ...r, children: L.jsx(eo, { dividers: !0, children: L.jsx(Ho, { commands: t, sx: { marginBottom: "8px" } }) }) });
|
|
2080
2084
|
};
|
|
2081
2085
|
export {
|
|
2082
2086
|
Fo as default
|