@univerjs/sheets-ui 0.6.10-nightly.202504141607 → 0.6.10-nightly.202504161609

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
  };
@@ -3,7 +3,7 @@ import { DocSelectionManagerService } from '@univerjs/docs';
3
3
  import { IEditorService } from '@univerjs/docs-ui';
4
4
  import { IFunctionService, LexerTreeBuilder } from '@univerjs/engine-formula';
5
5
  import { IRenderManagerService } from '@univerjs/engine-render';
6
- import { SheetInterceptorService } from '@univerjs/sheets';
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';
@@ -22,16 +22,17 @@ export declare class EditingRenderController extends Disposable {
22
22
  private readonly _univerInstanceService;
23
23
  private readonly _sheetInterceptorService;
24
24
  private readonly _sheetCellEditorResizeService;
25
+ private readonly _selectionManagerService;
25
26
  /**
26
27
  * It is used to distinguish whether the user has actively moved the cursor in the editor, mainly through mouse clicks.
27
28
  */
28
29
  private _cursorChange;
29
30
  /** If the corresponding unit is active and prepared for editing. */
30
31
  private _editingUnit;
31
- private _workbookSelections;
32
32
  _cursorTimeout: NodeJS.Timeout;
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);
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);
34
34
  dispose(): void;
35
+ private get _workbookSelections();
35
36
  private _init;
36
37
  private _initEditorVisibilityListener;
37
38
  private _listenEditorFocus;
@@ -18,6 +18,7 @@ export declare class EditorBridgeRenderController extends RxDisposable implement
18
18
  private _disposeCurrent;
19
19
  private _initSelectionChangeListener;
20
20
  private _updateEditorPosition;
21
+ refreshEditorPosition(): void;
21
22
  private _initEventListener;
22
23
  /**
23
24
  * Should activate the editor when the user inputs text.
@@ -56,7 +56,7 @@ export interface IFWorkbookSheetsUIMixin {
56
56
  * title: (
57
57
  * <>
58
58
  * <Button onClick={() => { console.log('Cancel clicked') }}>Cancel</Button>
59
- * <Button type="primary" onClick={() => { console.log('Confirm clicked') }} style={{marginLeft: '10px'}}>Confirm</Button>
59
+ * <Button variant="primary" onClick={() => { console.log('Confirm clicked') }} style={{marginLeft: '10px'}}>Confirm</Button>
60
60
  * </>
61
61
  * )
62
62
  * },
@@ -1,15 +1,29 @@
1
- import { IRange, Disposable, InterceptorManager } from '@univerjs/core';
2
- import { Scene } from '@univerjs/engine-render';
3
- interface ISheetPos {
1
+ import { DisposableCollection, IRange, Worksheet, Disposable, InterceptorManager } from '@univerjs/core';
2
+ import { Engine, Scene, Spreadsheet, SpreadsheetSkeleton } from '@univerjs/engine-render';
3
+ interface ISheetPrintContext {
4
4
  unitId: string;
5
5
  subUnitId: string;
6
+ scene: Scene;
7
+ engine: Engine;
8
+ root: HTMLElement;
9
+ worksheet: Worksheet;
10
+ skeleton: SpreadsheetSkeleton;
11
+ offset: {
12
+ offsetX: number;
13
+ offsetY: number;
14
+ };
15
+ }
16
+ interface ISheetPrintComponentContext extends ISheetPrintContext {
17
+ spreadsheet: Spreadsheet;
6
18
  }
7
19
  export declare class SheetPrintInterceptorService extends Disposable {
8
20
  readonly interceptor: InterceptorManager<{
9
- PRINTING_RANGE: import('@univerjs/core').IInterceptor<IRange, ISheetPos>;
10
- PRINTING_COMPONENT_COLLECT: import('@univerjs/core').IInterceptor<undefined, ISheetPos & {
11
- scene: Scene;
21
+ PRINTING_RANGE: import('@univerjs/core').IInterceptor<IRange, {
22
+ unitId: string;
23
+ subUnitId: string;
12
24
  }>;
25
+ PRINTING_COMPONENT_COLLECT: import('@univerjs/core').IInterceptor<undefined, ISheetPrintComponentContext>;
26
+ PRINTING_DOM_COLLECT: import('@univerjs/core').IInterceptor<DisposableCollection, ISheetPrintContext>;
13
27
  }>;
14
28
  constructor();
15
29
  }