@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,38 +1,38 @@
|
|
|
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 i, a, c as o, d as s, f as c, l, m as u, n as d, o as f, p, r as m, s as h, u as g, v as _, w as v } from "./
|
|
9
|
-
import { n as y, r as b, t as x } from "./
|
|
7
|
+
import { Sr as e, jt as t, xr as n } from "./CtC__ALh4I8PKIln.mjs";
|
|
8
|
+
import { D as r, E as i, a, c as o, d as s, f as c, l, m as u, n as d, o as f, p, r as m, s as h, u as g, v as _, w as v } from "./B1aH_qa-czVyEVHd.mjs";
|
|
9
|
+
import { n as y, r as b, t as x } from "./UMQTbO0zNmBpzW1V.mjs";
|
|
10
10
|
import { FormulaError as S } from "@sheetxl/primitives";
|
|
11
11
|
import { CommonUtils as C } from "@sheetxl/utils";
|
|
12
12
|
var w = class {
|
|
13
13
|
constructor(e) {
|
|
14
14
|
e = { ...e }, this._editing = e.profile === "editing", this._parser = new b(e);
|
|
15
15
|
}
|
|
16
|
-
compile(
|
|
16
|
+
compile(t, n, d, b, C, w, E, D, O) {
|
|
17
17
|
if (b.length === 0) {
|
|
18
|
-
let
|
|
19
|
-
return this._compileUnparsed(
|
|
18
|
+
let e = new S.Parse(x);
|
|
19
|
+
return this._compileUnparsed(t, C, b, {
|
|
20
20
|
input: b,
|
|
21
|
-
cause:
|
|
22
|
-
causes: [
|
|
21
|
+
cause: e,
|
|
22
|
+
causes: [e]
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
|
-
if (b.length >
|
|
26
|
-
let
|
|
27
|
-
return this._compileUnparsed(
|
|
25
|
+
if (b.length > e.MAX_EXPRESSION_LENGTH) {
|
|
26
|
+
let n = new S.Parse(y(b.length, e.MAX_EXPRESSION_LENGTH));
|
|
27
|
+
return this._compileUnparsed(t, C, b, {
|
|
28
28
|
input: b,
|
|
29
|
-
cause:
|
|
30
|
-
causes: [
|
|
29
|
+
cause: n,
|
|
30
|
+
causes: [n]
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
33
|
let k, A, j = [];
|
|
34
34
|
try {
|
|
35
|
-
let e = this._parser.parse(
|
|
35
|
+
let e = this._parser.parse(n, d, b);
|
|
36
36
|
k = e.root, j = e.errors, D && k && j.length === 0 && (k.legacyIntersect = !0);
|
|
37
37
|
} catch (e) {
|
|
38
38
|
A = S.isError(e, S.Code.Parse) ? e : new S.Parse(e.message, e);
|
|
@@ -59,10 +59,10 @@ var w = class {
|
|
|
59
59
|
causes: M.length > 0 ? M : [A]
|
|
60
60
|
}), !k) {
|
|
61
61
|
if (this._editing) {
|
|
62
|
-
let
|
|
63
|
-
if (
|
|
62
|
+
let e = this._recoverCompiled(t, n, d, b, C, N, E);
|
|
63
|
+
if (e) return e;
|
|
64
64
|
}
|
|
65
|
-
return this._compileUnparsed(
|
|
65
|
+
return this._compileUnparsed(t, C, b, N, this._editing, () => T(C, E, n, d));
|
|
66
66
|
}
|
|
67
67
|
if (k = i(k, w ?? null), k = m(k, w ?? null), C) {
|
|
68
68
|
let e = this._editing ? O : {
|
|
@@ -70,12 +70,12 @@ var w = class {
|
|
|
70
70
|
...O
|
|
71
71
|
};
|
|
72
72
|
k = _(k, C, E, e, {
|
|
73
|
-
rowIndex:
|
|
73
|
+
rowIndex: n,
|
|
74
74
|
colIndex: d
|
|
75
75
|
});
|
|
76
|
-
let
|
|
77
|
-
if (
|
|
78
|
-
let e = new S.Parse(
|
|
76
|
+
let t = c(k, C);
|
|
77
|
+
if (t) {
|
|
78
|
+
let e = new S.Parse(t);
|
|
79
79
|
M.push(e), N = {
|
|
80
80
|
input: b,
|
|
81
81
|
cause: N?.cause ?? e,
|
|
@@ -83,8 +83,8 @@ var w = class {
|
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
-
let P = a(
|
|
87
|
-
return this._editing && N && r(P.getTokens(), C) !== b ? this._recoverCompiled(
|
|
86
|
+
let P = a(t, C, k, this._editing, N, w ?? null);
|
|
87
|
+
return this._editing && N && r(P.getTokens(), C) !== b ? this._recoverCompiled(t, n, d, b, C, N, E) || this._compileUnparsed(t, C, b, N, !0) : P;
|
|
88
88
|
}
|
|
89
89
|
autoCorrect(e) {
|
|
90
90
|
let t = function(e) {
|
|
@@ -111,10 +111,10 @@ var w = class {
|
|
|
111
111
|
}
|
|
112
112
|
return i.length === 0 && t === 0 ? null : n + i.reverse().join("");
|
|
113
113
|
}
|
|
114
|
-
_compileUnparsed(e,
|
|
114
|
+
_compileUnparsed(e, t, r, i, a = !1, o) {
|
|
115
115
|
let s = {
|
|
116
116
|
runtime: e,
|
|
117
|
-
symbols:
|
|
117
|
+
symbols: t,
|
|
118
118
|
getFunction: null,
|
|
119
119
|
ast: null,
|
|
120
120
|
evaluations: C.EmptyArray,
|
|
@@ -129,7 +129,7 @@ var w = class {
|
|
|
129
129
|
getTokens: () => {
|
|
130
130
|
let e = [];
|
|
131
131
|
return a && k(e, r, void 0, o) ? e : [{
|
|
132
|
-
type:
|
|
132
|
+
type: n.Unparsed,
|
|
133
133
|
value: r,
|
|
134
134
|
text: r
|
|
135
135
|
}];
|
|
@@ -147,7 +147,7 @@ var w = class {
|
|
|
147
147
|
};
|
|
148
148
|
return s;
|
|
149
149
|
}
|
|
150
|
-
_recoverCompiled(e,
|
|
150
|
+
_recoverCompiled(e, t, i, o, s, c, l) {
|
|
151
151
|
let u, d = o.length;
|
|
152
152
|
try {
|
|
153
153
|
let e = this._parser.getLexer().tokenize(o, !1);
|
|
@@ -163,16 +163,16 @@ var w = class {
|
|
|
163
163
|
for (let u of f) {
|
|
164
164
|
let d = o.slice(0, u), f, p;
|
|
165
165
|
try {
|
|
166
|
-
f = this._parser.parse(
|
|
166
|
+
f = this._parser.parse(t, i, d).root;
|
|
167
167
|
} catch {
|
|
168
168
|
continue;
|
|
169
169
|
}
|
|
170
|
-
if (!f || f.type ===
|
|
170
|
+
if (!f || f.type === n.Unparsed) continue;
|
|
171
171
|
try {
|
|
172
|
-
let
|
|
173
|
-
rowIndex:
|
|
172
|
+
let n = m(f, null), r = s ? _(n, s, l, void 0, {
|
|
173
|
+
rowIndex: t,
|
|
174
174
|
colIndex: i
|
|
175
|
-
}) :
|
|
175
|
+
}) : n;
|
|
176
176
|
p = a(e, s, r, !0, c);
|
|
177
177
|
} catch {
|
|
178
178
|
continue;
|
|
@@ -182,23 +182,23 @@ var w = class {
|
|
|
182
182
|
if (h.length === 0) return p;
|
|
183
183
|
let g, v = {
|
|
184
184
|
...p,
|
|
185
|
-
getTokens: () => (g || (g = [...p.getTokens()], this._appendUnparsedTail(g, h, () => T(s, l,
|
|
185
|
+
getTokens: () => (g || (g = [...p.getTokens()], this._appendUnparsedTail(g, h, () => T(s, l, t, i))), g),
|
|
186
186
|
transform: () => v
|
|
187
187
|
};
|
|
188
188
|
return v;
|
|
189
189
|
}
|
|
190
190
|
return null;
|
|
191
191
|
}
|
|
192
|
-
_appendUnparsedTail(e,
|
|
192
|
+
_appendUnparsedTail(e, t, r) {
|
|
193
193
|
let i = [];
|
|
194
|
-
for (let
|
|
195
|
-
if (
|
|
196
|
-
let e =
|
|
197
|
-
if (
|
|
194
|
+
for (let t of e) {
|
|
195
|
+
if (t.type === n.Whitespace) continue;
|
|
196
|
+
let e = t.type === n.Paren || t.type === n.Type ? t.text : void 0, r = i.length > 0 ? i[i.length - 1] : void 0;
|
|
197
|
+
if (t.type === n.Separator && r) {
|
|
198
198
|
let e = r.declared[r.declared.length - 1];
|
|
199
199
|
r.ctx?.type === "let" && r.ctx.argIndex === -1 && r.lambda?.argTokens === r.argTokens && e?.argIndex === r.argIndex - 1 && (e.params = r.lambda.params), r.argIndex++, r.argTokens = 0, r.lambda = void 0;
|
|
200
200
|
} else if (r && r.argTokens++, e === "(" || e === "[" || e === "{") i.push({
|
|
201
|
-
ctx:
|
|
201
|
+
ctx: t.context,
|
|
202
202
|
argIndex: 0,
|
|
203
203
|
declared: [],
|
|
204
204
|
argTokens: 0,
|
|
@@ -213,8 +213,8 @@ var w = class {
|
|
|
213
213
|
} : { name: e }),
|
|
214
214
|
argTokens: t.argTokens
|
|
215
215
|
});
|
|
216
|
-
} else if (
|
|
217
|
-
let e =
|
|
216
|
+
} else if (t.type === n.Parameter && r && t.value?.declaration) {
|
|
217
|
+
let e = t.value;
|
|
218
218
|
r.declared.push(e.optional ? {
|
|
219
219
|
name: e.name,
|
|
220
220
|
argIndex: r.argIndex,
|
|
@@ -241,32 +241,32 @@ var w = class {
|
|
|
241
241
|
}
|
|
242
242
|
t && (o.bound = t);
|
|
243
243
|
}
|
|
244
|
-
let s = (
|
|
244
|
+
let s = (t, r) => {
|
|
245
245
|
let i = r ? {
|
|
246
|
-
type:
|
|
247
|
-
value: { name:
|
|
248
|
-
text:
|
|
246
|
+
type: n.Named,
|
|
247
|
+
value: { name: t },
|
|
248
|
+
text: t
|
|
249
249
|
} : {
|
|
250
|
-
type:
|
|
251
|
-
value:
|
|
252
|
-
text:
|
|
250
|
+
type: n.Unparsed,
|
|
251
|
+
value: t,
|
|
252
|
+
text: t
|
|
253
253
|
};
|
|
254
254
|
o && (i.context = o), e.push(i);
|
|
255
255
|
};
|
|
256
|
-
if (k(e,
|
|
257
|
-
let c = /[A-Za-z_][A-Za-z0-9_]*$/.exec(
|
|
256
|
+
if (k(e, t, o, r)) return;
|
|
257
|
+
let c = /[A-Za-z_][A-Za-z0-9_]*$/.exec(t), l = c ? c.index : -1, u = l > 0 ? t[l - 1] : "";
|
|
258
258
|
for (let t = e.length - 1; l === 0 && t >= 0 && !u; t--) u = e[t].text?.at(-1) ?? "";
|
|
259
|
-
l >= 0 && !/[A-Za-z0-9_.]/.test(u) ? (l > 0 && s(
|
|
259
|
+
l >= 0 && !/[A-Za-z0-9_.]/.test(u) ? (l > 0 && s(t.slice(0, l)), s(t.slice(l), !0)) : s(t);
|
|
260
260
|
}
|
|
261
261
|
};
|
|
262
|
-
function T(
|
|
263
|
-
if (!
|
|
264
|
-
let a =
|
|
262
|
+
function T(e, n, r, i) {
|
|
263
|
+
if (!e || !n) return;
|
|
264
|
+
let a = e.bind(t.Table, "", { at: {
|
|
265
265
|
scope: n,
|
|
266
266
|
rowIndex: r,
|
|
267
267
|
colIndex: i
|
|
268
268
|
} });
|
|
269
|
-
return a ?
|
|
269
|
+
return a ? e.resolve(t.Table, a)?.toString() : void 0;
|
|
270
270
|
}
|
|
271
271
|
var E = /[A-Za-z_\\\u007F-\uFFFF][A-Za-z0-9_.\u007F-\uFFFF]*$/, D = /[A-Za-z0-9_.)\]}"'!#\u007F-\uFFFF]/;
|
|
272
272
|
function O(e, t) {
|
|
@@ -279,21 +279,21 @@ function O(e, t) {
|
|
|
279
279
|
}
|
|
280
280
|
return -1;
|
|
281
281
|
}
|
|
282
|
-
function k(e,
|
|
282
|
+
function k(e, t, r, i) {
|
|
283
283
|
let a = 0, o = -1;
|
|
284
|
-
for (let e = 0; e <
|
|
285
|
-
let
|
|
286
|
-
a > 0 &&
|
|
284
|
+
for (let e = 0; e < t.length; e++) {
|
|
285
|
+
let n = t[e];
|
|
286
|
+
a > 0 && n === "'" ? e++ : n === "[" ? (a === 0 && (o = e), a++) : n === "]" && a > 0 && a--;
|
|
287
287
|
}
|
|
288
288
|
if (a === 0) return !1;
|
|
289
|
-
let s =
|
|
289
|
+
let s = t.slice(0, o);
|
|
290
290
|
if ((s.split("\"").length - 1) % 2 == 1) return !1;
|
|
291
291
|
let c = e.length > 0 ? e[e.length - 1] : void 0, l = "", u = !1, d = E.exec(s);
|
|
292
292
|
if (d) {
|
|
293
293
|
let e = d.index > 0 ? s[d.index - 1] : c?.text?.at(-1) ?? "";
|
|
294
294
|
if (/[A-Za-z0-9_.]/.test(e)) return !1;
|
|
295
295
|
l = d[0], s = s.slice(0, d.index);
|
|
296
|
-
} else s.length === 0 && c?.text && E.exec(c.text)?.index === 0 && (c.type ===
|
|
296
|
+
} else s.length === 0 && c?.text && E.exec(c.text)?.index === 0 && (c.type === n.Named && !c.value?.scope || c.type === n.TableReference) && (l = c.text, u = !0);
|
|
297
297
|
if (!u) {
|
|
298
298
|
let e = s.length > 0 ? s[s.length - 1] : c?.text?.at(-1) ?? "";
|
|
299
299
|
if (e && D.test(e)) return !1;
|
|
@@ -309,7 +309,7 @@ function k(e, n, r, i) {
|
|
|
309
309
|
type: "table"
|
|
310
310
|
}
|
|
311
311
|
});
|
|
312
|
-
}, h = (e,
|
|
312
|
+
}, h = (e, t, r, i) => {
|
|
313
313
|
let a = e.startsWith("#"), o = r ? i ? "column" : a ? "specifier" : e ? "column" : "any" : void 0, s = o ? {
|
|
314
314
|
table: f,
|
|
315
315
|
name: e,
|
|
@@ -319,75 +319,75 @@ function k(e, n, r, i) {
|
|
|
319
319
|
name: e
|
|
320
320
|
};
|
|
321
321
|
p.push({
|
|
322
|
-
type: a ?
|
|
322
|
+
type: a ? n.TableSpecifier : n.TableColumn,
|
|
323
323
|
value: s,
|
|
324
324
|
text: e,
|
|
325
325
|
context: {
|
|
326
326
|
name: f,
|
|
327
|
-
argIndex:
|
|
327
|
+
argIndex: t,
|
|
328
328
|
type: "table"
|
|
329
329
|
}
|
|
330
330
|
});
|
|
331
|
-
}, g = (e,
|
|
332
|
-
m(
|
|
331
|
+
}, g = (e, t, r, i) => {
|
|
332
|
+
m(n.Paren, "[", r), h(e.slice(1, t ? -1 : void 0), r, !t, i), t && m(n.Paren, "]", r);
|
|
333
333
|
};
|
|
334
|
-
m(
|
|
335
|
-
let _ =
|
|
334
|
+
m(n.Paren, "[", -1);
|
|
335
|
+
let _ = t.slice(o + 1);
|
|
336
336
|
if (_.startsWith("[")) {
|
|
337
|
-
let e = 0,
|
|
337
|
+
let e = 0, t = !1, r = 0;
|
|
338
338
|
for (; r < _.length;) {
|
|
339
339
|
let i = _[r];
|
|
340
340
|
if (i === "[") {
|
|
341
|
-
let
|
|
342
|
-
if (
|
|
343
|
-
let i =
|
|
344
|
-
if (g(_.slice(r, i ?
|
|
345
|
-
r =
|
|
346
|
-
} else if (i === ",") m(
|
|
347
|
-
else if (i === ":") m(
|
|
348
|
-
else if (i === "@") m(
|
|
341
|
+
let n = O(_, r);
|
|
342
|
+
if (n === null) return !1;
|
|
343
|
+
let i = n !== -1;
|
|
344
|
+
if (g(_.slice(r, i ? n : _.length), i, e, t), t = !1, !i) break;
|
|
345
|
+
r = n;
|
|
346
|
+
} else if (i === ",") m(n.Separator, ",", e++), r++;
|
|
347
|
+
else if (i === ":") m(n.Infix, ":", e), r++;
|
|
348
|
+
else if (i === "@") m(n.Prefix, "@", e), t = !0, r++;
|
|
349
349
|
else {
|
|
350
350
|
if (i !== " ") return !1;
|
|
351
351
|
{
|
|
352
|
-
let
|
|
353
|
-
for (; _[
|
|
354
|
-
m(
|
|
352
|
+
let t = r;
|
|
353
|
+
for (; _[t] === " ";) t++;
|
|
354
|
+
m(n.Whitespace, _.slice(r, t), e), r = t;
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
358
|
} else {
|
|
359
|
-
let e = _,
|
|
360
|
-
if (
|
|
359
|
+
let e = _, t = e.startsWith("@");
|
|
360
|
+
if (t && (m(n.Prefix, "@", 0), e = e.slice(1)), e.startsWith("[")) {
|
|
361
361
|
if (O(e, 0) !== -1) return !1;
|
|
362
|
-
g(e, !1, 0,
|
|
362
|
+
g(e, !1, 0, t);
|
|
363
363
|
} else {
|
|
364
364
|
if (/(^|[^'])[[\]]/.test(e) || e.startsWith("#") && e.includes(",")) return !1;
|
|
365
|
-
h(e, 0, !0,
|
|
365
|
+
h(e, 0, !0, t);
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
368
|
if (s) {
|
|
369
|
-
let
|
|
370
|
-
type:
|
|
369
|
+
let t = {
|
|
370
|
+
type: n.Unparsed,
|
|
371
371
|
value: s,
|
|
372
372
|
text: s
|
|
373
373
|
};
|
|
374
|
-
r && (
|
|
374
|
+
r && (t.context = r), e.push(t);
|
|
375
375
|
}
|
|
376
376
|
if (u) {
|
|
377
|
-
let
|
|
377
|
+
let t = {
|
|
378
378
|
...c,
|
|
379
|
-
type:
|
|
379
|
+
type: n.TableReference,
|
|
380
380
|
value: l,
|
|
381
381
|
text: l
|
|
382
382
|
};
|
|
383
|
-
delete
|
|
383
|
+
delete t.referenceIndex, e[e.length - 1] = t;
|
|
384
384
|
} else if (l) {
|
|
385
|
-
let
|
|
386
|
-
type:
|
|
385
|
+
let t = {
|
|
386
|
+
type: n.TableReference,
|
|
387
387
|
value: l,
|
|
388
388
|
text: l
|
|
389
389
|
};
|
|
390
|
-
r && (
|
|
390
|
+
r && (t.context = r), e.push(t);
|
|
391
391
|
}
|
|
392
392
|
for (let t of p) e.push(t);
|
|
393
393
|
return !0;
|
|
@@ -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.
|