@univerjs/ui 0.1.0-alpha.1
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/LICENSE +21 -0
- package/README.md +16 -0
- package/lib/cjs/index.js +4671 -0
- package/lib/cjs/locale/en-US.js +46 -0
- package/lib/cjs/locale/zh-CN.js +35 -0
- package/lib/esm/index.js +4507 -0
- package/lib/esm/locale/en-US.js +25 -0
- package/lib/esm/locale/zh-CN.js +14 -0
- package/lib/index.css +474 -0
- package/lib/types/BaseComponent.d.ts +8 -0
- package/lib/types/BaseComponent.d.ts.map +1 -0
- package/lib/types/commands/operations/toggle-shortcut-panel.operation.d.ts +4 -0
- package/lib/types/commands/operations/toggle-shortcut-panel.operation.d.ts.map +1 -0
- package/lib/types/common/component-manager.d.ts +14 -0
- package/lib/types/common/component-manager.d.ts.map +1 -0
- package/lib/types/common/index.d.ts +3 -0
- package/lib/types/common/index.d.ts.map +1 -0
- package/lib/types/common/lifecycle.d.ts +4 -0
- package/lib/types/common/lifecycle.d.ts.map +1 -0
- package/lib/types/common/z-index-manager.d.ts +8 -0
- package/lib/types/common/z-index-manager.d.ts.map +1 -0
- package/lib/types/components/custom-label/CustomLabel.d.ts +14 -0
- package/lib/types/components/custom-label/CustomLabel.d.ts.map +1 -0
- package/lib/types/components/custom-label/index.d.ts +2 -0
- package/lib/types/components/custom-label/index.d.ts.map +1 -0
- package/lib/types/components/hooks/observable.d.ts +4 -0
- package/lib/types/components/hooks/observable.d.ts.map +1 -0
- package/lib/types/components/index.d.ts +3 -0
- package/lib/types/components/index.d.ts.map +1 -0
- package/lib/types/components/menu/Menu.d.ts +11 -0
- package/lib/types/components/menu/Menu.d.ts.map +1 -0
- package/lib/types/components/menu/index.d.ts +2 -0
- package/lib/types/components/menu/index.d.ts.map +1 -0
- package/lib/types/components/notification/Notification.d.ts +41 -0
- package/lib/types/components/notification/Notification.d.ts.map +1 -0
- package/lib/types/controllers/error/error.controller.d.ts +8 -0
- package/lib/types/controllers/error/error.controller.d.ts.map +1 -0
- package/lib/types/controllers/menus/menus.d.ts +5 -0
- package/lib/types/controllers/menus/menus.d.ts.map +1 -0
- package/lib/types/controllers/shared-shortcut.controller.d.ts +25 -0
- package/lib/types/controllers/shared-shortcut.controller.d.ts.map +1 -0
- package/lib/types/controllers/shortcut-display/menu.d.ts +3 -0
- package/lib/types/controllers/shortcut-display/menu.d.ts.map +1 -0
- package/lib/types/controllers/shortcut-display/shortcut-panel.controller.d.ts +10 -0
- package/lib/types/controllers/shortcut-display/shortcut-panel.controller.d.ts.map +1 -0
- package/lib/types/controllers/ui/ui-desktop.controller.d.ts +55 -0
- package/lib/types/controllers/ui/ui-desktop.controller.d.ts.map +1 -0
- package/lib/types/controllers/ui/ui.controller.d.ts +14 -0
- package/lib/types/controllers/ui/ui.controller.d.ts.map +1 -0
- package/lib/types/index.d.ts +30 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/locale/en-US.d.ts +23 -0
- package/lib/types/locale/en-US.d.ts.map +1 -0
- package/lib/types/locale/index.d.ts +3 -0
- package/lib/types/locale/index.d.ts.map +1 -0
- package/lib/types/locale/zh-CN.d.ts +12 -0
- package/lib/types/locale/zh-CN.d.ts.map +1 -0
- package/lib/types/services/before-close/before-close.service.d.ts +21 -0
- package/lib/types/services/before-close/before-close.service.d.ts.map +1 -0
- package/lib/types/services/clipboard/clipboard-interface.service.d.ts +36 -0
- package/lib/types/services/clipboard/clipboard-interface.service.d.ts.map +1 -0
- package/lib/types/services/clipboard/clipboard.command.d.ts +5 -0
- package/lib/types/services/clipboard/clipboard.command.d.ts.map +1 -0
- package/lib/types/services/confirm/confirm.service.d.ts +10 -0
- package/lib/types/services/confirm/confirm.service.d.ts.map +1 -0
- package/lib/types/services/confirm/desktop-confirm.service.d.ts +12 -0
- package/lib/types/services/confirm/desktop-confirm.service.d.ts.map +1 -0
- package/lib/types/services/contextmenu/contextmenu.service.d.ts +18 -0
- package/lib/types/services/contextmenu/contextmenu.service.d.ts.map +1 -0
- package/lib/types/services/dialog/desktop-dialog.service.d.ts +12 -0
- package/lib/types/services/dialog/desktop-dialog.service.d.ts.map +1 -0
- package/lib/types/services/dialog/dialog.service.d.ts +10 -0
- package/lib/types/services/dialog/dialog.service.d.ts.map +1 -0
- package/lib/types/services/focus/focus.service.d.ts +22 -0
- package/lib/types/services/focus/focus.service.d.ts.map +1 -0
- package/lib/types/services/local-storage/local-storage.service.d.ts +11 -0
- package/lib/types/services/local-storage/local-storage.service.d.ts.map +1 -0
- package/lib/types/services/menu/menu.d.ts +103 -0
- package/lib/types/services/menu/menu.d.ts.map +1 -0
- package/lib/types/services/menu/menu.service.d.ts +28 -0
- package/lib/types/services/menu/menu.service.d.ts.map +1 -0
- package/lib/types/services/message/desktop-message.service.d.ts +11 -0
- package/lib/types/services/message/desktop-message.service.d.ts.map +1 -0
- package/lib/types/services/message/message.service.d.ts +8 -0
- package/lib/types/services/message/message.service.d.ts.map +1 -0
- package/lib/types/services/notification/desktop-notification.service.d.ts +7 -0
- package/lib/types/services/notification/desktop-notification.service.d.ts.map +1 -0
- package/lib/types/services/notification/notification.service.d.ts +7 -0
- package/lib/types/services/notification/notification.service.d.ts.map +1 -0
- package/lib/types/services/platform/platform.service.d.ts +15 -0
- package/lib/types/services/platform/platform.service.d.ts.map +1 -0
- package/lib/types/services/shortcut/keycode.d.ts +79 -0
- package/lib/types/services/shortcut/keycode.d.ts.map +1 -0
- package/lib/types/services/shortcut/shortcut-experience.service.d.ts +31 -0
- package/lib/types/services/shortcut/shortcut-experience.service.d.ts.map +1 -0
- package/lib/types/services/shortcut/shortcut-panel.service.d.ts +10 -0
- package/lib/types/services/shortcut/shortcut-panel.service.d.ts.map +1 -0
- package/lib/types/services/shortcut/shortcut.service.d.ts +55 -0
- package/lib/types/services/shortcut/shortcut.service.d.ts.map +1 -0
- package/lib/types/services/sidebar/desktop-sidebar.service.d.ts +12 -0
- package/lib/types/services/sidebar/desktop-sidebar.service.d.ts.map +1 -0
- package/lib/types/services/sidebar/sidebar.service.d.ts +10 -0
- package/lib/types/services/sidebar/sidebar.service.d.ts.map +1 -0
- package/lib/types/ui-plugin.d.ts +20 -0
- package/lib/types/ui-plugin.d.ts.map +1 -0
- package/lib/types/utils/cell.d.ts +34 -0
- package/lib/types/utils/cell.d.ts.map +1 -0
- package/lib/types/utils/index.d.ts +3 -0
- package/lib/types/utils/index.d.ts.map +1 -0
- package/lib/types/utils/util.d.ts +2 -0
- package/lib/types/utils/util.d.ts.map +1 -0
- package/lib/types/views/App.d.ts +13 -0
- package/lib/types/views/App.d.ts.map +1 -0
- package/lib/types/views/components/ComponentContainer.d.ts +6 -0
- package/lib/types/views/components/ComponentContainer.d.ts.map +1 -0
- package/lib/types/views/components/confirm-part/ConfirmPart.d.ts +3 -0
- package/lib/types/views/components/confirm-part/ConfirmPart.d.ts.map +1 -0
- package/lib/types/views/components/confirm-part/interface.d.ts +8 -0
- package/lib/types/views/components/confirm-part/interface.d.ts.map +1 -0
- package/lib/types/views/components/context-menu/ContextMenu.d.ts +5 -0
- package/lib/types/views/components/context-menu/ContextMenu.d.ts.map +1 -0
- package/lib/types/views/components/dialog-part/DialogPart.d.ts +3 -0
- package/lib/types/views/components/dialog-part/DialogPart.d.ts.map +1 -0
- package/lib/types/views/components/dialog-part/interface.d.ts +10 -0
- package/lib/types/views/components/dialog-part/interface.d.ts.map +1 -0
- package/lib/types/views/components/doc-bars/Button/ToolbarButton.d.ts +28 -0
- package/lib/types/views/components/doc-bars/Button/ToolbarButton.d.ts.map +1 -0
- package/lib/types/views/components/doc-bars/MenuBar.d.ts +7 -0
- package/lib/types/views/components/doc-bars/MenuBar.d.ts.map +1 -0
- package/lib/types/views/components/doc-bars/Toolbar.d.ts +3 -0
- package/lib/types/views/components/doc-bars/Toolbar.d.ts.map +1 -0
- package/lib/types/views/components/doc-bars/ToolbarItem.d.ts +4 -0
- package/lib/types/views/components/doc-bars/ToolbarItem.d.ts.map +1 -0
- package/lib/types/views/components/doc-bars/hooks/menu.d.ts +10 -0
- package/lib/types/views/components/doc-bars/hooks/menu.d.ts.map +1 -0
- package/lib/types/views/components/shortcut-panel/ShortcutPanel.d.ts +6 -0
- package/lib/types/views/components/shortcut-panel/ShortcutPanel.d.ts.map +1 -0
- package/lib/types/views/components/sidebar/Sidebar.d.ts +3 -0
- package/lib/types/views/components/sidebar/Sidebar.d.ts.map +1 -0
- package/lib/types/views/components/sidebar/interface.d.ts +11 -0
- package/lib/types/views/components/sidebar/interface.d.ts.map +1 -0
- package/lib/types/views/parts.d.ts +3 -0
- package/lib/types/views/parts.d.ts.map +1 -0
- package/package.json +77 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../../src/services/menu/menu.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Disposable } from '@univerjs/core';
|
|
2
|
+
import type { IDisposable } from '@wendellhu/redi';
|
|
3
|
+
import type { Observable } from 'rxjs';
|
|
4
|
+
import { IShortcutService } from '../shortcut/shortcut.service';
|
|
5
|
+
import type { IDisplayMenuItem, IMenuItem, MenuPosition } from './menu';
|
|
6
|
+
export declare const IMenuService: import("@wendellhu/redi").IdentifierDecorator<IMenuService>;
|
|
7
|
+
export interface IMenuService {
|
|
8
|
+
menuChanged$: Observable<void>;
|
|
9
|
+
addMenuItem(item: IMenuItem): IDisposable;
|
|
10
|
+
/** Get menu items for display at a given position or a submenu. */
|
|
11
|
+
getMenuItems(position: MenuPosition | string): Array<IDisplayMenuItem<IMenuItem>>;
|
|
12
|
+
getMenuItem(id: string): IMenuItem | null;
|
|
13
|
+
}
|
|
14
|
+
export declare class DesktopMenuService extends Disposable implements IMenuService {
|
|
15
|
+
private readonly _shortcutService;
|
|
16
|
+
private readonly _menuItemMap;
|
|
17
|
+
private readonly _menuByPositions;
|
|
18
|
+
private _menuChanged$;
|
|
19
|
+
menuChanged$: Observable<void>;
|
|
20
|
+
constructor(_shortcutService: IShortcutService);
|
|
21
|
+
dispose(): void;
|
|
22
|
+
addMenuItem(item: IMenuItem): IDisposable;
|
|
23
|
+
getMenuItems(positions: MenuPosition | string): Array<IDisplayMenuItem<IMenuItem>>;
|
|
24
|
+
getMenuItem(id: string): IMenuItem | null;
|
|
25
|
+
private getDisplayMenuItems;
|
|
26
|
+
private appendMenuToPosition;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=menu.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu.service.d.ts","sourceRoot":"","sources":["../../../../src/services/menu/menu.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAgB,MAAM,gBAAgB,CAAC;AAC1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAGvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,KAAK,EAAE,gBAAgB,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAExE,eAAO,MAAM,YAAY,6DAAwD,CAAC;AAElF,MAAM,WAAW,YAAY;IACzB,YAAY,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC;IAE/B,WAAW,CAAC,IAAI,EAAE,SAAS,GAAG,WAAW,CAAC;IAE1C,mEAAmE;IACnE,YAAY,CAAC,QAAQ,EAAE,YAAY,GAAG,MAAM,GAAG,KAAK,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC,CAAC;IAClF,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;CAC7C;AAED,qBAAa,kBAAmB,SAAQ,UAAW,YAAW,YAAY;IASxC,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IAR/D,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAgC;IAE7D,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAgE;IAEjG,OAAO,CAAC,aAAa,CAAwC;IAE7D,YAAY,EAAE,UAAU,CAAC,IAAI,CAAC,CAAqC;gBAEpB,gBAAgB,EAAE,gBAAgB;IAIxE,OAAO,IAAI,IAAI;IAKxB,WAAW,CAAC,IAAI,EAAE,SAAS,GAAG,WAAW;IA8CzC,YAAY,CAAC,SAAS,EAAE,YAAY,GAAG,MAAM,GAAG,KAAK,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC;IA4BlF,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI;IAQzC,OAAO,CAAC,mBAAmB;IAY3B,OAAO,CAAC,oBAAoB;CAY/B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IMessageMethodOptions, IMessageProps } from '@univerjs/design';
|
|
2
|
+
import { Message } from '@univerjs/design';
|
|
3
|
+
import type { IDisposable } from '@wendellhu/redi';
|
|
4
|
+
import type { IMessageService } from './message.service';
|
|
5
|
+
export declare class DesktopMessageService implements IMessageService {
|
|
6
|
+
portalContainer: HTMLElement;
|
|
7
|
+
message?: Message;
|
|
8
|
+
setContainer(container: HTMLElement): void;
|
|
9
|
+
show(options: IMessageMethodOptions & Omit<IMessageProps, 'key'>): IDisposable;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=desktop-message.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"desktop-message.service.d.ts","sourceRoot":"","sources":["../../../../src/services/message/desktop-message.service.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD,qBAAa,qBAAsB,YAAW,eAAe;IACzD,eAAe,EAAE,WAAW,CAAiB;IAC7C,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,YAAY,CAAC,SAAS,EAAE,WAAW,GAAG,IAAI;IAK1C,IAAI,CAAC,OAAO,EAAE,qBAAqB,GAAG,IAAI,CAAC,aAAa,EAAE,KAAK,CAAC,GAAG,WAAW;CAOjF"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IMessageMethodOptions, IMessageProps } from '@univerjs/design';
|
|
2
|
+
import type { IDisposable } from '@wendellhu/redi';
|
|
3
|
+
export declare const IMessageService: import("@wendellhu/redi").IdentifierDecorator<IMessageService>;
|
|
4
|
+
export interface IMessageService {
|
|
5
|
+
show(options: IMessageMethodOptions & Omit<IMessageProps, 'key'>): IDisposable;
|
|
6
|
+
setContainer(container: HTMLElement): void;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=message.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message.service.d.ts","sourceRoot":"","sources":["../../../../src/services/message/message.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC7E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAGnD,eAAO,MAAM,eAAe,gEAA8D,CAAC;AAE3F,MAAM,WAAW,eAAe;IAC5B,IAAI,CAAC,OAAO,EAAE,qBAAqB,GAAG,IAAI,CAAC,aAAa,EAAE,KAAK,CAAC,GAAG,WAAW,CAAC;IAE/E,YAAY,CAAC,SAAS,EAAE,WAAW,GAAG,IAAI,CAAC;CAC9C"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IDisposable } from '@wendellhu/redi';
|
|
2
|
+
import type { INotificationMethodOptions } from '../../components/notification/Notification';
|
|
3
|
+
import type { INotificationService } from './notification.service';
|
|
4
|
+
export declare class DesktopNotificationService implements INotificationService {
|
|
5
|
+
show(params: INotificationMethodOptions): IDisposable;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=desktop-notification.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"desktop-notification.service.d.ts","sourceRoot":"","sources":["../../../../src/services/notification/desktop-notification.service.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AAE7F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAEnE,qBAAa,0BAA2B,YAAW,oBAAoB;IACnE,IAAI,CAAC,MAAM,EAAE,0BAA0B,GAAG,WAAW;CAKxD"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IDisposable } from '@wendellhu/redi';
|
|
2
|
+
import type { INotificationMethodOptions } from '../../components/notification/Notification';
|
|
3
|
+
export declare const INotificationService: import("@wendellhu/redi").IdentifierDecorator<INotificationService>;
|
|
4
|
+
export interface INotificationService {
|
|
5
|
+
show(params: INotificationMethodOptions): IDisposable;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=notification.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification.service.d.ts","sourceRoot":"","sources":["../../../../src/services/notification/notification.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAGnD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AAE7F,eAAO,MAAM,oBAAoB,qEAAwE,CAAC;AAE1G,MAAM,WAAW,oBAAoB;IACjC,IAAI,CAAC,MAAM,EAAE,0BAA0B,GAAG,WAAW,CAAC;CACzD"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A service to provide context info of the host service.
|
|
3
|
+
*/
|
|
4
|
+
export interface IPlatformService {
|
|
5
|
+
readonly isMac: boolean;
|
|
6
|
+
readonly isWindows: boolean;
|
|
7
|
+
readonly isLinux: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const IPlatformService: import("@wendellhu/redi").IdentifierDecorator<IPlatformService>;
|
|
10
|
+
export declare class DesktopPlatformService implements IPlatformService {
|
|
11
|
+
get isMac(): boolean;
|
|
12
|
+
get isWindows(): boolean;
|
|
13
|
+
get isLinux(): boolean;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=platform.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platform.service.d.ts","sourceRoot":"","sources":["../../../../src/services/platform/platform.service.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC7B,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;CAC7B;AAED,eAAO,MAAM,gBAAgB,iEAAgE,CAAC;AAE9F,qBAAa,sBAAuB,YAAW,gBAAgB;IAC3D,IAAI,KAAK,IAAI,OAAO,CAEnB;IAED,IAAI,SAAS,IAAI,OAAO,CAEvB;IAED,IAAI,OAAO,IAAI,OAAO,CAErB;CACJ"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
export declare const KeyCodeToChar: {
|
|
2
|
+
[key: number]: string;
|
|
3
|
+
};
|
|
4
|
+
/** KeyCode that maps to browser standard keycode. */
|
|
5
|
+
export declare const enum KeyCode {
|
|
6
|
+
UNKNOWN = 0,
|
|
7
|
+
BACKSPACE = 8,
|
|
8
|
+
TAB = 9,
|
|
9
|
+
ENTER = 13,
|
|
10
|
+
ESC = 27,
|
|
11
|
+
SPACE = 32,
|
|
12
|
+
ARROW_LEFT = 37,
|
|
13
|
+
ARROW_UP = 38,
|
|
14
|
+
ARROW_RIGHT = 39,
|
|
15
|
+
ARROW_DOWN = 40,
|
|
16
|
+
INSERT = 45,
|
|
17
|
+
DELETE = 46,
|
|
18
|
+
Digit0 = 48,
|
|
19
|
+
Digit1 = 49,
|
|
20
|
+
Digit2 = 50,
|
|
21
|
+
Digit3 = 51,
|
|
22
|
+
Digit4 = 52,
|
|
23
|
+
Digit5 = 53,
|
|
24
|
+
Digit6 = 54,
|
|
25
|
+
Digit7 = 55,
|
|
26
|
+
Digit8 = 56,
|
|
27
|
+
Digit9 = 57,
|
|
28
|
+
A = 65,
|
|
29
|
+
B = 66,
|
|
30
|
+
C = 67,
|
|
31
|
+
D = 68,
|
|
32
|
+
E = 69,
|
|
33
|
+
F = 70,
|
|
34
|
+
G = 71,
|
|
35
|
+
H = 72,
|
|
36
|
+
I = 73,
|
|
37
|
+
J = 74,
|
|
38
|
+
K = 75,
|
|
39
|
+
L = 76,
|
|
40
|
+
M = 77,
|
|
41
|
+
N = 78,
|
|
42
|
+
O = 79,
|
|
43
|
+
P = 80,
|
|
44
|
+
Q = 81,
|
|
45
|
+
R = 82,
|
|
46
|
+
S = 83,
|
|
47
|
+
T = 84,
|
|
48
|
+
U = 85,
|
|
49
|
+
V = 86,
|
|
50
|
+
W = 87,
|
|
51
|
+
X = 88,
|
|
52
|
+
Y = 89,
|
|
53
|
+
Z = 90,
|
|
54
|
+
F1 = 112,
|
|
55
|
+
F2 = 113,
|
|
56
|
+
F3 = 114,
|
|
57
|
+
F4 = 115,
|
|
58
|
+
F5 = 116,
|
|
59
|
+
F6 = 117,
|
|
60
|
+
F7 = 118,
|
|
61
|
+
F8 = 119,
|
|
62
|
+
F9 = 120,
|
|
63
|
+
F10 = 121,
|
|
64
|
+
F11 = 122,
|
|
65
|
+
F12 = 123,
|
|
66
|
+
NUM_LOCK = 144,
|
|
67
|
+
SCROLL_LOCK = 145,
|
|
68
|
+
MINUS = 189,
|
|
69
|
+
EQUAL = 187
|
|
70
|
+
}
|
|
71
|
+
export declare const enum MetaKeys {
|
|
72
|
+
SHIFT = 1024,
|
|
73
|
+
/** Option key on MacOS. Alt key on other systems. */
|
|
74
|
+
ALT = 2048,
|
|
75
|
+
/** Command key on MacOS. Ctrl key on other systems. */
|
|
76
|
+
CTRL_COMMAND = 4096,
|
|
77
|
+
MAC_CTRL = 8192
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=keycode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keycode.d.ts","sourceRoot":"","sources":["../../../../src/services/shortcut/keycode.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAoDlD,CAAC;AAEF,qDAAqD;AACrD,0BAAkB,OAAO;IACrB,OAAO,IAAI;IAEX,SAAS,IAAI;IACb,GAAG,IAAI;IAEP,KAAK,KAAK;IACV,GAAG,KAAK;IACR,KAAK,KAAK;IAEV,UAAU,KAAK;IACf,QAAQ,KAAK;IACb,WAAW,KAAK;IAChB,UAAU,KAAK;IACf,MAAM,KAAK;IACX,MAAM,KAAK;IAEX,MAAM,KAAK;IACX,MAAM,KAAA;IACN,MAAM,KAAA;IACN,MAAM,KAAA;IACN,MAAM,KAAA;IACN,MAAM,KAAA;IACN,MAAM,KAAA;IACN,MAAM,KAAA;IACN,MAAM,KAAA;IACN,MAAM,KAAA;IAEN,CAAC,KAAK;IACN,CAAC,KAAA;IACD,CAAC,KAAA;IACD,CAAC,KAAA;IACD,CAAC,KAAA;IACD,CAAC,KAAA;IACD,CAAC,KAAA;IACD,CAAC,KAAA;IACD,CAAC,KAAA;IACD,CAAC,KAAA;IACD,CAAC,KAAA;IACD,CAAC,KAAA;IACD,CAAC,KAAA;IACD,CAAC,KAAA;IACD,CAAC,KAAA;IACD,CAAC,KAAA;IACD,CAAC,KAAA;IACD,CAAC,KAAA;IACD,CAAC,KAAA;IACD,CAAC,KAAA;IACD,CAAC,KAAA;IACD,CAAC,KAAA;IACD,CAAC,KAAA;IACD,CAAC,KAAA;IACD,CAAC,KAAA;IACD,CAAC,KAAA;IAED,EAAE,MAAM;IACR,EAAE,MAAM;IACR,EAAE,MAAM;IACR,EAAE,MAAM;IACR,EAAE,MAAM;IACR,EAAE,MAAM;IACR,EAAE,MAAM;IACR,EAAE,MAAM;IACR,EAAE,MAAM;IACR,GAAG,MAAM;IACT,GAAG,MAAM;IACT,GAAG,MAAM;IACT,QAAQ,MAAM;IACd,WAAW,MAAM;IAEjB,KAAK,MAAM;IACX,KAAK,MAAM;CACd;AAED,0BAAkB,QAAQ;IACtB,KAAK,OAAU;IACf,qDAAqD;IACrD,GAAG,OAAU;IACb,uDAAuD;IACvD,YAAY,OAAU;IACtB,QAAQ,OAAU;CACrB"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { ISelection, ITextRangeParam, Nullable } from '@univerjs/core';
|
|
2
|
+
import { IUniverInstanceService, LocaleService } from '@univerjs/core';
|
|
3
|
+
import type { IDisposable } from '@wendellhu/redi';
|
|
4
|
+
import type { KeyCode } from './keycode';
|
|
5
|
+
export interface IShortcutExperienceSearch {
|
|
6
|
+
unitId: string;
|
|
7
|
+
sheetId: string;
|
|
8
|
+
keycode: KeyCode;
|
|
9
|
+
}
|
|
10
|
+
export interface IShortcutExperienceParam extends IShortcutExperienceSearch {
|
|
11
|
+
selection?: ISelection;
|
|
12
|
+
textSelection?: ITextRangeParam;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* This service is prepared for shortcut experience optimization,
|
|
16
|
+
* including the combined use of enter and tab, the highlighting experience of formulas in the editor, and so on.
|
|
17
|
+
*/
|
|
18
|
+
export declare class ShortcutExperienceService implements IDisposable {
|
|
19
|
+
private readonly _currentUniverService;
|
|
20
|
+
private readonly _localeService;
|
|
21
|
+
private _current;
|
|
22
|
+
private _shortcutParam;
|
|
23
|
+
constructor(_currentUniverService: IUniverInstanceService, _localeService: LocaleService);
|
|
24
|
+
dispose(): void;
|
|
25
|
+
getCurrentBySearch(searchParm: Nullable<IShortcutExperienceSearch>): Nullable<IShortcutExperienceParam>;
|
|
26
|
+
getCurrent(): Nullable<IShortcutExperienceParam>;
|
|
27
|
+
addOrUpdate(insertParam: IShortcutExperienceParam): Nullable<IShortcutExperienceParam>;
|
|
28
|
+
remove(searchParm: Nullable<IShortcutExperienceSearch>): Nullable<IShortcutExperienceParam>;
|
|
29
|
+
private _getCurrentBySearch;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=shortcut-experience.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shortcut-experience.service.d.ts","sourceRoot":"","sources":["../../../../src/services/shortcut/shortcut-experience.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC5E,OAAO,EAAE,sBAAsB,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAGnD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,MAAM,WAAW,yBAAyB;IACtC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,wBAAyB,SAAQ,yBAAyB;IACvE,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,aAAa,CAAC,EAAE,eAAe,CAAC;CACnC;AAED;;;GAGG;AACH,qBAAa,yBAA0B,YAAW,WAAW;IAM7B,OAAO,CAAC,QAAQ,CAAC,qBAAqB;IACvC,OAAO,CAAC,QAAQ,CAAC,cAAc;IAN1D,OAAO,CAAC,QAAQ,CAA6C;IAE7D,OAAO,CAAC,cAAc,CAAkC;gBAGX,qBAAqB,EAAE,sBAAsB,EAC9C,cAAc,EAAE,aAAa;IAGzE,OAAO,IAAI,IAAI;IAIf,kBAAkB,CAAC,UAAU,EAAE,QAAQ,CAAC,yBAAyB,CAAC,GAAG,QAAQ,CAAC,wBAAwB,CAAC;IAIvG,UAAU,IAAI,QAAQ,CAAC,wBAAwB,CAAC;IAIhD,WAAW,CAAC,WAAW,EAAE,wBAAwB,GAAG,QAAQ,CAAC,wBAAwB,CAAC;IAiBtF,MAAM,CAAC,UAAU,EAAE,QAAQ,CAAC,yBAAyB,CAAC,GAAG,QAAQ,CAAC,wBAAwB,CAAC;IAY3F,OAAO,CAAC,mBAAmB;CAa9B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Disposable } from '@univerjs/core';
|
|
2
|
+
export declare class ShortcutPanelService extends Disposable {
|
|
3
|
+
private _open$;
|
|
4
|
+
open$: import("rxjs").Observable<boolean>;
|
|
5
|
+
get isOpen(): boolean;
|
|
6
|
+
dispose(): void;
|
|
7
|
+
open(): void;
|
|
8
|
+
close(): void;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=shortcut-panel.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shortcut-panel.service.d.ts","sourceRoot":"","sources":["../../../../src/services/shortcut/shortcut-panel.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAG5C,qBAAa,oBAAqB,SAAQ,UAAU;IAChD,OAAO,CAAC,MAAM,CAAuC;IACrD,KAAK,qCAA4C;IACjD,IAAI,MAAM,IAAI,OAAO,CAEpB;IAEQ,OAAO,IAAI,IAAI;IAKxB,IAAI,IAAI,IAAI;IAIZ,KAAK,IAAI,IAAI;CAGhB"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Disposable, ICommandService, IContextService } from '@univerjs/core';
|
|
2
|
+
import type { IDisposable } from '@wendellhu/redi';
|
|
3
|
+
import type { Observable } from 'rxjs';
|
|
4
|
+
import { IPlatformService } from '../platform/platform.service';
|
|
5
|
+
export interface IShortcutItem<P extends object = object> {
|
|
6
|
+
/** This should reuse the corresponding command's id. */
|
|
7
|
+
id: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
priority?: number;
|
|
10
|
+
/** A callback that will be triggered to examine if the shortcut should be invoked. */
|
|
11
|
+
preconditions?: (contextService: IContextService) => boolean;
|
|
12
|
+
/** A command can be bound to several bindings, with different static parameters perhaps. */
|
|
13
|
+
binding: number;
|
|
14
|
+
mac?: number;
|
|
15
|
+
win?: number;
|
|
16
|
+
linux?: number;
|
|
17
|
+
/**
|
|
18
|
+
* The group of the menu item should belong to. The shortcut item would be rendered in the
|
|
19
|
+
* panel if this is set.
|
|
20
|
+
*/
|
|
21
|
+
group?: string;
|
|
22
|
+
/** Static parameters of this shortcut. Would be send to `CommandService.executeCommand`. */
|
|
23
|
+
staticParameters?: P;
|
|
24
|
+
}
|
|
25
|
+
export interface IShortcutService {
|
|
26
|
+
shortcutChanged$: Observable<void>;
|
|
27
|
+
forceEscape(): IDisposable;
|
|
28
|
+
registerShortcut(shortcut: IShortcutItem): IDisposable;
|
|
29
|
+
getShortcutDisplay(shortcut: IShortcutItem): string;
|
|
30
|
+
getShortcutDisplayOfCommand(id: string): string | null;
|
|
31
|
+
getAllShortcuts(): IShortcutItem[];
|
|
32
|
+
}
|
|
33
|
+
export declare const IShortcutService: import("@wendellhu/redi").IdentifierDecorator<IShortcutService>;
|
|
34
|
+
export declare class DesktopShortcutService extends Disposable implements IShortcutService {
|
|
35
|
+
private readonly _commandService;
|
|
36
|
+
private readonly _platformService;
|
|
37
|
+
private readonly _contextService;
|
|
38
|
+
private readonly _shortCutMapping;
|
|
39
|
+
private readonly _commandIDMapping;
|
|
40
|
+
private readonly _shortcutChanged$;
|
|
41
|
+
readonly shortcutChanged$: Observable<void>;
|
|
42
|
+
private _forceEscaped;
|
|
43
|
+
constructor(_commandService: ICommandService, _platformService: IPlatformService, _contextService: IContextService);
|
|
44
|
+
getAllShortcuts(): IShortcutItem[];
|
|
45
|
+
registerShortcut(shortcut: IShortcutItem): IDisposable;
|
|
46
|
+
getShortcutDisplayOfCommand(id: string): string | null;
|
|
47
|
+
getShortcutDisplay(shortcut: IShortcutItem): string;
|
|
48
|
+
private _emitShortcutChanged;
|
|
49
|
+
forceEscape(): IDisposable;
|
|
50
|
+
private _resolveKeyboardEvent;
|
|
51
|
+
private _dispatch;
|
|
52
|
+
private _getBindingFromItem;
|
|
53
|
+
private _deriveBindingFromEvent;
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=shortcut.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shortcut.service.d.ts","sourceRoot":"","sources":["../../../../src/services/shortcut/shortcut.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,eAAe,EAAgB,MAAM,gBAAgB,CAAC;AAC5F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAIvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAGhE,MAAM,WAAW,aAAa,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM;IACpD,wDAAwD;IACxD,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sFAAsF;IACtF,aAAa,CAAC,EAAE,CAAC,cAAc,EAAE,eAAe,KAAK,OAAO,CAAC;IAE7D,4FAA4F;IAC5F,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,4FAA4F;IAC5F,gBAAgB,CAAC,EAAE,CAAC,CAAC;CACxB;AAED,MAAM,WAAW,gBAAgB;IAC7B,gBAAgB,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC;IAEnC,WAAW,IAAI,WAAW,CAAC;IAI3B,gBAAgB,CAAC,QAAQ,EAAE,aAAa,GAAG,WAAW,CAAC;IACvD,kBAAkB,CAAC,QAAQ,EAAE,aAAa,GAAG,MAAM,CAAC;IACpD,2BAA2B,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACvD,eAAe,IAAI,aAAa,EAAE,CAAC;CACtC;AAED,eAAO,MAAM,gBAAgB,iEAAwD,CAAC;AAEtF,qBAAa,sBAAuB,SAAQ,UAAW,YAAW,gBAAgB;IAUzD,OAAO,CAAC,QAAQ,CAAC,eAAe;IAC/B,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IAClC,OAAO,CAAC,QAAQ,CAAC,eAAe;IAXrD,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAyC;IAC1E,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAyC;IAE3E,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAuB;IACzD,QAAQ,CAAC,gBAAgB,mBAAyC;IAElE,OAAO,CAAC,aAAa,CAAS;gBAGQ,eAAe,EAAE,eAAe,EAC/B,gBAAgB,EAAE,gBAAgB,EACnC,eAAe,EAAE,eAAe;IAYtE,eAAe,IAAI,aAAa,EAAE;IAMlC,gBAAgB,CAAC,QAAQ,EAAE,aAAa,GAAG,WAAW;IAkCtD,2BAA2B,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;IAUtD,kBAAkB,CAAC,QAAQ,EAAE,aAAa,GAAG,MAAM;IAenD,OAAO,CAAC,oBAAoB;IAI5B,WAAW,IAAI,WAAW;IAK1B,OAAO,CAAC,qBAAqB;IAe7B,OAAO,CAAC,SAAS;IAuBjB,OAAO,CAAC,mBAAmB;IAgB3B,OAAO,CAAC,uBAAuB;CAwBlC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { IDisposable } from '@wendellhu/redi';
|
|
2
|
+
import { Subject } from 'rxjs';
|
|
3
|
+
import { type ISidebarMethodOptions } from '../../views/components/sidebar/interface';
|
|
4
|
+
import type { ISidebarService } from './sidebar.service';
|
|
5
|
+
export declare class DesktopSidebarService implements ISidebarService {
|
|
6
|
+
private sidebarOptions;
|
|
7
|
+
private readonly sidebarOptions$;
|
|
8
|
+
open(option: ISidebarMethodOptions): IDisposable;
|
|
9
|
+
close(): void;
|
|
10
|
+
getObservableSidebar(): Subject<ISidebarMethodOptions>;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=desktop-sidebar.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"desktop-sidebar.service.d.ts","sourceRoot":"","sources":["../../../../src/services/sidebar/desktop-sidebar.service.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAE/B,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AACtF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD,qBAAa,qBAAsB,YAAW,eAAe;IACzD,OAAO,CAAC,cAAc,CAA6B;IACnD,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAwC;IAExE,IAAI,CAAC,MAAM,EAAE,qBAAqB,GAAG,WAAW;IAahD,KAAK;IASL,oBAAoB;CAGvB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IDisposable } from '@wendellhu/redi';
|
|
2
|
+
import { type Subject } from 'rxjs';
|
|
3
|
+
import { type ISidebarMethodOptions } from '../../views/components/sidebar/interface';
|
|
4
|
+
export declare const ISidebarService: import("@wendellhu/redi").IdentifierDecorator<ISidebarService>;
|
|
5
|
+
export interface ISidebarService {
|
|
6
|
+
open(params: ISidebarMethodOptions): IDisposable;
|
|
7
|
+
close(): void;
|
|
8
|
+
getObservableSidebar(): Subject<ISidebarMethodOptions>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=sidebar.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sidebar.service.d.ts","sourceRoot":"","sources":["../../../../src/services/sidebar/sidebar.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,MAAM,CAAC;AAEpC,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AAEtF,eAAO,MAAM,eAAe,gEAA8D,CAAC;AAE3F,MAAM,WAAW,eAAe;IAC5B,IAAI,CAAC,MAAM,EAAE,qBAAqB,GAAG,WAAW,CAAC;IAEjD,KAAK,IAAI,IAAI,CAAC;IAEd,oBAAoB,IAAI,OAAO,CAAC,qBAAqB,CAAC,CAAC;CAC1D"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { LocaleService, Plugin, PluginType } from '@univerjs/core';
|
|
2
|
+
import { Injector } from '@wendellhu/redi';
|
|
3
|
+
import type { IWorkbenchOptions } from './controllers/ui/ui.controller';
|
|
4
|
+
export interface IUIPluginConfig extends IWorkbenchOptions {
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* UI plugin provides basic interaction with users. Including workbench (menus, UI parts, notifications etc.), copy paste, shortcut.
|
|
8
|
+
*/
|
|
9
|
+
export declare class UIPlugin extends Plugin {
|
|
10
|
+
protected readonly _injector: Injector;
|
|
11
|
+
private readonly _localeService;
|
|
12
|
+
static type: PluginType;
|
|
13
|
+
private _config;
|
|
14
|
+
constructor(config: Partial<IUIPluginConfig> | undefined, _injector: Injector, _localeService: LocaleService);
|
|
15
|
+
onStarting(_injector: Injector): void;
|
|
16
|
+
onReady(): void;
|
|
17
|
+
private _initDependencies;
|
|
18
|
+
private _initUI;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=ui-plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-plugin.d.ts","sourceRoot":"","sources":["../../src/ui-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,aAAa,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEzF,OAAO,EAAU,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAOnD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AA2BxE,MAAM,WAAW,eAAgB,SAAQ,iBAAiB;CAAG;AAI7D;;GAEG;AACH,qBAAa,QAAS,SAAQ,MAAM;IAOV,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,QAAQ;IACjC,OAAO,CAAC,QAAQ,CAAC,cAAc;IAP1D,OAAgB,IAAI,aAAqB;IAEzC,OAAO,CAAC,OAAO,CAAkB;gBAG7B,MAAM,sCAA+B,EACA,SAAS,EAAE,QAAQ,EAChB,cAAc,EAAE,aAAa;IAWhE,UAAU,CAAC,SAAS,EAAE,QAAQ,GAAG,IAAI;IAIrC,OAAO,IAAI,IAAI;IAIxB,OAAO,CAAC,iBAAiB;IAiCzB,OAAO,CAAC,OAAO;CAGlB"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { IDocumentData, IRange, IStyleData } from '@univerjs/core';
|
|
2
|
+
/**
|
|
3
|
+
* The entire list of DOM spans is parsed into a rich-text JSON style sheet
|
|
4
|
+
* @param $dom
|
|
5
|
+
* @returns
|
|
6
|
+
*/
|
|
7
|
+
export declare function handleDomToJson($dom: HTMLElement): IDocumentData | string;
|
|
8
|
+
/**
|
|
9
|
+
* A single span parses out the ITextStyle style sheet
|
|
10
|
+
* @param $dom
|
|
11
|
+
* @returns
|
|
12
|
+
*/
|
|
13
|
+
export declare function handleStringToStyle($dom?: HTMLElement, cssStyle?: string): IStyleData;
|
|
14
|
+
/**
|
|
15
|
+
* split span text
|
|
16
|
+
* @param text
|
|
17
|
+
* @returns
|
|
18
|
+
*/
|
|
19
|
+
export declare function splitSpanText(text: string): string[];
|
|
20
|
+
export declare function handleTableColgroup(table: string): any[];
|
|
21
|
+
export declare function handleTableRowGroup(table: string): any[];
|
|
22
|
+
export declare function handelTableToJson(table: string): any[];
|
|
23
|
+
export declare function handlePlainToJson(plain: string): any[];
|
|
24
|
+
export declare function handleTableMergeData(data: any[], selection?: IRange): {
|
|
25
|
+
data: any[];
|
|
26
|
+
mergeData: {
|
|
27
|
+
startRow: any;
|
|
28
|
+
endRow: any;
|
|
29
|
+
startColumn: any;
|
|
30
|
+
endColumn: any;
|
|
31
|
+
}[];
|
|
32
|
+
};
|
|
33
|
+
export declare function handelExcelToJson(html: string): any[] | undefined;
|
|
34
|
+
//# sourceMappingURL=cell.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cell.d.ts","sourceRoot":"","sources":["../../../src/utils/cell.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAGR,aAAa,EAEb,MAAM,EACN,UAAU,EAGb,MAAM,gBAAgB,CAAC;AAOxB;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,WAAW,GAAG,aAAa,GAAG,MAAM,CA0FzE;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,CAAC,EAAE,WAAW,EAAE,QAAQ,GAAE,MAAW,cAmW5E;AA6CD;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,YAMzC;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,SAoBhD;AAeD,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,SA2BhD;AAGD,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,SA2E9C;AAGD,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,SA2B9C;AAGD,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE,SAAS,CAAC,EAAE,MAAM;;;;;;;;EAuCnE;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,qBAwF7C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../src/utils/util.ts"],"names":[],"mappings":"AAAA,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAM1C"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ComponentType } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { IWorkbenchOptions } from '../controllers/ui/ui.controller';
|
|
4
|
+
export interface IUniverAppProps extends IWorkbenchOptions {
|
|
5
|
+
mountContainer: HTMLElement;
|
|
6
|
+
headerComponents?: Set<() => ComponentType>;
|
|
7
|
+
contentComponents?: Set<() => ComponentType>;
|
|
8
|
+
footerComponents?: Set<() => ComponentType>;
|
|
9
|
+
headerMenuComponents?: Set<() => ComponentType>;
|
|
10
|
+
onRendered?: (container: HTMLElement) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare function App(props: IUniverAppProps): React.JSX.Element;
|
|
13
|
+
//# sourceMappingURL=App.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../../src/views/App.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAA+C,MAAM,OAAO,CAAC;AAEpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AASzE,MAAM,WAAW,eAAgB,SAAQ,iBAAiB;IACtD,cAAc,EAAE,WAAW,CAAC;IAC5B,gBAAgB,CAAC,EAAE,GAAG,CAAC,MAAM,aAAa,CAAC,CAAC;IAC5C,iBAAiB,CAAC,EAAE,GAAG,CAAC,MAAM,aAAa,CAAC,CAAC;IAC7C,gBAAgB,CAAC,EAAE,GAAG,CAAC,MAAM,aAAa,CAAC,CAAC;IAC5C,oBAAoB,CAAC,EAAE,GAAG,CAAC,MAAM,aAAa,CAAC,CAAC;IAChD,UAAU,CAAC,EAAE,CAAC,SAAS,EAAE,WAAW,KAAK,IAAI,CAAC;CACjD;AAGD,wBAAgB,GAAG,CAAC,KAAK,EAAE,eAAe,qBA+FzC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ComponentType } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export declare function ComponentContainer(props: {
|
|
4
|
+
components?: Set<() => ComponentType>;
|
|
5
|
+
}): React.ReactElement<{}, string | React.JSXElementConstructor<any>>[] | null;
|
|
6
|
+
//# sourceMappingURL=ComponentContainer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComponentContainer.d.ts","sourceRoot":"","sources":["../../../../src/views/components/ComponentContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,wBAAgB,kBAAkB,CAAC,KAAK,EAAE;IAAE,UAAU,CAAC,EAAE,GAAG,CAAC,MAAM,aAAa,CAAC,CAAA;CAAE,8EAQlF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfirmPart.d.ts","sourceRoot":"","sources":["../../../../../src/views/components/confirm-part/ConfirmPart.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAMnD,wBAAgB,WAAW,wBAiC1B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IConfirmProps } from '@univerjs/design';
|
|
2
|
+
import { type ICustomLabelProps } from '../../../components/custom-label/CustomLabel';
|
|
3
|
+
export type IConfirmPartMethodOptions = {
|
|
4
|
+
id: string;
|
|
5
|
+
children?: ICustomLabelProps;
|
|
6
|
+
title?: ICustomLabelProps;
|
|
7
|
+
} & Omit<IConfirmProps, 'children' | 'title'>;
|
|
8
|
+
//# sourceMappingURL=interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interface.d.ts","sourceRoot":"","sources":["../../../../../src/views/components/confirm-part/interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AAEtF,MAAM,MAAM,yBAAyB,GAAG;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,KAAK,CAAC,EAAE,iBAAiB,CAAC;CAC7B,GAAG,IAAI,CAAC,aAAa,EAAE,UAAU,GAAG,OAAO,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContextMenu.d.ts","sourceRoot":"","sources":["../../../../../src/views/components/context-menu/ContextMenu.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAKnD,MAAM,WAAW,MAAM;CAAG;AAE1B,wBAAgB,WAAW,sBA+C1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DialogPart.d.ts","sourceRoot":"","sources":["../../../../../src/views/components/dialog-part/DialogPart.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAMnD,wBAAgB,UAAU,sBAiCzB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IDialogProps } from '@univerjs/design';
|
|
2
|
+
import { type ICustomLabelProps } from '../../../components/custom-label/CustomLabel';
|
|
3
|
+
export type IDialogPartMethodOptions = {
|
|
4
|
+
id: string;
|
|
5
|
+
children?: ICustomLabelProps;
|
|
6
|
+
title?: ICustomLabelProps;
|
|
7
|
+
closeIcon?: ICustomLabelProps;
|
|
8
|
+
footer?: ICustomLabelProps;
|
|
9
|
+
} & Omit<IDialogProps, 'children' | 'title' | 'closeIcon' | 'footer'>;
|
|
10
|
+
//# sourceMappingURL=interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interface.d.ts","sourceRoot":"","sources":["../../../../../src/views/components/dialog-part/interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAErD,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AAEtF,MAAM,MAAM,wBAAwB,GAAG;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAC1B,SAAS,CAAC,EAAE,iBAAiB,CAAC;IAC9B,MAAM,CAAC,EAAE,iBAAiB,CAAC;CAC9B,GAAG,IAAI,CAAC,YAAY,EAAE,UAAU,GAAG,OAAO,GAAG,WAAW,GAAG,QAAQ,CAAC,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface IBaseToolbarButtonProps {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
/** Semantic DOM class */
|
|
5
|
+
className?: string;
|
|
6
|
+
/** Semantic DOM style */
|
|
7
|
+
style?: React.CSSProperties;
|
|
8
|
+
/**
|
|
9
|
+
* Disabled state of button
|
|
10
|
+
* @default false
|
|
11
|
+
*/
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
/** Set the handler to handle `click` event */
|
|
14
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
15
|
+
onDoubleClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
16
|
+
/**
|
|
17
|
+
* Set the button is activated
|
|
18
|
+
* @default false
|
|
19
|
+
*/
|
|
20
|
+
active?: boolean;
|
|
21
|
+
onMouseEnter?: React.MouseEventHandler;
|
|
22
|
+
onMouseLeave?: React.MouseEventHandler;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Button Component
|
|
26
|
+
*/
|
|
27
|
+
export declare function ToolbarButton(props: IBaseToolbarButtonProps): React.JSX.Element;
|
|
28
|
+
//# sourceMappingURL=ToolbarButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToolbarButton.d.ts","sourceRoot":"","sources":["../../../../../../src/views/components/doc-bars/Button/ToolbarButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,WAAW,uBAAuB;IACpC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B,yBAAyB;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,yBAAyB;IACzB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAE5B;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,8CAA8C;IAC9C,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAE/D,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAErE;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB,YAAY,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC;IACvC,YAAY,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC;CAC1C;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,uBAAuB,qBAgD3D"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ComponentType } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface IMenuBarProps {
|
|
4
|
+
headerMenuComponents?: Set<() => ComponentType>;
|
|
5
|
+
}
|
|
6
|
+
export declare function MenuBar(props: IMenuBarProps): React.JSX.Element;
|
|
7
|
+
//# sourceMappingURL=MenuBar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuBar.d.ts","sourceRoot":"","sources":["../../../../../src/views/components/doc-bars/MenuBar.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAA8B,MAAM,OAAO,CAAC;AAUnD,MAAM,WAAW,aAAa;IAC1B,oBAAoB,CAAC,EAAE,GAAG,CAAC,MAAM,aAAa,CAAC,CAAC;CACnD;AAED,wBAAgB,OAAO,CAAC,KAAK,EAAE,aAAa,qBAoD3C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toolbar.d.ts","sourceRoot":"","sources":["../../../../../src/views/components/doc-bars/Toolbar.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAWnD,wBAAgB,OAAO,sBA0DtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToolbarItem.d.ts","sourceRoot":"","sources":["../../../../../src/views/components/doc-bars/ToolbarItem.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAQnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,SAAS,EAAmC,MAAM,6BAA6B,CAAC;AAKhH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,CAAC,SAAS,CAAC,qBA2J7D"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IDisplayMenuItem, IMenuItem } from '../../../../services/menu/menu';
|
|
2
|
+
import { MenuPosition } from '../../../../services/menu/menu';
|
|
3
|
+
export interface IMenuGroup {
|
|
4
|
+
name: MenuPosition;
|
|
5
|
+
menuItems: Array<IDisplayMenuItem<IMenuItem>>;
|
|
6
|
+
}
|
|
7
|
+
export declare const positions: MenuPosition[];
|
|
8
|
+
export declare const position$: import("rxjs").Observable<MenuPosition>;
|
|
9
|
+
export declare function setPosition(position: MenuPosition): void;
|
|
10
|
+
//# sourceMappingURL=menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../../../../src/views/components/doc-bars/hooks/menu.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAClF,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAE9D,MAAM,WAAW,UAAU;IACvB,IAAI,EAAE,YAAY,CAAC;IACnB,SAAS,EAAE,KAAK,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC,CAAC;CACjD;AAED,eAAO,MAAM,SAAS,gBAOrB,CAAC;AAIF,eAAO,MAAM,SAAS,yCAAiC,CAAC;AAExD,wBAAgB,WAAW,CAAC,QAAQ,EAAE,YAAY,QAEjD"}
|