@univerjs/ui 0.2.14 → 0.2.15
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 +9 -9
- package/lib/es/index.js +347 -388
- package/lib/types/controllers/ui/ui-desktop.controller.d.ts +1 -1
- package/lib/types/index.d.ts +3 -2
- package/lib/types/services/local-file/desktop-local-file.service.d.ts +6 -0
- package/lib/umd/index.js +5 -5
- package/package.json +11 -11
- package/lib/types/services/local-file/desktop-file-opener.service.d.ts +0 -15
- package/lib/types/services/local-file/{file-opener.service.d.ts → local-file.service.d.ts} +4 -4
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Disposable, Injector, IUniverInstanceService, LifecycleService } from '@univerjs/core';
|
|
2
2
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
3
3
|
import { ILayoutService } from '../../services/layout/layout.service';
|
|
4
|
+
import { IMenuManagerService } from '../../services/menu/menu-manager.service';
|
|
4
5
|
import { IUIPartsService } from '../../services/parts/parts.service';
|
|
5
6
|
import { IUniverUIConfig } from '../config.schema';
|
|
6
|
-
import { IMenuManagerService } from '../../services/menu/menu-manager.service';
|
|
7
7
|
export declare class DesktopUIController extends Disposable {
|
|
8
8
|
private readonly _config;
|
|
9
9
|
private readonly _renderManagerService;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export { type INotificationOptions, type NotificationType } from './components/n
|
|
|
29
29
|
export { ProgressBar } from './components/progress-bar/ProgressBar';
|
|
30
30
|
export { RangeSelector } from './components/range-selector/RangeSelector';
|
|
31
31
|
export { UNI_DISABLE_CHANGING_FOCUS_KEY } from './const';
|
|
32
|
-
export { type IUniverUIConfig } from './controllers/config.schema';
|
|
32
|
+
export { type IUniverUIConfig, PLUGIN_CONFIG_KEY } from './controllers/config.schema';
|
|
33
33
|
export { ErrorController } from './controllers/error/error.controller';
|
|
34
34
|
export { menuSchema } from './controllers/menus/menu.schema';
|
|
35
35
|
export { CopyShortcutItem, CutShortcutItem, RedoShortcutItem, SharedController, UndoShortcutItem, } from './controllers/shared-shortcut.controller';
|
|
@@ -50,7 +50,8 @@ export { Editor, EditorService, IEditorService } from './services/editor/editor.
|
|
|
50
50
|
export { DesktopGlobalZoneService } from './services/global-zone/desktop-global-zone.service';
|
|
51
51
|
export { IGlobalZoneService } from './services/global-zone/global-zone.service';
|
|
52
52
|
export { DesktopLayoutService, ILayoutService } from './services/layout/layout.service';
|
|
53
|
-
export {
|
|
53
|
+
export { DesktopLocalFileService } from './services/local-file/desktop-local-file.service';
|
|
54
|
+
export { ILocalFileService, type IOpenFileOptions } from './services/local-file/local-file.service';
|
|
54
55
|
export { DesktopLocalStorageService } from './services/local-storage/local-storage.service';
|
|
55
56
|
export { type ICustomComponentProps, type IDisplayMenuItem, type IMenuButtonItem, type IMenuItem, type IMenuItemFactory, type IMenuSelectorItem, type IValueOption, type MenuConfig, MenuGroup, type MenuItemDefaultValueType, MenuItemType, MenuPosition, } from './services/menu/menu';
|
|
56
57
|
export { IMenuService, MenuService } from './services/menu/menu.service';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Disposable } from '@univerjs/core';
|
|
2
|
+
import { ILocalFileService, IOpenFileOptions } from './local-file.service';
|
|
3
|
+
export declare class DesktopLocalFileService extends Disposable implements ILocalFileService {
|
|
4
|
+
openFile(options?: IOpenFileOptions): Promise<File[]>;
|
|
5
|
+
downloadFile(data: Blob, fileName: string): void;
|
|
6
|
+
}
|