@univerjs/sheets-formula 0.1.0-beta.3 → 0.1.0-beta.5

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 (34) hide show
  1. package/lib/cjs/index.js +23 -7
  2. package/lib/es/index.js +2918 -2552
  3. package/lib/index.css +1 -1
  4. package/lib/types/commands/operations/insert-function.operation.d.ts +1 -1
  5. package/lib/types/controllers/array-formula-display.controller.d.ts +3 -2
  6. package/lib/types/controllers/menu.d.ts +1 -1
  7. package/lib/types/controllers/numfmt-formula-display.controller.d.ts +28 -0
  8. package/lib/types/controllers/prompt.controller.d.ts +1 -0
  9. package/lib/types/controllers/trigger-calculation.controller.d.ts +5 -1
  10. package/lib/types/controllers/update-formula.controller.d.ts +1 -1
  11. package/lib/types/locale/en-US.d.ts +104 -57
  12. package/lib/types/locale/function-list/date/en-US.d.ts +12 -29
  13. package/lib/types/locale/function-list/date/ja-JP.d.ts +12 -29
  14. package/lib/types/locale/function-list/date/zh-CN.d.ts +12 -29
  15. package/lib/types/locale/function-list/information/en-US.d.ts +1 -5
  16. package/lib/types/locale/function-list/information/ja-JP.d.ts +1 -5
  17. package/lib/types/locale/function-list/information/zh-CN.d.ts +1 -5
  18. package/lib/types/locale/function-list/logical/en-US.d.ts +10 -6
  19. package/lib/types/locale/function-list/logical/ja-JP.d.ts +10 -6
  20. package/lib/types/locale/function-list/logical/zh-CN.d.ts +10 -6
  21. package/lib/types/locale/function-list/lookup/en-US.d.ts +64 -12
  22. package/lib/types/locale/function-list/lookup/ja-JP.d.ts +64 -12
  23. package/lib/types/locale/function-list/lookup/zh-CN.d.ts +64 -12
  24. package/lib/types/locale/function-list/math/en-US.d.ts +15 -3
  25. package/lib/types/locale/function-list/math/ja-JP.d.ts +20 -4
  26. package/lib/types/locale/function-list/math/zh-CN.d.ts +15 -3
  27. package/lib/types/locale/function-list/statistical/ja-JP.d.ts +2 -2
  28. package/lib/types/locale/function-list/text/en-US.d.ts +2 -2
  29. package/lib/types/locale/function-list/text/ja-JP.d.ts +2 -2
  30. package/lib/types/locale/function-list/text/zh-CN.d.ts +2 -2
  31. package/lib/types/locale/zh-CN.d.ts +104 -57
  32. package/lib/types/services/function-list/array.d.ts +1 -1
  33. package/lib/umd/index.js +22 -6
  34. package/package.json +38 -24
@@ -22,11 +22,15 @@ declare const _default: {
22
22
  url: string;
23
23
  }[];
24
24
  functionParameter: {
25
- number1: {
25
+ year: {
26
26
  name: string;
27
27
  detail: string;
28
28
  };
29
- number2: {
29
+ month: {
30
+ name: string;
31
+ detail: string;
32
+ };
33
+ day: {
30
34
  name: string;
31
35
  detail: string;
32
36
  };
@@ -76,11 +80,7 @@ declare const _default: {
76
80
  url: string;
77
81
  }[];
78
82
  functionParameter: {
79
- number1: {
80
- name: string;
81
- detail: string;
82
- };
83
- number2: {
83
+ serialNumber: {
84
84
  name: string;
85
85
  detail: string;
86
86
  };
@@ -130,11 +130,11 @@ declare const _default: {
130
130
  url: string;
131
131
  }[];
132
132
  functionParameter: {
133
- number1: {
133
+ startDate: {
134
134
  name: string;
135
135
  detail: string;
136
136
  };
137
- number2: {
137
+ months: {
138
138
  name: string;
139
139
  detail: string;
140
140
  };
@@ -220,11 +220,7 @@ declare const _default: {
220
220
  url: string;
221
221
  }[];
222
222
  functionParameter: {
223
- number1: {
224
- name: string;
225
- detail: string;
226
- };
227
- number2: {
223
+ serialNumber: {
228
224
  name: string;
229
225
  detail: string;
230
226
  };
@@ -345,16 +341,7 @@ declare const _default: {
345
341
  title: string;
346
342
  url: string;
347
343
  }[];
348
- functionParameter: {
349
- number1: {
350
- name: string;
351
- detail: string;
352
- };
353
- number2: {
354
- name: string;
355
- detail: string;
356
- };
357
- };
344
+ functionParameter: {};
358
345
  };
359
346
  WEEKDAY: {
360
347
  description: string;
@@ -436,11 +423,7 @@ declare const _default: {
436
423
  url: string;
437
424
  }[];
438
425
  functionParameter: {
439
- number1: {
440
- name: string;
441
- detail: string;
442
- };
443
- number2: {
426
+ serialNumber: {
444
427
  name: string;
445
428
  detail: string;
446
429
  };
@@ -76,11 +76,7 @@ declare const _default: {
76
76
  url: string;
77
77
  }[];
78
78
  functionParameter: {
79
- number1: {
80
- name: string;
81
- detail: string;
82
- };
83
- number2: {
79
+ value: {
84
80
  name: string;
85
81
  detail: string;
86
82
  };
@@ -76,11 +76,7 @@ declare const _default: {
76
76
  url: string;
77
77
  }[];
78
78
  functionParameter: {
79
- number1: {
80
- name: string;
81
- detail: string;
82
- };
83
- number2: {
79
+ value: {
84
80
  name: string;
85
81
  detail: string;
86
82
  };
@@ -76,11 +76,7 @@ declare const _default: {
76
76
  url: string;
77
77
  }[];
78
78
  functionParameter: {
79
- number1: {
80
- name: string;
81
- detail: string;
82
- };
83
- number2: {
79
+ value: {
84
80
  name: string;
85
81
  detail: string;
86
82
  };
@@ -22,11 +22,11 @@ declare const _default: {
22
22
  url: string;
23
23
  }[];
24
24
  functionParameter: {
25
- number1: {
25
+ logical1: {
26
26
  name: string;
27
27
  detail: string;
28
28
  };
29
- number2: {
29
+ logical2: {
30
30
  name: string;
31
31
  detail: string;
32
32
  };
@@ -94,11 +94,15 @@ declare const _default: {
94
94
  url: string;
95
95
  }[];
96
96
  functionParameter: {
97
- number1: {
97
+ logicalTest: {
98
98
  name: string;
99
99
  detail: string;
100
100
  };
101
- number2: {
101
+ valueIfTrue: {
102
+ name: string;
103
+ detail: string;
104
+ };
105
+ valueIfFalse: {
102
106
  name: string;
103
107
  detail: string;
104
108
  };
@@ -112,11 +116,11 @@ declare const _default: {
112
116
  url: string;
113
117
  }[];
114
118
  functionParameter: {
115
- number1: {
119
+ value: {
116
120
  name: string;
117
121
  detail: string;
118
122
  };
119
- number2: {
123
+ valueIfError: {
120
124
  name: string;
121
125
  detail: string;
122
126
  };
@@ -22,11 +22,11 @@ declare const _default: {
22
22
  url: string;
23
23
  }[];
24
24
  functionParameter: {
25
- number1: {
25
+ logical1: {
26
26
  name: string;
27
27
  detail: string;
28
28
  };
29
- number2: {
29
+ logical2: {
30
30
  name: string;
31
31
  detail: string;
32
32
  };
@@ -94,11 +94,15 @@ declare const _default: {
94
94
  url: string;
95
95
  }[];
96
96
  functionParameter: {
97
- number1: {
97
+ logicalTest: {
98
98
  name: string;
99
99
  detail: string;
100
100
  };
101
- number2: {
101
+ valueIfTrue: {
102
+ name: string;
103
+ detail: string;
104
+ };
105
+ valueIfFalse: {
102
106
  name: string;
103
107
  detail: string;
104
108
  };
@@ -112,11 +116,11 @@ declare const _default: {
112
116
  url: string;
113
117
  }[];
114
118
  functionParameter: {
115
- number1: {
119
+ value: {
116
120
  name: string;
117
121
  detail: string;
118
122
  };
119
- number2: {
123
+ valueIfError: {
120
124
  name: string;
121
125
  detail: string;
122
126
  };
@@ -22,11 +22,11 @@ declare const _default: {
22
22
  url: string;
23
23
  }[];
24
24
  functionParameter: {
25
- number1: {
25
+ logical1: {
26
26
  name: string;
27
27
  detail: string;
28
28
  };
29
- number2: {
29
+ logical2: {
30
30
  name: string;
31
31
  detail: string;
32
32
  };
@@ -94,11 +94,15 @@ declare const _default: {
94
94
  url: string;
95
95
  }[];
96
96
  functionParameter: {
97
- number1: {
97
+ logicalTest: {
98
98
  name: string;
99
99
  detail: string;
100
100
  };
101
- number2: {
101
+ valueIfTrue: {
102
+ name: string;
103
+ detail: string;
104
+ };
105
+ valueIfFalse: {
102
106
  name: string;
103
107
  detail: string;
104
108
  };
@@ -112,11 +116,11 @@ declare const _default: {
112
116
  url: string;
113
117
  }[];
114
118
  functionParameter: {
115
- number1: {
119
+ value: {
116
120
  name: string;
117
121
  detail: string;
118
122
  };
119
- number2: {
123
+ valueIfError: {
120
124
  name: string;
121
125
  detail: string;
122
126
  };
@@ -250,11 +250,19 @@ declare const _default: {
250
250
  url: string;
251
251
  }[];
252
252
  functionParameter: {
253
- number1: {
253
+ lookupValue: {
254
254
  name: string;
255
255
  detail: string;
256
256
  };
257
- number2: {
257
+ tableArray: {
258
+ name: string;
259
+ detail: string;
260
+ };
261
+ rowIndexNum: {
262
+ name: string;
263
+ detail: string;
264
+ };
265
+ rangeLookup: {
258
266
  name: string;
259
267
  detail: string;
260
268
  };
@@ -358,11 +366,15 @@ declare const _default: {
358
366
  url: string;
359
367
  }[];
360
368
  functionParameter: {
361
- number1: {
369
+ lookupValue: {
362
370
  name: string;
363
371
  detail: string;
364
372
  };
365
- number2: {
373
+ lookupVectorOrArray: {
374
+ name: string;
375
+ detail: string;
376
+ };
377
+ resultVector: {
366
378
  name: string;
367
379
  detail: string;
368
380
  };
@@ -376,11 +388,15 @@ declare const _default: {
376
388
  url: string;
377
389
  }[];
378
390
  functionParameter: {
379
- number1: {
391
+ lookupValue: {
380
392
  name: string;
381
393
  detail: string;
382
394
  };
383
- number2: {
395
+ lookupArray: {
396
+ name: string;
397
+ detail: string;
398
+ };
399
+ matchType: {
384
400
  name: string;
385
401
  detail: string;
386
402
  };
@@ -394,11 +410,23 @@ declare const _default: {
394
410
  url: string;
395
411
  }[];
396
412
  functionParameter: {
397
- number1: {
413
+ reference: {
398
414
  name: string;
399
415
  detail: string;
400
416
  };
401
- number2: {
417
+ rows: {
418
+ name: string;
419
+ detail: string;
420
+ };
421
+ cols: {
422
+ name: string;
423
+ detail: string;
424
+ };
425
+ height: {
426
+ name: string;
427
+ detail: string;
428
+ };
429
+ width: {
402
430
  name: string;
403
431
  detail: string;
404
432
  };
@@ -672,11 +700,27 @@ declare const _default: {
672
700
  url: string;
673
701
  }[];
674
702
  functionParameter: {
675
- number1: {
703
+ lookupValue: {
676
704
  name: string;
677
705
  detail: string;
678
706
  };
679
- number2: {
707
+ lookupArray: {
708
+ name: string;
709
+ detail: string;
710
+ };
711
+ returnArray: {
712
+ name: string;
713
+ detail: string;
714
+ };
715
+ ifNotFound: {
716
+ name: string;
717
+ detail: string;
718
+ };
719
+ matchMode: {
720
+ name: string;
721
+ detail: string;
722
+ };
723
+ searchMode: {
680
724
  name: string;
681
725
  detail: string;
682
726
  };
@@ -690,11 +734,19 @@ declare const _default: {
690
734
  url: string;
691
735
  }[];
692
736
  functionParameter: {
693
- number1: {
737
+ lookupValue: {
694
738
  name: string;
695
739
  detail: string;
696
740
  };
697
- number2: {
741
+ lookupArray: {
742
+ name: string;
743
+ detail: string;
744
+ };
745
+ matchMode: {
746
+ name: string;
747
+ detail: string;
748
+ };
749
+ searchMode: {
698
750
  name: string;
699
751
  detail: string;
700
752
  };
@@ -250,11 +250,19 @@ declare const _default: {
250
250
  url: string;
251
251
  }[];
252
252
  functionParameter: {
253
- number1: {
253
+ lookupValue: {
254
254
  name: string;
255
255
  detail: string;
256
256
  };
257
- number2: {
257
+ tableArray: {
258
+ name: string;
259
+ detail: string;
260
+ };
261
+ rowIndexNum: {
262
+ name: string;
263
+ detail: string;
264
+ };
265
+ rangeLookup: {
258
266
  name: string;
259
267
  detail: string;
260
268
  };
@@ -358,11 +366,15 @@ declare const _default: {
358
366
  url: string;
359
367
  }[];
360
368
  functionParameter: {
361
- number1: {
369
+ lookupValue: {
362
370
  name: string;
363
371
  detail: string;
364
372
  };
365
- number2: {
373
+ lookupVectorOrArray: {
374
+ name: string;
375
+ detail: string;
376
+ };
377
+ resultVector: {
366
378
  name: string;
367
379
  detail: string;
368
380
  };
@@ -376,11 +388,15 @@ declare const _default: {
376
388
  url: string;
377
389
  }[];
378
390
  functionParameter: {
379
- number1: {
391
+ lookupValue: {
380
392
  name: string;
381
393
  detail: string;
382
394
  };
383
- number2: {
395
+ lookupArray: {
396
+ name: string;
397
+ detail: string;
398
+ };
399
+ matchType: {
384
400
  name: string;
385
401
  detail: string;
386
402
  };
@@ -394,11 +410,23 @@ declare const _default: {
394
410
  url: string;
395
411
  }[];
396
412
  functionParameter: {
397
- number1: {
413
+ reference: {
398
414
  name: string;
399
415
  detail: string;
400
416
  };
401
- number2: {
417
+ rows: {
418
+ name: string;
419
+ detail: string;
420
+ };
421
+ cols: {
422
+ name: string;
423
+ detail: string;
424
+ };
425
+ height: {
426
+ name: string;
427
+ detail: string;
428
+ };
429
+ width: {
402
430
  name: string;
403
431
  detail: string;
404
432
  };
@@ -672,11 +700,27 @@ declare const _default: {
672
700
  url: string;
673
701
  }[];
674
702
  functionParameter: {
675
- number1: {
703
+ lookupValue: {
676
704
  name: string;
677
705
  detail: string;
678
706
  };
679
- number2: {
707
+ lookupArray: {
708
+ name: string;
709
+ detail: string;
710
+ };
711
+ returnArray: {
712
+ name: string;
713
+ detail: string;
714
+ };
715
+ ifNotFound: {
716
+ name: string;
717
+ detail: string;
718
+ };
719
+ matchMode: {
720
+ name: string;
721
+ detail: string;
722
+ };
723
+ searchMode: {
680
724
  name: string;
681
725
  detail: string;
682
726
  };
@@ -690,11 +734,19 @@ declare const _default: {
690
734
  url: string;
691
735
  }[];
692
736
  functionParameter: {
693
- number1: {
737
+ lookupValue: {
694
738
  name: string;
695
739
  detail: string;
696
740
  };
697
- number2: {
741
+ lookupArray: {
742
+ name: string;
743
+ detail: string;
744
+ };
745
+ matchMode: {
746
+ name: string;
747
+ detail: string;
748
+ };
749
+ searchMode: {
698
750
  name: string;
699
751
  detail: string;
700
752
  };
@@ -250,11 +250,19 @@ declare const _default: {
250
250
  url: string;
251
251
  }[];
252
252
  functionParameter: {
253
- number1: {
253
+ lookupValue: {
254
254
  name: string;
255
255
  detail: string;
256
256
  };
257
- number2: {
257
+ tableArray: {
258
+ name: string;
259
+ detail: string;
260
+ };
261
+ rowIndexNum: {
262
+ name: string;
263
+ detail: string;
264
+ };
265
+ rangeLookup: {
258
266
  name: string;
259
267
  detail: string;
260
268
  };
@@ -358,11 +366,15 @@ declare const _default: {
358
366
  url: string;
359
367
  }[];
360
368
  functionParameter: {
361
- number1: {
369
+ lookupValue: {
362
370
  name: string;
363
371
  detail: string;
364
372
  };
365
- number2: {
373
+ lookupVectorOrArray: {
374
+ name: string;
375
+ detail: string;
376
+ };
377
+ resultVector: {
366
378
  name: string;
367
379
  detail: string;
368
380
  };
@@ -376,11 +388,15 @@ declare const _default: {
376
388
  url: string;
377
389
  }[];
378
390
  functionParameter: {
379
- number1: {
391
+ lookupValue: {
380
392
  name: string;
381
393
  detail: string;
382
394
  };
383
- number2: {
395
+ lookupArray: {
396
+ name: string;
397
+ detail: string;
398
+ };
399
+ matchType: {
384
400
  name: string;
385
401
  detail: string;
386
402
  };
@@ -394,11 +410,23 @@ declare const _default: {
394
410
  url: string;
395
411
  }[];
396
412
  functionParameter: {
397
- number1: {
413
+ reference: {
398
414
  name: string;
399
415
  detail: string;
400
416
  };
401
- number2: {
417
+ rows: {
418
+ name: string;
419
+ detail: string;
420
+ };
421
+ cols: {
422
+ name: string;
423
+ detail: string;
424
+ };
425
+ height: {
426
+ name: string;
427
+ detail: string;
428
+ };
429
+ width: {
402
430
  name: string;
403
431
  detail: string;
404
432
  };
@@ -672,11 +700,27 @@ declare const _default: {
672
700
  url: string;
673
701
  }[];
674
702
  functionParameter: {
675
- number1: {
703
+ lookupValue: {
676
704
  name: string;
677
705
  detail: string;
678
706
  };
679
- number2: {
707
+ lookupArray: {
708
+ name: string;
709
+ detail: string;
710
+ };
711
+ returnArray: {
712
+ name: string;
713
+ detail: string;
714
+ };
715
+ ifNotFound: {
716
+ name: string;
717
+ detail: string;
718
+ };
719
+ matchMode: {
720
+ name: string;
721
+ detail: string;
722
+ };
723
+ searchMode: {
680
724
  name: string;
681
725
  detail: string;
682
726
  };
@@ -690,11 +734,19 @@ declare const _default: {
690
734
  url: string;
691
735
  }[];
692
736
  functionParameter: {
693
- number1: {
737
+ lookupValue: {
694
738
  name: string;
695
739
  detail: string;
696
740
  };
697
- number2: {
741
+ lookupArray: {
742
+ name: string;
743
+ detail: string;
744
+ };
745
+ matchMode: {
746
+ name: string;
747
+ detail: string;
748
+ };
749
+ searchMode: {
698
750
  name: string;
699
751
  detail: string;
700
752
  };
@@ -1310,7 +1310,7 @@ declare const _default: {
1310
1310
  name: string;
1311
1311
  detail: string;
1312
1312
  };
1313
- sum_range: {
1313
+ sumRange: {
1314
1314
  name: string;
1315
1315
  detail: string;
1316
1316
  };
@@ -1324,11 +1324,23 @@ declare const _default: {
1324
1324
  url: string;
1325
1325
  }[];
1326
1326
  functionParameter: {
1327
- number1: {
1327
+ sumRange: {
1328
1328
  name: string;
1329
1329
  detail: string;
1330
1330
  };
1331
- number2: {
1331
+ criteriaRange1: {
1332
+ name: string;
1333
+ detail: string;
1334
+ };
1335
+ criteria1: {
1336
+ name: string;
1337
+ detail: string;
1338
+ };
1339
+ criteriaRange2: {
1340
+ name: string;
1341
+ detail: string;
1342
+ };
1343
+ criteria2: {
1332
1344
  name: string;
1333
1345
  detail: string;
1334
1346
  };