@sheetxl/sdk 0.8.0-beta.10 → 0.8.0-beta.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (480) hide show
  1. package/README.md +1 -1
  2. package/browser/esm/B7aUIvgUjncMMD_i.mjs +394 -0
  3. package/browser/esm/{Cgd5BnM3hg9RyUel.mjs → BFagR2JeWs74iAG3.mjs} +1 -1
  4. package/browser/esm/BGOFfpxr2jPIdqmV.mjs +40 -0
  5. package/browser/esm/{CdLZWVcH8cncBUPJ.mjs → BLoUBId2xZpXAK_H.mjs} +110 -261
  6. package/browser/esm/BMyDRQ716j79h_bH.mjs +86 -0
  7. package/browser/esm/{o8MFgcVXns987D6_.mjs → BVDiOXGMc5_FMGfy.mjs} +6 -6
  8. package/browser/esm/{BzLfNyc6OOShIErH.mjs → BjkCiv5Jz6WYKZeu.mjs} +2 -2
  9. package/browser/esm/{De175LygU7ot4nQm.mjs → BkBhLS0l6z8sxI6D.mjs} +2 -2
  10. package/browser/esm/{Y79I7Sm8kjaYexhf.mjs → BnG31I6Oj_HEtSPS.mjs} +1 -1
  11. package/browser/esm/BoV6zPBnfqCBCqZ7.mjs +7729 -0
  12. package/browser/esm/{CYyv6uGjo10ig5FP.mjs → BpgskG1Er_lGQ_yS.mjs} +1 -1
  13. package/browser/esm/{C9B0djuUarfNdoj0.mjs → BtvLTTfSBdAKplVG.mjs} +1 -1
  14. package/browser/esm/{zqJOaweiXE9D8RY1.mjs → C16ycKja6zG0crV_.mjs} +27687 -38788
  15. package/browser/esm/C2VbEI_XVAoseAwa.mjs +1552 -0
  16. package/browser/esm/{Btg43M1Bf-ENDreu.mjs → C4MqfLn9Dm-l3OIk.mjs} +1 -1
  17. package/browser/esm/C5E6zSGAALWf61n4.mjs +199 -0
  18. package/browser/esm/{CjsUGJEQSbGjnH6R.mjs → CHU6iu_WGlm7fLET.mjs} +1 -1
  19. package/browser/esm/{DhKkrCVASZ6Isvz6.mjs → CQYjO777cmAznUzK.mjs} +1 -1
  20. package/browser/esm/{D4uVlrG0xEFctsSM.mjs → CU3DmJ-YnVVrC1_k.mjs} +285 -67
  21. package/browser/esm/{ClB5ix51roQOpZEr.mjs → CV5EGEjG5_-CPpP0.mjs} +2877 -2067
  22. package/browser/esm/{CSx9ed1JOs7K5BXO.mjs → CaB7J-xgfKO2uAkG.mjs} +2 -2
  23. package/browser/esm/CkxWugaJFjDGZNZ-.mjs +12 -0
  24. package/browser/esm/{CZ5oa92wZEAXebgk.mjs → ClPfI4lODvCece29.mjs} +32 -22
  25. package/browser/esm/ClbvFbFzFzXLBKNN.mjs +193 -0
  26. package/browser/esm/{Cqr3knDsBvoVZ6MN.mjs → Ctjb0SsxV4K4MMqG.mjs} +2 -2
  27. package/browser/esm/{Bk7xxbdDpa7-sIwd.mjs → D5np__Jb1euAyaLw.mjs} +2 -2
  28. package/browser/esm/{Di58Ji1n--3Mgc_2.mjs → DEiPS3Dr-s4fPbVZ.mjs} +1 -1
  29. package/browser/esm/DLLE0FZNsKxbBzRn.mjs +128 -0
  30. package/browser/esm/{BqskM7wA8oPfFQue.mjs → DWNzqw7DUKwoxjri.mjs} +2 -2
  31. package/browser/esm/{BEAY9XgKNx-bakXW.mjs → Dlmig06rIo7cInRk.mjs} +1 -1
  32. package/browser/esm/DvAaxH6z_tGvrRzl.mjs +5132 -0
  33. package/browser/esm/Dyq_ivuHvlXLwPCl.mjs +12831 -0
  34. package/browser/esm/{Dtoyt8q5RyGAlxCp.mjs → PcHFjNzQsE54POri.mjs} +1 -1
  35. package/browser/esm/S2dNNx1a5ydRnARM.mjs +367 -0
  36. package/browser/esm/f1IoRb7tEb0QmCSt.mjs +110 -0
  37. package/browser/esm/gssVX_FH1XFN-twD.mjs +210 -0
  38. package/browser/esm/index.mjs +999 -850
  39. package/browser/esm/nvU0ClAbf0g94YBK.mjs +1695 -0
  40. package/browser/esm/{BcHmrKHwMMOlzc9_.mjs → zlLuW405RSguy4Kn.mjs} +34 -34
  41. package/licenses/dependencies.txt +75 -75
  42. package/node/esm/{CnSQ7MTXAUAyBOoS.mjs → 2Kihw_-5lVTEnwMa.mjs} +285 -64
  43. package/node/esm/857CIBgQgGpnqrXk.mjs +199 -0
  44. package/node/esm/B084DssTcdBheTp_.mjs +7966 -0
  45. package/node/esm/B21JjOLghRoDOrkx.mjs +134 -0
  46. package/node/esm/{CImNvdz1iP-lUlro.mjs → BIRq1kT7lLRzns9t.mjs} +181 -181
  47. package/node/esm/{CD9wbvufChVYYkrI.mjs → BIwObuhTJYf0jpUa.mjs} +2 -2
  48. package/node/esm/Bbf1Pm9Gk7YpLTvg.mjs +12 -0
  49. package/node/esm/{B6D7sSetrcOWLsKj.mjs → BqiexuA89caYnAPz.mjs} +1 -1
  50. package/node/esm/{BH1v-E4Ro3bR7Znw.mjs → BrCKGFRsX_ezFJ4B.mjs} +151 -302
  51. package/node/esm/CCN5vD410obwdz38.mjs +405 -0
  52. package/node/esm/{Bh4dv6tMjXX3X4nI.mjs → CDHdgJXH2vS71WMc.mjs} +1 -1
  53. package/node/esm/{DCplLG93GfTs1vNw.mjs → CGp6VZL-gZa9Uezx.mjs} +1 -1
  54. package/node/esm/{B9ljpEIZg6wOTzRE.mjs → CNCNJNg890KdgkWh.mjs} +1 -1
  55. package/node/esm/{Bqd62L8KFgdS0Vou.mjs → CZICGK_ss0HoGHCP.mjs} +2 -2
  56. package/node/esm/{D7MfcID2Wf6l6VpC.mjs → CZiqiay42tFTrLI4.mjs} +1 -1
  57. package/node/esm/{Bsx9uijd4X_SKV3L.mjs → CdJHUJSBRHZoryPe.mjs} +41 -41
  58. package/node/esm/Ct3h15sCus4Tgt6M.mjs +1762 -0
  59. package/node/esm/CwePQwTILHHjGDkZ.mjs +1033 -0
  60. package/node/esm/{CUUoseJmFsCf82bb.mjs → CzXT00vrQa1_gvW9.mjs} +1 -1
  61. package/node/esm/{C6ZXsNyLXI6zA63X.mjs → D1TKBVmoKGAXf37B.mjs} +9 -9
  62. package/node/esm/{BN9j8V9gCExMjVtJ.mjs → D2KBymQJd1XhpeQD.mjs} +1 -1
  63. package/node/esm/{MiU4rDOiocmJ-9Ry.mjs → D6e2z7eZpxOJXHc7.mjs} +1 -1
  64. package/node/esm/{BtuY37FumvLE7EBo.mjs → D8zEN-6ZdDqDvTxM.mjs} +156 -146
  65. package/node/esm/DNRhGK-8Tr9xcRyc.mjs +8320 -0
  66. package/node/esm/DOU54VsOjG-m-NyQ.mjs +210 -0
  67. package/node/esm/DUTskXCXref-IJnI.mjs +133 -0
  68. package/node/esm/{DMD12JUh7HJw2-jl.mjs → D_t5AUxSm7_icjzq.mjs} +1 -1
  69. package/node/esm/Db0v7zXNnyjBIjjI.mjs +372 -0
  70. package/node/esm/{CUQi5ZtMO02nhG0W.mjs → De2IONBxQhz-Qbyh.mjs} +1 -1
  71. package/node/esm/Df1bL6VFvrqIdSLB.mjs +40 -0
  72. package/node/esm/DkwIPzKc3UwdUIfM.mjs +86 -0
  73. package/node/esm/DrTZbfemSLq2mseG.mjs +111 -0
  74. package/node/esm/OVfaSb506tNSIvbv.mjs +57107 -0
  75. package/node/esm/{DefYISWfdZJFx57m.mjs → cGwrLA1RCE-WhJ7w.mjs} +1 -1
  76. package/node/esm/index.mjs +2657 -65664
  77. package/node/esm/mFiBSM7XgBHV9AY7.mjs +13010 -0
  78. package/node/esm/{DdFgXl-Ux2cMBTs_.mjs → yavzZOiZW_EjG9lE.mjs} +1 -1
  79. package/package.json +6 -7
  80. package/resources/contents.json +120 -0
  81. package/resources/fonts/arial-bold-italic.hinted.json +125 -0
  82. package/resources/fonts/arial-bold-italic.metrics.json +13 -13
  83. package/resources/fonts/arial-bold-italic.rows.json +9 -0
  84. package/resources/fonts/arial-bold.hinted.json +125 -0
  85. package/resources/fonts/arial-bold.metrics.json +12 -12
  86. package/resources/fonts/arial-bold.rows.json +9 -0
  87. package/resources/fonts/arial-italic.hinted.json +125 -0
  88. package/resources/fonts/arial-italic.metrics.json +13 -13
  89. package/resources/fonts/arial-italic.rows.json +9 -0
  90. package/resources/fonts/arial-regular.hinted.json +125 -0
  91. package/resources/fonts/arial-regular.metrics.json +12 -12
  92. package/resources/fonts/arial-regular.rows.json +9 -0
  93. package/resources/fonts/calibri-bold-italic.hinted.json +122 -0
  94. package/resources/fonts/calibri-bold-italic.metrics.json +2 -2
  95. package/resources/fonts/calibri-bold-italic.rows.json +9 -0
  96. package/resources/fonts/calibri-bold.hinted.json +122 -0
  97. package/resources/fonts/calibri-bold.metrics.json +1 -1
  98. package/resources/fonts/calibri-bold.rows.json +9 -0
  99. package/resources/fonts/calibri-italic.hinted.json +121 -0
  100. package/resources/fonts/calibri-italic.metrics.json +2 -2
  101. package/resources/fonts/calibri-italic.rows.json +9 -0
  102. package/resources/fonts/calibri-regular.hinted.json +121 -0
  103. package/resources/fonts/calibri-regular.metrics.json +1 -1
  104. package/resources/fonts/calibri-regular.rows.json +9 -0
  105. package/resources/fonts/cambria-bold-italic.hinted.json +105 -0
  106. package/resources/fonts/cambria-bold-italic.metrics.json +26 -26
  107. package/resources/fonts/cambria-bold-italic.rows.json +9 -0
  108. package/resources/fonts/cambria-bold.hinted.json +108 -0
  109. package/resources/fonts/cambria-bold.metrics.json +19 -19
  110. package/resources/fonts/cambria-bold.rows.json +9 -0
  111. package/resources/fonts/cambria-italic.hinted.json +102 -0
  112. package/resources/fonts/cambria-italic.metrics.json +23 -23
  113. package/resources/fonts/cambria-italic.rows.json +9 -0
  114. package/resources/fonts/cambria-regular.hinted.json +110 -0
  115. package/resources/fonts/cambria-regular.metrics.json +18 -18
  116. package/resources/fonts/cambria-regular.rows.json +9 -0
  117. package/resources/fonts/contents.json +280 -0
  118. package/resources/fonts/courier-new-bold-italic.hinted.json +11 -0
  119. package/resources/fonts/courier-new-bold-italic.metrics.json +12 -12
  120. package/resources/fonts/courier-new-bold-italic.rows.json +9 -0
  121. package/resources/fonts/courier-new-bold.hinted.json +11 -0
  122. package/resources/fonts/courier-new-bold.metrics.json +12 -12
  123. package/resources/fonts/courier-new-bold.rows.json +9 -0
  124. package/resources/fonts/courier-new-italic.hinted.json +11 -0
  125. package/resources/fonts/courier-new-italic.metrics.json +12 -12
  126. package/resources/fonts/courier-new-italic.rows.json +9 -0
  127. package/resources/fonts/courier-new-regular.hinted.json +11 -0
  128. package/resources/fonts/courier-new-regular.metrics.json +12 -12
  129. package/resources/fonts/courier-new-regular.rows.json +9 -0
  130. package/resources/fonts/times-new-roman-bold-italic.hinted.json +125 -0
  131. package/resources/fonts/times-new-roman-bold-italic.metrics.json +15 -15
  132. package/resources/fonts/times-new-roman-bold-italic.rows.json +9 -0
  133. package/resources/fonts/times-new-roman-bold.hinted.json +125 -0
  134. package/resources/fonts/times-new-roman-bold.metrics.json +12 -12
  135. package/resources/fonts/times-new-roman-bold.rows.json +9 -0
  136. package/resources/fonts/times-new-roman-italic.hinted.json +125 -0
  137. package/resources/fonts/times-new-roman-italic.metrics.json +16 -16
  138. package/resources/fonts/times-new-roman-italic.rows.json +9 -0
  139. package/resources/fonts/times-new-roman-regular.hinted.json +125 -0
  140. package/resources/fonts/times-new-roman-regular.metrics.json +16 -16
  141. package/resources/fonts/times-new-roman-regular.rows.json +9 -0
  142. package/resources/locales/de/model.msg.json +87 -9
  143. package/resources/locales/en/model.msg.json +88 -10
  144. package/types/scripting-api.json +10636 -8021
  145. package/types/scripting-enums.json +181 -43
  146. package/types/scripting.d.ts +15886 -8459
  147. package/types/src/.generated/wasm/fonts.d.ts +161 -0
  148. package/types/src/.generated/wasm/fonts_bg.inline.d.ts +3 -0
  149. package/types/src/.generated/wasm/sdk.d.ts +122 -0
  150. package/types/src/.generated/wasm/sdk_bg.inline.d.ts +3 -0
  151. package/types/src/address/AddressUtils.d.ts +10 -1
  152. package/types/src/address/_StructuredAddress.d.ts +58 -0
  153. package/types/src/border/IBorders.d.ts +16 -0
  154. package/types/src/calculation/Calculation.d.ts +93 -363
  155. package/types/src/calculation/FormulaLiterals.d.ts +2 -1
  156. package/types/src/calculation/FormulaText.d.ts +18 -2
  157. package/types/src/calculation/ICalculation.d.ts +37 -9
  158. package/types/src/calculation/INamedFormulasCollection.d.ts +4 -0
  159. package/types/src/calculation/NamedFormulaCollection.d.ts +190 -15
  160. package/types/src/calculation/_FormulaToolkit.d.ts +9 -0
  161. package/types/src/calculation/_TableExtent.d.ts +60 -0
  162. package/types/src/calculation/compiler/CompilerUtils.d.ts +17 -0
  163. package/types/src/calculation/compiler/ParserUtils.d.ts +16 -0
  164. package/types/src/calculation/compiler/Types.d.ts +1 -1
  165. package/types/src/calculation/engine/CalcBackend.d.ts +855 -0
  166. package/types/src/calculation/engine/index.d.ts +10 -0
  167. package/types/src/calculation/executor/CalcExecutor.d.ts +21 -2
  168. package/types/src/calculation/executor/CalcExecutorUtils.d.ts +6 -0
  169. package/types/src/calculation/formula/Formula.d.ts +9 -0
  170. package/types/src/calculation/formula/FormulaBlock.d.ts +6 -0
  171. package/types/src/calculation/formula/IFormulaBlock.d.ts +16 -0
  172. package/types/src/calculation/formula/LambdaValue.d.ts +5 -3
  173. package/types/src/calculation/functions/FunctionDeclarations.d.ts +5 -1
  174. package/types/src/calculation/functions/expandDeclaration.d.ts +15 -0
  175. package/types/src/calculation/functions/initializeFunctions.d.ts +0 -12
  176. package/types/src/calculation/grid/CalcGrid.d.ts +40 -4
  177. package/types/src/calculation/grid/CalcGridBackend.d.ts +30 -0
  178. package/types/src/calculation/grid/CalcGridProxy.d.ts +2 -0
  179. package/types/src/calculation/grid/CalcGridUtils.d.ts +8 -1
  180. package/types/src/calculation/grid/FormulaHost.d.ts +51 -6
  181. package/types/src/calculation/grid/ICalcGrid.d.ts +35 -6
  182. package/types/src/calculation/grid/_CalcRequest.d.ts +11 -1
  183. package/types/src/calculation/grid/_CellValueRun.d.ts +21 -0
  184. package/types/src/calculation/spatial/FormulaSpatialValue.d.ts +27 -2
  185. package/types/src/calculation/state/CalcScope.d.ts +15 -6
  186. package/types/src/calculation/state/CalcState.d.ts +10 -0
  187. package/types/src/calculation/state/CalculationContext.d.ts +2 -2
  188. package/types/src/calculation/state/IContextContainer.d.ts +12 -0
  189. package/types/src/calculation/toolkit/FormulaLiteralReader.d.ts +4 -0
  190. package/types/src/calculation/toolkit/FormulaTextParser.d.ts +10 -0
  191. package/types/src/calculation/toolkit/FunctionDeclarationTable.d.ts +4 -0
  192. package/types/src/calculation/toolkit/index.d.ts +12 -0
  193. package/types/src/cell/ICell.d.ts +256 -7
  194. package/types/src/cell/ICellHeader.d.ts +7 -6
  195. package/types/src/cell/ICellProtection.d.ts +1 -1
  196. package/types/src/cellRange/ICellHeaderRange.d.ts +6 -9
  197. package/types/src/cellRange/ICellHeaderRanges.d.ts +5 -0
  198. package/types/src/cellRange/ICellRange.d.ts +322 -55
  199. package/types/src/cellRange/ICellRanges.d.ts +8 -3
  200. package/types/src/chart/Chart.d.ts +217 -15
  201. package/types/src/chart/ChartCollection.d.ts +7 -2
  202. package/types/src/chart/IChart.d.ts +1921 -35
  203. package/types/src/chart/IChartCollection.d.ts +27 -2
  204. package/types/src/chart/_ChartParts.d.ts +1066 -0
  205. package/types/src/chart/_ChartSource.d.ts +47 -0
  206. package/types/src/chart/createChart.d.ts +26 -0
  207. package/types/src/chart/index.d.ts +4 -0
  208. package/types/src/chart/kinds/ChartKind.d.ts +252 -0
  209. package/types/src/chart/kinds/_Area.d.ts +3 -0
  210. package/types/src/chart/kinds/_Bar.d.ts +4 -0
  211. package/types/src/chart/kinds/_BoxWhisker.d.ts +4 -0
  212. package/types/src/chart/kinds/_Bubble.d.ts +3 -0
  213. package/types/src/chart/kinds/_Funnel.d.ts +4 -0
  214. package/types/src/chart/kinds/_Hierarchy.d.ts +31 -0
  215. package/types/src/chart/kinds/_Histogram.d.ts +4 -0
  216. package/types/src/chart/kinds/_HitKinds.d.ts +23 -0
  217. package/types/src/chart/kinds/_Line.d.ts +4 -0
  218. package/types/src/chart/kinds/_OfPie.d.ts +4 -0
  219. package/types/src/chart/kinds/_Pie.d.ts +4 -0
  220. package/types/src/chart/kinds/_Placeholder.d.ts +6 -0
  221. package/types/src/chart/kinds/_Radar.d.ts +4 -0
  222. package/types/src/chart/kinds/_Scatter.d.ts +8 -0
  223. package/types/src/chart/kinds/_Sunburst.d.ts +4 -0
  224. package/types/src/chart/kinds/_Surface.d.ts +4 -0
  225. package/types/src/chart/kinds/_Treemap.d.ts +4 -0
  226. package/types/src/chart/kinds/_Waterfall.d.ts +18 -0
  227. package/types/src/chart/kinds/_builtIns.d.ts +11 -0
  228. package/types/src/chart/layout/ChartLayout.d.ts +825 -0
  229. package/types/src/chart/layout/TextMeasurer.d.ts +38 -0
  230. package/types/src/chart/layout/_HitGeometry.d.ts +50 -0
  231. package/types/src/chart/layout/_HitTest.d.ts +36 -0
  232. package/types/src/chart/layout/_Layout.d.ts +25 -0
  233. package/types/src/chart/layout/_LayoutUtils.d.ts +97 -0
  234. package/types/src/chart/math/BoxStats.d.ts +35 -0
  235. package/types/src/chart/math/DateUnitCalcs.d.ts +80 -0
  236. package/types/src/chart/math/DisplayUnits.d.ts +53 -0
  237. package/types/src/chart/math/Histogram.d.ts +48 -0
  238. package/types/src/chart/math/OrdUnitCalcs.d.ts +166 -0
  239. package/types/src/chart/math/Treemap.d.ts +28 -0
  240. package/types/src/chart/math/Trendlines.d.ts +71 -0
  241. package/types/src/chart/math/UnitCalcs.d.ts +98 -0
  242. package/types/src/chart/model/ChartModel.d.ts +681 -0
  243. package/types/src/chart/model/_ChartType.d.ts +14 -0
  244. package/types/src/chart/model/_Edits.d.ts +489 -0
  245. package/types/src/chart/model/_Grouping.d.ts +83 -0
  246. package/types/src/chart/model/_Inference.d.ts +52 -0
  247. package/types/src/chart/model/_ModelFacts.d.ts +112 -0
  248. package/types/src/chart/model/_NewChart.d.ts +208 -0
  249. package/types/src/chart/model/_OfPie.d.ts +18 -0
  250. package/types/src/chart/resolve/_LegacyStyles.d.ts +48 -0
  251. package/types/src/chart/resolve/_Resolve.d.ts +51 -0
  252. package/types/src/chart/resolve/_ResolvedChart.d.ts +444 -0
  253. package/types/src/collections/RTree.d.ts +116 -36
  254. package/types/src/collections/SparseGrid.d.ts +6 -3
  255. package/types/src/collections/SpatialMap.d.ts +2 -8
  256. package/types/src/collections/SpatialMap3D.d.ts +2 -0
  257. package/types/src/collections/index.d.ts +1 -1
  258. package/types/src/comment/Comment.d.ts +32 -9
  259. package/types/src/comment/IComment.d.ts +41 -4
  260. package/types/src/comment/_NoteBox.d.ts +19 -2
  261. package/types/src/condition/AnchoredConditional.d.ts +28 -2
  262. package/types/src/condition/ICondition.d.ts +3 -2
  263. package/types/src/conditionalFormat/ConditionalFormat.d.ts +9 -3
  264. package/types/src/conditionalFormat/IConditionalFormat.d.ts +4 -3
  265. package/types/src/dataTable/DataTable.d.ts +67 -0
  266. package/types/src/dataTable/DataTableCollection.d.ts +19 -0
  267. package/types/src/dataTable/IDataTable.d.ts +99 -0
  268. package/types/src/dataTable/IDataTableCollection.d.ts +18 -0
  269. package/types/src/dataTable/index.d.ts +6 -0
  270. package/types/src/dataValidation/DataValidation.d.ts +1 -1
  271. package/types/src/dataValidation/DataValidationCollection.d.ts +4 -1
  272. package/types/src/dataValidation/IDataValidation.d.ts +1 -1
  273. package/types/src/dataValidation/IDataValidationCollection.d.ts +24 -0
  274. package/types/src/documentProperties/DocumentProperties.d.ts +66 -0
  275. package/types/src/documentProperties/ICustomProperty.d.ts +69 -0
  276. package/types/src/documentProperties/IDocumentProperties.d.ts +110 -0
  277. package/types/src/documentProperties/index.d.ts +3 -0
  278. package/types/src/externalBook/IExternalBook.d.ts +1 -1
  279. package/types/src/fill/IFill.d.ts +7 -0
  280. package/types/src/fill/IFillable.d.ts +47 -0
  281. package/types/src/fill/IStroke.d.ts +15 -1
  282. package/types/src/fill/PaintUtils.d.ts +22 -0
  283. package/types/src/fill/index.d.ts +2 -0
  284. package/types/src/font/AdvanceBuilder.d.ts +34 -0
  285. package/types/src/font/AdvanceTable.d.ts +128 -14
  286. package/types/src/font/CanvasAdvanceBuilder.d.ts +54 -0
  287. package/types/src/font/FontCapture.d.ts +4 -0
  288. package/types/src/font/FontCollection.d.ts +53 -2
  289. package/types/src/font/FontPlatform.d.ts +20 -0
  290. package/types/src/font/FontUtils.d.ts +5 -0
  291. package/types/src/font/IFont.d.ts +191 -61
  292. package/types/src/font/IFontCollection.d.ts +20 -14
  293. package/types/src/font/IFontStyle.d.ts +207 -0
  294. package/types/src/font/TableFileAdvanceBuilder.d.ts +9 -0
  295. package/types/src/font/_FontUtils.d.ts +11 -4
  296. package/types/src/font/_FontsVersion.d.ts +7 -0
  297. package/types/src/font/index.d.ts +1 -3
  298. package/types/src/font/platform.browser.d.ts +15 -0
  299. package/types/src/font/platform.node.d.ts +5 -0
  300. package/types/src/group/Group.d.ts +5 -0
  301. package/types/src/group/GroupMovableCollection.d.ts +4 -0
  302. package/types/src/history/IHistory.d.ts +19 -2
  303. package/types/src/hyperlink/IHyperlink.d.ts +7 -1
  304. package/types/src/index.d.ts +3 -0
  305. package/types/src/license/LicenseManager.d.ts +21 -0
  306. package/types/src/license/_Utils.d.ts +18 -1
  307. package/types/src/license/runtime.browser.d.ts +5 -0
  308. package/types/src/license/runtime.node.d.ts +10 -0
  309. package/types/src/listener/IListener.d.ts +14 -2
  310. package/types/src/listener/ListenerEmitter.d.ts +11 -3
  311. package/types/src/movable/IMovable.d.ts +28 -15
  312. package/types/src/movable/IMovableCollection.d.ts +1 -1
  313. package/types/src/movable/Movable.d.ts +12 -1
  314. package/types/src/movable/MovableCollection.d.ts +7 -3
  315. package/types/src/movable/_InsertableCollection.d.ts +16 -5
  316. package/types/src/named/INamed.d.ts +30 -0
  317. package/types/src/named/INamedCollection.d.ts +2 -2
  318. package/types/src/named/NamedCollection.d.ts +16 -4
  319. package/types/src/numFmt/NumberFormatParser.d.ts +5 -0
  320. package/types/src/outline/IOutline.d.ts +1 -1
  321. package/types/src/outline/Outline.d.ts +2 -2
  322. package/types/src/picture/IPicture.d.ts +98 -1
  323. package/types/src/picture/Picture.d.ts +15 -7
  324. package/types/src/pivot/IPivotTable.d.ts +2 -2
  325. package/types/src/pivot/PivotTable.d.ts +5 -5
  326. package/types/src/primitives/ReferenceRange.d.ts +2 -2
  327. package/types/src/print/IPageLayout.d.ts +635 -0
  328. package/types/src/print/PageLayout.d.ts +258 -0
  329. package/types/src/print/index.d.ts +1 -1
  330. package/types/src/protectedRange/IProtectedRange.d.ts +2 -2
  331. package/types/src/protection/IProtection.d.ts +6 -0
  332. package/types/src/protection/PasswordHasher.d.ts +13 -0
  333. package/types/src/richData/IRichDataKind.d.ts +22 -0
  334. package/types/src/richData/RichDataRegistry.d.ts +57 -0
  335. package/types/src/richData/RichText.d.ts +59 -0
  336. package/types/src/richData/index.d.ts +3 -0
  337. package/types/src/scripting/IModule.d.ts +3 -3
  338. package/types/src/scripting/IScript.d.ts +2 -2
  339. package/types/src/scripting/ITypedFunction.d.ts +1 -1
  340. package/types/src/scripting/declarations.d.ts +3 -0
  341. package/types/src/selection/ChartElementSelection.d.ts +39 -0
  342. package/types/src/selection/IChartElementSelection.d.ts +103 -0
  343. package/types/src/selection/IItemSelection.d.ts +131 -0
  344. package/types/src/selection/IMovableSelection.d.ts +6 -34
  345. package/types/src/selection/IRangeSelection.d.ts +4 -4
  346. package/types/src/selection/ItemSelection.d.ts +49 -0
  347. package/types/src/selection/MovableSelection.d.ts +11 -30
  348. package/types/src/selection/RangeSelection.d.ts +4 -4
  349. package/types/src/selection/index.d.ts +3 -0
  350. package/types/src/shape/IShape.d.ts +2 -1
  351. package/types/src/shape/IShapeStyle.d.ts +5 -31
  352. package/types/src/shape/ITextBoxStyle.d.ts +85 -0
  353. package/types/src/shape/ShapeStyleUtils.d.ts +13 -1
  354. package/types/src/shape/_Connectors.d.ts +9 -9
  355. package/types/src/shape/_ShapeStyle.d.ts +9 -0
  356. package/types/src/shape/index.d.ts +1 -0
  357. package/types/src/sheet/CellRegion.d.ts +37 -3
  358. package/types/src/sheet/IOpaqueSheet.d.ts +46 -0
  359. package/types/src/sheet/ISheet.d.ts +81 -1078
  360. package/types/src/sheet/IWorksheet.d.ts +1514 -0
  361. package/types/src/sheet/{ISheetCollection.d.ts → IWorksheetCollection.d.ts} +37 -12
  362. package/types/src/sheet/NamedCellRange.d.ts +2 -2
  363. package/types/src/sheet/NamedRange.d.ts +2 -2
  364. package/types/src/sheet/OpaqueSheet.d.ts +114 -0
  365. package/types/src/sheet/SheetCell.d.ts +24 -27
  366. package/types/src/sheet/SheetRange.d.ts +42 -11
  367. package/types/src/sheet/SheetRanges.d.ts +12 -10
  368. package/types/src/sheet/{Sheet.d.ts → Worksheet.d.ts} +510 -144
  369. package/types/src/sheet/WorksheetCollection.d.ts +39 -0
  370. package/types/src/sheet/_Anomalies.d.ts +109 -0
  371. package/types/src/sheet/_AnomalyFormulaChecks.d.ts +125 -0
  372. package/types/src/sheet/_AnomalyLabelChecks.d.ts +21 -0
  373. package/types/src/sheet/_CellBuffer.d.ts +11 -1
  374. package/types/src/sheet/_CopyUtils.d.ts +13 -6
  375. package/types/src/sheet/_IgnoredErrors.d.ts +46 -0
  376. package/types/src/sheet/_InvalidSheetRange.d.ts +3 -2
  377. package/types/src/sheet/_Kinds.d.ts +34 -0
  378. package/types/src/sheet/_Labels.d.ts +38 -0
  379. package/types/src/sheet/_RangeStateSweep.d.ts +2 -3
  380. package/types/src/sheet/_ScalarListFactory.d.ts +1 -1
  381. package/types/src/sheet/_SheetAutoFillUtils.d.ts +3 -3
  382. package/types/src/sheet/_SheetAutoFitUtils.d.ts +3 -3
  383. package/types/src/sheet/_SheetChangeEvent.d.ts +72 -0
  384. package/types/src/sheet/_SheetCoords.d.ts +3 -3
  385. package/types/src/sheet/_SheetEvents.d.ts +1 -1
  386. package/types/src/sheet/_SheetFilterUtils.d.ts +6 -6
  387. package/types/src/sheet/_SheetIntents.d.ts +32 -14
  388. package/types/src/sheet/_SheetMessages.d.ts +1 -1
  389. package/types/src/sheet/_SheetMutations.d.ts +7 -8
  390. package/types/src/sheet/_SheetSortUtils.d.ts +2 -2
  391. package/types/src/sheet/_SheetStateReader.d.ts +18 -0
  392. package/types/src/sheet/_SheetStateTypes.d.ts +60 -1
  393. package/types/src/sheet/_SheetUtils.d.ts +20 -19
  394. package/types/src/sheet/_WatchAnchor.d.ts +15 -2
  395. package/types/src/sheet/clipboard/RangeClipboardItems.d.ts +4 -4
  396. package/types/src/sheet/clipboard/SheetHTMLTableParser.d.ts +3 -3
  397. package/types/src/sheet/clipboard/SheetHTMLTableWriter.d.ts +3 -3
  398. package/types/src/sheet/index.d.ts +5 -2
  399. package/types/src/sheet/style/SheetCellStyle.d.ts +67 -86
  400. package/types/src/sheet/style/SheetDirectStyle.d.ts +3 -3
  401. package/types/src/sheet/style/SheetNamedStyle.d.ts +2 -0
  402. package/types/src/sheet/style/_DigitWidth.d.ts +7 -0
  403. package/types/src/sheet/style/_Resolvers.d.ts +3 -2
  404. package/types/src/sheet/style/_StyleUtils.d.ts +7 -43
  405. package/types/src/sheetHeader/ISheetHeader.d.ts +2 -2
  406. package/types/src/sheetHeader/SheetCellHeader.d.ts +2 -0
  407. package/types/src/sheetHeader/SheetCellHeaderRange.d.ts +2 -0
  408. package/types/src/sheetHeader/SheetCellHeaderRanges.d.ts +2 -0
  409. package/types/src/sheetHeader/SheetHeader.d.ts +7 -6
  410. package/types/src/sheetHeader/_HeaderUtils.d.ts +2 -3
  411. package/types/src/sheetProtection/{ISheetProtection.d.ts → IWorksheetProtection.d.ts} +28 -28
  412. package/types/src/sheetProtection/WorksheetProtection.d.ts +51 -0
  413. package/types/src/sheetProtection/index.d.ts +1 -1
  414. package/types/src/sheetView/{ISheetView.d.ts → IWorksheetView.d.ts} +168 -61
  415. package/types/src/sheetView/WorksheetView.d.ts +139 -0
  416. package/types/src/sheetView/_SheetViewUtils.d.ts +5 -3
  417. package/types/src/sheetView/index.d.ts +1 -1
  418. package/types/src/slicer/ISlicer.d.ts +2 -2
  419. package/types/src/sort/ISort.d.ts +35 -5
  420. package/types/src/style/ICellStyle.d.ts +56 -44
  421. package/types/src/style/_BuiltInStyleDefs.d.ts +4 -3
  422. package/types/src/table/AnchoredTable.d.ts +23 -7
  423. package/types/src/table/AutoTable.d.ts +1 -1
  424. package/types/src/table/ITable.d.ts +32 -19
  425. package/types/src/table/_NamedTable.d.ts +3 -3
  426. package/types/src/table/_NamedTableSource.d.ts +2 -2
  427. package/types/src/text/IText.d.ts +4 -51
  428. package/types/src/text/TextEngine.d.ts +34 -0
  429. package/types/src/text/TextFrame.d.ts +4 -2
  430. package/types/src/text/TextRun.d.ts +3 -2
  431. package/types/src/text/TextWrapper.d.ts +32 -26
  432. package/types/src/text/_TextUtils.d.ts +5 -5
  433. package/types/src/text/_TextWrapperFallback.d.ts +49 -0
  434. package/types/src/text/impl/TabStrategy.d.ts +3 -1
  435. package/types/src/text/richtext/IRichText.d.ts +16 -2
  436. package/types/src/text/richtext/index.d.ts +0 -1
  437. package/types/src/theme/ITheme.d.ts +108 -7
  438. package/types/src/theme/ThemeCollection.d.ts +5 -0
  439. package/types/src/theme/_OfficeFontScheme.d.ts +8 -0
  440. package/types/src/transaction/ITransaction.d.ts +20 -1
  441. package/types/src/transaction/Transaction.d.ts +8 -1
  442. package/types/src/transaction/_BatchHandle.d.ts +118 -0
  443. package/types/src/type/AbstractCollection.d.ts +4 -13
  444. package/types/src/type/ICollection.d.ts +17 -4
  445. package/types/src/type/IProperties.d.ts +1 -1
  446. package/types/src/utils/_CSSUtils.d.ts +1 -1
  447. package/types/src/wasm/_fontsWasm.d.ts +7 -0
  448. package/types/src/wasm/_sdkWasm.d.ts +1 -1
  449. package/types/src/wasm/fontsWasm.d.ts +32 -0
  450. package/types/src/wasm/index.d.ts +1 -0
  451. package/types/src/wasm/loader.browser.d.ts +9 -0
  452. package/types/src/wasm/loader.node.d.ts +9 -0
  453. package/types/src/wasm/sdkWasm.d.ts +6 -3
  454. package/types/src/workbook/IWorkbook.d.ts +229 -38
  455. package/types/src/workbook/Workbook.d.ts +77 -22
  456. package/types/src/workbook/WorkbookRange.d.ts +2 -2
  457. package/types/src/workbook/WorkbookRanges.d.ts +2 -2
  458. package/types/src/workbook/_WorkbookIntents.d.ts +2 -2
  459. package/types/src/workbook/_WorkbookMessages.d.ts +5 -0
  460. package/types/src/workbookView/IWorkbookView.d.ts +82 -0
  461. package/types/src/workbookView/WorkbookView.d.ts +21 -0
  462. package/browser/esm/BbSmt62FpFIpoVzu.mjs +0 -392
  463. package/browser/esm/BgcZ-CoTbMfmyDJL.mjs +0 -412
  464. package/browser/esm/DOMHmhYzPcLVcpAW.mjs +0 -7
  465. package/browser/esm/DUvUK61b2_4pf4tG.mjs +0 -484
  466. package/node/esm/CCouEwT37f08qO3V.mjs +0 -7
  467. package/node/esm/CT0CN82y0_Qgoryk.mjs +0 -7568
  468. package/node/esm/DHUADiCmxNQS1ARz.mjs +0 -417
  469. package/node/esm/Ds0d8zXzmgOu3MGx.mjs +0 -403
  470. package/types/src/chart/_ChartXml.d.ts +0 -70
  471. package/types/src/collections/OverlappingRangeIterator.d.ts +0 -87
  472. package/types/src/collections/_RangeSweep.d.ts +0 -97
  473. package/types/src/font/CanvasFontMeasurer.d.ts +0 -25
  474. package/types/src/font/FontKitFontMeasurer.d.ts +0 -11
  475. package/types/src/font/SimpleFontMeasurer.d.ts +0 -4
  476. package/types/src/print/IPrint.d.ts +0 -212
  477. package/types/src/sheet/SheetCollection.d.ts +0 -29
  478. package/types/src/sheetProtection/SheetProtection.d.ts +0 -51
  479. package/types/src/sheetView/SheetView.d.ts +0 -122
  480. package/types/src/text/richtext/IStyledFont.d.ts +0 -330
@@ -4,6 +4,7 @@ import { ITypes } from '../type';
4
4
  import { IListener } from '../listener';
5
5
  import { ITransaction } from '../transaction';
6
6
  import { IHyperlink } from '../hyperlink';
7
+ import { IRichText } from '../text';
7
8
  import { IComment, ICommentCollection } from '../comment';
8
9
  import { ISort } from '../sort';
9
10
  import { ICondition } from '../condition';
@@ -16,13 +17,13 @@ import { IDataValidation, IDataValidationCollection } from '../dataValidation';
16
17
  import { IConditionalFormat } from '../conditionalFormat/IConditionalFormat';
17
18
  import { IConditionalFormatCollection } from '../conditionalFormat/IConditionalFormatCollection';
18
19
  import { IProtectedRange, IProtectedRangeCollection } from '../protectedRange';
19
- import { ISheet } from '../sheet';
20
+ import { IWorksheet } from '../sheet';
20
21
  import { ICell } from '../cell';
21
22
  import { ICellRanges } from './ICellRanges';
22
23
  import { ICellRegions } from './ICellRegion';
23
24
  import { ICellHeaderRange } from './ICellHeaderRange';
24
25
  /**
25
- * A {@link ICellRange} represents a rectangular collection of {@link ICell} within an {@link ISheet}.
26
+ * A {@link ICellRange} represents a rectangular collection of {@link ICell} within an {@link IWorksheet}.
26
27
  *
27
28
  * **Naming Conventions:** Methods usually adhere to the following conventions except
28
29
  * when adhering to a idiomatic existing conventions of Typescript (for example `size` or 'length'):
@@ -90,7 +91,7 @@ export interface ICellRange {
90
91
  * pass `fullyContained` for the stricter question.
91
92
  *
92
93
  * The items are the sheet's — this is a scoped view of
93
- * `getSheet().getConditionalFormats()`, not a copy — and each appears **once**, however many of
94
+ * `getWorksheet().getConditionalFormats()`, not a copy — and each appears **once**, however many of
94
95
  * its ranges the query hit. The range only says *which* items; ask an item where it lives with
95
96
  * {@link IConditionalFormat.getRanges}.
96
97
  */
@@ -116,7 +117,7 @@ export interface ICellRange {
116
117
  * range is the address.
117
118
  *
118
119
  * @remarks
119
- * The items are the sheet's — a scoped view of `getSheet().getComments()`, not a copy. A
120
+ * The items are the sheet's — a scoped view of `getWorksheet().getComments()`, not a copy. A
120
121
  * comment is on one cell, so each appears once, in reading order.
121
122
  */
122
123
  getComments(options?: ICellRange.GetItemsOptions<ICommentCollection.GetItemsOptions>): IComment[];
@@ -151,6 +152,15 @@ export interface ICellRange {
151
152
  * {@link ICellRange.getCells}
152
153
  */
153
154
  getCell(address?: ICell.Address): ICell;
155
+ /**
156
+ * Exists to have api parity with Office Scripts: `row` and `column` are 0-based offsets from the
157
+ * range's top left.
158
+ *
159
+ * @deprecated Use {@link getCell}`('B3')`, or `getCell({ rowIndex, colIndex })` with sheet
160
+ * coordinates.
161
+ * @hidden
162
+ */
163
+ getCell(row: number, column: number): ICell;
154
164
  /**
155
165
  * Return a 2D array of {@link ICell | cells} in the shape of the range.
156
166
  *
@@ -171,6 +181,24 @@ export interface ICellRange {
171
181
  * {@link ICellRange.getValues}
172
182
  */
173
183
  getValue(): Scalar;
184
+ /**
185
+ * Returns the top left cell's value as displayed, with its number format applied.
186
+ *
187
+ * @remarks
188
+ * The same as `getCell().getText(options)`.
189
+ *
190
+ * @see
191
+ * {@link ICell.getText}
192
+ */
193
+ getText(options?: ICell.GetTextOptions): string;
194
+ /**
195
+ * Exists to have api parity with Office Scripts.
196
+ *
197
+ * @deprecated Use {@link getCells}`()` and each cell's `getText()`, or {@link getText} for the
198
+ * top left cell.
199
+ * @hidden
200
+ */
201
+ getTexts(): string[][];
174
202
  /**
175
203
  * Returns the value for the top left `InteropScalar`.
176
204
  *
@@ -189,6 +217,19 @@ export interface ICellRange {
189
217
  * set values work for the entire range.
190
218
  */
191
219
  getStyle(): ICellStyle;
220
+ /**
221
+ * Exists to have api parity with Office Scripts.
222
+ *
223
+ * @deprecated Use {@link getStyle}.
224
+ * @hidden
225
+ */
226
+ getFormat(): ICellStyle;
227
+ /**
228
+ * @deprecated Use {@link getStyle}`().update(style)`, or a setter on the style:
229
+ * `getStyle().getFont().setBold(true)`.
230
+ * @hidden
231
+ */
232
+ setStyle(style: ICellStyle.Update, options?: ICellStyle.UpdateOptions): this;
192
233
  /**
193
234
  * Returns the formula for the range.
194
235
  *
@@ -267,17 +308,17 @@ export interface ICellRange {
267
308
  *
268
309
  * @remarks
269
310
  * The anchored convenience form: equivalent to
270
- * `getSheet().createFormula(expression, topLeftCoords)`, where the anchor is this
311
+ * `getWorksheet().createFormula(expression, topLeftCoords)`, where the anchor is this
271
312
  * range's top-left cell. Nothing is committed — the formula is not registered in the workbook
272
313
  * or the dependency graph.
273
314
  *
274
- * Two behaviors follow from the sheet form (see {@link ISheet.createFormula}):
315
+ * Two behaviors follow from the sheet form (see {@link IWorksheet.createFormula}):
275
316
  *
276
317
  * - A bare reference (`A2`) resolves against THIS range's sheet, never the selected one.
277
318
  * - Relative references resolve **relative to the anchor cell**, so the expression reads
278
319
  * exactly as it would if it were authored here.
279
320
  *
280
- * @see {@link ISheet.createFormula}
321
+ * @see {@link IWorksheet.createFormula}
281
322
  * @see {@link ICalculation.createFormula}
282
323
  */
283
324
  createFormula(expression: string, options?: ICalculation.CreateFormulaOptions): ICalculation.IFormula;
@@ -326,6 +367,20 @@ export interface ICellRange {
326
367
  * @returns `ICellRange` at the repositioned range.
327
368
  */
328
369
  getEntireRows(shift?: boolean, options?: ICellRange.GetRangeOptions): this;
370
+ /**
371
+ * Exists to have api parity with Office Scripts.
372
+ *
373
+ * @deprecated Use {@link getEntireRows}.
374
+ * @hidden
375
+ */
376
+ getEntireRow(): this;
377
+ /**
378
+ * Exists to have api parity with Office Scripts.
379
+ *
380
+ * @deprecated Use {@link getEntireColumns}.
381
+ * @hidden
382
+ */
383
+ getEntireColumn(): this;
329
384
  /**
330
385
  * Returns a range that includes the current range up to a content edge boundary.
331
386
  *
@@ -658,6 +713,8 @@ export interface ICellRange {
658
713
  *
659
714
  * - Every public {@link ICellRange.Feature} appears as a key; features not requested, or not
660
715
  * present, are an explicit `0` — the shape is stable and self-describing, never `null`.
716
+ * `anomalies` is the exception: it is derived on read, so it is counted, and its key
717
+ * present, only when requested by name.
661
718
  * - Each feature is counted **independently**. `getCounts([Fill, Border])` is two numbers,
662
719
  * not the count of their refined intersection — the refined count *is* `getRegions`.
663
720
  * - Counts are cells, never regions: a region count would either disagree with the partition
@@ -709,6 +766,32 @@ export interface ICellRange {
709
766
  * vocabulary at all — see {@link Feature}'s own remarks for where they went.
710
767
  */
711
768
  getRegions(features?: ICellRange.Feature | readonly ICellRange.Feature[], options?: ICellRange.GetRegionsOptions): ICellRegions;
769
+ /**
770
+ * Returns the regions of the `anomalies` feature in reading order: the named checks first, then
771
+ * the rest, each by rank.
772
+ *
773
+ * @param options {@link ICellRange.GetAnomaliesOptions}
774
+ *
775
+ * @example
776
+ * ```ts
777
+ * // Hunting an embedded hardcode: read its checks' findings first, 25 regions at a time.
778
+ * sheet.getAnomalies({ checks: ['hardcodeInRun', 'styleRole'], limit: 25 });
779
+ * sheet.getAnomalies({ checks: ['hardcodeInRun', 'styleRole'], limit: 25, offset: 25 });
780
+ * ```
781
+ *
782
+ * @remarks
783
+ * The regions are the ones {@link getRegions | getRegions('anomalies')} returns, with the same
784
+ * findings and ranks ({@link ICell.Anomaly}); only the order and the window differ. A region
785
+ * whose findings include the first named check lists first, highest rank of that check first;
786
+ * then the second check's; then every region no named check fires on, by its highest rank. A
787
+ * region two named checks fire on lists once, under the first. An ignored check
788
+ * ({@link setErrorIgnored}) is not there to list.
789
+ *
790
+ * `offset` and `limit` page through that one order, so successive windows neither skip nor
791
+ * repeat a region; a window shorter than `limit` is the last. `getRegions('anomalies').getCount()`
792
+ * is the length of the whole list.
793
+ */
794
+ getAnomalies(options?: ICellRange.GetAnomaliesOptions): ICellRegions;
712
795
  /**
713
796
  * Returns a 2D array of {@link Scalar | values} in the shape of the range.
714
797
  *
@@ -737,8 +820,8 @@ export interface ICellRange {
737
820
  * @remarks
738
821
  * - `null` values will clear the corresponding cells.
739
822
  * - `undefined` values will be ignored, leaving the existing cell values unchanged.
740
- * - If an array is passed the values will be in row-major order. An array smaller than the range writes only the cells it covers.
741
- * - If a single value is passed in it will repeat the entire range.
823
+ * - The array is row-major. An array smaller than the range writes only the cells it covers.
824
+ * - A single value is {@link setValue}, which fills the range with it.
742
825
  */
743
826
  setValues(values: ICellRange.ValuesUpdate, options?: ICellRange.SetValuesOptions): this;
744
827
  /**
@@ -761,7 +844,7 @@ export interface ICellRange {
761
844
  * @see
762
845
  * {@link ICellRange.setValues}
763
846
  */
764
- setValue(value: ICellRange.ValuesUpdateOrCallback, options?: ICellRange.SetValuesOptions): this;
847
+ setValue(value: ICellRange.ScalarUpdateOrCallback, options?: ICellRange.SetValuesOptions): this;
765
848
  /**
766
849
  * Set the formula for a range.
767
850
  *
@@ -774,7 +857,7 @@ export interface ICellRange {
774
857
  * @see
775
858
  * {@link ICellRange.setValue}
776
859
  */
777
- setFormula(value: ICellRange.ValuesUpdateOrCallback, options?: ICellRange.SetValuesOptions): this;
860
+ setFormula(value: ICellRange.ScalarUpdateOrCallback, options?: ICellRange.SetValuesOptions): this;
778
861
  /**
779
862
  * Sets the formula of each cell in the range.
780
863
  *
@@ -841,7 +924,7 @@ export interface ICellRange {
841
924
  * @throws `Error` If a row or column in the range is already at the deepest level, `7`. Nothing is
842
925
  * grouped.
843
926
  *
844
- * @see {@link ISheet.getOutline}
927
+ * @see {@link IWorksheet.getOutline}
845
928
  */
846
929
  group(axis?: IRange.Axis, options?: ITransaction.OperationOptions): this;
847
930
  /**
@@ -907,6 +990,34 @@ export interface ICellRange {
907
990
  * To clear hyperlinks either set to `null` or call `clear(ICell.Content.Hyperlinks)`.
908
991
  */
909
992
  setHyperlink(hyperlink: IHyperlink.Update, options?: ITransaction.OperationOptions): this;
993
+ /**
994
+ * Sets the text of every cell in the range as formatted runs.
995
+ *
996
+ * @param runs The runs, or plain text for one run. A run's font records what it sets over the
997
+ * cell's font: `{ text: 'Bold', font: { bold: true } }` then `{ text: ' plain' }`.
998
+ * @returns The current `ICellRange`.
999
+ *
1000
+ * @remarks
1001
+ * The value becomes a `RichText`: text to calculation (`LEN`, `&`, `TYPE()` 2) and formatting
1002
+ * to the renderer, carried whole by a reference. A later `setValue` replaces it, runs and all,
1003
+ * as any value write does. Read it with {@link ICell.getRichText}.
1004
+ */
1005
+ setRichText(runs: IRichText.Update, options?: ITransaction.OperationOptions): this;
1006
+ /**
1007
+ * Ignores, or stops ignoring, one of Excel's error checks over the range: the green triangle's
1008
+ * **Ignore Error**.
1009
+ *
1010
+ * @param check The check.
1011
+ * @param ignored `false` to show the check's indicator again. Defaults to `true`.
1012
+ * @returns The current `ICellRange`.
1013
+ *
1014
+ * @remarks
1015
+ * SheetXL does not run the checks yet; the setting is kept for Excel. It follows the cells through
1016
+ * inserts and deletes, is not copied, and is dropped from a cell that is written or cleared, as
1017
+ * in Excel. Read it with {@link ICell.isErrorIgnored}; find it with {@link getRegions} and
1018
+ * {@link Feature.IgnoredErrors}.
1019
+ */
1020
+ setErrorIgnored(check: ICell.ErrorCheck, ignored?: boolean, options?: ITransaction.OperationOptions): this;
910
1021
  /**
911
1022
  * Sets or clears the comment on the range's first cell.
912
1023
  *
@@ -916,7 +1027,7 @@ export interface ICellRange {
916
1027
  * @remarks
917
1028
  * A comment is on one cell, so a value goes on the range's top-left cell — updating the comment
918
1029
  * there if it has one, adding one otherwise — while `null` clears every comment within the
919
- * range. The comment itself is the richer surface: `getSheet().getComments()` to add, and
1030
+ * range. The comment itself is the richer surface: `getWorksheet().getComments()` to add, and
920
1031
  * {@link ICell.getComments} to reach the one on a cell.
921
1032
  */
922
1033
  setComments(comments: IComment.Update, options?: ITransaction.OperationOptions): this;
@@ -1048,7 +1159,7 @@ export interface ICellRange {
1048
1159
  * @param options If a boolean then this indicates if headers are present.
1049
1160
  *
1050
1161
  * @remarks
1051
- * This behaves similarly to {@link ISheet.getTables.add} but uses the current range
1162
+ * This behaves similarly to {@link IWorksheet.getTables.add} but uses the current range
1052
1163
  */
1053
1164
  addTable(options?: ITableCollection.AddOptions | boolean): ITable;
1054
1165
  /**
@@ -1126,12 +1237,17 @@ export interface ICellRange {
1126
1237
  /**
1127
1238
  * Perform a set of operations as a batch.
1128
1239
  *
1129
- * @param callback Function to perform the operations.
1240
+ * @param callback Function to perform the operations. Handed the commit being written and
1241
+ * `range`, this range bound to the batch.
1130
1242
  * @param options Description of the operation or additional options. This will be used for tracking undo/redo and history. @defaultValue 'Range Update'
1131
1243
  * @template R - The callback return type.
1132
1244
  * @returns The result of the callback.
1245
+ *
1246
+ * @remarks
1247
+ * Work through `range` rather than this one: what is reached through it is part of the batch, as
1248
+ * for {@link IWorkbook.doBatch}.
1133
1249
  */
1134
- doBatch<R>(callback: (commit: ITransaction.ICommit) => Promise<R> | R, options?: string | ITransaction.OperationOptions): Promise<R> | R;
1250
+ doBatch<R>(callback: (commit: ITransaction.ICommit, range: this) => Promise<R> | R, options?: string | ITransaction.OperationOptions): Promise<R> | R;
1135
1251
  /**
1136
1252
  * Creates a `SparseBuilder` for efficiently updating sparsely populated cells in a streaming low memory way.
1137
1253
  *
@@ -1339,6 +1455,11 @@ export interface ICellRange {
1339
1455
  * @param r1c1 If unspecified returns the environment's default.
1340
1456
  */
1341
1457
  getAddress(r1c1?: boolean): string;
1458
+ /**
1459
+ * @deprecated Use {@link getAddress}.
1460
+ * @hidden
1461
+ */
1462
+ getA1(): string;
1342
1463
  /**
1343
1464
  * Returns the column start.
1344
1465
  */
@@ -1376,7 +1497,7 @@ export interface ICellRange {
1376
1497
  /**
1377
1498
  * Returns the Sheet.
1378
1499
  */
1379
- getSheet(): ISheet;
1500
+ getWorksheet(): IWorksheet;
1380
1501
  /**
1381
1502
  * The IRange.Coords.
1382
1503
  */
@@ -1434,10 +1555,16 @@ export interface INamedRange extends ICellRange {
1434
1555
  export declare namespace ICellRange {
1435
1556
  /**
1436
1557
  * This is either:
1437
- * 1. A string that can be parsed into a CellRange (e.g. 'A1:B2') or a named range.
1558
+ * 1. A string that can be parsed into a CellRange (e.g. 'A1:B2'), a named range, or a
1559
+ * structured reference (e.g. `'Sales[[#Headers],[Qty]]'`).
1438
1560
  * 2. Another ICellRange
1439
1561
  * 3. An IRange
1440
1562
  * 4. Partial IRange.FixableCoords
1563
+ *
1564
+ * @remarks
1565
+ * A structured reference is read from the active cell: one without a table name (`'[Qty]'`)
1566
+ * refers to the table at the active cell, and `@` (`'Sales[@Qty]'`) to the active cell's row.
1567
+ * References into another workbook are not supported.
1441
1568
  */
1442
1569
  type Address = string | ICellRange | IRange | Readonly<Partial<IRange.FixableCoords>> | ICell.Address | FormulaError.Ref;
1443
1570
  /**
@@ -1463,13 +1590,13 @@ export declare namespace ICellRange {
1463
1590
  */
1464
1591
  type Update = ICell.Update | readonly ICell.Update[][];
1465
1592
  /**
1466
- * A union of either a Scalar and 2D array of Scalars or an IRange.
1593
+ * A 2D array of scalars or an IRange. A single value is a {@link ScalarUpdateOrCallback}.
1467
1594
  */
1468
- type ValuesUpdate = InteropScalarUpdate | IRange | readonly InteropScalarUpdate[][];
1595
+ type ValuesUpdate = IRange | readonly InteropScalarUpdate[][];
1469
1596
  /**
1470
- * Allows for Values to be set via a callback.
1597
+ * A single value, or a callback that yields one per cell.
1471
1598
  */
1472
- type ValuesUpdateOrCallback<T = Scalar> = ValuesUpdate | ((row: number, column: number) => T | null);
1599
+ type ScalarUpdateOrCallback<T = Scalar> = InteropScalarUpdate | ((row: number, column: number) => T | null);
1473
1600
  /**
1474
1601
  * The read options a range carries.
1475
1602
  *
@@ -1620,7 +1747,7 @@ export declare namespace ICellRange {
1620
1747
  replaceExisting?: boolean;
1621
1748
  }
1622
1749
  /**
1623
- * Options for `ICellRange.delete`.
1750
+ * Options for `ICellRange.insert`.
1624
1751
  */
1625
1752
  interface InsertOptions extends ICellRange.OperationOptions {
1626
1753
  /**
@@ -1647,6 +1774,12 @@ export declare namespace ICellRange {
1647
1774
  * @defaultValue `false` (classic shift-cells)
1648
1775
  */
1649
1776
  span?: boolean;
1777
+ /**
1778
+ * Fit the inserted rows and columns to their content once the insert completes.
1779
+ *
1780
+ * @defaultValue `false` - inserted rows and columns take the default size.
1781
+ */
1782
+ autoFit?: boolean | ICellRange.AutoFitOptions;
1650
1783
  }
1651
1784
  /**
1652
1785
  * Options for `ICellRange.delete`.
@@ -1669,6 +1802,12 @@ export declare namespace ICellRange {
1669
1802
  * @defaultValue `false` (classic shift-cells)
1670
1803
  */
1671
1804
  span?: boolean;
1805
+ /**
1806
+ * Fit the rows and columns the remaining cells shift into once the delete completes.
1807
+ *
1808
+ * @defaultValue `false` - a delete moves rows and columns with the sizes they have.
1809
+ */
1810
+ autoFit?: boolean | ICellRange.AutoFitOptions;
1672
1811
  }
1673
1812
  /**
1674
1813
  * Options for configuring range coordinate reference types.
@@ -1954,7 +2093,7 @@ export declare namespace ICellRange {
1954
2093
  /**
1955
2094
  * Fit to what **formula view** displays rather than to the rendered values.
1956
2095
  *
1957
- * @defaultValue the sheet view's {@link ISheetView.isShowFormulas}
2096
+ * @defaultValue the sheet view's {@link IWorksheetView.isShowFormulas}
1958
2097
  *
1959
2098
  * @remarks
1960
2099
  * In formula view a cell with a formula shows `=` + its formula text, and every other cell
@@ -2398,14 +2537,31 @@ export declare namespace ICellRange {
2398
2537
  * `ISnapshot` can be provided to `ICellRange.copyFrom`.
2399
2538
  */
2400
2539
  interface ISnapshot<T = any, J = any> {
2540
+ /**
2541
+ * Does the asynchronous work a paste needs, before {@link copyTo} is called.
2542
+ *
2543
+ * @remarks
2544
+ * `ICellRange.copyFrom` calls this first, outside any transaction, and then `copyTo` inside
2545
+ * the paste's transaction. Anything that has to wait - loading a kind of content, decoding an
2546
+ * image - is done here, so that `copyTo` can complete synchronously. A snapshot with nothing
2547
+ * to wait for leaves this out, or returns `void`; the paste then runs to its commit in the
2548
+ * caller's synchronous extent.
2549
+ *
2550
+ * @param destination The `ICellRange` the snapshot will be copied to, as the caller gave it.
2551
+ */
2552
+ prepare?(destination: ICellRange, options?: ICellRange.CopyOptions): Promise<void> | void;
2401
2553
  /**
2402
2554
  * Copies the snapshot to the specified range.
2403
2555
  *
2556
+ * @remarks
2557
+ * The copy is made inside the paste's transaction, so it completes synchronously; anything
2558
+ * that has to wait belongs in {@link prepare}.
2559
+ *
2404
2560
  * @param destination The destination `ICellRange` where the snapshot will be copied.
2405
2561
  *
2406
- * @returns A promise that resolves when the copy is complete, or `void` if no asynchronous operation is required.
2562
+ * @returns The coordinates the copy covered, or `null` when it placed no cells.
2407
2563
  */
2408
- copyTo(destination: ICellRange, options?: ICellRange.CopyOptions): Promise<IRange.Coords | null> | IRange.Coords | null;
2564
+ copyTo(destination: ICellRange, options?: ICellRange.CopyOptions): IRange.Coords | null;
2409
2565
  /**
2410
2566
  * Return the options used when creating.
2411
2567
  * @remarks
@@ -2483,12 +2639,12 @@ export declare namespace ICellRange {
2483
2639
  * over the content-style map). `Notes` joins when the backing is implemented; a feature that
2484
2640
  * silently reports nothing is worse than a missing one.
2485
2641
  *
2486
- * `String`/`Number`/`Boolean` are deliberately absent, even though they are real `ScalarType`
2487
- * values. This vocabulary is for things with a spatial identity — a fill, a formula, an
2488
- * occupied cell — and a scalar kind has none: it is read straight off the value, which is
2642
+ * `String`/`Number`/`Boolean` are deliberately absent as separate members, even though they are
2643
+ * real `ScalarType` values. "How many numbers" is a count read straight off the values, which is
2489
2644
  * exactly the one pass `IRangeStats.getTypedCounts()` already makes, richer (it composes with
2490
- * aggregates and frequencies for free, in the same call). `getCounts`/`getRegions`/
2491
- * `isContentful` were never the right vocabulary for "how many numbers" — `range.getStats()` is.
2645
+ * aggregates and frequencies for free, in the same call) — `range.getStats()` is the vocabulary
2646
+ * for that. *Where* the numbers are is a partition, and that is the one {@link Feature.Kind}
2647
+ * answers: a typed row inside a block of text is a region of its own.
2492
2648
  *
2493
2649
  * `Error` stays, for a reason unrelated to the above: it has real spatial identity of its own
2494
2650
  * (the reconciled error view) and partitions like any stored feature — it was never in the same
@@ -2506,6 +2662,34 @@ export declare namespace ICellRange {
2506
2662
  * Occupancy — splits on blank/non-blank, Excel `CurrentRegion` semantics.
2507
2663
  */
2508
2664
  readonly Contentful: "contentful";
2665
+ /**
2666
+ * What a cell holds: a number, a date, text, text that would enter as a number, a boolean, an
2667
+ * error or rich data. A formula cell is the kind of its result.
2668
+ *
2669
+ * @remarks
2670
+ * Regions group by kind, so a column of numbers with one text cell in it is three regions. A
2671
+ * date is a number under a date or time format (the cell's `getInteropType()` is `date`).
2672
+ * Text that a typed entry would read as a number (`'123`, a number imported as text) is a kind
2673
+ * of its own, apart from other text: it is Excel's number stored as text. The anchor's
2674
+ * `getInteropType()` names the kind of every other region.
2675
+ *
2676
+ * Derived from the values on first read and cached until the sheet changes.
2677
+ */
2678
+ readonly Kind: "kind";
2679
+ /**
2680
+ * A cell's job in the model ({@link ICell.Role}): a typed `label` or `input`, a `link` to
2681
+ * another sheet, a `reference` on this sheet, a `computed` cell or an `output`, from what the
2682
+ * cell reads and who reads it. The anchor's {@link ICell.getRole} is the payload.
2683
+ *
2684
+ * @remarks
2685
+ * The kind layer refined by the formulas: a column of typed numbers a model reads is one
2686
+ * `input` region, the links beside it another. Crossed with a format (`['role', 'font']`) it is
2687
+ * the census a color convention is judged by, and what the `styleRole` check reads.
2688
+ *
2689
+ * Derived on first read (the formulas parsed once) and cached until the sheet changes, so
2690
+ * {@link ICellRange.getCounts} counts it only when asked for by name, like `anomalies`.
2691
+ */
2692
+ readonly Role: "role";
2509
2693
  /**
2510
2694
  * Direct date-category number format — `yyyy-mm-dd`, `mm/dd/yyyy`, and the like.
2511
2695
  *
@@ -2562,6 +2746,11 @@ export declare namespace ICellRange {
2562
2746
  readonly AutoTable: "autoTable";
2563
2747
  /** Has a hyperlink. */
2564
2748
  readonly Hyperlink: "hyperlink";
2749
+ /**
2750
+ * Ignores one or more of Excel's error checks. Regions group by the set of checks ignored.
2751
+ * @see {@link ICellRange.setErrorIgnored}
2752
+ */
2753
+ readonly IgnoredErrors: "ignoredErrors";
2565
2754
  /** Has comments. */
2566
2755
  readonly Comments: "comments";
2567
2756
  /**
@@ -2573,6 +2762,39 @@ export declare namespace ICellRange {
2573
2762
  readonly Conditionals: "conditionals";
2574
2763
  /** Cells under data-validation rules. */
2575
2764
  readonly DataValidations: "dataValidations";
2765
+ /**
2766
+ * Cells where an error check fires — what breaks the pattern around it. Regions group by the
2767
+ * check and its evidence, so a filled row that breaks the same way is one region; the anchor
2768
+ * cell's {@link ICell.getAnomalies} is the payload.
2769
+ *
2770
+ * @remarks
2771
+ * Excel's background error checks, run over this vocabulary's own partitions rather than cell
2772
+ * by cell: a formula region whose neighbors on both sides agree with each other and not with
2773
+ * it (`formula`), a range that stops one number short (`formulaRange`), text that reads as a
2774
+ * number (`numberStoredAsText`), a reference to an empty cell (`emptyCellReference`), a
2775
+ * formula left unlocked (`unlockedFormula`). The first of these is one rule SheetXL runs on
2776
+ * other layers too: a typed value in a run of formulas (`hardcodeInRun`), and an authored
2777
+ * format that breaks the run around it (`styleBreak`); and a format part paired with the
2778
+ * cell's role, a link left black where links are green (`styleRole`). Then SheetXL's own, read from what a
2779
+ * formula says: a cell counted twice in one sum (`repeatedReference`), an aggregate of one cell
2780
+ * or of typed numbers (`degenerateCall`), a sum holding its own subtotal (`sumIncludesSubtotal`),
2781
+ * a total that also adds a cell outside its block (`misalignedReference`),
2782
+ * a nearest-key lookup (`approximateMatch`), lookup arrays that do not line up (`lookupShape`),
2783
+ * a reference outside the workbook (`externalReference`); and from labels: a link whose target
2784
+ * row is labeled otherwise (`linkLabelMismatch`), a lookup key that is not the row's or
2785
+ * column's label (`keyLabelMismatch`), a link with the other sign from its siblings
2786
+ * (`signVsSiblings`). An ignored check ({@link ICellRange.setErrorIgnored}) does not fire.
2787
+ *
2788
+ * Regions list highest rank first ({@link ICell.Anomaly.rank}), unless an `axis` is asked for.
2789
+ *
2790
+ * The checks that read a formula need the calculation engine to have loaded its parser, and
2791
+ * those that read its references need it to have compiled the formula; with the engine off
2792
+ * they do not fire.
2793
+ *
2794
+ * Derived on first read and cached until the sheet changes, so {@link ICellRange.getCounts}
2795
+ * counts it only when asked for by name; otherwise its key is absent, never `0`.
2796
+ */
2797
+ readonly Anomalies: "anomalies";
2576
2798
  };
2577
2799
  type Feature = typeof Feature[keyof typeof Feature];
2578
2800
  /**
@@ -2582,9 +2804,17 @@ export declare namespace ICellRange {
2582
2804
  * Total, not partial — every public {@link ICellRange.Feature} is present, absent features
2583
2805
  * as explicit zeros. A zero is a fact about the range; a missing key would be ambiguous.
2584
2806
  *
2807
+ * The exceptions are `anomalies` and `role`: each is derived, not stored, so it is present only
2808
+ * when it was requested by name. A count that was never taken is absent rather than a `0` that
2809
+ * would read as "nothing fires here".
2810
+ *
2585
2811
  * The brand is non-enumerable: `Object.keys`/`entries` yield exactly the feature keys.
2586
2812
  */
2587
- interface Counts extends Readonly<Record<ICellRange.Feature, number>> {
2813
+ interface Counts extends Readonly<Record<Exclude<ICellRange.Feature, typeof Feature.Anomalies | typeof Feature.Role>, number>> {
2814
+ /** Present only when `anomalies` was requested by name; see {@link Feature.Anomalies}. */
2815
+ readonly anomalies?: number;
2816
+ /** Present only when `role` was requested by name; see {@link Feature.Role}. */
2817
+ readonly role?: number;
2588
2818
  /**
2589
2819
  * For runtime type checking.
2590
2820
  */
@@ -2617,6 +2847,29 @@ export declare namespace ICellRange {
2617
2847
  */
2618
2848
  containment?: 'intersects' | 'fullyContained';
2619
2849
  }
2850
+ /**
2851
+ * Options for {@link ICellRange.getAnomalies}.
2852
+ */
2853
+ interface GetAnomaliesOptions {
2854
+ /**
2855
+ * The checks to list first, in this order of priority; an unknown name throws.
2856
+ *
2857
+ * @defaultValue none — every region by rank
2858
+ */
2859
+ checks?: readonly ICell.ErrorCheck[];
2860
+ /**
2861
+ * At most this many regions.
2862
+ *
2863
+ * @defaultValue every region
2864
+ */
2865
+ limit?: number;
2866
+ /**
2867
+ * Regions to skip first, so `{ limit: 25, offset: 25 }` is the window after `{ limit: 25 }`.
2868
+ *
2869
+ * @defaultValue 0
2870
+ */
2871
+ offset?: number;
2872
+ }
2620
2873
  interface ScrollIntoViewOptions extends globalThis.ScrollIntoViewOptions {
2621
2874
  /**
2622
2875
  * If provided then will only scroll in the provided axis.
@@ -2758,10 +3011,13 @@ export declare namespace ICellRange {
2758
3011
  }
2759
3012
  interface Event {
2760
3013
  /**
2761
- * The source of the event. This will be a readonly range.
3014
+ * The range that was listened to, where it is now.
2762
3015
  *
2763
3016
  * @remarks
2764
- * This may change shape due to insert/delete/move of cells or sheets.
3017
+ * After a `'address'` or `'restore'` event this is the range at its new address or extent: rows
3018
+ * or columns inserted or deleted around it, or an undo that moved it back. The range
3019
+ * `addListener` was called on keeps the address it was made with, so this is where to read
3020
+ * the range from.
2765
3021
  */
2766
3022
  getSource<T = ICellRange | ICellRanges>(): T;
2767
3023
  /**
@@ -2771,10 +3027,6 @@ export declare namespace ICellRange {
2771
3027
  * This is different than the source range as that is the entire range area that was listened to.
2772
3028
  */
2773
3029
  getFrom(): ICellRanges;
2774
- /**
2775
- * Used for moves. Represents the new location of the data that has changed.
2776
- */
2777
- getTo?(): ICellRange;
2778
3030
  /**
2779
3031
  * Returns a list of updates that occurred during the event. This is only available for data change events and will be `null` for address or restore events.
2780
3032
  */
@@ -2887,23 +3139,38 @@ export declare namespace ICellRange {
2887
3139
  */
2888
3140
  ignoreAddressChanges?: boolean;
2889
3141
  /**
2890
- * If `true`, the listener will be treated as *transactional*. This has
2891
- * a few implications:
2892
- *
2893
- * 1. **Synchronous Execution:** The listener will be called *synchronously*
2894
- * as part of the same transaction that triggered the event. Any
2895
- * side-effects of the listener will be included in the transaction's
2896
- * commit history.
2897
- * 2. **No 'restore' Events:** Transactional listeners will *never* receive
2898
- * 'restore' events. They are only concerned with changes within the
2899
- * current transaction.
2900
- *
2901
- * If `false` (the default), the listener will be called *asynchronously*
2902
- * after the transaction is complete. The listener's side-effects will
2903
- * *not* be part of the transaction's commit history.
2904
- *
2905
- * @defaultValue false
2906
- */
3142
+ * Whether the listener takes part in the operations that change its range.
3143
+ *
3144
+ * @defaultValue `true` when the listener is added through a range reached through the object a
3145
+ * batch hands its callback ({@link IWorkbook.doBatch}, {@link IWorksheet.doBatch},
3146
+ * {@link doBatch}), and `false` otherwise.
3147
+ *
3148
+ * @remarks
3149
+ * A transactional listener (a participant):
3150
+ * * added through a batch, is told as each operation of that batch is made, before the
3151
+ * operation returns, with what that operation changed. It is not told again when the batch
3152
+ * lands;
3153
+ * * added any other way, is told once at the end of each operation, before it is committed;
3154
+ * * writes into the same commit as the change it was told of, so one undo takes back both;
3155
+ * * is never told of an undo or a redo, and is removed by undoing the operation that added it.
3156
+ * If its batch fails, it is told nothing more and goes with the batch.
3157
+ *
3158
+ * A non-transactional listener (an observer) is told once, after the operation has landed,
3159
+ * with everything the operation changed in its range, and not at all if the operation is
3160
+ * rolled back. What it writes is an operation of its own. It is told of an undo or a redo
3161
+ * (`'restore'`), and it survives them.
3162
+ *
3163
+ * @example
3164
+ * ```ts
3165
+ * await workbook.doBatch(async (_commit, wb) => {
3166
+ * const total = wb.getSelectedWorksheet()!.getRange('B1');
3167
+ * const input = wb.getSelectedWorksheet()!.getRange('A1');
3168
+ * input.addListener(() => total.setValue((input.getValue() as number) * 2)); // a participant
3169
+ * input.setValue(21);
3170
+ * total.getValue(); // 42
3171
+ * });
3172
+ * ```
3173
+ */
2907
3174
  transactional?: boolean;
2908
3175
  /**
2909
3176
  * If `true`, the listener will *not* be called when the data