@sheetxl/sdk 0.7.28-beta.4 → 0.8.0-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 +1 -1
- package/browser/cjs/4f5eoQQfV-V7LO2_.cjs +1 -0
- package/browser/cjs/BEnEDC1m546-gzWS.cjs +1 -0
- package/browser/cjs/CwCUa4IzGNGissLL.cjs +1 -0
- package/browser/cjs/Dg3GaW0QWwnlqetX.cjs +1 -0
- package/browser/cjs/KWQPie2u7AP69web.cjs +93 -0
- package/browser/cjs/index.cjs +2 -2
- package/browser/esm/{DBIu6NUHIcxOOBQp.mjs → BJ9hcZAGY8Tj5_9L.mjs} +1 -1
- package/browser/esm/C8vpA2ZBtZf6w4nq.mjs +394 -0
- package/browser/esm/DDojiE2-oycJ7qGi.mjs +20 -0
- package/browser/esm/DEPT7zmpiMdZ-_qC.mjs +70253 -0
- package/browser/esm/DOvCi3lf49To36WP.mjs +8 -0
- package/browser/esm/{CHSahmMFYNB0Ajkf.mjs → Dq3sc4B_HQHBrT5N.mjs} +2 -2
- package/browser/esm/index.mjs +871 -696
- package/browser/esm/{CKk58ZLcrllMzfou.mjs → trwZArJQQq7K9kL7.mjs} +2 -2
- package/licenses/dependencies.txt +204 -204
- package/node/esm/CGWsQOMWdnDeF4dX.mjs +8 -0
- package/node/esm/{DUYP6faJJHCaW1Xf.mjs → CL9MI-b6D9BmtVXW.mjs} +1 -1
- package/node/esm/CressiwiIhxCVp1v.mjs +28 -0
- package/node/esm/O2cOO3xIynWUgOWe.mjs +403 -0
- package/node/esm/index.mjs +53973 -38584
- package/package.json +6 -7
- package/resources/locales/de/model.msg.json +45 -9
- package/resources/locales/en/model.msg.json +42 -9
- package/types/scripting-api.json +7093 -0
- package/types/scripting-enums.json +54 -4
- package/types/scripting.d.ts +7185 -1079
- package/types/src/anchored/AbstractAnchored.d.ts +18 -8
- package/types/src/anchored/AnchoredMap.d.ts +2 -0
- package/types/src/anchored/IAnchoredMap.d.ts +52 -4
- package/types/src/autoFill/AutoFill.d.ts +316 -32
- package/types/src/autoFill/IAutoFill.d.ts +232 -15
- package/types/src/border/{IBorder.d.ts → IBorders.d.ts} +41 -40
- package/types/src/border/index.d.ts +1 -1
- package/types/src/calculation/Calculation.d.ts +745 -35
- package/types/src/calculation/ExternalBookBindings.d.ts +118 -0
- package/types/src/calculation/FormulaText.d.ts +74 -0
- package/types/src/calculation/ICalculation.d.ts +318 -81
- package/types/src/calculation/INamedFormulasCollection.d.ts +5 -8
- package/types/src/calculation/NamedFormulaCollection.d.ts +139 -107
- package/types/src/calculation/NamedLambdaFunction.d.ts +28 -0
- package/types/src/calculation/TokenType.d.ts +9 -0
- package/types/src/calculation/Types.d.ts +83 -2
- package/types/src/calculation/_CloneBoundary.d.ts +80 -0
- package/types/src/calculation/compiler/ASTTypes.d.ts +58 -0
- package/types/src/calculation/compiler/CompilerUtils.d.ts +134 -12
- package/types/src/calculation/compiler/FormulaCompiler.d.ts +29 -4
- package/types/src/calculation/compiler/FormulaParser.d.ts +1 -2
- package/types/src/calculation/compiler/LiteTransform.d.ts +17 -0
- package/types/src/calculation/compiler/ParserUtils.d.ts +26 -1
- package/types/src/calculation/compiler/SRParser.d.ts +2 -1
- package/types/src/calculation/compiler/Types.d.ts +79 -9
- package/types/src/calculation/executor/CalcExecutor.d.ts +422 -34
- package/types/src/calculation/executor/CalcExecutorUtils.d.ts +43 -2
- package/types/src/calculation/executor/CircularReference.d.ts +2 -0
- package/types/src/calculation/formula/Formula.d.ts +58 -21
- package/types/src/calculation/formula/FormulaBlock.d.ts +124 -21
- package/types/src/calculation/formula/FormulaRecordView.d.ts +79 -0
- package/types/src/calculation/formula/IFormulaBlock.d.ts +261 -67
- package/types/src/calculation/formula/LambdaValue.d.ts +15 -16
- package/types/src/calculation/formula/LazyValue.d.ts +96 -0
- package/types/src/calculation/formula/TokenUtils.d.ts +25 -1
- package/types/src/calculation/formula/index.d.ts +1 -0
- package/types/src/calculation/functions/FunctionDeclarations.d.ts +31 -0
- package/types/src/calculation/functions/initializeFunctions.d.ts +15 -2
- package/types/src/calculation/grid/CalcGrid.d.ts +384 -158
- package/types/src/calculation/grid/CalcGridBackend.d.ts +450 -0
- package/types/src/calculation/grid/CalcGridProxy.d.ts +133 -0
- package/types/src/calculation/grid/CalcGridUtils.d.ts +62 -12
- package/types/src/calculation/grid/FormulaEntry.d.ts +129 -0
- package/types/src/calculation/grid/FormulaHost.d.ts +236 -0
- package/types/src/calculation/grid/ICalcGrid.d.ts +456 -143
- package/types/src/calculation/grid/_CalcRequest.d.ts +272 -0
- package/types/src/calculation/grid/index.d.ts +4 -0
- package/types/src/calculation/index.d.ts +2 -0
- package/types/src/calculation/spatial/ContentfulSpatialValue.d.ts +6 -2
- package/types/src/calculation/spatial/FormulaSpatialValue.d.ts +339 -11
- package/types/src/calculation/spatial/SpillEntry.d.ts +20 -5
- package/types/src/calculation/spatial/TouchedWindows.d.ts +86 -0
- package/types/src/calculation/spatial/index.d.ts +1 -0
- package/types/src/calculation/state/CalcInputs.d.ts +41 -0
- package/types/src/calculation/state/CalcNode.d.ts +160 -29
- package/types/src/calculation/state/CalcScope.d.ts +37 -0
- package/types/src/calculation/state/CalcState.d.ts +22 -1
- package/types/src/calculation/state/CalculationContext.d.ts +39 -3
- package/types/src/calculation/state/IContextContainer.d.ts +159 -26
- package/types/src/calculation/state/_PendingOverlayGrid.d.ts +163 -0
- package/types/src/calculation/state/_ReadObservedGrid.d.ts +74 -8
- package/types/src/calculation/state/index.d.ts +1 -0
- package/types/src/calculation/symbol/ExternalSheetSymbols.d.ts +80 -0
- package/types/src/calculation/symbol/ISymbolRegistry.d.ts +23 -0
- package/types/src/calculation/symbol/IndirectSymbolProvider.d.ts +16 -2
- package/types/src/calculation/symbol/SheetSymbolProvider.d.ts +63 -3
- package/types/src/calculation/symbol/SymbolRegistry.d.ts +20 -0
- package/types/src/calculation/symbol/index.d.ts +3 -2
- package/types/src/cell/ICell.d.ts +78 -23
- package/types/src/cell/ICellProtection.d.ts +50 -10
- package/types/src/cellRange/ICellRange.d.ts +368 -90
- package/types/src/cellRange/ICellRanges.d.ts +9 -7
- package/types/src/chart/Chart.d.ts +72 -2
- package/types/src/chart/ChartCollection.d.ts +26 -0
- package/types/src/chart/IChart.d.ts +162 -9
- package/types/src/chart/IChartCollection.d.ts +25 -0
- package/types/src/chart/_ChartXml.d.ts +70 -0
- package/types/src/chart/index.d.ts +1 -3
- package/types/src/collections/ArraysGrid.d.ts +1 -1
- package/types/src/collections/IGrid.d.ts +1 -1
- package/types/src/collections/ISparseGrid.d.ts +9 -0
- package/types/src/collections/ISpatialMap.d.ts +59 -21
- package/types/src/collections/ImmutableList.d.ts +28 -0
- package/types/src/collections/MixedTypedArrayList.d.ts +168 -108
- package/types/src/collections/OverlappingRangeIterator.d.ts +13 -17
- package/types/src/collections/RepeatingList.d.ts +7 -0
- package/types/src/collections/ScalarGrid.d.ts +50 -0
- package/types/src/collections/SparseGrid.d.ts +1 -1
- package/types/src/collections/SpatialMap.d.ts +13 -21
- package/types/src/collections/Tuple.d.ts +128 -16
- package/types/src/collections/_GridUtils.d.ts +19 -6
- package/types/src/collections/_RangeSweep.d.ts +97 -0
- package/types/src/collections/_SpatialUtils.d.ts +20 -2
- package/types/src/collections/index.d.ts +1 -0
- package/types/src/comment/Comment.d.ts +159 -0
- package/types/src/comment/CommentCollection.d.ts +40 -0
- package/types/src/comment/IComment.d.ts +319 -48
- package/types/src/comment/ICommentCollection.d.ts +90 -0
- package/types/src/comment/_CommentUtils.d.ts +28 -0
- package/types/src/comment/index.d.ts +1 -0
- package/types/src/condition/AnchoredConditional.d.ts +76 -17
- package/types/src/condition/BuiltInOperators/AbstractOperator.d.ts +8 -7
- package/types/src/condition/BuiltInOperators/EqualToOperator.d.ts +2 -1
- package/types/src/condition/BuiltInOperators/ExpressionOperator.d.ts +3 -6
- package/types/src/condition/BuiltInOperators/InSetOperator.d.ts +1 -1
- package/types/src/condition/BuiltinSelectors/BaseSelector.d.ts +7 -0
- package/types/src/condition/BuiltinSelectors/ListSelector.d.ts +9 -0
- package/types/src/condition/Condition.d.ts +16 -0
- package/types/src/condition/ICondition.d.ts +86 -33
- package/types/src/condition/_ConditionFormula.d.ts +152 -0
- package/types/src/condition/_ConditionUtils.d.ts +73 -10
- package/types/src/conditionalFormat/ConditionalFormat.d.ts +21 -10
- package/types/src/conditionalFormat/ConditionalFormatCollection.d.ts +19 -8
- package/types/src/conditionalFormat/IConditionalFormat.d.ts +5 -3
- package/types/src/conditionalFormat/IConditionalFormatCollection.d.ts +2 -0
- package/types/src/dataValidation/DataValidation.d.ts +50 -3
- package/types/src/dataValidation/DataValidationCollection.d.ts +20 -9
- package/types/src/dataValidation/IDataValidation.d.ts +119 -30
- package/types/src/dataValidation/IDataValidationCollection.d.ts +10 -2
- package/types/src/date/DateUtils.d.ts +20 -0
- package/types/src/date/_DateUtils.d.ts +91 -7
- package/types/src/externalBook/ExternalBookCollection.d.ts +145 -12
- package/types/src/externalBook/ExternalBookName.d.ts +96 -0
- package/types/src/externalBook/IExternalBook.d.ts +170 -18
- package/types/src/externalBook/IExternalBookCollection.d.ts +79 -7
- package/types/src/externalBook/index.d.ts +1 -0
- package/types/src/fill/IStroke.d.ts +1 -1
- package/types/src/filter/IFilter.d.ts +29 -4
- package/types/src/font/IFont.d.ts +17 -0
- package/types/src/history/IHistory.d.ts +3 -2
- package/types/src/i18n/LanguagePack.d.ts +12 -4
- package/types/src/index.d.ts +3 -0
- package/types/src/io/AbstractBackingStore.d.ts +24 -1
- package/types/src/io/ArrayBackingStore.d.ts +1 -1
- package/types/src/io/EmbeddedPart.d.ts +20 -0
- package/types/src/io/IEmbeddedPart.d.ts +63 -0
- package/types/src/io/IWorkbookIO.d.ts +185 -18
- package/types/src/io/WorkbookIO.d.ts +9 -0
- package/types/src/io/WorkbookOrigin.d.ts +20 -11
- package/types/src/io/WorkbookOriginProvider.d.ts +46 -0
- package/types/src/io/_XmlFragment.d.ts +49 -0
- package/types/src/io/index.d.ts +1 -0
- package/types/src/lib/file/file.browser.d.ts +19 -5
- package/types/src/lib/file/file.node.d.ts +5 -0
- package/types/src/lib/utils/_Utils.d.ts +18 -0
- package/types/src/lib/utils/utils.browser.d.ts +9 -3
- package/types/src/license/license-key.d.ts +27 -0
- package/types/src/listener/IListener.d.ts +12 -7
- package/types/src/listener/ListenerEmitter.d.ts +46 -5
- package/types/src/model/AbstractModel.d.ts +14 -5
- package/types/src/movable/Control.d.ts +57 -0
- package/types/src/movable/IControl.d.ts +84 -0
- package/types/src/movable/IMovable.d.ts +23 -1
- package/types/src/movable/IMovableCollection.d.ts +2 -0
- package/types/src/movable/Movable.d.ts +4 -6
- package/types/src/movable/MovableCollection.d.ts +7 -7
- package/types/src/movable/index.d.ts +4 -0
- package/types/src/named/AbstractNamed.d.ts +1 -1
- package/types/src/named/INamed.d.ts +4 -1
- package/types/src/named/INamedCollection.d.ts +26 -0
- package/types/src/named/NamedCollection.d.ts +16 -15
- package/types/src/numFmt/BuiltInFormats.d.ts +15 -7
- package/types/src/numFmt/IFormatEngine.d.ts +2 -0
- package/types/src/numFmt/NumfmtFormatEngine.d.ts +2 -0
- package/types/src/person/IPerson.d.ts +99 -0
- package/types/src/person/IPersonCollection.d.ts +51 -0
- package/types/src/person/Person.d.ts +32 -0
- package/types/src/person/PersonCollection.d.ts +49 -0
- package/types/src/person/index.d.ts +3 -0
- package/types/src/picture/IPicture.d.ts +2 -0
- package/types/src/picture/Picture.d.ts +2 -0
- package/types/src/pivot/IPivotTable.d.ts +107 -0
- package/types/src/pivot/IPivotTableCollection.d.ts +25 -0
- package/types/src/pivot/PivotTable.d.ts +57 -0
- package/types/src/pivot/PivotTableCollection.d.ts +25 -0
- package/types/src/pivot/index.d.ts +6 -0
- package/types/src/primitives/CompositeRangeStats.d.ts +2 -0
- package/types/src/primitives/Criteria.d.ts +1 -1
- package/types/src/primitives/LambdaBrand.d.ts +21 -0
- package/types/src/primitives/PrimitiveUtils.d.ts +60 -21
- package/types/src/primitives/Range.d.ts +105 -25
- package/types/src/primitives/RangeStats.d.ts +24 -1
- package/types/src/primitives/ReferenceRange.d.ts +42 -0
- package/types/src/primitives/Runtime.d.ts +15 -2
- package/types/src/primitives/stats/FrequencyStats.d.ts +9 -0
- package/types/src/primitives/stats/LookupIndex.d.ts +46 -0
- package/types/src/primitives/stats/SortedNumbers.d.ts +2 -0
- package/types/src/primitives/stats/index.d.ts +1 -0
- package/types/src/print/IPrint.d.ts +0 -22
- package/types/src/protectedRange/IProtectedRange.d.ts +4 -0
- package/types/src/protectedRange/IProtectedRangeCollection.d.ts +2 -0
- package/types/src/protectedRange/ProtectedRange.d.ts +1 -4
- package/types/src/protectedRange/ProtectedRangeCollection.d.ts +19 -8
- package/types/src/protection/DefaultProtection.d.ts +12 -1
- package/types/src/protection/IProtection.d.ts +36 -2
- package/types/src/reference/ReferenceUtils.d.ts +80 -0
- package/types/src/reference/index.d.ts +2 -0
- package/types/src/resource/IResource.d.ts +21 -1
- package/types/src/resource/IResourceCollection.d.ts +9 -1
- package/types/src/resource/ResourceCollection.d.ts +6 -6
- package/types/src/scripting/FunctionArguments.d.ts +22 -0
- package/types/src/scripting/FunctionCollection.d.ts +41 -11
- package/types/src/scripting/IFunctionCollection.d.ts +41 -0
- package/types/src/scripting/IModule.d.ts +25 -0
- package/types/src/scripting/IModuleCollection.d.ts +17 -0
- package/types/src/scripting/IScript.d.ts +18 -0
- package/types/src/scripting/Module.d.ts +34 -6
- package/types/src/scripting/ModuleCollection.d.ts +17 -12
- package/types/src/scripting/Runtime.d.ts +15 -0
- package/types/src/scripting/Scripts.d.ts +2 -0
- package/types/src/scripting/TypedFunction.d.ts +197 -4
- package/types/src/scripting/_FunctionIndex.d.ts +5 -0
- package/types/src/scripting/_ModuleUtils.d.ts +11 -1
- package/types/src/scripting/_ScriptUtils.d.ts +3 -0
- package/types/src/scripting/declarations.browser.d.ts +10 -0
- package/types/src/scripting/declarations.d.ts +49 -0
- package/types/src/scripting/declarations.node.d.ts +9 -0
- package/types/src/scripting/index.d.ts +3 -0
- package/types/src/selection/IRangeSelection.d.ts +9 -4
- package/types/src/selection/RangeSelection.d.ts +2 -0
- package/types/src/shape/IShape.d.ts +41 -3
- package/types/src/shape/Shape.d.ts +10 -0
- package/types/src/shape/_ShapeXml.d.ts +28 -0
- package/types/src/sheet/CellRegion.d.ts +6 -0
- package/types/src/sheet/ICellContainerOptions.d.ts +50 -0
- package/types/src/sheet/ISheet.d.ts +224 -41
- package/types/src/sheet/ISheetCollection.d.ts +2 -5
- package/types/src/sheet/NamedCellRange.d.ts +16 -7
- package/types/src/sheet/Sheet.d.ts +757 -114
- package/types/src/sheet/SheetCell.d.ts +81 -21
- package/types/src/sheet/SheetCollection.d.ts +19 -8
- package/types/src/sheet/SheetRange.d.ts +65 -14
- package/types/src/sheet/SheetRanges.d.ts +4 -6
- package/types/src/sheet/_CellBuffer.d.ts +214 -0
- package/types/src/sheet/_InvalidSheetRange.d.ts +5 -5
- package/types/src/sheet/_ListenerAnchor.d.ts +104 -0
- package/types/src/sheet/_RangeStateSweep.d.ts +16 -0
- package/types/src/sheet/_ScalarListFactory.d.ts +61 -0
- package/types/src/sheet/_SheetAutoFillUtils.d.ts +74 -0
- package/types/src/sheet/_SheetAutoFitUtils.d.ts +28 -0
- package/types/src/sheet/_SheetEvents.d.ts +43 -0
- package/types/src/sheet/_SheetFilterUtils.d.ts +32 -1
- package/types/src/sheet/_SheetIntents.d.ts +250 -0
- package/types/src/sheet/_SheetMutations.d.ts +179 -59
- package/types/src/sheet/_SheetStateReader.d.ts +16 -10
- package/types/src/sheet/_SheetStateTypes.d.ts +57 -73
- package/types/src/sheet/_SheetUtils.d.ts +2 -18
- package/types/src/sheet/_WatchAnchor.d.ts +93 -0
- package/types/src/sheet/spatial/HeldFormulaEntry.d.ts +36 -0
- package/types/src/sheet/spatial/index.d.ts +1 -0
- package/types/src/sheet/style/SheetCellStyle.d.ts +91 -64
- package/types/src/sheet/style/SheetDirectStyle.d.ts +16 -5
- package/types/src/sheet/style/_Resolvers.d.ts +5 -3
- package/types/src/sheet/style/_StyleUtils.d.ts +37 -7
- package/types/src/sheetHeader/ISheetHeader.d.ts +2 -0
- package/types/src/sheetHeader/SheetHeader.d.ts +14 -0
- package/types/src/sheetProtection/ISheetProtection.d.ts +41 -7
- package/types/src/sheetProtection/SheetProtection.d.ts +12 -0
- package/types/src/sheetView/ISheetView.d.ts +45 -1
- package/types/src/sheetView/SheetView.d.ts +11 -0
- package/types/src/slicer/ISlicer.d.ts +2 -0
- package/types/src/slicer/Slicer.d.ts +2 -0
- package/types/src/sort/ISort.d.ts +2 -0
- package/types/src/string/IStringCollection.d.ts +5 -0
- package/types/src/string/StringCollection.d.ts +6 -6
- package/types/src/style/INamedStyleCollection.d.ts +72 -0
- package/types/src/style/IStyle.d.ts +30 -10
- package/types/src/style/IStyleCollection.d.ts +63 -42
- package/types/src/style/ITableStyleCollection.d.ts +89 -0
- package/types/src/style/NamedStyleCollection.d.ts +39 -0
- package/types/src/style/StyleCollection.d.ts +41 -5
- package/types/src/style/TableStyleCollection.d.ts +49 -0
- package/types/src/style/_BuiltInStyleDefs.d.ts +3 -3
- package/types/src/style/index.d.ts +4 -0
- package/types/src/table/AnchoredTable.d.ts +644 -68
- package/types/src/table/AutoTable.d.ts +5 -5
- package/types/src/table/ITable.d.ts +228 -30
- package/types/src/table/ITableCollection.d.ts +2 -0
- package/types/src/table/TableCollection.d.ts +19 -8
- package/types/src/table/_FilterField.d.ts +7 -5
- package/types/src/table/_NamedTable.d.ts +17 -1
- package/types/src/table/_NamedTableSource.d.ts +1 -0
- package/types/src/table/_SortField.d.ts +2 -0
- package/types/src/table/_TableColumn.d.ts +13 -2
- package/types/src/table/_TableMessages.d.ts +1 -0
- package/types/src/table/_TableUtils.d.ts +40 -0
- package/types/src/text/Bullet.d.ts +4 -0
- package/types/src/text/ITextFrame.d.ts +25 -1
- package/types/src/text/TextBoxAlignment.d.ts +15 -6
- package/types/src/text/TextFrame.d.ts +4 -0
- package/types/src/text/TextLine.d.ts +4 -0
- package/types/src/text/TextParagraph.d.ts +4 -0
- package/types/src/text/TextRun.d.ts +9 -0
- package/types/src/text/TextStacked.d.ts +83 -0
- package/types/src/text/index.d.ts +1 -0
- package/types/src/theme/ITheme.d.ts +2 -0
- package/types/src/theme/IThemeCollection.d.ts +2 -0
- package/types/src/theme/ThemeCollection.d.ts +8 -7
- package/types/src/transaction/ITransaction.d.ts +238 -36
- package/types/src/transaction/Transaction.d.ts +99 -11
- package/types/src/type/AbstractCollection.d.ts +101 -0
- package/types/src/type/ICollection.d.ts +117 -0
- package/types/src/type/ITypes.d.ts +9 -7
- package/types/src/type/index.d.ts +1 -0
- package/types/src/utils/_CSSUtils.d.ts +3 -3
- package/types/src/workbook/IWorkbook.d.ts +171 -40
- package/types/src/workbook/Workbook.d.ts +103 -7
- package/types/src/workbook/_WorkbookIntents.d.ts +36 -0
- package/types/src/workbookProtection/IWorkbookProtection.d.ts +7 -0
- package/types/src/workbookProtection/WorkbookProtection.d.ts +3 -0
- package/types/src/workbookView/IWorkbookView.d.ts +12 -0
- package/types/src/workbookView/WorkbookView.d.ts +5 -0
- package/browser/cjs/BF14ZEAnaqxXroSj.cjs +0 -1
- package/browser/cjs/BXtvdT1Z-MsB_o5F.cjs +0 -1
- package/browser/cjs/Bc4JjVVZfFo3R4He.cjs +0 -33
- package/browser/cjs/CD2RXdnfqSYNc6gX.cjs +0 -57
- package/browser/cjs/DcLpXGexEtOxi-dD.cjs +0 -1
- package/browser/esm/0Mj5WKM362q6CECb.mjs +0 -824
- package/browser/esm/CPTtL2f6_4iblmFM.mjs +0 -4436
- package/browser/esm/CoA-sUxjiIUIpTUF.mjs +0 -109
- package/browser/esm/Dy4Sdpju1T2icURu.mjs +0 -50854
- package/node/esm/BtGxbEbBm79YvF_k.mjs +0 -843
- package/node/esm/DqgWsVXROpSgKq6c.mjs +0 -114
- package/types/src/cellRange/_GraphNode.d.ts +0 -38
- package/types/src/dataValidation/_Utils.d.ts +0 -10
- package/types/src/sheet/listener/RangesListener.d.ts +0 -32
- package/types/src/sheet/listener/RangesListenerEntry.d.ts +0 -19
- package/types/src/sheet/listener/index.d.ts +0 -3
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { Scalar } from '@sheetxl/primitives';
|
|
2
|
+
import { ICell } from '../cell';
|
|
3
|
+
import { Tuple } from '../collections';
|
|
4
|
+
import { IExternalBookCollection } from '../externalBook';
|
|
5
|
+
import { CalcGridBackend, FormulaHost } from './grid';
|
|
6
|
+
/**
|
|
7
|
+
* A cached defined name of an external book, as the named-formula symbol provider sees it.
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
* The minimal `INamed.INamedValue` shape plus the duck-typed `getScope` the provider keys on.
|
|
11
|
+
* {@link getId} is the fake id the provider minted for the pair, which is also the virtual grid the
|
|
12
|
+
* body compiles into — the same arrangement a workbook's own name has, so a `[1]!Name` node
|
|
13
|
+
* evaluates through `getNamedFormulaBlock` unchanged.
|
|
14
|
+
*/
|
|
15
|
+
export interface ExternalNamedItem {
|
|
16
|
+
getId(): string;
|
|
17
|
+
getName(): string;
|
|
18
|
+
/** The `ext:` id the name is scoped to — the book, or one of its sheets. */
|
|
19
|
+
getScope(): string;
|
|
20
|
+
/** The cached body as written; replaced in place when a refresh changes it. */
|
|
21
|
+
refersTo: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* What an external book's cache is to the engine: one read-only grid per sheet, and one virtual
|
|
25
|
+
* grid per cached defined name — reconciled against the collection on every change.
|
|
26
|
+
*
|
|
27
|
+
* @remarks
|
|
28
|
+
* DESIGN-EXTERNAL-LINKS §5 steps 15 and 16. The measured rule (§6 items 1 and 2) is that an
|
|
29
|
+
* external cell the cache does not hold is a BLANK CELL, so a sheet's grid is simply the sparse
|
|
30
|
+
* cache loaded at its real coordinates with the ordinary sheet extent: every cell it does not hold
|
|
31
|
+
* is already empty, and a whole-column citation walks the cache's used cells like any sheet's.
|
|
32
|
+
* A sheet with no cache at all gets an empty grid for the same reason — Excel answers blank there
|
|
33
|
+
* too, and the alternative (`#REF!`) is the value damage this phase exists to remove.
|
|
34
|
+
*
|
|
35
|
+
* Grids are keyed by the `ext:` stable id the sheet symbol binds to, so `container.getGrid(scope)`
|
|
36
|
+
* finds them with no change to the executor. A book's removal unregisters its grids WITHOUT the
|
|
37
|
+
* `delete()` a dropped sheet gets: a citation keeps the slot's id and computes `#REF!`, and an undo,
|
|
38
|
+
* which restores the slot with its id, rebuilds the grids and heals it (see
|
|
39
|
+
* `IExternalBook.delete`).
|
|
40
|
+
*
|
|
41
|
+
* A cached name's body is compiled INSIDE the book (`SheetCtx.book`), so `'Alpha'!$A$1` names the
|
|
42
|
+
* book's sheet; a bare reference anchors to the scoping sheet, else the book's first. A name is
|
|
43
|
+
* found under exactly the scope it was cached with — Excel flattens a sheet-scoped source name
|
|
44
|
+
* into the book's namespace on caching and then answers `#NAME?` to the sheet-qualified citation
|
|
45
|
+
* of it (measured 2026-09-11, `externalLinksNames.xlsx` + `probe-external-names-recalc.ps1`:
|
|
46
|
+
* `'Data Sheet'!Local` is cached with no `sheetId`, and `'[1]Data Sheet'!Local` rebuilds to
|
|
47
|
+
* `#NAME?` with the source absent), so there is no sheet-to-book fallback here.
|
|
48
|
+
*/
|
|
49
|
+
export declare class ExternalBookBindings {
|
|
50
|
+
private readonly _options;
|
|
51
|
+
/** Every registered name, by the provider's key: `<scopeId>::<lowercase name>`. */
|
|
52
|
+
private readonly _namesByKey;
|
|
53
|
+
private readonly _namesById;
|
|
54
|
+
/** The virtual grids the names above compile into, by fake id. */
|
|
55
|
+
private readonly _hostsById;
|
|
56
|
+
/** The cache tuples each sheet grid was loaded from, by grid id — a refresh swaps them. */
|
|
57
|
+
private readonly _loadedData;
|
|
58
|
+
constructor(options: ExternalBookBindings.ConstructorOptions);
|
|
59
|
+
/**
|
|
60
|
+
* Brings the grids and names into step with the collection: a book or sheet that arrived gets
|
|
61
|
+
* its grid, one that left loses it, and the same for names. Cheap when nothing changed.
|
|
62
|
+
*
|
|
63
|
+
* @param initial The sync at construction, before any formula has compiled. A name registered
|
|
64
|
+
* here needs no recompile of its citations: they do not exist yet, and every one that compiles
|
|
65
|
+
* later binds to the id minted here. A recompile would rewrite each citing formula and mark it
|
|
66
|
+
* dirty, which is what turned a loaded cell's cached value into the name's recomputed one on the
|
|
67
|
+
* first pass after open — where Excel keeps the loaded value until a full recalculation.
|
|
68
|
+
* @returns The ids of the books whose grids or names changed — the caller dirties their citations.
|
|
69
|
+
*/
|
|
70
|
+
sync(initial?: boolean): ReadonlySet<string>;
|
|
71
|
+
/**
|
|
72
|
+
* The name `name` cached under exactly `scopeId` — a book, or one of its sheets — or `null`.
|
|
73
|
+
* The named symbol provider's lookup for an external scope.
|
|
74
|
+
*/
|
|
75
|
+
getNameByScope(name: string, scopeId: string): ExternalNamedItem | null;
|
|
76
|
+
/** The name holding a fake id, or `null`. */
|
|
77
|
+
getNameById(id: string): ExternalNamedItem | null;
|
|
78
|
+
/** Every registered sheet grid's id — read off the container, which is the state that undoes. */
|
|
79
|
+
private _registeredSheetGrids;
|
|
80
|
+
private _registerSheet;
|
|
81
|
+
private _registerName;
|
|
82
|
+
/** Writes a name's body into its virtual grid at the engine's next safe point. */
|
|
83
|
+
private _queueBody;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* A sheet's cache — `IExternalBook.SheetData.data`, row-major as the part stores it — as the
|
|
87
|
+
* column-major scalar tuples a `CalcGridBackend` loads.
|
|
88
|
+
*
|
|
89
|
+
* @remarks
|
|
90
|
+
* `ICell.JSON`'s untyped arm is a bare primitive, and the cache's strings are LITERAL (never a
|
|
91
|
+
* string-table index — the part inlines them, design doc §1). The typed arm carries an error by
|
|
92
|
+
* code. `null` when the cache holds nothing.
|
|
93
|
+
*/
|
|
94
|
+
export declare function cacheToGridTuples(data: Tuple.GridTuple<ICell.JSON> | null | undefined): Tuple.GridTuple<Scalar> | null;
|
|
95
|
+
export declare namespace ExternalBookBindings {
|
|
96
|
+
interface ConstructorOptions {
|
|
97
|
+
/** The collection to mirror — read fresh on every {@link ExternalBookBindings.sync}. */
|
|
98
|
+
books: IExternalBookCollection;
|
|
99
|
+
/** Creates AND registers a grid under `id` — `Calculation._createCalcGrid`. */
|
|
100
|
+
createGrid: (id: string) => CalcGridBackend;
|
|
101
|
+
/** Takes a sheet grid out of the graph, its citations left as written — `CalcGridBackend._detach`. */
|
|
102
|
+
unregisterGrid: (id: string) => void;
|
|
103
|
+
getGrid: (id: string) => CalcGridBackend | null;
|
|
104
|
+
/** Every registered grid's id, so a removal can be found without a second record of it. */
|
|
105
|
+
gridIds: () => Iterable<string>;
|
|
106
|
+
/** Whether the engine holds grids now; the sheet grids wait for it. `true` when absent. */
|
|
107
|
+
holdsGrids?: () => boolean;
|
|
108
|
+
/** A name's virtual grid, as a handle — `Calculation._createFormulaHost` with the named options. */
|
|
109
|
+
createHost: (id: string) => FormulaHost;
|
|
110
|
+
/** The named symbol provider's `bind(name, { scope, own: true })` — the pair's fake id. */
|
|
111
|
+
bindNameId: (name: string, scopeId: string) => string;
|
|
112
|
+
/** Runs an action at the engine's next safe point, with priority — `Calculation._whenSafe`. */
|
|
113
|
+
queue: (action: () => Promise<unknown>) => void;
|
|
114
|
+
/** `IContextContainer.recompileNamed` — the dependents of a freshly written body. */
|
|
115
|
+
recompileNamed: (id: string) => void;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
//# sourceMappingURL=ExternalBookBindings.d.ts.map
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { IRange } from '@sheetxl/primitives';
|
|
2
|
+
import { ICalculation } from './ICalculation';
|
|
3
|
+
/**
|
|
4
|
+
* Formula text as a tree, and back, with no calculation involved.
|
|
5
|
+
*
|
|
6
|
+
* @remarks
|
|
7
|
+
* A file format reads and writes formulas as text and needs to see their structure to spell them:
|
|
8
|
+
* which function a name is, which argument a range sits in, where an operator was implied. This is
|
|
9
|
+
* the parser and the printer the compiler uses, offered on text alone. Nothing here resolves a
|
|
10
|
+
* symbol or evaluates anything: a sheet name is text, a function name is text, a cell is an
|
|
11
|
+
* offset from the anchor.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const root = FormulaText.parse('SUM(A1:A5)', { anchor: { rowIndex: 9, colIndex: 1 } });
|
|
16
|
+
* const spelled = FormulaText.transform(root!, (node) =>
|
|
17
|
+
* node.type === 'function' && node.value === 'SUM' ? { ...node, value: '_xlfn.SUM' } : undefined
|
|
18
|
+
* );
|
|
19
|
+
* FormulaText.image(spelled, { at: { rowIndex: 9, colIndex: 1 } }); // '_xlfn.SUM(A1:A5)'
|
|
20
|
+
* FormulaText.image(spelled, { at: { rowIndex: 10, colIndex: 1 } }); // '_xlfn.SUM(A2:A6)'
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare namespace FormulaText {
|
|
24
|
+
interface ParseOptions {
|
|
25
|
+
/**
|
|
26
|
+
* The cell the text is written at. A relative reference is stored as its offset from here, so
|
|
27
|
+
* the same tree images at another cell as the formula would read there. Defaults to `A1`.
|
|
28
|
+
*/
|
|
29
|
+
anchor?: IRange.CellCoords;
|
|
30
|
+
/**
|
|
31
|
+
* Normalize the tree as the compiler does before it links symbols: a `LET` or `LAMBDA`
|
|
32
|
+
* parameter is a bound name, an unknown function is a call of a name, a structured reference
|
|
33
|
+
* is normalized and `[#This Row]` reads as `@`. What a writer wants, since that is the shape
|
|
34
|
+
* the model's canonical text has. A reader wants the text as written, which is the default:
|
|
35
|
+
* a spelling it has yet to unwrap is still a function to it.
|
|
36
|
+
*/
|
|
37
|
+
normalize?: boolean;
|
|
38
|
+
}
|
|
39
|
+
interface ImageOptions {
|
|
40
|
+
/**
|
|
41
|
+
* The cell to image the text at. Image at the anchor the text was parsed at to reproduce it;
|
|
42
|
+
* image at another cell to re-anchor it. Defaults to `A1`.
|
|
43
|
+
*/
|
|
44
|
+
at?: IRange.CellCoords;
|
|
45
|
+
/** The sheet's extent, for whole-row and whole-column references. Defaults to the maximum. */
|
|
46
|
+
entireCoords?: IRange.Coords;
|
|
47
|
+
/** Image in R1C1 rather than A1. */
|
|
48
|
+
r1c1?: boolean;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Parses canonical formula text (English function names, `,` separators, no leading `=`) into
|
|
52
|
+
* its tree, or `null` when the text does not parse.
|
|
53
|
+
*
|
|
54
|
+
* @remarks
|
|
55
|
+
* A sheet, table or name is the text that names it; nothing is resolved. See
|
|
56
|
+
* {@link ParseOptions.normalize} for the shape of the tree.
|
|
57
|
+
*/
|
|
58
|
+
function parse(text: string, options?: ParseOptions): ICalculation.FormulaNode | null;
|
|
59
|
+
/**
|
|
60
|
+
* Applies a transform to a tree, post-order, and returns the transformed tree: the same object
|
|
61
|
+
* when the transform changed nothing.
|
|
62
|
+
*
|
|
63
|
+
* @see {@link ICalculation.FormulaTransform}
|
|
64
|
+
*/
|
|
65
|
+
function transform(root: ICalculation.FormulaNode, transform: ICalculation.FormulaTransform): ICalculation.FormulaNode;
|
|
66
|
+
/** Images a tree as text at a cell. */
|
|
67
|
+
function image(root: ICalculation.FormulaNode, options?: ImageOptions): string;
|
|
68
|
+
/**
|
|
69
|
+
* Prepares a tree for imaging at many cells: the tree is rebuilt once, and each call images it
|
|
70
|
+
* at one cell. What a writer uses for the members of a block that share one formula.
|
|
71
|
+
*/
|
|
72
|
+
function imager(root: ICalculation.FormulaNode, options?: Omit<ImageOptions, 'at'>): (at?: IRange.CellCoords) => string;
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=FormulaText.d.ts.map
|