@univerjs/sheets-formula 0.1.16 → 0.2.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 (38) hide show
  1. package/lib/cjs/index.js +4 -4
  2. package/lib/es/index.js +3097 -3017
  3. package/lib/locale/en-US.json +175 -180
  4. package/lib/locale/ru-RU.json +174 -179
  5. package/lib/locale/zh-CN.json +179 -184
  6. package/lib/types/commands/commands/formula-clipboard.command.d.ts +0 -1
  7. package/lib/types/commands/operations/__tests__/create-command-test-bed.d.ts +6 -6
  8. package/lib/types/controllers/formula-alert-render.controller.d.ts +13 -0
  9. package/lib/types/controllers/formula-clipboard.controller.d.ts +5 -4
  10. package/lib/types/controllers/formula-editor-show.controller.d.ts +2 -6
  11. package/lib/types/controllers/formula-ui.controller.d.ts +1 -1
  12. package/lib/types/controllers/prompt.controller.d.ts +2 -3
  13. package/lib/types/controllers/trigger-calculation.controller.d.ts +5 -1
  14. package/lib/types/controllers/update-formula.controller.d.ts +3 -1
  15. package/lib/types/formula-ui-plugin.d.ts +15 -3
  16. package/lib/types/index.d.ts +10 -2
  17. package/lib/types/locale/en-US.d.ts +79 -84
  18. package/lib/types/locale/function-list/date/en-US.d.ts +9 -22
  19. package/lib/types/locale/function-list/date/ja-JP.d.ts +9 -22
  20. package/lib/types/locale/function-list/date/zh-CN.d.ts +9 -22
  21. package/lib/types/locale/function-list/lookup/en-US.d.ts +6 -2
  22. package/lib/types/locale/function-list/lookup/ja-JP.d.ts +6 -2
  23. package/lib/types/locale/function-list/lookup/zh-CN.d.ts +6 -2
  24. package/lib/types/locale/function-list/math/en-US.d.ts +9 -37
  25. package/lib/types/locale/function-list/math/ja-JP.d.ts +9 -37
  26. package/lib/types/locale/function-list/math/zh-CN.d.ts +9 -37
  27. package/lib/types/locale/function-list/statistical/en-US.d.ts +53 -21
  28. package/lib/types/locale/function-list/statistical/ja-JP.d.ts +55 -23
  29. package/lib/types/locale/function-list/statistical/zh-CN.d.ts +53 -21
  30. package/lib/types/locale/function-list/text/en-US.d.ts +2 -2
  31. package/lib/types/locale/function-list/text/ja-JP.d.ts +2 -2
  32. package/lib/types/locale/function-list/text/ru-RU.d.ts +2 -2
  33. package/lib/types/locale/function-list/text/zh-CN.d.ts +2 -2
  34. package/lib/types/locale/ru-RU.d.ts +79 -84
  35. package/lib/types/locale/zh-CN.d.ts +79 -84
  36. package/lib/umd/index.js +4 -4
  37. package/package.json +24 -24
  38. package/lib/types/controllers/formula-alert.controller.d.ts +0 -12
@@ -2661,11 +2661,11 @@ declare const _default: {
2661
2661
  url: string;
2662
2662
  }[];
2663
2663
  functionParameter: {
2664
- number1: {
2664
+ text1: {
2665
2665
  name: string;
2666
2666
  detail: string;
2667
2667
  };
2668
- number2: {
2668
+ text2: {
2669
2669
  name: string;
2670
2670
  detail: string;
2671
2671
  };
@@ -3651,11 +3651,15 @@ declare const _default: {
3651
3651
  url: string;
3652
3652
  }[];
3653
3653
  functionParameter: {
3654
- number1: {
3654
+ indexNum: {
3655
3655
  name: string;
3656
3656
  detail: string;
3657
3657
  };
3658
- number2: {
3658
+ value1: {
3659
+ name: string;
3660
+ detail: string;
3661
+ };
3662
+ value2: {
3659
3663
  name: string;
3660
3664
  detail: string;
3661
3665
  };
@@ -4369,11 +4373,11 @@ declare const _default: {
4369
4373
  url: string;
4370
4374
  }[];
4371
4375
  functionParameter: {
4372
- number1: {
4376
+ value1: {
4373
4377
  name: string;
4374
4378
  detail: string;
4375
4379
  };
4376
- number2: {
4380
+ value2: {
4377
4381
  name: string;
4378
4382
  detail: string;
4379
4383
  };
@@ -4387,11 +4391,15 @@ declare const _default: {
4387
4391
  url: string;
4388
4392
  }[];
4389
4393
  functionParameter: {
4390
- number1: {
4394
+ range: {
4391
4395
  name: string;
4392
4396
  detail: string;
4393
4397
  };
4394
- number2: {
4398
+ criteria: {
4399
+ name: string;
4400
+ detail: string;
4401
+ };
4402
+ averageRange: {
4395
4403
  name: string;
4396
4404
  detail: string;
4397
4405
  };
@@ -4405,11 +4413,23 @@ declare const _default: {
4405
4413
  url: string;
4406
4414
  }[];
4407
4415
  functionParameter: {
4408
- number1: {
4416
+ averageRange: {
4409
4417
  name: string;
4410
4418
  detail: string;
4411
4419
  };
4412
- number2: {
4420
+ criteriaRange1: {
4421
+ name: string;
4422
+ detail: string;
4423
+ };
4424
+ criteria1: {
4425
+ name: string;
4426
+ detail: string;
4427
+ };
4428
+ criteriaRange2: {
4429
+ name: string;
4430
+ detail: string;
4431
+ };
4432
+ criteria2: {
4413
4433
  name: string;
4414
4434
  detail: string;
4415
4435
  };
@@ -4693,11 +4713,7 @@ declare const _default: {
4693
4713
  url: string;
4694
4714
  }[];
4695
4715
  functionParameter: {
4696
- number1: {
4697
- name: string;
4698
- detail: string;
4699
- };
4700
- number2: {
4716
+ range: {
4701
4717
  name: string;
4702
4718
  detail: string;
4703
4719
  };
@@ -4711,11 +4727,11 @@ declare const _default: {
4711
4727
  url: string;
4712
4728
  }[];
4713
4729
  functionParameter: {
4714
- number1: {
4730
+ range: {
4715
4731
  name: string;
4716
4732
  detail: string;
4717
4733
  };
4718
- number2: {
4734
+ criteria: {
4719
4735
  name: string;
4720
4736
  detail: string;
4721
4737
  };
@@ -4729,11 +4745,19 @@ declare const _default: {
4729
4745
  url: string;
4730
4746
  }[];
4731
4747
  functionParameter: {
4732
- number1: {
4748
+ criteriaRange1: {
4733
4749
  name: string;
4734
4750
  detail: string;
4735
4751
  };
4736
- number2: {
4752
+ criteria1: {
4753
+ name: string;
4754
+ detail: string;
4755
+ };
4756
+ criteriaRange2: {
4757
+ name: string;
4758
+ detail: string;
4759
+ };
4760
+ criteria2: {
4737
4761
  name: string;
4738
4762
  detail: string;
4739
4763
  };
@@ -5395,11 +5419,11 @@ declare const _default: {
5395
5419
  url: string;
5396
5420
  }[];
5397
5421
  functionParameter: {
5398
- number1: {
5422
+ value1: {
5399
5423
  name: string;
5400
5424
  detail: string;
5401
5425
  };
5402
- number2: {
5426
+ value2: {
5403
5427
  name: string;
5404
5428
  detail: string;
5405
5429
  };
@@ -5479,11 +5503,11 @@ declare const _default: {
5479
5503
  url: string;
5480
5504
  }[];
5481
5505
  functionParameter: {
5482
- number1: {
5506
+ value1: {
5483
5507
  name: string;
5484
5508
  detail: string;
5485
5509
  };
5486
- number2: {
5510
+ value2: {
5487
5511
  name: string;
5488
5512
  detail: string;
5489
5513
  };
@@ -5497,11 +5521,23 @@ declare const _default: {
5497
5521
  url: string;
5498
5522
  }[];
5499
5523
  functionParameter: {
5500
- number1: {
5524
+ minRange: {
5501
5525
  name: string;
5502
5526
  detail: string;
5503
5527
  };
5504
- number2: {
5528
+ criteriaRange1: {
5529
+ name: string;
5530
+ detail: string;
5531
+ };
5532
+ criteria1: {
5533
+ name: string;
5534
+ detail: string;
5535
+ };
5536
+ criteriaRange2: {
5537
+ name: string;
5538
+ detail: string;
5539
+ };
5540
+ criteria2: {
5505
5541
  name: string;
5506
5542
  detail: string;
5507
5543
  };
@@ -6453,11 +6489,7 @@ declare const _default: {
6453
6489
  url: string;
6454
6490
  }[];
6455
6491
  functionParameter: {
6456
- number1: {
6457
- name: string;
6458
- detail: string;
6459
- };
6460
- number2: {
6492
+ number: {
6461
6493
  name: string;
6462
6494
  detail: string;
6463
6495
  };
@@ -6471,11 +6503,7 @@ declare const _default: {
6471
6503
  url: string;
6472
6504
  }[];
6473
6505
  functionParameter: {
6474
- number1: {
6475
- name: string;
6476
- detail: string;
6477
- };
6478
- number2: {
6506
+ number: {
6479
6507
  name: string;
6480
6508
  detail: string;
6481
6509
  };
@@ -6489,11 +6517,7 @@ declare const _default: {
6489
6517
  url: string;
6490
6518
  }[];
6491
6519
  functionParameter: {
6492
- number1: {
6493
- name: string;
6494
- detail: string;
6495
- };
6496
- number2: {
6520
+ number: {
6497
6521
  name: string;
6498
6522
  detail: string;
6499
6523
  };
@@ -6507,11 +6531,11 @@ declare const _default: {
6507
6531
  url: string;
6508
6532
  }[];
6509
6533
  functionParameter: {
6510
- number1: {
6534
+ xNum: {
6511
6535
  name: string;
6512
6536
  detail: string;
6513
6537
  };
6514
- number2: {
6538
+ yNum: {
6515
6539
  name: string;
6516
6540
  detail: string;
6517
6541
  };
@@ -6525,11 +6549,7 @@ declare const _default: {
6525
6549
  url: string;
6526
6550
  }[];
6527
6551
  functionParameter: {
6528
- number1: {
6529
- name: string;
6530
- detail: string;
6531
- };
6532
- number2: {
6552
+ number: {
6533
6553
  name: string;
6534
6554
  detail: string;
6535
6555
  };
@@ -6651,11 +6671,7 @@ declare const _default: {
6651
6671
  url: string;
6652
6672
  }[];
6653
6673
  functionParameter: {
6654
- number1: {
6655
- name: string;
6656
- detail: string;
6657
- };
6658
- number2: {
6674
+ number: {
6659
6675
  name: string;
6660
6676
  detail: string;
6661
6677
  };
@@ -7751,11 +7767,7 @@ declare const _default: {
7751
7767
  url: string;
7752
7768
  }[];
7753
7769
  functionParameter: {
7754
- number1: {
7755
- name: string;
7756
- detail: string;
7757
- };
7758
- number2: {
7770
+ number: {
7759
7771
  name: string;
7760
7772
  detail: string;
7761
7773
  };
@@ -7769,11 +7781,7 @@ declare const _default: {
7769
7781
  url: string;
7770
7782
  }[];
7771
7783
  functionParameter: {
7772
- number1: {
7773
- name: string;
7774
- detail: string;
7775
- };
7776
- number2: {
7784
+ number: {
7777
7785
  name: string;
7778
7786
  detail: string;
7779
7787
  };
@@ -7845,11 +7853,7 @@ declare const _default: {
7845
7853
  url: string;
7846
7854
  }[];
7847
7855
  functionParameter: {
7848
- number1: {
7849
- name: string;
7850
- detail: string;
7851
- };
7852
- number2: {
7856
+ dateText: {
7853
7857
  name: string;
7854
7858
  detail: string;
7855
7859
  };
@@ -8052,16 +8056,7 @@ declare const _default: {
8052
8056
  title: string;
8053
8057
  url: string;
8054
8058
  }[];
8055
- functionParameter: {
8056
- number1: {
8057
- name: string;
8058
- detail: string;
8059
- };
8060
- number2: {
8061
- name: string;
8062
- detail: string;
8063
- };
8064
- };
8059
+ functionParameter: {};
8065
8060
  };
8066
8061
  SECOND: {
8067
8062
  description: string;
@@ -8089,11 +8084,15 @@ declare const _default: {
8089
8084
  url: string;
8090
8085
  }[];
8091
8086
  functionParameter: {
8092
- number1: {
8087
+ hour: {
8093
8088
  name: string;
8094
8089
  detail: string;
8095
8090
  };
8096
- number2: {
8091
+ minute: {
8092
+ name: string;
8093
+ detail: string;
8094
+ };
8095
+ second: {
8097
8096
  name: string;
8098
8097
  detail: string;
8099
8098
  };
@@ -8107,11 +8106,7 @@ declare const _default: {
8107
8106
  url: string;
8108
8107
  }[];
8109
8108
  functionParameter: {
8110
- number1: {
8111
- name: string;
8112
- detail: string;
8113
- };
8114
- number2: {
8109
+ timeText: {
8115
8110
  name: string;
8116
8111
  detail: string;
8117
8112
  };
@@ -2661,11 +2661,11 @@ declare const _default: {
2661
2661
  url: string;
2662
2662
  }[];
2663
2663
  functionParameter: {
2664
- number1: {
2664
+ text1: {
2665
2665
  name: string;
2666
2666
  detail: string;
2667
2667
  };
2668
- number2: {
2668
+ text2: {
2669
2669
  name: string;
2670
2670
  detail: string;
2671
2671
  };
@@ -3651,11 +3651,15 @@ declare const _default: {
3651
3651
  url: string;
3652
3652
  }[];
3653
3653
  functionParameter: {
3654
- number1: {
3654
+ indexNum: {
3655
3655
  name: string;
3656
3656
  detail: string;
3657
3657
  };
3658
- number2: {
3658
+ value1: {
3659
+ name: string;
3660
+ detail: string;
3661
+ };
3662
+ value2: {
3659
3663
  name: string;
3660
3664
  detail: string;
3661
3665
  };
@@ -4369,11 +4373,11 @@ declare const _default: {
4369
4373
  url: string;
4370
4374
  }[];
4371
4375
  functionParameter: {
4372
- number1: {
4376
+ value1: {
4373
4377
  name: string;
4374
4378
  detail: string;
4375
4379
  };
4376
- number2: {
4380
+ value2: {
4377
4381
  name: string;
4378
4382
  detail: string;
4379
4383
  };
@@ -4387,11 +4391,15 @@ declare const _default: {
4387
4391
  url: string;
4388
4392
  }[];
4389
4393
  functionParameter: {
4390
- number1: {
4394
+ range: {
4391
4395
  name: string;
4392
4396
  detail: string;
4393
4397
  };
4394
- number2: {
4398
+ criteria: {
4399
+ name: string;
4400
+ detail: string;
4401
+ };
4402
+ averageRange: {
4395
4403
  name: string;
4396
4404
  detail: string;
4397
4405
  };
@@ -4405,11 +4413,23 @@ declare const _default: {
4405
4413
  url: string;
4406
4414
  }[];
4407
4415
  functionParameter: {
4408
- number1: {
4416
+ averageRange: {
4409
4417
  name: string;
4410
4418
  detail: string;
4411
4419
  };
4412
- number2: {
4420
+ criteriaRange1: {
4421
+ name: string;
4422
+ detail: string;
4423
+ };
4424
+ criteria1: {
4425
+ name: string;
4426
+ detail: string;
4427
+ };
4428
+ criteriaRange2: {
4429
+ name: string;
4430
+ detail: string;
4431
+ };
4432
+ criteria2: {
4413
4433
  name: string;
4414
4434
  detail: string;
4415
4435
  };
@@ -4693,11 +4713,7 @@ declare const _default: {
4693
4713
  url: string;
4694
4714
  }[];
4695
4715
  functionParameter: {
4696
- number1: {
4697
- name: string;
4698
- detail: string;
4699
- };
4700
- number2: {
4716
+ range: {
4701
4717
  name: string;
4702
4718
  detail: string;
4703
4719
  };
@@ -4711,11 +4727,11 @@ declare const _default: {
4711
4727
  url: string;
4712
4728
  }[];
4713
4729
  functionParameter: {
4714
- number1: {
4730
+ range: {
4715
4731
  name: string;
4716
4732
  detail: string;
4717
4733
  };
4718
- number2: {
4734
+ criteria: {
4719
4735
  name: string;
4720
4736
  detail: string;
4721
4737
  };
@@ -4729,11 +4745,19 @@ declare const _default: {
4729
4745
  url: string;
4730
4746
  }[];
4731
4747
  functionParameter: {
4732
- number1: {
4748
+ criteriaRange1: {
4733
4749
  name: string;
4734
4750
  detail: string;
4735
4751
  };
4736
- number2: {
4752
+ criteria1: {
4753
+ name: string;
4754
+ detail: string;
4755
+ };
4756
+ criteriaRange2: {
4757
+ name: string;
4758
+ detail: string;
4759
+ };
4760
+ criteria2: {
4737
4761
  name: string;
4738
4762
  detail: string;
4739
4763
  };
@@ -5395,11 +5419,11 @@ declare const _default: {
5395
5419
  url: string;
5396
5420
  }[];
5397
5421
  functionParameter: {
5398
- number1: {
5422
+ value1: {
5399
5423
  name: string;
5400
5424
  detail: string;
5401
5425
  };
5402
- number2: {
5426
+ value2: {
5403
5427
  name: string;
5404
5428
  detail: string;
5405
5429
  };
@@ -5479,11 +5503,11 @@ declare const _default: {
5479
5503
  url: string;
5480
5504
  }[];
5481
5505
  functionParameter: {
5482
- number1: {
5506
+ value1: {
5483
5507
  name: string;
5484
5508
  detail: string;
5485
5509
  };
5486
- number2: {
5510
+ value2: {
5487
5511
  name: string;
5488
5512
  detail: string;
5489
5513
  };
@@ -5497,11 +5521,23 @@ declare const _default: {
5497
5521
  url: string;
5498
5522
  }[];
5499
5523
  functionParameter: {
5500
- number1: {
5524
+ minRange: {
5501
5525
  name: string;
5502
5526
  detail: string;
5503
5527
  };
5504
- number2: {
5528
+ criteriaRange1: {
5529
+ name: string;
5530
+ detail: string;
5531
+ };
5532
+ criteria1: {
5533
+ name: string;
5534
+ detail: string;
5535
+ };
5536
+ criteriaRange2: {
5537
+ name: string;
5538
+ detail: string;
5539
+ };
5540
+ criteria2: {
5505
5541
  name: string;
5506
5542
  detail: string;
5507
5543
  };
@@ -6453,11 +6489,7 @@ declare const _default: {
6453
6489
  url: string;
6454
6490
  }[];
6455
6491
  functionParameter: {
6456
- number1: {
6457
- name: string;
6458
- detail: string;
6459
- };
6460
- number2: {
6492
+ number: {
6461
6493
  name: string;
6462
6494
  detail: string;
6463
6495
  };
@@ -6471,11 +6503,7 @@ declare const _default: {
6471
6503
  url: string;
6472
6504
  }[];
6473
6505
  functionParameter: {
6474
- number1: {
6475
- name: string;
6476
- detail: string;
6477
- };
6478
- number2: {
6506
+ number: {
6479
6507
  name: string;
6480
6508
  detail: string;
6481
6509
  };
@@ -6489,11 +6517,7 @@ declare const _default: {
6489
6517
  url: string;
6490
6518
  }[];
6491
6519
  functionParameter: {
6492
- number1: {
6493
- name: string;
6494
- detail: string;
6495
- };
6496
- number2: {
6520
+ number: {
6497
6521
  name: string;
6498
6522
  detail: string;
6499
6523
  };
@@ -6507,11 +6531,11 @@ declare const _default: {
6507
6531
  url: string;
6508
6532
  }[];
6509
6533
  functionParameter: {
6510
- number1: {
6534
+ xNum: {
6511
6535
  name: string;
6512
6536
  detail: string;
6513
6537
  };
6514
- number2: {
6538
+ yNum: {
6515
6539
  name: string;
6516
6540
  detail: string;
6517
6541
  };
@@ -6525,11 +6549,7 @@ declare const _default: {
6525
6549
  url: string;
6526
6550
  }[];
6527
6551
  functionParameter: {
6528
- number1: {
6529
- name: string;
6530
- detail: string;
6531
- };
6532
- number2: {
6552
+ number: {
6533
6553
  name: string;
6534
6554
  detail: string;
6535
6555
  };
@@ -6651,11 +6671,7 @@ declare const _default: {
6651
6671
  url: string;
6652
6672
  }[];
6653
6673
  functionParameter: {
6654
- number1: {
6655
- name: string;
6656
- detail: string;
6657
- };
6658
- number2: {
6674
+ number: {
6659
6675
  name: string;
6660
6676
  detail: string;
6661
6677
  };
@@ -7751,11 +7767,7 @@ declare const _default: {
7751
7767
  url: string;
7752
7768
  }[];
7753
7769
  functionParameter: {
7754
- number1: {
7755
- name: string;
7756
- detail: string;
7757
- };
7758
- number2: {
7770
+ number: {
7759
7771
  name: string;
7760
7772
  detail: string;
7761
7773
  };
@@ -7769,11 +7781,7 @@ declare const _default: {
7769
7781
  url: string;
7770
7782
  }[];
7771
7783
  functionParameter: {
7772
- number1: {
7773
- name: string;
7774
- detail: string;
7775
- };
7776
- number2: {
7784
+ number: {
7777
7785
  name: string;
7778
7786
  detail: string;
7779
7787
  };
@@ -7845,11 +7853,7 @@ declare const _default: {
7845
7853
  url: string;
7846
7854
  }[];
7847
7855
  functionParameter: {
7848
- number1: {
7849
- name: string;
7850
- detail: string;
7851
- };
7852
- number2: {
7856
+ dateText: {
7853
7857
  name: string;
7854
7858
  detail: string;
7855
7859
  };
@@ -8052,16 +8056,7 @@ declare const _default: {
8052
8056
  title: string;
8053
8057
  url: string;
8054
8058
  }[];
8055
- functionParameter: {
8056
- number1: {
8057
- name: string;
8058
- detail: string;
8059
- };
8060
- number2: {
8061
- name: string;
8062
- detail: string;
8063
- };
8064
- };
8059
+ functionParameter: {};
8065
8060
  };
8066
8061
  SECOND: {
8067
8062
  description: string;
@@ -8089,11 +8084,15 @@ declare const _default: {
8089
8084
  url: string;
8090
8085
  }[];
8091
8086
  functionParameter: {
8092
- number1: {
8087
+ hour: {
8093
8088
  name: string;
8094
8089
  detail: string;
8095
8090
  };
8096
- number2: {
8091
+ minute: {
8092
+ name: string;
8093
+ detail: string;
8094
+ };
8095
+ second: {
8097
8096
  name: string;
8098
8097
  detail: string;
8099
8098
  };
@@ -8107,11 +8106,7 @@ declare const _default: {
8107
8106
  url: string;
8108
8107
  }[];
8109
8108
  functionParameter: {
8110
- number1: {
8111
- name: string;
8112
- detail: string;
8113
- };
8114
- number2: {
8109
+ timeText: {
8115
8110
  name: string;
8116
8111
  detail: string;
8117
8112
  };