@univerjs/sheets-ui 0.6.10-nightly.202504201606 → 0.6.10-nightly.202504231607
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 +21 -21
- package/lib/es/index.js +2782 -2762
- package/lib/index.js +2782 -2762
- package/lib/types/controllers/config.schema.d.ts +20 -1
- package/lib/types/index.d.ts +1 -0
- package/lib/types/plugin.d.ts +3 -1
- package/lib/types/views/permission/panel-detail/PermissionDetailUserPart.d.ts +1 -2
- package/lib/umd/index.js +22 -22
- 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;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -94,6 +94,7 @@ export { SELECTION_SHAPE_DEPTH } from './services/selection/const';
|
|
|
94
94
|
export { type IBaseSheetBarProps } from './views/sheet-bar/sheet-bar-tabs/SheetBarItem';
|
|
95
95
|
export { type IDropdownParam, ISheetCellDropdownManagerService, SheetCellDropdownManagerService } from './services/cell-dropdown-manager.service';
|
|
96
96
|
export { FormulaBar } from './views/formula-bar/FormulaBar';
|
|
97
|
+
export { type IPermissionDetailUserPartProps } from './views/permission/panel-detail/PermissionDetailUserPart';
|
|
97
98
|
export { SetWorksheetColAutoWidthCommand } from './commands/commands/set-worksheet-auto-col-width.command';
|
|
98
99
|
export { AutoClearContentCommand, AutoFillCommand } from './commands/commands/auto-fill.command';
|
|
99
100
|
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,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 {};
|