@univerjs/engine-formula 0.21.1 → 0.22.0
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/README.md +26 -17
- package/lib/cjs/facade.js +2 -2
- package/lib/cjs/index.js +2884 -3148
- package/lib/es/facade.js +2 -2
- package/lib/es/index.js +2884 -3148
- package/lib/facade.js +2 -2
- package/lib/index.js +2884 -3148
- package/lib/types/engine/analysis/lexer.d.ts +0 -1
- package/lib/types/services/active-dirty-manager.service.d.ts +1 -1
- package/lib/types/services/current-data.service.d.ts +1 -1
- package/lib/types/services/defined-names.service.d.ts +6 -1
- package/lib/types/services/dependency-manager.service.d.ts +1 -1
- package/lib/types/services/feature-calculation-manager.service.d.ts +1 -1
- package/lib/types/services/function.service.d.ts +1 -1
- package/lib/types/services/hyperlink-engine-formula.service.d.ts +1 -1
- package/lib/types/services/other-formula-manager.service.d.ts +1 -1
- package/lib/types/services/runtime.service.d.ts +1 -1
- package/lib/types/services/sheet-row-filtered.service.d.ts +1 -1
- package/lib/umd/index.js +2 -2
- package/package.json +13 -9
|
@@ -23,5 +23,4 @@ export declare class Lexer extends Disposable {
|
|
|
23
23
|
private readonly _formulaCurrentConfigService;
|
|
24
24
|
constructor(_definedNamesService: IDefinedNamesService, _lexerTreeBuilder: LexerTreeBuilder, _formulaCurrentConfigService: IFormulaCurrentConfigService);
|
|
25
25
|
treeBuilder(formulaString: string, transformSuffix?: boolean): import("../..").ErrorType.VALUE | import("./lexer-node").LexerNode | (string | import("./lexer-node").LexerNode)[] | undefined;
|
|
26
|
-
private _isDeepDefinedNameMapEmpty;
|
|
27
26
|
}
|
|
@@ -49,4 +49,4 @@ export declare class ActiveDirtyManagerService extends Disposable implements IAc
|
|
|
49
49
|
register(commandId: string, dirtyConversion: IDirtyConversionManagerParams): void;
|
|
50
50
|
getDirtyConversionMap(): Map<string, IDirtyConversionManagerParams>;
|
|
51
51
|
}
|
|
52
|
-
export declare const IActiveDirtyManagerService: import("@wendellhu/redi").IdentifierDecorator<
|
|
52
|
+
export declare const IActiveDirtyManagerService: import("@wendellhu/redi").IdentifierDecorator<IActiveDirtyManagerService>;
|
|
@@ -145,4 +145,4 @@ export declare class FormulaCurrentConfigService extends Disposable implements I
|
|
|
145
145
|
*/
|
|
146
146
|
private _applyUnitRowData;
|
|
147
147
|
}
|
|
148
|
-
export declare const IFormulaCurrentConfigService: import("@wendellhu/redi").IdentifierDecorator<
|
|
148
|
+
export declare const IFormulaCurrentConfigService: import("@wendellhu/redi").IdentifierDecorator<IFormulaCurrentConfigService>;
|
|
@@ -57,11 +57,14 @@ export interface IDefinedNamesService {
|
|
|
57
57
|
focusRange(unitId: string, id: string): void;
|
|
58
58
|
getWorksheetByRef(unitId: string, ref: string): Nullable<Worksheet>;
|
|
59
59
|
getAllDefinedNames(): IDefinedNameMap;
|
|
60
|
+
getAllDefinedNamesIsEmpty(): boolean;
|
|
61
|
+
getDefinedNameByRefString(unitId: string, formulaOrRefString: string): Nullable<IDefinedNamesServiceParam>;
|
|
60
62
|
}
|
|
61
63
|
export declare class DefinedNamesService extends Disposable implements IDefinedNamesService {
|
|
62
64
|
private readonly _univerInstanceService;
|
|
63
65
|
private _definedNameMap;
|
|
64
66
|
private _nameCacheMap;
|
|
67
|
+
private _definedNamesIsEmpty;
|
|
65
68
|
private readonly _update$;
|
|
66
69
|
readonly update$: Observable<IDefinedNamesUpdateEvent>;
|
|
67
70
|
private _currentRange;
|
|
@@ -85,8 +88,10 @@ export declare class DefinedNamesService extends Disposable implements IDefinedN
|
|
|
85
88
|
getValueById(unitId: string, id: string): IDefinedNamesServiceParam;
|
|
86
89
|
hasDefinedName(unitId: string): boolean;
|
|
87
90
|
getAllDefinedNames(): IDefinedNameMap;
|
|
91
|
+
getAllDefinedNamesIsEmpty(): boolean;
|
|
88
92
|
getDefinedNameByRefString(unitId: string, formulaOrRefString: string): IDefinedNamesServiceParam | undefined;
|
|
89
93
|
private _update;
|
|
90
94
|
private _updateCache;
|
|
95
|
+
private _isDeepDefinedNameMapEmpty;
|
|
91
96
|
}
|
|
92
|
-
export declare const IDefinedNamesService: import("@wendellhu/redi").IdentifierDecorator<
|
|
97
|
+
export declare const IDefinedNamesService: import("@wendellhu/redi").IdentifierDecorator<IDefinedNamesService>;
|
|
@@ -131,4 +131,4 @@ export declare class DependencyManagerService extends DependencyManagerBaseServi
|
|
|
131
131
|
protected _addAllTreeMap(tree: IFormulaDependencyTree): void;
|
|
132
132
|
updateDependencyTreeDirtyState(treeId: number, isDirty: boolean): void;
|
|
133
133
|
}
|
|
134
|
-
export declare const IDependencyManagerService: import("@wendellhu/redi").IdentifierDecorator<
|
|
134
|
+
export declare const IDependencyManagerService: import("@wendellhu/redi").IdentifierDecorator<IDependencyManagerService>;
|
|
@@ -55,4 +55,4 @@ export declare class FeatureCalculationManagerService extends Disposable impleme
|
|
|
55
55
|
register(unitId: string, subUnitId: string, featureId: string, referenceExecutor: IFeatureCalculationManagerParam): void;
|
|
56
56
|
getReferenceExecutorMap(): Map<string, Map<string, Map<string, IFeatureCalculationManagerParam>>>;
|
|
57
57
|
}
|
|
58
|
-
export declare const IFeatureCalculationManagerService: import("@wendellhu/redi").IdentifierDecorator<
|
|
58
|
+
export declare const IFeatureCalculationManagerService: import("@wendellhu/redi").IdentifierDecorator<IFeatureCalculationManagerService>;
|
|
@@ -44,7 +44,7 @@ export interface IFunctionService {
|
|
|
44
44
|
clearDescriptions(): void;
|
|
45
45
|
deleteFormulaAstCacheKey(...functionToken: IFunctionNames[]): void;
|
|
46
46
|
}
|
|
47
|
-
export declare const IFunctionService: import("@wendellhu/redi").IdentifierDecorator<
|
|
47
|
+
export declare const IFunctionService: import("@wendellhu/redi").IdentifierDecorator<IFunctionService>;
|
|
48
48
|
export declare class FunctionService extends Disposable implements IFunctionService {
|
|
49
49
|
private _functionExecutors;
|
|
50
50
|
private _functionDescriptions;
|
|
@@ -26,4 +26,4 @@ export declare class HyperlinkEngineFormulaService extends Disposable implements
|
|
|
26
26
|
constructor(_univerInstanceService: IUniverInstanceService);
|
|
27
27
|
generateCellValue(url: string, label: string): ICellData;
|
|
28
28
|
}
|
|
29
|
-
export declare const IHyperlinkEngineFormulaService: import("@wendellhu/redi").IdentifierDecorator<
|
|
29
|
+
export declare const IHyperlinkEngineFormulaService: import("@wendellhu/redi").IdentifierDecorator<IHyperlinkEngineFormulaService>;
|
|
@@ -51,4 +51,4 @@ export declare class OtherFormulaManagerService extends Disposable implements IO
|
|
|
51
51
|
batchRemove(formulaData: IDirtyUnitOtherFormulaMap): void;
|
|
52
52
|
getOtherFormulaData(): IOtherFormulaData;
|
|
53
53
|
}
|
|
54
|
-
export declare const IOtherFormulaManagerService: import("@wendellhu/redi").IdentifierDecorator<
|
|
54
|
+
export declare const IOtherFormulaManagerService: import("@wendellhu/redi").IdentifierDecorator<IOtherFormulaManagerService>;
|
|
@@ -227,4 +227,4 @@ export declare class FormulaRuntimeService extends Disposable implements IFormul
|
|
|
227
227
|
private _checkIfArrayFormulaExceeded;
|
|
228
228
|
private _isInDirtyRange;
|
|
229
229
|
}
|
|
230
|
-
export declare const IFormulaRuntimeService: import("@wendellhu/redi").IdentifierDecorator<
|
|
230
|
+
export declare const IFormulaRuntimeService: import("@wendellhu/redi").IdentifierDecorator<IFormulaRuntimeService>;
|
|
@@ -27,5 +27,5 @@ export declare class SheetRowFilteredService extends Disposable implements IShee
|
|
|
27
27
|
register(callback: CallbackFunction): void;
|
|
28
28
|
getRowFiltered(unitId: string, subUnitId: string, row: number): boolean;
|
|
29
29
|
}
|
|
30
|
-
export declare const ISheetRowFilteredService: import("@wendellhu/redi").IdentifierDecorator<
|
|
30
|
+
export declare const ISheetRowFilteredService: import("@wendellhu/redi").IdentifierDecorator<ISheetRowFilteredService>;
|
|
31
31
|
export {};
|