@univerjs/sheets-formula 0.2.2 → 0.2.4-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 (72) hide show
  1. package/README.md +13 -7
  2. package/lib/cjs/index.js +4 -4
  3. package/lib/es/index.js +4321 -4196
  4. package/lib/locale/en-US.json +103 -119
  5. package/lib/locale/ru-RU.json +103 -119
  6. package/lib/locale/vi-VN.json +7425 -0
  7. package/lib/locale/zh-CN.json +107 -123
  8. package/lib/locale/zh-TW.json +10292 -0
  9. package/lib/types/commands/operations/__tests__/create-command-test-bed.d.ts +7 -8
  10. package/lib/types/controllers/__tests__/create-command-test-bed.d.ts +1 -2
  11. package/lib/types/controllers/formula-clipboard.controller.d.ts +1 -2
  12. package/lib/types/controllers/formula-editor-show.controller.d.ts +7 -3
  13. package/lib/types/controllers/formula-ui.controller.d.ts +2 -2
  14. package/lib/types/controllers/menu.d.ts +1 -1
  15. package/lib/types/controllers/prompt.controller.d.ts +27 -25
  16. package/lib/types/controllers/trigger-calculation.controller.d.ts +4 -0
  17. package/lib/types/controllers/update-formula.controller.d.ts +3 -4
  18. package/lib/types/controllers/utils/ref-range-formula.d.ts +0 -17
  19. package/lib/types/formula-ui-plugin.d.ts +9 -4
  20. package/lib/types/index.d.ts +2 -2
  21. package/lib/types/locale/en-US.d.ts +53 -69
  22. package/lib/types/locale/function-list/array/vi-VN.d.ts +17 -0
  23. package/lib/types/locale/function-list/array/zh-TW.d.ts +17 -0
  24. package/lib/types/locale/function-list/compatibility/vi-VN.d.ts +702 -0
  25. package/lib/types/locale/function-list/compatibility/zh-TW.d.ts +702 -0
  26. package/lib/types/locale/function-list/cube/vi-VN.d.ts +144 -0
  27. package/lib/types/locale/function-list/cube/zh-TW.d.ts +144 -0
  28. package/lib/types/locale/function-list/database/vi-VN.d.ts +234 -0
  29. package/lib/types/locale/function-list/database/zh-TW.d.ts +234 -0
  30. package/lib/types/locale/function-list/date/en-US.d.ts +37 -25
  31. package/lib/types/locale/function-list/date/ja-JP.d.ts +37 -25
  32. package/lib/types/locale/function-list/date/vi-VN.d.ts +379 -0
  33. package/lib/types/locale/function-list/date/zh-CN.d.ts +37 -25
  34. package/lib/types/locale/function-list/date/zh-TW.d.ts +426 -0
  35. package/lib/types/locale/function-list/engineering/vi-VN.d.ts +990 -0
  36. package/lib/types/locale/function-list/engineering/zh-TW.d.ts +990 -0
  37. package/lib/types/locale/function-list/financial/vi-VN.d.ts +954 -0
  38. package/lib/types/locale/function-list/financial/zh-TW.d.ts +1008 -0
  39. package/lib/types/locale/function-list/information/vi-VN.d.ts +3 -0
  40. package/lib/types/locale/function-list/information/zh-TW.d.ts +352 -0
  41. package/lib/types/locale/function-list/logical/vi-VN.d.ts +368 -0
  42. package/lib/types/locale/function-list/logical/zh-TW.d.ts +368 -0
  43. package/lib/types/locale/function-list/lookup/vi-VN.d.ts +188 -0
  44. package/lib/types/locale/function-list/lookup/zh-TW.d.ts +752 -0
  45. package/lib/types/locale/function-list/math/en-US.d.ts +16 -44
  46. package/lib/types/locale/function-list/math/ja-JP.d.ts +16 -44
  47. package/lib/types/locale/function-list/math/vi-VN.d.ts +3 -0
  48. package/lib/types/locale/function-list/math/zh-CN.d.ts +16 -44
  49. package/lib/types/locale/function-list/math/zh-TW.d.ts +1498 -0
  50. package/lib/types/locale/function-list/statistical/vi-VN.d.ts +394 -0
  51. package/lib/types/locale/function-list/statistical/zh-TW.d.ts +2060 -0
  52. package/lib/types/locale/function-list/text/vi-VN.d.ts +650 -0
  53. package/lib/types/locale/function-list/text/zh-TW.d.ts +852 -0
  54. package/lib/types/locale/function-list/univer/vi-VN.d.ts +17 -0
  55. package/lib/types/locale/function-list/univer/zh-TW.d.ts +17 -0
  56. package/lib/types/locale/function-list/web/vi-VN.d.ts +3 -0
  57. package/lib/types/locale/function-list/web/zh-TW.d.ts +72 -0
  58. package/lib/types/locale/ru-RU.d.ts +53 -69
  59. package/lib/types/locale/vi-VN.d.ts +6699 -0
  60. package/lib/types/locale/zh-CN.d.ts +53 -69
  61. package/lib/types/locale/zh-TW.d.ts +9288 -0
  62. package/lib/types/services/description.service.d.ts +2 -3
  63. package/lib/types/services/formula-ref-range.service.d.ts +1 -2
  64. package/lib/types/services/prompt.service.d.ts +2 -11
  65. package/lib/types/services/register-function.service.d.ts +21 -8
  66. package/lib/types/services/register-other-formula.service.d.ts +1 -0
  67. package/lib/types/services/remote/remote-register-function.service.d.ts +17 -0
  68. package/lib/types/services/render-services/ref-selections.render-service.d.ts +36 -0
  69. package/lib/types/views/prompt/resize-scroll-observer.d.ts +18 -0
  70. package/lib/umd/index.js +4 -4
  71. package/package.json +24 -24
  72. package/lib/types/services/formula-custom-function.service.d.ts +0 -19
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/sheets-formula",
3
- "version": "0.2.2",
3
+ "version": "0.2.4-alpha.0",
4
4
  "private": false,
5
5
  "author": "DreamNum <developer@univer.ai>",
6
6
  "license": "Apache-2.0",
@@ -49,41 +49,41 @@
49
49
  "lib"
50
50
  ],
51
51
  "peerDependencies": {
52
- "@wendellhu/redi": "0.15.5",
53
52
  "react": "^16.9.0 || ^17.0.0 || ^18.0.0",
54
53
  "rxjs": ">=7.0.0",
55
- "@univerjs/core": "0.2.2",
56
- "@univerjs/design": "0.2.2",
57
- "@univerjs/docs": "0.2.2",
58
- "@univerjs/engine-render": "0.2.2",
59
- "@univerjs/sheets-ui": "0.2.2",
60
- "@univerjs/sheets": "0.2.2",
61
- "@univerjs/engine-formula": "0.2.2",
62
- "@univerjs/ui": "0.2.2"
54
+ "@univerjs/core": "0.2.4-alpha.0",
55
+ "@univerjs/docs": "0.2.4-alpha.0",
56
+ "@univerjs/design": "0.2.4-alpha.0",
57
+ "@univerjs/engine-formula": "0.2.4-alpha.0",
58
+ "@univerjs/rpc": "0.2.4-alpha.0",
59
+ "@univerjs/engine-render": "0.2.4-alpha.0",
60
+ "@univerjs/sheets": "0.2.4-alpha.0",
61
+ "@univerjs/sheets-ui": "0.2.4-alpha.0",
62
+ "@univerjs/ui": "0.2.4-alpha.0"
63
63
  },
64
64
  "dependencies": {
65
- "@univerjs/icons": "^0.1.58"
65
+ "@univerjs/icons": "^0.1.64"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@types/react": "^18.3.3",
69
69
  "@vitejs/plugin-react": "^4.3.1",
70
- "@wendellhu/redi": "0.15.5",
71
70
  "less": "^4.2.0",
72
71
  "react": "18.3.1",
73
72
  "rxjs": "^7.8.1",
74
73
  "typescript": "^5.5.3",
75
- "vite": "^5.3.3",
76
- "vitest": "^1.6.0",
77
- "@univerjs/core": "0.2.2",
78
- "@univerjs/docs": "0.2.2",
79
- "@univerjs/design": "0.2.2",
80
- "@univerjs/engine-formula": "0.2.2",
81
- "@univerjs/shared": "0.2.2",
82
- "@univerjs/engine-render": "0.2.2",
83
- "@univerjs/sheets": "0.2.2",
84
- "@univerjs/sheets-numfmt": "0.2.2",
85
- "@univerjs/sheets-ui": "0.2.2",
86
- "@univerjs/ui": "0.2.2"
74
+ "vite": "^5.3.4",
75
+ "vitest": "^2.0.3",
76
+ "@univerjs/core": "0.2.4-alpha.0",
77
+ "@univerjs/design": "0.2.4-alpha.0",
78
+ "@univerjs/docs": "0.2.4-alpha.0",
79
+ "@univerjs/engine-formula": "0.2.4-alpha.0",
80
+ "@univerjs/engine-render": "0.2.4-alpha.0",
81
+ "@univerjs/rpc": "0.2.4-alpha.0",
82
+ "@univerjs/shared": "0.2.4-alpha.0",
83
+ "@univerjs/sheets-numfmt": "0.2.4-alpha.0",
84
+ "@univerjs/sheets-ui": "0.2.4-alpha.0",
85
+ "@univerjs/sheets": "0.2.4-alpha.0",
86
+ "@univerjs/ui": "0.2.4-alpha.0"
87
87
  },
88
88
  "univerSpace": {
89
89
  ".": {
@@ -1,19 +0,0 @@
1
- import { Disposable, ICommandService } from '@univerjs/core';
2
- import { PrimitiveValueType } from '@univerjs/engine-formula';
3
- import { IDisposable } from '@wendellhu/redi';
4
-
5
- export type IRegisterFunction = (...arg: Array<PrimitiveValueType | PrimitiveValueType[][]>) => PrimitiveValueType | PrimitiveValueType[][];
6
- export type IRegisterFunctionList = [[IRegisterFunction, string, string?]];
7
- export interface IFormulaCustomFunctionService {
8
- /**
9
- * register descriptions
10
- * @param functionList
11
- */
12
- registerFunctions(functionList: IRegisterFunctionList): IDisposable;
13
- }
14
- export declare const IFormulaCustomFunctionService: import('@wendellhu/redi').IdentifierDecorator<IFormulaCustomFunctionService>;
15
- export declare class FormulaCustomFunctionService extends Disposable implements IFormulaCustomFunctionService {
16
- private readonly _commandService;
17
- constructor(_commandService: ICommandService);
18
- registerFunctions(functionList: IRegisterFunctionList): IDisposable;
19
- }