@univerjs/sheets-ui 0.6.10-nightly.202504121606 → 0.6.10-nightly.202504141607
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 +5838 -5840
- package/lib/index.js +5838 -5840
- package/lib/types/controllers/editor/editing.render-controller.d.ts +8 -12
- package/lib/types/controllers/render-controllers/editor-bridge.render-controller.d.ts +1 -7
- package/lib/types/services/editor/cell-editor-resize.service.d.ts +10 -7
- package/lib/umd/index.js +24 -24
- package/package.json +11 -11
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { DocumentDataModel, ICellData, IDocumentBody, IDocumentData, IStyleData, Nullable, Styles,
|
|
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';
|
|
6
|
-
import {
|
|
5
|
+
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
6
|
+
import { SheetInterceptorService } 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
|
|
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,19 @@ 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;
|
|
26
25
|
/**
|
|
27
26
|
* It is used to distinguish whether the user has actively moved the cursor in the editor, mainly through mouse clicks.
|
|
28
27
|
*/
|
|
29
28
|
private _cursorChange;
|
|
30
29
|
/** If the corresponding unit is active and prepared for editing. */
|
|
31
|
-
private
|
|
30
|
+
private _editingUnit;
|
|
32
31
|
private _workbookSelections;
|
|
33
|
-
private _d;
|
|
34
32
|
_cursorTimeout: NodeJS.Timeout;
|
|
35
|
-
constructor(
|
|
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);
|
|
37
34
|
dispose(): void;
|
|
38
|
-
private _disposeCurrent;
|
|
39
35
|
private _init;
|
|
40
36
|
private _initEditorVisibilityListener;
|
|
41
37
|
private _listenEditorFocus;
|
|
@@ -65,9 +61,9 @@ export declare class EditingRenderController extends Disposable implements IRend
|
|
|
65
61
|
private _cursorStateListener;
|
|
66
62
|
private _moveInEditor;
|
|
67
63
|
private _getDocumentDataModel;
|
|
68
|
-
private _isCurrentSheetFocused;
|
|
69
64
|
private _getEditorSkeleton;
|
|
70
65
|
private _getEditorViewModel;
|
|
66
|
+
private _getEditingUnit;
|
|
71
67
|
private _emptyDocumentDataModel;
|
|
72
68
|
}
|
|
73
69
|
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,13 +9,11 @@ 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,
|
|
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;
|
|
@@ -31,9 +28,6 @@ export declare class EditorBridgeRenderController extends RxDisposable implement
|
|
|
31
28
|
private _showEditorByKeyboard;
|
|
32
29
|
private _tryHideEditor;
|
|
33
30
|
private _hideEditor;
|
|
34
|
-
private _initialRangeSelector;
|
|
35
|
-
private _rangeSelector;
|
|
36
|
-
private _getCurrentUnitIdAndSheetId;
|
|
37
31
|
private _getSheetObject;
|
|
38
32
|
private _isCurrentSheetFocused;
|
|
39
33
|
}
|
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
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
|
|
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(
|
|
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,
|