@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,650 @@
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
+ ASC: {
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
+ ARRAYTOTEXT: {
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
+ BAHTTEXT: {
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
+ CHAR: {
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
+ CLEAN: {
90
+ description: string;
91
+ abstract: string;
92
+ links: {
93
+ title: string;
94
+ url: string;
95
+ }[];
96
+ functionParameter: {
97
+ number1: {
98
+ name: string;
99
+ detail: string;
100
+ };
101
+ number2: {
102
+ name: string;
103
+ detail: string;
104
+ };
105
+ };
106
+ };
107
+ CODE: {
108
+ description: string;
109
+ abstract: string;
110
+ links: {
111
+ title: string;
112
+ url: string;
113
+ }[];
114
+ functionParameter: {
115
+ number1: {
116
+ name: string;
117
+ detail: string;
118
+ };
119
+ number2: {
120
+ name: string;
121
+ detail: string;
122
+ };
123
+ };
124
+ };
125
+ CONCAT: {
126
+ description: string;
127
+ abstract: string;
128
+ links: {
129
+ title: string;
130
+ url: string;
131
+ }[];
132
+ functionParameter: {
133
+ text1: {
134
+ name: string;
135
+ detail: string;
136
+ };
137
+ text2: {
138
+ name: string;
139
+ detail: string;
140
+ };
141
+ };
142
+ };
143
+ CONCATENATE: {
144
+ description: string;
145
+ abstract: string;
146
+ links: {
147
+ title: string;
148
+ url: string;
149
+ }[];
150
+ functionParameter: {
151
+ text1: {
152
+ name: string;
153
+ detail: string;
154
+ };
155
+ text2: {
156
+ name: string;
157
+ detail: string;
158
+ };
159
+ };
160
+ };
161
+ DBCS: {
162
+ description: string;
163
+ abstract: string;
164
+ links: {
165
+ title: string;
166
+ url: string;
167
+ }[];
168
+ functionParameter: {
169
+ number1: {
170
+ name: string;
171
+ detail: string;
172
+ };
173
+ number2: {
174
+ name: string;
175
+ detail: string;
176
+ };
177
+ };
178
+ };
179
+ DOLLAR: {
180
+ description: string;
181
+ abstract: string;
182
+ links: {
183
+ title: string;
184
+ url: string;
185
+ }[];
186
+ functionParameter: {
187
+ number1: {
188
+ name: string;
189
+ detail: string;
190
+ };
191
+ number2: {
192
+ name: string;
193
+ detail: string;
194
+ };
195
+ };
196
+ };
197
+ EXACT: {
198
+ description: string;
199
+ abstract: string;
200
+ links: {
201
+ title: string;
202
+ url: string;
203
+ }[];
204
+ functionParameter: {
205
+ text1: {
206
+ name: string;
207
+ detail: string;
208
+ };
209
+ text2: {
210
+ name: string;
211
+ detail: string;
212
+ };
213
+ };
214
+ };
215
+ FIND: {
216
+ description: string;
217
+ abstract: string;
218
+ links: {
219
+ title: string;
220
+ url: string;
221
+ }[];
222
+ functionParameter: {
223
+ find_text: {
224
+ name: string;
225
+ detail: string;
226
+ };
227
+ within_text: {
228
+ name: string;
229
+ detail: string;
230
+ };
231
+ start_num: {
232
+ name: string;
233
+ detail: string;
234
+ };
235
+ };
236
+ };
237
+ FIXED: {
238
+ description: string;
239
+ abstract: string;
240
+ links: {
241
+ title: string;
242
+ url: string;
243
+ }[];
244
+ functionParameter: {
245
+ number: {
246
+ name: string;
247
+ detail: string;
248
+ };
249
+ decimals: {
250
+ name: string;
251
+ detail: string;
252
+ };
253
+ no_commas: {
254
+ name: string;
255
+ detail: string;
256
+ };
257
+ };
258
+ };
259
+ LEFT: {
260
+ description: string;
261
+ abstract: string;
262
+ links: {
263
+ title: string;
264
+ url: string;
265
+ }[];
266
+ functionParameter: {
267
+ text: {
268
+ name: string;
269
+ detail: string;
270
+ };
271
+ num_chars: {
272
+ name: string;
273
+ detail: string;
274
+ };
275
+ };
276
+ };
277
+ LEN: {
278
+ description: string;
279
+ abstract: string;
280
+ links: {
281
+ title: string;
282
+ url: string;
283
+ }[];
284
+ functionParameter: {
285
+ text: {
286
+ name: string;
287
+ detail: string;
288
+ };
289
+ };
290
+ };
291
+ LOWER: {
292
+ description: string;
293
+ abstract: string;
294
+ links: {
295
+ title: string;
296
+ url: string;
297
+ }[];
298
+ functionParameter: {
299
+ text: {
300
+ name: string;
301
+ detail: string;
302
+ };
303
+ };
304
+ };
305
+ MID: {
306
+ description: string;
307
+ abstract: string;
308
+ links: {
309
+ title: string;
310
+ url: string;
311
+ }[];
312
+ functionParameter: {
313
+ text: {
314
+ name: string;
315
+ detail: string;
316
+ };
317
+ start_num: {
318
+ name: string;
319
+ detail: string;
320
+ };
321
+ num_chars: {
322
+ name: string;
323
+ detail: string;
324
+ };
325
+ };
326
+ };
327
+ PHONETIC: {
328
+ description: string;
329
+ abstract: string;
330
+ links: {
331
+ title: string;
332
+ url: string;
333
+ }[];
334
+ functionParameter: {
335
+ number1: {
336
+ name: string;
337
+ detail: string;
338
+ };
339
+ number2: {
340
+ name: string;
341
+ detail: string;
342
+ };
343
+ };
344
+ };
345
+ PROPER: {
346
+ description: string;
347
+ abstract: string;
348
+ links: {
349
+ title: string;
350
+ url: string;
351
+ }[];
352
+ functionParameter: {
353
+ text: {
354
+ name: string;
355
+ detail: string;
356
+ };
357
+ };
358
+ };
359
+ REGEXEXTRACT: {
360
+ description: string;
361
+ abstract: string;
362
+ links: {
363
+ title: string;
364
+ url: string;
365
+ }[];
366
+ functionParameter: {
367
+ text: {
368
+ name: string;
369
+ detail: string;
370
+ };
371
+ regex: {
372
+ name: string;
373
+ detail: string;
374
+ };
375
+ };
376
+ };
377
+ REGEXMATCH: {
378
+ description: string;
379
+ abstract: string;
380
+ links: {
381
+ title: string;
382
+ url: string;
383
+ }[];
384
+ functionParameter: {
385
+ text: {
386
+ name: string;
387
+ detail: string;
388
+ };
389
+ regex: {
390
+ name: string;
391
+ detail: string;
392
+ };
393
+ };
394
+ };
395
+ REGEXREPLACE: {
396
+ description: string;
397
+ abstract: string;
398
+ links: {
399
+ title: string;
400
+ url: string;
401
+ }[];
402
+ functionParameter: {
403
+ text: {
404
+ name: string;
405
+ detail: string;
406
+ };
407
+ regex: {
408
+ name: string;
409
+ detail: string;
410
+ };
411
+ replacement: {
412
+ name: string;
413
+ detail: string;
414
+ };
415
+ };
416
+ };
417
+ REPLACE: {
418
+ description: string;
419
+ abstract: string;
420
+ links: {
421
+ title: string;
422
+ url: string;
423
+ }[];
424
+ functionParameter: {
425
+ old_text: {
426
+ name: string;
427
+ detail: string;
428
+ };
429
+ start_num: {
430
+ name: string;
431
+ detail: string;
432
+ };
433
+ num_chars: {
434
+ name: string;
435
+ detail: string;
436
+ };
437
+ new_text: {
438
+ name: string;
439
+ detail: string;
440
+ };
441
+ };
442
+ };
443
+ REPT: {
444
+ description: string;
445
+ abstract: string;
446
+ links: {
447
+ title: string;
448
+ url: string;
449
+ }[];
450
+ functionParameter: {
451
+ text: {
452
+ name: string;
453
+ detail: string;
454
+ };
455
+ number_times: {
456
+ name: string;
457
+ detail: string;
458
+ };
459
+ };
460
+ };
461
+ RIGHT: {
462
+ description: string;
463
+ abstract: string;
464
+ links: {
465
+ title: string;
466
+ url: string;
467
+ }[];
468
+ functionParameter: {
469
+ text: {
470
+ name: string;
471
+ detail: string;
472
+ };
473
+ num_chars: {
474
+ name: string;
475
+ detail: string;
476
+ };
477
+ };
478
+ };
479
+ SEARCH: {
480
+ description: string;
481
+ abstract: string;
482
+ links: {
483
+ title: string;
484
+ url: string;
485
+ }[];
486
+ functionParameter: {
487
+ find_text: {
488
+ name: string;
489
+ detail: string;
490
+ };
491
+ within_text: {
492
+ name: string;
493
+ detail: string;
494
+ };
495
+ start_num: {
496
+ name: string;
497
+ detail: string;
498
+ };
499
+ };
500
+ };
501
+ SPLIT: {
502
+ description: string;
503
+ abstract: string;
504
+ links: {
505
+ title: string;
506
+ url: string;
507
+ }[];
508
+ functionParameter: {
509
+ text: {
510
+ name: string;
511
+ detail: string;
512
+ };
513
+ delimiter: {
514
+ name: string;
515
+ detail: string;
516
+ };
517
+ split_by_each: {
518
+ name: string;
519
+ detail: string;
520
+ };
521
+ remove_empty_text: {
522
+ name: string;
523
+ detail: string;
524
+ };
525
+ };
526
+ };
527
+ SUBSTITUTE: {
528
+ description: string;
529
+ abstract: string;
530
+ links: {
531
+ title: string;
532
+ url: string;
533
+ }[];
534
+ functionParameter: {
535
+ text: {
536
+ name: string;
537
+ detail: string;
538
+ };
539
+ old_text: {
540
+ name: string;
541
+ detail: string;
542
+ };
543
+ new_text: {
544
+ name: string;
545
+ detail: string;
546
+ };
547
+ instance_num: {
548
+ name: string;
549
+ detail: string;
550
+ };
551
+ };
552
+ };
553
+ TEXTJOIN: {
554
+ description: string;
555
+ abstract: string;
556
+ links: {
557
+ title: string;
558
+ url: string;
559
+ }[];
560
+ functionParameter: {
561
+ delimiter: {
562
+ name: string;
563
+ detail: string;
564
+ };
565
+ ignore_empty: {
566
+ name: string;
567
+ detail: string;
568
+ };
569
+ text1: {
570
+ name: string;
571
+ detail: string;
572
+ };
573
+ text2: {
574
+ name: string;
575
+ detail: string;
576
+ };
577
+ };
578
+ };
579
+ TRIM: {
580
+ description: string;
581
+ abstract: string;
582
+ links: {
583
+ title: string;
584
+ url: string;
585
+ }[];
586
+ functionParameter: {
587
+ text: {
588
+ name: string;
589
+ detail: string;
590
+ };
591
+ };
592
+ };
593
+ UNICHAR: {
594
+ description: string;
595
+ abstract: string;
596
+ links: {
597
+ title: string;
598
+ url: string;
599
+ }[];
600
+ functionParameter: {
601
+ number: {
602
+ name: string;
603
+ detail: string;
604
+ };
605
+ };
606
+ };
607
+ UNICODE: {
608
+ description: string;
609
+ abstract: string;
610
+ links: {
611
+ title: string;
612
+ url: string;
613
+ }[];
614
+ functionParameter: {
615
+ text: {
616
+ name: string;
617
+ detail: string;
618
+ };
619
+ };
620
+ };
621
+ UPPER: {
622
+ description: string;
623
+ abstract: string;
624
+ links: {
625
+ title: string;
626
+ url: string;
627
+ }[];
628
+ functionParameter: {
629
+ text: {
630
+ name: string;
631
+ detail: string;
632
+ };
633
+ };
634
+ };
635
+ VALUE: {
636
+ description: string;
637
+ abstract: string;
638
+ links: {
639
+ title: string;
640
+ url: string;
641
+ }[];
642
+ functionParameter: {
643
+ text: {
644
+ name: string;
645
+ detail: string;
646
+ };
647
+ };
648
+ };
649
+ };
650
+ export default _default;