@univerjs/sheets 0.10.13 → 0.10.14-nightly.202511070628
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 +3 -3
- package/lib/es/index.js +4233 -4205
- package/lib/index.js +4233 -4205
- package/lib/types/controllers/permission/sheet-permission-init.controller.d.ts +13 -0
- package/lib/umd/index.js +3 -3
- package/package.json +9 -9
- package/LICENSE +0 -176
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
import { IDeleteWorksheetProtectionParams } from '../../commands/mutations/delete-worksheet-protection.mutation';
|
|
1
2
|
import { Disposable, IAuthzIoService, ICommandService, IPermissionService, IUndoRedoService, IUniverInstanceService, UserManagerService } from '@univerjs/core';
|
|
2
3
|
import { RangeProtectionRuleModel } from '../../model/range-protection-rule.model';
|
|
3
4
|
import { WorkbookPermissionService } from '../../services/permission/workbook-permission/workbook-permission.service';
|
|
4
5
|
import { WorksheetProtectionPointModel, WorksheetProtectionRuleModel } from '../../services/permission/worksheet-permission';
|
|
6
|
+
interface ISheetPermissionCmdBufferListItemType {
|
|
7
|
+
id: string;
|
|
8
|
+
params: IDeleteWorksheetProtectionParams;
|
|
9
|
+
}
|
|
5
10
|
export declare class SheetPermissionInitController extends Disposable {
|
|
6
11
|
private readonly _univerInstanceService;
|
|
7
12
|
private _permissionService;
|
|
@@ -13,9 +18,16 @@ export declare class SheetPermissionInitController extends Disposable {
|
|
|
13
18
|
private _workbookPermissionService;
|
|
14
19
|
private _undoRedoService;
|
|
15
20
|
private _commandService;
|
|
21
|
+
private _cmdBufferList;
|
|
22
|
+
private _isRangePermissionInitFinish;
|
|
23
|
+
private _isWorksheetPermissionInitFinish;
|
|
24
|
+
private _isWorkbookPermissionInitFinish;
|
|
16
25
|
constructor(_univerInstanceService: IUniverInstanceService, _permissionService: IPermissionService, _authzIoService: IAuthzIoService, _rangeProtectionRuleModel: RangeProtectionRuleModel, _worksheetProtectionRuleModel: WorksheetProtectionRuleModel, _userManagerService: UserManagerService, _worksheetProtectionPointRuleModel: WorksheetProtectionPointModel, _workbookPermissionService: WorkbookPermissionService, _undoRedoService: IUndoRedoService, _commandService: ICommandService);
|
|
17
26
|
initPermission(): void;
|
|
18
27
|
refreshRangeProtectPermission(): void;
|
|
28
|
+
getIsPermissionInitFinish(): boolean;
|
|
29
|
+
addCmdToBufferList(item: ISheetPermissionCmdBufferListItemType): void;
|
|
30
|
+
private _processCmdBufferList;
|
|
19
31
|
private _initRangePermissionFromSnapshot;
|
|
20
32
|
private _initRangePermissionChange;
|
|
21
33
|
initWorkbookPermissionChange(_unitId?: string): Promise<void>;
|
|
@@ -27,3 +39,4 @@ export declare class SheetPermissionInitController extends Disposable {
|
|
|
27
39
|
refreshPermission(unitId: string, permissionId: string): void;
|
|
28
40
|
private _refreshPermissionByCollaCreate;
|
|
29
41
|
}
|
|
42
|
+
export {};
|