@univerjs/sheets 0.1.14 → 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.
- package/lib/cjs/index.js +2 -2
- package/lib/es/index.js +2637 -2490
- package/lib/types/commands/mutations/set-worksheet-row-height.mutation.d.ts +1 -2
- package/lib/types/index.d.ts +1 -1
- package/lib/types/services/permission/permission-point/index.d.ts +1 -0
- package/lib/types/services/ref-range/util.d.ts +4 -6
- package/lib/umd/index.js +2 -2
- package/package.json +15 -16
|
@@ -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 {
|
package/lib/types/index.d.ts
CHANGED
|
@@ -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';
|
|
@@ -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';
|
|
@@ -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 {};
|