@univerjs/engine-formula 0.1.0-beta.0 → 0.1.0-beta.2
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 +1 -1
- package/lib/es/index.js +3852 -3182
- package/lib/types/basics/common.d.ts +28 -26
- package/lib/types/basics/error-type.d.ts +1 -1
- package/lib/types/basics/function.d.ts +5 -1
- package/lib/types/basics/inverted-index-cache.d.ts +2 -2
- package/lib/types/basics/object-class-type.d.ts +1 -0
- package/lib/types/basics/regex.d.ts +9 -10
- package/lib/types/commands/mutations/register-function.mutation.d.ts +30 -0
- package/lib/types/commands/mutations/unregister-function.mutation.d.ts +30 -0
- package/lib/types/controller/formula.controller.d.ts +5 -1
- package/lib/types/controller/register-function.controller.d.ts +26 -0
- package/lib/types/engine/analysis/__tests__/create-command-test-bed.d.ts +4 -0
- package/lib/types/engine/analysis/lexer-tree-builder.d.ts +1 -0
- package/lib/types/engine/ast-node/base-ast-node.d.ts +1 -0
- package/lib/types/engine/ast-node/function-node.d.ts +11 -2
- package/lib/types/engine/ast-node/lambda-node.d.ts +9 -3
- package/lib/types/engine/ast-node/lambda-parameter-node.d.ts +0 -1
- package/lib/types/engine/ast-node/union-node.d.ts +2 -3
- package/lib/types/engine/dependency/dependency-tree.d.ts +3 -1
- package/lib/types/engine/reference-object/base-reference-object.d.ts +28 -17
- package/lib/types/engine/reference-object/range-reference-object.d.ts +2 -2
- package/lib/types/engine/utils/compare.d.ts +4 -0
- package/lib/types/engine/value-object/array-value-object.d.ts +12 -7
- package/lib/types/engine/value-object/base-value-object.d.ts +15 -0
- package/lib/types/engine/value-object/lambda-value-object.d.ts +30 -0
- package/lib/types/engine/value-object/primitive-object.d.ts +1 -0
- package/lib/types/functions/base-function.d.ts +38 -2
- package/lib/types/functions/compatibility/function-map.d.ts +1 -3
- package/lib/types/functions/compatibility/function-names.d.ts +38 -1
- package/lib/types/functions/cube/function-names.d.ts +7 -0
- package/lib/types/functions/database/function-names.d.ts +12 -0
- package/lib/types/functions/date/function-names.d.ts +25 -0
- package/lib/types/functions/engineering/function-names.d.ts +54 -0
- package/lib/types/functions/financial/function-names.d.ts +55 -0
- package/lib/types/functions/information/function-names.d.ts +21 -0
- package/lib/types/functions/logical/function-map.d.ts +3 -1
- package/lib/types/functions/logical/function-names.d.ts +19 -0
- package/lib/types/functions/logical/lambda/index.d.ts +24 -0
- package/lib/types/functions/{lookup/indirect/indirect.d.ts → logical/makearray/index.d.ts} +5 -4
- package/lib/types/functions/lookup/address/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/lookup/address/index.d.ts +22 -0
- package/lib/types/functions/lookup/function-map.d.ts +5 -2
- package/lib/types/functions/lookup/function-names.d.ts +36 -1
- package/lib/types/functions/lookup/indirect/__test__/index.spec.d.ts +16 -0
- package/lib/types/functions/{meta/plus/plus.d.ts → lookup/indirect/index.d.ts} +4 -3
- package/lib/types/functions/lookup/vlookup/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/lookup/vlookup/index.d.ts +21 -0
- package/lib/types/functions/math/abs/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/{statistical/count/count.d.ts → math/abs/index.d.ts} +2 -2
- package/lib/types/functions/math/acos/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/{statistical/counta/counta.d.ts → math/acos/index.d.ts} +2 -2
- package/lib/types/functions/math/acosh/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/{statistical/min/min.d.ts → math/acosh/index.d.ts} +2 -3
- package/lib/types/functions/math/acot/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/{meta/minus/minus.d.ts → math/acot/index.d.ts} +2 -2
- package/lib/types/functions/math/function-map.d.ts +1 -1
- package/lib/types/functions/math/function-names.d.ts +79 -1
- package/lib/types/functions/math/sum/{sum.d.ts → index.d.ts} +2 -2
- package/lib/types/functions/math/sumif/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/math/sumifs/__tests__/index.spec.d.ts +16 -0
- package/lib/types/functions/meta/compare/{compare.d.ts → index.d.ts} +1 -2
- package/lib/types/functions/meta/divided/{divided.d.ts → index.d.ts} +1 -2
- package/lib/types/functions/meta/function-map.d.ts +2 -3
- package/lib/types/functions/meta/minus/index.d.ts +20 -0
- package/lib/types/functions/meta/multiply/{multiply.d.ts → index.d.ts} +1 -2
- package/lib/types/functions/meta/plus/index.d.ts +20 -0
- package/lib/types/functions/statistical/average/{average.d.ts → index.d.ts} +2 -2
- package/lib/types/functions/statistical/count/index.d.ts +20 -0
- package/lib/types/functions/statistical/counta/index.d.ts +20 -0
- package/lib/types/functions/statistical/function-map.d.ts +1 -1
- package/lib/types/functions/statistical/function-names.d.ts +107 -1
- package/lib/types/functions/statistical/max/{max.d.ts → index.d.ts} +2 -2
- package/lib/types/functions/statistical/min/index.d.ts +21 -0
- package/lib/types/functions/text/function-map.d.ts +3 -1
- package/lib/types/functions/text/function-names.d.ts +47 -0
- package/lib/types/functions/web/function-names.d.ts +3 -0
- package/lib/types/index.d.ts +19 -0
- package/lib/types/models/formula-data.model.d.ts +3 -1
- package/lib/types/plugin.d.ts +4 -0
- package/lib/types/services/current-data.service.d.ts +1 -0
- package/lib/types/services/feature-calculation-manager.service.d.ts +1 -1
- package/lib/types/services/function.service.d.ts +4 -0
- package/lib/types/services/other-formula-manager.service.d.ts +2 -2
- package/lib/types/services/runtime.service.d.ts +11 -5
- package/lib/umd/index.js +1 -1
- package/package.json +10 -10
- package/lib/types/functions/meta/union/union.d.ts +0 -23
- /package/lib/types/{functions/math/sumif/__tests__/sumif.spec.d.ts → engine/analysis/__tests__/parser.spec.d.ts} +0 -0
- /package/lib/types/functions/{math/sumifs/__tests__/sumifs.spec.d.ts → logical/makearray/__test__/index.spec.d.ts} +0 -0
- /package/lib/types/functions/lookup/offset/{offset.d.ts → index.d.ts} +0 -0
- /package/lib/types/functions/math/power/{power.d.ts → index.d.ts} +0 -0
- /package/lib/types/functions/math/sumif/{sumif.d.ts → index.d.ts} +0 -0
- /package/lib/types/functions/math/sumifs/{sumifs.d.ts → index.d.ts} +0 -0
- /package/lib/types/functions/{compatibility/concatenate/concatenate.d.ts → text/concatenate/index.d.ts} +0 -0
|
@@ -16,6 +16,6 @@
|
|
|
16
16
|
import type { FunctionVariantType } from '../../../engine/reference-object/base-reference-object';
|
|
17
17
|
import type { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
18
18
|
import { BaseFunction } from '../../base-function';
|
|
19
|
-
export declare class
|
|
20
|
-
calculate(
|
|
19
|
+
export declare class Abs extends BaseFunction {
|
|
20
|
+
calculate(variant: FunctionVariantType): BaseValueObject;
|
|
21
21
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -16,6 +16,6 @@
|
|
|
16
16
|
import type { FunctionVariantType } from '../../../engine/reference-object/base-reference-object';
|
|
17
17
|
import type { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
18
18
|
import { BaseFunction } from '../../base-function';
|
|
19
|
-
export declare class
|
|
20
|
-
calculate(
|
|
19
|
+
export declare class Acos extends BaseFunction {
|
|
20
|
+
calculate(variant: FunctionVariantType): BaseValueObject;
|
|
21
21
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
import type { FunctionVariantType } from '../../../engine/reference-object/base-reference-object';
|
|
17
17
|
import type { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
18
18
|
import { BaseFunction } from '../../base-function';
|
|
19
|
-
export declare class
|
|
20
|
-
calculate(
|
|
21
|
-
private _validator;
|
|
19
|
+
export declare class Acosh extends BaseFunction {
|
|
20
|
+
calculate(variant: FunctionVariantType): BaseValueObject;
|
|
22
21
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -16,6 +16,6 @@
|
|
|
16
16
|
import type { FunctionVariantType } from '../../../engine/reference-object/base-reference-object';
|
|
17
17
|
import type { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
18
18
|
import { BaseFunction } from '../../base-function';
|
|
19
|
-
export declare class
|
|
20
|
-
calculate(
|
|
19
|
+
export declare class Acot extends BaseFunction {
|
|
20
|
+
calculate(variant: FunctionVariantType): BaseValueObject;
|
|
21
21
|
}
|
|
@@ -14,8 +14,86 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
export declare enum FUNCTION_NAMES_MATH {
|
|
17
|
+
ABS = "ABS",
|
|
18
|
+
ACOS = "ACOS",
|
|
19
|
+
ACOSH = "ACOSH",
|
|
20
|
+
ACOT = "ACOT",
|
|
21
|
+
ACOTH = "ACOTH",
|
|
22
|
+
AGGREGATE = "AGGREGATE",
|
|
23
|
+
ARABIC = "ARABIC",
|
|
24
|
+
ASIN = "ASIN",
|
|
25
|
+
ASINH = "ASINH",
|
|
26
|
+
ATAN = "ATAN",
|
|
27
|
+
ATAN2 = "ATAN2",
|
|
28
|
+
ATANH = "ATANH",
|
|
29
|
+
BASE = "BASE",
|
|
30
|
+
CEILING = "CEILING",
|
|
31
|
+
CEILING_MATH = "CEILING.MATH",
|
|
32
|
+
CEILING_PRECISE = "CEILING.PRECISE",
|
|
33
|
+
COMBIN = "COMBIN",
|
|
34
|
+
COMBINA = "COMBINA",
|
|
35
|
+
COS = "COS",
|
|
36
|
+
COSH = "COSH",
|
|
37
|
+
COT = "COT",
|
|
38
|
+
COTH = "COTH",
|
|
39
|
+
CSC = "CSC",
|
|
40
|
+
CSCH = "CSCH",
|
|
41
|
+
DECIMAL = "DECIMAL",
|
|
42
|
+
DEGREES = "DEGREES",
|
|
43
|
+
EVEN = "EVEN",
|
|
44
|
+
EXP = "EXP",
|
|
45
|
+
FACT = "FACT",
|
|
46
|
+
FACTDOUBLE = "FACTDOUBLE",
|
|
47
|
+
FLOOR = "FLOOR",
|
|
48
|
+
FLOOR_MATH = "FLOOR.MATH",
|
|
49
|
+
FLOOR_PRECISE = "FLOOR.PRECISE",
|
|
50
|
+
GCD = "GCD",
|
|
51
|
+
INT = "INT",
|
|
52
|
+
ISO_CEILING = "ISO.CEILING",
|
|
53
|
+
LCM = "LCM",
|
|
54
|
+
LET = "LET",
|
|
55
|
+
LN = "LN",
|
|
56
|
+
LOG = "LOG",
|
|
57
|
+
LOG10 = "LOG10",
|
|
58
|
+
MDETERM = "MDETERM",
|
|
59
|
+
MINVERSE = "MINVERSE",
|
|
60
|
+
MMULT = "MMULT",
|
|
61
|
+
MOD = "MOD",
|
|
62
|
+
MROUND = "MROUND",
|
|
63
|
+
MULTINOMIAL = "MULTINOMIAL",
|
|
64
|
+
MUNIT = "MUNIT",
|
|
65
|
+
ODD = "ODD",
|
|
66
|
+
PI = "PI",
|
|
67
|
+
POWER = "POWER",
|
|
68
|
+
PRODUCT = "PRODUCT",
|
|
69
|
+
QUOTIENT = "QUOTIENT",
|
|
70
|
+
RADIANS = "RADIANS",
|
|
71
|
+
RAND = "RAND",
|
|
72
|
+
RANDARRAY = "RANDARRAY",
|
|
73
|
+
RANDBETWEEN = "RANDBETWEEN",
|
|
74
|
+
ROMAN = "ROMAN",
|
|
75
|
+
ROUND = "ROUND",
|
|
76
|
+
ROUNDDOWN = "ROUNDDOWN",
|
|
77
|
+
ROUNDUP = "ROUNDUP",
|
|
78
|
+
SEC = "SEC",
|
|
79
|
+
SECH = "SECH",
|
|
80
|
+
SERIESSUM = "SERIESSUM",
|
|
81
|
+
SEQUENCE = "SEQUENCE",
|
|
82
|
+
SIGN = "SIGN",
|
|
83
|
+
SIN = "SIN",
|
|
84
|
+
SINH = "SINH",
|
|
85
|
+
SQRT = "SQRT",
|
|
86
|
+
SQRTPI = "SQRTPI",
|
|
87
|
+
SUBTOTAL = "SUBTOTAL",
|
|
17
88
|
SUM = "SUM",
|
|
18
89
|
SUMIF = "SUMIF",
|
|
19
90
|
SUMIFS = "SUMIFS",
|
|
20
|
-
|
|
91
|
+
SUMPRODUCT = "SUMPRODUCT",
|
|
92
|
+
SUMSQ = "SUMSQ",
|
|
93
|
+
SUMX2MY2 = "SUMX2MY2",
|
|
94
|
+
SUMX2PY2 = "SUMX2PY2",
|
|
95
|
+
SUMXMY2 = "SUMXMY2",
|
|
96
|
+
TAN = "TAN",
|
|
97
|
+
TANH = "TANH",
|
|
98
|
+
TRUNC = "TRUNC"
|
|
21
99
|
}
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import type
|
|
16
|
+
import { type BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
17
17
|
import { BaseFunction } from '../../base-function';
|
|
18
18
|
export declare class Sum extends BaseFunction {
|
|
19
|
-
calculate(...variants:
|
|
19
|
+
calculate(...variants: BaseValueObject[]): BaseValueObject;
|
|
20
20
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -14,11 +14,10 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { compareToken } from '../../../basics/token';
|
|
17
|
-
import type { FunctionVariantType } from '../../../engine/reference-object/base-reference-object';
|
|
18
17
|
import { type BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
19
18
|
import { BaseFunction } from '../../base-function';
|
|
20
19
|
export declare class Compare extends BaseFunction {
|
|
21
20
|
private _compareType;
|
|
22
21
|
setCompareType(token: compareToken): void;
|
|
23
|
-
calculate(variant1:
|
|
22
|
+
calculate(variant1: BaseValueObject, variant2: BaseValueObject): BaseValueObject;
|
|
24
23
|
}
|
|
@@ -13,9 +13,8 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import type { FunctionVariantType } from '../../../engine/reference-object/base-reference-object';
|
|
17
16
|
import { type BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
18
17
|
import { BaseFunction } from '../../base-function';
|
|
19
18
|
export declare class Divided extends BaseFunction {
|
|
20
|
-
calculate(variant1:
|
|
19
|
+
calculate(variant1: BaseValueObject, variant2: BaseValueObject): BaseValueObject;
|
|
21
20
|
}
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { Divided } from './divided
|
|
16
|
+
import { Divided } from './divided';
|
|
17
17
|
import { FUNCTION_NAMES_META } from './function-names';
|
|
18
|
-
|
|
19
|
-
export declare const functionMeta: ((FUNCTION_NAMES_META | typeof Divided)[] | (FUNCTION_NAMES_META | typeof Union)[])[];
|
|
18
|
+
export declare const functionMeta: (FUNCTION_NAMES_META | typeof Divided)[][];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import type { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
17
|
+
import { BaseFunction } from '../../base-function';
|
|
18
|
+
export declare class Minus extends BaseFunction {
|
|
19
|
+
calculate(variant1: BaseValueObject, variant2: BaseValueObject): BaseValueObject;
|
|
20
|
+
}
|
|
@@ -13,9 +13,8 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import type { FunctionVariantType } from '../../../engine/reference-object/base-reference-object';
|
|
17
16
|
import { type BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
18
17
|
import { BaseFunction } from '../../base-function';
|
|
19
18
|
export declare class Multiply extends BaseFunction {
|
|
20
|
-
calculate(variant1:
|
|
19
|
+
calculate(variant1: BaseValueObject, variant2: BaseValueObject): BaseValueObject;
|
|
21
20
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import type { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
17
|
+
import { BaseFunction } from '../../base-function';
|
|
18
|
+
export declare class Plus extends BaseFunction {
|
|
19
|
+
calculate(variant1: BaseValueObject, variant2: BaseValueObject): BaseValueObject;
|
|
20
|
+
}
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import type {
|
|
16
|
+
import type { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
17
17
|
import { BaseFunction } from '../../base-function';
|
|
18
18
|
export declare class Average extends BaseFunction {
|
|
19
|
-
calculate(...variants:
|
|
19
|
+
calculate(...variants: BaseValueObject[]): BaseValueObject;
|
|
20
20
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import type { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
17
|
+
import { BaseFunction } from '../../base-function';
|
|
18
|
+
export declare class Count extends BaseFunction {
|
|
19
|
+
calculate(...variants: BaseValueObject[]): BaseValueObject;
|
|
20
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import type { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
17
|
+
import { BaseFunction } from '../../base-function';
|
|
18
|
+
export declare class CountA extends BaseFunction {
|
|
19
|
+
calculate(...variants: BaseValueObject[]): BaseValueObject;
|
|
20
|
+
}
|
|
@@ -13,6 +13,6 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { Average } from './average
|
|
16
|
+
import { Average } from './average';
|
|
17
17
|
import { FUNCTION_NAMES_STATISTICAL } from './function-names';
|
|
18
18
|
export declare const functionStatistical: (FUNCTION_NAMES_STATISTICAL | typeof Average)[][];
|
|
@@ -14,9 +14,115 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
export declare enum FUNCTION_NAMES_STATISTICAL {
|
|
17
|
+
AVEDEV = "AVEDEV",
|
|
17
18
|
AVERAGE = "AVERAGE",
|
|
19
|
+
AVERAGEA = "AVERAGEA",
|
|
20
|
+
AVERAGEIF = "AVERAGEIF",
|
|
21
|
+
AVERAGEIFS = "AVERAGEIFS",
|
|
22
|
+
BETA_DIST = "BETA.DIST",
|
|
23
|
+
BETA_INV = "BETA.INV",
|
|
24
|
+
BINOM_DIST = "BINOM.DIST",
|
|
25
|
+
BINOM_DIST_RANGE = "BINOM.DIST.RANGE",
|
|
26
|
+
BINOM_INV = "BINOM.INV",
|
|
27
|
+
CHISQ_DIST = "CHISQ.DIST",
|
|
28
|
+
CHISQ_DIST_RT = "CHISQ.DIST.RT",
|
|
29
|
+
CHISQ_INV = "CHISQ.INV",
|
|
30
|
+
CHISQ_INV_RT = "CHISQ.INV.RT",
|
|
31
|
+
CHISQ_TEST = "CHISQ.TEST",
|
|
32
|
+
CONFIDENCE_NORM = "CONFIDENCE.NORM",
|
|
33
|
+
CONFIDENCE_T = "CONFIDENCE.T",
|
|
34
|
+
CORREL = "CORREL",
|
|
18
35
|
COUNT = "COUNT",
|
|
36
|
+
COUNTA = "COUNTA",
|
|
37
|
+
COUNTBLANK = "COUNTBLANK",
|
|
38
|
+
COUNTIF = "COUNTIF",
|
|
39
|
+
COUNTIFS = "COUNTIFS",
|
|
40
|
+
COVARIANCE_P = "COVARIANCE.P",
|
|
41
|
+
COVARIANCE_S = "COVARIANCE.S",
|
|
42
|
+
DEVSQ = "DEVSQ",
|
|
43
|
+
EXPON_DIST = "EXPON.DIST",
|
|
44
|
+
F_DIST = "F.DIST",
|
|
45
|
+
F_DIST_RT = "F.DIST.RT",
|
|
46
|
+
F_INV = "F.INV",
|
|
47
|
+
F_INV_RT = "F.INV.RT",
|
|
48
|
+
F_TEST = "F.TEST",
|
|
49
|
+
FISHER = "FISHER",
|
|
50
|
+
FISHERINV = "FISHERINV",
|
|
51
|
+
FORECAST = "FORECAST",
|
|
52
|
+
FORECAST_ETS = "FORECAST.ETS",
|
|
53
|
+
FORECAST_ETS_CONFINT = "FORECAST.ETS.CONFINT",
|
|
54
|
+
FORECAST_ETS_SEASONALITY = "FORECAST.ETS.SEASONALITY",
|
|
55
|
+
FORECAST_ETS_STAT = "FORECAST.ETS.STAT",
|
|
56
|
+
FORECAST_LINEAR = "FORECAST.LINEAR",
|
|
57
|
+
FREQUENCY = "FREQUENCY",
|
|
58
|
+
GAMMA = "GAMMA",
|
|
59
|
+
GAMMA_DIST = "GAMMA.DIST",
|
|
60
|
+
GAMMA_INV = "GAMMA.INV",
|
|
61
|
+
GAMMALN = "GAMMALN",
|
|
62
|
+
GAMMALN_PRECISE = "GAMMALN.PRECISE",
|
|
63
|
+
GAUSS = "GAUSS",
|
|
64
|
+
GEOMEAN = "GEOMEAN",
|
|
65
|
+
GROWTH = "GROWTH",
|
|
66
|
+
HARMEAN = "HARMEAN",
|
|
67
|
+
HYPGEOM_DIST = "HYPGEOM.DIST",
|
|
68
|
+
INTERCEPT = "INTERCEPT",
|
|
69
|
+
KURT = "KURT",
|
|
70
|
+
LARGE = "LARGE",
|
|
71
|
+
LINEST = "LINEST",
|
|
72
|
+
LOGEST = "LOGEST",
|
|
73
|
+
LOGNORM_DIST = "LOGNORM.DIST",
|
|
74
|
+
LOGNORM_INV = "LOGNORM.INV",
|
|
19
75
|
MAX = "MAX",
|
|
76
|
+
MAXA = "MAXA",
|
|
77
|
+
MAXIFS = "MAXIFS",
|
|
78
|
+
MEDIAN = "MEDIAN",
|
|
20
79
|
MIN = "MIN",
|
|
21
|
-
|
|
80
|
+
MINA = "MINA",
|
|
81
|
+
MINIFS = "MINIFS",
|
|
82
|
+
MODE_MULT = "MODE.MULT",
|
|
83
|
+
MODE_SNGL = "MODE.SNGL",
|
|
84
|
+
NEGBINOM_DIST = "NEGBINOM.DIST",
|
|
85
|
+
NORM_DIST = "NORM.DIST",
|
|
86
|
+
NORM_INV = "NORM.INV",
|
|
87
|
+
NORM_S_DIST = "NORM.S.DIST",
|
|
88
|
+
NORM_S_INV = "NORM.S.INV",
|
|
89
|
+
PEARSON = "PEARSON",
|
|
90
|
+
PERCENTILE_EXC = "PERCENTILE.EXC",
|
|
91
|
+
PERCENTILE_INC = "PERCENTILE.INC",
|
|
92
|
+
PERCENTRANK_EXC = "PERCENTRANK.EXC",
|
|
93
|
+
PERCENTRANK_INC = "PERCENTRANK.INC",
|
|
94
|
+
PERMUT = "PERMUT",
|
|
95
|
+
PERMUTATIONA = "PERMUTATIONA",
|
|
96
|
+
PHI = "PHI",
|
|
97
|
+
POISSON_DIST = "POISSON.DIST",
|
|
98
|
+
PROB = "PROB",
|
|
99
|
+
QUARTILE_EXC = "QUARTILE.EXC",
|
|
100
|
+
QUARTILE_INC = "QUARTILE.INC",
|
|
101
|
+
RANK_AVG = "RANK.AVG",
|
|
102
|
+
RANK_EQ = "RANK.EQ",
|
|
103
|
+
RSQ = "RSQ",
|
|
104
|
+
SKEW = "SKEW",
|
|
105
|
+
SKEW_P = "SKEW.P",
|
|
106
|
+
SLOPE = "SLOPE",
|
|
107
|
+
SMALL = "SMALL",
|
|
108
|
+
STANDARDIZE = "STANDARDIZE",
|
|
109
|
+
STDEV_P = "STDEV.P",
|
|
110
|
+
STDEV_S = "STDEV.S",
|
|
111
|
+
STDEVA = "STDEVA",
|
|
112
|
+
STDEVPA = "STDEVPA",
|
|
113
|
+
STEYX = "STEYX",
|
|
114
|
+
T_DIST = "T.DIST",
|
|
115
|
+
T_DIST_2T = "T.DIST.2T",
|
|
116
|
+
T_DIST_RT = "T.DIST.RT",
|
|
117
|
+
T_INV = "T.INV",
|
|
118
|
+
T_INV_2T = "T.INV.2T",
|
|
119
|
+
T_TEST = "T.TEST",
|
|
120
|
+
TREND = "TREND",
|
|
121
|
+
TRIMMEAN = "TRIMMEAN",
|
|
122
|
+
VAR_P = "VAR.P",
|
|
123
|
+
VAR_S = "VAR.S",
|
|
124
|
+
VARA = "VARA",
|
|
125
|
+
VARPA = "VARPA",
|
|
126
|
+
WEIBULL_DIST = "WEIBULL.DIST",
|
|
127
|
+
Z_TEST = "Z.TEST"
|
|
22
128
|
}
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import type {
|
|
16
|
+
import type { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
17
17
|
import { BaseFunction } from '../../base-function';
|
|
18
18
|
export declare class Max extends BaseFunction {
|
|
19
|
-
calculate(...variants:
|
|
19
|
+
calculate(...variants: BaseValueObject[]): BaseValueObject;
|
|
20
20
|
private _validator;
|
|
21
21
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import type { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
17
|
+
import { BaseFunction } from '../../base-function';
|
|
18
|
+
export declare class Min extends BaseFunction {
|
|
19
|
+
calculate(...variants: BaseValueObject[]): BaseValueObject;
|
|
20
|
+
private _validator;
|
|
21
|
+
}
|
|
@@ -13,4 +13,6 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
|
|
16
|
+
import { Concatenate } from './concatenate';
|
|
17
|
+
import { FUNCTION_NAMES_TEXT } from './function-names';
|
|
18
|
+
export declare const functionText: (FUNCTION_NAMES_TEXT | typeof Concatenate)[][];
|
|
@@ -14,4 +14,51 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
export declare enum FUNCTION_NAMES_TEXT {
|
|
17
|
+
ASC = "ASC",
|
|
18
|
+
ARRAYTOTEXT = "ARRAYTOTEXT",
|
|
19
|
+
BAHTTEXT = "BAHTTEXT",
|
|
20
|
+
CHAR = "CHAR",
|
|
21
|
+
CLEAN = "CLEAN",
|
|
22
|
+
CODE = "CODE",
|
|
23
|
+
CONCAT = "CONCAT",
|
|
24
|
+
CONCATENATE = "CONCATENATE",
|
|
25
|
+
DBCS = "DBCS",
|
|
26
|
+
DOLLAR = "DOLLAR",
|
|
27
|
+
EXACT = "EXACT",
|
|
28
|
+
FIND = "FIND",
|
|
29
|
+
FINDB = "FINDB",
|
|
30
|
+
FIXED = "FIXED",
|
|
31
|
+
LEFT = "LEFT",
|
|
32
|
+
LEFTB = "LEFTB",
|
|
33
|
+
LEN = "LEN",
|
|
34
|
+
LENB = "LENB",
|
|
35
|
+
LOWER = "LOWER",
|
|
36
|
+
MID = "MID",
|
|
37
|
+
MIDB = "MIDB",
|
|
38
|
+
NUMBERVALUE = "NUMBERVALUE",
|
|
39
|
+
PHONETIC = "PHONETIC",
|
|
40
|
+
PROPER = "PROPER",
|
|
41
|
+
REPLACE = "REPLACE",
|
|
42
|
+
REPLACEB = "REPLACEB",
|
|
43
|
+
REPT = "REPT",
|
|
44
|
+
RIGHT = "RIGHT",
|
|
45
|
+
RIGHTB = "RIGHTB",
|
|
46
|
+
SEARCH = "SEARCH",
|
|
47
|
+
SEARCHB = "SEARCHB",
|
|
48
|
+
SUBSTITUTE = "SUBSTITUTE",
|
|
49
|
+
T = "T",
|
|
50
|
+
TEXT = "TEXT",
|
|
51
|
+
TEXTAFTER = "TEXTAFTER",
|
|
52
|
+
TEXTBEFORE = "TEXTBEFORE",
|
|
53
|
+
TEXTJOIN = "TEXTJOIN",
|
|
54
|
+
TEXTSPLIT = "TEXTSPLIT",
|
|
55
|
+
TRIM = "TRIM",
|
|
56
|
+
UNICHAR = "UNICHAR",
|
|
57
|
+
UNICODE = "UNICODE",
|
|
58
|
+
UPPER = "UPPER",
|
|
59
|
+
VALUE = "VALUE",
|
|
60
|
+
VALUETOTEXT = "VALUETOTEXT",
|
|
61
|
+
CALL = "CALL",
|
|
62
|
+
EUROCONVERT = "EUROCONVERT",
|
|
63
|
+
REGISTER_ID = "REGISTER.ID"
|
|
17
64
|
}
|