@univerjs/sheets-formula 0.2.6 → 0.2.7

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 (35) hide show
  1. package/lib/cjs/index.js +4 -4
  2. package/lib/es/index.js +324 -377
  3. package/lib/locale/en-US.json +82 -88
  4. package/lib/locale/ru-RU.json +79 -85
  5. package/lib/locale/vi-VN.json +1988 -1483
  6. package/lib/locale/zh-CN.json +122 -128
  7. package/lib/locale/zh-TW.json +206 -244
  8. package/lib/types/controllers/prompt.controller.d.ts +3 -5
  9. package/lib/types/index.d.ts +1 -0
  10. package/lib/types/locale/en-US.d.ts +32 -38
  11. package/lib/types/locale/function-list/date/vi-VN.d.ts +105 -26
  12. package/lib/types/locale/function-list/date/zh-TW.d.ts +32 -8
  13. package/lib/types/locale/function-list/information/ja-JP.d.ts +8 -40
  14. package/lib/types/locale/function-list/information/vi-VN.d.ts +218 -3
  15. package/lib/types/locale/function-list/logical/en-US.d.ts +31 -33
  16. package/lib/types/locale/function-list/logical/ja-JP.d.ts +31 -33
  17. package/lib/types/locale/function-list/logical/vi-VN.d.ts +31 -33
  18. package/lib/types/locale/function-list/logical/zh-CN.d.ts +31 -33
  19. package/lib/types/locale/function-list/logical/zh-TW.d.ts +31 -33
  20. package/lib/types/locale/function-list/lookup/en-US.d.ts +1 -5
  21. package/lib/types/locale/function-list/lookup/ja-JP.d.ts +1 -5
  22. package/lib/types/locale/function-list/lookup/vi-VN.d.ts +421 -9
  23. package/lib/types/locale/function-list/lookup/zh-CN.d.ts +1 -5
  24. package/lib/types/locale/function-list/lookup/zh-TW.d.ts +1 -5
  25. package/lib/types/locale/function-list/math/vi-VN.d.ts +1022 -3
  26. package/lib/types/locale/function-list/math/zh-TW.d.ts +21 -77
  27. package/lib/types/locale/function-list/statistical/vi-VN.d.ts +334 -0
  28. package/lib/types/locale/function-list/text/vi-VN.d.ts +135 -1
  29. package/lib/types/locale/ru-RU.d.ts +32 -38
  30. package/lib/types/locale/vi-VN.d.ts +917 -446
  31. package/lib/types/locale/zh-CN.d.ts +32 -38
  32. package/lib/types/locale/zh-TW.d.ts +85 -123
  33. package/lib/types/services/prompt.service.d.ts +5 -1
  34. package/lib/umd/index.js +4 -4
  35. package/package.json +23 -23
@@ -2182,7 +2182,7 @@
2182
2182
  },
2183
2183
  "FLOOR_PRECISE": {
2184
2184
  "description": "Rounds a number down to the nearest integer or to the nearest multiple of significance. Regardless of the sign of the number, the number is rounded down.",
2185
- "abstract": "Rounds a number down to the nearest integer or to the nearest multiple of significance. Regardless of the sign of the number, the number is rounded down.",
2185
+ "abstract": "Rounds a number down to the nearest integer or to the nearest multiple of significance.",
2186
2186
  "links": [
2187
2187
  {
2188
2188
  "title": "Instruction",
@@ -2608,7 +2608,7 @@
2608
2608
  },
2609
2609
  "RANDARRAY": {
2610
2610
  "description": "Returns an array of random numbers between 0 and 1. However, you can specify the number of rows and columns to fill, minimum and maximum values, and whether to return whole numbers or decimal values.",
2611
- "abstract": "Returns an array of random numbers between 0 and 1. However, you can specify the number of rows and columns to fill, minimum and maximum values, and whether to return whole numbers or decimal values.",
2611
+ "abstract": "Returns an array of random numbers between 0 and 1.",
2612
2612
  "links": [
2613
2613
  {
2614
2614
  "title": "Instruction",
@@ -2963,8 +2963,8 @@
2963
2963
  }
2964
2964
  },
2965
2965
  "SUMIFS": {
2966
- "description": "Adds the cells in a range that meet multiple criteria",
2967
- "abstract": "Adds the cells in a range that meet multiple criteria",
2966
+ "description": "Adds all of its arguments that meet multiple criteria.",
2967
+ "abstract": "Adds all of its arguments that meet multiple criteria.",
2968
2968
  "links": [
2969
2969
  {
2970
2970
  "title": "Instruction",
@@ -3533,11 +3533,11 @@
3533
3533
  ],
3534
3534
  "functionParameter": {
3535
3535
  "value1": {
3536
- "name": "Value 1",
3536
+ "name": "value 1",
3537
3537
  "detail": "The first item, cell reference, or range within which you want to count numbers."
3538
3538
  },
3539
3539
  "value2": {
3540
- "name": "Value 2",
3540
+ "name": "value 2",
3541
3541
  "detail": "Up to 255 additional items, cell references, or ranges within which you want to count numbers."
3542
3542
  }
3543
3543
  }
@@ -5452,13 +5452,9 @@
5452
5452
  }
5453
5453
  ],
5454
5454
  "functionParameter": {
5455
- "number1": {
5456
- "name": "number1",
5457
- "detail": "first"
5458
- },
5459
- "number2": {
5460
- "name": "number2",
5461
- "detail": "second"
5455
+ "reference": {
5456
+ "name": "reference",
5457
+ "detail": "A reference to a cell or range of cells and can refer to multiple areas."
5462
5458
  }
5463
5459
  }
5464
5460
  },
@@ -5770,7 +5766,7 @@
5770
5766
  "functionParameter": {
5771
5767
  "reference": {
5772
5768
  "name": "reference",
5773
- "detail": "A reference to one or more cell ranges.\nIf you are entering a non-adjacent range for the reference, enclose reference in parentheses.\nIf each area in reference contains only one row or column, the row_num or column_num argument, respectively, is optional. For example, for a single row reference, use INDEX(reference,,column_num).\nIf array has more than one row and more than one column, and only row_num or column_num is used, INDEX returns an array of the entire row or column in array."
5769
+ "detail": "A reference to one or more cell ranges."
5774
5770
  },
5775
5771
  "rowNum": {
5776
5772
  "name": "row_num",
@@ -5782,7 +5778,7 @@
5782
5778
  },
5783
5779
  "areaNum": {
5784
5780
  "name": "area_num",
5785
- "detail": "Selects a range in reference from which to return the intersection of row_num and column_num. The first area selected or entered is numbered 1, the second is 2, and so on. If area_num is omitted, INDEX uses area 1. The areas listed here must all be located on one sheet. If you specify areas that are not on the same sheet as each other, it will cause a #VALUE! error. If you need to use ranges that are located on different sheets from each other, it is recommended that you use the array form of the INDEX function, and use another function to calculate the range that makes up the array. For example, you could use the CHOOSE function to calculate which range will be used."
5781
+ "detail": "Selects a range in reference from which to return the intersection of row_num and column_num."
5786
5782
  }
5787
5783
  }
5788
5784
  },
@@ -5798,11 +5794,11 @@
5798
5794
  "functionParameter": {
5799
5795
  "refText": {
5800
5796
  "name": "ref_text",
5801
- "detail": "A reference to a cell that contains an A1-style reference, an R1C1-style reference, a name defined as a reference, or a reference to a cell as a text string. If ref_text is not a valid cell reference, INDIRECT returns the #REF! error value.\nIf ref_text refers to a cell range outside the row limit of 1,048,576 or the column limit of 16,384 (XFD), INDIRECT returns a #REF! error."
5797
+ "detail": "A reference to a cell that contains an A1-style reference, an R1C1-style reference, a name defined as a reference, or a reference to a cell as a text string. "
5802
5798
  },
5803
5799
  "a1": {
5804
5800
  "name": "a1",
5805
- "detail": "A logical value that specifies what type of reference is contained in the cell ref_text.\nIf a1 is TRUE or omitted, ref_text is interpreted as an A1-style reference.\nIf a1 is FALSE, ref_text is interpreted as an R1C1-style reference."
5801
+ "detail": "A logical value that specifies what type of reference is contained in the cell ref_text."
5806
5802
  }
5807
5803
  }
5808
5804
  },
@@ -5831,7 +5827,7 @@
5831
5827
  }
5832
5828
  },
5833
5829
  "MATCH": {
5834
- "description": "The MATCH function searches for a specified item in a range of cells, and then returns the relative position of that item in the range. For example, if the range A1:A3 contains the values 5, 25, and 38, then the formula =MATCH(25,A1:A3,0) returns the number 2, because 25 is the second item in the range.",
5830
+ "description": "The MATCH function searches for a specified item in a range of cells, and then returns the relative position of that item in the range.",
5835
5831
  "abstract": "Looks up values in a reference or array",
5836
5832
  "links": [
5837
5833
  {
@@ -5842,7 +5838,7 @@
5842
5838
  "functionParameter": {
5843
5839
  "lookupValue": {
5844
5840
  "name": "lookup_value",
5845
- "detail": "The value that you want to match in lookup_array. For example, when you look up someone's number in a telephone book, you are using the person's name as the lookup value, but the telephone number is the value you want. The lookup_value argument can be a value (number, text, or logical value) or a cell reference to a number, text, or logical value."
5841
+ "detail": "The value that you want to match in lookup_array."
5846
5842
  },
5847
5843
  "lookupArray": {
5848
5844
  "name": "lookup_array",
@@ -5850,7 +5846,7 @@
5850
5846
  },
5851
5847
  "matchType": {
5852
5848
  "name": "match_type",
5853
- "detail": "The number -1, 0, or 1. The match_type argument specifies how Excel matches lookup_value with values in lookup_array. The default value for this argument is 1."
5849
+ "detail": "The number -1, 0, or 1."
5854
5850
  }
5855
5851
  }
5856
5852
  },
@@ -5866,15 +5862,15 @@
5866
5862
  "functionParameter": {
5867
5863
  "reference": {
5868
5864
  "name": "reference",
5869
- "detail": "The reference from which you want to base the offset. Reference must refer to a cell or range of adjacent cells; otherwise, OFFSET returns the #VALUE! error value."
5865
+ "detail": "The reference from which you want to base the offset."
5870
5866
  },
5871
5867
  "rows": {
5872
5868
  "name": "rows",
5873
- "detail": "The number of rows, up or down, that you want the upper-left cell to refer to. Using 5 as the rows argument specifies that the upper-left cell in the reference is five rows below reference. Rows can be positive (which means below the starting reference) or negative (which means above the starting reference)."
5869
+ "detail": "The number of rows, up or down, that you want the upper-left cell to refer to."
5874
5870
  },
5875
5871
  "cols": {
5876
5872
  "name": "columns",
5877
- "detail": "The number of columns, to the left or right, that you want the upper-left cell of the result to refer to. Using 5 as the cols argument specifies that the upper-left cell in the reference is five columns to the right of reference. Cols can be positive (which means to the right of the starting reference) or negative (which means to the left of the starting reference)."
5873
+ "detail": "The number of columns, to the left or right, that you want the upper-left cell of the result to refer to."
5878
5874
  },
5879
5875
  "height": {
5880
5876
  "name": "height",
@@ -6209,15 +6205,15 @@
6209
6205
  "detail": "The array or range to return"
6210
6206
  },
6211
6207
  "ifNotFound": {
6212
- "name": "[if_not_found]",
6208
+ "name": "if_not_found",
6213
6209
  "detail": "Where a valid match is not found, return the [if_not_found] text you supply. If a valid match is not found, and [if_not_found] is missing, #N/A is returned."
6214
6210
  },
6215
6211
  "matchMode": {
6216
- "name": "[match_mode]",
6212
+ "name": "match_mode",
6217
6213
  "detail": "Specify the match type: 0 - Exact match. If none found, return #N/A. This is the default. -1 - Exact match. If none found, return the next smaller item. 1 - Exact match. If none found, return the next larger item. 2 - A wildcard match where *, ?, and ~ have special meaning."
6218
6214
  },
6219
6215
  "searchMode": {
6220
- "name": "[search_mode]",
6216
+ "name": "search_mode",
6221
6217
  "detail": "Specify the search mode to use: 1 - Perform a search starting at the first item. This is the default. -1 - Perform a reverse search starting at the last item. 2 - Perform a binary search that relies on lookup_array being sorted in ascending order. If not sorted, invalid results will be returned. -2 - Perform a binary search that relies on lookup_array being sorted in descending order. If not sorted, invalid results will be returned."
6222
6218
  }
6223
6219
  }
@@ -7479,24 +7475,15 @@
7479
7475
  }
7480
7476
  },
7481
7477
  "FALSE": {
7482
- "description": "Returns the logical value FALSE",
7483
- "abstract": "Returns the logical value FALSE",
7478
+ "description": "Returns the logical value FALSE.",
7479
+ "abstract": "Returns the logical value FALSE.",
7484
7480
  "links": [
7485
7481
  {
7486
7482
  "title": "Instruction",
7487
7483
  "url": "https://support.microsoft.com/en-us/office/false-function-2d58dfa5-9c03-4259-bf8f-f0ae14346904"
7488
7484
  }
7489
7485
  ],
7490
- "functionParameter": {
7491
- "number1": {
7492
- "name": "number1",
7493
- "detail": "first"
7494
- },
7495
- "number2": {
7496
- "name": "number2",
7497
- "detail": "second"
7498
- }
7499
- }
7486
+ "functionParameter": {}
7500
7487
  },
7501
7488
  "IF": {
7502
7489
  "description": "Specifies a logical test to perform",
@@ -7552,13 +7539,13 @@
7552
7539
  }
7553
7540
  ],
7554
7541
  "functionParameter": {
7555
- "number1": {
7556
- "name": "number1",
7557
- "detail": "first"
7542
+ "value": {
7543
+ "name": "value",
7544
+ "detail": "The argument that is checked for the #N/A error value."
7558
7545
  },
7559
- "number2": {
7560
- "name": "number2",
7561
- "detail": "second"
7546
+ "valueIfNa": {
7547
+ "name": "value_if_na",
7548
+ "detail": "The value to return if the formula evaluates to the #N/A error value."
7562
7549
  }
7563
7550
  }
7564
7551
  },
@@ -7572,13 +7559,21 @@
7572
7559
  }
7573
7560
  ],
7574
7561
  "functionParameter": {
7575
- "number1": {
7576
- "name": "number1",
7577
- "detail": "first"
7562
+ "logicalTest1": {
7563
+ "name": "logical_test1",
7564
+ "detail": "Condition that evaluates to TRUE or FALSE."
7578
7565
  },
7579
- "number2": {
7580
- "name": "number2",
7581
- "detail": "second"
7566
+ "valueIfTrue1": {
7567
+ "name": "value_if_true1",
7568
+ "detail": "Result to be returned if logical_test1 evaluates to TRUE. Can be empty."
7569
+ },
7570
+ "logicalTest2": {
7571
+ "name": "logical_test2",
7572
+ "detail": "Condition that evaluates to TRUE or FALSE."
7573
+ },
7574
+ "valueIfTrue2": {
7575
+ "name": "value_if_true2",
7576
+ "detail": "Result to be returned if logical_testN evaluates to TRUE. Each value_if_trueN corresponds with a condition logical_testN. Can be empty."
7582
7577
  }
7583
7578
  }
7584
7579
  },
@@ -7647,8 +7642,8 @@
7647
7642
  }
7648
7643
  },
7649
7644
  "NOT": {
7650
- "description": "Reverses the logic of its argument",
7651
- "abstract": "Reverses the logic of its argument",
7645
+ "description": "Reverses the logic of its argument.",
7646
+ "abstract": "Reverses the logic of its argument.",
7652
7647
  "links": [
7653
7648
  {
7654
7649
  "title": "Instruction",
@@ -7656,13 +7651,9 @@
7656
7651
  }
7657
7652
  ],
7658
7653
  "functionParameter": {
7659
- "number1": {
7660
- "name": "number1",
7661
- "detail": "first"
7662
- },
7663
- "number2": {
7664
- "name": "number2",
7665
- "detail": "second"
7654
+ "logical": {
7655
+ "name": "logical",
7656
+ "detail": "The condition that you want to reverse the logic for, which can evaluate to either TRUE or FALSE."
7666
7657
  }
7667
7658
  }
7668
7659
  },
@@ -7736,39 +7727,42 @@
7736
7727
  }
7737
7728
  ],
7738
7729
  "functionParameter": {
7739
- "number1": {
7740
- "name": "number1",
7741
- "detail": "first"
7730
+ "expression": {
7731
+ "name": "expression",
7732
+ "detail": "Expression is the value (such as a number, date or some text) that will be compared against value1…value126."
7742
7733
  },
7743
- "number2": {
7744
- "name": "number2",
7745
- "detail": "second"
7734
+ "value1": {
7735
+ "name": "value1",
7736
+ "detail": "ValueN is a value that will be compared against expression."
7737
+ },
7738
+ "result1": {
7739
+ "name": "result1",
7740
+ "detail": "ResultN is the value to be returned when the corresponding valueN argument matches expression. ResultN and must be supplied for each corresponding valueN argument."
7741
+ },
7742
+ "defaultOrValue2": {
7743
+ "name": "default_or_value2",
7744
+ "detail": "Default is the value to return in case no matches are found in the valueN expressions. The Default argument is identified by having no corresponding resultN expression (see examples). Default must be the final argument in the function."
7745
+ },
7746
+ "result2": {
7747
+ "name": "result2",
7748
+ "detail": "ResultN is the value to be returned when the corresponding valueN argument matches expression. ResultN and must be supplied for each corresponding valueN argument."
7746
7749
  }
7747
7750
  }
7748
7751
  },
7749
7752
  "TRUE": {
7750
- "description": "Returns the logical value TRUE",
7751
- "abstract": "Returns the logical value TRUE",
7753
+ "description": "Returns the logical value TRUE.",
7754
+ "abstract": "Returns the logical value TRUE.",
7752
7755
  "links": [
7753
7756
  {
7754
7757
  "title": "Instruction",
7755
7758
  "url": "https://support.microsoft.com/en-us/office/true-function-7652c6e3-8987-48d0-97cd-ef223246b3fb"
7756
7759
  }
7757
7760
  ],
7758
- "functionParameter": {
7759
- "number1": {
7760
- "name": "number1",
7761
- "detail": "first"
7762
- },
7763
- "number2": {
7764
- "name": "number2",
7765
- "detail": "second"
7766
- }
7767
- }
7761
+ "functionParameter": {}
7768
7762
  },
7769
7763
  "XOR": {
7770
- "description": "Returns a logical exclusive OR of all arguments",
7771
- "abstract": "Returns a logical exclusive OR of all arguments",
7764
+ "description": "Returns TRUE if an odd number of its arguments evaluate to TRUE, and FALSE if an even number of its arguments evaluate to TRUE.",
7765
+ "abstract": "Returns TRUE if an odd number of arguments are TRUE",
7772
7766
  "links": [
7773
7767
  {
7774
7768
  "title": "Instruction",
@@ -7776,13 +7770,13 @@
7776
7770
  }
7777
7771
  ],
7778
7772
  "functionParameter": {
7779
- "number1": {
7780
- "name": "number1",
7781
- "detail": "first"
7773
+ "logical1": {
7774
+ "name": "logical1",
7775
+ "detail": "The first condition that you want to test that can evaluate to either TRUE or FALSE."
7782
7776
  },
7783
- "number2": {
7784
- "name": "number2",
7785
- "detail": "second"
7777
+ "logical2": {
7778
+ "name": "logical2",
7779
+ "detail": "Additional conditions that you want to test that can evaluate to either TRUE or FALSE, up to a maximum of 255 conditions."
7786
7780
  }
7787
7781
  }
7788
7782
  },