@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,39 @@
|
|
|
1
|
+
import { ICollection, AbstractCollection } from '../type';
|
|
2
|
+
import { IListener } from '../listener';
|
|
3
|
+
import { IWorksheetCollection } from './IWorksheetCollection';
|
|
4
|
+
import { IWorksheet } from './IWorksheet';
|
|
5
|
+
import { ISheet } from './ISheet';
|
|
6
|
+
/**
|
|
7
|
+
* Implementation for {@link IWorksheetCollection}.
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
* A front over the workbook's own sheet state — the workbook keeps the store and the events,
|
|
11
|
+
* this class keeps the API. `onCollectionChange` is the workbook's `onSheetsChange`, forwarded
|
|
12
|
+
* with this collection as the source.
|
|
13
|
+
*/
|
|
14
|
+
export declare class WorksheetCollection extends AbstractCollection<IWorksheet, IWorksheetCollection.GetItemsOptions> implements IWorksheetCollection {
|
|
15
|
+
private _add;
|
|
16
|
+
private _get;
|
|
17
|
+
private _addListeners;
|
|
18
|
+
private _getSelected;
|
|
19
|
+
constructor(add: (options: IWorksheetCollection.AddOptions | string | number) => IWorksheet, get: (name?: string, visibility?: ISheet.Visibility) => IWorksheet[], addListeners: (listeners: ICollection.IListeners, options?: IListener.Options) => IListener.Remove, getSelected: () => IWorksheet | null);
|
|
20
|
+
/** {@inheritDoc IWorksheetCollection.getActive} */
|
|
21
|
+
getActive(): IWorksheet | null;
|
|
22
|
+
/** {@inheritDoc IWorksheetCollection.getAt} */
|
|
23
|
+
getAt(index: number): IWorksheet | null;
|
|
24
|
+
/** {@inheritDoc IWorksheetCollection.getByIndex} */
|
|
25
|
+
getByIndex(index: number): IWorksheet | null;
|
|
26
|
+
/** {@inheritDoc IWorksheetCollection.getAll} */
|
|
27
|
+
getAll(): IWorksheet[];
|
|
28
|
+
/** {@inheritDoc IWorksheetCollection.add} */
|
|
29
|
+
add(options?: IWorksheetCollection.AddOptions | string | number): IWorksheet;
|
|
30
|
+
/** {@inheritDoc AbstractCollection._getItems} */
|
|
31
|
+
protected _getItems(options?: IWorksheetCollection.GetItemsOptions): IWorksheet[];
|
|
32
|
+
/** {@inheritDoc IWorksheetCollection.getByName} */
|
|
33
|
+
getByName(name: string): IWorksheet;
|
|
34
|
+
/** {@inheritDoc ICollection.addListeners} */
|
|
35
|
+
addListeners(listeners: ICollection.IListeners, options?: IListener.Options): IListener.Remove;
|
|
36
|
+
/** {@inheritDoc IWorksheetCollection.isIWorksheetCollection} */
|
|
37
|
+
get isIWorksheetCollection(): true;
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=WorksheetCollection.d.ts.map
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { IRange } from '@sheetxl/primitives';
|
|
2
|
+
import { ICell } from '../cell';
|
|
3
|
+
import { ISpatialMap, ISpatialQuery } from '../collections';
|
|
4
|
+
import { ICellStyle, IStyleCollection } from '../style';
|
|
5
|
+
import { IProperties } from '../type';
|
|
6
|
+
import { IWorksheet } from './IWorksheet';
|
|
7
|
+
import { IgnoredErrors } from './_IgnoredErrors';
|
|
8
|
+
import { CellKind } from './_Kinds';
|
|
9
|
+
/**
|
|
10
|
+
* The findings at a cell, interned per map: equal findings are one object, in rank order, so a
|
|
11
|
+
* region's payload identity is its content and the fragments of one finding regroup.
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
export type AnomalySet = readonly ICell.Anomaly[];
|
|
15
|
+
type StyleMap = ISpatialQuery<IProperties.ICellRanged<ICellStyle.Properties>>;
|
|
16
|
+
/** What the role layer is read from: a sheet's content and its formulas, as they are now. @internal */
|
|
17
|
+
export interface RoleSource {
|
|
18
|
+
readonly sheet: IWorksheet;
|
|
19
|
+
/** The extent the checks run over; `null` for an empty sheet. */
|
|
20
|
+
readonly bounds: IRange.Coords | null;
|
|
21
|
+
/** What each cell holds (`ICellRange.Feature.Kind`). */
|
|
22
|
+
readonly kinds: ISpatialQuery<CellKind>;
|
|
23
|
+
readonly contentful: ISpatialQuery<unknown>;
|
|
24
|
+
readonly formulas: ISpatialQuery<unknown>;
|
|
25
|
+
}
|
|
26
|
+
/** What the checks read. Everything is the sheet as it is now; nothing here is written. @internal */
|
|
27
|
+
export interface AnomalySource extends RoleSource {
|
|
28
|
+
/** Each cell's job (`ICellRange.Feature.Role`), the layer the pairing reads. */
|
|
29
|
+
readonly roles: ISpatialQuery<ICell.Role>;
|
|
30
|
+
/** The direct styles that carry font, number format and alignment. */
|
|
31
|
+
readonly contentStyles: StyleMap;
|
|
32
|
+
/** The direct fills. */
|
|
33
|
+
readonly fillStyles: StyleMap;
|
|
34
|
+
/** Where the named styles, Normal among them, are read. */
|
|
35
|
+
readonly styles: IStyleCollection;
|
|
36
|
+
readonly ignored: IgnoredErrors;
|
|
37
|
+
/** Excel draws no unlocked-formula indicator on a protected sheet. */
|
|
38
|
+
readonly isProtected: boolean;
|
|
39
|
+
/** The font colors the workbook's other sheets write their roles in ({@link roleColorsOf}). */
|
|
40
|
+
readonly workbookRoleColors: () => ReadonlySet<string>;
|
|
41
|
+
}
|
|
42
|
+
type Rect = IRange.Coords;
|
|
43
|
+
/** @internal */
|
|
44
|
+
export type Evidence = ICell.Anomaly['evidence'];
|
|
45
|
+
/** One sheet's findings at their first-pass rank, before the workbook's repeats are counted. @internal */
|
|
46
|
+
export interface AnomalyFindings {
|
|
47
|
+
readonly entries: readonly ISpatialMap.Entry<ICell.Anomaly>[];
|
|
48
|
+
/** For each repeat-ranked finding, its identity across sheets and the rectangles it holds here. */
|
|
49
|
+
readonly repeats: ReadonlyMap<ICell.Anomaly, {
|
|
50
|
+
readonly key: string;
|
|
51
|
+
readonly count: number;
|
|
52
|
+
}>;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* The first pass: where the error checks fire on one sheet, each finding ranked alone.
|
|
56
|
+
*
|
|
57
|
+
* @remarks
|
|
58
|
+
* Every check reads the sheet's partitions and its formulas' references, at the altitude of a
|
|
59
|
+
* region: a formula region is one authored formula, so its references are a function of the
|
|
60
|
+
* cell's position, and the cells a check names are found by rectangle arithmetic against the
|
|
61
|
+
* partitions. No check reads a cell.
|
|
62
|
+
* @internal
|
|
63
|
+
*/
|
|
64
|
+
export declare function findAnomalies(source: AnomalySource): AnomalyFindings;
|
|
65
|
+
/** How often each repeat-ranked finding occurs over the sheets given, by identity. @internal */
|
|
66
|
+
export declare function repeatsOf(sheets: readonly AnomalyFindings[]): Map<string, number>;
|
|
67
|
+
/**
|
|
68
|
+
* The second pass: one sheet's map, each repeat-ranked finding's rank divided by how often it
|
|
69
|
+
* occurs in the workbook (`repeats`), so the exception ranks above the pattern.
|
|
70
|
+
* @internal
|
|
71
|
+
*/
|
|
72
|
+
export declare function buildAnomalies(own: AnomalyFindings, repeats: ReadonlyMap<string, number>, ignored: IgnoredErrors): ISpatialMap<AnomalySet>;
|
|
73
|
+
/** The findings so far, one rectangle list per distinct finding. @internal */
|
|
74
|
+
export declare class _Findings {
|
|
75
|
+
private readonly _groups;
|
|
76
|
+
/** The rank of a check's finding before its evidence scales it. */
|
|
77
|
+
weightOf(check: ICell.ErrorCheck): number;
|
|
78
|
+
/** `rank` is a function of the check and the evidence, so one finding has one. */
|
|
79
|
+
add(check: ICell.ErrorCheck, evidence: Evidence, rect: Rect, rank?: number): void;
|
|
80
|
+
/**
|
|
81
|
+
* One entry per merged rectangle of each finding (a finding's rectangles may overlap), and the
|
|
82
|
+
* count of those rectangles for the repeat-ranked ones.
|
|
83
|
+
*/
|
|
84
|
+
result(): AnomalyFindings;
|
|
85
|
+
}
|
|
86
|
+
/** A formula region: one authored formula over a rectangle. @internal */
|
|
87
|
+
export interface FormulaRegion {
|
|
88
|
+
readonly coords: Rect;
|
|
89
|
+
/** The formula in R1C1, which is what agrees between two cells of one run. */
|
|
90
|
+
readonly r1c1: string;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* The role layer (`ICellRange.Feature.Role`): the kind layer refined by what a formula reads and
|
|
94
|
+
* by who reads a cell. Typed cells are `label` (nothing reads them) or `input` (something does); a
|
|
95
|
+
* formula is a `link`, a `reference`, else `computed` where something reads it and `output` where
|
|
96
|
+
* nothing does. "Who reads it" is this sheet's own formulas (`referencesOf`); a reader on another
|
|
97
|
+
* sheet is not seen, so a cell only another sheet reads is a `label` or an `output` here.
|
|
98
|
+
* @internal
|
|
99
|
+
*/
|
|
100
|
+
export declare function buildRoles(source: RoleSource): ISpatialMap<ICell.Role>;
|
|
101
|
+
/**
|
|
102
|
+
* The font colors a sheet's roles are written in: the plurality color of each role, typed cells'
|
|
103
|
+
* among them. A workbook's role colors are the union over its sheets, which is what tells the
|
|
104
|
+
* inputs' blue from a decorative red on a sheet whose own typed numbers are mostly black years.
|
|
105
|
+
* @internal
|
|
106
|
+
*/
|
|
107
|
+
export declare function roleColorsOf(source: AnomalySource): ReadonlySet<string>;
|
|
108
|
+
export {};
|
|
109
|
+
//# sourceMappingURL=_Anomalies.d.ts.map
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { IRange } from '@sheetxl/primitives';
|
|
2
|
+
import { ICalculation } from '../calculation';
|
|
3
|
+
import { SpatialMap } from '../collections';
|
|
4
|
+
import { IWorksheet } from './IWorksheet';
|
|
5
|
+
import { AnomalySource, FormulaRegion, RoleSource, _Findings } from './_Anomalies';
|
|
6
|
+
type Node = ICalculation.FormulaNode;
|
|
7
|
+
type Rect = IRange.Coords;
|
|
8
|
+
type At = IRange.CellCoords;
|
|
9
|
+
/**
|
|
10
|
+
* `repeatedReference`: the same cell or range counted twice in one sum — `SUM(F24:F29)+F25`,
|
|
11
|
+
* `N20-N23-N23-N26`. Two references overlap when they share a cell; they count twice when they
|
|
12
|
+
* carry the same sign, so `SUM(B2:B9)-B5` (taking one out) does not fire.
|
|
13
|
+
*/
|
|
14
|
+
export declare function checkRepeatedReference(source: AnomalySource, regions: readonly FormulaRegion[], findings: _Findings): void;
|
|
15
|
+
/**
|
|
16
|
+
* `degenerateCall`: an aggregate that aggregates nothing — `AVERAGE(J96)` over one cell, or
|
|
17
|
+
* `SUM(360,365)` over typed numbers.
|
|
18
|
+
*/
|
|
19
|
+
export declare function checkDegenerateCall(source: AnomalySource, regions: readonly FormulaRegion[], findings: _Findings): void;
|
|
20
|
+
/**
|
|
21
|
+
* `sumIncludesSubtotal`: a sum that holds a cell that is itself a sum of the sum's own cells
|
|
22
|
+
* (`SUM(F17:F21)` where F21 sums F17:F20; `=F21+F18` likewise), or a summed range holding a
|
|
23
|
+
* percent-formatted ratio (`=F19/F18`, a margin row inside a total). The cell may be on the sheet
|
|
24
|
+
* the sum reads. A ratio of a typed divisor (`=F3/12`) is an allocation and does not fire, nor
|
|
25
|
+
* does a ratio the sheet does not show as a percent (a per-unit line item).
|
|
26
|
+
*/
|
|
27
|
+
export declare function checkSumIncludesSubtotal(source: AnomalySource, regions: readonly FormulaRegion[], findings: _Findings): void;
|
|
28
|
+
/**
|
|
29
|
+
* `misalignedReference`: a formula in the row that closes (or opens) its block sums the block and
|
|
30
|
+
* also adds a cell outside it — `=SUM(K51:K53)+J46`. A block is the contentful lines in the
|
|
31
|
+
* region's own columns (rows) between blank lines that span them; a row-wise total reads the
|
|
32
|
+
* same with the axes swapped. A term is aligned when it lands inside the block in the cell's own
|
|
33
|
+
* column. Only a sum with an aligned term fires, so a grand total of other blocks' totals does not;
|
|
34
|
+
* and only a term added the way an aligned one is, so `=D20-D18` (a deduction) does not.
|
|
35
|
+
*/
|
|
36
|
+
export declare function checkMisalignedReference(source: AnomalySource, regions: readonly FormulaRegion[], findings: _Findings): void;
|
|
37
|
+
/**
|
|
38
|
+
* `approximateMatch`: a lookup that matches the nearest key rather than the key — `MATCH` with a
|
|
39
|
+
* type of `1` or `-1` or none, `VLOOKUP` / `HLOOKUP` without `FALSE`, `XMATCH` / `XLOOKUP` with a
|
|
40
|
+
* match mode of `1` or `-1`. Fires even on a sorted selector: the type is the fact. A type read
|
|
41
|
+
* from a cell is not known here and does not fire.
|
|
42
|
+
*/
|
|
43
|
+
export declare function checkApproximateMatch(source: AnomalySource, regions: readonly FormulaRegion[], findings: _Findings): void;
|
|
44
|
+
/**
|
|
45
|
+
* `lookupShape`: a lookup whose two arrays do not line up — `INDEX(M30:M32,MATCH(x,L29:L31,0))`, or
|
|
46
|
+
* `XLOOKUP(x,L29:L31,M30:M32)`. The position found in one is read from the other, so a different
|
|
47
|
+
* start or end along the vector's axis reads the wrong line.
|
|
48
|
+
*/
|
|
49
|
+
export declare function checkLookupShape(source: AnomalySource, regions: readonly FormulaRegion[], findings: _Findings): void;
|
|
50
|
+
/**
|
|
51
|
+
* `externalReference`: a formula that reads outside this workbook or nowhere — `[1]Sheet!A1` to
|
|
52
|
+
* another workbook (`kind: 'workbook'`), a `#REF!` left by a deletion (`'deleted'`), a function
|
|
53
|
+
* a converter wrapped as unknown (`_XLUDF.`, `'udf'`).
|
|
54
|
+
*/
|
|
55
|
+
export declare function checkExternalReference(source: AnomalySource, regions: readonly FormulaRegion[], findings: _Findings): void;
|
|
56
|
+
/** One term of a sum: a reference, added (`1`) or taken away (`-1`). */
|
|
57
|
+
export interface Leaf {
|
|
58
|
+
readonly node: Node;
|
|
59
|
+
readonly sign: 1 | -1;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Every sum in a tree, as the references it adds and takes away. A sum is a `SUM` or a run of
|
|
63
|
+
* `+` and `-`, with parentheses read through; anything else (`*`, `IF`, `AVERAGE`) ends it, and
|
|
64
|
+
* its arguments start sums of their own. A reference that is not summed (`AVERAGE(B2:B9)`,
|
|
65
|
+
* `INDEX(B2:B9,3)`) is in no sum.
|
|
66
|
+
* @internal
|
|
67
|
+
*/
|
|
68
|
+
export declare function additiveChains(root: Node): Leaf[][];
|
|
69
|
+
/** Every node of a tree, the root first. @internal */
|
|
70
|
+
export declare function nodesOf(root: Node): Generator<Node>;
|
|
71
|
+
/** @internal */
|
|
72
|
+
export declare function treeOf(sheet: IWorksheet, region: FormulaRegion): Node | null;
|
|
73
|
+
/** A sheet's formula regions, indexed by where they lie. @internal */
|
|
74
|
+
export interface SheetFormulas {
|
|
75
|
+
readonly sheet: IWorksheet;
|
|
76
|
+
readonly regions: readonly FormulaRegion[];
|
|
77
|
+
readonly index: SpatialMap<FormulaRegion>;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* The sheets a build's references land on, by lower-case name: this one, and each other sheet of
|
|
81
|
+
* the workbook read once, as its formula partition.
|
|
82
|
+
* @internal
|
|
83
|
+
*/
|
|
84
|
+
export declare class _Sheets {
|
|
85
|
+
private readonly _source;
|
|
86
|
+
readonly own: string;
|
|
87
|
+
private readonly _formulas;
|
|
88
|
+
private readonly _sheets;
|
|
89
|
+
constructor(_source: AnomalySource, regions: readonly FormulaRegion[]);
|
|
90
|
+
/** The worksheet a reference's sheet name names, or `null` when the workbook has none. */
|
|
91
|
+
sheetOf(name: string): IWorksheet | null;
|
|
92
|
+
formulasOf(name: string): SheetFormulas | null;
|
|
93
|
+
}
|
|
94
|
+
/** The sheet reader of one build, shared by its checks. @internal */
|
|
95
|
+
export declare function sheetsOf(source: AnomalySource, regions: readonly FormulaRegion[]): _Sheets;
|
|
96
|
+
/** `SUM`, with the file format's `_xlfn.` / `_xlws.` spelling taken off. @internal */
|
|
97
|
+
export declare const functionName: (node: Node) => string;
|
|
98
|
+
/** @internal */
|
|
99
|
+
export declare const firstCellOf: (region: FormulaRegion) => At;
|
|
100
|
+
/**
|
|
101
|
+
* Where a fact found at a region's first cell holds: the whole region when it holds at its last
|
|
102
|
+
* cell as well, otherwise the first cell alone; `null` when it does not hold at the first cell.
|
|
103
|
+
* A filled formula moves every relative reference by the same step, so the two ends decide it.
|
|
104
|
+
* @internal
|
|
105
|
+
*/
|
|
106
|
+
export declare function extentOf(region: FormulaRegion, holds: (at: At) => boolean): Rect | null;
|
|
107
|
+
/** A reference in R1C1, read from `at`, with its sheet when it names one. @internal */
|
|
108
|
+
export declare const imageOf: (node: Node, at: At) => string;
|
|
109
|
+
/** @internal */
|
|
110
|
+
export declare const isReference: (node: Node) => boolean;
|
|
111
|
+
/** Strips parentheses. @internal */
|
|
112
|
+
export declare function unwrap(node: Node): Node;
|
|
113
|
+
/** The number a literal argument is (`-1`, `(1)`, `TRUE` as `1`), or `undefined`. @internal */
|
|
114
|
+
export declare function numberOf(node: Node): number | undefined;
|
|
115
|
+
/** The sheet name references are compared under. @internal */
|
|
116
|
+
export declare const ownSheetName: (source: RoleSource) => string;
|
|
117
|
+
/** A reference read from a cell: its sheet (lower case) and its cells. @internal */
|
|
118
|
+
export interface Resolved {
|
|
119
|
+
readonly sheet: string;
|
|
120
|
+
readonly rect: Rect;
|
|
121
|
+
}
|
|
122
|
+
/** Where a cell or range reference lands when its formula sits at `at`; `null` for anything else. @internal */
|
|
123
|
+
export declare function resolve(node: Node, at: At, own: string): Resolved | null;
|
|
124
|
+
export {};
|
|
125
|
+
//# sourceMappingURL=_AnomalyFormulaChecks.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AnomalySource, FormulaRegion, _Findings } from './_Anomalies';
|
|
2
|
+
/**
|
|
3
|
+
* `linkLabelMismatch`: a link to another sheet whose target row is labeled other than the row it
|
|
4
|
+
* sits in — the row labeled Interest reading the row labeled Tax. Labels compare after case,
|
|
5
|
+
* punctuation and spacing are dropped; a row with no label on either side says nothing.
|
|
6
|
+
*
|
|
7
|
+
* Rows only: column headers differ between a model's sheets as a matter of layout (`2026P` against
|
|
8
|
+
* `Millions`), and on the v2 goldens the column pair found no planted link the row pair missed.
|
|
9
|
+
*/
|
|
10
|
+
export declare function checkLinkLabelMismatch(source: AnomalySource, regions: readonly FormulaRegion[], findings: _Findings): void;
|
|
11
|
+
/**
|
|
12
|
+
* `keyLabelMismatch`: a lookup keyed by a typed string that is neither the label of the row nor
|
|
13
|
+
* of the column the formula sits in — `MATCH("Tax",…)` in the row labeled Interest.
|
|
14
|
+
*/
|
|
15
|
+
export declare function checkKeyLabelMismatch(source: AnomalySource, regions: readonly FormulaRegion[], findings: _Findings): void;
|
|
16
|
+
/**
|
|
17
|
+
* `signVsSiblings`: a link into a row that the sheet's other links into that row read with the
|
|
18
|
+
* other sign — `=-'Debt'!C20` where two other links read `='Debt'!D20`, `='Debt'!E20`.
|
|
19
|
+
*/
|
|
20
|
+
export declare function checkSignVsSiblings(source: AnomalySource, regions: readonly FormulaRegion[], findings: _Findings): void;
|
|
21
|
+
//# sourceMappingURL=_AnomalyLabelChecks.d.ts.map
|
|
@@ -6,7 +6,7 @@ import { ICellRange } from '../cellRange';
|
|
|
6
6
|
import { ICell } from '../cell';
|
|
7
7
|
import { ICellStyle } from '../style';
|
|
8
8
|
import { InternalTupleUpdate } from './_SheetStateTypes';
|
|
9
|
-
import { SheetMutationContext } from './
|
|
9
|
+
import { SheetMutationContext } from './Worksheet';
|
|
10
10
|
import { ScanStyleUpdate } from './_SheetMutations';
|
|
11
11
|
/**
|
|
12
12
|
* What {@link CellBuffer} needs from its sheet.
|
|
@@ -34,6 +34,11 @@ export interface CellBufferContext {
|
|
|
34
34
|
isLocalStyle(transaction: ITransaction, rowIndex: number, colIndex: number, update: ICellStyle.Update): boolean;
|
|
35
35
|
/** What the sheet's cell writes are made through; the held ones are scanned and written with it. */
|
|
36
36
|
getMutations(): SheetMutationContext;
|
|
37
|
+
/**
|
|
38
|
+
* Whether a write is to be made as it comes: a batch it would be held in is told of each of its
|
|
39
|
+
* steps, and a held write would be told late.
|
|
40
|
+
*/
|
|
41
|
+
isMadeAsItComes(): boolean;
|
|
37
42
|
}
|
|
38
43
|
/**
|
|
39
44
|
* Single-cell writes made inside an open transaction, held and made as ONE write when something
|
|
@@ -163,6 +168,11 @@ export declare class CellBuffer {
|
|
|
163
168
|
getGeneration(): number;
|
|
164
169
|
/** Makes the held writes, as one. */
|
|
165
170
|
flush(): void;
|
|
171
|
+
/**
|
|
172
|
+
* Makes the held writes and closes the transaction they were held in, so what is written next is
|
|
173
|
+
* not nested in it. A transaction still open inside that one keeps it open.
|
|
174
|
+
*/
|
|
175
|
+
release(): void;
|
|
166
176
|
/** Drops the held writes: the transaction they were made in rolled back, or the sheet closed. */
|
|
167
177
|
discard(): void;
|
|
168
178
|
private _toRange;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IRange } from '@sheetxl/primitives';
|
|
2
2
|
import { IMovable } from '../movable';
|
|
3
3
|
import { ICellRange, ICellHeaderRange } from '../cellRange';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { IWorksheet } from './IWorksheet';
|
|
5
|
+
import { Worksheet } from './Worksheet';
|
|
6
6
|
/**
|
|
7
7
|
* The pasted images of `areas` (absolute ranges within the marked source `coordFrom`):
|
|
8
8
|
* each area's offset within the source, tiled across the fitted destination `rangeTo` with
|
|
@@ -15,19 +15,26 @@ import { Sheet } from './Sheet';
|
|
|
15
15
|
* is already LCM-expanded or clipped, so tiling here is a pure function of the two ranges.
|
|
16
16
|
*/
|
|
17
17
|
export declare function tileMarkedAreas(areas: readonly IRange.Coords[], coordFrom: Readonly<IRange.Coords>, rangeTo: Readonly<IRange.Coords>, transpose?: boolean): IRange.Coords[];
|
|
18
|
+
/**
|
|
19
|
+
* Runs every part's `prepare`, and waits only when one of them has something to wait for: with
|
|
20
|
+
* nothing to prepare, the paste stays in its caller's synchronous extent.
|
|
21
|
+
*/
|
|
22
|
+
export declare function prepareParts<D, O>(parts: readonly {
|
|
23
|
+
prepare?(destination: D, options?: O): Promise<void> | void;
|
|
24
|
+
}[], destination: D, options?: O): Promise<void> | void;
|
|
18
25
|
/**
|
|
19
26
|
* Converts a header snapshot to sheet.
|
|
20
27
|
*/
|
|
21
28
|
export declare function headerToSheetSnapshot(rangeMark: ICellHeaderRange, coordMark: IRange.Coords, optionsMark: ICellHeaderRange.CopyOptions): Partial<ICellRange.ISnapshot>;
|
|
22
29
|
/**
|
|
23
|
-
* Wraps a copySheetTo function into a
|
|
30
|
+
* Wraps a copySheetTo function into a IWorksheet.ISnapshot.
|
|
24
31
|
* * This will error if snapshot is a cut and called a second.
|
|
25
32
|
* @internal
|
|
26
33
|
*/
|
|
27
|
-
export declare function callbackToSheetSnapshot(sheetFrom:
|
|
34
|
+
export declare function callbackToSheetSnapshot(sheetFrom: IWorksheet, sheetMark: IWorksheet, coordsFrom: readonly IRange.Coords[], description: string, optionsMark: ICellRange.CopyOptions, copySheetTo: (sheetRange: ICellRange, options?: ICellRange.CopyOptions) => IRange.Coords): ICellRange.ISnapshot;
|
|
28
35
|
/**
|
|
29
36
|
* Converts an array of Snapshots into a single snapshot.
|
|
30
37
|
*/
|
|
31
|
-
export declare function arrToSheetSnapshot(snapshots: Partial<ICellRange.ISnapshot>[], sheet:
|
|
32
|
-
export declare function movablesToSheetSnapshot(sheetMark:
|
|
38
|
+
export declare function arrToSheetSnapshot(snapshots: Partial<ICellRange.ISnapshot>[], sheet: IWorksheet, sheetMark: IWorksheet, coordsMark: IRange.Coords, optionsMark: ICellRange.CopyOptions, descriptionMark: string, snapshotNative?: ICellRange.ISnapshot | null): ICellRange.ISnapshot;
|
|
39
|
+
export declare function movablesToSheetSnapshot(sheetMark: Worksheet, coordsMark: readonly IRange.Coords[], movablesSelectionMark: readonly IMovable[], markOptions: ICellRange.CopyOptions): ICellRange.ISnapshot<IWorksheet> | null;
|
|
33
40
|
//# sourceMappingURL=_CopyUtils.d.ts.map
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { IRange } from '@sheetxl/primitives';
|
|
2
|
+
import { CoordUtils } from '@sheetxl/utils';
|
|
3
|
+
import { ICell } from '../cell';
|
|
4
|
+
import { ISpatialMap } from '../collections';
|
|
5
|
+
import { IWorksheet } from './IWorksheet';
|
|
6
|
+
/**
|
|
7
|
+
* The checks a cell ignores, interned: equal sets are one object, in the schema's order, so a
|
|
8
|
+
* region's payload identity is its content and two fragments of one ignore regroup.
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
11
|
+
export type ErrorCheckSet = readonly ICell.ErrorCheck[];
|
|
12
|
+
/** The interned set of `checks`; `null` for none (an unknown name is dropped). */
|
|
13
|
+
export declare function internChecks(checks: Iterable<ICell.ErrorCheck>): ErrorCheckSet | null;
|
|
14
|
+
/**
|
|
15
|
+
* The cells where Excel's error checks are ignored: one spatial map whose payload is the set of
|
|
16
|
+
* checks a cell ignores. Presence is the ignore; an entry goes when its set empties. Immutable;
|
|
17
|
+
* each change returns a new holder.
|
|
18
|
+
*
|
|
19
|
+
* @remarks
|
|
20
|
+
* Excel's rules (`openpy-parity/probe-ignored-errors.ps1`, 2026-10-18): the regions move with
|
|
21
|
+
* structural edits like cell content, an insert inside one splitting it; they are never copied
|
|
22
|
+
* (copy, paste, fill, the destination of a cut); and writing or clearing a cell, contents or
|
|
23
|
+
* formats, removes its ignores.
|
|
24
|
+
* @internal
|
|
25
|
+
*/
|
|
26
|
+
export declare class IgnoredErrors {
|
|
27
|
+
static readonly Empty: IgnoredErrors;
|
|
28
|
+
private readonly _map;
|
|
29
|
+
private constructor();
|
|
30
|
+
/** From {@link IWorksheet.JSON.ignoredErrors}; references that overlap ignore the union. */
|
|
31
|
+
static fromJSON(json: IWorksheet.JSON['ignoredErrors'], entireCoords: IRange.Coords): IgnoredErrors;
|
|
32
|
+
isEmpty(): boolean;
|
|
33
|
+
/** The map, for the sheet's range-state readers; `null` when nothing is ignored. */
|
|
34
|
+
getMap(): ISpatialMap<ErrorCheckSet> | null;
|
|
35
|
+
/** The checks `cell` ignores, or `null`. */
|
|
36
|
+
getAt(cell: IRange.CellCoords): ErrorCheckSet | null;
|
|
37
|
+
/** With `check` ignored, or no longer ignored, over `ranges`. */
|
|
38
|
+
set(ranges: readonly IRange.Coords[], check: ICell.ErrorCheck, ignored: boolean): IgnoredErrors;
|
|
39
|
+
/** Shifted by a structural edit of `ranges`, one range at a time, in order. */
|
|
40
|
+
shift(ranges: readonly IRange.Coords[], direction: IRange.Direction, coordValidator?: CoordUtils.CoordValidator): IgnoredErrors;
|
|
41
|
+
/** Without any ignore over `ranges`, for cells written or cleared. */
|
|
42
|
+
remove(...touched: (readonly IRange.Coords[])[]): IgnoredErrors;
|
|
43
|
+
/** As {@link IWorksheet.JSON.ignoredErrors}, in range order, or `null` when nothing is ignored. */
|
|
44
|
+
toJSON(entireCoords: IRange.Coords): IWorksheet.JSON['ignoredErrors'] | null;
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=_IgnoredErrors.d.ts.map
|
|
@@ -2,13 +2,13 @@ import { IRange, Scalar, IRangeStats } from '@sheetxl/primitives';
|
|
|
2
2
|
import { IListener } from '../listener';
|
|
3
3
|
import { ICellStyle } from '../style';
|
|
4
4
|
import { ICell } from '../cell';
|
|
5
|
-
import {
|
|
5
|
+
import { IWorksheet } from './IWorksheet';
|
|
6
6
|
import { ICellRange, ICellRegions, ICellRanges, ICellHeaderRanges } from '../cellRange';
|
|
7
7
|
import { SheetRanges, SheetRangesOptions } from './SheetRanges';
|
|
8
8
|
export declare function RETURN_FALSE(): boolean;
|
|
9
9
|
export declare function RETURN_TRUE(): boolean;
|
|
10
10
|
export declare function RETURN_NULL(): any;
|
|
11
|
-
export declare function getInvalidCell(sheet:
|
|
11
|
+
export declare function getInvalidCell(sheet: IWorksheet | null): ICell;
|
|
12
12
|
/**
|
|
13
13
|
* This is for 0 size ranges.
|
|
14
14
|
* @internal
|
|
@@ -42,6 +42,7 @@ export declare class InvalidSheetRanges extends SheetRanges {
|
|
|
42
42
|
getStats(): IRangeStats;
|
|
43
43
|
getCounts(): ICellRange.Counts;
|
|
44
44
|
getRegions(): ICellRegions;
|
|
45
|
+
getAnomalies(): ICellRegions;
|
|
45
46
|
getDirectPrecedents(): Promise<ICellRanges | null>;
|
|
46
47
|
getDirectDependents(): Promise<ICellRanges | null>;
|
|
47
48
|
getPrecedents(): Promise<ICellRanges | null>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Scalar } from '@sheetxl/primitives';
|
|
2
|
+
import { ISparseGrid, ISpatialMap, ISpatialQuery } from '../collections';
|
|
3
|
+
/**
|
|
4
|
+
* What a cell holds (`ICellRange.Feature.Kind`). A formula cell is the kind of its result.
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export declare const CellKind: {
|
|
8
|
+
readonly Number: "number";
|
|
9
|
+
/** A number under a date or time format. */
|
|
10
|
+
readonly Date: "date";
|
|
11
|
+
readonly Text: "text";
|
|
12
|
+
/** Text a typed entry would read as a number: Excel's number stored as text. */
|
|
13
|
+
readonly NumberText: "numberText";
|
|
14
|
+
readonly Boolean: "boolean";
|
|
15
|
+
readonly Error: "error";
|
|
16
|
+
readonly RichData: "richData";
|
|
17
|
+
};
|
|
18
|
+
/** @internal */
|
|
19
|
+
export type CellKind = typeof CellKind[keyof typeof CellKind];
|
|
20
|
+
/** What the kinds are read from. @internal */
|
|
21
|
+
export interface KindSource {
|
|
22
|
+
readonly values: ISparseGrid<Scalar>;
|
|
23
|
+
/** The date-category number formats, by where they are applied. */
|
|
24
|
+
readonly dateFormats: ISpatialQuery<string>;
|
|
25
|
+
/** The number a text would enter as if typed, or `null`. */
|
|
26
|
+
parseNumber(text: string): number | null;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* The kind partition of one sheet: one scan of the values, the same pass the reconciled error
|
|
30
|
+
* view makes, then the numbers under a date format become dates.
|
|
31
|
+
* @internal
|
|
32
|
+
*/
|
|
33
|
+
export declare function buildKinds(source: KindSource): ISpatialMap<CellKind>;
|
|
34
|
+
//# sourceMappingURL=_Kinds.d.ts.map
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { IRange } from '@sheetxl/primitives';
|
|
2
|
+
import { IWorksheet } from './IWorksheet';
|
|
3
|
+
/**
|
|
4
|
+
* A label and where it was read from.
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export interface FoundLabel {
|
|
8
|
+
/** The label as the cell shows it. */
|
|
9
|
+
readonly text: string;
|
|
10
|
+
/** The label's cell, `B4`. */
|
|
11
|
+
readonly address: string;
|
|
12
|
+
readonly coords: IRange.CellCoords;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* The text that labels a cell's row (`'row'`) or column (`'column'`).
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* Deterministic, and the address is always returned so a reader can judge it:
|
|
19
|
+
*
|
|
20
|
+
* 1. The first cell of the line within the cell's current region (Ctrl+Shift+*), when it is text —
|
|
21
|
+
* the row label at the left edge of the block, the header at its top.
|
|
22
|
+
* 2. Otherwise the first cell of each earlier run of filled cells on that line, nearest first —
|
|
23
|
+
* leftward for a row, upward for a column — when it is text. Only a run's edge is read: a text
|
|
24
|
+
* in the middle of a run of values (a scenario name, a unit) is part of the data, not the line's
|
|
25
|
+
* label. The cost is the runs on the line, not its cells; there is no cap, because a cap is
|
|
26
|
+
* only a different arbitrary answer.
|
|
27
|
+
*
|
|
28
|
+
* `null` when the cell is itself the first cell of the line or no run before it starts with text.
|
|
29
|
+
* @internal
|
|
30
|
+
*/
|
|
31
|
+
export declare function findLabel(sheet: IWorksheet, cell: IRange.CellCoords, axis: 'row' | 'column'): FoundLabel | null;
|
|
32
|
+
/**
|
|
33
|
+
* A label reduced to what two labels are compared on: case, punctuation and runs of space
|
|
34
|
+
* dropped, so `Total Revenue:` and `total revenue` agree.
|
|
35
|
+
* @internal
|
|
36
|
+
*/
|
|
37
|
+
export declare const normalizeLabel: (text: string) => string;
|
|
38
|
+
//# sourceMappingURL=_Labels.d.ts.map
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { IRange } from '@sheetxl/primitives';
|
|
2
|
-
import { RunCoords } from '@sheetxl/utils';
|
|
3
|
-
import { RangeSweep, PieceStore } from '../collections/_RangeSweep';
|
|
2
|
+
import { RangeSweep, RunCoords, PieceStore } from '@sheetxl/utils';
|
|
4
3
|
import { RangeState } from './_SheetStateTypes';
|
|
5
4
|
import { SheetReadContext } from './_SheetStateReader';
|
|
6
|
-
export { type PieceStore } from '
|
|
5
|
+
export { type PieceStore } from '@sheetxl/utils';
|
|
7
6
|
export declare function collectPieces(ctx: SheetReadContext, bounds: IRange.Coords, searchTypes: RangeState.SearchTypes | null, injectReferences: IRange.JSONReference<any>[][] | undefined, containedBounds: IRange.Coords | undefined, hiddenRows: readonly RunCoords[] | null, hiddenColumns: readonly RunCoords[] | null): PieceStore | null;
|
|
8
7
|
/**
|
|
9
8
|
* The range-state sweep: regions materialize as `RangeState.Intersection` (values merged by type
|
|
@@ -37,7 +37,7 @@ export declare class ScalarListFactory {
|
|
|
37
37
|
*/
|
|
38
38
|
readonly createList: (values: Scalar[], length?: number, hint?: number) => IListLike<Scalar>;
|
|
39
39
|
/**
|
|
40
|
-
* The list for a run as a file holds it (`
|
|
40
|
+
* The list for a run as a file holds it (`IWorksheet.JSON` data): numbers and booleans as they are,
|
|
41
41
|
* strings as their id in this factory's collection, errors and rich data typed. One look at each
|
|
42
42
|
* value classifies it into a reused scratch; nothing is resolved for a typed run.
|
|
43
43
|
*
|
|
@@ -2,8 +2,8 @@ import { IRange } from '@sheetxl/primitives';
|
|
|
2
2
|
import { ICellRange } from '../cellRange';
|
|
3
3
|
import { ICell } from '../cell';
|
|
4
4
|
import { IAutoFill } from '../autoFill';
|
|
5
|
-
import {
|
|
6
|
-
import { SheetMutationContext } from './
|
|
5
|
+
import { IWorksheet } from './IWorksheet';
|
|
6
|
+
import { SheetMutationContext } from './Worksheet';
|
|
7
7
|
/**
|
|
8
8
|
* The default fill a range implies — which cells it reads, which it covers, which types can be
|
|
9
9
|
* offered, and the one to open on. See {@link ICellRange.getDefaultAutoFillCriteria}.
|
|
@@ -11,7 +11,7 @@ import { SheetMutationContext } from './Sheet';
|
|
|
11
11
|
* @returns `null` when the range is one cell deep along the direction — there is nowhere to fill.
|
|
12
12
|
* @internal
|
|
13
13
|
*/
|
|
14
|
-
export declare function getDefaultAutoFillCriteria(sheet:
|
|
14
|
+
export declare function getDefaultAutoFillCriteria(sheet: IWorksheet, rangeCoords: IRange.Coords, direction?: IRange.Direction, destination?: IRange.Coords): IAutoFill.DefaultCriteria | null;
|
|
15
15
|
/**
|
|
16
16
|
* Resolve a raw destination to the nearest destination {@link autoFill} accepts — what
|
|
17
17
|
* {@link ICellRange.AutoFillOptions.snap} runs before the fill.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IRange } from '@sheetxl/primitives';
|
|
2
2
|
import { Size } from '@sheetxl/utils';
|
|
3
3
|
import { ICellRange } from '../cellRange';
|
|
4
|
-
import {
|
|
4
|
+
import { Worksheet } from './Worksheet';
|
|
5
5
|
/**
|
|
6
6
|
* Automatically adjusts row heights and column widths to fit cell content and styles.
|
|
7
7
|
* - Merges and sorts input ranges for efficient processing.
|
|
@@ -15,7 +15,7 @@ import { Sheet } from './Sheet';
|
|
|
15
15
|
* @param options AutoFit options (axis, expandOnly, skipCustomSize, etc).
|
|
16
16
|
* @internal
|
|
17
17
|
*/
|
|
18
|
-
export declare function doAutoFit(sheet:
|
|
18
|
+
export declare function doAutoFit(sheet: Worksheet, ranges: readonly IRange.Coords[], options?: ICellRange.AutoFitOptions): void;
|
|
19
19
|
/**
|
|
20
20
|
* The size `range`'s content needs — what {@link doAutoFit} would commit, reduced to a `Size`
|
|
21
21
|
* instead of written.
|
|
@@ -42,5 +42,5 @@ export declare function doAutoFit(sheet: Sheet, ranges: readonly IRange.Coords[]
|
|
|
42
42
|
* @param options Measurement options (axes, minContent, formulaView).
|
|
43
43
|
* @internal
|
|
44
44
|
*/
|
|
45
|
-
export declare function doBestFit(sheet:
|
|
45
|
+
export declare function doBestFit(sheet: Worksheet, range: IRange.Coords, options?: ICellRange.BestFitOptions): Size;
|
|
46
46
|
//# sourceMappingURL=_SheetAutoFitUtils.d.ts.map
|