@univerjs/sheets-ui 0.6.10-nightly.202504131606 → 0.6.10-nightly.202504151606

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.
@@ -55,7 +55,7 @@ export declare function getSetCellValueMutations(pasteTo: ISheetDiscreteRangeLoc
55
55
  * @param accessor
56
56
  * @param withRichFormat
57
57
  */
58
- export declare function getSetCellStyleMutations(pasteTo: ISheetDiscreteRangeLocation, matrix: ObjectMatrix<ICellDataWithSpanInfo>, accessor: IAccessor, withRichFormat?: boolean): {
58
+ export declare function getSetCellStyleMutations(pasteTo: ISheetDiscreteRangeLocation, pasteFrom: Nullable<ISheetDiscreteRangeLocation>, matrix: ObjectMatrix<ICellDataWithSpanInfo>, accessor: IAccessor, withRichFormat?: boolean): {
59
59
  undos: IMutationInfo<object>[];
60
60
  redos: IMutationInfo<object>[];
61
61
  };
@@ -1,14 +1,13 @@
1
- import { DocumentDataModel, ICellData, IDocumentBody, IDocumentData, IStyleData, Nullable, Styles, Workbook, Disposable, ICommandService, IContextService, IUndoRedoService, IUniverInstanceService, LocaleService } from '@univerjs/core';
2
- import { IRenderContext, IRenderModule, IRenderManagerService } from '@univerjs/engine-render';
1
+ import { DocumentDataModel, ICellData, IDocumentBody, IDocumentData, IStyleData, Nullable, Styles, Disposable, ICommandService, IContextService, IUndoRedoService, IUniverInstanceService, LocaleService } from '@univerjs/core';
3
2
  import { DocSelectionManagerService } from '@univerjs/docs';
4
3
  import { IEditorService } from '@univerjs/docs-ui';
5
4
  import { IFunctionService, LexerTreeBuilder } from '@univerjs/engine-formula';
5
+ import { IRenderManagerService } from '@univerjs/engine-render';
6
6
  import { SheetInterceptorService, SheetsSelectionsService } from '@univerjs/sheets';
7
7
  import { IEditorBridgeService } from '../../services/editor-bridge.service';
8
8
  import { ICellEditorManagerService } from '../../services/editor/cell-editor-manager.service';
9
9
  import { SheetCellEditorResizeService } from '../../services/editor/cell-editor-resize.service';
10
- export declare class EditingRenderController extends Disposable implements IRenderModule {
11
- private readonly _context;
10
+ export declare class EditingRenderController extends Disposable {
12
11
  private readonly _undoRedoService;
13
12
  private readonly _contextService;
14
13
  private readonly _renderManagerService;
@@ -20,22 +19,20 @@ export declare class EditingRenderController extends Disposable implements IRend
20
19
  private readonly _commandService;
21
20
  protected readonly _localService: LocaleService;
22
21
  private readonly _editorService;
23
- private readonly _sheetCellEditorResizeService;
24
22
  private readonly _univerInstanceService;
25
23
  private readonly _sheetInterceptorService;
24
+ private readonly _sheetCellEditorResizeService;
25
+ private readonly _selectionManagerService;
26
26
  /**
27
27
  * It is used to distinguish whether the user has actively moved the cursor in the editor, mainly through mouse clicks.
28
28
  */
29
29
  private _cursorChange;
30
30
  /** If the corresponding unit is active and prepared for editing. */
31
- private _isUnitEditing;
32
- private _workbookSelections;
33
- private _d;
31
+ private _editingUnit;
34
32
  _cursorTimeout: NodeJS.Timeout;
35
- constructor(_context: IRenderContext<Workbook>, selectionManagerService: SheetsSelectionsService, _undoRedoService: IUndoRedoService, _contextService: IContextService, _renderManagerService: IRenderManagerService, _editorBridgeService: IEditorBridgeService, _cellEditorManagerService: ICellEditorManagerService, _lexerTreeBuilder: LexerTreeBuilder, _functionService: IFunctionService, _textSelectionManagerService: DocSelectionManagerService, _commandService: ICommandService, _localService: LocaleService, _editorService: IEditorService, _sheetCellEditorResizeService: SheetCellEditorResizeService, // RenderModule
36
- _univerInstanceService: IUniverInstanceService, _sheetInterceptorService: SheetInterceptorService);
33
+ constructor(_undoRedoService: IUndoRedoService, _contextService: IContextService, _renderManagerService: IRenderManagerService, _editorBridgeService: IEditorBridgeService, _cellEditorManagerService: ICellEditorManagerService, _lexerTreeBuilder: LexerTreeBuilder, _functionService: IFunctionService, _textSelectionManagerService: DocSelectionManagerService, _commandService: ICommandService, _localService: LocaleService, _editorService: IEditorService, _univerInstanceService: IUniverInstanceService, _sheetInterceptorService: SheetInterceptorService, _sheetCellEditorResizeService: SheetCellEditorResizeService, _selectionManagerService: SheetsSelectionsService);
37
34
  dispose(): void;
38
- private _disposeCurrent;
35
+ private get _workbookSelections();
39
36
  private _init;
40
37
  private _initEditorVisibilityListener;
41
38
  private _listenEditorFocus;
@@ -65,9 +62,9 @@ export declare class EditingRenderController extends Disposable implements IRend
65
62
  private _cursorStateListener;
66
63
  private _moveInEditor;
67
64
  private _getDocumentDataModel;
68
- private _isCurrentSheetFocused;
69
65
  private _getEditorSkeleton;
70
66
  private _getEditorViewModel;
67
+ private _getEditingUnit;
71
68
  private _emptyDocumentDataModel;
72
69
  }
73
70
  export declare function getCellDataByInput(cellData: ICellData, snapshot: Nullable<IDocumentData>, lexerTreeBuilder: LexerTreeBuilder, localeService: LocaleService, functionService: IFunctionService, styles: Styles): ICellData | null;
@@ -1,6 +1,5 @@
1
1
  import { Workbook, ICommandService, IContextService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
2
2
  import { IRenderContext, IRenderModule, IRenderManagerService } from '@univerjs/engine-render';
3
- import { IEditorService, IRangeSelectorService } from '@univerjs/docs-ui';
4
3
  import { SheetsSelectionsService } from '@univerjs/sheets';
5
4
  import { IEditorBridgeService } from '../../services/editor-bridge.service';
6
5
  import { SheetSkeletonManagerService } from '../../services/sheet-skeleton-manager.service';
@@ -10,17 +9,16 @@ export declare class EditorBridgeRenderController extends RxDisposable implement
10
9
  private readonly _commandService;
11
10
  private readonly _editorBridgeService;
12
11
  private readonly _selectionManagerService;
13
- private readonly _rangeSelectorService;
14
12
  private readonly _contextService;
15
13
  private readonly _renderManagerService;
16
- private readonly _editorService;
17
14
  private readonly _sheetSkeletonManagerService;
18
15
  private _d;
19
- constructor(_context: IRenderContext<Workbook>, _instanceSrv: IUniverInstanceService, _commandService: ICommandService, _editorBridgeService: IEditorBridgeService, _selectionManagerService: SheetsSelectionsService, _rangeSelectorService: IRangeSelectorService, _contextService: IContextService, _renderManagerService: IRenderManagerService, _editorService: IEditorService, _sheetSkeletonManagerService: SheetSkeletonManagerService);
16
+ constructor(_context: IRenderContext<Workbook>, _instanceSrv: IUniverInstanceService, _commandService: ICommandService, _editorBridgeService: IEditorBridgeService, _selectionManagerService: SheetsSelectionsService, _contextService: IContextService, _renderManagerService: IRenderManagerService, _sheetSkeletonManagerService: SheetSkeletonManagerService);
20
17
  private _init;
21
18
  private _disposeCurrent;
22
19
  private _initSelectionChangeListener;
23
20
  private _updateEditorPosition;
21
+ refreshEditorPosition(): void;
24
22
  private _initEventListener;
25
23
  /**
26
24
  * Should activate the editor when the user inputs text.
@@ -31,9 +29,6 @@ export declare class EditorBridgeRenderController extends RxDisposable implement
31
29
  private _showEditorByKeyboard;
32
30
  private _tryHideEditor;
33
31
  private _hideEditor;
34
- private _initialRangeSelector;
35
- private _rangeSelector;
36
- private _getCurrentUnitIdAndSheetId;
37
32
  private _getSheetObject;
38
33
  private _isCurrentSheetFocused;
39
34
  }
@@ -1,18 +1,21 @@
1
- import { Workbook, Disposable, IUniverInstanceService } from '@univerjs/core';
2
- import { IRenderContext, IRenderModule, IRenderManagerService } from '@univerjs/engine-render';
1
+ import { Disposable, IUniverInstanceService } from '@univerjs/core';
2
+ import { IRenderManagerService } from '@univerjs/engine-render';
3
3
  import { ILayoutService } from '@univerjs/ui';
4
4
  import { IEditorBridgeService } from '../editor-bridge.service';
5
- import { SheetSkeletonManagerService } from '../sheet-skeleton-manager.service';
6
5
  import { ICellEditorManagerService } from './cell-editor-manager.service';
7
- export declare class SheetCellEditorResizeService extends Disposable implements IRenderModule {
8
- private readonly _context;
6
+ export declare class SheetCellEditorResizeService extends Disposable {
9
7
  private readonly _layoutService;
10
8
  private readonly _cellEditorManagerService;
11
9
  private readonly _editorBridgeService;
12
10
  private readonly _renderManagerService;
13
- private readonly _sheetSkeletonManagerService;
14
11
  private readonly _univerInstanceService;
15
- constructor(_context: IRenderContext<Workbook>, _layoutService: ILayoutService, _cellEditorManagerService: ICellEditorManagerService, _editorBridgeService: IEditorBridgeService, _renderManagerService: IRenderManagerService, _sheetSkeletonManagerService: SheetSkeletonManagerService, _univerInstanceService: IUniverInstanceService);
12
+ constructor(_layoutService: ILayoutService, _cellEditorManagerService: ICellEditorManagerService, _editorBridgeService: IEditorBridgeService, _renderManagerService: IRenderManagerService, _univerInstanceService: IUniverInstanceService);
13
+ private get _currentRenderer();
14
+ private get _editingUnitId();
15
+ private get _editingRenderer();
16
+ private get _renderer();
17
+ private get _sheetSkeletonManagerService();
18
+ private get engine();
16
19
  fitTextSize(callback?: () => void): void;
17
20
  /**
18
21
  * Mainly used to pre-calculate the width of the editor,