@univerjs/engine-formula 0.1.0-beta.4 → 0.1.1

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 +3802 -3310
  3. package/lib/types/basics/__tests__/date.spec.d.ts +16 -0
  4. package/lib/types/basics/common.d.ts +6 -0
  5. package/lib/types/basics/date.d.ts +30 -0
  6. package/lib/types/basics/object-class-type.d.ts +3 -0
  7. package/lib/types/commands/mutations/set-formula-calculation.mutation.d.ts +2 -1
  8. package/lib/types/commands/mutations/set-numfmt-formula-data.mutation.d.ts +21 -0
  9. package/lib/types/engine/ast-node/function-node.d.ts +12 -0
  10. package/lib/types/engine/reference-object/base-reference-object.d.ts +4 -1
  11. package/lib/types/engine/utils/__tests__/cell.spec.d.ts +16 -0
  12. package/lib/types/engine/utils/cell.d.ts +17 -0
  13. package/lib/types/engine/value-object/array-value-object.d.ts +8 -0
  14. package/lib/types/functions/__tests__/nested-functions.spec.d.ts +16 -0
  15. package/lib/types/functions/base-function.d.ts +7 -0
  16. package/lib/types/functions/date/date/__tests__/index.spec.d.ts +16 -0
  17. package/lib/types/functions/date/date/index.d.ts +20 -0
  18. package/lib/types/functions/date/day/__tests__/index.spec.d.ts +16 -0
  19. package/lib/types/functions/date/day/index.d.ts +20 -0
  20. package/lib/types/functions/date/edate/__tests__/index.spec.d.ts +16 -0
  21. package/lib/types/functions/date/edate/index.d.ts +23 -0
  22. package/lib/types/functions/date/function-map.d.ts +3 -1
  23. package/lib/types/functions/date/month/__tests__/index.spec.d.ts +16 -0
  24. package/lib/types/functions/date/month/index.d.ts +20 -0
  25. package/lib/types/functions/date/today/__tests__/index.spec.d.ts +16 -0
  26. package/lib/types/functions/date/today/index.d.ts +22 -0
  27. package/lib/types/functions/date/year/__tests__/index.spec.d.ts +16 -0
  28. package/lib/types/functions/date/year/index.d.ts +20 -0
  29. package/lib/types/functions/information/isblank/index.d.ts +1 -1
  30. package/lib/types/functions/logical/iferror/index.d.ts +1 -1
  31. package/lib/types/functions/lookup/address/index.d.ts +2 -3
  32. package/lib/types/functions/lookup/function-map.d.ts +1 -4
  33. package/lib/types/functions/lookup/lookup/index.d.ts +1 -1
  34. package/lib/types/functions/lookup/match/__tests__/index.spec.d.ts +16 -0
  35. package/lib/types/functions/lookup/match/index.d.ts +23 -0
  36. package/lib/types/functions/lookup/offset/index.d.ts +1 -2
  37. package/lib/types/functions/lookup/xmatch/__tests__/index.spec.d.ts +16 -0
  38. package/lib/types/functions/lookup/xmatch/index.d.ts +23 -0
  39. package/lib/types/functions/math/abs/index.d.ts +1 -2
  40. package/lib/types/functions/math/acos/index.d.ts +1 -2
  41. package/lib/types/functions/math/acosh/index.d.ts +1 -2
  42. package/lib/types/functions/math/acot/index.d.ts +1 -2
  43. package/lib/types/functions/meta/compare/index.d.ts +1 -1
  44. package/lib/types/functions/meta/multiply/index.d.ts +1 -1
  45. package/lib/types/functions/statistical/average/index.d.ts +1 -1
  46. package/lib/types/functions/statistical/count/index.d.ts +1 -1
  47. package/lib/types/functions/statistical/counta/index.d.ts +1 -1
  48. package/lib/types/functions/statistical/max/index.d.ts +1 -1
  49. package/lib/types/index.d.ts +3 -1
  50. package/lib/types/models/formula-data.model.d.ts +9 -3
  51. package/lib/types/services/current-data.service.d.ts +3 -1
  52. package/lib/types/services/runtime.service.d.ts +5 -2
  53. package/lib/umd/index.js +1 -1
  54. package/package.json +22 -9
package/package.json CHANGED
@@ -1,10 +1,22 @@
1
1
  {
2
2
  "name": "@univerjs/engine-formula",
3
- "version": "0.1.0-beta.4",
3
+ "version": "0.1.1",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal base-formula-engine",
6
6
  "author": "DreamNum <developer@univer.ai>",
7
7
  "license": "Apache-2.0",
8
+ "funding": {
9
+ "type": "opencollective",
10
+ "url": "https://opencollective.com/univer"
11
+ },
12
+ "homepage": "https://univer.ai",
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "https://github.com/dream-num/univer"
16
+ },
17
+ "bugs": {
18
+ "url": "https://github.com/dream-num/univer/issues"
19
+ },
8
20
  "keywords": [],
9
21
  "exports": {
10
22
  ".": {
@@ -16,7 +28,8 @@
16
28
  "import": "./lib/es/*",
17
29
  "require": "./lib/cjs/*",
18
30
  "types": "./lib/types/index.d.ts"
19
- }
31
+ },
32
+ "./lib/*": "./lib/*"
20
33
  },
21
34
  "main": "./lib/cjs/index.js",
22
35
  "module": "./lib/es/index.js",
@@ -35,23 +48,23 @@
35
48
  "npm": ">=8.0.0"
36
49
  },
37
50
  "peerDependencies": {
38
- "@wendellhu/redi": ">=0.12.13",
51
+ "@wendellhu/redi": "^0.13.0",
39
52
  "rxjs": ">=7.0.0",
40
- "@univerjs/core": "0.1.0-beta.4"
53
+ "@univerjs/core": "0.1.1"
41
54
  },
42
55
  "dependencies": {
43
56
  "big.js": "^6.2.1"
44
57
  },
45
58
  "devDependencies": {
46
59
  "@types/big.js": "^6.2.2",
47
- "@wendellhu/redi": "^0.12.13",
60
+ "@wendellhu/redi": "^0.13.0",
48
61
  "less": "^4.2.0",
49
62
  "rxjs": "^7.8.1",
50
63
  "typescript": "^5.3.3",
51
- "vite": "^5.0.12",
52
- "vitest": "^1.2.1",
53
- "@univerjs/core": "0.1.0-beta.4",
54
- "@univerjs/shared": "0.1.0-beta.4"
64
+ "vite": "^5.1.4",
65
+ "vitest": "^1.3.1",
66
+ "@univerjs/core": "0.1.1",
67
+ "@univerjs/shared": "0.1.1"
55
68
  },
56
69
  "scripts": {
57
70
  "test": "vitest run",