@univerjs/sheets-ui 0.9.4 → 0.10.0
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 -13
- package/lib/es/index.js +5610 -5727
- package/lib/index.js +5610 -5727
- package/lib/types/consts/permission.d.ts +0 -1
- package/lib/types/controllers/config.schema.d.ts +1 -2
- package/lib/types/controllers/permission/sheet-permission-render.controller.d.ts +4 -6
- package/lib/types/index.d.ts +1 -1
- package/lib/umd/index.js +16 -16
- package/package.json +13 -13
|
@@ -2,7 +2,6 @@ import { UnitAction } from '@univerjs/protocol';
|
|
|
2
2
|
export declare const UNIVER_SHEET_PERMISSION_PLUGIN_NAME = "UNIVER_SHEET_PERMISSION_PLUGIN";
|
|
3
3
|
export declare const UNIVER_SHEET_PERMISSION_PANEL = "UNIVER_SHEET_PERMISSION_PANEL";
|
|
4
4
|
export declare const UNIVER_SHEET_PERMISSION_USER_PART = "UNIVER_SHEET_PERMISSION_USER_PART";
|
|
5
|
-
export declare const UNIVER_SHEET_PERMISSION_BACKGROUND = "UNIVER_SHEET_PERMISSION_BACKGROUND";
|
|
6
5
|
export declare const UNIVER_SHEET_PERMISSION_PANEL_FOOTER = "UNIVER_SHEET_PERMISSION_PANEL_FOOTER";
|
|
7
6
|
export declare const UNIVER_SHEET_PERMISSION_USER_DIALOG = "UNIVER_SHEET_PERMISSION_USER_DIALOG";
|
|
8
7
|
export declare const UNIVER_SHEET_PERMISSION_DIALOG = "UNIVER_SHEET_PERMISSION_DIALOG";
|
|
@@ -8,7 +8,6 @@ export interface IUniverSheetsUIConfig {
|
|
|
8
8
|
menu?: MenuConfig;
|
|
9
9
|
disableAutoFocus?: true;
|
|
10
10
|
override?: DependencyOverride;
|
|
11
|
-
customComponents?: Set<string>;
|
|
12
11
|
/**
|
|
13
12
|
* The maximum count of rows triggering auto height. This is used to avoid performance issue.
|
|
14
13
|
* @default 1000
|
|
@@ -69,7 +68,7 @@ export interface IUniverSheetsUIConfig {
|
|
|
69
68
|
/**
|
|
70
69
|
* The framework of the component. Must be passed correctly.
|
|
71
70
|
*/
|
|
72
|
-
framework:
|
|
71
|
+
framework: string;
|
|
73
72
|
};
|
|
74
73
|
/**
|
|
75
74
|
* Whether to disable the force string alert.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IRenderContext, IRenderModule, IRenderManagerService } from '@univerjs/engine-render';
|
|
2
|
-
import { MenuConfig, ComponentManager
|
|
3
|
-
import { Disposable, IConfigService, Injector, IPermissionService
|
|
2
|
+
import { MenuConfig, ComponentManager } from '@univerjs/ui';
|
|
3
|
+
import { Disposable, IConfigService, Injector, IPermissionService } from '@univerjs/core';
|
|
4
4
|
import { RangeProtectionRuleModel, WorksheetProtectionRuleModel } from '@univerjs/sheets';
|
|
5
5
|
import { SheetSkeletonManagerService } from '../../services/sheet-skeleton-manager.service';
|
|
6
6
|
export interface IUniverSheetsPermissionMenuConfig {
|
|
@@ -9,8 +9,7 @@ export interface IUniverSheetsPermissionMenuConfig {
|
|
|
9
9
|
export declare class SheetPermissionRenderManagerController extends Disposable {
|
|
10
10
|
private _injector;
|
|
11
11
|
private _componentManager;
|
|
12
|
-
|
|
13
|
-
constructor(_injector: Injector, _componentManager: ComponentManager, _uiPartsService: IUIPartsService);
|
|
12
|
+
constructor(_injector: Injector, _componentManager: ComponentManager);
|
|
14
13
|
private _init;
|
|
15
14
|
private _initComponents;
|
|
16
15
|
private _initUiPartComponents;
|
|
@@ -30,12 +29,11 @@ export declare class SheetPermissionRenderController extends Disposable implemen
|
|
|
30
29
|
export declare class WorksheetProtectionRenderController extends Disposable implements IRenderModule {
|
|
31
30
|
private readonly _context;
|
|
32
31
|
private _renderManagerService;
|
|
33
|
-
private _univerInstanceService;
|
|
34
32
|
private _sheetSkeletonManagerService;
|
|
35
33
|
private _worksheetProtectionRuleModel;
|
|
36
34
|
private _configService;
|
|
37
35
|
private _worksheetProtectionRenderExtension;
|
|
38
|
-
constructor(_context: IRenderContext, _renderManagerService: IRenderManagerService,
|
|
36
|
+
constructor(_context: IRenderContext, _renderManagerService: IRenderManagerService, _sheetSkeletonManagerService: SheetSkeletonManagerService, _worksheetProtectionRuleModel: WorksheetProtectionRuleModel, _configService: IConfigService);
|
|
39
37
|
private _initRender;
|
|
40
38
|
private _initSkeleton;
|
|
41
39
|
}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -49,7 +49,7 @@ export { SidebarDefinedNameOperation } from './commands/operations/sidebar-defin
|
|
|
49
49
|
export { EMBEDDING_FORMULA_EDITOR_COMPONENT_KEY, RANGE_SELECTOR_COMPONENT_KEY, SHEET_VIEW_KEY } from './common/keys';
|
|
50
50
|
export { getCellRealRange } from './common/utils';
|
|
51
51
|
export { useActiveWorkbook, useActiveWorksheet, useWorkbooks } from './components/hook';
|
|
52
|
-
export {
|
|
52
|
+
export { UNIVER_SHEET_PERMISSION_USER_PART } from './consts/permission';
|
|
53
53
|
export { SHEET_UI_PLUGIN_NAME } from './consts/plugin-name';
|
|
54
54
|
export { SheetsUIPart } from './consts/ui-name';
|
|
55
55
|
export { AutoFillController } from './controllers/auto-fill.controller';
|