@univerjs/engine-formula 0.1.2 → 0.1.4

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 (54) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/es/index.js +5872 -4638
  3. package/lib/types/basics/common.d.ts +11 -4
  4. package/lib/types/basics/date.d.ts +1 -1
  5. package/lib/types/basics/format.d.ts +24 -0
  6. package/lib/types/basics/inverted-index-cache.d.ts +2 -2
  7. package/lib/types/basics/match-token.d.ts +5 -0
  8. package/lib/types/basics/object-class-type.d.ts +4 -0
  9. package/lib/types/basics/runtime.d.ts +2 -1
  10. package/lib/types/basics/token-type.d.ts +1 -0
  11. package/lib/types/basics/token.d.ts +1 -0
  12. package/lib/types/commands/mutations/set-formula-calculation.mutation.d.ts +2 -2
  13. package/lib/types/engine/analysis/lexer-tree-builder.d.ts +5 -1
  14. package/lib/types/engine/analysis/parser.d.ts +0 -1
  15. package/lib/types/engine/ast-node/reference-node.d.ts +3 -3
  16. package/lib/types/engine/dependency/dependency-tree.d.ts +20 -4
  17. package/lib/types/engine/dependency/formula-dependency.d.ts +0 -6
  18. package/lib/types/engine/reference-object/base-reference-object.d.ts +8 -6
  19. package/lib/types/engine/utils/ast-node-tool.d.ts +18 -0
  20. package/lib/types/engine/utils/char-kit.d.ts +25 -0
  21. package/lib/types/engine/utils/compare.d.ts +1 -0
  22. package/lib/types/engine/utils/object-compare.d.ts +0 -1
  23. package/lib/types/engine/utils/prefixHandler.d.ts +24 -0
  24. package/lib/types/engine/utils/r1c1-reference.d.ts +2 -3
  25. package/lib/types/engine/utils/reference.d.ts +4 -9
  26. package/lib/types/engine/value-object/__tests__/array-value-divided.spec.d.ts +16 -0
  27. package/lib/types/engine/value-object/__tests__/array-value-minus.spec.d.ts +16 -0
  28. package/lib/types/engine/value-object/__tests__/array-value-multiply.spec.d.ts +16 -0
  29. package/lib/types/engine/value-object/__tests__/array-value-plus.spec.d.ts +16 -0
  30. package/lib/types/engine/value-object/array-value-object.d.ts +7 -7
  31. package/lib/types/engine/value-object/base-value-object.d.ts +9 -4
  32. package/lib/types/engine/value-object/cube-value-object.d.ts +30 -0
  33. package/lib/types/engine/value-object/lambda-value-object.d.ts +1 -0
  34. package/lib/types/engine/value-object/primitive-object.d.ts +25 -4
  35. package/lib/types/functions/base-function.d.ts +4 -9
  36. package/lib/types/functions/logical/or/__tests__/index.spec.d.ts +16 -0
  37. package/lib/types/functions/logical/or/index.d.ts +20 -0
  38. package/lib/types/functions/lookup/function-map.d.ts +1 -4
  39. package/lib/types/functions/lookup/index/index.d.ts +11 -2
  40. package/lib/types/functions/lookup/offset/index.d.ts +2 -2
  41. package/lib/types/functions/meta/cube/index.d.ts +20 -0
  42. package/lib/types/functions/meta/function-map.d.ts +2 -2
  43. package/lib/types/functions/meta/function-names.d.ts +2 -1
  44. package/lib/types/functions/text/len/__test__/index.spec.d.ts +16 -0
  45. package/lib/types/functions/text/len/index.d.ts +21 -0
  46. package/lib/types/functions/text/lenb/__test__/index.spec.d.ts +16 -0
  47. package/lib/types/functions/text/lenb/index.d.ts +21 -0
  48. package/lib/types/functions/text/text/__test__/index.spec.d.ts +16 -0
  49. package/lib/types/functions/text/text/index.d.ts +20 -0
  50. package/lib/types/index.d.ts +4 -0
  51. package/lib/types/plugin.d.ts +1 -1
  52. package/lib/types/services/current-data.service.d.ts +3 -0
  53. package/lib/umd/index.js +1 -1
  54. package/package.json +13 -11
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/engine-formula",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal base-formula-engine",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -17,7 +17,9 @@
17
17
  "bugs": {
18
18
  "url": "https://github.com/dream-num/univer/issues"
19
19
  },
20
- "keywords": [],
20
+ "keywords": [
21
+ "univer"
22
+ ],
21
23
  "exports": {
22
24
  ".": {
23
25
  "import": "./lib/es/index.js",
@@ -48,23 +50,23 @@
48
50
  "npm": ">=8.0.0"
49
51
  },
50
52
  "peerDependencies": {
51
- "@wendellhu/redi": "^0.13.0",
53
+ "@wendellhu/redi": "0.13.0",
52
54
  "rxjs": ">=7.0.0",
53
- "@univerjs/core": "0.1.2"
55
+ "@univerjs/core": "0.1.4"
54
56
  },
55
57
  "dependencies": {
56
- "big.js": "^6.2.1"
58
+ "big.js": "^6.2.1",
59
+ "numfmt": "^2.5.2"
57
60
  },
58
61
  "devDependencies": {
59
62
  "@types/big.js": "^6.2.2",
60
63
  "@wendellhu/redi": "^0.13.0",
61
- "less": "^4.2.0",
62
64
  "rxjs": "^7.8.1",
63
- "typescript": "^5.3.3",
64
- "vite": "^5.1.4",
65
- "vitest": "^1.3.1",
66
- "@univerjs/shared": "0.1.2",
67
- "@univerjs/core": "0.1.2"
65
+ "typescript": "^5.4.2",
66
+ "vite": "^5.1.6",
67
+ "vitest": "^1.4.0",
68
+ "@univerjs/core": "0.1.4",
69
+ "@univerjs/shared": "0.1.4"
68
70
  },
69
71
  "scripts": {
70
72
  "test": "vitest run",