@univerjs/sheets 0.4.0-alpha.0 → 0.4.0-alpha.2

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.
@@ -0,0 +1,9 @@
1
+ import { ICommand } from '@univerjs/core';
2
+ export interface IToggleCellCheckboxCommandParams {
3
+ unitId: string;
4
+ subUnitId: string;
5
+ row: number;
6
+ col: number;
7
+ paragraphIndex: number;
8
+ }
9
+ export declare const ToggleCellCheckboxCommand: ICommand<IToggleCellCheckboxCommandParams>;
@@ -147,3 +147,4 @@ export { type ISetWorksheetRowAutoHeightMutationParams, type ISetWorksheetRowHei
147
147
  export { ScrollToCellOperation } from './commands/operations/scroll-to-cell.operation';
148
148
  export { type ISetSelectionsOperationParams, SetSelectionsOperation } from './commands/operations/selection.operation';
149
149
  export { type ISetWorksheetActiveOperationParams, SetWorksheetActiveOperation } from './commands/operations/set-worksheet-active.operation';
150
+ export { type IToggleCellCheckboxCommandParams, ToggleCellCheckboxCommand } from './commands/commands/toggle-checkbox.command';
@@ -1,4 +1,4 @@
1
- import { Disposable, IUniverInstanceService, RxDisposable, DeepReadonly, ISelectionCell, Nullable, Workbook } from '@univerjs/core';
1
+ import { DeepReadonly, ISelectionCell, Nullable, Workbook, Disposable, IUniverInstanceService, RxDisposable } from '@univerjs/core';
2
2
  import { Observable } from 'rxjs';
3
3
  import { ISelectionWithStyle } from '../../basics/selection';
4
4
  export interface ISelectionManagerSearchParam {
@@ -8,7 +8,11 @@ export interface ISelectionManagerSearchParam {
8
8
  export declare enum SelectionMoveType {
9
9
  MOVE_START = 0,
10
10
  MOVING = 1,
11
- MOVE_END = 2
11
+ MOVE_END = 2,
12
+ /**
13
+ * Events are not triggered by the API
14
+ */
15
+ ONLY_SET = 3
12
16
  }
13
17
  export declare class SheetsSelectionsService extends RxDisposable {
14
18
  protected readonly _instanceSrv: IUniverInstanceService;
@@ -56,6 +60,8 @@ export declare class WorkbookSelections extends Disposable {
56
60
  readonly selectionMoving$: Observable<Nullable<ISelectionWithStyle[]>>;
57
61
  private readonly _selectionMoveEnd$;
58
62
  readonly selectionMoveEnd$: Observable<ISelectionWithStyle[]>;
63
+ private readonly _selectionSet$;
64
+ readonly selectionSet$: Observable<ISelectionWithStyle[]>;
59
65
  private readonly _beforeSelectionMoveEnd$;
60
66
  readonly beforeSelectionMoveEnd$: Observable<ISelectionWithStyle[]>;
61
67
  constructor(_workbook: Workbook);