@univerjs/sheets-formula 0.2.6 → 0.2.8

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 (117) hide show
  1. package/lib/cjs/index.js +4 -4
  2. package/lib/es/index.js +1185 -724
  3. package/lib/locale/en-US.json +706 -428
  4. package/lib/locale/ru-RU.json +703 -425
  5. package/lib/locale/vi-VN.json +2644 -1855
  6. package/lib/locale/zh-CN.json +750 -472
  7. package/lib/locale/zh-TW.json +834 -588
  8. package/lib/types/commands/commands/formula-clipboard.command.d.ts +0 -1
  9. package/lib/types/commands/commands/insert-function.command.d.ts +0 -1
  10. package/lib/types/commands/mutations/formula.mutation.d.ts +0 -1
  11. package/lib/types/commands/operations/__tests__/create-command-test-bed.d.ts +0 -1
  12. package/lib/types/commands/operations/editor-formula.operation.d.ts +0 -1
  13. package/lib/types/commands/operations/help-function.operation.d.ts +0 -1
  14. package/lib/types/commands/operations/insert-function.operation.d.ts +0 -1
  15. package/lib/types/commands/operations/more-functions.operation.d.ts +0 -1
  16. package/lib/types/commands/operations/reference-absolute.operation.d.ts +0 -1
  17. package/lib/types/commands/operations/search-function.operation.d.ts +0 -1
  18. package/lib/types/common/selection.d.ts +0 -1
  19. package/lib/types/controllers/__tests__/create-command-test-bed.d.ts +0 -1
  20. package/lib/types/controllers/active-dirty.controller.d.ts +0 -1
  21. package/lib/types/controllers/array-formula-display.controller.d.ts +0 -1
  22. package/lib/types/controllers/defined-name.controller.d.ts +0 -1
  23. package/lib/types/controllers/formula-alert-render.controller.d.ts +0 -1
  24. package/lib/types/controllers/formula-auto-fill.controller.d.ts +0 -1
  25. package/lib/types/controllers/formula-clipboard.controller.d.ts +0 -1
  26. package/lib/types/controllers/formula-editor-show.controller.d.ts +0 -1
  27. package/lib/types/controllers/formula-render.controller.d.ts +0 -1
  28. package/lib/types/controllers/formula-ui.controller.d.ts +0 -1
  29. package/lib/types/controllers/menu.d.ts +0 -1
  30. package/lib/types/controllers/prompt.controller.d.ts +3 -2
  31. package/lib/types/controllers/shortcuts/prompt.shortcut.d.ts +0 -1
  32. package/lib/types/controllers/trigger-calculation.controller.d.ts +0 -1
  33. package/lib/types/controllers/update-formula.controller.d.ts +0 -1
  34. package/lib/types/controllers/utils/offset-formula-data.d.ts +0 -1
  35. package/lib/types/controllers/utils/ref-range-formula.d.ts +0 -1
  36. package/lib/types/controllers/utils/utils.d.ts +0 -1
  37. package/lib/types/formula-ui-plugin.d.ts +0 -1
  38. package/lib/types/index.d.ts +1 -0
  39. package/lib/types/locale/en-US.d.ts +440 -162
  40. package/lib/types/locale/function-list/array/ru-RU.d.ts +0 -1
  41. package/lib/types/locale/function-list/compatibility/ru-RU.d.ts +0 -1
  42. package/lib/types/locale/function-list/date/ru-RU.d.ts +0 -1
  43. package/lib/types/locale/function-list/date/vi-VN.d.ts +105 -26
  44. package/lib/types/locale/function-list/date/zh-TW.d.ts +32 -8
  45. package/lib/types/locale/function-list/engineering/en-US.d.ts +50 -66
  46. package/lib/types/locale/function-list/engineering/ja-JP.d.ts +50 -66
  47. package/lib/types/locale/function-list/engineering/ru-RU.d.ts +0 -1
  48. package/lib/types/locale/function-list/engineering/vi-VN.d.ts +50 -66
  49. package/lib/types/locale/function-list/engineering/zh-CN.d.ts +50 -66
  50. package/lib/types/locale/function-list/engineering/zh-TW.d.ts +50 -66
  51. package/lib/types/locale/function-list/financial/en-US.d.ts +344 -56
  52. package/lib/types/locale/function-list/financial/ja-JP.d.ts +344 -56
  53. package/lib/types/locale/function-list/financial/ru-RU.d.ts +0 -1
  54. package/lib/types/locale/function-list/financial/vi-VN.d.ts +344 -56
  55. package/lib/types/locale/function-list/financial/zh-CN.d.ts +344 -56
  56. package/lib/types/locale/function-list/financial/zh-TW.d.ts +344 -56
  57. package/lib/types/locale/function-list/information/ja-JP.d.ts +8 -40
  58. package/lib/types/locale/function-list/information/ru-RU.d.ts +0 -1
  59. package/lib/types/locale/function-list/information/vi-VN.d.ts +218 -3
  60. package/lib/types/locale/function-list/logical/en-US.d.ts +45 -35
  61. package/lib/types/locale/function-list/logical/ja-JP.d.ts +45 -35
  62. package/lib/types/locale/function-list/logical/ru-RU.d.ts +0 -1
  63. package/lib/types/locale/function-list/logical/vi-VN.d.ts +45 -35
  64. package/lib/types/locale/function-list/logical/zh-CN.d.ts +45 -35
  65. package/lib/types/locale/function-list/logical/zh-TW.d.ts +45 -35
  66. package/lib/types/locale/function-list/lookup/en-US.d.ts +1 -5
  67. package/lib/types/locale/function-list/lookup/ja-JP.d.ts +1 -5
  68. package/lib/types/locale/function-list/lookup/ru-RU.d.ts +0 -1
  69. package/lib/types/locale/function-list/lookup/vi-VN.d.ts +421 -9
  70. package/lib/types/locale/function-list/lookup/zh-CN.d.ts +1 -5
  71. package/lib/types/locale/function-list/lookup/zh-TW.d.ts +1 -5
  72. package/lib/types/locale/function-list/math/ru-RU.d.ts +0 -1
  73. package/lib/types/locale/function-list/math/vi-VN.d.ts +1022 -3
  74. package/lib/types/locale/function-list/math/zh-TW.d.ts +21 -77
  75. package/lib/types/locale/function-list/statistical/ru-RU.d.ts +0 -1
  76. package/lib/types/locale/function-list/statistical/vi-VN.d.ts +334 -0
  77. package/lib/types/locale/function-list/text/vi-VN.d.ts +135 -1
  78. package/lib/types/locale/function-list/web/vi-VN.d.ts +0 -1
  79. package/lib/types/locale/ru-RU.d.ts +440 -162
  80. package/lib/types/locale/vi-VN.d.ts +1378 -623
  81. package/lib/types/locale/zh-CN.d.ts +440 -162
  82. package/lib/types/locale/zh-TW.d.ts +493 -247
  83. package/lib/types/services/description.service.d.ts +0 -1
  84. package/lib/types/services/formula-common.d.ts +0 -1
  85. package/lib/types/services/formula-ref-range.service.d.ts +0 -1
  86. package/lib/types/services/function-list/array.d.ts +0 -1
  87. package/lib/types/services/function-list/compatibility.d.ts +0 -1
  88. package/lib/types/services/function-list/cube.d.ts +0 -1
  89. package/lib/types/services/function-list/database.d.ts +0 -1
  90. package/lib/types/services/function-list/date.d.ts +0 -1
  91. package/lib/types/services/function-list/engineering.d.ts +0 -1
  92. package/lib/types/services/function-list/financial.d.ts +0 -1
  93. package/lib/types/services/function-list/function-list.d.ts +0 -1
  94. package/lib/types/services/function-list/information.d.ts +0 -1
  95. package/lib/types/services/function-list/logical.d.ts +0 -1
  96. package/lib/types/services/function-list/lookup.d.ts +0 -1
  97. package/lib/types/services/function-list/math.d.ts +0 -1
  98. package/lib/types/services/function-list/statistical.d.ts +0 -1
  99. package/lib/types/services/function-list/text.d.ts +0 -1
  100. package/lib/types/services/function-list/univer.d.ts +0 -1
  101. package/lib/types/services/function-list/web.d.ts +0 -1
  102. package/lib/types/services/prompt.service.d.ts +5 -2
  103. package/lib/types/services/register-function.service.d.ts +0 -1
  104. package/lib/types/services/register-other-formula.service.d.ts +0 -1
  105. package/lib/types/services/remote/remote-register-function.service.d.ts +0 -1
  106. package/lib/types/services/render-services/ref-selections.render-service.d.ts +0 -1
  107. package/lib/types/services/utils.d.ts +0 -1
  108. package/lib/types/views/FormulaPromptContainer.d.ts +0 -1
  109. package/lib/types/views/more-functions/MoreFunctions.d.ts +0 -1
  110. package/lib/types/views/more-functions/function-help/FunctionHelp.d.ts +0 -1
  111. package/lib/types/views/more-functions/function-params/FunctionParams.d.ts +0 -1
  112. package/lib/types/views/more-functions/input-params/InputParams.d.ts +0 -1
  113. package/lib/types/views/more-functions/select-function/SelectFunction.d.ts +0 -1
  114. package/lib/types/views/prompt/help-function/HelpFunction.d.ts +0 -1
  115. package/lib/types/views/prompt/search-function/SearchFunction.d.ts +0 -1
  116. package/lib/umd/index.js +4 -4
  117. package/package.json +24 -24
@@ -86,11 +86,7 @@ declare const _default: {
86
86
  url: string;
87
87
  }[];
88
88
  functionParameter: {
89
- number1: {
90
- name: string;
91
- detail: string;
92
- };
93
- number2: {
89
+ value: {
94
90
  name: string;
95
91
  detail: string;
96
92
  };
@@ -104,11 +100,7 @@ declare const _default: {
104
100
  url: string;
105
101
  }[];
106
102
  functionParameter: {
107
- number1: {
108
- name: string;
109
- detail: string;
110
- };
111
- number2: {
103
+ value: {
112
104
  name: string;
113
105
  detail: string;
114
106
  };
@@ -154,11 +146,7 @@ declare const _default: {
154
146
  url: string;
155
147
  }[];
156
148
  functionParameter: {
157
- number1: {
158
- name: string;
159
- detail: string;
160
- };
161
- number2: {
149
+ value: {
162
150
  name: string;
163
151
  detail: string;
164
152
  };
@@ -172,11 +160,7 @@ declare const _default: {
172
160
  url: string;
173
161
  }[];
174
162
  functionParameter: {
175
- number1: {
176
- name: string;
177
- detail: string;
178
- };
179
- number2: {
163
+ value: {
180
164
  name: string;
181
165
  detail: string;
182
166
  };
@@ -190,11 +174,7 @@ declare const _default: {
190
174
  url: string;
191
175
  }[];
192
176
  functionParameter: {
193
- number1: {
194
- name: string;
195
- detail: string;
196
- };
197
- number2: {
177
+ value: {
198
178
  name: string;
199
179
  detail: string;
200
180
  };
@@ -208,11 +188,7 @@ declare const _default: {
208
188
  url: string;
209
189
  }[];
210
190
  functionParameter: {
211
- number1: {
212
- name: string;
213
- detail: string;
214
- };
215
- number2: {
191
+ value: {
216
192
  name: string;
217
193
  detail: string;
218
194
  };
@@ -258,11 +234,7 @@ declare const _default: {
258
234
  url: string;
259
235
  }[];
260
236
  functionParameter: {
261
- number1: {
262
- name: string;
263
- detail: string;
264
- };
265
- number2: {
237
+ value: {
266
238
  name: string;
267
239
  detail: string;
268
240
  };
@@ -276,11 +248,7 @@ declare const _default: {
276
248
  url: string;
277
249
  }[];
278
250
  functionParameter: {
279
- number1: {
280
- name: string;
281
- detail: string;
282
- };
283
- number2: {
251
+ value: {
284
252
  name: string;
285
253
  detail: string;
286
254
  };
@@ -1,3 +1,2 @@
1
1
  import { default as enUS } from './en-US';
2
-
3
2
  export default enUS;
@@ -1,3 +1,218 @@
1
- import { default as enUS } from './en-US';
2
-
3
- export default enUS;
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ declare const _default: {
17
+ CELL: {
18
+ description: string;
19
+ abstract: string;
20
+ links: {
21
+ title: string;
22
+ url: string;
23
+ }[];
24
+ functionParameter: {
25
+ infoType: {
26
+ name: string;
27
+ detail: string;
28
+ };
29
+ reference: {
30
+ name: string;
31
+ detail: string;
32
+ };
33
+ };
34
+ };
35
+ ERROR_TYPE: {
36
+ description: string;
37
+ abstract: string;
38
+ links: {
39
+ title: string;
40
+ url: string;
41
+ }[];
42
+ functionParameter: {
43
+ errorVal: {
44
+ name: string;
45
+ detail: string;
46
+ };
47
+ };
48
+ };
49
+ ISBLANK: {
50
+ description: string;
51
+ abstract: string;
52
+ links: {
53
+ title: string;
54
+ url: string;
55
+ }[];
56
+ functionParameter: {
57
+ value: {
58
+ name: string;
59
+ detail: string;
60
+ };
61
+ };
62
+ };
63
+ ISERR: {
64
+ description: string;
65
+ abstract: string;
66
+ links: {
67
+ title: string;
68
+ url: string;
69
+ }[];
70
+ functionParameter: {
71
+ value: {
72
+ name: string;
73
+ detail: string;
74
+ };
75
+ };
76
+ };
77
+ ISERROR: {
78
+ description: string;
79
+ abstract: string;
80
+ links: {
81
+ title: string;
82
+ url: string;
83
+ }[];
84
+ functionParameter: {
85
+ value: {
86
+ name: string;
87
+ detail: string;
88
+ };
89
+ };
90
+ };
91
+ ISEVEN: {
92
+ description: string;
93
+ abstract: string;
94
+ links: {
95
+ title: string;
96
+ url: string;
97
+ }[];
98
+ functionParameter: {
99
+ value: {
100
+ name: string;
101
+ detail: string;
102
+ };
103
+ };
104
+ };
105
+ ISLOGICAL: {
106
+ description: string;
107
+ abstract: string;
108
+ links: {
109
+ title: string;
110
+ url: string;
111
+ }[];
112
+ functionParameter: {
113
+ value: {
114
+ name: string;
115
+ detail: string;
116
+ };
117
+ };
118
+ };
119
+ ISNA: {
120
+ description: string;
121
+ abstract: string;
122
+ links: {
123
+ title: string;
124
+ url: string;
125
+ }[];
126
+ functionParameter: {
127
+ value: {
128
+ name: string;
129
+ detail: string;
130
+ };
131
+ };
132
+ };
133
+ ISNONTEXT: {
134
+ description: string;
135
+ abstract: string;
136
+ links: {
137
+ title: string;
138
+ url: string;
139
+ }[];
140
+ functionParameter: {
141
+ value: {
142
+ name: string;
143
+ detail: string;
144
+ };
145
+ };
146
+ };
147
+ ISNUMBER: {
148
+ description: string;
149
+ abstract: string;
150
+ links: {
151
+ title: string;
152
+ url: string;
153
+ }[];
154
+ functionParameter: {
155
+ value: {
156
+ name: string;
157
+ detail: string;
158
+ };
159
+ };
160
+ };
161
+ ISODD: {
162
+ description: string;
163
+ abstract: string;
164
+ links: {
165
+ title: string;
166
+ url: string;
167
+ }[];
168
+ functionParameter: {
169
+ value: {
170
+ name: string;
171
+ detail: string;
172
+ };
173
+ };
174
+ };
175
+ ISREF: {
176
+ description: string;
177
+ abstract: string;
178
+ links: {
179
+ title: string;
180
+ url: string;
181
+ }[];
182
+ functionParameter: {
183
+ value: {
184
+ name: string;
185
+ detail: string;
186
+ };
187
+ };
188
+ };
189
+ ISTEXT: {
190
+ description: string;
191
+ abstract: string;
192
+ links: {
193
+ title: string;
194
+ url: string;
195
+ }[];
196
+ functionParameter: {
197
+ value: {
198
+ name: string;
199
+ detail: string;
200
+ };
201
+ };
202
+ };
203
+ TYPE: {
204
+ description: string;
205
+ abstract: string;
206
+ links: {
207
+ title: string;
208
+ url: string;
209
+ }[];
210
+ functionParameter: {
211
+ value: {
212
+ name: string;
213
+ detail: string;
214
+ };
215
+ };
216
+ };
217
+ };
218
+ export default _default;
@@ -75,16 +75,7 @@ declare const _default: {
75
75
  title: string;
76
76
  url: string;
77
77
  }[];
78
- functionParameter: {
79
- number1: {
80
- name: string;
81
- detail: string;
82
- };
83
- number2: {
84
- name: string;
85
- detail: string;
86
- };
87
- };
78
+ functionParameter: {};
88
79
  };
89
80
  IF: {
90
81
  description: string;
@@ -134,11 +125,11 @@ declare const _default: {
134
125
  url: string;
135
126
  }[];
136
127
  functionParameter: {
137
- number1: {
128
+ value: {
138
129
  name: string;
139
130
  detail: string;
140
131
  };
141
- number2: {
132
+ valueIfNa: {
142
133
  name: string;
143
134
  detail: string;
144
135
  };
@@ -152,11 +143,19 @@ declare const _default: {
152
143
  url: string;
153
144
  }[];
154
145
  functionParameter: {
155
- number1: {
146
+ logicalTest1: {
156
147
  name: string;
157
148
  detail: string;
158
149
  };
159
- number2: {
150
+ valueIfTrue1: {
151
+ name: string;
152
+ detail: string;
153
+ };
154
+ logicalTest2: {
155
+ name: string;
156
+ detail: string;
157
+ };
158
+ valueIfTrue2: {
160
159
  name: string;
161
160
  detail: string;
162
161
  };
@@ -188,11 +187,23 @@ declare const _default: {
188
187
  url: string;
189
188
  }[];
190
189
  functionParameter: {
191
- number1: {
190
+ name1: {
192
191
  name: string;
193
192
  detail: string;
194
193
  };
195
- number2: {
194
+ nameValue1: {
195
+ name: string;
196
+ detail: string;
197
+ };
198
+ calculationOrName2: {
199
+ name: string;
200
+ detail: string;
201
+ };
202
+ nameValue2: {
203
+ name: string;
204
+ detail: string;
205
+ };
206
+ calculationOrName3: {
196
207
  name: string;
197
208
  detail: string;
198
209
  };
@@ -246,11 +257,7 @@ declare const _default: {
246
257
  url: string;
247
258
  }[];
248
259
  functionParameter: {
249
- number1: {
250
- name: string;
251
- detail: string;
252
- };
253
- number2: {
260
+ logical: {
254
261
  name: string;
255
262
  detail: string;
256
263
  };
@@ -318,11 +325,23 @@ declare const _default: {
318
325
  url: string;
319
326
  }[];
320
327
  functionParameter: {
321
- number1: {
328
+ expression: {
322
329
  name: string;
323
330
  detail: string;
324
331
  };
325
- number2: {
332
+ value1: {
333
+ name: string;
334
+ detail: string;
335
+ };
336
+ result1: {
337
+ name: string;
338
+ detail: string;
339
+ };
340
+ defaultOrValue2: {
341
+ name: string;
342
+ detail: string;
343
+ };
344
+ result2: {
326
345
  name: string;
327
346
  detail: string;
328
347
  };
@@ -335,16 +354,7 @@ declare const _default: {
335
354
  title: string;
336
355
  url: string;
337
356
  }[];
338
- functionParameter: {
339
- number1: {
340
- name: string;
341
- detail: string;
342
- };
343
- number2: {
344
- name: string;
345
- detail: string;
346
- };
347
- };
357
+ functionParameter: {};
348
358
  };
349
359
  XOR: {
350
360
  description: string;
@@ -354,11 +364,11 @@ declare const _default: {
354
364
  url: string;
355
365
  }[];
356
366
  functionParameter: {
357
- number1: {
367
+ logical1: {
358
368
  name: string;
359
369
  detail: string;
360
370
  };
361
- number2: {
371
+ logical2: {
362
372
  name: string;
363
373
  detail: string;
364
374
  };
@@ -75,16 +75,7 @@ declare const _default: {
75
75
  title: string;
76
76
  url: string;
77
77
  }[];
78
- functionParameter: {
79
- number1: {
80
- name: string;
81
- detail: string;
82
- };
83
- number2: {
84
- name: string;
85
- detail: string;
86
- };
87
- };
78
+ functionParameter: {};
88
79
  };
89
80
  IF: {
90
81
  description: string;
@@ -134,11 +125,11 @@ declare const _default: {
134
125
  url: string;
135
126
  }[];
136
127
  functionParameter: {
137
- number1: {
128
+ value: {
138
129
  name: string;
139
130
  detail: string;
140
131
  };
141
- number2: {
132
+ valueIfNa: {
142
133
  name: string;
143
134
  detail: string;
144
135
  };
@@ -152,11 +143,19 @@ declare const _default: {
152
143
  url: string;
153
144
  }[];
154
145
  functionParameter: {
155
- number1: {
146
+ logicalTest1: {
156
147
  name: string;
157
148
  detail: string;
158
149
  };
159
- number2: {
150
+ valueIfTrue1: {
151
+ name: string;
152
+ detail: string;
153
+ };
154
+ logicalTest2: {
155
+ name: string;
156
+ detail: string;
157
+ };
158
+ valueIfTrue2: {
160
159
  name: string;
161
160
  detail: string;
162
161
  };
@@ -188,11 +187,23 @@ declare const _default: {
188
187
  url: string;
189
188
  }[];
190
189
  functionParameter: {
191
- number1: {
190
+ name1: {
192
191
  name: string;
193
192
  detail: string;
194
193
  };
195
- number2: {
194
+ nameValue1: {
195
+ name: string;
196
+ detail: string;
197
+ };
198
+ calculationOrName2: {
199
+ name: string;
200
+ detail: string;
201
+ };
202
+ nameValue2: {
203
+ name: string;
204
+ detail: string;
205
+ };
206
+ calculationOrName3: {
196
207
  name: string;
197
208
  detail: string;
198
209
  };
@@ -246,11 +257,7 @@ declare const _default: {
246
257
  url: string;
247
258
  }[];
248
259
  functionParameter: {
249
- number1: {
250
- name: string;
251
- detail: string;
252
- };
253
- number2: {
260
+ logical: {
254
261
  name: string;
255
262
  detail: string;
256
263
  };
@@ -318,11 +325,23 @@ declare const _default: {
318
325
  url: string;
319
326
  }[];
320
327
  functionParameter: {
321
- number1: {
328
+ expression: {
322
329
  name: string;
323
330
  detail: string;
324
331
  };
325
- number2: {
332
+ value1: {
333
+ name: string;
334
+ detail: string;
335
+ };
336
+ result1: {
337
+ name: string;
338
+ detail: string;
339
+ };
340
+ defaultOrValue2: {
341
+ name: string;
342
+ detail: string;
343
+ };
344
+ result2: {
326
345
  name: string;
327
346
  detail: string;
328
347
  };
@@ -335,16 +354,7 @@ declare const _default: {
335
354
  title: string;
336
355
  url: string;
337
356
  }[];
338
- functionParameter: {
339
- number1: {
340
- name: string;
341
- detail: string;
342
- };
343
- number2: {
344
- name: string;
345
- detail: string;
346
- };
347
- };
357
+ functionParameter: {};
348
358
  };
349
359
  XOR: {
350
360
  description: string;
@@ -354,11 +364,11 @@ declare const _default: {
354
364
  url: string;
355
365
  }[];
356
366
  functionParameter: {
357
- number1: {
367
+ logical1: {
358
368
  name: string;
359
369
  detail: string;
360
370
  };
361
- number2: {
371
+ logical2: {
362
372
  name: string;
363
373
  detail: string;
364
374
  };
@@ -1,3 +1,2 @@
1
1
  import { default as enUS } from './en-US';
2
-
3
2
  export default enUS;