@univerjs/sheets 0.1.4 → 0.1.5

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 (102) hide show
  1. package/lib/cjs/index.js +2 -2
  2. package/lib/es/index.js +900 -901
  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/add-worksheet-merge.command.d.ts +2 -17
  13. package/lib/types/commands/commands/clear-selection-all.command.d.ts +2 -16
  14. package/lib/types/commands/commands/clear-selection-content.command.d.ts +2 -16
  15. package/lib/types/commands/commands/clear-selection-format.command.d.ts +2 -16
  16. package/lib/types/commands/commands/copy-to-worksheet.command.d.ts +2 -16
  17. package/lib/types/commands/commands/copy-worksheet.command.d.ts +2 -16
  18. package/lib/types/commands/commands/delete-range-move-left.command.d.ts +2 -16
  19. package/lib/types/commands/commands/delete-range-move-up.command.d.ts +2 -16
  20. package/lib/types/commands/commands/insert-range-move-down.command.d.ts +2 -16
  21. package/lib/types/commands/commands/insert-range-move-right.command.d.ts +2 -16
  22. package/lib/types/commands/commands/insert-row-col.command.d.ts +2 -17
  23. package/lib/types/commands/commands/insert-sheet.command.d.ts +2 -16
  24. package/lib/types/commands/commands/move-range.command.d.ts +3 -17
  25. package/lib/types/commands/commands/move-rows-cols.command.d.ts +2 -16
  26. package/lib/types/commands/commands/remove-row-col.command.d.ts +2 -16
  27. package/lib/types/commands/commands/remove-sheet.command.d.ts +2 -16
  28. package/lib/types/commands/commands/remove-worksheet-merge.command.d.ts +2 -16
  29. package/lib/types/commands/commands/set-border-command.d.ts +3 -18
  30. package/lib/types/commands/commands/set-col-visible.command.d.ts +2 -16
  31. package/lib/types/commands/commands/set-frozen-cancel.command.d.ts +2 -16
  32. package/lib/types/commands/commands/set-frozen.command.d.ts +2 -16
  33. package/lib/types/commands/commands/set-hide-gridlines.command.d.ts +2 -17
  34. package/lib/types/commands/commands/set-range-values.command.d.ts +3 -17
  35. package/lib/types/commands/commands/set-row-visible.command.d.ts +2 -16
  36. package/lib/types/commands/commands/set-style.command.d.ts +2 -16
  37. package/lib/types/commands/commands/set-tab-color.command.d.ts +2 -16
  38. package/lib/types/commands/commands/set-worksheet-activate.command.d.ts +2 -16
  39. package/lib/types/commands/commands/set-worksheet-col-width.command.d.ts +2 -16
  40. package/lib/types/commands/commands/set-worksheet-hide.command.d.ts +2 -16
  41. package/lib/types/commands/commands/set-worksheet-name.command.d.ts +2 -16
  42. package/lib/types/commands/commands/set-worksheet-order.command.d.ts +2 -16
  43. package/lib/types/commands/commands/set-worksheet-right-to-left.command.d.ts +2 -17
  44. package/lib/types/commands/commands/set-worksheet-row-height.command.d.ts +2 -16
  45. package/lib/types/commands/commands/set-worksheet-show.command.d.ts +2 -16
  46. package/lib/types/commands/commands/utils/merged-cell-util.d.ts +2 -16
  47. package/lib/types/commands/commands/utils/selection-utils.d.ts +4 -17
  48. package/lib/types/commands/mutations/__tests__/create-command-test-bed.d.ts +3 -19
  49. package/lib/types/commands/mutations/add-worksheet-merge.mutation.d.ts +4 -18
  50. package/lib/types/commands/mutations/empty.mutation.d.ts +2 -16
  51. package/lib/types/commands/mutations/insert-row-col.mutation.d.ts +4 -18
  52. package/lib/types/commands/mutations/insert-sheet.mutation.d.ts +4 -18
  53. package/lib/types/commands/mutations/move-range.mutation.d.ts +2 -16
  54. package/lib/types/commands/mutations/move-rows-cols.mutation.d.ts +3 -17
  55. package/lib/types/commands/mutations/numfmt-mutation.d.ts +4 -18
  56. package/lib/types/commands/mutations/remove-row-col.mutation.d.ts +4 -18
  57. package/lib/types/commands/mutations/remove-sheet.mutation.d.ts +4 -18
  58. package/lib/types/commands/mutations/remove-worksheet-merge.mutation.d.ts +4 -18
  59. package/lib/types/commands/mutations/set-col-visible.mutation.d.ts +3 -17
  60. package/lib/types/commands/mutations/set-frozen.mutation.d.ts +3 -17
  61. package/lib/types/commands/mutations/set-hide-gridlines.mutatiom.d.ts +3 -17
  62. package/lib/types/commands/mutations/set-range-values.mutation.d.ts +3 -17
  63. package/lib/types/commands/mutations/set-row-visible.mutation.d.ts +3 -17
  64. package/lib/types/commands/mutations/set-tab-color.mutation.d.ts +3 -17
  65. package/lib/types/commands/mutations/set-worksheet-col-width.mutation.d.ts +3 -17
  66. package/lib/types/commands/mutations/set-worksheet-config.mutation.d.ts +3 -17
  67. package/lib/types/commands/mutations/set-worksheet-hide.mutation.d.ts +3 -17
  68. package/lib/types/commands/mutations/set-worksheet-name.mutation.d.ts +3 -17
  69. package/lib/types/commands/mutations/set-worksheet-order.mutation.d.ts +5 -18
  70. package/lib/types/commands/mutations/set-worksheet-right-to-left.mutation.d.ts +3 -17
  71. package/lib/types/commands/mutations/set-worksheet-row-height.mutation.d.ts +4 -18
  72. package/lib/types/commands/operations/selection.operation.d.ts +4 -18
  73. package/lib/types/commands/operations/set-worksheet-active.operation.d.ts +2 -16
  74. package/lib/types/commands/utils/get-target.d.ts +2 -16
  75. package/lib/types/commands/utils/handle-merge-operation.d.ts +5 -19
  76. package/lib/types/commands/utils/handle-range-mutation.d.ts +4 -19
  77. package/lib/types/controllers/__tests__/util.d.ts +10 -25
  78. package/lib/types/controllers/basic-worksheet.controller.d.ts +3 -18
  79. package/lib/types/controllers/calculate-result-apply.controller.d.ts +1 -15
  80. package/lib/types/controllers/feature-calculation.controller.d.ts +2 -16
  81. package/lib/types/controllers/merge-cell.controller.d.ts +5 -20
  82. package/lib/types/index.d.ts +1 -1
  83. package/lib/types/locale/en-US.d.ts +2 -16
  84. package/lib/types/services/__tests__/util.d.ts +10 -25
  85. package/lib/types/services/border-style-manager.service.d.ts +3 -17
  86. package/lib/types/services/numfmt/numfmt.service.d.ts +5 -19
  87. package/lib/types/services/numfmt/type.d.ts +5 -18
  88. package/lib/types/services/permission/permission-point.d.ts +1 -15
  89. package/lib/types/services/permission/sheet-permission.service.d.ts +3 -18
  90. package/lib/types/services/permission/tool.d.ts +2 -16
  91. package/lib/types/services/ref-range/__tests__/util.d.ts +10 -25
  92. package/lib/types/services/ref-range/ref-range.service.d.ts +7 -22
  93. package/lib/types/services/ref-range/type.d.ts +10 -32
  94. package/lib/types/services/ref-range/util.d.ts +7 -22
  95. package/lib/types/services/selection-manager.service.d.ts +7 -21
  96. package/lib/types/services/sheet-interceptor/__tests__/create-core-test-bed.d.ts +10 -25
  97. package/lib/types/services/sheet-interceptor/interceptor-const.d.ts +5 -19
  98. package/lib/types/services/sheet-interceptor/sheet-interceptor.service.d.ts +4 -19
  99. package/lib/types/services/sheet-interceptor/utils/interceptor.d.ts +2 -16
  100. package/lib/types/sheets-plugin.d.ts +2 -16
  101. package/lib/umd/index.js +2 -2
  102. package/package.json +10 -10
@@ -1,17 +1,3 @@
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 { ICommand } from '@univerjs/core';
1
+ import { ICommand } from '@univerjs/core';
2
+
17
3
  export declare const SetFrozenCancelCommand: ICommand;
@@ -1,17 +1,3 @@
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 { ICommand } from '@univerjs/core';
1
+ import { ICommand } from '@univerjs/core';
2
+
17
3
  export declare const SetFrozenCommand: ICommand;
@@ -1,20 +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
- import type { ICommand } from '@univerjs/core';
17
- import { BooleanNumber } from '@univerjs/core';
1
+ import { ICommand, BooleanNumber } from '@univerjs/core';
2
+
18
3
  export interface ISetHideGridlinesCommandParams {
19
4
  hideGridlines?: BooleanNumber;
20
5
  unitId?: string;
@@ -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, ICommand, IObjectMatrixPrimitiveType, IRange } from '@univerjs/core';
17
- import type { ISheetCommandSharedParams } from '../utils/interface';
1
+ import { ISheetCommandSharedParams } from '../utils/interface';
2
+ import { ICellData, ICommand, IObjectMatrixPrimitiveType, IRange } from '@univerjs/core';
3
+
18
4
  export interface ISetRangeValuesCommandParams extends Partial<ISheetCommandSharedParams> {
19
5
  range?: IRange;
20
6
  /**
@@ -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
- import type { ICommand, IRange } from '@univerjs/core';
1
+ import { ICommand, IRange } from '@univerjs/core';
2
+
17
3
  export interface ISetSpecificRowsVisibleCommandParams {
18
4
  unitId: string;
19
5
  subUnitId: string;
@@ -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
- import type { HorizontalAlign, ICommand, IRange, IStyleData, VerticalAlign, WrapStrategy } from '@univerjs/core';
1
+ import { HorizontalAlign, ICommand, IRange, IStyleData, VerticalAlign, WrapStrategy } from '@univerjs/core';
2
+
17
3
  export interface IStyleTypeValue<T> {
18
4
  type: keyof IStyleData;
19
5
  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
- import type { ICommand } from '@univerjs/core';
1
+ import { ICommand } from '@univerjs/core';
2
+
17
3
  export interface ISetTabColorCommandParams {
18
4
  value: string;
19
5
  }
@@ -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
- import type { ICommand } from '@univerjs/core';
1
+ import { ICommand } from '@univerjs/core';
2
+
17
3
  export interface ISetWorksheetActivateCommandParams {
18
4
  unitId?: string;
19
5
  subUnitId?: string;
@@ -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
- import type { ICommand } from '@univerjs/core';
1
+ import { ICommand } from '@univerjs/core';
2
+
17
3
  export interface IDeltaColumnWidthCommandParams {
18
4
  anchorCol: number;
19
5
  deltaX: number;
@@ -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
- import type { ICommand } from '@univerjs/core';
1
+ import { ICommand } from '@univerjs/core';
2
+
17
3
  export interface ISetWorksheetHiddenCommandParams {
18
4
  subUnitId?: string;
19
5
  }
@@ -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
- import type { ICommand } from '@univerjs/core';
1
+ import { ICommand } from '@univerjs/core';
2
+
17
3
  export interface ISetWorksheetNameCommandParams {
18
4
  name: string;
19
5
  subUnitId?: string;
@@ -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
- import type { ICommand } from '@univerjs/core';
1
+ import { ICommand } from '@univerjs/core';
2
+
17
3
  export interface ISetWorksheetOrderCommandParams {
18
4
  order: number;
19
5
  unitId?: string;
@@ -1,20 +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
- import type { ICommand } from '@univerjs/core';
17
- import { BooleanNumber } from '@univerjs/core';
1
+ import { ICommand, BooleanNumber } from '@univerjs/core';
2
+
18
3
  export interface ISetWorksheetRightToLeftCommandParams {
19
4
  rightToLeft?: BooleanNumber;
20
5
  unitId?: string;
@@ -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
- import type { ICommand } from '@univerjs/core';
1
+ import { ICommand } from '@univerjs/core';
2
+
17
3
  export interface IDeltaRowHeightCommand {
18
4
  anchorRow: number;
19
5
  deltaY: number;
@@ -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
- import type { ICommand } from '@univerjs/core';
1
+ import { ICommand } from '@univerjs/core';
2
+
17
3
  export interface ISetWorksheetShowCommandParams {
18
4
  value?: string;
19
5
  }
@@ -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
- import type { Worksheet } from '@univerjs/core';
1
+ import { Worksheet } from '@univerjs/core';
2
+
17
3
  /**
18
4
  * @param row after this row
19
5
  */
@@ -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 { IRange, ISelectionCell, Workbook, Worksheet } from '@univerjs/core';
17
- import type { ISetSelectionsOperationParams } from '../../operations/selection.operation';
1
+ import { ISetSelectionsOperationParams } from '../../operations/selection.operation';
2
+ import { IRange, ISelectionCell, Workbook, Worksheet } from '@univerjs/core';
3
+
18
4
  export interface IExpandParams {
19
5
  left?: boolean;
20
6
  right?: boolean;
@@ -26,6 +12,7 @@ export interface IExpandParams {
26
12
  */
27
13
  export declare function alignToMergedCellsBorders(startRange: IRange, worksheet: Worksheet, shouldRecursive?: boolean): IRange;
28
14
  export declare function getCellAtRowCol(row: number, col: number, worksheet: Worksheet): ISelectionCell;
15
+ export declare function setEndForRange(range: IRange, rowCount: number, columnCount: number): IRange;
29
16
  /**
30
17
  * Get the default primary cell (the most top-left cell) of a range.
31
18
  * @param range
@@ -1,22 +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 { IWorkbookData, Workbook } from '@univerjs/core';
17
- import { Univer } from '@univerjs/core';
18
- import type { Dependency } from '@wendellhu/redi';
19
- import { Injector } from '@wendellhu/redi';
1
+ import { Dependency, Injector } from '@wendellhu/redi';
2
+ import { IWorkbookData, Workbook, Univer } from '@univerjs/core';
3
+
20
4
  export interface ITestBed {
21
5
  univer: Univer;
22
6
  get: Injector['get'];
@@ -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 { IMutation } from '@univerjs/core';
17
- import type { IAccessor } from '@wendellhu/redi';
18
- import type { IAddWorksheetMergeMutationParams, IRemoveWorksheetMergeMutationParams } from '../../basics/interfaces/mutation-interface';
1
+ import { IAddWorksheetMergeMutationParams, IRemoveWorksheetMergeMutationParams } from '../../basics/interfaces/mutation-interface';
2
+ import { IAccessor } from '@wendellhu/redi';
3
+ import { IMutation } from '@univerjs/core';
4
+
19
5
  export declare const AddMergeUndoMutationFactory: (accessor: IAccessor, params: IAddWorksheetMergeMutationParams) => IRemoveWorksheetMergeMutationParams;
20
6
  export declare const AddWorksheetMergeMutation: IMutation<IAddWorksheetMergeMutationParams>;
@@ -1,17 +1,3 @@
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 { IMutation } from '@univerjs/core';
1
+ import { IMutation } from '@univerjs/core';
2
+
17
3
  export declare const EmptyMutation: IMutation<{}, boolean>;
@@ -1,21 +1,7 @@
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 { IMutation } from '@univerjs/core';
17
- import type { IAccessor } from '@wendellhu/redi';
18
- import type { IInsertColMutationParams, IInsertRowMutationParams, IRemoveColMutationParams, IRemoveRowsMutationParams } from '../../basics/interfaces/mutation-interface';
1
+ import { IInsertColMutationParams, IInsertRowMutationParams, IRemoveColMutationParams, IRemoveRowsMutationParams } from '../../basics/interfaces/mutation-interface';
2
+ import { IAccessor } from '@wendellhu/redi';
3
+ import { IMutation } from '@univerjs/core';
4
+
19
5
  export declare const InsertRowMutationUndoFactory: (accessor: IAccessor, params: IInsertRowMutationParams) => IRemoveRowsMutationParams;
20
6
  export declare const InsertRowMutation: IMutation<IInsertRowMutationParams>;
21
7
  export declare const InsertColMutationUndoFactory: (accessor: IAccessor, params: IInsertColMutationParams) => IRemoveColMutationParams;
@@ -1,21 +1,7 @@
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 { IMutation } from '@univerjs/core';
17
- import type { IAccessor } from '@wendellhu/redi';
18
- import type { IInsertSheetMutationParams, IRemoveSheetMutationParams } from '../../basics/interfaces/mutation-interface';
1
+ import { IInsertSheetMutationParams, IRemoveSheetMutationParams } from '../../basics/interfaces/mutation-interface';
2
+ import { IAccessor } from '@wendellhu/redi';
3
+ import { IMutation } from '@univerjs/core';
4
+
19
5
  /**
20
6
  * Generate undo mutation of a `InsertSheetMutation`
21
7
  *
@@ -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
- import type { ICellData, IMutation, IObjectMatrixPrimitiveType, Nullable } from '@univerjs/core';
1
+ import { ICellData, IMutation, IObjectMatrixPrimitiveType, Nullable } from '@univerjs/core';
2
+
17
3
  export interface IMoveRangeMutationParams {
18
4
  unitId: string;
19
5
  from: {
@@ -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 { IMutation, IRange } from '@univerjs/core';
17
- import type { IAccessor } from '@wendellhu/redi';
1
+ import { IAccessor } from '@wendellhu/redi';
2
+ import { IMutation, IRange } from '@univerjs/core';
3
+
18
4
  export interface IMoveRowsMutationParams {
19
5
  unitId: string;
20
6
  subUnitId: string;
@@ -1,21 +1,7 @@
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 { ICommand, IMutationInfo, IRange } from '@univerjs/core';
17
- import type { IAccessor } from '@wendellhu/redi';
18
- import type { FormatType } from '../../services/numfmt/type';
1
+ import { FormatType } from '../../services/numfmt/type';
2
+ import { IAccessor } from '@wendellhu/redi';
3
+ import { ICommand, IMutationInfo, IRange } from '@univerjs/core';
4
+
19
5
  export declare const factorySetNumfmtUndoMutation: (accessor: IAccessor, option: ISetNumfmtMutationParams) => IMutationInfo<ISetNumfmtMutationParams | IRemoveNumfmtMutationParams>[];
20
6
  export interface ISetNumfmtMutationParams {
21
7
  values: {
@@ -1,21 +1,7 @@
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 { IMutation, Worksheet } from '@univerjs/core';
17
- import type { IAccessor } from '@wendellhu/redi';
18
- import type { IInsertColMutationParams, IInsertRowMutationParams, IRemoveColMutationParams, IRemoveRowsMutationParams } from '../../basics/interfaces/mutation-interface';
1
+ import { IInsertColMutationParams, IInsertRowMutationParams, IRemoveColMutationParams, IRemoveRowsMutationParams } from '../../basics/interfaces/mutation-interface';
2
+ import { IAccessor } from '@wendellhu/redi';
3
+ import { IMutation, Worksheet } from '@univerjs/core';
4
+
19
5
  export declare const RemoveRowsUndoMutationFactory: (params: IRemoveRowsMutationParams, worksheet: Worksheet) => IInsertRowMutationParams;
20
6
  export declare const RemoveRowMutation: IMutation<IRemoveRowsMutationParams>;
21
7
  export declare const RemoveColMutationFactory: (accessor: IAccessor, params: IRemoveColMutationParams) => IInsertColMutationParams;