@univerjs/sheets 0.1.13 → 0.1.15

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.
@@ -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,4 @@
1
- import { BooleanNumber, IMutation, IObjectArrayPrimitiveType, IRange, Nullable } from '@univerjs/core';
2
- import { IRowAutoHeightInfo } from '@univerjs/engine-render';
1
+ import { BooleanNumber, IMutation, IObjectArrayPrimitiveType, IRange, IRowAutoHeightInfo, Nullable } from '@univerjs/core';
3
2
  import { IAccessor } from '@wendellhu/redi';
4
3
 
5
4
  export interface ISetWorksheetRowHeightMutationParams {
@@ -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
- constructor(_commandService: ICommandService, _configService: IConfigService);
15
+ private readonly _dataSyncPrimaryController?;
16
+ constructor(_commandService: ICommandService, _configService: IConfigService, _dataSyncPrimaryController?: DataSyncPrimaryController | undefined);
15
17
  }
@@ -111,7 +111,7 @@ export { EffectRefRangId, OperatorType } from './services/ref-range/type';
111
111
  export { type ISetWorkbookNameCommandParams, SetWorkbookNameCommand } from './commands/commands/set-workbook-name.command';
112
112
  export { type ISetWorkbookNameMutationParams, SetWorkbookNameMutation } from './commands/mutations/set-workbook-name.mutation';
113
113
  export { DefinedNameDataController } from './controllers/defined-name-data.controller';
114
- export { handleBaseInsertRange, handleBaseMoveRowsCols, handleBaseRemoveRange, handleDeleteRangeMoveLeft, handleDeleteRangeMoveUp, handleInsertCol, handleInsertRangeMoveDown, handleInsertRangeMoveRight, handleInsertRow, handleIRemoveCol, handleIRemoveRow, handleMoveCols, handleMoveRange, handleMoveRows, rotateRange, runRefRangeMutations, handleCommonDefaultRangeChangeWithEffectRefCommands, handleDefaultRangeChangeWithEffectRefCommands, } from './services/ref-range/util';
114
+ export { handleBaseInsertRange, handleBaseMoveRowsCols, handleBaseRemoveRange, handleDeleteRangeMoveLeft, handleDeleteRangeMoveUp, handleInsertCol, handleInsertRangeMoveDown, handleInsertRangeMoveRight, handleInsertRow, handleIRemoveCol, handleIRemoveRow, handleMoveCols, handleMoveRange, handleMoveRows, rotateRange, runRefRangeMutations, handleCommonDefaultRangeChangeWithEffectRefCommands, handleDefaultRangeChangeWithEffectRefCommands, handleDefaultRangeChangeWithEffectRefCommandsSkipNoInterests, } from './services/ref-range/util';
115
115
  export { INTERCEPTOR_POINT } from './services/sheet-interceptor/interceptor-const';
116
116
  export { SheetInterceptorService } from './services/sheet-interceptor/sheet-interceptor.service';
117
117
  export type { ISheetLocation, ISheetLocationBase, ISheetRowLocation } from './services/sheet-interceptor/utils/interceptor';
@@ -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, WorksheetProtectionRenderService } from './services/permission/worksheet-permission';
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';
@@ -46,6 +46,7 @@ export { WorkbookHistoryPermission } from './workbook/history';
46
46
  export { WorkbookViewPermission } from './workbook/view';
47
47
  export { WorkbookSharePermission } from './workbook/share';
48
48
  export { WorkbookCopyPermission } from './workbook/copy';
49
+ export { WorkbookCopySheetPermission } from './workbook/copy-sheet';
49
50
  export { WorkbookManageCollaboratorPermission } from './workbook/manage-collaborator';
50
51
  export { RangeProtectionPermissionEditPoint } from './range/edit';
51
52
  export { RangeProtectionPermissionViewPoint } from './range/view';
@@ -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';
@@ -64,6 +64,9 @@ export declare const handleDeleteRangeMoveUp: (param: IDeleteRangeMoveUpCommand,
64
64
  export declare const handleDeleteRangeMoveUpCommon: (param: IDeleteRangeMoveUpCommand, targetRange: IRange) => IRange[];
65
65
  export declare const runRefRangeMutations: (operators: IOperator[], range: IRange) => IRange | null;
66
66
  export declare const handleDefaultRangeChangeWithEffectRefCommands: (range: IRange, commandInfo: ICommandInfo) => IRange | null;
67
+ export declare const handleDefaultRangeChangeWithEffectRefCommandsSkipNoInterests: (range: IRange, commandInfo: ICommandInfo, deps: {
68
+ selectionManagerService: SelectionManagerService;
69
+ }) => IRange | null;
67
70
  type MutationsAffectRange = ISheetCommandSharedParams | IRemoveSheetMutationParams | IMoveRowsMutationParams | IMoveColumnsMutationParams | IRemoveRowsMutationParams | IRemoveColMutationParams | IInsertColMutationParams | IInsertRowMutationParams | IMoveRangeMutationParams;
68
71
  export declare const handleCommonDefaultRangeChangeWithEffectRefCommands: (range: IRange, commandInfo: ICommandInfo) => IRange | IRange[] | null;
69
72
  /**
@@ -77,11 +80,6 @@ export declare const handleCommonDefaultRangeChangeWithEffectRefCommands: (range
77
80
  export declare function adjustRangeOnMutation(range: Readonly<IRange>, mutation: IMutationInfo<MutationsAffectRange>): Nullable<IRange>;
78
81
  export declare function getEffectedRangesOnCommand(command: EffectRefRangeParams, deps: {
79
82
  selectionManagerService: SelectionManagerService;
80
- }): {
81
- startRow: number;
82
- startColumn: number;
83
- endColumn: number;
84
- endRow: number;
85
- }[];
83
+ }): IRange[];
86
84
  export declare function getEffectedRangesOnMutation(mutation: IMutationInfo<MutationsAffectRange>): IRange[] | undefined;
87
85
  export {};