@sheetxl/sdk 0.8.0-beta.11 → 0.8.0-beta.13
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/{BMyDRQ716j79h_bH.mjs → -GEhXGMfNcWmHPby.mjs} +6 -6
- package/browser/esm/{B7aUIvgUjncMMD_i.mjs → 9WXf_BTKjW1cQisZ.mjs} +95 -94
- package/browser/esm/{PcHFjNzQsE54POri.mjs → B2SgIPPBX0wjzuq8.mjs} +1 -1
- package/browser/esm/{DEiPS3Dr-s4fPbVZ.mjs → BC2RwlNwCdRywkoD.mjs} +1 -1
- package/browser/esm/{BpgskG1Er_lGQ_yS.mjs → BEqhm9xAUPiHUCFv.mjs} +1 -1
- package/browser/esm/BHgqi7KNrl7Vjr0W.mjs +348 -0
- package/browser/esm/{BkBhLS0l6z8sxI6D.mjs → BJKH0tDRx2FeSWvt.mjs} +2 -2
- package/browser/esm/{CU3DmJ-YnVVrC1_k.mjs → BTgWtqdQoh2cB6DL.mjs} +1 -1
- package/browser/esm/{Dyq_ivuHvlXLwPCl.mjs → BVshV1iY3bcUH9_E.mjs} +1135 -1129
- package/browser/esm/{BFagR2JeWs74iAG3.mjs → BYQ63XU7JzB4_itX.mjs} +1 -1
- package/browser/esm/{DvAaxH6z_tGvrRzl.mjs → Bax5aOzQkbHKXW_X.mjs} +239 -230
- package/browser/esm/{DLLE0FZNsKxbBzRn.mjs → BiDGKhtzV6yIy66o.mjs} +45 -45
- package/browser/esm/BmYrWK5OmHRtgyqM.mjs +367 -0
- package/browser/esm/{ClPfI4lODvCece29.mjs → BoAlHgjPQ6mxb_oO.mjs} +74 -74
- package/browser/esm/{BoV6zPBnfqCBCqZ7.mjs → C0mjTq8lhrX3HiPa.mjs} +4328 -3166
- package/browser/esm/{nvU0ClAbf0g94YBK.mjs → C5j0IdwtYkWlOftv.mjs} +604 -596
- package/browser/esm/{DWNzqw7DUKwoxjri.mjs → CL84-iL2QeKlLzo5.mjs} +2 -2
- package/browser/esm/{Ctjb0SsxV4K4MMqG.mjs → CLkBe-6n-pStQhnz.mjs} +2 -2
- package/{node/esm/CZICGK_ss0HoGHCP.mjs → browser/esm/CPzfhTPX2Y4dHX2p.mjs} +2 -2
- package/browser/esm/{Dlmig06rIo7cInRk.mjs → CSJuIjYUOE387FIP.mjs} +1 -1
- package/browser/esm/{BjkCiv5Jz6WYKZeu.mjs → Cdw0mGuoV3IU2LhR.mjs} +2 -2
- package/browser/esm/Ced5uyofOWHuL_Jy.mjs +114 -0
- package/browser/esm/{CkxWugaJFjDGZNZ-.mjs → Ci_LJ4S_GvYX0STI.mjs} +1 -1
- package/browser/esm/{zlLuW405RSguy4Kn.mjs → CwygVKP_RXmne5Ot.mjs} +47 -47
- package/browser/esm/{C4MqfLn9Dm-l3OIk.mjs → D-mfK0noQrM2jZLT.mjs} +1 -1
- package/browser/esm/{BnG31I6Oj_HEtSPS.mjs → D9SH_8v3FYCnxOFK.mjs} +1 -1
- package/browser/esm/{BVDiOXGMc5_FMGfy.mjs → DPD8fop6az9HZNiK.mjs} +2 -2
- package/browser/esm/DW-MmlgMH87l-_cw.mjs +302 -0
- package/browser/esm/{CaB7J-xgfKO2uAkG.mjs → DctIlUsO78-OU2ht.mjs} +2 -2
- package/browser/esm/DdcKkVb4jM6Y_epY.mjs +184 -0
- package/browser/esm/{CHU6iu_WGlm7fLET.mjs → DfKzE0IY0TjaEIxG.mjs} +1 -1
- package/browser/esm/{C2VbEI_XVAoseAwa.mjs → DkloMquaR1pbZCER.mjs} +44 -43
- package/browser/esm/{C16ycKja6zG0crV_.mjs → Dz86-De57bv2VYIi.mjs} +19447 -16481
- package/browser/esm/{BtvLTTfSBdAKplVG.mjs → HApSgmV2FXRRwQac.mjs} +1 -1
- package/browser/esm/{CQYjO777cmAznUzK.mjs → IbVAQU4YqtFqLwYk.mjs} +1 -1
- package/browser/esm/index.mjs +823 -644
- package/browser/esm/mHQ95RAfxHzcUN2r.mjs +18 -0
- package/browser/esm/pm00uZZu_H3gxHFx.mjs +117 -0
- package/browser/esm/{CV5EGEjG5_-CPpP0.mjs → quEvwgrEuOb0h3q-.mjs} +1926 -1298
- package/browser/esm/{ClbvFbFzFzXLBKNN.mjs → zZngLMg6mg6nnNGX.mjs} +66 -66
- package/licenses/dependencies.txt +71 -1
- package/node/esm/{BqiexuA89caYnAPz.mjs → -K4Cek-bTUItkB_8.mjs} +1 -1
- package/node/esm/-b8yNV4v9qiq8EMY.mjs +117 -0
- package/node/esm/{D8zEN-6ZdDqDvTxM.mjs → 1V-m67YHbxmg3xk2.mjs} +74 -74
- package/node/esm/{D_t5AUxSm7_icjzq.mjs → 4ROAfJC1mokmqubv.mjs} +1 -1
- package/node/esm/B89et7t3uRmtxk4v.mjs +115 -0
- package/node/esm/BKBkCBNGhMU0nQdY.mjs +372 -0
- package/node/esm/{OVfaSb506tNSIvbv.mjs → BQ2XqExomMceAjfe.mjs} +20822 -18373
- package/node/esm/{2Kihw_-5lVTEnwMa.mjs → Bfg7qjCXCwXbzW3K.mjs} +1 -1
- package/node/esm/{D1TKBVmoKGAXf37B.mjs → BtMeAB_dqJnOfzJM.mjs} +2 -2
- package/node/esm/{D6e2z7eZpxOJXHc7.mjs → Byc_bxU_MdjYtt0x.mjs} +1 -1
- package/node/esm/{CNCNJNg890KdgkWh.mjs → Bzrl292TNCK3Cpid.mjs} +1 -1
- package/node/esm/{De2IONBxQhz-Qbyh.mjs → C0P9zspoypRAj7yv.mjs} +1 -1
- package/node/esm/{CzXT00vrQa1_gvW9.mjs → C9gpMN3galHGZyoK.mjs} +1 -1
- package/node/esm/CKCG2peOkTq0gIIW.mjs +310 -0
- package/node/esm/{DUTskXCXref-IJnI.mjs → CWBS90g3Hz-kQDkY.mjs} +46 -46
- package/node/esm/{BIwObuhTJYf0jpUa.mjs → CoGSVnn-hNMtTEus.mjs} +2 -2
- package/node/esm/{CwePQwTILHHjGDkZ.mjs → CzrLqStvrcPE2-hb.mjs} +194 -185
- package/node/esm/{CCN5vD410obwdz38.mjs → D16EdlZG1hX5WUUK.mjs} +96 -95
- package/node/esm/{CDHdgJXH2vS71WMc.mjs → D1mDga2K5sjs8y07.mjs} +1 -1
- package/node/esm/{cGwrLA1RCE-WhJ7w.mjs → D2jtztjE6c23RKvZ.mjs} +1 -1
- package/node/esm/{Bbf1Pm9Gk7YpLTvg.mjs → D9nRcWsYk3M82iD8.mjs} +1 -1
- package/node/esm/{yavzZOiZW_EjG9lE.mjs → DALYzTxZ9Ur9C69Q.mjs} +1 -1
- package/node/esm/{DkwIPzKc3UwdUIfM.mjs → DF0nL7s01dp7n0Bx.mjs} +10 -10
- package/node/esm/{DNRhGK-8Tr9xcRyc.mjs → DO5ldLqhTvIfPXLW.mjs} +3348 -2610
- package/node/esm/DQz8J8ci7EJdqbuB.mjs +351 -0
- package/node/esm/{BIRq1kT7lLRzns9t.mjs → DR2OQTKqqyIkZnse.mjs} +2 -2
- package/node/esm/{857CIBgQgGpnqrXk.mjs → DSTLPBgpsGW6qP9e.mjs} +73 -73
- package/node/esm/{CGp6VZL-gZa9Uezx.mjs → DiXp7KSOZUSWXaZ5.mjs} +1 -1
- package/node/esm/{CZiqiay42tFTrLI4.mjs → DwvXHsycOQR219c7.mjs} +1 -1
- package/node/esm/{B21JjOLghRoDOrkx.mjs → Hc6B04OyVzHx2F5I.mjs} +38 -37
- package/node/esm/{Ct3h15sCus4Tgt6M.mjs → NkPNHsq2T3DXg76x.mjs} +561 -553
- package/node/esm/{B084DssTcdBheTp_.mjs → Nl_IIkO1jbk0s9i-.mjs} +4552 -3373
- package/node/esm/{D2KBymQJd1XhpeQD.mjs → OQT5lGqq8a4r5xNa.mjs} +1 -1
- package/node/esm/OTaaFGhF-k_iwobp.mjs +18 -0
- package/node/esm/{CdJHUJSBRHZoryPe.mjs → Z1elC_roIu7LhceZ.mjs} +53 -53
- package/{browser/esm/D5np__Jb1euAyaLw.mjs → node/esm/e3F3OVXCxLJrSukW.mjs} +2 -2
- package/node/esm/index.mjs +806 -625
- package/node/esm/{mFiBSM7XgBHV9AY7.mjs → suOBVUz-pca6ilJH.mjs} +1607 -1601
- package/package.json +8 -6
- 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 +12 -2
- package/resources/locales/en/model.msg.json +13 -2
- package/types/scripting-api.json +10638 -10446
- package/types/scripting-enums.json +20 -1
- package/types/scripting.d.ts +1536 -477
- 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/{sheet → anomalies}/_Anomalies.d.ts +3 -3
- package/types/src/anomalies/_FocusTable.d.ts +5 -0
- package/types/src/{sheet/_AnomalyFormulaChecks.d.ts → anomalies/_FormulaChecks.d.ts} +10 -2
- package/types/src/{sheet/_AnomalyLabelChecks.d.ts → anomalies/_LabelChecks.d.ts} +1 -1
- package/types/src/anomalies/_LiteralChecks.d.ts +35 -0
- package/types/src/anomalies/_SeriesChecks.d.ts +13 -0
- package/types/src/calculation/Calculation.d.ts +61 -98
- package/types/src/calculation/ExternalBookBindings.d.ts +2 -29
- package/types/src/calculation/ICalculation.d.ts +96 -9
- package/types/src/calculation/NamedFormulaCollection.d.ts +110 -10
- 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 +6 -15
- 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 +1 -45
- package/types/src/calculation/engine/CalcBackend.d.ts +83 -127
- package/types/src/calculation/engine/index.d.ts +0 -8
- package/types/src/calculation/executor/CalcExecutor.d.ts +50 -116
- package/types/src/calculation/executor/CalcExecutorUtils.d.ts +47 -12
- 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 +31 -0
- package/types/src/calculation/formula/FormulaBlock.d.ts +4 -31
- package/types/src/calculation/formula/FormulaRecordView.d.ts +0 -15
- package/types/src/calculation/formula/IFormulaBlock.d.ts +5 -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/functions/_DataTableFunction.d.ts +14 -0
- package/types/src/calculation/grid/CalcGrid.d.ts +8 -64
- package/types/src/calculation/grid/CalcGridBackend.d.ts +12 -35
- package/types/src/calculation/grid/CalcGridProxy.d.ts +0 -15
- package/types/src/calculation/grid/CalcGridUtils.d.ts +21 -23
- package/types/src/calculation/grid/ICalcGrid.d.ts +28 -109
- package/types/src/calculation/grid/_CalcRequest.d.ts +17 -33
- package/types/src/calculation/spatial/CircularEntry.d.ts +0 -10
- package/types/src/calculation/spatial/FormulaSpatialValue.d.ts +54 -82
- package/types/src/calculation/spatial/SpillEntry.d.ts +20 -3
- package/types/src/calculation/state/CalcNode.d.ts +0 -1
- package/types/src/calculation/state/CalcScope.d.ts +29 -9
- package/types/src/calculation/state/CalcState.d.ts +19 -9
- package/types/src/calculation/state/CalculationContext.d.ts +32 -38
- package/types/src/calculation/state/DeferredCalls.d.ts +207 -0
- package/types/src/calculation/state/IContextContainer.d.ts +19 -55
- package/types/src/calculation/state/_KeepBlanks.d.ts +5 -0
- package/types/src/calculation/state/_PendingOverlayGrid.d.ts +52 -33
- package/types/src/calculation/state/_WhatIfLayer.d.ts +77 -0
- 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 +59 -54
- package/types/src/cellControl/CellControl.d.ts +67 -0
- package/types/src/cellControl/CellControlCollection.d.ts +29 -0
- package/types/src/cellControl/CellControlRegistry.d.ts +47 -0
- package/types/src/cellControl/ICellControl.d.ts +99 -0
- package/types/src/cellControl/ICellControlCollection.d.ts +67 -0
- package/types/src/cellControl/index.d.ts +4 -0
- package/types/src/cellRange/ICellRange.d.ts +226 -67
- package/types/src/cellRange/ICellRanges.d.ts +4 -3
- 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/ChartLayout.d.ts +5 -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 +3 -12
- package/types/src/chart/resolve/_ResolvedChart.d.ts +5 -8
- package/types/src/collections/ISparseGrid.d.ts +11 -2
- package/types/src/collections/MixedTypedArrayList.d.ts +8 -2
- package/types/src/collections/SparseGrid.d.ts +3 -8
- 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 +3 -25
- 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 +16 -18
- package/types/src/fetch/Fetcher.d.ts +15 -0
- package/types/src/fetch/IFetcher.d.ts +48 -0
- package/types/src/fetch/_WorkbookFetch.d.ts +43 -0
- package/types/src/fetch/index.d.ts +3 -0
- package/types/src/fill/PaintUtils.d.ts +3 -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/hyperlink/IHyperlink.d.ts +10 -0
- package/types/src/hyperlink/_Hyperlink.d.ts +4 -1
- package/types/src/index.d.ts +2 -1
- 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/named/INamedCollection.d.ts +36 -0
- package/types/src/named/NamedCollection.d.ts +18 -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 +46 -0
- 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/resource/IResource.d.ts +9 -0
- package/types/src/resource/IResourceCollection.d.ts +4 -0
- package/types/src/resource/Resource.d.ts +2 -0
- package/types/src/resource/_AddResource.d.ts +13 -0
- package/types/src/richData/CellImage.d.ts +95 -0
- package/types/src/richData/Hyperlink.d.ts +49 -0
- package/types/src/richData/IRichDataCollection.d.ts +76 -0
- package/types/src/richData/IRichDataKind.d.ts +55 -11
- package/types/src/richData/RichArray.d.ts +42 -0
- package/types/src/richData/RichDataCollection.d.ts +23 -0
- package/types/src/richData/RichDataRegistry.d.ts +52 -14
- package/types/src/richData/RichDataValues.d.ts +20 -0
- package/types/src/richData/RichRecord.d.ts +68 -0
- package/types/src/richData/RichText.d.ts +5 -5
- package/types/src/richData/index.d.ts +6 -0
- package/types/src/scripting/FunctionArguments.d.ts +17 -1
- package/types/src/scripting/FunctionCollection.d.ts +8 -0
- package/types/src/scripting/Scripts.d.ts +10 -0
- package/types/src/scripting/TypedFunction.d.ts +2 -109
- package/types/src/sheet/ICellContainerOptions.d.ts +6 -0
- package/types/src/sheet/IWorksheet.d.ts +26 -22
- package/types/src/sheet/NamedCellRange.d.ts +0 -21
- package/types/src/sheet/SheetCell.d.ts +25 -3
- package/types/src/sheet/SheetRange.d.ts +8 -2
- package/types/src/sheet/SheetRanges.d.ts +2 -2
- package/types/src/sheet/Worksheet.d.ts +117 -104
- package/types/src/sheet/_DelimitedText.d.ts +13 -0
- package/types/src/sheet/_IgnoredErrors.d.ts +0 -12
- package/types/src/sheet/_ListenerAnchor.d.ts +7 -1
- package/types/src/sheet/_ScalarListFactory.d.ts +46 -17
- package/types/src/sheet/_SheetCoords.d.ts +0 -7
- package/types/src/sheet/_SheetFilterUtils.d.ts +0 -8
- package/types/src/sheet/_SheetMutations.d.ts +4 -1
- package/types/src/sheet/_SheetStateReader.d.ts +0 -10
- package/types/src/sheet/_SheetStateTypes.d.ts +23 -14
- 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/IWorkbook.d.ts +40 -1
- package/types/src/workbook/Workbook.d.ts +25 -13
- package/types/src/workbook/WorkbookRanges.d.ts +1 -1
- package/browser/esm/BGOFfpxr2jPIdqmV.mjs +0 -40
- package/browser/esm/BLoUBId2xZpXAK_H.mjs +0 -698
- package/browser/esm/C5E6zSGAALWf61n4.mjs +0 -199
- package/browser/esm/S2dNNx1a5ydRnARM.mjs +0 -367
- package/browser/esm/f1IoRb7tEb0QmCSt.mjs +0 -110
- package/browser/esm/gssVX_FH1XFN-twD.mjs +0 -210
- package/node/esm/BrCKGFRsX_ezFJ4B.mjs +0 -811
- package/node/esm/DOU54VsOjG-m-NyQ.mjs +0 -210
- package/node/esm/Db0v7zXNnyjBIjjI.mjs +0 -372
- package/node/esm/Df1bL6VFvrqIdSLB.mjs +0 -40
- package/node/esm/DrTZbfemSLq2mseG.mjs +0 -111
- package/types/src/dataTable/DataTable.d.ts +0 -67
- package/types/src/dataTable/DataTableCollection.d.ts +0 -19
- package/types/src/dataTable/IDataTable.d.ts +0 -99
- package/types/src/dataTable/IDataTableCollection.d.ts +0 -18
- package/types/src/dataTable/index.d.ts +0 -6
|
@@ -1,15 +1,15 @@
|
|
|
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.13
|
|
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 {
|
|
7
|
+
import { $n as e, Bn as t, Fn as s, Gn as r, Jn as i, Kn as n, Ln as o, Qn as a, Un as h, Vn as l, Wn as u, Xn as c, Yn as p, Zn as g, _r as m, ar as O, er as _, fr as E, gr as L, ir as A, mr as f, nr as C, or as T, pr as N, qn as U, rr as S, sr as d, tr as x, xr as R, zn as I } from "./BQ2XqExomMceAjfe.mjs";
|
|
8
8
|
import { FormulaError as M } from "@sheetxl/primitives";
|
|
9
9
|
import { EOF as P, EmbeddedActionsParser as b, Lexer as v, createToken as k, defaultParserErrorProvider as w } from "chevrotain";
|
|
10
10
|
var y = class e {
|
|
11
11
|
static shared(t) {
|
|
12
|
-
const s = t?.locale ??
|
|
12
|
+
const s = t?.locale ?? m, r = t?.maxColumn ?? D, i = t?.maxRow ?? G;
|
|
13
13
|
let n = $.get(s);
|
|
14
14
|
n || (n = /* @__PURE__ */ new Map(), $.set(s, n));
|
|
15
15
|
const o = `${r}:${i}`;
|
|
@@ -21,7 +21,7 @@ var y = class e {
|
|
|
21
21
|
}), n.set(o, a)), a;
|
|
22
22
|
}
|
|
23
23
|
constructor(e) {
|
|
24
|
-
const t = e?.maxColumn ?? D, s = e?.maxRow ?? G, r = e?.locale ??
|
|
24
|
+
const t = e?.maxColumn ?? D, s = e?.maxRow ?? G, r = e?.locale ?? m;
|
|
25
25
|
this._locale = r, this._maxColumn = t, this._maxRow = s;
|
|
26
26
|
const { separatorFunction: i, separatorColumn: n, separatorRow: o, separatorDecimal: a } = r.separators;
|
|
27
27
|
if (n === o) throw new Error(`FormulaLexer: separatorColumn and separatorRow must differ (both '${n}')`);
|
|
@@ -37,16 +37,16 @@ var y = class e {
|
|
|
37
37
|
pattern: /[a-zA-Z_\u007F-\uFFFF]+[a-zA-Z0-9_.\u007F-\uFFFF]*(?=\()/
|
|
38
38
|
}), c = k({
|
|
39
39
|
name: "TableReference",
|
|
40
|
-
pattern: { exec:
|
|
40
|
+
pattern: { exec: N },
|
|
41
41
|
line_breaks: !1,
|
|
42
42
|
start_chars_hint: B
|
|
43
43
|
}), p = k({
|
|
44
44
|
name: "BracketedString",
|
|
45
|
-
pattern: { exec:
|
|
45
|
+
pattern: { exec: E },
|
|
46
46
|
line_breaks: !1,
|
|
47
47
|
start_chars_hint: [91],
|
|
48
48
|
longer_alt: [c, l]
|
|
49
|
-
}), g = (e) => (e ?? []).map((e) => e?.trim()).filter(Boolean).map((e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).map((e) => e + "|").join(""),
|
|
49
|
+
}), g = (e) => (e ?? []).map((e) => e?.trim()).filter(Boolean).map((e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).map((e) => e + "|").join(""), O = (e) => e.replace(/[A-Za-z]/g, (e) => `[${e.toUpperCase()}${e.toLowerCase()}]`), _ = k({
|
|
50
50
|
name: "LiteralError",
|
|
51
51
|
pattern: new RegExp(g(r.errorLiterals) + [
|
|
52
52
|
"#PARSE!",
|
|
@@ -65,24 +65,24 @@ var y = class e {
|
|
|
65
65
|
"#BUSY!",
|
|
66
66
|
"#PYTHON!",
|
|
67
67
|
"#TIMEOUT!"
|
|
68
|
-
].map(
|
|
69
|
-
}),
|
|
68
|
+
].map(O).join("|"))
|
|
69
|
+
}), L = k({
|
|
70
70
|
name: "RefError",
|
|
71
|
-
pattern: new RegExp(g(r.errorRefs) + ["#REF!", "#NAME\\?"].map(
|
|
72
|
-
}),
|
|
71
|
+
pattern: new RegExp(g(r.errorRefs) + ["#REF!", "#NAME\\?"].map(O).join("|"))
|
|
72
|
+
}), A = k({
|
|
73
73
|
name: "SingleQuotedString",
|
|
74
74
|
pattern: /'(''|[^'])*'/
|
|
75
|
-
}),
|
|
75
|
+
}), f = k({
|
|
76
76
|
name: "SheetQuoted",
|
|
77
77
|
pattern: /'(?:''|[^'])*?'!/
|
|
78
|
-
}),
|
|
78
|
+
}), C = k({
|
|
79
79
|
name: "Sheet",
|
|
80
80
|
pattern: /[A-Za-z_.\d\u007F-\uFFFF]*!/
|
|
81
|
-
}),
|
|
81
|
+
}), T = /[a-zA-Z_\\\u007F-\uFFFF][a-zA-Z0-9_.?\\\u007F-\uFFFF]*:?/y, U = k({
|
|
82
82
|
name: "NamedToken",
|
|
83
83
|
pattern: { exec: (e, t) => {
|
|
84
|
-
|
|
85
|
-
const s =
|
|
84
|
+
T.lastIndex = t;
|
|
85
|
+
const s = T.exec(e);
|
|
86
86
|
if (!s) return null;
|
|
87
87
|
let r = s[0];
|
|
88
88
|
const i = r.indexOf(".:");
|
|
@@ -90,24 +90,24 @@ var y = class e {
|
|
|
90
90
|
} },
|
|
91
91
|
line_breaks: !1,
|
|
92
92
|
start_chars_hint: B
|
|
93
|
-
}),
|
|
93
|
+
}), S = k({
|
|
94
94
|
name: "Cell",
|
|
95
95
|
pattern: { exec: W(t, s) },
|
|
96
96
|
line_breaks: !1,
|
|
97
97
|
start_chars_hint: [36, ...F],
|
|
98
|
-
longer_alt:
|
|
99
|
-
}),
|
|
98
|
+
longer_alt: U
|
|
99
|
+
}), d = k({
|
|
100
100
|
name: "Column",
|
|
101
101
|
pattern: { exec: z(t) },
|
|
102
102
|
line_breaks: !1,
|
|
103
103
|
start_chars_hint: [36, ...F],
|
|
104
|
-
longer_alt:
|
|
105
|
-
}),
|
|
104
|
+
longer_alt: U
|
|
105
|
+
}), x = k({
|
|
106
106
|
name: "AbsRow",
|
|
107
107
|
pattern: /[$][0-9]+/
|
|
108
|
-
}),
|
|
108
|
+
}), R = "." === a ? "\\." : a, I = k({
|
|
109
109
|
name: "NumberToken",
|
|
110
|
-
pattern: new RegExp(`[0-9]+${
|
|
110
|
+
pattern: new RegExp(`[0-9]+${R}(?!:)[0-9]*([eE][+-]?[0-9]+|\\*\\*[+-]?[0-9]+)?|${R}[0-9]+([eE][+-]?[0-9]+|\\*\\*[+-]?[0-9]+)?|[0-9]+[eE][+-]?[0-9]+`)
|
|
111
111
|
}), M = k({
|
|
112
112
|
name: "ScientificDigit",
|
|
113
113
|
pattern: /[0-9]+\*\*[+-]?[0-9]+/
|
|
@@ -134,10 +134,10 @@ var y = class e {
|
|
|
134
134
|
}), j = k({
|
|
135
135
|
name: "RangeOp",
|
|
136
136
|
pattern: /:/
|
|
137
|
-
}),
|
|
137
|
+
}), Q = k({
|
|
138
138
|
name: "RangeTrimFullOp",
|
|
139
139
|
pattern: /\.:\./
|
|
140
|
-
}),
|
|
140
|
+
}), Z = k({
|
|
141
141
|
name: "RangeTrimLeadingOp",
|
|
142
142
|
pattern: /\.:/
|
|
143
143
|
}), q = k({
|
|
@@ -185,7 +185,7 @@ var y = class e {
|
|
|
185
185
|
}), le = k({
|
|
186
186
|
name: "ArrayAnchorOp",
|
|
187
187
|
pattern: /#/,
|
|
188
|
-
longer_alt: [
|
|
188
|
+
longer_alt: [_, L]
|
|
189
189
|
}), ue = k({
|
|
190
190
|
name: "GtOp",
|
|
191
191
|
pattern: />/
|
|
@@ -198,31 +198,31 @@ var y = class e {
|
|
|
198
198
|
}), ge = [
|
|
199
199
|
h,
|
|
200
200
|
l,
|
|
201
|
-
L,
|
|
202
|
-
E,
|
|
203
201
|
f,
|
|
202
|
+
A,
|
|
203
|
+
C,
|
|
204
204
|
u,
|
|
205
205
|
c,
|
|
206
206
|
p,
|
|
207
|
-
O,
|
|
208
207
|
_,
|
|
208
|
+
L,
|
|
209
209
|
y,
|
|
210
210
|
...n !== i ? [$] : [],
|
|
211
211
|
Y,
|
|
212
|
-
Z,
|
|
213
212
|
Q,
|
|
213
|
+
Z,
|
|
214
214
|
q,
|
|
215
215
|
j,
|
|
216
|
-
T,
|
|
217
|
-
w,
|
|
218
|
-
N,
|
|
219
216
|
S,
|
|
217
|
+
w,
|
|
218
|
+
d,
|
|
219
|
+
x,
|
|
220
220
|
I,
|
|
221
221
|
M,
|
|
222
222
|
P,
|
|
223
223
|
le,
|
|
224
224
|
ne,
|
|
225
|
-
|
|
225
|
+
U,
|
|
226
226
|
K,
|
|
227
227
|
H,
|
|
228
228
|
J,
|
|
@@ -355,28 +355,28 @@ function V(e) {
|
|
|
355
355
|
return new RegExp(e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"));
|
|
356
356
|
}
|
|
357
357
|
var j = class {
|
|
358
|
-
constructor(e =
|
|
358
|
+
constructor(e = m) {
|
|
359
359
|
const t = function(e) {
|
|
360
|
-
const t = [...
|
|
360
|
+
const t = [...s];
|
|
361
361
|
if (e) for (const s of Object.values(e)) {
|
|
362
362
|
const e = s?.trim();
|
|
363
363
|
e && !t.some((t) => t.toLowerCase() === e.toLowerCase()) && t.push(e);
|
|
364
364
|
}
|
|
365
365
|
return t.sort((e, t) => t.length - e.length), t.map((e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).join("|");
|
|
366
|
-
}(e.specifiers),
|
|
366
|
+
}(e.specifiers), r = k({
|
|
367
367
|
name: "WhiteSpace",
|
|
368
368
|
pattern: /\s+/,
|
|
369
369
|
group: v.SKIPPED
|
|
370
|
-
}),
|
|
370
|
+
}), i = k({
|
|
371
371
|
name: "TableSpecifier",
|
|
372
372
|
pattern: new RegExp(`\\[#(?:${t})\\]`, "i")
|
|
373
|
-
}),
|
|
374
|
-
s,
|
|
373
|
+
}), n = [
|
|
375
374
|
r,
|
|
375
|
+
i,
|
|
376
376
|
k({
|
|
377
377
|
name: "BracketedColumn",
|
|
378
378
|
pattern: /\[(?:'['#[\]]|'(?!['#[\]])|[^'[\]])*\]/,
|
|
379
|
-
longer_alt: [
|
|
379
|
+
longer_alt: [i]
|
|
380
380
|
}),
|
|
381
381
|
k({
|
|
382
382
|
name: "BareSpecifier",
|
|
@@ -391,11 +391,11 @@ var j = class {
|
|
|
391
391
|
pattern: new RegExp(e.separators.separatorFunction.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"))
|
|
392
392
|
})
|
|
393
393
|
];
|
|
394
|
-
this._lexer = new v(
|
|
395
|
-
const
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
}), this._vocabulary =
|
|
394
|
+
this._lexer = new v(n, { ensureOptimizations: !0 });
|
|
395
|
+
const o = {};
|
|
396
|
+
n.forEach((e) => {
|
|
397
|
+
o[e.name] = e;
|
|
398
|
+
}), this._vocabulary = o;
|
|
399
399
|
}
|
|
400
400
|
getVocabulary() {
|
|
401
401
|
return this._vocabulary;
|
|
@@ -403,8 +403,8 @@ var j = class {
|
|
|
403
403
|
tokenize(e) {
|
|
404
404
|
return this._lexer.tokenize(e);
|
|
405
405
|
}
|
|
406
|
-
},
|
|
407
|
-
constructor(e =
|
|
406
|
+
}, Q = class extends b {
|
|
407
|
+
constructor(e = m) {
|
|
408
408
|
const t = new j(e), s = t.getVocabulary();
|
|
409
409
|
super(s, {
|
|
410
410
|
nodeLocationTracking: "none",
|
|
@@ -428,13 +428,13 @@ var j = class {
|
|
|
428
428
|
}), h.RULE("ruleItem", () => h.OR([{ ALT: () => h.SUBRULE(h.ruleSpecifier) }, { ALT: () => h.SUBRULE(h.ruleColumnOrRange) }])), h.RULE("ruleSpecifier", () => h.OR([{ ALT: () => {
|
|
429
429
|
const t = h.CONSUME(r);
|
|
430
430
|
return h.ACTION(() => {
|
|
431
|
-
const s =
|
|
431
|
+
const s = d(t.image, e);
|
|
432
432
|
return s.image = t.image, s;
|
|
433
433
|
});
|
|
434
434
|
} }, { ALT: () => {
|
|
435
435
|
const t = h.CONSUME(n);
|
|
436
436
|
return h.ACTION(() => {
|
|
437
|
-
const s =
|
|
437
|
+
const s = d(t.image, e);
|
|
438
438
|
return s.image = t.image, s;
|
|
439
439
|
});
|
|
440
440
|
} }])), h.RULE("ruleColumnOrRange", () => {
|
|
@@ -443,11 +443,11 @@ var j = class {
|
|
|
443
443
|
return h.OPTION(() => {
|
|
444
444
|
t = h.CONSUME(o), s = h.CONSUME2(i);
|
|
445
445
|
}), h.ACTION(() => {
|
|
446
|
-
const r =
|
|
446
|
+
const r = O(e.image);
|
|
447
447
|
if (r.image = e.image, !s) return r;
|
|
448
|
-
const i =
|
|
448
|
+
const i = O(s.image);
|
|
449
449
|
i.image = s.image;
|
|
450
|
-
const n =
|
|
450
|
+
const n = U(":", r, i, !0);
|
|
451
451
|
return n.image = t?.image ?? ":", n;
|
|
452
452
|
});
|
|
453
453
|
}), h.performSelfAnalysis();
|
|
@@ -474,13 +474,13 @@ var j = class {
|
|
|
474
474
|
return e.image = "@", [e];
|
|
475
475
|
}
|
|
476
476
|
}
|
|
477
|
-
const s =
|
|
477
|
+
const s = O(e);
|
|
478
478
|
s.image = e;
|
|
479
479
|
const r = _("@", s, !0);
|
|
480
480
|
return r.image = "@", [r];
|
|
481
481
|
}
|
|
482
482
|
if ("[" !== s && "#" !== s) {
|
|
483
|
-
const t =
|
|
483
|
+
const t = O(e);
|
|
484
484
|
return t.image = e, [t];
|
|
485
485
|
}
|
|
486
486
|
return this._parseInner(t);
|
|
@@ -488,7 +488,7 @@ var j = class {
|
|
|
488
488
|
parse(e, t, s) {
|
|
489
489
|
this.reset();
|
|
490
490
|
const r = () => ({
|
|
491
|
-
root:
|
|
491
|
+
root: T("", []),
|
|
492
492
|
errors: []
|
|
493
493
|
});
|
|
494
494
|
if (!s) return r();
|
|
@@ -501,11 +501,11 @@ var j = class {
|
|
|
501
501
|
if (-1 === n) return r();
|
|
502
502
|
const o = s.slice(0, n), a = s.slice(n + 1, -1), h = this._parseContent(a);
|
|
503
503
|
return {
|
|
504
|
-
root:
|
|
504
|
+
root: T(o, h),
|
|
505
505
|
errors: this.errors.length > 0 ? [...this.errors] : []
|
|
506
506
|
};
|
|
507
507
|
}
|
|
508
|
-
},
|
|
508
|
+
}, Z = /* @__PURE__ */ new Set([
|
|
509
509
|
":",
|
|
510
510
|
".:.",
|
|
511
511
|
".:",
|
|
@@ -516,7 +516,7 @@ var j = class {
|
|
|
516
516
|
":."
|
|
517
517
|
]), K = (e) => {
|
|
518
518
|
if (!e) return null;
|
|
519
|
-
if (e.type ===
|
|
519
|
+
if (e.type === R.Cell) {
|
|
520
520
|
const t = e.value;
|
|
521
521
|
return t.rowIndex === Number.MIN_SAFE_INTEGER ? "col" : t.colIndex === Number.MIN_SAFE_INTEGER ? "row" : null;
|
|
522
522
|
}
|
|
@@ -546,75 +546,75 @@ var te = {
|
|
|
546
546
|
return e.expected === P && t ? `Unexpected '${t}'` : w.buildMismatchTokenMessage(e);
|
|
547
547
|
}
|
|
548
548
|
}, se = class extends b {
|
|
549
|
-
constructor(
|
|
550
|
-
const
|
|
551
|
-
super(
|
|
549
|
+
constructor(s) {
|
|
550
|
+
const m = s?.lexer ?? y.shared(s?.lexerOptions), O = m.getVocabulary();
|
|
551
|
+
super(O, {
|
|
552
552
|
skipValidations: !0,
|
|
553
553
|
recoveryEnabled: !0,
|
|
554
|
-
...
|
|
554
|
+
...s,
|
|
555
555
|
nodeLocationTracking: "full",
|
|
556
556
|
errorMessageProvider: te,
|
|
557
557
|
maxLookahead: 1
|
|
558
558
|
}), this._ruleInfixOp = this.RULE("ruleInfixOp", () => {
|
|
559
|
-
const { PlusOp: e, MinOp: t, MulOp:
|
|
560
|
-
return
|
|
561
|
-
const
|
|
559
|
+
const { PlusOp: e, MinOp: t, MulOp: s, DivOp: r, ExOp: i, ConcatOp: n, GtOp: a, EqOp: h, LtOp: l, NeqOp: u, GteOp: c, LteOp: p } = this._vocab, g = [];
|
|
560
|
+
return g.push({ node: this.SUBRULE(this._rulePostfixOp) }), this.MANY(() => {
|
|
561
|
+
const o = this.OR(this._c1 || (this._c1 = [
|
|
562
562
|
{ ALT: () => this.CONSUME(e).image },
|
|
563
563
|
{ ALT: () => this.CONSUME(t).image },
|
|
564
|
+
{ ALT: () => this.CONSUME(s).image },
|
|
564
565
|
{ ALT: () => this.CONSUME(r).image },
|
|
565
566
|
{ ALT: () => this.CONSUME(i).image },
|
|
566
567
|
{ ALT: () => this.CONSUME(n).image },
|
|
567
|
-
{ ALT: () => this.CONSUME(o).image },
|
|
568
568
|
{ ALT: () => this.CONSUME(a).image },
|
|
569
569
|
{ ALT: () => this.CONSUME(h).image },
|
|
570
|
+
{ ALT: () => this.CONSUME(l).image },
|
|
570
571
|
{ ALT: () => this.CONSUME(u).image },
|
|
571
572
|
{ ALT: () => this.CONSUME(c).image },
|
|
572
|
-
{ ALT: () => this.CONSUME(p).image }
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
value: s,
|
|
573
|
+
{ ALT: () => this.CONSUME(p).image }
|
|
574
|
+
])), m = {
|
|
575
|
+
value: o,
|
|
576
576
|
index: this.getLexerPosition(),
|
|
577
|
-
isRange:
|
|
577
|
+
isRange: f.includes(o)
|
|
578
578
|
}, O = this.SUBRULE2(this._rulePostfixOp);
|
|
579
|
-
|
|
580
|
-
op:
|
|
579
|
+
g.push({
|
|
580
|
+
op: m,
|
|
581
581
|
node: O
|
|
582
582
|
});
|
|
583
583
|
}), this.ACTION(() => {
|
|
584
|
-
let e =
|
|
585
|
-
const t =
|
|
586
|
-
for (let
|
|
587
|
-
const t = s
|
|
588
|
-
let
|
|
589
|
-
for (;
|
|
590
|
-
const s =
|
|
584
|
+
let e = g.length - 1;
|
|
585
|
+
const t = o.length;
|
|
586
|
+
for (let s = 0; e > 0 && s < t; s++) {
|
|
587
|
+
const t = o[s];
|
|
588
|
+
let r = 1;
|
|
589
|
+
for (; r < g.length;) {
|
|
590
|
+
const s = g[r].op;
|
|
591
591
|
if (t.includes(s.value)) {
|
|
592
|
-
const t =
|
|
593
|
-
let n =
|
|
594
|
-
n = this._tag(n, s.index),
|
|
595
|
-
} else
|
|
592
|
+
const t = g[r - 1].node, i = g[r].node;
|
|
593
|
+
let n = U(s.value, t, i, s.isRange);
|
|
594
|
+
n = this._tag(n, s.index), g[r - 1].node = n, g.splice(r, 1), e--;
|
|
595
|
+
} else r++;
|
|
596
596
|
}
|
|
597
597
|
}
|
|
598
|
-
}),
|
|
598
|
+
}), g[0].node;
|
|
599
599
|
}), this._rulePlusMinusOp = this.RULE("rulePlusMinusOp", () => {
|
|
600
600
|
const { PlusOp: e, MinOp: t } = this._vocab;
|
|
601
601
|
return this.OR([{ ALT: () => this.CONSUME(e) }, { ALT: () => this.CONSUME(t) }]);
|
|
602
602
|
}), this._rulePostfixOp = this.RULE("rulePostfixOp", () => {
|
|
603
|
-
const { PercentOp:
|
|
604
|
-
let
|
|
605
|
-
const
|
|
603
|
+
const { PercentOp: t } = this._vocab;
|
|
604
|
+
let s = this.SUBRULE(this._rulePrefixOp);
|
|
605
|
+
const r = [];
|
|
606
606
|
return this.MANY(() => {
|
|
607
|
-
const
|
|
607
|
+
const e = this.CONSUME(t).image;
|
|
608
608
|
this.ACTION(() => {
|
|
609
|
-
|
|
609
|
+
r.push([e, this.getLexerPosition()]);
|
|
610
610
|
});
|
|
611
611
|
}), this.ACTION(() => {
|
|
612
|
-
const
|
|
613
|
-
if (0 !==
|
|
614
|
-
const
|
|
615
|
-
|
|
612
|
+
const t = r.length;
|
|
613
|
+
if (0 !== t) for (let i = 0; i < t; i++) {
|
|
614
|
+
const t = r[i], n = t[0], o = t[1], a = f.includes(n);
|
|
615
|
+
s = e(n, s, a), s = this._tag(s, o);
|
|
616
616
|
}
|
|
617
|
-
}),
|
|
617
|
+
}), s;
|
|
618
618
|
}), this._rulePrefixOp = this.RULE("rulePrefixOp", () => {
|
|
619
619
|
const { PlusOp: e, MinOp: t, ImplicitIntersectOp: s } = this._vocab, r = [];
|
|
620
620
|
this.MANY(() => {
|
|
@@ -631,42 +631,48 @@ var te = {
|
|
|
631
631
|
return this.ACTION(() => {
|
|
632
632
|
const e = r.length;
|
|
633
633
|
if (0 !== e) for (let t = e - 1; t >= 0; t--) {
|
|
634
|
-
const e = r[t], s = e[0], n = e[1], o =
|
|
634
|
+
const e = r[t], s = e[0], n = e[1], o = f.includes(s);
|
|
635
635
|
i = _(s, i, o), i = this._tag(i, n);
|
|
636
636
|
}
|
|
637
637
|
}), i;
|
|
638
638
|
}), this._ruleRangeOp = this.RULE("ruleRangeOp", () => {
|
|
639
|
-
const { RangeOp:
|
|
640
|
-
return
|
|
641
|
-
this.CONSUME(
|
|
639
|
+
const { RangeOp: t, RangeTrimFullOp: s, RangeTrimLeadingOp: r, RangeTrimTrailingOp: i, ArrayAnchorOp: n } = this._vocab, o = [];
|
|
640
|
+
return o.push({ node: this.SUBRULE(this._ruleCallOp) }), this.MANY2(() => {
|
|
641
|
+
this.CONSUME(n), o.push({ anchor: this.getLexerPosition() });
|
|
642
642
|
}), this.MANY(() => {
|
|
643
|
-
const
|
|
643
|
+
const e = {
|
|
644
644
|
value: this.OR(this._c2 || (this._c2 = [
|
|
645
|
-
{ ALT: () => this.CONSUME(e).image },
|
|
646
645
|
{ ALT: () => this.CONSUME(t).image },
|
|
647
646
|
{ ALT: () => this.CONSUME(s).image },
|
|
648
|
-
{ ALT: () => this.CONSUME(r).image }
|
|
647
|
+
{ ALT: () => this.CONSUME(r).image },
|
|
648
|
+
{ ALT: () => this.CONSUME(i).image }
|
|
649
649
|
])),
|
|
650
650
|
index: this.getLexerPosition()
|
|
651
651
|
}, a = this.SUBRULE2(this._ruleCallOp);
|
|
652
|
-
|
|
653
|
-
op:
|
|
652
|
+
o.push({
|
|
653
|
+
op: e,
|
|
654
654
|
node: a
|
|
655
655
|
}), this.MANY3(() => {
|
|
656
|
-
this.CONSUME2(
|
|
656
|
+
this.CONSUME2(n), o.push({ anchor: this.getLexerPosition() });
|
|
657
657
|
});
|
|
658
658
|
}), this.ACTION(() => {
|
|
659
|
-
for (let e = 1; e <
|
|
660
|
-
const t =
|
|
661
|
-
if (
|
|
662
|
-
|
|
659
|
+
for (let e = 1; e + 1 < o.length; e++) {
|
|
660
|
+
const t = o[e], s = o[e + 1];
|
|
661
|
+
if (":" !== t.op?.value || ":" !== s.op?.value) continue;
|
|
662
|
+
const r = K(t.node);
|
|
663
|
+
r && K(s.node) === r && K(o[e - 1].node) !== r && (t.node = this._tag(U(":", t.node, s.node, !0), s.op.index), o.splice(e + 1, 1));
|
|
664
|
+
}
|
|
665
|
+
for (let t = 1; t < o.length; t++) {
|
|
666
|
+
const s = o[t];
|
|
667
|
+
if (void 0 !== s.anchor) {
|
|
668
|
+
o[0].node = this._tag(e("#", o[0].node, !0), s.anchor);
|
|
663
669
|
continue;
|
|
664
670
|
}
|
|
665
|
-
const
|
|
666
|
-
let
|
|
667
|
-
|
|
671
|
+
const r = s.op;
|
|
672
|
+
let i = U(r.value, o[0].node, s.node, !0);
|
|
673
|
+
i = this._tag(i, r.index), o[0].node = i;
|
|
668
674
|
}
|
|
669
|
-
}),
|
|
675
|
+
}), o[0].node;
|
|
670
676
|
}), this._ruleCallOp = this.RULE("ruleCallOp", () => {
|
|
671
677
|
const { OpenParen: e, CloseParen: t } = this._vocab;
|
|
672
678
|
let s = this.SUBRULE(this._ruleFormula);
|
|
@@ -677,7 +683,7 @@ var te = {
|
|
|
677
683
|
},
|
|
678
684
|
DEF: () => {
|
|
679
685
|
this.CONSUME(e);
|
|
680
|
-
const r = this.getLexerPosition(), i = this.SUBRULE(this._ruleFunctionArguments), n = s, o = this.ACTION(() => this._tag(
|
|
686
|
+
const r = this.getLexerPosition(), i = this.SUBRULE(this._ruleFunctionArguments), n = s, o = this.ACTION(() => this._tag(l(n, i), r)), a = this.OPTION(() => this.CONSUME(t));
|
|
681
687
|
this.ACTION(() => {
|
|
682
688
|
a || this._reportError(o, "Missing closing parenthesis ')'", r), this._tagClose(o, this.getLexerPosition()), s = o;
|
|
683
689
|
});
|
|
@@ -699,7 +705,7 @@ var te = {
|
|
|
699
705
|
for (; e.length > 1;) {
|
|
700
706
|
let t = e.length - 1;
|
|
701
707
|
for (let s = 0; s < t; s++) {
|
|
702
|
-
const r = e[s], i = e[s + 1], n =
|
|
708
|
+
const r = e[s], i = e[s + 1], n = U(" ", r, i, !0), o = this._tokenMap.get(r);
|
|
703
709
|
o && delete o.tokenIndexClose;
|
|
704
710
|
const a = this._tokenMap.get(i), h = a?.tokenIndex;
|
|
705
711
|
if (void 0 !== h) {
|
|
@@ -729,81 +735,81 @@ var te = {
|
|
|
729
735
|
}), t;
|
|
730
736
|
}), this._ruleParen = this.RULE("ruleParen", () => {
|
|
731
737
|
const { OpenParen: e, CloseParen: t } = this._vocab;
|
|
732
|
-
return this._processParen(
|
|
738
|
+
return this._processParen(R.Paren, e, t);
|
|
733
739
|
}), this._ruleLiteralArray = this.RULE("ruleLiteralArray", () => {
|
|
734
|
-
const { OpenCurlyParen: e, CloseCurlyParen:
|
|
735
|
-
let n =
|
|
740
|
+
const { OpenCurlyParen: e, CloseCurlyParen: t, ColSeparator: s, RowSeparator: r } = this._vocab;
|
|
741
|
+
let n = c();
|
|
736
742
|
this.CONSUME(e);
|
|
737
743
|
const o = this.getLexerPosition();
|
|
738
|
-
let a = this.ACTION(() => this._tag(
|
|
744
|
+
let a = this.ACTION(() => this._tag(i(n), o));
|
|
739
745
|
const h = this.SUBRULE(this._ruleLiteralForArray);
|
|
740
746
|
this.ACTION(() => {
|
|
741
747
|
n.value.push(h);
|
|
742
748
|
}), this.MANY(() => {
|
|
743
749
|
let e = !1;
|
|
744
750
|
this.OR([{ ALT: () => {
|
|
745
|
-
this.CONSUME(
|
|
746
|
-
} }, { ALT: () => this.CONSUME(
|
|
747
|
-
const
|
|
751
|
+
this.CONSUME(s), e = !0;
|
|
752
|
+
} }, { ALT: () => this.CONSUME(r) }]);
|
|
753
|
+
const t = this.SUBRULE2(this._ruleLiteralForArray);
|
|
748
754
|
this.ACTION(() => {
|
|
749
|
-
e || (n =
|
|
755
|
+
e || (n = c(), a.value.push(n)), n.value.push(t);
|
|
750
756
|
});
|
|
751
757
|
});
|
|
752
|
-
const l = this.OPTION(() => this.CONSUME(
|
|
758
|
+
const l = this.OPTION(() => this.CONSUME(t));
|
|
753
759
|
return a = this.ACTION(() => (l || this._reportError(a, "Missing closing parenthesis '}'", o), this._tagClose(a, this.getLexerPosition()))), a;
|
|
754
760
|
}), this._ruleLiteralForArray = this.RULE("ruleLiteralForArray", () => {
|
|
755
|
-
const { StringToken:
|
|
761
|
+
const { StringToken: e, BooleanToken: s, LiteralError: r, RefError: i } = this._vocab;
|
|
756
762
|
return this.OR([
|
|
757
763
|
{ ALT: () => {
|
|
758
|
-
const e = this.OPTION(() => this.SUBRULE(this._rulePlusMinusOp)), t = this.SUBRULE(this._ruleNumber), s = this.ACTION(() => this._tag(
|
|
759
|
-
return this.ACTION(() => e ?
|
|
764
|
+
const e = this.OPTION(() => this.SUBRULE(this._rulePlusMinusOp)), t = this.SUBRULE(this._ruleNumber), s = this.ACTION(() => this._tag(a(t.image, this._locale), this.getLexerPosition()));
|
|
765
|
+
return this.ACTION(() => e ? x(e.image, s) : s);
|
|
760
766
|
} },
|
|
761
767
|
{ ALT: () => {
|
|
762
|
-
const
|
|
763
|
-
return this.ACTION(() => this._tag(
|
|
768
|
+
const t = this.CONSUME(e);
|
|
769
|
+
return this.ACTION(() => this._tag(A(t.image), this.getLexerPosition()));
|
|
764
770
|
} },
|
|
765
771
|
{ ALT: () => {
|
|
766
|
-
const
|
|
767
|
-
return this.ACTION(() => this._tag(e
|
|
772
|
+
const e = this.CONSUME(s);
|
|
773
|
+
return this.ACTION(() => this._tag(t(e.image, this._locale), this.getLexerPosition()));
|
|
768
774
|
} },
|
|
769
775
|
{ ALT: () => {
|
|
770
776
|
const e = this.CONSUME(r);
|
|
771
|
-
return this.ACTION(() => this._tag(
|
|
777
|
+
return this.ACTION(() => this._tag(p(e.image, this._locale), this.getLexerPosition()));
|
|
772
778
|
} },
|
|
773
779
|
{ ALT: () => {
|
|
774
|
-
const e = this.CONSUME(
|
|
775
|
-
return this.ACTION(() => this._tag(
|
|
780
|
+
const e = this.CONSUME(i);
|
|
781
|
+
return this.ACTION(() => this._tag(C(e.image, this._locale), this.getLexerPosition()));
|
|
776
782
|
} }
|
|
777
783
|
]);
|
|
778
784
|
}), this._ruleLiteral = this.RULE("ruleLiteral", () => {
|
|
779
|
-
const { StringToken:
|
|
785
|
+
const { StringToken: e, BooleanToken: s, LiteralError: r, RefError: i } = this._vocab;
|
|
780
786
|
return this.OR([
|
|
781
787
|
{ ALT: () => {
|
|
782
788
|
const e = this.SUBRULE(this._ruleNumber);
|
|
783
|
-
return this.ACTION(() => this._tag(
|
|
789
|
+
return this.ACTION(() => this._tag(a(e.image, this._locale), this.getLexerPosition()));
|
|
784
790
|
} },
|
|
785
791
|
{ ALT: () => {
|
|
786
|
-
const
|
|
787
|
-
return this.ACTION(() => this._tag(
|
|
792
|
+
const t = this.CONSUME(e);
|
|
793
|
+
return this.ACTION(() => this._tag(A(t.image), this.getLexerPosition()));
|
|
788
794
|
} },
|
|
789
795
|
{ ALT: () => {
|
|
790
|
-
const
|
|
791
|
-
return this.ACTION(() => this._tag(e
|
|
796
|
+
const e = this.CONSUME(s);
|
|
797
|
+
return this.ACTION(() => this._tag(t(e.image, this._locale), this.getLexerPosition()));
|
|
792
798
|
} },
|
|
793
799
|
{ ALT: () => {
|
|
794
800
|
const e = this.CONSUME(r);
|
|
795
|
-
return this.ACTION(() => this._tag(
|
|
801
|
+
return this.ACTION(() => this._tag(p(e.image, this._locale), this.getLexerPosition()));
|
|
796
802
|
} },
|
|
797
803
|
{ ALT: () => {
|
|
798
804
|
const e = this.CONSUME(i);
|
|
799
|
-
return this.ACTION(() => this._tag(
|
|
805
|
+
return this.ACTION(() => this._tag(C(e.image, this._locale), this.getLexerPosition()));
|
|
800
806
|
} }
|
|
801
807
|
]);
|
|
802
808
|
}), this._ruleFunction = this.RULE("ruleFunction", () => {
|
|
803
809
|
const { FunctionToken: e, OpenParen: t, CloseParen: s } = this._vocab, r = this.CONSUME(e).image, i = this.getLexerPosition();
|
|
804
810
|
this.CONSUME(t);
|
|
805
|
-
const
|
|
806
|
-
let a = this.ACTION(() => this._tag(
|
|
811
|
+
const o = this.SUBRULE(this._ruleFunctionArguments);
|
|
812
|
+
let a = this.ACTION(() => this._tag(n(r, o), i));
|
|
807
813
|
const h = this.OPTION(() => this.CONSUME(s));
|
|
808
814
|
return a = this.ACTION(() => (h || this._reportError(a, "Missing closing parenthesis ')'", i), this._tagClose(a, this.getLexerPosition()))), a;
|
|
809
815
|
}), this._ruleFunctionArguments = this.RULE("ruleFunctionArguments", () => {
|
|
@@ -837,8 +843,8 @@ var te = {
|
|
|
837
843
|
return this._tag(e.root, s);
|
|
838
844
|
});
|
|
839
845
|
}), this._ruleReference = this.RULE("ruleReference", () => {
|
|
840
|
-
const { Sheet: e, SheetQuoted: t, DivOp: s, MulOp: r, PlusOp: i, MinOp: n, ArgSeparator: o, Cell: a, NamedToken: l, SingleQuotedString:
|
|
841
|
-
let
|
|
846
|
+
const { Sheet: e, SheetQuoted: t, DivOp: s, MulOp: r, PlusOp: i, MinOp: n, ArgSeparator: o, Cell: a, NamedToken: l, SingleQuotedString: c, Column: p, AbsRow: m, DigitToken: O, RefError: _ } = this._vocab;
|
|
847
|
+
let E, L;
|
|
842
848
|
this.OPTION2({
|
|
843
849
|
GATE: () => {
|
|
844
850
|
for (let a = 1; a < 6; a++) {
|
|
@@ -849,50 +855,50 @@ var te = {
|
|
|
849
855
|
return !1;
|
|
850
856
|
},
|
|
851
857
|
DEF: () => {
|
|
852
|
-
|
|
858
|
+
L = this.getLexerPosition() + 1, E = this.SUBRULE(this._rulePrefixSheetName);
|
|
853
859
|
}
|
|
854
860
|
});
|
|
855
|
-
let
|
|
861
|
+
let A = this.OR([
|
|
856
862
|
{ ALT: () => {
|
|
857
863
|
const e = this.CONSUME(a), t = this.getLexerPosition();
|
|
858
|
-
return this.ACTION(() => this._tag(
|
|
864
|
+
return this.ACTION(() => this._tag(h(e.image, this.rowIndex, this.colIndex), t));
|
|
859
865
|
} },
|
|
860
866
|
{ ALT: () => {
|
|
861
|
-
const e = this.OR2([{ ALT: () => this.CONSUME(l) }, { ALT: () => this.CONSUME(
|
|
862
|
-
return this.ACTION(() => this._tag(
|
|
867
|
+
const e = this.OR2([{ ALT: () => this.CONSUME(l) }, { ALT: () => this.CONSUME(c) }]);
|
|
868
|
+
return this.ACTION(() => this._tag(g(e.image), this.getLexerPosition()));
|
|
863
869
|
} },
|
|
864
870
|
{ ALT: () => this.SUBRULE(this._ruleBracketedString) },
|
|
865
871
|
{ ALT: () => this.SUBRULE(this._ruleFunction) },
|
|
866
872
|
{ ALT: () => {
|
|
867
|
-
const e = this.CONSUME(
|
|
868
|
-
return this.ACTION(() => this._tag(
|
|
873
|
+
const e = this.CONSUME(p);
|
|
874
|
+
return this.ACTION(() => this._tag(u(e.image, this.colIndex), this.getLexerPosition()));
|
|
869
875
|
} },
|
|
870
876
|
{ ALT: () => {
|
|
871
877
|
const e = this.CONSUME(m);
|
|
872
|
-
return this.ACTION(() => this._tag(
|
|
878
|
+
return this.ACTION(() => this._tag(S(e.image, this.rowIndex), this.getLexerPosition()));
|
|
873
879
|
} },
|
|
874
880
|
{ ALT: () => {
|
|
875
|
-
const e = this.CONSUME(
|
|
876
|
-
return this.ACTION(() => this._tag(
|
|
881
|
+
const e = this.CONSUME(O);
|
|
882
|
+
return this.ACTION(() => this._tag(S(e.image, this.rowIndex), this.getLexerPosition()));
|
|
877
883
|
} },
|
|
878
884
|
{ ALT: () => {
|
|
879
|
-
const e = this.CONSUME(
|
|
880
|
-
return this.ACTION(() => this._tag(
|
|
885
|
+
const e = this.CONSUME(_);
|
|
886
|
+
return this.ACTION(() => this._tag(C(e.image, this._locale), this.getLexerPosition()));
|
|
881
887
|
} }
|
|
882
888
|
]);
|
|
883
889
|
return this.ACTION(() => {
|
|
884
|
-
if (
|
|
885
|
-
if ("" ===
|
|
886
|
-
let e =
|
|
887
|
-
if (
|
|
888
|
-
e.value.scope =
|
|
890
|
+
if (E && A) {
|
|
891
|
+
if ("" === E.name) return void this._reportError(A, `'${E.image}' is not a valid sheet reference — a '!' needs a sheet name before it`);
|
|
892
|
+
let e = A;
|
|
893
|
+
if (A.type === R.Postfix && A.inputs?.[0] && (e = A.inputs[0]), e.type === R.Cell || e.type === R.Named || e.type === R.Row || e.type === R.TableColumn || e.type === R.Error) {
|
|
894
|
+
e.value.scope = E.name, e.value.scopeImage = E.image;
|
|
889
895
|
const t = this._tokenMap.get(e);
|
|
890
|
-
t && void 0 !==
|
|
896
|
+
t && void 0 !== L && (t.tokenIndex = L);
|
|
891
897
|
}
|
|
892
898
|
}
|
|
893
|
-
}),
|
|
899
|
+
}), A;
|
|
894
900
|
}), this._rulePrefixSheetName = this.RULE("rulePrefixSheetName", () => {
|
|
895
|
-
const { SheetQuoted: e, BracketedString: t, NamedToken: s,
|
|
901
|
+
const { SheetQuoted: e, BracketedString: t, NamedToken: s, Column: r, RangeOp: i, Sheet: n } = this._vocab;
|
|
896
902
|
return this.OR([{ ALT: () => {
|
|
897
903
|
const t = this.CONSUME(e).image;
|
|
898
904
|
return {
|
|
@@ -904,15 +910,18 @@ var te = {
|
|
|
904
910
|
this.OPTION(() => {
|
|
905
911
|
e += this.CONSUME(t).image;
|
|
906
912
|
}), this.OPTION2({
|
|
907
|
-
GATE: () => this.LA(2).tokenType ===
|
|
913
|
+
GATE: () => this.LA(2).tokenType === i,
|
|
908
914
|
DEF: () => {
|
|
909
|
-
e += this.
|
|
915
|
+
e += this.OR2([{ ALT: () => this.CONSUME(s).image }, {
|
|
916
|
+
GATE: () => 36 !== this.LA(1).image.charCodeAt(0),
|
|
917
|
+
ALT: () => this.CONSUME(r).image
|
|
918
|
+
}]), this.CONSUME(i), e += ":";
|
|
910
919
|
}
|
|
911
920
|
});
|
|
912
|
-
const
|
|
921
|
+
const o = this.CONSUME(n).image;
|
|
913
922
|
return {
|
|
914
|
-
name: e +
|
|
915
|
-
image: e +
|
|
923
|
+
name: e + o.slice(0, -1),
|
|
924
|
+
image: e + o
|
|
916
925
|
};
|
|
917
926
|
} }]);
|
|
918
927
|
}), this._ruleNumber = this.RULE("ruleNumber", () => {
|
|
@@ -927,12 +936,12 @@ var te = {
|
|
|
927
936
|
return this.MANY(() => {
|
|
928
937
|
this.CONSUME(e), s.push(this.SUBRULE2(this._ruleIntersectOp));
|
|
929
938
|
}), this.ACTION(() => 0 === s.length ? t : {
|
|
930
|
-
type:
|
|
939
|
+
type: R.List,
|
|
931
940
|
value: ",",
|
|
932
941
|
inputs: [t, ...s],
|
|
933
942
|
isReference: !0
|
|
934
943
|
});
|
|
935
|
-
}), this._lexer =
|
|
944
|
+
}), this._lexer = m, this._locale = m.getLocale(), this._vocab = O, this._srParser = s?.srParser ?? new Q(this._locale), this.performSelfAnalysis();
|
|
936
945
|
}
|
|
937
946
|
getLexer() {
|
|
938
947
|
return this._lexer;
|
|
@@ -942,26 +951,26 @@ var te = {
|
|
|
942
951
|
let i;
|
|
943
952
|
if (!r) return {
|
|
944
953
|
root: {
|
|
945
|
-
type:
|
|
954
|
+
type: R.Unparsed,
|
|
946
955
|
value: s
|
|
947
956
|
},
|
|
948
957
|
errors: []
|
|
949
958
|
};
|
|
950
959
|
const n = r.tokens;
|
|
951
960
|
if (0 === n.length) throw new M.Parse(J);
|
|
952
|
-
return this.input = n, this._inputText = s, this._inputTextLength = s.length, this.rowIndex = e, this.colIndex = t, this._astErrors = [], this._tokenMap = /* @__PURE__ */ new Map(), this.reset(), i = this._ruleRoot(), i && this._bindAllWhitespace(i), i =
|
|
953
|
-
const r = t.type, i = s?.isReference ? s.value : void 0, n = "string" == typeof i &&
|
|
954
|
-
if (n && r !==
|
|
955
|
-
const s =
|
|
956
|
-
return
|
|
961
|
+
return this.input = n, this._inputText = s, this._inputTextLength = s.length, this.rowIndex = e, this.colIndex = t, this._astErrors = [], this._tokenMap = /* @__PURE__ */ new Map(), this.reset(), i = this._ruleRoot(), i && this._bindAllWhitespace(i), i = L(i, (t, s) => {
|
|
962
|
+
const r = t.type, i = s?.isReference ? s.value : void 0, n = "string" == typeof i && Z.has(i), o = "string" == typeof i && q.has(i), a = n ? s.inputs : void 0, h = a ? a[0] === t ? a[1] : a[0] : void 0, l = this._lexer.getMaxRow();
|
|
963
|
+
if (n && r !== R.Cell && Number.isInteger(t.value)) {
|
|
964
|
+
const s = S(t.image, e);
|
|
965
|
+
return I(s, t), "row" !== K(h) ? this._reportError(s, `'${t.image}' is not a valid reference — a whole row can only pair with another row (as in ${t.image}:${t.image})`) : H(t.image, l) || this._reportError(s, `'${t.image}' is not a valid row — rows run from 1 to ${l}`), s;
|
|
957
966
|
}
|
|
958
|
-
if (o && r ===
|
|
959
|
-
if (r ===
|
|
967
|
+
if (o && r === R.Named) return this._reportError(t, `'${t.image ?? t.value?.nameId}' is a name — '${i}' needs a cell or range on both sides`), t;
|
|
968
|
+
if (r === R.Cell) {
|
|
960
969
|
const e = t.value, s = e.colIndex === Number.MIN_SAFE_INTEGER, r = e.rowIndex === Number.MIN_SAFE_INTEGER;
|
|
961
970
|
if ((s || r) && K(h) === (s ? "row" : "col")) return s && !H(t.image, l) && this._reportError(t, `'${t.image}' is not a valid row — rows run from 1 to ${l}`), t;
|
|
962
971
|
if (s || r || e.colIndex >= 16384) {
|
|
963
|
-
const n =
|
|
964
|
-
|
|
972
|
+
const n = g(t.image);
|
|
973
|
+
I(n, t);
|
|
965
974
|
const a = e.scope;
|
|
966
975
|
return a && (n.value.scope = a, n.value.scopeImage = e.scopeImage), s ? this._reportError(n, `'${t.image}' is not a valid reference — a row needs a column (use ${t.image}:${t.image} for the whole row)`) : r && t.image.includes("$") ? this._reportError(n, `'${t.image}' is not a valid reference — a whole column can only pair with another column (as in ${t.image}:${t.image})`) : o && this._reportError(n, `'${t.image}' is a name — '${i}' needs a cell or range on both sides`), n;
|
|
967
976
|
}
|
|
@@ -1024,7 +1033,7 @@ var te = {
|
|
|
1024
1033
|
_bindAllWhitespace(e) {
|
|
1025
1034
|
if (e) {
|
|
1026
1035
|
if (this._bindNodeWhitespace(e), e.inputs) for (const t of e.inputs) t && this._bindAllWhitespace(t);
|
|
1027
|
-
if (e.type ===
|
|
1036
|
+
if (e.type === R.Array && Array.isArray(e.value)) {
|
|
1028
1037
|
for (const t of e.value) if (t && Array.isArray(t.value)) for (const e of t.value) e && this._bindAllWhitespace(e);
|
|
1029
1038
|
}
|
|
1030
1039
|
}
|