@univerjs/sheets-ui 0.15.0-insiders.20260108-7b9120d → 0.15.0-insiders.20260110-48b77c8
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 +11 -11
- package/lib/es/index.js +7984 -8004
- package/lib/index.js +7984 -8004
- package/lib/types/controllers/clipboard/clipboard.controller.d.ts +2 -0
- package/lib/types/services/canvas-pop-manager.service.d.ts +8 -0
- package/lib/types/services/clipboard/clipboard.service.d.ts +5 -0
- package/lib/types/services/clipboard/type.d.ts +1 -1
- package/lib/umd/index.js +11 -11
- package/package.json +12 -12
|
@@ -22,6 +22,8 @@ export declare class SheetClipboardController extends RxDisposable {
|
|
|
22
22
|
private _init;
|
|
23
23
|
private _initCopyingHooks;
|
|
24
24
|
private _initPastingHook;
|
|
25
|
+
private _initPastingRowsHook;
|
|
26
|
+
private _initPastingColumnsHook;
|
|
25
27
|
private _generateDocumentDataModelSnapshot;
|
|
26
28
|
private _onPastePlainText;
|
|
27
29
|
private _onPasteCells;
|
|
@@ -25,6 +25,7 @@ export declare class SheetCanvasPopManagerService extends Disposable {
|
|
|
25
25
|
private readonly _refSelectionsService;
|
|
26
26
|
private readonly _selectionManagerService;
|
|
27
27
|
private _popupMenuFeatureMap;
|
|
28
|
+
private _popupMenuOffsetMap;
|
|
28
29
|
constructor(_globalPopupManagerService: ICanvasPopupService, _renderManagerService: IRenderManagerService, _univerInstanceService: IUniverInstanceService, _refRangeService: RefRangeService, _commandService: ICommandService, _refSelectionsService: ISheetSelectionRenderService, _selectionManagerService: SheetsSelectionsService);
|
|
29
30
|
private _isSelectionMoving;
|
|
30
31
|
private _initMoving;
|
|
@@ -32,6 +33,13 @@ export declare class SheetCanvasPopManagerService extends Disposable {
|
|
|
32
33
|
* Register a feature menu callback for a specific drawing type.such as image, chart, etc.
|
|
33
34
|
*/
|
|
34
35
|
registerFeatureMenu(type: DrawingTypeEnum, getPopupMenuCallBack: getPopupMenuItemCallback): void;
|
|
36
|
+
/**
|
|
37
|
+
* Register a feature menu offset for a specific drawing type.
|
|
38
|
+
* @param {DrawingTypeEnum} type the drawing type
|
|
39
|
+
* @param offsetX The offset x
|
|
40
|
+
* @param offsetY The offset y
|
|
41
|
+
*/
|
|
42
|
+
registerFeatureMenuOffset(type: DrawingTypeEnum, offsetX: number, offsetY: number): void;
|
|
35
43
|
/**
|
|
36
44
|
* Get the feature menu by drawing type, the function should be called when a drawing element need trigger popup menu, so the unitId, subUnitId, drawingId should be provided.
|
|
37
45
|
* @param {string} unitId the unit id
|
|
@@ -13,6 +13,8 @@ export declare const PREDEFINED_HOOK_NAME_COPY: {
|
|
|
13
13
|
};
|
|
14
14
|
export declare const PREDEFINED_HOOK_NAME_PASTE: {
|
|
15
15
|
readonly DEFAULT_PASTE: "default-paste";
|
|
16
|
+
readonly DEFAULT_PASTE_ROWS: "default-paste-rows";
|
|
17
|
+
readonly DEFAULT_PASTE_COLUMNS: "default-paste-columns";
|
|
16
18
|
readonly SPECIAL_PASTE_VALUE: "special-paste-value";
|
|
17
19
|
readonly SPECIAL_PASTE_FORMAT: "special-paste-format";
|
|
18
20
|
readonly SPECIAL_PASTE_COL_WIDTH: "special-paste-col-width";
|
|
@@ -21,6 +23,8 @@ export declare const PREDEFINED_HOOK_NAME_PASTE: {
|
|
|
21
23
|
};
|
|
22
24
|
export declare const PREDEFINED_HOOK_NAME: {
|
|
23
25
|
readonly DEFAULT_PASTE: "default-paste";
|
|
26
|
+
readonly DEFAULT_PASTE_ROWS: "default-paste-rows";
|
|
27
|
+
readonly DEFAULT_PASTE_COLUMNS: "default-paste-columns";
|
|
24
28
|
readonly SPECIAL_PASTE_VALUE: "special-paste-value";
|
|
25
29
|
readonly SPECIAL_PASTE_FORMAT: "special-paste-format";
|
|
26
30
|
readonly SPECIAL_PASTE_COL_WIDTH: "special-paste-col-width";
|
|
@@ -108,6 +112,7 @@ export declare class SheetClipboardService extends Disposable implements ISheetC
|
|
|
108
112
|
private _pasteExternal;
|
|
109
113
|
private _pasteInternal;
|
|
110
114
|
private _pasteUSM;
|
|
115
|
+
private _getPastedRangeAutoHeightMutation;
|
|
111
116
|
private _getSetSelectionOperation;
|
|
112
117
|
private _getPastingTarget;
|
|
113
118
|
/**
|
|
@@ -149,7 +149,7 @@ export interface ISheetClipboardHook {
|
|
|
149
149
|
* @param payload
|
|
150
150
|
* @returns undo and redo mutations
|
|
151
151
|
*/
|
|
152
|
-
onPasteRows?(pasteTo: ISheetDiscreteRangeLocation
|
|
152
|
+
onPasteRows?(pasteTo: ISheetDiscreteRangeLocation): {
|
|
153
153
|
undos: IMutationInfo[];
|
|
154
154
|
redos: IMutationInfo[];
|
|
155
155
|
};
|