@sheetxl/sdk 0.8.0-beta.10 → 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/browser/esm/B7aUIvgUjncMMD_i.mjs +394 -0
- package/browser/esm/{Cgd5BnM3hg9RyUel.mjs → BFagR2JeWs74iAG3.mjs} +1 -1
- package/browser/esm/BGOFfpxr2jPIdqmV.mjs +40 -0
- package/browser/esm/{CdLZWVcH8cncBUPJ.mjs → BLoUBId2xZpXAK_H.mjs} +110 -261
- package/browser/esm/BMyDRQ716j79h_bH.mjs +86 -0
- package/browser/esm/{o8MFgcVXns987D6_.mjs → BVDiOXGMc5_FMGfy.mjs} +6 -6
- package/browser/esm/{BzLfNyc6OOShIErH.mjs → BjkCiv5Jz6WYKZeu.mjs} +2 -2
- package/browser/esm/{De175LygU7ot4nQm.mjs → BkBhLS0l6z8sxI6D.mjs} +2 -2
- package/browser/esm/{Y79I7Sm8kjaYexhf.mjs → BnG31I6Oj_HEtSPS.mjs} +1 -1
- package/browser/esm/BoV6zPBnfqCBCqZ7.mjs +7729 -0
- package/browser/esm/{CYyv6uGjo10ig5FP.mjs → BpgskG1Er_lGQ_yS.mjs} +1 -1
- package/browser/esm/{C9B0djuUarfNdoj0.mjs → BtvLTTfSBdAKplVG.mjs} +1 -1
- package/browser/esm/{zqJOaweiXE9D8RY1.mjs → C16ycKja6zG0crV_.mjs} +27687 -38788
- package/browser/esm/C2VbEI_XVAoseAwa.mjs +1552 -0
- package/browser/esm/{Btg43M1Bf-ENDreu.mjs → C4MqfLn9Dm-l3OIk.mjs} +1 -1
- package/browser/esm/C5E6zSGAALWf61n4.mjs +199 -0
- package/browser/esm/{CjsUGJEQSbGjnH6R.mjs → CHU6iu_WGlm7fLET.mjs} +1 -1
- package/browser/esm/{DhKkrCVASZ6Isvz6.mjs → CQYjO777cmAznUzK.mjs} +1 -1
- package/browser/esm/{D4uVlrG0xEFctsSM.mjs → CU3DmJ-YnVVrC1_k.mjs} +285 -67
- package/browser/esm/{ClB5ix51roQOpZEr.mjs → CV5EGEjG5_-CPpP0.mjs} +2877 -2067
- package/browser/esm/{CSx9ed1JOs7K5BXO.mjs → CaB7J-xgfKO2uAkG.mjs} +2 -2
- package/browser/esm/CkxWugaJFjDGZNZ-.mjs +12 -0
- package/browser/esm/{CZ5oa92wZEAXebgk.mjs → ClPfI4lODvCece29.mjs} +32 -22
- package/browser/esm/ClbvFbFzFzXLBKNN.mjs +193 -0
- package/browser/esm/{Cqr3knDsBvoVZ6MN.mjs → Ctjb0SsxV4K4MMqG.mjs} +2 -2
- package/browser/esm/{Bk7xxbdDpa7-sIwd.mjs → D5np__Jb1euAyaLw.mjs} +2 -2
- package/browser/esm/{Di58Ji1n--3Mgc_2.mjs → DEiPS3Dr-s4fPbVZ.mjs} +1 -1
- package/browser/esm/DLLE0FZNsKxbBzRn.mjs +128 -0
- package/browser/esm/{BqskM7wA8oPfFQue.mjs → DWNzqw7DUKwoxjri.mjs} +2 -2
- package/browser/esm/{BEAY9XgKNx-bakXW.mjs → Dlmig06rIo7cInRk.mjs} +1 -1
- package/browser/esm/DvAaxH6z_tGvrRzl.mjs +5132 -0
- package/browser/esm/Dyq_ivuHvlXLwPCl.mjs +12831 -0
- package/browser/esm/{Dtoyt8q5RyGAlxCp.mjs → PcHFjNzQsE54POri.mjs} +1 -1
- 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 +999 -850
- package/browser/esm/nvU0ClAbf0g94YBK.mjs +1695 -0
- package/browser/esm/{BcHmrKHwMMOlzc9_.mjs → zlLuW405RSguy4Kn.mjs} +34 -34
- package/licenses/dependencies.txt +75 -75
- package/node/esm/{CnSQ7MTXAUAyBOoS.mjs → 2Kihw_-5lVTEnwMa.mjs} +285 -64
- package/node/esm/857CIBgQgGpnqrXk.mjs +199 -0
- package/node/esm/B084DssTcdBheTp_.mjs +7966 -0
- package/node/esm/B21JjOLghRoDOrkx.mjs +134 -0
- package/node/esm/{CImNvdz1iP-lUlro.mjs → BIRq1kT7lLRzns9t.mjs} +181 -181
- package/node/esm/{CD9wbvufChVYYkrI.mjs → BIwObuhTJYf0jpUa.mjs} +2 -2
- package/node/esm/Bbf1Pm9Gk7YpLTvg.mjs +12 -0
- package/node/esm/{B6D7sSetrcOWLsKj.mjs → BqiexuA89caYnAPz.mjs} +1 -1
- package/node/esm/{BH1v-E4Ro3bR7Znw.mjs → BrCKGFRsX_ezFJ4B.mjs} +151 -302
- package/node/esm/CCN5vD410obwdz38.mjs +405 -0
- package/node/esm/{Bh4dv6tMjXX3X4nI.mjs → CDHdgJXH2vS71WMc.mjs} +1 -1
- package/node/esm/{DCplLG93GfTs1vNw.mjs → CGp6VZL-gZa9Uezx.mjs} +1 -1
- package/node/esm/{B9ljpEIZg6wOTzRE.mjs → CNCNJNg890KdgkWh.mjs} +1 -1
- package/node/esm/{Bqd62L8KFgdS0Vou.mjs → CZICGK_ss0HoGHCP.mjs} +2 -2
- package/node/esm/{D7MfcID2Wf6l6VpC.mjs → CZiqiay42tFTrLI4.mjs} +1 -1
- package/node/esm/{Bsx9uijd4X_SKV3L.mjs → CdJHUJSBRHZoryPe.mjs} +41 -41
- package/node/esm/Ct3h15sCus4Tgt6M.mjs +1762 -0
- package/node/esm/CwePQwTILHHjGDkZ.mjs +1033 -0
- package/node/esm/{CUUoseJmFsCf82bb.mjs → CzXT00vrQa1_gvW9.mjs} +1 -1
- package/node/esm/{C6ZXsNyLXI6zA63X.mjs → D1TKBVmoKGAXf37B.mjs} +9 -9
- package/node/esm/{BN9j8V9gCExMjVtJ.mjs → D2KBymQJd1XhpeQD.mjs} +1 -1
- package/node/esm/{MiU4rDOiocmJ-9Ry.mjs → D6e2z7eZpxOJXHc7.mjs} +1 -1
- package/node/esm/{BtuY37FumvLE7EBo.mjs → D8zEN-6ZdDqDvTxM.mjs} +156 -146
- 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/{DMD12JUh7HJw2-jl.mjs → D_t5AUxSm7_icjzq.mjs} +1 -1
- package/node/esm/Db0v7zXNnyjBIjjI.mjs +372 -0
- package/node/esm/{CUQi5ZtMO02nhG0W.mjs → De2IONBxQhz-Qbyh.mjs} +1 -1
- 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/{DefYISWfdZJFx57m.mjs → cGwrLA1RCE-WhJ7w.mjs} +1 -1
- package/node/esm/index.mjs +2657 -65664
- package/node/esm/mFiBSM7XgBHV9AY7.mjs +13010 -0
- package/node/esm/{DdFgXl-Ux2cMBTs_.mjs → yavzZOiZW_EjG9lE.mjs} +1 -1
- package/package.json +6 -7
- package/resources/contents.json +120 -0
- package/resources/fonts/arial-bold-italic.hinted.json +125 -0
- package/resources/fonts/arial-bold-italic.metrics.json +13 -13
- 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 +12 -12
- 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 +13 -13
- 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 +12 -12
- 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 +2 -2
- 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 +1 -1
- 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 +2 -2
- 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 +1 -1
- 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 +26 -26
- 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 +19 -19
- 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 +23 -23
- 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 +18 -18
- package/resources/fonts/cambria-regular.rows.json +9 -0
- package/resources/fonts/contents.json +280 -0
- package/resources/fonts/courier-new-bold-italic.hinted.json +11 -0
- package/resources/fonts/courier-new-bold-italic.metrics.json +12 -12
- 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 +12 -12
- 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 +12 -12
- 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 +12 -12
- 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 +15 -15
- 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 +12 -12
- 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 +16 -16
- 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 +16 -16
- package/resources/fonts/times-new-roman-regular.rows.json +9 -0
- package/resources/locales/de/model.msg.json +87 -9
- package/resources/locales/en/model.msg.json +88 -10
- package/types/scripting-api.json +10636 -8021
- package/types/scripting-enums.json +181 -43
- package/types/scripting.d.ts +15886 -8459
- 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/border/IBorders.d.ts +16 -0
- package/types/src/calculation/Calculation.d.ts +93 -363
- package/types/src/calculation/FormulaLiterals.d.ts +2 -1
- package/types/src/calculation/FormulaText.d.ts +18 -2
- package/types/src/calculation/ICalculation.d.ts +37 -9
- package/types/src/calculation/INamedFormulasCollection.d.ts +4 -0
- package/types/src/calculation/NamedFormulaCollection.d.ts +190 -15
- package/types/src/calculation/_FormulaToolkit.d.ts +9 -0
- package/types/src/calculation/_TableExtent.d.ts +60 -0
- package/types/src/calculation/compiler/CompilerUtils.d.ts +17 -0
- package/types/src/calculation/compiler/ParserUtils.d.ts +16 -0
- package/types/src/calculation/compiler/Types.d.ts +1 -1
- 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 +21 -2
- package/types/src/calculation/executor/CalcExecutorUtils.d.ts +6 -0
- package/types/src/calculation/formula/Formula.d.ts +9 -0
- package/types/src/calculation/formula/FormulaBlock.d.ts +6 -0
- package/types/src/calculation/formula/IFormulaBlock.d.ts +16 -0
- package/types/src/calculation/formula/LambdaValue.d.ts +5 -3
- package/types/src/calculation/functions/FunctionDeclarations.d.ts +5 -1
- package/types/src/calculation/functions/expandDeclaration.d.ts +15 -0
- package/types/src/calculation/functions/initializeFunctions.d.ts +0 -12
- package/types/src/calculation/grid/CalcGrid.d.ts +40 -4
- package/types/src/calculation/grid/CalcGridBackend.d.ts +30 -0
- package/types/src/calculation/grid/CalcGridProxy.d.ts +2 -0
- package/types/src/calculation/grid/CalcGridUtils.d.ts +8 -1
- package/types/src/calculation/grid/FormulaHost.d.ts +51 -6
- package/types/src/calculation/grid/ICalcGrid.d.ts +35 -6
- package/types/src/calculation/grid/_CalcRequest.d.ts +11 -1
- package/types/src/calculation/grid/_CellValueRun.d.ts +21 -0
- package/types/src/calculation/spatial/FormulaSpatialValue.d.ts +27 -2
- package/types/src/calculation/state/CalcScope.d.ts +15 -6
- package/types/src/calculation/state/CalcState.d.ts +10 -0
- package/types/src/calculation/state/CalculationContext.d.ts +2 -2
- package/types/src/calculation/state/IContextContainer.d.ts +12 -0
- 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 +256 -7
- package/types/src/cell/ICellHeader.d.ts +7 -6
- package/types/src/cell/ICellProtection.d.ts +1 -1
- 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 +322 -55
- package/types/src/cellRange/ICellRanges.d.ts +8 -3
- package/types/src/chart/Chart.d.ts +217 -15
- package/types/src/chart/ChartCollection.d.ts +7 -2
- package/types/src/chart/IChart.d.ts +1921 -35
- package/types/src/chart/IChartCollection.d.ts +27 -2
- 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 +4 -0
- 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/RTree.d.ts +116 -36
- package/types/src/collections/SparseGrid.d.ts +6 -3
- package/types/src/collections/SpatialMap.d.ts +2 -8
- package/types/src/collections/SpatialMap3D.d.ts +2 -0
- package/types/src/collections/index.d.ts +1 -1
- package/types/src/comment/Comment.d.ts +32 -9
- package/types/src/comment/IComment.d.ts +41 -4
- package/types/src/comment/_NoteBox.d.ts +19 -2
- package/types/src/condition/AnchoredConditional.d.ts +28 -2
- package/types/src/condition/ICondition.d.ts +3 -2
- package/types/src/conditionalFormat/ConditionalFormat.d.ts +9 -3
- package/types/src/conditionalFormat/IConditionalFormat.d.ts +4 -3
- 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 +1 -1
- package/types/src/dataValidation/DataValidationCollection.d.ts +4 -1
- package/types/src/dataValidation/IDataValidation.d.ts +1 -1
- package/types/src/dataValidation/IDataValidationCollection.d.ts +24 -0
- 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/IExternalBook.d.ts +1 -1
- package/types/src/fill/IFill.d.ts +7 -0
- package/types/src/fill/IFillable.d.ts +47 -0
- package/types/src/fill/IStroke.d.ts +15 -1
- package/types/src/fill/PaintUtils.d.ts +22 -0
- package/types/src/fill/index.d.ts +2 -0
- package/types/src/font/AdvanceBuilder.d.ts +34 -0
- package/types/src/font/AdvanceTable.d.ts +128 -14
- 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 +53 -2
- 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 +191 -61
- package/types/src/font/IFontCollection.d.ts +20 -14
- package/types/src/font/IFontStyle.d.ts +207 -0
- package/types/src/font/TableFileAdvanceBuilder.d.ts +9 -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 +1 -3
- 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 +5 -0
- package/types/src/group/GroupMovableCollection.d.ts +4 -0
- package/types/src/history/IHistory.d.ts +19 -2
- package/types/src/hyperlink/IHyperlink.d.ts +7 -1
- package/types/src/index.d.ts +3 -0
- package/types/src/license/LicenseManager.d.ts +21 -0
- package/types/src/license/_Utils.d.ts +18 -1
- package/types/src/license/runtime.browser.d.ts +5 -0
- package/types/src/license/runtime.node.d.ts +10 -0
- package/types/src/listener/IListener.d.ts +14 -2
- package/types/src/listener/ListenerEmitter.d.ts +11 -3
- package/types/src/movable/IMovable.d.ts +28 -15
- package/types/src/movable/IMovableCollection.d.ts +1 -1
- package/types/src/movable/Movable.d.ts +12 -1
- package/types/src/movable/MovableCollection.d.ts +7 -3
- package/types/src/movable/_InsertableCollection.d.ts +16 -5
- package/types/src/named/INamed.d.ts +30 -0
- package/types/src/named/INamedCollection.d.ts +2 -2
- package/types/src/named/NamedCollection.d.ts +16 -4
- package/types/src/numFmt/NumberFormatParser.d.ts +5 -0
- package/types/src/outline/IOutline.d.ts +1 -1
- package/types/src/outline/Outline.d.ts +2 -2
- package/types/src/picture/IPicture.d.ts +98 -1
- package/types/src/picture/Picture.d.ts +15 -7
- package/types/src/pivot/IPivotTable.d.ts +2 -2
- package/types/src/pivot/PivotTable.d.ts +5 -5
- package/types/src/primitives/ReferenceRange.d.ts +2 -2
- 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 +2 -2
- package/types/src/protection/IProtection.d.ts +6 -0
- package/types/src/protection/PasswordHasher.d.ts +13 -0
- 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/IModule.d.ts +3 -3
- package/types/src/scripting/IScript.d.ts +2 -2
- package/types/src/scripting/ITypedFunction.d.ts +1 -1
- package/types/src/scripting/declarations.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 +6 -34
- package/types/src/selection/IRangeSelection.d.ts +4 -4
- package/types/src/selection/ItemSelection.d.ts +49 -0
- package/types/src/selection/MovableSelection.d.ts +11 -30
- package/types/src/selection/RangeSelection.d.ts +4 -4
- package/types/src/selection/index.d.ts +3 -0
- package/types/src/shape/IShape.d.ts +2 -1
- package/types/src/shape/IShapeStyle.d.ts +5 -31
- package/types/src/shape/ITextBoxStyle.d.ts +85 -0
- package/types/src/shape/ShapeStyleUtils.d.ts +13 -1
- package/types/src/shape/_Connectors.d.ts +9 -9
- package/types/src/shape/_ShapeStyle.d.ts +9 -0
- package/types/src/shape/index.d.ts +1 -0
- package/types/src/sheet/CellRegion.d.ts +37 -3
- package/types/src/sheet/IOpaqueSheet.d.ts +46 -0
- package/types/src/sheet/ISheet.d.ts +81 -1078
- package/types/src/sheet/IWorksheet.d.ts +1514 -0
- package/types/src/sheet/{ISheetCollection.d.ts → IWorksheetCollection.d.ts} +37 -12
- package/types/src/sheet/NamedCellRange.d.ts +2 -2
- package/types/src/sheet/NamedRange.d.ts +2 -2
- package/types/src/sheet/OpaqueSheet.d.ts +114 -0
- package/types/src/sheet/SheetCell.d.ts +24 -27
- package/types/src/sheet/SheetRange.d.ts +42 -11
- package/types/src/sheet/SheetRanges.d.ts +12 -10
- package/types/src/sheet/{Sheet.d.ts → Worksheet.d.ts} +510 -144
- 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 +11 -1
- package/types/src/sheet/_CopyUtils.d.ts +13 -6
- package/types/src/sheet/_IgnoredErrors.d.ts +46 -0
- package/types/src/sheet/_InvalidSheetRange.d.ts +3 -2
- package/types/src/sheet/_Kinds.d.ts +34 -0
- package/types/src/sheet/_Labels.d.ts +38 -0
- package/types/src/sheet/_RangeStateSweep.d.ts +2 -3
- package/types/src/sheet/_ScalarListFactory.d.ts +1 -1
- package/types/src/sheet/_SheetAutoFillUtils.d.ts +3 -3
- package/types/src/sheet/_SheetAutoFitUtils.d.ts +3 -3
- 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 +1 -1
- package/types/src/sheet/_SheetFilterUtils.d.ts +6 -6
- package/types/src/sheet/_SheetIntents.d.ts +32 -14
- package/types/src/sheet/_SheetMessages.d.ts +1 -1
- package/types/src/sheet/_SheetMutations.d.ts +7 -8
- package/types/src/sheet/_SheetSortUtils.d.ts +2 -2
- package/types/src/sheet/_SheetStateReader.d.ts +18 -0
- package/types/src/sheet/_SheetStateTypes.d.ts +60 -1
- package/types/src/sheet/_SheetUtils.d.ts +20 -19
- package/types/src/sheet/_WatchAnchor.d.ts +15 -2
- 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/style/SheetCellStyle.d.ts +67 -86
- package/types/src/sheet/style/SheetDirectStyle.d.ts +3 -3
- package/types/src/sheet/style/SheetNamedStyle.d.ts +2 -0
- package/types/src/sheet/style/_DigitWidth.d.ts +7 -0
- package/types/src/sheet/style/_Resolvers.d.ts +3 -2
- package/types/src/sheet/style/_StyleUtils.d.ts +7 -43
- package/types/src/sheetHeader/ISheetHeader.d.ts +2 -2
- package/types/src/sheetHeader/SheetCellHeader.d.ts +2 -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 +7 -6
- package/types/src/sheetHeader/_HeaderUtils.d.ts +2 -3
- package/types/src/sheetProtection/{ISheetProtection.d.ts → IWorksheetProtection.d.ts} +28 -28
- 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} +168 -61
- 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 +2 -2
- package/types/src/sort/ISort.d.ts +35 -5
- package/types/src/style/ICellStyle.d.ts +56 -44
- package/types/src/style/_BuiltInStyleDefs.d.ts +4 -3
- package/types/src/table/AnchoredTable.d.ts +23 -7
- package/types/src/table/AutoTable.d.ts +1 -1
- package/types/src/table/ITable.d.ts +32 -19
- package/types/src/table/_NamedTable.d.ts +3 -3
- package/types/src/table/_NamedTableSource.d.ts +2 -2
- package/types/src/text/IText.d.ts +4 -51
- package/types/src/text/TextEngine.d.ts +34 -0
- package/types/src/text/TextFrame.d.ts +4 -2
- package/types/src/text/TextRun.d.ts +3 -2
- 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/richtext/IRichText.d.ts +16 -2
- package/types/src/text/richtext/index.d.ts +0 -1
- package/types/src/theme/ITheme.d.ts +108 -7
- package/types/src/theme/ThemeCollection.d.ts +5 -0
- package/types/src/theme/_OfficeFontScheme.d.ts +8 -0
- package/types/src/transaction/ITransaction.d.ts +20 -1
- package/types/src/transaction/Transaction.d.ts +8 -1
- package/types/src/transaction/_BatchHandle.d.ts +118 -0
- package/types/src/type/AbstractCollection.d.ts +4 -13
- package/types/src/type/ICollection.d.ts +17 -4
- package/types/src/type/IProperties.d.ts +1 -1
- package/types/src/utils/_CSSUtils.d.ts +1 -1
- package/types/src/wasm/_fontsWasm.d.ts +7 -0
- package/types/src/wasm/_sdkWasm.d.ts +1 -1
- package/types/src/wasm/fontsWasm.d.ts +32 -0
- package/types/src/wasm/index.d.ts +1 -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 +6 -3
- package/types/src/workbook/IWorkbook.d.ts +229 -38
- package/types/src/workbook/Workbook.d.ts +77 -22
- 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 +2 -2
- package/types/src/workbook/_WorkbookMessages.d.ts +5 -0
- package/types/src/workbookView/IWorkbookView.d.ts +82 -0
- package/types/src/workbookView/WorkbookView.d.ts +21 -0
- package/browser/esm/BbSmt62FpFIpoVzu.mjs +0 -392
- package/browser/esm/BgcZ-CoTbMfmyDJL.mjs +0 -412
- package/browser/esm/DOMHmhYzPcLVcpAW.mjs +0 -7
- package/browser/esm/DUvUK61b2_4pf4tG.mjs +0 -484
- package/node/esm/CCouEwT37f08qO3V.mjs +0 -7
- package/node/esm/CT0CN82y0_Qgoryk.mjs +0 -7568
- package/node/esm/DHUADiCmxNQS1ARz.mjs +0 -417
- package/node/esm/Ds0d8zXzmgOu3MGx.mjs +0 -403
- package/types/src/chart/_ChartXml.d.ts +0 -70
- package/types/src/collections/OverlappingRangeIterator.d.ts +0 -87
- package/types/src/collections/_RangeSweep.d.ts +0 -97
- 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/print/IPrint.d.ts +0 -212
- package/types/src/sheet/SheetCollection.d.ts +0 -29
- package/types/src/sheetProtection/SheetProtection.d.ts +0 -51
- package/types/src/sheetView/SheetView.d.ts +0 -122
- package/types/src/text/richtext/IStyledFont.d.ts +0 -330
|
@@ -4,6 +4,7 @@ import { ITypes, ICollection, IProperties } from '../type';
|
|
|
4
4
|
import { IWorkbook } from '../workbook';
|
|
5
5
|
import { IListener } from '../listener';
|
|
6
6
|
import { ITransaction } from '../transaction';
|
|
7
|
+
import { BatchHandle } from '../transaction/_BatchHandle';
|
|
7
8
|
import { IResource, IResourceCollection } from '../resource';
|
|
8
9
|
import { IStringCollection } from '../string';
|
|
9
10
|
import { IProtection } from '../protection';
|
|
@@ -28,6 +29,9 @@ import { IChartCollection } from '../chart';
|
|
|
28
29
|
import { IPicture } from '../picture';
|
|
29
30
|
import { InsertableCollection } from '../movable/_InsertableCollection';
|
|
30
31
|
import { IPivotTable, IPivotTableCollection } from '../pivot';
|
|
32
|
+
import { IDataTable, IDataTableCollection } from '../dataTable';
|
|
33
|
+
import { AnomalyFindings, AnomalySet, AnomalySource, RoleSource } from './_Anomalies';
|
|
34
|
+
import { CellKind } from './_Kinds';
|
|
31
35
|
import { ICell } from '../cell';
|
|
32
36
|
import { ICellRange, ICellRegions, ICellRanges } from '../cellRange';
|
|
33
37
|
import { ICellStyle, IStyleCollection } from '../style';
|
|
@@ -44,15 +48,19 @@ import { ProtectedRange } from '../protectedRange/ProtectedRange';
|
|
|
44
48
|
import { Comment } from '../comment/Comment';
|
|
45
49
|
import { NoteMovable } from '../comment/NoteMovable';
|
|
46
50
|
import { NoteLayout } from '../comment/_NoteBox';
|
|
47
|
-
import {
|
|
51
|
+
import { IWorksheetProtection } from '../sheetProtection';
|
|
48
52
|
import { IOutline } from '../outline';
|
|
53
|
+
import { IPageLayout } from '../print';
|
|
49
54
|
import { ISheetHeader } from '../sheetHeader';
|
|
50
|
-
import {
|
|
55
|
+
import { IWorksheetView } from '../sheetView';
|
|
56
|
+
import { IWorksheet } from './IWorksheet';
|
|
51
57
|
import { ISheet } from './ISheet';
|
|
52
58
|
import { ScalarListFactory } from './_ScalarListFactory';
|
|
53
59
|
import { ListenerAnchor } from './_ListenerAnchor';
|
|
54
60
|
import { WatchAnchor } from './_WatchAnchor';
|
|
61
|
+
import { ShiftIntent } from './_SheetIntents';
|
|
55
62
|
import { EventCategory, SheetEvents } from './_SheetEvents';
|
|
63
|
+
import { SheetChangeDetails } from './_SheetChangeEvent';
|
|
56
64
|
import { SheetHeader } from '../sheetHeader/SheetHeader';
|
|
57
65
|
import { SheetDirectStyle } from './style/SheetDirectStyle';
|
|
58
66
|
import { IUsedRangeSpatialMap } from './style/UsedRangeSpatialMap';
|
|
@@ -61,37 +69,43 @@ import { CellBuffer } from './_CellBuffer';
|
|
|
61
69
|
import { SheetReadContext, GetTypedRangeOptions, OverFlowsAndStops } from './_SheetStateReader';
|
|
62
70
|
import { AutoFillProjection, AutoFillPreviewCache } from './_SheetAutoFillUtils';
|
|
63
71
|
import { ProtectionCheck } from './_SheetCoords';
|
|
64
|
-
import {
|
|
72
|
+
import { WorksheetProtection } from '../sheetProtection/WorksheetProtection';
|
|
65
73
|
import { Outline } from '../outline/Outline';
|
|
74
|
+
import { PageLayout } from '../print/PageLayout';
|
|
66
75
|
import { SheetCellOptions } from './SheetCell';
|
|
67
76
|
import { ICalculation } from '../calculation';
|
|
68
77
|
import { ICalcGrid } from '../calculation/grid';
|
|
69
78
|
import * as _SheetFilterUtils from './_SheetFilterUtils';
|
|
79
|
+
/** The font colors a workbook writes its roles in, and a key that compares by content. */
|
|
80
|
+
interface WorkbookRoleColors {
|
|
81
|
+
readonly key: string;
|
|
82
|
+
readonly colors: ReadonlySet<string>;
|
|
83
|
+
}
|
|
70
84
|
/**
|
|
71
|
-
* Implementation of {@link
|
|
85
|
+
* Implementation of {@link IWorksheet}.
|
|
72
86
|
*/
|
|
73
87
|
/**
|
|
74
|
-
* The internal capability surface a {@link
|
|
75
|
-
* extracted operation modules. It carries ONLY genuinely-internal operations; the public `
|
|
76
|
-
* API is reached via `
|
|
88
|
+
* The internal capability surface a {@link Worksheet} vends to `SheetRange`/`SheetRanges` and (later)
|
|
89
|
+
* extracted operation modules. It carries ONLY genuinely-internal operations; the public `IWorksheet`
|
|
90
|
+
* API is reached via `getWorksheet()` and never duplicated here. The type is derived from the concrete
|
|
77
91
|
* `_internal` object so it can never drift from the implementation.
|
|
78
92
|
* @internal
|
|
79
93
|
*/
|
|
80
|
-
export type
|
|
94
|
+
export type IWorksheetInternal = ReturnType<Worksheet['_getInternal']>;
|
|
81
95
|
/**
|
|
82
|
-
* The context a {@link
|
|
96
|
+
* The context a {@link Worksheet} vends to `_SheetMutations` (the shift/insert/delete engine). Derived
|
|
83
97
|
* from the concrete `_buildMutationCtx` object so it can never drift from the implementation.
|
|
84
98
|
* @internal
|
|
85
99
|
*/
|
|
86
|
-
export type SheetMutationContext = ReturnType<
|
|
100
|
+
export type SheetMutationContext = ReturnType<Worksheet['_buildMutationCtx']>;
|
|
87
101
|
/**
|
|
88
|
-
* The context a {@link
|
|
102
|
+
* The context a {@link Worksheet} vends to `_SheetCoords` (address/coord resolution). Derived from the
|
|
89
103
|
* concrete `_buildCoordCtx` object so it can never drift from the implementation.
|
|
90
104
|
* @internal
|
|
91
105
|
*/
|
|
92
|
-
export type SheetCoordContext = ReturnType<
|
|
106
|
+
export type SheetCoordContext = ReturnType<Worksheet['_buildCoordCtx']>;
|
|
93
107
|
/**
|
|
94
|
-
* What an operation hands {@link
|
|
108
|
+
* What an operation hands {@link Worksheet._commitWithDirectives} beyond its selection and options.
|
|
95
109
|
* @internal
|
|
96
110
|
*/
|
|
97
111
|
export interface CommitDirectives {
|
|
@@ -102,7 +116,7 @@ export interface CommitDirectives {
|
|
|
102
116
|
/** Handed to the commit. */
|
|
103
117
|
commit?: ITransaction.StoreOperationOptions;
|
|
104
118
|
}
|
|
105
|
-
/** The sheet's legacy drawing as it holds it: {@link
|
|
119
|
+
/** The sheet's legacy drawing as it holds it: {@link IWorksheet.LegacyDrawingJSON} with each image resolved to its {@link IResource}, so paste and `.sxl` keep working. */
|
|
106
120
|
interface LegacyDrawing {
|
|
107
121
|
xml: string;
|
|
108
122
|
images?: LegacyDrawingImage[];
|
|
@@ -112,8 +126,8 @@ interface LegacyDrawingImage {
|
|
|
112
126
|
id: string;
|
|
113
127
|
resource: IResource;
|
|
114
128
|
}
|
|
115
|
-
export declare class
|
|
116
|
-
protected _options:
|
|
129
|
+
export declare class Worksheet implements IWorksheet {
|
|
130
|
+
protected _options: IWorksheet.ConstructorOptions;
|
|
117
131
|
protected _id: string;
|
|
118
132
|
/** The store-issued key for this sheet's state record. Distinct from `_id`, the document-level id (formula scope / JSON). */
|
|
119
133
|
protected _stateId: string;
|
|
@@ -128,7 +142,12 @@ export declare class Sheet implements ISheet {
|
|
|
128
142
|
* close before an earlier one lands. See {@link _onRootTransactionClose}.
|
|
129
143
|
*/
|
|
130
144
|
protected _movableSelectionAtCommitEnd: Map<ITransaction.ICommit, readonly string[]>;
|
|
131
|
-
|
|
145
|
+
/**
|
|
146
|
+
* What calculation passes realized while a root was open, told to listener nodes once it
|
|
147
|
+
* closes. See {@link _realizeCalcedValues}.
|
|
148
|
+
*/
|
|
149
|
+
protected _heldPassRanges: IRange.Coords[] | null;
|
|
150
|
+
protected _emitter: ListenerEmitter<IWorksheet, IWorksheet.IListeners>;
|
|
132
151
|
protected _initializing: boolean;
|
|
133
152
|
protected _starting: Promise<void> | null;
|
|
134
153
|
protected _strings: IStringCollection;
|
|
@@ -139,7 +158,22 @@ export declare class Sheet implements ISheet {
|
|
|
139
158
|
protected _ownStyles: boolean;
|
|
140
159
|
protected _stylesRemoveListener: IListener.Remove;
|
|
141
160
|
protected _languageRemoveListener?: IListener.Remove;
|
|
161
|
+
protected _fontsRemoveListener?: IListener.Remove;
|
|
142
162
|
protected _regionalRemoveListener?: IListener.Remove;
|
|
163
|
+
/** Autofits that measured with a stand-in while a face was loading; taken again when it lands. */
|
|
164
|
+
/** Fits owed once the faces have loaded: held before they ran (`ran` false), or run against a stand-in. */
|
|
165
|
+
protected _pendingFits: {
|
|
166
|
+
ranges: readonly IRange.Coords[];
|
|
167
|
+
options?: ICellRange.AutoFitOptions;
|
|
168
|
+
ran: boolean;
|
|
169
|
+
}[];
|
|
170
|
+
/** Set while fits are owed to the text engine's arrival; see {@link _autoFit}. */
|
|
171
|
+
private _engineWait;
|
|
172
|
+
/**
|
|
173
|
+
* Whether the load-time row fit was skipped (`disableLoadAutoFit`): the stored heights are the
|
|
174
|
+
* file's, so no row was measured with a stand-in and a font arriving has none to correct.
|
|
175
|
+
*/
|
|
176
|
+
protected _loadFitSkipped: boolean;
|
|
143
177
|
protected _stylesListener: IStyleCollection.IListeners;
|
|
144
178
|
protected _normalStyleRanged: IProperties.ICellRanged<ICellStyle.Properties>;
|
|
145
179
|
protected _resources: IResourceCollection;
|
|
@@ -153,6 +187,8 @@ export declare class Sheet implements ISheet {
|
|
|
153
187
|
protected _legacyDrawingHF: LegacyDrawing | null;
|
|
154
188
|
/** The sheet's pivot tables, held as read for the same reason. */
|
|
155
189
|
protected _pivotTableCollection: IPivotTableCollection;
|
|
190
|
+
/** The sheet's data tables, carried as read. */
|
|
191
|
+
protected _dataTableCollection: IDataTableCollection;
|
|
156
192
|
/**
|
|
157
193
|
* Anchored items whose delete this sheet announced itself.
|
|
158
194
|
*
|
|
@@ -225,17 +261,24 @@ export declare class Sheet implements ISheet {
|
|
|
225
261
|
protected _entireCoordsCache: IRange.Coords | null;
|
|
226
262
|
protected _entireRangeCache: ICellRange | null;
|
|
227
263
|
protected _isDataColumn: boolean;
|
|
228
|
-
protected _view:
|
|
229
|
-
protected _viewListener:
|
|
264
|
+
protected _view: IWorksheetView;
|
|
265
|
+
protected _viewListener: IWorksheetView.IListeners;
|
|
230
266
|
protected _viewRemoveListener: IListener.Remove;
|
|
231
|
-
protected _protection:
|
|
267
|
+
protected _protection: WorksheetProtection;
|
|
232
268
|
protected _protectionListener: IProtection.IListeners;
|
|
233
269
|
protected _protectionRemoveListener: IListener.Remove;
|
|
234
270
|
protected _tabColor: IColor | null;
|
|
235
|
-
/** VBA binding identity; carried from the file, never minted. See {@link
|
|
271
|
+
/** VBA binding identity; carried from the file, never minted. See {@link IWorksheet.getCodeName}. */
|
|
236
272
|
protected _codeName: string | null;
|
|
273
|
+
/** See {@link IWorksheet.JSON.baseColSize}. `null` is the default, 8. */
|
|
274
|
+
protected _baseColSize: number | null;
|
|
237
275
|
protected _outline: Outline;
|
|
276
|
+
protected _pageLayout: PageLayout;
|
|
238
277
|
protected _conditionalFormatCalculation: boolean;
|
|
278
|
+
/** Carried from `sheetPr`; see {@link IWorksheet.isTransitionFormulaEvaluation} and its neighbors. */
|
|
279
|
+
/** Carried from the file. See {@link IDataValidationCollection.getSettings}. */
|
|
280
|
+
protected _validationSettings: Readonly<IDataValidationCollection.Settings>;
|
|
281
|
+
protected _sheetPr: Pick<IWorksheet.JSON, 'transitionFormulaEvaluation' | 'transitionFormulaEntry' | 'excludeFromPublishing' | 'syncScroll'>;
|
|
239
282
|
/**
|
|
240
283
|
* Modules this sheet owns — see {@link getModules}.
|
|
241
284
|
*
|
|
@@ -273,19 +316,20 @@ export declare class Sheet implements ISheet {
|
|
|
273
316
|
protected _defaultColWidthCache: number | null;
|
|
274
317
|
protected _defaultRowHeightCache: number | null;
|
|
275
318
|
protected _defaultFontBoundsCache: Readonly<Size> | null;
|
|
319
|
+
protected _defaultFontsVersion: number;
|
|
276
320
|
/**
|
|
277
321
|
* The internal capability object handed to `SheetRange`/`SheetRanges` (and future extracted
|
|
278
322
|
* modules) so they can drive the sheet without touching its (non-public) methods or the concrete
|
|
279
323
|
* class shape. The closures reach `Sheet`'s protected members because they are lexically inside the
|
|
280
|
-
* class. Public `
|
|
324
|
+
* class. Public `IWorksheet` API is reached via `getWorksheet()` (never duplicated here). As internal logic
|
|
281
325
|
* moves out to modules, only the relevant closure repoints — consumers never change.
|
|
282
|
-
* The `
|
|
326
|
+
* The `IWorksheetInternal` type is derived from this object (see below) so it can never drift.
|
|
283
327
|
* @internal
|
|
284
328
|
*/
|
|
285
329
|
private readonly _internal;
|
|
286
|
-
/** @internal Access the internal capability object. See {@link
|
|
330
|
+
/** @internal Access the internal capability object. See {@link IWorksheetInternal}. */
|
|
287
331
|
_getInternal(): {
|
|
288
|
-
getSheet: () =>
|
|
332
|
+
getSheet: () => IWorksheet;
|
|
289
333
|
getState: () => Readonly<State>;
|
|
290
334
|
getCalcGrid: () => ICalcGrid;
|
|
291
335
|
isDataColumn: () => boolean;
|
|
@@ -327,11 +371,11 @@ export declare class Sheet implements ISheet {
|
|
|
327
371
|
beginCommit: (options?: ITransaction.StoreOperationOptions | string) => ITransaction;
|
|
328
372
|
recordSelection: (trans: ITransaction, selection: Partial<IRangeSelection.Coords>, options?: Pick<ICellRange.OperationOptions, "autoSelect" | "autoSelectRestore"> | null, undo?: Partial<IRangeSelection.Coords> | null, axis?: IRange.Axis) => void;
|
|
329
373
|
commitWithDirectives: (trans: ITransaction, selection: Partial<IRangeSelection.Coords> | null, options?: ICellRange.OperationOptions, directives?: CommitDirectives) => void;
|
|
330
|
-
autoFit: (ranges: readonly IRange.Coords[], options?: ICellRange.AutoFitOptions) => void;
|
|
374
|
+
autoFit: (ranges: readonly IRange.Coords[], options?: ICellRange.AutoFitOptions, holdWhileLoading?: boolean) => void;
|
|
331
375
|
getBestFit: (range: IRange.Coords, options?: ICellRange.BestFitOptions) => Size;
|
|
332
|
-
invalidateRendering: () => void;
|
|
376
|
+
invalidateRendering: (axes?: IRange.AxisSelection | null) => void;
|
|
333
377
|
addListenerNode: (ranges: readonly IRange.Coords[], listener: ICellRange.Listener, options?: ICellRange.ListenerOptions) => IListener.Remove;
|
|
334
|
-
addWatch: (coords: IRange.Coords, formula: ICalculation.IFormula | string, handlers: WatchAnchor.Handlers, origin?: IRange.CellCoords, options?:
|
|
378
|
+
addWatch: (coords: IRange.Coords, formula: ICalculation.IFormula | string, handlers: WatchAnchor.Handlers, origin?: IRange.CellCoords, options?: WatchAnchor.Options) => IListener.Remove;
|
|
335
379
|
surroundingRegion: (range: IRange.Coords, options?: ICellRange.GetSurroundingOptions) => IRange.Coords;
|
|
336
380
|
getTraverseRegion: (cell: IRange.CellCoords, axis: IRange.Axis, reverse: boolean) => IRange.Coords | null;
|
|
337
381
|
sort: (coords: Readonly<IRange.Coords>, options?: boolean | ISort.Options[] | (ISort.RangeOptions & ITransaction.OperationOptions)) => IRange.Coords;
|
|
@@ -340,6 +384,7 @@ export declare class Sheet implements ISheet {
|
|
|
340
384
|
applyFilterRuns: (runs: _SheetFilterUtils.FilterRuns, options?: ITransaction.OperationOptions) => void;
|
|
341
385
|
filteredTables: () => ITable[];
|
|
342
386
|
setHyperlinks: (ranges: readonly ISpatialMap.Entry<IHyperlink.Update>[], defaultUpdate?: IHyperlink.Update, options?: ITransaction.OperationOptions) => void;
|
|
387
|
+
setErrorIgnored: (ranges: readonly IRange.Coords[], check: ICell.ErrorCheck, ignored: boolean, options?: ITransaction.OperationOptions) => void;
|
|
343
388
|
setComments: (ranges: readonly ISpatialMap.Entry<IComment.Update>[], comments?: IComment.Update | IComment.JSON, options?: ITransaction.OperationOptions) => void;
|
|
344
389
|
getBoundsAtCoords: (coords: IRange.Coords) => Bounds;
|
|
345
390
|
extendRange: (direction: IRange.Direction, cell: IRange.CellCoords) => Readonly<IRange.Coords>;
|
|
@@ -357,6 +402,96 @@ export declare class Sheet implements ISheet {
|
|
|
357
402
|
* @internal
|
|
358
403
|
*/
|
|
359
404
|
protected _getReadCtx(): SheetReadContext;
|
|
405
|
+
/** This sheet's first-pass findings and what they were derived from; see {@link _getAnomalyFindings}. */
|
|
406
|
+
protected _anomalyFindings: {
|
|
407
|
+
state: Readonly<State>;
|
|
408
|
+
values: unknown;
|
|
409
|
+
formulas: unknown;
|
|
410
|
+
epoch: number;
|
|
411
|
+
roleColors: string;
|
|
412
|
+
findings: AnomalyFindings;
|
|
413
|
+
} | null;
|
|
414
|
+
/**
|
|
415
|
+
* The error checks' findings on this sheet, each ranked alone. Derived on the first read that
|
|
416
|
+
* asks for it and kept until the sheet's state, its formulas or its values move, or the
|
|
417
|
+
* workbook's role colors change.
|
|
418
|
+
* @internal
|
|
419
|
+
*/
|
|
420
|
+
protected _getAnomalyFindings(roleColors?: WorkbookRoleColors): AnomalyFindings;
|
|
421
|
+
/** This worksheet and the workbook's others, very hidden included. */
|
|
422
|
+
protected _getWorkbookSheets(): Worksheet[];
|
|
423
|
+
/** The workbook's role colors and the sheets' sets they were the union of; see {@link _getWorkbookRoleColors}. */
|
|
424
|
+
protected _workbookRoleColors: (WorkbookRoleColors & {
|
|
425
|
+
sheets: readonly ReadonlySet<string>[];
|
|
426
|
+
}) | null;
|
|
427
|
+
/**
|
|
428
|
+
* The font colors any sheet writes a role in, the union `styleRole` reads. `key` changes only
|
|
429
|
+
* when the union does, so an edit that recolors nothing keeps the other sheets' findings.
|
|
430
|
+
* @internal
|
|
431
|
+
*/
|
|
432
|
+
protected _getWorkbookRoleColors(): WorkbookRoleColors;
|
|
433
|
+
/** The anomalies map and the workbook's findings it was ranked against; see {@link _getAnomalies}. */
|
|
434
|
+
protected _anomalies: {
|
|
435
|
+
workbook: readonly AnomalyFindings[];
|
|
436
|
+
map: ISpatialMap<AnomalySet>;
|
|
437
|
+
} | null;
|
|
438
|
+
/**
|
|
439
|
+
* Where the error checks fire on this sheet (`ICellRange.Feature.Anomalies`).
|
|
440
|
+
*
|
|
441
|
+
* @remarks
|
|
442
|
+
* A finding's rank depends on how often it repeats across the workbook, so the first read on
|
|
443
|
+
* any sheet derives every sheet's findings; each is kept until its own sheet moves, and this map
|
|
444
|
+
* until any of them does. Nothing on a write or a calculation pays for it.
|
|
445
|
+
* @internal
|
|
446
|
+
*/
|
|
447
|
+
protected _getAnomalies(): ISpatialMap<AnomalySet>;
|
|
448
|
+
/** What the role layer is read from: this sheet's content and formulas, as they are now. */
|
|
449
|
+
protected _roleSource(): RoleSource;
|
|
450
|
+
/** The roles map and what it was derived from; see {@link _getRoles}. */
|
|
451
|
+
protected _roles: {
|
|
452
|
+
state: Readonly<State>;
|
|
453
|
+
values: unknown;
|
|
454
|
+
formulas: unknown;
|
|
455
|
+
epoch: number;
|
|
456
|
+
map: ISpatialMap<ICell.Role>;
|
|
457
|
+
} | null;
|
|
458
|
+
/**
|
|
459
|
+
* Each cell's job (`ICellRange.Feature.Role`), derived on the first read that asks for it and
|
|
460
|
+
* kept, like {@link _getAnomalies}, until the sheet moves.
|
|
461
|
+
* @internal
|
|
462
|
+
*/
|
|
463
|
+
protected _getRoles(): ISpatialMap<ICell.Role>;
|
|
464
|
+
/** What the checks read of this sheet, as it is now. */
|
|
465
|
+
protected _anomalySource(): AnomalySource;
|
|
466
|
+
/** The role colors and what they were derived from; see {@link _getRoleColors}. */
|
|
467
|
+
protected _roleColors: {
|
|
468
|
+
state: Readonly<State>;
|
|
469
|
+
values: unknown;
|
|
470
|
+
formulas: unknown;
|
|
471
|
+
epoch: number;
|
|
472
|
+
colors: ReadonlySet<string>;
|
|
473
|
+
} | null;
|
|
474
|
+
/**
|
|
475
|
+
* The font colors this sheet writes its roles in, for another sheet's `styleRole` check. Derived
|
|
476
|
+
* on the first read and kept, like {@link _getAnomalies}, until the sheet moves.
|
|
477
|
+
*/
|
|
478
|
+
protected _getRoleColors(): ReadonlySet<string>;
|
|
479
|
+
/** The kinds map and what it was derived from; see {@link _getKinds}. */
|
|
480
|
+
protected _kinds: {
|
|
481
|
+
state: Readonly<State>;
|
|
482
|
+
values: unknown;
|
|
483
|
+
epoch: number;
|
|
484
|
+
map: ISpatialMap<CellKind>;
|
|
485
|
+
} | null;
|
|
486
|
+
/**
|
|
487
|
+
* What each cell holds, by kind (`ICellRange.Feature.Kind`).
|
|
488
|
+
*
|
|
489
|
+
* @remarks
|
|
490
|
+
* One scan of the values, derived on the first read that asks for it and kept until the sheet's
|
|
491
|
+
* state or its values move, as {@link _getAnomalies} is.
|
|
492
|
+
* @internal
|
|
493
|
+
*/
|
|
494
|
+
protected _getKinds(): ISpatialMap<CellKind>;
|
|
360
495
|
/**
|
|
361
496
|
* The sheet's grid: the synchronous half of the calculation service for this sheet
|
|
362
497
|
* (DESIGN-CALC-SERVICE §13.23, §13.24), holding everything a cell contains - the formulas, the
|
|
@@ -374,7 +509,7 @@ export declare class Sheet implements ISheet {
|
|
|
374
509
|
/** `false` for a snapshot sheet, which holds its source's grid and must not close it. */
|
|
375
510
|
protected _ownsCalcGrid: boolean;
|
|
376
511
|
/** @internal Cached mutation-engine context. See {@link SheetMutationContext}. */
|
|
377
|
-
protected _mutationCtx: ReturnType<
|
|
512
|
+
protected _mutationCtx: ReturnType<Worksheet['_buildMutationCtx']> | null;
|
|
378
513
|
/** @internal Access the mutation context (cached). See {@link SheetMutationContext}. */
|
|
379
514
|
protected _getMutationCtx(): SheetMutationContext;
|
|
380
515
|
/**
|
|
@@ -386,10 +521,11 @@ export declare class Sheet implements ISheet {
|
|
|
386
521
|
protected _buildMutationCtx(): {
|
|
387
522
|
readonly rowHeaders: SheetHeader;
|
|
388
523
|
readonly columnHeaders: SheetHeader;
|
|
524
|
+
readonly pageLayout: PageLayout;
|
|
389
525
|
readonly rowHeadersShiftCallback: SheetHeader.ShiftCallback | null;
|
|
390
526
|
readonly columnHeadersShiftCallback: SheetHeader.ShiftCallback | null;
|
|
391
527
|
getEntireCoords: () => IRange.Coords;
|
|
392
|
-
getView: () =>
|
|
528
|
+
getView: () => IWorksheetView;
|
|
393
529
|
beginCommit: (options?: ITransaction.StoreOperationOptions | string) => ITransaction;
|
|
394
530
|
updateState: (updateState?: Partial<State>, options?: ITransaction.OperationOptions | string) => State;
|
|
395
531
|
getState: () => Readonly<State>;
|
|
@@ -407,6 +543,7 @@ export declare class Sheet implements ISheet {
|
|
|
407
543
|
takeShiftedNoteModels: () => Map<IMovable, ISpatialMap.Entry<MovableEntry>> | null;
|
|
408
544
|
markColumnHeaderTableNames: () => void;
|
|
409
545
|
commitWithDirectives: (trans: ITransaction, selection: Partial<IRangeSelection.Coords> | null, options?: ICellRange.OperationOptions, directives?: CommitDirectives) => void;
|
|
546
|
+
recordAutoFit: (trans: ITransaction, ranges: readonly IRange.Coords[], autoFit: boolean | ICellRange.AutoFitOptions) => void;
|
|
410
547
|
readonly styles: IStyleCollection;
|
|
411
548
|
getRangedEntries: <T, E = T>(spatial: ISpatialQuery, ranges: readonly IRange.Coords[], options?: GetTypedRangeOptions<T, E>, spatialSort?: boolean) => T[];
|
|
412
549
|
createSparseBuilder: (options?: ICellRange.SparseBuilderOptions, sheetRange?: ICellRange | null, internal?: InternalTupleUpdate) => ICellRange.SparseBuilder;
|
|
@@ -415,12 +552,13 @@ export declare class Sheet implements ISheet {
|
|
|
415
552
|
fill: IUsedRangeSpatialMap<SheetDirectStyle>;
|
|
416
553
|
content: IUsedRangeSpatialMap<SheetDirectStyle>;
|
|
417
554
|
}) => IUsedRangeSpatialMap<SheetDirectStyle>;
|
|
418
|
-
autoFit: (ranges: readonly IRange.Coords[], options?: ICellRange.AutoFitOptions) => void;
|
|
555
|
+
autoFit: (ranges: readonly IRange.Coords[], options?: ICellRange.AutoFitOptions, holdWhileLoading?: boolean) => void;
|
|
419
556
|
recordAutoFormat: (trans: ITransaction) => void;
|
|
420
557
|
recordSkipProtectionCheck: (trans: ITransaction) => void;
|
|
421
558
|
recordFreezePanes: (trans: ITransaction, before: IRange.CellCoords, after: IRange.CellCoords) => void;
|
|
559
|
+
recordShift: (trans: ITransaction, kind: IWorksheet.ShiftKind, axis: IRange.Axis, ranges: readonly IRange.Coords[]) => void;
|
|
422
560
|
recordSelection: (trans: ITransaction, selection: Partial<IRangeSelection.Coords>, options?: Pick<ICellRange.OperationOptions, "autoSelect" | "autoSelectRestore"> | null, undo?: Partial<IRangeSelection.Coords> | null, axis?: IRange.Axis) => void;
|
|
423
|
-
notify: (key: keyof
|
|
561
|
+
notify: (key: keyof IWorksheet.IListeners) => void | Promise<any>;
|
|
424
562
|
getRange: (address?: ICellRange.Address, options?: ICellRange.GetRangeOptions) => ICellRange;
|
|
425
563
|
getSelection: () => IRangeSelection;
|
|
426
564
|
getMerges: (ranges: readonly IRange.Coords[], ignoreHidden?: boolean | IRange.Axis) => IRange.Coords[];
|
|
@@ -432,10 +570,10 @@ export declare class Sheet implements ISheet {
|
|
|
432
570
|
readonly lists: ScalarListFactory;
|
|
433
571
|
readonly cellOptions: SheetCellOptions;
|
|
434
572
|
readonly runtime: IRuntime;
|
|
435
|
-
getProtection: () =>
|
|
573
|
+
getProtection: () => IWorksheetProtection;
|
|
436
574
|
hasRangedEntries: (key: keyof State, range: IRange.Coords) => boolean;
|
|
437
575
|
rangeStateIterator: (options: RangeState.IteratorOptions) => RangeState.Iterator;
|
|
438
|
-
recordChange: (trans: ITransaction, category: EventCategory, ranges: readonly IRange.Coords[] | null | undefined) => void;
|
|
576
|
+
recordChange: (trans: ITransaction, category: EventCategory, ranges: readonly IRange.Coords[] | null | undefined, shifts?: readonly ShiftIntent[]) => void;
|
|
439
577
|
loadComments: (map: IAnchoredMap<IComment, IComment.JSON>, refs: IRange.JSONReference<IComment.JSON>[]) => IAnchoredMap<IComment, IComment.JSON>;
|
|
440
578
|
newCommentJSON: (modifiers: IComment.Modifiers) => IComment.JSON;
|
|
441
579
|
notifyCommentsChange: () => void;
|
|
@@ -453,7 +591,7 @@ export declare class Sheet implements ISheet {
|
|
|
453
591
|
/** @internal Single-entry memo behind `autoFill({ preview })`. See {@link AutoFillPreviewCache}. */
|
|
454
592
|
protected _autoFillPreviewCache: AutoFillPreviewCache | null;
|
|
455
593
|
/** @internal Cached coord-resolution context. See {@link SheetCoordContext}. */
|
|
456
|
-
protected _coordCtx: ReturnType<
|
|
594
|
+
protected _coordCtx: ReturnType<Worksheet['_buildCoordCtx']> | null;
|
|
457
595
|
/** @internal Access the coord-resolution context (cached). See {@link SheetCoordContext}. */
|
|
458
596
|
protected _getCoordCtx(): SheetCoordContext;
|
|
459
597
|
/**
|
|
@@ -463,7 +601,7 @@ export declare class Sheet implements ISheet {
|
|
|
463
601
|
*/
|
|
464
602
|
protected _buildCoordCtx(): {
|
|
465
603
|
readonly internal: {
|
|
466
|
-
getSheet: () =>
|
|
604
|
+
getSheet: () => IWorksheet;
|
|
467
605
|
getState: () => Readonly<State>;
|
|
468
606
|
getCalcGrid: () => ICalcGrid;
|
|
469
607
|
isDataColumn: () => boolean;
|
|
@@ -505,11 +643,11 @@ export declare class Sheet implements ISheet {
|
|
|
505
643
|
beginCommit: (options?: ITransaction.StoreOperationOptions | string) => ITransaction;
|
|
506
644
|
recordSelection: (trans: ITransaction, selection: Partial<IRangeSelection.Coords>, options?: Pick<ICellRange.OperationOptions, "autoSelect" | "autoSelectRestore"> | null, undo?: Partial<IRangeSelection.Coords> | null, axis?: IRange.Axis) => void;
|
|
507
645
|
commitWithDirectives: (trans: ITransaction, selection: Partial<IRangeSelection.Coords> | null, options?: ICellRange.OperationOptions, directives?: CommitDirectives) => void;
|
|
508
|
-
autoFit: (ranges: readonly IRange.Coords[], options?: ICellRange.AutoFitOptions) => void;
|
|
646
|
+
autoFit: (ranges: readonly IRange.Coords[], options?: ICellRange.AutoFitOptions, holdWhileLoading?: boolean) => void;
|
|
509
647
|
getBestFit: (range: IRange.Coords, options?: ICellRange.BestFitOptions) => Size;
|
|
510
|
-
invalidateRendering: () => void;
|
|
648
|
+
invalidateRendering: (axes?: IRange.AxisSelection | null) => void;
|
|
511
649
|
addListenerNode: (ranges: readonly IRange.Coords[], listener: ICellRange.Listener, options?: ICellRange.ListenerOptions) => IListener.Remove;
|
|
512
|
-
addWatch: (coords: IRange.Coords, formula: ICalculation.IFormula | string, handlers: WatchAnchor.Handlers, origin?: IRange.CellCoords, options?:
|
|
650
|
+
addWatch: (coords: IRange.Coords, formula: ICalculation.IFormula | string, handlers: WatchAnchor.Handlers, origin?: IRange.CellCoords, options?: WatchAnchor.Options) => IListener.Remove;
|
|
513
651
|
surroundingRegion: (range: IRange.Coords, options?: ICellRange.GetSurroundingOptions) => IRange.Coords;
|
|
514
652
|
getTraverseRegion: (cell: IRange.CellCoords, axis: IRange.Axis, reverse: boolean) => IRange.Coords | null;
|
|
515
653
|
sort: (coords: Readonly<IRange.Coords>, options?: boolean | ISort.Options[] | (ISort.RangeOptions & ITransaction.OperationOptions)) => IRange.Coords;
|
|
@@ -518,6 +656,7 @@ export declare class Sheet implements ISheet {
|
|
|
518
656
|
applyFilterRuns: (runs: _SheetFilterUtils.FilterRuns, options?: ITransaction.OperationOptions) => void;
|
|
519
657
|
filteredTables: () => ITable[];
|
|
520
658
|
setHyperlinks: (ranges: readonly ISpatialMap.Entry<IHyperlink.Update>[], defaultUpdate?: IHyperlink.Update, options?: ITransaction.OperationOptions) => void;
|
|
659
|
+
setErrorIgnored: (ranges: readonly IRange.Coords[], check: ICell.ErrorCheck, ignored: boolean, options?: ITransaction.OperationOptions) => void;
|
|
521
660
|
setComments: (ranges: readonly ISpatialMap.Entry<IComment.Update>[], comments?: IComment.Update | IComment.JSON, options?: ITransaction.OperationOptions) => void;
|
|
522
661
|
getBoundsAtCoords: (coords: IRange.Coords) => Bounds;
|
|
523
662
|
extendRange: (direction: IRange.Direction, cell: IRange.CellCoords) => Readonly<IRange.Coords>;
|
|
@@ -536,32 +675,34 @@ export declare class Sheet implements ISheet {
|
|
|
536
675
|
getEntireCoords: () => IRange.Coords;
|
|
537
676
|
getNamedFormulas: () => import('..').INamedFormulasCollection;
|
|
538
677
|
getNames: () => INamedCollection;
|
|
539
|
-
getProtection: () =>
|
|
678
|
+
getProtection: () => IWorksheetProtection;
|
|
540
679
|
getName: () => string;
|
|
541
680
|
resolveRange: (coord: ICellRange.Address) => ICellRange | null | undefined;
|
|
542
681
|
};
|
|
543
|
-
constructor(options?:
|
|
682
|
+
constructor(options?: IWorksheet.ConstructorOptions);
|
|
544
683
|
/** @internal Logic lives in `_SheetCoords.createRange`. */
|
|
545
684
|
protected _createRange(coords: Readonly<IRange.FixableCoords> | string, getOptions?: ICellRange.GetRangeOptions, readOnly?: string | null): ICellRange;
|
|
546
685
|
/** @internal Logic lives in `_SheetCoords.createRanges`. */
|
|
547
686
|
protected _createRanges(coords: readonly (IRange.Coords | string | ICellRange)[], getOptions?: ICellRange.GetRangeOptions, readOnly?: string | null): ICellRanges;
|
|
548
|
-
/** {@inheritDoc
|
|
687
|
+
/** {@inheritDoc IWorksheet.getRange} */
|
|
549
688
|
getRange(address?: ICellRange.Address, options?: ICellRange.GetRangeOptions): ICellRange;
|
|
550
|
-
/** {@inheritDoc
|
|
689
|
+
/** {@inheritDoc IWorksheet.getCell} */
|
|
551
690
|
getCell(address?: ICell.Address): ICell;
|
|
552
|
-
/** {@inheritDoc
|
|
691
|
+
/** {@inheritDoc IWorksheet.getRange} */
|
|
553
692
|
getRanges(address: ICellRanges.Address, options?: ICellRange.GetRangeOptions): ICellRanges;
|
|
554
|
-
/** {@inheritDoc
|
|
693
|
+
/** {@inheritDoc IWorksheet.getEntireRange} */
|
|
555
694
|
getEntireRange(options?: ICellRange.GetRangeOptions): ICellRange;
|
|
556
695
|
protected _getEntireCoords(): IRange.Coords;
|
|
557
|
-
/** {@inheritDoc
|
|
696
|
+
/** {@inheritDoc IWorksheet.getEntireCoords} */
|
|
558
697
|
getEntireCoords(): IRange.Coords;
|
|
559
|
-
/** {@inheritDoc
|
|
698
|
+
/** {@inheritDoc IWorksheet.getUsedRange} */
|
|
560
699
|
getUsedRange(options?: ICellRange.GetRangeOptions): ICellRange | null;
|
|
561
|
-
/** {@inheritDoc
|
|
700
|
+
/** {@inheritDoc IWorksheet.getStats} */
|
|
562
701
|
getStats(options?: ICellRange.GetStatsOptions): IRangeStats;
|
|
563
|
-
/** {@inheritDoc
|
|
702
|
+
/** {@inheritDoc IWorksheet.getRegions} */
|
|
564
703
|
getRegions(features?: ICellRange.Feature | readonly ICellRange.Feature[], options?: ICellRange.GetRegionsOptions): ICellRegions;
|
|
704
|
+
/** {@inheritDoc IWorksheet.getAnomalies} */
|
|
705
|
+
getAnomalies(options?: ICellRange.GetAnomaliesOptions): ICellRegions;
|
|
565
706
|
/** @internal Logic lives in `_SheetCoords.cellToCoords`. */
|
|
566
707
|
protected _cellToCoords(address: ICell.Address): IRange.CellCoords;
|
|
567
708
|
/** @internal Logic lives in `_SheetCoords.validateCoords`. */
|
|
@@ -683,6 +824,8 @@ export declare class Sheet implements ISheet {
|
|
|
683
824
|
protected _autoFillRange(template: IRange.Coords, destination: IRange.Coords): IRange.Coords;
|
|
684
825
|
/** @internal Logic lives in `_SheetMutations.autoFillShrink`. */
|
|
685
826
|
protected _autoFillShrink(template: IRange.Coords, destination: IRange.Coords, direction: IRange.Direction, options?: ICellRange.AutoFillOptions): boolean;
|
|
827
|
+
/** @internal Logic lives in `_SheetMutations.setErrorIgnored`. */
|
|
828
|
+
protected _setErrorIgnored(ranges: readonly IRange.Coords[], check: ICell.ErrorCheck, ignored: boolean, options?: ITransaction.OperationOptions): void;
|
|
686
829
|
/** @internal Logic lives in `_SheetMutations.setHyperlinks`. */
|
|
687
830
|
protected _setHyperlinks(ranges: readonly ISpatialMap.Entry<IHyperlink.Update>[], defaultUpdate?: IHyperlink.Update, // we do this because updateTuples may update each
|
|
688
831
|
options?: ITransaction.OperationOptions): void;
|
|
@@ -725,6 +868,12 @@ export declare class Sheet implements ISheet {
|
|
|
725
868
|
* @internal
|
|
726
869
|
*/
|
|
727
870
|
protected _realizeCalcedValues(results: ICalcGrid.Results): void;
|
|
871
|
+
/**
|
|
872
|
+
* Tell listener nodes what calculation passes realized. A pass belongs to no commit, so the
|
|
873
|
+
* event carries no transaction id.
|
|
874
|
+
* @internal
|
|
875
|
+
*/
|
|
876
|
+
protected _notifyPassToListenerNodes(ranges: readonly IRange.Coords[]): void;
|
|
728
877
|
/**
|
|
729
878
|
* Land the promoted half of a pass's results - number formats and sizes - in the commit that
|
|
730
879
|
* entered the formulas they belong to.
|
|
@@ -744,10 +893,32 @@ export declare class Sheet implements ISheet {
|
|
|
744
893
|
* the references the formula inherits one from, resolved here against the entering commit's
|
|
745
894
|
* snapshot ({@link _resolveInheritedFormats}), or else the format its functions supplied.
|
|
746
895
|
*
|
|
896
|
+
* One pass can answer for several entering commits: writes made before the engine runs are
|
|
897
|
+
* calculated together, and the pass names only the last of them. Each one still formats and
|
|
898
|
+
* fits under its own directives and against its own snapshot ({@link _enteredSince}), but the
|
|
899
|
+
* writes land in the target, since an amend reaches only the snapshot it names.
|
|
900
|
+
*
|
|
747
901
|
* @internal
|
|
748
902
|
*/
|
|
749
903
|
protected _promoteCalcResults(target: ITransaction.ICommit, results: ICalcGrid.Results): void;
|
|
750
|
-
/**
|
|
904
|
+
/**
|
|
905
|
+
* The commits a pass targeting `target` answers for on this sheet, newest first, each with the
|
|
906
|
+
* cells it entered that the pass realized and no newer one of them re-entered.
|
|
907
|
+
*
|
|
908
|
+
* @remarks
|
|
909
|
+
* Walks back from the target to the first commit already resolved for this sheet: anything
|
|
910
|
+
* older was answered by that commit's pass. Bounded by {@link _MAX_PROMOTE_WALK}, since the walk
|
|
911
|
+
* runs on every pass.
|
|
912
|
+
*
|
|
913
|
+
* @internal
|
|
914
|
+
*/
|
|
915
|
+
protected _enteredSince(target: ITransaction.ICommit, bounds: IRange.Coords): {
|
|
916
|
+
commit: ITransaction.ICommit;
|
|
917
|
+
entered: IRange.Coords[];
|
|
918
|
+
}[];
|
|
919
|
+
/** How far back a pass looks for entering commits it answers for. */
|
|
920
|
+
private static readonly _MAX_PROMOTE_WALK;
|
|
921
|
+
/** {@inheritDoc IWorksheet.calculate} */
|
|
751
922
|
calculate(full?: boolean): Promise<ICalculation.Status>;
|
|
752
923
|
/** @internal */
|
|
753
924
|
protected _calculate(ranges: ICellRanges.Coords, options?: ICalculation.CalculateOptions): void;
|
|
@@ -766,21 +937,46 @@ export declare class Sheet implements ISheet {
|
|
|
766
937
|
/** @internal */
|
|
767
938
|
protected _getMerges(ranges: readonly IRange.Coords[], ignoreHidden?: boolean | IRange.Axis): IRange.Coords[];
|
|
768
939
|
/** @internal */
|
|
769
|
-
protected _clone():
|
|
940
|
+
protected _clone(): IWorksheet;
|
|
941
|
+
/**
|
|
942
|
+
* A read-only sheet as this sheet was at a commit, or `null` when the store no longer has the
|
|
943
|
+
* commit or the sheet did not exist at it.
|
|
944
|
+
*
|
|
945
|
+
* @remarks
|
|
946
|
+
* Built on demand and not kept: it copies no cells, only the state record and a grid pinned
|
|
947
|
+
* to the commit's record.
|
|
948
|
+
* @internal
|
|
949
|
+
*/
|
|
950
|
+
_snapshotAt(commitId: string): IWorksheet | null;
|
|
951
|
+
/** The snapshot sheet `_clone` and `_snapshotAt` build, over a given state and grid. */
|
|
952
|
+
private _cloneOver;
|
|
770
953
|
/** @internal */
|
|
771
954
|
protected _getSnapshot(coordsFrom: readonly IRange.Coords[], optionsMark?: ICellRange.CopyOptions, getTransactionId?: () => string): ICellRange.ISnapshot;
|
|
772
955
|
/**
|
|
773
956
|
* Copy all items at a sheetRange.
|
|
774
957
|
* @internal
|
|
775
958
|
`*/
|
|
776
|
-
protected _copyRange(sheetFrom:
|
|
959
|
+
protected _copyRange(sheetFrom: Worksheet, sheetMark: Worksheet, coordsFrom: readonly IRange.Coords[], sheetRangeTo: ICellRange, options: ICellRange.CopyOptions | undefined, toInfo: any): IRange.Coords;
|
|
777
960
|
/**
|
|
778
961
|
* Returns `null` if invalid.
|
|
779
962
|
* @internal
|
|
780
963
|
*/
|
|
781
964
|
protected _snapShotFromSource(source: ICellRange.Address | ICellRange.ISnapshot, options?: ICellRange.CopyOptions): ICellRange.ISnapshot;
|
|
782
|
-
/**
|
|
965
|
+
/**
|
|
966
|
+
* A paste: what the snapshot has to wait for is waited for first, outside any transaction
|
|
967
|
+
* ({@link ICellRange.ISnapshot.prepare}), and the paste itself then opens, writes and commits its
|
|
968
|
+
* transaction in one synchronous extent ({@link _copyFromNow}). With nothing to wait for, the
|
|
969
|
+
* whole paste runs in the caller's synchronous extent: a paste begun while another is suspended
|
|
970
|
+
* is never nested in it, and a read made right after sees the pasted cells.
|
|
971
|
+
* @internal
|
|
972
|
+
*/
|
|
783
973
|
protected _copyFrom(destination: IRange.Coords, source: ICellRange.Address | ICellRange.ISnapshot, options?: ICellRange.CopyOptions): Promise<IRange.Coords>;
|
|
974
|
+
/**
|
|
975
|
+
* The paste itself, once its snapshot has prepared: one transaction, opened, written and
|
|
976
|
+
* committed here.
|
|
977
|
+
* @internal
|
|
978
|
+
*/
|
|
979
|
+
protected _copyFromNow(destination: IRange.Coords, snapshot: ICellRange.ISnapshot, options?: ICellRange.CopyOptions): IRange.Coords;
|
|
784
980
|
/**
|
|
785
981
|
* Where a {@link _copyFrom} lands, and whether the merges there let it - Excel's rules:
|
|
786
982
|
*
|
|
@@ -795,9 +991,9 @@ export declare class Sheet implements ISheet {
|
|
|
795
991
|
* @internal
|
|
796
992
|
*/
|
|
797
993
|
protected _resolveCopyDestination(destination: IRange.Coords, snapshot: ICellRange.ISnapshot, options: ICellRange.CopyOptions | undefined, isCut: boolean): IRange.Coords;
|
|
798
|
-
/** {@inheritDoc
|
|
994
|
+
/** {@inheritDoc IWorksheet.addAutoTable} */
|
|
799
995
|
addAutoTable(address?: ICellRange.Address, options?: ICellRange.AddAutoTableOptions): ITable;
|
|
800
|
-
/** {@inheritDoc
|
|
996
|
+
/** {@inheritDoc IWorksheet.getAutoTable} */
|
|
801
997
|
getAutoTable(): ITable | null;
|
|
802
998
|
/**
|
|
803
999
|
* The tables on this sheet that hold a filter condition: the AutoTable, then the tables. What
|
|
@@ -833,8 +1029,14 @@ export declare class Sheet implements ISheet {
|
|
|
833
1029
|
* @internal
|
|
834
1030
|
*/
|
|
835
1031
|
protected _canInsertFrom(ranges: readonly IRange.Coords[], source: ICellRange.Address | ICellRange.ISnapshot, options?: ICellRange.InsertFromOptions): boolean;
|
|
836
|
-
/**
|
|
1032
|
+
/**
|
|
1033
|
+
* An insert-paste, in the two parts of a {@link _copyFrom}: the snapshot prepares outside any
|
|
1034
|
+
* transaction, then {@link _insertFromNow} inserts, pastes and commits in one synchronous extent.
|
|
1035
|
+
* @internal
|
|
1036
|
+
*/
|
|
837
1037
|
protected _insertFrom(ranges: readonly IRange.Coords[], source: ICellRange.Address | ICellRange.ISnapshot, options?: ICellRange.InsertFromOptions): Promise<IRange.Coords>;
|
|
1038
|
+
/** @internal */
|
|
1039
|
+
protected _insertFromNow(ranges: readonly IRange.Coords[], snapshot: ICellRange.ISnapshot, options?: ICellRange.InsertFromOptions): IRange.Coords;
|
|
838
1040
|
/**
|
|
839
1041
|
* Insert cells, shifting existing content down/right.
|
|
840
1042
|
* @internal
|
|
@@ -857,8 +1059,18 @@ export declare class Sheet implements ISheet {
|
|
|
857
1059
|
*
|
|
858
1060
|
* @remarks
|
|
859
1061
|
* Implementation lives in `_SheetAutoFitUtils` (same pattern as `_SheetSortUtils.doSort`).
|
|
1062
|
+
* A fit that measured a face still loading (answered with a stand-in) is kept and taken again
|
|
1063
|
+
* when the face lands; a fit that measured only loaded faces is final.
|
|
860
1064
|
*/
|
|
861
|
-
protected _autoFit(ranges: readonly IRange.Coords[], options?: ICellRange.AutoFitOptions): void;
|
|
1065
|
+
protected _autoFit(ranges: readonly IRange.Coords[], options?: ICellRange.AutoFitOptions, holdWhileLoading?: boolean): void;
|
|
1066
|
+
/**
|
|
1067
|
+
* Runs the fits owed (see {@link _autoFit}): one held runs for the first time as it was asked;
|
|
1068
|
+
* one that ran against a stand-in runs again, leaving alone a custom size or a hidden row set
|
|
1069
|
+
* since (its first run already cleared what the caller asked to override).
|
|
1070
|
+
*
|
|
1071
|
+
* @returns `false` if none were owed.
|
|
1072
|
+
*/
|
|
1073
|
+
private _runPendingFits;
|
|
862
1074
|
/**
|
|
863
1075
|
* The size a range's content needs, without writing it. See {@link ICellRange.getBestFit}.
|
|
864
1076
|
*
|
|
@@ -914,9 +1126,11 @@ export declare class Sheet implements ISheet {
|
|
|
914
1126
|
* @param origin Where `formula` is authored when it is not `coords`' own top-left: the shared
|
|
915
1127
|
* origin of a multi-area watch, from which the body is filled to `coords`.
|
|
916
1128
|
* @param options `arrayFirstCell`: every cell of the body is its own 1x1 array-entered formula.
|
|
1129
|
+
* `paged`: the body's blank region is evaluated where its owner asks (see
|
|
1130
|
+
* {@link WatchAnchor.Options.paged}).
|
|
917
1131
|
* @internal
|
|
918
1132
|
*/
|
|
919
|
-
protected _addWatch(coords: IRange.Coords, formula: ICalculation.IFormula | string, handlers: WatchAnchor.Handlers, origin?: IRange.CellCoords, options?:
|
|
1133
|
+
protected _addWatch(coords: IRange.Coords, formula: ICalculation.IFormula | string, handlers: WatchAnchor.Handlers, origin?: IRange.CellCoords, options?: WatchAnchor.Options): IListener.Remove;
|
|
920
1134
|
/**
|
|
921
1135
|
* The one amend that creates a watch: its node, its grid and its body.
|
|
922
1136
|
*
|
|
@@ -926,7 +1140,7 @@ export declare class Sheet implements ISheet {
|
|
|
926
1140
|
* node in the versioned map, the entry that holds its callbacks, and the removal.
|
|
927
1141
|
* @internal
|
|
928
1142
|
*/
|
|
929
|
-
protected _registerWatch(coords: IRange.Coords, expression: string, authoredAt: IRange.CellCoords, handlers: WatchAnchor.Handlers, arrayFirstCell: boolean): IListener.Remove;
|
|
1143
|
+
protected _registerWatch(coords: IRange.Coords, expression: string, authoredAt: IRange.CellCoords, handlers: WatchAnchor.Handlers, arrayFirstCell: boolean, paged: boolean): IListener.Remove;
|
|
930
1144
|
/**
|
|
931
1145
|
* A watch's body is a grid the engine holds once, for every snapshot, so a watch is made and
|
|
932
1146
|
* removed against the commit the store is at. Inside an amend of any other commit its node and
|
|
@@ -992,6 +1206,17 @@ export declare class Sheet implements ISheet {
|
|
|
992
1206
|
* @internal
|
|
993
1207
|
*/
|
|
994
1208
|
protected _removeListenerNode(node: ListenerAnchor): void;
|
|
1209
|
+
/**
|
|
1210
|
+
* Tell the participants bound to `batch` of each of its steps, from the step's own intents.
|
|
1211
|
+
*
|
|
1212
|
+
* @remarks
|
|
1213
|
+
* Told inline, as the step commits and before the operation that made it returns, so what a
|
|
1214
|
+
* participant writes is the batch's next step. Moves first, as at the root's end.
|
|
1215
|
+
*
|
|
1216
|
+
* @internal
|
|
1217
|
+
*/
|
|
1218
|
+
protected _hearBatchSteps(batch: BatchHandle): void;
|
|
1219
|
+
protected _batchesHeard: WeakSet<BatchHandle> | null;
|
|
995
1220
|
/**
|
|
996
1221
|
* Deliver to every node whose reference intersects what changed.
|
|
997
1222
|
*
|
|
@@ -1005,7 +1230,7 @@ export declare class Sheet implements ISheet {
|
|
|
1005
1230
|
*
|
|
1006
1231
|
* @internal
|
|
1007
1232
|
*/
|
|
1008
|
-
protected _notifyListenerNodes(state: State, ranges: readonly IRange.Coords[] | null, notificationOptions: NotifierOptions, transactional: boolean, renamed?: boolean): void;
|
|
1233
|
+
protected _notifyListenerNodes(state: State, ranges: readonly IRange.Coords[] | null, notificationOptions: NotifierOptions, transactional: boolean, renamed?: boolean, includes?: ((entry: ListenerNodeEntry) => boolean) | null): void;
|
|
1009
1234
|
/**
|
|
1010
1235
|
* Deliver to every live node whose reference is no longer where it was.
|
|
1011
1236
|
*
|
|
@@ -1023,7 +1248,7 @@ export declare class Sheet implements ISheet {
|
|
|
1023
1248
|
*
|
|
1024
1249
|
* @internal
|
|
1025
1250
|
*/
|
|
1026
|
-
protected _notifyListenerNodeMoves(state: State, transactional: boolean, notificationOptions: NotifierOptions | null): void;
|
|
1251
|
+
protected _notifyListenerNodeMoves(state: State, transactional: boolean, notificationOptions: NotifierOptions | null, includes?: ((entry: ListenerNodeEntry) => boolean) | null): void;
|
|
1027
1252
|
/**
|
|
1028
1253
|
* One delivery, after the option filters.
|
|
1029
1254
|
*
|
|
@@ -1033,10 +1258,33 @@ export declare class Sheet implements ISheet {
|
|
|
1033
1258
|
/** @internal */
|
|
1034
1259
|
protected _notifyUsedRangeChange(): void;
|
|
1035
1260
|
/** @internal */
|
|
1036
|
-
protected _notify(key: keyof
|
|
1261
|
+
protected _notify(key: keyof IWorksheet.IListeners): void | Promise<any>;
|
|
1262
|
+
/**
|
|
1263
|
+
* Fires one of the events that carry a {@link IWorksheet.ChangeEvent}.
|
|
1264
|
+
*
|
|
1265
|
+
* @param coords What changed, or `null` for the whole sheet.
|
|
1266
|
+
* @param details What wrote it; a `null` commit for a change not written.
|
|
1267
|
+
* @internal
|
|
1268
|
+
*/
|
|
1269
|
+
protected _notifyChange(key: IWorksheet.ChangeEventKey, coords: readonly IRange.Coords[] | null, details: SheetChangeDetails): void;
|
|
1270
|
+
/**
|
|
1271
|
+
* The change events a commit announces on this sheet, in the order they fire: what the commit
|
|
1272
|
+
* path delivers and {@link IWorkbook.getChanges} reads back.
|
|
1273
|
+
* @internal
|
|
1274
|
+
*/
|
|
1275
|
+
protected _commitChanges(scoped: SheetEvents | null, details: SheetChangeDetails): {
|
|
1276
|
+
key: IWorksheet.ChangeEventKey;
|
|
1277
|
+
coords: IRange.Coords[];
|
|
1278
|
+
details: SheetChangeDetails;
|
|
1279
|
+
}[];
|
|
1280
|
+
/**
|
|
1281
|
+
* What a commit wrote on this sheet, as {@link IWorkbook.getChanges} reports it.
|
|
1282
|
+
* @internal
|
|
1283
|
+
*/
|
|
1284
|
+
_changeEventsOf(commit: ITransaction.ICommit, previous: ITransaction.ICommit | null): IWorksheet.ChangeEvent[];
|
|
1037
1285
|
/**
|
|
1038
1286
|
* Every collection change fires its fine-grained event PLUS the coarse class event it belongs
|
|
1039
|
-
* to (see `
|
|
1287
|
+
* to (see `IWorksheet.Events.onStyleChange` / `onProtectionChange`), so renderers subscribe to the
|
|
1040
1288
|
* class alone. These helpers are the single place that pairing lives — fire sites must use them
|
|
1041
1289
|
* rather than `_notify` directly so a collection can never drift out of its class.
|
|
1042
1290
|
* @internal
|
|
@@ -1060,8 +1308,8 @@ export declare class Sheet implements ISheet {
|
|
|
1060
1308
|
* @internal
|
|
1061
1309
|
*/
|
|
1062
1310
|
protected _forwardCollectionListeners(key: 'onTablesChange' | 'onConditionalFormatsChange' | 'onDataValidationsChange' | 'onProtectedRangesChange' | 'onCommentsChange', collection: () => ICollection<any>): (listeners: ICollection.IListeners, options?: IListener.Options) => IListener.Remove;
|
|
1063
|
-
/** {@inheritDoc
|
|
1064
|
-
addListeners(listeners:
|
|
1311
|
+
/** {@inheritDoc IWorksheet.addListeners} */
|
|
1312
|
+
addListeners(listeners: IWorksheet.IListeners, options?: IListener.Options): IListener.Remove;
|
|
1065
1313
|
/** @internal */
|
|
1066
1314
|
protected _getUsedCoords(options?: ICellRange.GetRangeOptions): IRange.Coords | null;
|
|
1067
1315
|
/** @internal */
|
|
@@ -1079,7 +1327,7 @@ export declare class Sheet implements ISheet {
|
|
|
1079
1327
|
*
|
|
1080
1328
|
* Every public feature is counted INDEPENDENTLY (no refinement — a refined count is
|
|
1081
1329
|
* `getRegions`), and the result carries the full `ICellRange.Feature` key set with explicit
|
|
1082
|
-
* zeros. Every feature reads off its own state map now — `DateFormat` off `dateFormatSpatial`,
|
|
1330
|
+
* zeros, except `anomalies`, which is keyed only when requested. Every feature reads off its own state map now — `DateFormat` off `dateFormatSpatial`,
|
|
1083
1331
|
* `Error` off the reconciled error spatial (cached per state version) — grouped by backing map
|
|
1084
1332
|
* so shared backings (the three content-style projections) iterate once. There is no value-scan
|
|
1085
1333
|
* branch left: that used to exist for the scalar kinds (`String`/`Number`/`Boolean`, and the old
|
|
@@ -1153,13 +1401,21 @@ export declare class Sheet implements ISheet {
|
|
|
1153
1401
|
* @internal
|
|
1154
1402
|
*/
|
|
1155
1403
|
protected _featureRegions(bounds: IRange.Coords, requested: readonly ICellRange.Feature[], options?: ICellRange.GetRegionsOptions): IRange.Coords[];
|
|
1156
|
-
/** {@inheritDoc
|
|
1404
|
+
/** {@inheritDoc IWorksheet.find} */
|
|
1157
1405
|
find(options?: string | ICellRange.FindOptions): Iterator<ICell>;
|
|
1158
|
-
/** {@inheritDoc
|
|
1159
|
-
setEntireSize(size?: Partial<
|
|
1406
|
+
/** {@inheritDoc IWorksheet.setEntireSize} */
|
|
1407
|
+
setEntireSize(size?: Partial<IWorksheet.EntireSize> | null, options?: ITransaction.OperationOptions): this;
|
|
1408
|
+
private _getEntireSize;
|
|
1409
|
+
/** The size that ends where the sheet's content does. */
|
|
1410
|
+
private _getFittedSize;
|
|
1411
|
+
/**
|
|
1412
|
+
* Moves the sheet's end to `size`, within the caller's transaction. The cells it adds or removes
|
|
1413
|
+
* are inserted and deleted at the end, so ranges that reach the end follow it.
|
|
1414
|
+
*/
|
|
1415
|
+
private _resizeEntire;
|
|
1160
1416
|
/** @internal */
|
|
1161
1417
|
protected _find(ranges: readonly IRange.Coords[], options: string | ICellRange.FindOptions): Iterator<ICell>;
|
|
1162
|
-
/** {@inheritDoc
|
|
1418
|
+
/** {@inheritDoc IWorksheet.getRuntime} */
|
|
1163
1419
|
getRuntime(): IRuntime;
|
|
1164
1420
|
/**
|
|
1165
1421
|
* The region a bare-cursor traverse from `cell` wraps within, or `null` for a plain move. A table
|
|
@@ -1173,7 +1429,7 @@ export declare class Sheet implements ISheet {
|
|
|
1173
1429
|
protected _extendRange(direction: IRange.Direction, cell: IRange.CellCoords): Readonly<IRange.Coords>;
|
|
1174
1430
|
/** @internal */
|
|
1175
1431
|
protected _defaultFontDims(): Readonly<Size>;
|
|
1176
|
-
/** {@inheritDoc
|
|
1432
|
+
/** {@inheritDoc IWorksheet.getColumnWidthAsFontUnit} */
|
|
1177
1433
|
getColumnWidthAsFontUnit(pixelWidth: number): number;
|
|
1178
1434
|
protected _createTupleBuilder<T>(transpose?: boolean): Tuple.IBuilder<T>;
|
|
1179
1435
|
/**
|
|
@@ -1186,14 +1442,14 @@ export declare class Sheet implements ISheet {
|
|
|
1186
1442
|
* @internal
|
|
1187
1443
|
*/
|
|
1188
1444
|
protected _defaultRowHeight(): number;
|
|
1189
|
-
/** {@inheritDoc
|
|
1190
|
-
getProtection():
|
|
1445
|
+
/** {@inheritDoc IWorksheet.getProtection} */
|
|
1446
|
+
getProtection(): IWorksheetProtection;
|
|
1191
1447
|
/** @internal */
|
|
1192
1448
|
protected _scrollIntoView(coords: IRange.Coords, scrollIntoView?: boolean | ICellRange.ScrollIntoViewOptions): Promise<boolean>;
|
|
1193
1449
|
/** @internal */
|
|
1194
1450
|
protected _selectSheet(coords: IRange.Coords, scrollIntoView?: boolean | ICellRange.ScrollIntoViewOptions): Promise<boolean>;
|
|
1195
|
-
/** {@inheritDoc
|
|
1196
|
-
scrollTo(coords: Partial<IRange.Coords>, options?:
|
|
1451
|
+
/** {@inheritDoc IWorksheet.scrollTo} */
|
|
1452
|
+
scrollTo(coords: Partial<IRange.Coords>, options?: IWorksheet.ScrollToOptions): Promise<boolean>;
|
|
1197
1453
|
/** @internal */
|
|
1198
1454
|
protected _resolveSelectOptions(selectOptions: boolean | ICellRange.SelectOptions, axis?: IRange.Axis): ICellRange.SelectOptions | null;
|
|
1199
1455
|
/**
|
|
@@ -1233,7 +1489,7 @@ export declare class Sheet implements ISheet {
|
|
|
1233
1489
|
*
|
|
1234
1490
|
* @remarks
|
|
1235
1491
|
* A sheet can be shown through more than one view, and a view instance is replaced on load and
|
|
1236
|
-
* by {@link setView}, so the match is on {@link
|
|
1492
|
+
* by {@link setView}, so the match is on {@link IWorksheetView.getId}.
|
|
1237
1493
|
*
|
|
1238
1494
|
* @internal
|
|
1239
1495
|
*/
|
|
@@ -1258,7 +1514,23 @@ export declare class Sheet implements ISheet {
|
|
|
1258
1514
|
*
|
|
1259
1515
|
* @internal
|
|
1260
1516
|
*/
|
|
1261
|
-
protected _recordChange(trans: ITransaction, category: EventCategory, ranges: readonly IRange.Coords[] | null | undefined): void;
|
|
1517
|
+
protected _recordChange(trans: ITransaction, category: EventCategory, ranges: readonly IRange.Coords[] | null | undefined, shifts?: readonly ShiftIntent[]): void;
|
|
1518
|
+
/** Whether a participant hears this sheet's change events, so its writes are made as they come. */
|
|
1519
|
+
protected _hasChangeParticipants(): boolean;
|
|
1520
|
+
/**
|
|
1521
|
+
* Announce a write as it is made, under the event its category belongs to.
|
|
1522
|
+
*
|
|
1523
|
+
* @remarks
|
|
1524
|
+
* Announced inside the operation, so a participant hears each write inline and what it writes
|
|
1525
|
+
* joins the operation, while an observer is told once the operation lands, every write of it
|
|
1526
|
+
* merged into one event (`SheetChangeEvent.merge`). An undo or a redo has no writes to announce
|
|
1527
|
+
* from, and announces what the commit recorded instead (`onAfterStateChange`).
|
|
1528
|
+
*
|
|
1529
|
+
* A load announces nothing ({@link IntentInitial}).
|
|
1530
|
+
*
|
|
1531
|
+
* @internal
|
|
1532
|
+
*/
|
|
1533
|
+
protected _announceChange(trans: ITransaction, category: EventCategory, ranges: readonly IRange.Coords[], shifts?: readonly ShiftIntent[]): void;
|
|
1262
1534
|
/**
|
|
1263
1535
|
* Record the ranges a formula was entered over.
|
|
1264
1536
|
*
|
|
@@ -1315,6 +1587,13 @@ export declare class Sheet implements ISheet {
|
|
|
1315
1587
|
* @internal
|
|
1316
1588
|
*/
|
|
1317
1589
|
protected _recordSkipProtectionCheck(trans: ITransaction): void;
|
|
1590
|
+
/**
|
|
1591
|
+
* Whether the open operation has ruled on this sheet's protection. See
|
|
1592
|
+
* {@link _recordSkipProtectionCheck}.
|
|
1593
|
+
*
|
|
1594
|
+
* @internal
|
|
1595
|
+
*/
|
|
1596
|
+
protected _isProtectionRuled(): boolean;
|
|
1318
1597
|
/**
|
|
1319
1598
|
* Record that this commit is a load of the sheet: not a user's write, so the protection check
|
|
1320
1599
|
* stands down, and not an edit, so nothing it wrote is announced. See {@link IntentInitial}.
|
|
@@ -1329,6 +1608,19 @@ export declare class Sheet implements ISheet {
|
|
|
1329
1608
|
* @internal
|
|
1330
1609
|
*/
|
|
1331
1610
|
protected _recordFreezePanes(trans: ITransaction, before: IRange.CellCoords, after: IRange.CellCoords): void;
|
|
1611
|
+
/**
|
|
1612
|
+
* Record an insert or delete of cells. See {@link ShiftsIntent}.
|
|
1613
|
+
*
|
|
1614
|
+
* @internal
|
|
1615
|
+
*/
|
|
1616
|
+
protected _recordShift(trans: ITransaction, kind: IWorksheet.ShiftKind, axis: IRange.Axis, ranges: readonly IRange.Coords[]): void;
|
|
1617
|
+
/**
|
|
1618
|
+
* This sheet's inserts and deletes in a commit, as a change event reports them: for an undo,
|
|
1619
|
+
* the inverse of each, last first.
|
|
1620
|
+
*
|
|
1621
|
+
* @internal
|
|
1622
|
+
*/
|
|
1623
|
+
protected _sheetShifts(intents: Readonly<Record<string, any>> | undefined, isUndo: boolean): readonly ShiftIntent[];
|
|
1332
1624
|
/**
|
|
1333
1625
|
* The movables of this sheet with the given ids, in that order. Ids no longer on the sheet are
|
|
1334
1626
|
* skipped: an undo of the insert that created a movable lands on a state without it.
|
|
@@ -1379,40 +1671,64 @@ export declare class Sheet implements ISheet {
|
|
|
1379
1671
|
* @internal
|
|
1380
1672
|
*/
|
|
1381
1673
|
protected _normalizeSelection(isMergesChanged: boolean): void;
|
|
1674
|
+
/** The selection pulled inside the sheet's end, or itself when it already is. */
|
|
1675
|
+
protected _selectionWithinEntire(coords: IRangeSelection.Coords, entire?: IRange.Coords): IRangeSelection.Coords;
|
|
1382
1676
|
/** @internal */
|
|
1383
1677
|
protected _autoSelect(options?: boolean | ICellRange.SelectOptions, selectionOverride?: Partial<IRangeSelection.Coords> | null, axis?: IRange.Axis): Promise<IRange.Coords[]>;
|
|
1384
|
-
/** {@inheritDoc
|
|
1678
|
+
/** {@inheritDoc IWorksheet.getSelection} */
|
|
1385
1679
|
getSelection(): IRangeSelection;
|
|
1386
|
-
/** {@inheritDoc
|
|
1680
|
+
/** {@inheritDoc IWorksheet.getSelectedCell} */
|
|
1387
1681
|
getSelectedCell(): ICell;
|
|
1388
|
-
/** {@inheritDoc
|
|
1682
|
+
/** {@inheritDoc IWorksheet.getSelectedRange} */
|
|
1389
1683
|
getSelectedRange(options?: ICellRange.GetRangeOptions): ICellRange;
|
|
1390
|
-
/** {@inheritDoc
|
|
1684
|
+
/** {@inheritDoc IWorksheet.getSelectedRanges} */
|
|
1391
1685
|
getSelectedRanges(options?: ICellRange.GetRangeOptions): ICellRanges;
|
|
1392
|
-
/** {@inheritDoc
|
|
1393
|
-
getView():
|
|
1394
|
-
/** {@inheritDoc
|
|
1395
|
-
setView(view:
|
|
1396
|
-
/** {@inheritDoc
|
|
1686
|
+
/** {@inheritDoc IWorksheet.getView} */
|
|
1687
|
+
getView(): IWorksheetView;
|
|
1688
|
+
/** {@inheritDoc IWorksheet.setView} */
|
|
1689
|
+
setView(view: IWorksheetView): this;
|
|
1690
|
+
/** {@inheritDoc IWorksheet.getTabColor} */
|
|
1397
1691
|
getTabColor(): IColor;
|
|
1398
|
-
/** {@inheritDoc
|
|
1692
|
+
/** {@inheritDoc IWorksheet.setTabColor} */
|
|
1399
1693
|
setTabColor(color: IColor | string | null): this;
|
|
1400
|
-
/** {@inheritDoc
|
|
1694
|
+
/** {@inheritDoc IWorksheet.getCodeName} */
|
|
1401
1695
|
getCodeName(): string | null;
|
|
1402
|
-
/** {@inheritDoc
|
|
1696
|
+
/** {@inheritDoc IWorksheet.getOutline} */
|
|
1403
1697
|
getOutline(): IOutline;
|
|
1404
|
-
/** {@inheritDoc
|
|
1698
|
+
/** {@inheritDoc IWorksheet.getPageLayout} */
|
|
1699
|
+
getPageLayout(): IPageLayout;
|
|
1700
|
+
/** {@inheritDoc IWorksheet.getHorizontalPageBreaks} */
|
|
1701
|
+
getHorizontalPageBreaks(): IPageLayout.IPageBreak[];
|
|
1702
|
+
/** {@inheritDoc IWorksheet.getVerticalPageBreaks} */
|
|
1703
|
+
getVerticalPageBreaks(): IPageLayout.IPageBreak[];
|
|
1704
|
+
/** {@inheritDoc IWorksheet.addHorizontalPageBreak} */
|
|
1705
|
+
addHorizontalPageBreak(pageBreakRange: ICellRange.Address, options?: ITransaction.OperationOptions): IPageLayout.IPageBreak;
|
|
1706
|
+
/** {@inheritDoc IWorksheet.addVerticalPageBreak} */
|
|
1707
|
+
addVerticalPageBreak(pageBreakRange: ICellRange.Address, options?: ITransaction.OperationOptions): IPageLayout.IPageBreak;
|
|
1708
|
+
/** {@inheritDoc IWorksheet.removeAllHorizontalPageBreaks} */
|
|
1709
|
+
removeAllHorizontalPageBreaks(options?: ITransaction.OperationOptions): void;
|
|
1710
|
+
/** {@inheritDoc IWorksheet.removeAllVerticalPageBreaks} */
|
|
1711
|
+
removeAllVerticalPageBreaks(options?: ITransaction.OperationOptions): void;
|
|
1712
|
+
/** {@inheritDoc IWorksheet.isConditionalFormatCalculationEnabled} */
|
|
1405
1713
|
isConditionalFormatCalculationEnabled(): boolean;
|
|
1714
|
+
/** {@inheritDoc IWorksheet.isTransitionFormulaEvaluation} */
|
|
1715
|
+
isTransitionFormulaEvaluation(): boolean;
|
|
1716
|
+
/** {@inheritDoc IWorksheet.isTransitionFormulaEntry} */
|
|
1717
|
+
isTransitionFormulaEntry(): boolean;
|
|
1718
|
+
/** {@inheritDoc IWorksheet.isExcludedFromPublishing} */
|
|
1719
|
+
isExcludedFromPublishing(): boolean;
|
|
1720
|
+
/** {@inheritDoc IWorksheet.getSyncScroll} */
|
|
1721
|
+
getSyncScroll(): IWorksheet.SyncScroll | null;
|
|
1406
1722
|
/**
|
|
1407
1723
|
* A sheet's scripts are workbook structure, like the workbook's own.
|
|
1408
1724
|
* @internal
|
|
1409
1725
|
*/
|
|
1410
1726
|
protected _isModulesReadOnly(): boolean;
|
|
1411
|
-
/** {@inheritDoc
|
|
1727
|
+
/** {@inheritDoc IWorksheet.getModules} */
|
|
1412
1728
|
getModules(): IModuleCollection;
|
|
1413
|
-
/** {@inheritDoc
|
|
1729
|
+
/** {@inheritDoc IWorksheet.getRowHeaders} */
|
|
1414
1730
|
getRowHeaders(): ISheetHeader;
|
|
1415
|
-
/** {@inheritDoc
|
|
1731
|
+
/** {@inheritDoc IWorksheet.getColumnHeaders} */
|
|
1416
1732
|
getColumnHeaders(): ISheetHeader;
|
|
1417
1733
|
/**
|
|
1418
1734
|
* The sheet's grid, whatever the calculation hands back (DESIGN-CALC-SERVICE §5): opened from
|
|
@@ -1423,15 +1739,15 @@ export declare class Sheet implements ISheet {
|
|
|
1423
1739
|
* the state as it is now.
|
|
1424
1740
|
*/
|
|
1425
1741
|
protected _openCalcGrid(json: ICalcGrid.JSON | undefined): ICalcGrid;
|
|
1426
|
-
/** {@inheritDoc
|
|
1427
|
-
toJSON(options?:
|
|
1428
|
-
/** {@inheritDoc
|
|
1742
|
+
/** {@inheritDoc IWorksheet.toJSON} */
|
|
1743
|
+
toJSON(options?: IWorksheet.ToJSONOptions): Promise<IWorksheet.JSON>;
|
|
1744
|
+
/** {@inheritDoc IWorksheet.getStyles} */
|
|
1429
1745
|
getStyles(): IStyleCollection;
|
|
1430
|
-
/** {@inheritDoc
|
|
1746
|
+
/** {@inheritDoc IWorksheet.getResources} */
|
|
1431
1747
|
getResources(): IResourceCollection;
|
|
1432
|
-
/** {@inheritDoc
|
|
1748
|
+
/** {@inheritDoc IWorksheet.getTransactions} */
|
|
1433
1749
|
getTransactions(): ITransaction.IStore;
|
|
1434
|
-
/** {@inheritDoc
|
|
1750
|
+
/** {@inheritDoc IWorksheet.getStrings} */
|
|
1435
1751
|
getStrings(): IStringCollection;
|
|
1436
1752
|
/**
|
|
1437
1753
|
* The sheet's movables: those placed on it, then the boxes of its notes.
|
|
@@ -1442,7 +1758,7 @@ export declare class Sheet implements ISheet {
|
|
|
1442
1758
|
* Places a note's box among the sheet's movables. See {@link Comment.Boxes.add}.
|
|
1443
1759
|
* @internal
|
|
1444
1760
|
*/
|
|
1445
|
-
protected _addNoteBox(comment: Comment,
|
|
1761
|
+
protected _addNoteBox(comment: Comment, placement: Comment.BoxPlacement | null, hidden: boolean): NoteMovable;
|
|
1446
1762
|
/**
|
|
1447
1763
|
* A movable, or something in it, was placed anew as part of the open operation: every connector
|
|
1448
1764
|
* glued to it follows in the same operation (`translated` when it only moved). A target whose
|
|
@@ -1461,6 +1777,8 @@ export declare class Sheet implements ISheet {
|
|
|
1461
1777
|
* The cell geometry a note's box is placed with.
|
|
1462
1778
|
* @internal
|
|
1463
1779
|
*/
|
|
1780
|
+
/** The merge a cell is in, from the merges themselves: a sheet still loading has no cells to ask. */
|
|
1781
|
+
protected _mergeAt(cell: IRange.CellCoords): IRange.Coords | null;
|
|
1464
1782
|
protected _noteLayout(): NoteLayout;
|
|
1465
1783
|
/** The farthest any movable of the index paints past its anchor, for each `drawn` version. */
|
|
1466
1784
|
private _movableOverhangs;
|
|
@@ -1489,6 +1807,15 @@ export declare class Sheet implements ISheet {
|
|
|
1489
1807
|
protected _updateSelectedMovables(update: (movable: IMovable) => void, description?: string): void;
|
|
1490
1808
|
/** @internal */
|
|
1491
1809
|
protected _addMovable(options?: IMovableCollection.AddOptions): Promise<IMovable>;
|
|
1810
|
+
/**
|
|
1811
|
+
* Everything an add waits for, before the insert opens its transaction.
|
|
1812
|
+
*
|
|
1813
|
+
* A kind registered with a loader is loaded first, so the movable is made with its real content,
|
|
1814
|
+
* a group's members included. A load that fails leaves the stand-in, as it does on a read. A
|
|
1815
|
+
* position the caller left open is settled here too ({@link _placeMovable}).
|
|
1816
|
+
* @internal
|
|
1817
|
+
*/
|
|
1818
|
+
protected _prepareMovable(options?: IMovableCollection.AddOptions): Promise<InsertableCollection.InsertOptions>;
|
|
1492
1819
|
/**
|
|
1493
1820
|
* Where a new movable of a known size goes when the caller left its position open: the visible
|
|
1494
1821
|
* window's center for `autoPlace: 'viewport'`, else the selection's top-left; then, on the axes the
|
|
@@ -1517,29 +1844,50 @@ export declare class Sheet implements ISheet {
|
|
|
1517
1844
|
* @internal
|
|
1518
1845
|
*/
|
|
1519
1846
|
protected _groupMovables(movables: readonly IMovable[], options?: IMovableCollection.GroupOptions): Promise<IMovable>;
|
|
1520
|
-
/**
|
|
1521
|
-
|
|
1522
|
-
|
|
1847
|
+
/**
|
|
1848
|
+
* Everything an added picture waits for, before the insert opens its transaction: the image
|
|
1849
|
+
* decoded for its size, then what {@link _prepareMovable} waits for.
|
|
1850
|
+
* @internal
|
|
1851
|
+
*/
|
|
1852
|
+
protected _preparePicture(picture: string | IResourceCollection.AddOptions | IResource, options?: IMovableCollection.AddOptions): Promise<InsertableCollection.InsertOptions>;
|
|
1853
|
+
/** {@inheritDoc IWorksheet.setPicture} */
|
|
1523
1854
|
setPicture(picture: string | IResource | IResourceCollection.AddOptions | null, options?: ITransaction.OperationOptions): this;
|
|
1524
|
-
/** {@inheritDoc
|
|
1855
|
+
/** {@inheritDoc IWorksheet.getPicture} */
|
|
1525
1856
|
getPicture(): IPicture | null;
|
|
1526
|
-
/** {@inheritDoc
|
|
1857
|
+
/** {@inheritDoc IWorksheet.getDataTables} */
|
|
1858
|
+
getDataTables(): IDataTableCollection;
|
|
1859
|
+
/**
|
|
1860
|
+
* An edit to cell data, here or on any sheet, can change what every data table in the workbook
|
|
1861
|
+
* would calculate, and nothing recalculates their results. Marks each to be recalculated by Excel
|
|
1862
|
+
* when it opens the file ({@link IDataTable.JSON.calculateAlways}).
|
|
1863
|
+
*
|
|
1864
|
+
* TODO - A stand-in until the engine evaluates `TABLE`. A data table is a calculation: each result
|
|
1865
|
+
* is the table's formula evaluated with that cell's row and column values put in the input cells.
|
|
1866
|
+
* The engine should own it like an array block, its dependencies being the formula's plus the
|
|
1867
|
+
* input cells and the row and column values, and recalculate it when one changes. Its results
|
|
1868
|
+
* are then never stale, `calculateAlways` stays as read, and this method and
|
|
1869
|
+
* `DataTable._markStale` go. Until then it marks every table on any data edit, because which
|
|
1870
|
+
* cells the formula depends on is only known to the engine.
|
|
1871
|
+
* @internal
|
|
1872
|
+
*/
|
|
1873
|
+
protected _markDataTablesStale(): void;
|
|
1874
|
+
/** {@inheritDoc IWorksheet.getPivotTables} */
|
|
1527
1875
|
getPivotTables(): IPivotTableCollection;
|
|
1528
|
-
/** {@inheritDoc
|
|
1876
|
+
/** {@inheritDoc IWorksheet.getTables} */
|
|
1529
1877
|
getTables(): ITableCollection;
|
|
1530
|
-
/** {@inheritDoc
|
|
1878
|
+
/** {@inheritDoc IWorksheet.getDataValidations} */
|
|
1531
1879
|
getDataValidations(): IDataValidationCollection;
|
|
1532
|
-
/** {@inheritDoc
|
|
1880
|
+
/** {@inheritDoc IWorksheet.getConditionalFormats} */
|
|
1533
1881
|
getConditionalFormats(): IConditionalFormatCollection;
|
|
1534
|
-
/** {@inheritDoc
|
|
1882
|
+
/** {@inheritDoc IWorksheet.getProtectedRanges} */
|
|
1535
1883
|
getProtectedRanges(): IProtectedRangeCollection;
|
|
1536
|
-
/** {@inheritDoc
|
|
1884
|
+
/** {@inheritDoc IWorksheet.getComments} */
|
|
1537
1885
|
getComments(): ICommentCollection;
|
|
1538
|
-
/** @deprecated Use {@link
|
|
1886
|
+
/** @deprecated Use {@link IWorksheet.getConditionalFormats} */
|
|
1539
1887
|
getConditionals(): IConditionalFormatCollection;
|
|
1540
|
-
/** {@inheritDoc
|
|
1888
|
+
/** {@inheritDoc IWorksheet.getMovables} */
|
|
1541
1889
|
getMovables(): IMovableCollection;
|
|
1542
|
-
/** {@inheritDoc
|
|
1890
|
+
/** {@inheritDoc IWorksheet.getCharts} */
|
|
1543
1891
|
getCharts(): IChartCollection;
|
|
1544
1892
|
/** @internal */
|
|
1545
1893
|
protected _validateOrRemoveOverlaps(rangeCoords: IRange.Coords, type: string, table?: ITable | null, removeIfContains?: boolean, absorbAutoTable?: boolean): void;
|
|
@@ -1579,7 +1927,7 @@ export declare class Sheet implements ISheet {
|
|
|
1579
1927
|
* The sheet-protection allowances the add needs. Empty when no option allows it, so the add is
|
|
1580
1928
|
* refused whenever the sheet is locked.
|
|
1581
1929
|
*/
|
|
1582
|
-
allowance:
|
|
1930
|
+
allowance: IWorksheetProtection.PropertyKeys[];
|
|
1583
1931
|
isItem: (add: unknown) => add is T;
|
|
1584
1932
|
description: string;
|
|
1585
1933
|
/** Loads one ref into the map, handing the created model to `capture`. */
|
|
@@ -1618,15 +1966,15 @@ export declare class Sheet implements ISheet {
|
|
|
1618
1966
|
* @internal
|
|
1619
1967
|
*/
|
|
1620
1968
|
protected _addComment(address: ICellRange.Address, content: IComment.Content, options?: ICommentCollection.AddOptions): IComment;
|
|
1621
|
-
/** {@inheritDoc
|
|
1969
|
+
/** {@inheritDoc IWorksheet.createCell} */
|
|
1622
1970
|
createCell(update: ICell.Update, coords?: IRange.CellCoords | null, options?: ICell.CreateCellOptions): ICell;
|
|
1623
1971
|
/** @internal */
|
|
1624
1972
|
protected _getBoundsAtCoords(coords: IRange.Coords): Bounds;
|
|
1625
1973
|
/** @internal */
|
|
1626
1974
|
protected _getCoordsAtBounds(bounds: Bounds): IRange.Coords;
|
|
1627
|
-
/** {@inheritDoc
|
|
1975
|
+
/** {@inheritDoc IWorksheet.getRangeAtBounds} */
|
|
1628
1976
|
getRangeAtBounds(bounds: Bounds, options?: ICellRange.GetRangeOptions): ICellRange;
|
|
1629
|
-
/** {@inheritDoc
|
|
1977
|
+
/** {@inheritDoc IWorksheet.getRangeAtBounds} */
|
|
1630
1978
|
getRangeAt(rowStart: number, colStart: number, rowEnd?: number, colEnd?: number, options?: ICellRange.GetRangeOptions): ICellRange;
|
|
1631
1979
|
/** @internal */
|
|
1632
1980
|
protected _getVisible(coords: readonly IRange.Coords[], options?: ICellRange.GetVisibleOptions): readonly IRange.Coords[];
|
|
@@ -1645,15 +1993,15 @@ export declare class Sheet implements ISheet {
|
|
|
1645
1993
|
protected _getRangedEntries<T, E = T>(spatial: ISpatialQuery, ranges: readonly IRange.Coords[], options?: GetTypedRangeOptions<T, E>, spatialSort?: boolean): T[];
|
|
1646
1994
|
/** @internal */
|
|
1647
1995
|
protected _processAnchorShift<T extends Anchored.Entry<any>>(options: ISpatialMap.ShiftDetails<T>): ISpatialMap.Entry<T> | null;
|
|
1648
|
-
/** {@inheritDoc
|
|
1996
|
+
/** {@inheritDoc IWorksheet.delete} */
|
|
1649
1997
|
delete(): void;
|
|
1650
|
-
/** {@inheritDoc
|
|
1651
|
-
doBatch<R>(callback: (commit: ITransaction.ICommit) => Promise<R> | R, options?: string | ITransaction.OperationOptions): Promise<R> | R;
|
|
1652
|
-
/** {@inheritDoc
|
|
1998
|
+
/** {@inheritDoc IWorksheet.doBatch} */
|
|
1999
|
+
doBatch<R>(callback: (commit: ITransaction.ICommit, sheet: this) => Promise<R> | R, options?: string | ITransaction.OperationOptions): Promise<R> | R;
|
|
2000
|
+
/** {@inheritDoc IWorksheet.isDeleted} */
|
|
1653
2001
|
isDeleted(): boolean;
|
|
1654
|
-
/** {@inheritDoc
|
|
2002
|
+
/** {@inheritDoc IWorksheet.isClosed} */
|
|
1655
2003
|
isClosed(): boolean;
|
|
1656
|
-
/** {@inheritDoc
|
|
2004
|
+
/** {@inheritDoc IWorksheet.close} */
|
|
1657
2005
|
close(): void;
|
|
1658
2006
|
/** {@inheritDoc ITransaction.ITransactional.beginCommit} */
|
|
1659
2007
|
beginCommit(options?: string | ITransaction.OperationOptions): ITransaction;
|
|
@@ -1740,12 +2088,18 @@ export declare class Sheet implements ISheet {
|
|
|
1740
2088
|
*
|
|
1741
2089
|
* @internal
|
|
1742
2090
|
*/
|
|
1743
|
-
|
|
2091
|
+
/**
|
|
2092
|
+
* Everything measured is stale: drop the caches, tell the views, and re-fit what grows with its
|
|
2093
|
+
* content (expand only, never a custom size). A language switch re-fits both axes; a font
|
|
2094
|
+
* arriving re-fits rows only, as the load autofit does, since Excel never widens a column for
|
|
2095
|
+
* a font.
|
|
2096
|
+
*/
|
|
2097
|
+
protected _invalidateRendering(axes?: IRange.AxisSelection | null): void;
|
|
1744
2098
|
/** @internal */
|
|
1745
|
-
protected _initViewState(entireCoords: IRange.Coords, json:
|
|
2099
|
+
protected _initViewState(entireCoords: IRange.Coords, json: IWorksheetView.JSON): void;
|
|
1746
2100
|
protected _initCellState(): void;
|
|
1747
2101
|
/** @internal */
|
|
1748
|
-
protected _createTables(tables: IAnchoredMap<ITable, ITable.JSON>, key: keyof State, refs: IRange.JSONReference<ITable.JSON>[], createModel: (options: AnchoredTable.ConstructorOptions) => ITable
|
|
2102
|
+
protected _createTables(tables: IAnchoredMap<ITable, ITable.JSON>, key: keyof State, refs: IRange.JSONReference<ITable.JSON>[], createModel: (options: AnchoredTable.ConstructorOptions) => ITable): IAnchoredMap<ITable, ITable.JSON>;
|
|
1749
2103
|
/** @internal */
|
|
1750
2104
|
protected _createDataValidations(dataValidations: IAnchoredMap<IDataValidation, IDataValidation.JSON>, key: keyof State, refs: IRange.JSONReference<IDataValidation.JSON>[], createModel: (options: DataValidation.ConstructorOptions) => IDataValidation, addListeners?: (model: IDataValidation) => IListener.Remove): IAnchoredMap<IDataValidation, IDataValidation.JSON>;
|
|
1751
2105
|
/** @internal */
|
|
@@ -1759,6 +2113,13 @@ export declare class Sheet implements ISheet {
|
|
|
1759
2113
|
* @internal
|
|
1760
2114
|
*/
|
|
1761
2115
|
protected _createPivotTables(pivotTables: IAnchoredMap<IPivotTable, IPivotTable.JSON>, key: keyof State, refs: IRange.JSONReference<IPivotTable.JSON>[], fromResourceId?: (resourceId: number) => IResource): IAnchoredMap<IPivotTable, IPivotTable.JSON>;
|
|
2116
|
+
/**
|
|
2117
|
+
* Loads the data tables into their anchored map, each anchored on its result cells, its input
|
|
2118
|
+
* cells held in the engine. The table rules on structural edits itself
|
|
2119
|
+
* (`DataTable._processContainerShift`).
|
|
2120
|
+
* @internal
|
|
2121
|
+
*/
|
|
2122
|
+
protected _createDataTables(dataTables: IAnchoredMap<IDataTable, IDataTable.JSON>, key: keyof State, refs: IRange.JSONReference<IDataTable.JSON>[]): IAnchoredMap<IDataTable, IDataTable.JSON>;
|
|
1762
2123
|
/** @internal */
|
|
1763
2124
|
protected _createComments(comments: IAnchoredMap<IComment, IComment.JSON>, key: keyof State, refs: IRange.JSONReference<IComment.JSON>[], createModel: (options: Comment.ConstructorOptions) => IComment, addListeners?: (model: IComment) => IListener.Remove): IAnchoredMap<IComment, IComment.JSON>;
|
|
1764
2125
|
/**
|
|
@@ -1769,44 +2130,48 @@ export declare class Sheet implements ISheet {
|
|
|
1769
2130
|
/** @internal */
|
|
1770
2131
|
protected _createMovableEntry(json: IMovable.JSON, zIndex: number, fromResourceId?: (resourceId: number) => IResource, index?: MovableIndex, contentGiven?: Movable.Content): ISpatialMap.Entry<MovableEntry>;
|
|
1771
2132
|
/** @internal */
|
|
1772
|
-
protected _fromJSON(json:
|
|
2133
|
+
protected _fromJSON(json: IWorksheet.JSON | undefined, disableLoadAutoFit?: boolean): void;
|
|
1773
2134
|
/** {@inheritDoc ITransaction.ITransactional.getId} */
|
|
1774
2135
|
getId(): string;
|
|
1775
2136
|
/** {@inheritDoc ITransaction.ITransactional.getVersionId} */
|
|
1776
2137
|
getVersionId(): number;
|
|
1777
|
-
/** {@inheritDoc
|
|
2138
|
+
/** {@inheritDoc IWorksheet.getName} */
|
|
1778
2139
|
getName(): string;
|
|
1779
|
-
/** {@inheritDoc
|
|
2140
|
+
/** {@inheritDoc IWorksheet.setName} */
|
|
1780
2141
|
setName(name: string, options?: ITransaction.OperationOptions): this;
|
|
1781
|
-
/** {@inheritDoc
|
|
2142
|
+
/** {@inheritDoc IWorksheet.getVisibility} */
|
|
1782
2143
|
getVisibility(): ISheet.Visibility;
|
|
1783
|
-
/** {@inheritDoc
|
|
2144
|
+
/** {@inheritDoc IWorksheet.setVisibility} */
|
|
1784
2145
|
setVisibility(visibility?: ISheet.Visibility | boolean, options?: ITransaction.OperationOptions): this;
|
|
1785
|
-
/** {@inheritDoc
|
|
2146
|
+
/** {@inheritDoc IWorksheet.select} */
|
|
1786
2147
|
select(options: ITypes.SelectOptions): Promise<this>;
|
|
1787
|
-
/** {@inheritDoc
|
|
2148
|
+
/** {@inheritDoc IWorksheet.duplicate} */
|
|
1788
2149
|
duplicate(): Promise<this>;
|
|
1789
|
-
/** {@inheritDoc
|
|
2150
|
+
/** {@inheritDoc IWorksheet.getIndex} */
|
|
1790
2151
|
getIndex(): number;
|
|
1791
|
-
/** {@inheritDoc
|
|
2152
|
+
/** {@inheritDoc IWorksheet.setIndex} */
|
|
1792
2153
|
setIndex(index: number, options?: ITransaction.OperationOptions): this;
|
|
1793
|
-
/** {@inheritDoc
|
|
2154
|
+
/** {@inheritDoc IWorksheet.getNames} */
|
|
1794
2155
|
getNames(): INamedCollection;
|
|
1795
|
-
/** {@inheritDoc
|
|
1796
|
-
/** {@inheritDoc
|
|
2156
|
+
/** {@inheritDoc IWorksheet.getCalculation} */
|
|
2157
|
+
/** {@inheritDoc IWorksheet.getCalculation} */
|
|
1797
2158
|
getCalculation(): ICalculation;
|
|
1798
|
-
/** {@inheritDoc
|
|
2159
|
+
/** {@inheritDoc IWorksheet.createFormula} */
|
|
1799
2160
|
createFormula(expression: string, coords?: Partial<IRange.CellCoords>, options?: ICalculation.CreateFormulaOptions): ICalculation.IFormula;
|
|
1800
|
-
/** {@inheritDoc
|
|
2161
|
+
/** {@inheritDoc IWorksheet.evaluate} */
|
|
1801
2162
|
evaluate(expression: string, options?: number | ICalculation.EvaluateOptions & Partial<IRange.CellCoords> & ICalculation.CreateFormulaOptions): Promise<Scalar | IRange>;
|
|
1802
|
-
/** {@inheritDoc
|
|
2163
|
+
/** {@inheritDoc IWorksheet.whenCalculationReady} */
|
|
1803
2164
|
whenCalculationReady(): Promise<ICalculation.Status>;
|
|
1804
|
-
/** {@inheritDoc
|
|
2165
|
+
/** {@inheritDoc IWorksheet.getWorkbook} */
|
|
1805
2166
|
getWorkbook(): IWorkbook | null;
|
|
1806
2167
|
get [Symbol.toStringTag](): string;
|
|
1807
2168
|
toString(): string;
|
|
2169
|
+
/** {@inheritDoc IWorksheet.getKind} */
|
|
2170
|
+
getKind(): typeof ISheet.Kind.Worksheet;
|
|
1808
2171
|
/** {@inheritDoc ISheet.isISheet} */
|
|
1809
2172
|
get isISheet(): true;
|
|
2173
|
+
/** {@inheritDoc IWorksheet.isIWorksheet} */
|
|
2174
|
+
get isIWorksheet(): true;
|
|
1810
2175
|
}
|
|
1811
2176
|
/**
|
|
1812
2177
|
* Builds an {@link ICellRange.Counts} from a plain feature record.
|
|
@@ -1839,7 +2204,6 @@ interface NotifierOptions {
|
|
|
1839
2204
|
/** Spell the source with its sheet qualifier (a workbook range), as the listener registered it. */
|
|
1840
2205
|
qualified?: boolean;
|
|
1841
2206
|
from?: ICellRanges;
|
|
1842
|
-
to?: ICellRange;
|
|
1843
2207
|
timeStamp?: number;
|
|
1844
2208
|
}
|
|
1845
2209
|
interface TableColumnHeaders {
|
|
@@ -1870,6 +2234,8 @@ interface ListenerNodeEntry {
|
|
|
1870
2234
|
qualified: boolean;
|
|
1871
2235
|
/** Present when the node is a {@link WatchAnchor}: what the watch is told. */
|
|
1872
2236
|
watch?: WatchAnchor.Handlers;
|
|
2237
|
+
/** The batch a participant was added through: it is told as each step of that batch is made. */
|
|
2238
|
+
batch?: BatchHandle | null;
|
|
1873
2239
|
}
|
|
1874
2240
|
/**
|
|
1875
2241
|
* A run of formula cells with the references they inherit a number format from, relative to the
|
|
@@ -1881,4 +2247,4 @@ interface EnteredBlock {
|
|
|
1881
2247
|
references: readonly IRange.FixableCoords[];
|
|
1882
2248
|
}
|
|
1883
2249
|
export {};
|
|
1884
|
-
//# sourceMappingURL=
|
|
2250
|
+
//# sourceMappingURL=Worksheet.d.ts.map
|