@univerjs/sheets 0.18.0 → 0.19.0
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 +2 -2
- package/lib/index.js +2 -2
- package/lib/types/commands/commands/clear-selection-all.command.d.ts +6 -1
- package/lib/types/commands/commands/clear-selection-format.command.d.ts +6 -1
- package/lib/types/commands/commands/move-range.command.d.ts +15 -0
- package/lib/types/commands/commands/remove-worksheet-merge.command.d.ts +5 -1
- package/lib/types/index.d.ts +6 -6
- package/lib/umd/index.js +2 -2
- package/package.json +9 -9
|
@@ -13,7 +13,12 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import type { ICommand } from '@univerjs/core';
|
|
16
|
+
import type { ICommand, IRange } from '@univerjs/core';
|
|
17
|
+
export interface IClearSelectionAllCommandParams {
|
|
18
|
+
unitId?: string;
|
|
19
|
+
subUnitId?: string;
|
|
20
|
+
ranges?: IRange[];
|
|
21
|
+
}
|
|
17
22
|
/**
|
|
18
23
|
* The command to clear all in current selected ranges.
|
|
19
24
|
*/
|
|
@@ -13,7 +13,12 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import type { ICommand } from '@univerjs/core';
|
|
16
|
+
import type { ICommand, IRange } from '@univerjs/core';
|
|
17
|
+
export interface IClearSelectionFormatCommandParams {
|
|
18
|
+
unitId?: string;
|
|
19
|
+
subUnitId?: string;
|
|
20
|
+
ranges?: IRange[];
|
|
21
|
+
}
|
|
17
22
|
/**
|
|
18
23
|
* The command to clear content in current selected ranges.
|
|
19
24
|
*/
|
|
@@ -17,9 +17,23 @@ import type { IAccessor, ICommand, IMutationInfo, IRange } from '@univerjs/core'
|
|
|
17
17
|
export interface IMoveRangeCommandParams {
|
|
18
18
|
toRange: IRange;
|
|
19
19
|
fromRange: IRange;
|
|
20
|
+
fromUnitId?: string;
|
|
21
|
+
fromSubUnitId?: string;
|
|
22
|
+
toUnitId?: string;
|
|
23
|
+
toSubUnitId?: string;
|
|
20
24
|
}
|
|
21
25
|
export declare const MoveRangeCommandId = "sheet.command.move-range";
|
|
26
|
+
interface IGetMoveRangeCommandMutationsOptions {
|
|
27
|
+
includeSelection?: boolean;
|
|
28
|
+
includeAfterCommand?: boolean;
|
|
29
|
+
includeAutoHeight?: boolean;
|
|
30
|
+
}
|
|
22
31
|
export declare const MoveRangeCommand: ICommand;
|
|
32
|
+
export declare function getMoveRangeCommandMutations(accessor: IAccessor, params: IMoveRangeCommandParams, options?: IGetMoveRangeCommandMutationsOptions): {
|
|
33
|
+
unitId: string;
|
|
34
|
+
redos: IMutationInfo<object>[];
|
|
35
|
+
undos: IMutationInfo<object>[];
|
|
36
|
+
} | null;
|
|
23
37
|
export interface IRangeUnit {
|
|
24
38
|
unitId: string;
|
|
25
39
|
subUnitId: string;
|
|
@@ -29,3 +43,4 @@ export declare function getMoveRangeUndoRedoMutations(accessor: IAccessor, from:
|
|
|
29
43
|
redos: IMutationInfo<object>[];
|
|
30
44
|
undos: IMutationInfo<object>[];
|
|
31
45
|
} | null;
|
|
46
|
+
export {};
|
|
@@ -13,5 +13,9 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import type { ICommand } from '@univerjs/core';
|
|
16
|
+
import type { ICommand, IRange } from '@univerjs/core';
|
|
17
|
+
import type { ISheetCommandSharedParams } from '../utils/interface';
|
|
18
|
+
export interface IRemoveWorksheetMergeCommandParams extends ISheetCommandSharedParams {
|
|
19
|
+
ranges?: IRange[];
|
|
20
|
+
}
|
|
17
21
|
export declare const RemoveWorksheetMergeCommand: ICommand;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -24,14 +24,14 @@ export { SplitDelimiterEnum, splitRangeText } from './basics/split-range-text';
|
|
|
24
24
|
export { findFirstNonEmptyCell } from './basics/utils';
|
|
25
25
|
export { discreteRangeToRange, generateNullCell, generateNullCellValue, getVisibleRanges, rangeToDiscreteRange } from './basics/utils';
|
|
26
26
|
export { AddRangeProtectionCommand, type IAddRangeProtectionCommandParams } from './commands/commands/add-range-protection.command';
|
|
27
|
-
export { addMergeCellsUtil, AddWorksheetMergeAllCommand, AddWorksheetMergeCommand, AddWorksheetMergeHorizontalCommand, AddWorksheetMergeVerticalCommand, getClearContentMutationParamForRange, getClearContentMutationParamsForRanges, type IMergeCellsUtilOptions, } from './commands/commands/add-worksheet-merge.command';
|
|
27
|
+
export { addMergeCellsUtil, AddWorksheetMergeAllCommand, AddWorksheetMergeCommand, AddWorksheetMergeHorizontalCommand, AddWorksheetMergeVerticalCommand, getClearContentMutationParamForRange, getClearContentMutationParamsForRanges, type IAddMergeCommandParams, type IMergeCellsUtilOptions, } from './commands/commands/add-worksheet-merge.command';
|
|
28
28
|
export { AddWorksheetProtectionCommand } from './commands/commands/add-worksheet-protection.command';
|
|
29
29
|
export { SetWorksheetRangeThemeStyleCommand } from './commands/commands/add-worksheet-range-theme.command';
|
|
30
30
|
export { AppendRowCommand, type IAppendRowCommandParams } from './commands/commands/append-row.command';
|
|
31
31
|
export { AutoClearContentCommand, AutoFillCommand, type IAutoClearContentCommand, type IAutoFillCommandParams, SheetCopyDownCommand, SheetCopyRightCommand } from './commands/commands/auto-fill.command';
|
|
32
|
-
export { ClearSelectionAllCommand } from './commands/commands/clear-selection-all.command';
|
|
32
|
+
export { ClearSelectionAllCommand, type IClearSelectionAllCommandParams } from './commands/commands/clear-selection-all.command';
|
|
33
33
|
export { ClearSelectionContentCommand, type IClearSelectionContentCommandParams } from './commands/commands/clear-selection-content.command';
|
|
34
|
-
export { ClearSelectionFormatCommand } from './commands/commands/clear-selection-format.command';
|
|
34
|
+
export { ClearSelectionFormatCommand, type IClearSelectionFormatCommandParams } from './commands/commands/clear-selection-format.command';
|
|
35
35
|
export { CopySheetCommand } from './commands/commands/copy-worksheet.command';
|
|
36
36
|
export type { ICopySheetCommandParams } from './commands/commands/copy-worksheet.command';
|
|
37
37
|
export { DeleteRangeMoveLeftCommand, type IDeleteRangeMoveLeftCommandParams } from './commands/commands/delete-range-move-left.command';
|
|
@@ -44,7 +44,7 @@ export { type IInsertRangeMoveDownCommandParams, InsertRangeMoveDownCommand } fr
|
|
|
44
44
|
export { type IInsertRangeMoveRightCommandParams, InsertRangeMoveRightCommand } from './commands/commands/insert-range-move-right.command';
|
|
45
45
|
export { type IInsertColCommandParams, type IInsertRowCommandParams, InsertColAfterCommand, InsertColBeforeCommand, InsertColByRangeCommand, InsertColCommand, InsertMultiColsLeftCommand, InsertMultiColsRightCommand, InsertMultiRowsAboveCommand, InsertMultiRowsAfterCommand, InsertRowAfterCommand, InsertRowBeforeCommand, InsertRowByRangeCommand, InsertRowCommand, } from './commands/commands/insert-row-col.command';
|
|
46
46
|
export { type IInsertSheetCommandParams, InsertSheetCommand } from './commands/commands/insert-sheet.command';
|
|
47
|
-
export { getMoveRangeUndoRedoMutations, type IMoveRangeCommandParams, MoveRangeCommand } from './commands/commands/move-range.command';
|
|
47
|
+
export { getMoveRangeCommandMutations, getMoveRangeUndoRedoMutations, type IMoveRangeCommandParams, MoveRangeCommand } from './commands/commands/move-range.command';
|
|
48
48
|
export { type IMoveColsCommandParams, type IMoveRowsCommandParams, MoveColsCommand, MoveRowsCommand, } from './commands/commands/move-rows-cols.command';
|
|
49
49
|
export { type IRefillCommandParams, RefillCommand } from './commands/commands/refill.command';
|
|
50
50
|
export { RegisterWorksheetRangeThemeStyleCommand } from './commands/commands/register-range-theme.command';
|
|
@@ -52,7 +52,7 @@ export type { IRegisterWorksheetRangeThemeStyleCommandParams } from './commands/
|
|
|
52
52
|
export { RemoveDefinedNameCommand } from './commands/commands/remove-defined-name.command';
|
|
53
53
|
export { type IRemoveColByRangeCommandParams, type IRemoveRowByRangeCommandParams, type IRemoveRowColCommandInterceptParams, type IRemoveRowColCommandParams, RemoveColByRangeCommand, RemoveColCommand, RemoveRowByRangeCommand, RemoveRowCommand } from './commands/commands/remove-row-col.command';
|
|
54
54
|
export { type IRemoveSheetCommandParams, RemoveSheetCommand } from './commands/commands/remove-sheet.command';
|
|
55
|
-
export { RemoveWorksheetMergeCommand } from './commands/commands/remove-worksheet-merge.command';
|
|
55
|
+
export { type IRemoveWorksheetMergeCommandParams, RemoveWorksheetMergeCommand } from './commands/commands/remove-worksheet-merge.command';
|
|
56
56
|
export { type IReorderRangeCommandParams, ReorderRangeCommand } from './commands/commands/reorder-range.command';
|
|
57
57
|
export { type ISetBorderBasicCommandParams, type ISetBorderColorCommandParams, type ISetBorderCommandParams, type ISetBorderPositionCommandParams, type ISetBorderStyleCommandParams, SetBorderBasicCommand, SetBorderColorCommand, SetBorderCommand, SetBorderPositionCommand, SetBorderStyleCommand, } from './commands/commands/set-border-command';
|
|
58
58
|
export { type ISetColDataCommandParams, SetColDataCommand } from './commands/commands/set-col-data.command';
|
|
@@ -82,7 +82,7 @@ export { SetWorksheetPermissionPointsCommand } from './commands/commands/set-wor
|
|
|
82
82
|
export { SetWorksheetProtectionCommand } from './commands/commands/set-worksheet-protection.command';
|
|
83
83
|
export { SetWorksheetRightToLeftCommand } from './commands/commands/set-worksheet-right-to-left.command';
|
|
84
84
|
export { SetWorksheetRowCountCommand } from './commands/commands/set-worksheet-row-count.command';
|
|
85
|
-
export { DeltaRowHeightCommand, SetRowHeightCommand, SetWorksheetRowIsAutoHeightCommand } from './commands/commands/set-worksheet-row-height.command';
|
|
85
|
+
export { DeltaRowHeightCommand, type ISetRowHeightCommandParams, SetRowHeightCommand, SetWorksheetRowIsAutoHeightCommand } from './commands/commands/set-worksheet-row-height.command';
|
|
86
86
|
export type { IDeltaRowHeightCommand, ISetWorksheetRowIsAutoHeightCommandParams } from './commands/commands/set-worksheet-row-height.command';
|
|
87
87
|
export { SetWorksheetShowCommand } from './commands/commands/set-worksheet-show.command';
|
|
88
88
|
export type { ISetWorksheetShowCommandParams } from './commands/commands/set-worksheet-show.command';
|