@sheetxl/sdk 0.7.28-beta.4 → 0.8.0-beta.2

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.
Files changed (355) hide show
  1. package/THIRD-PARTY-NOTICES.md +1 -1
  2. package/browser/cjs/4f5eoQQfV-V7LO2_.cjs +1 -0
  3. package/browser/cjs/BEnEDC1m546-gzWS.cjs +1 -0
  4. package/browser/cjs/CwCUa4IzGNGissLL.cjs +1 -0
  5. package/browser/cjs/Dg3GaW0QWwnlqetX.cjs +1 -0
  6. package/browser/cjs/KWQPie2u7AP69web.cjs +93 -0
  7. package/browser/cjs/index.cjs +2 -2
  8. package/browser/esm/{DBIu6NUHIcxOOBQp.mjs → BJ9hcZAGY8Tj5_9L.mjs} +1 -1
  9. package/browser/esm/C8vpA2ZBtZf6w4nq.mjs +394 -0
  10. package/browser/esm/DDojiE2-oycJ7qGi.mjs +20 -0
  11. package/browser/esm/DEPT7zmpiMdZ-_qC.mjs +70253 -0
  12. package/browser/esm/DOvCi3lf49To36WP.mjs +8 -0
  13. package/browser/esm/{CHSahmMFYNB0Ajkf.mjs → Dq3sc4B_HQHBrT5N.mjs} +2 -2
  14. package/browser/esm/index.mjs +871 -696
  15. package/browser/esm/{CKk58ZLcrllMzfou.mjs → trwZArJQQq7K9kL7.mjs} +2 -2
  16. package/licenses/dependencies.txt +204 -204
  17. package/node/esm/CGWsQOMWdnDeF4dX.mjs +8 -0
  18. package/node/esm/{DUYP6faJJHCaW1Xf.mjs → CL9MI-b6D9BmtVXW.mjs} +1 -1
  19. package/node/esm/CressiwiIhxCVp1v.mjs +28 -0
  20. package/node/esm/O2cOO3xIynWUgOWe.mjs +403 -0
  21. package/node/esm/index.mjs +53973 -38584
  22. package/package.json +6 -7
  23. package/resources/locales/de/model.msg.json +45 -9
  24. package/resources/locales/en/model.msg.json +42 -9
  25. package/types/scripting-api.json +7093 -0
  26. package/types/scripting-enums.json +54 -4
  27. package/types/scripting.d.ts +7185 -1079
  28. package/types/src/anchored/AbstractAnchored.d.ts +18 -8
  29. package/types/src/anchored/AnchoredMap.d.ts +2 -0
  30. package/types/src/anchored/IAnchoredMap.d.ts +52 -4
  31. package/types/src/autoFill/AutoFill.d.ts +316 -32
  32. package/types/src/autoFill/IAutoFill.d.ts +232 -15
  33. package/types/src/border/{IBorder.d.ts → IBorders.d.ts} +41 -40
  34. package/types/src/border/index.d.ts +1 -1
  35. package/types/src/calculation/Calculation.d.ts +745 -35
  36. package/types/src/calculation/ExternalBookBindings.d.ts +118 -0
  37. package/types/src/calculation/FormulaText.d.ts +74 -0
  38. package/types/src/calculation/ICalculation.d.ts +318 -81
  39. package/types/src/calculation/INamedFormulasCollection.d.ts +5 -8
  40. package/types/src/calculation/NamedFormulaCollection.d.ts +139 -107
  41. package/types/src/calculation/NamedLambdaFunction.d.ts +28 -0
  42. package/types/src/calculation/TokenType.d.ts +9 -0
  43. package/types/src/calculation/Types.d.ts +83 -2
  44. package/types/src/calculation/_CloneBoundary.d.ts +80 -0
  45. package/types/src/calculation/compiler/ASTTypes.d.ts +58 -0
  46. package/types/src/calculation/compiler/CompilerUtils.d.ts +134 -12
  47. package/types/src/calculation/compiler/FormulaCompiler.d.ts +29 -4
  48. package/types/src/calculation/compiler/FormulaParser.d.ts +1 -2
  49. package/types/src/calculation/compiler/LiteTransform.d.ts +17 -0
  50. package/types/src/calculation/compiler/ParserUtils.d.ts +26 -1
  51. package/types/src/calculation/compiler/SRParser.d.ts +2 -1
  52. package/types/src/calculation/compiler/Types.d.ts +79 -9
  53. package/types/src/calculation/executor/CalcExecutor.d.ts +422 -34
  54. package/types/src/calculation/executor/CalcExecutorUtils.d.ts +43 -2
  55. package/types/src/calculation/executor/CircularReference.d.ts +2 -0
  56. package/types/src/calculation/formula/Formula.d.ts +58 -21
  57. package/types/src/calculation/formula/FormulaBlock.d.ts +124 -21
  58. package/types/src/calculation/formula/FormulaRecordView.d.ts +79 -0
  59. package/types/src/calculation/formula/IFormulaBlock.d.ts +261 -67
  60. package/types/src/calculation/formula/LambdaValue.d.ts +15 -16
  61. package/types/src/calculation/formula/LazyValue.d.ts +96 -0
  62. package/types/src/calculation/formula/TokenUtils.d.ts +25 -1
  63. package/types/src/calculation/formula/index.d.ts +1 -0
  64. package/types/src/calculation/functions/FunctionDeclarations.d.ts +31 -0
  65. package/types/src/calculation/functions/initializeFunctions.d.ts +15 -2
  66. package/types/src/calculation/grid/CalcGrid.d.ts +384 -158
  67. package/types/src/calculation/grid/CalcGridBackend.d.ts +450 -0
  68. package/types/src/calculation/grid/CalcGridProxy.d.ts +133 -0
  69. package/types/src/calculation/grid/CalcGridUtils.d.ts +62 -12
  70. package/types/src/calculation/grid/FormulaEntry.d.ts +129 -0
  71. package/types/src/calculation/grid/FormulaHost.d.ts +236 -0
  72. package/types/src/calculation/grid/ICalcGrid.d.ts +456 -143
  73. package/types/src/calculation/grid/_CalcRequest.d.ts +272 -0
  74. package/types/src/calculation/grid/index.d.ts +4 -0
  75. package/types/src/calculation/index.d.ts +2 -0
  76. package/types/src/calculation/spatial/ContentfulSpatialValue.d.ts +6 -2
  77. package/types/src/calculation/spatial/FormulaSpatialValue.d.ts +339 -11
  78. package/types/src/calculation/spatial/SpillEntry.d.ts +20 -5
  79. package/types/src/calculation/spatial/TouchedWindows.d.ts +86 -0
  80. package/types/src/calculation/spatial/index.d.ts +1 -0
  81. package/types/src/calculation/state/CalcInputs.d.ts +41 -0
  82. package/types/src/calculation/state/CalcNode.d.ts +160 -29
  83. package/types/src/calculation/state/CalcScope.d.ts +37 -0
  84. package/types/src/calculation/state/CalcState.d.ts +22 -1
  85. package/types/src/calculation/state/CalculationContext.d.ts +39 -3
  86. package/types/src/calculation/state/IContextContainer.d.ts +159 -26
  87. package/types/src/calculation/state/_PendingOverlayGrid.d.ts +163 -0
  88. package/types/src/calculation/state/_ReadObservedGrid.d.ts +74 -8
  89. package/types/src/calculation/state/index.d.ts +1 -0
  90. package/types/src/calculation/symbol/ExternalSheetSymbols.d.ts +80 -0
  91. package/types/src/calculation/symbol/ISymbolRegistry.d.ts +23 -0
  92. package/types/src/calculation/symbol/IndirectSymbolProvider.d.ts +16 -2
  93. package/types/src/calculation/symbol/SheetSymbolProvider.d.ts +63 -3
  94. package/types/src/calculation/symbol/SymbolRegistry.d.ts +20 -0
  95. package/types/src/calculation/symbol/index.d.ts +3 -2
  96. package/types/src/cell/ICell.d.ts +78 -23
  97. package/types/src/cell/ICellProtection.d.ts +50 -10
  98. package/types/src/cellRange/ICellRange.d.ts +368 -90
  99. package/types/src/cellRange/ICellRanges.d.ts +9 -7
  100. package/types/src/chart/Chart.d.ts +72 -2
  101. package/types/src/chart/ChartCollection.d.ts +26 -0
  102. package/types/src/chart/IChart.d.ts +162 -9
  103. package/types/src/chart/IChartCollection.d.ts +25 -0
  104. package/types/src/chart/_ChartXml.d.ts +70 -0
  105. package/types/src/chart/index.d.ts +1 -3
  106. package/types/src/collections/ArraysGrid.d.ts +1 -1
  107. package/types/src/collections/IGrid.d.ts +1 -1
  108. package/types/src/collections/ISparseGrid.d.ts +9 -0
  109. package/types/src/collections/ISpatialMap.d.ts +59 -21
  110. package/types/src/collections/ImmutableList.d.ts +28 -0
  111. package/types/src/collections/MixedTypedArrayList.d.ts +168 -108
  112. package/types/src/collections/OverlappingRangeIterator.d.ts +13 -17
  113. package/types/src/collections/RepeatingList.d.ts +7 -0
  114. package/types/src/collections/ScalarGrid.d.ts +50 -0
  115. package/types/src/collections/SparseGrid.d.ts +1 -1
  116. package/types/src/collections/SpatialMap.d.ts +13 -21
  117. package/types/src/collections/Tuple.d.ts +128 -16
  118. package/types/src/collections/_GridUtils.d.ts +19 -6
  119. package/types/src/collections/_RangeSweep.d.ts +97 -0
  120. package/types/src/collections/_SpatialUtils.d.ts +20 -2
  121. package/types/src/collections/index.d.ts +1 -0
  122. package/types/src/comment/Comment.d.ts +159 -0
  123. package/types/src/comment/CommentCollection.d.ts +40 -0
  124. package/types/src/comment/IComment.d.ts +319 -48
  125. package/types/src/comment/ICommentCollection.d.ts +90 -0
  126. package/types/src/comment/_CommentUtils.d.ts +28 -0
  127. package/types/src/comment/index.d.ts +1 -0
  128. package/types/src/condition/AnchoredConditional.d.ts +76 -17
  129. package/types/src/condition/BuiltInOperators/AbstractOperator.d.ts +8 -7
  130. package/types/src/condition/BuiltInOperators/EqualToOperator.d.ts +2 -1
  131. package/types/src/condition/BuiltInOperators/ExpressionOperator.d.ts +3 -6
  132. package/types/src/condition/BuiltInOperators/InSetOperator.d.ts +1 -1
  133. package/types/src/condition/BuiltinSelectors/BaseSelector.d.ts +7 -0
  134. package/types/src/condition/BuiltinSelectors/ListSelector.d.ts +9 -0
  135. package/types/src/condition/Condition.d.ts +16 -0
  136. package/types/src/condition/ICondition.d.ts +86 -33
  137. package/types/src/condition/_ConditionFormula.d.ts +152 -0
  138. package/types/src/condition/_ConditionUtils.d.ts +73 -10
  139. package/types/src/conditionalFormat/ConditionalFormat.d.ts +21 -10
  140. package/types/src/conditionalFormat/ConditionalFormatCollection.d.ts +19 -8
  141. package/types/src/conditionalFormat/IConditionalFormat.d.ts +5 -3
  142. package/types/src/conditionalFormat/IConditionalFormatCollection.d.ts +2 -0
  143. package/types/src/dataValidation/DataValidation.d.ts +50 -3
  144. package/types/src/dataValidation/DataValidationCollection.d.ts +20 -9
  145. package/types/src/dataValidation/IDataValidation.d.ts +119 -30
  146. package/types/src/dataValidation/IDataValidationCollection.d.ts +10 -2
  147. package/types/src/date/DateUtils.d.ts +20 -0
  148. package/types/src/date/_DateUtils.d.ts +91 -7
  149. package/types/src/externalBook/ExternalBookCollection.d.ts +145 -12
  150. package/types/src/externalBook/ExternalBookName.d.ts +96 -0
  151. package/types/src/externalBook/IExternalBook.d.ts +170 -18
  152. package/types/src/externalBook/IExternalBookCollection.d.ts +79 -7
  153. package/types/src/externalBook/index.d.ts +1 -0
  154. package/types/src/fill/IStroke.d.ts +1 -1
  155. package/types/src/filter/IFilter.d.ts +29 -4
  156. package/types/src/font/IFont.d.ts +17 -0
  157. package/types/src/history/IHistory.d.ts +3 -2
  158. package/types/src/i18n/LanguagePack.d.ts +12 -4
  159. package/types/src/index.d.ts +3 -0
  160. package/types/src/io/AbstractBackingStore.d.ts +24 -1
  161. package/types/src/io/ArrayBackingStore.d.ts +1 -1
  162. package/types/src/io/EmbeddedPart.d.ts +20 -0
  163. package/types/src/io/IEmbeddedPart.d.ts +63 -0
  164. package/types/src/io/IWorkbookIO.d.ts +185 -18
  165. package/types/src/io/WorkbookIO.d.ts +9 -0
  166. package/types/src/io/WorkbookOrigin.d.ts +20 -11
  167. package/types/src/io/WorkbookOriginProvider.d.ts +46 -0
  168. package/types/src/io/_XmlFragment.d.ts +49 -0
  169. package/types/src/io/index.d.ts +1 -0
  170. package/types/src/lib/file/file.browser.d.ts +19 -5
  171. package/types/src/lib/file/file.node.d.ts +5 -0
  172. package/types/src/lib/utils/_Utils.d.ts +18 -0
  173. package/types/src/lib/utils/utils.browser.d.ts +9 -3
  174. package/types/src/license/license-key.d.ts +27 -0
  175. package/types/src/listener/IListener.d.ts +12 -7
  176. package/types/src/listener/ListenerEmitter.d.ts +46 -5
  177. package/types/src/model/AbstractModel.d.ts +14 -5
  178. package/types/src/movable/Control.d.ts +57 -0
  179. package/types/src/movable/IControl.d.ts +84 -0
  180. package/types/src/movable/IMovable.d.ts +23 -1
  181. package/types/src/movable/IMovableCollection.d.ts +2 -0
  182. package/types/src/movable/Movable.d.ts +4 -6
  183. package/types/src/movable/MovableCollection.d.ts +7 -7
  184. package/types/src/movable/index.d.ts +4 -0
  185. package/types/src/named/AbstractNamed.d.ts +1 -1
  186. package/types/src/named/INamed.d.ts +4 -1
  187. package/types/src/named/INamedCollection.d.ts +26 -0
  188. package/types/src/named/NamedCollection.d.ts +16 -15
  189. package/types/src/numFmt/BuiltInFormats.d.ts +15 -7
  190. package/types/src/numFmt/IFormatEngine.d.ts +2 -0
  191. package/types/src/numFmt/NumfmtFormatEngine.d.ts +2 -0
  192. package/types/src/person/IPerson.d.ts +99 -0
  193. package/types/src/person/IPersonCollection.d.ts +51 -0
  194. package/types/src/person/Person.d.ts +32 -0
  195. package/types/src/person/PersonCollection.d.ts +49 -0
  196. package/types/src/person/index.d.ts +3 -0
  197. package/types/src/picture/IPicture.d.ts +2 -0
  198. package/types/src/picture/Picture.d.ts +2 -0
  199. package/types/src/pivot/IPivotTable.d.ts +107 -0
  200. package/types/src/pivot/IPivotTableCollection.d.ts +25 -0
  201. package/types/src/pivot/PivotTable.d.ts +57 -0
  202. package/types/src/pivot/PivotTableCollection.d.ts +25 -0
  203. package/types/src/pivot/index.d.ts +6 -0
  204. package/types/src/primitives/CompositeRangeStats.d.ts +2 -0
  205. package/types/src/primitives/Criteria.d.ts +1 -1
  206. package/types/src/primitives/LambdaBrand.d.ts +21 -0
  207. package/types/src/primitives/PrimitiveUtils.d.ts +60 -21
  208. package/types/src/primitives/Range.d.ts +105 -25
  209. package/types/src/primitives/RangeStats.d.ts +24 -1
  210. package/types/src/primitives/ReferenceRange.d.ts +42 -0
  211. package/types/src/primitives/Runtime.d.ts +15 -2
  212. package/types/src/primitives/stats/FrequencyStats.d.ts +9 -0
  213. package/types/src/primitives/stats/LookupIndex.d.ts +46 -0
  214. package/types/src/primitives/stats/SortedNumbers.d.ts +2 -0
  215. package/types/src/primitives/stats/index.d.ts +1 -0
  216. package/types/src/print/IPrint.d.ts +0 -22
  217. package/types/src/protectedRange/IProtectedRange.d.ts +4 -0
  218. package/types/src/protectedRange/IProtectedRangeCollection.d.ts +2 -0
  219. package/types/src/protectedRange/ProtectedRange.d.ts +1 -4
  220. package/types/src/protectedRange/ProtectedRangeCollection.d.ts +19 -8
  221. package/types/src/protection/DefaultProtection.d.ts +12 -1
  222. package/types/src/protection/IProtection.d.ts +36 -2
  223. package/types/src/reference/ReferenceUtils.d.ts +80 -0
  224. package/types/src/reference/index.d.ts +2 -0
  225. package/types/src/resource/IResource.d.ts +21 -1
  226. package/types/src/resource/IResourceCollection.d.ts +9 -1
  227. package/types/src/resource/ResourceCollection.d.ts +6 -6
  228. package/types/src/scripting/FunctionArguments.d.ts +22 -0
  229. package/types/src/scripting/FunctionCollection.d.ts +41 -11
  230. package/types/src/scripting/IFunctionCollection.d.ts +41 -0
  231. package/types/src/scripting/IModule.d.ts +25 -0
  232. package/types/src/scripting/IModuleCollection.d.ts +17 -0
  233. package/types/src/scripting/IScript.d.ts +18 -0
  234. package/types/src/scripting/Module.d.ts +34 -6
  235. package/types/src/scripting/ModuleCollection.d.ts +17 -12
  236. package/types/src/scripting/Runtime.d.ts +15 -0
  237. package/types/src/scripting/Scripts.d.ts +2 -0
  238. package/types/src/scripting/TypedFunction.d.ts +197 -4
  239. package/types/src/scripting/_FunctionIndex.d.ts +5 -0
  240. package/types/src/scripting/_ModuleUtils.d.ts +11 -1
  241. package/types/src/scripting/_ScriptUtils.d.ts +3 -0
  242. package/types/src/scripting/declarations.browser.d.ts +10 -0
  243. package/types/src/scripting/declarations.d.ts +49 -0
  244. package/types/src/scripting/declarations.node.d.ts +9 -0
  245. package/types/src/scripting/index.d.ts +3 -0
  246. package/types/src/selection/IRangeSelection.d.ts +9 -4
  247. package/types/src/selection/RangeSelection.d.ts +2 -0
  248. package/types/src/shape/IShape.d.ts +41 -3
  249. package/types/src/shape/Shape.d.ts +10 -0
  250. package/types/src/shape/_ShapeXml.d.ts +28 -0
  251. package/types/src/sheet/CellRegion.d.ts +6 -0
  252. package/types/src/sheet/ICellContainerOptions.d.ts +50 -0
  253. package/types/src/sheet/ISheet.d.ts +224 -41
  254. package/types/src/sheet/ISheetCollection.d.ts +2 -5
  255. package/types/src/sheet/NamedCellRange.d.ts +16 -7
  256. package/types/src/sheet/Sheet.d.ts +757 -114
  257. package/types/src/sheet/SheetCell.d.ts +81 -21
  258. package/types/src/sheet/SheetCollection.d.ts +19 -8
  259. package/types/src/sheet/SheetRange.d.ts +65 -14
  260. package/types/src/sheet/SheetRanges.d.ts +4 -6
  261. package/types/src/sheet/_CellBuffer.d.ts +214 -0
  262. package/types/src/sheet/_InvalidSheetRange.d.ts +5 -5
  263. package/types/src/sheet/_ListenerAnchor.d.ts +104 -0
  264. package/types/src/sheet/_RangeStateSweep.d.ts +16 -0
  265. package/types/src/sheet/_ScalarListFactory.d.ts +61 -0
  266. package/types/src/sheet/_SheetAutoFillUtils.d.ts +74 -0
  267. package/types/src/sheet/_SheetAutoFitUtils.d.ts +28 -0
  268. package/types/src/sheet/_SheetEvents.d.ts +43 -0
  269. package/types/src/sheet/_SheetFilterUtils.d.ts +32 -1
  270. package/types/src/sheet/_SheetIntents.d.ts +250 -0
  271. package/types/src/sheet/_SheetMutations.d.ts +179 -59
  272. package/types/src/sheet/_SheetStateReader.d.ts +16 -10
  273. package/types/src/sheet/_SheetStateTypes.d.ts +57 -73
  274. package/types/src/sheet/_SheetUtils.d.ts +2 -18
  275. package/types/src/sheet/_WatchAnchor.d.ts +93 -0
  276. package/types/src/sheet/spatial/HeldFormulaEntry.d.ts +36 -0
  277. package/types/src/sheet/spatial/index.d.ts +1 -0
  278. package/types/src/sheet/style/SheetCellStyle.d.ts +91 -64
  279. package/types/src/sheet/style/SheetDirectStyle.d.ts +16 -5
  280. package/types/src/sheet/style/_Resolvers.d.ts +5 -3
  281. package/types/src/sheet/style/_StyleUtils.d.ts +37 -7
  282. package/types/src/sheetHeader/ISheetHeader.d.ts +2 -0
  283. package/types/src/sheetHeader/SheetHeader.d.ts +14 -0
  284. package/types/src/sheetProtection/ISheetProtection.d.ts +41 -7
  285. package/types/src/sheetProtection/SheetProtection.d.ts +12 -0
  286. package/types/src/sheetView/ISheetView.d.ts +45 -1
  287. package/types/src/sheetView/SheetView.d.ts +11 -0
  288. package/types/src/slicer/ISlicer.d.ts +2 -0
  289. package/types/src/slicer/Slicer.d.ts +2 -0
  290. package/types/src/sort/ISort.d.ts +2 -0
  291. package/types/src/string/IStringCollection.d.ts +5 -0
  292. package/types/src/string/StringCollection.d.ts +6 -6
  293. package/types/src/style/INamedStyleCollection.d.ts +72 -0
  294. package/types/src/style/IStyle.d.ts +30 -10
  295. package/types/src/style/IStyleCollection.d.ts +63 -42
  296. package/types/src/style/ITableStyleCollection.d.ts +89 -0
  297. package/types/src/style/NamedStyleCollection.d.ts +39 -0
  298. package/types/src/style/StyleCollection.d.ts +41 -5
  299. package/types/src/style/TableStyleCollection.d.ts +49 -0
  300. package/types/src/style/_BuiltInStyleDefs.d.ts +3 -3
  301. package/types/src/style/index.d.ts +4 -0
  302. package/types/src/table/AnchoredTable.d.ts +644 -68
  303. package/types/src/table/AutoTable.d.ts +5 -5
  304. package/types/src/table/ITable.d.ts +228 -30
  305. package/types/src/table/ITableCollection.d.ts +2 -0
  306. package/types/src/table/TableCollection.d.ts +19 -8
  307. package/types/src/table/_FilterField.d.ts +7 -5
  308. package/types/src/table/_NamedTable.d.ts +17 -1
  309. package/types/src/table/_NamedTableSource.d.ts +1 -0
  310. package/types/src/table/_SortField.d.ts +2 -0
  311. package/types/src/table/_TableColumn.d.ts +13 -2
  312. package/types/src/table/_TableMessages.d.ts +1 -0
  313. package/types/src/table/_TableUtils.d.ts +40 -0
  314. package/types/src/text/Bullet.d.ts +4 -0
  315. package/types/src/text/ITextFrame.d.ts +25 -1
  316. package/types/src/text/TextBoxAlignment.d.ts +15 -6
  317. package/types/src/text/TextFrame.d.ts +4 -0
  318. package/types/src/text/TextLine.d.ts +4 -0
  319. package/types/src/text/TextParagraph.d.ts +4 -0
  320. package/types/src/text/TextRun.d.ts +9 -0
  321. package/types/src/text/TextStacked.d.ts +83 -0
  322. package/types/src/text/index.d.ts +1 -0
  323. package/types/src/theme/ITheme.d.ts +2 -0
  324. package/types/src/theme/IThemeCollection.d.ts +2 -0
  325. package/types/src/theme/ThemeCollection.d.ts +8 -7
  326. package/types/src/transaction/ITransaction.d.ts +238 -36
  327. package/types/src/transaction/Transaction.d.ts +99 -11
  328. package/types/src/type/AbstractCollection.d.ts +101 -0
  329. package/types/src/type/ICollection.d.ts +117 -0
  330. package/types/src/type/ITypes.d.ts +9 -7
  331. package/types/src/type/index.d.ts +1 -0
  332. package/types/src/utils/_CSSUtils.d.ts +3 -3
  333. package/types/src/workbook/IWorkbook.d.ts +171 -40
  334. package/types/src/workbook/Workbook.d.ts +103 -7
  335. package/types/src/workbook/_WorkbookIntents.d.ts +36 -0
  336. package/types/src/workbookProtection/IWorkbookProtection.d.ts +7 -0
  337. package/types/src/workbookProtection/WorkbookProtection.d.ts +3 -0
  338. package/types/src/workbookView/IWorkbookView.d.ts +12 -0
  339. package/types/src/workbookView/WorkbookView.d.ts +5 -0
  340. package/browser/cjs/BF14ZEAnaqxXroSj.cjs +0 -1
  341. package/browser/cjs/BXtvdT1Z-MsB_o5F.cjs +0 -1
  342. package/browser/cjs/Bc4JjVVZfFo3R4He.cjs +0 -33
  343. package/browser/cjs/CD2RXdnfqSYNc6gX.cjs +0 -57
  344. package/browser/cjs/DcLpXGexEtOxi-dD.cjs +0 -1
  345. package/browser/esm/0Mj5WKM362q6CECb.mjs +0 -824
  346. package/browser/esm/CPTtL2f6_4iblmFM.mjs +0 -4436
  347. package/browser/esm/CoA-sUxjiIUIpTUF.mjs +0 -109
  348. package/browser/esm/Dy4Sdpju1T2icURu.mjs +0 -50854
  349. package/node/esm/BtGxbEbBm79YvF_k.mjs +0 -843
  350. package/node/esm/DqgWsVXROpSgKq6c.mjs +0 -114
  351. package/types/src/cellRange/_GraphNode.d.ts +0 -38
  352. package/types/src/dataValidation/_Utils.d.ts +0 -10
  353. package/types/src/sheet/listener/RangesListener.d.ts +0 -32
  354. package/types/src/sheet/listener/RangesListenerEntry.d.ts +0 -19
  355. 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
- * Contains collections of Named and Table Styles.
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 The named style from either a custom style or a builtIn.
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
- * @remarks
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 all customized named cell styles.
30
+ * Returns the document's own named styles, customized built-ins included.
23
31
  *
24
- * @remarks
25
- * This includes new style names and builtin overrides.
32
+ * @deprecated Use {@link getNamedStyles}`().getItems({ type: 'custom' })`; removed in the next
33
+ * release.
26
34
  */
27
35
  getCustomNamed(): IStyle.INamed[];
28
36
  /**
29
- * This will add or update a cell style.
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
- * @remarks
36
- * Names are case insensitive; for duplicate detection purposes.
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 The table style. This can be either a custom or a built in table style.
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
- * @remarks
43
- * Will try to return:
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 all customized table styles.
52
+ * Returns the document's own table styles, customized built-ins included.
51
53
  *
52
- * @remarks
53
- * This includes new table styles and builtin overrides.
54
+ * @deprecated Use {@link getTableStyles}`().getItems({ type: 'custom' })`; removed in the next
55
+ * release.
54
56
  */
55
57
  getCustomTableStyles(): ITableStyle[];
56
58
  /**
57
- * This will add or update a table style.
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
- * @remarks
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
- * Set the default table style to use if a table is created without specifying a style.
65
+ * Sets the style a table is given when it is created without one.
69
66
  *
70
- * @param name A string of the name of the table
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 default ITableStyle.
77
- * @see
78
- * {@link setDefaultTableStyle}
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
- * Notify that the named styled has changed
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
- protected _builtInsTableStyles: Map<string, ITableStyle>;
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
- protected _initializeNamedStyles(namedStyles: readonly IStyle.Properties[], builtInStyleMap: Map<string, IStyle.INamed>): void;
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: string): ITableStyle | null;
114
+ getTableStyle(name?: string): ITableStyle | null;
85
115
  /** {@inheritDoc IStyleCollection.getCustomTableStyles} */
86
116
  getCustomTableStyles(): ITableStyle[];
87
117
  /** {@inheritDoc IStyleCollection.setDefaultTableStyle} */
88
- setDefaultTableStyle(styleName: string): boolean;
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 { IBorder } from '../border';
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: IBorder.StrokeProperties;
10
- export declare const _EmptyBorderProperties: IBorder.Properties;
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