@sheetxl/sdk 0.8.0-beta.1 → 0.8.0-beta.11
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/README.md +1 -1
- package/THIRD-PARTY-NOTICES.md +1 -1
- package/browser/esm/B7aUIvgUjncMMD_i.mjs +394 -0
- package/browser/esm/BFagR2JeWs74iAG3.mjs +171 -0
- package/browser/esm/BGOFfpxr2jPIdqmV.mjs +40 -0
- package/browser/esm/BLoUBId2xZpXAK_H.mjs +698 -0
- package/browser/esm/BMyDRQ716j79h_bH.mjs +86 -0
- package/browser/esm/BVDiOXGMc5_FMGfy.mjs +400 -0
- package/browser/esm/BjkCiv5Jz6WYKZeu.mjs +598 -0
- package/browser/esm/BkBhLS0l6z8sxI6D.mjs +441 -0
- package/browser/esm/BnG31I6Oj_HEtSPS.mjs +167 -0
- package/browser/esm/BoV6zPBnfqCBCqZ7.mjs +7729 -0
- package/browser/esm/BpgskG1Er_lGQ_yS.mjs +142 -0
- package/browser/esm/BtvLTTfSBdAKplVG.mjs +466 -0
- package/browser/esm/C16ycKja6zG0crV_.mjs +55580 -0
- package/browser/esm/C2VbEI_XVAoseAwa.mjs +1552 -0
- package/browser/esm/C4MqfLn9Dm-l3OIk.mjs +540 -0
- package/browser/esm/C5E6zSGAALWf61n4.mjs +199 -0
- package/browser/esm/CHU6iu_WGlm7fLET.mjs +1001 -0
- package/browser/esm/CQYjO777cmAznUzK.mjs +527 -0
- package/browser/esm/CU3DmJ-YnVVrC1_k.mjs +1123 -0
- package/browser/esm/CV5EGEjG5_-CPpP0.mjs +8212 -0
- package/browser/esm/{uyWBMSIxMlt8n5Z3.mjs → CaB7J-xgfKO2uAkG.mjs} +2 -2
- package/browser/esm/CkxWugaJFjDGZNZ-.mjs +12 -0
- package/browser/esm/ClPfI4lODvCece29.mjs +632 -0
- package/browser/esm/ClbvFbFzFzXLBKNN.mjs +193 -0
- package/browser/esm/{DlPMeIyxT9tG_WDk.mjs → Ctjb0SsxV4K4MMqG.mjs} +179 -202
- package/browser/esm/D5np__Jb1euAyaLw.mjs +7 -0
- package/browser/esm/DEiPS3Dr-s4fPbVZ.mjs +607 -0
- package/browser/esm/DLLE0FZNsKxbBzRn.mjs +128 -0
- package/browser/esm/DWNzqw7DUKwoxjri.mjs +20 -0
- package/browser/esm/{B0HS42a7lga1k1U_.mjs → Dlmig06rIo7cInRk.mjs} +2 -2
- package/browser/esm/{f2G3QRgEbvFJcoa2.mjs → DvAaxH6z_tGvrRzl.mjs} +1704 -1008
- package/browser/esm/Dyq_ivuHvlXLwPCl.mjs +12831 -0
- package/browser/esm/PcHFjNzQsE54POri.mjs +1141 -0
- package/browser/esm/S2dNNx1a5ydRnARM.mjs +367 -0
- package/browser/esm/f1IoRb7tEb0QmCSt.mjs +110 -0
- package/browser/esm/gssVX_FH1XFN-twD.mjs +210 -0
- package/browser/esm/index.mjs +1759 -1161
- package/browser/esm/nvU0ClAbf0g94YBK.mjs +1695 -0
- package/browser/esm/zlLuW405RSguy4Kn.mjs +357 -0
- package/licenses/dependencies.txt +141 -141
- package/node/esm/2Kihw_-5lVTEnwMa.mjs +1132 -0
- package/node/esm/857CIBgQgGpnqrXk.mjs +199 -0
- package/node/esm/B084DssTcdBheTp_.mjs +7966 -0
- package/node/esm/B21JjOLghRoDOrkx.mjs +134 -0
- package/node/esm/BIRq1kT7lLRzns9t.mjs +610 -0
- package/node/esm/BIwObuhTJYf0jpUa.mjs +451 -0
- package/node/esm/Bbf1Pm9Gk7YpLTvg.mjs +12 -0
- package/node/esm/BqiexuA89caYnAPz.mjs +1135 -0
- package/node/esm/BrCKGFRsX_ezFJ4B.mjs +811 -0
- package/node/esm/CCN5vD410obwdz38.mjs +405 -0
- package/node/esm/{Cku7XiUvw1xrRasi.mjs → CDHdgJXH2vS71WMc.mjs} +1 -1
- package/node/esm/CGp6VZL-gZa9Uezx.mjs +1860 -0
- package/node/esm/CNCNJNg890KdgkWh.mjs +142 -0
- package/node/esm/CZICGK_ss0HoGHCP.mjs +7 -0
- package/node/esm/CZiqiay42tFTrLI4.mjs +171 -0
- package/node/esm/CdJHUJSBRHZoryPe.mjs +360 -0
- package/node/esm/Ct3h15sCus4Tgt6M.mjs +1762 -0
- package/node/esm/CwePQwTILHHjGDkZ.mjs +1033 -0
- package/node/esm/CzXT00vrQa1_gvW9.mjs +28 -0
- package/node/esm/D1TKBVmoKGAXf37B.mjs +402 -0
- package/node/esm/D2KBymQJd1XhpeQD.mjs +540 -0
- package/node/esm/D6e2z7eZpxOJXHc7.mjs +1783 -0
- package/node/esm/D8zEN-6ZdDqDvTxM.mjs +639 -0
- package/node/esm/DNRhGK-8Tr9xcRyc.mjs +8320 -0
- package/node/esm/DOU54VsOjG-m-NyQ.mjs +210 -0
- package/node/esm/DUTskXCXref-IJnI.mjs +133 -0
- package/node/esm/D_t5AUxSm7_icjzq.mjs +638 -0
- package/node/esm/Db0v7zXNnyjBIjjI.mjs +372 -0
- package/node/esm/De2IONBxQhz-Qbyh.mjs +596 -0
- package/node/esm/Df1bL6VFvrqIdSLB.mjs +40 -0
- package/node/esm/DkwIPzKc3UwdUIfM.mjs +86 -0
- package/node/esm/DrTZbfemSLq2mseG.mjs +111 -0
- package/node/esm/OVfaSb506tNSIvbv.mjs +57107 -0
- package/node/esm/cGwrLA1RCE-WhJ7w.mjs +255 -0
- package/node/esm/index.mjs +2873 -53929
- package/node/esm/mFiBSM7XgBHV9AY7.mjs +13010 -0
- package/node/esm/yavzZOiZW_EjG9lE.mjs +15 -0
- package/package.json +15 -17
- package/resources/contents.json +184 -0
- package/resources/fonts/arial-bold-italic.hinted.json +125 -0
- package/resources/fonts/arial-bold-italic.metrics.json +139 -0
- package/resources/fonts/arial-bold-italic.rows.json +9 -0
- package/resources/fonts/arial-bold.hinted.json +125 -0
- package/resources/fonts/arial-bold.metrics.json +139 -0
- package/resources/fonts/arial-bold.rows.json +9 -0
- package/resources/fonts/arial-italic.hinted.json +125 -0
- package/resources/fonts/arial-italic.metrics.json +139 -0
- package/resources/fonts/arial-italic.rows.json +9 -0
- package/resources/fonts/arial-regular.hinted.json +125 -0
- package/resources/fonts/arial-regular.metrics.json +139 -0
- package/resources/fonts/arial-regular.rows.json +9 -0
- package/resources/fonts/calibri-bold-italic.hinted.json +122 -0
- package/resources/fonts/calibri-bold-italic.metrics.json +137 -0
- package/resources/fonts/calibri-bold-italic.rows.json +9 -0
- package/resources/fonts/calibri-bold.hinted.json +122 -0
- package/resources/fonts/calibri-bold.metrics.json +137 -0
- package/resources/fonts/calibri-bold.rows.json +9 -0
- package/resources/fonts/calibri-italic.hinted.json +121 -0
- package/resources/fonts/calibri-italic.metrics.json +137 -0
- package/resources/fonts/calibri-italic.rows.json +9 -0
- package/resources/fonts/calibri-regular.hinted.json +121 -0
- package/resources/fonts/calibri-regular.metrics.json +137 -0
- package/resources/fonts/calibri-regular.rows.json +9 -0
- package/resources/fonts/cambria-bold-italic.hinted.json +105 -0
- package/resources/fonts/cambria-bold-italic.metrics.json +66 -0
- package/resources/fonts/cambria-bold-italic.rows.json +9 -0
- package/resources/fonts/cambria-bold.hinted.json +108 -0
- package/resources/fonts/cambria-bold.metrics.json +66 -0
- package/resources/fonts/cambria-bold.rows.json +9 -0
- package/resources/fonts/cambria-italic.hinted.json +102 -0
- package/resources/fonts/cambria-italic.metrics.json +66 -0
- package/resources/fonts/cambria-italic.rows.json +9 -0
- package/resources/fonts/cambria-regular.hinted.json +110 -0
- package/resources/fonts/cambria-regular.metrics.json +66 -0
- package/resources/fonts/cambria-regular.rows.json +9 -0
- package/resources/fonts/contents.json +406 -0
- package/resources/fonts/courier-new-bold-italic.hinted.json +11 -0
- package/resources/fonts/courier-new-bold-italic.metrics.json +143 -0
- package/resources/fonts/courier-new-bold-italic.rows.json +9 -0
- package/resources/fonts/courier-new-bold.hinted.json +11 -0
- package/resources/fonts/courier-new-bold.metrics.json +143 -0
- package/resources/fonts/courier-new-bold.rows.json +9 -0
- package/resources/fonts/courier-new-italic.hinted.json +11 -0
- package/resources/fonts/courier-new-italic.metrics.json +143 -0
- package/resources/fonts/courier-new-italic.rows.json +9 -0
- package/resources/fonts/courier-new-regular.hinted.json +11 -0
- package/resources/fonts/courier-new-regular.metrics.json +143 -0
- package/resources/fonts/courier-new-regular.rows.json +9 -0
- package/resources/fonts/times-new-roman-bold-italic.hinted.json +125 -0
- package/resources/fonts/times-new-roman-bold-italic.metrics.json +141 -0
- package/resources/fonts/times-new-roman-bold-italic.rows.json +9 -0
- package/resources/fonts/times-new-roman-bold.hinted.json +125 -0
- package/resources/fonts/times-new-roman-bold.metrics.json +141 -0
- package/resources/fonts/times-new-roman-bold.rows.json +9 -0
- package/resources/fonts/times-new-roman-italic.hinted.json +125 -0
- package/resources/fonts/times-new-roman-italic.metrics.json +143 -0
- package/resources/fonts/times-new-roman-italic.rows.json +9 -0
- package/resources/fonts/times-new-roman-regular.hinted.json +125 -0
- package/resources/fonts/times-new-roman-regular.metrics.json +141 -0
- package/resources/fonts/times-new-roman-regular.rows.json +9 -0
- package/resources/locales/de/model.msg.json +199 -21
- package/resources/locales/en/model.msg.json +207 -23
- package/types/scripting-api.json +10663 -0
- package/types/scripting-enums.json +435 -130
- package/types/scripting.d.ts +33010 -15730
- package/types/src/.generated/wasm/fonts.d.ts +161 -0
- package/types/src/.generated/wasm/fonts_bg.inline.d.ts +3 -0
- package/types/src/.generated/wasm/sdk.d.ts +122 -0
- package/types/src/.generated/wasm/sdk_bg.inline.d.ts +3 -0
- package/types/src/address/AddressUtils.d.ts +10 -1
- package/types/src/address/_StructuredAddress.d.ts +58 -0
- 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} +58 -41
- package/types/src/border/index.d.ts +1 -1
- package/types/src/calculation/Calculation.d.ts +584 -149
- package/types/src/calculation/ExternalBookBindings.d.ts +118 -0
- package/types/src/calculation/FormulaLiterals.d.ts +2 -1
- package/types/src/calculation/FormulaText.d.ts +98 -0
- package/types/src/calculation/ICalculation.d.ts +353 -88
- package/types/src/calculation/INamedFormulasCollection.d.ts +9 -8
- package/types/src/calculation/NamedFormulaCollection.d.ts +322 -115
- 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/_FormulaToolkit.d.ts +9 -0
- package/types/src/calculation/_TableExtent.d.ts +60 -0
- package/types/src/calculation/_TableRename.d.ts +13 -0
- package/types/src/calculation/compiler/ASTTypes.d.ts +71 -0
- package/types/src/calculation/compiler/CompilerUtils.d.ts +152 -44
- 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 +42 -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/engine/CalcBackend.d.ts +855 -0
- package/types/src/calculation/engine/index.d.ts +10 -0
- package/types/src/calculation/executor/CalcExecutor.d.ts +331 -33
- package/types/src/calculation/executor/CalcExecutorUtils.d.ts +49 -2
- package/types/src/calculation/executor/CircularReference.d.ts +2 -0
- package/types/src/calculation/formula/Formula.d.ts +67 -21
- package/types/src/calculation/formula/FormulaBlock.d.ts +131 -23
- package/types/src/calculation/formula/FormulaRecordView.d.ts +79 -0
- package/types/src/calculation/formula/FunctionValues.d.ts +10 -0
- package/types/src/calculation/formula/IFormulaBlock.d.ts +277 -67
- package/types/src/calculation/formula/LambdaValue.d.ts +51 -26
- 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 +35 -0
- package/types/src/calculation/functions/Operators.d.ts +8 -0
- package/types/src/calculation/functions/expandDeclaration.d.ts +15 -0
- package/types/src/calculation/functions/initializeFunctions.d.ts +3 -2
- package/types/src/calculation/grid/CalcGrid.d.ts +443 -158
- package/types/src/calculation/grid/CalcGridBackend.d.ts +523 -0
- package/types/src/calculation/grid/CalcGridProxy.d.ts +135 -0
- package/types/src/calculation/grid/CalcGridUtils.d.ts +69 -12
- package/types/src/calculation/grid/FormulaEntry.d.ts +129 -0
- package/types/src/calculation/grid/FormulaHost.d.ts +284 -0
- package/types/src/calculation/grid/ICalcGrid.d.ts +528 -141
- package/types/src/calculation/grid/_CalcRequest.d.ts +299 -0
- package/types/src/calculation/grid/_CellValueRun.d.ts +21 -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 +364 -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 +46 -0
- package/types/src/calculation/state/CalcState.d.ts +32 -1
- package/types/src/calculation/state/CalculationContext.d.ts +50 -3
- package/types/src/calculation/state/IContextContainer.d.ts +141 -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/calculation/toolkit/FormulaLiteralReader.d.ts +4 -0
- package/types/src/calculation/toolkit/FormulaTextParser.d.ts +10 -0
- package/types/src/calculation/toolkit/FunctionDeclarationTable.d.ts +4 -0
- package/types/src/calculation/toolkit/index.d.ts +12 -0
- package/types/src/cell/ICell.d.ts +357 -33
- package/types/src/cell/ICellHeader.d.ts +31 -8
- package/types/src/cell/ICellProtection.d.ts +50 -10
- package/types/src/cellRange/ICellHeaderRange.d.ts +6 -9
- package/types/src/cellRange/ICellHeaderRanges.d.ts +5 -0
- package/types/src/cellRange/ICellRange.d.ts +737 -130
- package/types/src/cellRange/ICellRanges.d.ts +31 -24
- package/types/src/chart/Chart.d.ts +246 -16
- package/types/src/chart/ChartCollection.d.ts +31 -0
- package/types/src/chart/IChart.d.ts +2058 -18
- package/types/src/chart/IChartCollection.d.ts +50 -0
- package/types/src/chart/_ChartParts.d.ts +1066 -0
- package/types/src/chart/_ChartSource.d.ts +47 -0
- package/types/src/chart/createChart.d.ts +26 -0
- package/types/src/chart/index.d.ts +5 -3
- package/types/src/chart/kinds/ChartKind.d.ts +252 -0
- package/types/src/chart/kinds/_Area.d.ts +3 -0
- package/types/src/chart/kinds/_Bar.d.ts +4 -0
- package/types/src/chart/kinds/_BoxWhisker.d.ts +4 -0
- package/types/src/chart/kinds/_Bubble.d.ts +3 -0
- package/types/src/chart/kinds/_Funnel.d.ts +4 -0
- package/types/src/chart/kinds/_Hierarchy.d.ts +31 -0
- package/types/src/chart/kinds/_Histogram.d.ts +4 -0
- package/types/src/chart/kinds/_HitKinds.d.ts +23 -0
- package/types/src/chart/kinds/_Line.d.ts +4 -0
- package/types/src/chart/kinds/_OfPie.d.ts +4 -0
- package/types/src/chart/kinds/_Pie.d.ts +4 -0
- package/types/src/chart/kinds/_Placeholder.d.ts +6 -0
- package/types/src/chart/kinds/_Radar.d.ts +4 -0
- package/types/src/chart/kinds/_Scatter.d.ts +8 -0
- package/types/src/chart/kinds/_Sunburst.d.ts +4 -0
- package/types/src/chart/kinds/_Surface.d.ts +4 -0
- package/types/src/chart/kinds/_Treemap.d.ts +4 -0
- package/types/src/chart/kinds/_Waterfall.d.ts +18 -0
- package/types/src/chart/kinds/_builtIns.d.ts +11 -0
- package/types/src/chart/layout/ChartLayout.d.ts +825 -0
- package/types/src/chart/layout/TextMeasurer.d.ts +38 -0
- package/types/src/chart/layout/_HitGeometry.d.ts +50 -0
- package/types/src/chart/layout/_HitTest.d.ts +36 -0
- package/types/src/chart/layout/_Layout.d.ts +25 -0
- package/types/src/chart/layout/_LayoutUtils.d.ts +97 -0
- package/types/src/chart/math/BoxStats.d.ts +35 -0
- package/types/src/chart/math/DateUnitCalcs.d.ts +80 -0
- package/types/src/chart/math/DisplayUnits.d.ts +53 -0
- package/types/src/chart/math/Histogram.d.ts +48 -0
- package/types/src/chart/math/OrdUnitCalcs.d.ts +166 -0
- package/types/src/chart/math/Treemap.d.ts +28 -0
- package/types/src/chart/math/Trendlines.d.ts +71 -0
- package/types/src/chart/math/UnitCalcs.d.ts +98 -0
- package/types/src/chart/model/ChartModel.d.ts +681 -0
- package/types/src/chart/model/_ChartType.d.ts +14 -0
- package/types/src/chart/model/_Edits.d.ts +489 -0
- package/types/src/chart/model/_Grouping.d.ts +83 -0
- package/types/src/chart/model/_Inference.d.ts +52 -0
- package/types/src/chart/model/_ModelFacts.d.ts +112 -0
- package/types/src/chart/model/_NewChart.d.ts +208 -0
- package/types/src/chart/model/_OfPie.d.ts +18 -0
- package/types/src/chart/resolve/_LegacyStyles.d.ts +48 -0
- package/types/src/chart/resolve/_Resolve.d.ts +51 -0
- package/types/src/chart/resolve/_ResolvedChart.d.ts +444 -0
- 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/RTree.d.ts +116 -36
- 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 +7 -4
- package/types/src/collections/SpatialMap.d.ts +15 -29
- package/types/src/collections/SpatialMap3D.d.ts +2 -0
- package/types/src/collections/Tuple.d.ts +128 -16
- package/types/src/collections/_GridUtils.d.ts +19 -6
- package/types/src/collections/_SpatialUtils.d.ts +20 -2
- package/types/src/collections/index.d.ts +2 -1
- package/types/src/color/_BuiltInIndexDefs.d.ts +6 -0
- package/types/src/comment/Comment.d.ts +246 -0
- package/types/src/comment/CommentCollection.d.ts +40 -0
- package/types/src/comment/IComment.d.ts +377 -50
- package/types/src/comment/ICommentCollection.d.ts +90 -0
- package/types/src/comment/NoteMovable.d.ts +26 -0
- package/types/src/comment/_CommentUtils.d.ts +50 -0
- package/types/src/comment/_NoteBox.d.ts +67 -0
- package/types/src/comment/index.d.ts +1 -0
- package/types/src/condition/AnchoredConditional.d.ts +110 -19
- package/types/src/condition/BuiltInOperators/AbstractOperator.d.ts +42 -12
- package/types/src/condition/BuiltInOperators/AfterEqualToOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/AfterOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/AndOperator.d.ts +3 -1
- package/types/src/condition/BuiltInOperators/AverageOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/BeforeEqualToOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/BeforeOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/BetweenOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/ColorOperator.d.ts +4 -0
- package/types/src/condition/BuiltInOperators/ContainsOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/EndsWithOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/EqualToOperator.d.ts +4 -1
- package/types/src/condition/BuiltInOperators/ExpressionOperator.d.ts +5 -6
- package/types/src/condition/BuiltInOperators/GreaterThanEqualToOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/GreaterThanOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/IconOperator.d.ts +4 -0
- package/types/src/condition/BuiltInOperators/InSetOperator.d.ts +22 -5
- package/types/src/condition/BuiltInOperators/LessThanEqualToOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/LessThanOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/NotOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/OrOperator.d.ts +3 -1
- package/types/src/condition/BuiltInOperators/StartsWithOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/TimePeriodOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/TopNOperator.d.ts +6 -0
- package/types/src/condition/BuiltinSelectors/BaseSelector.d.ts +21 -6
- package/types/src/condition/BuiltinSelectors/DateSelector.d.ts +4 -5
- package/types/src/condition/BuiltinSelectors/DisplaySelector.d.ts +20 -0
- package/types/src/condition/BuiltinSelectors/TextLengthSelector.d.ts +7 -5
- package/types/src/condition/BuiltinSelectors/TimeSelector.d.ts +3 -5
- package/types/src/condition/BuiltinSelectors/WholeSelector.d.ts +3 -5
- package/types/src/condition/BuiltinSelectors/index.d.ts +12 -6
- package/types/src/condition/Condition.d.ts +19 -1
- package/types/src/condition/ICondition.d.ts +296 -75
- package/types/src/condition/_ConditionFormula.d.ts +152 -0
- package/types/src/condition/_ConditionUtils.d.ts +167 -13
- package/types/src/conditionalFormat/ConditionalEntry.d.ts +3 -3
- package/types/src/conditionalFormat/ConditionalFormat.d.ts +34 -17
- package/types/src/conditionalFormat/ConditionalFormatCollection.d.ts +19 -8
- package/types/src/conditionalFormat/IConditionalFormat.d.ts +16 -13
- package/types/src/conditionalFormat/IConditionalFormatCollection.d.ts +2 -0
- package/types/src/dataTable/DataTable.d.ts +67 -0
- package/types/src/dataTable/DataTableCollection.d.ts +19 -0
- package/types/src/dataTable/IDataTable.d.ts +99 -0
- package/types/src/dataTable/IDataTableCollection.d.ts +18 -0
- package/types/src/dataTable/index.d.ts +6 -0
- package/types/src/dataValidation/DataValidation.d.ts +70 -4
- package/types/src/dataValidation/DataValidationCollection.d.ts +23 -9
- package/types/src/dataValidation/IDataValidation.d.ts +150 -31
- package/types/src/dataValidation/IDataValidationCollection.d.ts +34 -2
- package/types/src/date/DateUtils.d.ts +20 -0
- package/types/src/date/_DateUtils.d.ts +91 -7
- package/types/src/documentProperties/DocumentProperties.d.ts +66 -0
- package/types/src/documentProperties/ICustomProperty.d.ts +69 -0
- package/types/src/documentProperties/IDocumentProperties.d.ts +110 -0
- package/types/src/documentProperties/index.d.ts +3 -0
- 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 +171 -19
- package/types/src/externalBook/IExternalBookCollection.d.ts +79 -7
- package/types/src/externalBook/index.d.ts +1 -0
- package/types/src/{lib/file → file}/file.browser.d.ts +22 -8
- package/types/src/{lib/file → file}/file.node.d.ts +7 -2
- package/types/src/fill/IEffect.d.ts +5 -5
- package/types/src/fill/IFill.d.ts +129 -77
- package/types/src/fill/IFillable.d.ts +47 -0
- package/types/src/fill/IStroke.d.ts +204 -64
- package/types/src/fill/PaintUtils.d.ts +22 -0
- package/types/src/fill/RectAlignment.d.ts +20 -0
- package/types/src/fill/_Fills.d.ts +187 -0
- package/types/src/fill/_Stroke.d.ts +89 -0
- package/types/src/fill/index.d.ts +3 -0
- package/types/src/filter/IFilter.d.ts +188 -5
- package/types/src/font/AdvanceBuilder.d.ts +59 -0
- package/types/src/font/AdvanceTable.d.ts +228 -0
- package/types/src/font/CanvasAdvanceBuilder.d.ts +54 -0
- package/types/src/font/FontCapture.d.ts +4 -0
- package/types/src/font/FontCollection.d.ts +108 -0
- package/types/src/font/FontPlatform.d.ts +20 -0
- package/types/src/font/FontUtils.d.ts +5 -0
- package/types/src/font/IFont.d.ts +208 -61
- package/types/src/font/IFontCollection.d.ts +126 -22
- package/types/src/font/IFontStyle.d.ts +207 -0
- package/types/src/font/TableFileAdvanceBuilder.d.ts +36 -0
- package/types/src/font/_BuiltinFontTables.d.ts +10 -0
- package/types/src/font/_FontUtils.d.ts +11 -4
- package/types/src/font/_FontsVersion.d.ts +7 -0
- package/types/src/font/index.d.ts +2 -1
- package/types/src/font/platform.browser.d.ts +15 -0
- package/types/src/font/platform.node.d.ts +5 -0
- package/types/src/group/Group.d.ts +141 -0
- package/types/src/group/GroupMovableCollection.d.ts +41 -0
- package/types/src/group/IGroup.d.ts +129 -0
- package/types/src/group/index.d.ts +2 -0
- package/types/src/history/IHistory.d.ts +21 -3
- package/types/src/hyperlink/IHyperlink.d.ts +20 -1
- package/types/src/hyperlink/_Hyperlink.d.ts +5 -1
- package/types/src/i18n/LanguagePack.d.ts +12 -4
- package/types/src/index.d.ts +8 -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/license/LicenseDetails.d.ts +1 -0
- package/types/src/license/LicenseManager.d.ts +25 -1
- package/types/src/license/Types.d.ts +38 -0
- package/types/src/license/_Utils.d.ts +39 -0
- package/types/src/license/details.d.ts +24 -0
- package/types/src/license/license-key.d.ts +49 -2
- package/types/src/license/runtime.browser.d.ts +46 -0
- package/types/src/{lib/utils/utils.node.d.ts → license/runtime.node.d.ts} +19 -12
- package/types/src/listener/IListener.d.ts +23 -6
- package/types/src/listener/ListenerEmitter.d.ts +55 -6
- package/types/src/model/AbstractModel.d.ts +14 -5
- package/types/src/movable/AbstractMovableContent.d.ts +182 -0
- package/types/src/movable/CustomElement.d.ts +4 -5
- package/types/src/movable/ErrorContent.d.ts +49 -0
- package/types/src/movable/FormControl.d.ts +285 -0
- package/types/src/movable/GroupMember.d.ts +87 -0
- package/types/src/movable/ICustomElement.d.ts +7 -2
- package/types/src/movable/IErrorContent.d.ts +23 -0
- package/types/src/movable/IFormControl.d.ts +455 -0
- package/types/src/movable/IMovable.d.ts +405 -60
- package/types/src/movable/IMovableCollection.d.ts +64 -4
- package/types/src/movable/Movable.d.ts +161 -50
- package/types/src/movable/MovableCollection.d.ts +21 -10
- package/types/src/movable/MovableContentRegistry.d.ts +113 -0
- package/types/src/movable/_BuiltInContents.d.ts +14 -0
- package/types/src/movable/_ContentFactory.d.ts +35 -0
- package/types/src/movable/_DrawnBounds.d.ts +37 -0
- package/types/src/movable/_InsertableCollection.d.ts +39 -0
- package/types/src/movable/_MovableUtils.d.ts +5 -0
- package/types/src/movable/_PendingContent.d.ts +25 -0
- package/types/src/movable/_PlacementUtils.d.ts +55 -0
- package/types/src/movable/_RotatedFrame.d.ts +20 -0
- package/types/src/movable/index.d.ts +7 -1
- package/types/src/named/AbstractNamed.d.ts +1 -1
- package/types/src/named/INamed.d.ts +34 -1
- package/types/src/named/INamedCollection.d.ts +28 -2
- package/types/src/named/NamedCollection.d.ts +32 -19
- package/types/src/numFmt/BuiltInFormats.d.ts +20 -7
- package/types/src/numFmt/IFormatEngine.d.ts +2 -0
- package/types/src/numFmt/NumberFormatParser.d.ts +5 -0
- package/types/src/numFmt/NumfmtFormatEngine.d.ts +2 -0
- package/types/src/numFmt/_FormatCell.d.ts +11 -2
- package/types/src/numFmt/_NumFmtUtils.d.ts +0 -1
- package/types/src/numFmt/vendor/numfmt/_sheetxl.d.ts +6 -0
- package/types/src/outline/IOutline.d.ts +186 -0
- package/types/src/outline/Outline.d.ts +157 -0
- package/types/src/outline/index.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 +4 -0
- package/types/src/picture/IPicture.d.ts +131 -4
- package/types/src/picture/Picture.d.ts +42 -14
- package/types/src/pivot/IPivotTable.d.ts +72 -0
- package/types/src/pivot/IPivotTableCollection.d.ts +25 -0
- package/types/src/pivot/PivotCache.d.ts +34 -0
- package/types/src/pivot/PivotTable.d.ts +61 -0
- package/types/src/pivot/PivotTableCollection.d.ts +25 -0
- package/types/src/pivot/_PivotXml.d.ts +24 -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/Grouping.d.ts +65 -0
- package/types/src/primitives/LambdaBrand.d.ts +26 -0
- package/types/src/primitives/PrimitiveUtils.d.ts +56 -19
- package/types/src/primitives/Range.d.ts +133 -25
- package/types/src/primitives/RangeStats.d.ts +30 -2
- package/types/src/primitives/ReferenceRange.d.ts +44 -0
- package/types/src/primitives/Runtime.d.ts +15 -2
- package/types/src/primitives/environment.browser.d.ts +9 -0
- package/types/src/primitives/environment.node.d.ts +10 -0
- package/types/src/primitives/stats/AggregateStats.d.ts +49 -15
- package/types/src/primitives/stats/Cancellation.d.ts +13 -0
- package/types/src/primitives/stats/FrequencyStats.d.ts +10 -1
- package/types/src/primitives/stats/LookupIndex.d.ts +46 -0
- package/types/src/primitives/stats/Ranked.d.ts +1 -1
- package/types/src/primitives/stats/SortedNumbers.d.ts +4 -2
- package/types/src/primitives/stats/index.d.ts +1 -0
- package/types/src/print/IPageLayout.d.ts +635 -0
- package/types/src/print/PageLayout.d.ts +258 -0
- package/types/src/print/index.d.ts +1 -1
- package/types/src/protectedRange/IProtectedRange.d.ts +6 -2
- 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 +42 -2
- package/types/src/protection/PasswordHasher.d.ts +13 -0
- 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/richData/IRichDataKind.d.ts +22 -0
- package/types/src/richData/RichDataRegistry.d.ts +57 -0
- package/types/src/richData/RichText.d.ts +59 -0
- package/types/src/richData/index.d.ts +3 -0
- package/types/src/scripting/FunctionCollection.d.ts +49 -15
- package/types/src/scripting/IFunctionCollection.d.ts +62 -32
- 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 +30 -28
- package/types/src/scripting/ITypedFunction.d.ts +1 -1
- 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 +3 -7
- package/types/src/scripting/TypedFunction.d.ts +154 -18
- package/types/src/scripting/_FunctionIndex.d.ts +8 -3
- 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 +52 -0
- package/types/src/scripting/declarations.node.d.ts +9 -0
- package/types/src/scripting/index.d.ts +3 -0
- package/types/src/selection/ChartElementSelection.d.ts +39 -0
- package/types/src/selection/IChartElementSelection.d.ts +103 -0
- package/types/src/selection/IItemSelection.d.ts +131 -0
- package/types/src/selection/IMovableSelection.d.ts +120 -0
- package/types/src/selection/IRangeSelection.d.ts +13 -8
- package/types/src/selection/ItemSelection.d.ts +49 -0
- package/types/src/selection/MovableSelection.d.ts +29 -0
- package/types/src/selection/RangeSelection.d.ts +19 -4
- package/types/src/selection/index.d.ts +4 -0
- package/types/src/shape/GeometryPreset.d.ts +197 -0
- package/types/src/shape/IGeometry.d.ts +380 -0
- package/types/src/shape/IShape.d.ts +342 -194
- package/types/src/shape/IShapeStyle.d.ts +109 -0
- package/types/src/shape/ITextBoxStyle.d.ts +85 -0
- package/types/src/shape/Shape.d.ts +107 -21
- package/types/src/shape/ShapeStyleUtils.d.ts +66 -0
- package/types/src/shape/_ConnectorFrame.d.ts +32 -0
- package/types/src/shape/_ConnectorRoute.d.ts +33 -0
- package/types/src/shape/_Connectors.d.ts +108 -0
- package/types/src/shape/_Geometry.d.ts +14 -0
- package/types/src/shape/_GeometryLoader.d.ts +21 -0
- package/types/src/shape/_ShapeStyle.d.ts +79 -0
- package/types/src/shape/_builtIn/_BuiltInChunks.d.ts +10 -0
- package/types/src/shape/_builtIn/_BuiltInDef.d.ts +9 -0
- package/types/src/shape/_builtIn/arrows.d.ts +6 -0
- package/types/src/shape/_builtIn/basic.d.ts +6 -0
- package/types/src/shape/_builtIn/callouts.d.ts +6 -0
- package/types/src/shape/_builtIn/flowchart.d.ts +6 -0
- package/types/src/shape/_builtIn/lines.d.ts +6 -0
- package/types/src/shape/_builtIn/math.d.ts +6 -0
- package/types/src/shape/_builtIn/other.d.ts +6 -0
- package/types/src/shape/_builtIn/rectangles.d.ts +6 -0
- package/types/src/shape/_builtIn/starsBanners.d.ts +6 -0
- package/types/src/shape/geometry/_strokeEnds.d.ts +7 -0
- package/types/src/shape/geometry/format.d.ts +3 -0
- package/types/src/shape/geometry/geometry.d.ts +85 -0
- package/types/src/shape/geometry/guides.d.ts +54 -0
- package/types/src/shape/geometry/handles.d.ts +14 -0
- package/types/src/shape/geometry/index.d.ts +7 -0
- package/types/src/shape/geometry/lineEnds.d.ts +54 -0
- package/types/src/shape/geometry/paths.d.ts +35 -0
- package/types/src/shape/geometry/segments.d.ts +114 -0
- package/types/src/shape/index.d.ts +4 -0
- package/types/src/sheet/CellRegion.d.ts +43 -3
- package/types/src/sheet/ICellContainerOptions.d.ts +50 -0
- package/types/src/sheet/IOpaqueSheet.d.ts +46 -0
- package/types/src/sheet/ISheet.d.ts +81 -931
- package/types/src/sheet/IWorksheet.d.ts +1514 -0
- package/types/src/sheet/{ISheetCollection.d.ts → IWorksheetCollection.d.ts} +38 -16
- package/types/src/sheet/NamedCellRange.d.ts +17 -8
- package/types/src/sheet/NamedRange.d.ts +10 -2
- package/types/src/sheet/OpaqueSheet.d.ts +114 -0
- package/types/src/sheet/SheetCell.d.ts +96 -39
- package/types/src/sheet/SheetRange.d.ts +130 -27
- package/types/src/sheet/SheetRanges.d.ts +33 -18
- package/types/src/sheet/Worksheet.d.ts +2250 -0
- package/types/src/sheet/WorksheetCollection.d.ts +39 -0
- package/types/src/sheet/_Anomalies.d.ts +109 -0
- package/types/src/sheet/_AnomalyFormulaChecks.d.ts +125 -0
- package/types/src/sheet/_AnomalyLabelChecks.d.ts +21 -0
- package/types/src/sheet/_CellBuffer.d.ts +224 -0
- package/types/src/sheet/_CopyUtils.d.ts +13 -6
- package/types/src/sheet/_HeldFormula.d.ts +69 -0
- package/types/src/sheet/_IgnoredErrors.d.ts +46 -0
- package/types/src/sheet/_InvalidSheetRange.d.ts +10 -9
- package/types/src/sheet/_Kinds.d.ts +34 -0
- package/types/src/sheet/_Labels.d.ts +38 -0
- package/types/src/sheet/_ListenerAnchor.d.ts +104 -0
- package/types/src/sheet/_RangeStateSweep.d.ts +15 -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 +5 -5
- package/types/src/sheet/_SheetChangeEvent.d.ts +72 -0
- package/types/src/sheet/_SheetCoords.d.ts +3 -3
- package/types/src/sheet/_SheetEvents.d.ts +43 -0
- package/types/src/sheet/_SheetFilterUtils.d.ts +51 -3
- package/types/src/sheet/_SheetIntents.d.ts +314 -0
- package/types/src/sheet/_SheetMessages.d.ts +1 -1
- package/types/src/sheet/_SheetMutations.d.ts +185 -66
- package/types/src/sheet/_SheetSortUtils.d.ts +2 -2
- package/types/src/sheet/_SheetStateReader.d.ts +35 -11
- package/types/src/sheet/_SheetStateTypes.d.ts +143 -79
- package/types/src/sheet/_SheetUtils.d.ts +59 -41
- package/types/src/sheet/_WatchAnchor.d.ts +106 -0
- package/types/src/sheet/clipboard/RangeClipboardItems.d.ts +4 -4
- package/types/src/sheet/clipboard/SheetHTMLTableParser.d.ts +3 -3
- package/types/src/sheet/clipboard/SheetHTMLTableWriter.d.ts +3 -3
- package/types/src/sheet/index.d.ts +5 -2
- 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 +223 -337
- package/types/src/sheet/style/SheetDirectStyle.d.ts +31 -20
- package/types/src/sheet/style/SheetNamedStyle.d.ts +19 -17
- package/types/src/sheet/style/SheetTableStyle.d.ts +5 -5
- package/types/src/sheet/style/_DigitWidth.d.ts +7 -0
- package/types/src/sheet/style/_Resolvers.d.ts +17 -10
- package/types/src/sheet/style/_StyleUtils.d.ts +34 -40
- package/types/src/sheetHeader/ISheetHeader.d.ts +96 -55
- package/types/src/sheetHeader/SheetCellHeader.d.ts +6 -0
- package/types/src/sheetHeader/SheetCellHeaderRange.d.ts +2 -0
- package/types/src/sheetHeader/SheetCellHeaderRanges.d.ts +2 -0
- package/types/src/sheetHeader/SheetHeader.d.ts +48 -27
- package/types/src/sheetHeader/_HeaderMetrics.d.ts +37 -0
- package/types/src/sheetHeader/_HeaderUtils.d.ts +5 -4
- package/types/src/sheetProtection/{ISheetProtection.d.ts → IWorksheetProtection.d.ts} +64 -30
- package/types/src/sheetProtection/WorksheetProtection.d.ts +51 -0
- package/types/src/sheetProtection/index.d.ts +1 -1
- package/types/src/sheetView/{ISheetView.d.ts → IWorksheetView.d.ts} +230 -69
- package/types/src/sheetView/WorksheetView.d.ts +139 -0
- package/types/src/sheetView/_SheetViewUtils.d.ts +5 -3
- package/types/src/sheetView/index.d.ts +1 -1
- package/types/src/slicer/ISlicer.d.ts +304 -17
- package/types/src/slicer/ISlicerStyle.d.ts +109 -0
- package/types/src/slicer/Slicer.d.ts +128 -13
- package/types/src/slicer/SlicerStyle.d.ts +25 -0
- package/types/src/slicer/_BuiltInSlicerStyles.d.ts +13 -0
- package/types/src/slicer/_SlicerUtils.d.ts +30 -0
- package/types/src/slicer/index.d.ts +1 -0
- package/types/src/sort/ISort.d.ts +39 -7
- package/types/src/string/IStringCollection.d.ts +5 -0
- package/types/src/string/StringCollection.d.ts +6 -6
- package/types/src/style/{IStyle.d.ts → ICellStyle.d.ts} +117 -85
- package/types/src/style/INamedStyleCollection.d.ts +72 -0
- package/types/src/style/ISlicerStyleCollection.d.ts +77 -0
- package/types/src/style/IStyleCollection.d.ts +91 -60
- package/types/src/style/ITableStyleCollection.d.ts +89 -0
- package/types/src/style/NamedStyleCollection.d.ts +39 -0
- package/types/src/style/SlicerStyleCollection.d.ts +46 -0
- package/types/src/style/StyleCollection.d.ts +81 -26
- package/types/src/style/TableStyleCollection.d.ts +49 -0
- package/types/src/style/_BuiltInStyleDefs.d.ts +9 -8
- package/types/src/style/_BuiltInStyleNames.d.ts +2 -2
- package/types/src/style/index.d.ts +7 -1
- package/types/src/table/AnchoredTable.d.ts +723 -78
- package/types/src/table/AutoTable.d.ts +8 -6
- package/types/src/table/ITable.d.ts +289 -49
- package/types/src/table/ITableCollection.d.ts +12 -0
- package/types/src/table/ITableStyle.d.ts +37 -37
- package/types/src/table/TableCollection.d.ts +19 -8
- package/types/src/table/_FilterField.d.ts +19 -6
- package/types/src/table/_NamedTable.d.ts +20 -4
- package/types/src/table/_NamedTableSource.d.ts +3 -2
- 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/IText.d.ts +150 -15
- package/types/src/text/ITextFrame.d.ts +110 -1
- package/types/src/text/TextBoxAlignment.d.ts +25 -16
- package/types/src/text/TextEngine.d.ts +34 -0
- package/types/src/text/TextFrame.d.ts +8 -2
- package/types/src/text/TextLine.d.ts +4 -0
- package/types/src/text/TextParagraph.d.ts +4 -0
- package/types/src/text/TextRotation.d.ts +3 -3
- package/types/src/text/TextRun.d.ts +12 -2
- package/types/src/text/TextStacked.d.ts +83 -0
- package/types/src/text/TextWrapper.d.ts +32 -26
- package/types/src/text/_TextUtils.d.ts +5 -5
- package/types/src/text/_TextWrapperFallback.d.ts +49 -0
- package/types/src/text/impl/TabStrategy.d.ts +3 -1
- package/types/src/text/index.d.ts +1 -0
- package/types/src/text/richtext/IRichText.d.ts +50 -0
- package/types/src/text/richtext/index.d.ts +1 -1
- package/types/src/theme/ITheme.d.ts +153 -11
- package/types/src/theme/IThemeCollection.d.ts +2 -0
- package/types/src/theme/ThemeCollection.d.ts +16 -7
- package/types/src/theme/_OfficeFontScheme.d.ts +8 -0
- package/types/src/theme/_OfficeFormatScheme.d.ts +3 -0
- package/types/src/transaction/ITransaction.d.ts +277 -45
- package/types/src/transaction/Transaction.d.ts +108 -11
- package/types/src/transaction/TransactionUndoManager.d.ts +4 -1
- package/types/src/transaction/_BatchHandle.d.ts +118 -0
- package/types/src/type/AbstractCollection.d.ts +92 -0
- package/types/src/type/ICollection.d.ts +131 -1
- package/types/src/type/IProperties.d.ts +1 -1
- 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 +4 -4
- package/types/src/wasm/_fontsWasm.d.ts +7 -0
- package/types/src/wasm/_sdkWasm.d.ts +7 -0
- package/types/src/wasm/fontsWasm.d.ts +32 -0
- package/types/src/wasm/index.d.ts +3 -0
- package/types/src/wasm/loader.browser.d.ts +9 -0
- package/types/src/wasm/loader.node.d.ts +9 -0
- package/types/src/wasm/sdkWasm.d.ts +32 -0
- package/types/src/workbook/IWorkbook.d.ts +404 -73
- package/types/src/workbook/Workbook.d.ts +196 -28
- package/types/src/workbook/WorkbookRange.d.ts +2 -2
- package/types/src/workbook/WorkbookRanges.d.ts +2 -2
- package/types/src/workbook/_WorkbookIntents.d.ts +36 -0
- package/types/src/workbook/_WorkbookMessages.d.ts +5 -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 +94 -0
- package/types/src/workbookView/WorkbookView.d.ts +26 -0
- package/browser/cjs/B7_pDFYCVzt-3hUs.cjs +0 -1
- 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/Dv3x6zut1ZRUt3IF.cjs +0 -10
- package/browser/cjs/Dv4yIPLV98M5zLHa.cjs +0 -1
- package/browser/cjs/a0Z-SXs_N71CtqYb.cjs +0 -1
- package/browser/cjs/index.cjs +0 -3
- package/browser/esm/6JKSOvc5czaQB2Bj.mjs +0 -109
- package/browser/esm/BtuJ9AGzeURtAsGo.mjs +0 -51241
- package/browser/esm/DGU6sM25u0EWCKl1.mjs +0 -824
- 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/collections/OverlappingRangeIterator.d.ts +0 -91
- package/types/src/condition/BuiltinSelectors/ListSelector.d.ts +0 -12
- package/types/src/dataValidation/_Utils.d.ts +0 -10
- package/types/src/font/CanvasFontMeasurer.d.ts +0 -25
- package/types/src/font/FontKitFontMeasurer.d.ts +0 -11
- package/types/src/font/SimpleFontMeasurer.d.ts +0 -4
- package/types/src/lib/utils/_Utils.d.ts +0 -27
- package/types/src/lib/utils/utils.browser.d.ts +0 -33
- package/types/src/movable/IGroup.d.ts +0 -30
- package/types/src/movable/IMovableSelection.d.ts +0 -49
- package/types/src/print/IPrint.d.ts +0 -234
- package/types/src/sheet/Sheet.d.ts +0 -1107
- package/types/src/sheet/SheetCollection.d.ts +0 -18
- 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
- package/types/src/sheetProtection/SheetProtection.d.ts +0 -39
- package/types/src/sheetView/SheetView.d.ts +0 -113
- package/types/src/text/richtext/IStyledFont.d.ts +0 -330
- /package/types/src/{lib/utils → license}/banner.d.ts +0 -0
|
@@ -1,33 +1,59 @@
|
|
|
1
1
|
import { Scalar, IRange, FormulaError } from '@sheetxl/primitives';
|
|
2
|
-
import {
|
|
2
|
+
import { RunCoords } from '@sheetxl/utils';
|
|
3
|
+
import { RangeStats } from '../../primitives/RangeStats';
|
|
3
4
|
import { ITypes } from '../../type';
|
|
5
|
+
import { ITransaction } from '../../transaction';
|
|
4
6
|
import { IListener } from '../../listener';
|
|
5
7
|
import { IHistory } from '../../history';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
+
import { ISpatialMap, ISpatialQuery, ISparseGrid, Tuple } from '../../collections';
|
|
9
|
+
import { IFormulaBlockView } from '../formula';
|
|
10
|
+
import { FormulaEntry } from './FormulaEntry';
|
|
8
11
|
import { ContentfulSpatialValue, SpillEntry, CircularEntry } from '../spatial';
|
|
9
|
-
import {
|
|
12
|
+
import { NamedReference, NamedNodeInfo } from '../Types';
|
|
10
13
|
import { ICalculation } from '../ICalculation';
|
|
11
14
|
/**
|
|
12
|
-
* The
|
|
15
|
+
* The CalcGridBackend holds input and outputs of in a 2D space to a scope (usually a sheet).
|
|
13
16
|
*
|
|
14
17
|
* @remarks
|
|
15
18
|
* If inputValues are externally managed then formulas update must also be provided.
|
|
19
|
+
*
|
|
20
|
+
* Every mutation is ASYNCHRONOUS and resolves with an {@link ICalcGrid.Results}: the blocks the
|
|
21
|
+
* engine compiled or re-imaged for the write ({@link ICalcGrid.Results.formulaInserts}) and the
|
|
22
|
+
* coords it removed ({@link ICalcGrid.Results.formulaRemoves}). Nothing about the grid is readable
|
|
23
|
+
* synchronously after a write; a caller keeps its own formula text and patches it from the
|
|
24
|
+
* resolution. A request names the snapshot it was made at ({@link ICalcGrid.RequestOptions.commitId})
|
|
25
|
+
* and the resolution echoes it ({@link ICalcGrid.Results.commitId}): its coords mean addresses in
|
|
26
|
+
* THAT snapshot, whatever the caller has done since. A rewrite the engine makes to a grid nobody
|
|
27
|
+
* called - a cross-sheet reference turned `#REF!` by a delete on another sheet - reaches that grid
|
|
28
|
+
* through its own `onCalculated`, the way values do, naming the last snapshot the engine applied.
|
|
29
|
+
*
|
|
30
|
+
* Every request goes through the service's channel (DESIGN-CALC-SERVICE §4, §7.2). On a `Running`
|
|
31
|
+
* engine it is applied at once; while the engine is `Starting` it is held, as data, and applied
|
|
32
|
+
* in send order once the engine is up, behind the seed the grid was opened from; on an `Off`
|
|
33
|
+
* engine it is not recorded at all and resolves with nothing: the caller's own view is the truth
|
|
34
|
+
* there, and a later start is seeded from it. An `Off` engine is never started by a request.
|
|
16
35
|
*/
|
|
17
36
|
export interface ICalcGrid {
|
|
18
37
|
/**
|
|
19
38
|
* Set a group of cells and formula ranges.
|
|
20
39
|
*
|
|
21
|
-
* @param values A set of input values as
|
|
40
|
+
* @param values A set of input values as Region
|
|
22
41
|
* @param ranges A set of formula strings as ranged entries.
|
|
42
|
+
* @param options See {@link ICalcGrid.SetInputsOptions}.
|
|
43
|
+
*
|
|
44
|
+
* @returns Resolves with the blocks compiled for the written formulas, the remainders of any
|
|
45
|
+
* block a value split, and the coords cleared.
|
|
23
46
|
*/
|
|
24
|
-
setInputs(values: Tuple.
|
|
47
|
+
setInputs(values: Tuple.Region<Scalar> | null, formulas: readonly ISpatialMap.Entry<string>[] | null, options?: ICalcGrid.SetInputsOptions): Promise<ICalcGrid.Results>;
|
|
25
48
|
/**
|
|
26
49
|
* Remove all values within a range.
|
|
27
50
|
*
|
|
28
51
|
* @param coords The coordinates to remove.
|
|
52
|
+
* @param options See {@link ICalcGrid.RemoveOptions}.
|
|
53
|
+
*
|
|
54
|
+
* @returns Resolves with the coords cleared and the remainders of any block the range split.
|
|
29
55
|
*/
|
|
30
|
-
remove(coords: IRange.Coords):
|
|
56
|
+
remove(coords: IRange.Coords, options?: ICalcGrid.RemoveOptions): Promise<ICalcGrid.Results>;
|
|
31
57
|
/**
|
|
32
58
|
* Execute a calculate on a single grid.
|
|
33
59
|
*
|
|
@@ -49,107 +75,197 @@ export interface ICalcGrid {
|
|
|
49
75
|
*/
|
|
50
76
|
markDirtyRegions(coords: IRange.Coords[]): void;
|
|
51
77
|
/**
|
|
52
|
-
*
|
|
78
|
+
* The key of this grid's record in the model's store (DESIGN-CALC-SERVICE §13.23): what the
|
|
79
|
+
* grid holds, versioned beside the sheet's own record so that an undo restores both together.
|
|
80
|
+
*
|
|
81
|
+
* @remarks
|
|
82
|
+
* For a cell buffer to name among the records its held writes go to, so that a read of the
|
|
83
|
+
* grid through the store makes those writes first. The reads themselves take the transaction
|
|
84
|
+
* to answer for; nothing reads the record by this key.
|
|
53
85
|
*/
|
|
54
|
-
|
|
86
|
+
getStateId(): string;
|
|
55
87
|
/**
|
|
56
|
-
*
|
|
88
|
+
* The values as the model holds them: the literals it entered and the answers the engine
|
|
89
|
+
* vended, one map (DESIGN-CALC-SERVICE §13.24).
|
|
57
90
|
*
|
|
58
|
-
* @
|
|
59
|
-
*
|
|
91
|
+
* @remarks
|
|
92
|
+
* The whole grid, not a narrowed read surface: the sheet reads values on its hottest paths and
|
|
93
|
+
* sparse grids are heading for buffer-backed runs, which closes the boundary a narrower type
|
|
94
|
+
* would have bought. Answered from the grid's own store record - never the backend's working
|
|
95
|
+
* copy, which is on the far side of the boundary and can be behind.
|
|
96
|
+
* @param transaction Read the record as this transaction sees it, its held writes not yet
|
|
97
|
+
* made; the current record when omitted.
|
|
98
|
+
*/
|
|
99
|
+
getValues(transaction?: ITransaction | null): ISparseGrid<Scalar>;
|
|
100
|
+
/**
|
|
101
|
+
* The contentful index: which cells hold a value, summarized per run. Derived from
|
|
102
|
+
* {@link getValues} and kept in step with it.
|
|
103
|
+
* @param transaction Read the record as this transaction sees it, its held writes not yet
|
|
104
|
+
* made; the current record when omitted.
|
|
105
|
+
*/
|
|
106
|
+
getContentful(transaction?: ITransaction | null): ISpatialMap<ContentfulSpatialValue>;
|
|
107
|
+
/**
|
|
108
|
+
* The array extents: where an array-entered or dynamic formula occupies more than its anchor.
|
|
109
|
+
* @param transaction Read the record as this transaction sees it, its held writes not yet
|
|
110
|
+
* made; the current record when omitted.
|
|
111
|
+
*/
|
|
112
|
+
getSpills(transaction?: ITransaction | null): ISpatialMap<SpillEntry>;
|
|
113
|
+
/**
|
|
114
|
+
* The cells the engine has not answered for yet - an async function in flight, a pass still
|
|
115
|
+
* running.
|
|
116
|
+
* @param transaction Read the record as this transaction sees it, its held writes not yet
|
|
117
|
+
* made; the current record when omitted.
|
|
118
|
+
*/
|
|
119
|
+
getPending(transaction?: ITransaction | null): ISpatialMap<boolean>;
|
|
120
|
+
/**
|
|
121
|
+
* Engine FAILURES by cell (a formula that could not be evaluated), as a message. Not error
|
|
122
|
+
* VALUES - those are {@link getErrorValues}.
|
|
123
|
+
* @param transaction Read the record as this transaction sees it, its held writes not yet
|
|
124
|
+
* made; the current record when omitted.
|
|
125
|
+
*/
|
|
126
|
+
getCalcErrors(transaction?: ITransaction | null): ISpatialMap<string>;
|
|
127
|
+
/**
|
|
128
|
+
* Cells in a reference cycle or downstream of one, by cycle (DESIGN-CIRCULAR-CALC.md §7.2).
|
|
129
|
+
* @param transaction Read the record as this transaction sees it, its held writes not yet
|
|
130
|
+
* made; the current record when omitted.
|
|
60
131
|
*/
|
|
61
|
-
|
|
132
|
+
getCirculars(transaction?: ITransaction | null): ISpatialMap<CircularEntry>;
|
|
62
133
|
/**
|
|
63
|
-
*
|
|
134
|
+
* Error VALUES (`#DIV/0!`, `#N/A`, ...) by cell: the `Error` scalar kind, entered or computed.
|
|
135
|
+
* Deliberately not per-type - an entry means "an error value lives here".
|
|
64
136
|
*
|
|
65
|
-
* @
|
|
66
|
-
*
|
|
137
|
+
* @remarks
|
|
138
|
+
* The reconciled view. The index the write path maintains is fresh for what the model entered
|
|
139
|
+
* and stale for formula cells (the executor does not emit error deltas yet), so this
|
|
140
|
+
* reconciles it against the values and caches the result until the values change again. It
|
|
141
|
+
* collapses into a plain read once the executor emits those deltas.
|
|
67
142
|
*/
|
|
68
|
-
|
|
143
|
+
getErrorValues(): ISpatialMap<boolean>;
|
|
69
144
|
/**
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
* single cell a blocked spill collapses to.
|
|
145
|
+
* A counter that moves whenever the values change in place, where {@link getValues} keeps its
|
|
146
|
+
* identity (an engine's answers landing, a load).
|
|
73
147
|
*
|
|
74
|
-
* @
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
* pass — which is what lets a formula evaluated OUTSIDE one resolve a spill anchor.
|
|
148
|
+
* @remarks
|
|
149
|
+
* With the identity of {@link getValues}, the key a view derived from the values is cached
|
|
150
|
+
* against: equal identity and equal epoch mean the values have not moved.
|
|
78
151
|
*/
|
|
79
|
-
|
|
152
|
+
getValuesEpoch(): number;
|
|
80
153
|
/**
|
|
81
|
-
*
|
|
154
|
+
* The volatile regions the file listed: what an `Off` save writes back and a seed carries,
|
|
155
|
+
* kept where a formula still sits under them. What the engine knows once it is up it answers
|
|
156
|
+
* itself ({@link isVolatileAt}); this list is not shifted by a structural change.
|
|
82
157
|
*/
|
|
83
|
-
|
|
158
|
+
getVolatileRegions(): IRange.Address[] | null;
|
|
84
159
|
/**
|
|
85
|
-
*
|
|
160
|
+
* The statistics cache over {@link getValues}, for the aggregate reads.
|
|
86
161
|
*
|
|
87
|
-
* @
|
|
162
|
+
* @remarks
|
|
163
|
+
* Here because it caches against the value grid INSTANCE, and the instance changes whenever a
|
|
164
|
+
* write or a vend clones the map - which is the grid's business, not its reader's.
|
|
88
165
|
*/
|
|
89
|
-
|
|
166
|
+
getRangeStats(): RangeStats;
|
|
90
167
|
/**
|
|
91
|
-
*
|
|
168
|
+
* The formula at a cell, as the model holds it: its text the moment it is written, the
|
|
169
|
+
* compiled block's view once the engine has vended one. `null` where there is none.
|
|
92
170
|
*/
|
|
93
|
-
|
|
171
|
+
getFormulaAt(row: number, column: number): FormulaEntry | null;
|
|
94
172
|
/**
|
|
95
|
-
*
|
|
173
|
+
* The formulas as the model holds them, one entry per run, as a read-only spatial query: the
|
|
174
|
+
* text the moment it is written, the compiled block's view once the engine has vended one.
|
|
175
|
+
*
|
|
176
|
+
* @param commitId A commit to answer for, in place of the current state. `null` when the store
|
|
177
|
+
* no longer has it on its live history (undone, rolled back, pruned) or this grid did not exist
|
|
178
|
+
* at it.
|
|
96
179
|
*
|
|
97
180
|
* @remarks
|
|
98
|
-
*
|
|
181
|
+
* The current map. A past snapshot's is read from the store, at the commit, under
|
|
182
|
+
* {@link getStateId}.
|
|
183
|
+
* @param transaction Read the record as this transaction sees it, its held writes not yet
|
|
184
|
+
* made; the current record when omitted.
|
|
99
185
|
*/
|
|
100
|
-
|
|
186
|
+
getFormulas(transaction?: ITransaction | null): ISpatialQuery<FormulaEntry>;
|
|
101
187
|
/**
|
|
102
|
-
*
|
|
188
|
+
* Shifts all values in the graph in a given direction.
|
|
103
189
|
*
|
|
104
|
-
* @param
|
|
190
|
+
* @param options The options for the shift.
|
|
105
191
|
*
|
|
106
192
|
* @remarks
|
|
107
|
-
*
|
|
108
|
-
*
|
|
193
|
+
* Shifts THIS grid in place; a caller that versions the grid clones it first.
|
|
194
|
+
*
|
|
195
|
+
* @returns Resolves with the blocks re-imaged by the shift (references across the boundary,
|
|
196
|
+
* `#REF!`, split pieces) at their new coords, and the coords vacated.
|
|
109
197
|
*/
|
|
110
|
-
|
|
198
|
+
shift(options: ICalcGrid.ShiftOptions): Promise<ICalcGrid.Results>;
|
|
111
199
|
/**
|
|
112
|
-
*
|
|
200
|
+
* The model has restored itself to a snapshot (an undo, a redo): the engine restores its own
|
|
201
|
+
* history to the same id (design §13.13).
|
|
113
202
|
*
|
|
114
|
-
* @param
|
|
203
|
+
* @param options The snapshot restored to.
|
|
115
204
|
*
|
|
116
205
|
* @remarks
|
|
117
|
-
* A
|
|
118
|
-
*
|
|
119
|
-
*
|
|
120
|
-
* changes. A resolved one is a record of the last calculation, so it moves when the formula's own
|
|
121
|
-
* inputs move (`INDIRECT(B1&"!A1")` names a different sheet once `B1` does), and it is absent
|
|
122
|
-
* entirely for a block that has not been calculated yet.
|
|
206
|
+
* A response to a request that the restore undid is dropped, so the entries the restore put
|
|
207
|
+
* back have no block until the engine says what it holds for them. The engine knows what
|
|
208
|
+
* changed between the two snapshots from what its commits recorded.
|
|
123
209
|
*
|
|
124
|
-
*
|
|
125
|
-
*
|
|
126
|
-
*
|
|
210
|
+
* @returns Resolves with the blocks over the changed cells, at the coords they have in the
|
|
211
|
+
* restored snapshot, and those coords as removes: the view re-adopts exactly what the engine
|
|
212
|
+
* holds there.
|
|
127
213
|
*/
|
|
128
|
-
|
|
214
|
+
revert(options: ICalcGrid.RevertOptions): Promise<ICalcGrid.Results>;
|
|
129
215
|
/**
|
|
130
|
-
* Returns
|
|
131
|
-
|
|
216
|
+
* Returns a snapshot of the graph that can be used for copying.
|
|
217
|
+
*/
|
|
218
|
+
getSnapshot(options?: ICalcGrid.GetSnapshotOptions): ICalcGrid.ISnapshot;
|
|
219
|
+
/**
|
|
220
|
+
* Autofill the values from a single cell to the entire range.
|
|
132
221
|
*
|
|
133
222
|
* @remarks
|
|
134
|
-
*
|
|
223
|
+
* Fills THIS grid in place; a caller that versions the grid clones it first.
|
|
224
|
+
*
|
|
225
|
+
* @param options See {@link ICalcGrid.RequestOptions}.
|
|
226
|
+
*
|
|
227
|
+
* @returns Resolves with the blocks minted over the destination.
|
|
135
228
|
*/
|
|
136
|
-
|
|
229
|
+
autoFill(template: IRange.Coords | string, destination: IRange.Coords | string, options?: ICalcGrid.RequestOptions): Promise<ICalcGrid.Results>;
|
|
137
230
|
/**
|
|
138
|
-
*
|
|
139
|
-
*
|
|
231
|
+
* Everything `coords` depends on, or that depends on it - cells AND names, in ONE call.
|
|
232
|
+
*
|
|
233
|
+
* @param coords The range to answer for, scoped in calc currency (a sheet's stableId, or bare
|
|
234
|
+
* for this grid).
|
|
235
|
+
* @param kind Which direction to walk.
|
|
236
|
+
* @param direct `true` for one hop, `false` for the full recursive closure.
|
|
140
237
|
*
|
|
141
238
|
* @remarks
|
|
142
|
-
*
|
|
239
|
+
* The graph question belongs here whole. Composed by a caller it was two calls plus the
|
|
240
|
+
* knowledge of which of the four walks pairs with which name half - calculation reasoning that
|
|
241
|
+
* had leaked into the model layer.
|
|
242
|
+
*
|
|
243
|
+
* The two halves are found differently, which is the reason they are not one list. A PRECEDENT
|
|
244
|
+
* name is one the queried formulas MENTION (apply-at-eval leaves no cell edge for it). A
|
|
245
|
+
* DEPENDENT name is one whose virtual grid a walk result LANDED in - that name's body reading
|
|
246
|
+
* these cells - and it is reported only while the name is live.
|
|
247
|
+
*
|
|
248
|
+
* `cells` stay in calc currency; converting their scope to something addressable is the model's
|
|
249
|
+
* job, as is turning ids into range objects.
|
|
143
250
|
*/
|
|
144
|
-
|
|
251
|
+
getGraphNeighborsAt(coords: IRange.Coords, kind: 'precedents' | 'dependents', direct: boolean): Promise<ICalcGrid.GraphNeighbors>;
|
|
145
252
|
/**
|
|
146
|
-
*
|
|
253
|
+
* Evaluates the formula at a cell and returns its finalized value.
|
|
147
254
|
*
|
|
148
255
|
* @param row The row of the cell to evaluate.
|
|
149
256
|
* @param column The column of the cell to evaluate.
|
|
150
|
-
* @
|
|
257
|
+
* @param options An eval index, or {@link ICalculation.EvaluateOptions}.
|
|
258
|
+
*
|
|
259
|
+
* @remarks
|
|
260
|
+
* The engine side of `IFormula.evaluate()`. Evaluating needs the calc scope, which only the
|
|
261
|
+
* engine has - so it lives on this surface rather than on the block a caller is holding, and
|
|
262
|
+
* is `async` for the same reason `IFormula.evaluate()` always was.
|
|
263
|
+
*
|
|
264
|
+
* Resolves to `null` when no formula is at the cell. The block is resolved HERE rather than
|
|
265
|
+
* captured by the caller: the engine re-mints a block on every rewrite, so a captured
|
|
266
|
+
* instance can be a snapshot of the formula as it was.
|
|
151
267
|
*/
|
|
152
|
-
|
|
268
|
+
evaluateAt(row: number, column: number, options?: number | ICalculation.EvaluateOptions): Promise<Scalar | IRange>;
|
|
153
269
|
/**
|
|
154
270
|
* Sets the reference to an absolute range at a specific cell coordinate.
|
|
155
271
|
*
|
|
@@ -161,27 +277,38 @@ export interface ICalcGrid {
|
|
|
161
277
|
* {@link IFormulaBlock.setReferenceAt}.
|
|
162
278
|
* @throws Error if the cell is not a formula.
|
|
163
279
|
*/
|
|
164
|
-
setReferenceAt(row: number, column: number, index: number, precedent: IRange.FixableCoords | IRange.FixableCellCoords | NamedReference | FormulaError.Ref):
|
|
280
|
+
setReferenceAt(row: number, column: number, index: number, precedent: IRange.FixableCoords | IRange.FixableCellCoords | NamedReference | FormulaError.Ref): Promise<IFormulaBlockView | null>;
|
|
165
281
|
/**
|
|
166
|
-
*
|
|
282
|
+
* Cycles the absolute/relative (`$`) style of the reference at `index` - F4.
|
|
167
283
|
*
|
|
168
|
-
* @param row The row of the cell
|
|
169
|
-
* @param column The column of the cell
|
|
284
|
+
* @param row The row of the cell holding the formula.
|
|
285
|
+
* @param column The column of the cell holding the formula.
|
|
286
|
+
* @param index The index of the reference to cycle (aligned to the formula's references,
|
|
287
|
+
* `IFormulaBlockView.getReferencesAt`).
|
|
288
|
+
* @param side Which corner of a range to cycle; `'self'` for a standalone cell.
|
|
289
|
+
* @param mode An explicit mode, or `undefined` to advance one step in the F4 order.
|
|
290
|
+
* @throws Error if there is no CELL reference at `index` (a named reference has no `$` style).
|
|
170
291
|
*
|
|
171
292
|
* @remarks
|
|
172
|
-
*
|
|
173
|
-
*
|
|
293
|
+
* Read-cycle-write in ONE call. Composed on the client it is three round trips per keypress
|
|
294
|
+
* (the reference, then the write, then reading the result back), which is the wrong shape
|
|
295
|
+
* for a proxied engine.
|
|
174
296
|
*/
|
|
175
|
-
|
|
297
|
+
setReferenceModeAt(row: number, column: number, index: number, side?: ICalculation.ReferenceSide, mode?: number): Promise<IFormulaBlockView | null>;
|
|
176
298
|
/**
|
|
177
|
-
*
|
|
299
|
+
* Whether the formula at the cell is volatile: its text, closed over the names it mentions,
|
|
300
|
+
* the computed reads its last evaluation registered, or the node a pass registered volatile —
|
|
301
|
+
* a question answered in order behind the writes sent before it. On a grid at a synthetic
|
|
302
|
+
* anchor (a name's), which no pass evaluates, the text is all there is.
|
|
178
303
|
*
|
|
179
|
-
* @param
|
|
304
|
+
* @param row The row of the cell to evaluate.
|
|
305
|
+
* @param column The column of the cell to evaluate.
|
|
180
306
|
*
|
|
181
307
|
* @remarks
|
|
182
|
-
*
|
|
308
|
+
*
|
|
309
|
+
* This is not used internally but is provided to allow api to query.
|
|
183
310
|
*/
|
|
184
|
-
|
|
311
|
+
isVolatileAt(row: number, column: number): Promise<boolean>;
|
|
185
312
|
/**
|
|
186
313
|
* Add Listeners to graph.
|
|
187
314
|
*/
|
|
@@ -191,26 +318,58 @@ export interface ICalcGrid {
|
|
|
191
318
|
*/
|
|
192
319
|
getEntireCoords(): IRange.Coords;
|
|
193
320
|
/**
|
|
194
|
-
*
|
|
321
|
+
* Sets the grid's size: what {@link getEntireCoords} answers from now on. Recorded with the
|
|
322
|
+
* grid's other content, in the caller's operation, and told to the engine in order with the
|
|
323
|
+
* grid's writes, so an undo restores the old size in both. The size a grid opens with is its
|
|
324
|
+
* seed's ({@link ICalcGrid.JSON.entireCoords}).
|
|
325
|
+
*
|
|
326
|
+
* @param entireCoords The grid's new size.
|
|
327
|
+
* @param options See {@link ICalcGrid.RequestOptions}.
|
|
328
|
+
*/
|
|
329
|
+
resize(entireCoords: IRange.Coords, options?: ICalcGrid.RequestOptions): void;
|
|
330
|
+
/**
|
|
331
|
+
* Sets the rows or columns the grid's owner hides: the whole set on that axis, replacing the
|
|
332
|
+
* one before. Recorded with the grid's other content, in the caller's operation, and told to the
|
|
333
|
+
* engine in order with the grid's writes; every formula that calls `SUBTOTAL` or `AGGREGATE`
|
|
334
|
+
* recalculates. The set a grid opens with is its seed's ({@link ICalcGrid.JSON.hiddenRows}).
|
|
335
|
+
*
|
|
336
|
+
* @param axis The axis the runs are on.
|
|
337
|
+
* @param runs Every hidden run on that axis, ascending and disjoint; empty for none.
|
|
338
|
+
* @param options See {@link ICalcGrid.RequestOptions}.
|
|
339
|
+
*/
|
|
340
|
+
setHidden(axis: IRange.Axis, runs: readonly RunCoords[], options?: ICalcGrid.RequestOptions): void;
|
|
341
|
+
/**
|
|
342
|
+
* Sets whether the grid's owner is filtered: some AutoFilter or table on it holds a condition.
|
|
343
|
+
* Recorded and told as {@link setHidden} is; every formula that calls `SUBTOTAL` or `AGGREGATE`
|
|
344
|
+
* recalculates. The state a grid opens with is its seed's ({@link ICalcGrid.JSON.filtered}).
|
|
195
345
|
*
|
|
196
346
|
* @remarks
|
|
197
|
-
*
|
|
347
|
+
* `SUBTOTAL` 1-11 skip the owner's hidden rows only while this is set; 101-111 skip them always.
|
|
348
|
+
* A hidden row is one thing whoever hid it, so this is the whole of what a filter adds.
|
|
198
349
|
*
|
|
199
|
-
* @
|
|
350
|
+
* @param filtered `true` while a condition is held.
|
|
351
|
+
* @param options See {@link ICalcGrid.RequestOptions}.
|
|
200
352
|
*/
|
|
201
|
-
|
|
353
|
+
setFiltered(filtered: boolean, options?: ICalcGrid.RequestOptions): void;
|
|
202
354
|
/**
|
|
203
|
-
*
|
|
355
|
+
* Opens the grid from a seed: a statement of its whole content (DESIGN-CALC-SERVICE §6).
|
|
204
356
|
*
|
|
205
|
-
* @param json The
|
|
206
|
-
* @param options {@link ICalcGrid.
|
|
357
|
+
* @param json The content, the same record a save writes.
|
|
358
|
+
* @param options {@link ICalcGrid.SeedOptions}
|
|
207
359
|
*
|
|
208
360
|
* @remarks
|
|
209
|
-
*
|
|
361
|
+
* Replaces everything the grid held, so opening twice equals opening once. A seed is a request
|
|
362
|
+
* like any other: applied at once on a `Running` engine, held in order while the engine is
|
|
363
|
+
* `Starting`, not recorded on an `Off` one (the owner keeps the content and hands it over again
|
|
364
|
+
* when the service is started). Its results are a full pass's - `isFull`, every block it
|
|
365
|
+
* compiled and every array extent it read - and reach the owner through `onCalculated` as it is
|
|
366
|
+
* applied, in order with every other record the grid pushes; the promise resolves after that.
|
|
210
367
|
*
|
|
211
|
-
*
|
|
368
|
+
* A seed trusts the values it carries as a load does. One handed over at `start()` by an owner
|
|
369
|
+
* the engine has not been following - a sheet written to while `Off` - asks for a full pass
|
|
370
|
+
* instead ({@link ICalcGrid.SeedOptions.full}).
|
|
212
371
|
*/
|
|
213
|
-
|
|
372
|
+
seed(json: ICalcGrid.JSON, options?: ICalcGrid.SeedOptions): Promise<ICalcGrid.Results>;
|
|
214
373
|
/**
|
|
215
374
|
* Returns a JSON representation of the calcGrid.
|
|
216
375
|
*
|
|
@@ -224,16 +383,18 @@ export interface ICalcGrid {
|
|
|
224
383
|
*/
|
|
225
384
|
getId(): string;
|
|
226
385
|
/**
|
|
227
|
-
*
|
|
386
|
+
* Remove the grid from the calculation: every formula that read it reads `#REF!`.
|
|
228
387
|
*
|
|
229
|
-
* @
|
|
230
|
-
*
|
|
388
|
+
* @param options See {@link ICalcGrid.RequestOptions}; the removal lands under the snapshot
|
|
389
|
+
* named, and a revert to before it registers the grid again.
|
|
231
390
|
*/
|
|
232
|
-
|
|
391
|
+
delete(options?: ICalcGrid.RequestOptions): void;
|
|
233
392
|
/**
|
|
234
|
-
*
|
|
393
|
+
* Release the grid: its owner is done with it. The engine takes it out of the graph and every
|
|
394
|
+
* formula that read it computes `#REF!` on its next evaluation. Not undoable - {@link delete} is
|
|
395
|
+
* the removal an undo brings back.
|
|
235
396
|
*/
|
|
236
|
-
|
|
397
|
+
close(): void;
|
|
237
398
|
}
|
|
238
399
|
/**
|
|
239
400
|
* {@inheritDoc ICalcGrid}
|
|
@@ -244,7 +405,88 @@ export interface ICalcGrid {
|
|
|
244
405
|
* {@link ICalcGrid}
|
|
245
406
|
*/
|
|
246
407
|
export declare namespace ICalcGrid {
|
|
408
|
+
/**
|
|
409
|
+
* What the model's grid forwards to (DESIGN-CALC-SERVICE §13.23): every verb and every read
|
|
410
|
+
* the engine answers, and nothing the model holds for itself. The in-process engine grid is
|
|
411
|
+
* one; a message-passing proxy under a worker is another.
|
|
412
|
+
*/
|
|
413
|
+
type Backend = Omit<ICalcGrid, 'getStateId' | 'getEntireCoords' | 'getFormulaAt' | 'getFormulas' | 'getValues' | 'getContentful' | 'getSpills' | 'getPending' | 'getCalcErrors' | 'getCirculars' | 'getErrorValues' | 'getValuesEpoch' | 'getVolatileRegions' | 'getRangeStats'> & {
|
|
414
|
+
/** Write a body as authored; the engine anchors it (see {@link ICalcGrid.BodyOptions}). */
|
|
415
|
+
setBody(options: ICalcGrid.BodyOptions): Promise<ICalcGrid.Results>;
|
|
416
|
+
/** {@link ICalcGrid.evaluateAt} coerced to one scalar, as a defined name's `evaluate()` is. */
|
|
417
|
+
evaluateScalarAt(row: number, column: number, evalIndex?: number): Promise<Scalar>;
|
|
418
|
+
/** Owe a pass seeded from this grid, run once the current flush is over. */
|
|
419
|
+
requestPass(): void;
|
|
420
|
+
/**
|
|
421
|
+
* The tiles of a paged body's blank region the owner reads now - all of them, replacing the
|
|
422
|
+
* last set; see `CalcGridBackend.getDemanded`. Evaluated by the next pass.
|
|
423
|
+
*/
|
|
424
|
+
demand(rects: readonly IRange.Coords[]): void;
|
|
425
|
+
/**
|
|
426
|
+
* The graph around the defined name whose body this grid holds - its precedents or
|
|
427
|
+
* dependents, cells in calc currency and names - as {@link ICalcGrid.getGraphNeighborsAt}
|
|
428
|
+
* answers for cells.
|
|
429
|
+
*/
|
|
430
|
+
getNameGraph(kind: 'precedents' | 'dependents', direct: boolean): Promise<ICalcGrid.GraphNeighbors>;
|
|
431
|
+
};
|
|
432
|
+
/**
|
|
433
|
+
* A body written as it was authored, for a grid that holds one (a name's, a watch's): the engine
|
|
434
|
+
* compiles it where it was authored, binds every bare reference to `scopeGridId`, and writes it
|
|
435
|
+
* over `coords` imaged at their top-left.
|
|
436
|
+
*/
|
|
437
|
+
interface BodyOptions {
|
|
438
|
+
/** Where the body goes: the block's extent. */
|
|
439
|
+
coords: IRange.Coords;
|
|
440
|
+
/** The expression as authored. */
|
|
441
|
+
expression: string;
|
|
442
|
+
/** The cell the expression was authored at; relative references are offsets from here. */
|
|
443
|
+
authoredAt: IRange.CellCoords;
|
|
444
|
+
/** The sheet grid a bare reference in the expression resolves against. */
|
|
445
|
+
scopeGridId: string;
|
|
446
|
+
/** Re-derive the formulas that mention this grid's name once the body is in: a defined name's. */
|
|
447
|
+
recompile?: boolean;
|
|
448
|
+
/**
|
|
449
|
+
* Applied ahead of the other requests a start holds: a defined name must be bound before any
|
|
450
|
+
* formula that mentions it is examined.
|
|
451
|
+
*/
|
|
452
|
+
priority?: boolean;
|
|
453
|
+
}
|
|
454
|
+
/**
|
|
455
|
+
* What {@link ICalcGrid.getGraphNeighborsAt} answers: the two halves of a graph neighborhood,
|
|
456
|
+
* both in currency that crosses a wire.
|
|
457
|
+
*/
|
|
458
|
+
interface GraphNeighbors {
|
|
459
|
+
/** Neighbor ranges, scoped by GRID (a sheet's stableId), or unscoped for the queried grid. */
|
|
460
|
+
cells: IRange.Coords[];
|
|
461
|
+
/** The named formulas in the neighborhood, as plain data ready to become range objects. */
|
|
462
|
+
names: NamedNodeInfo[];
|
|
463
|
+
}
|
|
464
|
+
/**
|
|
465
|
+
* A cell's format on entry when its formula reads cells (see {@link Results.formatInserts}).
|
|
466
|
+
*
|
|
467
|
+
* @remarks
|
|
468
|
+
* Excel ranks the cell a formula reads ahead of a function's format - `=A1+TODAY()` shows what
|
|
469
|
+
* `A1` does - and falls back to the function's only when no reference carries one.
|
|
470
|
+
*/
|
|
471
|
+
interface InheritedFormat {
|
|
472
|
+
/**
|
|
473
|
+
* The references the formula reads as values, in text order, relative to the entry's own
|
|
474
|
+
* top-left: offsets on a relative axis, a position on a fixed one. A range stands for its
|
|
475
|
+
* top-left cell. The first whose cell's format is not General is the cell's.
|
|
476
|
+
*/
|
|
477
|
+
references: IRange.FixableCoords[];
|
|
478
|
+
/** The format the formula's functions supplied, for when none of the references carries one. */
|
|
479
|
+
fallback: string | null;
|
|
480
|
+
}
|
|
481
|
+
/** What a {@link Results.formatInserts} entry carries: a function's format, or what to inherit. */
|
|
482
|
+
type FormatInsert = string | InheritedFormat;
|
|
247
483
|
interface Results {
|
|
484
|
+
/**
|
|
485
|
+
* The snapshot this record answers for: the {@link RequestOptions.commitId} of the request,
|
|
486
|
+
* or, for a record the engine pushed (a calculation pass), the last commit the engine
|
|
487
|
+
* applied. The formula coords below are addresses in that snapshot.
|
|
488
|
+
*/
|
|
489
|
+
commitId?: string;
|
|
248
490
|
/**
|
|
249
491
|
* The id of the calculation that was completed.
|
|
250
492
|
*
|
|
@@ -268,12 +510,12 @@ export declare namespace ICalcGrid {
|
|
|
268
510
|
*/
|
|
269
511
|
bounds?: IRange.Coords | null;
|
|
270
512
|
/**
|
|
271
|
-
* The results of the calculation will either be as `Map` or as a `Tuple.
|
|
513
|
+
* The results of the calculation will either be as `Map` or as a `Tuple.Region`.
|
|
272
514
|
*
|
|
273
515
|
* @see
|
|
274
516
|
* {@link CalculateOptions.asTuples}
|
|
275
517
|
*/
|
|
276
|
-
valueInserts?: Tuple.
|
|
518
|
+
valueInserts?: Tuple.Region<Scalar>;
|
|
277
519
|
/**
|
|
278
520
|
* Values that have been cleared.
|
|
279
521
|
*/
|
|
@@ -288,12 +530,16 @@ export declare namespace ICalcGrid {
|
|
|
288
530
|
*/
|
|
289
531
|
spillRemoves?: ISpatialMap.Entry[];
|
|
290
532
|
/**
|
|
291
|
-
*
|
|
533
|
+
* The number format each realized formula cell takes on entry: a format its functions
|
|
534
|
+
* supplied (`=TODAY()` a date), or the references it inherits one from.
|
|
292
535
|
*
|
|
293
536
|
* @remarks
|
|
294
|
-
*
|
|
537
|
+
* One value per cell, the executor's pick: an {@link InheritedFormat} when the formula has
|
|
538
|
+
* references that are value operands (`IFormulaBlock.getFormatReferences`), else the
|
|
539
|
+
* function's string, else nothing. Which format the references carry, and as of when, is the
|
|
540
|
+
* reader's to resolve. Formats are not cleared.
|
|
295
541
|
*/
|
|
296
|
-
formatInserts?: ISpatialMap.Entry<
|
|
542
|
+
formatInserts?: ISpatialMap.Entry<ICalcGrid.FormatInsert>[];
|
|
297
543
|
/**
|
|
298
544
|
* Contains any errors that were inserted.
|
|
299
545
|
*/
|
|
@@ -319,6 +565,49 @@ export declare namespace ICalcGrid {
|
|
|
319
565
|
* These are guaranteed to not overlap.
|
|
320
566
|
*/
|
|
321
567
|
circularUpdates?: ISpatialMap.Entry<CircularEntry | null>[];
|
|
568
|
+
/**
|
|
569
|
+
* Blocks the engine compiled or re-imaged, at the coords they cover, as the read views the
|
|
570
|
+
* model holds: the vend of the formula half. Every site that mints a block reports it here -
|
|
571
|
+
* a write, a value splitting a block, a shift, a cross-sheet `#REF!`, a copy, a fill, a
|
|
572
|
+
* reference edit, the legacy `@` wrap on load.
|
|
573
|
+
*
|
|
574
|
+
* @remarks
|
|
575
|
+
* Applied in order after {@link formulaRemoves}. On {@link isFull} every block on the grid is
|
|
576
|
+
* listed, so a caller that dropped its blocks on the full pass has them all back. What
|
|
577
|
+
* crosses is the block as data; the view is imaged from it on the model's side of the
|
|
578
|
+
* channel, against the model's own symbols (DESIGN-CALC-SERVICE §8).
|
|
579
|
+
*/
|
|
580
|
+
formulaInserts?: ISpatialMap.Entry<IFormulaBlockView>[];
|
|
581
|
+
/**
|
|
582
|
+
* Coords whose formulas the engine removed: cleared, replaced, or moved away by a shift.
|
|
583
|
+
*/
|
|
584
|
+
formulaRemoves?: IRange.Coords[];
|
|
585
|
+
/**
|
|
586
|
+
* For a grid that holds one body (a watch's, a name's): the body's blank region as the pass
|
|
587
|
+
* left it, `null` when nothing is shared. Absent from a sheet's grid.
|
|
588
|
+
*/
|
|
589
|
+
blankRegion?: ICalcGrid.BlankRegion | null;
|
|
590
|
+
}
|
|
591
|
+
/**
|
|
592
|
+
* The cells of a body that a pass shares one answer for rather than writing, and that answer:
|
|
593
|
+
* what every such cell reads as.
|
|
594
|
+
*
|
|
595
|
+
* @remarks
|
|
596
|
+
* A PAGED region shares nothing: the body's answer there depends on the position, and only the
|
|
597
|
+
* tiles its owner asked for are evaluated ({@link evaluated}). Every other cell of
|
|
598
|
+
* {@link rects} holds nothing and has no answer yet.
|
|
599
|
+
*/
|
|
600
|
+
interface BlankRegion {
|
|
601
|
+
/** The shared answer; `undefined` for a paged region. */
|
|
602
|
+
readonly value: Scalar | undefined;
|
|
603
|
+
/** The rectangles it covers, in the grid's coordinates. */
|
|
604
|
+
readonly rects: readonly IRange.Coords[];
|
|
605
|
+
/** The body's extent: a read wider than it shares nothing. */
|
|
606
|
+
readonly extent: IRange.Coords;
|
|
607
|
+
/** The region is evaluated a tile at a time rather than shared. */
|
|
608
|
+
readonly paged?: boolean;
|
|
609
|
+
/** For a paged region, the tiles this pass evaluated. */
|
|
610
|
+
readonly evaluated?: readonly IRange.Coords[];
|
|
322
611
|
}
|
|
323
612
|
/**
|
|
324
613
|
* Returns from `ICalcGrid.beginUpdates()`.
|
|
@@ -335,6 +624,18 @@ export declare namespace ICalcGrid {
|
|
|
335
624
|
circularSpatial: ISpatialMap<CircularEntry>;
|
|
336
625
|
contentfulSpatial: ISpatialMap<ContentfulSpatialValue>;
|
|
337
626
|
notifyValues: ISpatialMap;
|
|
627
|
+
/**
|
|
628
|
+
* Reports a region whose answer changed without a write to the grid: a blank region the pass
|
|
629
|
+
* shares one answer for on the block instead of writing (PLAN-WATCHES-BLANK-AWARE §4c).
|
|
630
|
+
*
|
|
631
|
+
* @remarks
|
|
632
|
+
* Accumulated as bounds, not as a region index. Only `Results.bounds` learns of this - there
|
|
633
|
+
* are no values to vend - and that is one rectangle over every notify source, so the union is
|
|
634
|
+
* the whole of what a caller can observe.
|
|
635
|
+
*
|
|
636
|
+
* `coords` is read, never kept, and its scope is ignored.
|
|
637
|
+
*/
|
|
638
|
+
notifyBlank(coords: IRange.Coords): void;
|
|
338
639
|
notifySpillsInsert: ISpatialMap.Entry<SpillEntry>[];
|
|
339
640
|
notifySpillsRemove: IRange.Coords[];
|
|
340
641
|
notifyFormats: ISpatialMap;
|
|
@@ -344,7 +645,7 @@ export declare namespace ICalcGrid {
|
|
|
344
645
|
circularConflating: ISpatialMap.IConflatingEntries<CircularEntry | false> | null;
|
|
345
646
|
errorRemovesConflating: ISpatialMap.IConflatingEntries<null> | null;
|
|
346
647
|
errorInsertsConflating: ISpatialMap.IConflatingEntries<string> | null;
|
|
347
|
-
formatsConflating: ISpatialMap.IConflatingEntries | null;
|
|
648
|
+
formatsConflating: ISpatialMap.IConflatingEntries<ICalcGrid.FormatInsert> | null;
|
|
348
649
|
/**
|
|
349
650
|
* Called when the incremental updates are completed
|
|
350
651
|
*
|
|
@@ -356,35 +657,63 @@ export declare namespace ICalcGrid {
|
|
|
356
657
|
*/
|
|
357
658
|
done(cycleId: number, options: ICalculation.CalculateOptions): void;
|
|
358
659
|
}
|
|
359
|
-
|
|
660
|
+
/**
|
|
661
|
+
* Options for {@link ICalcGrid.getSnapshot}: what the engine reads, named.
|
|
662
|
+
*/
|
|
663
|
+
interface GetSnapshotOptions {
|
|
360
664
|
/**
|
|
361
665
|
* The range to capture the snapshot from. If omitted the entire range will be used.
|
|
362
666
|
*/
|
|
363
667
|
range?: IRange.Coords | string;
|
|
668
|
+
/**
|
|
669
|
+
* `true` when the capture is for a move: the copy that follows vacates the source.
|
|
670
|
+
* @defaultValue false
|
|
671
|
+
*/
|
|
672
|
+
isCut?: boolean;
|
|
364
673
|
}
|
|
365
674
|
/**
|
|
366
675
|
* Provides destination details for the Snapshot when using `IHistory.ISnapshot.copyTo`.
|
|
367
676
|
*/
|
|
368
677
|
interface SnapshotDestination {
|
|
369
678
|
/**
|
|
370
|
-
* The
|
|
679
|
+
* The id of the grid to copy to ({@link ICalcGrid.getId}): the destination is named, never
|
|
680
|
+
* handed over.
|
|
371
681
|
*/
|
|
372
|
-
|
|
682
|
+
gridId: string;
|
|
683
|
+
/**
|
|
684
|
+
* The model's destination grid, when the caller holds it: what lets a copy land on another
|
|
685
|
+
* workbook's grid, which no id resolves to here. In-process only; never crosses a channel.
|
|
686
|
+
*/
|
|
687
|
+
grid?: ICalcGrid;
|
|
373
688
|
/**
|
|
374
689
|
* The range to copy the snapshot to.
|
|
375
690
|
*/
|
|
376
691
|
range: IRange.Coords | string;
|
|
377
692
|
}
|
|
378
|
-
interface ISnapshot extends IHistory.ISnapshot<ICalcGrid.SnapshotDestination, ICalcGrid, IRange.Coords
|
|
693
|
+
interface ISnapshot extends IHistory.ISnapshot<ICalcGrid.SnapshotDestination, ICalcGrid.Backend, IRange.Coords, any, Promise<ICalcGrid.Results>> {
|
|
379
694
|
/**
|
|
380
|
-
*
|
|
695
|
+
* Copies the snapshot's formulas to the destination grid.
|
|
696
|
+
*
|
|
697
|
+
* @remarks
|
|
698
|
+
* The engine answers when it has the blocks; the destination holds the formulas pending in
|
|
699
|
+
* the meantime, so a paste starts this and does not wait for it.
|
|
700
|
+
*
|
|
701
|
+
* @returns Resolves with the blocks minted at the destination (re-anchored, `#REF!` where a
|
|
702
|
+
* relative reference left the sheet) and, for a cut, the coords vacated at the source. The
|
|
703
|
+
* copied extent is the result's `bounds`.
|
|
381
704
|
*/
|
|
382
|
-
copyTo(destination: ICalcGrid.SnapshotDestination, options?: ICalcGrid.CopyOptions): Promise<
|
|
705
|
+
copyTo(destination: ICalcGrid.SnapshotDestination, options?: ICalcGrid.CopyOptions): Promise<ICalcGrid.Results>;
|
|
383
706
|
}
|
|
384
707
|
/**
|
|
385
|
-
* Options for {@link ISnapshot.copyTo}.
|
|
708
|
+
* Options for {@link ISnapshot.copyTo}: what the engine reads, named. A caller's clipboard
|
|
709
|
+
* options (an undo selection, callbacks) are the caller's, and never ride along.
|
|
386
710
|
*/
|
|
387
|
-
interface CopyOptions extends
|
|
711
|
+
interface CopyOptions extends RequestOptions {
|
|
712
|
+
/**
|
|
713
|
+
* `true` for a move: the source is vacated and the precedents of other formulas follow.
|
|
714
|
+
* Defaults to what the snapshot was captured with.
|
|
715
|
+
*/
|
|
716
|
+
isCut?: boolean;
|
|
388
717
|
/**
|
|
389
718
|
* When pasting from a smaller range to a larger range copy will repeat or 'wallpaper' the
|
|
390
719
|
* source values.
|
|
@@ -409,10 +738,57 @@ export declare namespace ICalcGrid {
|
|
|
409
738
|
*/
|
|
410
739
|
coords?: string[];
|
|
411
740
|
}
|
|
741
|
+
/**
|
|
742
|
+
* Options for {@link ICalcGrid.setInputs}.
|
|
743
|
+
*/
|
|
744
|
+
/**
|
|
745
|
+
* What every request to the grid carries.
|
|
746
|
+
*/
|
|
747
|
+
/** Options for {@link ICalcGrid.remove}. */
|
|
748
|
+
interface RemoveOptions extends RequestOptions {
|
|
749
|
+
/**
|
|
750
|
+
* Treat the arrays the range touches as Clear Contents does: a fixed (array-entered) one is set
|
|
751
|
+
* aside and put back once the cells are empty, the spilled cells of an anchor inside go now,
|
|
752
|
+
* and one the range cuts through becomes a spill error. A typed delete does not.
|
|
753
|
+
*
|
|
754
|
+
* @defaultValue `false`
|
|
755
|
+
*/
|
|
756
|
+
clearArrays?: boolean;
|
|
757
|
+
}
|
|
758
|
+
interface RequestOptions {
|
|
759
|
+
/**
|
|
760
|
+
* The id of the transaction snapshot the request is made at: the commit the calling
|
|
761
|
+
* operation is, or will be. Echoed on {@link Results.commitId}; the resolution's coords are
|
|
762
|
+
* addresses in this snapshot.
|
|
763
|
+
*/
|
|
764
|
+
commitId?: string;
|
|
765
|
+
/**
|
|
766
|
+
* The savepoint the request is made under (`ITransaction.getSavepointId`): the root's id for
|
|
767
|
+
* a root-level write, a nested transaction's own for a nested one. What the engine's copy of
|
|
768
|
+
* the maps is keyed by, so a second write under the same savepoint updates the copy the
|
|
769
|
+
* first one made; and what a nested rollback names. Omit outside a transaction.
|
|
770
|
+
*/
|
|
771
|
+
cloneKey?: string;
|
|
772
|
+
}
|
|
773
|
+
interface SetInputsOptions extends RequestOptions {
|
|
774
|
+
/**
|
|
775
|
+
* The formula being set is array-entered (Ctrl+Shift+Enter) over this extent: it anchors a
|
|
776
|
+
* `fixed` block whose result is fitted to these coordinates rather than spilling from them.
|
|
777
|
+
* Applies to the formula entry at the extent's top-left.
|
|
778
|
+
*/
|
|
779
|
+
arrayFixed?: IRange.Coords;
|
|
780
|
+
}
|
|
781
|
+
/**
|
|
782
|
+
* What a restore tells the grid. See {@link ICalcGrid.revert}.
|
|
783
|
+
*/
|
|
784
|
+
interface RevertOptions {
|
|
785
|
+
/** The snapshot the model restored to. */
|
|
786
|
+
commitId: string;
|
|
787
|
+
}
|
|
412
788
|
/**
|
|
413
789
|
* Options for shifting the calc graph.
|
|
414
790
|
*/
|
|
415
|
-
interface ShiftOptions {
|
|
791
|
+
interface ShiftOptions extends RequestOptions {
|
|
416
792
|
/**
|
|
417
793
|
* The range to shift.
|
|
418
794
|
*/
|
|
@@ -421,41 +797,44 @@ export declare namespace ICalcGrid {
|
|
|
421
797
|
* The direction to shift.
|
|
422
798
|
*/
|
|
423
799
|
direction: IRange.Direction;
|
|
800
|
+
}
|
|
801
|
+
/**
|
|
802
|
+
* What {@link Events.onInputsWritten} reports of a write.
|
|
803
|
+
*/
|
|
804
|
+
interface InputsWritten {
|
|
805
|
+
/** Names the grid's inputs as this write left them; a later write names new ones. */
|
|
806
|
+
inputsId: string;
|
|
424
807
|
/**
|
|
425
|
-
*
|
|
426
|
-
*
|
|
427
|
-
* @defaultValue false
|
|
428
|
-
*
|
|
429
|
-
* @remarks
|
|
430
|
-
* This allows for a 0-1 clone on write.
|
|
808
|
+
* The array extents the write set aside, moved or put back - a shift carries a fixed array
|
|
809
|
+
* with the cells - or `null` when it touched none.
|
|
431
810
|
*/
|
|
432
|
-
|
|
811
|
+
arrays: readonly IRange.Coords[] | null;
|
|
433
812
|
}
|
|
434
813
|
/**
|
|
435
814
|
* Events for {@link ICalcGrid}.
|
|
436
815
|
*/
|
|
437
816
|
interface Events {
|
|
438
817
|
/**
|
|
439
|
-
*
|
|
818
|
+
* The engine answered: values, formulas and status for the cells `results` names. What it
|
|
819
|
+
* carries is already in this grid's maps when this is called.
|
|
440
820
|
*/
|
|
441
|
-
|
|
821
|
+
onComplete?(source: ICalcGrid, results: ICalcGrid.Results): void;
|
|
442
822
|
/**
|
|
443
|
-
*
|
|
823
|
+
* What a formula read answers changed without a write of the model's: the engine attached
|
|
824
|
+
* a compiled block, or rewrote a formula's text (`textChanged`).
|
|
444
825
|
*/
|
|
445
|
-
|
|
826
|
+
onFormulasChanged?(source: ICalcGrid, textChanged: boolean): void;
|
|
446
827
|
/**
|
|
447
|
-
*
|
|
448
|
-
|
|
449
|
-
onComplete?(source: ICalcGrid, results: ICalcGrid.Results): void;
|
|
450
|
-
/**
|
|
451
|
-
* Called when the calculation engine is unable to calc.
|
|
828
|
+
* A write the model made landed in this grid: an entry, a removal, a shift, a fill or a copy.
|
|
829
|
+
* Never a seed, never an answer of the engine's.
|
|
452
830
|
*
|
|
453
831
|
* @remarks
|
|
454
|
-
*
|
|
832
|
+
* Called synchronously, inside the operation the write is part of, so what a listener writes
|
|
833
|
+
* lands in the same commit.
|
|
455
834
|
*/
|
|
456
|
-
|
|
835
|
+
onInputsWritten?(source: ICalcGrid, written: ICalcGrid.InputsWritten): void;
|
|
457
836
|
/**
|
|
458
|
-
*
|
|
837
|
+
* The grid has closed: its owner closed, or the calculation it belongs to did.
|
|
459
838
|
*/
|
|
460
839
|
onClose?(source: ICalcGrid): void;
|
|
461
840
|
}
|
|
@@ -478,7 +857,7 @@ export declare namespace ICalcGrid {
|
|
|
478
857
|
* {@link ITypes.FormulaArrayKind | kinds} of array formula it is.
|
|
479
858
|
*
|
|
480
859
|
* @remarks
|
|
481
|
-
* See {@link
|
|
860
|
+
* See {@link IWorksheet.JSON.formulaArray} for what does and does not earn an entry.
|
|
482
861
|
*/
|
|
483
862
|
formulaArray?: IRange.JSONReferenceTuple<ITypes.FormulaArrayKind>[];
|
|
484
863
|
/**
|
|
@@ -488,19 +867,35 @@ export declare namespace ICalcGrid {
|
|
|
488
867
|
* For built-in functions volatile will be auto added.
|
|
489
868
|
*/
|
|
490
869
|
volatile?: IRange.Address[];
|
|
870
|
+
/**
|
|
871
|
+
* The rows the grid's owner hides, ascending and disjoint; absent for none.
|
|
872
|
+
*/
|
|
873
|
+
hiddenRows?: readonly RunCoords[];
|
|
874
|
+
/**
|
|
875
|
+
* The columns the grid's owner hides, as {@link hiddenRows}.
|
|
876
|
+
*/
|
|
877
|
+
hiddenColumns?: readonly RunCoords[];
|
|
878
|
+
/**
|
|
879
|
+
* Whether the grid's owner is filtered ({@link ICalcGrid.setFiltered}); absent for not.
|
|
880
|
+
*/
|
|
881
|
+
filtered?: boolean;
|
|
882
|
+
/**
|
|
883
|
+
* The grid's size ({@link ICalcGrid.resize}), read by a seed; absent to keep the one it has. A
|
|
884
|
+
* save does not write it: the owner keeps its own.
|
|
885
|
+
*/
|
|
886
|
+
entireCoords?: IRange.Coords;
|
|
491
887
|
}
|
|
492
888
|
/**
|
|
493
|
-
* Options for {@link ICalcGrid.
|
|
889
|
+
* Options for {@link ICalcGrid.seed}.
|
|
494
890
|
*/
|
|
495
|
-
interface
|
|
891
|
+
interface SeedOptions {
|
|
496
892
|
/**
|
|
497
|
-
*
|
|
498
|
-
*
|
|
499
|
-
* here; native loads pass nothing.
|
|
893
|
+
* Recalculate everything the seed carries rather than trusting its values: the seed comes
|
|
894
|
+
* from an owner the engine was not following (design §13.13, the openpyxl rule).
|
|
500
895
|
*
|
|
501
|
-
* @
|
|
896
|
+
* @defaultValue `false`
|
|
502
897
|
*/
|
|
503
|
-
|
|
898
|
+
full?: boolean;
|
|
504
899
|
}
|
|
505
900
|
interface ToJSONOptions {
|
|
506
901
|
/**
|
|
@@ -509,14 +904,6 @@ export declare namespace ICalcGrid {
|
|
|
509
904
|
* @defaultValue `false`
|
|
510
905
|
*/
|
|
511
906
|
includeData?: boolean;
|
|
512
|
-
/**
|
|
513
|
-
* A structural transform applied to each formula as it serializes (once per formula
|
|
514
|
-
* block, on the compiled AST) — how the xlsx writer applies its legacy spellings
|
|
515
|
-
* (see io-xlsx `LegacyFormula.ts`).
|
|
516
|
-
*
|
|
517
|
-
* @see {@link ICalculation.FormulaTransform}
|
|
518
|
-
*/
|
|
519
|
-
formulaTransform?: ICalculation.FormulaTransform;
|
|
520
907
|
}
|
|
521
908
|
}
|
|
522
909
|
//# sourceMappingURL=ICalcGrid.d.ts.map
|