@univerjs/ui 0.15.0-insiders.20260106-79b11f9 → 0.15.0-insiders.20260107-3d1cfdf
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 +10 -10
- package/lib/es/index.js +3737 -3697
- package/lib/index.js +3737 -3697
- package/lib/types/index.d.ts +1 -0
- package/lib/types/services/ribbon/ribbon.service.d.ts +31 -0
- package/lib/umd/index.js +9 -9
- package/package.json +5 -5
package/lib/types/index.d.ts
CHANGED
|
@@ -72,6 +72,7 @@ export { INotificationService } from './services/notification/notification.servi
|
|
|
72
72
|
export { BuiltInUIPart, IUIPartsService, UIPartsService } from './services/parts/parts.service';
|
|
73
73
|
export { IPlatformService, PlatformService } from './services/platform/platform.service';
|
|
74
74
|
export { CanvasPopupService, ICanvasPopupService, type IPopup } from './services/popup/canvas-popup.service';
|
|
75
|
+
export { DesktopRibbonService, IRibbonService } from './services/ribbon/ribbon.service';
|
|
75
76
|
export { KeyCode, MetaKeys } from './services/shortcut/keycode';
|
|
76
77
|
export { ShortcutPanelService } from './services/shortcut/shortcut-panel.service';
|
|
77
78
|
export { type IShortcutItem, IShortcutService, ShortcutService } from './services/shortcut/shortcut.service';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { IMenuSchema, IMenuManagerService } from '../menu/menu-manager.service';
|
|
3
|
+
import { Disposable, IUniverInstanceService } from '@univerjs/core';
|
|
4
|
+
export declare const IRibbonService: import('@wendellhu/redi').IdentifierDecorator<IRibbonService>;
|
|
5
|
+
export interface IRibbonService {
|
|
6
|
+
ribbon$: Observable<IMenuSchema[]>;
|
|
7
|
+
activatedTab$: Observable<string>;
|
|
8
|
+
collapsedIds$: Observable<string[]>;
|
|
9
|
+
fakeToolbarVisible$: Observable<boolean>;
|
|
10
|
+
setActivatedTab(tab: string): void;
|
|
11
|
+
setCollapsedIds(ids: string[]): void;
|
|
12
|
+
setFakeToolbarVisible(visible: boolean): void;
|
|
13
|
+
}
|
|
14
|
+
export declare class DesktopRibbonService extends Disposable implements IRibbonService {
|
|
15
|
+
private readonly _menuManagerService;
|
|
16
|
+
private readonly _univerInstanceService;
|
|
17
|
+
private readonly _ribbon$;
|
|
18
|
+
readonly ribbon$: Observable<IMenuSchema[]>;
|
|
19
|
+
private readonly _activatedTab$;
|
|
20
|
+
readonly activatedTab$: Observable<string>;
|
|
21
|
+
private readonly _collapsedIds$;
|
|
22
|
+
readonly collapsedIds$: Observable<string[]>;
|
|
23
|
+
private readonly _fakeToolbarVisible$;
|
|
24
|
+
readonly fakeToolbarVisible$: Observable<boolean>;
|
|
25
|
+
constructor(_menuManagerService: IMenuManagerService, _univerInstanceService: IUniverInstanceService);
|
|
26
|
+
setActivatedTab(tab: string): void;
|
|
27
|
+
setCollapsedIds(ids: string[]): void;
|
|
28
|
+
setFakeToolbarVisible(visible: boolean): void;
|
|
29
|
+
private _initRibbonSubscription;
|
|
30
|
+
private _updateRibbon;
|
|
31
|
+
}
|