@univerjs/ui 0.2.4 → 0.2.5

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.
Files changed (47) hide show
  1. package/lib/cjs/index.js +14 -14
  2. package/lib/es/index.js +1214 -1182
  3. package/lib/types/common/component-manager.d.ts +1 -1
  4. package/lib/types/common/lifecycle.d.ts +1 -1
  5. package/lib/types/common/menu-hidden-observable.d.ts +1 -2
  6. package/lib/types/controllers/menus/menus.d.ts +1 -1
  7. package/lib/types/controllers/shared-shortcut.controller.d.ts +1 -2
  8. package/lib/types/controllers/shortcut-display/menu.d.ts +1 -1
  9. package/lib/types/controllers/shortcut-display/shortcut-panel.controller.d.ts +1 -2
  10. package/lib/types/controllers/ui/ui-desktop.controller.d.ts +1 -2
  11. package/lib/types/controllers/ui/ui-mobile.controller.d.ts +1 -2
  12. package/lib/types/controllers/ui/ui.controller.d.ts +1 -1
  13. package/lib/types/mobile-ui-plugin.d.ts +1 -2
  14. package/lib/types/services/before-close/before-close.service.d.ts +2 -2
  15. package/lib/types/services/clipboard/clipboard-interface.service.d.ts +1 -1
  16. package/lib/types/services/confirm/confirm.service.d.ts +2 -2
  17. package/lib/types/services/confirm/desktop-confirm.service.d.ts +1 -2
  18. package/lib/types/services/contextmenu/contextmenu.service.d.ts +8 -3
  19. package/lib/types/services/dialog/desktop-dialog.service.d.ts +1 -2
  20. package/lib/types/services/dialog/dialog.service.d.ts +2 -2
  21. package/lib/types/services/dom/canvas-dom-layer.service.d.ts +2 -1
  22. package/lib/types/services/editor/editor.service.d.ts +2 -3
  23. package/lib/types/services/global-zone/desktop-global-zone.service.d.ts +1 -1
  24. package/lib/types/services/global-zone/global-zone.service.d.ts +2 -2
  25. package/lib/types/services/layout/layout.service.d.ts +2 -3
  26. package/lib/types/services/menu/menu.d.ts +1 -1
  27. package/lib/types/services/menu/menu.service.d.ts +2 -3
  28. package/lib/types/services/message/__testing__/mock-message.service.d.ts +1 -1
  29. package/lib/types/services/message/desktop-message.service.d.ts +1 -1
  30. package/lib/types/services/message/message.service.d.ts +2 -2
  31. package/lib/types/services/notification/desktop-notification.service.d.ts +1 -2
  32. package/lib/types/services/notification/notification.service.d.ts +2 -2
  33. package/lib/types/services/parts/parts.service.d.ts +2 -3
  34. package/lib/types/services/platform/platform.service.d.ts +1 -1
  35. package/lib/types/services/popup/canvas-popup.service.d.ts +1 -1
  36. package/lib/types/services/progress/progress.service.d.ts +2 -3
  37. package/lib/types/services/range-selector/range-selector.service.d.ts +2 -3
  38. package/lib/types/services/shortcut/keycode.d.ts +3 -1
  39. package/lib/types/services/shortcut/shortcut.service.d.ts +2 -3
  40. package/lib/types/services/sidebar/desktop-sidebar.service.d.ts +1 -1
  41. package/lib/types/services/sidebar/sidebar.service.d.ts +2 -2
  42. package/lib/types/services/zen-zone/desktop-zen-zone.service.d.ts +1 -1
  43. package/lib/types/services/zen-zone/zen-zone.service.d.ts +2 -2
  44. package/lib/types/ui-plugin.d.ts +1 -2
  45. package/lib/types/views/components/ComponentContainer.d.ts +1 -1
  46. package/lib/umd/index.js +14 -14
  47. package/package.json +11 -13
@@ -1,4 +1,4 @@
1
- import { IDisposable } from '@wendellhu/redi';
1
+ import { IDisposable } from '@univerjs/core';
2
2
  import { defineComponent } from 'vue';
3
3
  import { default as React } from 'react';
4
4
 
@@ -1,4 +1,4 @@
1
- import { IDisposable } from '@wendellhu/redi';
1
+ import { IDisposable } from '@univerjs/core';
2
2
 
3
3
  export declare function fromGlobalEvent<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): IDisposable;
4
4
  export declare function fromEvent<K extends keyof HTMLElementEventMap>(target: HTMLElement, type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): IDisposable;
@@ -1,5 +1,4 @@
1
- import { UniverInstanceType } from '@univerjs/core';
2
- import { IAccessor } from '@wendellhu/redi';
1
+ import { IAccessor, UniverInstanceType } from '@univerjs/core';
3
2
  import { Observable } from 'rxjs';
4
3
 
5
4
  export declare function getMenuHiddenObservable(accessor: IAccessor, targetUniverType: UniverInstanceType): Observable<boolean>;
@@ -1,4 +1,4 @@
1
- import { IAccessor } from '@wendellhu/redi';
1
+ import { IAccessor } from '@univerjs/core';
2
2
  import { IMenuButtonItem } from '../../services/menu/menu';
3
3
 
4
4
  export declare function UndoMenuItemFactory(accessor: IAccessor): IMenuButtonItem;
@@ -1,5 +1,4 @@
1
- import { Disposable, ICommandService } from '@univerjs/core';
2
- import { Injector } from '@wendellhu/redi';
1
+ import { Disposable, ICommandService, Injector } from '@univerjs/core';
3
2
  import { IMenuService } from '../services/menu/menu.service';
4
3
  import { IShortcutItem, IShortcutService } from '../services/shortcut/shortcut.service';
5
4
  import { IUniverUIConfig } from './ui/ui.controller';
@@ -1,4 +1,4 @@
1
- import { IAccessor } from '@wendellhu/redi';
1
+ import { IAccessor } from '@univerjs/core';
2
2
  import { IMenuButtonItem } from '../../services/menu/menu';
3
3
 
4
4
  export declare function ShortcutPanelMenuItemFactory(accessor: IAccessor): IMenuButtonItem;
@@ -1,5 +1,4 @@
1
- import { Disposable, ICommandService } from '@univerjs/core';
2
- import { Injector } from '@wendellhu/redi';
1
+ import { Disposable, ICommandService, Injector } from '@univerjs/core';
3
2
  import { ComponentManager } from '../../common/component-manager';
4
3
  import { IMenuService } from '../../services/menu/menu.service';
5
4
  import { IShortcutService } from '../../services/shortcut/shortcut.service';
@@ -1,6 +1,5 @@
1
- import { Disposable, IConfigService, LifecycleService } from '@univerjs/core';
1
+ import { Disposable, IConfigService, Injector, LifecycleService } from '@univerjs/core';
2
2
  import { IRenderManagerService } from '@univerjs/engine-render';
3
- import { Injector } from '@wendellhu/redi';
4
3
  import { ILayoutService } from '../../services/layout/layout.service';
5
4
  import { IUIPartsService } from '../../services/parts/parts.service';
6
5
  import { IUniverUIConfig } from './ui.controller';
@@ -1,6 +1,5 @@
1
- import { Disposable, IUniverInstanceService, LifecycleService } from '@univerjs/core';
1
+ import { Disposable, Injector, IUniverInstanceService, LifecycleService } from '@univerjs/core';
2
2
  import { IRenderManagerService } from '@univerjs/engine-render';
3
- import { Injector } from '@wendellhu/redi';
4
3
  import { ILayoutService } from '../../services/layout/layout.service';
5
4
  import { IUIPartsService } from '../../services/parts/parts.service';
6
5
  import { IUIController, IUniverUIConfig } from './ui.controller';
@@ -10,7 +10,7 @@ export interface IWorkbenchOptions {
10
10
  }
11
11
  export interface IUIController {
12
12
  }
13
- export declare const IUIController: import('@wendellhu/redi').IdentifierDecorator<IUIController>;
13
+ export declare const IUIController: import('@univerjs/core').IdentifierDecorator<IUIController>;
14
14
  export interface IUniverUIConfig extends IWorkbenchOptions {
15
15
  /** Disable auto focus when Univer bootstraps. */
16
16
  disableAutoFocus?: true;
@@ -1,5 +1,4 @@
1
- import { Plugin } from '@univerjs/core';
2
- import { Injector } from '@wendellhu/redi';
1
+ import { Injector, Plugin } from '@univerjs/core';
3
2
  import { IUniverUIConfig } from './controllers/ui/ui.controller';
4
3
 
5
4
  export declare const UNIVER_MOBILE_UI_PLUGIN_NAME = "UNIVER_MOBILE_UI_PLUGIN";
@@ -1,4 +1,4 @@
1
- import { IDisposable } from '@wendellhu/redi';
1
+ import { IDisposable } from '@univerjs/core';
2
2
  import { INotificationService } from '../notification/notification.service';
3
3
 
4
4
  export interface IBeforeCloseService {
@@ -17,7 +17,7 @@ export interface IBeforeCloseService {
17
17
  */
18
18
  registerOnClose(callback: () => void): IDisposable;
19
19
  }
20
- export declare const IBeforeCloseService: import('@wendellhu/redi').IdentifierDecorator<IBeforeCloseService>;
20
+ export declare const IBeforeCloseService: import('@univerjs/core').IdentifierDecorator<IBeforeCloseService>;
21
21
  export declare class DesktopBeforeCloseService implements IBeforeCloseService {
22
22
  private readonly _notificationService;
23
23
  private _beforeUnloadCallbacks;
@@ -32,7 +32,7 @@ export interface IClipboardInterfaceService {
32
32
  */
33
33
  readonly supportClipboard: boolean;
34
34
  }
35
- export declare const IClipboardInterfaceService: import('@wendellhu/redi').IdentifierDecorator<IClipboardInterfaceService>;
35
+ export declare const IClipboardInterfaceService: import('@univerjs/core').IdentifierDecorator<IClipboardInterfaceService>;
36
36
  export declare class BrowserClipboardService extends Disposable implements IClipboardInterfaceService {
37
37
  private readonly _localeService;
38
38
  private readonly _logService;
@@ -1,8 +1,8 @@
1
- import { IDisposable } from '@wendellhu/redi';
1
+ import { IDisposable } from '@univerjs/core';
2
2
  import { Subject } from 'rxjs';
3
3
  import { IConfirmPartMethodOptions } from '../../views/components/confirm-part/interface';
4
4
 
5
- export declare const IConfirmService: import('@wendellhu/redi').IdentifierDecorator<IConfirmService>;
5
+ export declare const IConfirmService: import('@univerjs/core').IdentifierDecorator<IConfirmService>;
6
6
  export interface IConfirmService {
7
7
  readonly confirmOptions$: Subject<IConfirmPartMethodOptions[]>;
8
8
  open(params: IConfirmPartMethodOptions): IDisposable;
@@ -1,5 +1,4 @@
1
- import { Disposable } from '@univerjs/core';
2
- import { IDisposable, Injector } from '@wendellhu/redi';
1
+ import { Disposable, IDisposable, Injector } from '@univerjs/core';
3
2
  import { Subject } from 'rxjs';
4
3
  import { IConfirmPartMethodOptions } from '../../views/components/confirm-part/interface';
5
4
  import { IUIPartsService } from '../parts/parts.service';
@@ -1,24 +1,29 @@
1
- import { Disposable } from '@univerjs/core';
1
+ import { Disposable, IDisposable } from '@univerjs/core';
2
2
  import { IMouseEvent, IPointerEvent } from '@univerjs/engine-render';
3
- import { IDisposable } from '@wendellhu/redi';
4
3
 
5
4
  export interface IContextMenuHandler {
6
5
  /** A callback to open context menu with given position and menu type. */
7
6
  handleContextMenu(event: IPointerEvent | IMouseEvent, menuType: string): void;
7
+ hideContextMenu(): void;
8
+ get visible(): boolean;
8
9
  }
9
10
  export interface IContextMenuService {
10
11
  disabled: boolean;
12
+ get visible(): boolean;
11
13
  enable(): void;
12
14
  disable(): void;
13
15
  triggerContextMenu(event: IPointerEvent | IMouseEvent, menuType: string): void;
16
+ hideContextMenu(): void;
14
17
  registerContextMenuHandler(handler: IContextMenuHandler): IDisposable;
15
18
  }
16
- export declare const IContextMenuService: import('@wendellhu/redi').IdentifierDecorator<IContextMenuService>;
19
+ export declare const IContextMenuService: import('@univerjs/core').IdentifierDecorator<IContextMenuService>;
17
20
  export declare class ContextMenuService extends Disposable implements IContextMenuService {
18
21
  private _currentHandler;
19
22
  disabled: boolean;
23
+ get visible(): boolean;
20
24
  disable(): void;
21
25
  enable(): void;
22
26
  triggerContextMenu(event: IPointerEvent | IMouseEvent, menuType: string): void;
27
+ hideContextMenu(): void;
23
28
  registerContextMenuHandler(handler: IContextMenuHandler): IDisposable;
24
29
  }
@@ -1,5 +1,4 @@
1
- import { Disposable } from '@univerjs/core';
2
- import { IDisposable, Injector } from '@wendellhu/redi';
1
+ import { Disposable, IDisposable, Injector } from '@univerjs/core';
3
2
  import { Subject } from 'rxjs';
4
3
  import { IDialogPartMethodOptions } from '../../views/components/dialog-part/interface';
5
4
  import { IUIPartsService } from '../parts/parts.service';
@@ -1,8 +1,8 @@
1
- import { IDisposable } from '@wendellhu/redi';
1
+ import { IDisposable } from '@univerjs/core';
2
2
  import { Observable } from 'rxjs';
3
3
  import { IDialogPartMethodOptions } from '../../views/components/dialog-part/interface';
4
4
 
5
- export declare const IDialogService: import('@wendellhu/redi').IdentifierDecorator<IDialogService>;
5
+ export declare const IDialogService: import('@univerjs/core').IdentifierDecorator<IDialogService>;
6
6
  export interface IDialogService {
7
7
  open(params: IDialogPartMethodOptions): IDisposable;
8
8
  close(id: string): void;
@@ -1,4 +1,4 @@
1
- import { IPosition } from '@univerjs/core';
1
+ import { IPosition, Serializable } from '@univerjs/core';
2
2
  import { Observable } from 'rxjs';
3
3
 
4
4
  export interface IFloatDomLayout extends IPosition {
@@ -19,6 +19,7 @@ export interface IFloatDom {
19
19
  onPointerUp: (evt: PointerEvent | MouseEvent) => void;
20
20
  onWheel: (evt: WheelEvent) => void;
21
21
  props?: Record<string, any>;
22
+ data?: Serializable;
22
23
  }
23
24
  export declare class CanvasFloatDomService {
24
25
  private _domLayerMap;
@@ -1,5 +1,4 @@
1
- import { DocumentDataModel, IDocumentBody, IDocumentData, IPosition, Nullable, Disposable, IContextService, IUniverInstanceService } from '@univerjs/core';
2
- import { IDisposable } from '@wendellhu/redi';
1
+ import { DocumentDataModel, IDisposable, IDocumentBody, IDocumentData, IPosition, Nullable, Disposable, IContextService, IUniverInstanceService } from '@univerjs/core';
3
2
  import { Observable } from 'rxjs';
4
3
  import { IRender, ISuccinctTextRangeParam, IRenderManagerService } from '@univerjs/engine-render';
5
4
  import { LexerTreeBuilder } from '@univerjs/engine-formula';
@@ -191,4 +190,4 @@ export declare class EditorService extends Disposable implements IEditorService,
191
190
  private _refresh;
192
191
  private _getBlank;
193
192
  }
194
- export declare const IEditorService: import('@wendellhu/redi').IdentifierDecorator<IEditorService>;
193
+ export declare const IEditorService: import('@univerjs/core').IdentifierDecorator<IEditorService>;
@@ -1,4 +1,4 @@
1
- import { IDisposable } from '@wendellhu/redi';
1
+ import { IDisposable } from '@univerjs/core';
2
2
  import { ForwardRefExoticComponent } from 'react';
3
3
  import { Subject } from 'rxjs';
4
4
  import { ComponentManager } from '../../common/component-manager';
@@ -1,7 +1,7 @@
1
- import { IDisposable } from '@wendellhu/redi';
1
+ import { IDisposable } from '@univerjs/core';
2
2
  import { Subject } from 'rxjs';
3
3
 
4
- export declare const IGlobalZoneService: import('@wendellhu/redi').IdentifierDecorator<IGlobalZoneService>;
4
+ export declare const IGlobalZoneService: import('@univerjs/core').IdentifierDecorator<IGlobalZoneService>;
5
5
  export interface IGlobalZoneService {
6
6
  readonly visible$: Subject<boolean>;
7
7
  readonly componentKey$: Subject<string>;
@@ -1,5 +1,4 @@
1
- import { ContextService, Nullable, Disposable, IUniverInstanceService, UniverInstanceType } from '@univerjs/core';
2
- import { IDisposable } from '@wendellhu/redi';
1
+ import { ContextService, IDisposable, Nullable, Disposable, IUniverInstanceService, UniverInstanceType } from '@univerjs/core';
3
2
  import { IEditorService } from '../editor/editor.service';
4
3
 
5
4
  type FocusHandlerFn = (unitId: string) => void;
@@ -21,7 +20,7 @@ export interface ILayoutService {
21
20
  checkElementInCurrentContainers(element: HTMLElement): boolean;
22
21
  checkCanvasIsFocused(): boolean;
23
22
  }
24
- export declare const ILayoutService: import('@wendellhu/redi').IdentifierDecorator<ILayoutService>;
23
+ export declare const ILayoutService: import('@univerjs/core').IdentifierDecorator<ILayoutService>;
25
24
  /**
26
25
  * This service is responsible for storing layout information of the current
27
26
  * Univer application instance.
@@ -1,4 +1,4 @@
1
- import { IAccessor } from '@wendellhu/redi';
1
+ import { IAccessor } from '@univerjs/core';
2
2
  import { Observable } from 'rxjs';
3
3
 
4
4
  export type OneOrMany<T> = T | T[];
@@ -1,10 +1,9 @@
1
- import { Disposable } from '@univerjs/core';
2
- import { IDisposable } from '@wendellhu/redi';
1
+ import { Disposable, IDisposable } from '@univerjs/core';
3
2
  import { Observable } from 'rxjs';
4
3
  import { IShortcutService } from '../shortcut/shortcut.service';
5
4
  import { IDisplayMenuItem, IMenuItem, MenuConfig, MenuPosition } from './menu';
6
5
 
7
- export declare const IMenuService: import('@wendellhu/redi').IdentifierDecorator<IMenuService>;
6
+ export declare const IMenuService: import('@univerjs/core').IdentifierDecorator<IMenuService>;
8
7
  export interface IMenuService {
9
8
  menuChanged$: Observable<void>;
10
9
  addMenuItem(item: IMenuItem, config: MenuConfig): IDisposable;
@@ -1,5 +1,5 @@
1
1
  import { IMessageOptions, IMessageProps } from '@univerjs/design';
2
- import { IDisposable } from '@wendellhu/redi';
2
+ import { IDisposable } from '@univerjs/core';
3
3
  import { IMessageService } from '../message.service';
4
4
 
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import { IMessageOptions, IMessageProps, Message } from '@univerjs/design';
2
- import { IDisposable } from '@wendellhu/redi';
2
+ import { IDisposable } from '@univerjs/core';
3
3
  import { IMessageService } from './message.service';
4
4
 
5
5
  export declare class DesktopMessageService implements IMessageService, IDisposable {
@@ -1,7 +1,7 @@
1
1
  import { IMessageOptions } from '@univerjs/design';
2
- import { IDisposable } from '@wendellhu/redi';
2
+ import { IDisposable } from '@univerjs/core';
3
3
 
4
- export declare const IMessageService: import('@wendellhu/redi').IdentifierDecorator<IMessageService>;
4
+ export declare const IMessageService: import('@univerjs/core').IdentifierDecorator<IMessageService>;
5
5
  export interface IMessageService {
6
6
  show(options: IMessageOptions): IDisposable;
7
7
  setContainer(container: HTMLElement): void;
@@ -1,5 +1,4 @@
1
- import { Disposable } from '@univerjs/core';
2
- import { IDisposable, Injector } from '@wendellhu/redi';
1
+ import { Disposable, IDisposable, Injector } from '@univerjs/core';
3
2
  import { INotificationOptions } from '../../components/notification/Notification';
4
3
  import { IUIPartsService } from '../parts/parts.service';
5
4
  import { INotificationService } from './notification.service';
@@ -1,7 +1,7 @@
1
- import { IDisposable } from '@wendellhu/redi';
1
+ import { IDisposable } from '@univerjs/core';
2
2
  import { INotificationOptions } from '../../components/notification/Notification';
3
3
 
4
- export declare const INotificationService: import('@wendellhu/redi').IdentifierDecorator<INotificationService>;
4
+ export declare const INotificationService: import('@univerjs/core').IdentifierDecorator<INotificationService>;
5
5
  export interface INotificationService {
6
6
  show(params: INotificationOptions): IDisposable;
7
7
  }
@@ -1,6 +1,5 @@
1
- import { IDisposable } from '@wendellhu/redi';
1
+ import { IDisposable, Disposable } from '@univerjs/core';
2
2
  import { Observable } from 'rxjs';
3
- import { Disposable } from '@univerjs/core';
4
3
  import { ComponentType } from '../../common/component-manager';
5
4
 
6
5
  type ComponentRenderer = () => ComponentType;
@@ -19,7 +18,7 @@ export interface IUIPartsService {
19
18
  registerComponent(part: ComponentPartKey, componentFactory: () => ComponentType): IDisposable;
20
19
  getComponents(part: ComponentPartKey): Set<ComponentRenderer>;
21
20
  }
22
- export declare const IUIPartsService: import('@wendellhu/redi').IdentifierDecorator<IUIPartsService>;
21
+ export declare const IUIPartsService: import('@univerjs/core').IdentifierDecorator<IUIPartsService>;
23
22
  export declare class UIPartsService extends Disposable implements IUIPartsService {
24
23
  private _componentsByPart;
25
24
  private readonly _componentRegistered$;
@@ -21,7 +21,7 @@ export interface IPlatformService {
21
21
  readonly isWindows: boolean;
22
22
  readonly isLinux: boolean;
23
23
  }
24
- export declare const IPlatformService: import('@wendellhu/redi').IdentifierDecorator<IPlatformService>;
24
+ export declare const IPlatformService: import('@univerjs/core').IdentifierDecorator<IPlatformService>;
25
25
  export declare class PlatformService implements IPlatformService {
26
26
  get isMac(): boolean;
27
27
  get isWindows(): boolean;
@@ -20,7 +20,7 @@ export interface ICanvasPopupService {
20
20
  popups$: Observable<[string, IPopup][]>;
21
21
  get popups(): [string, IPopup][];
22
22
  }
23
- export declare const ICanvasPopupService: import('@wendellhu/redi').IdentifierDecorator<ICanvasPopupService>;
23
+ export declare const ICanvasPopupService: import('@univerjs/core').IdentifierDecorator<ICanvasPopupService>;
24
24
  export declare class CanvasPopupService extends Disposable implements ICanvasPopupService {
25
25
  private readonly _popupMap;
26
26
  private readonly _popups$;
@@ -1,5 +1,4 @@
1
- import { Disposable } from '@univerjs/core';
2
- import { IDisposable } from '@wendellhu/redi';
1
+ import { Disposable, IDisposable } from '@univerjs/core';
3
2
  import { Observable } from 'rxjs';
4
3
 
5
4
  export interface IProgressCount {
@@ -51,4 +50,4 @@ export declare class ProgressService extends Disposable implements IProgressServ
51
50
  getTaskCount(): number;
52
51
  private _clear;
53
52
  }
54
- export declare const IProgressService: import('@wendellhu/redi').IdentifierDecorator<IProgressService>;
53
+ export declare const IProgressService: import('@univerjs/core').IdentifierDecorator<IProgressService>;
@@ -1,5 +1,4 @@
1
- import { IUnitRange, Nullable, Disposable } from '@univerjs/core';
2
- import { IDisposable } from '@wendellhu/redi';
1
+ import { IDisposable, IUnitRange, Nullable, Disposable } from '@univerjs/core';
3
2
  import { Observable } from 'rxjs';
4
3
 
5
4
  export interface IRangeSelectorRange extends IUnitRange {
@@ -24,4 +23,4 @@ export declare class RangeSelectorService extends Disposable implements IRangeSe
24
23
  selectionChange(range: IRangeSelectorRange[]): void;
25
24
  openSelector(): void;
26
25
  }
27
- export declare const IRangeSelectorService: import('@wendellhu/redi').IdentifierDecorator<IRangeSelectorService>;
26
+ export declare const IRangeSelectorService: import('@univerjs/core').IdentifierDecorator<IRangeSelectorService>;
@@ -79,8 +79,10 @@ export declare enum KeyCode {
79
79
  F12 = 123,
80
80
  NUM_LOCK = 144,
81
81
  SCROLL_LOCK = 145,
82
- MINUS = 189,
83
82
  EQUAL = 187,
83
+ COMMA = 188,
84
+ MINUS = 189,
85
+ PERIOD = 190,
84
86
  BACK_SLASH = 220
85
87
  }
86
88
  export declare const KeyCodeToChar: {
@@ -1,5 +1,4 @@
1
- import { Disposable, ICommandService, IContextService } from '@univerjs/core';
2
- import { IDisposable } from '@wendellhu/redi';
1
+ import { Disposable, ICommandService, IContextService, IDisposable } from '@univerjs/core';
3
2
  import { Observable } from 'rxjs';
4
3
  import { ILayoutService } from '../layout/layout.service';
5
4
  import { IPlatformService } from '../platform/platform.service';
@@ -35,7 +34,7 @@ export interface IShortcutService {
35
34
  getAllShortcuts(): IShortcutItem[];
36
35
  setDisable(disable: boolean): void;
37
36
  }
38
- export declare const IShortcutService: import('@wendellhu/redi').IdentifierDecorator<IShortcutService>;
37
+ export declare const IShortcutService: import('@univerjs/core').IdentifierDecorator<IShortcutService>;
39
38
  export declare class ShortcutService extends Disposable implements IShortcutService {
40
39
  private readonly _commandService;
41
40
  private readonly _platformService;
@@ -1,4 +1,4 @@
1
- import { IDisposable } from '@wendellhu/redi';
1
+ import { IDisposable } from '@univerjs/core';
2
2
  import { Subject } from 'rxjs';
3
3
  import { ISidebarMethodOptions } from '../../views/components/sidebar/interface';
4
4
  import { ISidebarService } from './sidebar.service';
@@ -1,8 +1,8 @@
1
- import { IDisposable } from '@wendellhu/redi';
1
+ import { IDisposable } from '@univerjs/core';
2
2
  import { Subject } from 'rxjs';
3
3
  import { ISidebarMethodOptions } from '../../views/components/sidebar/interface';
4
4
 
5
- export declare const ISidebarService: import('@wendellhu/redi').IdentifierDecorator<ISidebarService>;
5
+ export declare const ISidebarService: import('@univerjs/core').IdentifierDecorator<ISidebarService>;
6
6
  export interface ISidebarService {
7
7
  readonly sidebarOptions$: Subject<ISidebarMethodOptions>;
8
8
  readonly scrollEvent$: Subject<Event>;
@@ -1,4 +1,4 @@
1
- import { IDisposable } from '@wendellhu/redi';
1
+ import { IDisposable } from '@univerjs/core';
2
2
  import { ForwardRefExoticComponent } from 'react';
3
3
  import { Subject } from 'rxjs';
4
4
  import { ComponentManager } from '../../common/component-manager';
@@ -1,7 +1,7 @@
1
- import { IDisposable } from '@wendellhu/redi';
1
+ import { IDisposable } from '@univerjs/core';
2
2
  import { Subject } from 'rxjs';
3
3
 
4
- export declare const IZenZoneService: import('@wendellhu/redi').IdentifierDecorator<IZenZoneService>;
4
+ export declare const IZenZoneService: import('@univerjs/core').IdentifierDecorator<IZenZoneService>;
5
5
  export interface IZenZoneService {
6
6
  readonly visible$: Subject<boolean>;
7
7
  readonly componentKey$: Subject<string>;
@@ -1,5 +1,4 @@
1
- import { IContextService, Plugin } from '@univerjs/core';
2
- import { Injector } from '@wendellhu/redi';
1
+ import { IContextService, Injector, Plugin } from '@univerjs/core';
3
2
  import { IUniverUIConfig } from './controllers/ui/ui.controller';
4
3
 
5
4
  export declare const UNIVER_UI_PLUGIN_NAME = "UNIVER_UI_PLUGIN";
@@ -1,5 +1,5 @@
1
1
  import { ComponentType, default as React } from 'react';
2
- import { Injector } from '@wendellhu/redi';
2
+ import { Injector } from '@univerjs/core';
3
3
 
4
4
  export interface IComponentContainerProps {
5
5
  components?: Set<ComponentType>;