@univerjs/engine-formula 0.1.9 → 0.1.11
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 +7758 -7333
- package/lib/types/basics/function.d.ts +16 -16
- package/lib/types/commands/mutations/set-array-formula-data.mutation.d.ts +1 -1
- package/lib/types/commands/mutations/set-feature-calculation.mutation.d.ts +1 -1
- package/lib/types/commands/mutations/set-formula-calculation.mutation.d.ts +2 -2
- package/lib/types/commands/mutations/set-formula-data.mutation.d.ts +1 -1
- package/lib/types/commands/mutations/set-other-formula.mutation.d.ts +1 -1
- package/lib/types/commands/mutations/set-super-table.mutation.d.ts +2 -2
- package/lib/types/controller/calculate.controller.d.ts +2 -2
- package/lib/types/controller/formula.controller.d.ts +4 -4
- package/lib/types/controller/register-function.controller.d.ts +2 -2
- package/lib/types/controller/set-defined-name.controller.d.ts +1 -1
- package/lib/types/controller/set-dependency.controller.d.ts +1 -1
- package/lib/types/controller/set-feature-calculation.controller.d.ts +1 -1
- package/lib/types/controller/set-other-formula.controller.d.ts +2 -2
- package/lib/types/controller/set-super-table.controller.d.ts +1 -1
- package/lib/types/engine/analysis/__tests__/create-command-test-bed.d.ts +2 -2
- package/lib/types/engine/analysis/lexer-node.d.ts +1 -1
- package/lib/types/engine/analysis/lexer-tree-builder.d.ts +4 -4
- package/lib/types/engine/analysis/lexer.d.ts +4 -4
- package/lib/types/engine/analysis/parser.d.ts +13 -13
- package/lib/types/engine/ast-node/ast-root-node.d.ts +3 -3
- package/lib/types/engine/ast-node/base-ast-node-factory.d.ts +4 -4
- package/lib/types/engine/ast-node/base-ast-node.d.ts +5 -5
- package/lib/types/engine/ast-node/function-node.d.ts +10 -10
- package/lib/types/engine/ast-node/lambda-node.d.ts +5 -5
- package/lib/types/engine/ast-node/lambda-parameter-node.d.ts +3 -3
- package/lib/types/engine/ast-node/null-node.d.ts +1 -1
- package/lib/types/engine/ast-node/operator-node.d.ts +5 -5
- package/lib/types/engine/ast-node/prefix-node.d.ts +7 -7
- package/lib/types/engine/ast-node/reference-node.d.ts +8 -8
- package/lib/types/engine/ast-node/suffix-node.d.ts +6 -6
- package/lib/types/engine/ast-node/union-node.d.ts +4 -4
- package/lib/types/engine/ast-node/value-node.d.ts +3 -3
- package/lib/types/engine/dependency/dependency-tree.d.ts +2 -2
- package/lib/types/engine/dependency/formula-dependency.d.ts +10 -12
- package/lib/types/engine/interpreter/interpreter.d.ts +4 -5
- package/lib/types/engine/reference-object/base-reference-object.d.ts +6 -6
- package/lib/types/engine/reference-object/cell-reference-object.d.ts +3 -3
- package/lib/types/engine/reference-object/column-reference-object.d.ts +1 -1
- package/lib/types/engine/reference-object/range-reference-object.d.ts +1 -1
- package/lib/types/engine/reference-object/row-reference-object.d.ts +1 -1
- package/lib/types/engine/reference-object/table-reference-object.d.ts +1 -1
- package/lib/types/engine/utils/array-object.d.ts +1 -1
- package/lib/types/engine/utils/ast-node-tool.d.ts +1 -1
- package/lib/types/engine/utils/node-type.d.ts +3 -3
- package/lib/types/engine/utils/numfmt-kit.d.ts +63 -0
- package/lib/types/engine/utils/object-compare.d.ts +1 -1
- package/lib/types/engine/utils/prefixHandler.d.ts +3 -3
- package/lib/types/engine/utils/value-object.d.ts +3 -3
- package/lib/types/engine/value-object/array-value-object.d.ts +4 -4
- package/lib/types/engine/value-object/base-value-object.d.ts +5 -5
- package/lib/types/engine/value-object/cube-value-object.d.ts +2 -2
- package/lib/types/engine/value-object/lambda-value-object.d.ts +3 -3
- package/lib/types/engine/value-object/primitive-object.d.ts +3 -3
- package/lib/types/functions/__tests__/create-function-test-bed.d.ts +3 -3
- package/lib/types/functions/base-function.d.ts +15 -7
- package/lib/types/functions/compatibility/function-map.d.ts +1 -1
- package/lib/types/functions/date/date/index.d.ts +3 -1
- package/lib/types/functions/date/day/index.d.ts +3 -1
- package/lib/types/functions/date/edate/index.d.ts +3 -1
- package/lib/types/functions/date/function-map.d.ts +1 -1
- package/lib/types/functions/date/month/index.d.ts +3 -1
- package/lib/types/functions/date/today/index.d.ts +5 -3
- package/lib/types/functions/date/year/index.d.ts +3 -1
- package/lib/types/functions/information/function-map.d.ts +1 -1
- package/lib/types/functions/information/isblank/index.d.ts +3 -1
- package/lib/types/functions/information/iserr/index.d.ts +3 -1
- package/lib/types/functions/information/iserror/index.d.ts +3 -1
- package/lib/types/functions/information/iseven/iseven.d.ts +4 -2
- package/lib/types/functions/information/islogical/index.d.ts +3 -1
- package/lib/types/functions/information/isna/index.d.ts +3 -1
- package/lib/types/functions/information/isnontext/index.d.ts +3 -1
- package/lib/types/functions/information/isnumber/index.d.ts +3 -1
- package/lib/types/functions/information/isodd/__tests__/isodd.spec.d.ts +16 -0
- package/lib/types/functions/information/isodd/isodd.d.ts +4 -2
- package/lib/types/functions/information/isref/index.d.ts +5 -3
- package/lib/types/functions/information/istext/index.d.ts +3 -1
- package/lib/types/functions/logical/and/index.d.ts +3 -1
- package/lib/types/functions/logical/function-map.d.ts +3 -3
- package/lib/types/functions/logical/if/index.d.ts +3 -1
- package/lib/types/functions/logical/iferror/index.d.ts +4 -2
- package/lib/types/functions/logical/lambda/index.d.ts +3 -1
- package/lib/types/functions/logical/makearray/index.d.ts +4 -2
- package/lib/types/functions/logical/or/index.d.ts +3 -1
- package/lib/types/functions/lookup/address/index.d.ts +3 -1
- package/lib/types/functions/lookup/column/index.d.ts +4 -2
- package/lib/types/functions/lookup/columns/index.d.ts +4 -2
- package/lib/types/functions/lookup/function-map.d.ts +10 -10
- package/lib/types/functions/lookup/hlookup/index.d.ts +3 -1
- package/lib/types/functions/lookup/index/index.d.ts +6 -2
- package/lib/types/functions/lookup/indirect/index.d.ts +4 -2
- package/lib/types/functions/lookup/lookup/index.d.ts +4 -2
- package/lib/types/functions/lookup/match/index.d.ts +4 -2
- package/lib/types/functions/lookup/offset/index.d.ts +3 -1
- package/lib/types/functions/lookup/row/index.d.ts +4 -2
- package/lib/types/functions/lookup/rows/index.d.ts +4 -2
- package/lib/types/functions/lookup/vlookup/index.d.ts +4 -2
- package/lib/types/functions/lookup/xlookup/index.d.ts +4 -2
- package/lib/types/functions/lookup/xmatch/index.d.ts +4 -2
- package/lib/types/functions/math/abs/index.d.ts +3 -1
- package/lib/types/functions/math/acos/index.d.ts +3 -1
- package/lib/types/functions/math/acosh/index.d.ts +3 -1
- package/lib/types/functions/math/acot/index.d.ts +3 -1
- package/lib/types/functions/math/function-map.d.ts +3 -3
- package/lib/types/functions/math/mod/index.d.ts +3 -1
- package/lib/types/functions/math/power/index.d.ts +3 -1
- package/lib/types/functions/math/product/index.d.ts +3 -1
- package/lib/types/functions/math/subtotal/index.d.ts +4 -2
- package/lib/types/functions/math/sum/index.d.ts +3 -1
- package/lib/types/functions/math/sumif/index.d.ts +3 -1
- package/lib/types/functions/math/sumifs/index.d.ts +4 -2
- package/lib/types/functions/meta/compare/index.d.ts +4 -2
- package/lib/types/functions/meta/cube/index.d.ts +3 -1
- package/lib/types/functions/meta/divided/index.d.ts +3 -1
- package/lib/types/functions/meta/function-map.d.ts +1 -1
- package/lib/types/functions/meta/minus/index.d.ts +3 -1
- package/lib/types/functions/meta/multiply/index.d.ts +3 -1
- package/lib/types/functions/meta/plus/index.d.ts +3 -1
- package/lib/types/functions/statistical/average/index.d.ts +3 -1
- package/lib/types/functions/statistical/count/index.d.ts +3 -1
- package/lib/types/functions/statistical/counta/index.d.ts +3 -1
- package/lib/types/functions/statistical/function-map.d.ts +1 -1
- package/lib/types/functions/statistical/max/index.d.ts +3 -1
- package/lib/types/functions/statistical/maxifs/index.d.ts +4 -2
- package/lib/types/functions/statistical/min/index.d.ts +3 -1
- package/lib/types/functions/statistical/stdev-p/index.d.ts +3 -1
- package/lib/types/functions/statistical/stdev-s/index.d.ts +3 -1
- package/lib/types/functions/statistical/stdeva/index.d.ts +3 -1
- package/lib/types/functions/statistical/stdevpa/index.d.ts +3 -1
- package/lib/types/functions/statistical/var-p/index.d.ts +3 -1
- package/lib/types/functions/statistical/var-s/index.d.ts +3 -1
- package/lib/types/functions/statistical/vara/index.d.ts +3 -1
- package/lib/types/functions/statistical/varpa/index.d.ts +3 -1
- package/lib/types/functions/text/concatenate/index.d.ts +3 -1
- package/lib/types/functions/text/function-map.d.ts +1 -1
- package/lib/types/functions/text/len/index.d.ts +3 -1
- package/lib/types/functions/text/lenb/index.d.ts +3 -1
- package/lib/types/functions/text/lower/index.d.ts +3 -1
- package/lib/types/functions/text/text/index.d.ts +3 -1
- package/lib/types/index.d.ts +1 -0
- package/lib/types/models/__tests__/create-command-test-bed.d.ts +1 -1
- package/lib/types/models/formula-data.model.d.ts +9 -8
- package/lib/types/models/utils/formula-data-util.d.ts +1 -1
- package/lib/types/plugin.d.ts +3 -3
- package/lib/types/services/active-dirty-manager.service.d.ts +1 -1
- package/lib/types/services/calculate-formula.service.d.ts +8 -9
- package/lib/types/services/current-data.service.d.ts +1 -1
- package/lib/types/services/defined-names.service.d.ts +1 -1
- package/lib/types/services/dependency-manager.service.d.ts +1 -1
- package/lib/types/services/feature-calculation-manager.service.d.ts +2 -2
- package/lib/types/services/function.service.d.ts +5 -4
- package/lib/types/services/other-formula-manager.service.d.ts +1 -1
- package/lib/types/services/runtime.service.d.ts +4 -4
- package/lib/types/services/super-table.service.d.ts +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +8 -8
- /package/lib/types/{functions/information/iseven/iseven.spec.d.ts → engine/utils/__tests__/numfmt-kit.spec.d.ts} +0 -0
- /package/lib/types/functions/information/{isodd/isodd.spec.d.ts → iseven/__tests__/iseven.spec.d.ts} +0 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { ICellData, Nullable, Styles } from '@univerjs/core';
|
|
2
|
+
import { operatorToken } from '../../basics/token';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Handling number formats in styles
|
|
6
|
+
*
|
|
7
|
+
* @param oldCell
|
|
8
|
+
* @param cell
|
|
9
|
+
*/
|
|
10
|
+
export declare function handleNumfmtInCell(oldCell: Nullable<ICellData>, cell: Nullable<ICellData>, styles: Styles | undefined): Nullable<ICellData>;
|
|
11
|
+
/**
|
|
12
|
+
* Process the priority of the newly set number format and the original format.
|
|
13
|
+
*
|
|
14
|
+
* Here is the priority of the number format in Excel:
|
|
15
|
+
* ┌─────────────────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
|
|
16
|
+
* │ │ new format │
|
|
17
|
+
* ├─────────────────┼────────────┬────────────┬────────────┬────────────┬──────────┬──────────┬────────────┬──────────┬────────────┬──────────┬────────────┬───────────┤
|
|
18
|
+
* │ Original format │ General │ Number │ Currency │ Accounting │ Date │ Time │ Percentage │ Fraction │ Scientific │ Text │ Special │ Custom │
|
|
19
|
+
* ├─────────────────┼────────────┼────────────┼────────────┼────────────┼──────────┼──────────┼────────────┼──────────┼────────────┼──────────┼────────────┼───────────┤
|
|
20
|
+
* │ General │ General │ Number │ Currency │ Accounting │ Date │ Time │ Percentage │ Fraction │ Scientific │ Text │ Special │ Custom │
|
|
21
|
+
* │ Number │ Number │ Number │ Number │ Number │ Number │ Number │ Number │ Number │ Number │ Number │ Number │ Number │
|
|
22
|
+
* │ Currency │ Currency │ Currency │ Currency │ Currency │ Currency │ Currency │ Currency │ Currency │ Currency │ Currency │ Currency │ Currency │
|
|
23
|
+
* │ Accounting │ Accounting │ Accounting │ Accounting │ Accounting │ Date │ Time │ Percentage │ Fraction │ Scientific │ Text │ Accounting │ Custom │
|
|
24
|
+
* │ Date │ Date │ Date │ Currency │ Accounting │ Date │ Time │ Percentage │ Fraction │ Scientific │ Text │ Date │ Custom │
|
|
25
|
+
* │ Time │ Time │ Time │ Time │ Time │ Time │ Time │ Time │ Time │ Time │ Time │ Time │ Time │
|
|
26
|
+
* │ Percentage │ Percentage │ Percentage │ Currency │ Accounting │ Date │ Time │ Percentage │ Fraction │ Scientific │ Text │ Percentage │ Custom │
|
|
27
|
+
* │ Fraction │ Fraction │ Fraction │ Currency │ Accounting │ Date │ Time │ Percentage │ Fraction │ Scientific │ Text │ Fraction │ Custom │
|
|
28
|
+
* │ Scientific │ Scientific │ Scientific │ Currency │ Accounting │ Date │ Time │ Percentage │ Fraction │ Scientific │ Text │ Scientific │ Custom │
|
|
29
|
+
* │ Text │ Text │ Text │ Text │ Text │ Text │ Text │ Text │ Text │ Text │ Text │ Text │ Text │
|
|
30
|
+
* │ Special │ Special │ Special │ Special │ Special │ Special │ Special │ Special │ Special │ Special │ Special │ Special │ Special │
|
|
31
|
+
* │ Custom │ Custom │ Custom │ Currency │ Accounting │ Date │ Custom │ Percentage │ Fraction │ Scientific │ Text │ Custom │ Custom │
|
|
32
|
+
* └─────────────────┴────────────┴────────────┴────────────┴────────────┴──────────┴──────────┴────────────┴──────────┴────────────┴──────────┴────────────┴───────────┘
|
|
33
|
+
*
|
|
34
|
+
* The number formats supported by Univer are different from Excel, so it only processes the parts that are the same as Excel. For different parts, we consider the newly set number format to have a higher priority.
|
|
35
|
+
*
|
|
36
|
+
* In the future, if Univer completely matches Excel, we will implement Excel’s priority rules.
|
|
37
|
+
*
|
|
38
|
+
* @param oldPattern
|
|
39
|
+
* @param pattern
|
|
40
|
+
* @returns
|
|
41
|
+
*/
|
|
42
|
+
export declare function compareNumfmtPriority(oldPattern: string, pattern: string): string;
|
|
43
|
+
/**
|
|
44
|
+
* The number format of the formula inherits the number format of the referenced cell, usually taking the format of the cell at the front position, but some formats have higher priority, there are some special cases.
|
|
45
|
+
*
|
|
46
|
+
* e.g.
|
|
47
|
+
* Currency * Currency = General
|
|
48
|
+
* Currency / Currency = General
|
|
49
|
+
*
|
|
50
|
+
* For two cells with the same number format, the calculated result should inherit the following number format
|
|
51
|
+
* ┌─────┬─────────┬──────────┬────────────┬─────────┬─────────┬────────────┬──────────┬────────────┬──────┬─────────┬──────────┐
|
|
52
|
+
* │ │ Number │ Currency │ Accounting │ Date │ Time │ Percentage │ Fraction │ Scientific │ Text │ Special │ Custom │
|
|
53
|
+
* ├─────┼─────────┼──────────┼────────────┼─────────┼─────────┼────────────┼──────────┼────────────┼──────┼─────────┼──────────┤
|
|
54
|
+
* │ + │ Number │ Currency │ Accounting │ General │ Time │ Percentage │ Fraction │ Scientific │ Text │ Special │ General │
|
|
55
|
+
* │ - │ Number │ Currency │ Accounting │ General │ Time │ Percentage │ Fraction │ Scientific │ Text │ Special │ General │
|
|
56
|
+
* │ * │ General │ General │ General │ General │ General │ Percentage │ Fraction │ Scientific │ Text │ General │ General │
|
|
57
|
+
* │ / │ General │ General │ General │ General │ General │ Percentage │ Fraction │ Scientific │ Text │ General │ General │
|
|
58
|
+
* └─────┴─────────┴──────────┴────────────┴─────────┴─────────┴────────────┴──────────┴────────────┴──────┴─────────┴──────────┘
|
|
59
|
+
*
|
|
60
|
+
* @param previousPattern
|
|
61
|
+
* @param nextPattern
|
|
62
|
+
*/
|
|
63
|
+
export declare function comparePatternPriority(previousPattern: string, nextPattern: string, operator: operatorToken): string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseValueObject } from '../value-object/base-value-object';
|
|
2
1
|
import { compareToken } from '../../basics/token';
|
|
2
|
+
import { BaseValueObject } from '../value-object/base-value-object';
|
|
3
3
|
|
|
4
4
|
export declare function findCompareToken(str: string): [compareToken, BaseValueObject];
|
|
5
5
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { PrefixNode } from '../ast-node/prefix-node';
|
|
2
|
-
import { IFunctionService } from '../../services/function.service';
|
|
3
|
-
import { Nullable } from '@univerjs/core';
|
|
4
1
|
import { Injector } from '@wendellhu/redi';
|
|
2
|
+
import { Nullable } from '@univerjs/core';
|
|
3
|
+
import { IFunctionService } from '../../services/function.service';
|
|
4
|
+
import { PrefixNode } from '../ast-node/prefix-node';
|
|
5
5
|
|
|
6
6
|
export declare function prefixHandler(tokenTrim: string, functionService: IFunctionService, injector: Injector): {
|
|
7
7
|
tokenTrim: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { NumberValueObject } from '../value-object/primitive-object';
|
|
2
|
-
import { BaseValueObject } from '../value-object/base-value-object';
|
|
3
|
-
import { FunctionVariantType } from '../reference-object/base-reference-object';
|
|
4
1
|
import { ICellData, Nullable } from '@univerjs/core';
|
|
2
|
+
import { FunctionVariantType } from '../reference-object/base-reference-object';
|
|
3
|
+
import { BaseValueObject } from '../value-object/base-value-object';
|
|
4
|
+
import { NumberValueObject } from '../value-object/primitive-object';
|
|
5
5
|
|
|
6
6
|
export declare function convertTonNumber(valueObject: BaseValueObject): NumberValueObject;
|
|
7
7
|
export declare function isSingleValueObject(valueObject: FunctionVariantType): boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { BooleanValueObject, NullValueObject, NumberValueObject, StringValueObject } from './primitive-object';
|
|
2
|
-
import { callbackMapFnType, IArrayValueObject, BaseValueObject, ErrorValueObject } from './base-value-object';
|
|
3
|
-
import { ArrayBinarySearchType, ArrayOrderSearchType } from '../utils/compare';
|
|
4
|
-
import { compareToken } from '../../basics/token';
|
|
5
1
|
import { Nullable } from '@univerjs/core';
|
|
2
|
+
import { compareToken } from '../../basics/token';
|
|
3
|
+
import { ArrayBinarySearchType, ArrayOrderSearchType } from '../utils/compare';
|
|
4
|
+
import { callbackMapFnType, IArrayValueObject, BaseValueObject, ErrorValueObject } from './base-value-object';
|
|
5
|
+
import { BooleanValueObject, NullValueObject, NumberValueObject, StringValueObject } from './primitive-object';
|
|
6
6
|
|
|
7
7
|
export declare function fromObjectToString(array: IArrayValueObject): string;
|
|
8
8
|
export declare function transformToValueObject(array?: Array<Array<number | string | boolean | null>>): BaseValueObject[][];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { compareToken } from '../../basics/token';
|
|
2
|
-
import { ObjectClassType } from '../../basics/object-class-type';
|
|
3
|
-
import { ErrorType } from '../../basics/error-type';
|
|
4
|
-
import { ConcatenateType } from '../../basics/common';
|
|
5
|
-
import { FormulaAstLRU } from '../../basics/cache-lru';
|
|
6
1
|
import { Nullable } from '@univerjs/core';
|
|
2
|
+
import { FormulaAstLRU } from '../../basics/cache-lru';
|
|
3
|
+
import { ConcatenateType } from '../../basics/common';
|
|
4
|
+
import { ErrorType } from '../../basics/error-type';
|
|
5
|
+
import { ObjectClassType } from '../../basics/object-class-type';
|
|
6
|
+
import { compareToken } from '../../basics/token';
|
|
7
7
|
|
|
8
8
|
export type callbackMapFnType = (currentValue: BaseValueObject, row: number, column: number) => BaseValueObject;
|
|
9
9
|
export interface IArrayValueObject {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { NumberValueObject } from './primitive-object';
|
|
2
|
-
import { BaseValueObject } from './base-value-object';
|
|
3
1
|
import { ArrayValueObject } from './array-value-object';
|
|
2
|
+
import { BaseValueObject } from './base-value-object';
|
|
3
|
+
import { NumberValueObject } from './primitive-object';
|
|
4
4
|
|
|
5
5
|
export declare class CubeValueObject extends BaseValueObject {
|
|
6
6
|
static create(values: ArrayValueObject[]): CubeValueObject;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BaseValueObject } from './base-value-object';
|
|
2
|
-
import { AsyncObject } from '../reference-object/base-reference-object';
|
|
3
|
-
import { Interpreter } from '../interpreter/interpreter';
|
|
4
1
|
import { BaseAstNode } from '../ast-node/base-ast-node';
|
|
2
|
+
import { Interpreter } from '../interpreter/interpreter';
|
|
3
|
+
import { AsyncObject } from '../reference-object/base-reference-object';
|
|
4
|
+
import { BaseValueObject } from './base-value-object';
|
|
5
5
|
|
|
6
6
|
export declare class LambdaValueObjectObject extends BaseValueObject {
|
|
7
7
|
private _lambdaNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BaseValueObject, ErrorValueObject } from './base-value-object';
|
|
2
|
-
import { FormulaAstLRU } from '../../basics/cache-lru';
|
|
3
1
|
import { compareToken } from '../../basics/token';
|
|
2
|
+
import { FormulaAstLRU } from '../../basics/cache-lru';
|
|
3
|
+
import { BaseValueObject, ErrorValueObject } from './base-value-object';
|
|
4
4
|
|
|
5
5
|
export type PrimitiveValueType = string | boolean | number | null;
|
|
6
6
|
export declare class NullValueObject extends BaseValueObject {
|
|
@@ -90,7 +90,7 @@ export declare class BooleanValueObject extends BaseValueObject {
|
|
|
90
90
|
export declare const NumberValueObjectCache: FormulaAstLRU<NumberValueObject>;
|
|
91
91
|
export declare class NumberValueObject extends BaseValueObject {
|
|
92
92
|
private _value;
|
|
93
|
-
static create(value: number
|
|
93
|
+
static create(value: number): NumberValueObject;
|
|
94
94
|
constructor(rawValue: number);
|
|
95
95
|
getValue(): number;
|
|
96
96
|
setValue(value: number): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FunctionVariantType } from '../../engine/reference-object/base-reference-object';
|
|
2
|
-
import { ISheetData } from '../../basics/common';
|
|
3
|
-
import { Dependency } from '@wendellhu/redi';
|
|
4
1
|
import { IWorkbookData, Workbook, Univer } from '@univerjs/core';
|
|
2
|
+
import { Dependency } from '@wendellhu/redi';
|
|
3
|
+
import { ISheetData } from '../../basics/common';
|
|
4
|
+
import { FunctionVariantType } from '../../engine/reference-object/base-reference-object';
|
|
5
5
|
|
|
6
6
|
export declare function createFunctionTestBed(workbookData?: IWorkbookData, dependencies?: Dependency[]): {
|
|
7
7
|
univer: Univer;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { IDefinedNameMapItem } from '../services/defined-names.service';
|
|
2
|
-
import { PrimitiveValueType } from '../engine/value-object/primitive-object';
|
|
3
|
-
import { BaseValueObject, ErrorValueObject } from '../engine/value-object/base-value-object';
|
|
4
|
-
import { ArrayValueObject } from '../engine/value-object/array-value-object';
|
|
5
|
-
import { ArrayBinarySearchType, ArrayOrderSearchType } from '../engine/utils/compare';
|
|
6
|
-
import { BaseReferenceObject, FunctionVariantType, NodeValueType } from '../engine/reference-object/base-reference-object';
|
|
7
|
-
import { IFunctionNames } from '../basics/function';
|
|
8
1
|
import { IRange, Nullable, Disposable } from '@univerjs/core';
|
|
2
|
+
import { IFunctionNames } from '../basics/function';
|
|
3
|
+
import { BaseReferenceObject, FunctionVariantType, NodeValueType } from '../engine/reference-object/base-reference-object';
|
|
4
|
+
import { ArrayBinarySearchType, ArrayOrderSearchType } from '../engine/utils/compare';
|
|
5
|
+
import { ArrayValueObject } from '../engine/value-object/array-value-object';
|
|
6
|
+
import { BaseValueObject, ErrorValueObject } from '../engine/value-object/base-value-object';
|
|
7
|
+
import { PrimitiveValueType } from '../engine/value-object/primitive-object';
|
|
8
|
+
import { IDefinedNameMapItem } from '../services/defined-names.service';
|
|
9
9
|
|
|
10
10
|
export declare class BaseFunction extends Disposable {
|
|
11
11
|
private _name;
|
|
@@ -22,6 +22,14 @@ export declare class BaseFunction extends Disposable {
|
|
|
22
22
|
* Whether the function needs to pass in reference object
|
|
23
23
|
*/
|
|
24
24
|
needsReferenceObject: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Minimum number of parameters
|
|
27
|
+
*/
|
|
28
|
+
minParams: number;
|
|
29
|
+
/**
|
|
30
|
+
* Maximum number of parameters
|
|
31
|
+
*/
|
|
32
|
+
maxParams: number;
|
|
25
33
|
constructor(_name: IFunctionNames);
|
|
26
34
|
get name(): IFunctionNames;
|
|
27
35
|
get unitId(): Nullable<string>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FUNCTION_NAMES_COMPATIBILITY } from './function-names';
|
|
2
1
|
import { StdevS } from '../statistical/stdev-s';
|
|
2
|
+
import { FUNCTION_NAMES_COMPATIBILITY } from './function-names';
|
|
3
3
|
|
|
4
4
|
export declare const functionCompatibility: (FUNCTION_NAMES_COMPATIBILITY | typeof StdevS)[][];
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { BaseFunction } from '../../base-function';
|
|
2
1
|
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
3
|
|
|
4
4
|
export declare class DateFunction extends BaseFunction {
|
|
5
|
+
minParams: number;
|
|
6
|
+
maxParams: number;
|
|
5
7
|
calculate(year: BaseValueObject, month: BaseValueObject, day: BaseValueObject): BaseValueObject;
|
|
6
8
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { BaseFunction } from '../../base-function';
|
|
2
1
|
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
3
|
|
|
4
4
|
export declare class Day extends BaseFunction {
|
|
5
|
+
minParams: number;
|
|
6
|
+
maxParams: number;
|
|
5
7
|
calculate(serialNumber: BaseValueObject): BaseValueObject;
|
|
6
8
|
private _handleSingleObject;
|
|
7
9
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { BaseFunction } from '../../base-function';
|
|
2
1
|
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* TODO@Dushusir: support plaine text date: =EDATE("2020-1-1",1), =EDATE("2020/1/1",1) and other formats
|
|
6
6
|
*/
|
|
7
7
|
export declare class Edate extends BaseFunction {
|
|
8
|
+
minParams: number;
|
|
9
|
+
maxParams: number;
|
|
8
10
|
calculate(startDate: BaseValueObject, months: BaseValueObject): BaseValueObject;
|
|
9
11
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { BaseFunction } from '../../base-function';
|
|
2
1
|
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
3
|
|
|
4
4
|
export declare class Month extends BaseFunction {
|
|
5
|
+
minParams: number;
|
|
6
|
+
maxParams: number;
|
|
5
7
|
calculate(serialNumber: BaseValueObject): BaseValueObject;
|
|
6
8
|
private _handleSingleObject;
|
|
7
9
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
2
|
import { NumberValueObject } from '../../../engine/value-object/primitive-object';
|
|
3
|
-
import {
|
|
3
|
+
import { BaseFunction } from '../../base-function';
|
|
4
4
|
|
|
5
5
|
export declare class Today extends BaseFunction {
|
|
6
|
-
|
|
6
|
+
minParams: number;
|
|
7
|
+
maxParams: number;
|
|
8
|
+
calculate(value?: BaseValueObject): NumberValueObject;
|
|
7
9
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { BaseFunction } from '../../base-function';
|
|
2
1
|
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
3
|
|
|
4
4
|
export declare class Year extends BaseFunction {
|
|
5
|
+
minParams: number;
|
|
6
|
+
maxParams: number;
|
|
5
7
|
calculate(serialNumber: BaseValueObject): BaseValueObject;
|
|
6
8
|
private _handleSingleObject;
|
|
7
9
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { BaseFunction } from '../../base-function';
|
|
2
1
|
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
3
|
|
|
4
4
|
export declare class Isblank extends BaseFunction {
|
|
5
|
+
minParams: number;
|
|
6
|
+
maxParams: number;
|
|
5
7
|
calculate(value: BaseValueObject): BaseValueObject;
|
|
6
8
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { BaseFunction } from '../../base-function';
|
|
2
1
|
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
3
|
|
|
4
4
|
export declare class Iserr extends BaseFunction {
|
|
5
|
+
minParams: number;
|
|
6
|
+
maxParams: number;
|
|
5
7
|
calculate(value: BaseValueObject): BaseValueObject;
|
|
6
8
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { BaseFunction } from '../../base-function';
|
|
2
1
|
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
3
|
|
|
4
4
|
export declare class Iserror extends BaseFunction {
|
|
5
|
+
minParams: number;
|
|
6
|
+
maxParams: number;
|
|
5
7
|
calculate(value: BaseValueObject): BaseValueObject;
|
|
6
8
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { BaseFunction } from '../../base-function';
|
|
2
|
-
import { BooleanValueObject } from '../../../engine/value-object/primitive-object';
|
|
3
1
|
import { BaseValueObject, ErrorValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BooleanValueObject } from '../../../engine/value-object/primitive-object';
|
|
3
|
+
import { BaseFunction } from '../../base-function';
|
|
4
4
|
|
|
5
5
|
export declare class Iseven extends BaseFunction {
|
|
6
|
+
minParams: number;
|
|
7
|
+
maxParams: number;
|
|
6
8
|
calculate(value: BaseValueObject): ErrorValueObject | BooleanValueObject;
|
|
7
9
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { BaseFunction } from '../../base-function';
|
|
2
1
|
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
3
|
|
|
4
4
|
export declare class Islogical extends BaseFunction {
|
|
5
|
+
minParams: number;
|
|
6
|
+
maxParams: number;
|
|
5
7
|
calculate(value: BaseValueObject): BaseValueObject;
|
|
6
8
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { BaseFunction } from '../../base-function';
|
|
2
1
|
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
3
|
|
|
4
4
|
export declare class Isna extends BaseFunction {
|
|
5
|
+
minParams: number;
|
|
6
|
+
maxParams: number;
|
|
5
7
|
calculate(value: BaseValueObject): BaseValueObject;
|
|
6
8
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { BaseFunction } from '../../base-function';
|
|
2
1
|
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
3
|
|
|
4
4
|
export declare class Isnontext extends BaseFunction {
|
|
5
|
+
minParams: number;
|
|
6
|
+
maxParams: number;
|
|
5
7
|
calculate(value: BaseValueObject): BaseValueObject;
|
|
6
8
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { BaseFunction } from '../../base-function';
|
|
2
1
|
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
3
|
|
|
4
4
|
export declare class Isnumber extends BaseFunction {
|
|
5
|
+
minParams: number;
|
|
6
|
+
maxParams: number;
|
|
5
7
|
calculate(value: BaseValueObject): BaseValueObject;
|
|
6
8
|
}
|
|
@@ -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 {};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { BaseFunction } from '../../base-function';
|
|
2
|
-
import { BooleanValueObject } from '../../../engine/value-object/primitive-object';
|
|
3
1
|
import { BaseValueObject, ErrorValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BooleanValueObject } from '../../../engine/value-object/primitive-object';
|
|
3
|
+
import { BaseFunction } from '../../base-function';
|
|
4
4
|
|
|
5
5
|
export declare class Isodd extends BaseFunction {
|
|
6
|
+
minParams: number;
|
|
7
|
+
maxParams: number;
|
|
6
8
|
calculate(value: BaseValueObject): ErrorValueObject | BooleanValueObject;
|
|
7
9
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
2
|
import { BooleanValueObject } from '../../../engine/value-object/primitive-object';
|
|
3
|
-
import {
|
|
3
|
+
import { BaseFunction } from '../../base-function';
|
|
4
4
|
|
|
5
5
|
export declare class Isref extends BaseFunction {
|
|
6
|
+
minParams: number;
|
|
7
|
+
maxParams: number;
|
|
6
8
|
needsReferenceObject: boolean;
|
|
7
|
-
calculate(value: BaseValueObject):
|
|
9
|
+
calculate(value: BaseValueObject): BooleanValueObject;
|
|
8
10
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { BaseFunction } from '../../base-function';
|
|
2
1
|
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
3
|
|
|
4
4
|
export declare class Istext extends BaseFunction {
|
|
5
|
+
minParams: number;
|
|
6
|
+
maxParams: number;
|
|
5
7
|
calculate(value: BaseValueObject): BaseValueObject;
|
|
6
8
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { BaseFunction } from '../../base-function';
|
|
2
1
|
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
3
|
|
|
4
4
|
export declare class And extends BaseFunction {
|
|
5
|
+
minParams: number;
|
|
6
|
+
maxParams: number;
|
|
5
7
|
calculate(...logicalValues: BaseValueObject[]): BaseValueObject;
|
|
6
8
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Makearray } from './makearray';
|
|
2
|
-
import { Iferror } from './iferror';
|
|
3
|
-
import { FUNCTION_NAMES_LOGICAL } from './function-names';
|
|
4
1
|
import { And } from './and';
|
|
2
|
+
import { FUNCTION_NAMES_LOGICAL } from './function-names';
|
|
3
|
+
import { Iferror } from './iferror';
|
|
4
|
+
import { Makearray } from './makearray';
|
|
5
5
|
|
|
6
6
|
export declare const functionLogical: ((FUNCTION_NAMES_LOGICAL | typeof And)[] | (FUNCTION_NAMES_LOGICAL | typeof Makearray)[] | (FUNCTION_NAMES_LOGICAL | typeof Iferror)[])[];
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { BaseFunction } from '../../base-function';
|
|
2
1
|
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
3
|
|
|
4
4
|
export declare class If extends BaseFunction {
|
|
5
|
+
minParams: number;
|
|
6
|
+
maxParams: number;
|
|
5
7
|
calculate(logicalTest: BaseValueObject, valueIfTrue: BaseValueObject, valueIfFalse?: BaseValueObject): BaseValueObject;
|
|
6
8
|
private _getSingleValueObject;
|
|
7
9
|
private _calculateSingleCell;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { BaseFunction } from '../../base-function';
|
|
2
|
-
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
3
1
|
import { ArrayValueObject } from '../../../engine/value-object/array-value-object';
|
|
2
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
3
|
+
import { BaseFunction } from '../../base-function';
|
|
4
4
|
|
|
5
5
|
export declare class Iferror extends BaseFunction {
|
|
6
|
+
minParams: number;
|
|
7
|
+
maxParams: number;
|
|
6
8
|
calculate(value: BaseValueObject, valueIfError: BaseValueObject): BaseValueObject | ArrayValueObject;
|
|
7
9
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { BaseFunction } from '../../base-function';
|
|
2
1
|
import { BaseValueObject, ErrorValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Lambda functions are unique and are generated directly by the higher level.
|
|
6
6
|
* Please refer to the lambdaNode; here, it serves the purpose of a placeholder for the formula.
|
|
7
7
|
*/
|
|
8
8
|
export declare class Lambda extends BaseFunction {
|
|
9
|
+
minParams: number;
|
|
10
|
+
maxParams: number;
|
|
9
11
|
calculate(...variants: BaseValueObject[]): ErrorValueObject;
|
|
10
12
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { BaseFunction } from '../../base-function';
|
|
2
|
-
import { BaseValueObject, ErrorValueObject } from '../../../engine/value-object/base-value-object';
|
|
3
1
|
import { AsyncArrayObject } from '../../../engine/reference-object/base-reference-object';
|
|
2
|
+
import { BaseValueObject, ErrorValueObject } from '../../../engine/value-object/base-value-object';
|
|
3
|
+
import { BaseFunction } from '../../base-function';
|
|
4
4
|
|
|
5
5
|
export declare class Makearray extends BaseFunction {
|
|
6
|
+
minParams: number;
|
|
7
|
+
maxParams: number;
|
|
6
8
|
calculate(...variants: BaseValueObject[]): ErrorValueObject | AsyncArrayObject;
|
|
7
9
|
isAsync(): boolean;
|
|
8
10
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { BaseFunction } from '../../base-function';
|
|
2
1
|
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
3
|
|
|
4
4
|
export declare class Or extends BaseFunction {
|
|
5
|
+
minParams: number;
|
|
6
|
+
maxParams: number;
|
|
5
7
|
calculate(...logicalValues: BaseValueObject[]): BaseValueObject;
|
|
6
8
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { BaseFunction } from '../../base-function';
|
|
2
1
|
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
3
|
|
|
4
4
|
export declare class Address extends BaseFunction {
|
|
5
|
+
minParams: number;
|
|
6
|
+
maxParams: number;
|
|
5
7
|
calculate(rowNumber: BaseValueObject, columnNumber: BaseValueObject, absNumber?: BaseValueObject, a1?: BaseValueObject, sheetText?: BaseValueObject): BaseValueObject;
|
|
6
8
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { BaseFunction } from '../../base-function';
|
|
2
|
-
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
3
1
|
import { ArrayValueObject } from '../../../engine/value-object/array-value-object';
|
|
2
|
+
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
3
|
+
import { BaseFunction } from '../../base-function';
|
|
4
4
|
|
|
5
5
|
export declare class Column extends BaseFunction {
|
|
6
|
+
minParams: number;
|
|
7
|
+
maxParams: number;
|
|
6
8
|
calculate(reference?: BaseValueObject): BaseValueObject | ArrayValueObject;
|
|
7
9
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { BaseFunction } from '../../base-function';
|
|
2
1
|
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
3
|
|
|
4
4
|
export declare class Columns extends BaseFunction {
|
|
5
|
-
|
|
5
|
+
minParams: number;
|
|
6
|
+
maxParams: number;
|
|
7
|
+
calculate(reference: BaseValueObject): BaseValueObject;
|
|
6
8
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Index } from './index';
|
|
2
|
-
import { Xmatch } from './xmatch';
|
|
3
|
-
import { Xlookup } from './xlookup';
|
|
4
|
-
import { Vlookup } from './vlookup';
|
|
5
|
-
import { Offset } from './offset';
|
|
6
|
-
import { Match } from './match';
|
|
7
|
-
import { Lookup } from './lookup';
|
|
8
|
-
import { Indirect } from './indirect';
|
|
9
|
-
import { FUNCTION_NAMES_LOOKUP } from './function-names';
|
|
10
|
-
import { Column } from './column';
|
|
11
1
|
import { Address } from './address';
|
|
2
|
+
import { Column } from './column';
|
|
3
|
+
import { FUNCTION_NAMES_LOOKUP } from './function-names';
|
|
4
|
+
import { Indirect } from './indirect';
|
|
5
|
+
import { Lookup } from './lookup';
|
|
6
|
+
import { Match } from './match';
|
|
7
|
+
import { Offset } from './offset';
|
|
8
|
+
import { Vlookup } from './vlookup';
|
|
9
|
+
import { Xlookup } from './xlookup';
|
|
10
|
+
import { Xmatch } from './xmatch';
|
|
11
|
+
import { Index } from './index';
|
|
12
12
|
|
|
13
13
|
export declare const functionLookup: ((FUNCTION_NAMES_LOOKUP | typeof Address)[] | (FUNCTION_NAMES_LOOKUP | typeof Column)[] | (FUNCTION_NAMES_LOOKUP | typeof Index)[] | (FUNCTION_NAMES_LOOKUP | typeof Indirect)[] | (FUNCTION_NAMES_LOOKUP | typeof Offset)[] | (FUNCTION_NAMES_LOOKUP | typeof Vlookup)[] | (FUNCTION_NAMES_LOOKUP | typeof Lookup)[] | (FUNCTION_NAMES_LOOKUP | typeof Match)[] | (FUNCTION_NAMES_LOOKUP | typeof Xlookup)[] | (FUNCTION_NAMES_LOOKUP | typeof Xmatch)[])[];
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { BaseFunction } from '../../base-function';
|
|
2
1
|
import { BaseValueObject } from '../../../engine/value-object/base-value-object';
|
|
2
|
+
import { BaseFunction } from '../../base-function';
|
|
3
3
|
|
|
4
4
|
export declare class Hlookup extends BaseFunction {
|
|
5
|
+
minParams: number;
|
|
6
|
+
maxParams: number;
|
|
5
7
|
calculate(lookupValue: BaseValueObject, tableArray: BaseValueObject, rowIndexNum: BaseValueObject, rangeLookup?: BaseValueObject): BaseValueObject;
|
|
6
8
|
private _handleSingleObject;
|
|
7
9
|
}
|