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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (565) hide show
  1. package/THIRD-PARTY-NOTICES.md +1 -1
  2. package/browser/esm/{DBIu6NUHIcxOOBQp.mjs → BEAY9XgKNx-bakXW.mjs} +2 -2
  3. package/browser/esm/BbSmt62FpFIpoVzu.mjs +392 -0
  4. package/browser/esm/BcHmrKHwMMOlzc9_.mjs +357 -0
  5. package/browser/esm/BgcZ-CoTbMfmyDJL.mjs +412 -0
  6. package/browser/esm/Bk7xxbdDpa7-sIwd.mjs +7 -0
  7. package/browser/esm/BqskM7wA8oPfFQue.mjs +20 -0
  8. package/browser/esm/Btg43M1Bf-ENDreu.mjs +540 -0
  9. package/browser/esm/BzLfNyc6OOShIErH.mjs +598 -0
  10. package/browser/esm/C9B0djuUarfNdoj0.mjs +466 -0
  11. package/browser/esm/{CHSahmMFYNB0Ajkf.mjs → CSx9ed1JOs7K5BXO.mjs} +2 -2
  12. package/browser/esm/CYyv6uGjo10ig5FP.mjs +142 -0
  13. package/browser/esm/CZ5oa92wZEAXebgk.mjs +622 -0
  14. package/browser/esm/CdLZWVcH8cncBUPJ.mjs +849 -0
  15. package/browser/esm/Cgd5BnM3hg9RyUel.mjs +171 -0
  16. package/browser/esm/CjsUGJEQSbGjnH6R.mjs +1001 -0
  17. package/browser/esm/ClB5ix51roQOpZEr.mjs +7402 -0
  18. package/browser/esm/{CKk58ZLcrllMzfou.mjs → Cqr3knDsBvoVZ6MN.mjs} +179 -202
  19. package/browser/esm/D4uVlrG0xEFctsSM.mjs +905 -0
  20. package/browser/esm/DOMHmhYzPcLVcpAW.mjs +7 -0
  21. package/browser/esm/DUvUK61b2_4pf4tG.mjs +484 -0
  22. package/browser/esm/De175LygU7ot4nQm.mjs +441 -0
  23. package/browser/esm/DhKkrCVASZ6Isvz6.mjs +527 -0
  24. package/browser/esm/Di58Ji1n--3Mgc_2.mjs +607 -0
  25. package/browser/esm/Dtoyt8q5RyGAlxCp.mjs +1141 -0
  26. package/browser/esm/Y79I7Sm8kjaYexhf.mjs +167 -0
  27. package/browser/esm/index.mjs +1472 -1023
  28. package/browser/esm/o8MFgcVXns987D6_.mjs +400 -0
  29. package/browser/esm/zqJOaweiXE9D8RY1.mjs +66681 -0
  30. package/licenses/dependencies.txt +209 -209
  31. package/node/esm/B6D7sSetrcOWLsKj.mjs +1135 -0
  32. package/node/esm/B9ljpEIZg6wOTzRE.mjs +142 -0
  33. package/node/esm/BH1v-E4Ro3bR7Znw.mjs +962 -0
  34. package/node/esm/BN9j8V9gCExMjVtJ.mjs +540 -0
  35. package/node/esm/{DUYP6faJJHCaW1Xf.mjs → Bh4dv6tMjXX3X4nI.mjs} +1 -1
  36. package/node/esm/Bqd62L8KFgdS0Vou.mjs +7 -0
  37. package/node/esm/Bsx9uijd4X_SKV3L.mjs +360 -0
  38. package/node/esm/BtuY37FumvLE7EBo.mjs +629 -0
  39. package/node/esm/C6ZXsNyLXI6zA63X.mjs +402 -0
  40. package/node/esm/CCouEwT37f08qO3V.mjs +7 -0
  41. package/node/esm/CD9wbvufChVYYkrI.mjs +451 -0
  42. package/node/esm/CImNvdz1iP-lUlro.mjs +610 -0
  43. package/node/esm/CT0CN82y0_Qgoryk.mjs +7568 -0
  44. package/node/esm/CUQi5ZtMO02nhG0W.mjs +596 -0
  45. package/node/esm/CUUoseJmFsCf82bb.mjs +28 -0
  46. package/node/esm/CnSQ7MTXAUAyBOoS.mjs +911 -0
  47. package/node/esm/D7MfcID2Wf6l6VpC.mjs +171 -0
  48. package/node/esm/DCplLG93GfTs1vNw.mjs +1860 -0
  49. package/node/esm/DHUADiCmxNQS1ARz.mjs +417 -0
  50. package/node/esm/DMD12JUh7HJw2-jl.mjs +638 -0
  51. package/node/esm/DdFgXl-Ux2cMBTs_.mjs +15 -0
  52. package/node/esm/DefYISWfdZJFx57m.mjs +255 -0
  53. package/node/esm/Ds0d8zXzmgOu3MGx.mjs +403 -0
  54. package/node/esm/MiU4rDOiocmJ-9Ry.mjs +1783 -0
  55. package/node/esm/index.mjs +49153 -36824
  56. package/package.json +15 -16
  57. package/resources/contents.json +64 -0
  58. package/resources/fonts/arial-bold-italic.metrics.json +139 -0
  59. package/resources/fonts/arial-bold.metrics.json +139 -0
  60. package/resources/fonts/arial-italic.metrics.json +139 -0
  61. package/resources/fonts/arial-regular.metrics.json +139 -0
  62. package/resources/fonts/calibri-bold-italic.metrics.json +137 -0
  63. package/resources/fonts/calibri-bold.metrics.json +137 -0
  64. package/resources/fonts/calibri-italic.metrics.json +137 -0
  65. package/resources/fonts/calibri-regular.metrics.json +137 -0
  66. package/resources/fonts/cambria-bold-italic.metrics.json +66 -0
  67. package/resources/fonts/cambria-bold.metrics.json +66 -0
  68. package/resources/fonts/cambria-italic.metrics.json +66 -0
  69. package/resources/fonts/cambria-regular.metrics.json +66 -0
  70. package/resources/fonts/contents.json +126 -0
  71. package/resources/fonts/courier-new-bold-italic.metrics.json +143 -0
  72. package/resources/fonts/courier-new-bold.metrics.json +143 -0
  73. package/resources/fonts/courier-new-italic.metrics.json +143 -0
  74. package/resources/fonts/courier-new-regular.metrics.json +143 -0
  75. package/resources/fonts/times-new-roman-bold-italic.metrics.json +141 -0
  76. package/resources/fonts/times-new-roman-bold.metrics.json +141 -0
  77. package/resources/fonts/times-new-roman-italic.metrics.json +143 -0
  78. package/resources/fonts/times-new-roman-regular.metrics.json +141 -0
  79. package/resources/locales/de/model.msg.json +112 -12
  80. package/resources/locales/en/model.msg.json +119 -13
  81. package/types/scripting-api.json +8048 -0
  82. package/types/scripting-enums.json +277 -106
  83. package/types/scripting.d.ts +18126 -7971
  84. package/types/src/anchored/AbstractAnchored.d.ts +18 -8
  85. package/types/src/anchored/AnchoredMap.d.ts +2 -0
  86. package/types/src/anchored/IAnchoredMap.d.ts +52 -4
  87. package/types/src/autoFill/AutoFill.d.ts +316 -32
  88. package/types/src/autoFill/IAutoFill.d.ts +232 -15
  89. package/types/src/border/{IBorder.d.ts → IBorders.d.ts} +42 -41
  90. package/types/src/border/index.d.ts +1 -1
  91. package/types/src/calculation/Calculation.d.ts +759 -49
  92. package/types/src/calculation/ExternalBookBindings.d.ts +118 -0
  93. package/types/src/calculation/FormulaText.d.ts +82 -0
  94. package/types/src/calculation/ICalculation.d.ts +318 -81
  95. package/types/src/calculation/INamedFormulasCollection.d.ts +5 -8
  96. package/types/src/calculation/NamedFormulaCollection.d.ts +139 -107
  97. package/types/src/calculation/NamedLambdaFunction.d.ts +28 -0
  98. package/types/src/calculation/TokenType.d.ts +9 -0
  99. package/types/src/calculation/Types.d.ts +83 -2
  100. package/types/src/calculation/_CloneBoundary.d.ts +80 -0
  101. package/types/src/calculation/_TableRename.d.ts +13 -0
  102. package/types/src/calculation/compiler/ASTTypes.d.ts +71 -0
  103. package/types/src/calculation/compiler/CompilerUtils.d.ts +135 -44
  104. package/types/src/calculation/compiler/FormulaCompiler.d.ts +29 -4
  105. package/types/src/calculation/compiler/FormulaParser.d.ts +1 -2
  106. package/types/src/calculation/compiler/LiteTransform.d.ts +17 -0
  107. package/types/src/calculation/compiler/ParserUtils.d.ts +26 -1
  108. package/types/src/calculation/compiler/SRParser.d.ts +2 -1
  109. package/types/src/calculation/compiler/Types.d.ts +79 -9
  110. package/types/src/calculation/executor/CalcExecutor.d.ts +422 -34
  111. package/types/src/calculation/executor/CalcExecutorUtils.d.ts +43 -2
  112. package/types/src/calculation/executor/CircularReference.d.ts +2 -0
  113. package/types/src/calculation/formula/Formula.d.ts +58 -21
  114. package/types/src/calculation/formula/FormulaBlock.d.ts +125 -23
  115. package/types/src/calculation/formula/FormulaRecordView.d.ts +79 -0
  116. package/types/src/calculation/formula/FunctionValues.d.ts +10 -0
  117. package/types/src/calculation/formula/IFormulaBlock.d.ts +261 -67
  118. package/types/src/calculation/formula/LambdaValue.d.ts +46 -23
  119. package/types/src/calculation/formula/LazyValue.d.ts +96 -0
  120. package/types/src/calculation/formula/TokenUtils.d.ts +25 -1
  121. package/types/src/calculation/formula/index.d.ts +1 -0
  122. package/types/src/calculation/functions/FunctionDeclarations.d.ts +31 -0
  123. package/types/src/calculation/functions/Operators.d.ts +8 -0
  124. package/types/src/calculation/functions/initializeFunctions.d.ts +15 -2
  125. package/types/src/calculation/grid/CalcGrid.d.ts +407 -158
  126. package/types/src/calculation/grid/CalcGridBackend.d.ts +493 -0
  127. package/types/src/calculation/grid/CalcGridProxy.d.ts +133 -0
  128. package/types/src/calculation/grid/CalcGridUtils.d.ts +62 -12
  129. package/types/src/calculation/grid/FormulaEntry.d.ts +129 -0
  130. package/types/src/calculation/grid/FormulaHost.d.ts +239 -0
  131. package/types/src/calculation/grid/ICalcGrid.d.ts +499 -141
  132. package/types/src/calculation/grid/_CalcRequest.d.ts +289 -0
  133. package/types/src/calculation/grid/index.d.ts +4 -0
  134. package/types/src/calculation/index.d.ts +2 -0
  135. package/types/src/calculation/spatial/ContentfulSpatialValue.d.ts +6 -2
  136. package/types/src/calculation/spatial/FormulaSpatialValue.d.ts +339 -11
  137. package/types/src/calculation/spatial/SpillEntry.d.ts +20 -5
  138. package/types/src/calculation/spatial/TouchedWindows.d.ts +86 -0
  139. package/types/src/calculation/spatial/index.d.ts +1 -0
  140. package/types/src/calculation/state/CalcInputs.d.ts +41 -0
  141. package/types/src/calculation/state/CalcNode.d.ts +160 -29
  142. package/types/src/calculation/state/CalcScope.d.ts +37 -0
  143. package/types/src/calculation/state/CalcState.d.ts +22 -1
  144. package/types/src/calculation/state/CalculationContext.d.ts +53 -4
  145. package/types/src/calculation/state/IContextContainer.d.ts +159 -26
  146. package/types/src/calculation/state/_PendingOverlayGrid.d.ts +163 -0
  147. package/types/src/calculation/state/_ReadObservedGrid.d.ts +74 -8
  148. package/types/src/calculation/state/index.d.ts +1 -0
  149. package/types/src/calculation/symbol/ExternalSheetSymbols.d.ts +80 -0
  150. package/types/src/calculation/symbol/ISymbolRegistry.d.ts +23 -0
  151. package/types/src/calculation/symbol/IndirectSymbolProvider.d.ts +16 -2
  152. package/types/src/calculation/symbol/SheetSymbolProvider.d.ts +63 -3
  153. package/types/src/calculation/symbol/SymbolRegistry.d.ts +20 -0
  154. package/types/src/calculation/symbol/index.d.ts +3 -2
  155. package/types/src/cell/ICell.d.ts +104 -29
  156. package/types/src/cell/ICellHeader.d.ts +24 -2
  157. package/types/src/cell/ICellProtection.d.ts +50 -10
  158. package/types/src/cellRange/ICellRange.d.ts +458 -97
  159. package/types/src/cellRange/ICellRanges.d.ts +23 -21
  160. package/types/src/chart/Chart.d.ts +41 -13
  161. package/types/src/chart/ChartCollection.d.ts +26 -0
  162. package/types/src/chart/IChart.d.ts +166 -12
  163. package/types/src/chart/IChartCollection.d.ts +25 -0
  164. package/types/src/chart/_ChartXml.d.ts +70 -0
  165. package/types/src/chart/index.d.ts +1 -3
  166. package/types/src/collections/ArraysGrid.d.ts +1 -1
  167. package/types/src/collections/IGrid.d.ts +1 -1
  168. package/types/src/collections/ISparseGrid.d.ts +9 -0
  169. package/types/src/collections/ISpatialMap.d.ts +59 -21
  170. package/types/src/collections/ImmutableList.d.ts +28 -0
  171. package/types/src/collections/MixedTypedArrayList.d.ts +168 -108
  172. package/types/src/collections/OverlappingRangeIterator.d.ts +13 -17
  173. package/types/src/collections/RepeatingList.d.ts +7 -0
  174. package/types/src/collections/ScalarGrid.d.ts +50 -0
  175. package/types/src/collections/SparseGrid.d.ts +1 -1
  176. package/types/src/collections/SpatialMap.d.ts +13 -21
  177. package/types/src/collections/Tuple.d.ts +128 -16
  178. package/types/src/collections/_GridUtils.d.ts +19 -6
  179. package/types/src/collections/_RangeSweep.d.ts +97 -0
  180. package/types/src/collections/_SpatialUtils.d.ts +20 -2
  181. package/types/src/collections/index.d.ts +1 -0
  182. package/types/src/color/_BuiltInIndexDefs.d.ts +6 -0
  183. package/types/src/comment/Comment.d.ts +223 -0
  184. package/types/src/comment/CommentCollection.d.ts +40 -0
  185. package/types/src/comment/IComment.d.ts +340 -50
  186. package/types/src/comment/ICommentCollection.d.ts +90 -0
  187. package/types/src/comment/NoteMovable.d.ts +26 -0
  188. package/types/src/comment/_CommentUtils.d.ts +50 -0
  189. package/types/src/comment/_NoteBox.d.ts +50 -0
  190. package/types/src/comment/index.d.ts +1 -0
  191. package/types/src/condition/AnchoredConditional.d.ts +82 -17
  192. package/types/src/condition/BuiltInOperators/AbstractOperator.d.ts +42 -12
  193. package/types/src/condition/BuiltInOperators/AfterEqualToOperator.d.ts +2 -0
  194. package/types/src/condition/BuiltInOperators/AfterOperator.d.ts +2 -0
  195. package/types/src/condition/BuiltInOperators/AndOperator.d.ts +3 -1
  196. package/types/src/condition/BuiltInOperators/AverageOperator.d.ts +2 -0
  197. package/types/src/condition/BuiltInOperators/BeforeEqualToOperator.d.ts +2 -0
  198. package/types/src/condition/BuiltInOperators/BeforeOperator.d.ts +2 -0
  199. package/types/src/condition/BuiltInOperators/BetweenOperator.d.ts +2 -0
  200. package/types/src/condition/BuiltInOperators/ColorOperator.d.ts +4 -0
  201. package/types/src/condition/BuiltInOperators/ContainsOperator.d.ts +2 -0
  202. package/types/src/condition/BuiltInOperators/EndsWithOperator.d.ts +2 -0
  203. package/types/src/condition/BuiltInOperators/EqualToOperator.d.ts +4 -1
  204. package/types/src/condition/BuiltInOperators/ExpressionOperator.d.ts +5 -6
  205. package/types/src/condition/BuiltInOperators/GreaterThanEqualToOperator.d.ts +2 -0
  206. package/types/src/condition/BuiltInOperators/GreaterThanOperator.d.ts +2 -0
  207. package/types/src/condition/BuiltInOperators/IconOperator.d.ts +4 -0
  208. package/types/src/condition/BuiltInOperators/InSetOperator.d.ts +22 -5
  209. package/types/src/condition/BuiltInOperators/LessThanEqualToOperator.d.ts +2 -0
  210. package/types/src/condition/BuiltInOperators/LessThanOperator.d.ts +2 -0
  211. package/types/src/condition/BuiltInOperators/NotOperator.d.ts +2 -0
  212. package/types/src/condition/BuiltInOperators/OrOperator.d.ts +3 -1
  213. package/types/src/condition/BuiltInOperators/StartsWithOperator.d.ts +2 -0
  214. package/types/src/condition/BuiltInOperators/TimePeriodOperator.d.ts +2 -0
  215. package/types/src/condition/BuiltInOperators/TopNOperator.d.ts +6 -0
  216. package/types/src/condition/BuiltinSelectors/BaseSelector.d.ts +21 -6
  217. package/types/src/condition/BuiltinSelectors/DateSelector.d.ts +4 -5
  218. package/types/src/condition/BuiltinSelectors/DisplaySelector.d.ts +20 -0
  219. package/types/src/condition/BuiltinSelectors/TextLengthSelector.d.ts +7 -5
  220. package/types/src/condition/BuiltinSelectors/TimeSelector.d.ts +3 -5
  221. package/types/src/condition/BuiltinSelectors/WholeSelector.d.ts +3 -5
  222. package/types/src/condition/BuiltinSelectors/index.d.ts +12 -6
  223. package/types/src/condition/Condition.d.ts +19 -1
  224. package/types/src/condition/ICondition.d.ts +293 -73
  225. package/types/src/condition/_ConditionFormula.d.ts +152 -0
  226. package/types/src/condition/_ConditionUtils.d.ts +167 -13
  227. package/types/src/conditionalFormat/ConditionalEntry.d.ts +3 -3
  228. package/types/src/conditionalFormat/ConditionalFormat.d.ts +25 -14
  229. package/types/src/conditionalFormat/ConditionalFormatCollection.d.ts +19 -8
  230. package/types/src/conditionalFormat/IConditionalFormat.d.ts +12 -10
  231. package/types/src/conditionalFormat/IConditionalFormatCollection.d.ts +2 -0
  232. package/types/src/dataValidation/DataValidation.d.ts +69 -3
  233. package/types/src/dataValidation/DataValidationCollection.d.ts +20 -9
  234. package/types/src/dataValidation/IDataValidation.d.ts +149 -30
  235. package/types/src/dataValidation/IDataValidationCollection.d.ts +10 -2
  236. package/types/src/date/DateUtils.d.ts +20 -0
  237. package/types/src/date/_DateUtils.d.ts +91 -7
  238. package/types/src/externalBook/ExternalBookCollection.d.ts +145 -12
  239. package/types/src/externalBook/ExternalBookName.d.ts +96 -0
  240. package/types/src/externalBook/IExternalBook.d.ts +170 -18
  241. package/types/src/externalBook/IExternalBookCollection.d.ts +79 -7
  242. package/types/src/externalBook/index.d.ts +1 -0
  243. package/types/src/{lib/file → file}/file.browser.d.ts +22 -8
  244. package/types/src/{lib/file → file}/file.node.d.ts +7 -2
  245. package/types/src/fill/IEffect.d.ts +5 -5
  246. package/types/src/fill/IFill.d.ts +123 -78
  247. package/types/src/fill/IStroke.d.ts +190 -64
  248. package/types/src/fill/RectAlignment.d.ts +20 -0
  249. package/types/src/fill/_Fills.d.ts +187 -0
  250. package/types/src/fill/_Stroke.d.ts +89 -0
  251. package/types/src/fill/index.d.ts +1 -0
  252. package/types/src/filter/IFilter.d.ts +188 -5
  253. package/types/src/font/AdvanceBuilder.d.ts +25 -0
  254. package/types/src/font/AdvanceTable.d.ts +114 -0
  255. package/types/src/font/FontCollection.d.ts +57 -0
  256. package/types/src/font/IFont.d.ts +17 -0
  257. package/types/src/font/IFontCollection.d.ts +120 -22
  258. package/types/src/font/TableFileAdvanceBuilder.d.ts +27 -0
  259. package/types/src/font/_BuiltinFontTables.d.ts +10 -0
  260. package/types/src/font/index.d.ts +4 -1
  261. package/types/src/group/Group.d.ts +136 -0
  262. package/types/src/group/GroupMovableCollection.d.ts +37 -0
  263. package/types/src/group/IGroup.d.ts +129 -0
  264. package/types/src/group/index.d.ts +2 -0
  265. package/types/src/history/IHistory.d.ts +3 -2
  266. package/types/src/hyperlink/IHyperlink.d.ts +13 -0
  267. package/types/src/hyperlink/_Hyperlink.d.ts +5 -1
  268. package/types/src/i18n/LanguagePack.d.ts +12 -4
  269. package/types/src/index.d.ts +5 -0
  270. package/types/src/io/AbstractBackingStore.d.ts +24 -1
  271. package/types/src/io/ArrayBackingStore.d.ts +1 -1
  272. package/types/src/io/EmbeddedPart.d.ts +20 -0
  273. package/types/src/io/IEmbeddedPart.d.ts +63 -0
  274. package/types/src/io/IWorkbookIO.d.ts +185 -18
  275. package/types/src/io/WorkbookIO.d.ts +9 -0
  276. package/types/src/io/WorkbookOrigin.d.ts +20 -11
  277. package/types/src/io/WorkbookOriginProvider.d.ts +46 -0
  278. package/types/src/io/_XmlFragment.d.ts +49 -0
  279. package/types/src/io/index.d.ts +1 -0
  280. package/types/src/license/LicenseDetails.d.ts +1 -0
  281. package/types/src/license/LicenseManager.d.ts +4 -1
  282. package/types/src/license/Types.d.ts +38 -0
  283. package/types/src/license/_Utils.d.ts +22 -0
  284. package/types/src/license/details.d.ts +24 -0
  285. package/types/src/license/license-key.d.ts +49 -2
  286. package/types/src/license/runtime.browser.d.ts +41 -0
  287. package/types/src/{lib/utils/utils.node.d.ts → license/runtime.node.d.ts} +9 -12
  288. package/types/src/listener/IListener.d.ts +12 -7
  289. package/types/src/listener/ListenerEmitter.d.ts +46 -5
  290. package/types/src/model/AbstractModel.d.ts +14 -5
  291. package/types/src/movable/AbstractMovableContent.d.ts +182 -0
  292. package/types/src/movable/CustomElement.d.ts +4 -5
  293. package/types/src/movable/ErrorContent.d.ts +49 -0
  294. package/types/src/movable/FormControl.d.ts +285 -0
  295. package/types/src/movable/GroupMember.d.ts +87 -0
  296. package/types/src/movable/ICustomElement.d.ts +7 -2
  297. package/types/src/movable/IErrorContent.d.ts +23 -0
  298. package/types/src/movable/IFormControl.d.ts +455 -0
  299. package/types/src/movable/IMovable.d.ts +378 -46
  300. package/types/src/movable/IMovableCollection.d.ts +63 -3
  301. package/types/src/movable/Movable.d.ts +149 -49
  302. package/types/src/movable/MovableCollection.d.ts +15 -8
  303. package/types/src/movable/MovableContentRegistry.d.ts +113 -0
  304. package/types/src/movable/_BuiltInContents.d.ts +14 -0
  305. package/types/src/movable/_ContentFactory.d.ts +35 -0
  306. package/types/src/movable/_DrawnBounds.d.ts +37 -0
  307. package/types/src/movable/_InsertableCollection.d.ts +28 -0
  308. package/types/src/movable/_MovableUtils.d.ts +5 -0
  309. package/types/src/movable/_PendingContent.d.ts +25 -0
  310. package/types/src/movable/_PlacementUtils.d.ts +55 -0
  311. package/types/src/movable/_RotatedFrame.d.ts +20 -0
  312. package/types/src/movable/index.d.ts +7 -1
  313. package/types/src/named/AbstractNamed.d.ts +1 -1
  314. package/types/src/named/INamed.d.ts +4 -1
  315. package/types/src/named/INamedCollection.d.ts +26 -0
  316. package/types/src/named/NamedCollection.d.ts +16 -15
  317. package/types/src/numFmt/BuiltInFormats.d.ts +20 -7
  318. package/types/src/numFmt/IFormatEngine.d.ts +2 -0
  319. package/types/src/numFmt/NumfmtFormatEngine.d.ts +2 -0
  320. package/types/src/numFmt/_FormatCell.d.ts +11 -2
  321. package/types/src/numFmt/_NumFmtUtils.d.ts +0 -1
  322. package/types/src/numFmt/vendor/numfmt/_sheetxl.d.ts +6 -0
  323. package/types/src/outline/IOutline.d.ts +186 -0
  324. package/types/src/outline/Outline.d.ts +157 -0
  325. package/types/src/outline/index.d.ts +2 -0
  326. package/types/src/person/IPerson.d.ts +99 -0
  327. package/types/src/person/IPersonCollection.d.ts +51 -0
  328. package/types/src/person/Person.d.ts +32 -0
  329. package/types/src/person/PersonCollection.d.ts +49 -0
  330. package/types/src/person/index.d.ts +4 -0
  331. package/types/src/picture/IPicture.d.ts +33 -3
  332. package/types/src/picture/Picture.d.ts +33 -13
  333. package/types/src/pivot/IPivotTable.d.ts +72 -0
  334. package/types/src/pivot/IPivotTableCollection.d.ts +25 -0
  335. package/types/src/pivot/PivotCache.d.ts +34 -0
  336. package/types/src/pivot/PivotTable.d.ts +61 -0
  337. package/types/src/pivot/PivotTableCollection.d.ts +25 -0
  338. package/types/src/pivot/_PivotXml.d.ts +24 -0
  339. package/types/src/pivot/index.d.ts +6 -0
  340. package/types/src/primitives/CompositeRangeStats.d.ts +2 -0
  341. package/types/src/primitives/Criteria.d.ts +1 -1
  342. package/types/src/primitives/Grouping.d.ts +65 -0
  343. package/types/src/primitives/LambdaBrand.d.ts +26 -0
  344. package/types/src/primitives/PrimitiveUtils.d.ts +60 -21
  345. package/types/src/primitives/Range.d.ts +136 -26
  346. package/types/src/primitives/RangeStats.d.ts +30 -2
  347. package/types/src/primitives/ReferenceRange.d.ts +44 -0
  348. package/types/src/primitives/Runtime.d.ts +15 -2
  349. package/types/src/primitives/environment.browser.d.ts +9 -0
  350. package/types/src/primitives/environment.node.d.ts +10 -0
  351. package/types/src/primitives/stats/AggregateStats.d.ts +49 -15
  352. package/types/src/primitives/stats/Cancellation.d.ts +13 -0
  353. package/types/src/primitives/stats/FrequencyStats.d.ts +10 -1
  354. package/types/src/primitives/stats/LookupIndex.d.ts +46 -0
  355. package/types/src/primitives/stats/Ranked.d.ts +1 -1
  356. package/types/src/primitives/stats/SortedNumbers.d.ts +4 -2
  357. package/types/src/primitives/stats/index.d.ts +1 -0
  358. package/types/src/print/IPrint.d.ts +0 -22
  359. package/types/src/protectedRange/IProtectedRange.d.ts +4 -0
  360. package/types/src/protectedRange/IProtectedRangeCollection.d.ts +2 -0
  361. package/types/src/protectedRange/ProtectedRange.d.ts +1 -4
  362. package/types/src/protectedRange/ProtectedRangeCollection.d.ts +19 -8
  363. package/types/src/protection/DefaultProtection.d.ts +12 -1
  364. package/types/src/protection/IProtection.d.ts +36 -2
  365. package/types/src/reference/ReferenceUtils.d.ts +80 -0
  366. package/types/src/reference/index.d.ts +2 -0
  367. package/types/src/resource/IResource.d.ts +21 -1
  368. package/types/src/resource/IResourceCollection.d.ts +9 -1
  369. package/types/src/resource/ResourceCollection.d.ts +6 -6
  370. package/types/src/scripting/FunctionArguments.d.ts +22 -0
  371. package/types/src/scripting/FunctionCollection.d.ts +49 -15
  372. package/types/src/scripting/IFunctionCollection.d.ts +62 -32
  373. package/types/src/scripting/IModule.d.ts +25 -0
  374. package/types/src/scripting/IModuleCollection.d.ts +17 -0
  375. package/types/src/scripting/IScript.d.ts +28 -26
  376. package/types/src/scripting/Module.d.ts +34 -6
  377. package/types/src/scripting/ModuleCollection.d.ts +17 -12
  378. package/types/src/scripting/Runtime.d.ts +15 -0
  379. package/types/src/scripting/Scripts.d.ts +3 -7
  380. package/types/src/scripting/TypedFunction.d.ts +200 -4
  381. package/types/src/scripting/_FunctionIndex.d.ts +8 -3
  382. package/types/src/scripting/_ModuleUtils.d.ts +11 -1
  383. package/types/src/scripting/_ScriptUtils.d.ts +3 -0
  384. package/types/src/scripting/declarations.browser.d.ts +10 -0
  385. package/types/src/scripting/declarations.d.ts +49 -0
  386. package/types/src/scripting/declarations.node.d.ts +9 -0
  387. package/types/src/scripting/index.d.ts +3 -0
  388. package/types/src/selection/IMovableSelection.d.ts +148 -0
  389. package/types/src/selection/IRangeSelection.d.ts +9 -4
  390. package/types/src/selection/MovableSelection.d.ts +48 -0
  391. package/types/src/selection/RangeSelection.d.ts +15 -0
  392. package/types/src/selection/index.d.ts +1 -0
  393. package/types/src/shape/GeometryPreset.d.ts +197 -0
  394. package/types/src/shape/IGeometry.d.ts +380 -0
  395. package/types/src/shape/IShape.d.ts +341 -194
  396. package/types/src/shape/IShapeStyle.d.ts +135 -0
  397. package/types/src/shape/Shape.d.ts +107 -21
  398. package/types/src/shape/ShapeStyleUtils.d.ts +54 -0
  399. package/types/src/shape/_ConnectorFrame.d.ts +32 -0
  400. package/types/src/shape/_ConnectorRoute.d.ts +33 -0
  401. package/types/src/shape/_Connectors.d.ts +108 -0
  402. package/types/src/shape/_Geometry.d.ts +14 -0
  403. package/types/src/shape/_GeometryLoader.d.ts +21 -0
  404. package/types/src/shape/_ShapeStyle.d.ts +70 -0
  405. package/types/src/shape/_builtIn/_BuiltInChunks.d.ts +10 -0
  406. package/types/src/shape/_builtIn/_BuiltInDef.d.ts +9 -0
  407. package/types/src/shape/_builtIn/arrows.d.ts +6 -0
  408. package/types/src/shape/_builtIn/basic.d.ts +6 -0
  409. package/types/src/shape/_builtIn/callouts.d.ts +6 -0
  410. package/types/src/shape/_builtIn/flowchart.d.ts +6 -0
  411. package/types/src/shape/_builtIn/lines.d.ts +6 -0
  412. package/types/src/shape/_builtIn/math.d.ts +6 -0
  413. package/types/src/shape/_builtIn/other.d.ts +6 -0
  414. package/types/src/shape/_builtIn/rectangles.d.ts +6 -0
  415. package/types/src/shape/_builtIn/starsBanners.d.ts +6 -0
  416. package/types/src/shape/geometry/_strokeEnds.d.ts +7 -0
  417. package/types/src/shape/geometry/format.d.ts +3 -0
  418. package/types/src/shape/geometry/geometry.d.ts +85 -0
  419. package/types/src/shape/geometry/guides.d.ts +54 -0
  420. package/types/src/shape/geometry/handles.d.ts +14 -0
  421. package/types/src/shape/geometry/index.d.ts +7 -0
  422. package/types/src/shape/geometry/lineEnds.d.ts +54 -0
  423. package/types/src/shape/geometry/paths.d.ts +35 -0
  424. package/types/src/shape/geometry/segments.d.ts +114 -0
  425. package/types/src/shape/index.d.ts +3 -0
  426. package/types/src/sheet/CellRegion.d.ts +6 -0
  427. package/types/src/sheet/ICellContainerOptions.d.ts +50 -0
  428. package/types/src/sheet/ISheet.d.ts +197 -50
  429. package/types/src/sheet/ISheetCollection.d.ts +2 -5
  430. package/types/src/sheet/NamedCellRange.d.ts +16 -7
  431. package/types/src/sheet/NamedRange.d.ts +8 -0
  432. package/types/src/sheet/Sheet.d.ts +923 -138
  433. package/types/src/sheet/SheetCell.d.ts +92 -32
  434. package/types/src/sheet/SheetCollection.d.ts +19 -8
  435. package/types/src/sheet/SheetRange.d.ts +92 -17
  436. package/types/src/sheet/SheetRanges.d.ts +22 -9
  437. package/types/src/sheet/_CellBuffer.d.ts +214 -0
  438. package/types/src/sheet/_HeldFormula.d.ts +69 -0
  439. package/types/src/sheet/_InvalidSheetRange.d.ts +7 -7
  440. package/types/src/sheet/_ListenerAnchor.d.ts +104 -0
  441. package/types/src/sheet/_RangeStateSweep.d.ts +16 -0
  442. package/types/src/sheet/_ScalarListFactory.d.ts +61 -0
  443. package/types/src/sheet/_SheetAutoFillUtils.d.ts +74 -0
  444. package/types/src/sheet/_SheetAutoFitUtils.d.ts +28 -0
  445. package/types/src/sheet/_SheetEvents.d.ts +43 -0
  446. package/types/src/sheet/_SheetFilterUtils.d.ts +49 -1
  447. package/types/src/sheet/_SheetIntents.d.ts +296 -0
  448. package/types/src/sheet/_SheetMutations.d.ts +182 -62
  449. package/types/src/sheet/_SheetStateReader.d.ts +19 -13
  450. package/types/src/sheet/_SheetStateTypes.d.ts +83 -78
  451. package/types/src/sheet/_SheetUtils.d.ts +39 -22
  452. package/types/src/sheet/_WatchAnchor.d.ts +93 -0
  453. package/types/src/sheet/spatial/HeldFormulaEntry.d.ts +36 -0
  454. package/types/src/sheet/spatial/index.d.ts +1 -0
  455. package/types/src/sheet/style/SheetCellStyle.d.ts +209 -304
  456. package/types/src/sheet/style/SheetDirectStyle.d.ts +30 -19
  457. package/types/src/sheet/style/SheetNamedStyle.d.ts +17 -17
  458. package/types/src/sheet/style/SheetTableStyle.d.ts +5 -5
  459. package/types/src/sheet/style/_Resolvers.d.ts +14 -8
  460. package/types/src/sheet/style/_StyleUtils.d.ts +38 -8
  461. package/types/src/sheetHeader/ISheetHeader.d.ts +94 -53
  462. package/types/src/sheetHeader/SheetCellHeader.d.ts +4 -0
  463. package/types/src/sheetHeader/SheetHeader.d.ts +42 -22
  464. package/types/src/sheetHeader/_HeaderMetrics.d.ts +37 -0
  465. package/types/src/sheetHeader/_HeaderUtils.d.ts +5 -3
  466. package/types/src/sheetProtection/ISheetProtection.d.ts +41 -7
  467. package/types/src/sheetProtection/SheetProtection.d.ts +12 -0
  468. package/types/src/sheetView/ISheetView.d.ts +69 -15
  469. package/types/src/sheetView/SheetView.d.ts +20 -11
  470. package/types/src/slicer/ISlicer.d.ts +304 -17
  471. package/types/src/slicer/ISlicerStyle.d.ts +109 -0
  472. package/types/src/slicer/Slicer.d.ts +128 -13
  473. package/types/src/slicer/SlicerStyle.d.ts +25 -0
  474. package/types/src/slicer/_BuiltInSlicerStyles.d.ts +13 -0
  475. package/types/src/slicer/_SlicerUtils.d.ts +30 -0
  476. package/types/src/slicer/index.d.ts +1 -0
  477. package/types/src/sort/ISort.d.ts +4 -2
  478. package/types/src/string/IStringCollection.d.ts +5 -0
  479. package/types/src/string/StringCollection.d.ts +6 -6
  480. package/types/src/style/{IStyle.d.ts → ICellStyle.d.ts} +72 -52
  481. package/types/src/style/INamedStyleCollection.d.ts +72 -0
  482. package/types/src/style/ISlicerStyleCollection.d.ts +77 -0
  483. package/types/src/style/IStyleCollection.d.ts +91 -60
  484. package/types/src/style/ITableStyleCollection.d.ts +89 -0
  485. package/types/src/style/NamedStyleCollection.d.ts +39 -0
  486. package/types/src/style/SlicerStyleCollection.d.ts +46 -0
  487. package/types/src/style/StyleCollection.d.ts +81 -26
  488. package/types/src/style/TableStyleCollection.d.ts +49 -0
  489. package/types/src/style/_BuiltInStyleDefs.d.ts +6 -6
  490. package/types/src/style/_BuiltInStyleNames.d.ts +2 -2
  491. package/types/src/style/index.d.ts +7 -1
  492. package/types/src/table/AnchoredTable.d.ts +701 -72
  493. package/types/src/table/AutoTable.d.ts +7 -5
  494. package/types/src/table/ITable.d.ts +261 -34
  495. package/types/src/table/ITableCollection.d.ts +12 -0
  496. package/types/src/table/ITableStyle.d.ts +37 -37
  497. package/types/src/table/TableCollection.d.ts +19 -8
  498. package/types/src/table/_FilterField.d.ts +19 -6
  499. package/types/src/table/_NamedTable.d.ts +17 -1
  500. package/types/src/table/_NamedTableSource.d.ts +1 -0
  501. package/types/src/table/_SortField.d.ts +2 -0
  502. package/types/src/table/_TableColumn.d.ts +13 -2
  503. package/types/src/table/_TableMessages.d.ts +1 -0
  504. package/types/src/table/_TableUtils.d.ts +40 -0
  505. package/types/src/text/Bullet.d.ts +4 -0
  506. package/types/src/text/IText.d.ts +182 -0
  507. package/types/src/text/ITextFrame.d.ts +110 -1
  508. package/types/src/text/TextBoxAlignment.d.ts +25 -16
  509. package/types/src/text/TextFrame.d.ts +4 -0
  510. package/types/src/text/TextLine.d.ts +4 -0
  511. package/types/src/text/TextParagraph.d.ts +4 -0
  512. package/types/src/text/TextRotation.d.ts +3 -3
  513. package/types/src/text/TextRun.d.ts +9 -0
  514. package/types/src/text/TextStacked.d.ts +83 -0
  515. package/types/src/text/index.d.ts +1 -0
  516. package/types/src/text/richtext/IRichText.d.ts +36 -0
  517. package/types/src/text/richtext/IStyledFont.d.ts +18 -18
  518. package/types/src/text/richtext/index.d.ts +1 -0
  519. package/types/src/theme/ITheme.d.ts +45 -4
  520. package/types/src/theme/IThemeCollection.d.ts +2 -0
  521. package/types/src/theme/ThemeCollection.d.ts +11 -7
  522. package/types/src/theme/_OfficeFormatScheme.d.ts +3 -0
  523. package/types/src/transaction/ITransaction.d.ts +258 -45
  524. package/types/src/transaction/Transaction.d.ts +101 -11
  525. package/types/src/transaction/TransactionUndoManager.d.ts +4 -1
  526. package/types/src/type/AbstractCollection.d.ts +101 -0
  527. package/types/src/type/ICollection.d.ts +117 -0
  528. package/types/src/type/ITypes.d.ts +9 -7
  529. package/types/src/type/index.d.ts +1 -0
  530. package/types/src/utils/_CSSUtils.d.ts +3 -3
  531. package/types/src/wasm/_sdkWasm.d.ts +7 -0
  532. package/types/src/wasm/index.d.ts +2 -0
  533. package/types/src/wasm/sdkWasm.d.ts +29 -0
  534. package/types/src/workbook/IWorkbook.d.ts +180 -40
  535. package/types/src/workbook/Workbook.d.ts +123 -10
  536. package/types/src/workbook/_WorkbookIntents.d.ts +36 -0
  537. package/types/src/workbookProtection/IWorkbookProtection.d.ts +7 -0
  538. package/types/src/workbookProtection/WorkbookProtection.d.ts +3 -0
  539. package/types/src/workbookView/IWorkbookView.d.ts +12 -0
  540. package/types/src/workbookView/WorkbookView.d.ts +5 -0
  541. package/browser/cjs/B7_pDFYCVzt-3hUs.cjs +0 -1
  542. package/browser/cjs/BF14ZEAnaqxXroSj.cjs +0 -1
  543. package/browser/cjs/BXtvdT1Z-MsB_o5F.cjs +0 -1
  544. package/browser/cjs/Bc4JjVVZfFo3R4He.cjs +0 -33
  545. package/browser/cjs/CD2RXdnfqSYNc6gX.cjs +0 -57
  546. package/browser/cjs/DcLpXGexEtOxi-dD.cjs +0 -1
  547. package/browser/cjs/Dv3x6zut1ZRUt3IF.cjs +0 -10
  548. package/browser/cjs/index.cjs +0 -3
  549. package/browser/esm/0Mj5WKM362q6CECb.mjs +0 -824
  550. package/browser/esm/CPTtL2f6_4iblmFM.mjs +0 -4436
  551. package/browser/esm/CoA-sUxjiIUIpTUF.mjs +0 -109
  552. package/browser/esm/Dy4Sdpju1T2icURu.mjs +0 -50854
  553. package/node/esm/BtGxbEbBm79YvF_k.mjs +0 -843
  554. package/node/esm/DqgWsVXROpSgKq6c.mjs +0 -114
  555. package/types/src/cellRange/_GraphNode.d.ts +0 -38
  556. package/types/src/condition/BuiltinSelectors/ListSelector.d.ts +0 -12
  557. package/types/src/dataValidation/_Utils.d.ts +0 -10
  558. package/types/src/lib/utils/_Utils.d.ts +0 -20
  559. package/types/src/lib/utils/utils.browser.d.ts +0 -33
  560. package/types/src/movable/IGroup.d.ts +0 -30
  561. package/types/src/movable/IMovableSelection.d.ts +0 -49
  562. package/types/src/sheet/listener/RangesListener.d.ts +0 -32
  563. package/types/src/sheet/listener/RangesListenerEntry.d.ts +0 -19
  564. package/types/src/sheet/listener/index.d.ts +0 -3
  565. /package/types/src/{lib/utils → license}/banner.d.ts +0 -0
@@ -1,25 +1,46 @@
1
1
  import { LicenseDetails } from './LicenseDetails';
2
+ /**
3
+ * Where a license runs. `browser` is any page (checked against its origin); `server` is any
4
+ * JavaScript runtime outside a browser - Node, Bun, Deno, the CLI, a CI runner (checked against the
5
+ * machine).
6
+ */
7
+ export type LicenseRuntime = 'browser' | 'server';
8
+ export declare const LICENSE_RUNTIMES: readonly LicenseRuntime[];
2
9
  export interface Decoded {
3
10
  licensee?: string | null;
4
11
  type?: string;
5
12
  expiry?: number;
6
13
  developerCount?: number;
14
+ /** The runtimes the key covers; `undefined` for a key issued before runtimes were explicit. */
15
+ runtimes?: LicenseRuntime[];
7
16
  domains?: string[];
8
17
  fingerprint?: string | null;
9
18
  cpuCount?: number;
10
19
  memory?: number | null;
11
20
  features?: Record<string, any>[];
12
21
  }
22
+ /**
23
+ * The runtimes a decoded key covers. A key issued before runtimes were explicit covers `browser`
24
+ * when it has origins, and `server` unless its cpu and memory are both 0 (the old browser-only
25
+ * marker).
26
+ */
27
+ export declare function getRuntimes(decoded: Decoded): LicenseRuntime[];
13
28
  export interface LicenseAndKey {
14
29
  details: LicenseDetails;
15
30
  key: string;
16
31
  }
17
32
  export interface LicenseKeyDetails {
18
33
  licensee: string;
19
- type?: string;
34
+ type?: string | null;
20
35
  expiration?: string | null;
21
36
  developerCount?: number;
22
- domains?: string | string[];
37
+ /**
38
+ * The runtimes the key covers. Defaults to what the other terms imply: `browser` when there are
39
+ * origins, `server` when there is a fingerprint, cpu count or memory.
40
+ */
41
+ runtimes?: LicenseRuntime[] | null;
42
+ /** Licensed origins, `<protocol>://<host>` each (see `Origin`); a string is comma-separated. */
43
+ domains?: string | string[] | null;
23
44
  fingerprint?: string | null;
24
45
  cpuCount?: number | null;
25
46
  memory?: number | null;
@@ -29,5 +50,31 @@ export declare function rot(text: string, key: number, n?: number): string;
29
50
  export declare function deobs(str: string): Decoded;
30
51
  export declare function encodeLicenseKey(keyDetails: LicenseKeyDetails): LicenseAndKey;
31
52
  export declare function validateDomain(domain: string, allowDomain?: boolean): boolean;
53
+ /**
54
+ * A licensed origin, `<protocol>://<host>`.
55
+ *
56
+ * The protocol is the scheme the page is served over — `https` on the web, `vscode-webview` in VS Code
57
+ * desktop, an app's own registered scheme in Electron — and is mandatory: a browser license names
58
+ * the runtime it was sold for, not just a hostname. The host is a domain (matched exactly or as a
59
+ * suffix — `acme.com` covers `app.acme.com`), `*` for any host (runtimes whose host is random, like
60
+ * VS Code's `v--<hash>`), or empty for schemes that carry no host (`file://`).
61
+ */
62
+ export interface Origin {
63
+ protocol: string;
64
+ host: string;
65
+ }
66
+ /** Splits `<protocol>://<host>`; `null` when the entry has no protocol or a malformed one. */
67
+ export declare function parseOrigin(entry: string): Origin | null;
68
+ /**
69
+ * `true` when `entry` is a well-formed origin. Web hosts (`http`/`https`) must be a subdomain, or an
70
+ * apex when the license carries the `domain` feature (`allowDomain`) — the same rule `validateDomain`
71
+ * applies; any other scheme accepts a DNS-shaped host, `*`, or none.
72
+ */
73
+ export declare function validateOrigin(entry: string, allowDomain?: boolean): boolean;
74
+ /**
75
+ * `true` when the running page — `protocol` without its colon and `hostname`, as `location` reports
76
+ * them — is covered by `entry`. An entry with no protocol covers nothing.
77
+ */
78
+ export declare function originMatches(entry: string, protocol: string, hostname: string): boolean;
32
79
  export declare function validateFingerprint(fingerprint: string | null): boolean;
33
80
  //# sourceMappingURL=license-key.d.ts.map
@@ -0,0 +1,41 @@
1
+ import { HostDetails, LicenseKeySource } from './Types';
2
+ import { LicenseDetails } from './LicenseDetails';
3
+ /**
4
+ * What the license check sees of the page: the scheme it is served over (no colon) and its hostname.
5
+ * `domain` is `null` for the one dev case — loopback over http(s). The scheme is part of that test on
6
+ * purpose: `tauri://localhost` / `capacitor://localhost` are shipped apps that happen to use a loopback
7
+ * host, and are checked like production. Outside a window (a worker, node under test) both are `null`.
8
+ */
9
+ export declare function getHostDetails(): Promise<HostDetails>;
10
+ /**
11
+ * Only the loopback host over http(s) is a dev environment. A dev *build* served on any other host
12
+ * (a LAN IP, a tunnel) — or under any other scheme — is checked exactly like production: license
13
+ * origins apply and an evaluation shows the watermark.
14
+ */
15
+ export declare function isDevEnv(): Promise<boolean>;
16
+ /**
17
+ * The key in the nearest `sheetxl.lic` served at or above the page. When the server cannot be
18
+ * reached, the key last read from any of those locations; with none cached, `unreachable`.
19
+ */
20
+ export declare function readLicenseKey(): Promise<LicenseKeySource>;
21
+ /**
22
+ * An evaluation: unrestricted on localhost, and with the evaluation watermark anywhere else.
23
+ */
24
+ export declare function getEvalLicense(keyFrom: string): Promise<LicenseDetails>;
25
+ /**
26
+ * The license for this page when the host set no key: the key file's, an evaluation when there is
27
+ * none, or `unavailable` when it could not be loaded.
28
+ */
29
+ export declare function getLicense(): Promise<LicenseDetails>;
30
+ export declare function setKey(key: string, force?: boolean): Promise<void>;
31
+ export declare function getKey(): Promise<string>;
32
+ export declare function printBanner(isUser: boolean): Promise<void>;
33
+ /**
34
+ * The browser always gets the full banner — there is no piped output to protect, and
35
+ * the console collapses repeats. (See the node variant for the throttled CLI behavior.)
36
+ */
37
+ export declare function claimFullLicensePrint(): Promise<boolean>;
38
+ /** The one-line form of the unlicensed notice; in the browser only the activation pointer. */
39
+ export declare function printLicenseNotice(): Promise<void>;
40
+ export declare function printDetails(details: LicenseDetails, isUser?: boolean, expanded?: boolean, ignoreExceptions?: boolean): Promise<void>;
41
+ //# sourceMappingURL=runtime.browser.d.ts.map
@@ -1,20 +1,17 @@
1
- import { HostDetails } from './_Utils';
2
- import { LicenseDetails } from '../../license';
1
+ import { HostDetails, LicenseKeySource } from './Types';
2
+ import { LicenseDetails } from './LicenseDetails';
3
3
  export declare function getHostDetails(): Promise<HostDetails>;
4
4
  export declare function isDevEnv(): Promise<boolean>;
5
+ export declare function readLicenseKey(): Promise<LicenseKeySource>;
5
6
  /**
6
- * The runtime location - the current working directory in node.
7
+ * An evaluation: runs with the unlicensed notice.
7
8
  */
8
- export declare function getLocation(): string;
9
+ export declare function getEvalLicense(keyFrom: string): Promise<LicenseDetails>;
9
10
  /**
10
- * The OS platform, used by the `INFO("system")` formula. `process.platform` is available
11
- * synchronously without importing `os`.
11
+ * The license for this process when the host set no key: the environment's or the stored key's,
12
+ * or an evaluation.
12
13
  */
13
- export declare function getOS(): string;
14
- export declare function findLicenseKey(): Promise<{
15
- key: string;
16
- from: string;
17
- } | null>;
14
+ export declare function getLicense(): Promise<LicenseDetails>;
18
15
  export declare function setKey(key: string, force?: boolean): Promise<void>;
19
16
  export declare function getKey(): Promise<string | undefined>;
20
17
  export declare function printBanner(isUser: boolean): Promise<void>;
@@ -39,4 +36,4 @@ export declare function claimFullLicensePrint(): Promise<boolean>;
39
36
  */
40
37
  export declare function printLicenseNotice(): Promise<void>;
41
38
  export declare function printDetails(details: LicenseDetails, isUser?: boolean, expanded?: boolean, ignoreExceptions?: boolean): Promise<void>;
42
- //# sourceMappingURL=utils.node.d.ts.map
39
+ //# sourceMappingURL=runtime.node.d.ts.map
@@ -25,19 +25,24 @@ export declare namespace IListener {
25
25
  */
26
26
  once?: boolean;
27
27
  /**
28
- * Determines if the listeners is part of the transaction.
28
+ * Whether the listener takes part in the operation that notifies it.
29
29
  *
30
- * @defaultValue If the listener is added during a transaction this will be true.
30
+ * @defaultValue `true` when the listener is added during an operation - a listener added as a
31
+ * consequence of one is part of it - and `false` otherwise.
31
32
  *
32
33
  * @remarks
33
- * There are subtle differences between a transactional listener and a non-transactional listener.
34
- *
35
34
  * A transactional listener:
36
- * * Will not be fire during undo/redo.
37
- * * Will be reverted to it's original add/remove state during an undo/redo.
35
+ * * is told inline, inside the operation, so anything it writes joins that same commit, and
36
+ * is told during an undo or a redo for the same reason;
37
+ * * hears nothing announced outside an operation;
38
+ * * is part of the document: the operation that added it removes it on undo and puts it back
39
+ * on redo.
38
40
  *
39
41
  * A non-transactional listener:
40
- * Will not be fire on any change.
42
+ * * is told once per operation, after it has landed, however many times the operation
43
+ * notified, and not at all if the operation is rolled back;
44
+ * * is told at once when there is no operation, and at once during an undo or a redo;
45
+ * * survives an undo, since it is not part of the document.
41
46
  */
42
47
  transactional?: boolean;
43
48
  }
@@ -3,16 +3,34 @@ import { IListener } from './IListener';
3
3
  export interface NotifyOptions<T = any> {
4
4
  params?: T | null;
5
5
  source?: any;
6
+ /**
7
+ * Collect what the listeners return. A notify that collects is a request, not an
8
+ * announcement, and is delivered at once wherever it is made.
9
+ */
6
10
  async?: boolean;
11
+ /**
12
+ * Deliver as if made inside (`true`) or outside (`false`) an operation, whatever the store
13
+ * says. `false` is for a signal that is not a change to the document (a dirty flag).
14
+ */
7
15
  transactional?: boolean;
8
16
  }
9
17
  /**
10
- * Manages Listeners
18
+ * Manages listeners.
11
19
  *
12
20
  * @remarks
13
- * A few rules to know:
21
+ * `transactional` ({@link IListener.Options}) says whether a listener takes part in the operation
22
+ * that notifies it. Unless the caller says, it is inferred from where the listener was added: one
23
+ * added as a consequence of an operation is part of it.
14
24
  *
15
- * * non-transactional listeners are fired after the commit end and are conflated.
25
+ * * A transactional listener is told inline, inside the operation, so what it writes joins that
26
+ * commit; it is told during a restore's dispatch for the same reason. It is versioned with the
27
+ * document - an undo removes the subscription, a redo restores it - and, being part of an
28
+ * operation, it hears nothing announced outside one.
29
+ * * A non-transactional listener is told ONCE, after the operation has landed, with everything
30
+ * the operation announced conflated by callback; a rollback drops it. Outside an operation, and
31
+ * during a restore, it is told at once - a restore has no commit to wait for.
32
+ * * A request (`async`) is delivered at once wherever it is made and returns what the listeners
33
+ * answered. A question is not an announcement, and deferring one would break every `await`.
16
34
  */
17
35
  export declare class ListenerEmitter<SOURCE, EVENTS> {
18
36
  protected _transactions: ITransaction.IStore;
@@ -22,10 +40,32 @@ export declare class ListenerEmitter<SOURCE, EVENTS> {
22
40
  protected _src: SOURCE;
23
41
  protected _listeners: EntrySet<SOURCE, EVENTS>;
24
42
  protected _pending: Pending<any, SOURCE>[] | null;
43
+ protected _landing: Pending<any, SOURCE>[] | null;
25
44
  constructor(src: SOURCE, transactions?: ITransaction.IStore);
45
+ /** DEBUG (temporary): names this emitter in the `__SXL_LOG_EVENTS` trace. Remove with it. */
46
+ protected _label(): string;
47
+ /**
48
+ * `true` while the store is mid-operation: a transaction is open, or a restore is being
49
+ * dispatched. What a listener added now is a consequence of, and what a notify made now belongs
50
+ * to.
51
+ */
52
+ protected _inOperation(): boolean;
26
53
  /** {@inheritDoc IListener.ISource.addListeners} */
27
54
  addListeners(listeners: IListener.Callbacks<SOURCE, EVENTS>, options?: IListener.Options): IListener.Remove;
55
+ /**
56
+ * Write the transactional listener set, copy-on-write, as a fold rather than a step.
57
+ *
58
+ * @remarks
59
+ * The set is document state, so a subscription made by an operation is removed by undoing it
60
+ * and put back by redoing it. A fold rather than a commit because a registration is not a step
61
+ * in the history: it adds no undo entry and announces nothing. Inside an open operation the
62
+ * flag is a no-op on the nested commit and the write simply joins that operation, which is
63
+ * where a listener added as a consequence of it belongs.
64
+ */
65
+ protected _updateEntries(mutate: (entries: EntrySet<SOURCE, EVENTS>) => void): void;
28
66
  protected _doNotify<T = unknown>(listeners: IListener.Callback<SOURCE>[], removes?: IListener.Remove[] | null, options?: NotifyOptions<T>, fired?: Set<IListener.Callback<SOURCE>>): Promise<any>;
67
+ /** The callbacks for `key` in a bucket, gathered first so a removal during delivery is safe. */
68
+ protected _collect(entries: EntrySet<SOURCE, EVENTS> | undefined, key: keyof EVENTS): Collected<SOURCE> | null;
29
69
  /**
30
70
  * Notify listeners.
31
71
  */
@@ -37,10 +77,11 @@ interface Entry<SOURCE, EVENTS> {
37
77
  listeners: IListener.Callbacks<SOURCE, EVENTS>;
38
78
  }
39
79
  type EntrySet<SOURCE = any, EVENTS = any> = Set<Entry<SOURCE, EVENTS>>;
40
- interface Pending<T, SOURCE> {
41
- commitId: string;
80
+ interface Collected<SOURCE> {
42
81
  listeners: IListener.Callback<SOURCE>[];
43
82
  removes: IListener.Remove[] | null;
83
+ }
84
+ interface Pending<T, SOURCE> extends Collected<SOURCE> {
44
85
  options?: NotifyOptions<T>;
45
86
  }
46
87
  export {};
@@ -5,7 +5,7 @@ import { ListenerEmitter } from '../listener/ListenerEmitter';
5
5
  /**
6
6
  * Abstract implement of `IModel`.
7
7
  */
8
- export declare abstract class AbstractModel<STATE extends AbstractModel.State = AbstractModel.State, JSON extends any = any, VIEW extends AbstractModel.CommitView = AbstractModel.CommitView, EVENTS extends IModel.Events = IModel.Events> implements IModel {
8
+ export declare abstract class AbstractModel<STATE extends AbstractModel.State = AbstractModel.State, JSON extends any = any, EVENTS extends IModel.Events = IModel.Events> implements IModel {
9
9
  protected _emitter: ListenerEmitter<AbstractModel, EVENTS>;
10
10
  protected _options: IModel.ConstructorOptions<JSON>;
11
11
  protected _transactions: ITransaction.IStore;
@@ -38,16 +38,27 @@ export declare abstract class AbstractModel<STATE extends AbstractModel.State =
38
38
  /** @internal */
39
39
  protected _getTransactions(): ITransaction.IStore;
40
40
  /** @internal */
41
+ /** Write the state as a step in the history. */
41
42
  protected _updateState(updateState?: Partial<STATE>, //(prevState: STATE) => STATE,
42
43
  options?: ITransaction.StoreOperationOptions, events?: (keyof EVENTS)[]): this;
44
+ /**
45
+ * Write the state as a fold into the commit it starts from, rather than as a step.
46
+ *
47
+ * @remarks
48
+ * For a write that is not an edit - this model's own initialization, or bookkeeping derived
49
+ * from a change that already has a commit. It adds no undo entry and is undone with the commit
50
+ * it lands in. See {@link ITransaction.amend}.
51
+ */
52
+ protected _amendState(updateState?: Partial<STATE>, options?: ITransaction.StoreOperationOptions, events?: (keyof EVENTS)[]): this;
53
+ private _writeState;
43
54
  /** @internal */
44
55
  protected _getEmitter<SOURCE, E extends EVENTS>(): ListenerEmitter<SOURCE, E>;
45
56
  /** @internal */
46
57
  protected _processInit(): void;
47
58
  /** @internal */
48
- protected _processAfterStateChange(_state: STATE, _view: VIEW, _commit: ITransaction.ICommit): void;
59
+ protected _processAfterStateChange(_state: STATE, _commit: ITransaction.ICommit): void;
49
60
  /** @internal */
50
- protected _processRestoreOrRevert(_state: STATE, _view: VIEW, _commit: ITransaction.ICommit): void;
61
+ protected _processRestoreOrRevert(_state: STATE, _commit: ITransaction.ICommit): void;
51
62
  delete(options?: ITransaction.OperationOptions): void;
52
63
  /** @internal */
53
64
  protected _delete(options?: ITransaction.OperationOptions): void;
@@ -84,7 +95,5 @@ export declare namespace AbstractModel {
84
95
  interface State extends ITransaction.StateRecord {
85
96
  isDeleted: boolean;
86
97
  }
87
- interface CommitView {
88
- }
89
98
  }
90
99
  //# sourceMappingURL=AbstractModel.d.ts.map
@@ -0,0 +1,182 @@
1
+ import { IRange } from '@sheetxl/primitives';
2
+ import { AbstractModel, IModel } from '../model';
3
+ import { ITransaction } from '../transaction';
4
+ import { IListener } from '../listener';
5
+ import { ICellRange, ICellRanges } from '../cellRange';
6
+ import { ICalculation } from '../calculation/ICalculation';
7
+ import { IStyleCollection } from '../style';
8
+ import { IMovable } from './IMovable';
9
+ /**
10
+ * What every content shares: its name, its description, the movable that places it, and the
11
+ * cells it names.
12
+ *
13
+ * @remarks
14
+ * A kind that names cells - a chart's series, a control's linked cell - hands each formula to
15
+ * {@link _addWatch} and keeps the handle. The base does the rest: {@link getReferences} is the
16
+ * union of what the engine holds for every watch, {@link IMovable.ContentEvents.onReferencesChange}
17
+ * is announced each time the engine rewrites one, a delete releases every watch inside its own
18
+ * commit, and an undone delete holds them again. A kind with nothing to name calls nothing.
19
+ */
20
+ export declare abstract class AbstractMovableContent<STATE extends AbstractMovableContent.State = AbstractMovableContent.State, JSON extends any = any, EVENTS extends IMovable.ContentEvents = IMovable.ContentEvents> extends AbstractModel<STATE, JSON, EVENTS> implements IMovable.IContent {
21
+ /** Numbers the default names: `Chart 3`. */
22
+ static instanceCounter: number;
23
+ private _getMovable;
24
+ private _addWatchOption;
25
+ private _getRangeOption;
26
+ private _watches;
27
+ /** The watches are out of the engine because the content is deleted; a restore holds them again. */
28
+ private _watchesReleased;
29
+ constructor(options: AbstractMovableContent.ConstructorOptions<JSON>);
30
+ /** {@inheritDoc IMovable.IContent.getTypeDescription} */
31
+ abstract getTypeDescription(): string;
32
+ /** {@inheritDoc IMovable.IContent.getName} */
33
+ getName(): string | null;
34
+ /** {@inheritDoc IMovable.IContent.setName} */
35
+ setName(name: string): this;
36
+ /** {@inheritDoc IMovable.IContent.getDescription} */
37
+ getDescription(): string | null;
38
+ /** {@inheritDoc IMovable.IContent.setDescription} */
39
+ setDescription(description: string | null): this;
40
+ /** {@inheritDoc IMovable.IContent.getMovable} */
41
+ getMovable(): IMovable | null;
42
+ /** {@inheritDoc IMovable.IContent.getReferences} */
43
+ getReferences(): ICellRanges | null;
44
+ /**
45
+ * Hands a formula the content names to the calculation engine, which keeps its references on
46
+ * the cells they name through inserts, deletes, cuts, sheet renames and undo.
47
+ *
48
+ * @param formula The expression, or a formula - the one a watch delivered before, when the
49
+ * content holds again what it had.
50
+ * @param callback Receives the engine's formula once it holds the body, and again after every
51
+ * change to its text; `event.formula.getExpression()` is the text as it reads now.
52
+ * @param options Where a relative endpoint is authored, and whether the body is evaluated.
53
+ *
54
+ * @returns Removes the watch. The handle is the watch's identity: a kind that maps a watch to a
55
+ * field of its JSON keeps its own handle-to-field map.
56
+ *
57
+ * @remarks
58
+ * Without the seam (content outside a workbook) nothing is held: the callback is never called,
59
+ * and {@link getReferences} resolves the expression as given.
60
+ * @internal
61
+ */
62
+ protected _addWatch(formula: ICalculation.IFormula | string, callback?: (event: AbstractMovableContent.WatchEvent) => void, options?: AbstractMovableContent.WatchOptions): IListener.Remove;
63
+ /** The range `address` names in the content's workbook, or `null` when it names none or there is no workbook. @internal */
64
+ protected _resolveRange(address: string): ICellRange | null;
65
+ private _hold;
66
+ /**
67
+ * `expression` as one plain reference, for a content the engine holds nothing for. A bare
68
+ * address is on the content's own sheet.
69
+ */
70
+ private _parseReference;
71
+ private _notifyReferencesChange;
72
+ /** Inside the delete's own commit, so an undo brings the references back with the content. */
73
+ private _releaseWatches;
74
+ /** From what each watch last read: the formula the engine delivered, else the text as given. */
75
+ private _holdWatches;
76
+ /** @internal */
77
+ protected _processDelete(): void;
78
+ /** @internal */
79
+ protected _processRestoreOrRevert(state: STATE, commit: ITransaction.ICommit): void;
80
+ /**
81
+ * The id the file gave this content (`cNvPr/@id`), which a connector's glued ends name it by;
82
+ * `undefined` for content that has none yet. Kept on the content's `data`; a kind that keeps it
83
+ * elsewhere overrides this and {@link _ensureSourceId} together.
84
+ * @internal
85
+ */
86
+ _getSourceId(): number | undefined;
87
+ /**
88
+ * The id the file writes this content with, taking one from `next` when it has none yet: what a
89
+ * connector's end names it by, written as part of the open operation.
90
+ * @internal
91
+ */
92
+ _ensureSourceId(next: () => number): number;
93
+ /** @internal */
94
+ protected _protectionCheck(description: string): void;
95
+ }
96
+ /**
97
+ * Interfaces for creating movable content.
98
+ *
99
+ * @see
100
+ * ### **Interface**
101
+ *
102
+ * {@link AbstractMovableContent}
103
+ */
104
+ export declare namespace AbstractMovableContent {
105
+ interface State extends AbstractModel.State {
106
+ name?: string | null;
107
+ description?: string | null;
108
+ }
109
+ /**
110
+ * What a watch delivers: see {@link ConstructorOptions.addWatch}.
111
+ */
112
+ interface WatchEvent {
113
+ /**
114
+ * The formula as the engine holds it. Its expression is the text as it reads now; its
115
+ * references are the cells it names now.
116
+ */
117
+ formula: ICalculation.IFormula;
118
+ /**
119
+ * The body's values, for a watch that evaluates ({@link WatchOptions.evaluate}).
120
+ */
121
+ values?: IRange;
122
+ }
123
+ /**
124
+ * Options for {@link ConstructorOptions.addWatch}.
125
+ */
126
+ interface WatchOptions {
127
+ /**
128
+ * Evaluate the body and deliver its values after every pass that changed them. Off, the
129
+ * watch is a hold: the body demands its first cell only, so holding a reference to a column
130
+ * costs one read a pass, not the column.
131
+ *
132
+ * @defaultValue `false`
133
+ */
134
+ evaluate?: boolean;
135
+ /**
136
+ * Where a relative endpoint of the formula is authored.
137
+ *
138
+ * @defaultValue The content's anchor top-left when the watch registers.
139
+ */
140
+ origin?: IRange.CellCoords;
141
+ }
142
+ /**
143
+ * Hands a formula the content names to the calculation engine; see
144
+ * {@link ConstructorOptions.addWatch}.
145
+ */
146
+ type AddWatch = (formula: ICalculation.IFormula | string, callback: (event: WatchEvent) => void, options?: WatchOptions) => IListener.Remove;
147
+ interface ConstructorOptions<J> extends IModel.ConstructorOptions<J> {
148
+ /**
149
+ * The name. Content that a movable places is given one when this is empty.
150
+ */
151
+ name?: string | null;
152
+ /**
153
+ * The alternative text.
154
+ */
155
+ description?: string | null;
156
+ /**
157
+ * Returns the movable that places the content. Not provided for content that has none.
158
+ */
159
+ getMovable?: () => IMovable | null;
160
+ /**
161
+ * Returns the styles the content's theme references resolve against. Not provided for
162
+ * content outside a workbook.
163
+ */
164
+ getStyles?: () => IStyleCollection | null;
165
+ /**
166
+ * Hands a formula the content names to the calculation engine, which keeps its references
167
+ * on the cells they name through inserts, deletes, cuts, sheet renames and undo, and calls
168
+ * back with the formula each time its text changes. The same contract as
169
+ * {@link ICellRanges.addWatch} without the range: a content has no location its formulas are
170
+ * evaluated over, only its anchor.
171
+ *
172
+ * Not provided for content outside a workbook; its references then read as set.
173
+ */
174
+ addWatch?: AddWatch;
175
+ /**
176
+ * Resolves an address against the workbook the content lives in. Not provided for content
177
+ * outside a workbook.
178
+ */
179
+ getRange?: (address: string) => ICellRange | null;
180
+ }
181
+ }
182
+ //# sourceMappingURL=AbstractMovableContent.d.ts.map
@@ -1,17 +1,16 @@
1
1
  import { IResource, IResourceCollection } from '../resource';
2
- import { IModel, AbstractModel } from '../model';
3
2
  import { ICustomElement } from './ICustomElement';
4
- interface State extends AbstractModel.State {
3
+ import { AbstractMovableContent } from './AbstractMovableContent';
4
+ interface State extends AbstractMovableContent.State {
5
5
  data?: any;
6
6
  type: string;
7
7
  }
8
8
  /**
9
9
  * Implementation for {@link ICustomElement}.
10
10
  */
11
- export declare class CustomElement extends AbstractModel<State, ICustomElement.JSON> implements ICustomElement {
11
+ export declare class CustomElement extends AbstractMovableContent<State, ICustomElement.JSON> implements ICustomElement {
12
12
  constructor(options: CustomElement.ConstructorOptions);
13
13
  getType(): string;
14
- getDescription(): string;
15
14
  toJSON(_toResourceId?: (resource: IResource) => number | null): ICustomElement.JSON | null;
16
15
  getTypeDescription(): string;
17
16
  }
@@ -27,7 +26,7 @@ export declare namespace CustomElement {
27
26
  /**
28
27
  * Options for creating a Custom Element.
29
28
  */
30
- interface ConstructorOptions extends IModel.ConstructorOptions<ICustomElement.JSON> {
29
+ interface ConstructorOptions extends AbstractMovableContent.ConstructorOptions<ICustomElement.JSON> {
31
30
  /**
32
31
  * Returns an IResource from the resourceId or null if not found.
33
32
  */
@@ -0,0 +1,49 @@
1
+ import { IErrorContent } from './IErrorContent';
2
+ import { CustomElement } from './CustomElement';
3
+ /**
4
+ * Implementation for {@link IErrorContent}: the content's JSON as it was read, kept for the save,
5
+ * and the reason the content could not be made.
6
+ */
7
+ export declare class ErrorContent extends CustomElement implements IErrorContent {
8
+ private readonly _error;
9
+ private readonly _originalType;
10
+ constructor(options: ErrorContent.ConstructorOptions);
11
+ /** {@inheritDoc IModel.getType} */
12
+ getType(): string;
13
+ /** {@inheritDoc IErrorContent.getError} */
14
+ getError(): unknown;
15
+ /** {@inheritDoc IErrorContent.getOriginalType} */
16
+ getOriginalType(): string;
17
+ /**
18
+ * The type the movable saves this content under: the original, so a save writes back what was
19
+ * read.
20
+ * @internal
21
+ */
22
+ _getSavedType(): string;
23
+ /** {@inheritDoc IModel.isReadOnly} */
24
+ isReadOnly(): boolean;
25
+ /** {@inheritDoc IMovable.IContent.getTypeDescription} */
26
+ getTypeDescription(): string;
27
+ /** {@inheritDoc IErrorContent.isIErrorContent} */
28
+ get isIErrorContent(): true;
29
+ }
30
+ /**
31
+ * Interfaces for creating `ErrorContent`.
32
+ *
33
+ * @see
34
+ * ### **Interface**
35
+ *
36
+ * {@link ErrorContent}
37
+ */
38
+ export declare namespace ErrorContent {
39
+ /**
40
+ * Options for creating an error content.
41
+ */
42
+ interface ConstructorOptions extends CustomElement.ConstructorOptions {
43
+ /** The type of the content that could not be made. */
44
+ type: string;
45
+ /** Why it could not be made. */
46
+ error: unknown;
47
+ }
48
+ }
49
+ //# sourceMappingURL=ErrorContent.d.ts.map