@sheetxl/sdk 0.7.21 → 0.7.23-beta.2
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 +34 -0
- package/browser/cjs/A5-b-7zx2sEOEcvl.cjs +33 -0
- package/browser/cjs/B7_pDFYCVzt-3hUs.cjs +1 -0
- package/browser/cjs/Ccctey_HrpWuagT6.cjs +1 -0
- package/browser/cjs/CniTOg7oLRZwmgyM.cjs +57 -0
- package/browser/cjs/Dv3x6zut1ZRUt3IF.cjs +10 -0
- package/browser/cjs/E1pJfQiTbMva4WCz.cjs +1 -0
- package/browser/cjs/Y8ZGOM8g4sbsbA1Y.cjs +1 -0
- package/browser/cjs/index.cjs +3 -6
- package/browser/esm/BBJT6wXyXEvBQZKA.mjs +24 -0
- package/browser/esm/Ba8ViNCurmu-pQzB.mjs +818 -0
- package/browser/esm/Cnay4yeRx2XxT4Yp.mjs +50007 -0
- package/browser/esm/CrUqWGb8XSOVpWCS.mjs +109 -0
- package/browser/esm/DIqScru4YD2CC9q7.mjs +4436 -0
- package/browser/esm/DvShgCfX0MBnppXt.mjs +503 -0
- package/browser/esm/VD1vENLIu7_1r1UY.mjs +14 -0
- package/browser/esm/index.mjs +3225 -62
- package/licenses/dependencies.txt +74 -193
- package/node/esm/AiAlZ5mkssqXTadr.mjs +22 -0
- package/node/esm/Pg7h7EA11A6iLSIA.mjs +837 -0
- package/node/esm/index.mjs +53637 -23246
- package/node/esm/k4ZdzJqmTRplKGLv.mjs +114 -0
- package/package.json +19 -14
- package/resources/contents.json +21 -0
- package/resources/locales/contents.json +19 -0
- package/resources/locales/de/grammar.json +16 -0
- package/resources/locales/de/model.msg.json +510 -0
- package/resources/locales/en/model.msg.json +525 -0
- package/types/index.d.ts +2 -21284
- package/types/scripting-enums.json +1009 -0
- package/types/scripting.d.ts +26139 -31019
- package/types/src/address/AddressUtils.d.ts +252 -0
- package/types/src/address/AddressUtils.d.ts.map +1 -0
- package/types/src/address/_AddressMessages.d.ts +7 -0
- package/types/src/address/_AddressMessages.d.ts.map +1 -0
- package/types/src/address/index.d.ts +35 -0
- package/types/src/address/index.d.ts.map +1 -0
- package/types/src/anchored/AbstractAnchored.d.ts +200 -0
- package/types/src/anchored/AbstractAnchored.d.ts.map +1 -0
- package/types/src/anchored/Anchored.d.ts +154 -0
- package/types/src/anchored/Anchored.d.ts.map +1 -0
- package/types/src/anchored/AnchoredMap.d.ts +178 -0
- package/types/src/anchored/AnchoredMap.d.ts.map +1 -0
- package/types/src/anchored/IAnchored.d.ts +118 -0
- package/types/src/anchored/IAnchored.d.ts.map +1 -0
- package/types/src/anchored/IAnchoredMap.d.ts +207 -0
- package/types/src/anchored/IAnchoredMap.d.ts.map +1 -0
- package/types/src/anchored/_AnchorMessages.d.ts +3 -0
- package/types/src/anchored/_AnchorMessages.d.ts.map +1 -0
- package/types/src/anchored/index.d.ts +2 -0
- package/types/src/anchored/index.d.ts.map +1 -0
- package/types/src/autoFill/AutoFill.d.ts +161 -0
- package/types/src/autoFill/AutoFill.d.ts.map +1 -0
- package/types/src/autoFill/IAutoFill.d.ts +117 -0
- package/types/src/autoFill/IAutoFill.d.ts.map +1 -0
- package/types/src/autoFill/index.d.ts +3 -0
- package/types/src/autoFill/index.d.ts.map +1 -0
- package/types/src/border/IBorder.d.ts +284 -0
- package/types/src/border/IBorder.d.ts.map +1 -0
- package/types/src/border/index.d.ts +2 -0
- package/types/src/border/index.d.ts.map +1 -0
- package/types/src/calculation/Calculation.d.ts +440 -0
- package/types/src/calculation/Calculation.d.ts.map +1 -0
- package/types/src/calculation/FormulaLiterals.d.ts +18 -0
- package/types/src/calculation/FormulaLiterals.d.ts.map +1 -0
- package/types/src/calculation/ICalculation.d.ts +1016 -0
- package/types/src/calculation/ICalculation.d.ts.map +1 -0
- package/types/src/calculation/INamedFormulasCollection.d.ts +141 -0
- package/types/src/calculation/INamedFormulasCollection.d.ts.map +1 -0
- package/types/src/calculation/NamedFormulaCollection.d.ts +671 -0
- package/types/src/calculation/NamedFormulaCollection.d.ts.map +1 -0
- package/types/src/calculation/TokenType.d.ts +117 -0
- package/types/src/calculation/TokenType.d.ts.map +1 -0
- package/types/src/calculation/Types.d.ts +110 -0
- package/types/src/calculation/Types.d.ts.map +1 -0
- package/types/src/calculation/_CalculationMessages.d.ts +3 -0
- package/types/src/calculation/_CalculationMessages.d.ts.map +1 -0
- package/types/src/calculation/builtInNames.d.ts +2 -0
- package/types/src/calculation/builtInNames.d.ts.map +1 -0
- package/types/src/calculation/compiler/ASTTypes.d.ts +180 -0
- package/types/src/calculation/compiler/ASTTypes.d.ts.map +1 -0
- package/types/src/calculation/compiler/CompilerLocale.d.ts +69 -0
- package/types/src/calculation/compiler/CompilerLocale.d.ts.map +1 -0
- package/types/src/calculation/compiler/CompilerUtils.d.ts +331 -0
- package/types/src/calculation/compiler/CompilerUtils.d.ts.map +1 -0
- package/types/src/calculation/compiler/FormulaCompiler.d.ts +69 -0
- package/types/src/calculation/compiler/FormulaCompiler.d.ts.map +1 -0
- package/types/src/calculation/compiler/FormulaLexer.d.ts +85 -0
- package/types/src/calculation/compiler/FormulaLexer.d.ts.map +1 -0
- package/types/src/calculation/compiler/FormulaParser.d.ts +270 -0
- package/types/src/calculation/compiler/FormulaParser.d.ts.map +1 -0
- package/types/src/calculation/compiler/FormulaSeparators.d.ts +35 -0
- package/types/src/calculation/compiler/FormulaSeparators.d.ts.map +1 -0
- package/types/src/calculation/compiler/LiteTransform.d.ts +15 -0
- package/types/src/calculation/compiler/LiteTransform.d.ts.map +1 -0
- package/types/src/calculation/compiler/ParserUtils.d.ts +167 -0
- package/types/src/calculation/compiler/ParserUtils.d.ts.map +1 -0
- package/types/src/calculation/compiler/SRLexer.d.ts +19 -0
- package/types/src/calculation/compiler/SRLexer.d.ts.map +1 -0
- package/types/src/calculation/compiler/SRParser.d.ts +38 -0
- package/types/src/calculation/compiler/SRParser.d.ts.map +1 -0
- package/types/src/calculation/compiler/Types.d.ts +274 -0
- package/types/src/calculation/compiler/Types.d.ts.map +1 -0
- package/types/src/calculation/compiler/index.d.ts +3 -0
- package/types/src/calculation/compiler/index.d.ts.map +1 -0
- package/types/src/calculation/executor/CalcExecutor.d.ts +115 -0
- package/types/src/calculation/executor/CalcExecutor.d.ts.map +1 -0
- package/types/src/calculation/executor/CalcExecutorUtils.d.ts +11 -0
- package/types/src/calculation/executor/CalcExecutorUtils.d.ts.map +1 -0
- package/types/src/calculation/executor/index.d.ts +3 -0
- package/types/src/calculation/executor/index.d.ts.map +1 -0
- package/types/src/calculation/formula/Formula.d.ts +168 -0
- package/types/src/calculation/formula/Formula.d.ts.map +1 -0
- package/types/src/calculation/formula/FormulaBlock.d.ts +207 -0
- package/types/src/calculation/formula/FormulaBlock.d.ts.map +1 -0
- package/types/src/calculation/formula/IFormulaBlock.d.ts +181 -0
- package/types/src/calculation/formula/IFormulaBlock.d.ts.map +1 -0
- package/types/src/calculation/formula/LambdaValue.d.ts +166 -0
- package/types/src/calculation/formula/LambdaValue.d.ts.map +1 -0
- package/types/src/calculation/formula/TokenUtils.d.ts +26 -0
- package/types/src/calculation/formula/TokenUtils.d.ts.map +1 -0
- package/types/src/calculation/formula/index.d.ts +4 -0
- package/types/src/calculation/formula/index.d.ts.map +1 -0
- package/types/src/calculation/functions/Operators.d.ts +30 -0
- package/types/src/calculation/functions/Operators.d.ts.map +1 -0
- package/types/src/calculation/functions/index.d.ts +2 -0
- package/types/src/calculation/functions/index.d.ts.map +1 -0
- package/types/src/calculation/functions/initializeFunctions.d.ts +22 -0
- package/types/src/calculation/functions/initializeFunctions.d.ts.map +1 -0
- package/types/src/calculation/grid/CalcGrid.d.ts +205 -0
- package/types/src/calculation/grid/CalcGrid.d.ts.map +1 -0
- package/types/src/calculation/grid/CalcGridUtils.d.ts +172 -0
- package/types/src/calculation/grid/CalcGridUtils.d.ts.map +1 -0
- package/types/src/calculation/grid/ICalcGrid.d.ts +500 -0
- package/types/src/calculation/grid/ICalcGrid.d.ts.map +1 -0
- package/types/src/calculation/grid/index.d.ts +3 -0
- package/types/src/calculation/grid/index.d.ts.map +1 -0
- package/types/src/calculation/index.d.ts +5 -0
- package/types/src/calculation/index.d.ts.map +1 -0
- package/types/src/calculation/spatial/ContentfulSpatialValue.d.ts +25 -0
- package/types/src/calculation/spatial/ContentfulSpatialValue.d.ts.map +1 -0
- package/types/src/calculation/spatial/FormulaSpatialValue.d.ts +120 -0
- package/types/src/calculation/spatial/FormulaSpatialValue.d.ts.map +1 -0
- package/types/src/calculation/spatial/PrecedentSpatialValue.d.ts +115 -0
- package/types/src/calculation/spatial/PrecedentSpatialValue.d.ts.map +1 -0
- package/types/src/calculation/spatial/SpillEntry.d.ts +40 -0
- package/types/src/calculation/spatial/SpillEntry.d.ts.map +1 -0
- package/types/src/calculation/spatial/index.d.ts +5 -0
- package/types/src/calculation/spatial/index.d.ts.map +1 -0
- package/types/src/calculation/state/CalcNode.d.ts +71 -0
- package/types/src/calculation/state/CalcNode.d.ts.map +1 -0
- package/types/src/calculation/state/CalcScope.d.ts +35 -0
- package/types/src/calculation/state/CalcScope.d.ts.map +1 -0
- package/types/src/calculation/state/CalcState.d.ts +28 -0
- package/types/src/calculation/state/CalcState.d.ts.map +1 -0
- package/types/src/calculation/state/CalculationContext.d.ts +125 -0
- package/types/src/calculation/state/CalculationContext.d.ts.map +1 -0
- package/types/src/calculation/state/IContextContainer.d.ts +320 -0
- package/types/src/calculation/state/IContextContainer.d.ts.map +1 -0
- package/types/src/calculation/state/index.d.ts +6 -0
- package/types/src/calculation/state/index.d.ts.map +1 -0
- package/types/src/calculation/symbol/FunctionSymbolProvider.d.ts +44 -0
- package/types/src/calculation/symbol/FunctionSymbolProvider.d.ts.map +1 -0
- package/types/src/calculation/symbol/ISymbolRegistry.d.ts +93 -0
- package/types/src/calculation/symbol/ISymbolRegistry.d.ts.map +1 -0
- package/types/src/calculation/symbol/IndirectSymbolProvider.d.ts +144 -0
- package/types/src/calculation/symbol/IndirectSymbolProvider.d.ts.map +1 -0
- package/types/src/calculation/symbol/SheetSymbolProvider.d.ts +18 -0
- package/types/src/calculation/symbol/SheetSymbolProvider.d.ts.map +1 -0
- package/types/src/calculation/symbol/SymbolRegistry.d.ts +19 -0
- package/types/src/calculation/symbol/SymbolRegistry.d.ts.map +1 -0
- package/types/src/calculation/symbol/TableColumnSymbolProvider.d.ts +21 -0
- package/types/src/calculation/symbol/TableColumnSymbolProvider.d.ts.map +1 -0
- package/types/src/calculation/symbol/TableSymbolProvider.d.ts +19 -0
- package/types/src/calculation/symbol/TableSymbolProvider.d.ts.map +1 -0
- package/types/src/calculation/symbol/index.d.ts +9 -0
- package/types/src/calculation/symbol/index.d.ts.map +1 -0
- package/types/src/cell/ICell.d.ts +672 -0
- package/types/src/cell/ICell.d.ts.map +1 -0
- package/types/src/cell/ICellHeader.d.ts +142 -0
- package/types/src/cell/ICellHeader.d.ts.map +1 -0
- package/types/src/cell/ICellProtection.d.ts +41 -0
- package/types/src/cell/ICellProtection.d.ts.map +1 -0
- package/types/src/cell/index.d.ts +4 -0
- package/types/src/cell/index.d.ts.map +1 -0
- package/types/src/cellRange/ICellHeaderRange.d.ts +306 -0
- package/types/src/cellRange/ICellHeaderRange.d.ts.map +1 -0
- package/types/src/cellRange/ICellHeaderRanges.d.ts +107 -0
- package/types/src/cellRange/ICellHeaderRanges.d.ts.map +1 -0
- package/types/src/cellRange/ICellRange.d.ts +2509 -0
- package/types/src/cellRange/ICellRange.d.ts.map +1 -0
- package/types/src/cellRange/ICellRanges.d.ts +407 -0
- package/types/src/cellRange/ICellRanges.d.ts.map +1 -0
- package/types/src/cellRange/ICellRegion.d.ts +133 -0
- package/types/src/cellRange/ICellRegion.d.ts.map +1 -0
- package/types/src/cellRange/_GraphNode.d.ts +38 -0
- package/types/src/cellRange/_GraphNode.d.ts.map +1 -0
- package/types/src/cellRange/index.d.ts +6 -0
- package/types/src/cellRange/index.d.ts.map +1 -0
- package/types/src/chart/Chart.d.ts +53 -0
- package/types/src/chart/Chart.d.ts.map +1 -0
- package/types/src/chart/IChart.d.ts +42 -0
- package/types/src/chart/IChart.d.ts.map +1 -0
- package/types/src/chart/index.d.ts +5 -0
- package/types/src/chart/index.d.ts.map +1 -0
- package/types/src/collections/ArraysGrid.d.ts +72 -0
- package/types/src/collections/ArraysGrid.d.ts.map +1 -0
- package/types/src/collections/BooleanList.d.ts +67 -0
- package/types/src/collections/BooleanList.d.ts.map +1 -0
- package/types/src/collections/GridMap.d.ts +47 -0
- package/types/src/collections/GridMap.d.ts.map +1 -0
- package/types/src/collections/HashMap.d.ts +15 -0
- package/types/src/collections/HashMap.d.ts.map +1 -0
- package/types/src/collections/IGrid.d.ts +278 -0
- package/types/src/collections/IGrid.d.ts.map +1 -0
- package/types/src/collections/IList.d.ts +89 -0
- package/types/src/collections/IList.d.ts.map +1 -0
- package/types/src/collections/IMap.d.ts +45 -0
- package/types/src/collections/IMap.d.ts.map +1 -0
- package/types/src/collections/IReadableList.d.ts +120 -0
- package/types/src/collections/IReadableList.d.ts.map +1 -0
- package/types/src/collections/ISortedMap.d.ts +171 -0
- package/types/src/collections/ISortedMap.d.ts.map +1 -0
- package/types/src/collections/ISparseGrid.d.ts +61 -0
- package/types/src/collections/ISparseGrid.d.ts.map +1 -0
- package/types/src/collections/ISparseList.d.ts +103 -0
- package/types/src/collections/ISparseList.d.ts.map +1 -0
- package/types/src/collections/ISpatialMap.d.ts +515 -0
- package/types/src/collections/ISpatialMap.d.ts.map +1 -0
- package/types/src/collections/ISpatialMap3D.d.ts +116 -0
- package/types/src/collections/ISpatialMap3D.d.ts.map +1 -0
- package/types/src/collections/IWritableList.d.ts +41 -0
- package/types/src/collections/IWritableList.d.ts.map +1 -0
- package/types/src/collections/ImmutableList.d.ts +52 -0
- package/types/src/collections/ImmutableList.d.ts.map +1 -0
- package/types/src/collections/IteratorUtils.d.ts +91 -0
- package/types/src/collections/IteratorUtils.d.ts.map +1 -0
- package/types/src/collections/MixedTypedArrayList.d.ts +140 -0
- package/types/src/collections/MixedTypedArrayList.d.ts.map +1 -0
- package/types/src/collections/OverlappingRangeIterator.d.ts +91 -0
- package/types/src/collections/OverlappingRangeIterator.d.ts.map +1 -0
- package/types/src/collections/RTree.d.ts +111 -0
- package/types/src/collections/RTree.d.ts.map +1 -0
- package/types/src/collections/RepeatingList.d.ts +20 -0
- package/types/src/collections/RepeatingList.d.ts.map +1 -0
- package/types/src/collections/SortedMap.d.ts +396 -0
- package/types/src/collections/SortedMap.d.ts.map +1 -0
- package/types/src/collections/SparseGrid.d.ts +99 -0
- package/types/src/collections/SparseGrid.d.ts.map +1 -0
- package/types/src/collections/SparseList.d.ts +90 -0
- package/types/src/collections/SparseList.d.ts.map +1 -0
- package/types/src/collections/SpatialMap.d.ts +102 -0
- package/types/src/collections/SpatialMap.d.ts.map +1 -0
- package/types/src/collections/SpatialMap3D.d.ts +64 -0
- package/types/src/collections/SpatialMap3D.d.ts.map +1 -0
- package/types/src/collections/Tuple.d.ts +160 -0
- package/types/src/collections/Tuple.d.ts.map +1 -0
- package/types/src/collections/_CollectionUtils.d.ts +25 -0
- package/types/src/collections/_CollectionUtils.d.ts.map +1 -0
- package/types/src/collections/_GridUtils.d.ts +268 -0
- package/types/src/collections/_GridUtils.d.ts.map +1 -0
- package/types/src/collections/_RunUtils.d.ts +170 -0
- package/types/src/collections/_RunUtils.d.ts.map +1 -0
- package/types/src/collections/_SpatialUtils.d.ts +115 -0
- package/types/src/collections/_SpatialUtils.d.ts.map +1 -0
- package/types/src/collections/index.d.ts +21 -0
- package/types/src/collections/index.d.ts.map +1 -0
- package/types/src/color/Color.d.ts +120 -0
- package/types/src/color/Color.d.ts.map +1 -0
- package/types/src/color/ColorSpace.d.ts +45 -0
- package/types/src/color/ColorSpace.d.ts.map +1 -0
- package/types/src/color/IColor.d.ts +1110 -0
- package/types/src/color/IColor.d.ts.map +1 -0
- package/types/src/color/_BuiltInIndexDefs.d.ts +4 -0
- package/types/src/color/_BuiltInIndexDefs.d.ts.map +1 -0
- package/types/src/color/_BuiltInNamedDefs.d.ts +29 -0
- package/types/src/color/_BuiltInNamedDefs.d.ts.map +1 -0
- package/types/src/color/_BuiltInSchemeDefs.d.ts +7 -0
- package/types/src/color/_BuiltInSchemeDefs.d.ts.map +1 -0
- package/types/src/color/_ColorUtils.d.ts +93 -0
- package/types/src/color/_ColorUtils.d.ts.map +1 -0
- package/types/src/color/index.d.ts +3 -0
- package/types/src/color/index.d.ts.map +1 -0
- package/types/src/comment/IComment.d.ts +108 -0
- package/types/src/comment/IComment.d.ts.map +1 -0
- package/types/src/comment/index.d.ts +2 -0
- package/types/src/comment/index.d.ts.map +1 -0
- package/types/src/condition/AnchoredConditional.d.ts +263 -0
- package/types/src/condition/AnchoredConditional.d.ts.map +1 -0
- package/types/src/condition/BuiltInOperators/AbstractOperator.d.ts +83 -0
- package/types/src/condition/BuiltInOperators/AbstractOperator.d.ts.map +1 -0
- package/types/src/condition/BuiltInOperators/AfterEqualToOperator.d.ts +8 -0
- package/types/src/condition/BuiltInOperators/AfterEqualToOperator.d.ts.map +1 -0
- package/types/src/condition/BuiltInOperators/AfterOperator.d.ts +8 -0
- package/types/src/condition/BuiltInOperators/AfterOperator.d.ts.map +1 -0
- package/types/src/condition/BuiltInOperators/AndOperator.d.ts +12 -0
- package/types/src/condition/BuiltInOperators/AndOperator.d.ts.map +1 -0
- package/types/src/condition/BuiltInOperators/AverageOperator.d.ts +12 -0
- package/types/src/condition/BuiltInOperators/AverageOperator.d.ts.map +1 -0
- package/types/src/condition/BuiltInOperators/BeforeEqualToOperator.d.ts +8 -0
- package/types/src/condition/BuiltInOperators/BeforeEqualToOperator.d.ts.map +1 -0
- package/types/src/condition/BuiltInOperators/BeforeOperator.d.ts +8 -0
- package/types/src/condition/BuiltInOperators/BeforeOperator.d.ts.map +1 -0
- package/types/src/condition/BuiltInOperators/BetweenOperator.d.ts +12 -0
- package/types/src/condition/BuiltInOperators/BetweenOperator.d.ts.map +1 -0
- package/types/src/condition/BuiltInOperators/BlankOperator.d.ts +9 -0
- package/types/src/condition/BuiltInOperators/BlankOperator.d.ts.map +1 -0
- package/types/src/condition/BuiltInOperators/ColorOperator.d.ts +8 -0
- package/types/src/condition/BuiltInOperators/ColorOperator.d.ts.map +1 -0
- package/types/src/condition/BuiltInOperators/ContainsOperator.d.ts +8 -0
- package/types/src/condition/BuiltInOperators/ContainsOperator.d.ts.map +1 -0
- package/types/src/condition/BuiltInOperators/EndsWithOperator.d.ts +8 -0
- package/types/src/condition/BuiltInOperators/EndsWithOperator.d.ts.map +1 -0
- package/types/src/condition/BuiltInOperators/EqualToOperator.d.ts +11 -0
- package/types/src/condition/BuiltInOperators/EqualToOperator.d.ts.map +1 -0
- package/types/src/condition/BuiltInOperators/ErrorOperator.d.ts +9 -0
- package/types/src/condition/BuiltInOperators/ErrorOperator.d.ts.map +1 -0
- package/types/src/condition/BuiltInOperators/ExpressionOperator.d.ts +17 -0
- package/types/src/condition/BuiltInOperators/ExpressionOperator.d.ts.map +1 -0
- package/types/src/condition/BuiltInOperators/GreaterThanEqualToOperator.d.ts +8 -0
- package/types/src/condition/BuiltInOperators/GreaterThanEqualToOperator.d.ts.map +1 -0
- package/types/src/condition/BuiltInOperators/GreaterThanOperator.d.ts +8 -0
- package/types/src/condition/BuiltInOperators/GreaterThanOperator.d.ts.map +1 -0
- package/types/src/condition/BuiltInOperators/IconOperator.d.ts +8 -0
- package/types/src/condition/BuiltInOperators/IconOperator.d.ts.map +1 -0
- package/types/src/condition/BuiltInOperators/InSetOperator.d.ts +14 -0
- package/types/src/condition/BuiltInOperators/InSetOperator.d.ts.map +1 -0
- package/types/src/condition/BuiltInOperators/LessThanEqualToOperator.d.ts +8 -0
- package/types/src/condition/BuiltInOperators/LessThanEqualToOperator.d.ts.map +1 -0
- package/types/src/condition/BuiltInOperators/LessThanOperator.d.ts +8 -0
- package/types/src/condition/BuiltInOperators/LessThanOperator.d.ts.map +1 -0
- package/types/src/condition/BuiltInOperators/NotOperator.d.ts +12 -0
- package/types/src/condition/BuiltInOperators/NotOperator.d.ts.map +1 -0
- package/types/src/condition/BuiltInOperators/OrOperator.d.ts +12 -0
- package/types/src/condition/BuiltInOperators/OrOperator.d.ts.map +1 -0
- package/types/src/condition/BuiltInOperators/StartsWithOperator.d.ts +8 -0
- package/types/src/condition/BuiltInOperators/StartsWithOperator.d.ts.map +1 -0
- package/types/src/condition/BuiltInOperators/TimePeriodOperator.d.ts +13 -0
- package/types/src/condition/BuiltInOperators/TimePeriodOperator.d.ts.map +1 -0
- package/types/src/condition/BuiltInOperators/TopNOperator.d.ts +12 -0
- package/types/src/condition/BuiltInOperators/TopNOperator.d.ts.map +1 -0
- package/types/src/condition/BuiltInOperators/UniqueOperator.d.ts +8 -0
- package/types/src/condition/BuiltInOperators/UniqueOperator.d.ts.map +1 -0
- package/types/src/condition/BuiltInOperators/ValidEmailOperator.d.ts +8 -0
- package/types/src/condition/BuiltInOperators/ValidEmailOperator.d.ts.map +1 -0
- package/types/src/condition/BuiltInOperators/ValidUrlOperator.d.ts +8 -0
- package/types/src/condition/BuiltInOperators/ValidUrlOperator.d.ts.map +1 -0
- package/types/src/condition/BuiltInOperators/index.d.ts +59 -0
- package/types/src/condition/BuiltInOperators/index.d.ts.map +1 -0
- package/types/src/condition/BuiltinSelectors/BaseSelector.d.ts +43 -0
- package/types/src/condition/BuiltinSelectors/BaseSelector.d.ts.map +1 -0
- package/types/src/condition/BuiltinSelectors/DateSelector.d.ts +14 -0
- package/types/src/condition/BuiltinSelectors/DateSelector.d.ts.map +1 -0
- package/types/src/condition/BuiltinSelectors/ListSelector.d.ts +12 -0
- package/types/src/condition/BuiltinSelectors/ListSelector.d.ts.map +1 -0
- package/types/src/condition/BuiltinSelectors/TextLengthSelector.d.ts +16 -0
- package/types/src/condition/BuiltinSelectors/TextLengthSelector.d.ts.map +1 -0
- package/types/src/condition/BuiltinSelectors/TimeSelector.d.ts +14 -0
- package/types/src/condition/BuiltinSelectors/TimeSelector.d.ts.map +1 -0
- package/types/src/condition/BuiltinSelectors/WholeSelector.d.ts +14 -0
- package/types/src/condition/BuiltinSelectors/WholeSelector.d.ts.map +1 -0
- package/types/src/condition/BuiltinSelectors/index.d.ts +18 -0
- package/types/src/condition/BuiltinSelectors/index.d.ts.map +1 -0
- package/types/src/condition/Condition.d.ts +123 -0
- package/types/src/condition/Condition.d.ts.map +1 -0
- package/types/src/condition/ICondition.d.ts +915 -0
- package/types/src/condition/ICondition.d.ts.map +1 -0
- package/types/src/condition/_ConditionUtils.d.ts +190 -0
- package/types/src/condition/_ConditionUtils.d.ts.map +1 -0
- package/types/src/condition/index.d.ts +3 -0
- package/types/src/condition/index.d.ts.map +1 -0
- package/types/src/conditionalFormat/ConditionalEntry.d.ts +20 -0
- package/types/src/conditionalFormat/ConditionalEntry.d.ts.map +1 -0
- package/types/src/conditionalFormat/ConditionalFormat.d.ts +190 -0
- package/types/src/conditionalFormat/ConditionalFormat.d.ts.map +1 -0
- package/types/src/conditionalFormat/ConditionalFormatCollection.d.ts +20 -0
- package/types/src/conditionalFormat/ConditionalFormatCollection.d.ts.map +1 -0
- package/types/src/conditionalFormat/IConditionalFormat.d.ts +518 -0
- package/types/src/conditionalFormat/IConditionalFormat.d.ts.map +1 -0
- package/types/src/conditionalFormat/IConditionalFormatCollection.d.ts +70 -0
- package/types/src/conditionalFormat/IConditionalFormatCollection.d.ts.map +1 -0
- package/types/src/conditionalFormat/_ConditionalMessages.d.ts +2 -0
- package/types/src/conditionalFormat/_ConditionalMessages.d.ts.map +1 -0
- package/types/src/conditionalFormat/index.d.ts +3 -0
- package/types/src/conditionalFormat/index.d.ts.map +1 -0
- package/types/src/dataValidation/DataValidation.d.ts +121 -0
- package/types/src/dataValidation/DataValidation.d.ts.map +1 -0
- package/types/src/dataValidation/DataValidationCollection.d.ts +20 -0
- package/types/src/dataValidation/DataValidationCollection.d.ts.map +1 -0
- package/types/src/dataValidation/IDataValidation.d.ts +327 -0
- package/types/src/dataValidation/IDataValidation.d.ts.map +1 -0
- package/types/src/dataValidation/IDataValidationCollection.d.ts +63 -0
- package/types/src/dataValidation/IDataValidationCollection.d.ts.map +1 -0
- package/types/src/dataValidation/_DataValidationMessages.d.ts +2 -0
- package/types/src/dataValidation/_DataValidationMessages.d.ts.map +1 -0
- package/types/src/dataValidation/_Utils.d.ts +10 -0
- package/types/src/dataValidation/_Utils.d.ts.map +1 -0
- package/types/src/dataValidation/index.d.ts +3 -0
- package/types/src/dataValidation/index.d.ts.map +1 -0
- package/types/src/date/DateUtils.d.ts +8 -0
- package/types/src/date/DateUtils.d.ts.map +1 -0
- package/types/src/date/_DateUtils.d.ts +122 -0
- package/types/src/date/_DateUtils.d.ts.map +1 -0
- package/types/src/date/index.d.ts +2 -0
- package/types/src/date/index.d.ts.map +1 -0
- package/types/src/externalBook/ExternalBookCollection.d.ts +36 -0
- package/types/src/externalBook/ExternalBookCollection.d.ts.map +1 -0
- package/types/src/externalBook/IExternalBook.d.ts +97 -0
- package/types/src/externalBook/IExternalBook.d.ts.map +1 -0
- package/types/src/externalBook/IExternalBookCollection.d.ts +29 -0
- package/types/src/externalBook/IExternalBookCollection.d.ts.map +1 -0
- package/types/src/externalBook/index.d.ts +3 -0
- package/types/src/externalBook/index.d.ts.map +1 -0
- package/types/src/fill/IEffect.d.ts +389 -0
- package/types/src/fill/IEffect.d.ts.map +1 -0
- package/types/src/fill/IFill.d.ts +597 -0
- package/types/src/fill/IFill.d.ts.map +1 -0
- package/types/src/fill/IStroke.d.ts +265 -0
- package/types/src/fill/IStroke.d.ts.map +1 -0
- package/types/src/fill/_BuiltInPatterns.d.ts +27 -0
- package/types/src/fill/_BuiltInPatterns.d.ts.map +1 -0
- package/types/src/fill/index.d.ts +4 -0
- package/types/src/fill/index.d.ts.map +1 -0
- package/types/src/filter/IFilter.d.ts +83 -0
- package/types/src/filter/IFilter.d.ts.map +1 -0
- package/types/src/filter/index.d.ts +2 -0
- package/types/src/filter/index.d.ts.map +1 -0
- package/types/src/font/CanvasFontMeasurer.d.ts +25 -0
- package/types/src/font/CanvasFontMeasurer.d.ts.map +1 -0
- package/types/src/font/ExtendedTextMetrics.d.ts +1 -0
- package/types/src/font/ExtendedTextMetrics.d.ts.map +1 -0
- package/types/src/font/Font.d.ts +19 -0
- package/types/src/font/Font.d.ts.map +1 -0
- package/types/src/font/FontKitFontMeasurer.d.ts +11 -0
- package/types/src/font/FontKitFontMeasurer.d.ts.map +1 -0
- package/types/src/font/FontUtils.d.ts +9 -0
- package/types/src/font/FontUtils.d.ts.map +1 -0
- package/types/src/font/IFont.d.ts +261 -0
- package/types/src/font/IFont.d.ts.map +1 -0
- package/types/src/font/IFontCollection.d.ts +31 -0
- package/types/src/font/IFontCollection.d.ts.map +1 -0
- package/types/src/font/SimpleFontMeasurer.d.ts +4 -0
- package/types/src/font/SimpleFontMeasurer.d.ts.map +1 -0
- package/types/src/font/_FontUtils.d.ts +22 -0
- package/types/src/font/_FontUtils.d.ts.map +1 -0
- package/types/src/font/index.d.ts +5 -0
- package/types/src/font/index.d.ts.map +1 -0
- package/types/src/history/IHistory.d.ts +110 -0
- package/types/src/history/IHistory.d.ts.map +1 -0
- package/types/src/history/index.d.ts +2 -0
- package/types/src/history/index.d.ts.map +1 -0
- package/types/src/hyperlink/IHyperlink.d.ts +96 -0
- package/types/src/hyperlink/IHyperlink.d.ts.map +1 -0
- package/types/src/hyperlink/_Hyperlink.d.ts +21 -0
- package/types/src/hyperlink/_Hyperlink.d.ts.map +1 -0
- package/types/src/hyperlink/index.d.ts +2 -0
- package/types/src/hyperlink/index.d.ts.map +1 -0
- package/types/src/i18n/LanguagePack.d.ts +97 -0
- package/types/src/i18n/LanguagePack.d.ts.map +1 -0
- package/types/src/i18n/LocaleProfile.d.ts +15 -0
- package/types/src/i18n/LocaleProfile.d.ts.map +1 -0
- package/types/src/i18n/_CurrencyData.d.ts +20 -0
- package/types/src/i18n/_CurrencyData.d.ts.map +1 -0
- package/types/src/i18n/functionLocales.d.ts +6 -0
- package/types/src/i18n/functionLocales.d.ts.map +1 -0
- package/types/src/i18n/index.d.ts +4 -0
- package/types/src/i18n/index.d.ts.map +1 -0
- package/types/src/i18n/locales.d.ts +3 -0
- package/types/src/i18n/locales.d.ts.map +1 -0
- package/types/src/index.d.ts +71 -0
- package/types/src/index.d.ts.map +1 -0
- package/types/src/io/AbstractBackingStore.d.ts +53 -0
- package/types/src/io/AbstractBackingStore.d.ts.map +1 -0
- package/types/src/io/ArrayBackingStore.d.ts +34 -0
- package/types/src/io/ArrayBackingStore.d.ts.map +1 -0
- package/types/src/io/IWorkbookIO.d.ts +1322 -0
- package/types/src/io/IWorkbookIO.d.ts.map +1 -0
- package/types/src/io/WorkbookIO.d.ts +91 -0
- package/types/src/io/WorkbookIO.d.ts.map +1 -0
- package/types/src/io/WorkbookOrigin.d.ts +114 -0
- package/types/src/io/WorkbookOrigin.d.ts.map +1 -0
- package/types/src/io/WorkbookRegistry.d.ts +49 -0
- package/types/src/io/WorkbookRegistry.d.ts.map +1 -0
- package/types/src/io/index.d.ts +5 -0
- package/types/src/io/index.d.ts.map +1 -0
- package/types/src/lib/file/file.browser.d.ts +41 -0
- package/types/src/lib/file/file.browser.d.ts.map +1 -0
- package/types/src/lib/file/file.node.d.ts +25 -0
- package/types/src/lib/file/file.node.d.ts.map +1 -0
- package/types/src/lib/utils/_Utils.d.ts +20 -0
- package/types/src/lib/utils/_Utils.d.ts.map +1 -0
- package/types/src/lib/utils/banner.d.ts +6 -0
- package/types/src/lib/utils/banner.d.ts.map +1 -0
- package/types/src/lib/utils/utils.browser.d.ts +28 -0
- package/types/src/lib/utils/utils.browser.d.ts.map +1 -0
- package/types/src/lib/utils/utils.node.d.ts +42 -0
- package/types/src/lib/utils/utils.node.d.ts.map +1 -0
- package/types/src/license/LicenseDetails.d.ts +22 -0
- package/types/src/license/LicenseDetails.d.ts.map +1 -0
- package/types/src/license/LicenseManager.d.ts +63 -0
- package/types/src/license/LicenseManager.d.ts.map +1 -0
- package/types/src/license/index.d.ts +3 -0
- package/types/src/license/index.d.ts.map +1 -0
- package/types/src/license/license-key.d.ts +33 -0
- package/types/src/license/license-key.d.ts.map +1 -0
- package/types/src/listener/IListener.d.ts +62 -0
- package/types/src/listener/IListener.d.ts.map +1 -0
- package/types/src/listener/ListenerEmitter.d.ts +47 -0
- package/types/src/listener/ListenerEmitter.d.ts.map +1 -0
- package/types/src/listener/index.d.ts +2 -0
- package/types/src/listener/index.d.ts.map +1 -0
- package/types/src/model/AbstractModel.d.ts +90 -0
- package/types/src/model/AbstractModel.d.ts.map +1 -0
- package/types/src/model/IModel.d.ts +108 -0
- package/types/src/model/IModel.d.ts.map +1 -0
- package/types/src/model/_ModelMessages.d.ts +2 -0
- package/types/src/model/_ModelMessages.d.ts.map +1 -0
- package/types/src/model/index.d.ts +3 -0
- package/types/src/model/index.d.ts.map +1 -0
- package/types/src/movable/CustomElement.d.ts +42 -0
- package/types/src/movable/CustomElement.d.ts.map +1 -0
- package/types/src/movable/ICustomElement.d.ts +29 -0
- package/types/src/movable/ICustomElement.d.ts.map +1 -0
- package/types/src/movable/IGroup.d.ts +30 -0
- package/types/src/movable/IGroup.d.ts.map +1 -0
- package/types/src/movable/IMovable.d.ts +327 -0
- package/types/src/movable/IMovable.d.ts.map +1 -0
- package/types/src/movable/IMovableCollection.d.ts +129 -0
- package/types/src/movable/IMovableCollection.d.ts.map +1 -0
- package/types/src/movable/IMovableSelection.d.ts +49 -0
- package/types/src/movable/IMovableSelection.d.ts.map +1 -0
- package/types/src/movable/Movable.d.ts +221 -0
- package/types/src/movable/Movable.d.ts.map +1 -0
- package/types/src/movable/MovableCollection.d.ts +29 -0
- package/types/src/movable/MovableCollection.d.ts.map +1 -0
- package/types/src/movable/_MovableUtils.d.ts +4 -0
- package/types/src/movable/_MovableUtils.d.ts.map +1 -0
- package/types/src/movable/index.d.ts +4 -0
- package/types/src/movable/index.d.ts.map +1 -0
- package/types/src/named/AbstractNamed.d.ts +41 -0
- package/types/src/named/AbstractNamed.d.ts.map +1 -0
- package/types/src/named/INamed.d.ts +225 -0
- package/types/src/named/INamed.d.ts.map +1 -0
- package/types/src/named/INamedCollection.d.ts +230 -0
- package/types/src/named/INamedCollection.d.ts.map +1 -0
- package/types/src/named/NamedCollection.d.ts +302 -0
- package/types/src/named/NamedCollection.d.ts.map +1 -0
- package/types/src/named/_BuiltInNamed.d.ts +6 -0
- package/types/src/named/_BuiltInNamed.d.ts.map +1 -0
- package/types/src/named/index.d.ts +3 -0
- package/types/src/named/index.d.ts.map +1 -0
- package/types/src/numFmt/BuiltInFormats.d.ts +49 -0
- package/types/src/numFmt/BuiltInFormats.d.ts.map +1 -0
- package/types/src/numFmt/IFormatEngine.d.ts +149 -0
- package/types/src/numFmt/IFormatEngine.d.ts.map +1 -0
- package/types/src/numFmt/NumberFormatBuilder.d.ts +46 -0
- package/types/src/numFmt/NumberFormatBuilder.d.ts.map +1 -0
- package/types/src/numFmt/NumberFormatParser.d.ts +168 -0
- package/types/src/numFmt/NumberFormatParser.d.ts.map +1 -0
- package/types/src/numFmt/NumberFormatStyles.d.ts +43 -0
- package/types/src/numFmt/NumberFormatStyles.d.ts.map +1 -0
- package/types/src/numFmt/NumberFormatType.d.ts +79 -0
- package/types/src/numFmt/NumberFormatType.d.ts.map +1 -0
- package/types/src/numFmt/NumfmtFormatEngine.d.ts +33 -0
- package/types/src/numFmt/NumfmtFormatEngine.d.ts.map +1 -0
- package/types/src/numFmt/_BuiltInNumberFormats.d.ts +12 -0
- package/types/src/numFmt/_BuiltInNumberFormats.d.ts.map +1 -0
- package/types/src/numFmt/_FormatCell.d.ts +52 -0
- package/types/src/numFmt/_FormatCell.d.ts.map +1 -0
- package/types/src/numFmt/_NumFmtUtils.d.ts +102 -0
- package/types/src/numFmt/_NumFmtUtils.d.ts.map +1 -0
- package/types/src/numFmt/index.d.ts +105 -0
- package/types/src/numFmt/index.d.ts.map +1 -0
- package/types/src/numFmt/vendor/numfmt/_sheetxl.d.ts +15 -0
- package/types/src/numFmt/vendor/numfmt/index.d.ts +721 -0
- package/types/src/picture/IPicture.d.ts +69 -0
- package/types/src/picture/IPicture.d.ts.map +1 -0
- package/types/src/picture/Picture.d.ts +67 -0
- package/types/src/picture/Picture.d.ts.map +1 -0
- package/types/src/picture/index.d.ts +2 -0
- package/types/src/picture/index.d.ts.map +1 -0
- package/types/src/primitives/CompositeRangeStats.d.ts +63 -0
- package/types/src/primitives/CompositeRangeStats.d.ts.map +1 -0
- package/types/src/primitives/Criteria.d.ts +35 -0
- package/types/src/primitives/Criteria.d.ts.map +1 -0
- package/types/src/primitives/FormulaContext.d.ts +2 -0
- package/types/src/primitives/FormulaContext.d.ts.map +1 -0
- package/types/src/primitives/PrimitiveUtils.d.ts +255 -0
- package/types/src/primitives/PrimitiveUtils.d.ts.map +1 -0
- package/types/src/primitives/Range.d.ts +221 -0
- package/types/src/primitives/Range.d.ts.map +1 -0
- package/types/src/primitives/RangeStats.d.ts +48 -0
- package/types/src/primitives/RangeStats.d.ts.map +1 -0
- package/types/src/primitives/ReferenceRange.d.ts +19 -0
- package/types/src/primitives/ReferenceRange.d.ts.map +1 -0
- package/types/src/primitives/Runtime.d.ts +55 -0
- package/types/src/primitives/Runtime.d.ts.map +1 -0
- package/types/src/primitives/ScalarCollation.d.ts +174 -0
- package/types/src/primitives/ScalarCollation.d.ts.map +1 -0
- package/types/src/primitives/TextFold.d.ts +62 -0
- package/types/src/primitives/TextFold.d.ts.map +1 -0
- package/types/src/primitives/_PrimitiveMessages.d.ts +3 -0
- package/types/src/primitives/_PrimitiveMessages.d.ts.map +1 -0
- package/types/src/primitives/index.d.ts +7 -0
- package/types/src/primitives/index.d.ts.map +1 -0
- package/types/src/primitives/stats/AggregateStats.d.ts +119 -0
- package/types/src/primitives/stats/AggregateStats.d.ts.map +1 -0
- package/types/src/primitives/stats/Cancellation.d.ts +43 -0
- package/types/src/primitives/stats/Cancellation.d.ts.map +1 -0
- package/types/src/primitives/stats/FrequencyStats.d.ts +94 -0
- package/types/src/primitives/stats/FrequencyStats.d.ts.map +1 -0
- package/types/src/primitives/stats/Ranked.d.ts +26 -0
- package/types/src/primitives/stats/Ranked.d.ts.map +1 -0
- package/types/src/primitives/stats/ScalarOrder.d.ts +18 -0
- package/types/src/primitives/stats/ScalarOrder.d.ts.map +1 -0
- package/types/src/primitives/stats/SortedNumbers.d.ts +48 -0
- package/types/src/primitives/stats/SortedNumbers.d.ts.map +1 -0
- package/types/src/primitives/stats/index.d.ts +7 -0
- package/types/src/primitives/stats/index.d.ts.map +1 -0
- package/types/src/print/IPrint.d.ts +234 -0
- package/types/src/print/IPrint.d.ts.map +1 -0
- package/types/src/print/index.d.ts +2 -0
- package/types/src/print/index.d.ts.map +1 -0
- package/types/src/protectedRange/IProtectedRange.d.ts +239 -0
- package/types/src/protectedRange/IProtectedRange.d.ts.map +1 -0
- package/types/src/protectedRange/IProtectedRangeCollection.d.ts +73 -0
- package/types/src/protectedRange/IProtectedRangeCollection.d.ts.map +1 -0
- package/types/src/protectedRange/ProtectedRange.d.ts +101 -0
- package/types/src/protectedRange/ProtectedRange.d.ts.map +1 -0
- package/types/src/protectedRange/ProtectedRangeCollection.d.ts +21 -0
- package/types/src/protectedRange/ProtectedRangeCollection.d.ts.map +1 -0
- package/types/src/protectedRange/index.d.ts +3 -0
- package/types/src/protectedRange/index.d.ts.map +1 -0
- package/types/src/protection/DefaultProtection.d.ts +43 -0
- package/types/src/protection/DefaultProtection.d.ts.map +1 -0
- package/types/src/protection/IProtection.d.ts +170 -0
- package/types/src/protection/IProtection.d.ts.map +1 -0
- package/types/src/protection/PasswordHasher.d.ts +35 -0
- package/types/src/protection/PasswordHasher.d.ts.map +1 -0
- package/types/src/protection/index.d.ts +6 -0
- package/types/src/protection/index.d.ts.map +1 -0
- package/types/src/resource/IResource.d.ts +98 -0
- package/types/src/resource/IResource.d.ts.map +1 -0
- package/types/src/resource/IResourceCollection.d.ts +96 -0
- package/types/src/resource/IResourceCollection.d.ts.map +1 -0
- package/types/src/resource/Resource.d.ts +39 -0
- package/types/src/resource/Resource.d.ts.map +1 -0
- package/types/src/resource/ResourceCollection.d.ts +19 -0
- package/types/src/resource/ResourceCollection.d.ts.map +1 -0
- package/types/src/resource/_ResourceMessages.d.ts +4 -0
- package/types/src/resource/_ResourceMessages.d.ts.map +1 -0
- package/types/src/resource/index.d.ts +5 -0
- package/types/src/resource/index.d.ts.map +1 -0
- package/types/src/resource/resourceKinds.d.ts +23 -0
- package/types/src/resource/resourceKinds.d.ts.map +1 -0
- package/types/src/richData/index.d.ts +1 -0
- package/types/src/richData/index.d.ts.map +1 -0
- package/types/src/scripting/FunctionCollection.d.ts +88 -0
- package/types/src/scripting/FunctionCollection.d.ts.map +1 -0
- package/types/src/scripting/IFunctionCollection.d.ts +208 -0
- package/types/src/scripting/IFunctionCollection.d.ts.map +1 -0
- package/types/src/scripting/IModule.d.ts +82 -0
- package/types/src/scripting/IModule.d.ts.map +1 -0
- package/types/src/scripting/IModuleCollection.d.ts +79 -0
- package/types/src/scripting/IModuleCollection.d.ts.map +1 -0
- package/types/src/scripting/IScript.d.ts +289 -0
- package/types/src/scripting/IScript.d.ts.map +1 -0
- package/types/src/scripting/ITypedFunction.d.ts +61 -0
- package/types/src/scripting/ITypedFunction.d.ts.map +1 -0
- package/types/src/scripting/MacroFunction.d.ts +15 -0
- package/types/src/scripting/MacroFunction.d.ts.map +1 -0
- package/types/src/scripting/Module.d.ts +39 -0
- package/types/src/scripting/Module.d.ts.map +1 -0
- package/types/src/scripting/ModuleCollection.d.ts +56 -0
- package/types/src/scripting/ModuleCollection.d.ts.map +1 -0
- package/types/src/scripting/Runtime.d.ts +16 -0
- package/types/src/scripting/Runtime.d.ts.map +1 -0
- package/types/src/scripting/Scripts.d.ts +79 -0
- package/types/src/scripting/Scripts.d.ts.map +1 -0
- package/types/src/scripting/TypedFunction.d.ts +161 -0
- package/types/src/scripting/TypedFunction.d.ts.map +1 -0
- package/types/src/scripting/_FunctionIndex.d.ts +111 -0
- package/types/src/scripting/_FunctionIndex.d.ts.map +1 -0
- package/types/src/scripting/_FunctionMessages.d.ts +6 -0
- package/types/src/scripting/_FunctionMessages.d.ts.map +1 -0
- package/types/src/scripting/_ModuleUtils.d.ts +5 -0
- package/types/src/scripting/_ModuleUtils.d.ts.map +1 -0
- package/types/src/scripting/_ScriptUtils.d.ts +18 -0
- package/types/src/scripting/_ScriptUtils.d.ts.map +1 -0
- package/types/src/scripting/enumManifest.browser.d.ts +9 -0
- package/types/src/scripting/enumManifest.browser.d.ts.map +1 -0
- package/types/src/scripting/enumManifest.node.d.ts +13 -0
- package/types/src/scripting/enumManifest.node.d.ts.map +1 -0
- package/types/src/scripting/index.d.ts +4 -0
- package/types/src/scripting/index.d.ts.map +1 -0
- package/types/src/selection/IRangeSelection.d.ts +307 -0
- package/types/src/selection/IRangeSelection.d.ts.map +1 -0
- package/types/src/selection/RangeSelection.d.ts +144 -0
- package/types/src/selection/RangeSelection.d.ts.map +1 -0
- package/types/src/selection/_RangeSelectionUtils.d.ts +32 -0
- package/types/src/selection/_RangeSelectionUtils.d.ts.map +1 -0
- package/types/src/selection/index.d.ts +2 -0
- package/types/src/selection/index.d.ts.map +1 -0
- package/types/src/shape/IShape.d.ts +279 -0
- package/types/src/shape/IShape.d.ts.map +1 -0
- package/types/src/shape/Shape.d.ts +54 -0
- package/types/src/shape/Shape.d.ts.map +1 -0
- package/types/src/shape/index.d.ts +2 -0
- package/types/src/shape/index.d.ts.map +1 -0
- package/types/src/sheet/CellRegion.d.ts +106 -0
- package/types/src/sheet/CellRegion.d.ts.map +1 -0
- package/types/src/sheet/ICellContainerOptions.d.ts +97 -0
- package/types/src/sheet/ICellContainerOptions.d.ts.map +1 -0
- package/types/src/sheet/ISheet.d.ts +1074 -0
- package/types/src/sheet/ISheet.d.ts.map +1 -0
- package/types/src/sheet/ISheetCollection.d.ts +70 -0
- package/types/src/sheet/ISheetCollection.d.ts.map +1 -0
- package/types/src/sheet/NamedCellRange.d.ts +45 -0
- package/types/src/sheet/NamedCellRange.d.ts.map +1 -0
- package/types/src/sheet/NamedRange.d.ts +30 -0
- package/types/src/sheet/NamedRange.d.ts.map +1 -0
- package/types/src/sheet/Sheet.d.ts +1068 -0
- package/types/src/sheet/Sheet.d.ts.map +1 -0
- package/types/src/sheet/SheetCell.d.ts +335 -0
- package/types/src/sheet/SheetCell.d.ts.map +1 -0
- package/types/src/sheet/SheetCollection.d.ts +18 -0
- package/types/src/sheet/SheetCollection.d.ts.map +1 -0
- package/types/src/sheet/SheetRange.d.ts +362 -0
- package/types/src/sheet/SheetRange.d.ts.map +1 -0
- package/types/src/sheet/SheetRanges.d.ts +225 -0
- package/types/src/sheet/SheetRanges.d.ts.map +1 -0
- package/types/src/sheet/_CopyUtils.d.ts +33 -0
- package/types/src/sheet/_CopyUtils.d.ts.map +1 -0
- package/types/src/sheet/_InvalidSheetRange.d.ts +70 -0
- package/types/src/sheet/_InvalidSheetRange.d.ts.map +1 -0
- package/types/src/sheet/_SheetAutoFitUtils.d.ts +18 -0
- package/types/src/sheet/_SheetAutoFitUtils.d.ts.map +1 -0
- package/types/src/sheet/_SheetCoords.d.ts +54 -0
- package/types/src/sheet/_SheetCoords.d.ts.map +1 -0
- package/types/src/sheet/_SheetFilterUtils.d.ts +9 -0
- package/types/src/sheet/_SheetFilterUtils.d.ts.map +1 -0
- package/types/src/sheet/_SheetMessages.d.ts +11 -0
- package/types/src/sheet/_SheetMessages.d.ts.map +1 -0
- package/types/src/sheet/_SheetMutations.d.ts +137 -0
- package/types/src/sheet/_SheetMutations.d.ts.map +1 -0
- package/types/src/sheet/_SheetSortUtils.d.ts +9 -0
- package/types/src/sheet/_SheetSortUtils.d.ts.map +1 -0
- package/types/src/sheet/_SheetStateReader.d.ts +161 -0
- package/types/src/sheet/_SheetStateReader.d.ts.map +1 -0
- package/types/src/sheet/_SheetStateTypes.d.ts +446 -0
- package/types/src/sheet/_SheetStateTypes.d.ts.map +1 -0
- package/types/src/sheet/_SheetUtils.d.ts +265 -0
- package/types/src/sheet/_SheetUtils.d.ts.map +1 -0
- package/types/src/sheet/clipboard/IHTMLParser.d.ts +92 -0
- package/types/src/sheet/clipboard/IHTMLParser.d.ts.map +1 -0
- package/types/src/sheet/clipboard/RangeClipboardItems.d.ts +55 -0
- package/types/src/sheet/clipboard/RangeClipboardItems.d.ts.map +1 -0
- package/types/src/sheet/clipboard/SheetHTMLTableParser.d.ts +29 -0
- package/types/src/sheet/clipboard/SheetHTMLTableParser.d.ts.map +1 -0
- package/types/src/sheet/clipboard/SheetHTMLTableWriter.d.ts +46 -0
- package/types/src/sheet/clipboard/SheetHTMLTableWriter.d.ts.map +1 -0
- package/types/src/sheet/clipboard/_ClipboardUtils.d.ts +10 -0
- package/types/src/sheet/clipboard/_ClipboardUtils.d.ts.map +1 -0
- package/types/src/sheet/clipboard/index.d.ts +2 -0
- package/types/src/sheet/clipboard/index.d.ts.map +1 -0
- package/types/src/sheet/index.d.ts +6 -0
- package/types/src/sheet/index.d.ts.map +1 -0
- package/types/src/sheet/listener/RangesListener.d.ts +32 -0
- package/types/src/sheet/listener/RangesListener.d.ts.map +1 -0
- package/types/src/sheet/listener/RangesListenerEntry.d.ts +19 -0
- package/types/src/sheet/listener/RangesListenerEntry.d.ts.map +1 -0
- package/types/src/sheet/listener/index.d.ts +3 -0
- package/types/src/sheet/listener/index.d.ts.map +1 -0
- package/types/src/sheet/spatial/MergeEntry.d.ts +17 -0
- package/types/src/sheet/spatial/MergeEntry.d.ts.map +1 -0
- package/types/src/sheet/spatial/index.d.ts +2 -0
- package/types/src/sheet/spatial/index.d.ts.map +1 -0
- package/types/src/sheet/style/SheetCellStyle.d.ts +540 -0
- package/types/src/sheet/style/SheetCellStyle.d.ts.map +1 -0
- package/types/src/sheet/style/SheetDirectStyle.d.ts +130 -0
- package/types/src/sheet/style/SheetDirectStyle.d.ts.map +1 -0
- package/types/src/sheet/style/SheetNamedStyle.d.ts +47 -0
- package/types/src/sheet/style/SheetNamedStyle.d.ts.map +1 -0
- package/types/src/sheet/style/SheetTableStyle.d.ts +47 -0
- package/types/src/sheet/style/SheetTableStyle.d.ts.map +1 -0
- package/types/src/sheet/style/UsedRangeSpatialMap.d.ts +80 -0
- package/types/src/sheet/style/UsedRangeSpatialMap.d.ts.map +1 -0
- package/types/src/sheet/style/_Resolvers.d.ts +41 -0
- package/types/src/sheet/style/_Resolvers.d.ts.map +1 -0
- package/types/src/sheet/style/_StyleUtils.d.ts +69 -0
- package/types/src/sheet/style/_StyleUtils.d.ts.map +1 -0
- package/types/src/sheet/style/index.d.ts +1 -0
- package/types/src/sheet/style/index.d.ts.map +1 -0
- package/types/src/sheetHeader/ISheetHeader.d.ts +217 -0
- package/types/src/sheetHeader/ISheetHeader.d.ts.map +1 -0
- package/types/src/sheetHeader/SheetCellHeader.d.ts +61 -0
- package/types/src/sheetHeader/SheetCellHeader.d.ts.map +1 -0
- package/types/src/sheetHeader/SheetCellHeaderRange.d.ts +54 -0
- package/types/src/sheetHeader/SheetCellHeaderRange.d.ts.map +1 -0
- package/types/src/sheetHeader/SheetCellHeaderRanges.d.ts +46 -0
- package/types/src/sheetHeader/SheetCellHeaderRanges.d.ts.map +1 -0
- package/types/src/sheetHeader/SheetHeader.d.ts +257 -0
- package/types/src/sheetHeader/SheetHeader.d.ts.map +1 -0
- package/types/src/sheetHeader/_HeaderUtils.d.ts +94 -0
- package/types/src/sheetHeader/_HeaderUtils.d.ts.map +1 -0
- package/types/src/sheetHeader/_InvalidSheetHeaderRange.d.ts +7 -0
- package/types/src/sheetHeader/_InvalidSheetHeaderRange.d.ts.map +1 -0
- package/types/src/sheetHeader/index.d.ts +2 -0
- package/types/src/sheetHeader/index.d.ts.map +1 -0
- package/types/src/sheetProtection/ISheetProtection.d.ts +150 -0
- package/types/src/sheetProtection/ISheetProtection.d.ts.map +1 -0
- package/types/src/sheetProtection/SheetProtection.d.ts +39 -0
- package/types/src/sheetProtection/SheetProtection.d.ts.map +1 -0
- package/types/src/sheetProtection/index.d.ts +2 -0
- package/types/src/sheetProtection/index.d.ts.map +1 -0
- package/types/src/sheetView/ISheetView.d.ts +439 -0
- package/types/src/sheetView/ISheetView.d.ts.map +1 -0
- package/types/src/sheetView/SheetView.d.ts +113 -0
- package/types/src/sheetView/SheetView.d.ts.map +1 -0
- package/types/src/sheetView/_SheetViewUtils.d.ts +19 -0
- package/types/src/sheetView/_SheetViewUtils.d.ts.map +1 -0
- package/types/src/sheetView/index.d.ts +2 -0
- package/types/src/sheetView/index.d.ts.map +1 -0
- package/types/src/slicer/ISlicer.d.ts +38 -0
- package/types/src/slicer/ISlicer.d.ts.map +1 -0
- package/types/src/slicer/Slicer.d.ts +41 -0
- package/types/src/slicer/Slicer.d.ts.map +1 -0
- package/types/src/slicer/index.d.ts +2 -0
- package/types/src/slicer/index.d.ts.map +1 -0
- package/types/src/sort/ISort.d.ts +318 -0
- package/types/src/sort/ISort.d.ts.map +1 -0
- package/types/src/sort/Sort.d.ts +48 -0
- package/types/src/sort/Sort.d.ts.map +1 -0
- package/types/src/sort/_SortUtils.d.ts +12 -0
- package/types/src/sort/_SortUtils.d.ts.map +1 -0
- package/types/src/sort/index.d.ts +3 -0
- package/types/src/sort/index.d.ts.map +1 -0
- package/types/src/string/IStringCollection.d.ts +50 -0
- package/types/src/string/IStringCollection.d.ts.map +1 -0
- package/types/src/string/StringCollection.d.ts +26 -0
- package/types/src/string/StringCollection.d.ts.map +1 -0
- package/types/src/string/index.d.ts +3 -0
- package/types/src/string/index.d.ts.map +1 -0
- package/types/src/style/IStyle.d.ts +485 -0
- package/types/src/style/IStyle.d.ts.map +1 -0
- package/types/src/style/IStyleCollection.d.ts +292 -0
- package/types/src/style/IStyleCollection.d.ts.map +1 -0
- package/types/src/style/StyleCollection.d.ts +125 -0
- package/types/src/style/StyleCollection.d.ts.map +1 -0
- package/types/src/style/_BuiltInStyleDefs.d.ts +18 -0
- package/types/src/style/_BuiltInStyleDefs.d.ts.map +1 -0
- package/types/src/style/_BuiltInStyleNames.d.ts +20 -0
- package/types/src/style/_BuiltInStyleNames.d.ts.map +1 -0
- package/types/src/style/index.d.ts +5 -0
- package/types/src/style/index.d.ts.map +1 -0
- package/types/src/table/AnchoredTable.d.ts +349 -0
- package/types/src/table/AnchoredTable.d.ts.map +1 -0
- package/types/src/table/AutoTable.d.ts +64 -0
- package/types/src/table/AutoTable.d.ts.map +1 -0
- package/types/src/table/ITable.d.ts +714 -0
- package/types/src/table/ITable.d.ts.map +1 -0
- package/types/src/table/ITableCollection.d.ts +88 -0
- package/types/src/table/ITableCollection.d.ts.map +1 -0
- package/types/src/table/ITableStyle.d.ts +318 -0
- package/types/src/table/ITableStyle.d.ts.map +1 -0
- package/types/src/table/Table.d.ts +8 -0
- package/types/src/table/Table.d.ts.map +1 -0
- package/types/src/table/TableCollection.d.ts +20 -0
- package/types/src/table/TableCollection.d.ts.map +1 -0
- package/types/src/table/_AutoTableColumn.d.ts +27 -0
- package/types/src/table/_AutoTableColumn.d.ts.map +1 -0
- package/types/src/table/_BuiltInTableStyles.d.ts +9 -0
- package/types/src/table/_BuiltInTableStyles.d.ts.map +1 -0
- package/types/src/table/_FilterField.d.ts +30 -0
- package/types/src/table/_FilterField.d.ts.map +1 -0
- package/types/src/table/_NamedTable.d.ts +84 -0
- package/types/src/table/_NamedTable.d.ts.map +1 -0
- package/types/src/table/_NamedTableSource.d.ts +57 -0
- package/types/src/table/_NamedTableSource.d.ts.map +1 -0
- package/types/src/table/_SortField.d.ts +29 -0
- package/types/src/table/_SortField.d.ts.map +1 -0
- package/types/src/table/_TableColumn.d.ts +51 -0
- package/types/src/table/_TableColumn.d.ts.map +1 -0
- package/types/src/table/_TableMessages.d.ts +5 -0
- package/types/src/table/_TableMessages.d.ts.map +1 -0
- package/types/src/table/_TableUtils.d.ts +94 -0
- package/types/src/table/_TableUtils.d.ts.map +1 -0
- package/types/src/table/index.d.ts +5 -0
- package/types/src/table/index.d.ts.map +1 -0
- package/types/src/text/AutoNumberingScheme.d.ts +175 -0
- package/types/src/text/AutoNumberingScheme.d.ts.map +1 -0
- package/types/src/text/Bullet.d.ts +34 -0
- package/types/src/text/Bullet.d.ts.map +1 -0
- package/types/src/text/IText.d.ts +53 -0
- package/types/src/text/IText.d.ts.map +1 -0
- package/types/src/text/ITextFrame.d.ts +313 -0
- package/types/src/text/ITextFrame.d.ts.map +1 -0
- package/types/src/text/TextBoxAlignment.d.ts +141 -0
- package/types/src/text/TextBoxAlignment.d.ts.map +1 -0
- package/types/src/text/TextFrame.d.ts +43 -0
- package/types/src/text/TextFrame.d.ts.map +1 -0
- package/types/src/text/TextLine.d.ts +24 -0
- package/types/src/text/TextLine.d.ts.map +1 -0
- package/types/src/text/TextParagraph.d.ts +61 -0
- package/types/src/text/TextParagraph.d.ts.map +1 -0
- package/types/src/text/TextRotation.d.ts +106 -0
- package/types/src/text/TextRotation.d.ts.map +1 -0
- package/types/src/text/TextRun.d.ts +85 -0
- package/types/src/text/TextRun.d.ts.map +1 -0
- package/types/src/text/TextUtils.d.ts +165 -0
- package/types/src/text/TextUtils.d.ts.map +1 -0
- package/types/src/text/TextVisitor.d.ts +11 -0
- package/types/src/text/TextVisitor.d.ts.map +1 -0
- package/types/src/text/TextWrapper.d.ts +78 -0
- package/types/src/text/TextWrapper.d.ts.map +1 -0
- package/types/src/text/_TextUtils.d.ts +90 -0
- package/types/src/text/_TextUtils.d.ts.map +1 -0
- package/types/src/text/impl/Phrase.d.ts +3 -0
- package/types/src/text/impl/Phrase.d.ts.map +1 -0
- package/types/src/text/impl/TabStrategy.d.ts +9 -0
- package/types/src/text/impl/TabStrategy.d.ts.map +1 -0
- package/types/src/text/impl/WordWrapUtils.d.ts +6 -0
- package/types/src/text/impl/WordWrapUtils.d.ts.map +1 -0
- package/types/src/text/index.d.ts +7 -0
- package/types/src/text/index.d.ts.map +1 -0
- package/types/src/text/richtext/IStyledFont.d.ts +330 -0
- package/types/src/text/richtext/IStyledFont.d.ts.map +1 -0
- package/types/src/text/richtext/index.d.ts +2 -0
- package/types/src/text/richtext/index.d.ts.map +1 -0
- package/types/src/theme/ITheme.d.ts +252 -0
- package/types/src/theme/ITheme.d.ts.map +1 -0
- package/types/src/theme/IThemeCollection.d.ts +84 -0
- package/types/src/theme/IThemeCollection.d.ts.map +1 -0
- package/types/src/theme/ThemeCollection.d.ts +62 -0
- package/types/src/theme/ThemeCollection.d.ts.map +1 -0
- package/types/src/theme/_BuiltInColorSchemes.d.ts +3 -0
- package/types/src/theme/_BuiltInColorSchemes.d.ts.map +1 -0
- package/types/src/theme/_BuiltInFontSchemes.d.ts +3 -0
- package/types/src/theme/_BuiltInFontSchemes.d.ts.map +1 -0
- package/types/src/theme/_BuiltInThemeDefs.d.ts +3 -0
- package/types/src/theme/_BuiltInThemeDefs.d.ts.map +1 -0
- package/types/src/theme/_ThemeMessages.d.ts +3 -0
- package/types/src/theme/_ThemeMessages.d.ts.map +1 -0
- package/types/src/theme/_ThemeUtils.d.ts +3 -0
- package/types/src/theme/_ThemeUtils.d.ts.map +1 -0
- package/types/src/theme/index.d.ts +4 -0
- package/types/src/theme/index.d.ts.map +1 -0
- package/types/src/transaction/ITransaction.d.ts +594 -0
- package/types/src/transaction/ITransaction.d.ts.map +1 -0
- package/types/src/transaction/Transaction.d.ts +184 -0
- package/types/src/transaction/Transaction.d.ts.map +1 -0
- package/types/src/transaction/TransactionSaveStateManager.d.ts +85 -0
- package/types/src/transaction/TransactionSaveStateManager.d.ts.map +1 -0
- package/types/src/transaction/TransactionUndoManager.d.ts +60 -0
- package/types/src/transaction/TransactionUndoManager.d.ts.map +1 -0
- package/types/src/transaction/index.d.ts +5 -0
- package/types/src/transaction/index.d.ts.map +1 -0
- package/types/src/type/ICollection.d.ts +110 -0
- package/types/src/type/ICollection.d.ts.map +1 -0
- package/types/src/type/IProperties.d.ts +51 -0
- package/types/src/type/IProperties.d.ts.map +1 -0
- package/types/src/type/ITypes.d.ts +69 -0
- package/types/src/type/ITypes.d.ts.map +1 -0
- package/types/src/type/Registry.d.ts +66 -0
- package/types/src/type/Registry.d.ts.map +1 -0
- package/types/src/type/index.d.ts +5 -0
- package/types/src/type/index.d.ts.map +1 -0
- package/types/src/utils/GeomUtils.d.ts +61 -0
- package/types/src/utils/GeomUtils.d.ts.map +1 -0
- package/types/src/utils/ObjectPath.d.ts +9 -0
- package/types/src/utils/ObjectPath.d.ts.map +1 -0
- package/types/src/utils/Profiler.d.ts +38 -0
- package/types/src/utils/Profiler.d.ts.map +1 -0
- package/types/src/utils/_CSSUtils.d.ts +156 -0
- package/types/src/utils/_CSSUtils.d.ts.map +1 -0
- package/types/src/utils/_GeomUtils.d.ts +14 -0
- package/types/src/utils/_GeomUtils.d.ts.map +1 -0
- package/types/src/utils/_RangeCoordUtils.d.ts +84 -0
- package/types/src/utils/_RangeCoordUtils.d.ts.map +1 -0
- package/types/src/utils/_RangeSetUtils.d.ts +55 -0
- package/types/src/utils/_RangeSetUtils.d.ts.map +1 -0
- package/types/src/utils/index.d.ts +2 -0
- package/types/src/utils/index.d.ts.map +1 -0
- package/types/src/workbook/IWorkbook.d.ts +711 -0
- package/types/src/workbook/IWorkbook.d.ts.map +1 -0
- package/types/src/workbook/Workbook.d.ts +342 -0
- package/types/src/workbook/Workbook.d.ts.map +1 -0
- package/types/src/workbook/WorkbookRange.d.ts +25 -0
- package/types/src/workbook/WorkbookRange.d.ts.map +1 -0
- package/types/src/workbook/WorkbookRanges.d.ts +39 -0
- package/types/src/workbook/WorkbookRanges.d.ts.map +1 -0
- package/types/src/workbook/_WorkbookMessages.d.ts +8 -0
- package/types/src/workbook/_WorkbookMessages.d.ts.map +1 -0
- package/types/src/workbook/_WorkbookUtils.d.ts +35 -0
- package/types/src/workbook/_WorkbookUtils.d.ts.map +1 -0
- package/types/src/workbook/index.d.ts +3 -0
- package/types/src/workbook/index.d.ts.map +1 -0
- package/types/src/workbookProtection/IWorkbookProtection.d.ts +57 -0
- package/types/src/workbookProtection/IWorkbookProtection.d.ts.map +1 -0
- package/types/src/workbookProtection/WorkbookProtection.d.ts +14 -0
- package/types/src/workbookProtection/WorkbookProtection.d.ts.map +1 -0
- package/types/src/workbookProtection/index.d.ts +2 -0
- package/types/src/workbookProtection/index.d.ts.map +1 -0
- package/types/src/workbookView/IWorkbookView.d.ts +134 -0
- package/types/src/workbookView/IWorkbookView.d.ts.map +1 -0
- package/types/src/workbookView/WorkbookView.d.ts +49 -0
- package/types/src/workbookView/WorkbookView.d.ts.map +1 -0
- package/types/src/workbookView/index.d.ts +3 -0
- package/types/src/workbookView/index.d.ts.map +1 -0
- package/browser/cjs/B1wkCHMcDuFkMcC_.cjs +0 -6
- package/browser/cjs/B6GPcN051NmcYcIT.cjs +0 -124
- package/browser/cjs/BLBAZ-Bmj0EAhunn.cjs +0 -6
- package/browser/cjs/BP8dBZEDNeacQUNp.cjs +0 -7
- package/browser/cjs/BhNultME1o9xbmcX.cjs +0 -15
- package/browser/cjs/Bm_Mc6TDFCZ1OJNj.cjs +0 -6
- package/browser/cjs/Bo1CE3hgxUD5DGqu.cjs +0 -6
- package/browser/cjs/Btp8A0kzb6cHSEMD.cjs +0 -6
- package/browser/cjs/BvS2Hclafqxj6DCP.cjs +0 -6
- package/browser/cjs/CASsDxt2bA8JHiEW.cjs +0 -6
- package/browser/cjs/CI7HTC82ehwZZ7G9.cjs +0 -55
- package/browser/cjs/CNw4tHphpF3kplDH.cjs +0 -6
- package/browser/cjs/CO7SAK1ru6qnh7fr.cjs +0 -6
- package/browser/cjs/CdLUUmZCUY5uWnq5.cjs +0 -6
- package/browser/cjs/Cegi9isUAUZKUYFl.cjs +0 -6
- package/browser/cjs/CnlnOI_NWWeETB4i.cjs +0 -6
- package/browser/cjs/CphmaCdyCfgLRsS0.cjs +0 -6
- package/browser/cjs/D0Qme7PcsKfdtShi.cjs +0 -6
- package/browser/cjs/D74bWkyzhU8E2TDh.cjs +0 -6
- package/browser/cjs/DFQA35q7KQ-zS2eo.cjs +0 -6
- package/browser/cjs/DK27kwlwz0N4_IpD.cjs +0 -6
- package/browser/cjs/DMfUZBX5dMS-QcFB.cjs +0 -6
- package/browser/cjs/DTrbxLKRbIsj3mPI.cjs +0 -6
- package/browser/cjs/DUbyVNEdEpgkjI-U.cjs +0 -6
- package/browser/cjs/DUiZ8WcVcUyjfILT.cjs +0 -6
- package/browser/cjs/DzZ_6y4OF7HzFZLT.cjs +0 -6
- package/browser/cjs/vQgVD2EniUvkeXnq.cjs +0 -6
- package/browser/esm/B8depZMfw4f8vJ6H.mjs +0 -10
- package/browser/esm/B9z2sURkI9ThbLxE.mjs +0 -10
- package/browser/esm/BDSqdyFcw4FRrODg.mjs +0 -23823
- package/browser/esm/BLoU0uz84A8fWYom.mjs +0 -10
- package/browser/esm/BgKy-xWSJeSV_EyO.mjs +0 -10
- package/browser/esm/Bi2_8iLEY_M-v_34.mjs +0 -10
- package/browser/esm/Bzs_r45vqhZAtTZK.mjs +0 -10
- package/browser/esm/C39Yfk__mPOF8auo.mjs +0 -10
- package/browser/esm/C4EnSMaP8fTEJmhu.mjs +0 -10
- package/browser/esm/CWj2Ts01muSR6zp-.mjs +0 -12
- package/browser/esm/Cd2b3Z4DxOR0M3qa.mjs +0 -4022
- package/browser/esm/Cg7YNnt2uhmFG_3d.mjs +0 -10
- package/browser/esm/CkU9J_RtpNfpxh0y.mjs +0 -10
- package/browser/esm/D0Mb17_7UFEFNmkU.mjs +0 -426
- package/browser/esm/D6VvBNUOfq8QUBY5.mjs +0 -10
- package/browser/esm/DE0iHIHhP7sczC_y.mjs +0 -10
- package/browser/esm/DORXFXgRUsjkR1kA.mjs +0 -10
- package/browser/esm/DTPLUnlOvF2feqR4.mjs +0 -10
- package/browser/esm/DTzUiMAnLD_Zuf0f.mjs +0 -10
- package/browser/esm/D_lQo-PErOoj-8tN.mjs +0 -10
- package/browser/esm/DbK0GAKpj9hwwFwY.mjs +0 -10
- package/browser/esm/DflesN5VzS43jsHK.mjs +0 -5653
- package/browser/esm/DoMqoQP6F7OPue_g.mjs +0 -10
- package/browser/esm/DrIkV6ixO7gbuv7Q.mjs +0 -10
- package/browser/esm/mxYovIi79sCzcZtQ.mjs +0 -10
- package/browser/esm/oRsIla0R_H7slM9k.mjs +0 -10
- package/browser/esm/u5XTTNCFdsbCZ-ud.mjs +0 -10
- package/node/esm/3vOMW8PI4UI73pTa.mjs +0 -10
- package/node/esm/B9z2sURkI9ThbLxE.mjs +0 -10
- package/node/esm/BE2XMKirjoBI9zkt.mjs +0 -1072
- package/node/esm/BL_7m0SH43tASZc8.mjs +0 -10
- package/node/esm/BLoU0uz84A8fWYom.mjs +0 -10
- package/node/esm/BNoPG6CBaybfp_G7.mjs +0 -10
- package/node/esm/BgKy-xWSJeSV_EyO.mjs +0 -10
- package/node/esm/Bi2_8iLEY_M-v_34.mjs +0 -10
- package/node/esm/C4EnSMaP8fTEJmhu.mjs +0 -10
- package/node/esm/CS080xy3HgmgAFgx.mjs +0 -10
- package/node/esm/Cg7YNnt2uhmFG_3d.mjs +0 -10
- package/node/esm/D6VvBNUOfq8QUBY5.mjs +0 -10
- package/node/esm/D7cm1_99nK7c_-6L.mjs +0 -13
- package/node/esm/DE0iHIHhP7sczC_y.mjs +0 -10
- package/node/esm/DElHitSTYjDdkUx1.mjs +0 -10
- package/node/esm/DORXFXgRUsjkR1kA.mjs +0 -10
- package/node/esm/DP7a0Jrz8vTZnv2W.mjs +0 -10
- package/node/esm/DTzUiMAnLD_Zuf0f.mjs +0 -10
- package/node/esm/D_lQo-PErOoj-8tN.mjs +0 -10
- package/node/esm/DbK0GAKpj9hwwFwY.mjs +0 -10
- package/node/esm/DoMqoQP6F7OPue_g.mjs +0 -10
- package/node/esm/mxYovIi79sCzcZtQ.mjs +0 -10
- package/node/esm/oRsIla0R_H7slM9k.mjs +0 -10
- package/node/esm/sVuz1UjytOtK5gck.mjs +0 -2458
- package/node/esm/u5XTTNCFdsbCZ-ud.mjs +0 -10
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
import { FormulaError, IFunction, IRuntime } from '@sheetxl/primitives';
|
|
2
|
+
import { ICalculation } from '../ICalculation';
|
|
3
|
+
import { ISymbolRegistry } from '../symbol';
|
|
4
|
+
import { TokenType } from '../TokenType';
|
|
5
|
+
import { CompiledFormula, ParseError } from './Types';
|
|
6
|
+
import { ASTNode } from './ASTTypes';
|
|
7
|
+
import { FormulaSeparators } from './FormulaSeparators';
|
|
8
|
+
/**
|
|
9
|
+
* Walks the ancestor path (root → parent order) and returns the nearest ancestor
|
|
10
|
+
* matching the given type, or undefined if none exists.
|
|
11
|
+
*/
|
|
12
|
+
export declare function findAncestor(path: ASTNode[], type: TokenType): ASTNode | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* @param preserveExpression Editing mode: token `text` must reproduce the TYPED source exactly, so a
|
|
15
|
+
* scoped reference prepends its raw typed sheet prefix (`value.scopeImage` — `sheet2!`, `'Sheet 1'!`).
|
|
16
|
+
* Display mode (`false`) leaves `text` as the bare part; `resolveTokenSymbols` re-synthesizes the
|
|
17
|
+
* qualifier from the resolved (rename-safe) sheet name.
|
|
18
|
+
*/
|
|
19
|
+
export declare function generateFormulaTokens(rootNode: ASTNode, preserveExpression?: boolean, emitSeparators?: FormulaSeparators): ICalculation.FormulaToken[];
|
|
20
|
+
/**
|
|
21
|
+
* Concatenate a token stream back to source text (each token's raw `text`, falling back to a string
|
|
22
|
+
* `value`; synthesized tokens like `Empty` contribute nothing). Used by the editing-mode compiler to
|
|
23
|
+
* verify a token stream is FAITHFUL — that it reproduces the typed expression char-for-char — before
|
|
24
|
+
* handing it to an editor that lays colored spans over the raw text by offset.
|
|
25
|
+
*
|
|
26
|
+
* A scoped reference's token captures only its own part (`A1`, `MyName`, `#REF!`) — the sheet
|
|
27
|
+
* qualifier is re-synthesized from the structured `value`'s scope (a Cell's coords, a Named's
|
|
28
|
+
* NamedReference, an error reference's ErrorRef, resolved through `symbols` when linked), mirroring
|
|
29
|
+
* what the display layer (`resolveTokenSymbols`) does, so `Sheet2!A1`, `Sheet1!MyName` and
|
|
30
|
+
* `Data!#REF!` reconstruct.
|
|
31
|
+
*/
|
|
32
|
+
export declare function tokensToText(tokens: readonly ICalculation.FormulaToken[], symbols?: ISymbolRegistry | null): string;
|
|
33
|
+
/**
|
|
34
|
+
* Returns the tokens for the subtree rooted at the node with the given evalIndex.
|
|
35
|
+
*/
|
|
36
|
+
export declare function getSubtreeTokens(ast: ASTNode, evalIndex: number): ICalculation.FormulaToken[];
|
|
37
|
+
/**
|
|
38
|
+
* Post-processes the AST after {@link linkSymbols} to normalize every
|
|
39
|
+
* `TableReference` node so its `value` holds a pre-built
|
|
40
|
+
* {@link StructuredReference} query object instead of a raw table-name string.
|
|
41
|
+
*
|
|
42
|
+
* @remarks
|
|
43
|
+
* - Must run **after** {@link linkSymbols} (stable IDs already in place) and
|
|
44
|
+
* **before** {@link compileAST}.
|
|
45
|
+
* - Child nodes (TableColumn, TableSpecifier, Prefix '@', etc.) remain in
|
|
46
|
+
* `inputs` for formula-text rendering. They are skipped during compilation
|
|
47
|
+
* via a {@link findAncestor} path check on `TokenType.TableReference`.
|
|
48
|
+
* - Both explicit refs (`Table1[Col]`, value = stable ID) and implicit refs
|
|
49
|
+
* (`[Col]`, value = `''`) are handled identically — the `tableId` field of
|
|
50
|
+
* the resulting {@link StructuredReference} carries the distinction.
|
|
51
|
+
*/
|
|
52
|
+
export declare function normalizeStructuredRefs(ast: ASTNode): ASTNode;
|
|
53
|
+
/**
|
|
54
|
+
* Rewrites `[#This Row]` specifier syntax inside `TableReference` inputs to the
|
|
55
|
+
* canonical `@` prefix form used for internal storage and display.
|
|
56
|
+
*
|
|
57
|
+
* `Table1[[#This Row],[Column]]` → `Table1[@[Column]]`
|
|
58
|
+
*
|
|
59
|
+
* Call after parsing from XLSX (import / setValue). Not called during transient
|
|
60
|
+
* UI editing so the formula bar preserves exactly what the user typed.
|
|
61
|
+
*
|
|
62
|
+
* @returns A new AST (structurally shared where unchanged).
|
|
63
|
+
*/
|
|
64
|
+
export declare function rewriteThisRowToAt(ast: ASTNode): ASTNode;
|
|
65
|
+
/**
|
|
66
|
+
* Sorts the items inside every `TableReference` into Excel's canonical order — section specifiers
|
|
67
|
+
* in band order (`#All` | `#Headers`, `#Data`, `#Totals`), then the column selector.
|
|
68
|
+
*
|
|
69
|
+
* `Table1[[#Data],[#Headers]]` → `Table1[[#Headers],[#Data]]`
|
|
70
|
+
*
|
|
71
|
+
* @remarks
|
|
72
|
+
* Excel ACCEPTS the out-of-order form on entry and silently rewrites it on commit, so this is a
|
|
73
|
+
* round-trip requirement, not a correctness one: evaluation never cared (`_buildStructuredReference`
|
|
74
|
+
* reduces the items to order-independent flags), but a file written in the typed order does not
|
|
75
|
+
* match what Excel would have stored.
|
|
76
|
+
*
|
|
77
|
+
* Commit-path only — `preserveExpression` (formula-editor) mode keeps exactly what the user typed,
|
|
78
|
+
* the same boundary {@link rewriteThisRowToAt} observes. Runs AFTER that rewrite, which has already
|
|
79
|
+
* folded `[#This Row]` into the `@` prefix, so only the four band specifiers need a rank.
|
|
80
|
+
*
|
|
81
|
+
* @returns A new AST (structurally shared where unchanged).
|
|
82
|
+
*/
|
|
83
|
+
export declare function reorderStructuredRefItems(ast: ASTNode): ASTNode;
|
|
84
|
+
export declare function compileAST(runtime: IRuntime, symbols: ISymbolRegistry | undefined, original: ASTNode, preserveExpression?: boolean, error?: ParseError | null, getFunction?: ((name: string) => IFunction | null) | null): CompiledFormula;
|
|
85
|
+
/**
|
|
86
|
+
* Convert a chevrotain error into a {@link FormulaError.Parse}.
|
|
87
|
+
*
|
|
88
|
+
* The message is the raw error text (`Missing closing parenthesis ')'`) — NOT prefixed with its
|
|
89
|
+
* position. Position lives structurally on the error (`getDetails()` → `{ line, column }`), so a
|
|
90
|
+
* consumer decides how to present it: a tooltip can show just the text, while a caller that wants the
|
|
91
|
+
* caret can read the coordinates (or run them back through {@link ParserUtils.formatParseErrorMessage}).
|
|
92
|
+
*
|
|
93
|
+
* @param error Any error from chevrotain.
|
|
94
|
+
*/
|
|
95
|
+
export declare function formatChevrotainError(error: any): FormulaError.Known;
|
|
96
|
+
export declare function copyTrivia(target: ASTNode, source: ASTNode): ASTNode;
|
|
97
|
+
export declare const binaryOperatorsPrecedence: readonly string[][];
|
|
98
|
+
export declare const rangeSpanOperators: readonly string[];
|
|
99
|
+
export declare const rangedOperators: readonly string[];
|
|
100
|
+
export declare const rangesOperators: readonly string[];
|
|
101
|
+
/**
|
|
102
|
+
* Used to determine is a node is a range node for writing dynamic arrays to Excel
|
|
103
|
+
*/
|
|
104
|
+
export declare const isRangedNode: (node: ASTNode) => boolean;
|
|
105
|
+
/**
|
|
106
|
+
* Finds an implicit-intersection operand that cannot possibly be a reference, or `null` if the
|
|
107
|
+
* formula has none.
|
|
108
|
+
*
|
|
109
|
+
* @param root The root of the formula's AST.
|
|
110
|
+
* @param getFunction Resolves a function's stableId to its declaration, or `null`.
|
|
111
|
+
*
|
|
112
|
+
* @remarks
|
|
113
|
+
* Implicit intersection (the whitespace operator) is defined over LOCATIONS — `A1:A10 B1:B10` is
|
|
114
|
+
* the cells they have in common. Handing it something that computes a value is not a runtime
|
|
115
|
+
* failure, it is a formula that never had a meaning, and Excel refuses the entry outright rather
|
|
116
|
+
* than evaluating it (verified against Excel 16.0 by
|
|
117
|
+
* `spreadsheetbench/formula-tests/probe-space-paren.ps1`, which walks the operand kinds:
|
|
118
|
+
* `INDEX(...)` — reference-returning — is accepted on both sides, `RANDBETWEEN(...)`, `(3)`,
|
|
119
|
+
* `(H1:H5+0)` and `TRUE` are all rejected).
|
|
120
|
+
*
|
|
121
|
+
* This matters most for a formula that LOOKS like a function call: `=SEQUENCE (3)` is not a call at
|
|
122
|
+
* all, because the space keeps the `(` from binding to the name — it is the name `SEQUENCE`
|
|
123
|
+
* intersected with `(3)`. Left to evaluate, the answer depended on what the operands happened to
|
|
124
|
+
* lex as, so one typo produced #NAME?, #REF! or #NULL! for the same mistake.
|
|
125
|
+
*
|
|
126
|
+
* The one place we knowingly diverge from Excel: when the LEFT operand is a built-in function name
|
|
127
|
+
* (`=SUM (H1:H5)`), Excel rejects it because `SUM` is reserved and cannot be a name, while we let it
|
|
128
|
+
* resolve and report #NAME?. Recognizing that case needs a function table at PARSE time, which the
|
|
129
|
+
* parse path has no access to — and "SUM is not a defined name" is an honest answer.
|
|
130
|
+
*/
|
|
131
|
+
export declare const findNonReferenceIntersectionOperand: (root: ASTNode, getFunction: ((name: string) => IFunction | null) | null) => ASTNode | null;
|
|
132
|
+
/**
|
|
133
|
+
* Finds an array constant whose rows are not all the same length — a JAGGED literal such as
|
|
134
|
+
* `{1,2;3}`.
|
|
135
|
+
*
|
|
136
|
+
* @param root The root of the formula's AST.
|
|
137
|
+
* @returns A human-readable description of the first jagged array, or `null`.
|
|
138
|
+
*
|
|
139
|
+
* @remarks
|
|
140
|
+
* **An array constant is rectangular, or it is not a formula.** Excel refuses a jagged one at
|
|
141
|
+
* ENTRY; it does not pad the short row with `#N/A`. The refusal is about SHAPE alone — neither
|
|
142
|
+
* content nor position changes it. Measured against Excel 16.0
|
|
143
|
+
* (`spreadsheetbench/formula-tests/probe-jagged-array.ps1`): `{1,2;3}`, `{1;2,3}`, `{1,2;3;4,5}`,
|
|
144
|
+
* `{1,2;3,4,5}`, `{"a","b";"c"}`, `{TRUE,FALSE;TRUE}`, `{#REF!,1;2}`, `SUM({1,2;3})`,
|
|
145
|
+
* `SUM(1,{1,2;3})`, `{1,2;3}+1` and `INDEX({1,2;3},1,1)` are all refused, while every rectangular
|
|
146
|
+
* control (`{1}`, `{1,2,3}`, `{1;2;3}`, `{1,2;3,4}`, `{1,2;3,4;5,6}`) is accepted and spills to
|
|
147
|
+
* exactly its written shape.
|
|
148
|
+
*
|
|
149
|
+
* Deciding it HERE rather than at evaluation is the same lesson as `findArityViolation`, and for a
|
|
150
|
+
* sharper reason: accepting a jagged literal is not a harmless superset, because the writer emits
|
|
151
|
+
* whatever parsed. A jagged `<f>` ON DISK makes the workbook UNOPENABLE — Excel declines the whole
|
|
152
|
+
* file rather than repairing the one cell (`probe-jagged-array2.ps1` patches `{1,2;3}` into an
|
|
153
|
+
* otherwise healthy saved sheet, after which `Workbooks.Open` fails outright while the unpatched
|
|
154
|
+
* seed opens fine). So this is a roundtrip guard, not merely entry parity.
|
|
155
|
+
*
|
|
156
|
+
* Reported here rather than in `FormulaParser._ruleLiteralArray` because on an Array node
|
|
157
|
+
* `error` already MEANS "the closing brace was never consumed" — `CompilerUtils`' token emitter
|
|
158
|
+
* suppresses the `}` when it is set. Since a parse-errored formula re-images from its tokens,
|
|
159
|
+
* flagging the node would silently rewrite the user's text to `={1,2;3`.
|
|
160
|
+
*/
|
|
161
|
+
export declare const findJaggedArrayLiteral: (root: ASTNode) => string | null;
|
|
162
|
+
/**
|
|
163
|
+
* Finds a call whose ARGUMENT COUNT the declaration cannot accept — too many, or a required
|
|
164
|
+
* parameter with no argument.
|
|
165
|
+
*
|
|
166
|
+
* @param root The root of the formula's AST.
|
|
167
|
+
* @param getFunction Resolves a function name to its declaration; `null` disables the check.
|
|
168
|
+
* @returns A human-readable description of the first violation, or `null`.
|
|
169
|
+
*
|
|
170
|
+
* @remarks
|
|
171
|
+
* Arity is decidable from the AST — argument count from the call, declared arity from the
|
|
172
|
+
* registry — so by the "only the compiler emits `#PARSE!`" rule it belongs here. Excel agrees:
|
|
173
|
+
* `=IMAGE()` with too few arguments cannot be typed in at all.
|
|
174
|
+
*
|
|
175
|
+
* **This is the "when" half of CALC-ISSUES item 29, and it converts a silent failure into a
|
|
176
|
+
* loud one.** Previously arity was checked during EVALUATION (`TypedFunction`'s
|
|
177
|
+
* `RuntimeError.ARGS_TOO_MANY` / `PARAM_MISSING`), which raised `#PARSE!` at calc time —
|
|
178
|
+
* and `#PARSE!` is precisely what `WorksheetEmitter` refuses to write, so the cell was
|
|
179
|
+
* downgraded to a literal string and the formula vanished on save with no warning. Deciding
|
|
180
|
+
* it at compile time surfaces it where the user is typing.
|
|
181
|
+
*
|
|
182
|
+
* It does NOT fix a WRONG declaration: an arity stricter than Excel's still rejects a legal
|
|
183
|
+
* call, just earlier. That is the other half of item 29 and needs the COM sweep. The runtime
|
|
184
|
+
* checks stay as a backstop for paths that never compile (`IFunction.execute`, item 35).
|
|
185
|
+
*/
|
|
186
|
+
export declare const findArityViolation: (root: ASTNode, getFunction: ((name: string) => IFunction | null) | null) => string | null;
|
|
187
|
+
/**
|
|
188
|
+
* Finds an argument that is STATICALLY KNOWN to compute a value sitting in a reference-only
|
|
189
|
+
* (`r:'p'`) parameter — `COLUMN(1)`, `OFFSET(ABS(A1),1,1)`, `SUBTOTAL(9,A1+0)`.
|
|
190
|
+
*
|
|
191
|
+
* @param root The root of the formula's AST.
|
|
192
|
+
* @param getFunction Resolves a function name to its declaration; `null` disables the check.
|
|
193
|
+
* @returns The offending argument node, or `null`.
|
|
194
|
+
*
|
|
195
|
+
* @remarks
|
|
196
|
+
* **Excel decides this at ENTRY, and so must we** (measured over 34 operand kinds x
|
|
197
|
+
* `OFFSET`/`COLUMN`, `spreadsheetbench/formula-tests/probe-ref-slot-entry-boundary.ps1`; both
|
|
198
|
+
* outers agree on every row, so this is the SLOT's rule, not one function's validation). Excel
|
|
199
|
+
* has two channels: what it can PROVE is not a reference is refused outright and the formula
|
|
200
|
+
* cannot exist; what it cannot prove is accepted and fails at evaluation with `#VALUE!`. Excel
|
|
201
|
+
* Online persists a refused formula as a literal STRING — measured in a user-authored
|
|
202
|
+
* `error-offset.xlsx`, where `=OFFSET(ABS(a1),1,1)` came back as `<c t="s">` while
|
|
203
|
+
* `=OFFSET(IF(TRUE,1),1,1)` came back as a real `<f>` with a cached `#VALUE!`.
|
|
204
|
+
*
|
|
205
|
+
* Deciding it HERE is what makes that faithful. Previously the runtime guessed from the value's
|
|
206
|
+
* shape and could not tell `IF(TRUE,1)` from a typed `1` once both were the number 1, so it
|
|
207
|
+
* answered `#PARSE!` for a formula Excel accepts — and `#PARSE!` is exactly what
|
|
208
|
+
* `WorksheetEmitter` refuses to write, so the cell was saved as text and the formula was lost.
|
|
209
|
+
*
|
|
210
|
+
* The provability test is the callee's declared RETURN: a scalar return proves it (`ABS`, `SUM`,
|
|
211
|
+
* `IFERROR`), a ranged return does not (`IF`, `CHOOSE`, `INDEX`). Note a ranged return is
|
|
212
|
+
* currently ambiguous between "array" (`SEQUENCE`, `FILTER` — Excel refuses these) and
|
|
213
|
+
* "may be a reference" (`IF`, `INDEX` — Excel accepts), so we are deliberately PERMISSIVE there:
|
|
214
|
+
* those cases keep today's behavioral and stay reachable only by hand, never from an
|
|
215
|
+
* Excel-authored file. Splitting them needs a distinct `unknown` return type (CALC-ISSUES 39).
|
|
216
|
+
*/
|
|
217
|
+
export declare const findValueInReferenceOnlySlot: (root: ASTNode, getFunction: ((name: string) => IFunction | null) | null) => ASTNode | null;
|
|
218
|
+
/**
|
|
219
|
+
* Finds a `Call` whose callee is STATICALLY KNOWN to produce a value — `=SUM(2)(3)`, `=3(1)`,
|
|
220
|
+
* `="x"(1)`, `={1,2}(1)`, `=(1+1)(3)` — which Excel refuses at ENTRY.
|
|
221
|
+
*
|
|
222
|
+
* @param root The root of the formula's AST.
|
|
223
|
+
* @param getFunction Resolves a function name to its declaration; `null` disables the check.
|
|
224
|
+
* @returns The first violation's message, or `null`.
|
|
225
|
+
*
|
|
226
|
+
* @remarks
|
|
227
|
+
* The application design's one rule (§3.1, measured over 34 operands run through BOTH slots):
|
|
228
|
+
* the callee slot and the intersection slot share a single predicate — the operand's declared
|
|
229
|
+
* return must not be provably a value. So this is {@link isDefinitelyNotReferenceNode} asked at a
|
|
230
|
+
* `Call` node's `inputs[0]`, nothing more: a lambda-returning declaration passes (`getLambda()`),
|
|
231
|
+
* an untyped one passes (`IF(TRUE,1,2)(3)` is accepted and fails at runtime — the decisive probe
|
|
232
|
+
* row: no flow analysis, no constant folding), a reference passes (`=A1(3)` is a runtime `#REF!`),
|
|
233
|
+
* and only a provable value is refused.
|
|
234
|
+
*/
|
|
235
|
+
export declare const findInvalidCallee: (root: ASTNode, getFunction: ((name: string) => IFunction | null) | null) => string | null;
|
|
236
|
+
/**
|
|
237
|
+
* Rewrites every call to an UNKNOWN function into a name application —
|
|
238
|
+
* `Call(Named(name), …args)`.
|
|
239
|
+
*
|
|
240
|
+
* @param root The parsed AST (pre-{@link bindScopes}, pre-{@link linkSymbols}).
|
|
241
|
+
* @param getFunction Resolves a function name to its declaration; `null` disables the rewrite.
|
|
242
|
+
* @returns A new root, or the SAME root when nothing changed (copy-on-write).
|
|
243
|
+
*
|
|
244
|
+
* @remarks
|
|
245
|
+
* The lexer's FunctionToken fires on ANY identifier touching a `(`, so `MyLam(3)` — the way a
|
|
246
|
+
* NAMED LAMBDA is called — arrives as a Function node and previously died at `#NAME?` without the
|
|
247
|
+
* name ever being consulted. Excel's model has no function-call node at all (`App { head, args }`,
|
|
248
|
+
* with an unknown head resolving as a name — application §8.1); this rewrite is that rule at the
|
|
249
|
+
* one place it differs for us.
|
|
250
|
+
*
|
|
251
|
+
* What falls out, on purpose:
|
|
252
|
+
* - `=Doubler(3)` against `Doubler = LAMBDA(x,x*2)` resolves the name, gets the lambda value, and
|
|
253
|
+
* applies it — the L2 headline.
|
|
254
|
+
* - The Named callee registers a real `namedIds` edge, so entering `=Doubler(3)` BEFORE the name
|
|
255
|
+
* exists is `#NAME?` that HEALS when the name is defined — a Function node never did.
|
|
256
|
+
* - A genuinely unknown name still answers `#NAME?` (the callee errors and the Call propagates
|
|
257
|
+
* it), and a KNOWN function is never touched, so `_xlfn.`-prefixed spellings and the whole
|
|
258
|
+
* registry path stay exactly as they were.
|
|
259
|
+
*/
|
|
260
|
+
export declare function rewriteUnknownFunctionCalls(root: ASTNode, getFunction: ((name: string) => IFunction | null) | null): ASTNode;
|
|
261
|
+
/**
|
|
262
|
+
* Annotates the `LET`/`LAMBDA` scopes in a parsed AST: each declaration position is marked a
|
|
263
|
+
* BINDER and every use its scope covers is bound to that binder's slot.
|
|
264
|
+
*
|
|
265
|
+
* @param root The parsed AST (post read-transform, pre {@link linkSymbols}).
|
|
266
|
+
* @param getFunction Resolves a function name to its declaration; see {@link _binderKind}.
|
|
267
|
+
* @returns A new root, or the SAME root when nothing is bound (copy-on-write).
|
|
268
|
+
*
|
|
269
|
+
* @remarks
|
|
270
|
+
* **Runs before {@link linkSymbols}, and that is the point.** A bound node is claimed here, so no
|
|
271
|
+
* `NamedFormula` symbol is minted for it, no dependency edge is drawn, and no dead id is left
|
|
272
|
+
* behind: a parameter is not a name. The node stays a `named` node — the public lite view (and so
|
|
273
|
+
* io-xlsx's `_xlpm.` spelling) is unchanged — but it stops being a REFERENCE and reads its value
|
|
274
|
+
* from its binding rather than from the resolver.
|
|
275
|
+
*
|
|
276
|
+
* Declaration positions are purely syntactic, the same rule io-xlsx's `_prefixScopeParameters`
|
|
277
|
+
* proved on the lite tree:
|
|
278
|
+
* - `LAMBDA` — every argument except the last declares; the last is the body.
|
|
279
|
+
* - `LET` — the even-indexed arguments except the last declare, the odd ones are their values, and
|
|
280
|
+
* the last is the body.
|
|
281
|
+
*
|
|
282
|
+
* Binding ORDER is the one rule the shape does not give away, and it is measured: a `LET` name is
|
|
283
|
+
* in scope only from the argument AFTER its own value, so the same spelling in an earlier one is
|
|
284
|
+
* the outer / defined name — `LET(zz,zz,zz)` binds only the third `zz`.
|
|
285
|
+
*
|
|
286
|
+
* Shadowing needs no special case: the environment is a stack and a use takes the INNERMOST
|
|
287
|
+
* binding, so an inner scope's name wins over an outer one's, and a parameter wins over a defined
|
|
288
|
+
* name (it never reaches the resolver at all).
|
|
289
|
+
*/
|
|
290
|
+
export declare function bindScopes(root: ASTNode, getFunction?: ((name: string) => IFunction | null) | null): ASTNode;
|
|
291
|
+
/**
|
|
292
|
+
* Finds a malformed `LET`/`LAMBDA` scope — a shape Excel refuses at ENTRY.
|
|
293
|
+
*
|
|
294
|
+
* @param root The root of the formula's AST.
|
|
295
|
+
* @param getFunction Resolves a function name to its declaration; see {@link _binderKind}.
|
|
296
|
+
* @returns The first violation's message, or `null`.
|
|
297
|
+
*
|
|
298
|
+
* @remarks
|
|
299
|
+
* Same channel and same reason as {@link findArityViolation}: Excel decides these before the
|
|
300
|
+
* formula can exist, so we do too — a refused shape is a parse error, not a cell that evaluates to
|
|
301
|
+
* something. Read from the shipping Excel Online analyzer
|
|
302
|
+
* (`d:/dev/excel-calc-ref/excelOnlineCalc.min.js`, `applySpecificWorksheetFunctionChecks`), which
|
|
303
|
+
* reports `Duplicate_binder` / `Invalid_binder` / `Missing_binder` per declaration and
|
|
304
|
+
* `Insufficient_function_arguments` with `numArgsExpected: max(3, n + 1 + n % 2)` for `LET` — the
|
|
305
|
+
* `n % 2` term being exactly the even-argument-count refusal.
|
|
306
|
+
*
|
|
307
|
+
* Duplicates compare case-INSENSITIVELY (Excel keys them in a `stringCompareCI` map), the same
|
|
308
|
+
* normalization a name comparison gets everywhere else.
|
|
309
|
+
*/
|
|
310
|
+
export declare const findBinderViolation: (root: ASTNode, getFunction: ((name: string) => IFunction | null) | null) => string | null;
|
|
311
|
+
/**
|
|
312
|
+
* Visits the AST and links display names to stable IDs using the symbol registry.
|
|
313
|
+
*
|
|
314
|
+
* @param ast The root AST node to start the traversal.
|
|
315
|
+
* @param symbols The symbol registry used to resolve display names to stable IDs.
|
|
316
|
+
* @param scope The sheet this formula is written on, or `null`/omitted when there is none.
|
|
317
|
+
* Only defined names need it, and only because they can be sheet-scoped: `MonthName` on January
|
|
318
|
+
* and the same text on February are two different names when each sheet defines its own, so the
|
|
319
|
+
* vantage is part of the question. Without it every reference binds to whichever definition
|
|
320
|
+
* happened to win globally.
|
|
321
|
+
* @returns The updated AST with linked symbols.
|
|
322
|
+
*/
|
|
323
|
+
export declare function linkSymbols(ast: ASTNode, symbols: ISymbolRegistry, scope?: string | null): ASTNode;
|
|
324
|
+
/**
|
|
325
|
+
* Returns a new AST with every relative Cell node's coordinates shifted by (rowDelta, colDelta),
|
|
326
|
+
* wrapping out-of-bounds results within [0, max) (Excel behavioral).
|
|
327
|
+
* Absolute ($) coords and whole-row/whole-column sentinels (Number.MIN_SAFE_INTEGER) are untouched.
|
|
328
|
+
* Unchanged subtrees are structurally shared (copy-on-write via visitAST).
|
|
329
|
+
*/
|
|
330
|
+
export declare function translateCellNodes(ast: ASTNode, rowDelta: number, colDelta: number, maxRow?: number, maxCol?: number): ASTNode;
|
|
331
|
+
//# sourceMappingURL=CompilerUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CompilerUtils.d.ts","sourceRoot":"","sources":["../../../../../src/calculation/compiler/CompilerUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,SAAS,EAAe,KAAK,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAW/F,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD,OAAO,EAAE,KAAK,eAAe,EAAc,MAAM,WAAW,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC,OAAO,EACL,KAAK,eAAe,EAA0B,KAAK,UAAU,EAC9D,MAAM,SAAS,CAAC;AAEjB,OAAO,EACL,KAAK,OAAO,EACb,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,KAAK,iBAAiB,EAAqD,MAAM,qBAAqB,CAAC;AAKhH;;;GAGG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,GAAG,OAAO,GAAG,SAAS,CAKlF;AAkKD;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,OAAO,EACjB,kBAAkB,GAAE,OAAa,EAKjC,cAAc,GAAE,iBAAsC,GACrD,YAAY,CAAC,YAAY,EAAE,CAmX7B;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,YAAY,CAC1B,MAAM,EAAE,SAAS,YAAY,CAAC,YAAY,EAAE,EAC5C,OAAO,CAAC,EAAE,eAAe,GAAG,IAAI,GAC/B,MAAM,CAkCR;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,OAAO,EACZ,SAAS,EAAE,MAAM,GAChB,YAAY,CAAC,YAAY,EAAE,CAc7B;AAiGD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAM7D;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAyCxD;AAkBD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAiB/D;AA+ID,wBAAgB,UAAU,CACxB,OAAO,EAAE,QAAQ,EACjB,OAAO,EAAE,eAAe,GAAG,SAAS,EACpC,QAAQ,EAAE,OAAO,EACjB,kBAAkB,GAAE,OAAa,EACjC,KAAK,GAAE,UAAU,GAAG,IAAS,EAC7B,WAAW,GAAE,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,SAAS,GAAG,IAAI,CAAC,GAAG,IAAW,GAC9D,eAAe,CAqSjB;AAED;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,GAAG,GACT,YAAY,CAAC,KAAK,CAmBpB;AAED,wBAAgB,UAAU,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,GAAG,OAAO,CAWpE;AAED,eAAO,MAAM,yBAAyB,qBAQpC,CAAC;AAKH,eAAO,MAAM,kBAAkB,mBAA0C,CAAC;AAO1E,eAAO,MAAM,eAAe,mBAAmE,CAAC;AAEhG,eAAO,MAAM,eAAe,mBAAgG,CAAC;AAgC7H;;GAEG;AACH,eAAO,MAAM,YAAY,GAAI,MAAM,OAAO,KAAG,OAoB5C,CAAA;AA0GD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,mCAAmC,GAC9C,MAAM,OAAO,EACb,aAAa,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,SAAS,GAAG,IAAI,CAAC,GAAG,IAAI,KACvD,OAAO,GAAG,IAkBZ,CAAA;AAoHD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,sBAAsB,GAAI,MAAM,OAAO,KAAG,MAAM,GAAG,IAuB/D,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,kBAAkB,GAC7B,MAAM,OAAO,EACb,aAAa,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,SAAS,GAAG,IAAI,CAAC,GAAG,IAAI,KACvD,MAAM,GAAG,IAgDX,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,eAAO,MAAM,4BAA4B,GACvC,MAAM,OAAO,EACb,aAAa,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,SAAS,GAAG,IAAI,CAAC,GAAG,IAAI,KACvD,OAAO,GAAG,IA4BZ,CAAA;AAGD;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,iBAAiB,GAC5B,MAAM,OAAO,EACb,aAAa,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,SAAS,GAAG,IAAI,CAAC,GAAG,IAAI,KACvD,MAAM,GAAG,IAkBX,CAAA;AAwHD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,OAAO,EACb,WAAW,EAAE,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,SAAS,GAAG,IAAI,CAAC,GAAG,IAAI,GACvD,OAAO,CAOT;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,UAAU,CACxB,IAAI,EAAE,OAAO,EACb,WAAW,GAAE,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,SAAS,GAAG,IAAI,CAAC,GAAG,IAAW,GAC9D,OAAO,CA+IT;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,mBAAmB,GAC9B,MAAM,OAAO,EACb,aAAa,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,SAAS,GAAG,IAAI,CAAC,GAAG,IAAI,KACvD,MAAM,GAAG,IAwDX,CAAA;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,WAAW,CACzB,GAAG,EAAE,OAAO,EACZ,OAAO,EAAE,eAAe,EACxB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GACpB,OAAO,CAuFT;AAQD;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAChC,GAAG,EAAE,OAAO,EACZ,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,MAAM,SAAU,EAChB,MAAM,SAAU,GACf,OAAO,CAoBT"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { IFunction, IRuntime } from '@sheetxl/primitives';
|
|
2
|
+
import { ISymbolRegistry } from '../symbol';
|
|
3
|
+
import { ICalculation } from '../ICalculation';
|
|
4
|
+
import { IFormulaCompiler, CompiledFormula } from './Types';
|
|
5
|
+
import { FormulaParseOptions } from './FormulaParser';
|
|
6
|
+
/**
|
|
7
|
+
* How the compiler balances speed against error recovery. The two are per-INSTANCE (not per-call)
|
|
8
|
+
* because they change what a compile produces, not just how hard it tries — a caller holds the
|
|
9
|
+
* compiler that matches its needs.
|
|
10
|
+
*/
|
|
11
|
+
export type FormulaCompilerProfile =
|
|
12
|
+
/**
|
|
13
|
+
* The bulk path (load / commit / recalc). Expressions are normalized (e.g. `[#This Row]` → `@`) and a
|
|
14
|
+
* parse failure costs nothing extra: the result is a single `unparsed` token carrying the raw text
|
|
15
|
+
* plus the error — nothing is lost on save, and no recovery work is spent.
|
|
16
|
+
*/
|
|
17
|
+
'calc'
|
|
18
|
+
/**
|
|
19
|
+
* The editor path (`createFormula` while typing). Expressions are preserved exactly as
|
|
20
|
+
* typed, and a parse failure buys maximum recovery: the longest parseable prefix is compiled (its
|
|
21
|
+
* references are real) and `getTokens()` is guaranteed FAITHFUL — concatenating the tokens
|
|
22
|
+
* reproduces the source char-for-char, with everything un-parseable as `unparsed` token(s).
|
|
23
|
+
*/
|
|
24
|
+
| 'editing';
|
|
25
|
+
/**
|
|
26
|
+
* Options for constructing a {@link FormulaCompiler}.
|
|
27
|
+
*/
|
|
28
|
+
export interface FormulaCompilerOptions extends FormulaParseOptions {
|
|
29
|
+
/**
|
|
30
|
+
* The speed/recovery profile. Defaults to `'calc'`.
|
|
31
|
+
*/
|
|
32
|
+
profile?: FormulaCompilerProfile;
|
|
33
|
+
}
|
|
34
|
+
export declare class FormulaCompiler implements IFormulaCompiler {
|
|
35
|
+
private readonly _parser;
|
|
36
|
+
/** `true` for the `'editing'` profile — preserve the typed expression + maximum recovery. */
|
|
37
|
+
private readonly _editing;
|
|
38
|
+
constructor(options?: FormulaCompilerOptions);
|
|
39
|
+
/** @inheritdoc IFormulaCompiler.compile */
|
|
40
|
+
compile(runtime: IRuntime, rowIndex: number, colIndex: number, expression: string, symbols?: ISymbolRegistry, getFunction?: ((name: string) => IFunction | null) | null, scope?: string | null, formulaTransform?: ICalculation.FormulaTransform): CompiledFormula;
|
|
41
|
+
/** @inheritdoc IFormulaCompiler.autoCorrect */
|
|
42
|
+
autoCorrect(expression: string): string | null;
|
|
43
|
+
/**
|
|
44
|
+
* The zero-recovery parse-failure result: a compiled formula whose only token is the raw expression
|
|
45
|
+
* as `unparsed`, evaluating to the parse error. Nothing is lost (the text round-trips), nothing is
|
|
46
|
+
* spent — this is the calc profile's entire failure path, and editing's last resort.
|
|
47
|
+
*/
|
|
48
|
+
private _compileUnparsed;
|
|
49
|
+
/**
|
|
50
|
+
* Recover a fully-COMPILED formula for an expression the parser couldn't parse faithfully: the longest
|
|
51
|
+
* parseable prefix, compiled (so `getReferences()` + tokens are real), presented as an error. Candidate
|
|
52
|
+
* prefixes end at TOKEN boundaries (from a tolerant re-lex — character trimming could land mid-token,
|
|
53
|
+
* where e.g. a long string literal never re-lexes), longest first. A prefix is accepted only when it
|
|
54
|
+
* compiles AND its tokens reproduce the prefix text exactly; the un-parseable tail is then appended as
|
|
55
|
+
* `unparsed` token(s) (see {@link _appendUnparsedTail}), so the WHOLE result round-trips the source.
|
|
56
|
+
* Returns `null` when nothing down to the attempt cap parses. Only reached on a parse failure, so its
|
|
57
|
+
* cost is off the common (valid) path.
|
|
58
|
+
*/
|
|
59
|
+
private _recoverCompiled;
|
|
60
|
+
/**
|
|
61
|
+
* Append the un-parseable `tail` to `tokens` as `unparsed` token(s): stamp the enclosing function
|
|
62
|
+
* context (from the last token that has one) so a caret in the tail still resolves to the right
|
|
63
|
+
* function + argument, and split off a trailing identifier run (`[A-Za-z_][A-Za-z0-9_]*` at a token
|
|
64
|
+
* boundary, not glued to a preceding digit like `12abc`) as its own `isLookup` token, so a partial
|
|
65
|
+
* name being typed can still drive autocomplete.
|
|
66
|
+
*/
|
|
67
|
+
private _appendUnparsedTail;
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=FormulaCompiler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormulaCompiler.d.ts","sourceRoot":"","sources":["../../../../../src/calculation/compiler/FormulaCompiler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,SAAS,EAAE,KAAK,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAIlF,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,WAAW,CAAC;AAEjD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG/C,OAAO,EACL,KAAK,gBAAgB,EAAE,KAAK,eAAe,EAC5C,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAwD,KAAK,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEjH;;;;GAIG;AACH,MAAM,MAAM,sBAAsB;AAChC;;;;GAIG;AACD,MAAM;AACR;;;;;GAKG;GACD,SAAS,CAAC;AAEd;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,mBAAmB;IACjE;;OAEG;IACH,OAAO,CAAC,EAAE,sBAAsB,CAAC;CAClC;AASD,qBAAa,eAAgB,YAAW,gBAAgB;IACtD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAgB;IACxC,6FAA6F;IAC7F,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAU;gBAEvB,OAAO,CAAC,EAAE,sBAAsB;IAQ5C,2CAA2C;IAC3C,OAAO,CACL,OAAO,EAAE,QAAQ,EACjB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,eAAe,EACzB,WAAW,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,SAAS,GAAG,IAAI,CAAC,GAAG,IAAI,EACzD,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,EACrB,gBAAgB,CAAC,EAAE,YAAY,CAAC,gBAAgB,GAC/C,eAAe;IAsIlB,+CAA+C;IAC/C,WAAW,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;IA4B9C;;;;OAIG;IACH,OAAO,CAAC,gBAAgB;IAiCxB;;;;;;;;;OASG;IACH,OAAO,CAAC,gBAAgB;IA4ExB;;;;;;OAMG;IACH,OAAO,CAAC,mBAAmB;CAmC5B"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { ILexingResult, TokenType as CTokenType } from 'chevrotain';
|
|
2
|
+
import { FormulaSeparators, CANONICAL_SEPARATORS, formulaSeparatorsForDecimal } from './FormulaSeparators';
|
|
3
|
+
import { CompilerLocale } from './CompilerLocale';
|
|
4
|
+
export { type FormulaSeparators, CANONICAL_SEPARATORS, formulaSeparatorsForDecimal };
|
|
5
|
+
export interface FormulaLexerOptions {
|
|
6
|
+
/**
|
|
7
|
+
* Maximum column index (1-based). Defaults to Excel's 16,384 (XFD).
|
|
8
|
+
*/
|
|
9
|
+
maxColumn?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Maximum row index (1-based). Defaults to Excel's 1,048,576.
|
|
12
|
+
*/
|
|
13
|
+
maxRow?: number;
|
|
14
|
+
/**
|
|
15
|
+
* The locale to tokenize for — separators (Plane 1) plus the localized boolean/error alternates
|
|
16
|
+
* (Plane 3) the lexer adds alongside the always-lexed canonical set. Defaults to
|
|
17
|
+
* {@link CANONICAL_LOCALE} (canonical separators, English-only literals).
|
|
18
|
+
*/
|
|
19
|
+
locale?: CompilerLocale;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Used for tokenizing a string using formula tokens.
|
|
23
|
+
*/
|
|
24
|
+
export declare class FormulaLexer {
|
|
25
|
+
private readonly _lexer;
|
|
26
|
+
/** The token vocabulary passed to the Chevrotain parser. */
|
|
27
|
+
private readonly _vocabulary;
|
|
28
|
+
/** The locale this lexer tokenizes with — shared with the parser (actions) and emit path. */
|
|
29
|
+
private readonly _locale;
|
|
30
|
+
/** Grid bounds the cell/column matchers were built against — see {@link getMaxRow}. */
|
|
31
|
+
private readonly _maxColumn;
|
|
32
|
+
private readonly _maxRow;
|
|
33
|
+
/**
|
|
34
|
+
* A lexer for this exact configuration, built at most once.
|
|
35
|
+
*
|
|
36
|
+
* Construction is not cheap — the whole token set is rebuilt, and bucketing
|
|
37
|
+
* `_nameStartCharsHint` alone measures ~0.4 ms — and a `FormulaLexer` was previously built
|
|
38
|
+
* per `FormulaParser`, i.e. per `Sheet`. Nothing here is mutable after construction
|
|
39
|
+
* (every field is `readonly`, `tokenize` returns a fresh result), so one instance serves
|
|
40
|
+
* every caller with the same configuration.
|
|
41
|
+
*
|
|
42
|
+
* Keyed on the locale by IDENTITY rather than by value. The lexer reads separators, error
|
|
43
|
+
* literals and boolean spellings off that object, so the same object always means the same
|
|
44
|
+
* tokens; two equal-but-distinct locale objects merely miss the cache, which costs a build
|
|
45
|
+
* and never correctness.
|
|
46
|
+
*/
|
|
47
|
+
static shared(config?: FormulaLexerOptions): FormulaLexer;
|
|
48
|
+
constructor(config?: FormulaLexerOptions);
|
|
49
|
+
/**
|
|
50
|
+
* Break an expression into tokens.
|
|
51
|
+
*
|
|
52
|
+
* @param expression The text to tokenize.
|
|
53
|
+
* @param throwOnError If `false`, lexing errors do not throw — the partial result (the tokens that
|
|
54
|
+
* DID lex, plus `errors`) is returned as-is. Used by editing-mode recovery to find the last clean
|
|
55
|
+
* token boundary in an expression whose tail can't lex (e.g. an unterminated string).
|
|
56
|
+
* @returns The result of lexing, including the list of tokens and any errors.
|
|
57
|
+
*/
|
|
58
|
+
tokenize(expression: string, throwOnError?: boolean): ILexingResult;
|
|
59
|
+
/**
|
|
60
|
+
* Return the token vocabulary, which maps token names to Chevrotain token types.
|
|
61
|
+
*/
|
|
62
|
+
getVocabulary(): Record<string, CTokenType>;
|
|
63
|
+
/**
|
|
64
|
+
* The locale this lexer tokenizes with. The parser reads it for its actions (mapping typed booleans/
|
|
65
|
+
* errors/numbers → canonical AST values); it also carries the separators the emit path re-images with.
|
|
66
|
+
*/
|
|
67
|
+
getLocale(): CompilerLocale;
|
|
68
|
+
/** The last valid column (1-based) — `A1`/`AC` beyond it lex as a name, not a reference. */
|
|
69
|
+
getMaxColumn(): number;
|
|
70
|
+
/**
|
|
71
|
+
* The last valid row (1-based).
|
|
72
|
+
*
|
|
73
|
+
* The cell matcher applies this itself (`A1048577` falls through to a NAME), but a whole-row
|
|
74
|
+
* operand cannot: a bare digit run lexes as a NUMBER, and only the parser knows it sits beside a
|
|
75
|
+
* range operator. The parser reads this to bound that conversion — Excel refuses `1:1048577` and
|
|
76
|
+
* `0:1` outright (`spreadsheetbench/formula-tests/probe-mixed-range-operand4.ps1`).
|
|
77
|
+
*/
|
|
78
|
+
getMaxRow(): number;
|
|
79
|
+
/**
|
|
80
|
+
* The fully-resolved separators this lexer tokenizes with. The parser reads `separatorDecimal`
|
|
81
|
+
* to normalize number images (`1,5` → `1.5`); the emit path reads all four to localize display.
|
|
82
|
+
*/
|
|
83
|
+
getSeparators(): FormulaSeparators;
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=FormulaLexer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormulaLexer.d.ts","sourceRoot":"","sources":["../../../../../src/calculation/compiler/FormulaLexer.ts"],"names":[],"mappings":"AAAA,OAAO,EAE2D,KAAK,aAAa,EAClF,KAAK,SAAS,IAAI,UAAU,EAC7B,MAAM,YAAY,CAAC;AAIpB,OAAO,EACL,KAAK,iBAAiB,EAAE,oBAAoB,EAAE,2BAA2B,EAC1E,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,cAAc,EAAoB,MAAM,kBAAkB,CAAC;AAEzE,OAAO,EAAE,KAAK,iBAAiB,EAAE,oBAAoB,EAAE,2BAA2B,EAAE,CAAC;AAKrF,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,MAAM,CAAC,EAAE,cAAc,CAAC;CACzB;AAED;;GAEG;AACH,qBAAa,YAAY;IACvB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAQ;IAC/B,4DAA4D;IAC5D,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA6B;IACzD,6FAA6F;IAC7F,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAiB;IACzC,uFAAuF;IACvF,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAS;IACpC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;IAEjC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,mBAAmB,GAAG,YAAY;gBAkB7C,MAAM,CAAC,EAAE,mBAAmB;IA+QxC;;;;;;;;OAQG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,YAAY,GAAE,OAAY,GAAG,aAAa;IAqBvE;;OAEG;IACH,aAAa,IAAI,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC;IAI3C;;;OAGG;IACH,SAAS,IAAI,cAAc;IAI3B,4FAA4F;IAC5F,YAAY,IAAI,MAAM;IAItB;;;;;;;OAOG;IACH,SAAS,IAAI,MAAM;IAInB;;;OAGG;IACH,aAAa,IAAI,iBAAiB;CAGnC"}
|