@univerjs/sheets-ui 0.6.0-nightly.202502061605 → 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.
@@ -21,7 +21,7 @@ export declare class AutoFillController extends Disposable {
21
21
  private _initDefaultHook;
22
22
  private _initQuitListener;
23
23
  private _quit;
24
- private _onSelectionControlFillChanged;
24
+ private _initSelectionControlFillChanged;
25
25
  private _handleDbClickFill;
26
26
  private _detectFillRange;
27
27
  private _getApplyData;
@@ -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;
@@ -12,7 +12,6 @@ export declare class FormatPainterController extends Disposable {
12
12
  private readonly _injector;
13
13
  constructor(_commandService: ICommandService, _formatPainterService: IFormatPainterService, _univerInstanceService: IUniverInstanceService, _renderManagerService: IRenderManagerService, _selectionManagerService: SheetsSelectionsService, _sheetInterceptorService: SheetInterceptorService, _injector: Injector);
14
14
  private _initialize;
15
- private _commandExecutedListener;
16
15
  private _addDefaultHook;
17
16
  private _collectSelectionRangeFormat;
18
17
  private _getUndoRedoMutationInfo;
@@ -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
+ }
@@ -1,10 +1,14 @@
1
- import { Workbook, Disposable } from '@univerjs/core';
1
+ import { Workbook, Disposable, ICommandService } from '@univerjs/core';
2
2
  import { IRenderContext, IRenderModule } from '@univerjs/engine-render';
3
3
  import { IFormatPainterService } from '../../services/format-painter/format-painter.service';
4
+ import { ISheetSelectionRenderService } from '../../services/selection/base-selection-render.service';
4
5
  export declare class FormatPainterRenderController extends Disposable implements IRenderModule {
5
6
  private readonly _context;
6
7
  private readonly _formatPainterService;
7
- constructor(_context: IRenderContext<Workbook>, _formatPainterService: IFormatPainterService);
8
+ private readonly _selectionRenderService;
9
+ private readonly _commandService;
10
+ constructor(_context: IRenderContext<Workbook>, _formatPainterService: IFormatPainterService, _selectionRenderService: ISheetSelectionRenderService, _commandService: ICommandService);
8
11
  private _initialize;
12
+ private _commandExecutedListener;
9
13
  private _bindFormatPainterStatus;
10
14
  }
@@ -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>;
@@ -55,6 +55,10 @@ export declare class SheetSkeletonManagerService extends Disposable implements I
55
55
  */
56
56
  getWorksheetSkeleton(sheetId: string): Nullable<ISheetSkeletonManagerParam>;
57
57
  getUnitSkeleton(unitId: string, sheetId: string): Nullable<ISheetSkeletonManagerParam>;
58
+ /**
59
+ * Command in COMMAND_LISTENER_SKELETON_CHANGE would cause setCurrent, see @packages/sheets-ui/src/controllers/render-controllers/sheet.render-controller.ts
60
+ * @param searchParam
61
+ */
58
62
  setCurrent(searchParam: ISheetSkeletonManagerSearch): Nullable<ISheetSkeletonManagerParam>;
59
63
  setSkeletonParam(sheetId: string, skp: ISheetSkeletonManagerParam): void;
60
64
  private _setCurrent;