@univerjs/sheets 0.1.15 → 0.1.17
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 +3 -2
- package/lib/es/index.js +3100 -3014
- package/lib/locale/en-US.json +1 -1
- package/lib/locale/ru-RU.json +1 -1
- package/lib/locale/zh-CN.json +1 -1
- package/lib/types/basics/__tests__/utils.spec.d.ts +16 -0
- package/lib/types/basics/selection.d.ts +5 -0
- package/lib/types/basics/utils.d.ts +18 -15
- package/lib/types/commands/commands/clear-selection-format.command.d.ts +1 -2
- package/lib/types/commands/commands/copy-worksheet.command.d.ts +2 -1
- package/lib/types/commands/commands/reorder-range.command.d.ts +11 -0
- package/lib/types/commands/commands/set-col-visible.command.d.ts +2 -1
- package/lib/types/commands/commands/set-row-visible.command.d.ts +2 -1
- package/lib/types/commands/mutations/reorder-range.mutation.d.ts +11 -0
- package/lib/types/commands/utils/handle-range-mutation.d.ts +1 -2
- package/lib/types/controllers/calculate-result-apply.controller.d.ts +0 -1
- package/lib/types/controllers/defined-name-data.controller.d.ts +2 -4
- package/lib/types/index.d.ts +5 -1
- package/lib/types/services/permission/workbook-permission/workbook-permission.service.d.ts +3 -1
- package/lib/types/services/permission/worksheet-permission/worksheet-permission.service.d.ts +3 -3
- package/lib/types/services/ref-range/type.d.ts +6 -1
- package/lib/types/services/ref-range/util.d.ts +3 -1
- package/lib/types/services/selection-manager.service.d.ts +2 -0
- package/lib/umd/index.js +3 -2
- package/package.json +11 -11
- package/lib/types/controllers/feature-calculation.controller.d.ts +0 -18
package/lib/locale/en-US.json
CHANGED
package/lib/locale/ru-RU.json
CHANGED
package/lib/locale/zh-CN.json
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -110,6 +110,11 @@ export interface ISelectionWithCoordAndStyle extends ISelectionWithCoord {
|
|
|
110
110
|
export interface ISelectionWithStyle extends ISelection {
|
|
111
111
|
style: Nullable<ISelectionStyle>;
|
|
112
112
|
}
|
|
113
|
+
export interface ISheetRangeLocation {
|
|
114
|
+
range: IRange;
|
|
115
|
+
subUnitId: string;
|
|
116
|
+
unitId: string;
|
|
117
|
+
}
|
|
113
118
|
export declare function getNormalSelectionStyle(themeService: ThemeService): ISelectionStyle;
|
|
114
119
|
/**
|
|
115
120
|
* Process a selection with coordinates and style,
|
|
@@ -1,17 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
1
|
+
import { ICellData, IObjectMatrixPrimitiveType, IRange, Worksheet } from '@univerjs/core';
|
|
2
|
+
import { Nullable } from 'vitest';
|
|
3
|
+
import { IExpandParams } from '../commands/commands/utils/selection-utils';
|
|
4
|
+
|
|
16
5
|
export declare const groupByKey: <T = Record<string, unknown>>(arr: T[], key: string, blankKey?: string) => Record<string, T[]>;
|
|
17
6
|
export declare const createUniqueKey: (initValue?: number) => () => number;
|
|
7
|
+
export declare function expandToContinuousRange(startRange: IRange, directions: IExpandParams, worksheet: Worksheet): IRange;
|
|
8
|
+
/**
|
|
9
|
+
* Generate cellValue from range and set null
|
|
10
|
+
* @param range
|
|
11
|
+
* @returns
|
|
12
|
+
*/
|
|
13
|
+
export declare function generateNullCell(range: IRange[]): IObjectMatrixPrimitiveType<Nullable<ICellData>>;
|
|
14
|
+
/**
|
|
15
|
+
* Generate cellValue from range and set v/p/f/si/custom to null
|
|
16
|
+
* @param range
|
|
17
|
+
* @returns
|
|
18
|
+
*/
|
|
19
|
+
export declare function generateNullCellValue(range: IRange[]): IObjectMatrixPrimitiveType<ICellData>;
|
|
20
|
+
export declare function generateNullCellStyle(ranges: IRange[]): IObjectMatrixPrimitiveType<ICellData>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ICommand } from '@univerjs/core';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* The command to clear content in current selected ranges.
|
|
5
5
|
*/
|
|
6
6
|
export declare const ClearSelectionFormatCommand: ICommand;
|
|
7
|
-
export declare function generateNullCellValue(ranges: IRange[]): IObjectMatrixPrimitiveType<ICellData>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { ICommand } from '@univerjs/core';
|
|
1
|
+
import { ICommand, Workbook, LocaleService } from '@univerjs/core';
|
|
2
2
|
|
|
3
3
|
export interface ICopySheetCommandParams {
|
|
4
4
|
unitId?: string;
|
|
5
5
|
subUnitId?: string;
|
|
6
6
|
}
|
|
7
7
|
export declare const CopySheetCommand: ICommand;
|
|
8
|
+
export declare function getCopyUniqueSheetName(workbook: Workbook, localeService: LocaleService, name: string): string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ICommand, IRange } from '@univerjs/core';
|
|
2
|
+
import { ISheetCommandSharedParams } from '../utils/interface';
|
|
3
|
+
|
|
4
|
+
export interface IReorderRangeCommandParams extends ISheetCommandSharedParams {
|
|
5
|
+
range: IRange;
|
|
6
|
+
order: {
|
|
7
|
+
[key: number]: number;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export declare const ReorderRangeCommandId: "sheet.command.reorder-range";
|
|
11
|
+
export declare const ReorderRangeCommand: ICommand<IReorderRangeCommandParams>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ICommand, IRange } from '@univerjs/core';
|
|
1
|
+
import { ICommand, IRange, Worksheet } from '@univerjs/core';
|
|
2
2
|
|
|
3
3
|
export interface ISetSpecificColsVisibleCommandParams {
|
|
4
4
|
unitId: string;
|
|
@@ -8,3 +8,4 @@ export interface ISetSpecificColsVisibleCommandParams {
|
|
|
8
8
|
export declare const SetSpecificColsVisibleCommand: ICommand<ISetSpecificColsVisibleCommandParams>;
|
|
9
9
|
export declare const SetSelectedColsVisibleCommand: ICommand;
|
|
10
10
|
export declare const SetColHiddenCommand: ICommand;
|
|
11
|
+
export declare function divideRangesByHiddenCols(worksheet: Worksheet, ranges: IRange[]): IRange[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ICommand, IRange } from '@univerjs/core';
|
|
1
|
+
import { ICommand, IRange, Worksheet } from '@univerjs/core';
|
|
2
2
|
|
|
3
3
|
export interface ISetSpecificRowsVisibleCommandParams {
|
|
4
4
|
unitId: string;
|
|
@@ -8,3 +8,4 @@ export interface ISetSpecificRowsVisibleCommandParams {
|
|
|
8
8
|
export declare const SetSpecificRowsVisibleCommand: ICommand<ISetSpecificRowsVisibleCommandParams>;
|
|
9
9
|
export declare const SetSelectedRowsVisibleCommand: ICommand;
|
|
10
10
|
export declare const SetRowHiddenCommand: ICommand;
|
|
11
|
+
export declare function divideRangesByHiddenRows(worksheet: Worksheet, ranges: IRange[]): IRange[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IMutation, IRange } from '@univerjs/core';
|
|
2
|
+
import { ISheetCommandSharedParams } from '@univerjs/sheets';
|
|
3
|
+
|
|
4
|
+
export interface IReorderRangeMutationParams extends ISheetCommandSharedParams {
|
|
5
|
+
range: IRange;
|
|
6
|
+
order: {
|
|
7
|
+
[key: number]: number;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export declare const ReorderRangeUndoMutationFactory: (params: IReorderRangeMutationParams) => IReorderRangeMutationParams;
|
|
11
|
+
export declare const ReorderRangeMutation: IMutation<IReorderRangeMutationParams>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IMutationInfo, IObjectMatrixPrimitiveType, IRange, Nullable, Dimension, ObjectMatrix } from '@univerjs/core';
|
|
2
2
|
import { IAccessor } from '@wendellhu/redi';
|
|
3
3
|
import { IDeleteRangeMutationParams, IInsertRangeMutationParams } from '../../basics/interfaces/mutation-interface';
|
|
4
4
|
|
|
@@ -34,4 +34,3 @@ export declare function handleInsertRangeMutation<T>(cellMatrix: ObjectMatrix<T>
|
|
|
34
34
|
*/
|
|
35
35
|
export declare const DeleteRangeUndoMutationFactory: (accessor: IAccessor, params: IDeleteRangeMutationParams) => Nullable<IInsertRangeMutationParams>;
|
|
36
36
|
export declare function handleDeleteRangeMutation<T>(cellMatrix: ObjectMatrix<T>, range: IRange, lastEndRow: number, lastEndColumn: number, shiftDimension: Dimension): void;
|
|
37
|
-
export declare function generateNullCellValue(range: IRange[]): IObjectMatrixPrimitiveType<Nullable<ICellData>>;
|
|
@@ -5,7 +5,6 @@ export declare class CalculateResultApplyController extends Disposable {
|
|
|
5
5
|
private readonly _commandService;
|
|
6
6
|
constructor(_univerInstanceService: IUniverInstanceService, _commandService: ICommandService);
|
|
7
7
|
private _initialize;
|
|
8
|
-
private _commandExecutedListener;
|
|
9
8
|
/**
|
|
10
9
|
* Priority that mainly deals with number format in unitData
|
|
11
10
|
* @param unitId
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { Disposable,
|
|
1
|
+
import { Disposable, IResourceManagerService } from '@univerjs/core';
|
|
2
2
|
import { IDefinedNamesService } from '@univerjs/engine-formula';
|
|
3
3
|
|
|
4
4
|
export declare class DefinedNameDataController extends Disposable {
|
|
5
|
-
private readonly _commandService;
|
|
6
|
-
private readonly _univerInstanceService;
|
|
7
5
|
private readonly _definedNamesService;
|
|
8
6
|
private _resourceManagerService;
|
|
9
|
-
constructor(
|
|
7
|
+
constructor(_definedNamesService: IDefinedNamesService, _resourceManagerService: IResourceManagerService);
|
|
10
8
|
private _initialize;
|
|
11
9
|
private _initSnapshot;
|
|
12
10
|
}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
export { type IUniverSheetsConfig, UniverSheetsPlugin } from './sheets-plugin';
|
|
17
17
|
export { COMMAND_LISTENER_SKELETON_CHANGE, COMMAND_LISTENER_VALUE_CHANGE } from './basics/const/command-listener-const';
|
|
18
18
|
export { type IAddWorksheetMergeMutationParams, type IDeleteRangeMutationParams, type IInsertColMutationParams, type IInsertRangeMutationParams, type IInsertRowMutationParams, type IInsertSheetMutationParams, type IRemoveColMutationParams, type IRemoveRowsMutationParams, type IRemoveSheetMutationParams, type IRemoveWorksheetMergeMutationParams, } from './basics/interfaces/mutation-interface';
|
|
19
|
-
export { convertPrimaryWithCoordToPrimary, convertSelectionDataToRange, getNormalSelectionStyle, type ISelectionStyle, type ISelectionWidgetConfig, type ISelectionWithCoordAndStyle, type ISelectionWithStyle, SELECTION_CONTROL_BORDER_BUFFER_COLOR, SELECTION_CONTROL_BORDER_BUFFER_WIDTH, transformCellDataToSelectionData, } from './basics/selection';
|
|
19
|
+
export { convertPrimaryWithCoordToPrimary, convertSelectionDataToRange, getNormalSelectionStyle, type ISelectionStyle, type ISelectionWidgetConfig, type ISelectionWithCoordAndStyle, type ISelectionWithStyle, type ISheetRangeLocation, SELECTION_CONTROL_BORDER_BUFFER_COLOR, SELECTION_CONTROL_BORDER_BUFFER_WIDTH, transformCellDataToSelectionData, } from './basics/selection';
|
|
20
20
|
export { getSheetCommandTarget, getSheetCommandTargetWorkbook, getSheetMutationTarget } from './commands/commands/utils/target-util';
|
|
21
21
|
export { alignToMergedCellsBorders, getCellAtRowCol, setEndForRange, isSingleCellSelection } from './commands/commands/utils/selection-utils';
|
|
22
22
|
export { MAX_CELL_PER_SHEET_KEY } from './controllers/config/config';
|
|
@@ -64,6 +64,8 @@ export { type ISetWorksheetNameCommandParams, SetWorksheetNameCommand, } from '.
|
|
|
64
64
|
export { SetWorksheetOrderCommand } from './commands/commands/set-worksheet-order.command';
|
|
65
65
|
export { DeltaRowHeightCommand, type IDeltaRowHeightCommand, type ISetWorksheetRowIsAutoHeightCommandParams, SetRowHeightCommand, SetWorksheetRowIsAutoHeightCommand, } from './commands/commands/set-worksheet-row-height.command';
|
|
66
66
|
export { SetWorksheetShowCommand } from './commands/commands/set-worksheet-show.command';
|
|
67
|
+
export { ReorderRangeCommand, type IReorderRangeCommandParams } from './commands/commands/reorder-range.command';
|
|
68
|
+
export { ReorderRangeMutation, type IReorderRangeMutationParams } from './commands/mutations/reorder-range.mutation';
|
|
67
69
|
export { followSelectionOperation, getPrimaryForRange } from './commands/commands/utils/selection-utils';
|
|
68
70
|
export { AddMergeUndoMutationFactory, AddWorksheetMergeMutation, } from './commands/mutations/add-worksheet-merge.mutation';
|
|
69
71
|
export { EmptyMutation } from './commands/mutations/empty.mutation';
|
|
@@ -123,6 +125,7 @@ export { SetDefinedNameCommand, type ISetDefinedNameCommandParams } from './comm
|
|
|
123
125
|
export { ScrollToCellOperation } from './commands/operations/scroll-to-cell.operation';
|
|
124
126
|
export type { FormatType } from './services/numfmt/type';
|
|
125
127
|
export { getMoveRangeUndoRedoMutations } from './commands/commands/move-range.command';
|
|
128
|
+
export { expandToContinuousRange } from './basics/utils';
|
|
126
129
|
export { defaultWorksheetPermissionPoint, getAllWorksheetPermissionPoint, getAllWorksheetPermissionPointByPointPanel } from './services/permission';
|
|
127
130
|
export type { IWorksheetProtectionRule } from './services/permission/type';
|
|
128
131
|
export { WorksheetProtectionRuleModel, WorksheetProtectionPointModel } from './services/permission/worksheet-permission';
|
|
@@ -147,3 +150,4 @@ export { type IRangePermissionPoint, getAllRangePermissionPoint, getDefaultRange
|
|
|
147
150
|
export { RangeProtectionPermissionEditPoint } from './services/permission/permission-point/range/edit';
|
|
148
151
|
export { RangeProtectionPermissionViewPoint } from './services/permission/permission-point/range/view';
|
|
149
152
|
export type { IAddWorksheetProtectionParams } from './commands/mutations/add-worksheet-protection.mutation';
|
|
153
|
+
export { generateNullCellValue } from './basics/utils';
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { Disposable, IPermissionService, IUniverInstanceService } from '@univerjs/core';
|
|
2
|
+
import { RangeProtectionRuleModel } from '../../../model/range-protection-rule.model';
|
|
2
3
|
|
|
3
4
|
export declare class WorkbookPermissionService extends Disposable {
|
|
4
5
|
private _permissionService;
|
|
5
6
|
private _univerInstanceService;
|
|
6
|
-
|
|
7
|
+
private _rangeProtectionRuleModel;
|
|
8
|
+
constructor(_permissionService: IPermissionService, _univerInstanceService: IUniverInstanceService, _rangeProtectionRuleModel: RangeProtectionRuleModel);
|
|
7
9
|
private _init;
|
|
8
10
|
}
|
package/lib/types/services/permission/worksheet-permission/worksheet-permission.service.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IPermissionService, IResourceManagerService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
|
2
2
|
import { Injector } from '@wendellhu/redi';
|
|
3
|
-
import {
|
|
3
|
+
import { RangeProtectionRuleModel } from '../../../model/range-protection-rule.model';
|
|
4
4
|
import { WorksheetProtectionRuleModel } from './worksheet-permission-rule.model';
|
|
5
5
|
import { WorksheetProtectionPointModel } from './worksheet-permission-point.model';
|
|
6
6
|
|
|
@@ -13,8 +13,8 @@ export declare class WorksheetPermissionService extends RxDisposable {
|
|
|
13
13
|
private _worksheetProtectionRuleModel;
|
|
14
14
|
private _worksheetProtectionPointRuleModel;
|
|
15
15
|
private _resourceManagerService;
|
|
16
|
-
private
|
|
17
|
-
constructor(_permissionService: IPermissionService, _univerInstanceService: IUniverInstanceService, _injector: Injector, _worksheetProtectionRuleModel: WorksheetProtectionRuleModel, _worksheetProtectionPointRuleModel: WorksheetProtectionPointModel, _resourceManagerService: IResourceManagerService,
|
|
16
|
+
private _rangeProtectionRuleModel;
|
|
17
|
+
constructor(_permissionService: IPermissionService, _univerInstanceService: IUniverInstanceService, _injector: Injector, _worksheetProtectionRuleModel: WorksheetProtectionRuleModel, _worksheetProtectionPointRuleModel: WorksheetProtectionPointModel, _resourceManagerService: IResourceManagerService, _rangeProtectionRuleModel: RangeProtectionRuleModel);
|
|
18
18
|
private _init;
|
|
19
19
|
private _initRuleChange;
|
|
20
20
|
private _initRuleSnapshot;
|
|
@@ -7,6 +7,7 @@ import { IInsertColCommandParams, IInsertRowCommandParams, InsertColCommandId, I
|
|
|
7
7
|
import { IMoveRangeCommandParams, MoveRangeCommandId } from '../../commands/commands/move-range.command';
|
|
8
8
|
import { IMoveColsCommandParams, IMoveRowsCommandParams, MoveColsCommandId, MoveRowsCommandId } from '../../commands/commands/move-rows-cols.command';
|
|
9
9
|
import { IRemoveRowColCommandParams, RemoveColCommandId, RemoveRowCommandId } from '../../commands/commands/remove-row-col.command';
|
|
10
|
+
import { IReorderRangeCommandParams, ReorderRangeCommandId } from '../../commands/commands/reorder-range.command';
|
|
10
11
|
|
|
11
12
|
export type IMoveRowsCommand = ICommandInfo<IMoveRowsCommandParams> & {
|
|
12
13
|
id: typeof MoveRowsCommandId;
|
|
@@ -38,7 +39,10 @@ export type IInsertRangeMoveDownCommand = ICommandInfo<InsertRangeMoveDownComman
|
|
|
38
39
|
export type IInsertRangeMoveRightCommand = ICommandInfo<InsertRangeMoveRightCommandParams> & {
|
|
39
40
|
id: typeof InsertRangeMoveRightCommandId;
|
|
40
41
|
};
|
|
41
|
-
export type
|
|
42
|
+
export type IReorderRangeCommand = ICommandInfo<IReorderRangeCommandParams> & {
|
|
43
|
+
id: typeof ReorderRangeCommandId;
|
|
44
|
+
};
|
|
45
|
+
export type EffectRefRangeParams = IMoveRangeCommand | IInsertRowCommand | IInsertColCommand | IRemoveRowColCommand | IDeleteRangeMoveLeftCommand | IDeleteRangeMoveUpCommand | IInsertRangeMoveDownCommand | IInsertRangeMoveRightCommand | IMoveColsCommand | IMoveRowsCommand | IReorderRangeCommand;
|
|
42
46
|
export declare const EffectRefRangId: {
|
|
43
47
|
readonly MoveRangeCommandId: "sheet.command.move-range";
|
|
44
48
|
readonly InsertRowCommandId: "sheet.command.insert-row";
|
|
@@ -51,6 +55,7 @@ export declare const EffectRefRangId: {
|
|
|
51
55
|
readonly InsertRangeMoveRightCommandId: "sheet.command.insert-range-move-right";
|
|
52
56
|
readonly MoveColsCommandId: "sheet.command.move-cols";
|
|
53
57
|
readonly MoveRowsCommandId: "sheet.command.move-rows";
|
|
58
|
+
readonly ReorderRangeCommandId: "sheet.command.reorder-range";
|
|
54
59
|
};
|
|
55
60
|
export declare enum OperatorType {
|
|
56
61
|
Set = 0,
|
|
@@ -4,7 +4,7 @@ import { IInsertColMutationParams, IInsertRowMutationParams, IRemoveColMutationP
|
|
|
4
4
|
import { IMoveRangeMutationParams } from '../../commands/mutations/move-range.mutation';
|
|
5
5
|
import { ISheetCommandSharedParams } from '../../commands/utils/interface';
|
|
6
6
|
import { SelectionManagerService } from '../selection-manager.service';
|
|
7
|
-
import { EffectRefRangeParams, IDeleteRangeMoveLeftCommand, IDeleteRangeMoveUpCommand, IInsertColCommand, IInsertRangeMoveDownCommand, IInsertRangeMoveRightCommand, IInsertRowCommand, IMoveColsCommand, IMoveRangeCommand, IMoveRowsCommand, IOperator, IRemoveRowColCommand } from './type';
|
|
7
|
+
import { EffectRefRangeParams, IDeleteRangeMoveLeftCommand, IDeleteRangeMoveUpCommand, IInsertColCommand, IInsertRangeMoveDownCommand, IInsertRangeMoveRightCommand, IInsertRowCommand, IMoveColsCommand, IMoveRangeCommand, IMoveRowsCommand, IOperator, IRemoveRowColCommand, IReorderRangeCommand } from './type';
|
|
8
8
|
|
|
9
9
|
export declare const handleRangeTypeInput: (range: IRange) => {
|
|
10
10
|
startColumn: number;
|
|
@@ -38,6 +38,7 @@ export declare const handleBaseMoveRowsCols: (fromRange: ILine, toRange: ILine,
|
|
|
38
38
|
};
|
|
39
39
|
export declare const handleMoveRows: (params: IMoveRowsCommand, targetRange: IRange) => IOperator[];
|
|
40
40
|
export declare const handleMoveRowsCommon: (params: IMoveRowsCommand, targetRange: IRange) => IRange[];
|
|
41
|
+
export declare const handleReorderRangeCommon: (param: IReorderRangeCommand, targetRange: IRange) => IRange[];
|
|
41
42
|
export declare const handleMoveCols: (params: IMoveColsCommand, targetRange: IRange) => IOperator[];
|
|
42
43
|
export declare const handleMoveColsCommon: (params: IMoveColsCommand, targetRange: IRange) => IRange[];
|
|
43
44
|
export declare const handleMoveRange: (param: IMoveRangeCommand, targetRange: IRange) => IOperator[];
|
|
@@ -48,6 +49,7 @@ export declare const handleBaseRemoveRange: (_removeRange: IRange, _targetRange:
|
|
|
48
49
|
} | null;
|
|
49
50
|
export declare const handleIRemoveCol: (param: IRemoveRowColCommand, targetRange: IRange) => IOperator[];
|
|
50
51
|
export declare const handleIRemoveRow: (param: IRemoveRowColCommand, targetRange: IRange) => IOperator[];
|
|
52
|
+
export declare const handleReorderRange: (param: IReorderRangeCommand, targetRange: IRange) => IOperator[];
|
|
51
53
|
export declare const handleBaseInsertRange: (_insertRange: IRange, _targetRange: IRange) => {
|
|
52
54
|
step: number;
|
|
53
55
|
length: number;
|
|
@@ -44,6 +44,8 @@ export declare class SelectionManagerService implements IDisposable {
|
|
|
44
44
|
readonly selectionMoving$: import('rxjs').Observable<Nullable<ISelectionWithStyle[]>>;
|
|
45
45
|
private readonly _selectionMoveEnd$;
|
|
46
46
|
readonly selectionMoveEnd$: import('rxjs').Observable<Nullable<ISelectionWithStyle[]>>;
|
|
47
|
+
private readonly _selectionMoveEndBefore$;
|
|
48
|
+
readonly selectionMoveEndBefore$: import('rxjs').Observable<Nullable<ISelectionWithStyle[]>>;
|
|
47
49
|
private _dirty;
|
|
48
50
|
constructor(_themeService: ThemeService);
|
|
49
51
|
getCurrent(): Nullable<ISelectionManagerSearchParam>;
|