@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, ICollection, IProperties } from '../type';
4
4
  import { IWorkbook } from '../workbook';
5
5
  import { IListener } from '../listener';
6
6
  import { ITransaction } from '../transaction';
7
+ import { BatchHandle } from '../transaction/_BatchHandle';
7
8
  import { IResource, IResourceCollection } from '../resource';
8
9
  import { IStringCollection } from '../string';
9
10
  import { IProtection } from '../protection';
@@ -28,6 +29,9 @@ import { IChartCollection } from '../chart';
28
29
  import { IPicture } from '../picture';
29
30
  import { InsertableCollection } from '../movable/_InsertableCollection';
30
31
  import { IPivotTable, IPivotTableCollection } from '../pivot';
32
+ import { IDataTable, IDataTableCollection } from '../dataTable';
33
+ import { AnomalyFindings, AnomalySet, AnomalySource, RoleSource } from './_Anomalies';
34
+ import { CellKind } from './_Kinds';
31
35
  import { ICell } from '../cell';
32
36
  import { ICellRange, ICellRegions, ICellRanges } from '../cellRange';
33
37
  import { ICellStyle, IStyleCollection } from '../style';
@@ -44,15 +48,19 @@ import { ProtectedRange } from '../protectedRange/ProtectedRange';
44
48
  import { Comment } from '../comment/Comment';
45
49
  import { NoteMovable } from '../comment/NoteMovable';
46
50
  import { NoteLayout } from '../comment/_NoteBox';
47
- import { ISheetProtection } from '../sheetProtection';
51
+ import { IWorksheetProtection } from '../sheetProtection';
48
52
  import { IOutline } from '../outline';
53
+ import { IPageLayout } from '../print';
49
54
  import { ISheetHeader } from '../sheetHeader';
50
- import { ISheetView } from '../sheetView';
55
+ import { IWorksheetView } from '../sheetView';
56
+ import { IWorksheet } from './IWorksheet';
51
57
  import { ISheet } from './ISheet';
52
58
  import { ScalarListFactory } from './_ScalarListFactory';
53
59
  import { ListenerAnchor } from './_ListenerAnchor';
54
60
  import { WatchAnchor } from './_WatchAnchor';
61
+ import { ShiftIntent } from './_SheetIntents';
55
62
  import { EventCategory, SheetEvents } from './_SheetEvents';
63
+ import { SheetChangeDetails } from './_SheetChangeEvent';
56
64
  import { SheetHeader } from '../sheetHeader/SheetHeader';
57
65
  import { SheetDirectStyle } from './style/SheetDirectStyle';
58
66
  import { IUsedRangeSpatialMap } from './style/UsedRangeSpatialMap';
@@ -61,37 +69,43 @@ import { CellBuffer } from './_CellBuffer';
61
69
  import { SheetReadContext, GetTypedRangeOptions, OverFlowsAndStops } from './_SheetStateReader';
62
70
  import { AutoFillProjection, AutoFillPreviewCache } from './_SheetAutoFillUtils';
63
71
  import { ProtectionCheck } from './_SheetCoords';
64
- import { SheetProtection } from '../sheetProtection/SheetProtection';
72
+ import { WorksheetProtection } from '../sheetProtection/WorksheetProtection';
65
73
  import { Outline } from '../outline/Outline';
74
+ import { PageLayout } from '../print/PageLayout';
66
75
  import { SheetCellOptions } from './SheetCell';
67
76
  import { ICalculation } from '../calculation';
68
77
  import { ICalcGrid } from '../calculation/grid';
69
78
  import * as _SheetFilterUtils from './_SheetFilterUtils';
79
+ /** The font colors a workbook writes its roles in, and a key that compares by content. */
80
+ interface WorkbookRoleColors {
81
+ readonly key: string;
82
+ readonly colors: ReadonlySet<string>;
83
+ }
70
84
  /**
71
- * Implementation of {@link ISheet}.
85
+ * Implementation of {@link IWorksheet}.
72
86
  */
73
87
  /**
74
- * The internal capability surface a {@link Sheet} vends to `SheetRange`/`SheetRanges` and (later)
75
- * extracted operation modules. It carries ONLY genuinely-internal operations; the public `ISheet`
76
- * API is reached via `getSheet()` and never duplicated here. The type is derived from the concrete
88
+ * The internal capability surface a {@link Worksheet} vends to `SheetRange`/`SheetRanges` and (later)
89
+ * extracted operation modules. It carries ONLY genuinely-internal operations; the public `IWorksheet`
90
+ * API is reached via `getWorksheet()` and never duplicated here. The type is derived from the concrete
77
91
  * `_internal` object so it can never drift from the implementation.
78
92
  * @internal
79
93
  */
80
- export type ISheetInternal = ReturnType<Sheet['_getInternal']>;
94
+ export type IWorksheetInternal = ReturnType<Worksheet['_getInternal']>;
81
95
  /**
82
- * The context a {@link Sheet} vends to `_SheetMutations` (the shift/insert/delete engine). Derived
96
+ * The context a {@link Worksheet} vends to `_SheetMutations` (the shift/insert/delete engine). Derived
83
97
  * from the concrete `_buildMutationCtx` object so it can never drift from the implementation.
84
98
  * @internal
85
99
  */
86
- export type SheetMutationContext = ReturnType<Sheet['_buildMutationCtx']>;
100
+ export type SheetMutationContext = ReturnType<Worksheet['_buildMutationCtx']>;
87
101
  /**
88
- * The context a {@link Sheet} vends to `_SheetCoords` (address/coord resolution). Derived from the
102
+ * The context a {@link Worksheet} vends to `_SheetCoords` (address/coord resolution). Derived from the
89
103
  * concrete `_buildCoordCtx` object so it can never drift from the implementation.
90
104
  * @internal
91
105
  */
92
- export type SheetCoordContext = ReturnType<Sheet['_buildCoordCtx']>;
106
+ export type SheetCoordContext = ReturnType<Worksheet['_buildCoordCtx']>;
93
107
  /**
94
- * What an operation hands {@link Sheet._commitWithDirectives} beyond its selection and options.
108
+ * What an operation hands {@link Worksheet._commitWithDirectives} beyond its selection and options.
95
109
  * @internal
96
110
  */
97
111
  export interface CommitDirectives {
@@ -102,7 +116,7 @@ export interface CommitDirectives {
102
116
  /** Handed to the commit. */
103
117
  commit?: ITransaction.StoreOperationOptions;
104
118
  }
105
- /** The sheet's legacy drawing as it holds it: {@link ISheet.LegacyDrawingJSON} with each image resolved to its {@link IResource}, so paste and `.sxl` keep working. */
119
+ /** The sheet's legacy drawing as it holds it: {@link IWorksheet.LegacyDrawingJSON} with each image resolved to its {@link IResource}, so paste and `.sxl` keep working. */
106
120
  interface LegacyDrawing {
107
121
  xml: string;
108
122
  images?: LegacyDrawingImage[];
@@ -112,8 +126,8 @@ interface LegacyDrawingImage {
112
126
  id: string;
113
127
  resource: IResource;
114
128
  }
115
- export declare class Sheet implements ISheet {
116
- protected _options: ISheet.ConstructorOptions;
129
+ export declare class Worksheet implements IWorksheet {
130
+ protected _options: IWorksheet.ConstructorOptions;
117
131
  protected _id: string;
118
132
  /** The store-issued key for this sheet's state record. Distinct from `_id`, the document-level id (formula scope / JSON). */
119
133
  protected _stateId: string;
@@ -128,7 +142,12 @@ export declare class Sheet implements ISheet {
128
142
  * close before an earlier one lands. See {@link _onRootTransactionClose}.
129
143
  */
130
144
  protected _movableSelectionAtCommitEnd: Map<ITransaction.ICommit, readonly string[]>;
131
- protected _emitter: ListenerEmitter<ISheet, ISheet.IListeners>;
145
+ /**
146
+ * What calculation passes realized while a root was open, told to listener nodes once it
147
+ * closes. See {@link _realizeCalcedValues}.
148
+ */
149
+ protected _heldPassRanges: IRange.Coords[] | null;
150
+ protected _emitter: ListenerEmitter<IWorksheet, IWorksheet.IListeners>;
132
151
  protected _initializing: boolean;
133
152
  protected _starting: Promise<void> | null;
134
153
  protected _strings: IStringCollection;
@@ -139,7 +158,22 @@ export declare class Sheet implements ISheet {
139
158
  protected _ownStyles: boolean;
140
159
  protected _stylesRemoveListener: IListener.Remove;
141
160
  protected _languageRemoveListener?: IListener.Remove;
161
+ protected _fontsRemoveListener?: IListener.Remove;
142
162
  protected _regionalRemoveListener?: IListener.Remove;
163
+ /** Autofits that measured with a stand-in while a face was loading; taken again when it lands. */
164
+ /** Fits owed once the faces have loaded: held before they ran (`ran` false), or run against a stand-in. */
165
+ protected _pendingFits: {
166
+ ranges: readonly IRange.Coords[];
167
+ options?: ICellRange.AutoFitOptions;
168
+ ran: boolean;
169
+ }[];
170
+ /** Set while fits are owed to the text engine's arrival; see {@link _autoFit}. */
171
+ private _engineWait;
172
+ /**
173
+ * Whether the load-time row fit was skipped (`disableLoadAutoFit`): the stored heights are the
174
+ * file's, so no row was measured with a stand-in and a font arriving has none to correct.
175
+ */
176
+ protected _loadFitSkipped: boolean;
143
177
  protected _stylesListener: IStyleCollection.IListeners;
144
178
  protected _normalStyleRanged: IProperties.ICellRanged<ICellStyle.Properties>;
145
179
  protected _resources: IResourceCollection;
@@ -153,6 +187,8 @@ export declare class Sheet implements ISheet {
153
187
  protected _legacyDrawingHF: LegacyDrawing | null;
154
188
  /** The sheet's pivot tables, held as read for the same reason. */
155
189
  protected _pivotTableCollection: IPivotTableCollection;
190
+ /** The sheet's data tables, carried as read. */
191
+ protected _dataTableCollection: IDataTableCollection;
156
192
  /**
157
193
  * Anchored items whose delete this sheet announced itself.
158
194
  *
@@ -225,17 +261,24 @@ export declare class Sheet implements ISheet {
225
261
  protected _entireCoordsCache: IRange.Coords | null;
226
262
  protected _entireRangeCache: ICellRange | null;
227
263
  protected _isDataColumn: boolean;
228
- protected _view: ISheetView;
229
- protected _viewListener: ISheetView.IListeners;
264
+ protected _view: IWorksheetView;
265
+ protected _viewListener: IWorksheetView.IListeners;
230
266
  protected _viewRemoveListener: IListener.Remove;
231
- protected _protection: SheetProtection;
267
+ protected _protection: WorksheetProtection;
232
268
  protected _protectionListener: IProtection.IListeners;
233
269
  protected _protectionRemoveListener: IListener.Remove;
234
270
  protected _tabColor: IColor | null;
235
- /** VBA binding identity; carried from the file, never minted. See {@link ISheet.getCodeName}. */
271
+ /** VBA binding identity; carried from the file, never minted. See {@link IWorksheet.getCodeName}. */
236
272
  protected _codeName: string | null;
273
+ /** See {@link IWorksheet.JSON.baseColSize}. `null` is the default, 8. */
274
+ protected _baseColSize: number | null;
237
275
  protected _outline: Outline;
276
+ protected _pageLayout: PageLayout;
238
277
  protected _conditionalFormatCalculation: boolean;
278
+ /** Carried from `sheetPr`; see {@link IWorksheet.isTransitionFormulaEvaluation} and its neighbors. */
279
+ /** Carried from the file. See {@link IDataValidationCollection.getSettings}. */
280
+ protected _validationSettings: Readonly<IDataValidationCollection.Settings>;
281
+ protected _sheetPr: Pick<IWorksheet.JSON, 'transitionFormulaEvaluation' | 'transitionFormulaEntry' | 'excludeFromPublishing' | 'syncScroll'>;
239
282
  /**
240
283
  * Modules this sheet owns — see {@link getModules}.
241
284
  *
@@ -273,19 +316,20 @@ export declare class Sheet implements ISheet {
273
316
  protected _defaultColWidthCache: number | null;
274
317
  protected _defaultRowHeightCache: number | null;
275
318
  protected _defaultFontBoundsCache: Readonly<Size> | null;
319
+ protected _defaultFontsVersion: number;
276
320
  /**
277
321
  * The internal capability object handed to `SheetRange`/`SheetRanges` (and future extracted
278
322
  * modules) so they can drive the sheet without touching its (non-public) methods or the concrete
279
323
  * class shape. The closures reach `Sheet`'s protected members because they are lexically inside the
280
- * class. Public `ISheet` API is reached via `getSheet()` (never duplicated here). As internal logic
324
+ * class. Public `IWorksheet` API is reached via `getWorksheet()` (never duplicated here). As internal logic
281
325
  * moves out to modules, only the relevant closure repoints — consumers never change.
282
- * The `ISheetInternal` type is derived from this object (see below) so it can never drift.
326
+ * The `IWorksheetInternal` type is derived from this object (see below) so it can never drift.
283
327
  * @internal
284
328
  */
285
329
  private readonly _internal;
286
- /** @internal Access the internal capability object. See {@link ISheetInternal}. */
330
+ /** @internal Access the internal capability object. See {@link IWorksheetInternal}. */
287
331
  _getInternal(): {
288
- getSheet: () => ISheet;
332
+ getSheet: () => IWorksheet;
289
333
  getState: () => Readonly<State>;
290
334
  getCalcGrid: () => ICalcGrid;
291
335
  isDataColumn: () => boolean;
@@ -327,11 +371,11 @@ export declare class Sheet implements ISheet {
327
371
  beginCommit: (options?: ITransaction.StoreOperationOptions | string) => ITransaction;
328
372
  recordSelection: (trans: ITransaction, selection: Partial<IRangeSelection.Coords>, options?: Pick<ICellRange.OperationOptions, "autoSelect" | "autoSelectRestore"> | null, undo?: Partial<IRangeSelection.Coords> | null, axis?: IRange.Axis) => void;
329
373
  commitWithDirectives: (trans: ITransaction, selection: Partial<IRangeSelection.Coords> | null, options?: ICellRange.OperationOptions, directives?: CommitDirectives) => void;
330
- autoFit: (ranges: readonly IRange.Coords[], options?: ICellRange.AutoFitOptions) => void;
374
+ autoFit: (ranges: readonly IRange.Coords[], options?: ICellRange.AutoFitOptions, holdWhileLoading?: boolean) => void;
331
375
  getBestFit: (range: IRange.Coords, options?: ICellRange.BestFitOptions) => Size;
332
- invalidateRendering: () => void;
376
+ invalidateRendering: (axes?: IRange.AxisSelection | null) => void;
333
377
  addListenerNode: (ranges: readonly IRange.Coords[], listener: ICellRange.Listener, options?: ICellRange.ListenerOptions) => IListener.Remove;
334
- addWatch: (coords: IRange.Coords, formula: ICalculation.IFormula | string, handlers: WatchAnchor.Handlers, origin?: IRange.CellCoords, options?: ICellRange.WatchOptions) => IListener.Remove;
378
+ addWatch: (coords: IRange.Coords, formula: ICalculation.IFormula | string, handlers: WatchAnchor.Handlers, origin?: IRange.CellCoords, options?: WatchAnchor.Options) => IListener.Remove;
335
379
  surroundingRegion: (range: IRange.Coords, options?: ICellRange.GetSurroundingOptions) => IRange.Coords;
336
380
  getTraverseRegion: (cell: IRange.CellCoords, axis: IRange.Axis, reverse: boolean) => IRange.Coords | null;
337
381
  sort: (coords: Readonly<IRange.Coords>, options?: boolean | ISort.Options[] | (ISort.RangeOptions & ITransaction.OperationOptions)) => IRange.Coords;
@@ -340,6 +384,7 @@ export declare class Sheet implements ISheet {
340
384
  applyFilterRuns: (runs: _SheetFilterUtils.FilterRuns, options?: ITransaction.OperationOptions) => void;
341
385
  filteredTables: () => ITable[];
342
386
  setHyperlinks: (ranges: readonly ISpatialMap.Entry<IHyperlink.Update>[], defaultUpdate?: IHyperlink.Update, options?: ITransaction.OperationOptions) => void;
387
+ setErrorIgnored: (ranges: readonly IRange.Coords[], check: ICell.ErrorCheck, ignored: boolean, options?: ITransaction.OperationOptions) => void;
343
388
  setComments: (ranges: readonly ISpatialMap.Entry<IComment.Update>[], comments?: IComment.Update | IComment.JSON, options?: ITransaction.OperationOptions) => void;
344
389
  getBoundsAtCoords: (coords: IRange.Coords) => Bounds;
345
390
  extendRange: (direction: IRange.Direction, cell: IRange.CellCoords) => Readonly<IRange.Coords>;
@@ -357,6 +402,96 @@ export declare class Sheet implements ISheet {
357
402
  * @internal
358
403
  */
359
404
  protected _getReadCtx(): SheetReadContext;
405
+ /** This sheet's first-pass findings and what they were derived from; see {@link _getAnomalyFindings}. */
406
+ protected _anomalyFindings: {
407
+ state: Readonly<State>;
408
+ values: unknown;
409
+ formulas: unknown;
410
+ epoch: number;
411
+ roleColors: string;
412
+ findings: AnomalyFindings;
413
+ } | null;
414
+ /**
415
+ * The error checks' findings on this sheet, each ranked alone. Derived on the first read that
416
+ * asks for it and kept until the sheet's state, its formulas or its values move, or the
417
+ * workbook's role colors change.
418
+ * @internal
419
+ */
420
+ protected _getAnomalyFindings(roleColors?: WorkbookRoleColors): AnomalyFindings;
421
+ /** This worksheet and the workbook's others, very hidden included. */
422
+ protected _getWorkbookSheets(): Worksheet[];
423
+ /** The workbook's role colors and the sheets' sets they were the union of; see {@link _getWorkbookRoleColors}. */
424
+ protected _workbookRoleColors: (WorkbookRoleColors & {
425
+ sheets: readonly ReadonlySet<string>[];
426
+ }) | null;
427
+ /**
428
+ * The font colors any sheet writes a role in, the union `styleRole` reads. `key` changes only
429
+ * when the union does, so an edit that recolors nothing keeps the other sheets' findings.
430
+ * @internal
431
+ */
432
+ protected _getWorkbookRoleColors(): WorkbookRoleColors;
433
+ /** The anomalies map and the workbook's findings it was ranked against; see {@link _getAnomalies}. */
434
+ protected _anomalies: {
435
+ workbook: readonly AnomalyFindings[];
436
+ map: ISpatialMap<AnomalySet>;
437
+ } | null;
438
+ /**
439
+ * Where the error checks fire on this sheet (`ICellRange.Feature.Anomalies`).
440
+ *
441
+ * @remarks
442
+ * A finding's rank depends on how often it repeats across the workbook, so the first read on
443
+ * any sheet derives every sheet's findings; each is kept until its own sheet moves, and this map
444
+ * until any of them does. Nothing on a write or a calculation pays for it.
445
+ * @internal
446
+ */
447
+ protected _getAnomalies(): ISpatialMap<AnomalySet>;
448
+ /** What the role layer is read from: this sheet's content and formulas, as they are now. */
449
+ protected _roleSource(): RoleSource;
450
+ /** The roles map and what it was derived from; see {@link _getRoles}. */
451
+ protected _roles: {
452
+ state: Readonly<State>;
453
+ values: unknown;
454
+ formulas: unknown;
455
+ epoch: number;
456
+ map: ISpatialMap<ICell.Role>;
457
+ } | null;
458
+ /**
459
+ * Each cell's job (`ICellRange.Feature.Role`), derived on the first read that asks for it and
460
+ * kept, like {@link _getAnomalies}, until the sheet moves.
461
+ * @internal
462
+ */
463
+ protected _getRoles(): ISpatialMap<ICell.Role>;
464
+ /** What the checks read of this sheet, as it is now. */
465
+ protected _anomalySource(): AnomalySource;
466
+ /** The role colors and what they were derived from; see {@link _getRoleColors}. */
467
+ protected _roleColors: {
468
+ state: Readonly<State>;
469
+ values: unknown;
470
+ formulas: unknown;
471
+ epoch: number;
472
+ colors: ReadonlySet<string>;
473
+ } | null;
474
+ /**
475
+ * The font colors this sheet writes its roles in, for another sheet's `styleRole` check. Derived
476
+ * on the first read and kept, like {@link _getAnomalies}, until the sheet moves.
477
+ */
478
+ protected _getRoleColors(): ReadonlySet<string>;
479
+ /** The kinds map and what it was derived from; see {@link _getKinds}. */
480
+ protected _kinds: {
481
+ state: Readonly<State>;
482
+ values: unknown;
483
+ epoch: number;
484
+ map: ISpatialMap<CellKind>;
485
+ } | null;
486
+ /**
487
+ * What each cell holds, by kind (`ICellRange.Feature.Kind`).
488
+ *
489
+ * @remarks
490
+ * One scan of the values, derived on the first read that asks for it and kept until the sheet's
491
+ * state or its values move, as {@link _getAnomalies} is.
492
+ * @internal
493
+ */
494
+ protected _getKinds(): ISpatialMap<CellKind>;
360
495
  /**
361
496
  * The sheet's grid: the synchronous half of the calculation service for this sheet
362
497
  * (DESIGN-CALC-SERVICE §13.23, §13.24), holding everything a cell contains - the formulas, the
@@ -374,7 +509,7 @@ export declare class Sheet implements ISheet {
374
509
  /** `false` for a snapshot sheet, which holds its source's grid and must not close it. */
375
510
  protected _ownsCalcGrid: boolean;
376
511
  /** @internal Cached mutation-engine context. See {@link SheetMutationContext}. */
377
- protected _mutationCtx: ReturnType<Sheet['_buildMutationCtx']> | null;
512
+ protected _mutationCtx: ReturnType<Worksheet['_buildMutationCtx']> | null;
378
513
  /** @internal Access the mutation context (cached). See {@link SheetMutationContext}. */
379
514
  protected _getMutationCtx(): SheetMutationContext;
380
515
  /**
@@ -386,10 +521,11 @@ export declare class Sheet implements ISheet {
386
521
  protected _buildMutationCtx(): {
387
522
  readonly rowHeaders: SheetHeader;
388
523
  readonly columnHeaders: SheetHeader;
524
+ readonly pageLayout: PageLayout;
389
525
  readonly rowHeadersShiftCallback: SheetHeader.ShiftCallback | null;
390
526
  readonly columnHeadersShiftCallback: SheetHeader.ShiftCallback | null;
391
527
  getEntireCoords: () => IRange.Coords;
392
- getView: () => ISheetView;
528
+ getView: () => IWorksheetView;
393
529
  beginCommit: (options?: ITransaction.StoreOperationOptions | string) => ITransaction;
394
530
  updateState: (updateState?: Partial<State>, options?: ITransaction.OperationOptions | string) => State;
395
531
  getState: () => Readonly<State>;
@@ -407,6 +543,7 @@ export declare class Sheet implements ISheet {
407
543
  takeShiftedNoteModels: () => Map<IMovable, ISpatialMap.Entry<MovableEntry>> | null;
408
544
  markColumnHeaderTableNames: () => void;
409
545
  commitWithDirectives: (trans: ITransaction, selection: Partial<IRangeSelection.Coords> | null, options?: ICellRange.OperationOptions, directives?: CommitDirectives) => void;
546
+ recordAutoFit: (trans: ITransaction, ranges: readonly IRange.Coords[], autoFit: boolean | ICellRange.AutoFitOptions) => void;
410
547
  readonly styles: IStyleCollection;
411
548
  getRangedEntries: <T, E = T>(spatial: ISpatialQuery, ranges: readonly IRange.Coords[], options?: GetTypedRangeOptions<T, E>, spatialSort?: boolean) => T[];
412
549
  createSparseBuilder: (options?: ICellRange.SparseBuilderOptions, sheetRange?: ICellRange | null, internal?: InternalTupleUpdate) => ICellRange.SparseBuilder;
@@ -415,12 +552,13 @@ export declare class Sheet implements ISheet {
415
552
  fill: IUsedRangeSpatialMap<SheetDirectStyle>;
416
553
  content: IUsedRangeSpatialMap<SheetDirectStyle>;
417
554
  }) => IUsedRangeSpatialMap<SheetDirectStyle>;
418
- autoFit: (ranges: readonly IRange.Coords[], options?: ICellRange.AutoFitOptions) => void;
555
+ autoFit: (ranges: readonly IRange.Coords[], options?: ICellRange.AutoFitOptions, holdWhileLoading?: boolean) => void;
419
556
  recordAutoFormat: (trans: ITransaction) => void;
420
557
  recordSkipProtectionCheck: (trans: ITransaction) => void;
421
558
  recordFreezePanes: (trans: ITransaction, before: IRange.CellCoords, after: IRange.CellCoords) => void;
559
+ recordShift: (trans: ITransaction, kind: IWorksheet.ShiftKind, axis: IRange.Axis, ranges: readonly IRange.Coords[]) => void;
422
560
  recordSelection: (trans: ITransaction, selection: Partial<IRangeSelection.Coords>, options?: Pick<ICellRange.OperationOptions, "autoSelect" | "autoSelectRestore"> | null, undo?: Partial<IRangeSelection.Coords> | null, axis?: IRange.Axis) => void;
423
- notify: (key: keyof ISheet.IListeners) => void | Promise<any>;
561
+ notify: (key: keyof IWorksheet.IListeners) => void | Promise<any>;
424
562
  getRange: (address?: ICellRange.Address, options?: ICellRange.GetRangeOptions) => ICellRange;
425
563
  getSelection: () => IRangeSelection;
426
564
  getMerges: (ranges: readonly IRange.Coords[], ignoreHidden?: boolean | IRange.Axis) => IRange.Coords[];
@@ -432,10 +570,10 @@ export declare class Sheet implements ISheet {
432
570
  readonly lists: ScalarListFactory;
433
571
  readonly cellOptions: SheetCellOptions;
434
572
  readonly runtime: IRuntime;
435
- getProtection: () => ISheetProtection;
573
+ getProtection: () => IWorksheetProtection;
436
574
  hasRangedEntries: (key: keyof State, range: IRange.Coords) => boolean;
437
575
  rangeStateIterator: (options: RangeState.IteratorOptions) => RangeState.Iterator;
438
- recordChange: (trans: ITransaction, category: EventCategory, ranges: readonly IRange.Coords[] | null | undefined) => void;
576
+ recordChange: (trans: ITransaction, category: EventCategory, ranges: readonly IRange.Coords[] | null | undefined, shifts?: readonly ShiftIntent[]) => void;
439
577
  loadComments: (map: IAnchoredMap<IComment, IComment.JSON>, refs: IRange.JSONReference<IComment.JSON>[]) => IAnchoredMap<IComment, IComment.JSON>;
440
578
  newCommentJSON: (modifiers: IComment.Modifiers) => IComment.JSON;
441
579
  notifyCommentsChange: () => void;
@@ -453,7 +591,7 @@ export declare class Sheet implements ISheet {
453
591
  /** @internal Single-entry memo behind `autoFill({ preview })`. See {@link AutoFillPreviewCache}. */
454
592
  protected _autoFillPreviewCache: AutoFillPreviewCache | null;
455
593
  /** @internal Cached coord-resolution context. See {@link SheetCoordContext}. */
456
- protected _coordCtx: ReturnType<Sheet['_buildCoordCtx']> | null;
594
+ protected _coordCtx: ReturnType<Worksheet['_buildCoordCtx']> | null;
457
595
  /** @internal Access the coord-resolution context (cached). See {@link SheetCoordContext}. */
458
596
  protected _getCoordCtx(): SheetCoordContext;
459
597
  /**
@@ -463,7 +601,7 @@ export declare class Sheet implements ISheet {
463
601
  */
464
602
  protected _buildCoordCtx(): {
465
603
  readonly internal: {
466
- getSheet: () => ISheet;
604
+ getSheet: () => IWorksheet;
467
605
  getState: () => Readonly<State>;
468
606
  getCalcGrid: () => ICalcGrid;
469
607
  isDataColumn: () => boolean;
@@ -505,11 +643,11 @@ export declare class Sheet implements ISheet {
505
643
  beginCommit: (options?: ITransaction.StoreOperationOptions | string) => ITransaction;
506
644
  recordSelection: (trans: ITransaction, selection: Partial<IRangeSelection.Coords>, options?: Pick<ICellRange.OperationOptions, "autoSelect" | "autoSelectRestore"> | null, undo?: Partial<IRangeSelection.Coords> | null, axis?: IRange.Axis) => void;
507
645
  commitWithDirectives: (trans: ITransaction, selection: Partial<IRangeSelection.Coords> | null, options?: ICellRange.OperationOptions, directives?: CommitDirectives) => void;
508
- autoFit: (ranges: readonly IRange.Coords[], options?: ICellRange.AutoFitOptions) => void;
646
+ autoFit: (ranges: readonly IRange.Coords[], options?: ICellRange.AutoFitOptions, holdWhileLoading?: boolean) => void;
509
647
  getBestFit: (range: IRange.Coords, options?: ICellRange.BestFitOptions) => Size;
510
- invalidateRendering: () => void;
648
+ invalidateRendering: (axes?: IRange.AxisSelection | null) => void;
511
649
  addListenerNode: (ranges: readonly IRange.Coords[], listener: ICellRange.Listener, options?: ICellRange.ListenerOptions) => IListener.Remove;
512
- addWatch: (coords: IRange.Coords, formula: ICalculation.IFormula | string, handlers: WatchAnchor.Handlers, origin?: IRange.CellCoords, options?: ICellRange.WatchOptions) => IListener.Remove;
650
+ addWatch: (coords: IRange.Coords, formula: ICalculation.IFormula | string, handlers: WatchAnchor.Handlers, origin?: IRange.CellCoords, options?: WatchAnchor.Options) => IListener.Remove;
513
651
  surroundingRegion: (range: IRange.Coords, options?: ICellRange.GetSurroundingOptions) => IRange.Coords;
514
652
  getTraverseRegion: (cell: IRange.CellCoords, axis: IRange.Axis, reverse: boolean) => IRange.Coords | null;
515
653
  sort: (coords: Readonly<IRange.Coords>, options?: boolean | ISort.Options[] | (ISort.RangeOptions & ITransaction.OperationOptions)) => IRange.Coords;
@@ -518,6 +656,7 @@ export declare class Sheet implements ISheet {
518
656
  applyFilterRuns: (runs: _SheetFilterUtils.FilterRuns, options?: ITransaction.OperationOptions) => void;
519
657
  filteredTables: () => ITable[];
520
658
  setHyperlinks: (ranges: readonly ISpatialMap.Entry<IHyperlink.Update>[], defaultUpdate?: IHyperlink.Update, options?: ITransaction.OperationOptions) => void;
659
+ setErrorIgnored: (ranges: readonly IRange.Coords[], check: ICell.ErrorCheck, ignored: boolean, options?: ITransaction.OperationOptions) => void;
521
660
  setComments: (ranges: readonly ISpatialMap.Entry<IComment.Update>[], comments?: IComment.Update | IComment.JSON, options?: ITransaction.OperationOptions) => void;
522
661
  getBoundsAtCoords: (coords: IRange.Coords) => Bounds;
523
662
  extendRange: (direction: IRange.Direction, cell: IRange.CellCoords) => Readonly<IRange.Coords>;
@@ -536,32 +675,34 @@ export declare class Sheet implements ISheet {
536
675
  getEntireCoords: () => IRange.Coords;
537
676
  getNamedFormulas: () => import('..').INamedFormulasCollection;
538
677
  getNames: () => INamedCollection;
539
- getProtection: () => ISheetProtection;
678
+ getProtection: () => IWorksheetProtection;
540
679
  getName: () => string;
541
680
  resolveRange: (coord: ICellRange.Address) => ICellRange | null | undefined;
542
681
  };
543
- constructor(options?: ISheet.ConstructorOptions);
682
+ constructor(options?: IWorksheet.ConstructorOptions);
544
683
  /** @internal Logic lives in `_SheetCoords.createRange`. */
545
684
  protected _createRange(coords: Readonly<IRange.FixableCoords> | string, getOptions?: ICellRange.GetRangeOptions, readOnly?: string | null): ICellRange;
546
685
  /** @internal Logic lives in `_SheetCoords.createRanges`. */
547
686
  protected _createRanges(coords: readonly (IRange.Coords | string | ICellRange)[], getOptions?: ICellRange.GetRangeOptions, readOnly?: string | null): ICellRanges;
548
- /** {@inheritDoc ISheet.getRange} */
687
+ /** {@inheritDoc IWorksheet.getRange} */
549
688
  getRange(address?: ICellRange.Address, options?: ICellRange.GetRangeOptions): ICellRange;
550
- /** {@inheritDoc ISheet.getCell} */
689
+ /** {@inheritDoc IWorksheet.getCell} */
551
690
  getCell(address?: ICell.Address): ICell;
552
- /** {@inheritDoc ISheet.getRange} */
691
+ /** {@inheritDoc IWorksheet.getRange} */
553
692
  getRanges(address: ICellRanges.Address, options?: ICellRange.GetRangeOptions): ICellRanges;
554
- /** {@inheritDoc ISheet.getEntireRange} */
693
+ /** {@inheritDoc IWorksheet.getEntireRange} */
555
694
  getEntireRange(options?: ICellRange.GetRangeOptions): ICellRange;
556
695
  protected _getEntireCoords(): IRange.Coords;
557
- /** {@inheritDoc ISheet.getEntireCoords} */
696
+ /** {@inheritDoc IWorksheet.getEntireCoords} */
558
697
  getEntireCoords(): IRange.Coords;
559
- /** {@inheritDoc ISheet.getUsedRange} */
698
+ /** {@inheritDoc IWorksheet.getUsedRange} */
560
699
  getUsedRange(options?: ICellRange.GetRangeOptions): ICellRange | null;
561
- /** {@inheritDoc ISheet.getStats} */
700
+ /** {@inheritDoc IWorksheet.getStats} */
562
701
  getStats(options?: ICellRange.GetStatsOptions): IRangeStats;
563
- /** {@inheritDoc ISheet.getRegions} */
702
+ /** {@inheritDoc IWorksheet.getRegions} */
564
703
  getRegions(features?: ICellRange.Feature | readonly ICellRange.Feature[], options?: ICellRange.GetRegionsOptions): ICellRegions;
704
+ /** {@inheritDoc IWorksheet.getAnomalies} */
705
+ getAnomalies(options?: ICellRange.GetAnomaliesOptions): ICellRegions;
565
706
  /** @internal Logic lives in `_SheetCoords.cellToCoords`. */
566
707
  protected _cellToCoords(address: ICell.Address): IRange.CellCoords;
567
708
  /** @internal Logic lives in `_SheetCoords.validateCoords`. */
@@ -683,6 +824,8 @@ export declare class Sheet implements ISheet {
683
824
  protected _autoFillRange(template: IRange.Coords, destination: IRange.Coords): IRange.Coords;
684
825
  /** @internal Logic lives in `_SheetMutations.autoFillShrink`. */
685
826
  protected _autoFillShrink(template: IRange.Coords, destination: IRange.Coords, direction: IRange.Direction, options?: ICellRange.AutoFillOptions): boolean;
827
+ /** @internal Logic lives in `_SheetMutations.setErrorIgnored`. */
828
+ protected _setErrorIgnored(ranges: readonly IRange.Coords[], check: ICell.ErrorCheck, ignored: boolean, options?: ITransaction.OperationOptions): void;
686
829
  /** @internal Logic lives in `_SheetMutations.setHyperlinks`. */
687
830
  protected _setHyperlinks(ranges: readonly ISpatialMap.Entry<IHyperlink.Update>[], defaultUpdate?: IHyperlink.Update, // we do this because updateTuples may update each
688
831
  options?: ITransaction.OperationOptions): void;
@@ -725,6 +868,12 @@ export declare class Sheet implements ISheet {
725
868
  * @internal
726
869
  */
727
870
  protected _realizeCalcedValues(results: ICalcGrid.Results): void;
871
+ /**
872
+ * Tell listener nodes what calculation passes realized. A pass belongs to no commit, so the
873
+ * event carries no transaction id.
874
+ * @internal
875
+ */
876
+ protected _notifyPassToListenerNodes(ranges: readonly IRange.Coords[]): void;
728
877
  /**
729
878
  * Land the promoted half of a pass's results - number formats and sizes - in the commit that
730
879
  * entered the formulas they belong to.
@@ -744,10 +893,32 @@ export declare class Sheet implements ISheet {
744
893
  * the references the formula inherits one from, resolved here against the entering commit's
745
894
  * snapshot ({@link _resolveInheritedFormats}), or else the format its functions supplied.
746
895
  *
896
+ * One pass can answer for several entering commits: writes made before the engine runs are
897
+ * calculated together, and the pass names only the last of them. Each one still formats and
898
+ * fits under its own directives and against its own snapshot ({@link _enteredSince}), but the
899
+ * writes land in the target, since an amend reaches only the snapshot it names.
900
+ *
747
901
  * @internal
748
902
  */
749
903
  protected _promoteCalcResults(target: ITransaction.ICommit, results: ICalcGrid.Results): void;
750
- /** {@inheritDoc ISheet.calculate} */
904
+ /**
905
+ * The commits a pass targeting `target` answers for on this sheet, newest first, each with the
906
+ * cells it entered that the pass realized and no newer one of them re-entered.
907
+ *
908
+ * @remarks
909
+ * Walks back from the target to the first commit already resolved for this sheet: anything
910
+ * older was answered by that commit's pass. Bounded by {@link _MAX_PROMOTE_WALK}, since the walk
911
+ * runs on every pass.
912
+ *
913
+ * @internal
914
+ */
915
+ protected _enteredSince(target: ITransaction.ICommit, bounds: IRange.Coords): {
916
+ commit: ITransaction.ICommit;
917
+ entered: IRange.Coords[];
918
+ }[];
919
+ /** How far back a pass looks for entering commits it answers for. */
920
+ private static readonly _MAX_PROMOTE_WALK;
921
+ /** {@inheritDoc IWorksheet.calculate} */
751
922
  calculate(full?: boolean): Promise<ICalculation.Status>;
752
923
  /** @internal */
753
924
  protected _calculate(ranges: ICellRanges.Coords, options?: ICalculation.CalculateOptions): void;
@@ -766,21 +937,46 @@ export declare class Sheet implements ISheet {
766
937
  /** @internal */
767
938
  protected _getMerges(ranges: readonly IRange.Coords[], ignoreHidden?: boolean | IRange.Axis): IRange.Coords[];
768
939
  /** @internal */
769
- protected _clone(): ISheet;
940
+ protected _clone(): IWorksheet;
941
+ /**
942
+ * A read-only sheet as this sheet was at a commit, or `null` when the store no longer has the
943
+ * commit or the sheet did not exist at it.
944
+ *
945
+ * @remarks
946
+ * Built on demand and not kept: it copies no cells, only the state record and a grid pinned
947
+ * to the commit's record.
948
+ * @internal
949
+ */
950
+ _snapshotAt(commitId: string): IWorksheet | null;
951
+ /** The snapshot sheet `_clone` and `_snapshotAt` build, over a given state and grid. */
952
+ private _cloneOver;
770
953
  /** @internal */
771
954
  protected _getSnapshot(coordsFrom: readonly IRange.Coords[], optionsMark?: ICellRange.CopyOptions, getTransactionId?: () => string): ICellRange.ISnapshot;
772
955
  /**
773
956
  * Copy all items at a sheetRange.
774
957
  * @internal
775
958
  `*/
776
- protected _copyRange(sheetFrom: Sheet, sheetMark: Sheet, coordsFrom: readonly IRange.Coords[], sheetRangeTo: ICellRange, options: ICellRange.CopyOptions | undefined, toInfo: any): Promise<IRange.Coords>;
959
+ protected _copyRange(sheetFrom: Worksheet, sheetMark: Worksheet, coordsFrom: readonly IRange.Coords[], sheetRangeTo: ICellRange, options: ICellRange.CopyOptions | undefined, toInfo: any): IRange.Coords;
777
960
  /**
778
961
  * Returns `null` if invalid.
779
962
  * @internal
780
963
  */
781
964
  protected _snapShotFromSource(source: ICellRange.Address | ICellRange.ISnapshot, options?: ICellRange.CopyOptions): ICellRange.ISnapshot;
782
- /** @internal */
965
+ /**
966
+ * A paste: what the snapshot has to wait for is waited for first, outside any transaction
967
+ * ({@link ICellRange.ISnapshot.prepare}), and the paste itself then opens, writes and commits its
968
+ * transaction in one synchronous extent ({@link _copyFromNow}). With nothing to wait for, the
969
+ * whole paste runs in the caller's synchronous extent: a paste begun while another is suspended
970
+ * is never nested in it, and a read made right after sees the pasted cells.
971
+ * @internal
972
+ */
783
973
  protected _copyFrom(destination: IRange.Coords, source: ICellRange.Address | ICellRange.ISnapshot, options?: ICellRange.CopyOptions): Promise<IRange.Coords>;
974
+ /**
975
+ * The paste itself, once its snapshot has prepared: one transaction, opened, written and
976
+ * committed here.
977
+ * @internal
978
+ */
979
+ protected _copyFromNow(destination: IRange.Coords, snapshot: ICellRange.ISnapshot, options?: ICellRange.CopyOptions): IRange.Coords;
784
980
  /**
785
981
  * Where a {@link _copyFrom} lands, and whether the merges there let it - Excel's rules:
786
982
  *
@@ -795,9 +991,9 @@ export declare class Sheet implements ISheet {
795
991
  * @internal
796
992
  */
797
993
  protected _resolveCopyDestination(destination: IRange.Coords, snapshot: ICellRange.ISnapshot, options: ICellRange.CopyOptions | undefined, isCut: boolean): IRange.Coords;
798
- /** {@inheritDoc ISheet.addAutoTable} */
994
+ /** {@inheritDoc IWorksheet.addAutoTable} */
799
995
  addAutoTable(address?: ICellRange.Address, options?: ICellRange.AddAutoTableOptions): ITable;
800
- /** {@inheritDoc ISheet.getAutoTable} */
996
+ /** {@inheritDoc IWorksheet.getAutoTable} */
801
997
  getAutoTable(): ITable | null;
802
998
  /**
803
999
  * The tables on this sheet that hold a filter condition: the AutoTable, then the tables. What
@@ -833,8 +1029,14 @@ export declare class Sheet implements ISheet {
833
1029
  * @internal
834
1030
  */
835
1031
  protected _canInsertFrom(ranges: readonly IRange.Coords[], source: ICellRange.Address | ICellRange.ISnapshot, options?: ICellRange.InsertFromOptions): boolean;
836
- /** @internal */
1032
+ /**
1033
+ * An insert-paste, in the two parts of a {@link _copyFrom}: the snapshot prepares outside any
1034
+ * transaction, then {@link _insertFromNow} inserts, pastes and commits in one synchronous extent.
1035
+ * @internal
1036
+ */
837
1037
  protected _insertFrom(ranges: readonly IRange.Coords[], source: ICellRange.Address | ICellRange.ISnapshot, options?: ICellRange.InsertFromOptions): Promise<IRange.Coords>;
1038
+ /** @internal */
1039
+ protected _insertFromNow(ranges: readonly IRange.Coords[], snapshot: ICellRange.ISnapshot, options?: ICellRange.InsertFromOptions): IRange.Coords;
838
1040
  /**
839
1041
  * Insert cells, shifting existing content down/right.
840
1042
  * @internal
@@ -857,8 +1059,18 @@ export declare class Sheet implements ISheet {
857
1059
  *
858
1060
  * @remarks
859
1061
  * Implementation lives in `_SheetAutoFitUtils` (same pattern as `_SheetSortUtils.doSort`).
1062
+ * A fit that measured a face still loading (answered with a stand-in) is kept and taken again
1063
+ * when the face lands; a fit that measured only loaded faces is final.
860
1064
  */
861
- protected _autoFit(ranges: readonly IRange.Coords[], options?: ICellRange.AutoFitOptions): void;
1065
+ protected _autoFit(ranges: readonly IRange.Coords[], options?: ICellRange.AutoFitOptions, holdWhileLoading?: boolean): void;
1066
+ /**
1067
+ * Runs the fits owed (see {@link _autoFit}): one held runs for the first time as it was asked;
1068
+ * one that ran against a stand-in runs again, leaving alone a custom size or a hidden row set
1069
+ * since (its first run already cleared what the caller asked to override).
1070
+ *
1071
+ * @returns `false` if none were owed.
1072
+ */
1073
+ private _runPendingFits;
862
1074
  /**
863
1075
  * The size a range's content needs, without writing it. See {@link ICellRange.getBestFit}.
864
1076
  *
@@ -914,9 +1126,11 @@ export declare class Sheet implements ISheet {
914
1126
  * @param origin Where `formula` is authored when it is not `coords`' own top-left: the shared
915
1127
  * origin of a multi-area watch, from which the body is filled to `coords`.
916
1128
  * @param options `arrayFirstCell`: every cell of the body is its own 1x1 array-entered formula.
1129
+ * `paged`: the body's blank region is evaluated where its owner asks (see
1130
+ * {@link WatchAnchor.Options.paged}).
917
1131
  * @internal
918
1132
  */
919
- protected _addWatch(coords: IRange.Coords, formula: ICalculation.IFormula | string, handlers: WatchAnchor.Handlers, origin?: IRange.CellCoords, options?: ICellRange.WatchOptions): IListener.Remove;
1133
+ protected _addWatch(coords: IRange.Coords, formula: ICalculation.IFormula | string, handlers: WatchAnchor.Handlers, origin?: IRange.CellCoords, options?: WatchAnchor.Options): IListener.Remove;
920
1134
  /**
921
1135
  * The one amend that creates a watch: its node, its grid and its body.
922
1136
  *
@@ -926,7 +1140,7 @@ export declare class Sheet implements ISheet {
926
1140
  * node in the versioned map, the entry that holds its callbacks, and the removal.
927
1141
  * @internal
928
1142
  */
929
- protected _registerWatch(coords: IRange.Coords, expression: string, authoredAt: IRange.CellCoords, handlers: WatchAnchor.Handlers, arrayFirstCell: boolean): IListener.Remove;
1143
+ protected _registerWatch(coords: IRange.Coords, expression: string, authoredAt: IRange.CellCoords, handlers: WatchAnchor.Handlers, arrayFirstCell: boolean, paged: boolean): IListener.Remove;
930
1144
  /**
931
1145
  * A watch's body is a grid the engine holds once, for every snapshot, so a watch is made and
932
1146
  * removed against the commit the store is at. Inside an amend of any other commit its node and
@@ -992,6 +1206,17 @@ export declare class Sheet implements ISheet {
992
1206
  * @internal
993
1207
  */
994
1208
  protected _removeListenerNode(node: ListenerAnchor): void;
1209
+ /**
1210
+ * Tell the participants bound to `batch` of each of its steps, from the step's own intents.
1211
+ *
1212
+ * @remarks
1213
+ * Told inline, as the step commits and before the operation that made it returns, so what a
1214
+ * participant writes is the batch's next step. Moves first, as at the root's end.
1215
+ *
1216
+ * @internal
1217
+ */
1218
+ protected _hearBatchSteps(batch: BatchHandle): void;
1219
+ protected _batchesHeard: WeakSet<BatchHandle> | null;
995
1220
  /**
996
1221
  * Deliver to every node whose reference intersects what changed.
997
1222
  *
@@ -1005,7 +1230,7 @@ export declare class Sheet implements ISheet {
1005
1230
  *
1006
1231
  * @internal
1007
1232
  */
1008
- protected _notifyListenerNodes(state: State, ranges: readonly IRange.Coords[] | null, notificationOptions: NotifierOptions, transactional: boolean, renamed?: boolean): void;
1233
+ protected _notifyListenerNodes(state: State, ranges: readonly IRange.Coords[] | null, notificationOptions: NotifierOptions, transactional: boolean, renamed?: boolean, includes?: ((entry: ListenerNodeEntry) => boolean) | null): void;
1009
1234
  /**
1010
1235
  * Deliver to every live node whose reference is no longer where it was.
1011
1236
  *
@@ -1023,7 +1248,7 @@ export declare class Sheet implements ISheet {
1023
1248
  *
1024
1249
  * @internal
1025
1250
  */
1026
- protected _notifyListenerNodeMoves(state: State, transactional: boolean, notificationOptions: NotifierOptions | null): void;
1251
+ protected _notifyListenerNodeMoves(state: State, transactional: boolean, notificationOptions: NotifierOptions | null, includes?: ((entry: ListenerNodeEntry) => boolean) | null): void;
1027
1252
  /**
1028
1253
  * One delivery, after the option filters.
1029
1254
  *
@@ -1033,10 +1258,33 @@ export declare class Sheet implements ISheet {
1033
1258
  /** @internal */
1034
1259
  protected _notifyUsedRangeChange(): void;
1035
1260
  /** @internal */
1036
- protected _notify(key: keyof ISheet.IListeners): void | Promise<any>;
1261
+ protected _notify(key: keyof IWorksheet.IListeners): void | Promise<any>;
1262
+ /**
1263
+ * Fires one of the events that carry a {@link IWorksheet.ChangeEvent}.
1264
+ *
1265
+ * @param coords What changed, or `null` for the whole sheet.
1266
+ * @param details What wrote it; a `null` commit for a change not written.
1267
+ * @internal
1268
+ */
1269
+ protected _notifyChange(key: IWorksheet.ChangeEventKey, coords: readonly IRange.Coords[] | null, details: SheetChangeDetails): void;
1270
+ /**
1271
+ * The change events a commit announces on this sheet, in the order they fire: what the commit
1272
+ * path delivers and {@link IWorkbook.getChanges} reads back.
1273
+ * @internal
1274
+ */
1275
+ protected _commitChanges(scoped: SheetEvents | null, details: SheetChangeDetails): {
1276
+ key: IWorksheet.ChangeEventKey;
1277
+ coords: IRange.Coords[];
1278
+ details: SheetChangeDetails;
1279
+ }[];
1280
+ /**
1281
+ * What a commit wrote on this sheet, as {@link IWorkbook.getChanges} reports it.
1282
+ * @internal
1283
+ */
1284
+ _changeEventsOf(commit: ITransaction.ICommit, previous: ITransaction.ICommit | null): IWorksheet.ChangeEvent[];
1037
1285
  /**
1038
1286
  * Every collection change fires its fine-grained event PLUS the coarse class event it belongs
1039
- * to (see `ISheet.Events.onStyleChange` / `onProtectionChange`), so renderers subscribe to the
1287
+ * to (see `IWorksheet.Events.onStyleChange` / `onProtectionChange`), so renderers subscribe to the
1040
1288
  * class alone. These helpers are the single place that pairing lives — fire sites must use them
1041
1289
  * rather than `_notify` directly so a collection can never drift out of its class.
1042
1290
  * @internal
@@ -1060,8 +1308,8 @@ export declare class Sheet implements ISheet {
1060
1308
  * @internal
1061
1309
  */
1062
1310
  protected _forwardCollectionListeners(key: 'onTablesChange' | 'onConditionalFormatsChange' | 'onDataValidationsChange' | 'onProtectedRangesChange' | 'onCommentsChange', collection: () => ICollection<any>): (listeners: ICollection.IListeners, options?: IListener.Options) => IListener.Remove;
1063
- /** {@inheritDoc ISheet.addListeners} */
1064
- addListeners(listeners: ISheet.IListeners, options?: IListener.Options): IListener.Remove;
1311
+ /** {@inheritDoc IWorksheet.addListeners} */
1312
+ addListeners(listeners: IWorksheet.IListeners, options?: IListener.Options): IListener.Remove;
1065
1313
  /** @internal */
1066
1314
  protected _getUsedCoords(options?: ICellRange.GetRangeOptions): IRange.Coords | null;
1067
1315
  /** @internal */
@@ -1079,7 +1327,7 @@ export declare class Sheet implements ISheet {
1079
1327
  *
1080
1328
  * Every public feature is counted INDEPENDENTLY (no refinement — a refined count is
1081
1329
  * `getRegions`), and the result carries the full `ICellRange.Feature` key set with explicit
1082
- * zeros. Every feature reads off its own state map now — `DateFormat` off `dateFormatSpatial`,
1330
+ * zeros, except `anomalies`, which is keyed only when requested. Every feature reads off its own state map now — `DateFormat` off `dateFormatSpatial`,
1083
1331
  * `Error` off the reconciled error spatial (cached per state version) — grouped by backing map
1084
1332
  * so shared backings (the three content-style projections) iterate once. There is no value-scan
1085
1333
  * branch left: that used to exist for the scalar kinds (`String`/`Number`/`Boolean`, and the old
@@ -1153,13 +1401,21 @@ export declare class Sheet implements ISheet {
1153
1401
  * @internal
1154
1402
  */
1155
1403
  protected _featureRegions(bounds: IRange.Coords, requested: readonly ICellRange.Feature[], options?: ICellRange.GetRegionsOptions): IRange.Coords[];
1156
- /** {@inheritDoc ISheet.find} */
1404
+ /** {@inheritDoc IWorksheet.find} */
1157
1405
  find(options?: string | ICellRange.FindOptions): Iterator<ICell>;
1158
- /** {@inheritDoc ISheet.setEntireSize} */
1159
- setEntireSize(size?: Partial<Size> | null, options?: ITransaction.OperationOptions): this;
1406
+ /** {@inheritDoc IWorksheet.setEntireSize} */
1407
+ setEntireSize(size?: Partial<IWorksheet.EntireSize> | null, options?: ITransaction.OperationOptions): this;
1408
+ private _getEntireSize;
1409
+ /** The size that ends where the sheet's content does. */
1410
+ private _getFittedSize;
1411
+ /**
1412
+ * Moves the sheet's end to `size`, within the caller's transaction. The cells it adds or removes
1413
+ * are inserted and deleted at the end, so ranges that reach the end follow it.
1414
+ */
1415
+ private _resizeEntire;
1160
1416
  /** @internal */
1161
1417
  protected _find(ranges: readonly IRange.Coords[], options: string | ICellRange.FindOptions): Iterator<ICell>;
1162
- /** {@inheritDoc ISheet.getRuntime} */
1418
+ /** {@inheritDoc IWorksheet.getRuntime} */
1163
1419
  getRuntime(): IRuntime;
1164
1420
  /**
1165
1421
  * The region a bare-cursor traverse from `cell` wraps within, or `null` for a plain move. A table
@@ -1173,7 +1429,7 @@ export declare class Sheet implements ISheet {
1173
1429
  protected _extendRange(direction: IRange.Direction, cell: IRange.CellCoords): Readonly<IRange.Coords>;
1174
1430
  /** @internal */
1175
1431
  protected _defaultFontDims(): Readonly<Size>;
1176
- /** {@inheritDoc ISheet.getColumnWidthAsFontUnit} */
1432
+ /** {@inheritDoc IWorksheet.getColumnWidthAsFontUnit} */
1177
1433
  getColumnWidthAsFontUnit(pixelWidth: number): number;
1178
1434
  protected _createTupleBuilder<T>(transpose?: boolean): Tuple.IBuilder<T>;
1179
1435
  /**
@@ -1186,14 +1442,14 @@ export declare class Sheet implements ISheet {
1186
1442
  * @internal
1187
1443
  */
1188
1444
  protected _defaultRowHeight(): number;
1189
- /** {@inheritDoc ISheet.getProtection} */
1190
- getProtection(): ISheetProtection;
1445
+ /** {@inheritDoc IWorksheet.getProtection} */
1446
+ getProtection(): IWorksheetProtection;
1191
1447
  /** @internal */
1192
1448
  protected _scrollIntoView(coords: IRange.Coords, scrollIntoView?: boolean | ICellRange.ScrollIntoViewOptions): Promise<boolean>;
1193
1449
  /** @internal */
1194
1450
  protected _selectSheet(coords: IRange.Coords, scrollIntoView?: boolean | ICellRange.ScrollIntoViewOptions): Promise<boolean>;
1195
- /** {@inheritDoc ISheet.scrollTo} */
1196
- scrollTo(coords: Partial<IRange.Coords>, options?: ISheet.ScrollToOptions): Promise<boolean>;
1451
+ /** {@inheritDoc IWorksheet.scrollTo} */
1452
+ scrollTo(coords: Partial<IRange.Coords>, options?: IWorksheet.ScrollToOptions): Promise<boolean>;
1197
1453
  /** @internal */
1198
1454
  protected _resolveSelectOptions(selectOptions: boolean | ICellRange.SelectOptions, axis?: IRange.Axis): ICellRange.SelectOptions | null;
1199
1455
  /**
@@ -1233,7 +1489,7 @@ export declare class Sheet implements ISheet {
1233
1489
  *
1234
1490
  * @remarks
1235
1491
  * A sheet can be shown through more than one view, and a view instance is replaced on load and
1236
- * by {@link setView}, so the match is on {@link ISheetView.getId}.
1492
+ * by {@link setView}, so the match is on {@link IWorksheetView.getId}.
1237
1493
  *
1238
1494
  * @internal
1239
1495
  */
@@ -1258,7 +1514,23 @@ export declare class Sheet implements ISheet {
1258
1514
  *
1259
1515
  * @internal
1260
1516
  */
1261
- protected _recordChange(trans: ITransaction, category: EventCategory, ranges: readonly IRange.Coords[] | null | undefined): void;
1517
+ protected _recordChange(trans: ITransaction, category: EventCategory, ranges: readonly IRange.Coords[] | null | undefined, shifts?: readonly ShiftIntent[]): void;
1518
+ /** Whether a participant hears this sheet's change events, so its writes are made as they come. */
1519
+ protected _hasChangeParticipants(): boolean;
1520
+ /**
1521
+ * Announce a write as it is made, under the event its category belongs to.
1522
+ *
1523
+ * @remarks
1524
+ * Announced inside the operation, so a participant hears each write inline and what it writes
1525
+ * joins the operation, while an observer is told once the operation lands, every write of it
1526
+ * merged into one event (`SheetChangeEvent.merge`). An undo or a redo has no writes to announce
1527
+ * from, and announces what the commit recorded instead (`onAfterStateChange`).
1528
+ *
1529
+ * A load announces nothing ({@link IntentInitial}).
1530
+ *
1531
+ * @internal
1532
+ */
1533
+ protected _announceChange(trans: ITransaction, category: EventCategory, ranges: readonly IRange.Coords[], shifts?: readonly ShiftIntent[]): void;
1262
1534
  /**
1263
1535
  * Record the ranges a formula was entered over.
1264
1536
  *
@@ -1315,6 +1587,13 @@ export declare class Sheet implements ISheet {
1315
1587
  * @internal
1316
1588
  */
1317
1589
  protected _recordSkipProtectionCheck(trans: ITransaction): void;
1590
+ /**
1591
+ * Whether the open operation has ruled on this sheet's protection. See
1592
+ * {@link _recordSkipProtectionCheck}.
1593
+ *
1594
+ * @internal
1595
+ */
1596
+ protected _isProtectionRuled(): boolean;
1318
1597
  /**
1319
1598
  * Record that this commit is a load of the sheet: not a user's write, so the protection check
1320
1599
  * stands down, and not an edit, so nothing it wrote is announced. See {@link IntentInitial}.
@@ -1329,6 +1608,19 @@ export declare class Sheet implements ISheet {
1329
1608
  * @internal
1330
1609
  */
1331
1610
  protected _recordFreezePanes(trans: ITransaction, before: IRange.CellCoords, after: IRange.CellCoords): void;
1611
+ /**
1612
+ * Record an insert or delete of cells. See {@link ShiftsIntent}.
1613
+ *
1614
+ * @internal
1615
+ */
1616
+ protected _recordShift(trans: ITransaction, kind: IWorksheet.ShiftKind, axis: IRange.Axis, ranges: readonly IRange.Coords[]): void;
1617
+ /**
1618
+ * This sheet's inserts and deletes in a commit, as a change event reports them: for an undo,
1619
+ * the inverse of each, last first.
1620
+ *
1621
+ * @internal
1622
+ */
1623
+ protected _sheetShifts(intents: Readonly<Record<string, any>> | undefined, isUndo: boolean): readonly ShiftIntent[];
1332
1624
  /**
1333
1625
  * The movables of this sheet with the given ids, in that order. Ids no longer on the sheet are
1334
1626
  * skipped: an undo of the insert that created a movable lands on a state without it.
@@ -1379,40 +1671,64 @@ export declare class Sheet implements ISheet {
1379
1671
  * @internal
1380
1672
  */
1381
1673
  protected _normalizeSelection(isMergesChanged: boolean): void;
1674
+ /** The selection pulled inside the sheet's end, or itself when it already is. */
1675
+ protected _selectionWithinEntire(coords: IRangeSelection.Coords, entire?: IRange.Coords): IRangeSelection.Coords;
1382
1676
  /** @internal */
1383
1677
  protected _autoSelect(options?: boolean | ICellRange.SelectOptions, selectionOverride?: Partial<IRangeSelection.Coords> | null, axis?: IRange.Axis): Promise<IRange.Coords[]>;
1384
- /** {@inheritDoc ISheet.getSelection} */
1678
+ /** {@inheritDoc IWorksheet.getSelection} */
1385
1679
  getSelection(): IRangeSelection;
1386
- /** {@inheritDoc ISheet.getSelectedCell} */
1680
+ /** {@inheritDoc IWorksheet.getSelectedCell} */
1387
1681
  getSelectedCell(): ICell;
1388
- /** {@inheritDoc ISheet.getSelectedRange} */
1682
+ /** {@inheritDoc IWorksheet.getSelectedRange} */
1389
1683
  getSelectedRange(options?: ICellRange.GetRangeOptions): ICellRange;
1390
- /** {@inheritDoc ISheet.getSelectedRanges} */
1684
+ /** {@inheritDoc IWorksheet.getSelectedRanges} */
1391
1685
  getSelectedRanges(options?: ICellRange.GetRangeOptions): ICellRanges;
1392
- /** {@inheritDoc ISheet.getView} */
1393
- getView(): ISheetView;
1394
- /** {@inheritDoc ISheet.setView} */
1395
- setView(view: ISheetView): this;
1396
- /** {@inheritDoc ISheet.getTabColor} */
1686
+ /** {@inheritDoc IWorksheet.getView} */
1687
+ getView(): IWorksheetView;
1688
+ /** {@inheritDoc IWorksheet.setView} */
1689
+ setView(view: IWorksheetView): this;
1690
+ /** {@inheritDoc IWorksheet.getTabColor} */
1397
1691
  getTabColor(): IColor;
1398
- /** {@inheritDoc ISheet.setTabColor} */
1692
+ /** {@inheritDoc IWorksheet.setTabColor} */
1399
1693
  setTabColor(color: IColor | string | null): this;
1400
- /** {@inheritDoc ISheet.getCodeName} */
1694
+ /** {@inheritDoc IWorksheet.getCodeName} */
1401
1695
  getCodeName(): string | null;
1402
- /** {@inheritDoc ISheet.getOutline} */
1696
+ /** {@inheritDoc IWorksheet.getOutline} */
1403
1697
  getOutline(): IOutline;
1404
- /** {@inheritDoc ISheet.isConditionalFormatCalculationEnabled} */
1698
+ /** {@inheritDoc IWorksheet.getPageLayout} */
1699
+ getPageLayout(): IPageLayout;
1700
+ /** {@inheritDoc IWorksheet.getHorizontalPageBreaks} */
1701
+ getHorizontalPageBreaks(): IPageLayout.IPageBreak[];
1702
+ /** {@inheritDoc IWorksheet.getVerticalPageBreaks} */
1703
+ getVerticalPageBreaks(): IPageLayout.IPageBreak[];
1704
+ /** {@inheritDoc IWorksheet.addHorizontalPageBreak} */
1705
+ addHorizontalPageBreak(pageBreakRange: ICellRange.Address, options?: ITransaction.OperationOptions): IPageLayout.IPageBreak;
1706
+ /** {@inheritDoc IWorksheet.addVerticalPageBreak} */
1707
+ addVerticalPageBreak(pageBreakRange: ICellRange.Address, options?: ITransaction.OperationOptions): IPageLayout.IPageBreak;
1708
+ /** {@inheritDoc IWorksheet.removeAllHorizontalPageBreaks} */
1709
+ removeAllHorizontalPageBreaks(options?: ITransaction.OperationOptions): void;
1710
+ /** {@inheritDoc IWorksheet.removeAllVerticalPageBreaks} */
1711
+ removeAllVerticalPageBreaks(options?: ITransaction.OperationOptions): void;
1712
+ /** {@inheritDoc IWorksheet.isConditionalFormatCalculationEnabled} */
1405
1713
  isConditionalFormatCalculationEnabled(): boolean;
1714
+ /** {@inheritDoc IWorksheet.isTransitionFormulaEvaluation} */
1715
+ isTransitionFormulaEvaluation(): boolean;
1716
+ /** {@inheritDoc IWorksheet.isTransitionFormulaEntry} */
1717
+ isTransitionFormulaEntry(): boolean;
1718
+ /** {@inheritDoc IWorksheet.isExcludedFromPublishing} */
1719
+ isExcludedFromPublishing(): boolean;
1720
+ /** {@inheritDoc IWorksheet.getSyncScroll} */
1721
+ getSyncScroll(): IWorksheet.SyncScroll | null;
1406
1722
  /**
1407
1723
  * A sheet's scripts are workbook structure, like the workbook's own.
1408
1724
  * @internal
1409
1725
  */
1410
1726
  protected _isModulesReadOnly(): boolean;
1411
- /** {@inheritDoc ISheet.getModules} */
1727
+ /** {@inheritDoc IWorksheet.getModules} */
1412
1728
  getModules(): IModuleCollection;
1413
- /** {@inheritDoc ISheet.getRowHeaders} */
1729
+ /** {@inheritDoc IWorksheet.getRowHeaders} */
1414
1730
  getRowHeaders(): ISheetHeader;
1415
- /** {@inheritDoc ISheet.getColumnHeaders} */
1731
+ /** {@inheritDoc IWorksheet.getColumnHeaders} */
1416
1732
  getColumnHeaders(): ISheetHeader;
1417
1733
  /**
1418
1734
  * The sheet's grid, whatever the calculation hands back (DESIGN-CALC-SERVICE §5): opened from
@@ -1423,15 +1739,15 @@ export declare class Sheet implements ISheet {
1423
1739
  * the state as it is now.
1424
1740
  */
1425
1741
  protected _openCalcGrid(json: ICalcGrid.JSON | undefined): ICalcGrid;
1426
- /** {@inheritDoc ISheet.toJSON} */
1427
- toJSON(options?: ISheet.ToJSONOptions): Promise<ISheet.JSON>;
1428
- /** {@inheritDoc ISheet.getStyles} */
1742
+ /** {@inheritDoc IWorksheet.toJSON} */
1743
+ toJSON(options?: IWorksheet.ToJSONOptions): Promise<IWorksheet.JSON>;
1744
+ /** {@inheritDoc IWorksheet.getStyles} */
1429
1745
  getStyles(): IStyleCollection;
1430
- /** {@inheritDoc ISheet.getResources} */
1746
+ /** {@inheritDoc IWorksheet.getResources} */
1431
1747
  getResources(): IResourceCollection;
1432
- /** {@inheritDoc ISheet.getTransactions} */
1748
+ /** {@inheritDoc IWorksheet.getTransactions} */
1433
1749
  getTransactions(): ITransaction.IStore;
1434
- /** {@inheritDoc ISheet.getStrings} */
1750
+ /** {@inheritDoc IWorksheet.getStrings} */
1435
1751
  getStrings(): IStringCollection;
1436
1752
  /**
1437
1753
  * The sheet's movables: those placed on it, then the boxes of its notes.
@@ -1442,7 +1758,7 @@ export declare class Sheet implements ISheet {
1442
1758
  * Places a note's box among the sheet's movables. See {@link Comment.Boxes.add}.
1443
1759
  * @internal
1444
1760
  */
1445
- protected _addNoteBox(comment: Comment, anchor: IMovable.AnchorOffset | null, hidden: boolean): NoteMovable;
1761
+ protected _addNoteBox(comment: Comment, placement: Comment.BoxPlacement | null, hidden: boolean): NoteMovable;
1446
1762
  /**
1447
1763
  * A movable, or something in it, was placed anew as part of the open operation: every connector
1448
1764
  * glued to it follows in the same operation (`translated` when it only moved). A target whose
@@ -1461,6 +1777,8 @@ export declare class Sheet implements ISheet {
1461
1777
  * The cell geometry a note's box is placed with.
1462
1778
  * @internal
1463
1779
  */
1780
+ /** The merge a cell is in, from the merges themselves: a sheet still loading has no cells to ask. */
1781
+ protected _mergeAt(cell: IRange.CellCoords): IRange.Coords | null;
1464
1782
  protected _noteLayout(): NoteLayout;
1465
1783
  /** The farthest any movable of the index paints past its anchor, for each `drawn` version. */
1466
1784
  private _movableOverhangs;
@@ -1489,6 +1807,15 @@ export declare class Sheet implements ISheet {
1489
1807
  protected _updateSelectedMovables(update: (movable: IMovable) => void, description?: string): void;
1490
1808
  /** @internal */
1491
1809
  protected _addMovable(options?: IMovableCollection.AddOptions): Promise<IMovable>;
1810
+ /**
1811
+ * Everything an add waits for, before the insert opens its transaction.
1812
+ *
1813
+ * A kind registered with a loader is loaded first, so the movable is made with its real content,
1814
+ * a group's members included. A load that fails leaves the stand-in, as it does on a read. A
1815
+ * position the caller left open is settled here too ({@link _placeMovable}).
1816
+ * @internal
1817
+ */
1818
+ protected _prepareMovable(options?: IMovableCollection.AddOptions): Promise<InsertableCollection.InsertOptions>;
1492
1819
  /**
1493
1820
  * Where a new movable of a known size goes when the caller left its position open: the visible
1494
1821
  * window's center for `autoPlace: 'viewport'`, else the selection's top-left; then, on the axes the
@@ -1517,29 +1844,50 @@ export declare class Sheet implements ISheet {
1517
1844
  * @internal
1518
1845
  */
1519
1846
  protected _groupMovables(movables: readonly IMovable[], options?: IMovableCollection.GroupOptions): Promise<IMovable>;
1520
- /** @internal */
1521
- protected _addMovablePicture(picture: string | IResourceCollection.AddOptions | IResource, options?: IMovableCollection.AddOptions): Promise<IMovable>;
1522
- /** {@inheritDoc ISheet.setPicture} */
1847
+ /**
1848
+ * Everything an added picture waits for, before the insert opens its transaction: the image
1849
+ * decoded for its size, then what {@link _prepareMovable} waits for.
1850
+ * @internal
1851
+ */
1852
+ protected _preparePicture(picture: string | IResourceCollection.AddOptions | IResource, options?: IMovableCollection.AddOptions): Promise<InsertableCollection.InsertOptions>;
1853
+ /** {@inheritDoc IWorksheet.setPicture} */
1523
1854
  setPicture(picture: string | IResource | IResourceCollection.AddOptions | null, options?: ITransaction.OperationOptions): this;
1524
- /** {@inheritDoc ISheet.getPicture} */
1855
+ /** {@inheritDoc IWorksheet.getPicture} */
1525
1856
  getPicture(): IPicture | null;
1526
- /** {@inheritDoc ISheet.getPivotTables} */
1857
+ /** {@inheritDoc IWorksheet.getDataTables} */
1858
+ getDataTables(): IDataTableCollection;
1859
+ /**
1860
+ * An edit to cell data, here or on any sheet, can change what every data table in the workbook
1861
+ * would calculate, and nothing recalculates their results. Marks each to be recalculated by Excel
1862
+ * when it opens the file ({@link IDataTable.JSON.calculateAlways}).
1863
+ *
1864
+ * TODO - A stand-in until the engine evaluates `TABLE`. A data table is a calculation: each result
1865
+ * is the table's formula evaluated with that cell's row and column values put in the input cells.
1866
+ * The engine should own it like an array block, its dependencies being the formula's plus the
1867
+ * input cells and the row and column values, and recalculate it when one changes. Its results
1868
+ * are then never stale, `calculateAlways` stays as read, and this method and
1869
+ * `DataTable._markStale` go. Until then it marks every table on any data edit, because which
1870
+ * cells the formula depends on is only known to the engine.
1871
+ * @internal
1872
+ */
1873
+ protected _markDataTablesStale(): void;
1874
+ /** {@inheritDoc IWorksheet.getPivotTables} */
1527
1875
  getPivotTables(): IPivotTableCollection;
1528
- /** {@inheritDoc ISheet.getTables} */
1876
+ /** {@inheritDoc IWorksheet.getTables} */
1529
1877
  getTables(): ITableCollection;
1530
- /** {@inheritDoc ISheet.getDataValidations} */
1878
+ /** {@inheritDoc IWorksheet.getDataValidations} */
1531
1879
  getDataValidations(): IDataValidationCollection;
1532
- /** {@inheritDoc ISheet.getConditionalFormats} */
1880
+ /** {@inheritDoc IWorksheet.getConditionalFormats} */
1533
1881
  getConditionalFormats(): IConditionalFormatCollection;
1534
- /** {@inheritDoc ISheet.getProtectedRanges} */
1882
+ /** {@inheritDoc IWorksheet.getProtectedRanges} */
1535
1883
  getProtectedRanges(): IProtectedRangeCollection;
1536
- /** {@inheritDoc ISheet.getComments} */
1884
+ /** {@inheritDoc IWorksheet.getComments} */
1537
1885
  getComments(): ICommentCollection;
1538
- /** @deprecated Use {@link ISheet.getConditionalFormats} */
1886
+ /** @deprecated Use {@link IWorksheet.getConditionalFormats} */
1539
1887
  getConditionals(): IConditionalFormatCollection;
1540
- /** {@inheritDoc ISheet.getMovables} */
1888
+ /** {@inheritDoc IWorksheet.getMovables} */
1541
1889
  getMovables(): IMovableCollection;
1542
- /** {@inheritDoc ISheet.getCharts} */
1890
+ /** {@inheritDoc IWorksheet.getCharts} */
1543
1891
  getCharts(): IChartCollection;
1544
1892
  /** @internal */
1545
1893
  protected _validateOrRemoveOverlaps(rangeCoords: IRange.Coords, type: string, table?: ITable | null, removeIfContains?: boolean, absorbAutoTable?: boolean): void;
@@ -1579,7 +1927,7 @@ export declare class Sheet implements ISheet {
1579
1927
  * The sheet-protection allowances the add needs. Empty when no option allows it, so the add is
1580
1928
  * refused whenever the sheet is locked.
1581
1929
  */
1582
- allowance: ISheetProtection.PropertyKeys[];
1930
+ allowance: IWorksheetProtection.PropertyKeys[];
1583
1931
  isItem: (add: unknown) => add is T;
1584
1932
  description: string;
1585
1933
  /** Loads one ref into the map, handing the created model to `capture`. */
@@ -1618,15 +1966,15 @@ export declare class Sheet implements ISheet {
1618
1966
  * @internal
1619
1967
  */
1620
1968
  protected _addComment(address: ICellRange.Address, content: IComment.Content, options?: ICommentCollection.AddOptions): IComment;
1621
- /** {@inheritDoc ISheet.createCell} */
1969
+ /** {@inheritDoc IWorksheet.createCell} */
1622
1970
  createCell(update: ICell.Update, coords?: IRange.CellCoords | null, options?: ICell.CreateCellOptions): ICell;
1623
1971
  /** @internal */
1624
1972
  protected _getBoundsAtCoords(coords: IRange.Coords): Bounds;
1625
1973
  /** @internal */
1626
1974
  protected _getCoordsAtBounds(bounds: Bounds): IRange.Coords;
1627
- /** {@inheritDoc ISheet.getRangeAtBounds} */
1975
+ /** {@inheritDoc IWorksheet.getRangeAtBounds} */
1628
1976
  getRangeAtBounds(bounds: Bounds, options?: ICellRange.GetRangeOptions): ICellRange;
1629
- /** {@inheritDoc ISheet.getRangeAtBounds} */
1977
+ /** {@inheritDoc IWorksheet.getRangeAtBounds} */
1630
1978
  getRangeAt(rowStart: number, colStart: number, rowEnd?: number, colEnd?: number, options?: ICellRange.GetRangeOptions): ICellRange;
1631
1979
  /** @internal */
1632
1980
  protected _getVisible(coords: readonly IRange.Coords[], options?: ICellRange.GetVisibleOptions): readonly IRange.Coords[];
@@ -1645,15 +1993,15 @@ export declare class Sheet implements ISheet {
1645
1993
  protected _getRangedEntries<T, E = T>(spatial: ISpatialQuery, ranges: readonly IRange.Coords[], options?: GetTypedRangeOptions<T, E>, spatialSort?: boolean): T[];
1646
1994
  /** @internal */
1647
1995
  protected _processAnchorShift<T extends Anchored.Entry<any>>(options: ISpatialMap.ShiftDetails<T>): ISpatialMap.Entry<T> | null;
1648
- /** {@inheritDoc ISheet.delete} */
1996
+ /** {@inheritDoc IWorksheet.delete} */
1649
1997
  delete(): void;
1650
- /** {@inheritDoc ITransaction.ITransactional.doBatch} */
1651
- doBatch<R>(callback: (commit: ITransaction.ICommit) => Promise<R> | R, options?: string | ITransaction.OperationOptions): Promise<R> | R;
1652
- /** {@inheritDoc ISheet.isDeleted} */
1998
+ /** {@inheritDoc IWorksheet.doBatch} */
1999
+ doBatch<R>(callback: (commit: ITransaction.ICommit, sheet: this) => Promise<R> | R, options?: string | ITransaction.OperationOptions): Promise<R> | R;
2000
+ /** {@inheritDoc IWorksheet.isDeleted} */
1653
2001
  isDeleted(): boolean;
1654
- /** {@inheritDoc ISheet.isClosed} */
2002
+ /** {@inheritDoc IWorksheet.isClosed} */
1655
2003
  isClosed(): boolean;
1656
- /** {@inheritDoc ISheet.close} */
2004
+ /** {@inheritDoc IWorksheet.close} */
1657
2005
  close(): void;
1658
2006
  /** {@inheritDoc ITransaction.ITransactional.beginCommit} */
1659
2007
  beginCommit(options?: string | ITransaction.OperationOptions): ITransaction;
@@ -1740,12 +2088,18 @@ export declare class Sheet implements ISheet {
1740
2088
  *
1741
2089
  * @internal
1742
2090
  */
1743
- protected _invalidateRendering(): void;
2091
+ /**
2092
+ * Everything measured is stale: drop the caches, tell the views, and re-fit what grows with its
2093
+ * content (expand only, never a custom size). A language switch re-fits both axes; a font
2094
+ * arriving re-fits rows only, as the load autofit does, since Excel never widens a column for
2095
+ * a font.
2096
+ */
2097
+ protected _invalidateRendering(axes?: IRange.AxisSelection | null): void;
1744
2098
  /** @internal */
1745
- protected _initViewState(entireCoords: IRange.Coords, json: ISheetView.JSON): void;
2099
+ protected _initViewState(entireCoords: IRange.Coords, json: IWorksheetView.JSON): void;
1746
2100
  protected _initCellState(): void;
1747
2101
  /** @internal */
1748
- protected _createTables(tables: IAnchoredMap<ITable, ITable.JSON>, key: keyof State, refs: IRange.JSONReference<ITable.JSON>[], createModel: (options: AnchoredTable.ConstructorOptions) => ITable, addListeners?: (model: ITable) => IListener.Remove): IAnchoredMap<ITable, ITable.JSON>;
2102
+ protected _createTables(tables: IAnchoredMap<ITable, ITable.JSON>, key: keyof State, refs: IRange.JSONReference<ITable.JSON>[], createModel: (options: AnchoredTable.ConstructorOptions) => ITable): IAnchoredMap<ITable, ITable.JSON>;
1749
2103
  /** @internal */
1750
2104
  protected _createDataValidations(dataValidations: IAnchoredMap<IDataValidation, IDataValidation.JSON>, key: keyof State, refs: IRange.JSONReference<IDataValidation.JSON>[], createModel: (options: DataValidation.ConstructorOptions) => IDataValidation, addListeners?: (model: IDataValidation) => IListener.Remove): IAnchoredMap<IDataValidation, IDataValidation.JSON>;
1751
2105
  /** @internal */
@@ -1759,6 +2113,13 @@ export declare class Sheet implements ISheet {
1759
2113
  * @internal
1760
2114
  */
1761
2115
  protected _createPivotTables(pivotTables: IAnchoredMap<IPivotTable, IPivotTable.JSON>, key: keyof State, refs: IRange.JSONReference<IPivotTable.JSON>[], fromResourceId?: (resourceId: number) => IResource): IAnchoredMap<IPivotTable, IPivotTable.JSON>;
2116
+ /**
2117
+ * Loads the data tables into their anchored map, each anchored on its result cells, its input
2118
+ * cells held in the engine. The table rules on structural edits itself
2119
+ * (`DataTable._processContainerShift`).
2120
+ * @internal
2121
+ */
2122
+ protected _createDataTables(dataTables: IAnchoredMap<IDataTable, IDataTable.JSON>, key: keyof State, refs: IRange.JSONReference<IDataTable.JSON>[]): IAnchoredMap<IDataTable, IDataTable.JSON>;
1762
2123
  /** @internal */
1763
2124
  protected _createComments(comments: IAnchoredMap<IComment, IComment.JSON>, key: keyof State, refs: IRange.JSONReference<IComment.JSON>[], createModel: (options: Comment.ConstructorOptions) => IComment, addListeners?: (model: IComment) => IListener.Remove): IAnchoredMap<IComment, IComment.JSON>;
1764
2125
  /**
@@ -1769,44 +2130,48 @@ export declare class Sheet implements ISheet {
1769
2130
  /** @internal */
1770
2131
  protected _createMovableEntry(json: IMovable.JSON, zIndex: number, fromResourceId?: (resourceId: number) => IResource, index?: MovableIndex, contentGiven?: Movable.Content): ISpatialMap.Entry<MovableEntry>;
1771
2132
  /** @internal */
1772
- protected _fromJSON(json: ISheet.JSON | undefined, disableLoadAutoFit?: boolean): void;
2133
+ protected _fromJSON(json: IWorksheet.JSON | undefined, disableLoadAutoFit?: boolean): void;
1773
2134
  /** {@inheritDoc ITransaction.ITransactional.getId} */
1774
2135
  getId(): string;
1775
2136
  /** {@inheritDoc ITransaction.ITransactional.getVersionId} */
1776
2137
  getVersionId(): number;
1777
- /** {@inheritDoc ISheet.getName} */
2138
+ /** {@inheritDoc IWorksheet.getName} */
1778
2139
  getName(): string;
1779
- /** {@inheritDoc ISheet.setName} */
2140
+ /** {@inheritDoc IWorksheet.setName} */
1780
2141
  setName(name: string, options?: ITransaction.OperationOptions): this;
1781
- /** {@inheritDoc ISheet.getVisibility} */
2142
+ /** {@inheritDoc IWorksheet.getVisibility} */
1782
2143
  getVisibility(): ISheet.Visibility;
1783
- /** {@inheritDoc ISheet.setVisibility} */
2144
+ /** {@inheritDoc IWorksheet.setVisibility} */
1784
2145
  setVisibility(visibility?: ISheet.Visibility | boolean, options?: ITransaction.OperationOptions): this;
1785
- /** {@inheritDoc ISheet.select} */
2146
+ /** {@inheritDoc IWorksheet.select} */
1786
2147
  select(options: ITypes.SelectOptions): Promise<this>;
1787
- /** {@inheritDoc ISheet.duplicate} */
2148
+ /** {@inheritDoc IWorksheet.duplicate} */
1788
2149
  duplicate(): Promise<this>;
1789
- /** {@inheritDoc ISheet.getIndex} */
2150
+ /** {@inheritDoc IWorksheet.getIndex} */
1790
2151
  getIndex(): number;
1791
- /** {@inheritDoc ISheet.setIndex} */
2152
+ /** {@inheritDoc IWorksheet.setIndex} */
1792
2153
  setIndex(index: number, options?: ITransaction.OperationOptions): this;
1793
- /** {@inheritDoc ISheet.getNames} */
2154
+ /** {@inheritDoc IWorksheet.getNames} */
1794
2155
  getNames(): INamedCollection;
1795
- /** {@inheritDoc ISheet.getCalculation} */
1796
- /** {@inheritDoc ISheet.getCalculation} */
2156
+ /** {@inheritDoc IWorksheet.getCalculation} */
2157
+ /** {@inheritDoc IWorksheet.getCalculation} */
1797
2158
  getCalculation(): ICalculation;
1798
- /** {@inheritDoc ISheet.createFormula} */
2159
+ /** {@inheritDoc IWorksheet.createFormula} */
1799
2160
  createFormula(expression: string, coords?: Partial<IRange.CellCoords>, options?: ICalculation.CreateFormulaOptions): ICalculation.IFormula;
1800
- /** {@inheritDoc ISheet.evaluate} */
2161
+ /** {@inheritDoc IWorksheet.evaluate} */
1801
2162
  evaluate(expression: string, options?: number | ICalculation.EvaluateOptions & Partial<IRange.CellCoords> & ICalculation.CreateFormulaOptions): Promise<Scalar | IRange>;
1802
- /** {@inheritDoc ISheet.whenCalculationReady} */
2163
+ /** {@inheritDoc IWorksheet.whenCalculationReady} */
1803
2164
  whenCalculationReady(): Promise<ICalculation.Status>;
1804
- /** {@inheritDoc ISheet.getWorkbook} */
2165
+ /** {@inheritDoc IWorksheet.getWorkbook} */
1805
2166
  getWorkbook(): IWorkbook | null;
1806
2167
  get [Symbol.toStringTag](): string;
1807
2168
  toString(): string;
2169
+ /** {@inheritDoc IWorksheet.getKind} */
2170
+ getKind(): typeof ISheet.Kind.Worksheet;
1808
2171
  /** {@inheritDoc ISheet.isISheet} */
1809
2172
  get isISheet(): true;
2173
+ /** {@inheritDoc IWorksheet.isIWorksheet} */
2174
+ get isIWorksheet(): true;
1810
2175
  }
1811
2176
  /**
1812
2177
  * Builds an {@link ICellRange.Counts} from a plain feature record.
@@ -1839,7 +2204,6 @@ interface NotifierOptions {
1839
2204
  /** Spell the source with its sheet qualifier (a workbook range), as the listener registered it. */
1840
2205
  qualified?: boolean;
1841
2206
  from?: ICellRanges;
1842
- to?: ICellRange;
1843
2207
  timeStamp?: number;
1844
2208
  }
1845
2209
  interface TableColumnHeaders {
@@ -1870,6 +2234,8 @@ interface ListenerNodeEntry {
1870
2234
  qualified: boolean;
1871
2235
  /** Present when the node is a {@link WatchAnchor}: what the watch is told. */
1872
2236
  watch?: WatchAnchor.Handlers;
2237
+ /** The batch a participant was added through: it is told as each step of that batch is made. */
2238
+ batch?: BatchHandle | null;
1873
2239
  }
1874
2240
  /**
1875
2241
  * A run of formula cells with the references they inherit a number format from, relative to the
@@ -1881,4 +2247,4 @@ interface EnteredBlock {
1881
2247
  references: readonly IRange.FixableCoords[];
1882
2248
  }
1883
2249
  export {};
1884
- //# sourceMappingURL=Sheet.d.ts.map
2250
+ //# sourceMappingURL=Worksheet.d.ts.map