@univerjs/sheets 0.2.6 → 0.2.8

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 (180) hide show
  1. package/lib/cjs/index.js +2 -2
  2. package/lib/es/index.js +208 -81
  3. package/lib/types/basics/cell-style.d.ts +0 -1
  4. package/lib/types/basics/cell-type.d.ts +0 -1
  5. package/lib/types/basics/cell-value.d.ts +0 -1
  6. package/lib/types/basics/const/default-spreadsheet-plugin-data.d.ts +0 -1
  7. package/lib/types/basics/interfaces/i-ruler-manager.d.ts +0 -1
  8. package/lib/types/basics/interfaces/mutation-interface.d.ts +0 -1
  9. package/lib/types/basics/interfaces/selection-config.d.ts +0 -1
  10. package/lib/types/basics/interfaces/spreadsheet-config.d.ts +0 -1
  11. package/lib/types/basics/rangeMerge.d.ts +0 -1
  12. package/lib/types/basics/selection.d.ts +0 -1
  13. package/lib/types/basics/sheet-header.d.ts +0 -1
  14. package/lib/types/basics/utils.d.ts +0 -1
  15. package/lib/types/commands/commands/__tests__/create-command-test-bed.d.ts +0 -1
  16. package/lib/types/commands/commands/add-range-protection.command.d.ts +0 -1
  17. package/lib/types/commands/commands/add-worksheet-merge.command.d.ts +0 -1
  18. package/lib/types/commands/commands/clear-selection-all.command.d.ts +0 -1
  19. package/lib/types/commands/commands/clear-selection-content.command.d.ts +0 -1
  20. package/lib/types/commands/commands/clear-selection-format.command.d.ts +0 -1
  21. package/lib/types/commands/commands/copy-worksheet.command.d.ts +0 -1
  22. package/lib/types/commands/commands/delete-range-move-left.command.d.ts +0 -1
  23. package/lib/types/commands/commands/delete-range-move-up.command.d.ts +0 -1
  24. package/lib/types/commands/commands/delete-range-protection.command.d.ts +0 -1
  25. package/lib/types/commands/commands/insert-defined-name.command.d.ts +0 -1
  26. package/lib/types/commands/commands/insert-range-move-down.command.d.ts +0 -1
  27. package/lib/types/commands/commands/insert-range-move-right.command.d.ts +0 -1
  28. package/lib/types/commands/commands/insert-row-col.command.d.ts +0 -1
  29. package/lib/types/commands/commands/insert-sheet.command.d.ts +0 -1
  30. package/lib/types/commands/commands/move-range.command.d.ts +0 -1
  31. package/lib/types/commands/commands/move-rows-cols.command.d.ts +0 -1
  32. package/lib/types/commands/commands/remove-defined-name.command.d.ts +0 -1
  33. package/lib/types/commands/commands/remove-row-col.command.d.ts +0 -1
  34. package/lib/types/commands/commands/remove-sheet.command.d.ts +0 -1
  35. package/lib/types/commands/commands/remove-worksheet-merge.command.d.ts +0 -1
  36. package/lib/types/commands/commands/reorder-range.command.d.ts +0 -1
  37. package/lib/types/commands/commands/set-border-command.d.ts +0 -1
  38. package/lib/types/commands/commands/set-col-visible.command.d.ts +0 -1
  39. package/lib/types/commands/commands/set-defined-name.command.d.ts +0 -1
  40. package/lib/types/commands/commands/set-frozen-cancel.command.d.ts +0 -1
  41. package/lib/types/commands/commands/set-frozen.command.d.ts +0 -1
  42. package/lib/types/commands/commands/set-hide-gridlines.command.d.ts +0 -1
  43. package/lib/types/commands/commands/set-range-protection.command.d.ts +0 -1
  44. package/lib/types/commands/commands/set-range-values.command.d.ts +0 -1
  45. package/lib/types/commands/commands/set-row-visible.command.d.ts +0 -1
  46. package/lib/types/commands/commands/set-style.command.d.ts +0 -1
  47. package/lib/types/commands/commands/set-tab-color.command.d.ts +0 -1
  48. package/lib/types/commands/commands/set-workbook-name.command.d.ts +0 -1
  49. package/lib/types/commands/commands/set-worksheet-activate.command.d.ts +0 -1
  50. package/lib/types/commands/commands/set-worksheet-col-width.command.d.ts +0 -1
  51. package/lib/types/commands/commands/set-worksheet-hide.command.d.ts +0 -1
  52. package/lib/types/commands/commands/set-worksheet-name.command.d.ts +0 -1
  53. package/lib/types/commands/commands/set-worksheet-order.command.d.ts +0 -1
  54. package/lib/types/commands/commands/set-worksheet-permission-points.command.d.ts +0 -1
  55. package/lib/types/commands/commands/set-worksheet-right-to-left.command.d.ts +0 -1
  56. package/lib/types/commands/commands/set-worksheet-row-height.command.d.ts +0 -1
  57. package/lib/types/commands/commands/set-worksheet-show.command.d.ts +0 -1
  58. package/lib/types/commands/commands/utils/merged-cell-util.d.ts +0 -1
  59. package/lib/types/commands/commands/utils/selection-utils.d.ts +0 -1
  60. package/lib/types/commands/commands/utils/target-util.d.ts +0 -1
  61. package/lib/types/commands/mutations/__tests__/create-command-test-bed.d.ts +0 -1
  62. package/lib/types/commands/mutations/add-range-protection.mutation.d.ts +0 -1
  63. package/lib/types/commands/mutations/add-worksheet-merge.mutation.d.ts +0 -1
  64. package/lib/types/commands/mutations/add-worksheet-protection.mutation.d.ts +0 -1
  65. package/lib/types/commands/mutations/delete-range-protection.mutation.d.ts +0 -1
  66. package/lib/types/commands/mutations/delete-worksheet-protection.mutation.d.ts +0 -1
  67. package/lib/types/commands/mutations/empty.mutation.d.ts +0 -1
  68. package/lib/types/commands/mutations/insert-row-col.mutation.d.ts +0 -1
  69. package/lib/types/commands/mutations/insert-sheet.mutation.d.ts +0 -1
  70. package/lib/types/commands/mutations/move-range.mutation.d.ts +3 -2
  71. package/lib/types/commands/mutations/move-rows-cols.mutation.d.ts +0 -1
  72. package/lib/types/commands/mutations/numfmt-mutation.d.ts +0 -1
  73. package/lib/types/commands/mutations/remove-row-col.mutation.d.ts +0 -1
  74. package/lib/types/commands/mutations/remove-sheet.mutation.d.ts +0 -1
  75. package/lib/types/commands/mutations/remove-worksheet-merge.mutation.d.ts +0 -1
  76. package/lib/types/commands/mutations/reorder-range.mutation.d.ts +0 -1
  77. package/lib/types/commands/mutations/set-col-visible.mutation.d.ts +0 -1
  78. package/lib/types/commands/mutations/set-frozen.mutation.d.ts +0 -1
  79. package/lib/types/commands/mutations/set-hide-gridlines.mutatiom.d.ts +0 -1
  80. package/lib/types/commands/mutations/set-range-protection.mutation.d.ts +0 -1
  81. package/lib/types/commands/mutations/set-range-values.mutation.d.ts +0 -1
  82. package/lib/types/commands/mutations/set-row-visible.mutation.d.ts +0 -1
  83. package/lib/types/commands/mutations/set-tab-color.mutation.d.ts +0 -1
  84. package/lib/types/commands/mutations/set-workbook-name.mutation.d.ts +0 -1
  85. package/lib/types/commands/mutations/set-worksheet-col-width.mutation.d.ts +0 -1
  86. package/lib/types/commands/mutations/set-worksheet-hide.mutation.d.ts +0 -1
  87. package/lib/types/commands/mutations/set-worksheet-name.mutation.d.ts +0 -1
  88. package/lib/types/commands/mutations/set-worksheet-order.mutation.d.ts +0 -1
  89. package/lib/types/commands/mutations/set-worksheet-permission-points.mutation.d.ts +0 -1
  90. package/lib/types/commands/mutations/set-worksheet-protection.mutation.d.ts +0 -1
  91. package/lib/types/commands/mutations/set-worksheet-right-to-left.mutation.d.ts +0 -1
  92. package/lib/types/commands/mutations/set-worksheet-row-height.mutation.d.ts +0 -1
  93. package/lib/types/commands/operations/scroll-to-cell.operation.d.ts +0 -1
  94. package/lib/types/commands/operations/selection.operation.d.ts +0 -1
  95. package/lib/types/commands/operations/set-worksheet-active.operation.d.ts +0 -1
  96. package/lib/types/commands/utils/handle-merge-operation.d.ts +0 -1
  97. package/lib/types/commands/utils/handle-range-mutation.d.ts +0 -1
  98. package/lib/types/commands/utils/selection-command-util.d.ts +0 -1
  99. package/lib/types/controllers/__tests__/util.d.ts +0 -1
  100. package/lib/types/controllers/basic-worksheet.controller.d.ts +0 -1
  101. package/lib/types/controllers/calculate-result-apply.controller.d.ts +0 -1
  102. package/lib/types/controllers/defined-name-data.controller.d.ts +0 -1
  103. package/lib/types/controllers/merge-cell.controller.d.ts +5 -2
  104. package/lib/types/controllers/number-cell.controller.d.ts +0 -1
  105. package/lib/types/index.d.ts +3 -2
  106. package/lib/types/locale/en-US.d.ts +0 -1
  107. package/lib/types/locale/ru-RU.d.ts +0 -1
  108. package/lib/types/locale/vi-VN.d.ts +0 -1
  109. package/lib/types/locale/zh-TW.d.ts +0 -1
  110. package/lib/types/model/range-protection-render.model.d.ts +0 -1
  111. package/lib/types/model/range-protection-rule.model.d.ts +1 -2
  112. package/lib/types/services/__tests__/util.d.ts +0 -1
  113. package/lib/types/services/border-style-manager.service.d.ts +0 -1
  114. package/lib/types/services/numfmt/numfmt.service.d.ts +0 -1
  115. package/lib/types/services/numfmt/type.d.ts +0 -1
  116. package/lib/types/services/permission/permission-point/range/edit.d.ts +0 -1
  117. package/lib/types/services/permission/permission-point/range/view.d.ts +0 -1
  118. package/lib/types/services/permission/permission-point/workbook/comment.d.ts +0 -1
  119. package/lib/types/services/permission/permission-point/workbook/copy-sheet.d.ts +0 -1
  120. package/lib/types/services/permission/permission-point/workbook/copy.d.ts +0 -1
  121. package/lib/types/services/permission/permission-point/workbook/create-sheet.d.ts +0 -1
  122. package/lib/types/services/permission/permission-point/workbook/delete-sheet.d.ts +0 -1
  123. package/lib/types/services/permission/permission-point/workbook/duplicate.d.ts +0 -1
  124. package/lib/types/services/permission/permission-point/workbook/editable.d.ts +0 -1
  125. package/lib/types/services/permission/permission-point/workbook/export.d.ts +0 -1
  126. package/lib/types/services/permission/permission-point/workbook/hide-sheet.d.ts +0 -1
  127. package/lib/types/services/permission/permission-point/workbook/history.d.ts +0 -1
  128. package/lib/types/services/permission/permission-point/workbook/manage-collaborator.d.ts +0 -1
  129. package/lib/types/services/permission/permission-point/workbook/move-sheet.d.ts +0 -1
  130. package/lib/types/services/permission/permission-point/workbook/print.d.ts +0 -1
  131. package/lib/types/services/permission/permission-point/workbook/recover-history.d.ts +0 -1
  132. package/lib/types/services/permission/permission-point/workbook/rename-sheet.d.ts +0 -1
  133. package/lib/types/services/permission/permission-point/workbook/share.d.ts +0 -1
  134. package/lib/types/services/permission/permission-point/workbook/view-history.d.ts +0 -1
  135. package/lib/types/services/permission/permission-point/workbook/view.d.ts +0 -1
  136. package/lib/types/services/permission/permission-point/worksheet/copy.d.ts +0 -1
  137. package/lib/types/services/permission/permission-point/worksheet/delete-column.d.ts +0 -1
  138. package/lib/types/services/permission/permission-point/worksheet/delete-row.d.ts +0 -1
  139. package/lib/types/services/permission/permission-point/worksheet/edit-extra-object.d.ts +0 -1
  140. package/lib/types/services/permission/permission-point/worksheet/edit.d.ts +0 -1
  141. package/lib/types/services/permission/permission-point/worksheet/filter.d.ts +0 -1
  142. package/lib/types/services/permission/permission-point/worksheet/insert-column.d.ts +0 -1
  143. package/lib/types/services/permission/permission-point/worksheet/insert-hyperlink.d.ts +0 -1
  144. package/lib/types/services/permission/permission-point/worksheet/insert-row.d.ts +0 -1
  145. package/lib/types/services/permission/permission-point/worksheet/manage-collaborator.d.ts +0 -1
  146. package/lib/types/services/permission/permission-point/worksheet/pivot-table.d.ts +0 -1
  147. package/lib/types/services/permission/permission-point/worksheet/select-protected-cells.d.ts +0 -1
  148. package/lib/types/services/permission/permission-point/worksheet/select-un-protected-cells.d.ts +0 -1
  149. package/lib/types/services/permission/permission-point/worksheet/set-cell-style.d.ts +0 -1
  150. package/lib/types/services/permission/permission-point/worksheet/set-cell-value.d.ts +0 -1
  151. package/lib/types/services/permission/permission-point/worksheet/set-column-style.d.ts +0 -1
  152. package/lib/types/services/permission/permission-point/worksheet/set-row-style.d.ts +0 -1
  153. package/lib/types/services/permission/permission-point/worksheet/sort.d.ts +0 -1
  154. package/lib/types/services/permission/permission-point/worksheet/view.d.ts +0 -1
  155. package/lib/types/services/permission/range-permission/range-protection.ref-range.d.ts +0 -1
  156. package/lib/types/services/permission/range-permission/range-protection.service.d.ts +0 -1
  157. package/lib/types/services/permission/range-permission/util.d.ts +0 -1
  158. package/lib/types/services/permission/type.d.ts +0 -1
  159. package/lib/types/services/permission/util.d.ts +2 -0
  160. package/lib/types/services/permission/workbook-permission/util.d.ts +0 -1
  161. package/lib/types/services/permission/workbook-permission/workbook-permission.service.d.ts +0 -1
  162. package/lib/types/services/permission/worksheet-permission/type.d.ts +0 -1
  163. package/lib/types/services/permission/worksheet-permission/utils.d.ts +0 -1
  164. package/lib/types/services/permission/worksheet-permission/worksheet-permission-point.model.d.ts +1 -2
  165. package/lib/types/services/permission/worksheet-permission/worksheet-permission-rule.model.d.ts +1 -2
  166. package/lib/types/services/permission/worksheet-permission/worksheet-permission.service.d.ts +0 -1
  167. package/lib/types/services/ref-range/__tests__/__testing__.d.ts +0 -1
  168. package/lib/types/services/ref-range/__tests__/ref-range.service.spec.d.ts +0 -1
  169. package/lib/types/services/ref-range/ref-range.service.d.ts +0 -1
  170. package/lib/types/services/ref-range/type.d.ts +0 -1
  171. package/lib/types/services/ref-range/util.d.ts +0 -1
  172. package/lib/types/services/selections/ref-selections.service.d.ts +0 -1
  173. package/lib/types/services/selections/selection-manager.service.d.ts +0 -1
  174. package/lib/types/services/sheet-interceptor/__tests__/create-core-test-bed.d.ts +0 -1
  175. package/lib/types/services/sheet-interceptor/interceptor-const.d.ts +0 -1
  176. package/lib/types/services/sheet-interceptor/sheet-interceptor.service.d.ts +31 -3
  177. package/lib/types/services/sheet-interceptor/utils/interceptor.d.ts +0 -1
  178. package/lib/types/sheets-plugin.d.ts +0 -1
  179. package/lib/umd/index.js +2 -2
  180. package/package.json +14 -13
@@ -1,5 +1,4 @@
1
1
  import { ICellData, IStyleData, Nullable, Styles } from '@univerjs/core';
2
-
3
2
  export declare function handleStyle(styles: Styles, oldVal: ICellData, newVal: ICellData): void;
4
3
  /**
5
4
  * Convert old style data for storage
@@ -1,5 +1,4 @@
1
1
  import { CellValue, ICellData, Nullable, Styles, CellValueType } from '@univerjs/core';
2
-
3
2
  /**
4
3
  * Get cell value type by style, new value and old value.
5
4
  * If the new value contains t, then take t directly. In other cases, we need to dynamically determine based on actual data and styles
@@ -1,5 +1,4 @@
1
1
  import { ICellData, Nullable, CellValueType } from '@univerjs/core';
2
-
3
2
  /**
4
3
  * Get cell value from new value by type
5
4
  * @param type
@@ -1,3 +1,2 @@
1
1
  import { IUniverSheetsConfig } from '../interfaces/spreadsheet-config';
2
-
3
2
  export declare const DEFAULT_SPREADSHEET_PLUGIN_DATA: IUniverSheetsConfig;
@@ -1,5 +1,4 @@
1
1
  import { BooleanNumber } from '@univerjs/core';
2
-
3
2
  /**
4
3
  * Column ruler data type
5
4
  */
@@ -1,5 +1,4 @@
1
1
  import { Dimension, ICellData, IColumnData, IObjectArrayPrimitiveType, IObjectMatrixPrimitiveType, IRange, IRowData, IWorksheetData, Nullable } from '@univerjs/core';
2
-
3
2
  /** Params of `RemoveSheetMutation` */
4
3
  export interface IRemoveSheetMutationParams {
5
4
  subUnitId: string;
@@ -1,5 +1,4 @@
1
1
  import { IRange, IRangeCellData } from '@univerjs/core';
2
-
3
2
  export interface ISelectionConfig {
4
3
  selection: IRange;
5
4
  cell?: IRangeCellData;
@@ -1,5 +1,4 @@
1
1
  import { ISelectionsConfig } from './selection-config';
2
-
3
2
  export interface IUniverSheetsConfig {
4
3
  selections: ISelectionsConfig;
5
4
  }
@@ -1,5 +1,4 @@
1
1
  import { IRange, ObjectMatrix } from '@univerjs/core';
2
-
3
2
  export declare const createTopMatrixFromRanges: (ranges: IRange[]) => ObjectMatrix<number>;
4
3
  export declare const createTopMatrixFromMatrix: (matrix: ObjectMatrix<1>) => ObjectMatrix<number>;
5
4
  export declare const findAllRectangle: (topMatrix: ObjectMatrix<number>) => IRange[];
@@ -1,5 +1,4 @@
1
1
  import { IRange, ISelection, ISelectionCellWithMergeInfo, ISelectionWithCoord, Nullable, ThemeService } from '@univerjs/core';
2
-
3
2
  export declare const SELECTION_CONTROL_BORDER_BUFFER_WIDTH = 1.5;
4
3
  export declare const SELECTION_CONTROL_BORDER_BUFFER_COLOR = "rgba(255, 255, 255, 0.01)";
5
4
  /**
@@ -1,4 +1,3 @@
1
1
  import { Worksheet } from '@univerjs/core';
2
-
3
2
  export declare function rowHeightByHeader(worksheet: Worksheet): number;
4
3
  export declare function columnWidthByHeader(worksheet: Worksheet): number;
@@ -1,6 +1,5 @@
1
1
  import { ICellData, IObjectMatrixPrimitiveType, IRange, Nullable, UniverInstanceService, Workbook, Worksheet } from '@univerjs/core';
2
2
  import { IExpandParams } from '../commands/commands/utils/selection-utils';
3
-
4
3
  export declare const groupByKey: <T = Record<string, unknown>>(arr: T[], key: string, blankKey?: string) => Record<string, T[]>;
5
4
  export declare const createUniqueKey: (initValue?: number) => () => number;
6
5
  export declare function expandToContinuousRange(startRange: IRange, directions: IExpandParams, worksheet: Worksheet): IRange;
@@ -1,5 +1,4 @@
1
1
  import { Dependency, IWorkbookData, Workbook, Injector, Univer } from '@univerjs/core';
2
-
3
2
  export interface ITestBed {
4
3
  univer: Univer;
5
4
  get: Injector['get'];
@@ -1,6 +1,5 @@
1
1
  import { ICommand } from '@univerjs/core';
2
2
  import { IRangeProtectionRule } from '../../model/range-protection-rule.model';
3
-
4
3
  export interface IAddRangeProtectionCommandParams {
5
4
  permissionId: string;
6
5
  rule: IRangeProtectionRule;
@@ -1,5 +1,4 @@
1
1
  import { ICommand, IRange, Dimension } from '@univerjs/core';
2
-
3
2
  export interface IAddMergeCommandParams {
4
3
  value?: Dimension.ROWS | Dimension.COLUMNS;
5
4
  selections: IRange[];
@@ -1,5 +1,4 @@
1
1
  import { ICommand } from '@univerjs/core';
2
-
3
2
  /**
4
3
  * The command to clear all in current selected ranges.
5
4
  */
@@ -1,5 +1,4 @@
1
1
  import { ICommand } from '@univerjs/core';
2
-
3
2
  /**
4
3
  * The command to clear content in current selected ranges.
5
4
  */
@@ -1,5 +1,4 @@
1
1
  import { ICommand } from '@univerjs/core';
2
-
3
2
  /**
4
3
  * The command to clear content in current selected ranges.
5
4
  */
@@ -1,5 +1,4 @@
1
1
  import { ICommand, Workbook, LocaleService } from '@univerjs/core';
2
-
3
2
  export interface ICopySheetCommandParams {
4
3
  unitId?: string;
5
4
  subUnitId?: string;
@@ -1,5 +1,4 @@
1
1
  import { ICommand, IRange } from '@univerjs/core';
2
-
3
2
  export interface IDeleteRangeMoveLeftCommandParams {
4
3
  range: IRange;
5
4
  }
@@ -1,5 +1,4 @@
1
1
  import { ICommand, IRange } from '@univerjs/core';
2
-
3
2
  export interface IDeleteRangeMoveUpCommandParams {
4
3
  range: IRange;
5
4
  }
@@ -1,6 +1,5 @@
1
1
  import { ICommand } from '@univerjs/core';
2
2
  import { IRangeProtectionRule } from '../../model/range-protection-rule.model';
3
-
4
3
  export interface IDeleteRangeProtectionCommandParams {
5
4
  unitId: string;
6
5
  subUnitId: string;
@@ -1,5 +1,4 @@
1
1
  import { ICommand } from '@univerjs/core';
2
-
3
2
  /**
4
3
  * The command to insert new defined name
5
4
  */
@@ -1,5 +1,4 @@
1
1
  import { ICommand, IRange } from '@univerjs/core';
2
-
3
2
  export interface InsertRangeMoveDownCommandParams {
4
3
  range: IRange;
5
4
  }
@@ -1,5 +1,4 @@
1
1
  import { ICommand, IRange } from '@univerjs/core';
2
-
3
2
  export interface InsertRangeMoveRightCommandParams {
4
3
  range: IRange;
5
4
  }
@@ -1,5 +1,4 @@
1
1
  import { ICellData, ICommand, IObjectMatrixPrimitiveType, IRange, Direction } from '@univerjs/core';
2
-
3
2
  export interface IInsertRowCommandParams {
4
3
  unitId: string;
5
4
  subUnitId: string;
@@ -1,5 +1,4 @@
1
1
  import { ICommand, IWorksheetData } from '@univerjs/core';
2
-
3
2
  export interface IInsertSheetCommandParams {
4
3
  unitId?: string;
5
4
  index?: number;
@@ -1,5 +1,4 @@
1
1
  import { IAccessor, ICommand, IMutationInfo, IRange } from '@univerjs/core';
2
-
3
2
  export interface IMoveRangeCommandParams {
4
3
  toRange: IRange;
5
4
  fromRange: IRange;
@@ -1,5 +1,4 @@
1
1
  import { ICommand, IRange } from '@univerjs/core';
2
-
3
2
  export interface IMoveRowsCommandParams {
4
3
  fromRange: IRange;
5
4
  toRange: IRange;
@@ -1,5 +1,4 @@
1
1
  import { ICommand } from '@univerjs/core';
2
-
3
2
  /**
4
3
  * The command to remove new defined name
5
4
  */
@@ -1,5 +1,4 @@
1
1
  import { ICommand, IRange } from '@univerjs/core';
2
-
3
2
  export interface IRemoveRowColCommandParams {
4
3
  range: IRange;
5
4
  }
@@ -1,5 +1,4 @@
1
1
  import { ICommand } from '@univerjs/core';
2
-
3
2
  export interface IRemoveSheetCommandParams {
4
3
  unitId?: string;
5
4
  subUnitId?: string;
@@ -1,3 +1,2 @@
1
1
  import { ICommand } from '@univerjs/core';
2
-
3
2
  export declare const RemoveWorksheetMergeCommand: ICommand;
@@ -1,6 +1,5 @@
1
1
  import { ICommand, IRange } from '@univerjs/core';
2
2
  import { ISheetCommandSharedParams } from '../utils/interface';
3
-
4
3
  export interface IReorderRangeCommandParams extends ISheetCommandSharedParams {
5
4
  range: IRange;
6
5
  order: {
@@ -1,6 +1,5 @@
1
1
  import { BorderStyleTypes, ICommand, BorderType } from '@univerjs/core';
2
2
  import { IBorderInfo } from '../../services/border-style-manager.service';
3
-
4
3
  export interface ISetBorderBasicCommandParams {
5
4
  unitId?: string;
6
5
  subUnitId?: string;
@@ -1,5 +1,4 @@
1
1
  import { ICommand, IRange, Worksheet } from '@univerjs/core';
2
-
3
2
  export interface ISetSpecificColsVisibleCommandParams {
4
3
  unitId: string;
5
4
  subUnitId: string;
@@ -1,6 +1,5 @@
1
1
  import { ICommand } from '@univerjs/core';
2
2
  import { ISetDefinedNameMutationParam } from '@univerjs/engine-formula';
3
-
4
3
  export interface ISetDefinedNameCommandParams {
5
4
  unitId: string;
6
5
  oldDefinedName: ISetDefinedNameMutationParam;
@@ -1,3 +1,2 @@
1
1
  import { ICommand } from '@univerjs/core';
2
-
3
2
  export declare const SetFrozenCancelCommand: ICommand;
@@ -1,3 +1,2 @@
1
1
  import { ICommand } from '@univerjs/core';
2
-
3
2
  export declare const SetFrozenCommand: ICommand;
@@ -1,5 +1,4 @@
1
1
  import { ICommand, BooleanNumber } from '@univerjs/core';
2
-
3
2
  export interface ISetHideGridlinesCommandParams {
4
3
  hideGridlines?: BooleanNumber;
5
4
  unitId?: string;
@@ -1,6 +1,5 @@
1
1
  import { ICommand } from '@univerjs/core';
2
2
  import { IRangeProtectionRule } from '../../model/range-protection-rule.model';
3
-
4
3
  export interface ISetRangeProtectionCommandParams {
5
4
  permissionId: string;
6
5
  rule: IRangeProtectionRule;
@@ -1,6 +1,5 @@
1
1
  import { ICellData, ICommand, IObjectMatrixPrimitiveType, IRange } from '@univerjs/core';
2
2
  import { ISheetCommandSharedParams } from '../utils/interface';
3
-
4
3
  export interface ISetRangeValuesCommandParams extends Partial<ISheetCommandSharedParams> {
5
4
  range?: IRange;
6
5
  /**
@@ -1,5 +1,4 @@
1
1
  import { ICommand, IRange, Worksheet } from '@univerjs/core';
2
-
3
2
  export interface ISetSpecificRowsVisibleCommandParams {
4
3
  unitId: string;
5
4
  subUnitId: string;
@@ -1,5 +1,4 @@
1
1
  import { HorizontalAlign, ICommand, IRange, IStyleData, VerticalAlign, WrapStrategy } from '@univerjs/core';
2
-
3
2
  export interface IStyleTypeValue<T> {
4
3
  type: keyof IStyleData;
5
4
  value: T | T[][];
@@ -1,5 +1,4 @@
1
1
  import { ICommand } from '@univerjs/core';
2
-
3
2
  export interface ISetTabColorCommandParams {
4
3
  value: string;
5
4
  }
@@ -1,5 +1,4 @@
1
1
  import { ICommand } from '@univerjs/core';
2
-
3
2
  export interface ISetWorkbookNameCommandParams {
4
3
  name: string;
5
4
  unitId: string;
@@ -1,5 +1,4 @@
1
1
  import { ICommand } from '@univerjs/core';
2
-
3
2
  export interface ISetWorksheetActivateCommandParams {
4
3
  unitId?: string;
5
4
  subUnitId?: string;
@@ -1,5 +1,4 @@
1
1
  import { ICommand } from '@univerjs/core';
2
-
3
2
  export interface IDeltaColumnWidthCommandParams {
4
3
  anchorCol: number;
5
4
  deltaX: number;
@@ -1,5 +1,4 @@
1
1
  import { ICommand } from '@univerjs/core';
2
-
3
2
  export interface ISetWorksheetHiddenCommandParams {
4
3
  subUnitId?: string;
5
4
  }
@@ -1,5 +1,4 @@
1
1
  import { ICommand } from '@univerjs/core';
2
-
3
2
  export interface ISetWorksheetNameCommandParams {
4
3
  name: string;
5
4
  subUnitId?: string;
@@ -1,5 +1,4 @@
1
1
  import { ICommand } from '@univerjs/core';
2
-
3
2
  export interface ISetWorksheetOrderCommandParams {
4
3
  order: number;
5
4
  unitId?: string;
@@ -1,6 +1,5 @@
1
1
  import { ICommand } from '@univerjs/core';
2
2
  import { IWorksheetProtectionPointRule } from '../../services/permission/type';
3
-
4
3
  export interface ISetWorksheetPermissionPointsCommandParams {
5
4
  rule: IWorksheetProtectionPointRule;
6
5
  }
@@ -1,5 +1,4 @@
1
1
  import { ICommand, BooleanNumber } from '@univerjs/core';
2
-
3
2
  export interface ISetWorksheetRightToLeftCommandParams {
4
3
  rightToLeft?: BooleanNumber;
5
4
  unitId?: string;
@@ -1,5 +1,4 @@
1
1
  import { ICommand } from '@univerjs/core';
2
-
3
2
  export interface IDeltaRowHeightCommand {
4
3
  anchorRow: number;
5
4
  deltaY: number;
@@ -1,5 +1,4 @@
1
1
  import { ICommand } from '@univerjs/core';
2
-
3
2
  export interface ISetWorksheetShowCommandParams {
4
3
  unitId: string;
5
4
  subUnitId: string;
@@ -1,5 +1,4 @@
1
1
  import { Worksheet } from '@univerjs/core';
2
-
3
2
  /**
4
3
  * @param row after this row
5
4
  */
@@ -1,7 +1,6 @@
1
1
  import { IRange, ISelectionCell, Nullable, Workbook, Worksheet } from '@univerjs/core';
2
2
  import { ISetSelectionsOperationParams } from '../../operations/selection.operation';
3
3
  import { ISelectionWithStyle } from '../../../basics/selection';
4
-
5
4
  export interface IExpandParams {
6
5
  left?: boolean;
7
6
  right?: boolean;
@@ -1,5 +1,4 @@
1
1
  import { IUniverInstanceService, Nullable, Workbook, Worksheet } from '@univerjs/core';
2
-
3
2
  export declare function getSheetCommandTargetWorkbook(univerInstanceService: IUniverInstanceService, params: {
4
3
  unitId?: string;
5
4
  }): Nullable<{
@@ -1,5 +1,4 @@
1
1
  import { Dependency, IWorkbookData, Workbook, Injector, Univer } from '@univerjs/core';
2
-
3
2
  export interface ITestBed {
4
3
  univer: Univer;
5
4
  get: Injector['get'];
@@ -1,7 +1,6 @@
1
1
  import { IMutation, IMutationInfo } from '@univerjs/core';
2
2
  import { IRangeProtectionRule } from '../../model/range-protection-rule.model';
3
3
  import { IDeleteSelectionProtectionMutationParams } from './delete-range-protection.mutation';
4
-
5
4
  export interface IAddRangeProtectionMutationParams {
6
5
  rules: IRangeProtectionRule[];
7
6
  unitId: string;
@@ -1,5 +1,4 @@
1
1
  import { IAccessor, IMutation } from '@univerjs/core';
2
2
  import { IAddWorksheetMergeMutationParams, IRemoveWorksheetMergeMutationParams } from '../../basics/interfaces/mutation-interface';
3
-
4
3
  export declare const AddMergeUndoMutationFactory: (accessor: IAccessor, params: IAddWorksheetMergeMutationParams) => IRemoveWorksheetMergeMutationParams;
5
4
  export declare const AddWorksheetMergeMutation: IMutation<IAddWorksheetMergeMutationParams>;
@@ -1,6 +1,5 @@
1
1
  import { IMutation } from '@univerjs/core';
2
2
  import { IWorksheetProtectionRule } from '../../services/permission/type';
3
-
4
3
  export interface IAddWorksheetProtectionParams {
5
4
  unitId: string;
6
5
  subUnitId: string;
@@ -1,6 +1,5 @@
1
1
  import { IAccessor, IMutation, IMutationInfo } from '@univerjs/core';
2
2
  import { IAddRangeProtectionMutationParams } from './add-range-protection.mutation';
3
-
4
3
  export interface IDeleteSelectionProtectionMutationParams {
5
4
  ruleIds: string[];
6
5
  unitId: string;
@@ -1,5 +1,4 @@
1
1
  import { IMutation } from '@univerjs/core';
2
-
3
2
  export interface IDeleteWorksheetProtectionParams {
4
3
  unitId: string;
5
4
  subUnitId: string;
@@ -1,3 +1,2 @@
1
1
  import { IMutation } from '@univerjs/core';
2
-
3
2
  export declare const EmptyMutation: IMutation<{}, boolean>;
@@ -1,6 +1,5 @@
1
1
  import { IAccessor, IMutation } from '@univerjs/core';
2
2
  import { IInsertColMutationParams, IInsertRowMutationParams, IRemoveColMutationParams, IRemoveRowsMutationParams } from '../../basics/interfaces/mutation-interface';
3
-
4
3
  export declare const InsertRowMutationUndoFactory: (accessor: IAccessor, params: IInsertRowMutationParams) => IRemoveRowsMutationParams;
5
4
  export declare const InsertRowMutation: IMutation<IInsertRowMutationParams>;
6
5
  export declare const InsertColMutationUndoFactory: (accessor: IAccessor, params: IInsertColMutationParams) => IRemoveColMutationParams;
@@ -1,6 +1,5 @@
1
1
  import { IAccessor, IMutation } from '@univerjs/core';
2
2
  import { IInsertSheetMutationParams, IRemoveSheetMutationParams } from '../../basics/interfaces/mutation-interface';
3
-
4
3
  /**
5
4
  * Generate undo mutation of a `InsertSheetMutation`
6
5
  *
@@ -1,7 +1,8 @@
1
- import { ICellData, IMutation, IObjectMatrixPrimitiveType, Nullable } from '@univerjs/core';
2
-
1
+ import { ICellData, IMutation, IObjectMatrixPrimitiveType, IRange, Nullable } from '@univerjs/core';
3
2
  export interface IMoveRangeMutationParams {
4
3
  unitId: string;
4
+ fromRange: IRange;
5
+ toRange: IRange;
5
6
  from: {
6
7
  subUnitId: string;
7
8
  value: IObjectMatrixPrimitiveType<Nullable<ICellData>>;
@@ -1,5 +1,4 @@
1
1
  import { IAccessor, IMutation, IRange } from '@univerjs/core';
2
-
3
2
  export interface IMoveRowsMutationParams {
4
3
  unitId: string;
5
4
  subUnitId: string;
@@ -1,5 +1,4 @@
1
1
  import { IAccessor, ICommand, IMutationInfo, IRange } from '@univerjs/core';
2
-
3
2
  export declare const factorySetNumfmtUndoMutation: (accessor: IAccessor, option: ISetNumfmtMutationParams) => IMutationInfo<ISetNumfmtMutationParams | IRemoveNumfmtMutationParams>[];
4
3
  export interface ISetNumfmtMutationParams {
5
4
  values: {
@@ -1,6 +1,5 @@
1
1
  import { IAccessor, IMutation, Worksheet } from '@univerjs/core';
2
2
  import { IInsertColMutationParams, IInsertRowMutationParams, IRemoveColMutationParams, IRemoveRowsMutationParams } from '../../basics/interfaces/mutation-interface';
3
-
4
3
  export declare const RemoveRowsUndoMutationFactory: (params: IRemoveRowsMutationParams, worksheet: Worksheet) => IInsertRowMutationParams;
5
4
  export declare const RemoveRowMutation: IMutation<IRemoveRowsMutationParams>;
6
5
  export declare const RemoveColMutationFactory: (accessor: IAccessor, params: IRemoveColMutationParams) => IInsertColMutationParams;
@@ -1,6 +1,5 @@
1
1
  import { IAccessor, IMutation } from '@univerjs/core';
2
2
  import { IInsertSheetMutationParams, IRemoveSheetMutationParams } from '../../basics/interfaces/mutation-interface';
3
-
4
3
  /**
5
4
  * Generate undo mutation of a `RemoveSheetMutation`
6
5
  *
@@ -1,5 +1,4 @@
1
1
  import { IAccessor, IMutation } from '@univerjs/core';
2
2
  import { IAddWorksheetMergeMutationParams, IRemoveWorksheetMergeMutationParams } from '../../basics/interfaces/mutation-interface';
3
-
4
3
  export declare const RemoveMergeUndoMutationFactory: (accessor: IAccessor, params: IRemoveWorksheetMergeMutationParams) => IAddWorksheetMergeMutationParams;
5
4
  export declare const RemoveWorksheetMergeMutation: IMutation<IRemoveWorksheetMergeMutationParams>;
@@ -1,6 +1,5 @@
1
1
  import { IMutation, IRange } from '@univerjs/core';
2
2
  import { ISheetCommandSharedParams } from '@univerjs/sheets';
3
-
4
3
  export interface IReorderRangeMutationParams extends ISheetCommandSharedParams {
5
4
  range: IRange;
6
5
  order: {
@@ -1,5 +1,4 @@
1
1
  import { IAccessor, IMutation, IRange } from '@univerjs/core';
2
-
3
2
  export interface ISetColHiddenMutationParams {
4
3
  unitId: string;
5
4
  subUnitId: string;
@@ -1,5 +1,4 @@
1
1
  import { IAccessor, IMutation } from '@univerjs/core';
2
-
3
2
  export interface ISetFrozenMutationParams {
4
3
  unitId: string;
5
4
  subUnitId: string;
@@ -1,5 +1,4 @@
1
1
  import { BooleanNumber, IAccessor, IMutation } from '@univerjs/core';
2
-
3
2
  export interface ISetHideGridlinesMutationParams {
4
3
  hideGridlines: BooleanNumber;
5
4
  unitId: string;
@@ -1,6 +1,5 @@
1
1
  import { IAccessor, IMutation, IMutationInfo } from '@univerjs/core';
2
2
  import { IRangeProtectionRule } from '../../model/range-protection-rule.model';
3
-
4
3
  export interface ISetRangeProtectionMutationParams {
5
4
  rule: IRangeProtectionRule;
6
5
  unitId: string;
@@ -1,5 +1,4 @@
1
1
  import { IAccessor, ICellData, ICopyToOptionsData, IMutation, IMutationCommonParams, IObjectMatrixPrimitiveType, IRange, Nullable } from '@univerjs/core';
2
-
3
2
  /** Params of `SetRangeValuesMutation` */
4
3
  export interface ISetRangeValuesMutationParams extends IMutationCommonParams {
5
4
  subUnitId: string;
@@ -1,5 +1,4 @@
1
1
  import { IAccessor, IMutation, IRange } from '@univerjs/core';
2
-
3
2
  export interface ISetRowVisibleMutationParams {
4
3
  unitId: string;
5
4
  subUnitId: string;
@@ -1,5 +1,4 @@
1
1
  import { IAccessor, IMutation } from '@univerjs/core';
2
-
3
2
  export interface ISetTabColorMutationParams {
4
3
  color: string;
5
4
  unitId: string;
@@ -1,5 +1,4 @@
1
1
  import { IMutation } from '@univerjs/core';
2
-
3
2
  export interface ISetWorkbookNameMutationParams {
4
3
  name: string;
5
4
  unitId: string;
@@ -1,5 +1,4 @@
1
1
  import { IAccessor, IMutation, IObjectArrayPrimitiveType, IRange, Nullable } from '@univerjs/core';
2
-
3
2
  export interface ISetWorksheetColWidthMutationParams {
4
3
  unitId: string;
5
4
  subUnitId: string;