@univerjs/sheets-ui 0.2.11 → 0.2.13
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 +13 -12
- package/lib/es/index.js +11979 -11209
- package/lib/index.css +1 -1
- package/lib/types/commands/commands/__tests__/create-selection-command-test-bed.d.ts +12 -12
- package/lib/types/common/keys.d.ts +4 -1
- package/lib/types/common/utils.d.ts +12 -3
- package/lib/types/controllers/auto-height.controller.d.ts +1 -0
- package/lib/types/controllers/clipboard/clipboard.controller.d.ts +2 -3
- package/lib/types/controllers/config.schema.d.ts +10 -0
- package/lib/types/controllers/editor/__tests__/mock-function.service.d.ts +1 -1
- package/lib/types/controllers/editor/editing.render-controller.d.ts +8 -8
- package/lib/types/controllers/editor/formula-editor.controller.d.ts +6 -3
- package/lib/types/controllers/hover-render.controller.d.ts +2 -0
- package/lib/types/controllers/menu/__tests__/create-menu-test-bed.d.ts +6 -6
- package/lib/types/controllers/menu/clear.menu.d.ts +1 -0
- package/lib/types/controllers/menu/delete.menu.d.ts +1 -0
- package/lib/types/controllers/menu/insert.menu.d.ts +3 -0
- package/lib/types/controllers/menu/menu-util.d.ts +15 -0
- package/lib/types/controllers/menu/permission.menu.d.ts +1 -1
- package/lib/types/controllers/menu.schema.d.ts +2 -0
- package/lib/types/controllers/mobile/menu.schema.d.ts +2 -0
- package/lib/types/controllers/mobile/mobile-sheet-ui.controller.d.ts +3 -8
- package/lib/types/controllers/permission/sheet-permission-init.controller.d.ts +5 -3
- package/lib/types/controllers/permission/sheet-permission-interceptor-base.controller.d.ts +2 -2
- package/lib/types/controllers/permission/sheet-permission-render.controller.d.ts +14 -3
- package/lib/types/controllers/render-controllers/freeze.render-controller.d.ts +2 -2
- package/lib/types/controllers/render-controllers/header-move.render-controller.d.ts +3 -3
- package/lib/types/controllers/render-controllers/sheet.render-controller.d.ts +9 -2
- package/lib/types/controllers/sheet-ui.controller.d.ts +4 -11
- package/lib/types/controllers/shortcuts/editor.shortcut.d.ts +1 -1
- package/lib/types/controllers/utils/selections-tools.d.ts +23 -2
- package/lib/types/index.d.ts +26 -24
- package/lib/types/mobile-sheets-ui-plugin.d.ts +2 -2
- package/lib/types/services/auto-fill/auto-fill.service.d.ts +13 -6
- package/lib/types/services/canvas-pop-manager.service.d.ts +20 -12
- package/lib/types/services/cell-alert-manager.service.d.ts +2 -2
- package/lib/types/services/clipboard/__tests__/clipboard-copy-filter.spec.d.ts +16 -0
- package/lib/types/services/clipboard/__tests__/clipboard-test-bed.d.ts +6 -6
- package/lib/types/services/clipboard/__tests__/mock-clipboard.d.ts +2 -0
- package/lib/types/services/clipboard/__tests__/sheet-paste.spec.d.ts +16 -0
- package/lib/types/services/clipboard/clipboard.service.d.ts +5 -5
- package/lib/types/services/clipboard/html-to-usm/converter.d.ts +2 -0
- package/lib/types/services/clipboard/usm-to-html/convertor.d.ts +3 -2
- package/lib/types/services/clipboard/utils.d.ts +2 -2
- package/lib/types/services/editor/cell-editor-manager.service.d.ts +1 -1
- package/lib/types/services/editor/formula-editor-manager.service.d.ts +1 -1
- package/lib/types/services/editor-bridge.service.d.ts +13 -10
- package/lib/types/services/format-painter/format-painter.service.d.ts +1 -1
- package/lib/types/services/hover-manager.service.d.ts +34 -5
- package/lib/types/services/mark-selection/mark-selection.service.d.ts +1 -1
- package/lib/types/services/scroll-manager.service.d.ts +2 -2
- package/lib/types/services/selection/base-selection-render.service.d.ts +3 -2
- package/lib/types/services/selection/mobile-selection-shape.d.ts +4 -13
- package/lib/types/services/selection/selection-layer.d.ts +5 -0
- package/lib/types/services/selection/selection-shape.d.ts +17 -12
- package/lib/types/services/sheet-bar/sheet-bar.service.d.ts +1 -1
- package/lib/types/services/status-bar.service.d.ts +1 -1
- package/lib/types/services/utils/doc-skeleton-util.d.ts +44 -0
- package/lib/types/sheets-ui-plugin.d.ts +4 -3
- package/lib/types/views/defined-name/DefinedNameInput.d.ts +1 -1
- package/lib/types/views/permission/extensions/range-protection.render.d.ts +3 -3
- package/lib/types/views/permission/extensions/worksheet-permission.render.d.ts +3 -3
- package/lib/umd/index.js +13 -12
- package/package.json +26 -22
- package/lib/types/services/permission/worksheet-permission-render.service.d.ts +0 -9
|
@@ -1,21 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export interface IUniverSheetsUIConfig {
|
|
4
|
-
menu: MenuConfig;
|
|
5
|
-
disableAutoFocus?: true;
|
|
6
|
-
override?: DependencyOverride;
|
|
7
|
-
}
|
|
8
|
-
export declare const DefaultSheetUiConfig: {};
|
|
1
|
+
import { Disposable, ICommandService, Injector } from '@univerjs/core';
|
|
2
|
+
import { ComponentManager, ILayoutService, IMenuManagerService, IShortcutService, IUIPartsService } from '@univerjs/ui';
|
|
9
3
|
export declare class SheetUIController extends Disposable {
|
|
10
|
-
protected readonly _config: Partial<IUniverSheetsUIConfig>;
|
|
11
4
|
protected readonly _injector: Injector;
|
|
12
5
|
protected readonly _componentManager: ComponentManager;
|
|
13
6
|
protected readonly _layoutService: ILayoutService;
|
|
14
7
|
protected readonly _commandService: ICommandService;
|
|
15
8
|
protected readonly _shortcutService: IShortcutService;
|
|
16
|
-
protected readonly
|
|
9
|
+
protected readonly _menuManagerService: IMenuManagerService;
|
|
17
10
|
protected readonly _uiPartsService: IUIPartsService;
|
|
18
|
-
constructor(
|
|
11
|
+
constructor(_injector: Injector, _componentManager: ComponentManager, _layoutService: ILayoutService, _commandService: ICommandService, _shortcutService: IShortcutService, _menuManagerService: IMenuManagerService, _uiPartsService: IUIPartsService);
|
|
19
12
|
private _init;
|
|
20
13
|
private _initCustomComponents;
|
|
21
14
|
private _initCommands;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { KeyCode, IShortcutItem } from '@univerjs/ui';
|
|
2
2
|
export declare const ARROW_SELECTION_KEYCODE_LIST: KeyCode[];
|
|
3
3
|
export declare const MOVE_SELECTION_KEYCODE_LIST: KeyCode[];
|
|
4
4
|
export declare function generateArrowSelectionShortCutItem(): IShortcutItem<object>[];
|
|
@@ -1,4 +1,25 @@
|
|
|
1
|
-
import { IAccessor, RANGE_TYPE } from '@univerjs/core';
|
|
1
|
+
import { IAccessor, Nullable, RANGE_TYPE } from '@univerjs/core';
|
|
2
2
|
import { ISelectionWithStyle } from '@univerjs/sheets';
|
|
3
3
|
export declare function getSheetSelectionsDisabled$(accessor: IAccessor): import('rxjs').Observable<boolean>;
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Detect if this row is selected
|
|
6
|
+
* @param selections
|
|
7
|
+
* @param rowIndex
|
|
8
|
+
* @returns boolean
|
|
9
|
+
*/
|
|
10
|
+
export declare function isThisRowSelected(selections: Readonly<ISelectionWithStyle[]>, rowIndex: number): boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Detect if this col is selected
|
|
13
|
+
* @param selections
|
|
14
|
+
* @param colIndex
|
|
15
|
+
* @returns boolean
|
|
16
|
+
*/
|
|
17
|
+
export declare function isThisColSelected(selections: Readonly<ISelectionWithStyle[]>, colIndex: number): boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Detect this row/col is in selections.
|
|
20
|
+
* @param selections
|
|
21
|
+
* @param indexOfRowCol
|
|
22
|
+
* @param rowOrCol
|
|
23
|
+
* @returns boolean
|
|
24
|
+
*/
|
|
25
|
+
export declare function matchedSelectionByRowColIndex(selections: Readonly<ISelectionWithStyle[]>, indexOfRowCol: number, rowOrCol: RANGE_TYPE.ROW | RANGE_TYPE.COLUMN): Nullable<ISelectionWithStyle>;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -17,16 +17,17 @@ export { SheetsUIPart } from './consts/ui-name';
|
|
|
17
17
|
export { SHEET_UI_PLUGIN_NAME } from './consts/plugin-name';
|
|
18
18
|
export { getEditorObject } from './basics/editor/get-editor-object';
|
|
19
19
|
export { SheetsScrollRenderController } from './controllers/render-controllers/scroll.render-controller';
|
|
20
|
-
export { deriveStateFromActiveSheet$, getCurrentRangeDisable$ } from './controllers/menu/menu-util';
|
|
20
|
+
export { deriveStateFromActiveSheet$, getCurrentExclusiveRangeInterest$, getCurrentRangeDisable$, getObservableWithExclusiveRange$ } from './controllers/menu/menu-util';
|
|
21
21
|
export { SheetsRenderService } from './services/sheets-render.service';
|
|
22
|
+
export { calculateDocSkeletonRects, getCustomRangePosition, getEditingCustomRangePosition } from './services/utils/doc-skeleton-util';
|
|
22
23
|
export { SHEET_VIEWPORT_KEY as VIEWPORT_KEY } from './common/keys';
|
|
23
24
|
export { AutoFillController } from './controllers/auto-fill.controller';
|
|
24
25
|
export { CellCustomRenderController } from './controllers/cell-custom-render.controller';
|
|
25
|
-
export { SheetUIController
|
|
26
|
+
export { SheetUIController } from './controllers/sheet-ui.controller';
|
|
26
27
|
export { PASTE_SPECIAL_MENU_ID } from './controllers/menu/menu';
|
|
27
28
|
export { whenFormulaEditorActivated } from './controllers/shortcuts/utils';
|
|
28
29
|
export { getCoordByCell, getCoordByOffset, getSheetObject, getTransformCoord, } from './controllers/utils/component-tools';
|
|
29
|
-
export { checkInHeaderRanges } from './controllers/utils/selections-tools';
|
|
30
|
+
export { matchedSelectionByRowColIndex as checkInHeaderRanges } from './controllers/utils/selections-tools';
|
|
30
31
|
export { useActiveWorkbook, useActiveWorksheet, useWorkbooks } from './components/hook';
|
|
31
32
|
export { whenSheetEditorFocused } from './controllers/shortcuts/utils';
|
|
32
33
|
export type { IEditorBridgeServiceParam } from './services/editor-bridge.service';
|
|
@@ -36,7 +37,7 @@ export type { ICopyDataPiece, ISheetAutoFillHook } from './services/auto-fill/ty
|
|
|
36
37
|
export { APPLY_TYPE, DATA_TYPE, type IAutoFillRule } from './services/auto-fill/type';
|
|
37
38
|
export { type ICopyDataInTypeIndexInfo } from './services/auto-fill/type';
|
|
38
39
|
export { ISheetClipboardService, PREDEFINED_HOOK_NAME, SheetClipboardService, } from './services/clipboard/clipboard.service';
|
|
39
|
-
export type { ICellDataWithSpanInfo, ISheetClipboardHook, ISheetDiscreteRangeLocation
|
|
40
|
+
export type { ICellDataWithSpanInfo, ICopyPastePayload, ISheetClipboardHook, ISheetDiscreteRangeLocation } from './services/clipboard/type';
|
|
40
41
|
export { COPY_TYPE } from './services/clipboard/type';
|
|
41
42
|
export { getRepeatRange } from './services/clipboard/utils';
|
|
42
43
|
export { CellEditorManagerService, ICellEditorManagerService } from './services/editor/cell-editor-manager.service';
|
|
@@ -49,7 +50,7 @@ export { getAllSelection, getTopLeftSelection } from './services/selection/base-
|
|
|
49
50
|
export { BaseSelectionRenderService, ISheetSelectionRenderService } from './services/selection/base-selection-render.service';
|
|
50
51
|
export { SelectionControl as SelectionShape } from './services/selection/selection-shape';
|
|
51
52
|
export type { ISheetSkeletonManagerParam } from './services/sheet-skeleton-manager.service';
|
|
52
|
-
export {
|
|
53
|
+
export { attachRangeWithCoord, SheetSkeletonManagerService } from './services/sheet-skeleton-manager.service';
|
|
53
54
|
export { UniverSheetsUIPlugin } from './sheets-ui-plugin';
|
|
54
55
|
export { SheetRenderController } from './controllers/render-controllers/sheet.render-controller';
|
|
55
56
|
export { HoverManagerService } from './services/hover-manager.service';
|
|
@@ -58,13 +59,13 @@ export { CellAlertManagerService, CellAlertType, type ICellAlert } from './servi
|
|
|
58
59
|
export { HoverRenderController } from './controllers/hover-render.controller';
|
|
59
60
|
export { DragRenderController } from './controllers/drag-render.controller';
|
|
60
61
|
export { SHEET_VIEW_KEY } from './common/keys';
|
|
61
|
-
export {
|
|
62
|
+
export { type ICanvasPopup, SheetCanvasPopManagerService } from './services/canvas-pop-manager.service';
|
|
62
63
|
export { mergeSetRangeValues } from './services/clipboard/utils';
|
|
63
64
|
export type { IAutoFillLocation } from './services/auto-fill/type';
|
|
64
65
|
export type { IDiscreteRange } from './controllers/utils/range-tools';
|
|
65
|
-
export {
|
|
66
|
+
export { rangeToDiscreteRange, virtualizeDiscreteRanges } from './controllers/utils/range-tools';
|
|
66
67
|
export { type IHoverCellPosition } from './services/hover-manager.service';
|
|
67
|
-
export { AutoHeightController } from './controllers/auto-height.controller';
|
|
68
|
+
export { AFFECT_LAYOUT_STYLES, AutoHeightController } from './controllers/auto-height.controller';
|
|
68
69
|
export { type IDragCellPosition } from './services/drag-manager.service';
|
|
69
70
|
export { SheetMenuPosition } from './controllers/menu/menu';
|
|
70
71
|
export { useHighlightRange } from './hooks/useHighlightRange';
|
|
@@ -75,36 +76,37 @@ export { FormulaEditorController } from './controllers/editor/formula-editor.con
|
|
|
75
76
|
export { StatusBarController } from './controllers/status-bar.controller';
|
|
76
77
|
export { SheetPermissionInterceptorBaseController } from './controllers/permission/sheet-permission-interceptor-base.controller';
|
|
77
78
|
export type { IRangeProtectionRenderCellData } from './views/permission/extensions/range-protection.render';
|
|
78
|
-
export { RenderSheetFooter, RenderSheetHeader
|
|
79
|
+
export { RenderSheetContent, RenderSheetFooter, RenderSheetHeader } from './views/sheet-container/SheetContainer';
|
|
79
80
|
export { SheetBar } from './views/sheet-bar/SheetBar';
|
|
80
81
|
export { SheetPrintInterceptorService } from './services/print-interceptor.service';
|
|
81
82
|
export { UniverSheetsMobileUIPlugin } from './mobile-sheets-ui-plugin';
|
|
82
83
|
export { MobileSheetBar } from './views/mobile/sheet-bar/MobileSheetBar';
|
|
83
84
|
export { SheetPermissionInitController } from './controllers/permission/sheet-permission-init.controller';
|
|
84
|
-
export { IFormatPainterService } from './services/format-painter/format-painter.service';
|
|
85
|
+
export { FormatPainterStatus, IFormatPainterService } from './services/format-painter/format-painter.service';
|
|
85
86
|
export type { IFormatPainterBeforeApplyHookParams, IFormatPainterHook } from './services/format-painter/format-painter.service';
|
|
86
|
-
export {
|
|
87
|
-
export {
|
|
88
|
-
export {
|
|
87
|
+
export { menuSchema } from './controllers/menu.schema';
|
|
88
|
+
export { AddWorksheetMergeAllCommand, AddWorksheetMergeCommand, AddWorksheetMergeHorizontalCommand, AddWorksheetMergeVerticalCommand } from './commands/commands/add-worksheet-merge.command';
|
|
89
|
+
export { AutoClearContentCommand, AutoFillCommand } from './commands/commands/auto-fill.command';
|
|
90
|
+
export { type ISheetPasteParams, SheetCopyCommand, SheetCutCommand, SheetPasteBesidesBorderCommand, SheetPasteColWidthCommand, SheetPasteCommand, SheetPasteFormatCommand, SheetPasteShortKeyCommand, SheetPasteValueCommand, } from './commands/commands/clipboard.command';
|
|
89
91
|
export { DeleteRangeMoveLeftConfirmCommand } from './commands/commands/delete-range-move-left-confirm.command';
|
|
90
92
|
export { DeleteRangeMoveUpConfirmCommand } from './commands/commands/delete-range-move-up-confirm.command';
|
|
91
|
-
export {
|
|
92
|
-
export { SetRangeBoldCommand,
|
|
93
|
+
export { HideColConfirmCommand, HideRowConfirmCommand } from './commands/commands/hide-row-col-confirm.command';
|
|
94
|
+
export { SetRangeBoldCommand, SetRangeFontFamilyCommand, SetRangeFontSizeCommand, SetRangeItalicCommand, SetRangeStrickThroughCommand, SetRangeSubscriptCommand, SetRangeSuperscriptCommand, SetRangeTextColorCommand, SetRangeUnderlineCommand, } from './commands/commands/inline-format.command';
|
|
93
95
|
export { InsertRangeMoveDownConfirmCommand } from './commands/commands/insert-range-move-down-confirm.command';
|
|
94
96
|
export { InsertRangeMoveRightConfirmCommand } from './commands/commands/insert-range-move-right-confirm.command';
|
|
95
|
-
export {
|
|
97
|
+
export { AddRangeProtectionCommand, AddRangeProtectionFromContextMenuCommand, AddRangeProtectionFromSheetBarCommand, AddRangeProtectionFromToolbarCommand, DeleteRangeProtectionFromContextMenuCommand, DeleteRangeSelectionCommand, SetProtectionCommand, SetRangeProtectionCommand, SetRangeProtectionFromContextMenuCommand, ViewSheetPermissionFromContextMenuCommand, ViewSheetPermissionFromSheetBarCommand, } from './commands/commands/range-protection.command';
|
|
96
98
|
export { RefillCommand } from './commands/commands/refill.command';
|
|
97
|
-
export {
|
|
99
|
+
export { RemoveColConfirmCommand, RemoveRowConfirmCommand } from './commands/commands/remove-row-col-confirm.command';
|
|
98
100
|
export { RemoveSheetConfirmCommand } from './commands/commands/remove-sheet-confirm.command';
|
|
99
|
-
export { SetInfiniteFormatPainterCommand, SetOnceFormatPainterCommand
|
|
100
|
-
export {
|
|
101
|
-
export {
|
|
102
|
-
export { JumpOver, MoveSelectionCommand, MoveSelectionEnterAndTabCommand,
|
|
101
|
+
export { ApplyFormatPainterCommand, SetInfiniteFormatPainterCommand, SetOnceFormatPainterCommand } from './commands/commands/set-format-painter.command';
|
|
102
|
+
export { CancelFrozenCommand, SetColumnFrozenCommand, SetRowFrozenCommand, SetSelectionFrozenCommand } from './commands/commands/set-frozen.command';
|
|
103
|
+
export { type IScrollCommandParams, type IScrollToCellCommandParams, type ISetScrollRelativeCommandParams, ResetScrollCommand, ScrollCommand, ScrollToCellCommand, SetScrollRelativeCommand, } from './commands/commands/set-scroll.command';
|
|
104
|
+
export { ExpandSelectionCommand, JumpOver, MoveSelectionCommand, MoveSelectionEnterAndTabCommand, SelectAllCommand } from './commands/commands/set-selection.command';
|
|
103
105
|
export { ChangeZoomRatioCommand, SetZoomRatioCommand } from './commands/commands/set-zoom-ratio.command';
|
|
104
106
|
export { ShowMenuListCommand } from './commands/commands/unhide.command';
|
|
105
|
-
export { AddWorksheetProtectionCommand,
|
|
107
|
+
export { AddWorksheetProtectionCommand, ChangeSheetProtectionFromSheetBarCommand, DeleteWorksheetProtectionCommand, DeleteWorksheetProtectionFormSheetBarCommand, SetWorksheetProtectionCommand } from './commands/commands/worksheet-protection.command';
|
|
106
108
|
export { SetActivateCellEditOperation } from './commands/operations/activate-cell-edit.operation';
|
|
107
|
-
export { SetCellEditVisibleOperation, SetCellEditVisibleWithF2Operation
|
|
109
|
+
export { SetCellEditVisibleArrowOperation, SetCellEditVisibleOperation, SetCellEditVisibleWithF2Operation } from './commands/operations/cell-edit.operation';
|
|
108
110
|
export { RenameSheetOperation } from './commands/operations/rename-sheet.operation';
|
|
109
111
|
export { ScrollToRangeOperation } from './commands/operations/scroll-to-range.operation';
|
|
110
112
|
export { SetScrollOperation } from './commands/operations/scroll.operation';
|
|
@@ -116,5 +118,5 @@ export { SidebarDefinedNameOperation } from './commands/operations/sidebar-defin
|
|
|
116
118
|
export { type IBaseSheetBarProps } from './views/sheet-bar/sheet-bar-tabs/SheetBarItem';
|
|
117
119
|
export { FONT_FAMILY_COMPONENT, FONT_FAMILY_ITEM_COMPONENT } from './components/font-family/interface';
|
|
118
120
|
export { FONT_SIZE_COMPONENT } from './components/font-size/interface';
|
|
119
|
-
export {
|
|
121
|
+
export { attachPrimaryWithCoord, attachSelectionWithCoord } from './services/selection/util';
|
|
120
122
|
export { SELECTION_SHAPE_DEPTH } from './services/selection/const';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Injector, IUniverInstanceService, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
2
2
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
3
|
-
import { IUniverSheetsUIConfig } from './controllers/
|
|
3
|
+
import { IUniverSheetsUIConfig } from './controllers/config.schema';
|
|
4
4
|
/**
|
|
5
5
|
* @ignore
|
|
6
6
|
*/
|
|
@@ -11,7 +11,7 @@ export declare class UniverSheetsMobileUIPlugin extends Plugin {
|
|
|
11
11
|
private readonly _univerInstanceService;
|
|
12
12
|
static pluginName: string;
|
|
13
13
|
static type: UniverInstanceType;
|
|
14
|
-
constructor(_config: Partial<IUniverSheetsUIConfig
|
|
14
|
+
constructor(_config: Partial<IUniverSheetsUIConfig> | undefined, _injector: Injector, _renderManagerService: IRenderManagerService, _univerInstanceService: IUniverInstanceService);
|
|
15
15
|
onStarting(): void;
|
|
16
16
|
onReady(): void;
|
|
17
17
|
onRendered(): void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { IDisposable, Nullable, Direction, Disposable, ICommandService, IUndoRedoService, IUniverInstanceService } from '@univerjs/core';
|
|
1
|
+
import { IDisposable, Nullable, Direction, Disposable, ICommandService, Injector, IUndoRedoService, IUniverInstanceService } from '@univerjs/core';
|
|
2
2
|
import { SheetsSelectionsService } from '@univerjs/sheets';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
|
+
import { RenderManagerService } from '@univerjs/engine-render';
|
|
4
5
|
import { IAutoFillLocation, IAutoFillRule, ISheetAutoFillHook, APPLY_TYPE } from './type';
|
|
5
6
|
export interface IAutoFillService {
|
|
6
7
|
applyType$: Observable<APPLY_TYPE>;
|
|
@@ -21,6 +22,7 @@ export interface IAutoFillService {
|
|
|
21
22
|
getActiveHooks(): ISheetAutoFillHook[];
|
|
22
23
|
addHook(hook: ISheetAutoFillHook): IDisposable;
|
|
23
24
|
fillData(triggerUnitId: string, triggerSubUnitId: string): boolean;
|
|
25
|
+
initPrevUndo(): void;
|
|
24
26
|
}
|
|
25
27
|
export interface IApplyMenuItem {
|
|
26
28
|
label: string;
|
|
@@ -28,14 +30,17 @@ export interface IApplyMenuItem {
|
|
|
28
30
|
disable: boolean;
|
|
29
31
|
}
|
|
30
32
|
export declare class AutoFillService extends Disposable implements IAutoFillService {
|
|
31
|
-
private _univerInstanceService;
|
|
32
|
-
private _selectionManagerService;
|
|
33
33
|
private _commandService;
|
|
34
34
|
private _undoRedoService;
|
|
35
|
+
private readonly _renderManagerService;
|
|
36
|
+
private _univerInstanceService;
|
|
37
|
+
private _selectionManagerService;
|
|
38
|
+
private readonly _injector;
|
|
35
39
|
private _rules;
|
|
36
40
|
private _hooks;
|
|
37
41
|
private readonly _applyType$;
|
|
38
42
|
private _isFillingStyle;
|
|
43
|
+
private _prevUndos;
|
|
39
44
|
private readonly _autoFillLocation$;
|
|
40
45
|
readonly autoFillLocation$: Observable<Nullable<IAutoFillLocation>>;
|
|
41
46
|
private readonly _showMenu$;
|
|
@@ -44,9 +49,10 @@ export declare class AutoFillService extends Disposable implements IAutoFillServ
|
|
|
44
49
|
readonly applyType$: Observable<APPLY_TYPE>;
|
|
45
50
|
private readonly _menu$;
|
|
46
51
|
readonly menu$: Observable<IApplyMenuItem[]>;
|
|
47
|
-
constructor(_univerInstanceService: IUniverInstanceService, _selectionManagerService: SheetsSelectionsService,
|
|
52
|
+
constructor(_commandService: ICommandService, _undoRedoService: IUndoRedoService, _renderManagerService: RenderManagerService, _univerInstanceService: IUniverInstanceService, _selectionManagerService: SheetsSelectionsService, _injector: Injector);
|
|
48
53
|
private _init;
|
|
49
|
-
private
|
|
54
|
+
private _getOneByPriority;
|
|
55
|
+
initPrevUndo(): void;
|
|
50
56
|
addHook(hook: ISheetAutoFillHook): IDisposable;
|
|
51
57
|
registerRule(rule: IAutoFillRule): void;
|
|
52
58
|
getRules(): IAutoFillRule[];
|
|
@@ -64,5 +70,6 @@ export declare class AutoFillService extends Disposable implements IAutoFillServ
|
|
|
64
70
|
setDisableApplyType(type: APPLY_TYPE, disable: boolean): void;
|
|
65
71
|
setShowMenu(show: boolean): void;
|
|
66
72
|
fillData(triggerUnitId: string, triggerSubUnitId: string): boolean;
|
|
73
|
+
private _getAutoHeightUndoRedos;
|
|
67
74
|
}
|
|
68
|
-
export declare const IAutoFillService: import('@
|
|
75
|
+
export declare const IAutoFillService: import('@wendellhu/redi').IdentifierDecorator<AutoFillService>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { IRenderManagerService, BaseObject, Viewport } from '@univerjs/engine-render';
|
|
1
|
+
import { INeedCheckDisposable, Nullable, Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
|
|
2
|
+
import { IRenderManagerService, BaseObject, IBoundRectNoAngle, Viewport } from '@univerjs/engine-render';
|
|
3
3
|
import { IPopup, ICanvasPopupService } from '@univerjs/ui';
|
|
4
4
|
import { RefRangeService } from '@univerjs/sheets';
|
|
5
|
-
export interface ICanvasPopup extends Pick<IPopup, 'direction' | 'excludeOutside' | '
|
|
5
|
+
export interface ICanvasPopup extends Pick<IPopup, 'direction' | 'excludeOutside' | 'componentKey' | 'offset' | 'onClickOutside' | 'hideOnInvisible' | 'hiddenType' | 'onClick'> {
|
|
6
6
|
mask?: boolean;
|
|
7
7
|
extraProps?: Record<string, any>;
|
|
8
8
|
}
|
|
@@ -13,23 +13,31 @@ export declare class SheetCanvasPopManagerService extends Disposable {
|
|
|
13
13
|
private readonly _refRangeService;
|
|
14
14
|
private readonly _commandService;
|
|
15
15
|
constructor(_globalPopupManagerService: ICanvasPopupService, _renderManagerService: IRenderManagerService, _univerInstanceService: IUniverInstanceService, _refRangeService: RefRangeService, _commandService: ICommandService);
|
|
16
|
-
private
|
|
16
|
+
private _createPositionObserver;
|
|
17
17
|
/**
|
|
18
18
|
* attach a popup to canvas object
|
|
19
19
|
* @param targetObject target canvas object
|
|
20
20
|
* @param popup popup item
|
|
21
21
|
* @returns disposable
|
|
22
22
|
*/
|
|
23
|
-
attachPopupToObject(targetObject: BaseObject, popup: ICanvasPopup):
|
|
23
|
+
attachPopupToObject(targetObject: BaseObject, popup: ICanvasPopup): INeedCheckDisposable;
|
|
24
|
+
attachPopupByPosition(bound: IBoundRectNoAngle, popup: ICanvasPopup, _unitId?: string, _subUnitId?: string): Nullable<INeedCheckDisposable>;
|
|
25
|
+
attachPopupToAbsolutePosition(bound: IBoundRectNoAngle, popup: ICanvasPopup, _unitId?: string, _subUnitId?: string): {
|
|
26
|
+
dispose: () => void;
|
|
27
|
+
canDispose: () => boolean;
|
|
28
|
+
} | null;
|
|
24
29
|
/**
|
|
25
|
-
*
|
|
26
|
-
* @param row
|
|
27
|
-
* @param col
|
|
28
|
-
* @param popup
|
|
29
|
-
* @param
|
|
30
|
-
* @
|
|
30
|
+
*
|
|
31
|
+
* @param row
|
|
32
|
+
* @param col
|
|
33
|
+
* @param popup
|
|
34
|
+
* @param _unitId
|
|
35
|
+
* @param _subUnitId
|
|
36
|
+
* @param viewport
|
|
37
|
+
* @param showOnSelectionMoving
|
|
38
|
+
* @returns
|
|
31
39
|
*/
|
|
32
|
-
attachPopupToCell(row: number, col: number, popup: ICanvasPopup, _unitId?: string, _subUnitId?: string, viewport?: Viewport, showOnSelectionMoving?: boolean): Nullable<
|
|
40
|
+
attachPopupToCell(row: number, col: number, popup: ICanvasPopup, _unitId?: string, _subUnitId?: string, viewport?: Viewport, showOnSelectionMoving?: boolean): Nullable<INeedCheckDisposable>;
|
|
33
41
|
private _createCellPositionObserver;
|
|
34
42
|
private _calcCellPositionByCell;
|
|
35
43
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ISheetLocation } from '@univerjs/sheets';
|
|
1
|
+
import { Disposable, IDisposable } from '@univerjs/core';
|
|
3
2
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
3
|
+
import { ISheetLocation } from '@univerjs/sheets';
|
|
4
4
|
import { SheetCanvasPopManagerService } from './canvas-pop-manager.service';
|
|
5
5
|
export declare enum CellAlertType {
|
|
6
6
|
INFO = 0,
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -17,12 +17,12 @@ export declare class testPlatformService {
|
|
|
17
17
|
export declare function clipboardTestBed(workbookData?: IWorkbookData, dependencies?: Dependency[]): {
|
|
18
18
|
univer: Univer;
|
|
19
19
|
get: {
|
|
20
|
-
<T>(id: import('@
|
|
21
|
-
<T>(id: import('@
|
|
22
|
-
<T>(id: import('@
|
|
23
|
-
<T>(id: import('@
|
|
24
|
-
<T>(id: import('@
|
|
25
|
-
<T>(id: import('@
|
|
20
|
+
<T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, lookUp?: import('@wendellhu/redi').LookUp): T;
|
|
21
|
+
<T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantity: import("@wendellhu/redi").Quantity.MANY, lookUp?: import('@wendellhu/redi').LookUp): T[];
|
|
22
|
+
<T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantity: import("@wendellhu/redi").Quantity.OPTIONAL, lookUp?: import('@wendellhu/redi').LookUp): T | null;
|
|
23
|
+
<T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantity: import("@wendellhu/redi").Quantity.REQUIRED, lookUp?: import('@wendellhu/redi').LookUp): T;
|
|
24
|
+
<T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantity?: import('@wendellhu/redi').Quantity, lookUp?: import('@wendellhu/redi').LookUp): T[] | T | null;
|
|
25
|
+
<T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, quantityOrLookup?: import('@wendellhu/redi').Quantity | import('@wendellhu/redi').LookUp, lookUp?: import('@wendellhu/redi').LookUp): T[] | T | null;
|
|
26
26
|
};
|
|
27
27
|
sheet: import('@univerjs/core').Workbook;
|
|
28
28
|
};
|
|
@@ -14,11 +14,13 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
export interface IClipboardItem {
|
|
17
|
+
presentationStyle: PresentationStyle;
|
|
17
18
|
readonly types: readonly string[];
|
|
18
19
|
getType(type: string): Promise<Blob>;
|
|
19
20
|
}
|
|
20
21
|
export declare class MockClipboardItem implements IClipboardItem {
|
|
21
22
|
private props;
|
|
23
|
+
presentationStyle: PresentationStyle;
|
|
22
24
|
private readonly itemTypes;
|
|
23
25
|
constructor(props: IMockClipboardProps);
|
|
24
26
|
get types(): readonly string[];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Disposable, ErrorService, ICommandService, ILogService, Injector, IUndoRedoService, IUniverInstanceService, LocaleService, ObjectMatrix, ThemeService, IDisposable, IRange, Nullable } from '@univerjs/core';
|
|
2
|
+
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
2
3
|
import { SheetsSelectionsService } from '@univerjs/sheets';
|
|
3
4
|
import { IClipboardInterfaceService, INotificationService, IPlatformService } from '@univerjs/ui';
|
|
4
|
-
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
5
5
|
import { IMarkSelectionService } from '../mark-selection/mark-selection.service';
|
|
6
|
-
import { IDiscreteRange } from '../../controllers/utils/range-tools';
|
|
7
6
|
import { CopyContentCache } from './copy-content-cache';
|
|
8
|
-
import { ICellDataWithSpanInfo, ISheetClipboardHook
|
|
7
|
+
import { COPY_TYPE, ICellDataWithSpanInfo, ISheetClipboardHook } from './type';
|
|
8
|
+
import { IDiscreteRange } from '../../controllers/utils/range-tools';
|
|
9
9
|
export declare const PREDEFINED_HOOK_NAME: {
|
|
10
10
|
DEFAULT_COPY: string;
|
|
11
11
|
DEFAULT_PASTE: string;
|
|
@@ -32,7 +32,7 @@ export interface ISheetClipboardService {
|
|
|
32
32
|
addClipboardHook(hook: ISheetClipboardHook): IDisposable;
|
|
33
33
|
getClipboardHooks(): ISheetClipboardHook[];
|
|
34
34
|
}
|
|
35
|
-
export declare const ISheetClipboardService: import('@
|
|
35
|
+
export declare const ISheetClipboardService: import('@wendellhu/redi').IdentifierDecorator<ISheetClipboardService>;
|
|
36
36
|
export declare class SheetClipboardService extends Disposable implements ISheetClipboardService {
|
|
37
37
|
private readonly _logService;
|
|
38
38
|
private readonly _univerInstanceService;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { ICellData,
|
|
1
|
+
import { ICellData, ObjectMatrix } from '@univerjs/core';
|
|
2
2
|
import { ISheetClipboardHook } from '../type';
|
|
3
|
+
import { IDiscreteRange } from '../../../controllers/utils/range-tools';
|
|
3
4
|
export declare class USMToHtmlService {
|
|
4
5
|
convert(matrix: ObjectMatrix<ICellData & {
|
|
5
6
|
rowSpan?: number | undefined;
|
|
6
7
|
colSpan?: number | undefined;
|
|
7
|
-
}>, range:
|
|
8
|
+
}>, range: IDiscreteRange, hooks: ISheetClipboardHook[]): string;
|
|
8
9
|
}
|
|
@@ -5,11 +5,11 @@ import { IDiscreteRange } from '../../controllers/utils/range-tools';
|
|
|
5
5
|
*
|
|
6
6
|
*
|
|
7
7
|
* @param {IRange} sourceRange
|
|
8
|
-
* @param {IRange}
|
|
8
|
+
* @param {IRange} targetRange
|
|
9
9
|
* @param {boolean} [isStrictMode] if is true,the remainder of the row and column must all be 0 to be repeated
|
|
10
10
|
* @return {*}
|
|
11
11
|
*/
|
|
12
|
-
export declare const getRepeatRange: (sourceRange: IRange,
|
|
12
|
+
export declare const getRepeatRange: (sourceRange: IRange, targetRange: IRange, isStrictMode?: boolean) => {
|
|
13
13
|
startRange: IRange;
|
|
14
14
|
repeatRelativeRange: IRange;
|
|
15
15
|
}[];
|
|
@@ -38,4 +38,4 @@ export declare class CellEditorManagerService implements ICellEditorManagerServi
|
|
|
38
38
|
setFocus(param?: boolean): void;
|
|
39
39
|
private _refresh;
|
|
40
40
|
}
|
|
41
|
-
export declare const ICellEditorManagerService: import('@
|
|
41
|
+
export declare const ICellEditorManagerService: import('@wendellhu/redi').IdentifierDecorator<CellEditorManagerService>;
|
|
@@ -29,4 +29,4 @@ export declare class FormulaEditorManagerService implements IDisposable {
|
|
|
29
29
|
handleFoldBtnClick(params: boolean): void;
|
|
30
30
|
private _refresh;
|
|
31
31
|
}
|
|
32
|
-
export declare const IFormulaEditorManagerService: import('@
|
|
32
|
+
export declare const IFormulaEditorManagerService: import('@wendellhu/redi').IdentifierDecorator<FormulaEditorManagerService>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { ISheetLocation, SheetsSelectionsService } from '@univerjs/sheets';
|
|
1
|
+
import { Disposable, IContextService, InterceptorManager, IUniverInstanceService, ThemeService, ICellData, ICellDataForSheetInterceptor, IDisposable, IPosition, ISelectionCell, Nullable } from '@univerjs/core';
|
|
2
|
+
import { DeviceInputEventType, IRenderManagerService, Engine, IDocumentLayoutObject, Scene } from '@univerjs/engine-render';
|
|
4
3
|
import { IEditorService, KeyCode } from '@univerjs/ui';
|
|
4
|
+
import { ISheetLocation, SheetsSelectionsService } from '@univerjs/sheets';
|
|
5
5
|
import { Observable } from 'rxjs';
|
|
6
6
|
export interface IEditorBridgeServiceVisibleParam {
|
|
7
7
|
visible: boolean;
|
|
@@ -32,9 +32,12 @@ export interface IEditorBridgeServiceParam {
|
|
|
32
32
|
editorUnitId: string;
|
|
33
33
|
isInArrayFormulaRange?: Nullable<boolean>;
|
|
34
34
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
interface ISheetLocationForEditor extends ISheetLocation {
|
|
36
|
+
origin: Nullable<ICellData>;
|
|
37
|
+
}
|
|
38
|
+
declare const BEFORE_CELL_EDIT: import('@univerjs/core').IInterceptor<ICellDataForSheetInterceptor, ISheetLocationForEditor>;
|
|
39
|
+
declare const AFTER_CELL_EDIT: import('@univerjs/core').IInterceptor<ICellDataForSheetInterceptor, ISheetLocationForEditor>;
|
|
40
|
+
declare const AFTER_CELL_EDIT_ASYNC: import('@univerjs/core').IInterceptor<Promise<Nullable<ICellDataForSheetInterceptor>>, ISheetLocationForEditor>;
|
|
38
41
|
export interface IEditorBridgeService {
|
|
39
42
|
currentEditCellState$: Observable<Nullable<IEditorBridgeServiceParam>>;
|
|
40
43
|
visible$: Observable<IEditorBridgeServiceVisibleParam>;
|
|
@@ -77,9 +80,9 @@ export declare class EditorBridgeService extends Disposable implements IEditorBr
|
|
|
77
80
|
private readonly _afterVisible$;
|
|
78
81
|
readonly afterVisible$: Observable<IEditorBridgeServiceVisibleParam>;
|
|
79
82
|
readonly interceptor: InterceptorManager<{
|
|
80
|
-
BEFORE_CELL_EDIT: import('@univerjs/core').IInterceptor<ICellDataForSheetInterceptor,
|
|
81
|
-
AFTER_CELL_EDIT: import('@univerjs/core').IInterceptor<ICellDataForSheetInterceptor,
|
|
82
|
-
AFTER_CELL_EDIT_ASYNC: import('@univerjs/core').IInterceptor<Promise<Nullable<ICellDataForSheetInterceptor>>,
|
|
83
|
+
BEFORE_CELL_EDIT: import('@univerjs/core').IInterceptor<ICellDataForSheetInterceptor, ISheetLocationForEditor>;
|
|
84
|
+
AFTER_CELL_EDIT: import('@univerjs/core').IInterceptor<ICellDataForSheetInterceptor, ISheetLocationForEditor>;
|
|
85
|
+
AFTER_CELL_EDIT_ASYNC: import('@univerjs/core').IInterceptor<Promise<Nullable<ICellDataForSheetInterceptor>>, ISheetLocationForEditor>;
|
|
83
86
|
}>;
|
|
84
87
|
constructor(_renderManagerService: IRenderManagerService, _themeService: ThemeService, _univerInstanceService: IUniverInstanceService, _editorService: IEditorService, _refSelectionsService: SheetsSelectionsService, _contextService: IContextService);
|
|
85
88
|
refreshEditCellState(): void;
|
|
@@ -116,5 +119,5 @@ export declare class EditorBridgeService extends Disposable implements IEditorBr
|
|
|
116
119
|
changeEditorDirty(dirtyStatus: boolean): void;
|
|
117
120
|
getEditorDirty(): boolean;
|
|
118
121
|
}
|
|
119
|
-
export declare const IEditorBridgeService: import('@
|
|
122
|
+
export declare const IEditorBridgeService: import('@wendellhu/redi').IdentifierDecorator<EditorBridgeService>;
|
|
120
123
|
export {};
|
|
@@ -40,7 +40,7 @@ export interface IFormatPainterBeforeApplyHookParams {
|
|
|
40
40
|
undoMutationsInfo: IMutationInfo[];
|
|
41
41
|
format: ISelectionFormatInfo;
|
|
42
42
|
}
|
|
43
|
-
export declare const IFormatPainterService: import('@
|
|
43
|
+
export declare const IFormatPainterService: import('@wendellhu/redi').IdentifierDecorator<IFormatPainterService>;
|
|
44
44
|
export declare class FormatPainterService extends Disposable implements IFormatPainterService {
|
|
45
45
|
private readonly _selectionManagerService;
|
|
46
46
|
private readonly _themeService;
|
|
@@ -1,21 +1,50 @@
|
|
|
1
|
-
import { IPosition, Nullable, Disposable, IUniverInstanceService } from '@univerjs/core';
|
|
1
|
+
import { ICustomRange, IParagraph, IPosition, Nullable, Disposable, IUniverInstanceService } from '@univerjs/core';
|
|
2
2
|
import { ISheetLocation } from '@univerjs/sheets';
|
|
3
|
-
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
3
|
+
import { IBoundRectNoAngle, IRenderManagerService } from '@univerjs/engine-render';
|
|
4
4
|
export interface IHoverCellPosition {
|
|
5
5
|
position: IPosition;
|
|
6
|
+
/**
|
|
7
|
+
* location of cell
|
|
8
|
+
*/
|
|
6
9
|
location: ISheetLocation;
|
|
7
10
|
}
|
|
11
|
+
export interface IHoverRichTextPosition extends IHoverCellPosition {
|
|
12
|
+
/**
|
|
13
|
+
* active custom range in cell, if cell is rich-text
|
|
14
|
+
*/
|
|
15
|
+
customRange?: Nullable<ICustomRange>;
|
|
16
|
+
/**
|
|
17
|
+
* active bullet in cell, if cell is rich-text
|
|
18
|
+
*/
|
|
19
|
+
bullet?: Nullable<IParagraph>;
|
|
20
|
+
/**
|
|
21
|
+
* rect of custom-range or bullet
|
|
22
|
+
*/
|
|
23
|
+
rect?: Nullable<IBoundRectNoAngle>;
|
|
24
|
+
}
|
|
8
25
|
export declare class HoverManagerService extends Disposable {
|
|
9
26
|
private readonly _univerInstanceService;
|
|
10
27
|
private readonly _renderManagerService;
|
|
11
28
|
private _currentCell$;
|
|
29
|
+
private _currentRichText$;
|
|
30
|
+
private _currentClickedCell$;
|
|
12
31
|
currentCell$: import('rxjs').Observable<Nullable<IHoverCellPosition>>;
|
|
32
|
+
currentRichText$: import('rxjs').Observable<void | {
|
|
33
|
+
unitId: string;
|
|
34
|
+
subUnitId: string;
|
|
35
|
+
row: number;
|
|
36
|
+
col: number;
|
|
37
|
+
customRange: Nullable<ICustomRange<Record<string, any>>>;
|
|
38
|
+
bullet: Nullable<IParagraph>;
|
|
39
|
+
rect: Nullable<IBoundRectNoAngle>;
|
|
40
|
+
} | null | undefined>;
|
|
13
41
|
currentPosition$: import('rxjs').Observable<Nullable<IHoverCellPosition>>;
|
|
14
|
-
|
|
42
|
+
currentClickedCell$: import('rxjs').Observable<IHoverCellPosition>;
|
|
15
43
|
constructor(_univerInstanceService: IUniverInstanceService, _renderManagerService: IRenderManagerService);
|
|
16
44
|
dispose(): void;
|
|
17
45
|
private _initCellDisposableListener;
|
|
18
46
|
private _calcActiveCell;
|
|
19
|
-
|
|
20
|
-
|
|
47
|
+
triggerMouseMove(unitId: string, offsetX: number, offsetY: number): void;
|
|
48
|
+
triggerClick(unitId: string, offsetX: number, offsetY: number): void;
|
|
49
|
+
triggerScroll(): void;
|
|
21
50
|
}
|
|
@@ -17,7 +17,7 @@ interface IMarkSelectionInfo {
|
|
|
17
17
|
control: SelectionControl | null;
|
|
18
18
|
exits: string[];
|
|
19
19
|
}
|
|
20
|
-
export declare const IMarkSelectionService: import('@
|
|
20
|
+
export declare const IMarkSelectionService: import('@wendellhu/redi').IdentifierDecorator<IMarkSelectionService>;
|
|
21
21
|
/**
|
|
22
22
|
* For condition format selection.
|
|
23
23
|
*/
|