@univerjs/sheets-data-validation 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.
- package/lib/cjs/index.js +2 -2
- package/lib/es/index.js +476 -474
- package/lib/types/controllers/dv-render.controller.d.ts +7 -2
- package/lib/types/plugin.d.ts +3 -1
- package/lib/umd/index.js +2 -2
- package/package.json +23 -23
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
import { ICommandService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
|
2
2
|
import { DataValidationModel, DataValidatorRegistryService } from '@univerjs/data-validation';
|
|
3
|
-
import { ComponentManager, IMenuService } from '@univerjs/ui';
|
|
3
|
+
import { MenuConfig, ComponentManager, IMenuService } from '@univerjs/ui';
|
|
4
4
|
import { Injector } from '@wendellhu/redi';
|
|
5
5
|
import { AutoHeightController, IEditorBridgeService, SheetSkeletonManagerService } from '@univerjs/sheets-ui';
|
|
6
6
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
7
7
|
import { SheetInterceptorService } from '@univerjs/sheets';
|
|
8
8
|
import { DataValidationDropdownManagerService } from '../services/dropdown-manager.service';
|
|
9
9
|
|
|
10
|
+
export interface IUniverSheetsDataValidation {
|
|
11
|
+
menu?: MenuConfig;
|
|
12
|
+
}
|
|
13
|
+
export declare const DefaultSheetsDataValidation: {};
|
|
10
14
|
/**
|
|
11
15
|
* @todo RenderUnit
|
|
12
16
|
*/
|
|
13
17
|
export declare class DataValidationRenderController extends RxDisposable {
|
|
18
|
+
private readonly _config;
|
|
14
19
|
private _componentManager;
|
|
15
20
|
private _menuService;
|
|
16
21
|
private readonly _dataValidationModel;
|
|
@@ -24,7 +29,7 @@ export declare class DataValidationRenderController extends RxDisposable {
|
|
|
24
29
|
private readonly _injector;
|
|
25
30
|
private readonly _autoHeightController;
|
|
26
31
|
private readonly _commandService;
|
|
27
|
-
constructor(_componentManager: ComponentManager, _menuService: IMenuService, _dataValidationModel: DataValidationModel, _sheetSkeletonManagerService: SheetSkeletonManagerService, _renderManagerService: IRenderManagerService, _univerInstanceService: IUniverInstanceService, _dataValidatorRegistryService: DataValidatorRegistryService, _editorBridgeService: IEditorBridgeService, _dropdownManagerService: DataValidationDropdownManagerService, _sheetInterceptorService: SheetInterceptorService, _injector: Injector, _autoHeightController: AutoHeightController, _commandService: ICommandService);
|
|
32
|
+
constructor(_config: Partial<IUniverSheetsDataValidation>, _componentManager: ComponentManager, _menuService: IMenuService, _dataValidationModel: DataValidationModel, _sheetSkeletonManagerService: SheetSkeletonManagerService, _renderManagerService: IRenderManagerService, _univerInstanceService: IUniverInstanceService, _dataValidatorRegistryService: DataValidatorRegistryService, _editorBridgeService: IEditorBridgeService, _dropdownManagerService: DataValidationDropdownManagerService, _sheetInterceptorService: SheetInterceptorService, _injector: Injector, _autoHeightController: AutoHeightController, _commandService: ICommandService);
|
|
28
33
|
private _init;
|
|
29
34
|
private _initMenu;
|
|
30
35
|
private _initComponents;
|
package/lib/types/plugin.d.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { ICommandService, LocaleService, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
2
2
|
import { Injector } from '@wendellhu/redi';
|
|
3
|
+
import { IUniverSheetsDataValidation } from './controllers/dv-render.controller';
|
|
3
4
|
|
|
4
5
|
export declare class UniverSheetsDataValidationPlugin extends Plugin {
|
|
6
|
+
private _config;
|
|
5
7
|
protected _injector: Injector;
|
|
6
8
|
private readonly _commandService;
|
|
7
9
|
private readonly _localeService;
|
|
8
10
|
static pluginName: string;
|
|
9
11
|
static type: UniverInstanceType;
|
|
10
|
-
constructor(_config:
|
|
12
|
+
constructor(_config: Partial<IUniverSheetsDataValidation>, _injector: Injector, _commandService: ICommandService, _localeService: LocaleService);
|
|
11
13
|
onStarting(injector: Injector): void;
|
|
12
14
|
}
|