@univerjs/sheets-formula 0.1.0-alpha.2 → 0.1.0-alpha.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 (56) hide show
  1. package/README.md +1 -1
  2. package/lib/cjs/index.js +6 -4
  3. package/lib/es/index.js +16188 -1827
  4. package/lib/index.css +1 -1
  5. package/lib/types/common/selection.d.ts +1 -1
  6. package/lib/types/controllers/formula-clipboard.controller.d.ts +1 -1
  7. package/lib/types/controllers/formula-editor-show.controller.d.ts +4 -1
  8. package/lib/types/controllers/formula-input.controller.d.ts +3 -1
  9. package/lib/types/controllers/prompt.controller.d.ts +2 -3
  10. package/lib/types/controllers/trigger-calculation.controller.d.ts +1 -0
  11. package/lib/types/controllers/utils.d.ts +2 -2
  12. package/lib/types/locale/en-US.d.ts +9106 -10
  13. package/lib/types/locale/function-list/array/ja-JP.d.ts +17 -0
  14. package/lib/types/locale/function-list/compatibility/en-US.d.ts +740 -1
  15. package/lib/types/locale/function-list/compatibility/ja-JP.d.ts +756 -0
  16. package/lib/types/locale/function-list/compatibility/zh-CN.d.ts +740 -1
  17. package/lib/types/locale/function-list/cube/en-US.d.ts +128 -1
  18. package/lib/types/locale/function-list/cube/ja-JP.d.ts +144 -0
  19. package/lib/types/locale/function-list/cube/zh-CN.d.ts +128 -1
  20. package/lib/types/locale/function-list/database/en-US.d.ts +218 -1
  21. package/lib/types/locale/function-list/database/ja-JP.d.ts +234 -0
  22. package/lib/types/locale/function-list/database/zh-CN.d.ts +218 -1
  23. package/lib/types/locale/function-list/date/en-US.d.ts +452 -1
  24. package/lib/types/locale/function-list/date/ja-JP.d.ts +468 -0
  25. package/lib/types/locale/function-list/date/zh-CN.d.ts +452 -1
  26. package/lib/types/locale/function-list/engineering/en-US.d.ts +974 -1
  27. package/lib/types/locale/function-list/engineering/ja-JP.d.ts +990 -0
  28. package/lib/types/locale/function-list/engineering/zh-CN.d.ts +974 -1
  29. package/lib/types/locale/function-list/financial/en-US.d.ts +992 -1
  30. package/lib/types/locale/function-list/financial/ja-JP.d.ts +1008 -0
  31. package/lib/types/locale/function-list/financial/zh-CN.d.ts +992 -1
  32. package/lib/types/locale/function-list/information/en-US.d.ts +380 -1
  33. package/lib/types/locale/function-list/information/ja-JP.d.ts +396 -0
  34. package/lib/types/locale/function-list/information/zh-CN.d.ts +380 -1
  35. package/lib/types/locale/function-list/logical/en-US.d.ts +344 -1
  36. package/lib/types/locale/function-list/logical/ja-JP.d.ts +360 -0
  37. package/lib/types/locale/function-list/logical/zh-CN.d.ts +344 -1
  38. package/lib/types/locale/function-list/lookup/en-US.d.ts +668 -1
  39. package/lib/types/locale/function-list/lookup/ja-JP.d.ts +684 -0
  40. package/lib/types/locale/function-list/lookup/zh-CN.d.ts +668 -1
  41. package/lib/types/locale/function-list/math/en-US.d.ts +1448 -0
  42. package/lib/types/locale/function-list/math/ja-JP.d.ts +1494 -0
  43. package/lib/types/locale/function-list/math/zh-CN.d.ts +1448 -0
  44. package/lib/types/locale/function-list/statistical/en-US.d.ts +1944 -2
  45. package/lib/types/locale/function-list/statistical/ja-JP.d.ts +2016 -0
  46. package/lib/types/locale/function-list/statistical/zh-CN.d.ts +1944 -2
  47. package/lib/types/locale/function-list/text/en-US.d.ts +848 -1
  48. package/lib/types/locale/function-list/text/ja-JP.d.ts +865 -0
  49. package/lib/types/locale/function-list/text/zh-CN.d.ts +848 -1
  50. package/lib/types/locale/function-list/univer/ja-JP.d.ts +17 -0
  51. package/lib/types/locale/function-list/web/en-US.d.ts +56 -1
  52. package/lib/types/locale/function-list/web/ja-JP.d.ts +72 -0
  53. package/lib/types/locale/function-list/web/zh-CN.d.ts +56 -1
  54. package/lib/types/locale/zh-CN.d.ts +9106 -10
  55. package/lib/umd/index.js +6 -4
  56. package/package.json +20 -22
@@ -0,0 +1,865 @@
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
+ number1: {
134
+ name: string;
135
+ detail: string;
136
+ };
137
+ number2: {
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
+ number1: {
152
+ name: string;
153
+ detail: string;
154
+ };
155
+ number2: {
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
+ aliasFunctionName: string;
181
+ description: string;
182
+ abstract: string;
183
+ links: {
184
+ title: string;
185
+ url: string;
186
+ }[];
187
+ functionParameter: {
188
+ number1: {
189
+ name: string;
190
+ detail: string;
191
+ };
192
+ number2: {
193
+ name: string;
194
+ detail: string;
195
+ };
196
+ };
197
+ };
198
+ EXACT: {
199
+ description: string;
200
+ abstract: string;
201
+ links: {
202
+ title: string;
203
+ url: string;
204
+ }[];
205
+ functionParameter: {
206
+ number1: {
207
+ name: string;
208
+ detail: string;
209
+ };
210
+ number2: {
211
+ name: string;
212
+ detail: string;
213
+ };
214
+ };
215
+ };
216
+ FIND: {
217
+ description: string;
218
+ abstract: string;
219
+ links: {
220
+ title: string;
221
+ url: string;
222
+ }[];
223
+ functionParameter: {
224
+ number1: {
225
+ name: string;
226
+ detail: string;
227
+ };
228
+ number2: {
229
+ name: string;
230
+ detail: string;
231
+ };
232
+ };
233
+ };
234
+ FINDB: {
235
+ description: string;
236
+ abstract: string;
237
+ links: {
238
+ title: string;
239
+ url: string;
240
+ }[];
241
+ functionParameter: {
242
+ number1: {
243
+ name: string;
244
+ detail: string;
245
+ };
246
+ number2: {
247
+ name: string;
248
+ detail: string;
249
+ };
250
+ };
251
+ };
252
+ FIXED: {
253
+ description: string;
254
+ abstract: string;
255
+ links: {
256
+ title: string;
257
+ url: string;
258
+ }[];
259
+ functionParameter: {
260
+ number1: {
261
+ name: string;
262
+ detail: string;
263
+ };
264
+ number2: {
265
+ name: string;
266
+ detail: string;
267
+ };
268
+ };
269
+ };
270
+ LEFT: {
271
+ description: string;
272
+ abstract: string;
273
+ links: {
274
+ title: string;
275
+ url: string;
276
+ }[];
277
+ functionParameter: {
278
+ number1: {
279
+ name: string;
280
+ detail: string;
281
+ };
282
+ number2: {
283
+ name: string;
284
+ detail: string;
285
+ };
286
+ };
287
+ };
288
+ LEFTB: {
289
+ description: string;
290
+ abstract: string;
291
+ links: {
292
+ title: string;
293
+ url: string;
294
+ }[];
295
+ functionParameter: {
296
+ number1: {
297
+ name: string;
298
+ detail: string;
299
+ };
300
+ number2: {
301
+ name: string;
302
+ detail: string;
303
+ };
304
+ };
305
+ };
306
+ LEN: {
307
+ description: string;
308
+ abstract: string;
309
+ links: {
310
+ title: string;
311
+ url: string;
312
+ }[];
313
+ functionParameter: {
314
+ number1: {
315
+ name: string;
316
+ detail: string;
317
+ };
318
+ number2: {
319
+ name: string;
320
+ detail: string;
321
+ };
322
+ };
323
+ };
324
+ LENB: {
325
+ description: string;
326
+ abstract: string;
327
+ links: {
328
+ title: string;
329
+ url: string;
330
+ }[];
331
+ functionParameter: {
332
+ number1: {
333
+ name: string;
334
+ detail: string;
335
+ };
336
+ number2: {
337
+ name: string;
338
+ detail: string;
339
+ };
340
+ };
341
+ };
342
+ LOWER: {
343
+ description: string;
344
+ abstract: string;
345
+ links: {
346
+ title: string;
347
+ url: string;
348
+ }[];
349
+ functionParameter: {
350
+ number1: {
351
+ name: string;
352
+ detail: string;
353
+ };
354
+ number2: {
355
+ name: string;
356
+ detail: string;
357
+ };
358
+ };
359
+ };
360
+ MID: {
361
+ description: string;
362
+ abstract: string;
363
+ links: {
364
+ title: string;
365
+ url: string;
366
+ }[];
367
+ functionParameter: {
368
+ number1: {
369
+ name: string;
370
+ detail: string;
371
+ };
372
+ number2: {
373
+ name: string;
374
+ detail: string;
375
+ };
376
+ };
377
+ };
378
+ MIDB: {
379
+ description: string;
380
+ abstract: string;
381
+ links: {
382
+ title: string;
383
+ url: string;
384
+ }[];
385
+ functionParameter: {
386
+ number1: {
387
+ name: string;
388
+ detail: string;
389
+ };
390
+ number2: {
391
+ name: string;
392
+ detail: string;
393
+ };
394
+ };
395
+ };
396
+ NUMBERVALUE: {
397
+ description: string;
398
+ abstract: string;
399
+ links: {
400
+ title: string;
401
+ url: string;
402
+ }[];
403
+ functionParameter: {
404
+ number1: {
405
+ name: string;
406
+ detail: string;
407
+ };
408
+ number2: {
409
+ name: string;
410
+ detail: string;
411
+ };
412
+ };
413
+ };
414
+ PHONETIC: {
415
+ description: string;
416
+ abstract: string;
417
+ links: {
418
+ title: string;
419
+ url: string;
420
+ }[];
421
+ functionParameter: {
422
+ number1: {
423
+ name: string;
424
+ detail: string;
425
+ };
426
+ number2: {
427
+ name: string;
428
+ detail: string;
429
+ };
430
+ };
431
+ };
432
+ PROPER: {
433
+ description: string;
434
+ abstract: string;
435
+ links: {
436
+ title: string;
437
+ url: string;
438
+ }[];
439
+ functionParameter: {
440
+ number1: {
441
+ name: string;
442
+ detail: string;
443
+ };
444
+ number2: {
445
+ name: string;
446
+ detail: string;
447
+ };
448
+ };
449
+ };
450
+ REPLACE: {
451
+ description: string;
452
+ abstract: string;
453
+ links: {
454
+ title: string;
455
+ url: string;
456
+ }[];
457
+ functionParameter: {
458
+ number1: {
459
+ name: string;
460
+ detail: string;
461
+ };
462
+ number2: {
463
+ name: string;
464
+ detail: string;
465
+ };
466
+ };
467
+ };
468
+ REPLACEB: {
469
+ description: string;
470
+ abstract: string;
471
+ links: {
472
+ title: string;
473
+ url: string;
474
+ }[];
475
+ functionParameter: {
476
+ number1: {
477
+ name: string;
478
+ detail: string;
479
+ };
480
+ number2: {
481
+ name: string;
482
+ detail: string;
483
+ };
484
+ };
485
+ };
486
+ REPT: {
487
+ description: string;
488
+ abstract: string;
489
+ links: {
490
+ title: string;
491
+ url: string;
492
+ }[];
493
+ functionParameter: {
494
+ number1: {
495
+ name: string;
496
+ detail: string;
497
+ };
498
+ number2: {
499
+ name: string;
500
+ detail: string;
501
+ };
502
+ };
503
+ };
504
+ RIGHT: {
505
+ description: string;
506
+ abstract: string;
507
+ links: {
508
+ title: string;
509
+ url: string;
510
+ }[];
511
+ functionParameter: {
512
+ number1: {
513
+ name: string;
514
+ detail: string;
515
+ };
516
+ number2: {
517
+ name: string;
518
+ detail: string;
519
+ };
520
+ };
521
+ };
522
+ RIGHTB: {
523
+ description: string;
524
+ abstract: string;
525
+ links: {
526
+ title: string;
527
+ url: string;
528
+ }[];
529
+ functionParameter: {
530
+ number1: {
531
+ name: string;
532
+ detail: string;
533
+ };
534
+ number2: {
535
+ name: string;
536
+ detail: string;
537
+ };
538
+ };
539
+ };
540
+ SEARCH: {
541
+ description: string;
542
+ abstract: string;
543
+ links: {
544
+ title: string;
545
+ url: string;
546
+ }[];
547
+ functionParameter: {
548
+ number1: {
549
+ name: string;
550
+ detail: string;
551
+ };
552
+ number2: {
553
+ name: string;
554
+ detail: string;
555
+ };
556
+ };
557
+ };
558
+ SEARCHB: {
559
+ description: string;
560
+ abstract: string;
561
+ links: {
562
+ title: string;
563
+ url: string;
564
+ }[];
565
+ functionParameter: {
566
+ number1: {
567
+ name: string;
568
+ detail: string;
569
+ };
570
+ number2: {
571
+ name: string;
572
+ detail: string;
573
+ };
574
+ };
575
+ };
576
+ SUBSTITUTE: {
577
+ description: string;
578
+ abstract: string;
579
+ links: {
580
+ title: string;
581
+ url: string;
582
+ }[];
583
+ functionParameter: {
584
+ number1: {
585
+ name: string;
586
+ detail: string;
587
+ };
588
+ number2: {
589
+ name: string;
590
+ detail: string;
591
+ };
592
+ };
593
+ };
594
+ T: {
595
+ description: string;
596
+ abstract: string;
597
+ links: {
598
+ title: string;
599
+ url: string;
600
+ }[];
601
+ functionParameter: {
602
+ number1: {
603
+ name: string;
604
+ detail: string;
605
+ };
606
+ number2: {
607
+ name: string;
608
+ detail: string;
609
+ };
610
+ };
611
+ };
612
+ TEXT: {
613
+ description: string;
614
+ abstract: string;
615
+ links: {
616
+ title: string;
617
+ url: string;
618
+ }[];
619
+ functionParameter: {
620
+ number1: {
621
+ name: string;
622
+ detail: string;
623
+ };
624
+ number2: {
625
+ name: string;
626
+ detail: string;
627
+ };
628
+ };
629
+ };
630
+ TEXTAFTER: {
631
+ description: string;
632
+ abstract: string;
633
+ links: {
634
+ title: string;
635
+ url: string;
636
+ }[];
637
+ functionParameter: {
638
+ number1: {
639
+ name: string;
640
+ detail: string;
641
+ };
642
+ number2: {
643
+ name: string;
644
+ detail: string;
645
+ };
646
+ };
647
+ };
648
+ TEXTBEFORE: {
649
+ description: string;
650
+ abstract: string;
651
+ links: {
652
+ title: string;
653
+ url: string;
654
+ }[];
655
+ functionParameter: {
656
+ number1: {
657
+ name: string;
658
+ detail: string;
659
+ };
660
+ number2: {
661
+ name: string;
662
+ detail: string;
663
+ };
664
+ };
665
+ };
666
+ TEXTJOIN: {
667
+ description: string;
668
+ abstract: string;
669
+ links: {
670
+ title: string;
671
+ url: string;
672
+ }[];
673
+ functionParameter: {
674
+ number1: {
675
+ name: string;
676
+ detail: string;
677
+ };
678
+ number2: {
679
+ name: string;
680
+ detail: string;
681
+ };
682
+ };
683
+ };
684
+ TEXTSPLIT: {
685
+ description: string;
686
+ abstract: string;
687
+ links: {
688
+ title: string;
689
+ url: string;
690
+ }[];
691
+ functionParameter: {
692
+ number1: {
693
+ name: string;
694
+ detail: string;
695
+ };
696
+ number2: {
697
+ name: string;
698
+ detail: string;
699
+ };
700
+ };
701
+ };
702
+ TRIM: {
703
+ description: string;
704
+ abstract: string;
705
+ links: {
706
+ title: string;
707
+ url: string;
708
+ }[];
709
+ functionParameter: {
710
+ number1: {
711
+ name: string;
712
+ detail: string;
713
+ };
714
+ number2: {
715
+ name: string;
716
+ detail: string;
717
+ };
718
+ };
719
+ };
720
+ UNICHAR: {
721
+ description: string;
722
+ abstract: string;
723
+ links: {
724
+ title: string;
725
+ url: string;
726
+ }[];
727
+ functionParameter: {
728
+ number1: {
729
+ name: string;
730
+ detail: string;
731
+ };
732
+ number2: {
733
+ name: string;
734
+ detail: string;
735
+ };
736
+ };
737
+ };
738
+ UNICODE: {
739
+ description: string;
740
+ abstract: string;
741
+ links: {
742
+ title: string;
743
+ url: string;
744
+ }[];
745
+ functionParameter: {
746
+ number1: {
747
+ name: string;
748
+ detail: string;
749
+ };
750
+ number2: {
751
+ name: string;
752
+ detail: string;
753
+ };
754
+ };
755
+ };
756
+ UPPER: {
757
+ description: string;
758
+ abstract: string;
759
+ links: {
760
+ title: string;
761
+ url: string;
762
+ }[];
763
+ functionParameter: {
764
+ number1: {
765
+ name: string;
766
+ detail: string;
767
+ };
768
+ number2: {
769
+ name: string;
770
+ detail: string;
771
+ };
772
+ };
773
+ };
774
+ VALUE: {
775
+ description: string;
776
+ abstract: string;
777
+ links: {
778
+ title: string;
779
+ url: string;
780
+ }[];
781
+ functionParameter: {
782
+ number1: {
783
+ name: string;
784
+ detail: string;
785
+ };
786
+ number2: {
787
+ name: string;
788
+ detail: string;
789
+ };
790
+ };
791
+ };
792
+ VALUETOTEXT: {
793
+ description: string;
794
+ abstract: string;
795
+ links: {
796
+ title: string;
797
+ url: string;
798
+ }[];
799
+ functionParameter: {
800
+ number1: {
801
+ name: string;
802
+ detail: string;
803
+ };
804
+ number2: {
805
+ name: string;
806
+ detail: string;
807
+ };
808
+ };
809
+ };
810
+ CALL: {
811
+ description: string;
812
+ abstract: string;
813
+ links: {
814
+ title: string;
815
+ url: string;
816
+ }[];
817
+ functionParameter: {
818
+ number1: {
819
+ name: string;
820
+ detail: string;
821
+ };
822
+ number2: {
823
+ name: string;
824
+ detail: string;
825
+ };
826
+ };
827
+ };
828
+ EUROCONVERT: {
829
+ description: string;
830
+ abstract: string;
831
+ links: {
832
+ title: string;
833
+ url: string;
834
+ }[];
835
+ functionParameter: {
836
+ number1: {
837
+ name: string;
838
+ detail: string;
839
+ };
840
+ number2: {
841
+ name: string;
842
+ detail: string;
843
+ };
844
+ };
845
+ };
846
+ REGISTER_ID: {
847
+ description: string;
848
+ abstract: string;
849
+ links: {
850
+ title: string;
851
+ url: string;
852
+ }[];
853
+ functionParameter: {
854
+ number1: {
855
+ name: string;
856
+ detail: string;
857
+ };
858
+ number2: {
859
+ name: string;
860
+ detail: string;
861
+ };
862
+ };
863
+ };
864
+ };
865
+ export default _default;