@univerjs/ui 0.1.8 → 0.1.10
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 +4 -4
- package/lib/es/index.js +620 -614
- package/lib/types/index.d.ts +1 -0
- package/lib/types/services/dialog/desktop-dialog.service.d.ts +1 -1
- package/lib/types/services/dialog/dialog.service.d.ts +2 -2
- package/lib/types/services/global-zone/desktop-global-zone.service.d.ts +2 -0
- package/lib/types/services/global-zone/global-zone.service.d.ts +1 -0
- package/lib/types/services/layout/layout.service.d.ts +1 -1
- package/lib/types/ui-plugin.d.ts +2 -1
- package/lib/umd/index.js +4 -4
- package/package.json +12 -12
package/lib/types/index.d.ts
CHANGED
|
@@ -30,6 +30,7 @@ export { IConfirmService } from './services/confirm/confirm.service';
|
|
|
30
30
|
export { DesktopConfirmService } from './services/confirm/desktop-confirm.service';
|
|
31
31
|
export { DesktopContextMenuService, type IContextMenuHandler, IContextMenuService, } from './services/contextmenu/contextmenu.service';
|
|
32
32
|
export { DesktopDialogService } from './services/dialog/desktop-dialog.service';
|
|
33
|
+
export { type IDialogPartMethodOptions } from './views/components/dialog-part/interface';
|
|
33
34
|
export { IDialogService } from './services/dialog/dialog.service';
|
|
34
35
|
export { ILayoutService, DesktopLayoutService } from './services/layout/layout.service';
|
|
35
36
|
export { type ICustomComponentProps, type IDisplayMenuItem, type IMenuButtonItem, type IMenuItem, type IMenuItemFactory, type IMenuSelectorItem, type IValueOption, MenuGroup, MenuItemType, MenuPosition, } from './services/menu/menu';
|
|
@@ -10,5 +10,5 @@ export declare class DesktopDialogService extends Disposable implements IDialogS
|
|
|
10
10
|
dispose(): void;
|
|
11
11
|
open(option: IDialogPartMethodOptions): IDisposable;
|
|
12
12
|
close(id: string): void;
|
|
13
|
-
|
|
13
|
+
getDialogs$(): Subject<IDialogPartMethodOptions[]>;
|
|
14
14
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { IDialogPartMethodOptions } from '../../views/components/dialog-part/interface';
|
|
2
|
-
import {
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
3
|
import { IDisposable } from '@wendellhu/redi';
|
|
4
4
|
|
|
5
5
|
export declare const IDialogService: import('@wendellhu/redi').IdentifierDecorator<IDialogService>;
|
|
6
6
|
export interface IDialogService {
|
|
7
7
|
open(params: IDialogPartMethodOptions): IDisposable;
|
|
8
8
|
close(id: string): void;
|
|
9
|
-
|
|
9
|
+
getDialogs$(): Observable<IDialogPartMethodOptions[]>;
|
|
10
10
|
}
|
|
@@ -8,7 +8,9 @@ export declare class DesktopGlobalZoneService implements IGlobalZoneService {
|
|
|
8
8
|
private readonly _componentManager;
|
|
9
9
|
readonly visible$: Subject<boolean>;
|
|
10
10
|
readonly componentKey$: Subject<string>;
|
|
11
|
+
private _componentKey;
|
|
11
12
|
constructor(_componentManager: ComponentManager);
|
|
13
|
+
get componentKey(): string;
|
|
12
14
|
set(key: string, component: ForwardRefExoticComponent<any>): IDisposable;
|
|
13
15
|
open(): void;
|
|
14
16
|
close(): void;
|
|
@@ -5,6 +5,7 @@ export declare const IGlobalZoneService: import('@wendellhu/redi').IdentifierDec
|
|
|
5
5
|
export interface IGlobalZoneService {
|
|
6
6
|
readonly visible$: Subject<boolean>;
|
|
7
7
|
readonly componentKey$: Subject<string>;
|
|
8
|
+
get componentKey(): string;
|
|
8
9
|
set(key: string, component: any): IDisposable;
|
|
9
10
|
open(): void;
|
|
10
11
|
close(): void;
|
|
@@ -45,6 +45,6 @@ export declare class DesktopLayoutService extends Disposable implements ILayoutS
|
|
|
45
45
|
checkCanvasIsFocused(): boolean;
|
|
46
46
|
private _initUniverFocusListener;
|
|
47
47
|
private _initEditorStatus;
|
|
48
|
-
private
|
|
48
|
+
private _blurSheetEditor;
|
|
49
49
|
}
|
|
50
50
|
export {};
|
package/lib/types/ui-plugin.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { IWorkbenchOptions } from './controllers/ui/ui.controller';
|
|
2
2
|
import { Injector } from '@wendellhu/redi';
|
|
3
|
-
import { IContextService, LocaleService, Plugin } from '@univerjs/core';
|
|
3
|
+
import { DependencyOverride, IContextService, LocaleService, Plugin } from '@univerjs/core';
|
|
4
4
|
|
|
5
5
|
export interface IUniverUIConfig extends IWorkbenchOptions {
|
|
6
6
|
/** Disable auto focus when Univer bootstraps. */
|
|
7
7
|
disableAutoFocus?: true;
|
|
8
|
+
override?: DependencyOverride;
|
|
8
9
|
}
|
|
9
10
|
export declare const DISABLE_AUTO_FOCUS_KEY = "DISABLE_AUTO_FOCUS";
|
|
10
11
|
/**
|