@univerjs/sheets 0.1.4 → 0.1.6

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.
Files changed (109) hide show
  1. package/lib/cjs/index.js +2 -2
  2. package/lib/es/index.js +2660 -2347
  3. package/lib/types/basics/const/default-spreadsheet-plugin-data.d.ts +2 -16
  4. package/lib/types/basics/interfaces/i-ruler-manager.d.ts +2 -16
  5. package/lib/types/basics/interfaces/mutation-interface.d.ts +2 -16
  6. package/lib/types/basics/interfaces/selection-config.d.ts +2 -16
  7. package/lib/types/basics/interfaces/spreadsheet-config.d.ts +2 -16
  8. package/lib/types/basics/rangeMerge.d.ts +2 -17
  9. package/lib/types/basics/selection.d.ts +2 -16
  10. package/lib/types/basics/sheet-header.d.ts +2 -16
  11. package/lib/types/commands/commands/__tests__/create-command-test-bed.d.ts +3 -19
  12. package/lib/types/commands/commands/__tests__/remove-rows-cols.command.spec.d.ts +16 -0
  13. package/lib/types/commands/commands/add-worksheet-merge.command.d.ts +2 -17
  14. package/lib/types/commands/commands/clear-selection-all.command.d.ts +2 -16
  15. package/lib/types/commands/commands/clear-selection-content.command.d.ts +2 -16
  16. package/lib/types/commands/commands/clear-selection-format.command.d.ts +2 -16
  17. package/lib/types/commands/commands/copy-to-worksheet.command.d.ts +2 -16
  18. package/lib/types/commands/commands/copy-worksheet.command.d.ts +2 -16
  19. package/lib/types/commands/commands/delete-range-move-left.command.d.ts +2 -16
  20. package/lib/types/commands/commands/delete-range-move-up.command.d.ts +2 -16
  21. package/lib/types/commands/commands/insert-defined-name.command.d.ts +6 -0
  22. package/lib/types/commands/commands/insert-range-move-down.command.d.ts +2 -16
  23. package/lib/types/commands/commands/insert-range-move-right.command.d.ts +2 -16
  24. package/lib/types/commands/commands/insert-row-col.command.d.ts +2 -17
  25. package/lib/types/commands/commands/insert-sheet.command.d.ts +2 -16
  26. package/lib/types/commands/commands/move-range.command.d.ts +3 -17
  27. package/lib/types/commands/commands/move-rows-cols.command.d.ts +2 -16
  28. package/lib/types/commands/commands/remove-defined-name.command.d.ts +6 -0
  29. package/lib/types/commands/commands/remove-row-col.command.d.ts +2 -16
  30. package/lib/types/commands/commands/remove-sheet.command.d.ts +2 -16
  31. package/lib/types/commands/commands/remove-worksheet-merge.command.d.ts +2 -16
  32. package/lib/types/commands/commands/set-border-command.d.ts +3 -18
  33. package/lib/types/commands/commands/set-col-visible.command.d.ts +2 -16
  34. package/lib/types/commands/commands/set-defined-name.command.d.ts +12 -0
  35. package/lib/types/commands/commands/set-frozen-cancel.command.d.ts +2 -16
  36. package/lib/types/commands/commands/set-frozen.command.d.ts +2 -16
  37. package/lib/types/commands/commands/set-hide-gridlines.command.d.ts +2 -17
  38. package/lib/types/commands/commands/set-range-values.command.d.ts +3 -17
  39. package/lib/types/commands/commands/set-row-visible.command.d.ts +2 -16
  40. package/lib/types/commands/commands/set-style.command.d.ts +4 -18
  41. package/lib/types/commands/commands/set-tab-color.command.d.ts +2 -16
  42. package/lib/types/commands/commands/set-worksheet-activate.command.d.ts +2 -16
  43. package/lib/types/commands/commands/set-worksheet-col-width.command.d.ts +2 -16
  44. package/lib/types/commands/commands/set-worksheet-hide.command.d.ts +2 -16
  45. package/lib/types/commands/commands/set-worksheet-name.command.d.ts +2 -16
  46. package/lib/types/commands/commands/set-worksheet-order.command.d.ts +2 -16
  47. package/lib/types/commands/commands/set-worksheet-right-to-left.command.d.ts +2 -17
  48. package/lib/types/commands/commands/set-worksheet-row-height.command.d.ts +2 -16
  49. package/lib/types/commands/commands/set-worksheet-show.command.d.ts +2 -16
  50. package/lib/types/commands/commands/utils/merged-cell-util.d.ts +2 -16
  51. package/lib/types/commands/commands/utils/selection-utils.d.ts +4 -17
  52. package/lib/types/commands/mutations/__tests__/create-command-test-bed.d.ts +3 -19
  53. package/lib/types/commands/mutations/__tests__/set-range-values.mutation.spec.d.ts +16 -0
  54. package/lib/types/commands/mutations/add-worksheet-merge.mutation.d.ts +4 -18
  55. package/lib/types/commands/mutations/empty.mutation.d.ts +2 -16
  56. package/lib/types/commands/mutations/insert-row-col.mutation.d.ts +4 -18
  57. package/lib/types/commands/mutations/insert-sheet.mutation.d.ts +4 -18
  58. package/lib/types/commands/mutations/move-range.mutation.d.ts +2 -16
  59. package/lib/types/commands/mutations/move-rows-cols.mutation.d.ts +3 -17
  60. package/lib/types/commands/mutations/numfmt-mutation.d.ts +4 -18
  61. package/lib/types/commands/mutations/remove-row-col.mutation.d.ts +4 -18
  62. package/lib/types/commands/mutations/remove-sheet.mutation.d.ts +4 -18
  63. package/lib/types/commands/mutations/remove-worksheet-merge.mutation.d.ts +4 -18
  64. package/lib/types/commands/mutations/set-col-visible.mutation.d.ts +3 -17
  65. package/lib/types/commands/mutations/set-frozen.mutation.d.ts +3 -17
  66. package/lib/types/commands/mutations/set-hide-gridlines.mutatiom.d.ts +3 -17
  67. package/lib/types/commands/mutations/set-range-values.mutation.d.ts +18 -17
  68. package/lib/types/commands/mutations/set-row-visible.mutation.d.ts +3 -17
  69. package/lib/types/commands/mutations/set-tab-color.mutation.d.ts +3 -17
  70. package/lib/types/commands/mutations/set-worksheet-col-width.mutation.d.ts +3 -17
  71. package/lib/types/commands/mutations/set-worksheet-config.mutation.d.ts +3 -17
  72. package/lib/types/commands/mutations/set-worksheet-hide.mutation.d.ts +3 -17
  73. package/lib/types/commands/mutations/set-worksheet-name.mutation.d.ts +3 -17
  74. package/lib/types/commands/mutations/set-worksheet-order.mutation.d.ts +5 -18
  75. package/lib/types/commands/mutations/set-worksheet-right-to-left.mutation.d.ts +3 -17
  76. package/lib/types/commands/mutations/set-worksheet-row-height.mutation.d.ts +4 -18
  77. package/lib/types/commands/operations/scroll-to-cell.operation.d.ts +3 -0
  78. package/lib/types/commands/operations/selection.operation.d.ts +4 -18
  79. package/lib/types/commands/operations/set-worksheet-active.operation.d.ts +2 -16
  80. package/lib/types/commands/utils/get-target.d.ts +2 -16
  81. package/lib/types/commands/utils/handle-merge-operation.d.ts +5 -19
  82. package/lib/types/commands/utils/handle-range-mutation.d.ts +4 -19
  83. package/lib/types/controllers/__tests__/util.d.ts +10 -25
  84. package/lib/types/controllers/basic-worksheet.controller.d.ts +3 -18
  85. package/lib/types/controllers/calculate-result-apply.controller.d.ts +1 -15
  86. package/lib/types/controllers/defined-name-data.controller.d.ts +12 -0
  87. package/lib/types/controllers/feature-calculation.controller.d.ts +2 -16
  88. package/lib/types/controllers/merge-cell.controller.d.ts +20 -20
  89. package/lib/types/index.d.ts +6 -2
  90. package/lib/types/locale/en-US.d.ts +2 -16
  91. package/lib/types/services/__tests__/util.d.ts +10 -25
  92. package/lib/types/services/border-style-manager.service.d.ts +3 -17
  93. package/lib/types/services/numfmt/numfmt.service.d.ts +5 -19
  94. package/lib/types/services/numfmt/type.d.ts +5 -18
  95. package/lib/types/services/permission/permission-point.d.ts +1 -15
  96. package/lib/types/services/permission/sheet-permission.service.d.ts +3 -18
  97. package/lib/types/services/permission/tool.d.ts +2 -16
  98. package/lib/types/services/ref-range/__tests__/util.d.ts +10 -25
  99. package/lib/types/services/ref-range/ref-range.service.d.ts +9 -22
  100. package/lib/types/services/ref-range/type.d.ts +10 -32
  101. package/lib/types/services/ref-range/util.d.ts +10 -22
  102. package/lib/types/services/selection-manager.service.d.ts +7 -21
  103. package/lib/types/services/sheet-interceptor/__tests__/create-core-test-bed.d.ts +10 -25
  104. package/lib/types/services/sheet-interceptor/interceptor-const.d.ts +5 -19
  105. package/lib/types/services/sheet-interceptor/sheet-interceptor.service.d.ts +6 -21
  106. package/lib/types/services/sheet-interceptor/utils/interceptor.d.ts +2 -16
  107. package/lib/types/sheets-plugin.d.ts +2 -16
  108. package/lib/umd/index.js +2 -2
  109. package/package.json +10 -11
@@ -1,30 +1,15 @@
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
- import type { IWorkbookData } from '@univerjs/core';
17
- import { Univer } from '@univerjs/core';
18
- import type { Dependency } from '@wendellhu/redi';
1
+ import { Dependency } from '@wendellhu/redi';
2
+ import { IWorkbookData, Univer } from '@univerjs/core';
3
+
19
4
  export declare function createTestBase(workbookConfig?: IWorkbookData, dependencies?: Dependency[]): {
20
5
  univer: Univer;
21
6
  get: {
22
- <T>(id: import("@wendellhu/redi").DependencyIdentifier<T>, lookUp?: import("@wendellhu/redi").LookUp | undefined): T;
23
- <T_1>(id: import("@wendellhu/redi").DependencyIdentifier<T_1>, quantity: import("@wendellhu/redi").Quantity.MANY, lookUp?: import("@wendellhu/redi").LookUp | undefined): T_1[];
24
- <T_2>(id: import("@wendellhu/redi").DependencyIdentifier<T_2>, quantity: import("@wendellhu/redi").Quantity.OPTIONAL, lookUp?: import("@wendellhu/redi").LookUp | undefined): T_2 | null;
25
- <T_3>(id: import("@wendellhu/redi").DependencyIdentifier<T_3>, quantity: import("@wendellhu/redi").Quantity.REQUIRED, lookUp?: import("@wendellhu/redi").LookUp | undefined): T_3;
26
- <T_4>(id: import("@wendellhu/redi").DependencyIdentifier<T_4>, quantity?: import("@wendellhu/redi").Quantity | undefined, lookUp?: import("@wendellhu/redi").LookUp | undefined): T_4 | T_4[] | null;
27
- <T_5>(id: import("@wendellhu/redi").DependencyIdentifier<T_5>, quantityOrLookup?: import("@wendellhu/redi").Quantity | import("@wendellhu/redi").LookUp | undefined, lookUp?: import("@wendellhu/redi").LookUp | undefined): T_5 | T_5[] | null;
7
+ <T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, lookUp?: import('@wendellhu/redi').LookUp | undefined): T;
8
+ <T_1>(id: import('@wendellhu/redi').DependencyIdentifier<T_1>, quantity: import("@wendellhu/redi").Quantity.MANY, lookUp?: import('@wendellhu/redi').LookUp | undefined): T_1[];
9
+ <T_2>(id: import('@wendellhu/redi').DependencyIdentifier<T_2>, quantity: import("@wendellhu/redi").Quantity.OPTIONAL, lookUp?: import('@wendellhu/redi').LookUp | undefined): T_2 | null;
10
+ <T_3>(id: import('@wendellhu/redi').DependencyIdentifier<T_3>, quantity: import("@wendellhu/redi").Quantity.REQUIRED, lookUp?: import('@wendellhu/redi').LookUp | undefined): T_3;
11
+ <T_4>(id: import('@wendellhu/redi').DependencyIdentifier<T_4>, quantity?: import('@wendellhu/redi').Quantity | undefined, lookUp?: import('@wendellhu/redi').LookUp | undefined): T_4 | T_4[] | null;
12
+ <T_5>(id: import('@wendellhu/redi').DependencyIdentifier<T_5>, quantityOrLookup?: import('@wendellhu/redi').Quantity | import('@wendellhu/redi').LookUp | undefined, lookUp?: import('@wendellhu/redi').LookUp | undefined): T_5 | T_5[] | null;
28
13
  };
29
- sheet: import("@univerjs/core").Workbook;
14
+ sheet: import('@univerjs/core').Workbook;
30
15
  };
@@ -1,21 +1,6 @@
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
- import type { IStyleData } from '@univerjs/core';
17
- import { Disposable, ICommandService, IConfigService } from '@univerjs/core';
18
- import type { IDisposable } from '@wendellhu/redi';
1
+ import { IDisposable } from '@wendellhu/redi';
2
+ import { IStyleData, Disposable, ICommandService, IConfigService } from '@univerjs/core';
3
+
19
4
  export interface IStyleTypeValue<T> {
20
5
  type: keyof IStyleData;
21
6
  value: T | T[][];
@@ -1,19 +1,5 @@
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
1
  import { Disposable, ICommandService } from '@univerjs/core';
2
+
17
3
  export declare class CalculateResultApplyController extends Disposable {
18
4
  private readonly _commandService;
19
5
  constructor(_commandService: ICommandService);
@@ -0,0 +1,12 @@
1
+ import { IDefinedNamesService } from '@univerjs/engine-formula';
2
+ import { Disposable, ICommandService, IResourceManagerService, IUniverInstanceService } from '@univerjs/core';
3
+
4
+ export declare class DefinedNameDataController extends Disposable {
5
+ private readonly _commandService;
6
+ private readonly _univerInstanceService;
7
+ private readonly _definedNamesService;
8
+ private _resourceManagerService;
9
+ constructor(_commandService: ICommandService, _univerInstanceService: IUniverInstanceService, _definedNamesService: IDefinedNamesService, _resourceManagerService: IResourceManagerService);
10
+ private _initialize;
11
+ private _initSnapshot;
12
+ }
@@ -1,20 +1,6 @@
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
- import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
17
1
  import { FormulaDataModel, IFeatureCalculationManagerService } from '@univerjs/engine-formula';
2
+ import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
3
+
18
4
  export declare class FeatureCalculationController extends Disposable {
19
5
  private readonly _commandService;
20
6
  private readonly _featureCalculationManagerService;
@@ -1,24 +1,11 @@
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
- import type { IRange } from '@univerjs/core';
17
- import { Dimension, Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
18
- import { Injector } from '@wendellhu/redi';
19
- import { RefRangeService } from '../services/ref-range/ref-range.service';
20
- import { SelectionManagerService } from '../services/selection-manager.service';
21
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
+ import { IRange, Dimension, Disposable, DisposableCollection, ICommandService, IUniverInstanceService } from '@univerjs/core';
8
+
22
9
  /**
23
10
  * calculates the selection based on the merged cell type
24
11
  * @param {IRange[]} selection
@@ -33,8 +20,19 @@ export declare class MergeCellController extends Disposable {
33
20
  private _injector;
34
21
  private _sheetInterceptorService;
35
22
  private _selectionManagerService;
23
+ disposableCollection: DisposableCollection;
36
24
  constructor(_commandService: ICommandService, _refRangeService: RefRangeService, _univerInstanceService: IUniverInstanceService, _injector: Injector, _sheetInterceptorService: SheetInterceptorService, _selectionManagerService: SelectionManagerService);
37
25
  private _initCommandInterceptor;
26
+ refRangeHandle(config: EffectRefRangeParams, unitId: string, subUnitId: string): {
27
+ redos: {
28
+ id: string;
29
+ params: IRemoveWorksheetMergeMutationParams;
30
+ }[];
31
+ undos: {
32
+ id: string;
33
+ params: IRemoveWorksheetMergeMutationParams;
34
+ }[];
35
+ };
38
36
  private _onRefRangeChange;
39
37
  private _handleMoveRowsCommand;
40
38
  private _handleMoveColsCommand;
@@ -47,5 +45,7 @@ export declare class MergeCellController extends Disposable {
47
45
  private _handleInsertRangeMoveDownCommand;
48
46
  private _handleDeleteRangeMoveUpCommand;
49
47
  private _handleDeleteRangeMoveLeftCommand;
48
+ private _checkIsMergeCell;
50
49
  private _handleNull;
50
+ private _commandExecutedListener;
51
51
  }
@@ -17,7 +17,7 @@ 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
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';
20
- export { alignToMergedCellsBorders, getCellAtRowCol } from './commands/commands/utils/selection-utils';
20
+ export { alignToMergedCellsBorders, getCellAtRowCol, setEndForRange } from './commands/commands/utils/selection-utils';
21
21
  export { MAX_CELL_PER_SHEET_KEY } from './controllers/config/config';
22
22
  export { BorderStyleManagerService, type IBorderInfo } from './services/border-style-manager.service';
23
23
  export { getCurrentSheetDisabled$, SheetEditablePermission, SheetPermissionService } from './services/permission';
@@ -108,9 +108,13 @@ export { INumfmtService } from './services/numfmt/type';
108
108
  export { RefRangeService } from './services/ref-range/ref-range.service';
109
109
  export type { EffectRefRangeParams, IOperator } from './services/ref-range/type';
110
110
  export { EffectRefRangId, OperatorType } from './services/ref-range/type';
111
- export { handleBaseInsertRange, handleBaseMoveRowsCols, handleBaseRemoveRange, handleDeleteRangeMoveLeft, handleDeleteRangeMoveUp, handleInsertCol, handleInsertRangeMoveDown, handleInsertRangeMoveRight, handleInsertRow, handleIRemoveCol, handleIRemoveRow, handleMoveCols, handleMoveRange, handleMoveRows, rotateRange, runRefRangeMutations, handleDefaultRangeChangeWithEffectRefCommands, } from './services/ref-range/util';
111
+ export { handleBaseInsertRange, handleBaseMoveRowsCols, handleBaseRemoveRange, handleDeleteRangeMoveLeft, handleDeleteRangeMoveUp, handleInsertCol, handleInsertRangeMoveDown, handleInsertRangeMoveRight, handleInsertRow, handleIRemoveCol, handleIRemoveRow, handleMoveCols, handleMoveRange, handleMoveRows, rotateRange, runRefRangeMutations, handleDefaultRangeChangeWithEffectRefCommands, handleOtherDefaultRangeChangeWithEffectRefCommands, } from './services/ref-range/util';
112
112
  export { INTERCEPTOR_POINT } from './services/sheet-interceptor/interceptor-const';
113
113
  export { SheetInterceptorService } from './services/sheet-interceptor/sheet-interceptor.service';
114
114
  export type { ISheetLocation } from './services/sheet-interceptor/utils/interceptor';
115
115
  export { MergeCellController } from './controllers/merge-cell.controller';
116
116
  export { AddMergeRedoSelectionsOperationFactory, AddMergeUndoSelectionsOperationFactory } from './commands/utils/handle-merge-operation';
117
+ export { InsertDefinedNameCommand } from './commands/commands/insert-defined-name.command';
118
+ export { RemoveDefinedNameCommand } from './commands/commands/remove-defined-name.command';
119
+ export { SetDefinedNameCommand, type ISetDefinedNameCommandParams } from './commands/commands/set-defined-name.command';
120
+ export { ScrollToCellOperation } from './commands/operations/scroll-to-cell.operation';
@@ -1,18 +1,4 @@
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
- import type zhCN from './zh-CN';
1
+ import { default as zhCN } from './zh-CN';
2
+
17
3
  declare const locale: typeof zhCN;
18
4
  export default locale;
@@ -1,31 +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
- import type { IWorkbookData } from '@univerjs/core';
17
- import { Univer } from '@univerjs/core';
18
- import type { Dependency } from '@wendellhu/redi';
1
+ import { Dependency } from '@wendellhu/redi';
2
+ import { IWorkbookData, Univer } from '@univerjs/core';
3
+
19
4
  export declare const TEST_WORKBOOK_DATA_DEMO: IWorkbookData;
20
5
  export declare function createTestBase(workbookConfig?: IWorkbookData, dependencies?: Dependency[]): {
21
6
  univer: Univer;
22
7
  get: {
23
- <T>(id: import("@wendellhu/redi").DependencyIdentifier<T>, lookUp?: import("@wendellhu/redi").LookUp | undefined): T;
24
- <T_1>(id: import("@wendellhu/redi").DependencyIdentifier<T_1>, quantity: import("@wendellhu/redi").Quantity.MANY, lookUp?: import("@wendellhu/redi").LookUp | undefined): T_1[];
25
- <T_2>(id: import("@wendellhu/redi").DependencyIdentifier<T_2>, quantity: import("@wendellhu/redi").Quantity.OPTIONAL, lookUp?: import("@wendellhu/redi").LookUp | undefined): T_2 | null;
26
- <T_3>(id: import("@wendellhu/redi").DependencyIdentifier<T_3>, quantity: import("@wendellhu/redi").Quantity.REQUIRED, lookUp?: import("@wendellhu/redi").LookUp | undefined): T_3;
27
- <T_4>(id: import("@wendellhu/redi").DependencyIdentifier<T_4>, quantity?: import("@wendellhu/redi").Quantity | undefined, lookUp?: import("@wendellhu/redi").LookUp | undefined): T_4 | T_4[] | null;
28
- <T_5>(id: import("@wendellhu/redi").DependencyIdentifier<T_5>, quantityOrLookup?: import("@wendellhu/redi").Quantity | import("@wendellhu/redi").LookUp | undefined, lookUp?: import("@wendellhu/redi").LookUp | undefined): T_5 | T_5[] | null;
8
+ <T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, lookUp?: import('@wendellhu/redi').LookUp | undefined): T;
9
+ <T_1>(id: import('@wendellhu/redi').DependencyIdentifier<T_1>, quantity: import("@wendellhu/redi").Quantity.MANY, lookUp?: import('@wendellhu/redi').LookUp | undefined): T_1[];
10
+ <T_2>(id: import('@wendellhu/redi').DependencyIdentifier<T_2>, quantity: import("@wendellhu/redi").Quantity.OPTIONAL, lookUp?: import('@wendellhu/redi').LookUp | undefined): T_2 | null;
11
+ <T_3>(id: import('@wendellhu/redi').DependencyIdentifier<T_3>, quantity: import("@wendellhu/redi").Quantity.REQUIRED, lookUp?: import('@wendellhu/redi').LookUp | undefined): T_3;
12
+ <T_4>(id: import('@wendellhu/redi').DependencyIdentifier<T_4>, quantity?: import('@wendellhu/redi').Quantity | undefined, lookUp?: import('@wendellhu/redi').LookUp | undefined): T_4 | T_4[] | null;
13
+ <T_5>(id: import('@wendellhu/redi').DependencyIdentifier<T_5>, quantityOrLookup?: import('@wendellhu/redi').Quantity | import('@wendellhu/redi').LookUp | undefined, lookUp?: import('@wendellhu/redi').LookUp | undefined): T_5 | T_5[] | null;
29
14
  };
30
- sheet: import("@univerjs/core").Workbook;
15
+ sheet: import('@univerjs/core').Workbook;
31
16
  };
@@ -1,20 +1,6 @@
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
- */
1
+ import { IDisposable } from '@wendellhu/redi';
16
2
  import { BorderStyleTypes, BorderType } from '@univerjs/core';
17
- import type { IDisposable } from '@wendellhu/redi';
3
+
18
4
  export interface IBorderInfo {
19
5
  type: BorderType;
20
6
  color: string;
@@ -27,7 +13,7 @@ export interface IBorderInfo {
27
13
  export declare class BorderStyleManagerService implements IDisposable {
28
14
  private readonly _borderInfo;
29
15
  private readonly _borderInfo$;
30
- readonly borderInfo$: import("rxjs").Observable<IBorderInfo>;
16
+ readonly borderInfo$: import('rxjs').Observable<IBorderInfo>;
31
17
  dispose(): void;
32
18
  setType(type: BorderType): void;
33
19
  setColor(color: string): void;
@@ -1,21 +1,6 @@
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
- import type { IRange } from '@univerjs/core';
17
- import { Disposable, ICommandService, ILogService, IResourceManagerService, IUniverInstanceService, ObjectMatrix, RefAlias } from '@univerjs/core';
18
- import type { FormatType, INumfmtItem, INumfmtService, IRefItem } from './type';
1
+ import { FormatType, INumfmtItem, INumfmtService, IRefItem } from './type';
2
+ import { IRange, Disposable, ICommandService, ILogService, IResourceManagerService, IUniverInstanceService, ObjectMatrix, RefAlias } from '@univerjs/core';
3
+
19
4
  export declare class NumfmtService extends Disposable implements INumfmtService {
20
5
  private _commandService;
21
6
  private _resourceManagerService;
@@ -29,7 +14,7 @@ export declare class NumfmtService extends Disposable implements INumfmtService
29
14
  private _numfmtModel;
30
15
  private _refAliasModel;
31
16
  private _modelReplace$;
32
- modelReplace$: import("rxjs").Observable<string>;
17
+ modelReplace$: import('rxjs').Observable<string>;
33
18
  constructor(_commandService: ICommandService, _resourceManagerService: IResourceManagerService, _univerInstanceService: IUniverInstanceService, _logService: ILogService);
34
19
  private _initModel;
35
20
  private _toJson;
@@ -48,4 +33,5 @@ export declare class NumfmtService extends Disposable implements INumfmtService
48
33
  }>): void;
49
34
  getModel(unitId: string, subUnitId: string): ObjectMatrix<INumfmtItem> | undefined;
50
35
  getRefModel(unitId: string): RefAlias<IRefItem, "i" | "pattern"> | undefined;
36
+ serialTimeToTimestamp(serialValue: number, is1900?: boolean): number;
51
37
  }
@@ -1,20 +1,6 @@
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
- import type { ICellData, IObjectMatrixPrimitiveType, IRange, Nullable, ObjectMatrix, RefAlias } from '@univerjs/core';
17
- import type { Observable } from 'rxjs';
1
+ import { Observable } from 'rxjs';
2
+ import { ICellData, IObjectMatrixPrimitiveType, IRange, Nullable, ObjectMatrix, RefAlias } from '@univerjs/core';
3
+
18
4
  export type INumfmtItem = {
19
5
  i: string;
20
6
  };
@@ -43,9 +29,10 @@ export interface INumfmtService {
43
29
  deleteValues(unitId: string, subUnitId: string, values: IRange[]): void;
44
30
  getRefModel(unitId: string): Nullable<RefAlias<IRefItem, 'i' | 'pattern'>>;
45
31
  modelReplace$: Observable<string>;
32
+ serialTimeToTimestamp: (v: number, is1900?: boolean) => number;
46
33
  }
47
34
  export interface ISnapshot {
48
35
  model: Record<string, IObjectMatrixPrimitiveType<INumfmtItem>>;
49
36
  refModel: IRefItem[];
50
37
  }
51
- export declare const INumfmtService: import("@wendellhu/redi").IdentifierDecorator<INumfmtService>;
38
+ export declare const INumfmtService: import('@wendellhu/redi').IdentifierDecorator<INumfmtService>;
@@ -1,19 +1,5 @@
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
1
  import { PermissionPoint } from '@univerjs/core';
2
+
17
3
  export declare class SheetEditablePermission extends PermissionPoint<boolean> {
18
4
  private _unitId;
19
5
  private _subUnitId;
@@ -1,21 +1,6 @@
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
- import type { PermissionService } from '@univerjs/core';
17
- import { Disposable, IUniverInstanceService } from '@univerjs/core';
18
1
  import { SheetInterceptorService } from '../sheet-interceptor/sheet-interceptor.service';
2
+ import { PermissionService, Disposable, IUniverInstanceService } from '@univerjs/core';
3
+
19
4
  export declare class SheetPermissionService extends Disposable {
20
5
  private _permissionService;
21
6
  private _univerInstanceService;
@@ -23,7 +8,7 @@ export declare class SheetPermissionService extends Disposable {
23
8
  constructor(_permissionService: PermissionService, _univerInstanceService: IUniverInstanceService, _sheetInterceptorService: SheetInterceptorService);
24
9
  private _init;
25
10
  private _interceptCommandPermission;
26
- getEditable$(unitId?: string, sheetId?: string): import("rxjs").Observable<{
11
+ getEditable$(unitId?: string, sheetId?: string): import('rxjs').Observable<{
27
12
  value: any;
28
13
  status: import("@univerjs/core").PermissionStatus;
29
14
  }>;
@@ -1,18 +1,4 @@
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
- import type { IAccessor } from '@wendellhu/redi';
17
1
  import { Observable } from 'rxjs';
2
+ import { IAccessor } from '@wendellhu/redi';
3
+
18
4
  export declare function getCurrentSheetDisabled$(accessor: IAccessor): Observable<boolean>;
@@ -1,31 +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
- import type { IWorkbookData } from '@univerjs/core';
17
- import { Univer } from '@univerjs/core';
18
- import type { Dependency } from '@wendellhu/redi';
1
+ import { Dependency } from '@wendellhu/redi';
2
+ import { IWorkbookData, Univer } from '@univerjs/core';
3
+
19
4
  export declare const TEST_WORKBOOK_DATA_DEMO: IWorkbookData;
20
5
  export declare function createTestBase(workbookConfig?: IWorkbookData, dependencies?: Dependency[]): {
21
6
  univer: Univer;
22
7
  get: {
23
- <T>(id: import("@wendellhu/redi").DependencyIdentifier<T>, lookUp?: import("@wendellhu/redi").LookUp | undefined): T;
24
- <T_1>(id: import("@wendellhu/redi").DependencyIdentifier<T_1>, quantity: import("@wendellhu/redi").Quantity.MANY, lookUp?: import("@wendellhu/redi").LookUp | undefined): T_1[];
25
- <T_2>(id: import("@wendellhu/redi").DependencyIdentifier<T_2>, quantity: import("@wendellhu/redi").Quantity.OPTIONAL, lookUp?: import("@wendellhu/redi").LookUp | undefined): T_2 | null;
26
- <T_3>(id: import("@wendellhu/redi").DependencyIdentifier<T_3>, quantity: import("@wendellhu/redi").Quantity.REQUIRED, lookUp?: import("@wendellhu/redi").LookUp | undefined): T_3;
27
- <T_4>(id: import("@wendellhu/redi").DependencyIdentifier<T_4>, quantity?: import("@wendellhu/redi").Quantity | undefined, lookUp?: import("@wendellhu/redi").LookUp | undefined): T_4 | T_4[] | null;
28
- <T_5>(id: import("@wendellhu/redi").DependencyIdentifier<T_5>, quantityOrLookup?: import("@wendellhu/redi").Quantity | import("@wendellhu/redi").LookUp | undefined, lookUp?: import("@wendellhu/redi").LookUp | undefined): T_5 | T_5[] | null;
8
+ <T>(id: import('@wendellhu/redi').DependencyIdentifier<T>, lookUp?: import('@wendellhu/redi').LookUp | undefined): T;
9
+ <T_1>(id: import('@wendellhu/redi').DependencyIdentifier<T_1>, quantity: import("@wendellhu/redi").Quantity.MANY, lookUp?: import('@wendellhu/redi').LookUp | undefined): T_1[];
10
+ <T_2>(id: import('@wendellhu/redi').DependencyIdentifier<T_2>, quantity: import("@wendellhu/redi").Quantity.OPTIONAL, lookUp?: import('@wendellhu/redi').LookUp | undefined): T_2 | null;
11
+ <T_3>(id: import('@wendellhu/redi').DependencyIdentifier<T_3>, quantity: import("@wendellhu/redi").Quantity.REQUIRED, lookUp?: import('@wendellhu/redi').LookUp | undefined): T_3;
12
+ <T_4>(id: import('@wendellhu/redi').DependencyIdentifier<T_4>, quantity?: import('@wendellhu/redi').Quantity | undefined, lookUp?: import('@wendellhu/redi').LookUp | undefined): T_4 | T_4[] | null;
13
+ <T_5>(id: import('@wendellhu/redi').DependencyIdentifier<T_5>, quantityOrLookup?: import('@wendellhu/redi').Quantity | import('@wendellhu/redi').LookUp | undefined, lookUp?: import('@wendellhu/redi').LookUp | undefined): T_5 | T_5[] | null;
29
14
  };
30
- sheet: import("@univerjs/core").Workbook;
15
+ sheet: import('@univerjs/core').Workbook;
31
16
  };
@@ -1,27 +1,14 @@
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
- import type { IMutationInfo, IRange } from '@univerjs/core';
17
- import { Disposable, InterceptorManager, IUniverInstanceService } from '@univerjs/core';
18
- import type { IDisposable } from '@wendellhu/redi';
19
- import { SelectionManagerService } from '../selection-manager.service';
1
+ import { EffectRefRangeParams } from './type';
20
2
  import { SheetInterceptorService } from '../sheet-interceptor/sheet-interceptor.service';
21
- import type { EffectRefRangeParams } from './type';
3
+ import { SelectionManagerService } from '../selection-manager.service';
4
+ import { IDisposable } from '@wendellhu/redi';
5
+ import { IMutationInfo, IRange, Disposable, InterceptorManager, IUniverInstanceService } from '@univerjs/core';
6
+
22
7
  type RefRangCallback = (params: EffectRefRangeParams) => {
23
8
  redos: IMutationInfo[];
24
9
  undos: IMutationInfo[];
10
+ preRedos?: IMutationInfo[];
11
+ preUndos?: IMutationInfo[];
25
12
  };
26
13
  /**
27
14
  * Collect side effects caused by ref range change
@@ -31,8 +18,8 @@ export declare class RefRangeService extends Disposable {
31
18
  private _univerInstanceService;
32
19
  private _selectionManagerService;
33
20
  interceptor: InterceptorManager<{
34
- MERGE_REDO: import("@univerjs/core").IInterceptor<IMutationInfo<object>[], null>;
35
- MERGE_UNDO: import("@univerjs/core").IInterceptor<IMutationInfo<object>[], null>;
21
+ MERGE_REDO: import('@univerjs/core').IInterceptor<IMutationInfo<object>[], null>;
22
+ MERGE_UNDO: import('@univerjs/core').IInterceptor<IMutationInfo<object>[], null>;
36
23
  }>;
37
24
  constructor(_sheetInterceptorService: SheetInterceptorService, _univerInstanceService: IUniverInstanceService, _selectionManagerService: SelectionManagerService);
38
25
  private _refRangeManagerMap;
@@ -1,35 +1,13 @@
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
- import type { ICommandInfo, IRange } from '@univerjs/core';
17
- import type { IDeleteRangeMoveLeftCommandParams } from '../../commands/commands/delete-range-move-left.command';
18
- import { DeleteRangeMoveLeftCommandId } from '../../commands/commands/delete-range-move-left.command';
19
- import type { IDeleteRangeMoveUpCommandParams } from '../../commands/commands/delete-range-move-up.command';
20
- import { DeleteRangeMoveUpCommandId } from '../../commands/commands/delete-range-move-up.command';
21
- import type { InsertRangeMoveDownCommandParams } from '../../commands/commands/insert-range-move-down.command';
22
- import { InsertRangeMoveDownCommandId } from '../../commands/commands/insert-range-move-down.command';
23
- import type { InsertRangeMoveRightCommandParams } from '../../commands/commands/insert-range-move-right.command';
24
- import { InsertRangeMoveRightCommandId } from '../../commands/commands/insert-range-move-right.command';
25
- import type { IInsertColCommandParams, IInsertRowCommandParams } from '../../commands/commands/insert-row-col.command';
26
- import { InsertColCommandId, InsertRowCommandId } from '../../commands/commands/insert-row-col.command';
27
- import type { IMoveRangeCommandParams } from '../../commands/commands/move-range.command';
28
- import { MoveRangeCommandId } from '../../commands/commands/move-range.command';
29
- import type { IMoveColsCommandParams, IMoveRowsCommandParams } from '../../commands/commands/move-rows-cols.command';
30
- import { MoveColsCommandId, MoveRowsCommandId } from '../../commands/commands/move-rows-cols.command';
31
- import type { IRemoveRowColCommandParams } from '../../commands/commands/remove-row-col.command';
32
- import { RemoveColCommandId, RemoveRowCommandId } from '../../commands/commands/remove-row-col.command';
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
+ import { ICommandInfo, IRange } from '@univerjs/core';
10
+
33
11
  export type IMoveRowsCommand = ICommandInfo<IMoveRowsCommandParams> & {
34
12
  id: typeof MoveRowsCommandId;
35
13
  };