@sheetxl/sdk 0.8.0-beta.10 → 0.8.0-beta.12
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/{CYyv6uGjo10ig5FP.mjs → -Jx-jNHmtIQQfLvK.mjs} +1 -1
- package/browser/esm/{CdLZWVcH8cncBUPJ.mjs → 2WuhYrIpYmOR5H73.mjs} +110 -261
- package/browser/esm/{Cqr3knDsBvoVZ6MN.mjs → 2mIwPy2D2JUX-9wx.mjs} +2 -2
- package/browser/esm/B3wf5vZCsWfWsDbj.mjs +12 -0
- package/browser/esm/{BzLfNyc6OOShIErH.mjs → BIHrHjRGWVlJglcp.mjs} +2 -2
- package/browser/esm/{C9B0djuUarfNdoj0.mjs → BTFBedJMRWGvZyCE.mjs} +1 -1
- package/browser/esm/{Btg43M1Bf-ENDreu.mjs → BdCJNawfifyPupCP.mjs} +1 -1
- package/browser/esm/{ClB5ix51roQOpZEr.mjs → Bg5Di9GLNAkbqQ1P.mjs} +2877 -2067
- package/browser/esm/BnC4-27Igwb8oDf2.mjs +1552 -0
- package/browser/esm/{DhKkrCVASZ6Isvz6.mjs → Bt8_m94tBdks209L.mjs} +1 -1
- package/browser/esm/{zqJOaweiXE9D8RY1.mjs → BudSIfXBAsTxvu-K.mjs} +31835 -40812
- package/browser/esm/C9u8FUewte5ugUjH.mjs +5132 -0
- package/browser/esm/{Di58Ji1n--3Mgc_2.mjs → CBYMTDzMf1Vh7pkw.mjs} +1 -1
- package/browser/esm/CNdjyofiRu6CYOrr.mjs +12835 -0
- package/browser/esm/{Dtoyt8q5RyGAlxCp.mjs → CRkYR-siY2C994KV.mjs} +1 -1
- package/browser/esm/CTe2qfmIUEad6FJv.mjs +199 -0
- package/browser/esm/CUzYuYTTGsChC_kZ.mjs +8422 -0
- package/browser/esm/CdEO8CEee6lEhabA.mjs +117 -0
- package/browser/esm/CfRqiPDg6RBTg1EN.mjs +367 -0
- package/browser/esm/CndRBvVfQUJIYRRj.mjs +193 -0
- package/browser/esm/{Y79I7Sm8kjaYexhf.mjs → CwOPLXU3-9ZHGyOT.mjs} +1 -1
- package/browser/esm/{CjsUGJEQSbGjnH6R.mjs → Cxjxk0ncRKx80I-w.mjs} +1 -1
- package/browser/esm/D2RZh0O9neOsyLAE.mjs +281 -0
- package/browser/esm/{De175LygU7ot4nQm.mjs → D64dM68B1pKYFzdP.mjs} +2 -2
- package/browser/esm/{o8MFgcVXns987D6_.mjs → D9xNz46kAfXMZzp4.mjs} +6 -6
- package/browser/esm/{BcHmrKHwMMOlzc9_.mjs → DK899HhWX1HINMC1.mjs} +55 -55
- package/browser/esm/DPhGQLNGmDZwODwJ.mjs +395 -0
- package/browser/esm/DVroRnhi-5IDXNgM.mjs +210 -0
- package/browser/esm/{Bk7xxbdDpa7-sIwd.mjs → DZiivy0NmO1Vnyzk.mjs} +2 -2
- package/browser/esm/{CZ5oa92wZEAXebgk.mjs → DgrAuRD2qr2DvFeJ.mjs} +78 -68
- package/browser/esm/{D4uVlrG0xEFctsSM.mjs → DobHLF6VjHr7Xi40.mjs} +285 -67
- package/browser/esm/{CSx9ed1JOs7K5BXO.mjs → DwZCT7DZiiXoTweg.mjs} +2 -2
- package/browser/esm/DwwR3O2sEZApPSTF.mjs +86 -0
- package/browser/esm/Tah7cnFb_HNZdLtj.mjs +128 -0
- package/browser/esm/{BEAY9XgKNx-bakXW.mjs → fXWUMDhZ5yMSO629.mjs} +1 -1
- package/browser/esm/{BqskM7wA8oPfFQue.mjs → hCQJcmIzPDxDEv2q.mjs} +2 -2
- package/browser/esm/index.mjs +1294 -1008
- package/browser/esm/{Cgd5BnM3hg9RyUel.mjs → qO-ujUrgq6H3TQix.mjs} +1 -1
- package/browser/esm/w6Jea0TiclPrYZ2M.mjs +1703 -0
- package/browser/esm/yuhcOYw6SHQ-RCm3.mjs +114 -0
- package/licenses/dependencies.txt +75 -75
- package/node/esm/-TA0MneBDKdGhsib.mjs +8668 -0
- package/node/esm/B-HUPAcqvK0eeeCz.mjs +134 -0
- package/node/esm/BL2iiEoqxDEV2Xrg.mjs +8320 -0
- package/node/esm/{C6ZXsNyLXI6zA63X.mjs → BNXLOEddJ6O9gYws.mjs} +9 -9
- package/node/esm/{BH1v-E4Ro3bR7Znw.mjs → BSvOluusoDM4z_dx.mjs} +151 -302
- package/node/esm/{CD9wbvufChVYYkrI.mjs → BskP3b8vUoIOGLY6.mjs} +2 -2
- package/node/esm/{CnSQ7MTXAUAyBOoS.mjs → Btw4148Ot8ifhNc1.mjs} +285 -64
- package/node/esm/{B6D7sSetrcOWLsKj.mjs → C14-R6tifRh7pc0p.mjs} +1 -1
- package/node/esm/C99zzq8DImQXi4BQ.mjs +133 -0
- package/node/esm/{BtuY37FumvLE7EBo.mjs → CBuEu5Jk-LfaDy-H.mjs} +176 -166
- package/node/esm/{DdFgXl-Ux2cMBTs_.mjs → CG-qBU5BAaVz7e-P.mjs} +1 -1
- package/node/esm/CPI58duc0j0a-HpJ.mjs +115 -0
- package/node/esm/CRt3vXe6YmXzqk3H.mjs +406 -0
- package/node/esm/{CUUoseJmFsCf82bb.mjs → C_aL7CGS1lrNn1Ng.mjs} +1 -1
- package/node/esm/{D7MfcID2Wf6l6VpC.mjs → C_xf5Bz30VqiJjXn.mjs} +1 -1
- package/node/esm/CiIymQN6aJCul62g.mjs +610 -0
- package/node/esm/{B9ljpEIZg6wOTzRE.mjs → Ci_zLYmCD7e-C79O.mjs} +1 -1
- package/node/esm/{Bqd62L8KFgdS0Vou.mjs → CkRYLed8Mmn3giNg.mjs} +2 -2
- package/node/esm/D3ptRKzASqBut1DE.mjs +117 -0
- package/node/esm/{DefYISWfdZJFx57m.mjs → D4ROK9UwDpS6jO3Z.mjs} +1 -1
- package/node/esm/D8hO07ToAibIuniw.mjs +13014 -0
- package/node/esm/{Bh4dv6tMjXX3X4nI.mjs → DUTmDHbFbhLDT4F3.mjs} +1 -1
- package/node/esm/{DCplLG93GfTs1vNw.mjs → DV5CU37aEbFbWFL0.mjs} +1 -1
- package/node/esm/{CUQi5ZtMO02nhG0W.mjs → DdoiuKg9BKubtF1V.mjs} +1 -1
- package/node/esm/DggQ23jKMpwhENfa.mjs +372 -0
- package/node/esm/DhS6yWjrrSNIJMsn.mjs +1033 -0
- package/node/esm/{DMD12JUh7HJw2-jl.mjs → DhTya_mhmN53vskv.mjs} +1 -1
- package/node/esm/Dn1M7YWi25DeeYUb.mjs +210 -0
- package/node/esm/DrCf6ITcBhVOFpRj.mjs +86 -0
- package/node/esm/{BN9j8V9gCExMjVtJ.mjs → DxazKtROyaI51dWl.mjs} +1 -1
- package/node/esm/{MiU4rDOiocmJ-9Ry.mjs → Q_S1g46ZOTrdhTae.mjs} +1 -1
- package/node/esm/Vocy-I9dKzZMr0Ct.mjs +59323 -0
- package/node/esm/ZXPFcsT2zrALCZux.mjs +289 -0
- package/node/esm/eimUGjiIP-b8HiM6.mjs +199 -0
- package/node/esm/icn2nX5Z8e_3mNAv.mjs +12 -0
- package/node/esm/index.mjs +2808 -65678
- package/node/esm/lGJ42sHqg5if2bba.mjs +1770 -0
- package/node/esm/{Bsx9uijd4X_SKV3L.mjs → pYtP7wPyS96NQyXS.mjs} +51 -51
- 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 +93 -9
- package/resources/locales/en/model.msg.json +95 -10
- package/types/scripting-api.json +10809 -8021
- package/types/scripting-enums.json +201 -44
- package/types/scripting.d.ts +17030 -8666
- 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/anomalies/_Anomalies.d.ts +109 -0
- package/types/src/anomalies/_FocusTable.d.ts +11 -0
- package/types/src/anomalies/_FormulaChecks.d.ts +133 -0
- package/types/src/anomalies/_LabelChecks.d.ts +21 -0
- package/types/src/anomalies/_LiteralChecks.d.ts +35 -0
- package/types/src/anomalies/_SeriesChecks.d.ts +13 -0
- package/types/src/border/IBorders.d.ts +16 -0
- package/types/src/calculation/Calculation.d.ts +139 -371
- package/types/src/calculation/ExternalBookBindings.d.ts +2 -3
- 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 +133 -18
- package/types/src/calculation/INamedFormulasCollection.d.ts +4 -0
- package/types/src/calculation/NamedFormulaCollection.d.ts +293 -22
- package/types/src/calculation/_CloneBoundary.d.ts +1 -1
- package/types/src/calculation/_FormulaToolkit.d.ts +9 -0
- package/types/src/calculation/_TableExtent.d.ts +60 -0
- package/types/src/calculation/compiler/ASTTypes.d.ts +6 -2
- 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 +9 -1
- package/types/src/calculation/engine/CalcBackend.d.ts +953 -0
- package/types/src/calculation/engine/index.d.ts +10 -0
- package/types/src/calculation/executor/CalcExecutor.d.ts +94 -24
- package/types/src/calculation/executor/CalcExecutorUtils.d.ts +23 -1
- package/types/src/calculation/executor/_WhatIf.d.ts +50 -0
- package/types/src/calculation/formula/Formula.d.ts +9 -0
- package/types/src/calculation/formula/FormulaBlock.d.ts +10 -3
- package/types/src/calculation/formula/IFormulaBlock.d.ts +21 -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/_DataTableFunction.d.ts +14 -0
- 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 +44 -10
- package/types/src/calculation/grid/CalcGridBackend.d.ts +35 -27
- package/types/src/calculation/grid/CalcGridProxy.d.ts +2 -2
- package/types/src/calculation/grid/CalcGridUtils.d.ts +12 -3
- package/types/src/calculation/grid/FormulaHost.d.ts +51 -6
- package/types/src/calculation/grid/ICalcGrid.d.ts +48 -15
- package/types/src/calculation/grid/_CalcRequest.d.ts +28 -6
- package/types/src/calculation/grid/_CellValueRun.d.ts +21 -0
- package/types/src/calculation/spatial/FormulaSpatialValue.d.ts +29 -2
- package/types/src/calculation/spatial/SpillEntry.d.ts +16 -2
- package/types/src/calculation/state/CalcNode.d.ts +0 -1
- package/types/src/calculation/state/CalcScope.d.ts +44 -6
- package/types/src/calculation/state/CalcState.d.ts +36 -4
- package/types/src/calculation/state/CalculationContext.d.ts +30 -3
- package/types/src/calculation/state/DeferredCalls.d.ts +260 -0
- package/types/src/calculation/state/IContextContainer.d.ts +32 -0
- package/types/src/calculation/state/_PendingOverlayGrid.d.ts +6 -0
- package/types/src/calculation/state/_WhatIfLayer.d.ts +91 -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 +302 -34
- package/types/src/cell/ICellHeader.d.ts +7 -6
- package/types/src/cell/ICellProtection.d.ts +1 -1
- package/types/src/cellControl/CellControl.d.ts +67 -0
- package/types/src/cellControl/CellControlCollection.d.ts +29 -0
- package/types/src/cellControl/CellControlRegistry.d.ts +47 -0
- package/types/src/cellControl/ICellControl.d.ts +99 -0
- package/types/src/cellControl/ICellControlCollection.d.ts +67 -0
- package/types/src/cellControl/index.d.ts +4 -0
- 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 +525 -110
- package/types/src/cellRange/ICellRanges.d.ts +12 -6
- 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 +829 -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 +61 -0
- package/types/src/chart/resolve/_ResolvedChart.d.ts +447 -0
- package/types/src/collections/ISparseGrid.d.ts +11 -2
- package/types/src/collections/MixedTypedArrayList.d.ts +8 -2
- package/types/src/collections/RTree.d.ts +116 -36
- package/types/src/collections/SparseGrid.d.ts +9 -11
- 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 +30 -4
- 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/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 +3 -4
- package/types/src/fetch/Fetcher.d.ts +15 -0
- package/types/src/fetch/IFetcher.d.ts +47 -0
- package/types/src/fetch/_WorkbookFetch.d.ts +43 -0
- package/types/src/fetch/index.d.ts +3 -0
- 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 +24 -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 +17 -1
- package/types/src/hyperlink/_Hyperlink.d.ts +4 -1
- package/types/src/index.d.ts +4 -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 +38 -2
- package/types/src/named/NamedCollection.d.ts +34 -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/AsyncValue.d.ts +58 -0
- 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/resource/IResource.d.ts +9 -0
- package/types/src/resource/IResourceCollection.d.ts +4 -0
- package/types/src/resource/Resource.d.ts +2 -0
- package/types/src/resource/_AddResource.d.ts +13 -0
- package/types/src/richData/CellImage.d.ts +95 -0
- package/types/src/richData/Hyperlink.d.ts +49 -0
- package/types/src/richData/IRichDataCollection.d.ts +76 -0
- package/types/src/richData/IRichDataKind.d.ts +66 -0
- package/types/src/richData/RichArray.d.ts +42 -0
- package/types/src/richData/RichDataCollection.d.ts +23 -0
- package/types/src/richData/RichDataRegistry.d.ts +89 -0
- package/types/src/richData/RichDataValues.d.ts +20 -0
- package/types/src/richData/RichRecord.d.ts +68 -0
- package/types/src/richData/RichText.d.ts +59 -0
- package/types/src/richData/index.d.ts +9 -0
- package/types/src/scripting/FunctionArguments.d.ts +17 -1
- package/types/src/scripting/FunctionCollection.d.ts +8 -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/Scripts.d.ts +10 -0
- package/types/src/scripting/TypedFunction.d.ts +2 -0
- 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/ICellContainerOptions.d.ts +6 -0
- 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 +1521 -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 +40 -27
- package/types/src/sheet/SheetRange.d.ts +50 -13
- package/types/src/sheet/SheetRanges.d.ts +14 -12
- package/types/src/sheet/{Sheet.d.ts → Worksheet.d.ts} +591 -171
- package/types/src/sheet/WorksheetCollection.d.ts +39 -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/_ListenerAnchor.d.ts +7 -1
- package/types/src/sheet/_RangeStateSweep.d.ts +2 -3
- package/types/src/sheet/_ScalarListFactory.d.ts +55 -7
- 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 +11 -9
- 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 +80 -9
- 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 +269 -39
- package/types/src/workbook/Workbook.d.ts +102 -25
- package/types/src/workbook/WorkbookRange.d.ts +2 -2
- package/types/src/workbook/WorkbookRanges.d.ts +3 -3
- 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/CImNvdz1iP-lUlro.mjs +0 -610
- 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
|
@@ -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.
|
|
@@ -44,14 +50,9 @@ options?: ITransaction.OperationOptions): void;
|
|
|
44
50
|
* @internal
|
|
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
|
-
options?: ITransaction.OperationOptions
|
|
48
|
-
/**
|
|
49
|
-
|
|
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
|
-
*/
|
|
53
|
+
options?: ITransaction.OperationOptions,
|
|
54
|
+
/** The caller has ruled on protection for these ranges (a content clear on a locked sheet). */
|
|
55
|
+
isRuled?: boolean): void;
|
|
55
56
|
export declare function updateStyles(ctx: SheetMutationContext, ranges: readonly ISpatialMap.Entry<ICellStyle.Update>[], defaultUpdate?: ICellStyle.Update, // we do this because updateTuples may update each
|
|
56
57
|
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
58
|
isStep?: boolean): void;
|
|
@@ -163,6 +164,7 @@ export interface TupleScan {
|
|
|
163
164
|
readonly allowFormatCells: boolean;
|
|
164
165
|
readonly hasUnlockRanges: boolean;
|
|
165
166
|
readonly runtime: SheetMutationContext['runtime'];
|
|
167
|
+
readonly richData: SheetMutationContext['richData'];
|
|
166
168
|
/**
|
|
167
169
|
* A scan that stays open holds only cells whose write cannot fail once scanned, and whose held
|
|
168
170
|
* style changes that cell alone: a cell that carries a hyperlink or comments, or a style that
|
|
@@ -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.
|
|
@@ -13,7 +13,11 @@ import { SpillEntry, ContentfulSpatialValue, CircularEntry } from '../calculatio
|
|
|
13
13
|
import { IConditionalFormat } from '../conditionalFormat';
|
|
14
14
|
import { IDataValidation } from '../dataValidation';
|
|
15
15
|
import { IProtectedRange } from '../protectedRange';
|
|
16
|
+
import { ICellControl } from '../cellControl';
|
|
16
17
|
import { IPivotTable } from '../pivot';
|
|
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';
|
|
@@ -149,6 +153,14 @@ export declare namespace RangeState {
|
|
|
149
153
|
* Overlaps are allowed
|
|
150
154
|
*/
|
|
151
155
|
conditionals?: IConditionalFormat | IConditionalFormat[];
|
|
156
|
+
/**
|
|
157
|
+
* The cell's control, such as a checkbox.
|
|
158
|
+
*
|
|
159
|
+
* @remarks
|
|
160
|
+
* A cell has at most one; an array arises only from a file whose controls overlap, and the
|
|
161
|
+
* first wins (`ICell.getControl`).
|
|
162
|
+
*/
|
|
163
|
+
cellControls?: ICellControl | ICellControl[];
|
|
152
164
|
/**
|
|
153
165
|
* The per-feature direct styles for a collection of cells (SHEET-STYLE-SPLIT). These are the
|
|
154
166
|
* user-authored style, kept DISCRETE — `borderStyle` carries `borders`, `fillStyle` carries `fill`,
|
|
@@ -164,6 +176,23 @@ export declare namespace RangeState {
|
|
|
164
176
|
* The hyperlink.
|
|
165
177
|
*/
|
|
166
178
|
hyperlink?: IHyperlink.Properties;
|
|
179
|
+
/**
|
|
180
|
+
* The error checks the cells ignore (`ICellRange.setErrorIgnored`). One interned set per
|
|
181
|
+
* distinct combination, so equal sets are one object.
|
|
182
|
+
*/
|
|
183
|
+
ignoredErrors?: readonly ICell.ErrorCheck[];
|
|
184
|
+
/**
|
|
185
|
+
* The error checks that fire, with their evidence. One interned list per distinct set of
|
|
186
|
+
* findings, so equal findings are one object and a region's identity is its payload.
|
|
187
|
+
*/
|
|
188
|
+
anomalies?: readonly ICell.Anomaly[];
|
|
189
|
+
/**
|
|
190
|
+
* What the cell holds (`ICellRange.Feature.Kind`): number, date, text, text that reads as a
|
|
191
|
+
* number, boolean, error or rich data; a formula by its result.
|
|
192
|
+
*/
|
|
193
|
+
kind?: CellKind;
|
|
194
|
+
/** The cell's job (`ICellRange.Feature.Role`): label, input, link, reference, computed or output. */
|
|
195
|
+
role?: ICell.Role;
|
|
167
196
|
/**
|
|
168
197
|
* Directives for unlocking a range. (Only applies if the sheet is protected).
|
|
169
198
|
*
|
|
@@ -213,10 +242,8 @@ export declare namespace RangeState {
|
|
|
213
242
|
* The date format as a string
|
|
214
243
|
*/
|
|
215
244
|
dateFormat?: string;
|
|
216
|
-
/**
|
|
217
|
-
|
|
218
|
-
*/
|
|
219
|
-
pending?: boolean;
|
|
245
|
+
/** Why the cell is waiting on a calculation: its own function's result, or a precedent's. */
|
|
246
|
+
calcStatus?: ICalcGrid.CalcStatus;
|
|
220
247
|
/**
|
|
221
248
|
* Errors during calculation.
|
|
222
249
|
*/
|
|
@@ -257,16 +284,18 @@ export declare namespace RangeState {
|
|
|
257
284
|
readonly DataValidations: "dataValidations";
|
|
258
285
|
readonly Merge: "merge";
|
|
259
286
|
readonly Hyperlink: "hyperlink";
|
|
287
|
+
readonly IgnoredErrors: "ignoredErrors";
|
|
260
288
|
readonly Comments: "comments";
|
|
261
289
|
readonly Unlock: "unlock";
|
|
262
290
|
readonly Contentful: "contentful";
|
|
263
291
|
readonly Conditionals: "conditionals";
|
|
292
|
+
readonly CellControls: "cellControls";
|
|
264
293
|
/**
|
|
265
294
|
* Has a formula
|
|
266
295
|
*/
|
|
267
296
|
readonly Formula: "formula";
|
|
268
297
|
readonly Spills: "spills";
|
|
269
|
-
readonly
|
|
298
|
+
readonly CalcStatus: "calcStatus";
|
|
270
299
|
readonly CalcError: "calcError";
|
|
271
300
|
/**
|
|
272
301
|
* In a reference cycle, or downstream of one — evaluates to `0` (DESIGN-CIRCULAR-CALC.md §7).
|
|
@@ -279,6 +308,22 @@ export declare namespace RangeState {
|
|
|
279
308
|
* {@link AllRangeTypes} / the all-types sweep.
|
|
280
309
|
*/
|
|
281
310
|
readonly Error: "error";
|
|
311
|
+
/**
|
|
312
|
+
* Where an error check fires (`ICell.getAnomalies`). Backed by a map derived from the other
|
|
313
|
+
* features on first read and cached per sheet state and value epoch, so like {@link Error}
|
|
314
|
+
* it is opt-in only: never part of {@link AllRangeTypes} / the all-types sweep.
|
|
315
|
+
*/
|
|
316
|
+
readonly Anomalies: "anomalies";
|
|
317
|
+
/**
|
|
318
|
+
* What each cell holds, by kind. Backed by a map derived from the values on first read and
|
|
319
|
+
* cached per sheet state and value epoch, so like {@link Error} it is opt-in only.
|
|
320
|
+
*/
|
|
321
|
+
readonly Kind: "kind";
|
|
322
|
+
/**
|
|
323
|
+
* Each cell's job, by role. Backed by a map derived from the kinds and the formulas on first
|
|
324
|
+
* read and cached per sheet state and value epoch, so like {@link Error} it is opt-in only.
|
|
325
|
+
*/
|
|
326
|
+
readonly Role: "role";
|
|
282
327
|
readonly Validation: "dataValidation";
|
|
283
328
|
};
|
|
284
329
|
type Type = typeof Type[keyof typeof Type];
|
|
@@ -294,13 +339,15 @@ export declare namespace RangeState {
|
|
|
294
339
|
* - `null` = no backing index at all — nothing left in the public vocabulary hits this today.
|
|
295
340
|
* `String`/`Number`/`Boolean` used to (scalar kinds count from values, not state); they were
|
|
296
341
|
* retired from the vocabulary entirely rather than kept as a permanent `null` — a stats scan
|
|
297
|
-
* already answers the same question, richer.
|
|
342
|
+
* already answers the same question, richer. The value kind came back as one feature, `Kind`,
|
|
343
|
+
* backed by a derived map, because a check needs it as a partition (a typed row is a region),
|
|
344
|
+
* not as a count.
|
|
298
345
|
* - `DateFormat` and `Error` are both real, directly indexed state now — `DateFormat` off its own
|
|
299
346
|
* spatial map (`dateFormatSpatial`, no longer internal-only), `Error` off the reconciled error
|
|
300
347
|
* view. Neither needs the value-scan special-casing the old derived `Date` feature did.
|
|
301
348
|
*
|
|
302
|
-
* Internal-only members of `RangeState.Type` (`
|
|
303
|
-
*
|
|
349
|
+
* Internal-only members of `RangeState.Type` (`Continuous`, the legacy `Validation` alias)
|
|
350
|
+
* deliberately have no public feature.
|
|
304
351
|
*/
|
|
305
352
|
export declare const FeatureToRangeState: Readonly<Record<ICellRange.Feature, RangeState.Type | null>>;
|
|
306
353
|
/**
|
|
@@ -318,7 +365,7 @@ export declare function featuresToSearchTypes(features?: ICellRange.Feature | re
|
|
|
318
365
|
* would put an intersection on every valued cell (the null-check optimization dies).
|
|
319
366
|
* - `Continuous` rides along with any content-style projection (it is the continuous-alignment
|
|
320
367
|
* fast path — internal, so no public feature can name it).
|
|
321
|
-
* - `
|
|
368
|
+
* - `CalcStatus` rides along with `Formula`/`CalcError` (calc status accompanies calc state).
|
|
322
369
|
*/
|
|
323
370
|
export declare function cellFeaturesToSearchTypes(features?: ICellRange.Feature | readonly ICellRange.Feature[]): boolean | RangeState.SearchTypes;
|
|
324
371
|
/**
|
|
@@ -352,6 +399,14 @@ export declare const NoMergeRangeTypes: RangeState.SearchTypes;
|
|
|
352
399
|
* @internal
|
|
353
400
|
*/
|
|
354
401
|
export declare const OverflowsRangeTypes: RangeState.SearchTypes;
|
|
402
|
+
/**
|
|
403
|
+
* Which axes of the sheet's entire size end where its content does. See `IWorksheet.setEntireSize`.
|
|
404
|
+
* @internal
|
|
405
|
+
*/
|
|
406
|
+
export interface EntireFit {
|
|
407
|
+
width: boolean;
|
|
408
|
+
height: boolean;
|
|
409
|
+
}
|
|
355
410
|
/**
|
|
356
411
|
* A movable's spatial entry (anchor + container callbacks + z-order).
|
|
357
412
|
* @internal
|
|
@@ -386,6 +441,8 @@ export interface State {
|
|
|
386
441
|
continuousFillSpatial: ISpatialMap<SheetDirectStyle>;
|
|
387
442
|
dateFormatSpatial: ISpatialMap<string>;
|
|
388
443
|
hyperlinkSpatial: ISpatialMap<IHyperlink.Properties>;
|
|
444
|
+
/** Where Excel's error checks are ignored, by check. */
|
|
445
|
+
ignoredErrors: IgnoredErrors;
|
|
389
446
|
movableSpatial: ISpatialMap<MovableEntry>;
|
|
390
447
|
movableMapModel: Map<IMovable, ISpatialMap.Entry<MovableEntry>>;
|
|
391
448
|
/**
|
|
@@ -413,6 +470,13 @@ export interface State {
|
|
|
413
470
|
* Read through `RangeState.Type.Comments` — see {@link RangeState.Intersection.comments}.
|
|
414
471
|
*/
|
|
415
472
|
comments: IAnchoredMap<IComment, IComment.JSON>;
|
|
473
|
+
/**
|
|
474
|
+
* The cell controls, such as checkboxes.
|
|
475
|
+
*
|
|
476
|
+
* @remarks
|
|
477
|
+
* Read through `RangeState.Type.CellControls` — see {@link RangeState.Intersection.cellControls}.
|
|
478
|
+
*/
|
|
479
|
+
cellControls: IAnchoredMap<ICellControl, ICellControl.JSON>;
|
|
416
480
|
/**
|
|
417
481
|
* The reference each range listener watches.
|
|
418
482
|
*
|
|
@@ -438,6 +502,8 @@ export interface State {
|
|
|
438
502
|
*/
|
|
439
503
|
inputsCommitId: string | null;
|
|
440
504
|
entireCoords: IRange.Coords;
|
|
505
|
+
/** `null` when neither axis fits. */
|
|
506
|
+
entireFit: EntireFit | null;
|
|
441
507
|
deleted: boolean;
|
|
442
508
|
}
|
|
443
509
|
/**
|
|
@@ -460,5 +526,10 @@ export interface InternalTupleUpdate {
|
|
|
460
526
|
* formula at the top-left, every other cell cleared. The calc node is minted fixed to it.
|
|
461
527
|
*/
|
|
462
528
|
arrayFixed?: IRange.Coords;
|
|
529
|
+
/**
|
|
530
|
+
* A table's calculated column, filled into body rows the table has just taken in. Those rows came
|
|
531
|
+
* from an operation that has ruled on the sheet's protection, so locked cells do not refuse it.
|
|
532
|
+
*/
|
|
533
|
+
isCalculatedFill?: boolean;
|
|
463
534
|
}
|
|
464
535
|
//# 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
|
|
@@ -2,7 +2,7 @@ import { IRange, IRuntime } from '@sheetxl/primitives';
|
|
|
2
2
|
import { ReferenceableClipboard, EditMode } from '@sheetxl/utils';
|
|
3
3
|
import { ICellRange } from '../../cellRange';
|
|
4
4
|
import { IStyleCollection } from '../../style';
|
|
5
|
-
import {
|
|
5
|
+
import { IWorksheet } from '../IWorksheet';
|
|
6
6
|
/**
|
|
7
7
|
* Implements {@link ReferenceableClipboard.ReferenceItem} by delegating to {@link ICellRange.ISnapshot}.
|
|
8
8
|
*/
|
|
@@ -34,16 +34,16 @@ export declare class ExternalRangeClipboardItem implements ReferenceableClipboar
|
|
|
34
34
|
protected _topLeft: IRange.CellCoords;
|
|
35
35
|
protected _markOptions: ICellRange.CopyOptions;
|
|
36
36
|
protected _styles: IStyleCollection | undefined;
|
|
37
|
-
protected _snapshot: ICellRange.ISnapshot<
|
|
37
|
+
protected _snapshot: ICellRange.ISnapshot<IWorksheet> | undefined;
|
|
38
38
|
/** undefined = not yet parsed; null = parsed but empty */
|
|
39
|
-
protected _parsed: Partial<ICellRange.ISnapshot<
|
|
39
|
+
protected _parsed: Partial<ICellRange.ISnapshot<IWorksheet>> | null | undefined;
|
|
40
40
|
constructor(runtime: IRuntime, native: ReferenceableClipboard.NativeItems, topLeft: IRange.CellCoords, markOptions?: ICellRange.CopyOptions, styles?: IStyleCollection);
|
|
41
41
|
getItemType(): string;
|
|
42
42
|
isCut(): boolean;
|
|
43
43
|
toText(): string;
|
|
44
44
|
toHtml(): string;
|
|
45
45
|
toImage(): Blob;
|
|
46
|
-
getItem(): ICellRange.ISnapshot<
|
|
46
|
+
getItem(): ICellRange.ISnapshot<IWorksheet>;
|
|
47
47
|
/**
|
|
48
48
|
* Required to be called before getItem().
|
|
49
49
|
* @remarks
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { IRange, IRuntime } from '@sheetxl/primitives';
|
|
2
2
|
import { ICell } from '../../cell';
|
|
3
3
|
import { IStyleCollection } from '../../style';
|
|
4
|
-
import {
|
|
4
|
+
import { IWorksheet } from '../IWorksheet';
|
|
5
5
|
import { IHTMLParser } from './IHTMLParser';
|
|
6
6
|
/**
|
|
7
|
-
* Reads html and writes to an
|
|
7
|
+
* Reads html and writes to an IWorksheet.
|
|
8
8
|
*/
|
|
9
9
|
export declare class SheetHTMLTableParser implements IHTMLParser.TableParser {
|
|
10
10
|
private _sheet;
|
|
@@ -24,6 +24,6 @@ export declare class SheetHTMLTableParser implements IHTMLParser.TableParser {
|
|
|
24
24
|
onRowStart(rowIndex: number, rowSpan: number, getStyles: IHTMLParser.GetCSSStyles, element: HTMLTableRowElement | null): void;
|
|
25
25
|
onColumn(colIndex: number, colSpan: number, getStyles: IHTMLParser.GetCSSStyles, element: HTMLTableColElement | null): void;
|
|
26
26
|
onDone(): void;
|
|
27
|
-
sheet():
|
|
27
|
+
sheet(): IWorksheet;
|
|
28
28
|
}
|
|
29
29
|
//# sourceMappingURL=SheetHTMLTableParser.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { IRange } from '@sheetxl/primitives';
|
|
2
2
|
import { ICell, ICellHeader } from '../../cell';
|
|
3
|
-
import {
|
|
3
|
+
import { IWorksheet } from '../IWorksheet';
|
|
4
4
|
import { IHTMLParser } from './IHTMLParser';
|
|
5
5
|
/**
|
|
6
|
-
* Writes `
|
|
6
|
+
* Writes `IWorksheet` to html.
|
|
7
7
|
*/
|
|
8
8
|
export declare class SheetHTMLTableWriter implements IHTMLParser.TableWriter {
|
|
9
9
|
private _sheet;
|
|
@@ -17,7 +17,7 @@ export declare class SheetHTMLTableWriter implements IHTMLParser.TableWriter {
|
|
|
17
17
|
private _includeSizeInCell;
|
|
18
18
|
/** Write what formula view shows — see {@link SheetHTMLTableWriter.Options.showFormulas}. */
|
|
19
19
|
private _textOptions;
|
|
20
|
-
constructor(sheet:
|
|
20
|
+
constructor(sheet: IWorksheet, options?: SheetHTMLTableWriter.Options);
|
|
21
21
|
private _createCSSStyle;
|
|
22
22
|
private _createCSSNormalStyle;
|
|
23
23
|
onCell(cell: ICell, coords: IRange.CellCoords, valueWriter: IHTMLParser.ValueWriter): void | false;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export * from './clipboard';
|
|
2
2
|
export * from './ICellContainerOptions';
|
|
3
3
|
export * from './ISheet';
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
4
|
+
export * from './IOpaqueSheet';
|
|
5
|
+
export * from './IWorksheet';
|
|
6
|
+
export * from './IWorksheetCollection';
|
|
7
|
+
export * from './Worksheet';
|
|
8
|
+
export { findLabel, normalizeLabel, type FoundLabel } from './_Labels';
|
|
6
9
|
//# sourceMappingURL=index.d.ts.map
|