@sheetxl/sdk 0.8.0-beta.1 → 0.8.0-beta.10
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/THIRD-PARTY-NOTICES.md +1 -1
- package/browser/esm/{B0HS42a7lga1k1U_.mjs → BEAY9XgKNx-bakXW.mjs} +2 -2
- package/browser/esm/BbSmt62FpFIpoVzu.mjs +392 -0
- package/browser/esm/BcHmrKHwMMOlzc9_.mjs +357 -0
- package/browser/esm/BgcZ-CoTbMfmyDJL.mjs +412 -0
- package/browser/esm/Bk7xxbdDpa7-sIwd.mjs +7 -0
- package/browser/esm/BqskM7wA8oPfFQue.mjs +20 -0
- package/browser/esm/Btg43M1Bf-ENDreu.mjs +540 -0
- package/browser/esm/BzLfNyc6OOShIErH.mjs +598 -0
- package/browser/esm/C9B0djuUarfNdoj0.mjs +466 -0
- package/browser/esm/{uyWBMSIxMlt8n5Z3.mjs → CSx9ed1JOs7K5BXO.mjs} +2 -2
- package/browser/esm/CYyv6uGjo10ig5FP.mjs +142 -0
- package/browser/esm/CZ5oa92wZEAXebgk.mjs +622 -0
- package/browser/esm/CdLZWVcH8cncBUPJ.mjs +849 -0
- package/browser/esm/Cgd5BnM3hg9RyUel.mjs +171 -0
- package/browser/esm/CjsUGJEQSbGjnH6R.mjs +1001 -0
- package/browser/esm/ClB5ix51roQOpZEr.mjs +7402 -0
- package/browser/esm/{DlPMeIyxT9tG_WDk.mjs → Cqr3knDsBvoVZ6MN.mjs} +179 -202
- package/browser/esm/D4uVlrG0xEFctsSM.mjs +905 -0
- package/browser/esm/DOMHmhYzPcLVcpAW.mjs +7 -0
- package/browser/esm/DUvUK61b2_4pf4tG.mjs +484 -0
- package/browser/esm/De175LygU7ot4nQm.mjs +441 -0
- package/browser/esm/DhKkrCVASZ6Isvz6.mjs +527 -0
- package/browser/esm/Di58Ji1n--3Mgc_2.mjs +607 -0
- package/browser/esm/Dtoyt8q5RyGAlxCp.mjs +1141 -0
- package/browser/esm/Y79I7Sm8kjaYexhf.mjs +167 -0
- package/browser/esm/index.mjs +1472 -1023
- package/browser/esm/o8MFgcVXns987D6_.mjs +400 -0
- package/browser/esm/zqJOaweiXE9D8RY1.mjs +66681 -0
- package/licenses/dependencies.txt +209 -209
- package/node/esm/B6D7sSetrcOWLsKj.mjs +1135 -0
- package/node/esm/B9ljpEIZg6wOTzRE.mjs +142 -0
- package/node/esm/BH1v-E4Ro3bR7Znw.mjs +962 -0
- package/node/esm/BN9j8V9gCExMjVtJ.mjs +540 -0
- package/node/esm/{Cku7XiUvw1xrRasi.mjs → Bh4dv6tMjXX3X4nI.mjs} +1 -1
- package/node/esm/Bqd62L8KFgdS0Vou.mjs +7 -0
- package/node/esm/Bsx9uijd4X_SKV3L.mjs +360 -0
- package/node/esm/BtuY37FumvLE7EBo.mjs +629 -0
- package/node/esm/C6ZXsNyLXI6zA63X.mjs +402 -0
- package/node/esm/CCouEwT37f08qO3V.mjs +7 -0
- package/node/esm/CD9wbvufChVYYkrI.mjs +451 -0
- package/node/esm/CImNvdz1iP-lUlro.mjs +610 -0
- package/node/esm/CT0CN82y0_Qgoryk.mjs +7568 -0
- package/node/esm/CUQi5ZtMO02nhG0W.mjs +596 -0
- package/node/esm/CUUoseJmFsCf82bb.mjs +28 -0
- package/node/esm/CnSQ7MTXAUAyBOoS.mjs +911 -0
- package/node/esm/D7MfcID2Wf6l6VpC.mjs +171 -0
- package/node/esm/DCplLG93GfTs1vNw.mjs +1860 -0
- package/node/esm/DHUADiCmxNQS1ARz.mjs +417 -0
- package/node/esm/DMD12JUh7HJw2-jl.mjs +638 -0
- package/node/esm/DdFgXl-Ux2cMBTs_.mjs +15 -0
- package/node/esm/DefYISWfdZJFx57m.mjs +255 -0
- package/node/esm/Ds0d8zXzmgOu3MGx.mjs +403 -0
- package/node/esm/MiU4rDOiocmJ-9Ry.mjs +1783 -0
- package/node/esm/index.mjs +51616 -39665
- package/package.json +15 -16
- package/resources/contents.json +64 -0
- package/resources/fonts/arial-bold-italic.metrics.json +139 -0
- package/resources/fonts/arial-bold.metrics.json +139 -0
- package/resources/fonts/arial-italic.metrics.json +139 -0
- package/resources/fonts/arial-regular.metrics.json +139 -0
- package/resources/fonts/calibri-bold-italic.metrics.json +137 -0
- package/resources/fonts/calibri-bold.metrics.json +137 -0
- package/resources/fonts/calibri-italic.metrics.json +137 -0
- package/resources/fonts/calibri-regular.metrics.json +137 -0
- package/resources/fonts/cambria-bold-italic.metrics.json +66 -0
- package/resources/fonts/cambria-bold.metrics.json +66 -0
- package/resources/fonts/cambria-italic.metrics.json +66 -0
- package/resources/fonts/cambria-regular.metrics.json +66 -0
- package/resources/fonts/contents.json +126 -0
- package/resources/fonts/courier-new-bold-italic.metrics.json +143 -0
- package/resources/fonts/courier-new-bold.metrics.json +143 -0
- package/resources/fonts/courier-new-italic.metrics.json +143 -0
- package/resources/fonts/courier-new-regular.metrics.json +143 -0
- package/resources/fonts/times-new-roman-bold-italic.metrics.json +141 -0
- package/resources/fonts/times-new-roman-bold.metrics.json +141 -0
- package/resources/fonts/times-new-roman-italic.metrics.json +143 -0
- package/resources/fonts/times-new-roman-regular.metrics.json +141 -0
- package/resources/locales/de/model.msg.json +112 -12
- package/resources/locales/en/model.msg.json +119 -13
- package/types/scripting-api.json +8048 -0
- package/types/scripting-enums.json +277 -110
- package/types/scripting.d.ts +13077 -3224
- package/types/src/anchored/AbstractAnchored.d.ts +18 -8
- package/types/src/anchored/AnchoredMap.d.ts +2 -0
- package/types/src/anchored/IAnchoredMap.d.ts +52 -4
- package/types/src/autoFill/AutoFill.d.ts +316 -32
- package/types/src/autoFill/IAutoFill.d.ts +232 -15
- package/types/src/border/{IBorder.d.ts → IBorders.d.ts} +42 -41
- package/types/src/border/index.d.ts +1 -1
- package/types/src/calculation/Calculation.d.ts +754 -49
- package/types/src/calculation/ExternalBookBindings.d.ts +118 -0
- package/types/src/calculation/FormulaText.d.ts +82 -0
- package/types/src/calculation/ICalculation.d.ts +318 -81
- package/types/src/calculation/INamedFormulasCollection.d.ts +5 -8
- package/types/src/calculation/NamedFormulaCollection.d.ts +139 -107
- package/types/src/calculation/NamedLambdaFunction.d.ts +28 -0
- package/types/src/calculation/TokenType.d.ts +9 -0
- package/types/src/calculation/Types.d.ts +83 -2
- package/types/src/calculation/_CloneBoundary.d.ts +80 -0
- package/types/src/calculation/_TableRename.d.ts +13 -0
- package/types/src/calculation/compiler/ASTTypes.d.ts +71 -0
- package/types/src/calculation/compiler/CompilerUtils.d.ts +135 -44
- package/types/src/calculation/compiler/FormulaCompiler.d.ts +29 -4
- package/types/src/calculation/compiler/FormulaParser.d.ts +1 -2
- package/types/src/calculation/compiler/LiteTransform.d.ts +17 -0
- package/types/src/calculation/compiler/ParserUtils.d.ts +26 -1
- package/types/src/calculation/compiler/SRParser.d.ts +2 -1
- package/types/src/calculation/compiler/Types.d.ts +79 -9
- package/types/src/calculation/executor/CalcExecutor.d.ts +312 -33
- package/types/src/calculation/executor/CalcExecutorUtils.d.ts +43 -2
- package/types/src/calculation/executor/CircularReference.d.ts +2 -0
- package/types/src/calculation/formula/Formula.d.ts +58 -21
- package/types/src/calculation/formula/FormulaBlock.d.ts +125 -23
- package/types/src/calculation/formula/FormulaRecordView.d.ts +79 -0
- package/types/src/calculation/formula/FunctionValues.d.ts +10 -0
- package/types/src/calculation/formula/IFormulaBlock.d.ts +261 -67
- package/types/src/calculation/formula/LambdaValue.d.ts +46 -23
- package/types/src/calculation/formula/LazyValue.d.ts +96 -0
- package/types/src/calculation/formula/TokenUtils.d.ts +25 -1
- package/types/src/calculation/formula/index.d.ts +1 -0
- package/types/src/calculation/functions/FunctionDeclarations.d.ts +31 -0
- package/types/src/calculation/functions/Operators.d.ts +8 -0
- package/types/src/calculation/functions/initializeFunctions.d.ts +15 -2
- package/types/src/calculation/grid/CalcGrid.d.ts +407 -158
- package/types/src/calculation/grid/CalcGridBackend.d.ts +493 -0
- package/types/src/calculation/grid/CalcGridProxy.d.ts +133 -0
- package/types/src/calculation/grid/CalcGridUtils.d.ts +62 -12
- package/types/src/calculation/grid/FormulaEntry.d.ts +129 -0
- package/types/src/calculation/grid/FormulaHost.d.ts +239 -0
- package/types/src/calculation/grid/ICalcGrid.d.ts +499 -141
- package/types/src/calculation/grid/_CalcRequest.d.ts +289 -0
- package/types/src/calculation/grid/index.d.ts +4 -0
- package/types/src/calculation/index.d.ts +2 -0
- package/types/src/calculation/spatial/ContentfulSpatialValue.d.ts +6 -2
- package/types/src/calculation/spatial/FormulaSpatialValue.d.ts +339 -11
- package/types/src/calculation/spatial/SpillEntry.d.ts +20 -5
- package/types/src/calculation/spatial/TouchedWindows.d.ts +86 -0
- package/types/src/calculation/spatial/index.d.ts +1 -0
- package/types/src/calculation/state/CalcInputs.d.ts +41 -0
- package/types/src/calculation/state/CalcNode.d.ts +141 -30
- package/types/src/calculation/state/CalcScope.d.ts +37 -0
- package/types/src/calculation/state/CalcState.d.ts +22 -1
- package/types/src/calculation/state/CalculationContext.d.ts +50 -3
- package/types/src/calculation/state/IContextContainer.d.ts +129 -27
- package/types/src/calculation/state/_PendingOverlayGrid.d.ts +163 -0
- package/types/src/calculation/state/_ReadObservedGrid.d.ts +74 -8
- package/types/src/calculation/state/index.d.ts +1 -0
- package/types/src/calculation/symbol/ExternalSheetSymbols.d.ts +80 -0
- package/types/src/calculation/symbol/ISymbolRegistry.d.ts +23 -0
- package/types/src/calculation/symbol/IndirectSymbolProvider.d.ts +16 -2
- package/types/src/calculation/symbol/SheetSymbolProvider.d.ts +63 -3
- package/types/src/calculation/symbol/SymbolRegistry.d.ts +20 -0
- package/types/src/calculation/symbol/index.d.ts +3 -2
- package/types/src/cell/ICell.d.ts +104 -29
- package/types/src/cell/ICellHeader.d.ts +24 -2
- package/types/src/cell/ICellProtection.d.ts +50 -10
- package/types/src/cellRange/ICellRange.d.ts +419 -79
- package/types/src/cellRange/ICellRanges.d.ts +23 -21
- package/types/src/chart/Chart.d.ts +41 -13
- package/types/src/chart/ChartCollection.d.ts +26 -0
- package/types/src/chart/IChart.d.ts +166 -12
- package/types/src/chart/IChartCollection.d.ts +25 -0
- package/types/src/chart/_ChartXml.d.ts +70 -0
- package/types/src/chart/index.d.ts +1 -3
- package/types/src/collections/ArraysGrid.d.ts +1 -1
- package/types/src/collections/IGrid.d.ts +1 -1
- package/types/src/collections/ISparseGrid.d.ts +9 -0
- package/types/src/collections/ISpatialMap.d.ts +59 -21
- package/types/src/collections/ImmutableList.d.ts +28 -0
- package/types/src/collections/MixedTypedArrayList.d.ts +168 -108
- package/types/src/collections/OverlappingRangeIterator.d.ts +13 -17
- package/types/src/collections/RepeatingList.d.ts +7 -0
- package/types/src/collections/ScalarGrid.d.ts +50 -0
- package/types/src/collections/SparseGrid.d.ts +1 -1
- package/types/src/collections/SpatialMap.d.ts +13 -21
- package/types/src/collections/Tuple.d.ts +128 -16
- package/types/src/collections/_GridUtils.d.ts +19 -6
- package/types/src/collections/_RangeSweep.d.ts +97 -0
- package/types/src/collections/_SpatialUtils.d.ts +20 -2
- package/types/src/collections/index.d.ts +1 -0
- package/types/src/color/_BuiltInIndexDefs.d.ts +6 -0
- package/types/src/comment/Comment.d.ts +223 -0
- package/types/src/comment/CommentCollection.d.ts +40 -0
- package/types/src/comment/IComment.d.ts +340 -50
- package/types/src/comment/ICommentCollection.d.ts +90 -0
- package/types/src/comment/NoteMovable.d.ts +26 -0
- package/types/src/comment/_CommentUtils.d.ts +50 -0
- package/types/src/comment/_NoteBox.d.ts +50 -0
- package/types/src/comment/index.d.ts +1 -0
- package/types/src/condition/AnchoredConditional.d.ts +82 -17
- package/types/src/condition/BuiltInOperators/AbstractOperator.d.ts +42 -12
- package/types/src/condition/BuiltInOperators/AfterEqualToOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/AfterOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/AndOperator.d.ts +3 -1
- package/types/src/condition/BuiltInOperators/AverageOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/BeforeEqualToOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/BeforeOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/BetweenOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/ColorOperator.d.ts +4 -0
- package/types/src/condition/BuiltInOperators/ContainsOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/EndsWithOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/EqualToOperator.d.ts +4 -1
- package/types/src/condition/BuiltInOperators/ExpressionOperator.d.ts +5 -6
- package/types/src/condition/BuiltInOperators/GreaterThanEqualToOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/GreaterThanOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/IconOperator.d.ts +4 -0
- package/types/src/condition/BuiltInOperators/InSetOperator.d.ts +22 -5
- package/types/src/condition/BuiltInOperators/LessThanEqualToOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/LessThanOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/NotOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/OrOperator.d.ts +3 -1
- package/types/src/condition/BuiltInOperators/StartsWithOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/TimePeriodOperator.d.ts +2 -0
- package/types/src/condition/BuiltInOperators/TopNOperator.d.ts +6 -0
- package/types/src/condition/BuiltinSelectors/BaseSelector.d.ts +21 -6
- package/types/src/condition/BuiltinSelectors/DateSelector.d.ts +4 -5
- package/types/src/condition/BuiltinSelectors/DisplaySelector.d.ts +20 -0
- package/types/src/condition/BuiltinSelectors/TextLengthSelector.d.ts +7 -5
- package/types/src/condition/BuiltinSelectors/TimeSelector.d.ts +3 -5
- package/types/src/condition/BuiltinSelectors/WholeSelector.d.ts +3 -5
- package/types/src/condition/BuiltinSelectors/index.d.ts +12 -6
- package/types/src/condition/Condition.d.ts +19 -1
- package/types/src/condition/ICondition.d.ts +293 -73
- package/types/src/condition/_ConditionFormula.d.ts +152 -0
- package/types/src/condition/_ConditionUtils.d.ts +167 -13
- package/types/src/conditionalFormat/ConditionalEntry.d.ts +3 -3
- package/types/src/conditionalFormat/ConditionalFormat.d.ts +25 -14
- package/types/src/conditionalFormat/ConditionalFormatCollection.d.ts +19 -8
- package/types/src/conditionalFormat/IConditionalFormat.d.ts +12 -10
- package/types/src/conditionalFormat/IConditionalFormatCollection.d.ts +2 -0
- package/types/src/dataValidation/DataValidation.d.ts +69 -3
- package/types/src/dataValidation/DataValidationCollection.d.ts +20 -9
- package/types/src/dataValidation/IDataValidation.d.ts +149 -30
- package/types/src/dataValidation/IDataValidationCollection.d.ts +10 -2
- package/types/src/date/DateUtils.d.ts +20 -0
- package/types/src/date/_DateUtils.d.ts +91 -7
- package/types/src/externalBook/ExternalBookCollection.d.ts +145 -12
- package/types/src/externalBook/ExternalBookName.d.ts +96 -0
- package/types/src/externalBook/IExternalBook.d.ts +170 -18
- package/types/src/externalBook/IExternalBookCollection.d.ts +79 -7
- package/types/src/externalBook/index.d.ts +1 -0
- package/types/src/{lib/file → file}/file.browser.d.ts +22 -8
- package/types/src/{lib/file → file}/file.node.d.ts +7 -2
- package/types/src/fill/IEffect.d.ts +5 -5
- package/types/src/fill/IFill.d.ts +123 -78
- package/types/src/fill/IStroke.d.ts +190 -64
- package/types/src/fill/RectAlignment.d.ts +20 -0
- package/types/src/fill/_Fills.d.ts +187 -0
- package/types/src/fill/_Stroke.d.ts +89 -0
- package/types/src/fill/index.d.ts +1 -0
- package/types/src/filter/IFilter.d.ts +188 -5
- package/types/src/font/AdvanceBuilder.d.ts +25 -0
- package/types/src/font/AdvanceTable.d.ts +114 -0
- package/types/src/font/FontCollection.d.ts +57 -0
- package/types/src/font/IFont.d.ts +17 -0
- package/types/src/font/IFontCollection.d.ts +120 -22
- package/types/src/font/TableFileAdvanceBuilder.d.ts +27 -0
- package/types/src/font/_BuiltinFontTables.d.ts +10 -0
- package/types/src/font/index.d.ts +4 -1
- package/types/src/group/Group.d.ts +136 -0
- package/types/src/group/GroupMovableCollection.d.ts +37 -0
- package/types/src/group/IGroup.d.ts +129 -0
- package/types/src/group/index.d.ts +2 -0
- package/types/src/history/IHistory.d.ts +3 -2
- package/types/src/hyperlink/IHyperlink.d.ts +13 -0
- package/types/src/hyperlink/_Hyperlink.d.ts +5 -1
- package/types/src/i18n/LanguagePack.d.ts +12 -4
- package/types/src/index.d.ts +5 -0
- package/types/src/io/AbstractBackingStore.d.ts +24 -1
- package/types/src/io/ArrayBackingStore.d.ts +1 -1
- package/types/src/io/EmbeddedPart.d.ts +20 -0
- package/types/src/io/IEmbeddedPart.d.ts +63 -0
- package/types/src/io/IWorkbookIO.d.ts +185 -18
- package/types/src/io/WorkbookIO.d.ts +9 -0
- package/types/src/io/WorkbookOrigin.d.ts +20 -11
- package/types/src/io/WorkbookOriginProvider.d.ts +46 -0
- package/types/src/io/_XmlFragment.d.ts +49 -0
- package/types/src/io/index.d.ts +1 -0
- package/types/src/license/LicenseDetails.d.ts +1 -0
- package/types/src/license/LicenseManager.d.ts +4 -1
- package/types/src/license/Types.d.ts +38 -0
- package/types/src/license/_Utils.d.ts +22 -0
- package/types/src/license/details.d.ts +24 -0
- package/types/src/license/license-key.d.ts +49 -2
- package/types/src/license/runtime.browser.d.ts +41 -0
- package/types/src/{lib/utils/utils.node.d.ts → license/runtime.node.d.ts} +9 -12
- package/types/src/listener/IListener.d.ts +12 -7
- package/types/src/listener/ListenerEmitter.d.ts +46 -5
- package/types/src/model/AbstractModel.d.ts +14 -5
- package/types/src/movable/AbstractMovableContent.d.ts +182 -0
- package/types/src/movable/CustomElement.d.ts +4 -5
- package/types/src/movable/ErrorContent.d.ts +49 -0
- package/types/src/movable/FormControl.d.ts +285 -0
- package/types/src/movable/GroupMember.d.ts +87 -0
- package/types/src/movable/ICustomElement.d.ts +7 -2
- package/types/src/movable/IErrorContent.d.ts +23 -0
- package/types/src/movable/IFormControl.d.ts +455 -0
- package/types/src/movable/IMovable.d.ts +378 -46
- package/types/src/movable/IMovableCollection.d.ts +63 -3
- package/types/src/movable/Movable.d.ts +149 -49
- package/types/src/movable/MovableCollection.d.ts +15 -8
- package/types/src/movable/MovableContentRegistry.d.ts +113 -0
- package/types/src/movable/_BuiltInContents.d.ts +14 -0
- package/types/src/movable/_ContentFactory.d.ts +35 -0
- package/types/src/movable/_DrawnBounds.d.ts +37 -0
- package/types/src/movable/_InsertableCollection.d.ts +28 -0
- package/types/src/movable/_MovableUtils.d.ts +5 -0
- package/types/src/movable/_PendingContent.d.ts +25 -0
- package/types/src/movable/_PlacementUtils.d.ts +55 -0
- package/types/src/movable/_RotatedFrame.d.ts +20 -0
- package/types/src/movable/index.d.ts +7 -1
- package/types/src/named/AbstractNamed.d.ts +1 -1
- package/types/src/named/INamed.d.ts +4 -1
- package/types/src/named/INamedCollection.d.ts +26 -0
- package/types/src/named/NamedCollection.d.ts +16 -15
- package/types/src/numFmt/BuiltInFormats.d.ts +20 -7
- package/types/src/numFmt/IFormatEngine.d.ts +2 -0
- package/types/src/numFmt/NumfmtFormatEngine.d.ts +2 -0
- package/types/src/numFmt/_FormatCell.d.ts +11 -2
- package/types/src/numFmt/_NumFmtUtils.d.ts +0 -1
- package/types/src/numFmt/vendor/numfmt/_sheetxl.d.ts +6 -0
- package/types/src/outline/IOutline.d.ts +186 -0
- package/types/src/outline/Outline.d.ts +157 -0
- package/types/src/outline/index.d.ts +2 -0
- package/types/src/person/IPerson.d.ts +99 -0
- package/types/src/person/IPersonCollection.d.ts +51 -0
- package/types/src/person/Person.d.ts +32 -0
- package/types/src/person/PersonCollection.d.ts +49 -0
- package/types/src/person/index.d.ts +4 -0
- package/types/src/picture/IPicture.d.ts +33 -3
- package/types/src/picture/Picture.d.ts +33 -13
- package/types/src/pivot/IPivotTable.d.ts +72 -0
- package/types/src/pivot/IPivotTableCollection.d.ts +25 -0
- package/types/src/pivot/PivotCache.d.ts +34 -0
- package/types/src/pivot/PivotTable.d.ts +61 -0
- package/types/src/pivot/PivotTableCollection.d.ts +25 -0
- package/types/src/pivot/_PivotXml.d.ts +24 -0
- package/types/src/pivot/index.d.ts +6 -0
- package/types/src/primitives/CompositeRangeStats.d.ts +2 -0
- package/types/src/primitives/Criteria.d.ts +1 -1
- package/types/src/primitives/Grouping.d.ts +65 -0
- package/types/src/primitives/LambdaBrand.d.ts +26 -0
- package/types/src/primitives/PrimitiveUtils.d.ts +56 -19
- package/types/src/primitives/Range.d.ts +133 -25
- package/types/src/primitives/RangeStats.d.ts +30 -2
- package/types/src/primitives/ReferenceRange.d.ts +44 -0
- package/types/src/primitives/Runtime.d.ts +15 -2
- package/types/src/primitives/environment.browser.d.ts +9 -0
- package/types/src/primitives/environment.node.d.ts +10 -0
- package/types/src/primitives/stats/AggregateStats.d.ts +49 -15
- package/types/src/primitives/stats/Cancellation.d.ts +13 -0
- package/types/src/primitives/stats/FrequencyStats.d.ts +10 -1
- package/types/src/primitives/stats/LookupIndex.d.ts +46 -0
- package/types/src/primitives/stats/Ranked.d.ts +1 -1
- package/types/src/primitives/stats/SortedNumbers.d.ts +4 -2
- package/types/src/primitives/stats/index.d.ts +1 -0
- package/types/src/print/IPrint.d.ts +0 -22
- package/types/src/protectedRange/IProtectedRange.d.ts +4 -0
- package/types/src/protectedRange/IProtectedRangeCollection.d.ts +2 -0
- package/types/src/protectedRange/ProtectedRange.d.ts +1 -4
- package/types/src/protectedRange/ProtectedRangeCollection.d.ts +19 -8
- package/types/src/protection/DefaultProtection.d.ts +12 -1
- package/types/src/protection/IProtection.d.ts +36 -2
- package/types/src/reference/ReferenceUtils.d.ts +80 -0
- package/types/src/reference/index.d.ts +2 -0
- package/types/src/resource/IResource.d.ts +21 -1
- package/types/src/resource/IResourceCollection.d.ts +9 -1
- package/types/src/resource/ResourceCollection.d.ts +6 -6
- package/types/src/scripting/FunctionCollection.d.ts +49 -15
- package/types/src/scripting/IFunctionCollection.d.ts +62 -32
- package/types/src/scripting/IModule.d.ts +25 -0
- package/types/src/scripting/IModuleCollection.d.ts +17 -0
- package/types/src/scripting/IScript.d.ts +28 -26
- package/types/src/scripting/Module.d.ts +34 -6
- package/types/src/scripting/ModuleCollection.d.ts +17 -12
- package/types/src/scripting/Runtime.d.ts +15 -0
- package/types/src/scripting/Scripts.d.ts +3 -7
- package/types/src/scripting/TypedFunction.d.ts +154 -18
- package/types/src/scripting/_FunctionIndex.d.ts +8 -3
- package/types/src/scripting/_ModuleUtils.d.ts +11 -1
- package/types/src/scripting/_ScriptUtils.d.ts +3 -0
- package/types/src/scripting/declarations.browser.d.ts +10 -0
- package/types/src/scripting/declarations.d.ts +49 -0
- package/types/src/scripting/declarations.node.d.ts +9 -0
- package/types/src/scripting/index.d.ts +3 -0
- package/types/src/selection/IMovableSelection.d.ts +148 -0
- package/types/src/selection/IRangeSelection.d.ts +9 -4
- package/types/src/selection/MovableSelection.d.ts +48 -0
- package/types/src/selection/RangeSelection.d.ts +15 -0
- package/types/src/selection/index.d.ts +1 -0
- package/types/src/shape/GeometryPreset.d.ts +197 -0
- package/types/src/shape/IGeometry.d.ts +380 -0
- package/types/src/shape/IShape.d.ts +341 -194
- package/types/src/shape/IShapeStyle.d.ts +135 -0
- package/types/src/shape/Shape.d.ts +107 -21
- package/types/src/shape/ShapeStyleUtils.d.ts +54 -0
- package/types/src/shape/_ConnectorFrame.d.ts +32 -0
- package/types/src/shape/_ConnectorRoute.d.ts +33 -0
- package/types/src/shape/_Connectors.d.ts +108 -0
- package/types/src/shape/_Geometry.d.ts +14 -0
- package/types/src/shape/_GeometryLoader.d.ts +21 -0
- package/types/src/shape/_ShapeStyle.d.ts +70 -0
- package/types/src/shape/_builtIn/_BuiltInChunks.d.ts +10 -0
- package/types/src/shape/_builtIn/_BuiltInDef.d.ts +9 -0
- package/types/src/shape/_builtIn/arrows.d.ts +6 -0
- package/types/src/shape/_builtIn/basic.d.ts +6 -0
- package/types/src/shape/_builtIn/callouts.d.ts +6 -0
- package/types/src/shape/_builtIn/flowchart.d.ts +6 -0
- package/types/src/shape/_builtIn/lines.d.ts +6 -0
- package/types/src/shape/_builtIn/math.d.ts +6 -0
- package/types/src/shape/_builtIn/other.d.ts +6 -0
- package/types/src/shape/_builtIn/rectangles.d.ts +6 -0
- package/types/src/shape/_builtIn/starsBanners.d.ts +6 -0
- package/types/src/shape/geometry/_strokeEnds.d.ts +7 -0
- package/types/src/shape/geometry/format.d.ts +3 -0
- package/types/src/shape/geometry/geometry.d.ts +85 -0
- package/types/src/shape/geometry/guides.d.ts +54 -0
- package/types/src/shape/geometry/handles.d.ts +14 -0
- package/types/src/shape/geometry/index.d.ts +7 -0
- package/types/src/shape/geometry/lineEnds.d.ts +54 -0
- package/types/src/shape/geometry/paths.d.ts +35 -0
- package/types/src/shape/geometry/segments.d.ts +114 -0
- package/types/src/shape/index.d.ts +3 -0
- package/types/src/sheet/CellRegion.d.ts +6 -0
- package/types/src/sheet/ICellContainerOptions.d.ts +50 -0
- package/types/src/sheet/ISheet.d.ts +197 -50
- package/types/src/sheet/ISheetCollection.d.ts +2 -5
- package/types/src/sheet/NamedCellRange.d.ts +16 -7
- package/types/src/sheet/NamedRange.d.ts +8 -0
- package/types/src/sheet/Sheet.d.ts +915 -138
- package/types/src/sheet/SheetCell.d.ts +92 -32
- package/types/src/sheet/SheetCollection.d.ts +19 -8
- package/types/src/sheet/SheetRange.d.ts +90 -18
- package/types/src/sheet/SheetRanges.d.ts +22 -9
- package/types/src/sheet/_CellBuffer.d.ts +214 -0
- package/types/src/sheet/_HeldFormula.d.ts +69 -0
- package/types/src/sheet/_InvalidSheetRange.d.ts +7 -7
- package/types/src/sheet/_ListenerAnchor.d.ts +104 -0
- package/types/src/sheet/_RangeStateSweep.d.ts +16 -0
- package/types/src/sheet/_ScalarListFactory.d.ts +61 -0
- package/types/src/sheet/_SheetAutoFillUtils.d.ts +74 -0
- package/types/src/sheet/_SheetAutoFitUtils.d.ts +2 -2
- package/types/src/sheet/_SheetEvents.d.ts +43 -0
- package/types/src/sheet/_SheetFilterUtils.d.ts +49 -1
- package/types/src/sheet/_SheetIntents.d.ts +296 -0
- package/types/src/sheet/_SheetMutations.d.ts +182 -62
- package/types/src/sheet/_SheetStateReader.d.ts +19 -13
- package/types/src/sheet/_SheetStateTypes.d.ts +83 -78
- package/types/src/sheet/_SheetUtils.d.ts +39 -22
- package/types/src/sheet/_WatchAnchor.d.ts +93 -0
- package/types/src/sheet/spatial/HeldFormulaEntry.d.ts +36 -0
- package/types/src/sheet/spatial/index.d.ts +1 -0
- package/types/src/sheet/style/SheetCellStyle.d.ts +209 -304
- package/types/src/sheet/style/SheetDirectStyle.d.ts +30 -19
- package/types/src/sheet/style/SheetNamedStyle.d.ts +17 -17
- package/types/src/sheet/style/SheetTableStyle.d.ts +5 -5
- package/types/src/sheet/style/_Resolvers.d.ts +14 -8
- package/types/src/sheet/style/_StyleUtils.d.ts +38 -8
- package/types/src/sheetHeader/ISheetHeader.d.ts +94 -53
- package/types/src/sheetHeader/SheetCellHeader.d.ts +4 -0
- package/types/src/sheetHeader/SheetHeader.d.ts +42 -22
- package/types/src/sheetHeader/_HeaderMetrics.d.ts +37 -0
- package/types/src/sheetHeader/_HeaderUtils.d.ts +5 -3
- package/types/src/sheetProtection/ISheetProtection.d.ts +41 -7
- package/types/src/sheetProtection/SheetProtection.d.ts +12 -0
- package/types/src/sheetView/ISheetView.d.ts +69 -15
- package/types/src/sheetView/SheetView.d.ts +20 -11
- package/types/src/slicer/ISlicer.d.ts +304 -17
- package/types/src/slicer/ISlicerStyle.d.ts +109 -0
- package/types/src/slicer/Slicer.d.ts +128 -13
- package/types/src/slicer/SlicerStyle.d.ts +25 -0
- package/types/src/slicer/_BuiltInSlicerStyles.d.ts +13 -0
- package/types/src/slicer/_SlicerUtils.d.ts +30 -0
- package/types/src/slicer/index.d.ts +1 -0
- package/types/src/sort/ISort.d.ts +4 -2
- package/types/src/string/IStringCollection.d.ts +5 -0
- package/types/src/string/StringCollection.d.ts +6 -6
- package/types/src/style/{IStyle.d.ts → ICellStyle.d.ts} +72 -52
- package/types/src/style/INamedStyleCollection.d.ts +72 -0
- package/types/src/style/ISlicerStyleCollection.d.ts +77 -0
- package/types/src/style/IStyleCollection.d.ts +91 -60
- package/types/src/style/ITableStyleCollection.d.ts +89 -0
- package/types/src/style/NamedStyleCollection.d.ts +39 -0
- package/types/src/style/SlicerStyleCollection.d.ts +46 -0
- package/types/src/style/StyleCollection.d.ts +81 -26
- package/types/src/style/TableStyleCollection.d.ts +49 -0
- package/types/src/style/_BuiltInStyleDefs.d.ts +6 -6
- package/types/src/style/_BuiltInStyleNames.d.ts +2 -2
- package/types/src/style/index.d.ts +7 -1
- package/types/src/table/AnchoredTable.d.ts +701 -72
- package/types/src/table/AutoTable.d.ts +7 -5
- package/types/src/table/ITable.d.ts +261 -34
- package/types/src/table/ITableCollection.d.ts +12 -0
- package/types/src/table/ITableStyle.d.ts +37 -37
- package/types/src/table/TableCollection.d.ts +19 -8
- package/types/src/table/_FilterField.d.ts +19 -6
- package/types/src/table/_NamedTable.d.ts +17 -1
- package/types/src/table/_NamedTableSource.d.ts +1 -0
- package/types/src/table/_SortField.d.ts +2 -0
- package/types/src/table/_TableColumn.d.ts +13 -2
- package/types/src/table/_TableMessages.d.ts +1 -0
- package/types/src/table/_TableUtils.d.ts +40 -0
- package/types/src/text/Bullet.d.ts +4 -0
- package/types/src/text/IText.d.ts +182 -0
- package/types/src/text/ITextFrame.d.ts +110 -1
- package/types/src/text/TextBoxAlignment.d.ts +25 -16
- package/types/src/text/TextFrame.d.ts +4 -0
- package/types/src/text/TextLine.d.ts +4 -0
- package/types/src/text/TextParagraph.d.ts +4 -0
- package/types/src/text/TextRotation.d.ts +3 -3
- package/types/src/text/TextRun.d.ts +9 -0
- package/types/src/text/TextStacked.d.ts +83 -0
- package/types/src/text/index.d.ts +1 -0
- package/types/src/text/richtext/IRichText.d.ts +36 -0
- package/types/src/text/richtext/IStyledFont.d.ts +18 -18
- package/types/src/text/richtext/index.d.ts +1 -0
- package/types/src/theme/ITheme.d.ts +45 -4
- package/types/src/theme/IThemeCollection.d.ts +2 -0
- package/types/src/theme/ThemeCollection.d.ts +11 -7
- package/types/src/theme/_OfficeFormatScheme.d.ts +3 -0
- package/types/src/transaction/ITransaction.d.ts +258 -45
- package/types/src/transaction/Transaction.d.ts +101 -11
- package/types/src/transaction/TransactionUndoManager.d.ts +4 -1
- package/types/src/type/AbstractCollection.d.ts +101 -0
- package/types/src/type/ICollection.d.ts +117 -0
- package/types/src/type/ITypes.d.ts +9 -7
- package/types/src/type/index.d.ts +1 -0
- package/types/src/utils/_CSSUtils.d.ts +3 -3
- package/types/src/wasm/_sdkWasm.d.ts +7 -0
- package/types/src/wasm/index.d.ts +2 -0
- package/types/src/wasm/sdkWasm.d.ts +29 -0
- package/types/src/workbook/IWorkbook.d.ts +180 -40
- package/types/src/workbook/Workbook.d.ts +123 -10
- package/types/src/workbook/_WorkbookIntents.d.ts +36 -0
- package/types/src/workbookProtection/IWorkbookProtection.d.ts +7 -0
- package/types/src/workbookProtection/WorkbookProtection.d.ts +3 -0
- package/types/src/workbookView/IWorkbookView.d.ts +12 -0
- package/types/src/workbookView/WorkbookView.d.ts +5 -0
- package/browser/cjs/B7_pDFYCVzt-3hUs.cjs +0 -1
- package/browser/cjs/BatsV2UUraVDCRXm.cjs +0 -57
- package/browser/cjs/CUz53T65cRGQRgvv.cjs +0 -33
- package/browser/cjs/DU0kYUtdFa3jK-im.cjs +0 -1
- package/browser/cjs/Dv3x6zut1ZRUt3IF.cjs +0 -10
- package/browser/cjs/Dv4yIPLV98M5zLHa.cjs +0 -1
- package/browser/cjs/a0Z-SXs_N71CtqYb.cjs +0 -1
- package/browser/cjs/index.cjs +0 -3
- package/browser/esm/6JKSOvc5czaQB2Bj.mjs +0 -109
- package/browser/esm/BtuJ9AGzeURtAsGo.mjs +0 -51241
- package/browser/esm/DGU6sM25u0EWCKl1.mjs +0 -824
- package/browser/esm/f2G3QRgEbvFJcoa2.mjs +0 -4436
- package/node/esm/-pxdn3M3tc6PLHs7.mjs +0 -114
- package/node/esm/0n5bslM9jhO1JnI2.mjs +0 -843
- package/types/src/cellRange/_GraphNode.d.ts +0 -38
- package/types/src/condition/BuiltinSelectors/ListSelector.d.ts +0 -12
- package/types/src/dataValidation/_Utils.d.ts +0 -10
- package/types/src/lib/utils/_Utils.d.ts +0 -27
- package/types/src/lib/utils/utils.browser.d.ts +0 -33
- package/types/src/movable/IGroup.d.ts +0 -30
- package/types/src/movable/IMovableSelection.d.ts +0 -49
- package/types/src/sheet/listener/RangesListener.d.ts +0 -32
- package/types/src/sheet/listener/RangesListenerEntry.d.ts +0 -19
- package/types/src/sheet/listener/index.d.ts +0 -3
- /package/types/src/{lib/utils → license}/banner.d.ts +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Scalar } from '@sheetxl/primitives';
|
|
2
2
|
import { ICellRange } from '../cellRange';
|
|
3
3
|
import { ITransaction } from '../transaction';
|
|
4
|
+
import { ISlicer } from '../slicer';
|
|
4
5
|
import { Anchored } from '../anchored/Anchored';
|
|
5
6
|
import { ColumnPropertiesState } from './_TableUtils';
|
|
6
7
|
import { ITableStyle } from './ITableStyle';
|
|
@@ -29,11 +30,7 @@ export declare class AutoTable extends AnchoredTable {
|
|
|
29
30
|
protected _initialize(options: AnchoredTable.ConstructorOptions): void;
|
|
30
31
|
protected initializeColumnCreator(table: ITable, getProps: (id: number | string) => ColumnPropertiesState, updateProps: (id: number | string, update: Partial<ITable.ColumnProperties> | null, options?: string | ITransaction.OperationOptions) => void, deleteColumn: (id: number | string, options?: ITransaction.OperationOptions) => void): (id: number | string) => ITable.IColumn;
|
|
31
32
|
protected _processHeaderListener(): void;
|
|
32
|
-
protected
|
|
33
|
-
columns: ITable.ColumnProperties[];
|
|
34
|
-
converted: boolean;
|
|
35
|
-
} | null;
|
|
36
|
-
protected _writeSyncSheet(isRemove?: boolean): void;
|
|
33
|
+
protected _syncHeader(): void;
|
|
37
34
|
protected _calcVisible(): void;
|
|
38
35
|
isShowHeaders(): boolean;
|
|
39
36
|
addRows(index: number, count?: number, options?: ITransaction.OperationOptions): this;
|
|
@@ -41,7 +38,12 @@ export declare class AutoTable extends AnchoredTable {
|
|
|
41
38
|
deleteRowsAt(index: number, count?: number, options?: ITransaction.OperationOptions): this;
|
|
42
39
|
getColumnByName(name: string): ITable.IColumn | null;
|
|
43
40
|
convertToRange(maxCells?: number, options?: ITransaction.OperationOptions): ICellRange;
|
|
41
|
+
/**
|
|
42
|
+
* Removes the AutoFilter. Its cells are the sheet's data and are left as they are.
|
|
43
|
+
*/
|
|
44
|
+
delete(_options?: ITransaction.OperationOptions): void;
|
|
44
45
|
setName(name: string, options?: ITransaction.OperationOptions): this;
|
|
46
|
+
addSlicer(_column: ITable.IColumn | string, _options?: ISlicer.AddOptions): Promise<ISlicer>;
|
|
45
47
|
setDescription(description: string, options?: ITransaction.OperationOptions): this;
|
|
46
48
|
updateStyleOptions(options: ITableStyle.StyleOptions, description?: string): this;
|
|
47
49
|
setShowTotals(showTotals: boolean, options?: ITransaction.OperationOptions): this;
|
|
@@ -10,8 +10,9 @@ import { INamed } from '../named';
|
|
|
10
10
|
import { ICondition } from '../condition';
|
|
11
11
|
import { ISort } from '../sort';
|
|
12
12
|
import { IFilter } from '../filter';
|
|
13
|
+
import { ISlicer } from '../slicer';
|
|
13
14
|
import { IAnchored } from '../anchored';
|
|
14
|
-
import {
|
|
15
|
+
import { ICellStyle, IStyleCollection } from '../style';
|
|
15
16
|
import { ITableCollection } from './ITableCollection';
|
|
16
17
|
import { ITableStyle } from './ITableStyle';
|
|
17
18
|
/**
|
|
@@ -36,6 +37,59 @@ import { ITableStyle } from './ITableStyle';
|
|
|
36
37
|
* * {@link ITableCollection}
|
|
37
38
|
*/
|
|
38
39
|
export declare namespace ITable {
|
|
40
|
+
/**
|
|
41
|
+
* Which edges of a table grow when something is entered just beside it.
|
|
42
|
+
*
|
|
43
|
+
* @remarks
|
|
44
|
+
* A value entered in the column just right of the table makes a new column, and one entered in
|
|
45
|
+
* the row just below it makes a new row (or, for a formula, a totals row - see
|
|
46
|
+
* {@link ITable.FormulaBelow}). The table only grows over cells that are otherwise blank.
|
|
47
|
+
*
|
|
48
|
+
* Growing down also lets Tab from the last cell of the body add a row; without it, Tab wraps to
|
|
49
|
+
* the first cell of the body.
|
|
50
|
+
*/
|
|
51
|
+
const AutoExpand: {
|
|
52
|
+
/**
|
|
53
|
+
* Grow right and down. The default.
|
|
54
|
+
*/
|
|
55
|
+
readonly Both: "both";
|
|
56
|
+
/**
|
|
57
|
+
* Grow down only.
|
|
58
|
+
*/
|
|
59
|
+
readonly Rows: "rows";
|
|
60
|
+
/**
|
|
61
|
+
* Grow right only.
|
|
62
|
+
*/
|
|
63
|
+
readonly Columns: "columns";
|
|
64
|
+
/**
|
|
65
|
+
* Never grow.
|
|
66
|
+
*/
|
|
67
|
+
readonly None: "none";
|
|
68
|
+
};
|
|
69
|
+
type AutoExpand = typeof AutoExpand[keyof typeof AutoExpand];
|
|
70
|
+
/**
|
|
71
|
+
* Where a formula entered in the row just below a table goes, when the table has no totals row
|
|
72
|
+
* showing and grows down (see {@link ITable.AutoExpand}).
|
|
73
|
+
*
|
|
74
|
+
* @remarks
|
|
75
|
+
* A value that is not a formula always makes a new row.
|
|
76
|
+
*/
|
|
77
|
+
const FormulaBelow: {
|
|
78
|
+
/**
|
|
79
|
+
* The row becomes the table's totals row, and the formula its column's total. The other columns
|
|
80
|
+
* total nothing, unless the table held totals from a totals row shown earlier. The default.
|
|
81
|
+
*/
|
|
82
|
+
readonly TotalsRow: "totalsRow";
|
|
83
|
+
/**
|
|
84
|
+
* The row becomes a row of the table, as a value would.
|
|
85
|
+
*/
|
|
86
|
+
readonly InsideTable: "insideTable";
|
|
87
|
+
/**
|
|
88
|
+
* The formula stays below the table, which does not grow.
|
|
89
|
+
*/
|
|
90
|
+
readonly BelowTable: "belowTable";
|
|
91
|
+
};
|
|
92
|
+
type FormulaBelow = typeof FormulaBelow[keyof typeof FormulaBelow];
|
|
39
93
|
/**
|
|
40
94
|
* Returns a column for the table.
|
|
41
95
|
*/
|
|
@@ -63,27 +117,75 @@ export declare namespace ITable {
|
|
|
63
117
|
*/
|
|
64
118
|
getIndex(): number;
|
|
65
119
|
/**
|
|
66
|
-
*
|
|
120
|
+
* Sets the text shown in the totals row for this column.
|
|
121
|
+
*
|
|
122
|
+
* @param label The text, or an empty string for none.
|
|
123
|
+
*
|
|
124
|
+
* @remarks
|
|
125
|
+
* A totals cell shows a label or a formula, never both: setting a label removes the column's
|
|
126
|
+
* totals formula. While the totals row is hidden the label is kept, and shown with the row.
|
|
67
127
|
*/
|
|
68
128
|
setTotalsRowLabel(label: string): this;
|
|
69
129
|
/**
|
|
70
|
-
* Returns
|
|
130
|
+
* Returns the text shown in the totals row for this column.
|
|
71
131
|
*
|
|
72
132
|
* @returns The label or `null` if there is none.
|
|
133
|
+
*
|
|
134
|
+
* @remarks
|
|
135
|
+
* While the totals row is shown this is what its cell holds, so text typed into the cell is
|
|
136
|
+
* the label.
|
|
73
137
|
*/
|
|
74
138
|
getTotalsRowLabel(): string | null;
|
|
75
139
|
/**
|
|
76
|
-
*
|
|
140
|
+
* Sets what this column totals.
|
|
141
|
+
*
|
|
142
|
+
* @param formula A `SUBTOTAL` function number (`101` to `110`; `109` is sum, `101` average,
|
|
143
|
+
* `103` count), a formula with or without the leading `=`, or `undefined` for none. A function
|
|
144
|
+
* number totals this column: `109` is `=SUBTOTAL(109,[Column])`.
|
|
77
145
|
*
|
|
78
146
|
* @remarks
|
|
79
|
-
*
|
|
80
|
-
*
|
|
147
|
+
* A totals cell shows a label or a formula, never both: setting a formula removes the column's
|
|
148
|
+
* totals label. While the totals row is hidden the formula is kept, and shown with the row.
|
|
149
|
+
*
|
|
150
|
+
* @example
|
|
151
|
+
* ```ts
|
|
152
|
+
* table.setShowTotals(true);
|
|
153
|
+
* table.getColumnByName('Amount').setTotalsRowFormula(109);
|
|
154
|
+
* table.getColumnByName('Price').setTotalsRowFormula('=MAX([Price])-MIN([Price])');
|
|
155
|
+
* ```
|
|
81
156
|
*/
|
|
82
157
|
setTotalsRowFormula(formula: string | number | undefined): this;
|
|
83
158
|
/**
|
|
84
|
-
* Returns this
|
|
159
|
+
* Returns what this column totals.
|
|
160
|
+
*
|
|
161
|
+
* @returns A `SUBTOTAL` function number when the column is totaled by one over itself, the
|
|
162
|
+
* formula without its leading `=` for anything else, or `null` if there is none.
|
|
163
|
+
*
|
|
164
|
+
* @remarks
|
|
165
|
+
* While the totals row is shown this is what its cell holds, so a formula typed into the cell
|
|
166
|
+
* is returned here, and `=SUBTOTAL(109,[Column])` typed into it returns `109`.
|
|
85
167
|
*/
|
|
86
168
|
getTotalsRowFormula(): string | number | null;
|
|
169
|
+
/**
|
|
170
|
+
* Returns the formula this column calculates its rows with.
|
|
171
|
+
*
|
|
172
|
+
* @returns The formula without its leading `=`, as it reads in the column's first body row, or
|
|
173
|
+
* `null` if this is not a calculated column.
|
|
174
|
+
*
|
|
175
|
+
* @remarks
|
|
176
|
+
* A column becomes calculated when a formula is entered into one of its cells and the rest of
|
|
177
|
+
* the column is empty: the formula is filled down the column, and every row added to the
|
|
178
|
+
* table afterwards is given it too. Entering a different formula into a calculated column
|
|
179
|
+
* replaces it for the whole column, unless the column already holds a cell that differs.
|
|
180
|
+
*
|
|
181
|
+
* @example
|
|
182
|
+
* ```ts
|
|
183
|
+
* sheet.getRange('D2').setFormula('=[@Price]*[@Qty]');
|
|
184
|
+
* // once the column has filled
|
|
185
|
+
* table.getColumnByName('Total').getCalculatedFormula(); // '[@Price]*[@Qty]'
|
|
186
|
+
* ```
|
|
187
|
+
*/
|
|
188
|
+
getCalculatedFormula(): string | null;
|
|
87
189
|
/**
|
|
88
190
|
* Returns the sort field for this column.
|
|
89
191
|
*/
|
|
@@ -140,17 +242,24 @@ export declare namespace ITable {
|
|
|
140
242
|
*/
|
|
141
243
|
id?: string;
|
|
142
244
|
/**
|
|
143
|
-
*
|
|
245
|
+
* The text shown in the totals row for this column. A column with a
|
|
246
|
+
* {@link totalsRowFormula} shows that instead.
|
|
144
247
|
*/
|
|
145
248
|
totalsRowLabel?: string;
|
|
146
249
|
/**
|
|
147
|
-
*
|
|
250
|
+
* What this column totals: a `SUBTOTAL` function number (`101` to `110`; `109` is sum) that
|
|
251
|
+
* totals this column, or a formula without its leading `=`.
|
|
148
252
|
*
|
|
149
|
-
* @
|
|
150
|
-
* If this is a custom formula then this is a string if it is a number then
|
|
151
|
-
* is is treated as the functionNum param to the SUBTOTAL function.
|
|
253
|
+
* @see {@link ITable.IColumn.setTotalsRowFormula}
|
|
152
254
|
*/
|
|
153
255
|
totalsRowFormula?: string | number;
|
|
256
|
+
/**
|
|
257
|
+
* The formula a calculated column gives its rows, without its leading `=`, as it reads in the
|
|
258
|
+
* column's first body row.
|
|
259
|
+
*
|
|
260
|
+
* @see {@link ITable.IColumn.getCalculatedFormula}
|
|
261
|
+
*/
|
|
262
|
+
calculatedColumnFormula?: string;
|
|
154
263
|
}
|
|
155
264
|
/**
|
|
156
265
|
* A set of values that can be set on a ITable.
|
|
@@ -193,15 +302,38 @@ export declare namespace ITable {
|
|
|
193
302
|
* @defaultValue 0
|
|
194
303
|
*/
|
|
195
304
|
totalsRowCount?: number;
|
|
305
|
+
/**
|
|
306
|
+
* Whether the table has ever shown a totals row.
|
|
307
|
+
*
|
|
308
|
+
* @remarks
|
|
309
|
+
* The first time a totals row is shown the last column is given a total - a sum when the
|
|
310
|
+
* column holds only numbers, a count otherwise. A table that has already shown one keeps
|
|
311
|
+
* whatever its columns had when the row was hidden, including nothing.
|
|
312
|
+
*
|
|
313
|
+
* @defaultValue false
|
|
314
|
+
*/
|
|
315
|
+
totalsRowShown?: boolean;
|
|
196
316
|
/**
|
|
197
317
|
* If not specified then the default table style is used
|
|
198
318
|
* If the style name isn't valid then uses a 'none' style.
|
|
199
319
|
*/
|
|
200
320
|
style?: ITableStyle.StyleOptions | string;
|
|
201
321
|
/**
|
|
202
|
-
*
|
|
322
|
+
* Which edges of the table grow when something is entered just beside it.
|
|
323
|
+
*
|
|
324
|
+
* @defaultValue {@link ITable.AutoExpand.Both}
|
|
325
|
+
*/
|
|
326
|
+
autoExpand?: ITable.AutoExpand;
|
|
327
|
+
/**
|
|
328
|
+
* Where a formula entered in the row just below the table goes.
|
|
329
|
+
*
|
|
330
|
+
* @defaultValue {@link ITable.FormulaBelow.TotalsRow}
|
|
331
|
+
*/
|
|
332
|
+
formulaBelow?: ITable.FormulaBelow;
|
|
333
|
+
/**
|
|
334
|
+
* If true a formula entered into a column is not filled down it.
|
|
203
335
|
*/
|
|
204
|
-
|
|
336
|
+
disabledColumnFill?: boolean;
|
|
205
337
|
/**
|
|
206
338
|
* A unique id for all tables in the workbook.
|
|
207
339
|
*
|
|
@@ -223,11 +355,20 @@ export declare namespace ITable {
|
|
|
223
355
|
*/
|
|
224
356
|
interface SnapshotDestination {
|
|
225
357
|
tables: ITableCollection;
|
|
358
|
+
/** Where the table lands: its top-left is used, its size is the table's own. */
|
|
226
359
|
range: IRange.Coords;
|
|
227
360
|
}
|
|
228
361
|
interface ISnapshot extends IHistory.ISnapshot<ITable.SnapshotDestination, ITable, IRange.Coords> {
|
|
229
362
|
/**
|
|
230
|
-
*
|
|
363
|
+
* Copies, or moves, the table to the destination.
|
|
364
|
+
*
|
|
365
|
+
* @remarks
|
|
366
|
+
* The table's cells are expected at the destination already: the table takes its header,
|
|
367
|
+
* body and totals rows from what is there.
|
|
368
|
+
*
|
|
369
|
+
* With `isCut` the source table is moved. Within its own sheet it is the same table at a new
|
|
370
|
+
* place, so its name and the references to it stay as they are; anywhere else it is removed
|
|
371
|
+
* and added again under its name.
|
|
231
372
|
*/
|
|
232
373
|
copyTo(destination: ITable.SnapshotDestination, options?: ReferenceableClipboard.CopyOptions): Promise<IRange.Coords>;
|
|
233
374
|
}
|
|
@@ -322,6 +463,9 @@ export interface ITable extends IAnchored {
|
|
|
322
463
|
/**
|
|
323
464
|
* Add a single row to the table.
|
|
324
465
|
*
|
|
466
|
+
* @param index The body row the new row goes in before, `0` being the first. Omitted, the row
|
|
467
|
+
* is added at the end.
|
|
468
|
+
*
|
|
325
469
|
* @remarks
|
|
326
470
|
* This is a convenience method for {@link addRows(index, 1)}
|
|
327
471
|
*/
|
|
@@ -329,11 +473,19 @@ export interface ITable extends IAnchored {
|
|
|
329
473
|
/**
|
|
330
474
|
* Add a number of rows to a table.
|
|
331
475
|
*
|
|
476
|
+
* @param index The body row the new rows go in before, `0` being the first. An index at or past
|
|
477
|
+
* the number of body rows adds them at the end, above the totals row if there is one.
|
|
478
|
+
* @param count The number of rows to add. Defaults to `1`.
|
|
479
|
+
*
|
|
332
480
|
* @remarks
|
|
333
|
-
*
|
|
481
|
+
* The rows are inserted across the table's columns only: cells below the table move down, and
|
|
482
|
+
* cells beside it stay where they are. A calculated column gives the new rows its formula.
|
|
334
483
|
*
|
|
335
|
-
* @
|
|
336
|
-
*
|
|
484
|
+
* @example
|
|
485
|
+
* ```ts
|
|
486
|
+
* table.addRows(0, 2); // two rows at the top of the body
|
|
487
|
+
* table.addRow(); // one at the end
|
|
488
|
+
* ```
|
|
337
489
|
*/
|
|
338
490
|
addRows(index: number, count?: number, options?: ITransaction.OperationOptions): ITable;
|
|
339
491
|
/**
|
|
@@ -386,6 +538,15 @@ export interface ITable extends IAnchored {
|
|
|
386
538
|
* @returns The column or `null` if not found.
|
|
387
539
|
*/
|
|
388
540
|
getColumnAt(index: number): ITable.IColumn | null;
|
|
541
|
+
/**
|
|
542
|
+
* Deletes the table and clears its cells.
|
|
543
|
+
*
|
|
544
|
+
* @remarks
|
|
545
|
+
* A formula that references the table has each reference replaced by `#REF!`.
|
|
546
|
+
*
|
|
547
|
+
* @see {@link ITable.convertToRange} to remove the table and keep its cells.
|
|
548
|
+
*/
|
|
549
|
+
delete(options?: ITransaction.OperationOptions): void;
|
|
389
550
|
/**
|
|
390
551
|
* Convert the existing table to a range.
|
|
391
552
|
* This will remove the table but preserve the original
|
|
@@ -395,6 +556,9 @@ export interface ITable extends IAnchored {
|
|
|
395
556
|
*
|
|
396
557
|
* @remarks
|
|
397
558
|
* This can be an expensive operation.
|
|
559
|
+
*
|
|
560
|
+
* A formula that references the table has each reference replaced by the absolute address it
|
|
561
|
+
* designated (`Sheet1!$A$2:$C$4`).
|
|
398
562
|
*/
|
|
399
563
|
convertToRange(maxCells?: number, options?: ITransaction.OperationOptions): ICellRange;
|
|
400
564
|
/**
|
|
@@ -496,7 +660,7 @@ export interface ITable extends IAnchored {
|
|
|
496
660
|
* change), so it can cache per-cell resolutions. Prefer this over
|
|
497
661
|
* `getStyle().getRanged(table)`, which allocates a fresh uncached instance.
|
|
498
662
|
*/
|
|
499
|
-
getRangedStyle(): IProperties.ICellRanged<
|
|
663
|
+
getRangedStyle(): IProperties.ICellRanged<ICellStyle.Properties>;
|
|
500
664
|
/**
|
|
501
665
|
* Returns a cell style for the given coords.
|
|
502
666
|
* @param coords The absolute coords.
|
|
@@ -506,7 +670,7 @@ export interface ITable extends IAnchored {
|
|
|
506
670
|
*
|
|
507
671
|
* * This is used by the preview.
|
|
508
672
|
*/
|
|
509
|
-
getStyleAt(coords: IRange.CellCoords):
|
|
673
|
+
getStyleAt(coords: IRange.CellCoords): ICellStyle;
|
|
510
674
|
/**
|
|
511
675
|
* Specifies if totals are being shown for the table.
|
|
512
676
|
*/
|
|
@@ -556,13 +720,42 @@ export interface ITable extends IAnchored {
|
|
|
556
720
|
*/
|
|
557
721
|
setShowBandedRows(showBandedRows: boolean, options?: ITransaction.OperationOptions): this;
|
|
558
722
|
/**
|
|
559
|
-
*
|
|
723
|
+
* Set which edges of the table grow when something is entered just beside it.
|
|
724
|
+
*
|
|
725
|
+
* @remarks
|
|
726
|
+
* The growth is its own step, so the first undo takes back the growth and keeps what was entered.
|
|
727
|
+
*/
|
|
728
|
+
setAutoExpand(autoExpand: ITable.AutoExpand, options?: ITransaction.OperationOptions): this;
|
|
729
|
+
/**
|
|
730
|
+
* Returns which edges of the table grow when something is entered just beside it.
|
|
731
|
+
*/
|
|
732
|
+
getAutoExpand(): ITable.AutoExpand;
|
|
733
|
+
/**
|
|
734
|
+
* Set where a formula entered in the row just below the table goes.
|
|
735
|
+
*
|
|
736
|
+
* @example
|
|
737
|
+
* ```ts
|
|
738
|
+
* // formulas typed under the table become new rows, as values do
|
|
739
|
+
* table.setFormulaBelow(ITable.FormulaBelow.InsideTable);
|
|
740
|
+
* ```
|
|
741
|
+
*/
|
|
742
|
+
setFormulaBelow(formulaBelow: ITable.FormulaBelow, options?: ITransaction.OperationOptions): this;
|
|
743
|
+
/**
|
|
744
|
+
* Returns where a formula entered in the row just below the table goes.
|
|
745
|
+
*/
|
|
746
|
+
getFormulaBelow(): ITable.FormulaBelow;
|
|
747
|
+
/**
|
|
748
|
+
* If true a formula entered into one cell of an empty column is not filled down the column.
|
|
749
|
+
*
|
|
750
|
+
* @remarks
|
|
751
|
+
* A column that is already calculated keeps its formula, and rows added to the table are still
|
|
752
|
+
* given it.
|
|
560
753
|
*/
|
|
561
|
-
|
|
754
|
+
setDisabledColumnFill(disabledColumnFill: boolean, options?: ITransaction.OperationOptions): this;
|
|
562
755
|
/**
|
|
563
|
-
* Returns if the table is set to not
|
|
756
|
+
* Returns if the table is set to not fill a formula down its column.
|
|
564
757
|
*/
|
|
565
|
-
|
|
758
|
+
isDisabledColumnFill(): boolean;
|
|
566
759
|
/**
|
|
567
760
|
* Returns the bounds for the ref accounting for hidden headers.
|
|
568
761
|
*
|
|
@@ -600,16 +793,19 @@ export interface ITable extends IAnchored {
|
|
|
600
793
|
*/
|
|
601
794
|
getSnapshot(options?: ReferenceableClipboard.CopyOptions): ITable.ISnapshot;
|
|
602
795
|
/**
|
|
603
|
-
*
|
|
796
|
+
* Applies all filters using the existing criteria.
|
|
604
797
|
*
|
|
605
798
|
* @remarks
|
|
606
799
|
* Does not change criteria; only recomputes which rows are visible.
|
|
800
|
+
*
|
|
801
|
+
* @returns Resolves once the rows are hidden; one transaction, one undo step.
|
|
607
802
|
*/
|
|
608
|
-
applyFilters(options?: ITransaction.OperationOptions): this
|
|
803
|
+
applyFilters(options?: ITransaction.OperationOptions): Promise<this>;
|
|
609
804
|
/**
|
|
610
|
-
* Clears all filters
|
|
805
|
+
* Clears all filters and shows every row of the table, as Excel's Clear does — a row hidden by
|
|
806
|
+
* hand inside the table comes back too. The header and totals rows are never touched.
|
|
611
807
|
*/
|
|
612
|
-
deleteFilters(options?: ITransaction.OperationOptions): this
|
|
808
|
+
deleteFilters(options?: ITransaction.OperationOptions): Promise<this>;
|
|
613
809
|
/**
|
|
614
810
|
* Returns the active filter entries as handle objects,
|
|
615
811
|
*/
|
|
@@ -619,9 +815,40 @@ export interface ITable extends IAnchored {
|
|
|
619
815
|
*/
|
|
620
816
|
getFilterAt(index: number): IFilter | null;
|
|
621
817
|
/**
|
|
622
|
-
*
|
|
818
|
+
* Adds a slicer that filters one of the table's columns.
|
|
819
|
+
*
|
|
820
|
+
* @param column The column, or its name.
|
|
821
|
+
* @param options Where it goes and how it looks. Sized 192 × 280 pixels and centered in the
|
|
822
|
+
* view unless `bounds` says otherwise; placed on the table's sheet unless `sheet` says otherwise.
|
|
823
|
+
*
|
|
824
|
+
* @returns The slicer, named for the column (`Region`, then `Region 1`), unique in the workbook.
|
|
825
|
+
*
|
|
826
|
+
* @remarks
|
|
827
|
+
* Not offered on a sheet's AutoFilter, which has no name to refer to.
|
|
828
|
+
*
|
|
829
|
+
* @example
|
|
830
|
+
* ```ts
|
|
831
|
+
* const slicer = await table.addSlicer('Region', { bounds: { x: 400, y: 20 } });
|
|
832
|
+
* await slicer.selectItems(['East']);
|
|
833
|
+
* ```
|
|
834
|
+
*/
|
|
835
|
+
addSlicer(column: ITable.IColumn | string, options?: ISlicer.AddOptions): Promise<ISlicer>;
|
|
836
|
+
/**
|
|
837
|
+
* Replaces the filter levels and hides the rows that fail them.
|
|
838
|
+
*
|
|
839
|
+
* @param conditions
|
|
840
|
+
* - `undefined` or `{ conditions: [] }` → clears every filter, as {@link deleteFilters}.
|
|
841
|
+
* - a bare `ICondition.Input` → one filter on the first column, as `ICellRange.filter`.
|
|
842
|
+
* - `{ conditions: [...] }` → one level per condition, on the column each `index` names
|
|
843
|
+
* (its position in the array when omitted), in that order.
|
|
844
|
+
*
|
|
845
|
+
* @remarks
|
|
846
|
+
* Every row the table holds is judged, whatever hid it before (`includeHidden` defaults to
|
|
847
|
+
* `true` for a filter); the header and totals rows are never evaluated or hidden.
|
|
848
|
+
*
|
|
849
|
+
* @returns Resolves once the rows are hidden; one transaction, one undo step.
|
|
623
850
|
*/
|
|
624
|
-
filter(conditions?: ICondition.Input | ICondition.RangeOptions, options?: ITransaction.OperationOptions): this
|
|
851
|
+
filter(conditions?: ICondition.Input | ICondition.RangeOptions, options?: ITransaction.OperationOptions): Promise<this>;
|
|
625
852
|
/**
|
|
626
853
|
* Replaces the sort chain.
|
|
627
854
|
*
|
|
@@ -658,13 +885,13 @@ export interface ITable extends IAnchored {
|
|
|
658
885
|
*/
|
|
659
886
|
getActiveSorts(): readonly ISort[];
|
|
660
887
|
/**
|
|
661
|
-
* Applies both
|
|
888
|
+
* Applies both applyFilters and applySorts, in that order, as one transaction.
|
|
662
889
|
*/
|
|
663
|
-
applySortsAndFilters(options?: ITransaction.OperationOptions): this
|
|
890
|
+
applySortsAndFilters(options?: ITransaction.OperationOptions): Promise<this>;
|
|
664
891
|
/**
|
|
665
|
-
* Deletes both sorts and filters.
|
|
892
|
+
* Deletes both sorts and filters as one transaction.
|
|
666
893
|
*/
|
|
667
|
-
deleteSortsAndFilters(options?: ITransaction.OperationOptions): this
|
|
894
|
+
deleteSortsAndFilters(options?: ITransaction.OperationOptions): Promise<this>;
|
|
668
895
|
/**
|
|
669
896
|
* Sets whether the filter/sort button at the specified index is hidden.
|
|
670
897
|
*/
|
|
@@ -28,6 +28,8 @@ export interface ITableCollection extends ICollection<ITable> {
|
|
|
28
28
|
* @param name The name to filter for This is case insensitive.
|
|
29
29
|
*/
|
|
30
30
|
getByName(name: string): ITable | null;
|
|
31
|
+
/** For runtime type checking. */
|
|
32
|
+
readonly isITableCollection: true;
|
|
31
33
|
}
|
|
32
34
|
/**
|
|
33
35
|
* {@inheritDoc ITableCollection}
|
|
@@ -51,8 +53,18 @@ export declare namespace ITableCollection {
|
|
|
51
53
|
* A default value of false will create a new row.
|
|
52
54
|
*/
|
|
53
55
|
hasHeader?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Whether the range already ends with the totals row the `properties` ask for. The table then
|
|
58
|
+
* takes those cells as its totals row rather than adding one below the range.
|
|
59
|
+
*
|
|
60
|
+
* @defaultValue false
|
|
61
|
+
*/
|
|
62
|
+
hasTotals?: boolean;
|
|
54
63
|
/**
|
|
55
64
|
* Properties to set on the table when created.
|
|
65
|
+
*
|
|
66
|
+
* @remarks
|
|
67
|
+
* With `headerRowCount: 0` the range has no header row: all of it is data.
|
|
56
68
|
*/
|
|
57
69
|
properties?: ITable.Properties;
|
|
58
70
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IProperties } from '../type';
|
|
2
|
-
import {
|
|
2
|
+
import { ICellStyle } from '../style';
|
|
3
3
|
import { ITable } from './ITable';
|
|
4
4
|
export declare namespace ITableStyle {
|
|
5
5
|
/**
|
|
@@ -56,13 +56,13 @@ export declare namespace ITableStyle {
|
|
|
56
56
|
};
|
|
57
57
|
type ElementType = typeof ElementType[keyof typeof ElementType];
|
|
58
58
|
/**
|
|
59
|
-
* Extends {@link
|
|
59
|
+
* Extends {@link ICellStyle.Properties} to include a size.
|
|
60
60
|
*
|
|
61
61
|
* @remarks
|
|
62
62
|
* This is used to allow for different styles depending on the number of stripes
|
|
63
63
|
* (rows or columns used for the style).
|
|
64
64
|
*/
|
|
65
|
-
interface SizeBasedProperties extends
|
|
65
|
+
interface SizeBasedProperties extends ICellStyle.Properties {
|
|
66
66
|
/**
|
|
67
67
|
* The size is available for the following table elements:
|
|
68
68
|
* * firstRowStripe
|
|
@@ -115,7 +115,7 @@ export declare namespace ITableStyle {
|
|
|
115
115
|
/**
|
|
116
116
|
* Properties for the whole table.
|
|
117
117
|
*/
|
|
118
|
-
wholeTable?:
|
|
118
|
+
wholeTable?: ICellStyle.Properties;
|
|
119
119
|
/**
|
|
120
120
|
* Properties for the first set of alternating columns.
|
|
121
121
|
*/
|
|
@@ -135,39 +135,39 @@ export declare namespace ITableStyle {
|
|
|
135
135
|
/**
|
|
136
136
|
* For the last column.
|
|
137
137
|
*/
|
|
138
|
-
lastColumn?:
|
|
138
|
+
lastColumn?: ICellStyle.Properties;
|
|
139
139
|
/**
|
|
140
140
|
* For the first column.
|
|
141
141
|
*/
|
|
142
|
-
firstColumn?:
|
|
142
|
+
firstColumn?: ICellStyle.Properties;
|
|
143
143
|
/**
|
|
144
144
|
* For the header row.
|
|
145
145
|
*/
|
|
146
|
-
headerRow?:
|
|
146
|
+
headerRow?: ICellStyle.Properties;
|
|
147
147
|
/**
|
|
148
148
|
* For the first header cell. To be applied
|
|
149
149
|
* both the header and first column must be selected.
|
|
150
150
|
*/
|
|
151
|
-
firstHeaderCell?:
|
|
151
|
+
firstHeaderCell?: ICellStyle.Properties;
|
|
152
152
|
/**
|
|
153
153
|
* For the last header cell. To be applied
|
|
154
154
|
* both the header and last column must be selected.
|
|
155
155
|
*/
|
|
156
|
-
lastHeaderCell?:
|
|
156
|
+
lastHeaderCell?: ICellStyle.Properties;
|
|
157
157
|
/**
|
|
158
158
|
* For the total row.
|
|
159
159
|
*/
|
|
160
|
-
totalRow?:
|
|
160
|
+
totalRow?: ICellStyle.Properties;
|
|
161
161
|
/**
|
|
162
162
|
* For the first total cell. To be applied
|
|
163
163
|
* both the total and first column must be selected.
|
|
164
164
|
*/
|
|
165
|
-
firstTotalCell?:
|
|
165
|
+
firstTotalCell?: ICellStyle.Properties;
|
|
166
166
|
/**
|
|
167
167
|
* For the last total cell. To be applied
|
|
168
168
|
* both the total and last column must be selected.
|
|
169
169
|
*/
|
|
170
|
-
lastTotalCell?:
|
|
170
|
+
lastTotalCell?: ICellStyle.Properties;
|
|
171
171
|
}
|
|
172
172
|
type ResolvableProperties = IProperties.ResolvableProperties<ITableStyle.Properties>;
|
|
173
173
|
interface JSON extends ITableStyle.Properties {
|
|
@@ -188,31 +188,31 @@ export declare namespace ITableStyle {
|
|
|
188
188
|
*/
|
|
189
189
|
interface PivotProperties {
|
|
190
190
|
name?: string;
|
|
191
|
-
wholeTable?:
|
|
191
|
+
wholeTable?: ICellStyle.Properties;
|
|
192
192
|
firstColumnStripe?: ITableStyle.SizeBasedProperties;
|
|
193
193
|
secondColumnStripe?: ITableStyle.SizeBasedProperties;
|
|
194
194
|
firstRowStripe?: ITableStyle.SizeBasedProperties;
|
|
195
195
|
secondRowStripe?: ITableStyle.SizeBasedProperties;
|
|
196
|
-
firstColumn?:
|
|
197
|
-
headerRow?:
|
|
198
|
-
firstHeaderCell?:
|
|
199
|
-
pageFieldLabels?:
|
|
200
|
-
pageFieldValues?:
|
|
201
|
-
subtotalColumn1?:
|
|
202
|
-
subtotalColumn2?:
|
|
203
|
-
subtotalColumn3?:
|
|
204
|
-
blankRow?:
|
|
205
|
-
subtotalRow1?:
|
|
206
|
-
subtotalRow2?:
|
|
207
|
-
subtotalRow3?:
|
|
208
|
-
columnSubheading1?:
|
|
209
|
-
columnSubheading2?:
|
|
210
|
-
columnSubheading3?:
|
|
211
|
-
rowSubheading1?:
|
|
212
|
-
rowSubheading2?:
|
|
213
|
-
rowSubheading3?:
|
|
214
|
-
grandTotalColumn?:
|
|
215
|
-
grandTotalRow?:
|
|
196
|
+
firstColumn?: ICellStyle.Properties;
|
|
197
|
+
headerRow?: ICellStyle.Properties;
|
|
198
|
+
firstHeaderCell?: ICellStyle.Properties;
|
|
199
|
+
pageFieldLabels?: ICellStyle.Properties;
|
|
200
|
+
pageFieldValues?: ICellStyle.Properties;
|
|
201
|
+
subtotalColumn1?: ICellStyle.Properties;
|
|
202
|
+
subtotalColumn2?: ICellStyle.Properties;
|
|
203
|
+
subtotalColumn3?: ICellStyle.Properties;
|
|
204
|
+
blankRow?: ICellStyle.Properties;
|
|
205
|
+
subtotalRow1?: ICellStyle.Properties;
|
|
206
|
+
subtotalRow2?: ICellStyle.Properties;
|
|
207
|
+
subtotalRow3?: ICellStyle.Properties;
|
|
208
|
+
columnSubheading1?: ICellStyle.Properties;
|
|
209
|
+
columnSubheading2?: ICellStyle.Properties;
|
|
210
|
+
columnSubheading3?: ICellStyle.Properties;
|
|
211
|
+
rowSubheading1?: ICellStyle.Properties;
|
|
212
|
+
rowSubheading2?: ICellStyle.Properties;
|
|
213
|
+
rowSubheading3?: ICellStyle.Properties;
|
|
214
|
+
grandTotalColumn?: ICellStyle.Properties;
|
|
215
|
+
grandTotalRow?: ICellStyle.Properties;
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
218
|
/**
|
|
@@ -244,9 +244,9 @@ export interface ITableStyle {
|
|
|
244
244
|
* Returns a ranged interface for applying this style to a specific table.
|
|
245
245
|
*
|
|
246
246
|
* @param table The target `ITable` to which this style will be applied.
|
|
247
|
-
* @returns An `ICellRanged` interface containing properties for `
|
|
247
|
+
* @returns An `ICellRanged` interface containing properties for `ICellStyle`.
|
|
248
248
|
*/
|
|
249
|
-
getRanged(table: ITable): IProperties.ICellRanged<
|
|
249
|
+
getRanged(table: ITable): IProperties.ICellRanged<ICellStyle.Properties>;
|
|
250
250
|
/**
|
|
251
251
|
* Indicates whether this style is a built-in, predefined style.
|
|
252
252
|
*
|
|
@@ -294,7 +294,7 @@ export declare namespace ITableStyle {
|
|
|
294
294
|
*/
|
|
295
295
|
class Empty implements ITableStyle {
|
|
296
296
|
private _normalStyle;
|
|
297
|
-
constructor(normalStyle:
|
|
297
|
+
constructor(normalStyle: ICellStyle);
|
|
298
298
|
/** {@inheritDoc ITableStyle.getName} */
|
|
299
299
|
getName(): string;
|
|
300
300
|
/** {@inheritDoc ITableStyle.isShownInTableStyles} */
|
|
@@ -302,7 +302,7 @@ export declare namespace ITableStyle {
|
|
|
302
302
|
/** {@inheritDoc ITableStyle.isShownInPivotStyles} */
|
|
303
303
|
isShownInPivotStyles(): boolean;
|
|
304
304
|
/** {@inheritDoc ITableStyle.getRanged} */
|
|
305
|
-
getRanged(_table: ITable): IProperties.ICellRanged<
|
|
305
|
+
getRanged(_table: ITable): IProperties.ICellRanged<ICellStyle.Properties>;
|
|
306
306
|
/** {@inheritDoc ITableStyle.getProperties} */
|
|
307
307
|
getProperties(): Readonly<ITableStyle.Properties>;
|
|
308
308
|
/** {@inheritDoc ITableStyle.isBuiltIn} */
|