@univerjs/sheets-ui 0.6.10-experimental.20250421-e4eb9bc → 0.6.10-experimental.20250427-173dc06
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 +24 -24
- package/lib/es/index.js +3907 -3882
- package/lib/index.css +1 -1
- package/lib/index.js +3907 -3882
- package/lib/types/controllers/config.schema.d.ts +20 -1
- package/lib/types/controllers/shortcuts/editor.shortcut.d.ts +1 -0
- package/lib/types/index.d.ts +2 -0
- package/lib/types/plugin.d.ts +3 -1
- package/lib/types/services/editor-bridge.service.d.ts +2 -3
- package/lib/types/views/editor-container/index.d.ts +1 -0
- package/lib/types/views/permission/panel-detail/PermissionDetailUserPart.d.ts +1 -2
- package/lib/umd/index.js +23 -23
- package/package.json +13 -13
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DependencyOverride } from '@univerjs/core';
|
|
2
2
|
import { IScrollBarProps } from '@univerjs/engine-render';
|
|
3
|
-
import { MenuConfig } from '@univerjs/ui';
|
|
3
|
+
import { ComponentType, MenuConfig } from '@univerjs/ui';
|
|
4
|
+
import { IPermissionDetailUserPartProps } from '../views/permission/panel-detail/PermissionDetailUserPart';
|
|
4
5
|
export declare const SHEETS_UI_PLUGIN_CONFIG_KEY = "sheets-ui.config";
|
|
5
6
|
export declare const configSymbol: unique symbol;
|
|
6
7
|
export interface IUniverSheetsUIConfig {
|
|
@@ -51,5 +52,23 @@ export interface IUniverSheetsUIConfig {
|
|
|
51
52
|
hidePasteOptions?: boolean;
|
|
52
53
|
};
|
|
53
54
|
scrollConfig?: IScrollBarProps;
|
|
55
|
+
/**
|
|
56
|
+
* Whether to show the protected range shadow.
|
|
57
|
+
* @default true
|
|
58
|
+
*/
|
|
59
|
+
protectedRangeShadow?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* The custom component of the protected range user selector.
|
|
62
|
+
*/
|
|
63
|
+
protectedRangeUserSelector?: {
|
|
64
|
+
/**
|
|
65
|
+
* custom component, should implement the `IPermissionDetailUserPartProps` interface.
|
|
66
|
+
*/
|
|
67
|
+
component: ComponentType<IPermissionDetailUserPartProps>;
|
|
68
|
+
/**
|
|
69
|
+
* The framework of the component. Must be passed correctly.
|
|
70
|
+
*/
|
|
71
|
+
framework: 'react' | 'vue3';
|
|
72
|
+
};
|
|
54
73
|
}
|
|
55
74
|
export declare const defaultPluginConfig: IUniverSheetsUIConfig;
|
|
@@ -9,5 +9,6 @@ export declare const EditorCursorEscShortcut: IShortcutItem;
|
|
|
9
9
|
export declare const EditorCursorCtrlEnterShortcut: IShortcutItem;
|
|
10
10
|
export declare const EditorBreakLineShortcut: IShortcutItem;
|
|
11
11
|
export declare const EditorDeleteLeftShortcut: IShortcutItem;
|
|
12
|
+
export declare const EditorDeleteRightShortcut: IShortcutItem;
|
|
12
13
|
export declare const ShiftEditorDeleteLeftShortcut: IShortcutItem;
|
|
13
14
|
export declare const EditorDeleteLeftShortcutInActive: IShortcutItem;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -92,8 +92,10 @@ export { FormatPainterStatus, IFormatPainterService } from './services/format-pa
|
|
|
92
92
|
export type { IFormatPainterBeforeApplyHookParams, IFormatPainterHook } from './services/format-painter/format-painter.service';
|
|
93
93
|
export { SELECTION_SHAPE_DEPTH } from './services/selection/const';
|
|
94
94
|
export { type IBaseSheetBarProps } from './views/sheet-bar/sheet-bar-tabs/SheetBarItem';
|
|
95
|
+
export { useKeyEventConfig } from './views/editor-container';
|
|
95
96
|
export { type IDropdownParam, ISheetCellDropdownManagerService, SheetCellDropdownManagerService } from './services/cell-dropdown-manager.service';
|
|
96
97
|
export { FormulaBar } from './views/formula-bar/FormulaBar';
|
|
98
|
+
export { type IPermissionDetailUserPartProps } from './views/permission/panel-detail/PermissionDetailUserPart';
|
|
97
99
|
export { SetWorksheetColAutoWidthCommand } from './commands/commands/set-worksheet-auto-col-width.command';
|
|
98
100
|
export { AutoClearContentCommand, AutoFillCommand } from './commands/commands/auto-fill.command';
|
|
99
101
|
export { type ISheetPasteByShortKeyParams, type ISheetPasteParams, SheetCopyCommand, SheetCutCommand, SheetPasteBesidesBorderCommand, SheetPasteColWidthCommand, SheetPasteCommand, SheetPasteFormatCommand, SheetPasteShortKeyCommand, SheetPasteValueCommand, } from './commands/commands/clipboard.command';
|
package/lib/types/plugin.d.ts
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { IUniverSheetsUIConfig } from './controllers/config.schema';
|
|
2
2
|
import { IConfigService, Injector, IUniverInstanceService, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
3
3
|
import { IRenderManagerService } from '@univerjs/engine-render';
|
|
4
|
+
import { ComponentManager } from '@univerjs/ui';
|
|
4
5
|
export declare class UniverSheetsUIPlugin extends Plugin {
|
|
5
6
|
private readonly _config;
|
|
6
7
|
readonly _injector: Injector;
|
|
7
8
|
private readonly _renderManagerService;
|
|
8
9
|
private readonly _configService;
|
|
9
10
|
private readonly _univerInstanceService;
|
|
11
|
+
private readonly _componentManager;
|
|
10
12
|
static pluginName: string;
|
|
11
13
|
static type: UniverInstanceType;
|
|
12
14
|
/** @ignore */
|
|
13
|
-
constructor(_config: Partial<IUniverSheetsUIConfig> | undefined, _injector: Injector, _renderManagerService: IRenderManagerService, _configService: IConfigService, _univerInstanceService: IUniverInstanceService);
|
|
15
|
+
constructor(_config: Partial<IUniverSheetsUIConfig> | undefined, _injector: Injector, _renderManagerService: IRenderManagerService, _configService: IConfigService, _univerInstanceService: IUniverInstanceService, _componentManager: ComponentManager);
|
|
14
16
|
onStarting(): void;
|
|
15
17
|
onReady(): void;
|
|
16
18
|
onRendered(): void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { IDisposable, IPosition, ISelectionCell, Nullable, Disposable, IContextService, IUniverInstanceService, ThemeService } from '@univerjs/core';
|
|
2
2
|
import { Engine, IDocumentLayoutObject, Scene, DeviceInputEventType, IRenderManagerService } from '@univerjs/engine-render';
|
|
3
|
-
import { SheetsSelectionsService, SheetInterceptorService } from '@univerjs/sheets';
|
|
4
3
|
import { KeyCode } from '@univerjs/ui';
|
|
5
4
|
import { Observable, BehaviorSubject } from 'rxjs';
|
|
6
5
|
import { IEditorService } from '@univerjs/docs-ui';
|
|
6
|
+
import { SheetInterceptorService } from '@univerjs/sheets';
|
|
7
7
|
export interface IEditorBridgeServiceVisibleParam {
|
|
8
8
|
visible: boolean;
|
|
9
9
|
eventType: DeviceInputEventType;
|
|
@@ -71,7 +71,6 @@ export declare class EditorBridgeService extends Disposable implements IEditorBr
|
|
|
71
71
|
private readonly _themeService;
|
|
72
72
|
private readonly _univerInstanceService;
|
|
73
73
|
private readonly _editorService;
|
|
74
|
-
private readonly _refSelectionsService;
|
|
75
74
|
private readonly _contextService;
|
|
76
75
|
private _editorUnitId;
|
|
77
76
|
private _editorIsDirty;
|
|
@@ -106,7 +105,7 @@ export declare class EditorBridgeService extends Disposable implements IEditorBr
|
|
|
106
105
|
readonly afterVisible$: Observable<IEditorBridgeServiceVisibleParam>;
|
|
107
106
|
private readonly _forceKeepVisible$;
|
|
108
107
|
readonly forceKeepVisible$: Observable<boolean>;
|
|
109
|
-
constructor(_sheetInterceptorService: SheetInterceptorService, _renderManagerService: IRenderManagerService, _themeService: ThemeService, _univerInstanceService: IUniverInstanceService, _editorService: IEditorService,
|
|
108
|
+
constructor(_sheetInterceptorService: SheetInterceptorService, _renderManagerService: IRenderManagerService, _themeService: ThemeService, _univerInstanceService: IUniverInstanceService, _editorService: IEditorService, _contextService: IContextService);
|
|
110
109
|
refreshEditCellState(): void;
|
|
111
110
|
refreshEditCellPosition(resetSizeOnly?: boolean): void;
|
|
112
111
|
setEditCell(param: ICurrentEditCellParam): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EditStateEnum, ViewStateEnum } from '@univerjs/sheets';
|
|
2
|
-
interface IPermissionDetailUserPartProps {
|
|
2
|
+
export interface IPermissionDetailUserPartProps {
|
|
3
3
|
editState: EditStateEnum;
|
|
4
4
|
onEditStateChange: (v: EditStateEnum) => void;
|
|
5
5
|
viewState: ViewStateEnum;
|
|
@@ -7,4 +7,3 @@ interface IPermissionDetailUserPartProps {
|
|
|
7
7
|
permissionId: string;
|
|
8
8
|
}
|
|
9
9
|
export declare const PermissionDetailUserPart: (props: IPermissionDetailUserPartProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
10
|
-
export {};
|