@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
@@ -0,0 +1,368 @@
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
+ AND: {
18
+ description: string;
19
+ abstract: string;
20
+ links: {
21
+ title: string;
22
+ url: string;
23
+ }[];
24
+ functionParameter: {
25
+ logical1: {
26
+ name: string;
27
+ detail: string;
28
+ };
29
+ logical2: {
30
+ name: string;
31
+ detail: string;
32
+ };
33
+ };
34
+ };
35
+ BYCOL: {
36
+ description: string;
37
+ abstract: string;
38
+ links: {
39
+ title: string;
40
+ url: string;
41
+ }[];
42
+ functionParameter: {
43
+ number1: {
44
+ name: string;
45
+ detail: string;
46
+ };
47
+ number2: {
48
+ name: string;
49
+ detail: string;
50
+ };
51
+ };
52
+ };
53
+ BYROW: {
54
+ description: string;
55
+ abstract: string;
56
+ links: {
57
+ title: string;
58
+ url: string;
59
+ }[];
60
+ functionParameter: {
61
+ number1: {
62
+ name: string;
63
+ detail: string;
64
+ };
65
+ number2: {
66
+ name: string;
67
+ detail: string;
68
+ };
69
+ };
70
+ };
71
+ FALSE: {
72
+ description: string;
73
+ abstract: string;
74
+ links: {
75
+ title: string;
76
+ url: string;
77
+ }[];
78
+ functionParameter: {
79
+ number1: {
80
+ name: string;
81
+ detail: string;
82
+ };
83
+ number2: {
84
+ name: string;
85
+ detail: string;
86
+ };
87
+ };
88
+ };
89
+ IF: {
90
+ description: string;
91
+ abstract: string;
92
+ links: {
93
+ title: string;
94
+ url: string;
95
+ }[];
96
+ functionParameter: {
97
+ logicalTest: {
98
+ name: string;
99
+ detail: string;
100
+ };
101
+ valueIfTrue: {
102
+ name: string;
103
+ detail: string;
104
+ };
105
+ valueIfFalse: {
106
+ name: string;
107
+ detail: string;
108
+ };
109
+ };
110
+ };
111
+ IFERROR: {
112
+ description: string;
113
+ abstract: string;
114
+ links: {
115
+ title: string;
116
+ url: string;
117
+ }[];
118
+ functionParameter: {
119
+ value: {
120
+ name: string;
121
+ detail: string;
122
+ };
123
+ valueIfError: {
124
+ name: string;
125
+ detail: string;
126
+ };
127
+ };
128
+ };
129
+ IFNA: {
130
+ description: string;
131
+ abstract: string;
132
+ links: {
133
+ title: string;
134
+ url: string;
135
+ }[];
136
+ functionParameter: {
137
+ number1: {
138
+ name: string;
139
+ detail: string;
140
+ };
141
+ number2: {
142
+ name: string;
143
+ detail: string;
144
+ };
145
+ };
146
+ };
147
+ IFS: {
148
+ description: string;
149
+ abstract: string;
150
+ links: {
151
+ title: string;
152
+ url: string;
153
+ }[];
154
+ functionParameter: {
155
+ number1: {
156
+ name: string;
157
+ detail: string;
158
+ };
159
+ number2: {
160
+ name: string;
161
+ detail: string;
162
+ };
163
+ };
164
+ };
165
+ LAMBDA: {
166
+ description: string;
167
+ abstract: string;
168
+ links: {
169
+ title: string;
170
+ url: string;
171
+ }[];
172
+ functionParameter: {
173
+ parameter: {
174
+ name: string;
175
+ detail: string;
176
+ };
177
+ calculation: {
178
+ name: string;
179
+ detail: string;
180
+ };
181
+ };
182
+ };
183
+ LET: {
184
+ description: string;
185
+ abstract: string;
186
+ links: {
187
+ title: string;
188
+ url: string;
189
+ }[];
190
+ functionParameter: {
191
+ number1: {
192
+ name: string;
193
+ detail: string;
194
+ };
195
+ number2: {
196
+ name: string;
197
+ detail: string;
198
+ };
199
+ };
200
+ };
201
+ MAKEARRAY: {
202
+ description: string;
203
+ abstract: string;
204
+ links: {
205
+ title: string;
206
+ url: string;
207
+ }[];
208
+ functionParameter: {
209
+ number1: {
210
+ name: string;
211
+ detail: string;
212
+ };
213
+ number2: {
214
+ name: string;
215
+ detail: string;
216
+ };
217
+ value3: {
218
+ name: string;
219
+ detail: string;
220
+ };
221
+ };
222
+ };
223
+ MAP: {
224
+ description: string;
225
+ abstract: string;
226
+ links: {
227
+ title: string;
228
+ url: string;
229
+ }[];
230
+ functionParameter: {
231
+ number1: {
232
+ name: string;
233
+ detail: string;
234
+ };
235
+ number2: {
236
+ name: string;
237
+ detail: string;
238
+ };
239
+ };
240
+ };
241
+ NOT: {
242
+ description: string;
243
+ abstract: string;
244
+ links: {
245
+ title: string;
246
+ url: string;
247
+ }[];
248
+ functionParameter: {
249
+ number1: {
250
+ name: string;
251
+ detail: string;
252
+ };
253
+ number2: {
254
+ name: string;
255
+ detail: string;
256
+ };
257
+ };
258
+ };
259
+ OR: {
260
+ description: string;
261
+ abstract: string;
262
+ links: {
263
+ title: string;
264
+ url: string;
265
+ }[];
266
+ functionParameter: {
267
+ logical1: {
268
+ name: string;
269
+ detail: string;
270
+ };
271
+ logical2: {
272
+ name: string;
273
+ detail: string;
274
+ };
275
+ };
276
+ };
277
+ REDUCE: {
278
+ description: string;
279
+ abstract: string;
280
+ links: {
281
+ title: string;
282
+ url: string;
283
+ }[];
284
+ functionParameter: {
285
+ number1: {
286
+ name: string;
287
+ detail: string;
288
+ };
289
+ number2: {
290
+ name: string;
291
+ detail: string;
292
+ };
293
+ };
294
+ };
295
+ SCAN: {
296
+ description: string;
297
+ abstract: string;
298
+ links: {
299
+ title: string;
300
+ url: string;
301
+ }[];
302
+ functionParameter: {
303
+ number1: {
304
+ name: string;
305
+ detail: string;
306
+ };
307
+ number2: {
308
+ name: string;
309
+ detail: string;
310
+ };
311
+ };
312
+ };
313
+ SWITCH: {
314
+ description: string;
315
+ abstract: string;
316
+ links: {
317
+ title: string;
318
+ url: string;
319
+ }[];
320
+ functionParameter: {
321
+ number1: {
322
+ name: string;
323
+ detail: string;
324
+ };
325
+ number2: {
326
+ name: string;
327
+ detail: string;
328
+ };
329
+ };
330
+ };
331
+ TRUE: {
332
+ description: string;
333
+ abstract: string;
334
+ links: {
335
+ title: string;
336
+ url: string;
337
+ }[];
338
+ functionParameter: {
339
+ number1: {
340
+ name: string;
341
+ detail: string;
342
+ };
343
+ number2: {
344
+ name: string;
345
+ detail: string;
346
+ };
347
+ };
348
+ };
349
+ XOR: {
350
+ description: string;
351
+ abstract: string;
352
+ links: {
353
+ title: string;
354
+ url: string;
355
+ }[];
356
+ functionParameter: {
357
+ number1: {
358
+ name: string;
359
+ detail: string;
360
+ };
361
+ number2: {
362
+ name: string;
363
+ detail: string;
364
+ };
365
+ };
366
+ };
367
+ };
368
+ export default _default;
@@ -0,0 +1,188 @@
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
+ ADDRESS: {
18
+ description: string;
19
+ abstract: string;
20
+ links: {
21
+ title: string;
22
+ url: string;
23
+ }[];
24
+ functionParameter: {
25
+ row_num: {
26
+ name: string;
27
+ detail: string;
28
+ };
29
+ column_num: {
30
+ name: string;
31
+ detail: string;
32
+ };
33
+ abs_num: {
34
+ name: string;
35
+ detail: string;
36
+ };
37
+ a1: {
38
+ name: string;
39
+ detail: string;
40
+ };
41
+ sheet_text: {
42
+ name: string;
43
+ detail: string;
44
+ };
45
+ };
46
+ };
47
+ AREAS: {
48
+ description: string;
49
+ abstract: string;
50
+ links: {
51
+ title: string;
52
+ url: string;
53
+ }[];
54
+ functionParameter: {
55
+ number1: {
56
+ name: string;
57
+ detail: string;
58
+ };
59
+ number2: {
60
+ name: string;
61
+ detail: string;
62
+ };
63
+ };
64
+ };
65
+ CHOOSE: {
66
+ description: string;
67
+ abstract: string;
68
+ links: {
69
+ title: string;
70
+ url: string;
71
+ }[];
72
+ functionParameter: {
73
+ indexNum: {
74
+ name: string;
75
+ detail: string;
76
+ };
77
+ value1: {
78
+ name: string;
79
+ detail: string;
80
+ };
81
+ value2: {
82
+ name: string;
83
+ detail: string;
84
+ };
85
+ };
86
+ };
87
+ CHOOSECOLS: {
88
+ description: string;
89
+ abstract: string;
90
+ links: {
91
+ title: string;
92
+ url: string;
93
+ }[];
94
+ functionParameter: {
95
+ number1: {
96
+ name: string;
97
+ detail: string;
98
+ };
99
+ number2: {
100
+ name: string;
101
+ detail: string;
102
+ };
103
+ };
104
+ };
105
+ CHOOSEROWS: {
106
+ description: string;
107
+ abstract: string;
108
+ links: {
109
+ title: string;
110
+ url: string;
111
+ }[];
112
+ functionParameter: {
113
+ number1: {
114
+ name: string;
115
+ detail: string;
116
+ };
117
+ number2: {
118
+ name: string;
119
+ detail: string;
120
+ };
121
+ };
122
+ };
123
+ COLUMN: {
124
+ description: string;
125
+ abstract: string;
126
+ links: {
127
+ title: string;
128
+ url: string;
129
+ }[];
130
+ functionParameter: {
131
+ reference: {
132
+ name: string;
133
+ detail: string;
134
+ };
135
+ };
136
+ };
137
+ COLUMNS: {
138
+ description: string;
139
+ abstract: string;
140
+ links: {
141
+ title: string;
142
+ url: string;
143
+ }[];
144
+ functionParameter: {
145
+ array: {
146
+ name: string;
147
+ detail: string;
148
+ };
149
+ };
150
+ };
151
+ DROP: {
152
+ description: string;
153
+ abstract: string;
154
+ links: {
155
+ title: string;
156
+ url: string;
157
+ }[];
158
+ functionParameter: {
159
+ number1: {
160
+ name: string;
161
+ detail: string;
162
+ };
163
+ number2: {
164
+ name: string;
165
+ detail: string;
166
+ };
167
+ };
168
+ };
169
+ EXPAND: {
170
+ description: string;
171
+ abstract: string;
172
+ links: {
173
+ title: string;
174
+ url: string;
175
+ }[];
176
+ functionParameter: {
177
+ number1: {
178
+ name: string;
179
+ detail: string;
180
+ };
181
+ number2: {
182
+ name: string;
183
+ detail: string;
184
+ };
185
+ };
186
+ };
187
+ };
188
+ export default _default;