@univerjs/sheets-ui 0.15.0-insiders.20251227-c108ce3 → 0.15.0-insiders.20260106-79b11f9
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 +14 -14
- package/lib/es/index.js +6795 -6763
- package/lib/index.css +1 -1
- package/lib/index.js +6795 -6763
- package/lib/types/controllers/menu/menu.d.ts +2 -0
- package/lib/types/index.d.ts +1 -1
- package/lib/types/services/clipboard/clipboard.service.d.ts +2 -0
- package/lib/types/services/clipboard/copy-content-cache.d.ts +3 -0
- package/lib/types/views/dropdown/list-dropdown/index.d.ts +1 -0
- package/lib/umd/index.js +11 -11
- package/package.json +12 -12
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IAccessor, HorizontalAlign, VerticalAlign, WrapStrategy } from '@univerjs/core';
|
|
2
2
|
import { IMenuButtonItem, IMenuSelectorItem } from '@univerjs/ui';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
3
4
|
export declare enum SheetMenuPosition {
|
|
4
5
|
ROW_HEADER_CONTEXT_MENU = "ROW_HEADER_CONTEXT_MENU",
|
|
5
6
|
COL_HEADER_CONTEXT_MENU = "COL_HEADER_CONTEXT_MENU",
|
|
@@ -44,6 +45,7 @@ export declare const TEXT_ROTATE_CHILDREN: ({
|
|
|
44
45
|
value: string;
|
|
45
46
|
})[];
|
|
46
47
|
export declare function TextRotateMenuItemFactory(accessor: IAccessor): IMenuSelectorItem<number | string>;
|
|
48
|
+
export declare function menuClipboardDisabledObservable(injector: IAccessor): Observable<boolean>;
|
|
47
49
|
export declare function CopyMenuItemFactory(accessor: IAccessor): IMenuButtonItem;
|
|
48
50
|
export declare function CutMenuItemFactory(accessor: IAccessor): IMenuButtonItem;
|
|
49
51
|
export declare function PasteMenuItemFactory(accessor: IAccessor): IMenuButtonItem;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -64,7 +64,7 @@ export { EMBEDDING_FORMULA_EDITOR, isEmbeddingFormulaEditor } from './controller
|
|
|
64
64
|
export { isRangeSelector, RANGE_SELECTOR_SYMBOLS } from './controllers/editor/utils/is-range-selector';
|
|
65
65
|
export { HoverRenderController } from './controllers/hover-render.controller';
|
|
66
66
|
export { menuSchema as SheetsUIMenuSchema } from './controllers/menu.schema';
|
|
67
|
-
export { COPY_SPECIAL_MENU_ID, PASTE_SPECIAL_MENU_ID, SheetMenuPosition } from './controllers/menu/menu';
|
|
67
|
+
export { COPY_SPECIAL_MENU_ID, menuClipboardDisabledObservable, PASTE_SPECIAL_MENU_ID, SheetMenuPosition } from './controllers/menu/menu';
|
|
68
68
|
export { deriveStateFromActiveSheet$, getCurrentExclusiveRangeInterest$, getCurrentRangeDisable$, getObservableWithExclusiveRange$ } from './controllers/menu/menu-util';
|
|
69
69
|
export { SheetPermissionCheckUIController } from './controllers/permission/sheet-permission-check-ui.controller';
|
|
70
70
|
export { HeaderFreezeRenderController } from './controllers/render-controllers/freeze.render-controller';
|
|
@@ -46,6 +46,7 @@ export interface ISheetClipboardService {
|
|
|
46
46
|
copy(options?: ICopyOptions): Promise<boolean>;
|
|
47
47
|
cut(): Promise<boolean>;
|
|
48
48
|
paste(item: ClipboardItem, pasteType?: string): Promise<boolean>;
|
|
49
|
+
pasteByCopyId(copyId: string, pasteType?: string): Promise<boolean>;
|
|
49
50
|
legacyPaste(html?: string, text?: string, files?: File[]): Promise<boolean>;
|
|
50
51
|
rePasteWithPasteType(type: IPasteHookKeyType): boolean;
|
|
51
52
|
disposePasteOptionsCache(): void;
|
|
@@ -91,6 +92,7 @@ export declare class SheetClipboardService extends Disposable implements ISheetC
|
|
|
91
92
|
copy(options?: ICopyOptions): Promise<boolean>;
|
|
92
93
|
cut(): Promise<boolean>;
|
|
93
94
|
paste(item: ClipboardItem, pasteType?: "default-paste"): Promise<boolean>;
|
|
95
|
+
pasteByCopyId(copyId: string, pasteType?: "default-paste"): Promise<boolean>;
|
|
94
96
|
legacyPaste(html?: string, text?: string, files?: File[]): Promise<boolean>;
|
|
95
97
|
rePasteWithPasteType(type: IPasteHookKeyType): boolean;
|
|
96
98
|
updatePasteOptionsCache(cache: IPasteOptionCache | null): void;
|
|
@@ -12,10 +12,13 @@ export declare function genId(): string;
|
|
|
12
12
|
export declare function extractId(html: string): string | null;
|
|
13
13
|
export declare class CopyContentCache {
|
|
14
14
|
private _cache;
|
|
15
|
+
private readonly _lastCopyId$;
|
|
16
|
+
readonly lastCopyId$: import('rxjs').Observable<string | null>;
|
|
15
17
|
set(id: string, clipboardData: ICopyContentCacheData): void;
|
|
16
18
|
get(id: string): ICopyContentCacheData | undefined;
|
|
17
19
|
del(id: string): void;
|
|
18
20
|
clear(): void;
|
|
19
21
|
clearWithUnitId(unitId: string): void;
|
|
22
|
+
getLastCopyId(): string | null;
|
|
20
23
|
}
|
|
21
24
|
export declare const copyContentCache: CopyContentCache;
|