@univerjs/engine-formula 0.2.9 → 0.2.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. package/lib/cjs/index.js +7 -1
  2. package/lib/es/index.js +4798 -1189
  3. package/lib/types/basics/__tests__/engineering.spec.d.ts +16 -0
  4. package/lib/types/basics/complex.d.ts +57 -0
  5. package/lib/types/basics/date.d.ts +15 -6
  6. package/lib/types/basics/engineering.d.ts +2 -2
  7. package/lib/types/basics/error-type.d.ts +1 -0
  8. package/lib/types/basics/financial.d.ts +19 -15
  9. package/lib/types/basics/format.d.ts +1 -1
  10. package/lib/types/engine/analysis/lexer-tree-builder.d.ts +8 -0
  11. package/lib/types/engine/utils/check-variant-error.d.ts +9 -0
  12. package/lib/types/engine/utils/math-kit.d.ts +0 -5
  13. package/lib/types/engine/value-object/primitive-object.d.ts +4 -0
  14. package/lib/types/functions/engineering/besseli/index.d.ts +2 -3
  15. package/lib/types/functions/engineering/besselj/index.d.ts +2 -3
  16. package/lib/types/functions/engineering/besselk/index.d.ts +2 -3
  17. package/lib/types/functions/engineering/bessely/index.d.ts +2 -3
  18. package/lib/types/functions/engineering/bin2dec/index.d.ts +2 -3
  19. package/lib/types/functions/engineering/bin2hex/index.d.ts +2 -3
  20. package/lib/types/functions/engineering/bin2oct/index.d.ts +2 -3
  21. package/lib/types/functions/engineering/complex/index.d.ts +2 -3
  22. package/lib/types/functions/engineering/convert/index.d.ts +2 -3
  23. package/lib/types/functions/engineering/dec2bin/index.d.ts +2 -3
  24. package/lib/types/functions/engineering/dec2hex/index.d.ts +2 -3
  25. package/lib/types/functions/engineering/dec2oct/index.d.ts +2 -3
  26. package/lib/types/functions/engineering/delta/index.d.ts +2 -3
  27. package/lib/types/functions/engineering/erf/index.d.ts +2 -3
  28. package/lib/types/functions/engineering/erf-precise/index.d.ts +2 -3
  29. package/lib/types/functions/engineering/erfc/index.d.ts +2 -3
  30. package/lib/types/functions/engineering/erfc-precise/index.d.ts +2 -3
  31. package/lib/types/functions/engineering/function-map.d.ts +3 -2
  32. package/lib/types/functions/engineering/gestep/__tests__/index.spec.d.ts +16 -0
  33. package/lib/types/functions/engineering/gestep/index.d.ts +7 -0
  34. package/lib/types/functions/engineering/hex2bin/index.d.ts +2 -3
  35. package/lib/types/functions/engineering/hex2dec/index.d.ts +2 -3
  36. package/lib/types/functions/engineering/hex2oct/index.d.ts +2 -3
  37. package/lib/types/functions/engineering/imabs/__tests__/index.spec.d.ts +16 -0
  38. package/lib/types/functions/engineering/imabs/index.d.ts +7 -0
  39. package/lib/types/functions/engineering/imaginary/__tests__/index.spec.d.ts +16 -0
  40. package/lib/types/functions/engineering/imaginary/index.d.ts +7 -0
  41. package/lib/types/functions/engineering/imargument/__tests__/index.spec.d.ts +16 -0
  42. package/lib/types/functions/engineering/imargument/index.d.ts +7 -0
  43. package/lib/types/functions/engineering/imconjugate/__tests__/index.spec.d.ts +16 -0
  44. package/lib/types/functions/engineering/imconjugate/index.d.ts +7 -0
  45. package/lib/types/functions/engineering/imcos/__tests__/index.spec.d.ts +16 -0
  46. package/lib/types/functions/engineering/imcos/index.d.ts +7 -0
  47. package/lib/types/functions/engineering/imcosh/__tests__/index.spec.d.ts +16 -0
  48. package/lib/types/functions/engineering/imcosh/index.d.ts +7 -0
  49. package/lib/types/functions/engineering/imcot/__tests__/index.spec.d.ts +16 -0
  50. package/lib/types/functions/engineering/imcot/index.d.ts +7 -0
  51. package/lib/types/functions/engineering/imcsc/__tests__/index.spec.d.ts +16 -0
  52. package/lib/types/functions/engineering/imcsc/index.d.ts +7 -0
  53. package/lib/types/functions/engineering/imcsch/__tests__/index.spec.d.ts +16 -0
  54. package/lib/types/functions/engineering/imcsch/index.d.ts +7 -0
  55. package/lib/types/functions/engineering/imdiv/__tests__/index.spec.d.ts +16 -0
  56. package/lib/types/functions/engineering/imdiv/index.d.ts +7 -0
  57. package/lib/types/functions/engineering/imexp/__tests__/index.spec.d.ts +16 -0
  58. package/lib/types/functions/engineering/imexp/index.d.ts +7 -0
  59. package/lib/types/functions/engineering/imln/__tests__/index.spec.d.ts +16 -0
  60. package/lib/types/functions/engineering/imln/index.d.ts +7 -0
  61. package/lib/types/functions/engineering/imlog10/__tests__/index.spec.d.ts +16 -0
  62. package/lib/types/functions/engineering/imlog10/index.d.ts +7 -0
  63. package/lib/types/functions/engineering/imlog2/__tests__/index.spec.d.ts +16 -0
  64. package/lib/types/functions/engineering/imlog2/index.d.ts +7 -0
  65. package/lib/types/functions/engineering/impower/__tests__/index.spec.d.ts +16 -0
  66. package/lib/types/functions/engineering/impower/index.d.ts +7 -0
  67. package/lib/types/functions/engineering/improduct/__tests__/index.spec.d.ts +16 -0
  68. package/lib/types/functions/engineering/improduct/index.d.ts +8 -0
  69. package/lib/types/functions/engineering/imreal/__tests__/index.spec.d.ts +16 -0
  70. package/lib/types/functions/engineering/imreal/index.d.ts +7 -0
  71. package/lib/types/functions/engineering/imsec/__tests__/index.spec.d.ts +16 -0
  72. package/lib/types/functions/engineering/imsec/index.d.ts +7 -0
  73. package/lib/types/functions/engineering/imsech/__tests__/index.spec.d.ts +16 -0
  74. package/lib/types/functions/engineering/imsech/index.d.ts +7 -0
  75. package/lib/types/functions/engineering/imsin/__tests__/index.spec.d.ts +16 -0
  76. package/lib/types/functions/engineering/imsin/index.d.ts +7 -0
  77. package/lib/types/functions/engineering/imsinh/__tests__/index.spec.d.ts +16 -0
  78. package/lib/types/functions/engineering/imsinh/index.d.ts +7 -0
  79. package/lib/types/functions/engineering/imsqrt/__tests__/index.spec.d.ts +16 -0
  80. package/lib/types/functions/engineering/imsqrt/index.d.ts +7 -0
  81. package/lib/types/functions/engineering/imsub/__tests__/index.spec.d.ts +16 -0
  82. package/lib/types/functions/engineering/imsub/index.d.ts +7 -0
  83. package/lib/types/functions/engineering/imsum/__tests__/index.spec.d.ts +16 -0
  84. package/lib/types/functions/engineering/imsum/index.d.ts +8 -0
  85. package/lib/types/functions/engineering/imtan/__tests__/index.spec.d.ts +16 -0
  86. package/lib/types/functions/engineering/imtan/index.d.ts +7 -0
  87. package/lib/types/functions/engineering/oct2bin/index.d.ts +2 -3
  88. package/lib/types/functions/engineering/oct2dec/index.d.ts +2 -3
  89. package/lib/types/functions/engineering/oct2hex/index.d.ts +2 -3
  90. package/lib/types/functions/financial/accrint/index.d.ts +2 -3
  91. package/lib/types/functions/financial/accrintm/index.d.ts +2 -3
  92. package/lib/types/functions/financial/amorlinc/index.d.ts +2 -3
  93. package/lib/types/functions/financial/coupdaybs/index.d.ts +2 -3
  94. package/lib/types/functions/financial/coupdays/index.d.ts +2 -3
  95. package/lib/types/functions/financial/coupdaysnc/index.d.ts +2 -3
  96. package/lib/types/functions/financial/coupncd/index.d.ts +2 -3
  97. package/lib/types/functions/financial/coupnum/index.d.ts +2 -3
  98. package/lib/types/functions/financial/couppcd/index.d.ts +2 -3
  99. package/lib/types/functions/financial/cumipmt/index.d.ts +2 -3
  100. package/lib/types/functions/financial/cumprinc/index.d.ts +2 -3
  101. package/lib/types/functions/financial/ddb/index.d.ts +0 -1
  102. package/lib/types/functions/financial/disc/index.d.ts +2 -3
  103. package/lib/types/functions/financial/dollarde/index.d.ts +2 -3
  104. package/lib/types/functions/financial/dollarfr/index.d.ts +2 -3
  105. package/lib/types/functions/financial/duration/__tests__/index.spec.d.ts +16 -0
  106. package/lib/types/functions/financial/duration/index.d.ts +7 -0
  107. package/lib/types/functions/financial/effect/index.d.ts +2 -3
  108. package/lib/types/functions/financial/function-map.d.ts +7 -3
  109. package/lib/types/functions/financial/fvschedule/index.d.ts +2 -3
  110. package/lib/types/functions/financial/intrate/index.d.ts +2 -3
  111. package/lib/types/functions/financial/irr/__tests__/index.spec.d.ts +16 -0
  112. package/lib/types/functions/financial/irr/index.d.ts +10 -0
  113. package/lib/types/functions/financial/mduration/__tests__/index.spec.d.ts +16 -0
  114. package/lib/types/functions/financial/mduration/index.d.ts +7 -0
  115. package/lib/types/functions/financial/mirr/__tests__/index.spec.d.ts +16 -0
  116. package/lib/types/functions/financial/mirr/index.d.ts +11 -0
  117. package/lib/types/functions/financial/nominal/index.d.ts +2 -3
  118. package/lib/types/functions/financial/npv/__tests__/index.spec.d.ts +16 -0
  119. package/lib/types/functions/financial/npv/index.d.ts +9 -0
  120. package/lib/types/functions/financial/oddfprice/__tests__/index.spec.d.ts +16 -0
  121. package/lib/types/functions/financial/oddfprice/index.d.ts +9 -0
  122. package/lib/types/functions/financial/oddfyield/__tests__/index.spec.d.ts +16 -0
  123. package/lib/types/functions/financial/oddfyield/index.d.ts +10 -0
  124. package/lib/types/functions/financial/oddlprice/__tests__/index.spec.d.ts +16 -0
  125. package/lib/types/functions/financial/oddlprice/index.d.ts +11 -0
  126. package/lib/types/functions/financial/oddlyield/__tests__/index.spec.d.ts +16 -0
  127. package/lib/types/functions/financial/oddlyield/index.d.ts +11 -0
  128. package/lib/types/functions/financial/pduration/__tests__/index.spec.d.ts +16 -0
  129. package/lib/types/functions/financial/pduration/index.d.ts +7 -0
  130. package/lib/types/functions/financial/price/__tests__/index.spec.d.ts +16 -0
  131. package/lib/types/functions/financial/price/index.d.ts +7 -0
  132. package/lib/types/functions/financial/pricedisc/__tests__/index.spec.d.ts +16 -0
  133. package/lib/types/functions/financial/pricedisc/index.d.ts +7 -0
  134. package/lib/types/functions/financial/pricemat/__tests__/index.spec.d.ts +16 -0
  135. package/lib/types/functions/financial/pricemat/index.d.ts +8 -0
  136. package/lib/types/functions/financial/received/__tests__/index.spec.d.ts +16 -0
  137. package/lib/types/functions/financial/received/index.d.ts +7 -0
  138. package/lib/types/functions/financial/rri/__tests__/index.spec.d.ts +16 -0
  139. package/lib/types/functions/financial/rri/index.d.ts +7 -0
  140. package/lib/types/functions/financial/sln/__tests__/index.spec.d.ts +16 -0
  141. package/lib/types/functions/financial/sln/index.d.ts +7 -0
  142. package/lib/types/functions/financial/syd/__tests__/index.spec.d.ts +16 -0
  143. package/lib/types/functions/financial/syd/index.d.ts +7 -0
  144. package/lib/types/functions/financial/tbilleq/__tests__/index.spec.d.ts +16 -0
  145. package/lib/types/functions/financial/tbilleq/index.d.ts +7 -0
  146. package/lib/types/functions/financial/tbillprice/__tests__/index.spec.d.ts +16 -0
  147. package/lib/types/functions/financial/tbillprice/index.d.ts +7 -0
  148. package/lib/types/functions/financial/tbillyield/__tests__/index.spec.d.ts +16 -0
  149. package/lib/types/functions/financial/tbillyield/index.d.ts +7 -0
  150. package/lib/types/functions/financial/vdb/__tests__/index.spec.d.ts +16 -0
  151. package/lib/types/functions/financial/vdb/index.d.ts +10 -0
  152. package/lib/types/functions/financial/xirr/__tests__/index.spec.d.ts +16 -0
  153. package/lib/types/functions/financial/xirr/index.d.ts +12 -0
  154. package/lib/types/functions/financial/xnpv/__tests__/index.spec.d.ts +16 -0
  155. package/lib/types/functions/financial/xnpv/index.d.ts +10 -0
  156. package/lib/types/functions/financial/yield/__tests__/index.spec.d.ts +16 -0
  157. package/lib/types/functions/financial/yield/index.d.ts +8 -0
  158. package/lib/types/functions/financial/yielddisc/__tests__/index.spec.d.ts +16 -0
  159. package/lib/types/functions/financial/yielddisc/index.d.ts +7 -0
  160. package/lib/types/functions/financial/yieldmat/__tests__/index.spec.d.ts +16 -0
  161. package/lib/types/functions/financial/yieldmat/index.d.ts +8 -0
  162. package/lib/types/services/function.service.d.ts +1 -1
  163. package/lib/umd/index.js +7 -1
  164. package/package.json +8 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/engine-formula",
3
- "version": "0.2.9",
3
+ "version": "0.2.11",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal base-formula-engine",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -47,20 +47,21 @@
47
47
  ],
48
48
  "peerDependencies": {
49
49
  "rxjs": ">=7.0.0",
50
- "@univerjs/core": "0.2.9",
51
- "@univerjs/rpc": "0.2.9"
50
+ "@univerjs/core": "0.2.11",
51
+ "@univerjs/rpc": "0.2.11"
52
52
  },
53
53
  "dependencies": {
54
+ "decimal.js": "^10.4.3",
54
55
  "numfmt": "^2.5.2"
55
56
  },
56
57
  "devDependencies": {
57
58
  "rxjs": "^7.8.1",
58
59
  "typescript": "^5.5.4",
59
- "vite": "^5.4.0",
60
+ "vite": "^5.4.2",
60
61
  "vitest": "^2.0.5",
61
- "@univerjs/core": "0.2.9",
62
- "@univerjs/shared": "0.2.9",
63
- "@univerjs/rpc": "0.2.9"
62
+ "@univerjs/core": "0.2.11",
63
+ "@univerjs/rpc": "0.2.11",
64
+ "@univerjs/shared": "0.2.11"
64
65
  },
65
66
  "univerSpace": {
66
67
  ".": {