@sheetxl/studio-vanilla 0.4.20 → 0.4.22
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/{BdltTXLt7iZT8sku.cjs → -AkvO2DXLOxJTxam.cjs} +1 -1
- package/browser/cjs/{dQ_t_glP-41DsAl-.cjs → 3CSmmG7E8ziDB1mP.cjs} +1 -1
- package/browser/cjs/{BKow6xaj0GHFH5-V.cjs → 7nEG2wj_Ohie6CwI.cjs} +1 -1
- package/browser/cjs/{DlL3FUzHZ4HVF-yg.cjs → B0aLqzqegePPgpc2.cjs} +1 -1
- package/browser/cjs/B9GyERAqyIxdqS4D.cjs +145 -0
- package/browser/cjs/BO8oGaHWFtHyxmQ1.cjs +6 -0
- package/browser/cjs/{B3IrGavp2xDl72qi.cjs → BPODmSH7Z1MR1rHr.cjs} +3 -3
- package/browser/cjs/{BDxykI6GcXpGGGMz.cjs → BS0bGW4PmNinQUvL.cjs} +7 -7
- package/browser/cjs/{Bf-D_AYDbEeRcsvz.cjs → BY3tZiH_cfwBkpN8.cjs} +1 -1
- package/browser/cjs/BYRBdz-9UGZ0b_AO.cjs +7 -0
- package/browser/cjs/{Dn5IBCKPuNI0ypyZ.cjs → BZvC7PqILOVRl2ij.cjs} +1 -1
- package/browser/cjs/Bc6lVP0c3mEzf_yK.cjs +6 -0
- package/browser/cjs/Bdm_fGdkK4-pZ0tW.cjs +6 -0
- package/browser/cjs/{IxfGyvVPF27qqDF3.cjs → Bi2-QXq5KvbsAXoB.cjs} +1 -1
- package/browser/cjs/Bk2cFYnTKxP7WbLy.cjs +6 -0
- package/browser/cjs/{DHiQ_sK8f-95Ft4X.cjs → BlojFx4yQfY8ahEJ.cjs} +2 -2
- package/browser/cjs/BvEv8i6SisfC24C1.cjs +7 -0
- package/browser/cjs/{CX82d7xySIGMF7yM.cjs → Bzntg1YSzOszdwLy.cjs} +1 -1
- package/browser/cjs/C9oIS5xxO9B7vS3W.cjs +6 -0
- package/browser/cjs/{D6WxWENDWFXA_esX.cjs → C9xTKWx1tr6NZFC8.cjs} +1 -1
- package/browser/cjs/{BC_a9wiziJZdu6Au.cjs → CCu9cK1DUD4oa3Nj.cjs} +1 -1
- package/browser/cjs/{C4AWzM1Uh9cuE1A9.cjs → CIeiC9TKv80O2_fQ.cjs} +1 -1
- package/browser/cjs/{zreCxaXU5L2iHQ99.cjs → COuRf_8YbqEsDQOC.cjs} +1 -1
- package/browser/cjs/{DMpqQkdCfg2AjXjR.cjs → CQRZm8lGq26oKY31.cjs} +1 -1
- package/browser/cjs/CYmpgLiDS0ZlbG11.cjs +6 -0
- package/browser/cjs/CZltonq1gEczLRHi.cjs +32 -0
- package/browser/cjs/Cf1j7hiCbQ8xo4_U.cjs +7 -0
- package/browser/cjs/{CW5RuE4isKBlwHmQ.cjs → CknjEH7DZBnqyPfk.cjs} +1 -1
- package/browser/cjs/{iIOyWIrlq0JiZyZX.cjs → ClEc15AqSTFOf5zG.cjs} +1 -1
- package/browser/cjs/{CTPgM-UqKCo4_hd1.cjs → CrUZUIz00uPDq4EA.cjs} +1 -1
- package/browser/cjs/{BOAxaoihJZZzZXhd.cjs → Cv1BFY5pqPtJd8qO.cjs} +1 -1
- package/browser/cjs/CvvHAxM5SO6mwsyq.cjs +161 -0
- package/browser/cjs/{BK6DsykAfJG4V-cJ.cjs → Cvwrl86aXHFXJVZZ.cjs} +1 -1
- package/browser/cjs/CwgzE59YUQ1eOTBi.cjs +6 -0
- package/browser/cjs/{BSlU398ba-ACAG1g.cjs → D3qzZXPgfAtKIAP9.cjs} +6 -6
- package/browser/cjs/{Dp6UwWmFehNr8oln.cjs → D7q2GFLhv9QRTZJe.cjs} +1 -1
- package/browser/cjs/{D3hV1-QRPKCq0om8.cjs → DB2WR3LaeOhkCAXY.cjs} +2 -2
- package/browser/cjs/{BndDL5HS4RNIfwOd.cjs → DFJ4dyRxiUF1XPPZ.cjs} +6 -6
- package/browser/cjs/{jX_tynzFoHAGPZOz.cjs → DJMpu6kYQUW3FWjs.cjs} +1 -1
- package/browser/cjs/{CSM5H5PTjrTaUgKK.cjs → DL7DCFUaFkr2LYhZ.cjs} +1 -1
- package/browser/cjs/{CXik9BghKbVW93T0.cjs → DMMZr350oW-Zan7x.cjs} +24 -24
- package/browser/cjs/{d6ywgaNww4eYXcem.cjs → DMfk3didwdGQLc0i.cjs} +4 -4
- package/browser/cjs/DaEdjRWwuNebE2hn.cjs +6 -0
- package/browser/cjs/Dd7vDdIeQaFScMRQ.cjs +6 -0
- package/browser/cjs/{DUjgS2e8jjyhZF41.cjs → Df9S9eEGYxA_EcEr.cjs} +1 -1
- package/browser/cjs/{CKa-Z1SfYc0pkIX2.cjs → DgSAPPq-D_vlo9jE.cjs} +1 -1
- package/browser/cjs/DmtZLv1wnSxRzPiR.cjs +6 -0
- package/browser/cjs/{CvYl4W2vXnvHHHoI.cjs → DqlFSswn_reXyFz8.cjs} +1 -1
- package/browser/cjs/{CeLG8vmgbEkx4oD1.cjs → Dws_eDddoJKDPps_.cjs} +1 -1
- package/browser/cjs/HyVntu9KkvdKrJEt.cjs +16 -0
- package/browser/cjs/{QonkTPcCkOm4Mvas.cjs → Iek_K8QW1doYx_eo.cjs} +1 -1
- package/browser/cjs/QJFc55OPrJyuRvDO.cjs +19 -0
- package/browser/cjs/QxU4KIgsHZuVigdy.cjs +329 -0
- package/browser/cjs/cOAjfOdF1cb-xgQG.cjs +6 -0
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{Bhlan81dumwgyb0S.cjs → kQ8wVygFJMcxlUv-.cjs} +1 -1
- package/browser/cjs/{D2J4RLkySRIXFbsa.cjs → tVbeAmLkaH_1Jy7R.cjs} +2 -2
- package/browser/cjs/wNoDw92hvq2txBki.cjs +11 -0
- package/browser/esm/2d2eGHpsnUoCOFMT.mjs +47 -0
- package/browser/esm/{BqgjdQ15LFcefVOZ.mjs → AVmCEk8Fmiw2k_yK.mjs} +2 -2
- package/browser/esm/B0A2aLiKDPGGU4k-.mjs +44515 -0
- package/{cdn/assets/DmXkRZFP-WnV2YT9.js → browser/esm/BBov1fpR61VyhE3Z.mjs} +1 -1
- package/{cdn/assets/BS_-p_4yMCoR9FTp.js → browser/esm/BJD32_Zv5gkabGc0.mjs} +1 -1
- package/browser/esm/{Bmfu8IUFzu9KyCkA.mjs → BJqIPJDvrhWpZc4S.mjs} +1 -1
- package/{cdn/assets/KUyPDaQO4D8lwO7O.js → browser/esm/BKYjPTKdwG8Dn1_Z.mjs} +1 -1
- package/browser/esm/{JdOvTKCcf5acl7vA.mjs → BQfnqD12mz41DOr_.mjs} +1 -1
- package/{cdn/assets/BfiejFYnvgVrrJPI.js → browser/esm/BSdVpOzJ8SL3EBhP.mjs} +1 -1
- package/browser/esm/{KWZAe-e6U7Po4gCx.mjs → BVuoKgnuqrUwY6Fv.mjs} +15 -15
- package/browser/esm/{RvEM-YtFLw3OMG0V.mjs → Ba4SdTfCAvYS7a3O.mjs} +2 -2
- package/browser/esm/{D2L4EVLdv-YwKGoi.mjs → BajFlIH_X_nvDNfp.mjs} +2 -2
- package/browser/esm/{BGJaDv3Ih-M1lFCD.mjs → Bb0W3ByMVowTViNK.mjs} +1 -1
- package/browser/esm/{DWnopZ6R26qNLVyV.mjs → BmyjN5txj3iMw_DE.mjs} +1 -1
- package/{cdn/assets/B6c_mMwG96t6MlCE.js → browser/esm/BpFA0UU_TF4JO3dh.mjs} +1 -1
- package/browser/esm/Btr2FDDtI_fht0WU.mjs +1466 -0
- package/{cdn/assets/S2TZ7C9tQtDNeeGo.js → browser/esm/Bzg-D_R4sXN-wyMx.mjs} +1 -1
- package/browser/esm/C2xOGr0pDSHSMKoW.mjs +1366 -0
- package/{cdn/assets/CpDyqZXpstRo2buW.js → browser/esm/CAal3t8F-VfdmgAH.mjs} +1 -1
- package/browser/esm/{DlASr70UXrIpKZQO.mjs → CBPeZuyUIf9scEwn.mjs} +722 -815
- package/{cdn/assets/Bnpwlyv8i_gnevRF.js → browser/esm/CCjuiVOyesh1IQpA.mjs} +1861 -1859
- package/browser/esm/{Cjp7NabZ26PaBnIT.mjs → CDnNRZ7jINT_Dr0K.mjs} +4 -4
- package/browser/esm/{DJx6S7TOhQyWdjS5.mjs → CQaM4Ka20cP71fl0.mjs} +1 -1
- package/browser/esm/{VYFESZA0Jc8C13ZT.mjs → CVlIOg6F8qrZdlQ1.mjs} +1 -1
- package/{cdn/assets/dWGGn8a_Ez8kVjgZ.js → browser/esm/Cbq2K4YGny5wwFEf.mjs} +1 -1
- package/browser/esm/CfeqmUm-TkCE2XpK.mjs +260 -0
- package/{cdn/assets/_sUvLBCLSPhV2gF6.js → browser/esm/Ckb6l6osoWh90VXn.mjs} +1 -1
- package/{cdn/assets/Bj6XCGohW0EagXDQ.js → browser/esm/CkccSfJEU471_Sui.mjs} +8 -8
- package/browser/esm/{2vIB3gG-Ct-P7aHY.mjs → Cl0mB61JgZYfTh4S.mjs} +1 -1
- package/browser/esm/{CXSiJ-t5xz78GMwK.mjs → Cm7pnWH_xgLwX_lZ.mjs} +1 -1
- package/browser/esm/{CPchasanZLQiASse.mjs → Co_HyodT3prcEvNJ.mjs} +1 -1
- package/{cdn/assets/glJJyP0v0nlhAzqM.js → browser/esm/CsBIABPdnqpcZcvJ.mjs} +1 -1
- package/browser/esm/{CT_g1GDC8_vSGR0o.mjs → CslKfn0zxkGKrM4-.mjs} +19 -19
- package/browser/esm/{B4ABRWtE31zu8-wJ.mjs → Cx0a1WWRvJgDg4qb.mjs} +7 -7
- package/browser/esm/{BRzxK84abQUinUUx.mjs → D-QFKqWRP5dKwynV.mjs} +1 -1
- package/browser/esm/{DsabS3TdXZB45_O2.mjs → DWgbhx4Y4WzyAP3Z.mjs} +4 -4
- package/browser/esm/DgFIjoPrM5dmrLHT.mjs +392 -0
- package/{cdn/assets/giu63J2gO2p8JJIf.js → browser/esm/Dk_OZhcDLapTaNma.mjs} +1 -1
- package/{cdn/assets/CSDiL3gZro2_BYTj.js → browser/esm/Dp--KMDeqecbq_Wc.mjs} +1 -1
- package/browser/esm/Dva_qJrZGvFYbRxZ.mjs +21 -0
- package/browser/esm/DxJfUV0HFQT8g6H_.mjs +39 -0
- package/browser/esm/{Dkf0_o7D9GkUfOZy.mjs → Dxqx7qwqE6wbYSpB.mjs} +36 -36
- package/{cdn/assets/D7bqIxhqlHgc3Fih.js → browser/esm/ObudKUELIfmbm87W.mjs} +1 -1
- package/browser/esm/{B1qmfUH_Mmjtp3JU.mjs → SGprYj0-SzDtrM3y.mjs} +13 -13
- package/browser/esm/{CmLCIveZbsUFrSOH.mjs → SmC3rmOCw-Ynredz.mjs} +672 -665
- package/browser/esm/{CA33PnXmPNl09v6w.mjs → T263hpnj_sMd1bmD.mjs} +23 -23
- package/browser/esm/{DaoqFa2lhVoZvd16.mjs → Ys1OCodY6sXUkZ6-.mjs} +102 -99
- package/{cdn/assets/xbsV0YR05atX96kb.js → browser/esm/aqvSzH4m6bf7ODc6.mjs} +1 -1
- package/browser/esm/{Bz0TojPavQ5NTjyD.mjs → d49_A3euUkzKZure.mjs} +1 -1
- package/browser/esm/d8r4AqRUASAMCbBC.mjs +1352 -0
- package/browser/esm/{CVvfga1mKyvzrvCr.mjs → fgXzhDR19HBK6PEW.mjs} +6 -6
- package/browser/esm/{Be9tvHxvnxnHNRa4.mjs → g2unVUs-HBGBvXMs.mjs} +1 -1
- package/browser/esm/gzl_ozUgkS0mr_32.mjs +13391 -0
- package/browser/esm/index.mjs +2 -2
- package/browser/esm/kbK4ZGVl1tl5F-UA.mjs +41 -0
- package/browser/esm/oAfM3SU0EgMxfDc0.mjs +3802 -0
- package/browser/esm/{BFUWwMA9uskwVkew.mjs → oUl7lbkOPMCi30tO.mjs} +1 -1
- package/browser/esm/{Dvo7tXJcgnIXR-H7.mjs → tAl8qMu6C0Vlq5p-.mjs} +670 -667
- package/cdn/assets/1we1udiYEDagZ5XN.js +241 -0
- package/cdn/assets/8d4z_mUqWF_BnOt4.js +6481 -0
- package/cdn/assets/B-ol51_1jHaCVeGO.js +3802 -0
- package/cdn/assets/B2I5EC8Y3LkhqzOe.js +50 -0
- package/{browser/esm/CpQM3xIeariuqfsN.mjs → cdn/assets/B44RkeFF8g1ncaGw.js} +16 -14
- package/{browser/esm/DmXkRZFP-WnV2YT9.mjs → cdn/assets/BBov1fpR61VyhE3Z.js} +1 -1
- package/cdn/assets/BCEDMsB3yP73FGo4.js +260 -0
- package/cdn/assets/{BCfZ9L4sqA1AhATQ.js → BERonPR_jlfR0j1B.js} +14 -14
- package/{browser/esm/BS_-p_4yMCoR9FTp.mjs → cdn/assets/BJD32_Zv5gkabGc0.js} +1 -1
- package/cdn/assets/{Bmfu8IUFzu9KyCkA.js → BJqIPJDvrhWpZc4S.js} +1 -1
- package/{browser/esm/KUyPDaQO4D8lwO7O.mjs → cdn/assets/BKYjPTKdwG8Dn1_Z.js} +1 -1
- package/cdn/assets/{Cz1EUITrDS2M-lu2.js → BPQvYX3Tn3_XfM55.js} +849 -849
- package/cdn/assets/{JdOvTKCcf5acl7vA.js → BQfnqD12mz41DOr_.js} +1 -1
- package/{browser/esm/BfiejFYnvgVrrJPI.mjs → cdn/assets/BSdVpOzJ8SL3EBhP.js} +1 -1
- package/cdn/assets/{EN4PLLABu5llaV3T.js → BWHiFslK55rPiaTT.js} +5 -5
- package/cdn/assets/BWhbbP9qvpjw1m3d.js +21 -0
- package/cdn/assets/{SsQFeDXfmfXHyy1R.js → B_gWDLoUXJ58kUTF.js} +670 -667
- package/cdn/assets/{BGJaDv3Ih-M1lFCD.js → Bb0W3ByMVowTViNK.js} +1 -1
- package/{browser/esm/BuX3I7e8lbon25vL.mjs → cdn/assets/Bk7mWQ4jJ591qT5U.js} +9 -9
- package/cdn/assets/{DWnopZ6R26qNLVyV.js → BmyjN5txj3iMw_DE.js} +1 -1
- package/cdn/assets/{SPvRfEBpgC5rbgPz.js → BnEb6t4xIVuW37yn.js} +2 -2
- package/{browser/esm/B6c_mMwG96t6MlCE.mjs → cdn/assets/BpFA0UU_TF4JO3dh.js} +1 -1
- package/{browser/esm/S2TZ7C9tQtDNeeGo.mjs → cdn/assets/Bzg-D_R4sXN-wyMx.js} +1 -1
- package/cdn/assets/C2xOGr0pDSHSMKoW.js +1366 -0
- package/{browser/esm/CpDyqZXpstRo2buW.mjs → cdn/assets/CAal3t8F-VfdmgAH.js} +1 -1
- package/{browser/esm/Qjkn8L0WuEQToAqm.mjs → cdn/assets/CGImeT9zAECbU9zM.js} +14 -12
- package/cdn/assets/CIdfxx6BkkxIdU4J.js +36 -0
- package/cdn/assets/{DJx6S7TOhQyWdjS5.js → CQaM4Ka20cP71fl0.js} +1 -1
- package/cdn/assets/CVgQlKevn28IBavQ.js +44342 -0
- package/cdn/assets/{VYFESZA0Jc8C13ZT.js → CVlIOg6F8qrZdlQ1.js} +1 -1
- package/{browser/esm/dWGGn8a_Ez8kVjgZ.mjs → cdn/assets/Cbq2K4YGny5wwFEf.js} +1 -1
- package/cdn/assets/{BGQ19MuEoWb0IGOg.js → CcE9nC_34k_5iKdO.js} +25 -25
- package/cdn/assets/{CO9eLmNMi1heLPMx.js → CcP-5SrDsnDeT6SQ.js} +733 -827
- package/{browser/esm/_sUvLBCLSPhV2gF6.mjs → cdn/assets/Ckb6l6osoWh90VXn.js} +1 -1
- package/cdn/assets/{2vIB3gG-Ct-P7aHY.js → Cl0mB61JgZYfTh4S.js} +1 -1
- package/cdn/assets/{CXSiJ-t5xz78GMwK.js → Cm7pnWH_xgLwX_lZ.js} +1 -1
- package/cdn/assets/{CPchasanZLQiASse.js → Co_HyodT3prcEvNJ.js} +1 -1
- package/{browser/esm/glJJyP0v0nlhAzqM.mjs → cdn/assets/CsBIABPdnqpcZcvJ.js} +1 -1
- package/cdn/assets/Ct1wZ_TFb7_zG9uz.js +22 -0
- package/cdn/assets/{BRzxK84abQUinUUx.js → D-QFKqWRP5dKwynV.js} +1 -1
- package/cdn/assets/D8hsneNA-W9ryUa9.js +27 -0
- package/cdn/assets/{9GNkN_zTAHpnP-uq.js → DBzbchpZyNJVqFwJ.js} +4 -4
- package/cdn/assets/DIBJnPf-ZLpoUAyv.js +90 -0
- package/{browser/esm/B7ohU_quBXWjiBEw.mjs → cdn/assets/DKaNurhCUtSDI3-Y.js} +1861 -1859
- package/cdn/assets/DQmcuM6zJj_UBR4j.js +58 -0
- package/cdn/assets/DXWy4_H6I-dyOLr6.js +46 -0
- package/cdn/assets/DXlz010r4VFvz1TS.js +23 -0
- package/{browser/esm/giu63J2gO2p8JJIf.mjs → cdn/assets/Dk_OZhcDLapTaNma.js} +1 -1
- package/{browser/esm/CSDiL3gZro2_BYTj.mjs → cdn/assets/Dp--KMDeqecbq_Wc.js} +1 -1
- package/{browser/esm/CYrbG4T_bwbc4Un4.mjs → cdn/assets/DqRiTlxxpGv8z6hB.js} +136 -134
- package/cdn/assets/Dt6M8k8ljeGubAJ5.js +1466 -0
- package/cdn/assets/Dzb_e1lRgdeWlKbP.js +27 -0
- package/{browser/esm/D7bqIxhqlHgc3Fih.mjs → cdn/assets/ObudKUELIfmbm87W.js} +1 -1
- package/cdn/assets/{DU8_1yjWbaEkXcbL.js → QtHcsa9O7bxZgew4.js} +5 -5
- package/cdn/assets/{CmLCIveZbsUFrSOH.js → SmC3rmOCw-Ynredz.js} +672 -665
- package/cdn/assets/{UhBzX4vQryCjy6ce.js → UBuQw1PVtmH3a9bE.js} +16 -16
- package/cdn/assets/{DaoqFa2lhVoZvd16.js → Ys1OCodY6sXUkZ6-.js} +102 -99
- package/{browser/esm/xbsV0YR05atX96kb.mjs → cdn/assets/aqvSzH4m6bf7ODc6.js} +1 -1
- package/cdn/assets/{Bz0TojPavQ5NTjyD.js → d49_A3euUkzKZure.js} +1 -1
- package/cdn/assets/d8r4AqRUASAMCbBC.js +1352 -0
- package/cdn/assets/{Be9tvHxvnxnHNRa4.js → g2unVUs-HBGBvXMs.js} +1 -1
- package/cdn/assets/gzl_ozUgkS0mr_32.js +13391 -0
- package/cdn/assets/o1yNcQczZA65rwUv.js +41 -0
- package/cdn/assets/u_xPkr1quUnZRgrA.js +149 -0
- package/cdn/index.js +2 -2
- package/cdn/loader.js +1 -1
- package/package.json +3 -3
- package/browser/cjs/B4ScrvWBCXLzvNBz.cjs +0 -145
- package/browser/cjs/BBNggAKHDP4QyhrD.cjs +0 -6
- package/browser/cjs/BSoRD8INLnGqOd24.cjs +0 -7
- package/browser/cjs/BTxfWiE-FbVvlbXz.cjs +0 -11
- package/browser/cjs/BlJixWFmG-z3n7dN.cjs +0 -6
- package/browser/cjs/Buw8XeqL6XQwxqnQ.cjs +0 -32
- package/browser/cjs/C04_CccTUmfnv-ln.cjs +0 -6
- package/browser/cjs/C5TLXtw93fBnRGm7.cjs +0 -378
- package/browser/cjs/CLiSJrUNaSxa5Mn7.cjs +0 -16
- package/browser/cjs/CODi1uYlZ35lFLh9.cjs +0 -6
- package/browser/cjs/Ccv5NHm99sYZnKE6.cjs +0 -7
- package/browser/cjs/CeH0O9zPmIGKjuT9.cjs +0 -19
- package/browser/cjs/D2bZuhwA7aCEA0It.cjs +0 -6
- package/browser/cjs/DEiPHs81OFnGI_GL.cjs +0 -6
- package/browser/cjs/DWIR1gQMiYyoUVpN.cjs +0 -7
- package/browser/cjs/DawJBg8LyIArkwdU.cjs +0 -6
- package/browser/cjs/Dr95ZpJD5KpADFgL.cjs +0 -6
- package/browser/cjs/P7jR9JAKpf5me2pK.cjs +0 -6
- package/browser/cjs/T4zy652TD1RHF35F.cjs +0 -6
- package/browser/cjs/nlzloz3gqSXQwTl5.cjs +0 -13
- package/browser/cjs/xPUjEhL251Mb-kyD.cjs +0 -161
- package/browser/esm/BJkeQi-0GTlyPsTT.mjs +0 -52369
- package/browser/esm/BR2yOGMlFrbNy1I_.mjs +0 -472
- package/browser/esm/BTbBL2qySirAIMIH.mjs +0 -1346
- package/browser/esm/Bj4d7nd4XMugBsBg.mjs +0 -39
- package/browser/esm/CeSDjV2b8w7KibJw.mjs +0 -1466
- package/browser/esm/DR85glElKOQxCdEw.mjs +0 -820
- package/browser/esm/DgxaqoqInkc26SCt.mjs +0 -13208
- package/browser/esm/dwY5oHtoGa_ktt9_.mjs +0 -1365
- package/browser/esm/q5jyS6wUD9X8N3dI.mjs +0 -3755
- package/cdn/assets/BBGivbkBG9VS_rL9.js +0 -3756
- package/cdn/assets/BF0szY6Cs6OTiu4J.js +0 -22
- package/cdn/assets/BFvB3zk5mbav2VDI.js +0 -52200
- package/cdn/assets/BKAFXvz5L4pnwrYW.js +0 -41
- package/cdn/assets/BTbBL2qySirAIMIH.js +0 -1346
- package/cdn/assets/BnrLDtUMM23rGXOR.js +0 -390
- package/cdn/assets/C-saEYaoPI4gaVAh.js +0 -820
- package/cdn/assets/CBG91FlGgFb_NSW3.js +0 -1466
- package/cdn/assets/Cc_7h2P328hlBcqK.js +0 -472
- package/cdn/assets/Cv2EzXYuphY8Hlz2.js +0 -23
- package/cdn/assets/DDWoPuN8AcPJHNxL.js +0 -58
- package/cdn/assets/DYE-hWYAUd_f6MX8.js +0 -46
- package/cdn/assets/DfpCefkqWIezzC8Z.js +0 -49
- package/cdn/assets/DgxaqoqInkc26SCt.js +0 -13208
- package/cdn/assets/LbFq2oCowUDgCX8L.js +0 -43
- package/cdn/assets/TP7wJaHcKRz3uH_W.js +0 -50
- package/cdn/assets/dwY5oHtoGa_ktt9_.js +0 -1365
- package/cdn/assets/nsmFGDjpeUcAO4is.js +0 -149
|
@@ -1,186 +1,93 @@
|
|
|
1
|
-
import { r as C,
|
|
1
|
+
import { r as C, a0 as $t, a1 as Kt, a2 as qt, j as L, a3 as ht, a4 as Xt, a5 as Y, a6 as Yt, a7 as Jt, a8 as Zt, a9 as Qt, e as X, x as eo, D as to, t as ft, aa as oo, B as ce, f as no, o as ro, ab as io, ac as lo, g as de, F as so, C as ao, h as co, m as pt, ad as me, ae as uo, af as ho, ag as N, ah as U, ai as fo } from "./B0A2aLiKDPGGU4k-.mjs";
|
|
2
2
|
/**
|
|
3
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
3
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.22
|
|
4
4
|
*
|
|
5
5
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
6
6
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
7
7
|
*/
|
|
8
|
-
const
|
|
9
|
-
function
|
|
10
|
-
return
|
|
8
|
+
const po = C.createContext(), go = C.createContext();
|
|
9
|
+
function mo(o) {
|
|
10
|
+
return Kt("MuiTableCell", o);
|
|
11
11
|
}
|
|
12
|
-
const
|
|
12
|
+
const vo = $t("MuiTableCell", ["root", "head", "body", "footer", "sizeSmall", "sizeMedium", "paddingCheckbox", "paddingNone", "alignLeft", "alignCenter", "alignRight", "alignJustify", "stickyHeader"]), _o = ht("td", { name: "MuiTableCell", slot: "Root", overridesResolver: (o, e) => {
|
|
13
13
|
const { ownerState: t } = o;
|
|
14
|
-
return [e.root, e[t.variant], e[`size${
|
|
15
|
-
} })(
|
|
16
|
-
${o.palette.mode === "light" ?
|
|
17
|
-
const t =
|
|
18
|
-
let
|
|
19
|
-
|
|
20
|
-
let
|
|
21
|
-
|
|
22
|
-
const S = d || u && u.variant, y = { ...t, align: n, component:
|
|
23
|
-
const { classes:
|
|
24
|
-
return
|
|
14
|
+
return [e.root, e[t.variant], e[`size${Y(t.size)}`], t.padding !== "normal" && e[`padding${Y(t.padding)}`], t.align !== "inherit" && e[`align${Y(t.align)}`], t.stickyHeader && e.stickyHeader];
|
|
15
|
+
} })(Jt(({ theme: o }) => ({ ...o.typography.body2, display: "table-cell", verticalAlign: "inherit", borderBottom: o.vars ? `1px solid ${o.vars.palette.TableCell.border}` : `1px solid
|
|
16
|
+
${o.palette.mode === "light" ? Zt(X(o.palette.divider, 1), 0.88) : Qt(X(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", [`&.${vo.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 = C.forwardRef(function(o, e) {
|
|
17
|
+
const t = qt({ props: o, name: "MuiTableCell" }), { align: n = "inherit", className: r, component: i, padding: l, scope: a, size: s, sortDirection: c, variant: d, ...h } = t, f = C.useContext(po), u = C.useContext(go), _ = u && u.variant === "head";
|
|
18
|
+
let g;
|
|
19
|
+
g = i || (_ ? "th" : "td");
|
|
20
|
+
let m = a;
|
|
21
|
+
g === "td" ? m = void 0 : !m && _ && (m = "col");
|
|
22
|
+
const S = d || u && u.variant, y = { ...t, align: n, component: g, padding: l || (f && f.padding ? f.padding : "normal"), size: s || (f && f.size ? f.size : "medium"), sortDirection: c, stickyHeader: S === "head" && f && f.stickyHeader, variant: S }, v = ((x) => {
|
|
23
|
+
const { classes: R, variant: b, align: z, padding: T, size: k, stickyHeader: O } = x, P = { root: ["root", b, O && "stickyHeader", z !== "inherit" && `align${Y(z)}`, T !== "normal" && `padding${Y(T)}`, `size${Y(k)}`] };
|
|
24
|
+
return Yt(P, mo, R);
|
|
25
25
|
})(y);
|
|
26
26
|
let w = null;
|
|
27
|
-
return c && (w = c === "asc" ? "ascending" : "descending"),
|
|
28
|
-
})
|
|
29
|
-
function
|
|
30
|
-
return o !== "ownerState" && o !== "theme" && o !== "sx" && o !== "as";
|
|
31
|
-
}
|
|
32
|
-
function K(o, e) {
|
|
33
|
-
return e && o && typeof o == "object" && o.styles && !o.styles.startsWith("@layer") && (o.styles = `@layer ${e}{${String(o.styles)}}`), o;
|
|
34
|
-
}
|
|
35
|
-
function Lo(o) {
|
|
36
|
-
return o ? (e, t) => t[o] : null;
|
|
37
|
-
}
|
|
38
|
-
function ge(o, e, t) {
|
|
39
|
-
const n = typeof e == "function" ? e(o) : e;
|
|
40
|
-
if (Array.isArray(n)) return n.flatMap((r) => ge(o, r, t));
|
|
41
|
-
if (Array.isArray(n?.variants)) {
|
|
42
|
-
let r;
|
|
43
|
-
if (n.isProcessed) r = t ? K(n.style, t) : n.style;
|
|
44
|
-
else {
|
|
45
|
-
const { variants: l, ...i } = n;
|
|
46
|
-
r = t ? K(q(i), t) : i;
|
|
47
|
-
}
|
|
48
|
-
return yt(o, n.variants, [r], t);
|
|
49
|
-
}
|
|
50
|
-
return n?.isProcessed ? t ? K(q(n.style), t) : n.style : t ? K(q(n), t) : n;
|
|
51
|
-
}
|
|
52
|
-
function yt(o, e, t = [], n = void 0) {
|
|
53
|
-
let r;
|
|
54
|
-
e: for (let l = 0; l < e.length; l += 1) {
|
|
55
|
-
const i = e[l];
|
|
56
|
-
if (typeof i.props == "function") {
|
|
57
|
-
if (r ??= { ...o, ...o.ownerState, ownerState: o.ownerState }, !i.props(r)) continue;
|
|
58
|
-
} else for (const a in i.props) if (o[a] !== i.props[a] && o.ownerState?.[a] !== i.props[a]) continue e;
|
|
59
|
-
typeof i.style == "function" ? (r ??= { ...o, ...o.ownerState, ownerState: o.ownerState }, t.push(n ? K(q(i.style(r)), n) : i.style(r))) : t.push(n ? K(q(i.style), n) : i.style);
|
|
60
|
-
}
|
|
61
|
-
return t;
|
|
62
|
-
}
|
|
63
|
-
function Go(o) {
|
|
64
|
-
return o && o.charAt(0).toLowerCase() + o.slice(1);
|
|
65
|
-
}
|
|
66
|
-
const Ao = function(o = {}) {
|
|
67
|
-
const { themeId: e, defaultTheme: t = Mo, rootShouldForwardProp: n = ye, slotShouldForwardProp: r = ye } = o;
|
|
68
|
-
function l(i) {
|
|
69
|
-
var a, s, c;
|
|
70
|
-
s = e, c = t, (a = i).theme = function(d) {
|
|
71
|
-
for (const h in d) return !1;
|
|
72
|
-
return !0;
|
|
73
|
-
}(a.theme) ? c : a.theme[s] || a.theme;
|
|
74
|
-
}
|
|
75
|
-
return (i, a = {}) => {
|
|
76
|
-
So(i, (b) => b.filter((R) => R !== He));
|
|
77
|
-
const { name: s, slot: c, skipVariantsResolver: d, skipSx: h, overridesResolver: f = Lo(Go(c)), ...u } = a, v = s && s.startsWith("Mui") || c ? "components" : "custom", m = d !== void 0 ? d : c && c !== "Root" && c !== "root" || !1, _ = h || !1;
|
|
78
|
-
let S = ye;
|
|
79
|
-
var y;
|
|
80
|
-
c === "Root" || c === "root" ? S = n : c ? S = r : typeof (y = i) == "string" && y.charCodeAt(0) > 96 && (S = void 0);
|
|
81
|
-
const g = yo(i, { shouldForwardProp: S, label: void 0, ...u }), w = (b) => {
|
|
82
|
-
if (b.__emotion_real === b) return b;
|
|
83
|
-
if (typeof b == "function") return function(R) {
|
|
84
|
-
return ge(R, b, R.theme.modularCssLayers ? v : void 0);
|
|
85
|
-
};
|
|
86
|
-
if (Ro(b)) {
|
|
87
|
-
const R = function(T) {
|
|
88
|
-
const { variants: I, ...k } = T, P = { variants: I, style: q(k), isProcessed: !0 };
|
|
89
|
-
return P.style === k || I && I.forEach((z) => {
|
|
90
|
-
typeof z.style != "function" && (z.style = q(z.style));
|
|
91
|
-
}), P;
|
|
92
|
-
}(b);
|
|
93
|
-
return function(T) {
|
|
94
|
-
return R.variants ? ge(T, R, T.theme.modularCssLayers ? v : void 0) : T.theme.modularCssLayers ? K(R.style, v) : R.style;
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
return b;
|
|
98
|
-
}, x = (...b) => {
|
|
99
|
-
const R = [], T = b.map(w), I = [];
|
|
100
|
-
if (R.push(l), s && f && I.push(function(z) {
|
|
101
|
-
const L = z.theme, G = L.components?.[s]?.styleOverrides;
|
|
102
|
-
if (!G) return null;
|
|
103
|
-
const B = {};
|
|
104
|
-
for (const Ee in G) B[Ee] = ge(z, G[Ee], z.theme.modularCssLayers ? "theme" : void 0);
|
|
105
|
-
return f(z, B);
|
|
106
|
-
}), s && !m && I.push(function(z) {
|
|
107
|
-
const L = z.theme, G = L?.components?.[s]?.variants;
|
|
108
|
-
return G ? yt(z, G, [], z.theme.modularCssLayers ? "theme" : void 0) : null;
|
|
109
|
-
}), _ || I.push(He), Array.isArray(T[0])) {
|
|
110
|
-
const z = T.shift(), L = new Array(R.length).fill(""), G = new Array(I.length).fill("");
|
|
111
|
-
let B;
|
|
112
|
-
B = [...L, ...z, ...G], B.raw = [...L, ...z.raw, ...G], R.unshift(B);
|
|
113
|
-
}
|
|
114
|
-
const k = [...R, ...T, ...I], P = g(...k);
|
|
115
|
-
return i.muiName && (P.muiName = i.muiName), P;
|
|
116
|
-
};
|
|
117
|
-
return g.withConfig && (x.withConfig = g.withConfig), x;
|
|
118
|
-
};
|
|
119
|
-
}({ themeId: wo, defaultTheme: Co, rootShouldForwardProp: (o) => /* @__PURE__ */ function(e) {
|
|
120
|
-
return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
|
|
121
|
-
}(o) && o !== "classes" });
|
|
122
|
-
function E(o, e) {
|
|
27
|
+
return c && (w = c === "asc" ? "ascending" : "descending"), L.jsx(_o, { as: g, ref: e, className: Xt(v.root, r), "aria-sort": w, scope: m, ownerState: y, ...h });
|
|
28
|
+
});
|
|
29
|
+
function G(o, e) {
|
|
123
30
|
if (!(o instanceof e)) throw new TypeError("Cannot call a class as a function");
|
|
124
31
|
}
|
|
125
|
-
function
|
|
126
|
-
return (
|
|
32
|
+
function J(o) {
|
|
33
|
+
return (J = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
127
34
|
return typeof e;
|
|
128
35
|
} : function(e) {
|
|
129
36
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
130
37
|
})(o);
|
|
131
38
|
}
|
|
132
|
-
function
|
|
39
|
+
function gt(o) {
|
|
133
40
|
var e = function(t) {
|
|
134
|
-
if (
|
|
41
|
+
if (J(t) != "object" || !t) return t;
|
|
135
42
|
var n = t[Symbol.toPrimitive];
|
|
136
43
|
if (n !== void 0) {
|
|
137
44
|
var r = n.call(t, "string");
|
|
138
|
-
if (
|
|
45
|
+
if (J(r) != "object") return r;
|
|
139
46
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
140
47
|
}
|
|
141
48
|
return String(t);
|
|
142
49
|
}(o);
|
|
143
|
-
return
|
|
50
|
+
return J(e) == "symbol" ? e : e + "";
|
|
144
51
|
}
|
|
145
|
-
function
|
|
52
|
+
function Le(o, e) {
|
|
146
53
|
for (var t = 0; t < e.length; t++) {
|
|
147
54
|
var n = e[t];
|
|
148
|
-
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(o,
|
|
55
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(o, gt(n.key), n);
|
|
149
56
|
}
|
|
150
57
|
}
|
|
151
|
-
function
|
|
152
|
-
return e &&
|
|
58
|
+
function A(o, e, t) {
|
|
59
|
+
return e && Le(o.prototype, e), t && Le(o, t), Object.defineProperty(o, "prototype", { writable: !1 }), o;
|
|
153
60
|
}
|
|
154
|
-
function
|
|
155
|
-
if (e && (
|
|
61
|
+
function H(o, e) {
|
|
62
|
+
if (e && (J(e) == "object" || typeof e == "function")) return e;
|
|
156
63
|
if (e !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
157
64
|
return function(t) {
|
|
158
65
|
if (t === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
159
66
|
return t;
|
|
160
67
|
}(o);
|
|
161
68
|
}
|
|
162
|
-
function
|
|
163
|
-
return (
|
|
69
|
+
function I(o) {
|
|
70
|
+
return (I = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
164
71
|
return e.__proto__ || Object.getPrototypeOf(e);
|
|
165
72
|
})(o);
|
|
166
73
|
}
|
|
167
|
-
function
|
|
74
|
+
function W(o, e) {
|
|
168
75
|
if (typeof e != "function" && e !== null) throw new TypeError("Super expression must either be null or a function");
|
|
169
|
-
o.prototype = Object.create(e && e.prototype, { constructor: { value: o, writable: !0, configurable: !0 } }), Object.defineProperty(o, "prototype", { writable: !1 }), e &&
|
|
76
|
+
o.prototype = Object.create(e && e.prototype, { constructor: { value: o, writable: !0, configurable: !0 } }), Object.defineProperty(o, "prototype", { writable: !1 }), e && ho(o, e);
|
|
170
77
|
}
|
|
171
78
|
function p(o, e, t) {
|
|
172
|
-
return (e =
|
|
79
|
+
return (e = gt(e)) in o ? Object.defineProperty(o, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : o[e] = t, o;
|
|
173
80
|
}
|
|
174
|
-
function
|
|
81
|
+
function mt() {
|
|
175
82
|
var o = this.constructor.getDerivedStateFromProps(this.props, this.state);
|
|
176
83
|
o != null && this.setState(o);
|
|
177
84
|
}
|
|
178
|
-
function
|
|
85
|
+
function vt(o) {
|
|
179
86
|
this.setState(function(e) {
|
|
180
87
|
return this.constructor.getDerivedStateFromProps(o, e) ?? null;
|
|
181
88
|
}.bind(this));
|
|
182
89
|
}
|
|
183
|
-
function
|
|
90
|
+
function _t(o, e) {
|
|
184
91
|
try {
|
|
185
92
|
var t = this.props, n = this.state;
|
|
186
93
|
this.props = o, this.state = e, this.__reactInternalSnapshotFlag = !0, this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(t, n);
|
|
@@ -188,16 +95,16 @@ function Rt(o, e) {
|
|
|
188
95
|
this.props = t, this.state = n;
|
|
189
96
|
}
|
|
190
97
|
}
|
|
191
|
-
function
|
|
98
|
+
function ae(o) {
|
|
192
99
|
var e = o.prototype;
|
|
193
100
|
if (!e || !e.isReactComponent) throw new Error("Can only polyfill class components");
|
|
194
101
|
if (typeof o.getDerivedStateFromProps != "function" && typeof e.getSnapshotBeforeUpdate != "function") return o;
|
|
195
102
|
var t = null, n = null, r = null;
|
|
196
103
|
if (typeof e.componentWillMount == "function" ? t = "componentWillMount" : typeof e.UNSAFE_componentWillMount == "function" && (t = "UNSAFE_componentWillMount"), typeof e.componentWillReceiveProps == "function" ? n = "componentWillReceiveProps" : typeof e.UNSAFE_componentWillReceiveProps == "function" && (n = "UNSAFE_componentWillReceiveProps"), typeof e.componentWillUpdate == "function" ? r = "componentWillUpdate" : typeof e.UNSAFE_componentWillUpdate == "function" && (r = "UNSAFE_componentWillUpdate"), t !== null || n !== null || r !== null) {
|
|
197
|
-
var
|
|
104
|
+
var i = o.displayName || o.name, l = typeof o.getDerivedStateFromProps == "function" ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()";
|
|
198
105
|
throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
199
106
|
|
|
200
|
-
` +
|
|
107
|
+
` + i + " uses " + l + " but also contains the following legacy lifecycles:" + (t !== null ? `
|
|
201
108
|
` + t : "") + (n !== null ? `
|
|
202
109
|
` + n : "") + (r !== null ? `
|
|
203
110
|
` + r : "") + `
|
|
@@ -205,9 +112,9 @@ function ue(o) {
|
|
|
205
112
|
The above lifecycles should be removed. Learn more about this warning here:
|
|
206
113
|
https://fb.me/react-async-component-lifecycle-hooks`);
|
|
207
114
|
}
|
|
208
|
-
if (typeof o.getDerivedStateFromProps == "function" && (e.componentWillMount =
|
|
115
|
+
if (typeof o.getDerivedStateFromProps == "function" && (e.componentWillMount = mt, e.componentWillReceiveProps = vt), typeof e.getSnapshotBeforeUpdate == "function") {
|
|
209
116
|
if (typeof e.componentDidUpdate != "function") throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");
|
|
210
|
-
e.componentWillUpdate =
|
|
117
|
+
e.componentWillUpdate = _t;
|
|
211
118
|
var a = e.componentDidUpdate;
|
|
212
119
|
e.componentDidUpdate = function(s, c, d) {
|
|
213
120
|
var h = this.__reactInternalSnapshotFlag ? this.__reactInternalSnapshot : d;
|
|
@@ -216,7 +123,7 @@ https://fb.me/react-async-component-lifecycle-hooks`);
|
|
|
216
123
|
}
|
|
217
124
|
return o;
|
|
218
125
|
}
|
|
219
|
-
function
|
|
126
|
+
function Ge(o, e) {
|
|
220
127
|
var t = Object.keys(o);
|
|
221
128
|
if (Object.getOwnPropertySymbols) {
|
|
222
129
|
var n = Object.getOwnPropertySymbols(o);
|
|
@@ -226,40 +133,40 @@ function je(o, e) {
|
|
|
226
133
|
}
|
|
227
134
|
return t;
|
|
228
135
|
}
|
|
229
|
-
function
|
|
136
|
+
function Ae(o) {
|
|
230
137
|
for (var e = 1; e < arguments.length; e++) {
|
|
231
138
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
232
|
-
e % 2 ?
|
|
139
|
+
e % 2 ? Ge(Object(t), !0).forEach(function(n) {
|
|
233
140
|
p(o, n, t[n]);
|
|
234
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) :
|
|
141
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : Ge(Object(t)).forEach(function(n) {
|
|
235
142
|
Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
|
|
236
143
|
});
|
|
237
144
|
}
|
|
238
145
|
return o;
|
|
239
146
|
}
|
|
240
|
-
function
|
|
147
|
+
function St() {
|
|
241
148
|
try {
|
|
242
149
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
243
150
|
}));
|
|
244
151
|
} catch {
|
|
245
152
|
}
|
|
246
|
-
return (
|
|
153
|
+
return (St = function() {
|
|
247
154
|
return !!o;
|
|
248
155
|
})();
|
|
249
156
|
}
|
|
250
|
-
|
|
251
|
-
var
|
|
157
|
+
mt.__suppressDeprecationWarning = !0, vt.__suppressDeprecationWarning = !0, _t.__suppressDeprecationWarning = !0;
|
|
158
|
+
var Ee = function() {
|
|
252
159
|
function o() {
|
|
253
160
|
var e, t, n, r;
|
|
254
|
-
|
|
255
|
-
for (var
|
|
256
|
-
return t = this, n = o, r = [].concat(
|
|
161
|
+
G(this, o);
|
|
162
|
+
for (var i = arguments.length, l = new Array(i), a = 0; a < i; a++) l[a] = arguments[a];
|
|
163
|
+
return t = this, n = o, r = [].concat(l), n = I(n), p(e = H(t, St() ? 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) {
|
|
257
164
|
var c = e.props, d = c.columnCount, h = c.disabled, f = c.mode, u = c.rowCount;
|
|
258
165
|
if (!h) {
|
|
259
|
-
var
|
|
166
|
+
var _ = e._getScrollState(), g = _.scrollToColumn, m = _.scrollToRow, S = e._getScrollState(), y = S.scrollToColumn, v = S.scrollToRow;
|
|
260
167
|
switch (s.key) {
|
|
261
168
|
case "ArrowDown":
|
|
262
|
-
|
|
169
|
+
v = Math.min(f === "cells" ? v + 1 : e._rowStopIndex + 1, u - 1);
|
|
263
170
|
break;
|
|
264
171
|
case "ArrowLeft":
|
|
265
172
|
y = Math.max(f === "cells" ? y - 1 : e._columnStartIndex - 1, 0);
|
|
@@ -268,96 +175,96 @@ var Ne = function() {
|
|
|
268
175
|
y = Math.min(f === "cells" ? y + 1 : e._columnStopIndex + 1, d - 1);
|
|
269
176
|
break;
|
|
270
177
|
case "ArrowUp":
|
|
271
|
-
|
|
178
|
+
v = Math.max(f === "cells" ? v - 1 : e._rowStartIndex - 1, 0);
|
|
272
179
|
}
|
|
273
|
-
y ===
|
|
180
|
+
y === g && v === m || (s.preventDefault(), e._updateScrollState({ scrollToColumn: y, scrollToRow: v }));
|
|
274
181
|
}
|
|
275
182
|
}), p(e, "_onSectionRendered", function(s) {
|
|
276
183
|
var c = s.columnStartIndex, d = s.columnStopIndex, h = s.rowStartIndex, f = s.rowStopIndex;
|
|
277
184
|
e._columnStartIndex = c, e._columnStopIndex = d, e._rowStartIndex = h, e._rowStopIndex = f;
|
|
278
185
|
}), e;
|
|
279
186
|
}
|
|
280
|
-
return
|
|
187
|
+
return W(o, C.PureComponent), A(o, [{ key: "setScrollIndexes", value: function(e) {
|
|
281
188
|
var t = e.scrollToColumn, n = e.scrollToRow;
|
|
282
189
|
this.setState({ scrollToRow: n, scrollToColumn: t });
|
|
283
190
|
} }, { key: "render", value: function() {
|
|
284
|
-
var e = this.props, t = e.className, n = e.children, r = this._getScrollState(),
|
|
285
|
-
return C.createElement("div", { className: t, onKeyDown: this._onKeyDown }, n({ onSectionRendered: this._onSectionRendered, scrollToColumn:
|
|
191
|
+
var e = this.props, t = e.className, n = e.children, r = this._getScrollState(), i = r.scrollToColumn, l = r.scrollToRow;
|
|
192
|
+
return C.createElement("div", { className: t, onKeyDown: this._onKeyDown }, n({ onSectionRendered: this._onSectionRendered, scrollToColumn: i, scrollToRow: l }));
|
|
286
193
|
} }, { key: "_getScrollState", value: function() {
|
|
287
194
|
return this.props.isControlled ? this.props : this.state;
|
|
288
195
|
} }, { key: "_updateScrollState", value: function(e) {
|
|
289
|
-
var t = e.scrollToColumn, n = e.scrollToRow, r = this.props,
|
|
290
|
-
typeof
|
|
196
|
+
var t = e.scrollToColumn, n = e.scrollToRow, r = this.props, i = r.isControlled, l = r.onScrollToChange;
|
|
197
|
+
typeof l == "function" && l({ scrollToColumn: t, scrollToRow: n }), i || this.setState({ scrollToColumn: t, scrollToRow: n });
|
|
291
198
|
} }], [{ key: "getDerivedStateFromProps", value: function(e, t) {
|
|
292
|
-
return e.isControlled ? {} : e.scrollToColumn !== t.instanceProps.prevScrollToColumn || e.scrollToRow !== t.instanceProps.prevScrollToRow ?
|
|
199
|
+
return e.isControlled ? {} : e.scrollToColumn !== t.instanceProps.prevScrollToColumn || e.scrollToRow !== t.instanceProps.prevScrollToRow ? Ae(Ae({}, t), {}, { scrollToColumn: e.scrollToColumn, scrollToRow: e.scrollToRow, instanceProps: { prevScrollToColumn: e.scrollToColumn, prevScrollToRow: e.scrollToRow } }) : {};
|
|
293
200
|
} }]);
|
|
294
201
|
}();
|
|
295
|
-
function
|
|
202
|
+
function yt(o, e) {
|
|
296
203
|
var t, n, r = (t = e !== void 0 ? e : typeof window < "u" ? window : typeof self < "u" ? self : global).document !== void 0 && t.document.attachEvent;
|
|
297
204
|
if (!r) {
|
|
298
|
-
var
|
|
299
|
-
return t.setTimeout(
|
|
300
|
-
}, function(
|
|
301
|
-
return n(
|
|
302
|
-
}),
|
|
303
|
-
var
|
|
205
|
+
var i = (n = t.requestAnimationFrame || t.mozRequestAnimationFrame || t.webkitRequestAnimationFrame || function(v) {
|
|
206
|
+
return t.setTimeout(v, 20);
|
|
207
|
+
}, function(v) {
|
|
208
|
+
return n(v);
|
|
209
|
+
}), l = function() {
|
|
210
|
+
var v = t.cancelAnimationFrame || t.mozCancelAnimationFrame || t.webkitCancelAnimationFrame || t.clearTimeout;
|
|
304
211
|
return function(w) {
|
|
305
|
-
return
|
|
212
|
+
return v(w);
|
|
306
213
|
};
|
|
307
|
-
}(), a = function(
|
|
308
|
-
var w =
|
|
309
|
-
|
|
310
|
-
}, s = function(
|
|
311
|
-
if (!(
|
|
214
|
+
}(), a = function(v) {
|
|
215
|
+
var w = v.__resizeTriggers__, x = w.firstElementChild, R = w.lastElementChild, b = x.firstElementChild;
|
|
216
|
+
R.scrollLeft = R.scrollWidth, R.scrollTop = R.scrollHeight, b.style.width = x.offsetWidth + 1 + "px", b.style.height = x.offsetHeight + 1 + "px", x.scrollLeft = x.scrollWidth, x.scrollTop = x.scrollHeight;
|
|
217
|
+
}, s = function(v) {
|
|
218
|
+
if (!(v.target.className && typeof v.target.className.indexOf == "function" && v.target.className.indexOf("contract-trigger") < 0 && v.target.className.indexOf("expand-trigger") < 0)) {
|
|
312
219
|
var w = this;
|
|
313
|
-
a(this), this.__resizeRAF__ &&
|
|
220
|
+
a(this), this.__resizeRAF__ && l(this.__resizeRAF__), this.__resizeRAF__ = i(function() {
|
|
314
221
|
var x;
|
|
315
|
-
((x = w).offsetWidth != x.__resizeLast__.width || x.offsetHeight != x.__resizeLast__.height) && (w.__resizeLast__.width = w.offsetWidth, w.__resizeLast__.height = w.offsetHeight, w.__resizeListeners__.forEach(function(
|
|
316
|
-
|
|
222
|
+
((x = w).offsetWidth != x.__resizeLast__.width || x.offsetHeight != x.__resizeLast__.height) && (w.__resizeLast__.width = w.offsetWidth, w.__resizeLast__.height = w.offsetHeight, w.__resizeListeners__.forEach(function(R) {
|
|
223
|
+
R.call(w, v);
|
|
317
224
|
}));
|
|
318
225
|
});
|
|
319
226
|
}
|
|
320
|
-
}, c = !1, d = "", h = "animationstart", f = "Webkit Moz O ms".split(" "), u = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),
|
|
321
|
-
if (
|
|
322
|
-
for (var
|
|
323
|
-
d = "-" + f[
|
|
227
|
+
}, c = !1, d = "", h = "animationstart", f = "Webkit Moz O ms".split(" "), u = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "), _ = t.document.createElement("fakeelement");
|
|
228
|
+
if (_.style.animationName !== void 0 && (c = !0), c === !1) {
|
|
229
|
+
for (var g = 0; g < f.length; g++) if (_.style[f[g] + "AnimationName"] !== void 0) {
|
|
230
|
+
d = "-" + f[g].toLowerCase() + "-", h = u[g], c = !0;
|
|
324
231
|
break;
|
|
325
232
|
}
|
|
326
233
|
}
|
|
327
|
-
var
|
|
234
|
+
var m = "resizeanim", S = "@" + d + "keyframes " + m + " { from { opacity: 0; } to { opacity: 0; } } ", y = d + "animation: 1ms " + m + "; ";
|
|
328
235
|
}
|
|
329
|
-
return { addResizeListener: function(
|
|
330
|
-
if (r)
|
|
236
|
+
return { addResizeListener: function(v, w) {
|
|
237
|
+
if (r) v.attachEvent("onresize", w);
|
|
331
238
|
else {
|
|
332
|
-
if (!
|
|
333
|
-
var x =
|
|
334
|
-
|
|
335
|
-
if (!
|
|
336
|
-
var k = (S || "") + ".resize-triggers { " + (y || "") + 'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',
|
|
337
|
-
|
|
239
|
+
if (!v.__resizeTriggers__) {
|
|
240
|
+
var x = v.ownerDocument, R = t.getComputedStyle(v);
|
|
241
|
+
R && R.position == "static" && (v.style.position = "relative"), function(T) {
|
|
242
|
+
if (!T.getElementById("detectElementResize")) {
|
|
243
|
+
var k = (S || "") + ".resize-triggers { " + (y || "") + 'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }', O = T.head || T.getElementsByTagName("head")[0], P = T.createElement("style");
|
|
244
|
+
P.id = "detectElementResize", P.type = "text/css", o != null && P.setAttribute("nonce", o), P.styleSheet ? P.styleSheet.cssText = k : P.appendChild(T.createTextNode(k)), O.appendChild(P);
|
|
338
245
|
}
|
|
339
|
-
}(x),
|
|
340
|
-
var
|
|
341
|
-
|
|
342
|
-
var
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
},
|
|
246
|
+
}(x), v.__resizeLast__ = {}, v.__resizeListeners__ = [], (v.__resizeTriggers__ = x.createElement("div")).className = "resize-triggers";
|
|
247
|
+
var b = x.createElement("div");
|
|
248
|
+
b.className = "expand-trigger", b.appendChild(x.createElement("div"));
|
|
249
|
+
var z = x.createElement("div");
|
|
250
|
+
z.className = "contract-trigger", v.__resizeTriggers__.appendChild(b), v.__resizeTriggers__.appendChild(z), v.appendChild(v.__resizeTriggers__), a(v), v.addEventListener("scroll", s, !0), h && (v.__resizeTriggers__.__animationListener__ = function(T) {
|
|
251
|
+
T.animationName == m && a(v);
|
|
252
|
+
}, v.__resizeTriggers__.addEventListener(h, v.__resizeTriggers__.__animationListener__));
|
|
346
253
|
}
|
|
347
|
-
|
|
254
|
+
v.__resizeListeners__.push(w);
|
|
348
255
|
}
|
|
349
|
-
}, removeResizeListener: function(
|
|
350
|
-
if (r)
|
|
351
|
-
else if (
|
|
352
|
-
|
|
256
|
+
}, removeResizeListener: function(v, w) {
|
|
257
|
+
if (r) v.detachEvent("onresize", w);
|
|
258
|
+
else if (v.__resizeListeners__.splice(v.__resizeListeners__.indexOf(w), 1), !v.__resizeListeners__.length) {
|
|
259
|
+
v.removeEventListener("scroll", s, !0), v.__resizeTriggers__.__animationListener__ && (v.__resizeTriggers__.removeEventListener(h, v.__resizeTriggers__.__animationListener__), v.__resizeTriggers__.__animationListener__ = null);
|
|
353
260
|
try {
|
|
354
|
-
|
|
261
|
+
v.__resizeTriggers__ = !v.removeChild(v.__resizeTriggers__);
|
|
355
262
|
} catch {
|
|
356
263
|
}
|
|
357
264
|
}
|
|
358
265
|
} };
|
|
359
266
|
}
|
|
360
|
-
function
|
|
267
|
+
function He(o, e) {
|
|
361
268
|
var t = Object.keys(o);
|
|
362
269
|
if (Object.getOwnPropertySymbols) {
|
|
363
270
|
var n = Object.getOwnPropertySymbols(o);
|
|
@@ -367,78 +274,78 @@ function Be(o, e) {
|
|
|
367
274
|
}
|
|
368
275
|
return t;
|
|
369
276
|
}
|
|
370
|
-
function
|
|
277
|
+
function We(o) {
|
|
371
278
|
for (var e = 1; e < arguments.length; e++) {
|
|
372
279
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
373
|
-
e % 2 ?
|
|
280
|
+
e % 2 ? He(Object(t), !0).forEach(function(n) {
|
|
374
281
|
p(o, n, t[n]);
|
|
375
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) :
|
|
282
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : He(Object(t)).forEach(function(n) {
|
|
376
283
|
Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
|
|
377
284
|
});
|
|
378
285
|
}
|
|
379
286
|
return o;
|
|
380
287
|
}
|
|
381
|
-
function
|
|
288
|
+
function wt() {
|
|
382
289
|
try {
|
|
383
290
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
384
291
|
}));
|
|
385
292
|
} catch {
|
|
386
293
|
}
|
|
387
|
-
return (
|
|
294
|
+
return (wt = function() {
|
|
388
295
|
return !!o;
|
|
389
296
|
})();
|
|
390
297
|
}
|
|
391
|
-
p(
|
|
392
|
-
var
|
|
298
|
+
p(Ee, "defaultProps", { disabled: !1, isControlled: !1, mode: "edges", scrollToColumn: 0, scrollToRow: 0 }), ae(Ee);
|
|
299
|
+
var Ct = function() {
|
|
393
300
|
function o() {
|
|
394
301
|
var e, t, n, r;
|
|
395
|
-
|
|
396
|
-
for (var
|
|
397
|
-
return t = this, n = o, r = [].concat(
|
|
302
|
+
G(this, o);
|
|
303
|
+
for (var i = arguments.length, l = new Array(i), a = 0; a < i; a++) l[a] = arguments[a];
|
|
304
|
+
return t = this, n = o, r = [].concat(l), n = I(n), p(e = H(t, wt() ? 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() {
|
|
398
305
|
var s = e.props, c = s.disableHeight, d = s.disableWidth, h = s.onResize;
|
|
399
306
|
if (e._parentNode) {
|
|
400
|
-
var f = e._parentNode.offsetHeight || 0, u = e._parentNode.offsetWidth || 0,
|
|
401
|
-
(!c && e.state.height !==
|
|
307
|
+
var f = e._parentNode.offsetHeight || 0, u = e._parentNode.offsetWidth || 0, _ = (e._window || window).getComputedStyle(e._parentNode) || {}, g = parseInt(_.paddingLeft, 10) || 0, m = parseInt(_.paddingRight, 10) || 0, S = parseInt(_.paddingTop, 10) || 0, y = parseInt(_.paddingBottom, 10) || 0, v = f - S - y, w = u - g - m;
|
|
308
|
+
(!c && e.state.height !== v || !d && e.state.width !== w) && (e.setState({ height: f - S - y, width: u - g - m }), h({ height: f, width: u }));
|
|
402
309
|
}
|
|
403
310
|
}), p(e, "_setRef", function(s) {
|
|
404
311
|
e._autoSizer = s;
|
|
405
312
|
}), e;
|
|
406
313
|
}
|
|
407
|
-
return
|
|
314
|
+
return W(o, C.Component), A(o, [{ key: "componentDidMount", value: function() {
|
|
408
315
|
var e = this.props.nonce;
|
|
409
|
-
this._autoSizer && this._autoSizer.parentNode && this._autoSizer.parentNode.ownerDocument && this._autoSizer.parentNode.ownerDocument.defaultView && this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement && (this._parentNode = this._autoSizer.parentNode, this._window = this._autoSizer.parentNode.ownerDocument.defaultView, this._detectElementResize =
|
|
316
|
+
this._autoSizer && this._autoSizer.parentNode && this._autoSizer.parentNode.ownerDocument && this._autoSizer.parentNode.ownerDocument.defaultView && this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement && (this._parentNode = this._autoSizer.parentNode, this._window = this._autoSizer.parentNode.ownerDocument.defaultView, this._detectElementResize = yt(e, this._window), this._detectElementResize.addResizeListener(this._parentNode, this._onResize), this._onResize());
|
|
410
317
|
} }, { key: "componentWillUnmount", value: function() {
|
|
411
318
|
this._detectElementResize && this._parentNode && this._detectElementResize.removeResizeListener(this._parentNode, this._onResize);
|
|
412
319
|
} }, { key: "render", value: function() {
|
|
413
|
-
var e = this.props, t = e.children, n = e.className, r = e.disableHeight,
|
|
414
|
-
return r || (d.height = 0, h.height = s),
|
|
320
|
+
var e = this.props, t = e.children, n = e.className, r = e.disableHeight, i = e.disableWidth, l = e.style, a = this.state, s = a.height, c = a.width, d = { overflow: "visible" }, h = {};
|
|
321
|
+
return r || (d.height = 0, h.height = s), i || (d.width = 0, h.width = c), C.createElement("div", { className: n, ref: this._setRef, style: We(We({}, d), l) }, t(h));
|
|
415
322
|
} }]);
|
|
416
323
|
}();
|
|
417
|
-
function
|
|
324
|
+
function xt() {
|
|
418
325
|
try {
|
|
419
326
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
420
327
|
}));
|
|
421
328
|
} catch {
|
|
422
329
|
}
|
|
423
|
-
return (
|
|
330
|
+
return (xt = function() {
|
|
424
331
|
return !!o;
|
|
425
332
|
})();
|
|
426
333
|
}
|
|
427
|
-
p(
|
|
334
|
+
p(Ct, "defaultProps", { onResize: function() {
|
|
428
335
|
}, disableHeight: !1, disableWidth: !1, style: {} });
|
|
429
|
-
var
|
|
336
|
+
var So = function() {
|
|
430
337
|
function o() {
|
|
431
338
|
var e, t, n, r;
|
|
432
|
-
|
|
433
|
-
for (var
|
|
434
|
-
return t = this, n = o, r = [].concat(
|
|
435
|
-
var s = e.props, c = s.cache, d = s.columnIndex, h = d === void 0 ? 0 : d, f = s.parent, u = s.rowIndex,
|
|
436
|
-
|
|
339
|
+
G(this, o);
|
|
340
|
+
for (var i = arguments.length, l = new Array(i), a = 0; a < i; a++) l[a] = arguments[a];
|
|
341
|
+
return t = this, n = o, r = [].concat(l), n = I(n), p(e = H(t, xt() ? Reflect.construct(n, r || [], I(t).constructor) : n.apply(t, r)), "_child", C.createRef()), p(e, "_measure", function() {
|
|
342
|
+
var s = e.props, c = s.cache, d = s.columnIndex, h = d === void 0 ? 0 : d, f = s.parent, u = s.rowIndex, _ = u === void 0 ? e.props.index || 0 : u, g = e._getCellMeasurements(), m = g.height, S = g.width;
|
|
343
|
+
m === c.getHeight(_, h) && S === c.getWidth(_, h) || (c.set(_, h, S, m), f && typeof f.recomputeGridSize == "function" && f.recomputeGridSize({ columnIndex: h, rowIndex: _ }));
|
|
437
344
|
}), p(e, "_registerChild", function(s) {
|
|
438
345
|
!s || s instanceof Element || console.warn("CellMeasurer registerChild expects to be passed Element or null"), e._child.current = s, s && e._maybeMeasureCell();
|
|
439
346
|
}), e;
|
|
440
347
|
}
|
|
441
|
-
return
|
|
348
|
+
return W(o, C.PureComponent), A(o, [{ key: "componentDidMount", value: function() {
|
|
442
349
|
this._maybeMeasureCell();
|
|
443
350
|
} }, { key: "componentDidUpdate", value: function() {
|
|
444
351
|
this._maybeMeasureCell();
|
|
@@ -452,42 +359,42 @@ var Eo = function() {
|
|
|
452
359
|
if (t && t.ownerDocument && t.ownerDocument.defaultView && t instanceof t.ownerDocument.defaultView.HTMLElement) {
|
|
453
360
|
var n = t.style.width, r = t.style.height;
|
|
454
361
|
e.hasFixedWidth() || (t.style.width = "auto"), e.hasFixedHeight() || (t.style.height = "auto");
|
|
455
|
-
var
|
|
456
|
-
return n && (t.style.width = n), r && (t.style.height = r), { height:
|
|
362
|
+
var i = Math.ceil(t.offsetHeight), l = Math.ceil(t.offsetWidth);
|
|
363
|
+
return n && (t.style.width = n), r && (t.style.height = r), { height: i, width: l };
|
|
457
364
|
}
|
|
458
365
|
return { height: 0, width: 0 };
|
|
459
366
|
} }, { key: "_maybeMeasureCell", value: function() {
|
|
460
|
-
var e = this.props, t = e.cache, n = e.columnIndex, r = n === void 0 ? 0 : n,
|
|
367
|
+
var e = this.props, t = e.cache, n = e.columnIndex, r = n === void 0 ? 0 : n, i = e.parent, l = e.rowIndex, a = l === void 0 ? this.props.index || 0 : l;
|
|
461
368
|
if (!t.has(a, r)) {
|
|
462
369
|
var s = this._getCellMeasurements(), c = s.height, d = s.width;
|
|
463
|
-
t.set(a, r, d, c),
|
|
370
|
+
t.set(a, r, d, c), i && typeof i.invalidateCellSizeAfterRender == "function" && i.invalidateCellSizeAfterRender({ columnIndex: r, rowIndex: a });
|
|
464
371
|
}
|
|
465
372
|
} }]);
|
|
466
373
|
}();
|
|
467
|
-
function
|
|
374
|
+
function Z() {
|
|
468
375
|
var o = !(arguments.length > 0 && arguments[0] !== void 0) || arguments[0], e = {};
|
|
469
376
|
return function(t) {
|
|
470
|
-
var n = t.callback, r = t.indices,
|
|
377
|
+
var n = t.callback, r = t.indices, i = Object.keys(r), l = !o || i.every(function(s) {
|
|
471
378
|
var c = r[s];
|
|
472
379
|
return Array.isArray(c) ? c.length > 0 : c >= 0;
|
|
473
|
-
}), a =
|
|
380
|
+
}), a = i.length !== Object.keys(e).length || i.some(function(s) {
|
|
474
381
|
var c = e[s], d = r[s];
|
|
475
382
|
return Array.isArray(d) ? c.join(",") !== d.join(",") : c !== d;
|
|
476
383
|
});
|
|
477
|
-
e = r,
|
|
384
|
+
e = r, l && a && n(r);
|
|
478
385
|
};
|
|
479
386
|
}
|
|
480
|
-
p(
|
|
481
|
-
const
|
|
482
|
-
var
|
|
483
|
-
function
|
|
484
|
-
if ((!
|
|
387
|
+
p(So, "__internalCellMeasurerFlag", !1);
|
|
388
|
+
const yo = !(typeof window > "u" || !window.document || !window.document.createElement);
|
|
389
|
+
var ue;
|
|
390
|
+
function we(o) {
|
|
391
|
+
if ((!ue && ue !== 0 || o) && yo) {
|
|
485
392
|
var e = document.createElement("div");
|
|
486
|
-
e.style.position = "absolute", e.style.top = "-9999px", e.style.width = "50px", e.style.height = "50px", e.style.overflow = "scroll", document.body.appendChild(e),
|
|
393
|
+
e.style.position = "absolute", e.style.top = "-9999px", e.style.width = "50px", e.style.height = "50px", e.style.overflow = "scroll", document.body.appendChild(e), ue = e.offsetWidth - e.clientWidth, document.body.removeChild(e);
|
|
487
394
|
}
|
|
488
|
-
return
|
|
395
|
+
return ue;
|
|
489
396
|
}
|
|
490
|
-
function
|
|
397
|
+
function De(o, e) {
|
|
491
398
|
var t = Object.keys(o);
|
|
492
399
|
if (Object.getOwnPropertySymbols) {
|
|
493
400
|
var n = Object.getOwnPropertySymbols(o);
|
|
@@ -497,100 +404,100 @@ function Ve(o, e) {
|
|
|
497
404
|
}
|
|
498
405
|
return t;
|
|
499
406
|
}
|
|
500
|
-
function
|
|
407
|
+
function je(o) {
|
|
501
408
|
for (var e = 1; e < arguments.length; e++) {
|
|
502
409
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
503
|
-
e % 2 ?
|
|
410
|
+
e % 2 ? De(Object(t), !0).forEach(function(n) {
|
|
504
411
|
p(o, n, t[n]);
|
|
505
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) :
|
|
412
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : De(Object(t)).forEach(function(n) {
|
|
506
413
|
Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
|
|
507
414
|
});
|
|
508
415
|
}
|
|
509
416
|
return o;
|
|
510
417
|
}
|
|
511
|
-
function
|
|
418
|
+
function Rt() {
|
|
512
419
|
try {
|
|
513
420
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
514
421
|
}));
|
|
515
422
|
} catch {
|
|
516
423
|
}
|
|
517
|
-
return (
|
|
424
|
+
return (Rt = function() {
|
|
518
425
|
return !!o;
|
|
519
426
|
})();
|
|
520
427
|
}
|
|
521
|
-
var
|
|
428
|
+
var ee = "requested", fe = function() {
|
|
522
429
|
function o() {
|
|
523
430
|
var e, t, n, r;
|
|
524
|
-
|
|
525
|
-
for (var
|
|
526
|
-
return t = this, n = o, r = [].concat(
|
|
431
|
+
G(this, o);
|
|
432
|
+
for (var i = arguments.length, l = new Array(i), a = 0; a < i; a++) l[a] = arguments[a];
|
|
433
|
+
return t = this, n = o, r = [].concat(l), n = I(n), p(e = H(t, Rt() ? 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", Z()), p(e, "_onScrollMemoizer", Z(!1)), p(e, "_invokeOnSectionRenderedHelper", function() {
|
|
527
434
|
var s = e.props, c = s.cellLayoutManager, d = s.onSectionRendered;
|
|
528
435
|
e._onSectionRenderedMemoizer({ callback: d, indices: { indices: c.getLastRenderedIndices() } });
|
|
529
436
|
}), p(e, "_setScrollingContainerRef", function(s) {
|
|
530
437
|
e._scrollingContainer = s;
|
|
531
438
|
}), p(e, "_updateScrollPositionForScrollToCell", function() {
|
|
532
|
-
var s = e.props, c = s.cellLayoutManager, d = s.height, h = s.scrollToAlignment, f = s.scrollToCell, u = s.width,
|
|
439
|
+
var s = e.props, c = s.cellLayoutManager, d = s.height, h = s.scrollToAlignment, f = s.scrollToCell, u = s.width, _ = e.state, g = _.scrollLeft, m = _.scrollTop;
|
|
533
440
|
if (f >= 0) {
|
|
534
|
-
var S = c.getScrollPositionForCell({ align: h, cellIndex: f, height: d, scrollLeft:
|
|
535
|
-
S.scrollLeft ===
|
|
441
|
+
var S = c.getScrollPositionForCell({ align: h, cellIndex: f, height: d, scrollLeft: g, scrollTop: m, width: u });
|
|
442
|
+
S.scrollLeft === g && S.scrollTop === m || e._setScrollPosition(S);
|
|
536
443
|
}
|
|
537
444
|
}), p(e, "_onScroll", function(s) {
|
|
538
445
|
if (s.target === e._scrollingContainer) {
|
|
539
446
|
e._enablePointerEventsAfterDelay();
|
|
540
|
-
var c = e.props, d = c.cellLayoutManager, h = c.height, f = c.isScrollingChange, u = c.width,
|
|
541
|
-
if (e.state.scrollLeft !== y || e.state.scrollTop !==
|
|
542
|
-
var w = s.cancelable ? "observed" :
|
|
543
|
-
e.state.isScrolling || f(!0), e.setState({ isScrolling: !0, scrollLeft: y, scrollPositionChangeReason: w, scrollTop:
|
|
447
|
+
var c = e.props, d = c.cellLayoutManager, h = c.height, f = c.isScrollingChange, u = c.width, _ = e._scrollbarSize, g = d.getTotalSize(), m = g.height, S = g.width, y = Math.max(0, Math.min(S - u + _, s.target.scrollLeft)), v = Math.max(0, Math.min(m - h + _, s.target.scrollTop));
|
|
448
|
+
if (e.state.scrollLeft !== y || e.state.scrollTop !== v) {
|
|
449
|
+
var w = s.cancelable ? "observed" : ee;
|
|
450
|
+
e.state.isScrolling || f(!0), e.setState({ isScrolling: !0, scrollLeft: y, scrollPositionChangeReason: w, scrollTop: v });
|
|
544
451
|
}
|
|
545
|
-
e._invokeOnScrollMemoizer({ scrollLeft: y, scrollTop:
|
|
452
|
+
e._invokeOnScrollMemoizer({ scrollLeft: y, scrollTop: v, totalWidth: S, totalHeight: m });
|
|
546
453
|
}
|
|
547
|
-
}), e._scrollbarSize =
|
|
454
|
+
}), e._scrollbarSize = we(), e._scrollbarSize === void 0 ? (e._scrollbarSizeMeasured = !1, e._scrollbarSize = 0) : e._scrollbarSizeMeasured = !0, e;
|
|
548
455
|
}
|
|
549
|
-
return
|
|
456
|
+
return W(o, C.PureComponent), A(o, [{ key: "recomputeCellSizesAndPositions", value: function() {
|
|
550
457
|
this._calculateSizeAndPositionDataOnNextUpdate = !0, this.forceUpdate();
|
|
551
458
|
} }, { key: "componentDidMount", value: function() {
|
|
552
|
-
var e = this.props, t = e.cellLayoutManager, n = e.scrollLeft, r = e.scrollToCell,
|
|
553
|
-
this._scrollbarSizeMeasured || (this._scrollbarSize =
|
|
554
|
-
var
|
|
555
|
-
this._invokeOnScrollMemoizer({ scrollLeft: n || 0, scrollTop:
|
|
459
|
+
var e = this.props, t = e.cellLayoutManager, n = e.scrollLeft, r = e.scrollToCell, i = e.scrollTop;
|
|
460
|
+
this._scrollbarSizeMeasured || (this._scrollbarSize = we(), this._scrollbarSizeMeasured = !0, this.setState({})), r >= 0 ? this._updateScrollPositionForScrollToCell() : (n >= 0 || i >= 0) && this._setScrollPosition({ scrollLeft: n, scrollTop: i }), this._invokeOnSectionRenderedHelper();
|
|
461
|
+
var l = t.getTotalSize(), a = l.height, s = l.width;
|
|
462
|
+
this._invokeOnScrollMemoizer({ scrollLeft: n || 0, scrollTop: i || 0, totalHeight: a, totalWidth: s });
|
|
556
463
|
} }, { key: "componentDidUpdate", value: function(e, t) {
|
|
557
|
-
var n = this.props, r = n.height,
|
|
558
|
-
d ===
|
|
464
|
+
var n = this.props, r = n.height, i = n.scrollToAlignment, l = n.scrollToCell, a = n.width, s = this.state, c = s.scrollLeft, d = s.scrollPositionChangeReason, h = s.scrollTop;
|
|
465
|
+
d === ee && (c >= 0 && c !== t.scrollLeft && c !== this._scrollingContainer.scrollLeft && (this._scrollingContainer.scrollLeft = c), h >= 0 && h !== t.scrollTop && h !== this._scrollingContainer.scrollTop && (this._scrollingContainer.scrollTop = h)), r === e.height && i === e.scrollToAlignment && l === e.scrollToCell && a === e.width || this._updateScrollPositionForScrollToCell(), this._invokeOnSectionRenderedHelper();
|
|
559
466
|
} }, { key: "componentWillUnmount", value: function() {
|
|
560
467
|
this._disablePointerEventsTimeoutId && clearTimeout(this._disablePointerEventsTimeoutId);
|
|
561
468
|
} }, { key: "render", value: function() {
|
|
562
|
-
var e = this.props, t = e.autoHeight, n = e.cellCount, r = e.cellLayoutManager,
|
|
469
|
+
var e = this.props, t = e.autoHeight, n = e.cellCount, r = e.cellLayoutManager, i = e.className, l = e.height, a = e.horizontalOverscanSize, s = e.id, c = e.noContentRenderer, d = e.style, h = e.verticalOverscanSize, f = e.width, u = this.state, _ = u.isScrolling, g = u.scrollLeft, m = u.scrollTop;
|
|
563
470
|
(this._lastRenderedCellCount !== n || this._lastRenderedCellLayoutManager !== r || this._calculateSizeAndPositionDataOnNextUpdate) && (this._lastRenderedCellCount = n, this._lastRenderedCellLayoutManager = r, this._calculateSizeAndPositionDataOnNextUpdate = !1, r.calculateSizeAndPositionData());
|
|
564
|
-
var S = r.getTotalSize(), y = S.height,
|
|
565
|
-
return
|
|
471
|
+
var S = r.getTotalSize(), y = S.height, v = S.width, w = Math.max(0, g - a), x = Math.max(0, m - h), R = Math.min(v, g + f + a), b = Math.min(y, m + l + h), z = l > 0 && f > 0 ? r.cellRenderers({ height: b - x, isScrolling: _, width: R - w, x: w, y: x }) : [], T = { boxSizing: "border-box", direction: "ltr", height: t ? "auto" : l, position: "relative", WebkitOverflowScrolling: "touch", width: f, willChange: "transform" }, k = y > l ? this._scrollbarSize : 0, O = v > f ? this._scrollbarSize : 0;
|
|
472
|
+
return T.overflowX = v + k <= f ? "hidden" : "auto", T.overflowY = y + O <= l ? "hidden" : "auto", C.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 && C.createElement("div", { className: "ReactVirtualized__Collection__innerScrollContainer", style: { height: y, maxHeight: y, maxWidth: v, overflow: "hidden", pointerEvents: _ ? "none" : "", width: v } }, z), n === 0 && c());
|
|
566
473
|
} }, { key: "_enablePointerEventsAfterDelay", value: function() {
|
|
567
474
|
var e = this;
|
|
568
475
|
this._disablePointerEventsTimeoutId && clearTimeout(this._disablePointerEventsTimeoutId), this._disablePointerEventsTimeoutId = setTimeout(function() {
|
|
569
476
|
(0, e.props.isScrollingChange)(!1), e._disablePointerEventsTimeoutId = null, e.setState({ isScrolling: !1 });
|
|
570
477
|
}, 150);
|
|
571
478
|
} }, { key: "_invokeOnScrollMemoizer", value: function(e) {
|
|
572
|
-
var t = this, n = e.scrollLeft, r = e.scrollTop,
|
|
479
|
+
var t = this, n = e.scrollLeft, r = e.scrollTop, i = e.totalHeight, l = e.totalWidth;
|
|
573
480
|
this._onScrollMemoizer({ callback: function(a) {
|
|
574
481
|
var s = a.scrollLeft, c = a.scrollTop, d = t.props, h = d.height;
|
|
575
|
-
(0, d.onScroll)({ clientHeight: h, clientWidth: d.width, scrollHeight:
|
|
482
|
+
(0, d.onScroll)({ clientHeight: h, clientWidth: d.width, scrollHeight: i, scrollLeft: s, scrollTop: c, scrollWidth: l });
|
|
576
483
|
}, indices: { scrollLeft: n, scrollTop: r } });
|
|
577
484
|
} }, { key: "_setScrollPosition", value: function(e) {
|
|
578
|
-
var t = e.scrollLeft, n = e.scrollTop, r = { scrollPositionChangeReason:
|
|
485
|
+
var t = e.scrollLeft, n = e.scrollTop, r = { scrollPositionChangeReason: ee };
|
|
579
486
|
t >= 0 && (r.scrollLeft = t), n >= 0 && (r.scrollTop = n), (t >= 0 && t !== this.state.scrollLeft || n >= 0 && n !== this.state.scrollTop) && this.setState(r);
|
|
580
487
|
} }], [{ key: "getDerivedStateFromProps", value: function(e, t) {
|
|
581
|
-
return e.cellCount !== 0 || t.scrollLeft === 0 && t.scrollTop === 0 ? e.scrollLeft !== t.scrollLeft || e.scrollTop !== t.scrollTop ? { scrollLeft: e.scrollLeft != null ? e.scrollLeft : t.scrollLeft, scrollTop: e.scrollTop != null ? e.scrollTop : t.scrollTop, scrollPositionChangeReason:
|
|
488
|
+
return e.cellCount !== 0 || t.scrollLeft === 0 && t.scrollTop === 0 ? e.scrollLeft !== t.scrollLeft || e.scrollTop !== t.scrollTop ? { scrollLeft: e.scrollLeft != null ? e.scrollLeft : t.scrollLeft, scrollTop: e.scrollTop != null ? e.scrollTop : t.scrollTop, scrollPositionChangeReason: ee } : null : { scrollLeft: 0, scrollTop: 0, scrollPositionChangeReason: ee };
|
|
582
489
|
} }]);
|
|
583
490
|
}();
|
|
584
|
-
p(
|
|
491
|
+
p(fe, "defaultProps", { "aria-label": "grid", horizontalOverscanSize: 0, noContentRenderer: function() {
|
|
585
492
|
return null;
|
|
586
493
|
}, onScroll: function() {
|
|
587
494
|
return null;
|
|
588
495
|
}, onSectionRendered: function() {
|
|
589
496
|
return null;
|
|
590
|
-
}, scrollToAlignment: "auto", scrollToCell: -1, style: {}, verticalOverscanSize: 0 }),
|
|
591
|
-
var
|
|
592
|
-
var t = e.height, n = e.width, r = e.x,
|
|
593
|
-
|
|
497
|
+
}, scrollToAlignment: "auto", scrollToCell: -1, style: {}, verticalOverscanSize: 0 }), fe.propTypes = {}, ae(fe);
|
|
498
|
+
var wo = A(function o(e) {
|
|
499
|
+
var t = e.height, n = e.width, r = e.x, i = e.y;
|
|
500
|
+
G(this, o), this.height = t, this.width = n, this.x = r, this.y = i, this._indexMap = {}, this._indices = [];
|
|
594
501
|
}, [{ key: "addCellIndex", value: function(o) {
|
|
595
502
|
var e = o.index;
|
|
596
503
|
this._indexMap[e] || (this._indexMap[e] = !0, this._indices.push(e));
|
|
@@ -598,25 +505,25 @@ var Wo = H(function o(e) {
|
|
|
598
505
|
return this._indices;
|
|
599
506
|
} }, { key: "toString", value: function() {
|
|
600
507
|
return "".concat(this.x, ",").concat(this.y, " ").concat(this.width, "x").concat(this.height);
|
|
601
|
-
} }]),
|
|
508
|
+
} }]), Co = A(function o() {
|
|
602
509
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 100;
|
|
603
|
-
|
|
510
|
+
G(this, o), this._sectionSize = e, this._cellMetadata = [], this._sections = {};
|
|
604
511
|
}, [{ key: "getCellIndices", value: function(o) {
|
|
605
|
-
var e = o.height, t = o.width, n = o.x, r = o.y,
|
|
606
|
-
return this.getSections({ height: e, width: t, x: n, y: r }).forEach(function(
|
|
607
|
-
return
|
|
608
|
-
|
|
512
|
+
var e = o.height, t = o.width, n = o.x, r = o.y, i = {};
|
|
513
|
+
return this.getSections({ height: e, width: t, x: n, y: r }).forEach(function(l) {
|
|
514
|
+
return l.getCellIndices().forEach(function(a) {
|
|
515
|
+
i[a] = a;
|
|
609
516
|
});
|
|
610
|
-
}), Object.keys(
|
|
611
|
-
return l
|
|
517
|
+
}), Object.keys(i).map(function(l) {
|
|
518
|
+
return i[l];
|
|
612
519
|
});
|
|
613
520
|
} }, { key: "getCellMetadata", value: function(o) {
|
|
614
521
|
var e = o.index;
|
|
615
522
|
return this._cellMetadata[e];
|
|
616
523
|
} }, { key: "getSections", value: function(o) {
|
|
617
|
-
for (var e = o.height, t = o.width, n = o.x, r = o.y,
|
|
524
|
+
for (var e = o.height, t = o.width, n = o.x, r = o.y, i = Math.floor(n / this._sectionSize), l = Math.floor((n + t - 1) / this._sectionSize), a = Math.floor(r / this._sectionSize), s = Math.floor((r + e - 1) / this._sectionSize), c = [], d = i; d <= l; d++) for (var h = a; h <= s; h++) {
|
|
618
525
|
var f = "".concat(d, ".").concat(h);
|
|
619
|
-
this._sections[f] || (this._sections[f] = new
|
|
526
|
+
this._sections[f] || (this._sections[f] = new wo({ height: this._sectionSize, width: this._sectionSize, x: d * this._sectionSize, y: h * this._sectionSize })), c.push(this._sections[f]);
|
|
620
527
|
}
|
|
621
528
|
return c;
|
|
622
529
|
} }, { key: "getTotalSectionCount", value: function() {
|
|
@@ -632,68 +539,68 @@ var Wo = H(function o(e) {
|
|
|
632
539
|
return n.addCellIndex({ index: t });
|
|
633
540
|
});
|
|
634
541
|
} }]);
|
|
635
|
-
function
|
|
636
|
-
var e = o.align, t = e === void 0 ? "auto" : e, n = o.cellOffset, r = o.cellSize,
|
|
542
|
+
function Fe(o) {
|
|
543
|
+
var e = o.align, t = e === void 0 ? "auto" : e, n = o.cellOffset, r = o.cellSize, i = o.containerSize, l = o.currentOffset, a = n, s = a - i + r;
|
|
637
544
|
switch (t) {
|
|
638
545
|
case "start":
|
|
639
546
|
return a;
|
|
640
547
|
case "end":
|
|
641
548
|
return s;
|
|
642
549
|
case "center":
|
|
643
|
-
return a - (
|
|
550
|
+
return a - (i - r) / 2;
|
|
644
551
|
default:
|
|
645
|
-
return Math.max(s, Math.min(a,
|
|
552
|
+
return Math.max(s, Math.min(a, l));
|
|
646
553
|
}
|
|
647
554
|
}
|
|
648
|
-
function
|
|
555
|
+
function bt() {
|
|
649
556
|
try {
|
|
650
557
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
651
558
|
}));
|
|
652
559
|
} catch {
|
|
653
560
|
}
|
|
654
|
-
return (
|
|
561
|
+
return (bt = function() {
|
|
655
562
|
return !!o;
|
|
656
563
|
})();
|
|
657
564
|
}
|
|
658
|
-
var
|
|
565
|
+
var Ne = function() {
|
|
659
566
|
function o(e, t) {
|
|
660
|
-
var n, r,
|
|
661
|
-
return
|
|
567
|
+
var n, r, i, l;
|
|
568
|
+
return G(this, o), r = this, l = [e, t], i = I(i = o), (n = H(r, bt() ? 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;
|
|
662
569
|
}
|
|
663
|
-
return
|
|
570
|
+
return W(o, C.PureComponent), A(o, [{ key: "forceUpdate", value: function() {
|
|
664
571
|
this._collectionView !== void 0 && this._collectionView.forceUpdate();
|
|
665
572
|
} }, { key: "recomputeCellSizesAndPositions", value: function() {
|
|
666
573
|
this._cellCache = [], this._collectionView.recomputeCellSizesAndPositions();
|
|
667
574
|
} }, { key: "render", value: function() {
|
|
668
|
-
var e =
|
|
575
|
+
var e = U({}, (function(t) {
|
|
669
576
|
if (t == null) throw new TypeError("Cannot destructure " + t);
|
|
670
577
|
}(this.props), this.props));
|
|
671
|
-
return C.createElement(
|
|
578
|
+
return C.createElement(fe, U({ cellLayoutManager: this, isScrollingChange: this._isScrollingChange, ref: this._setCollectionViewRef }, e));
|
|
672
579
|
} }, { key: "calculateSizeAndPositionData", value: function() {
|
|
673
580
|
var e = this.props, t = function(n) {
|
|
674
|
-
for (var r = n.cellCount,
|
|
675
|
-
var h =
|
|
581
|
+
for (var r = n.cellCount, i = n.cellSizeAndPositionGetter, l = [], a = new Co(n.sectionSize), s = 0, c = 0, d = 0; d < r; d++) {
|
|
582
|
+
var h = i({ index: d });
|
|
676
583
|
if (h.height == null || isNaN(h.height) || h.width == null || isNaN(h.width) || h.x == null || isNaN(h.x) || h.y == null || isNaN(h.y)) throw Error("Invalid metadata returned for cell ".concat(d, `:
|
|
677
584
|
x:`).concat(h.x, ", y:").concat(h.y, ", width:").concat(h.width, ", height:").concat(h.height));
|
|
678
|
-
s = Math.max(s, h.y + h.height), c = Math.max(c, h.x + h.width),
|
|
585
|
+
s = Math.max(s, h.y + h.height), c = Math.max(c, h.x + h.width), l[d] = h, a.registerCell({ cellMetadatum: h, index: d });
|
|
679
586
|
}
|
|
680
|
-
return { cellMetadata:
|
|
587
|
+
return { cellMetadata: l, height: s, sectionManager: a, width: c };
|
|
681
588
|
}({ cellCount: e.cellCount, cellSizeAndPositionGetter: e.cellSizeAndPositionGetter, sectionSize: e.sectionSize });
|
|
682
589
|
this._cellMetadata = t.cellMetadata, this._sectionManager = t.sectionManager, this._height = t.height, this._width = t.width;
|
|
683
590
|
} }, { key: "getLastRenderedIndices", value: function() {
|
|
684
591
|
return this._lastRenderedCellIndices;
|
|
685
592
|
} }, { key: "getScrollPositionForCell", value: function(e) {
|
|
686
|
-
var t = e.align, n = e.cellIndex, r = e.height,
|
|
593
|
+
var t = e.align, n = e.cellIndex, r = e.height, i = e.scrollLeft, l = e.scrollTop, a = e.width, s = this.props.cellCount;
|
|
687
594
|
if (n >= 0 && n < s) {
|
|
688
595
|
var c = this._cellMetadata[n];
|
|
689
|
-
|
|
596
|
+
i = Fe({ align: t, cellOffset: c.x, cellSize: c.width, containerSize: a, currentOffset: i }), l = Fe({ align: t, cellOffset: c.y, cellSize: c.height, containerSize: r, currentOffset: l });
|
|
690
597
|
}
|
|
691
|
-
return { scrollLeft:
|
|
598
|
+
return { scrollLeft: i, scrollTop: l };
|
|
692
599
|
} }, { key: "getTotalSize", value: function() {
|
|
693
600
|
return { height: this._height, width: this._width };
|
|
694
601
|
} }, { key: "cellRenderers", value: function(e) {
|
|
695
|
-
var t = this, n = e.height, r = e.isScrolling,
|
|
696
|
-
return this._lastRenderedCellIndices = this._sectionManager.getCellIndices({ height: n, width:
|
|
602
|
+
var t = this, n = e.height, r = e.isScrolling, i = e.width, l = e.x, a = e.y, s = this.props, c = s.cellGroupRenderer, d = s.cellRenderer;
|
|
603
|
+
return this._lastRenderedCellIndices = this._sectionManager.getCellIndices({ height: n, width: i, x: l, y: a }), c({ cellCache: this._cellCache, cellRenderer: d, cellSizeAndPositionGetter: function(h) {
|
|
697
604
|
var f = h.index;
|
|
698
605
|
return t._sectionManager.getCellMetadata({ index: f });
|
|
699
606
|
}, indices: this._lastRenderedCellIndices, isScrolling: r });
|
|
@@ -703,48 +610,48 @@ var qe = function() {
|
|
|
703
610
|
this._collectionView = e;
|
|
704
611
|
} }]);
|
|
705
612
|
}();
|
|
706
|
-
function
|
|
613
|
+
function zt() {
|
|
707
614
|
try {
|
|
708
615
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
709
616
|
}));
|
|
710
617
|
} catch {
|
|
711
618
|
}
|
|
712
|
-
return (
|
|
619
|
+
return (zt = function() {
|
|
713
620
|
return !!o;
|
|
714
621
|
})();
|
|
715
622
|
}
|
|
716
|
-
function
|
|
717
|
-
var e = o.cellCount, t = o.cellSize, n = o.computeMetadataCallback, r = o.computeMetadataCallbackProps,
|
|
718
|
-
e ===
|
|
623
|
+
function Be(o) {
|
|
624
|
+
var e = o.cellCount, t = o.cellSize, n = o.computeMetadataCallback, r = o.computeMetadataCallbackProps, i = o.nextCellsCount, l = o.nextCellSize, a = o.nextScrollToIndex, s = o.scrollToIndex, c = o.updateScrollOffsetForScrollToIndex;
|
|
625
|
+
e === i && (typeof t != "number" && typeof l != "number" || t === l) || (n(r), s >= 0 && s === a && c());
|
|
719
626
|
}
|
|
720
|
-
function
|
|
627
|
+
function oe(o, e) {
|
|
721
628
|
if (o == null) return {};
|
|
722
|
-
var t, n, r =
|
|
629
|
+
var t, n, r = fo(o, e);
|
|
723
630
|
if (Object.getOwnPropertySymbols) {
|
|
724
|
-
var
|
|
725
|
-
for (n = 0; n <
|
|
631
|
+
var i = Object.getOwnPropertySymbols(o);
|
|
632
|
+
for (n = 0; n < i.length; n++) t = i[n], e.indexOf(t) === -1 && {}.propertyIsEnumerable.call(o, t) && (r[t] = o[t]);
|
|
726
633
|
}
|
|
727
634
|
return r;
|
|
728
635
|
}
|
|
729
|
-
p(
|
|
730
|
-
var e = o.cellCache, t = o.cellRenderer, n = o.cellSizeAndPositionGetter, r = o.indices,
|
|
731
|
-
return r.map(function(
|
|
732
|
-
var a = n({ index:
|
|
733
|
-
return
|
|
734
|
-
}).filter(function(
|
|
735
|
-
return !!
|
|
636
|
+
p(Ne, "defaultProps", { "aria-label": "grid", cellGroupRenderer: function(o) {
|
|
637
|
+
var e = o.cellCache, t = o.cellRenderer, n = o.cellSizeAndPositionGetter, r = o.indices, i = o.isScrolling;
|
|
638
|
+
return r.map(function(l) {
|
|
639
|
+
var a = n({ index: l }), s = { index: l, isScrolling: i, key: l, style: { height: a.height, left: a.x, position: "absolute", top: a.y, width: a.width } };
|
|
640
|
+
return i ? (l in e || (e[l] = t(s)), e[l]) : t(s);
|
|
641
|
+
}).filter(function(l) {
|
|
642
|
+
return !!l;
|
|
736
643
|
});
|
|
737
|
-
} }),
|
|
644
|
+
} }), Ne.propTypes = {}, function() {
|
|
738
645
|
function o(e, t) {
|
|
739
|
-
var n, r,
|
|
740
|
-
return
|
|
646
|
+
var n, r, i, l;
|
|
647
|
+
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)))._registerChild = n._registerChild.bind(n), n;
|
|
741
648
|
}
|
|
742
|
-
return
|
|
743
|
-
var t = this.props, n = t.columnMaxWidth, r = t.columnMinWidth,
|
|
744
|
-
n === e.columnMaxWidth && r === e.columnMinWidth &&
|
|
649
|
+
return W(o, C.PureComponent), A(o, [{ key: "componentDidUpdate", value: function(e) {
|
|
650
|
+
var t = this.props, n = t.columnMaxWidth, r = t.columnMinWidth, i = t.columnCount, l = t.width;
|
|
651
|
+
n === e.columnMaxWidth && r === e.columnMinWidth && i === e.columnCount && l === e.width || this._registeredChild && this._registeredChild.recomputeGridSize();
|
|
745
652
|
} }, { key: "render", value: function() {
|
|
746
|
-
var e = this.props, t = e.children, n = e.columnMaxWidth, r = e.columnMinWidth,
|
|
747
|
-
return c = Math.max(a, c), c = Math.min(s, c), c = Math.floor(c), t({ adjustedWidth: Math.min(
|
|
653
|
+
var e = this.props, t = e.children, n = e.columnMaxWidth, r = e.columnMinWidth, i = e.columnCount, l = e.width, a = r || 1, s = n ? Math.min(n, l) : l, c = l / i;
|
|
654
|
+
return c = Math.max(a, c), c = Math.min(s, c), c = Math.floor(c), t({ adjustedWidth: Math.min(l, c * i), columnWidth: c, getColumnWidth: function() {
|
|
748
655
|
return c;
|
|
749
656
|
}, registerChild: this._registerChild });
|
|
750
657
|
} }, { key: "_registerChild", value: function(e) {
|
|
@@ -752,9 +659,9 @@ p(qe, "defaultProps", { "aria-label": "grid", cellGroupRenderer: function(o) {
|
|
|
752
659
|
this._registeredChild = e, this._registeredChild && this._registeredChild.recomputeGridSize();
|
|
753
660
|
} }]);
|
|
754
661
|
}().propTypes = {};
|
|
755
|
-
var F,
|
|
662
|
+
var F, xo = A(function o(e) {
|
|
756
663
|
var t = e.cellCount, n = e.cellSizeGetter, r = e.estimatedCellSize;
|
|
757
|
-
|
|
664
|
+
G(this, o), p(this, "_cellSizeAndPositionData", {}), p(this, "_lastMeasuredIndex", -1), p(this, "_lastBatchedIndex", -1), p(this, "_cellCount", void 0), p(this, "_cellSizeGetter", void 0), p(this, "_estimatedCellSize", void 0), this._cellSizeGetter = n, this._cellCount = t, this._estimatedCellSize = r;
|
|
758
665
|
}, [{ key: "areOffsetsAdjusted", value: function() {
|
|
759
666
|
return !1;
|
|
760
667
|
} }, { key: "configure", value: function(o) {
|
|
@@ -782,31 +689,31 @@ var F, jo = H(function o(e) {
|
|
|
782
689
|
var o = this.getSizeAndPositionOfLastMeasuredCell();
|
|
783
690
|
return o.offset + o.size + (this._cellCount - this._lastMeasuredIndex - 1) * this._estimatedCellSize;
|
|
784
691
|
} }, { key: "getUpdatedOffsetForIndex", value: function(o) {
|
|
785
|
-
var e = o.align, t = e === void 0 ? "auto" : e, n = o.containerSize, r = o.currentOffset,
|
|
692
|
+
var e = o.align, t = e === void 0 ? "auto" : e, n = o.containerSize, r = o.currentOffset, i = o.targetIndex;
|
|
786
693
|
if (n <= 0) return 0;
|
|
787
|
-
var
|
|
694
|
+
var l, a = this.getSizeAndPositionOfCell(i), s = a.offset, c = s - n + a.size;
|
|
788
695
|
switch (t) {
|
|
789
696
|
case "start":
|
|
790
|
-
|
|
697
|
+
l = s;
|
|
791
698
|
break;
|
|
792
699
|
case "end":
|
|
793
|
-
|
|
700
|
+
l = c;
|
|
794
701
|
break;
|
|
795
702
|
case "center":
|
|
796
|
-
|
|
703
|
+
l = s - (n - a.size) / 2;
|
|
797
704
|
break;
|
|
798
705
|
default:
|
|
799
|
-
|
|
706
|
+
l = Math.max(c, Math.min(s, r));
|
|
800
707
|
}
|
|
801
708
|
var d = this.getTotalSize();
|
|
802
|
-
return Math.max(0, Math.min(d - n,
|
|
709
|
+
return Math.max(0, Math.min(d - n, l));
|
|
803
710
|
} }, { key: "getVisibleCellRange", value: function(o) {
|
|
804
711
|
var e = o.containerSize, t = o.offset;
|
|
805
712
|
if (this.getTotalSize() === 0) return {};
|
|
806
|
-
var n = t + e, r = this._findNearestCell(t),
|
|
807
|
-
t =
|
|
808
|
-
for (var
|
|
809
|
-
return { start: r, stop:
|
|
713
|
+
var n = t + e, r = this._findNearestCell(t), i = this.getSizeAndPositionOfCell(r);
|
|
714
|
+
t = i.offset + i.size;
|
|
715
|
+
for (var l = r; t < n && l < this._cellCount - 1; ) l++, t += this.getSizeAndPositionOfCell(l).size;
|
|
716
|
+
return { start: r, stop: l };
|
|
810
717
|
} }, { key: "resetCell", value: function(o) {
|
|
811
718
|
this._lastMeasuredIndex = Math.min(this._lastMeasuredIndex, o - 1);
|
|
812
719
|
} }, { key: "_binarySearch", value: function(o, e, t) {
|
|
@@ -824,9 +731,9 @@ var F, jo = H(function o(e) {
|
|
|
824
731
|
o = Math.max(0, o);
|
|
825
732
|
var e = this.getSizeAndPositionOfLastMeasuredCell(), t = Math.max(0, this._lastMeasuredIndex);
|
|
826
733
|
return e.offset >= o ? this._binarySearch(t, 0, o) : this._exponentialSearch(t, o);
|
|
827
|
-
} }]),
|
|
828
|
-
var t = e.maxScrollSize, n = t === void 0 ? typeof window < "u" && window.chrome ? 16777100 : 15e5 : t, r =
|
|
829
|
-
|
|
734
|
+
} }]), Ro = ["maxScrollSize"], Ue = A(function o(e) {
|
|
735
|
+
var t = e.maxScrollSize, n = t === void 0 ? typeof window < "u" && window.chrome ? 16777100 : 15e5 : t, r = oe(e, Ro);
|
|
736
|
+
G(this, o), p(this, "_cellSizeAndPositionManager", void 0), p(this, "_maxScrollSize", void 0), this._cellSizeAndPositionManager = new xo(r), this._maxScrollSize = n;
|
|
830
737
|
}, [{ key: "areOffsetsAdjusted", value: function() {
|
|
831
738
|
return this._cellSizeAndPositionManager.getTotalSize() > this._maxScrollSize;
|
|
832
739
|
} }, { key: "configure", value: function(o) {
|
|
@@ -838,8 +745,8 @@ var F, jo = H(function o(e) {
|
|
|
838
745
|
} }, { key: "getLastMeasuredIndex", value: function() {
|
|
839
746
|
return this._cellSizeAndPositionManager.getLastMeasuredIndex();
|
|
840
747
|
} }, { key: "getOffsetAdjustment", value: function(o) {
|
|
841
|
-
var e = o.containerSize, t = o.offset, n = this._cellSizeAndPositionManager.getTotalSize(), r = this.getTotalSize(),
|
|
842
|
-
return Math.round(
|
|
748
|
+
var e = o.containerSize, t = o.offset, n = this._cellSizeAndPositionManager.getTotalSize(), r = this.getTotalSize(), i = this._getOffsetPercentage({ containerSize: e, offset: t, totalSize: r });
|
|
749
|
+
return Math.round(i * (r - n));
|
|
843
750
|
} }, { key: "getSizeAndPositionOfCell", value: function(o) {
|
|
844
751
|
return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(o);
|
|
845
752
|
} }, { key: "getSizeAndPositionOfLastMeasuredCell", value: function() {
|
|
@@ -847,10 +754,10 @@ var F, jo = H(function o(e) {
|
|
|
847
754
|
} }, { key: "getTotalSize", value: function() {
|
|
848
755
|
return Math.min(this._maxScrollSize, this._cellSizeAndPositionManager.getTotalSize());
|
|
849
756
|
} }, { key: "getUpdatedOffsetForIndex", value: function(o) {
|
|
850
|
-
var e = o.align, t = e === void 0 ? "auto" : e, n = o.containerSize, r = o.currentOffset,
|
|
757
|
+
var e = o.align, t = e === void 0 ? "auto" : e, n = o.containerSize, r = o.currentOffset, i = o.targetIndex;
|
|
851
758
|
r = this._safeOffsetToOffset({ containerSize: n, offset: r });
|
|
852
|
-
var
|
|
853
|
-
return this._offsetToSafeOffset({ containerSize: n, offset:
|
|
759
|
+
var l = this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({ align: t, containerSize: n, currentOffset: r, targetIndex: i });
|
|
760
|
+
return this._offsetToSafeOffset({ containerSize: n, offset: l });
|
|
854
761
|
} }, { key: "getVisibleCellRange", value: function(o) {
|
|
855
762
|
var e = o.containerSize, t = o.offset;
|
|
856
763
|
return t = this._safeOffsetToOffset({ containerSize: e, offset: t }), this._cellSizeAndPositionManager.getVisibleCellRange({ containerSize: e, offset: t });
|
|
@@ -862,35 +769,35 @@ var F, jo = H(function o(e) {
|
|
|
862
769
|
} }, { key: "_offsetToSafeOffset", value: function(o) {
|
|
863
770
|
var e = o.containerSize, t = o.offset, n = this._cellSizeAndPositionManager.getTotalSize(), r = this.getTotalSize();
|
|
864
771
|
if (n === r) return t;
|
|
865
|
-
var
|
|
866
|
-
return Math.round(
|
|
772
|
+
var i = this._getOffsetPercentage({ containerSize: e, offset: t, totalSize: n });
|
|
773
|
+
return Math.round(i * (r - e));
|
|
867
774
|
} }, { key: "_safeOffsetToOffset", value: function(o) {
|
|
868
775
|
var e = o.containerSize, t = o.offset, n = this._cellSizeAndPositionManager.getTotalSize(), r = this.getTotalSize();
|
|
869
776
|
if (n === r) return t;
|
|
870
|
-
var
|
|
871
|
-
return Math.round(
|
|
777
|
+
var i = this._getOffsetPercentage({ containerSize: e, offset: t, totalSize: r });
|
|
778
|
+
return Math.round(i * (n - e));
|
|
872
779
|
} }]);
|
|
873
|
-
function
|
|
874
|
-
var e = o.cellSize, t = o.cellSizeAndPositionManager, n = o.previousCellsCount, r = o.previousCellSize,
|
|
875
|
-
|
|
780
|
+
function Ve(o) {
|
|
781
|
+
var e = o.cellSize, t = o.cellSizeAndPositionManager, n = o.previousCellsCount, r = o.previousCellSize, i = o.previousScrollToAlignment, l = o.previousScrollToIndex, a = o.previousSize, s = o.scrollOffset, c = o.scrollToAlignment, d = o.scrollToIndex, h = o.size, f = o.sizeJustIncreasedFromZero, u = o.updateScrollIndexCallback, _ = t.getCellCount(), g = d >= 0 && d < _;
|
|
782
|
+
g && (h !== a || f || !r || typeof e == "number" && e !== r || c !== i || d !== l) ? u(d) : !g && _ > 0 && (h < a || _ < n) && s > t.getTotalSize() - h && u(_ - 1);
|
|
876
783
|
}
|
|
877
|
-
var
|
|
784
|
+
var bo = (F = typeof window < "u" ? window : typeof self < "u" ? self : {}).requestAnimationFrame || F.webkitRequestAnimationFrame || F.mozRequestAnimationFrame || F.oRequestAnimationFrame || F.msRequestAnimationFrame || function(o) {
|
|
878
785
|
return F.setTimeout(o, 1e3 / 60);
|
|
879
|
-
},
|
|
786
|
+
}, zo = F.cancelAnimationFrame || F.webkitCancelAnimationFrame || F.mozCancelAnimationFrame || F.oCancelAnimationFrame || F.msCancelAnimationFrame || function(o) {
|
|
880
787
|
F.clearTimeout(o);
|
|
881
|
-
},
|
|
882
|
-
return
|
|
883
|
-
},
|
|
788
|
+
}, $e = bo, To = zo, Q = function(o) {
|
|
789
|
+
return To(o.id);
|
|
790
|
+
}, Pe = function(o, e) {
|
|
884
791
|
var t;
|
|
885
792
|
Promise.resolve().then(function() {
|
|
886
793
|
t = Date.now();
|
|
887
794
|
});
|
|
888
795
|
var n = function() {
|
|
889
|
-
Date.now() - t >= e ? o.call() : r.id =
|
|
890
|
-
}, r = { id:
|
|
796
|
+
Date.now() - t >= e ? o.call() : r.id = $e(n);
|
|
797
|
+
}, r = { id: $e(n) };
|
|
891
798
|
return r;
|
|
892
799
|
};
|
|
893
|
-
function
|
|
800
|
+
function Ke(o, e) {
|
|
894
801
|
var t = Object.keys(o);
|
|
895
802
|
if (Object.getOwnPropertySymbols) {
|
|
896
803
|
var n = Object.getOwnPropertySymbols(o);
|
|
@@ -900,64 +807,64 @@ function Qe(o, e) {
|
|
|
900
807
|
}
|
|
901
808
|
return t;
|
|
902
809
|
}
|
|
903
|
-
function
|
|
810
|
+
function D(o) {
|
|
904
811
|
for (var e = 1; e < arguments.length; e++) {
|
|
905
812
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
906
|
-
e % 2 ?
|
|
813
|
+
e % 2 ? Ke(Object(t), !0).forEach(function(n) {
|
|
907
814
|
p(o, n, t[n]);
|
|
908
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) :
|
|
815
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : Ke(Object(t)).forEach(function(n) {
|
|
909
816
|
Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
|
|
910
817
|
});
|
|
911
818
|
}
|
|
912
819
|
return o;
|
|
913
820
|
}
|
|
914
|
-
function
|
|
821
|
+
function Tt() {
|
|
915
822
|
try {
|
|
916
823
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
917
824
|
}));
|
|
918
825
|
} catch {
|
|
919
826
|
}
|
|
920
|
-
return (
|
|
827
|
+
return (Tt = function() {
|
|
921
828
|
return !!o;
|
|
922
829
|
})();
|
|
923
830
|
}
|
|
924
|
-
var
|
|
831
|
+
var qe = "requested", V = function() {
|
|
925
832
|
function o(e) {
|
|
926
|
-
var t, n, r,
|
|
927
|
-
|
|
833
|
+
var t, n, r, i;
|
|
834
|
+
G(this, o), n = this, i = [e], r = I(r = o), p(t = H(n, Tt() ? Reflect.construct(r, i || [], I(n).constructor) : r.apply(n, i)), "_onGridRenderedMemoizer", Z()), p(t, "_onScrollMemoizer", Z(!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() {
|
|
928
835
|
t._disablePointerEventsTimeoutId = null, t.setState({ isScrolling: !1, needToResetStyleCache: !1 });
|
|
929
836
|
}), p(t, "_invokeOnGridRenderedHelper", function() {
|
|
930
837
|
var s = t.props.onSectionRendered;
|
|
931
838
|
t._onGridRenderedMemoizer({ callback: s, indices: { columnOverscanStartIndex: t._columnStartIndex, columnOverscanStopIndex: t._columnStopIndex, columnStartIndex: t._renderedColumnStartIndex, columnStopIndex: t._renderedColumnStopIndex, rowOverscanStartIndex: t._rowStartIndex, rowOverscanStopIndex: t._rowStopIndex, rowStartIndex: t._renderedRowStartIndex, rowStopIndex: t._renderedRowStopIndex } });
|
|
932
839
|
}), p(t, "_setScrollingContainerRef", function(s) {
|
|
933
|
-
t._scrollingContainer = s, typeof t.props.elementRef == "function" ? t.props.elementRef(s) :
|
|
840
|
+
t._scrollingContainer = s, typeof t.props.elementRef == "function" ? t.props.elementRef(s) : J(t.props.elementRef) === "object" && (t.props.elementRef.current = s);
|
|
934
841
|
}), p(t, "_onScroll", function(s) {
|
|
935
842
|
s.target === t._scrollingContainer && t.handleScrollEvent(s.target);
|
|
936
843
|
});
|
|
937
|
-
var
|
|
844
|
+
var l = new Ue({ cellCount: e.columnCount, cellSizeGetter: function(s) {
|
|
938
845
|
return o._wrapSizeGetter(e.columnWidth)(s);
|
|
939
|
-
}, estimatedCellSize: o._getEstimatedColumnSize(e) }), a = new
|
|
846
|
+
}, estimatedCellSize: o._getEstimatedColumnSize(e) }), a = new Ue({ cellCount: e.rowCount, cellSizeGetter: function(s) {
|
|
940
847
|
return o._wrapSizeGetter(e.rowHeight)(s);
|
|
941
848
|
}, estimatedCellSize: o._getEstimatedRowSize(e) });
|
|
942
|
-
return t.state = { instanceProps: { columnSizeAndPositionManager:
|
|
849
|
+
return t.state = { instanceProps: { columnSizeAndPositionManager: l, rowSizeAndPositionManager: a, prevColumnWidth: e.columnWidth, prevRowHeight: e.rowHeight, prevColumnCount: e.columnCount, prevRowCount: e.rowCount, prevIsScrolling: e.isScrolling === !0, prevScrollToColumn: e.scrollToColumn, prevScrollToRow: e.scrollToRow, scrollbarSize: 0, scrollbarSizeMeasured: !1 }, isScrolling: !1, scrollDirectionHorizontal: 1, scrollDirectionVertical: 1, scrollLeft: 0, scrollTop: 0, scrollPositionChangeReason: null, needToResetStyleCache: !1 }, e.scrollToRow > 0 && (t._initialScrollTop = t._getCalculatedScrollTop(e, t.state)), e.scrollToColumn > 0 && (t._initialScrollLeft = t._getCalculatedScrollLeft(e, t.state)), t;
|
|
943
850
|
}
|
|
944
|
-
return
|
|
945
|
-
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,
|
|
851
|
+
return W(o, C.PureComponent), A(o, [{ key: "getOffsetForCell", value: function() {
|
|
852
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.alignment, n = t === void 0 ? this.props.scrollToAlignment : t, r = e.columnIndex, i = r === void 0 ? this.props.scrollToColumn : r, l = e.rowIndex, a = l === void 0 ? this.props.scrollToRow : l, s = D(D({}, this.props), {}, { scrollToAlignment: n, scrollToColumn: i, scrollToRow: a });
|
|
946
853
|
return { scrollLeft: this._getCalculatedScrollLeft(s), scrollTop: this._getCalculatedScrollTop(s) };
|
|
947
854
|
} }, { key: "getTotalRowsHeight", value: function() {
|
|
948
855
|
return this.state.instanceProps.rowSizeAndPositionManager.getTotalSize();
|
|
949
856
|
} }, { key: "getTotalColumnsWidth", value: function() {
|
|
950
857
|
return this.state.instanceProps.columnSizeAndPositionManager.getTotalSize();
|
|
951
858
|
} }, { key: "handleScrollEvent", value: function(e) {
|
|
952
|
-
var t = e.scrollLeft, n = t === void 0 ? 0 : t, r = e.scrollTop,
|
|
953
|
-
if (!(
|
|
859
|
+
var t = e.scrollLeft, n = t === void 0 ? 0 : t, r = e.scrollTop, i = r === void 0 ? 0 : r;
|
|
860
|
+
if (!(i < 0)) {
|
|
954
861
|
this._debounceScrollEnded();
|
|
955
|
-
var
|
|
956
|
-
if (this.state.scrollLeft !==
|
|
957
|
-
var S = { isScrolling: !0, scrollDirectionHorizontal:
|
|
958
|
-
a || (S.scrollTop =
|
|
862
|
+
var l = this.props, a = l.autoHeight, s = l.autoWidth, c = l.height, d = l.width, h = this.state.instanceProps, f = h.scrollbarSize, u = h.rowSizeAndPositionManager.getTotalSize(), _ = h.columnSizeAndPositionManager.getTotalSize(), g = Math.min(Math.max(0, _ - d + f), n), m = Math.min(Math.max(0, u - c + f), i);
|
|
863
|
+
if (this.state.scrollLeft !== g || this.state.scrollTop !== m) {
|
|
864
|
+
var S = { isScrolling: !0, scrollDirectionHorizontal: g !== this.state.scrollLeft ? g > this.state.scrollLeft ? 1 : -1 : this.state.scrollDirectionHorizontal, scrollDirectionVertical: m !== this.state.scrollTop ? m > this.state.scrollTop ? 1 : -1 : this.state.scrollDirectionVertical, scrollPositionChangeReason: "observed" };
|
|
865
|
+
a || (S.scrollTop = m), s || (S.scrollLeft = g), S.needToResetStyleCache = !1, this.setState(S);
|
|
959
866
|
}
|
|
960
|
-
this._invokeOnScrollMemoizer({ scrollLeft:
|
|
867
|
+
this._invokeOnScrollMemoizer({ scrollLeft: g, scrollTop: m, totalColumnsWidth: _, totalRowsHeight: u });
|
|
961
868
|
}
|
|
962
869
|
} }, { key: "invalidateCellSizeAfterRender", value: function(e) {
|
|
963
870
|
var t = e.columnIndex, n = e.rowIndex;
|
|
@@ -966,82 +873,82 @@ var et = "requested", $ = function() {
|
|
|
966
873
|
var e = this.props, t = e.columnCount, n = e.rowCount, r = this.state.instanceProps;
|
|
967
874
|
r.columnSizeAndPositionManager.getSizeAndPositionOfCell(t - 1), r.rowSizeAndPositionManager.getSizeAndPositionOfCell(n - 1);
|
|
968
875
|
} }, { key: "recomputeGridSize", value: function() {
|
|
969
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.columnIndex, n = t === void 0 ? 0 : t, r = e.rowIndex,
|
|
970
|
-
c.columnSizeAndPositionManager.resetCell(n), c.rowSizeAndPositionManager.resetCell(
|
|
876
|
+
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, l = this.props, a = l.scrollToColumn, s = l.scrollToRow, c = this.state.instanceProps;
|
|
877
|
+
c.columnSizeAndPositionManager.resetCell(n), c.rowSizeAndPositionManager.resetCell(i), this._recomputeScrollLeftFlag = a >= 0 && (this.state.scrollDirectionHorizontal === 1 ? n <= a : n >= a), this._recomputeScrollTopFlag = s >= 0 && (this.state.scrollDirectionVertical === 1 ? i <= s : i >= s), this._styleCache = {}, this._cellCache = {}, this.forceUpdate();
|
|
971
878
|
} }, { key: "scrollToCell", value: function(e) {
|
|
972
|
-
var t = e.columnIndex, n = e.rowIndex, r = this.props.columnCount,
|
|
973
|
-
r > 1 && t !== void 0 && this._updateScrollLeftForScrollToColumn(
|
|
879
|
+
var t = e.columnIndex, n = e.rowIndex, r = this.props.columnCount, i = this.props;
|
|
880
|
+
r > 1 && t !== void 0 && this._updateScrollLeftForScrollToColumn(D(D({}, i), {}, { scrollToColumn: t })), n !== void 0 && this._updateScrollTopForScrollToRow(D(D({}, i), {}, { scrollToRow: n }));
|
|
974
881
|
} }, { key: "componentDidMount", value: function() {
|
|
975
|
-
var e = this.props, t = e.getScrollbarSize, n = e.height, r = e.scrollLeft,
|
|
882
|
+
var e = this.props, t = e.getScrollbarSize, n = e.height, r = e.scrollLeft, i = e.scrollToColumn, l = e.scrollTop, a = e.scrollToRow, s = e.width, c = this.state.instanceProps;
|
|
976
883
|
if (this._initialScrollTop = 0, this._initialScrollLeft = 0, this._handleInvalidatedGridSize(), c.scrollbarSizeMeasured || this.setState(function(f) {
|
|
977
|
-
var u =
|
|
884
|
+
var u = D(D({}, f), {}, { needToResetStyleCache: !1 });
|
|
978
885
|
return u.instanceProps.scrollbarSize = t(), u.instanceProps.scrollbarSizeMeasured = !0, u;
|
|
979
|
-
}), typeof r == "number" && r >= 0 || typeof
|
|
980
|
-
var d = o._getScrollToPositionStateUpdate({ prevState: this.state, scrollLeft: r, scrollTop:
|
|
886
|
+
}), typeof r == "number" && r >= 0 || typeof l == "number" && l >= 0) {
|
|
887
|
+
var d = o._getScrollToPositionStateUpdate({ prevState: this.state, scrollLeft: r, scrollTop: l });
|
|
981
888
|
d && (d.needToResetStyleCache = !1, this.setState(d));
|
|
982
889
|
}
|
|
983
890
|
this._scrollingContainer && (this._scrollingContainer.scrollLeft !== this.state.scrollLeft && (this._scrollingContainer.scrollLeft = this.state.scrollLeft), this._scrollingContainer.scrollTop !== this.state.scrollTop && (this._scrollingContainer.scrollTop = this.state.scrollTop));
|
|
984
891
|
var h = n > 0 && s > 0;
|
|
985
|
-
|
|
892
|
+
i >= 0 && h && this._updateScrollLeftForScrollToColumn(), a >= 0 && h && this._updateScrollTopForScrollToRow(), this._invokeOnGridRenderedHelper(), this._invokeOnScrollMemoizer({ scrollLeft: r || 0, scrollTop: l || 0, totalColumnsWidth: c.columnSizeAndPositionManager.getTotalSize(), totalRowsHeight: c.rowSizeAndPositionManager.getTotalSize() }), this._maybeCallOnScrollbarPresenceChange();
|
|
986
893
|
} }, { key: "componentDidUpdate", value: function(e, t) {
|
|
987
|
-
var n = this, r = this.props,
|
|
894
|
+
var n = this, r = this.props, i = r.autoHeight, l = r.autoWidth, a = r.columnCount, s = r.height, c = r.rowCount, d = r.scrollToAlignment, h = r.scrollToColumn, f = r.scrollToRow, u = r.width, _ = this.state, g = _.scrollLeft, m = _.scrollPositionChangeReason, S = _.scrollTop, y = _.instanceProps;
|
|
988
895
|
this._handleInvalidatedGridSize();
|
|
989
|
-
var
|
|
990
|
-
|
|
896
|
+
var v = a > 0 && e.columnCount === 0 || c > 0 && e.rowCount === 0;
|
|
897
|
+
m === qe && (!l && g >= 0 && (g !== this._scrollingContainer.scrollLeft || v) && (this._scrollingContainer.scrollLeft = g), !i && S >= 0 && (S !== this._scrollingContainer.scrollTop || v) && (this._scrollingContainer.scrollTop = S));
|
|
991
898
|
var w = (e.width === 0 || e.height === 0) && s > 0 && u > 0;
|
|
992
|
-
if (this._recomputeScrollLeftFlag ? (this._recomputeScrollLeftFlag = !1, this._updateScrollLeftForScrollToColumn(this.props)) :
|
|
899
|
+
if (this._recomputeScrollLeftFlag ? (this._recomputeScrollLeftFlag = !1, this._updateScrollLeftForScrollToColumn(this.props)) : Ve({ cellSizeAndPositionManager: y.columnSizeAndPositionManager, previousCellsCount: e.columnCount, previousCellSize: e.columnWidth, previousScrollToAlignment: e.scrollToAlignment, previousScrollToIndex: e.scrollToColumn, previousSize: e.width, scrollOffset: g, scrollToAlignment: d, scrollToIndex: h, size: u, sizeJustIncreasedFromZero: w, updateScrollIndexCallback: function() {
|
|
993
900
|
return n._updateScrollLeftForScrollToColumn(n.props);
|
|
994
|
-
} }), this._recomputeScrollTopFlag ? (this._recomputeScrollTopFlag = !1, this._updateScrollTopForScrollToRow(this.props)) :
|
|
901
|
+
} }), this._recomputeScrollTopFlag ? (this._recomputeScrollTopFlag = !1, this._updateScrollTopForScrollToRow(this.props)) : Ve({ cellSizeAndPositionManager: y.rowSizeAndPositionManager, previousCellsCount: e.rowCount, previousCellSize: e.rowHeight, previousScrollToAlignment: e.scrollToAlignment, previousScrollToIndex: e.scrollToRow, previousSize: e.height, scrollOffset: S, scrollToAlignment: d, scrollToIndex: f, size: s, sizeJustIncreasedFromZero: w, updateScrollIndexCallback: function() {
|
|
995
902
|
return n._updateScrollTopForScrollToRow(n.props);
|
|
996
|
-
} }), this._invokeOnGridRenderedHelper(),
|
|
997
|
-
var x = y.rowSizeAndPositionManager.getTotalSize(),
|
|
998
|
-
this._invokeOnScrollMemoizer({ scrollLeft:
|
|
903
|
+
} }), this._invokeOnGridRenderedHelper(), g !== t.scrollLeft || S !== t.scrollTop) {
|
|
904
|
+
var x = y.rowSizeAndPositionManager.getTotalSize(), R = y.columnSizeAndPositionManager.getTotalSize();
|
|
905
|
+
this._invokeOnScrollMemoizer({ scrollLeft: g, scrollTop: S, totalColumnsWidth: R, totalRowsHeight: x });
|
|
999
906
|
}
|
|
1000
907
|
this._maybeCallOnScrollbarPresenceChange();
|
|
1001
908
|
} }, { key: "componentWillUnmount", value: function() {
|
|
1002
|
-
this._disablePointerEventsTimeoutId &&
|
|
909
|
+
this._disablePointerEventsTimeoutId && Q(this._disablePointerEventsTimeoutId);
|
|
1003
910
|
} }, { key: "render", value: function() {
|
|
1004
|
-
var e = this.props, t = e.autoContainerWidth, n = e.autoHeight, r = e.autoWidth,
|
|
911
|
+
var e = this.props, t = e.autoContainerWidth, n = e.autoHeight, r = e.autoWidth, i = e.className, l = e.containerProps, a = e.containerRole, s = e.containerStyle, c = e.height, d = e.id, h = e.noContentRenderer, f = e.role, u = e.style, _ = e.tabIndex, g = e.width, m = this.state, S = m.instanceProps, y = m.needToResetStyleCache, v = this._isScrolling(), w = { boxSizing: "border-box", direction: "ltr", height: n ? "auto" : c, position: "relative", width: r ? "auto" : g, WebkitOverflowScrolling: "touch", willChange: "transform" };
|
|
1005
912
|
y && (this._styleCache = {}), this.state.isScrolling || this._resetStyleCache(), this._calculateChildrenToRender(this.props, this.state);
|
|
1006
|
-
var x = S.columnSizeAndPositionManager.getTotalSize(),
|
|
1007
|
-
|
|
1008
|
-
var
|
|
1009
|
-
return C.createElement("div",
|
|
913
|
+
var x = S.columnSizeAndPositionManager.getTotalSize(), R = S.rowSizeAndPositionManager.getTotalSize(), b = R > c ? S.scrollbarSize : 0, z = x > g ? S.scrollbarSize : 0;
|
|
914
|
+
z === this._horizontalScrollBarSize && b === this._verticalScrollBarSize || (this._horizontalScrollBarSize = z, this._verticalScrollBarSize = b, this._scrollbarPresenceChanged = !0), w.overflowX = x + b <= g ? "hidden" : "auto", w.overflowY = R + z <= c ? "hidden" : "auto";
|
|
915
|
+
var T = this._childrenToDisplay, k = T.length === 0 && c > 0 && g > 0;
|
|
916
|
+
return C.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({}, w), u), tabIndex: _ }), T.length > 0 && C.createElement("div", { className: "ReactVirtualized__Grid__innerScrollContainer", role: a, style: D({ width: t ? "auto" : x, height: R, maxWidth: x, maxHeight: R, overflow: "hidden", pointerEvents: v ? "none" : "", position: "relative" }, s) }, T), k && h());
|
|
1010
917
|
} }, { key: "_calculateChildrenToRender", value: function() {
|
|
1011
|
-
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,
|
|
918
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.props, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.state, n = e.cellRenderer, r = e.cellRangeRenderer, i = e.columnCount, l = e.deferredMeasurementCache, a = e.height, s = e.overscanColumnCount, c = e.overscanIndicesGetter, d = e.overscanRowCount, h = e.rowCount, f = e.width, u = e.isScrollingOptOut, _ = t.scrollDirectionHorizontal, g = t.scrollDirectionVertical, m = t.instanceProps, S = this._initialScrollTop > 0 ? this._initialScrollTop : t.scrollTop, y = this._initialScrollLeft > 0 ? this._initialScrollLeft : t.scrollLeft, v = this._isScrolling(e, t);
|
|
1012
919
|
if (this._childrenToDisplay = [], a > 0 && f > 0) {
|
|
1013
|
-
var w =
|
|
920
|
+
var w = m.columnSizeAndPositionManager.getVisibleCellRange({ containerSize: f, offset: y }), x = m.rowSizeAndPositionManager.getVisibleCellRange({ containerSize: a, offset: S }), R = m.columnSizeAndPositionManager.getOffsetAdjustment({ containerSize: f, offset: y }), b = m.rowSizeAndPositionManager.getOffsetAdjustment({ containerSize: a, offset: S });
|
|
1014
921
|
this._renderedColumnStartIndex = w.start, this._renderedColumnStopIndex = w.stop, this._renderedRowStartIndex = x.start, this._renderedRowStopIndex = x.stop;
|
|
1015
|
-
var
|
|
1016
|
-
if (
|
|
1017
|
-
if (!
|
|
1018
|
-
for (var
|
|
1019
|
-
k = 0,
|
|
922
|
+
var z = c({ direction: "horizontal", cellCount: i, overscanCellsCount: s, scrollDirection: _, startIndex: typeof w.start == "number" ? w.start : 0, stopIndex: typeof w.stop == "number" ? w.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 }), k = z.overscanStartIndex, O = z.overscanStopIndex, P = T.overscanStartIndex, E = T.overscanStopIndex;
|
|
923
|
+
if (l) {
|
|
924
|
+
if (!l.hasFixedHeight()) {
|
|
925
|
+
for (var j = P; j <= E; j++) if (!l.has(j, 0)) {
|
|
926
|
+
k = 0, O = i - 1;
|
|
1020
927
|
break;
|
|
1021
928
|
}
|
|
1022
929
|
}
|
|
1023
|
-
if (!
|
|
1024
|
-
for (var
|
|
1025
|
-
|
|
930
|
+
if (!l.hasFixedWidth()) {
|
|
931
|
+
for (var ge = k; ge <= O; ge++) if (!l.has(0, ge)) {
|
|
932
|
+
P = 0, E = h - 1;
|
|
1026
933
|
break;
|
|
1027
934
|
}
|
|
1028
935
|
}
|
|
1029
936
|
}
|
|
1030
|
-
this._childrenToDisplay = r({ cellCache: this._cellCache, cellRenderer: n, columnSizeAndPositionManager:
|
|
937
|
+
this._childrenToDisplay = r({ cellCache: this._cellCache, cellRenderer: n, columnSizeAndPositionManager: m.columnSizeAndPositionManager, columnStartIndex: k, columnStopIndex: O, deferredMeasurementCache: l, horizontalOffsetAdjustment: R, isScrolling: v, isScrollingOptOut: u, parent: this, rowSizeAndPositionManager: m.rowSizeAndPositionManager, rowStartIndex: P, rowStopIndex: E, scrollLeft: y, scrollTop: S, styleCache: this._styleCache, verticalOffsetAdjustment: b, visibleColumnIndices: w, visibleRowIndices: x }), this._columnStartIndex = k, this._columnStopIndex = O, this._rowStartIndex = P, this._rowStopIndex = E;
|
|
1031
938
|
}
|
|
1032
939
|
} }, { key: "_debounceScrollEnded", value: function() {
|
|
1033
940
|
var e = this.props.scrollingResetTimeInterval;
|
|
1034
|
-
this._disablePointerEventsTimeoutId &&
|
|
941
|
+
this._disablePointerEventsTimeoutId && Q(this._disablePointerEventsTimeoutId), this._disablePointerEventsTimeoutId = Pe(this._debounceScrollEndedCallback, e);
|
|
1035
942
|
} }, { key: "_handleInvalidatedGridSize", value: function() {
|
|
1036
943
|
if (typeof this._deferredInvalidateColumnIndex == "number" && typeof this._deferredInvalidateRowIndex == "number") {
|
|
1037
944
|
var e = this._deferredInvalidateColumnIndex, t = this._deferredInvalidateRowIndex;
|
|
1038
945
|
this._deferredInvalidateColumnIndex = null, this._deferredInvalidateRowIndex = null, this.recomputeGridSize({ columnIndex: e, rowIndex: t });
|
|
1039
946
|
}
|
|
1040
947
|
} }, { key: "_invokeOnScrollMemoizer", value: function(e) {
|
|
1041
|
-
var t = this, n = e.scrollLeft, r = e.scrollTop,
|
|
948
|
+
var t = this, n = e.scrollLeft, r = e.scrollTop, i = e.totalColumnsWidth, l = e.totalRowsHeight;
|
|
1042
949
|
this._onScrollMemoizer({ callback: function(a) {
|
|
1043
950
|
var s = a.scrollLeft, c = a.scrollTop, d = t.props, h = d.height;
|
|
1044
|
-
(0, d.onScroll)({ clientHeight: h, clientWidth: d.width, scrollHeight:
|
|
951
|
+
(0, d.onScroll)({ clientHeight: h, clientWidth: d.width, scrollHeight: l, scrollLeft: s, scrollTop: c, scrollWidth: i });
|
|
1045
952
|
}, indices: { scrollLeft: n, scrollTop: r } });
|
|
1046
953
|
} }, { key: "_isScrolling", value: function() {
|
|
1047
954
|
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;
|
|
@@ -1066,9 +973,9 @@ var et = "requested", $ = function() {
|
|
|
1066
973
|
} }, { key: "_resetStyleCache", value: function() {
|
|
1067
974
|
var e = this._styleCache, t = this._cellCache, n = this.props.isScrollingOptOut;
|
|
1068
975
|
this._cellCache = {}, this._styleCache = {};
|
|
1069
|
-
for (var r = this._rowStartIndex; r <= this._rowStopIndex; r++) for (var
|
|
1070
|
-
var
|
|
1071
|
-
this._styleCache[
|
|
976
|
+
for (var r = this._rowStartIndex; r <= this._rowStopIndex; r++) for (var i = this._columnStartIndex; i <= this._columnStopIndex; i++) {
|
|
977
|
+
var l = "".concat(r, "-").concat(i);
|
|
978
|
+
this._styleCache[l] = e[l], n && (this._cellCache[l] = t[l]);
|
|
1072
979
|
}
|
|
1073
980
|
} }, { key: "_updateScrollTopForScrollToRow", value: function() {
|
|
1074
981
|
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 = o._getScrollTopForScrollToRowStateUpdate(e, t);
|
|
@@ -1076,42 +983,42 @@ var et = "requested", $ = function() {
|
|
|
1076
983
|
} }], [{ key: "getDerivedStateFromProps", value: function(e, t) {
|
|
1077
984
|
var n = {};
|
|
1078
985
|
e.columnCount === 0 && t.scrollLeft !== 0 || e.rowCount === 0 && t.scrollTop !== 0 ? (n.scrollLeft = 0, n.scrollTop = 0) : (e.scrollLeft !== t.scrollLeft && e.scrollToColumn < 0 || e.scrollTop !== t.scrollTop && e.scrollToRow < 0) && Object.assign(n, o._getScrollToPositionStateUpdate({ prevState: t, scrollLeft: e.scrollLeft, scrollTop: e.scrollTop }));
|
|
1079
|
-
var r,
|
|
1080
|
-
return n.needToResetStyleCache = !1, e.columnWidth ===
|
|
1081
|
-
return
|
|
1082
|
-
}, computeMetadataCallbackProps: e, nextCellsCount: e.columnCount, nextCellSize: typeof e.columnWidth == "number" ? e.columnWidth : null, nextScrollToIndex: e.scrollToColumn, scrollToIndex:
|
|
986
|
+
var r, i, l = t.instanceProps;
|
|
987
|
+
return n.needToResetStyleCache = !1, e.columnWidth === l.prevColumnWidth && e.rowHeight === l.prevRowHeight || (n.needToResetStyleCache = !0), l.columnSizeAndPositionManager.configure({ cellCount: e.columnCount, estimatedCellSize: o._getEstimatedColumnSize(e), cellSizeGetter: o._wrapSizeGetter(e.columnWidth) }), l.rowSizeAndPositionManager.configure({ cellCount: e.rowCount, estimatedCellSize: o._getEstimatedRowSize(e), cellSizeGetter: o._wrapSizeGetter(e.rowHeight) }), l.prevColumnCount !== 0 && l.prevRowCount !== 0 || (l.prevColumnCount = 0, l.prevRowCount = 0), e.autoHeight && e.isScrolling === !1 && l.prevIsScrolling === !0 && Object.assign(n, { isScrolling: !1 }), Be({ cellCount: l.prevColumnCount, cellSize: typeof l.prevColumnWidth == "number" ? l.prevColumnWidth : null, computeMetadataCallback: function() {
|
|
988
|
+
return l.columnSizeAndPositionManager.resetCell(0);
|
|
989
|
+
}, computeMetadataCallbackProps: e, nextCellsCount: e.columnCount, nextCellSize: typeof e.columnWidth == "number" ? e.columnWidth : null, nextScrollToIndex: e.scrollToColumn, scrollToIndex: l.prevScrollToColumn, updateScrollOffsetForScrollToIndex: function() {
|
|
1083
990
|
r = o._getScrollLeftForScrollToColumnStateUpdate(e, t);
|
|
1084
|
-
} }),
|
|
1085
|
-
return
|
|
1086
|
-
}, computeMetadataCallbackProps: e, nextCellsCount: e.rowCount, nextCellSize: typeof e.rowHeight == "number" ? e.rowHeight : null, nextScrollToIndex: e.scrollToRow, scrollToIndex:
|
|
1087
|
-
|
|
1088
|
-
} }),
|
|
991
|
+
} }), Be({ cellCount: l.prevRowCount, cellSize: typeof l.prevRowHeight == "number" ? l.prevRowHeight : null, computeMetadataCallback: function() {
|
|
992
|
+
return l.rowSizeAndPositionManager.resetCell(0);
|
|
993
|
+
}, computeMetadataCallbackProps: e, nextCellsCount: e.rowCount, nextCellSize: typeof e.rowHeight == "number" ? e.rowHeight : null, nextScrollToIndex: e.scrollToRow, scrollToIndex: l.prevScrollToRow, updateScrollOffsetForScrollToIndex: function() {
|
|
994
|
+
i = o._getScrollTopForScrollToRowStateUpdate(e, t);
|
|
995
|
+
} }), l.prevColumnCount = e.columnCount, l.prevColumnWidth = e.columnWidth, l.prevIsScrolling = e.isScrolling === !0, l.prevRowCount = e.rowCount, l.prevRowHeight = e.rowHeight, l.prevScrollToColumn = e.scrollToColumn, l.prevScrollToRow = e.scrollToRow, l.scrollbarSize = e.getScrollbarSize(), l.scrollbarSize === void 0 ? (l.scrollbarSizeMeasured = !1, l.scrollbarSize = 0) : l.scrollbarSizeMeasured = !0, n.instanceProps = l, D(D(D({}, n), r), i);
|
|
1089
996
|
} }, { key: "_getEstimatedColumnSize", value: function(e) {
|
|
1090
997
|
return typeof e.columnWidth == "number" ? e.columnWidth : e.estimatedColumnSize;
|
|
1091
998
|
} }, { key: "_getEstimatedRowSize", value: function(e) {
|
|
1092
999
|
return typeof e.rowHeight == "number" ? e.rowHeight : e.estimatedRowSize;
|
|
1093
1000
|
} }, { key: "_getScrollToPositionStateUpdate", value: function(e) {
|
|
1094
|
-
var t = e.prevState, n = e.scrollLeft, r = e.scrollTop,
|
|
1095
|
-
return typeof n == "number" && n >= 0 && (
|
|
1001
|
+
var t = e.prevState, n = e.scrollLeft, r = e.scrollTop, i = { scrollPositionChangeReason: qe };
|
|
1002
|
+
return typeof n == "number" && n >= 0 && (i.scrollDirectionHorizontal = n > t.scrollLeft ? 1 : -1, i.scrollLeft = n), typeof r == "number" && r >= 0 && (i.scrollDirectionVertical = r > t.scrollTop ? 1 : -1, i.scrollTop = r), typeof n == "number" && n >= 0 && n !== t.scrollLeft || typeof r == "number" && r >= 0 && r !== t.scrollTop ? i : {};
|
|
1096
1003
|
} }, { key: "_wrapSizeGetter", value: function(e) {
|
|
1097
1004
|
return typeof e == "function" ? e : function() {
|
|
1098
1005
|
return e;
|
|
1099
1006
|
};
|
|
1100
1007
|
} }, { key: "_getCalculatedScrollLeft", value: function(e, t) {
|
|
1101
|
-
var n = e.columnCount, r = e.height,
|
|
1008
|
+
var n = e.columnCount, r = e.height, i = e.scrollToAlignment, l = e.scrollToColumn, a = e.width, s = t.scrollLeft, c = t.instanceProps;
|
|
1102
1009
|
if (n > 0) {
|
|
1103
|
-
var d = n - 1, h =
|
|
1104
|
-
return c.columnSizeAndPositionManager.getUpdatedOffsetForIndex({ align:
|
|
1010
|
+
var d = n - 1, h = l < 0 ? d : Math.min(d, l), f = c.rowSizeAndPositionManager.getTotalSize(), u = c.scrollbarSizeMeasured && f > r ? c.scrollbarSize : 0;
|
|
1011
|
+
return c.columnSizeAndPositionManager.getUpdatedOffsetForIndex({ align: i, containerSize: a - u, currentOffset: s, targetIndex: h });
|
|
1105
1012
|
}
|
|
1106
1013
|
return 0;
|
|
1107
1014
|
} }, { key: "_getScrollLeftForScrollToColumnStateUpdate", value: function(e, t) {
|
|
1108
1015
|
var n = t.scrollLeft, r = o._getCalculatedScrollLeft(e, t);
|
|
1109
1016
|
return typeof r == "number" && r >= 0 && n !== r ? o._getScrollToPositionStateUpdate({ prevState: t, scrollLeft: r, scrollTop: -1 }) : {};
|
|
1110
1017
|
} }, { key: "_getCalculatedScrollTop", value: function(e, t) {
|
|
1111
|
-
var n = e.height, r = e.rowCount,
|
|
1018
|
+
var n = e.height, r = e.rowCount, i = e.scrollToAlignment, l = e.scrollToRow, a = e.width, s = t.scrollTop, c = t.instanceProps;
|
|
1112
1019
|
if (r > 0) {
|
|
1113
|
-
var d = r - 1, h =
|
|
1114
|
-
return c.rowSizeAndPositionManager.getUpdatedOffsetForIndex({ align:
|
|
1020
|
+
var d = r - 1, h = l < 0 ? d : Math.min(d, l), f = c.columnSizeAndPositionManager.getTotalSize(), u = c.scrollbarSizeMeasured && f > a ? c.scrollbarSize : 0;
|
|
1021
|
+
return c.rowSizeAndPositionManager.getUpdatedOffsetForIndex({ align: i, containerSize: n - u, currentOffset: s, targetIndex: h });
|
|
1115
1022
|
}
|
|
1116
1023
|
return 0;
|
|
1117
1024
|
} }, { key: "_getScrollTopForScrollToRowStateUpdate", value: function(e, t) {
|
|
@@ -1119,65 +1026,65 @@ var et = "requested", $ = function() {
|
|
|
1119
1026
|
return typeof r == "number" && r >= 0 && n !== r ? o._getScrollToPositionStateUpdate({ prevState: t, scrollLeft: -1, scrollTop: r }) : {};
|
|
1120
1027
|
} }]);
|
|
1121
1028
|
}();
|
|
1122
|
-
function
|
|
1123
|
-
var e = o.cellCount, t = o.overscanCellsCount, n = o.scrollDirection, r = o.startIndex,
|
|
1124
|
-
return t = Math.max(1, t), n === 1 ? { overscanStartIndex: Math.max(0, r - 1), overscanStopIndex: Math.min(e - 1,
|
|
1029
|
+
function It(o) {
|
|
1030
|
+
var e = o.cellCount, t = o.overscanCellsCount, n = o.scrollDirection, r = o.startIndex, i = o.stopIndex;
|
|
1031
|
+
return t = Math.max(1, t), n === 1 ? { overscanStartIndex: Math.max(0, r - 1), overscanStopIndex: Math.min(e - 1, i + t) } : { overscanStartIndex: Math.max(0, r - t), overscanStopIndex: Math.min(e - 1, i + 1) };
|
|
1125
1032
|
}
|
|
1126
|
-
function
|
|
1033
|
+
function Ce(o, e) {
|
|
1127
1034
|
(e == null || e > o.length) && (e = o.length);
|
|
1128
1035
|
for (var t = 0, n = Array(e); t < e; t++) n[t] = o[t];
|
|
1129
1036
|
return n;
|
|
1130
1037
|
}
|
|
1131
|
-
function
|
|
1038
|
+
function Pt(o, e) {
|
|
1132
1039
|
if (o) {
|
|
1133
|
-
if (typeof o == "string") return
|
|
1040
|
+
if (typeof o == "string") return Ce(o, e);
|
|
1134
1041
|
var t = {}.toString.call(o).slice(8, -1);
|
|
1135
|
-
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) ?
|
|
1042
|
+
return t === "Object" && o.constructor && (t = o.constructor.name), t === "Map" || t === "Set" ? Array.from(o) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? Ce(o, e) : void 0;
|
|
1136
1043
|
}
|
|
1137
1044
|
}
|
|
1138
|
-
function
|
|
1045
|
+
function kt() {
|
|
1139
1046
|
try {
|
|
1140
1047
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1141
1048
|
}));
|
|
1142
1049
|
} catch {
|
|
1143
1050
|
}
|
|
1144
|
-
return (
|
|
1051
|
+
return (kt = function() {
|
|
1145
1052
|
return !!o;
|
|
1146
1053
|
})();
|
|
1147
1054
|
}
|
|
1148
|
-
p(
|
|
1149
|
-
for (var e = o.cellCache, t = o.cellRenderer, n = o.columnSizeAndPositionManager, r = o.columnStartIndex,
|
|
1150
|
-
var
|
|
1151
|
-
w &&
|
|
1152
|
-
var
|
|
1153
|
-
!c && !s || a ||
|
|
1055
|
+
p(V, "defaultProps", { "aria-label": "grid", "aria-readonly": !0, autoContainerWidth: !1, autoHeight: !1, autoWidth: !1, cellRangeRenderer: function(o) {
|
|
1056
|
+
for (var e = o.cellCache, t = o.cellRenderer, n = o.columnSizeAndPositionManager, r = o.columnStartIndex, i = o.columnStopIndex, l = o.deferredMeasurementCache, a = o.horizontalOffsetAdjustment, s = o.isScrolling, c = o.isScrollingOptOut, d = o.parent, h = o.rowSizeAndPositionManager, f = o.rowStartIndex, u = o.rowStopIndex, _ = o.styleCache, g = o.verticalOffsetAdjustment, m = o.visibleColumnIndices, S = o.visibleRowIndices, y = [], v = n.areOffsetsAdjusted() || h.areOffsetsAdjusted(), w = !s && !v, x = f; x <= u; x++) for (var R = h.getSizeAndPositionOfCell(x), b = r; b <= i; b++) {
|
|
1057
|
+
var z = n.getSizeAndPositionOfCell(b), T = b >= m.start && b <= m.stop && x >= S.start && x <= S.stop, k = "".concat(x, "-").concat(b), O = void 0;
|
|
1058
|
+
w && _[k] ? O = _[k] : l && !l.has(x, b) ? O = { height: "auto", left: 0, position: "absolute", top: 0, width: "auto" } : (O = { height: R.size, left: z.offset + a, position: "absolute", top: R.offset + g, width: z.size }, _[k] = O);
|
|
1059
|
+
var P = { columnIndex: b, isScrolling: s, isVisible: T, key: k, parent: d, rowIndex: x, style: O }, E = void 0;
|
|
1060
|
+
!c && !s || a || g ? E = t(P) : (e[k] || (e[k] = t(P)), E = e[k]), E != null && E !== !1 && (E.props.role || (E = pt.cloneElement(E, { role: "gridcell" })), y.push(E));
|
|
1154
1061
|
}
|
|
1155
1062
|
return y;
|
|
1156
|
-
}, containerRole: "row", containerStyle: {}, estimatedColumnSize: 100, estimatedRowSize: 30, getScrollbarSize:
|
|
1063
|
+
}, containerRole: "row", containerStyle: {}, estimatedColumnSize: 100, estimatedRowSize: 30, getScrollbarSize: we, noContentRenderer: function() {
|
|
1157
1064
|
return null;
|
|
1158
1065
|
}, onScroll: function() {
|
|
1159
1066
|
}, onScrollbarPresenceChange: function() {
|
|
1160
1067
|
}, onSectionRendered: function() {
|
|
1161
1068
|
}, overscanColumnCount: 0, overscanIndicesGetter: function(o) {
|
|
1162
|
-
var e = o.cellCount, t = o.overscanCellsCount, n = o.scrollDirection, r = o.startIndex,
|
|
1163
|
-
return n === 1 ? { overscanStartIndex: Math.max(0, r), overscanStopIndex: Math.min(e - 1,
|
|
1164
|
-
}, overscanRowCount: 10, role: "grid", scrollingResetTimeInterval: 150, scrollToAlignment: "auto", scrollToColumn: -1, scrollToRow: -1, style: {}, tabIndex: 0, isScrollingOptOut: !1 }),
|
|
1165
|
-
var
|
|
1069
|
+
var e = o.cellCount, t = o.overscanCellsCount, n = o.scrollDirection, r = o.startIndex, i = o.stopIndex;
|
|
1070
|
+
return n === 1 ? { overscanStartIndex: Math.max(0, r), overscanStopIndex: Math.min(e - 1, i + t) } : { overscanStartIndex: Math.max(0, r - t), overscanStopIndex: Math.min(e - 1, i) };
|
|
1071
|
+
}, overscanRowCount: 10, role: "grid", scrollingResetTimeInterval: 150, scrollToAlignment: "auto", scrollToColumn: -1, scrollToRow: -1, style: {}, tabIndex: 0, isScrollingOptOut: !1 }), ae(V);
|
|
1072
|
+
var Xe = function() {
|
|
1166
1073
|
function o(e, t) {
|
|
1167
|
-
var n, r,
|
|
1168
|
-
return
|
|
1074
|
+
var n, r, i, l;
|
|
1075
|
+
return G(this, o), r = this, l = [e, t], i = I(i = o), (n = H(r, kt() ? Reflect.construct(i, l || [], I(r).constructor) : i.apply(r, l)))._loadMoreRowsMemoizer = Z(), n._onRowsRendered = n._onRowsRendered.bind(n), n._registerChild = n._registerChild.bind(n), n;
|
|
1169
1076
|
}
|
|
1170
|
-
return
|
|
1171
|
-
this._loadMoreRowsMemoizer =
|
|
1077
|
+
return W(o, C.PureComponent), A(o, [{ key: "resetLoadMoreRowsCache", value: function(e) {
|
|
1078
|
+
this._loadMoreRowsMemoizer = Z(), e && this._doStuff(this._lastRenderedStartIndex, this._lastRenderedStopIndex);
|
|
1172
1079
|
} }, { key: "render", value: function() {
|
|
1173
1080
|
return (0, this.props.children)({ onRowsRendered: this._onRowsRendered, registerChild: this._registerChild });
|
|
1174
1081
|
} }, { key: "_loadUnloadedRanges", value: function(e) {
|
|
1175
1082
|
var t = this, n = this.props.loadMoreRows;
|
|
1176
1083
|
e.forEach(function(r) {
|
|
1177
|
-
var
|
|
1178
|
-
|
|
1179
|
-
var
|
|
1180
|
-
(
|
|
1084
|
+
var i = n(r);
|
|
1085
|
+
i && i.then(function() {
|
|
1086
|
+
var l;
|
|
1087
|
+
(l = { lastRenderedStartIndex: t._lastRenderedStartIndex, lastRenderedStopIndex: t._lastRenderedStopIndex, startIndex: r.startIndex, stopIndex: r.stopIndex }).startIndex > l.lastRenderedStopIndex || l.stopIndex < l.lastRenderedStartIndex || t._registeredChild && function(a) {
|
|
1181
1088
|
var s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, c = typeof a.recomputeGridSize == "function" ? a.recomputeGridSize : a.recomputeRowHeights;
|
|
1182
1089
|
c ? c.call(a, s) : a.forceUpdate();
|
|
1183
1090
|
}(t._registeredChild, t._lastRenderedStartIndex);
|
|
@@ -1187,24 +1094,24 @@ var tt = function() {
|
|
|
1187
1094
|
var t = e.startIndex, n = e.stopIndex;
|
|
1188
1095
|
this._lastRenderedStartIndex = t, this._lastRenderedStopIndex = n, this._doStuff(t, n);
|
|
1189
1096
|
} }, { key: "_doStuff", value: function(e, t) {
|
|
1190
|
-
var n, r = this,
|
|
1191
|
-
for (var u = f.isRowLoaded,
|
|
1192
|
-
if (
|
|
1193
|
-
for (var x = Math.min(Math.max(
|
|
1194
|
-
S.push({ startIndex: y, stopIndex:
|
|
1097
|
+
var n, r = this, i = this.props, l = i.isRowLoaded, a = i.minimumBatchSize, s = i.rowCount, c = i.threshold, d = function(f) {
|
|
1098
|
+
for (var u = f.isRowLoaded, _ = f.minimumBatchSize, g = f.rowCount, m = f.stopIndex, S = [], y = null, v = null, w = f.startIndex; w <= m; w++) u({ index: w }) ? v !== null && (S.push({ startIndex: y, stopIndex: v }), y = v = null) : (v = w, y === null && (y = w));
|
|
1099
|
+
if (v !== null) {
|
|
1100
|
+
for (var x = Math.min(Math.max(v, y + _ - 1), g - 1), R = v + 1; R <= x && !u({ index: R }); R++) v = R;
|
|
1101
|
+
S.push({ startIndex: y, stopIndex: v });
|
|
1195
1102
|
}
|
|
1196
|
-
if (S.length) for (var
|
|
1197
|
-
var
|
|
1198
|
-
if (u({ index:
|
|
1199
|
-
|
|
1103
|
+
if (S.length) for (var b = S[0]; b.stopIndex - b.startIndex + 1 < _ && b.startIndex > 0; ) {
|
|
1104
|
+
var z = b.startIndex - 1;
|
|
1105
|
+
if (u({ index: z })) break;
|
|
1106
|
+
b.startIndex = z;
|
|
1200
1107
|
}
|
|
1201
1108
|
return S;
|
|
1202
|
-
}({ isRowLoaded:
|
|
1109
|
+
}({ isRowLoaded: l, minimumBatchSize: a, rowCount: s, startIndex: Math.max(0, e - c), stopIndex: Math.min(s - 1, t + c) }), h = (n = []).concat.apply(n, function(f) {
|
|
1203
1110
|
return function(u) {
|
|
1204
|
-
if (Array.isArray(u)) return
|
|
1111
|
+
if (Array.isArray(u)) return Ce(u);
|
|
1205
1112
|
}(f) || function(u) {
|
|
1206
1113
|
if (typeof Symbol < "u" && u[Symbol.iterator] != null || u["@@iterator"] != null) return Array.from(u);
|
|
1207
|
-
}(f) ||
|
|
1114
|
+
}(f) || Pt(f) || function() {
|
|
1208
1115
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1209
1116
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1210
1117
|
}();
|
|
@@ -1218,25 +1125,25 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1218
1125
|
this._registeredChild = e;
|
|
1219
1126
|
} }]);
|
|
1220
1127
|
}();
|
|
1221
|
-
function
|
|
1128
|
+
function Ot() {
|
|
1222
1129
|
try {
|
|
1223
1130
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1224
1131
|
}));
|
|
1225
1132
|
} catch {
|
|
1226
1133
|
}
|
|
1227
|
-
return (
|
|
1134
|
+
return (Ot = function() {
|
|
1228
1135
|
return !!o;
|
|
1229
1136
|
})();
|
|
1230
1137
|
}
|
|
1231
|
-
p(
|
|
1232
|
-
var
|
|
1138
|
+
p(Xe, "defaultProps", { minimumBatchSize: 10, rowCount: 0, threshold: 15 }), Xe.propTypes = {};
|
|
1139
|
+
var Io = function() {
|
|
1233
1140
|
function o() {
|
|
1234
1141
|
var e, t, n, r;
|
|
1235
|
-
|
|
1236
|
-
for (var
|
|
1237
|
-
return t = this, n = o, r = [].concat(
|
|
1238
|
-
var c = s.parent, d = s.rowIndex, h = s.style, f = s.isScrolling, u = s.isVisible,
|
|
1239
|
-
return
|
|
1142
|
+
G(this, o);
|
|
1143
|
+
for (var i = arguments.length, l = new Array(i), a = 0; a < i; a++) l[a] = arguments[a];
|
|
1144
|
+
return t = this, n = o, r = [].concat(l), n = I(n), p(e = H(t, Ot() ? Reflect.construct(n, r || [], I(t).constructor) : n.apply(t, r)), "Grid", void 0), p(e, "_cellRenderer", function(s) {
|
|
1145
|
+
var c = s.parent, d = s.rowIndex, h = s.style, f = s.isScrolling, u = s.isVisible, _ = s.key, g = e.props.rowRenderer, m = Object.getOwnPropertyDescriptor(h, "width");
|
|
1146
|
+
return m && m.writable && (h.width = "100%"), g({ index: d, style: h, isScrolling: f, isVisible: u, key: _, parent: c });
|
|
1240
1147
|
}), p(e, "_setRef", function(s) {
|
|
1241
1148
|
e.Grid = s;
|
|
1242
1149
|
}), p(e, "_onScroll", function(s) {
|
|
@@ -1247,7 +1154,7 @@ var Vo = function() {
|
|
|
1247
1154
|
(0, e.props.onRowsRendered)({ overscanStartIndex: c, overscanStopIndex: d, startIndex: h, stopIndex: f });
|
|
1248
1155
|
}), e;
|
|
1249
1156
|
}
|
|
1250
|
-
return
|
|
1157
|
+
return W(o, C.PureComponent), A(o, [{ key: "forceUpdateGrid", value: function() {
|
|
1251
1158
|
this.Grid && this.Grid.forceUpdate();
|
|
1252
1159
|
} }, { key: "getOffsetForRow", value: function(e) {
|
|
1253
1160
|
var t = e.alignment, n = e.index;
|
|
@@ -1258,8 +1165,8 @@ var Vo = function() {
|
|
|
1258
1165
|
} }, { key: "measureAllRows", value: function() {
|
|
1259
1166
|
this.Grid && this.Grid.measureAllCells();
|
|
1260
1167
|
} }, { key: "recomputeGridSize", value: function() {
|
|
1261
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.columnIndex, n = t === void 0 ? 0 : t, r = e.rowIndex,
|
|
1262
|
-
this.Grid && this.Grid.recomputeGridSize({ rowIndex:
|
|
1168
|
+
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;
|
|
1169
|
+
this.Grid && this.Grid.recomputeGridSize({ rowIndex: i, columnIndex: n });
|
|
1263
1170
|
} }, { key: "recomputeRowHeights", value: function() {
|
|
1264
1171
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
|
|
1265
1172
|
this.Grid && this.Grid.recomputeGridSize({ rowIndex: e, columnIndex: 0 });
|
|
@@ -1270,188 +1177,188 @@ var Vo = function() {
|
|
|
1270
1177
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
|
|
1271
1178
|
this.Grid && this.Grid.scrollToCell({ columnIndex: 0, rowIndex: e });
|
|
1272
1179
|
} }, { key: "render", value: function() {
|
|
1273
|
-
var e = this.props, t = e.className, n = e.noRowsRenderer, r = e.scrollToIndex,
|
|
1274
|
-
return C.createElement(
|
|
1180
|
+
var e = this.props, t = e.className, n = e.noRowsRenderer, r = e.scrollToIndex, i = e.width, l = N("ReactVirtualized__List", t);
|
|
1181
|
+
return C.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 }));
|
|
1275
1182
|
} }]);
|
|
1276
1183
|
}();
|
|
1277
|
-
p(
|
|
1184
|
+
p(Io, "defaultProps", { autoHeight: !1, estimatedRowSize: 30, onScroll: function() {
|
|
1278
1185
|
}, noRowsRenderer: function() {
|
|
1279
1186
|
return null;
|
|
1280
1187
|
}, onRowsRendered: function() {
|
|
1281
|
-
}, overscanIndicesGetter:
|
|
1282
|
-
const
|
|
1283
|
-
return typeof t == "function" ? function(
|
|
1284
|
-
for (var d = a + 1;
|
|
1285
|
-
var h =
|
|
1286
|
-
c(
|
|
1188
|
+
}, overscanIndicesGetter: It, overscanRowCount: 10, scrollToAlignment: "auto", scrollToIndex: -1, style: {} });
|
|
1189
|
+
const he = function(o, e, t, n, r) {
|
|
1190
|
+
return typeof t == "function" ? function(i, l, a, s, c) {
|
|
1191
|
+
for (var d = a + 1; l <= a; ) {
|
|
1192
|
+
var h = l + a >>> 1;
|
|
1193
|
+
c(i[h], s) >= 0 ? (d = h, a = h - 1) : l = h + 1;
|
|
1287
1194
|
}
|
|
1288
1195
|
return d;
|
|
1289
|
-
}(o, n === void 0 ? 0 : 0 | n, r === void 0 ? o.length - 1 : 0 | r, e, t) : function(
|
|
1290
|
-
for (var c = a + 1;
|
|
1291
|
-
var d =
|
|
1292
|
-
|
|
1196
|
+
}(o, n === void 0 ? 0 : 0 | n, r === void 0 ? o.length - 1 : 0 | r, e, t) : function(i, l, a, s) {
|
|
1197
|
+
for (var c = a + 1; l <= a; ) {
|
|
1198
|
+
var d = l + a >>> 1;
|
|
1199
|
+
i[d] >= s ? (c = d, a = d - 1) : l = d + 1;
|
|
1293
1200
|
}
|
|
1294
1201
|
return c;
|
|
1295
1202
|
}(o, t === void 0 ? 0 : 0 | t, n === void 0 ? o.length - 1 : 0 | n, e);
|
|
1296
1203
|
};
|
|
1297
|
-
function
|
|
1204
|
+
function ke(o, e, t, n, r) {
|
|
1298
1205
|
this.mid = o, this.left = e, this.right = t, this.leftPoints = n, this.rightPoints = r, this.count = (e ? e.count : 0) + (t ? t.count : 0) + n.length;
|
|
1299
1206
|
}
|
|
1300
|
-
var
|
|
1301
|
-
function
|
|
1207
|
+
var te = ke.prototype;
|
|
1208
|
+
function ve(o, e) {
|
|
1302
1209
|
o.mid = e.mid, o.left = e.left, o.right = e.right, o.leftPoints = e.leftPoints, o.rightPoints = e.rightPoints, o.count = e.count;
|
|
1303
1210
|
}
|
|
1304
|
-
function
|
|
1305
|
-
var t =
|
|
1211
|
+
function Mt(o, e) {
|
|
1212
|
+
var t = le(e);
|
|
1306
1213
|
o.mid = t.mid, o.left = t.left, o.right = t.right, o.leftPoints = t.leftPoints, o.rightPoints = t.rightPoints, o.count = t.count;
|
|
1307
1214
|
}
|
|
1308
|
-
function
|
|
1215
|
+
function Ye(o, e) {
|
|
1309
1216
|
var t = o.intervals([]);
|
|
1310
|
-
t.push(e),
|
|
1217
|
+
t.push(e), Mt(o, t);
|
|
1311
1218
|
}
|
|
1312
|
-
function
|
|
1219
|
+
function Je(o, e) {
|
|
1313
1220
|
var t = o.intervals([]), n = t.indexOf(e);
|
|
1314
|
-
return n < 0 ? 0 : (t.splice(n, 1),
|
|
1221
|
+
return n < 0 ? 0 : (t.splice(n, 1), Mt(o, t), 1);
|
|
1315
1222
|
}
|
|
1316
|
-
function
|
|
1223
|
+
function Ze(o, e, t) {
|
|
1317
1224
|
for (var n = 0; n < o.length && o[n][0] <= e; ++n) {
|
|
1318
1225
|
var r = t(o[n]);
|
|
1319
1226
|
if (r) return r;
|
|
1320
1227
|
}
|
|
1321
1228
|
}
|
|
1322
|
-
function
|
|
1229
|
+
function Qe(o, e, t) {
|
|
1323
1230
|
for (var n = o.length - 1; n >= 0 && o[n][1] >= e; --n) {
|
|
1324
1231
|
var r = t(o[n]);
|
|
1325
1232
|
if (r) return r;
|
|
1326
1233
|
}
|
|
1327
1234
|
}
|
|
1328
|
-
function
|
|
1235
|
+
function et(o, e) {
|
|
1329
1236
|
for (var t = 0; t < o.length; ++t) {
|
|
1330
1237
|
var n = e(o[t]);
|
|
1331
1238
|
if (n) return n;
|
|
1332
1239
|
}
|
|
1333
1240
|
}
|
|
1334
|
-
function
|
|
1241
|
+
function Po(o, e) {
|
|
1335
1242
|
return o - e;
|
|
1336
1243
|
}
|
|
1337
|
-
function
|
|
1244
|
+
function xe(o, e) {
|
|
1338
1245
|
return o[0] - e[0] || o[1] - e[1];
|
|
1339
1246
|
}
|
|
1340
|
-
function
|
|
1247
|
+
function Re(o, e) {
|
|
1341
1248
|
return o[1] - e[1] || o[0] - e[0];
|
|
1342
1249
|
}
|
|
1343
|
-
function
|
|
1250
|
+
function le(o) {
|
|
1344
1251
|
if (o.length === 0) return null;
|
|
1345
1252
|
for (var e = [], t = 0; t < o.length; ++t) e.push(o[t][0], o[t][1]);
|
|
1346
|
-
e.sort(
|
|
1347
|
-
var n = e[e.length >> 1], r = [],
|
|
1253
|
+
e.sort(Po);
|
|
1254
|
+
var n = e[e.length >> 1], r = [], i = [], l = [];
|
|
1348
1255
|
for (t = 0; t < o.length; ++t) {
|
|
1349
1256
|
var a = o[t];
|
|
1350
|
-
a[1] < n ? r.push(a) : n < a[0] ?
|
|
1257
|
+
a[1] < n ? r.push(a) : n < a[0] ? i.push(a) : l.push(a);
|
|
1351
1258
|
}
|
|
1352
|
-
var s =
|
|
1353
|
-
return s.sort(
|
|
1259
|
+
var s = l, c = l.slice();
|
|
1260
|
+
return s.sort(xe), c.sort(Re), new ke(n, le(r), le(i), s, c);
|
|
1354
1261
|
}
|
|
1355
|
-
function
|
|
1262
|
+
function Lt(o) {
|
|
1356
1263
|
this.root = o;
|
|
1357
1264
|
}
|
|
1358
|
-
|
|
1265
|
+
te.intervals = function(o) {
|
|
1359
1266
|
return o.push.apply(o, this.leftPoints), this.left && this.left.intervals(o), this.right && this.right.intervals(o), o;
|
|
1360
|
-
},
|
|
1267
|
+
}, te.insert = function(o) {
|
|
1361
1268
|
var e = this.count - this.leftPoints.length;
|
|
1362
|
-
if (this.count += 1, o[1] < this.mid) this.left ? 4 * (this.left.count + 1) > 3 * (e + 1) ?
|
|
1363
|
-
else if (o[0] > this.mid) this.right ? 4 * (this.right.count + 1) > 3 * (e + 1) ?
|
|
1269
|
+
if (this.count += 1, o[1] < this.mid) this.left ? 4 * (this.left.count + 1) > 3 * (e + 1) ? Ye(this, o) : this.left.insert(o) : this.left = le([o]);
|
|
1270
|
+
else if (o[0] > this.mid) this.right ? 4 * (this.right.count + 1) > 3 * (e + 1) ? Ye(this, o) : this.right.insert(o) : this.right = le([o]);
|
|
1364
1271
|
else {
|
|
1365
|
-
var t =
|
|
1272
|
+
var t = he(this.leftPoints, o, xe), n = he(this.rightPoints, o, Re);
|
|
1366
1273
|
this.leftPoints.splice(t, 0, o), this.rightPoints.splice(n, 0, o);
|
|
1367
1274
|
}
|
|
1368
|
-
},
|
|
1275
|
+
}, te.remove = function(o) {
|
|
1369
1276
|
var e = this.count - this.leftPoints;
|
|
1370
|
-
if (o[1] < this.mid) return this.left ? 4 * (this.right ? this.right.count : 0) > 3 * (e - 1) ?
|
|
1371
|
-
if (o[0] > this.mid) return this.right ? 4 * (this.left ? this.left.count : 0) > 3 * (e - 1) ?
|
|
1277
|
+
if (o[1] < this.mid) return this.left ? 4 * (this.right ? this.right.count : 0) > 3 * (e - 1) ? Je(this, o) : (i = this.left.remove(o)) === 2 ? (this.left = null, this.count -= 1, 1) : (i === 1 && (this.count -= 1), i) : 0;
|
|
1278
|
+
if (o[0] > this.mid) return this.right ? 4 * (this.left ? this.left.count : 0) > 3 * (e - 1) ? Je(this, o) : (i = this.right.remove(o)) === 2 ? (this.right = null, this.count -= 1, 1) : (i === 1 && (this.count -= 1), i) : 0;
|
|
1372
1279
|
if (this.count === 1) return this.leftPoints[0] === o ? 2 : 0;
|
|
1373
1280
|
if (this.leftPoints.length === 1 && this.leftPoints[0] === o) {
|
|
1374
1281
|
if (this.left && this.right) {
|
|
1375
1282
|
for (var t = this, n = this.left; n.right; ) t = n, n = n.right;
|
|
1376
1283
|
if (t === this) n.right = this.right;
|
|
1377
1284
|
else {
|
|
1378
|
-
var r = this.left,
|
|
1379
|
-
t.count -= n.count, t.right = n.left, n.left = r, n.right =
|
|
1285
|
+
var r = this.left, i = this.right;
|
|
1286
|
+
t.count -= n.count, t.right = n.left, n.left = r, n.right = i;
|
|
1380
1287
|
}
|
|
1381
|
-
|
|
1382
|
-
} else this.left ?
|
|
1288
|
+
ve(this, n), this.count = (this.left ? this.left.count : 0) + (this.right ? this.right.count : 0) + this.leftPoints.length;
|
|
1289
|
+
} else this.left ? ve(this, this.left) : ve(this, this.right);
|
|
1383
1290
|
return 1;
|
|
1384
1291
|
}
|
|
1385
|
-
for (r =
|
|
1386
|
-
for (this.count -= 1, this.leftPoints.splice(r, 1),
|
|
1292
|
+
for (r = he(this.leftPoints, o, xe); r < this.leftPoints.length && this.leftPoints[r][0] === o[0]; ++r) if (this.leftPoints[r] === o) {
|
|
1293
|
+
for (this.count -= 1, this.leftPoints.splice(r, 1), i = he(this.rightPoints, o, Re); i < this.rightPoints.length && this.rightPoints[i][1] === o[1]; ++i) if (this.rightPoints[i] === o) return this.rightPoints.splice(i, 1), 1;
|
|
1387
1294
|
}
|
|
1388
1295
|
return 0;
|
|
1389
|
-
},
|
|
1390
|
-
return o < this.mid ? this.left && (t = this.left.queryPoint(o, e)) ? t :
|
|
1296
|
+
}, te.queryPoint = function(o, e) {
|
|
1297
|
+
return o < this.mid ? this.left && (t = this.left.queryPoint(o, e)) ? t : Ze(this.leftPoints, o, e) : o > this.mid ? this.right && (t = this.right.queryPoint(o, e)) ? t : Qe(this.rightPoints, o, e) : et(this.leftPoints, e);
|
|
1391
1298
|
var t;
|
|
1392
|
-
},
|
|
1299
|
+
}, te.queryInterval = function(o, e, t) {
|
|
1393
1300
|
var n;
|
|
1394
|
-
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 ?
|
|
1301
|
+
return o < this.mid && this.left && (n = this.left.queryInterval(o, e, t)) || e > this.mid && this.right && (n = this.right.queryInterval(o, e, t)) ? n : e < this.mid ? Ze(this.leftPoints, e, t) : o > this.mid ? Qe(this.rightPoints, o, t) : et(this.leftPoints, t);
|
|
1395
1302
|
};
|
|
1396
|
-
var
|
|
1397
|
-
|
|
1398
|
-
this.root ? this.root.insert(o) : this.root = new
|
|
1399
|
-
},
|
|
1303
|
+
var q = Lt.prototype;
|
|
1304
|
+
q.insert = function(o) {
|
|
1305
|
+
this.root ? this.root.insert(o) : this.root = new ke(o[0], null, null, [o], [o]);
|
|
1306
|
+
}, q.remove = function(o) {
|
|
1400
1307
|
if (this.root) {
|
|
1401
1308
|
var e = this.root.remove(o);
|
|
1402
1309
|
return e === 2 && (this.root = null), e !== 0;
|
|
1403
1310
|
}
|
|
1404
1311
|
return !1;
|
|
1405
|
-
},
|
|
1312
|
+
}, q.queryPoint = function(o, e) {
|
|
1406
1313
|
if (this.root) return this.root.queryPoint(o, e);
|
|
1407
|
-
},
|
|
1314
|
+
}, q.queryInterval = function(o, e, t) {
|
|
1408
1315
|
if (o <= e && this.root) return this.root.queryInterval(o, e, t);
|
|
1409
|
-
}, Object.defineProperty(
|
|
1316
|
+
}, Object.defineProperty(q, "count", { get: function() {
|
|
1410
1317
|
return this.root ? this.root.count : 0;
|
|
1411
|
-
} }), Object.defineProperty(
|
|
1318
|
+
} }), Object.defineProperty(q, "intervals", { get: function() {
|
|
1412
1319
|
return this.root ? this.root.intervals([]) : [];
|
|
1413
1320
|
} });
|
|
1414
|
-
var
|
|
1415
|
-
|
|
1321
|
+
var _e = A(function o() {
|
|
1322
|
+
G(this, o), p(this, "_columnSizeMap", {}), p(this, "_intervalTree", new Lt(null)), p(this, "_leftMap", {});
|
|
1416
1323
|
}, [{ key: "estimateTotalHeight", value: function(o, e, t) {
|
|
1417
1324
|
var n = o - this.count;
|
|
1418
1325
|
return this.tallestColumnSize + Math.ceil(n / e) * t;
|
|
1419
1326
|
} }, { key: "range", value: function(o, e, t) {
|
|
1420
1327
|
var n = this;
|
|
1421
1328
|
this._intervalTree.queryInterval(o, o + e, function(r) {
|
|
1422
|
-
var
|
|
1329
|
+
var i = function(s, c) {
|
|
1423
1330
|
return function(d) {
|
|
1424
1331
|
if (Array.isArray(d)) return d;
|
|
1425
1332
|
}(s) || function(d, h) {
|
|
1426
1333
|
var f = d == null ? null : typeof Symbol < "u" && d[Symbol.iterator] || d["@@iterator"];
|
|
1427
1334
|
if (f != null) {
|
|
1428
|
-
var u,
|
|
1335
|
+
var u, _, g, m, S = [], y = !0, v = !1;
|
|
1429
1336
|
try {
|
|
1430
|
-
if (
|
|
1337
|
+
if (g = (f = f.call(d)).next, h !== 0) for (; !(y = (u = g.call(f)).done) && (S.push(u.value), S.length !== h); y = !0) ;
|
|
1431
1338
|
} catch (w) {
|
|
1432
|
-
|
|
1339
|
+
v = !0, _ = w;
|
|
1433
1340
|
} finally {
|
|
1434
1341
|
try {
|
|
1435
|
-
if (!y && f.return != null && (
|
|
1342
|
+
if (!y && f.return != null && (m = f.return(), Object(m) !== m)) return;
|
|
1436
1343
|
} finally {
|
|
1437
|
-
if (
|
|
1344
|
+
if (v) throw _;
|
|
1438
1345
|
}
|
|
1439
1346
|
}
|
|
1440
1347
|
return S;
|
|
1441
1348
|
}
|
|
1442
|
-
}(s, c) ||
|
|
1349
|
+
}(s, c) || Pt(s, c) || function() {
|
|
1443
1350
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1444
1351
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1445
1352
|
}();
|
|
1446
|
-
}(r, 3),
|
|
1447
|
-
|
|
1448
|
-
var a =
|
|
1449
|
-
return t(a, n._leftMap[a],
|
|
1353
|
+
}(r, 3), l = i[0];
|
|
1354
|
+
i[1];
|
|
1355
|
+
var a = i[2];
|
|
1356
|
+
return t(a, n._leftMap[a], l);
|
|
1450
1357
|
});
|
|
1451
1358
|
} }, { key: "setPosition", value: function(o, e, t, n) {
|
|
1452
1359
|
this._intervalTree.insert([t, t + n, o]), this._leftMap[o] = e;
|
|
1453
|
-
var r = this._columnSizeMap,
|
|
1454
|
-
r[e] =
|
|
1360
|
+
var r = this._columnSizeMap, i = r[e];
|
|
1361
|
+
r[e] = i === void 0 ? t + n : Math.max(i, t + n);
|
|
1455
1362
|
} }, { key: "count", get: function() {
|
|
1456
1363
|
return this._intervalTree.count;
|
|
1457
1364
|
} }, { key: "shortestColumnSize", get: function() {
|
|
@@ -1469,7 +1376,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1469
1376
|
}
|
|
1470
1377
|
return e;
|
|
1471
1378
|
} }]);
|
|
1472
|
-
function
|
|
1379
|
+
function tt(o, e) {
|
|
1473
1380
|
var t = Object.keys(o);
|
|
1474
1381
|
if (Object.getOwnPropertySymbols) {
|
|
1475
1382
|
var n = Object.getOwnPropertySymbols(o);
|
|
@@ -1479,33 +1386,33 @@ function st(o, e) {
|
|
|
1479
1386
|
}
|
|
1480
1387
|
return t;
|
|
1481
1388
|
}
|
|
1482
|
-
function
|
|
1389
|
+
function ko(o) {
|
|
1483
1390
|
for (var e = 1; e < arguments.length; e++) {
|
|
1484
1391
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
1485
|
-
e % 2 ?
|
|
1392
|
+
e % 2 ? tt(Object(t), !0).forEach(function(n) {
|
|
1486
1393
|
p(o, n, t[n]);
|
|
1487
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) :
|
|
1394
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : tt(Object(t)).forEach(function(n) {
|
|
1488
1395
|
Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
|
|
1489
1396
|
});
|
|
1490
1397
|
}
|
|
1491
1398
|
return o;
|
|
1492
1399
|
}
|
|
1493
|
-
function
|
|
1400
|
+
function Gt() {
|
|
1494
1401
|
try {
|
|
1495
1402
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1496
1403
|
}));
|
|
1497
1404
|
} catch {
|
|
1498
1405
|
}
|
|
1499
|
-
return (
|
|
1406
|
+
return (Gt = function() {
|
|
1500
1407
|
return !!o;
|
|
1501
1408
|
})();
|
|
1502
1409
|
}
|
|
1503
|
-
var
|
|
1410
|
+
var ot = function() {
|
|
1504
1411
|
function o() {
|
|
1505
1412
|
var e, t, n, r;
|
|
1506
|
-
|
|
1507
|
-
for (var
|
|
1508
|
-
return t = this, n = o, r = [].concat(
|
|
1413
|
+
G(this, o);
|
|
1414
|
+
for (var i = arguments.length, l = new Array(i), a = 0; a < i; a++) l[a] = arguments[a];
|
|
1415
|
+
return t = this, n = o, r = [].concat(l), n = I(n), p(e = H(t, Gt() ? 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() {
|
|
1509
1416
|
e.setState({ isScrolling: !1 });
|
|
1510
1417
|
}), p(e, "_setScrollingContainerRef", function(s) {
|
|
1511
1418
|
e._scrollingContainer = s;
|
|
@@ -1514,26 +1421,26 @@ var at = function() {
|
|
|
1514
1421
|
d === h && (e._debounceResetIsScrolling(), e.state.scrollTop !== h && e.setState({ isScrolling: !0, scrollTop: h }));
|
|
1515
1422
|
}), e;
|
|
1516
1423
|
}
|
|
1517
|
-
return
|
|
1518
|
-
this._positionCache = new
|
|
1424
|
+
return W(o, C.PureComponent), A(o, [{ key: "clearCellPositions", value: function() {
|
|
1425
|
+
this._positionCache = new _e(), this.forceUpdate();
|
|
1519
1426
|
} }, { key: "invalidateCellSizeAfterRender", value: function(e) {
|
|
1520
1427
|
var t = e.rowIndex;
|
|
1521
1428
|
this._invalidateOnUpdateStartIndex === null ? (this._invalidateOnUpdateStartIndex = t, this._invalidateOnUpdateStopIndex = t) : (this._invalidateOnUpdateStartIndex = Math.min(this._invalidateOnUpdateStartIndex, t), this._invalidateOnUpdateStopIndex = Math.max(this._invalidateOnUpdateStopIndex, t));
|
|
1522
1429
|
} }, { key: "recomputeCellPositions", value: function() {
|
|
1523
1430
|
var e = this._positionCache.count - 1;
|
|
1524
|
-
this._positionCache = new
|
|
1431
|
+
this._positionCache = new _e(), this._populatePositionCache(0, e), this.forceUpdate();
|
|
1525
1432
|
} }, { key: "componentDidMount", value: function() {
|
|
1526
1433
|
this._checkInvalidateOnUpdate(), this._invokeOnScrollCallback(), this._invokeOnCellsRenderedCallback();
|
|
1527
1434
|
} }, { key: "componentDidUpdate", value: function(e, t) {
|
|
1528
1435
|
this._checkInvalidateOnUpdate(), this._invokeOnScrollCallback(), this._invokeOnCellsRenderedCallback(), this.props.scrollTop !== e.scrollTop && this._debounceResetIsScrolling();
|
|
1529
1436
|
} }, { key: "componentWillUnmount", value: function() {
|
|
1530
|
-
this._debounceResetIsScrollingId &&
|
|
1437
|
+
this._debounceResetIsScrollingId && Q(this._debounceResetIsScrollingId);
|
|
1531
1438
|
} }, { key: "render", value: function() {
|
|
1532
|
-
var e, t = this, n = this.props, r = n.autoHeight,
|
|
1533
|
-
if (this._positionCache.range(Math.max(0, w - f), c + 2 * f, function(
|
|
1534
|
-
e === void 0 ? (
|
|
1535
|
-
}),
|
|
1536
|
-
return this._startIndex =
|
|
1439
|
+
var e, t = this, n = this.props, r = n.autoHeight, i = n.cellCount, l = n.cellMeasurerCache, a = n.cellRenderer, s = n.className, c = n.height, d = n.id, h = n.keyMapper, f = n.overscanByPixels, u = n.role, _ = n.style, g = n.tabIndex, m = n.width, S = n.rowDirection, y = this.state, v = y.isScrolling, w = y.scrollTop, x = [], R = this._getEstimatedTotalHeight(), b = this._positionCache.shortestColumnSize, z = this._positionCache.count, T = 0;
|
|
1440
|
+
if (this._positionCache.range(Math.max(0, w - f), c + 2 * f, function(P, E, j) {
|
|
1441
|
+
e === void 0 ? (T = P, e = P) : (T = Math.min(T, P), e = Math.max(e, P)), x.push(a({ index: P, isScrolling: v, key: h(P), parent: t, style: p(p(p(p({ height: l.getHeight(P) }, S === "ltr" ? "left" : "right", E), "position", "absolute"), "top", j), "width", l.getWidth(P)) }));
|
|
1442
|
+
}), b < w + c + f && z < i) for (var k = Math.min(i - z, Math.ceil((w + c + f - b) / l.defaultHeight * m / l.defaultWidth)), O = z; O < z + k; O++) e = O, x.push(a({ index: O, isScrolling: v, key: h(O), parent: this, style: { width: l.getWidth(O) } }));
|
|
1443
|
+
return this._startIndex = T, this._stopIndex = e, C.createElement("div", { ref: this._setScrollingContainerRef, "aria-label": this.props["aria-label"], className: N("ReactVirtualized__Masonry", s), id: d, onScroll: this._onScroll, role: u, style: ko({ boxSizing: "border-box", direction: "ltr", height: r ? "auto" : c, overflowX: "hidden", overflowY: R < c ? "hidden" : "auto", position: "relative", width: m, WebkitOverflowScrolling: "touch", willChange: "transform" }, _), tabIndex: g }, C.createElement("div", { className: "ReactVirtualized__Masonry__innerScrollContainer", style: { width: "100%", height: R, maxWidth: "100%", maxHeight: R, overflow: "hidden", pointerEvents: v ? "none" : "", position: "relative" } }, x));
|
|
1537
1444
|
} }, { key: "_checkInvalidateOnUpdate", value: function() {
|
|
1538
1445
|
if (typeof this._invalidateOnUpdateStartIndex == "number") {
|
|
1539
1446
|
var e = this._invalidateOnUpdateStartIndex, t = this._invalidateOnUpdateStopIndex;
|
|
@@ -1541,40 +1448,40 @@ var at = function() {
|
|
|
1541
1448
|
}
|
|
1542
1449
|
} }, { key: "_debounceResetIsScrolling", value: function() {
|
|
1543
1450
|
var e = this.props.scrollingResetTimeInterval;
|
|
1544
|
-
this._debounceResetIsScrollingId &&
|
|
1451
|
+
this._debounceResetIsScrollingId && Q(this._debounceResetIsScrollingId), this._debounceResetIsScrollingId = Pe(this._debounceResetIsScrollingCallback, e);
|
|
1545
1452
|
} }, { key: "_getEstimatedTotalHeight", value: function() {
|
|
1546
|
-
var e = this.props, t = e.cellCount, n = e.cellMeasurerCache, r = e.width,
|
|
1547
|
-
return this._positionCache.estimateTotalHeight(t,
|
|
1453
|
+
var e = this.props, t = e.cellCount, n = e.cellMeasurerCache, r = e.width, i = Math.max(1, Math.floor(r / n.defaultWidth));
|
|
1454
|
+
return this._positionCache.estimateTotalHeight(t, i, n.defaultHeight);
|
|
1548
1455
|
} }, { key: "_invokeOnScrollCallback", value: function() {
|
|
1549
1456
|
var e = this.props, t = e.height, n = e.onScroll, r = this.state.scrollTop;
|
|
1550
1457
|
this._onScrollMemoized !== r && (n({ clientHeight: t, scrollHeight: this._getEstimatedTotalHeight(), scrollTop: r }), this._onScrollMemoized = r);
|
|
1551
1458
|
} }, { key: "_invokeOnCellsRenderedCallback", value: function() {
|
|
1552
1459
|
this._startIndexMemoized === this._startIndex && this._stopIndexMemoized === this._stopIndex || ((0, this.props.onCellsRendered)({ startIndex: this._startIndex, stopIndex: this._stopIndex }), this._startIndexMemoized = this._startIndex, this._stopIndexMemoized = this._stopIndex);
|
|
1553
1460
|
} }, { key: "_populatePositionCache", value: function(e, t) {
|
|
1554
|
-
for (var n = this.props, r = n.cellMeasurerCache,
|
|
1555
|
-
var a = l
|
|
1556
|
-
this._positionCache.setPosition(
|
|
1461
|
+
for (var n = this.props, r = n.cellMeasurerCache, i = n.cellPositioner, l = e; l <= t; l++) {
|
|
1462
|
+
var a = i(l), s = a.left, c = a.top;
|
|
1463
|
+
this._positionCache.setPosition(l, s, c, r.getHeight(l));
|
|
1557
1464
|
}
|
|
1558
1465
|
} }], [{ key: "getDerivedStateFromProps", value: function(e, t) {
|
|
1559
1466
|
return e.scrollTop !== void 0 && t.scrollTop !== e.scrollTop ? { isScrolling: !0, scrollTop: e.scrollTop } : null;
|
|
1560
1467
|
} }]);
|
|
1561
1468
|
}();
|
|
1562
|
-
function
|
|
1469
|
+
function nt() {
|
|
1563
1470
|
}
|
|
1564
|
-
p(
|
|
1471
|
+
p(ot, "defaultProps", { autoHeight: !1, keyMapper: function(o) {
|
|
1565
1472
|
return o;
|
|
1566
|
-
}, onCellsRendered:
|
|
1567
|
-
var
|
|
1473
|
+
}, onCellsRendered: nt, onScroll: nt, overscanByPixels: 20, role: "grid", scrollingResetTimeInterval: 150, style: {}, tabIndex: 0, rowDirection: "ltr" }), ae(ot);
|
|
1474
|
+
var Se = A(function o() {
|
|
1568
1475
|
var e = this, t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1569
|
-
|
|
1476
|
+
G(this, o), p(this, "_cellMeasurerCache", void 0), p(this, "_columnIndexOffset", void 0), p(this, "_rowIndexOffset", void 0), p(this, "columnWidth", function(s) {
|
|
1570
1477
|
var c = s.index;
|
|
1571
1478
|
e._cellMeasurerCache.columnWidth({ index: c + e._columnIndexOffset });
|
|
1572
1479
|
}), p(this, "rowHeight", function(s) {
|
|
1573
1480
|
var c = s.index;
|
|
1574
1481
|
e._cellMeasurerCache.rowHeight({ index: c + e._rowIndexOffset });
|
|
1575
1482
|
});
|
|
1576
|
-
var n = t.cellMeasurerCache, r = t.columnIndexOffset,
|
|
1577
|
-
this._cellMeasurerCache = n, this._columnIndexOffset =
|
|
1483
|
+
var n = t.cellMeasurerCache, r = t.columnIndexOffset, i = r === void 0 ? 0 : r, l = t.rowIndexOffset, a = l === void 0 ? 0 : l;
|
|
1484
|
+
this._cellMeasurerCache = n, this._columnIndexOffset = i, this._rowIndexOffset = a;
|
|
1578
1485
|
}, [{ key: "clear", value: function(o, e) {
|
|
1579
1486
|
this._cellMeasurerCache.clear(o + this._rowIndexOffset, e + this._columnIndexOffset);
|
|
1580
1487
|
} }, { key: "clearAll", value: function() {
|
|
@@ -1598,8 +1505,8 @@ var xe = H(function o() {
|
|
|
1598
1505
|
return this._cellMeasurerCache.has(o + this._rowIndexOffset, e + this._columnIndexOffset);
|
|
1599
1506
|
} }, { key: "set", value: function(o, e, t, n) {
|
|
1600
1507
|
this._cellMeasurerCache.set(o + this._rowIndexOffset, e + this._columnIndexOffset, t, n);
|
|
1601
|
-
} }]),
|
|
1602
|
-
function
|
|
1508
|
+
} }]), Oo = ["rowIndex"], Mo = ["columnIndex", "rowIndex"], Lo = ["columnIndex"], Go = ["onScroll", "onSectionRendered", "onScrollbarPresenceChange", "scrollLeft", "scrollToColumn", "scrollTop", "scrollToRow"];
|
|
1509
|
+
function rt(o, e) {
|
|
1603
1510
|
var t = Object.keys(o);
|
|
1604
1511
|
if (Object.getOwnPropertySymbols) {
|
|
1605
1512
|
var n = Object.getOwnPropertySymbols(o);
|
|
@@ -1612,51 +1519,51 @@ function dt(o, e) {
|
|
|
1612
1519
|
function M(o) {
|
|
1613
1520
|
for (var e = 1; e < arguments.length; e++) {
|
|
1614
1521
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
1615
|
-
e % 2 ?
|
|
1522
|
+
e % 2 ? rt(Object(t), !0).forEach(function(n) {
|
|
1616
1523
|
p(o, n, t[n]);
|
|
1617
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) :
|
|
1524
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : rt(Object(t)).forEach(function(n) {
|
|
1618
1525
|
Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
|
|
1619
1526
|
});
|
|
1620
1527
|
}
|
|
1621
1528
|
return o;
|
|
1622
1529
|
}
|
|
1623
|
-
function
|
|
1530
|
+
function At() {
|
|
1624
1531
|
try {
|
|
1625
1532
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1626
1533
|
}));
|
|
1627
1534
|
} catch {
|
|
1628
1535
|
}
|
|
1629
|
-
return (
|
|
1536
|
+
return (At = function() {
|
|
1630
1537
|
return !!o;
|
|
1631
1538
|
})();
|
|
1632
1539
|
}
|
|
1633
|
-
var
|
|
1540
|
+
var ye = function() {
|
|
1634
1541
|
function o(e, t) {
|
|
1635
|
-
var n, r,
|
|
1636
|
-
|
|
1542
|
+
var n, r, i, l;
|
|
1543
|
+
G(this, o), r = this, l = [e, t], i = I(i = o), p(n = H(r, At() ? 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) {
|
|
1637
1544
|
n._bottomLeftGrid = d;
|
|
1638
1545
|
}), p(n, "_bottomRightGridRef", function(d) {
|
|
1639
1546
|
n._bottomRightGrid = d;
|
|
1640
1547
|
}), p(n, "_cellRendererBottomLeftGrid", function(d) {
|
|
1641
|
-
var h = d.rowIndex, f =
|
|
1642
|
-
return h === u.rowCount -
|
|
1548
|
+
var h = d.rowIndex, f = oe(d, Oo), u = n.props, _ = u.cellRenderer, g = u.fixedRowCount;
|
|
1549
|
+
return h === u.rowCount - g ? C.createElement("div", { key: f.key, style: M(M({}, f.style), {}, { height: 20 }) }) : _(M(M({}, f), {}, { parent: n, rowIndex: h + g }));
|
|
1643
1550
|
}), p(n, "_cellRendererBottomRightGrid", function(d) {
|
|
1644
|
-
var h = d.columnIndex, f = d.rowIndex, u =
|
|
1645
|
-
return
|
|
1551
|
+
var h = d.columnIndex, f = d.rowIndex, u = oe(d, Mo), _ = n.props, g = _.cellRenderer, m = _.fixedColumnCount, S = _.fixedRowCount;
|
|
1552
|
+
return g(M(M({}, u), {}, { columnIndex: h + m, parent: n, rowIndex: f + S }));
|
|
1646
1553
|
}), p(n, "_cellRendererTopRightGrid", function(d) {
|
|
1647
|
-
var h = d.columnIndex, f =
|
|
1648
|
-
return h ===
|
|
1554
|
+
var h = d.columnIndex, f = oe(d, Lo), u = n.props, _ = u.cellRenderer, g = u.columnCount, m = u.fixedColumnCount;
|
|
1555
|
+
return h === g - m ? C.createElement("div", { key: f.key, style: M(M({}, f.style), {}, { width: 20 }) }) : _(M(M({}, f), {}, { columnIndex: h + m, parent: n }));
|
|
1649
1556
|
}), p(n, "_columnWidthRightGrid", function(d) {
|
|
1650
|
-
var h = d.index, f = n.props, u = f.columnCount,
|
|
1651
|
-
return
|
|
1557
|
+
var h = d.index, f = n.props, u = f.columnCount, _ = f.fixedColumnCount, g = f.columnWidth, m = n.state, S = m.scrollbarSize;
|
|
1558
|
+
return m.showHorizontalScrollbar && h === u - _ ? S : typeof g == "function" ? g({ index: h + _ }) : g;
|
|
1652
1559
|
}), p(n, "_onScroll", function(d) {
|
|
1653
1560
|
var h = d.scrollLeft, f = d.scrollTop;
|
|
1654
1561
|
n.setState({ scrollLeft: h, scrollTop: f });
|
|
1655
1562
|
var u = n.props.onScroll;
|
|
1656
1563
|
u && u(d);
|
|
1657
1564
|
}), p(n, "_onScrollbarPresenceChange", function(d) {
|
|
1658
|
-
var h = d.horizontal, f = d.size, u = d.vertical,
|
|
1659
|
-
if (h !==
|
|
1565
|
+
var h = d.horizontal, f = d.size, u = d.vertical, _ = n.state, g = _.showHorizontalScrollbar, m = _.showVerticalScrollbar;
|
|
1566
|
+
if (h !== g || u !== m) {
|
|
1660
1567
|
n.setState({ scrollbarSize: f, showHorizontalScrollbar: h, showVerticalScrollbar: u });
|
|
1661
1568
|
var S = n.props.onScrollbarPresenceChange;
|
|
1662
1569
|
typeof S == "function" && S({ horizontal: h, size: f, vertical: u });
|
|
@@ -1668,26 +1575,26 @@ var Re = function() {
|
|
|
1668
1575
|
var h = d.scrollTop;
|
|
1669
1576
|
n._onScroll({ scrollTop: h, scrollLeft: n.state.scrollLeft });
|
|
1670
1577
|
}), p(n, "_rowHeightBottomGrid", function(d) {
|
|
1671
|
-
var h = d.index, f = n.props, u = f.fixedRowCount,
|
|
1672
|
-
return
|
|
1578
|
+
var h = d.index, f = n.props, u = f.fixedRowCount, _ = f.rowCount, g = f.rowHeight, m = n.state, S = m.scrollbarSize;
|
|
1579
|
+
return m.showVerticalScrollbar && h === _ - u ? S : typeof g == "function" ? g({ index: h + u }) : g;
|
|
1673
1580
|
}), p(n, "_topLeftGridRef", function(d) {
|
|
1674
1581
|
n._topLeftGrid = d;
|
|
1675
1582
|
}), p(n, "_topRightGridRef", function(d) {
|
|
1676
1583
|
n._topRightGrid = d;
|
|
1677
1584
|
});
|
|
1678
1585
|
var a = e.deferredMeasurementCache, s = e.fixedColumnCount, c = e.fixedRowCount;
|
|
1679
|
-
return n._maybeCalculateCachedStyles(!0), a && (n._deferredMeasurementCacheBottomLeftGrid = c > 0 ? new
|
|
1586
|
+
return n._maybeCalculateCachedStyles(!0), a && (n._deferredMeasurementCacheBottomLeftGrid = c > 0 ? new Se({ cellMeasurerCache: a, columnIndexOffset: 0, rowIndexOffset: c }) : a, n._deferredMeasurementCacheBottomRightGrid = s > 0 || c > 0 ? new Se({ cellMeasurerCache: a, columnIndexOffset: s, rowIndexOffset: c }) : a, n._deferredMeasurementCacheTopRightGrid = s > 0 ? new Se({ cellMeasurerCache: a, columnIndexOffset: s, rowIndexOffset: 0 }) : a), n;
|
|
1680
1587
|
}
|
|
1681
|
-
return
|
|
1588
|
+
return W(o, C.PureComponent), A(o, [{ key: "forceUpdateGrids", value: function() {
|
|
1682
1589
|
this._bottomLeftGrid && this._bottomLeftGrid.forceUpdate(), this._bottomRightGrid && this._bottomRightGrid.forceUpdate(), this._topLeftGrid && this._topLeftGrid.forceUpdate(), this._topRightGrid && this._topRightGrid.forceUpdate();
|
|
1683
1590
|
} }, { key: "invalidateCellSizeAfterRender", value: function() {
|
|
1684
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.columnIndex, n = t === void 0 ? 0 : t, r = e.rowIndex,
|
|
1685
|
-
this._deferredInvalidateColumnIndex = typeof this._deferredInvalidateColumnIndex == "number" ? Math.min(this._deferredInvalidateColumnIndex, n) : n, this._deferredInvalidateRowIndex = typeof this._deferredInvalidateRowIndex == "number" ? Math.min(this._deferredInvalidateRowIndex,
|
|
1591
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.columnIndex, n = t === void 0 ? 0 : t, r = e.rowIndex, i = r === void 0 ? 0 : r;
|
|
1592
|
+
this._deferredInvalidateColumnIndex = typeof this._deferredInvalidateColumnIndex == "number" ? Math.min(this._deferredInvalidateColumnIndex, n) : n, this._deferredInvalidateRowIndex = typeof this._deferredInvalidateRowIndex == "number" ? Math.min(this._deferredInvalidateRowIndex, i) : i;
|
|
1686
1593
|
} }, { key: "measureAllCells", value: function() {
|
|
1687
1594
|
this._bottomLeftGrid && this._bottomLeftGrid.measureAllCells(), this._bottomRightGrid && this._bottomRightGrid.measureAllCells(), this._topLeftGrid && this._topLeftGrid.measureAllCells(), this._topRightGrid && this._topRightGrid.measureAllCells();
|
|
1688
1595
|
} }, { key: "recomputeGridSize", value: function() {
|
|
1689
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.columnIndex, n = t === void 0 ? 0 : t, r = e.rowIndex,
|
|
1690
|
-
this._bottomLeftGrid && this._bottomLeftGrid.recomputeGridSize({ columnIndex: n, rowIndex: d }), this._bottomRightGrid && this._bottomRightGrid.recomputeGridSize({ columnIndex: c, rowIndex: d }), this._topLeftGrid && this._topLeftGrid.recomputeGridSize({ columnIndex: n, rowIndex:
|
|
1596
|
+
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, l = this.props, a = l.fixedColumnCount, s = l.fixedRowCount, c = Math.max(0, n - a), d = Math.max(0, i - s);
|
|
1597
|
+
this._bottomLeftGrid && this._bottomLeftGrid.recomputeGridSize({ columnIndex: n, rowIndex: d }), this._bottomRightGrid && this._bottomRightGrid.recomputeGridSize({ columnIndex: c, rowIndex: d }), this._topLeftGrid && this._topLeftGrid.recomputeGridSize({ columnIndex: n, rowIndex: i }), this._topRightGrid && this._topRightGrid.recomputeGridSize({ columnIndex: c, rowIndex: i }), this._leftGridWidth = null, this._topGridHeight = null, this._maybeCalculateCachedStyles(!0);
|
|
1691
1598
|
} }, { key: "componentDidMount", value: function() {
|
|
1692
1599
|
var e = this.props, t = e.scrollLeft, n = e.scrollTop;
|
|
1693
1600
|
if (t > 0 || n > 0) {
|
|
@@ -1702,16 +1609,16 @@ var Re = function() {
|
|
|
1702
1609
|
e.onScrollbarPresenceChange, e.scrollLeft;
|
|
1703
1610
|
var r = e.scrollToColumn;
|
|
1704
1611
|
e.scrollTop;
|
|
1705
|
-
var
|
|
1612
|
+
var i = e.scrollToRow, l = oe(e, Go);
|
|
1706
1613
|
if (this._prepareForRender(), this.props.width === 0 || this.props.height === 0) return null;
|
|
1707
1614
|
var a = this.state, s = a.scrollLeft, c = a.scrollTop;
|
|
1708
|
-
return C.createElement("div", { style: this._containerOuterStyle }, C.createElement("div", { style: this._containerTopStyle }, this._renderTopLeftGrid(
|
|
1615
|
+
return C.createElement("div", { style: this._containerOuterStyle }, C.createElement("div", { style: this._containerTopStyle }, this._renderTopLeftGrid(l), this._renderTopRightGrid(M(M({}, l), {}, { onScroll: t, scrollLeft: s }))), C.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 }))));
|
|
1709
1616
|
} }, { key: "_getBottomGridHeight", value: function(e) {
|
|
1710
1617
|
return e.height - this._getTopGridHeight(e);
|
|
1711
1618
|
} }, { key: "_getLeftGridWidth", value: function(e) {
|
|
1712
1619
|
var t = e.fixedColumnCount, n = e.columnWidth;
|
|
1713
1620
|
if (this._leftGridWidth == null) if (typeof n == "function") {
|
|
1714
|
-
for (var r = 0,
|
|
1621
|
+
for (var r = 0, i = 0; i < t; i++) r += n({ index: i });
|
|
1715
1622
|
this._leftGridWidth = r;
|
|
1716
1623
|
} else this._leftGridWidth = n * t;
|
|
1717
1624
|
return this._leftGridWidth;
|
|
@@ -1720,7 +1627,7 @@ var Re = function() {
|
|
|
1720
1627
|
} }, { key: "_getTopGridHeight", value: function(e) {
|
|
1721
1628
|
var t = e.fixedRowCount, n = e.rowHeight;
|
|
1722
1629
|
if (this._topGridHeight == null) if (typeof n == "function") {
|
|
1723
|
-
for (var r = 0,
|
|
1630
|
+
for (var r = 0, i = 0; i < t; i++) r += n({ index: i });
|
|
1724
1631
|
this._topGridHeight = r;
|
|
1725
1632
|
} else this._topGridHeight = n * t;
|
|
1726
1633
|
return this._topGridHeight;
|
|
@@ -1730,79 +1637,79 @@ var Re = function() {
|
|
|
1730
1637
|
this._deferredInvalidateColumnIndex = null, this._deferredInvalidateRowIndex = null, this.recomputeGridSize({ columnIndex: e, rowIndex: t }), this.forceUpdate();
|
|
1731
1638
|
}
|
|
1732
1639
|
} }, { key: "_maybeCalculateCachedStyles", value: function(e) {
|
|
1733
|
-
var t = this.props, n = t.columnWidth, r = t.enableFixedColumnScroll,
|
|
1734
|
-
(e ||
|
|
1640
|
+
var t = this.props, n = t.columnWidth, r = t.enableFixedColumnScroll, i = t.enableFixedRowScroll, l = t.height, a = t.fixedColumnCount, s = t.fixedRowCount, c = t.rowHeight, d = t.style, h = t.styleBottomLeftGrid, f = t.styleBottomRightGrid, u = t.styleTopLeftGrid, _ = t.styleTopRightGrid, g = t.width, m = e || l !== this._lastRenderedHeight || g !== this._lastRenderedWidth, S = e || n !== this._lastRenderedColumnWidth || a !== this._lastRenderedFixedColumnCount, y = e || s !== this._lastRenderedFixedRowCount || c !== this._lastRenderedRowHeight;
|
|
1641
|
+
(e || m || d !== this._lastRenderedStyle) && (this._containerOuterStyle = M({ height: l, overflow: "visible", width: g }, d)), (e || m || y) && (this._containerTopStyle = { height: this._getTopGridHeight(this.props), position: "relative", width: g }, this._containerBottomStyle = { height: l - this._getTopGridHeight(this.props), overflow: "visible", position: "relative", width: g }), (e || h !== this._lastRenderedStyleBottomLeftGrid) && (this._bottomLeftGridStyle = 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 || _ !== this._lastRenderedStyleTopRightGrid) && (this._topRightGridStyle = M({ left: this._getLeftGridWidth(this.props), overflowX: i ? "auto" : "hidden", overflowY: "hidden", position: "absolute", top: 0 }, _)), this._lastRenderedColumnWidth = n, this._lastRenderedFixedColumnCount = a, this._lastRenderedFixedRowCount = s, this._lastRenderedHeight = l, this._lastRenderedRowHeight = c, this._lastRenderedStyle = d, this._lastRenderedStyleBottomLeftGrid = h, this._lastRenderedStyleBottomRightGrid = f, this._lastRenderedStyleTopLeftGrid = u, this._lastRenderedStyleTopRightGrid = _, this._lastRenderedWidth = g;
|
|
1735
1642
|
} }, { key: "_prepareForRender", value: function() {
|
|
1736
1643
|
this._lastRenderedColumnWidth === this.props.columnWidth && this._lastRenderedFixedColumnCount === this.props.fixedColumnCount || (this._leftGridWidth = null), this._lastRenderedFixedRowCount === this.props.fixedRowCount && this._lastRenderedRowHeight === this.props.rowHeight || (this._topGridHeight = null), this._maybeCalculateCachedStyles(), this._lastRenderedColumnWidth = this.props.columnWidth, this._lastRenderedFixedColumnCount = this.props.fixedColumnCount, this._lastRenderedFixedRowCount = this.props.fixedRowCount, this._lastRenderedRowHeight = this.props.rowHeight;
|
|
1737
1644
|
} }, { key: "_renderBottomLeftGrid", value: function(e) {
|
|
1738
|
-
var t = e.enableFixedColumnScroll, n = e.fixedColumnCount, r = e.fixedRowCount,
|
|
1645
|
+
var t = e.enableFixedColumnScroll, n = e.fixedColumnCount, r = e.fixedRowCount, i = e.rowCount, l = e.hideBottomLeftGridScrollbar, a = this.state.showVerticalScrollbar;
|
|
1739
1646
|
if (!n) return null;
|
|
1740
|
-
var s = a ? 1 : 0, c = this._getBottomGridHeight(e), d = this._getLeftGridWidth(e), h = this.state.showVerticalScrollbar ? this.state.scrollbarSize : 0, f =
|
|
1741
|
-
return
|
|
1647
|
+
var s = a ? 1 : 0, c = this._getBottomGridHeight(e), d = this._getLeftGridWidth(e), h = this.state.showVerticalScrollbar ? this.state.scrollbarSize : 0, f = l ? d + h : d, u = C.createElement(V, U({}, e, { cellRenderer: this._cellRendererBottomLeftGrid, className: this.props.classNameBottomLeftGrid, columnCount: n, deferredMeasurementCache: this._deferredMeasurementCacheBottomLeftGrid, height: c, onScroll: t ? this._onScrollTop : void 0, ref: this._bottomLeftGridRef, rowCount: Math.max(0, i - r) + s, rowHeight: this._rowHeightBottomGrid, style: this._bottomLeftGridStyle, tabIndex: null, width: f }));
|
|
1648
|
+
return l ? C.createElement("div", { className: "BottomLeftGrid_ScrollWrapper", style: M(M({}, this._bottomLeftGridStyle), {}, { height: c, width: d, overflowY: "hidden" }) }, u) : u;
|
|
1742
1649
|
} }, { key: "_renderBottomRightGrid", value: function(e) {
|
|
1743
|
-
var t = e.columnCount, n = e.fixedColumnCount, r = e.fixedRowCount,
|
|
1744
|
-
return C.createElement(
|
|
1650
|
+
var t = e.columnCount, n = e.fixedColumnCount, r = e.fixedRowCount, i = e.rowCount, l = e.scrollToColumn, a = e.scrollToRow;
|
|
1651
|
+
return C.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) }));
|
|
1745
1652
|
} }, { key: "_renderTopLeftGrid", value: function(e) {
|
|
1746
1653
|
var t = e.fixedColumnCount, n = e.fixedRowCount;
|
|
1747
|
-
return t && n ? C.createElement(
|
|
1654
|
+
return t && n ? C.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;
|
|
1748
1655
|
} }, { key: "_renderTopRightGrid", value: function(e) {
|
|
1749
|
-
var t = e.columnCount, n = e.enableFixedRowScroll, r = e.fixedColumnCount,
|
|
1750
|
-
if (!
|
|
1751
|
-
var h = c ? 1 : 0, f = this._getTopGridHeight(e), u = this._getRightGridWidth(e),
|
|
1752
|
-
a && (
|
|
1753
|
-
var S = C.createElement(
|
|
1656
|
+
var t = e.columnCount, n = e.enableFixedRowScroll, r = e.fixedColumnCount, i = e.fixedRowCount, l = e.scrollLeft, a = e.hideTopRightGridScrollbar, s = this.state, c = s.showHorizontalScrollbar, d = s.scrollbarSize;
|
|
1657
|
+
if (!i) return null;
|
|
1658
|
+
var h = c ? 1 : 0, f = this._getTopGridHeight(e), u = this._getRightGridWidth(e), _ = c ? d : 0, g = f, m = this._topRightGridStyle;
|
|
1659
|
+
a && (g = f + _, m = M(M({}, this._topRightGridStyle), {}, { left: 0 }));
|
|
1660
|
+
var S = C.createElement(V, U({}, e, { cellRenderer: this._cellRendererTopRightGrid, className: this.props.classNameTopRightGrid, columnCount: Math.max(0, t - r) + h, columnWidth: this._columnWidthRightGrid, deferredMeasurementCache: this._deferredMeasurementCacheTopRightGrid, height: g, onScroll: n ? this._onScrollLeft : void 0, ref: this._topRightGridRef, rowCount: i, scrollLeft: l, style: m, tabIndex: null, width: u }));
|
|
1754
1661
|
return a ? C.createElement("div", { className: "TopRightGrid_ScrollWrapper", style: M(M({}, this._topRightGridStyle), {}, { height: f, width: u, overflowX: "hidden" }) }, S) : S;
|
|
1755
1662
|
} }], [{ key: "getDerivedStateFromProps", value: function(e, t) {
|
|
1756
1663
|
return e.scrollLeft !== t.scrollLeft || e.scrollTop !== t.scrollTop ? { scrollLeft: e.scrollLeft != null && e.scrollLeft >= 0 ? e.scrollLeft : t.scrollLeft, scrollTop: e.scrollTop != null && e.scrollTop >= 0 ? e.scrollTop : t.scrollTop } : null;
|
|
1757
1664
|
} }]);
|
|
1758
1665
|
}();
|
|
1759
|
-
function
|
|
1666
|
+
function Et() {
|
|
1760
1667
|
try {
|
|
1761
1668
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1762
1669
|
}));
|
|
1763
1670
|
} catch {
|
|
1764
1671
|
}
|
|
1765
|
-
return (
|
|
1672
|
+
return (Et = function() {
|
|
1766
1673
|
return !!o;
|
|
1767
1674
|
})();
|
|
1768
1675
|
}
|
|
1769
|
-
p(
|
|
1676
|
+
p(ye, "defaultProps", { classNameBottomLeftGrid: "", classNameBottomRightGrid: "", classNameTopLeftGrid: "", classNameTopRightGrid: "", enableFixedColumnScroll: !1, enableFixedRowScroll: !1, fixedColumnCount: 0, fixedRowCount: 0, scrollToColumn: -1, scrollToRow: -1, style: {}, styleBottomLeftGrid: {}, styleBottomRightGrid: {}, styleTopLeftGrid: {}, styleTopRightGrid: {}, hideTopRightGridScrollbar: !1, hideBottomLeftGridScrollbar: !1 }), ye.propTypes = {}, ae(ye), function() {
|
|
1770
1677
|
function o(e, t) {
|
|
1771
|
-
var n, r,
|
|
1772
|
-
return
|
|
1678
|
+
var n, r, i, l;
|
|
1679
|
+
return G(this, o), r = this, l = [e, t], i = I(i = o), (n = H(r, Et() ? 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;
|
|
1773
1680
|
}
|
|
1774
|
-
return
|
|
1775
|
-
var e = this.props.children, t = this.state, n = t.clientHeight, r = t.clientWidth,
|
|
1776
|
-
return e({ clientHeight: n, clientWidth: r, onScroll: this._onScroll, scrollHeight:
|
|
1681
|
+
return W(o, C.PureComponent), A(o, [{ key: "render", value: function() {
|
|
1682
|
+
var e = this.props.children, t = this.state, n = t.clientHeight, r = t.clientWidth, i = t.scrollHeight, l = t.scrollLeft, a = t.scrollTop, s = t.scrollWidth;
|
|
1683
|
+
return e({ clientHeight: n, clientWidth: r, onScroll: this._onScroll, scrollHeight: i, scrollLeft: l, scrollTop: a, scrollWidth: s });
|
|
1777
1684
|
} }, { key: "_onScroll", value: function(e) {
|
|
1778
|
-
var t = e.clientHeight, n = e.clientWidth, r = e.scrollHeight,
|
|
1779
|
-
this.setState({ clientHeight: t, clientWidth: n, scrollHeight: r, scrollLeft:
|
|
1685
|
+
var t = e.clientHeight, n = e.clientWidth, r = e.scrollHeight, i = e.scrollLeft, l = e.scrollTop, a = e.scrollWidth;
|
|
1686
|
+
this.setState({ clientHeight: t, clientWidth: n, scrollHeight: r, scrollLeft: i, scrollTop: l, scrollWidth: a });
|
|
1780
1687
|
} }]);
|
|
1781
1688
|
}().propTypes = {};
|
|
1782
|
-
var
|
|
1783
|
-
function
|
|
1784
|
-
var e = o.sortDirection, t = N("ReactVirtualized__Table__sortableHeaderIcon", { "ReactVirtualized__Table__sortableHeaderIcon--ASC": e ===
|
|
1785
|
-
return C.createElement("svg", { className: t, width: 18, height: 18, viewBox: "0 0 24 24" }, e ===
|
|
1689
|
+
var se = "ASC", be = "DESC";
|
|
1690
|
+
function Ht(o) {
|
|
1691
|
+
var e = o.sortDirection, t = N("ReactVirtualized__Table__sortableHeaderIcon", { "ReactVirtualized__Table__sortableHeaderIcon--ASC": e === se, "ReactVirtualized__Table__sortableHeaderIcon--DESC": e === be });
|
|
1692
|
+
return C.createElement("svg", { className: t, width: 18, height: 18, viewBox: "0 0 24 24" }, e === se ? C.createElement("path", { d: "M7 14l5-5 5 5z" }) : C.createElement("path", { d: "M7 10l5 5 5-5z" }), C.createElement("path", { d: "M0 0h24v24H0z", fill: "none" }));
|
|
1786
1693
|
}
|
|
1787
|
-
function
|
|
1694
|
+
function Wt() {
|
|
1788
1695
|
try {
|
|
1789
1696
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1790
1697
|
}));
|
|
1791
1698
|
} catch {
|
|
1792
1699
|
}
|
|
1793
|
-
return (
|
|
1700
|
+
return (Wt = function() {
|
|
1794
1701
|
return !!o;
|
|
1795
1702
|
})();
|
|
1796
1703
|
}
|
|
1797
|
-
|
|
1798
|
-
var
|
|
1704
|
+
Ht.propTypes = {};
|
|
1705
|
+
var pe = function() {
|
|
1799
1706
|
function o() {
|
|
1800
|
-
return
|
|
1707
|
+
return G(this, o), e = this, n = arguments, t = I(t = o), H(e, Wt() ? Reflect.construct(t, n || [], I(e).constructor) : t.apply(e, n));
|
|
1801
1708
|
var e, t, n;
|
|
1802
1709
|
}
|
|
1803
|
-
return
|
|
1710
|
+
return W(o, C.Component), A(o);
|
|
1804
1711
|
}();
|
|
1805
|
-
function
|
|
1712
|
+
function it(o, e) {
|
|
1806
1713
|
var t = Object.keys(o);
|
|
1807
1714
|
if (Object.getOwnPropertySymbols) {
|
|
1808
1715
|
var n = Object.getOwnPropertySymbols(o);
|
|
@@ -1812,43 +1719,43 @@ function ut(o, e) {
|
|
|
1812
1719
|
}
|
|
1813
1720
|
return t;
|
|
1814
1721
|
}
|
|
1815
|
-
function
|
|
1722
|
+
function B(o) {
|
|
1816
1723
|
for (var e = 1; e < arguments.length; e++) {
|
|
1817
1724
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
1818
|
-
e % 2 ?
|
|
1725
|
+
e % 2 ? it(Object(t), !0).forEach(function(n) {
|
|
1819
1726
|
p(o, n, t[n]);
|
|
1820
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) :
|
|
1727
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : it(Object(t)).forEach(function(n) {
|
|
1821
1728
|
Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
|
|
1822
1729
|
});
|
|
1823
1730
|
}
|
|
1824
1731
|
return o;
|
|
1825
1732
|
}
|
|
1826
|
-
function
|
|
1733
|
+
function Dt() {
|
|
1827
1734
|
try {
|
|
1828
1735
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1829
1736
|
}));
|
|
1830
1737
|
} catch {
|
|
1831
1738
|
}
|
|
1832
|
-
return (
|
|
1739
|
+
return (Dt = function() {
|
|
1833
1740
|
return !!o;
|
|
1834
1741
|
})();
|
|
1835
1742
|
}
|
|
1836
|
-
p(
|
|
1743
|
+
p(pe, "defaultProps", { cellDataGetter: function(o) {
|
|
1837
1744
|
var e = o.dataKey, t = o.rowData;
|
|
1838
1745
|
return typeof t.get == "function" ? t.get(e) : t[e];
|
|
1839
1746
|
}, cellRenderer: function(o) {
|
|
1840
1747
|
var e = o.cellData;
|
|
1841
1748
|
return e == null ? "" : String(e);
|
|
1842
|
-
}, defaultSortDirection:
|
|
1843
|
-
var e = o.dataKey, t = o.label, n = o.sortBy, r = o.sortDirection,
|
|
1844
|
-
return
|
|
1845
|
-
}, style: {} }),
|
|
1846
|
-
var
|
|
1749
|
+
}, defaultSortDirection: se, flexGrow: 0, flexShrink: 1, headerRenderer: function(o) {
|
|
1750
|
+
var e = o.dataKey, t = o.label, n = o.sortBy, r = o.sortDirection, i = n === e, l = [C.createElement("span", { className: "ReactVirtualized__Table__headerTruncatedText", key: "label", title: typeof t == "string" ? t : null }, t)];
|
|
1751
|
+
return i && l.push(C.createElement(Ht, { key: "SortIndicator", sortDirection: r })), l;
|
|
1752
|
+
}, style: {} }), pe.propTypes = {};
|
|
1753
|
+
var ze = function() {
|
|
1847
1754
|
function o(e) {
|
|
1848
|
-
var t, n, r,
|
|
1849
|
-
return
|
|
1755
|
+
var t, n, r, i;
|
|
1756
|
+
return G(this, o), n = this, i = [e], r = I(r = o), (t = H(n, Dt() ? 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;
|
|
1850
1757
|
}
|
|
1851
|
-
return
|
|
1758
|
+
return W(o, C.PureComponent), A(o, [{ key: "forceUpdateGrid", value: function() {
|
|
1852
1759
|
this.Grid && this.Grid.forceUpdate();
|
|
1853
1760
|
} }, { key: "getOffsetForRow", value: function(e) {
|
|
1854
1761
|
var t = e.alignment, n = e.index;
|
|
@@ -1859,8 +1766,8 @@ var ke = function() {
|
|
|
1859
1766
|
} }, { key: "measureAllRows", value: function() {
|
|
1860
1767
|
this.Grid && this.Grid.measureAllCells();
|
|
1861
1768
|
} }, { key: "recomputeGridSize", value: function() {
|
|
1862
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.columnIndex, n = t === void 0 ? 0 : t, r = e.rowIndex,
|
|
1863
|
-
this.Grid && this.Grid.recomputeGridSize({ rowIndex:
|
|
1769
|
+
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;
|
|
1770
|
+
this.Grid && this.Grid.recomputeGridSize({ rowIndex: i, columnIndex: n });
|
|
1864
1771
|
} }, { key: "recomputeRowHeights", value: function() {
|
|
1865
1772
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
|
|
1866
1773
|
this.Grid && this.Grid.recomputeGridSize({ rowIndex: e });
|
|
@@ -1881,39 +1788,39 @@ var ke = function() {
|
|
|
1881
1788
|
} }, { key: "componentDidUpdate", value: function() {
|
|
1882
1789
|
this._setScrollbarWidth();
|
|
1883
1790
|
} }, { key: "render", value: function() {
|
|
1884
|
-
var e = this, t = this.props, n = t.children, r = t.className,
|
|
1885
|
-
return this._cachedColumnStyles = [], C.Children.toArray(n).forEach(function(
|
|
1886
|
-
var
|
|
1887
|
-
e._cachedColumnStyles[
|
|
1888
|
-
}), C.createElement("div", { "aria-label": this.props["aria-label"], "aria-labelledby": this.props["aria-labelledby"], "aria-colcount": C.Children.toArray(n).length, "aria-rowcount": this.props.rowCount, className: N("ReactVirtualized__Table", r), id: h, role: "grid", style:
|
|
1791
|
+
var e = this, t = this.props, n = t.children, r = t.className, i = t.disableHeader, l = t.gridClassName, a = t.gridStyle, s = t.headerHeight, c = t.headerRowRenderer, d = t.height, h = t.id, f = t.noRowsRenderer, u = t.rowClassName, _ = t.rowStyle, g = t.scrollToIndex, m = t.style, S = t.width, y = this.state.scrollbarWidth, v = i ? d : d - s, w = typeof u == "function" ? u({ index: -1 }) : u, x = typeof _ == "function" ? _({ index: -1 }) : _;
|
|
1792
|
+
return this._cachedColumnStyles = [], C.Children.toArray(n).forEach(function(R, b) {
|
|
1793
|
+
var z = e._getFlexStyleForColumn(R, R.props.style || pe.defaultProps.style);
|
|
1794
|
+
e._cachedColumnStyles[b] = B({ overflow: "hidden" }, z);
|
|
1795
|
+
}), C.createElement("div", { "aria-label": this.props["aria-label"], "aria-labelledby": this.props["aria-labelledby"], "aria-colcount": C.Children.toArray(n).length, "aria-rowcount": this.props.rowCount, className: N("ReactVirtualized__Table", r), id: h, role: "grid", style: m }, !i && c({ className: N("ReactVirtualized__Table__headerRow", w), columns: this._getHeaderColumns(), style: B({ height: s, overflow: "hidden", paddingRight: y, width: S }, x) }), C.createElement(V, U({}, this.props, { elementRef: this._setGridElementRef, "aria-readonly": null, autoContainerWidth: !0, className: N("ReactVirtualized__Table__Grid", l), cellRenderer: this._createRow, columnWidth: S, columnCount: 1, height: v, id: void 0, noContentRenderer: f, onScroll: this._onScroll, onSectionRendered: this._onSectionRendered, ref: this._setRef, role: "rowgroup", scrollbarWidth: y, scrollToRow: g, style: B(B({}, a), {}, { overflowX: "hidden" }) })));
|
|
1889
1796
|
} }, { key: "_createColumn", value: function(e) {
|
|
1890
|
-
var t = e.column, n = e.columnIndex, r = e.isScrolling,
|
|
1891
|
-
return C.createElement("div", { "aria-colindex": n + 1, "aria-describedby":
|
|
1892
|
-
s && s({ columnData: u, dataKey:
|
|
1893
|
-
}, role: "gridcell", style: S, title: y },
|
|
1797
|
+
var t = e.column, n = e.columnIndex, r = e.isScrolling, i = e.parent, l = e.rowData, a = e.rowIndex, s = this.props.onColumnClick, c = t.props, d = c.cellDataGetter, h = c.cellRenderer, f = c.className, u = c.columnData, _ = c.dataKey, g = c.id, m = h({ cellData: d({ columnData: u, dataKey: _, rowData: l }), columnData: u, columnIndex: n, dataKey: _, isScrolling: r, parent: i, rowData: l, rowIndex: a }), S = this._cachedColumnStyles[n], y = typeof m == "string" ? m : null;
|
|
1798
|
+
return C.createElement("div", { "aria-colindex": n + 1, "aria-describedby": g, className: N("ReactVirtualized__Table__rowColumn", f), key: "Row" + a + "-Col" + n, onClick: function(v) {
|
|
1799
|
+
s && s({ columnData: u, dataKey: _, event: v });
|
|
1800
|
+
}, role: "gridcell", style: S, title: y }, m);
|
|
1894
1801
|
} }, { key: "_createHeader", value: function(e) {
|
|
1895
|
-
var t, n, r,
|
|
1896
|
-
if (
|
|
1897
|
-
var
|
|
1898
|
-
|
|
1802
|
+
var t, n, r, i, l, a = e.column, s = e.index, c = this.props, d = c.headerClassName, h = c.headerStyle, f = c.onHeaderClick, u = c.sort, _ = c.sortBy, g = c.sortDirection, m = a.props, S = m.columnData, y = m.dataKey, v = m.defaultSortDirection, w = m.disableSort, x = m.headerRenderer, R = m.id, b = m.label, z = !w && u, T = N("ReactVirtualized__Table__headerColumn", d, a.props.headerClassName, { ReactVirtualized__Table__sortableHeaderColumn: z }), k = this._getFlexStyleForColumn(a, B(B({}, h), a.props.headerStyle)), O = x({ columnData: S, dataKey: y, disableSort: w, label: b, sortBy: _, sortDirection: g });
|
|
1803
|
+
if (z || f) {
|
|
1804
|
+
var P = _ !== y ? v : g === be ? se : be, E = function(j) {
|
|
1805
|
+
z && u({ defaultSortDirection: v, event: j, sortBy: y, sortDirection: P }), f && f({ columnData: S, dataKey: y, event: j });
|
|
1899
1806
|
};
|
|
1900
|
-
|
|
1901
|
-
|
|
1807
|
+
l = a.props["aria-label"] || b || y, i = "none", r = 0, t = E, n = function(j) {
|
|
1808
|
+
j.key !== "Enter" && j.key !== " " || E(j);
|
|
1902
1809
|
};
|
|
1903
1810
|
}
|
|
1904
|
-
return
|
|
1811
|
+
return _ === y && (i = g === se ? "ascending" : "descending"), C.createElement("div", { "aria-label": l, "aria-sort": i, className: T, id: R, key: "Header-Col" + s, onClick: t, onKeyDown: n, role: "columnheader", style: k, tabIndex: r }, O);
|
|
1905
1812
|
} }, { key: "_createRow", value: function(e) {
|
|
1906
|
-
var t = this, n = e.rowIndex, r = e.isScrolling,
|
|
1907
|
-
return t._createColumn({ column: k, columnIndex:
|
|
1908
|
-
}),
|
|
1909
|
-
return S({ className:
|
|
1813
|
+
var t = this, n = e.rowIndex, r = e.isScrolling, i = e.key, l = e.parent, a = e.style, s = this.props, c = s.children, d = s.onRowClick, h = s.onRowDoubleClick, f = s.onRowRightClick, u = s.onRowMouseOver, _ = s.onRowMouseOut, g = s.rowClassName, m = s.rowGetter, S = s.rowRenderer, y = s.rowStyle, v = this.state.scrollbarWidth, w = typeof g == "function" ? g({ index: n }) : g, x = typeof y == "function" ? y({ index: n }) : y, R = m({ index: n }), b = C.Children.toArray(c).map(function(k, O) {
|
|
1814
|
+
return t._createColumn({ column: k, columnIndex: O, isScrolling: r, parent: l, rowData: R, rowIndex: n, scrollbarWidth: v });
|
|
1815
|
+
}), z = N("ReactVirtualized__Table__row", w), T = B(B({}, a), {}, { height: this._getRowHeight(n), overflow: "hidden", paddingRight: v }, x);
|
|
1816
|
+
return S({ className: z, columns: b, index: n, isScrolling: r, key: i, onRowClick: d, onRowDoubleClick: h, onRowRightClick: f, onRowMouseOver: u, onRowMouseOut: _, rowData: R, style: T });
|
|
1910
1817
|
} }, { key: "_getFlexStyleForColumn", value: function(e) {
|
|
1911
|
-
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 =
|
|
1818
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = "".concat(e.props.flexGrow, " ").concat(e.props.flexShrink, " ").concat(e.props.width, "px"), r = B(B({}, t), {}, { flex: n, msFlex: n, WebkitFlex: n });
|
|
1912
1819
|
return e.props.maxWidth && (r.maxWidth = e.props.maxWidth), e.props.minWidth && (r.minWidth = e.props.minWidth), r;
|
|
1913
1820
|
} }, { key: "_getHeaderColumns", value: function() {
|
|
1914
1821
|
var e = this, t = this.props, n = t.children;
|
|
1915
|
-
return (t.disableHeader ? [] : C.Children.toArray(n)).map(function(r,
|
|
1916
|
-
return e._createHeader({ column: r, index:
|
|
1822
|
+
return (t.disableHeader ? [] : C.Children.toArray(n)).map(function(r, i) {
|
|
1823
|
+
return e._createHeader({ column: r, index: i });
|
|
1917
1824
|
});
|
|
1918
1825
|
} }, { key: "_getRowHeight", value: function(e) {
|
|
1919
1826
|
var t = this.props.rowHeight;
|
|
@@ -1922,8 +1829,8 @@ var ke = function() {
|
|
|
1922
1829
|
var t = e.clientHeight, n = e.scrollHeight, r = e.scrollTop;
|
|
1923
1830
|
(0, this.props.onScroll)({ clientHeight: t, scrollHeight: n, scrollTop: r });
|
|
1924
1831
|
} }, { key: "_onSectionRendered", value: function(e) {
|
|
1925
|
-
var t = e.rowOverscanStartIndex, n = e.rowOverscanStopIndex, r = e.rowStartIndex,
|
|
1926
|
-
(0, this.props.onRowsRendered)({ overscanStartIndex: t, overscanStopIndex: n, startIndex: r, stopIndex:
|
|
1832
|
+
var t = e.rowOverscanStartIndex, n = e.rowOverscanStopIndex, r = e.rowStartIndex, i = e.rowStopIndex;
|
|
1833
|
+
(0, this.props.onRowsRendered)({ overscanStartIndex: t, overscanStopIndex: n, startIndex: r, stopIndex: i });
|
|
1927
1834
|
} }, { key: "_setRef", value: function(e) {
|
|
1928
1835
|
this.Grid = e;
|
|
1929
1836
|
} }, { key: "_setGridElementRef", value: function(e) {
|
|
@@ -1933,78 +1840,78 @@ var ke = function() {
|
|
|
1933
1840
|
this.setState({ scrollbarWidth: e });
|
|
1934
1841
|
} }]);
|
|
1935
1842
|
}();
|
|
1936
|
-
p(
|
|
1843
|
+
p(ze, "defaultProps", { disableHeader: !1, estimatedRowSize: 30, headerHeight: 0, headerStyle: {}, noRowsRenderer: function() {
|
|
1937
1844
|
return null;
|
|
1938
1845
|
}, onRowsRendered: function() {
|
|
1939
1846
|
return null;
|
|
1940
1847
|
}, onScroll: function() {
|
|
1941
1848
|
return null;
|
|
1942
|
-
}, overscanIndicesGetter:
|
|
1943
|
-
var e = o.className, t = o.columns, n = o.index, r = o.key,
|
|
1944
|
-
return (
|
|
1945
|
-
return l({ event: u, index: n, rowData: d });
|
|
1946
|
-
}), i && (f.onDoubleClick = function(u) {
|
|
1849
|
+
}, overscanIndicesGetter: It, overscanRowCount: 10, rowRenderer: function(o) {
|
|
1850
|
+
var e = o.className, t = o.columns, n = o.index, r = o.key, i = o.onRowClick, l = o.onRowDoubleClick, a = o.onRowMouseOut, s = o.onRowMouseOver, c = o.onRowRightClick, d = o.rowData, h = o.style, f = { "aria-rowindex": n + 1 };
|
|
1851
|
+
return (i || l || a || s || c) && (f["aria-label"] = "row", f.tabIndex = 0, i && (f.onClick = function(u) {
|
|
1947
1852
|
return i({ event: u, index: n, rowData: d });
|
|
1853
|
+
}), l && (f.onDoubleClick = function(u) {
|
|
1854
|
+
return l({ event: u, index: n, rowData: d });
|
|
1948
1855
|
}), a && (f.onMouseOut = function(u) {
|
|
1949
1856
|
return a({ event: u, index: n, rowData: d });
|
|
1950
1857
|
}), s && (f.onMouseOver = function(u) {
|
|
1951
1858
|
return s({ event: u, index: n, rowData: d });
|
|
1952
1859
|
}), c && (f.onContextMenu = function(u) {
|
|
1953
1860
|
return c({ event: u, index: n, rowData: d });
|
|
1954
|
-
})), C.createElement("div",
|
|
1861
|
+
})), C.createElement("div", U({}, f, { className: e, key: r, role: "row", style: h }), t);
|
|
1955
1862
|
}, headerRowRenderer: function(o) {
|
|
1956
1863
|
var e = o.className, t = o.columns, n = o.style;
|
|
1957
1864
|
return C.createElement("div", { className: e, role: "row", style: n }, t);
|
|
1958
|
-
}, rowStyle: {}, scrollToAlignment: "auto", scrollToIndex: -1, style: {} }),
|
|
1959
|
-
var
|
|
1960
|
-
function
|
|
1961
|
-
|
|
1865
|
+
}, rowStyle: {}, scrollToAlignment: "auto", scrollToIndex: -1, style: {} }), ze.propTypes = {};
|
|
1866
|
+
var K = [], ie = null, $ = null;
|
|
1867
|
+
function jt() {
|
|
1868
|
+
$ && ($ = null, document.body && ie != null && (document.body.style.pointerEvents = ie), ie = null);
|
|
1962
1869
|
}
|
|
1963
|
-
function
|
|
1964
|
-
|
|
1870
|
+
function Ao() {
|
|
1871
|
+
jt(), K.forEach(function(o) {
|
|
1965
1872
|
return o.__resetIsScrolling();
|
|
1966
1873
|
});
|
|
1967
1874
|
}
|
|
1968
|
-
function
|
|
1969
|
-
o.currentTarget === window &&
|
|
1970
|
-
|
|
1875
|
+
function Ft(o) {
|
|
1876
|
+
o.currentTarget === window && ie == null && document.body && (ie = document.body.style.pointerEvents, document.body.style.pointerEvents = "none"), function() {
|
|
1877
|
+
$ && Q($);
|
|
1971
1878
|
var e = 0;
|
|
1972
|
-
|
|
1879
|
+
K.forEach(function(t) {
|
|
1973
1880
|
e = Math.max(e, t.props.scrollingResetTimeInterval);
|
|
1974
|
-
}),
|
|
1975
|
-
}(),
|
|
1881
|
+
}), $ = Pe(Ao, e);
|
|
1882
|
+
}(), K.forEach(function(e) {
|
|
1976
1883
|
e.props.scrollElement === o.currentTarget && e.__handleWindowScrollEvent();
|
|
1977
1884
|
});
|
|
1978
1885
|
}
|
|
1979
|
-
function
|
|
1980
|
-
|
|
1886
|
+
function lt(o, e) {
|
|
1887
|
+
K.some(function(t) {
|
|
1981
1888
|
return t.props.scrollElement === e;
|
|
1982
|
-
}) || e.addEventListener("scroll",
|
|
1889
|
+
}) || e.addEventListener("scroll", Ft), K.push(o);
|
|
1983
1890
|
}
|
|
1984
|
-
function
|
|
1985
|
-
(
|
|
1891
|
+
function st(o, e) {
|
|
1892
|
+
(K = K.filter(function(t) {
|
|
1986
1893
|
return t !== o;
|
|
1987
|
-
})).length || (e.removeEventListener("scroll",
|
|
1894
|
+
})).length || (e.removeEventListener("scroll", Ft), $ && (Q($), jt()));
|
|
1988
1895
|
}
|
|
1989
|
-
var
|
|
1896
|
+
var Oe = function(o) {
|
|
1990
1897
|
return o === window;
|
|
1991
|
-
},
|
|
1898
|
+
}, ne = function(o) {
|
|
1992
1899
|
return o.getBoundingClientRect();
|
|
1993
1900
|
};
|
|
1994
|
-
function
|
|
1901
|
+
function at(o, e) {
|
|
1995
1902
|
if (o) {
|
|
1996
|
-
if (
|
|
1903
|
+
if (Oe(o)) {
|
|
1997
1904
|
var t = window, n = t.innerHeight, r = t.innerWidth;
|
|
1998
1905
|
return { height: typeof n == "number" ? n : 0, width: typeof r == "number" ? r : 0 };
|
|
1999
1906
|
}
|
|
2000
|
-
return
|
|
1907
|
+
return ne(o);
|
|
2001
1908
|
}
|
|
2002
1909
|
return { height: e.serverHeight, width: e.serverWidth };
|
|
2003
1910
|
}
|
|
2004
|
-
function
|
|
2005
|
-
return
|
|
1911
|
+
function ct(o) {
|
|
1912
|
+
return Oe(o) && document.documentElement ? { top: "scrollY" in window ? window.scrollY : document.documentElement.scrollTop, left: "scrollX" in window ? window.scrollX : document.documentElement.scrollLeft } : { top: o.scrollTop, left: o.scrollLeft };
|
|
2006
1913
|
}
|
|
2007
|
-
function
|
|
1914
|
+
function dt(o, e) {
|
|
2008
1915
|
var t = Object.keys(o);
|
|
2009
1916
|
if (Object.getOwnPropertySymbols) {
|
|
2010
1917
|
var n = Object.getOwnPropertySymbols(o);
|
|
@@ -2014,35 +1921,35 @@ function gt(o, e) {
|
|
|
2014
1921
|
}
|
|
2015
1922
|
return t;
|
|
2016
1923
|
}
|
|
2017
|
-
function
|
|
1924
|
+
function ut(o) {
|
|
2018
1925
|
for (var e = 1; e < arguments.length; e++) {
|
|
2019
1926
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
2020
|
-
e % 2 ?
|
|
1927
|
+
e % 2 ? dt(Object(t), !0).forEach(function(n) {
|
|
2021
1928
|
p(o, n, t[n]);
|
|
2022
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) :
|
|
1929
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : dt(Object(t)).forEach(function(n) {
|
|
2023
1930
|
Object.defineProperty(o, n, Object.getOwnPropertyDescriptor(t, n));
|
|
2024
1931
|
});
|
|
2025
1932
|
}
|
|
2026
1933
|
return o;
|
|
2027
1934
|
}
|
|
2028
|
-
function
|
|
1935
|
+
function Nt() {
|
|
2029
1936
|
try {
|
|
2030
1937
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
2031
1938
|
}));
|
|
2032
1939
|
} catch {
|
|
2033
1940
|
}
|
|
2034
|
-
return (
|
|
1941
|
+
return (Nt = function() {
|
|
2035
1942
|
return !!o;
|
|
2036
1943
|
})();
|
|
2037
1944
|
}
|
|
2038
|
-
var
|
|
1945
|
+
var Bt = function() {
|
|
2039
1946
|
return typeof window < "u" ? window : void 0;
|
|
2040
|
-
},
|
|
1947
|
+
}, Eo = function() {
|
|
2041
1948
|
function o() {
|
|
2042
1949
|
var e, t, n, r;
|
|
2043
|
-
|
|
2044
|
-
for (var
|
|
2045
|
-
return t = this, n = o, r = [].concat(
|
|
1950
|
+
G(this, o);
|
|
1951
|
+
for (var i = arguments.length, l = new Array(i), a = 0; a < i; a++) l[a] = arguments[a];
|
|
1952
|
+
return t = this, n = o, r = [].concat(l), n = I(n), p(e = H(t, Nt() ? Reflect.construct(n, r || [], I(t).constructor) : n.apply(t, r)), "_window", Bt()), p(e, "_isMounted", !1), p(e, "_positionFromTop", 0), p(e, "_positionFromLeft", 0), p(e, "_detectElementResize", void 0), p(e, "_child", void 0), p(e, "_windowScrollerRef", C.createRef()), p(e, "state", ut(ut({}, at(e.props.scrollElement, e.props)), {}, { isScrolling: !1, scrollLeft: 0, scrollTop: 0 })), p(e, "_registerChild", function(s) {
|
|
2046
1953
|
!s || s instanceof Element || console.warn("WindowScroller registerChild expects to be passed Element or null"), e._child = s, e.updatePosition();
|
|
2047
1954
|
}), p(e, "_onChildScroll", function(s) {
|
|
2048
1955
|
var c = s.scrollTop;
|
|
@@ -2060,7 +1967,7 @@ var Xt = function() {
|
|
|
2060
1967
|
if (e._isMounted) {
|
|
2061
1968
|
var s = e.props.onScroll, c = e.props.scrollElement;
|
|
2062
1969
|
if (c) {
|
|
2063
|
-
var d =
|
|
1970
|
+
var d = ct(c), h = Math.max(0, d.left - e._positionFromLeft), f = Math.max(0, d.top - e._positionFromTop);
|
|
2064
1971
|
e.setState({ isScrolling: !0, scrollLeft: h, scrollTop: f }), s({ scrollLeft: h, scrollTop: f });
|
|
2065
1972
|
}
|
|
2066
1973
|
}
|
|
@@ -2068,51 +1975,51 @@ var Xt = function() {
|
|
|
2068
1975
|
e.setState({ isScrolling: !1 });
|
|
2069
1976
|
}), e;
|
|
2070
1977
|
}
|
|
2071
|
-
return
|
|
2072
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.props.scrollElement, t = this.props.onResize, n = this.state, r = n.height,
|
|
2073
|
-
if (
|
|
1978
|
+
return W(o, C.PureComponent), A(o, [{ key: "updatePosition", value: function() {
|
|
1979
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.props.scrollElement, t = this.props.onResize, n = this.state, r = n.height, i = n.width, l = this._child || this._windowScrollerRef.current;
|
|
1980
|
+
if (l instanceof Element && e) {
|
|
2074
1981
|
var a = function(c, d) {
|
|
2075
|
-
if (
|
|
2076
|
-
var h = document.documentElement, f =
|
|
1982
|
+
if (Oe(d) && document.documentElement) {
|
|
1983
|
+
var h = document.documentElement, f = ne(c), u = ne(h);
|
|
2077
1984
|
return { top: f.top - u.top, left: f.left - u.left };
|
|
2078
1985
|
}
|
|
2079
|
-
var
|
|
2080
|
-
return { top:
|
|
2081
|
-
}(
|
|
1986
|
+
var _ = ct(d), g = ne(c), m = ne(d);
|
|
1987
|
+
return { top: g.top + _.top - m.top, left: g.left + _.left - m.left };
|
|
1988
|
+
}(l, e);
|
|
2082
1989
|
this._positionFromTop = a.top, this._positionFromLeft = a.left;
|
|
2083
1990
|
}
|
|
2084
|
-
var s =
|
|
2085
|
-
r === s.height &&
|
|
1991
|
+
var s = at(e, this.props);
|
|
1992
|
+
r === s.height && i === s.width || (this.setState({ height: s.height, width: s.width }), t({ height: s.height, width: s.width })), this.props.updateScrollTopOnUpdatePosition === !0 && (this.__handleWindowScrollEvent(), this.__resetIsScrolling());
|
|
2086
1993
|
} }, { key: "componentDidMount", value: function() {
|
|
2087
1994
|
var e = this.props.scrollElement;
|
|
2088
|
-
this._detectElementResize =
|
|
1995
|
+
this._detectElementResize = yt(), this.updatePosition(e), e && (lt(this, e), this._registerResizeListener(e)), this._isMounted = !0;
|
|
2089
1996
|
} }, { key: "componentDidUpdate", value: function(e, t) {
|
|
2090
1997
|
var n = this.props.scrollElement, r = e.scrollElement;
|
|
2091
|
-
r !== n && r != null && n != null && (this.updatePosition(n),
|
|
1998
|
+
r !== n && r != null && n != null && (this.updatePosition(n), st(this, r), lt(this, n), this._unregisterResizeListener(r), this._registerResizeListener(n));
|
|
2092
1999
|
} }, { key: "componentWillUnmount", value: function() {
|
|
2093
2000
|
var e = this.props.scrollElement;
|
|
2094
|
-
e && (
|
|
2001
|
+
e && (st(this, e), this._unregisterResizeListener(e)), this._isMounted = !1;
|
|
2095
2002
|
} }, { key: "render", value: function() {
|
|
2096
|
-
var e = this.props.children, t = this.state, n = t.isScrolling, r = t.scrollTop,
|
|
2097
|
-
return C.createElement("div", { ref: this._windowScrollerRef }, e({ onChildScroll: this._onChildScroll, registerChild: this._registerChild, height:
|
|
2003
|
+
var e = this.props.children, t = this.state, n = t.isScrolling, r = t.scrollTop, i = t.scrollLeft, l = t.height, a = t.width;
|
|
2004
|
+
return C.createElement("div", { ref: this._windowScrollerRef }, e({ onChildScroll: this._onChildScroll, registerChild: this._registerChild, height: l, isScrolling: n, scrollLeft: i, scrollTop: r, width: a }));
|
|
2098
2005
|
} }]);
|
|
2099
2006
|
}();
|
|
2100
|
-
p(
|
|
2007
|
+
p(Eo, "defaultProps", { onResize: function() {
|
|
2101
2008
|
}, onScroll: function() {
|
|
2102
|
-
}, scrollingResetTimeInterval: 150, scrollElement:
|
|
2103
|
-
const
|
|
2104
|
-
class
|
|
2009
|
+
}, scrollingResetTimeInterval: 150, scrollElement: Bt(), serverHeight: 0, serverWidth: 0 });
|
|
2010
|
+
const re = "ReactVirtualizedDemo-flexContainer", Ut = "ReactVirtualizedDemo-tableRow", Vt = "ReactVirtualizedDemo-tableRowHover", Te = "ReactVirtualizedDemo-tableCell", Ie = "ReactVirtualizedDemo-noClick";
|
|
2011
|
+
class Ho extends pt.PureComponent {
|
|
2105
2012
|
constructor() {
|
|
2106
2013
|
super(...arguments), this.getRowClassName = ({ index: e }) => {
|
|
2107
2014
|
const { onRowClick: t } = this.props;
|
|
2108
|
-
return
|
|
2015
|
+
return me(Ut, re, { [Vt]: e !== -1 && t != null });
|
|
2109
2016
|
}, this.cellRenderer = ({ cellData: e, dataKey: t, columnIndex: n, width: r }) => {
|
|
2110
|
-
const { columns:
|
|
2111
|
-
let s = e, c = { height:
|
|
2112
|
-
return t === "shortcut" ? s =
|
|
2017
|
+
const { columns: i, rowHeight: l, onRowClick: a } = this.props;
|
|
2018
|
+
let s = e, c = { height: l, paddingRight: "2px", paddingTop: "0px", paddingBottom: "0px", minWidth: `${r}px`, maxWidth: `${r}px` };
|
|
2019
|
+
return t === "shortcut" ? s = uo(e) : t === "description" && (c = { ...c, fontSize: ".75rem", display: "block", paddingTop: "4px", whiteSpace: "pre-line" }), L.jsx(Me, { component: "div", className: me(Te, re, { [Ie]: a == null }), variant: "body", style: c, align: n != null && i[n].numeric ? "right" : "left", children: s });
|
|
2113
2020
|
}, this.headerRenderer = ({ label: e, columnIndex: t, width: n }) => {
|
|
2114
|
-
const { headerHeight: r, columns:
|
|
2115
|
-
return
|
|
2021
|
+
const { headerHeight: r, columns: i } = this.props, l = i[t];
|
|
2022
|
+
return L.jsx(Me, { component: "div", className: me(Te, re, Ie), variant: "head", sx: { width: n, height: r, backgroundColor: (a) => a.palette.grey[300] }, align: l.numeric ? "right" : "left", children: L.jsx("span", { children: l.label }) });
|
|
2116
2023
|
};
|
|
2117
2024
|
}
|
|
2118
2025
|
static {
|
|
@@ -2120,55 +2027,55 @@ class en extends St.PureComponent {
|
|
|
2120
2027
|
}
|
|
2121
2028
|
render() {
|
|
2122
2029
|
const { columns: e, rowHeight: t, headerHeight: n, ...r } = this.props;
|
|
2123
|
-
return
|
|
2124
|
-
const f = c ?
|
|
2125
|
-
return
|
|
2030
|
+
return L.jsx(Ct, { children: ({ height: i, width: l }) => L.jsx(ze, { height: i, width: l, rowHeight: t, gridStyle: { direction: "inherit" }, headerHeight: n, ...r, rowClassName: this.getRowClassName, children: e.map(({ dataKey: a, width: s, widthLess: c, ...d }, h) => {
|
|
2031
|
+
const f = c ? l - c : s;
|
|
2032
|
+
return L.jsx(pe, { style: { flex: `1 1 ${f}px` }, headerRenderer: (u) => this.headerRenderer({ ...u, width: f, columnIndex: h }), className: re, cellDataGetter: ({ rowData: u, columnData: _, dataKey: g }) => u[g], cellRenderer: (u) => this.cellRenderer({ ...u, width: f, columnIndex: h }), dataKey: a, width: f, ...d }, a);
|
|
2126
2033
|
}) }) });
|
|
2127
2034
|
}
|
|
2128
2035
|
}
|
|
2129
|
-
const
|
|
2130
|
-
function
|
|
2131
|
-
const { commands: e, ...t } = o, [n, r] = C.useState(!1), [
|
|
2036
|
+
const Wo = ht(Ho)(({ theme: o }) => ({ "& .ReactVirtualized__Table__headerRow": { ...o.direction === "rtl" && { paddingLeft: "0 !important" }, ...o.direction !== "rtl" && { paddingRight: void 0 } }, "& .ReactVirtualized__Table__Grid": { outline: "none" }, [`& .${re}`]: { display: "flex", alignItems: "center", boxSizing: "border-box" }, [`& .${Ut}`]: { cursor: "pointer" }, [`& .${Vt}`]: { "&:hover:not([disabled])": { backgroundColor: o.palette.grey[200] } }, [`& .${Te}`]: { flex: 1 }, [`& .${Ie}`]: { cursor: "initial" } }));
|
|
2037
|
+
function Do(o) {
|
|
2038
|
+
const { commands: e, ...t } = o, [n, r] = C.useState(!1), [i, l] = C.useState(""), a = C.useMemo(() => {
|
|
2132
2039
|
let u = e.getAllCommands();
|
|
2133
|
-
n || (u = u.filter((
|
|
2134
|
-
const
|
|
2040
|
+
n || (u = u.filter((m) => m.command.shortcut())), u.sort((m, S) => m.command.label().localeCompare(S.command.label()));
|
|
2041
|
+
const _ = [], g = (m) => m.replace(/\n\n/g, `
|
|
2135
2042
|
`);
|
|
2136
|
-
for (let
|
|
2137
|
-
const S = u[
|
|
2043
|
+
for (let m = 0; m < u.length; m++) {
|
|
2044
|
+
const S = u[m].command, y = S.shortcut();
|
|
2138
2045
|
if (Array.isArray(y)) {
|
|
2139
|
-
const
|
|
2140
|
-
for (let w = 0; w <
|
|
2141
|
-
} else
|
|
2046
|
+
const v = y;
|
|
2047
|
+
for (let w = 0; w < v.length; w++) _.push({ label: S.label(), description: g(S.description()), shortcut: v[w] });
|
|
2048
|
+
} else _.push({ label: S.label(), description: g(S.description()), shortcut: S.shortcut() });
|
|
2142
2049
|
}
|
|
2143
|
-
return
|
|
2050
|
+
return _;
|
|
2144
2051
|
}, [n, e]), [s, c] = C.useState(null);
|
|
2145
2052
|
C.useEffect(() => {
|
|
2146
|
-
import("./
|
|
2053
|
+
import("./d49_A3euUkzKZure.mjs").then((u) => {
|
|
2147
2054
|
c(new u.default(a, { threshold: 0, ignoreLocation: !0, keys: ["label", "description"] }));
|
|
2148
2055
|
});
|
|
2149
2056
|
}, [a]);
|
|
2150
|
-
const [d, h] = C.useState(a), f =
|
|
2057
|
+
const [d, h] = C.useState(a), f = i.length > 0 && d.length === 0;
|
|
2151
2058
|
return C.useEffect(() => {
|
|
2152
|
-
s &&
|
|
2153
|
-
if (
|
|
2154
|
-
const u = s.search(
|
|
2155
|
-
for (let
|
|
2156
|
-
h(
|
|
2059
|
+
s && oo.debounce(() => {
|
|
2060
|
+
if (i.trim().length === 0) return void h(a);
|
|
2061
|
+
const u = s.search(i.trim()), _ = new Array(u.length);
|
|
2062
|
+
for (let g = 0; g < u.length; g++) _[g] = u[g].item;
|
|
2063
|
+
h(_);
|
|
2157
2064
|
}, 90)();
|
|
2158
|
-
}, [s,
|
|
2159
|
-
|
|
2065
|
+
}, [s, i]), L.jsxs(ce, { style: { height: 440, width: "100%", display: "flex", flexDirection: "column" }, ...t, children: [L.jsxs(ce, { sx: { display: "flex", alignItems: "center", justifyContent: "end", marginBottom: (u) => u.spacing(2), color: (u) => u.palette.text.secondary }, children: [L.jsx(no, { InputProps: { sx: { backgroundImage: `linear-gradient(${X("#fff", de(5))}, ${X("#fff", de(5))})` }, inputProps: { className: "input", autoFocus: !0, spellCheck: !1, placeholder: "Type to search key bindings", autoComplete: "off", sx: { paddingTop: (u) => u.spacing(1), paddingBottom: (u) => u.spacing(1) } }, endAdornment: L.jsx(ro, { sx: { opacity: i.length > 0 ? 1 : 0, display: i.length > 0 ? "flex" : "none" }, position: "end", children: L.jsx(io, { "aria-label": "clear search", onClick: () => l(""), edge: "end", children: L.jsx(lo, {}) }) }) }, sx: { flex: "1 1 40%", marginRight: (u) => u.spacing(1), "& .MuiOutlinedInput-notchedOutline": { borderColor: (u) => f ? `${u.palette.error.main} !important` : void 0 }, "& .MuiInputLabel-outlined": { color: (u) => f ? `${u.palette.error.main} !important` : void 0 } }, value: i, onChange: (u) => {
|
|
2066
|
+
l(u.target.value);
|
|
2160
2067
|
}, onKeyDown: (u) => {
|
|
2161
|
-
u.which ===
|
|
2068
|
+
u.which === ft.Escape && i.length > 0 && (l(""), u.stopPropagation(), u.preventDefault());
|
|
2162
2069
|
}, onContextMenu: (u) => {
|
|
2163
2070
|
u.stopPropagation();
|
|
2164
|
-
} }),
|
|
2071
|
+
} }), L.jsx(so, { sx: { flex: "1 1 60%" }, control: L.jsx(ao, { checked: n, onChange: () => r(!n) }), label: "Show commands without key bindings", labelPlacement: "start" })] }), L.jsx(ce, { 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(${X("#fff", de(5))}, ${X("#fff", de(5))})` } }, children: L.jsx(Wo, { rowCount: d.length, rowGetter: (u) => d[u.index], columns: [{ width: 180, label: "Command", dataKey: "label" }, { width: 260, label: "Key Binding", dataKey: "shortcut" }, { width: 240, label: "Description", dataKey: "description", widthLess: 440 }] }) }), L.jsx(ce, { 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(co, { 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" : ""}` }) })] });
|
|
2165
2072
|
}
|
|
2166
|
-
const
|
|
2073
|
+
const Fo = (o) => {
|
|
2167
2074
|
const { title: e = "Shortcut Keys", commands: t, sx: n, ...r } = o;
|
|
2168
|
-
return
|
|
2169
|
-
|
|
2170
|
-
}, sx: { width: "780px", ...n }, title: e, autoFocusSel: ".input", ...r, children:
|
|
2075
|
+
return L.jsx(eo, { isModal: !0, onKeyDown: (i) => {
|
|
2076
|
+
i.keyCode === ft.F1 && i.preventDefault();
|
|
2077
|
+
}, sx: { width: "780px", ...n }, title: e, autoFocusSel: ".input", ...r, children: L.jsx(to, { dividers: !0, children: L.jsx(Do, { commands: t, sx: { marginBottom: "8px" } }) }) });
|
|
2171
2078
|
};
|
|
2172
2079
|
export {
|
|
2173
|
-
|
|
2080
|
+
Fo as default
|
|
2174
2081
|
};
|