@sheetxl/sdk 0.8.0-beta.1 → 0.8.0-beta.3
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/B0AS8k-hrSCBUlUY.cjs +1 -0
- package/browser/cjs/B308aXzcAYr1GN1c.cjs +1 -0
- package/browser/cjs/B44p8LIyxG3GtaGC.cjs +93 -0
- package/browser/cjs/{a0Z-SXs_N71CtqYb.cjs → D6YaqporVrSewZpm.cjs} +1 -1
- package/browser/cjs/DjWcveVCs0NFiKep.cjs +1 -0
- package/browser/cjs/index.cjs +2 -2
- package/browser/esm/-OKDZ9cUBtkgD4Zr.mjs +20 -0
- package/browser/esm/8Nw0lKc4ISs7hEJT.mjs +70223 -0
- package/browser/esm/{DlPMeIyxT9tG_WDk.mjs → BmEEyMxNzlbXG98H.mjs} +2 -2
- package/browser/esm/BtdDRkWn-zCV3oic.mjs +394 -0
- package/browser/esm/DaCTT4vda0m8Fnxo.mjs +8 -0
- package/browser/esm/{B0HS42a7lga1k1U_.mjs → DvFKKE72ZA02l8iF.mjs} +1 -1
- package/browser/esm/{uyWBMSIxMlt8n5Z3.mjs → Z-dzbKvqaxll9l_t.mjs} +2 -2
- package/browser/esm/index.mjs +871 -696
- package/licenses/dependencies.txt +204 -204
- package/node/esm/{Cku7XiUvw1xrRasi.mjs → BpMTlTrJLWh_wJ5H.mjs} +1 -1
- package/node/esm/D5quDVovf1zjYBgJ.mjs +28 -0
- package/node/esm/DP0M3_S_dwLwRMiA.mjs +403 -0
- package/node/esm/DTHN_EkuOscW3f3B.mjs +8 -0
- package/node/esm/index.mjs +54375 -39377
- 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 +7094 -0
- package/types/scripting-enums.json +54 -8
- package/types/scripting.d.ts +6985 -1171
- 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 +740 -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 +312 -33
- 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 +141 -30
- 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 +36 -2
- package/types/src/calculation/state/IContextContainer.d.ts +129 -27
- 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 +329 -72
- 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 +11 -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 +56 -19
- package/types/src/primitives/Range.d.ts +102 -24
- 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/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 +151 -18
- 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 +749 -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 +62 -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 +2 -2
- 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/BatsV2UUraVDCRXm.cjs +0 -57
- package/browser/cjs/CUz53T65cRGQRgvv.cjs +0 -33
- package/browser/cjs/DU0kYUtdFa3jK-im.cjs +0 -1
- package/browser/cjs/Dv4yIPLV98M5zLHa.cjs +0 -1
- package/browser/esm/6JKSOvc5czaQB2Bj.mjs +0 -109
- package/browser/esm/BtuJ9AGzeURtAsGo.mjs +0 -51241
- package/browser/esm/DGU6sM25u0EWCKl1.mjs +0 -824
- package/browser/esm/f2G3QRgEbvFJcoa2.mjs +0 -4436
- package/node/esm/-pxdn3M3tc6PLHs7.mjs +0 -114
- package/node/esm/0n5bslM9jhO1JnI2.mjs +0 -843
- 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
|
@@ -27,7 +27,9 @@ export interface ResolvedCellModifiers {
|
|
|
27
27
|
type: ScalarType | undefined;
|
|
28
28
|
value: Scalar | null | undefined;
|
|
29
29
|
style: IStyle.Update | null | undefined;
|
|
30
|
+
impliedStyle: IStyle.Update | undefined;
|
|
30
31
|
hyperlink: IHyperlink.Update | undefined;
|
|
32
|
+
comments: IComment.Update | undefined;
|
|
31
33
|
formula: string | null | undefined;
|
|
32
34
|
stringToParse: string | null | undefined;
|
|
33
35
|
}
|
|
@@ -51,7 +53,37 @@ interface Cache<K, V> {
|
|
|
51
53
|
* // TODO - remove style dependency and see if we can remove it.
|
|
52
54
|
*/
|
|
53
55
|
export declare function resolveCellModifiers(runtime: IRuntime, update: ICell.Update, optionsFromString?: ICell.ModifiersFromStringOptions | null, resolvedStringCache?: Map<string, ICell.Modifiers> | null, // assumes the same fromStringOptions is used
|
|
54
|
-
isParsingCustom?: boolean): ResolvedCellModifiers | undefined;
|
|
56
|
+
isParsingCustom?: boolean, destination?: IRange.CellCoords | null): ResolvedCellModifiers | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* The decorations (data bar, icon set) a cell's conditional rules draw — the walk behind
|
|
59
|
+
* {@link SheetCell.getConditionalDecorations}, without a cell.
|
|
60
|
+
*
|
|
61
|
+
* @remarks
|
|
62
|
+
* `getStyle` is a thunk, not a style: only a matched icon set consults it (to drop the icon for
|
|
63
|
+
* rotated/stacked text), and resolving a style eagerly for every cell of a rule's range is exactly
|
|
64
|
+
* what the callers — the cell's own lazy resolution, and autoFit's per-cell scan — must not pay.
|
|
65
|
+
*/
|
|
66
|
+
export declare function csConditionalDecorations(conditionals: IConditionalFormat | IConditionalFormat[] | null | undefined, rowIndex: number, colIndex: number, value: Scalar, getStyle: () => IStyle): Readonly<IConditionalFormat.Decorations>;
|
|
67
|
+
/**
|
|
68
|
+
* The leading-edge width an icon-set decoration reserves for a cell of this style.
|
|
69
|
+
*
|
|
70
|
+
* @remarks
|
|
71
|
+
* The icon is a square of the font box drawn at the leading inset — where the first glyph of
|
|
72
|
+
* left-aligned text would start — and the text resumes one leading inset after it. So the
|
|
73
|
+
* reservation is the icon plus that second inset, and both terms are font-sized: a larger font
|
|
74
|
+
* reserves proportionally more and gets a proportionally larger icon.
|
|
75
|
+
*
|
|
76
|
+
* Both terms are properties of the STYLE, never of the value, so the gutter cannot shift as the
|
|
77
|
+
* cell is edited — which is what lets whatever draws the icon place it from the same two numbers
|
|
78
|
+
* instead of being told where the gutter ended. Measured on the empty string because the measurer
|
|
79
|
+
* keeps THAT one globally, keyed by font: the line height is a font metric, and reading it this way
|
|
80
|
+
* outlives the styles it is read through (see {@link calcAccountingBottomInset}, same idiom).
|
|
81
|
+
*
|
|
82
|
+
* Free-standing rather than a `SheetCell` member because measurement reaches it from two directions:
|
|
83
|
+
* a resolved cell ({@link SheetCell.getInsets}), and autoFit's segment scan, which has a style and
|
|
84
|
+
* a decoration but never builds the cell.
|
|
85
|
+
*/
|
|
86
|
+
export declare const csIconGutter: (style: IStyle) => number;
|
|
55
87
|
export declare function csOverflowable(type: ScalarType, style: IStyle, prev?: boolean, next?: boolean): boolean;
|
|
56
88
|
/**
|
|
57
89
|
* Updates the overflow calc and returns a range if overflowed
|
|
@@ -102,7 +134,7 @@ export interface BestFitViewOptions {
|
|
|
102
134
|
formulaText?: string;
|
|
103
135
|
}
|
|
104
136
|
export declare function csBestFit(type: ScalarType, style: IStyle, value: Scalar, options: SheetCellOptions, colWidth: number, isMinContent: boolean, isRowOnly: boolean, // if true we only measure the height
|
|
105
|
-
customHash?: string | null, cache?: Cache<string, Readonly<Partial<Size>>>, view?: BestFitViewOptions): Readonly<Partial<Size>> | null;
|
|
137
|
+
iconGutter?: number, customHash?: string | null, cache?: Cache<string, Readonly<Partial<Size>>>, view?: BestFitViewOptions): Readonly<Partial<Size>> | null;
|
|
106
138
|
/**
|
|
107
139
|
* A coords-keyed cache of resolved `ICell`s for hot read paths (rendering).
|
|
108
140
|
*
|
|
@@ -111,6 +143,8 @@ customHash?: string | null, cache?: Cache<string, Readonly<Partial<Size>>>, view
|
|
|
111
143
|
* (see `invalidateCaches` in `Sheet`). `LRUCache` satisfies this shape.
|
|
112
144
|
*/
|
|
113
145
|
export interface RenderCellCache {
|
|
146
|
+
/** The number of cells cached. */
|
|
147
|
+
readonly size: number;
|
|
114
148
|
get(key: number): ICell | undefined;
|
|
115
149
|
set(key: number, value: ICell): void;
|
|
116
150
|
clear(): void;
|
|
@@ -120,14 +154,16 @@ export interface SheetCellOptions {
|
|
|
120
154
|
getRange(address: ICellRange.Address): ICellRange | null;
|
|
121
155
|
getRanges: (address: ICellRanges.Address) => ICellRanges | null;
|
|
122
156
|
getCalcGrid?(): ICalcGrid;
|
|
157
|
+
/** The engine's status; see `Formula.ConstructorOptions.getCalculationStatus`. */
|
|
158
|
+
getCalculationStatus?(): ICalculation.Status;
|
|
123
159
|
/**
|
|
124
160
|
* Calculation-graph neighbors — the same engine `ICellRange` uses, which is the point: the calc
|
|
125
161
|
* grid answers in calc currency (grid stableIds, and virtual grids for named formulas) and it is
|
|
126
162
|
* this seam that translates them to sheet names and drops what is not a sheet. Going at the grid
|
|
127
163
|
* directly leaks a stableId into an address, where it prints as `#REF!`.
|
|
128
164
|
*/
|
|
129
|
-
dependencyRanges?(coords: IRange.Coords, kind: 'precedents' | 'dependents', direct: boolean): ICellRanges | null
|
|
130
|
-
doBatchCalcGrid?(callback: (calcGrid: ICalcGrid) => IRange.Coords
|
|
165
|
+
dependencyRanges?(coords: IRange.Coords, kind: 'precedents' | 'dependents', direct: boolean): Promise<ICellRanges | null>;
|
|
166
|
+
doBatchCalcGrid?(callback: (calcGrid: ICalcGrid) => Promise<IRange.Coords | null>, options?: string | ITransaction.OperationOptions): Promise<void>;
|
|
131
167
|
/**
|
|
132
168
|
* Resolve a sheet's internal stableId (rename-safe) to its display name, or `null`. Threaded into
|
|
133
169
|
* {@link Formula.ConstructorOptions} so a committed formula's cross-sheet references resolve at the
|
|
@@ -169,12 +205,23 @@ export declare class SheetCell implements ICell {
|
|
|
169
205
|
protected _t: ScalarType;
|
|
170
206
|
protected _v: Scalar;
|
|
171
207
|
protected _d: Date | null | undefined;
|
|
208
|
+
protected _dfmt: string | null;
|
|
172
209
|
protected _column: ITable.IColumn | null | undefined;
|
|
173
210
|
protected _cd: Readonly<IConditionalFormat.Decorations> | undefined;
|
|
174
211
|
protected _s: IStyle | undefined;
|
|
175
212
|
protected _sd: IStyle | undefined;
|
|
176
213
|
constructor(options: SheetCellOptions, coords: IRange.CellCoords | null, type?: ScalarType, value?: Scalar, intersection?: RangeState.Intersection | null, p?: IRange.CellCoords | null, // prev
|
|
177
214
|
n?: IRange.CellCoords | null);
|
|
215
|
+
/**
|
|
216
|
+
* The interop date, resolved on first ask. `null` when this cell isn't a date.
|
|
217
|
+
*
|
|
218
|
+
* @remarks
|
|
219
|
+
* The serial converted, gated on the format's category — which is all `NumberFormat.Parsed.asDate`
|
|
220
|
+
* is. Going through `getNumberFormat` would also resolve the cell's style and render its display
|
|
221
|
+
* text and runs, none of which the date is read from, and this is on `getInteropType`'s path: an
|
|
222
|
+
* interop scan pays it per cell.
|
|
223
|
+
*/
|
|
224
|
+
protected _getDate(): Date | null;
|
|
178
225
|
/** {@inheritDoc ICell.getRange} */
|
|
179
226
|
getRange(): ICellRange;
|
|
180
227
|
/** {@inheritDoc ICell.isEqual} */
|
|
@@ -216,29 +263,35 @@ export declare class SheetCell implements ICell {
|
|
|
216
263
|
/** {@inheritDoc ICell.getInsets} */
|
|
217
264
|
getInsets(): Rectangle;
|
|
218
265
|
/**
|
|
219
|
-
* The leading-edge width
|
|
266
|
+
* The leading-edge width this cell's icon-set decoration reserves, or `0` for a cell without one.
|
|
220
267
|
*
|
|
221
268
|
* @remarks
|
|
222
|
-
*
|
|
223
|
-
*
|
|
224
|
-
*
|
|
225
|
-
* larger font reserves proportionally more and gets a proportionally larger icon.
|
|
226
|
-
*
|
|
227
|
-
* Both are properties of the STYLE, never of the value, so the gutter cannot shift as the cell is
|
|
228
|
-
* edited — which is what lets whatever draws the icon place it from the same two numbers instead
|
|
229
|
-
* of being told where the gutter ended. Measured on the empty string because the measurer keeps
|
|
230
|
-
* THAT one globally, keyed by font: the line height is a font metric, and reading it this way
|
|
231
|
-
* outlives the styles it is read through (see {@link calcAccountingBottomInset}, same idiom).
|
|
269
|
+
* See {@link csIconGutter} for what the reservation is made of. Every measurement of the cell —
|
|
270
|
+
* insets, best-fit, the editor's caret — reads it from here, so they cannot disagree with the
|
|
271
|
+
* icon layer, which places the icon from the same two style numbers.
|
|
232
272
|
*/
|
|
233
273
|
protected _iconGutter(): number;
|
|
234
274
|
/** {@inheritDoc ICell.getTextFrame} */
|
|
235
275
|
getTextFrame(showFormula?: boolean): ITextFrame | null;
|
|
236
276
|
/** {@inheritDoc ICell.getTextPlacement} */
|
|
237
277
|
getTextPlacement(size: Size, useFormula?: boolean): ICell.TextPlacement | null;
|
|
238
|
-
/**
|
|
278
|
+
/**
|
|
279
|
+
* {@inheritDoc ICell.getFormula}
|
|
280
|
+
*
|
|
281
|
+
* @remarks
|
|
282
|
+
* Answered from the sheet's own formula entry, in every engine state: the text is there the
|
|
283
|
+
* moment it is set, the compiled block when the engine vends it. The handle reads the entry, so
|
|
284
|
+
* one taken before the vend is fully functional after it (`IFormula.isCompiled`).
|
|
285
|
+
*/
|
|
239
286
|
getFormula(): ICalculation.IFormula | null;
|
|
240
287
|
/** {@inheritDoc ICell.getFormulaText} */
|
|
241
288
|
getFormulaText(options?: ICalculation.FormulaTextOptions): string | null;
|
|
289
|
+
/**
|
|
290
|
+
* The formula's stored text, without the leading `=` — {@link ICalculation.IFormula.getExpression}
|
|
291
|
+
* without building the formula.
|
|
292
|
+
* @internal
|
|
293
|
+
*/
|
|
294
|
+
getExpressionText(options?: ICalculation.FormulaTextOptions): string | null;
|
|
242
295
|
/** {@inheritDoc ICell.getCalculationStatus} */
|
|
243
296
|
getCalculationStatus(): ICalculation.ResultStatus;
|
|
244
297
|
/**
|
|
@@ -250,13 +303,13 @@ export declare class SheetCell implements ICell {
|
|
|
250
303
|
*/
|
|
251
304
|
private _dependencyRanges;
|
|
252
305
|
/** {@inheritDoc ICell.getDirectDependents} */
|
|
253
|
-
getDirectDependents(): ICellRanges
|
|
306
|
+
getDirectDependents(): Promise<ICellRanges | null>;
|
|
254
307
|
/** {@inheritDoc ICell.getDirectPrecedents} */
|
|
255
|
-
getDirectPrecedents(): ICellRanges
|
|
308
|
+
getDirectPrecedents(): Promise<ICellRanges | null>;
|
|
256
309
|
/** {@inheritDoc ICell.getDependents} */
|
|
257
|
-
getDependents(): ICellRanges
|
|
310
|
+
getDependents(): Promise<ICellRanges | null>;
|
|
258
311
|
/** {@inheritDoc ICell.getPrecedents} */
|
|
259
|
-
getPrecedents(): ICellRanges
|
|
312
|
+
getPrecedents(): Promise<ICellRanges | null>;
|
|
260
313
|
/** {@inheritDoc ICell.getValue} */
|
|
261
314
|
getValue(): Scalar;
|
|
262
315
|
/** {@inheritDoc ICell.getType} */
|
|
@@ -287,7 +340,7 @@ export declare class SheetCell implements ICell {
|
|
|
287
340
|
/** {@inheritDoc ICell.getText} */
|
|
288
341
|
getText(options?: ICell.GetTextOptions): string;
|
|
289
342
|
/** {@inheritDoc ICell.getComments} */
|
|
290
|
-
getComments():
|
|
343
|
+
getComments(): IComment | null;
|
|
291
344
|
/** {@inheritDoc ICell.getHyperlink} */
|
|
292
345
|
getHyperlink(): IHyperlink | null;
|
|
293
346
|
/** {@inheritDoc ICell.getErrors} */
|
|
@@ -302,6 +355,13 @@ export declare class SheetCell implements ICell {
|
|
|
302
355
|
isTopLeft(): boolean;
|
|
303
356
|
/** {@inheritDoc ICell.getSpill} */
|
|
304
357
|
getSpill(): ICellRange | null;
|
|
358
|
+
/** {@inheritDoc ICell.getSpillKind} */
|
|
359
|
+
getSpillKind(): ITypes.FormulaArrayKind | null;
|
|
360
|
+
/**
|
|
361
|
+
* The spill entry this cell answers for: the first live one, else a blocked one so the UI can
|
|
362
|
+
* still show the range it would have taken.
|
|
363
|
+
*/
|
|
364
|
+
protected _getSpillEntry(): SpillEntry | null;
|
|
305
365
|
/** {@inheritDoc ICell.isSpillOverflow} */
|
|
306
366
|
isSpillOverflow(): boolean;
|
|
307
367
|
get [Symbol.toStringTag](): string;
|
|
@@ -1,18 +1,29 @@
|
|
|
1
|
+
import { ICollection, AbstractCollection } from '../type';
|
|
2
|
+
import { IListener } from '../listener';
|
|
1
3
|
import { ISheetCollection } from './ISheetCollection';
|
|
2
4
|
import { ISheet } from './ISheet';
|
|
3
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Implementation for {@link ISheetCollection}.
|
|
7
|
+
*
|
|
8
|
+
* @remarks
|
|
9
|
+
* A front over the workbook's own sheet state — the workbook keeps the store and the events,
|
|
10
|
+
* this class keeps the API. `onCollectionChange` is the workbook's `onSheetsChange`, forwarded
|
|
11
|
+
* with this collection as the source.
|
|
12
|
+
*/
|
|
13
|
+
export declare class SheetCollection extends AbstractCollection<ISheet, ISheetCollection.GetItemsOptions> implements ISheetCollection {
|
|
4
14
|
private _add;
|
|
5
15
|
private _get;
|
|
6
|
-
|
|
16
|
+
private _addListeners;
|
|
17
|
+
constructor(add: (options: ISheetCollection.AddOptions | string | number) => ISheet, get: (name?: string, visibility?: ISheet.Visibility) => ISheet[], addListeners: (listeners: ICollection.IListeners, options?: IListener.Options) => IListener.Remove);
|
|
7
18
|
/** {@inheritDoc ISheetCollection.add} */
|
|
8
19
|
add(options?: ISheetCollection.AddOptions | string | number): ISheet;
|
|
9
|
-
/** {@inheritDoc
|
|
10
|
-
|
|
11
|
-
/** {@inheritDoc ISheetCollection.getItems} */
|
|
12
|
-
getItems(options?: ISheetCollection.GetItemsOptions): ISheet[];
|
|
20
|
+
/** {@inheritDoc AbstractCollection._getItems} */
|
|
21
|
+
protected _getItems(options?: ISheetCollection.GetItemsOptions): ISheet[];
|
|
13
22
|
/** {@inheritDoc ISheetCollection.getByName} */
|
|
14
23
|
getByName(name: string): ISheet;
|
|
15
|
-
/** {@inheritDoc
|
|
16
|
-
|
|
24
|
+
/** {@inheritDoc ICollection.addListeners} */
|
|
25
|
+
addListeners(listeners: ICollection.IListeners, options?: IListener.Options): IListener.Remove;
|
|
26
|
+
/** {@inheritDoc ISheetCollection.isISheetCollection} */
|
|
27
|
+
get isISheetCollection(): true;
|
|
17
28
|
}
|
|
18
29
|
//# sourceMappingURL=SheetCollection.d.ts.map
|
|
@@ -4,25 +4,33 @@ import { ITransaction } from '../transaction';
|
|
|
4
4
|
import { IListener } from '../listener';
|
|
5
5
|
import { ICell } from '../cell';
|
|
6
6
|
import { ICellRange, ICellRegions, ICellRanges, ICellHeaderRange } from '../cellRange';
|
|
7
|
-
import { IComment } from '../comment';
|
|
7
|
+
import { IComment, ICommentCollection } from '../comment';
|
|
8
8
|
import { IStyle } from '../style';
|
|
9
9
|
import { ITable, ITableCollection } from '../table';
|
|
10
10
|
import { IMovable, IMovableCollection } from '../movable';
|
|
11
11
|
import { IHyperlink } from '../hyperlink';
|
|
12
12
|
import { ICondition } from '../condition';
|
|
13
13
|
import { ISort } from '../sort';
|
|
14
|
+
import { IAutoFill } from '../autoFill';
|
|
14
15
|
import { ICalculation } from '../calculation';
|
|
16
|
+
import { FormulaHost } from '../calculation/grid';
|
|
15
17
|
import { IDataValidation, IDataValidationCollection } from '../dataValidation';
|
|
16
18
|
import { IConditionalFormat } from '../conditionalFormat/IConditionalFormat';
|
|
17
19
|
import { IConditionalFormatCollection } from '../conditionalFormat/IConditionalFormatCollection';
|
|
20
|
+
import { IProtectedRange, IProtectedRangeCollection } from '../protectedRange';
|
|
18
21
|
import { ISheet } from './ISheet';
|
|
19
22
|
import { ISheetInternal } from './Sheet';
|
|
20
|
-
import { AutoFillProjection } from './
|
|
23
|
+
import { AutoFillProjection } from './_SheetAutoFillUtils';
|
|
21
24
|
/**
|
|
22
25
|
* The empty feature selection — the raw-value fast path.
|
|
23
26
|
* @internal
|
|
24
27
|
*/
|
|
25
28
|
export declare const _NoFeatures: readonly ICellRange.Feature[];
|
|
29
|
+
/**
|
|
30
|
+
* A watch listens for the VALUE landing, not for the transaction that caused it — a recalculation
|
|
31
|
+
* notifies its own ranges once the results are in (`trigger: 'calc'`), which is the moment a watch
|
|
32
|
+
* has something new to report.
|
|
33
|
+
*/
|
|
26
34
|
export interface SheetRangeOptions {
|
|
27
35
|
readOnly?: string;
|
|
28
36
|
getOptions: ICellRange.GetRangeOptions;
|
|
@@ -70,6 +78,14 @@ export declare class SheetRange implements ICellRange {
|
|
|
70
78
|
protected _deriveRange(address?: ICellRange.Address, options?: ICellRange.GetRangeOptions, callback?: (newCoords: IRange.Coords, origCoords: IRange.Coords) => IRange.Coords | null): this | null;
|
|
71
79
|
/** @internal */
|
|
72
80
|
protected _validateMaxSize(maxSize?: number): void;
|
|
81
|
+
/**
|
|
82
|
+
* The read of a one-cell range, answered from the cell the way `getValue()` / `getCell()` answer
|
|
83
|
+
* it: no used range and no iterator, so a read made while writes are held does not make them.
|
|
84
|
+
*
|
|
85
|
+
* @returns `undefined` if the range is more than one cell or an option can change the answer.
|
|
86
|
+
* @internal
|
|
87
|
+
*/
|
|
88
|
+
protected _readSingleCell<T>(options: ICellRange.GetValuesOptions | undefined, read: (rowIndex: number, colIndex: number) => T): T[][] | undefined;
|
|
73
89
|
/** {@inheritDoc ICellRange.entries} */
|
|
74
90
|
entries(options?: ICellRange.IteratorOptions): IterableIterator<ICellRange.Entry>;
|
|
75
91
|
/** {@inheritDoc ICellRange[Symbol.iterator]} */
|
|
@@ -110,10 +126,32 @@ export declare class SheetRange implements ICellRange {
|
|
|
110
126
|
getCell(address?: ICell.Address): ICell;
|
|
111
127
|
/** {@inheritDoc ICellRange.getFormula} */
|
|
112
128
|
getFormula(address?: ICell.Address): ICalculation.IFormula;
|
|
129
|
+
/** {@inheritDoc ICellRange.getFormulas} */
|
|
130
|
+
getFormulas(): string[][];
|
|
131
|
+
/** {@inheritDoc ICellRange.setFormulas} */
|
|
132
|
+
setFormulas(formulas: readonly string[][], options?: ICellRange.SetValuesOptions): this;
|
|
133
|
+
/** {@inheritDoc ICellRange.getNumberFormat} */
|
|
134
|
+
getNumberFormat(): string;
|
|
135
|
+
/** {@inheritDoc ICellRange.getNumberFormats} */
|
|
136
|
+
getNumberFormats(): string[][];
|
|
137
|
+
/** {@inheritDoc ICellRange.setNumberFormat} */
|
|
138
|
+
setNumberFormat(numFmt: string | null, options?: IStyle.UpdateOptions): this;
|
|
139
|
+
/** {@inheritDoc ICellRange.setNumberFormats} */
|
|
140
|
+
setNumberFormats(formats: readonly string[][], options?: ICellRange.UpdateCellsOptions): this;
|
|
141
|
+
/**
|
|
142
|
+
* Throws if the whole range is larger than a dense read allows.
|
|
143
|
+
* @internal
|
|
144
|
+
*/
|
|
145
|
+
protected _validateDenseSize(): void;
|
|
146
|
+
/**
|
|
147
|
+
* A row-major array in the shape of the range with every cell set to `fill`.
|
|
148
|
+
* @internal
|
|
149
|
+
*/
|
|
150
|
+
protected _createDense<T>(fill: T): T[][];
|
|
113
151
|
/** {@inheritDoc ICellRange.createFormula} */
|
|
114
|
-
createFormula(expression: string): ICalculation.IFormula;
|
|
152
|
+
createFormula(expression: string, options?: ICalculation.CreateFormulaOptions): ICalculation.IFormula;
|
|
115
153
|
/** {@inheritDoc ICellRange.addWatch} */
|
|
116
|
-
addWatch(formula: ICalculation.IFormula | string, callback: ICellRange.WatchCallback): IListener.Remove;
|
|
154
|
+
addWatch(formula: ICalculation.IFormula | string, callback: ICellRange.WatchCallback, options?: ICellRange.WatchOptions): IListener.Remove;
|
|
117
155
|
/**
|
|
118
156
|
* {@link addWatch}, plus the origin an area of a multi-area watch shares with its siblings.
|
|
119
157
|
*
|
|
@@ -121,6 +159,7 @@ export declare class SheetRange implements ICellRange {
|
|
|
121
159
|
* range's own top-left, and a formula anchored anywhere else is an error. Supplied
|
|
122
160
|
* by {@link ICellRanges.addWatch}, it is the shared origin, and the formula is
|
|
123
161
|
* FILLED from there to this range instead.
|
|
162
|
+
* @param options See {@link ICellRange.WatchOptions}.
|
|
124
163
|
*
|
|
125
164
|
* @remarks
|
|
126
165
|
* The fill lives here rather than on the public method deliberately: silently re-siting whatever
|
|
@@ -131,7 +170,8 @@ export declare class SheetRange implements ICellRange {
|
|
|
131
170
|
_addWatch(formula: ICalculation.IFormula | string, handlers: {
|
|
132
171
|
onValues?: ICellRange.WatchCallback;
|
|
133
172
|
onChange?: () => void;
|
|
134
|
-
|
|
173
|
+
onRegistered?: (host: FormulaHost) => void;
|
|
174
|
+
}, origin?: IRange.CellCoords, options?: ICellRange.WatchOptions): IListener.Remove;
|
|
135
175
|
/** {@inheritDoc ICellRange.select} */
|
|
136
176
|
select(options?: ICellRange.SelectOptions): Promise<this>;
|
|
137
177
|
/** {@inheritDoc ICellRange.find} */
|
|
@@ -222,17 +262,15 @@ export declare class SheetRange implements ICellRange {
|
|
|
222
262
|
/** {@inheritDoc ICellRange.getCounts} */
|
|
223
263
|
getCounts(features?: ICellRange.Feature | readonly ICellRange.Feature[]): ICellRange.Counts;
|
|
224
264
|
/** {@inheritDoc ICellRange.getDirectPrecedents} */
|
|
225
|
-
getDirectPrecedents(): ICellRanges | null
|
|
265
|
+
getDirectPrecedents(): Promise<ICellRanges | null>;
|
|
226
266
|
/** {@inheritDoc ICellRange.getDirectDependents} */
|
|
227
|
-
getDirectDependents(): ICellRanges | null
|
|
267
|
+
getDirectDependents(): Promise<ICellRanges | null>;
|
|
228
268
|
/** {@inheritDoc ICellRange.getPrecedents} */
|
|
229
|
-
getPrecedents(): ICellRanges | null
|
|
269
|
+
getPrecedents(): Promise<ICellRanges | null>;
|
|
230
270
|
/** {@inheritDoc ICellRange.getDependents} */
|
|
231
|
-
getDependents(): ICellRanges | null
|
|
271
|
+
getDependents(): Promise<ICellRanges | null>;
|
|
232
272
|
/** {@inheritDoc ICellRange.getRegions} */
|
|
233
273
|
getRegions(features?: ICellRange.Feature | readonly ICellRange.Feature[], options?: ICellRange.GetRegionsOptions): ICellRegions;
|
|
234
|
-
/** {@inheritDoc ICellRange.getCount} */
|
|
235
|
-
getCount(type?: ICell.Content): number;
|
|
236
274
|
/** {@inheritDoc ICellRange.isEntireRows} */
|
|
237
275
|
isEntireRows(): boolean;
|
|
238
276
|
/** {@inheritDoc ICellRange.isEntireColumns} */
|
|
@@ -255,6 +293,8 @@ export declare class SheetRange implements ICellRange {
|
|
|
255
293
|
getDefaultShiftAxis(): IRange.Axis;
|
|
256
294
|
/** {@inheritDoc ICellRange.getDefaultSortCriteria} */
|
|
257
295
|
getDefaultSortCriteria(axis?: IRange.Axis, cell?: ICell.Address): ISort.DefaultSortCriteria | null;
|
|
296
|
+
/** {@inheritDoc ICellRange.getDefaultAutoFillCriteria} */
|
|
297
|
+
getDefaultAutoFillCriteria(direction?: IRange.Direction, destination?: ICellRange.Address): IAutoFill.DefaultCriteria | null;
|
|
258
298
|
/** {@inheritDoc ICellRange.getMerges} */
|
|
259
299
|
getMerges(): IRange.Coords[];
|
|
260
300
|
/**
|
|
@@ -268,10 +308,14 @@ export declare class SheetRange implements ICellRange {
|
|
|
268
308
|
protected _itemQuery<T extends {
|
|
269
309
|
ignoreHidden?: boolean;
|
|
270
310
|
}>(options?: T): T;
|
|
311
|
+
/** {@inheritDoc ICellRange.getUnlocked} */
|
|
312
|
+
getUnlocked(options?: ICellRange.GetItemsOptions<IProtectedRangeCollection.GetItemsOptions>): IProtectedRange[];
|
|
271
313
|
/** {@inheritDoc ICellRange.getConditionalFormats} */
|
|
272
314
|
getConditionalFormats(options?: ICellRange.GetItemsOptions<IConditionalFormatCollection.GetItemsOptions>): IConditionalFormat[];
|
|
273
315
|
/** {@inheritDoc ICellRange.getDataValidations} */
|
|
274
316
|
getDataValidations(options?: ICellRange.GetItemsOptions<IDataValidationCollection.GetItemsOptions>): IDataValidation[];
|
|
317
|
+
/** {@inheritDoc ICellRange.getComments} */
|
|
318
|
+
getComments(options?: ICellRange.GetItemsOptions<ICommentCollection.GetItemsOptions>): IComment[];
|
|
275
319
|
/** {@inheritDoc ICellRange.getTables} */
|
|
276
320
|
getTables(options?: ICellRange.GetItemsOptions<ITableCollection.GetItemsOptions>): ITable[];
|
|
277
321
|
/** {@inheritDoc ICellRange.getMovables} */
|
|
@@ -281,8 +325,6 @@ export declare class SheetRange implements ICellRange {
|
|
|
281
325
|
/** {@inheritDoc ICellRange.isReadOnly} */
|
|
282
326
|
isReadOnly(): boolean;
|
|
283
327
|
/** {@inheritDoc ICellRange.addListener} */
|
|
284
|
-
addListener2(listener: ICellRange.Listener, options?: ICellRange.ListenerOptions): IListener.Remove;
|
|
285
|
-
/** {@inheritDoc ICellRange.addListener} */
|
|
286
328
|
addListener(listener: ICellRange.Listener, options?: ICellRange.ListenerOptions): IListener.Remove;
|
|
287
329
|
/** {@inheritDoc ICellRange.getSheet} */
|
|
288
330
|
getSheet(): ISheet;
|
|
@@ -295,7 +337,7 @@ export declare class SheetRange implements ICellRange {
|
|
|
295
337
|
/** {@inheritDoc ICellRange.setHyperlink} */
|
|
296
338
|
setHyperlink(hyperlink: IHyperlink.Update, options?: ITransaction.OperationOptions): this;
|
|
297
339
|
/** {@inheritDoc ICellRange.setComments} */
|
|
298
|
-
setComments(comments: IComment.
|
|
340
|
+
setComments(comments: IComment.Update, options?: ITransaction.OperationOptions): this;
|
|
299
341
|
/** {@inheritDoc ICellRange.getStyle} */
|
|
300
342
|
getStyle(): IStyle;
|
|
301
343
|
/** {@inheritDoc ICellRange.merge} */
|
|
@@ -321,6 +363,8 @@ export declare class SheetRange implements ICellRange {
|
|
|
321
363
|
addTable(options?: ITableCollection.AddOptions | boolean): ITable;
|
|
322
364
|
/** {@inheritDoc ICellRange.insertFrom} */
|
|
323
365
|
insertFrom(source: ICellRange.Address | ICellRange.ISnapshot, options?: ICellRange.InsertFromOptions): Promise<this | null>;
|
|
366
|
+
/** {@inheritDoc ICellRange.canInsertFrom} */
|
|
367
|
+
canInsertFrom(source: ICellRange.Address | ICellRange.ISnapshot, options?: ICellRange.InsertFromOptions): boolean;
|
|
324
368
|
/** {@inheritDoc ICellRange.copyFrom} */
|
|
325
369
|
copyFrom(source: ICellRange.Address | ICellRange.ISnapshot, options?: ICellRange.CopyOptions): Promise<this | null>;
|
|
326
370
|
/** {@inheritDoc ICellRange.delete} */
|
|
@@ -364,6 +408,10 @@ export declare class PreviewSheetRange extends SheetRange {
|
|
|
364
408
|
getValues(options?: ICellRange.GetValuesOptions): Scalar[][];
|
|
365
409
|
/** {@inheritDoc ICellRange.getInteropValues} */
|
|
366
410
|
getInteropValues(options?: ICellRange.GetValuesOptions): InteropScalar[][];
|
|
411
|
+
/** {@inheritDoc ICellRange.getFormulas} */
|
|
412
|
+
getFormulas(): string[][];
|
|
413
|
+
/** {@inheritDoc ICellRange.getNumberFormats} */
|
|
414
|
+
getNumberFormats(): string[][];
|
|
367
415
|
/**
|
|
368
416
|
* A `getValuesRange` on a projection would have to materialize every cell, defeating the point of
|
|
369
417
|
* computing on demand — and it vends a live grid view, which a hypothetical has none of.
|
|
@@ -82,12 +82,10 @@ export declare class SheetRanges implements ICellRanges {
|
|
|
82
82
|
select(options?: ICellRange.SelectOptions): Promise<this>;
|
|
83
83
|
/** {@inheritDoc ICellRange.calculate} */
|
|
84
84
|
calculate(): this;
|
|
85
|
-
/** {@inheritDoc ICellRange.addListener} */
|
|
86
|
-
addListener2(listener: ICellRange.Listener, options?: ICellRange.ListenerOptions): IListener.Remove;
|
|
87
85
|
/** {@inheritDoc ICellRanges.addListener} */
|
|
88
86
|
addListener(listener: ICellRange.Listener, options?: ICellRange.ListenerOptions): IListener.Remove;
|
|
89
87
|
/** {@inheritDoc ICellRanges.addWatch} */
|
|
90
|
-
addWatch(formula: ICalculation.IFormula | string, callback: ICellRanges.WatchCallback): IListener.Remove;
|
|
88
|
+
addWatch(formula: ICalculation.IFormula | string, callback: ICellRanges.WatchCallback, options?: ICellRange.WatchOptions): IListener.Remove;
|
|
91
89
|
/**
|
|
92
90
|
* Registers one per-area watch of some kind, all sharing this set's origin.
|
|
93
91
|
* @internal
|
|
@@ -107,9 +105,9 @@ export declare class SheetRanges implements ICellRanges {
|
|
|
107
105
|
/** {@inheritDoc ICellRanges.getFlattened} */
|
|
108
106
|
getFlattened(options?: ICellRange.GetFlattenOptions): this;
|
|
109
107
|
/** {@inheritDoc ICellRanges.getPrecedents} */
|
|
110
|
-
getPrecedents(entireSet?: boolean): ICellRanges | null
|
|
108
|
+
getPrecedents(entireSet?: boolean): Promise<ICellRanges | null>;
|
|
111
109
|
/** {@inheritDoc ICellRanges.getDependents} */
|
|
112
|
-
getDependents(entireSet?: boolean): ICellRanges | null
|
|
110
|
+
getDependents(entireSet?: boolean): Promise<ICellRanges | null>;
|
|
113
111
|
/**
|
|
114
112
|
* Shared walk for {@link getPrecedents} / {@link getDependents}: ask each contiguous range for
|
|
115
113
|
* its own neighbors and flatten the union (the grid dedupes within a single query; across
|
|
@@ -122,7 +120,7 @@ export declare class SheetRanges implements ICellRanges {
|
|
|
122
120
|
* currency, which a direct `calcGrid` call does not do (a stableId reaching the address layer
|
|
123
121
|
* prints as `#REF!`).
|
|
124
122
|
*/
|
|
125
|
-
protected _trace(dependents: boolean, entireSet: boolean): ICellRanges | null
|
|
123
|
+
protected _trace(dependents: boolean, entireSet: boolean): Promise<ICellRanges | null>;
|
|
126
124
|
/**
|
|
127
125
|
* Re-expresses another collection's coords against THIS anchor.
|
|
128
126
|
*
|