@univerjs/engine-formula 0.13.0-insiders.20251218-2062647 → 0.13.0-insiders.20251223-857805c
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/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +36 -218
- package/lib/es/index.js +3151 -3382
- package/lib/facade.js +36 -218
- package/lib/index.js +3151 -3382
- package/lib/types/basics/common.d.ts +0 -8
- package/lib/types/basics/match-token.d.ts +1 -1
- package/lib/types/commands/mutations/set-formula-calculation.mutation.d.ts +1 -10
- package/lib/types/controller/calculate.controller.d.ts +0 -1
- package/lib/types/controller/config.schema.d.ts +0 -1
- package/lib/types/engine/analysis/lexer-tree-builder.d.ts +1 -2
- package/lib/types/engine/ast-node/reference-node.d.ts +1 -0
- package/lib/types/engine/dependency/dependency-tree.d.ts +1 -11
- package/lib/types/engine/dependency/formula-dependency.d.ts +3 -8
- package/lib/types/engine/utils/reference.d.ts +0 -9
- package/lib/types/engine/utils/sequence.d.ts +1 -2
- package/lib/types/facade/f-formula.d.ts +2 -164
- package/lib/types/index.d.ts +5 -9
- package/lib/types/services/active-dirty-manager.service.d.ts +0 -1
- package/lib/types/services/calculate-formula.service.d.ts +1 -4
- package/lib/types/services/current-data.service.d.ts +0 -1
- package/lib/types/services/defined-names.service.d.ts +0 -1
- package/lib/types/services/runtime.service.d.ts +0 -7
- package/lib/types/services/super-table.service.d.ts +0 -4
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +3 -3
- package/lib/types/commands/mutations/formula.mutation.d.ts +0 -9
- package/lib/types/services/formula-common.d.ts +0 -18
- package/lib/types/services/register-other-formula.service.d.ts +0 -40
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs/engine-formula",
|
|
3
|
-
"version": "0.13.0-insiders.
|
|
3
|
+
"version": "0.13.0-insiders.20251223-857805c",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal base-formula-engine",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"@flatten-js/interval-tree": "1.1.3",
|
|
62
62
|
"decimal.js": "^10.6.0",
|
|
63
|
-
"@univerjs/core": "0.13.0-insiders.
|
|
64
|
-
"@univerjs/rpc": "0.13.0-insiders.
|
|
63
|
+
"@univerjs/core": "0.13.0-insiders.20251223-857805c",
|
|
64
|
+
"@univerjs/rpc": "0.13.0-insiders.20251223-857805c"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"rxjs": "^7.8.2",
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IMutation } from '@univerjs/core';
|
|
2
|
-
export interface IOtherFormulaMarkDirtyParams {
|
|
3
|
-
[unitId: string]: {
|
|
4
|
-
[sunUnitId: string]: {
|
|
5
|
-
[formulaId: string]: boolean;
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
export declare const OtherFormulaMarkDirty: IMutation<IOtherFormulaMarkDirtyParams>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ICellData, IObjectMatrixPrimitiveType, Nullable } from '@univerjs/core';
|
|
2
|
-
export declare enum FormulaResultStatus {
|
|
3
|
-
NOT_REGISTER = 1,
|
|
4
|
-
SUCCESS = 2,
|
|
5
|
-
WAIT = 3,
|
|
6
|
-
ERROR = 4
|
|
7
|
-
}
|
|
8
|
-
export interface IOtherFormulaResult {
|
|
9
|
-
result?: IObjectMatrixPrimitiveType<Nullable<ICellData>[][]>;
|
|
10
|
-
status: FormulaResultStatus;
|
|
11
|
-
formulaId: string;
|
|
12
|
-
callbacks: Set<(value: IObjectMatrixPrimitiveType<Nullable<ICellData>[][]>) => void>;
|
|
13
|
-
extra?: Record<string, any>;
|
|
14
|
-
}
|
|
15
|
-
export interface IFormulaInfo {
|
|
16
|
-
id: string;
|
|
17
|
-
text: string;
|
|
18
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { IRange, Nullable, Disposable, ICommandService, LifecycleService } from '@univerjs/core';
|
|
2
|
-
import { IOtherFormulaResult } from './formula-common';
|
|
3
|
-
import { BehaviorSubject } from 'rxjs';
|
|
4
|
-
import { IActiveDirtyManagerService } from './active-dirty-manager.service';
|
|
5
|
-
export declare enum OtherFormulaBizType {
|
|
6
|
-
DEFAULT = "default",
|
|
7
|
-
DATA_VALIDATION = "dv",
|
|
8
|
-
DATA_VALIDATION_CUSTOM = "dv-custom",
|
|
9
|
-
CONDITIONAL_FORMATTING = "cf",
|
|
10
|
-
DOC = "doc",
|
|
11
|
-
SLIDE = "slide"
|
|
12
|
-
}
|
|
13
|
-
export declare class RegisterOtherFormulaService extends Disposable {
|
|
14
|
-
private readonly _commandService;
|
|
15
|
-
private _activeDirtyManagerService;
|
|
16
|
-
private readonly _lifecycleService;
|
|
17
|
-
private _formulaCacheMap;
|
|
18
|
-
private _formulaChangeWithRange$;
|
|
19
|
-
formulaChangeWithRange$: import('rxjs').Observable<{
|
|
20
|
-
unitId: string;
|
|
21
|
-
subUnitId: string;
|
|
22
|
-
formulaText: string;
|
|
23
|
-
formulaId: string;
|
|
24
|
-
ranges: IRange[];
|
|
25
|
-
}>;
|
|
26
|
-
private _formulaResult$;
|
|
27
|
-
formulaResult$: import('rxjs').Observable<Record<string, Record<string, IOtherFormulaResult[]>>>;
|
|
28
|
-
calculateStarted$: BehaviorSubject<boolean>;
|
|
29
|
-
constructor(_commandService: ICommandService, _activeDirtyManagerService: IActiveDirtyManagerService, _lifecycleService: LifecycleService);
|
|
30
|
-
dispose(): void;
|
|
31
|
-
private _ensureCacheMap;
|
|
32
|
-
private _createFormulaId;
|
|
33
|
-
private _initFormulaRegister;
|
|
34
|
-
private _initFormulaCalculationResultChange;
|
|
35
|
-
registerFormulaWithRange(unitId: string, subUnitId: string, formulaText: string, ranges?: IRange[], extra?: Record<string, any>, bizType?: OtherFormulaBizType, bizId?: string): string;
|
|
36
|
-
deleteFormula(unitId: string, subUnitId: string, formulaIdList: string[]): void;
|
|
37
|
-
getFormulaValue(unitId: string, subUnitId: string, formulaId: string): Promise<Nullable<IOtherFormulaResult>>;
|
|
38
|
-
getFormulaValueSync(unitId: string, subUnitId: string, formulaId: string): Nullable<IOtherFormulaResult>;
|
|
39
|
-
markFormulaDirty(unitId: string, subUnitId: string, formulaId: string): void;
|
|
40
|
-
}
|