@univerjs-pro/sheets-print 0.2.11 → 0.2.13
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 +1 -1
- package/lib/types/controllers/config.schema.d.ts +7 -0
- package/lib/types/controllers/menu.schema.d.ts +2 -0
- package/lib/types/controllers/sheet-print.controller.d.ts +4 -2
- package/lib/types/plugin.d.ts +5 -9
- package/lib/types/services/sheet-print-manager.service.d.ts +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +25 -25
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { MenuConfig } from '@univerjs/ui';
|
|
2
|
+
export declare const PLUGIN_CONFIG_KEY = "sheets-print.config";
|
|
3
|
+
export declare const configSymbol: unique symbol;
|
|
4
|
+
export interface IUniverSheetsPrintConfig {
|
|
5
|
+
menu?: MenuConfig;
|
|
6
|
+
}
|
|
7
|
+
export declare const defaultPluginConfig: IUniverSheetsPrintConfig;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Disposable, ICommandService } from '@univerjs/core';
|
|
2
|
-
import { ComponentManager, IGlobalZoneService } from '@univerjs/ui';
|
|
2
|
+
import { ComponentManager, IGlobalZoneService, IMenuManagerService } from '@univerjs/ui';
|
|
3
3
|
import { ISheetPrintManagerService } from '../services/sheet-print-manager.service';
|
|
4
4
|
import { SheetPrintClientService } from '../services/sheet-print.service';
|
|
5
5
|
export declare class SheetPrintController extends Disposable {
|
|
@@ -8,9 +8,11 @@ export declare class SheetPrintController extends Disposable {
|
|
|
8
8
|
private readonly _sheetPrintManagerService;
|
|
9
9
|
private readonly _sheetPrintClientService;
|
|
10
10
|
private readonly _componentManager;
|
|
11
|
-
|
|
11
|
+
protected readonly _menuManagerService: IMenuManagerService;
|
|
12
|
+
constructor(_printService: IGlobalZoneService, _commandService: ICommandService, _sheetPrintManagerService: ISheetPrintManagerService, _sheetPrintClientService: SheetPrintClientService, _componentManager: ComponentManager, _menuManagerService: IMenuManagerService);
|
|
12
13
|
private _initialize;
|
|
13
14
|
private _initComponents;
|
|
15
|
+
private _initMenus;
|
|
14
16
|
private _initConfigChangeListener;
|
|
15
17
|
private _print;
|
|
16
18
|
private _initCommandListener;
|
package/lib/types/plugin.d.ts
CHANGED
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
import { ICommandService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
menu: MenuConfig;
|
|
5
|
-
}
|
|
6
|
-
export declare const DefaultSheetsPrintConfig: {};
|
|
1
|
+
import { ICommandService, IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
2
|
+
import { IShortcutService } from '@univerjs/ui';
|
|
3
|
+
import { IUniverSheetsPrintConfig } from './controllers/config.schema';
|
|
7
4
|
export declare class UniverSheetsPrintPlugin extends Plugin {
|
|
8
5
|
private readonly _config;
|
|
9
6
|
readonly _injector: Injector;
|
|
10
7
|
private readonly _commandService;
|
|
11
8
|
private readonly _shortcutService;
|
|
12
|
-
private readonly
|
|
13
|
-
private readonly _componentManager;
|
|
9
|
+
private readonly _configService;
|
|
14
10
|
static pluginName: string;
|
|
15
11
|
static type: UniverInstanceType;
|
|
16
|
-
constructor(_config: Partial<IUniverSheetsPrintConfig
|
|
12
|
+
constructor(_config: Partial<IUniverSheetsPrintConfig> | undefined, _injector: Injector, _commandService: ICommandService, _shortcutService: IShortcutService, _configService: IConfigService);
|
|
17
13
|
onReady(): void;
|
|
18
14
|
}
|
|
@@ -53,7 +53,7 @@ export interface ISheetPrintManagerService {
|
|
|
53
53
|
reLayout: () => void;
|
|
54
54
|
reset: () => void;
|
|
55
55
|
}
|
|
56
|
-
export declare const ISheetPrintManagerService: import('@
|
|
56
|
+
export declare const ISheetPrintManagerService: import('@wendellhu/redi').IdentifierDecorator<ISheetPrintManagerService>;
|
|
57
57
|
export declare const DEFAULT_FREEZE: {
|
|
58
58
|
startColumn: number;
|
|
59
59
|
startRow: number;
|