@sheetxl/studio-vanilla 0.8.0-beta.2 → 0.8.0-beta.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/{DIdPQwECld6gubdK2.cjs → 6V1LlorEUj_nSWnU.cjs} +1 -1
- package/browser/cjs/9Fb0mL7xhqVmVTQp.cjs +3 -0
- package/browser/cjs/{CKEselBM-qmMpQBW2.cjs → BFR2qcJJZqIGySId2.cjs} +2 -2
- package/browser/cjs/BItTNeA_ukOziuTp.cjs +41 -0
- package/browser/cjs/Be5j4deP5deGlAPe2.cjs +1 -0
- package/browser/cjs/{BQWmn92gYmxC8eWt.cjs → BhmvJA5P78JScqAa.cjs} +1 -1
- package/browser/cjs/{DLtFM988NCD-jeBV.cjs → Bj3YkKmVIoQ3YtYm.cjs} +4 -4
- package/browser/cjs/{C19UoK2TTtKU_faS.cjs → BqfmTrd9tnu_owvN.cjs} +1 -1
- package/browser/cjs/{DZBKNR9xUMTHWS_D.cjs → BtrnAiRF11y21NX4.cjs} +1 -1
- package/browser/cjs/CClH6iclautDoj8x2.cjs +1 -0
- package/browser/cjs/{GPlG4lbMP89VDHYJ.cjs → CIDcABwPAtKB7XVf.cjs} +3 -3
- package/browser/cjs/{Dg3GaW0QWwnlqetX2.cjs → CJK0UKBYYLMe5y7n2.cjs} +1 -1
- package/browser/cjs/{Bo7EQ8niKmwtAwo_2.cjs → CLHQ0mEi1NKau4Fd2.cjs} +1 -1
- package/browser/cjs/{CtsduUtTrkcWM02v.cjs → CMOeL2fuTqmW07BD.cjs} +199 -199
- package/browser/cjs/{BLAG3kDSthU0SH-E.cjs → CQd4PPsP2BuocLDM.cjs} +2 -2
- package/browser/cjs/{D_IilnLuy_hDaBmI.cjs → CRplh7TkT0zSJ0-T.cjs} +1 -1
- package/browser/cjs/{D5Gp16-G3pjMtypl2.cjs → CSWmGDsxPB7HVJiO2.cjs} +1 -1
- package/browser/cjs/{9vk-L6rRvx20jeQj.cjs → Cj57ZO62uLbSZ0gK.cjs} +1 -1
- package/browser/cjs/{C_T-ehCAzjaVRmTk.cjs → CjqMMBQ8Kk0moB_z.cjs} +1 -1
- package/browser/cjs/CnZ9pMlpPsqEhbLB2.cjs +1 -0
- package/browser/cjs/CpSKXzK-k_sOImbA.cjs +54 -0
- package/browser/cjs/{CTDN-AYeejrfopDC.cjs → CuANpK3BdrKl4Yhe.cjs} +1 -1
- package/browser/cjs/{DHMQnssVXWjGBSs-.cjs → Cw4BDzyIt0BkEzuh.cjs} +1 -1
- package/browser/cjs/D689Ek3LK_7M1YS9.cjs +14 -0
- package/browser/cjs/{ibvsavYh4kU-xxL8.cjs → D6OTRWh1ys5CR_lb.cjs} +1 -1
- package/browser/cjs/DDvxqFQeKcwQCcgl2.cjs +1 -0
- package/browser/cjs/{DA0nGLC0bEkOhh7G2.cjs → DOQTjBWUIU3tFiC42.cjs} +1 -1
- package/browser/cjs/{9rXsWW4SnEpudhfh.cjs → DOjeFFlUuGZs14pR.cjs} +1 -1
- package/browser/cjs/{3a3qEmdJWFXfGW0q.cjs → DRRqcawQ_OlK5O2S.cjs} +1 -1
- package/browser/cjs/{D-N5oLosHPjoj-oG.cjs → DW8fGIUUK-oUTjOo.cjs} +1 -1
- package/browser/cjs/{TZQc-szdIVnHDH6F.cjs → DggQv_m8hwCk0ZPk.cjs} +2 -2
- package/browser/cjs/{CX7VUEYca9dtWS0N.cjs → DjAg1qKbGRcCxZG2.cjs} +1 -1
- package/browser/cjs/DlAHUQXBMc-ZTn_c.cjs +32 -0
- package/browser/cjs/{Co31kjvOPAAYbeF-.cjs → DniLHjmREpdi1cFx.cjs} +1 -1
- package/browser/cjs/{BylqpwnwQYDHIWjX.cjs → DnjrhTDYSGg20fYP.cjs} +1 -1
- package/browser/cjs/DoFDjP2FgjU48C712.cjs +1 -0
- package/browser/cjs/DqnvNfw5YpO2rdty2.cjs +1 -0
- package/browser/cjs/{BdJvn1vLXMZvE-8h.cjs → DrdQTBiFulmvlRaX.cjs} +3 -3
- package/browser/cjs/DuQsMI_VBrtewlPT2.cjs +8 -0
- package/browser/cjs/DunGPPWyXlG69yIV2.cjs +1 -0
- package/browser/cjs/Dw7oGgh_7fEPOoIV2.cjs +3 -0
- package/browser/cjs/{DCRe7NqRclU-Jr7p.cjs → DxHsJ5c6KlwGpED6.cjs} +1 -1
- package/browser/cjs/LMZmmGBTj9hqFwwu2.cjs +1 -0
- package/browser/cjs/{Dg5fR9uTvYHyxOX62.cjs → Ugq14m_1jIROW2RN2.cjs} +2 -2
- package/browser/cjs/VSzadbRbgIx_c4Y7.cjs +1 -0
- package/browser/cjs/{DsqHxG-lGZxL1XgQ.cjs → ZsgZv9u2bNY2LY78.cjs} +1 -1
- package/browser/cjs/{BhcbKFKbSWEavYJm.cjs → axigL4G2Pi0ixZPE.cjs} +2 -2
- package/browser/cjs/bojG-rqzdkE9lH_h2.cjs +1 -0
- package/browser/cjs/{C-xC6h1TOBr5ZDSe2.cjs → e4jYID_FHS7YL-b22.cjs} +1 -1
- package/browser/cjs/{BF8ZxFWyAAnbe4mz.cjs → gsOqF4MyYN9gz4oo.cjs} +2 -2
- package/browser/cjs/{CH7BUjrXIKDIE7XE.cjs → hHVT-pzS2bhjFHSL.cjs} +43 -43
- package/browser/cjs/ihI3PbaHdmlJLCOt2.cjs +1 -0
- package/browser/cjs/index.cjs +1 -1
- package/browser/cjs/jW0ar9T4rYfgy_4N.cjs +1 -0
- package/browser/cjs/lc_UysVCoJyKATFy2.cjs +1 -0
- package/browser/cjs/{DHL7SVvz96-5zSWE2.cjs → nIKxgoGnF7yTmzVB2.cjs} +2 -2
- package/browser/cjs/{ClVLjLIRgWqX3Q-F.cjs → pWgqqjBa4jIrxyvw.cjs} +1 -1
- package/browser/cjs/{aBulzIf4cHnL7sbw.cjs → ufEYN2m0y5pER93_.cjs} +1 -1
- package/browser/cjs/{p3PYFz7cN2z4XQoU.cjs → v4gWTjOVv8h2S0zO.cjs} +1 -1
- package/browser/cjs/y4PTOoQv-PlD-vAG2.cjs +1 -0
- package/browser/esm/{C6X4CmElTpPxrad6.mjs → 00bUQB6RgRxfotbx.mjs} +1 -1
- package/{cdn/assets/BuyRy9BcgPYo8l8W.js → browser/esm/3763dmlGYD95oq8Z.mjs} +264 -264
- package/browser/esm/{BIab7njjwaSXjSEP2.mjs → 5FA-4PCi5EIs85WR2.mjs} +2 -2
- package/{cdn/assets/nBZATD4yR1W5D4Fi.js → browser/esm/7XkdeYBragcPQQS0.mjs} +1 -1
- package/browser/esm/{CTzKk6VuZTohsOIF2.mjs → 7bhO6Xzgwllu2tcj2.mjs} +1 -1
- package/browser/esm/{D5Pa9lfPfAcCGj_N.mjs → AwRapR2kwqYVijeW.mjs} +1 -1
- package/browser/esm/{LgoljOEffsYkpZZJ2.mjs → B0Z8VrL6RioP-2R02.mjs} +817 -817
- package/browser/esm/{bvuPDJZmI2O5oihy2.mjs → B1uljoK1sRsKmI6N2.mjs} +91 -91
- package/browser/esm/{j-9DpYsIlTN1mwql.mjs → B3WsFHUqTcKWNGy_.mjs} +5334 -5294
- package/browser/esm/{CaTmLXIsIxaOrLcZ.mjs → B5SNHCcrvOdUn7Vu.mjs} +74 -74
- package/browser/esm/{Be7--zCnU6JvLkK1.mjs → B6wW3holuLEkDOgD.mjs} +57 -57
- package/browser/esm/{B2vjec5TDs2ZJ1eI2.mjs → BCWx6QCIVIKOKt9n2.mjs} +1 -1
- package/browser/esm/{BPt7dDNLBsKrZgzO2.mjs → BCYJaBOW6d6KNCuQ2.mjs} +7 -7
- package/browser/esm/{C3qSUuVA-FII3rMU2.mjs → BCmGrMte2QyvzkAM2.mjs} +19 -19
- package/browser/esm/{R2c8rUTz1GjCQEp-2.mjs → BEsIwguAjJa2eS4g2.mjs} +22 -22
- package/browser/esm/{QNvOHujamKYSXWWA2.mjs → BFAAw3m7wW7Wnf8i2.mjs} +1 -1
- package/{cdn/assets/CQBSLdAdR53c7BVh.js → browser/esm/BG_6y3dWHiR8LpP-2.mjs} +1 -1
- package/browser/esm/{B-Zf8W3s_WXgYxhN.mjs → BJdwKtEOslRkGQhk.mjs} +7 -7
- package/browser/esm/{0YKBRd7eLIUmcKns.mjs → BJk7BkFlT-d2_MDc.mjs} +3 -3
- package/browser/esm/{Bc8-re9biUn57kdl.mjs → BO6Lz-qmEF5k4ZPU.mjs} +9659 -9661
- package/{cdn/assets/DgH-AoqKDdIWg0J8.js → browser/esm/BPh6sTO11J2UoKVG.mjs} +1 -1
- package/{cdn/assets/BEYY8z4FusH7S5K-2.js → browser/esm/BQRlxHPPnb-Xp7mx.mjs} +1 -1
- package/{cdn/assets/BdCn57ENgiC2kOsF.js → browser/esm/BThp5CcmvMVU7Frk.mjs} +2 -2
- package/browser/esm/{BG_hG8jUkf0aMzGK2.mjs → BThp5CcmvMVU7Frk2.mjs} +2 -2
- package/{cdn/assets/7lIMFL11BRZrMXdc.js → browser/esm/BUbwA9WVFeKfIV6H.mjs} +1 -1
- package/browser/esm/{DmPq6SwNcX1qXKct.mjs → BVri2gMOX526uJV5.mjs} +1 -1
- package/browser/esm/{DMMtONCySdMHoaMU.mjs → BYcIifmA2KfISUAD.mjs} +6 -6
- package/browser/esm/{9CP_UyAqmAHE7-mv.mjs → BYha1NqMzu8G7ReU.mjs} +7 -7
- package/browser/esm/{BuSBBEiK_3KnBr632.mjs → BZiMIYsX6zktg4iD2.mjs} +23 -23
- package/browser/esm/{xzoxSwyGoZdH-ysh.mjs → BcZHZLyy1g0r4Qk4.mjs} +23 -23
- package/{cdn/assets/DvfekR32WVFv_WrS.js → browser/esm/BcdWHWjggmDQ6_Zx2.mjs} +81 -81
- package/browser/esm/{CwDjNuGkKnVtfJo-.mjs → Bd-Kkar9gnLuKTRo2.mjs} +1 -1
- package/{cdn/assets/DoCYcvHzw3S0MDCW.js → browser/esm/BeQYgyU20NLEnFql2.mjs} +1 -1
- package/browser/esm/{B0aCnXuYD0ZopZdA.mjs → Be_zCt9smEb4NVGF.mjs} +2 -2
- package/{cdn/assets/CU1_-PzBC9cDsm5t.js → browser/esm/BfRnXrO08JOzICDf2.mjs} +1 -1
- package/{cdn/assets/B0FNPu0uhX_WW-aJ2.js → browser/esm/BfZiZa7P8RpKrStu.mjs} +1 -1
- package/browser/esm/{fJ0eqh3Ja3O0z1QL.mjs → BiHOntEpAjSdwJmu.mjs} +12 -12
- package/{cdn/assets/jQ5c7MGwQOZq4s5w2.js → browser/esm/BjCuy-yO9BQxUj_22.mjs} +1 -1
- package/browser/esm/{BhGgNWNVYntkJYgU.mjs → BnT_figq3Qu4_Tdm.mjs} +12 -12
- package/{cdn/assets/13CH9sjvoEqt6nbt.js → browser/esm/BouiFjb9pyWsROiW2.mjs} +1 -1
- package/browser/esm/{C1doaJjkCzQlB_3u2.mjs → BqT5uCSFT_HATJJw2.mjs} +1 -1
- package/browser/esm/{DeeFxCkhXDF0p1nl.mjs → BranNZUk8WXrCCjb.mjs} +3 -3
- package/browser/esm/{DBTB0moKfwOu0F47.mjs → BxrknRRdcnKV7-zU.mjs} +5 -5
- package/{cdn/assets/DuijhgjRhgWB9sCY2.js → browser/esm/C62Y8jSQuT2_lqUs.mjs} +240 -228
- package/browser/esm/{BJJBFdJaP2dMlug92.mjs → C9-p4koE4kCDp9UL2.mjs} +8 -8
- package/{cdn/assets/Bfq8Gdqf3I7y_Hju2.js → browser/esm/C9QsQZR03iUbXGDd.mjs} +1 -1
- package/browser/esm/{CYU_-DiQXjh1SEU1.mjs → CByxip-S_IKsaoyZ.mjs} +347 -347
- package/{cdn/assets/CAVONPXgoytyiNK-.js → browser/esm/CFKZFbkoc-8gG0EH.mjs} +1 -1
- package/browser/esm/{BEWsOD2JQ8dwQCEm2.mjs → CIfWyeqd8SBHxpym2.mjs} +17 -17
- package/browser/esm/{eTXmezPFvAwM_L-D2.mjs → CIsuqkDFqRaqaULt.mjs} +1 -1
- package/browser/esm/{iYNN3Px9AekrMEfu2.mjs → CMIHnlRJ6ctaJThm2.mjs} +12 -12
- package/browser/esm/{Bcjus_Q6f72kE1MK.mjs → CNBdjbsAfeLxOXNu2.mjs} +1 -1
- package/browser/esm/{rxlYDHBsenoxRx-K2.mjs → CNO2b9u-Zhj6V2us2.mjs} +6 -6
- package/browser/esm/{Cvw3poNlUmn3qAh0.mjs → CP2cFopeWN8lQpif.mjs} +5 -5
- package/browser/esm/{DYyxB53T5uaoyInL2.mjs → CPCWNpkZIX3cxPMS2.mjs} +2 -2
- package/browser/esm/{Bokc-Wu4XBPWKmdt.mjs → CPgdrQexyUXiviTo.mjs} +1 -1
- package/{cdn/assets/BDZAVKSYpcOp9Dve.js → browser/esm/CQi9Ek-nl9QWmoMC2.mjs} +1 -1
- package/browser/esm/{DtqMTXq5u5DmS5S1.mjs → CRNpbge-G8dLIqk9.mjs} +2 -2
- package/browser/esm/{sfOREE_huDAOcfYs.mjs → CSus1KY0Y1UJN-c6.mjs} +1495 -1495
- package/browser/esm/{lHpMVBxqkkCYD6d12.mjs → CVV-QxmM_7vUYzFC.mjs} +1 -1
- package/browser/esm/{DHzdEqMCGL_JPh9w2.mjs → CXT9wGUombXj7n-s2.mjs} +11 -11
- package/browser/esm/{gAriGKwELet15RCY2.mjs → CZrkJteg0C4_fGBy2.mjs} +10 -10
- package/browser/esm/{ep-IjWXOPg2b-REP2.mjs → C_6kPChYiQzj6w3V2.mjs} +1 -1
- package/{cdn/assets/yVLsr0rcaOFel2nS.js → browser/esm/ChKDkoQeoZMHq0r72.mjs} +1 -1
- package/browser/esm/{DTfDzhFtORWkuoRv.mjs → CiMRlH1xk4i9IiEn.mjs} +1 -1
- package/{cdn/assets/DbVSG7Uf7YDQbmc3.js → browser/esm/CiUtfAMZeVao4r9g.mjs} +1 -1
- package/browser/esm/{D13sLQRMMKrDHepu.mjs → ClQiq37bto-oxKtL.mjs} +1 -1
- package/browser/esm/{AAHsV9V95k39t9SD.mjs → ClrdhQeh_WoBg0Ws2.mjs} +1 -1
- package/browser/esm/{txVgXcuMeWVNWHnZ.mjs → CmNtmMkhbzV8j_I0.mjs} +1 -1
- package/browser/esm/{V-oO_EfTyth0iptZ2.mjs → Cm_bL9sY_cm-k_Pq.mjs} +1 -1
- package/browser/esm/{kcfC6hY47HklE6Om.mjs → CmmaFuVaTfOm96g4.mjs} +11 -11
- package/{cdn/assets/Dd80tsdITZsotoCX.js → browser/esm/CqheKk46etN--iuw2.mjs} +1 -1
- package/browser/esm/{DeSDYBzD8e5XXnvq.mjs → CqwPCy756gUmUtv1.mjs} +6 -6
- package/browser/esm/{BM343UBJqjbDokO62.mjs → CsDejQBEe09RdeRI.mjs} +1 -1
- package/browser/esm/{BBaNqp1ZjuO25FQg2.mjs → CsG9IQdgctp6tf2X2.mjs} +1 -1
- package/browser/esm/{C1EvC_qPiGiVMrkF.mjs → CxYnCECXc2PyTCrn.mjs} +499 -499
- package/{cdn/assets/DjNR_ZGCbg-xia15.js → browser/esm/Cz77LBaC6qe0hPm02.mjs} +1 -1
- package/browser/esm/{ZJ32DJlBpN_9fAph.mjs → Cz_f9WxedmIkn2jq.mjs} +3 -3
- package/browser/esm/{BVOTzF7NFvB20R7D.mjs → D36mtiddUg8k6tPW.mjs} +2 -2
- package/browser/esm/{BOhfbmK18Xj1P7-i.mjs → DCY3GQ5g02kgKrPz2.mjs} +1 -1
- package/{cdn/assets/CPgOplnn6NuHwsZ_2.js → browser/esm/DDfhrc6lUmerlDLA2.mjs} +1 -1
- package/browser/esm/{B2nEJHcip8raAhdc.mjs → DGjbC2bQDlXZu71U.mjs} +757 -757
- package/browser/esm/{yFldtlfN_ASKyMll.mjs → DIHvZTIPYMmuDQO4.mjs} +5 -5
- package/browser/esm/{CmSATmXaMlqwTjAe2.mjs → DN6XiWA9mgKCYBL72.mjs} +1 -1
- package/browser/esm/{DyPe20tPiPVm1PLe.mjs → DNtf7XnGnTZmf9SF.mjs} +6 -6
- package/browser/esm/{XB269tVMhdRHj10G.mjs → DOwrrqcb3f3wDR3B.mjs} +123 -208
- package/{cdn/assets/CULlzRLL3s2Dikjg.js → browser/esm/DQXXQ7c_080TSD18.mjs} +1 -1
- package/{cdn/assets/WFkg-W8MQ-V6F1Fu.js → browser/esm/DSuOkzhjUeUGtHv8.mjs} +3 -3
- package/browser/esm/{D-egzesxukW7Z_e3.mjs → DXuBmWXG49kvaZNr2.mjs} +1 -1
- package/{cdn/assets/B_49GiUSgx96vBvq.js → browser/esm/DYoBCnD1PVzOITgb2.mjs} +1 -1
- package/{cdn/assets/gCeoOjDjiVaX8dtF.js → browser/esm/D_tGKL5JvKpHg5Se2.mjs} +1 -1
- package/browser/esm/{Dz713G5R9JayR5v1.mjs → D_vJszM7OyxfNtiD.mjs} +2 -2
- package/browser/esm/{b49cTAZ6BWPQgfYu.mjs → DdNzoOIDRFbcy-qK.mjs} +14 -14
- package/browser/esm/{GDYIOITizuJ9xSUf2.mjs → DdSdpckWJszr8vE72.mjs} +13 -13
- package/browser/esm/{YC83lJ3yRZP57lBl2.mjs → Di2yc0eSWx4sqa1t2.mjs} +4 -4
- package/browser/esm/{Bvy9LWN5UHwJXV9i2.mjs → DiZjLPj4GVJccT-7.mjs} +2 -2
- package/browser/esm/{BcHN_VMA7bLNKKMO.mjs → DkUKK8YkXuoIqQIx.mjs} +1914 -1904
- package/browser/esm/{CA4eJpge9meoO0rj2.mjs → DmBNtqAUPAi3RnfW2.mjs} +11 -11
- package/{cdn/assets/CnvlkxK0pS02Z3gZ.js → browser/esm/Dr3NMWk6K4-HWYsp.mjs} +1 -1
- package/browser/esm/{B50P0gSziuG68Umu.mjs → DsGBg42mflMr5nWn.mjs} +1 -1
- package/{cdn/assets/C04uI3XsvTc6Cc7w.js → browser/esm/DtFBvTH8ScTC26Xd.mjs} +1 -1
- package/browser/esm/{CcK4ACF7d5ogFpAS.mjs → DuwZ5U8z5dBDeSgO.mjs} +8 -8
- package/browser/esm/{C3M_lKSZ_Fq1SQOn.mjs → DvFQ4AKUGVQ_qhdP.mjs} +2 -2
- package/browser/esm/{04mVsW7CTmUlxnOa.mjs → DvQg18Zd8rnQh20c.mjs} +3 -3
- package/browser/esm/{Dn8Z0WK2Hwi8MRnQ.mjs → DwpzhMm9SjvmHEpB.mjs} +1 -1
- package/browser/esm/{BnFriW2cIcOJkXU42.mjs → Dz6F8pPCO-Rr6Cab2.mjs} +12 -12
- package/{cdn/assets/D1bACCJy4F8kANLy2.js → browser/esm/ERmTt8XRToIi7stb.mjs} +1 -1
- package/browser/esm/{CUYBRp4sHMdGwkLT.mjs → I5pKfeOLCqhpzdsw.mjs} +1 -1
- package/{cdn/assets/C2JMpa_lWCs9k2ZI.js → browser/esm/Jsx_oA3RHPHgakon.mjs} +174 -174
- package/browser/esm/{BCQgeu38866r56Dh.mjs → LOn47j35pLEOdnml.mjs} +5 -5
- package/browser/esm/{DkuK8fY8vrl7aZpf2.mjs → LTN_uMk0eLGdRMPd2.mjs} +7 -7
- package/browser/esm/{f9r0yTaD2YChFtEg2.mjs → LryKLHFrshlshCEk2.mjs} +1 -1
- package/{cdn/assets/LfHB39-nf7mi9XC7.js → browser/esm/N9sXUCWDhn_zpuR2.mjs} +1 -1
- package/{cdn/assets/BF842ZtkvebA1LgR2.js → browser/esm/NLHUljnhbCboNbaU.mjs} +1 -1
- package/browser/esm/{S2_pz0y2RTJFpXkS.mjs → U7ZDW4cwSiPyirkE.mjs} +1 -1
- package/{cdn/assets/CThP3jXwDzLlUOeI2.js → browser/esm/XGGjX0z3ae_AWeTr.mjs} +1 -1
- package/{cdn/assets/DtQu3vHaJfA5KM2H.js → browser/esm/_WaFh_cvGeblogUn2.mjs} +1 -1
- package/browser/esm/{BZZ2IOkVKppFWNLE.mjs → cVFbVoYZRXdqyfp0.mjs} +5 -5
- package/browser/esm/{BBzzLAeBBFbVvgph2.mjs → cwwLkCUZ083FPUTU2.mjs} +2 -2
- package/browser/esm/{BTNqElWtYkKW47Vg.mjs → i8BR1tNQSYLz-zpk.mjs} +3 -3
- package/browser/esm/index.mjs +4 -4
- package/browser/esm/{apjOZ6N9KbmyErGz.mjs → ooXd7RLQr67NrRz9.mjs} +65 -65
- package/browser/esm/{Bl5xLu1ou-9zMIBZ2.mjs → p-0E4OSYsnvo4Jvb2.mjs} +1 -1
- package/browser/esm/{BA6JMESdvw_1-mFg2.mjs → q4b66GxkR8TkSiGY2.mjs} +17 -17
- package/{cdn/assets/Be2-C5U5LlfLTmyo.js → browser/esm/rUQqpcI_WXcsiwea2.mjs} +1 -1
- package/{cdn/assets/CjFOk9mcZqAngWD22.js → browser/esm/yg7AU6dKBI7tCqJd2.mjs} +1 -1
- package/browser/esm/{BiArrlzwKsOlSm00.mjs → z-KpvdyYTapfvTA-.mjs} +4 -4
- package/cdn/assets/{C6X4CmElTpPxrad6.js → 00bUQB6RgRxfotbx2.js} +1 -1
- package/cdn/assets/{Be_TDLQucHiVwNvT.js → 0Jeqx95iG9faxIsB.js} +8 -8
- package/cdn/assets/{QT-5i27zeGPhkyui2.js → 3o0o7-MzWgSJRADP2.js} +12 -12
- package/cdn/assets/{BIab7njjwaSXjSEP.js → 5FA-4PCi5EIs85WR.js} +2 -2
- package/cdn/assets/{BNm-ZCOBoBRceGXA2.js → 61OH_HiXgmNuRUDx2.js} +73 -73
- package/{browser/esm/nBZATD4yR1W5D4Fi.mjs → cdn/assets/7XkdeYBragcPQQS0.js} +1 -1
- package/cdn/assets/{CTzKk6VuZTohsOIF.js → 7bhO6Xzgwllu2tcj.js} +1 -1
- package/cdn/assets/{D5Pa9lfPfAcCGj_N2.js → AwRapR2kwqYVijeW2.js} +1 -1
- package/cdn/assets/{D6Uwvg4vo1g0pWZa.js → B1eVAWzwtBE6vo-r.js} +2 -2
- package/cdn/assets/{588lLflWQypQVzce.js → B3XQHzZTHSzv7fpC.js} +5 -5
- package/cdn/assets/{B2vjec5TDs2ZJ1eI.js → BCWx6QCIVIKOKt9n.js} +1 -1
- package/cdn/assets/{B66--qmqjDI4V95v2.js → BEcgIVa19rKPTwlt2.js} +8 -8
- package/cdn/assets/{QNvOHujamKYSXWWA.js → BFAAw3m7wW7Wnf8i.js} +1 -1
- package/{browser/esm/CQBSLdAdR53c7BVh2.mjs → cdn/assets/BG_6y3dWHiR8LpP-.js} +1 -1
- package/cdn/assets/{BWtyERLPrUmI8Qbi2.js → BInccbDEuHGg1a2y2.js} +92 -92
- package/cdn/assets/{b-o8RUlQpF1RaDgI.js → BJ74o1RxHOu_KTYD2.js} +130 -215
- package/cdn/assets/{XFQGB8ADW__0ZBoF2.js → BKrWCWpOpggPjFQq2.js} +3 -3
- package/cdn/assets/{BTB79KyzSZf-h-lm2.js → BLKL_d2AFcnL6fbw2.js} +16 -16
- package/cdn/assets/{gJT4n5za0DqWXFK12.js → BNSYILHKGtNTW6AH2.js} +22 -22
- package/{browser/esm/DgH-AoqKDdIWg0J8.mjs → cdn/assets/BPh6sTO11J2UoKVG.js} +1 -1
- package/{browser/esm/BEYY8z4FusH7S5K-.mjs → cdn/assets/BQRlxHPPnb-Xp7mx2.js} +1 -1
- package/{browser/esm/7lIMFL11BRZrMXdc2.mjs → cdn/assets/BUbwA9WVFeKfIV6H.js} +1 -1
- package/cdn/assets/{Bqe5WbSIlCRYLcqT.js → BVFVnXqCCuycZFnG.js} +4 -4
- package/cdn/assets/BVri2gMOX526uJV5.js +24 -0
- package/cdn/assets/BVri2gMOX526uJV52.js +24 -0
- package/cdn/assets/{CP0M0z_IaCwCMGNS.js → BXV_vaLwr-mEvH-k.js} +7 -7
- package/cdn/assets/{_gPnIgVx33slqynA.js → BY7a2KqdhpxV2mYN.js} +2 -2
- package/cdn/assets/{BKouftCLbhExXXXU.js → BZpQlzDFTqlBTj8r.js} +124 -125
- package/cdn/assets/{COk-0FZl3cv__3yY2.js → BcGLaH5XYmlLx2is2.js} +7 -7
- package/cdn/assets/{CwDjNuGkKnVtfJo-2.js → Bd-Kkar9gnLuKTRo.js} +1 -1
- package/{browser/esm/DoCYcvHzw3S0MDCW.mjs → cdn/assets/BeQYgyU20NLEnFql.js} +1 -1
- package/{browser/esm/CU1_-PzBC9cDsm5t2.mjs → cdn/assets/BfRnXrO08JOzICDf.js} +1 -1
- package/{browser/esm/B0FNPu0uhX_WW-aJ.mjs → cdn/assets/BfZiZa7P8RpKrStu2.js} +1 -1
- package/cdn/assets/{DPN0a43QHMUmHgo5.js → Bhat781Vzqa1jNlj.js} +3 -3
- package/cdn/assets/{CheDxDxt7x0CPz9P.js → BiQlKPbuRw8sLCC5.js} +7 -7
- package/cdn/assets/{Dlq2nAMNpWkqjt9Y.js → Bijn-3ZS9ONia1ja.js} +14 -14
- package/{browser/esm/jQ5c7MGwQOZq4s5w.mjs → cdn/assets/BjCuy-yO9BQxUj_2.js} +1 -1
- package/{browser/esm/CUMu_1tXFa0LPKGV.mjs → cdn/assets/BlPAZIJrjbcHxcJj.js} +316 -316
- package/cdn/assets/{CPjsJ0CY-AurDJgm2.js → BljA9tG92oDDEqjC2.js} +13 -13
- package/{browser/esm/13CH9sjvoEqt6nbt2.mjs → cdn/assets/BouiFjb9pyWsROiW.js} +1 -1
- package/cdn/assets/{C1doaJjkCzQlB_3u.js → BqT5uCSFT_HATJJw.js} +1 -1
- package/cdn/assets/{f1iQWnLWVpKZ34XR2.js → Buwn5fZU7jRx2O2L2.js} +8 -8
- package/cdn/assets/{CzEHYpK2SYTRpxDm2.js → ByMjPzoTrB6veNzc2.js} +25 -25
- package/cdn/assets/{CUrzB9ponX7LAYXR.js → Bzv3-2eiz66ZkXnN.js} +3 -3
- package/cdn/assets/{CUTnOs5iWyc3J2cN2.js → C1HfU9WnOyE_81Y22.js} +14 -14
- package/cdn/assets/{CWOPhBfYI6R0kz-p.js → C2-SeODnwo_GR5pz.js} +501 -501
- package/cdn/assets/{BT3KOuPzJsNUvy4B.js → C3D_ZF-8-b6d8y4e2.js} +2 -2
- package/cdn/assets/{C7ZHXwoL2A_nxZjl.js → C4cN9i6GMOS58iau.js} +65 -65
- package/cdn/assets/{CDijenaMI_dBIGU-.js → C5JHyXmpBXqT829C.js} +464 -464
- package/{browser/esm/DuijhgjRhgWB9sCY.mjs → cdn/assets/C62Y8jSQuT2_lqUs2.js} +240 -228
- package/cdn/assets/{BaEH7HZAJkFGHtNj2.js → C6FGZZf4iXdgdE2p2.js} +66 -66
- package/{browser/esm/Bfq8Gdqf3I7y_Hju.mjs → cdn/assets/C9QsQZR03iUbXGDd2.js} +1 -1
- package/{browser/esm/CAVONPXgoytyiNK-.mjs → cdn/assets/CFKZFbkoc-8gG0EH.js} +1 -1
- package/cdn/assets/{eTXmezPFvAwM_L-D.js → CIsuqkDFqRaqaULt2.js} +1 -1
- package/cdn/assets/{Bcjus_Q6f72kE1MK.js → CNBdjbsAfeLxOXNu.js} +1 -1
- package/cdn/assets/{BB6k7f_6TCVysy8a.js → CNJDMOYg-cuIfNfJ.js} +3 -3
- package/cdn/assets/{CA9oxppuFcYDyylE.js → CNJExdRjs2zrq2QI2.js} +12 -12
- package/{browser/esm/BG_hG8jUkf0aMzGK.mjs → cdn/assets/COqWk0Oh4IaPrTm7.js} +2 -2
- package/cdn/assets/{Bokc-Wu4XBPWKmdt.js → CPgdrQexyUXiviTo.js} +1 -1
- package/{browser/esm/BDZAVKSYpcOp9Dve2.mjs → cdn/assets/CQi9Ek-nl9QWmoMC.js} +1 -1
- package/cdn/assets/{B9hBziUoXFzKPWF02.js → CRGjj70fiZgAfoOZ2.js} +7 -7
- package/cdn/assets/{2QsTDWiE6SMelbNU2.js → CRepp6I1poWZwijy2.js} +7 -7
- package/cdn/assets/{B_sKE05xgjFFafjm.js → CU-pICtgXW5Kn0sP.js} +1839 -1839
- package/cdn/assets/{lHpMVBxqkkCYD6d1.js → CVV-QxmM_7vUYzFC2.js} +1 -1
- package/cdn/assets/{BPOi08RtEmQdlbtS2.js → CX7_0zQyYWqVfYUE2.js} +12 -12
- package/cdn/assets/{Ifw8W-tqHjQnCWZO2.js → CZuu-bOdg704oDMV2.js} +40 -40
- package/cdn/assets/{ep-IjWXOPg2b-REP2.js → C_6kPChYiQzj6w3V2.js} +1 -1
- package/cdn/assets/{UNtnFd2ssTtnrqRp.js → CdP9qTlDd3C1oYJE.js} +1917 -1907
- package/{browser/esm/yVLsr0rcaOFel2nS2.mjs → cdn/assets/ChKDkoQeoZMHq0r7.js} +1 -1
- package/cdn/assets/{DTfDzhFtORWkuoRv2.js → CiMRlH1xk4i9IiEn.js} +1 -1
- package/{browser/esm/DbVSG7Uf7YDQbmc32.mjs → cdn/assets/CiUtfAMZeVao4r9g2.js} +1 -1
- package/cdn/assets/{B9oLwnLz9m-TWSPJ2.js → CkGtAcs5pCYCEP8p.js} +65 -65
- package/cdn/assets/{D13sLQRMMKrDHepu2.js → ClQiq37bto-oxKtL2.js} +1 -1
- package/cdn/assets/{AAHsV9V95k39t9SD.js → ClrdhQeh_WoBg0Ws.js} +1 -1
- package/cdn/assets/{txVgXcuMeWVNWHnZ.js → CmNtmMkhbzV8j_I0.js} +1 -1
- package/cdn/assets/{V-oO_EfTyth0iptZ.js → Cm_bL9sY_cm-k_Pq2.js} +1 -1
- package/cdn/assets/{Bi9IWSBo7DDXROTC.js → CnBG1teWhE7BlvvP.js} +2 -2
- package/{browser/esm/Dd80tsdITZsotoCX2.mjs → cdn/assets/CqheKk46etN--iuw.js} +1 -1
- package/cdn/assets/{CCTYceFrydwG3Vyt2.js → Cr34xFdpfmYj3XVX.js} +6852 -6812
- package/cdn/assets/{BM343UBJqjbDokO6.js → CsDejQBEe09RdeRI2.js} +1 -1
- package/cdn/assets/{BBaNqp1ZjuO25FQg.js → CsG9IQdgctp6tf2X.js} +1 -1
- package/cdn/assets/{erwt6xEgCY7lDQWp.js → CweS1pLcEo28_Fd3.js} +3 -3
- package/{browser/esm/DjNR_ZGCbg-xia152.mjs → cdn/assets/Cz77LBaC6qe0hPm0.js} +1 -1
- package/{browser/esm/BVtQCzVeMOJZq64r2.mjs → cdn/assets/D6FSp0JpvARNns7B.js} +81 -81
- package/cdn/assets/{BsHFBjNwTzc_CKLq2.js → D6g5-9e1xAhCBLKs2.js} +9659 -9661
- package/cdn/assets/{BOhfbmK18Xj1P7-i2.js → DCY3GQ5g02kgKrPz.js} +1 -1
- package/{browser/esm/CPgOplnn6NuHwsZ_.mjs → cdn/assets/DDfhrc6lUmerlDLA.js} +1 -1
- package/cdn/assets/{DIlrvTRlRll76TiE2.js → DE2W5y4QJln8ofNW2.js} +117 -117
- package/cdn/assets/{DmRqcUu6qCPcOxgW.js → DFs_9gdet_-cO7iH.js} +2 -2
- package/cdn/assets/{DmQ4uKOlhrcJfgk82.js → DLBKxOA2T_WJvvvH2.js} +16 -16
- package/cdn/assets/{CmSATmXaMlqwTjAe.js → DN6XiWA9mgKCYBL7.js} +1 -1
- package/{browser/esm/CULlzRLL3s2Dikjg.mjs → cdn/assets/DQXXQ7c_080TSD18.js} +1 -1
- package/{browser/esm/BauR0SATr44ggHRU.mjs → cdn/assets/DVRMsPYzWC08As4p.js} +264 -264
- package/cdn/assets/{BsGz_0JrhSfOZ24Q.js → DW_9fxHbJWAA6hS7.js} +3 -3
- package/cdn/assets/{D-egzesxukW7Z_e32.js → DXuBmWXG49kvaZNr.js} +1 -1
- package/{browser/esm/B_49GiUSgx96vBvq2.mjs → cdn/assets/DYoBCnD1PVzOITgb.js} +1 -1
- package/{browser/esm/gCeoOjDjiVaX8dtF2.mjs → cdn/assets/D_tGKL5JvKpHg5Se.js} +1 -1
- package/cdn/assets/{ByHzW_x0qXsBJMwv2.js → DhJUo9PMmo1COlmU2.js} +1045 -1045
- package/cdn/assets/{CAOPlenSF-pjVfqt2.js → DiViqDuRVTrNy_8T2.js} +2 -2
- package/cdn/assets/{CqI09iUEId8rHfJ9.js → DilLxTePPshHHpSq.js} +6 -6
- package/cdn/assets/{CBQrIDBtf5Ibwi96.js → DoVrePIXmzfLRmKR2.js} +2 -2
- package/cdn/assets/{C2X9NooB33IkSomz.js → Doj9y5S2cMVRtP1D.js} +8 -8
- package/{browser/esm/CnvlkxK0pS02Z3gZ.mjs → cdn/assets/Dr3NMWk6K4-HWYsp.js} +1 -1
- package/{browser/esm/DZLyXICwEHYRnCuO.mjs → cdn/assets/DrVaoGzrL25jLUGy.js} +3 -3
- package/cdn/assets/{B50P0gSziuG68Umu2.js → DsGBg42mflMr5nWn2.js} +1 -1
- package/{browser/esm/C04uI3XsvTc6Cc7w2.mjs → cdn/assets/DtFBvTH8ScTC26Xd2.js} +1 -1
- package/cdn/assets/{B_UEqzmXZIhHAEyS.js → DtOWX0kdgZMsDoO7.js} +8 -8
- package/cdn/assets/{Dz0_oXqVesISvhbJ.js → DtumfSbgP4e8W8h3.js} +3 -3
- package/cdn/assets/{DJBTmv-rddT91Z-N2.js → DwB2Aw3VeP0bDUcu2.js} +18 -18
- package/cdn/assets/{Dn8Z0WK2Hwi8MRnQ2.js → DwpzhMm9SjvmHEpB2.js} +1 -1
- package/{browser/esm/D1bACCJy4F8kANLy.mjs → cdn/assets/ERmTt8XRToIi7stb2.js} +1 -1
- package/cdn/assets/{VEJV_bhNDNNyZAIA2.js → FG3AVHTW-X8T6X6V2.js} +8 -8
- package/cdn/assets/{Dg26zVdGlO10MX0h2.js → Ks5Tzjg6SEeoLe6a.js} +21 -21
- package/cdn/assets/{f9r0yTaD2YChFtEg.js → LryKLHFrshlshCEk.js} +1 -1
- package/{browser/esm/LfHB39-nf7mi9XC72.mjs → cdn/assets/N9sXUCWDhn_zpuR22.js} +1 -1
- package/cdn/assets/{BSixIKI7PxSqiUGB2.js → NHd14bmjDunGi64w2.js} +5 -5
- package/{browser/esm/BF842ZtkvebA1LgR.mjs → cdn/assets/NLHUljnhbCboNbaU2.js} +1 -1
- package/cdn/assets/{I2Cn0c2NkX845WIx.js → POvNgF4k1Kibh6Db.js} +6 -6
- package/cdn/assets/{C3KIo0iwLXhIIMG8.js → RnavifpmQlGK2gal.js} +2 -2
- package/cdn/assets/{DoBxkE57H5PfH7Or.js → TA52Zf5ZMCu6I721.js} +2 -2
- package/cdn/assets/{S2_pz0y2RTJFpXkS2.js → U7ZDW4cwSiPyirkE2.js} +1 -1
- package/{browser/esm/CThP3jXwDzLlUOeI.mjs → cdn/assets/XGGjX0z3ae_AWeTr2.js} +1 -1
- package/cdn/assets/{DYCh_5thAx4qo1ns2.js → ZGRko_YhO95NyKLu.js} +757 -757
- package/{browser/esm/DtQu3vHaJfA5KM2H2.mjs → cdn/assets/_WaFh_cvGeblogUn.js} +1 -1
- package/cdn/assets/{CZ3JFujrzd0iX0zL2.js → hbYg8nwB--Ouo3PE2.js} +72 -72
- package/cdn/assets/{DI4QTfUQPCjSn0kl.js → kgHG0ixsMXmNdu8U.js} +7 -7
- package/cdn/assets/{Bl5xLu1ou-9zMIBZ.js → p-0E4OSYsnvo4Jvb.js} +1 -1
- package/cdn/assets/{N5PCgig3g9yqotn9.js → qBcxlsrimi009WnV.js} +2 -2
- package/{browser/esm/Be2-C5U5LlfLTmyo2.mjs → cdn/assets/rUQqpcI_WXcsiwea.js} +1 -1
- package/{browser/esm/CjFOk9mcZqAngWD2.mjs → cdn/assets/yg7AU6dKBI7tCqJd.js} +1 -1
- package/cdn/index.js +2 -2
- package/package.json +3 -3
- package/browser/cjs/B0FCH1gFfg2bQiPi2.cjs +0 -1
- package/browser/cjs/B3WkiDqFBfA_xxJL2.cjs +0 -1
- package/browser/cjs/Bqup1MCJFqTZbLDd2.cjs +0 -1
- package/browser/cjs/BsJHSGeWLskirGXg.cjs +0 -14
- package/browser/cjs/Bsl_clm06l5cwpML.cjs +0 -32
- package/browser/cjs/BvVzIzXLyLxpBcia2.cjs +0 -3
- package/browser/cjs/C1tOH7BEpO_ANMsa.cjs +0 -1
- package/browser/cjs/CA_ZsYjkTHSpGK0j.cjs +0 -41
- package/browser/cjs/CoCKYtBIVeDXxSIq2.cjs +0 -1
- package/browser/cjs/CqPb6CbrHTRnbSKa2.cjs +0 -8
- package/browser/cjs/D2ZPx3v4EVejvhR2.cjs +0 -54
- package/browser/cjs/D8tkBbkGH5cZzIJP2.cjs +0 -1
- package/browser/cjs/DP1pufP3NJFoDa-g.cjs +0 -3
- package/browser/cjs/DTZiRVEB3kVK7eK-2.cjs +0 -1
- package/browser/cjs/DU2HMmI1EeHBTvuG.cjs +0 -1
- package/browser/cjs/DWzkpizTIJkaqf4J2.cjs +0 -1
- package/browser/cjs/Dk1WS0vM-LQJx_EO2.cjs +0 -1
- package/browser/cjs/DtlC63s51_88j6AY2.cjs +0 -1
- package/browser/cjs/Dx79LP1-YCQg8B872.cjs +0 -1
- package/browser/cjs/VgwyOcXDHhEp_NvH2.cjs +0 -1
- package/browser/cjs/xTT7lHV4HUjeNdMs2.cjs +0 -1
- package/cdn/assets/C6X4CmElTpPxrad62.js +0 -24
- package/cdn/assets/CUYBRp4sHMdGwkLT2.js +0 -24
- /package/browser/cjs/{1XrWGMP3GmsQOMIX2.cjs → 1XrWGMP3GmsQOMIX.cjs} +0 -0
- /package/browser/cjs/{B6vy56yEA1I3B74O2.cjs → B6vy56yEA1I3B74O.cjs} +0 -0
- /package/browser/cjs/{BK0SCfN_VZYqBxoQ2.cjs → BK0SCfN_VZYqBxoQ.cjs} +0 -0
- /package/browser/cjs/{BcROQ4pvVajDQ1em.cjs → BcROQ4pvVajDQ1em2.cjs} +0 -0
- /package/browser/cjs/{BvG8N7G_8CXIAlT-.cjs → BvG8N7G_8CXIAlT-2.cjs} +0 -0
- /package/browser/cjs/{C4cZxb9nRtzTCA40.cjs → C4cZxb9nRtzTCA402.cjs} +0 -0
- /package/browser/cjs/{C9q3zr8iCIoYDrdA.cjs → C9q3zr8iCIoYDrdA2.cjs} +0 -0
- /package/browser/cjs/{CVHc_cJddJk7J3Zt2.cjs → CVHc_cJddJk7J3Zt.cjs} +0 -0
- /package/browser/cjs/{CaJGoNwTL6pAJ6a42.cjs → CaJGoNwTL6pAJ6a4.cjs} +0 -0
- /package/browser/cjs/{D8-KovdJ0LjxqCe2.cjs → D8-KovdJ0LjxqCe22.cjs} +0 -0
- /package/browser/cjs/{DF4l8xrxkcLkgExp2.cjs → DF4l8xrxkcLkgExp.cjs} +0 -0
- /package/browser/cjs/{DG2kqsWRUtVugjay.cjs → DG2kqsWRUtVugjay2.cjs} +0 -0
- /package/browser/cjs/{DM7-R_ltoLbA9jde.cjs → DM7-R_ltoLbA9jde2.cjs} +0 -0
- /package/browser/cjs/{DNKyaSruDogoBd2H2.cjs → DNKyaSruDogoBd2H.cjs} +0 -0
- /package/browser/cjs/{Dtxj9JR14A-uliu5.cjs → Dtxj9JR14A-uliu52.cjs} +0 -0
- /package/browser/cjs/{Dx7GQ4ALtNG3kshu.cjs → Dx7GQ4ALtNG3kshu2.cjs} +0 -0
- /package/browser/cjs/{aONv0Ys3C8xmnaR82.cjs → aONv0Ys3C8xmnaR8.cjs} +0 -0
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.8.0-beta.4
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
import { r as e } from "./
|
|
8
|
-
import { t } from "./
|
|
9
|
-
import { t as n } from "./
|
|
10
|
-
import { t as r } from "./
|
|
11
|
-
import {
|
|
12
|
-
import { i as m, t as h } from "./
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { $ as
|
|
17
|
-
import { A as
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import { t as
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import { t as Fn } from "./
|
|
26
|
-
import { t as In } from "./
|
|
7
|
+
import { r as e } from "./7XkdeYBragcPQQS0.js";
|
|
8
|
+
import { t } from "./TA52Zf5ZMCu6I721.js";
|
|
9
|
+
import { t as n } from "./DW_9fxHbJWAA6hS7.js";
|
|
10
|
+
import { t as r } from "./RnavifpmQlGK2gal.js";
|
|
11
|
+
import { D as i, G as a, I as o, N as s, b as c, c as l, o as u, p as d, q as f, r as p } from "./C62Y8jSQuT2_lqUs2.js";
|
|
12
|
+
import { i as m, t as h } from "./DsGBg42mflMr5nWn2.js";
|
|
13
|
+
import { B as g, S as _, Xt as v, _ as y, ct as b, d as x, it as S, l as C, r as w, sn as T } from "./D6g5-9e1xAhCBLKs2.js";
|
|
14
|
+
import { a as E, t as D } from "./BZpQlzDFTqlBTj8r.js";
|
|
15
|
+
import { r as O, t as ee } from "./POvNgF4k1Kibh6Db.js";
|
|
16
|
+
import { $t as te, Bt as k, Ft as A, Gt as j, Ht as ne, I as re, Jt as M, Ot as N, St as ie, Tt as ae, Wt as oe, X as P, Y as se, Zt as ce, _ as le, c as ue, gt as de, h as F, i as fe, k as pe, m as I, mt as L, n as me, ot as he, p as ge, rn as _e, rt as ve, s as ye, st as be, t as R, tt as xe, y as Se, zt as Ce } from "./CdP9qTlDd3C1oYJE.js";
|
|
17
|
+
import { $ as we, A as Te, C as Ee, D as De, E as Oe, F as ke, I as Ae, S as je, V as Me, W as Ne, Z as Pe, _ as Fe, b as Ie, bt as Le, ct as z, ft as Re, gt as ze, ht as Be, i as Ve, it as He, l as Ue, lt as B, m as We, mt as Ge, p as V, r as H, rt as Ke, st as U, t as qe, tt as Je, u as Ye, v as Xe, w as Ze, y as Qe, yt as $e, z as et } from "./Cr34xFdpfmYj3XVX.js";
|
|
18
|
+
import { $ as tt, D as nt, F as rt, I as it, L as W, N as G, S as at, St as ot, V as st, _t as ct, bt as lt, ct as ut, f as dt, lt as ft, s as pt, st as K, t as mt, ut as ht, vt as gt, wt as _t, yt as vt } from "./C2-SeODnwo_GR5pz.js";
|
|
19
|
+
import { A as yt, T as bt, _ as q, i as xt, k as St, m as Ct, r as wt, t as J } from "./DilLxTePPshHHpSq.js";
|
|
20
|
+
import { Bn as Tt, Cn as Et, Et as Dt, Fn as Ot, I as kt, In as At, It as jt, J as Mt, Jt as Nt, Ln as Pt, Lt as Ft, Nn as It, On as Lt, Rn as Rt, Rt as zt, S as Bt, Ut as Vt, V as Ht, W as Ut, X as Wt, _t as Gt, a as Kt, cn as qt, dn as Jt, dt as Yt, et as Xt, gn as Zt, h as Qt, hn as $t, it as en, j as tn, n as nn, o as rn, qt as an, r as on, ut as sn, vn as cn, w as ln, wt as un, x as dn, xt as fn, yn as pn, zn as mn } from "./CU-pICtgXW5Kn0sP.js";
|
|
21
|
+
import { n as hn, t as gn } from "./BXV_vaLwr-mEvH-k.js";
|
|
22
|
+
import { n as _n, t as vn } from "./kgHG0ixsMXmNdu8U.js";
|
|
23
|
+
import { D as yn, N as bn, R as xn, S as Sn, T as Cn, c as wn, f as Tn, g as En, h as Dn, i as On, l as kn, m as An, o as jn, s as Mn, t as Nn, u as Pn } from "./C5JHyXmpBXqT829C.js";
|
|
24
|
+
import { t as Y } from "./Doj9y5S2cMVRtP1D.js";
|
|
25
|
+
import { t as Fn } from "./BfZiZa7P8RpKrStu2.js";
|
|
26
|
+
import { t as In } from "./BLKL_d2AFcnL6fbw2.js";
|
|
27
27
|
var X = e(t(), 1), Ln = X.createContext(null);
|
|
28
28
|
function Rn() {
|
|
29
29
|
return X.useContext(Ln);
|
|
@@ -70,9 +70,9 @@ function Hn(e, t, n, r = !1) {
|
|
|
70
70
|
]);
|
|
71
71
|
}
|
|
72
72
|
function Un(e) {
|
|
73
|
-
let { children: t, theme: n, themeId: r } = e, i =
|
|
74
|
-
let t =
|
|
75
|
-
return i = r && t === null ? typeof r == "string" ? r.replace(/mui(?!\.)/g, i) : `@layer ${i};` : "",
|
|
73
|
+
let { children: t, theme: n, themeId: r } = e, i = le(Vn), a = Rn() || Vn, o = Hn(r, i, n), s = Hn(r, a, n, !0), c = (r ? o[r] : o).direction === "rtl", l = function(e) {
|
|
74
|
+
let t = le(), n = gt() || "", { modularCssLayers: r } = e, i = "mui.global, mui.components, mui.theme, mui.custom, mui.sx";
|
|
75
|
+
return i = r && t === null ? typeof r == "string" ? r.replace(/mui(?!\.)/g, i) : `@layer ${i};` : "", ot(() => {
|
|
76
76
|
let e = document.querySelector("head");
|
|
77
77
|
if (!e) return;
|
|
78
78
|
let t = e.firstChild;
|
|
@@ -81,15 +81,15 @@ function Un(e) {
|
|
|
81
81
|
let r = document.createElement("style");
|
|
82
82
|
r.setAttribute("data-mui-layer-order", n), r.textContent = i, e.prepend(r);
|
|
83
83
|
} else e.querySelector(`style[data-mui-layer-order="${n}"]`)?.remove();
|
|
84
|
-
}, [i, n]), i ? (0, Z.jsx)(
|
|
84
|
+
}, [i, n]), i ? (0, Z.jsx)(St, { styles: i }) : null;
|
|
85
85
|
}(o);
|
|
86
86
|
return (0, Z.jsx)(Bn, {
|
|
87
87
|
theme: s,
|
|
88
|
-
children: (0, Z.jsx)(
|
|
88
|
+
children: (0, Z.jsx)(pe.Provider, {
|
|
89
89
|
value: o,
|
|
90
|
-
children: (0, Z.jsx)(
|
|
90
|
+
children: (0, Z.jsx)(lt, {
|
|
91
91
|
value: c,
|
|
92
|
-
children: (0, Z.jsxs)(
|
|
92
|
+
children: (0, Z.jsxs)(vt, {
|
|
93
93
|
value: r ? o[r].components : o.components,
|
|
94
94
|
children: [l, t]
|
|
95
95
|
})
|
|
@@ -251,9 +251,9 @@ function Qn(e) {
|
|
|
251
251
|
};
|
|
252
252
|
}
|
|
253
253
|
function $n(e) {
|
|
254
|
-
return
|
|
254
|
+
return I("MuiToggleButton", e);
|
|
255
255
|
}
|
|
256
|
-
var er =
|
|
256
|
+
var er = ge("MuiToggleButton", [
|
|
257
257
|
"root",
|
|
258
258
|
"disabled",
|
|
259
259
|
"selected",
|
|
@@ -266,10 +266,10 @@ var er = ve("MuiToggleButton", [
|
|
|
266
266
|
"fullWidth"
|
|
267
267
|
]);
|
|
268
268
|
function tr({ theme: e, ...t }) {
|
|
269
|
-
let n = "$$material" in e ? e[
|
|
269
|
+
let n = "$$material" in e ? e[re] : void 0;
|
|
270
270
|
return (0, Z.jsx)(Un, {
|
|
271
271
|
...t,
|
|
272
|
-
themeId: n ?
|
|
272
|
+
themeId: n ? re : void 0,
|
|
273
273
|
theme: n || e
|
|
274
274
|
});
|
|
275
275
|
}
|
|
@@ -286,30 +286,30 @@ var { CssVarsProvider: nr, useColorScheme: rr, getInitColorSchemeScript: ir } =
|
|
|
286
286
|
}, l = X.createContext(void 0), u = {}, d = {}, f = typeof o == "string" ? o : o.light, p = typeof o == "string" ? o : o.dark;
|
|
287
287
|
return {
|
|
288
288
|
CssVarsProvider: function(e) {
|
|
289
|
-
let { children: c, theme: f, modeStorageKey: p = r, colorSchemeStorageKey: m = i, disableTransitionOnChange: h = a, storageManager: g, storageWindow: _ = typeof window > "u" ? void 0 : window, documentNode: v = typeof document > "u" ? void 0 : document, colorSchemeNode: y = typeof document > "u" ? void 0 : document.documentElement, disableNestedContext: b = !1, disableStyleSheetGeneration: x = !1, defaultMode: S = "system", forceThemeRerender: C = !1, noSsr: w } = e, T = X.useRef(!1), E = Rn(), D = X.useContext(l),
|
|
290
|
-
supportedColorSchemes:
|
|
291
|
-
defaultLightColorScheme:
|
|
292
|
-
defaultDarkColorScheme:
|
|
289
|
+
let { children: c, theme: f, modeStorageKey: p = r, colorSchemeStorageKey: m = i, disableTransitionOnChange: h = a, storageManager: g, storageWindow: _ = typeof window > "u" ? void 0 : window, documentNode: v = typeof document > "u" ? void 0 : document, colorSchemeNode: y = typeof document > "u" ? void 0 : document.documentElement, disableNestedContext: b = !1, disableStyleSheetGeneration: x = !1, defaultMode: S = "system", forceThemeRerender: C = !1, noSsr: w } = e, T = X.useRef(!1), E = Rn(), D = X.useContext(l), O = !!D && !b, ee = X.useMemo(() => f || (typeof n == "function" ? n() : n), [f]), te = ee[t], k = te || ee, { colorSchemes: A = u, components: j = d, cssVarPrefix: ne } = k, re = Object.keys(A).filter((e) => !!A[e]).join(","), M = X.useMemo(() => re.split(","), [re]), N = typeof o == "string" ? o : o.light, ie = typeof o == "string" ? o : o.dark, { mode: ae, setMode: oe, systemMode: P, lightColorScheme: se, darkColorScheme: ce, colorScheme: le, setColorScheme: ue } = Qn({
|
|
290
|
+
supportedColorSchemes: M,
|
|
291
|
+
defaultLightColorScheme: N,
|
|
292
|
+
defaultDarkColorScheme: ie,
|
|
293
293
|
modeStorageKey: p,
|
|
294
294
|
colorSchemeStorageKey: m,
|
|
295
|
-
defaultMode:
|
|
295
|
+
defaultMode: A[N] && A[ie] ? S : A[k.defaultColorScheme]?.palette?.mode || k.palette?.mode,
|
|
296
296
|
storageManager: g,
|
|
297
297
|
storageWindow: _,
|
|
298
298
|
noSsr: w
|
|
299
|
-
}),
|
|
300
|
-
|
|
301
|
-
let
|
|
302
|
-
|
|
303
|
-
let
|
|
304
|
-
let e =
|
|
305
|
-
...
|
|
306
|
-
components:
|
|
307
|
-
colorSchemes:
|
|
308
|
-
cssVarPrefix:
|
|
299
|
+
}), de = ae, F = le;
|
|
300
|
+
O && (de = D.mode, F = D.colorScheme);
|
|
301
|
+
let fe = F || k.defaultColorScheme;
|
|
302
|
+
k.vars && !C && (fe = k.defaultColorScheme);
|
|
303
|
+
let pe = X.useMemo(() => {
|
|
304
|
+
let e = k.generateThemeVars?.() || k.vars, t = {
|
|
305
|
+
...k,
|
|
306
|
+
components: j,
|
|
307
|
+
colorSchemes: A,
|
|
308
|
+
cssVarPrefix: ne,
|
|
309
309
|
vars: e
|
|
310
310
|
};
|
|
311
|
-
if (typeof t.generateSpacing == "function" && (t.spacing = t.generateSpacing()),
|
|
312
|
-
let e =
|
|
311
|
+
if (typeof t.generateSpacing == "function" && (t.spacing = t.generateSpacing()), fe) {
|
|
312
|
+
let e = A[fe];
|
|
313
313
|
e && typeof e == "object" && Object.keys(e).forEach((n) => {
|
|
314
314
|
e[n] && typeof e[n] == "object" ? t[n] = {
|
|
315
315
|
...t[n],
|
|
@@ -319,31 +319,31 @@ var { CssVarsProvider: nr, useColorScheme: rr, getInitColorSchemeScript: ir } =
|
|
|
319
319
|
}
|
|
320
320
|
return s ? s(t) : t;
|
|
321
321
|
}, [
|
|
322
|
-
O,
|
|
323
|
-
P,
|
|
324
|
-
re,
|
|
325
322
|
k,
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
323
|
+
fe,
|
|
324
|
+
j,
|
|
325
|
+
A,
|
|
326
|
+
ne
|
|
327
|
+
]), I = k.colorSchemeSelector;
|
|
328
|
+
ot(() => {
|
|
329
|
+
if (F && y && I && I !== "media") {
|
|
330
|
+
let e = I, t = I;
|
|
331
|
+
if (e === "class" && (t = ".%s"), e === "data" && (t = "[data-%s]"), e?.startsWith("data-") && !e.includes("%s") && (t = `[${e}="%s"]`), t.startsWith(".")) y.classList.remove(...M.map((e) => t.substring(1).replace("%s", e))), y.classList.add(t.substring(1).replace("%s", F));
|
|
332
332
|
else {
|
|
333
|
-
let e = t.replace("%s",
|
|
333
|
+
let e = t.replace("%s", F).match(/\[([^\]]+)\]/);
|
|
334
334
|
if (e) {
|
|
335
335
|
let [t, n] = e[1].split("=");
|
|
336
|
-
n ||
|
|
337
|
-
y.removeAttribute(t.replace(
|
|
336
|
+
n || M.forEach((e) => {
|
|
337
|
+
y.removeAttribute(t.replace(F, e));
|
|
338
338
|
}), y.setAttribute(t, n ? n.replace(/"|'/g, "") : "");
|
|
339
|
-
} else y.setAttribute(t,
|
|
339
|
+
} else y.setAttribute(t, F);
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
}, [
|
|
343
|
-
N,
|
|
344
343
|
F,
|
|
344
|
+
I,
|
|
345
345
|
y,
|
|
346
|
-
|
|
346
|
+
M
|
|
347
347
|
]), X.useEffect(() => {
|
|
348
348
|
let e;
|
|
349
349
|
if (h && T.current && v) {
|
|
@@ -356,41 +356,41 @@ var { CssVarsProvider: nr, useColorScheme: rr, getInitColorSchemeScript: ir } =
|
|
|
356
356
|
clearTimeout(e);
|
|
357
357
|
};
|
|
358
358
|
}, [
|
|
359
|
-
|
|
359
|
+
F,
|
|
360
360
|
h,
|
|
361
361
|
v
|
|
362
362
|
]), X.useEffect(() => (T.current = !0, () => {
|
|
363
363
|
T.current = !1;
|
|
364
364
|
}), []);
|
|
365
|
-
let
|
|
366
|
-
allColorSchemes:
|
|
367
|
-
colorScheme:
|
|
368
|
-
darkColorScheme:
|
|
369
|
-
lightColorScheme:
|
|
370
|
-
mode:
|
|
371
|
-
setColorScheme:
|
|
372
|
-
setMode:
|
|
373
|
-
systemMode:
|
|
365
|
+
let L = X.useMemo(() => ({
|
|
366
|
+
allColorSchemes: M,
|
|
367
|
+
colorScheme: F,
|
|
368
|
+
darkColorScheme: ce,
|
|
369
|
+
lightColorScheme: se,
|
|
370
|
+
mode: de,
|
|
371
|
+
setColorScheme: ue,
|
|
372
|
+
setMode: oe,
|
|
373
|
+
systemMode: P
|
|
374
374
|
}), [
|
|
375
|
-
ae,
|
|
376
|
-
N,
|
|
377
|
-
j,
|
|
378
|
-
de,
|
|
379
|
-
pe,
|
|
380
375
|
M,
|
|
381
|
-
|
|
376
|
+
F,
|
|
377
|
+
ce,
|
|
378
|
+
se,
|
|
379
|
+
de,
|
|
382
380
|
ue,
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
381
|
+
oe,
|
|
382
|
+
P,
|
|
383
|
+
pe.colorSchemeSelector
|
|
384
|
+
]), me = !0;
|
|
385
|
+
(x || !1 === k.cssVariables || O && E?.cssVarPrefix === ne) && (me = !1);
|
|
386
|
+
let he = (0, Z.jsxs)(X.Fragment, { children: [(0, Z.jsx)(Un, {
|
|
387
|
+
themeId: te ? t : void 0,
|
|
388
|
+
theme: pe,
|
|
389
389
|
children: c
|
|
390
|
-
}),
|
|
391
|
-
return
|
|
392
|
-
value:
|
|
393
|
-
children:
|
|
390
|
+
}), me && (0, Z.jsx)(yt, { styles: pe.generateStyleSheets?.() || [] })] });
|
|
391
|
+
return O ? he : (0, Z.jsx)(l.Provider, {
|
|
392
|
+
value: L,
|
|
393
|
+
children: he
|
|
394
394
|
});
|
|
395
395
|
},
|
|
396
396
|
useColorScheme: () => X.useContext(l) || c,
|
|
@@ -419,8 +419,8 @@ var { CssVarsProvider: nr, useColorScheme: rr, getInitColorSchemeScript: ir } =
|
|
|
419
419
|
})
|
|
420
420
|
};
|
|
421
421
|
}({
|
|
422
|
-
themeId:
|
|
423
|
-
theme: () =>
|
|
422
|
+
themeId: re,
|
|
423
|
+
theme: () => fe({ cssVariables: !0 }),
|
|
424
424
|
colorSchemeStorageKey: "mui-color-scheme",
|
|
425
425
|
modeStorageKey: "mui-mode",
|
|
426
426
|
defaultColorScheme: {
|
|
@@ -430,10 +430,10 @@ var { CssVarsProvider: nr, useColorScheme: rr, getInitColorSchemeScript: ir } =
|
|
|
430
430
|
resolveTheme: (e) => {
|
|
431
431
|
let t = {
|
|
432
432
|
...e,
|
|
433
|
-
typography:
|
|
433
|
+
typography: ye(e.palette, e.typography)
|
|
434
434
|
};
|
|
435
435
|
return t.unstable_sx = function(e) {
|
|
436
|
-
return
|
|
436
|
+
return Se({
|
|
437
437
|
sx: e,
|
|
438
438
|
theme: this
|
|
439
439
|
});
|
|
@@ -443,7 +443,7 @@ var { CssVarsProvider: nr, useColorScheme: rr, getInitColorSchemeScript: ir } =
|
|
|
443
443
|
function or({ theme: e, ...t }) {
|
|
444
444
|
let n = X.useMemo(() => {
|
|
445
445
|
if (typeof e == "function") return e;
|
|
446
|
-
let t = "$$material" in e ? e[
|
|
446
|
+
let t = "$$material" in e ? e[re] : e;
|
|
447
447
|
return "colorSchemes" in t ? null : "vars" in t ? e : {
|
|
448
448
|
...e,
|
|
449
449
|
vars: null
|
|
@@ -458,9 +458,9 @@ function or({ theme: e, ...t }) {
|
|
|
458
458
|
});
|
|
459
459
|
}
|
|
460
460
|
function sr(e) {
|
|
461
|
-
return
|
|
461
|
+
return I("MuiListSubheader", e);
|
|
462
462
|
}
|
|
463
|
-
|
|
463
|
+
ge("MuiListSubheader", [
|
|
464
464
|
"root",
|
|
465
465
|
"colorPrimary",
|
|
466
466
|
"colorInherit",
|
|
@@ -468,20 +468,20 @@ ve("MuiListSubheader", [
|
|
|
468
468
|
"inset",
|
|
469
469
|
"sticky"
|
|
470
470
|
]);
|
|
471
|
-
var cr =
|
|
471
|
+
var cr = ht("li", {
|
|
472
472
|
name: "MuiListSubheader",
|
|
473
473
|
slot: "Root",
|
|
474
474
|
overridesResolver: (e, t) => {
|
|
475
475
|
let { ownerState: n } = e;
|
|
476
476
|
return [
|
|
477
477
|
t.root,
|
|
478
|
-
n.color !== "default" && t[`color${
|
|
478
|
+
n.color !== "default" && t[`color${K(n.color)}`],
|
|
479
479
|
!n.disableGutters && t.gutters,
|
|
480
480
|
n.inset && t.inset,
|
|
481
481
|
!n.disableSticky && t.sticky
|
|
482
482
|
];
|
|
483
483
|
}
|
|
484
|
-
})(
|
|
484
|
+
})(ft(({ theme: e }) => ({
|
|
485
485
|
boxSizing: "border-box",
|
|
486
486
|
lineHeight: "48px",
|
|
487
487
|
listStyle: "none",
|
|
@@ -520,7 +520,7 @@ var cr = z("li", {
|
|
|
520
520
|
}
|
|
521
521
|
]
|
|
522
522
|
}))), lr = X.forwardRef(function(e, t) {
|
|
523
|
-
let n =
|
|
523
|
+
let n = ut({
|
|
524
524
|
props: e,
|
|
525
525
|
name: "MuiListSubheader"
|
|
526
526
|
}), { className: r, color: i = "default", component: a = "li", disableGutters: o = !1, disableSticky: s = !1, inset: c = !1, ...l } = n, u = {
|
|
@@ -532,9 +532,9 @@ var cr = z("li", {
|
|
|
532
532
|
inset: c
|
|
533
533
|
}, d = ((e) => {
|
|
534
534
|
let { classes: t, color: n, disableGutters: r, inset: i, disableSticky: a } = e;
|
|
535
|
-
return
|
|
535
|
+
return ct({ root: [
|
|
536
536
|
"root",
|
|
537
|
-
n !== "default" && `color${
|
|
537
|
+
n !== "default" && `color${K(n)}`,
|
|
538
538
|
!r && "gutters",
|
|
539
539
|
i && "inset",
|
|
540
540
|
!a && "sticky"
|
|
@@ -542,21 +542,21 @@ var cr = z("li", {
|
|
|
542
542
|
})(u);
|
|
543
543
|
return (0, Z.jsx)(cr, {
|
|
544
544
|
as: a,
|
|
545
|
-
className:
|
|
545
|
+
className: F(d.root, r),
|
|
546
546
|
ref: t,
|
|
547
547
|
ownerState: u,
|
|
548
548
|
...l
|
|
549
549
|
});
|
|
550
550
|
});
|
|
551
551
|
function ur(e) {
|
|
552
|
-
return
|
|
552
|
+
return I("MuiCard", e);
|
|
553
553
|
}
|
|
554
|
-
|
|
555
|
-
var dr =
|
|
554
|
+
ge("MuiCard", ["root"]);
|
|
555
|
+
var dr = ht(st, {
|
|
556
556
|
name: "MuiCard",
|
|
557
557
|
slot: "Root"
|
|
558
558
|
})({ overflow: "hidden" }), fr = X.forwardRef(function(e, t) {
|
|
559
|
-
let n =
|
|
559
|
+
let n = ut({
|
|
560
560
|
props: e,
|
|
561
561
|
name: "MuiCard"
|
|
562
562
|
}), { className: r, raised: i = !1, ...a } = n, o = {
|
|
@@ -564,10 +564,10 @@ var dr = z(je, {
|
|
|
564
564
|
raised: i
|
|
565
565
|
}, s = ((e) => {
|
|
566
566
|
let { classes: t } = e;
|
|
567
|
-
return
|
|
567
|
+
return ct({ root: ["root"] }, ur, t);
|
|
568
568
|
})(o);
|
|
569
569
|
return (0, Z.jsx)(dr, {
|
|
570
|
-
className:
|
|
570
|
+
className: F(s.root, r),
|
|
571
571
|
elevation: i ? 8 : void 0,
|
|
572
572
|
ref: t,
|
|
573
573
|
ownerState: o,
|
|
@@ -575,10 +575,10 @@ var dr = z(je, {
|
|
|
575
575
|
});
|
|
576
576
|
});
|
|
577
577
|
function pr(e) {
|
|
578
|
-
return
|
|
578
|
+
return I("MuiCardActions", e);
|
|
579
579
|
}
|
|
580
|
-
|
|
581
|
-
var mr =
|
|
580
|
+
ge("MuiCardActions", ["root", "spacing"]);
|
|
581
|
+
var mr = ht("div", {
|
|
582
582
|
name: "MuiCardActions",
|
|
583
583
|
slot: "Root",
|
|
584
584
|
overridesResolver: (e, t) => {
|
|
@@ -594,7 +594,7 @@ var mr = z("div", {
|
|
|
594
594
|
style: { "& > :not(style) ~ :not(style)": { marginLeft: 8 } }
|
|
595
595
|
}]
|
|
596
596
|
}), hr = X.forwardRef(function(e, t) {
|
|
597
|
-
let n =
|
|
597
|
+
let n = ut({
|
|
598
598
|
props: e,
|
|
599
599
|
name: "MuiCardActions"
|
|
600
600
|
}), { disableSpacing: r = !1, className: i, ...a } = n, o = {
|
|
@@ -602,15 +602,15 @@ var mr = z("div", {
|
|
|
602
602
|
disableSpacing: r
|
|
603
603
|
}, s = ((e) => {
|
|
604
604
|
let { classes: t, disableSpacing: n } = e;
|
|
605
|
-
return
|
|
605
|
+
return ct({ root: ["root", !n && "spacing"] }, pr, t);
|
|
606
606
|
})(o);
|
|
607
607
|
return (0, Z.jsx)(mr, {
|
|
608
|
-
className:
|
|
608
|
+
className: F(s.root, i),
|
|
609
609
|
ownerState: o,
|
|
610
610
|
ref: t,
|
|
611
611
|
...a
|
|
612
612
|
});
|
|
613
|
-
}), gr = typeof
|
|
613
|
+
}), gr = typeof bt({}) == "function", _r = (e, t) => ({
|
|
614
614
|
WebkitFontSmoothing: "antialiased",
|
|
615
615
|
MozOsxFontSmoothing: "grayscale",
|
|
616
616
|
boxSizing: "border-box",
|
|
@@ -639,7 +639,7 @@ var mr = z("div", {
|
|
|
639
639
|
...n
|
|
640
640
|
}, i = e.components?.MuiCssBaseline?.styleOverrides;
|
|
641
641
|
return i && (r = [r, i]), r;
|
|
642
|
-
}, br = "mui-ecs", xr =
|
|
642
|
+
}, br = "mui-ecs", xr = bt(gr ? ({ theme: e, enableColorScheme: t }) => yr(e, t) : ({ theme: e }) => ((e) => {
|
|
643
643
|
let t = yr(e, !1), n = Array.isArray(t) ? t[0] : t;
|
|
644
644
|
return !e.vars && n && (n.html[`:root:has(${br})`] = { colorScheme: e.palette.mode }), e.colorSchemes && Object.entries(e.colorSchemes).forEach(([t, r]) => {
|
|
645
645
|
let i = e.getColorSchemeSelector(t);
|
|
@@ -647,7 +647,7 @@ var mr = z("div", {
|
|
|
647
647
|
}), t;
|
|
648
648
|
})(e));
|
|
649
649
|
function Sr(e) {
|
|
650
|
-
let { children: t, enableColorScheme: n = !1 } =
|
|
650
|
+
let { children: t, enableColorScheme: n = !1 } = ut({
|
|
651
651
|
props: e,
|
|
652
652
|
name: "MuiCssBaseline"
|
|
653
653
|
});
|
|
@@ -664,14 +664,14 @@ var Cr = X.createContext({}), wr = X.createContext(void 0);
|
|
|
664
664
|
function Tr(e, t) {
|
|
665
665
|
return t !== void 0 && e !== void 0 && (Array.isArray(t) ? t.includes(e) : e === t);
|
|
666
666
|
}
|
|
667
|
-
var Er =
|
|
667
|
+
var Er = ht(W, {
|
|
668
668
|
name: "MuiToggleButton",
|
|
669
669
|
slot: "Root",
|
|
670
670
|
overridesResolver: (e, t) => {
|
|
671
671
|
let { ownerState: n } = e;
|
|
672
|
-
return [t.root, t[`size${
|
|
672
|
+
return [t.root, t[`size${K(n.size)}`]];
|
|
673
673
|
}
|
|
674
|
-
})(
|
|
674
|
+
})(ft(({ theme: e }) => ({
|
|
675
675
|
...e.typography.button,
|
|
676
676
|
borderRadius: (e.vars || e).shape.borderRadius,
|
|
677
677
|
padding: 11,
|
|
@@ -698,7 +698,7 @@ var Er = z(Oe, {
|
|
|
698
698
|
}
|
|
699
699
|
} }
|
|
700
700
|
},
|
|
701
|
-
...Object.entries(e.palette).filter(
|
|
701
|
+
...Object.entries(e.palette).filter(it()).map(([t]) => ({
|
|
702
702
|
props: { color: t },
|
|
703
703
|
style: { [`&.${er.selected}`]: {
|
|
704
704
|
color: (e.vars || e).palette[t].main,
|
|
@@ -729,8 +729,8 @@ var Er = z(Oe, {
|
|
|
729
729
|
}
|
|
730
730
|
]
|
|
731
731
|
}))), Dr = X.forwardRef(function(e, t) {
|
|
732
|
-
let { value: n, ...r } = X.useContext(Cr), i = X.useContext(wr), a =
|
|
733
|
-
props:
|
|
732
|
+
let { value: n, ...r } = X.useContext(Cr), i = X.useContext(wr), a = ut({
|
|
733
|
+
props: _t({
|
|
734
734
|
...r,
|
|
735
735
|
selected: Tr(e.value, n)
|
|
736
736
|
}, e),
|
|
@@ -744,17 +744,17 @@ var Er = z(Oe, {
|
|
|
744
744
|
size: h
|
|
745
745
|
}, y = ((e) => {
|
|
746
746
|
let { classes: t, fullWidth: n, selected: r, disabled: i, size: a, color: o } = e;
|
|
747
|
-
return
|
|
747
|
+
return ct({ root: [
|
|
748
748
|
"root",
|
|
749
749
|
r && "selected",
|
|
750
750
|
i && "disabled",
|
|
751
751
|
n && "fullWidth",
|
|
752
|
-
`size${
|
|
752
|
+
`size${K(a)}`,
|
|
753
753
|
o
|
|
754
754
|
] }, $n, t);
|
|
755
755
|
})(v), b = i || "";
|
|
756
756
|
return (0, Z.jsx)(Er, {
|
|
757
|
-
className:
|
|
757
|
+
className: F(r.className, y.root, s, b),
|
|
758
758
|
internalNativeButton: !0,
|
|
759
759
|
disabled: l,
|
|
760
760
|
focusRipple: !u,
|
|
@@ -771,9 +771,9 @@ var Er = z(Oe, {
|
|
|
771
771
|
});
|
|
772
772
|
});
|
|
773
773
|
function Or(e) {
|
|
774
|
-
return
|
|
774
|
+
return I("MuiToggleButtonGroup", e);
|
|
775
775
|
}
|
|
776
|
-
var Q =
|
|
776
|
+
var Q = ge("MuiToggleButtonGroup", [
|
|
777
777
|
"root",
|
|
778
778
|
"selected",
|
|
779
779
|
"horizontal",
|
|
@@ -784,7 +784,7 @@ var Q = ve("MuiToggleButtonGroup", [
|
|
|
784
784
|
"firstButton",
|
|
785
785
|
"lastButton",
|
|
786
786
|
"middleButton"
|
|
787
|
-
]), kr =
|
|
787
|
+
]), kr = ht("div", {
|
|
788
788
|
name: "MuiToggleButtonGroup",
|
|
789
789
|
slot: "Root",
|
|
790
790
|
overridesResolver: (e, t) => {
|
|
@@ -799,7 +799,7 @@ var Q = ve("MuiToggleButtonGroup", [
|
|
|
799
799
|
n.fullWidth && t.fullWidth
|
|
800
800
|
];
|
|
801
801
|
}
|
|
802
|
-
})(
|
|
802
|
+
})(ft(({ theme: e }) => ({
|
|
803
803
|
display: "inline-flex",
|
|
804
804
|
borderRadius: (e.vars || e).shape.borderRadius,
|
|
805
805
|
variants: [
|
|
@@ -850,7 +850,7 @@ var Q = ve("MuiToggleButtonGroup", [
|
|
|
850
850
|
}
|
|
851
851
|
]
|
|
852
852
|
}))), Ar = X.forwardRef(function(e, t) {
|
|
853
|
-
let n =
|
|
853
|
+
let n = ut({
|
|
854
854
|
props: e,
|
|
855
855
|
name: "MuiToggleButtonGroup"
|
|
856
856
|
}), { children: r, className: i, color: a = "standard", disabled: o = !1, exclusive: s = !1, fullWidth: c = !1, onChange: l, orientation: u = "horizontal", size: d = "medium", value: f, ...p } = n, m = {
|
|
@@ -861,7 +861,7 @@ var Q = ve("MuiToggleButtonGroup", [
|
|
|
861
861
|
size: d
|
|
862
862
|
}, h = ((e) => {
|
|
863
863
|
let { classes: t, orientation: n, fullWidth: r, disabled: i } = e;
|
|
864
|
-
return
|
|
864
|
+
return ct({
|
|
865
865
|
root: [
|
|
866
866
|
"root",
|
|
867
867
|
n,
|
|
@@ -904,7 +904,7 @@ var Q = ve("MuiToggleButtonGroup", [
|
|
|
904
904
|
};
|
|
905
905
|
return (0, Z.jsx)(kr, {
|
|
906
906
|
role: "group",
|
|
907
|
-
className:
|
|
907
|
+
className: F(h.root, i),
|
|
908
908
|
ref: t,
|
|
909
909
|
ownerState: m,
|
|
910
910
|
...p,
|
|
@@ -918,10 +918,10 @@ var Q = ve("MuiToggleButtonGroup", [
|
|
|
918
918
|
});
|
|
919
919
|
}), jr = e(n(), 1), Mr = (0, X.memo)((e) => {
|
|
920
920
|
let { option: t, onOptionChange: n, readOnly: r, ...i } = e;
|
|
921
|
-
return (0, Z.jsx)(
|
|
921
|
+
return (0, Z.jsx)(vn, {
|
|
922
922
|
size: "small",
|
|
923
923
|
type: "text",
|
|
924
|
-
placeholder:
|
|
924
|
+
placeholder: N()("condition.enterText"),
|
|
925
925
|
value: t ?? "",
|
|
926
926
|
onChange: (e) => n(String(e.target.value)),
|
|
927
927
|
disabled: r,
|
|
@@ -932,10 +932,10 @@ var Q = ve("MuiToggleButtonGroup", [
|
|
|
932
932
|
Mr.displayName = "StringOption";
|
|
933
933
|
var Nr = (0, X.memo)((e) => {
|
|
934
934
|
let { option: t, onOptionChange: n, readOnly: r, ...i } = e;
|
|
935
|
-
return (0, Z.jsx)(
|
|
935
|
+
return (0, Z.jsx)(vn, {
|
|
936
936
|
size: "small",
|
|
937
937
|
type: "number",
|
|
938
|
-
placeholder:
|
|
938
|
+
placeholder: N()("condition.enterNumber"),
|
|
939
939
|
value: "" + (t ?? ""),
|
|
940
940
|
onChange: (e) => n(Number(e.target.value)),
|
|
941
941
|
disabled: r,
|
|
@@ -971,7 +971,7 @@ var Pr = (0, X.createContext)(null), Fr = (e) => {
|
|
|
971
971
|
anchor: n
|
|
972
972
|
};
|
|
973
973
|
}, Lr = () => {
|
|
974
|
-
let e =
|
|
974
|
+
let e = Le(), t = (0, X.useContext)(Pr), n = (0, X.useRef)(null), r = e ? Fr(e) : null, i = e?.getName() ?? null, a = (0, X.useMemo)(() => r && i ? {
|
|
975
975
|
...r,
|
|
976
976
|
scope: i
|
|
977
977
|
} : void 0, [
|
|
@@ -1009,7 +1009,7 @@ var Pr = (0, X.createContext)(null), Fr = (e) => {
|
|
|
1009
1009
|
a
|
|
1010
1010
|
]);
|
|
1011
1011
|
}, Rr = (e, t) => e == null ? "" : e.isIFormula ? "=" + t.display(e) : typeof e == "boolean" ? e ? "TRUE" : "FALSE" : m.isError(e) ? e.getLabel() : String(e), zr = (0, X.memo)((e) => {
|
|
1012
|
-
let { option: t, onOptionChange: n, readOnly: r, ...i } = e, a =
|
|
1012
|
+
let { option: t, onOptionChange: n, readOnly: r, ...i } = e, a = N(), o = Lr();
|
|
1013
1013
|
return (0, Z.jsx)(In, {
|
|
1014
1014
|
size: "small",
|
|
1015
1015
|
home: o.home,
|
|
@@ -1043,32 +1043,32 @@ var Br = (e, t, n) => {
|
|
|
1043
1043
|
if (e == null) return "";
|
|
1044
1044
|
if (e.isIFormula) return "=" + n.display(e);
|
|
1045
1045
|
if (Array.isArray(e)) return e.map((e) => String(e ?? "")).join(t);
|
|
1046
|
-
let r =
|
|
1046
|
+
let r = g.parseListLiteral(e);
|
|
1047
1047
|
return r ? r.join(t) : e.length > 0 ? "=" + e : "";
|
|
1048
1048
|
}, Vr = (0, X.memo)((e) => {
|
|
1049
|
-
let { option: t, onOptionChange: n, readOnly: r, sx:
|
|
1049
|
+
let { option: t, onOptionChange: n, readOnly: r, sx: i, ...a } = e, o = N(), s = Le(), c = (0, X.useContext)(Pr), l = Lr(), u = w(s?.getWorkbook()?.getLocale() ?? "en").listSeparator, [d, p] = (0, X.useState)(null), m = t?.items, [h, _] = (0, X.useState)(null), v = (0, X.useRef)(0);
|
|
1050
1050
|
(0, X.useEffect)(() => {
|
|
1051
|
-
if (!
|
|
1052
|
-
let e = ++
|
|
1053
|
-
|
|
1054
|
-
e ===
|
|
1051
|
+
if (!c?.getListItemsAt || !s) return void _(null);
|
|
1052
|
+
let e = ++v.current, { rowIndex: t, colIndex: n } = Fr(s);
|
|
1053
|
+
c.getListItemsAt(t, n).then((t) => {
|
|
1054
|
+
e === v.current && _(t);
|
|
1055
1055
|
}, () => {
|
|
1056
|
-
e ===
|
|
1056
|
+
e === v.current && _([]);
|
|
1057
1057
|
});
|
|
1058
1058
|
}, [
|
|
1059
|
-
l,
|
|
1060
1059
|
c,
|
|
1060
|
+
s,
|
|
1061
1061
|
m
|
|
1062
1062
|
]);
|
|
1063
|
-
let [
|
|
1064
|
-
return (0, Z.jsxs)(
|
|
1063
|
+
let [y, b] = (0, X.useState)(null), { className: x } = ie(A()?.themeScope), S = (0, X.useMemo)(() => s?.getStyles().getNormal().getFont().toCSS("adaptive"), [s]), [T, E] = (0, X.useState)(null), D = T ?? d;
|
|
1064
|
+
return (0, Z.jsxs)(R, {
|
|
1065
1065
|
sx: {
|
|
1066
1066
|
display: "flex",
|
|
1067
1067
|
flexDirection: "column",
|
|
1068
1068
|
mt: .75,
|
|
1069
|
-
...
|
|
1069
|
+
...i
|
|
1070
1070
|
},
|
|
1071
|
-
children: [(0, Z.jsxs)(
|
|
1071
|
+
children: [(0, Z.jsxs)(R, {
|
|
1072
1072
|
sx: {
|
|
1073
1073
|
display: "flex",
|
|
1074
1074
|
alignItems: "stretch",
|
|
@@ -1076,8 +1076,8 @@ var Br = (e, t, n) => {
|
|
|
1076
1076
|
},
|
|
1077
1077
|
children: [(0, Z.jsx)(In, {
|
|
1078
1078
|
size: "small",
|
|
1079
|
-
home:
|
|
1080
|
-
value: Br(m,
|
|
1079
|
+
home: l.home,
|
|
1080
|
+
value: Br(m, u, l),
|
|
1081
1081
|
onChangeText: (e) => {
|
|
1082
1082
|
let r = ((e, t, n) => {
|
|
1083
1083
|
if (e.length === 0) return { items: "" };
|
|
@@ -1088,54 +1088,54 @@ var Br = (e, t, n) => {
|
|
|
1088
1088
|
let t = e;
|
|
1089
1089
|
for (; t?.type === "paren" && t.inputs?.length === 1;) t = t.inputs[0];
|
|
1090
1090
|
return t?.type === "list" || t?.type === "paren" && (t.inputs?.length ?? 0) > 1;
|
|
1091
|
-
})(
|
|
1091
|
+
})(C.parse(t.getExpression())) ? { error: f("condition.listSourceOneRange") } : { items: t.getExpression() };
|
|
1092
1092
|
}
|
|
1093
|
-
let r =
|
|
1094
|
-
return r === null ? { error:
|
|
1095
|
-
})(e,
|
|
1093
|
+
let r = g.formatListLiteral(e.split(t));
|
|
1094
|
+
return r === null ? { error: f("condition.listItemHasComma") } : { items: r };
|
|
1095
|
+
})(e, u, l);
|
|
1096
1096
|
p(r.error ?? null), r.items !== void 0 && n({
|
|
1097
1097
|
...t,
|
|
1098
1098
|
items: r.items
|
|
1099
1099
|
});
|
|
1100
1100
|
},
|
|
1101
|
-
label:
|
|
1102
|
-
placeholder:
|
|
1101
|
+
label: o("condition.listSource"),
|
|
1102
|
+
placeholder: o("condition.enterListSource"),
|
|
1103
1103
|
disabled: r,
|
|
1104
1104
|
fullWidth: !0,
|
|
1105
1105
|
equals: "literal",
|
|
1106
1106
|
pickAs: "absolute",
|
|
1107
1107
|
allowMulti: !1,
|
|
1108
|
-
validationError:
|
|
1109
|
-
onChangeError:
|
|
1108
|
+
validationError: d,
|
|
1109
|
+
onChangeError: E,
|
|
1110
1110
|
showError: !1,
|
|
1111
1111
|
helperText: null,
|
|
1112
|
-
...
|
|
1113
|
-
}), h !== null && (0, Z.jsxs)(Z.Fragment, { children: [(0, Z.jsx)(
|
|
1112
|
+
...a
|
|
1113
|
+
}), h !== null && (0, Z.jsxs)(Z.Fragment, { children: [(0, Z.jsx)(nt, {
|
|
1114
1114
|
size: "small",
|
|
1115
1115
|
variant: "outlined",
|
|
1116
1116
|
color: "inherit",
|
|
1117
1117
|
onClick: (e) => b(e.currentTarget),
|
|
1118
|
-
endIcon: (0, Z.jsx)(
|
|
1118
|
+
endIcon: (0, Z.jsx)(O, { iconKey: "ExpandMore" }),
|
|
1119
1119
|
sx: {
|
|
1120
1120
|
flexShrink: 0,
|
|
1121
1121
|
width: "8.5em",
|
|
1122
1122
|
justifyContent: "space-between",
|
|
1123
1123
|
textTransform: "none"
|
|
1124
1124
|
},
|
|
1125
|
-
children: (0, Z.jsx)(
|
|
1125
|
+
children: (0, Z.jsx)(R, {
|
|
1126
1126
|
component: "span",
|
|
1127
1127
|
sx: {
|
|
1128
1128
|
overflow: "hidden",
|
|
1129
1129
|
textOverflow: "ellipsis",
|
|
1130
1130
|
whiteSpace: "nowrap"
|
|
1131
1131
|
},
|
|
1132
|
-
children:
|
|
1132
|
+
children: o("condition.listPreview", { count: h.length })
|
|
1133
1133
|
})
|
|
1134
|
-
}), (0, Z.jsx)(
|
|
1135
|
-
open: !!
|
|
1136
|
-
anchorEl:
|
|
1134
|
+
}), (0, Z.jsx)(wt, {
|
|
1135
|
+
open: !!y,
|
|
1136
|
+
anchorEl: y,
|
|
1137
1137
|
onClose: () => b(null),
|
|
1138
|
-
className:
|
|
1138
|
+
className: x,
|
|
1139
1139
|
anchorOrigin: {
|
|
1140
1140
|
vertical: "bottom",
|
|
1141
1141
|
horizontal: "right"
|
|
@@ -1144,27 +1144,27 @@ var Br = (e, t, n) => {
|
|
|
1144
1144
|
vertical: "top",
|
|
1145
1145
|
horizontal: "right"
|
|
1146
1146
|
},
|
|
1147
|
-
children: (0, Z.jsx)(
|
|
1147
|
+
children: (0, Z.jsx)(U, {
|
|
1148
1148
|
items: h,
|
|
1149
|
-
minWidth:
|
|
1150
|
-
style:
|
|
1149
|
+
minWidth: y?.getBoundingClientRect().width,
|
|
1150
|
+
style: S,
|
|
1151
1151
|
onChoose: () => b(null)
|
|
1152
1152
|
})
|
|
1153
1153
|
})] })]
|
|
1154
|
-
}),
|
|
1154
|
+
}), D && (0, Z.jsx)(_n, {
|
|
1155
1155
|
error: !0,
|
|
1156
|
-
children:
|
|
1156
|
+
children: o(D)
|
|
1157
1157
|
})]
|
|
1158
1158
|
});
|
|
1159
1159
|
});
|
|
1160
1160
|
Vr.displayName = "ListSourceOption";
|
|
1161
1161
|
var Hr = {}, Ur = (0, X.memo)((e) => {
|
|
1162
|
-
let { option: t, onOptionChange: n, className: r, readOnly: i, ...a } = e, o =
|
|
1162
|
+
let { option: t, onOptionChange: n, className: r, readOnly: i, ...a } = e, o = N(), s = t?.type ?? b.AverageType.Above, c = t?.stdDevs ?? "", l = { backgroundColor: "background.paper" };
|
|
1163
1163
|
return i && (l = {
|
|
1164
1164
|
...l,
|
|
1165
1165
|
"& .MuiSelect-icon": { display: "none" },
|
|
1166
1166
|
"& .MuiOutlinedInput-notchedOutline": { borderColor: "action.disabled" }
|
|
1167
|
-
}), (0, Z.jsxs)(
|
|
1167
|
+
}), (0, Z.jsxs)(R, {
|
|
1168
1168
|
className: Fn(r, Hr.option),
|
|
1169
1169
|
...a,
|
|
1170
1170
|
sx: {
|
|
@@ -1173,13 +1173,13 @@ var Hr = {}, Ur = (0, X.memo)((e) => {
|
|
|
1173
1173
|
gap: .25,
|
|
1174
1174
|
...a?.sx
|
|
1175
1175
|
},
|
|
1176
|
-
children: [(0, Z.jsx)(
|
|
1176
|
+
children: [(0, Z.jsx)(q, {
|
|
1177
1177
|
sx: { flex: .5 },
|
|
1178
1178
|
size: "small",
|
|
1179
|
-
children: (0, Z.jsxs)(
|
|
1179
|
+
children: (0, Z.jsxs)(J, {
|
|
1180
1180
|
value: s,
|
|
1181
1181
|
sx: l,
|
|
1182
|
-
IconComponent: (e) => (0, Z.jsx)(
|
|
1182
|
+
IconComponent: (e) => (0, Z.jsx)(O, {
|
|
1183
1183
|
iconKey: "ExpandMore",
|
|
1184
1184
|
...e
|
|
1185
1185
|
}),
|
|
@@ -1188,15 +1188,15 @@ var Hr = {}, Ur = (0, X.memo)((e) => {
|
|
|
1188
1188
|
...t,
|
|
1189
1189
|
type: e.target.value
|
|
1190
1190
|
}),
|
|
1191
|
-
children: [(0, Z.jsx)(
|
|
1192
|
-
value:
|
|
1191
|
+
children: [(0, Z.jsx)(Y, {
|
|
1192
|
+
value: b.AverageType.Above,
|
|
1193
1193
|
children: o("condition.above")
|
|
1194
|
-
}), (0, Z.jsx)(
|
|
1195
|
-
value:
|
|
1194
|
+
}), (0, Z.jsx)(Y, {
|
|
1195
|
+
value: b.AverageType.Below,
|
|
1196
1196
|
children: o("condition.below")
|
|
1197
1197
|
})]
|
|
1198
1198
|
})
|
|
1199
|
-
}), (0, Z.jsx)(
|
|
1199
|
+
}), (0, Z.jsx)(vn, {
|
|
1200
1200
|
size: "small",
|
|
1201
1201
|
placeholder: o("condition.stdDevs"),
|
|
1202
1202
|
value: c,
|
|
@@ -1212,8 +1212,8 @@ var Hr = {}, Ur = (0, X.memo)((e) => {
|
|
|
1212
1212
|
});
|
|
1213
1213
|
});
|
|
1214
1214
|
Ur.displayName = "AverageOption";
|
|
1215
|
-
var Wr = 0, Gr = /* @__PURE__ */ new WeakMap(), Kr = Object.freeze([
|
|
1216
|
-
let i = t ?? Object.values(
|
|
1215
|
+
var Wr = 0, Gr = /* @__PURE__ */ new WeakMap(), Kr = Object.freeze([b.BuiltInOperatorNames.Icon, b.BuiltInOperatorNames.Color]), qr = (e, t, n, r = Kr) => {
|
|
1216
|
+
let i = t ?? Object.values(g.BuiltInOperators), a = e?.getSelectType() ?? null, o = e?.isList;
|
|
1217
1217
|
return i.filter((t) => {
|
|
1218
1218
|
if (r.includes(t.getName())) return !1;
|
|
1219
1219
|
let n = t.acceptsList?.();
|
|
@@ -1228,7 +1228,7 @@ var Wr = 0, Gr = /* @__PURE__ */ new WeakMap(), Kr = Object.freeze([S.BuiltInOpe
|
|
|
1228
1228
|
disableSticky: !0,
|
|
1229
1229
|
sx: Xr,
|
|
1230
1230
|
children: n("condition.groupBasic")
|
|
1231
|
-
}, "__header:leaf")), a.forEach((e) => s.push(t(e)))), a.length > 0 && o.length > 0 && s.push((0, Z.jsx)(
|
|
1231
|
+
}, "__header:leaf")), a.forEach((e) => s.push(t(e)))), a.length > 0 && o.length > 0 && s.push((0, Z.jsx)(qe, {}, "__divider")), o.length > 0 && (s.push((0, Z.jsx)(lr, {
|
|
1232
1232
|
disableSticky: !0,
|
|
1233
1233
|
sx: Xr,
|
|
1234
1234
|
children: n("condition.groupCombine")
|
|
@@ -1256,15 +1256,15 @@ var Wr = 0, Gr = /* @__PURE__ */ new WeakMap(), Kr = Object.freeze([S.BuiltInOpe
|
|
|
1256
1256
|
header: e("condition.period.day"),
|
|
1257
1257
|
options: [
|
|
1258
1258
|
{
|
|
1259
|
-
value:
|
|
1259
|
+
value: b.TimePeriodType.Today,
|
|
1260
1260
|
label: e("condition.period.today")
|
|
1261
1261
|
},
|
|
1262
1262
|
{
|
|
1263
|
-
value:
|
|
1263
|
+
value: b.TimePeriodType.Yesterday,
|
|
1264
1264
|
label: e("condition.period.yesterday")
|
|
1265
1265
|
},
|
|
1266
1266
|
{
|
|
1267
|
-
value:
|
|
1267
|
+
value: b.TimePeriodType.Tomorrow,
|
|
1268
1268
|
label: e("condition.period.tomorrow")
|
|
1269
1269
|
}
|
|
1270
1270
|
]
|
|
@@ -1273,15 +1273,15 @@ var Wr = 0, Gr = /* @__PURE__ */ new WeakMap(), Kr = Object.freeze([S.BuiltInOpe
|
|
|
1273
1273
|
header: e("condition.period.week"),
|
|
1274
1274
|
options: [
|
|
1275
1275
|
{
|
|
1276
|
-
value:
|
|
1276
|
+
value: b.TimePeriodType.ThisWeek,
|
|
1277
1277
|
label: e("condition.period.thisWeek")
|
|
1278
1278
|
},
|
|
1279
1279
|
{
|
|
1280
|
-
value:
|
|
1280
|
+
value: b.TimePeriodType.LastWeek,
|
|
1281
1281
|
label: e("condition.period.lastWeek")
|
|
1282
1282
|
},
|
|
1283
1283
|
{
|
|
1284
|
-
value:
|
|
1284
|
+
value: b.TimePeriodType.NextWeek,
|
|
1285
1285
|
label: e("condition.period.nextWeek")
|
|
1286
1286
|
}
|
|
1287
1287
|
]
|
|
@@ -1290,15 +1290,15 @@ var Wr = 0, Gr = /* @__PURE__ */ new WeakMap(), Kr = Object.freeze([S.BuiltInOpe
|
|
|
1290
1290
|
header: e("condition.period.month"),
|
|
1291
1291
|
options: [
|
|
1292
1292
|
{
|
|
1293
|
-
value:
|
|
1293
|
+
value: b.TimePeriodType.ThisMonth,
|
|
1294
1294
|
label: e("condition.period.thisMonth")
|
|
1295
1295
|
},
|
|
1296
1296
|
{
|
|
1297
|
-
value:
|
|
1297
|
+
value: b.TimePeriodType.LastMonth,
|
|
1298
1298
|
label: e("condition.period.lastMonth")
|
|
1299
1299
|
},
|
|
1300
1300
|
{
|
|
1301
|
-
value:
|
|
1301
|
+
value: b.TimePeriodType.NextMonth,
|
|
1302
1302
|
label: e("condition.period.nextMonth")
|
|
1303
1303
|
}
|
|
1304
1304
|
]
|
|
@@ -1306,10 +1306,10 @@ var Wr = 0, Gr = /* @__PURE__ */ new WeakMap(), Kr = Object.freeze([S.BuiltInOpe
|
|
|
1306
1306
|
{
|
|
1307
1307
|
header: e("condition.period.year"),
|
|
1308
1308
|
options: [{
|
|
1309
|
-
value:
|
|
1309
|
+
value: b.TimePeriodType.YearToDate,
|
|
1310
1310
|
label: e("condition.period.yearToDate")
|
|
1311
1311
|
}, {
|
|
1312
|
-
value:
|
|
1312
|
+
value: b.TimePeriodType.LastYear,
|
|
1313
1313
|
label: e("condition.period.lastYear")
|
|
1314
1314
|
}]
|
|
1315
1315
|
},
|
|
@@ -1317,51 +1317,51 @@ var Wr = 0, Gr = /* @__PURE__ */ new WeakMap(), Kr = Object.freeze([S.BuiltInOpe
|
|
|
1317
1317
|
header: e("condition.period.byMonth"),
|
|
1318
1318
|
options: [
|
|
1319
1319
|
{
|
|
1320
|
-
value:
|
|
1320
|
+
value: b.TimePeriodType.M1,
|
|
1321
1321
|
label: n(0)
|
|
1322
1322
|
},
|
|
1323
1323
|
{
|
|
1324
|
-
value:
|
|
1324
|
+
value: b.TimePeriodType.M2,
|
|
1325
1325
|
label: n(1)
|
|
1326
1326
|
},
|
|
1327
1327
|
{
|
|
1328
|
-
value:
|
|
1328
|
+
value: b.TimePeriodType.M3,
|
|
1329
1329
|
label: n(2)
|
|
1330
1330
|
},
|
|
1331
1331
|
{
|
|
1332
|
-
value:
|
|
1332
|
+
value: b.TimePeriodType.M4,
|
|
1333
1333
|
label: n(3)
|
|
1334
1334
|
},
|
|
1335
1335
|
{
|
|
1336
|
-
value:
|
|
1336
|
+
value: b.TimePeriodType.M5,
|
|
1337
1337
|
label: n(4)
|
|
1338
1338
|
},
|
|
1339
1339
|
{
|
|
1340
|
-
value:
|
|
1340
|
+
value: b.TimePeriodType.M6,
|
|
1341
1341
|
label: n(5)
|
|
1342
1342
|
},
|
|
1343
1343
|
{
|
|
1344
|
-
value:
|
|
1344
|
+
value: b.TimePeriodType.M7,
|
|
1345
1345
|
label: n(6)
|
|
1346
1346
|
},
|
|
1347
1347
|
{
|
|
1348
|
-
value:
|
|
1348
|
+
value: b.TimePeriodType.M8,
|
|
1349
1349
|
label: n(7)
|
|
1350
1350
|
},
|
|
1351
1351
|
{
|
|
1352
|
-
value:
|
|
1352
|
+
value: b.TimePeriodType.M9,
|
|
1353
1353
|
label: n(8)
|
|
1354
1354
|
},
|
|
1355
1355
|
{
|
|
1356
|
-
value:
|
|
1356
|
+
value: b.TimePeriodType.M10,
|
|
1357
1357
|
label: n(9)
|
|
1358
1358
|
},
|
|
1359
1359
|
{
|
|
1360
|
-
value:
|
|
1360
|
+
value: b.TimePeriodType.M11,
|
|
1361
1361
|
label: n(10)
|
|
1362
1362
|
},
|
|
1363
1363
|
{
|
|
1364
|
-
value:
|
|
1364
|
+
value: b.TimePeriodType.M12,
|
|
1365
1365
|
label: n(11)
|
|
1366
1366
|
}
|
|
1367
1367
|
]
|
|
@@ -1370,38 +1370,38 @@ var Wr = 0, Gr = /* @__PURE__ */ new WeakMap(), Kr = Object.freeze([S.BuiltInOpe
|
|
|
1370
1370
|
header: e("condition.period.byQuarter"),
|
|
1371
1371
|
options: [
|
|
1372
1372
|
{
|
|
1373
|
-
value:
|
|
1373
|
+
value: b.TimePeriodType.ThisQuarter,
|
|
1374
1374
|
label: e("condition.period.thisQuarter")
|
|
1375
1375
|
},
|
|
1376
1376
|
{
|
|
1377
|
-
value:
|
|
1377
|
+
value: b.TimePeriodType.LastQuarter,
|
|
1378
1378
|
label: e("condition.period.lastQuarter")
|
|
1379
1379
|
},
|
|
1380
1380
|
{
|
|
1381
|
-
value:
|
|
1381
|
+
value: b.TimePeriodType.NextQuarter,
|
|
1382
1382
|
label: e("condition.period.nextQuarter")
|
|
1383
1383
|
},
|
|
1384
1384
|
{
|
|
1385
|
-
value:
|
|
1385
|
+
value: b.TimePeriodType.Q1,
|
|
1386
1386
|
label: e("condition.period.q1")
|
|
1387
1387
|
},
|
|
1388
1388
|
{
|
|
1389
|
-
value:
|
|
1389
|
+
value: b.TimePeriodType.Q2,
|
|
1390
1390
|
label: e("condition.period.q2")
|
|
1391
1391
|
},
|
|
1392
1392
|
{
|
|
1393
|
-
value:
|
|
1393
|
+
value: b.TimePeriodType.Q3,
|
|
1394
1394
|
label: e("condition.period.q3")
|
|
1395
1395
|
},
|
|
1396
1396
|
{
|
|
1397
|
-
value:
|
|
1397
|
+
value: b.TimePeriodType.Q4,
|
|
1398
1398
|
label: e("condition.period.q4")
|
|
1399
1399
|
}
|
|
1400
1400
|
]
|
|
1401
1401
|
}
|
|
1402
1402
|
];
|
|
1403
|
-
}(
|
|
1404
|
-
return (0, Z.jsx)(
|
|
1403
|
+
}(N(), _e()), o = t?.type ?? b.TimePeriodType.Today;
|
|
1404
|
+
return (0, Z.jsx)(R, {
|
|
1405
1405
|
...i,
|
|
1406
1406
|
sx: {
|
|
1407
1407
|
display: "flex",
|
|
@@ -1409,12 +1409,12 @@ var Wr = 0, Gr = /* @__PURE__ */ new WeakMap(), Kr = Object.freeze([S.BuiltInOpe
|
|
|
1409
1409
|
gap: 2,
|
|
1410
1410
|
...i?.sx
|
|
1411
1411
|
},
|
|
1412
|
-
children: (0, Z.jsx)(
|
|
1412
|
+
children: (0, Z.jsx)(q, {
|
|
1413
1413
|
size: "small",
|
|
1414
|
-
children: (0, Z.jsx)(
|
|
1414
|
+
children: (0, Z.jsx)(J, {
|
|
1415
1415
|
value: o,
|
|
1416
1416
|
sx: { backgroundColor: "background.paper" },
|
|
1417
|
-
IconComponent: (e) => (0, Z.jsx)(
|
|
1417
|
+
IconComponent: (e) => (0, Z.jsx)(O, {
|
|
1418
1418
|
iconKey: "ExpandMore",
|
|
1419
1419
|
...e
|
|
1420
1420
|
}),
|
|
@@ -1425,10 +1425,10 @@ var Wr = 0, Gr = /* @__PURE__ */ new WeakMap(), Kr = Object.freeze([S.BuiltInOpe
|
|
|
1425
1425
|
disabled: r,
|
|
1426
1426
|
children: a.map((e, t) => {
|
|
1427
1427
|
let n = [];
|
|
1428
|
-
return t > 0 && n.push((0, Z.jsx)(
|
|
1428
|
+
return t > 0 && n.push((0, Z.jsx)(qe, {}, `divider-${t}`)), n.push((0, Z.jsx)(lr, {
|
|
1429
1429
|
sx: Xr,
|
|
1430
1430
|
children: e.header
|
|
1431
|
-
}, `header-${t}`)), e.options.map((e) => n.push((0, Z.jsx)(
|
|
1431
|
+
}, `header-${t}`)), e.options.map((e) => n.push((0, Z.jsx)(Y, {
|
|
1432
1432
|
sx: Zr,
|
|
1433
1433
|
value: e.value,
|
|
1434
1434
|
children: e.label
|
|
@@ -1440,8 +1440,8 @@ var Wr = 0, Gr = /* @__PURE__ */ new WeakMap(), Kr = Object.freeze([S.BuiltInOpe
|
|
|
1440
1440
|
});
|
|
1441
1441
|
Qr.displayName = "TimePeriodOption";
|
|
1442
1442
|
var $r = (0, X.memo)((e) => {
|
|
1443
|
-
let { option: t, onOptionChange: n, readOnly: r, ...i } = e, a =
|
|
1444
|
-
return (0, Z.jsxs)(
|
|
1443
|
+
let { option: t, onOptionChange: n, readOnly: r, ...i } = e, a = N(), o = t?.top ?? !0, s = t?.limit ?? 10, c = t?.percent ?? !1;
|
|
1444
|
+
return (0, Z.jsxs)(R, {
|
|
1445
1445
|
...i,
|
|
1446
1446
|
sx: {
|
|
1447
1447
|
display: "flex",
|
|
@@ -1450,13 +1450,13 @@ var $r = (0, X.memo)((e) => {
|
|
|
1450
1450
|
...i?.sx
|
|
1451
1451
|
},
|
|
1452
1452
|
children: [
|
|
1453
|
-
(0, Z.jsx)(
|
|
1453
|
+
(0, Z.jsx)(q, {
|
|
1454
1454
|
size: "small",
|
|
1455
1455
|
sx: { flex: 1 },
|
|
1456
|
-
children: (0, Z.jsxs)(
|
|
1456
|
+
children: (0, Z.jsxs)(J, {
|
|
1457
1457
|
value: o ? "top" : "bottom",
|
|
1458
1458
|
sx: { backgroundColor: "background.paper" },
|
|
1459
|
-
IconComponent: (e) => (0, Z.jsx)(
|
|
1459
|
+
IconComponent: (e) => (0, Z.jsx)(O, {
|
|
1460
1460
|
iconKey: "ExpandMore",
|
|
1461
1461
|
...e
|
|
1462
1462
|
}),
|
|
@@ -1465,16 +1465,16 @@ var $r = (0, X.memo)((e) => {
|
|
|
1465
1465
|
top: e.target.value === "top"
|
|
1466
1466
|
}),
|
|
1467
1467
|
disabled: r,
|
|
1468
|
-
children: [(0, Z.jsx)(
|
|
1468
|
+
children: [(0, Z.jsx)(Y, {
|
|
1469
1469
|
value: "top",
|
|
1470
1470
|
children: a("condition.top")
|
|
1471
|
-
}), (0, Z.jsx)(
|
|
1471
|
+
}), (0, Z.jsx)(Y, {
|
|
1472
1472
|
value: "bottom",
|
|
1473
1473
|
children: a("condition.bottom")
|
|
1474
1474
|
})]
|
|
1475
1475
|
})
|
|
1476
1476
|
}),
|
|
1477
|
-
(0, Z.jsx)(
|
|
1477
|
+
(0, Z.jsx)(vn, {
|
|
1478
1478
|
size: "small",
|
|
1479
1479
|
placeholder: "10",
|
|
1480
1480
|
value: s,
|
|
@@ -1490,13 +1490,13 @@ var $r = (0, X.memo)((e) => {
|
|
|
1490
1490
|
slotProps: { input: { sx: { backgroundColor: "background.paper" } } },
|
|
1491
1491
|
sx: { flex: .6 }
|
|
1492
1492
|
}),
|
|
1493
|
-
(0, Z.jsx)(
|
|
1493
|
+
(0, Z.jsx)(q, {
|
|
1494
1494
|
size: "small",
|
|
1495
1495
|
sx: { flex: 1 },
|
|
1496
|
-
children: (0, Z.jsxs)(
|
|
1496
|
+
children: (0, Z.jsxs)(J, {
|
|
1497
1497
|
value: c ? "percent" : "items",
|
|
1498
1498
|
sx: { backgroundColor: "background.paper" },
|
|
1499
|
-
IconComponent: (e) => (0, Z.jsx)(
|
|
1499
|
+
IconComponent: (e) => (0, Z.jsx)(O, {
|
|
1500
1500
|
iconKey: "ExpandMore",
|
|
1501
1501
|
...e
|
|
1502
1502
|
}),
|
|
@@ -1505,10 +1505,10 @@ var $r = (0, X.memo)((e) => {
|
|
|
1505
1505
|
percent: e.target.value === "percent"
|
|
1506
1506
|
}),
|
|
1507
1507
|
disabled: r,
|
|
1508
|
-
children: [(0, Z.jsx)(
|
|
1508
|
+
children: [(0, Z.jsx)(Y, {
|
|
1509
1509
|
value: "items",
|
|
1510
1510
|
children: a("condition.items")
|
|
1511
|
-
}), (0, Z.jsx)(
|
|
1511
|
+
}), (0, Z.jsx)(Y, {
|
|
1512
1512
|
value: "percent",
|
|
1513
1513
|
children: a("condition.percent")
|
|
1514
1514
|
})]
|
|
@@ -1519,8 +1519,8 @@ var $r = (0, X.memo)((e) => {
|
|
|
1519
1519
|
});
|
|
1520
1520
|
$r.displayName = "TopNOption";
|
|
1521
1521
|
var ei = (0, X.memo)((e) => {
|
|
1522
|
-
let { option: t, onOptionChange: n, readOnly: r, ...i } = e, a =
|
|
1523
|
-
return (0, Z.jsxs)(
|
|
1522
|
+
let { option: t, onOptionChange: n, readOnly: r, ...i } = e, a = N();
|
|
1523
|
+
return (0, Z.jsxs)(R, {
|
|
1524
1524
|
...i,
|
|
1525
1525
|
sx: {
|
|
1526
1526
|
display: "flex",
|
|
@@ -1561,7 +1561,7 @@ var ei = (0, X.memo)((e) => {
|
|
|
1561
1561
|
});
|
|
1562
1562
|
ei.displayName = "BetweenOption";
|
|
1563
1563
|
var ti = (0, X.memo)((e) => {
|
|
1564
|
-
let { option: t, onOptionChange: n, readOnly: r, ...i } = e, a =
|
|
1564
|
+
let { option: t, onOptionChange: n, readOnly: r, ...i } = e, a = N(), o = Lr(), s = t?.isIFormula ? o.display(t) : t ?? "";
|
|
1565
1565
|
return (0, Z.jsx)(In, {
|
|
1566
1566
|
size: "small",
|
|
1567
1567
|
home: o.home,
|
|
@@ -1579,9 +1579,9 @@ var ti = (0, X.memo)((e) => {
|
|
|
1579
1579
|
});
|
|
1580
1580
|
ti.displayName = "ExpressionOption";
|
|
1581
1581
|
var ni = (0, X.memo)((e) => {
|
|
1582
|
-
let { value: t = null, selectors: n, onChange: r, title: i, allowNull: a = !1, readOnly: o = !1, ...s } = e, c =
|
|
1582
|
+
let { value: t = null, selectors: n, onChange: r, title: i, allowNull: a = !1, readOnly: o = !1, ...s } = e, c = N(), l = i ?? c("condition.selectorTitle"), u = n.map((e) => {
|
|
1583
1583
|
let t = e.getName();
|
|
1584
|
-
return (0, Z.jsx)(
|
|
1584
|
+
return (0, Z.jsx)(Y, {
|
|
1585
1585
|
value: t,
|
|
1586
1586
|
children: e.getTitle?.() ?? e.getName()
|
|
1587
1587
|
}, t);
|
|
@@ -1590,14 +1590,14 @@ var ni = (0, X.memo)((e) => {
|
|
|
1590
1590
|
...d,
|
|
1591
1591
|
"& .MuiSelect-icon": { display: "none" },
|
|
1592
1592
|
"& .MuiOutlinedInput-notchedOutline": { borderColor: "action.disabled" }
|
|
1593
|
-
}), (0, Z.jsxs)(
|
|
1593
|
+
}), (0, Z.jsxs)(q, {
|
|
1594
1594
|
size: "small",
|
|
1595
1595
|
...s,
|
|
1596
|
-
children: [(0, Z.jsx)(
|
|
1596
|
+
children: [(0, Z.jsx)(Ct, { children: l }), (0, Z.jsxs)(J, {
|
|
1597
1597
|
value: t?.getName() ?? "null",
|
|
1598
1598
|
label: l,
|
|
1599
1599
|
readOnly: o,
|
|
1600
|
-
IconComponent: (e) => (0, Z.jsx)(
|
|
1600
|
+
IconComponent: (e) => (0, Z.jsx)(O, {
|
|
1601
1601
|
iconKey: "ExpandMore",
|
|
1602
1602
|
...e
|
|
1603
1603
|
}),
|
|
@@ -1606,7 +1606,7 @@ var ni = (0, X.memo)((e) => {
|
|
|
1606
1606
|
r(i);
|
|
1607
1607
|
},
|
|
1608
1608
|
sx: d,
|
|
1609
|
-
children: [a && (0, Z.jsx)(
|
|
1609
|
+
children: [a && (0, Z.jsx)(Y, {
|
|
1610
1610
|
value: "null",
|
|
1611
1611
|
children: c("condition.anySelector")
|
|
1612
1612
|
}), u]
|
|
@@ -1615,23 +1615,23 @@ var ni = (0, X.memo)((e) => {
|
|
|
1615
1615
|
});
|
|
1616
1616
|
ni.displayName = "SelectorSelect";
|
|
1617
1617
|
var ri = (0, X.memo)((e) => {
|
|
1618
|
-
let { value: t, operators: n, onChange: r, title: i, readOnly: a = !1, ...o } = e, s =
|
|
1618
|
+
let { value: t, operators: n, onChange: r, title: i, readOnly: a = !1, ...o } = e, s = N(), c = _e(), l = i ?? s("condition.operatorTitle"), u = /* @__PURE__ */ new Map();
|
|
1619
1619
|
n.forEach((e) => {
|
|
1620
1620
|
u.set(e.getName(), e);
|
|
1621
1621
|
});
|
|
1622
|
-
let d = Jr(n, (e) => (0, Z.jsx)(
|
|
1622
|
+
let d = Jr(n, (e) => (0, Z.jsx)(Y, {
|
|
1623
1623
|
value: e.getName(),
|
|
1624
1624
|
sx: Zr,
|
|
1625
1625
|
children: e.getTitle?.()
|
|
1626
1626
|
}, e.getName()), s, c);
|
|
1627
|
-
return (0, Z.jsxs)(
|
|
1627
|
+
return (0, Z.jsxs)(q, {
|
|
1628
1628
|
size: "small",
|
|
1629
1629
|
...o,
|
|
1630
|
-
children: [(0, Z.jsx)(
|
|
1630
|
+
children: [(0, Z.jsx)(Ct, { children: l }), (0, Z.jsx)(J, {
|
|
1631
1631
|
value: t?.getName() ?? "null",
|
|
1632
1632
|
label: l,
|
|
1633
1633
|
readOnly: a,
|
|
1634
|
-
IconComponent: (e) => (0, Z.jsx)(
|
|
1634
|
+
IconComponent: (e) => (0, Z.jsx)(O, {
|
|
1635
1635
|
iconKey: "ExpandMore",
|
|
1636
1636
|
...e
|
|
1637
1637
|
}),
|
|
@@ -1649,13 +1649,13 @@ var ri = (0, X.memo)((e) => {
|
|
|
1649
1649
|
});
|
|
1650
1650
|
ri.displayName = "OperatorSelect";
|
|
1651
1651
|
var ii = (0, X.memo)((0, X.forwardRef)((e, t) => {
|
|
1652
|
-
let { icon: n, tooltip: r, label: i, darkMode: a, propsPanel: o, value: s, operators: c, onChange: l, title: u, readOnly: d = !1, ...f } = e, p =
|
|
1652
|
+
let { icon: n, tooltip: r, label: i, darkMode: a, propsPanel: o, value: s, operators: c, onChange: l, title: u, readOnly: d = !1, ...f } = e, p = N(), m = _e();
|
|
1653
1653
|
u ?? p("condition.operatorTitle");
|
|
1654
|
-
let h = n || (0, Z.jsx)(
|
|
1655
|
-
return g.current = l, (0, Z.jsx)(
|
|
1654
|
+
let h = n || (0, Z.jsx)(O, { iconKey: "Add" }), g = (0, X.useRef)(l);
|
|
1655
|
+
return g.current = l, (0, Z.jsx)(Sn, {
|
|
1656
1656
|
ref: t,
|
|
1657
1657
|
createPopupPanel: (0, X.useCallback)((e) => {
|
|
1658
|
-
let { closeFloatAll: t } = e, n = Jr(c, (e) => (0, Z.jsx)(
|
|
1658
|
+
let { closeFloatAll: t } = e, n = Jr(c, (e) => (0, Z.jsx)(Y, {
|
|
1659
1659
|
sx: Zr,
|
|
1660
1660
|
value: e.getName(),
|
|
1661
1661
|
onClick: () => {
|
|
@@ -1672,9 +1672,9 @@ var ii = (0, X.memo)((0, X.forwardRef)((e, t) => {
|
|
|
1672
1672
|
},
|
|
1673
1673
|
...o,
|
|
1674
1674
|
onKeyDown: (e) => {
|
|
1675
|
-
e.which ===
|
|
1675
|
+
e.which === ce.Enter && t?.();
|
|
1676
1676
|
},
|
|
1677
|
-
children: (0, Z.jsx)(
|
|
1677
|
+
children: (0, Z.jsx)(xt, {
|
|
1678
1678
|
disablePadding: !0,
|
|
1679
1679
|
children: n
|
|
1680
1680
|
})
|
|
@@ -1691,8 +1691,8 @@ var ii = (0, X.memo)((0, X.forwardRef)((e, t) => {
|
|
|
1691
1691
|
...f
|
|
1692
1692
|
});
|
|
1693
1693
|
})), ai = (0, X.memo)((e) => {
|
|
1694
|
-
let { operator: t, inputs: n, onOptionChange: r, operators: i, selector: a, readOnly: o, ...s } = e, c =
|
|
1695
|
-
return (0, Z.jsx)(
|
|
1694
|
+
let { operator: t, inputs: n, onOptionChange: r, operators: i, selector: a, readOnly: o, ...s } = e, c = N(), l = t.getName() === "not", u = l ? null : t.getName() === "and" ? c("condition.and") : c("condition.or"), d = l ? c("condition.not") : u;
|
|
1695
|
+
return (0, Z.jsx)(R, {
|
|
1696
1696
|
sx: {
|
|
1697
1697
|
display: "flex",
|
|
1698
1698
|
flexDirection: "column",
|
|
@@ -1731,7 +1731,7 @@ var ii = (0, X.memo)((0, X.forwardRef)((e, t) => {
|
|
|
1731
1731
|
});
|
|
1732
1732
|
ai.displayName = "CombinatorOption";
|
|
1733
1733
|
var oi = (0, X.memo)((e) => {
|
|
1734
|
-
let { option: t, onOptionChange: n, readOnly: r } = e, i =
|
|
1734
|
+
let { option: t, onOptionChange: n, readOnly: r } = e, i = N();
|
|
1735
1735
|
return (0, Z.jsxs)(Ar, {
|
|
1736
1736
|
exclusive: !0,
|
|
1737
1737
|
size: "small",
|
|
@@ -1764,7 +1764,7 @@ function ci(e) {
|
|
|
1764
1764
|
}
|
|
1765
1765
|
oi.displayName = "BooleanOption";
|
|
1766
1766
|
var li = (0, X.memo)((e) => {
|
|
1767
|
-
let { option: t, onOptionChange: n, allowFormula: r, readOnly: i, type: a = "dateTime", ...o } = e, s =
|
|
1767
|
+
let { option: t, onOptionChange: n, allowFormula: r, readOnly: i, type: a = "dateTime", ...o } = e, s = N(), c = a === "date" || a === "dateTime", l = a === "time" || a === "dateTime", u = Le(), d = (0, X.useCallback)((e) => {
|
|
1768
1768
|
if (!u || e === null) return null;
|
|
1769
1769
|
let t = u.createCell({ value: e }), n = t.getValue();
|
|
1770
1770
|
return t.getType() === h.Number ? n : null;
|
|
@@ -1783,7 +1783,7 @@ var li = (0, X.memo)((e) => {
|
|
|
1783
1783
|
let _ = function(e) {
|
|
1784
1784
|
return !e || isNaN(e.getTime()) ? "" : `${String(e.getHours()).padStart(2, "0")}:${String(e.getMinutes()).padStart(2, "0")}`;
|
|
1785
1785
|
}(p);
|
|
1786
|
-
return (0, Z.jsxs)(
|
|
1786
|
+
return (0, Z.jsxs)(R, {
|
|
1787
1787
|
...o,
|
|
1788
1788
|
sx: {
|
|
1789
1789
|
display: "flex",
|
|
@@ -1815,7 +1815,7 @@ var li = (0, X.memo)((e) => {
|
|
|
1815
1815
|
});
|
|
1816
1816
|
});
|
|
1817
1817
|
li.displayName = "DateTimeOption";
|
|
1818
|
-
var ui =
|
|
1818
|
+
var ui = b.BuiltInOperatorNames, di = /* @__PURE__ */ new Set([
|
|
1819
1819
|
ui.EqualTo,
|
|
1820
1820
|
ui.GreaterThan,
|
|
1821
1821
|
ui.GreaterThanEqualTo,
|
|
@@ -1826,16 +1826,16 @@ var ui = S.BuiltInOperatorNames, di = /* @__PURE__ */ new Set([
|
|
|
1826
1826
|
ui.Before,
|
|
1827
1827
|
ui.BeforeEqualTo
|
|
1828
1828
|
]), fi = (0, X.memo)((e) => {
|
|
1829
|
-
let { operatorParam: t, onOperatorParamChange: n, onRemove: r, operators: i, selector: a, operatorTitle: o, readOnly: s, required: c, ...l } = e, u =
|
|
1829
|
+
let { operatorParam: t, onOperatorParamChange: n, onRemove: r, operators: i, selector: a, operatorTitle: o, readOnly: s, required: c, ...l } = e, u = N(), d = o ?? u("condition.when"), f = t?.operator ?? null, p = i.find((e) => e.getName() === f) ?? null, m = t?.param ?? null, h = !!p?.isCombinator?.(), [g, { width: _ }] = E(), v = (0, X.useMemo)(() => !p || h ? null : p.getParamType?.(a ?? void 0) ?? null, [
|
|
1830
1830
|
p,
|
|
1831
1831
|
h,
|
|
1832
1832
|
a
|
|
1833
|
-
]), y = !h && v !== "list" && _ > 360,
|
|
1833
|
+
]), y = !h && v !== "list" && _ > 360, x = P((e) => {
|
|
1834
1834
|
n({
|
|
1835
1835
|
operator: f,
|
|
1836
1836
|
param: e
|
|
1837
1837
|
});
|
|
1838
|
-
}, [n, f]),
|
|
1838
|
+
}, [n, f]), S = (0, X.useMemo)(() => {
|
|
1839
1839
|
if (!p || h || !v) return null;
|
|
1840
1840
|
let e = {
|
|
1841
1841
|
sx: {
|
|
@@ -1843,9 +1843,9 @@ var ui = S.BuiltInOperatorNames, di = /* @__PURE__ */ new Set([
|
|
|
1843
1843
|
minWidth: 0
|
|
1844
1844
|
},
|
|
1845
1845
|
option: m,
|
|
1846
|
-
onOptionChange:
|
|
1846
|
+
onOptionChange: x
|
|
1847
1847
|
}, t = !!f && di.has(f);
|
|
1848
|
-
return v ===
|
|
1848
|
+
return v === b.BuiltInSelectorNames.Number || v === b.BuiltInSelectorNames.TextLength ? (0, Z.jsx)(t ? zr : Nr, { ...e }) : v === b.BuiltInSelectorNames.Whole ? t ? (0, Z.jsx)(zr, { ...e }) : (0, Z.jsx)(Nr, {
|
|
1849
1849
|
...e,
|
|
1850
1850
|
placeholder: u("condition.enterWholeNumber"),
|
|
1851
1851
|
slotProps: { htmlInput: {
|
|
@@ -1862,18 +1862,18 @@ var ui = S.BuiltInOperatorNames, di = /* @__PURE__ */ new Set([
|
|
|
1862
1862
|
/^-?\d+$/.test(e.clipboardData.getData("text")) || e.preventDefault();
|
|
1863
1863
|
}
|
|
1864
1864
|
} }
|
|
1865
|
-
}) : v ===
|
|
1865
|
+
}) : v === b.BuiltInSelectorNames.Text ? (0, Z.jsx)(t ? zr : Mr, { ...e }) : v === b.BuiltInSelectorNames.DateTime ? (0, Z.jsx)(li, {
|
|
1866
1866
|
...e,
|
|
1867
1867
|
allowFormula: t
|
|
1868
|
-
}) : v ===
|
|
1868
|
+
}) : v === b.BuiltInSelectorNames.Date ? (0, Z.jsx)(li, {
|
|
1869
1869
|
...e,
|
|
1870
1870
|
type: "date",
|
|
1871
1871
|
allowFormula: t
|
|
1872
|
-
}) : v ===
|
|
1872
|
+
}) : v === b.BuiltInSelectorNames.Time ? (0, Z.jsx)(li, {
|
|
1873
1873
|
...e,
|
|
1874
1874
|
type: "time",
|
|
1875
1875
|
allowFormula: t
|
|
1876
|
-
}) : v ===
|
|
1876
|
+
}) : v === b.BuiltInSelectorNames.List ? (0, Z.jsx)(Vr, { ...e }) : v === b.BuiltInSelectorNames.Logical ? (0, Z.jsx)(oi, { ...e }) : v === b.BuiltInOperatorNames.Average ? (0, Z.jsx)(Ur, { ...e }) : v === b.BuiltInOperatorNames.TimePeriod ? (0, Z.jsx)(Qr, { ...e }) : v === b.BuiltInOperatorNames.TopN ? (0, Z.jsx)($r, { ...e }) : v === b.BuiltInOperatorNames.Between ? (0, Z.jsx)(ei, { ...e }) : v === b.BuiltInOperatorNames.Expression ? (0, Z.jsx)(ti, { ...e }) : null;
|
|
1877
1877
|
}, [
|
|
1878
1878
|
p,
|
|
1879
1879
|
h,
|
|
@@ -1893,7 +1893,7 @@ var ui = S.BuiltInOperatorNames, di = /* @__PURE__ */ new Set([
|
|
|
1893
1893
|
param: t
|
|
1894
1894
|
});
|
|
1895
1895
|
};
|
|
1896
|
-
return (0, Z.jsx)(
|
|
1896
|
+
return (0, Z.jsx)(R, {
|
|
1897
1897
|
ref: g,
|
|
1898
1898
|
sx: {
|
|
1899
1899
|
display: "flex",
|
|
@@ -1906,7 +1906,7 @@ var ui = S.BuiltInOperatorNames, di = /* @__PURE__ */ new Set([
|
|
|
1906
1906
|
p: 1
|
|
1907
1907
|
},
|
|
1908
1908
|
...l,
|
|
1909
|
-
children: y ? (0, Z.jsxs)(
|
|
1909
|
+
children: y ? (0, Z.jsxs)(R, {
|
|
1910
1910
|
sx: {
|
|
1911
1911
|
display: "flex",
|
|
1912
1912
|
flexDirection: "row",
|
|
@@ -1922,13 +1922,13 @@ var ui = S.BuiltInOperatorNames, di = /* @__PURE__ */ new Set([
|
|
|
1922
1922
|
onChange: T,
|
|
1923
1923
|
readOnly: s
|
|
1924
1924
|
}),
|
|
1925
|
-
|
|
1926
|
-
!s && !c && (0, Z.jsx)(
|
|
1927
|
-
icon: (0, Z.jsx)(
|
|
1925
|
+
S,
|
|
1926
|
+
!s && !c && (0, Z.jsx)(Cn, {
|
|
1927
|
+
icon: (0, Z.jsx)(O, { iconKey: "Close" }),
|
|
1928
1928
|
onClick: r
|
|
1929
1929
|
})
|
|
1930
1930
|
]
|
|
1931
|
-
}) : (0, Z.jsxs)(Z.Fragment, { children: [(0, Z.jsxs)(
|
|
1931
|
+
}) : (0, Z.jsxs)(Z.Fragment, { children: [(0, Z.jsxs)(R, {
|
|
1932
1932
|
sx: {
|
|
1933
1933
|
display: "flex",
|
|
1934
1934
|
flexDirection: "row",
|
|
@@ -1946,7 +1946,7 @@ var ui = S.BuiltInOperatorNames, di = /* @__PURE__ */ new Set([
|
|
|
1946
1946
|
}),
|
|
1947
1947
|
h && !w && !s && (0, Z.jsx)(ii, {
|
|
1948
1948
|
label: p?.getTitle?.(),
|
|
1949
|
-
icon: (0, Z.jsx)(
|
|
1949
|
+
icon: (0, Z.jsx)(O, { iconKey: "Add" }),
|
|
1950
1950
|
operators: i,
|
|
1951
1951
|
value: null,
|
|
1952
1952
|
onChange: (e) => {
|
|
@@ -1961,8 +1961,8 @@ var ui = S.BuiltInOperatorNames, di = /* @__PURE__ */ new Set([
|
|
|
1961
1961
|
});
|
|
1962
1962
|
}
|
|
1963
1963
|
}),
|
|
1964
|
-
!s && !c && (0, Z.jsx)(
|
|
1965
|
-
icon: (0, Z.jsx)(
|
|
1964
|
+
!s && !c && (0, Z.jsx)(Cn, {
|
|
1965
|
+
icon: (0, Z.jsx)(O, { iconKey: "Close" }),
|
|
1966
1966
|
disabled: s,
|
|
1967
1967
|
onClick: r
|
|
1968
1968
|
})
|
|
@@ -1979,24 +1979,24 @@ var ui = S.BuiltInOperatorNames, di = /* @__PURE__ */ new Set([
|
|
|
1979
1979
|
operators: i,
|
|
1980
1980
|
selector: a,
|
|
1981
1981
|
readOnly: s
|
|
1982
|
-
}) :
|
|
1982
|
+
}) : S] })
|
|
1983
1983
|
});
|
|
1984
1984
|
});
|
|
1985
1985
|
fi.displayName = "OperatorAndParamEditor";
|
|
1986
1986
|
var pi = (0, X.memo)((e) => {
|
|
1987
|
-
let { condition: t, onConditionChange: n, showIncludeBlanks: r = !1, selectorTitle: i, readOnly: a, operators: o, selectors: s, ranges: c, ...l } = e, u =
|
|
1987
|
+
let { condition: t, onConditionChange: n, showIncludeBlanks: r = !1, selectorTitle: i, readOnly: a, operators: o, selectors: s, ranges: c, ...l } = e, u = N(), d = _e(), [f, p] = (0, X.useState)(() => t?.getSelector() ?? null), [m, h] = (0, X.useState)(() => t?.getOperator() ? {
|
|
1988
1988
|
operator: t.getOperator().getName(),
|
|
1989
1989
|
param: t.getParam()
|
|
1990
|
-
} : null), [
|
|
1990
|
+
} : null), [_, v] = (0, X.useState)(() => t?.isIncludeBlanks() ?? !1);
|
|
1991
1991
|
(0, X.useEffect)(() => {
|
|
1992
1992
|
if (!t) return p(null), void h(null);
|
|
1993
1993
|
let e = t.getOperator(), n = t.getSelector() ?? null;
|
|
1994
1994
|
p(n), h(e ? {
|
|
1995
1995
|
operator: e.getName(),
|
|
1996
1996
|
param: t.getParam()
|
|
1997
|
-
} : null),
|
|
1997
|
+
} : null), v(t.isIncludeBlanks());
|
|
1998
1998
|
}, [t]);
|
|
1999
|
-
let
|
|
1999
|
+
let y = (0, X.useMemo)(() => (s ?? Object.values(g.BuiltInSelectors)).slice().sort((e, t) => (e.getTitle?.() ?? "").localeCompare(t.getTitle?.() ?? "", d)), [s, d]), b = (0, X.useMemo)(() => o ?? Object.values(g.BuiltInOperators), [o]), x = (0, X.useMemo)(() => qr(f, b, d), [
|
|
2000
2000
|
f,
|
|
2001
2001
|
b,
|
|
2002
2002
|
d
|
|
@@ -2011,10 +2011,10 @@ var pi = (0, X.memo)((e) => {
|
|
|
2011
2011
|
h(e), n?.({
|
|
2012
2012
|
selector: f,
|
|
2013
2013
|
...e,
|
|
2014
|
-
includeBlanks:
|
|
2014
|
+
includeBlanks: _
|
|
2015
2015
|
});
|
|
2016
2016
|
}, D = r;
|
|
2017
|
-
return (0, Z.jsxs)(
|
|
2017
|
+
return (0, Z.jsxs)(R, {
|
|
2018
2018
|
sx: {
|
|
2019
2019
|
display: "flex",
|
|
2020
2020
|
flexDirection: "column",
|
|
@@ -2030,7 +2030,7 @@ var pi = (0, X.memo)((e) => {
|
|
|
2030
2030
|
children: [
|
|
2031
2031
|
(0, Z.jsx)(ni, {
|
|
2032
2032
|
title: i,
|
|
2033
|
-
selectors:
|
|
2033
|
+
selectors: y,
|
|
2034
2034
|
value: f,
|
|
2035
2035
|
onChange: (e) => {
|
|
2036
2036
|
m && S.current.set(C(f), m);
|
|
@@ -2064,13 +2064,13 @@ var pi = (0, X.memo)((e) => {
|
|
|
2064
2064
|
operator: null,
|
|
2065
2065
|
param: null
|
|
2066
2066
|
},
|
|
2067
|
-
includeBlanks:
|
|
2067
|
+
includeBlanks: _
|
|
2068
2068
|
});
|
|
2069
2069
|
},
|
|
2070
2070
|
allowNull: !0,
|
|
2071
2071
|
readOnly: a
|
|
2072
2072
|
}),
|
|
2073
|
-
m ? (0, Z.jsx)(
|
|
2073
|
+
m ? (0, Z.jsx)(R, {
|
|
2074
2074
|
ref: w,
|
|
2075
2075
|
sx: { display: "contents" },
|
|
2076
2076
|
children: (0, Z.jsx)(fi, {
|
|
@@ -2081,14 +2081,14 @@ var pi = (0, X.memo)((e) => {
|
|
|
2081
2081
|
selector: f,
|
|
2082
2082
|
operator: null,
|
|
2083
2083
|
param: null,
|
|
2084
|
-
includeBlanks:
|
|
2084
|
+
includeBlanks: _
|
|
2085
2085
|
});
|
|
2086
2086
|
},
|
|
2087
2087
|
operators: x,
|
|
2088
2088
|
selector: f,
|
|
2089
2089
|
readOnly: a
|
|
2090
2090
|
})
|
|
2091
|
-
}) : !a && (0, Z.jsx)(
|
|
2091
|
+
}) : !a && (0, Z.jsx)(R, {
|
|
2092
2092
|
sx: { display: "flex" },
|
|
2093
2093
|
children: (0, Z.jsx)(ii, {
|
|
2094
2094
|
label: u("condition.when"),
|
|
@@ -2103,12 +2103,12 @@ var pi = (0, X.memo)((e) => {
|
|
|
2103
2103
|
readOnly: a
|
|
2104
2104
|
})
|
|
2105
2105
|
}),
|
|
2106
|
-
D && (0, Z.jsx)(
|
|
2107
|
-
control: (0, Z.jsx)(
|
|
2108
|
-
checked:
|
|
2106
|
+
D && (0, Z.jsx)(gn, {
|
|
2107
|
+
control: (0, Z.jsx)(hn, {
|
|
2108
|
+
checked: _,
|
|
2109
2109
|
onChange: (e) => {
|
|
2110
2110
|
var t = e.target.checked;
|
|
2111
|
-
|
|
2111
|
+
v(t), n?.({
|
|
2112
2112
|
selector: f,
|
|
2113
2113
|
...m,
|
|
2114
2114
|
includeBlanks: t
|
|
@@ -2124,7 +2124,7 @@ var pi = (0, X.memo)((e) => {
|
|
|
2124
2124
|
pi.displayName = "ConditionEditor";
|
|
2125
2125
|
var mi = (0, X.memo)((e) => {
|
|
2126
2126
|
let { variant: t = "format", children: n, sx: r, ...i } = e;
|
|
2127
|
-
return (0, Z.jsx)(
|
|
2127
|
+
return (0, Z.jsx)(R, {
|
|
2128
2128
|
className: `sxl-cf-rule-section sxl-cf-rule-section-${t}`,
|
|
2129
2129
|
sx: {
|
|
2130
2130
|
display: "flex",
|
|
@@ -2142,41 +2142,41 @@ var mi = (0, X.memo)((e) => {
|
|
|
2142
2142
|
});
|
|
2143
2143
|
});
|
|
2144
2144
|
mi.displayName = "RuleSection";
|
|
2145
|
-
var hi = new
|
|
2146
|
-
lightRedFillDarkRedText:
|
|
2147
|
-
yellowFillDarkYellowText:
|
|
2148
|
-
greenFillDarkGreenText:
|
|
2149
|
-
lightRedFill:
|
|
2150
|
-
redText:
|
|
2151
|
-
redBorder:
|
|
2152
|
-
}, _i = (e) => e ? typeof e == "string" ? e : e.type ===
|
|
2153
|
-
let { format: t, onFormatChange: n, readOnly: r, ...
|
|
2154
|
-
let r = { ...
|
|
2145
|
+
var hi = new T("transparent"), gi = {
|
|
2146
|
+
lightRedFillDarkRedText: f("conditionalFormat.preset.lightRedFillDarkRedText"),
|
|
2147
|
+
yellowFillDarkYellowText: f("conditionalFormat.preset.yellowFillDarkYellowText"),
|
|
2148
|
+
greenFillDarkGreenText: f("conditionalFormat.preset.greenFillDarkGreenText"),
|
|
2149
|
+
lightRedFill: f("conditionalFormat.preset.lightRedFill"),
|
|
2150
|
+
redText: f("conditionalFormat.preset.redText"),
|
|
2151
|
+
redBorder: f("conditionalFormat.preset.redBorder")
|
|
2152
|
+
}, _i = (e) => e ? typeof e == "string" ? e : e.type === _.Type.None ? null : e.color ?? e.foreground ?? null : null, vi = (e, t) => e === "auto" ? null : jt(e, t), yi = (0, X.memo)((e) => {
|
|
2153
|
+
let { format: t, onFormatChange: n, readOnly: r, ...i } = e, a = N(), { workbook: o, schemeLookup: s, themeKey: c, darkMode: l, propsColorPanel: u } = Gt(), d = t?.font ?? null, p = (d?.weight ?? 400) >= 600, m = d?.style === y.Style.Italic, h = !!d?.underline && d.underline !== y.UnderlineStyle.None, g = !!d?.strike, v = (e) => {
|
|
2154
|
+
let r = { ...d };
|
|
2155
2155
|
for (let [t, n] of Object.entries(e)) n === void 0 ? delete r[t] : r[t] = n;
|
|
2156
2156
|
let i = { ...t };
|
|
2157
2157
|
Object.keys(r).length === 0 ? delete i.font : i.font = r, n(Object.keys(i).length === 0 ? null : i);
|
|
2158
|
-
},
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
]), S = (0, X.useMemo)(() => vi(_i(t?.fill),
|
|
2158
|
+
}, b = (0, X.useMemo)(() => o?.getStyles().getNormal().getFont().getColor(), [o, c]), x = (0, X.useMemo)(() => vi(d?.color, o), [
|
|
2159
|
+
d?.color,
|
|
2160
|
+
o,
|
|
2161
|
+
c
|
|
2162
|
+
]), S = (0, X.useMemo)(() => vi(_i(t?.fill), o), [
|
|
2163
2163
|
t?.fill,
|
|
2164
|
-
|
|
2165
|
-
|
|
2164
|
+
o,
|
|
2165
|
+
c
|
|
2166
2166
|
]), C = {
|
|
2167
2167
|
padding: "4px",
|
|
2168
2168
|
border: "none",
|
|
2169
2169
|
borderRadius: 1
|
|
2170
2170
|
};
|
|
2171
2171
|
return (0, Z.jsxs)(mi, {
|
|
2172
|
-
...
|
|
2173
|
-
children: [(0, Z.jsxs)(
|
|
2172
|
+
...i,
|
|
2173
|
+
children: [(0, Z.jsxs)(R, {
|
|
2174
2174
|
sx: {
|
|
2175
2175
|
display: "flex",
|
|
2176
2176
|
alignItems: "flex-start",
|
|
2177
2177
|
gap: 1
|
|
2178
2178
|
},
|
|
2179
|
-
children: [(0, Z.jsx)(
|
|
2179
|
+
children: [(0, Z.jsx)(R, {
|
|
2180
2180
|
sx: {
|
|
2181
2181
|
flex: "1 1 auto",
|
|
2182
2182
|
minWidth: 0,
|
|
@@ -2184,36 +2184,36 @@ var hi = new C("transparent"), gi = {
|
|
|
2184
2184
|
gap: .5,
|
|
2185
2185
|
flexWrap: "wrap"
|
|
2186
2186
|
},
|
|
2187
|
-
children:
|
|
2188
|
-
let i = vi(_i(e.style.fill),
|
|
2189
|
-
return (0, Z.jsx)(
|
|
2187
|
+
children: Je.map((e, t) => {
|
|
2188
|
+
let i = vi(_i(e.style.fill), o), s = vi(e.style.font?.color, o), c = e.style.borders ? vi(Object.values(e.style.borders)[0]?.color, o) : null;
|
|
2189
|
+
return (0, Z.jsx)(Kt, {
|
|
2190
2190
|
sheet: !0,
|
|
2191
|
-
title:
|
|
2191
|
+
title: a(gi[e.key] ?? e.key),
|
|
2192
2192
|
disabled: r,
|
|
2193
2193
|
onClick: () => n(structuredClone(e.style)),
|
|
2194
2194
|
sx: {
|
|
2195
2195
|
backgroundColor: i?.toCSS("adaptive") ?? void 0,
|
|
2196
|
-
color:
|
|
2196
|
+
color: s?.toCSS("adaptive") ?? void 0,
|
|
2197
2197
|
outline: c ? `1px solid ${c.toCSS("adaptive")}` : void 0,
|
|
2198
2198
|
outlineOffset: "-3px"
|
|
2199
2199
|
},
|
|
2200
2200
|
children: "Aa"
|
|
2201
2201
|
}, t);
|
|
2202
2202
|
})
|
|
2203
|
-
}), (0, Z.jsx)(
|
|
2204
|
-
title:
|
|
2203
|
+
}), (0, Z.jsx)(Kt, {
|
|
2204
|
+
title: a("conditionalFormat.clearStyle"),
|
|
2205
2205
|
disabled: r || !t,
|
|
2206
2206
|
onClick: () => n(null),
|
|
2207
2207
|
sx: {
|
|
2208
2208
|
color: "text.secondary",
|
|
2209
2209
|
"&:disabled": { opacity: .4 }
|
|
2210
2210
|
},
|
|
2211
|
-
children: (0, Z.jsx)(
|
|
2211
|
+
children: (0, Z.jsx)(O, {
|
|
2212
2212
|
iconKey: "ClearFormats",
|
|
2213
2213
|
size: 16
|
|
2214
2214
|
})
|
|
2215
2215
|
})]
|
|
2216
|
-
}), (0, Z.jsxs)(
|
|
2216
|
+
}), (0, Z.jsxs)(R, {
|
|
2217
2217
|
sx: {
|
|
2218
2218
|
display: "flex",
|
|
2219
2219
|
alignItems: "center",
|
|
@@ -2227,7 +2227,7 @@ var hi = new C("transparent"), gi = {
|
|
|
2227
2227
|
selected: p,
|
|
2228
2228
|
disabled: r,
|
|
2229
2229
|
onChange: () => v({ weight: p ? void 0 : 700 }),
|
|
2230
|
-
children: (0, Z.jsx)(
|
|
2230
|
+
children: (0, Z.jsx)(O, { iconKey: "TextBold" })
|
|
2231
2231
|
}),
|
|
2232
2232
|
(0, Z.jsx)(Dr, {
|
|
2233
2233
|
value: "italic",
|
|
@@ -2235,8 +2235,8 @@ var hi = new C("transparent"), gi = {
|
|
|
2235
2235
|
sx: C,
|
|
2236
2236
|
selected: m,
|
|
2237
2237
|
disabled: r,
|
|
2238
|
-
onChange: () => v({ style: m ? void 0 :
|
|
2239
|
-
children: (0, Z.jsx)(
|
|
2238
|
+
onChange: () => v({ style: m ? void 0 : y.Style.Italic }),
|
|
2239
|
+
children: (0, Z.jsx)(O, { iconKey: "TextItalic" })
|
|
2240
2240
|
}),
|
|
2241
2241
|
(0, Z.jsx)(Dr, {
|
|
2242
2242
|
value: "underline",
|
|
@@ -2244,63 +2244,63 @@ var hi = new C("transparent"), gi = {
|
|
|
2244
2244
|
sx: C,
|
|
2245
2245
|
selected: h,
|
|
2246
2246
|
disabled: r,
|
|
2247
|
-
onChange: () => v({ underline: h ? void 0 :
|
|
2248
|
-
children: (0, Z.jsx)(
|
|
2247
|
+
onChange: () => v({ underline: h ? void 0 : y.UnderlineStyle.Single }),
|
|
2248
|
+
children: (0, Z.jsx)(O, { iconKey: "TextUnderline" })
|
|
2249
2249
|
}),
|
|
2250
2250
|
(0, Z.jsx)(Dr, {
|
|
2251
2251
|
value: "strike",
|
|
2252
2252
|
size: "small",
|
|
2253
2253
|
sx: C,
|
|
2254
|
-
selected:
|
|
2254
|
+
selected: g,
|
|
2255
2255
|
disabled: r,
|
|
2256
|
-
onChange: () => v({ strike: !
|
|
2257
|
-
children: (0, Z.jsx)(
|
|
2256
|
+
onChange: () => v({ strike: !g || void 0 }),
|
|
2257
|
+
children: (0, Z.jsx)(O, { iconKey: "TextStrike" })
|
|
2258
2258
|
}),
|
|
2259
|
-
|
|
2260
|
-
tooltip:
|
|
2259
|
+
o && (0, Z.jsx)(nn, {
|
|
2260
|
+
tooltip: a("conditionalFormat.border"),
|
|
2261
2261
|
selectedBorder: t?.borders,
|
|
2262
|
-
createBorder: (e) =>
|
|
2263
|
-
schemeLookup:
|
|
2264
|
-
autoColor:
|
|
2265
|
-
darkMode:
|
|
2262
|
+
createBorder: (e) => o.getStyles().getNormal().createStyle({ borders: e }).getBorders(),
|
|
2263
|
+
schemeLookup: s,
|
|
2264
|
+
autoColor: b,
|
|
2265
|
+
darkMode: l,
|
|
2266
2266
|
disabled: r,
|
|
2267
2267
|
onSelectBorder: (e) => ((e) => {
|
|
2268
2268
|
let r = { ...t };
|
|
2269
2269
|
e && Object.keys(e).length !== 0 ? r.borders = e : delete r.borders, n(Object.keys(r).length === 0 ? null : r);
|
|
2270
2270
|
})(e)
|
|
2271
2271
|
}),
|
|
2272
|
-
(0, Z.jsx)(
|
|
2272
|
+
(0, Z.jsx)(qt, {
|
|
2273
2273
|
icon: "fill.colored",
|
|
2274
|
-
tooltip:
|
|
2274
|
+
tooltip: a("conditionalFormat.fillColor"),
|
|
2275
2275
|
selectedColor: S,
|
|
2276
2276
|
disabled: r,
|
|
2277
2277
|
onSelectColor: (e) => ((e) => {
|
|
2278
2278
|
let r = { ...t };
|
|
2279
2279
|
e ? r.fill = {
|
|
2280
|
-
type:
|
|
2280
|
+
type: _.Type.Solid,
|
|
2281
2281
|
color: e.toString()
|
|
2282
2282
|
} : delete r.fill, n(Object.keys(r).length === 0 ? null : r);
|
|
2283
2283
|
})(e),
|
|
2284
|
-
darkMode:
|
|
2284
|
+
darkMode: l,
|
|
2285
2285
|
propsPanel: {
|
|
2286
2286
|
disableAlpha: !0,
|
|
2287
2287
|
autoColor: hi,
|
|
2288
|
-
autoColorLabelKey:
|
|
2289
|
-
autoColorPosition:
|
|
2290
|
-
...
|
|
2288
|
+
autoColorLabelKey: f("color.noFill"),
|
|
2289
|
+
autoColorPosition: Wt.End,
|
|
2290
|
+
...u
|
|
2291
2291
|
}
|
|
2292
2292
|
}),
|
|
2293
|
-
(0, Z.jsx)(
|
|
2293
|
+
(0, Z.jsx)(qt, {
|
|
2294
2294
|
icon: "text.colored",
|
|
2295
|
-
tooltip:
|
|
2295
|
+
tooltip: a("conditionalFormat.fontColor"),
|
|
2296
2296
|
selectedColor: x,
|
|
2297
2297
|
disabled: r,
|
|
2298
2298
|
onSelectColor: (e) => v({ color: e ? e.toString() : void 0 }),
|
|
2299
|
-
darkMode:
|
|
2299
|
+
darkMode: l,
|
|
2300
2300
|
propsPanel: {
|
|
2301
2301
|
disableAlpha: !0,
|
|
2302
|
-
autoColor:
|
|
2303
|
-
...
|
|
2302
|
+
autoColor: b,
|
|
2303
|
+
...u
|
|
2304
2304
|
}
|
|
2305
2305
|
})
|
|
2306
2306
|
]
|
|
@@ -2309,22 +2309,22 @@ var hi = new C("transparent"), gi = {
|
|
|
2309
2309
|
});
|
|
2310
2310
|
yi.displayName = "ConditionalFormatStylePicker";
|
|
2311
2311
|
var bi = {
|
|
2312
|
-
[
|
|
2313
|
-
[
|
|
2314
|
-
[
|
|
2315
|
-
[
|
|
2316
|
-
[
|
|
2317
|
-
[
|
|
2318
|
-
[
|
|
2319
|
-
[
|
|
2312
|
+
[v.ColorStopType.AutoMin]: f("conditionalFormat.stopType.autoMin"),
|
|
2313
|
+
[v.ColorStopType.AutoMax]: f("conditionalFormat.stopType.autoMax"),
|
|
2314
|
+
[v.ColorStopType.Min]: f("conditionalFormat.stopType.min"),
|
|
2315
|
+
[v.ColorStopType.Max]: f("conditionalFormat.stopType.max"),
|
|
2316
|
+
[v.ColorStopType.Num]: f("conditionalFormat.stopType.num"),
|
|
2317
|
+
[v.ColorStopType.Percent]: f("conditionalFormat.stopType.percent"),
|
|
2318
|
+
[v.ColorStopType.Percentile]: f("conditionalFormat.stopType.percentile"),
|
|
2319
|
+
[v.ColorStopType.Formula]: f("conditionalFormat.stopType.formula")
|
|
2320
2320
|
}, xi = /* @__PURE__ */ new Set([
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2321
|
+
v.ColorStopType.AutoMin,
|
|
2322
|
+
v.ColorStopType.AutoMax,
|
|
2323
|
+
v.ColorStopType.Min,
|
|
2324
|
+
v.ColorStopType.Max
|
|
2325
2325
|
]), Si = (0, X.memo)((e) => {
|
|
2326
|
-
let { label: t, stop: n, onStopChange: r, allowedTypes: i, showColor: a = !1, leading: o, showExclusive: s = !1, readOnly: c, ...l } = e, u =
|
|
2327
|
-
return (0, Z.jsxs)(
|
|
2326
|
+
let { label: t, stop: n, onStopChange: r, allowedTypes: i, showColor: a = !1, leading: o, showExclusive: s = !1, readOnly: c, ...l } = e, u = N(), { darkMode: d, toColor: f, propsColorPanel: p } = Gt(), m = Lr(), h = n.type ?? v.ColorStopType.Num, g = !xi.has(h), _ = c || !g, y = h === v.ColorStopType.Formula, b = n.value?.isIFormula ? n.value : null, x = n.color, S = a ? f(x) : null;
|
|
2327
|
+
return (0, Z.jsxs)(R, {
|
|
2328
2328
|
sx: {
|
|
2329
2329
|
display: "flex",
|
|
2330
2330
|
alignItems: "center",
|
|
@@ -2332,7 +2332,7 @@ var bi = {
|
|
|
2332
2332
|
},
|
|
2333
2333
|
...l,
|
|
2334
2334
|
children: [
|
|
2335
|
-
t !== void 0 && (0, Z.jsx)(
|
|
2335
|
+
t !== void 0 && (0, Z.jsx)(G, {
|
|
2336
2336
|
variant: "caption",
|
|
2337
2337
|
sx: {
|
|
2338
2338
|
color: "text.secondary",
|
|
@@ -2344,7 +2344,7 @@ var bi = {
|
|
|
2344
2344
|
children: t
|
|
2345
2345
|
}),
|
|
2346
2346
|
o,
|
|
2347
|
-
a && (0, Z.jsx)(
|
|
2347
|
+
a && (0, Z.jsx)(qt, {
|
|
2348
2348
|
tooltip: u("conditionalFormat.stopColor"),
|
|
2349
2349
|
selectedColor: S,
|
|
2350
2350
|
disabled: c,
|
|
@@ -2360,7 +2360,7 @@ var bi = {
|
|
|
2360
2360
|
...p
|
|
2361
2361
|
}
|
|
2362
2362
|
}),
|
|
2363
|
-
s && (0, Z.jsxs)(
|
|
2363
|
+
s && (0, Z.jsxs)(J, {
|
|
2364
2364
|
size: "small",
|
|
2365
2365
|
value: n.exclusive ? "gt" : "gte",
|
|
2366
2366
|
disabled: c,
|
|
@@ -2372,15 +2372,15 @@ var bi = {
|
|
|
2372
2372
|
flex: "0 0 auto",
|
|
2373
2373
|
backgroundColor: "background.paper"
|
|
2374
2374
|
},
|
|
2375
|
-
children: [(0, Z.jsx)(
|
|
2375
|
+
children: [(0, Z.jsx)(Y, {
|
|
2376
2376
|
value: "gte",
|
|
2377
2377
|
children: ">="
|
|
2378
|
-
}), (0, Z.jsx)(
|
|
2378
|
+
}), (0, Z.jsx)(Y, {
|
|
2379
2379
|
value: "gt",
|
|
2380
2380
|
children: ">"
|
|
2381
2381
|
})]
|
|
2382
2382
|
}),
|
|
2383
|
-
(0, Z.jsx)(
|
|
2383
|
+
(0, Z.jsx)(J, {
|
|
2384
2384
|
size: "small",
|
|
2385
2385
|
value: h,
|
|
2386
2386
|
disabled: c,
|
|
@@ -2390,8 +2390,8 @@ var bi = {
|
|
|
2390
2390
|
type: e
|
|
2391
2391
|
};
|
|
2392
2392
|
if (xi.has(e)) delete t.value;
|
|
2393
|
-
else if (t.value === void 0) t.value = e ===
|
|
2394
|
-
else if (e !==
|
|
2393
|
+
else if (t.value === void 0) t.value = e === v.ColorStopType.Formula ? "" : 0;
|
|
2394
|
+
else if (e !== v.ColorStopType.Formula && typeof t.value != "number") {
|
|
2395
2395
|
let e = typeof t.value == "string" ? Number(t.value) : NaN;
|
|
2396
2396
|
t.value = Number.isFinite(e) ? e : 0;
|
|
2397
2397
|
}
|
|
@@ -2402,7 +2402,7 @@ var bi = {
|
|
|
2402
2402
|
minWidth: 0,
|
|
2403
2403
|
backgroundColor: "background.paper"
|
|
2404
2404
|
},
|
|
2405
|
-
children: i.map((e) => (0, Z.jsx)(
|
|
2405
|
+
children: i.map((e) => (0, Z.jsx)(Y, {
|
|
2406
2406
|
value: e,
|
|
2407
2407
|
children: u(bi[e])
|
|
2408
2408
|
}, e))
|
|
@@ -2418,7 +2418,7 @@ var bi = {
|
|
|
2418
2418
|
});
|
|
2419
2419
|
},
|
|
2420
2420
|
placeholder: u("conditionalFormat.enterFormula"),
|
|
2421
|
-
disabled:
|
|
2421
|
+
disabled: _,
|
|
2422
2422
|
equals: "bare",
|
|
2423
2423
|
pickAs: "absolute",
|
|
2424
2424
|
label: null,
|
|
@@ -2427,14 +2427,14 @@ var bi = {
|
|
|
2427
2427
|
sx: {
|
|
2428
2428
|
flex: "1 1 30%",
|
|
2429
2429
|
minWidth: 0,
|
|
2430
|
-
"& .MuiInputBase-root": { backgroundColor:
|
|
2430
|
+
"& .MuiInputBase-root": { backgroundColor: _ ? "action.disabledBackground" : "background.paper" }
|
|
2431
2431
|
}
|
|
2432
|
-
}) : (0, Z.jsx)(
|
|
2432
|
+
}) : (0, Z.jsx)(vn, {
|
|
2433
2433
|
size: "small",
|
|
2434
2434
|
type: "number",
|
|
2435
2435
|
placeholder: g ? void 0 : u("conditionalFormat.stopFromData"),
|
|
2436
2436
|
value: g ? `${n.value ?? ""}` : "",
|
|
2437
|
-
disabled:
|
|
2437
|
+
disabled: _,
|
|
2438
2438
|
onChange: (e) => {
|
|
2439
2439
|
let t = e.target.value;
|
|
2440
2440
|
r({
|
|
@@ -2445,11 +2445,11 @@ var bi = {
|
|
|
2445
2445
|
sx: {
|
|
2446
2446
|
flex: "1 1 30%",
|
|
2447
2447
|
minWidth: 0,
|
|
2448
|
-
cursor:
|
|
2448
|
+
cursor: _ ? "not-allowed" : void 0
|
|
2449
2449
|
},
|
|
2450
2450
|
slotProps: { input: { sx: {
|
|
2451
|
-
backgroundColor:
|
|
2452
|
-
cursor:
|
|
2451
|
+
backgroundColor: _ ? "action.disabledBackground" : "background.paper",
|
|
2452
|
+
cursor: _ ? "not-allowed" : void 0
|
|
2453
2453
|
} } }
|
|
2454
2454
|
})
|
|
2455
2455
|
]
|
|
@@ -2457,32 +2457,32 @@ var bi = {
|
|
|
2457
2457
|
});
|
|
2458
2458
|
Si.displayName = "ScaleStopRow";
|
|
2459
2459
|
var Ci = [
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2460
|
+
v.ColorStopType.Min,
|
|
2461
|
+
v.ColorStopType.Max,
|
|
2462
|
+
v.ColorStopType.Num,
|
|
2463
|
+
v.ColorStopType.Percent,
|
|
2464
|
+
v.ColorStopType.Percentile,
|
|
2465
|
+
v.ColorStopType.Formula
|
|
2466
2466
|
], wi = (0, X.memo)((e) => {
|
|
2467
|
-
let { scale: t, onScaleChange: n, readOnly: r, ...
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2467
|
+
let { scale: t, onScaleChange: n, readOnly: r, ...i } = e, a = N(), { workbook: o, toColor: s } = Gt(), c = t.stops ?? [], l = c.length === 2 ? [f("conditionalFormat.stop.minimum"), f("conditionalFormat.stop.maximum")] : [
|
|
2468
|
+
f("conditionalFormat.stop.minimum"),
|
|
2469
|
+
f("conditionalFormat.stop.midpoint"),
|
|
2470
|
+
f("conditionalFormat.stop.maximum")
|
|
2471
2471
|
];
|
|
2472
|
-
return (0, Z.jsxs)(
|
|
2472
|
+
return (0, Z.jsxs)(R, {
|
|
2473
2473
|
sx: {
|
|
2474
2474
|
display: "flex",
|
|
2475
2475
|
flexDirection: "column",
|
|
2476
2476
|
gap: 1
|
|
2477
2477
|
},
|
|
2478
|
-
...
|
|
2479
|
-
children: [(0, Z.jsx)(mi, { children: (0, Z.jsxs)(
|
|
2478
|
+
...i,
|
|
2479
|
+
children: [(0, Z.jsx)(mi, { children: (0, Z.jsxs)(R, {
|
|
2480
2480
|
sx: {
|
|
2481
2481
|
display: "flex",
|
|
2482
2482
|
alignItems: "flex-start",
|
|
2483
2483
|
gap: 1
|
|
2484
2484
|
},
|
|
2485
|
-
children: [(0, Z.jsx)(
|
|
2485
|
+
children: [(0, Z.jsx)(R, {
|
|
2486
2486
|
sx: {
|
|
2487
2487
|
flex: "1 1 auto",
|
|
2488
2488
|
minWidth: 0,
|
|
@@ -2490,29 +2490,29 @@ var Ci = [
|
|
|
2490
2490
|
gap: .5,
|
|
2491
2491
|
flexWrap: "wrap"
|
|
2492
2492
|
},
|
|
2493
|
-
children:
|
|
2493
|
+
children: we.filter((e) => e.stops.length === (c.length === 2 ? 2 : 3)).map((e, t) => (0, Z.jsx)(Kt, {
|
|
2494
2494
|
sheet: !0,
|
|
2495
2495
|
disabled: r,
|
|
2496
2496
|
onClick: () => n(structuredClone(e)),
|
|
2497
|
-
children: (0, Z.jsx)(
|
|
2497
|
+
children: (0, Z.jsx)(Vt, { rows: Qt(e.stops ?? [], Et, o) })
|
|
2498
2498
|
}, t))
|
|
2499
2499
|
}), (0, Z.jsxs)(Ar, {
|
|
2500
2500
|
exclusive: !0,
|
|
2501
2501
|
size: "small",
|
|
2502
|
-
value:
|
|
2502
|
+
value: c.length === 2 ? 2 : 3,
|
|
2503
2503
|
disabled: r,
|
|
2504
2504
|
onChange: (e, r) => {
|
|
2505
2505
|
r && ((e) => {
|
|
2506
|
-
if (e ===
|
|
2507
|
-
let r =
|
|
2506
|
+
if (e === c.length || e !== 2 && e !== 3) return;
|
|
2507
|
+
let r = c.slice();
|
|
2508
2508
|
if (e === 3) {
|
|
2509
|
-
let e = "#FFEB84", t = c
|
|
2509
|
+
let e = "#FFEB84", t = s(c[0]?.color ?? e)?.toRGBA(), n = s(c[c.length - 1]?.color ?? e)?.toRGBA();
|
|
2510
2510
|
if (t && n) {
|
|
2511
2511
|
let r = (e) => Math.round(e).toString(16).padStart(2, "0").toUpperCase();
|
|
2512
2512
|
e = `#${r((t.red + n.red) / 2)}${r((t.green + n.green) / 2)}${r((t.blue + n.blue) / 2)}`;
|
|
2513
2513
|
}
|
|
2514
2514
|
r.splice(1, 0, {
|
|
2515
|
-
type:
|
|
2515
|
+
type: v.ColorStopType.Percentile,
|
|
2516
2516
|
value: 50,
|
|
2517
2517
|
color: e
|
|
2518
2518
|
});
|
|
@@ -2531,7 +2531,7 @@ var Ci = [
|
|
|
2531
2531
|
pt: .25,
|
|
2532
2532
|
pb: .25
|
|
2533
2533
|
},
|
|
2534
|
-
children:
|
|
2534
|
+
children: a("conditionalFormat.twoColor")
|
|
2535
2535
|
}), (0, Z.jsx)(Dr, {
|
|
2536
2536
|
value: 3,
|
|
2537
2537
|
sx: {
|
|
@@ -2539,19 +2539,19 @@ var Ci = [
|
|
|
2539
2539
|
pt: .25,
|
|
2540
2540
|
pb: .25
|
|
2541
2541
|
},
|
|
2542
|
-
children:
|
|
2542
|
+
children: a("conditionalFormat.threeColor")
|
|
2543
2543
|
})]
|
|
2544
2544
|
})]
|
|
2545
2545
|
}) }), (0, Z.jsx)(mi, {
|
|
2546
2546
|
variant: "config",
|
|
2547
|
-
children:
|
|
2548
|
-
label:
|
|
2547
|
+
children: c.map((e, i) => (0, Z.jsx)(Si, {
|
|
2548
|
+
label: a(l[Math.min(i, l.length - 1)]),
|
|
2549
2549
|
stop: e,
|
|
2550
2550
|
allowedTypes: Ci,
|
|
2551
2551
|
showColor: !0,
|
|
2552
2552
|
readOnly: r,
|
|
2553
2553
|
onStopChange: (e) => {
|
|
2554
|
-
let r =
|
|
2554
|
+
let r = c.slice();
|
|
2555
2555
|
r[i] = e, n({
|
|
2556
2556
|
...t,
|
|
2557
2557
|
stops: r
|
|
@@ -2563,26 +2563,26 @@ var Ci = [
|
|
|
2563
2563
|
});
|
|
2564
2564
|
wi.displayName = "ColorScaleRulePanel";
|
|
2565
2565
|
var Ti = [
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2566
|
+
v.ColorStopType.AutoMin,
|
|
2567
|
+
v.ColorStopType.Min,
|
|
2568
|
+
v.ColorStopType.Num,
|
|
2569
|
+
v.ColorStopType.Percent,
|
|
2570
|
+
v.ColorStopType.Percentile,
|
|
2571
|
+
v.ColorStopType.Formula
|
|
2572
2572
|
], Ei = [
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2573
|
+
v.ColorStopType.AutoMax,
|
|
2574
|
+
v.ColorStopType.Max,
|
|
2575
|
+
v.ColorStopType.Num,
|
|
2576
|
+
v.ColorStopType.Percent,
|
|
2577
|
+
v.ColorStopType.Percentile,
|
|
2578
|
+
v.ColorStopType.Formula
|
|
2579
2579
|
], Di = "__auto__", Oi = (0, X.memo)((e) => {
|
|
2580
|
-
let { scale: t, onScaleChange: n, readOnly: r, ...i } = e, a =
|
|
2580
|
+
let { scale: t, onScaleChange: n, readOnly: r, ...i } = e, a = N(), { darkMode: o, toColor: s, propsColorPanel: c } = Gt(), l = t.stops ?? [], u = s(t.color), d = s(t.negativeFillColor), f = s(t.borderColor), p = s(t.negativeBorderColor), m = t.gradient ?? !1, h = (e) => {
|
|
2581
2581
|
let r = { ...t };
|
|
2582
2582
|
for (let [t, n] of Object.entries(e)) n === void 0 ? delete r[t] : r[t] = n;
|
|
2583
2583
|
n(r);
|
|
2584
2584
|
}, g = { backgroundColor: "background.paper" };
|
|
2585
|
-
return (0, Z.jsxs)(
|
|
2585
|
+
return (0, Z.jsxs)(R, {
|
|
2586
2586
|
sx: {
|
|
2587
2587
|
display: "flex",
|
|
2588
2588
|
flexDirection: "column",
|
|
@@ -2590,13 +2590,13 @@ var Ti = [
|
|
|
2590
2590
|
},
|
|
2591
2591
|
...i,
|
|
2592
2592
|
children: [(0, Z.jsxs)(mi, { children: [
|
|
2593
|
-
(0, Z.jsxs)(
|
|
2593
|
+
(0, Z.jsxs)(R, {
|
|
2594
2594
|
sx: {
|
|
2595
2595
|
display: "flex",
|
|
2596
2596
|
alignItems: "flex-start",
|
|
2597
2597
|
gap: 1
|
|
2598
2598
|
},
|
|
2599
|
-
children: [(0, Z.jsx)(
|
|
2599
|
+
children: [(0, Z.jsx)(R, {
|
|
2600
2600
|
sx: {
|
|
2601
2601
|
flex: "1 1 auto",
|
|
2602
2602
|
minWidth: 0,
|
|
@@ -2604,7 +2604,7 @@ var Ti = [
|
|
|
2604
2604
|
gap: .5,
|
|
2605
2605
|
flexWrap: "wrap"
|
|
2606
2606
|
},
|
|
2607
|
-
children:
|
|
2607
|
+
children: Re.filter((e) => (e.gradient ?? !1) === m).map((e, t) => (0, Z.jsx)(Kt, {
|
|
2608
2608
|
sheet: !0,
|
|
2609
2609
|
disabled: r,
|
|
2610
2610
|
onClick: () => h({
|
|
@@ -2612,7 +2612,7 @@ var Ti = [
|
|
|
2612
2612
|
gradient: e.gradient,
|
|
2613
2613
|
borderColor: e.borderColor
|
|
2614
2614
|
}),
|
|
2615
|
-
children: (0, Z.jsx)(
|
|
2615
|
+
children: (0, Z.jsx)(Vt, { rows: Ht(e, s(e.color)?.toCSS("adaptive") ?? "var(--sxl-color-primary, rgb(33, 115, 70))") })
|
|
2616
2616
|
}, t))
|
|
2617
2617
|
}), (0, Z.jsxs)(Ar, {
|
|
2618
2618
|
exclusive: !0,
|
|
@@ -2642,26 +2642,26 @@ var Ti = [
|
|
|
2642
2642
|
})]
|
|
2643
2643
|
})]
|
|
2644
2644
|
}),
|
|
2645
|
-
(0, Z.jsx)(
|
|
2646
|
-
control: (0, Z.jsx)(
|
|
2645
|
+
(0, Z.jsx)(gn, {
|
|
2646
|
+
control: (0, Z.jsx)(hn, {
|
|
2647
2647
|
size: "small",
|
|
2648
2648
|
checked: !1 === t.showValue,
|
|
2649
2649
|
disabled: r,
|
|
2650
2650
|
onChange: (e) => h({ showValue: !e.target.checked && void 0 })
|
|
2651
2651
|
}),
|
|
2652
|
-
label: (0, Z.jsx)(
|
|
2652
|
+
label: (0, Z.jsx)(G, {
|
|
2653
2653
|
variant: "body2",
|
|
2654
2654
|
children: a("conditionalFormat.showBarsOnly")
|
|
2655
2655
|
})
|
|
2656
2656
|
}),
|
|
2657
|
-
(0, Z.jsxs)(
|
|
2657
|
+
(0, Z.jsxs)(R, {
|
|
2658
2658
|
sx: {
|
|
2659
2659
|
display: "flex",
|
|
2660
2660
|
alignItems: "center",
|
|
2661
2661
|
gap: .5
|
|
2662
2662
|
},
|
|
2663
2663
|
children: [
|
|
2664
|
-
(0, Z.jsx)(
|
|
2664
|
+
(0, Z.jsx)(G, {
|
|
2665
2665
|
variant: "caption",
|
|
2666
2666
|
sx: {
|
|
2667
2667
|
color: "text.secondary",
|
|
@@ -2669,7 +2669,7 @@ var Ti = [
|
|
|
2669
2669
|
},
|
|
2670
2670
|
children: a("conditionalFormat.bar")
|
|
2671
2671
|
}),
|
|
2672
|
-
(0, Z.jsx)(
|
|
2672
|
+
(0, Z.jsx)(qt, {
|
|
2673
2673
|
icon: "fill.colored",
|
|
2674
2674
|
tooltip: a("conditionalFormat.barColor"),
|
|
2675
2675
|
selectedColor: u,
|
|
@@ -2681,7 +2681,7 @@ var Ti = [
|
|
|
2681
2681
|
...c
|
|
2682
2682
|
}
|
|
2683
2683
|
}),
|
|
2684
|
-
(0, Z.jsx)(
|
|
2684
|
+
(0, Z.jsx)(qt, {
|
|
2685
2685
|
icon: "stroke.colored",
|
|
2686
2686
|
tooltip: a("conditionalFormat.barBorderColor"),
|
|
2687
2687
|
selectedColor: f,
|
|
@@ -2695,14 +2695,14 @@ var Ti = [
|
|
|
2695
2695
|
})
|
|
2696
2696
|
]
|
|
2697
2697
|
}),
|
|
2698
|
-
(0, Z.jsxs)(
|
|
2698
|
+
(0, Z.jsxs)(R, {
|
|
2699
2699
|
sx: {
|
|
2700
2700
|
display: "flex",
|
|
2701
2701
|
alignItems: "center",
|
|
2702
2702
|
gap: .5
|
|
2703
2703
|
},
|
|
2704
2704
|
children: [
|
|
2705
|
-
(0, Z.jsx)(
|
|
2705
|
+
(0, Z.jsx)(G, {
|
|
2706
2706
|
variant: "caption",
|
|
2707
2707
|
sx: {
|
|
2708
2708
|
color: "text.secondary",
|
|
@@ -2710,7 +2710,7 @@ var Ti = [
|
|
|
2710
2710
|
},
|
|
2711
2711
|
children: a("conditionalFormat.negative")
|
|
2712
2712
|
}),
|
|
2713
|
-
(0, Z.jsx)(
|
|
2713
|
+
(0, Z.jsx)(qt, {
|
|
2714
2714
|
icon: "fill.colored",
|
|
2715
2715
|
tooltip: a("conditionalFormat.negativeColor"),
|
|
2716
2716
|
selectedColor: d ?? u,
|
|
@@ -2722,7 +2722,7 @@ var Ti = [
|
|
|
2722
2722
|
...c
|
|
2723
2723
|
}
|
|
2724
2724
|
}),
|
|
2725
|
-
(0, Z.jsx)(
|
|
2725
|
+
(0, Z.jsx)(qt, {
|
|
2726
2726
|
icon: "stroke.colored",
|
|
2727
2727
|
tooltip: a("conditionalFormat.negativeBorderColor"),
|
|
2728
2728
|
selectedColor: p ?? f,
|
|
@@ -2734,7 +2734,7 @@ var Ti = [
|
|
|
2734
2734
|
...c
|
|
2735
2735
|
}
|
|
2736
2736
|
}),
|
|
2737
|
-
(0, Z.jsx)(
|
|
2737
|
+
(0, Z.jsx)(Kt, {
|
|
2738
2738
|
title: a("conditionalFormat.sameAsPositive"),
|
|
2739
2739
|
disabled: r || !t.negativeFillColor && !t.negativeBorderColor,
|
|
2740
2740
|
onClick: () => h({
|
|
@@ -2745,26 +2745,26 @@ var Ti = [
|
|
|
2745
2745
|
color: "text.secondary",
|
|
2746
2746
|
"&:disabled": { opacity: .4 }
|
|
2747
2747
|
},
|
|
2748
|
-
children: (0, Z.jsx)(
|
|
2748
|
+
children: (0, Z.jsx)(O, {
|
|
2749
2749
|
iconKey: "ClearFormats",
|
|
2750
2750
|
size: 16
|
|
2751
2751
|
})
|
|
2752
2752
|
})
|
|
2753
2753
|
]
|
|
2754
2754
|
}),
|
|
2755
|
-
(0, Z.jsxs)(
|
|
2755
|
+
(0, Z.jsxs)(R, {
|
|
2756
2756
|
sx: {
|
|
2757
2757
|
display: "flex",
|
|
2758
2758
|
gap: 1,
|
|
2759
2759
|
mt: .5
|
|
2760
2760
|
},
|
|
2761
|
-
children: [(0, Z.jsxs)(
|
|
2761
|
+
children: [(0, Z.jsxs)(q, {
|
|
2762
2762
|
size: "small",
|
|
2763
2763
|
sx: {
|
|
2764
2764
|
flex: 1,
|
|
2765
2765
|
minWidth: 0
|
|
2766
2766
|
},
|
|
2767
|
-
children: [(0, Z.jsx)(
|
|
2767
|
+
children: [(0, Z.jsx)(Ct, { children: a("conditionalFormat.axis") }), (0, Z.jsxs)(J, {
|
|
2768
2768
|
label: a("conditionalFormat.axis"),
|
|
2769
2769
|
value: t.axisPosition ?? Di,
|
|
2770
2770
|
disabled: r,
|
|
@@ -2774,27 +2774,27 @@ var Ti = [
|
|
|
2774
2774
|
h({ axisPosition: t === Di ? void 0 : t });
|
|
2775
2775
|
},
|
|
2776
2776
|
children: [
|
|
2777
|
-
(0, Z.jsx)(
|
|
2777
|
+
(0, Z.jsx)(Y, {
|
|
2778
2778
|
value: Di,
|
|
2779
2779
|
children: a("conditionalFormat.automatic")
|
|
2780
2780
|
}),
|
|
2781
|
-
(0, Z.jsx)(
|
|
2781
|
+
(0, Z.jsx)(Y, {
|
|
2782
2782
|
value: "middle",
|
|
2783
2783
|
children: a("conditionalFormat.axisMiddle")
|
|
2784
2784
|
}),
|
|
2785
|
-
(0, Z.jsx)(
|
|
2785
|
+
(0, Z.jsx)(Y, {
|
|
2786
2786
|
value: "none",
|
|
2787
2787
|
children: a("conditionalFormat.axisNone")
|
|
2788
2788
|
})
|
|
2789
2789
|
]
|
|
2790
2790
|
})]
|
|
2791
|
-
}), (0, Z.jsxs)(
|
|
2791
|
+
}), (0, Z.jsxs)(q, {
|
|
2792
2792
|
size: "small",
|
|
2793
2793
|
sx: {
|
|
2794
2794
|
flex: 1,
|
|
2795
2795
|
minWidth: 0
|
|
2796
2796
|
},
|
|
2797
|
-
children: [(0, Z.jsx)(
|
|
2797
|
+
children: [(0, Z.jsx)(Ct, { children: a("conditionalFormat.direction") }), (0, Z.jsxs)(J, {
|
|
2798
2798
|
label: a("conditionalFormat.direction"),
|
|
2799
2799
|
value: t.direction ?? Di,
|
|
2800
2800
|
disabled: r,
|
|
@@ -2804,15 +2804,15 @@ var Ti = [
|
|
|
2804
2804
|
h({ direction: t === Di ? void 0 : t });
|
|
2805
2805
|
},
|
|
2806
2806
|
children: [
|
|
2807
|
-
(0, Z.jsx)(
|
|
2807
|
+
(0, Z.jsx)(Y, {
|
|
2808
2808
|
value: Di,
|
|
2809
2809
|
children: a("conditionalFormat.automatic")
|
|
2810
2810
|
}),
|
|
2811
|
-
(0, Z.jsx)(
|
|
2811
|
+
(0, Z.jsx)(Y, {
|
|
2812
2812
|
value: "leftToRight",
|
|
2813
2813
|
children: a("conditionalFormat.leftToRight")
|
|
2814
2814
|
}),
|
|
2815
|
-
(0, Z.jsx)(
|
|
2815
|
+
(0, Z.jsx)(Y, {
|
|
2816
2816
|
value: "rightToLeft",
|
|
2817
2817
|
children: a("conditionalFormat.rightToLeft")
|
|
2818
2818
|
})
|
|
@@ -2824,7 +2824,7 @@ var Ti = [
|
|
|
2824
2824
|
variant: "config",
|
|
2825
2825
|
children: [(0, Z.jsx)(Si, {
|
|
2826
2826
|
label: a("conditionalFormat.stop.minimum"),
|
|
2827
|
-
stop: l[0] ?? { type:
|
|
2827
|
+
stop: l[0] ?? { type: v.ColorStopType.AutoMin },
|
|
2828
2828
|
allowedTypes: Ti,
|
|
2829
2829
|
readOnly: r,
|
|
2830
2830
|
onStopChange: (e) => {
|
|
@@ -2833,12 +2833,12 @@ var Ti = [
|
|
|
2833
2833
|
}
|
|
2834
2834
|
}), (0, Z.jsx)(Si, {
|
|
2835
2835
|
label: a("conditionalFormat.stop.maximum"),
|
|
2836
|
-
stop: l[1] ?? { type:
|
|
2836
|
+
stop: l[1] ?? { type: v.ColorStopType.AutoMax },
|
|
2837
2837
|
allowedTypes: Ei,
|
|
2838
2838
|
readOnly: r,
|
|
2839
2839
|
onStopChange: (e) => {
|
|
2840
2840
|
let t = l.slice();
|
|
2841
|
-
for (; t.length < 2;) t.push({ type:
|
|
2841
|
+
for (; t.length < 2;) t.push({ type: v.ColorStopType.AutoMax });
|
|
2842
2842
|
t[1] = e, h({ stops: t });
|
|
2843
2843
|
}
|
|
2844
2844
|
})]
|
|
@@ -2846,22 +2846,22 @@ var Ti = [
|
|
|
2846
2846
|
});
|
|
2847
2847
|
});
|
|
2848
2848
|
Oi.displayName = "DataBarRulePanel";
|
|
2849
|
-
var ki =
|
|
2849
|
+
var ki = f("conditionalFormat.noCellIcon"), Ai = f("conditionalFormat.cellIcon"), ji = {
|
|
2850
2850
|
borderColor: "primary.main",
|
|
2851
2851
|
boxShadow: (e) => `inset 0 0 0 1px ${e.palette.primary.main}`
|
|
2852
2852
|
}, Mi = {
|
|
2853
2853
|
width: "28px",
|
|
2854
2854
|
height: "26px"
|
|
2855
2855
|
}, Ni = (0, X.memo)((e) => {
|
|
2856
|
-
let { icon: t, onPick: n } = e, r =
|
|
2857
|
-
return (0, Z.jsxs)(
|
|
2856
|
+
let { icon: t, onPick: n } = e, r = N();
|
|
2857
|
+
return (0, Z.jsxs)(R, {
|
|
2858
2858
|
sx: {
|
|
2859
2859
|
display: "flex",
|
|
2860
2860
|
flexDirection: "column",
|
|
2861
2861
|
gap: "4px",
|
|
2862
2862
|
padding: "6px 8px"
|
|
2863
2863
|
},
|
|
2864
|
-
children: [(0, Z.jsx)(
|
|
2864
|
+
children: [(0, Z.jsx)(Kt, {
|
|
2865
2865
|
sheet: !0,
|
|
2866
2866
|
title: r(ki),
|
|
2867
2867
|
"aria-pressed": t === null,
|
|
@@ -2870,24 +2870,24 @@ var ki = i("conditionalFormat.noCellIcon"), Ai = i("conditionalFormat.cellIcon")
|
|
|
2870
2870
|
...t === null ? ji : null
|
|
2871
2871
|
},
|
|
2872
2872
|
onClick: () => {
|
|
2873
|
-
n({ ...
|
|
2873
|
+
n({ ...Ue });
|
|
2874
2874
|
},
|
|
2875
|
-
children: (0, Z.jsx)(
|
|
2875
|
+
children: (0, Z.jsx)(B, {
|
|
2876
2876
|
icons: [null],
|
|
2877
2877
|
size: 16
|
|
2878
2878
|
})
|
|
2879
|
-
}), (0, Z.jsx)(
|
|
2879
|
+
}), (0, Z.jsx)(R, {
|
|
2880
2880
|
sx: {
|
|
2881
2881
|
display: "grid",
|
|
2882
2882
|
gridTemplateColumns: "repeat(8, auto)",
|
|
2883
2883
|
justifyContent: "start",
|
|
2884
2884
|
gap: "3px"
|
|
2885
2885
|
},
|
|
2886
|
-
children:
|
|
2886
|
+
children: Fe.map((e) => {
|
|
2887
2887
|
let i = ((e, t) => !!e && e.iconKey === t.iconKey && e.color === t.color)(t, e.spec);
|
|
2888
|
-
return (0, Z.jsx)(
|
|
2888
|
+
return (0, Z.jsx)(Kt, {
|
|
2889
2889
|
sheet: !0,
|
|
2890
|
-
title:
|
|
2890
|
+
title: ln(r, e.spec),
|
|
2891
2891
|
"aria-pressed": i,
|
|
2892
2892
|
sx: {
|
|
2893
2893
|
...Mi,
|
|
@@ -2899,7 +2899,7 @@ var ki = i("conditionalFormat.noCellIcon"), Ai = i("conditionalFormat.cellIcon")
|
|
|
2899
2899
|
id: e.id
|
|
2900
2900
|
});
|
|
2901
2901
|
},
|
|
2902
|
-
children: (0, Z.jsx)(
|
|
2902
|
+
children: (0, Z.jsx)(B, {
|
|
2903
2903
|
icons: [e.spec],
|
|
2904
2904
|
size: 16
|
|
2905
2905
|
})
|
|
@@ -2910,8 +2910,8 @@ var ki = i("conditionalFormat.noCellIcon"), Ai = i("conditionalFormat.cellIcon")
|
|
|
2910
2910
|
});
|
|
2911
2911
|
Ni.displayName = "IconCatalogPanel";
|
|
2912
2912
|
var Pi = (0, X.memo)((0, X.forwardRef)((e, t) => {
|
|
2913
|
-
let { icon: n, onPick: r, tooltip: i, ...a } = e, o =
|
|
2914
|
-
return (0, Z.jsx)(
|
|
2913
|
+
let { icon: n, onPick: r, tooltip: i, ...a } = e, o = N();
|
|
2914
|
+
return (0, Z.jsx)(Sn, {
|
|
2915
2915
|
ref: t,
|
|
2916
2916
|
createPopupPanel: (0, X.useCallback)((e) => {
|
|
2917
2917
|
let { closeFloat: t } = e, i = (0, Z.jsx)(Ni, {
|
|
@@ -2920,13 +2920,13 @@ var Pi = (0, X.memo)((0, X.forwardRef)((e, t) => {
|
|
|
2920
2920
|
t?.(), r(e);
|
|
2921
2921
|
}
|
|
2922
2922
|
});
|
|
2923
|
-
return
|
|
2923
|
+
return Nn({
|
|
2924
2924
|
...e,
|
|
2925
2925
|
children: i
|
|
2926
2926
|
});
|
|
2927
2927
|
}, [n, r]),
|
|
2928
2928
|
tooltip: i ?? o(Ai),
|
|
2929
|
-
icon: (0, Z.jsx)(
|
|
2929
|
+
icon: (0, Z.jsx)(B, {
|
|
2930
2930
|
icons: [n],
|
|
2931
2931
|
size: 16
|
|
2932
2932
|
}),
|
|
@@ -2936,24 +2936,24 @@ var Pi = (0, X.memo)((0, X.forwardRef)((e, t) => {
|
|
|
2936
2936
|
}));
|
|
2937
2937
|
Pi.displayName = "IconPickerPopupButton";
|
|
2938
2938
|
var Fi = [
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2939
|
+
v.ColorStopType.Percent,
|
|
2940
|
+
v.ColorStopType.Num,
|
|
2941
|
+
v.ColorStopType.Percentile,
|
|
2942
|
+
v.ColorStopType.Formula
|
|
2943
2943
|
], Ii = (0, X.memo)((e) => {
|
|
2944
|
-
let { scale: t, onScaleChange: n, readOnly: r, ...i } = e, a =
|
|
2944
|
+
let { scale: t, onScaleChange: n, readOnly: r, ...i } = e, a = N(), s = t.iconSet ?? S.IconSet.TrafficLights3, c = ke(s).length === 0, l = t.stops ?? [], u = l.length, d = V(t), f = (e) => {
|
|
2945
2945
|
let r = { ...t };
|
|
2946
2946
|
for (let [t, n] of Object.entries(e)) n === void 0 ? delete r[t] : r[t] = n;
|
|
2947
2947
|
n(r);
|
|
2948
2948
|
}, p = (0, X.useCallback)((e) => {
|
|
2949
|
-
let { closeFloat: t } = e, n = (0, Z.jsx)(
|
|
2950
|
-
groups:
|
|
2949
|
+
let { closeFloat: t } = e, n = (0, Z.jsx)(en, {
|
|
2950
|
+
groups: It,
|
|
2951
2951
|
disabled: r,
|
|
2952
2952
|
onPick: (e) => {
|
|
2953
|
-
t?.(), e.type ===
|
|
2954
|
-
if (e ===
|
|
2955
|
-
let t =
|
|
2956
|
-
t !== l.length && (n =
|
|
2953
|
+
t?.(), e.type === v.ScaleType.IconSet && e.iconSet && ((e) => {
|
|
2954
|
+
if (e === s) return;
|
|
2955
|
+
let t = Ge(e), n = l;
|
|
2956
|
+
t !== l.length && (n = Be(t)), f({
|
|
2957
2957
|
iconSet: e,
|
|
2958
2958
|
stops: n,
|
|
2959
2959
|
icon: void 0
|
|
@@ -2961,12 +2961,12 @@ var Fi = [
|
|
|
2961
2961
|
})(e.iconSet);
|
|
2962
2962
|
}
|
|
2963
2963
|
});
|
|
2964
|
-
return
|
|
2964
|
+
return Nn({
|
|
2965
2965
|
...e,
|
|
2966
2966
|
children: n
|
|
2967
2967
|
});
|
|
2968
|
-
}, [r, t]), m =
|
|
2969
|
-
return (0, Z.jsxs)(
|
|
2968
|
+
}, [r, t]), m = o.camelToPrettyCase(s);
|
|
2969
|
+
return (0, Z.jsxs)(R, {
|
|
2970
2970
|
sx: {
|
|
2971
2971
|
display: "flex",
|
|
2972
2972
|
flexDirection: "column",
|
|
@@ -2974,29 +2974,29 @@ var Fi = [
|
|
|
2974
2974
|
},
|
|
2975
2975
|
...i,
|
|
2976
2976
|
children: [(0, Z.jsxs)(mi, { children: [
|
|
2977
|
-
(0, Z.jsx)(
|
|
2977
|
+
(0, Z.jsx)(R, {
|
|
2978
2978
|
sx: {
|
|
2979
2979
|
display: "flex",
|
|
2980
2980
|
alignItems: "center",
|
|
2981
2981
|
gap: 1
|
|
2982
2982
|
},
|
|
2983
|
-
children: (0, Z.jsx)(
|
|
2983
|
+
children: (0, Z.jsx)(Sn, {
|
|
2984
2984
|
outlined: !0,
|
|
2985
2985
|
disabled: r,
|
|
2986
2986
|
label: m,
|
|
2987
2987
|
tooltip: m,
|
|
2988
|
-
icon: (0, Z.jsx)(
|
|
2988
|
+
icon: (0, Z.jsx)(R, {
|
|
2989
2989
|
sx: {
|
|
2990
2990
|
width: "82px",
|
|
2991
2991
|
display: "flex",
|
|
2992
2992
|
justifyContent: "center"
|
|
2993
2993
|
},
|
|
2994
|
-
children: c ? (0, Z.jsx)(
|
|
2994
|
+
children: c ? (0, Z.jsx)(G, {
|
|
2995
2995
|
variant: "caption",
|
|
2996
2996
|
noWrap: !0,
|
|
2997
2997
|
children: m
|
|
2998
|
-
}) : (0, Z.jsx)(
|
|
2999
|
-
icons:
|
|
2998
|
+
}) : (0, Z.jsx)(B, {
|
|
2999
|
+
icons: ke(s),
|
|
3000
3000
|
order: "descending",
|
|
3001
3001
|
size: 14,
|
|
3002
3002
|
gap: 3
|
|
@@ -3005,35 +3005,35 @@ var Fi = [
|
|
|
3005
3005
|
createPopupPanel: p
|
|
3006
3006
|
})
|
|
3007
3007
|
}),
|
|
3008
|
-
c && (0, Z.jsx)(
|
|
3008
|
+
c && (0, Z.jsx)(G, {
|
|
3009
3009
|
variant: "caption",
|
|
3010
3010
|
sx: { color: "text.secondary" },
|
|
3011
3011
|
children: a("conditionalFormat.adoptedIconSet")
|
|
3012
3012
|
}),
|
|
3013
|
-
(0, Z.jsxs)(
|
|
3013
|
+
(0, Z.jsxs)(R, {
|
|
3014
3014
|
sx: {
|
|
3015
3015
|
display: "flex",
|
|
3016
3016
|
gap: 1
|
|
3017
3017
|
},
|
|
3018
|
-
children: [(0, Z.jsx)(
|
|
3019
|
-
control: (0, Z.jsx)(
|
|
3018
|
+
children: [(0, Z.jsx)(gn, {
|
|
3019
|
+
control: (0, Z.jsx)(hn, {
|
|
3020
3020
|
size: "small",
|
|
3021
3021
|
checked: !1 === t.showValue,
|
|
3022
3022
|
disabled: r,
|
|
3023
3023
|
onChange: (e) => f({ showValue: !e.target.checked && void 0 })
|
|
3024
3024
|
}),
|
|
3025
|
-
label: (0, Z.jsx)(
|
|
3025
|
+
label: (0, Z.jsx)(G, {
|
|
3026
3026
|
variant: "body2",
|
|
3027
3027
|
children: a("conditionalFormat.showIconsOnly")
|
|
3028
3028
|
})
|
|
3029
|
-
}), (0, Z.jsx)(
|
|
3030
|
-
control: (0, Z.jsx)(
|
|
3029
|
+
}), (0, Z.jsx)(gn, {
|
|
3030
|
+
control: (0, Z.jsx)(hn, {
|
|
3031
3031
|
size: "small",
|
|
3032
3032
|
checked: t.reverse ?? !1,
|
|
3033
3033
|
disabled: r,
|
|
3034
3034
|
onChange: (e) => f({ reverse: !!e.target.checked || void 0 })
|
|
3035
3035
|
}),
|
|
3036
|
-
label: (0, Z.jsx)(
|
|
3036
|
+
label: (0, Z.jsx)(G, {
|
|
3037
3037
|
variant: "body2",
|
|
3038
3038
|
children: a("conditionalFormat.reverseIcons")
|
|
3039
3039
|
})
|
|
@@ -3051,7 +3051,7 @@ var Fi = [
|
|
|
3051
3051
|
leading: (0, Z.jsx)(Pi, {
|
|
3052
3052
|
icon: d[i] ?? null,
|
|
3053
3053
|
disabled: r || c,
|
|
3054
|
-
onPick: (e) => n(
|
|
3054
|
+
onPick: (e) => n(Oe(t, a, e))
|
|
3055
3055
|
}),
|
|
3056
3056
|
onStopChange: (e) => {
|
|
3057
3057
|
let t = l.slice();
|
|
@@ -3063,15 +3063,15 @@ var Fi = [
|
|
|
3063
3063
|
});
|
|
3064
3064
|
});
|
|
3065
3065
|
Ii.displayName = "IconSetRulePanel";
|
|
3066
|
-
var Li = (e, t, n) =>
|
|
3066
|
+
var Li = (e, t, n) => jt(e, t)?.toCSS("adaptive") ?? n, Ri = (e, t, n) => {
|
|
3067
3067
|
if (!e) return n;
|
|
3068
3068
|
if (typeof e == "string") return Li(e, t, n);
|
|
3069
|
-
if (e.type ===
|
|
3069
|
+
if (e.type === _.Type.None) return n;
|
|
3070
3070
|
let r = e, i = e;
|
|
3071
3071
|
return Li(i.foreground ?? r.color ?? i.background, t, n);
|
|
3072
3072
|
}, zi = (0, X.memo)((e) => {
|
|
3073
|
-
let { conditionalFormat: t, size: n = 28, ...r } = e, { workbook: i, themeKey: a } =
|
|
3074
|
-
|
|
3073
|
+
let { conditionalFormat: t, size: n = 28, ...r } = e, { workbook: i, themeKey: a } = Gt();
|
|
3074
|
+
Ke(t, "onAnyChange");
|
|
3075
3075
|
let o = t.getScale(), s = t.getStyle(), c = (0, X.useMemo)(() => {
|
|
3076
3076
|
try {
|
|
3077
3077
|
return i?.getStyles().getNormal().getFont().toCSS("adaptive") ?? {};
|
|
@@ -3079,9 +3079,9 @@ var Li = (e, t, n) => Xe(e, t)?.toCSS("adaptive") ?? n, Ri = (e, t, n) => {
|
|
|
3079
3079
|
return {};
|
|
3080
3080
|
}
|
|
3081
3081
|
}, [i, a]), l = (0, X.useMemo)(() => {
|
|
3082
|
-
if (o?.type ===
|
|
3083
|
-
if (o?.type ===
|
|
3084
|
-
if (o?.type ===
|
|
3082
|
+
if (o?.type === v.ScaleType.ColorScale) return (0, Z.jsx)(Vt, { rows: Qt(o.stops ?? [], Et, i) });
|
|
3083
|
+
if (o?.type === v.ScaleType.DataBar) return (0, Z.jsx)(Vt, { rows: Ht(o, Li(o.color, i, un), o.borderColor ? Li(o.borderColor, i, un) : void 0) });
|
|
3084
|
+
if (o?.type === v.ScaleType.IconSet) return (0, Z.jsx)(R, {
|
|
3085
3085
|
sx: {
|
|
3086
3086
|
display: "flex",
|
|
3087
3087
|
alignItems: "center",
|
|
@@ -3090,15 +3090,15 @@ var Li = (e, t, n) => Xe(e, t)?.toCSS("adaptive") ?? n, Ri = (e, t, n) => {
|
|
|
3090
3090
|
height: "100%",
|
|
3091
3091
|
px: .5
|
|
3092
3092
|
},
|
|
3093
|
-
children: (0, Z.jsx)(
|
|
3094
|
-
icons:
|
|
3093
|
+
children: (0, Z.jsx)(B, {
|
|
3094
|
+
icons: V(o),
|
|
3095
3095
|
order: "descending",
|
|
3096
3096
|
size: 14,
|
|
3097
3097
|
gap: 3
|
|
3098
3098
|
})
|
|
3099
3099
|
});
|
|
3100
|
-
let e = s?.font, t = e?.underline && e.underline !==
|
|
3101
|
-
return (0, Z.jsx)(
|
|
3100
|
+
let e = s?.font, t = e?.underline && e.underline !== y.UnderlineStyle.None;
|
|
3101
|
+
return (0, Z.jsx)(R, {
|
|
3102
3102
|
sx: {
|
|
3103
3103
|
width: "100%",
|
|
3104
3104
|
height: "100%",
|
|
@@ -3107,13 +3107,13 @@ var Li = (e, t, n) => Xe(e, t)?.toCSS("adaptive") ?? n, Ri = (e, t, n) => {
|
|
|
3107
3107
|
justifyContent: "center",
|
|
3108
3108
|
...c,
|
|
3109
3109
|
backgroundColor: Ri(s?.fill, i, "transparent"),
|
|
3110
|
-
...e?.color && e.color !== "auto" ? { color: Li(e.color, i,
|
|
3110
|
+
...e?.color && e.color !== "auto" ? { color: Li(e.color, i, Lt) } : null,
|
|
3111
3111
|
...e?.weight ? { fontWeight: e.weight } : null,
|
|
3112
3112
|
...e?.style ? { fontStyle: e.style } : null,
|
|
3113
3113
|
textDecoration: [t ? "underline" : "", e?.strike ? "line-through" : ""].join(" ").trim() || "none",
|
|
3114
3114
|
fontSize: `${Math.round(.5 * n)}px`,
|
|
3115
3115
|
lineHeight: 1,
|
|
3116
|
-
outline: s?.borders ? `1px solid ${Li(Object.values(s.borders)[0]?.color, i,
|
|
3116
|
+
outline: s?.borders ? `1px solid ${Li(Object.values(s.borders)[0]?.color, i, Xt)}` : void 0,
|
|
3117
3117
|
outlineOffset: "-3px"
|
|
3118
3118
|
},
|
|
3119
3119
|
children: "Aa"
|
|
@@ -3126,7 +3126,7 @@ var Li = (e, t, n) => Xe(e, t)?.toCSS("adaptive") ?? n, Ri = (e, t, n) => {
|
|
|
3126
3126
|
i,
|
|
3127
3127
|
a
|
|
3128
3128
|
]);
|
|
3129
|
-
return (0, Z.jsx)(
|
|
3129
|
+
return (0, Z.jsx)(Kt, {
|
|
3130
3130
|
sheet: !0,
|
|
3131
3131
|
className: "sxl-cf-rule-preview",
|
|
3132
3132
|
sx: {
|
|
@@ -3143,20 +3143,20 @@ var Bi = (e, t) => {
|
|
|
3143
3143
|
let n = e.getCondition()?.toString();
|
|
3144
3144
|
if (n) return n;
|
|
3145
3145
|
let r = e.getScale();
|
|
3146
|
-
return r ?
|
|
3146
|
+
return r ? o.camelToPrettyCase(r.type) : t("conditionalFormat.noCondition");
|
|
3147
3147
|
}, Vi = {
|
|
3148
|
-
classic:
|
|
3149
|
-
[
|
|
3150
|
-
[
|
|
3151
|
-
[
|
|
3148
|
+
classic: f("conditionalFormat.tab.classic"),
|
|
3149
|
+
[v.ScaleType.ColorScale]: f("conditionalFormat.tab.colorScale"),
|
|
3150
|
+
[v.ScaleType.DataBar]: f("conditionalFormat.tab.dataBars"),
|
|
3151
|
+
[v.ScaleType.IconSet]: f("conditionalFormat.tab.iconSets")
|
|
3152
3152
|
}, Hi = (0, X.memo)((e) => {
|
|
3153
|
-
let { conditionalFormat: t } = e, n =
|
|
3154
|
-
|
|
3153
|
+
let { conditionalFormat: t } = e, n = N();
|
|
3154
|
+
Ke(t, "onAnyChange");
|
|
3155
3155
|
let r = t.getScale(), i = t.getCondition(), a = t.getStyle(), o = t.isProtected(), s = r?.type ?? "classic", c = (0, X.useRef)({ scales: {} }), l = (e) => {
|
|
3156
3156
|
t.update({ scale: e });
|
|
3157
|
-
}, u = (0, Z.jsxs)(
|
|
3157
|
+
}, u = (0, Z.jsxs)(st, {
|
|
3158
3158
|
tabIndex: 0,
|
|
3159
|
-
className:
|
|
3159
|
+
className: Zt["editor-panel"],
|
|
3160
3160
|
sx: {
|
|
3161
3161
|
gap: (e) => e.spacing(1),
|
|
3162
3162
|
paddingTop: (e) => e.spacing(1.25),
|
|
@@ -3168,7 +3168,7 @@ var Bi = (e, t) => {
|
|
|
3168
3168
|
overflow: "auto"
|
|
3169
3169
|
},
|
|
3170
3170
|
children: [
|
|
3171
|
-
(0, Z.jsxs)(
|
|
3171
|
+
(0, Z.jsxs)(R, {
|
|
3172
3172
|
sx: {
|
|
3173
3173
|
display: "flex",
|
|
3174
3174
|
flexDirection: "column",
|
|
@@ -3176,7 +3176,7 @@ var Bi = (e, t) => {
|
|
|
3176
3176
|
margin: (e) => e.spacing(1.25),
|
|
3177
3177
|
marginBottom: 0
|
|
3178
3178
|
},
|
|
3179
|
-
children: [(0, Z.jsxs)(
|
|
3179
|
+
children: [(0, Z.jsxs)(R, {
|
|
3180
3180
|
sx: {
|
|
3181
3181
|
display: "flex",
|
|
3182
3182
|
alignItems: "center",
|
|
@@ -3185,7 +3185,7 @@ var Bi = (e, t) => {
|
|
|
3185
3185
|
children: [(0, Z.jsx)(zi, {
|
|
3186
3186
|
conditionalFormat: t,
|
|
3187
3187
|
size: 48
|
|
3188
|
-
}), (0, Z.jsx)(
|
|
3188
|
+
}), (0, Z.jsx)(G, {
|
|
3189
3189
|
variant: "body2",
|
|
3190
3190
|
sx: {
|
|
3191
3191
|
minWidth: 0,
|
|
@@ -3193,25 +3193,25 @@ var Bi = (e, t) => {
|
|
|
3193
3193
|
},
|
|
3194
3194
|
children: Bi(t, n)
|
|
3195
3195
|
})]
|
|
3196
|
-
}), (0, Z.jsx)(
|
|
3196
|
+
}), (0, Z.jsx)(Ft, {
|
|
3197
3197
|
item: t,
|
|
3198
3198
|
label: n("conditionalFormat.applyTo")
|
|
3199
3199
|
})]
|
|
3200
3200
|
}),
|
|
3201
|
-
(0, Z.jsx)(
|
|
3201
|
+
(0, Z.jsx)(At, {
|
|
3202
3202
|
value: s,
|
|
3203
3203
|
onChange: (e, n) => {
|
|
3204
3204
|
o || ((e) => {
|
|
3205
3205
|
if (e !== s) if (s === "classic" ? (c.current.condition = i?.toJSON() ?? null, c.current.style = a) : r && (c.current.scales[r.type] = r), e === "classic") t.update({
|
|
3206
3206
|
condition: c.current.condition ?? {
|
|
3207
|
-
operator:
|
|
3207
|
+
operator: b.BuiltInOperatorNames.Between,
|
|
3208
3208
|
param: null
|
|
3209
3209
|
},
|
|
3210
3210
|
style: c.current.style ?? null,
|
|
3211
3211
|
scale: null
|
|
3212
3212
|
});
|
|
3213
3213
|
else {
|
|
3214
|
-
let n = c.current.scales[e] ?? (e ===
|
|
3214
|
+
let n = c.current.scales[e] ?? (e === v.ScaleType.ColorScale ? $e() : e === v.ScaleType.DataBar ? Ne() : Te());
|
|
3215
3215
|
t.update({
|
|
3216
3216
|
scale: n,
|
|
3217
3217
|
condition: null,
|
|
@@ -3234,7 +3234,7 @@ var Bi = (e, t) => {
|
|
|
3234
3234
|
minWidth: 0
|
|
3235
3235
|
}
|
|
3236
3236
|
},
|
|
3237
|
-
children: Object.keys(Vi).map((e) => (0, Z.jsx)(
|
|
3237
|
+
children: Object.keys(Vi).map((e) => (0, Z.jsx)(Pt, {
|
|
3238
3238
|
value: e,
|
|
3239
3239
|
label: n(Vi[e])
|
|
3240
3240
|
}, e))
|
|
@@ -3250,22 +3250,22 @@ var Bi = (e, t) => {
|
|
|
3250
3250
|
readOnly: o,
|
|
3251
3251
|
onConditionChange: (e) => t.setCondition(e)
|
|
3252
3252
|
})] }),
|
|
3253
|
-
r?.type ===
|
|
3253
|
+
r?.type === v.ScaleType.ColorScale && (0, Z.jsx)(wi, {
|
|
3254
3254
|
scale: r,
|
|
3255
3255
|
onScaleChange: l,
|
|
3256
3256
|
readOnly: o
|
|
3257
3257
|
}),
|
|
3258
|
-
r?.type ===
|
|
3258
|
+
r?.type === v.ScaleType.DataBar && (0, Z.jsx)(Oi, {
|
|
3259
3259
|
scale: r,
|
|
3260
3260
|
onScaleChange: l,
|
|
3261
3261
|
readOnly: o
|
|
3262
3262
|
}),
|
|
3263
|
-
r?.type ===
|
|
3263
|
+
r?.type === v.ScaleType.IconSet && (0, Z.jsx)(Ii, {
|
|
3264
3264
|
scale: r,
|
|
3265
3265
|
onScaleChange: l,
|
|
3266
3266
|
readOnly: o
|
|
3267
3267
|
}),
|
|
3268
|
-
s === "classic" && (0, Z.jsx)(
|
|
3268
|
+
s === "classic" && (0, Z.jsx)(R, {
|
|
3269
3269
|
sx: {
|
|
3270
3270
|
pl: 2,
|
|
3271
3271
|
pr: 2,
|
|
@@ -3273,8 +3273,8 @@ var Bi = (e, t) => {
|
|
|
3273
3273
|
borderColor: "divider",
|
|
3274
3274
|
borderRadius: 1
|
|
3275
3275
|
},
|
|
3276
|
-
children: (0, Z.jsx)(
|
|
3277
|
-
control: (0, Z.jsx)(
|
|
3276
|
+
children: (0, Z.jsx)(gn, {
|
|
3277
|
+
control: (0, Z.jsx)(hn, {
|
|
3278
3278
|
checked: t.isStopIfTrue(),
|
|
3279
3279
|
disabled: o,
|
|
3280
3280
|
onChange: (e) => t.setStopIfTrue(e.target.checked)
|
|
@@ -3291,8 +3291,8 @@ var Bi = (e, t) => {
|
|
|
3291
3291
|
});
|
|
3292
3292
|
Hi.displayName = "ConditionalFormatEditorPanel";
|
|
3293
3293
|
var Ui = (0, X.memo)(({ item: e }) => {
|
|
3294
|
-
let t =
|
|
3295
|
-
return
|
|
3294
|
+
let t = N();
|
|
3295
|
+
return Ke(e, "onAnyChange"), !e.isStopIfTrue() || e.getScale() ? null : (0, Z.jsx)(R, {
|
|
3296
3296
|
sx: {
|
|
3297
3297
|
display: "inline-flex",
|
|
3298
3298
|
alignItems: "center",
|
|
@@ -3304,34 +3304,34 @@ var Ui = (0, X.memo)(({ item: e }) => {
|
|
|
3304
3304
|
borderRadius: 1,
|
|
3305
3305
|
color: "text.secondary"
|
|
3306
3306
|
},
|
|
3307
|
-
children: (0, Z.jsx)(
|
|
3307
|
+
children: (0, Z.jsx)(G, {
|
|
3308
3308
|
variant: "caption",
|
|
3309
3309
|
children: t("conditionalFormat.stopIfTrue")
|
|
3310
3310
|
})
|
|
3311
3311
|
});
|
|
3312
3312
|
});
|
|
3313
3313
|
Ui.displayName = "StopIfTrueBadge";
|
|
3314
|
-
var Wi = (0, X.memo)(({ item: e }) => (0, Z.jsx)(
|
|
3314
|
+
var Wi = (0, X.memo)(({ item: e }) => (0, Z.jsx)(Ft, {
|
|
3315
3315
|
item: e,
|
|
3316
|
-
label:
|
|
3316
|
+
label: N()("conditionalFormat.applyTo"),
|
|
3317
3317
|
helperText: null
|
|
3318
3318
|
}));
|
|
3319
3319
|
Wi.displayName = "ConditionalFormatCardRanges";
|
|
3320
3320
|
var Gi = {
|
|
3321
3321
|
key: "conditional-format",
|
|
3322
3322
|
messageKeys: {
|
|
3323
|
-
none:
|
|
3324
|
-
addPrompt:
|
|
3325
|
-
heading:
|
|
3326
|
-
insert:
|
|
3327
|
-
new:
|
|
3328
|
-
moveUp:
|
|
3329
|
-
moveDown:
|
|
3330
|
-
edit:
|
|
3331
|
-
duplicate:
|
|
3332
|
-
delete:
|
|
3333
|
-
cancel:
|
|
3334
|
-
save:
|
|
3323
|
+
none: f("conditionalFormat.none"),
|
|
3324
|
+
addPrompt: f("conditionalFormat.addPrompt"),
|
|
3325
|
+
heading: f("conditionalFormat.heading"),
|
|
3326
|
+
insert: f("conditionalFormat.insert"),
|
|
3327
|
+
new: f("conditionalFormat.new"),
|
|
3328
|
+
moveUp: f("conditionalFormat.moveUp"),
|
|
3329
|
+
moveDown: f("conditionalFormat.moveDown"),
|
|
3330
|
+
edit: f("conditionalFormat.edit"),
|
|
3331
|
+
duplicate: f("conditionalFormat.duplicate"),
|
|
3332
|
+
delete: f("conditionalFormat.delete"),
|
|
3333
|
+
cancel: f("conditionalFormat.cancel"),
|
|
3334
|
+
save: f("conditionalFormat.save")
|
|
3335
3335
|
},
|
|
3336
3336
|
getCollection: (e) => e.getConditionalFormats(),
|
|
3337
3337
|
changeEvents: ["onConditionalFormatsChange"],
|
|
@@ -3357,7 +3357,7 @@ var Gi = {
|
|
|
3357
3357
|
EditorBody: ({ item: e }) => (0, Z.jsx)(Hi, { conditionalFormat: e })
|
|
3358
3358
|
}, Ki = (0, X.memo)((0, X.forwardRef)((e, t) => {
|
|
3359
3359
|
let { workbook: n, args: r, ...i } = e;
|
|
3360
|
-
return (0, Z.jsx)(
|
|
3360
|
+
return (0, Z.jsx)(Nt, {
|
|
3361
3361
|
ref: t,
|
|
3362
3362
|
workbook: n,
|
|
3363
3363
|
descriptor: Gi,
|
|
@@ -4249,11 +4249,11 @@ var ro = (0, X.memo)(no), io = Na({ wrappedRoot: {
|
|
|
4249
4249
|
checkIcon: "_checkIcon_h0jnt_42",
|
|
4250
4250
|
button: "_button_h0jnt_47"
|
|
4251
4251
|
}, _o = (0, X.memo)((0, X.forwardRef)((e, t) => {
|
|
4252
|
-
let { id: n, message: r, iconVariant: i, error: a, hideIconVariant: o, ...
|
|
4253
|
-
|
|
4252
|
+
let { id: n, message: r, iconVariant: i, error: a, hideIconVariant: o, ...c } = e, u = N(), { closeSnackbar: d } = ho(), [f, p] = (0, X.useState)(!1), m = a ? s.collectErrorChain(a, !0)?.[0]?.error : void 0, h = m && !(m instanceof l), g = (0, X.useCallback)(() => {
|
|
4253
|
+
p((e) => !e);
|
|
4254
4254
|
}, []), _ = (0, X.useCallback)(() => {
|
|
4255
|
-
|
|
4256
|
-
}, [n,
|
|
4255
|
+
d(n);
|
|
4256
|
+
}, [n, d]), v = m?.message;
|
|
4257
4257
|
return !v && (0, X.isValidElement)(r) && (v = r), v || typeof r != "string" || (v = r), v ||= `Unknown Error: ${r}`, (0, Z.jsx)(Ja, {
|
|
4258
4258
|
ref: t,
|
|
4259
4259
|
className: Fn(go.root, "error-snackbar"),
|
|
@@ -4268,7 +4268,7 @@ var ro = (0, X.memo)(no), io = Na({ wrappedRoot: {
|
|
|
4268
4268
|
className: go.actionRoot,
|
|
4269
4269
|
children: [
|
|
4270
4270
|
o ? null : i?.error,
|
|
4271
|
-
(0, Z.jsx)(
|
|
4271
|
+
(0, Z.jsx)(G, {
|
|
4272
4272
|
variant: "body2",
|
|
4273
4273
|
component: "div",
|
|
4274
4274
|
className: go.typography,
|
|
@@ -4277,25 +4277,25 @@ var ro = (0, X.memo)(no), io = Na({ wrappedRoot: {
|
|
|
4277
4277
|
(0, Z.jsx)("div", { style: { flex: "1 1 auto" } }),
|
|
4278
4278
|
(0, Z.jsxs)("div", {
|
|
4279
4279
|
className: go.icons,
|
|
4280
|
-
children: [h ? (0, Z.jsx)(
|
|
4281
|
-
"aria-label":
|
|
4280
|
+
children: [h ? (0, Z.jsx)(rt, {
|
|
4281
|
+
"aria-label": u("toast.showMore"),
|
|
4282
4282
|
size: "small",
|
|
4283
|
-
className: Fn(go.expand, { [go.expandOpen]:
|
|
4283
|
+
className: Fn(go.expand, { [go.expandOpen]: f }),
|
|
4284
4284
|
onClick: g,
|
|
4285
|
-
children: (0, Z.jsx)(
|
|
4286
|
-
}) : null, (0, Z.jsx)(
|
|
4285
|
+
children: (0, Z.jsx)(O, { iconKey: "ExpandMore" })
|
|
4286
|
+
}) : null, (0, Z.jsx)(rt, {
|
|
4287
4287
|
size: "small",
|
|
4288
4288
|
className: go.expand,
|
|
4289
4289
|
onClick: _,
|
|
4290
|
-
children: (0, Z.jsx)(
|
|
4290
|
+
children: (0, Z.jsx)(O, {
|
|
4291
4291
|
iconKey: "Close",
|
|
4292
4292
|
style: { transform: "scale(0.8)" }
|
|
4293
4293
|
})
|
|
4294
4294
|
})]
|
|
4295
4295
|
})
|
|
4296
4296
|
]
|
|
4297
|
-
}), h ? (0, Z.jsx)(
|
|
4298
|
-
in:
|
|
4297
|
+
}), h ? (0, Z.jsx)(D, {
|
|
4298
|
+
in: f,
|
|
4299
4299
|
timeout: "auto",
|
|
4300
4300
|
children: (0, Z.jsx)("div", {
|
|
4301
4301
|
className: go.stackTraceContainer,
|
|
@@ -4303,7 +4303,7 @@ var ro = (0, X.memo)(no), io = Na({ wrappedRoot: {
|
|
|
4303
4303
|
backgroundColor: "color-mix(in srgb, var(--sxl-color-error) 90%, var(--sxl-color-base-100))",
|
|
4304
4304
|
borderTop: "1px solid var(--sxl-color-error)"
|
|
4305
4305
|
},
|
|
4306
|
-
children: (0, Z.jsx)(
|
|
4306
|
+
children: (0, Z.jsx)(wn, {
|
|
4307
4307
|
error: a,
|
|
4308
4308
|
hideLineNumbers: !0
|
|
4309
4309
|
})
|
|
@@ -4313,10 +4313,10 @@ var ro = (0, X.memo)(no), io = Na({ wrappedRoot: {
|
|
|
4313
4313
|
});
|
|
4314
4314
|
}));
|
|
4315
4315
|
_o.displayName = "ToastError";
|
|
4316
|
-
var vo = (0, Z.jsx)(() => (0, Z.jsx)(
|
|
4316
|
+
var vo = (0, Z.jsx)(() => (0, Z.jsx)(pt, {
|
|
4317
4317
|
label: "SheetXL",
|
|
4318
|
-
description:
|
|
4319
|
-
children: (0, Z.jsx)(
|
|
4318
|
+
description: N()("logo.description"),
|
|
4319
|
+
children: (0, Z.jsx)(R, {
|
|
4320
4320
|
component: "a",
|
|
4321
4321
|
href: "https://www.sheetxl.com",
|
|
4322
4322
|
target: "_blank",
|
|
@@ -4329,24 +4329,24 @@ var vo = (0, Z.jsx)(() => (0, Z.jsx)(Le, {
|
|
|
4329
4329
|
marginLeft: "6px",
|
|
4330
4330
|
cursor: "pointer"
|
|
4331
4331
|
},
|
|
4332
|
-
children: (0, Z.jsx)(
|
|
4332
|
+
children: (0, Z.jsx)(Qe, { style: {
|
|
4333
4333
|
width: "24px",
|
|
4334
4334
|
height: "24px"
|
|
4335
4335
|
} })
|
|
4336
4336
|
})
|
|
4337
4337
|
}), {}), yo = (0, X.memo)((0, X.forwardRef)((e, t) => {
|
|
4338
|
-
let { workbook: n, className: r, logo: i = vo, mainElement: a, startElement: o, endElement: s, ...c } = e, [l, { width: u }] =
|
|
4339
|
-
return (0, Z.jsx)(
|
|
4338
|
+
let { workbook: n, className: r, logo: i = vo, mainElement: a, startElement: o, endElement: s, ...c } = e, [l, { width: u }] = E(), d = u < 530, f = (0, X.useRef)(null);
|
|
4339
|
+
return (0, Z.jsx)(R, {
|
|
4340
4340
|
...c,
|
|
4341
|
-
ref:
|
|
4341
|
+
ref: Ut([
|
|
4342
4342
|
f,
|
|
4343
4343
|
l,
|
|
4344
4344
|
t
|
|
4345
4345
|
]),
|
|
4346
4346
|
className: r,
|
|
4347
|
-
children:
|
|
4347
|
+
children: $t({
|
|
4348
4348
|
isCompact: d,
|
|
4349
|
-
wrapperSelect: (e) => (0, Z.jsxs)(
|
|
4349
|
+
wrapperSelect: (e) => (0, Z.jsxs)(R, {
|
|
4350
4350
|
sx: {
|
|
4351
4351
|
display: "grid",
|
|
4352
4352
|
gridTemplateColumns: "1fr auto 1fr",
|
|
@@ -4357,7 +4357,7 @@ var vo = (0, Z.jsx)(() => (0, Z.jsx)(Le, {
|
|
|
4357
4357
|
paddingRight: (e) => e.spacing(1)
|
|
4358
4358
|
},
|
|
4359
4359
|
children: [
|
|
4360
|
-
(0, Z.jsxs)(
|
|
4360
|
+
(0, Z.jsxs)(R, {
|
|
4361
4361
|
sx: {
|
|
4362
4362
|
display: "flex",
|
|
4363
4363
|
flexDirection: "row",
|
|
@@ -4365,7 +4365,7 @@ var vo = (0, Z.jsx)(() => (0, Z.jsx)(Le, {
|
|
|
4365
4365
|
justifyContent: "start",
|
|
4366
4366
|
gap: (e) => e.spacing(.5)
|
|
4367
4367
|
},
|
|
4368
|
-
children: [i, (0, Z.jsxs)(
|
|
4368
|
+
children: [i, (0, Z.jsxs)(R, {
|
|
4369
4369
|
sx: {
|
|
4370
4370
|
display: "flex",
|
|
4371
4371
|
flexDirection: "row",
|
|
@@ -4375,7 +4375,7 @@ var vo = (0, Z.jsx)(() => (0, Z.jsx)(Le, {
|
|
|
4375
4375
|
children: [o, e]
|
|
4376
4376
|
})]
|
|
4377
4377
|
}),
|
|
4378
|
-
(0, Z.jsx)(
|
|
4378
|
+
(0, Z.jsx)(R, {
|
|
4379
4379
|
sx: {
|
|
4380
4380
|
display: "flex",
|
|
4381
4381
|
flexDirection: "row",
|
|
@@ -4386,7 +4386,7 @@ var vo = (0, Z.jsx)(() => (0, Z.jsx)(Le, {
|
|
|
4386
4386
|
},
|
|
4387
4387
|
children: a
|
|
4388
4388
|
}),
|
|
4389
|
-
(0, Z.jsx)(
|
|
4389
|
+
(0, Z.jsx)(R, {
|
|
4390
4390
|
sx: {
|
|
4391
4391
|
display: "flex",
|
|
4392
4392
|
alignItems: "center",
|
|
@@ -4402,9 +4402,9 @@ var vo = (0, Z.jsx)(() => (0, Z.jsx)(Le, {
|
|
|
4402
4402
|
yo.displayName = "StudioToolbar";
|
|
4403
4403
|
var bo = (e, t) => {
|
|
4404
4404
|
let n = new URL(window.location.pathname, window.location.origin);
|
|
4405
|
-
e && n.searchParams.set("source", e), e && t && n.searchParams.set("title", t), window.open(n.toString(), "sheetxl-" +
|
|
4406
|
-
}, xo =
|
|
4407
|
-
|
|
4405
|
+
e && n.searchParams.set("source", e), e && t && n.searchParams.set("title", t), window.open(n.toString(), "sheetxl-" + o.uuidV4(), "popup=true");
|
|
4406
|
+
}, xo = Mn(d("studio:shortcutKeysDialog", () => import("./BInccbDEuHGg1a2y2.js")).load);
|
|
4407
|
+
kt(), Dt();
|
|
4408
4408
|
var So = /* @__PURE__ */ new Set(["ui"]), Co = (e) => {
|
|
4409
4409
|
let t = (e) => {
|
|
4410
4410
|
if (typeof e != "function") return e;
|
|
@@ -4415,7 +4415,7 @@ var So = /* @__PURE__ */ new Set(["ui"]), Co = (e) => {
|
|
|
4415
4415
|
}
|
|
4416
4416
|
}, n = (e, n) => {
|
|
4417
4417
|
let r = t(e);
|
|
4418
|
-
return typeof r == "string" ?
|
|
4418
|
+
return typeof r == "string" ? a(r, n, i.getActive()) : void 0;
|
|
4419
4419
|
}, r = [];
|
|
4420
4420
|
for (let i of e.names()) if (!So.has(i)) for (let a of e.keys(i)) {
|
|
4421
4421
|
let o = e.resolveDefinition(i, a);
|
|
@@ -4427,29 +4427,29 @@ var So = /* @__PURE__ */ new Set(["ui"]), Co = (e) => {
|
|
|
4427
4427
|
getDescription: () => n(o?.description, o?.params) ?? "",
|
|
4428
4428
|
getShortcut: () => t(o?.shortcut) ?? null,
|
|
4429
4429
|
getScope: () => i,
|
|
4430
|
-
getScopeLabel: () =>
|
|
4430
|
+
getScopeLabel: () => M.DefaultCommandCatalogService.getScopeLabel(i)
|
|
4431
4431
|
}
|
|
4432
4432
|
});
|
|
4433
4433
|
}
|
|
4434
4434
|
return { getAllCommands: () => r };
|
|
4435
4435
|
}, wo = (e) => {
|
|
4436
|
-
let { children: t, workbook: n, setWorkbook: r, workbookTitle:
|
|
4437
|
-
h.current =
|
|
4438
|
-
let g =
|
|
4439
|
-
let e =
|
|
4436
|
+
let { children: t, workbook: n, setWorkbook: r, workbookTitle: a, isDirty: o, refSave: s } = e, l = M.useCommandScope(), u = he(), { showModal: d } = xn(), m = N(), h = (0, X.useRef)(o);
|
|
4437
|
+
h.current = o;
|
|
4438
|
+
let g = P(() => {
|
|
4439
|
+
let e = l?.getRoot().getRegistry();
|
|
4440
4440
|
if (!e) return;
|
|
4441
|
-
let t =
|
|
4441
|
+
let t = d(xo, {
|
|
4442
4442
|
title: m("dialog.shortcutKeys.title"),
|
|
4443
4443
|
commands: Co(e),
|
|
4444
4444
|
onDone: () => t.hide(),
|
|
4445
4445
|
onLoadError: (e) => {
|
|
4446
|
-
t.destroy(),
|
|
4446
|
+
t.destroy(), u.showError(e);
|
|
4447
4447
|
}
|
|
4448
4448
|
});
|
|
4449
|
-
}, [
|
|
4449
|
+
}, [l, d]);
|
|
4450
4450
|
(0, X.useEffect)(() => {
|
|
4451
|
-
if (!
|
|
4452
|
-
let e =
|
|
4451
|
+
if (!l) return;
|
|
4452
|
+
let e = l.getRoot().contribution();
|
|
4453
4453
|
return function(e, t) {
|
|
4454
4454
|
let n = () => t.showShortcuts();
|
|
4455
4455
|
e.updateCommand("showKeyboardShortcuts", { callback: n }), e.updateCommand("help", { callback: n });
|
|
@@ -4462,11 +4462,11 @@ var So = /* @__PURE__ */ new Set(["ui"]), Co = (e) => {
|
|
|
4462
4462
|
window?.open(n);
|
|
4463
4463
|
} });
|
|
4464
4464
|
}(e, { showShortcuts: g }), () => e.remove();
|
|
4465
|
-
}, [
|
|
4466
|
-
let _ =
|
|
4465
|
+
}, [l, g]);
|
|
4466
|
+
let _ = Ot("(prefers-color-scheme: dark)"), { themeMode: v } = ae(), [y, b] = j(Ie.Mode, null), [x, S] = j(Ie.DarkGrid, !1), [C, w] = j(Ie.DarkImages, !1);
|
|
4467
4467
|
(0, X.useEffect)(() => {
|
|
4468
|
-
if (!
|
|
4469
|
-
let e =
|
|
4468
|
+
if (!l) return;
|
|
4469
|
+
let e = l.getRoot().contribution();
|
|
4470
4470
|
return function(e, t) {
|
|
4471
4471
|
e.updateCommand("themeMode", {
|
|
4472
4472
|
state: t.mode ?? null,
|
|
@@ -4495,7 +4495,7 @@ var So = /* @__PURE__ */ new Set(["ui"]), Co = (e) => {
|
|
|
4495
4495
|
setEnableDarkImages: w
|
|
4496
4496
|
}), () => e.remove();
|
|
4497
4497
|
}, [
|
|
4498
|
-
|
|
4498
|
+
l,
|
|
4499
4499
|
y,
|
|
4500
4500
|
v,
|
|
4501
4501
|
_,
|
|
@@ -4505,12 +4505,12 @@ var So = /* @__PURE__ */ new Set(["ui"]), Co = (e) => {
|
|
|
4505
4505
|
S,
|
|
4506
4506
|
w
|
|
4507
4507
|
]);
|
|
4508
|
-
let [T, E] =
|
|
4509
|
-
(0, X.useEffect)(() =>
|
|
4510
|
-
T && T !==
|
|
4508
|
+
let [T, E] = j(te.Active, null), [D, O] = (0, X.useState)(() => i.getActive());
|
|
4509
|
+
(0, X.useEffect)(() => i.addChangeListener(O), []), (0, X.useEffect)(() => {
|
|
4510
|
+
T && T !== i.getActive() && i.setActive(T);
|
|
4511
4511
|
}, [T]), (0, X.useEffect)(() => {
|
|
4512
|
-
if (!
|
|
4513
|
-
let e =
|
|
4512
|
+
if (!l) return;
|
|
4513
|
+
let e = l.getRoot().contribution();
|
|
4514
4514
|
return function(e, t) {
|
|
4515
4515
|
e.updateCommand("language", {
|
|
4516
4516
|
state: t.active,
|
|
@@ -4525,71 +4525,71 @@ var So = /* @__PURE__ */ new Set(["ui"]), Co = (e) => {
|
|
|
4525
4525
|
}
|
|
4526
4526
|
}), () => e.remove();
|
|
4527
4527
|
}, [
|
|
4528
|
-
|
|
4528
|
+
l,
|
|
4529
4529
|
D,
|
|
4530
4530
|
E
|
|
4531
4531
|
]);
|
|
4532
|
-
let { isFullscreenAvailable:
|
|
4532
|
+
let { isFullscreenAvailable: ee, isFullscreenEnabled: k, toggleFullscreen: A } = L();
|
|
4533
4533
|
(0, X.useEffect)(() => {
|
|
4534
|
-
if (!
|
|
4535
|
-
let e =
|
|
4534
|
+
if (!l) return;
|
|
4535
|
+
let e = l.getRoot().contribution();
|
|
4536
4536
|
return function(e, t) {
|
|
4537
4537
|
e.updateCommand("fullScreenToggle", {
|
|
4538
4538
|
state: t.isFullscreenEnabled,
|
|
4539
|
-
disabledReasons: t.isFullscreenAvailable ? [] : [
|
|
4539
|
+
disabledReasons: t.isFullscreenAvailable ? [] : [f("reason.fullscreenUnavailable")],
|
|
4540
4540
|
icon: t.isFullscreenEnabled ? "FullScreenOff" : "FullScreen",
|
|
4541
4541
|
callback: () => {
|
|
4542
4542
|
t.toggleFullscreen();
|
|
4543
4543
|
}
|
|
4544
4544
|
});
|
|
4545
4545
|
}(e, {
|
|
4546
|
-
isFullscreenAvailable:
|
|
4547
|
-
isFullscreenEnabled:
|
|
4548
|
-
toggleFullscreen:
|
|
4546
|
+
isFullscreenAvailable: ee,
|
|
4547
|
+
isFullscreenEnabled: k,
|
|
4548
|
+
toggleFullscreen: A
|
|
4549
4549
|
}), () => e.remove();
|
|
4550
4550
|
}, [
|
|
4551
|
-
|
|
4552
|
-
|
|
4553
|
-
|
|
4554
|
-
|
|
4551
|
+
l,
|
|
4552
|
+
ee,
|
|
4553
|
+
k,
|
|
4554
|
+
A
|
|
4555
4555
|
]);
|
|
4556
|
-
let
|
|
4556
|
+
let ne = Xe(!0);
|
|
4557
4557
|
return (0, X.useEffect)(() => {
|
|
4558
|
-
if (!
|
|
4559
|
-
let e =
|
|
4558
|
+
if (!l) return;
|
|
4559
|
+
let e = l.getRoot().contribution();
|
|
4560
4560
|
return function(e) {
|
|
4561
4561
|
e.updateCommand("protectWorkbook", {
|
|
4562
4562
|
tags: ["noTransaction", "noRepeat"],
|
|
4563
4563
|
callback: () => {
|
|
4564
4564
|
((e, t) => {
|
|
4565
|
-
|
|
4565
|
+
ne.activate(e, t);
|
|
4566
4566
|
})("manageProtection", { args: { tab: "workbook" } });
|
|
4567
4567
|
}
|
|
4568
4568
|
});
|
|
4569
4569
|
}(e), () => e.remove();
|
|
4570
|
-
}, [
|
|
4571
|
-
if (!
|
|
4572
|
-
let e =
|
|
4573
|
-
let { workbook: n, setWorkbook: r, workbookTitle:
|
|
4574
|
-
let r, i = [],
|
|
4570
|
+
}, [l, ne]), (0, X.useEffect)(() => {
|
|
4571
|
+
if (!l || !n) return;
|
|
4572
|
+
let e = l.getRoot().contribution(), t = function(e, t) {
|
|
4573
|
+
let { workbook: n, setWorkbook: r, workbookTitle: i = "export", isDirty: a, notifier: o, refSave: s } = t, l = !1, u = async (e = null, t = null, n = null) => {
|
|
4574
|
+
let r, i = [], a = {
|
|
4575
4575
|
source: e && typeof e != "string" ? e : null,
|
|
4576
4576
|
typedCreateWorkbookOptions: t ?? void 0,
|
|
4577
4577
|
onPassword: async ({ origin: e, validate: t }) => {
|
|
4578
|
-
let n = await
|
|
4579
|
-
title:
|
|
4580
|
-
description:
|
|
4578
|
+
let n = await o.showInput({
|
|
4579
|
+
title: p("dialog.password.title"),
|
|
4580
|
+
description: p("dialog.password.open.description", { name: e.getName() ?? "" }),
|
|
4581
4581
|
inputType: "password",
|
|
4582
4582
|
options: [{
|
|
4583
4583
|
id: "Open",
|
|
4584
|
-
label: () =>
|
|
4584
|
+
label: () => p("dialog.open")
|
|
4585
4585
|
}, "Cancel"],
|
|
4586
4586
|
defaultOption: "Open",
|
|
4587
4587
|
onValidateInput: async (e, n) => n === void 0 ? { valid: !0 } : e ? await t(e) ? { valid: !0 } : {
|
|
4588
4588
|
valid: !1,
|
|
4589
|
-
message:
|
|
4589
|
+
message: p("dialog.password.open.retry")
|
|
4590
4590
|
} : {
|
|
4591
4591
|
valid: !1,
|
|
4592
|
-
message:
|
|
4592
|
+
message: p("dialog.password.open.required")
|
|
4593
4593
|
}
|
|
4594
4594
|
});
|
|
4595
4595
|
return n?.option === "Open" ? n.input ?? null : null;
|
|
@@ -4598,13 +4598,13 @@ var So = /* @__PURE__ */ new Set(["ui"]), Co = (e) => {
|
|
|
4598
4598
|
i.push(e);
|
|
4599
4599
|
} }
|
|
4600
4600
|
};
|
|
4601
|
-
n && (
|
|
4601
|
+
n && (a.progress.onStart = n);
|
|
4602
4602
|
let s = -5;
|
|
4603
|
-
return
|
|
4604
|
-
...
|
|
4603
|
+
return z.read({
|
|
4604
|
+
...a,
|
|
4605
4605
|
progress: {
|
|
4606
4606
|
async onStart(e, t) {
|
|
4607
|
-
await
|
|
4607
|
+
await a?.progress?.onStart?.(e, t), r = await o?.showBusy?.(p("workbook.opening", { name: e?.getName() ?? "" })), t && r?.setProgress?.(0, t);
|
|
4608
4608
|
},
|
|
4609
4609
|
onProgress(e, t) {
|
|
4610
4610
|
if (!t) return;
|
|
@@ -4617,93 +4617,93 @@ var So = /* @__PURE__ */ new Set(["ui"]), Co = (e) => {
|
|
|
4617
4617
|
n - s < 5 || (s = n, r?.setProgress?.(e, t));
|
|
4618
4618
|
},
|
|
4619
4619
|
onComplete() {
|
|
4620
|
-
r?.(), i.length > 0 && (
|
|
4620
|
+
r?.(), i.length > 0 && (o.showMessage(p("workbook.importWarnings")), console.warn("Import warnings:\n" + i.join("\n")));
|
|
4621
4621
|
},
|
|
4622
4622
|
onWarning(e, t) {
|
|
4623
|
-
|
|
4623
|
+
a?.progress?.onWarning?.(e, t);
|
|
4624
4624
|
}
|
|
4625
4625
|
}
|
|
4626
4626
|
});
|
|
4627
|
-
},
|
|
4628
|
-
let
|
|
4627
|
+
}, d = async (e, t, n = !1, r) => {
|
|
4628
|
+
let a, s, c = {
|
|
4629
4629
|
format: t?.key,
|
|
4630
4630
|
progress: {
|
|
4631
4631
|
async onStart(e) {
|
|
4632
|
-
|
|
4632
|
+
a = await o?.showBusy?.(p("workbook.saving", { name: e?.getName() ?? "" }));
|
|
4633
4633
|
},
|
|
4634
4634
|
onComplete() {
|
|
4635
|
-
|
|
4635
|
+
a?.();
|
|
4636
4636
|
}
|
|
4637
4637
|
},
|
|
4638
4638
|
onWarnings: r ?? (async ({ warnings: e, origin: t, canCancel: n }) => {
|
|
4639
|
-
|
|
4640
|
-
let r =
|
|
4641
|
-
return n ? await
|
|
4639
|
+
a?.(), console.warn(`Not written to '${t.getName()}':\n${e.map((e) => ` ${e.message}`).join("\n")}`);
|
|
4640
|
+
let r = p("dialog.writeWarnings.title"), i = t.getFormat(), s = (i ? (await z.getWriteFormats({ search: i }))[0] : void 0)?.description ?? i ?? "", c = p("dialog.writeWarnings.keep");
|
|
4641
|
+
return n ? await o.showOptions({
|
|
4642
4642
|
title: r,
|
|
4643
|
-
type:
|
|
4644
|
-
description: `${
|
|
4643
|
+
type: ve.Warning,
|
|
4644
|
+
description: `${p("dialog.writeWarnings.confirm", { format: s })}\n\n${c}`,
|
|
4645
4645
|
options: [{
|
|
4646
4646
|
id: "Save",
|
|
4647
|
-
label: () =>
|
|
4647
|
+
label: () => p("dialog.save")
|
|
4648
4648
|
}, "Cancel"],
|
|
4649
4649
|
defaultOption: "Cancel"
|
|
4650
|
-
}) === "Save" && (
|
|
4650
|
+
}) === "Save" && (a = await o?.showBusy?.(p("workbook.saving", { name: t?.getName() ?? "" })), !0) : (o.showOptions({
|
|
4651
4651
|
title: r,
|
|
4652
|
-
type:
|
|
4653
|
-
description: `${
|
|
4652
|
+
type: ve.Warning,
|
|
4653
|
+
description: `${p("dialog.writeWarnings.saved", { format: s })}\n\n${c}`,
|
|
4654
4654
|
options: ["Ok"]
|
|
4655
4655
|
}), !0);
|
|
4656
4656
|
})
|
|
4657
4657
|
};
|
|
4658
4658
|
if (n) {
|
|
4659
|
-
let n = e.getOrigin(), r = t?.exts?.[0] ?? (n.getExtension() || "sxl"),
|
|
4660
|
-
s = await
|
|
4661
|
-
...
|
|
4659
|
+
let n = e.getOrigin(), r = t?.exts?.[0] ?? (n.getExtension() || "sxl"), a = `${i || n.getName() || p("workbook.defaultName")}.${r}`;
|
|
4660
|
+
s = await z.writeAs(e, a, {
|
|
4661
|
+
...c,
|
|
4662
4662
|
prompt: !0
|
|
4663
4663
|
});
|
|
4664
|
-
} else s = await
|
|
4664
|
+
} else s = await z.write(e, void 0, c);
|
|
4665
4665
|
return s;
|
|
4666
4666
|
}, m = null;
|
|
4667
4667
|
return e.updateCommand("newWorkbook", { callback: async (e) => {
|
|
4668
|
-
let t =
|
|
4668
|
+
let t = z.canRead() && !a();
|
|
4669
4669
|
e?.source ? t && m ? await m({
|
|
4670
4670
|
url: e.source,
|
|
4671
4671
|
title: e.title
|
|
4672
4672
|
}) : bo(e.source, e.title) : t ? r({}) : bo();
|
|
4673
4673
|
} }), e.updateCommand("closeWorkbook", { callback: async () => {
|
|
4674
|
-
|
|
4675
|
-
title:
|
|
4676
|
-
description:
|
|
4674
|
+
a() && await o.showOptions({
|
|
4675
|
+
title: p("dialog.confirm.title"),
|
|
4676
|
+
description: p("dialog.unsavedChanges"),
|
|
4677
4677
|
options: [{
|
|
4678
4678
|
id: "Close",
|
|
4679
|
-
label: () =>
|
|
4679
|
+
label: () => p("dialog.close")
|
|
4680
4680
|
}, "Cancel"],
|
|
4681
4681
|
defaultOption: "Cancel"
|
|
4682
4682
|
}) !== "Close" || window.close();
|
|
4683
4683
|
} }), (async () => {
|
|
4684
|
-
let t = await
|
|
4685
|
-
if (
|
|
4686
|
-
let
|
|
4687
|
-
if (
|
|
4684
|
+
let t = await z.getWriteFormats();
|
|
4685
|
+
if (l) return;
|
|
4686
|
+
let i = z.canWrite(), h = z.canRead();
|
|
4687
|
+
if (i) {
|
|
4688
4688
|
let r = (e) => {
|
|
4689
4689
|
let r = e ? t.find((t) => t.key === e) : void 0;
|
|
4690
|
-
|
|
4690
|
+
d(n, r, !0).catch((e) => o.showError(e));
|
|
4691
4691
|
};
|
|
4692
4692
|
e.updateCommand("saveWorkbook", { callback: () => {
|
|
4693
|
-
|
|
4694
|
-
} }),
|
|
4693
|
+
d(n, void 0, !1).catch((e) => o.showError(e));
|
|
4694
|
+
} }), s && (s.current = (e) => d(n, void 0, !1, e?.onWarnings)), e.updateCommand("saveWorkbookAs", { callback: (e) => {
|
|
4695
4695
|
r(e);
|
|
4696
4696
|
} });
|
|
4697
4697
|
for (let n of t) {
|
|
4698
4698
|
let t = n.key;
|
|
4699
4699
|
e.updateCommand(`saveWorkbookAs${t}`, {
|
|
4700
|
-
label: () =>
|
|
4700
|
+
label: () => p("command.saveAsFormat.label", { format: n.description }),
|
|
4701
4701
|
groupLabels: {
|
|
4702
|
-
workbook: () =>
|
|
4703
|
-
saveWorkbookOptions: () =>
|
|
4702
|
+
workbook: () => p("command.saveAsFormat.workbook", { format: n.description }),
|
|
4703
|
+
saveWorkbookOptions: () => p("command.saveAsFormat.compact", { format: n.description })
|
|
4704
4704
|
},
|
|
4705
4705
|
tags: n.tags,
|
|
4706
|
-
description: () =>
|
|
4706
|
+
description: () => p("command.saveAsFormat", { format: n.description }),
|
|
4707
4707
|
icon: t === "CSV" ? "FileDownloadAsCSV" : t === "Excel" ? "FileDownloadAsExcel" : "FileDownloadAsSheet",
|
|
4708
4708
|
callback: () => {
|
|
4709
4709
|
r(t);
|
|
@@ -4717,46 +4717,46 @@ var So = /* @__PURE__ */ new Set(["ui"]), Co = (e) => {
|
|
|
4717
4717
|
...n.options
|
|
4718
4718
|
} };
|
|
4719
4719
|
try {
|
|
4720
|
-
let r = "",
|
|
4720
|
+
let r = "", i = await u(e, t, async (e) => {
|
|
4721
4721
|
r = e?.getName() ?? "";
|
|
4722
4722
|
});
|
|
4723
|
-
if (!
|
|
4724
|
-
let
|
|
4723
|
+
if (!i) return;
|
|
4724
|
+
let a = i.getSheets().getItems();
|
|
4725
4725
|
await n.doBatch(async () => {
|
|
4726
|
-
for (let e = 0; e <
|
|
4727
|
-
let t =
|
|
4726
|
+
for (let e = 0; e < a.length; e++) {
|
|
4727
|
+
let t = a[e], i = a.length === 1 ? r : t.getName(), o = n.findValidSheetName(i);
|
|
4728
4728
|
await n.getSheets().add({
|
|
4729
|
-
name:
|
|
4730
|
-
autoSelect: e ===
|
|
4729
|
+
name: o,
|
|
4730
|
+
autoSelect: e === a.length - 1
|
|
4731
4731
|
}).getEntireRange().copyFrom(t.getEntireRange());
|
|
4732
4732
|
}
|
|
4733
|
-
},
|
|
4733
|
+
}, f("op.importData")), i.close();
|
|
4734
4734
|
} catch (e) {
|
|
4735
|
-
|
|
4735
|
+
o.showError(e);
|
|
4736
4736
|
}
|
|
4737
4737
|
};
|
|
4738
4738
|
if (e.updateCommand("insertDataFromFile", {
|
|
4739
4739
|
tags: ["noTransaction", "noRepeat"],
|
|
4740
4740
|
callback: async (e = null) => {
|
|
4741
4741
|
let t = e;
|
|
4742
|
-
if (t ||
|
|
4743
|
-
let e = await
|
|
4744
|
-
return
|
|
4742
|
+
if (t || z.canRead() || (t = await (async () => {
|
|
4743
|
+
let e = await z.getReadFormats(), t = [...new Set(e.flatMap((e) => e.exts))].map((e) => `.${e}`);
|
|
4744
|
+
return c.openFileDialog(t.length ? t.join(",") : "*.*");
|
|
4745
4745
|
})(), t)) return g(t);
|
|
4746
4746
|
}
|
|
4747
4747
|
}), e.updateCommand("insertDataFromURL", {
|
|
4748
4748
|
tags: ["noTransaction", "noRepeat"],
|
|
4749
4749
|
callback: async (e) => {
|
|
4750
4750
|
if (!e) {
|
|
4751
|
-
let t = await
|
|
4752
|
-
title:
|
|
4753
|
-
description:
|
|
4754
|
-
inputLabel:
|
|
4751
|
+
let t = await o.showInput({
|
|
4752
|
+
title: p("dialog.importFromWeb.title"),
|
|
4753
|
+
description: p("dialog.importFromWeb.description"),
|
|
4754
|
+
inputLabel: p("dialog.webAddress.inputLabel"),
|
|
4755
4755
|
initialValue: "https://www.sheetxl.com/docs/examples/financial-calculators.xlsx",
|
|
4756
4756
|
propsInput: { style: { minWidth: "440px" } },
|
|
4757
4757
|
options: [{
|
|
4758
4758
|
id: "Import",
|
|
4759
|
-
label: () =>
|
|
4759
|
+
label: () => p("dialog.import")
|
|
4760
4760
|
}]
|
|
4761
4761
|
});
|
|
4762
4762
|
if (t.option !== "Import") return;
|
|
@@ -4768,16 +4768,16 @@ var So = /* @__PURE__ */ new Set(["ui"]), Co = (e) => {
|
|
|
4768
4768
|
let n = await t.blob(), r = decodeURIComponent(e.split("/").pop()?.split("?")[0] || "") || "import.xlsx";
|
|
4769
4769
|
await g(new File([n], r, { type: n.type }));
|
|
4770
4770
|
} catch (e) {
|
|
4771
|
-
|
|
4771
|
+
o.showError(e);
|
|
4772
4772
|
}
|
|
4773
4773
|
}
|
|
4774
4774
|
}), h) {
|
|
4775
|
-
let t = async () => !
|
|
4776
|
-
title:
|
|
4777
|
-
description:
|
|
4775
|
+
let t = async () => !a() || await o.showOptions({
|
|
4776
|
+
title: p("dialog.confirm.title"),
|
|
4777
|
+
description: p("dialog.unsavedChanges"),
|
|
4778
4778
|
options: [{
|
|
4779
4779
|
id: "Open",
|
|
4780
|
-
label: () =>
|
|
4780
|
+
label: () => p("dialog.open")
|
|
4781
4781
|
}, "Cancel"],
|
|
4782
4782
|
defaultOption: "Cancel"
|
|
4783
4783
|
}) === "Open", i = async (e = null) => {
|
|
@@ -4786,11 +4786,11 @@ var So = /* @__PURE__ */ new Set(["ui"]), Co = (e) => {
|
|
|
4786
4786
|
...n.options
|
|
4787
4787
|
} };
|
|
4788
4788
|
try {
|
|
4789
|
-
let n = await
|
|
4789
|
+
let n = await u(e, t);
|
|
4790
4790
|
if (!n) return;
|
|
4791
4791
|
r(n);
|
|
4792
4792
|
} catch (e) {
|
|
4793
|
-
|
|
4793
|
+
o.showError(e);
|
|
4794
4794
|
}
|
|
4795
4795
|
};
|
|
4796
4796
|
e.updateCommand("openWorkbook", { callback: async (e = null) => {
|
|
@@ -4798,15 +4798,15 @@ var So = /* @__PURE__ */ new Set(["ui"]), Co = (e) => {
|
|
|
4798
4798
|
} }), m = async (e) => {
|
|
4799
4799
|
let n = typeof e == "string" ? e : e?.url, r = typeof e == "string" ? void 0 : e?.title;
|
|
4800
4800
|
if (!n) {
|
|
4801
|
-
let e = await
|
|
4802
|
-
title:
|
|
4803
|
-
description:
|
|
4804
|
-
inputLabel:
|
|
4801
|
+
let e = await o.showInput({
|
|
4802
|
+
title: p("dialog.openFromWeb.title"),
|
|
4803
|
+
description: p("dialog.openFromWeb.description"),
|
|
4804
|
+
inputLabel: p("dialog.webAddress.inputLabel"),
|
|
4805
4805
|
initialValue: "https://www.sheetxl.com/docs/examples/financial-calculators.xlsx",
|
|
4806
4806
|
propsInput: { style: { minWidth: "440px" } },
|
|
4807
4807
|
options: [{
|
|
4808
4808
|
id: "Open",
|
|
4809
|
-
label: () =>
|
|
4809
|
+
label: () => p("dialog.open")
|
|
4810
4810
|
}]
|
|
4811
4811
|
});
|
|
4812
4812
|
if (e.option !== "Open") return;
|
|
@@ -4818,36 +4818,36 @@ var So = /* @__PURE__ */ new Set(["ui"]), Co = (e) => {
|
|
|
4818
4818
|
let t = await e.blob(), a = decodeURIComponent(n.split("/").pop()?.split("?")[0] || "") || "workbook.xlsx", o = a.match(/\.[^/.]+$/)?.[0] ?? "", s = r ? `${r}${o}` : a;
|
|
4819
4819
|
await i(new File([t], s, { type: t.type }));
|
|
4820
4820
|
} catch (e) {
|
|
4821
|
-
|
|
4821
|
+
o.showError(e);
|
|
4822
4822
|
}
|
|
4823
4823
|
}, e.updateCommand("openWorkbookFromUrl", { callback: m });
|
|
4824
4824
|
}
|
|
4825
4825
|
})(), () => {
|
|
4826
|
-
|
|
4826
|
+
l = !0, s && (s.current = null);
|
|
4827
4827
|
};
|
|
4828
4828
|
}(e, {
|
|
4829
4829
|
workbook: n,
|
|
4830
4830
|
setWorkbook: r,
|
|
4831
|
-
workbookTitle:
|
|
4831
|
+
workbookTitle: a ?? void 0,
|
|
4832
4832
|
isDirty: () => h.current?.() ?? !1,
|
|
4833
|
-
notifier:
|
|
4834
|
-
refSave:
|
|
4833
|
+
notifier: u,
|
|
4834
|
+
refSave: s
|
|
4835
4835
|
});
|
|
4836
4836
|
return () => {
|
|
4837
4837
|
t(), e.remove();
|
|
4838
4838
|
};
|
|
4839
4839
|
}, [
|
|
4840
|
-
|
|
4840
|
+
l,
|
|
4841
4841
|
n,
|
|
4842
4842
|
r,
|
|
4843
|
-
|
|
4844
|
-
|
|
4845
|
-
|
|
4843
|
+
a,
|
|
4844
|
+
u,
|
|
4845
|
+
s
|
|
4846
4846
|
]), t;
|
|
4847
4847
|
};
|
|
4848
4848
|
wo.displayName = "StudioCommandProvider";
|
|
4849
4849
|
var To = ({ renderWorkbook: e }) => {
|
|
4850
|
-
let t =
|
|
4850
|
+
let t = M.useCommandResolver(), n = (0, X.useRef)(null), r = N(), [i, a] = (0, X.useState)(null), o = (0, X.useCallback)((e) => {
|
|
4851
4851
|
let n = e.dataTransfer;
|
|
4852
4852
|
if (t && n) {
|
|
4853
4853
|
if (e.type === "dragenter" || e.type === "dragover") {
|
|
@@ -4863,7 +4863,7 @@ var To = ({ renderWorkbook: e }) => {
|
|
|
4863
4863
|
}
|
|
4864
4864
|
e.preventDefault();
|
|
4865
4865
|
}
|
|
4866
|
-
}, [t]), s =
|
|
4866
|
+
}, [t]), s = P((e) => {
|
|
4867
4867
|
e.preventDefault();
|
|
4868
4868
|
let r = i;
|
|
4869
4869
|
if (a(null), r && t && (e.stopPropagation(), e.dataTransfer.files && e.dataTransfer.files.length > 0)) {
|
|
@@ -4888,7 +4888,7 @@ var To = ({ renderWorkbook: e }) => {
|
|
|
4888
4888
|
} }
|
|
4889
4889
|
});
|
|
4890
4890
|
} else {
|
|
4891
|
-
if (!
|
|
4891
|
+
if (!z.canRead()) return;
|
|
4892
4892
|
let n = e.dataTransfer.items?.[0], i = typeof window < "u" && window.isSecureContext ? n?.getAsFileSystemHandle?.() : void 0;
|
|
4893
4893
|
i ? i.then((e) => t.execute("openWorkbook", e?.kind === "file" ? e : r)).catch(() => t.execute("openWorkbook", r)) : t.execute("openWorkbook", r);
|
|
4894
4894
|
}
|
|
@@ -4896,7 +4896,7 @@ var To = ({ renderWorkbook: e }) => {
|
|
|
4896
4896
|
}, [t, i]), c = (0, X.useMemo)(() => {
|
|
4897
4897
|
if (!i) return null;
|
|
4898
4898
|
let e = i === "insertImage";
|
|
4899
|
-
return (0, Z.jsx)(
|
|
4899
|
+
return (0, Z.jsx)(R, {
|
|
4900
4900
|
className: "drop-overlay",
|
|
4901
4901
|
sx: {
|
|
4902
4902
|
position: "absolute",
|
|
@@ -4907,12 +4907,12 @@ var To = ({ renderWorkbook: e }) => {
|
|
|
4907
4907
|
display: "flex",
|
|
4908
4908
|
justifyContent: "center",
|
|
4909
4909
|
alignItems: "center",
|
|
4910
|
-
backgroundColor: (e) =>
|
|
4910
|
+
backgroundColor: (e) => ue(e.palette.primary.main, .46),
|
|
4911
4911
|
outline: (e) => `2px dashed ${e.palette.primary.main}`,
|
|
4912
4912
|
outlineOffset: "-6px",
|
|
4913
4913
|
borderRadius: 2
|
|
4914
4914
|
},
|
|
4915
|
-
children: (0, Z.jsxs)(
|
|
4915
|
+
children: (0, Z.jsxs)(st, {
|
|
4916
4916
|
elevation: 6,
|
|
4917
4917
|
sx: {
|
|
4918
4918
|
display: "flex",
|
|
@@ -4924,11 +4924,11 @@ var To = ({ renderWorkbook: e }) => {
|
|
|
4924
4924
|
color: "text.primary",
|
|
4925
4925
|
"& .drop-overlay-icon": { color: "primary.main" }
|
|
4926
4926
|
},
|
|
4927
|
-
children: [(0, Z.jsx)(
|
|
4927
|
+
children: [(0, Z.jsx)(O, {
|
|
4928
4928
|
iconKey: e ? "InsertImage" : "FileOpen",
|
|
4929
4929
|
className: "drop-overlay-icon",
|
|
4930
4930
|
size: 32
|
|
4931
|
-
}), (0, Z.jsx)(
|
|
4931
|
+
}), (0, Z.jsx)(G, {
|
|
4932
4932
|
variant: "h6",
|
|
4933
4933
|
component: "span",
|
|
4934
4934
|
children: r(e ? "drop.insertImage" : "drop.open")
|
|
@@ -4951,7 +4951,7 @@ var To = ({ renderWorkbook: e }) => {
|
|
|
4951
4951
|
}), c] });
|
|
4952
4952
|
}, Eo = (0, X.memo)((e) => {
|
|
4953
4953
|
let { workbook: t, setWorkbook: n, refDocumentTitle: r, titleWorkbook: i, setWorkbookTitle: a, isDirty: o, initialCommandAnchor: s, renderWorkbook: c, refSave: l } = e;
|
|
4954
|
-
return (0, Z.jsx)(
|
|
4954
|
+
return (0, Z.jsx)(He, {
|
|
4955
4955
|
initialAnchor: s,
|
|
4956
4956
|
children: (0, Z.jsx)(wo, {
|
|
4957
4957
|
workbook: t,
|
|
@@ -4965,22 +4965,22 @@ var To = ({ renderWorkbook: e }) => {
|
|
|
4965
4965
|
});
|
|
4966
4966
|
Eo.displayName = "CommandsWrapper";
|
|
4967
4967
|
var Do = {
|
|
4968
|
-
sort:
|
|
4969
|
-
hyperlink:
|
|
4970
|
-
comments:
|
|
4971
|
-
find:
|
|
4972
|
-
tableNew:
|
|
4973
|
-
namedDetails:
|
|
4974
|
-
insertFunction:
|
|
4975
|
-
resizeHeader:
|
|
4976
|
-
fillSeries:
|
|
4977
|
-
workbookStatistics:
|
|
4978
|
-
password:
|
|
4968
|
+
sort: d("studio:sortDialog", () => import("./BNSYILHKGtNTW6AH2.js"), { tier: "common" }).load,
|
|
4969
|
+
hyperlink: d("studio:hyperlinkDialog", () => import("./ByMjPzoTrB6veNzc2.js"), { tier: "common" }).load,
|
|
4970
|
+
comments: d("studio:commentsDialog", () => import("./3o0o7-MzWgSJRADP2.js"), { tier: "common" }).load,
|
|
4971
|
+
find: d("studio:findReplaceWindow", () => import("./61OH_HiXgmNuRUDx2.js"), { tier: "common" }).load,
|
|
4972
|
+
tableNew: d("studio:tableNewDialog", () => import("./DLBKxOA2T_WJvvvH2.js"), { tier: "common" }).load,
|
|
4973
|
+
namedDetails: d("studio:namedReferenceDialog", () => import("./C1HfU9WnOyE_81Y22.js")).load,
|
|
4974
|
+
insertFunction: d("studio:insertFunctionDialog", () => import("./BljA9tG92oDDEqjC2.js"), { tier: "common" }).load,
|
|
4975
|
+
resizeHeader: d("studio:resizeHeaderDialog", () => import("./CX7_0zQyYWqVfYUE2.js")).load,
|
|
4976
|
+
fillSeries: d("studio:fillSeriesDialog", () => import("./CZuu-bOdg704oDMV2.js")).load,
|
|
4977
|
+
workbookStatistics: d("studio:workbookStatisticsDialog", () => import("./BEcgIVa19rKPTwlt2.js")).load,
|
|
4978
|
+
password: d("studio:passwordDialog", () => import("./DE2W5y4QJln8ofNW2.js").then((e) => e.t)).load
|
|
4979
4979
|
}, Oo = ["find"], ko = (0, X.memo)((e) => {
|
|
4980
|
-
let { children: t } = e, n = ho(), r = n ? n.enqueueSnackbar : () => {}, i = n ? n.closeSnackbar : () => {}, a = (0, X.useRef)(/* @__PURE__ */ new Set()),
|
|
4980
|
+
let { children: t } = e, n = ho(), r = n ? n.enqueueSnackbar : () => {}, i = n ? n.closeSnackbar : () => {}, a = (0, X.useRef)(/* @__PURE__ */ new Set()), s = (0, X.useRef)(null), c = (0, X.useRef)(null), [l, d] = (0, X.useState)({
|
|
4981
4981
|
label: null,
|
|
4982
4982
|
progress: null
|
|
4983
|
-
}), f =
|
|
4983
|
+
}), f = N(), p = o.EmptyObject, m = An(p), h = En(p), g = kn(p), _ = (0, X.useRef)(!1);
|
|
4984
4984
|
(0, X.useEffect)(() => {
|
|
4985
4985
|
if (_.current) return;
|
|
4986
4986
|
_.current = !0;
|
|
@@ -4990,7 +4990,7 @@ var Do = {
|
|
|
4990
4990
|
return () => n(r);
|
|
4991
4991
|
}, []);
|
|
4992
4992
|
let v = (0, X.useRef)(/* @__PURE__ */ new Set());
|
|
4993
|
-
return (0, Z.jsxs)(
|
|
4993
|
+
return (0, Z.jsxs)(xe, {
|
|
4994
4994
|
notifier: (0, X.useMemo)(() => {
|
|
4995
4995
|
let e = (e, t) => {
|
|
4996
4996
|
if (t?.onceKey) {
|
|
@@ -4999,16 +4999,16 @@ var Do = {
|
|
|
4999
4999
|
e.add(t.onceKey), v.current = e;
|
|
5000
5000
|
}
|
|
5001
5001
|
let n = {
|
|
5002
|
-
variant: t?.type ??
|
|
5002
|
+
variant: t?.type ?? ve.Info,
|
|
5003
5003
|
anchorOrigin: {
|
|
5004
5004
|
vertical: "top",
|
|
5005
5005
|
horizontal: "center"
|
|
5006
5006
|
},
|
|
5007
5007
|
preventDuplicate: t?.preventDuplicate,
|
|
5008
|
-
persist: t?.persist ?? t?.type ===
|
|
5009
|
-
action: (e) => (0, Z.jsx)(
|
|
5008
|
+
persist: t?.persist ?? t?.type === ve.Error,
|
|
5009
|
+
action: (e) => (0, Z.jsx)(rt, {
|
|
5010
5010
|
onClick: () => i(e),
|
|
5011
|
-
children: (0, Z.jsx)(
|
|
5011
|
+
children: (0, Z.jsx)(O, { iconKey: "Cancel" })
|
|
5012
5012
|
})
|
|
5013
5013
|
};
|
|
5014
5014
|
t?.enqueueProps && Object.assign(n, t.enqueueProps), e || console.log("message is 'null'", t), r(e ?? "Alert", n);
|
|
@@ -5020,8 +5020,8 @@ var Do = {
|
|
|
5020
5020
|
...t,
|
|
5021
5021
|
label: e
|
|
5022
5022
|
});
|
|
5023
|
-
let r =
|
|
5024
|
-
a.current.delete(n) && (a.current.size > 0 || (
|
|
5023
|
+
let r = k(() => {
|
|
5024
|
+
a.current.delete(n) && (a.current.size > 0 || (Dn(s.current), c.current = null, d((e) => e.label === null && e.progress === null ? e : {
|
|
5025
5025
|
label: null,
|
|
5026
5026
|
progress: null
|
|
5027
5027
|
})));
|
|
@@ -5032,11 +5032,11 @@ var Do = {
|
|
|
5032
5032
|
progress: n
|
|
5033
5033
|
});
|
|
5034
5034
|
}, (e) => {
|
|
5035
|
-
c.current = e, typeof e == "string" ?
|
|
5035
|
+
c.current = e, typeof e == "string" ? On(s.current, e) : d((t) => ({
|
|
5036
5036
|
...t,
|
|
5037
5037
|
label: e
|
|
5038
5038
|
}));
|
|
5039
|
-
}), i =
|
|
5039
|
+
}), i = On(s.current, typeof e == "string" ? e : void 0);
|
|
5040
5040
|
return i ? i.then(() => r) : r;
|
|
5041
5041
|
},
|
|
5042
5042
|
showWindow: (e, t) => {
|
|
@@ -5051,25 +5051,25 @@ var Do = {
|
|
|
5051
5051
|
showOptions: h,
|
|
5052
5052
|
showInput: g,
|
|
5053
5053
|
showError: (t) => {
|
|
5054
|
-
let n, r =
|
|
5055
|
-
typeof t == "string" ? i = t : t instanceof Error && (n = t, t.message && (i = f(t.message))), t instanceof
|
|
5054
|
+
let n, r = ve.Error, i = f("error.unknown");
|
|
5055
|
+
typeof t == "string" ? i = t : t instanceof Error && (n = t, t.message && (i = f(t.message))), t instanceof u && (r = ve.Info), e(i, {
|
|
5056
5056
|
type: r,
|
|
5057
5057
|
enqueueProps: { error: n }
|
|
5058
5058
|
});
|
|
5059
5059
|
}
|
|
5060
|
-
}, n = new
|
|
5060
|
+
}, n = new Ce();
|
|
5061
5061
|
return n.setOverrides(t), n;
|
|
5062
5062
|
}, [f]),
|
|
5063
|
-
children: [(0, X.useMemo)(() => (0, Z.jsx)(
|
|
5064
|
-
ref:
|
|
5063
|
+
children: [(0, X.useMemo)(() => (0, Z.jsx)(jn, {
|
|
5064
|
+
ref: s,
|
|
5065
5065
|
autoStart: !1,
|
|
5066
|
-
icon: (0, Z.jsx)(
|
|
5066
|
+
icon: (0, Z.jsx)(Tn, { sx: {
|
|
5067
5067
|
transform: "scale(0.7)",
|
|
5068
5068
|
marginLeft: "-6px"
|
|
5069
5069
|
} }),
|
|
5070
5070
|
panel: !0,
|
|
5071
|
-
label:
|
|
5072
|
-
progress:
|
|
5071
|
+
label: l.label ?? (typeof c.current == "string" ? c.current : void 0),
|
|
5072
|
+
progress: l.progress,
|
|
5073
5073
|
sx: {
|
|
5074
5074
|
position: "absolute",
|
|
5075
5075
|
left: "0",
|
|
@@ -5079,17 +5079,17 @@ var Do = {
|
|
|
5079
5079
|
zIndex: "9999",
|
|
5080
5080
|
pointerEvents: "none"
|
|
5081
5081
|
}
|
|
5082
|
-
}), [
|
|
5082
|
+
}), [l.label, l.progress]), t]
|
|
5083
5083
|
});
|
|
5084
5084
|
});
|
|
5085
5085
|
ko.displayName = "StudioNotifierProvider";
|
|
5086
5086
|
var Ao = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.2)))", jo = (0, X.memo)((0, X.forwardRef)((e, t) => {
|
|
5087
|
-
let { children: n, title: r, taskPanes: i, onSelect: a, selected: o, registry: s =
|
|
5087
|
+
let { children: n, title: r, taskPanes: i, onSelect: a, selected: o, registry: s = et, style: c, iconsOnly: l, side: u = "right", className: d, ...f } = e, p = u !== "right", m = (0, X.useMemo)(() => i.map((t) => {
|
|
5088
5088
|
let n = s.getRegisteredTaskPane(t);
|
|
5089
5089
|
if (!n) return null;
|
|
5090
5090
|
let r = n.getIcon?.();
|
|
5091
|
-
typeof r == "string" && (r = (0, Z.jsx)(
|
|
5092
|
-
let i = t === o, a = r ? (0, Z.jsx)(
|
|
5091
|
+
typeof r == "string" && (r = (0, Z.jsx)(O, { iconKey: r }));
|
|
5092
|
+
let i = t === o, a = r ? (0, Z.jsx)(R, {
|
|
5093
5093
|
sx: {
|
|
5094
5094
|
display: "inline-block",
|
|
5095
5095
|
transform: p ? "rotate(-90deg)" : "rotate(90deg)",
|
|
@@ -5097,20 +5097,20 @@ var Ao = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
5097
5097
|
color: (e) => e.palette.text.secondary
|
|
5098
5098
|
},
|
|
5099
5099
|
children: r
|
|
5100
|
-
}) : null, c = !r || !l && i, u = (0, Z.jsx)(
|
|
5100
|
+
}) : null, c = !r || !l && i, u = (0, Z.jsx)(R, {
|
|
5101
5101
|
sx: {
|
|
5102
5102
|
display: "grid",
|
|
5103
5103
|
gridTemplateColumns: c ? "1fr" : "0fr",
|
|
5104
5104
|
opacity: +!!c,
|
|
5105
5105
|
transition: (e) => e.transitions.create(["grid-template-columns", "opacity"], { duration: e.transitions.duration.short })
|
|
5106
5106
|
},
|
|
5107
|
-
children: (0, Z.jsx)(
|
|
5107
|
+
children: (0, Z.jsx)(R, {
|
|
5108
5108
|
sx: {
|
|
5109
5109
|
overflow: "hidden",
|
|
5110
5110
|
minWidth: 0,
|
|
5111
5111
|
minHeight: 0
|
|
5112
5112
|
},
|
|
5113
|
-
children: (0, Z.jsx)(
|
|
5113
|
+
children: (0, Z.jsx)(G, {
|
|
5114
5114
|
component: "div",
|
|
5115
5115
|
sx: {
|
|
5116
5116
|
textTransform: "none",
|
|
@@ -5123,13 +5123,13 @@ var Ao = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
5123
5123
|
})
|
|
5124
5124
|
})
|
|
5125
5125
|
});
|
|
5126
|
-
return (0, Z.jsx)(
|
|
5126
|
+
return (0, Z.jsx)(Pt, {
|
|
5127
5127
|
value: t,
|
|
5128
|
-
label: (0, Z.jsx)(
|
|
5128
|
+
label: (0, Z.jsx)(dt, {
|
|
5129
5129
|
disableInteractive: !0,
|
|
5130
5130
|
title: n.getTitle() ?? "",
|
|
5131
5131
|
placement: "left-start",
|
|
5132
|
-
children: (0, Z.jsxs)(
|
|
5132
|
+
children: (0, Z.jsxs)(R, {
|
|
5133
5133
|
sx: {
|
|
5134
5134
|
padding: "0px 0px",
|
|
5135
5135
|
writingMode: p ? "vertical-lr" : "vertical-rl",
|
|
@@ -5159,10 +5159,10 @@ var Ao = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
5159
5159
|
s,
|
|
5160
5160
|
p,
|
|
5161
5161
|
l,
|
|
5162
|
-
|
|
5162
|
+
_e()
|
|
5163
5163
|
]);
|
|
5164
|
-
return (0, Z.jsx)(
|
|
5165
|
-
ref:
|
|
5164
|
+
return (0, Z.jsx)(R, {
|
|
5165
|
+
ref: be(t, () => ({ isTaskPaneStrip: () => !0 }), []),
|
|
5166
5166
|
className: (0, X.useMemo)(() => Fn("taskpane-strip", d), [d]),
|
|
5167
5167
|
sx: {
|
|
5168
5168
|
paddingLeft: p ? void 0 : "2px",
|
|
@@ -5171,7 +5171,7 @@ var Ao = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
5171
5171
|
...c
|
|
5172
5172
|
},
|
|
5173
5173
|
...f,
|
|
5174
|
-
children: (0, Z.jsx)(
|
|
5174
|
+
children: (0, Z.jsx)(At, {
|
|
5175
5175
|
orientation: "vertical",
|
|
5176
5176
|
variant: "scrollable",
|
|
5177
5177
|
value: o,
|
|
@@ -5190,8 +5190,8 @@ var Ao = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
5190
5190
|
})
|
|
5191
5191
|
});
|
|
5192
5192
|
})), Mo = (e) => {
|
|
5193
|
-
let { title: t, icon: n, onClose: r, readOnly: i, focused: a, ...o } = e, s = (0, X.useRef)(null), c =
|
|
5194
|
-
return (0, Z.jsx)(
|
|
5193
|
+
let { title: t, icon: n, onClose: r, readOnly: i, focused: a, ...o } = e, s = (0, X.useRef)(null), c = N();
|
|
5194
|
+
return (0, Z.jsx)(at, {
|
|
5195
5195
|
className: Fn({ "Mui-selected": a }),
|
|
5196
5196
|
sx: {
|
|
5197
5197
|
display: "flex",
|
|
@@ -5206,11 +5206,11 @@ var Ao = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
5206
5206
|
opacity: 1,
|
|
5207
5207
|
transitionDuration: (e) => e.transitions.duration.shortest / 2 + "ms"
|
|
5208
5208
|
},
|
|
5209
|
-
backgroundColor: (e) =>
|
|
5209
|
+
backgroundColor: (e) => ue(e.palette.action.hover, .03),
|
|
5210
5210
|
borderBottom: `solid ${Ao} 1px`
|
|
5211
5211
|
},
|
|
5212
5212
|
...o,
|
|
5213
|
-
children: (0, Z.jsxs)(
|
|
5213
|
+
children: (0, Z.jsxs)(R, {
|
|
5214
5214
|
sx: {
|
|
5215
5215
|
display: "flex",
|
|
5216
5216
|
flex: "1 1 10%",
|
|
@@ -5221,15 +5221,15 @@ var Ao = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
5221
5221
|
marginLeft: (e) => e.spacing(1),
|
|
5222
5222
|
marginRight: (e) => e.spacing(1)
|
|
5223
5223
|
},
|
|
5224
|
-
children: [(0, Z.jsx)(
|
|
5224
|
+
children: [(0, Z.jsx)(R, {
|
|
5225
5225
|
sx: {
|
|
5226
5226
|
flex: "1 1 100%",
|
|
5227
5227
|
paddingLeft: (e) => e.spacing(1)
|
|
5228
5228
|
},
|
|
5229
5229
|
children: t
|
|
5230
|
-
}), (0, Z.jsx)(
|
|
5230
|
+
}), (0, Z.jsx)(pt, {
|
|
5231
5231
|
label: c("taskPane.close"),
|
|
5232
|
-
children: (0, Z.jsx)(
|
|
5232
|
+
children: (0, Z.jsx)(rt, {
|
|
5233
5233
|
"aria-label": "close",
|
|
5234
5234
|
sx: { color: (e) => e.palette.text.icon ?? e.palette.action.active },
|
|
5235
5235
|
touchRippleRef: s,
|
|
@@ -5239,14 +5239,14 @@ var Ao = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
5239
5239
|
onPointerUp: () => {
|
|
5240
5240
|
r();
|
|
5241
5241
|
},
|
|
5242
|
-
children: (0, Z.jsx)(
|
|
5242
|
+
children: (0, Z.jsx)(O, { iconKey: "Close" })
|
|
5243
5243
|
})
|
|
5244
5244
|
})]
|
|
5245
5245
|
})
|
|
5246
5246
|
});
|
|
5247
5247
|
}, No = (0, X.forwardRef)((e, t) => {
|
|
5248
|
-
let { model: n, side: r, ...i } = e, a =
|
|
5249
|
-
return (0, Z.jsx)(
|
|
5248
|
+
let { model: n, side: r, ...i } = e, a = me();
|
|
5249
|
+
return (0, Z.jsx)(H, {
|
|
5250
5250
|
model: n,
|
|
5251
5251
|
ref: t,
|
|
5252
5252
|
propsFrame: { style: {
|
|
@@ -5272,30 +5272,30 @@ var Ao = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
5272
5272
|
display: "flex",
|
|
5273
5273
|
boxSizing: "border-box"
|
|
5274
5274
|
}, Io = (0, X.memo)((0, X.forwardRef)((e, t) => {
|
|
5275
|
-
let n, r, { mainElement: i, sidebarElement: a, position: o, persistKey: s, onPositionChange: c, className: l, style: u, taskSide: d = "right", ...f } = e, [p, m] =
|
|
5275
|
+
let n, r, { mainElement: i, sidebarElement: a, position: o, persistKey: s, onPositionChange: c, className: l, style: u, taskSide: d = "right", ...f } = e, [p, m] = j(s ?? null, Po), h = me(), [g, { width: _ }] = E(), v = _ > 530 || _ === 0, y = (0, X.useRef)(null), b = null, x = 4, S = 13;
|
|
5276
5276
|
v ? b = "m 3.6261898,11.36243 c 0,0.88365 -0.71627,1.59991 -1.59991,1.59991 -0.8836498,0 -1.60004965,-0.71626 -1.60004965,-1.59991 0,-0.88365 0.71639985,-1.6000508 1.60004965,-1.6000508 0.88364,0 1.59991,0.7164008 1.59991,1.6000508 m 0,-4.881294 c 0,0.88364 -0.71627,1.60004 -1.59991,1.60004 -0.8836498,0 -1.60004965,-0.7164 -1.60004965,-1.60004 0,-0.88365 0.71639985,-1.60005 1.60004965,-1.60005 0.88364,0 1.59991,0.7164 1.59991,1.60005 m 0,-4.881226 c 0,0.88365 -0.71627,1.60005 -1.59991,1.60005 C 1.14263,3.19996 0.42623015,2.48356 0.42623015,1.59991 0.42623015,0.71626 1.14263,0 2.0262798,0 c 0.88364,0 1.59991,0.71626 1.59991,1.59991" : (b = "M 1.59991,3.62619 C 0.71626,3.62619 0,2.90992 0,2.02628 0,1.1426301 0.71626,0.42623015 1.59991,0.42623015 c 0.88365,0 1.6000508,0.71639995 1.6000508,1.60004985 0,0.88364 -0.7164008,1.59991 -1.6000508,1.59991 m 4.881294,0 c -0.88364,0 -1.60004,-0.71627 -1.60004,-1.59991 0,-0.8836499 0.7164,-1.60004985 1.60004,-1.60004985 0.88365,0 1.60005,0.71639995 1.60005,1.60004985 0,0.88364 -0.7164,1.59991 -1.60005,1.59991 m 4.881226,0 c -0.88365,0 -1.60005,-0.71627 -1.60005,-1.59991 0,-0.8836499 0.7164,-1.60004985 1.60005,-1.60004985 0.88365,0 1.59991,0.71639995 1.59991,1.60004985 0,0.88364 -0.71626,1.59991 -1.59991,1.59991", x = 13, S = 4);
|
|
5277
|
-
let C, w = i, T = a,
|
|
5277
|
+
let C, w = i, T = a, D = d !== "right", O = v ? "row" : "column", ee = D && T ? "before" : "after", te = `${O}:${ee}`, k = s ? p[te] : void 0, A = k == null ? ((e, t) => {
|
|
5278
5278
|
if (e == null) return "40%";
|
|
5279
5279
|
if (typeof e == "number" || typeof e == "string") return e;
|
|
5280
5280
|
let n = e[t];
|
|
5281
5281
|
return n == null ? "40%" : `${n}%`;
|
|
5282
|
-
})(o, te) : `${
|
|
5282
|
+
})(o, te) : `${k}%`, ne = s || c ? (e) => {
|
|
5283
5283
|
s && m((t) => ({
|
|
5284
5284
|
...t,
|
|
5285
5285
|
[te]: e.percent
|
|
5286
5286
|
})), c?.(e, {
|
|
5287
|
-
orientation:
|
|
5287
|
+
orientation: O,
|
|
5288
5288
|
side: ee,
|
|
5289
5289
|
key: te
|
|
5290
5290
|
});
|
|
5291
5291
|
} : void 0;
|
|
5292
|
-
return
|
|
5292
|
+
return D && T ? (w = a, T = i, r = { style: {
|
|
5293
5293
|
flexDirection: "column",
|
|
5294
5294
|
boxSizing: "border-box",
|
|
5295
5295
|
paddingRight: "2px"
|
|
5296
5296
|
} }, n = {}, C = {
|
|
5297
5297
|
fixedPane: "before",
|
|
5298
|
-
position:
|
|
5298
|
+
position: A,
|
|
5299
5299
|
minBefore: v ? "280px" : "120px",
|
|
5300
5300
|
splitDirection: v ? "row" : "column"
|
|
5301
5301
|
}) : (n = { style: {
|
|
@@ -5306,11 +5306,11 @@ var Ao = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
5306
5306
|
marginRight: v ? "8px" : "4px"
|
|
5307
5307
|
} }, C = {
|
|
5308
5308
|
fixedPane: "after",
|
|
5309
|
-
position:
|
|
5309
|
+
position: A,
|
|
5310
5310
|
minAfter: v ? "280px" : "120px",
|
|
5311
5311
|
splitDirection: v ? "row" : "column"
|
|
5312
|
-
}), (0, Z.jsx)(
|
|
5313
|
-
ref:
|
|
5312
|
+
}), (0, Z.jsx)(oe, {
|
|
5313
|
+
ref: Ut([
|
|
5314
5314
|
y,
|
|
5315
5315
|
g,
|
|
5316
5316
|
t
|
|
@@ -5322,7 +5322,7 @@ var Ao = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
5322
5322
|
} : Fo,
|
|
5323
5323
|
...f,
|
|
5324
5324
|
...C,
|
|
5325
|
-
onPositionChange:
|
|
5325
|
+
onPositionChange: ne,
|
|
5326
5326
|
propsResizer: {
|
|
5327
5327
|
className: Fn("styled-resizer", "_styled-resizer_fdl5y_3"),
|
|
5328
5328
|
style: {
|
|
@@ -5330,7 +5330,7 @@ var Ao = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
5330
5330
|
minHeight: v ? void 0 : "6px",
|
|
5331
5331
|
maskImage: `url("data:image/svg+xml,%3Csvg width='${x}' height='${S}' viewBox='0 0 ${x} ${S}' version='1.1' fill='${h.palette.text.icon ?? h.palette.action.active}' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cpath d='${b}' /%3E%3C/svg%3E%0A")`,
|
|
5332
5332
|
maskRepeat: "no-repeat",
|
|
5333
|
-
maskPosition:
|
|
5333
|
+
maskPosition: D ? v ? "center center" : "bottom center" : v ? "left center" : "top center"
|
|
5334
5334
|
}
|
|
5335
5335
|
},
|
|
5336
5336
|
elementBefore: w,
|
|
@@ -5340,7 +5340,7 @@ var Ao = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
5340
5340
|
});
|
|
5341
5341
|
}));
|
|
5342
5342
|
Io.displayName = "StudioSplitPane";
|
|
5343
|
-
var Lo =
|
|
5343
|
+
var Lo = b.BuiltInSelectorNames, Ro = {
|
|
5344
5344
|
[Lo.Whole]: "FormulaMathTrig",
|
|
5345
5345
|
[Lo.Number]: "IncreaseDecimal",
|
|
5346
5346
|
[Lo.List]: "Menu",
|
|
@@ -5352,15 +5352,15 @@ var Lo = S.BuiltInSelectorNames, Ro = {
|
|
|
5352
5352
|
let t = e.getCondition();
|
|
5353
5353
|
if (!t) return "DataValidation";
|
|
5354
5354
|
let n = t.toJSON();
|
|
5355
|
-
return n.operator ===
|
|
5356
|
-
}, Bo = (0, X.memo)(({ dataValidation: e, size: t = 28 }) => (
|
|
5355
|
+
return n.operator === b.BuiltInOperatorNames.Expression ? "FormulaCustom" : typeof n.selector == "string" && Ro[n.selector] || "DataValidation";
|
|
5356
|
+
}, Bo = (0, X.memo)(({ dataValidation: e, size: t = 28 }) => (Ke(e, "onAnyChange"), (0, Z.jsx)(Kt, {
|
|
5357
5357
|
className: "sxl-dv-icon",
|
|
5358
5358
|
sx: {
|
|
5359
5359
|
width: "auto",
|
|
5360
5360
|
minWidth: 1.7 * t + "px",
|
|
5361
5361
|
height: `${t}px`
|
|
5362
5362
|
},
|
|
5363
|
-
children: (0, Z.jsx)(
|
|
5363
|
+
children: (0, Z.jsx)(O, {
|
|
5364
5364
|
iconKey: zo(e),
|
|
5365
5365
|
size: Math.round(.6 * t),
|
|
5366
5366
|
ariaHidden: !0
|
|
@@ -5371,8 +5371,8 @@ var Vo = (e, t) => {
|
|
|
5371
5371
|
let n = e.getCondition();
|
|
5372
5372
|
if (!n) return t("dataValidation.anyValue");
|
|
5373
5373
|
let r = n.toJSON();
|
|
5374
|
-
if (r.operator ===
|
|
5375
|
-
if (r.selector ===
|
|
5374
|
+
if (r.operator === b.BuiltInOperatorNames.Expression && typeof r.param == "string") return t("dataValidation.titleCustom", { formula: r.param });
|
|
5375
|
+
if (r.selector === b.BuiltInSelectorNames.List && r.operator === b.BuiltInOperatorNames.InSet) {
|
|
5376
5376
|
let e = r.param?.items, n = Array.isArray(e) ? e.map((e) => String(e ?? "")) : typeof e == "string" ? ((e) => e.length < 2 || !e.startsWith("\"") || !e.endsWith("\"") ? null : e.slice(1, -1).replace(/""/g, "\"").split(",").map((e) => e.trimStart()))(e) : null;
|
|
5377
5377
|
if (n) return t("dataValidation.titleList", {
|
|
5378
5378
|
items: n.slice(0, 3).join(", "),
|
|
@@ -5382,14 +5382,14 @@ var Vo = (e, t) => {
|
|
|
5382
5382
|
}
|
|
5383
5383
|
return n.toString();
|
|
5384
5384
|
}, Ho = {
|
|
5385
|
-
[
|
|
5386
|
-
[
|
|
5387
|
-
[
|
|
5385
|
+
[x.AlertStyle.Stop]: "ValidationStop",
|
|
5386
|
+
[x.AlertStyle.Warning]: "ValidationWarning",
|
|
5387
|
+
[x.AlertStyle.Information]: "ValidationInformation"
|
|
5388
5388
|
}, Uo = {
|
|
5389
|
-
[
|
|
5390
|
-
[
|
|
5391
|
-
[
|
|
5392
|
-
}, Wo = ({ checked: e, onCheckedChange: t, label: n, readOnly: r, children: i }) => (0, Z.jsxs)(
|
|
5389
|
+
[x.AlertStyle.Stop]: f("dataValidation.alertStop"),
|
|
5390
|
+
[x.AlertStyle.Warning]: f("dataValidation.alertWarning"),
|
|
5391
|
+
[x.AlertStyle.Information]: f("dataValidation.alertInformation")
|
|
5392
|
+
}, Wo = ({ checked: e, onCheckedChange: t, label: n, readOnly: r, children: i }) => (0, Z.jsxs)(Tt, {
|
|
5393
5393
|
expanded: e,
|
|
5394
5394
|
onChange: (e, n) => {
|
|
5395
5395
|
r || t(n);
|
|
@@ -5408,15 +5408,15 @@ var Vo = (e, t) => {
|
|
|
5408
5408
|
mb: 1
|
|
5409
5409
|
}
|
|
5410
5410
|
},
|
|
5411
|
-
children: [(0, Z.jsx)(
|
|
5412
|
-
expandIcon: (0, Z.jsx)(
|
|
5411
|
+
children: [(0, Z.jsx)(Rt, {
|
|
5412
|
+
expandIcon: (0, Z.jsx)(O, { iconKey: "ExpandMore" }),
|
|
5413
5413
|
sx: {
|
|
5414
5414
|
px: 2,
|
|
5415
5415
|
"& .MuiAccordionSummary-content": { my: 0 },
|
|
5416
5416
|
"&.Mui-expanded .MuiAccordionSummary-content": { my: 0 }
|
|
5417
5417
|
},
|
|
5418
|
-
children: (0, Z.jsx)(
|
|
5419
|
-
control: (0, Z.jsx)(
|
|
5418
|
+
children: (0, Z.jsx)(gn, {
|
|
5419
|
+
control: (0, Z.jsx)(hn, {
|
|
5420
5420
|
checked: e,
|
|
5421
5421
|
disabled: r,
|
|
5422
5422
|
onChange: (e) => {
|
|
@@ -5427,7 +5427,7 @@ var Vo = (e, t) => {
|
|
|
5427
5427
|
label: n,
|
|
5428
5428
|
onClick: (e) => e.stopPropagation()
|
|
5429
5429
|
})
|
|
5430
|
-
}), (0, Z.jsx)(
|
|
5430
|
+
}), (0, Z.jsx)(mn, {
|
|
5431
5431
|
sx: {
|
|
5432
5432
|
pl: 2,
|
|
5433
5433
|
pr: 2,
|
|
@@ -5440,11 +5440,11 @@ var Vo = (e, t) => {
|
|
|
5440
5440
|
children: i
|
|
5441
5441
|
})]
|
|
5442
5442
|
}), Go = (0, X.memo)((e) => {
|
|
5443
|
-
let { dataValidation: t } = e, n =
|
|
5444
|
-
|
|
5445
|
-
let r = t.isProtected(), i = t.getRenderHints().includes("list"), a = (0, Z.jsxs)(
|
|
5443
|
+
let { dataValidation: t } = e, n = N();
|
|
5444
|
+
Ke(t, "onAnyChange");
|
|
5445
|
+
let r = t.isProtected(), i = t.getRenderHints().includes("list"), a = (0, Z.jsxs)(st, {
|
|
5446
5446
|
tabIndex: 0,
|
|
5447
|
-
className:
|
|
5447
|
+
className: Zt["editor-panel"],
|
|
5448
5448
|
sx: {
|
|
5449
5449
|
gap: (e) => e.spacing(1),
|
|
5450
5450
|
paddingTop: (e) => e.spacing(1.25),
|
|
@@ -5456,7 +5456,7 @@ var Vo = (e, t) => {
|
|
|
5456
5456
|
overflow: "auto"
|
|
5457
5457
|
},
|
|
5458
5458
|
children: [
|
|
5459
|
-
(0, Z.jsxs)(
|
|
5459
|
+
(0, Z.jsxs)(R, {
|
|
5460
5460
|
sx: {
|
|
5461
5461
|
display: "flex",
|
|
5462
5462
|
flexDirection: "column",
|
|
@@ -5464,7 +5464,7 @@ var Vo = (e, t) => {
|
|
|
5464
5464
|
margin: (e) => e.spacing(1.25),
|
|
5465
5465
|
marginBottom: 0
|
|
5466
5466
|
},
|
|
5467
|
-
children: [(0, Z.jsxs)(
|
|
5467
|
+
children: [(0, Z.jsxs)(R, {
|
|
5468
5468
|
sx: {
|
|
5469
5469
|
display: "flex",
|
|
5470
5470
|
alignItems: "center",
|
|
@@ -5473,7 +5473,7 @@ var Vo = (e, t) => {
|
|
|
5473
5473
|
children: [(0, Z.jsx)(Bo, {
|
|
5474
5474
|
dataValidation: t,
|
|
5475
5475
|
size: 48
|
|
5476
|
-
}), (0, Z.jsx)(
|
|
5476
|
+
}), (0, Z.jsx)(G, {
|
|
5477
5477
|
variant: "body2",
|
|
5478
5478
|
sx: {
|
|
5479
5479
|
minWidth: 0,
|
|
@@ -5481,7 +5481,7 @@ var Vo = (e, t) => {
|
|
|
5481
5481
|
},
|
|
5482
5482
|
children: Vo(t, n)
|
|
5483
5483
|
})]
|
|
5484
|
-
}), (0, Z.jsx)(
|
|
5484
|
+
}), (0, Z.jsx)(Ft, {
|
|
5485
5485
|
item: t,
|
|
5486
5486
|
label: n("dataValidation.applyTo")
|
|
5487
5487
|
})]
|
|
@@ -5500,7 +5500,7 @@ var Vo = (e, t) => {
|
|
|
5500
5500
|
t.setCondition(n);
|
|
5501
5501
|
}
|
|
5502
5502
|
}),
|
|
5503
|
-
i && (0, Z.jsx)(
|
|
5503
|
+
i && (0, Z.jsx)(R, {
|
|
5504
5504
|
sx: {
|
|
5505
5505
|
pl: 2,
|
|
5506
5506
|
pr: 2,
|
|
@@ -5508,8 +5508,8 @@ var Vo = (e, t) => {
|
|
|
5508
5508
|
borderColor: "divider",
|
|
5509
5509
|
borderRadius: 1
|
|
5510
5510
|
},
|
|
5511
|
-
children: (0, Z.jsx)(
|
|
5512
|
-
control: (0, Z.jsx)(
|
|
5511
|
+
children: (0, Z.jsx)(gn, {
|
|
5512
|
+
control: (0, Z.jsx)(hn, {
|
|
5513
5513
|
checked: !t.isHideDropdown(),
|
|
5514
5514
|
disabled: r,
|
|
5515
5515
|
onChange: (e) => t.setHideDropdown(!e.target.checked)
|
|
@@ -5522,7 +5522,7 @@ var Vo = (e, t) => {
|
|
|
5522
5522
|
onCheckedChange: (e) => t.setShowPromptMessage(e),
|
|
5523
5523
|
label: n("dataValidation.prompt"),
|
|
5524
5524
|
readOnly: r,
|
|
5525
|
-
children: [(0, Z.jsx)(
|
|
5525
|
+
children: [(0, Z.jsx)(vn, {
|
|
5526
5526
|
size: "small",
|
|
5527
5527
|
label: n("dataValidation.title"),
|
|
5528
5528
|
value: t.getPromptTitle(),
|
|
@@ -5531,7 +5531,7 @@ var Vo = (e, t) => {
|
|
|
5531
5531
|
fullWidth: !0,
|
|
5532
5532
|
slotProps: { htmlInput: { maxLength: 32 } },
|
|
5533
5533
|
sx: { backgroundColor: "background.paper" }
|
|
5534
|
-
}), (0, Z.jsx)(
|
|
5534
|
+
}), (0, Z.jsx)(vn, {
|
|
5535
5535
|
size: "small",
|
|
5536
5536
|
label: n("dataValidation.message"),
|
|
5537
5537
|
value: t.getPromptMessage(),
|
|
@@ -5550,31 +5550,31 @@ var Vo = (e, t) => {
|
|
|
5550
5550
|
label: n("dataValidation.alert"),
|
|
5551
5551
|
readOnly: r,
|
|
5552
5552
|
children: [
|
|
5553
|
-
(0, Z.jsxs)(
|
|
5553
|
+
(0, Z.jsxs)(q, {
|
|
5554
5554
|
fullWidth: !0,
|
|
5555
5555
|
size: "small",
|
|
5556
5556
|
disabled: r,
|
|
5557
5557
|
sx: { backgroundColor: "background.paper" },
|
|
5558
|
-
children: [(0, Z.jsx)(
|
|
5558
|
+
children: [(0, Z.jsx)(Ct, { children: n("dataValidation.alertStyle") }), (0, Z.jsx)(J, {
|
|
5559
5559
|
value: t.getAlertStyle(),
|
|
5560
5560
|
label: n("dataValidation.alertStyle"),
|
|
5561
5561
|
onChange: (e) => t.setAlertStyle(e.target.value),
|
|
5562
|
-
renderValue: (e) => (0, Z.jsxs)(
|
|
5562
|
+
renderValue: (e) => (0, Z.jsxs)(R, {
|
|
5563
5563
|
sx: {
|
|
5564
5564
|
display: "flex",
|
|
5565
5565
|
alignItems: "center",
|
|
5566
5566
|
gap: 1
|
|
5567
5567
|
},
|
|
5568
|
-
children: [(0, Z.jsx)(
|
|
5568
|
+
children: [(0, Z.jsx)(O, {
|
|
5569
5569
|
iconKey: Ho[e],
|
|
5570
5570
|
size: 18,
|
|
5571
5571
|
ariaHidden: !0
|
|
5572
5572
|
}), n(Uo[e])]
|
|
5573
5573
|
}),
|
|
5574
|
-
children: Object.keys(Ho).map((e) => (0, Z.jsxs)(
|
|
5574
|
+
children: Object.keys(Ho).map((e) => (0, Z.jsxs)(Y, {
|
|
5575
5575
|
value: e,
|
|
5576
5576
|
sx: { gap: 1 },
|
|
5577
|
-
children: [(0, Z.jsx)(
|
|
5577
|
+
children: [(0, Z.jsx)(O, {
|
|
5578
5578
|
iconKey: Ho[e],
|
|
5579
5579
|
size: 18,
|
|
5580
5580
|
ariaHidden: !0
|
|
@@ -5582,7 +5582,7 @@ var Vo = (e, t) => {
|
|
|
5582
5582
|
}, e))
|
|
5583
5583
|
})]
|
|
5584
5584
|
}),
|
|
5585
|
-
(0, Z.jsx)(
|
|
5585
|
+
(0, Z.jsx)(vn, {
|
|
5586
5586
|
size: "small",
|
|
5587
5587
|
label: n("dataValidation.title"),
|
|
5588
5588
|
value: t.getAlertTitle(),
|
|
@@ -5592,7 +5592,7 @@ var Vo = (e, t) => {
|
|
|
5592
5592
|
slotProps: { htmlInput: { maxLength: 32 } },
|
|
5593
5593
|
sx: { backgroundColor: "background.paper" }
|
|
5594
5594
|
}),
|
|
5595
|
-
(0, Z.jsx)(
|
|
5595
|
+
(0, Z.jsx)(vn, {
|
|
5596
5596
|
size: "small",
|
|
5597
5597
|
label: n("dataValidation.message"),
|
|
5598
5598
|
value: t.getAlertMessage(),
|
|
@@ -5614,7 +5614,7 @@ var Vo = (e, t) => {
|
|
|
5614
5614
|
});
|
|
5615
5615
|
});
|
|
5616
5616
|
Go.displayName = "DataValidationEditorPanel";
|
|
5617
|
-
var Ko = ({ children: e }) => (0, Z.jsx)(
|
|
5617
|
+
var Ko = ({ children: e }) => (0, Z.jsx)(R, {
|
|
5618
5618
|
sx: {
|
|
5619
5619
|
display: "inline-flex",
|
|
5620
5620
|
alignItems: "center",
|
|
@@ -5625,15 +5625,15 @@ var Ko = ({ children: e }) => (0, Z.jsx)(I, {
|
|
|
5625
5625
|
borderRadius: 1,
|
|
5626
5626
|
color: "text.secondary"
|
|
5627
5627
|
},
|
|
5628
|
-
children: (0, Z.jsx)(
|
|
5628
|
+
children: (0, Z.jsx)(G, {
|
|
5629
5629
|
variant: "caption",
|
|
5630
5630
|
children: e
|
|
5631
5631
|
})
|
|
5632
5632
|
}), qo = (0, X.memo)(({ item: e }) => {
|
|
5633
|
-
let t =
|
|
5634
|
-
|
|
5633
|
+
let t = N();
|
|
5634
|
+
Ke(e, "onAnyChange");
|
|
5635
5635
|
let n = [];
|
|
5636
|
-
return e.isShowPromptMessage() && e.getPromptTitle() && n.push(t("dataValidation.promptPrefix", { title: e.getPromptTitle() })), e.getCondition() && (e.isShowAlertMessage() ? e.getAlertStyle() ===
|
|
5636
|
+
return e.isShowPromptMessage() && e.getPromptTitle() && n.push(t("dataValidation.promptPrefix", { title: e.getPromptTitle() })), e.getCondition() && (e.isShowAlertMessage() ? e.getAlertStyle() === x.AlertStyle.Warning ? n.push(t("dataValidation.alertWarning")) : e.getAlertStyle() === x.AlertStyle.Information && n.push(t("dataValidation.alertInformation")) : n.push(t("dataValidation.badgeNoAlert"))), e.isHideDropdown() && e.getRenderHints().includes("list") && n.push(t("dataValidation.badgeDropdownHidden")), n.length === 0 ? null : (0, Z.jsx)(R, {
|
|
5637
5637
|
sx: {
|
|
5638
5638
|
display: "flex",
|
|
5639
5639
|
flexWrap: "wrap",
|
|
@@ -5643,27 +5643,27 @@ var Ko = ({ children: e }) => (0, Z.jsx)(I, {
|
|
|
5643
5643
|
});
|
|
5644
5644
|
});
|
|
5645
5645
|
qo.displayName = "DataValidationCardBody";
|
|
5646
|
-
var Jo = (0, X.memo)(({ item: e }) => (0, Z.jsx)(
|
|
5646
|
+
var Jo = (0, X.memo)(({ item: e }) => (0, Z.jsx)(Ft, {
|
|
5647
5647
|
item: e,
|
|
5648
|
-
label:
|
|
5648
|
+
label: N()("dataValidation.applyTo"),
|
|
5649
5649
|
helperText: null
|
|
5650
5650
|
}));
|
|
5651
5651
|
Jo.displayName = "DataValidationCardRanges";
|
|
5652
5652
|
var Yo = {
|
|
5653
5653
|
key: "data-validation",
|
|
5654
5654
|
messageKeys: {
|
|
5655
|
-
none:
|
|
5656
|
-
addPrompt:
|
|
5657
|
-
heading:
|
|
5658
|
-
insert:
|
|
5659
|
-
new:
|
|
5660
|
-
moveUp:
|
|
5661
|
-
moveDown:
|
|
5662
|
-
edit:
|
|
5663
|
-
duplicate:
|
|
5664
|
-
delete:
|
|
5665
|
-
cancel:
|
|
5666
|
-
save:
|
|
5655
|
+
none: f("dataValidation.none"),
|
|
5656
|
+
addPrompt: f("dataValidation.addPrompt"),
|
|
5657
|
+
heading: f("dataValidation.heading"),
|
|
5658
|
+
insert: f("dataValidation.insert"),
|
|
5659
|
+
new: f("dataValidation.new"),
|
|
5660
|
+
moveUp: f("dataValidation.moveUp"),
|
|
5661
|
+
moveDown: f("dataValidation.moveDown"),
|
|
5662
|
+
edit: f("dataValidation.edit"),
|
|
5663
|
+
duplicate: f("dataValidation.duplicate"),
|
|
5664
|
+
delete: f("dataValidation.delete"),
|
|
5665
|
+
cancel: f("dataValidation.cancel"),
|
|
5666
|
+
save: f("dataValidation.save")
|
|
5667
5667
|
},
|
|
5668
5668
|
getCollection: (e) => e.getDataValidations(),
|
|
5669
5669
|
changeEvents: ["onDataValidationsChange"],
|
|
@@ -5673,7 +5673,7 @@ var Yo = {
|
|
|
5673
5673
|
},
|
|
5674
5674
|
applyNewDefaults: (e) => {
|
|
5675
5675
|
e.update({
|
|
5676
|
-
alertStyle:
|
|
5676
|
+
alertStyle: x.AlertStyle.Stop,
|
|
5677
5677
|
showAlertMessage: !0
|
|
5678
5678
|
});
|
|
5679
5679
|
},
|
|
@@ -5690,7 +5690,7 @@ var Yo = {
|
|
|
5690
5690
|
EditorBody: ({ item: e }) => (0, Z.jsx)(Go, { dataValidation: e })
|
|
5691
5691
|
}, Xo = (0, X.memo)((0, X.forwardRef)((e, t) => {
|
|
5692
5692
|
let { workbook: n, args: r, ...i } = e;
|
|
5693
|
-
return (0, Z.jsx)(
|
|
5693
|
+
return (0, Z.jsx)(Nt, {
|
|
5694
5694
|
ref: t,
|
|
5695
5695
|
workbook: n,
|
|
5696
5696
|
descriptor: Yo,
|
|
@@ -5699,7 +5699,7 @@ var Yo = {
|
|
|
5699
5699
|
...i
|
|
5700
5700
|
});
|
|
5701
5701
|
}));
|
|
5702
|
-
Xo.displayName = "DataValidationDetailsPanel",
|
|
5702
|
+
Xo.displayName = "DataValidationDetailsPanel", sn(), ee.register("plugin-table", { icons: {} }), et.registerTaskPane({
|
|
5703
5703
|
key: "dataValidationDetails",
|
|
5704
5704
|
getTitle: () => "Data Validation",
|
|
5705
5705
|
getIcon: () => "DataValidation",
|
|
@@ -5712,7 +5712,7 @@ Xo.displayName = "DataValidationDetailsPanel", wt(), D.register("plugin-table",
|
|
|
5712
5712
|
...o
|
|
5713
5713
|
});
|
|
5714
5714
|
}
|
|
5715
|
-
}, !0),
|
|
5715
|
+
}, !0), et.registerTaskPane({
|
|
5716
5716
|
key: "conditionalFormatDetails",
|
|
5717
5717
|
getTitle: () => "Conditional Formatting",
|
|
5718
5718
|
getIcon: () => "FormatPaint",
|
|
@@ -5725,7 +5725,7 @@ Xo.displayName = "DataValidationDetailsPanel", wt(), D.register("plugin-table",
|
|
|
5725
5725
|
...o
|
|
5726
5726
|
});
|
|
5727
5727
|
}
|
|
5728
|
-
}, !0),
|
|
5728
|
+
}, !0), rn(), Bt(), zt(), an(), fn();
|
|
5729
5729
|
var Zo = () => {
|
|
5730
5730
|
let e, t, n = new Promise((n, r) => {
|
|
5731
5731
|
e = n, t = r;
|
|
@@ -5743,133 +5743,133 @@ var Zo = () => {
|
|
|
5743
5743
|
}, Qo = (e, t) => {
|
|
5744
5744
|
if (!e) return {};
|
|
5745
5745
|
let { colorSchemes: n, ...r } = e, i = n?.[t ? "dark" : "light"];
|
|
5746
|
-
return i && typeof i == "object" ?
|
|
5746
|
+
return i && typeof i == "object" ? o.deepMerge(r, i) : r;
|
|
5747
5747
|
}, $o = (0, X.memo)((0, X.forwardRef)((e, t) => {
|
|
5748
|
-
let { host: n, scopeClass: r, square:
|
|
5748
|
+
let { host: n, scopeClass: r, square: a, elevation: s, variant: c, onWorkbookLoad: l, onDocumentError: u, renderDocumentError: d = tn, propsDocumentError: f, propsTaskPaneArea: p, renderTaskPaneArea: m = es, taskPaneSide: h = "right", onKeyDown: g, workbook: _, onWorkbookChange: v, logo: y, topLeft: b, topRight: x, muiTheme: S, tokens: C, cssBaseline: w, autoFocus: T = !1, title: E, onDirtyChange: D, propsDocumentTitle: k, renderDocumentLoading: A = dn, propsDocumentLoading: re, propsWorkbook: N, showFormulaBar: ie, propsFormulaBar: oe, renderFormulaBar: ce, editable: le, showStatusBar: ue, propsStatusBar: F, renderStatusBar: fe, propsToolbar: pe, renderToolbar: I } = e, L = (0, X.useRef)(null), me = (0, X.useRef)(null), he = (0, X.useRef)(null), ge = P(() => {
|
|
5749
5749
|
he.current?.getNamedCollectionEditorElement?.()?.focus?.();
|
|
5750
|
-
}, []), _e =
|
|
5751
|
-
|
|
5752
|
-
let
|
|
5753
|
-
light:
|
|
5754
|
-
dark:
|
|
5750
|
+
}, []), _e = P(u ?? (() => {}), [u]), ve = P(D ?? (() => {}), [D]), ye = k?.placeHolder, [xe] = j(Ie.Mode, void 0), { themeMode: Se } = ae({ mode: xe ?? void 0 }), [Ce] = j(te.Active, null), we = (0, X.useRef)(Ce);
|
|
5751
|
+
we.current = Ce;
|
|
5752
|
+
let Te = ne(), Oe = (0, X.useMemo)(() => ({
|
|
5753
|
+
light: mt(!1, o.deepMerge(Qo(S, !1), Mt(Te?.light))),
|
|
5754
|
+
dark: mt(!0, o.deepMerge(Qo(S, !0), Mt(Te?.dark)))
|
|
5755
5755
|
}), [
|
|
5756
5756
|
S,
|
|
5757
|
-
|
|
5758
|
-
|
|
5759
|
-
]), ke =
|
|
5760
|
-
|
|
5757
|
+
Te?.light,
|
|
5758
|
+
Te?.dark
|
|
5759
|
+
]), ke = Se === "dark", Ne = (0, X.useMemo)(() => pn(Oe.light, Oe.dark, `.${r}`, C), [
|
|
5760
|
+
Oe,
|
|
5761
5761
|
r,
|
|
5762
5762
|
C
|
|
5763
|
-
]),
|
|
5763
|
+
]), Fe = (0, X.useMemo)(() => Ae("sxl-defaults", `.${r}`), [r]), Le = Ve(), [Re, Be] = (0, X.useState)(() => _ ?? null);
|
|
5764
5764
|
(0, X.useEffect)(() => {
|
|
5765
|
-
|
|
5765
|
+
Be(_ ?? null);
|
|
5766
5766
|
}, [_]);
|
|
5767
|
-
let [
|
|
5768
|
-
|
|
5769
|
-
let
|
|
5770
|
-
io:
|
|
5771
|
-
defaultTheme:
|
|
5772
|
-
reloadKey:
|
|
5773
|
-
}),
|
|
5767
|
+
let [He, Ue] = (0, X.useState)(0), B = (0, X.useRef)(null);
|
|
5768
|
+
B.current ||= Zo();
|
|
5769
|
+
let Ge = Pe(Re, {
|
|
5770
|
+
io: z,
|
|
5771
|
+
defaultTheme: Le.getDefaultTheme(),
|
|
5772
|
+
reloadKey: He
|
|
5773
|
+
}), V = Ge.status === "loaded" ? Ge.workbook : null, H = (0, X.useMemo)(() => Ge.status === "error" ? {
|
|
5774
5774
|
status: "error",
|
|
5775
|
-
error:
|
|
5776
|
-
} :
|
|
5775
|
+
error: Ge.error
|
|
5776
|
+
} : Ge.status === "loaded" ? {
|
|
5777
5777
|
status: "loaded",
|
|
5778
|
-
workbook:
|
|
5779
|
-
} : { status: "loading" }, [
|
|
5778
|
+
workbook: Ge.workbook
|
|
5779
|
+
} : { status: "loading" }, [Ge]);
|
|
5780
5780
|
(0, X.useEffect)(() => {
|
|
5781
|
-
|
|
5782
|
-
}, [
|
|
5783
|
-
|
|
5784
|
-
}, [
|
|
5785
|
-
let [
|
|
5786
|
-
|
|
5787
|
-
let
|
|
5788
|
-
|
|
5789
|
-
let
|
|
5790
|
-
|
|
5791
|
-
let
|
|
5792
|
-
let t =
|
|
5793
|
-
t &&
|
|
5781
|
+
B.current.settled && (B.current = Zo());
|
|
5782
|
+
}, [Re, He]), (0, X.useEffect)(() => {
|
|
5783
|
+
H.status === "loaded" ? B.current.resolve(H.workbook) : H.status === "error" && (_e?.(H.error), B.current.reject(H.error));
|
|
5784
|
+
}, [H]);
|
|
5785
|
+
let [U, qe] = (0, X.useState)(null);
|
|
5786
|
+
V && !U && qe(V);
|
|
5787
|
+
let Je = V && U && V !== U ? V : null, Xe = (0, X.useRef)(Je);
|
|
5788
|
+
Xe.current = Je;
|
|
5789
|
+
let Qe = (0, X.useRef)(U);
|
|
5790
|
+
Qe.current = U;
|
|
5791
|
+
let $e = (0, X.useRef)([]), et = (0, X.useCallback)((e) => {
|
|
5792
|
+
let t = Qe.current;
|
|
5793
|
+
t && $e.current.push(t), Be(e);
|
|
5794
5794
|
}, []);
|
|
5795
5795
|
(0, X.useEffect)(() => {
|
|
5796
|
-
let e =
|
|
5796
|
+
let e = $e.current;
|
|
5797
5797
|
if (e.length !== 0) {
|
|
5798
|
-
|
|
5798
|
+
$e.current = e.filter((e) => e === U);
|
|
5799
5799
|
for (let t = 0; t < e.length; t++) {
|
|
5800
5800
|
let n = e[t];
|
|
5801
|
-
if (n !==
|
|
5801
|
+
if (n !== U) try {
|
|
5802
5802
|
n.close();
|
|
5803
5803
|
} catch (e) {
|
|
5804
5804
|
console.warn("Unable to close the replaced workbook", e);
|
|
5805
5805
|
}
|
|
5806
5806
|
}
|
|
5807
5807
|
}
|
|
5808
|
-
}, [
|
|
5809
|
-
let
|
|
5810
|
-
|
|
5811
|
-
if (!
|
|
5812
|
-
let e =
|
|
5813
|
-
return
|
|
5808
|
+
}, [U]);
|
|
5809
|
+
let nt = le ? null : U, rt = We(), it = (0, X.useMemo)(() => nt ? Me(nt.getSelectedSheet(), { referenceMode: rt }) : null, [nt, rt]), W = le ?? it, G = (0, X.useRef)(W);
|
|
5810
|
+
G.current = W, (0, X.useEffect)(() => {
|
|
5811
|
+
if (!W) return;
|
|
5812
|
+
let e = W.getSession();
|
|
5813
|
+
return W.subscribe(() => {
|
|
5814
5814
|
let t = e;
|
|
5815
|
-
e =
|
|
5815
|
+
e = W.getSession(), t && !e && t.getActiveEditorId() === "formula-bar" && he.current?.contains?.(document.activeElement) && L.current?.focus();
|
|
5816
5816
|
});
|
|
5817
|
-
}, [
|
|
5818
|
-
let
|
|
5819
|
-
|
|
5820
|
-
let
|
|
5821
|
-
|
|
5822
|
-
let [
|
|
5817
|
+
}, [W]);
|
|
5818
|
+
let at = Ze(U), { isDirty: ot, saveState: ct } = Ee(U, z), lt = Ye(U), ut = (0, X.useRef)(ct), dt = (0, X.useRef)(null);
|
|
5819
|
+
ut.current = ct;
|
|
5820
|
+
let ft = (0, X.useCallback)(() => ut.current?.isDirty() ?? !1, []), pt = (0, X.useRef)(H);
|
|
5821
|
+
pt.current = H;
|
|
5822
|
+
let [K, ht] = (0, X.useState)(null), gt = E ?? k?.title, [_t, vt] = (0, X.useState)(null);
|
|
5823
5823
|
(0, X.useEffect)(() => {
|
|
5824
|
-
|
|
5825
|
-
}, [
|
|
5826
|
-
let
|
|
5824
|
+
vt(null);
|
|
5825
|
+
}, [U]);
|
|
5826
|
+
let yt = gt ?? _t ?? at ?? "";
|
|
5827
5827
|
(0, X.useEffect)(() => {
|
|
5828
|
-
ve?.(
|
|
5829
|
-
}, [
|
|
5830
|
-
let
|
|
5828
|
+
ve?.(ot);
|
|
5829
|
+
}, [ot]);
|
|
5830
|
+
let bt = P(v ?? (() => {}), [v]);
|
|
5831
5831
|
(0, X.useEffect)(() => {
|
|
5832
|
-
|
|
5833
|
-
}, [
|
|
5834
|
-
let
|
|
5835
|
-
|
|
5836
|
-
let
|
|
5832
|
+
bt?.(V);
|
|
5833
|
+
}, [V]);
|
|
5834
|
+
let q = (0, X.useRef)(V);
|
|
5835
|
+
q.current = V, Ke(U, "onViewChange");
|
|
5836
|
+
let xt = (0, X.useMemo)(() => (0, Z.jsx)(yn, {
|
|
5837
5837
|
groupKey: "helpOptions",
|
|
5838
5838
|
disableHover: !0,
|
|
5839
5839
|
sx: { padding: "0" },
|
|
5840
5840
|
propsButton: { sx: { maxHeight: "22px" } }
|
|
5841
|
-
}), []), [
|
|
5842
|
-
|
|
5841
|
+
}), []), [St, Ct] = (0, X.useState)(null), wt = (0, X.useCallback)((e) => {
|
|
5842
|
+
Ct(e);
|
|
5843
5843
|
}, []);
|
|
5844
5844
|
(0, X.useEffect)(() => {
|
|
5845
|
-
|
|
5845
|
+
ee.prefetch().catch((e) => {
|
|
5846
5846
|
console.warn("Icons could not be loaded:", e);
|
|
5847
5847
|
});
|
|
5848
5848
|
}, []);
|
|
5849
|
-
let
|
|
5850
|
-
|
|
5851
|
-
let
|
|
5852
|
-
let t =
|
|
5853
|
-
t && t !==
|
|
5854
|
-
}, []),
|
|
5849
|
+
let J = (0, X.useRef)(null);
|
|
5850
|
+
J.current ||= Zo();
|
|
5851
|
+
let Tt = (0, X.useRef)(null), Et = (0, X.useCallback)(() => Tt.current?.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? J.current.promise, []), Dt = P(async (e) => {
|
|
5852
|
+
let t = we.current;
|
|
5853
|
+
t && t !== i.getActive() && await i.setActive(t), await M.DefaultCommandCatalogService.prefetch(t ?? void 0), ht(e), Tt.current = e.source, J.current.settled || J.current.resolve(e.source.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? null), l?.(e);
|
|
5854
|
+
}, []), Ot = (0, X.useRef)(null), kt = (0, X.useCallback)((e) => {
|
|
5855
5855
|
let t = null, n = {
|
|
5856
5856
|
readOnly: !0,
|
|
5857
5857
|
...k
|
|
5858
5858
|
};
|
|
5859
|
-
return k?.hidden || (t = (0, Z.jsx)(
|
|
5859
|
+
return k?.hidden || (t = (0, Z.jsx)(cn, {
|
|
5860
5860
|
...n,
|
|
5861
5861
|
style: {
|
|
5862
5862
|
maxWidth: "100%",
|
|
5863
5863
|
...k?.style
|
|
5864
5864
|
},
|
|
5865
|
-
workbook: e.workbook ??
|
|
5866
|
-
ref:
|
|
5867
|
-
title:
|
|
5868
|
-
modified:
|
|
5869
|
-
encrypted:
|
|
5870
|
-
placeHolder:
|
|
5865
|
+
workbook: e.workbook ?? L.current,
|
|
5866
|
+
ref: Ot,
|
|
5867
|
+
title: yt,
|
|
5868
|
+
modified: ot,
|
|
5869
|
+
encrypted: lt,
|
|
5870
|
+
placeHolder: ye,
|
|
5871
5871
|
onTitleChange: (e) => {
|
|
5872
|
-
|
|
5872
|
+
vt(e), k?.onTitleChange?.(e);
|
|
5873
5873
|
}
|
|
5874
5874
|
})), (0, Z.jsx)(yo, {
|
|
5875
5875
|
...e,
|
|
@@ -5880,26 +5880,26 @@ var Zo = () => {
|
|
|
5880
5880
|
});
|
|
5881
5881
|
}, [
|
|
5882
5882
|
y,
|
|
5883
|
-
|
|
5884
|
-
|
|
5885
|
-
|
|
5883
|
+
yt,
|
|
5884
|
+
ot,
|
|
5885
|
+
lt,
|
|
5886
5886
|
k,
|
|
5887
5887
|
b,
|
|
5888
5888
|
x
|
|
5889
5889
|
]);
|
|
5890
5890
|
(0, X.useEffect)(() => {
|
|
5891
|
-
let e =
|
|
5891
|
+
let e = L.current;
|
|
5892
5892
|
if (!e) return;
|
|
5893
5893
|
let t = (e) => e.preventDefault();
|
|
5894
5894
|
return e.addEventListener("wheel", t, { passive: !1 }), () => {
|
|
5895
5895
|
e.removeEventListener("wheel", t);
|
|
5896
5896
|
};
|
|
5897
|
-
}, [
|
|
5898
|
-
let [
|
|
5897
|
+
}, [K]);
|
|
5898
|
+
let [At, jt] = (0, X.useState)(null);
|
|
5899
5899
|
(0, X.useEffect)(() => {
|
|
5900
|
-
|
|
5901
|
-
}, [
|
|
5902
|
-
let
|
|
5900
|
+
jt(K?.source?.getCommandScope?.() ?? null);
|
|
5901
|
+
}, [K]);
|
|
5902
|
+
let Nt = (0, X.useMemo)(() => ({
|
|
5903
5903
|
"& .SnackbarContainer-root": { position: "absolute !important" },
|
|
5904
5904
|
"& .notistack-SnackbarContainer > div": { maxWidth: "min(100%, 720px)" },
|
|
5905
5905
|
"& .notistack-Snackbar": { minWidth: "unset" },
|
|
@@ -5912,55 +5912,55 @@ var Zo = () => {
|
|
|
5912
5912
|
whiteSpace: "pre-wrap"
|
|
5913
5913
|
},
|
|
5914
5914
|
"*": { userSelect: "none" }
|
|
5915
|
-
}), []), [
|
|
5915
|
+
}), []), [Pt, Ft] = (0, X.useState)(null), [, It] = j(null, !1);
|
|
5916
5916
|
(0, X.useEffect)(() => {
|
|
5917
|
-
|
|
5918
|
-
}, [
|
|
5919
|
-
let
|
|
5920
|
-
model:
|
|
5917
|
+
It(Pt != null);
|
|
5918
|
+
}, [Pt, It]);
|
|
5919
|
+
let Lt = (0, X.useCallback)((e) => m({
|
|
5920
|
+
model: U,
|
|
5921
5921
|
side: h,
|
|
5922
5922
|
...e,
|
|
5923
5923
|
...p
|
|
5924
5924
|
}), [
|
|
5925
|
-
|
|
5925
|
+
U,
|
|
5926
5926
|
h,
|
|
5927
5927
|
p
|
|
5928
|
-
]),
|
|
5929
|
-
|
|
5928
|
+
]), Rt = (0, X.useRef)(n);
|
|
5929
|
+
Rt.current = n, be(t, () => ({
|
|
5930
5930
|
isStudioElement: () => !0,
|
|
5931
5931
|
save: (e) => {
|
|
5932
|
-
let t =
|
|
5932
|
+
let t = dt.current;
|
|
5933
5933
|
return t ? t(e) : Promise.reject(Error("The studio cannot save: no workbook, or the backing store cannot write."));
|
|
5934
5934
|
},
|
|
5935
|
-
getWorkbookElement: () =>
|
|
5936
|
-
getWorkbook: () =>
|
|
5937
|
-
isDirty: () =>
|
|
5938
|
-
getEditable: () =>
|
|
5935
|
+
getWorkbookElement: () => L.current,
|
|
5936
|
+
getWorkbook: () => q.current ?? null,
|
|
5937
|
+
isDirty: () => ut.current?.isDirty() ?? !1,
|
|
5938
|
+
getEditable: () => G.current,
|
|
5939
5939
|
getFormulaBarElement: () => he.current ?? null,
|
|
5940
|
-
focus: () =>
|
|
5941
|
-
whenReady: () => (
|
|
5942
|
-
getWorkbookState: () =>
|
|
5943
|
-
retry: () =>
|
|
5940
|
+
focus: () => L.current?.focus(),
|
|
5941
|
+
whenReady: () => (B.current ||= Zo(), B.current.promise),
|
|
5942
|
+
getWorkbookState: () => pt.current,
|
|
5943
|
+
retry: () => Ue((e) => e + 1)
|
|
5944
5944
|
}), [], n);
|
|
5945
|
-
let
|
|
5946
|
-
t ===
|
|
5947
|
-
t ===
|
|
5945
|
+
let zt = (0, X.useRef)(!1), Bt = P((e, t) => {
|
|
5946
|
+
t === Xe.current && requestAnimationFrame(() => requestAnimationFrame(() => {
|
|
5947
|
+
t === Xe.current && (zt.current = Rt.current?.contains(document.activeElement) ?? !0, qe(t), Dt(e));
|
|
5948
5948
|
}));
|
|
5949
5949
|
}, []);
|
|
5950
5950
|
(0, X.useEffect)(() => {
|
|
5951
|
-
|
|
5952
|
-
}, [
|
|
5953
|
-
let
|
|
5954
|
-
let { ref: t, ...n } = e, r = ke ?
|
|
5951
|
+
zt.current && (zt.current = !1, L.current?.focus());
|
|
5952
|
+
}, [U]);
|
|
5953
|
+
let Vt = (0, X.useCallback)(() => (0, Z.jsx)(Z.Fragment, {}), []), Ht = (0, X.useCallback)((e) => {
|
|
5954
|
+
let { ref: t, ...n } = e, r = ke ? Oe.dark : Oe.light, i = H.status === "error" ? d({
|
|
5955
5955
|
...f,
|
|
5956
5956
|
style: {
|
|
5957
5957
|
width: "100%",
|
|
5958
5958
|
height: "100%",
|
|
5959
5959
|
...f?.style
|
|
5960
5960
|
},
|
|
5961
|
-
error:
|
|
5961
|
+
error: H.error
|
|
5962
5962
|
}) : null;
|
|
5963
|
-
if (
|
|
5963
|
+
if (i && !U) return (0, Z.jsx)(st, {
|
|
5964
5964
|
style: {
|
|
5965
5965
|
width: "100%",
|
|
5966
5966
|
height: "100%",
|
|
@@ -5969,14 +5969,14 @@ var Zo = () => {
|
|
|
5969
5969
|
alignItems: "stretch",
|
|
5970
5970
|
justifyContent: "stretch"
|
|
5971
5971
|
},
|
|
5972
|
-
children:
|
|
5972
|
+
children: i
|
|
5973
5973
|
});
|
|
5974
|
-
let
|
|
5975
|
-
if (
|
|
5976
|
-
let e =
|
|
5974
|
+
let o = null;
|
|
5975
|
+
if (U) {
|
|
5976
|
+
let e = U, i = e.getView(), a = ie ?? i?.isShowFormulaBar(), s = ue ?? i?.isShowStatusBar(), c = K?.source ?? L.current, l = (I ?? kt)({
|
|
5977
5977
|
workbook: c,
|
|
5978
5978
|
...pe
|
|
5979
|
-
}), u = a ? (ce ??
|
|
5979
|
+
}), u = a ? (ce ?? Yt)({
|
|
5980
5980
|
ref: he,
|
|
5981
5981
|
style: {
|
|
5982
5982
|
marginTop: r.spacing(.25),
|
|
@@ -5985,50 +5985,50 @@ var Zo = () => {
|
|
|
5985
5985
|
marginBottom: r.spacing(.75)
|
|
5986
5986
|
},
|
|
5987
5987
|
workbook: e,
|
|
5988
|
-
editable:
|
|
5989
|
-
...
|
|
5988
|
+
editable: W ?? void 0,
|
|
5989
|
+
...oe,
|
|
5990
5990
|
propsNamedCollectionEditor: {
|
|
5991
5991
|
restoreFocus: (e) => c?.focus(e),
|
|
5992
|
-
...
|
|
5992
|
+
...oe?.propsNamedCollectionEditor
|
|
5993
5993
|
}
|
|
5994
|
-
}) : null, d =
|
|
5995
|
-
childrenEnd:
|
|
5996
|
-
...
|
|
5997
|
-
}) : null, f = (e, r) => (0, Z.jsx)(
|
|
5998
|
-
...
|
|
5994
|
+
}) : null, d = s ? (fe ?? Jt)({
|
|
5995
|
+
childrenEnd: xt,
|
|
5996
|
+
...F
|
|
5997
|
+
}) : null, f = (e, r) => (0, Z.jsx)(on, {
|
|
5998
|
+
...N,
|
|
5999
5999
|
tabIndex: 0,
|
|
6000
6000
|
autoFocus: !r && T,
|
|
6001
6001
|
workbook: e,
|
|
6002
|
-
editable: r ? void 0 :
|
|
6002
|
+
editable: r ? void 0 : W ?? void 0,
|
|
6003
6003
|
focusNameBox: r ? void 0 : ge,
|
|
6004
|
-
ref: r ? me :
|
|
6005
|
-
onWorkbookLoad: r ? (t) =>
|
|
6004
|
+
ref: r ? me : Ut([t, L]),
|
|
6005
|
+
onWorkbookLoad: r ? (t) => Bt(t, e) : Dt,
|
|
6006
6006
|
onKeyDown: (e) => {
|
|
6007
6007
|
g?.(e);
|
|
6008
6008
|
},
|
|
6009
|
-
propsWorkbookLoading:
|
|
6010
|
-
renderWorkbookLoading:
|
|
6009
|
+
propsWorkbookLoading: re,
|
|
6010
|
+
renderWorkbookLoading: Vt,
|
|
6011
6011
|
style: r ? {
|
|
6012
|
-
...
|
|
6012
|
+
...N?.style,
|
|
6013
6013
|
position: "absolute",
|
|
6014
6014
|
inset: 0,
|
|
6015
6015
|
visibility: "hidden"
|
|
6016
6016
|
} : {
|
|
6017
6017
|
flex: "1 1 100%",
|
|
6018
6018
|
minHeight: 0,
|
|
6019
|
-
...
|
|
6019
|
+
...N?.style
|
|
6020
6020
|
},
|
|
6021
6021
|
onContextMenu: (e) => e.preventDefault(),
|
|
6022
6022
|
...r ? null : n
|
|
6023
6023
|
}, e.getId());
|
|
6024
|
-
|
|
6024
|
+
o = (0, Z.jsxs)("div", {
|
|
6025
6025
|
style: {
|
|
6026
6026
|
display: "flex",
|
|
6027
6027
|
flexDirection: "column",
|
|
6028
6028
|
flex: "1 1 100%",
|
|
6029
6029
|
minWidth: 0,
|
|
6030
6030
|
minHeight: 0,
|
|
6031
|
-
...
|
|
6031
|
+
...De({
|
|
6032
6032
|
window: r.palette.background.default,
|
|
6033
6033
|
windowText: r.palette.text.primary
|
|
6034
6034
|
})
|
|
@@ -6039,9 +6039,9 @@ var Zo = () => {
|
|
|
6039
6039
|
(0, Z.jsx)(Io, {
|
|
6040
6040
|
taskSide: h,
|
|
6041
6041
|
persistKey: "taskPanePosition",
|
|
6042
|
-
sidebarElement:
|
|
6043
|
-
scope:
|
|
6044
|
-
children:
|
|
6042
|
+
sidebarElement: Pt ? (0, Z.jsx)(M.CommandScopeProvider, {
|
|
6043
|
+
scope: At,
|
|
6044
|
+
children: Pt
|
|
6045
6045
|
}) : void 0,
|
|
6046
6046
|
mainElement: (0, Z.jsxs)("div", {
|
|
6047
6047
|
style: {
|
|
@@ -6052,8 +6052,8 @@ var Zo = () => {
|
|
|
6052
6052
|
minWidth: 0,
|
|
6053
6053
|
minHeight: 0
|
|
6054
6054
|
},
|
|
6055
|
-
children: [[f(
|
|
6056
|
-
ref:
|
|
6055
|
+
children: [[f(U, !1), Je ? f(Je, !0) : null], (0, Z.jsx)(R, {
|
|
6056
|
+
ref: wt,
|
|
6057
6057
|
sx: {
|
|
6058
6058
|
position: "absolute",
|
|
6059
6059
|
top: "10%",
|
|
@@ -6070,9 +6070,9 @@ var Zo = () => {
|
|
|
6070
6070
|
]
|
|
6071
6071
|
});
|
|
6072
6072
|
}
|
|
6073
|
-
let l =
|
|
6074
|
-
return (0, Z.jsxs)(
|
|
6075
|
-
sx:
|
|
6073
|
+
let l = K ? null : A({ ...re });
|
|
6074
|
+
return (0, Z.jsxs)(st, {
|
|
6075
|
+
sx: Nt,
|
|
6076
6076
|
style: {
|
|
6077
6077
|
width: "100%",
|
|
6078
6078
|
height: "100%",
|
|
@@ -6083,12 +6083,12 @@ var Zo = () => {
|
|
|
6083
6083
|
backgroundColor: "var(--sxl-color-base-200)"
|
|
6084
6084
|
},
|
|
6085
6085
|
className: "eager-studio",
|
|
6086
|
-
square:
|
|
6087
|
-
elevation:
|
|
6086
|
+
square: a,
|
|
6087
|
+
elevation: s,
|
|
6088
6088
|
variant: c,
|
|
6089
6089
|
children: [
|
|
6090
|
-
|
|
6091
|
-
|
|
6090
|
+
o,
|
|
6091
|
+
i ? (0, Z.jsx)(st, {
|
|
6092
6092
|
style: {
|
|
6093
6093
|
position: "absolute",
|
|
6094
6094
|
inset: 0,
|
|
@@ -6096,7 +6096,7 @@ var Zo = () => {
|
|
|
6096
6096
|
alignItems: "stretch",
|
|
6097
6097
|
justifyContent: "stretch"
|
|
6098
6098
|
},
|
|
6099
|
-
children:
|
|
6099
|
+
children: i
|
|
6100
6100
|
}) : null,
|
|
6101
6101
|
l ? (0, Z.jsx)("div", {
|
|
6102
6102
|
style: {
|
|
@@ -6112,94 +6112,94 @@ var Zo = () => {
|
|
|
6112
6112
|
]
|
|
6113
6113
|
});
|
|
6114
6114
|
}, [
|
|
6115
|
-
V,
|
|
6116
6115
|
H,
|
|
6117
|
-
|
|
6118
|
-
|
|
6119
|
-
|
|
6120
|
-
|
|
6121
|
-
ie,
|
|
6122
|
-
Rt,
|
|
6116
|
+
U,
|
|
6117
|
+
Je,
|
|
6118
|
+
K,
|
|
6119
|
+
yt,
|
|
6123
6120
|
A,
|
|
6124
|
-
|
|
6121
|
+
re,
|
|
6122
|
+
Vt,
|
|
6123
|
+
N,
|
|
6125
6124
|
a,
|
|
6125
|
+
s,
|
|
6126
6126
|
c,
|
|
6127
|
-
|
|
6127
|
+
xt,
|
|
6128
6128
|
d,
|
|
6129
6129
|
f,
|
|
6130
|
-
St,
|
|
6131
|
-
Dt,
|
|
6132
6130
|
kt,
|
|
6131
|
+
Nt,
|
|
6132
|
+
Pt,
|
|
6133
6133
|
h,
|
|
6134
|
-
|
|
6134
|
+
At,
|
|
6135
|
+
ie,
|
|
6135
6136
|
oe,
|
|
6136
|
-
se,
|
|
6137
6137
|
ce,
|
|
6138
|
-
|
|
6139
|
-
|
|
6138
|
+
W,
|
|
6139
|
+
ue,
|
|
6140
|
+
F,
|
|
6140
6141
|
fe,
|
|
6141
|
-
M,
|
|
6142
6142
|
pe,
|
|
6143
|
-
|
|
6144
|
-
|
|
6143
|
+
I,
|
|
6144
|
+
Oe,
|
|
6145
6145
|
ke
|
|
6146
|
-
]),
|
|
6146
|
+
]), Wt = (0, Z.jsx)(mo, {
|
|
6147
6147
|
maxSnack: 3,
|
|
6148
|
-
domRoot:
|
|
6148
|
+
domRoot: St ?? void 0,
|
|
6149
6149
|
anchorOrigin: {
|
|
6150
6150
|
vertical: "bottom",
|
|
6151
6151
|
horizontal: "right"
|
|
6152
6152
|
},
|
|
6153
6153
|
autoHideDuration: 3500,
|
|
6154
6154
|
onClose: (e, t, n) => {
|
|
6155
|
-
|
|
6155
|
+
L.current?.focus();
|
|
6156
6156
|
},
|
|
6157
6157
|
Components: { error: _o },
|
|
6158
6158
|
iconVariant: {
|
|
6159
|
-
success: (0, Z.jsx)(
|
|
6159
|
+
success: (0, Z.jsx)(tt, {
|
|
6160
6160
|
style: { marginRight: "8px" },
|
|
6161
6161
|
children: (0, Z.jsx)("path", { d: "M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z" })
|
|
6162
6162
|
}),
|
|
6163
|
-
error: (0, Z.jsx)(
|
|
6163
|
+
error: (0, Z.jsx)(O, {
|
|
6164
6164
|
iconKey: "ErrorAlert",
|
|
6165
6165
|
style: { marginRight: "8px" }
|
|
6166
6166
|
})
|
|
6167
6167
|
},
|
|
6168
|
-
children: (0, Z.jsx)(
|
|
6169
|
-
workbook:
|
|
6170
|
-
children: (0, Z.jsx)(
|
|
6171
|
-
renderArea:
|
|
6168
|
+
children: (0, Z.jsx)(ze, {
|
|
6169
|
+
workbook: U,
|
|
6170
|
+
children: (0, Z.jsx)(je, {
|
|
6171
|
+
renderArea: Lt,
|
|
6172
6172
|
onUpdateArea: (e) => {
|
|
6173
|
-
|
|
6173
|
+
Ft(e);
|
|
6174
6174
|
},
|
|
6175
|
-
children: (0, Z.jsx)(
|
|
6176
|
-
workbook:
|
|
6177
|
-
initialCommandAnchor:
|
|
6178
|
-
renderWorkbook:
|
|
6179
|
-
setWorkbook:
|
|
6180
|
-
titleWorkbook:
|
|
6181
|
-
setWorkbookTitle:
|
|
6182
|
-
refDocumentTitle:
|
|
6183
|
-
isDirty:
|
|
6184
|
-
refSave:
|
|
6175
|
+
children: (0, Z.jsx)(Pn, { children: (0, Z.jsx)(ko, { children: (0, Z.jsx)(de, { children: (0, Z.jsx)(se, { children: (0, Z.jsx)(Eo, {
|
|
6176
|
+
workbook: U,
|
|
6177
|
+
initialCommandAnchor: Et,
|
|
6178
|
+
renderWorkbook: Ht,
|
|
6179
|
+
setWorkbook: et,
|
|
6180
|
+
titleWorkbook: yt,
|
|
6181
|
+
setWorkbookTitle: vt,
|
|
6182
|
+
refDocumentTitle: Ot,
|
|
6183
|
+
isDirty: ft,
|
|
6184
|
+
refSave: dt
|
|
6185
6185
|
}) }) }) }) })
|
|
6186
6186
|
})
|
|
6187
6187
|
})
|
|
6188
6188
|
});
|
|
6189
|
-
return
|
|
6190
|
-
theme: ke ?
|
|
6189
|
+
return Wt = (0, Z.jsxs)(or, {
|
|
6190
|
+
theme: ke ? Oe.dark : Oe.light,
|
|
6191
6191
|
children: [
|
|
6192
6192
|
w ? (0, Z.jsx)(Sr, {}) : null,
|
|
6193
|
-
(0, Z.jsx)("style", { children:
|
|
6194
|
-
(0, Z.jsx)("style", { children:
|
|
6195
|
-
(0, Z.jsx)(
|
|
6193
|
+
(0, Z.jsx)("style", { children: Ne }),
|
|
6194
|
+
(0, Z.jsx)("style", { children: Fe }),
|
|
6195
|
+
(0, Z.jsx)(bn, {
|
|
6196
6196
|
themeScopeClass: r,
|
|
6197
6197
|
themeSurface: "app",
|
|
6198
|
-
themeMode:
|
|
6199
|
-
children:
|
|
6198
|
+
themeMode: Se,
|
|
6199
|
+
children: Wt
|
|
6200
6200
|
})
|
|
6201
6201
|
]
|
|
6202
|
-
}),
|
|
6202
|
+
}), Wt;
|
|
6203
6203
|
}));
|
|
6204
6204
|
$o.displayName = "EagerStudio";
|
|
6205
6205
|
var es = (e) => (0, Z.jsx)(No, { ...e });
|