@sheetxl/sdk 0.8.0-beta.1 → 0.8.0-beta.3
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/cjs/B0AS8k-hrSCBUlUY.cjs +1 -0
- package/browser/cjs/B308aXzcAYr1GN1c.cjs +1 -0
- package/browser/cjs/B44p8LIyxG3GtaGC.cjs +93 -0
- package/browser/cjs/{a0Z-SXs_N71CtqYb.cjs → D6YaqporVrSewZpm.cjs} +1 -1
- package/browser/cjs/DjWcveVCs0NFiKep.cjs +1 -0
- package/browser/cjs/index.cjs +2 -2
- package/browser/esm/-OKDZ9cUBtkgD4Zr.mjs +20 -0
- package/browser/esm/8Nw0lKc4ISs7hEJT.mjs +70223 -0
- package/browser/esm/{DlPMeIyxT9tG_WDk.mjs → BmEEyMxNzlbXG98H.mjs} +2 -2
- package/browser/esm/BtdDRkWn-zCV3oic.mjs +394 -0
- package/browser/esm/DaCTT4vda0m8Fnxo.mjs +8 -0
- package/browser/esm/{B0HS42a7lga1k1U_.mjs → DvFKKE72ZA02l8iF.mjs} +1 -1
- package/browser/esm/{uyWBMSIxMlt8n5Z3.mjs → Z-dzbKvqaxll9l_t.mjs} +2 -2
- package/browser/esm/index.mjs +871 -696
- package/licenses/dependencies.txt +204 -204
- package/node/esm/{Cku7XiUvw1xrRasi.mjs → BpMTlTrJLWh_wJ5H.mjs} +1 -1
- package/node/esm/D5quDVovf1zjYBgJ.mjs +28 -0
- package/node/esm/DP0M3_S_dwLwRMiA.mjs +403 -0
- package/node/esm/DTHN_EkuOscW3f3B.mjs +8 -0
- package/node/esm/index.mjs +54375 -39377
- package/package.json +6 -7
- package/resources/locales/de/model.msg.json +45 -9
- package/resources/locales/en/model.msg.json +42 -9
- package/types/scripting-api.json +7094 -0
- package/types/scripting-enums.json +54 -8
- package/types/scripting.d.ts +6985 -1171
- 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} +41 -40
- package/types/src/border/index.d.ts +1 -1
- package/types/src/calculation/Calculation.d.ts +740 -35
- package/types/src/calculation/ExternalBookBindings.d.ts +118 -0
- package/types/src/calculation/FormulaText.d.ts +74 -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/compiler/ASTTypes.d.ts +58 -0
- package/types/src/calculation/compiler/CompilerUtils.d.ts +134 -12
- 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 +124 -21
- package/types/src/calculation/formula/FormulaRecordView.d.ts +79 -0
- package/types/src/calculation/formula/IFormulaBlock.d.ts +261 -67
- package/types/src/calculation/formula/LambdaValue.d.ts +15 -16
- 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/initializeFunctions.d.ts +15 -2
- package/types/src/calculation/grid/CalcGrid.d.ts +384 -158
- package/types/src/calculation/grid/CalcGridBackend.d.ts +450 -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 +236 -0
- package/types/src/calculation/grid/ICalcGrid.d.ts +456 -143
- package/types/src/calculation/grid/_CalcRequest.d.ts +272 -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 +36 -2
- 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 +78 -23
- package/types/src/cell/ICellProtection.d.ts +50 -10
- package/types/src/cellRange/ICellRange.d.ts +329 -72
- package/types/src/cellRange/ICellRanges.d.ts +9 -7
- package/types/src/chart/Chart.d.ts +72 -2
- package/types/src/chart/ChartCollection.d.ts +26 -0
- package/types/src/chart/IChart.d.ts +162 -9
- 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/comment/Comment.d.ts +159 -0
- package/types/src/comment/CommentCollection.d.ts +40 -0
- package/types/src/comment/IComment.d.ts +319 -48
- package/types/src/comment/ICommentCollection.d.ts +90 -0
- package/types/src/comment/_CommentUtils.d.ts +28 -0
- package/types/src/comment/index.d.ts +1 -0
- package/types/src/condition/AnchoredConditional.d.ts +76 -17
- package/types/src/condition/BuiltInOperators/AbstractOperator.d.ts +8 -7
- package/types/src/condition/BuiltInOperators/EqualToOperator.d.ts +2 -1
- package/types/src/condition/BuiltInOperators/ExpressionOperator.d.ts +3 -6
- package/types/src/condition/BuiltInOperators/InSetOperator.d.ts +1 -1
- package/types/src/condition/BuiltinSelectors/BaseSelector.d.ts +7 -0
- package/types/src/condition/BuiltinSelectors/ListSelector.d.ts +9 -0
- package/types/src/condition/Condition.d.ts +16 -0
- package/types/src/condition/ICondition.d.ts +86 -33
- package/types/src/condition/_ConditionFormula.d.ts +152 -0
- package/types/src/condition/_ConditionUtils.d.ts +73 -10
- package/types/src/conditionalFormat/ConditionalFormat.d.ts +21 -10
- package/types/src/conditionalFormat/ConditionalFormatCollection.d.ts +19 -8
- package/types/src/conditionalFormat/IConditionalFormat.d.ts +5 -3
- package/types/src/conditionalFormat/IConditionalFormatCollection.d.ts +2 -0
- package/types/src/dataValidation/DataValidation.d.ts +50 -3
- package/types/src/dataValidation/DataValidationCollection.d.ts +20 -9
- package/types/src/dataValidation/IDataValidation.d.ts +119 -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/fill/IStroke.d.ts +1 -1
- package/types/src/filter/IFilter.d.ts +29 -4
- package/types/src/font/IFont.d.ts +17 -0
- package/types/src/history/IHistory.d.ts +3 -2
- package/types/src/i18n/LanguagePack.d.ts +12 -4
- package/types/src/index.d.ts +3 -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/lib/file/file.browser.d.ts +19 -5
- package/types/src/lib/file/file.node.d.ts +5 -0
- package/types/src/lib/utils/_Utils.d.ts +11 -0
- package/types/src/lib/utils/utils.browser.d.ts +9 -3
- package/types/src/license/license-key.d.ts +27 -0
- 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/Control.d.ts +57 -0
- package/types/src/movable/IControl.d.ts +84 -0
- package/types/src/movable/IMovable.d.ts +23 -1
- package/types/src/movable/IMovableCollection.d.ts +2 -0
- package/types/src/movable/Movable.d.ts +4 -6
- package/types/src/movable/MovableCollection.d.ts +7 -7
- package/types/src/movable/index.d.ts +4 -0
- 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 +15 -7
- package/types/src/numFmt/IFormatEngine.d.ts +2 -0
- package/types/src/numFmt/NumfmtFormatEngine.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 +3 -0
- package/types/src/picture/IPicture.d.ts +2 -0
- package/types/src/picture/Picture.d.ts +2 -0
- package/types/src/pivot/IPivotTable.d.ts +107 -0
- package/types/src/pivot/IPivotTableCollection.d.ts +25 -0
- package/types/src/pivot/PivotTable.d.ts +57 -0
- package/types/src/pivot/PivotTableCollection.d.ts +25 -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/LambdaBrand.d.ts +21 -0
- package/types/src/primitives/PrimitiveUtils.d.ts +56 -19
- package/types/src/primitives/Range.d.ts +102 -24
- package/types/src/primitives/RangeStats.d.ts +24 -1
- package/types/src/primitives/ReferenceRange.d.ts +42 -0
- package/types/src/primitives/Runtime.d.ts +15 -2
- package/types/src/primitives/stats/FrequencyStats.d.ts +9 -0
- package/types/src/primitives/stats/LookupIndex.d.ts +46 -0
- package/types/src/primitives/stats/SortedNumbers.d.ts +2 -0
- 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 +41 -11
- package/types/src/scripting/IFunctionCollection.d.ts +41 -0
- 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 +18 -0
- 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 +2 -0
- package/types/src/scripting/TypedFunction.d.ts +151 -18
- package/types/src/scripting/_FunctionIndex.d.ts +5 -0
- 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/IRangeSelection.d.ts +9 -4
- package/types/src/selection/RangeSelection.d.ts +2 -0
- package/types/src/shape/IShape.d.ts +41 -3
- package/types/src/shape/Shape.d.ts +10 -0
- package/types/src/shape/_ShapeXml.d.ts +28 -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 +224 -41
- package/types/src/sheet/ISheetCollection.d.ts +2 -5
- package/types/src/sheet/NamedCellRange.d.ts +16 -7
- package/types/src/sheet/Sheet.d.ts +749 -114
- package/types/src/sheet/SheetCell.d.ts +81 -21
- package/types/src/sheet/SheetCollection.d.ts +19 -8
- package/types/src/sheet/SheetRange.d.ts +62 -14
- package/types/src/sheet/SheetRanges.d.ts +4 -6
- package/types/src/sheet/_CellBuffer.d.ts +214 -0
- package/types/src/sheet/_InvalidSheetRange.d.ts +5 -5
- 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 +32 -1
- package/types/src/sheet/_SheetIntents.d.ts +250 -0
- package/types/src/sheet/_SheetMutations.d.ts +179 -59
- package/types/src/sheet/_SheetStateReader.d.ts +16 -10
- package/types/src/sheet/_SheetStateTypes.d.ts +57 -73
- package/types/src/sheet/_SheetUtils.d.ts +2 -18
- 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 +91 -64
- package/types/src/sheet/style/SheetDirectStyle.d.ts +16 -5
- package/types/src/sheet/style/_Resolvers.d.ts +5 -3
- package/types/src/sheet/style/_StyleUtils.d.ts +37 -7
- package/types/src/sheetHeader/ISheetHeader.d.ts +2 -0
- package/types/src/sheetHeader/SheetHeader.d.ts +14 -0
- 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 +45 -1
- package/types/src/sheetView/SheetView.d.ts +11 -0
- package/types/src/slicer/ISlicer.d.ts +2 -0
- package/types/src/slicer/Slicer.d.ts +2 -0
- package/types/src/sort/ISort.d.ts +2 -0
- package/types/src/string/IStringCollection.d.ts +5 -0
- package/types/src/string/StringCollection.d.ts +6 -6
- package/types/src/style/INamedStyleCollection.d.ts +72 -0
- package/types/src/style/IStyle.d.ts +30 -10
- package/types/src/style/IStyleCollection.d.ts +63 -42
- package/types/src/style/ITableStyleCollection.d.ts +89 -0
- package/types/src/style/NamedStyleCollection.d.ts +39 -0
- package/types/src/style/StyleCollection.d.ts +41 -5
- package/types/src/style/TableStyleCollection.d.ts +49 -0
- package/types/src/style/_BuiltInStyleDefs.d.ts +3 -3
- package/types/src/style/index.d.ts +4 -0
- package/types/src/table/AnchoredTable.d.ts +644 -68
- package/types/src/table/AutoTable.d.ts +5 -5
- package/types/src/table/ITable.d.ts +228 -30
- package/types/src/table/ITableCollection.d.ts +2 -0
- package/types/src/table/TableCollection.d.ts +19 -8
- package/types/src/table/_FilterField.d.ts +7 -5
- 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/ITextFrame.d.ts +25 -1
- package/types/src/text/TextBoxAlignment.d.ts +15 -6
- 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/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/theme/ITheme.d.ts +2 -0
- package/types/src/theme/IThemeCollection.d.ts +2 -0
- package/types/src/theme/ThemeCollection.d.ts +8 -7
- package/types/src/transaction/ITransaction.d.ts +238 -36
- package/types/src/transaction/Transaction.d.ts +99 -11
- 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/workbook/IWorkbook.d.ts +171 -40
- package/types/src/workbook/Workbook.d.ts +103 -7
- 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/BatsV2UUraVDCRXm.cjs +0 -57
- package/browser/cjs/CUz53T65cRGQRgvv.cjs +0 -33
- package/browser/cjs/DU0kYUtdFa3jK-im.cjs +0 -1
- package/browser/cjs/Dv4yIPLV98M5zLHa.cjs +0 -1
- 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/dataValidation/_Utils.d.ts +0 -10
- 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
|
@@ -4,78 +4,73 @@ import { IColor } from '../color';
|
|
|
4
4
|
import { ITheme } from '../theme';
|
|
5
5
|
import { ITableStyle } from '../table';
|
|
6
6
|
import { IStyle } from '../style';
|
|
7
|
+
import { INamedStyleCollection } from './INamedStyleCollection';
|
|
8
|
+
import { ITableStyleCollection } from './ITableStyleCollection';
|
|
7
9
|
/**
|
|
8
|
-
*
|
|
10
|
+
* The workbook's styling: its named cell styles and table styles (each a collection of its
|
|
11
|
+
* own), the theme and default font size the styles resolve against, color resolution, and the
|
|
12
|
+
* style algebra (`normalize` / `resolve`) with persistence.
|
|
9
13
|
*/
|
|
10
14
|
export interface IStyleCollection {
|
|
11
15
|
/**
|
|
12
|
-
* Returns
|
|
16
|
+
* Returns the named cell styles.
|
|
17
|
+
*/
|
|
18
|
+
getNamedStyles(): INamedStyleCollection;
|
|
19
|
+
/**
|
|
20
|
+
* Returns the table styles, and the default for a new table.
|
|
21
|
+
*/
|
|
22
|
+
getTableStyles(): ITableStyleCollection;
|
|
23
|
+
/**
|
|
24
|
+
* Returns the named style with the given name, or `null` if there is none.
|
|
13
25
|
*
|
|
14
|
-
* @
|
|
15
|
-
* Will try to return:
|
|
16
|
-
* 1. The custom style for the name
|
|
17
|
-
* 2. The builtin style for the name.
|
|
18
|
-
* 3. nul if it doesn't exist.
|
|
26
|
+
* @deprecated Use {@link getNamedStyles}`().getByName(name)`; removed in the next release.
|
|
19
27
|
*/
|
|
20
28
|
getNamed(name: string): IStyle.INamed | null;
|
|
21
29
|
/**
|
|
22
|
-
* Returns
|
|
30
|
+
* Returns the document's own named styles, customized built-ins included.
|
|
23
31
|
*
|
|
24
|
-
* @
|
|
25
|
-
*
|
|
32
|
+
* @deprecated Use {@link getNamedStyles}`().getItems({ type: 'custom' })`; removed in the next
|
|
33
|
+
* release.
|
|
26
34
|
*/
|
|
27
35
|
getCustomNamed(): IStyle.INamed[];
|
|
28
36
|
/**
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* @param modifiers The Style or Style Modifiers
|
|
32
|
-
* @param mergeIfExists If true then the style will be merged with the existing style otherwise is a replace. @defaultValue false
|
|
33
|
-
* @returns The new style after any merges.
|
|
37
|
+
* Adds or updates a named style.
|
|
34
38
|
*
|
|
35
|
-
* @
|
|
36
|
-
*
|
|
39
|
+
* @deprecated Use {@link getNamedStyles}`().set(update, mergeIfExists)`; removed in the next
|
|
40
|
+
* release.
|
|
37
41
|
*/
|
|
38
42
|
setNamed(modifiers: IStyle.NamedUpdate, mergeIfExists?: boolean): IStyle.INamed;
|
|
39
43
|
/**
|
|
40
|
-
* Returns
|
|
44
|
+
* Returns the table style with the given name, or `null` if there is none; with no name, the
|
|
45
|
+
* style of a table that has none.
|
|
41
46
|
*
|
|
42
|
-
* @
|
|
43
|
-
*
|
|
44
|
-
* 1. The custom style for the name
|
|
45
|
-
* 2. The builtIn style for the name.
|
|
46
|
-
* 3. `null` if it doesn't exist.
|
|
47
|
+
* @deprecated Use {@link getTableStyles}`().getByName(name)` (or `.getNone()`); removed in the
|
|
48
|
+
* next release.
|
|
47
49
|
*/
|
|
48
50
|
getTableStyle(name?: string): ITableStyle | null;
|
|
49
51
|
/**
|
|
50
|
-
* Returns
|
|
52
|
+
* Returns the document's own table styles, customized built-ins included.
|
|
51
53
|
*
|
|
52
|
-
* @
|
|
53
|
-
*
|
|
54
|
+
* @deprecated Use {@link getTableStyles}`().getItems({ type: 'custom' })`; removed in the next
|
|
55
|
+
* release.
|
|
54
56
|
*/
|
|
55
57
|
getCustomTableStyles(): ITableStyle[];
|
|
56
58
|
/**
|
|
57
|
-
*
|
|
58
|
-
|
|
59
|
-
* @param name A string of the name of the table.
|
|
60
|
-
* @param properties The values to set for the table style.
|
|
61
|
-
* @returns A new `ITableStyle` representing the updated style.
|
|
59
|
+
* Adds or updates a table style.
|
|
62
60
|
*
|
|
63
|
-
* @
|
|
64
|
-
* Case insensitive; for duplicate detection purposes.
|
|
61
|
+
* @deprecated Use {@link getTableStyles}`().set(name, properties)`; removed in the next release.
|
|
65
62
|
*/
|
|
66
63
|
setCustomTableStyle(name: string, properties: ITableStyle.ResolvableProperties): ITableStyle;
|
|
67
64
|
/**
|
|
68
|
-
*
|
|
65
|
+
* Sets the style a table is given when it is created without one.
|
|
69
66
|
*
|
|
70
|
-
* @
|
|
71
|
-
* @remarks
|
|
72
|
-
* The style must exist or the defaultStyle will be set to 'TableStyleMedium2'.
|
|
67
|
+
* @deprecated Use {@link getTableStyles}`().setDefault(name)`; removed in the next release.
|
|
73
68
|
*/
|
|
74
69
|
setDefaultTableStyle(name: string): void;
|
|
75
70
|
/**
|
|
76
|
-
* Returns the
|
|
77
|
-
*
|
|
78
|
-
* {@link
|
|
71
|
+
* Returns the style a table is given when it is created without one.
|
|
72
|
+
*
|
|
73
|
+
* @deprecated Use {@link getTableStyles}`().getDefault()`; removed in the next release.
|
|
79
74
|
*/
|
|
80
75
|
getDefaultTableStyle(): ITableStyle;
|
|
81
76
|
/**
|
|
@@ -195,6 +190,8 @@ export interface IStyleCollection {
|
|
|
195
190
|
* {@link IStyleCollection.IPersistScope}
|
|
196
191
|
*/
|
|
197
192
|
beginPersist(): IStyleCollection.IPersistScope;
|
|
193
|
+
/** For runtime type checking. */
|
|
194
|
+
readonly isIStyleCollection: true;
|
|
198
195
|
}
|
|
199
196
|
/**
|
|
200
197
|
* {@inheritDoc IStyleCollection}
|
|
@@ -206,12 +203,31 @@ export interface IStyleCollection {
|
|
|
206
203
|
export declare namespace IStyleCollection {
|
|
207
204
|
interface Events {
|
|
208
205
|
/**
|
|
209
|
-
|
|
210
|
-
|
|
206
|
+
* Called when a named style is added, changed or removed.
|
|
207
|
+
*
|
|
208
|
+
* @deprecated Listen to {@link IStyleCollection.getNamedStyles}`().addListeners({ onCollectionChange })`;
|
|
209
|
+
* removed in the next release.
|
|
210
|
+
*/
|
|
211
211
|
onNamedStylesChange?(source: IStyleCollection): void;
|
|
212
|
+
/**
|
|
213
|
+
* Called when a table style is added, changed or removed, or the default changes.
|
|
214
|
+
*
|
|
215
|
+
* @deprecated Listen to {@link IStyleCollection.getTableStyles}`().addListeners({ onCollectionChange })`;
|
|
216
|
+
* removed in the next release.
|
|
217
|
+
*/
|
|
212
218
|
onTableStylesChange?(source: IStyleCollection): void;
|
|
219
|
+
/**
|
|
220
|
+
* Called when the theme changes.
|
|
221
|
+
*/
|
|
213
222
|
onThemeChange?(source: IStyleCollection): void;
|
|
223
|
+
/**
|
|
224
|
+
* Called when the default font size changes.
|
|
225
|
+
*/
|
|
214
226
|
onDefaultFontChange?(source: IStyleCollection): void;
|
|
227
|
+
/**
|
|
228
|
+
* Called for any of the above, and for any change to the named or table styles — the one
|
|
229
|
+
* event a renderer needs.
|
|
230
|
+
*/
|
|
215
231
|
onAnyChange?(source: IStyleCollection): void;
|
|
216
232
|
}
|
|
217
233
|
interface IListeners extends IListener.Callbacks<IStyleCollection, IStyleCollection.Events> {
|
|
@@ -267,6 +283,11 @@ export declare namespace IStyleCollection {
|
|
|
267
283
|
* @remarks
|
|
268
284
|
* Once this is called the getSharedStyle is available for all
|
|
269
285
|
* the ids defined in the JSON for the current scope.
|
|
286
|
+
*
|
|
287
|
+
* Loads INTO the collection: a named or table style in the JSON is added, or replaces the
|
|
288
|
+
* one of that name, and nothing already there is removed. A document load starts from a
|
|
289
|
+
* fresh collection; a sheet loaded into a live workbook brings its styles along and merges.
|
|
290
|
+
* The named and table style collections announce what was loaded.
|
|
270
291
|
* @param json {@link IStyleCollection.JSON}
|
|
271
292
|
*/
|
|
272
293
|
fromJSON(json: IStyleCollection.JSON): void;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { ICollection } from '../type';
|
|
2
|
+
import { IThemeCollection } from '../theme';
|
|
3
|
+
import { ITableStyle } from '../table';
|
|
4
|
+
/**
|
|
5
|
+
* The table styles of a workbook — the built-ins (`TableStyleMedium2`, ...) and the ones the
|
|
6
|
+
* document defines — and which of them is the default for a new table.
|
|
7
|
+
*
|
|
8
|
+
* @remarks
|
|
9
|
+
* Office Scripts has the same shape: `Workbook.getTableStyles()`, `getTableStyle(name)`,
|
|
10
|
+
* `getDefaultTableStyle()` / `setDefaultTableStyle(style)`; its pivot table styles are the
|
|
11
|
+
* members here that are shown for pivots (`getItems({ shownIn: 'pivot' })`).
|
|
12
|
+
*
|
|
13
|
+
* Order is the gallery's: the built-ins in their definition order, each replaced in place by a
|
|
14
|
+
* custom style of the same name, then the document's own styles by name.
|
|
15
|
+
*
|
|
16
|
+
* `onCollectionChange` announces a style added, changed or deleted, and a change of the default.
|
|
17
|
+
*
|
|
18
|
+
* Reached from {@link IStyleCollection.getTableStyles}.
|
|
19
|
+
*/
|
|
20
|
+
export interface ITableStyleCollection extends ICollection<ITableStyle> {
|
|
21
|
+
/**
|
|
22
|
+
* Returns the style with the given name, or `null` if there is none.
|
|
23
|
+
*
|
|
24
|
+
* @param name The name, compared case-insensitively.
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
* A custom style of a built-in's name replaces the built-in, and is what is returned.
|
|
28
|
+
*/
|
|
29
|
+
getByName(name: string): ITableStyle | null;
|
|
30
|
+
/**
|
|
31
|
+
* Adds or updates a style.
|
|
32
|
+
*
|
|
33
|
+
* @param name The name, compared case-insensitively. Setting a built-in's name customizes
|
|
34
|
+
* the built-in.
|
|
35
|
+
* @param properties The style's values.
|
|
36
|
+
* @returns The style as stored.
|
|
37
|
+
*/
|
|
38
|
+
set(name: string, properties: ITableStyle.ResolvableProperties): ITableStyle;
|
|
39
|
+
/**
|
|
40
|
+
* Returns the styles that match the filter, in gallery order.
|
|
41
|
+
*
|
|
42
|
+
* @param options {@link ITableStyleCollection.GetItemsOptions}
|
|
43
|
+
*/
|
|
44
|
+
getItems(options?: ITableStyleCollection.GetItemsOptions): ITableStyle[];
|
|
45
|
+
/**
|
|
46
|
+
* Returns the style a table is given when it is created without one.
|
|
47
|
+
*/
|
|
48
|
+
getDefault(): ITableStyle;
|
|
49
|
+
/**
|
|
50
|
+
* Sets the style a table is given when it is created without one.
|
|
51
|
+
*
|
|
52
|
+
* @param style The style, or its name. A name that matches nothing leaves the default at
|
|
53
|
+
* `TableStyleMedium2`, the built-in default.
|
|
54
|
+
* @returns The previous default.
|
|
55
|
+
*/
|
|
56
|
+
setDefault(style: ITableStyle | string): ITableStyle;
|
|
57
|
+
/**
|
|
58
|
+
* Returns the style of a table that has none: it applies nothing, and is never in the list.
|
|
59
|
+
*/
|
|
60
|
+
getNone(): ITableStyle;
|
|
61
|
+
/** For runtime type checking. */
|
|
62
|
+
readonly isITableStyleCollection: true;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* {@inheritDoc ITableStyleCollection}
|
|
66
|
+
* @see
|
|
67
|
+
* ### **Interface**
|
|
68
|
+
*
|
|
69
|
+
* {@link ITableStyleCollection}
|
|
70
|
+
*/
|
|
71
|
+
export declare namespace ITableStyleCollection {
|
|
72
|
+
interface GetItemsOptions extends ICollection.GetItemsOptions {
|
|
73
|
+
/**
|
|
74
|
+
* Which styles: the built-ins, the document's own (a customized built-in is one of the
|
|
75
|
+
* document's own), or every style.
|
|
76
|
+
*
|
|
77
|
+
* @defaultValue `IThemeCollection.BuiltInFilterType.All`
|
|
78
|
+
*/
|
|
79
|
+
type?: IThemeCollection.BuiltInFilterType;
|
|
80
|
+
/**
|
|
81
|
+
* Only the styles offered for tables, or only those offered for pivot tables — see
|
|
82
|
+
* {@link ITableStyle.isShownInTableStyles} and {@link ITableStyle.isShownInPivotStyles}.
|
|
83
|
+
*
|
|
84
|
+
* @defaultValue every style, wherever it is shown.
|
|
85
|
+
*/
|
|
86
|
+
shownIn?: 'table' | 'pivot';
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
//# sourceMappingURL=ITableStyleCollection.d.ts.map
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { AbstractCollection } from '../type';
|
|
2
|
+
import { IStyle } from './IStyle';
|
|
3
|
+
import { INamedStyleCollection } from './INamedStyleCollection';
|
|
4
|
+
/**
|
|
5
|
+
* Implementation for {@link INamedStyleCollection}.
|
|
6
|
+
*
|
|
7
|
+
* @remarks
|
|
8
|
+
* A front over the {@link StyleCollection}'s maps — the style collection keeps the definitions
|
|
9
|
+
* (they resolve against its theme) and this class keeps the API and the announcing.
|
|
10
|
+
*/
|
|
11
|
+
export declare class NamedStyleCollection extends AbstractCollection<IStyle.INamed, INamedStyleCollection.GetItemsOptions> implements INamedStyleCollection {
|
|
12
|
+
private _host;
|
|
13
|
+
constructor(host: NamedStyleCollection.Host);
|
|
14
|
+
/** {@inheritDoc AbstractCollection._getItems} */
|
|
15
|
+
protected _getItems(options?: INamedStyleCollection.GetItemsOptions): IStyle.INamed[];
|
|
16
|
+
/** {@inheritDoc INamedStyleCollection.getByName} */
|
|
17
|
+
getByName(name: string): IStyle.INamed | null;
|
|
18
|
+
/** {@inheritDoc INamedStyleCollection.set} */
|
|
19
|
+
set(update: IStyle.NamedUpdate, mergeIfExists?: boolean): IStyle.INamed;
|
|
20
|
+
/**
|
|
21
|
+
* Announces a change the host made itself — a built-in hidden, a custom style removed, a load.
|
|
22
|
+
* @internal
|
|
23
|
+
*/
|
|
24
|
+
_announceChange(): void;
|
|
25
|
+
/** {@inheritDoc INamedStyleCollection.isINamedStyleCollection} */
|
|
26
|
+
get isINamedStyleCollection(): true;
|
|
27
|
+
}
|
|
28
|
+
export declare namespace NamedStyleCollection {
|
|
29
|
+
/**
|
|
30
|
+
* What the style collection lends this front: its maps, keyed by lower-cased name and in
|
|
31
|
+
* gallery order, and the one write that needs its resolvers.
|
|
32
|
+
*/
|
|
33
|
+
interface Host {
|
|
34
|
+
builtIns(): ReadonlyMap<string, IStyle.INamed>;
|
|
35
|
+
customs(): ReadonlyMap<string, IStyle.INamed>;
|
|
36
|
+
set(update: IStyle.NamedUpdate, mergeIfExists: boolean): IStyle.INamed;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=NamedStyleCollection.d.ts.map
|
|
@@ -5,6 +5,10 @@ import { ITheme } from '../theme';
|
|
|
5
5
|
import { ITableStyle } from '../table';
|
|
6
6
|
import { IStyle } from './IStyle';
|
|
7
7
|
import { IStyleCollection } from './IStyleCollection';
|
|
8
|
+
import { INamedStyleCollection } from './INamedStyleCollection';
|
|
9
|
+
import { ITableStyleCollection } from './ITableStyleCollection';
|
|
10
|
+
import { NamedStyleCollection } from './NamedStyleCollection';
|
|
11
|
+
import { TableStyleCollection } from './TableStyleCollection';
|
|
8
12
|
import { ListenerEmitter } from '../listener/ListenerEmitter';
|
|
9
13
|
interface PersistScopeState {
|
|
10
14
|
byJSONs: Map<string, number>;
|
|
@@ -42,9 +46,15 @@ export declare class StyleCollection implements IStyleCollection {
|
|
|
42
46
|
protected _defaultFontSize: number;
|
|
43
47
|
protected _schemeLookup: IColor.SchemeLookup;
|
|
44
48
|
protected _indexedLookup: IColor.IndexedLookup;
|
|
49
|
+
/**
|
|
50
|
+
* The built-in named styles, keyed by lower-cased name in definition order. Only `Normal` is
|
|
51
|
+
* built at construction; the rest on first need — see {@link _ensureBuiltInCellStyles}.
|
|
52
|
+
*/
|
|
45
53
|
protected _builtInsCellStyles: Map<string, IStyle.INamed>;
|
|
54
|
+
protected _builtInsCellStylesComplete: boolean;
|
|
46
55
|
protected _customCellStyles: Map<string, IStyle.INamed>;
|
|
47
|
-
|
|
56
|
+
/** The built-in table styles, keyed by lower-cased name; built on first need. */
|
|
57
|
+
protected _builtInsTableStyles: Map<string, ITableStyle> | null;
|
|
48
58
|
protected _customTableStyles: Map<string, ITableStyle>;
|
|
49
59
|
protected _emptyTableStyle: ITableStyle.Empty;
|
|
50
60
|
protected _customIndexedColors: readonly IColor[];
|
|
@@ -52,11 +62,29 @@ export declare class StyleCollection implements IStyleCollection {
|
|
|
52
62
|
protected _normalStyle: IStyle;
|
|
53
63
|
protected _normalRanged: IProperties.ICellRanged<IStyle.Properties>;
|
|
54
64
|
protected _defaultTableStyle: ITableStyle | null;
|
|
65
|
+
protected _namedStyles: NamedStyleCollection;
|
|
66
|
+
protected _tableStyles: TableStyleCollection;
|
|
55
67
|
protected _persistCache: PersistScopeState | null;
|
|
56
68
|
constructor(theme?: ITheme | null, indexedColors?: string[] | null, defaultFontSize?: number);
|
|
57
|
-
|
|
69
|
+
/** {@inheritDoc IStyleCollection.getNamedStyles} */
|
|
70
|
+
getNamedStyles(): INamedStyleCollection;
|
|
71
|
+
/** {@inheritDoc IStyleCollection.getTableStyles} */
|
|
72
|
+
getTableStyles(): ITableStyleCollection;
|
|
73
|
+
/**
|
|
74
|
+
* Builds the built-in named styles from `from` on, into the map in definition order.
|
|
75
|
+
*/
|
|
76
|
+
protected _initializeNamedStyles(namedStyles: readonly IStyle.Properties[], builtInStyleMap: Map<string, IStyle.INamed>, from?: number, to?: number): void;
|
|
58
77
|
protected _initializeTableStyles(): Map<string, ITableStyle>;
|
|
78
|
+
/**
|
|
79
|
+
* Builds what every collection needs at once: `Normal` (the base of every style) and the
|
|
80
|
+
* empty table style. The other built-ins wait for a first need — most collections are the
|
|
81
|
+
* fallback a detached item constructs and never ask for a gallery.
|
|
82
|
+
*/
|
|
59
83
|
protected _initializeBuiltIns(): void;
|
|
84
|
+
/** The built-in named styles, all of them, built on the first call. */
|
|
85
|
+
protected _ensureBuiltInCellStyles(): Map<string, IStyle.INamed>;
|
|
86
|
+
/** The built-in table styles, built on the first call. */
|
|
87
|
+
protected _ensureBuiltInTableStyles(): Map<string, ITableStyle>;
|
|
60
88
|
/** {@inheritDoc IStyleCollection.getNormal} */
|
|
61
89
|
getNormal(): IStyle;
|
|
62
90
|
/** {@inheritDoc IStyleCollection.getNormalRanged} */
|
|
@@ -77,20 +105,26 @@ export declare class StyleCollection implements IStyleCollection {
|
|
|
77
105
|
getCustomNamed(): IStyle.INamed[];
|
|
78
106
|
/** {@inheritDoc IStyleCollection.setNamed} */
|
|
79
107
|
setNamed(modifiers: IStyle.NamedUpdate, mergeIfExists?: boolean): IStyle.INamed;
|
|
108
|
+
/** The validated write behind {@link INamedStyleCollection.set}; the collection announces it. */
|
|
109
|
+
protected _setNamedStyle(modifiers: IStyle.NamedUpdate, mergeIfExists?: boolean): IStyle.INamed;
|
|
80
110
|
protected _setCustomCellStyleInternal(modifiers: IStyle.NamedUpdate, mergeIfExists?: boolean, _i?: number | null): IStyle.INamed;
|
|
81
111
|
protected _setCustomTableStyleInternal(name: string, properties: ITableStyle.ResolvableProperties): ITableStyle;
|
|
82
112
|
protected _hideOrRemoveNamed(style: IStyle.INamed | string): boolean;
|
|
83
113
|
/** {@inheritDoc IStyleCollection.getTableStyle} */
|
|
84
|
-
getTableStyle(name
|
|
114
|
+
getTableStyle(name?: string): ITableStyle | null;
|
|
85
115
|
/** {@inheritDoc IStyleCollection.getCustomTableStyles} */
|
|
86
116
|
getCustomTableStyles(): ITableStyle[];
|
|
87
117
|
/** {@inheritDoc IStyleCollection.setDefaultTableStyle} */
|
|
88
|
-
setDefaultTableStyle(styleName: string):
|
|
118
|
+
setDefaultTableStyle(styleName: string): void;
|
|
89
119
|
/** {@inheritDoc IStyleCollection.getDefaultTableStyle} */
|
|
90
120
|
getDefaultTableStyle(): ITableStyle;
|
|
91
|
-
protected _deleteCustomTableStyle(styleName: string): boolean;
|
|
92
121
|
/** {@inheritDoc IStyleCollection.setCustomTableStyle} */
|
|
93
122
|
setCustomTableStyle(name: string, properties: ITableStyle.ResolvableProperties): ITableStyle;
|
|
123
|
+
/** The write behind {@link ITableStyleCollection.setDefault}; returns the previous default. */
|
|
124
|
+
protected _setDefaultTableStyle(style: ITableStyle | string): ITableStyle;
|
|
125
|
+
/** The read behind {@link ITableStyleCollection.getDefault}. */
|
|
126
|
+
protected _getDefaultTableStyle(): ITableStyle;
|
|
127
|
+
protected _deleteCustomTableStyle(styleName: string): boolean;
|
|
94
128
|
/** {@inheritDoc IStyleCollection.validateStyleName} */
|
|
95
129
|
validateStyleName(name: string, checkDuplicates?: boolean): void;
|
|
96
130
|
/** {@inheritDoc IStyleCollection.normalize} */
|
|
@@ -120,6 +154,8 @@ export declare class StyleCollection implements IStyleCollection {
|
|
|
120
154
|
protected _toJSONInternal(jsonSheetStyleShared: IStyle.JSON[]): IStyleCollection.JSON;
|
|
121
155
|
protected _fromJSONIndexedColors(indexedColors: string[] | null | undefined): IColor[];
|
|
122
156
|
protected _fromJSONInternal(json: IStyleCollection.JSON): void;
|
|
157
|
+
/** {@inheritDoc IStyleCollection.isIStyleCollection} */
|
|
158
|
+
get isIStyleCollection(): true;
|
|
123
159
|
}
|
|
124
160
|
export {};
|
|
125
161
|
//# sourceMappingURL=StyleCollection.d.ts.map
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { AbstractCollection } from '../type';
|
|
2
|
+
import { ITableStyle } from '../table';
|
|
3
|
+
import { ITableStyleCollection } from './ITableStyleCollection';
|
|
4
|
+
/**
|
|
5
|
+
* Implementation for {@link ITableStyleCollection}.
|
|
6
|
+
*
|
|
7
|
+
* @remarks
|
|
8
|
+
* A front over the {@link StyleCollection}'s maps — the style collection keeps the definitions
|
|
9
|
+
* (they resolve against its theme) and this class keeps the API and the announcing.
|
|
10
|
+
*/
|
|
11
|
+
export declare class TableStyleCollection extends AbstractCollection<ITableStyle, ITableStyleCollection.GetItemsOptions> implements ITableStyleCollection {
|
|
12
|
+
private _host;
|
|
13
|
+
constructor(host: TableStyleCollection.Host);
|
|
14
|
+
/** {@inheritDoc AbstractCollection._getItems} */
|
|
15
|
+
protected _getItems(options?: ITableStyleCollection.GetItemsOptions): ITableStyle[];
|
|
16
|
+
/** {@inheritDoc ITableStyleCollection.getByName} */
|
|
17
|
+
getByName(name: string): ITableStyle | null;
|
|
18
|
+
/** {@inheritDoc ITableStyleCollection.set} */
|
|
19
|
+
set(name: string, properties: ITableStyle.ResolvableProperties): ITableStyle;
|
|
20
|
+
/** {@inheritDoc ITableStyleCollection.getDefault} */
|
|
21
|
+
getDefault(): ITableStyle;
|
|
22
|
+
/** {@inheritDoc ITableStyleCollection.setDefault} */
|
|
23
|
+
setDefault(style: ITableStyle | string): ITableStyle;
|
|
24
|
+
/** {@inheritDoc ITableStyleCollection.getNone} */
|
|
25
|
+
getNone(): ITableStyle;
|
|
26
|
+
/**
|
|
27
|
+
* Announces a change the host made itself — a custom style deleted, a load.
|
|
28
|
+
* @internal
|
|
29
|
+
*/
|
|
30
|
+
_announceChange(): void;
|
|
31
|
+
/** {@inheritDoc ITableStyleCollection.isITableStyleCollection} */
|
|
32
|
+
get isITableStyleCollection(): true;
|
|
33
|
+
}
|
|
34
|
+
export declare namespace TableStyleCollection {
|
|
35
|
+
/**
|
|
36
|
+
* What the style collection lends this front: its maps, keyed by lower-cased name and in
|
|
37
|
+
* gallery order, the default, and the writes that need its resolvers.
|
|
38
|
+
*/
|
|
39
|
+
interface Host {
|
|
40
|
+
builtIns(): ReadonlyMap<string, ITableStyle>;
|
|
41
|
+
customs(): ReadonlyMap<string, ITableStyle>;
|
|
42
|
+
set(name: string, properties: ITableStyle.ResolvableProperties): ITableStyle;
|
|
43
|
+
getDefault(): ITableStyle;
|
|
44
|
+
/** Returns the previous default. */
|
|
45
|
+
setDefault(style: ITableStyle | string): ITableStyle;
|
|
46
|
+
getNone(): ITableStyle;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=TableStyleCollection.d.ts.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ITextFrame, IStyledFont } from '../text';
|
|
2
|
-
import {
|
|
2
|
+
import { IBorders } from '../border';
|
|
3
3
|
import { IStyle } from './IStyle';
|
|
4
4
|
import { ICellProtection } from '../cell';
|
|
5
5
|
/**
|
|
6
6
|
* To avoid duplicating values.
|
|
7
7
|
*/
|
|
8
8
|
export declare const _EmptyFontProperties: IStyledFont.Properties;
|
|
9
|
-
export declare const _EmptyBorderStrokeProperties:
|
|
10
|
-
export declare const _EmptyBorderProperties:
|
|
9
|
+
export declare const _EmptyBorderStrokeProperties: IBorders.StrokeProperties;
|
|
10
|
+
export declare const _EmptyBorderProperties: IBorders.Properties;
|
|
11
11
|
export declare const _EmptyAlignmentProperties: ITextFrame.IAlignment.Properties;
|
|
12
12
|
export declare const _EmptyProtectionProperties: ICellProtection.Properties;
|
|
13
13
|
/**
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
export * from './IStyle';
|
|
2
2
|
export * from './IStyleCollection';
|
|
3
|
+
export * from './INamedStyleCollection';
|
|
4
|
+
export * from './ITableStyleCollection';
|
|
3
5
|
export * from './_BuiltInStyleNames';
|
|
4
6
|
export * from './StyleCollection';
|
|
7
|
+
export * from './NamedStyleCollection';
|
|
8
|
+
export * from './TableStyleCollection';
|
|
5
9
|
//# sourceMappingURL=index.d.ts.map
|