@univerjs/engine-formula 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +2662 -2498
- package/lib/types/basics/calculate.d.ts +1 -15
- package/lib/types/basics/common.d.ts +11 -17
- package/lib/types/basics/dirty.d.ts +2 -16
- package/lib/types/basics/function.d.ts +18 -32
- package/lib/types/basics/match-token.d.ts +1 -15
- package/lib/types/basics/object-class-type.d.ts +2 -15
- package/lib/types/basics/runtime.d.ts +2 -16
- package/lib/types/commands/mutations/register-function.mutation.d.ts +2 -16
- package/lib/types/commands/mutations/set-array-formula-data.mutation.d.ts +4 -18
- package/lib/types/commands/mutations/set-defined-name.mutation.d.ts +2 -16
- package/lib/types/commands/mutations/set-feature-calculation.mutation.d.ts +3 -17
- package/lib/types/commands/mutations/set-formula-calculation.mutation.d.ts +5 -18
- package/lib/types/commands/mutations/set-formula-data.mutation.d.ts +3 -17
- package/lib/types/commands/mutations/set-numfmt-formula-data.mutation.d.ts +3 -17
- package/lib/types/commands/mutations/set-other-formula.mutation.d.ts +15 -19
- package/lib/types/commands/mutations/set-super-table.mutation.d.ts +4 -18
- package/lib/types/commands/mutations/unregister-function.mutation.d.ts +2 -16
- package/lib/types/controller/calculate.controller.d.ts +3 -17
- package/lib/types/controller/formula.controller.d.ts +5 -20
- package/lib/types/controller/register-function.controller.d.ts +3 -17
- package/lib/types/controller/set-defined-name.controller.d.ts +2 -16
- package/lib/types/controller/set-feature-calculation.controller.d.ts +2 -16
- package/lib/types/controller/set-other-formula.controller.d.ts +2 -16
- package/lib/types/controller/set-super-table.controller.d.ts +2 -16
- package/lib/types/engine/analysis/__tests__/create-command-test-bed.d.ts +11 -26
- package/lib/types/engine/analysis/lexer-node.d.ts +3 -17
- package/lib/types/engine/analysis/lexer-tree-builder.d.ts +5 -19
- package/lib/types/engine/analysis/lexer.d.ts +5 -19
- package/lib/types/engine/analysis/parser.d.ts +14 -29
- package/lib/types/engine/ast-node/ast-root-node.d.ts +4 -18
- package/lib/types/engine/ast-node/base-ast-node-factory.d.ts +3 -18
- package/lib/types/engine/ast-node/base-ast-node.d.ts +6 -21
- package/lib/types/engine/ast-node/function-node.d.ts +10 -24
- package/lib/types/engine/ast-node/lambda-node.d.ts +6 -20
- package/lib/types/engine/ast-node/lambda-parameter-node.d.ts +4 -19
- package/lib/types/engine/ast-node/null-node.d.ts +2 -16
- package/lib/types/engine/ast-node/operator-node.d.ts +6 -20
- package/lib/types/engine/ast-node/prefix-node.d.ts +8 -23
- package/lib/types/engine/ast-node/reference-node.d.ts +10 -25
- package/lib/types/engine/ast-node/suffix-node.d.ts +7 -22
- package/lib/types/engine/ast-node/union-node.d.ts +5 -19
- package/lib/types/engine/ast-node/value-node.d.ts +4 -18
- package/lib/types/engine/dependency/dependency-tree.d.ts +4 -19
- package/lib/types/engine/dependency/formula-dependency.d.ts +11 -25
- package/lib/types/engine/interpreter/interpreter.d.ts +6 -20
- package/lib/types/engine/reference-object/base-reference-object.d.ts +20 -32
- package/lib/types/engine/reference-object/cell-reference-object.d.ts +4 -18
- package/lib/types/engine/reference-object/column-reference-object.d.ts +2 -16
- package/lib/types/engine/reference-object/range-reference-object.d.ts +2 -16
- package/lib/types/engine/reference-object/row-reference-object.d.ts +2 -16
- package/lib/types/engine/reference-object/table-reference-object.d.ts +2 -17
- package/lib/types/engine/utils/array-object.d.ts +3 -17
- package/lib/types/engine/utils/ast-node-tool.d.ts +3 -17
- package/lib/types/engine/utils/cell.d.ts +2 -16
- package/lib/types/engine/utils/compare.d.ts +1 -15
- package/lib/types/engine/utils/function-definition.d.ts +1 -15
- package/lib/types/engine/utils/node-type.d.ts +5 -19
- package/lib/types/engine/utils/object-compare.d.ts +2 -16
- package/lib/types/engine/utils/prefixHandler.d.ts +4 -18
- package/lib/types/engine/utils/r1c1-reference.d.ts +2 -16
- package/lib/types/engine/utils/reference.d.ts +2 -17
- package/lib/types/engine/utils/sequence.d.ts +2 -16
- package/lib/types/engine/utils/value-object.d.ts +6 -0
- package/lib/types/engine/value-object/array-value-object.d.ts +5 -20
- package/lib/types/engine/value-object/base-value-object.d.ts +6 -21
- package/lib/types/engine/value-object/cube-value-object.d.ts +3 -17
- package/lib/types/engine/value-object/lambda-value-object.d.ts +4 -18
- package/lib/types/engine/value-object/primitive-object.d.ts +3 -17
- package/lib/types/functions/__tests__/create-function-test-bed.d.ts +13 -26
- package/lib/types/functions/base-function.d.ts +8 -24
- package/lib/types/functions/compatibility/function-map.d.ts +2 -16
- package/lib/types/functions/date/date/index.d.ts +2 -16
- package/lib/types/functions/date/day/index.d.ts +2 -16
- package/lib/types/functions/date/edate/index.d.ts +2 -16
- package/lib/types/functions/date/function-map.d.ts +2 -16
- package/lib/types/functions/date/month/index.d.ts +2 -16
- package/lib/types/functions/date/today/index.d.ts +3 -18
- package/lib/types/functions/date/year/index.d.ts +2 -16
- package/lib/types/functions/information/function-map.d.ts +2 -16
- package/lib/types/functions/information/isblank/index.d.ts +2 -16
- package/lib/types/functions/information/iserr/index.d.ts +2 -16
- package/lib/types/functions/information/iserror/index.d.ts +2 -16
- package/lib/types/functions/information/islogical/index.d.ts +2 -16
- package/lib/types/functions/information/isna/index.d.ts +2 -16
- package/lib/types/functions/information/isnontext/index.d.ts +2 -16
- package/lib/types/functions/information/isnumber/index.d.ts +2 -16
- package/lib/types/functions/information/isref/index.d.ts +3 -17
- package/lib/types/functions/information/istext/index.d.ts +2 -16
- package/lib/types/functions/logical/and/index.d.ts +2 -16
- package/lib/types/functions/logical/function-map.d.ts +4 -18
- package/lib/types/functions/logical/if/index.d.ts +2 -16
- package/lib/types/functions/logical/iferror/index.d.ts +3 -17
- package/lib/types/functions/logical/lambda/index.d.ts +2 -16
- package/lib/types/functions/logical/makearray/index.d.ts +3 -17
- package/lib/types/functions/logical/or/index.d.ts +2 -16
- package/lib/types/functions/lookup/address/index.d.ts +2 -16
- package/lib/types/functions/lookup/column/index.d.ts +3 -17
- package/lib/types/functions/lookup/columns/index.d.ts +2 -16
- package/lib/types/functions/lookup/function-map.d.ts +12 -22
- package/lib/types/functions/lookup/hlookup/index.d.ts +2 -16
- package/lib/types/functions/lookup/index/index.d.ts +3 -19
- package/lib/types/functions/lookup/indirect/index.d.ts +3 -17
- package/lib/types/functions/lookup/lookup/index.d.ts +3 -17
- package/lib/types/functions/lookup/match/index.d.ts +3 -17
- package/lib/types/functions/lookup/offset/index.d.ts +4 -18
- package/lib/types/functions/lookup/row/index.d.ts +3 -17
- package/lib/types/functions/lookup/rows/index.d.ts +2 -16
- package/lib/types/functions/lookup/vlookup/index.d.ts +5 -17
- package/lib/types/functions/lookup/xlookup/index.d.ts +3 -17
- package/lib/types/functions/lookup/xmatch/index.d.ts +3 -17
- package/lib/types/functions/math/abs/index.d.ts +2 -16
- package/lib/types/functions/math/acos/index.d.ts +2 -16
- package/lib/types/functions/math/acosh/index.d.ts +2 -16
- package/lib/types/functions/math/acot/index.d.ts +2 -16
- package/lib/types/functions/math/function-map.d.ts +4 -18
- package/lib/types/functions/math/mod/index.d.ts +2 -16
- package/lib/types/functions/math/power/index.d.ts +2 -16
- package/lib/types/functions/math/product/index.d.ts +2 -16
- package/lib/types/functions/math/subtotal/index.d.ts +3 -17
- package/lib/types/functions/math/sum/index.d.ts +2 -16
- package/lib/types/functions/math/sumif/index.d.ts +2 -16
- package/lib/types/functions/math/sumifs/index.d.ts +3 -18
- package/lib/types/functions/meta/compare/index.d.ts +3 -17
- package/lib/types/functions/meta/cube/index.d.ts +2 -16
- package/lib/types/functions/meta/divided/index.d.ts +2 -16
- package/lib/types/functions/meta/function-map.d.ts +2 -16
- package/lib/types/functions/meta/minus/index.d.ts +2 -16
- package/lib/types/functions/meta/multiply/index.d.ts +2 -16
- package/lib/types/functions/meta/plus/index.d.ts +2 -16
- package/lib/types/functions/statistical/average/index.d.ts +2 -16
- package/lib/types/functions/statistical/count/index.d.ts +2 -16
- package/lib/types/functions/statistical/counta/index.d.ts +2 -16
- package/lib/types/functions/statistical/function-map.d.ts +2 -16
- package/lib/types/functions/statistical/max/index.d.ts +2 -16
- package/lib/types/functions/statistical/min/index.d.ts +2 -16
- package/lib/types/functions/statistical/stdev-p/index.d.ts +3 -17
- package/lib/types/functions/statistical/stdev-s/index.d.ts +3 -17
- package/lib/types/functions/statistical/stdeva/index.d.ts +3 -17
- package/lib/types/functions/statistical/stdevpa/index.d.ts +3 -17
- package/lib/types/functions/statistical/var-p/index.d.ts +3 -17
- package/lib/types/functions/statistical/var-s/index.d.ts +3 -17
- package/lib/types/functions/statistical/vara/index.d.ts +3 -17
- package/lib/types/functions/statistical/varpa/index.d.ts +3 -17
- package/lib/types/functions/text/concatenate/index.d.ts +2 -16
- package/lib/types/functions/text/function-map.d.ts +2 -16
- package/lib/types/functions/text/len/index.d.ts +2 -16
- package/lib/types/functions/text/lenb/index.d.ts +2 -16
- package/lib/types/functions/text/text/index.d.ts +2 -16
- package/lib/types/index.d.ts +5 -3
- package/lib/types/models/__tests__/create-command-test-bed.d.ts +10 -25
- package/lib/types/models/formula-data.model.d.ts +3 -18
- package/lib/types/plugin.d.ts +4 -19
- package/lib/types/services/active-dirty-manager.service.d.ts +34 -0
- package/lib/types/services/calculate-formula.service.d.ts +12 -27
- package/lib/types/services/current-data.service.d.ts +7 -19
- package/lib/types/services/defined-names.service.d.ts +3 -18
- package/lib/types/services/feature-calculation-manager.service.d.ts +5 -20
- package/lib/types/services/function.service.d.ts +5 -20
- package/lib/types/services/other-formula-manager.service.d.ts +8 -19
- package/lib/types/services/runtime.service.d.ts +6 -21
- package/lib/types/services/super-table.service.d.ts +4 -19
- package/lib/umd/index.js +1 -1
- package/package.json +6 -6
- package/lib/types/engine/utils/object-covert.d.ts +0 -18
- /package/lib/types/engine/utils/__tests__/{object-covert.spec.d.ts → value-object.spec.d.ts} +0 -0
|
@@ -1,29 +1,15 @@
|
|
|
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 { Disposable } from '@univerjs/core';
|
|
17
|
-
import { FormulaAstLRU } from '../../basics/cache-lru';
|
|
18
|
-
import { IFormulaCurrentConfigService } from '../../services/current-data.service';
|
|
19
|
-
import { IFeatureCalculationManagerService } from '../../services/feature-calculation-manager.service';
|
|
20
|
-
import { IOtherFormulaManagerService } from '../../services/other-formula-manager.service';
|
|
21
|
-
import { IFormulaRuntimeService } from '../../services/runtime.service';
|
|
22
|
-
import { Lexer } from '../analysis/lexer';
|
|
23
|
-
import { AstTreeBuilder } from '../analysis/parser';
|
|
24
|
-
import type { AstRootNode } from '../ast-node';
|
|
25
|
-
import { Interpreter } from '../interpreter/interpreter';
|
|
26
1
|
import { FormulaDependencyTree } from './dependency-tree';
|
|
2
|
+
import { Interpreter } from '../interpreter/interpreter';
|
|
3
|
+
import { AstRootNode } from '../ast-node';
|
|
4
|
+
import { AstTreeBuilder } from '../analysis/parser';
|
|
5
|
+
import { Lexer } from '../analysis/lexer';
|
|
6
|
+
import { IFormulaRuntimeService } from '../../services/runtime.service';
|
|
7
|
+
import { IOtherFormulaManagerService } from '../../services/other-formula-manager.service';
|
|
8
|
+
import { IFeatureCalculationManagerService } from '../../services/feature-calculation-manager.service';
|
|
9
|
+
import { IFormulaCurrentConfigService } from '../../services/current-data.service';
|
|
10
|
+
import { FormulaAstLRU } from '../../basics/cache-lru';
|
|
11
|
+
import { Disposable } from '@univerjs/core';
|
|
12
|
+
|
|
27
13
|
export declare const FormulaASTCache: FormulaAstLRU<AstRootNode>;
|
|
28
14
|
export declare class FormulaDependencyGenerator extends Disposable {
|
|
29
15
|
private readonly _currentConfigService;
|
|
@@ -1,30 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 { Disposable } from '@univerjs/core';
|
|
1
|
+
import { PreCalculateNodeType } from '../utils/node-type';
|
|
2
|
+
import { FunctionVariantType } from '../reference-object/base-reference-object';
|
|
3
|
+
import { BaseAstNode } from '../ast-node/base-ast-node';
|
|
17
4
|
import { IFormulaRuntimeService } from '../../services/runtime.service';
|
|
18
|
-
import
|
|
19
|
-
|
|
20
|
-
import type { PreCalculateNodeType } from '../utils/node-type';
|
|
5
|
+
import { Disposable } from '@univerjs/core';
|
|
6
|
+
|
|
21
7
|
export declare class Interpreter extends Disposable {
|
|
22
8
|
private readonly _runtimeService;
|
|
23
9
|
constructor(_runtimeService: IFormulaRuntimeService);
|
|
24
10
|
dispose(): void;
|
|
25
11
|
executeAsync(node: BaseAstNode): Promise<FunctionVariantType>;
|
|
26
12
|
execute(node: BaseAstNode): FunctionVariantType;
|
|
27
|
-
executePreCalculateNode(node: PreCalculateNodeType): import(
|
|
13
|
+
executePreCalculateNode(node: PreCalculateNodeType): import('@univerjs/core').Nullable<FunctionVariantType>;
|
|
28
14
|
checkAsyncNode(node: BaseAstNode): boolean;
|
|
29
15
|
private _checkAsyncNode;
|
|
30
16
|
private _executeAsync;
|
|
@@ -1,25 +1,11 @@
|
|
|
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 { ICellData, IRange, Nullable } from '@univerjs/core';
|
|
17
|
-
import { FormulaAstLRU } from '../../basics/cache-lru';
|
|
18
|
-
import type { INumfmtItemMap, IRuntimeUnitDataType, IUnitData, IUnitSheetNameMap } from '../../basics/common';
|
|
19
|
-
import { ObjectClassType } from '../../basics/object-class-type';
|
|
20
|
-
import { ArrayValueObject } from '../value-object/array-value-object';
|
|
21
|
-
import { type BaseValueObject, ErrorValueObject } from '../value-object/base-value-object';
|
|
22
1
|
import { NullValueObject, NumberValueObject } from '../value-object/primitive-object';
|
|
2
|
+
import { BaseValueObject, ErrorValueObject } from '../value-object/base-value-object';
|
|
3
|
+
import { ArrayValueObject } from '../value-object/array-value-object';
|
|
4
|
+
import { ObjectClassType } from '../../basics/object-class-type';
|
|
5
|
+
import { INumfmtItemMap, IRuntimeUnitDataType, IUnitData, IUnitSheetNameMap } from '../../basics/common';
|
|
6
|
+
import { FormulaAstLRU } from '../../basics/cache-lru';
|
|
7
|
+
import { ICellData, IRange, Nullable } from '@univerjs/core';
|
|
8
|
+
|
|
23
9
|
export type NodeValueType = BaseValueObject | BaseReferenceObject | AsyncObject | AsyncArrayObject;
|
|
24
10
|
export type FunctionVariantType = BaseValueObject | BaseReferenceObject;
|
|
25
11
|
export declare const FORMULA_REF_TO_ARRAY_CACHE: FormulaAstLRU<ArrayValueObject>;
|
|
@@ -57,7 +43,7 @@ export declare class BaseReferenceObject extends ObjectClassType {
|
|
|
57
43
|
};
|
|
58
44
|
isReferenceObject(): boolean;
|
|
59
45
|
iterator(callback: (valueObject: Nullable<BaseValueObject>, rowIndex: number, columnIndex: number) => Nullable<boolean>): Nullable<boolean>;
|
|
60
|
-
getFirstCell(): ErrorValueObject | NullValueObject | NumberValueObject | import(
|
|
46
|
+
getFirstCell(): ErrorValueObject | NullValueObject | NumberValueObject | import('../value-object/primitive-object').BooleanValueObject | import('../value-object/primitive-object').StringValueObject | ArrayValueObject;
|
|
61
47
|
getRangeData(): IRange;
|
|
62
48
|
setRangeData(range: IRange): void;
|
|
63
49
|
getUnitId(): string;
|
|
@@ -89,10 +75,12 @@ export declare class BaseReferenceObject extends ObjectClassType {
|
|
|
89
75
|
}): void;
|
|
90
76
|
getNumfmtItemData(): INumfmtItemMap;
|
|
91
77
|
setNumfmtItemData(numfmtItemData: INumfmtItemMap): void;
|
|
78
|
+
getActiveSheetRowCount(): number;
|
|
79
|
+
getActiveSheetColumnCount(): number;
|
|
92
80
|
getRowCount(): number;
|
|
93
81
|
getColumnCount(): number;
|
|
94
|
-
getRowData(): import(
|
|
95
|
-
getColumnData(): import(
|
|
82
|
+
getRowData(): import('@univerjs/core').IObjectArrayPrimitiveType<Partial<import("@univerjs/core").IRowData>>;
|
|
83
|
+
getColumnData(): import('@univerjs/core').IObjectArrayPrimitiveType<Partial<import("@univerjs/core").IColumnData>>;
|
|
96
84
|
isCell(): boolean;
|
|
97
85
|
isColumn(): boolean;
|
|
98
86
|
isRow(): boolean;
|
|
@@ -100,16 +88,16 @@ export declare class BaseReferenceObject extends ObjectClassType {
|
|
|
100
88
|
isTable(): boolean;
|
|
101
89
|
unionBy(referenceObject: BaseReferenceObject): NodeValueType;
|
|
102
90
|
unionRange(rangeData1: IRange, rangeData2: IRange): IRange;
|
|
103
|
-
getCellValueObject(cell: ICellData): ErrorValueObject | NullValueObject | NumberValueObject | import(
|
|
104
|
-
getCellByRow(row: number): ErrorValueObject | NullValueObject | NumberValueObject | import(
|
|
105
|
-
getCellByColumn(column: number): ErrorValueObject | NullValueObject | NumberValueObject | import(
|
|
106
|
-
getCurrentActiveSheetData(): import(
|
|
107
|
-
getCurrentRuntimeSheetData(): import(
|
|
108
|
-
getCurrentActiveArrayFormulaCellData(): import(
|
|
109
|
-
getCurrentRuntimeActiveArrayFormulaCellData(): import(
|
|
91
|
+
getCellValueObject(cell: ICellData): ErrorValueObject | NullValueObject | NumberValueObject | import('../value-object/primitive-object').BooleanValueObject | import('../value-object/primitive-object').StringValueObject | ArrayValueObject;
|
|
92
|
+
getCellByRow(row: number): ErrorValueObject | NullValueObject | NumberValueObject | import('../value-object/primitive-object').BooleanValueObject | import('../value-object/primitive-object').StringValueObject | ArrayValueObject;
|
|
93
|
+
getCellByColumn(column: number): ErrorValueObject | NullValueObject | NumberValueObject | import('../value-object/primitive-object').BooleanValueObject | import('../value-object/primitive-object').StringValueObject | ArrayValueObject;
|
|
94
|
+
getCurrentActiveSheetData(): import('../../basics/common').ISheetItem;
|
|
95
|
+
getCurrentRuntimeSheetData(): import('@univerjs/core').ObjectMatrix<Nullable<ICellData>> | undefined;
|
|
96
|
+
getCurrentActiveArrayFormulaCellData(): import('@univerjs/core').ObjectMatrix<Nullable<ICellData>> | undefined;
|
|
97
|
+
getCurrentRuntimeActiveArrayFormulaCellData(): import('@univerjs/core').ObjectMatrix<Nullable<ICellData>> | undefined;
|
|
110
98
|
getCellData(row: number, column: number): ICellData;
|
|
111
99
|
getRuntimeFeatureCellValue(row: number, column: number): ICellData | undefined;
|
|
112
|
-
getCellByPosition(row?: number, column?: number): ErrorValueObject | NullValueObject | NumberValueObject | import(
|
|
100
|
+
getCellByPosition(row?: number, column?: number): ErrorValueObject | NullValueObject | NumberValueObject | import('../value-object/primitive-object').BooleanValueObject | import('../value-object/primitive-object').StringValueObject | ArrayValueObject;
|
|
113
101
|
toArrayValueObject(useCache?: boolean): ArrayValueObject;
|
|
114
102
|
toUnitRange(): {
|
|
115
103
|
range: {
|
|
@@ -1,22 +1,8 @@
|
|
|
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 { IRange } from '@univerjs/core';
|
|
17
|
-
import { ErrorValueObject } from '../value-object/base-value-object';
|
|
18
|
-
import { BaseReferenceObject } from './base-reference-object';
|
|
19
1
|
import { RangeReferenceObject } from './range-reference-object';
|
|
2
|
+
import { BaseReferenceObject } from './base-reference-object';
|
|
3
|
+
import { ErrorValueObject } from '../value-object/base-value-object';
|
|
4
|
+
import { IRange } from '@univerjs/core';
|
|
5
|
+
|
|
20
6
|
export declare class CellReferenceObject extends BaseReferenceObject {
|
|
21
7
|
constructor(token: string);
|
|
22
8
|
isCell(): boolean;
|
|
@@ -1,20 +1,6 @@
|
|
|
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 { ErrorValueObject } from '../value-object/base-value-object';
|
|
17
1
|
import { BaseReferenceObject } from './base-reference-object';
|
|
2
|
+
import { ErrorValueObject } from '../value-object/base-value-object';
|
|
3
|
+
|
|
18
4
|
export declare class ColumnReferenceObject extends BaseReferenceObject {
|
|
19
5
|
constructor(token: string);
|
|
20
6
|
isColumn(): boolean;
|
|
@@ -1,20 +1,6 @@
|
|
|
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 { IRange, Nullable } from '@univerjs/core';
|
|
17
1
|
import { BaseReferenceObject } from './base-reference-object';
|
|
2
|
+
import { IRange, Nullable } from '@univerjs/core';
|
|
3
|
+
|
|
18
4
|
export declare class RangeReferenceObject extends BaseReferenceObject {
|
|
19
5
|
constructor(range: IRange, forcedSheetId?: Nullable<string>, forcedUnitId?: string);
|
|
20
6
|
isRange(): boolean;
|
|
@@ -1,20 +1,6 @@
|
|
|
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 { ErrorValueObject } from '../value-object/base-value-object';
|
|
17
1
|
import { BaseReferenceObject } from './base-reference-object';
|
|
2
|
+
import { ErrorValueObject } from '../value-object/base-value-object';
|
|
3
|
+
|
|
18
4
|
export declare class RowReferenceObject extends BaseReferenceObject {
|
|
19
5
|
constructor(token: string);
|
|
20
6
|
isRow(): boolean;
|
|
@@ -1,21 +1,6 @@
|
|
|
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 { ISuperTable } from '../../basics/common';
|
|
17
|
-
import { TableOptionType } from '../../basics/common';
|
|
18
1
|
import { BaseReferenceObject } from './base-reference-object';
|
|
2
|
+
import { ISuperTable, TableOptionType } from '../../basics/common';
|
|
3
|
+
|
|
19
4
|
export declare class TableReferenceObject extends BaseReferenceObject {
|
|
20
5
|
private _tableData;
|
|
21
6
|
private _columnDataString;
|
|
@@ -1,19 +1,5 @@
|
|
|
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
|
-
*/
|
|
1
|
+
import { BaseValueObject } from '../value-object/base-value-object';
|
|
16
2
|
import { ArrayValueObject } from '../value-object/array-value-object';
|
|
17
|
-
|
|
3
|
+
|
|
18
4
|
export declare function expandArrayValueObject(rowCount: number, columnCount: number, valueObject: BaseValueObject, defaultValue?: BaseValueObject): ArrayValueObject;
|
|
19
|
-
export declare function createNewArray(result: BaseValueObject[][], rowCount: number, columnCount: number): ArrayValueObject;
|
|
5
|
+
export declare function createNewArray(result: BaseValueObject[][], rowCount: number, columnCount: number, unitId?: string, sheetId?: string): ArrayValueObject;
|
|
@@ -1,18 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 { Nullable } from '@univerjs/core';
|
|
17
|
-
import type { BaseAstNode } from '../ast-node/base-ast-node';
|
|
1
|
+
import { BaseAstNode } from '../ast-node/base-ast-node';
|
|
2
|
+
import { Nullable } from '@univerjs/core';
|
|
3
|
+
|
|
18
4
|
export declare function getAstNodeTopParent(node: BaseAstNode): Nullable<BaseAstNode>;
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 { ICellData, Nullable } from '@univerjs/core';
|
|
1
|
+
import { ICellData, Nullable } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
export declare function getCellValue(cell: Nullable<ICellData>): string | number | true;
|
|
@@ -1,19 +1,5 @@
|
|
|
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
1
|
import { compareToken } from '../../basics/token';
|
|
2
|
+
|
|
17
3
|
export declare enum ArrayBinarySearchType {
|
|
18
4
|
MIN = 0,
|
|
19
5
|
MAX = 1
|
|
@@ -1,18 +1,4 @@
|
|
|
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
1
|
import { LexerNode } from '../analysis/lexer-node';
|
|
2
|
+
|
|
17
3
|
export declare function isFirstChildParameter(lexerNode: LexerNode | string): boolean;
|
|
18
4
|
export declare function isChildRunTimeParameter(lexerNode: LexerNode | string): boolean;
|
|
@@ -1,20 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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 { PrefixNode } from '../ast-node/prefix-node';
|
|
17
|
-
import type { ReferenceNode } from '../ast-node/reference-node';
|
|
18
|
-
import type { SuffixNode } from '../ast-node/suffix-node';
|
|
19
|
-
import type { UnionNode } from '../ast-node/union-node';
|
|
1
|
+
import { UnionNode } from '../ast-node/union-node';
|
|
2
|
+
import { SuffixNode } from '../ast-node/suffix-node';
|
|
3
|
+
import { ReferenceNode } from '../ast-node/reference-node';
|
|
4
|
+
import { PrefixNode } from '../ast-node/prefix-node';
|
|
5
|
+
|
|
20
6
|
export type PreCalculateNodeType = ReferenceNode | UnionNode | PrefixNode | SuffixNode;
|
|
@@ -1,20 +1,6 @@
|
|
|
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
|
-
*/
|
|
1
|
+
import { BaseValueObject } from '../value-object/base-value-object';
|
|
16
2
|
import { compareToken } from '../../basics/token';
|
|
17
|
-
|
|
3
|
+
|
|
18
4
|
export declare function findCompareToken(str: string): [compareToken, BaseValueObject];
|
|
19
5
|
/**
|
|
20
6
|
* When it contains both comparison characters and wildcard characters
|
|
@@ -1,22 +1,8 @@
|
|
|
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 { Injector } from '@wendellhu/redi';
|
|
17
|
-
import type { Nullable } from '@univerjs/core';
|
|
18
|
-
import type { IFunctionService } from '../../services/function.service';
|
|
19
1
|
import { PrefixNode } from '../ast-node/prefix-node';
|
|
2
|
+
import { IFunctionService } from '../../services/function.service';
|
|
3
|
+
import { Nullable } from '@univerjs/core';
|
|
4
|
+
import { Injector } from '@wendellhu/redi';
|
|
5
|
+
|
|
20
6
|
export declare function prefixHandler(tokenTrim: string, functionService: IFunctionService, injector: Injector): {
|
|
21
7
|
tokenTrim: string;
|
|
22
8
|
minusPrefixNode: Nullable<PrefixNode>;
|
|
@@ -1,18 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 { IRange, IUnitRangeName } from '@univerjs/core';
|
|
1
|
+
import { IRange, IUnitRangeName } from '@univerjs/core';
|
|
2
|
+
|
|
17
3
|
export declare function deserializeRangeForR1C1(refString: string, currentRow?: number, currentColumn?: number): IUnitRangeName;
|
|
18
4
|
export declare function serializeRangeToR1C1(range: IRange): string;
|
|
@@ -1,20 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 { IRange, IUnitRangeName } from '@univerjs/core';
|
|
17
|
-
import { AbsoluteRefType } from '@univerjs/core';
|
|
1
|
+
import { IRange, IUnitRangeName, AbsoluteRefType } from '@univerjs/core';
|
|
2
|
+
|
|
18
3
|
export interface IAbsoluteRefTypeForRange {
|
|
19
4
|
startAbsoluteRefType: AbsoluteRefType;
|
|
20
5
|
endAbsoluteRefType?: AbsoluteRefType;
|
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 { LexerNode } from '../analysis/lexer-node';
|
|
1
|
+
import { LexerNode } from '../analysis/lexer-node';
|
|
2
|
+
|
|
17
3
|
export declare enum sequenceNodeType {
|
|
18
4
|
NORMAL = 0,
|
|
19
5
|
NUMBER = 1,
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
+
|
|
5
|
+
export declare function convertTonNumber(valueObject: BaseValueObject): NumberValueObject;
|
|
6
|
+
export declare function isSingleValueObject(valueObject: FunctionVariantType): boolean;
|
|
@@ -1,24 +1,9 @@
|
|
|
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 { Nullable } from '@univerjs/core';
|
|
17
|
-
import { compareToken } from '../../basics/token';
|
|
18
|
-
import { ArrayBinarySearchType, ArrayOrderSearchType } from '../utils/compare';
|
|
19
|
-
import type { callbackMapFnType, IArrayValueObject } from './base-value-object';
|
|
20
|
-
import { BaseValueObject, ErrorValueObject } from './base-value-object';
|
|
21
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
|
+
import { Nullable } from '@univerjs/core';
|
|
6
|
+
|
|
22
7
|
export declare function fromObjectToString(array: IArrayValueObject): string;
|
|
23
8
|
export declare function transformToValueObject(array?: Array<Array<number | string | boolean | null>>): BaseValueObject[][];
|
|
24
9
|
export declare function transformToValue(array?: Nullable<BaseValueObject>[][]): (string | number | boolean | null)[][];
|
|
@@ -1,24 +1,10 @@
|
|
|
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 { Nullable } from '@univerjs/core';
|
|
17
|
-
import { FormulaAstLRU } from '../../basics/cache-lru';
|
|
18
|
-
import { ConcatenateType } from '../../basics/common';
|
|
19
|
-
import { ErrorType } from '../../basics/error-type';
|
|
20
|
-
import { ObjectClassType } from '../../basics/object-class-type';
|
|
21
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
|
+
import { Nullable } from '@univerjs/core';
|
|
7
|
+
|
|
22
8
|
export type callbackMapFnType = (currentValue: BaseValueObject, row: number, column: number) => BaseValueObject;
|
|
23
9
|
export interface IArrayValueObject {
|
|
24
10
|
calculateValueList: Nullable<BaseValueObject>[][];
|
|
@@ -48,7 +34,6 @@ export declare class BaseValueObject extends ObjectClassType {
|
|
|
48
34
|
setValue(value: string | number | boolean): void;
|
|
49
35
|
setArrayValue(value: BaseValueObject[][]): void;
|
|
50
36
|
isCube(): boolean;
|
|
51
|
-
isArray(): boolean;
|
|
52
37
|
isString(): boolean;
|
|
53
38
|
isNumber(): boolean;
|
|
54
39
|
isBoolean(): boolean;
|