@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,72 @@
|
|
|
1
|
+
import { IRange } from '@sheetxl/primitives';
|
|
2
|
+
import { ITransaction } from '../transaction';
|
|
3
|
+
import { ICellRanges } from '../cellRange';
|
|
4
|
+
import { IWorksheet } from './IWorksheet';
|
|
5
|
+
import { Worksheet } from './Worksheet';
|
|
6
|
+
import { ShiftIntent } from './_SheetIntents';
|
|
7
|
+
/** What a {@link SheetChangeEvent} says beside its kind and coords. @internal */
|
|
8
|
+
export interface SheetChangeDetails {
|
|
9
|
+
/** What wrote the change; `null` for one not written. */
|
|
10
|
+
commit: ITransaction.ICommit | null;
|
|
11
|
+
/** The commit the change moved from; `null` when there is none. */
|
|
12
|
+
previous?: ITransaction.ICommit | null;
|
|
13
|
+
/** The change is an undo. */
|
|
14
|
+
isUndo?: boolean;
|
|
15
|
+
/** The change moved cells, so its coords do not name the same cells before it. */
|
|
16
|
+
isStructural?: boolean;
|
|
17
|
+
/** The inserts and deletes that moved them, as the change reports them (an undo's inverted). */
|
|
18
|
+
shifts?: readonly ShiftIntent[];
|
|
19
|
+
}
|
|
20
|
+
/** A change not written and of no known extent: what a cache or a collection announces. @internal */
|
|
21
|
+
export declare const UnknownChange: SheetChangeDetails;
|
|
22
|
+
/**
|
|
23
|
+
* {@link IWorksheet.ChangeEvent} over the coords a change announced.
|
|
24
|
+
*
|
|
25
|
+
* @remarks
|
|
26
|
+
* The ranges are built on first read: most listeners only need to know that something changed,
|
|
27
|
+
* and building an {@link ICellRanges} for every announcement would tax every write for them. The
|
|
28
|
+
* previous ranges cost a snapshot sheet, so they are built only when asked for too.
|
|
29
|
+
*
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
export declare class SheetChangeEvent implements IWorksheet.ChangeEvent {
|
|
33
|
+
private readonly _sheet;
|
|
34
|
+
private _kind;
|
|
35
|
+
private _coords;
|
|
36
|
+
private readonly _details;
|
|
37
|
+
private _ranges;
|
|
38
|
+
private _previousRanges;
|
|
39
|
+
private _shifts;
|
|
40
|
+
constructor(_sheet: Worksheet, _kind: IWorksheet.ChangeEventKey, _coords: readonly IRange.Coords[] | null, _details: SheetChangeDetails);
|
|
41
|
+
/** {@inheritDoc IWorksheet.ChangeEvent.getSheet} */
|
|
42
|
+
getSheet(): IWorksheet;
|
|
43
|
+
/** {@inheritDoc IWorksheet.ChangeEvent.getKind} */
|
|
44
|
+
getKind(): IWorksheet.ChangeEventKey;
|
|
45
|
+
/** {@inheritDoc IWorksheet.ChangeEvent.getRanges} */
|
|
46
|
+
getRanges(): ICellRanges | null;
|
|
47
|
+
/** {@inheritDoc IWorksheet.ChangeEvent.getCommit} */
|
|
48
|
+
getCommit(): ITransaction.ICommit | null;
|
|
49
|
+
/** {@inheritDoc IWorksheet.ChangeEvent.isUndo} */
|
|
50
|
+
isUndo(): boolean;
|
|
51
|
+
/** {@inheritDoc IWorksheet.ChangeEvent.getPreviousCommit} */
|
|
52
|
+
getPreviousCommit(): ITransaction.ICommit | null;
|
|
53
|
+
/** {@inheritDoc IWorksheet.ChangeEvent.getPreviousRanges} */
|
|
54
|
+
getPreviousRanges(): ICellRanges | null;
|
|
55
|
+
/** {@inheritDoc IWorksheet.ChangeEvent.getShifts} */
|
|
56
|
+
getShifts(): readonly IWorksheet.Shift[];
|
|
57
|
+
/**
|
|
58
|
+
* One event for two deliveries conflated into one: the union of the ranges (unknown wins), the
|
|
59
|
+
* latest commit, and the earliest previous one, so the pair spans both.
|
|
60
|
+
*
|
|
61
|
+
* @remarks
|
|
62
|
+
* A callback can be shared across event keys. Two kinds conflated into one delivery say no
|
|
63
|
+
* extent, and either side may not be a change event at all.
|
|
64
|
+
*
|
|
65
|
+
* An operation announces each of its writes, so one delivery can merge many. The first merge
|
|
66
|
+
* makes an event of its own, and later merges into it append in place: nothing else holds it.
|
|
67
|
+
*/
|
|
68
|
+
static merge(prev: IWorksheet.ChangeEvent | null | undefined, next: IWorksheet.ChangeEvent | null | undefined): IWorksheet.ChangeEvent | null | undefined;
|
|
69
|
+
private _merged;
|
|
70
|
+
private _toMerged;
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=_SheetChangeEvent.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IRange } from '@sheetxl/primitives';
|
|
2
2
|
import { ICell } from '../cell';
|
|
3
3
|
import { ICellRange, ICellRanges } from '../cellRange';
|
|
4
|
-
import {
|
|
5
|
-
import { SheetCoordContext } from './
|
|
4
|
+
import { IWorksheetProtection } from '../sheetProtection';
|
|
5
|
+
import { SheetCoordContext } from './Worksheet';
|
|
6
6
|
/**
|
|
7
7
|
* Coordinate/address resolution for a {@link Sheet}: parses addresses into coords, validates bounds,
|
|
8
8
|
* runs protection checks, and constructs the `ICellRange`/`ICellRanges` handles. Functions take a
|
|
@@ -17,7 +17,7 @@ import { SheetCoordContext } from './Sheet';
|
|
|
17
17
|
* @internal
|
|
18
18
|
*/
|
|
19
19
|
export interface ProtectionCheck {
|
|
20
|
-
(coords?: IRange.Coords[]):
|
|
20
|
+
(coords?: IRange.Coords[]): IWorksheetProtection.PropertyKeys[];
|
|
21
21
|
}
|
|
22
22
|
/** @internal */
|
|
23
23
|
export declare function createRange(ctx: SheetCoordContext, coords: Readonly<IRange.FixableCoords> | string, getOptions?: ICellRange.GetRangeOptions, readOnly?: string | null): ICellRange;
|
|
@@ -10,7 +10,7 @@ import { IRange } from '@sheetxl/primitives';
|
|
|
10
10
|
* and travel on the commit, which is what lets an undo announce the same categories the forward
|
|
11
11
|
* commit did.
|
|
12
12
|
*
|
|
13
|
-
* The scope is {@link
|
|
13
|
+
* The scope is {@link IWorksheet.getId}, so a commit that spans sheets announces each of them
|
|
14
14
|
* separately.
|
|
15
15
|
*
|
|
16
16
|
* @internal
|
|
@@ -3,8 +3,8 @@ import { RunCoords } from '@sheetxl/utils';
|
|
|
3
3
|
import { ITransaction } from '../transaction';
|
|
4
4
|
import { ICondition } from '../condition';
|
|
5
5
|
import { NumberFormatRef } from '../numFmt/BuiltInFormats';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { IWorksheet } from './IWorksheet';
|
|
7
|
+
import { Worksheet } from './Worksheet';
|
|
8
8
|
/** A run of one column's rows that show their values under the same number format. */
|
|
9
9
|
export interface TextFormatRun {
|
|
10
10
|
rowStart: number;
|
|
@@ -19,7 +19,7 @@ export interface TextFormatRun {
|
|
|
19
19
|
* What a cell shows follows from its value and its number format. The formats lie in few runs
|
|
20
20
|
* whatever the number of rows, so a reader of the column's text formats values and builds no cell.
|
|
21
21
|
*/
|
|
22
|
-
export declare function getTextFormatRuns(sheet:
|
|
22
|
+
export declare function getTextFormatRuns(sheet: IWorksheet, coords: Readonly<IRange.Coords>): TextFormatRun[];
|
|
23
23
|
/**
|
|
24
24
|
* What a filter evaluation settles: on one axis, the runs that stay visible and the runs that hide.
|
|
25
25
|
*
|
|
@@ -39,7 +39,7 @@ export interface FilterRuns {
|
|
|
39
39
|
/**
|
|
40
40
|
* Read-only: resolves every condition and settles the final visible and hidden runs.
|
|
41
41
|
*/
|
|
42
|
-
export declare function evalFilter(sheet:
|
|
42
|
+
export declare function evalFilter(sheet: Worksheet, coords: Readonly<IRange.Coords>, condition: ICondition.Input | ICondition.RangeOptions | null | undefined): Promise<FilterRuns>;
|
|
43
43
|
/**
|
|
44
44
|
* Writes the hidden bits {@link evalFilter} settled. Inside the caller's open transaction.
|
|
45
45
|
*
|
|
@@ -48,10 +48,10 @@ export declare function evalFilter(sheet: Sheet, coords: Readonly<IRange.Coords>
|
|
|
48
48
|
* then hide every row/column that doesn't — including one the user hid manually, matching real
|
|
49
49
|
* Excel AutoFilter (there's no persisted "hidden by filter" vs. "hidden by user" bit to preserve).
|
|
50
50
|
*/
|
|
51
|
-
export declare function applyFilterRuns(sheet:
|
|
51
|
+
export declare function applyFilterRuns(sheet: Worksheet, runs: FilterRuns, options?: ITransaction.OperationOptions): void;
|
|
52
52
|
/**
|
|
53
53
|
* Sheet specific filter utils. Mirrors `_SheetSortUtils.doSort`: {@link evalFilter}, then one
|
|
54
54
|
* transaction around {@link applyFilterRuns}.
|
|
55
55
|
*/
|
|
56
|
-
export declare function doFilter(sheet:
|
|
56
|
+
export declare function doFilter(sheet: Worksheet, coords: Readonly<IRange.Coords>, condition: ICondition.Input | ICondition.RangeOptions, options?: ITransaction.OperationOptions): Promise<IRange.Coords>;
|
|
57
57
|
//# sourceMappingURL=_SheetFilterUtils.d.ts.map
|
|
@@ -3,7 +3,7 @@ import { ICellRange } from '../cellRange';
|
|
|
3
3
|
import { IMovable } from '../movable';
|
|
4
4
|
import { IMovableSelection, IRangeSelection } from '../selection';
|
|
5
5
|
import { ITransaction } from '../transaction';
|
|
6
|
-
import {
|
|
6
|
+
import { IWorksheet } from './IWorksheet';
|
|
7
7
|
import { SheetEvents } from './_SheetEvents';
|
|
8
8
|
/**
|
|
9
9
|
* Directives a sheet operation records on its transaction: something to do once the operation
|
|
@@ -27,7 +27,7 @@ export declare const IntentBatchSelect = "sheet.batchSelect";
|
|
|
27
27
|
/** Key for {@link AutoFitIntent}`[]`. */
|
|
28
28
|
export declare const IntentAutoFit = "sheet.autoFit";
|
|
29
29
|
/**
|
|
30
|
-
* Key for the sheet ids ({@link
|
|
30
|
+
* Key for the sheet ids ({@link IWorksheet.getId}) whose commit-time protection check stands down.
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
33
|
* The catch-all at `onBeforeCommitStart` refuses any write to a locked sheet. An operation that
|
|
@@ -38,10 +38,12 @@ export declare const IntentAutoFit = "sheet.autoFit";
|
|
|
38
38
|
export declare const IntentSkipProtectionCheck = "sheet.skipProtectionCheck";
|
|
39
39
|
/** Key for the {@link FreezePanesIntent}. */
|
|
40
40
|
export declare const IntentFreezePanes = "sheet.freezePanes";
|
|
41
|
+
/** Key for the {@link ShiftsIntent}. */
|
|
42
|
+
export declare const IntentShifts = "sheet.shifts";
|
|
41
43
|
/** Key for the {@link MovableSelectionIntent}`[]` the operations of a commit declared. */
|
|
42
44
|
export declare const IntentMovableSelection = "sheet.movableSelection";
|
|
43
45
|
/**
|
|
44
|
-
* Key for the sheet ids ({@link
|
|
46
|
+
* Key for the sheet ids ({@link IWorksheet.getId}) a load is populating in this commit.
|
|
45
47
|
*
|
|
46
48
|
* @remarks
|
|
47
49
|
* A load is not an edit: nothing it writes is announced, and the calculation it would otherwise
|
|
@@ -52,7 +54,7 @@ export declare const IntentMovableSelection = "sheet.movableSelection";
|
|
|
52
54
|
*/
|
|
53
55
|
export declare const IntentInitial = "sheet.initial";
|
|
54
56
|
/**
|
|
55
|
-
* Key for the sheet ids ({@link
|
|
57
|
+
* Key for the sheet ids ({@link IWorksheet.getId}) whose entered formulas should take the number
|
|
56
58
|
* format of the first cell they read that has one, or failing that the format their results
|
|
57
59
|
* carry, once the compile and the calculation have them.
|
|
58
60
|
*
|
|
@@ -75,7 +77,7 @@ export declare const IntentAutoFormat = "sheet.autoFormat";
|
|
|
75
77
|
*/
|
|
76
78
|
export declare const IntentCalcResolved = "sheet.calcResolved";
|
|
77
79
|
/**
|
|
78
|
-
* What to announce once the operation lands, by sheet ({@link
|
|
80
|
+
* What to announce once the operation lands, by sheet ({@link IWorksheet.getId}) and by category.
|
|
79
81
|
*
|
|
80
82
|
* @remarks
|
|
81
83
|
* The one intent every mutation writes. A union: each write appends the ranges it wrote, so a
|
|
@@ -90,7 +92,7 @@ export declare const IntentCalcResolved = "sheet.calcResolved";
|
|
|
90
92
|
*/
|
|
91
93
|
export type EventsIntent = Readonly<Record<string, SheetEvents>>;
|
|
92
94
|
/**
|
|
93
|
-
* The ranges a formula was entered over, by sheet ({@link
|
|
95
|
+
* The ranges a formula was entered over, by sheet ({@link IWorksheet.getId}).
|
|
94
96
|
*
|
|
95
97
|
* @remarks
|
|
96
98
|
* A subset of the `data` category, found from what the write produced rather than named by the
|
|
@@ -130,10 +132,10 @@ export declare const _appendOwnedRanges: (list: readonly IRange.Coords[] | undef
|
|
|
130
132
|
* its operations'.
|
|
131
133
|
*/
|
|
132
134
|
export interface SelectionIntent {
|
|
133
|
-
/** {@link
|
|
135
|
+
/** {@link IWorksheet.getId} of the sheet the selection is on. */
|
|
134
136
|
sheetId: string;
|
|
135
137
|
/**
|
|
136
|
-
* {@link
|
|
138
|
+
* {@link IWorksheetView.getId} of the view the operation was made against.
|
|
137
139
|
*
|
|
138
140
|
* @remarks
|
|
139
141
|
* A sheet can be shown through more than one view - each user in a shared workbook has their
|
|
@@ -162,7 +164,7 @@ export interface SelectionIntent {
|
|
|
162
164
|
nested: boolean;
|
|
163
165
|
}
|
|
164
166
|
/**
|
|
165
|
-
* The `autoSelect` a batch was opened with, by sheet ({@link
|
|
167
|
+
* The `autoSelect` a batch was opened with, by sheet ({@link IWorksheet.getId}).
|
|
166
168
|
*
|
|
167
169
|
* @remarks
|
|
168
170
|
* A batch asks to select for the operations inside it that did not ask for themselves: a command
|
|
@@ -198,7 +200,7 @@ export declare const resolveSelection: (intents: Readonly<Record<string, any>> |
|
|
|
198
200
|
options: boolean | ICellRange.SelectOptions;
|
|
199
201
|
} | null;
|
|
200
202
|
/**
|
|
201
|
-
* Where the freeze panes sit before and after the operation, by sheet ({@link
|
|
203
|
+
* Where the freeze panes sit before and after the operation, by sheet ({@link IWorksheet.getId}).
|
|
202
204
|
*
|
|
203
205
|
* @remarks
|
|
204
206
|
* The one view fact an insert or delete changes: a frozen row above the insertion point moves
|
|
@@ -211,6 +213,22 @@ export type FreezePanesIntent = Readonly<Record<string, {
|
|
|
211
213
|
before: IRange.CellCoords;
|
|
212
214
|
after: IRange.CellCoords;
|
|
213
215
|
}>>;
|
|
216
|
+
/** One insert or delete of cells, as {@link ShiftsIntent} records it. */
|
|
217
|
+
export interface ShiftIntent {
|
|
218
|
+
kind: IWorksheet.ShiftKind;
|
|
219
|
+
axis: IRange.Axis;
|
|
220
|
+
/** The cells inserted or deleted, in the coords of the sheet as this shift found it. */
|
|
221
|
+
ranges: readonly IRange.Coords[];
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* The inserts and deletes of cells, by sheet ({@link IWorksheet.getId}), in the order they ran.
|
|
225
|
+
*
|
|
226
|
+
* @remarks
|
|
227
|
+
* The `address` category says where the cells moved; this says how, so a reader can tell an
|
|
228
|
+
* insert from a delete and on which axis. A move is not one: it is recorded as the insert and the
|
|
229
|
+
* delete it is made of. Appended copy-on-write, as {@link EventsIntent} is.
|
|
230
|
+
*/
|
|
231
|
+
export type ShiftsIntent = Readonly<Record<string, readonly ShiftIntent[]>>;
|
|
214
232
|
/**
|
|
215
233
|
* What one operation declared about the movable selection: what it leaves selected, and what was
|
|
216
234
|
* selected when it began.
|
|
@@ -227,10 +245,10 @@ export type FreezePanesIntent = Readonly<Record<string, {
|
|
|
227
245
|
* survives a reload and a collaborator.
|
|
228
246
|
*/
|
|
229
247
|
export interface MovableSelectionIntent {
|
|
230
|
-
/** {@link
|
|
248
|
+
/** {@link IWorksheet.getId} of the sheet the movables are on. */
|
|
231
249
|
sheetId: string;
|
|
232
250
|
/**
|
|
233
|
-
* {@link
|
|
251
|
+
* {@link IWorksheetView.getId} of the view the operation was made against.
|
|
234
252
|
*
|
|
235
253
|
* @remarks
|
|
236
254
|
* Only the view that made the change is moved by it - see {@link SelectionIntent}.
|
|
@@ -262,7 +280,7 @@ export declare const pickOrder: (selection: IMovableSelection) => readonly IMova
|
|
|
262
280
|
* @param undo What was selected when the operation began, the active one last, when the view no
|
|
263
281
|
* longer says: the operation has deleted what was selected.
|
|
264
282
|
*/
|
|
265
|
-
export declare const recordMovableSelection: (trans: ITransaction, sheet:
|
|
283
|
+
export declare const recordMovableSelection: (trans: ITransaction, sheet: IWorksheet, selection: readonly IMovable[], options?: Pick<IMovable.OperationOptions, "autoSelect" | "autoSelectRestore"> | null, undo?: readonly IMovable[]) => void;
|
|
266
284
|
/**
|
|
267
285
|
* The movables a commit selects on a view, by id with the active one last, or `null` when it
|
|
268
286
|
* leaves the selection alone.
|
|
@@ -288,7 +306,7 @@ export declare const resolveMovableSelection: (intents: Readonly<Record<string,
|
|
|
288
306
|
* be measured as one.
|
|
289
307
|
*/
|
|
290
308
|
export interface AutoFitIntent {
|
|
291
|
-
/** {@link
|
|
309
|
+
/** {@link IWorksheet.getId} of the sheet to fit on. */
|
|
292
310
|
sheetId: string;
|
|
293
311
|
ranges: IRange.Coords[];
|
|
294
312
|
options?: ICellRange.AutoFitOptions;
|
|
@@ -6,6 +6,6 @@ export declare const ERROR_ITEM_OVERLAPPING: (type: string) => string;
|
|
|
6
6
|
export declare const ERROR_PASTE: (message: string) => string;
|
|
7
7
|
export declare const ERROR_AUTOFILL_INVALID_DESTINATION: (template: string, destination: string) => string;
|
|
8
8
|
export declare const ERROR_AUTOFILL_MULTIPLE: (modulus: number) => string;
|
|
9
|
-
export declare const ERROR_MAX_VALUES: (max: number) => string;
|
|
9
|
+
export declare const ERROR_MAX_VALUES: (max: number, count: number | string, address: string) => string;
|
|
10
10
|
export declare const ERROR_UNIQUE_NAME: (name: string) => string;
|
|
11
11
|
//# sourceMappingURL=_SheetMessages.d.ts.map
|
|
@@ -12,7 +12,7 @@ import { FormulaEntry } from '../calculation/grid';
|
|
|
12
12
|
import { CellStateIteratorContext } from './_SheetUtils';
|
|
13
13
|
import { SheetDirectStyle } from './style/SheetDirectStyle';
|
|
14
14
|
import { RangeState, InternalTupleUpdate } from './_SheetStateTypes';
|
|
15
|
-
import { SheetMutationContext } from './
|
|
15
|
+
import { SheetMutationContext } from './Worksheet';
|
|
16
16
|
/**
|
|
17
17
|
* The shared insert/delete engine (see SHEET-SPLIT-DESIGN §6e). Shifts every state map (values,
|
|
18
18
|
* spills, styles, merges, hyperlinks, comments, movables, tables, listeners, calc, …) one range at
|
|
@@ -33,6 +33,12 @@ export declare function shiftCells(ctx: SheetMutationContext, ranges: readonly I
|
|
|
33
33
|
*/
|
|
34
34
|
export declare function setComments(ctx: SheetMutationContext, ranges: readonly ISpatialMap.Entry<IComment.Update>[], comments?: IComment.Update, // `undefined` = each entry carries its own (updateTuples)
|
|
35
35
|
options?: ITransaction.OperationOptions): void;
|
|
36
|
+
/**
|
|
37
|
+
* Ignores, or stops ignoring, one of Excel's error checks over each range. Presence is the ignore:
|
|
38
|
+
* a cell's entry is the set of checks it ignores, and goes when the set empties.
|
|
39
|
+
* @internal
|
|
40
|
+
*/
|
|
41
|
+
export declare function setErrorIgnored(ctx: SheetMutationContext, ranges: readonly IRange.Coords[], check: ICell.ErrorCheck, ignored: boolean, options?: ITransaction.OperationOptions): void;
|
|
36
42
|
/**
|
|
37
43
|
* Set (or clear when the resolved update is `null`) the hyperlink over each range, applying the
|
|
38
44
|
* built-in `Hyperlink` style and writing the display text into the cell. See SHEET-SPLIT-DESIGN §5.4.
|
|
@@ -45,13 +51,6 @@ options?: ITransaction.OperationOptions): void;
|
|
|
45
51
|
*/
|
|
46
52
|
export declare function setHyperlinks(ctx: SheetMutationContext, ranges: readonly ISpatialMap.Entry<IHyperlink.Update>[], defaultUpdate?: IHyperlink.Update, // we do this because updateTuples may update each
|
|
47
53
|
options?: ITransaction.OperationOptions): void;
|
|
48
|
-
/**
|
|
49
|
-
* The single style write choke point. Partitions each `ICellStyle.Update` by category (border / fill /
|
|
50
|
-
* content) and writes each per-feature map directly (DISCRETE — no merged blob); the function-form
|
|
51
|
-
* branch is the one surviving write-side compose. Re-derives the content-derived side maps
|
|
52
|
-
* (continuousFill + dateFormat) over the touched region. See SHEET-STYLE-SPLIT step 4/5.
|
|
53
|
-
* @internal
|
|
54
|
-
*/
|
|
55
54
|
export declare function updateStyles(ctx: SheetMutationContext, ranges: readonly ISpatialMap.Entry<ICellStyle.Update>[], defaultUpdate?: ICellStyle.Update, // we do this because updateTuples may update each
|
|
56
55
|
options?: ICellStyle.UpdateOptions, calcedNumberFormat?: boolean, // this is a bit of a hack. This is prevent number formats from functions to override user defined formats.
|
|
57
56
|
isStep?: boolean): void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { IRange } from '@sheetxl/primitives';
|
|
2
2
|
import { ITransaction } from '../transaction';
|
|
3
3
|
import { ISort } from '../sort';
|
|
4
|
-
import {
|
|
4
|
+
import { Worksheet } from './Worksheet';
|
|
5
5
|
/**
|
|
6
6
|
* Sheet specific sort utils.
|
|
7
7
|
*/
|
|
8
|
-
export declare function doSort(sheet:
|
|
8
|
+
export declare function doSort(sheet: Worksheet, coords: Readonly<IRange.Coords>, options?: boolean | ISort.Options[] | ISort.RangeOptions & ITransaction.OperationOptions): IRange.Coords;
|
|
9
9
|
//# sourceMappingURL=_SheetSortUtils.d.ts.map
|
|
@@ -11,6 +11,7 @@ import { ITransaction } from '../transaction';
|
|
|
11
11
|
import { ICalcGrid } from '../calculation/grid';
|
|
12
12
|
import { RangeState, CellState, State } from './_SheetStateTypes';
|
|
13
13
|
import { SheetCellOptions } from './SheetCell';
|
|
14
|
+
import { CellKind } from './_Kinds';
|
|
14
15
|
/** @internal */
|
|
15
16
|
export interface ViewEdgeEntry {
|
|
16
17
|
rowIndex: number;
|
|
@@ -52,6 +53,23 @@ export interface SheetReadContext {
|
|
|
52
53
|
readonly lists: ScalarListFactory;
|
|
53
54
|
getEntireCoords(): IRange.Coords;
|
|
54
55
|
getUsedCoords(options?: ICellRange.GetRangeOptions): IRange.Coords | null;
|
|
56
|
+
/**
|
|
57
|
+
* Where the error checks fire, by cell (`RangeState.Type.Anomalies`). Derived from the other
|
|
58
|
+
* features on first call and cached until the sheet or its values change; absent for a context
|
|
59
|
+
* with no sheet behind it.
|
|
60
|
+
*/
|
|
61
|
+
getAnomalies?(): ISpatialMap<readonly ICell.Anomaly[]>;
|
|
62
|
+
/**
|
|
63
|
+
* What each cell holds, by kind (`RangeState.Type.Kind`). Derived from the values on first call
|
|
64
|
+
* and cached until the sheet or its values change; absent for a context with no sheet behind it.
|
|
65
|
+
*/
|
|
66
|
+
getKinds?(): ISpatialMap<CellKind>;
|
|
67
|
+
/**
|
|
68
|
+
* Each cell's job, by role (`RangeState.Type.Role`). Derived from the kinds and the formulas on
|
|
69
|
+
* first call and cached until the sheet or its values change; absent for a context with no sheet
|
|
70
|
+
* behind it.
|
|
71
|
+
*/
|
|
72
|
+
getRoles?(): ISpatialMap<ICell.Role>;
|
|
55
73
|
}
|
|
56
74
|
/**
|
|
57
75
|
* The read engine for a {@link Sheet}'s versioned state.
|
|
@@ -14,6 +14,10 @@ import { IConditionalFormat } from '../conditionalFormat';
|
|
|
14
14
|
import { IDataValidation } from '../dataValidation';
|
|
15
15
|
import { IProtectedRange } from '../protectedRange';
|
|
16
16
|
import { IPivotTable } from '../pivot';
|
|
17
|
+
import { IDataTable } from '../dataTable';
|
|
18
|
+
import { ICell } from '../cell';
|
|
19
|
+
import { IgnoredErrors } from './_IgnoredErrors';
|
|
20
|
+
import { CellKind } from './_Kinds';
|
|
17
21
|
import { IAnchoredMap } from '../anchored/IAnchoredMap';
|
|
18
22
|
import { Anchored } from '../anchored/Anchored';
|
|
19
23
|
import { IUsedRangeSpatialMap } from './style/UsedRangeSpatialMap';
|
|
@@ -164,6 +168,23 @@ export declare namespace RangeState {
|
|
|
164
168
|
* The hyperlink.
|
|
165
169
|
*/
|
|
166
170
|
hyperlink?: IHyperlink.Properties;
|
|
171
|
+
/**
|
|
172
|
+
* The error checks the cells ignore (`ICellRange.setErrorIgnored`). One interned set per
|
|
173
|
+
* distinct combination, so equal sets are one object.
|
|
174
|
+
*/
|
|
175
|
+
ignoredErrors?: readonly ICell.ErrorCheck[];
|
|
176
|
+
/**
|
|
177
|
+
* The error checks that fire, with their evidence. One interned list per distinct set of
|
|
178
|
+
* findings, so equal findings are one object and a region's identity is its payload.
|
|
179
|
+
*/
|
|
180
|
+
anomalies?: readonly ICell.Anomaly[];
|
|
181
|
+
/**
|
|
182
|
+
* What the cell holds (`ICellRange.Feature.Kind`): number, date, text, text that reads as a
|
|
183
|
+
* number, boolean, error or rich data; a formula by its result.
|
|
184
|
+
*/
|
|
185
|
+
kind?: CellKind;
|
|
186
|
+
/** The cell's job (`ICellRange.Feature.Role`): label, input, link, reference, computed or output. */
|
|
187
|
+
role?: ICell.Role;
|
|
167
188
|
/**
|
|
168
189
|
* Directives for unlocking a range. (Only applies if the sheet is protected).
|
|
169
190
|
*
|
|
@@ -257,6 +278,7 @@ export declare namespace RangeState {
|
|
|
257
278
|
readonly DataValidations: "dataValidations";
|
|
258
279
|
readonly Merge: "merge";
|
|
259
280
|
readonly Hyperlink: "hyperlink";
|
|
281
|
+
readonly IgnoredErrors: "ignoredErrors";
|
|
260
282
|
readonly Comments: "comments";
|
|
261
283
|
readonly Unlock: "unlock";
|
|
262
284
|
readonly Contentful: "contentful";
|
|
@@ -279,6 +301,22 @@ export declare namespace RangeState {
|
|
|
279
301
|
* {@link AllRangeTypes} / the all-types sweep.
|
|
280
302
|
*/
|
|
281
303
|
readonly Error: "error";
|
|
304
|
+
/**
|
|
305
|
+
* Where an error check fires (`ICell.getAnomalies`). Backed by a map derived from the other
|
|
306
|
+
* features on first read and cached per sheet state and value epoch, so like {@link Error}
|
|
307
|
+
* it is opt-in only: never part of {@link AllRangeTypes} / the all-types sweep.
|
|
308
|
+
*/
|
|
309
|
+
readonly Anomalies: "anomalies";
|
|
310
|
+
/**
|
|
311
|
+
* What each cell holds, by kind. Backed by a map derived from the values on first read and
|
|
312
|
+
* cached per sheet state and value epoch, so like {@link Error} it is opt-in only.
|
|
313
|
+
*/
|
|
314
|
+
readonly Kind: "kind";
|
|
315
|
+
/**
|
|
316
|
+
* Each cell's job, by role. Backed by a map derived from the kinds and the formulas on first
|
|
317
|
+
* read and cached per sheet state and value epoch, so like {@link Error} it is opt-in only.
|
|
318
|
+
*/
|
|
319
|
+
readonly Role: "role";
|
|
282
320
|
readonly Validation: "dataValidation";
|
|
283
321
|
};
|
|
284
322
|
type Type = typeof Type[keyof typeof Type];
|
|
@@ -294,7 +332,9 @@ export declare namespace RangeState {
|
|
|
294
332
|
* - `null` = no backing index at all — nothing left in the public vocabulary hits this today.
|
|
295
333
|
* `String`/`Number`/`Boolean` used to (scalar kinds count from values, not state); they were
|
|
296
334
|
* retired from the vocabulary entirely rather than kept as a permanent `null` — a stats scan
|
|
297
|
-
* already answers the same question, richer.
|
|
335
|
+
* already answers the same question, richer. The value kind came back as one feature, `Kind`,
|
|
336
|
+
* backed by a derived map, because a check needs it as a partition (a typed row is a region),
|
|
337
|
+
* not as a count.
|
|
298
338
|
* - `DateFormat` and `Error` are both real, directly indexed state now — `DateFormat` off its own
|
|
299
339
|
* spatial map (`dateFormatSpatial`, no longer internal-only), `Error` off the reconciled error
|
|
300
340
|
* view. Neither needs the value-scan special-casing the old derived `Date` feature did.
|
|
@@ -352,6 +392,14 @@ export declare const NoMergeRangeTypes: RangeState.SearchTypes;
|
|
|
352
392
|
* @internal
|
|
353
393
|
*/
|
|
354
394
|
export declare const OverflowsRangeTypes: RangeState.SearchTypes;
|
|
395
|
+
/**
|
|
396
|
+
* Which axes of the sheet's entire size end where its content does. See `IWorksheet.setEntireSize`.
|
|
397
|
+
* @internal
|
|
398
|
+
*/
|
|
399
|
+
export interface EntireFit {
|
|
400
|
+
width: boolean;
|
|
401
|
+
height: boolean;
|
|
402
|
+
}
|
|
355
403
|
/**
|
|
356
404
|
* A movable's spatial entry (anchor + container callbacks + z-order).
|
|
357
405
|
* @internal
|
|
@@ -386,6 +434,8 @@ export interface State {
|
|
|
386
434
|
continuousFillSpatial: ISpatialMap<SheetDirectStyle>;
|
|
387
435
|
dateFormatSpatial: ISpatialMap<string>;
|
|
388
436
|
hyperlinkSpatial: ISpatialMap<IHyperlink.Properties>;
|
|
437
|
+
/** Where Excel's error checks are ignored, by check. */
|
|
438
|
+
ignoredErrors: IgnoredErrors;
|
|
389
439
|
movableSpatial: ISpatialMap<MovableEntry>;
|
|
390
440
|
movableMapModel: Map<IMovable, ISpatialMap.Entry<MovableEntry>>;
|
|
391
441
|
/**
|
|
@@ -426,6 +476,8 @@ export interface State {
|
|
|
426
476
|
listeners: IAnchoredMap<ListenerAnchor, never>;
|
|
427
477
|
/** The pivot tables laid out on the sheet, anchored at their locations as tables are. */
|
|
428
478
|
pivotTables: IAnchoredMap<IPivotTable, IPivotTable.JSON>;
|
|
479
|
+
/** The data tables on the sheet, anchored at their result cells. */
|
|
480
|
+
dataTables: IAnchoredMap<IDataTable, IDataTable.JSON>;
|
|
429
481
|
/**
|
|
430
482
|
* The grid's inputs this record pairs with, as the grid named them when the model last wrote
|
|
431
483
|
* this sheet's cells (`ICalcGrid.Events.onInputsWritten`); `null` before any write.
|
|
@@ -438,6 +490,8 @@ export interface State {
|
|
|
438
490
|
*/
|
|
439
491
|
inputsCommitId: string | null;
|
|
440
492
|
entireCoords: IRange.Coords;
|
|
493
|
+
/** `null` when neither axis fits. */
|
|
494
|
+
entireFit: EntireFit | null;
|
|
441
495
|
deleted: boolean;
|
|
442
496
|
}
|
|
443
497
|
/**
|
|
@@ -460,5 +514,10 @@ export interface InternalTupleUpdate {
|
|
|
460
514
|
* formula at the top-left, every other cell cleared. The calc node is minted fixed to it.
|
|
461
515
|
*/
|
|
462
516
|
arrayFixed?: IRange.Coords;
|
|
517
|
+
/**
|
|
518
|
+
* A table's calculated column, filled into body rows the table has just taken in. Those rows came
|
|
519
|
+
* from an operation that has ruled on the sheet's protection, so locked cells do not refuse it.
|
|
520
|
+
*/
|
|
521
|
+
isCalculatedFill?: boolean;
|
|
463
522
|
}
|
|
464
523
|
//# sourceMappingURL=_SheetStateTypes.d.ts.map
|
|
@@ -4,11 +4,11 @@ import { ITypes } from '../type';
|
|
|
4
4
|
import { IStringCollection } from '../string';
|
|
5
5
|
import { ISort } from '../sort';
|
|
6
6
|
import { ICellStyle, IStyleCollection } from '../style';
|
|
7
|
-
import { ICell
|
|
7
|
+
import { ICell } from '../cell';
|
|
8
8
|
import { ICellRange, ICellRanges } from '../cellRange';
|
|
9
9
|
import { ISheetHeader } from '../sheetHeader';
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
10
|
+
import { IWorksheet } from './IWorksheet';
|
|
11
|
+
import { IWorksheetInternal } from './Worksheet';
|
|
12
12
|
import { ISpatialMap, ISpatialQuery } from '../collections';
|
|
13
13
|
import { MergeEntry } from './spatial';
|
|
14
14
|
import { RangeState, CellState } from './_SheetStateTypes';
|
|
@@ -42,15 +42,15 @@ export declare function getDefaultShiftAxis(range: IRange.Coords, entireRange: I
|
|
|
42
42
|
*/
|
|
43
43
|
export declare function toAbsRangeCoords(rowIndex: number, colIndex: number, relative: IRange.Coords): IRange.Coords;
|
|
44
44
|
/**
|
|
45
|
-
* Bridge from the public {@link
|
|
45
|
+
* Bridge from the public {@link IWorksheet} to the internal capability object its ranges are built on.
|
|
46
46
|
*
|
|
47
47
|
* @remarks
|
|
48
|
-
* `Sheet` is the only implementation of `
|
|
49
|
-
* helper (rather than a member of `
|
|
50
|
-
* `Workbook` holds sheets as `
|
|
48
|
+
* `Sheet` is the only implementation of `IWorksheet`, so this is total in practice. It exists as a
|
|
49
|
+
* helper (rather than a member of `IWorksheet`) to keep `_getInternal` off the published interface —
|
|
50
|
+
* `Workbook` holds sheets as `IWorksheet` and is the only caller that needs to cross the boundary.
|
|
51
51
|
* @internal
|
|
52
52
|
*/
|
|
53
|
-
export declare function getInternal(sheet:
|
|
53
|
+
export declare function getInternal(sheet: IWorksheet): IWorksheetInternal;
|
|
54
54
|
/**
|
|
55
55
|
* The internals a scoped coord actually addresses — the sheet named by `scope`, not the anchor.
|
|
56
56
|
*
|
|
@@ -69,7 +69,7 @@ export declare function getInternal(sheet: ISheet): ISheetInternal;
|
|
|
69
69
|
* see `WorkbookRanges._createRange`.
|
|
70
70
|
* @internal
|
|
71
71
|
*/
|
|
72
|
-
export declare function resolveScopedInternal(internal:
|
|
72
|
+
export declare function resolveScopedInternal(internal: IWorksheetInternal, scope: string | null | undefined): IWorksheetInternal | null;
|
|
73
73
|
/**
|
|
74
74
|
* Drops a coord's `scope` when it merely restates the anchor.
|
|
75
75
|
*
|
|
@@ -84,12 +84,18 @@ export declare function resolveScopedInternal(internal: ISheetInternal, scope: s
|
|
|
84
84
|
* redundant with, and stay fully qualified.
|
|
85
85
|
* @internal
|
|
86
86
|
*/
|
|
87
|
-
export declare function normalizeScope<T extends IRange.Coords>(coords: T, anchor:
|
|
87
|
+
export declare function normalizeScope<T extends IRange.Coords>(coords: T, anchor: IWorksheet): T;
|
|
88
88
|
/** {@link normalizeScope} over a set, allocating only when something is actually redundant. @internal */
|
|
89
|
-
export declare function normalizeScopes<T>(coords: readonly T[], anchor:
|
|
89
|
+
export declare function normalizeScopes<T>(coords: readonly T[], anchor: IWorksheet): readonly T[];
|
|
90
90
|
/** @internal */
|
|
91
|
-
export declare function createInvalidRange(sheet:
|
|
92
|
-
export declare function createInvalidRanges(sheet:
|
|
91
|
+
export declare function createInvalidRange(sheet: IWorksheet | null, maxRange?: IRange.Coords | null, range?: IRange.Coords | null, errorType?: string): ICellRange;
|
|
92
|
+
export declare function createInvalidRanges(sheet: IWorksheet): ICellRanges;
|
|
93
|
+
/**
|
|
94
|
+
* The number `strValue` would enter as if typed, or `null`: the entry parser's number half, so a
|
|
95
|
+
* date or a time is not a number here.
|
|
96
|
+
* @internal
|
|
97
|
+
*/
|
|
98
|
+
export declare function parseNumberInput(runtime: IRuntime, strValue: string): number | null;
|
|
93
99
|
/**
|
|
94
100
|
* Implementation of date/number/currency parsing
|
|
95
101
|
*
|
|
@@ -189,7 +195,7 @@ export declare function rangeTopLeft(range: IRange.Coords): IRange.Coords;
|
|
|
189
195
|
* Given a selection, find the 'natural' bounding area to sort.
|
|
190
196
|
* When checking for header and default sort criteria this is the axis to use. @default IRange.Axis.Row
|
|
191
197
|
*/
|
|
192
|
-
export declare function getDefaultSortCriteria(sheet:
|
|
198
|
+
export declare function getDefaultSortCriteria(sheet: IWorksheet, rangeCoords: IRange.Coords, cellCoords?: IRange.CellCoords, axis?: IRange.Axis): ISort.DefaultSortCriteria;
|
|
193
199
|
/**
|
|
194
200
|
* Search all spatials expanding the range until no immediate bounding rectangles.
|
|
195
201
|
*/
|
|
@@ -210,11 +216,6 @@ export declare function closeOverMerges<T extends IRange.Coords>(range: T, getMe
|
|
|
210
216
|
* Expands ranges to include merges. See {@link closeOverMerges}.
|
|
211
217
|
*/
|
|
212
218
|
export declare function expandToIncludeMerges(ranges: readonly IRange.Coords[], mergeSpatial: ISpatialMap<MergeEntry>, entireCoords: IRange.Coords): IRange.Coords[];
|
|
213
|
-
export type OrientedStyled = {
|
|
214
|
-
axes: IRange.AxisSelection;
|
|
215
|
-
index: number;
|
|
216
|
-
};
|
|
217
|
-
export declare function headerToRangedStyles(headers: IRange.JSONReference<ICellHeader.JSON>[], axis: IRange.Axis, entireCoords: IRange.Coords): ITypes.RangeCoordValue<OrientedStyled>[] | null;
|
|
218
219
|
export declare function shiftFrozen(coords: IRange.CellCoords, range: IRange.Coords, isColumn: boolean, shiftAmount: number, // we could get from range but already have it in caller
|
|
219
220
|
entireRange: IRange.Coords): IRange.CellCoords;
|
|
220
221
|
export declare function flattenRanges(coords: readonly IRange.Coords[], axes?: IRange.AxisSelection): IRange.Coords[];
|
|
@@ -2,7 +2,6 @@ import { Scalar } from '@sheetxl/primitives';
|
|
|
2
2
|
import { ISparseGrid } from '../collections';
|
|
3
3
|
import { ICellRange } from '../cellRange';
|
|
4
4
|
import { ICalcGrid, FormulaHost } from '../calculation/grid';
|
|
5
|
-
import { FormulaSpatialValue } from '../calculation/spatial';
|
|
6
5
|
import { ListenerAnchor } from './_ListenerAnchor';
|
|
7
6
|
/**
|
|
8
7
|
* A listener node that owns a formula: the location of a watch.
|
|
@@ -34,7 +33,7 @@ export declare class WatchAnchor extends ListenerAnchor {
|
|
|
34
33
|
/** The grid's values as of the last delivery, so a pass that changed nothing is not re-delivered. */
|
|
35
34
|
protected _lastValues: ISparseGrid<Scalar> | null;
|
|
36
35
|
/** The body's blank region as of the last delivery - the part of the answer the grid does not hold. */
|
|
37
|
-
protected _lastBlank:
|
|
36
|
+
protected _lastBlank: ICalcGrid.BlankRegion | null;
|
|
38
37
|
constructor(options: WatchAnchor.ConstructorOptions);
|
|
39
38
|
/**
|
|
40
39
|
* Hand the body's values to the watch after a pass, when something inside the location changed.
|
|
@@ -80,6 +79,15 @@ export declare namespace WatchAnchor {
|
|
|
80
79
|
interface ConstructorOptions extends ListenerAnchor.ConstructorOptions {
|
|
81
80
|
host: FormulaHost;
|
|
82
81
|
}
|
|
82
|
+
/** {@link ICellRange.WatchOptions}, and what only an owner inside the sdk asks for. */
|
|
83
|
+
interface Options extends ICellRange.WatchOptions {
|
|
84
|
+
/**
|
|
85
|
+
* Evaluate the body's blank region a tile at a time, when its answer there depends on the
|
|
86
|
+
* position: see `CalcGridBackend.ConstructorOptions.paged`. The owner asks for what it reads
|
|
87
|
+
* through {@link FormulaHost.request}; a cell it has not asked for holds nothing.
|
|
88
|
+
*/
|
|
89
|
+
paged?: boolean;
|
|
90
|
+
}
|
|
83
91
|
/** What a watch is told. Held by the sheet, never by the node. */
|
|
84
92
|
interface Handlers {
|
|
85
93
|
/** The body's values after every pass that changed them. */
|
|
@@ -88,6 +96,11 @@ export declare namespace WatchAnchor {
|
|
|
88
96
|
onChange?: () => void;
|
|
89
97
|
/** The body's host, once registered — for an owner that reads the body back. */
|
|
90
98
|
onRegistered?: (host: FormulaHost) => void;
|
|
99
|
+
/**
|
|
100
|
+
* The registration was undone by a rollback of the operation it was made in: the node and the
|
|
101
|
+
* body are gone, and nothing will deliver. An owner waiting on a delivery must stop waiting.
|
|
102
|
+
*/
|
|
103
|
+
onRemoved?: () => void;
|
|
91
104
|
}
|
|
92
105
|
}
|
|
93
106
|
//# sourceMappingURL=_WatchAnchor.d.ts.map
|