@univerjs/sheets-formula 0.1.11 → 0.1.12
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.
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
import { Disposable, ICommandService } from '@univerjs/core';
|
|
2
|
-
import {
|
|
3
|
-
import { Injector } from '@wendellhu/redi';
|
|
2
|
+
import { MenuConfig, ComponentManager, IMenuService, IShortcutService, IUIPartsService } from '@univerjs/ui';
|
|
3
|
+
import { Ctor, Injector } from '@wendellhu/redi';
|
|
4
4
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
5
|
+
import { BaseFunction, IFunctionInfo, IFunctionNames } from '@univerjs/engine-formula';
|
|
5
6
|
|
|
7
|
+
export interface IUniverSheetsFormulaConfig {
|
|
8
|
+
menu: MenuConfig;
|
|
9
|
+
description: IFunctionInfo[];
|
|
10
|
+
function: Array<[Ctor<BaseFunction>, IFunctionNames]>;
|
|
11
|
+
}
|
|
12
|
+
export declare const DefaultSheetFormulaConfig: {};
|
|
6
13
|
export declare class FormulaUIController extends Disposable {
|
|
14
|
+
private readonly _config;
|
|
7
15
|
private readonly _injector;
|
|
8
16
|
private readonly _menuService;
|
|
9
17
|
private readonly _commandService;
|
|
10
18
|
private readonly _shortcutService;
|
|
11
|
-
private readonly
|
|
19
|
+
private readonly _uiPartsService;
|
|
12
20
|
private readonly _renderManagerService;
|
|
13
21
|
private readonly _componentManager;
|
|
14
|
-
constructor(_injector: Injector, _menuService: IMenuService, _commandService: ICommandService, _shortcutService: IShortcutService,
|
|
22
|
+
constructor(_config: Partial<IUniverSheetsFormulaConfig>, _injector: Injector, _menuService: IMenuService, _commandService: ICommandService, _shortcutService: IShortcutService, _uiPartsService: IUIPartsService, _renderManagerService: IRenderManagerService, _componentManager: ComponentManager);
|
|
15
23
|
private _initialize;
|
|
16
24
|
private _registerMenus;
|
|
17
25
|
private _registerCommands;
|
|
@@ -2,5 +2,5 @@ import { IMenuItem } from '@univerjs/ui';
|
|
|
2
2
|
import { IAccessor } from '@wendellhu/redi';
|
|
3
3
|
|
|
4
4
|
export declare function InsertFunctionMenuItemFactory(accessor: IAccessor): IMenuItem;
|
|
5
|
-
export declare function MoreFunctionsMenuItemFactory(): IMenuItem;
|
|
5
|
+
export declare function MoreFunctionsMenuItemFactory(accessor: IAccessor): IMenuItem;
|
|
6
6
|
export declare function PasteFormulaMenuItemFactory(accessor: IAccessor): IMenuItem;
|
|
@@ -1,22 +1,17 @@
|
|
|
1
1
|
import { LocaleService, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { Injector } from '@wendellhu/redi';
|
|
3
|
+
import { IUniverSheetsFormulaConfig } from './controllers/formula-ui.controller';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* The configuration of the formula UI plugin.
|
|
7
7
|
*/
|
|
8
|
-
interface IFormulaUIConfig {
|
|
9
|
-
description: IFunctionInfo[];
|
|
10
|
-
function: Array<[Ctor<BaseFunction>, IFunctionNames]>;
|
|
11
|
-
}
|
|
12
8
|
export declare class UniverSheetsFormulaPlugin extends Plugin {
|
|
13
|
-
private _config;
|
|
9
|
+
private readonly _config;
|
|
14
10
|
readonly _injector: Injector;
|
|
15
11
|
private readonly _localeService;
|
|
16
12
|
static pluginName: string;
|
|
17
13
|
static type: UniverInstanceType;
|
|
18
|
-
constructor(_config: Partial<
|
|
14
|
+
constructor(_config: Partial<IUniverSheetsFormulaConfig>, _injector: Injector, _localeService: LocaleService);
|
|
19
15
|
onStarting(): void;
|
|
20
16
|
_init(): void;
|
|
21
17
|
}
|
|
22
|
-
export {};
|