@univerjs/sheets 0.20.0 → 0.20.1
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/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/types/commands/commands/move-range.command.d.ts +18 -5
- package/lib/types/{services/permission/permission-point/workbook/history.d.ts → commands/mutations/mark-dirty-filter-change.mutation.d.ts} +6 -10
- package/lib/types/commands/{mutations/mark-dirty-auto-height.mutation.d.ts → operations/mark-dirty-auto-height.operation.d.ts} +4 -4
- package/lib/types/controllers/permission/sheet-permission-check.controller.d.ts +1 -1
- package/lib/types/facade/f-permission.d.ts +0 -1
- package/lib/types/facade/permission/permission-types.d.ts +0 -2
- package/lib/types/index.d.ts +3 -2
- package/lib/types/services/permission/permission-point/const.d.ts +0 -5
- package/lib/types/services/permission/permission-point/index.d.ts +0 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +7 -7
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import type { IAccessor, ICommand,
|
|
16
|
+
import type { IAccessor, ICommand, IRange } from '@univerjs/core';
|
|
17
|
+
import type { IMoveRangeMutationParams } from '../mutations/move-range.mutation';
|
|
17
18
|
export interface IMoveRangeCommandParams {
|
|
18
19
|
toRange: IRange;
|
|
19
20
|
fromRange: IRange;
|
|
@@ -31,8 +32,14 @@ interface IGetMoveRangeCommandMutationsOptions {
|
|
|
31
32
|
export declare const MoveRangeCommand: ICommand;
|
|
32
33
|
export declare function getMoveRangeCommandMutations(accessor: IAccessor, params: IMoveRangeCommandParams, options?: IGetMoveRangeCommandMutationsOptions): {
|
|
33
34
|
unitId: string;
|
|
34
|
-
redos: IMutationInfo<object>
|
|
35
|
-
|
|
35
|
+
redos: (import("@univerjs/core").IMutationInfo<object> | {
|
|
36
|
+
id: string;
|
|
37
|
+
params: IMoveRangeMutationParams;
|
|
38
|
+
})[];
|
|
39
|
+
undos: (import("@univerjs/core").IMutationInfo<object> | {
|
|
40
|
+
id: string;
|
|
41
|
+
params: IMoveRangeMutationParams;
|
|
42
|
+
})[];
|
|
36
43
|
} | null;
|
|
37
44
|
export interface IRangeUnit {
|
|
38
45
|
unitId: string;
|
|
@@ -40,7 +47,13 @@ export interface IRangeUnit {
|
|
|
40
47
|
range: IRange;
|
|
41
48
|
}
|
|
42
49
|
export declare function getMoveRangeUndoRedoMutations(accessor: IAccessor, from: IRangeUnit, to: IRangeUnit, ignoreMerge?: boolean): {
|
|
43
|
-
redos:
|
|
44
|
-
|
|
50
|
+
redos: {
|
|
51
|
+
id: string;
|
|
52
|
+
params: IMoveRangeMutationParams;
|
|
53
|
+
}[];
|
|
54
|
+
undos: {
|
|
55
|
+
id: string;
|
|
56
|
+
params: IMoveRangeMutationParams;
|
|
57
|
+
}[];
|
|
45
58
|
} | null;
|
|
46
59
|
export {};
|
|
@@ -13,15 +13,11 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import type {
|
|
17
|
-
import {
|
|
18
|
-
|
|
19
|
-
export declare class WorkbookHistoryPermission implements IPermissionPoint {
|
|
16
|
+
import type { IMutation } from '@univerjs/core';
|
|
17
|
+
import type { IRange } from '@univerjs/protocol';
|
|
18
|
+
export interface IMarkDirtyFilterChangeMutationParams {
|
|
20
19
|
unitId: string;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
type: UnitObject;
|
|
24
|
-
status: PermissionStatus;
|
|
25
|
-
subType: UnitAction;
|
|
26
|
-
constructor(unitId: string);
|
|
20
|
+
subUnitId: string;
|
|
21
|
+
filterRange: IRange;
|
|
27
22
|
}
|
|
23
|
+
export declare const MarkDirtyFilterChangeMutation: IMutation<IMarkDirtyFilterChangeMutationParams>;
|
|
@@ -14,16 +14,16 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import type { IOperation, IRange } from '@univerjs/core';
|
|
17
|
-
export interface
|
|
17
|
+
export interface IMarkDirtyRowAutoHeightOperationParams {
|
|
18
18
|
unitId: string;
|
|
19
19
|
subUnitId: string;
|
|
20
20
|
ranges: IRange[];
|
|
21
21
|
id: string;
|
|
22
22
|
}
|
|
23
|
-
export declare const
|
|
24
|
-
export interface
|
|
23
|
+
export declare const MarkDirtyRowAutoHeightOperation: IOperation<IMarkDirtyRowAutoHeightOperationParams>;
|
|
24
|
+
export interface ICancelMarkDirtyRowAutoHeightOperationParams {
|
|
25
25
|
unitId: string;
|
|
26
26
|
subUnitId: string;
|
|
27
27
|
id: string;
|
|
28
28
|
}
|
|
29
|
-
export declare const
|
|
29
|
+
export declare const CancelMarkDirtyRowAutoHeightOperation: IOperation<ICancelMarkDirtyRowAutoHeightOperationParams>;
|
|
@@ -40,7 +40,7 @@ export declare class SheetPermissionCheckController extends Disposable {
|
|
|
40
40
|
private _commandExecutedListener;
|
|
41
41
|
private _permissionCheckWithInsertRangeMove;
|
|
42
42
|
private _permissionCheckByWorksheetCommand;
|
|
43
|
-
permissionCheckWithoutRange(permissionTypes: IPermissionTypes): boolean;
|
|
43
|
+
permissionCheckWithoutRange(permissionTypes: IPermissionTypes, unitId?: string, subUnitId?: string): boolean;
|
|
44
44
|
permissionCheckWithRanges(permissionTypes: IPermissionTypes, selectionRanges?: IRange[], unitId?: string, subUnitId?: string): boolean;
|
|
45
45
|
private _permissionCheckByMoveCommand;
|
|
46
46
|
private _permissionCheckByMoveRangeCommand;
|
|
@@ -69,7 +69,6 @@ export declare class FPermission extends FBase {
|
|
|
69
69
|
WorkbookEditablePermission: typeof WorkbookEditablePermission;
|
|
70
70
|
WorkbookExportPermission: typeof import("@univerjs/sheets").WorkbookExportPermission;
|
|
71
71
|
WorkbookHideSheetPermission: typeof import("@univerjs/sheets").WorkbookHideSheetPermission;
|
|
72
|
-
WorkbookHistoryPermission: typeof import("@univerjs/sheets").WorkbookHistoryPermission;
|
|
73
72
|
WorkbookManageCollaboratorPermission: typeof import("@univerjs/sheets").WorkbookManageCollaboratorPermission;
|
|
74
73
|
WorkbookMoveSheetPermission: typeof import("@univerjs/sheets").WorkbookMoveSheetPermission;
|
|
75
74
|
WorkbookPrintPermission: typeof import("@univerjs/sheets").WorkbookPrintPermission;
|
|
@@ -82,8 +82,6 @@ export declare enum WorkbookPermissionPoint {
|
|
|
82
82
|
HideSheet = "WorkbookHideSheet",
|
|
83
83
|
/** View history permission */
|
|
84
84
|
ViewHistory = "WorkbookViewHistory",
|
|
85
|
-
/** Manage history permission */
|
|
86
|
-
ManageHistory = "WorkbookHistory",
|
|
87
85
|
/** Recover history permission */
|
|
88
86
|
RecoverHistory = "WorkbookRecoverHistory",
|
|
89
87
|
/** Create protection permission */
|
package/lib/types/index.d.ts
CHANGED
|
@@ -112,7 +112,7 @@ export { DeleteWorksheetRangeThemeStyleMutation, DeleteWorksheetRangeThemeStyleM
|
|
|
112
112
|
export { EmptyMutation } from './commands/mutations/empty.mutation';
|
|
113
113
|
export { InsertColMutation, InsertColMutationUndoFactory, InsertRowMutation, InsertRowMutationUndoFactory, } from './commands/mutations/insert-row-col.mutation';
|
|
114
114
|
export { InsertSheetMutation, InsertSheetUndoMutationFactory } from './commands/mutations/insert-sheet.mutation';
|
|
115
|
-
export {
|
|
115
|
+
export { type IMarkDirtyFilterChangeMutationParams, MarkDirtyFilterChangeMutation } from './commands/mutations/mark-dirty-filter-change.mutation';
|
|
116
116
|
export { type IMoveRangeMutationParams, MoveRangeMutation } from './commands/mutations/move-range.mutation';
|
|
117
117
|
export { type IMoveColumnsMutationParams, type IMoveRowsMutationParams, MoveColsMutation, MoveColsMutationUndoFactory, MoveRowsMutation, MoveRowsMutationUndoFactory, } from './commands/mutations/move-rows-cols.mutation';
|
|
118
118
|
export { factoryRemoveNumfmtUndoMutation, factorySetNumfmtUndoMutation, type IRemoveNumfmtMutationParams, type ISetCellsNumfmt, type ISetNumfmtMutationParams, RemoveNumfmtMutation, SetNumfmtMutation, transformCellsToRange, } from './commands/mutations/numfmt-mutation';
|
|
@@ -150,6 +150,7 @@ export { type ISetWorksheetRowCountMutationParams, SetWorksheetRowCountMutation,
|
|
|
150
150
|
export { type ISetWorksheetRowAutoHeightMutationParams, type ISetWorksheetRowHeightMutationParams, type ISetWorksheetRowIsAutoHeightMutationParams, SetWorksheetRowAutoHeightMutation, SetWorksheetRowAutoHeightMutationFactory, SetWorksheetRowHeightMutation, SetWorksheetRowHeightMutationFactory, SetWorksheetRowIsAutoHeightMutation, SetWorksheetRowIsAutoHeightMutationFactory, } from './commands/mutations/set-worksheet-row-height.mutation';
|
|
151
151
|
export { type IToggleGridlinesMutationParams, ToggleGridlinesMutation } from './commands/mutations/toggle-gridlines.mutation';
|
|
152
152
|
export { type IUnregisterWorksheetRangeThemeStyleMutationParams, UnregisterWorksheetRangeThemeStyleMutation } from './commands/mutations/unregister-range-theme-style.mutation';
|
|
153
|
+
export { CancelMarkDirtyRowAutoHeightOperation, type ICancelMarkDirtyRowAutoHeightOperationParams, type IMarkDirtyRowAutoHeightOperationParams, MarkDirtyRowAutoHeightOperation, } from './commands/operations/mark-dirty-auto-height.operation';
|
|
153
154
|
export { type IScrollToCellOperationParams, ScrollToCellOperation } from './commands/operations/scroll-to-cell.operation';
|
|
154
155
|
export { type ISelectRangeCommandParams, type ISetSelectionsOperationParams, SelectRangeCommand, SetSelectionsOperation } from './commands/operations/selection.operation';
|
|
155
156
|
export { type ISetWorksheetActiveOperationParams, SetWorksheetActiveOperation } from './commands/operations/set-worksheet-active.operation';
|
|
@@ -191,7 +192,7 @@ export { INumfmtService } from './services/numfmt/type';
|
|
|
191
192
|
export type { FormatType } from './services/numfmt/type';
|
|
192
193
|
export { defaultWorksheetPermissionPoint, getAllWorksheetPermissionPoint, getAllWorksheetPermissionPointByPointPanel } from './services/permission';
|
|
193
194
|
export * from './services/permission/permission-point';
|
|
194
|
-
export { WorkbookCommentPermission, WorkbookCopyPermission, WorkbookCreateProtectPermission, WorkbookCreateSheetPermission, WorkbookDeleteSheetPermission, WorkbookDuplicatePermission, WorkbookEditablePermission, WorkbookExportPermission, WorkbookHideSheetPermission,
|
|
195
|
+
export { WorkbookCommentPermission, WorkbookCopyPermission, WorkbookCreateProtectPermission, WorkbookCreateSheetPermission, WorkbookDeleteSheetPermission, WorkbookDuplicatePermission, WorkbookEditablePermission, WorkbookExportPermission, WorkbookHideSheetPermission, WorkbookManageCollaboratorPermission, WorkbookMoveSheetPermission, WorkbookPrintPermission, WorkbookRecoverHistoryPermission, WorkbookRenameSheetPermission, WorkbookSharePermission, WorkbookViewHistoryPermission, WorkbookViewPermission, WorksheetCopyPermission, WorksheetDeleteColumnPermission, WorksheetDeleteProtectionPermission, WorksheetDeleteRowPermission, WorksheetEditExtraObjectPermission, WorksheetEditPermission, WorksheetFilterPermission, WorksheetInsertColumnPermission, WorksheetInsertHyperlinkPermission, WorksheetInsertRowPermission, WorksheetManageCollaboratorPermission, WorksheetPivotTablePermission, WorksheetSelectProtectedCellsPermission, WorksheetSelectUnProtectedCellsPermission, WorksheetSetCellStylePermission, WorksheetSetCellValuePermission, WorksheetSetColumnStylePermission, WorksheetSetRowStylePermission, WorksheetSortPermission, WorksheetViewPermission, } from './services/permission/permission-point';
|
|
195
196
|
export { PermissionPointsDefinitions } from './services/permission/permission-point/const';
|
|
196
197
|
export { RangeProtectionPermissionDeleteProtectionPoint } from './services/permission/permission-point/range/delete-protection';
|
|
197
198
|
export { RangeProtectionPermissionEditPoint } from './services/permission/permission-point/range/edit';
|
|
@@ -24,7 +24,6 @@ import { WorkbookDuplicatePermission } from './workbook/duplicate';
|
|
|
24
24
|
import { WorkbookEditablePermission } from './workbook/editable';
|
|
25
25
|
import { WorkbookExportPermission } from './workbook/export';
|
|
26
26
|
import { WorkbookHideSheetPermission } from './workbook/hide-sheet';
|
|
27
|
-
import { WorkbookHistoryPermission } from './workbook/history';
|
|
28
27
|
import { WorkbookManageCollaboratorPermission } from './workbook/manage-collaborator';
|
|
29
28
|
import { WorkbookMoveSheetPermission } from './workbook/move-sheet';
|
|
30
29
|
import { WorkbookPrintPermission } from './workbook/print';
|
|
@@ -91,10 +90,6 @@ export declare const PermissionPointsDefinitions: {
|
|
|
91
90
|
* The permission point for hiding sheets in a workbook
|
|
92
91
|
*/
|
|
93
92
|
WorkbookHideSheetPermission: typeof WorkbookHideSheetPermission;
|
|
94
|
-
/**
|
|
95
|
-
* The permission point for viewing and managing workbook history
|
|
96
|
-
*/
|
|
97
|
-
WorkbookHistoryPermission: typeof WorkbookHistoryPermission;
|
|
98
93
|
/**
|
|
99
94
|
* The permission point for managing collaborators in a workbook
|
|
100
95
|
*/
|
|
@@ -27,7 +27,6 @@ export { WorkbookDuplicatePermission } from './workbook/duplicate';
|
|
|
27
27
|
export { WorkbookEditablePermission } from './workbook/editable';
|
|
28
28
|
export { WorkbookExportPermission } from './workbook/export';
|
|
29
29
|
export { WorkbookHideSheetPermission } from './workbook/hide-sheet';
|
|
30
|
-
export { WorkbookHistoryPermission } from './workbook/history';
|
|
31
30
|
export { WorkbookInsertColumnPermission } from './workbook/insert-column';
|
|
32
31
|
export { WorkbookInsertRowPermission } from './workbook/insert-row';
|
|
33
32
|
export { WorkbookManageCollaboratorPermission } from './workbook/manage-collaborator';
|