@univerjs/sheets-formula 0.1.0-beta.2 → 0.1.0-beta.4

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 (32) hide show
  1. package/{LICENSE.txt → LICENSE} +0 -2
  2. package/lib/cjs/index.js +7 -7
  3. package/lib/es/index.js +3242 -2820
  4. package/lib/index.css +1 -1
  5. package/lib/types/controllers/menu.d.ts +1 -1
  6. package/lib/types/controllers/prompt.controller.d.ts +5 -1
  7. package/lib/types/controllers/update-formula.controller.d.ts +2 -0
  8. package/lib/types/controllers/utils/__tests__/redo-undo-formula-data.spec.d.ts +16 -0
  9. package/lib/types/controllers/utils/offset-formula-data.d.ts +52 -0
  10. package/lib/types/controllers/utils/redo-undo-formula-data.d.ts +19 -0
  11. package/lib/types/locale/en-US.d.ts +76 -24
  12. package/lib/types/locale/function-list/information/en-US.d.ts +1 -5
  13. package/lib/types/locale/function-list/information/ja-JP.d.ts +1 -5
  14. package/lib/types/locale/function-list/information/zh-CN.d.ts +1 -5
  15. package/lib/types/locale/function-list/logical/en-US.d.ts +10 -6
  16. package/lib/types/locale/function-list/logical/ja-JP.d.ts +10 -6
  17. package/lib/types/locale/function-list/logical/zh-CN.d.ts +10 -6
  18. package/lib/types/locale/function-list/lookup/en-US.d.ts +48 -8
  19. package/lib/types/locale/function-list/lookup/ja-JP.d.ts +48 -8
  20. package/lib/types/locale/function-list/lookup/zh-CN.d.ts +48 -8
  21. package/lib/types/locale/function-list/math/en-US.d.ts +15 -3
  22. package/lib/types/locale/function-list/math/ja-JP.d.ts +20 -4
  23. package/lib/types/locale/function-list/math/zh-CN.d.ts +15 -3
  24. package/lib/types/locale/function-list/statistical/ja-JP.d.ts +2 -2
  25. package/lib/types/locale/function-list/text/en-US.d.ts +2 -2
  26. package/lib/types/locale/function-list/text/ja-JP.d.ts +2 -2
  27. package/lib/types/locale/function-list/text/zh-CN.d.ts +2 -2
  28. package/lib/types/locale/zh-CN.d.ts +76 -24
  29. package/lib/umd/index.js +6 -6
  30. package/package.json +45 -43
  31. package/lib/types/controllers/utils.d.ts +0 -27
  32. /package/lib/types/controllers/{__tests__/utils.spec.d.ts → utils/__tests__/offset-formula-data.spec.d.ts} +0 -0
@@ -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
  };
@@ -394,11 +406,23 @@ declare const _default: {
394
406
  url: string;
395
407
  }[];
396
408
  functionParameter: {
397
- number1: {
409
+ reference: {
398
410
  name: string;
399
411
  detail: string;
400
412
  };
401
- number2: {
413
+ rows: {
414
+ name: string;
415
+ detail: string;
416
+ };
417
+ cols: {
418
+ name: string;
419
+ detail: string;
420
+ };
421
+ height: {
422
+ name: string;
423
+ detail: string;
424
+ };
425
+ width: {
402
426
  name: string;
403
427
  detail: string;
404
428
  };
@@ -672,11 +696,27 @@ declare const _default: {
672
696
  url: string;
673
697
  }[];
674
698
  functionParameter: {
675
- number1: {
699
+ lookupValue: {
676
700
  name: string;
677
701
  detail: string;
678
702
  };
679
- number2: {
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: {
680
720
  name: string;
681
721
  detail: string;
682
722
  };
@@ -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
  };
@@ -394,11 +406,23 @@ declare const _default: {
394
406
  url: string;
395
407
  }[];
396
408
  functionParameter: {
397
- number1: {
409
+ reference: {
398
410
  name: string;
399
411
  detail: string;
400
412
  };
401
- number2: {
413
+ rows: {
414
+ name: string;
415
+ detail: string;
416
+ };
417
+ cols: {
418
+ name: string;
419
+ detail: string;
420
+ };
421
+ height: {
422
+ name: string;
423
+ detail: string;
424
+ };
425
+ width: {
402
426
  name: string;
403
427
  detail: string;
404
428
  };
@@ -672,11 +696,27 @@ declare const _default: {
672
696
  url: string;
673
697
  }[];
674
698
  functionParameter: {
675
- number1: {
699
+ lookupValue: {
676
700
  name: string;
677
701
  detail: string;
678
702
  };
679
- number2: {
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: {
680
720
  name: string;
681
721
  detail: string;
682
722
  };
@@ -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
  };
@@ -1302,11 +1302,15 @@ declare const _default: {
1302
1302
  url: string;
1303
1303
  }[];
1304
1304
  functionParameter: {
1305
- number1: {
1305
+ range: {
1306
1306
  name: string;
1307
1307
  detail: string;
1308
1308
  };
1309
- number2: {
1309
+ criteria: {
1310
+ name: string;
1311
+ detail: string;
1312
+ };
1313
+ sumRange: {
1310
1314
  name: string;
1311
1315
  detail: string;
1312
1316
  };
@@ -1320,11 +1324,23 @@ declare const _default: {
1320
1324
  url: string;
1321
1325
  }[];
1322
1326
  functionParameter: {
1323
- number1: {
1327
+ sumRange: {
1324
1328
  name: string;
1325
1329
  detail: string;
1326
1330
  };
1327
- 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: {
1328
1344
  name: string;
1329
1345
  detail: string;
1330
1346
  };
@@ -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
  };
@@ -346,11 +346,11 @@ declare const _default: {
346
346
  url: string;
347
347
  }[];
348
348
  functionParameter: {
349
- number1: {
349
+ value1: {
350
350
  name: string;
351
351
  detail: string;
352
352
  };
353
- number2: {
353
+ value2: {
354
354
  name: string;
355
355
  detail: string;
356
356
  };
@@ -148,11 +148,11 @@ declare const _default: {
148
148
  url: string;
149
149
  }[];
150
150
  functionParameter: {
151
- number1: {
151
+ text1: {
152
152
  name: string;
153
153
  detail: string;
154
154
  };
155
- number2: {
155
+ text2: {
156
156
  name: string;
157
157
  detail: string;
158
158
  };
@@ -148,11 +148,11 @@ declare const _default: {
148
148
  url: string;
149
149
  }[];
150
150
  functionParameter: {
151
- number1: {
151
+ text1: {
152
152
  name: string;
153
153
  detail: string;
154
154
  };
155
- number2: {
155
+ text2: {
156
156
  name: string;
157
157
  detail: string;
158
158
  };
@@ -148,11 +148,11 @@ declare const _default: {
148
148
  url: string;
149
149
  }[];
150
150
  functionParameter: {
151
- number1: {
151
+ text1: {
152
152
  name: string;
153
153
  detail: string;
154
154
  };
155
- number2: {
155
+ text2: {
156
156
  name: string;
157
157
  detail: string;
158
158
  };
@@ -1923,11 +1923,7 @@ declare const _default: {
1923
1923
  url: string;
1924
1924
  }[];
1925
1925
  functionParameter: {
1926
- number1: {
1927
- name: string;
1928
- detail: string;
1929
- };
1930
- number2: {
1926
+ value: {
1931
1927
  name: string;
1932
1928
  detail: string;
1933
1929
  };
@@ -2247,11 +2243,11 @@ declare const _default: {
2247
2243
  url: string;
2248
2244
  }[];
2249
2245
  functionParameter: {
2250
- number1: {
2246
+ logical1: {
2251
2247
  name: string;
2252
2248
  detail: string;
2253
2249
  };
2254
- number2: {
2250
+ logical2: {
2255
2251
  name: string;
2256
2252
  detail: string;
2257
2253
  };
@@ -2319,11 +2315,15 @@ declare const _default: {
2319
2315
  url: string;
2320
2316
  }[];
2321
2317
  functionParameter: {
2322
- number1: {
2318
+ logicalTest: {
2323
2319
  name: string;
2324
2320
  detail: string;
2325
2321
  };
2326
- number2: {
2322
+ valueIfTrue: {
2323
+ name: string;
2324
+ detail: string;
2325
+ };
2326
+ valueIfFalse: {
2327
2327
  name: string;
2328
2328
  detail: string;
2329
2329
  };
@@ -2337,11 +2337,11 @@ declare const _default: {
2337
2337
  url: string;
2338
2338
  }[];
2339
2339
  functionParameter: {
2340
- number1: {
2340
+ value: {
2341
2341
  name: string;
2342
2342
  detail: string;
2343
2343
  };
2344
- number2: {
2344
+ valueIfError: {
2345
2345
  name: string;
2346
2346
  detail: string;
2347
2347
  };
@@ -2719,11 +2719,11 @@ declare const _default: {
2719
2719
  url: string;
2720
2720
  }[];
2721
2721
  functionParameter: {
2722
- number1: {
2722
+ text1: {
2723
2723
  name: string;
2724
2724
  detail: string;
2725
2725
  };
2726
- number2: {
2726
+ text2: {
2727
2727
  name: string;
2728
2728
  detail: string;
2729
2729
  };
@@ -3883,11 +3883,19 @@ declare const _default: {
3883
3883
  url: string;
3884
3884
  }[];
3885
3885
  functionParameter: {
3886
- number1: {
3886
+ lookupValue: {
3887
3887
  name: string;
3888
3888
  detail: string;
3889
3889
  };
3890
- number2: {
3890
+ tableArray: {
3891
+ name: string;
3892
+ detail: string;
3893
+ };
3894
+ rowIndexNum: {
3895
+ name: string;
3896
+ detail: string;
3897
+ };
3898
+ rangeLookup: {
3891
3899
  name: string;
3892
3900
  detail: string;
3893
3901
  };
@@ -3991,11 +3999,15 @@ declare const _default: {
3991
3999
  url: string;
3992
4000
  }[];
3993
4001
  functionParameter: {
3994
- number1: {
4002
+ lookupValue: {
3995
4003
  name: string;
3996
4004
  detail: string;
3997
4005
  };
3998
- number2: {
4006
+ lookupVectorOrArray: {
4007
+ name: string;
4008
+ detail: string;
4009
+ };
4010
+ resultVector: {
3999
4011
  name: string;
4000
4012
  detail: string;
4001
4013
  };
@@ -4027,11 +4039,23 @@ declare const _default: {
4027
4039
  url: string;
4028
4040
  }[];
4029
4041
  functionParameter: {
4030
- number1: {
4042
+ reference: {
4031
4043
  name: string;
4032
4044
  detail: string;
4033
4045
  };
4034
- number2: {
4046
+ rows: {
4047
+ name: string;
4048
+ detail: string;
4049
+ };
4050
+ cols: {
4051
+ name: string;
4052
+ detail: string;
4053
+ };
4054
+ height: {
4055
+ name: string;
4056
+ detail: string;
4057
+ };
4058
+ width: {
4035
4059
  name: string;
4036
4060
  detail: string;
4037
4061
  };
@@ -4305,11 +4329,27 @@ declare const _default: {
4305
4329
  url: string;
4306
4330
  }[];
4307
4331
  functionParameter: {
4308
- number1: {
4332
+ lookupValue: {
4309
4333
  name: string;
4310
4334
  detail: string;
4311
4335
  };
4312
- number2: {
4336
+ lookupArray: {
4337
+ name: string;
4338
+ detail: string;
4339
+ };
4340
+ returnArray: {
4341
+ name: string;
4342
+ detail: string;
4343
+ };
4344
+ ifNotFound: {
4345
+ name: string;
4346
+ detail: string;
4347
+ };
4348
+ matchMode: {
4349
+ name: string;
4350
+ detail: string;
4351
+ };
4352
+ searchMode: {
4313
4353
  name: string;
4314
4354
  detail: string;
4315
4355
  };
@@ -7609,7 +7649,7 @@ declare const _default: {
7609
7649
  name: string;
7610
7650
  detail: string;
7611
7651
  };
7612
- sum_range: {
7652
+ sumRange: {
7613
7653
  name: string;
7614
7654
  detail: string;
7615
7655
  };
@@ -7623,11 +7663,23 @@ declare const _default: {
7623
7663
  url: string;
7624
7664
  }[];
7625
7665
  functionParameter: {
7626
- number1: {
7666
+ sumRange: {
7627
7667
  name: string;
7628
7668
  detail: string;
7629
7669
  };
7630
- number2: {
7670
+ criteriaRange1: {
7671
+ name: string;
7672
+ detail: string;
7673
+ };
7674
+ criteria1: {
7675
+ name: string;
7676
+ detail: string;
7677
+ };
7678
+ criteriaRange2: {
7679
+ name: string;
7680
+ detail: string;
7681
+ };
7682
+ criteria2: {
7631
7683
  name: string;
7632
7684
  detail: string;
7633
7685
  };