@odoo/o-spreadsheet 17.1.10 → 17.1.12

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.
@@ -4783,7 +4783,7 @@ declare class ClipboardPlugin extends UIPlugin {
4783
4783
  declare class FilterEvaluationPlugin extends UIPlugin {
4784
4784
  static getters: readonly ["getCellBorderWithFilterBorder", "getFilterValues", "isRowFiltered", "isFilterActive"];
4785
4785
  private filterValues;
4786
- hiddenRows: Set<number>;
4786
+ hiddenRows: Record<UID, Set<number> | undefined>;
4787
4787
  isEvaluationDirty: boolean;
4788
4788
  allowDispatch(cmd: LocalCommand): CommandResult;
4789
4789
  handle(cmd: Command): void;
@@ -4921,8 +4921,8 @@ declare class InternalViewport {
4921
4921
  canScrollHorizontally: boolean;
4922
4922
  viewportWidth: Pixel;
4923
4923
  viewportHeight: Pixel;
4924
- private offsetCorrectionX;
4925
- private offsetCorrectionY;
4924
+ offsetCorrectionX: Pixel;
4925
+ offsetCorrectionY: Pixel;
4926
4926
  constructor(getters: Getters, sheetId: UID, boundaries: Zone, sizeInGrid: DOMDimension, options: {
4927
4927
  canScrollVertically: boolean;
4928
4928
  canScrollHorizontally: boolean;
@@ -5117,11 +5117,6 @@ declare class SheetViewPlugin extends UIPlugin {
5117
5117
  private resizeSheetView;
5118
5118
  private recomputeViewports;
5119
5119
  private setSheetViewOffset;
5120
- /**
5121
- * Clip the vertical offset within the allowed range.
5122
- * Not above the sheet, nor below the sheet.
5123
- */
5124
- private clipOffsetY;
5125
5120
  private getViewportOffset;
5126
5121
  private resetViewports;
5127
5122
  /**
@@ -7154,7 +7149,6 @@ interface ClickableCell {
7154
7149
  coordinates: Rect;
7155
7150
  position: Position$1;
7156
7151
  action: (position: CellPosition, env: SpreadsheetChildEnv) => void;
7157
- tKey: string;
7158
7152
  }
7159
7153
  declare class SpreadsheetDashboard extends Component<Props$h, SpreadsheetChildEnv> {
7160
7154
  static template: string;
@@ -7515,10 +7509,12 @@ declare const groupColumns: ActionSpec;
7515
7509
  declare const groupRows: ActionSpec;
7516
7510
  declare const ungroupColumns: ActionSpec;
7517
7511
  declare const ungroupRows: ActionSpec;
7512
+ declare function createRemoveFilterAction(env: SpreadsheetChildEnv): void;
7518
7513
  declare function canUngroupHeaders(env: SpreadsheetChildEnv, dimension: Dimension): boolean;
7519
7514
 
7520
7515
  declare const ACTION_VIEW_canUngroupHeaders: typeof canUngroupHeaders;
7521
7516
  declare const ACTION_VIEW_createRemoveFilter: typeof createRemoveFilter;
7517
+ declare const ACTION_VIEW_createRemoveFilterAction: typeof createRemoveFilterAction;
7522
7518
  declare const ACTION_VIEW_freezeCurrentCol: typeof freezeCurrentCol;
7523
7519
  declare const ACTION_VIEW_freezeCurrentRow: typeof freezeCurrentRow;
7524
7520
  declare const ACTION_VIEW_freezeFirstCol: typeof freezeFirstCol;
@@ -7545,6 +7541,7 @@ declare namespace ACTION_VIEW {
7545
7541
  export {
7546
7542
  ACTION_VIEW_canUngroupHeaders as canUngroupHeaders,
7547
7543
  ACTION_VIEW_createRemoveFilter as createRemoveFilter,
7544
+ ACTION_VIEW_createRemoveFilterAction as createRemoveFilterAction,
7548
7545
  ACTION_VIEW_freezeCurrentCol as freezeCurrentCol,
7549
7546
  ACTION_VIEW_freezeCurrentRow as freezeCurrentRow,
7550
7547
  ACTION_VIEW_freezeFirstCol as freezeFirstCol,
@@ -7838,6 +7835,7 @@ interface ComposerProps {
7838
7835
  delimitation?: DOMDimension;
7839
7836
  onComposerContentFocused: () => void;
7840
7837
  onComposerCellFocused?: (content: String) => void;
7838
+ onInputContextMenu?: (event: MouseEvent) => void;
7841
7839
  isDefaultFocus?: boolean;
7842
7840
  }
7843
7841
  interface ComposerState$1 {
@@ -7884,6 +7882,10 @@ declare class Composer extends Component<ComposerProps, SpreadsheetChildEnv> {
7884
7882
  type: BooleanConstructor;
7885
7883
  optional: boolean;
7886
7884
  };
7885
+ onInputContextMenu: {
7886
+ type: FunctionConstructor;
7887
+ optional: boolean;
7888
+ };
7887
7889
  };
7888
7890
  static components: {
7889
7891
  TextValueProvider: typeof TextValueProvider;
@@ -7938,6 +7940,7 @@ declare class Composer extends Component<ComposerProps, SpreadsheetChildEnv> {
7938
7940
  onMousedown(ev: MouseEvent): void;
7939
7941
  onClick(): void;
7940
7942
  onDblClick(): void;
7943
+ onContextMenu(ev: MouseEvent): void;
7941
7944
  private processContent;
7942
7945
  /**
7943
7946
  * Get the HTML content corresponding to the current composer token, divided by lines.
@@ -8148,6 +8151,7 @@ interface Props$5 {
8148
8151
  onComposerContentFocused: () => void;
8149
8152
  onComposerCellFocused: () => void;
8150
8153
  gridDims: DOMDimension;
8154
+ onInputContextMenu: (event: MouseEvent) => void;
8151
8155
  }
8152
8156
  /**
8153
8157
  * This component is a composer which positions itself on the grid at the anchor cell.
@@ -8162,6 +8166,7 @@ declare class GridComposer extends Component<Props$5, SpreadsheetChildEnv> {
8162
8166
  onComposerCellFocused: FunctionConstructor;
8163
8167
  onComposerContentFocused: FunctionConstructor;
8164
8168
  gridDims: ObjectConstructor;
8169
+ onInputContextMenu: FunctionConstructor;
8165
8170
  };
8166
8171
  static components: {
8167
8172
  Composer: typeof Composer;