@univerjs/sheets-formula 0.4.2 → 0.5.0-alpha.0

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 (41) hide show
  1. package/lib/cjs/facade.js +1 -0
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/en-US.js +1 -0
  4. package/lib/cjs/locale/fa-IR.js +1 -0
  5. package/lib/cjs/locale/ru-RU.js +1 -0
  6. package/lib/cjs/locale/vi-VN.js +1 -0
  7. package/lib/cjs/locale/zh-CN.js +1 -0
  8. package/lib/cjs/locale/zh-TW.js +1 -0
  9. package/lib/es/facade.js +40 -0
  10. package/lib/es/index.js +3738 -3363
  11. package/lib/es/locale/en-US.js +14 -0
  12. package/lib/es/locale/fa-IR.js +14 -0
  13. package/lib/es/locale/ru-RU.js +14 -0
  14. package/lib/es/locale/vi-VN.js +14 -0
  15. package/lib/es/locale/zh-CN.js +14 -0
  16. package/lib/es/locale/zh-TW.js +14 -0
  17. package/lib/types/controllers/config.schema.d.ts +18 -0
  18. package/lib/types/controllers/trigger-calculation.controller.d.ts +18 -3
  19. package/lib/types/controllers/update-formula.controller.d.ts +4 -2
  20. package/lib/types/facade/f-formula.d.ts +14 -0
  21. package/lib/types/facade/f-univer.d.ts +16 -0
  22. package/lib/types/{controllers/utils/__tests__/utils.spec.d.ts → facade/index.d.ts} +2 -1
  23. package/lib/types/index.d.ts +1 -0
  24. package/lib/types/locale/en-US.d.ts +3 -0
  25. package/lib/types/locale/fa-IR.d.ts +3 -0
  26. package/lib/types/locale/ru-RU.d.ts +3 -0
  27. package/lib/types/locale/vi-VN.d.ts +3 -0
  28. package/lib/types/locale/zh-CN.d.ts +27 -0
  29. package/lib/types/locale/zh-TW.d.ts +3 -0
  30. package/lib/types/services/formula-common.d.ts +3 -3
  31. package/lib/types/services/register-other-formula.service.d.ts +24 -1
  32. package/lib/umd/facade.js +1 -0
  33. package/lib/umd/index.js +1 -1
  34. package/lib/umd/locale/en-US.js +1 -0
  35. package/lib/umd/locale/fa-IR.js +1 -0
  36. package/lib/umd/locale/ru-RU.js +1 -0
  37. package/lib/umd/locale/vi-VN.js +1 -0
  38. package/lib/umd/locale/zh-CN.js +1 -0
  39. package/lib/umd/locale/zh-TW.js +1 -0
  40. package/package.json +36 -18
  41. package/lib/types/controllers/utils/utils.d.ts +0 -15
@@ -0,0 +1 @@
1
+ (function(e,n){typeof exports=="object"&&typeof module<"u"?module.exports=n():typeof define=="function"&&define.amd?define(n):(e=typeof globalThis<"u"?globalThis:e||self,e.UniverSheetsFormulaEnUS=n())})(this,function(){"use strict";return{formula:{progress:{analyzing:"Analyzing",calculating:"Calculating","array-analysis":"Array Analysis","array-calculation":"Array Calculation",done:"Done"}}}});
@@ -0,0 +1 @@
1
+ (function(e,n){typeof exports=="object"&&typeof module<"u"?module.exports=n():typeof define=="function"&&define.amd?define(n):(e=typeof globalThis<"u"?globalThis:e||self,e.UniverSheetsFormulaFaIR=n())})(this,function(){"use strict";return{formula:{progress:{analyzing:"در حال تحلیل",calculating:"در حال محاسبه","array-analysis":"تحلیل آرایه","array-calculation":"محاسبه آرایه",done:"تمام"}}}});
@@ -0,0 +1 @@
1
+ (function(e,n){typeof exports=="object"&&typeof module<"u"?module.exports=n():typeof define=="function"&&define.amd?define(n):(e=typeof globalThis<"u"?globalThis:e||self,e.UniverSheetsFormulaRuRU=n())})(this,function(){"use strict";return{formula:{progress:{analyzing:"Анализ",calculating:"Вычисление","array-analysis":"Анализ массива","array-calculation":"Вычисление массива",done:"Готово"}}}});
@@ -0,0 +1 @@
1
+ (function(n,e){typeof exports=="object"&&typeof module<"u"?module.exports=e():typeof define=="function"&&define.amd?define(e):(n=typeof globalThis<"u"?globalThis:n||self,n.UniverSheetsFormulaViVN=e())})(this,function(){"use strict";return{formula:{progress:{analyzing:"Đang phân tích",calculating:"Đang tính toán","array-analysis":"Phân tích mảng","array-calculation":"Tính toán mảng",done:"Hoàn tất"}}}});
@@ -0,0 +1 @@
1
+ (function(e,n){typeof exports=="object"&&typeof module<"u"?module.exports=n():typeof define=="function"&&define.amd?define(n):(e=typeof globalThis<"u"?globalThis:e||self,e.UniverSheetsFormulaZhCN=n())})(this,function(){"use strict";return{formula:{progress:{analyzing:"分析中",calculating:"计算中","array-analysis":"数组分析","array-calculation":"数组计算",done:"完成"}}}});
@@ -0,0 +1 @@
1
+ (function(e,n){typeof exports=="object"&&typeof module<"u"?module.exports=n():typeof define=="function"&&define.amd?define(n):(e=typeof globalThis<"u"?globalThis:e||self,e.UniverSheetsFormulaZhTW=n())})(this,function(){"use strict";return{formula:{progress:{analyzing:"分析中",calculating:"計算中","array-analysis":"陣列分析","array-calculation":"陣列計算",done:"完成"}}}});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/sheets-formula",
3
- "version": "0.4.2",
3
+ "version": "0.5.0-alpha.0",
4
4
  "private": false,
5
5
  "author": "DreamNum <developer@univer.ai>",
6
6
  "license": "Apache-2.0",
@@ -30,10 +30,18 @@
30
30
  "require": "./lib/cjs/*",
31
31
  "types": "./lib/types/index.d.ts"
32
32
  },
33
- "./lib/*": "./lib/*"
33
+ "./lib/*": "./lib/*",
34
+ "./facade": {
35
+ "import": "./lib/es/facade.js",
36
+ "require": "./lib/cjs/facade.js",
37
+ "types": "./lib/types/facade/index.d.ts"
38
+ },
39
+ "./locale/*": {
40
+ "import": "./lib/locale/*.js",
41
+ "types": "./lib/types/locale/*.d.ts"
42
+ }
34
43
  },
35
- "main": "./lib/cjs/index.js",
36
- "module": "./lib/es/index.js",
44
+ "main": "./lib/es/index.js",
37
45
  "types": "./lib/types/index.d.ts",
38
46
  "publishConfig": {
39
47
  "access": "public"
@@ -48,22 +56,22 @@
48
56
  "rxjs": ">=7.0.0"
49
57
  },
50
58
  "dependencies": {
51
- "@univerjs/core": "0.4.2",
52
- "@univerjs/docs": "0.4.2",
53
- "@univerjs/rpc": "0.4.2",
54
- "@univerjs/engine-formula": "0.4.2",
55
- "@univerjs/sheets": "0.4.2",
56
- "@univerjs/sheets-numfmt": "0.4.2"
59
+ "@vitejs/plugin-react": "4.3.3",
60
+ "@univerjs/core": "0.5.0-alpha.0",
61
+ "@univerjs/docs": "0.5.0-alpha.0",
62
+ "@univerjs/rpc": "0.5.0-alpha.0",
63
+ "@univerjs/engine-formula": "0.5.0-alpha.0",
64
+ "@univerjs/sheets": "0.5.0-alpha.0",
65
+ "@univerjs/sheets-numfmt": "0.5.0-alpha.0"
57
66
  },
58
67
  "devDependencies": {
59
- "less": "^4.2.0",
60
68
  "rxjs": "^7.8.1",
61
69
  "typescript": "^5.6.3",
62
- "vite": "^5.4.8",
63
- "vitest": "^2.1.2",
64
- "@univerjs-infra/shared": "0.4.2"
70
+ "vite": "^5.4.10",
71
+ "vitest": "^2.1.4",
72
+ "@univerjs-infra/shared": "0.5.0-alpha.0"
65
73
  },
66
- "univerSpace": {
74
+ "space": {
67
75
  ".": {
68
76
  "import": "./lib/es/index.js",
69
77
  "require": "./lib/cjs/index.js",
@@ -74,13 +82,23 @@
74
82
  "require": "./lib/cjs/*",
75
83
  "types": "./lib/types/index.d.ts"
76
84
  },
77
- "./lib/*": "./lib/*"
85
+ "./lib/*": "./lib/*",
86
+ "./facade": {
87
+ "import": "./lib/es/facade.js",
88
+ "require": "./lib/cjs/facade.js",
89
+ "types": "./lib/types/facade/index.d.ts"
90
+ },
91
+ "./locale/*": {
92
+ "import": "./lib/locale/*.js",
93
+ "types": "./lib/types/locale/*.d.ts"
94
+ }
78
95
  },
79
96
  "scripts": {
80
97
  "test": "vitest run",
81
98
  "test:watch": "vitest",
82
99
  "coverage": "vitest run --coverage",
83
100
  "lint:types": "tsc --noEmit",
84
- "build": "tsc && vite build"
85
- }
101
+ "build": "tsx build.ts"
102
+ },
103
+ "module": "./lib/es/index.js"
86
104
  }
@@ -1,15 +0,0 @@
1
- import { ICellData, IContextService, Nullable } from '@univerjs/core';
2
- import { ErrorType } from '@univerjs/engine-formula';
3
- export declare function whenEditorStandalone(contextService: IContextService): boolean;
4
- /**
5
- * Extract the formula error from the cell
6
- * @param cell
7
- * @returns
8
- */
9
- export declare function extractFormulaError(cell: Nullable<ICellData>, isArrayFormulaCell?: boolean): ErrorType | null;
10
- /**
11
- * Extract the formula number from the cell, handle the precision issue
12
- * @param cell
13
- * @returns
14
- */
15
- export declare function extractFormulaNumber(cell: Nullable<ICellData>): number | null;