@univerjs/engine-formula 1.0.0-alpha.2 → 1.0.0-alpha.4

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 (87) hide show
  1. package/lib/cjs/facade.js +9 -5
  2. package/lib/cjs/index.js +2017 -356
  3. package/lib/es/facade.js +9 -5
  4. package/lib/es/index.js +1999 -359
  5. package/lib/facade.js +9 -5
  6. package/lib/index.js +1999 -359
  7. package/lib/types/basics/common.d.ts +16 -1
  8. package/lib/types/basics/date.d.ts +2 -2
  9. package/lib/types/basics/regex.d.ts +4 -4
  10. package/lib/types/commands/mutations/set-super-table.mutation.d.ts +4 -1
  11. package/lib/types/controllers/formula-calculation-trigger.controller.d.ts +20 -0
  12. package/lib/types/controllers/super-table-active-dirty.controller.d.ts +22 -0
  13. package/lib/types/engine/analysis/lexer-node.d.ts +3 -3
  14. package/lib/types/engine/analysis/lexer-tree-builder.d.ts +2 -1
  15. package/lib/types/engine/analysis/lexer.d.ts +2 -1
  16. package/lib/types/engine/analysis/parser.d.ts +2 -1
  17. package/lib/types/engine/ast-node/function-node.d.ts +9 -2
  18. package/lib/types/engine/ast-node/operator-node.d.ts +1 -0
  19. package/lib/types/engine/ast-node/prefix-node.d.ts +1 -0
  20. package/lib/types/engine/ast-node/reference-node.d.ts +14 -4
  21. package/lib/types/engine/interpreter/interpreter.d.ts +11 -0
  22. package/lib/types/engine/reference-object/base-reference-object.d.ts +3 -0
  23. package/lib/types/engine/reference-object/cell-reference-object.d.ts +1 -0
  24. package/lib/types/engine/reference-object/table-reference-object.d.ts +2 -0
  25. package/lib/types/engine/utils/generate-ast-node.d.ts +1 -1
  26. package/lib/types/engine/utils/math-kit.d.ts +5 -0
  27. package/lib/types/engine/utils/reference.d.ts +3 -5
  28. package/lib/types/engine/utils/unit-qualifier.d.ts +32 -0
  29. package/lib/types/engine/value-object/array-value-object.d.ts +5 -0
  30. package/lib/types/engine/value-object/base-value-object.d.ts +6 -0
  31. package/lib/types/facade/f-formula.d.ts +9 -5
  32. package/lib/types/functions/base-function.d.ts +21 -1
  33. package/lib/types/functions/cube/cubekpimember/index.d.ts +20 -0
  34. package/lib/types/functions/cube/cubemember/index.d.ts +20 -0
  35. package/lib/types/functions/cube/cubememberproperty/index.d.ts +20 -0
  36. package/lib/types/functions/cube/cuberankedmember/index.d.ts +20 -0
  37. package/lib/types/functions/cube/cubeset/index.d.ts +20 -0
  38. package/lib/types/functions/cube/cubesetcount/index.d.ts +20 -0
  39. package/lib/types/functions/cube/cubevalue/index.d.ts +20 -0
  40. package/lib/types/functions/financial/amordegrc/index.d.ts +20 -0
  41. package/lib/types/functions/information/info/index.d.ts +20 -0
  42. package/lib/types/functions/information/isomitted/index.d.ts +20 -0
  43. package/lib/types/functions/logical/function-map.d.ts +3 -2
  44. package/lib/types/functions/logical/function-names.d.ts +2 -0
  45. package/lib/types/functions/logical/groupby/index.d.ts +46 -0
  46. package/lib/types/functions/logical/if/index.d.ts +5 -0
  47. package/lib/types/functions/logical/iferror/index.d.ts +4 -1
  48. package/lib/types/functions/logical/percentof/index.d.ts +27 -0
  49. package/lib/types/functions/lookup/anchorarray/index.d.ts +23 -0
  50. package/lib/types/functions/lookup/function-names.d.ts +1 -0
  51. package/lib/types/functions/lookup/getpivotdata/index.d.ts +20 -0
  52. package/lib/types/functions/lookup/hlookup/index.d.ts +1 -0
  53. package/lib/types/functions/lookup/indirect/index.d.ts +2 -0
  54. package/lib/types/functions/lookup/rtd/index.d.ts +20 -0
  55. package/lib/types/functions/lookup/vlookup/index.d.ts +2 -0
  56. package/lib/types/functions/lookup/xlookup/index.d.ts +2 -0
  57. package/lib/types/functions/math/iso-ceiling/index.d.ts +20 -0
  58. package/lib/types/functions/math/sum/index.d.ts +1 -0
  59. package/lib/types/functions/meta/compare/index.d.ts +1 -0
  60. package/lib/types/functions/not-implemented-function.d.ts +23 -0
  61. package/lib/types/functions/statistical/average/index.d.ts +1 -0
  62. package/lib/types/functions/statistical/countifs/index.d.ts +1 -0
  63. package/lib/types/functions/statistical/forecast-ets/index.d.ts +20 -0
  64. package/lib/types/functions/statistical/forecast-ets-confint/index.d.ts +20 -0
  65. package/lib/types/functions/statistical/forecast-ets-seasonality/index.d.ts +20 -0
  66. package/lib/types/functions/statistical/forecast-ets-stat/index.d.ts +20 -0
  67. package/lib/types/functions/statistical/linest/index.d.ts +1 -0
  68. package/lib/types/functions/text/call/index.d.ts +20 -0
  69. package/lib/types/functions/text/euroconvert/index.d.ts +20 -0
  70. package/lib/types/functions/text/function-names.d.ts +1 -0
  71. package/lib/types/functions/text/phonetic/index.d.ts +20 -0
  72. package/lib/types/functions/text/register-id/index.d.ts +20 -0
  73. package/lib/types/functions/text/textsplit/index.d.ts +1 -0
  74. package/lib/types/functions/web/filterxml/index.d.ts +22 -0
  75. package/lib/types/functions/web/function-map.d.ts +2 -2
  76. package/lib/types/functions/web/webservice/index.d.ts +20 -0
  77. package/lib/types/index.d.ts +7 -2
  78. package/lib/types/models/formula-data.model.d.ts +4 -2
  79. package/lib/types/services/active-dirty-manager.service.d.ts +2 -1
  80. package/lib/types/services/calculate-formula.service.d.ts +2 -2
  81. package/lib/types/services/current-data.service.d.ts +6 -1
  82. package/lib/types/services/defined-names.service.d.ts +2 -2
  83. package/lib/types/services/formula-calculation-trigger.service.d.ts +43 -0
  84. package/lib/types/services/runtime.service.d.ts +6 -0
  85. package/lib/types/services/unit-reference-resolver.service.d.ts +39 -0
  86. package/lib/umd/index.js +5 -2
  87. package/package.json +5 -5
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
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 { NotImplementedFunction } from '../../not-implemented-function';
17
+ export declare class Cubekpimember extends NotImplementedFunction {
18
+ minParams: number;
19
+ maxParams: number;
20
+ }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
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 { NotImplementedFunction } from '../../not-implemented-function';
17
+ export declare class Cubemember extends NotImplementedFunction {
18
+ minParams: number;
19
+ maxParams: number;
20
+ }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
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 { NotImplementedFunction } from '../../not-implemented-function';
17
+ export declare class Cubememberproperty extends NotImplementedFunction {
18
+ minParams: number;
19
+ maxParams: number;
20
+ }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
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 { NotImplementedFunction } from '../../not-implemented-function';
17
+ export declare class Cuberankedmember extends NotImplementedFunction {
18
+ minParams: number;
19
+ maxParams: number;
20
+ }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
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 { NotImplementedFunction } from '../../not-implemented-function';
17
+ export declare class Cubeset extends NotImplementedFunction {
18
+ minParams: number;
19
+ maxParams: number;
20
+ }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
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 { NotImplementedFunction } from '../../not-implemented-function';
17
+ export declare class Cubesetcount extends NotImplementedFunction {
18
+ minParams: number;
19
+ maxParams: number;
20
+ }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
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 { NotImplementedFunction } from '../../not-implemented-function';
17
+ export declare class Cubevalue extends NotImplementedFunction {
18
+ minParams: number;
19
+ maxParams: number;
20
+ }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
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 { NotImplementedFunction } from '../../not-implemented-function';
17
+ export declare class Amordegrc extends NotImplementedFunction {
18
+ minParams: number;
19
+ maxParams: number;
20
+ }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
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 { NotImplementedFunction } from '../../not-implemented-function';
17
+ export declare class Info extends NotImplementedFunction {
18
+ minParams: number;
19
+ maxParams: number;
20
+ }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
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 { NotImplementedFunction } from '../../not-implemented-function';
17
+ export declare class Isomitted extends NotImplementedFunction {
18
+ minParams: number;
19
+ maxParams: number;
20
+ }
@@ -15,7 +15,8 @@
15
15
  */
16
16
  import { And } from './and';
17
17
  import { FUNCTION_NAMES_LOGICAL } from './function-names';
18
+ import { Groupby } from './groupby';
18
19
  import { If } from './if';
19
- import { Iferror } from './iferror';
20
+ import { Ifna } from './ifna';
20
21
  import { Makearray } from './makearray';
21
- export declare const functionLogical: ((FUNCTION_NAMES_LOGICAL | typeof And)[] | (FUNCTION_NAMES_LOGICAL | typeof If)[] | (FUNCTION_NAMES_LOGICAL | typeof Iferror)[] | (FUNCTION_NAMES_LOGICAL | typeof Makearray)[])[];
22
+ export declare const functionLogical: ((FUNCTION_NAMES_LOGICAL | typeof And)[] | (FUNCTION_NAMES_LOGICAL | typeof Groupby)[] | (FUNCTION_NAMES_LOGICAL | typeof If)[] | (FUNCTION_NAMES_LOGICAL | typeof Ifna)[] | (FUNCTION_NAMES_LOGICAL | typeof Makearray)[])[];
@@ -18,6 +18,7 @@ export declare enum FUNCTION_NAMES_LOGICAL {
18
18
  BYCOL = "BYCOL",
19
19
  BYROW = "BYROW",
20
20
  FALSE = "FALSE",
21
+ GROUPBY = "GROUPBY",
21
22
  IF = "IF",
22
23
  IFERROR = "IFERROR",
23
24
  IFNA = "IFNA",
@@ -28,6 +29,7 @@ export declare enum FUNCTION_NAMES_LOGICAL {
28
29
  MAP = "MAP",
29
30
  NOT = "NOT",
30
31
  OR = "OR",
32
+ PERCENTOF = "PERCENTOF",
31
33
  REDUCE = "REDUCE",
32
34
  SCAN = "SCAN",
33
35
  SWITCH = "SWITCH",
@@ -0,0 +1,46 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
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 { BaseAstNode } from '../../../engine/ast-node/base-ast-node';
17
+ import type { FunctionVariantType } from '../../../engine/reference-object/base-reference-object';
18
+ import { ArrayValueObject } from '../../../engine/value-object/array-value-object';
19
+ import { ErrorValueObject } from '../../../engine/value-object/base-value-object';
20
+ import { BaseFunction } from '../../base-function';
21
+ export declare class Groupby extends BaseFunction {
22
+ minParams: number;
23
+ maxParams: number;
24
+ needsReferenceObject: boolean;
25
+ needsAstChildren: boolean;
26
+ calculateAst(children: BaseAstNode[], getVariant: (node: BaseAstNode) => FunctionVariantType | null): ErrorValueObject | ArrayValueObject;
27
+ private _arrayInput;
28
+ private _aggregators;
29
+ private _normalizedFunctionName;
30
+ private _isAggregatorName;
31
+ private _outputValueColumnCount;
32
+ private _valueColumnForOutput;
33
+ private _aggregatorForOutput;
34
+ private _aggregatorHeader;
35
+ private _applyAggregator;
36
+ private _sum;
37
+ private _numericValue;
38
+ private _numberValue;
39
+ private _truthy;
40
+ private _keysEqual;
41
+ private _keyValue;
42
+ private _sortGroups;
43
+ private _compareKey;
44
+ private _compareValue;
45
+ private _textValue;
46
+ }
@@ -21,4 +21,9 @@ export declare class If extends BaseFunction {
21
21
  maxParams: number;
22
22
  calculate(logicalTest: BaseValueObject, valueIfTrue: BaseValueObject, valueIfFalse?: BaseValueObject): BaseValueObject | ArrayValueObject;
23
23
  private _handleSingleObject;
24
+ private _coerceSelectedValue;
25
+ private _coerceLogicalTest;
26
+ private _legacyImplicitSelectedValue;
27
+ private _legacyImplicitArrayValue;
28
+ private _isCurrentArrayFormula;
24
29
  }
@@ -13,11 +13,14 @@
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';
16
17
  import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';
17
18
  import type { BaseValueObject } from '../../../engine/value-object/base-value-object';
18
19
  import { BaseFunction } from '../../base-function';
19
20
  export declare class Iferror extends BaseFunction {
20
21
  minParams: number;
21
22
  maxParams: number;
22
- calculate(value: BaseValueObject, valueIfError: BaseValueObject): BaseValueObject | ArrayValueObject;
23
+ needsReferenceObject: boolean;
24
+ calculate(value: FunctionVariantType, valueIfError: FunctionVariantType): BaseValueObject | ArrayValueObject;
25
+ private _toValueObject;
23
26
  }
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
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 { ErrorValueObject } from '../../../engine/value-object/base-value-object';
18
+ import { BaseFunction } from '../../base-function';
19
+ /**
20
+ * PERCENTOF is an Excel GROUPBY aggregator token. It is evaluated by GROUPBY's
21
+ * AST path, not as a standalone scalar function.
22
+ */
23
+ export declare class Percentof extends BaseFunction {
24
+ minParams: number;
25
+ maxParams: number;
26
+ calculate(..._variants: BaseValueObject[]): ErrorValueObject;
27
+ }
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
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 { FunctionVariantType } from '../../../engine/reference-object/base-reference-object';
17
+ import { BaseFunction } from '../../base-function';
18
+ export declare class Anchorarray extends BaseFunction {
19
+ minParams: number;
20
+ maxParams: number;
21
+ needsReferenceObject: boolean;
22
+ calculate(reference: FunctionVariantType): FunctionVariantType;
23
+ }
@@ -15,6 +15,7 @@
15
15
  */
16
16
  export declare enum FUNCTION_NAMES_LOOKUP {
17
17
  ADDRESS = "ADDRESS",
18
+ ANCHORARRAY = "ANCHORARRAY",
18
19
  AREAS = "AREAS",
19
20
  CHOOSE = "CHOOSE",
20
21
  CHOOSECOLS = "CHOOSECOLS",
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
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 { NotImplementedFunction } from '../../not-implemented-function';
17
+ export declare class Getpivotdata extends NotImplementedFunction {
18
+ minParams: number;
19
+ maxParams: number;
20
+ }
@@ -20,4 +20,5 @@ export declare class Hlookup extends BaseFunction {
20
20
  maxParams: number;
21
21
  calculate(lookupValue: BaseValueObject, tableArray: BaseValueObject, rowIndexNum: BaseValueObject, rangeLookup?: BaseValueObject): BaseValueObject;
22
22
  private _handleSingleObject;
23
+ private _blankResultAsZero;
23
24
  }
@@ -19,6 +19,7 @@ import { BaseFunction } from '../../base-function';
19
19
  export declare class Indirect extends BaseFunction {
20
20
  minParams: number;
21
21
  maxParams: number;
22
+ needsUnitReferenceResolver: boolean;
22
23
  isAddress(): boolean;
23
24
  calculate(refText: BaseValueObject, a1?: BaseValueObject): BaseValueObject | BaseReferenceObject;
24
25
  private _handleSingleObject;
@@ -30,4 +31,5 @@ export declare class Indirect extends BaseFunction {
30
31
  * =INDIRECT("DefinedName1")
31
32
  */
32
33
  private _convertToDefinedName;
34
+ private _matchErrorLiteral;
33
35
  }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
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 { NotImplementedFunction } from '../../not-implemented-function';
17
+ export declare class Rtd extends NotImplementedFunction {
18
+ minParams: number;
19
+ maxParams: number;
20
+ }
@@ -24,4 +24,6 @@ export declare class Vlookup extends BaseFunction {
24
24
  private _handleNonArrayColIndexNum;
25
25
  private _handleTableArray;
26
26
  private _handleSingleObject;
27
+ private _equalSearchBlankLookupValue;
28
+ private _blankResultAsZero;
27
29
  }
@@ -20,8 +20,10 @@ export declare class Xlookup extends BaseFunction {
20
20
  maxParams: number;
21
21
  calculate(lookupValue: BaseValueObject, lookupArray: BaseValueObject, returnArray: BaseValueObject, ifNotFound?: BaseValueObject, matchMode?: BaseValueObject, searchMode?: BaseValueObject): BaseValueObject;
22
22
  private _getResult;
23
+ private _legacyImplicitLookupValue;
23
24
  private _handleExpandObject;
24
25
  private _handleSingleObject;
26
+ private _blankResultAsZero;
25
27
  /**
26
28
  * Wildcard matching and binary search cannot appear at the same time
27
29
  * @param matchModeValue
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
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 { NotImplementedFunction } from '../../not-implemented-function';
17
+ export declare class IsoCeiling extends NotImplementedFunction {
18
+ minParams: number;
19
+ maxParams: number;
20
+ }
@@ -19,4 +19,5 @@ export declare class Sum extends BaseFunction {
19
19
  minParams: number;
20
20
  maxParams: number;
21
21
  calculate(...variants: BaseValueObject[]): BaseValueObject;
22
+ private _legacyImplicitDerivedArray;
22
23
  }
@@ -22,4 +22,5 @@ export declare class Compare extends BaseFunction {
22
22
  private _compareType;
23
23
  setCompareType(token: compareToken): void;
24
24
  calculate(variant1: BaseValueObject, variant2: BaseValueObject): BaseValueObject;
25
+ private _coerceErrorLiteral;
25
26
  }
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
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
+ /**
19
+ * Shared behavior for registered functions whose runtime integration is not implemented yet.
20
+ */
21
+ export declare abstract class NotImplementedFunction extends BaseFunction {
22
+ calculate(..._variants: BaseValueObject[]): BaseValueObject;
23
+ }
@@ -19,4 +19,5 @@ export declare class Average extends BaseFunction {
19
19
  minParams: number;
20
20
  maxParams: number;
21
21
  calculate(...variants: BaseValueObject[]): BaseValueObject;
22
+ private _legacyImplicitDerivedArray;
22
23
  }
@@ -21,4 +21,5 @@ export declare class Countifs extends BaseFunction {
21
21
  maxParams: number;
22
22
  needsReferenceObject: boolean;
23
23
  calculate(...variants: FunctionVariantType[]): BaseValueObject;
24
+ private _legacyImplicitDerivedCriteria;
24
25
  }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
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 { NotImplementedFunction } from '../../not-implemented-function';
17
+ export declare class ForecastEts extends NotImplementedFunction {
18
+ minParams: number;
19
+ maxParams: number;
20
+ }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
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 { NotImplementedFunction } from '../../not-implemented-function';
17
+ export declare class ForecastEtsConfint extends NotImplementedFunction {
18
+ minParams: number;
19
+ maxParams: number;
20
+ }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
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 { NotImplementedFunction } from '../../not-implemented-function';
17
+ export declare class ForecastEtsSeasonality extends NotImplementedFunction {
18
+ minParams: number;
19
+ maxParams: number;
20
+ }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
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 { NotImplementedFunction } from '../../not-implemented-function';
17
+ export declare class ForecastEtsStat extends NotImplementedFunction {
18
+ minParams: number;
19
+ maxParams: number;
20
+ }
@@ -18,6 +18,7 @@ import { BaseFunction } from '../../base-function';
18
18
  export declare class Linest extends BaseFunction {
19
19
  minParams: number;
20
20
  maxParams: number;
21
+ returnsLegacyArrayAsScalar: boolean;
21
22
  calculate(knownYs: BaseValueObject, knownXs?: BaseValueObject, constb?: BaseValueObject, stats?: BaseValueObject): BaseValueObject;
22
23
  private _getResult;
23
24
  private _getResultByMultipleVariables;