@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.
- package/lib/cjs/index.js +4 -4
- package/lib/es/index.js +324 -377
- package/lib/locale/en-US.json +82 -88
- package/lib/locale/ru-RU.json +79 -85
- package/lib/locale/vi-VN.json +1988 -1483
- package/lib/locale/zh-CN.json +122 -128
- package/lib/locale/zh-TW.json +206 -244
- package/lib/types/controllers/prompt.controller.d.ts +3 -5
- package/lib/types/index.d.ts +1 -0
- package/lib/types/locale/en-US.d.ts +32 -38
- package/lib/types/locale/function-list/date/vi-VN.d.ts +105 -26
- package/lib/types/locale/function-list/date/zh-TW.d.ts +32 -8
- package/lib/types/locale/function-list/information/ja-JP.d.ts +8 -40
- package/lib/types/locale/function-list/information/vi-VN.d.ts +218 -3
- package/lib/types/locale/function-list/logical/en-US.d.ts +31 -33
- package/lib/types/locale/function-list/logical/ja-JP.d.ts +31 -33
- package/lib/types/locale/function-list/logical/vi-VN.d.ts +31 -33
- package/lib/types/locale/function-list/logical/zh-CN.d.ts +31 -33
- package/lib/types/locale/function-list/logical/zh-TW.d.ts +31 -33
- package/lib/types/locale/function-list/lookup/en-US.d.ts +1 -5
- package/lib/types/locale/function-list/lookup/ja-JP.d.ts +1 -5
- package/lib/types/locale/function-list/lookup/vi-VN.d.ts +421 -9
- package/lib/types/locale/function-list/lookup/zh-CN.d.ts +1 -5
- package/lib/types/locale/function-list/lookup/zh-TW.d.ts +1 -5
- package/lib/types/locale/function-list/math/vi-VN.d.ts +1022 -3
- package/lib/types/locale/function-list/math/zh-TW.d.ts +21 -77
- package/lib/types/locale/function-list/statistical/vi-VN.d.ts +334 -0
- package/lib/types/locale/function-list/text/vi-VN.d.ts +135 -1
- package/lib/types/locale/ru-RU.d.ts +32 -38
- package/lib/types/locale/vi-VN.d.ts +917 -446
- package/lib/types/locale/zh-CN.d.ts +32 -38
- package/lib/types/locale/zh-TW.d.ts +85 -123
- package/lib/types/services/prompt.service.d.ts +5 -1
- package/lib/umd/index.js +4 -4
- package/package.json +23 -23
package/lib/locale/en-US.json
CHANGED
|
@@ -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.
|
|
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.
|
|
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
|
|
2967
|
-
"abstract": "Adds
|
|
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": "
|
|
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": "
|
|
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
|
-
"
|
|
5456
|
-
"name": "
|
|
5457
|
-
"detail": "
|
|
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
|
|
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.
|
|
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.
|
|
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
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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
|
}
|
|
@@ -6641,11 +6637,11 @@
|
|
|
6641
6637
|
],
|
|
6642
6638
|
"functionParameter": {
|
|
6643
6639
|
"text1": {
|
|
6644
|
-
"name": "
|
|
6640
|
+
"name": "text1",
|
|
6645
6641
|
"detail": "The first item to join. The item can be a text value, number, or cell reference."
|
|
6646
6642
|
},
|
|
6647
6643
|
"text2": {
|
|
6648
|
-
"name": "
|
|
6644
|
+
"name": "text2",
|
|
6649
6645
|
"detail": "Additional text items to join. You can have up to 255 items, up to a total of 8,192 characters."
|
|
6650
6646
|
}
|
|
6651
6647
|
}
|
|
@@ -7013,7 +7009,7 @@
|
|
|
7013
7009
|
"detail": "The text you want to repeat."
|
|
7014
7010
|
},
|
|
7015
7011
|
"numberTimes": {
|
|
7016
|
-
"name": "
|
|
7012
|
+
"name": "number_times",
|
|
7017
7013
|
"detail": "A positive number specifying the number of times to repeat text."
|
|
7018
7014
|
}
|
|
7019
7015
|
}
|
|
@@ -7527,24 +7523,15 @@
|
|
|
7527
7523
|
}
|
|
7528
7524
|
},
|
|
7529
7525
|
"FALSE": {
|
|
7530
|
-
"description": "Returns the logical value FALSE",
|
|
7531
|
-
"abstract": "Returns the logical value FALSE",
|
|
7526
|
+
"description": "Returns the logical value FALSE.",
|
|
7527
|
+
"abstract": "Returns the logical value FALSE.",
|
|
7532
7528
|
"links": [
|
|
7533
7529
|
{
|
|
7534
7530
|
"title": "Instruction",
|
|
7535
7531
|
"url": "https://support.microsoft.com/en-us/office/false-function-2d58dfa5-9c03-4259-bf8f-f0ae14346904"
|
|
7536
7532
|
}
|
|
7537
7533
|
],
|
|
7538
|
-
"functionParameter": {
|
|
7539
|
-
"number1": {
|
|
7540
|
-
"name": "number1",
|
|
7541
|
-
"detail": "first"
|
|
7542
|
-
},
|
|
7543
|
-
"number2": {
|
|
7544
|
-
"name": "number2",
|
|
7545
|
-
"detail": "second"
|
|
7546
|
-
}
|
|
7547
|
-
}
|
|
7534
|
+
"functionParameter": {}
|
|
7548
7535
|
},
|
|
7549
7536
|
"IF": {
|
|
7550
7537
|
"description": "Specifies a logical test to perform",
|
|
@@ -7600,13 +7587,13 @@
|
|
|
7600
7587
|
}
|
|
7601
7588
|
],
|
|
7602
7589
|
"functionParameter": {
|
|
7603
|
-
"
|
|
7604
|
-
"name": "
|
|
7605
|
-
"detail": "
|
|
7590
|
+
"value": {
|
|
7591
|
+
"name": "value",
|
|
7592
|
+
"detail": "The argument that is checked for the #N/A error value."
|
|
7606
7593
|
},
|
|
7607
|
-
"
|
|
7608
|
-
"name": "
|
|
7609
|
-
"detail": "
|
|
7594
|
+
"valueIfNa": {
|
|
7595
|
+
"name": "value_if_na",
|
|
7596
|
+
"detail": "The value to return if the formula evaluates to the #N/A error value."
|
|
7610
7597
|
}
|
|
7611
7598
|
}
|
|
7612
7599
|
},
|
|
@@ -7620,13 +7607,21 @@
|
|
|
7620
7607
|
}
|
|
7621
7608
|
],
|
|
7622
7609
|
"functionParameter": {
|
|
7623
|
-
"
|
|
7624
|
-
"name": "
|
|
7625
|
-
"detail": "
|
|
7610
|
+
"logicalTest1": {
|
|
7611
|
+
"name": "logical_test1",
|
|
7612
|
+
"detail": "Condition that evaluates to TRUE or FALSE."
|
|
7626
7613
|
},
|
|
7627
|
-
"
|
|
7628
|
-
"name": "
|
|
7629
|
-
"detail": "
|
|
7614
|
+
"valueIfTrue1": {
|
|
7615
|
+
"name": "value_if_true1",
|
|
7616
|
+
"detail": "Result to be returned if logical_test1 evaluates to TRUE. Can be empty."
|
|
7617
|
+
},
|
|
7618
|
+
"logicalTest2": {
|
|
7619
|
+
"name": "logical_test2",
|
|
7620
|
+
"detail": "Condition that evaluates to TRUE or FALSE."
|
|
7621
|
+
},
|
|
7622
|
+
"valueIfTrue2": {
|
|
7623
|
+
"name": "value_if_true2",
|
|
7624
|
+
"detail": "Result to be returned if logical_testN evaluates to TRUE. Each value_if_trueN corresponds with a condition logical_testN. Can be empty."
|
|
7630
7625
|
}
|
|
7631
7626
|
}
|
|
7632
7627
|
},
|
|
@@ -7695,8 +7690,8 @@
|
|
|
7695
7690
|
}
|
|
7696
7691
|
},
|
|
7697
7692
|
"NOT": {
|
|
7698
|
-
"description": "Reverses the logic of its argument",
|
|
7699
|
-
"abstract": "Reverses the logic of its argument",
|
|
7693
|
+
"description": "Reverses the logic of its argument.",
|
|
7694
|
+
"abstract": "Reverses the logic of its argument.",
|
|
7700
7695
|
"links": [
|
|
7701
7696
|
{
|
|
7702
7697
|
"title": "Instruction",
|
|
@@ -7704,13 +7699,9 @@
|
|
|
7704
7699
|
}
|
|
7705
7700
|
],
|
|
7706
7701
|
"functionParameter": {
|
|
7707
|
-
"
|
|
7708
|
-
"name": "
|
|
7709
|
-
"detail": "
|
|
7710
|
-
},
|
|
7711
|
-
"number2": {
|
|
7712
|
-
"name": "number2",
|
|
7713
|
-
"detail": "second"
|
|
7702
|
+
"logical": {
|
|
7703
|
+
"name": "logical",
|
|
7704
|
+
"detail": "The condition that you want to reverse the logic for, which can evaluate to either TRUE or FALSE."
|
|
7714
7705
|
}
|
|
7715
7706
|
}
|
|
7716
7707
|
},
|
|
@@ -7784,39 +7775,42 @@
|
|
|
7784
7775
|
}
|
|
7785
7776
|
],
|
|
7786
7777
|
"functionParameter": {
|
|
7787
|
-
"
|
|
7788
|
-
"name": "
|
|
7789
|
-
"detail": "
|
|
7778
|
+
"expression": {
|
|
7779
|
+
"name": "expression",
|
|
7780
|
+
"detail": "Expression is the value (such as a number, date or some text) that will be compared against value1…value126."
|
|
7790
7781
|
},
|
|
7791
|
-
"
|
|
7792
|
-
"name": "
|
|
7793
|
-
"detail": "
|
|
7782
|
+
"value1": {
|
|
7783
|
+
"name": "value1",
|
|
7784
|
+
"detail": "ValueN is a value that will be compared against expression."
|
|
7785
|
+
},
|
|
7786
|
+
"result1": {
|
|
7787
|
+
"name": "result1",
|
|
7788
|
+
"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."
|
|
7789
|
+
},
|
|
7790
|
+
"defaultOrValue2": {
|
|
7791
|
+
"name": "default_or_value2",
|
|
7792
|
+
"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."
|
|
7793
|
+
},
|
|
7794
|
+
"result2": {
|
|
7795
|
+
"name": "result2",
|
|
7796
|
+
"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."
|
|
7794
7797
|
}
|
|
7795
7798
|
}
|
|
7796
7799
|
},
|
|
7797
7800
|
"TRUE": {
|
|
7798
|
-
"description": "Returns the logical value TRUE",
|
|
7799
|
-
"abstract": "Returns the logical value TRUE",
|
|
7801
|
+
"description": "Returns the logical value TRUE.",
|
|
7802
|
+
"abstract": "Returns the logical value TRUE.",
|
|
7800
7803
|
"links": [
|
|
7801
7804
|
{
|
|
7802
7805
|
"title": "Instruction",
|
|
7803
7806
|
"url": "https://support.microsoft.com/en-us/office/true-function-7652c6e3-8987-48d0-97cd-ef223246b3fb"
|
|
7804
7807
|
}
|
|
7805
7808
|
],
|
|
7806
|
-
"functionParameter": {
|
|
7807
|
-
"number1": {
|
|
7808
|
-
"name": "number1",
|
|
7809
|
-
"detail": "first"
|
|
7810
|
-
},
|
|
7811
|
-
"number2": {
|
|
7812
|
-
"name": "number2",
|
|
7813
|
-
"detail": "second"
|
|
7814
|
-
}
|
|
7815
|
-
}
|
|
7809
|
+
"functionParameter": {}
|
|
7816
7810
|
},
|
|
7817
7811
|
"XOR": {
|
|
7818
|
-
"description": "Returns
|
|
7819
|
-
"abstract": "Returns
|
|
7812
|
+
"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.",
|
|
7813
|
+
"abstract": "Returns TRUE if an odd number of arguments are TRUE",
|
|
7820
7814
|
"links": [
|
|
7821
7815
|
{
|
|
7822
7816
|
"title": "Instruction",
|
|
@@ -7824,13 +7818,13 @@
|
|
|
7824
7818
|
}
|
|
7825
7819
|
],
|
|
7826
7820
|
"functionParameter": {
|
|
7827
|
-
"
|
|
7828
|
-
"name": "
|
|
7829
|
-
"detail": "first"
|
|
7821
|
+
"logical1": {
|
|
7822
|
+
"name": "logical1",
|
|
7823
|
+
"detail": "The first condition that you want to test that can evaluate to either TRUE or FALSE."
|
|
7830
7824
|
},
|
|
7831
|
-
"
|
|
7832
|
-
"name": "
|
|
7833
|
-
"detail": "
|
|
7825
|
+
"logical2": {
|
|
7826
|
+
"name": "logical2",
|
|
7827
|
+
"detail": "Additional conditions that you want to test that can evaluate to either TRUE or FALSE, up to a maximum of 255 conditions."
|
|
7834
7828
|
}
|
|
7835
7829
|
}
|
|
7836
7830
|
},
|