@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,852 @@
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
+ number1: {
206
+ name: string;
207
+ detail: string;
208
+ };
209
+ number2: {
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
+ number1: {
224
+ name: string;
225
+ detail: string;
226
+ };
227
+ number2: {
228
+ name: string;
229
+ detail: string;
230
+ };
231
+ };
232
+ };
233
+ FINDB: {
234
+ description: string;
235
+ abstract: string;
236
+ links: {
237
+ title: string;
238
+ url: string;
239
+ }[];
240
+ functionParameter: {
241
+ number1: {
242
+ name: string;
243
+ detail: string;
244
+ };
245
+ number2: {
246
+ name: string;
247
+ detail: string;
248
+ };
249
+ };
250
+ };
251
+ FIXED: {
252
+ description: string;
253
+ abstract: string;
254
+ links: {
255
+ title: string;
256
+ url: string;
257
+ }[];
258
+ functionParameter: {
259
+ number1: {
260
+ name: string;
261
+ detail: string;
262
+ };
263
+ number2: {
264
+ name: string;
265
+ detail: string;
266
+ };
267
+ };
268
+ };
269
+ LEFT: {
270
+ description: string;
271
+ abstract: string;
272
+ links: {
273
+ title: string;
274
+ url: string;
275
+ }[];
276
+ functionParameter: {
277
+ number1: {
278
+ name: string;
279
+ detail: string;
280
+ };
281
+ number2: {
282
+ name: string;
283
+ detail: string;
284
+ };
285
+ };
286
+ };
287
+ LEFTB: {
288
+ description: string;
289
+ abstract: string;
290
+ links: {
291
+ title: string;
292
+ url: string;
293
+ }[];
294
+ functionParameter: {
295
+ number1: {
296
+ name: string;
297
+ detail: string;
298
+ };
299
+ number2: {
300
+ name: string;
301
+ detail: string;
302
+ };
303
+ };
304
+ };
305
+ LEN: {
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
+ };
318
+ };
319
+ LENB: {
320
+ description: string;
321
+ abstract: string;
322
+ links: {
323
+ title: string;
324
+ url: string;
325
+ }[];
326
+ functionParameter: {
327
+ text: {
328
+ name: string;
329
+ detail: string;
330
+ };
331
+ };
332
+ };
333
+ LOWER: {
334
+ description: string;
335
+ abstract: string;
336
+ links: {
337
+ title: string;
338
+ url: string;
339
+ }[];
340
+ functionParameter: {
341
+ text: {
342
+ name: string;
343
+ detail: string;
344
+ };
345
+ };
346
+ };
347
+ MID: {
348
+ description: string;
349
+ abstract: string;
350
+ links: {
351
+ title: string;
352
+ url: string;
353
+ }[];
354
+ functionParameter: {
355
+ number1: {
356
+ name: string;
357
+ detail: string;
358
+ };
359
+ number2: {
360
+ name: string;
361
+ detail: string;
362
+ };
363
+ };
364
+ };
365
+ MIDB: {
366
+ description: string;
367
+ abstract: string;
368
+ links: {
369
+ title: string;
370
+ url: string;
371
+ }[];
372
+ functionParameter: {
373
+ number1: {
374
+ name: string;
375
+ detail: string;
376
+ };
377
+ number2: {
378
+ name: string;
379
+ detail: string;
380
+ };
381
+ };
382
+ };
383
+ NUMBERVALUE: {
384
+ description: string;
385
+ abstract: string;
386
+ links: {
387
+ title: string;
388
+ url: string;
389
+ }[];
390
+ functionParameter: {
391
+ number1: {
392
+ name: string;
393
+ detail: string;
394
+ };
395
+ number2: {
396
+ name: string;
397
+ detail: string;
398
+ };
399
+ };
400
+ };
401
+ PHONETIC: {
402
+ description: string;
403
+ abstract: string;
404
+ links: {
405
+ title: string;
406
+ url: string;
407
+ }[];
408
+ functionParameter: {
409
+ number1: {
410
+ name: string;
411
+ detail: string;
412
+ };
413
+ number2: {
414
+ name: string;
415
+ detail: string;
416
+ };
417
+ };
418
+ };
419
+ PROPER: {
420
+ description: string;
421
+ abstract: string;
422
+ links: {
423
+ title: string;
424
+ url: string;
425
+ }[];
426
+ functionParameter: {
427
+ number1: {
428
+ name: string;
429
+ detail: string;
430
+ };
431
+ number2: {
432
+ name: string;
433
+ detail: string;
434
+ };
435
+ };
436
+ };
437
+ REPLACE: {
438
+ description: string;
439
+ abstract: string;
440
+ links: {
441
+ title: string;
442
+ url: string;
443
+ }[];
444
+ functionParameter: {
445
+ number1: {
446
+ name: string;
447
+ detail: string;
448
+ };
449
+ number2: {
450
+ name: string;
451
+ detail: string;
452
+ };
453
+ };
454
+ };
455
+ REPLACEB: {
456
+ description: string;
457
+ abstract: string;
458
+ links: {
459
+ title: string;
460
+ url: string;
461
+ }[];
462
+ functionParameter: {
463
+ number1: {
464
+ name: string;
465
+ detail: string;
466
+ };
467
+ number2: {
468
+ name: string;
469
+ detail: string;
470
+ };
471
+ };
472
+ };
473
+ REPT: {
474
+ description: string;
475
+ abstract: string;
476
+ links: {
477
+ title: string;
478
+ url: string;
479
+ }[];
480
+ functionParameter: {
481
+ number1: {
482
+ name: string;
483
+ detail: string;
484
+ };
485
+ number2: {
486
+ name: string;
487
+ detail: string;
488
+ };
489
+ };
490
+ };
491
+ RIGHT: {
492
+ description: string;
493
+ abstract: string;
494
+ links: {
495
+ title: string;
496
+ url: string;
497
+ }[];
498
+ functionParameter: {
499
+ number1: {
500
+ name: string;
501
+ detail: string;
502
+ };
503
+ number2: {
504
+ name: string;
505
+ detail: string;
506
+ };
507
+ };
508
+ };
509
+ RIGHTB: {
510
+ description: string;
511
+ abstract: string;
512
+ links: {
513
+ title: string;
514
+ url: string;
515
+ }[];
516
+ functionParameter: {
517
+ number1: {
518
+ name: string;
519
+ detail: string;
520
+ };
521
+ number2: {
522
+ name: string;
523
+ detail: string;
524
+ };
525
+ };
526
+ };
527
+ SEARCH: {
528
+ description: string;
529
+ abstract: string;
530
+ links: {
531
+ title: string;
532
+ url: string;
533
+ }[];
534
+ functionParameter: {
535
+ number1: {
536
+ name: string;
537
+ detail: string;
538
+ };
539
+ number2: {
540
+ name: string;
541
+ detail: string;
542
+ };
543
+ };
544
+ };
545
+ SEARCHB: {
546
+ description: string;
547
+ abstract: string;
548
+ links: {
549
+ title: string;
550
+ url: string;
551
+ }[];
552
+ functionParameter: {
553
+ number1: {
554
+ name: string;
555
+ detail: string;
556
+ };
557
+ number2: {
558
+ name: string;
559
+ detail: string;
560
+ };
561
+ };
562
+ };
563
+ SUBSTITUTE: {
564
+ description: string;
565
+ abstract: string;
566
+ links: {
567
+ title: string;
568
+ url: string;
569
+ }[];
570
+ functionParameter: {
571
+ number1: {
572
+ name: string;
573
+ detail: string;
574
+ };
575
+ number2: {
576
+ name: string;
577
+ detail: string;
578
+ };
579
+ };
580
+ };
581
+ T: {
582
+ description: string;
583
+ abstract: string;
584
+ links: {
585
+ title: string;
586
+ url: string;
587
+ }[];
588
+ functionParameter: {
589
+ number1: {
590
+ name: string;
591
+ detail: string;
592
+ };
593
+ number2: {
594
+ name: string;
595
+ detail: string;
596
+ };
597
+ };
598
+ };
599
+ TEXT: {
600
+ description: string;
601
+ abstract: string;
602
+ links: {
603
+ title: string;
604
+ url: string;
605
+ }[];
606
+ functionParameter: {
607
+ value: {
608
+ name: string;
609
+ detail: string;
610
+ };
611
+ formatText: {
612
+ name: string;
613
+ detail: string;
614
+ };
615
+ };
616
+ };
617
+ TEXTAFTER: {
618
+ description: string;
619
+ abstract: string;
620
+ links: {
621
+ title: string;
622
+ url: string;
623
+ }[];
624
+ functionParameter: {
625
+ number1: {
626
+ name: string;
627
+ detail: string;
628
+ };
629
+ number2: {
630
+ name: string;
631
+ detail: string;
632
+ };
633
+ };
634
+ };
635
+ TEXTBEFORE: {
636
+ description: string;
637
+ abstract: string;
638
+ links: {
639
+ title: string;
640
+ url: string;
641
+ }[];
642
+ functionParameter: {
643
+ number1: {
644
+ name: string;
645
+ detail: string;
646
+ };
647
+ number2: {
648
+ name: string;
649
+ detail: string;
650
+ };
651
+ };
652
+ };
653
+ TEXTJOIN: {
654
+ description: string;
655
+ abstract: string;
656
+ links: {
657
+ title: string;
658
+ url: string;
659
+ }[];
660
+ functionParameter: {
661
+ number1: {
662
+ name: string;
663
+ detail: string;
664
+ };
665
+ number2: {
666
+ name: string;
667
+ detail: string;
668
+ };
669
+ };
670
+ };
671
+ TEXTSPLIT: {
672
+ description: string;
673
+ abstract: string;
674
+ links: {
675
+ title: string;
676
+ url: string;
677
+ }[];
678
+ functionParameter: {
679
+ number1: {
680
+ name: string;
681
+ detail: string;
682
+ };
683
+ number2: {
684
+ name: string;
685
+ detail: string;
686
+ };
687
+ };
688
+ };
689
+ TRIM: {
690
+ description: string;
691
+ abstract: string;
692
+ links: {
693
+ title: string;
694
+ url: string;
695
+ }[];
696
+ functionParameter: {
697
+ number1: {
698
+ name: string;
699
+ detail: string;
700
+ };
701
+ number2: {
702
+ name: string;
703
+ detail: string;
704
+ };
705
+ };
706
+ };
707
+ UNICHAR: {
708
+ description: string;
709
+ abstract: string;
710
+ links: {
711
+ title: string;
712
+ url: string;
713
+ }[];
714
+ functionParameter: {
715
+ number1: {
716
+ name: string;
717
+ detail: string;
718
+ };
719
+ number2: {
720
+ name: string;
721
+ detail: string;
722
+ };
723
+ };
724
+ };
725
+ UNICODE: {
726
+ description: string;
727
+ abstract: string;
728
+ links: {
729
+ title: string;
730
+ url: string;
731
+ }[];
732
+ functionParameter: {
733
+ number1: {
734
+ name: string;
735
+ detail: string;
736
+ };
737
+ number2: {
738
+ name: string;
739
+ detail: string;
740
+ };
741
+ };
742
+ };
743
+ UPPER: {
744
+ description: string;
745
+ abstract: string;
746
+ links: {
747
+ title: string;
748
+ url: string;
749
+ }[];
750
+ functionParameter: {
751
+ number1: {
752
+ name: string;
753
+ detail: string;
754
+ };
755
+ number2: {
756
+ name: string;
757
+ detail: string;
758
+ };
759
+ };
760
+ };
761
+ VALUE: {
762
+ description: string;
763
+ abstract: string;
764
+ links: {
765
+ title: string;
766
+ url: string;
767
+ }[];
768
+ functionParameter: {
769
+ number1: {
770
+ name: string;
771
+ detail: string;
772
+ };
773
+ number2: {
774
+ name: string;
775
+ detail: string;
776
+ };
777
+ };
778
+ };
779
+ VALUETOTEXT: {
780
+ description: string;
781
+ abstract: string;
782
+ links: {
783
+ title: string;
784
+ url: string;
785
+ }[];
786
+ functionParameter: {
787
+ number1: {
788
+ name: string;
789
+ detail: string;
790
+ };
791
+ number2: {
792
+ name: string;
793
+ detail: string;
794
+ };
795
+ };
796
+ };
797
+ CALL: {
798
+ description: string;
799
+ abstract: string;
800
+ links: {
801
+ title: string;
802
+ url: string;
803
+ }[];
804
+ functionParameter: {
805
+ number1: {
806
+ name: string;
807
+ detail: string;
808
+ };
809
+ number2: {
810
+ name: string;
811
+ detail: string;
812
+ };
813
+ };
814
+ };
815
+ EUROCONVERT: {
816
+ description: string;
817
+ abstract: string;
818
+ links: {
819
+ title: string;
820
+ url: string;
821
+ }[];
822
+ functionParameter: {
823
+ number1: {
824
+ name: string;
825
+ detail: string;
826
+ };
827
+ number2: {
828
+ name: string;
829
+ detail: string;
830
+ };
831
+ };
832
+ };
833
+ REGISTER_ID: {
834
+ description: string;
835
+ abstract: string;
836
+ links: {
837
+ title: string;
838
+ url: string;
839
+ }[];
840
+ functionParameter: {
841
+ number1: {
842
+ name: string;
843
+ detail: string;
844
+ };
845
+ number2: {
846
+ name: string;
847
+ detail: string;
848
+ };
849
+ };
850
+ };
851
+ };
852
+ export default _default;