@univerjs/engine-formula 0.1.4 → 0.1.6
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 +3186 -2830
- package/lib/types/basics/calculate.d.ts +1 -15
- package/lib/types/basics/common.d.ts +17 -17
- package/lib/types/basics/dirty.d.ts +2 -16
- package/lib/types/basics/function.d.ts +23 -33
- 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 +14 -18
- package/lib/types/commands/mutations/set-feature-calculation.mutation.d.ts +3 -17
- package/lib/types/commands/mutations/set-formula-calculation.mutation.d.ts +6 -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 +7 -17
- package/lib/types/engine/analysis/lexer-tree-builder.d.ts +9 -20
- package/lib/types/engine/analysis/lexer.d.ts +10 -21
- 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 +9 -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 -27
- 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 +12 -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/relative-formula.d.ts +4 -0
- 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 +8 -5
- 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 +35 -0
- package/lib/types/services/calculate-formula.service.d.ts +12 -27
- package/lib/types/services/current-data.service.d.ts +20 -19
- package/lib/types/services/defined-names.service.d.ts +52 -25
- 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,34 +1,61 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { IUnitRange, Nullable, Disposable } from '@univerjs/core';
|
|
3
|
+
|
|
4
|
+
export interface IDefinedNamesServiceParam {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
formulaOrRefString: string;
|
|
8
|
+
comment?: string;
|
|
9
|
+
localSheetId?: string;
|
|
10
|
+
hidden?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface IDefinedNamesServiceFocusParam extends IDefinedNamesServiceParam {
|
|
13
|
+
unitId: string;
|
|
14
|
+
}
|
|
15
|
+
export interface IDefinedNameMap {
|
|
16
|
+
[unitId: string]: IDefinedNameMapItem;
|
|
17
|
+
}
|
|
18
|
+
export interface IDefinedNameMapItem {
|
|
19
|
+
[id: string]: IDefinedNamesServiceParam;
|
|
20
|
+
}
|
|
18
21
|
export interface IDefinedNamesService {
|
|
19
|
-
registerDefinedName(unitId: string,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
+
registerDefinedName(unitId: string, param: IDefinedNamesServiceParam): void;
|
|
23
|
+
registerDefinedNames(unitId: string, params: IDefinedNameMapItem): void;
|
|
24
|
+
getDefinedNameMap(unitId: string): Nullable<IDefinedNameMapItem>;
|
|
25
|
+
getValueByName(unitId: string, name: string): Nullable<IDefinedNamesServiceParam>;
|
|
26
|
+
getValueById(unitId: string, id: string): Nullable<IDefinedNamesServiceParam>;
|
|
22
27
|
removeDefinedName(unitId: string, name: string): void;
|
|
23
28
|
hasDefinedName(unitId: string): boolean;
|
|
29
|
+
setCurrentRange(range: IUnitRange): void;
|
|
30
|
+
getCurrentRange(): IUnitRange;
|
|
31
|
+
getCurrentRangeForString(): string;
|
|
32
|
+
currentRange$: Observable<IUnitRange>;
|
|
33
|
+
update$: Observable<unknown>;
|
|
34
|
+
focusRange$: Observable<IDefinedNamesServiceFocusParam>;
|
|
35
|
+
focusRange(unitId: string, id: string): void;
|
|
24
36
|
}
|
|
25
37
|
export declare class DefinedNamesService extends Disposable implements IDefinedNamesService {
|
|
26
38
|
private _definedNameMap;
|
|
39
|
+
private readonly _update$;
|
|
40
|
+
readonly update$: Observable<unknown>;
|
|
41
|
+
private _currentRange;
|
|
42
|
+
private readonly _currentRange$;
|
|
43
|
+
readonly currentRange$: Observable<IUnitRange>;
|
|
44
|
+
private readonly _focusRange$;
|
|
45
|
+
readonly focusRange$: Observable<IDefinedNamesServiceFocusParam>;
|
|
46
|
+
constructor();
|
|
27
47
|
dispose(): void;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
48
|
+
focusRange(unitId: string, id: string): void;
|
|
49
|
+
setCurrentRange(range: IUnitRange): void;
|
|
50
|
+
getCurrentRange(): IUnitRange;
|
|
51
|
+
getCurrentRangeForString(): string;
|
|
52
|
+
registerDefinedNames(unitId: string, params: IDefinedNameMapItem): void;
|
|
53
|
+
registerDefinedName(unitId: string, param: IDefinedNamesServiceParam): void;
|
|
54
|
+
removeDefinedName(unitId: string, id: string): void;
|
|
55
|
+
getDefinedNameMap(unitId: string): IDefinedNameMapItem;
|
|
56
|
+
getValueByName(unitId: string, name: string): IDefinedNamesServiceParam | null;
|
|
57
|
+
getValueById(unitId: string, id: string): IDefinedNamesServiceParam;
|
|
32
58
|
hasDefinedName(unitId: string): boolean;
|
|
59
|
+
private _update;
|
|
33
60
|
}
|
|
34
|
-
export declare const IDefinedNamesService: import(
|
|
61
|
+
export declare const IDefinedNamesService: import('@wendellhu/redi').IdentifierDecorator<DefinedNamesService>;
|
|
@@ -1,22 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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 { IUnitRange, Nullable } from '@univerjs/core';
|
|
17
|
-
import { Disposable } from '@univerjs/core';
|
|
18
|
-
import type { IFeatureDirtyRangeType, IRuntimeUnitDataType } from '../basics/common';
|
|
19
|
-
import type { FormulaDependencyTree } from '../engine/dependency/dependency-tree';
|
|
1
|
+
import { FormulaDependencyTree } from '../engine/dependency/dependency-tree';
|
|
2
|
+
import { IFeatureDirtyRangeType, IRuntimeUnitDataType } from '../basics/common';
|
|
3
|
+
import { IUnitRange, Nullable, Disposable } from '@univerjs/core';
|
|
4
|
+
|
|
20
5
|
export interface IFeatureCalculationManagerParam {
|
|
21
6
|
unitId: string;
|
|
22
7
|
subUnitId: string;
|
|
@@ -49,4 +34,4 @@ export declare class FeatureCalculationManagerService extends Disposable impleme
|
|
|
49
34
|
register(featureId: string, referenceExecutor: IFeatureCalculationManagerParam): void;
|
|
50
35
|
getReferenceExecutorMap(): Map<string, IFeatureCalculationManagerParam>;
|
|
51
36
|
}
|
|
52
|
-
export declare const IFeatureCalculationManagerService: import(
|
|
37
|
+
export declare const IFeatureCalculationManagerService: import('@wendellhu/redi').IdentifierDecorator<FeatureCalculationManagerService>;
|
|
@@ -1,22 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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 { Disposable } from '@univerjs/core';
|
|
18
|
-
import type { IFunctionInfo, IFunctionNames } from '../basics/function';
|
|
19
|
-
import type { BaseFunction } from '../functions/base-function';
|
|
1
|
+
import { BaseFunction } from '../functions/base-function';
|
|
2
|
+
import { IFunctionInfo, IFunctionNames } from '../basics/function';
|
|
3
|
+
import { Nullable, Disposable } from '@univerjs/core';
|
|
4
|
+
|
|
20
5
|
export interface IFunctionService {
|
|
21
6
|
/**
|
|
22
7
|
* Use register to register a function, new CustomFunction(inject, name)
|
|
@@ -57,4 +42,4 @@ export declare class FunctionService extends Disposable implements IFunctionServ
|
|
|
57
42
|
hasDescription(functionToken: IFunctionNames): boolean;
|
|
58
43
|
unregisterDescriptions(...functionTokens: IFunctionNames[]): void;
|
|
59
44
|
}
|
|
60
|
-
export declare const IFunctionService: import(
|
|
45
|
+
export declare const IFunctionService: import('@wendellhu/redi').IdentifierDecorator<FunctionService>;
|
|
@@ -1,21 +1,6 @@
|
|
|
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 { Disposable } from '@univerjs/core';
|
|
18
|
-
import type { IFormulaDataItem, IOtherFormulaData } from '../basics/common';
|
|
1
|
+
import { IDirtyUnitOtherFormulaMap, IFormulaDataItem, IOtherFormulaData } from '../basics/common';
|
|
2
|
+
import { Nullable, Disposable } from '@univerjs/core';
|
|
3
|
+
|
|
19
4
|
export interface IOtherFormulaManagerSearchParam {
|
|
20
5
|
unitId: string;
|
|
21
6
|
subUnitId: string;
|
|
@@ -31,6 +16,8 @@ export interface IOtherFormulaManagerService {
|
|
|
31
16
|
has(searchParam: IOtherFormulaManagerSearchParam): boolean;
|
|
32
17
|
register(insertParam: IOtherFormulaManagerInsertParam): void;
|
|
33
18
|
getOtherFormulaData(): IOtherFormulaData;
|
|
19
|
+
batchRegister(formulaData: IOtherFormulaData): void;
|
|
20
|
+
batchRemove(formulaData: IDirtyUnitOtherFormulaMap): void;
|
|
34
21
|
}
|
|
35
22
|
/**
|
|
36
23
|
* Passively marked as dirty, register the reference and execution actions of the feature plugin.
|
|
@@ -45,6 +32,8 @@ export declare class OtherFormulaManagerService extends Disposable implements IO
|
|
|
45
32
|
get(searchParam: IOtherFormulaManagerSearchParam): IFormulaDataItem | undefined;
|
|
46
33
|
has(searchParam: IOtherFormulaManagerSearchParam): boolean;
|
|
47
34
|
register(insertParam: IOtherFormulaManagerInsertParam): void;
|
|
35
|
+
batchRegister(formulaData: IOtherFormulaData): void;
|
|
36
|
+
batchRemove(formulaData: IDirtyUnitOtherFormulaMap): void;
|
|
48
37
|
getOtherFormulaData(): IOtherFormulaData;
|
|
49
38
|
}
|
|
50
|
-
export declare const IOtherFormulaManagerService: import(
|
|
39
|
+
export declare const IOtherFormulaManagerService: import('@wendellhu/redi').IdentifierDecorator<OtherFormulaManagerService>;
|
|
@@ -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 { Disposable } from '@univerjs/core';
|
|
18
|
-
import type { IArrayFormulaRangeType, IFeatureDirtyRangeType, INumfmtItemMap, IRuntimeOtherUnitDataType, IRuntimeUnitDataType } from '../basics/common';
|
|
19
|
-
import type { BaseAstNode } from '../engine/ast-node/base-ast-node';
|
|
20
|
-
import type { FunctionVariantType } from '../engine/reference-object/base-reference-object';
|
|
21
1
|
import { IFormulaCurrentConfigService } from './current-data.service';
|
|
2
|
+
import { FunctionVariantType } from '../engine/reference-object/base-reference-object';
|
|
3
|
+
import { BaseAstNode } from '../engine/ast-node/base-ast-node';
|
|
4
|
+
import { IArrayFormulaRangeType, IFeatureDirtyRangeType, INumfmtItemMap, IRuntimeOtherUnitDataType, IRuntimeUnitDataType } from '../basics/common';
|
|
5
|
+
import { Nullable, Disposable } from '@univerjs/core';
|
|
6
|
+
|
|
22
7
|
/**
|
|
23
8
|
* IDLE: Idle phase of the formula engine.
|
|
24
9
|
*
|
|
@@ -193,4 +178,4 @@ export declare class FormulaRuntimeService extends Disposable implements IFormul
|
|
|
193
178
|
private _checkIfArrayFormulaExceeded;
|
|
194
179
|
private _isInDirtyRange;
|
|
195
180
|
}
|
|
196
|
-
export declare const IFormulaRuntimeService: import(
|
|
181
|
+
export declare const IFormulaRuntimeService: import('@wendellhu/redi').IdentifierDecorator<FormulaRuntimeService>;
|
|
@@ -1,21 +1,6 @@
|
|
|
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 { Disposable } from '@univerjs/core';
|
|
18
|
-
import type { ISuperTable, TableOptionType } from '../basics/common';
|
|
1
|
+
import { ISuperTable, TableOptionType } from '../basics/common';
|
|
2
|
+
import { Nullable, Disposable } from '@univerjs/core';
|
|
3
|
+
|
|
19
4
|
export interface ISuperTableOptionParam {
|
|
20
5
|
tableOption: string;
|
|
21
6
|
tableOptionType: TableOptionType;
|
|
@@ -37,4 +22,4 @@ export declare class SuperTableService extends Disposable implements ISuperTable
|
|
|
37
22
|
registerTable(unitId: string, tableName: string, reference: ISuperTable): void;
|
|
38
23
|
registerTableOptionMap(tableOption: string, tableOptionType: TableOptionType): void;
|
|
39
24
|
}
|
|
40
|
-
export declare const ISuperTableService: import(
|
|
25
|
+
export declare const ISuperTableService: import('@wendellhu/redi').IdentifierDecorator<ISuperTableService>;
|