@sheetxl/mcp 0.0.0-stage → 0.8.0-beta.14
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/LICENSE.md +11 -0
- package/README.md +72 -2
- package/agent/instructions.md +66 -0
- package/assets/2zIY9Xuml4y8NI05.js +596 -0
- package/assets/33QTHR3r6ZujxFx8.js +18 -0
- package/assets/8vRAQlvTcvMLeio0.js +1131 -0
- package/assets/9MRZ5Yc2RBgcqZSp.js +594 -0
- package/assets/9dbZwzIWefGss7is.js +52 -0
- package/assets/B-1_xSqUFCJ6jNjn.js +9109 -0
- package/assets/B-jE7tAMA559MtNt.js +37 -0
- package/assets/B5xHa5bjZu5ONrm5.js +638 -0
- package/assets/B66aeGYrHLbGpuN9.js +9137 -0
- package/assets/B6BP5l2qmeZhqVV7.js +7 -0
- package/assets/B6b9ytNrHR-ijcOa.js +30 -0
- package/assets/B9QlqO6n3MCBsvoj.js +504 -0
- package/assets/B9qiPx_BXxo1jgcx.js +2368 -0
- package/assets/B9w1dNK8pNq-Z1P3.js +142 -0
- package/assets/BDZ1FGc1zFqO1nK7.js +4036 -0
- package/assets/BFwNQZVRnbNt-gRJ.js +2260 -0
- package/assets/BMnNvUCJu35tT_aO.js +19 -0
- package/assets/BNfBq8Eic3Cl-f6A.js +184 -0
- package/assets/BOF64A2D2KKcv_fo.js +15 -0
- package/assets/BOcWUnxWSG1d5Ljc.js +447 -0
- package/assets/BW8XjynUqlfvuQUV.js +37 -0
- package/assets/BWsXOU_jh_cA8m8I.js +12 -0
- package/assets/BXC6616BWEWNZ2-D.js +63 -0
- package/assets/BYtBi8vLoB41QkV8.js +656 -0
- package/assets/B_-VPqfsse8AlCTm.js +81 -0
- package/assets/BiAEoWSl8c6jcUnS.js +28 -0
- package/assets/BkBCkgPNrFR5N9fo.js +19 -0
- package/assets/BmxgDCZk_aMDms4i.js +639 -0
- package/assets/BoTScfjgygCozDVi.js +23 -0
- package/assets/BwisWvPpXRhyIP4O.js +15 -0
- package/assets/ByziR0Anm39Bw0Bc.js +1556 -0
- package/assets/C-5LlJ5qhC7Ef0gV.js +12996 -0
- package/assets/C-CNmTrzNS-ZlQ8j.js +1760 -0
- package/assets/C1rIlmARlinuie5E.js +45 -0
- package/assets/C1w8NQeox7_92swz.js +35 -0
- package/assets/C2Rgsb69SnMOohGt.js +23 -0
- package/assets/C55MTJ_5qW94RElE.js +7514 -0
- package/assets/CBNNl8igIyeHY4St.js +780 -0
- package/assets/CDGeuGB9CBXeCIm6.js +12 -0
- package/assets/CH9M37mRwnS0t9wM.js +104 -0
- package/assets/CHHJZPAuM3OjbzF6.js +402 -0
- package/assets/CMTDUipnLiOj5pbe.js +610 -0
- package/assets/COFze3jkZDQRSij9.js +4437 -0
- package/assets/CPDkdp0yI4DwUHGZ.js +119 -0
- package/assets/CULV-2mwmqYYpAjM.js +119 -0
- package/assets/CVFTQ0OwsUt03r4o.js +146 -0
- package/assets/CXM1IYmE-TDInPwr.js +118 -0
- package/assets/CcLPa6zB5PH3OG2O.js +10289 -0
- package/assets/CdF5MxGnISAZ41oQ.js +359 -0
- package/assets/CeDqeFLuUfN8UIGx.js +17 -0
- package/assets/CfiVUfpeONJ3rf31.js +28 -0
- package/assets/Cfvhcua4c6onouhP.js +14 -0
- package/assets/CgjR_TiVOcuxg5tO.js +16 -0
- package/assets/CjwzOAnab_dpAqiG.js +144 -0
- package/assets/Cm3Q_-DDdnVHRBxr.js +351 -0
- package/assets/CpOhY88x6AgVxvTz.js +49 -0
- package/assets/CtpcYuBFU6fxsUhs.js +71 -0
- package/assets/CutEBbZl8oFbTlXZ.js +171 -0
- package/assets/CwJyw5Yxpj4PGh14.js +28 -0
- package/assets/CwdOInoJwCxXnhog.js +7 -0
- package/assets/D2_T0KSaye0ncjQa.js +6294 -0
- package/assets/D2w3KjYuONW1G1kX.js +86 -0
- package/assets/D3BAmD-1AfFtHdC6.js +242 -0
- package/assets/D81iH5MJJfq2t9FP.js +32 -0
- package/assets/D94hlZEaHtGHdN_K.js +202 -0
- package/assets/DBFXsbIHDxbMBrzV.js +319 -0
- package/assets/DCHsM8bfVisYJFTT.js +1783 -0
- package/assets/DIy1659Yv5-fD69E.js +123 -0
- package/assets/DK0VM9-qrEXBm8Ud.js +223 -0
- package/assets/DPazQ_nZv-sXUwO3.js +45 -0
- package/assets/DSSrCrejjpWoszj7.js +33 -0
- package/assets/DTlvhtB9hvPdbdxu.js +60493 -0
- package/assets/DUUt1z6Y_cpxEpYY.js +24 -0
- package/assets/DUYoUViqY5U6uQX3.js +18 -0
- package/assets/DUzaW_op2vBTwOOI.js +18 -0
- package/assets/DWTpPijG5yeNFR0W.js +14 -0
- package/assets/DZRp3_yqPS6Lshho.js +32 -0
- package/assets/DZZ5R3msiytVNCqK.js +199 -0
- package/assets/Df2IAW-O7Gwl7V1l.js +7 -0
- package/assets/Dfd7kvLIFNqu-m-r.js +51 -0
- package/assets/Dg7xy50qHwqkYd4g.js +1135 -0
- package/assets/DihigEGfNCLR8UPN.js +8 -0
- package/assets/DkFK1iu4vqjLZMja.js +3011 -0
- package/assets/DkPXpv81Y5teMd-R.js +20 -0
- package/assets/Dl87mJoXDkCkzBi7.js +3917 -0
- package/assets/DnmjS548g7nY6EUS.js +1860 -0
- package/assets/DoIU_ohoCBwTZV9G.js +310 -0
- package/assets/Doqy_uDSQTCv6a6X.js +35 -0
- package/assets/DpGuA6U12gwyGHEM.js +369 -0
- package/assets/DuZ6DXQGttY3Lrhd.js +5220 -0
- package/assets/Du_JrYiYGJo5_B9H.js +12 -0
- package/assets/DvD_K4M5HgJ4uJ8L.js +7 -0
- package/assets/EeSGsbh_r4N-qs4w.js +96 -0
- package/assets/GnXTzeDYWWeEf5yV.js +55 -0
- package/assets/HKLw8b2xTdu5c1w5.js +63 -0
- package/assets/KpCEdfpsHnfkyqjx.js +37 -0
- package/assets/OU7gC5JF-lyDOOid.js +27 -0
- package/assets/PRSerWiAGYu8MVnd.js +304 -0
- package/assets/PmooYGqWqoTxPExF.js +449 -0
- package/assets/QXKcNTuZqOauSidr.js +58 -0
- package/assets/ThqyayHHaBxzfaAt.js +255 -0
- package/assets/TzsPqmpG77I4ewVt.js +173 -0
- package/assets/UX2ywz3gr7q-MlHr.js +105 -0
- package/assets/W-MzzQHZuRxr8adc.js +2346 -0
- package/assets/ZBYHyJs7CQgnnHfR.js +362 -0
- package/assets/ZTEO4JX22YIOkrJg.js +8338 -0
- package/assets/a7BoASyT8yQZY9hJ.js +22 -0
- package/assets/aqguaobnu61szXWM.js +22 -0
- package/assets/cdIvC9t9tYtVn4nc.js +405 -0
- package/assets/cv7k-VAIJtYeL9k4.js +23 -0
- package/assets/ddJqSu7gXUkXjGxZ.js +13 -0
- package/assets/eHAVGCUcMAfNjEGt.js +7 -0
- package/assets/hRLLK6I6m0uGKWo8.js +32 -0
- package/assets/mcFLzsOH35mvmd3C.js +145 -0
- package/assets/st-UQngeBG4hwKoy.js +47 -0
- package/assets/w8YWSMNTTn45ImnB.js +857 -0
- package/assets/yNiBIhsMP9BCWd67.js +28 -0
- package/assets/zu-72oKE_gCkrozc.js +540 -0
- package/index.js +8070 -0
- package/lib.js +7 -0
- package/licenses/dependencies.txt +1552 -0
- package/package.json +44 -3
- package/resources/contents.json +333 -0
- package/resources/fonts/@sheetxl/sdk/aptos-bold-italic.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/aptos-bold-italic.metrics.json +221 -0
- package/resources/fonts/@sheetxl/sdk/aptos-bold-italic.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/aptos-bold.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/aptos-bold.metrics.json +221 -0
- package/resources/fonts/@sheetxl/sdk/aptos-bold.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/aptos-display-bold-italic.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/aptos-display-bold-italic.metrics.json +221 -0
- package/resources/fonts/@sheetxl/sdk/aptos-display-bold-italic.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/aptos-display-bold.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/aptos-display-bold.metrics.json +221 -0
- package/resources/fonts/@sheetxl/sdk/aptos-display-bold.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/aptos-display-italic.hinted.json +124 -0
- package/resources/fonts/@sheetxl/sdk/aptos-display-italic.metrics.json +221 -0
- package/resources/fonts/@sheetxl/sdk/aptos-display-italic.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/aptos-display-regular.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/aptos-display-regular.metrics.json +221 -0
- package/resources/fonts/@sheetxl/sdk/aptos-display-regular.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/aptos-italic.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/aptos-italic.metrics.json +221 -0
- package/resources/fonts/@sheetxl/sdk/aptos-italic.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/aptos-narrow-bold-italic.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/aptos-narrow-bold-italic.metrics.json +221 -0
- package/resources/fonts/@sheetxl/sdk/aptos-narrow-bold-italic.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/aptos-narrow-bold.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/aptos-narrow-bold.metrics.json +221 -0
- package/resources/fonts/@sheetxl/sdk/aptos-narrow-bold.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/aptos-narrow-italic.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/aptos-narrow-italic.metrics.json +221 -0
- package/resources/fonts/@sheetxl/sdk/aptos-narrow-italic.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/aptos-narrow-regular.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/aptos-narrow-regular.metrics.json +221 -0
- package/resources/fonts/@sheetxl/sdk/aptos-narrow-regular.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/aptos-regular.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/aptos-regular.metrics.json +221 -0
- package/resources/fonts/@sheetxl/sdk/aptos-regular.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/arial-bold-italic.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/arial-bold-italic.metrics.json +139 -0
- package/resources/fonts/@sheetxl/sdk/arial-bold-italic.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/arial-bold.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/arial-bold.metrics.json +139 -0
- package/resources/fonts/@sheetxl/sdk/arial-bold.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/arial-italic.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/arial-italic.metrics.json +139 -0
- package/resources/fonts/@sheetxl/sdk/arial-italic.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/arial-regular.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/arial-regular.metrics.json +139 -0
- package/resources/fonts/@sheetxl/sdk/arial-regular.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/calibri-bold-italic.hinted.json +122 -0
- package/resources/fonts/@sheetxl/sdk/calibri-bold-italic.metrics.json +137 -0
- package/resources/fonts/@sheetxl/sdk/calibri-bold-italic.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/calibri-bold.hinted.json +122 -0
- package/resources/fonts/@sheetxl/sdk/calibri-bold.metrics.json +137 -0
- package/resources/fonts/@sheetxl/sdk/calibri-bold.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/calibri-italic.hinted.json +121 -0
- package/resources/fonts/@sheetxl/sdk/calibri-italic.metrics.json +137 -0
- package/resources/fonts/@sheetxl/sdk/calibri-italic.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/calibri-regular.hinted.json +121 -0
- package/resources/fonts/@sheetxl/sdk/calibri-regular.metrics.json +137 -0
- package/resources/fonts/@sheetxl/sdk/calibri-regular.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/cambria-bold-italic.hinted.json +105 -0
- package/resources/fonts/@sheetxl/sdk/cambria-bold-italic.metrics.json +66 -0
- package/resources/fonts/@sheetxl/sdk/cambria-bold-italic.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/cambria-bold.hinted.json +108 -0
- package/resources/fonts/@sheetxl/sdk/cambria-bold.metrics.json +66 -0
- package/resources/fonts/@sheetxl/sdk/cambria-bold.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/cambria-italic.hinted.json +102 -0
- package/resources/fonts/@sheetxl/sdk/cambria-italic.metrics.json +66 -0
- package/resources/fonts/@sheetxl/sdk/cambria-italic.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/cambria-regular.hinted.json +110 -0
- package/resources/fonts/@sheetxl/sdk/cambria-regular.metrics.json +66 -0
- package/resources/fonts/@sheetxl/sdk/cambria-regular.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/contents.json +646 -0
- package/resources/fonts/@sheetxl/sdk/courier-new-bold-italic.hinted.json +11 -0
- package/resources/fonts/@sheetxl/sdk/courier-new-bold-italic.metrics.json +143 -0
- package/resources/fonts/@sheetxl/sdk/courier-new-bold-italic.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/courier-new-bold.hinted.json +11 -0
- package/resources/fonts/@sheetxl/sdk/courier-new-bold.metrics.json +143 -0
- package/resources/fonts/@sheetxl/sdk/courier-new-bold.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/courier-new-italic.hinted.json +11 -0
- package/resources/fonts/@sheetxl/sdk/courier-new-italic.metrics.json +143 -0
- package/resources/fonts/@sheetxl/sdk/courier-new-italic.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/courier-new-regular.hinted.json +11 -0
- package/resources/fonts/@sheetxl/sdk/courier-new-regular.metrics.json +143 -0
- package/resources/fonts/@sheetxl/sdk/courier-new-regular.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/times-new-roman-bold-italic.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/times-new-roman-bold-italic.metrics.json +141 -0
- package/resources/fonts/@sheetxl/sdk/times-new-roman-bold-italic.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/times-new-roman-bold.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/times-new-roman-bold.metrics.json +141 -0
- package/resources/fonts/@sheetxl/sdk/times-new-roman-bold.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/times-new-roman-italic.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/times-new-roman-italic.metrics.json +143 -0
- package/resources/fonts/@sheetxl/sdk/times-new-roman-italic.rows.json +8 -0
- package/resources/fonts/@sheetxl/sdk/times-new-roman-regular.hinted.json +125 -0
- package/resources/fonts/@sheetxl/sdk/times-new-roman-regular.metrics.json +141 -0
- package/resources/fonts/@sheetxl/sdk/times-new-roman-regular.rows.json +8 -0
- package/resources/locales/@sheetxl/formulas/contents.json +9 -0
- package/resources/locales/@sheetxl/formulas/de/functions.json +298 -0
- package/resources/locales/@sheetxl/formulas-extended/contents.json +9 -0
- package/resources/locales/@sheetxl/formulas-extended/de/functions.json +59 -0
- package/resources/locales/@sheetxl/sdk/contents.json +19 -0
- package/resources/locales/@sheetxl/sdk/de/grammar.json +16 -0
- package/resources/locales/@sheetxl/sdk/de/model.msg.json +710 -0
- package/resources/locales/@sheetxl/sdk/en/model.msg.json +732 -0
- package/screenshot-page/assets/-cpi3yOZYn6GsYN4.js +9 -0
- package/screenshot-page/assets/-i_fTASJeu9NdNH_.js +7 -0
- package/screenshot-page/assets/04d8koPx6lzeMYRQ.js +39 -0
- package/screenshot-page/assets/0MTaPYjKud2Q9QG9.js +1 -0
- package/screenshot-page/assets/21oAESJyBGXeHegm.js +2 -0
- package/screenshot-page/assets/3Ls_kOvlQseMV8Q0.js +1 -0
- package/screenshot-page/assets/4qZpl2QCzneWdmJO.js +1 -0
- package/screenshot-page/assets/6IEV7KeOEbBdrthj.js +1 -0
- package/screenshot-page/assets/8QrkTrKHDnMBb7q4.js +1 -0
- package/screenshot-page/assets/9w0ECZmzGUyk3F_O.js +1 -0
- package/screenshot-page/assets/AjS2PipZDIH3BXB2.js +1 -0
- package/screenshot-page/assets/B-KIwD5F_5S-NsPg.js +1 -0
- package/screenshot-page/assets/B-sAzW5ROrhvMGM4.js +1 -0
- package/screenshot-page/assets/B0FQypGas6gbGT_U.js +1 -0
- package/screenshot-page/assets/B2IQMVqTZT1rUnib.js +1 -0
- package/screenshot-page/assets/B2g3jiFIQ4Qjh5gG.js +1 -0
- package/screenshot-page/assets/B4PbXdzBe9BsoZ0e.js +2 -0
- package/screenshot-page/assets/B5GO9v4p9L70Xb9i.js +1 -0
- package/screenshot-page/assets/B8y_eLNCGnXLEIaE.js +1 -0
- package/screenshot-page/assets/BCl5buf87xUgIfEB.js +2 -0
- package/screenshot-page/assets/BEuMvXYIa9A1JacY.js +1 -0
- package/screenshot-page/assets/BEwl-ucV9Jfr0RoC.js +1 -0
- package/screenshot-page/assets/BFaiQZKle44Rhyou.js +1 -0
- package/screenshot-page/assets/BHqg55S-4_OoAu3P.js +2 -0
- package/screenshot-page/assets/BNgLvS2bLOYKRguv.js +1 -0
- package/screenshot-page/assets/BQAN82ftWBiLJT3r.js +1 -0
- package/screenshot-page/assets/BQfe-XTIOGeUnD9B.js +1 -0
- package/screenshot-page/assets/BQnELVV0uR4T4ItQ.js +1 -0
- package/screenshot-page/assets/BRVZJ0OGJg9XJro6.js +1 -0
- package/screenshot-page/assets/BRqSWCr2mTVNFquQ.js +1 -0
- package/screenshot-page/assets/BTOQaSn9DDyJPUlX.js +1 -0
- package/screenshot-page/assets/BUGXf2DEBog16Slb.js +2 -0
- package/screenshot-page/assets/BUjI304IvdJnFXH3.js +1 -0
- package/screenshot-page/assets/BYRwTzX1q407lHUS.js +2 -0
- package/screenshot-page/assets/Baz0SC2AgGyxMX72.js +1 -0
- package/screenshot-page/assets/BbP9KThfrodyosvn.js +1 -0
- package/screenshot-page/assets/BcOdl17EeFSxnAiq.js +1 -0
- package/screenshot-page/assets/BclKeOKIOBjijhsu.js +1 -0
- package/screenshot-page/assets/Bf7xq8PyF4ohjMzP.js +2 -0
- package/screenshot-page/assets/BimyzECCZl-NESff.js +1 -0
- package/screenshot-page/assets/BkLH7JH3A93TXFJi.js +1 -0
- package/screenshot-page/assets/BksaQEoZr5OWq-_d.js +3 -0
- package/screenshot-page/assets/Bor_tayB4yBfNOH5.js +2 -0
- package/screenshot-page/assets/BowRIybLgENunTOT.js +1 -0
- package/screenshot-page/assets/Bp7se0JaDGrzfSA_.js +1 -0
- package/screenshot-page/assets/Bwql3QifB2cv7Mqp.js +3 -0
- package/screenshot-page/assets/Bx61vmiWY0Xvx9qs.js +1 -0
- package/screenshot-page/assets/ByY3fmwyDPAyOLdo.js +1 -0
- package/screenshot-page/assets/Bz2U7weS0spa8Xbh.js +1 -0
- package/screenshot-page/assets/Bz5V1tmiy5gbT9ys.js +1 -0
- package/screenshot-page/assets/Bz9v1lgjvbu4QnOs.js +2 -0
- package/screenshot-page/assets/C1k_VrZqlpiUigCP.js +1 -0
- package/screenshot-page/assets/C2Wh2h27c7FUb8Yk.js +1 -0
- package/screenshot-page/assets/C6oLDVnuCS9LGkkH.js +1 -0
- package/screenshot-page/assets/C81mK8aZKZAAS-AB.js +1 -0
- package/screenshot-page/assets/C9SC-cEIt6gdhZRw.js +1 -0
- package/screenshot-page/assets/CE0MnsfMjqV2ICzk.js +57 -0
- package/screenshot-page/assets/CE8MCCIiwjOVwBBW.js +1 -0
- package/screenshot-page/assets/CFOaI8g7pJuPzsyk.js +1 -0
- package/screenshot-page/assets/CG3ynup87FmG-kkX.js +1 -0
- package/screenshot-page/assets/CHlWgOAlcRCjVuhg.js +1 -0
- package/screenshot-page/assets/CIged53b3hHKxa-o.js +1 -0
- package/screenshot-page/assets/CNQczIR5xcE5u5fT.js +1 -0
- package/screenshot-page/assets/CSUd8n1H0VBfREnk.js +2 -0
- package/screenshot-page/assets/CSlBTkRDITCC8JRB.js +1 -0
- package/screenshot-page/assets/CV2jr9hpQOG2OG0C.js +1 -0
- package/screenshot-page/assets/CXGgKVbVXjWzE0p6.js +1 -0
- package/screenshot-page/assets/CXKCmZ_TRyGaB9Ob.js +1 -0
- package/screenshot-page/assets/CXUO3vYip3JPSJ7A.js +1 -0
- package/screenshot-page/assets/CXwbGzavyvYgDbWU.js +1 -0
- package/screenshot-page/assets/CZf9s6otzzoaBlSs.js +1 -0
- package/screenshot-page/assets/CZvwQEeVhBilgKLG.js +1 -0
- package/screenshot-page/assets/Ca6nxdhEuLLty3d7.js +2 -0
- package/screenshot-page/assets/CbUDukmvDZmVfhJH.js +1 -0
- package/screenshot-page/assets/CbXtAM7H-Jg_J0dk.js +1 -0
- package/screenshot-page/assets/CctIRGMFmARVi2KT.js +1 -0
- package/screenshot-page/assets/Cenh1POxiGMxIQlv.js +1 -0
- package/screenshot-page/assets/ChSvXfVMLxZsP9zG.js +8 -0
- package/screenshot-page/assets/Ci5NtzhJLll1kxGf.js +10 -0
- package/screenshot-page/assets/CjngjJNheGaVRvZp.js +1 -0
- package/screenshot-page/assets/ClzdIJrFdInttVJA.js +1 -0
- package/screenshot-page/assets/CnPgk3HcIziOcskY.js +10 -0
- package/screenshot-page/assets/CnXLpFE_vFrJ5Jbf.js +1 -0
- package/screenshot-page/assets/CnZJ44ncMxZ4ivcB.js +586 -0
- package/screenshot-page/assets/CpbohdgEaEsVDi9J.js +1 -0
- package/screenshot-page/assets/CqR3hGrC956TkCMj.js +20 -0
- package/screenshot-page/assets/Cr1tQKUBVKOQl3QC.js +1 -0
- package/screenshot-page/assets/Cv8FG9PPBkkPw86e.js +1 -0
- package/screenshot-page/assets/CvL9XK3Ht1mP-rGz.js +4 -0
- package/screenshot-page/assets/CykecBozGGFl26KA.js +3940 -0
- package/screenshot-page/assets/CzTizxHhb-CI_ajE.js +1 -0
- package/screenshot-page/assets/CzzEl3lAkZopkwhC.js +1 -0
- package/screenshot-page/assets/D-LgRj0s-PAVqY-L.js +1 -0
- package/screenshot-page/assets/D-XR1MGhwn7Jqj60.js +1 -0
- package/screenshot-page/assets/D47ePD4x1lVazNdl.js +7 -0
- package/screenshot-page/assets/D6Jpaz2YkhOfzxDB.js +1 -0
- package/screenshot-page/assets/D9zCVZpnJBfNSNO2.js +1 -0
- package/screenshot-page/assets/DDQWM8rNYCYzKa9R.js +1 -0
- package/screenshot-page/assets/DDpAoGAPzo1c4vl5.js +27 -0
- package/screenshot-page/assets/DGXDfjkGZjMRAXPg.js +5 -0
- package/screenshot-page/assets/DHa5_U58lSwCnpmG.js +1 -0
- package/screenshot-page/assets/DKVB6ddRfDJatYid.js +1 -0
- package/screenshot-page/assets/DM9U7u7FQK0jcwh4.js +1 -0
- package/screenshot-page/assets/DNDaHmkQrQTaCHhV.js +1 -0
- package/screenshot-page/assets/DQ0kGd99-fXxuNYk.js +1 -0
- package/screenshot-page/assets/DQWHkaQeNXft9j8b.js +2 -0
- package/screenshot-page/assets/DRVfGdmVBvktrZ1t.js +1 -0
- package/screenshot-page/assets/DRrM-dY9nM7nDRpV.js +1 -0
- package/screenshot-page/assets/DT2x1gO3f2G5NfeB.js +1 -0
- package/screenshot-page/assets/DU3FmyUH0RjPIBd-.js +1 -0
- package/screenshot-page/assets/DUJzubL4qqOyizfu.js +1 -0
- package/screenshot-page/assets/DVueE--eOrZPrqrm.js +1 -0
- package/screenshot-page/assets/DWiI5I3RtoKvVT66.js +1 -0
- package/screenshot-page/assets/DYJSIlNxrNw8qk-w.js +1 -0
- package/screenshot-page/assets/DYRbCudWTaiE_Sjc.js +1 -0
- package/screenshot-page/assets/DZDRRw-62D6Zw7qs.js +1 -0
- package/screenshot-page/assets/D_H2dlsQ8PJ0r1WD.js +10 -0
- package/screenshot-page/assets/DaKZ4-Li_ULIIwnK.js +1 -0
- package/screenshot-page/assets/DadZXeaVK5UXSHIi.js +1 -0
- package/screenshot-page/assets/Db_VGqQo2G2JgXWW.js +1 -0
- package/screenshot-page/assets/DceNHPrRLok2At-X.js +1 -0
- package/screenshot-page/assets/DcrVJCyDwGKeil2U.js +1 -0
- package/screenshot-page/assets/DeAKjatTVaZ0u_FY.js +1 -0
- package/screenshot-page/assets/DmMZ4pd492HPw_3_.js +1 -0
- package/screenshot-page/assets/DmbuCapSSCYIa3yk.js +1 -0
- package/screenshot-page/assets/Dpepompn_NhpSncR.js +1 -0
- package/screenshot-page/assets/DqM1wwsmN1J4MXMm.js +1 -0
- package/screenshot-page/assets/DqYhS4mcQfOe96hU.js +1 -0
- package/screenshot-page/assets/DsL71n5SxCVjL6Ho.js +2 -0
- package/screenshot-page/assets/DyGpT6t96jrvgJes.js +1 -0
- package/screenshot-page/assets/DyLWQxXXTw5uwPVy.js +30 -0
- package/screenshot-page/assets/DyYVf8O1rhg3YmjW.js +1 -0
- package/screenshot-page/assets/DyxJBLjUkeDuu96F.js +1 -0
- package/screenshot-page/assets/DzZRUd0p22CBa27b.js +1 -0
- package/screenshot-page/assets/HclGiUj8dZXDFmoM.js +1 -0
- package/screenshot-page/assets/IRtoU5oVgBWu9rnK.js +2 -0
- package/screenshot-page/assets/IfF7Tv-nhz6Ikpn0.js +1 -0
- package/screenshot-page/assets/J73KTOmdZGNmnq-z.js +1 -0
- package/screenshot-page/assets/J_xJVgE7YlmeU-ZO.js +6 -0
- package/screenshot-page/assets/KoxRo2J_cwB_yOd5.js +2 -0
- package/screenshot-page/assets/LVtV_IPhPQroHRui.js +1 -0
- package/screenshot-page/assets/MNoPOsydrUv1UGU8.js +2 -0
- package/screenshot-page/assets/Miyn0clMq0rovRIo.js +1 -0
- package/screenshot-page/assets/Rm5Sf5E6t8bk_Y3r.js +1 -0
- package/screenshot-page/assets/b3AbgxQkoaCiBi15.js +1 -0
- package/screenshot-page/assets/fGlPAximvsxzPzGA.js +1 -0
- package/screenshot-page/assets/gG0AFZ45VxS_moMw.js +2 -0
- package/screenshot-page/assets/nHThFXCAZFOM_npq.js +1 -0
- package/screenshot-page/assets/pRykm05ElquZBk_a.js +1 -0
- package/screenshot-page/assets/qm3VY0bH7F7EgSdi.js +2 -0
- package/screenshot-page/assets/rPOkVKdPbFpTG6AY.js +1 -0
- package/screenshot-page/assets/w3bV7wggRayUYTd-.js +1 -0
- package/screenshot-page/assets/zFbb8ESzwR_bE7IQ.js +1 -0
- package/screenshot-page/assets/zHHZFbk5RXnrxbOc.js +42 -0
- package/screenshot-page/index.html +44 -0
- package/screenshot-page/resources/contents.json +333 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-bold-italic.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-bold-italic.metrics.json +221 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-bold-italic.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-bold.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-bold.metrics.json +221 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-bold.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-bold-italic.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-bold-italic.metrics.json +221 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-bold-italic.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-bold.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-bold.metrics.json +221 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-bold.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-italic.hinted.json +124 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-italic.metrics.json +221 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-italic.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-regular.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-regular.metrics.json +221 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-regular.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-italic.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-italic.metrics.json +221 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-italic.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-bold-italic.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-bold-italic.metrics.json +221 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-bold-italic.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-bold.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-bold.metrics.json +221 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-bold.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-italic.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-italic.metrics.json +221 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-italic.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-regular.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-regular.metrics.json +221 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-regular.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-regular.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-regular.metrics.json +221 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-regular.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-bold-italic.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-bold-italic.metrics.json +139 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-bold-italic.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-bold.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-bold.metrics.json +139 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-bold.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-italic.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-italic.metrics.json +139 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-italic.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-regular.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-regular.metrics.json +139 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-regular.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-bold-italic.hinted.json +122 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-bold-italic.metrics.json +137 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-bold-italic.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-bold.hinted.json +122 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-bold.metrics.json +137 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-bold.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-italic.hinted.json +121 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-italic.metrics.json +137 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-italic.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-regular.hinted.json +121 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-regular.metrics.json +137 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-regular.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-bold-italic.hinted.json +105 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-bold-italic.metrics.json +66 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-bold-italic.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-bold.hinted.json +108 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-bold.metrics.json +66 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-bold.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-italic.hinted.json +102 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-italic.metrics.json +66 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-italic.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-regular.hinted.json +110 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-regular.metrics.json +66 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-regular.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/contents.json +646 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-bold-italic.hinted.json +11 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-bold-italic.metrics.json +143 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-bold-italic.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-bold.hinted.json +11 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-bold.metrics.json +143 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-bold.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-italic.hinted.json +11 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-italic.metrics.json +143 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-italic.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-regular.hinted.json +11 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-regular.metrics.json +143 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-regular.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-bold-italic.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-bold-italic.metrics.json +141 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-bold-italic.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-bold.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-bold.metrics.json +141 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-bold.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-italic.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-italic.metrics.json +143 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-italic.rows.json +8 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-regular.hinted.json +125 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-regular.metrics.json +141 -0
- package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-regular.rows.json +8 -0
- package/screenshot-page/resources/locales/@sheetxl/formulas/contents.json +9 -0
- package/screenshot-page/resources/locales/@sheetxl/formulas/de/functions.json +298 -0
- package/screenshot-page/resources/locales/@sheetxl/formulas-extended/contents.json +9 -0
- package/screenshot-page/resources/locales/@sheetxl/formulas-extended/de/functions.json +59 -0
- package/screenshot-page/resources/locales/@sheetxl/sdk/contents.json +19 -0
- package/screenshot-page/resources/locales/@sheetxl/sdk/de/grammar.json +16 -0
- package/screenshot-page/resources/locales/@sheetxl/sdk/de/model.msg.json +710 -0
- package/screenshot-page/resources/locales/@sheetxl/sdk/en/model.msg.json +732 -0
- package/types/index.d.ts +1 -0
- package/types/lib.d.ts +2 -0
- package/types/scripting-api.json +10855 -0
- package/types/scripting-enums.json +1339 -0
- package/types/scripting.d.ts +49295 -0
- package/types/src/SessionRegistry.d.ts +630 -0
- package/types/src/index.d.ts +3 -0
- package/types/src/instances.d.ts +104 -0
- package/types/src/lib/Types.d.ts +17 -0
- package/types/src/lib/index.d.ts +2 -0
- package/types/src/lib/runReport.d.ts +158 -0
- package/types/src/lib.d.ts +2 -0
- package/types/src/prepareRun.d.ts +56 -0
- package/types/src/relay.d.ts +102 -0
- package/types/src/screenshot.d.ts +23 -0
- package/types/src/server.d.ts +37 -0
- package/types/src/taskStore.d.ts +28 -0
|
@@ -0,0 +1,639 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/mcp - MCP server exposing SheetXL spreadsheet operations as tools and resources. - v0.8.0-beta.14
|
|
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 { ht as e, ot as t, p as n, tt as o, u as r } from "./DkFK1iu4vqjLZMja.js";
|
|
8
|
+
import { i as s } from "./8vRAQlvTcvMLeio0.js";
|
|
9
|
+
import { $t as i, G as a, Zt as c, it as l } from "./B-1_xSqUFCJ6jNjn.js";
|
|
10
|
+
import { $t as h, Qt as u, T as d, _t as m, kt as p, pr as g, s as _ } from "./DTlvhtB9hvPdbdxu.js";
|
|
11
|
+
var b = class extends p {
|
|
12
|
+
constructor(e) {
|
|
13
|
+
super(e), this._optionsMember = e;
|
|
14
|
+
}
|
|
15
|
+
getParent() {
|
|
16
|
+
return this._optionsMovable.getParent();
|
|
17
|
+
}
|
|
18
|
+
getRange(e) {
|
|
19
|
+
return this.getParent().getRange(e);
|
|
20
|
+
}
|
|
21
|
+
getRanges(e) {
|
|
22
|
+
return this.getParent().getRanges(e);
|
|
23
|
+
}
|
|
24
|
+
isDeleted() {
|
|
25
|
+
return !!super.isDeleted() || ((this._optionsMovable?.getParent?.())?.isDeleted() ?? !1);
|
|
26
|
+
}
|
|
27
|
+
getAnchorType() {
|
|
28
|
+
return h.Type.Absolute;
|
|
29
|
+
}
|
|
30
|
+
setAnchorType(e) {
|
|
31
|
+
return this;
|
|
32
|
+
}
|
|
33
|
+
_getLocalPlacement() {
|
|
34
|
+
const e = this._getState(), t = e?.pixelBounds;
|
|
35
|
+
return t ? {
|
|
36
|
+
bounds: t,
|
|
37
|
+
rotation: e.rotation ?? 0,
|
|
38
|
+
flip: {
|
|
39
|
+
horizontal: e.flipH ?? !1,
|
|
40
|
+
vertical: e.flipV ?? !1
|
|
41
|
+
}
|
|
42
|
+
} : null;
|
|
43
|
+
}
|
|
44
|
+
_getDrawnPlacement() {
|
|
45
|
+
const e = this._getLocalPlacement();
|
|
46
|
+
return e ? this._optionsMember.place(e) : null;
|
|
47
|
+
}
|
|
48
|
+
getBounds() {
|
|
49
|
+
return this._getDrawnPlacement()?.bounds ?? null;
|
|
50
|
+
}
|
|
51
|
+
getRotation() {
|
|
52
|
+
return this._getDrawnPlacement()?.rotation ?? 0;
|
|
53
|
+
}
|
|
54
|
+
getFlip() {
|
|
55
|
+
return this._getDrawnPlacement()?.flip ?? {
|
|
56
|
+
horizontal: !1,
|
|
57
|
+
vertical: !1
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
setRotation(e = 0) {
|
|
61
|
+
const t = this._acceptRotation(e);
|
|
62
|
+
if (null === t) return this;
|
|
63
|
+
e = t;
|
|
64
|
+
const n = this._getDrawnPlacement();
|
|
65
|
+
if (!n || e === n.rotation) return this;
|
|
66
|
+
const o = this._optionsMember.unplace({
|
|
67
|
+
...n,
|
|
68
|
+
rotation: e
|
|
69
|
+
});
|
|
70
|
+
if (!o) return this;
|
|
71
|
+
const s = r("op.setMovableRotation"), i = this._beginCommit(s);
|
|
72
|
+
try {
|
|
73
|
+
this._updateState({
|
|
74
|
+
rotation: o.rotation,
|
|
75
|
+
pixelBounds: o.bounds
|
|
76
|
+
}, { description: s }, ["onBoundsChange"]), this._optionsMember.onMemberPlacementChange?.(), this._notifyPlacementChange(), i.commit();
|
|
77
|
+
} catch (e) {
|
|
78
|
+
throw i.rollback(), e;
|
|
79
|
+
}
|
|
80
|
+
return this;
|
|
81
|
+
}
|
|
82
|
+
setFlip(e, t) {
|
|
83
|
+
const n = this._getDrawnPlacement();
|
|
84
|
+
if (!n) return this;
|
|
85
|
+
const o = this._acceptFlip({
|
|
86
|
+
horizontal: e.horizontal ?? n.flip.horizontal,
|
|
87
|
+
vertical: e.vertical ?? n.flip.vertical
|
|
88
|
+
});
|
|
89
|
+
if (!o) return this;
|
|
90
|
+
const { horizontal: s, vertical: i } = o;
|
|
91
|
+
if (s === n.flip.horizontal && i === n.flip.vertical) return this;
|
|
92
|
+
const a = this._optionsMember.unplace({
|
|
93
|
+
...n,
|
|
94
|
+
flip: {
|
|
95
|
+
horizontal: s,
|
|
96
|
+
vertical: i
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
if (!a) return this;
|
|
100
|
+
const c = t?.description ?? r("op.setMovableFlip"), l = this._beginCommit(c);
|
|
101
|
+
try {
|
|
102
|
+
this._updateState({
|
|
103
|
+
flipH: a.flip.horizontal,
|
|
104
|
+
flipV: a.flip.vertical
|
|
105
|
+
}, { description: c }), this._notifyPlacementChange(), l.commit();
|
|
106
|
+
} catch (e) {
|
|
107
|
+
throw l.rollback(), e;
|
|
108
|
+
}
|
|
109
|
+
return this;
|
|
110
|
+
}
|
|
111
|
+
_getAnchorBounds() {
|
|
112
|
+
const e = this._getDrawnPlacement();
|
|
113
|
+
return e ? l(e.bounds, e.rotation) : null;
|
|
114
|
+
}
|
|
115
|
+
_setAnchorBounds(e) {
|
|
116
|
+
const t = this._getDrawnPlacement();
|
|
117
|
+
if (!t) return;
|
|
118
|
+
const n = this._optionsMember.unplace({
|
|
119
|
+
...t,
|
|
120
|
+
bounds: l(e, t.rotation)
|
|
121
|
+
});
|
|
122
|
+
if (!n) return;
|
|
123
|
+
const o = this._getLocalPlacement();
|
|
124
|
+
o && a.isSameBounds(o.bounds, n.bounds) || (this._updateState({ pixelBounds: n.bounds }, { description: r("op.updateMovableBounds") }, ["onBoundsChange"]), this._optionsMember.onMemberPlacementChange?.());
|
|
125
|
+
}
|
|
126
|
+
_processContainerLayout() {
|
|
127
|
+
this._getEmitter().notify("onBoundsChange"), this._forwardLayout();
|
|
128
|
+
}
|
|
129
|
+
_fromJSON(t) {
|
|
130
|
+
const n = t.anchor?.tl ?? e.EmptyObject, o = t.anchor?.br ?? e.EmptyObject;
|
|
131
|
+
this._updateState({
|
|
132
|
+
offsets: {
|
|
133
|
+
tl: {
|
|
134
|
+
x: 0,
|
|
135
|
+
y: 0
|
|
136
|
+
},
|
|
137
|
+
br: {
|
|
138
|
+
x: 0,
|
|
139
|
+
y: 0
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
hidden: t.hidden ?? !1,
|
|
143
|
+
rotation: t.rotation ?? 0,
|
|
144
|
+
flipH: t.flipH ?? !1,
|
|
145
|
+
flipV: t.flipV ?? !1,
|
|
146
|
+
lockAspectRatio: t.lockAspect ?? null,
|
|
147
|
+
locks: t.locks ?? null,
|
|
148
|
+
anchorType: h.Type.Absolute,
|
|
149
|
+
pixelBounds: {
|
|
150
|
+
x: n.x ?? 0,
|
|
151
|
+
y: n.y ?? 0,
|
|
152
|
+
width: o.x ?? 0,
|
|
153
|
+
height: o.y ?? 0
|
|
154
|
+
}
|
|
155
|
+
}, { description: r("op.loadMovable") });
|
|
156
|
+
}
|
|
157
|
+
_getAnchorJSON() {
|
|
158
|
+
const t = this._getState()?.pixelBounds ?? {
|
|
159
|
+
x: 0,
|
|
160
|
+
y: 0,
|
|
161
|
+
width: 0,
|
|
162
|
+
height: 0
|
|
163
|
+
}, n = (t) => e.roundAccurately(t, 2);
|
|
164
|
+
return {
|
|
165
|
+
tl: {
|
|
166
|
+
x: n(t.x),
|
|
167
|
+
y: n(t.y)
|
|
168
|
+
},
|
|
169
|
+
br: {
|
|
170
|
+
x: n(t.width),
|
|
171
|
+
y: n(t.height)
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
toJSON(e) {
|
|
176
|
+
const t = super.toJSON(e);
|
|
177
|
+
return delete t.anchorType, t;
|
|
178
|
+
}
|
|
179
|
+
}, f = class extends u {
|
|
180
|
+
constructor(e, t) {
|
|
181
|
+
super(t), this._group = e;
|
|
182
|
+
}
|
|
183
|
+
_getItems(e) {
|
|
184
|
+
const t = this._group._getMembers(), n = e?.type, o = void 0 === n ? null : Array.isArray(n) ? n : [n], r = [];
|
|
185
|
+
for (const n of t) {
|
|
186
|
+
if (e?.ignoreHidden && n.isHidden()) continue;
|
|
187
|
+
o && !o.includes(n.getContent().getType()) || r.push(n);
|
|
188
|
+
const t = e?.deep ? n.getMovables() : null;
|
|
189
|
+
t && r.push(...t.getItems(e));
|
|
190
|
+
}
|
|
191
|
+
return r;
|
|
192
|
+
}
|
|
193
|
+
getCount() {
|
|
194
|
+
return this._group._getMembers().length;
|
|
195
|
+
}
|
|
196
|
+
add(e) {
|
|
197
|
+
if (!e) throw new o("No movable options provided");
|
|
198
|
+
return this._group._addMember(e);
|
|
199
|
+
}
|
|
200
|
+
_prepare(e) {
|
|
201
|
+
if (!e) throw new o("No movable options provided");
|
|
202
|
+
return this._group._prepareMember(e);
|
|
203
|
+
}
|
|
204
|
+
_preparePicture(e, t) {
|
|
205
|
+
const n = this._group.getMovable();
|
|
206
|
+
if (!n) throw new o("The group is not placed.");
|
|
207
|
+
const s = n.getRange().getWorksheet().getResources().add(e);
|
|
208
|
+
return this._group._prepareMember({
|
|
209
|
+
description: r("op.insertImage"),
|
|
210
|
+
...t,
|
|
211
|
+
type: "picture",
|
|
212
|
+
json: {
|
|
213
|
+
...t?.json,
|
|
214
|
+
resId: 0
|
|
215
|
+
},
|
|
216
|
+
fromResourceId: () => s
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
_insertNow(e) {
|
|
220
|
+
return this._group._insertMember(e);
|
|
221
|
+
}
|
|
222
|
+
async addPicture(e, t) {
|
|
223
|
+
return this._insertNow(await this._preparePicture(e, t));
|
|
224
|
+
}
|
|
225
|
+
group(e, t) {
|
|
226
|
+
return this._group._groupMembers(e, t);
|
|
227
|
+
}
|
|
228
|
+
updateSelected(e, t) {
|
|
229
|
+
const n = this._group._getMembers().filter((e) => e.isSelected());
|
|
230
|
+
0 !== n.length && this._group.doBatch(() => {
|
|
231
|
+
for (const t of n) e(t);
|
|
232
|
+
}, { description: t ?? r("op.updateMovables") });
|
|
233
|
+
}
|
|
234
|
+
_notifyChange() {
|
|
235
|
+
this._notifyCollectionChange();
|
|
236
|
+
}
|
|
237
|
+
get isIMovableCollection() {
|
|
238
|
+
return !0;
|
|
239
|
+
}
|
|
240
|
+
}, y = (e) => e, w = (e) => e, M = Object.freeze([]), v = class extends s {
|
|
241
|
+
constructor(e) {
|
|
242
|
+
super(e), this._memberCallbacks = /* @__PURE__ */ new WeakMap(), this._toldOrder = C, this._createOptions = e, this._members = new f(this, e.transactions);
|
|
243
|
+
const { members: t, name: n, ...o } = e.json ?? {}, r = [];
|
|
244
|
+
for (const n of t ?? []) try {
|
|
245
|
+
r.push(this._createMember(n, e.fromResourceId));
|
|
246
|
+
} catch (e) {
|
|
247
|
+
console.warn("Unable to load a group member", n, e);
|
|
248
|
+
}
|
|
249
|
+
this._updateState({
|
|
250
|
+
data: o,
|
|
251
|
+
members: r
|
|
252
|
+
}), this._toldOrder = r;
|
|
253
|
+
}
|
|
254
|
+
getType() {
|
|
255
|
+
return "group";
|
|
256
|
+
}
|
|
257
|
+
getTypeDescription() {
|
|
258
|
+
return "Group";
|
|
259
|
+
}
|
|
260
|
+
getMovables() {
|
|
261
|
+
return this._members;
|
|
262
|
+
}
|
|
263
|
+
_childBounds() {
|
|
264
|
+
const e = this._getState()?.data?.childBounds;
|
|
265
|
+
if (e) return e;
|
|
266
|
+
const t = this.getMovable()?.getBounds();
|
|
267
|
+
return {
|
|
268
|
+
x: 0,
|
|
269
|
+
y: 0,
|
|
270
|
+
width: t?.width ?? 0,
|
|
271
|
+
height: t?.height ?? 0
|
|
272
|
+
};
|
|
273
|
+
}
|
|
274
|
+
_rebound() {
|
|
275
|
+
const e = this.getMovable(), t = this._drawnPlacement();
|
|
276
|
+
if (!e || !t) return;
|
|
277
|
+
const n = [];
|
|
278
|
+
for (const e of this._members_()) {
|
|
279
|
+
const t = e._getLocalPlacement();
|
|
280
|
+
t && n.push(l(t.bounds, t.rotation));
|
|
281
|
+
}
|
|
282
|
+
const o = a.unionBounds(n);
|
|
283
|
+
if (!o) return;
|
|
284
|
+
const r = this._childBounds();
|
|
285
|
+
if (a.isSameBounds(o, r)) return;
|
|
286
|
+
const s = r.width > 0 ? t.bounds.width / r.width : 1, i = r.height > 0 ? t.bounds.height / r.height : 1, c = a.placeInParent(t, r, a.flatPlacement({
|
|
287
|
+
x: o.x + o.width / 2,
|
|
288
|
+
y: o.y + o.height / 2,
|
|
289
|
+
width: 0,
|
|
290
|
+
height: 0
|
|
291
|
+
})).bounds, h = o.width * s, u = o.height * i, d = this._getState();
|
|
292
|
+
this._updateState({ data: {
|
|
293
|
+
...d.data,
|
|
294
|
+
childBounds: o
|
|
295
|
+
} }), e.setBounds({
|
|
296
|
+
x: c.x - h / 2,
|
|
297
|
+
y: c.y - u / 2,
|
|
298
|
+
width: h,
|
|
299
|
+
height: u
|
|
300
|
+
});
|
|
301
|
+
}
|
|
302
|
+
_drawnPlacement() {
|
|
303
|
+
const e = this.getMovable();
|
|
304
|
+
return e ? a.placementOf(e) : null;
|
|
305
|
+
}
|
|
306
|
+
getFill() {
|
|
307
|
+
return this._getState()?.data?.fill ?? null;
|
|
308
|
+
}
|
|
309
|
+
getTextFrame() {
|
|
310
|
+
const e = this._getMembers();
|
|
311
|
+
let t = !1;
|
|
312
|
+
const n = [];
|
|
313
|
+
for (const o of e) {
|
|
314
|
+
const e = o.getContent().getTextFrame?.() ?? null;
|
|
315
|
+
if (!e) continue;
|
|
316
|
+
t = !0;
|
|
317
|
+
const r = e.getText();
|
|
318
|
+
"" !== r && n.push(r);
|
|
319
|
+
}
|
|
320
|
+
if (!t) return null;
|
|
321
|
+
const o = n.join("\n");
|
|
322
|
+
return Object.freeze({ getText: () => o });
|
|
323
|
+
}
|
|
324
|
+
get acceptRotation() {
|
|
325
|
+
return this._isEveryMember("acceptRotation") ? y : void 0;
|
|
326
|
+
}
|
|
327
|
+
get acceptFlip() {
|
|
328
|
+
return this._isEveryMember("acceptFlip") ? w : void 0;
|
|
329
|
+
}
|
|
330
|
+
_isEveryMember(e) {
|
|
331
|
+
const t = this._members_();
|
|
332
|
+
for (let n = 0; n < t.length; n++) if (!t[n].getContent()[e]) return !1;
|
|
333
|
+
return !0;
|
|
334
|
+
}
|
|
335
|
+
async ungroup(e) {
|
|
336
|
+
const t = this.getMovable();
|
|
337
|
+
if (!t || this.isDeleted()) return [];
|
|
338
|
+
const n = e?.description ?? r("op.ungroupDrawings");
|
|
339
|
+
this._protectionCheck(n);
|
|
340
|
+
const o = t.getRange().getWorksheet(), s = _(o.getView().getMovableSelection());
|
|
341
|
+
return await this.doBatch(() => {
|
|
342
|
+
const t = this._free(this._members_(), n);
|
|
343
|
+
this.delete(e);
|
|
344
|
+
const r = this._transactions.getPendingTransaction();
|
|
345
|
+
return r && g(r, o, t, {
|
|
346
|
+
autoSelect: e?.autoSelect ?? !0,
|
|
347
|
+
autoSelectRestore: e?.autoSelectRestore
|
|
348
|
+
}, s), t;
|
|
349
|
+
}, { description: n });
|
|
350
|
+
}
|
|
351
|
+
_free(e, t) {
|
|
352
|
+
const n = this.getMovable(), o = n.getParent()?.getMovables() ?? n.getRange().getWorksheet().getMovables(), r = n.getZIndex(), s = this._createOptions.beginPersistResource();
|
|
353
|
+
try {
|
|
354
|
+
return e.map((e, n) => {
|
|
355
|
+
const i = e.toJSON(s.toResourceId.bind(s)), c = a.placementOf(e), l = o._insertNow({
|
|
356
|
+
type: i.content.type,
|
|
357
|
+
json: i.content.json,
|
|
358
|
+
name: i.content.name,
|
|
359
|
+
altText: i.content.description,
|
|
360
|
+
bounds: c.bounds,
|
|
361
|
+
rotation: c.rotation,
|
|
362
|
+
fromResourceId: s.fromResourceId.bind(s),
|
|
363
|
+
autoSelect: !1,
|
|
364
|
+
description: t,
|
|
365
|
+
zIndex: r + n
|
|
366
|
+
});
|
|
367
|
+
return (c.flip.horizontal || c.flip.vertical) && l.setFlip(c.flip), e.isHidden() && l.setHidden(!0), void 0 !== i.lockAspect && l.setLockAspectRatio(i.lockAspect), l;
|
|
368
|
+
});
|
|
369
|
+
} finally {
|
|
370
|
+
s.endPersist();
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
getConnections() {
|
|
374
|
+
return M;
|
|
375
|
+
}
|
|
376
|
+
toJSON(e) {
|
|
377
|
+
const t = { ...this._getState()?.data ?? {} }, n = this._members_();
|
|
378
|
+
return n.length > 0 && (t.members = n.map((t) => t.toJSON(e))), t;
|
|
379
|
+
}
|
|
380
|
+
_getDrawnRect(e, t, n) {
|
|
381
|
+
const o = this._members_();
|
|
382
|
+
if (0 === o.length) return null;
|
|
383
|
+
const r = a.flatPlacement({
|
|
384
|
+
x: 0,
|
|
385
|
+
y: 0,
|
|
386
|
+
width: e,
|
|
387
|
+
height: t
|
|
388
|
+
}), s = this._childBounds();
|
|
389
|
+
let l = 1 / 0, h = 1 / 0, u = -1 / 0, d = -1 / 0, m = !1;
|
|
390
|
+
for (const e of o) {
|
|
391
|
+
if (e.isHidden()) continue;
|
|
392
|
+
const t = e._getLocalPlacement();
|
|
393
|
+
if (!t) continue;
|
|
394
|
+
const o = a.placeInParent(r, s, t), p = e.getContent(), g = i(p) ? p._getDrawnRect(o.bounds.width, o.bounds.height, n) : null, _ = c(o.bounds, g, o.rotation, o.flip);
|
|
395
|
+
l = Math.min(l, _.x), h = Math.min(h, _.y), u = Math.max(u, _.x + _.width), d = Math.max(d, _.y + _.height), m = !0;
|
|
396
|
+
}
|
|
397
|
+
return m ? {
|
|
398
|
+
l,
|
|
399
|
+
t: h,
|
|
400
|
+
r: u,
|
|
401
|
+
b: d
|
|
402
|
+
} : null;
|
|
403
|
+
}
|
|
404
|
+
_getMembers() {
|
|
405
|
+
return this._members_();
|
|
406
|
+
}
|
|
407
|
+
_members_() {
|
|
408
|
+
return this._getState()?.members ?? C;
|
|
409
|
+
}
|
|
410
|
+
async _addMember(e) {
|
|
411
|
+
return this._insertMember(await this._prepareMember(e));
|
|
412
|
+
}
|
|
413
|
+
async _prepareMember(e) {
|
|
414
|
+
if (!e?.type) throw new o("A member needs a type.");
|
|
415
|
+
return this._protectionCheck(r("op.insertDrawing")), await m({
|
|
416
|
+
type: e.type,
|
|
417
|
+
json: e.json
|
|
418
|
+
}), e;
|
|
419
|
+
}
|
|
420
|
+
_insertMember(e) {
|
|
421
|
+
if (!e?.type) throw new o("A member needs a type.");
|
|
422
|
+
this._protectionCheck(r("op.insertDrawing"));
|
|
423
|
+
const t = this._drawnPlacement(), n = {
|
|
424
|
+
...t?.bounds ?? this._childBounds(),
|
|
425
|
+
...e.bounds
|
|
426
|
+
}, s = t ? a.placeInChild(t, this._childBounds(), {
|
|
427
|
+
bounds: n,
|
|
428
|
+
rotation: e.rotation ?? 0,
|
|
429
|
+
flip: {
|
|
430
|
+
horizontal: !1,
|
|
431
|
+
vertical: !1
|
|
432
|
+
}
|
|
433
|
+
}) : {
|
|
434
|
+
bounds: n,
|
|
435
|
+
rotation: e.rotation ?? 0,
|
|
436
|
+
flip: {
|
|
437
|
+
horizontal: !1,
|
|
438
|
+
vertical: !1
|
|
439
|
+
}
|
|
440
|
+
}, i = {
|
|
441
|
+
anchor: {
|
|
442
|
+
tl: {
|
|
443
|
+
x: s.bounds.x,
|
|
444
|
+
y: s.bounds.y
|
|
445
|
+
},
|
|
446
|
+
br: {
|
|
447
|
+
x: s.bounds.width,
|
|
448
|
+
y: s.bounds.height
|
|
449
|
+
}
|
|
450
|
+
},
|
|
451
|
+
content: {
|
|
452
|
+
type: e.type,
|
|
453
|
+
json: e.json
|
|
454
|
+
}
|
|
455
|
+
};
|
|
456
|
+
e.name && (i.content.name = e.name);
|
|
457
|
+
const c = e.altText;
|
|
458
|
+
c && (i.content.description = c), s.rotation && (i.rotation = s.rotation), s.flip.horizontal && (i.flipH = !0), s.flip.vertical && (i.flipV = !0);
|
|
459
|
+
const l = this._beginCommit(e.description ?? r("op.insertDrawing"));
|
|
460
|
+
try {
|
|
461
|
+
const t = this._createMember(i, e.fromResourceId), n = this._members_().slice();
|
|
462
|
+
return n.splice(Math.max(0, Math.min(n.length, e.zIndex ?? n.length)), 0, t), this._updateState({ members: n }), this._rebound(), l.commit(), this._members._notifyChange(), t;
|
|
463
|
+
} catch (e) {
|
|
464
|
+
throw l.rollback(), e;
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
async _groupMembers(e, t) {
|
|
468
|
+
const s = t?.description ?? r("op.groupDrawings");
|
|
469
|
+
if (this._protectionCheck(s), !e || e.length < 2) throw new o(n("error.movable.groupTooFew"));
|
|
470
|
+
const i = this._members_();
|
|
471
|
+
for (const t of e) if (!i.includes(t)) throw new o(n("error.movable.groupNotSameGroup"));
|
|
472
|
+
const c = i.filter((t) => e.includes(t));
|
|
473
|
+
if (c.length === i.length) throw new o(n("error.movable.groupWholeGroup"));
|
|
474
|
+
const h = this.getMovable();
|
|
475
|
+
if (!h) throw new o("The group is not placed.");
|
|
476
|
+
const u = h.getRange().getWorksheet(), d = _(u.getView().getMovableSelection()), m = a.unionBounds(c.map((e) => {
|
|
477
|
+
const t = e._getLocalPlacement();
|
|
478
|
+
return l(t.bounds, t.rotation);
|
|
479
|
+
})), p = this._createOptions.beginPersistResource();
|
|
480
|
+
try {
|
|
481
|
+
const n = {
|
|
482
|
+
anchor: {
|
|
483
|
+
tl: {
|
|
484
|
+
x: m.x,
|
|
485
|
+
y: m.y
|
|
486
|
+
},
|
|
487
|
+
br: {
|
|
488
|
+
x: m.width,
|
|
489
|
+
y: m.height
|
|
490
|
+
}
|
|
491
|
+
},
|
|
492
|
+
content: {
|
|
493
|
+
type: "group",
|
|
494
|
+
json: {
|
|
495
|
+
childBounds: { ...m },
|
|
496
|
+
members: c.map((e) => e.toJSON(p.toResourceId.bind(p)))
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
};
|
|
500
|
+
t?.name && (n.content.name = t.name);
|
|
501
|
+
const o = this._beginCommit(s);
|
|
502
|
+
try {
|
|
503
|
+
for (const e of c) e.unselect();
|
|
504
|
+
const e = this._createMember(n, p.fromResourceId.bind(p)), r = c[c.length - 1], s = [];
|
|
505
|
+
for (const t of i) t === r ? s.push(e) : c.includes(t) || s.push(t);
|
|
506
|
+
this._updateState({ members: s });
|
|
507
|
+
for (const e of c) e.getContent().delete();
|
|
508
|
+
return this._rebound(), g(o, u, [e], {
|
|
509
|
+
autoSelect: t?.autoSelect ?? !0,
|
|
510
|
+
autoSelectRestore: t?.autoSelectRestore
|
|
511
|
+
}, d), o.commit(), this._members._notifyChange(), e;
|
|
512
|
+
} catch (e) {
|
|
513
|
+
throw o.rollback(), e;
|
|
514
|
+
}
|
|
515
|
+
} finally {
|
|
516
|
+
p.endPersist();
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
_removeMember(e, t) {
|
|
520
|
+
const n = this._members_();
|
|
521
|
+
if (!n.includes(e)) return;
|
|
522
|
+
e.unselect();
|
|
523
|
+
const o = this._beginCommit(t?.description ?? r("op.deleteDrawing"));
|
|
524
|
+
try {
|
|
525
|
+
const s = n.filter((t) => t !== e);
|
|
526
|
+
if (this._updateState({ members: s }), 1 === s.length && this.getMovable()) {
|
|
527
|
+
const e = s[0], n = e.isSelected(), [i] = this._free(s, t?.description ?? r("op.deleteDrawing"));
|
|
528
|
+
this.delete(t), n && g(o, i.getRange().getWorksheet(), [i], { autoSelect: !0 }, [e]);
|
|
529
|
+
} else 0 === s.length ? this.delete(t) : this._rebound();
|
|
530
|
+
o.commit(), this._members._notifyChange();
|
|
531
|
+
} catch (e) {
|
|
532
|
+
throw o.rollback(), e;
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
_moveMember(e, t, n) {
|
|
536
|
+
const o = this._members_(), r = o.indexOf(e);
|
|
537
|
+
if (-1 === r) return;
|
|
538
|
+
if ((t = Math.max(0, Math.min(o.length - 1, t))) === r) return;
|
|
539
|
+
this._protectionCheck(n);
|
|
540
|
+
const s = o.slice();
|
|
541
|
+
s.splice(r, 1), s.splice(t, 0, e), this._updateState({ members: s }, { description: n }), this._members._notifyChange();
|
|
542
|
+
}
|
|
543
|
+
_createMember(e, n) {
|
|
544
|
+
const o = this, s = e.content?.type ?? "custom", i = this._createOptions;
|
|
545
|
+
let c;
|
|
546
|
+
const l = {
|
|
547
|
+
type: s,
|
|
548
|
+
transactions: i.transactions,
|
|
549
|
+
beginPersistResource: i.beginPersistResource,
|
|
550
|
+
fromResourceId: n,
|
|
551
|
+
json: e.content?.json,
|
|
552
|
+
name: e.content?.name ?? null,
|
|
553
|
+
description: e.content?.description ?? null,
|
|
554
|
+
isReadOnly: () => o.isReadOnly(),
|
|
555
|
+
deleteFromContainer: () => {
|
|
556
|
+
c?._deleteFromContent();
|
|
557
|
+
},
|
|
558
|
+
getMovable: () => c,
|
|
559
|
+
getStyles: i.getStyles,
|
|
560
|
+
getRange: i.getRange,
|
|
561
|
+
addWatch: i.addWatch
|
|
562
|
+
}, h = d(s, l, {
|
|
563
|
+
getMovable: () => c,
|
|
564
|
+
amend: (e) => o._amend(e),
|
|
565
|
+
isClosed: () => o._closed
|
|
566
|
+
}), u = () => o.getMovable(), m = () => o._members_().indexOf(c);
|
|
567
|
+
let p;
|
|
568
|
+
return c = new b({
|
|
569
|
+
content: h,
|
|
570
|
+
json: e,
|
|
571
|
+
transactions: i.transactions,
|
|
572
|
+
beginPersistResource: i.beginPersistResource,
|
|
573
|
+
fromResourceId: n,
|
|
574
|
+
getParent: u,
|
|
575
|
+
onMemberPlacementChange: () => o._rebound(),
|
|
576
|
+
place: (e) => {
|
|
577
|
+
const t = o._drawnPlacement();
|
|
578
|
+
return t ? a.placeInParent(t, o._childBounds(), e) : null;
|
|
579
|
+
},
|
|
580
|
+
unplace: (e) => {
|
|
581
|
+
const t = o._drawnPlacement();
|
|
582
|
+
return t ? a.placeInChild(t, o._childBounds(), e) : null;
|
|
583
|
+
},
|
|
584
|
+
coords: t.EmptyRange,
|
|
585
|
+
getRanges: (e) => u().getRanges(),
|
|
586
|
+
getContainerIndex: m,
|
|
587
|
+
getZIndex: m,
|
|
588
|
+
getBoundsAtCoords: () => ({
|
|
589
|
+
x: 0,
|
|
590
|
+
y: 0,
|
|
591
|
+
width: 0,
|
|
592
|
+
height: 0
|
|
593
|
+
}),
|
|
594
|
+
getCoordsAtBounds: () => t.EmptyRange,
|
|
595
|
+
isProtected: () => o.isReadOnly(),
|
|
596
|
+
moveToBackOnContainer: () => o._moveMember(c, 0, r("op.moveToBack")),
|
|
597
|
+
moveBackwardOnContainer: () => o._moveMember(c, m() - 1, r("op.moveBackwards")),
|
|
598
|
+
moveForwardOnContainer: () => o._moveMember(c, m() + 1, r("op.moveForward")),
|
|
599
|
+
moveToFrontOnContainer: () => o._moveMember(c, o._members_().length - 1, r("op.moveToFront")),
|
|
600
|
+
deleteFromContainer: (e) => o._removeMember(c, e),
|
|
601
|
+
setContainerCallbacks: (e) => {
|
|
602
|
+
e && (p = {
|
|
603
|
+
...p,
|
|
604
|
+
...e
|
|
605
|
+
}), c && p && o._memberCallbacks.set(c, p);
|
|
606
|
+
},
|
|
607
|
+
invalidate: () => {
|
|
608
|
+
o._members._notifyChange();
|
|
609
|
+
}
|
|
610
|
+
}), p && this._memberCallbacks.set(c, p), c;
|
|
611
|
+
}
|
|
612
|
+
_tellZIndex() {
|
|
613
|
+
const e = this._members_(), t = this._toldOrder;
|
|
614
|
+
if (e !== t) {
|
|
615
|
+
this._toldOrder = e;
|
|
616
|
+
for (let n = 0; n < e.length; n++) {
|
|
617
|
+
const o = e[n];
|
|
618
|
+
t[n] !== o && this._memberCallbacks.get(o)?.processZIndex?.();
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
_amend(e) {
|
|
623
|
+
const t = this._transactions;
|
|
624
|
+
return t.amend(t.getCurrentCommit(!1).getId(), () => e());
|
|
625
|
+
}
|
|
626
|
+
_processAfterStateChange(e, t) {
|
|
627
|
+
super._processAfterStateChange(e, t), this._tellZIndex(), this._emitter.notify("onAnyChange"), this._members?._notifyChange(), this.getMovable()?._forwardLayout();
|
|
628
|
+
}
|
|
629
|
+
get isIGroup() {
|
|
630
|
+
return !0;
|
|
631
|
+
}
|
|
632
|
+
get [Symbol.toStringTag]() {
|
|
633
|
+
return "[Group]";
|
|
634
|
+
}
|
|
635
|
+
toString() {
|
|
636
|
+
return this.getTypeDescription();
|
|
637
|
+
}
|
|
638
|
+
}, C = Object.freeze([]);
|
|
639
|
+
export { v as Group };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/mcp - MCP server exposing SheetXL spreadsheet operations as tools and resources. - v0.8.0-beta.14
|
|
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
|
+
var e = class {
|
|
8
|
+
constructor(e) {
|
|
9
|
+
this._onExecute = e;
|
|
10
|
+
}
|
|
11
|
+
execute(e) {
|
|
12
|
+
return this._onExecute(e);
|
|
13
|
+
}
|
|
14
|
+
start() {
|
|
15
|
+
return Promise.resolve();
|
|
16
|
+
}
|
|
17
|
+
terminate() {}
|
|
18
|
+
};
|
|
19
|
+
async function t() {
|
|
20
|
+
const { compileModule: t } = await import("./D3BAmD-1AfFtHdC6.js"), r = new e((e) => t(e));
|
|
21
|
+
return await r.start(), r;
|
|
22
|
+
}
|
|
23
|
+
export { t as createCompilerWorker };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/mcp - MCP server exposing SheetXL spreadsheet operations as tools and resources. - v0.8.0-beta.14
|
|
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
|
+
var e = Object.defineProperty, r = (r, t) => {
|
|
8
|
+
let a = {};
|
|
9
|
+
for (var o in r) e(a, o, {
|
|
10
|
+
get: r[o],
|
|
11
|
+
enumerable: !0
|
|
12
|
+
});
|
|
13
|
+
return t || e(a, Symbol.toStringTag, { value: "Module" }), a;
|
|
14
|
+
};
|
|
15
|
+
export { r as t };
|