@sheetxl/studio-vanilla 0.3.3 → 0.3.4
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/0dkhOl0ItVZXnHg_.cjs +6 -0
- package/browser/cjs/{BnYTCcol8RjTTC3U.cjs → 46C8cTP5D1fDfsPs.cjs} +1 -1
- package/browser/cjs/{-q2o2lS8jxJdArvq.cjs → 7Xjct_4bBSU-vad1.cjs} +1 -1
- package/browser/cjs/{2TmE8J3tbgenWyNa.cjs → B2kFbeodTh3Gk-aQ.cjs} +2 -2
- package/browser/cjs/B5UGK4AzAC9SjXJp.cjs +6 -0
- package/browser/cjs/{B24aLncmXYgEQNjl.cjs → B9kurj8mOePUlJX2.cjs} +1 -1
- package/browser/cjs/{DnkioRlJqXrbcW-8.cjs → BB5pxJh1jhHsvVZ1.cjs} +1 -1
- package/browser/cjs/{VXCGmehGJvuKNhXg.cjs → BDACVe5nzEmYknRm.cjs} +8 -8
- package/browser/cjs/{Bhq8u8Q04XpLmF4K.cjs → BDmE5OFneHwyeeiD.cjs} +4 -4
- package/browser/cjs/{B0BcYYAX9Qq_i5Iv.cjs → BG8OR9VWCkyIRwrw.cjs} +1 -1
- package/browser/cjs/BML8p6hKVpqMb-13.cjs +124 -0
- package/browser/cjs/{TJOJ_VEsTmCJ4d0P.cjs → BTgA_stiR3dZAHop.cjs} +2 -2
- package/browser/cjs/BeGusiaaShhfh7Ch.cjs +7 -0
- package/browser/cjs/{CJ9WKDMLDxv2vmlL.cjs → BgJ-surJf8jSxqmk.cjs} +1 -1
- package/browser/cjs/{Zjw2XvR7-Zfykt20.cjs → BgJFVvwpAWB3ssLE.cjs} +1 -1
- package/browser/cjs/{CGg3vZ0YENmM73uu.cjs → Bi8tk3LAhLkM7IXm.cjs} +1 -1
- package/browser/cjs/{DMIPzZRAbLsma6rR.cjs → BlYpCVX1NOGpcNB6.cjs} +3 -3
- package/browser/cjs/BnZdvx8z2BIDZv9J.cjs +355 -0
- package/browser/cjs/{D6cHa8Tv5I8L_uAO.cjs → BvnUfF0WlIXumm-E.cjs} +1 -1
- package/browser/cjs/{DPTxGnV0pA87nrhG.cjs → BwGs6fp9j-iFwDlB.cjs} +4 -4
- package/browser/cjs/{3ghCxtNVxZjrbziE.cjs → C4JyilwtB4aWsWnG.cjs} +1 -1
- package/browser/cjs/{gjPOOFOH_THG1O-L.cjs → C8PUqW17bEbzJthE.cjs} +1 -1
- package/browser/cjs/CBTWDt8vxgXfkDfh.cjs +6 -0
- package/browser/cjs/{DgBFcVOVhZuytQ4k.cjs → CJ29qM66PMBNE3G9.cjs} +1 -1
- package/browser/cjs/CKtzkomrFnDVY5SY.cjs +11 -0
- package/browser/cjs/{D7MyL7xgt0wGGz3I.cjs → CLarA_vLTlgU3TCF.cjs} +2 -2
- package/browser/cjs/{D9SYWsd_viMxXbL_.cjs → CN8Y9NZjRCPl8CqY.cjs} +1 -1
- package/browser/cjs/{qjCnEqCfcXzLIady.cjs → CNIPdrSO6Xr2gkt9.cjs} +1 -1
- package/browser/cjs/CNkEdWYoHRiw_Uez.cjs +6 -0
- package/browser/cjs/{B237Hj6a3Klw9rQn.cjs → CPFRW8nnIVWYeQYn.cjs} +6 -6
- package/browser/cjs/{eM5uLWq0QtvNN4O-.cjs → CZih4fqvAIVbCVO4.cjs} +1 -1
- package/browser/cjs/{Dh5RBi3PW-5ty2QU.cjs → CdVKz1bz20BYztuB.cjs} +1 -1
- package/browser/cjs/{D4a_UoEEluqny9gi.cjs → CpPM7Ir1EZB_8bER.cjs} +1 -1
- package/browser/cjs/{DbSTC90BuNxq2k-j.cjs → CuldnUeQxpcu8oJ7.cjs} +1 -1
- package/browser/cjs/{BASowCefqJFspuu-.cjs → Cx3wCYZR6BKbOtgk.cjs} +1 -1
- package/browser/cjs/{D7U5Wmdc51Op-pty.cjs → Cx8xafhEESu639Ig.cjs} +1 -1
- package/browser/cjs/{C662YNYNcFb-AwnS.cjs → CzqzVoUeKxH16SDC.cjs} +2 -2
- package/browser/cjs/{OW7aZPHGxXjRF38A.cjs → D-GDPxpVRx45cdpQ.cjs} +1 -1
- package/browser/cjs/{-mcHZst9U0zNDZao.cjs → D-I49Eh-SQg7zJYX.cjs} +1 -1
- package/browser/cjs/{BucBlzmuZS_nYU9N.cjs → D50Wzp-4UIlO9uVc.cjs} +1 -1
- package/browser/cjs/{D4CfqUrC04nbs39G.cjs → DB9rOzEP0g0ZGfBj.cjs} +1 -1
- package/browser/cjs/{WKvz7zs0yI8-TRzJ.cjs → DD0VHDU8F1FiLKcs.cjs} +1 -1
- package/browser/cjs/{GbU6d05bhcxQrAUD.cjs → DIeyUTfGkxwK6bdT.cjs} +6 -6
- package/browser/cjs/{CrXR8mOrQVdukohR.cjs → DX_oDw_K4CB6Ej9i.cjs} +1 -1
- package/browser/cjs/DcNRcLtSOkHAK_Mt.cjs +6 -0
- package/browser/cjs/Df8ZAsCgZ69F33-C.cjs +6 -0
- package/browser/cjs/{D0Ruzl2vdZGdUhjE.cjs → DfCiN8VOEQt4cw-x.cjs} +2 -2
- package/browser/cjs/{s238D5kFNyDNYzIV.cjs → DnkG5azaxDtt-73G.cjs} +1 -1
- package/browser/cjs/{XF920uRM7LSmFp49.cjs → Dr_HVAdkD1bM9yrW.cjs} +1 -1
- package/browser/cjs/{CSZ-Bfo-TZpVumqr.cjs → DzE824T4cXRcKowY.cjs} +1 -1
- package/browser/cjs/{-wP4OG5GpQTxGLJN.cjs → KbKjJCMErVEwKqoi.cjs} +2 -2
- package/browser/cjs/{t-6Fa6b5-CXTHDjn.cjs → Px_DbuQFWhjhPilq.cjs} +1 -1
- package/browser/cjs/{CcxjUuuq3eq1io9D.cjs → VmYEO_-N9Cn7JpZN.cjs} +1 -1
- package/browser/cjs/{pPJG7KbyLkcVi77H.cjs → WPXWuf9j-uwazW31.cjs} +2 -2
- package/browser/cjs/{DoCfDJUgwatpHG4J.cjs → c4HmqMqg3ugRd4gl.cjs} +4 -4
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{BeDnbSWoeqV6GajE.cjs → jmPMUQMT7KTdf9Sr.cjs} +1 -1
- package/browser/cjs/{BoBKeal3_qovATWu.cjs → yZrSgyFKPqsiym7z.cjs} +2 -2
- package/browser/cjs/{DTtUhkXmo3x2L2GG.cjs → zRbLzzCcfjQpsQ4j.cjs} +1 -1
- package/browser/esm/{BzS_V6RkpVpk_d1w.mjs → 0M23_yfYSvrAB5iY.mjs} +4 -4
- package/{cdn/assets/BnxMjyy6JPTUe9Lg.js → browser/esm/2sPP8EL_OzSYDsKu.mjs} +1 -1
- package/{cdn/assets/Cn9w-KgbsxAKNj6s.js → browser/esm/3SiPV9yNzSbQVINg.mjs} +1 -1
- package/{cdn/assets/DAOw8vm-XsJ_n7BK.js → browser/esm/6CkscKSECxQpy0v6.mjs} +1 -1
- package/browser/esm/{B8ajmWm1J-ZsmBzK.mjs → 94SRg1Gxbdr9B75m.mjs} +1 -1
- package/{cdn/assets/fvsQWBiDZg7zRYOa.js → browser/esm/B2I1Hudz2EIGw59h.mjs} +1 -1
- package/browser/esm/{uk5NsqjbkRuKv1vU.mjs → B2fqssq7kMsGIg5g.mjs} +1 -1
- package/browser/esm/{DeSyxK8Ibb-tIa67.mjs → BBBP9totA24zTbqh.mjs} +1 -1
- package/browser/esm/{B-v14ikVOXpmpHCI.mjs → BEYxIKe5B75ADXWP.mjs} +1634 -1612
- package/{cdn/assets/D6KdwQgZEBMy0260.js → browser/esm/BIHHiMjUvXmWQ6w_.mjs} +1 -1
- package/browser/esm/{BZD8sqVzxMPTV1eH.mjs → BNq1DlA_v8-hm8PQ.mjs} +21 -21
- package/browser/esm/{B3iFtnvwZZ0izvkj.mjs → BXMZNx8rs4_V8pQL.mjs} +2 -2
- package/browser/esm/{DIKvxkHBBvYo2rnC.mjs → BYRVuU6FUEX6XBFW.mjs} +1 -1
- package/browser/esm/{1Esqj-uAqAeHBGzU.mjs → BfNo01-WwZl_5N1M.mjs} +132 -132
- package/browser/esm/{DwLRqrlPfv8xcbxB.mjs → BjLCBG20KyjNKCpy.mjs} +2 -2
- package/browser/esm/{DTHujOSrUxuBuwud.mjs → BoL2rsWK1YyT1PP7.mjs} +8 -8
- package/browser/esm/{B6nZCfPr7UmxzAi6.mjs → Bq_HFm6_6_ycs_gE.mjs} +30611 -30763
- package/browser/esm/{BNixyL5UPlHciWwi.mjs → Br4TnuxGRULZDhCA.mjs} +180 -180
- package/browser/esm/{B7RdrgkvZilWOBgD.mjs → BrWhLiIy81LKNSUX.mjs} +1 -1
- package/{cdn/assets/Di8gWiOWhfFzcOuw.js → browser/esm/Bs6fth_bBoNrYDwE.mjs} +1 -1
- package/{cdn/assets/CSxbcCsSh3AdRzkk.js → browser/esm/C-QHwmJCeB3o-mzv.mjs} +1000 -988
- package/{cdn/assets/C1opHAkl00_vHPMO.js → browser/esm/C-oc6cc0wXRVBFx2.mjs} +1 -1
- package/browser/esm/{R2Li5a5IPMuoQEGD.mjs → C0U_bX9Hj97edVC9.mjs} +1 -1
- package/{cdn/assets/Dwd9xRP6sCbvd7-2.js → browser/esm/C2Ik_RfF43fmFDeS.mjs} +1 -1
- package/browser/esm/{DgPz063GFvbhOHHK.mjs → CC8aO_pPT-tkJK_H.mjs} +1 -1
- package/browser/esm/{qbGHKDeXrxvghjMt.mjs → CGxu5NKxrEXE8QIe.mjs} +1 -1
- package/browser/esm/{BskzQvqHyjuVccIH.mjs → CKHDKAaHkwZHUkoS.mjs} +9 -9
- package/{cdn/assets/iHc25sW_jPEvAQNG.js → browser/esm/CTdGamCv2VtpI05C.mjs} +1 -1
- package/browser/esm/{C7cRxJLNfGjCT_Hk.mjs → CZRLp5H9dSrMEgaI.mjs} +12 -12
- package/browser/esm/{DTS0EgQuwHdS5aQN.mjs → CbTDhJiJfpR6Btxp.mjs} +1 -1
- package/browser/esm/{CdJVpNbmXP_fHybW.mjs → CeWIrhJ_bsxOl7mw.mjs} +3 -3
- package/browser/esm/{Dz_O3du2SrhYK47v.mjs → CsUNORBKkJ7f3diG.mjs} +1 -1
- package/browser/esm/{B1M7fpFXcO34FZ5C.mjs → CyYXh2ng_dKgHzbE.mjs} +2 -2
- package/browser/esm/DLJ1zBZE-WPdkpt2.mjs +1466 -0
- package/browser/esm/{DupExqAEenu5ZS6G.mjs → DRFsMc27LyLwGu56.mjs} +2 -2
- package/{cdn/assets/Dy1zdTKMeT50nXcy.js → browser/esm/DT09m4FGTu5N2LZJ.mjs} +1 -1
- package/{cdn/assets/BGvKR9TNj2ORlcKm.js → browser/esm/DUgyehn3re1zGQT5.mjs} +1 -1
- package/{cdn/assets/o8Z04Tjc17JBUDsL.js → browser/esm/DWOT4LkGXRN4FrJI.mjs} +1 -1
- package/browser/esm/{CaLAEGMKeQ3INVEV.mjs → Ddm9jggzrr5VJQ68.mjs} +5 -5
- package/{cdn/assets/B1bRlKApOQZbRHvx.js → browser/esm/Dl02UNFD2tNwtHQ9.mjs} +1 -1
- package/browser/esm/{nT3k8GnD4H3I293i.mjs → Dq1oxXMudxqdJaKZ.mjs} +5 -5
- package/{cdn/assets/dAJOajC7rsn3_hWk.js → browser/esm/Dx1J8HBJdbrROP0v.mjs} +1 -1
- package/browser/esm/{CZ9K3g_56s3hfJO0.mjs → Dz8v5MSOgkaH_zTd.mjs} +18 -18
- package/{cdn/assets/B7k3pb4haBsw-Yvr.js → browser/esm/F7oUe3nLrtaRYTas.mjs} +1 -1
- package/browser/esm/FCkxbRy2XiqD3GdL.mjs +41 -0
- package/browser/esm/{FXy016gXiiQkH7aF.mjs → GbTp1_3jFZu0Ex24.mjs} +2 -2
- package/{cdn/assets/SWzqhkO1HABv0bfG.js → browser/esm/L5HOBW-m9BjZTUuw.mjs} +1 -1
- package/{cdn/assets/CtW_m0lUeW_X_FHB.js → browser/esm/RWhi_dOrWDICNt1t.mjs} +1 -1
- package/browser/esm/{Bc8y371ooCwvBkRs.mjs → XL9-bWRsLjEvW1Y0.mjs} +1 -1
- package/browser/esm/{DNVkA-vwqtIw6aKf.mjs → ZXuNMFT0sYh8ui7O.mjs} +4 -4
- package/{cdn/assets/CM--Vw5PcrLIXc8O.js → browser/esm/gX1gbnkwbpalR57F.mjs} +1 -1
- package/browser/esm/{Dlg7LT4wsJCPSTCT.mjs → im3UoVISx3VXhEFp.mjs} +14 -14
- package/browser/esm/index.mjs +2 -2
- package/{cdn/assets/DqDxWoCftkWurpDk.js → browser/esm/kagl0zcUDaK1IX_X.mjs} +1 -1
- package/browser/esm/{IbCi65rCiiLS_OGe.mjs → pxRv4ndPNkOMM_s3.mjs} +17 -17
- package/browser/esm/{BXkh5kfYj7Zx_PAe.mjs → qchlbvmOxrybWJep.mjs} +1 -1
- package/browser/esm/{DhFd9KX61TdmTNyk.mjs → s8U6UEvd4LQsvEnH.mjs} +1 -1
- package/{cdn/assets/CflOcniWVa_VR5Wy.js → browser/esm/t7CffsKJY64LMXgS.mjs} +1 -1
- package/{cdn/assets/BJgFwyqDjKdTH0xW.js → browser/esm/x9wy-F3t5pNOvOIp.mjs} +103 -100
- package/{browser/esm/BnxMjyy6JPTUe9Lg.mjs → cdn/assets/2sPP8EL_OzSYDsKu.js} +1 -1
- package/{browser/esm/Cn9w-KgbsxAKNj6s.mjs → cdn/assets/3SiPV9yNzSbQVINg.js} +1 -1
- package/{browser/esm/DAOw8vm-XsJ_n7BK.mjs → cdn/assets/6CkscKSECxQpy0v6.js} +1 -1
- package/cdn/assets/{Cqq1J11IdNmbXlgF.js → 6tFlyQMvtppXfmuU.js} +3 -3
- package/cdn/assets/{B8ajmWm1J-ZsmBzK.js → 94SRg1Gxbdr9B75m.js} +1 -1
- package/{browser/esm/fvsQWBiDZg7zRYOa.mjs → cdn/assets/B2I1Hudz2EIGw59h.js} +1 -1
- package/cdn/assets/{uk5NsqjbkRuKv1vU.js → B2fqssq7kMsGIg5g.js} +1 -1
- package/cdn/assets/{DeSyxK8Ibb-tIa67.js → BBBP9totA24zTbqh.js} +1 -1
- package/{browser/esm/BezHCUZawkIGzzUm.mjs → cdn/assets/BD1S4plUUe1NPAqV.js} +103 -100
- package/{browser/esm/D6KdwQgZEBMy0260.mjs → cdn/assets/BIHHiMjUvXmWQ6w_.js} +1 -1
- package/cdn/assets/{D5Ns-uBNTj4-Jo0p.js → BKDQtGZxRUUzBmnI.js} +2 -2
- package/cdn/assets/{DJ3siDIdJVpw0GCs.js → BMb4pCD8O5vK2p1B.js} +2 -2
- package/cdn/assets/BPStm90FUYfOgibU.js +41 -0
- package/cdn/assets/{DQQK1YdQWQGsESk_.js → BY5dcSv5nxuvXMsr.js} +5 -5
- package/cdn/assets/{DIKvxkHBBvYo2rnC.js → BYRVuU6FUEX6XBFW.js} +1 -1
- package/cdn/assets/{C4Vp4GoCEGQgWaGc.js → Be9YovX6b_0gKXs5.js} +21 -21
- package/cdn/assets/{B7RdrgkvZilWOBgD.js → BrWhLiIy81LKNSUX.js} +1 -1
- package/{browser/esm/Di8gWiOWhfFzcOuw.mjs → cdn/assets/Bs6fth_bBoNrYDwE.js} +1 -1
- package/cdn/assets/{DCwhACFXcpYD60H9.js → BzlAT8jiYfNV3kGy.js} +2 -2
- package/{browser/esm/C1opHAkl00_vHPMO.mjs → cdn/assets/C-oc6cc0wXRVBFx2.js} +1 -1
- package/cdn/assets/{R2Li5a5IPMuoQEGD.js → C0U_bX9Hj97edVC9.js} +1 -1
- package/{browser/esm/Dwd9xRP6sCbvd7-2.mjs → cdn/assets/C2Ik_RfF43fmFDeS.js} +1 -1
- package/cdn/assets/{DgPz063GFvbhOHHK.js → CC8aO_pPT-tkJK_H.js} +1 -1
- package/cdn/assets/{COS-oUtP1lQi0Hd8.js → CG-YuIoWsi12_nu9.js} +9 -9
- package/cdn/assets/{DAC77jdtNbZopLX5.js → CGUSbWH383tudMFu.js} +12 -12
- package/cdn/assets/{qbGHKDeXrxvghjMt.js → CGxu5NKxrEXE8QIe.js} +1 -1
- package/{browser/esm/VDflSVY_vwi7ZcHQ.mjs → cdn/assets/CJOmvmuvywU33q7C.js} +1000 -988
- package/cdn/assets/{Dk8MDG7PNGIWw80U.js → CNhPYXS_v3a2ATBg.js} +81 -81
- package/cdn/assets/{3ijH6Pl-l2q9T5Ky.js → COFTB6OufFls7NP1.js} +5 -5
- package/{browser/esm/iHc25sW_jPEvAQNG.mjs → cdn/assets/CTdGamCv2VtpI05C.js} +1 -1
- package/cdn/assets/{DTS0EgQuwHdS5aQN.js → CbTDhJiJfpR6Btxp.js} +1 -1
- package/cdn/assets/{Dz_O3du2SrhYK47v.js → CsUNORBKkJ7f3diG.js} +1 -1
- package/cdn/assets/{Cqyz2pkIcU2pAivO.js → DBq5E3hmvVO5ss1V.js} +1634 -1612
- package/{browser/esm/Dy1zdTKMeT50nXcy.mjs → cdn/assets/DT09m4FGTu5N2LZJ.js} +1 -1
- package/{browser/esm/BGvKR9TNj2ORlcKm.mjs → cdn/assets/DUgyehn3re1zGQT5.js} +1 -1
- package/{browser/esm/o8Z04Tjc17JBUDsL.mjs → cdn/assets/DWOT4LkGXRN4FrJI.js} +1 -1
- package/cdn/assets/{ukDxhSJqMPzLXoCP.js → DYgFWlitgXmKdN_I.js} +132 -132
- package/cdn/assets/{BKxjmGpW0pe8KUzm.js → Det1P4Jrl9aZHFGe.js} +4 -4
- package/cdn/assets/{DOLBqVto8cJdYLWp.js → DjHCn_TmfObC_aJ1.js} +14 -14
- package/{browser/esm/B1bRlKApOQZbRHvx.mjs → cdn/assets/Dl02UNFD2tNwtHQ9.js} +1 -1
- package/cdn/assets/{CuYtiG4SP9OK6dJP.js → Dt3qIbvMvgQhNgeR.js} +4 -4
- package/{browser/esm/dAJOajC7rsn3_hWk.mjs → cdn/assets/Dx1J8HBJdbrROP0v.js} +1 -1
- package/{browser/esm/B7k3pb4haBsw-Yvr.mjs → cdn/assets/F7oUe3nLrtaRYTas.js} +1 -1
- package/{browser/esm/SWzqhkO1HABv0bfG.mjs → cdn/assets/L5HOBW-m9BjZTUuw.js} +1 -1
- package/cdn/assets/{BFDOApZozGNnJdxs.js → LxoKYdUqZ4Zgxjza.js} +17 -17
- package/{browser/esm/CtW_m0lUeW_X_FHB.mjs → cdn/assets/RWhi_dOrWDICNt1t.js} +1 -1
- package/cdn/assets/{G9bfOnISYlZUeW4U.js → U_ihCP2tbaRnqD2g.js} +38128 -38280
- package/cdn/assets/{Bc8y371ooCwvBkRs.js → XL9-bWRsLjEvW1Y0.js} +1 -1
- package/cdn/assets/{Dew12-owBXPNmL1S.js → Z4Ov3rzhXnezd-gU.js} +2 -2
- package/cdn/assets/{Dkcj5uYhkoaa5JJt.js → ct9ztJbQB16MJoyP.js} +2 -2
- package/cdn/assets/{BQFdL0Ou_nLqI7lR.js → dQu9CDkkTpS5h580.js} +8 -8
- package/cdn/assets/{DirkLhQ9-HVY0eDv.js → dR_uwa9znq6_hDmB.js} +18 -18
- package/{browser/esm/CM--Vw5PcrLIXc8O.mjs → cdn/assets/gX1gbnkwbpalR57F.js} +1 -1
- package/{browser/esm/DqDxWoCftkWurpDk.mjs → cdn/assets/kagl0zcUDaK1IX_X.js} +1 -1
- package/cdn/assets/mAWImp_J2v8z8hbZ.js +1466 -0
- package/cdn/assets/{BXkh5kfYj7Zx_PAe.js → qchlbvmOxrybWJep.js} +1 -1
- package/cdn/assets/{DhFd9KX61TdmTNyk.js → s8U6UEvd4LQsvEnH.js} +1 -1
- package/{browser/esm/CflOcniWVa_VR5Wy.mjs → cdn/assets/t7CffsKJY64LMXgS.js} +1 -1
- package/cdn/index.js +2 -2
- package/cdn/loader.js +1 -1
- package/package.json +2 -2
- package/browser/cjs/6AlZR3dVayTg7C5E.cjs +0 -452
- package/browser/cjs/B9C-V-MR_epPI-2J.cjs +0 -6
- package/browser/cjs/C-YXuaIn5H1e3gGL.cjs +0 -6
- package/browser/cjs/Ch4kNO1QwQ4Dqczw.cjs +0 -124
- package/browser/cjs/CuLinKNAohDMFqJU.cjs +0 -6
- package/browser/cjs/Dwc5vGQ4nkaSmift.cjs +0 -6
- package/browser/cjs/WQBNSYPbQzvO23r-.cjs +0 -6
- package/browser/cjs/XazDEHRGho7wJTUR.cjs +0 -6
- package/browser/cjs/hhZA8Q_VAVRnX3Rz.cjs +0 -7
- package/browser/cjs/zvHV2c0_QPS3v2Wt.cjs +0 -11
- package/browser/esm/Bz98C5-blFN81GJ-.mjs +0 -41
- package/browser/esm/DaeiyDhcdRvg5nGs.mjs +0 -1466
- package/cdn/assets/B2P82Dvadjo7-hRY.js +0 -1466
- package/cdn/assets/vw_ELbpa8MGzVBfc.js +0 -41
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as E, jsxs as Ae } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { K as Qt, I as eo, L as to, W as oo, $ as no, bs as J, a0 as ro, a2 as io, bt as lo, bu as so, f as Y, b9 as ao, ba as co, b3 as St, H as uo, B as de, T as ho, be as fo, at as po, av as mo, b6 as ue, b1 as go, b2 as vo, as as _o, bv as So, bw as yo, bx as Ee, by as wo, bz as Co, bA as xo, ai as _e, bB as bo, bC as Ro, bD as He, bE as To, bF as U, bG as zo } from "./Bq_HFm6_6_ycs_gE.mjs";
|
|
3
3
|
import * as x from "react";
|
|
4
4
|
import yt, { useState as he, useMemo as Io, useEffect as We, cloneElement as Po } from "react";
|
|
5
|
-
import { f as N } from "./
|
|
5
|
+
import { f as N } from "./BfNo01-WwZl_5N1M.mjs";
|
|
6
6
|
/**
|
|
7
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
7
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.4
|
|
8
8
|
*
|
|
9
9
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
10
10
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -19,16 +19,16 @@ const Lo = Qt("MuiTableCell", ["root", "head", "body", "footer", "sizeSmall", "s
|
|
|
19
19
|
} })(io(({ theme: o }) => ({ ...o.typography.body2, display: "table-cell", verticalAlign: "inherit", borderBottom: o.vars ? `1px solid ${o.vars.palette.TableCell.border}` : `1px solid
|
|
20
20
|
${o.palette.mode === "light" ? lo(Y(o.palette.divider, 1), 0.88) : so(Y(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", [`&.${Lo.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 } }] }))), De = x.forwardRef(function(o, e) {
|
|
21
21
|
const t = to({ props: o, name: "MuiTableCell" }), { align: n = "inherit", className: r, component: i, padding: l, scope: a, size: s, sortDirection: c, variant: d, ...h } = t, f = x.useContext(ko), u = x.useContext(Oo), _ = u && u.variant === "head";
|
|
22
|
-
let
|
|
23
|
-
|
|
24
|
-
let
|
|
25
|
-
|
|
26
|
-
const S = d || u && u.variant, y = { ...t, align: n, component:
|
|
27
|
-
const { classes: b, variant: R, align:
|
|
22
|
+
let m;
|
|
23
|
+
m = i || (_ ? "th" : "td");
|
|
24
|
+
let g = a;
|
|
25
|
+
m === "td" ? g = void 0 : !g && _ && (g = "col");
|
|
26
|
+
const S = d || u && u.variant, y = { ...t, align: n, component: m, 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 = ((w) => {
|
|
27
|
+
const { classes: b, variant: R, align: T, padding: I, size: k, stickyHeader: z } = w, P = { root: ["root", R, z && "stickyHeader", T !== "inherit" && `align${J(T)}`, I !== "normal" && `padding${J(I)}`, `size${J(k)}`] };
|
|
28
28
|
return ro(P, Mo, b);
|
|
29
29
|
})(y);
|
|
30
30
|
let C = null;
|
|
31
|
-
return c && (C = c === "asc" ? "ascending" : "descending"), E(Go, { as:
|
|
31
|
+
return c && (C = c === "asc" ? "ascending" : "descending"), E(Go, { as: m, ref: e, className: no(v.root, r), "aria-sort": C, scope: g, ownerState: y, ...h });
|
|
32
32
|
}), Ao = So();
|
|
33
33
|
function Se(o) {
|
|
34
34
|
return o !== "ownerState" && o !== "theme" && o !== "sx" && o !== "as";
|
|
@@ -36,9 +36,9 @@ function Se(o) {
|
|
|
36
36
|
function Eo(o) {
|
|
37
37
|
return o ? (e, t) => t[o] : null;
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function me(o, e) {
|
|
40
40
|
const t = typeof e == "function" ? e(o) : e;
|
|
41
|
-
if (Array.isArray(t)) return t.flatMap((n) =>
|
|
41
|
+
if (Array.isArray(t)) return t.flatMap((n) => me(o, n));
|
|
42
42
|
if (Array.isArray(t?.variants)) {
|
|
43
43
|
let n;
|
|
44
44
|
if (t.isProcessed) n = t.style;
|
|
@@ -75,44 +75,44 @@ const Wo = function(o = {}) {
|
|
|
75
75
|
}
|
|
76
76
|
return (l, a = {}) => {
|
|
77
77
|
yo(l, (w) => w.filter((b) => b !== Ee));
|
|
78
|
-
const { name: s, slot: c, skipVariantsResolver: d, skipSx: h, overridesResolver: f = Eo(Ho(c)), ...u } = a, _ = d !== void 0 ? d : c && c !== "Root" && c !== "root" || !1,
|
|
79
|
-
let
|
|
78
|
+
const { name: s, slot: c, skipVariantsResolver: d, skipSx: h, overridesResolver: f = Eo(Ho(c)), ...u } = a, _ = d !== void 0 ? d : c && c !== "Root" && c !== "root" || !1, m = h || !1;
|
|
79
|
+
let g = Se;
|
|
80
80
|
var S;
|
|
81
|
-
c === "Root" || c === "root" ?
|
|
82
|
-
const y = wo(l, { shouldForwardProp:
|
|
81
|
+
c === "Root" || c === "root" ? g = n : c ? g = r : typeof (S = l) == "string" && S.charCodeAt(0) > 96 && (g = void 0);
|
|
82
|
+
const y = wo(l, { shouldForwardProp: g, label: void 0, ...u }), v = (w) => {
|
|
83
83
|
if (w.__emotion_real === w) return w;
|
|
84
84
|
if (typeof w == "function") return function(b) {
|
|
85
|
-
return
|
|
85
|
+
return me(b, w);
|
|
86
86
|
};
|
|
87
87
|
if (Ro(w)) {
|
|
88
88
|
const b = function(R) {
|
|
89
|
-
const { variants:
|
|
90
|
-
return k.style === I ||
|
|
91
|
-
typeof
|
|
89
|
+
const { variants: T, ...I } = R, k = { variants: T, style: He(I), isProcessed: !0 };
|
|
90
|
+
return k.style === I || T && T.forEach((z) => {
|
|
91
|
+
typeof z.style != "function" && (z.style = He(z.style));
|
|
92
92
|
}), k;
|
|
93
93
|
}(w);
|
|
94
94
|
return b.variants ? function(R) {
|
|
95
|
-
return
|
|
95
|
+
return me(R, b);
|
|
96
96
|
} : b.style;
|
|
97
97
|
}
|
|
98
98
|
return w;
|
|
99
99
|
}, C = (...w) => {
|
|
100
|
-
const b = [], R = w.map(v),
|
|
101
|
-
if (b.push(i), s && f &&
|
|
102
|
-
const P =
|
|
100
|
+
const b = [], R = w.map(v), T = [];
|
|
101
|
+
if (b.push(i), s && f && T.push(function(z) {
|
|
102
|
+
const P = z.theme, M = P.components?.[s]?.styleOverrides;
|
|
103
103
|
if (!M) return null;
|
|
104
104
|
const H = {};
|
|
105
|
-
for (const
|
|
106
|
-
return f(
|
|
107
|
-
}), s && !_ &&
|
|
108
|
-
const P =
|
|
109
|
-
return M ? wt(
|
|
110
|
-
}),
|
|
111
|
-
const
|
|
105
|
+
for (const q in M) H[q] = me(z, M[q]);
|
|
106
|
+
return f(z, H);
|
|
107
|
+
}), s && !_ && T.push(function(z) {
|
|
108
|
+
const P = z.theme, M = P?.components?.[s]?.variants;
|
|
109
|
+
return M ? wt(z, M) : null;
|
|
110
|
+
}), m || T.push(Ee), Array.isArray(R[0])) {
|
|
111
|
+
const z = R.shift(), P = new Array(b.length).fill(""), M = new Array(T.length).fill("");
|
|
112
112
|
let H;
|
|
113
|
-
H = [...P, ...
|
|
113
|
+
H = [...P, ...z, ...M], H.raw = [...P, ...z.raw, ...M], b.unshift(H);
|
|
114
114
|
}
|
|
115
|
-
const I = [...b, ...R, ...
|
|
115
|
+
const I = [...b, ...R, ...T], k = y(...I);
|
|
116
116
|
return l.muiName && (k.muiName = l.muiName), k;
|
|
117
117
|
};
|
|
118
118
|
return y.withConfig && (C.withConfig = y.withConfig), C;
|
|
@@ -167,7 +167,7 @@ function O(o) {
|
|
|
167
167
|
}
|
|
168
168
|
function D(o, e) {
|
|
169
169
|
if (typeof e != "function" && e !== null) throw new TypeError("Super expression must either be null or a function");
|
|
170
|
-
o.prototype = Object.create(e && e.prototype, { constructor: { value: o, writable: !0, configurable: !0 } }), Object.defineProperty(o, "prototype", { writable: !1 }), e &&
|
|
170
|
+
o.prototype = Object.create(e && e.prototype, { constructor: { value: o, writable: !0, configurable: !0 } }), Object.defineProperty(o, "prototype", { writable: !1 }), e && To(o, e);
|
|
171
171
|
}
|
|
172
172
|
function p(o, e, t) {
|
|
173
173
|
return (e = Ct(e)) in o ? Object.defineProperty(o, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : o[e] = t, o;
|
|
@@ -238,13 +238,13 @@ function Ne(o) {
|
|
|
238
238
|
}
|
|
239
239
|
return o;
|
|
240
240
|
}
|
|
241
|
-
function
|
|
241
|
+
function Tt() {
|
|
242
242
|
try {
|
|
243
243
|
var o = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
244
244
|
}));
|
|
245
245
|
} catch {
|
|
246
246
|
}
|
|
247
|
-
return (
|
|
247
|
+
return (Tt = function() {
|
|
248
248
|
return !!o;
|
|
249
249
|
})();
|
|
250
250
|
}
|
|
@@ -254,10 +254,10 @@ var Be = function() {
|
|
|
254
254
|
var e, t, n, r;
|
|
255
255
|
G(this, o);
|
|
256
256
|
for (var i = arguments.length, l = new Array(i), a = 0; a < i; a++) l[a] = arguments[a];
|
|
257
|
-
return t = this, n = o, r = [].concat(l), n = O(n), p(e = W(t,
|
|
257
|
+
return t = this, n = o, r = [].concat(l), n = O(n), p(e = W(t, Tt() ? Reflect.construct(n, r || [], O(t).constructor) : n.apply(t, r)), "state", { scrollToColumn: 0, scrollToRow: 0, instanceProps: { prevScrollToColumn: 0, prevScrollToRow: 0 } }), p(e, "_columnStartIndex", 0), p(e, "_columnStopIndex", 0), p(e, "_rowStartIndex", 0), p(e, "_rowStopIndex", 0), p(e, "_onKeyDown", function(s) {
|
|
258
258
|
var c = e.props, d = c.columnCount, h = c.disabled, f = c.mode, u = c.rowCount;
|
|
259
259
|
if (!h) {
|
|
260
|
-
var _ = e._getScrollState(),
|
|
260
|
+
var _ = e._getScrollState(), m = _.scrollToColumn, g = _.scrollToRow, S = e._getScrollState(), y = S.scrollToColumn, v = S.scrollToRow;
|
|
261
261
|
switch (s.key) {
|
|
262
262
|
case "ArrowDown":
|
|
263
263
|
v = Math.min(f === "cells" ? v + 1 : e._rowStopIndex + 1, u - 1);
|
|
@@ -271,7 +271,7 @@ var Be = function() {
|
|
|
271
271
|
case "ArrowUp":
|
|
272
272
|
v = Math.max(f === "cells" ? v - 1 : e._rowStartIndex - 1, 0);
|
|
273
273
|
}
|
|
274
|
-
y ===
|
|
274
|
+
y === m && v === g || (s.preventDefault(), e._updateScrollState({ scrollToColumn: y, scrollToRow: v }));
|
|
275
275
|
}
|
|
276
276
|
}), p(e, "_onSectionRendered", function(s) {
|
|
277
277
|
var c = s.columnStartIndex, d = s.columnStopIndex, h = s.rowStartIndex, f = s.rowStopIndex;
|
|
@@ -293,7 +293,7 @@ var Be = function() {
|
|
|
293
293
|
return e.isControlled ? {} : e.scrollToColumn !== t.instanceProps.prevScrollToColumn || e.scrollToRow !== t.instanceProps.prevScrollToRow ? Ne(Ne({}, t), {}, { scrollToColumn: e.scrollToColumn, scrollToRow: e.scrollToRow, instanceProps: { prevScrollToColumn: e.scrollToColumn, prevScrollToRow: e.scrollToRow } }) : {};
|
|
294
294
|
} }]);
|
|
295
295
|
}();
|
|
296
|
-
function
|
|
296
|
+
function zt(o, e) {
|
|
297
297
|
var t, n, r = (t = e !== void 0 ? e : typeof window < "u" ? window : typeof self < "u" ? self : global).document !== void 0 && t.document.attachEvent;
|
|
298
298
|
if (!r) {
|
|
299
299
|
var i = (n = t.requestAnimationFrame || t.mozRequestAnimationFrame || t.webkitRequestAnimationFrame || function(v) {
|
|
@@ -320,12 +320,12 @@ function Tt(o, e) {
|
|
|
320
320
|
}
|
|
321
321
|
}, c = !1, d = "", h = "animationstart", f = "Webkit Moz O ms".split(" "), u = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "), _ = t.document.createElement("fakeelement");
|
|
322
322
|
if (_.style.animationName !== void 0 && (c = !0), c === !1) {
|
|
323
|
-
for (var
|
|
324
|
-
d = "-" + f[
|
|
323
|
+
for (var m = 0; m < f.length; m++) if (_.style[f[m] + "AnimationName"] !== void 0) {
|
|
324
|
+
d = "-" + f[m].toLowerCase() + "-", h = u[m], c = !0;
|
|
325
325
|
break;
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
|
-
var
|
|
328
|
+
var g = "resizeanim", S = "@" + d + "keyframes " + g + " { from { opacity: 0; } to { opacity: 0; } } ", y = d + "animation: 1ms " + g + "; ";
|
|
329
329
|
}
|
|
330
330
|
return { addResizeListener: function(v, C) {
|
|
331
331
|
if (r) v.attachEvent("onresize", C);
|
|
@@ -334,15 +334,15 @@ function Tt(o, e) {
|
|
|
334
334
|
var w = v.ownerDocument, b = t.getComputedStyle(v);
|
|
335
335
|
b && b.position == "static" && (v.style.position = "relative"), function(I) {
|
|
336
336
|
if (!I.getElementById("detectElementResize")) {
|
|
337
|
-
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%; }',
|
|
338
|
-
P.id = "detectElementResize", P.type = "text/css", o != null && P.setAttribute("nonce", o), P.styleSheet ? P.styleSheet.cssText = k : P.appendChild(I.createTextNode(k)),
|
|
337
|
+
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%; }', z = I.head || I.getElementsByTagName("head")[0], P = I.createElement("style");
|
|
338
|
+
P.id = "detectElementResize", P.type = "text/css", o != null && P.setAttribute("nonce", o), P.styleSheet ? P.styleSheet.cssText = k : P.appendChild(I.createTextNode(k)), z.appendChild(P);
|
|
339
339
|
}
|
|
340
340
|
}(w), v.__resizeLast__ = {}, v.__resizeListeners__ = [], (v.__resizeTriggers__ = w.createElement("div")).className = "resize-triggers";
|
|
341
341
|
var R = w.createElement("div");
|
|
342
342
|
R.className = "expand-trigger", R.appendChild(w.createElement("div"));
|
|
343
|
-
var
|
|
344
|
-
|
|
345
|
-
I.animationName ==
|
|
343
|
+
var T = w.createElement("div");
|
|
344
|
+
T.className = "contract-trigger", v.__resizeTriggers__.appendChild(R), v.__resizeTriggers__.appendChild(T), v.appendChild(v.__resizeTriggers__), a(v), v.addEventListener("scroll", s, !0), h && (v.__resizeTriggers__.__animationListener__ = function(I) {
|
|
345
|
+
I.animationName == g && a(v);
|
|
346
346
|
}, v.__resizeTriggers__.addEventListener(h, v.__resizeTriggers__.__animationListener__));
|
|
347
347
|
}
|
|
348
348
|
v.__resizeListeners__.push(C);
|
|
@@ -398,8 +398,8 @@ var Pt = function() {
|
|
|
398
398
|
return t = this, n = o, r = [].concat(l), n = O(n), p(e = W(t, It() ? Reflect.construct(n, r || [], O(t).constructor) : n.apply(t, r)), "state", { height: e.props.defaultHeight || 0, width: e.props.defaultWidth || 0 }), p(e, "_parentNode", void 0), p(e, "_autoSizer", void 0), p(e, "_window", void 0), p(e, "_detectElementResize", void 0), p(e, "_onResize", function() {
|
|
399
399
|
var s = e.props, c = s.disableHeight, d = s.disableWidth, h = s.onResize;
|
|
400
400
|
if (e._parentNode) {
|
|
401
|
-
var f = e._parentNode.offsetHeight || 0, u = e._parentNode.offsetWidth || 0, _ = (e._window || window).getComputedStyle(e._parentNode) || {},
|
|
402
|
-
(!c && e.state.height !== v || !d && e.state.width !== C) && (e.setState({ height: f - S - y, width: u -
|
|
401
|
+
var f = e._parentNode.offsetHeight || 0, u = e._parentNode.offsetWidth || 0, _ = (e._window || window).getComputedStyle(e._parentNode) || {}, m = parseInt(_.paddingLeft, 10) || 0, g = parseInt(_.paddingRight, 10) || 0, S = parseInt(_.paddingTop, 10) || 0, y = parseInt(_.paddingBottom, 10) || 0, v = f - S - y, C = u - m - g;
|
|
402
|
+
(!c && e.state.height !== v || !d && e.state.width !== C) && (e.setState({ height: f - S - y, width: u - m - g }), h({ height: f, width: u }));
|
|
403
403
|
}
|
|
404
404
|
}), p(e, "_setRef", function(s) {
|
|
405
405
|
e._autoSizer = s;
|
|
@@ -407,7 +407,7 @@ var Pt = function() {
|
|
|
407
407
|
}
|
|
408
408
|
return D(o, x.Component), A(o, [{ key: "componentDidMount", value: function() {
|
|
409
409
|
var e = this.props.nonce;
|
|
410
|
-
this._autoSizer && this._autoSizer.parentNode && this._autoSizer.parentNode.ownerDocument && this._autoSizer.parentNode.ownerDocument.defaultView && this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement && (this._parentNode = this._autoSizer.parentNode, this._window = this._autoSizer.parentNode.ownerDocument.defaultView, this._detectElementResize =
|
|
410
|
+
this._autoSizer && this._autoSizer.parentNode && this._autoSizer.parentNode.ownerDocument && this._autoSizer.parentNode.ownerDocument.defaultView && this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement && (this._parentNode = this._autoSizer.parentNode, this._window = this._autoSizer.parentNode.ownerDocument.defaultView, this._detectElementResize = zt(e, this._window), this._detectElementResize.addResizeListener(this._parentNode, this._onResize), this._onResize());
|
|
411
411
|
} }, { key: "componentWillUnmount", value: function() {
|
|
412
412
|
this._detectElementResize && this._parentNode && this._detectElementResize.removeResizeListener(this._parentNode, this._onResize);
|
|
413
413
|
} }, { key: "render", value: function() {
|
|
@@ -433,8 +433,8 @@ var Do = function() {
|
|
|
433
433
|
G(this, o);
|
|
434
434
|
for (var i = arguments.length, l = new Array(i), a = 0; a < i; a++) l[a] = arguments[a];
|
|
435
435
|
return t = this, n = o, r = [].concat(l), n = O(n), p(e = W(t, kt() ? Reflect.construct(n, r || [], O(t).constructor) : n.apply(t, r)), "_child", x.createRef()), p(e, "_measure", function() {
|
|
436
|
-
var s = e.props, c = s.cache, d = s.columnIndex, h = d === void 0 ? 0 : d, f = s.parent, u = s.rowIndex, _ = u === void 0 ? e.props.index || 0 : u,
|
|
437
|
-
|
|
436
|
+
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, m = e._getCellMeasurements(), g = m.height, S = m.width;
|
|
437
|
+
g === c.getHeight(_, h) && S === c.getWidth(_, h) || (c.set(_, h, S, g), f && typeof f.recomputeGridSize == "function" && f.recomputeGridSize({ columnIndex: h, rowIndex: _ }));
|
|
438
438
|
}), p(e, "_registerChild", function(s) {
|
|
439
439
|
!s || s instanceof Element || console.warn("CellMeasurer registerChild expects to be passed Element or null"), e._child.current = s, s && e._maybeMeasureCell();
|
|
440
440
|
}), e;
|
|
@@ -498,7 +498,7 @@ function $e(o, e) {
|
|
|
498
498
|
}
|
|
499
499
|
return t;
|
|
500
500
|
}
|
|
501
|
-
function
|
|
501
|
+
function Ke(o) {
|
|
502
502
|
for (var e = 1; e < arguments.length; e++) {
|
|
503
503
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
504
504
|
e % 2 ? $e(Object(t), !0).forEach(function(n) {
|
|
@@ -519,7 +519,7 @@ function Ot() {
|
|
|
519
519
|
return !!o;
|
|
520
520
|
})();
|
|
521
521
|
}
|
|
522
|
-
var te = "requested",
|
|
522
|
+
var te = "requested", ge = function() {
|
|
523
523
|
function o() {
|
|
524
524
|
var e, t, n, r;
|
|
525
525
|
G(this, o);
|
|
@@ -530,20 +530,20 @@ var te = "requested", me = function() {
|
|
|
530
530
|
}), p(e, "_setScrollingContainerRef", function(s) {
|
|
531
531
|
e._scrollingContainer = s;
|
|
532
532
|
}), p(e, "_updateScrollPositionForScrollToCell", function() {
|
|
533
|
-
var s = e.props, c = s.cellLayoutManager, d = s.height, h = s.scrollToAlignment, f = s.scrollToCell, u = s.width, _ = e.state,
|
|
533
|
+
var s = e.props, c = s.cellLayoutManager, d = s.height, h = s.scrollToAlignment, f = s.scrollToCell, u = s.width, _ = e.state, m = _.scrollLeft, g = _.scrollTop;
|
|
534
534
|
if (f >= 0) {
|
|
535
|
-
var S = c.getScrollPositionForCell({ align: h, cellIndex: f, height: d, scrollLeft:
|
|
536
|
-
S.scrollLeft ===
|
|
535
|
+
var S = c.getScrollPositionForCell({ align: h, cellIndex: f, height: d, scrollLeft: m, scrollTop: g, width: u });
|
|
536
|
+
S.scrollLeft === m && S.scrollTop === g || e._setScrollPosition(S);
|
|
537
537
|
}
|
|
538
538
|
}), p(e, "_onScroll", function(s) {
|
|
539
539
|
if (s.target === e._scrollingContainer) {
|
|
540
540
|
e._enablePointerEventsAfterDelay();
|
|
541
|
-
var c = e.props, d = c.cellLayoutManager, h = c.height, f = c.isScrollingChange, u = c.width, _ = e._scrollbarSize,
|
|
541
|
+
var c = e.props, d = c.cellLayoutManager, h = c.height, f = c.isScrollingChange, u = c.width, _ = e._scrollbarSize, m = d.getTotalSize(), g = m.height, S = m.width, y = Math.max(0, Math.min(S - u + _, s.target.scrollLeft)), v = Math.max(0, Math.min(g - h + _, s.target.scrollTop));
|
|
542
542
|
if (e.state.scrollLeft !== y || e.state.scrollTop !== v) {
|
|
543
543
|
var C = s.cancelable ? "observed" : te;
|
|
544
544
|
e.state.isScrolling || f(!0), e.setState({ isScrolling: !0, scrollLeft: y, scrollPositionChangeReason: C, scrollTop: v });
|
|
545
545
|
}
|
|
546
|
-
e._invokeOnScrollMemoizer({ scrollLeft: y, scrollTop: v, totalWidth: S, totalHeight:
|
|
546
|
+
e._invokeOnScrollMemoizer({ scrollLeft: y, scrollTop: v, totalWidth: S, totalHeight: g });
|
|
547
547
|
}
|
|
548
548
|
}), e._scrollbarSize = be(), e._scrollbarSize === void 0 ? (e._scrollbarSizeMeasured = !1, e._scrollbarSize = 0) : e._scrollbarSizeMeasured = !0, e;
|
|
549
549
|
}
|
|
@@ -560,10 +560,10 @@ var te = "requested", me = function() {
|
|
|
560
560
|
} }, { key: "componentWillUnmount", value: function() {
|
|
561
561
|
this._disablePointerEventsTimeoutId && clearTimeout(this._disablePointerEventsTimeoutId);
|
|
562
562
|
} }, { key: "render", value: function() {
|
|
563
|
-
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,
|
|
563
|
+
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, m = u.scrollLeft, g = u.scrollTop;
|
|
564
564
|
(this._lastRenderedCellCount !== n || this._lastRenderedCellLayoutManager !== r || this._calculateSizeAndPositionDataOnNextUpdate) && (this._lastRenderedCellCount = n, this._lastRenderedCellLayoutManager = r, this._calculateSizeAndPositionDataOnNextUpdate = !1, r.calculateSizeAndPositionData());
|
|
565
|
-
var S = r.getTotalSize(), y = S.height, v = S.width, C = Math.max(0,
|
|
566
|
-
return I.overflowX = v + k <= f ? "hidden" : "auto", I.overflowY = y +
|
|
565
|
+
var S = r.getTotalSize(), y = S.height, v = S.width, C = Math.max(0, m - a), w = Math.max(0, g - h), b = Math.min(v, m + f + a), R = Math.min(y, g + l + h), T = l > 0 && f > 0 ? r.cellRenderers({ height: R - w, isScrolling: _, width: b - C, x: C, y: w }) : [], I = { boxSizing: "border-box", direction: "ltr", height: t ? "auto" : l, position: "relative", WebkitOverflowScrolling: "touch", width: f, willChange: "transform" }, k = y > l ? this._scrollbarSize : 0, z = v > f ? this._scrollbarSize : 0;
|
|
566
|
+
return I.overflowX = v + k <= f ? "hidden" : "auto", I.overflowY = y + z <= l ? "hidden" : "auto", x.createElement("div", { ref: this._setScrollingContainerRef, "aria-label": this.props["aria-label"], className: N("ReactVirtualized__Collection", i), id: s, onScroll: this._onScroll, role: "grid", style: Ke(Ke({}, I), d), tabIndex: 0 }, n > 0 && x.createElement("div", { className: "ReactVirtualized__Collection__innerScrollContainer", style: { height: y, maxHeight: y, maxWidth: v, overflow: "hidden", pointerEvents: _ ? "none" : "", width: v } }, T), n === 0 && c());
|
|
567
567
|
} }, { key: "_enablePointerEventsAfterDelay", value: function() {
|
|
568
568
|
var e = this;
|
|
569
569
|
this._disablePointerEventsTimeoutId && clearTimeout(this._disablePointerEventsTimeoutId), this._disablePointerEventsTimeoutId = setTimeout(function() {
|
|
@@ -582,13 +582,13 @@ var te = "requested", me = function() {
|
|
|
582
582
|
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: te } : null : { scrollLeft: 0, scrollTop: 0, scrollPositionChangeReason: te };
|
|
583
583
|
} }]);
|
|
584
584
|
}();
|
|
585
|
-
p(
|
|
585
|
+
p(ge, "defaultProps", { "aria-label": "grid", horizontalOverscanSize: 0, noContentRenderer: function() {
|
|
586
586
|
return null;
|
|
587
587
|
}, onScroll: function() {
|
|
588
588
|
return null;
|
|
589
589
|
}, onSectionRendered: function() {
|
|
590
590
|
return null;
|
|
591
|
-
}, scrollToAlignment: "auto", scrollToCell: -1, style: {}, verticalOverscanSize: 0 }),
|
|
591
|
+
}, scrollToAlignment: "auto", scrollToCell: -1, style: {}, verticalOverscanSize: 0 }), ge.propTypes = {}, ce(ge);
|
|
592
592
|
var Fo = A(function o(e) {
|
|
593
593
|
var t = e.height, n = e.width, r = e.x, i = e.y;
|
|
594
594
|
G(this, o), this.height = t, this.width = n, this.x = r, this.y = i, this._indexMap = {}, this._indices = [];
|
|
@@ -633,7 +633,7 @@ var Fo = A(function o(e) {
|
|
|
633
633
|
return n.addCellIndex({ index: t });
|
|
634
634
|
});
|
|
635
635
|
} }]);
|
|
636
|
-
function
|
|
636
|
+
function qe(o) {
|
|
637
637
|
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;
|
|
638
638
|
switch (t) {
|
|
639
639
|
case "start":
|
|
@@ -669,7 +669,7 @@ var Xe = function() {
|
|
|
669
669
|
var e = U({}, (function(t) {
|
|
670
670
|
if (t == null) throw new TypeError("Cannot destructure " + t);
|
|
671
671
|
}(this.props), this.props));
|
|
672
|
-
return x.createElement(
|
|
672
|
+
return x.createElement(ge, U({ cellLayoutManager: this, isScrollingChange: this._isScrollingChange, ref: this._setCollectionViewRef }, e));
|
|
673
673
|
} }, { key: "calculateSizeAndPositionData", value: function() {
|
|
674
674
|
var e = this.props, t = function(n) {
|
|
675
675
|
for (var r = n.cellCount, i = n.cellSizeAndPositionGetter, l = [], a = new No(n.sectionSize), s = 0, c = 0, d = 0; d < r; d++) {
|
|
@@ -687,7 +687,7 @@ var Xe = function() {
|
|
|
687
687
|
var t = e.align, n = e.cellIndex, r = e.height, i = e.scrollLeft, l = e.scrollTop, a = e.width, s = this.props.cellCount;
|
|
688
688
|
if (n >= 0 && n < s) {
|
|
689
689
|
var c = this._cellMetadata[n];
|
|
690
|
-
i =
|
|
690
|
+
i = qe({ align: t, cellOffset: c.x, cellSize: c.width, containerSize: a, currentOffset: i }), l = qe({ align: t, cellOffset: c.y, cellSize: c.height, containerSize: r, currentOffset: l });
|
|
691
691
|
}
|
|
692
692
|
return { scrollLeft: i, scrollTop: l };
|
|
693
693
|
} }, { key: "getTotalSize", value: function() {
|
|
@@ -720,7 +720,7 @@ function Ye(o) {
|
|
|
720
720
|
}
|
|
721
721
|
function ne(o, e) {
|
|
722
722
|
if (o == null) return {};
|
|
723
|
-
var t, n, r =
|
|
723
|
+
var t, n, r = zo(o, e);
|
|
724
724
|
if (Object.getOwnPropertySymbols) {
|
|
725
725
|
var i = Object.getOwnPropertySymbols(o);
|
|
726
726
|
for (n = 0; n < i.length; n++) t = i[n], e.indexOf(t) === -1 && {}.propertyIsEnumerable.call(o, t) && (r[t] = o[t]);
|
|
@@ -872,15 +872,15 @@ var F, Bo = A(function o(e) {
|
|
|
872
872
|
return Math.round(i * (n - e));
|
|
873
873
|
} }]);
|
|
874
874
|
function Ze(o) {
|
|
875
|
-
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(),
|
|
876
|
-
|
|
875
|
+
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(), m = d >= 0 && d < _;
|
|
876
|
+
m && (h !== a || f || !r || typeof e == "number" && e !== r || c !== i || d !== l) ? u(d) : !m && _ > 0 && (h < a || _ < n) && s > t.getTotalSize() - h && u(_ - 1);
|
|
877
877
|
}
|
|
878
878
|
var Vo = (F = typeof window < "u" ? window : typeof self < "u" ? self : {}).requestAnimationFrame || F.webkitRequestAnimationFrame || F.mozRequestAnimationFrame || F.oRequestAnimationFrame || F.msRequestAnimationFrame || function(o) {
|
|
879
879
|
return F.setTimeout(o, 1e3 / 60);
|
|
880
880
|
}, $o = F.cancelAnimationFrame || F.webkitCancelAnimationFrame || F.mozCancelAnimationFrame || F.oCancelAnimationFrame || F.msCancelAnimationFrame || function(o) {
|
|
881
881
|
F.clearTimeout(o);
|
|
882
|
-
}, Qe = Vo,
|
|
883
|
-
return
|
|
882
|
+
}, Qe = Vo, Ko = $o, ee = function(o) {
|
|
883
|
+
return Ko(o.id);
|
|
884
884
|
}, Me = function(o, e) {
|
|
885
885
|
var t;
|
|
886
886
|
Promise.resolve().then(function() {
|
|
@@ -953,12 +953,12 @@ var tt = "requested", V = function() {
|
|
|
953
953
|
var t = e.scrollLeft, n = t === void 0 ? 0 : t, r = e.scrollTop, i = r === void 0 ? 0 : r;
|
|
954
954
|
if (!(i < 0)) {
|
|
955
955
|
this._debounceScrollEnded();
|
|
956
|
-
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(),
|
|
957
|
-
if (this.state.scrollLeft !==
|
|
958
|
-
var S = { isScrolling: !0, scrollDirectionHorizontal:
|
|
959
|
-
a || (S.scrollTop =
|
|
956
|
+
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(), m = Math.min(Math.max(0, _ - d + f), n), g = Math.min(Math.max(0, u - c + f), i);
|
|
957
|
+
if (this.state.scrollLeft !== m || this.state.scrollTop !== g) {
|
|
958
|
+
var S = { isScrolling: !0, scrollDirectionHorizontal: m !== this.state.scrollLeft ? m > this.state.scrollLeft ? 1 : -1 : this.state.scrollDirectionHorizontal, scrollDirectionVertical: g !== this.state.scrollTop ? g > this.state.scrollTop ? 1 : -1 : this.state.scrollDirectionVertical, scrollPositionChangeReason: "observed" };
|
|
959
|
+
a || (S.scrollTop = g), s || (S.scrollLeft = m), S.needToResetStyleCache = !1, this.setState(S);
|
|
960
960
|
}
|
|
961
|
-
this._invokeOnScrollMemoizer({ scrollLeft:
|
|
961
|
+
this._invokeOnScrollMemoizer({ scrollLeft: m, scrollTop: g, totalColumnsWidth: _, totalRowsHeight: u });
|
|
962
962
|
}
|
|
963
963
|
} }, { key: "invalidateCellSizeAfterRender", value: function(e) {
|
|
964
964
|
var t = e.columnIndex, n = e.rowIndex;
|
|
@@ -985,50 +985,50 @@ var tt = "requested", V = function() {
|
|
|
985
985
|
var h = n > 0 && s > 0;
|
|
986
986
|
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();
|
|
987
987
|
} }, { key: "componentDidUpdate", value: function(e, t) {
|
|
988
|
-
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,
|
|
988
|
+
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, m = _.scrollLeft, g = _.scrollPositionChangeReason, S = _.scrollTop, y = _.instanceProps;
|
|
989
989
|
this._handleInvalidatedGridSize();
|
|
990
990
|
var v = a > 0 && e.columnCount === 0 || c > 0 && e.rowCount === 0;
|
|
991
|
-
|
|
991
|
+
g === tt && (!l && m >= 0 && (m !== this._scrollingContainer.scrollLeft || v) && (this._scrollingContainer.scrollLeft = m), !i && S >= 0 && (S !== this._scrollingContainer.scrollTop || v) && (this._scrollingContainer.scrollTop = S));
|
|
992
992
|
var C = (e.width === 0 || e.height === 0) && s > 0 && u > 0;
|
|
993
|
-
if (this._recomputeScrollLeftFlag ? (this._recomputeScrollLeftFlag = !1, this._updateScrollLeftForScrollToColumn(this.props)) : Ze({ cellSizeAndPositionManager: y.columnSizeAndPositionManager, previousCellsCount: e.columnCount, previousCellSize: e.columnWidth, previousScrollToAlignment: e.scrollToAlignment, previousScrollToIndex: e.scrollToColumn, previousSize: e.width, scrollOffset:
|
|
993
|
+
if (this._recomputeScrollLeftFlag ? (this._recomputeScrollLeftFlag = !1, this._updateScrollLeftForScrollToColumn(this.props)) : Ze({ cellSizeAndPositionManager: y.columnSizeAndPositionManager, previousCellsCount: e.columnCount, previousCellSize: e.columnWidth, previousScrollToAlignment: e.scrollToAlignment, previousScrollToIndex: e.scrollToColumn, previousSize: e.width, scrollOffset: m, scrollToAlignment: d, scrollToIndex: h, size: u, sizeJustIncreasedFromZero: C, updateScrollIndexCallback: function() {
|
|
994
994
|
return n._updateScrollLeftForScrollToColumn(n.props);
|
|
995
995
|
} }), this._recomputeScrollTopFlag ? (this._recomputeScrollTopFlag = !1, this._updateScrollTopForScrollToRow(this.props)) : Ze({ cellSizeAndPositionManager: y.rowSizeAndPositionManager, previousCellsCount: e.rowCount, previousCellSize: e.rowHeight, previousScrollToAlignment: e.scrollToAlignment, previousScrollToIndex: e.scrollToRow, previousSize: e.height, scrollOffset: S, scrollToAlignment: d, scrollToIndex: f, size: s, sizeJustIncreasedFromZero: C, updateScrollIndexCallback: function() {
|
|
996
996
|
return n._updateScrollTopForScrollToRow(n.props);
|
|
997
|
-
} }), this._invokeOnGridRenderedHelper(),
|
|
997
|
+
} }), this._invokeOnGridRenderedHelper(), m !== t.scrollLeft || S !== t.scrollTop) {
|
|
998
998
|
var w = y.rowSizeAndPositionManager.getTotalSize(), b = y.columnSizeAndPositionManager.getTotalSize();
|
|
999
|
-
this._invokeOnScrollMemoizer({ scrollLeft:
|
|
999
|
+
this._invokeOnScrollMemoizer({ scrollLeft: m, scrollTop: S, totalColumnsWidth: b, totalRowsHeight: w });
|
|
1000
1000
|
}
|
|
1001
1001
|
this._maybeCallOnScrollbarPresenceChange();
|
|
1002
1002
|
} }, { key: "componentWillUnmount", value: function() {
|
|
1003
1003
|
this._disablePointerEventsTimeoutId && ee(this._disablePointerEventsTimeoutId);
|
|
1004
1004
|
} }, { key: "render", value: function() {
|
|
1005
|
-
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,
|
|
1005
|
+
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, m = e.width, g = this.state, S = g.instanceProps, y = g.needToResetStyleCache, v = this._isScrolling(), C = { boxSizing: "border-box", direction: "ltr", height: n ? "auto" : c, position: "relative", width: r ? "auto" : m, WebkitOverflowScrolling: "touch", willChange: "transform" };
|
|
1006
1006
|
y && (this._styleCache = {}), this.state.isScrolling || this._resetStyleCache(), this._calculateChildrenToRender(this.props, this.state);
|
|
1007
|
-
var w = S.columnSizeAndPositionManager.getTotalSize(), b = S.rowSizeAndPositionManager.getTotalSize(), R = b > c ? S.scrollbarSize : 0,
|
|
1008
|
-
|
|
1009
|
-
var I = this._childrenToDisplay, k = I.length === 0 && c > 0 &&
|
|
1007
|
+
var w = S.columnSizeAndPositionManager.getTotalSize(), b = S.rowSizeAndPositionManager.getTotalSize(), R = b > c ? S.scrollbarSize : 0, T = w > m ? S.scrollbarSize : 0;
|
|
1008
|
+
T === this._horizontalScrollBarSize && R === this._verticalScrollBarSize || (this._horizontalScrollBarSize = T, this._verticalScrollBarSize = R, this._scrollbarPresenceChanged = !0), C.overflowX = w + R <= m ? "hidden" : "auto", C.overflowY = b + T <= c ? "hidden" : "auto";
|
|
1009
|
+
var I = this._childrenToDisplay, k = I.length === 0 && c > 0 && m > 0;
|
|
1010
1010
|
return x.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: j(j({}, C), u), tabIndex: _ }), I.length > 0 && x.createElement("div", { className: "ReactVirtualized__Grid__innerScrollContainer", role: a, style: j({ width: t ? "auto" : w, height: b, maxWidth: w, maxHeight: b, overflow: "hidden", pointerEvents: v ? "none" : "", position: "relative" }, s) }, I), k && h());
|
|
1011
1011
|
} }, { key: "_calculateChildrenToRender", value: function() {
|
|
1012
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.props, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.state, n = e.cellRenderer, r = e.cellRangeRenderer, 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,
|
|
1012
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.props, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.state, n = e.cellRenderer, r = e.cellRangeRenderer, 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, m = t.scrollDirectionVertical, g = t.instanceProps, S = this._initialScrollTop > 0 ? this._initialScrollTop : t.scrollTop, y = this._initialScrollLeft > 0 ? this._initialScrollLeft : t.scrollLeft, v = this._isScrolling(e, t);
|
|
1013
1013
|
if (this._childrenToDisplay = [], a > 0 && f > 0) {
|
|
1014
|
-
var C =
|
|
1014
|
+
var C = g.columnSizeAndPositionManager.getVisibleCellRange({ containerSize: f, offset: y }), w = g.rowSizeAndPositionManager.getVisibleCellRange({ containerSize: a, offset: S }), b = g.columnSizeAndPositionManager.getOffsetAdjustment({ containerSize: f, offset: y }), R = g.rowSizeAndPositionManager.getOffsetAdjustment({ containerSize: a, offset: S });
|
|
1015
1015
|
this._renderedColumnStartIndex = C.start, this._renderedColumnStopIndex = C.stop, this._renderedRowStartIndex = w.start, this._renderedRowStopIndex = w.stop;
|
|
1016
|
-
var
|
|
1016
|
+
var T = c({ direction: "horizontal", cellCount: i, overscanCellsCount: s, scrollDirection: _, startIndex: typeof C.start == "number" ? C.start : 0, stopIndex: typeof C.stop == "number" ? C.stop : -1 }), I = c({ direction: "vertical", cellCount: h, overscanCellsCount: d, scrollDirection: m, startIndex: typeof w.start == "number" ? w.start : 0, stopIndex: typeof w.stop == "number" ? w.stop : -1 }), k = T.overscanStartIndex, z = T.overscanStopIndex, P = I.overscanStartIndex, M = I.overscanStopIndex;
|
|
1017
1017
|
if (l) {
|
|
1018
1018
|
if (!l.hasFixedHeight()) {
|
|
1019
1019
|
for (var H = P; H <= M; H++) if (!l.has(H, 0)) {
|
|
1020
|
-
k = 0,
|
|
1020
|
+
k = 0, z = i - 1;
|
|
1021
1021
|
break;
|
|
1022
1022
|
}
|
|
1023
1023
|
}
|
|
1024
1024
|
if (!l.hasFixedWidth()) {
|
|
1025
|
-
for (var
|
|
1025
|
+
for (var q = k; q <= z; q++) if (!l.has(0, q)) {
|
|
1026
1026
|
P = 0, M = h - 1;
|
|
1027
1027
|
break;
|
|
1028
1028
|
}
|
|
1029
1029
|
}
|
|
1030
1030
|
}
|
|
1031
|
-
this._childrenToDisplay = r({ cellCache: this._cellCache, cellRenderer: n, columnSizeAndPositionManager:
|
|
1031
|
+
this._childrenToDisplay = r({ cellCache: this._cellCache, cellRenderer: n, columnSizeAndPositionManager: g.columnSizeAndPositionManager, columnStartIndex: k, columnStopIndex: z, deferredMeasurementCache: l, horizontalOffsetAdjustment: b, isScrolling: v, isScrollingOptOut: u, parent: this, rowSizeAndPositionManager: g.rowSizeAndPositionManager, rowStartIndex: P, rowStopIndex: M, scrollLeft: y, scrollTop: S, styleCache: this._styleCache, verticalOffsetAdjustment: R, visibleColumnIndices: C, visibleRowIndices: w }), this._columnStartIndex = k, this._columnStopIndex = z, this._rowStartIndex = P, this._rowStopIndex = M;
|
|
1032
1032
|
}
|
|
1033
1033
|
} }, { key: "_debounceScrollEnded", value: function() {
|
|
1034
1034
|
var e = this.props.scrollingResetTimeInterval;
|
|
@@ -1147,11 +1147,11 @@ function Ht() {
|
|
|
1147
1147
|
})();
|
|
1148
1148
|
}
|
|
1149
1149
|
p(V, "defaultProps", { "aria-label": "grid", "aria-readonly": !0, autoContainerWidth: !1, autoHeight: !1, autoWidth: !1, cellRangeRenderer: function(o) {
|
|
1150
|
-
for (var e = o.cellCache, t = o.cellRenderer, n = o.columnSizeAndPositionManager, r = o.columnStartIndex, 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,
|
|
1151
|
-
var
|
|
1152
|
-
C && _[k] ?
|
|
1153
|
-
var P = { columnIndex: R, isScrolling: s, isVisible: I, key: k, parent: d, rowIndex: w, style:
|
|
1154
|
-
!c && !s || a ||
|
|
1150
|
+
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, m = o.verticalOffsetAdjustment, g = o.visibleColumnIndices, S = o.visibleRowIndices, y = [], v = n.areOffsetsAdjusted() || h.areOffsetsAdjusted(), C = !s && !v, w = f; w <= u; w++) for (var b = h.getSizeAndPositionOfCell(w), R = r; R <= i; R++) {
|
|
1151
|
+
var T = n.getSizeAndPositionOfCell(R), I = R >= g.start && R <= g.stop && w >= S.start && w <= S.stop, k = "".concat(w, "-").concat(R), z = void 0;
|
|
1152
|
+
C && _[k] ? z = _[k] : l && !l.has(w, R) ? z = { height: "auto", left: 0, position: "absolute", top: 0, width: "auto" } : (z = { height: b.size, left: T.offset + a, position: "absolute", top: b.offset + m, width: T.size }, _[k] = z);
|
|
1153
|
+
var P = { columnIndex: R, isScrolling: s, isVisible: I, key: k, parent: d, rowIndex: w, style: z }, M = void 0;
|
|
1154
|
+
!c && !s || a || m ? M = t(P) : (e[k] || (e[k] = t(P)), M = e[k]), M != null && M !== !1 && (M.props.role || (M = yt.cloneElement(M, { role: "gridcell" })), y.push(M));
|
|
1155
1155
|
}
|
|
1156
1156
|
return y;
|
|
1157
1157
|
}, containerRole: "row", containerStyle: {}, estimatedColumnSize: 100, estimatedRowSize: 30, getScrollbarSize: be, noContentRenderer: function() {
|
|
@@ -1189,15 +1189,15 @@ var ot = function() {
|
|
|
1189
1189
|
this._lastRenderedStartIndex = t, this._lastRenderedStopIndex = n, this._doStuff(t, n);
|
|
1190
1190
|
} }, { key: "_doStuff", value: function(e, t) {
|
|
1191
1191
|
var n, r = this, i = this.props, l = i.isRowLoaded, a = i.minimumBatchSize, s = i.rowCount, c = i.threshold, d = function(f) {
|
|
1192
|
-
for (var u = f.isRowLoaded, _ = f.minimumBatchSize,
|
|
1192
|
+
for (var u = f.isRowLoaded, _ = f.minimumBatchSize, m = f.rowCount, g = f.stopIndex, S = [], y = null, v = null, C = f.startIndex; C <= g; C++) u({ index: C }) ? v !== null && (S.push({ startIndex: y, stopIndex: v }), y = v = null) : (v = C, y === null && (y = C));
|
|
1193
1193
|
if (v !== null) {
|
|
1194
|
-
for (var w = Math.min(Math.max(v, y + _ - 1),
|
|
1194
|
+
for (var w = Math.min(Math.max(v, y + _ - 1), m - 1), b = v + 1; b <= w && !u({ index: b }); b++) v = b;
|
|
1195
1195
|
S.push({ startIndex: y, stopIndex: v });
|
|
1196
1196
|
}
|
|
1197
1197
|
if (S.length) for (var R = S[0]; R.stopIndex - R.startIndex + 1 < _ && R.startIndex > 0; ) {
|
|
1198
|
-
var
|
|
1199
|
-
if (u({ index:
|
|
1200
|
-
R.startIndex =
|
|
1198
|
+
var T = R.startIndex - 1;
|
|
1199
|
+
if (u({ index: T })) break;
|
|
1200
|
+
R.startIndex = T;
|
|
1201
1201
|
}
|
|
1202
1202
|
return S;
|
|
1203
1203
|
}({ 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) {
|
|
@@ -1230,14 +1230,14 @@ function Wt() {
|
|
|
1230
1230
|
})();
|
|
1231
1231
|
}
|
|
1232
1232
|
p(ot, "defaultProps", { minimumBatchSize: 10, rowCount: 0, threshold: 15 }), ot.propTypes = {};
|
|
1233
|
-
var
|
|
1233
|
+
var qo = function() {
|
|
1234
1234
|
function o() {
|
|
1235
1235
|
var e, t, n, r;
|
|
1236
1236
|
G(this, o);
|
|
1237
1237
|
for (var i = arguments.length, l = new Array(i), a = 0; a < i; a++) l[a] = arguments[a];
|
|
1238
1238
|
return t = this, n = o, r = [].concat(l), n = O(n), p(e = W(t, Wt() ? Reflect.construct(n, r || [], O(t).constructor) : n.apply(t, r)), "Grid", void 0), p(e, "_cellRenderer", function(s) {
|
|
1239
|
-
var c = s.parent, d = s.rowIndex, h = s.style, f = s.isScrolling, u = s.isVisible, _ = s.key,
|
|
1240
|
-
return
|
|
1239
|
+
var c = s.parent, d = s.rowIndex, h = s.style, f = s.isScrolling, u = s.isVisible, _ = s.key, m = e.props.rowRenderer, g = Object.getOwnPropertyDescriptor(h, "width");
|
|
1240
|
+
return g && g.writable && (h.width = "100%"), m({ index: d, style: h, isScrolling: f, isVisible: u, key: _, parent: c });
|
|
1241
1241
|
}), p(e, "_setRef", function(s) {
|
|
1242
1242
|
e.Grid = s;
|
|
1243
1243
|
}), p(e, "_onScroll", function(s) {
|
|
@@ -1275,7 +1275,7 @@ var Ko = function() {
|
|
|
1275
1275
|
return x.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 }));
|
|
1276
1276
|
} }]);
|
|
1277
1277
|
}();
|
|
1278
|
-
p(
|
|
1278
|
+
p(qo, "defaultProps", { autoHeight: !1, estimatedRowSize: 30, onScroll: function() {
|
|
1279
1279
|
}, noRowsRenderer: function() {
|
|
1280
1280
|
return null;
|
|
1281
1281
|
}, onRowsRendered: function() {
|
|
@@ -1335,10 +1335,10 @@ function st(o, e) {
|
|
|
1335
1335
|
function Xo(o, e) {
|
|
1336
1336
|
return o - e;
|
|
1337
1337
|
}
|
|
1338
|
-
function
|
|
1338
|
+
function Te(o, e) {
|
|
1339
1339
|
return o[0] - e[0] || o[1] - e[1];
|
|
1340
1340
|
}
|
|
1341
|
-
function
|
|
1341
|
+
function ze(o, e) {
|
|
1342
1342
|
return o[1] - e[1] || o[0] - e[0];
|
|
1343
1343
|
}
|
|
1344
1344
|
function se(o) {
|
|
@@ -1351,7 +1351,7 @@ function se(o) {
|
|
|
1351
1351
|
a[1] < n ? r.push(a) : n < a[0] ? i.push(a) : l.push(a);
|
|
1352
1352
|
}
|
|
1353
1353
|
var s = l, c = l.slice();
|
|
1354
|
-
return s.sort(
|
|
1354
|
+
return s.sort(Te), c.sort(ze), new Le(n, se(r), se(i), s, c);
|
|
1355
1355
|
}
|
|
1356
1356
|
function jt(o) {
|
|
1357
1357
|
this.root = o;
|
|
@@ -1363,7 +1363,7 @@ oe.intervals = function(o) {
|
|
|
1363
1363
|
if (this.count += 1, o[1] < this.mid) this.left ? 4 * (this.left.count + 1) > 3 * (e + 1) ? nt(this, o) : this.left.insert(o) : this.left = se([o]);
|
|
1364
1364
|
else if (o[0] > this.mid) this.right ? 4 * (this.right.count + 1) > 3 * (e + 1) ? nt(this, o) : this.right.insert(o) : this.right = se([o]);
|
|
1365
1365
|
else {
|
|
1366
|
-
var t = pe(this.leftPoints, o,
|
|
1366
|
+
var t = pe(this.leftPoints, o, Te), n = pe(this.rightPoints, o, ze);
|
|
1367
1367
|
this.leftPoints.splice(t, 0, o), this.rightPoints.splice(n, 0, o);
|
|
1368
1368
|
}
|
|
1369
1369
|
}, oe.remove = function(o) {
|
|
@@ -1383,8 +1383,8 @@ oe.intervals = function(o) {
|
|
|
1383
1383
|
} else this.left ? ye(this, this.left) : ye(this, this.right);
|
|
1384
1384
|
return 1;
|
|
1385
1385
|
}
|
|
1386
|
-
for (r = pe(this.leftPoints, o,
|
|
1387
|
-
for (this.count -= 1, this.leftPoints.splice(r, 1), i = pe(this.rightPoints, o,
|
|
1386
|
+
for (r = pe(this.leftPoints, o, Te); r < this.leftPoints.length && this.leftPoints[r][0] === o[0]; ++r) if (this.leftPoints[r] === o) {
|
|
1387
|
+
for (this.count -= 1, this.leftPoints.splice(r, 1), i = pe(this.rightPoints, o, ze); i < this.rightPoints.length && this.rightPoints[i][1] === o[1]; ++i) if (this.rightPoints[i] === o) return this.rightPoints.splice(i, 1), 1;
|
|
1388
1388
|
}
|
|
1389
1389
|
return 0;
|
|
1390
1390
|
}, oe.queryPoint = function(o, e) {
|
|
@@ -1426,14 +1426,14 @@ var we = A(function o() {
|
|
|
1426
1426
|
}(s) || function(d, h) {
|
|
1427
1427
|
var f = d == null ? null : typeof Symbol < "u" && d[Symbol.iterator] || d["@@iterator"];
|
|
1428
1428
|
if (f != null) {
|
|
1429
|
-
var u, _,
|
|
1429
|
+
var u, _, m, g, S = [], y = !0, v = !1;
|
|
1430
1430
|
try {
|
|
1431
|
-
if (
|
|
1431
|
+
if (m = (f = f.call(d)).next, h !== 0) for (; !(y = (u = m.call(f)).done) && (S.push(u.value), S.length !== h); y = !0) ;
|
|
1432
1432
|
} catch (C) {
|
|
1433
1433
|
v = !0, _ = C;
|
|
1434
1434
|
} finally {
|
|
1435
1435
|
try {
|
|
1436
|
-
if (!y && f.return != null && (
|
|
1436
|
+
if (!y && f.return != null && (g = f.return(), Object(g) !== g)) return;
|
|
1437
1437
|
} finally {
|
|
1438
1438
|
if (v) throw _;
|
|
1439
1439
|
}
|
|
@@ -1530,11 +1530,11 @@ var ct = function() {
|
|
|
1530
1530
|
} }, { key: "componentWillUnmount", value: function() {
|
|
1531
1531
|
this._debounceResetIsScrollingId && ee(this._debounceResetIsScrollingId);
|
|
1532
1532
|
} }, { key: "render", value: function() {
|
|
1533
|
-
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,
|
|
1533
|
+
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, m = n.tabIndex, g = n.width, S = n.rowDirection, y = this.state, v = y.isScrolling, C = y.scrollTop, w = [], b = this._getEstimatedTotalHeight(), R = this._positionCache.shortestColumnSize, T = this._positionCache.count, I = 0;
|
|
1534
1534
|
if (this._positionCache.range(Math.max(0, C - f), c + 2 * f, function(P, M, H) {
|
|
1535
1535
|
e === void 0 ? (I = P, e = P) : (I = Math.min(I, P), e = Math.max(e, P)), w.push(a({ index: P, isScrolling: v, key: h(P), parent: t, style: p(p(p(p({ height: l.getHeight(P) }, S === "ltr" ? "left" : "right", M), "position", "absolute"), "top", H), "width", l.getWidth(P)) }));
|
|
1536
|
-
}), R < C + c + f &&
|
|
1537
|
-
return this._startIndex = I, this._stopIndex = e, x.createElement("div", { ref: this._setScrollingContainerRef, "aria-label": this.props["aria-label"], className: N("ReactVirtualized__Masonry", s), id: d, onScroll: this._onScroll, role: u, style: Yo({ boxSizing: "border-box", direction: "ltr", height: r ? "auto" : c, overflowX: "hidden", overflowY: b < c ? "hidden" : "auto", position: "relative", width:
|
|
1536
|
+
}), R < C + c + f && T < i) for (var k = Math.min(i - T, Math.ceil((C + c + f - R) / l.defaultHeight * g / l.defaultWidth)), z = T; z < T + k; z++) e = z, w.push(a({ index: z, isScrolling: v, key: h(z), parent: this, style: { width: l.getWidth(z) } }));
|
|
1537
|
+
return this._startIndex = I, this._stopIndex = e, x.createElement("div", { ref: this._setScrollingContainerRef, "aria-label": this.props["aria-label"], className: N("ReactVirtualized__Masonry", s), id: d, onScroll: this._onScroll, role: u, style: Yo({ boxSizing: "border-box", direction: "ltr", height: r ? "auto" : c, overflowX: "hidden", overflowY: b < c ? "hidden" : "auto", position: "relative", width: g, WebkitOverflowScrolling: "touch", willChange: "transform" }, _), tabIndex: m }, x.createElement("div", { className: "ReactVirtualized__Masonry__innerScrollContainer", style: { width: "100%", height: b, maxWidth: "100%", maxHeight: b, overflow: "hidden", pointerEvents: v ? "none" : "", position: "relative" } }, w));
|
|
1538
1538
|
} }, { key: "_checkInvalidateOnUpdate", value: function() {
|
|
1539
1539
|
if (typeof this._invalidateOnUpdateStartIndex == "number") {
|
|
1540
1540
|
var e = this._invalidateOnUpdateStartIndex, t = this._invalidateOnUpdateStopIndex;
|
|
@@ -1639,25 +1639,25 @@ var xe = function() {
|
|
|
1639
1639
|
}), p(n, "_bottomRightGridRef", function(d) {
|
|
1640
1640
|
n._bottomRightGrid = d;
|
|
1641
1641
|
}), p(n, "_cellRendererBottomLeftGrid", function(d) {
|
|
1642
|
-
var h = d.rowIndex, f = ne(d, Jo), u = n.props, _ = u.cellRenderer,
|
|
1643
|
-
return h === u.rowCount -
|
|
1642
|
+
var h = d.rowIndex, f = ne(d, Jo), u = n.props, _ = u.cellRenderer, m = u.fixedRowCount;
|
|
1643
|
+
return h === u.rowCount - m ? x.createElement("div", { key: f.key, style: L(L({}, f.style), {}, { height: 20 }) }) : _(L(L({}, f), {}, { parent: n, rowIndex: h + m }));
|
|
1644
1644
|
}), p(n, "_cellRendererBottomRightGrid", function(d) {
|
|
1645
|
-
var h = d.columnIndex, f = d.rowIndex, u = ne(d, Zo), _ = n.props,
|
|
1646
|
-
return
|
|
1645
|
+
var h = d.columnIndex, f = d.rowIndex, u = ne(d, Zo), _ = n.props, m = _.cellRenderer, g = _.fixedColumnCount, S = _.fixedRowCount;
|
|
1646
|
+
return m(L(L({}, u), {}, { columnIndex: h + g, parent: n, rowIndex: f + S }));
|
|
1647
1647
|
}), p(n, "_cellRendererTopRightGrid", function(d) {
|
|
1648
|
-
var h = d.columnIndex, f = ne(d, Qo), u = n.props, _ = u.cellRenderer,
|
|
1649
|
-
return h ===
|
|
1648
|
+
var h = d.columnIndex, f = ne(d, Qo), u = n.props, _ = u.cellRenderer, m = u.columnCount, g = u.fixedColumnCount;
|
|
1649
|
+
return h === m - g ? x.createElement("div", { key: f.key, style: L(L({}, f.style), {}, { width: 20 }) }) : _(L(L({}, f), {}, { columnIndex: h + g, parent: n }));
|
|
1650
1650
|
}), p(n, "_columnWidthRightGrid", function(d) {
|
|
1651
|
-
var h = d.index, f = n.props, u = f.columnCount, _ = f.fixedColumnCount,
|
|
1652
|
-
return
|
|
1651
|
+
var h = d.index, f = n.props, u = f.columnCount, _ = f.fixedColumnCount, m = f.columnWidth, g = n.state, S = g.scrollbarSize;
|
|
1652
|
+
return g.showHorizontalScrollbar && h === u - _ ? S : typeof m == "function" ? m({ index: h + _ }) : m;
|
|
1653
1653
|
}), p(n, "_onScroll", function(d) {
|
|
1654
1654
|
var h = d.scrollLeft, f = d.scrollTop;
|
|
1655
1655
|
n.setState({ scrollLeft: h, scrollTop: f });
|
|
1656
1656
|
var u = n.props.onScroll;
|
|
1657
1657
|
u && u(d);
|
|
1658
1658
|
}), p(n, "_onScrollbarPresenceChange", function(d) {
|
|
1659
|
-
var h = d.horizontal, f = d.size, u = d.vertical, _ = n.state,
|
|
1660
|
-
if (h !==
|
|
1659
|
+
var h = d.horizontal, f = d.size, u = d.vertical, _ = n.state, m = _.showHorizontalScrollbar, g = _.showVerticalScrollbar;
|
|
1660
|
+
if (h !== m || u !== g) {
|
|
1661
1661
|
n.setState({ scrollbarSize: f, showHorizontalScrollbar: h, showVerticalScrollbar: u });
|
|
1662
1662
|
var S = n.props.onScrollbarPresenceChange;
|
|
1663
1663
|
typeof S == "function" && S({ horizontal: h, size: f, vertical: u });
|
|
@@ -1669,8 +1669,8 @@ var xe = function() {
|
|
|
1669
1669
|
var h = d.scrollTop;
|
|
1670
1670
|
n._onScroll({ scrollTop: h, scrollLeft: n.state.scrollLeft });
|
|
1671
1671
|
}), p(n, "_rowHeightBottomGrid", function(d) {
|
|
1672
|
-
var h = d.index, f = n.props, u = f.fixedRowCount, _ = f.rowCount,
|
|
1673
|
-
return
|
|
1672
|
+
var h = d.index, f = n.props, u = f.fixedRowCount, _ = f.rowCount, m = f.rowHeight, g = n.state, S = g.scrollbarSize;
|
|
1673
|
+
return g.showVerticalScrollbar && h === _ - u ? S : typeof m == "function" ? m({ index: h + u }) : m;
|
|
1674
1674
|
}), p(n, "_topLeftGridRef", function(d) {
|
|
1675
1675
|
n._topLeftGrid = d;
|
|
1676
1676
|
}), p(n, "_topRightGridRef", function(d) {
|
|
@@ -1731,8 +1731,8 @@ var xe = function() {
|
|
|
1731
1731
|
this._deferredInvalidateColumnIndex = null, this._deferredInvalidateRowIndex = null, this.recomputeGridSize({ columnIndex: e, rowIndex: t }), this.forceUpdate();
|
|
1732
1732
|
}
|
|
1733
1733
|
} }, { key: "_maybeCalculateCachedStyles", value: function(e) {
|
|
1734
|
-
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,
|
|
1735
|
-
(e ||
|
|
1734
|
+
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, m = t.width, g = e || l !== this._lastRenderedHeight || m !== this._lastRenderedWidth, S = e || n !== this._lastRenderedColumnWidth || a !== this._lastRenderedFixedColumnCount, y = e || s !== this._lastRenderedFixedRowCount || c !== this._lastRenderedRowHeight;
|
|
1735
|
+
(e || g || d !== this._lastRenderedStyle) && (this._containerOuterStyle = L({ height: l, overflow: "visible", width: m }, d)), (e || g || y) && (this._containerTopStyle = { height: this._getTopGridHeight(this.props), position: "relative", width: m }, this._containerBottomStyle = { height: l - this._getTopGridHeight(this.props), overflow: "visible", position: "relative", width: m }), (e || h !== this._lastRenderedStyleBottomLeftGrid) && (this._bottomLeftGridStyle = L({ left: 0, overflowX: "hidden", overflowY: r ? "auto" : "hidden", position: "absolute" }, h)), (e || S || f !== this._lastRenderedStyleBottomRightGrid) && (this._bottomRightGridStyle = L({ left: this._getLeftGridWidth(this.props), position: "absolute" }, f)), (e || u !== this._lastRenderedStyleTopLeftGrid) && (this._topLeftGridStyle = L({ left: 0, overflowX: "hidden", overflowY: "hidden", position: "absolute", top: 0 }, u)), (e || S || _ !== this._lastRenderedStyleTopRightGrid) && (this._topRightGridStyle = L({ 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 = m;
|
|
1736
1736
|
} }, { key: "_prepareForRender", value: function() {
|
|
1737
1737
|
this._lastRenderedColumnWidth === this.props.columnWidth && this._lastRenderedFixedColumnCount === this.props.fixedColumnCount || (this._leftGridWidth = null), this._lastRenderedFixedRowCount === this.props.fixedRowCount && this._lastRenderedRowHeight === this.props.rowHeight || (this._topGridHeight = null), this._maybeCalculateCachedStyles(), this._lastRenderedColumnWidth = this.props.columnWidth, this._lastRenderedFixedColumnCount = this.props.fixedColumnCount, this._lastRenderedFixedRowCount = this.props.fixedRowCount, this._lastRenderedRowHeight = this.props.rowHeight;
|
|
1738
1738
|
} }, { key: "_renderBottomLeftGrid", value: function(e) {
|
|
@@ -1749,9 +1749,9 @@ var xe = function() {
|
|
|
1749
1749
|
} }, { key: "_renderTopRightGrid", value: function(e) {
|
|
1750
1750
|
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;
|
|
1751
1751
|
if (!i) return null;
|
|
1752
|
-
var h = c ? 1 : 0, f = this._getTopGridHeight(e), u = this._getRightGridWidth(e), _ = c ? d : 0,
|
|
1753
|
-
a && (
|
|
1754
|
-
var S = x.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:
|
|
1752
|
+
var h = c ? 1 : 0, f = this._getTopGridHeight(e), u = this._getRightGridWidth(e), _ = c ? d : 0, m = f, g = this._topRightGridStyle;
|
|
1753
|
+
a && (m = f + _, g = L(L({}, this._topRightGridStyle), {}, { left: 0 }));
|
|
1754
|
+
var S = x.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: m, onScroll: n ? this._onScrollLeft : void 0, ref: this._topRightGridRef, rowCount: i, scrollLeft: l, style: g, tabIndex: null, width: u }));
|
|
1755
1755
|
return a ? x.createElement("div", { className: "TopRightGrid_ScrollWrapper", style: L(L({}, this._topRightGridStyle), {}, { height: f, width: u, overflowX: "hidden" }) }, S) : S;
|
|
1756
1756
|
} }], [{ key: "getDerivedStateFromProps", value: function(e, t) {
|
|
1757
1757
|
return e.scrollLeft !== t.scrollLeft || e.scrollTop !== t.scrollTop ? { scrollLeft: e.scrollLeft != null && e.scrollLeft >= 0 ? e.scrollLeft : t.scrollLeft, scrollTop: e.scrollTop != null && e.scrollTop >= 0 ? e.scrollTop : t.scrollTop } : null;
|
|
@@ -1882,32 +1882,32 @@ var Pe = function() {
|
|
|
1882
1882
|
} }, { key: "componentDidUpdate", value: function() {
|
|
1883
1883
|
this._setScrollbarWidth();
|
|
1884
1884
|
} }, { key: "render", value: function() {
|
|
1885
|
-
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,
|
|
1885
|
+
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, m = t.scrollToIndex, g = t.style, S = t.width, y = this.state.scrollbarWidth, v = i ? d : d - s, C = typeof u == "function" ? u({ index: -1 }) : u, w = typeof _ == "function" ? _({ index: -1 }) : _;
|
|
1886
1886
|
return this._cachedColumnStyles = [], x.Children.toArray(n).forEach(function(b, R) {
|
|
1887
|
-
var
|
|
1888
|
-
e._cachedColumnStyles[R] = B({ overflow: "hidden" },
|
|
1889
|
-
}), x.createElement("div", { "aria-label": this.props["aria-label"], "aria-labelledby": this.props["aria-labelledby"], "aria-colcount": x.Children.toArray(n).length, "aria-rowcount": this.props.rowCount, className: N("ReactVirtualized__Table", r), id: h, role: "grid", style:
|
|
1887
|
+
var T = e._getFlexStyleForColumn(b, b.props.style || ve.defaultProps.style);
|
|
1888
|
+
e._cachedColumnStyles[R] = B({ overflow: "hidden" }, T);
|
|
1889
|
+
}), x.createElement("div", { "aria-label": this.props["aria-label"], "aria-labelledby": this.props["aria-labelledby"], "aria-colcount": x.Children.toArray(n).length, "aria-rowcount": this.props.rowCount, className: N("ReactVirtualized__Table", r), id: h, role: "grid", style: g }, !i && c({ className: N("ReactVirtualized__Table__headerRow", C), columns: this._getHeaderColumns(), style: B({ height: s, overflow: "hidden", paddingRight: y, width: S }, w) }), x.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: m, style: B(B({}, a), {}, { overflowX: "hidden" }) })));
|
|
1890
1890
|
} }, { key: "_createColumn", value: function(e) {
|
|
1891
|
-
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,
|
|
1892
|
-
return x.createElement("div", { "aria-colindex": n + 1, "aria-describedby":
|
|
1891
|
+
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, m = c.id, g = 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 g == "string" ? g : null;
|
|
1892
|
+
return x.createElement("div", { "aria-colindex": n + 1, "aria-describedby": m, className: N("ReactVirtualized__Table__rowColumn", f), key: "Row" + a + "-Col" + n, onClick: function(v) {
|
|
1893
1893
|
s && s({ columnData: u, dataKey: _, event: v });
|
|
1894
|
-
}, role: "gridcell", style: S, title: y },
|
|
1894
|
+
}, role: "gridcell", style: S, title: y }, g);
|
|
1895
1895
|
} }, { key: "_createHeader", value: function(e) {
|
|
1896
|
-
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,
|
|
1897
|
-
if (
|
|
1898
|
-
var P = _ !== y ? v :
|
|
1899
|
-
|
|
1896
|
+
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, m = c.sortDirection, g = a.props, S = g.columnData, y = g.dataKey, v = g.defaultSortDirection, C = g.disableSort, w = g.headerRenderer, b = g.id, R = g.label, T = !C && u, I = N("ReactVirtualized__Table__headerColumn", d, a.props.headerClassName, { ReactVirtualized__Table__sortableHeaderColumn: T }), k = this._getFlexStyleForColumn(a, B(B({}, h), a.props.headerStyle)), z = w({ columnData: S, dataKey: y, disableSort: C, label: R, sortBy: _, sortDirection: m });
|
|
1897
|
+
if (T || f) {
|
|
1898
|
+
var P = _ !== y ? v : m === Ie ? ae : Ie, M = function(H) {
|
|
1899
|
+
T && u({ defaultSortDirection: v, event: H, sortBy: y, sortDirection: P }), f && f({ columnData: S, dataKey: y, event: H });
|
|
1900
1900
|
};
|
|
1901
1901
|
l = a.props["aria-label"] || R || y, i = "none", r = 0, t = M, n = function(H) {
|
|
1902
1902
|
H.key !== "Enter" && H.key !== " " || M(H);
|
|
1903
1903
|
};
|
|
1904
1904
|
}
|
|
1905
|
-
return _ === y && (i =
|
|
1905
|
+
return _ === y && (i = m === ae ? "ascending" : "descending"), x.createElement("div", { "aria-label": l, "aria-sort": i, className: I, id: b, key: "Header-Col" + s, onClick: t, onKeyDown: n, role: "columnheader", style: k, tabIndex: r }, z);
|
|
1906
1906
|
} }, { key: "_createRow", value: function(e) {
|
|
1907
|
-
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,
|
|
1908
|
-
return t._createColumn({ column: k, columnIndex:
|
|
1909
|
-
}),
|
|
1910
|
-
return S({ className:
|
|
1907
|
+
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, m = s.rowClassName, g = s.rowGetter, S = s.rowRenderer, y = s.rowStyle, v = this.state.scrollbarWidth, C = typeof m == "function" ? m({ index: n }) : m, w = typeof y == "function" ? y({ index: n }) : y, b = g({ index: n }), R = x.Children.toArray(c).map(function(k, z) {
|
|
1908
|
+
return t._createColumn({ column: k, columnIndex: z, isScrolling: r, parent: l, rowData: b, rowIndex: n, scrollbarWidth: v });
|
|
1909
|
+
}), T = N("ReactVirtualized__Table__row", C), I = B(B({}, a), {}, { height: this._getRowHeight(n), overflow: "hidden", paddingRight: v }, w);
|
|
1910
|
+
return S({ className: T, columns: R, index: n, isScrolling: r, key: i, onRowClick: d, onRowDoubleClick: h, onRowRightClick: f, onRowMouseOver: u, onRowMouseOut: _, rowData: b, style: I });
|
|
1911
1911
|
} }, { key: "_getFlexStyleForColumn", value: function(e) {
|
|
1912
1912
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = "".concat(e.props.flexGrow, " ").concat(e.props.flexShrink, " ").concat(e.props.width, "px"), r = B(B({}, t), {}, { flex: n, msFlex: n, WebkitFlex: n });
|
|
1913
1913
|
return e.props.maxWidth && (r.maxWidth = e.props.maxWidth), e.props.minWidth && (r.minWidth = e.props.minWidth), r;
|
|
@@ -1957,42 +1957,42 @@ p(Pe, "defaultProps", { disableHeader: !1, estimatedRowSize: 30, headerHeight: 0
|
|
|
1957
1957
|
var e = o.className, t = o.columns, n = o.style;
|
|
1958
1958
|
return x.createElement("div", { className: e, role: "row", style: n }, t);
|
|
1959
1959
|
}, rowStyle: {}, scrollToAlignment: "auto", scrollToIndex: -1, style: {} }), Pe.propTypes = {};
|
|
1960
|
-
var
|
|
1961
|
-
function
|
|
1960
|
+
var K = [], le = null, $ = null;
|
|
1961
|
+
function Kt() {
|
|
1962
1962
|
$ && ($ = null, document.body && le != null && (document.body.style.pointerEvents = le), le = null);
|
|
1963
1963
|
}
|
|
1964
1964
|
function tn() {
|
|
1965
|
-
|
|
1965
|
+
Kt(), K.forEach(function(o) {
|
|
1966
1966
|
return o.__resetIsScrolling();
|
|
1967
1967
|
});
|
|
1968
1968
|
}
|
|
1969
|
-
function
|
|
1969
|
+
function qt(o) {
|
|
1970
1970
|
o.currentTarget === window && le == null && document.body && (le = document.body.style.pointerEvents, document.body.style.pointerEvents = "none"), function() {
|
|
1971
1971
|
$ && ee($);
|
|
1972
1972
|
var e = 0;
|
|
1973
|
-
|
|
1973
|
+
K.forEach(function(t) {
|
|
1974
1974
|
e = Math.max(e, t.props.scrollingResetTimeInterval);
|
|
1975
1975
|
}), $ = Me(tn, e);
|
|
1976
|
-
}(),
|
|
1976
|
+
}(), K.forEach(function(e) {
|
|
1977
1977
|
e.props.scrollElement === o.currentTarget && e.__handleWindowScrollEvent();
|
|
1978
1978
|
});
|
|
1979
1979
|
}
|
|
1980
1980
|
function ft(o, e) {
|
|
1981
|
-
|
|
1981
|
+
K.some(function(t) {
|
|
1982
1982
|
return t.props.scrollElement === e;
|
|
1983
|
-
}) || e.addEventListener("scroll",
|
|
1983
|
+
}) || e.addEventListener("scroll", qt), K.push(o);
|
|
1984
1984
|
}
|
|
1985
1985
|
function pt(o, e) {
|
|
1986
|
-
(
|
|
1986
|
+
(K = K.filter(function(t) {
|
|
1987
1987
|
return t !== o;
|
|
1988
|
-
})).length || (e.removeEventListener("scroll",
|
|
1988
|
+
})).length || (e.removeEventListener("scroll", qt), $ && (ee($), Kt()));
|
|
1989
1989
|
}
|
|
1990
1990
|
var Ge = function(o) {
|
|
1991
1991
|
return o === window;
|
|
1992
1992
|
}, re = function(o) {
|
|
1993
1993
|
return o.getBoundingClientRect();
|
|
1994
1994
|
};
|
|
1995
|
-
function
|
|
1995
|
+
function mt(o, e) {
|
|
1996
1996
|
if (o) {
|
|
1997
1997
|
if (Ge(o)) {
|
|
1998
1998
|
var t = window, n = t.innerHeight, r = t.innerWidth;
|
|
@@ -2002,7 +2002,7 @@ function gt(o, e) {
|
|
|
2002
2002
|
}
|
|
2003
2003
|
return { height: e.serverHeight, width: e.serverWidth };
|
|
2004
2004
|
}
|
|
2005
|
-
function
|
|
2005
|
+
function gt(o) {
|
|
2006
2006
|
return Ge(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 };
|
|
2007
2007
|
}
|
|
2008
2008
|
function vt(o, e) {
|
|
@@ -2043,7 +2043,7 @@ var Yt = function() {
|
|
|
2043
2043
|
var e, t, n, r;
|
|
2044
2044
|
G(this, o);
|
|
2045
2045
|
for (var i = arguments.length, l = new Array(i), a = 0; a < i; a++) l[a] = arguments[a];
|
|
2046
|
-
return t = this, n = o, r = [].concat(l), n = O(n), p(e = W(t, Xt() ? Reflect.construct(n, r || [], O(t).constructor) : n.apply(t, r)), "_window", Yt()), p(e, "_isMounted", !1), p(e, "_positionFromTop", 0), p(e, "_positionFromLeft", 0), p(e, "_detectElementResize", void 0), p(e, "_child", void 0), p(e, "_windowScrollerRef", x.createRef()), p(e, "state", _t(_t({},
|
|
2046
|
+
return t = this, n = o, r = [].concat(l), n = O(n), p(e = W(t, Xt() ? Reflect.construct(n, r || [], O(t).constructor) : n.apply(t, r)), "_window", Yt()), p(e, "_isMounted", !1), p(e, "_positionFromTop", 0), p(e, "_positionFromLeft", 0), p(e, "_detectElementResize", void 0), p(e, "_child", void 0), p(e, "_windowScrollerRef", x.createRef()), p(e, "state", _t(_t({}, mt(e.props.scrollElement, e.props)), {}, { isScrolling: !1, scrollLeft: 0, scrollTop: 0 })), p(e, "_registerChild", function(s) {
|
|
2047
2047
|
!s || s instanceof Element || console.warn("WindowScroller registerChild expects to be passed Element or null"), e._child = s, e.updatePosition();
|
|
2048
2048
|
}), p(e, "_onChildScroll", function(s) {
|
|
2049
2049
|
var c = s.scrollTop;
|
|
@@ -2061,7 +2061,7 @@ var Yt = function() {
|
|
|
2061
2061
|
if (e._isMounted) {
|
|
2062
2062
|
var s = e.props.onScroll, c = e.props.scrollElement;
|
|
2063
2063
|
if (c) {
|
|
2064
|
-
var d =
|
|
2064
|
+
var d = gt(c), h = Math.max(0, d.left - e._positionFromLeft), f = Math.max(0, d.top - e._positionFromTop);
|
|
2065
2065
|
e.setState({ isScrolling: !0, scrollLeft: h, scrollTop: f }), s({ scrollLeft: h, scrollTop: f });
|
|
2066
2066
|
}
|
|
2067
2067
|
}
|
|
@@ -2077,16 +2077,16 @@ var Yt = function() {
|
|
|
2077
2077
|
var h = document.documentElement, f = re(c), u = re(h);
|
|
2078
2078
|
return { top: f.top - u.top, left: f.left - u.left };
|
|
2079
2079
|
}
|
|
2080
|
-
var _ =
|
|
2081
|
-
return { top:
|
|
2080
|
+
var _ = gt(d), m = re(c), g = re(d);
|
|
2081
|
+
return { top: m.top + _.top - g.top, left: m.left + _.left - g.left };
|
|
2082
2082
|
}(l, e);
|
|
2083
2083
|
this._positionFromTop = a.top, this._positionFromLeft = a.left;
|
|
2084
2084
|
}
|
|
2085
|
-
var s =
|
|
2085
|
+
var s = mt(e, this.props);
|
|
2086
2086
|
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());
|
|
2087
2087
|
} }, { key: "componentDidMount", value: function() {
|
|
2088
2088
|
var e = this.props.scrollElement;
|
|
2089
|
-
this._detectElementResize =
|
|
2089
|
+
this._detectElementResize = zt(), this.updatePosition(e), e && (ft(this, e), this._registerResizeListener(e)), this._isMounted = !0;
|
|
2090
2090
|
} }, { key: "componentDidUpdate", value: function(e, t) {
|
|
2091
2091
|
var n = this.props.scrollElement, r = e.scrollElement;
|
|
2092
2092
|
r !== n && r != null && n != null && (this.updatePosition(n), pt(this, r), ft(this, n), this._unregisterResizeListener(r), this._registerResizeListener(n));
|
|
@@ -2131,20 +2131,20 @@ const rn = Wo(nn)(({ theme: o }) => ({ "& .ReactVirtualized__Table__headerRow":
|
|
|
2131
2131
|
function ln(o) {
|
|
2132
2132
|
const { commands: e, ...t } = o, [n, r] = he(!1), [i, l] = he(""), a = Io(() => {
|
|
2133
2133
|
let u = e.getAllCommands();
|
|
2134
|
-
n || (u = u.filter((
|
|
2135
|
-
const _ = [],
|
|
2134
|
+
n || (u = u.filter((g) => g.command.shortcut())), u.sort((g, S) => g.command.label().localeCompare(S.command.label()));
|
|
2135
|
+
const _ = [], m = (g) => g.replace(/\n\n/g, `
|
|
2136
2136
|
`);
|
|
2137
|
-
for (let
|
|
2138
|
-
const S = u[
|
|
2137
|
+
for (let g = 0; g < u.length; g++) {
|
|
2138
|
+
const S = u[g].command, y = S.shortcut();
|
|
2139
2139
|
if (Array.isArray(y)) {
|
|
2140
2140
|
const v = y;
|
|
2141
|
-
for (let C = 0; C < v.length; C++) _.push({ label: S.label(), description:
|
|
2142
|
-
} else _.push({ label: S.label(), description:
|
|
2141
|
+
for (let C = 0; C < v.length; C++) _.push({ label: S.label(), description: m(S.description()), shortcut: v[C] });
|
|
2142
|
+
} else _.push({ label: S.label(), description: m(S.description()), shortcut: S.shortcut() });
|
|
2143
2143
|
}
|
|
2144
2144
|
return _;
|
|
2145
2145
|
}, [n, e]), [s, c] = he(null);
|
|
2146
2146
|
We(() => {
|
|
2147
|
-
import("./
|
|
2147
|
+
import("./s8U6UEvd4LQsvEnH.mjs").then((u) => {
|
|
2148
2148
|
c(new u.default(a, { threshold: 0, ignoreLocation: !0, keys: ["label", "description"] }));
|
|
2149
2149
|
});
|
|
2150
2150
|
}, [a]);
|
|
@@ -2153,16 +2153,16 @@ function ln(o) {
|
|
|
2153
2153
|
s && uo.debounce(() => {
|
|
2154
2154
|
if (i.trim().length === 0) return void h(a);
|
|
2155
2155
|
const u = s.search(i.trim()), _ = new Array(u.length);
|
|
2156
|
-
for (let
|
|
2156
|
+
for (let m = 0; m < u.length; m++) _[m] = u[m].item;
|
|
2157
2157
|
h(_);
|
|
2158
2158
|
}, 90)();
|
|
2159
|
-
}, [s, i]), Ae(de, { style: { height: 440, width: "100%", display: "flex", flexDirection: "column" }, ...t, children: [Ae(de, { sx: { display: "flex", alignItems: "center", justifyContent: "end", marginBottom: (u) => u.spacing(2), color: (u) => u.palette.text.secondary }, children: [E(ho, { InputProps: { sx: { backgroundImage: `linear-gradient(${Y("#fff", ue(5))}, ${Y("#fff", ue(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: E(fo, { sx: { opacity: i.length > 0 ? 1 : 0, display: i.length > 0 ? "flex" : "none" }, position: "end", children: E(po, { "aria-label": "clear search", onClick: () => l(""), edge: "end", children: E(
|
|
2159
|
+
}, [s, i]), Ae(de, { style: { height: 440, width: "100%", display: "flex", flexDirection: "column" }, ...t, children: [Ae(de, { sx: { display: "flex", alignItems: "center", justifyContent: "end", marginBottom: (u) => u.spacing(2), color: (u) => u.palette.text.secondary }, children: [E(ho, { InputProps: { sx: { backgroundImage: `linear-gradient(${Y("#fff", ue(5))}, ${Y("#fff", ue(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: E(fo, { sx: { opacity: i.length > 0 ? 1 : 0, display: i.length > 0 ? "flex" : "none" }, position: "end", children: E(po, { "aria-label": "clear search", onClick: () => l(""), edge: "end", children: E(mo, {}) }) }) }, 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) => {
|
|
2160
2160
|
l(u.target.value);
|
|
2161
2161
|
}, onKeyDown: (u) => {
|
|
2162
2162
|
u.which === St.Escape && i.length > 0 && (l(""), u.stopPropagation(), u.preventDefault());
|
|
2163
2163
|
}, onContextMenu: (u) => {
|
|
2164
2164
|
u.stopPropagation();
|
|
2165
|
-
} }), E(
|
|
2165
|
+
} }), E(go, { sx: { flex: "1 1 60%" }, control: E(vo, { checked: n, onChange: () => r(!n) }), label: "Show commands without key bindings", labelPlacement: "start" })] }), E(de, { 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(${Y("#fff", ue(5))}, ${Y("#fff", ue(5))})` } }, children: E(rn, { 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 }] }) }), E(de, { 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: E(_o, { 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" : ""}` }) })] });
|
|
2166
2166
|
}
|
|
2167
2167
|
const un = (o) => {
|
|
2168
2168
|
const { title: e = "Shortcut Keys", commands: t, sx: n, ...r } = o;
|