@univerjs/sheets-formula 0.2.2 → 0.2.3

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 (62) hide show
  1. package/README.md +13 -7
  2. package/lib/cjs/index.js +4 -4
  3. package/lib/es/index.js +3908 -3854
  4. package/lib/locale/en-US.json +34 -62
  5. package/lib/locale/ru-RU.json +34 -62
  6. package/lib/locale/vi-VN.json +7425 -0
  7. package/lib/locale/zh-CN.json +38 -66
  8. package/lib/locale/zh-TW.json +10304 -0
  9. package/lib/types/controllers/formula-editor-show.controller.d.ts +7 -3
  10. package/lib/types/controllers/formula-ui.controller.d.ts +1 -0
  11. package/lib/types/controllers/prompt.controller.d.ts +18 -22
  12. package/lib/types/controllers/trigger-calculation.controller.d.ts +4 -0
  13. package/lib/types/controllers/update-formula.controller.d.ts +2 -2
  14. package/lib/types/controllers/utils/ref-range-formula.d.ts +0 -17
  15. package/lib/types/formula-ui-plugin.d.ts +8 -2
  16. package/lib/types/index.d.ts +2 -2
  17. package/lib/types/locale/en-US.d.ts +14 -42
  18. package/lib/types/locale/function-list/array/vi-VN.d.ts +17 -0
  19. package/lib/types/locale/function-list/array/zh-TW.d.ts +17 -0
  20. package/lib/types/locale/function-list/compatibility/vi-VN.d.ts +702 -0
  21. package/lib/types/locale/function-list/compatibility/zh-TW.d.ts +702 -0
  22. package/lib/types/locale/function-list/cube/vi-VN.d.ts +144 -0
  23. package/lib/types/locale/function-list/cube/zh-TW.d.ts +144 -0
  24. package/lib/types/locale/function-list/database/vi-VN.d.ts +234 -0
  25. package/lib/types/locale/function-list/database/zh-TW.d.ts +234 -0
  26. package/lib/types/locale/function-list/date/vi-VN.d.ts +379 -0
  27. package/lib/types/locale/function-list/date/zh-TW.d.ts +438 -0
  28. package/lib/types/locale/function-list/engineering/vi-VN.d.ts +990 -0
  29. package/lib/types/locale/function-list/engineering/zh-TW.d.ts +990 -0
  30. package/lib/types/locale/function-list/financial/vi-VN.d.ts +954 -0
  31. package/lib/types/locale/function-list/financial/zh-TW.d.ts +1008 -0
  32. package/lib/types/locale/function-list/information/vi-VN.d.ts +3 -0
  33. package/lib/types/locale/function-list/information/zh-TW.d.ts +352 -0
  34. package/lib/types/locale/function-list/logical/vi-VN.d.ts +368 -0
  35. package/lib/types/locale/function-list/logical/zh-TW.d.ts +368 -0
  36. package/lib/types/locale/function-list/lookup/vi-VN.d.ts +188 -0
  37. package/lib/types/locale/function-list/lookup/zh-TW.d.ts +752 -0
  38. package/lib/types/locale/function-list/math/en-US.d.ts +14 -42
  39. package/lib/types/locale/function-list/math/ja-JP.d.ts +14 -42
  40. package/lib/types/locale/function-list/math/vi-VN.d.ts +3 -0
  41. package/lib/types/locale/function-list/math/zh-CN.d.ts +14 -42
  42. package/lib/types/locale/function-list/math/zh-TW.d.ts +1498 -0
  43. package/lib/types/locale/function-list/statistical/vi-VN.d.ts +394 -0
  44. package/lib/types/locale/function-list/statistical/zh-TW.d.ts +2060 -0
  45. package/lib/types/locale/function-list/text/vi-VN.d.ts +650 -0
  46. package/lib/types/locale/function-list/text/zh-TW.d.ts +852 -0
  47. package/lib/types/locale/function-list/univer/vi-VN.d.ts +17 -0
  48. package/lib/types/locale/function-list/univer/zh-TW.d.ts +17 -0
  49. package/lib/types/locale/function-list/web/vi-VN.d.ts +3 -0
  50. package/lib/types/locale/function-list/web/zh-TW.d.ts +72 -0
  51. package/lib/types/locale/ru-RU.d.ts +14 -42
  52. package/lib/types/locale/vi-VN.d.ts +6699 -0
  53. package/lib/types/locale/zh-CN.d.ts +14 -42
  54. package/lib/types/locale/zh-TW.d.ts +9300 -0
  55. package/lib/types/services/prompt.service.d.ts +0 -6
  56. package/lib/types/services/register-function.service.d.ts +19 -5
  57. package/lib/types/services/register-other-formula.service.d.ts +1 -0
  58. package/lib/types/services/remote/remote-register-function.service.d.ts +17 -0
  59. package/lib/types/services/render-services/ref-selections.render-service.d.ts +35 -0
  60. package/lib/umd/index.js +4 -4
  61. package/package.json +21 -19
  62. package/lib/types/services/formula-custom-function.service.d.ts +0 -19
@@ -0,0 +1,3 @@
1
+ import { default as enUS } from './en-US';
2
+
3
+ export default enUS;
@@ -0,0 +1,352 @@
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
+ number1: {
26
+ name: string;
27
+ detail: string;
28
+ };
29
+ number2: {
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
+ number1: {
44
+ name: string;
45
+ detail: string;
46
+ };
47
+ number2: {
48
+ name: string;
49
+ detail: string;
50
+ };
51
+ };
52
+ };
53
+ INFO: {
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
+ ISBLANK: {
72
+ description: string;
73
+ abstract: string;
74
+ links: {
75
+ title: string;
76
+ url: string;
77
+ }[];
78
+ functionParameter: {
79
+ value: {
80
+ name: string;
81
+ detail: string;
82
+ };
83
+ };
84
+ };
85
+ ISERR: {
86
+ description: string;
87
+ abstract: string;
88
+ links: {
89
+ title: string;
90
+ url: string;
91
+ }[];
92
+ functionParameter: {
93
+ value: {
94
+ name: string;
95
+ detail: string;
96
+ };
97
+ };
98
+ };
99
+ ISERROR: {
100
+ description: string;
101
+ abstract: string;
102
+ links: {
103
+ title: string;
104
+ url: string;
105
+ }[];
106
+ functionParameter: {
107
+ value: {
108
+ name: string;
109
+ detail: string;
110
+ };
111
+ };
112
+ };
113
+ ISEVEN: {
114
+ description: string;
115
+ abstract: string;
116
+ links: {
117
+ title: string;
118
+ url: string;
119
+ }[];
120
+ functionParameter: {
121
+ value: {
122
+ name: string;
123
+ detail: string;
124
+ };
125
+ };
126
+ };
127
+ ISFORMULA: {
128
+ description: string;
129
+ abstract: string;
130
+ links: {
131
+ title: string;
132
+ url: string;
133
+ }[];
134
+ functionParameter: {
135
+ number1: {
136
+ name: string;
137
+ detail: string;
138
+ };
139
+ number2: {
140
+ name: string;
141
+ detail: string;
142
+ };
143
+ };
144
+ };
145
+ ISLOGICAL: {
146
+ description: string;
147
+ abstract: string;
148
+ links: {
149
+ title: string;
150
+ url: string;
151
+ }[];
152
+ functionParameter: {
153
+ value: {
154
+ name: string;
155
+ detail: string;
156
+ };
157
+ };
158
+ };
159
+ ISNA: {
160
+ description: string;
161
+ abstract: string;
162
+ links: {
163
+ title: string;
164
+ url: string;
165
+ }[];
166
+ functionParameter: {
167
+ value: {
168
+ name: string;
169
+ detail: string;
170
+ };
171
+ };
172
+ };
173
+ ISNONTEXT: {
174
+ description: string;
175
+ abstract: string;
176
+ links: {
177
+ title: string;
178
+ url: string;
179
+ }[];
180
+ functionParameter: {
181
+ value: {
182
+ name: string;
183
+ detail: string;
184
+ };
185
+ };
186
+ };
187
+ ISNUMBER: {
188
+ description: string;
189
+ abstract: string;
190
+ links: {
191
+ title: string;
192
+ url: string;
193
+ }[];
194
+ functionParameter: {
195
+ value: {
196
+ name: string;
197
+ detail: string;
198
+ };
199
+ };
200
+ };
201
+ ISODD: {
202
+ description: string;
203
+ abstract: string;
204
+ links: {
205
+ title: string;
206
+ url: string;
207
+ }[];
208
+ functionParameter: {
209
+ value: {
210
+ name: string;
211
+ detail: string;
212
+ };
213
+ };
214
+ };
215
+ ISOMITTED: {
216
+ description: string;
217
+ abstract: string;
218
+ links: {
219
+ title: string;
220
+ url: string;
221
+ }[];
222
+ functionParameter: {
223
+ number1: {
224
+ name: string;
225
+ detail: string;
226
+ };
227
+ number2: {
228
+ name: string;
229
+ detail: string;
230
+ };
231
+ };
232
+ };
233
+ ISREF: {
234
+ description: string;
235
+ abstract: string;
236
+ links: {
237
+ title: string;
238
+ url: string;
239
+ }[];
240
+ functionParameter: {
241
+ value: {
242
+ name: string;
243
+ detail: string;
244
+ };
245
+ };
246
+ };
247
+ ISTEXT: {
248
+ description: string;
249
+ abstract: string;
250
+ links: {
251
+ title: string;
252
+ url: string;
253
+ }[];
254
+ functionParameter: {
255
+ value: {
256
+ name: string;
257
+ detail: string;
258
+ };
259
+ };
260
+ };
261
+ N: {
262
+ description: string;
263
+ abstract: string;
264
+ links: {
265
+ title: string;
266
+ url: string;
267
+ }[];
268
+ functionParameter: {
269
+ number1: {
270
+ name: string;
271
+ detail: string;
272
+ };
273
+ number2: {
274
+ name: string;
275
+ detail: string;
276
+ };
277
+ };
278
+ };
279
+ NA: {
280
+ description: string;
281
+ abstract: string;
282
+ links: {
283
+ title: string;
284
+ url: string;
285
+ }[];
286
+ functionParameter: {
287
+ number1: {
288
+ name: string;
289
+ detail: string;
290
+ };
291
+ number2: {
292
+ name: string;
293
+ detail: string;
294
+ };
295
+ };
296
+ };
297
+ SHEET: {
298
+ description: string;
299
+ abstract: string;
300
+ links: {
301
+ title: string;
302
+ url: string;
303
+ }[];
304
+ functionParameter: {
305
+ number1: {
306
+ name: string;
307
+ detail: string;
308
+ };
309
+ number2: {
310
+ name: string;
311
+ detail: string;
312
+ };
313
+ };
314
+ };
315
+ SHEETS: {
316
+ description: string;
317
+ abstract: string;
318
+ links: {
319
+ title: string;
320
+ url: string;
321
+ }[];
322
+ functionParameter: {
323
+ number1: {
324
+ name: string;
325
+ detail: string;
326
+ };
327
+ number2: {
328
+ name: string;
329
+ detail: string;
330
+ };
331
+ };
332
+ };
333
+ TYPE: {
334
+ description: string;
335
+ abstract: string;
336
+ links: {
337
+ title: string;
338
+ url: string;
339
+ }[];
340
+ functionParameter: {
341
+ number1: {
342
+ name: string;
343
+ detail: string;
344
+ };
345
+ number2: {
346
+ name: string;
347
+ detail: string;
348
+ };
349
+ };
350
+ };
351
+ };
352
+ export default _default;
@@ -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;