@sheetxl/studio-vanilla 0.8.0-beta.4 → 0.8.0-beta.6
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/2nTOupSTLJfwR2Xr2.cjs +1 -0
- package/browser/cjs/{ufEYN2m0y5pER93_.cjs → 9A9bktS1huVGPy37.cjs} +1 -1
- package/browser/cjs/B-t_DeDrhWtCFPcI.cjs +93 -0
- package/browser/cjs/{DrdQTBiFulmvlRaX.cjs → B1yQqy3iSI5uZPt3.cjs} +3 -3
- package/browser/cjs/{Be5j4deP5deGlAPe2.cjs → B3dsg6O4Ka8NpEf32.cjs} +1 -1
- package/browser/cjs/{DOQTjBWUIU3tFiC42.cjs → B4VCKO11wngJjEO92.cjs} +1 -1
- package/browser/cjs/{DxHsJ5c6KlwGpED6.cjs → B5Fa5-cHf1VTfozN.cjs} +1 -1
- package/browser/cjs/{CpSKXzK-k_sOImbA.cjs → BDkTCsmZyozmgWz4.cjs} +3 -3
- package/browser/cjs/BUh9jPBJDMwQarBZ.cjs +1 -0
- package/browser/cjs/{BhmvJA5P78JScqAa.cjs → BUm56uGV9gjkjukY.cjs} +1 -1
- package/browser/cjs/BbMNM5e-lfDFkOvn2.cjs +1 -0
- package/browser/cjs/{DnjrhTDYSGg20fYP.cjs → BbXbe-bwCJLD279F.cjs} +1 -1
- package/browser/cjs/BjYqVy9NYB3ZmGEY.cjs +32 -0
- package/browser/cjs/{CnZ9pMlpPsqEhbLB2.cjs → BkTSml2am1P7ZUlu2.cjs} +1 -1
- package/browser/cjs/{CIDcABwPAtKB7XVf.cjs → BmdFT-Ie0SY8YqFf.cjs} +3 -3
- package/browser/cjs/{CjqMMBQ8Kk0moB_z.cjs → BnXCqfKX491kQrtl.cjs} +1 -1
- package/browser/cjs/{Cw4BDzyIt0BkEzuh.cjs → BqFUfIMN5tnsMTIi.cjs} +1 -1
- package/browser/cjs/BvUcpUKYVrCK5n2U.cjs +14 -0
- package/browser/cjs/C0PxB67bYqsO7V1G2.cjs +1 -0
- package/browser/cjs/C0_3HFQaCnHzWrhv.cjs +2 -0
- package/browser/cjs/C0m8l7d1fHu9CO2M.cjs +24 -0
- package/browser/cjs/C2XU-hUt1ESe-Lym2.cjs +8 -0
- package/browser/cjs/{CLHQ0mEi1NKau4Fd2.cjs → C6LCqtqoz6Kag2h42.cjs} +1 -1
- package/browser/cjs/{CRplh7TkT0zSJ0-T.cjs → CCJvU8Lb84A0y65M.cjs} +1 -1
- package/browser/cjs/{DW8fGIUUK-oUTjOo.cjs → CRe8XsjS3Z5BTMZY.cjs} +1 -1
- package/browser/cjs/CXIJNqmAzn6OpqX5.cjs +5 -0
- package/browser/cjs/CXsFagVr04vhY7Uo.cjs +42 -0
- package/browser/cjs/CYXi2zJwNRVFBiL12.cjs +1 -0
- package/browser/cjs/CZSCuGkDSx0WPqjF.cjs +1 -0
- package/browser/cjs/{DoFDjP2FgjU48C712.cjs → Ce0Jppzi_9bXU35v2.cjs} +1 -1
- package/browser/cjs/Cez2y8M7jx35Vxwz.cjs +3 -0
- package/browser/cjs/Cgf6tLDBJ3BvtYtr.cjs +1 -0
- package/browser/cjs/{ZsgZv9u2bNY2LY78.cjs → CiJ7AoUXfIEucqrd.cjs} +1 -1
- package/browser/cjs/{bojG-rqzdkE9lH_h2.cjs → CraHFKICbV6fuCQ-2.cjs} +1 -1
- package/browser/cjs/Csx2sg-1yBljNBbj.cjs +1 -0
- package/browser/cjs/D-8fngmgZJyw1BQz2.cjs +1 -0
- package/browser/cjs/{CuANpK3BdrKl4Yhe.cjs → D9hGhZ8wId9qKZlT.cjs} +1 -1
- package/browser/cjs/{Cj57ZO62uLbSZ0gK.cjs → DFfYZJqlytuKuwBJ.cjs} +1 -1
- package/browser/cjs/{lc_UysVCoJyKATFy2.cjs → DUCViiS92Z2CCWkA2.cjs} +1 -1
- package/browser/cjs/{BFR2qcJJZqIGySId2.cjs → DcpQZyU6Dg7WiWza2.cjs} +2 -2
- package/browser/cjs/Df-fdT9Ac1c258zN.cjs +1 -0
- package/browser/cjs/{BqfmTrd9tnu_owvN.cjs → Dnnr8nzAEuAjhOeE.cjs} +1 -1
- package/browser/cjs/{BtrnAiRF11y21NX4.cjs → JrW6on2mNQQ3NXKs.cjs} +1 -1
- package/browser/cjs/{CJK0UKBYYLMe5y7n2.cjs → KMBs7XyoINajcR-L2.cjs} +1 -1
- package/browser/cjs/LZG5aDIiIkN0mGFD.cjs +1 -0
- package/browser/cjs/{ihI3PbaHdmlJLCOt2.cjs → NZ9JmwEmwyGM6S7n2.cjs} +1 -1
- package/browser/cjs/O9HAYiw9e8V75pJ92.cjs +1 -0
- package/browser/cjs/{DOjeFFlUuGZs14pR.cjs → U7_s3uvd0_Kashf9.cjs} +1 -1
- package/browser/cjs/{DRRqcawQ_OlK5O2S.cjs → Xd62BMjBfdi9qJzV.cjs} +1 -1
- package/browser/cjs/{nIKxgoGnF7yTmzVB2.cjs → eCs1q0PICk1snU-12.cjs} +2 -2
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{e4jYID_FHS7YL-b22.cjs → vjMDGGRVqaFnYj5r2.cjs} +1 -1
- package/browser/esm/{00bUQB6RgRxfotbx.mjs → 0oEGfdAHhaLHKSti.mjs} +1 -1
- package/browser/esm/{D_vJszM7OyxfNtiD.mjs → 4CqOm3frZRd9UZP4.mjs} +2 -2
- package/browser/esm/{CmNtmMkhbzV8j_I0.mjs → 4DbJWOjJvf-TOYkv2.mjs} +1 -1
- package/browser/esm/{rUQqpcI_WXcsiwea2.mjs → 4UIqAp3dgLTz_jQl2.mjs} +1 -1
- package/browser/esm/{BeQYgyU20NLEnFql2.mjs → AlSePay9xNV3_6bb.mjs} +1 -1
- package/browser/esm/{DXuBmWXG49kvaZNr2.mjs → B-_shlNzdU5vK6-F2.mjs} +1 -1
- package/{cdn/assets/Cm_bL9sY_cm-k_Pq2.js → browser/esm/B2bYjv0KEa2vjuau.mjs} +1 -1
- package/browser/esm/{N9sXUCWDhn_zpuR2.mjs → B7DAcnxzPv0cz6GS.mjs} +1 -1
- package/browser/esm/{CNBdjbsAfeLxOXNu2.mjs → B89OWCXpyImxK0eb2.mjs} +1 -1
- package/browser/esm/{C9-p4koE4kCDp9UL2.mjs → BC57lU_SIXKxcZkP2.mjs} +8 -8
- package/browser/esm/{C9QsQZR03iUbXGDd.mjs → BCECU4i5lxfS0Udy.mjs} +1 -1
- package/{cdn/assets/DtFBvTH8ScTC26Xd2.js → browser/esm/BDn_jC98FsiXZwGr2.mjs} +1 -1
- package/browser/esm/{CPCWNpkZIX3cxPMS2.mjs → BE7zDEWoGoldNMWX2.mjs} +2 -2
- package/{cdn/assets/p-0E4OSYsnvo4Jvb.js → browser/esm/BG5ptu1QVVE32_SU2.mjs} +1 -1
- package/browser/esm/{LTN_uMk0eLGdRMPd2.mjs → BGFPUYyanO54TIB42.mjs} +7 -7
- package/browser/esm/{CNO2b9u-Zhj6V2us2.mjs → BGp2qrSP8wpHTmzp2.mjs} +5 -5
- package/browser/esm/{BxrknRRdcnKV7-zU.mjs → BOwbDihjRpkwOyYg.mjs} +5 -5
- package/browser/esm/{Dr3NMWk6K4-HWYsp.mjs → BQemec4LLoAl92_B.mjs} +1 -1
- package/browser/esm/{LOn47j35pLEOdnml.mjs → BSXumetIfmtutIwR.mjs} +5 -5
- package/{cdn/assets/7XkdeYBragcPQQS0.js → browser/esm/BXlBCVkeDEYvDBJB.mjs} +1 -1
- package/browser/esm/{C62Y8jSQuT2_lqUs.mjs → BYk8t-CVbU8h5jS6.mjs} +1 -1
- package/browser/esm/{DdNzoOIDRFbcy-qK.mjs → B_bAeABEjj7U2zzq.mjs} +14 -14
- package/{cdn/assets/D6FSp0JpvARNns7B.js → browser/esm/BcdW5Jtz-XtqlpNg2.mjs} +96 -96
- package/browser/esm/{Jsx_oA3RHPHgakon.mjs → BdqrEMXaXGIMDZbw.mjs} +691 -689
- package/{cdn/assets/NLHUljnhbCboNbaU2.js → browser/esm/Bhz4-fERBAhVf8ze.mjs} +1 -1
- package/browser/esm/{Cz_f9WxedmIkn2jq.mjs → BiSNhmfge2gLrdUM.mjs} +3 -3
- package/{cdn/assets/BQRlxHPPnb-Xp7mx2.js → browser/esm/Bis-2jH6YBF6g66T.mjs} +1 -1
- package/{cdn/assets/DQXXQ7c_080TSD18.js → browser/esm/BlYbn-3NJeiQ8dVU.mjs} +1 -1
- package/browser/esm/{CSus1KY0Y1UJN-c6.mjs → BmJfxZPHfm_cMD4l.mjs} +2657 -2575
- package/{cdn/assets/DYoBCnD1PVzOITgb.js → browser/esm/Bo5_yVXoppQHxkAs.mjs} +1 -1
- package/browser/esm/{BEsIwguAjJa2eS4g2.mjs → BoEpW3VXHHDA7k4Y2.mjs} +13 -13
- package/browser/esm/{CByxip-S_IKsaoyZ.mjs → BoUvCwncdWQjAB6z.mjs} +300 -300
- package/browser/esm/{cVFbVoYZRXdqyfp0.mjs → BprRTOQ5s6y4jMpw.mjs} +5 -5
- package/{cdn/assets/LryKLHFrshlshCEk.js → browser/esm/Bw8V5WPmS2yA3Nli2.mjs} +1 -1
- package/browser/esm/{DCY3GQ5g02kgKrPz2.mjs → Bx_8Vgu2B9rmr3So.mjs} +1 -1
- package/{cdn/assets/C_6kPChYiQzj6w3V2.js → browser/esm/C0vo8lE4bLKFYxkh2.mjs} +1 -1
- package/browser/esm/{CqwPCy756gUmUtv1.mjs → C2Mtau_YqokRY_Xs.mjs} +6 -6
- package/browser/esm/{BqT5uCSFT_HATJJw2.mjs → C7svWLuGopr_jw0t2.mjs} +1 -1
- package/browser/esm/{DvFQ4AKUGVQ_qhdP.mjs → CBXVfpoYV_x0IHcp.mjs} +2 -2
- package/{cdn/assets/CqheKk46etN--iuw.js → browser/esm/CCAmUEfkNvVwKNOo2.mjs} +1 -1
- package/{cdn/assets/_WaFh_cvGeblogUn.js → browser/esm/CCauT418WamqPMCO2.mjs} +1 -1
- package/browser/esm/{BJdwKtEOslRkGQhk.mjs → CDelk7_2mgy_puiR.mjs} +7 -7
- package/browser/esm/{BVri2gMOX526uJV5.mjs → CIT0V8cmnyP4zirK.mjs} +1 -1
- package/browser/esm/{yg7AU6dKBI7tCqJd2.mjs → CIwWrEXfSN_3khPI.mjs} +1 -1
- package/browser/esm/{Dz6F8pPCO-Rr6Cab2.mjs → CJVG0Axu4gbcyT_I2.mjs} +8 -8
- package/browser/esm/{BcZHZLyy1g0r4Qk4.mjs → CMA4SISwnTv_lg9j.mjs} +42 -42
- package/browser/esm/{BCmGrMte2QyvzkAM2.mjs → CNYIGTIynWaiXpHk2.mjs} +14 -14
- package/browser/esm/{BPh6sTO11J2UoKVG.mjs → COLxuIHK4CwKSCmM2.mjs} +1 -1
- package/browser/esm/{BCYJaBOW6d6KNCuQ2.mjs → CP--voqAl30cGmBl2.mjs} +7 -7
- package/browser/esm/{DIHvZTIPYMmuDQO4.mjs → CRCjjm1HOTdtQ62k.mjs} +5 -5
- package/browser/esm/{z-KpvdyYTapfvTA-.mjs → CRD6T2pongEp74eX.mjs} +4 -4
- package/browser/esm/{DvQg18Zd8rnQh20c.mjs → CTuUdSmxH6QxGmNK.mjs} +3 -3
- package/{cdn/assets/DN6XiWA9mgKCYBL7.js → browser/esm/CUQpAR2c-_Pwu2Eu.mjs} +1 -1
- package/browser/esm/{CVV-QxmM_7vUYzFC.mjs → CZQe_58fmtS0SgdD.mjs} +1 -1
- package/browser/esm/{ClrdhQeh_WoBg0Ws2.mjs → C_VwHa0tEc_OcSRF2.mjs} +1 -1
- package/{cdn/assets/DDfhrc6lUmerlDLA.js → browser/esm/CeT8chcNlkKehyJE2.mjs} +1 -1
- package/browser/esm/{BranNZUk8WXrCCjb.mjs → CfIyCu9_WLgJL_UT.mjs} +2 -2
- package/{cdn/assets/CQi9Ek-nl9QWmoMC.js → browser/esm/Cfob6FEkwxaSK3jd2.mjs} +1 -1
- package/browser/esm/{BYcIifmA2KfISUAD.mjs → ChAYrf_SM2XZlpZ9.mjs} +6 -6
- package/{cdn/assets/DwpzhMm9SjvmHEpB2.js → browser/esm/CiKHaK_kIAhKfCdO.mjs} +1 -1
- package/browser/esm/{CMIHnlRJ6ctaJThm2.mjs → Cifhu0Tx_Qo7pYUo2.mjs} +9 -9
- package/browser/esm/{BnT_figq3Qu4_Tdm.mjs → Cluu6edX1vMT0APV.mjs} +12 -12
- package/browser/esm/{DSuOkzhjUeUGtHv8.mjs → CnMODHX8BiX4JiLR.mjs} +3 -3
- package/browser/esm/{DGjbC2bQDlXZu71U.mjs → CnaNnCl2QaqlLn8r.mjs} +139 -139
- package/{cdn/assets/C4cN9i6GMOS58iau.js → browser/esm/CrIcPnRynBYfe_Pk.mjs} +261 -169
- package/browser/esm/{B0Z8VrL6RioP-2R02.mjs → CuV98lDmbEhW59Ae2.mjs} +1440 -1400
- package/browser/esm/{AwRapR2kwqYVijeW.mjs → Cum9BHrpjoznUf1x.mjs} +1 -1
- package/{cdn/assets/BfZiZa7P8RpKrStu2.js → browser/esm/Cw3vteUwx6OB-6Iy.mjs} +1 -1
- package/browser/esm/{U7ZDW4cwSiPyirkE.mjs → Cz7kfadeRVZBAMZ_.mjs} +1 -1
- package/browser/esm/{CZrkJteg0C4_fGBy2.mjs → D1n9gH9C8i-si_ty2.mjs} +7 -7
- package/browser/esm/{CiMRlH1xk4i9IiEn.mjs → D3X5GNunddfnKs212.mjs} +1 -1
- package/{cdn/assets/ClQiq37bto-oxKtL2.js → browser/esm/D8IjVu2OXXsBZUqt2.mjs} +1 -1
- package/{cdn/assets/ERmTt8XRToIi7stb2.js → browser/esm/D8jCy3zoIlOA1GAR.mjs} +1 -1
- package/browser/esm/{BG_6y3dWHiR8LpP-2.mjs → D94ChP2mwu_ThODV2.mjs} +1 -1
- package/{cdn/assets/CPgdrQexyUXiviTo.js → browser/esm/DDA9KIxPv8iiAvvy2.mjs} +1 -1
- package/{cdn/assets/CnBG1teWhE7BlvvP.js → browser/esm/DEVCQtXhk-o9aGOV2.mjs} +2 -2
- package/browser/esm/{5FA-4PCi5EIs85WR2.mjs → DEhdjB_Iw2iMcmZh2.mjs} +2 -2
- package/{cdn/assets/CFKZFbkoc-8gG0EH.js → browser/esm/DGsj2g4x9odoy93a.mjs} +1 -1
- package/browser/esm/{i8BR1tNQSYLz-zpk.mjs → DIzd82jYSriheVOz.mjs} +3 -3
- package/{cdn/assets/CiUtfAMZeVao4r9g2.js → browser/esm/DJt8usFidNohlcHI.mjs} +1 -1
- package/browser/esm/{D36mtiddUg8k6tPW.mjs → DL_3sKPWBfJtpaG3.mjs} +2 -2
- package/browser/esm/{CRNpbge-G8dLIqk9.mjs → DM4ub7OPobMAcSmy.mjs} +2 -2
- package/browser/esm/{DOwrrqcb3f3wDR3B.mjs → DNTtMdjOWrGcqQGh.mjs} +24 -24
- package/browser/esm/{DuwZ5U8z5dBDeSgO.mjs → DNvbB1BNwBuI3ZDp.mjs} +8 -8
- package/browser/esm/{BiHOntEpAjSdwJmu.mjs → DTJrlUtokRNyzKgl.mjs} +12 -12
- package/{cdn/assets/XGGjX0z3ae_AWeTr2.js → browser/esm/DTNjbBBLszx7DUAS.mjs} +1 -1
- package/browser/esm/DTvl6pZYgFJuU2Pu.mjs +226 -0
- package/{cdn/assets/Bd-Kkar9gnLuKTRo.js → browser/esm/DUGWe5q5hsRZixNX.mjs} +1 -1
- package/{cdn/assets/ChKDkoQeoZMHq0r7.js → browser/esm/DVdhEB3_SE9GEpGw2.mjs} +1 -1
- package/browser/esm/{7bhO6Xzgwllu2tcj2.mjs → DZZ6PVue8DUBcarK2.mjs} +1 -1
- package/browser/esm/{BThp5CcmvMVU7Frk2.mjs → DadeKQvFAZsAqr0O.mjs} +2 -2
- package/{cdn/assets/COqWk0Oh4IaPrTm7.js → browser/esm/DadeKQvFAZsAqr0O2.mjs} +2 -2
- package/browser/esm/{CP2cFopeWN8lQpif.mjs → DbqBX9ozs-Ibg67w.mjs} +5 -5
- package/browser/esm/{CIfWyeqd8SBHxpym2.mjs → Dbr_OAl6EZskoqcA2.mjs} +10 -10
- package/browser/esm/{BZiMIYsX6zktg4iD2.mjs → DfsFfH7JQJvdJWFk2.mjs} +22 -22
- package/{cdn/assets/BjCuy-yO9BQxUj_2.js → browser/esm/Dg79tbN27bDhGeRt2.mjs} +1 -1
- package/browser/esm/{CsDejQBEe09RdeRI.mjs → DhCFbzZIeOF7kqNn.mjs} +1 -1
- package/browser/esm/{BfRnXrO08JOzICDf2.mjs → DhJ6QuQLZNVmamW_2.mjs} +1 -1
- package/browser/esm/{BUbwA9WVFeKfIV6H.mjs → DlWcxpzc1O-m1M2B.mjs} +1 -1
- package/browser/esm/{BFAAw3m7wW7Wnf8i2.mjs → DlZq7EB3pYTCoBZR2.mjs} +1 -1
- package/{cdn/assets/DsGBg42mflMr5nWn2.js → browser/esm/Do4OOIYh99i3VXc5.mjs} +1 -1
- package/browser/esm/{B6wW3holuLEkDOgD.mjs → DqCCvSVY6MZWH0Z3.mjs} +212 -212
- package/{cdn/assets/00bUQB6RgRxfotbx2.js → browser/esm/DwhwEhNA_QFs_EaZ.mjs} +1 -1
- package/{cdn/assets/DoVrePIXmzfLRmKR2.js → browser/esm/Dyt46qi3aJZ-CbpB.mjs} +2 -2
- package/browser/esm/{DNtf7XnGnTZmf9SF.mjs → EIHzG71M5NOvWayY.mjs} +6 -6
- package/{cdn/assets/Cz77LBaC6qe0hPm0.js → browser/esm/Gj5vl7eMC5BSe_812.mjs} +1 -1
- package/browser/esm/{3763dmlGYD95oq8Z.mjs → ISZRBrb20f_6C_zc.mjs} +897 -794
- package/browser/esm/{BYha1NqMzu8G7ReU.mjs → KwY2kcMBX2jKweTI.mjs} +7 -7
- package/browser/esm/{D_tGKL5JvKpHg5Se2.mjs → OPJN-aKuq0geLnJ82.mjs} +1 -1
- package/browser/esm/{q4b66GxkR8TkSiGY2.mjs → Q53pq80r1Yi_tt2g2.mjs} +11 -11
- package/browser/esm/{CxYnCECXc2PyTCrn.mjs → SVBLkue4Zu6FnHvb.mjs} +506 -506
- package/browser/esm/{BJk7BkFlT-d2_MDc.mjs → Tg2o581Nj1mxbygb.mjs} +4 -4
- package/browser/esm/{ooXd7RLQr67NrRz9.mjs → UWBAgk6dmyMdUUrv.mjs} +210 -124
- package/browser/esm/{DiZjLPj4GVJccT-7.mjs → XR6551Psdm-EtuN0.mjs} +2 -2
- package/browser/esm/{CsG9IQdgctp6tf2X2.mjs → acwoMYe1beI5Wrq12.mjs} +1 -1
- package/{cdn/assets/BouiFjb9pyWsROiW.js → browser/esm/b3BWQGDBSQ4mCgD22.mjs} +1 -1
- package/browser/esm/{DdSdpckWJszr8vE72.mjs → clnF8RB-rpJTNpPY2.mjs} +7 -7
- package/browser/esm/{DkUKK8YkXuoIqQIx.mjs → h-_FZQM0bW_2jNsi.mjs} +846 -844
- package/browser/esm/{CIsuqkDFqRaqaULt.mjs → i3SHwvlGdsJN8P5k.mjs} +1 -1
- package/{cdn/assets/BCWx6QCIVIKOKt9n.js → browser/esm/iV1cp5WFOBxaJU3W2.mjs} +1 -1
- package/browser/esm/{DmBNtqAUPAi3RnfW2.mjs → iaMUH1DY_mh9eilR2.mjs} +9 -9
- package/browser/esm/index.mjs +6 -6
- package/browser/esm/{BO6Lz-qmEF5k4ZPU.mjs → wr5fEooS-ldJhkIW.mjs} +9685 -8547
- package/browser/esm/{Di2yc0eSWx4sqa1t2.mjs → yCxQIbbRhwpsIqJu2.mjs} +18 -4
- package/browser/esm/{B3WsFHUqTcKWNGy_.mjs → zW5-tVai7f63Nz_O.mjs} +4322 -3757
- package/browser/esm/{B1uljoK1sRsKmI6N2.mjs → zvbdtZ85j__-6Pqt2.mjs} +80 -80
- package/cdn/assets/{BiQlKPbuRw8sLCC5.js → -w9ufIOw-Om_-Wms2.js} +7 -7
- package/cdn/assets/{CmNtmMkhbzV8j_I0.js → 4DbJWOjJvf-TOYkv.js} +1 -1
- package/cdn/assets/{rUQqpcI_WXcsiwea.js → 4UIqAp3dgLTz_jQl.js} +1 -1
- package/cdn/assets/{CZuu-bOdg704oDMV2.js → 5frl5yk1BX9u5Bd42.js} +22 -22
- package/cdn/assets/{BInccbDEuHGg1a2y2.js → 95Rg6-R77DB8vhtt2.js} +81 -81
- package/cdn/assets/{Bhat781Vzqa1jNlj.js → 9zNnsHPCP6dNE6dt.js} +3 -3
- package/cdn/assets/{BeQYgyU20NLEnFql.js → AlSePay9xNV3_6bb2.js} +1 -1
- package/cdn/assets/AwPuLKuYMSM7s2v_2.js +227 -0
- package/cdn/assets/{DXuBmWXG49kvaZNr.js → B-_shlNzdU5vK6-F.js} +1 -1
- package/cdn/assets/{C1HfU9WnOyE_81Y22.js → B1rPJEAA5dgS-yuD2.js} +9 -9
- package/cdn/assets/{CRepp6I1poWZwijy2.js → B2PZWx8od3IEHy4E2.js} +7 -7
- package/{browser/esm/Cm_bL9sY_cm-k_Pq.mjs → cdn/assets/B2bYjv0KEa2vjuau2.js} +1 -1
- package/cdn/assets/{BcGLaH5XYmlLx2is2.js → B4ij2yZFJa5IX7Gk2.js} +9 -9
- package/cdn/assets/{qBcxlsrimi009WnV.js → B4o5v-hrdGJbyWK4.js} +2 -2
- package/cdn/assets/{BljA9tG92oDDEqjC2.js → B6QNFqmlZvu6dS4Z2.js} +8 -8
- package/cdn/assets/{N9sXUCWDhn_zpuR22.js → B7DAcnxzPv0cz6GS2.js} +1 -1
- package/cdn/assets/{CNBdjbsAfeLxOXNu.js → B89OWCXpyImxK0eb.js} +1 -1
- package/cdn/assets/{RnavifpmQlGK2gal.js → BC5CAuRYyJJli2nd.js} +2 -2
- package/cdn/assets/{C9QsQZR03iUbXGDd2.js → BCECU4i5lxfS0Udy.js} +1 -1
- package/{browser/esm/DtFBvTH8ScTC26Xd.mjs → cdn/assets/BDn_jC98FsiXZwGr.js} +1 -1
- package/{browser/esm/p-0E4OSYsnvo4Jvb2.mjs → cdn/assets/BG5ptu1QVVE32_SU.js} +1 -1
- package/{browser/esm/BcdWHWjggmDQ6_Zx2.mjs → cdn/assets/BHQdCxqlomq-292-.js} +118 -118
- package/{browser/esm/Be_zCt9smEb4NVGF.mjs → cdn/assets/BH_TN28AGDJoWsiz.js} +2 -2
- package/cdn/assets/{BY7a2KqdhpxV2mYN.js → BP16A2unTwME_JUN.js} +2 -2
- package/cdn/assets/{FG3AVHTW-X8T6X6V2.js → BPzCgPCFw6OXBqtP2.js} +8 -8
- package/cdn/assets/{Dr3NMWk6K4-HWYsp.js → BQemec4LLoAl92_B.js} +1 -1
- package/cdn/assets/{DiViqDuRVTrNy_8T2.js → BRVkA5J9pds0HKNi2.js} +2 -2
- package/cdn/assets/{DrVaoGzrL25jLUGy.js → BRXqd83y_8Jm2IXn.js} +231 -231
- package/cdn/assets/{CNJExdRjs2zrq2QI2.js → BUHOArLYzXBeYzXy.js} +12 -12
- package/{browser/esm/cwwLkCUZ083FPUTU2.mjs → cdn/assets/BUxPCLlW-ZMhy0kO.js} +2 -2
- package/{browser/esm/7XkdeYBragcPQQS0.mjs → cdn/assets/BXlBCVkeDEYvDBJB.js} +1 -1
- package/cdn/assets/{C62Y8jSQuT2_lqUs2.js → BYk8t-CVbU8h5jS62.js} +1 -1
- package/cdn/assets/{0Jeqx95iG9faxIsB.js → BZSwuzPkthzsadzX.js} +8 -8
- package/cdn/assets/{Buwn5fZU7jRx2O2L2.js → Bb2eLL0IUxmGT8uG2.js} +8 -8
- package/{browser/esm/B5SNHCcrvOdUn7Vu.mjs → cdn/assets/Bcwk_FRKVLyPomW4.js} +331 -239
- package/cdn/assets/{BNSYILHKGtNTW6AH2.js → BgJZVus3WAJnbiwZ2.js} +14 -14
- package/{browser/esm/NLHUljnhbCboNbaU.mjs → cdn/assets/Bhz4-fERBAhVf8ze2.js} +1 -1
- package/{browser/esm/BQRlxHPPnb-Xp7mx.mjs → cdn/assets/Bis-2jH6YBF6g66T2.js} +1 -1
- package/{browser/esm/DQXXQ7c_080TSD18.mjs → cdn/assets/BlYbn-3NJeiQ8dVU.js} +1 -1
- package/cdn/assets/{CU-pICtgXW5Kn0sP.js → BmcgeYHDyFh865ey.js} +3467 -3385
- package/{browser/esm/DYoBCnD1PVzOITgb2.mjs → cdn/assets/Bo5_yVXoppQHxkAs.js} +1 -1
- package/cdn/assets/{DLBKxOA2T_WJvvvH2.js → BrZcNYdz3ufxcsyF2.js} +10 -10
- package/{browser/esm/LryKLHFrshlshCEk2.mjs → cdn/assets/Bw8V5WPmS2yA3Nli.js} +1 -1
- package/cdn/assets/{DCY3GQ5g02kgKrPz.js → Bx_8Vgu2B9rmr3So.js} +1 -1
- package/cdn/assets/{DilLxTePPshHHpSq.js → C06Yqqvfz4f-vnXA.js} +6 -6
- package/{browser/esm/C_6kPChYiQzj6w3V2.mjs → cdn/assets/C0vo8lE4bLKFYxkh2.js} +1 -1
- package/cdn/assets/{DwB2Aw3VeP0bDUcu2.js → C2cKoe4Zik7iVYe42.js} +23 -23
- package/cdn/assets/{BqT5uCSFT_HATJJw.js → C7svWLuGopr_jw0t.js} +1 -1
- package/cdn/assets/{C2-SeODnwo_GR5pz.js → C8XBql0-rVxPPgdF.js} +508 -508
- package/cdn/assets/{DVRMsPYzWC08As4p.js → CAC_xDUcFxj4WkGc.js} +1068 -965
- package/cdn/assets/{CkGtAcs5pCYCEP8p.js → CB2GXUrOhyLmnsVF2.js} +210 -124
- package/cdn/assets/{C3D_ZF-8-b6d8y4e2.js → CBrZYomkgb7qvYFr2.js} +2 -2
- package/{browser/esm/CqheKk46etN--iuw2.mjs → cdn/assets/CCAmUEfkNvVwKNOo.js} +1 -1
- package/{browser/esm/_WaFh_cvGeblogUn2.mjs → cdn/assets/CCauT418WamqPMCO.js} +1 -1
- package/{browser/esm/I5pKfeOLCqhpzdsw.mjs → cdn/assets/CIT0V8cmnyP4zirK2.js} +1 -1
- package/cdn/assets/{yg7AU6dKBI7tCqJd.js → CIwWrEXfSN_3khPI2.js} +1 -1
- package/cdn/assets/{BPh6sTO11J2UoKVG.js → COLxuIHK4CwKSCmM.js} +1 -1
- package/cdn/assets/{Doj9y5S2cMVRtP1D.js → CPrgeFAwr7BHqmHu.js} +8 -8
- package/{browser/esm/DN6XiWA9mgKCYBL72.mjs → cdn/assets/CUQpAR2c-_Pwu2Eu.js} +1 -1
- package/cdn/assets/{CVV-QxmM_7vUYzFC2.js → CZQe_58fmtS0SgdD2.js} +1 -1
- package/cdn/assets/{ClrdhQeh_WoBg0Ws.js → C_VwHa0tEc_OcSRF.js} +1 -1
- package/{browser/esm/DDfhrc6lUmerlDLA2.mjs → cdn/assets/CeT8chcNlkKehyJE.js} +1 -1
- package/{browser/esm/CQi9Ek-nl9QWmoMC2.mjs → cdn/assets/Cfob6FEkwxaSK3jd.js} +1 -1
- package/{browser/esm/DwpzhMm9SjvmHEpB.mjs → cdn/assets/CiKHaK_kIAhKfCdO2.js} +1 -1
- package/cdn/assets/{Ks5Tzjg6SEeoLe6a.js → CjYlIFqHaDFiZlal2.js} +31 -31
- package/cdn/assets/{Bijn-3ZS9ONia1ja.js → Cjeb-kMHzEUFlM_l.js} +8 -8
- package/cdn/assets/{BJ74o1RxHOu_KTYD2.js → Cjrrmg-P0lKlzEfq2.js} +89 -89
- package/cdn/assets/{BXV_vaLwr-mEvH-k.js → CqFpYuZRY1Oa6Kdj.js} +7 -7
- package/cdn/assets/{AwRapR2kwqYVijeW2.js → Cum9BHrpjoznUf1x.js} +1 -1
- package/{browser/esm/BfZiZa7P8RpKrStu.mjs → cdn/assets/Cw3vteUwx6OB-6Iy.js} +1 -1
- package/cdn/assets/{U7ZDW4cwSiPyirkE2.js → Cz7kfadeRVZBAMZ_2.js} +1 -1
- package/cdn/assets/{DtOWX0kdgZMsDoO7.js → D14aC0o9d5RZrVJo.js} +8 -8
- package/cdn/assets/{CiMRlH1xk4i9IiEn.js → D3X5GNunddfnKs21.js} +1 -1
- package/cdn/assets/{Cr34xFdpfmYj3XVX.js → D4a2UOIcVrZtupKH.js} +5519 -4954
- package/{browser/esm/ClQiq37bto-oxKtL.mjs → cdn/assets/D8IjVu2OXXsBZUqt.js} +1 -1
- package/{browser/esm/ERmTt8XRToIi7stb.mjs → cdn/assets/D8jCy3zoIlOA1GAR2.js} +1 -1
- package/cdn/assets/{BG_6y3dWHiR8LpP-.js → D94ChP2mwu_ThODV.js} +1 -1
- package/cdn/assets/{CX7_0zQyYWqVfYUE2.js → DAUF2tc_qrKzAbp32.js} +10 -10
- package/{browser/esm/CPgdrQexyUXiviTo.mjs → cdn/assets/DDA9KIxPv8iiAvvy.js} +1 -1
- package/cdn/assets/{D6g5-9e1xAhCBLKs2.js → DEgXvxiW0vq9ppwM2.js} +20494 -19356
- package/cdn/assets/{5FA-4PCi5EIs85WR.js → DEhdjB_Iw2iMcmZh.js} +2 -2
- package/cdn/assets/{TA52Zf5ZMCu6I721.js → DFvNGCdvSx5VASsE.js} +2 -2
- package/{browser/esm/CFKZFbkoc-8gG0EH.mjs → cdn/assets/DGsj2g4x9odoy93a.js} +1 -1
- package/cdn/assets/{BEcgIVa19rKPTwlt2.js → DHAWMS42nJvjdtuv2.js} +25 -25
- package/cdn/assets/{BlPAZIJrjbcHxcJj.js → DJ1m0LQ8vRMX16Tx2.js} +777 -775
- package/{browser/esm/CiUtfAMZeVao4r9g.mjs → cdn/assets/DJt8usFidNohlcHI2.js} +1 -1
- package/cdn/assets/{C6FGZZf4iXdgdE2p2.js → DOFrZ-RMlv0mEbr62.js} +43 -43
- package/cdn/assets/{DhJUo9PMmo1COlmU2.js → DQJgLUaP7Ha_fkvr2.js} +1685 -1645
- package/cdn/assets/{DW_9fxHbJWAA6hS7.js → DR7GcNKO8jkJSCQs.js} +3 -3
- package/cdn/assets/{ByMjPzoTrB6veNzc2.js → DRJzNrQ15sOSjd2e2.js} +12 -12
- package/{browser/esm/XGGjX0z3ae_AWeTr.mjs → cdn/assets/DTNjbBBLszx7DUAS2.js} +1 -1
- package/{browser/esm/Bd-Kkar9gnLuKTRo2.mjs → cdn/assets/DUGWe5q5hsRZixNX2.js} +1 -1
- package/{browser/esm/ChKDkoQeoZMHq0r72.mjs → cdn/assets/DVdhEB3_SE9GEpGw.js} +1 -1
- package/cdn/assets/{B1eVAWzwtBE6vo-r.js → DXLCCNbizOqKHb2c.js} +2 -2
- package/cdn/assets/{7bhO6Xzgwllu2tcj.js → DZZ6PVue8DUBcarK.js} +1 -1
- package/cdn/assets/{BKrWCWpOpggPjFQq2.js → D_0WWqsqXJL1liYE.js} +9 -9
- package/cdn/assets/{POvNgF4k1Kibh6Db.js → DdtqpY-XqWQemNlu.js} +6 -6
- package/{browser/esm/BjCuy-yO9BQxUj_22.mjs → cdn/assets/Dg79tbN27bDhGeRt.js} +1 -1
- package/cdn/assets/{CsDejQBEe09RdeRI2.js → DhCFbzZIeOF7kqNn2.js} +1 -1
- package/cdn/assets/{BfRnXrO08JOzICDf.js → DhJ6QuQLZNVmamW_.js} +1 -1
- package/cdn/assets/{BUbwA9WVFeKfIV6H.js → DlWcxpzc1O-m1M2B.js} +1 -1
- package/cdn/assets/{BFAAw3m7wW7Wnf8i.js → DlZq7EB3pYTCoBZR.js} +1 -1
- package/{browser/esm/DsGBg42mflMr5nWn.mjs → cdn/assets/Do4OOIYh99i3VXc52.js} +1 -1
- package/cdn/assets/{BVFVnXqCCuycZFnG.js → DsDi-rMPWyWzWitl.js} +4 -4
- package/cdn/assets/DwhwEhNA_QFs_EaZ.js +24 -0
- package/cdn/assets/DwhwEhNA_QFs_EaZ2.js +24 -0
- package/cdn/assets/{CNJDMOYg-cuIfNfJ.js → DxzX_-E3wr0c8-0b.js} +17 -3
- package/cdn/assets/{kgHG0ixsMXmNdu8U.js → Dy9SlSZp3B0IfxZM.js} +7 -7
- package/cdn/assets/{DtumfSbgP4e8W8h3.js → EcoVJH4is9c6hPnS.js} +2 -2
- package/cdn/assets/{BZpQlzDFTqlBTj8r.js → GABbnj9qIWyEbare2.js} +125 -124
- package/{browser/esm/Cz77LBaC6qe0hPm02.mjs → cdn/assets/Gj5vl7eMC5BSe_81.js} +1 -1
- package/cdn/assets/{CweS1pLcEo28_Fd3.js → I2O4wgRVKQfD0EvR.js} +3 -3
- package/cdn/assets/{hbYg8nwB--Ouo3PE2.js → IfWL5kbc_82yS9Ek2.js} +11 -11
- package/cdn/assets/{DE2W5y4QJln8ofNW2.js → JGftuh24rk6BMfkr2.js} +138 -138
- package/cdn/assets/{ZGRko_YhO95NyKLu.js → Mo49UfLrLCgf_5pV2.js} +488 -488
- package/cdn/assets/{CdP9qTlDd3C1oYJE.js → NaYNBS42-TDUcEoM.js} +849 -847
- package/cdn/assets/{D_tGKL5JvKpHg5Se.js → OPJN-aKuq0geLnJ8.js} +1 -1
- package/cdn/assets/{B3XQHzZTHSzv7fpC.js → Oh10DZZ2Ac49rAQC.js} +5 -5
- package/cdn/assets/{C5JHyXmpBXqT829C.js → WkWv2DINRHwBdTOP.js} +301 -301
- package/{browser/esm/BThp5CcmvMVU7Frk.mjs → cdn/assets/XCCi1PHPbJ6YaXx3.js} +2 -2
- package/cdn/assets/{DFs_9gdet_-cO7iH.js → aFMcUoW7eSrX_WvX.js} +2 -2
- package/cdn/assets/{CsG9IQdgctp6tf2X.js → acwoMYe1beI5Wrq1.js} +1 -1
- package/{browser/esm/BouiFjb9pyWsROiW2.mjs → cdn/assets/b3BWQGDBSQ4mCgD2.js} +1 -1
- package/cdn/assets/{CRGjj70fiZgAfoOZ2.js → bTb_qWNZ9gqpiDKP2.js} +6 -6
- package/cdn/assets/{NHd14bmjDunGi64w2.js → gB5jSIc2WRvZWgrs2.js} +5 -5
- package/cdn/assets/{CIsuqkDFqRaqaULt2.js → i3SHwvlGdsJN8P5k2.js} +1 -1
- package/{browser/esm/BCWx6QCIVIKOKt9n2.mjs → cdn/assets/iV1cp5WFOBxaJU3W.js} +1 -1
- package/cdn/assets/{Bzv3-2eiz66ZkXnN.js → tEVV1QDIj2xjwhXe.js} +4 -4
- package/cdn/assets/{61OH_HiXgmNuRUDx2.js → v49CyNYkIHP85Zly2.js} +73 -73
- package/cdn/index.js +2 -2
- package/package.json +3 -3
- package/browser/cjs/9Fb0mL7xhqVmVTQp.cjs +0 -3
- package/browser/cjs/BItTNeA_ukOziuTp.cjs +0 -41
- package/browser/cjs/CQd4PPsP2BuocLDM.cjs +0 -2
- package/browser/cjs/CSWmGDsxPB7HVJiO2.cjs +0 -1
- package/browser/cjs/D689Ek3LK_7M1YS9.cjs +0 -14
- package/browser/cjs/D6OTRWh1ys5CR_lb.cjs +0 -1
- package/browser/cjs/DDvxqFQeKcwQCcgl2.cjs +0 -1
- package/browser/cjs/DNnMGL1ff8hutxSd.cjs +0 -1
- package/browser/cjs/DggQv_m8hwCk0ZPk.cjs +0 -11
- package/browser/cjs/DjAg1qKbGRcCxZG2.cjs +0 -1
- package/browser/cjs/DlAHUQXBMc-ZTn_c.cjs +0 -32
- package/browser/cjs/DniLHjmREpdi1cFx.cjs +0 -1
- package/browser/cjs/DqnvNfw5YpO2rdty2.cjs +0 -1
- package/browser/cjs/DuQsMI_VBrtewlPT2.cjs +0 -8
- package/browser/cjs/DunGPPWyXlG69yIV2.cjs +0 -1
- package/browser/cjs/Dw7oGgh_7fEPOoIV2.cjs +0 -3
- package/browser/cjs/LMZmmGBTj9hqFwwu2.cjs +0 -1
- package/browser/cjs/VSzadbRbgIx_c4Y7.cjs +0 -1
- package/browser/cjs/gsOqF4MyYN9gz4oo.cjs +0 -5
- package/browser/cjs/hHVT-pzS2bhjFHSL.cjs +0 -93
- package/browser/cjs/jW0ar9T4rYfgy_4N.cjs +0 -1
- package/browser/cjs/y4PTOoQv-PlD-vAG2.cjs +0 -1
- package/browser/esm/CXT9wGUombXj7n-s2.mjs +0 -98
- package/browser/esm/CmmaFuVaTfOm96g4.mjs +0 -225
- package/cdn/assets/3o0o7-MzWgSJRADP2.js +0 -99
- package/cdn/assets/BLKL_d2AFcnL6fbw2.js +0 -226
- package/cdn/assets/BVri2gMOX526uJV5.js +0 -24
- package/cdn/assets/BVri2gMOX526uJV52.js +0 -24
- /package/browser/cjs/{507hQYooKKjnRzsZ.cjs → 507hQYooKKjnRzsZ2.cjs} +0 -0
- /package/browser/cjs/{B6vy56yEA1I3B74O.cjs → B6vy56yEA1I3B74O2.cjs} +0 -0
- /package/browser/cjs/{BWDfauDHqB6U_2ka.cjs → BWDfauDHqB6U_2ka2.cjs} +0 -0
- /package/browser/cjs/{C0g87ndP2zMUbX6f.cjs → C0g87ndP2zMUbX6f2.cjs} +0 -0
- /package/browser/cjs/{C2uDl8VIJqh58YF_.cjs → C2uDl8VIJqh58YF_2.cjs} +0 -0
- /package/browser/cjs/{C9q3zr8iCIoYDrdA2.cjs → C9q3zr8iCIoYDrdA.cjs} +0 -0
- /package/browser/cjs/{CW-b31_-r-_raT8Y2.cjs → CW-b31_-r-_raT8Y.cjs} +0 -0
- /package/browser/cjs/{CrZlUtdX1h2RUnCP.cjs → CrZlUtdX1h2RUnCP2.cjs} +0 -0
- /package/browser/cjs/{D8-KovdJ0LjxqCe22.cjs → D8-KovdJ0LjxqCe2.cjs} +0 -0
- /package/browser/cjs/{DSXLVieENYN9qXYl2.cjs → DSXLVieENYN9qXYl.cjs} +0 -0
- /package/browser/cjs/{Dtxj9JR14A-uliu52.cjs → Dtxj9JR14A-uliu5.cjs} +0 -0
- /package/browser/cjs/{Dx7GQ4ALtNG3kshu2.cjs → Dx7GQ4ALtNG3kshu.cjs} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./B7_pDFYCVzt-3hUs.cjs"),t=require("./Ytzw6iUYx5f19wfK.cjs"),n=require("./Bj3YkKmVIoQ3YtYm.cjs"),r=require("./CjqMMBQ8Kk0moB_z.cjs"),i=require("./DrdQTBiFulmvlRaX.cjs"),a=require("./BItTNeA_ukOziuTp.cjs"),o=require("./CIDcABwPAtKB7XVf.cjs"),s=require("./DxHsJ5c6KlwGpED6.cjs"),c=require("./CpSKXzK-k_sOImbA.cjs"),l=require("./DRRqcawQ_OlK5O2S.cjs"),u=require("./BqfmTrd9tnu_owvN.cjs"),d=require("./D6OTRWh1ys5CR_lb.cjs");var f=e.r(t.i(),1),p=e.r(t.r(),1),m=(0,f.memo)(e=>{let{context:t,selected:d,onChangeSelected:m,onActivate:h,autoFocus:g=!1,className:_}=e,v=i.Ot(),y=a.j(),[b,x]=(0,f.useState)([]),[S,C]=(0,f.useState)(`*`),[w,T]=(0,f.useState)(``),[E,D]=(0,f.useState)(``),[O,k]=(0,f.useState)([]),[A,j]=(0,f.useState)(null),M=(N=S)===`*`?void 0:N;var N;let P=(0,f.useRef)(null),F=(0,f.useRef)(null),I=(0,f.useId)(),L=e=>`${I}${e}`;(0,f.useEffect)(()=>{let e=setTimeout(()=>D(w.trim()),150);return()=>clearTimeout(e)},[w]),(0,f.useEffect)(()=>{g&&F.current?.focus()},[g]),(0,f.useEffect)(()=>{let e=!1;return(async()=>{let n=await t?.()?.getCategories()??[];e||x(n)})(),()=>{e=!0}},[t]);let R=i.X(m,[m]);(0,f.useEffect)(()=>{let e=!1;return(async()=>{let n=t?.();if(!n)return;let r=E?await n.searchByText(E,{category:M,limit:100}):await n.searchByCategory(M);e||(k(r),R(r[0]??null))})(),()=>{e=!0}},[t,M,E,R]),(0,f.useEffect)(()=>{if(!d)return void j(null);let e=!1,t=d.getName();return d.getDescriptor().then(n=>{e||j(a.M(t,n))}).catch(()=>{e||j(null)}),()=>{e=!0}},[d]);let z=d&&A?.name===d.getName()?A.summary:null,B=(0,f.useMemo)(()=>d?a.pt(d,{locale:y?.getLocale()}):null,[d,y]),V=i.X(e=>{O.length!==0&&R(O[Math.min(O.length-1,Math.max(0,e))])},[O,R]),H=i.X(e=>{let t=d?O.indexOf(d):-1;V(t+e)},[O,d,V]),U=i.X(e=>{if(e.isDefaultPrevented())return;let t=P.current?.contains(e.target)??!1;switch(e.keyCode){case i.Zt.Down:H(1);break;case i.Zt.Up:H(-1);break;case i.Zt.PageDown:H(10);break;case i.Zt.PageUp:H(-10);break;case i.Zt.Home:if(!t)return;V(0);break;case i.Zt.End:if(!t)return;V(O.length-1);break;default:return}e.preventDefault()},[H,V,O]);(0,f.useEffect)(()=>{if(!d)return;let e=P.current,t=e?.querySelector(`[data-selected="true"]`);e&&t&&n.b.scrollIntoContainer(e,t)},[d]);let W=(0,f.useMemo)(()=>O.map(e=>{let t=e.getName(),n=e===d;return(0,p.jsx)(i.t,{id:L(t),component:`div`,role:`option`,"aria-selected":n,"data-selected":n,onMouseDown:e=>{e.button===0&&e.preventDefault()},onClick:()=>R(e),onDoubleClick:()=>{h?.()},sx:{paddingBlock:`1px`,cursor:`default`,fontSize:`0.8rem`,fontFamily:e=>e.typography.fontFamily,"& .named-item-name":{fontFamily:`var(--sxl-font-family-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace)`},backgroundColor:n?`action.selected`:void 0,"&:hover":{backgroundColor:n?`action.selected`:`action.hover`}},children:(0,p.jsx)(a.X,{item:{name:t,kind:e.isLambda()?`lambda`:`function`},summary:n?z:null,wrapSummary:!0})},t)}),[O,d,z,R,h]);return(0,p.jsxs)(i.t,{className:_,onKeyDown:U,sx:{height:`415px`,flex:`1 1 auto`,minHeight:0,boxSizing:`border-box`,paddingTop:e=>e.spacing(1.5),display:`flex`,flexDirection:`column`,rowGap:e=>e.spacing(2)},children:[(0,p.jsx)(s.t,{size:`small`,fullWidth:!0,label:v(`insertFunction.searchLabel`),value:w,inputRef:F,onChange:e=>T(e.target.value),sx:{flexShrink:0},slotProps:{input:{startAdornment:(0,p.jsx)(u.t,{position:`start`,children:(0,p.jsx)(r.r,{iconKey:`Find`})}),endAdornment:w?(0,p.jsx)(u.t,{position:`end`,children:(0,p.jsx)(c.T,{"aria-label":v(`insertFunction.clearSearch`),propsTooltip:{label:v(`insertFunction.clearSearch`)},onMouseDown:e=>{e.button===0&&e.preventDefault()},onClick:()=>T(``),icon:(0,p.jsx)(r.r,{iconKey:`Close`}),size:`small`})}):void 0},htmlInput:{className:`autoFocus`,spellCheck:!1,autoComplete:`off`}}}),(0,p.jsxs)(s.t,{select:!0,size:`small`,fullWidth:!0,label:v(`insertFunction.categoryLabel`),value:S,onChange:e=>C(e.target.value),slotProps:{inputLabel:{shrink:!0}},sx:{flexShrink:0},children:[(0,p.jsx)(l.t,{value:`*`,children:v(`insertFunction.categoryAll`)}),b.map(e=>(0,p.jsx)(l.t,{value:e.name,children:e.name},e.name))]}),(0,p.jsx)(i.t,{ref:P,role:`listbox`,className:`function-list`,"aria-label":v(`insertFunction.listLabel`),tabIndex:0,"aria-activedescendant":d?L(d.getName()):void 0,onFocus:()=>{d||V(0)},sx:{flex:`1 1 0`,minHeight:`80px`,overflowY:`auto`,position:`relative`,border:`1px solid`,borderColor:`divider`,borderRadius:`4px`,"&:focus-visible":{outline:`2px solid`,outlineColor:`primary.main`,outlineOffset:`-1px`},'&:focus-within [data-selected="true"], &:focus [data-selected="true"]':{backgroundColor:`action.selected`,boxShadow:e=>`inset 2px 0 0 ${e.palette.primary.main}`}},children:W.length>0?W:(0,p.jsx)(o.N,{sx:{padding:`8px`,color:`text.secondary`,fontSize:`0.85rem`},children:v(`insertFunction.noResults`)})}),(0,p.jsx)(i.t,{sx:{height:`5.5rem`,flexShrink:0,overflowY:`auto`,fontFamily:e=>e.typography.fontFamily,fontSize:`0.8rem`,lineHeight:`16px`},children:B?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(i.t,{sx:{padding:`0 10px`},children:(0,p.jsx)(a._t,{hint:B,wrap:!0})}),(0,p.jsx)(a.U,{hint:B,descriptor:A,showParameters:!1})]}):null})]})});m.displayName=`FunctionSearchPanel`;var h=(0,f.memo)(e=>{let{func:t,workbook:n,home:r,autoFocus:s=!1,onChangeCall:c,className:l}=e,u=i.Ot(),m=a.j(),h=n===void 0?m:n,[g,_]=(0,f.useState)([]),[v,y]=(0,f.useState)([]),[b,x]=(0,f.useState)([]),[S,C]=(0,f.useState)(null),[w,T]=(0,f.useState)(0),[E,D]=(0,f.useState)(null),O=(0,f.useRef)(null),k=(0,f.useRef)(new Map),A=(0,f.useMemo)(()=>t.getDeclaration().getParameters(),[t]),j=(0,f.useMemo)(()=>a.g(A,g),[A,g]),M=(0,f.useMemo)(()=>a.pt(t,{locale:h?.getLocale()}),[t,h]),N=(0,f.useMemo)(()=>a.k(M.nameLocal??M.name,j,g,{separator:M.argSeparator}),[M,j,g]);(0,f.useEffect)(()=>{c?.(N)},[N,c]),(0,f.useEffect)(()=>{let e=!1,n=t.getName();return t.getDescriptor().then(t=>{e||D(a.M(n,t))}).catch(()=>{e||D(null)}),()=>{e=!0}},[t]),(0,f.useEffect)(()=>{s&&(O.current?.querySelector(`input`))?.focus()},[s]);let P=i.X(e=>{let t=(k.current.get(e)??0)+1;return k.current.set(e,t),t},[]),F=i.X((e,t)=>{_(n=>{let r=n.slice();for(;r.length<=e;)r.push(``);return r[e]=t,r}),P(e),y(t=>{if(t[e]===void 0||t[e]===null)return t;let n=t.slice();return n[e]=null,n})},[P]),I=i.X((e,t)=>{x(n=>{if((n[e]??null)===t)return n;let r=n.slice();for(;r.length<=e;)r.push(null);return r[e]=t,r})},[]),L=i.X(async(e,t)=>{let n=P(e),r=null;try{r=t?a.ut(await t.evaluate()):null}catch{r=null}k.current.get(e)===n&&y(t=>{let n=t.slice();for(;n.length<=e;)n.push(null);return n[e]=r,n})},[P]);(0,f.useEffect)(()=>{let e=h?h.getSelectedSheet()?.getCalculation()??h.getCalculation():null,t=j.some((e,t)=>!e.optional&&!g[t]?.trim());if(!e||t||j.length>0&&!g.some(e=>e?.trim()))return P(-1),void C(null);let n=P(-1);(async()=>{let t=null;try{t=a.ut(await e.evaluate(N,{...r,target:`display`}))}catch{t=null}k.current.get(-1)===n&&C(t)})()},[N,h,r,g,j,P]);let R=(0,f.useMemo)(()=>{let e=b[w]?w:b.findIndex((e,t)=>!!e&&!!j[t]),t=e>=0?b[e]:null;return t?`${j[e]?.label}: ${u(t)}`:null},[b,w,j,u]),z=(0,f.useMemo)(()=>{let e=j[w];if(e&&E?.name===t.getName())return E?.params?.[e.descKey]?.description},[j,w,E,t]),B=(0,f.useMemo)(()=>j.map((e,n)=>(0,p.jsxs)(i.t,{sx:{display:`flex`,alignItems:`stretch`,columnGap:e=>e.spacing(1)},children:[(0,p.jsx)(d.t,{labelPlacement:`above`,label:(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(i.t,{component:`span`,sx:{overflow:`hidden`,textOverflow:`ellipsis`,fontFamily:`var(--sxl-font-family-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace)`,fontWeight:e.optional?400:700},children:e.label}),(0,p.jsx)(a.dt,{param:e.param,repeat:e.repeat,optional:e.optional,showType:!1,size:14})]}),placeholder:u(a.H(e.param)),showError:!1,helperText:null,onChangeError:e=>I(n,e),workbook:h,home:r,value:null,onChangeText:e=>F(n,e),onChangeInput:e=>{L(n,e)},onFocus:()=>T(n),argument:{fn:t,param:e.param},sx:{minWidth:0,flex:`1 1 55%`}}),(0,p.jsxs)(o.N,{component:`span`,sx:{flex:`1 1 45%`,minWidth:0,display:`flex`,boxSizing:`border-box`,paddingTop:d.r,alignItems:`center`,columnGap:`4px`,overflow:`hidden`,whiteSpace:`nowrap`,color:`text.secondary`,fontFamily:`var(--sxl-font-family-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace)`,fontSize:`0.8rem`},title:v[n]??``,children:[(0,p.jsx)(i.t,{component:`span`,"aria-hidden":!0,children:`=`}),(0,p.jsx)(i.t,{component:`span`,className:`function-arg-value`,sx:{minWidth:0,overflow:`hidden`,textOverflow:`ellipsis`},children:v[n]??``})]})]},e.key)),[t,j,v,h,r,F,I,L,u]);return(0,p.jsxs)(i.t,{ref:O,className:l,sx:{height:`450px`,flex:`1 1 auto`,minHeight:0,boxSizing:`border-box`,paddingTop:e=>e.spacing(1),display:`flex`,flexDirection:`column`,rowGap:e=>e.spacing(1),fontFamily:e=>e.typography.fontFamily,fontSize:`0.8rem`,lineHeight:`16px`},children:[(0,p.jsxs)(i.t,{sx:{height:`70px`,flexShrink:0,overflow:`hidden`},children:[(0,p.jsx)(i.t,{sx:{fontFamily:`var(--sxl-font-family-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace)`,color:`primary.main`,fontWeight:600,fontSize:`0.95rem`,lineHeight:`20px`,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`},children:M.nameLocal??M.name}),E?.name===t.getName()?(0,p.jsx)(i.t,{sx:{paddingTop:`2px`,color:`text.secondary`},children:E.summary}):null]}),(0,p.jsx)(i.t,{sx:{display:`flex`,flexDirection:`column`,flex:`1 1 0`,minHeight:`80px`,rowGap:`4px`,overflowY:`auto`,border:`1px solid`,borderColor:`divider`,borderRadius:`4px`,padding:e=>e.spacing(.5,1)},children:B}),(0,p.jsx)(i.t,{sx:{height:`48px`,flexShrink:0,overflowY:`auto`,color:`text.secondary`},children:z?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(i.t,{component:`span`,sx:{fontWeight:600},children:[j[w]?.label,`: `]}),z]}):null}),(0,p.jsx)(i.t,{sx:{display:`flex`,flexShrink:0,columnGap:e=>e.spacing(1),borderTop:`1px solid`,borderColor:`divider`,paddingTop:e=>e.spacing(1)},children:R?(0,p.jsx)(i.t,{className:`function-error`,sx:{color:`error.main`,minWidth:0,overflow:`hidden`,textOverflow:`ellipsis`},children:R}):(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(i.t,{sx:{color:`text.secondary`},children:u(`functionArguments.result`)}),(0,p.jsx)(i.t,{className:`function-result`,sx:{flex:`1 1 auto`,minWidth:0,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,fontFamily:`var(--sxl-font-family-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace)`},title:S??``,children:S??``})]})})]})});h.displayName=`FunctionArgumentsPanel`;var g=`insert-function-page`,_=Object.freeze({Next:`Next`,Back:`Back`,Insert:`Insert`}),v=(e,t)=>{let n={id:_.Insert,label:()=>t(`insertFunction.insert`)};return e===`arguments`?[n,{id:_.Back,label:()=>t(`insertFunction.back`)},`Cancel`]:[{id:_.Next,label:()=>t(`insertFunction.next`)},n,`Cancel`]},y=(0,f.memo)(e=>{let{context:t,page:n,selected:r,onChangeSelected:a,onActivate:o,onChangeCall:s,workbook:c,home:l,className:u}=e,[d,_]=(0,f.useState)(null);n===`arguments`&&r&&r!==d&&_(r);let v=n===`arguments`&&!!d;return(0,p.jsxs)(i.t,{sx:{display:`flex`,flexDirection:`column`,height:`450px`,flex:`1 1 auto`,minHeight:0},children:[(0,p.jsx)(i.t,{className:g,"data-page":`search`,hidden:v,sx:{display:v?`none`:`contents`},children:(0,p.jsx)(m,{className:u,context:t,selected:r,onChangeSelected:a,onActivate:o,autoFocus:!v})}),d?(0,p.jsx)(i.t,{className:g,"data-page":`arguments`,hidden:!v,sx:{display:v?`contents`:`none`},children:(0,p.jsx)(h,{className:u,func:d,workbook:c,home:l,autoFocus:v,onChangeCall:s},d.getName())}):null]})});y.displayName=`InsertFunctionWizard`,Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return v}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return m}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./B7_pDFYCVzt-3hUs.cjs"),t=require("./Ytzw6iUYx5f19wfK.cjs"),n=require("./Bj3YkKmVIoQ3YtYm.cjs"),r=require("./DrdQTBiFulmvlRaX.cjs"),i=require("./BPWKnUtyoTrtW567.cjs"),a=require("./hHVT-pzS2bhjFHSL.cjs"),o=require("./BItTNeA_ukOziuTp.cjs"),s=require("./CIDcABwPAtKB7XVf.cjs"),c=require("./Cw4BDzyIt0BkEzuh.cjs"),l=require("./ZsgZv9u2bNY2LY78.cjs"),u=require("./DxHsJ5c6KlwGpED6.cjs"),d=require("./DRRqcawQ_OlK5O2S.cjs"),f=require("./DOjeFFlUuGZs14pR.cjs");var p=e.r(t.i(),1),m=e.r(t.r(),1),h=`14px`,g={flex:`1 1 auto`,minWidth:e=>e.spacing(1),height:`1px`,backgroundColor:e=>e.palette.divider},_=Object.freeze([Object.freeze([a.D.Presets.Copy.id,a.D.Presets.Series.id]),Object.freeze([a.D.Presets.Linear.id,a.D.Presets.Growth.id]),Object.freeze([a.D.Presets.DateYears.id,a.D.Presets.DateMonthEnd.id,a.D.Presets.DateMonths.id,a.D.Presets.DateWeekdays.id,a.D.Presets.DateDays.id])]),v=Object.freeze([{direction:i.l.Direction.Down,label:n.q(`fillSeries.columns`)},{direction:i.l.Direction.Right,label:n.q(`fillSeries.rows`)}]),y=(0,p.memo)(e=>{let{initialValue:t,context:y,onInput:b,onDone:x,sx:S,...C}=e,w=r.Ot(),T=(0,p.useRef)(y?.()).current,[E,D]=(0,p.useState)(()=>({presetId:t?.presetId??a.D.Presets.Copy.id,direction:t?.direction??i.l.Direction.Down,trend:t?.trend,stepValue:t?.stepValue,stopValue:t?.stopValue})),O=E.direction===i.l.Direction.Down||E.direction===i.l.Direction.Up,k=(0,p.useMemo)(()=>{let e=new Map;for(let t=0;t<v.length;t++){let n=v[t].direction;e.set(n,new Set(T?.offered(n)??[]))}return e},[T]),A=k.get(E.direction)??new Set,j=A.has(E.presetId),M=a.D.getPreset(E.presetId)?.filler,N=!0===E.trend&&!0===M?.supportsTrend,P=!0===M?.supportsStep&&!N,F=!0===M?.supportsStop&&!N,I=r.X(e=>{D(t=>{let n={...t,...e};return!0!==a.D.getPreset(n.presetId)?.filler.supportsTrend&&(n.trend=void 0),n})},[]),L=r.X((e,t)=>{let n=t,r=k.get(n),i=r?.has(E.presetId)?E.presetId:_.flat().find(e=>!0===r?.has(e))??E.presetId;I({direction:n,presetId:i})},[k,E.presetId,I]),R=r.X(e=>{I({presetId:e.target.value})},[I]),z=(0,p.useMemo)(()=>T?.resolve(E.direction)??null,[T,E.direction]),B=(0,p.useMemo)(()=>{if(!T||!j||!z||z.size<=0)return null;let e=null;try{e=T.preview(E)}catch{return null}if(!e)return null;let t=e.getCoords(),n=n=>{let r=O?{rowIndex:t.rowStart+n,colIndex:t.colStart}:{rowIndex:t.rowStart,colIndex:t.colStart+n};return e.getCell(r).getText({hideStringPrefix:!0})||`–`},r=z.size,i=n(r-1);if(r===1)return{leading:``,tail:i};let a=64-i.length-3,o=[],s=0;for(let e=0;e<r-1;e++){let t=n(e),r=t.length+(e===0?0:2);if(s+r>a)break;o.push(t),s+=r}let c=o.length===r-1;return{leading:o.join(`, `),tail:`${o.length===0?``:c?`, `:` … `}${i}`}},[T,j,E,O,z]),V=r.X(e=>{let t=e===`Fill`?E:void 0;b?.(t),x?.(t)},[E,b,x]),H=(0,p.useMemo)(()=>{let e=[];for(let t=0;t<_.length;t++){t>0&&e.push((0,m.jsx)(o.t,{component:`li`},`divider:${t}`));let n=_[t];for(let t=0;t<n.length;t++){let r=n[t];e.push((0,m.jsx)(d.t,{value:r,disabled:!A.has(r),children:w(o.nt[r])},r))}}return e},[A,w]),U=(e,t,n,r,i)=>(0,m.jsx)(u.t,{size:`small`,fullWidth:!0,className:e,label:w(t),placeholder:w(n),value:r??``,onChange:e=>{return i((t=e.target.value).trim()===``||isNaN(Number(t))?void 0:Number(t));var t},slotProps:{inputLabel:{shrink:!0},htmlInput:{spellCheck:!1,autoComplete:`off`,inputMode:`decimal`}},onContextMenu:e=>{e.stopPropagation()}});return(0,m.jsx)(s.v,{title:w(`fillSeries.title`),options:[{id:`Fill`,label:()=>w(`fillSeries.action`),disabled:()=>!j},`Cancel`],onDone:V,sx:{width:`440px`,...S},...C,children:(0,m.jsxs)(r.t,{sx:{display:`flex`,flexDirection:`column`,gap:e=>e.spacing(2)},children:[(0,m.jsxs)(c._,{children:[(0,m.jsx)(c.g,{sx:{fontSize:`0.75rem`},children:w(`fillSeries.seriesIn`)}),(0,m.jsx)(f.t,{row:!0,className:`sxl-fillSeries-direction`,value:E.direction,onChange:L,children:v.map(e=>(0,m.jsx)(l.t,{value:e.direction,control:(0,m.jsx)(f.n,{size:`small`}),label:w(e.label),disabled:k.get(e.direction)?.size===0},e.direction))})]}),(0,m.jsxs)(c._,{size:`small`,fullWidth:!0,className:`sxl-fillSeries-type`,children:[(0,m.jsx)(c.m,{id:`sxl-fillSeries-type-label`,children:w(`fillSeries.type`)}),(0,m.jsx)(c.t,{labelId:`sxl-fillSeries-type-label`,value:j?E.presetId:``,label:w(`fillSeries.type`),onChange:R,className:`autoFocus`,children:H})]}),!0===M?.supportsTrend&&(0,m.jsx)(l.t,{control:(0,m.jsx)(l.n,{size:`small`,checked:N,onChange:e=>I({trend:!!e.target.checked||void 0})}),label:w(`fillSeries.trend`),className:`sxl-fillSeries-trend`,sx:{marginTop:e=>e.spacing(-1)}}),(P||F)&&(0,m.jsxs)(r.t,{sx:{display:`flex`,flexDirection:`row`,gap:e=>e.spacing(1.5)},children:[P&&U(`sxl-fillSeries-step`,n.q(`fillSeries.stepValue`),n.q(`fillSeries.stepAuto`),E.stepValue,e=>I({stepValue:e})),F&&U(`sxl-fillSeries-stop`,n.q(`fillSeries.stopValue`),n.q(`fillSeries.stopNone`),E.stopValue,e=>I({stopValue:e}))]}),(0,m.jsxs)(r.t,{sx:{display:`flex`,flexDirection:`column`,minHeight:`2.75em`,paddingLeft:h,paddingRight:h},children:[(0,m.jsxs)(r.t,{className:`sxl-fillSeries-ranges`,sx:{display:`flex`,flexDirection:`row`,alignItems:`center`,gap:e=>e.spacing(.75),color:e=>e.palette.text.secondary},children:[(0,m.jsx)(s.N,{variant:`caption`,noWrap:!0,children:z?.template??``}),(0,m.jsx)(r.t,{sx:g}),(0,m.jsx)(s.N,{variant:`caption`,sx:{lineHeight:1},children:`→`}),(0,m.jsx)(r.t,{sx:g}),(0,m.jsx)(s.N,{variant:`caption`,noWrap:!0,children:z?.destination??``})]}),B?(0,m.jsxs)(r.t,{className:`sxl-fillSeries-preview`,sx:{display:`flex`,flexDirection:`row`,fontVariantNumeric:`tabular-nums`},children:[(0,m.jsx)(s.N,{variant:`body2`,component:`div`,noWrap:!0,sx:{minWidth:0},children:B.leading}),(0,m.jsx)(s.N,{variant:`body2`,component:`div`,noWrap:!0,sx:{flex:`0 0 auto`},children:B.tail})]}):(0,m.jsx)(s.N,{variant:`body2`,component:`div`,noWrap:!0,className:`sxl-fillSeries-previewNone`,sx:{color:e=>e.palette.text.disabled},children:w(`fillSeries.previewNone`)})]})]})})});exports.FillSeriesDialog=y,exports.default=y;
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.8.0-beta.4
|
|
3
|
-
*
|
|
4
|
-
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/
|
|
7
|
-
import { r as e } from "./7XkdeYBragcPQQS0.mjs";
|
|
8
|
-
import { i as t, r as n } from "./DvFQ4AKUGVQ_qhdP.mjs";
|
|
9
|
-
import { Ot as r, X as i, t as a } from "./DkUKK8YkXuoIqQIx.mjs";
|
|
10
|
-
import { v as o } from "./CxYnCECXc2PyTCrn.mjs";
|
|
11
|
-
import { _ as s } from "./BxrknRRdcnKV7-zU.mjs";
|
|
12
|
-
import { t as c } from "./CqwPCy756gUmUtv1.mjs";
|
|
13
|
-
var l = e(t(), 1), u = e(n(), 1), d = ["Ok", "Cancel"], f = (0, l.memo)((e) => {
|
|
14
|
-
let { initialValue: t = null, onInput: n, context: f, onOption: p, onValidateOption: m, onDone: h, options: g = d, defaultOption: _ = g?.[0], cancelOption: v = "Cancel", sx: y, ...b } = e, x = r(), S = (0, l.useMemo)(() => {
|
|
15
|
-
let e = f?.()?.getComments() ?? null, n = t?.content ?? (e ? e.getRichContent() ?? e.getContent() : null);
|
|
16
|
-
if (!n) return "";
|
|
17
|
-
if (typeof n == "string") return n;
|
|
18
|
-
let r = "", i = n.runs;
|
|
19
|
-
for (let e = 0; e < i.length; e++) r += i[e]?.text ?? "";
|
|
20
|
-
return r;
|
|
21
|
-
}, []), [C, w] = (0, l.useState)(S), [T, E] = (0, l.useState)(!1), D = (0, l.useCallback)(async (e, t) => null, []), O = i(async (e) => {
|
|
22
|
-
let t = C === "" ? [] : C.split("\n"), r = e === v;
|
|
23
|
-
r || n?.({ content: t.join("\n") }), p?.(e, r, e === _), h?.();
|
|
24
|
-
}, [
|
|
25
|
-
C,
|
|
26
|
-
n,
|
|
27
|
-
h,
|
|
28
|
-
p,
|
|
29
|
-
_,
|
|
30
|
-
v
|
|
31
|
-
]), k = i((e) => {
|
|
32
|
-
w(e.target.value), D(e.target.value);
|
|
33
|
-
}, [m]), A = i(async (e) => {
|
|
34
|
-
let t = await Promise.resolve(m?.(e));
|
|
35
|
-
try {
|
|
36
|
-
!1 !== t && (t = await D(C, e));
|
|
37
|
-
} catch {}
|
|
38
|
-
return t ?? !0;
|
|
39
|
-
}, [m, C]);
|
|
40
|
-
return (0, u.jsx)(o, {
|
|
41
|
-
title: x(S ? "comments.titleEdit" : "comments.titleInsert"),
|
|
42
|
-
options: g,
|
|
43
|
-
onDone: h,
|
|
44
|
-
onOption: (e) => O(e),
|
|
45
|
-
onValidateOption: A,
|
|
46
|
-
defaultOption: _,
|
|
47
|
-
cancelOption: v,
|
|
48
|
-
autoFocusSel: ".autoFocus",
|
|
49
|
-
sx: {
|
|
50
|
-
width: "480px",
|
|
51
|
-
...y
|
|
52
|
-
},
|
|
53
|
-
...b,
|
|
54
|
-
children: (0, u.jsx)(a, {
|
|
55
|
-
sx: {
|
|
56
|
-
paddingTop: (e) => e.spacing(1),
|
|
57
|
-
paddingBottom: (e) => e.spacing(0),
|
|
58
|
-
rowGap: (e) => e.spacing(1),
|
|
59
|
-
display: "flex",
|
|
60
|
-
flexDirection: "column"
|
|
61
|
-
},
|
|
62
|
-
children: (0, u.jsx)(s, {
|
|
63
|
-
sx: {
|
|
64
|
-
paddingTop: (e) => e.spacing(1.5),
|
|
65
|
-
minWidth: 135,
|
|
66
|
-
width: "100%"
|
|
67
|
-
},
|
|
68
|
-
size: "small",
|
|
69
|
-
children: (0, u.jsx)(c, {
|
|
70
|
-
label: x("comments.label"),
|
|
71
|
-
placeholder: x("comments.placeholder"),
|
|
72
|
-
onFocus: (e) => {
|
|
73
|
-
T || e.target?.select(), E(!0);
|
|
74
|
-
},
|
|
75
|
-
sx: { "& .MuiFormHelperText-root": { marginTop: (e) => e.spacing(.5) } },
|
|
76
|
-
slotProps: {
|
|
77
|
-
inputLabel: { shrink: !0 },
|
|
78
|
-
htmlInput: {
|
|
79
|
-
className: "autoFocus",
|
|
80
|
-
spellCheck: !1,
|
|
81
|
-
autoComplete: "off",
|
|
82
|
-
sx: {
|
|
83
|
-
paddingTop: (e) => e.spacing(1.25),
|
|
84
|
-
paddingBottom: (e) => e.spacing(.75)
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
value: C,
|
|
89
|
-
onChange: k,
|
|
90
|
-
onContextMenu: (e) => {
|
|
91
|
-
e.stopPropagation();
|
|
92
|
-
}
|
|
93
|
-
})
|
|
94
|
-
})
|
|
95
|
-
})
|
|
96
|
-
});
|
|
97
|
-
});
|
|
98
|
-
export { f as CommentsDialog, f as default };
|
|
@@ -1,225 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.8.0-beta.4
|
|
3
|
-
*
|
|
4
|
-
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/
|
|
7
|
-
import { r as e } from "./7XkdeYBragcPQQS0.mjs";
|
|
8
|
-
import { i as t, r as n } from "./DvFQ4AKUGVQ_qhdP.mjs";
|
|
9
|
-
import { r } from "./CP2cFopeWN8lQpif.mjs";
|
|
10
|
-
import { Ot as ee, t as i } from "./DkUKK8YkXuoIqQIx.mjs";
|
|
11
|
-
import { t as a } from "./BfZiZa7P8RpKrStu.mjs";
|
|
12
|
-
import { T as te, c as ne } from "./B3WsFHUqTcKWNGy_.mjs";
|
|
13
|
-
import { _ as re } from "./BxrknRRdcnKV7-zU.mjs";
|
|
14
|
-
import { t as ie } from "./CqwPCy756gUmUtv1.mjs";
|
|
15
|
-
import { T as o } from "./CByxip-S_IKsaoyZ.mjs";
|
|
16
|
-
import { t as s } from "./DNtf7XnGnTZmf9SF.mjs";
|
|
17
|
-
var c = e(t(), 1), l = e(n(), 1), u = typeof window < "u" && window.HTMLElement !== void 0 && typeof document < "u";
|
|
18
|
-
c.createContext(null).displayName = "HookFormControlContext", u ? c.useLayoutEffect : c.useEffect;
|
|
19
|
-
var d = c.createContext(null);
|
|
20
|
-
d.displayName = "HookFormContext";
|
|
21
|
-
var f = () => c.useContext(d), p = (e) => {
|
|
22
|
-
e.button === 0 && e.preventDefault();
|
|
23
|
-
}, m = "20px", h = "4px", g = `calc(${m} + ${h})`, _ = (0, c.memo)((0, c.forwardRef)((e, t) => {
|
|
24
|
-
let { grammar: n = "formula", formName: u, formOptions: d, disabled: g, className: _, sx: v, onKeyDown: y, onFocus: b, value: ae, onChangeInput: oe, onChangeText: se, onDone: x, changeOn: ce, apiRef: le, workbook: S, home: C, equals: ue, pickAs: de, pickSpills: fe, allowMulti: pe, allowCrossSheet: me, label: w, labelPlacement: T = "floating", placeholder: E, helperText: D, showError: O = !0, onChangeError: k, validationError: A, hideAdornment: j, classNameInput: M, argument: N, id: P, ...F } = e, I = ee(), L = T === "above", R = (0, c.useId)(), z = P ?? R, B = n === "formula", V = w === void 0 ? I(B ? "formulaInput.label" : "rangeInput.label") : w, he = E ?? I(B ? "formulaInput.placeholder" : "rangeInput.placeholder"), H = f(), U = u && H ? H.register(u, d) : null, W = te({
|
|
25
|
-
value: ae,
|
|
26
|
-
onChange: oe,
|
|
27
|
-
onChangeText: se,
|
|
28
|
-
onDone: x,
|
|
29
|
-
changeOn: ce,
|
|
30
|
-
workbook: S,
|
|
31
|
-
home: C,
|
|
32
|
-
equals: ue,
|
|
33
|
-
pickAs: de,
|
|
34
|
-
pickSpills: fe,
|
|
35
|
-
allowMulti: pe,
|
|
36
|
-
allowCrossSheet: me,
|
|
37
|
-
disabled: g
|
|
38
|
-
}, n);
|
|
39
|
-
(0, c.useImperativeHandle)(le, () => W, [W]);
|
|
40
|
-
let G = ne({
|
|
41
|
-
api: W,
|
|
42
|
-
grammar: n,
|
|
43
|
-
disabled: g,
|
|
44
|
-
workbook: S,
|
|
45
|
-
home: C,
|
|
46
|
-
argument: N
|
|
47
|
-
}), K = !!W.error && !G.inputExpected, q = K || !!A, ge = O && q ? I(K ? W.error : A) : D === void 0 ? " " : D, J = (0, c.useRef)(H);
|
|
48
|
-
J.current = H;
|
|
49
|
-
let Y = (0, c.useRef)(k);
|
|
50
|
-
Y.current = k;
|
|
51
|
-
let X = (0, c.useRef)(null), Z = K ? W.error : null, Q = (0, c.useRef)(null);
|
|
52
|
-
(0, c.useEffect)(() => {
|
|
53
|
-
Z !== Q.current && (Q.current = Z, Y.current?.(Z));
|
|
54
|
-
}, [Z]), (0, c.useEffect)(() => {
|
|
55
|
-
if (W.error === X.current || (X.current = W.error, !u)) return;
|
|
56
|
-
let e = J.current;
|
|
57
|
-
e && (W.error ? e.setError(u, { message: W.error }) : e.clearErrors(u));
|
|
58
|
-
}, [W.error, u]);
|
|
59
|
-
let $ = !!x, _e = (0, c.useMemo)(() => j ? void 0 : (0, l.jsx)(s, {
|
|
60
|
-
tabIndex: -1,
|
|
61
|
-
onMouseDown: p,
|
|
62
|
-
sx: {
|
|
63
|
-
display: "flex",
|
|
64
|
-
position: "relative",
|
|
65
|
-
flex: "0"
|
|
66
|
-
},
|
|
67
|
-
position: "end",
|
|
68
|
-
children: W.engaged && $ ? (0, l.jsxs)(l.Fragment, { children: [(0, l.jsx)(o, {
|
|
69
|
-
dense: !0,
|
|
70
|
-
outlined: !1,
|
|
71
|
-
color: "primary",
|
|
72
|
-
"aria-label": "commit-reference",
|
|
73
|
-
icon: (0, l.jsx)(r, { iconKey: "CheckSuccess" }),
|
|
74
|
-
propsTooltip: {
|
|
75
|
-
label: I("referenceInput.commit"),
|
|
76
|
-
simple: !0
|
|
77
|
-
},
|
|
78
|
-
disabled: !!W.error,
|
|
79
|
-
tabIndex: -1,
|
|
80
|
-
onMouseDown: p,
|
|
81
|
-
onClick: () => {
|
|
82
|
-
W.commit();
|
|
83
|
-
}
|
|
84
|
-
}), (0, l.jsx)(o, {
|
|
85
|
-
dense: !0,
|
|
86
|
-
outlined: !1,
|
|
87
|
-
color: "warning",
|
|
88
|
-
"aria-label": "cancel-reference",
|
|
89
|
-
icon: (0, l.jsx)(r, { iconKey: "CloseError" }),
|
|
90
|
-
propsTooltip: {
|
|
91
|
-
label: I("referenceInput.cancel"),
|
|
92
|
-
simple: !0
|
|
93
|
-
},
|
|
94
|
-
tabIndex: -1,
|
|
95
|
-
onMouseDown: p,
|
|
96
|
-
onClick: () => {
|
|
97
|
-
W.cancel();
|
|
98
|
-
}
|
|
99
|
-
})] }) : (0, l.jsx)(o, {
|
|
100
|
-
dense: !0,
|
|
101
|
-
outlined: !1,
|
|
102
|
-
disabled: g || !W.canSelectCurrent,
|
|
103
|
-
sx: { "&.Mui-disabled": { opacity: .35 } },
|
|
104
|
-
"aria-label": "select-current-range",
|
|
105
|
-
icon: (0, l.jsx)(r, { iconKey: "SelectRangeMode" }),
|
|
106
|
-
propsTooltip: {
|
|
107
|
-
label: I("referenceInput.selectCurrent"),
|
|
108
|
-
simple: !0
|
|
109
|
-
},
|
|
110
|
-
tabIndex: -1,
|
|
111
|
-
onMouseDown: p,
|
|
112
|
-
onClick: () => {
|
|
113
|
-
W.engaged || W.togglePoint(), W.selectCurrent();
|
|
114
|
-
}
|
|
115
|
-
})
|
|
116
|
-
}), [
|
|
117
|
-
j,
|
|
118
|
-
g,
|
|
119
|
-
$,
|
|
120
|
-
W.engaged,
|
|
121
|
-
W.canSelectCurrent,
|
|
122
|
-
W.togglePoint,
|
|
123
|
-
W.selectCurrent,
|
|
124
|
-
W.commit,
|
|
125
|
-
W.cancel,
|
|
126
|
-
!!W.error
|
|
127
|
-
]);
|
|
128
|
-
return (0, l.jsxs)(re, {
|
|
129
|
-
sx: {
|
|
130
|
-
minWidth: 135,
|
|
131
|
-
width: "100%",
|
|
132
|
-
...v
|
|
133
|
-
},
|
|
134
|
-
size: "small",
|
|
135
|
-
ref: (e) => {
|
|
136
|
-
G.containerRef.current = e, typeof t == "function" ? t(e) : t && (t.current = e);
|
|
137
|
-
},
|
|
138
|
-
className: a("sxl-formula-field", _),
|
|
139
|
-
"data-grammar": n,
|
|
140
|
-
...F,
|
|
141
|
-
children: [
|
|
142
|
-
L ? (0, l.jsx)(i, {
|
|
143
|
-
component: "label",
|
|
144
|
-
htmlFor: z,
|
|
145
|
-
sx: {
|
|
146
|
-
lineHeight: m,
|
|
147
|
-
marginBottom: h,
|
|
148
|
-
paddingLeft: "14px",
|
|
149
|
-
display: "flex",
|
|
150
|
-
alignItems: "center",
|
|
151
|
-
gap: "4px",
|
|
152
|
-
overflow: "hidden",
|
|
153
|
-
whiteSpace: "nowrap",
|
|
154
|
-
fontSize: "0.8rem",
|
|
155
|
-
color: g ? "text.disabled" : "text.primary"
|
|
156
|
-
},
|
|
157
|
-
children: V
|
|
158
|
-
}) : null,
|
|
159
|
-
(0, l.jsx)(ie, {
|
|
160
|
-
id: z,
|
|
161
|
-
label: L ? void 0 : V,
|
|
162
|
-
placeholder: he,
|
|
163
|
-
disabled: g,
|
|
164
|
-
error: q,
|
|
165
|
-
helperText: ge,
|
|
166
|
-
sx: { "& .MuiFormHelperText-root": {
|
|
167
|
-
marginTop: h,
|
|
168
|
-
...L ? { lineHeight: m } : null
|
|
169
|
-
} },
|
|
170
|
-
slotProps: {
|
|
171
|
-
input: { endAdornment: _e },
|
|
172
|
-
inputLabel: { shrink: !0 },
|
|
173
|
-
htmlInput: {
|
|
174
|
-
className: M,
|
|
175
|
-
spellCheck: !1,
|
|
176
|
-
autoComplete: "off",
|
|
177
|
-
readOnly: g || W.inputProps.readOnly,
|
|
178
|
-
name: u,
|
|
179
|
-
sx: {
|
|
180
|
-
paddingTop: (e) => e.spacing(L || V == null ? 1 : 1.25),
|
|
181
|
-
paddingBottom: (e) => e.spacing(L || V == null ? 1 : .75),
|
|
182
|
-
...G.overlayActive ? {
|
|
183
|
-
color: "transparent",
|
|
184
|
-
caretColor: (e) => e.palette.text.primary
|
|
185
|
-
} : null
|
|
186
|
-
},
|
|
187
|
-
onSelect: (e) => {
|
|
188
|
-
W.inputProps.onSelect(e), G.inputHandlers.onSelect(e);
|
|
189
|
-
},
|
|
190
|
-
onScroll: G.inputHandlers.onScroll,
|
|
191
|
-
onMouseMove: G.inputHandlers.onMouseMove,
|
|
192
|
-
onMouseLeave: G.inputHandlers.onMouseLeave,
|
|
193
|
-
onDragStart: G.inputHandlers.onDragStart
|
|
194
|
-
}
|
|
195
|
-
},
|
|
196
|
-
value: W.inputProps.value,
|
|
197
|
-
inputRef: (e) => {
|
|
198
|
-
G.inputElRef.current = e, W.inputProps.ref(e), U?.ref && U.ref(e);
|
|
199
|
-
},
|
|
200
|
-
onChange: (e) => {
|
|
201
|
-
W.inputProps.onChange(e), G.inputHandlers.onSelect(e), U?.onChange(e);
|
|
202
|
-
},
|
|
203
|
-
onKeyDown: (e) => {
|
|
204
|
-
G.handleKeyDown(e) || (W.inputProps.onKeyDown(e), e.defaultPrevented || y?.(e));
|
|
205
|
-
},
|
|
206
|
-
onPointerDown: G.inputHandlers.onPointerDown,
|
|
207
|
-
onMouseDown: W.inputProps.onMouseDown,
|
|
208
|
-
onFocus: (e) => {
|
|
209
|
-
W.inputProps.onFocus(e), b?.(e);
|
|
210
|
-
},
|
|
211
|
-
onBlur: (e) => {
|
|
212
|
-
W.inputProps.onBlur(e), U?.onBlur(e);
|
|
213
|
-
},
|
|
214
|
-
onContextMenu: (e) => {
|
|
215
|
-
e.stopPropagation();
|
|
216
|
-
}
|
|
217
|
-
}),
|
|
218
|
-
G.overlayElement,
|
|
219
|
-
G.tipElement,
|
|
220
|
-
G.hintElement
|
|
221
|
-
]
|
|
222
|
-
});
|
|
223
|
-
}));
|
|
224
|
-
_.displayName = "FormulaField";
|
|
225
|
-
export { f as n, g as r, _ as t };
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.8.0-beta.4
|
|
3
|
-
*
|
|
4
|
-
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/
|
|
7
|
-
import { r as e } from "./7XkdeYBragcPQQS0.js";
|
|
8
|
-
import { t } from "./TA52Zf5ZMCu6I721.js";
|
|
9
|
-
import { t as n } from "./RnavifpmQlGK2gal.js";
|
|
10
|
-
import { Ot as r, X as i, t as a } from "./CdP9qTlDd3C1oYJE.js";
|
|
11
|
-
import { v as o } from "./C2-SeODnwo_GR5pz.js";
|
|
12
|
-
import { _ as s } from "./DilLxTePPshHHpSq.js";
|
|
13
|
-
import { t as c } from "./kgHG0ixsMXmNdu8U.js";
|
|
14
|
-
var l = e(t(), 1), u = n(), d = ["Ok", "Cancel"], f = (0, l.memo)((e) => {
|
|
15
|
-
let { initialValue: t = null, onInput: n, context: f, onOption: p, onValidateOption: m, onDone: h, options: g = d, defaultOption: _ = g?.[0], cancelOption: v = "Cancel", sx: y, ...b } = e, x = r(), S = (0, l.useMemo)(() => {
|
|
16
|
-
let e = f?.()?.getComments() ?? null, n = t?.content ?? (e ? e.getRichContent() ?? e.getContent() : null);
|
|
17
|
-
if (!n) return "";
|
|
18
|
-
if (typeof n == "string") return n;
|
|
19
|
-
let r = "", i = n.runs;
|
|
20
|
-
for (let e = 0; e < i.length; e++) r += i[e]?.text ?? "";
|
|
21
|
-
return r;
|
|
22
|
-
}, []), [C, w] = (0, l.useState)(S), [T, E] = (0, l.useState)(!1), D = (0, l.useCallback)(async (e, t) => null, []), O = i(async (e) => {
|
|
23
|
-
let t = C === "" ? [] : C.split("\n"), r = e === v;
|
|
24
|
-
r || n?.({ content: t.join("\n") }), p?.(e, r, e === _), h?.();
|
|
25
|
-
}, [
|
|
26
|
-
C,
|
|
27
|
-
n,
|
|
28
|
-
h,
|
|
29
|
-
p,
|
|
30
|
-
_,
|
|
31
|
-
v
|
|
32
|
-
]), k = i((e) => {
|
|
33
|
-
w(e.target.value), D(e.target.value);
|
|
34
|
-
}, [m]), A = i(async (e) => {
|
|
35
|
-
let t = await Promise.resolve(m?.(e));
|
|
36
|
-
try {
|
|
37
|
-
!1 !== t && (t = await D(C, e));
|
|
38
|
-
} catch {}
|
|
39
|
-
return t ?? !0;
|
|
40
|
-
}, [m, C]);
|
|
41
|
-
return (0, u.jsx)(o, {
|
|
42
|
-
title: x(S ? "comments.titleEdit" : "comments.titleInsert"),
|
|
43
|
-
options: g,
|
|
44
|
-
onDone: h,
|
|
45
|
-
onOption: (e) => O(e),
|
|
46
|
-
onValidateOption: A,
|
|
47
|
-
defaultOption: _,
|
|
48
|
-
cancelOption: v,
|
|
49
|
-
autoFocusSel: ".autoFocus",
|
|
50
|
-
sx: {
|
|
51
|
-
width: "480px",
|
|
52
|
-
...y
|
|
53
|
-
},
|
|
54
|
-
...b,
|
|
55
|
-
children: (0, u.jsx)(a, {
|
|
56
|
-
sx: {
|
|
57
|
-
paddingTop: (e) => e.spacing(1),
|
|
58
|
-
paddingBottom: (e) => e.spacing(0),
|
|
59
|
-
rowGap: (e) => e.spacing(1),
|
|
60
|
-
display: "flex",
|
|
61
|
-
flexDirection: "column"
|
|
62
|
-
},
|
|
63
|
-
children: (0, u.jsx)(s, {
|
|
64
|
-
sx: {
|
|
65
|
-
paddingTop: (e) => e.spacing(1.5),
|
|
66
|
-
minWidth: 135,
|
|
67
|
-
width: "100%"
|
|
68
|
-
},
|
|
69
|
-
size: "small",
|
|
70
|
-
children: (0, u.jsx)(c, {
|
|
71
|
-
label: x("comments.label"),
|
|
72
|
-
placeholder: x("comments.placeholder"),
|
|
73
|
-
onFocus: (e) => {
|
|
74
|
-
T || e.target?.select(), E(!0);
|
|
75
|
-
},
|
|
76
|
-
sx: { "& .MuiFormHelperText-root": { marginTop: (e) => e.spacing(.5) } },
|
|
77
|
-
slotProps: {
|
|
78
|
-
inputLabel: { shrink: !0 },
|
|
79
|
-
htmlInput: {
|
|
80
|
-
className: "autoFocus",
|
|
81
|
-
spellCheck: !1,
|
|
82
|
-
autoComplete: "off",
|
|
83
|
-
sx: {
|
|
84
|
-
paddingTop: (e) => e.spacing(1.25),
|
|
85
|
-
paddingBottom: (e) => e.spacing(.75)
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
value: C,
|
|
90
|
-
onChange: k,
|
|
91
|
-
onContextMenu: (e) => {
|
|
92
|
-
e.stopPropagation();
|
|
93
|
-
}
|
|
94
|
-
})
|
|
95
|
-
})
|
|
96
|
-
})
|
|
97
|
-
});
|
|
98
|
-
});
|
|
99
|
-
export { f as CommentsDialog, f as default };
|
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.8.0-beta.4
|
|
3
|
-
*
|
|
4
|
-
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/
|
|
7
|
-
import { r as e } from "./7XkdeYBragcPQQS0.js";
|
|
8
|
-
import { t } from "./TA52Zf5ZMCu6I721.js";
|
|
9
|
-
import { t as n } from "./RnavifpmQlGK2gal.js";
|
|
10
|
-
import { r } from "./POvNgF4k1Kibh6Db.js";
|
|
11
|
-
import { Ot as ee, t as i } from "./CdP9qTlDd3C1oYJE.js";
|
|
12
|
-
import { T as a, c as te } from "./Cr34xFdpfmYj3XVX.js";
|
|
13
|
-
import { _ as ne } from "./DilLxTePPshHHpSq.js";
|
|
14
|
-
import { t as re } from "./kgHG0ixsMXmNdu8U.js";
|
|
15
|
-
import { T as o } from "./C5JHyXmpBXqT829C.js";
|
|
16
|
-
import { t as ie } from "./CRepp6I1poWZwijy2.js";
|
|
17
|
-
import { t as s } from "./BfZiZa7P8RpKrStu2.js";
|
|
18
|
-
var c = e(t(), 1), l = n(), u = typeof window < "u" && window.HTMLElement !== void 0 && typeof document < "u";
|
|
19
|
-
c.createContext(null).displayName = "HookFormControlContext", u ? c.useLayoutEffect : c.useEffect;
|
|
20
|
-
var d = c.createContext(null);
|
|
21
|
-
d.displayName = "HookFormContext";
|
|
22
|
-
var f = () => c.useContext(d), p = (e) => {
|
|
23
|
-
e.button === 0 && e.preventDefault();
|
|
24
|
-
}, m = "20px", h = "4px", g = `calc(${m} + ${h})`, _ = (0, c.memo)((0, c.forwardRef)((e, t) => {
|
|
25
|
-
let { grammar: n = "formula", formName: u, formOptions: d, disabled: g, className: _, sx: v, onKeyDown: y, onFocus: b, value: ae, onChangeInput: oe, onChangeText: se, onDone: x, changeOn: ce, apiRef: le, workbook: S, home: C, equals: ue, pickAs: de, pickSpills: fe, allowMulti: pe, allowCrossSheet: me, label: w, labelPlacement: T = "floating", placeholder: E, helperText: D, showError: O = !0, onChangeError: k, validationError: A, hideAdornment: j, classNameInput: M, argument: N, id: P, ...F } = e, I = ee(), L = T === "above", R = (0, c.useId)(), z = P ?? R, B = n === "formula", V = w === void 0 ? I(B ? "formulaInput.label" : "rangeInput.label") : w, he = E ?? I(B ? "formulaInput.placeholder" : "rangeInput.placeholder"), H = f(), U = u && H ? H.register(u, d) : null, W = a({
|
|
26
|
-
value: ae,
|
|
27
|
-
onChange: oe,
|
|
28
|
-
onChangeText: se,
|
|
29
|
-
onDone: x,
|
|
30
|
-
changeOn: ce,
|
|
31
|
-
workbook: S,
|
|
32
|
-
home: C,
|
|
33
|
-
equals: ue,
|
|
34
|
-
pickAs: de,
|
|
35
|
-
pickSpills: fe,
|
|
36
|
-
allowMulti: pe,
|
|
37
|
-
allowCrossSheet: me,
|
|
38
|
-
disabled: g
|
|
39
|
-
}, n);
|
|
40
|
-
(0, c.useImperativeHandle)(le, () => W, [W]);
|
|
41
|
-
let G = te({
|
|
42
|
-
api: W,
|
|
43
|
-
grammar: n,
|
|
44
|
-
disabled: g,
|
|
45
|
-
workbook: S,
|
|
46
|
-
home: C,
|
|
47
|
-
argument: N
|
|
48
|
-
}), K = !!W.error && !G.inputExpected, q = K || !!A, ge = O && q ? I(K ? W.error : A) : D === void 0 ? " " : D, J = (0, c.useRef)(H);
|
|
49
|
-
J.current = H;
|
|
50
|
-
let Y = (0, c.useRef)(k);
|
|
51
|
-
Y.current = k;
|
|
52
|
-
let X = (0, c.useRef)(null), Z = K ? W.error : null, Q = (0, c.useRef)(null);
|
|
53
|
-
(0, c.useEffect)(() => {
|
|
54
|
-
Z !== Q.current && (Q.current = Z, Y.current?.(Z));
|
|
55
|
-
}, [Z]), (0, c.useEffect)(() => {
|
|
56
|
-
if (W.error === X.current || (X.current = W.error, !u)) return;
|
|
57
|
-
let e = J.current;
|
|
58
|
-
e && (W.error ? e.setError(u, { message: W.error }) : e.clearErrors(u));
|
|
59
|
-
}, [W.error, u]);
|
|
60
|
-
let $ = !!x, _e = (0, c.useMemo)(() => j ? void 0 : (0, l.jsx)(ie, {
|
|
61
|
-
tabIndex: -1,
|
|
62
|
-
onMouseDown: p,
|
|
63
|
-
sx: {
|
|
64
|
-
display: "flex",
|
|
65
|
-
position: "relative",
|
|
66
|
-
flex: "0"
|
|
67
|
-
},
|
|
68
|
-
position: "end",
|
|
69
|
-
children: W.engaged && $ ? (0, l.jsxs)(l.Fragment, { children: [(0, l.jsx)(o, {
|
|
70
|
-
dense: !0,
|
|
71
|
-
outlined: !1,
|
|
72
|
-
color: "primary",
|
|
73
|
-
"aria-label": "commit-reference",
|
|
74
|
-
icon: (0, l.jsx)(r, { iconKey: "CheckSuccess" }),
|
|
75
|
-
propsTooltip: {
|
|
76
|
-
label: I("referenceInput.commit"),
|
|
77
|
-
simple: !0
|
|
78
|
-
},
|
|
79
|
-
disabled: !!W.error,
|
|
80
|
-
tabIndex: -1,
|
|
81
|
-
onMouseDown: p,
|
|
82
|
-
onClick: () => {
|
|
83
|
-
W.commit();
|
|
84
|
-
}
|
|
85
|
-
}), (0, l.jsx)(o, {
|
|
86
|
-
dense: !0,
|
|
87
|
-
outlined: !1,
|
|
88
|
-
color: "warning",
|
|
89
|
-
"aria-label": "cancel-reference",
|
|
90
|
-
icon: (0, l.jsx)(r, { iconKey: "CloseError" }),
|
|
91
|
-
propsTooltip: {
|
|
92
|
-
label: I("referenceInput.cancel"),
|
|
93
|
-
simple: !0
|
|
94
|
-
},
|
|
95
|
-
tabIndex: -1,
|
|
96
|
-
onMouseDown: p,
|
|
97
|
-
onClick: () => {
|
|
98
|
-
W.cancel();
|
|
99
|
-
}
|
|
100
|
-
})] }) : (0, l.jsx)(o, {
|
|
101
|
-
dense: !0,
|
|
102
|
-
outlined: !1,
|
|
103
|
-
disabled: g || !W.canSelectCurrent,
|
|
104
|
-
sx: { "&.Mui-disabled": { opacity: .35 } },
|
|
105
|
-
"aria-label": "select-current-range",
|
|
106
|
-
icon: (0, l.jsx)(r, { iconKey: "SelectRangeMode" }),
|
|
107
|
-
propsTooltip: {
|
|
108
|
-
label: I("referenceInput.selectCurrent"),
|
|
109
|
-
simple: !0
|
|
110
|
-
},
|
|
111
|
-
tabIndex: -1,
|
|
112
|
-
onMouseDown: p,
|
|
113
|
-
onClick: () => {
|
|
114
|
-
W.engaged || W.togglePoint(), W.selectCurrent();
|
|
115
|
-
}
|
|
116
|
-
})
|
|
117
|
-
}), [
|
|
118
|
-
j,
|
|
119
|
-
g,
|
|
120
|
-
$,
|
|
121
|
-
W.engaged,
|
|
122
|
-
W.canSelectCurrent,
|
|
123
|
-
W.togglePoint,
|
|
124
|
-
W.selectCurrent,
|
|
125
|
-
W.commit,
|
|
126
|
-
W.cancel,
|
|
127
|
-
!!W.error
|
|
128
|
-
]);
|
|
129
|
-
return (0, l.jsxs)(ne, {
|
|
130
|
-
sx: {
|
|
131
|
-
minWidth: 135,
|
|
132
|
-
width: "100%",
|
|
133
|
-
...v
|
|
134
|
-
},
|
|
135
|
-
size: "small",
|
|
136
|
-
ref: (e) => {
|
|
137
|
-
G.containerRef.current = e, typeof t == "function" ? t(e) : t && (t.current = e);
|
|
138
|
-
},
|
|
139
|
-
className: s("sxl-formula-field", _),
|
|
140
|
-
"data-grammar": n,
|
|
141
|
-
...F,
|
|
142
|
-
children: [
|
|
143
|
-
L ? (0, l.jsx)(i, {
|
|
144
|
-
component: "label",
|
|
145
|
-
htmlFor: z,
|
|
146
|
-
sx: {
|
|
147
|
-
lineHeight: m,
|
|
148
|
-
marginBottom: h,
|
|
149
|
-
paddingLeft: "14px",
|
|
150
|
-
display: "flex",
|
|
151
|
-
alignItems: "center",
|
|
152
|
-
gap: "4px",
|
|
153
|
-
overflow: "hidden",
|
|
154
|
-
whiteSpace: "nowrap",
|
|
155
|
-
fontSize: "0.8rem",
|
|
156
|
-
color: g ? "text.disabled" : "text.primary"
|
|
157
|
-
},
|
|
158
|
-
children: V
|
|
159
|
-
}) : null,
|
|
160
|
-
(0, l.jsx)(re, {
|
|
161
|
-
id: z,
|
|
162
|
-
label: L ? void 0 : V,
|
|
163
|
-
placeholder: he,
|
|
164
|
-
disabled: g,
|
|
165
|
-
error: q,
|
|
166
|
-
helperText: ge,
|
|
167
|
-
sx: { "& .MuiFormHelperText-root": {
|
|
168
|
-
marginTop: h,
|
|
169
|
-
...L ? { lineHeight: m } : null
|
|
170
|
-
} },
|
|
171
|
-
slotProps: {
|
|
172
|
-
input: { endAdornment: _e },
|
|
173
|
-
inputLabel: { shrink: !0 },
|
|
174
|
-
htmlInput: {
|
|
175
|
-
className: M,
|
|
176
|
-
spellCheck: !1,
|
|
177
|
-
autoComplete: "off",
|
|
178
|
-
readOnly: g || W.inputProps.readOnly,
|
|
179
|
-
name: u,
|
|
180
|
-
sx: {
|
|
181
|
-
paddingTop: (e) => e.spacing(L || V == null ? 1 : 1.25),
|
|
182
|
-
paddingBottom: (e) => e.spacing(L || V == null ? 1 : .75),
|
|
183
|
-
...G.overlayActive ? {
|
|
184
|
-
color: "transparent",
|
|
185
|
-
caretColor: (e) => e.palette.text.primary
|
|
186
|
-
} : null
|
|
187
|
-
},
|
|
188
|
-
onSelect: (e) => {
|
|
189
|
-
W.inputProps.onSelect(e), G.inputHandlers.onSelect(e);
|
|
190
|
-
},
|
|
191
|
-
onScroll: G.inputHandlers.onScroll,
|
|
192
|
-
onMouseMove: G.inputHandlers.onMouseMove,
|
|
193
|
-
onMouseLeave: G.inputHandlers.onMouseLeave,
|
|
194
|
-
onDragStart: G.inputHandlers.onDragStart
|
|
195
|
-
}
|
|
196
|
-
},
|
|
197
|
-
value: W.inputProps.value,
|
|
198
|
-
inputRef: (e) => {
|
|
199
|
-
G.inputElRef.current = e, W.inputProps.ref(e), U?.ref && U.ref(e);
|
|
200
|
-
},
|
|
201
|
-
onChange: (e) => {
|
|
202
|
-
W.inputProps.onChange(e), G.inputHandlers.onSelect(e), U?.onChange(e);
|
|
203
|
-
},
|
|
204
|
-
onKeyDown: (e) => {
|
|
205
|
-
G.handleKeyDown(e) || (W.inputProps.onKeyDown(e), e.defaultPrevented || y?.(e));
|
|
206
|
-
},
|
|
207
|
-
onPointerDown: G.inputHandlers.onPointerDown,
|
|
208
|
-
onMouseDown: W.inputProps.onMouseDown,
|
|
209
|
-
onFocus: (e) => {
|
|
210
|
-
W.inputProps.onFocus(e), b?.(e);
|
|
211
|
-
},
|
|
212
|
-
onBlur: (e) => {
|
|
213
|
-
W.inputProps.onBlur(e), U?.onBlur(e);
|
|
214
|
-
},
|
|
215
|
-
onContextMenu: (e) => {
|
|
216
|
-
e.stopPropagation();
|
|
217
|
-
}
|
|
218
|
-
}),
|
|
219
|
-
G.overlayElement,
|
|
220
|
-
G.tipElement,
|
|
221
|
-
G.hintElement
|
|
222
|
-
]
|
|
223
|
-
});
|
|
224
|
-
}));
|
|
225
|
-
_.displayName = "FormulaField";
|
|
226
|
-
export { f as n, g as r, _ as t };
|