@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
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Scalar } from '@sheetxl/primitives';
|
|
2
|
+
import { IListLike, IReadableList } from '../../collections';
|
|
3
|
+
/**
|
|
4
|
+
* The run a result is stored as in a grid of CELL values: the engine's value grid, and the range
|
|
5
|
+
* an `evaluate()` call answers with.
|
|
6
|
+
*
|
|
7
|
+
* @remarks
|
|
8
|
+
* A cell holds a scalar: a number, text, a boolean, a blank, an error or rich data. Anything else
|
|
9
|
+
* an evaluation can produce, such as a function value (`=HSTACK(SUM,A1:A2)`, a `LAMBDA` left
|
|
10
|
+
* unconsumed), is calculation-private, and the cell's verdict on it is `#CALC!`, the one a
|
|
11
|
+
* top-level result gets (`FormulaBlock.finalizeValue`). Applying it where the run is MADE means
|
|
12
|
+
* every reader of the grid (the sheet, a spill, a saved file, the renderer) sees `#CALC!` without
|
|
13
|
+
* knowing what it stood for, and nothing private leaves the engine.
|
|
14
|
+
*
|
|
15
|
+
* A typed run never holds an object and is wrapped as it is; a repeating run is looked at once per
|
|
16
|
+
* period; a run made of other runs (a referenced column: its cells, then a blank stretch to the
|
|
17
|
+
* sheet's end) is looked at per leaf by the same rules; any other run is classified once, which is
|
|
18
|
+
* what storing it typed costs anyway.
|
|
19
|
+
*/
|
|
20
|
+
export declare const createCellValueRun: (values: IListLike<Scalar> | Scalar[]) => IReadableList<Scalar>;
|
|
21
|
+
//# sourceMappingURL=_CellValueRun.d.ts.map
|
|
@@ -89,6 +89,11 @@ export declare class FormulaSpatialValue implements IFormulaBlock, ISpatialMap.I
|
|
|
89
89
|
* Deliberately NOT "is a named body". Anything holding a formula at a synthetic anchor wants the
|
|
90
90
|
* same treatment, and the shift code should not have to know what a name is.
|
|
91
91
|
*
|
|
92
|
+
* A calculation pass never evaluates such a block: its anchor is no cell, so there is nothing
|
|
93
|
+
* to write an answer to, and whatever reads the body runs it inline at its own position. It is
|
|
94
|
+
* evaluated on demand only (`ICalcGrid.evaluateAt`), and `isVolatileAt` answers for it from the
|
|
95
|
+
* formula text alone, there being nothing a pass registered (`CalcGridBackend._isVolatileNow`).
|
|
96
|
+
*
|
|
92
97
|
* Required at construction rather than defaulted: the block is immutable and re-minted on every
|
|
93
98
|
* reference rewrite, so an unthreaded copy would silently revert to `false` on the first
|
|
94
99
|
* `setReferenceAt` — which is exactly what a shift performs.
|
|
@@ -175,11 +180,20 @@ export declare class FormulaSpatialValue implements IFormulaBlock, ISpatialMap.I
|
|
|
175
180
|
setBlankShared(blank: readonly IRange.Coords[] | null): void;
|
|
176
181
|
/**
|
|
177
182
|
* The pass refused to share the representative's answer for a reason the text hides — a
|
|
178
|
-
* position read, a draw, a computed reference
|
|
183
|
+
* position read the formula's variants cannot rule out, a draw, a computed reference
|
|
184
|
+
* (`CalcScope.perCellRead`, `CalcScope.positionRead`). Those are facts of the
|
|
179
185
|
* formula, so the block keeps per-cell evaluation for good rather than paying one wasted
|
|
180
186
|
* representative evaluation and a second plan iteration every pass.
|
|
181
187
|
*/
|
|
182
188
|
blankRefused: boolean;
|
|
189
|
+
/**
|
|
190
|
+
* The representative's answer depends on the position and the block's grid is paged
|
|
191
|
+
* (`CalcGridBackend.ConstructorOptions.paged`): the blank region is not shared but evaluated
|
|
192
|
+
* inside the tiles the grid's owner asks for ({@link getDemandedBlank}), and holds nothing
|
|
193
|
+
* elsewhere. A fact of the formula like {@link blankRefused}, so it is kept; the block stays
|
|
194
|
+
* sparse and has no representative.
|
|
195
|
+
*/
|
|
196
|
+
blankPaged: boolean;
|
|
183
197
|
/**
|
|
184
198
|
* The cycle whose representative could not stand for the region for a reason that may not
|
|
185
199
|
* recur — a range result, a cycle role, a promise: the block is evaluated per cell for the rest
|
|
@@ -292,6 +306,11 @@ export declare class FormulaSpatialValue implements IFormulaBlock, ISpatialMap.I
|
|
|
292
306
|
* ahead of this — so the region only ever answers for cells nothing was written to.
|
|
293
307
|
*/
|
|
294
308
|
getBlankRegion(): FormulaSpatialValue.BlankRegion | null;
|
|
309
|
+
/**
|
|
310
|
+
* The cells of the last collection's blank region inside the tiles the grid's owner reads now
|
|
311
|
+
* (`CalcGridBackend.getDemanded`): what a paged block evaluates beyond its touched cells.
|
|
312
|
+
*/
|
|
313
|
+
getDemandedBlank(): IRange.Coords[];
|
|
295
314
|
/**
|
|
296
315
|
* What a cell of `coords` that the grid does not store reads as: the blank region's shared
|
|
297
316
|
* value when a region is shared and `coords` lie inside the block, `null` otherwise.
|
|
@@ -409,10 +428,14 @@ export declare class FormulaSpatialValue implements IFormulaBlock, ISpatialMap.I
|
|
|
409
428
|
getReferencedSymbolIds(): string[];
|
|
410
429
|
/** {@inheritDoc IFormulaBlock.hasTotals} */
|
|
411
430
|
hasTotals(): boolean;
|
|
431
|
+
/** {@inheritDoc IFormulaBlock.hasVolatile} */
|
|
432
|
+
hasVolatile(): boolean;
|
|
412
433
|
/** {@inheritDoc IFormulaBlock.isBlankCacheable} */
|
|
413
434
|
isBlankCacheable(arrayMode?: boolean): boolean;
|
|
414
435
|
/** {@inheritDoc IFormulaBlock.demandFirstCell} */
|
|
415
436
|
demandFirstCell(): void;
|
|
437
|
+
/** {@inheritDoc IFormulaBlock.getPositionVariants} */
|
|
438
|
+
getPositionVariants(): IFormulaBlock[] | null;
|
|
416
439
|
/** @inheritdoc IFormulaBlock.isReferenceOnly */
|
|
417
440
|
isReferenceOnly(): boolean;
|
|
418
441
|
/** {@inheritDoc IFormulaBlock.isEquals} */
|
|
@@ -439,10 +462,12 @@ export declare namespace FormulaSpatialValue {
|
|
|
439
462
|
}
|
|
440
463
|
/** See {@link FormulaSpatialValue.getBlankRegion}. */
|
|
441
464
|
interface BlankRegion {
|
|
442
|
-
/** The representative's finalized scalar. */
|
|
465
|
+
/** The representative's finalized scalar; `undefined` for a paged region. */
|
|
443
466
|
readonly value: Scalar | undefined;
|
|
444
467
|
/** The blank rectangles, in the block's own grid coordinates. */
|
|
445
468
|
readonly rects: readonly IRange.Coords[];
|
|
469
|
+
/** See {@link FormulaSpatialValue.blankPaged}. */
|
|
470
|
+
readonly paged?: boolean;
|
|
446
471
|
}
|
|
447
472
|
}
|
|
448
473
|
//# sourceMappingURL=FormulaSpatialValue.d.ts.map
|
|
@@ -43,14 +43,23 @@ export interface CalcScope {
|
|
|
43
43
|
firstCell: boolean;
|
|
44
44
|
/**
|
|
45
45
|
* Set when the evaluation read something that is PER CELL rather than a property of its inputs
|
|
46
|
-
* — a random draw (`IFormulaContext.getRandom`),
|
|
47
|
-
* `
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
46
|
+
* — a random draw (`IFormulaContext.getRandom`), another cell's formula or sheet
|
|
47
|
+
* (`getFormulaAt`, `getSheetIndex`), or a reference it computed (a dynamic precedent) — so its
|
|
48
|
+
* answer cannot stand in for another cell's even when the two cells' inputs are identical.
|
|
49
|
+
* Cleared by whoever evaluates a cell as the representative of a block's blank region and read
|
|
50
|
+
* at its finalize (PLAN-WATCHES-BLANK-AWARE §4); a cell evaluated on its own behalf never
|
|
51
|
+
* reads it.
|
|
52
52
|
*/
|
|
53
53
|
perCellRead: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Set when the evaluation read its own POSITION — `getRow`, `getColumn`, its own address, a
|
|
56
|
+
* reference's `getCoords`. Per cell like {@link perCellRead}, but a position is the one per-cell
|
|
57
|
+
* input whose effect the representative can rule out: when every position read sits under a
|
|
58
|
+
* boolean test the result does not depend on (`AND(ISODD(ROW()),$A1<>"")` over a blank `A`),
|
|
59
|
+
* the answer is still shared (`IFormulaBlock.getPositionVariants`). Cleared and read alongside
|
|
60
|
+
* {@link perCellRead}.
|
|
61
|
+
*/
|
|
62
|
+
positionRead: boolean;
|
|
54
63
|
/**
|
|
55
64
|
* How many draws (`IFormulaContext.getRandom`) this evaluation has taken, from `0`.
|
|
56
65
|
*
|
|
@@ -33,6 +33,16 @@ export declare const CalcState: {
|
|
|
33
33
|
* `demandValue` in place of an `evaluateAt`.
|
|
34
34
|
*/
|
|
35
35
|
readonly Circular: number;
|
|
36
|
+
/**
|
|
37
|
+
* The node's last evaluation found it volatile: the formula names a volatile function
|
|
38
|
+
* (`IFormulaContext.markVolatile`, which the compiled `hasVolatile` spends), it read cells its
|
|
39
|
+
* text does not name (a dynamic precedent of kind `Reference`: `OFFSET`, `INDIRECT`), or it is
|
|
40
|
+
* a member of an iterated cycle. Cleared when an evaluation of the node starts, so it answers
|
|
41
|
+
* for the last one; persists across passes that skip the node. What `isVolatileAt` reports —
|
|
42
|
+
* the executor's volatile SET is the pass's own worklist, rebuilt every pass, and is not read
|
|
43
|
+
* for the answer.
|
|
44
|
+
*/
|
|
45
|
+
readonly Volatile: number;
|
|
36
46
|
/**
|
|
37
47
|
* A `Waiting` node — or a finished member of a cycle that is still open — the evaluation in
|
|
38
48
|
* progress has read under iterative calculation: it is in
|
|
@@ -37,8 +37,8 @@ export declare class CalculationContext implements IFormulaContext {
|
|
|
37
37
|
*/
|
|
38
38
|
protected _dynamicRead: ReadHook | null;
|
|
39
39
|
/**
|
|
40
|
-
* Marks the evaluation in progress as having read
|
|
41
|
-
*
|
|
40
|
+
* Marks the evaluation in progress as having read its position, so its answer stands in for
|
|
41
|
+
* another cell's only where the position cannot matter (`CalcScope.positionRead`). One closure for the
|
|
42
42
|
* context's lifetime: every reference it builds is handed this for its `getCoords`, and the
|
|
43
43
|
* context's own position accessors call it directly.
|
|
44
44
|
*/
|
|
@@ -56,6 +56,11 @@ export interface IContextContainer {
|
|
|
56
56
|
getSheetSpanIds?: (scopeId: string) => string[] | null;
|
|
57
57
|
/** Every sheet's grid id in tab order, hidden sheets included. */
|
|
58
58
|
getSheetIds?: () => readonly string[];
|
|
59
|
+
/**
|
|
60
|
+
* Whether a sheet in the tab order has no grid: a chart, macro or dialog sheet. Such a sheet counts
|
|
61
|
+
* in a span's members and gives no values; it cannot be a span's endpoint.
|
|
62
|
+
*/
|
|
63
|
+
isGridless?: (sheetId: string) => boolean;
|
|
59
64
|
getScope(): CalcScope;
|
|
60
65
|
getRuntime(): IRuntime;
|
|
61
66
|
/**
|
|
@@ -162,6 +167,13 @@ export interface IContextContainer {
|
|
|
162
167
|
* objects, copy-on-write per request.
|
|
163
168
|
*/
|
|
164
169
|
setGridMaps(gridId: string, maps: object): void;
|
|
170
|
+
/**
|
|
171
|
+
* The clone key the requests of the batch being applied share (`ISpatialMap.clone`'s), while a
|
|
172
|
+
* held batch or a collecting batch of grids applies; `null` otherwise. The batch is one engine
|
|
173
|
+
* operation, so a map one of its requests cloned is the one the next writes into, rather than a
|
|
174
|
+
* copy per request.
|
|
175
|
+
*/
|
|
176
|
+
getHeldCloneKey?(): string | null;
|
|
165
177
|
/**
|
|
166
178
|
* The model has restored itself to `commitId` (an undo, a redo): restore the engine's history
|
|
167
179
|
* to it, once, and answer the regions of `gridId` that changed between the two snapshots. A
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IRange } from '@sheetxl/primitives';
|
|
2
|
+
import { ICalculation } from '../ICalculation';
|
|
3
|
+
import { FormulaText } from '../FormulaText';
|
|
4
|
+
/** {@link FormulaText.parse}, with the toolkit loaded. */
|
|
5
|
+
export declare function parse(text: string, options?: FormulaText.ParseOptions): ICalculation.FormulaNode | null;
|
|
6
|
+
/** {@link FormulaText.transform}, with the toolkit loaded. */
|
|
7
|
+
export declare function transform(root: ICalculation.FormulaNode, transform: ICalculation.FormulaTransform): ICalculation.FormulaNode;
|
|
8
|
+
/** {@link FormulaText.imager}, with the toolkit loaded. */
|
|
9
|
+
export declare function imager(root: ICalculation.FormulaNode, options?: Omit<FormulaText.ImageOptions, 'at'>): (at?: IRange.CellCoords) => string;
|
|
10
|
+
//# sourceMappingURL=FormulaTextParser.d.ts.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { FunctionDeclarations } from '../functions/FunctionDeclarations';
|
|
2
|
+
/** A built-in function's declaration, or `null` when no built-in has that name. Not case sensitive. */
|
|
3
|
+
export declare function getFunctionDeclaration(name: string): FunctionDeclarations.Declared | null;
|
|
4
|
+
//# sourceMappingURL=FunctionDeclarationTable.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The formula toolkit's code: the parser, the printer, the literal reader and the built-in
|
|
3
|
+
* declarations, behind `FormulaText`, `parseFormulaLiteral` and `FunctionDeclarations`.
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* Loaded by `FormulaText.load()` and by a calculation's start, never carried from import
|
|
7
|
+
* (DESIGN-CALC-SERVICE §13.25). Only `_FormulaToolkit` imports it.
|
|
8
|
+
*/
|
|
9
|
+
export { parse, transform, imager } from './FormulaTextParser';
|
|
10
|
+
export { readFormulaLiteral } from './FormulaLiteralReader';
|
|
11
|
+
export { getFunctionDeclaration } from './FunctionDeclarationTable';
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Scalar, ScalarType, InteropScalarType, InteropScalar, IRange } from '@sheetxl/primitives';
|
|
1
|
+
import { Scalar, ScalarType, InteropScalarType, InteropScalar, IRange, IRichData } from '@sheetxl/primitives';
|
|
2
2
|
import { Size, Rectangle, Bounds } from '@sheetxl/utils';
|
|
3
3
|
import { ITypes } from '../type';
|
|
4
|
-
import { ITextFrame, TextRotation, TextStacked } from '../text';
|
|
4
|
+
import { ITextFrame, TextRotation, TextStacked, IRichText } from '../text';
|
|
5
5
|
import { NumberFormat } from '../numFmt';
|
|
6
6
|
import { ITable } from '../table';
|
|
7
7
|
import { IDataValidation } from '../dataValidation';
|
|
@@ -11,7 +11,7 @@ import { IComment } from '../comment';
|
|
|
11
11
|
import { ICellStyle } from '../style';
|
|
12
12
|
import { ICellRanges, ICellRange } from '../cellRange';
|
|
13
13
|
import { ICalculation } from '../calculation';
|
|
14
|
-
import {
|
|
14
|
+
import { IWorksheet } from '../sheet';
|
|
15
15
|
import { ICellProtection } from './ICellProtection';
|
|
16
16
|
/**
|
|
17
17
|
* A single unit of data and meta data within an `ICellRange`, located at a specific row and column.
|
|
@@ -113,6 +113,35 @@ export interface ICell {
|
|
|
113
113
|
* Resolves `null` if the cell has no dependents.
|
|
114
114
|
*/
|
|
115
115
|
getDependents(): Promise<ICellRanges | null>;
|
|
116
|
+
/**
|
|
117
|
+
* Returns whether the cell ignores one of Excel's error checks.
|
|
118
|
+
*
|
|
119
|
+
* @param check The check.
|
|
120
|
+
* @see {@link ICellRange.setErrorIgnored}
|
|
121
|
+
*/
|
|
122
|
+
isErrorIgnored(check: ICell.ErrorCheck): boolean;
|
|
123
|
+
/**
|
|
124
|
+
* Returns the error checks that fire at the cell, each with its evidence.
|
|
125
|
+
*
|
|
126
|
+
* @remarks
|
|
127
|
+
* The payload of the `anomalies` feature at this cell ({@link ICellRange.Feature}): a cell of a
|
|
128
|
+
* `getRegions('anomalies')` region reads its region's findings here. A check the cell ignores
|
|
129
|
+
* ({@link isErrorIgnored}) does not fire. Empty when nothing fires.
|
|
130
|
+
*
|
|
131
|
+
* Derived on first read and cached until the sheet changes; it costs nothing before that.
|
|
132
|
+
*/
|
|
133
|
+
getAnomalies(): readonly ICell.Anomaly[];
|
|
134
|
+
/**
|
|
135
|
+
* Returns the cell's role: its job in the model, from what it reads and who reads it.
|
|
136
|
+
*
|
|
137
|
+
* @remarks
|
|
138
|
+
* The payload of the `role` feature at this cell ({@link ICellRange.Feature.Role}); see
|
|
139
|
+
* {@link ICell.Role} for the six roles. `null` for an empty cell, and for a formula before the
|
|
140
|
+
* calculation engine has loaded its parser.
|
|
141
|
+
*
|
|
142
|
+
* Derived on first read and cached until the sheet changes; it costs nothing before that.
|
|
143
|
+
*/
|
|
144
|
+
getRole(): ICell.Role | null;
|
|
116
145
|
/**
|
|
117
146
|
* Returns the hyperlink assigned to the cell.
|
|
118
147
|
*
|
|
@@ -120,12 +149,21 @@ export interface ICell {
|
|
|
120
149
|
* Returns `null` if no hyperlink is set.
|
|
121
150
|
*/
|
|
122
151
|
getHyperlink(): IHyperlink | null;
|
|
152
|
+
/**
|
|
153
|
+
* The cell's text as formatted runs, or `null` when the text has one font throughout.
|
|
154
|
+
*
|
|
155
|
+
* @remarks
|
|
156
|
+
* Each run's font is the whole font the run shows in: the cell's font with what the run sets
|
|
157
|
+
* over it. The value itself (`getValue()`) is a `RichText`, whose runs record only what they
|
|
158
|
+
* set. Set with {@link ICellRange.setRichText}.
|
|
159
|
+
*/
|
|
160
|
+
getRichText(): IRichText.JSON | null;
|
|
123
161
|
/**
|
|
124
162
|
* Returns the comment on the cell, or `null` if there is none.
|
|
125
163
|
*
|
|
126
164
|
* @remarks
|
|
127
165
|
* One per cell — the thread's root, with its replies, or a note. The sheet's
|
|
128
|
-
* {@link
|
|
166
|
+
* {@link IWorksheet.getComments} is where one is added.
|
|
129
167
|
*/
|
|
130
168
|
getComments(): IComment | null;
|
|
131
169
|
/**
|
|
@@ -178,6 +216,11 @@ export interface ICell {
|
|
|
178
216
|
* Returns the cell's value as a formatted string, applying any number formatting.
|
|
179
217
|
*/
|
|
180
218
|
getText(options?: ICell.GetTextOptions): string;
|
|
219
|
+
/**
|
|
220
|
+
* @deprecated Use {@link getText}.
|
|
221
|
+
* @hidden
|
|
222
|
+
*/
|
|
223
|
+
getFormattedValue(): string;
|
|
181
224
|
/**
|
|
182
225
|
* Returns the cell's value as a string with additional number format details.
|
|
183
226
|
*
|
|
@@ -386,6 +429,11 @@ export interface ICell {
|
|
|
386
429
|
* @param r1c1 If unspecified defaults to the environment's default format.
|
|
387
430
|
*/
|
|
388
431
|
getAddress(r1c1?: boolean): string;
|
|
432
|
+
/**
|
|
433
|
+
* @deprecated Use {@link getAddress}.
|
|
434
|
+
* @hidden
|
|
435
|
+
*/
|
|
436
|
+
getA1(): string;
|
|
389
437
|
/**
|
|
390
438
|
* Selects the current cell.
|
|
391
439
|
* @returns An async boolean indicating the cell was selected.
|
|
@@ -394,7 +442,7 @@ export interface ICell {
|
|
|
394
442
|
/**
|
|
395
443
|
* Returns the Sheet.
|
|
396
444
|
*/
|
|
397
|
-
|
|
445
|
+
getWorksheet(): IWorksheet;
|
|
398
446
|
/**
|
|
399
447
|
* For runtime type checking.
|
|
400
448
|
*/
|
|
@@ -522,7 +570,7 @@ export declare namespace ICell {
|
|
|
522
570
|
comments?: IComment.Update;
|
|
523
571
|
}
|
|
524
572
|
/**
|
|
525
|
-
* Options for {@link ICell.createCell} and {@link
|
|
573
|
+
* Options for {@link ICell.createCell} and {@link IWorksheet.createCell}.
|
|
526
574
|
*/
|
|
527
575
|
interface CreateCellOptions {
|
|
528
576
|
/**
|
|
@@ -678,7 +726,11 @@ export declare namespace ICell {
|
|
|
678
726
|
*/
|
|
679
727
|
interface JSONTypedValue {
|
|
680
728
|
t: JSONScalarType;
|
|
681
|
-
|
|
729
|
+
/**
|
|
730
|
+
* The number, string id, error code or boolean flag; for `'r'`, the rich data's own JSON
|
|
731
|
+
* (`IRichData.JSON`), which its registered kind reads back.
|
|
732
|
+
*/
|
|
733
|
+
v: number | IRichData.JSON;
|
|
682
734
|
}
|
|
683
735
|
/**
|
|
684
736
|
* Reexports the `IRange.CellCoords` type for use in cell coordinates.
|
|
@@ -759,5 +811,202 @@ export declare namespace ICell {
|
|
|
759
811
|
readonly DataValidations: "dataValidations";
|
|
760
812
|
};
|
|
761
813
|
type Content = typeof Content[keyof typeof Content];
|
|
814
|
+
/**
|
|
815
|
+
* A cell's job in the model, read from two facts: what the cell reads and who reads it.
|
|
816
|
+
*
|
|
817
|
+
* @remarks
|
|
818
|
+
* A typed cell is a `label` when nothing reads it and an `input` when something does. A formula
|
|
819
|
+
* is a `link` when it is one cell of another sheet (negated or scaled at most, or a reference
|
|
820
|
+
* built with `INDIRECT`), a `reference` when it is one cell of this sheet (negated at most),
|
|
821
|
+
* else `computed` where something reads it and `output` where nothing does. "Who reads it" is
|
|
822
|
+
* the sheet's own formulas, so a cell only another sheet reads is a `label` or an `output`.
|
|
823
|
+
*
|
|
824
|
+
* A finance model's color convention (inputs blue, links green, calculations black) is a
|
|
825
|
+
* statement about this layer, which is what the `styleRole` check reads
|
|
826
|
+
* ({@link ICell.ErrorCheck}).
|
|
827
|
+
*/
|
|
828
|
+
const Role: {
|
|
829
|
+
/** A typed value nothing on the sheet reads. */
|
|
830
|
+
readonly Label: "label";
|
|
831
|
+
/** A typed value a formula reads. */
|
|
832
|
+
readonly Input: "input";
|
|
833
|
+
/** One cell of another sheet. */
|
|
834
|
+
readonly Link: "link";
|
|
835
|
+
/** One cell of this sheet. */
|
|
836
|
+
readonly Reference: "reference";
|
|
837
|
+
/** An expression something reads. */
|
|
838
|
+
readonly Computed: "computed";
|
|
839
|
+
/** An expression nothing on the sheet reads. */
|
|
840
|
+
readonly Output: "output";
|
|
841
|
+
};
|
|
842
|
+
type Role = typeof Role[keyof typeof Role];
|
|
843
|
+
/**
|
|
844
|
+
* One of Excel's background error checks (**Formulas > Error Checking**), by the name the file
|
|
845
|
+
* stores it under, or one of SheetXL's own. A cell can be told to ignore a check
|
|
846
|
+
* ({@link ICellRange.setErrorIgnored}); Excel then draws no error indicator on it for that rule.
|
|
847
|
+
*
|
|
848
|
+
* @remarks
|
|
849
|
+
* The checks SheetXL runs fire through {@link ICell.getAnomalies} and the `anomalies` feature;
|
|
850
|
+
* an ignored check does not fire. Ignores follow their cells through inserts and deletes, are
|
|
851
|
+
* never copied, and leave a cell that is written or cleared, as in Excel.
|
|
852
|
+
*/
|
|
853
|
+
const ErrorCheck: {
|
|
854
|
+
/** A formula that evaluates to an error value. */
|
|
855
|
+
readonly EvaluatesToError: "evalError";
|
|
856
|
+
/** A year written as two digits in text. */
|
|
857
|
+
readonly TextDate: "twoDigitTextYear";
|
|
858
|
+
/** A number stored as text. */
|
|
859
|
+
readonly NumberAsText: "numberStoredAsText";
|
|
860
|
+
/** A formula inconsistent with the formulas around it. */
|
|
861
|
+
readonly InconsistentFormula: "formula";
|
|
862
|
+
/** A formula that omits cells adjacent to the range it refers to. */
|
|
863
|
+
readonly OmittedCells: "formulaRange";
|
|
864
|
+
/** A formula in an unlocked cell. */
|
|
865
|
+
readonly UnlockedFormula: "unlockedFormula";
|
|
866
|
+
/** A formula that refers to empty cells. */
|
|
867
|
+
readonly EmptyCellReference: "emptyCellReference";
|
|
868
|
+
/** A value that fails the cell's list data validation. */
|
|
869
|
+
readonly ListDataValidation: "listDataValidation";
|
|
870
|
+
/** A formula inconsistent with its table's calculated column. */
|
|
871
|
+
readonly InconsistentListFormula: "calculatedColumn";
|
|
872
|
+
/**
|
|
873
|
+
* A typed value in a run of formulas: the cells on both sides of it, along a row or a column,
|
|
874
|
+
* are formulas. SheetXL's own; not written to an xlsx file's ignored errors.
|
|
875
|
+
*/
|
|
876
|
+
readonly HardcodeInRun: "hardcodeInRun";
|
|
877
|
+
/**
|
|
878
|
+
* An authored format (font, fill, number format, alignment) that breaks the run around it:
|
|
879
|
+
* the cells on both sides carry one format, and this cell another. SheetXL's own; not
|
|
880
|
+
* written to an xlsx file's ignored errors.
|
|
881
|
+
*/
|
|
882
|
+
readonly StyleBreak: "styleBreak";
|
|
883
|
+
/**
|
|
884
|
+
* A format part paired with the cell's role: a link to another sheet, a reference on this
|
|
885
|
+
* sheet or a calculation whose font color is other than most of its role on the sheet have,
|
|
886
|
+
* and is one the workbook writes some role in. SheetXL's own; not written to an xlsx file's
|
|
887
|
+
* ignored errors.
|
|
888
|
+
*/
|
|
889
|
+
readonly StyleRole: "styleRole";
|
|
890
|
+
/** A cell or range counted twice in one sum. */
|
|
891
|
+
readonly RepeatedReference: "repeatedReference";
|
|
892
|
+
/** An aggregate over one cell, or over typed numbers only. */
|
|
893
|
+
readonly DegenerateCall: "degenerateCall";
|
|
894
|
+
/** A sum whose range holds a subtotal of its own cells, or a ratio. */
|
|
895
|
+
readonly SumIncludesSubtotal: "sumIncludesSubtotal";
|
|
896
|
+
/**
|
|
897
|
+
* A total, or the first line of a block, that sums its block and also adds a cell outside it:
|
|
898
|
+
* another block's line item, another block's total, or an absolute reference.
|
|
899
|
+
*/
|
|
900
|
+
readonly MisalignedReference: "misalignedReference";
|
|
901
|
+
/** A lookup that matches the nearest key rather than the key. */
|
|
902
|
+
readonly ApproximateMatch: "approximateMatch";
|
|
903
|
+
/** A lookup whose result array and lookup vector do not line up. */
|
|
904
|
+
readonly LookupShape: "lookupShape";
|
|
905
|
+
/** A reference to another workbook, a deleted reference, or a function a converter could not name. */
|
|
906
|
+
readonly ExternalReference: "externalReference";
|
|
907
|
+
/** A link to another sheet whose target row is labeled other than its own row. */
|
|
908
|
+
readonly LinkLabelMismatch: "linkLabelMismatch";
|
|
909
|
+
/** A lookup keyed by a typed string that labels neither the formula's row nor its column. */
|
|
910
|
+
readonly KeyLabelMismatch: "keyLabelMismatch";
|
|
911
|
+
/** A link read with the other sign from the sheet's other links into the same row. */
|
|
912
|
+
readonly SignVsSiblings: "signVsSiblings";
|
|
913
|
+
};
|
|
914
|
+
type ErrorCheck = typeof ErrorCheck[keyof typeof ErrorCheck];
|
|
915
|
+
/**
|
|
916
|
+
* One error check firing at a cell: the check, and the facts that make it fire.
|
|
917
|
+
*
|
|
918
|
+
* @remarks
|
|
919
|
+
* Evidence, never a verdict: what the cell breaks and where, so the reader can judge it. A
|
|
920
|
+
* pattern break is sometimes the right cell in a wrong run. There is no confidence.
|
|
921
|
+
*
|
|
922
|
+
* The evidence a cell's finding carries is the same for every cell of a filled run that breaks
|
|
923
|
+
* the same way, so a row of breaks is one region of the `anomalies` feature. Positions are
|
|
924
|
+
* therefore relative to the cell, in R1C1 (`R[-1]C` is the cell above).
|
|
925
|
+
*
|
|
926
|
+
* | check | evidence |
|
|
927
|
+
* | --- | --- |
|
|
928
|
+
* | `formula` | `axis` (`'row'` / `'column'`) the run lies along; `expected`, the R1C1 formula both neighbors share; `thickness`, the cells across the break (Excel flags only `1`); `flanks`, how far the run goes on each side; `corroborated` |
|
|
929
|
+
* | `formulaRange` | `reference`, the range the formula reads; `omitted`, the typed number just past its end |
|
|
930
|
+
* | `numberStoredAsText` | none — the cell's own text is the fact |
|
|
931
|
+
* | `emptyCellReference` | `reference`, the reference that reads an empty cell |
|
|
932
|
+
* | `unlockedFormula` | none |
|
|
933
|
+
* | `hardcodeInRun` | `axis`, `expected` (`'formula'`), `thickness`, `flanks`, `corroborated` |
|
|
934
|
+
* | `styleBreak` | `layer` (`'font'`, `'fill'`, `'numberFormat'`, `'alignment'`); `axis`; `expected`, the format both sides share; `actual`, this cell's; `thickness`, `flanks`, `corroborated` |
|
|
935
|
+
* | `styleRole` | `part` (`'fontColor'`); `role` (`'link'`, `'reference'`, `'computed'`, `'input'`); `expected`, the color most cells of that role on the sheet have; `actual`, this cell's; `majority`, how many cells of the role have `expected`; `of`, how many cells the role has on the sheet |
|
|
936
|
+
* | `repeatedReference` | `reference`, the reference counted again; `overlaps`, the one it falls inside when the two are not the same |
|
|
937
|
+
* | `degenerateCall` | `function`; `reference`, the one cell aggregated, or `literals`, the typed numbers |
|
|
938
|
+
* | `sumIncludesSubtotal` | `reference`, the range summed; `subtotal` or `ratio`, the cell inside it that is one |
|
|
939
|
+
* | `misalignedReference` | `term`, the reference outside the block; `block`, the rows (or columns) of the cell's own block that the formula sums; `landsAt`, the block the term lands in, when it lands in one; `targetRole`, what the term reads: `'lineItem'` (a line of another block), `'closingRow'` (another block's last line, a subtotal), `'outsideBlocks'` (no block) or `'absolute'` (a fixed reference, a rate or an assumption) |
|
|
940
|
+
* | `approximateMatch` | `function`; `matchType`, `'1'`, `'-1'`, `'TRUE'` or `'omitted'` |
|
|
941
|
+
* | `lookupShape` | `array`, the range the result is read from; `vector`, the range the key is found in |
|
|
942
|
+
* | `externalReference` | `kind` (`'workbook'`, `'deleted'`, `'udf'`); `reference`, or `function` for a `'udf'` |
|
|
943
|
+
* | `linkLabelMismatch` | `label` / `labelAt`, the cell's row label; `target` / `targetAt`, the label of the row it links to |
|
|
944
|
+
* | `keyLabelMismatch` | `function`; `key`; `rowLabel` / `rowLabelAt` and `columnLabel` / `columnLabelAt`, where found |
|
|
945
|
+
* | `signVsSiblings` | `reference`; `sign` (`'negative'` / `'positive'`); `siblings`, how many links into that row read the other sign; `siblingAt`, one of them |
|
|
946
|
+
*
|
|
947
|
+
* **Runs.** `formula`, `hardcodeInRun` and `styleBreak` are one rule over different layers of
|
|
948
|
+
* the sheet: a region thin against the run it sits in. The cells on both sides agree with each
|
|
949
|
+
* other and not with it, and the run goes on at least two cells each side and at least as far as
|
|
950
|
+
* the region is thick (`flanks`), so a block as large as its surroundings is a section, not a
|
|
951
|
+
* break. A single cell between two that agree is kept too, with `flanks: 1`. A format compares
|
|
952
|
+
* as authored on the cell: none (`'normal'`), one equal to the Normal style's
|
|
953
|
+
* (`'authored-normal'`), or the authored properties as JSON.
|
|
954
|
+
*
|
|
955
|
+
* `corroborated` lists the other layers that change at both of the region's edges too: formula
|
|
956
|
+
* shape (`'formulaShape'`), formula or typed value (`'hasFormula'`), the value's kind (`'kind'`),
|
|
957
|
+
* and the format layers. A lone change, corroborated by nothing, is the stronger candidate; a
|
|
958
|
+
* row that differs on many layers (a total under its line items) is usually structure.
|
|
959
|
+
*
|
|
960
|
+
* **Blocks.** `misalignedReference` reads a formula against the block it closes or opens: the
|
|
961
|
+
* lines (rows, or columns for a row-wise total) holding content in the formula's own columns,
|
|
962
|
+
* between blank lines that span them. It fires on a sum that adds the block's own cells and
|
|
963
|
+
* also, with the same sign, a cell off the block's lines: `=SUM(K51:K53)+J46` in K54. A term on
|
|
964
|
+
* the block's lines in another column (a prior period) and a term taken away are not reported,
|
|
965
|
+
* nor is a sum of other blocks' totals that reads nothing of its own block. A running total that
|
|
966
|
+
* adds the previous block's total is reported as `closingRow`, ranked low.
|
|
967
|
+
*
|
|
968
|
+
* **Roles.** A cell's role ({@link ICell.Role}, the `role` feature) is its job, from what it
|
|
969
|
+
* reads and who reads it. `styleRole` pairs a format part with the role, for links, references, computed cells and inputs
|
|
970
|
+
* beside a label: the color most cells of a role have on the
|
|
971
|
+
* sheet is the role's, and a link, reference or computed cell in another color fires when that
|
|
972
|
+
* color is one the workbook writes some role in, on any sheet (a link left black where links
|
|
973
|
+
* are green and calculations black), never when it is decorative (white, red, a section's text
|
|
974
|
+
* color). A label never fires, and an input fires only beside a label: a typed number inside a
|
|
975
|
+
* data block reads like the data around it. Colors are the authored font color as `#RRGGBB`; a
|
|
976
|
+
* cell with none authored has the Normal style's. `majority` and `of` are evidence, not a
|
|
977
|
+
* gate: a convention held by 3 of 5 cells is reported as such.
|
|
978
|
+
*
|
|
979
|
+
* **Rank** says which finding to read first. It is not a confidence. For a run finding it is
|
|
980
|
+
* `weight × (1 / thickness) × (flanks / max(2, thickness)) × (1 − corroboration)`, where
|
|
981
|
+
* `weight` is the layer's and `corroboration` is the weight of the corroborating layers over the
|
|
982
|
+
* weight of every layer that could have corroborated. The layer weights are formula shape `1`,
|
|
983
|
+
* kind `0.6`, number format `0.5`, formula or typed value `0.4`, font `0.3`, fill `0.1`,
|
|
984
|
+
* alignment `0.05`. Every other check ranks at a fixed weight: `repeatedReference` and
|
|
985
|
+
* `lookupShape` `1`, `approximateMatch` and `externalReference` `0.9`, `formulaRange` and
|
|
986
|
+
* `degenerateCall` `0.8`, `emptyCellReference` and `sumIncludesSubtotal` `0.6`,
|
|
987
|
+
* `keyLabelMismatch` and `linkLabelMismatch` `0.4`, `unlockedFormula` and `signVsSiblings` `0.1`,
|
|
988
|
+
* `numberStoredAsText` `0.05`. A `styleRole` finding ranks at the role's weight (`link` `0.6`,
|
|
989
|
+
* `reference` `0.4`, `input` `0.3`, `computed` `0.2`) times `majority / of`. A
|
|
990
|
+
* `misalignedReference` finding ranks at `0.8` times its target's share: `lineItem` `1`,
|
|
991
|
+
* `outsideBlocks` `0.5`, `closingRow` and `absolute` `0.25`.
|
|
992
|
+
*
|
|
993
|
+
* A run or `styleRole` finding's rank is then divided by the number of times the same finding
|
|
994
|
+
* (the same check and evidence) occurs in the workbook: a finding repeated across a model is the
|
|
995
|
+
* author's style, and the one that occurs once is the exception to read first. So a finding's
|
|
996
|
+
* rank can change when another sheet changes. The weights are measured on the SpreadsheetBench
|
|
997
|
+
* v2 Debugging goldens and move as other measurements arrive. Regions of the `anomalies` feature
|
|
998
|
+
* list highest rank first, and so do a cell's findings, in check order within an equal rank.
|
|
999
|
+
*
|
|
1000
|
+
* A label's position is absolute (`R12C3`), since it stays put whichever cell of a region reads
|
|
1001
|
+
* it; its text is the one read at the region's first cell.
|
|
1002
|
+
*/
|
|
1003
|
+
interface Anomaly {
|
|
1004
|
+
/** The check that fires. */
|
|
1005
|
+
readonly check: ErrorCheck;
|
|
1006
|
+
/** The facts it fires on. */
|
|
1007
|
+
readonly evidence: Readonly<Record<string, string | number | readonly string[]>>;
|
|
1008
|
+
/** Which finding to read first, highest first; see the remarks. */
|
|
1009
|
+
readonly rank: number;
|
|
1010
|
+
}
|
|
762
1011
|
}
|
|
763
1012
|
//# sourceMappingURL=ICell.d.ts.map
|
|
@@ -62,6 +62,11 @@ export interface ICellHeader {
|
|
|
62
62
|
* @see `IOutline`
|
|
63
63
|
*/
|
|
64
64
|
getOutlineLevel(): number;
|
|
65
|
+
/**
|
|
66
|
+
* Whether the column's width was last set by fitting it to its content. Setting the width any
|
|
67
|
+
* other way clears it, as in Excel. Always `false` for a row.
|
|
68
|
+
*/
|
|
69
|
+
isBestFit(): boolean;
|
|
65
70
|
/**
|
|
66
71
|
* For runtime introspection.
|
|
67
72
|
*/
|
|
@@ -152,13 +157,9 @@ export declare namespace ICellHeader {
|
|
|
152
157
|
*/
|
|
153
158
|
cl?: boolean;
|
|
154
159
|
/**
|
|
155
|
-
*
|
|
156
|
-
*
|
|
157
|
-
* @remarks
|
|
158
|
-
* * The style id is only available for export for backward compatible `ISheet.ToJSONOptions.includeHeaderStyles` is set.
|
|
159
|
-
* * This flag is ignored during loading.
|
|
160
|
+
* Best fit. The column's width was last set by fitting it to its content.
|
|
160
161
|
*/
|
|
161
|
-
|
|
162
|
+
bf?: boolean;
|
|
162
163
|
}
|
|
163
164
|
}
|
|
164
165
|
//# sourceMappingURL=ICellHeader.d.ts.map
|
|
@@ -32,7 +32,7 @@ export interface ICellProtection {
|
|
|
32
32
|
*
|
|
33
33
|
* @remarks
|
|
34
34
|
* * An exception, like {@link isAlwaysUnlocked}: a formula shows when the sheet
|
|
35
|
-
* (`
|
|
35
|
+
* (`IWorksheetProtection.isShowFormulasAllowed`) or the cell allows it, so this only matters while
|
|
36
36
|
* the sheet hides them.
|
|
37
37
|
* * A hidden formula reads as no formula ({@link ICell.getFormula} is `null`), but it still
|
|
38
38
|
* calculates and is still saved with the workbook. It is a view rule, not secrecy.
|
|
@@ -103,6 +103,11 @@ export interface ICellHeaderRange {
|
|
|
103
103
|
* {@inheritDoc ICellRange.getAddress}
|
|
104
104
|
*/
|
|
105
105
|
getAddress(r1c1?: boolean): string;
|
|
106
|
+
/**
|
|
107
|
+
* @deprecated Use {@link getAddress}.
|
|
108
|
+
* @hidden
|
|
109
|
+
*/
|
|
110
|
+
getA1(): string;
|
|
106
111
|
/**
|
|
107
112
|
* Returns the address as a string.
|
|
108
113
|
*/
|
|
@@ -160,14 +165,6 @@ export declare namespace ICellHeaderRange {
|
|
|
160
165
|
* @defaultValue false
|
|
161
166
|
*/
|
|
162
167
|
includeSizes?: boolean;
|
|
163
|
-
/**
|
|
164
|
-
* Include headers that have custom styling.
|
|
165
|
-
*
|
|
166
|
-
* @defaultValue false
|
|
167
|
-
*
|
|
168
|
-
* @deprecated We are removing styles from headers (but will need in sheet for backward compatibility with Excel)
|
|
169
|
-
*/
|
|
170
|
-
includeStyles?: boolean;
|
|
171
168
|
/**
|
|
172
169
|
* When scanning skip cells that are hidden via headers.
|
|
173
170
|
*
|
|
@@ -271,7 +268,7 @@ export declare namespace ICellHeaderRange {
|
|
|
271
268
|
/**
|
|
272
269
|
* Called when the item is copied to a new header range.
|
|
273
270
|
*/
|
|
274
|
-
copyTo(range: ICellHeaderRange, options?: ICellHeaderRange.CopyOptions):
|
|
271
|
+
copyTo(range: ICellHeaderRange, options?: ICellHeaderRange.CopyOptions): RunCoords;
|
|
275
272
|
/**
|
|
276
273
|
* The RunCoords that bounds the current item.
|
|
277
274
|
*/
|
|
@@ -74,6 +74,11 @@ export interface ICellHeaderRanges {
|
|
|
74
74
|
* {@inheritDoc ICellHeaderRange.getAddress}
|
|
75
75
|
*/
|
|
76
76
|
getAddress(r1c1?: boolean): string;
|
|
77
|
+
/**
|
|
78
|
+
* @deprecated Use {@link getAddress}.
|
|
79
|
+
* @hidden
|
|
80
|
+
*/
|
|
81
|
+
getA1(): string;
|
|
77
82
|
/**
|
|
78
83
|
* {@inheritDoc ICellHeaderRange.toString}
|
|
79
84
|
*/
|