@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,752 @@
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
+ FILTER: {
188
+ description: string;
189
+ abstract: string;
190
+ links: {
191
+ title: string;
192
+ url: string;
193
+ }[];
194
+ functionParameter: {
195
+ number1: {
196
+ name: string;
197
+ detail: string;
198
+ };
199
+ number2: {
200
+ name: string;
201
+ detail: string;
202
+ };
203
+ };
204
+ };
205
+ FORMULATEXT: {
206
+ description: string;
207
+ abstract: string;
208
+ links: {
209
+ title: string;
210
+ url: string;
211
+ }[];
212
+ functionParameter: {
213
+ number1: {
214
+ name: string;
215
+ detail: string;
216
+ };
217
+ number2: {
218
+ name: string;
219
+ detail: string;
220
+ };
221
+ };
222
+ };
223
+ GETPIVOTDATA: {
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
+ HLOOKUP: {
242
+ description: string;
243
+ abstract: string;
244
+ links: {
245
+ title: string;
246
+ url: string;
247
+ }[];
248
+ functionParameter: {
249
+ lookupValue: {
250
+ name: string;
251
+ detail: string;
252
+ };
253
+ tableArray: {
254
+ name: string;
255
+ detail: string;
256
+ };
257
+ rowIndexNum: {
258
+ name: string;
259
+ detail: string;
260
+ };
261
+ rangeLookup: {
262
+ name: string;
263
+ detail: string;
264
+ };
265
+ };
266
+ };
267
+ HSTACK: {
268
+ description: string;
269
+ abstract: string;
270
+ links: {
271
+ title: string;
272
+ url: string;
273
+ }[];
274
+ functionParameter: {
275
+ number1: {
276
+ name: string;
277
+ detail: string;
278
+ };
279
+ number2: {
280
+ name: string;
281
+ detail: string;
282
+ };
283
+ };
284
+ };
285
+ HYPERLINK: {
286
+ description: string;
287
+ abstract: string;
288
+ links: {
289
+ title: string;
290
+ url: string;
291
+ }[];
292
+ functionParameter: {
293
+ number1: {
294
+ name: string;
295
+ detail: string;
296
+ };
297
+ number2: {
298
+ name: string;
299
+ detail: string;
300
+ };
301
+ };
302
+ };
303
+ IMAGE: {
304
+ description: string;
305
+ abstract: string;
306
+ links: {
307
+ title: string;
308
+ url: string;
309
+ }[];
310
+ functionParameter: {
311
+ number1: {
312
+ name: string;
313
+ detail: string;
314
+ };
315
+ number2: {
316
+ name: string;
317
+ detail: string;
318
+ };
319
+ };
320
+ };
321
+ INDEX: {
322
+ description: string;
323
+ abstract: string;
324
+ links: {
325
+ title: string;
326
+ url: string;
327
+ }[];
328
+ functionParameter: {
329
+ reference: {
330
+ name: string;
331
+ detail: string;
332
+ };
333
+ rowNum: {
334
+ name: string;
335
+ detail: string;
336
+ };
337
+ columnNum: {
338
+ name: string;
339
+ detail: string;
340
+ };
341
+ areaNum: {
342
+ name: string;
343
+ detail: string;
344
+ };
345
+ };
346
+ };
347
+ INDIRECT: {
348
+ description: string;
349
+ abstract: string;
350
+ links: {
351
+ title: string;
352
+ url: string;
353
+ }[];
354
+ functionParameter: {
355
+ refText: {
356
+ name: string;
357
+ detail: string;
358
+ };
359
+ a1: {
360
+ name: string;
361
+ detail: string;
362
+ };
363
+ };
364
+ };
365
+ LOOKUP: {
366
+ description: string;
367
+ abstract: string;
368
+ links: {
369
+ title: string;
370
+ url: string;
371
+ }[];
372
+ functionParameter: {
373
+ lookupValue: {
374
+ name: string;
375
+ detail: string;
376
+ };
377
+ lookupVectorOrArray: {
378
+ name: string;
379
+ detail: string;
380
+ };
381
+ resultVector: {
382
+ name: string;
383
+ detail: string;
384
+ };
385
+ };
386
+ };
387
+ MATCH: {
388
+ description: string;
389
+ abstract: string;
390
+ links: {
391
+ title: string;
392
+ url: string;
393
+ }[];
394
+ functionParameter: {
395
+ lookupValue: {
396
+ name: string;
397
+ detail: string;
398
+ };
399
+ lookupArray: {
400
+ name: string;
401
+ detail: string;
402
+ };
403
+ matchType: {
404
+ name: string;
405
+ detail: string;
406
+ };
407
+ };
408
+ };
409
+ OFFSET: {
410
+ description: string;
411
+ abstract: string;
412
+ links: {
413
+ title: string;
414
+ url: string;
415
+ }[];
416
+ functionParameter: {
417
+ reference: {
418
+ name: string;
419
+ detail: string;
420
+ };
421
+ rows: {
422
+ name: string;
423
+ detail: string;
424
+ };
425
+ cols: {
426
+ name: string;
427
+ detail: string;
428
+ };
429
+ height: {
430
+ name: string;
431
+ detail: string;
432
+ };
433
+ width: {
434
+ name: string;
435
+ detail: string;
436
+ };
437
+ };
438
+ };
439
+ ROW: {
440
+ description: string;
441
+ abstract: string;
442
+ links: {
443
+ title: string;
444
+ url: string;
445
+ }[];
446
+ functionParameter: {
447
+ reference: {
448
+ name: string;
449
+ detail: string;
450
+ };
451
+ };
452
+ };
453
+ ROWS: {
454
+ description: string;
455
+ abstract: string;
456
+ links: {
457
+ title: string;
458
+ url: string;
459
+ }[];
460
+ functionParameter: {
461
+ array: {
462
+ name: string;
463
+ detail: string;
464
+ };
465
+ };
466
+ };
467
+ RTD: {
468
+ description: string;
469
+ abstract: string;
470
+ links: {
471
+ title: string;
472
+ url: string;
473
+ }[];
474
+ functionParameter: {
475
+ number1: {
476
+ name: string;
477
+ detail: string;
478
+ };
479
+ number2: {
480
+ name: string;
481
+ detail: string;
482
+ };
483
+ };
484
+ };
485
+ SORT: {
486
+ description: string;
487
+ abstract: string;
488
+ links: {
489
+ title: string;
490
+ url: string;
491
+ }[];
492
+ functionParameter: {
493
+ number1: {
494
+ name: string;
495
+ detail: string;
496
+ };
497
+ number2: {
498
+ name: string;
499
+ detail: string;
500
+ };
501
+ };
502
+ };
503
+ SORTBY: {
504
+ description: string;
505
+ abstract: string;
506
+ links: {
507
+ title: string;
508
+ url: string;
509
+ }[];
510
+ functionParameter: {
511
+ number1: {
512
+ name: string;
513
+ detail: string;
514
+ };
515
+ number2: {
516
+ name: string;
517
+ detail: string;
518
+ };
519
+ };
520
+ };
521
+ TAKE: {
522
+ description: string;
523
+ abstract: string;
524
+ links: {
525
+ title: string;
526
+ url: string;
527
+ }[];
528
+ functionParameter: {
529
+ number1: {
530
+ name: string;
531
+ detail: string;
532
+ };
533
+ number2: {
534
+ name: string;
535
+ detail: string;
536
+ };
537
+ };
538
+ };
539
+ TOCOL: {
540
+ description: string;
541
+ abstract: string;
542
+ links: {
543
+ title: string;
544
+ url: string;
545
+ }[];
546
+ functionParameter: {
547
+ number1: {
548
+ name: string;
549
+ detail: string;
550
+ };
551
+ number2: {
552
+ name: string;
553
+ detail: string;
554
+ };
555
+ };
556
+ };
557
+ TOROW: {
558
+ description: string;
559
+ abstract: string;
560
+ links: {
561
+ title: string;
562
+ url: string;
563
+ }[];
564
+ functionParameter: {
565
+ number1: {
566
+ name: string;
567
+ detail: string;
568
+ };
569
+ number2: {
570
+ name: string;
571
+ detail: string;
572
+ };
573
+ };
574
+ };
575
+ TRANSPOSE: {
576
+ description: string;
577
+ abstract: string;
578
+ links: {
579
+ title: string;
580
+ url: string;
581
+ }[];
582
+ functionParameter: {
583
+ number1: {
584
+ name: string;
585
+ detail: string;
586
+ };
587
+ number2: {
588
+ name: string;
589
+ detail: string;
590
+ };
591
+ };
592
+ };
593
+ UNIQUE: {
594
+ description: string;
595
+ abstract: string;
596
+ links: {
597
+ title: string;
598
+ url: string;
599
+ }[];
600
+ functionParameter: {
601
+ number1: {
602
+ name: string;
603
+ detail: string;
604
+ };
605
+ number2: {
606
+ name: string;
607
+ detail: string;
608
+ };
609
+ };
610
+ };
611
+ VLOOKUP: {
612
+ description: string;
613
+ abstract: string;
614
+ links: {
615
+ title: string;
616
+ url: string;
617
+ }[];
618
+ functionParameter: {
619
+ lookupValue: {
620
+ name: string;
621
+ detail: string;
622
+ };
623
+ tableArray: {
624
+ name: string;
625
+ detail: string;
626
+ };
627
+ colIndexNum: {
628
+ name: string;
629
+ detail: string;
630
+ };
631
+ rangeLookup: {
632
+ name: string;
633
+ detail: string;
634
+ };
635
+ };
636
+ };
637
+ VSTACK: {
638
+ description: string;
639
+ abstract: string;
640
+ links: {
641
+ title: string;
642
+ url: string;
643
+ }[];
644
+ functionParameter: {
645
+ number1: {
646
+ name: string;
647
+ detail: string;
648
+ };
649
+ number2: {
650
+ name: string;
651
+ detail: string;
652
+ };
653
+ };
654
+ };
655
+ WRAPCOLS: {
656
+ description: string;
657
+ abstract: string;
658
+ links: {
659
+ title: string;
660
+ url: string;
661
+ }[];
662
+ functionParameter: {
663
+ number1: {
664
+ name: string;
665
+ detail: string;
666
+ };
667
+ number2: {
668
+ name: string;
669
+ detail: string;
670
+ };
671
+ };
672
+ };
673
+ WRAPROWS: {
674
+ description: string;
675
+ abstract: string;
676
+ links: {
677
+ title: string;
678
+ url: string;
679
+ }[];
680
+ functionParameter: {
681
+ number1: {
682
+ name: string;
683
+ detail: string;
684
+ };
685
+ number2: {
686
+ name: string;
687
+ detail: string;
688
+ };
689
+ };
690
+ };
691
+ XLOOKUP: {
692
+ description: string;
693
+ abstract: string;
694
+ links: {
695
+ title: string;
696
+ url: string;
697
+ }[];
698
+ functionParameter: {
699
+ lookupValue: {
700
+ name: string;
701
+ detail: string;
702
+ };
703
+ lookupArray: {
704
+ name: string;
705
+ detail: string;
706
+ };
707
+ returnArray: {
708
+ name: string;
709
+ detail: string;
710
+ };
711
+ ifNotFound: {
712
+ name: string;
713
+ detail: string;
714
+ };
715
+ matchMode: {
716
+ name: string;
717
+ detail: string;
718
+ };
719
+ searchMode: {
720
+ name: string;
721
+ detail: string;
722
+ };
723
+ };
724
+ };
725
+ XMATCH: {
726
+ description: string;
727
+ abstract: string;
728
+ links: {
729
+ title: string;
730
+ url: string;
731
+ }[];
732
+ functionParameter: {
733
+ lookupValue: {
734
+ name: string;
735
+ detail: string;
736
+ };
737
+ lookupArray: {
738
+ name: string;
739
+ detail: string;
740
+ };
741
+ matchMode: {
742
+ name: string;
743
+ detail: string;
744
+ };
745
+ searchMode: {
746
+ name: string;
747
+ detail: string;
748
+ };
749
+ };
750
+ };
751
+ };
752
+ export default _default;