@univerjs/sheets 0.1.9 → 0.1.11
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 +1371 -1416
- package/lib/types/commands/commands/__tests__/create-command-test-bed.d.ts +1 -1
- package/lib/types/commands/commands/move-range.command.d.ts +1 -1
- package/lib/types/commands/commands/set-border-command.d.ts +1 -1
- package/lib/types/commands/commands/set-defined-name.command.d.ts +1 -1
- package/lib/types/commands/commands/set-range-values.command.d.ts +1 -1
- package/lib/types/commands/commands/set-workbook-name.command.d.ts +10 -0
- package/lib/types/commands/commands/set-worksheet-show.command.d.ts +2 -0
- package/lib/types/commands/commands/utils/selection-utils.d.ts +11 -2
- package/lib/types/commands/mutations/__tests__/create-command-test-bed.d.ts +1 -1
- package/lib/types/commands/mutations/add-worksheet-merge.mutation.d.ts +2 -2
- package/lib/types/commands/mutations/insert-row-col.mutation.d.ts +2 -2
- package/lib/types/commands/mutations/insert-sheet.mutation.d.ts +2 -2
- package/lib/types/commands/mutations/move-rows-cols.mutation.d.ts +1 -1
- package/lib/types/commands/mutations/numfmt-mutation.d.ts +1 -1
- package/lib/types/commands/mutations/remove-row-col.mutation.d.ts +2 -2
- package/lib/types/commands/mutations/remove-sheet.mutation.d.ts +2 -2
- package/lib/types/commands/mutations/remove-worksheet-merge.mutation.d.ts +2 -2
- package/lib/types/commands/mutations/set-col-visible.mutation.d.ts +1 -1
- package/lib/types/commands/mutations/set-frozen.mutation.d.ts +1 -1
- package/lib/types/commands/mutations/set-hide-gridlines.mutatiom.d.ts +1 -1
- package/lib/types/commands/mutations/set-range-values.mutation.d.ts +1 -1
- package/lib/types/commands/mutations/set-row-visible.mutation.d.ts +1 -1
- package/lib/types/commands/mutations/set-tab-color.mutation.d.ts +1 -1
- package/lib/types/commands/mutations/set-workbook-name.mutation.d.ts +7 -0
- package/lib/types/commands/mutations/set-worksheet-col-width.mutation.d.ts +1 -1
- package/lib/types/commands/mutations/set-worksheet-hide.mutation.d.ts +1 -1
- package/lib/types/commands/mutations/set-worksheet-name.mutation.d.ts +1 -1
- package/lib/types/commands/mutations/set-worksheet-order.mutation.d.ts +1 -1
- package/lib/types/commands/mutations/set-worksheet-right-to-left.mutation.d.ts +1 -1
- package/lib/types/commands/mutations/set-worksheet-row-height.mutation.d.ts +2 -2
- package/lib/types/commands/operations/selection.operation.d.ts +2 -2
- package/lib/types/commands/utils/handle-merge-operation.d.ts +3 -3
- package/lib/types/commands/utils/handle-range-mutation.d.ts +2 -2
- package/lib/types/controllers/__tests__/util.d.ts +1 -1
- package/lib/types/controllers/basic-worksheet.controller.d.ts +1 -1
- package/lib/types/controllers/defined-name-data.controller.d.ts +1 -1
- package/lib/types/controllers/feature-calculation.controller.d.ts +1 -1
- package/lib/types/controllers/merge-cell.controller.d.ts +6 -6
- package/lib/types/index.d.ts +3 -1
- package/lib/types/locale/index.d.ts +1 -0
- package/lib/types/locale/ru-RU.d.ts +4 -0
- package/lib/types/services/__tests__/util.d.ts +1 -1
- package/lib/types/services/border-style-manager.service.d.ts +1 -1
- package/lib/types/services/numfmt/numfmt.service.d.ts +1 -1
- package/lib/types/services/ref-range/__tests__/__testing__.d.ts +1 -1
- package/lib/types/services/ref-range/ref-range.service.d.ts +4 -4
- package/lib/types/services/ref-range/type.d.ts +8 -8
- package/lib/types/services/ref-range/util.d.ts +5 -5
- package/lib/types/services/selection-manager.service.d.ts +2 -2
- package/lib/types/services/sheet-interceptor/__tests__/create-core-test-bed.d.ts +1 -1
- package/lib/types/services/sheet-interceptor/interceptor-const.d.ts +1 -1
- package/lib/types/services/sheet-interceptor/sheet-interceptor.service.d.ts +1 -1
- package/lib/types/sheets-plugin.d.ts +1 -1
- package/lib/umd/index.js +2 -2
- package/package.json +13 -14
- package/lib/types/basics/__tests__/numfmt-kit.spec.d.ts +0 -16
- package/lib/types/basics/numfmt-kit.d.ts +0 -41
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IBorderInfo } from '../../services/border-style-manager.service';
|
|
2
1
|
import { BorderStyleTypes, ICommand, BorderType } from '@univerjs/core';
|
|
2
|
+
import { IBorderInfo } from '../../services/border-style-manager.service';
|
|
3
3
|
|
|
4
4
|
export interface ISetBorderBasicCommandParams {
|
|
5
5
|
unitId?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ISheetCommandSharedParams } from '../utils/interface';
|
|
2
1
|
import { ICellData, ICommand, IObjectMatrixPrimitiveType, IRange } from '@univerjs/core';
|
|
2
|
+
import { ISheetCommandSharedParams } from '../utils/interface';
|
|
3
3
|
|
|
4
4
|
export interface ISetRangeValuesCommandParams extends Partial<ISheetCommandSharedParams> {
|
|
5
5
|
range?: IRange;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ICommand } from '@univerjs/core';
|
|
2
|
+
|
|
3
|
+
export interface ISetWorkbookNameCommandParams {
|
|
4
|
+
name: string;
|
|
5
|
+
unitId: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* The command to set the workbook name. It does not support undo redo.
|
|
9
|
+
*/
|
|
10
|
+
export declare const SetWorkbookNameCommand: ICommand;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ISelectionWithStyle } from '../../../basics/selection';
|
|
2
|
-
import { ISetSelectionsOperationParams } from '../../operations/selection.operation';
|
|
3
1
|
import { IRange, ISelectionCell, Nullable, Workbook, Worksheet } from '@univerjs/core';
|
|
2
|
+
import { ISetSelectionsOperationParams } from '../../operations/selection.operation';
|
|
3
|
+
import { ISelectionWithStyle } from '../../../basics/selection';
|
|
4
4
|
|
|
5
5
|
export interface IExpandParams {
|
|
6
6
|
left?: boolean;
|
|
@@ -41,3 +41,12 @@ export declare const followSelectionOperation: (range: IRange, workbook: Workboo
|
|
|
41
41
|
export declare function isSingleCellSelection(selection: Nullable<ISelectionWithStyle & {
|
|
42
42
|
primary: ISelectionCell;
|
|
43
43
|
}>): boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Create an iterator to iterate over cells in range.
|
|
46
|
+
* It will skip the row that has been filtered.
|
|
47
|
+
* @param sheet bind a sheet
|
|
48
|
+
* @returns iterator
|
|
49
|
+
*/
|
|
50
|
+
export declare function createRangeIteratorWithSkipFilteredRows(sheet: Worksheet): {
|
|
51
|
+
forOperableEach: (ranges: IRange, operator: (row: number, col: number, range: IRange) => void) => void;
|
|
52
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IAddWorksheetMergeMutationParams, IRemoveWorksheetMergeMutationParams } from '../../basics/interfaces/mutation-interface';
|
|
2
|
-
import { IAccessor } from '@wendellhu/redi';
|
|
3
1
|
import { IMutation } from '@univerjs/core';
|
|
2
|
+
import { IAccessor } from '@wendellhu/redi';
|
|
3
|
+
import { IAddWorksheetMergeMutationParams, IRemoveWorksheetMergeMutationParams } from '../../basics/interfaces/mutation-interface';
|
|
4
4
|
|
|
5
5
|
export declare const AddMergeUndoMutationFactory: (accessor: IAccessor, params: IAddWorksheetMergeMutationParams) => IRemoveWorksheetMergeMutationParams;
|
|
6
6
|
export declare const AddWorksheetMergeMutation: IMutation<IAddWorksheetMergeMutationParams>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IInsertColMutationParams, IInsertRowMutationParams, IRemoveColMutationParams, IRemoveRowsMutationParams } from '../../basics/interfaces/mutation-interface';
|
|
2
|
-
import { IAccessor } from '@wendellhu/redi';
|
|
3
1
|
import { IMutation } from '@univerjs/core';
|
|
2
|
+
import { IAccessor } from '@wendellhu/redi';
|
|
3
|
+
import { IInsertColMutationParams, IInsertRowMutationParams, IRemoveColMutationParams, IRemoveRowsMutationParams } from '../../basics/interfaces/mutation-interface';
|
|
4
4
|
|
|
5
5
|
export declare const InsertRowMutationUndoFactory: (accessor: IAccessor, params: IInsertRowMutationParams) => IRemoveRowsMutationParams;
|
|
6
6
|
export declare const InsertRowMutation: IMutation<IInsertRowMutationParams>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IInsertSheetMutationParams, IRemoveSheetMutationParams } from '../../basics/interfaces/mutation-interface';
|
|
2
|
-
import { IAccessor } from '@wendellhu/redi';
|
|
3
1
|
import { IMutation } from '@univerjs/core';
|
|
2
|
+
import { IAccessor } from '@wendellhu/redi';
|
|
3
|
+
import { IInsertSheetMutationParams, IRemoveSheetMutationParams } from '../../basics/interfaces/mutation-interface';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Generate undo mutation of a `InsertSheetMutation`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IAccessor } from '@wendellhu/redi';
|
|
2
1
|
import { ICommand, IMutationInfo, IRange } from '@univerjs/core';
|
|
2
|
+
import { IAccessor } from '@wendellhu/redi';
|
|
3
3
|
|
|
4
4
|
export declare const factorySetNumfmtUndoMutation: (accessor: IAccessor, option: ISetNumfmtMutationParams) => IMutationInfo<ISetNumfmtMutationParams | IRemoveNumfmtMutationParams>[];
|
|
5
5
|
export interface ISetNumfmtMutationParams {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IInsertColMutationParams, IInsertRowMutationParams, IRemoveColMutationParams, IRemoveRowsMutationParams } from '../../basics/interfaces/mutation-interface';
|
|
2
|
-
import { IAccessor } from '@wendellhu/redi';
|
|
3
1
|
import { IMutation, Worksheet } from '@univerjs/core';
|
|
2
|
+
import { IAccessor } from '@wendellhu/redi';
|
|
3
|
+
import { IInsertColMutationParams, IInsertRowMutationParams, IRemoveColMutationParams, IRemoveRowsMutationParams } from '../../basics/interfaces/mutation-interface';
|
|
4
4
|
|
|
5
5
|
export declare const RemoveRowsUndoMutationFactory: (params: IRemoveRowsMutationParams, worksheet: Worksheet) => IInsertRowMutationParams;
|
|
6
6
|
export declare const RemoveRowMutation: IMutation<IRemoveRowsMutationParams>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IInsertSheetMutationParams, IRemoveSheetMutationParams } from '../../basics/interfaces/mutation-interface';
|
|
2
|
-
import { IAccessor } from '@wendellhu/redi';
|
|
3
1
|
import { IMutation } from '@univerjs/core';
|
|
2
|
+
import { IAccessor } from '@wendellhu/redi';
|
|
3
|
+
import { IInsertSheetMutationParams, IRemoveSheetMutationParams } from '../../basics/interfaces/mutation-interface';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Generate undo mutation of a `RemoveSheetMutation`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IAddWorksheetMergeMutationParams, IRemoveWorksheetMergeMutationParams } from '../../basics/interfaces/mutation-interface';
|
|
2
|
-
import { IAccessor } from '@wendellhu/redi';
|
|
3
1
|
import { IMutation } from '@univerjs/core';
|
|
2
|
+
import { IAccessor } from '@wendellhu/redi';
|
|
3
|
+
import { IAddWorksheetMergeMutationParams, IRemoveWorksheetMergeMutationParams } from '../../basics/interfaces/mutation-interface';
|
|
4
4
|
|
|
5
5
|
export declare const RemoveMergeUndoMutationFactory: (accessor: IAccessor, params: IRemoveWorksheetMergeMutationParams) => IAddWorksheetMergeMutationParams;
|
|
6
6
|
export declare const RemoveWorksheetMergeMutation: IMutation<IRemoveWorksheetMergeMutationParams>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IAccessor } from '@wendellhu/redi';
|
|
2
1
|
import { CellValue, IBorderData, ICellData, ICopyToOptionsData, IDocumentData, IMutation, IMutationCommonParams, IObjectMatrixPrimitiveType, IRange, IStyleData, Nullable, CellValueType } from '@univerjs/core';
|
|
2
|
+
import { IAccessor } from '@wendellhu/redi';
|
|
3
3
|
|
|
4
4
|
/** Params of `SetRangeValuesMutation` */
|
|
5
5
|
export interface ISetRangeValuesMutationParams extends IMutationCommonParams {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IAccessor } from '@wendellhu/redi';
|
|
2
|
-
import { IRowAutoHeightInfo } from '@univerjs/engine-render';
|
|
3
1
|
import { BooleanNumber, IMutation, IObjectArrayPrimitiveType, IRange, Nullable } from '@univerjs/core';
|
|
2
|
+
import { IRowAutoHeightInfo } from '@univerjs/engine-render';
|
|
3
|
+
import { IAccessor } from '@wendellhu/redi';
|
|
4
4
|
|
|
5
5
|
export interface ISetWorksheetRowHeightMutationParams {
|
|
6
6
|
unitId: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { SelectionMoveType } from '../../services/selection-manager.service';
|
|
2
|
-
import { ISelectionWithStyle } from '../../basics/selection';
|
|
3
1
|
import { IOperation } from '@univerjs/core';
|
|
2
|
+
import { ISelectionWithStyle } from '../../basics/selection';
|
|
3
|
+
import { SelectionMoveType } from '../../services/selection-manager.service';
|
|
4
4
|
|
|
5
5
|
export interface ISetSelectionsOperationParams {
|
|
6
6
|
unitId: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ISetSelectionsOperationParams } from '../operations/selection.operation';
|
|
2
|
-
import { IAddMergeCommandParams } from '../commands/add-worksheet-merge.command';
|
|
3
|
-
import { IRange } from '@univerjs/core';
|
|
4
1
|
import { IAccessor } from '@wendellhu/redi';
|
|
2
|
+
import { IRange } from '@univerjs/core';
|
|
3
|
+
import { IAddMergeCommandParams } from '../commands/add-worksheet-merge.command';
|
|
4
|
+
import { ISetSelectionsOperationParams } from '../operations/selection.operation';
|
|
5
5
|
|
|
6
6
|
export declare const AddMergeRedoSelectionsOperationFactory: (accessor: IAccessor, params: IAddMergeCommandParams, ranges: IRange[]) => {
|
|
7
7
|
id: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IDeleteRangeMutationParams, IInsertRangeMutationParams } from '../../basics/interfaces/mutation-interface';
|
|
2
|
-
import { IAccessor } from '@wendellhu/redi';
|
|
3
1
|
import { ICellData, IMutationInfo, IObjectMatrixPrimitiveType, IRange, Nullable, Dimension, ObjectMatrix } from '@univerjs/core';
|
|
2
|
+
import { IAccessor } from '@wendellhu/redi';
|
|
3
|
+
import { IDeleteRangeMutationParams, IInsertRangeMutationParams } from '../../basics/interfaces/mutation-interface';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Generate undo mutation of a `InsertRangeMutation`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Dependency } from '@wendellhu/redi';
|
|
2
1
|
import { IWorkbookData, Univer } from '@univerjs/core';
|
|
2
|
+
import { Dependency } from '@wendellhu/redi';
|
|
3
3
|
|
|
4
4
|
export declare function createTestBase(workbookData?: IWorkbookData, dependencies?: Dependency[]): {
|
|
5
5
|
univer: Univer;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IDefinedNamesService } from '@univerjs/engine-formula';
|
|
2
1
|
import { Disposable, ICommandService, IResourceManagerService, IUniverInstanceService } from '@univerjs/core';
|
|
2
|
+
import { IDefinedNamesService } from '@univerjs/engine-formula';
|
|
3
3
|
|
|
4
4
|
export declare class DefinedNameDataController extends Disposable {
|
|
5
5
|
private readonly _commandService;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FormulaDataModel, IFeatureCalculationManagerService } from '@univerjs/engine-formula';
|
|
2
1
|
import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
|
|
2
|
+
import { FormulaDataModel, IFeatureCalculationManagerService } from '@univerjs/engine-formula';
|
|
3
3
|
|
|
4
4
|
export declare class FeatureCalculationController extends Disposable {
|
|
5
5
|
private readonly _commandService;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { SheetInterceptorService } from '../services/sheet-interceptor/sheet-interceptor.service';
|
|
2
|
-
import { SelectionManagerService } from '../services/selection-manager.service';
|
|
3
|
-
import { EffectRefRangeParams } from '../services/ref-range/type';
|
|
4
|
-
import { RefRangeService } from '../services/ref-range/ref-range.service';
|
|
5
|
-
import { IRemoveWorksheetMergeMutationParams } from '../basics/interfaces/mutation-interface';
|
|
6
|
-
import { Injector } from '@wendellhu/redi';
|
|
7
1
|
import { IRange, Dimension, Disposable, DisposableCollection, ICommandService, IUniverInstanceService } from '@univerjs/core';
|
|
2
|
+
import { Injector } from '@wendellhu/redi';
|
|
3
|
+
import { IRemoveWorksheetMergeMutationParams } from '../basics/interfaces/mutation-interface';
|
|
4
|
+
import { RefRangeService } from '../services/ref-range/ref-range.service';
|
|
5
|
+
import { EffectRefRangeParams } from '../services/ref-range/type';
|
|
6
|
+
import { SelectionManagerService } from '../services/selection-manager.service';
|
|
7
|
+
import { SheetInterceptorService } from '../services/sheet-interceptor/sheet-interceptor.service';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* calculates the selection based on the merged cell type
|
package/lib/types/index.d.ts
CHANGED
|
@@ -102,13 +102,15 @@ export { getInsertRangeMutations, getRemoveRangeMutations } from './commands/uti
|
|
|
102
102
|
export { handleInsertRangeMutation } from './commands/utils/handle-range-mutation';
|
|
103
103
|
export { type ISheetCommandSharedParams } from './commands/utils/interface';
|
|
104
104
|
export { getAddMergeMutationRangeByType } from './controllers/merge-cell.controller';
|
|
105
|
-
export { enUS, zhCN } from './locale';
|
|
105
|
+
export { enUS, zhCN, ruRU } from './locale';
|
|
106
106
|
export { NumfmtService } from './services/numfmt/numfmt.service';
|
|
107
107
|
export type { INumfmtItem, INumfmtItemWithCache } from './services/numfmt/type';
|
|
108
108
|
export { INumfmtService } from './services/numfmt/type';
|
|
109
109
|
export { RefRangeService } from './services/ref-range/ref-range.service';
|
|
110
110
|
export type { EffectRefRangeParams, IOperator } from './services/ref-range/type';
|
|
111
111
|
export { EffectRefRangId, OperatorType } from './services/ref-range/type';
|
|
112
|
+
export { type ISetWorkbookNameCommandParams, SetWorkbookNameCommand } from './commands/commands/set-workbook-name.command';
|
|
113
|
+
export { type ISetWorkbookNameMutationParams, SetWorkbookNameMutation } from './commands/mutations/set-workbook-name.mutation';
|
|
112
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';
|
|
113
115
|
export { INTERCEPTOR_POINT } from './services/sheet-interceptor/interceptor-const';
|
|
114
116
|
export { SheetInterceptorService } from './services/sheet-interceptor/sheet-interceptor.service';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Dependency } from '@wendellhu/redi';
|
|
2
1
|
import { IWorkbookData, Univer } from '@univerjs/core';
|
|
2
|
+
import { Dependency } from '@wendellhu/redi';
|
|
3
3
|
|
|
4
4
|
export declare const TEST_WORKBOOK_DATA_DEMO: IWorkbookData;
|
|
5
5
|
export declare function createTestBase(workbookData?: IWorkbookData, dependencies?: Dependency[]): {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { INumfmtService } from './type';
|
|
2
1
|
import { IRange, Disposable, ILogService, IResourceManagerService, IUniverInstanceService } from '@univerjs/core';
|
|
2
|
+
import { INumfmtService } from './type';
|
|
3
3
|
|
|
4
4
|
export declare class NumfmtService extends Disposable implements INumfmtService {
|
|
5
5
|
private _resourceManagerService;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Dependency } from '@wendellhu/redi';
|
|
2
1
|
import { IWorkbookData, Univer } from '@univerjs/core';
|
|
2
|
+
import { Dependency } from '@wendellhu/redi';
|
|
3
3
|
|
|
4
4
|
export declare const TEST_WORKBOOK_DATA_DEMO: IWorkbookData;
|
|
5
5
|
export declare function createTestBase(workbookData?: IWorkbookData, dependencies?: Dependency[]): {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { EffectRefRangeParams } from './type';
|
|
2
|
-
import { SheetInterceptorService } from '../sheet-interceptor/sheet-interceptor.service';
|
|
3
|
-
import { SelectionManagerService } from '../selection-manager.service';
|
|
4
|
-
import { IDisposable } from '@wendellhu/redi';
|
|
5
1
|
import { IMutationInfo, IRange, Nullable, Disposable, ICommandService, InterceptorManager, IUniverInstanceService } from '@univerjs/core';
|
|
2
|
+
import { IDisposable } from '@wendellhu/redi';
|
|
3
|
+
import { SelectionManagerService } from '../selection-manager.service';
|
|
4
|
+
import { SheetInterceptorService } from '../sheet-interceptor/sheet-interceptor.service';
|
|
5
|
+
import { EffectRefRangeParams } from './type';
|
|
6
6
|
|
|
7
7
|
type RefRangCallback = (params: EffectRefRangeParams) => {
|
|
8
8
|
redos: IMutationInfo[];
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { IRemoveRowColCommandParams, RemoveColCommandId, RemoveRowCommandId } from '../../commands/commands/remove-row-col.command';
|
|
2
|
-
import { IMoveColsCommandParams, IMoveRowsCommandParams, MoveColsCommandId, MoveRowsCommandId } from '../../commands/commands/move-rows-cols.command';
|
|
3
|
-
import { IMoveRangeCommandParams, MoveRangeCommandId } from '../../commands/commands/move-range.command';
|
|
4
|
-
import { IInsertColCommandParams, IInsertRowCommandParams, InsertColCommandId, InsertRowCommandId } from '../../commands/commands/insert-row-col.command';
|
|
5
|
-
import { InsertRangeMoveRightCommandParams, InsertRangeMoveRightCommandId } from '../../commands/commands/insert-range-move-right.command';
|
|
6
|
-
import { InsertRangeMoveDownCommandParams, InsertRangeMoveDownCommandId } from '../../commands/commands/insert-range-move-down.command';
|
|
7
|
-
import { IDeleteRangeMoveUpCommandParams, DeleteRangeMoveUpCommandId } from '../../commands/commands/delete-range-move-up.command';
|
|
8
|
-
import { IDeleteRangeMoveLeftCommandParams, DeleteRangeMoveLeftCommandId } from '../../commands/commands/delete-range-move-left.command';
|
|
9
1
|
import { ICommandInfo, IRange } from '@univerjs/core';
|
|
2
|
+
import { IDeleteRangeMoveLeftCommandParams, DeleteRangeMoveLeftCommandId } from '../../commands/commands/delete-range-move-left.command';
|
|
3
|
+
import { IDeleteRangeMoveUpCommandParams, DeleteRangeMoveUpCommandId } from '../../commands/commands/delete-range-move-up.command';
|
|
4
|
+
import { InsertRangeMoveDownCommandParams, InsertRangeMoveDownCommandId } from '../../commands/commands/insert-range-move-down.command';
|
|
5
|
+
import { InsertRangeMoveRightCommandParams, InsertRangeMoveRightCommandId } from '../../commands/commands/insert-range-move-right.command';
|
|
6
|
+
import { IInsertColCommandParams, IInsertRowCommandParams, InsertColCommandId, InsertRowCommandId } from '../../commands/commands/insert-row-col.command';
|
|
7
|
+
import { IMoveRangeCommandParams, MoveRangeCommandId } from '../../commands/commands/move-range.command';
|
|
8
|
+
import { IMoveColsCommandParams, IMoveRowsCommandParams, MoveColsCommandId, MoveRowsCommandId } from '../../commands/commands/move-rows-cols.command';
|
|
9
|
+
import { IRemoveRowColCommandParams, RemoveColCommandId, RemoveRowCommandId } from '../../commands/commands/remove-row-col.command';
|
|
10
10
|
|
|
11
11
|
export type IMoveRowsCommand = ICommandInfo<IMoveRowsCommandParams> & {
|
|
12
12
|
id: typeof MoveRowsCommandId;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { IDeleteRangeMoveLeftCommand, IDeleteRangeMoveUpCommand, IInsertColCommand, IInsertRangeMoveDownCommand, IInsertRangeMoveRightCommand, IInsertRowCommand, IMoveColsCommand, IMoveRangeCommand, IMoveRowsCommand, IOperator, IRemoveRowColCommand } from './type';
|
|
2
|
-
import { ISheetCommandSharedParams } from '../../commands/utils/interface';
|
|
3
|
-
import { IMoveRangeMutationParams } from '../../commands/mutations/move-range.mutation';
|
|
4
|
-
import { IInsertColMutationParams, IInsertRowMutationParams, IRemoveColMutationParams, IRemoveRowsMutationParams, IRemoveSheetMutationParams } from '../../basics';
|
|
5
|
-
import { IMoveColumnsMutationParams, IMoveRowsMutationParams } from '../../commands/mutations/move-rows-cols.mutation';
|
|
6
1
|
import { ICommandInfo, IMutationInfo, IRange, Nullable, RANGE_TYPE } from '@univerjs/core';
|
|
2
|
+
import { IMoveColumnsMutationParams, IMoveRowsMutationParams } from '../../commands/mutations/move-rows-cols.mutation';
|
|
3
|
+
import { IInsertColMutationParams, IInsertRowMutationParams, IRemoveColMutationParams, IRemoveRowsMutationParams, IRemoveSheetMutationParams } from '../../basics';
|
|
4
|
+
import { IMoveRangeMutationParams } from '../../commands/mutations/move-range.mutation';
|
|
5
|
+
import { ISheetCommandSharedParams } from '../../commands/utils/interface';
|
|
6
|
+
import { IDeleteRangeMoveLeftCommand, IDeleteRangeMoveUpCommand, IInsertColCommand, IInsertRangeMoveDownCommand, IInsertRangeMoveRightCommand, IInsertRowCommand, IMoveColsCommand, IMoveRangeCommand, IMoveRowsCommand, IOperator, IRemoveRowColCommand } from './type';
|
|
7
7
|
|
|
8
8
|
export declare const handleRangeTypeInput: (range: IRange) => {
|
|
9
9
|
startColumn: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ISelectionStyle, ISelectionWithStyle } from '../basics/selection';
|
|
2
|
-
import { IDisposable } from '@wendellhu/redi';
|
|
3
1
|
import { IRange, ISelectionCell, Nullable, ThemeService } from '@univerjs/core';
|
|
2
|
+
import { IDisposable } from '@wendellhu/redi';
|
|
3
|
+
import { ISelectionStyle, ISelectionWithStyle } from '../basics/selection';
|
|
4
4
|
|
|
5
5
|
export declare const NORMAL_SELECTION_PLUGIN_NAME = "normalSelectionPluginName";
|
|
6
6
|
export interface ISelectionManagerSearchParam {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Dependency } from '@wendellhu/redi';
|
|
2
1
|
import { IWorkbookData, Univer } from '@univerjs/core';
|
|
2
|
+
import { Dependency } from '@wendellhu/redi';
|
|
3
3
|
|
|
4
4
|
export declare function createCoreTestBed(workbookData?: IWorkbookData, dependencies?: Dependency[]): {
|
|
5
5
|
univer: Univer;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ISheetLocation, ISheetRowLocation } from './utils/interceptor';
|
|
2
1
|
import { ICellDataForSheetInterceptor } from '@univerjs/core';
|
|
2
|
+
import { ISheetLocation, ISheetRowLocation } from './utils/interceptor';
|
|
3
3
|
|
|
4
4
|
export declare const INTERCEPTOR_POINT: {
|
|
5
5
|
CELL_CONTENT: import('@univerjs/core').IInterceptor<ICellDataForSheetInterceptor, ISheetLocation>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IDisposable } from '@wendellhu/redi';
|
|
2
1
|
import { ICommandInfo, IInterceptor, IUndoRedoCommandInfosByInterceptor, Disposable, IUniverInstanceService } from '@univerjs/core';
|
|
2
|
+
import { IDisposable } from '@wendellhu/redi';
|
|
3
3
|
|
|
4
4
|
export interface ICommandInterceptor {
|
|
5
5
|
priority?: number;
|