@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/ru-RU.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
|
}
|
|
@@ -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
|
-
"
|
|
7556
|
-
"name": "
|
|
7557
|
-
"detail": "
|
|
7542
|
+
"value": {
|
|
7543
|
+
"name": "value",
|
|
7544
|
+
"detail": "The argument that is checked for the #N/A error value."
|
|
7558
7545
|
},
|
|
7559
|
-
"
|
|
7560
|
-
"name": "
|
|
7561
|
-
"detail": "
|
|
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
|
-
"
|
|
7576
|
-
"name": "
|
|
7577
|
-
"detail": "
|
|
7562
|
+
"logicalTest1": {
|
|
7563
|
+
"name": "logical_test1",
|
|
7564
|
+
"detail": "Condition that evaluates to TRUE or FALSE."
|
|
7578
7565
|
},
|
|
7579
|
-
"
|
|
7580
|
-
"name": "
|
|
7581
|
-
"detail": "
|
|
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
|
-
"
|
|
7660
|
-
"name": "
|
|
7661
|
-
"detail": "
|
|
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
|
-
"
|
|
7740
|
-
"name": "
|
|
7741
|
-
"detail": "
|
|
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
|
-
"
|
|
7744
|
-
"name": "
|
|
7745
|
-
"detail": "
|
|
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
|
|
7771
|
-
"abstract": "Returns
|
|
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
|
-
"
|
|
7780
|
-
"name": "
|
|
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
|
-
"
|
|
7784
|
-
"name": "
|
|
7785
|
-
"detail": "
|
|
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
|
},
|