@sheetxl/sdk 0.8.0-beta.12 → 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/THIRD-PARTY-NOTICES.md +172 -0
- package/browser/esm/{CBYMTDzMf1Vh7pkw.mjs → 3t4S9eda2I6jFad0.mjs} +1 -1
- package/browser/esm/{Bg5Di9GLNAkbqQ1P.mjs → AXlD9K1gCwPU4gCO.mjs} +1926 -1298
- package/browser/esm/{w6Jea0TiclPrYZ2M.mjs → B1aH_qa-czVyEVHd.mjs} +509 -509
- package/browser/esm/{DZiivy0NmO1Vnyzk.mjs → BEDfJP2tcuRy2Y2E.mjs} +2 -2
- package/browser/esm/{BdCJNawfifyPupCP.mjs → BLYl-afJe_3std8i.mjs} +1 -1
- package/browser/esm/{D2RZh0O9neOsyLAE.mjs → BPPMKyMn65i1a1mE.mjs} +69 -48
- package/browser/esm/{yuhcOYw6SHQ-RCm3.mjs → BSXQAXwZdJKYTO4P.mjs} +30 -30
- package/browser/esm/{-Jx-jNHmtIQQfLvK.mjs → BVqIknGhQCLUB_7Q.mjs} +1 -1
- package/browser/esm/{fXWUMDhZ5yMSO629.mjs → BWoz4kQdA5KKJfl6.mjs} +1 -1
- package/browser/esm/{DwwR3O2sEZApPSTF.mjs → Bdcd3QOzsc0aVMjN.mjs} +3 -3
- package/browser/esm/{2mIwPy2D2JUX-9wx.mjs → BpwULQPKbb4R9Jew.mjs} +2 -2
- package/browser/esm/{CwOPLXU3-9ZHGyOT.mjs → C7hpfT-sX2lyLS-D.mjs} +1 -1
- package/browser/esm/{BIHrHjRGWVlJglcp.mjs → CImFKFaYToUH-bSE.mjs} +2 -2
- package/browser/esm/{BTFBedJMRWGvZyCE.mjs → CM_X1zZYzEUPaNJL.mjs} +1 -1
- package/browser/esm/CPIWV3Enlh_BF2TY.mjs +19 -0
- package/browser/esm/{CndRBvVfQUJIYRRj.mjs → ChYgQL-8qIDFmX31.mjs} +50 -50
- package/browser/esm/{BudSIfXBAsTxvu-K.mjs → CtC__ALh4I8PKIln.mjs} +10071 -9246
- package/browser/esm/{qO-ujUrgq6H3TQix.mjs → Cy8uYCggktF83278.mjs} +1 -1
- package/browser/esm/D2NFcBM4xsv0JJ1q.mjs +184 -0
- package/browser/esm/{D9xNz46kAfXMZzp4.mjs → D39XcmtPXVtMN4yF.mjs} +2 -2
- package/browser/esm/{CdEO8CEee6lEhabA.mjs → DBvu0tdSf-5vol4e.mjs} +2 -2
- package/browser/esm/{Tah7cnFb_HNZdLtj.mjs → DIfAk63CvaOZ3QKi.mjs} +3 -3
- package/browser/esm/{B3wf5vZCsWfWsDbj.mjs → D_XMi4_5iO2rkET5.mjs} +1 -1
- package/browser/esm/{DgrAuRD2qr2DvFeJ.mjs → Dh84MDs-OhdCPCIg.mjs} +44 -44
- package/browser/esm/{DPhGQLNGmDZwODwJ.mjs → Dhw5XEJYFrkYjdU2.mjs} +94 -94
- package/browser/esm/{Cxjxk0ncRKx80I-w.mjs → DiXeQjc0WJGLSVEo.mjs} +1 -1
- package/browser/esm/DnR0xY7_iE3TmMcg.mjs +348 -0
- package/browser/esm/{DK899HhWX1HINMC1.mjs → DnqwX3-2NfGBaXXl.mjs} +25 -25
- package/browser/esm/{D64dM68B1pKYFzdP.mjs → DonQz2Tc3k9lNT8E.mjs} +2 -2
- package/browser/esm/{Bt8_m94tBdks209L.mjs → DvvqmUQ9Z0NFm1-4.mjs} +1 -1
- package/browser/esm/{BnC4-27Igwb8oDf2.mjs → Ln4gsmhqH1LyoANj.mjs} +44 -43
- package/browser/esm/{CUzYuYTTGsChC_kZ.mjs → MuNBN02MyZ558c_K.mjs} +2052 -1583
- package/browser/esm/{CRkYR-siY2C994KV.mjs → SwLp-iElwDjfcJtv.mjs} +1 -1
- package/browser/esm/{C9u8FUewte5ugUjH.mjs → UMQTbO0zNmBpzW1V.mjs} +725 -716
- package/browser/esm/aRXqxIzjuSLwawMh.mjs +18 -0
- package/browser/esm/index.mjs +482 -440
- package/browser/esm/{hCQJcmIzPDxDEv2q.mjs → oSCy1X5CJ1iYtGDp.mjs} +2 -2
- package/browser/esm/{DobHLF6VjHr7Xi40.mjs → qCqzZW74-fhaIG2V.mjs} +1 -1
- package/browser/esm/{CNdjyofiRu6CYOrr.mjs → r_EZapMBdyS4gUd-.mjs} +50 -48
- package/browser/esm/yuF8SbWfjBfrxcq5.mjs +367 -0
- package/licenses/dependencies.txt +71 -1
- package/node/esm/99miMotf3dOuG5Jk.mjs +372 -0
- package/node/esm/{-TA0MneBDKdGhsib.mjs → B3hBxzqJ2_hUylNr.mjs} +3329 -2852
- package/node/esm/{BNXLOEddJ6O9gYws.mjs → B5VmOC0jO9Zbh9Mq.mjs} +2 -2
- package/node/esm/{DhS6yWjrrSNIJMsn.mjs → B6jhx5pHPs2W5GE7.mjs} +234 -225
- package/node/esm/{DUTmDHbFbhLDT4F3.mjs → BCjHRVU8tC5lYypg.mjs} +1 -1
- package/node/esm/BEBt5fo__rvT2q_u.mjs +310 -0
- package/node/esm/{icn2nX5Z8e_3mNAv.mjs → BELc5aQ_pFPgbiso.mjs} +1 -1
- package/node/esm/{DrCf6ITcBhVOFpRj.mjs → BEdxa3I4VOiCsvy7.mjs} +7 -7
- package/node/esm/{D3ptRKzASqBut1DE.mjs → BLPrFp_jKGYgWPX1.mjs} +2 -2
- package/node/esm/{BskP3b8vUoIOGLY6.mjs → BSVttk12GXNfKZ9k.mjs} +2 -2
- package/node/esm/{D4ROK9UwDpS6jO3Z.mjs → BXg-D8Rc_iyB8p7X.mjs} +1 -1
- package/node/esm/{DV5CU37aEbFbWFL0.mjs → BfEdeOg4iYXaYTlh.mjs} +1 -1
- package/node/esm/BuyAYLI4s33-vmgG.mjs +18 -0
- package/node/esm/{C_xf5Bz30VqiJjXn.mjs → C-5JLSNof0FhkuFd.mjs} +1 -1
- package/node/esm/{eimUGjiIP-b8HiM6.mjs → C3S4hF1vn0NyJPPd.mjs} +52 -52
- package/node/esm/{BL2iiEoqxDEV2Xrg.mjs → CI8UIWR01z9QDlzH.mjs} +3348 -2610
- package/node/esm/{pYtP7wPyS96NQyXS.mjs → CPsGyt3vnOdLTShj.mjs} +25 -25
- package/node/esm/{CG-qBU5BAaVz7e-P.mjs → Ccocd9DTvOnlOE9D.mjs} +1 -1
- package/node/esm/{C14-R6tifRh7pc0p.mjs → CdSTmD2ZvG9NesNR.mjs} +1 -1
- package/node/esm/{Q_S1g46ZOTrdhTae.mjs → Crn6dnSQQRCQAnQ-.mjs} +1 -1
- package/node/esm/{DdoiuKg9BKubtF1V.mjs → Cyeq1rDslIqF1LKz.mjs} +1 -1
- package/node/esm/{Ci_zLYmCD7e-C79O.mjs → D30rC6AWaGGf3CaC.mjs} +1 -1
- package/node/esm/D4Y1WJgjiFEgbWrW.mjs +115 -0
- package/node/esm/{Vocy-I9dKzZMr0Ct.mjs → DLdXl0O0TXuyqLU4.mjs} +10898 -10685
- package/node/esm/{D8hO07ToAibIuniw.mjs → DbPUG2DcQ3T_QhcJ.mjs} +138 -136
- package/node/esm/{lGJ42sHqg5if2bba.mjs → DeFE8QfuCeGw-mvd.mjs} +458 -458
- package/node/esm/{CiIymQN6aJCul62g.mjs → DiCMnYA2bttmrX3q.mjs} +9 -9
- package/node/esm/{DhTya_mhmN53vskv.mjs → Dlk2ZYExFgQ0xE2H.mjs} +1 -1
- package/node/esm/{Btw4148Ot8ifhNc1.mjs → I-FZojIFWluC6X-j.mjs} +1 -1
- package/node/esm/{C99zzq8DImQXi4BQ.mjs → Lj98EH6coGdKUzuS.mjs} +10 -10
- package/node/esm/{B-HUPAcqvK0eeeCz.mjs → NA-8urR7T1NCwrgD.mjs} +38 -37
- package/node/esm/{DxazKtROyaI51dWl.mjs → YpOpRyciqQLIY1-G.mjs} +1 -1
- package/node/esm/{CkRYLed8Mmn3giNg.mjs → b3XnssSr9lmvAC2N.mjs} +2 -2
- package/node/esm/clgEkmEwfB28nkz2.mjs +351 -0
- package/node/esm/index.mjs +584 -540
- package/node/esm/{CRt3vXe6YmXzqk3H.mjs → pF2vCOTmrxPAB41Q.mjs} +102 -102
- package/node/esm/{CBuEu5Jk-LfaDy-H.mjs → uLrulyR7IXq0SF4j.mjs} +44 -44
- package/node/esm/{C_aL7CGS1lrNn1Ng.mjs → xRGObcoaGDnAZFnj.mjs} +1 -1
- package/package.json +10 -7
- package/resources/contents.json +108 -0
- package/resources/fonts/aptos-bold-italic.hinted.json +125 -0
- package/resources/fonts/aptos-bold-italic.metrics.json +221 -0
- package/resources/fonts/aptos-bold-italic.rows.json +8 -0
- package/resources/fonts/aptos-bold.hinted.json +125 -0
- package/resources/fonts/aptos-bold.metrics.json +221 -0
- package/resources/fonts/aptos-bold.rows.json +8 -0
- package/resources/fonts/aptos-display-bold-italic.hinted.json +125 -0
- package/resources/fonts/aptos-display-bold-italic.metrics.json +221 -0
- package/resources/fonts/aptos-display-bold-italic.rows.json +8 -0
- package/resources/fonts/aptos-display-bold.hinted.json +125 -0
- package/resources/fonts/aptos-display-bold.metrics.json +221 -0
- package/resources/fonts/aptos-display-bold.rows.json +8 -0
- package/resources/fonts/aptos-display-italic.hinted.json +124 -0
- package/resources/fonts/aptos-display-italic.metrics.json +221 -0
- package/resources/fonts/aptos-display-italic.rows.json +8 -0
- package/resources/fonts/aptos-display-regular.hinted.json +125 -0
- package/resources/fonts/aptos-display-regular.metrics.json +221 -0
- package/resources/fonts/aptos-display-regular.rows.json +8 -0
- package/resources/fonts/aptos-italic.hinted.json +125 -0
- package/resources/fonts/aptos-italic.metrics.json +221 -0
- package/resources/fonts/aptos-italic.rows.json +8 -0
- package/resources/fonts/aptos-narrow-bold-italic.hinted.json +125 -0
- package/resources/fonts/aptos-narrow-bold-italic.metrics.json +221 -0
- package/resources/fonts/aptos-narrow-bold-italic.rows.json +8 -0
- package/resources/fonts/aptos-narrow-bold.hinted.json +125 -0
- package/resources/fonts/aptos-narrow-bold.metrics.json +221 -0
- package/resources/fonts/aptos-narrow-bold.rows.json +8 -0
- package/resources/fonts/aptos-narrow-italic.hinted.json +125 -0
- package/resources/fonts/aptos-narrow-italic.metrics.json +221 -0
- package/resources/fonts/aptos-narrow-italic.rows.json +8 -0
- package/resources/fonts/aptos-narrow-regular.hinted.json +125 -0
- package/resources/fonts/aptos-narrow-regular.metrics.json +221 -0
- package/resources/fonts/aptos-narrow-regular.rows.json +8 -0
- package/resources/fonts/aptos-regular.hinted.json +125 -0
- package/resources/fonts/aptos-regular.metrics.json +221 -0
- package/resources/fonts/aptos-regular.rows.json +8 -0
- package/resources/fonts/arial-bold-italic.rows.json +0 -1
- package/resources/fonts/arial-bold.rows.json +0 -1
- package/resources/fonts/arial-italic.rows.json +0 -1
- package/resources/fonts/arial-regular.rows.json +0 -1
- package/resources/fonts/calibri-bold-italic.rows.json +0 -1
- package/resources/fonts/calibri-bold.rows.json +0 -1
- package/resources/fonts/calibri-italic.rows.json +0 -1
- package/resources/fonts/calibri-regular.rows.json +0 -1
- package/resources/fonts/cambria-bold-italic.rows.json +0 -1
- package/resources/fonts/cambria-bold.rows.json +0 -1
- package/resources/fonts/cambria-italic.rows.json +0 -1
- package/resources/fonts/cambria-regular.rows.json +0 -1
- package/resources/fonts/contents.json +240 -0
- package/resources/fonts/courier-new-bold-italic.rows.json +0 -1
- package/resources/fonts/courier-new-bold.rows.json +0 -1
- package/resources/fonts/courier-new-italic.rows.json +0 -1
- package/resources/fonts/courier-new-regular.rows.json +0 -1
- package/resources/fonts/times-new-roman-bold-italic.rows.json +0 -1
- package/resources/fonts/times-new-roman-bold.rows.json +0 -1
- package/resources/fonts/times-new-roman-italic.rows.json +0 -1
- package/resources/fonts/times-new-roman-regular.rows.json +0 -1
- package/resources/locales/de/model.msg.json +4 -0
- package/resources/locales/en/model.msg.json +4 -0
- package/types/scripting-api.json +9339 -9320
- package/types/scripting.d.ts +322 -200
- package/types/src/.generated/wasm/sdk.d.ts +5 -27
- package/types/src/address/AddressUtils.d.ts +8 -0
- package/types/src/address/_SheetNameQuoteChars.d.ts +3 -0
- package/types/src/anomalies/_FocusTable.d.ts +0 -6
- package/types/src/calculation/Calculation.d.ts +20 -95
- package/types/src/calculation/ExternalBookBindings.d.ts +0 -26
- package/types/src/calculation/NamedFormulaCollection.d.ts +6 -2
- package/types/src/calculation/TokenType.d.ts +0 -10
- package/types/src/calculation/_CloneBoundary.d.ts +0 -24
- package/types/src/calculation/_FormulaToolkit.d.ts +0 -5
- package/types/src/calculation/compiler/ASTTypes.d.ts +0 -13
- package/types/src/calculation/compiler/CompilerUtils.d.ts +0 -227
- package/types/src/calculation/compiler/FormulaLexer.d.ts +0 -8
- package/types/src/calculation/compiler/FormulaParser.d.ts +0 -61
- package/types/src/calculation/compiler/ParserUtils.d.ts +0 -24
- package/types/src/calculation/compiler/Types.d.ts +0 -52
- package/types/src/calculation/engine/CalcBackend.d.ts +15 -157
- package/types/src/calculation/engine/index.d.ts +0 -8
- package/types/src/calculation/executor/CalcExecutor.d.ts +13 -130
- package/types/src/calculation/executor/CalcExecutorUtils.d.ts +30 -11
- package/types/src/calculation/executor/CircularReference.d.ts +0 -17
- package/types/src/calculation/executor/_BlockOrder.d.ts +29 -0
- package/types/src/calculation/executor/_WhatIf.d.ts +0 -19
- package/types/src/calculation/formula/FormulaBlock.d.ts +0 -28
- package/types/src/calculation/formula/FormulaRecordView.d.ts +0 -15
- package/types/src/calculation/formula/IFormulaBlock.d.ts +0 -12
- package/types/src/calculation/formula/LambdaValue.d.ts +0 -15
- package/types/src/calculation/formula/TokenUtils.d.ts +1 -8
- package/types/src/calculation/grid/CalcGrid.d.ts +5 -59
- package/types/src/calculation/grid/CalcGridBackend.d.ts +8 -9
- package/types/src/calculation/grid/CalcGridProxy.d.ts +0 -13
- package/types/src/calculation/grid/CalcGridUtils.d.ts +18 -22
- package/types/src/calculation/grid/ICalcGrid.d.ts +13 -98
- package/types/src/calculation/grid/_CalcRequest.d.ts +1 -29
- package/types/src/calculation/spatial/CircularEntry.d.ts +0 -10
- package/types/src/calculation/spatial/FormulaSpatialValue.d.ts +52 -82
- package/types/src/calculation/spatial/SpillEntry.d.ts +10 -7
- package/types/src/calculation/state/CalcScope.d.ts +0 -9
- package/types/src/calculation/state/CalcState.d.ts +0 -12
- package/types/src/calculation/state/CalculationContext.d.ts +4 -37
- package/types/src/calculation/state/DeferredCalls.d.ts +11 -64
- package/types/src/calculation/state/IContextContainer.d.ts +4 -60
- package/types/src/calculation/state/_KeepBlanks.d.ts +5 -0
- package/types/src/calculation/state/_PendingOverlayGrid.d.ts +46 -33
- package/types/src/calculation/state/_WhatIfLayer.d.ts +0 -14
- package/types/src/calculation/symbol/ExternalSheetSymbols.d.ts +0 -42
- package/types/src/calculation/symbol/ISymbolRegistry.d.ts +0 -6
- package/types/src/calculation/symbol/SheetSymbolProvider.d.ts +0 -12
- package/types/src/calculation/symbol/SymbolRegistry.d.ts +0 -9
- package/types/src/calculation/toolkit/index.d.ts +0 -8
- package/types/src/cell/ICell.d.ts +14 -28
- package/types/src/cellRange/ICellRange.d.ts +22 -11
- package/types/src/chart/Chart.d.ts +0 -16
- package/types/src/chart/_ChartParts.d.ts +0 -39
- package/types/src/chart/_ChartSource.d.ts +0 -14
- package/types/src/chart/createChart.d.ts +1 -1
- package/types/src/chart/kinds/ChartKind.d.ts +4 -4
- package/types/src/chart/kinds/_Placeholder.d.ts +0 -1
- package/types/src/chart/layout/TextMeasurer.d.ts +0 -20
- package/types/src/chart/layout/_LayoutUtils.d.ts +0 -16
- package/types/src/chart/math/BoxStats.d.ts +0 -8
- package/types/src/chart/math/DateUnitCalcs.d.ts +0 -10
- package/types/src/chart/math/Histogram.d.ts +0 -17
- package/types/src/chart/math/OrdUnitCalcs.d.ts +0 -53
- package/types/src/chart/math/Treemap.d.ts +0 -15
- package/types/src/chart/math/Trendlines.d.ts +0 -8
- package/types/src/chart/math/UnitCalcs.d.ts +0 -22
- package/types/src/chart/model/_Edits.d.ts +0 -33
- package/types/src/chart/model/_Grouping.d.ts +0 -25
- package/types/src/chart/model/_Inference.d.ts +0 -18
- package/types/src/chart/model/_NewChart.d.ts +0 -41
- package/types/src/chart/model/_OfPie.d.ts +0 -7
- package/types/src/chart/resolve/_LegacyStyles.d.ts +0 -20
- package/types/src/chart/resolve/_Resolve.d.ts +0 -19
- package/types/src/chart/resolve/_ResolvedChart.d.ts +0 -6
- package/types/src/collections/_GridUtils.d.ts +0 -10
- package/types/src/comment/_NoteBox.d.ts +0 -15
- package/types/src/condition/AnchoredConditional.d.ts +1 -23
- package/types/src/condition/BuiltInOperators/AbstractOperator.d.ts +0 -49
- package/types/src/condition/BuiltinSelectors/DisplaySelector.d.ts +0 -10
- package/types/src/condition/ICondition.d.ts +2 -2
- package/types/src/condition/_ConditionUtils.d.ts +0 -38
- package/types/src/externalBook/ExternalBookCollection.d.ts +0 -15
- package/types/src/externalBook/ExternalBookName.d.ts +2 -3
- package/types/src/externalBook/IExternalBook.d.ts +13 -14
- package/types/src/fetch/IFetcher.d.ts +2 -1
- package/types/src/fetch/_WorkbookFetch.d.ts +1 -1
- package/types/src/font/AdvanceTable.d.ts +16 -42
- package/types/src/font/IFont.d.ts +32 -9
- package/types/src/font/TableFileAdvanceBuilder.d.ts +6 -3
- package/types/src/font/_FontUtils.d.ts +0 -8
- package/types/src/font/_StandIns.d.ts +33 -0
- package/types/src/io/IWorkbookIO.d.ts +3 -3
- package/types/src/io/WorkbookOrigin.d.ts +2 -2
- package/types/src/license/LicenseManager.d.ts +2 -1
- package/types/src/license/_Utils.d.ts +4 -3
- package/types/src/license/details.d.ts +3 -1
- package/types/src/license/keys.d.ts +6 -0
- package/types/src/license/license-key.d.ts +15 -33
- package/types/src/license/token.d.ts +55 -0
- package/types/src/picture/IPicture.d.ts +45 -0
- package/types/src/picture/Picture.d.ts +12 -0
- package/types/src/pivot/PivotTable.d.ts +0 -7
- package/types/src/primitives/AsyncValue.d.ts +0 -12
- package/types/src/primitives/PrimitiveUtils.d.ts +1 -110
- package/types/src/primitives/Range.d.ts +0 -60
- package/types/src/primitives/ScalarCollation.d.ts +0 -106
- package/types/src/primitives/stats/AggregateStats.d.ts +0 -19
- package/types/src/print/PageLayout.d.ts +0 -6
- package/types/src/reference/ReferenceUtils.d.ts +4 -2
- package/types/src/richData/RichDataRegistry.d.ts +6 -0
- package/types/src/scripting/TypedFunction.d.ts +0 -109
- package/types/src/scripting/enumManifest.browser.d.ts +7 -2
- package/types/src/sheet/IWorksheet.d.ts +2 -5
- package/types/src/sheet/NamedCellRange.d.ts +0 -21
- package/types/src/sheet/SheetCell.d.ts +8 -2
- package/types/src/sheet/Worksheet.d.ts +7 -48
- package/types/src/sheet/_DelimitedText.d.ts +13 -0
- package/types/src/sheet/_IgnoredErrors.d.ts +0 -12
- package/types/src/sheet/_ScalarListFactory.d.ts +0 -19
- package/types/src/sheet/_SheetCoords.d.ts +0 -7
- package/types/src/sheet/_SheetFilterUtils.d.ts +0 -8
- package/types/src/sheet/_SheetStateReader.d.ts +0 -10
- package/types/src/sheet/_SheetStateTypes.d.ts +0 -3
- package/types/src/sheet/_SheetUtils.d.ts +1 -1
- package/types/src/sheet/style/_RowLine.d.ts +32 -0
- package/types/src/sheet/style/_StyleUtils.d.ts +6 -14
- package/types/src/sheetView/_SheetViewUtils.d.ts +0 -1
- package/types/src/slicer/_BuiltInSlicerStyles.d.ts +0 -5
- package/types/src/style/ICellStyle.d.ts +4 -0
- package/types/src/table/AnchoredTable.d.ts +0 -147
- package/types/src/text/TextFrame.d.ts +4 -1
- package/types/src/text/TextStacked.d.ts +0 -24
- package/types/src/text/TextWrapper.d.ts +3 -5
- package/types/src/text/_LineBox.d.ts +24 -0
- package/types/src/text/_TextUtils.d.ts +5 -2
- package/types/src/text/_TextWrapperFallback.d.ts +2 -1
- package/types/src/wasm/sdkWasm.d.ts +1 -1
- package/types/src/workbook/Workbook.d.ts +0 -10
- package/browser/esm/2WuhYrIpYmOR5H73.mjs +0 -698
- package/browser/esm/CTe2qfmIUEad6FJv.mjs +0 -199
- package/browser/esm/CfRqiPDg6RBTg1EN.mjs +0 -367
- package/browser/esm/DVroRnhi-5IDXNgM.mjs +0 -210
- package/browser/esm/DwZCT7DZiiXoTweg.mjs +0 -14
- package/node/esm/BSvOluusoDM4z_dx.mjs +0 -811
- package/node/esm/CPI58duc0j0a-HpJ.mjs +0 -115
- package/node/esm/DggQ23jKMpwhENfa.mjs +0 -372
- package/node/esm/Dn1M7YWi25DeeYUb.mjs +0 -210
- package/node/esm/ZXPFcsT2zrALCZux.mjs +0 -289
|
@@ -1,55 +1,55 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.14
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
import {
|
|
8
|
-
import { D as r, E as s, a, c as o, d as l, f as i, l as c, m as u, n as p, o as d, p as f, r as h, s as g, u as m, v as x, w as y } from "./
|
|
9
|
-
import { n as v, r as I, t as
|
|
10
|
-
import { FormulaError as
|
|
7
|
+
import { Sr as e, jt as t, xr as n } from "./DLdXl0O0TXuyqLU4.mjs";
|
|
8
|
+
import { D as r, E as s, a, c as o, d as l, f as i, l as c, m as u, n as p, o as d, p as f, r as h, s as g, u as m, v as x, w as y } from "./DeFE8QfuCeGw-mvd.mjs";
|
|
9
|
+
import { n as v, r as I, t as _ } from "./B6jhx5pHPs2W5GE7.mjs";
|
|
10
|
+
import { FormulaError as b } from "@sheetxl/primitives";
|
|
11
11
|
import { CommonUtils as T } from "@sheetxl/utils";
|
|
12
12
|
var P = class {
|
|
13
13
|
constructor(e) {
|
|
14
14
|
e = { ...e }, this._editing = "editing" === e.profile, this._parser = new I(e);
|
|
15
15
|
}
|
|
16
|
-
compile(
|
|
16
|
+
compile(t, n, p, I, T, P, k, E, w) {
|
|
17
17
|
if (0 === I.length) {
|
|
18
|
-
const
|
|
19
|
-
return this._compileUnparsed(
|
|
18
|
+
const e = new b.Parse(_);
|
|
19
|
+
return this._compileUnparsed(t, T, I, {
|
|
20
20
|
input: I,
|
|
21
|
-
cause:
|
|
22
|
-
causes: [
|
|
21
|
+
cause: e,
|
|
22
|
+
causes: [e]
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
|
-
if (I.length >
|
|
26
|
-
const
|
|
27
|
-
return this._compileUnparsed(
|
|
25
|
+
if (I.length > e.MAX_EXPRESSION_LENGTH) {
|
|
26
|
+
const n = new b.Parse(v(I.length, e.MAX_EXPRESSION_LENGTH));
|
|
27
|
+
return this._compileUnparsed(t, T, I, {
|
|
28
28
|
input: I,
|
|
29
|
-
cause:
|
|
30
|
-
causes: [
|
|
29
|
+
cause: n,
|
|
30
|
+
causes: [n]
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
33
|
let F, C, U = [];
|
|
34
34
|
try {
|
|
35
|
-
const e = this._parser.parse(
|
|
35
|
+
const e = this._parser.parse(n, p, I);
|
|
36
36
|
F = e.root, U = e.errors, E && F && 0 === U.length && (F.legacyIntersect = !0);
|
|
37
37
|
} catch (e) {
|
|
38
|
-
C =
|
|
38
|
+
C = b.isError(e, b.Code.Parse) ? e : new b.Parse(e.message, e);
|
|
39
39
|
}
|
|
40
40
|
const z = [];
|
|
41
41
|
for (const e of U) z.push(u(e));
|
|
42
42
|
if (F) {
|
|
43
43
|
const e = y(F, P ?? null);
|
|
44
|
-
"string" == typeof e ? z.push(new
|
|
44
|
+
"string" == typeof e ? z.push(new b.Parse(e)) : F = e, l(F, P ?? null) && z.push(new b.Parse("The implicit intersection operator ' ' requires a cell or range on both sides")), m(F, P ?? null) && z.push(new b.Parse("The spill anchor operator '#' requires a cell or range")), f(F, P ?? null) && z.push(new b.Parse("Expected a reference; a value cannot be converted to one."));
|
|
45
45
|
const t = d(F, P ?? null);
|
|
46
|
-
t && z.push(new
|
|
46
|
+
t && z.push(new b.Parse(t));
|
|
47
47
|
const n = g(F, P ?? null);
|
|
48
|
-
n && z.push(new
|
|
48
|
+
n && z.push(new b.Parse(n));
|
|
49
49
|
const r = o(F, P ?? null);
|
|
50
|
-
r && z.push(new
|
|
50
|
+
r && z.push(new b.Parse(r));
|
|
51
51
|
const s = c(F);
|
|
52
|
-
s && z.push(new
|
|
52
|
+
s && z.push(new b.Parse(s));
|
|
53
53
|
}
|
|
54
54
|
z.length > 0 && !C && (C = z[0]);
|
|
55
55
|
let R = null;
|
|
@@ -59,10 +59,10 @@ var P = class {
|
|
|
59
59
|
causes: z.length > 0 ? z : [C]
|
|
60
60
|
}), !F) {
|
|
61
61
|
if (this._editing) {
|
|
62
|
-
const
|
|
63
|
-
if (
|
|
62
|
+
const e = this._recoverCompiled(t, n, p, I, T, R, k);
|
|
63
|
+
if (e) return e;
|
|
64
64
|
}
|
|
65
|
-
return this._compileUnparsed(
|
|
65
|
+
return this._compileUnparsed(t, T, I, R, this._editing, () => A(T, k, n, p));
|
|
66
66
|
}
|
|
67
67
|
if (F = s(F, P ?? null), F = h(F, P ?? null), T) {
|
|
68
68
|
const e = this._editing ? w : {
|
|
@@ -70,12 +70,12 @@ var P = class {
|
|
|
70
70
|
...w
|
|
71
71
|
};
|
|
72
72
|
F = x(F, T, k, e, {
|
|
73
|
-
rowIndex:
|
|
73
|
+
rowIndex: n,
|
|
74
74
|
colIndex: p
|
|
75
75
|
});
|
|
76
|
-
const
|
|
77
|
-
if (
|
|
78
|
-
const e = new
|
|
76
|
+
const t = i(F, T);
|
|
77
|
+
if (t) {
|
|
78
|
+
const e = new b.Parse(t);
|
|
79
79
|
z.push(e), R = {
|
|
80
80
|
input: I,
|
|
81
81
|
cause: R?.cause ?? e,
|
|
@@ -83,8 +83,8 @@ var P = class {
|
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
-
const S = a(
|
|
87
|
-
if (this._editing && R && r(S.getTokens(), T) !== I) return this._recoverCompiled(
|
|
86
|
+
const S = a(t, T, F, this._editing, R, P ?? null);
|
|
87
|
+
if (this._editing && R && r(S.getTokens(), T) !== I) return this._recoverCompiled(t, n, p, I, T, R, k) || this._compileUnparsed(t, T, I, R, !0);
|
|
88
88
|
return S;
|
|
89
89
|
}
|
|
90
90
|
autoCorrect(e) {
|
|
@@ -113,10 +113,10 @@ var P = class {
|
|
|
113
113
|
}
|
|
114
114
|
return 0 === s.length && 0 === t ? null : n + s.reverse().join("");
|
|
115
115
|
}
|
|
116
|
-
_compileUnparsed(e,
|
|
116
|
+
_compileUnparsed(e, t, r, s, a = !1, o) {
|
|
117
117
|
const l = {
|
|
118
118
|
runtime: e,
|
|
119
|
-
symbols:
|
|
119
|
+
symbols: t,
|
|
120
120
|
getFunction: null,
|
|
121
121
|
ast: null,
|
|
122
122
|
evaluations: T.EmptyArray,
|
|
@@ -131,7 +131,7 @@ var P = class {
|
|
|
131
131
|
getTokens: () => {
|
|
132
132
|
const e = [];
|
|
133
133
|
return a && F(e, r, void 0, o) ? e : [{
|
|
134
|
-
type:
|
|
134
|
+
type: n.Unparsed,
|
|
135
135
|
value: r,
|
|
136
136
|
text: r
|
|
137
137
|
}];
|
|
@@ -149,7 +149,7 @@ var P = class {
|
|
|
149
149
|
};
|
|
150
150
|
return l;
|
|
151
151
|
}
|
|
152
|
-
_recoverCompiled(e,
|
|
152
|
+
_recoverCompiled(e, t, s, o, l, i, c) {
|
|
153
153
|
let u, p = o.length;
|
|
154
154
|
try {
|
|
155
155
|
const e = this._parser.getLexer().tokenize(o, !1);
|
|
@@ -166,16 +166,16 @@ var P = class {
|
|
|
166
166
|
const p = o.slice(0, u);
|
|
167
167
|
let d, f;
|
|
168
168
|
try {
|
|
169
|
-
d = this._parser.parse(
|
|
169
|
+
d = this._parser.parse(t, s, p).root;
|
|
170
170
|
} catch {
|
|
171
171
|
continue;
|
|
172
172
|
}
|
|
173
|
-
if (!d || d.type ===
|
|
173
|
+
if (!d || d.type === n.Unparsed) continue;
|
|
174
174
|
try {
|
|
175
|
-
const
|
|
176
|
-
rowIndex:
|
|
175
|
+
const n = h(d, null), r = l ? x(n, l, c, void 0, {
|
|
176
|
+
rowIndex: t,
|
|
177
177
|
colIndex: s
|
|
178
|
-
}) :
|
|
178
|
+
}) : n;
|
|
179
179
|
f = a(e, l, r, !0, i);
|
|
180
180
|
} catch {
|
|
181
181
|
continue;
|
|
@@ -186,25 +186,25 @@ var P = class {
|
|
|
186
186
|
let m;
|
|
187
187
|
const y = {
|
|
188
188
|
...f,
|
|
189
|
-
getTokens: () => (m || (m = [...f.getTokens()], this._appendUnparsedTail(m, g, () => A(l, c,
|
|
189
|
+
getTokens: () => (m || (m = [...f.getTokens()], this._appendUnparsedTail(m, g, () => A(l, c, t, s))), m),
|
|
190
190
|
transform: () => y
|
|
191
191
|
};
|
|
192
192
|
return y;
|
|
193
193
|
}
|
|
194
194
|
return null;
|
|
195
195
|
}
|
|
196
|
-
_appendUnparsedTail(e,
|
|
196
|
+
_appendUnparsedTail(e, t, r) {
|
|
197
197
|
const s = [];
|
|
198
|
-
for (const
|
|
199
|
-
if (
|
|
200
|
-
const e =
|
|
201
|
-
if (
|
|
198
|
+
for (const t of e) {
|
|
199
|
+
if (t.type === n.Whitespace) continue;
|
|
200
|
+
const e = t.type === n.Paren || t.type === n.Type ? t.text : void 0, r = s.length > 0 ? s[s.length - 1] : void 0;
|
|
201
|
+
if (t.type === n.Separator && r) {
|
|
202
202
|
const e = r.declared[r.declared.length - 1];
|
|
203
203
|
"let" === r.ctx?.type && -1 === r.ctx.argIndex && r.lambda?.argTokens === r.argTokens && e?.argIndex === r.argIndex - 1 && (e.params = r.lambda.params), r.argIndex++, r.argTokens = 0, r.lambda = void 0;
|
|
204
204
|
continue;
|
|
205
205
|
}
|
|
206
206
|
if (r && r.argTokens++, "(" === e || "[" === e || "{" === e) s.push({
|
|
207
|
-
ctx:
|
|
207
|
+
ctx: t.context,
|
|
208
208
|
argIndex: 0,
|
|
209
209
|
declared: [],
|
|
210
210
|
argTokens: 0,
|
|
@@ -219,8 +219,8 @@ var P = class {
|
|
|
219
219
|
} : { name: e }),
|
|
220
220
|
argTokens: t.argTokens
|
|
221
221
|
});
|
|
222
|
-
} else if (
|
|
223
|
-
const e =
|
|
222
|
+
} else if (t.type === n.Parameter && r && t.value?.declaration) {
|
|
223
|
+
const e = t.value;
|
|
224
224
|
r.declared.push(e.optional ? {
|
|
225
225
|
name: e.name,
|
|
226
226
|
argIndex: r.argIndex,
|
|
@@ -248,33 +248,33 @@ var P = class {
|
|
|
248
248
|
}
|
|
249
249
|
t && (o.bound = t);
|
|
250
250
|
}
|
|
251
|
-
const l = (
|
|
251
|
+
const l = (t, r) => {
|
|
252
252
|
const s = r ? {
|
|
253
|
-
type:
|
|
254
|
-
value: { name:
|
|
255
|
-
text:
|
|
253
|
+
type: n.Named,
|
|
254
|
+
value: { name: t },
|
|
255
|
+
text: t
|
|
256
256
|
} : {
|
|
257
|
-
type:
|
|
258
|
-
value:
|
|
259
|
-
text:
|
|
257
|
+
type: n.Unparsed,
|
|
258
|
+
value: t,
|
|
259
|
+
text: t
|
|
260
260
|
};
|
|
261
261
|
o && (s.context = o), e.push(s);
|
|
262
262
|
};
|
|
263
|
-
if (F(e,
|
|
264
|
-
const i = /[A-Za-z_][A-Za-z0-9_]*$/.exec(
|
|
265
|
-
let u = c > 0 ?
|
|
263
|
+
if (F(e, t, o, r)) return;
|
|
264
|
+
const i = /[A-Za-z_][A-Za-z0-9_]*$/.exec(t), c = i ? i.index : -1;
|
|
265
|
+
let u = c > 0 ? t[c - 1] : "";
|
|
266
266
|
for (let t = e.length - 1; 0 === c && t >= 0 && !u; t--) u = e[t].text?.at(-1) ?? "";
|
|
267
|
-
c >= 0 && !/[A-Za-z0-9_.]/.test(u) ? (c > 0 && l(
|
|
267
|
+
c >= 0 && !/[A-Za-z0-9_.]/.test(u) ? (c > 0 && l(t.slice(0, c)), l(t.slice(c), !0)) : l(t);
|
|
268
268
|
}
|
|
269
269
|
};
|
|
270
|
-
function A(
|
|
271
|
-
if (!
|
|
272
|
-
const a =
|
|
270
|
+
function A(e, n, r, s) {
|
|
271
|
+
if (!e || !n) return;
|
|
272
|
+
const a = e.bind(t.Table, "", { at: {
|
|
273
273
|
scope: n,
|
|
274
274
|
rowIndex: r,
|
|
275
275
|
colIndex: s
|
|
276
276
|
} });
|
|
277
|
-
return a ?
|
|
277
|
+
return a ? e.resolve(t.Table, a)?.toString() : void 0;
|
|
278
278
|
}
|
|
279
279
|
var k = /[A-Za-z_\\\u007F-\uFFFF][A-Za-z0-9_.\u007F-\uFFFF]*$/, E = /[A-Za-z0-9_.)\]}"'!#\u007F-\uFFFF]/;
|
|
280
280
|
function w(e, t) {
|
|
@@ -287,14 +287,14 @@ function w(e, t) {
|
|
|
287
287
|
}
|
|
288
288
|
return -1;
|
|
289
289
|
}
|
|
290
|
-
function F(e,
|
|
290
|
+
function F(e, t, r, s) {
|
|
291
291
|
let a = 0, o = -1;
|
|
292
|
-
for (let e = 0; e <
|
|
293
|
-
const
|
|
294
|
-
a > 0 && "'" ===
|
|
292
|
+
for (let e = 0; e < t.length; e++) {
|
|
293
|
+
const n = t[e];
|
|
294
|
+
a > 0 && "'" === n ? e++ : "[" === n ? (0 === a && (o = e), a++) : "]" === n && a > 0 && a--;
|
|
295
295
|
}
|
|
296
296
|
if (0 === a) return !1;
|
|
297
|
-
let l =
|
|
297
|
+
let l = t.slice(0, o);
|
|
298
298
|
if ((l.split("\"").length - 1) % 2 == 1) return !1;
|
|
299
299
|
const i = e.length > 0 ? e[e.length - 1] : void 0;
|
|
300
300
|
let c = "", u = !1;
|
|
@@ -303,7 +303,7 @@ function F(e, n, r, s) {
|
|
|
303
303
|
const e = p.index > 0 ? l[p.index - 1] : i?.text?.at(-1) ?? "";
|
|
304
304
|
if (/[A-Za-z0-9_.]/.test(e)) return !1;
|
|
305
305
|
c = p[0], l = l.slice(0, p.index);
|
|
306
|
-
} else 0 === l.length && i?.text && 0 === k.exec(i.text)?.index && (i.type ===
|
|
306
|
+
} else 0 === l.length && i?.text && 0 === k.exec(i.text)?.index && (i.type === n.Named && !i.value?.scope || i.type === n.TableReference) && (c = i.text, u = !0);
|
|
307
307
|
if (!u) {
|
|
308
308
|
const e = l.length > 0 ? l[l.length - 1] : i?.text?.at(-1) ?? "";
|
|
309
309
|
if (e && E.test(e)) return !1;
|
|
@@ -319,7 +319,7 @@ function F(e, n, r, s) {
|
|
|
319
319
|
type: "table"
|
|
320
320
|
}
|
|
321
321
|
});
|
|
322
|
-
}, g = (e,
|
|
322
|
+
}, g = (e, t, r, s) => {
|
|
323
323
|
const a = e.startsWith("#"), o = r ? s ? "column" : a ? "specifier" : e ? "column" : "any" : void 0, l = o ? {
|
|
324
324
|
table: d,
|
|
325
325
|
name: e,
|
|
@@ -329,76 +329,76 @@ function F(e, n, r, s) {
|
|
|
329
329
|
name: e
|
|
330
330
|
};
|
|
331
331
|
f.push({
|
|
332
|
-
type: a ?
|
|
332
|
+
type: a ? n.TableSpecifier : n.TableColumn,
|
|
333
333
|
value: l,
|
|
334
334
|
text: e,
|
|
335
335
|
context: {
|
|
336
336
|
name: d,
|
|
337
|
-
argIndex:
|
|
337
|
+
argIndex: t,
|
|
338
338
|
type: "table"
|
|
339
339
|
}
|
|
340
340
|
});
|
|
341
|
-
}, m = (e,
|
|
342
|
-
h(
|
|
341
|
+
}, m = (e, t, r, s) => {
|
|
342
|
+
h(n.Paren, "[", r), g(e.slice(1, t ? -1 : void 0), r, !t, s), t && h(n.Paren, "]", r);
|
|
343
343
|
};
|
|
344
|
-
h(
|
|
345
|
-
const x =
|
|
344
|
+
h(n.Paren, "[", -1);
|
|
345
|
+
const x = t.slice(o + 1);
|
|
346
346
|
if (x.startsWith("[")) {
|
|
347
|
-
let e = 0,
|
|
347
|
+
let e = 0, t = !1, r = 0;
|
|
348
348
|
for (; r < x.length;) {
|
|
349
349
|
const s = x[r];
|
|
350
350
|
if ("[" === s) {
|
|
351
|
-
const
|
|
352
|
-
if (null ===
|
|
353
|
-
const s = -1 !==
|
|
354
|
-
if (m(x.slice(r, s ?
|
|
355
|
-
r =
|
|
356
|
-
} else if ("," === s) h(
|
|
357
|
-
else if (":" === s) h(
|
|
358
|
-
else if ("@" === s) h(
|
|
351
|
+
const n = w(x, r);
|
|
352
|
+
if (null === n) return !1;
|
|
353
|
+
const s = -1 !== n;
|
|
354
|
+
if (m(x.slice(r, s ? n : x.length), s, e, t), t = !1, !s) break;
|
|
355
|
+
r = n;
|
|
356
|
+
} else if ("," === s) h(n.Separator, ",", e++), r++;
|
|
357
|
+
else if (":" === s) h(n.Infix, ":", e), r++;
|
|
358
|
+
else if ("@" === s) h(n.Prefix, "@", e), t = !0, r++;
|
|
359
359
|
else {
|
|
360
360
|
if (" " !== s) return !1;
|
|
361
361
|
{
|
|
362
|
-
let
|
|
363
|
-
for (; " " === x[
|
|
364
|
-
h(
|
|
362
|
+
let t = r;
|
|
363
|
+
for (; " " === x[t];) t++;
|
|
364
|
+
h(n.Whitespace, x.slice(r, t), e), r = t;
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
368
|
} else {
|
|
369
369
|
let e = x;
|
|
370
|
-
const
|
|
371
|
-
if (
|
|
370
|
+
const t = e.startsWith("@");
|
|
371
|
+
if (t && (h(n.Prefix, "@", 0), e = e.slice(1)), e.startsWith("[")) {
|
|
372
372
|
if (-1 !== w(e, 0)) return !1;
|
|
373
|
-
m(e, !1, 0,
|
|
373
|
+
m(e, !1, 0, t);
|
|
374
374
|
} else {
|
|
375
375
|
if (/(^|[^'])[[\]]/.test(e) || e.startsWith("#") && e.includes(",")) return !1;
|
|
376
|
-
g(e, 0, !0,
|
|
376
|
+
g(e, 0, !0, t);
|
|
377
377
|
}
|
|
378
378
|
}
|
|
379
379
|
if (l) {
|
|
380
|
-
const
|
|
381
|
-
type:
|
|
380
|
+
const t = {
|
|
381
|
+
type: n.Unparsed,
|
|
382
382
|
value: l,
|
|
383
383
|
text: l
|
|
384
384
|
};
|
|
385
|
-
r && (
|
|
385
|
+
r && (t.context = r), e.push(t);
|
|
386
386
|
}
|
|
387
387
|
if (u) {
|
|
388
|
-
const
|
|
388
|
+
const t = {
|
|
389
389
|
...i,
|
|
390
|
-
type:
|
|
390
|
+
type: n.TableReference,
|
|
391
391
|
value: c,
|
|
392
392
|
text: c
|
|
393
393
|
};
|
|
394
|
-
delete
|
|
394
|
+
delete t.referenceIndex, e[e.length - 1] = t;
|
|
395
395
|
} else if (c) {
|
|
396
|
-
const
|
|
397
|
-
type:
|
|
396
|
+
const t = {
|
|
397
|
+
type: n.TableReference,
|
|
398
398
|
value: c,
|
|
399
399
|
text: c
|
|
400
400
|
};
|
|
401
|
-
r && (
|
|
401
|
+
r && (t.context = r), e.push(t);
|
|
402
402
|
}
|
|
403
403
|
for (const t of f) e.push(t);
|
|
404
404
|
return !0;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.14
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
import { t as e } from "./
|
|
8
|
-
import {
|
|
9
|
-
import { g as c, v as l, w as h, x as u } from "./
|
|
7
|
+
import { t as e } from "./I-FZojIFWluC6X-j.mjs";
|
|
8
|
+
import { B as t, Mr as n, an as o, ba as r, in as s, on as i, z as a } from "./DLdXl0O0TXuyqLU4.mjs";
|
|
9
|
+
import { g as c, v as l, w as h, x as u } from "./CI8UIWR01z9QDlzH.mjs";
|
|
10
10
|
import { CommonUtils as d, CoordUtils as m, ExpectedError as p, messageKey as g, t as _ } from "@sheetxl/utils";
|
|
11
11
|
var b = class extends s {
|
|
12
12
|
constructor(e) {
|
|
@@ -25,7 +25,7 @@ var b = class extends s {
|
|
|
25
25
|
return !!super.isDeleted() || ((this._optionsMovable?.getParent?.())?.isDeleted() ?? !1);
|
|
26
26
|
}
|
|
27
27
|
getAnchorType() {
|
|
28
|
-
return
|
|
28
|
+
return n.Type.Absolute;
|
|
29
29
|
}
|
|
30
30
|
setAnchorType(e) {
|
|
31
31
|
return this;
|
|
@@ -127,7 +127,7 @@ var b = class extends s {
|
|
|
127
127
|
this._getEmitter().notify("onBoundsChange"), this._forwardLayout();
|
|
128
128
|
}
|
|
129
129
|
_fromJSON(e) {
|
|
130
|
-
const
|
|
130
|
+
const t = e.anchor?.tl ?? d.EmptyObject, o = e.anchor?.br ?? d.EmptyObject;
|
|
131
131
|
this._updateState({
|
|
132
132
|
offsets: {
|
|
133
133
|
tl: {
|
|
@@ -145,10 +145,10 @@ var b = class extends s {
|
|
|
145
145
|
flipV: e.flipV ?? !1,
|
|
146
146
|
lockAspectRatio: e.lockAspect ?? null,
|
|
147
147
|
locks: e.locks ?? null,
|
|
148
|
-
anchorType:
|
|
148
|
+
anchorType: n.Type.Absolute,
|
|
149
149
|
pixelBounds: {
|
|
150
|
-
x:
|
|
151
|
-
y:
|
|
150
|
+
x: t.x ?? 0,
|
|
151
|
+
y: t.y ?? 0,
|
|
152
152
|
width: o.x ?? 0,
|
|
153
153
|
height: o.y ?? 0
|
|
154
154
|
}
|
|
@@ -176,7 +176,7 @@ var b = class extends s {
|
|
|
176
176
|
const t = super.toJSON(e);
|
|
177
177
|
return delete t.anchorType, t;
|
|
178
178
|
}
|
|
179
|
-
}, f = class extends
|
|
179
|
+
}, f = class extends r {
|
|
180
180
|
constructor(e, t) {
|
|
181
181
|
super(t), this._group = e;
|
|
182
182
|
}
|
|
@@ -333,19 +333,19 @@ var b = class extends s {
|
|
|
333
333
|
return !0;
|
|
334
334
|
}
|
|
335
335
|
async ungroup(e) {
|
|
336
|
-
const
|
|
337
|
-
if (!
|
|
336
|
+
const n = this.getMovable();
|
|
337
|
+
if (!n || this.isDeleted()) return [];
|
|
338
338
|
const o = e?.description ?? g("op.ungroupDrawings");
|
|
339
339
|
this._protectionCheck(o);
|
|
340
|
-
const r =
|
|
340
|
+
const r = n.getRange().getWorksheet(), s = a(r.getView().getMovableSelection());
|
|
341
341
|
return await this.doBatch(() => {
|
|
342
|
-
const
|
|
342
|
+
const n = this._free(this._members_(), o);
|
|
343
343
|
this.delete(e);
|
|
344
|
-
const
|
|
345
|
-
return
|
|
344
|
+
const i = this._transactions.getPendingTransaction();
|
|
345
|
+
return i && t(i, r, n, {
|
|
346
346
|
autoSelect: e?.autoSelect ?? !0,
|
|
347
347
|
autoSelectRestore: e?.autoSelectRestore
|
|
348
|
-
}, s),
|
|
348
|
+
}, s), n;
|
|
349
349
|
}, { description: o });
|
|
350
350
|
}
|
|
351
351
|
_free(e, t) {
|
|
@@ -412,7 +412,7 @@ var b = class extends s {
|
|
|
412
412
|
}
|
|
413
413
|
async _prepareMember(e) {
|
|
414
414
|
if (!e?.type) throw new p("A member needs a type.");
|
|
415
|
-
return this._protectionCheck(g("op.insertDrawing")), await
|
|
415
|
+
return this._protectionCheck(g("op.insertDrawing")), await i({
|
|
416
416
|
type: e.type,
|
|
417
417
|
json: e.json
|
|
418
418
|
}), e;
|
|
@@ -464,8 +464,8 @@ var b = class extends s {
|
|
|
464
464
|
throw i.rollback(), e;
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
|
-
async _groupMembers(e,
|
|
468
|
-
const o =
|
|
467
|
+
async _groupMembers(e, n) {
|
|
468
|
+
const o = n?.description ?? g("op.groupDrawings");
|
|
469
469
|
if (this._protectionCheck(o), !e || e.length < 2) throw new p(_("error.movable.groupTooFew"));
|
|
470
470
|
const r = this._members_();
|
|
471
471
|
for (const t of e) if (!r.includes(t)) throw new p(_("error.movable.groupNotSameGroup"));
|
|
@@ -473,7 +473,7 @@ var b = class extends s {
|
|
|
473
473
|
if (s.length === r.length) throw new p(_("error.movable.groupWholeGroup"));
|
|
474
474
|
const i = this.getMovable();
|
|
475
475
|
if (!i) throw new p("The group is not placed.");
|
|
476
|
-
const l = i.getRange().getWorksheet(), u =
|
|
476
|
+
const l = i.getRange().getWorksheet(), u = a(l.getView().getMovableSelection()), d = c.unionBounds(s.map((e) => {
|
|
477
477
|
const t = e._getLocalPlacement();
|
|
478
478
|
return h(t.bounds, t.rotation);
|
|
479
479
|
})), m = this._createOptions.beginPersistResource();
|
|
@@ -497,39 +497,39 @@ var b = class extends s {
|
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
499
|
};
|
|
500
|
-
|
|
501
|
-
const
|
|
500
|
+
n?.name && (e.content.name = n.name);
|
|
501
|
+
const i = this._beginCommit(o);
|
|
502
502
|
try {
|
|
503
503
|
for (const e of s) e.unselect();
|
|
504
|
-
const o = this._createMember(e, m.fromResourceId.bind(m)),
|
|
505
|
-
for (const e of r) e ===
|
|
504
|
+
const o = this._createMember(e, m.fromResourceId.bind(m)), a = s[s.length - 1], c = [];
|
|
505
|
+
for (const e of r) e === a ? c.push(o) : s.includes(e) || c.push(e);
|
|
506
506
|
this._updateState({ members: c });
|
|
507
507
|
for (const e of s) e.getContent().delete();
|
|
508
|
-
return this._rebound(),
|
|
509
|
-
autoSelect:
|
|
510
|
-
autoSelectRestore:
|
|
511
|
-
}, u),
|
|
508
|
+
return this._rebound(), t(i, l, [o], {
|
|
509
|
+
autoSelect: n?.autoSelect ?? !0,
|
|
510
|
+
autoSelectRestore: n?.autoSelectRestore
|
|
511
|
+
}, u), i.commit(), this._members._notifyChange(), o;
|
|
512
512
|
} catch (e) {
|
|
513
|
-
throw
|
|
513
|
+
throw i.rollback(), e;
|
|
514
514
|
}
|
|
515
515
|
} finally {
|
|
516
516
|
m.endPersist();
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
|
-
_removeMember(e,
|
|
520
|
-
const
|
|
521
|
-
if (!
|
|
519
|
+
_removeMember(e, n) {
|
|
520
|
+
const o = this._members_();
|
|
521
|
+
if (!o.includes(e)) return;
|
|
522
522
|
e.unselect();
|
|
523
|
-
const
|
|
523
|
+
const r = this._beginCommit(n?.description ?? g("op.deleteDrawing"));
|
|
524
524
|
try {
|
|
525
|
-
const
|
|
526
|
-
if (this._updateState({ members:
|
|
527
|
-
const e =
|
|
528
|
-
this.delete(
|
|
529
|
-
} else 0 ===
|
|
530
|
-
|
|
525
|
+
const s = o.filter((t) => t !== e);
|
|
526
|
+
if (this._updateState({ members: s }), 1 === s.length && this.getMovable()) {
|
|
527
|
+
const e = s[0], o = e.isSelected(), [i] = this._free(s, n?.description ?? g("op.deleteDrawing"));
|
|
528
|
+
this.delete(n), o && t(r, i.getRange().getWorksheet(), [i], { autoSelect: !0 }, [e]);
|
|
529
|
+
} else 0 === s.length ? this.delete(n) : this._rebound();
|
|
530
|
+
r.commit(), this._members._notifyChange();
|
|
531
531
|
} catch (e) {
|
|
532
|
-
throw
|
|
532
|
+
throw r.rollback(), e;
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
535
|
_moveMember(e, t, n) {
|
|
@@ -541,10 +541,10 @@ var b = class extends s {
|
|
|
541
541
|
s.splice(r, 1), s.splice(t, 0, e), this._updateState({ members: s }, { description: n }), this._members._notifyChange();
|
|
542
542
|
}
|
|
543
543
|
_createMember(e, t) {
|
|
544
|
-
const n = this,
|
|
544
|
+
const n = this, r = e.content?.type ?? "custom", s = this._createOptions;
|
|
545
545
|
let i;
|
|
546
546
|
const a = {
|
|
547
|
-
type:
|
|
547
|
+
type: r,
|
|
548
548
|
transactions: s.transactions,
|
|
549
549
|
beginPersistResource: s.beginPersistResource,
|
|
550
550
|
fromResourceId: t,
|
|
@@ -559,7 +559,7 @@ var b = class extends s {
|
|
|
559
559
|
getStyles: s.getStyles,
|
|
560
560
|
getRange: s.getRange,
|
|
561
561
|
addWatch: s.addWatch
|
|
562
|
-
}, l = r
|
|
562
|
+
}, l = o(r, a, {
|
|
563
563
|
getMovable: () => i,
|
|
564
564
|
amend: (e) => n._amend(e),
|
|
565
565
|
isClosed: () => n._closed
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.14
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sheetxl/sdk",
|
|
3
3
|
"description": "SDK - A high-performance, embeddable spreadsheet engine.",
|
|
4
|
-
"version": "0.8.0-beta.
|
|
4
|
+
"version": "0.8.0-beta.14",
|
|
5
5
|
"license": "SEE LICENSE IN <LICENSE>",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
"browser": "./browser/esm/index.mjs",
|
|
11
11
|
"node": "./node/esm/index.mjs",
|
|
12
12
|
"default": "./browser/esm/index.mjs"
|
|
13
|
-
}
|
|
13
|
+
},
|
|
14
|
+
"./scripting-enums.json": "./types/scripting-enums.json"
|
|
14
15
|
},
|
|
15
16
|
"types": "./types/index.d.ts",
|
|
16
17
|
"module": "./browser/esm/index.mjs",
|
|
@@ -42,11 +43,13 @@
|
|
|
42
43
|
"automation"
|
|
43
44
|
],
|
|
44
45
|
"dependencies": {
|
|
45
|
-
"@
|
|
46
|
-
"@
|
|
47
|
-
"@sheetxl/
|
|
48
|
-
"@sheetxl/
|
|
49
|
-
"@sheetxl/
|
|
46
|
+
"@noble/ed25519": "^3.2.0",
|
|
47
|
+
"@noble/hashes": "^2.4.0",
|
|
48
|
+
"@sheetxl/formulas": "^0.8.0-beta.14",
|
|
49
|
+
"@sheetxl/formulas-extended": "^0.8.0-beta.14",
|
|
50
|
+
"@sheetxl/primitives": "^0.8.0-beta.14",
|
|
51
|
+
"@sheetxl/scripting": "^0.8.0-beta.14",
|
|
52
|
+
"@sheetxl/utils": "^0.8.0-beta.14",
|
|
50
53
|
"bahttext": "^2.4.0",
|
|
51
54
|
"bessel": "^1.0.2",
|
|
52
55
|
"chalk": "^6.0.1",
|