@univerjs/sheets-ui 0.2.3 → 0.2.4-alpha.0
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 +15 -15
- package/lib/es/index.js +6106 -6082
- package/lib/types/commands/commands/__tests__/create-command-test-bed.d.ts +2 -3
- package/lib/types/commands/commands/__tests__/create-selection-command-test-bed.d.ts +12 -12
- package/lib/types/commands/operations/cell-edit.operation.d.ts +2 -0
- package/lib/types/common/utils.d.ts +1 -2
- package/lib/types/controllers/auto-fill.controller.d.ts +1 -2
- package/lib/types/controllers/auto-height.controller.d.ts +1 -2
- package/lib/types/controllers/clipboard/clipboard.controller.d.ts +1 -2
- package/lib/types/controllers/clipboard/utils.d.ts +1 -2
- package/lib/types/controllers/editor/__tests__/create-test-bed.d.ts +1 -2
- package/lib/types/controllers/editor/editing.render-controller.d.ts +24 -9
- package/lib/types/controllers/format-painter/format-painter.controller.d.ts +1 -2
- package/lib/types/controllers/hover-render.controller.d.ts +2 -2
- package/lib/types/controllers/menu/__tests__/create-menu-test-bed.d.ts +6 -6
- package/lib/types/controllers/menu/border.menu.d.ts +1 -1
- package/lib/types/controllers/menu/clear.menu.d.ts +1 -1
- package/lib/types/controllers/menu/delete.menu.d.ts +1 -1
- package/lib/types/controllers/menu/insert.menu.d.ts +1 -1
- package/lib/types/controllers/menu/menu-util.d.ts +1 -2
- package/lib/types/controllers/menu/menu.d.ts +1 -2
- package/lib/types/controllers/menu/merge.menu.d.ts +1 -1
- package/lib/types/controllers/menu/permission-menu-util.d.ts +1 -1
- package/lib/types/controllers/menu/permission.menu.d.ts +1 -1
- package/lib/types/controllers/menu/sheet.menu.d.ts +1 -1
- package/lib/types/controllers/mobile/mobile-sheet-ui.controller.d.ts +1 -2
- package/lib/types/controllers/permission/sheet-permission-interceptor-base.controller.d.ts +2 -0
- package/lib/types/controllers/permission/sheet-permission-interceptor-formula-render.controller.d.ts +1 -2
- package/lib/types/controllers/permission/sheet-permission-render.controller.d.ts +1 -2
- package/lib/types/controllers/render-controllers/editor-bridge.render-controller.d.ts +7 -5
- package/lib/types/controllers/render-controllers/freeze.render-controller.d.ts +3 -4
- package/lib/types/controllers/render-controllers/mobile/mobile-scroll.render-controller.d.ts +2 -2
- package/lib/types/controllers/render-controllers/scroll.render-controller.d.ts +3 -4
- package/lib/types/controllers/sheet-ui.controller.d.ts +1 -2
- package/lib/types/controllers/utils/range-tools.d.ts +1 -2
- package/lib/types/controllers/utils/selections-tools.d.ts +1 -2
- package/lib/types/mobile-sheets-ui-plugin.d.ts +1 -2
- package/lib/types/services/auto-fill/auto-fill.service.d.ts +2 -3
- package/lib/types/services/auto-fill/type.d.ts +1 -2
- package/lib/types/services/canvas-pop-manager.service.d.ts +1 -2
- package/lib/types/services/cell-alert-manager.service.d.ts +1 -1
- package/lib/types/services/clipboard/__tests__/clipboard-test-bed.d.ts +7 -8
- package/lib/types/services/clipboard/clipboard.service.d.ts +2 -3
- package/lib/types/services/drag-manager.service.d.ts +1 -3
- package/lib/types/services/editor/cell-editor-manager.service.d.ts +2 -3
- package/lib/types/services/editor/formula-editor-manager.service.d.ts +2 -3
- package/lib/types/services/editor-bridge.service.d.ts +7 -5
- package/lib/types/services/format-painter/format-painter.service.d.ts +1 -1
- package/lib/types/services/hover-manager.service.d.ts +1 -3
- package/lib/types/services/mark-selection/mark-selection.service.d.ts +1 -1
- package/lib/types/services/permission/worksheet-permission-render.service.d.ts +1 -1
- package/lib/types/services/scroll-manager.service.d.ts +7 -6
- package/lib/types/services/selection/base-selection-render.service.d.ts +5 -5
- package/lib/types/services/selection/mobile-selection-render.service.d.ts +3 -4
- package/lib/types/services/selection/selection-render-model.d.ts +8 -30
- package/lib/types/services/selection/selection-render.service.d.ts +1 -2
- package/lib/types/services/selection/selection-shape-extension.d.ts +1 -2
- package/lib/types/services/sheet-bar/sheet-bar.service.d.ts +2 -3
- package/lib/types/services/sheet-skeleton-manager.service.d.ts +2 -3
- package/lib/types/services/sheets-render.service.d.ts +1 -2
- package/lib/types/services/shortcut-experience.service.d.ts +1 -2
- package/lib/types/services/status-bar.service.d.ts +2 -3
- package/lib/types/sheets-ui-plugin.d.ts +1 -2
- package/lib/umd/index.js +13 -13
- package/package.json +23 -25
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Nullable, Disposable, IUniverInstanceService } from '@univerjs/core';
|
|
2
2
|
import { IDragEvent, IRenderManagerService } from '@univerjs/engine-render';
|
|
3
|
-
import { ScrollManagerService } from './scroll-manager.service';
|
|
4
3
|
import { IHoverCellPosition } from './hover-manager.service';
|
|
5
4
|
|
|
6
5
|
export interface IDragCellPosition extends IHoverCellPosition {
|
|
@@ -8,13 +7,12 @@ export interface IDragCellPosition extends IHoverCellPosition {
|
|
|
8
7
|
}
|
|
9
8
|
export declare class DragManagerService extends Disposable {
|
|
10
9
|
private readonly _univerInstanceService;
|
|
11
|
-
private readonly _scrollManagerService;
|
|
12
10
|
private readonly _renderManagerService;
|
|
13
11
|
private _currentCell$;
|
|
14
12
|
currentCell$: import('rxjs').Observable<Nullable<IDragCellPosition>>;
|
|
15
13
|
private _endCell$;
|
|
16
14
|
endCell$: import('rxjs').Observable<Nullable<IDragCellPosition>>;
|
|
17
|
-
constructor(_univerInstanceService: IUniverInstanceService,
|
|
15
|
+
constructor(_univerInstanceService: IUniverInstanceService, _renderManagerService: IRenderManagerService);
|
|
18
16
|
dispose(): void;
|
|
19
17
|
private _initCellDisposableListener;
|
|
20
18
|
private _calcActiveCell;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { IPosition, Nullable } from '@univerjs/core';
|
|
2
|
-
import { IDisposable } from '@wendellhu/redi';
|
|
1
|
+
import { IDisposable, IPosition, Nullable } from '@univerjs/core';
|
|
3
2
|
import { Observable } from 'rxjs';
|
|
4
3
|
|
|
5
4
|
export interface ICellEditorManagerParam extends Partial<IPosition> {
|
|
@@ -40,4 +39,4 @@ export declare class CellEditorManagerService implements ICellEditorManagerServi
|
|
|
40
39
|
setFocus(param?: boolean): void;
|
|
41
40
|
private _refresh;
|
|
42
41
|
}
|
|
43
|
-
export declare const ICellEditorManagerService: import('@
|
|
42
|
+
export declare const ICellEditorManagerService: import('@univerjs/core').IdentifierDecorator<CellEditorManagerService>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Nullable } from '@univerjs/core';
|
|
2
|
-
import { IDisposable } from '@wendellhu/redi';
|
|
1
|
+
import { IDisposable, Nullable } from '@univerjs/core';
|
|
3
2
|
import { Observable } from 'rxjs';
|
|
4
3
|
|
|
5
4
|
export interface IFormulaEditorManagerService {
|
|
@@ -31,4 +30,4 @@ export declare class FormulaEditorManagerService implements IDisposable {
|
|
|
31
30
|
handleFoldBtnClick(params: boolean): void;
|
|
32
31
|
private _refresh;
|
|
33
32
|
}
|
|
34
|
-
export declare const IFormulaEditorManagerService: import('@
|
|
33
|
+
export declare const IFormulaEditorManagerService: import('@univerjs/core').IdentifierDecorator<FormulaEditorManagerService>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ICellDataForSheetInterceptor, IPosition, ISelectionCell, Nullable, Disposable, InterceptorManager, IUniverInstanceService, ThemeService } from '@univerjs/core';
|
|
1
|
+
import { ICellDataForSheetInterceptor, IDisposable, IPosition, ISelectionCell, Nullable, Disposable, IContextService, InterceptorManager, IUniverInstanceService, ThemeService } from '@univerjs/core';
|
|
2
2
|
import { Engine, IDocumentLayoutObject, Scene, DeviceInputEventType, IRenderManagerService } from '@univerjs/engine-render';
|
|
3
|
-
import { ISheetLocation } from '@univerjs/sheets';
|
|
3
|
+
import { ISheetLocation, SheetsSelectionsService } from '@univerjs/sheets';
|
|
4
4
|
import { IEditorService, KeyCode } from '@univerjs/ui';
|
|
5
|
-
import { IDisposable } from '@wendellhu/redi';
|
|
6
5
|
import { Observable } from 'rxjs';
|
|
7
6
|
|
|
8
7
|
export interface IEditorBridgeServiceVisibleParam {
|
|
9
8
|
visible: boolean;
|
|
10
9
|
eventType: DeviceInputEventType;
|
|
10
|
+
unitId: string;
|
|
11
11
|
keycode?: KeyCode;
|
|
12
12
|
}
|
|
13
13
|
export interface ICurrentEditCellParam {
|
|
@@ -63,6 +63,8 @@ export declare class EditorBridgeService extends Disposable implements IEditorBr
|
|
|
63
63
|
private readonly _themeService;
|
|
64
64
|
private readonly _univerInstanceService;
|
|
65
65
|
private readonly _editorService;
|
|
66
|
+
private readonly _refSelectionsService;
|
|
67
|
+
private readonly _contextService;
|
|
66
68
|
private _editorUnitId;
|
|
67
69
|
private _isForceKeepVisible;
|
|
68
70
|
private _editorIsDirty;
|
|
@@ -80,7 +82,7 @@ export declare class EditorBridgeService extends Disposable implements IEditorBr
|
|
|
80
82
|
AFTER_CELL_EDIT: import('@univerjs/core').IInterceptor<ICellDataForSheetInterceptor, ISheetLocation>;
|
|
81
83
|
AFTER_CELL_EDIT_ASYNC: import('@univerjs/core').IInterceptor<Promise<Nullable<ICellDataForSheetInterceptor>>, ISheetLocation>;
|
|
82
84
|
}>;
|
|
83
|
-
constructor(_renderManagerService: IRenderManagerService, _themeService: ThemeService, _univerInstanceService: IUniverInstanceService, _editorService: IEditorService);
|
|
85
|
+
constructor(_renderManagerService: IRenderManagerService, _themeService: ThemeService, _univerInstanceService: IUniverInstanceService, _editorService: IEditorService, _refSelectionsService: SheetsSelectionsService, _contextService: IContextService);
|
|
84
86
|
refreshEditCellState(): void;
|
|
85
87
|
setEditCell(param: ICurrentEditCellParam): void;
|
|
86
88
|
getEditCellState(): Readonly<Nullable<IEditorBridgeServiceParam>>;
|
|
@@ -114,5 +116,5 @@ export declare class EditorBridgeService extends Disposable implements IEditorBr
|
|
|
114
116
|
changeEditorDirty(dirtyStatus: boolean): void;
|
|
115
117
|
getEditorDirty(): boolean;
|
|
116
118
|
}
|
|
117
|
-
export declare const IEditorBridgeService: import('@
|
|
119
|
+
export declare const IEditorBridgeService: import('@univerjs/core').IdentifierDecorator<EditorBridgeService>;
|
|
118
120
|
export {};
|
|
@@ -32,7 +32,7 @@ export declare enum FormatPainterStatus {
|
|
|
32
32
|
ONCE = 1,
|
|
33
33
|
INFINITE = 2
|
|
34
34
|
}
|
|
35
|
-
export declare const IFormatPainterService: import('@
|
|
35
|
+
export declare const IFormatPainterService: import('@univerjs/core').IdentifierDecorator<IFormatPainterService>;
|
|
36
36
|
export declare class FormatPainterService extends Disposable implements IFormatPainterService {
|
|
37
37
|
private readonly _selectionManagerService;
|
|
38
38
|
private readonly _themeService;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { IPosition, Nullable, Disposable, IUniverInstanceService } from '@univerjs/core';
|
|
2
2
|
import { ISheetLocation } from '@univerjs/sheets';
|
|
3
3
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
4
|
-
import { ScrollManagerService } from './scroll-manager.service';
|
|
5
4
|
|
|
6
5
|
export interface IHoverCellPosition {
|
|
7
6
|
position: IPosition;
|
|
@@ -9,13 +8,12 @@ export interface IHoverCellPosition {
|
|
|
9
8
|
}
|
|
10
9
|
export declare class HoverManagerService extends Disposable {
|
|
11
10
|
private readonly _univerInstanceService;
|
|
12
|
-
private readonly _scrollManagerService;
|
|
13
11
|
private readonly _renderManagerService;
|
|
14
12
|
private _currentCell$;
|
|
15
13
|
currentCell$: import('rxjs').Observable<Nullable<IHoverCellPosition>>;
|
|
16
14
|
currentPosition$: import('rxjs').Observable<Nullable<IHoverCellPosition>>;
|
|
17
15
|
private _lastPosition;
|
|
18
|
-
constructor(_univerInstanceService: IUniverInstanceService,
|
|
16
|
+
constructor(_univerInstanceService: IUniverInstanceService, _renderManagerService: IRenderManagerService);
|
|
19
17
|
dispose(): void;
|
|
20
18
|
private _initCellDisposableListener;
|
|
21
19
|
private _calcActiveCell;
|
|
@@ -18,7 +18,7 @@ interface IMarkSelectionInfo {
|
|
|
18
18
|
control: SelectionControl | null;
|
|
19
19
|
exits: string[];
|
|
20
20
|
}
|
|
21
|
-
export declare const IMarkSelectionService: import('@
|
|
21
|
+
export declare const IMarkSelectionService: import('@univerjs/core').IdentifierDecorator<IMarkSelectionService>;
|
|
22
22
|
export declare class MarkSelectionService extends Disposable implements IMarkSelectionService {
|
|
23
23
|
private readonly _currentService;
|
|
24
24
|
private readonly _renderManagerService;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
2
1
|
import { Disposable, IUniverInstanceService } from '@univerjs/core';
|
|
2
|
+
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
3
3
|
|
|
4
4
|
export declare class WorksheetProtectionRenderService extends Disposable {
|
|
5
5
|
private _renderManagerService;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Nullable, Workbook } from '@univerjs/core';
|
|
2
2
|
import { BehaviorSubject } from 'rxjs';
|
|
3
|
-
import {
|
|
3
|
+
import { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
4
|
+
import { SheetSkeletonManagerService } from './sheet-skeleton-manager.service';
|
|
4
5
|
|
|
5
6
|
export interface IViewportScrollState {
|
|
6
7
|
scrollX: number;
|
|
@@ -49,9 +50,9 @@ export type IScrollInfo = Map<string, Map<string, IScrollManagerParam>>;
|
|
|
49
50
|
*
|
|
50
51
|
* ScrollController subscribes to the changes in service data to refresh the view scrolling.
|
|
51
52
|
*/
|
|
52
|
-
export declare class
|
|
53
|
-
private readonly
|
|
54
|
-
private readonly
|
|
53
|
+
export declare class SheetScrollManagerService implements IRenderModule {
|
|
54
|
+
private readonly _context;
|
|
55
|
+
private readonly _sheetSkeletonManagerService;
|
|
55
56
|
/**
|
|
56
57
|
* a map holds all scroll info for each sheet
|
|
57
58
|
*/
|
|
@@ -74,7 +75,7 @@ export declare class ScrollManagerService {
|
|
|
74
75
|
* use this subject not rawScrollInfo$ when get scrolling state of viewport.
|
|
75
76
|
*/
|
|
76
77
|
private _searchParamForScroll;
|
|
77
|
-
constructor(
|
|
78
|
+
constructor(_context: IRenderContext<Workbook>, _sheetSkeletonManagerService: SheetSkeletonManagerService);
|
|
78
79
|
dispose(): void;
|
|
79
80
|
setSearchParam(param: IScrollManagerSearchParam): void;
|
|
80
81
|
setSearchParamAndRefresh(param: IScrollManagerSearchParam): void;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { IInterceptor, IRange, IRangeWithCoord, ISelectionCell, ISelectionCellWithMergeInfo, ISelectionWithCoord, Nullable, ThemeService, Disposable, InterceptorManager, RANGE_TYPE } from '@univerjs/core';
|
|
1
|
+
import { IInterceptor, Injector, IRange, IRangeWithCoord, ISelectionCell, ISelectionCellWithMergeInfo, ISelectionWithCoord, Nullable, ThemeService, Disposable, InterceptorManager, RANGE_TYPE } from '@univerjs/core';
|
|
2
2
|
import { IMouseEvent, IPointerEvent, IRenderManagerService, IRenderModule, Scene, SpreadsheetSkeleton, Viewport, ScrollTimer, ScrollTimerType } from '@univerjs/engine-render';
|
|
3
3
|
import { ISelectionStyle, ISelectionWithCoordAndStyle, ISelectionWithStyle } from '@univerjs/sheets';
|
|
4
4
|
import { IShortcutService } from '@univerjs/ui';
|
|
5
|
-
import { Injector } from '@wendellhu/redi';
|
|
6
5
|
import { Observable, Subscription, BehaviorSubject, Subject } from 'rxjs';
|
|
7
6
|
import { SelectionControl } from './selection-shape';
|
|
8
7
|
|
|
@@ -33,8 +32,9 @@ export interface ISheetSelectionRenderService {
|
|
|
33
32
|
/** @deprecated Use the function `attachPrimaryWithCoord` instead`. */
|
|
34
33
|
attachPrimaryWithCoord(primary: Nullable<Partial<ISelectionCell>>): Nullable<ISelectionCellWithMergeInfo>;
|
|
35
34
|
getSelectionCellByPosition(x: number, y: number): Nullable<ISelectionCellWithMergeInfo>;
|
|
35
|
+
setSingleSelectionEnabled(enabled: boolean): void;
|
|
36
36
|
}
|
|
37
|
-
export declare const ISheetSelectionRenderService: import('@
|
|
37
|
+
export declare const ISheetSelectionRenderService: import('@univerjs/core').IdentifierDecorator<ISheetSelectionRenderService>;
|
|
38
38
|
/**
|
|
39
39
|
* The basic implementation of selection rendering logics. It is designed to be reused for different purposes.
|
|
40
40
|
*/
|
|
@@ -90,6 +90,7 @@ export declare class BaseSelectionRenderService extends Disposable implements IS
|
|
|
90
90
|
protected _resetStyle(): void;
|
|
91
91
|
/** @deprecated This should not be provided by the selection render service. */
|
|
92
92
|
getViewPort(): Viewport;
|
|
93
|
+
setSingleSelectionEnabled(enabled?: boolean): void;
|
|
93
94
|
/**
|
|
94
95
|
* add a selection
|
|
95
96
|
*
|
|
@@ -159,8 +160,7 @@ export declare class BaseSelectionRenderService extends Disposable implements IS
|
|
|
159
160
|
*/
|
|
160
161
|
protected _moving(offsetX: number, offsetY: number, activeSelectionControl: Nullable<SelectionControl>, rangeType: RANGE_TYPE): false | undefined;
|
|
161
162
|
protected _updateSelectionControlRange(control: SelectionControl, newSelectionRange: IRangeWithCoord, highlight: Nullable<ISelectionCellWithMergeInfo>): void;
|
|
162
|
-
|
|
163
|
-
protected _clearEndingListeners(): void;
|
|
163
|
+
protected _clearUpdatingListeners(): void;
|
|
164
164
|
protected _addEndingListeners(): void;
|
|
165
165
|
protected _getCellRangeByCursorPosition(offsetX: number, offsetY: number, scaleX: number, scaleY: number, scrollXY: {
|
|
166
166
|
x: number;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { Workbook, ICommandService, IContextService, ILogService, RANGE_TYPE, ThemeService } from '@univerjs/core';
|
|
1
|
+
import { Workbook, ICommandService, IContextService, ILogService, Injector, RANGE_TYPE, ThemeService } from '@univerjs/core';
|
|
2
2
|
import { IMouseEvent, IPointerEvent, IRenderContext, IRenderModule, Scene, Viewport, IRenderManagerService } from '@univerjs/engine-render';
|
|
3
3
|
import { SheetsSelectionsService } from '@univerjs/sheets';
|
|
4
4
|
import { IShortcutService } from '@univerjs/ui';
|
|
5
|
-
import {
|
|
6
|
-
import { ScrollManagerService } from '../scroll-manager.service';
|
|
5
|
+
import { SheetScrollManagerService } from '../scroll-manager.service';
|
|
7
6
|
import { SheetSkeletonManagerService } from '../sheet-skeleton-manager.service';
|
|
8
7
|
import { BaseSelectionRenderService } from './base-selection-render.service';
|
|
9
8
|
import { MobileSelectionControl } from './mobile-selection-shape';
|
|
@@ -28,7 +27,7 @@ export declare class MobileSheetsSelectionRenderService extends BaseSelectionRen
|
|
|
28
27
|
_expandingSelection: boolean;
|
|
29
28
|
protected _selectionControls: MobileSelectionControl[];
|
|
30
29
|
expandingControlMode: ExpandingControl;
|
|
31
|
-
constructor(_context: IRenderContext<Workbook>, injector: Injector, themeService: ThemeService, shortcutService: IShortcutService, renderManagerService: IRenderManagerService, selectionManagerService: SheetsSelectionsService, _logService: ILogService, _commandService: ICommandService, _contextService: IContextService, _sheetSkeletonManagerService: SheetSkeletonManagerService, _scrollManagerService:
|
|
30
|
+
constructor(_context: IRenderContext<Workbook>, injector: Injector, themeService: ThemeService, shortcutService: IShortcutService, renderManagerService: IRenderManagerService, selectionManagerService: SheetsSelectionsService, _logService: ILogService, _commandService: ICommandService, _contextService: IContextService, _sheetSkeletonManagerService: SheetSkeletonManagerService, _scrollManagerService: SheetScrollManagerService);
|
|
32
31
|
private _init;
|
|
33
32
|
private _initSkeletonChangeListener;
|
|
34
33
|
private _initSelectionChangeListener;
|
|
@@ -5,9 +5,6 @@ export declare class SelectionRenderModel implements IRangeWithCoord {
|
|
|
5
5
|
private _startRow;
|
|
6
6
|
private _endColumn;
|
|
7
7
|
private _endRow;
|
|
8
|
-
/**
|
|
9
|
-
* value from { startY, endY, startX, endX } = getCellPositionByIndex in basics/tools
|
|
10
|
-
*/
|
|
11
8
|
private _startX;
|
|
12
9
|
private _startY;
|
|
13
10
|
private _endX;
|
|
@@ -17,47 +14,28 @@ export declare class SelectionRenderModel implements IRangeWithCoord {
|
|
|
17
14
|
* when there is no merge info
|
|
18
15
|
* top left cell of current selection (or bottomLeft of current selection)
|
|
19
16
|
*/
|
|
20
|
-
private
|
|
17
|
+
private _primary;
|
|
21
18
|
private _rangeType;
|
|
22
19
|
get startColumn(): number;
|
|
23
20
|
get startRow(): number;
|
|
24
21
|
get endColumn(): number;
|
|
25
22
|
get endRow(): number;
|
|
26
|
-
/**
|
|
27
|
-
* value from { startY, endY, startX, endX } = getCellPositionByIndex in basics/tools
|
|
28
|
-
*/
|
|
29
23
|
get startX(): number;
|
|
30
|
-
/**
|
|
31
|
-
* value from { startY, endY, startX, endX } = getCellPositionByIndex in basics/tools
|
|
32
|
-
*/
|
|
33
24
|
get startY(): number;
|
|
34
|
-
/**
|
|
35
|
-
* value from { startY, endY, startX, endX } = getCellPositionByIndex in basics/tools
|
|
36
|
-
*/
|
|
37
25
|
get endX(): number;
|
|
38
|
-
/**
|
|
39
|
-
* value from { startY, endY, startX, endX } = getCellPositionByIndex in basics/tools
|
|
40
|
-
*/
|
|
41
26
|
get endY(): number;
|
|
42
|
-
/**
|
|
43
|
-
* highlight cell of selection
|
|
44
|
-
*/
|
|
45
27
|
get currentCell(): Nullable<ISelectionCellWithMergeInfo>;
|
|
46
28
|
get rangeType(): RANGE_TYPE;
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated, Duplicate with `Rectangle`
|
|
31
|
+
*/
|
|
47
32
|
isEqual(rangeWithCoord: IRangeWithCoord): boolean;
|
|
33
|
+
/**
|
|
34
|
+
* @deprecated, Duplicate with `Rectangle`
|
|
35
|
+
*/
|
|
48
36
|
isInclude(rangeWithCoord: IRangeWithCoord): boolean;
|
|
49
37
|
highlightToSelection(): IRangeWithCoord | undefined;
|
|
50
|
-
getRange():
|
|
51
|
-
startColumn: number;
|
|
52
|
-
startRow: number;
|
|
53
|
-
endColumn: number;
|
|
54
|
-
endRow: number;
|
|
55
|
-
startX: number;
|
|
56
|
-
startY: number;
|
|
57
|
-
endX: number;
|
|
58
|
-
endY: number;
|
|
59
|
-
rangeType: RANGE_TYPE;
|
|
60
|
-
};
|
|
38
|
+
getRange(): IRangeWithCoord;
|
|
61
39
|
getCell(): Nullable<ISelectionCellWithMergeInfo>;
|
|
62
40
|
getRangeType(): RANGE_TYPE;
|
|
63
41
|
setRangeType(rangeType: RANGE_TYPE): void;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { Workbook, ICommandService, IContextService, ILogService, ThemeService } from '@univerjs/core';
|
|
1
|
+
import { Workbook, ICommandService, IContextService, ILogService, Injector, ThemeService } from '@univerjs/core';
|
|
2
2
|
import { IRenderContext, IRenderModule, IRenderManagerService } from '@univerjs/engine-render';
|
|
3
3
|
import { SheetsSelectionsService } from '@univerjs/sheets';
|
|
4
4
|
import { IShortcutService } from '@univerjs/ui';
|
|
5
|
-
import { Injector } from '@wendellhu/redi';
|
|
6
5
|
import { SheetSkeletonManagerService } from '../sheet-skeleton-manager.service';
|
|
7
6
|
import { BaseSelectionRenderService } from './base-selection-render.service';
|
|
8
7
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { IRangeWithCoord, ThemeService } from '@univerjs/core';
|
|
1
|
+
import { Injector, IRangeWithCoord, ThemeService } from '@univerjs/core';
|
|
2
2
|
import { Scene, SpreadsheetSkeleton } from '@univerjs/engine-render';
|
|
3
|
-
import { Injector } from '@wendellhu/redi';
|
|
4
3
|
import { SelectionControl } from './selection-shape';
|
|
5
4
|
|
|
6
5
|
export interface ISelectionShapeTargetSelection {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Disposable } from '@univerjs/core';
|
|
2
|
-
import { IDisposable } from '@wendellhu/redi';
|
|
1
|
+
import { Disposable, IDisposable } from '@univerjs/core';
|
|
3
2
|
import { Observable } from 'rxjs';
|
|
4
3
|
import { IScrollState } from '../../views/sheet-bar/sheet-bar-tabs/utils/slide-tab-bar';
|
|
5
4
|
|
|
@@ -20,7 +19,7 @@ export interface ISheetBarService {
|
|
|
20
19
|
triggerSheetBarMenu(): void;
|
|
21
20
|
registerSheetBarMenuHandler(handler: ISheetBarMenuHandler): IDisposable;
|
|
22
21
|
}
|
|
23
|
-
export declare const ISheetBarService: import('@
|
|
22
|
+
export declare const ISheetBarService: import('@univerjs/core').IdentifierDecorator<ISheetBarService>;
|
|
24
23
|
export declare class SheetBarService extends Disposable implements ISheetBarService {
|
|
25
24
|
readonly renameId$: Observable<string>;
|
|
26
25
|
readonly removeId$: Observable<string>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { IRange, IRangeWithCoord, Nullable, Workbook, Disposable } from '@univerjs/core';
|
|
1
|
+
import { IRange, IRangeWithCoord, Nullable, Workbook, Disposable, Injector } from '@univerjs/core';
|
|
2
2
|
import { IRenderContext, IRenderModule, SpreadsheetSkeleton } from '@univerjs/engine-render';
|
|
3
|
-
import { Injector } from '@wendellhu/redi';
|
|
4
3
|
|
|
5
4
|
export interface ISheetSkeletonManagerParam {
|
|
6
5
|
unitId?: string;
|
|
@@ -37,7 +36,7 @@ export declare class SheetSkeletonManagerService extends Disposable implements I
|
|
|
37
36
|
readonly currentSkeletonBefore$: import('rxjs').Observable<Nullable<ISheetSkeletonManagerParam>>;
|
|
38
37
|
constructor(_context: IRenderContext<Workbook>, _injector: Injector);
|
|
39
38
|
private _initRemoveSheet;
|
|
40
|
-
getCurrentSkeleton(): SpreadsheetSkeleton
|
|
39
|
+
getCurrentSkeleton(): Nullable<SpreadsheetSkeleton>;
|
|
41
40
|
getCurrent(): Nullable<ISheetSkeletonManagerParam>;
|
|
42
41
|
getWorksheetSkeleton(sheetId: string): Nullable<ISheetSkeletonManagerParam>;
|
|
43
42
|
/**
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { IContextService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
|
1
|
+
import { IDisposable, IContextService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
|
2
2
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
3
|
-
import { IDisposable } from '@wendellhu/redi';
|
|
4
3
|
|
|
5
4
|
/**
|
|
6
5
|
* This controller is responsible for managing units of a specific kind to be rendered on the canvas.
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { ISelection, ITextRangeParam, Nullable, IUniverInstanceService, LocaleService } from '@univerjs/core';
|
|
1
|
+
import { IDisposable, ISelection, ITextRangeParam, Nullable, IUniverInstanceService, LocaleService } from '@univerjs/core';
|
|
2
2
|
import { KeyCode } from '@univerjs/ui';
|
|
3
|
-
import { IDisposable } from '@wendellhu/redi';
|
|
4
3
|
|
|
5
4
|
export interface IShortcutExperienceSearch {
|
|
6
5
|
unitId: string;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Nullable } from '@univerjs/core';
|
|
1
|
+
import { IDisposable, Nullable } from '@univerjs/core';
|
|
2
2
|
import { IFunctionNames } from '@univerjs/engine-formula';
|
|
3
|
-
import { IDisposable } from '@wendellhu/redi';
|
|
4
3
|
import { Observable } from 'rxjs';
|
|
5
4
|
|
|
6
5
|
export interface IStatusBarService {
|
|
@@ -31,4 +30,4 @@ export declare class StatusBarService implements IStatusBarService, IDisposable
|
|
|
31
30
|
getFunctions(): Readonly<IStatusBarFunction[]>;
|
|
32
31
|
addFunctions(functions: IStatusBarFunction[]): void;
|
|
33
32
|
}
|
|
34
|
-
export declare const IStatusBarService: import('@
|
|
33
|
+
export declare const IStatusBarService: import('@univerjs/core').IdentifierDecorator<StatusBarService>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { IUniverInstanceService, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
2
|
-
import { Injector } from '@wendellhu/redi';
|
|
1
|
+
import { Injector, IUniverInstanceService, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
3
2
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
4
3
|
import { IUniverSheetsUIConfig } from './controllers/sheet-ui.controller';
|
|
5
4
|
|