@univerjs/sheets 0.1.0-beta.3 → 0.1.0-beta.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.
@@ -18,6 +18,7 @@ import type { Dimension, ICellData, IColumnData, IObjectArrayPrimitiveType, IObj
18
18
  export interface IRemoveSheetMutationParams {
19
19
  subUnitId: string;
20
20
  unitId: string;
21
+ subUnitName: string;
21
22
  }
22
23
  /** Params of `InsertSheetMutation` */
23
24
  export interface IInsertSheetMutationParams {
@@ -58,6 +58,10 @@ export interface ISelectionStyle {
58
58
  * The dashed line of the selection border. Here, the dashed line is a numerical value, different from the canvas dashed line setting. It is implemented internally as [0, strokeDash]. Setting it to 8 will look more aesthetically pleasing.
59
59
  */
60
60
  strokeDash?: number;
61
+ /**
62
+ * Enable 'marching ants' animation
63
+ */
64
+ isAnimationDash?: boolean;
61
65
  /**
62
66
  * The fill color inside the selection. It needs to have a level of transparency, otherwise content in the covered area of the selection will be obscured.
63
67
  */
@@ -32,7 +32,7 @@ export interface IInsertRowCommandParams {
32
32
  }
33
33
  export declare const InsertRowCommandId = "sheet.command.insert-row";
34
34
  /**
35
- * @internal use `InsertRowBeforeCommand` or `InsertRowAfterCommand` as an external user
35
+ * @internal
36
36
  *
37
37
  * this command and its interface should not be exported from index.ts
38
38
  */
@@ -14,6 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import type { IRange, ISelectionCell, Workbook, Worksheet } from '@univerjs/core';
17
+ import type { ISetSelectionsOperationParams } from '../../operations/selection.operation';
17
18
  export interface IExpandParams {
18
19
  left?: boolean;
19
20
  right?: boolean;
@@ -42,13 +43,5 @@ export interface IInterval {
42
43
  export declare function calculateTotalLength(intervalsObject: IInterval): number;
43
44
  export declare const followSelectionOperation: (range: IRange, workbook: Workbook, worksheet: Worksheet) => {
44
45
  id: string;
45
- params: {
46
- unitId: string;
47
- sheetId: string;
48
- pluginName: string;
49
- selections: {
50
- range: IRange;
51
- primary: ISelectionCell;
52
- }[];
53
- };
46
+ params: ISetSelectionsOperationParams;
54
47
  };
@@ -108,7 +108,8 @@ 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, } from './services/ref-range/util';
111
+ export { handleBaseInsertRange, handleBaseMoveRowsCols, handleBaseRemoveRange, handleDeleteRangeMoveLeft, handleDeleteRangeMoveUp, handleInsertCol, handleInsertRangeMoveDown, handleInsertRangeMoveRight, handleInsertRow, handleIRemoveCol, handleIRemoveRow, handleMoveCols, handleMoveRange, handleMoveRows, rotateRange, runRefRangeMutations, handleDefaultRangeChangeWithEffectRefCommands, } 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
+ export { MergeCellController } from './controllers/merge-cell.controller';
@@ -13,8 +13,27 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import type { IRange } from '@univerjs/core';
16
+ import type { ICommandInfo, IRange } from '@univerjs/core';
17
+ import { RANGE_TYPE } from '@univerjs/core';
17
18
  import type { IDeleteRangeMoveLeftCommand, IDeleteRangeMoveUpCommand, IInsertColCommand, IInsertRangeMoveDownCommand, IInsertRangeMoveRightCommand, IInsertRowCommand, IMoveColsCommand, IMoveRangeCommand, IMoveRowsCommand, IOperator, IRemoveRowColCommand } from './type';
19
+ export declare const handleRangeTypeInput: (range: IRange) => {
20
+ startColumn: number;
21
+ endColumn: number;
22
+ rangeType?: RANGE_TYPE | undefined;
23
+ startAbsoluteRefType?: import("@univerjs/core").AbsoluteRefType | undefined;
24
+ endAbsoluteRefType?: import("@univerjs/core").AbsoluteRefType | undefined;
25
+ startRow: number;
26
+ endRow: number;
27
+ };
28
+ export declare const handleRangeTypeOutput: (range: IRange, maxRow: number, maxCol: number) => {
29
+ startColumn: number;
30
+ endColumn: number;
31
+ rangeType?: RANGE_TYPE | undefined;
32
+ startAbsoluteRefType?: import("@univerjs/core").AbsoluteRefType | undefined;
33
+ endAbsoluteRefType?: import("@univerjs/core").AbsoluteRefType | undefined;
34
+ startRow: number;
35
+ endRow: number;
36
+ };
18
37
  export declare const rotateRange: (range: IRange) => IRange;
19
38
  interface ILine {
20
39
  start: number;
@@ -30,13 +49,13 @@ export declare const handleBaseMoveRowsCols: (fromRange: ILine, toRange: ILine,
30
49
  export declare const handleMoveRows: (params: IMoveRowsCommand, targetRange: IRange) => IOperator[];
31
50
  export declare const handleMoveCols: (params: IMoveColsCommand, targetRange: IRange) => IOperator[];
32
51
  export declare const handleMoveRange: (param: IMoveRangeCommand, targetRange: IRange) => IOperator[];
33
- export declare const handleBaseRemoveRange: (removeRange: IRange, targetRange: IRange) => {
52
+ export declare const handleBaseRemoveRange: (_removeRange: IRange, _targetRange: IRange) => {
34
53
  step: number;
35
54
  length: number;
36
55
  } | null;
37
56
  export declare const handleIRemoveCol: (param: IRemoveRowColCommand, targetRange: IRange) => IOperator[];
38
57
  export declare const handleIRemoveRow: (param: IRemoveRowColCommand, targetRange: IRange) => IOperator[];
39
- export declare const handleBaseInsertRange: (insertRange: IRange, targetRange: IRange) => {
58
+ export declare const handleBaseInsertRange: (_insertRange: IRange, _targetRange: IRange) => {
40
59
  step: number;
41
60
  length: number;
42
61
  };
@@ -47,4 +66,5 @@ export declare const handleInsertRangeMoveRight: (param: IInsertRangeMoveRightCo
47
66
  export declare const handleDeleteRangeMoveLeft: (param: IDeleteRangeMoveLeftCommand, targetRange: IRange) => IOperator[];
48
67
  export declare const handleDeleteRangeMoveUp: (param: IDeleteRangeMoveUpCommand, targetRange: IRange) => IOperator[];
49
68
  export declare const runRefRangeMutations: (operators: IOperator[], range: IRange) => IRange | null;
69
+ export declare const handleDefaultRangeChangeWithEffectRefCommands: (range: IRange, commandInfo: ICommandInfo) => IRange | null;
50
70
  export {};