@univerjs/engine-formula 0.5.4 → 0.5.5-experimental.20250123-34738ff

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 (474) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +2 -2
  3. package/lib/es/facade.js +57 -50
  4. package/lib/es/index.js +25077 -23679
  5. package/lib/types/facade/f-formula.d.ts +4 -0
  6. package/lib/types/facade/f-univer.d.ts +3 -0
  7. package/lib/types/functions/text/t/index.d.ts +4 -1
  8. package/lib/umd/facade.js +1 -1
  9. package/lib/umd/index.js +2 -2
  10. package/package.json +5 -5
  11. package/LICENSE +0 -176
  12. package/lib/types/basics/__tests__/date.spec.d.ts +0 -16
  13. package/lib/types/basics/__tests__/engineering.spec.d.ts +0 -16
  14. package/lib/types/basics/__tests__/math.spec.d.ts +0 -16
  15. package/lib/types/basics/__tests__/regex.spec.d.ts +0 -16
  16. package/lib/types/engine/analysis/__tests__/create-command-test-bed.d.ts +0 -17
  17. package/lib/types/engine/analysis/__tests__/dependency.spec.d.ts +0 -16
  18. package/lib/types/engine/analysis/__tests__/lexer-tree-builder.spec.d.ts +0 -16
  19. package/lib/types/engine/analysis/__tests__/lexer.spec.d.ts +0 -16
  20. package/lib/types/engine/analysis/__tests__/parser.spec.d.ts +0 -16
  21. package/lib/types/engine/utils/__tests__/cell.spec.d.ts +0 -16
  22. package/lib/types/engine/utils/__tests__/compare.spec.d.ts +0 -16
  23. package/lib/types/engine/utils/__tests__/math-kit.spec.d.ts +0 -16
  24. package/lib/types/engine/utils/__tests__/numfmt-kit.spec.d.ts +0 -16
  25. package/lib/types/engine/utils/__tests__/object-compare.spec.d.ts +0 -16
  26. package/lib/types/engine/utils/__tests__/r1c1-reference.spec.d.ts +0 -16
  27. package/lib/types/engine/utils/__tests__/reference.spec.d.ts +0 -16
  28. package/lib/types/engine/utils/__tests__/value-object.spec.d.ts +0 -16
  29. package/lib/types/engine/value-object/__tests__/array-inverted-index-cache.spec.d.ts +0 -16
  30. package/lib/types/engine/value-object/__tests__/array-inverted-index-cache2.spec.d.ts +0 -16
  31. package/lib/types/engine/value-object/__tests__/array-value-abs.spec.d.ts +0 -16
  32. package/lib/types/engine/value-object/__tests__/array-value-acos.spec.d.ts +0 -16
  33. package/lib/types/engine/value-object/__tests__/array-value-acosh.spec.d.ts +0 -16
  34. package/lib/types/engine/value-object/__tests__/array-value-asin.spec.d.ts +0 -16
  35. package/lib/types/engine/value-object/__tests__/array-value-asinh.spec.d.ts +0 -16
  36. package/lib/types/engine/value-object/__tests__/array-value-atan.spec.d.ts +0 -16
  37. package/lib/types/engine/value-object/__tests__/array-value-atan2.spec.d.ts +0 -16
  38. package/lib/types/engine/value-object/__tests__/array-value-atanh.spec.d.ts +0 -16
  39. package/lib/types/engine/value-object/__tests__/array-value-cbrt.spec.d.ts +0 -16
  40. package/lib/types/engine/value-object/__tests__/array-value-ceil.spec.d.ts +0 -16
  41. package/lib/types/engine/value-object/__tests__/array-value-cos.spec.d.ts +0 -16
  42. package/lib/types/engine/value-object/__tests__/array-value-divided.spec.d.ts +0 -16
  43. package/lib/types/engine/value-object/__tests__/array-value-exp.spec.d.ts +0 -16
  44. package/lib/types/engine/value-object/__tests__/array-value-floor.spec.d.ts +0 -16
  45. package/lib/types/engine/value-object/__tests__/array-value-log.spec.d.ts +0 -16
  46. package/lib/types/engine/value-object/__tests__/array-value-log10.spec.d.ts +0 -16
  47. package/lib/types/engine/value-object/__tests__/array-value-minus.spec.d.ts +0 -16
  48. package/lib/types/engine/value-object/__tests__/array-value-multiply.spec.d.ts +0 -16
  49. package/lib/types/engine/value-object/__tests__/array-value-object.spec.d.ts +0 -16
  50. package/lib/types/engine/value-object/__tests__/array-value-plus.spec.d.ts +0 -16
  51. package/lib/types/engine/value-object/__tests__/array-value-pow.spec.d.ts +0 -16
  52. package/lib/types/engine/value-object/__tests__/array-value-round.spec.d.ts +0 -16
  53. package/lib/types/engine/value-object/__tests__/array-value-sin.spec.d.ts +0 -16
  54. package/lib/types/engine/value-object/__tests__/array-value-tan.spec.d.ts +0 -16
  55. package/lib/types/engine/value-object/__tests__/array-value-tanh.spec.d.ts +0 -16
  56. package/lib/types/functions/__tests__/create-function-test-bed.d.ts +0 -20
  57. package/lib/types/functions/__tests__/nested-functions.spec.d.ts +0 -16
  58. package/lib/types/functions/array/array-constrain/__tests__/index.spec.d.ts +0 -16
  59. package/lib/types/functions/array/flatten/__tests__/index.spec.d.ts +0 -16
  60. package/lib/types/functions/compatibility/betadist/__tests__/index.spec.d.ts +0 -16
  61. package/lib/types/functions/compatibility/hypgeomdist/__tests__/index.spec.d.ts +0 -16
  62. package/lib/types/functions/compatibility/lognormdist/__tests__/index.spec.d.ts +0 -16
  63. package/lib/types/functions/compatibility/negbinomdist/__tests__/index.spec.d.ts +0 -16
  64. package/lib/types/functions/compatibility/normsdist/__tests__/index.spec.d.ts +0 -16
  65. package/lib/types/functions/compatibility/rank/__tests__/index.spec.d.ts +0 -16
  66. package/lib/types/functions/compatibility/tdist/__tests__/index.spec.d.ts +0 -16
  67. package/lib/types/functions/database/daverage/__tests__/index.spec.d.ts +0 -16
  68. package/lib/types/functions/database/dcount/__tests__/index.spec.d.ts +0 -16
  69. package/lib/types/functions/database/dcounta/__tests__/index.spec.d.ts +0 -16
  70. package/lib/types/functions/database/dget/__tests__/index.spec.d.ts +0 -16
  71. package/lib/types/functions/database/dmax/__tests__/index.spec.d.ts +0 -16
  72. package/lib/types/functions/database/dmin/__tests__/index.spec.d.ts +0 -16
  73. package/lib/types/functions/database/dproduct/__tests__/index.spec.d.ts +0 -16
  74. package/lib/types/functions/database/dstdev/__tests__/index.spec.d.ts +0 -16
  75. package/lib/types/functions/database/dstdevp/__tests__/index.spec.d.ts +0 -16
  76. package/lib/types/functions/database/dsum/__tests__/index.spec.d.ts +0 -16
  77. package/lib/types/functions/database/dvar/__tests__/index.spec.d.ts +0 -16
  78. package/lib/types/functions/database/dvarp/__tests__/index.spec.d.ts +0 -16
  79. package/lib/types/functions/date/date/__tests__/index.spec.d.ts +0 -16
  80. package/lib/types/functions/date/datedif/__tests__/index.spec.d.ts +0 -16
  81. package/lib/types/functions/date/datevalue/__tests__/index.spec.d.ts +0 -16
  82. package/lib/types/functions/date/day/__tests__/index.spec.d.ts +0 -16
  83. package/lib/types/functions/date/days/__tests__/index.spec.d.ts +0 -16
  84. package/lib/types/functions/date/days360/__tests__/index.spec.d.ts +0 -16
  85. package/lib/types/functions/date/edate/__tests__/index.spec.d.ts +0 -16
  86. package/lib/types/functions/date/eomonth/__tests__/index.spec.d.ts +0 -16
  87. package/lib/types/functions/date/epochtodate/__tests__/index.spec.d.ts +0 -16
  88. package/lib/types/functions/date/hour/__tests__/index.spec.d.ts +0 -16
  89. package/lib/types/functions/date/isoweeknum/__tests__/index.spec.d.ts +0 -16
  90. package/lib/types/functions/date/minute/__tests__/index.spec.d.ts +0 -16
  91. package/lib/types/functions/date/month/__tests__/index.spec.d.ts +0 -16
  92. package/lib/types/functions/date/networkdays/__tests__/index.spec.d.ts +0 -16
  93. package/lib/types/functions/date/networkdays-intl/__tests__/index.spec.d.ts +0 -16
  94. package/lib/types/functions/date/now/__tests__/index.spec.d.ts +0 -16
  95. package/lib/types/functions/date/second/__tests__/index.spec.d.ts +0 -16
  96. package/lib/types/functions/date/time/__tests__/index.spec.d.ts +0 -16
  97. package/lib/types/functions/date/timevalue/__tests__/index.spec.d.ts +0 -16
  98. package/lib/types/functions/date/to-date/__tests__/index.spec.d.ts +0 -16
  99. package/lib/types/functions/date/today/__tests__/index.spec.d.ts +0 -16
  100. package/lib/types/functions/date/weekday/__tests__/index.spec.d.ts +0 -16
  101. package/lib/types/functions/date/weeknum/__tests__/index.spec.d.ts +0 -16
  102. package/lib/types/functions/date/workday/__tests__/index.spec.d.ts +0 -16
  103. package/lib/types/functions/date/workday-intl/__tests__/index.spec.d.ts +0 -16
  104. package/lib/types/functions/date/year/__tests__/index.spec.d.ts +0 -16
  105. package/lib/types/functions/date/yearfrac/__tests__/index.spec.d.ts +0 -16
  106. package/lib/types/functions/engineering/besseli/__tests__/index.spec.d.ts +0 -16
  107. package/lib/types/functions/engineering/besselj/__tests__/index.spec.d.ts +0 -16
  108. package/lib/types/functions/engineering/besselk/__tests__/index.spec.d.ts +0 -16
  109. package/lib/types/functions/engineering/bessely/__tests__/index.spec.d.ts +0 -16
  110. package/lib/types/functions/engineering/bin2dec/__tests__/index.spec.d.ts +0 -16
  111. package/lib/types/functions/engineering/bin2hex/__tests__/index.spec.d.ts +0 -16
  112. package/lib/types/functions/engineering/bin2oct/__tests__/index.spec.d.ts +0 -16
  113. package/lib/types/functions/engineering/bitand/__tests__/index.spec.d.ts +0 -16
  114. package/lib/types/functions/engineering/bitlshift/__tests__/index.spec.d.ts +0 -16
  115. package/lib/types/functions/engineering/bitor/__tests__/index.spec.d.ts +0 -16
  116. package/lib/types/functions/engineering/bitrshift/__tests__/index.spec.d.ts +0 -16
  117. package/lib/types/functions/engineering/bitxor/__tests__/index.spec.d.ts +0 -16
  118. package/lib/types/functions/engineering/complex/__tests__/index.spec.d.ts +0 -16
  119. package/lib/types/functions/engineering/convert/__tests__/index.spec.d.ts +0 -16
  120. package/lib/types/functions/engineering/dec2bin/__tests__/index.spec.d.ts +0 -16
  121. package/lib/types/functions/engineering/dec2hex/__tests__/index.spec.d.ts +0 -16
  122. package/lib/types/functions/engineering/dec2oct/__tests__/index.spec.d.ts +0 -16
  123. package/lib/types/functions/engineering/delta/__tests__/index.spec.d.ts +0 -16
  124. package/lib/types/functions/engineering/erf/__tests__/index.spec.d.ts +0 -16
  125. package/lib/types/functions/engineering/erf-precise/__tests__/index.spec.d.ts +0 -16
  126. package/lib/types/functions/engineering/erfc/__tests__/index.spec.d.ts +0 -16
  127. package/lib/types/functions/engineering/erfc-precise/__tests__/index.spec.d.ts +0 -16
  128. package/lib/types/functions/engineering/gestep/__tests__/index.spec.d.ts +0 -16
  129. package/lib/types/functions/engineering/hex2bin/__tests__/index.spec.d.ts +0 -16
  130. package/lib/types/functions/engineering/hex2dec/__tests__/index.spec.d.ts +0 -16
  131. package/lib/types/functions/engineering/hex2oct/__tests__/index.spec.d.ts +0 -16
  132. package/lib/types/functions/engineering/imabs/__tests__/index.spec.d.ts +0 -16
  133. package/lib/types/functions/engineering/imaginary/__tests__/index.spec.d.ts +0 -16
  134. package/lib/types/functions/engineering/imargument/__tests__/index.spec.d.ts +0 -16
  135. package/lib/types/functions/engineering/imconjugate/__tests__/index.spec.d.ts +0 -16
  136. package/lib/types/functions/engineering/imcos/__tests__/index.spec.d.ts +0 -16
  137. package/lib/types/functions/engineering/imcosh/__tests__/index.spec.d.ts +0 -16
  138. package/lib/types/functions/engineering/imcot/__tests__/index.spec.d.ts +0 -16
  139. package/lib/types/functions/engineering/imcoth/__tests__/index.spec.d.ts +0 -16
  140. package/lib/types/functions/engineering/imcsc/__tests__/index.spec.d.ts +0 -16
  141. package/lib/types/functions/engineering/imcsch/__tests__/index.spec.d.ts +0 -16
  142. package/lib/types/functions/engineering/imdiv/__tests__/index.spec.d.ts +0 -16
  143. package/lib/types/functions/engineering/imexp/__tests__/index.spec.d.ts +0 -16
  144. package/lib/types/functions/engineering/imln/__tests__/index.spec.d.ts +0 -16
  145. package/lib/types/functions/engineering/imlog/__tests__/index.spec.d.ts +0 -16
  146. package/lib/types/functions/engineering/imlog10/__tests__/index.spec.d.ts +0 -16
  147. package/lib/types/functions/engineering/imlog2/__tests__/index.spec.d.ts +0 -16
  148. package/lib/types/functions/engineering/impower/__tests__/index.spec.d.ts +0 -16
  149. package/lib/types/functions/engineering/improduct/__tests__/index.spec.d.ts +0 -16
  150. package/lib/types/functions/engineering/imreal/__tests__/index.spec.d.ts +0 -16
  151. package/lib/types/functions/engineering/imsec/__tests__/index.spec.d.ts +0 -16
  152. package/lib/types/functions/engineering/imsech/__tests__/index.spec.d.ts +0 -16
  153. package/lib/types/functions/engineering/imsin/__tests__/index.spec.d.ts +0 -16
  154. package/lib/types/functions/engineering/imsinh/__tests__/index.spec.d.ts +0 -16
  155. package/lib/types/functions/engineering/imsqrt/__tests__/index.spec.d.ts +0 -16
  156. package/lib/types/functions/engineering/imsub/__tests__/index.spec.d.ts +0 -16
  157. package/lib/types/functions/engineering/imsum/__tests__/index.spec.d.ts +0 -16
  158. package/lib/types/functions/engineering/imtan/__tests__/index.spec.d.ts +0 -16
  159. package/lib/types/functions/engineering/imtanh/__tests__/index.spec.d.ts +0 -16
  160. package/lib/types/functions/engineering/oct2bin/__tests__/index.spec.d.ts +0 -16
  161. package/lib/types/functions/engineering/oct2dec/__tests__/index.spec.d.ts +0 -16
  162. package/lib/types/functions/engineering/oct2hex/__tests__/index.spec.d.ts +0 -16
  163. package/lib/types/functions/financial/accrint/__tests__/index.spec.d.ts +0 -16
  164. package/lib/types/functions/financial/accrintm/__tests__/index.spec.d.ts +0 -16
  165. package/lib/types/functions/financial/amorlinc/__tests__/index.spec.d.ts +0 -16
  166. package/lib/types/functions/financial/coupdaybs/__tests__/index.spec.d.ts +0 -16
  167. package/lib/types/functions/financial/coupdays/__tests__/index.spec.d.ts +0 -16
  168. package/lib/types/functions/financial/coupdaysnc/__tests__/index.spec.d.ts +0 -16
  169. package/lib/types/functions/financial/coupncd/__tests__/index.spec.d.ts +0 -16
  170. package/lib/types/functions/financial/coupnum/__tests__/index.spec.d.ts +0 -16
  171. package/lib/types/functions/financial/couppcd/__tests__/index.spec.d.ts +0 -16
  172. package/lib/types/functions/financial/cumipmt/__tests__/index.spec.d.ts +0 -16
  173. package/lib/types/functions/financial/cumprinc/__tests__/index.spec.d.ts +0 -16
  174. package/lib/types/functions/financial/db/__tests__/index.spec.d.ts +0 -16
  175. package/lib/types/functions/financial/ddb/__tests__/index.spec.d.ts +0 -16
  176. package/lib/types/functions/financial/disc/__tests__/index.spec.d.ts +0 -16
  177. package/lib/types/functions/financial/dollarde/__tests__/index.spec.d.ts +0 -16
  178. package/lib/types/functions/financial/dollarfr/__tests__/index.spec.d.ts +0 -16
  179. package/lib/types/functions/financial/duration/__tests__/index.spec.d.ts +0 -16
  180. package/lib/types/functions/financial/effect/__tests__/index.spec.d.ts +0 -16
  181. package/lib/types/functions/financial/fv/__tests__/index.spec.d.ts +0 -16
  182. package/lib/types/functions/financial/fvschedule/__tests__/index.spec.d.ts +0 -16
  183. package/lib/types/functions/financial/intrate/__tests__/index.spec.d.ts +0 -16
  184. package/lib/types/functions/financial/ipmt/__tests__/index.spec.d.ts +0 -16
  185. package/lib/types/functions/financial/irr/__tests__/index.spec.d.ts +0 -16
  186. package/lib/types/functions/financial/ispmt/__tests__/index.spec.d.ts +0 -16
  187. package/lib/types/functions/financial/mduration/__tests__/index.spec.d.ts +0 -16
  188. package/lib/types/functions/financial/mirr/__tests__/index.spec.d.ts +0 -16
  189. package/lib/types/functions/financial/nominal/__tests__/index.spec.d.ts +0 -16
  190. package/lib/types/functions/financial/nper/__tests__/index.spec.d.ts +0 -16
  191. package/lib/types/functions/financial/npv/__tests__/index.spec.d.ts +0 -16
  192. package/lib/types/functions/financial/oddfprice/__tests__/index.spec.d.ts +0 -16
  193. package/lib/types/functions/financial/oddfyield/__tests__/index.spec.d.ts +0 -16
  194. package/lib/types/functions/financial/oddlprice/__tests__/index.spec.d.ts +0 -16
  195. package/lib/types/functions/financial/oddlyield/__tests__/index.spec.d.ts +0 -16
  196. package/lib/types/functions/financial/pduration/__tests__/index.spec.d.ts +0 -16
  197. package/lib/types/functions/financial/pmt/__tests__/index.spec.d.ts +0 -16
  198. package/lib/types/functions/financial/ppmt/__tests__/index.spec.d.ts +0 -16
  199. package/lib/types/functions/financial/price/__tests__/index.spec.d.ts +0 -16
  200. package/lib/types/functions/financial/pricedisc/__tests__/index.spec.d.ts +0 -16
  201. package/lib/types/functions/financial/pricemat/__tests__/index.spec.d.ts +0 -16
  202. package/lib/types/functions/financial/pv/__tests__/index.spec.d.ts +0 -16
  203. package/lib/types/functions/financial/rate/__tests__/index.spec.d.ts +0 -16
  204. package/lib/types/functions/financial/received/__tests__/index.spec.d.ts +0 -16
  205. package/lib/types/functions/financial/rri/__tests__/index.spec.d.ts +0 -16
  206. package/lib/types/functions/financial/sln/__tests__/index.spec.d.ts +0 -16
  207. package/lib/types/functions/financial/syd/__tests__/index.spec.d.ts +0 -16
  208. package/lib/types/functions/financial/tbilleq/__tests__/index.spec.d.ts +0 -16
  209. package/lib/types/functions/financial/tbillprice/__tests__/index.spec.d.ts +0 -16
  210. package/lib/types/functions/financial/tbillyield/__tests__/index.spec.d.ts +0 -16
  211. package/lib/types/functions/financial/vdb/__tests__/index.spec.d.ts +0 -16
  212. package/lib/types/functions/financial/xirr/__tests__/index.spec.d.ts +0 -16
  213. package/lib/types/functions/financial/xnpv/__tests__/index.spec.d.ts +0 -16
  214. package/lib/types/functions/financial/yield/__tests__/index.spec.d.ts +0 -16
  215. package/lib/types/functions/financial/yielddisc/__tests__/index.spec.d.ts +0 -16
  216. package/lib/types/functions/financial/yieldmat/__tests__/index.spec.d.ts +0 -16
  217. package/lib/types/functions/information/cell/__tests__/index.spec.d.ts +0 -16
  218. package/lib/types/functions/information/error-type/__tests__/index.spec.d.ts +0 -16
  219. package/lib/types/functions/information/isbetween/__tests__/index.spec.d.ts +0 -16
  220. package/lib/types/functions/information/isblank/__tests__/index.spec.d.ts +0 -16
  221. package/lib/types/functions/information/isdate/__tests__/index.spec.d.ts +0 -16
  222. package/lib/types/functions/information/isemail/__tests__/index.spec.d.ts +0 -16
  223. package/lib/types/functions/information/iserr/__tests__/index.spec.d.ts +0 -16
  224. package/lib/types/functions/information/iserror/__tests__/index.spec.d.ts +0 -16
  225. package/lib/types/functions/information/iseven/__tests__/iseven.spec.d.ts +0 -16
  226. package/lib/types/functions/information/isformula/__tests__/index.spec.d.ts +0 -16
  227. package/lib/types/functions/information/islogical/__tests__/index.spec.d.ts +0 -16
  228. package/lib/types/functions/information/isna/__tests__/index.spec.d.ts +0 -16
  229. package/lib/types/functions/information/isnontext/__tests__/index.spec.d.ts +0 -16
  230. package/lib/types/functions/information/isnumber/__tests__/index.spec.d.ts +0 -16
  231. package/lib/types/functions/information/isodd/__tests__/isodd.spec.d.ts +0 -16
  232. package/lib/types/functions/information/isref/__tests__/index.spec.d.ts +0 -16
  233. package/lib/types/functions/information/istext/__tests__/index.spec.d.ts +0 -16
  234. package/lib/types/functions/information/isurl/__tests__/index.spec.d.ts +0 -16
  235. package/lib/types/functions/information/n/__tests__/index.spec.d.ts +0 -16
  236. package/lib/types/functions/information/na/__tests__/index.spec.d.ts +0 -16
  237. package/lib/types/functions/information/sheet/__tests__/index.spec.d.ts +0 -16
  238. package/lib/types/functions/information/sheets/__tests__/index.spec.d.ts +0 -16
  239. package/lib/types/functions/information/type/__tests__/index.spec.d.ts +0 -16
  240. package/lib/types/functions/logical/and/__tests__/index.spec.d.ts +0 -16
  241. package/lib/types/functions/logical/false/__tests__/index.spec.d.ts +0 -16
  242. package/lib/types/functions/logical/if/__tests__/index.spec.d.ts +0 -16
  243. package/lib/types/functions/logical/iferror/__tests__/index.spec.d.ts +0 -16
  244. package/lib/types/functions/logical/ifna/__tests__/index.spec.d.ts +0 -16
  245. package/lib/types/functions/logical/ifs/__tests__/index.spec.d.ts +0 -16
  246. package/lib/types/functions/logical/not/__tests__/index.spec.d.ts +0 -16
  247. package/lib/types/functions/logical/or/__tests__/index.spec.d.ts +0 -16
  248. package/lib/types/functions/logical/switch/__tests__/index.spec.d.ts +0 -16
  249. package/lib/types/functions/logical/true/__tests__/index.spec.d.ts +0 -16
  250. package/lib/types/functions/logical/xor/__tests__/index.spec.d.ts +0 -16
  251. package/lib/types/functions/lookup/address/__tests__/index.spec.d.ts +0 -16
  252. package/lib/types/functions/lookup/areas/__tests__/index.spec.d.ts +0 -16
  253. package/lib/types/functions/lookup/choose/__tests__/index.spec.d.ts +0 -16
  254. package/lib/types/functions/lookup/choosecols/__tests__/index.spec.d.ts +0 -16
  255. package/lib/types/functions/lookup/chooserows/__tests__/index.spec.d.ts +0 -16
  256. package/lib/types/functions/lookup/column/__tests__/index.spec.d.ts +0 -16
  257. package/lib/types/functions/lookup/columns/__tests__/index.spec.d.ts +0 -16
  258. package/lib/types/functions/lookup/drop/__tests__/index.spec.d.ts +0 -16
  259. package/lib/types/functions/lookup/expand/__tests__/index.spec.d.ts +0 -16
  260. package/lib/types/functions/lookup/filter/__tests__/index.spec.d.ts +0 -16
  261. package/lib/types/functions/lookup/formulatext/__tests__/index.spec.d.ts +0 -16
  262. package/lib/types/functions/lookup/hlookup/__tests__/index.spec.d.ts +0 -16
  263. package/lib/types/functions/lookup/hstack/__tests__/index.spec.d.ts +0 -16
  264. package/lib/types/functions/lookup/lookup/__tests__/index.spec.d.ts +0 -16
  265. package/lib/types/functions/lookup/match/__tests__/index.spec.d.ts +0 -16
  266. package/lib/types/functions/lookup/offset/__tests__/index.spec.d.ts +0 -16
  267. package/lib/types/functions/lookup/row/__tests__/index.spec.d.ts +0 -16
  268. package/lib/types/functions/lookup/rows/__tests__/index.spec.d.ts +0 -16
  269. package/lib/types/functions/lookup/sort/__tests__/index.spec.d.ts +0 -16
  270. package/lib/types/functions/lookup/sortby/__tests__/index.spec.d.ts +0 -16
  271. package/lib/types/functions/lookup/take/__tests__/index.spec.d.ts +0 -16
  272. package/lib/types/functions/lookup/tocol/__tests__/index.spec.d.ts +0 -16
  273. package/lib/types/functions/lookup/torow/__tests__/index.spec.d.ts +0 -16
  274. package/lib/types/functions/lookup/transpose/__tests__/index.spec.d.ts +0 -16
  275. package/lib/types/functions/lookup/unique/__tests__/index.spec.d.ts +0 -16
  276. package/lib/types/functions/lookup/vlookup/__tests__/index.spec.d.ts +0 -16
  277. package/lib/types/functions/lookup/vstack/__tests__/index.spec.d.ts +0 -16
  278. package/lib/types/functions/lookup/wrapcols/__tests__/index.spec.d.ts +0 -16
  279. package/lib/types/functions/lookup/wraprows/__tests__/index.spec.d.ts +0 -16
  280. package/lib/types/functions/lookup/xlookup/__tests__/index.spec.d.ts +0 -16
  281. package/lib/types/functions/lookup/xmatch/__tests__/index.spec.d.ts +0 -16
  282. package/lib/types/functions/math/abs/__tests__/index.spec.d.ts +0 -16
  283. package/lib/types/functions/math/acos/__tests__/index.spec.d.ts +0 -16
  284. package/lib/types/functions/math/acosh/__tests__/index.spec.d.ts +0 -16
  285. package/lib/types/functions/math/acot/__tests__/index.spec.d.ts +0 -16
  286. package/lib/types/functions/math/acoth/__tests__/index.spec.d.ts +0 -16
  287. package/lib/types/functions/math/arabic/__tests__/index.spec.d.ts +0 -16
  288. package/lib/types/functions/math/asin/__tests__/index.spec.d.ts +0 -16
  289. package/lib/types/functions/math/asinh/__tests__/index.spec.d.ts +0 -16
  290. package/lib/types/functions/math/atan/__tests__/index.spec.d.ts +0 -16
  291. package/lib/types/functions/math/atan2/__tests__/index.spec.d.ts +0 -16
  292. package/lib/types/functions/math/atanh/__tests__/index.spec.d.ts +0 -16
  293. package/lib/types/functions/math/base/__tests__/index.spec.d.ts +0 -16
  294. package/lib/types/functions/math/ceiling/__tests__/index.spec.d.ts +0 -16
  295. package/lib/types/functions/math/ceiling-math/__tests__/index.spec.d.ts +0 -16
  296. package/lib/types/functions/math/ceiling-precise/__tests__/index.spec.d.ts +0 -16
  297. package/lib/types/functions/math/combin/__tests__/index.spec.d.ts +0 -16
  298. package/lib/types/functions/math/combina/__tests__/index.spec.d.ts +0 -16
  299. package/lib/types/functions/math/cos/__tests__/index.spec.d.ts +0 -16
  300. package/lib/types/functions/math/cosh/__tests__/index.spec.d.ts +0 -16
  301. package/lib/types/functions/math/cot/__tests__/index.spec.d.ts +0 -16
  302. package/lib/types/functions/math/coth/__tests__/index.spec.d.ts +0 -16
  303. package/lib/types/functions/math/csc/__tests__/index.spec.d.ts +0 -16
  304. package/lib/types/functions/math/csch/__tests__/index.spec.d.ts +0 -16
  305. package/lib/types/functions/math/decimal/__tests__/index.spec.d.ts +0 -16
  306. package/lib/types/functions/math/degrees/__tests__/index.spec.d.ts +0 -16
  307. package/lib/types/functions/math/even/__tests__/index.spec.d.ts +0 -16
  308. package/lib/types/functions/math/exp/__tests__/index.spec.d.ts +0 -16
  309. package/lib/types/functions/math/fact/__tests__/index.spec.d.ts +0 -16
  310. package/lib/types/functions/math/factdouble/__tests__/index.spec.d.ts +0 -16
  311. package/lib/types/functions/math/floor/__tests__/index.spec.d.ts +0 -16
  312. package/lib/types/functions/math/floor-math/__tests__/index.spec.d.ts +0 -16
  313. package/lib/types/functions/math/floor-precise/__tests__/index.spec.d.ts +0 -16
  314. package/lib/types/functions/math/gcd/__tests__/index.spec.d.ts +0 -16
  315. package/lib/types/functions/math/int/__tests__/index.spec.d.ts +0 -16
  316. package/lib/types/functions/math/lcm/__tests__/index.spec.d.ts +0 -16
  317. package/lib/types/functions/math/ln/__tests__/index.spec.d.ts +0 -16
  318. package/lib/types/functions/math/log/__tests__/index.spec.d.ts +0 -16
  319. package/lib/types/functions/math/log10/__tests__/index.spec.d.ts +0 -16
  320. package/lib/types/functions/math/mdeterm/__tests__/index.spec.d.ts +0 -16
  321. package/lib/types/functions/math/minverse/__tests__/index.spec.d.ts +0 -16
  322. package/lib/types/functions/math/mmult/__tests__/index.spec.d.ts +0 -16
  323. package/lib/types/functions/math/mod/__tests__/index.spec.d.ts +0 -16
  324. package/lib/types/functions/math/mround/__tests__/index.spec.d.ts +0 -16
  325. package/lib/types/functions/math/multinomial/__tests__/index.spec.d.ts +0 -16
  326. package/lib/types/functions/math/munit/__tests__/index.spec.d.ts +0 -16
  327. package/lib/types/functions/math/odd/__tests__/index.spec.d.ts +0 -16
  328. package/lib/types/functions/math/pi/__tests__/index.spec.d.ts +0 -16
  329. package/lib/types/functions/math/power/__tests__/index.spec.d.ts +0 -16
  330. package/lib/types/functions/math/product/__tests__/index.spec.d.ts +0 -16
  331. package/lib/types/functions/math/quotient/__tests__/index.spec.d.ts +0 -16
  332. package/lib/types/functions/math/radians/__tests__/index.spec.d.ts +0 -16
  333. package/lib/types/functions/math/rand/__tests__/index.spec.d.ts +0 -16
  334. package/lib/types/functions/math/randarray/__tests__/index.spec.d.ts +0 -16
  335. package/lib/types/functions/math/randbetween/__tests__/index.spec.d.ts +0 -16
  336. package/lib/types/functions/math/roman/__tests__/index.spec.d.ts +0 -16
  337. package/lib/types/functions/math/round/__tests__/index.spec.d.ts +0 -16
  338. package/lib/types/functions/math/roundbank/__tests__/index.spec.d.ts +0 -16
  339. package/lib/types/functions/math/rounddown/__tests__/index.spec.d.ts +0 -16
  340. package/lib/types/functions/math/roundup/__tests__/index.spec.d.ts +0 -16
  341. package/lib/types/functions/math/sec/__tests__/index.spec.d.ts +0 -16
  342. package/lib/types/functions/math/sech/__tests__/index.spec.d.ts +0 -16
  343. package/lib/types/functions/math/sequence/__tests__/index.spec.d.ts +0 -16
  344. package/lib/types/functions/math/seriessum/__tests__/index.spec.d.ts +0 -16
  345. package/lib/types/functions/math/sign/__tests__/index.spec.d.ts +0 -16
  346. package/lib/types/functions/math/sin/__tests__/index.spec.d.ts +0 -16
  347. package/lib/types/functions/math/sinh/__tests__/index.spec.d.ts +0 -16
  348. package/lib/types/functions/math/sqrt/__tests__/index.spec.d.ts +0 -16
  349. package/lib/types/functions/math/sqrtpi/__tests__/index.spec.d.ts +0 -16
  350. package/lib/types/functions/math/subtotal/__tests__/index.spec.d.ts +0 -16
  351. package/lib/types/functions/math/sum/__tests__/index.spec.d.ts +0 -16
  352. package/lib/types/functions/math/sumif/__tests__/index.spec.d.ts +0 -16
  353. package/lib/types/functions/math/sumifs/__tests__/index.spec.d.ts +0 -16
  354. package/lib/types/functions/math/sumproduct/__tests__/index.spec.d.ts +0 -16
  355. package/lib/types/functions/math/sumsq/__tests__/index.spec.d.ts +0 -16
  356. package/lib/types/functions/math/sumx2my2/__tests__/index.spec.d.ts +0 -16
  357. package/lib/types/functions/math/sumx2py2/__tests__/index.spec.d.ts +0 -16
  358. package/lib/types/functions/math/sumxmy2/__tests__/index.spec.d.ts +0 -16
  359. package/lib/types/functions/math/tan/__tests__/index.spec.d.ts +0 -16
  360. package/lib/types/functions/math/tanh/__tests__/index.spec.d.ts +0 -16
  361. package/lib/types/functions/math/trunc/__tests__/index.spec.d.ts +0 -16
  362. package/lib/types/functions/meta/compare/__tests__/index.spec.d.ts +0 -16
  363. package/lib/types/functions/statistical/avedev/__tests__/index.spec.d.ts +0 -16
  364. package/lib/types/functions/statistical/average/__tests__/index.spec.d.ts +0 -16
  365. package/lib/types/functions/statistical/average-weighted/__tests__/index.spec.d.ts +0 -16
  366. package/lib/types/functions/statistical/averagea/__tests__/index.spec.d.ts +0 -16
  367. package/lib/types/functions/statistical/averageif/__tests__/index.spec.d.ts +0 -16
  368. package/lib/types/functions/statistical/averageifs/__tests__/index.spec.d.ts +0 -16
  369. package/lib/types/functions/statistical/beta-dist/__tests__/index.spec.d.ts +0 -16
  370. package/lib/types/functions/statistical/beta-inv/__tests__/index.spec.d.ts +0 -16
  371. package/lib/types/functions/statistical/binom-dist/__tests__/index.spec.d.ts +0 -16
  372. package/lib/types/functions/statistical/binom-dist-range/__tests__/index.spec.d.ts +0 -16
  373. package/lib/types/functions/statistical/binom-inv/__tests__/index.spec.d.ts +0 -16
  374. package/lib/types/functions/statistical/chisq-dist/__tests__/index.spec.d.ts +0 -16
  375. package/lib/types/functions/statistical/chisq-dist-rt/__tests__/index.spec.d.ts +0 -16
  376. package/lib/types/functions/statistical/chisq-inv/__tests__/index.spec.d.ts +0 -16
  377. package/lib/types/functions/statistical/chisq-inv-rt/__tests__/index.spec.d.ts +0 -16
  378. package/lib/types/functions/statistical/chisq-test/__tests__/index.spec.d.ts +0 -16
  379. package/lib/types/functions/statistical/confidence-norm/__tests__/index.spec.d.ts +0 -16
  380. package/lib/types/functions/statistical/confidence-t/__tests__/index.spec.d.ts +0 -16
  381. package/lib/types/functions/statistical/correl/__tests__/index.spec.d.ts +0 -16
  382. package/lib/types/functions/statistical/count/__tests__/index.spec.d.ts +0 -16
  383. package/lib/types/functions/statistical/counta/__tests__/index.spec.d.ts +0 -16
  384. package/lib/types/functions/statistical/countblank/__tests__/index.spec.d.ts +0 -16
  385. package/lib/types/functions/statistical/countif/__tests__/index.spec.d.ts +0 -16
  386. package/lib/types/functions/statistical/countifs/__tests__/index.spec.d.ts +0 -16
  387. package/lib/types/functions/statistical/covariance-p/__tests__/index.spec.d.ts +0 -16
  388. package/lib/types/functions/statistical/covariance-s/__tests__/index.spec.d.ts +0 -16
  389. package/lib/types/functions/statistical/devsq/__tests__/index.spec.d.ts +0 -16
  390. package/lib/types/functions/statistical/expon-dist/__tests__/index.spec.d.ts +0 -16
  391. package/lib/types/functions/statistical/f-dist/__tests__/index.spec.d.ts +0 -16
  392. package/lib/types/functions/statistical/f-dist-rt/__tests__/index.spec.d.ts +0 -16
  393. package/lib/types/functions/statistical/f-inv/__tests__/index.spec.d.ts +0 -16
  394. package/lib/types/functions/statistical/f-inv-rt/__tests__/index.spec.d.ts +0 -16
  395. package/lib/types/functions/statistical/f-test/__tests__/index.spec.d.ts +0 -16
  396. package/lib/types/functions/statistical/fisher/__tests__/index.spec.d.ts +0 -16
  397. package/lib/types/functions/statistical/fisherinv/__tests__/index.spec.d.ts +0 -16
  398. package/lib/types/functions/statistical/forecast/__tests__/index.spec.d.ts +0 -16
  399. package/lib/types/functions/statistical/frequency/__tests__/index.spec.d.ts +0 -16
  400. package/lib/types/functions/statistical/gamma/__tests__/index.spec.d.ts +0 -16
  401. package/lib/types/functions/statistical/gamma-dist/__tests__/index.spec.d.ts +0 -16
  402. package/lib/types/functions/statistical/gamma-inv/__tests__/index.spec.d.ts +0 -16
  403. package/lib/types/functions/statistical/gammaln/__tests__/index.spec.d.ts +0 -16
  404. package/lib/types/functions/statistical/gauss/__tests__/index.spec.d.ts +0 -16
  405. package/lib/types/functions/statistical/geomean/__tests__/index.spec.d.ts +0 -16
  406. package/lib/types/functions/statistical/growth/__tests__/index.spec.d.ts +0 -16
  407. package/lib/types/functions/statistical/harmean/__tests__/index.spec.d.ts +0 -16
  408. package/lib/types/functions/statistical/hypgeom-dist/__tests__/index.spec.d.ts +0 -16
  409. package/lib/types/functions/statistical/intercept/__tests__/index.spec.d.ts +0 -16
  410. package/lib/types/functions/statistical/kurt/__tests__/index.spec.d.ts +0 -16
  411. package/lib/types/functions/statistical/large/__tests__/index.spec.d.ts +0 -16
  412. package/lib/types/functions/statistical/linest/__tests__/index.spec.d.ts +0 -16
  413. package/lib/types/functions/statistical/logest/__tests__/index.spec.d.ts +0 -16
  414. package/lib/types/functions/statistical/lognorm-dist/__tests__/index.spec.d.ts +0 -16
  415. package/lib/types/functions/statistical/lognorm-inv/__tests__/index.spec.d.ts +0 -16
  416. package/lib/types/functions/statistical/marginoferror/__tests__/index.spec.d.ts +0 -16
  417. package/lib/types/functions/statistical/max/__tests__/index.spec.d.ts +0 -16
  418. package/lib/types/functions/statistical/maxa/__tests__/index.spec.d.ts +0 -16
  419. package/lib/types/functions/statistical/maxifs/__tests__/index.spec.d.ts +0 -16
  420. package/lib/types/functions/statistical/median/__tests__/index.spec.d.ts +0 -16
  421. package/lib/types/functions/statistical/min/__tests__/index.spec.d.ts +0 -16
  422. package/lib/types/functions/statistical/mina/__tests__/index.spec.d.ts +0 -16
  423. package/lib/types/functions/statistical/minifs/__tests__/index.spec.d.ts +0 -16
  424. package/lib/types/functions/statistical/mode-mult/__tests__/index.spec.d.ts +0 -16
  425. package/lib/types/functions/statistical/mode-sngl/__tests__/index.spec.d.ts +0 -16
  426. package/lib/types/functions/statistical/negbinom-dist/__tests__/index.spec.d.ts +0 -16
  427. package/lib/types/functions/statistical/norm-dist/__tests__/index.spec.d.ts +0 -16
  428. package/lib/types/functions/statistical/norm-inv/__tests__/index.spec.d.ts +0 -16
  429. package/lib/types/functions/statistical/norm-s-dist/__tests__/index.spec.d.ts +0 -16
  430. package/lib/types/functions/statistical/norm-s-inv/__tests__/index.spec.d.ts +0 -16
  431. package/lib/types/functions/statistical/pearson/__tests__/index.spec.d.ts +0 -16
  432. package/lib/types/functions/statistical/percentile-exc/__tests__/index.spec.d.ts +0 -16
  433. package/lib/types/functions/statistical/percentile-inc/__tests__/index.spec.d.ts +0 -16
  434. package/lib/types/functions/statistical/percentrank-exc/__tests__/index.spec.d.ts +0 -16
  435. package/lib/types/functions/statistical/percentrank-inc/__tests__/index.spec.d.ts +0 -16
  436. package/lib/types/functions/statistical/permut/__tests__/index.spec.d.ts +0 -16
  437. package/lib/types/functions/statistical/permutationa/__tests__/index.spec.d.ts +0 -16
  438. package/lib/types/functions/statistical/phi/__tests__/index.spec.d.ts +0 -16
  439. package/lib/types/functions/statistical/poisson-dist/__tests__/index.spec.d.ts +0 -16
  440. package/lib/types/functions/statistical/prob/__tests__/index.spec.d.ts +0 -16
  441. package/lib/types/functions/statistical/quartile-exc/__tests__/index.spec.d.ts +0 -16
  442. package/lib/types/functions/statistical/quartile-inc/__tests__/index.spec.d.ts +0 -16
  443. package/lib/types/functions/statistical/rank-avg/__tests__/index.spec.d.ts +0 -16
  444. package/lib/types/functions/statistical/rank-eq/__tests__/index.spec.d.ts +0 -16
  445. package/lib/types/functions/statistical/rsq/__tests__/index.spec.d.ts +0 -16
  446. package/lib/types/functions/statistical/skew/__tests__/index.spec.d.ts +0 -16
  447. package/lib/types/functions/statistical/skew-p/__tests__/index.spec.d.ts +0 -16
  448. package/lib/types/functions/statistical/slope/__tests__/index.spec.d.ts +0 -16
  449. package/lib/types/functions/statistical/small/__tests__/index.spec.d.ts +0 -16
  450. package/lib/types/functions/statistical/standardize/__tests__/index.spec.d.ts +0 -16
  451. package/lib/types/functions/statistical/stdev-p/__tests__/index.spec.d.ts +0 -16
  452. package/lib/types/functions/statistical/stdev-s/__tests__/index.spec.d.ts +0 -16
  453. package/lib/types/functions/statistical/stdeva/__tests__/index.spec.d.ts +0 -16
  454. package/lib/types/functions/statistical/stdevpa/__tests__/index.spec.d.ts +0 -16
  455. package/lib/types/functions/statistical/steyx/__tests__/index.spec.d.ts +0 -16
  456. package/lib/types/functions/statistical/t-dist/__tests__/index.spec.d.ts +0 -16
  457. package/lib/types/functions/statistical/t-dist-2t/__tests__/index.spec.d.ts +0 -16
  458. package/lib/types/functions/statistical/t-dist-rt/__tests__/index.spec.d.ts +0 -16
  459. package/lib/types/functions/statistical/t-inv/__tests__/index.spec.d.ts +0 -16
  460. package/lib/types/functions/statistical/t-inv-2t/__tests__/index.spec.d.ts +0 -16
  461. package/lib/types/functions/statistical/t-test/__tests__/index.spec.d.ts +0 -16
  462. package/lib/types/functions/statistical/trend/__tests__/index.spec.d.ts +0 -16
  463. package/lib/types/functions/statistical/trimmean/__tests__/index.spec.d.ts +0 -16
  464. package/lib/types/functions/statistical/var-p/__tests__/index.spec.d.ts +0 -16
  465. package/lib/types/functions/statistical/var-s/__tests__/index.spec.d.ts +0 -16
  466. package/lib/types/functions/statistical/vara/__tests__/index.spec.d.ts +0 -16
  467. package/lib/types/functions/statistical/varpa/__tests__/index.spec.d.ts +0 -16
  468. package/lib/types/functions/statistical/weibull-dist/__tests__/index.spec.d.ts +0 -16
  469. package/lib/types/functions/statistical/z-test/__tests__/index.spec.d.ts +0 -16
  470. package/lib/types/functions/text/concat/__tests__/index.spec.d.ts +0 -16
  471. package/lib/types/functions/text/concatenate/__tests__/index.spec.d.ts +0 -16
  472. package/lib/types/functions/web/encodeurl/__tests__/index.spec.d.ts +0 -16
  473. package/lib/types/models/__tests__/create-command-test-bed.d.ts +0 -13
  474. package/lib/types/models/__tests__/formula-data.model.spec.d.ts +0 -16
package/lib/es/facade.js CHANGED
@@ -1,14 +1,19 @@
1
- import { Inject as u, ICommandService as f, Injector as _, FBase as C, IConfigService as v, FUniver as m } from "@univerjs/core";
2
- import { LexerTreeBuilder as x, SetFormulaCalculationStartMutation as l, SetFormulaCalculationStopMutation as p, SetFormulaCalculationNotificationMutation as d, ENGINE_FORMULA_CYCLE_REFERENCE_COUNT as S } from "@univerjs/engine-formula";
3
- var h = Object.defineProperty, E = Object.getOwnPropertyDescriptor, F = (e, t, r, i) => {
4
- for (var n = i > 1 ? void 0 : i ? E(t, r) : t, a = e.length - 1, c; a >= 0; a--)
5
- (c = e[a]) && (n = (i ? c(t, r, n) : c(n)) || n);
6
- return i && n && h(t, r, n), n;
7
- }, o = (e, t) => (r, i) => t(r, i, e);
8
- let s = class extends C {
9
- constructor(e, t, r, i) {
10
- super(), this._commandService = e, this._injector = t, this._lexerTreeBuilder = r, this._configService = i, this._initialize();
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: !0 });
3
+ import { Inject, ICommandService, Injector, FBase, IConfigService, FUniver } from "@univerjs/core";
4
+ import { LexerTreeBuilder, SetFormulaCalculationStartMutation, SetFormulaCalculationStopMutation, SetFormulaCalculationNotificationMutation, ENGINE_FORMULA_CYCLE_REFERENCE_COUNT } from "@univerjs/engine-formula";
5
+ var __defProp2 = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __decorateClass = /* @__PURE__ */ __name((decorators, target, key, kind) => {
6
+ for (var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target, i = decorators.length - 1, decorator; i >= 0; i--)
7
+ (decorator = decorators[i]) && (result = (kind ? decorator(target, key, result) : decorator(result)) || result);
8
+ return kind && result && __defProp2(target, key, result), result;
9
+ }, "__decorateClass"), __decorateParam = /* @__PURE__ */ __name((index, decorator) => (target, key) => decorator(target, key, index), "__decorateParam"), _a;
10
+ let FFormula = (_a = class extends FBase {
11
+ constructor(_commandService, _injector, _lexerTreeBuilder, _configService) {
12
+ super(), this._commandService = _commandService, this._injector = _injector, this._lexerTreeBuilder = _lexerTreeBuilder, this._configService = _configService, this._initialize();
11
13
  }
14
+ /**
15
+ * @ignore
16
+ */
12
17
  _initialize() {
13
18
  }
14
19
  /**
@@ -28,8 +33,8 @@ let s = class extends C {
28
33
  * const result = moveFormulaRefOffset('sum(a1,b2)',1,1)
29
34
  * // result is 'sum(b2,c3)'
30
35
  */
31
- moveFormulaRefOffset(e, t, r, i) {
32
- return this._lexerTreeBuilder.moveFormulaRefOffset(e, t, r, i);
36
+ moveFormulaRefOffset(formulaString, refOffsetX, refOffsetY, ignoreAbsolute) {
37
+ return this._lexerTreeBuilder.moveFormulaRefOffset(formulaString, refOffsetX, refOffsetY, ignoreAbsolute);
33
38
  }
34
39
  /**
35
40
  * Resolves the formula string to a 'node' node
@@ -37,30 +42,30 @@ let s = class extends C {
37
42
  * @returns {*} {((string | ISequenceNode)[])}
38
43
  * @memberof FFormula
39
44
  */
40
- sequenceNodesBuilder(e) {
41
- return this._lexerTreeBuilder.sequenceNodesBuilder(e) || [];
45
+ sequenceNodesBuilder(formulaString) {
46
+ return this._lexerTreeBuilder.sequenceNodesBuilder(formulaString) || [];
42
47
  }
43
48
  /**
44
49
  * Start the calculation of the formula.
45
50
  */
46
51
  executeCalculation() {
47
- this._commandService.executeCommand(l.id, { commands: [], forceCalculation: !0 }, { onlyLocal: !0 });
52
+ this._commandService.executeCommand(SetFormulaCalculationStartMutation.id, { commands: [], forceCalculation: !0 }, { onlyLocal: !0 });
48
53
  }
49
54
  /**
50
55
  * Stop the calculation of the formula.
51
56
  */
52
57
  stopCalculation() {
53
- this._commandService.executeCommand(p.id, {});
58
+ this._commandService.executeCommand(SetFormulaCalculationStopMutation.id, {});
54
59
  }
55
60
  /**
56
61
  * Listening calculation starts.
57
62
  * @param callback
58
63
  */
59
- calculationStart(e) {
60
- return this._commandService.onCommandExecuted((t) => {
61
- if (t.id === l.id) {
62
- const r = t.params;
63
- e(r.forceCalculation);
64
+ calculationStart(callback) {
65
+ return this._commandService.onCommandExecuted((command) => {
66
+ if (command.id === SetFormulaCalculationStartMutation.id) {
67
+ const params = command.params;
68
+ callback(params.forceCalculation);
64
69
  }
65
70
  });
66
71
  }
@@ -68,20 +73,20 @@ let s = class extends C {
68
73
  * Listening calculation ends.
69
74
  * @param callback
70
75
  */
71
- calculationEnd(e) {
72
- return this._commandService.onCommandExecuted((t) => {
73
- if (t.id !== d.id)
76
+ calculationEnd(callback) {
77
+ return this._commandService.onCommandExecuted((command) => {
78
+ if (command.id !== SetFormulaCalculationNotificationMutation.id)
74
79
  return;
75
- const r = t.params;
76
- r.functionsExecutedState !== void 0 && e(r.functionsExecutedState);
80
+ const params = command.params;
81
+ params.functionsExecutedState !== void 0 && callback(params.functionsExecutedState);
77
82
  });
78
83
  }
79
84
  onCalculationEnd() {
80
- return new Promise((e, t) => {
81
- const r = setTimeout(() => {
82
- t(new Error("Calculation end timeout"));
83
- }, 3e4), i = this.calculationEnd(() => {
84
- clearTimeout(r), i.dispose(), e();
85
+ return new Promise((resolve, reject) => {
86
+ const timer = setTimeout(() => {
87
+ reject(new Error("Calculation end timeout"));
88
+ }, 3e4), disposable = this.calculationEnd(() => {
89
+ clearTimeout(timer), disposable.dispose(), resolve();
85
90
  });
86
91
  });
87
92
  }
@@ -89,12 +94,12 @@ let s = class extends C {
89
94
  * Listening calculation processing.
90
95
  * @param callback
91
96
  */
92
- calculationProcessing(e) {
93
- return this._commandService.onCommandExecuted((t) => {
94
- if (t.id !== d.id)
97
+ calculationProcessing(callback) {
98
+ return this._commandService.onCommandExecuted((command) => {
99
+ if (command.id !== SetFormulaCalculationNotificationMutation.id)
95
100
  return;
96
- const r = t.params;
97
- r.stageInfo !== void 0 && e(r.stageInfo);
101
+ const params = command.params;
102
+ params.stageInfo !== void 0 && callback(params.stageInfo);
98
103
  });
99
104
  }
100
105
  /**
@@ -108,22 +113,24 @@ let s = class extends C {
108
113
  * formulaEngine.setMaxIteration(5);
109
114
  * ```
110
115
  */
111
- setMaxIteration(e) {
112
- this._configService.setConfig(S, e);
116
+ setMaxIteration(maxIteration) {
117
+ this._configService.setConfig(ENGINE_FORMULA_CYCLE_REFERENCE_COUNT, maxIteration);
113
118
  }
114
- };
115
- s = F([
116
- o(0, u(f)),
117
- o(1, u(_)),
118
- o(2, u(x)),
119
- o(3, v)
120
- ], s);
121
- class g extends m {
119
+ }, __name(_a, "FFormula"), _a);
120
+ FFormula = __decorateClass([
121
+ __decorateParam(0, Inject(ICommandService)),
122
+ __decorateParam(1, Inject(Injector)),
123
+ __decorateParam(2, Inject(LexerTreeBuilder)),
124
+ __decorateParam(3, IConfigService)
125
+ ], FFormula);
126
+ const _FUniverEngineFormulaMixin = class _FUniverEngineFormulaMixin extends FUniver {
122
127
  getFormula() {
123
- return this._injector.createInstance(s);
128
+ return this._injector.createInstance(FFormula);
124
129
  }
125
- }
126
- m.extend(g);
130
+ };
131
+ __name(_FUniverEngineFormulaMixin, "FUniverEngineFormulaMixin");
132
+ let FUniverEngineFormulaMixin = _FUniverEngineFormulaMixin;
133
+ FUniver.extend(FUniverEngineFormulaMixin);
127
134
  export {
128
- s as FFormula
135
+ FFormula
129
136
  };