@univerjs/sheets 0.1.13 → 0.1.14
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 +2 -2
- package/lib/es/index.js +2993 -3083
- package/lib/types/commands/mutations/add-worksheet-protection.mutation.d.ts +1 -0
- package/lib/types/controllers/basic-worksheet.controller.d.ts +3 -1
- package/lib/types/index.d.ts +2 -2
- package/lib/types/services/permission/worksheet-permission/index.d.ts +0 -1
- package/lib/umd/index.js +2 -2
- package/package.json +28 -16
- package/lib/types/render/image/protect-background-img.d.ts +0 -16
- package/lib/types/render/range-protection/range-protection.render.d.ts +0 -32
- package/lib/types/render/worksheet-protection/worksheet-permission.render.d.ts +0 -13
- package/lib/types/services/permission/worksheet-permission/worksheet-permission-render.service.d.ts +0 -10
|
@@ -3,6 +3,7 @@ import { IWorksheetProtectionRule } from '../../services/permission/type';
|
|
|
3
3
|
|
|
4
4
|
export interface IAddWorksheetProtectionParams {
|
|
5
5
|
unitId: string;
|
|
6
|
+
subUnitId: string;
|
|
6
7
|
rule: IWorksheetProtectionRule;
|
|
7
8
|
}
|
|
8
9
|
export declare const AddWorksheetProtectionMutation: IMutation<IAddWorksheetProtectionParams>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IStyleData, Disposable, ICommandService, IConfigService } from '@univerjs/core';
|
|
2
2
|
import { IDisposable } from '@wendellhu/redi';
|
|
3
|
+
import { DataSyncPrimaryController } from '@univerjs/rpc';
|
|
3
4
|
|
|
4
5
|
export interface IStyleTypeValue<T> {
|
|
5
6
|
type: keyof IStyleData;
|
|
@@ -11,5 +12,6 @@ export interface IStyleTypeValue<T> {
|
|
|
11
12
|
export declare class BasicWorksheetController extends Disposable implements IDisposable {
|
|
12
13
|
private readonly _commandService;
|
|
13
14
|
private readonly _configService;
|
|
14
|
-
|
|
15
|
+
private readonly _dataSyncPrimaryController?;
|
|
16
|
+
constructor(_commandService: ICommandService, _configService: IConfigService, _dataSyncPrimaryController?: DataSyncPrimaryController | undefined);
|
|
15
17
|
}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -125,7 +125,7 @@ export type { FormatType } from './services/numfmt/type';
|
|
|
125
125
|
export { getMoveRangeUndoRedoMutations } from './commands/commands/move-range.command';
|
|
126
126
|
export { defaultWorksheetPermissionPoint, getAllWorksheetPermissionPoint, getAllWorksheetPermissionPointByPointPanel } from './services/permission';
|
|
127
127
|
export type { IWorksheetProtectionRule } from './services/permission/type';
|
|
128
|
-
export { WorksheetProtectionRuleModel, WorksheetProtectionPointModel
|
|
128
|
+
export { WorksheetProtectionRuleModel, WorksheetProtectionPointModel } from './services/permission/worksheet-permission';
|
|
129
129
|
export { AddWorksheetProtectionMutation } from './commands/mutations/add-worksheet-protection.mutation';
|
|
130
130
|
export { SetWorksheetProtectionMutation } from './commands/mutations/set-worksheet-protection.mutation';
|
|
131
131
|
export { DeleteWorksheetProtectionMutation } from './commands/mutations/delete-worksheet-protection.mutation';
|
|
@@ -138,7 +138,6 @@ export { SetRangeProtectionCommand, type ISetRangeProtectionCommandParams } from
|
|
|
138
138
|
export { AddRangeProtectionMutation, FactoryAddRangeProtectionMutation, type IAddRangeProtectionMutationParams } from './commands/mutations/add-range-protection.mutation';
|
|
139
139
|
export { DeleteRangeProtectionMutation, FactoryDeleteRangeProtectionMutation, type IDeleteSelectionProtectionMutationParams } from './commands/mutations/delete-range-protection.mutation';
|
|
140
140
|
export { SetRangeProtectionMutation, FactorySetRangeProtectionMutation, type ISetRangeProtectionMutationParams } from './commands/mutations/set-range-protection.mutation';
|
|
141
|
-
export { RangeProtectionCanViewRenderExtension, RangeProtectionCanNotViewRenderExtension, type IRangeProtectionRenderCellData, RANGE_PROTECTION_CAN_VIEW_RENDER_EXTENSION_KEY, RANGE_PROTECTION_CAN_NOT_VIEW_RENDER_EXTENSION_KEY } from './render/range-protection/range-protection.render';
|
|
142
141
|
export { RangeProtectionRenderModel, type ICellPermission } from './model/range-protection-render.model';
|
|
143
142
|
export { RangeProtectionRuleModel, type IObjectModel, type IRangeProtectionRule, type IModel } from './model/range-protection-rule.model';
|
|
144
143
|
export type { IWorksheetProtectionRenderCellData } from './services/permission/worksheet-permission/type';
|
|
@@ -147,3 +146,4 @@ export { RangeProtectionService } from './services/permission/range-permission/r
|
|
|
147
146
|
export { type IRangePermissionPoint, getAllRangePermissionPoint, getDefaultRangePermission, } from './services/permission/range-permission/util';
|
|
148
147
|
export { RangeProtectionPermissionEditPoint } from './services/permission/permission-point/range/edit';
|
|
149
148
|
export { RangeProtectionPermissionViewPoint } from './services/permission/permission-point/range/view';
|
|
149
|
+
export type { IAddWorksheetProtectionParams } from './commands/mutations/add-worksheet-protection.mutation';
|
|
@@ -16,4 +16,3 @@
|
|
|
16
16
|
export { WorksheetPermissionService } from './worksheet-permission.service';
|
|
17
17
|
export { WorksheetProtectionRuleModel } from './worksheet-permission-rule.model';
|
|
18
18
|
export { WorksheetProtectionPointModel } from './worksheet-permission-point.model';
|
|
19
|
-
export { WorksheetProtectionRenderService } from './worksheet-permission-render.service';
|