@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,9 +1,8 @@
|
|
|
1
|
-
import { IWorkbookData, Workbook, Univer } from '@univerjs/core';
|
|
2
|
-
import { Dependency, Injector } from '@wendellhu/redi';
|
|
1
|
+
import { Dependency, IWorkbookData, Workbook, Injector, Univer } from '@univerjs/core';
|
|
3
2
|
|
|
4
3
|
export interface ITestBed {
|
|
5
4
|
univer: Univer;
|
|
6
5
|
get: Injector['get'];
|
|
7
6
|
sheet: Workbook;
|
|
8
7
|
}
|
|
9
|
-
export declare function createCommandTestBed(workbookData?: IWorkbookData, dependencies?: Dependency[]): ITestBed;
|
|
8
|
+
export declare function createCommandTestBed(workbookData?: IWorkbookData, dependencies?: Dependency[], renderDependencies?: Dependency[]): ITestBed;
|
|
@@ -3,24 +3,24 @@ import { IWorkbookData } from '@univerjs/core';
|
|
|
3
3
|
export declare function createSelectionCommandTestBed(workbookData?: IWorkbookData): {
|
|
4
4
|
univer: import('@univerjs/core').Univer;
|
|
5
5
|
get: {
|
|
6
|
-
<T>(id: import('@
|
|
7
|
-
<T>(id: import('@
|
|
8
|
-
<T>(id: import('@
|
|
9
|
-
<T>(id: import('@
|
|
10
|
-
<T>(id: import('@
|
|
11
|
-
<T>(id: import('@
|
|
6
|
+
<T>(id: import('@univerjs/core').DependencyIdentifier<T>, lookUp?: import('@univerjs/core').LookUp): T;
|
|
7
|
+
<T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantity: import("@univerjs/core").Quantity.MANY, lookUp?: import('@univerjs/core').LookUp): T[];
|
|
8
|
+
<T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantity: import("@univerjs/core").Quantity.OPTIONAL, lookUp?: import('@univerjs/core').LookUp): T | null;
|
|
9
|
+
<T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantity: import("@univerjs/core").Quantity.REQUIRED, lookUp?: import('@univerjs/core').LookUp): T;
|
|
10
|
+
<T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantity?: import('@univerjs/core').Quantity, lookUp?: import('@univerjs/core').LookUp): T[] | T | null;
|
|
11
|
+
<T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantityOrLookup?: import('@univerjs/core').Quantity | import('@univerjs/core').LookUp, lookUp?: import('@univerjs/core').LookUp): T[] | T | null;
|
|
12
12
|
};
|
|
13
13
|
sheet: import('@univerjs/core').Workbook;
|
|
14
14
|
};
|
|
15
15
|
export declare function createFrozenCommandTestBed(workbookData?: IWorkbookData): {
|
|
16
16
|
univer: import('@univerjs/core').Univer;
|
|
17
17
|
get: {
|
|
18
|
-
<T>(id: import('@
|
|
19
|
-
<T>(id: import('@
|
|
20
|
-
<T>(id: import('@
|
|
21
|
-
<T>(id: import('@
|
|
22
|
-
<T>(id: import('@
|
|
23
|
-
<T>(id: import('@
|
|
18
|
+
<T>(id: import('@univerjs/core').DependencyIdentifier<T>, lookUp?: import('@univerjs/core').LookUp): T;
|
|
19
|
+
<T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantity: import("@univerjs/core").Quantity.MANY, lookUp?: import('@univerjs/core').LookUp): T[];
|
|
20
|
+
<T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantity: import("@univerjs/core").Quantity.OPTIONAL, lookUp?: import('@univerjs/core').LookUp): T | null;
|
|
21
|
+
<T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantity: import("@univerjs/core").Quantity.REQUIRED, lookUp?: import('@univerjs/core').LookUp): T;
|
|
22
|
+
<T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantity?: import('@univerjs/core').Quantity, lookUp?: import('@univerjs/core').LookUp): T[] | T | null;
|
|
23
|
+
<T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantityOrLookup?: import('@univerjs/core').Quantity | import('@univerjs/core').LookUp, lookUp?: import('@univerjs/core').LookUp): T[] | T | null;
|
|
24
24
|
};
|
|
25
25
|
sheet: import('@univerjs/core').Workbook;
|
|
26
26
|
};
|
|
@@ -6,5 +6,7 @@ export declare const SetCellEditVisibleWithF2Operation: IOperation<IEditorBridge
|
|
|
6
6
|
/**
|
|
7
7
|
* When the editor is not clicked to change the cursor,
|
|
8
8
|
* the arrow keys will exit editing and move the cell.
|
|
9
|
+
*
|
|
10
|
+
* @deprecated Should not use operation as an event.
|
|
9
11
|
*/
|
|
10
12
|
export declare const SetCellEditVisibleArrowOperation: IOperation<IEditorBridgeServiceVisibleParam>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { IMutationInfo, IPosition, IRange, Workbook, Worksheet } from '@univerjs/core';
|
|
1
|
+
import { IAccessor, IMutationInfo, IPosition, IRange, Workbook, Worksheet } from '@univerjs/core';
|
|
2
2
|
import { ISheetLocation } from '@univerjs/sheets';
|
|
3
|
-
import { IAccessor } from '@wendellhu/redi';
|
|
4
3
|
import { IBoundRectNoAngle, IRender, Scene, SpreadsheetSkeleton } from '@univerjs/engine-render';
|
|
5
4
|
import { ICollaborator } from '@univerjs/protocol';
|
|
6
5
|
import { ISheetSkeletonManagerParam } from '../services/sheet-skeleton-manager.service';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
|
|
1
|
+
import { Disposable, ICommandService, Injector, IUniverInstanceService } from '@univerjs/core';
|
|
2
2
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
3
|
-
import { Injector } from '@wendellhu/redi';
|
|
4
3
|
import { IAutoFillService } from '../services/auto-fill/auto-fill.service';
|
|
5
4
|
import { IEditorBridgeService } from '../services/editor-bridge.service';
|
|
6
5
|
import { SheetsRenderService } from '../services/sheets-render.service';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { IRange, Disposable, IUniverInstanceService } from '@univerjs/core';
|
|
1
|
+
import { IRange, Disposable, Injector, IUniverInstanceService } from '@univerjs/core';
|
|
2
2
|
import { ISetWorksheetRowAutoHeightMutationParams, SheetInterceptorService, SheetsSelectionsService } from '@univerjs/sheets';
|
|
3
|
-
import { Injector } from '@wendellhu/redi';
|
|
4
3
|
import { RenderManagerService } from '@univerjs/engine-render';
|
|
5
4
|
|
|
6
5
|
export declare class AutoHeightController extends Disposable {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { ICommandService, IConfigService, IContextService, IUniverInstanceService, LocaleService, RxDisposable } from '@univerjs/core';
|
|
1
|
+
import { ICommandService, IConfigService, IContextService, Injector, IUniverInstanceService, LocaleService, RxDisposable } from '@univerjs/core';
|
|
2
2
|
import { IMessageService } from '@univerjs/ui';
|
|
3
|
-
import { Injector } from '@wendellhu/redi';
|
|
4
3
|
import { IRenderManagerService, ITextSelectionRenderManager } from '@univerjs/engine-render';
|
|
5
4
|
import { ISheetClipboardService } from '../../services/clipboard/clipboard.service';
|
|
6
5
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { IDocumentBody, IMutationInfo, Nullable, ObjectMatrix } from '@univerjs/core';
|
|
2
|
-
import { IAccessor } from '@wendellhu/redi';
|
|
1
|
+
import { IAccessor, IDocumentBody, IMutationInfo, Nullable, ObjectMatrix } from '@univerjs/core';
|
|
3
2
|
import { ICellDataWithSpanInfo, ICopyPastePayload, ISheetDiscreteRangeLocation } from '../../services/clipboard/type';
|
|
4
3
|
import { IDiscreteRange } from '../utils/range-tools';
|
|
5
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ICellData, Workbook, Disposable, ICommandService, IContextService, IUndoRedoService, IUniverInstanceService, LocaleService } from '@univerjs/core';
|
|
1
|
+
import { DocumentDataModel, ICellData, IDocumentData, Workbook, Disposable, ICommandService, IContextService, IResourceLoaderService, IUndoRedoService, IUniverInstanceService, LocaleService } from '@univerjs/core';
|
|
2
2
|
import { TextSelectionManagerService } from '@univerjs/docs';
|
|
3
3
|
import { IDocumentLayoutObject, IRenderContext, IRenderModule, IRenderManagerService, ITextSelectionRenderManager } from '@univerjs/engine-render';
|
|
4
4
|
import { IEditorService } from '@univerjs/ui';
|
|
@@ -11,32 +11,39 @@ export declare class EditingRenderController extends Disposable implements IRend
|
|
|
11
11
|
private readonly _context;
|
|
12
12
|
private readonly _undoRedoService;
|
|
13
13
|
private readonly _contextService;
|
|
14
|
-
|
|
15
|
-
private readonly _univerInstanceService;
|
|
14
|
+
private readonly _instanceSrv;
|
|
16
15
|
private readonly _renderManagerService;
|
|
17
16
|
private readonly _editorBridgeService;
|
|
18
17
|
private readonly _cellEditorManagerService;
|
|
19
18
|
private readonly _textSelectionRenderManager;
|
|
20
|
-
private readonly _selectionManagerService;
|
|
21
19
|
private readonly _lexerTreeBuilder;
|
|
22
20
|
private readonly _textSelectionManagerService;
|
|
23
21
|
private readonly _commandService;
|
|
24
22
|
protected readonly _localService: LocaleService;
|
|
25
23
|
private readonly _editorService;
|
|
24
|
+
private readonly _resourceLoaderService;
|
|
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
|
-
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
/** If the corresponding unit is active and prepared for editing. */
|
|
30
|
+
private _isUnitEditing;
|
|
31
|
+
private _workbookSelections;
|
|
32
|
+
private _d;
|
|
33
|
+
constructor(_context: IRenderContext<Workbook>, selectionManagerService: SheetsSelectionsService, _undoRedoService: IUndoRedoService, _contextService: IContextService, _instanceSrv: IUniverInstanceService, _renderManagerService: IRenderManagerService, _editorBridgeService: IEditorBridgeService, _cellEditorManagerService: ICellEditorManagerService, _textSelectionRenderManager: ITextSelectionRenderManager, _lexerTreeBuilder: LexerTreeBuilder, _textSelectionManagerService: TextSelectionManagerService, _commandService: ICommandService, _localService: LocaleService, _editorService: IEditorService, _resourceLoaderService: IResourceLoaderService);
|
|
34
|
+
dispose(): void;
|
|
35
|
+
private _disposeCurrent;
|
|
33
36
|
private _init;
|
|
34
37
|
private _initEditorVisibilityListener;
|
|
35
38
|
private _listenEditorFocus;
|
|
36
39
|
private _getEditorSkeleton;
|
|
37
40
|
private _getEditorViewModel;
|
|
38
41
|
private _initialCursorSync;
|
|
39
|
-
|
|
42
|
+
/**
|
|
43
|
+
* Should update current editing cell info when selection is changed.
|
|
44
|
+
* @param d DisposableCollection
|
|
45
|
+
*/
|
|
46
|
+
private _subscribeToCurrentCell;
|
|
40
47
|
private _fitTextSize;
|
|
41
48
|
/**
|
|
42
49
|
* Mainly used to pre-calculate the width of the editor,
|
|
@@ -55,6 +62,10 @@ export declare class EditingRenderController extends Disposable implements IRend
|
|
|
55
62
|
private _addBackground;
|
|
56
63
|
private _handleEditorVisible;
|
|
57
64
|
private _resetBodyStyle;
|
|
65
|
+
/**
|
|
66
|
+
* Should activate the editor when the user inputs text.
|
|
67
|
+
* @param d DisposableCollection
|
|
68
|
+
*/
|
|
58
69
|
private _initialKeyboardListener;
|
|
59
70
|
private _showEditorByKeyboard;
|
|
60
71
|
/**
|
|
@@ -66,7 +77,11 @@ export declare class EditingRenderController extends Disposable implements IRend
|
|
|
66
77
|
private _handleEditorInvisible;
|
|
67
78
|
private _exitInput;
|
|
68
79
|
private _moveCursor;
|
|
80
|
+
/**
|
|
81
|
+
* The user's operations follow the sequence of opening the editor and then moving the cursor.
|
|
82
|
+
* The logic here predicts the user's first cursor movement behavior based on this rule
|
|
83
|
+
*/
|
|
69
84
|
private _cursorStateListener;
|
|
70
85
|
private _moveInEditor;
|
|
71
86
|
}
|
|
72
|
-
export declare function getCellDataByInput(cellData: ICellData, documentLayoutObject: IDocumentLayoutObject, lexerTreeBuilder: LexerTreeBuilder): ICellData | null;
|
|
87
|
+
export declare function getCellDataByInput(cellData: ICellData, documentLayoutObject: IDocumentLayoutObject, lexerTreeBuilder: LexerTreeBuilder, getSnapshot: (data: DocumentDataModel) => IDocumentData): ICellData | null;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
|
|
2
|
-
import { Injector } from '@wendellhu/redi';
|
|
1
|
+
import { Disposable, ICommandService, Injector, IUniverInstanceService } from '@univerjs/core';
|
|
3
2
|
import { SheetInterceptorService, SheetsSelectionsService } from '@univerjs/sheets';
|
|
4
3
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
5
4
|
import { IFormatPainterService } from '../../services/format-painter/format-painter.service';
|
|
@@ -2,14 +2,14 @@ import { Workbook, Disposable } from '@univerjs/core';
|
|
|
2
2
|
import { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
3
3
|
import { HoverManagerService } from '../services/hover-manager.service';
|
|
4
4
|
import { SheetSkeletonManagerService } from '../services/sheet-skeleton-manager.service';
|
|
5
|
-
import {
|
|
5
|
+
import { SheetScrollManagerService } from '../services/scroll-manager.service';
|
|
6
6
|
|
|
7
7
|
export declare class HoverRenderController extends Disposable implements IRenderModule {
|
|
8
8
|
private readonly _context;
|
|
9
9
|
private _hoverManagerService;
|
|
10
10
|
private _sheetSkeletonManagerService;
|
|
11
11
|
private _scrollManagerService;
|
|
12
|
-
constructor(_context: IRenderContext<Workbook>, _hoverManagerService: HoverManagerService, _sheetSkeletonManagerService: SheetSkeletonManagerService, _scrollManagerService:
|
|
12
|
+
constructor(_context: IRenderContext<Workbook>, _hoverManagerService: HoverManagerService, _sheetSkeletonManagerService: SheetSkeletonManagerService, _scrollManagerService: SheetScrollManagerService);
|
|
13
13
|
private _initPointerEvent;
|
|
14
14
|
private _initScrollEvent;
|
|
15
15
|
}
|
|
@@ -3,12 +3,12 @@ import { Univer } from '@univerjs/core';
|
|
|
3
3
|
export declare function createMenuTestBed(): {
|
|
4
4
|
univer: Univer;
|
|
5
5
|
get: {
|
|
6
|
-
<T>(id: import('@
|
|
7
|
-
<T>(id: import('@
|
|
8
|
-
<T>(id: import('@
|
|
9
|
-
<T>(id: import('@
|
|
10
|
-
<T>(id: import('@
|
|
11
|
-
<T>(id: import('@
|
|
6
|
+
<T>(id: import('@univerjs/core').DependencyIdentifier<T>, lookUp?: import('@univerjs/core').LookUp): T;
|
|
7
|
+
<T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantity: import("@univerjs/core").Quantity.MANY, lookUp?: import('@univerjs/core').LookUp): T[];
|
|
8
|
+
<T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantity: import("@univerjs/core").Quantity.OPTIONAL, lookUp?: import('@univerjs/core').LookUp): T | null;
|
|
9
|
+
<T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantity: import("@univerjs/core").Quantity.REQUIRED, lookUp?: import('@univerjs/core').LookUp): T;
|
|
10
|
+
<T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantity?: import('@univerjs/core').Quantity, lookUp?: import('@univerjs/core').LookUp): T[] | T | null;
|
|
11
|
+
<T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantityOrLookup?: import('@univerjs/core').Quantity | import('@univerjs/core').LookUp, lookUp?: import('@univerjs/core').LookUp): T[] | T | null;
|
|
12
12
|
};
|
|
13
13
|
sheet: import('@univerjs/core').Workbook;
|
|
14
14
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IBorderInfo } from '@univerjs/sheets';
|
|
2
2
|
import { IMenuSelectorItem } from '@univerjs/ui';
|
|
3
|
-
import { IAccessor } from '@
|
|
3
|
+
import { IAccessor } from '@univerjs/core';
|
|
4
4
|
|
|
5
5
|
export declare function CellBorderSelectorMenuItemFactory(accessor: IAccessor): IMenuSelectorItem<IBorderInfo, IBorderInfo>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IMenuButtonItem, IMenuSelectorItem } from '@univerjs/ui';
|
|
2
|
-
import { IAccessor } from '@
|
|
2
|
+
import { IAccessor } from '@univerjs/core';
|
|
3
3
|
|
|
4
4
|
export declare function ClearSelectionMenuItemFactory(accessor: IAccessor): IMenuSelectorItem<string>;
|
|
5
5
|
export declare function ClearSelectionContentMenuItemFactory(accessor: IAccessor): IMenuButtonItem;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IMenuButtonItem, IMenuSelectorItem } from '@univerjs/ui';
|
|
2
|
-
import { IAccessor } from '@
|
|
2
|
+
import { IAccessor } from '@univerjs/core';
|
|
3
3
|
|
|
4
4
|
export declare function DeleteRangeMenuItemFactory(accessor: IAccessor): IMenuSelectorItem<string>;
|
|
5
5
|
export declare function RemoveColMenuItemFactory(accessor: IAccessor): IMenuButtonItem;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IMenuButtonItem, IMenuSelectorItem } from '@univerjs/ui';
|
|
2
|
-
import { IAccessor } from '@
|
|
2
|
+
import { IAccessor } from '@univerjs/core';
|
|
3
3
|
|
|
4
4
|
export declare function ColInsertMenuItemFactory(accessor: IAccessor): IMenuSelectorItem<string>;
|
|
5
5
|
export declare function RowInsertMenuItemFactory(accessor: IAccessor): IMenuSelectorItem<string>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { IPermissionTypes, Workbook, WorkbookPermissionPointConstructor, Worksheet, IUniverInstanceService } from '@univerjs/core';
|
|
2
|
-
import { IAccessor } from '@wendellhu/redi';
|
|
1
|
+
import { IAccessor, IPermissionTypes, Workbook, WorkbookPermissionPointConstructor, Worksheet, IUniverInstanceService } from '@univerjs/core';
|
|
3
2
|
import { Observable } from 'rxjs';
|
|
4
3
|
|
|
5
4
|
interface IActive {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { HorizontalAlign, VerticalAlign, WrapStrategy } from '@univerjs/core';
|
|
1
|
+
import { HorizontalAlign, VerticalAlign, WrapStrategy, IAccessor } from '@univerjs/core';
|
|
2
2
|
import { IMenuButtonItem, IMenuSelectorItem } from '@univerjs/ui';
|
|
3
|
-
import { IAccessor } from '@wendellhu/redi';
|
|
4
3
|
|
|
5
4
|
export declare enum SheetMenuPosition {
|
|
6
5
|
ROW_HEADER_CONTEXT_MENU = "ROW_HEADER_CONTEXT_MENU",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IMenuButtonItem, IMenuSelectorItem } from '@univerjs/ui';
|
|
2
|
-
import { IAccessor } from '@
|
|
2
|
+
import { IAccessor } from '@univerjs/core';
|
|
3
3
|
|
|
4
4
|
export declare function CellMergeMenuItemFactory(accessor: IAccessor): IMenuSelectorItem<string>;
|
|
5
5
|
export declare function CellMergeAllMenuItemFactory(accessor: IAccessor): IMenuButtonItem<string>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IAccessor } from '@
|
|
1
|
+
import { IAccessor } from '@univerjs/core';
|
|
2
2
|
|
|
3
3
|
export declare function getAddPermissionHidden$(accessor: IAccessor): import('rxjs').Observable<boolean>;
|
|
4
4
|
export declare function getEditPermissionHidden$(accessor: IAccessor): import('rxjs').Observable<boolean>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IMenuButtonItem, IMenuItem, IMenuSelectorItem } from '@univerjs/ui';
|
|
2
|
-
import { IAccessor } from '@
|
|
2
|
+
import { IAccessor } from '@univerjs/core';
|
|
3
3
|
|
|
4
4
|
export declare const tmpIcon = "data-validation-single";
|
|
5
5
|
export declare function sheetPermissionToolbarMenuFactory(accessor: IAccessor): IMenuItem;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { IAccessor } from '@univerjs/core';
|
|
1
2
|
import { IMenuButtonItem, IMenuSelectorItem } from '@univerjs/ui';
|
|
2
|
-
import { IAccessor } from '@wendellhu/redi';
|
|
3
3
|
|
|
4
4
|
export declare function DeleteSheetMenuItemFactory(accessor: IAccessor): IMenuButtonItem;
|
|
5
5
|
export declare function CopySheetMenuItemFactory(accessor: IAccessor): IMenuButtonItem;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Disposable, ICommandService } from '@univerjs/core';
|
|
1
|
+
import { Disposable, ICommandService, Injector } from '@univerjs/core';
|
|
2
2
|
import { MenuConfig, ComponentManager, ILayoutService, IMenuService, IShortcutService, IUIPartsService } from '@univerjs/ui';
|
|
3
|
-
import { Injector } from '@wendellhu/redi';
|
|
4
3
|
|
|
5
4
|
export interface IUniverSheetsUIConfig {
|
|
6
5
|
menu: MenuConfig;
|
|
@@ -19,7 +19,9 @@ export declare class SheetPermissionInterceptorBaseController extends Disposable
|
|
|
19
19
|
private readonly _contextService;
|
|
20
20
|
private readonly _definedNamesService;
|
|
21
21
|
disposableCollection: DisposableCollection;
|
|
22
|
+
private _showPermissionDialog;
|
|
22
23
|
constructor(_commandService: ICommandService, _univerInstanceService: IUniverInstanceService, _permissionService: IPermissionService, _selectionManagerService: SheetsSelectionsService, _dialogService: IDialogService, _rangeProtectionRuleModel: RangeProtectionRuleModel, _worksheetProtectionRuleModel: WorksheetProtectionRuleModel, _autoFillService: IAutoFillService, _localeService: LocaleService, _lexerTreeBuilder: LexerTreeBuilder, _contextService: IContextService, _definedNamesService: IDefinedNamesService);
|
|
24
|
+
setShowPermissionDialog(value: boolean): void;
|
|
23
25
|
haveNotPermissionHandle(errorMsg: string): void;
|
|
24
26
|
private _getPermissionCheck;
|
|
25
27
|
private _initialize;
|
package/lib/types/controllers/permission/sheet-permission-interceptor-formula-render.controller.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Workbook, DisposableCollection, IPermissionService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
|
1
|
+
import { Workbook, DisposableCollection, Injector, IPermissionService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
|
2
2
|
import { RangeProtectionRenderModel } from '@univerjs/sheets';
|
|
3
|
-
import { Injector } from '@wendellhu/redi';
|
|
4
3
|
import { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
5
4
|
import { StatusBarController } from '../status-bar.controller';
|
|
6
5
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Disposable, IPermissionService } from '@univerjs/core';
|
|
1
|
+
import { Disposable, Injector, IPermissionService } from '@univerjs/core';
|
|
2
2
|
import { MenuConfig, ComponentManager, IMenuService } from '@univerjs/ui';
|
|
3
|
-
import { Injector } from '@wendellhu/redi';
|
|
4
3
|
import { RangeProtectionRuleModel } from '@univerjs/sheets';
|
|
5
4
|
import { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
6
5
|
import { SheetSkeletonManagerService } from '../../services/sheet-skeleton-manager.service';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Workbook, ICommandService, RxDisposable } from '@univerjs/core';
|
|
1
|
+
import { Workbook, ICommandService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
|
2
2
|
import { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
3
3
|
import { SheetsSelectionsService } from '@univerjs/sheets';
|
|
4
4
|
import { IRangeSelectorService } from '@univerjs/ui';
|
|
@@ -6,17 +6,19 @@ import { IEditorBridgeService } from '../../services/editor-bridge.service';
|
|
|
6
6
|
|
|
7
7
|
export declare class EditorBridgeRenderController extends RxDisposable implements IRenderModule {
|
|
8
8
|
private readonly _context;
|
|
9
|
+
private readonly _instanceSrv;
|
|
9
10
|
private readonly _commandService;
|
|
10
11
|
private readonly _editorBridgeService;
|
|
11
12
|
private readonly _selectionManagerService;
|
|
12
13
|
private readonly _rangeSelectorService;
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
private _d;
|
|
15
|
+
constructor(_context: IRenderContext<Workbook>, _instanceSrv: IUniverInstanceService, _commandService: ICommandService, _editorBridgeService: IEditorBridgeService, _selectionManagerService: SheetsSelectionsService, _rangeSelectorService: IRangeSelectorService);
|
|
16
|
+
private _init;
|
|
17
|
+
private _disposeCurrent;
|
|
15
18
|
private _initSelectionChangeListener;
|
|
16
19
|
private _updateEditorPosition;
|
|
17
|
-
private _handleSelectionChange;
|
|
18
20
|
private _initEventListener;
|
|
19
|
-
private
|
|
21
|
+
private _tryHideEditor;
|
|
20
22
|
private _hideEditor;
|
|
21
23
|
private _initialRangeSelector;
|
|
22
24
|
private _rangeSelector;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { Workbook, Disposable, ICommandService, InterceptorManager, ThemeService } from '@univerjs/core';
|
|
1
|
+
import { Workbook, Disposable, ICommandService, Injector, InterceptorManager, ThemeService } from '@univerjs/core';
|
|
2
2
|
import { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
3
3
|
import { SheetInterceptorService, SheetsSelectionsService } from '@univerjs/sheets';
|
|
4
|
-
import {
|
|
5
|
-
import { ScrollManagerService } from '../../services/scroll-manager.service';
|
|
4
|
+
import { SheetScrollManagerService } from '../../services/scroll-manager.service';
|
|
6
5
|
import { SheetSkeletonManagerService } from '../../services/sheet-skeleton-manager.service';
|
|
7
6
|
|
|
8
7
|
export declare const FREEZE_PERMISSION_CHECK: import('@univerjs/core').IInterceptor<boolean, null>;
|
|
@@ -37,7 +36,7 @@ export declare class HeaderFreezeRenderController extends Disposable implements
|
|
|
37
36
|
interceptor: InterceptorManager<{
|
|
38
37
|
FREEZE_PERMISSION_CHECK: import('@univerjs/core').IInterceptor<boolean, null>;
|
|
39
38
|
}>;
|
|
40
|
-
constructor(_context: IRenderContext<Workbook>, _sheetSkeletonManagerService: SheetSkeletonManagerService, _commandService: ICommandService, _selectionManagerService: SheetsSelectionsService, _scrollManagerService:
|
|
39
|
+
constructor(_context: IRenderContext<Workbook>, _sheetSkeletonManagerService: SheetSkeletonManagerService, _commandService: ICommandService, _selectionManagerService: SheetsSelectionsService, _scrollManagerService: SheetScrollManagerService, _themeService: ThemeService, _sheetInterceptorService: SheetInterceptorService, _injector: Injector);
|
|
41
40
|
dispose(): void;
|
|
42
41
|
private _initialize;
|
|
43
42
|
private _createFreeze;
|
package/lib/types/controllers/render-controllers/mobile/mobile-scroll.render-controller.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IRange, Workbook, Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
|
|
2
2
|
import { IRenderContext, IRenderModule, IRenderManagerService } from '@univerjs/engine-render';
|
|
3
3
|
import { SheetsSelectionsService } from '@univerjs/sheets';
|
|
4
|
-
import {
|
|
4
|
+
import { SheetScrollManagerService } from '../../../services/scroll-manager.service';
|
|
5
5
|
import { SheetSkeletonManagerService } from '../../../services/sheet-skeleton-manager.service';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -15,7 +15,7 @@ export declare class MobileSheetsScrollRenderController extends Disposable imple
|
|
|
15
15
|
private readonly _selectionManagerService;
|
|
16
16
|
private readonly _scrollManagerService;
|
|
17
17
|
protected readonly _univerInstanceService: IUniverInstanceService;
|
|
18
|
-
constructor(_context: IRenderContext<Workbook>, _sheetSkeletonManagerService: SheetSkeletonManagerService, _commandService: ICommandService, _renderManagerService: IRenderManagerService, _selectionManagerService: SheetsSelectionsService, _scrollManagerService:
|
|
18
|
+
constructor(_context: IRenderContext<Workbook>, _sheetSkeletonManagerService: SheetSkeletonManagerService, _commandService: ICommandService, _renderManagerService: IRenderManagerService, _selectionManagerService: SheetsSelectionsService, _scrollManagerService: SheetScrollManagerService, _univerInstanceService: IUniverInstanceService);
|
|
19
19
|
scrollToRange(range: IRange): boolean;
|
|
20
20
|
private _init;
|
|
21
21
|
private _initCommandListener;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { IRange, Workbook, Disposable, ICommandService } from '@univerjs/core';
|
|
1
|
+
import { IRange, Workbook, Disposable, ICommandService, Injector } from '@univerjs/core';
|
|
2
2
|
import { IRenderContext, IRenderModule, IRenderManagerService } from '@univerjs/engine-render';
|
|
3
|
-
import {
|
|
4
|
-
import { ScrollManagerService } from '../../services/scroll-manager.service';
|
|
3
|
+
import { SheetScrollManagerService } from '../../services/scroll-manager.service';
|
|
5
4
|
import { SheetSkeletonManagerService } from '../../services/sheet-skeleton-manager.service';
|
|
6
5
|
|
|
7
6
|
/**
|
|
@@ -14,7 +13,7 @@ export declare class SheetsScrollRenderController extends Disposable implements
|
|
|
14
13
|
private readonly _commandService;
|
|
15
14
|
private readonly _renderManagerService;
|
|
16
15
|
private readonly _scrollManagerService;
|
|
17
|
-
constructor(_context: IRenderContext<Workbook>, _injector: Injector, _sheetSkeletonManagerService: SheetSkeletonManagerService, _commandService: ICommandService, _renderManagerService: IRenderManagerService, _scrollManagerService:
|
|
16
|
+
constructor(_context: IRenderContext<Workbook>, _injector: Injector, _sheetSkeletonManagerService: SheetSkeletonManagerService, _commandService: ICommandService, _renderManagerService: IRenderManagerService, _scrollManagerService: SheetScrollManagerService);
|
|
18
17
|
scrollToRange(range: IRange): boolean;
|
|
19
18
|
private _init;
|
|
20
19
|
private _initCommandListener;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Disposable, ICommandService } from '@univerjs/core';
|
|
1
|
+
import { Disposable, ICommandService, Injector } from '@univerjs/core';
|
|
2
2
|
import { MenuConfig, ComponentManager, ILayoutService, IMenuService, IShortcutService, IUIPartsService } from '@univerjs/ui';
|
|
3
|
-
import { Injector } from '@wendellhu/redi';
|
|
4
3
|
|
|
5
4
|
export interface IUniverSheetsUIConfig {
|
|
6
5
|
menu: MenuConfig;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { IAccessor } from '@
|
|
2
|
-
import { ICellData, IObjectMatrixPrimitiveType, IRange } from '@univerjs/core';
|
|
1
|
+
import { IAccessor, ICellData, IObjectMatrixPrimitiveType, IRange } from '@univerjs/core';
|
|
3
2
|
|
|
4
3
|
export interface IDiscreteRange {
|
|
5
4
|
rows: number[];
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { RANGE_TYPE } from '@univerjs/core';
|
|
1
|
+
import { IAccessor, RANGE_TYPE } from '@univerjs/core';
|
|
2
2
|
import { ISelectionWithStyle } from '@univerjs/sheets';
|
|
3
|
-
import { IAccessor } from '@wendellhu/redi';
|
|
4
3
|
|
|
5
4
|
export declare function getSheetSelectionsDisabled$(accessor: IAccessor): import('rxjs').Observable<boolean>;
|
|
6
5
|
export declare function checkInHeaderRanges(selections: Readonly<ISelectionWithStyle[]>, num: number, rType: RANGE_TYPE.ROW | RANGE_TYPE.COLUMN): false | ISelectionWithStyle;
|
|
@@ -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
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Nullable, Direction, Disposable, ICommandService, IUndoRedoService, IUniverInstanceService } from '@univerjs/core';
|
|
1
|
+
import { IDisposable, Nullable, Direction, Disposable, ICommandService, IUndoRedoService, IUniverInstanceService } from '@univerjs/core';
|
|
2
2
|
import { SheetsSelectionsService } from '@univerjs/sheets';
|
|
3
|
-
import { IDisposable } from '@wendellhu/redi';
|
|
4
3
|
import { Observable } from 'rxjs';
|
|
5
4
|
import { IAutoFillLocation, IAutoFillRule, ISheetAutoFillHook, APPLY_TYPE } from './type';
|
|
6
5
|
|
|
@@ -67,4 +66,4 @@ export declare class AutoFillService extends Disposable implements IAutoFillServ
|
|
|
67
66
|
setShowMenu(show: boolean): void;
|
|
68
67
|
fillData(triggerUnitId: string, triggerSubUnitId: string): boolean;
|
|
69
68
|
}
|
|
70
|
-
export declare const IAutoFillService: import('@
|
|
69
|
+
export declare const IAutoFillService: import('@univerjs/core').IdentifierDecorator<AutoFillService>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Direction, ICellData, IMutationInfo, Nullable } from '@univerjs/core';
|
|
2
|
-
import { IAccessor } from '@wendellhu/redi';
|
|
1
|
+
import { Direction, IAccessor, ICellData, IMutationInfo, Nullable } from '@univerjs/core';
|
|
3
2
|
import { IDiscreteRange } from '../../controllers/utils/range-tools';
|
|
4
3
|
|
|
5
4
|
export declare enum AutoFillHookType {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { Nullable, Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
|
|
1
|
+
import { IDisposable, Nullable, Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
|
|
2
2
|
import { IRenderManagerService, BaseObject, Viewport } from '@univerjs/engine-render';
|
|
3
3
|
import { IPopup, ICanvasPopupService } from '@univerjs/ui';
|
|
4
|
-
import { IDisposable } from '@wendellhu/redi';
|
|
5
4
|
import { RefRangeService } from '@univerjs/sheets';
|
|
6
5
|
|
|
7
6
|
export interface ICanvasPopup extends Pick<IPopup, 'direction' | 'excludeOutside' | 'closeOnSelfTarget' | 'componentKey' | 'offset' | 'onClickOutside'> {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IDisposable } from '@
|
|
1
|
+
import { IDisposable } from '@univerjs/core';
|
|
2
2
|
import { ISheetLocation } from '@univerjs/sheets';
|
|
3
3
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
4
4
|
import { SheetCanvasPopManagerService } from './canvas-pop-manager.service';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { IWorkbookData, Univer } from '@univerjs/core';
|
|
2
|
-
import { Dependency, IDisposable } from '@wendellhu/redi';
|
|
1
|
+
import { Dependency, IDisposable, IWorkbookData, Univer } from '@univerjs/core';
|
|
3
2
|
|
|
4
3
|
export declare class testMarkSelectionService {
|
|
5
4
|
addShape(): string | null;
|
|
@@ -19,12 +18,12 @@ export declare class testPlatformService {
|
|
|
19
18
|
export declare function clipboardTestBed(workbookData?: IWorkbookData, dependencies?: Dependency[]): {
|
|
20
19
|
univer: Univer;
|
|
21
20
|
get: {
|
|
22
|
-
<T>(id: import('@
|
|
23
|
-
<T>(id: import('@
|
|
24
|
-
<T>(id: import('@
|
|
25
|
-
<T>(id: import('@
|
|
26
|
-
<T>(id: import('@
|
|
27
|
-
<T>(id: import('@
|
|
21
|
+
<T>(id: import('@univerjs/core').DependencyIdentifier<T>, lookUp?: import('@univerjs/core').LookUp): T;
|
|
22
|
+
<T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantity: import("@univerjs/core").Quantity.MANY, lookUp?: import('@univerjs/core').LookUp): T[];
|
|
23
|
+
<T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantity: import("@univerjs/core").Quantity.OPTIONAL, lookUp?: import('@univerjs/core').LookUp): T | null;
|
|
24
|
+
<T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantity: import("@univerjs/core").Quantity.REQUIRED, lookUp?: import('@univerjs/core').LookUp): T;
|
|
25
|
+
<T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantity?: import('@univerjs/core').Quantity, lookUp?: import('@univerjs/core').LookUp): T[] | T | null;
|
|
26
|
+
<T>(id: import('@univerjs/core').DependencyIdentifier<T>, quantityOrLookup?: import('@univerjs/core').Quantity | import('@univerjs/core').LookUp, lookUp?: import('@univerjs/core').LookUp): T[] | T | null;
|
|
28
27
|
};
|
|
29
28
|
sheet: import('@univerjs/core').Workbook;
|
|
30
29
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { IRange, Nullable, Disposable, ErrorService, ICommandService, ILogService, IUndoRedoService, IUniverInstanceService, LocaleService, ObjectMatrix, ThemeService } from '@univerjs/core';
|
|
1
|
+
import { IDisposable, IRange, Nullable, Disposable, ErrorService, ICommandService, ILogService, Injector, IUndoRedoService, IUniverInstanceService, LocaleService, ObjectMatrix, ThemeService } from '@univerjs/core';
|
|
2
2
|
import { SheetsSelectionsService } from '@univerjs/sheets';
|
|
3
3
|
import { IClipboardInterfaceService, INotificationService, IPlatformService } from '@univerjs/ui';
|
|
4
|
-
import { IDisposable, Injector } from '@wendellhu/redi';
|
|
5
4
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
6
5
|
import { IMarkSelectionService } from '../mark-selection/mark-selection.service';
|
|
7
6
|
import { IDiscreteRange } from '../../controllers/utils/range-tools';
|
|
@@ -34,7 +33,7 @@ export interface ISheetClipboardService {
|
|
|
34
33
|
addClipboardHook(hook: ISheetClipboardHook): IDisposable;
|
|
35
34
|
getClipboardHooks(): ISheetClipboardHook[];
|
|
36
35
|
}
|
|
37
|
-
export declare const ISheetClipboardService: import('@
|
|
36
|
+
export declare const ISheetClipboardService: import('@univerjs/core').IdentifierDecorator<ISheetClipboardService>;
|
|
38
37
|
export declare class SheetClipboardService extends Disposable implements ISheetClipboardService {
|
|
39
38
|
private readonly _logService;
|
|
40
39
|
private readonly _univerInstanceService;
|