@univerjs/sheets-formula 0.1.0-beta.3 → 0.1.0-beta.5
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 +23 -7
- package/lib/es/index.js +2918 -2552
- package/lib/index.css +1 -1
- package/lib/types/commands/operations/insert-function.operation.d.ts +1 -1
- package/lib/types/controllers/array-formula-display.controller.d.ts +3 -2
- package/lib/types/controllers/menu.d.ts +1 -1
- package/lib/types/controllers/numfmt-formula-display.controller.d.ts +28 -0
- package/lib/types/controllers/prompt.controller.d.ts +1 -0
- package/lib/types/controllers/trigger-calculation.controller.d.ts +5 -1
- package/lib/types/controllers/update-formula.controller.d.ts +1 -1
- package/lib/types/locale/en-US.d.ts +104 -57
- package/lib/types/locale/function-list/date/en-US.d.ts +12 -29
- package/lib/types/locale/function-list/date/ja-JP.d.ts +12 -29
- package/lib/types/locale/function-list/date/zh-CN.d.ts +12 -29
- package/lib/types/locale/function-list/information/en-US.d.ts +1 -5
- package/lib/types/locale/function-list/information/ja-JP.d.ts +1 -5
- package/lib/types/locale/function-list/information/zh-CN.d.ts +1 -5
- package/lib/types/locale/function-list/logical/en-US.d.ts +10 -6
- package/lib/types/locale/function-list/logical/ja-JP.d.ts +10 -6
- package/lib/types/locale/function-list/logical/zh-CN.d.ts +10 -6
- package/lib/types/locale/function-list/lookup/en-US.d.ts +64 -12
- package/lib/types/locale/function-list/lookup/ja-JP.d.ts +64 -12
- package/lib/types/locale/function-list/lookup/zh-CN.d.ts +64 -12
- package/lib/types/locale/function-list/math/en-US.d.ts +15 -3
- package/lib/types/locale/function-list/math/ja-JP.d.ts +20 -4
- package/lib/types/locale/function-list/math/zh-CN.d.ts +15 -3
- package/lib/types/locale/function-list/statistical/ja-JP.d.ts +2 -2
- package/lib/types/locale/function-list/text/en-US.d.ts +2 -2
- package/lib/types/locale/function-list/text/ja-JP.d.ts +2 -2
- package/lib/types/locale/function-list/text/zh-CN.d.ts +2 -2
- package/lib/types/locale/zh-CN.d.ts +104 -57
- package/lib/types/services/function-list/array.d.ts +1 -1
- package/lib/umd/index.js +22 -6
- package/package.json +38 -24
|
@@ -1302,11 +1302,15 @@ declare const _default: {
|
|
|
1302
1302
|
url: string;
|
|
1303
1303
|
}[];
|
|
1304
1304
|
functionParameter: {
|
|
1305
|
-
|
|
1305
|
+
range: {
|
|
1306
1306
|
name: string;
|
|
1307
1307
|
detail: string;
|
|
1308
1308
|
};
|
|
1309
|
-
|
|
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
|
-
|
|
1327
|
+
sumRange: {
|
|
1324
1328
|
name: string;
|
|
1325
1329
|
detail: string;
|
|
1326
1330
|
};
|
|
1327
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1327
|
+
sumRange: {
|
|
1328
1328
|
name: string;
|
|
1329
1329
|
detail: string;
|
|
1330
1330
|
};
|
|
1331
|
-
|
|
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
|
};
|
|
@@ -1923,11 +1923,7 @@ declare const _default: {
|
|
|
1923
1923
|
url: string;
|
|
1924
1924
|
}[];
|
|
1925
1925
|
functionParameter: {
|
|
1926
|
-
|
|
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
|
-
|
|
2246
|
+
logical1: {
|
|
2251
2247
|
name: string;
|
|
2252
2248
|
detail: string;
|
|
2253
2249
|
};
|
|
2254
|
-
|
|
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
|
-
|
|
2318
|
+
logicalTest: {
|
|
2323
2319
|
name: string;
|
|
2324
2320
|
detail: string;
|
|
2325
2321
|
};
|
|
2326
|
-
|
|
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
|
-
|
|
2340
|
+
value: {
|
|
2341
2341
|
name: string;
|
|
2342
2342
|
detail: string;
|
|
2343
2343
|
};
|
|
2344
|
-
|
|
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
|
-
|
|
2722
|
+
text1: {
|
|
2723
2723
|
name: string;
|
|
2724
2724
|
detail: string;
|
|
2725
2725
|
};
|
|
2726
|
-
|
|
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
|
-
|
|
3886
|
+
lookupValue: {
|
|
3887
3887
|
name: string;
|
|
3888
3888
|
detail: string;
|
|
3889
3889
|
};
|
|
3890
|
-
|
|
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
|
-
|
|
4002
|
+
lookupValue: {
|
|
3995
4003
|
name: string;
|
|
3996
4004
|
detail: string;
|
|
3997
4005
|
};
|
|
3998
|
-
|
|
4006
|
+
lookupVectorOrArray: {
|
|
4007
|
+
name: string;
|
|
4008
|
+
detail: string;
|
|
4009
|
+
};
|
|
4010
|
+
resultVector: {
|
|
3999
4011
|
name: string;
|
|
4000
4012
|
detail: string;
|
|
4001
4013
|
};
|
|
@@ -4009,11 +4021,15 @@ declare const _default: {
|
|
|
4009
4021
|
url: string;
|
|
4010
4022
|
}[];
|
|
4011
4023
|
functionParameter: {
|
|
4012
|
-
|
|
4024
|
+
lookupValue: {
|
|
4013
4025
|
name: string;
|
|
4014
4026
|
detail: string;
|
|
4015
4027
|
};
|
|
4016
|
-
|
|
4028
|
+
lookupArray: {
|
|
4029
|
+
name: string;
|
|
4030
|
+
detail: string;
|
|
4031
|
+
};
|
|
4032
|
+
matchType: {
|
|
4017
4033
|
name: string;
|
|
4018
4034
|
detail: string;
|
|
4019
4035
|
};
|
|
@@ -4027,11 +4043,23 @@ declare const _default: {
|
|
|
4027
4043
|
url: string;
|
|
4028
4044
|
}[];
|
|
4029
4045
|
functionParameter: {
|
|
4030
|
-
|
|
4046
|
+
reference: {
|
|
4031
4047
|
name: string;
|
|
4032
4048
|
detail: string;
|
|
4033
4049
|
};
|
|
4034
|
-
|
|
4050
|
+
rows: {
|
|
4051
|
+
name: string;
|
|
4052
|
+
detail: string;
|
|
4053
|
+
};
|
|
4054
|
+
cols: {
|
|
4055
|
+
name: string;
|
|
4056
|
+
detail: string;
|
|
4057
|
+
};
|
|
4058
|
+
height: {
|
|
4059
|
+
name: string;
|
|
4060
|
+
detail: string;
|
|
4061
|
+
};
|
|
4062
|
+
width: {
|
|
4035
4063
|
name: string;
|
|
4036
4064
|
detail: string;
|
|
4037
4065
|
};
|
|
@@ -4305,11 +4333,27 @@ declare const _default: {
|
|
|
4305
4333
|
url: string;
|
|
4306
4334
|
}[];
|
|
4307
4335
|
functionParameter: {
|
|
4308
|
-
|
|
4336
|
+
lookupValue: {
|
|
4309
4337
|
name: string;
|
|
4310
4338
|
detail: string;
|
|
4311
4339
|
};
|
|
4312
|
-
|
|
4340
|
+
lookupArray: {
|
|
4341
|
+
name: string;
|
|
4342
|
+
detail: string;
|
|
4343
|
+
};
|
|
4344
|
+
returnArray: {
|
|
4345
|
+
name: string;
|
|
4346
|
+
detail: string;
|
|
4347
|
+
};
|
|
4348
|
+
ifNotFound: {
|
|
4349
|
+
name: string;
|
|
4350
|
+
detail: string;
|
|
4351
|
+
};
|
|
4352
|
+
matchMode: {
|
|
4353
|
+
name: string;
|
|
4354
|
+
detail: string;
|
|
4355
|
+
};
|
|
4356
|
+
searchMode: {
|
|
4313
4357
|
name: string;
|
|
4314
4358
|
detail: string;
|
|
4315
4359
|
};
|
|
@@ -4323,11 +4367,19 @@ declare const _default: {
|
|
|
4323
4367
|
url: string;
|
|
4324
4368
|
}[];
|
|
4325
4369
|
functionParameter: {
|
|
4326
|
-
|
|
4370
|
+
lookupValue: {
|
|
4327
4371
|
name: string;
|
|
4328
4372
|
detail: string;
|
|
4329
4373
|
};
|
|
4330
|
-
|
|
4374
|
+
lookupArray: {
|
|
4375
|
+
name: string;
|
|
4376
|
+
detail: string;
|
|
4377
|
+
};
|
|
4378
|
+
matchMode: {
|
|
4379
|
+
name: string;
|
|
4380
|
+
detail: string;
|
|
4381
|
+
};
|
|
4382
|
+
searchMode: {
|
|
4331
4383
|
name: string;
|
|
4332
4384
|
detail: string;
|
|
4333
4385
|
};
|
|
@@ -7609,7 +7661,7 @@ declare const _default: {
|
|
|
7609
7661
|
name: string;
|
|
7610
7662
|
detail: string;
|
|
7611
7663
|
};
|
|
7612
|
-
|
|
7664
|
+
sumRange: {
|
|
7613
7665
|
name: string;
|
|
7614
7666
|
detail: string;
|
|
7615
7667
|
};
|
|
@@ -7623,11 +7675,23 @@ declare const _default: {
|
|
|
7623
7675
|
url: string;
|
|
7624
7676
|
}[];
|
|
7625
7677
|
functionParameter: {
|
|
7626
|
-
|
|
7678
|
+
sumRange: {
|
|
7627
7679
|
name: string;
|
|
7628
7680
|
detail: string;
|
|
7629
7681
|
};
|
|
7630
|
-
|
|
7682
|
+
criteriaRange1: {
|
|
7683
|
+
name: string;
|
|
7684
|
+
detail: string;
|
|
7685
|
+
};
|
|
7686
|
+
criteria1: {
|
|
7687
|
+
name: string;
|
|
7688
|
+
detail: string;
|
|
7689
|
+
};
|
|
7690
|
+
criteriaRange2: {
|
|
7691
|
+
name: string;
|
|
7692
|
+
detail: string;
|
|
7693
|
+
};
|
|
7694
|
+
criteria2: {
|
|
7631
7695
|
name: string;
|
|
7632
7696
|
detail: string;
|
|
7633
7697
|
};
|
|
@@ -7785,11 +7849,15 @@ declare const _default: {
|
|
|
7785
7849
|
url: string;
|
|
7786
7850
|
}[];
|
|
7787
7851
|
functionParameter: {
|
|
7788
|
-
|
|
7852
|
+
year: {
|
|
7789
7853
|
name: string;
|
|
7790
7854
|
detail: string;
|
|
7791
7855
|
};
|
|
7792
|
-
|
|
7856
|
+
month: {
|
|
7857
|
+
name: string;
|
|
7858
|
+
detail: string;
|
|
7859
|
+
};
|
|
7860
|
+
day: {
|
|
7793
7861
|
name: string;
|
|
7794
7862
|
detail: string;
|
|
7795
7863
|
};
|
|
@@ -7839,11 +7907,7 @@ declare const _default: {
|
|
|
7839
7907
|
url: string;
|
|
7840
7908
|
}[];
|
|
7841
7909
|
functionParameter: {
|
|
7842
|
-
|
|
7843
|
-
name: string;
|
|
7844
|
-
detail: string;
|
|
7845
|
-
};
|
|
7846
|
-
number2: {
|
|
7910
|
+
serialNumber: {
|
|
7847
7911
|
name: string;
|
|
7848
7912
|
detail: string;
|
|
7849
7913
|
};
|
|
@@ -7893,11 +7957,11 @@ declare const _default: {
|
|
|
7893
7957
|
url: string;
|
|
7894
7958
|
}[];
|
|
7895
7959
|
functionParameter: {
|
|
7896
|
-
|
|
7960
|
+
startDate: {
|
|
7897
7961
|
name: string;
|
|
7898
7962
|
detail: string;
|
|
7899
7963
|
};
|
|
7900
|
-
|
|
7964
|
+
months: {
|
|
7901
7965
|
name: string;
|
|
7902
7966
|
detail: string;
|
|
7903
7967
|
};
|
|
@@ -7983,11 +8047,7 @@ declare const _default: {
|
|
|
7983
8047
|
url: string;
|
|
7984
8048
|
}[];
|
|
7985
8049
|
functionParameter: {
|
|
7986
|
-
|
|
7987
|
-
name: string;
|
|
7988
|
-
detail: string;
|
|
7989
|
-
};
|
|
7990
|
-
number2: {
|
|
8050
|
+
serialNumber: {
|
|
7991
8051
|
name: string;
|
|
7992
8052
|
detail: string;
|
|
7993
8053
|
};
|
|
@@ -8108,16 +8168,7 @@ declare const _default: {
|
|
|
8108
8168
|
title: string;
|
|
8109
8169
|
url: string;
|
|
8110
8170
|
}[];
|
|
8111
|
-
functionParameter: {
|
|
8112
|
-
number1: {
|
|
8113
|
-
name: string;
|
|
8114
|
-
detail: string;
|
|
8115
|
-
};
|
|
8116
|
-
number2: {
|
|
8117
|
-
name: string;
|
|
8118
|
-
detail: string;
|
|
8119
|
-
};
|
|
8120
|
-
};
|
|
8171
|
+
functionParameter: {};
|
|
8121
8172
|
};
|
|
8122
8173
|
WEEKDAY: {
|
|
8123
8174
|
description: string;
|
|
@@ -8199,11 +8250,7 @@ declare const _default: {
|
|
|
8199
8250
|
url: string;
|
|
8200
8251
|
}[];
|
|
8201
8252
|
functionParameter: {
|
|
8202
|
-
|
|
8203
|
-
name: string;
|
|
8204
|
-
detail: string;
|
|
8205
|
-
};
|
|
8206
|
-
number2: {
|
|
8253
|
+
serialNumber: {
|
|
8207
8254
|
name: string;
|
|
8208
8255
|
detail: string;
|
|
8209
8256
|
};
|
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import {
|
|
16
|
+
import type { IFunctionInfo } from '@univerjs/engine-formula';
|
|
17
17
|
export declare const FUNCTION_LIST_ARRAY: IFunctionInfo[];
|