@univerjs/sheets-ui 0.6.0-nightly.202502071606 → 0.6.0-nightly.202502081605
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 +26 -26
- package/lib/es/index.js +4404 -4380
- package/lib/types/controllers/clipboard/clipboard.controller.d.ts +3 -0
- package/lib/types/controllers/render-controllers/clipboard.render-controller.d.ts +13 -0
- package/lib/types/services/clipboard/clipboard.service.d.ts +4 -0
- package/lib/umd/index.js +26 -26
- package/package.json +11 -11
|
@@ -13,7 +13,10 @@ export declare class SheetClipboardController extends RxDisposable {
|
|
|
13
13
|
private readonly _messageService;
|
|
14
14
|
private readonly _localService;
|
|
15
15
|
protected readonly _uiPartsService: IUIPartsService;
|
|
16
|
+
private _refreshOptionalPaste$;
|
|
17
|
+
refreshOptionalPaste$: import('rxjs').Observable<unknown>;
|
|
16
18
|
constructor(_injector: Injector, _currentUniverSheet: IUniverInstanceService, _renderManagerService: IRenderManagerService, _commandService: ICommandService, _contextService: IContextService, _configService: IConfigService, _sheetClipboardService: ISheetClipboardService, _messageService: IMessageService, _localService: LocaleService, _uiPartsService: IUIPartsService);
|
|
19
|
+
refreshOptionalPaste(): void;
|
|
17
20
|
private _pasteWithDoc;
|
|
18
21
|
private _resolveClipboardFiles;
|
|
19
22
|
private _init;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Workbook, Disposable } from '@univerjs/core';
|
|
2
|
+
import { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
3
|
+
import { ISheetClipboardService } from '../../services/clipboard/clipboard.service';
|
|
4
|
+
import { SheetSkeletonManagerService } from '../../services/sheet-skeleton-manager.service';
|
|
5
|
+
import { SheetClipboardController } from '../clipboard/clipboard.controller';
|
|
6
|
+
export declare class ClipboardRenderController extends Disposable implements IRenderModule {
|
|
7
|
+
private readonly _context;
|
|
8
|
+
private readonly _sheetSkeletonManagerService;
|
|
9
|
+
private readonly _sheetClipboardService;
|
|
10
|
+
private readonly _sheetClipboardController;
|
|
11
|
+
constructor(_context: IRenderContext<Workbook>, _sheetSkeletonManagerService: SheetSkeletonManagerService, _sheetClipboardService: ISheetClipboardService, _sheetClipboardController: SheetClipboardController);
|
|
12
|
+
private _initialize;
|
|
13
|
+
}
|
|
@@ -26,7 +26,9 @@ interface ICopyContent {
|
|
|
26
26
|
export interface ISheetClipboardService {
|
|
27
27
|
showMenu$: Observable<boolean>;
|
|
28
28
|
setShowMenu: (show: boolean) => void;
|
|
29
|
+
getPasteMenuVisible: () => boolean;
|
|
29
30
|
pasteOptionsCache$: Observable<IPasteOptionCache | null>;
|
|
31
|
+
getPasteOptionsCache: () => IPasteOptionCache | null;
|
|
30
32
|
updatePasteOptionsCache(cache: IPasteOptionCache | null): void;
|
|
31
33
|
copy(): Promise<boolean>;
|
|
32
34
|
cut(): Promise<boolean>;
|
|
@@ -69,6 +71,8 @@ export declare class SheetClipboardService extends Disposable implements ISheetC
|
|
|
69
71
|
readonly showMenu$: Observable<boolean>;
|
|
70
72
|
constructor(_logService: ILogService, _univerInstanceService: IUniverInstanceService, _selectionManagerService: SheetsSelectionsService, _clipboardInterfaceService: IClipboardInterfaceService, _undoRedoService: IUndoRedoService, _commandService: ICommandService, _markSelectionService: IMarkSelectionService, _notificationService: INotificationService, _platformService: IPlatformService, _renderManagerService: IRenderManagerService, _themeService: ThemeService, _localeService: LocaleService, _errorService: ErrorService, _injector: Injector);
|
|
71
73
|
setShowMenu(show: boolean): void;
|
|
74
|
+
getPasteMenuVisible(): boolean;
|
|
75
|
+
getPasteOptionsCache(): IPasteOptionCache | null;
|
|
72
76
|
copyContentCache(): CopyContentCache;
|
|
73
77
|
generateCopyContent(workbookId: string, worksheetId: string, range: IRange): Nullable<ICopyContent>;
|
|
74
78
|
copy(copyType?: COPY_TYPE): Promise<boolean>;
|