@odoo/o-spreadsheet 18.2.36 → 18.2.39

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.
@@ -4015,6 +4015,7 @@ interface RangeStringOptions {
4015
4015
  declare class RangeAdapter implements CommandHandler<CoreCommand> {
4016
4016
  private getters;
4017
4017
  private providers;
4018
+ private isAdaptingRanges;
4018
4019
  constructor(getters: CoreGetters);
4019
4020
  static getters: readonly ["adaptFormulaStringDependencies", "copyFormulaStringForSheet", "extendRange", "getRangeString", "getRangeFromSheetXC", "createAdaptedRanges", "getRangeDataFromXc", "getRangeDataFromZone", "getRangeFromRangeData", "getRangeFromZone", "getRangesUnion", "recomputeRanges", "isRangeValid", "removeRangesSheetPrefix"];
4020
4021
  allowDispatch(cmd: Command): CommandResult;
@@ -5106,7 +5107,7 @@ declare class CoreViewPlugin<State = any> extends BasePlugin<State, Command> {
5106
5107
  }
5107
5108
 
5108
5109
  declare class EvaluationPlugin extends CoreViewPlugin {
5109
- static getters: readonly ["evaluateFormula", "evaluateFormulaResult", "evaluateCompiledFormula", "getCorrespondingFormulaCell", "getRangeFormattedValues", "getRangeValues", "getRangeFormats", "getEvaluatedCell", "getEvaluatedCells", "getEvaluatedCellsInZone", "getEvaluatedCellsPositions", "getSpreadZone", "getArrayFormulaSpreadingOn", "isEmpty"];
5110
+ static getters: readonly ["evaluateFormula", "evaluateFormulaResult", "evaluateCompiledFormula", "getCorrespondingFormulaCell", "getRangeFormattedValues", "getRangeValues", "getRangeFormats", "getEvaluatedCell", "getEvaluatedCells", "getEvaluatedCellsInZone", "getEvaluatedCellsPositions", "getSpreadZone", "getArrayFormulaSpreadingOn", "isArrayFormulaSpillBlocked", "isEmpty"];
5110
5111
  private shouldRebuildDependenciesGraph;
5111
5112
  private evaluator;
5112
5113
  private positionsToUpdate;
@@ -5140,6 +5141,7 @@ declare class EvaluationPlugin extends CoreViewPlugin {
5140
5141
  ignoreSpillError: boolean;
5141
5142
  }): Zone | undefined;
5142
5143
  getArrayFormulaSpreadingOn(position: CellPosition): CellPosition | undefined;
5144
+ isArrayFormulaSpillBlocked(position: CellPosition): boolean;
5143
5145
  /**
5144
5146
  * Check if a zone only contains empty cells
5145
5147
  */
@@ -6367,6 +6369,7 @@ interface PivotRegistryItem {
6367
6369
  datetimeGranularities: string[];
6368
6370
  isMeasureCandidate: (field: PivotField) => boolean;
6369
6371
  isGroupable: (field: PivotField) => boolean;
6372
+ adaptRanges?: (getters: CoreGetters, definition: PivotCoreDefinition, applyChange: ApplyRangeChange) => PivotCoreDefinition;
6370
6373
  }
6371
6374
 
6372
6375
  declare class ClipboardHandler<T> {
@@ -8411,7 +8414,7 @@ interface AutofillRule {
8411
8414
  */
8412
8415
  interface FigureContent {
8413
8416
  Component: any;
8414
- menuBuilder: (figureId: UID, onFigureDeleted: () => void, env: SpreadsheetChildEnv) => Action[];
8417
+ menuBuilder: (figureId: UID, env: SpreadsheetChildEnv) => Action[];
8415
8418
  SidePanelComponent?: string;
8416
8419
  keepRatio?: boolean;
8417
8420
  minFigSize?: number;
@@ -8843,7 +8846,6 @@ type ResizeAnchor = "top left" | "top" | "top right" | "right" | "bottom right"
8843
8846
  interface Props$M {
8844
8847
  figure: Figure;
8845
8848
  style: string;
8846
- onFigureDeleted: () => void;
8847
8849
  onMouseDown: (ev: MouseEvent) => void;
8848
8850
  onClickAnchor(dirX: ResizeDirection, dirY: ResizeDirection, ev: MouseEvent): void;
8849
8851
  }
@@ -8855,10 +8857,6 @@ declare class FigureComponent extends Component<Props$M, SpreadsheetChildEnv> {
8855
8857
  type: StringConstructor;
8856
8858
  optional: boolean;
8857
8859
  };
8858
- onFigureDeleted: {
8859
- type: FunctionConstructor;
8860
- optional: boolean;
8861
- };
8862
8860
  onMouseDown: {
8863
8861
  type: FunctionConstructor;
8864
8862
  optional: boolean;
@@ -8872,7 +8870,6 @@ declare class FigureComponent extends Component<Props$M, SpreadsheetChildEnv> {
8872
8870
  Menu: typeof Menu;
8873
8871
  };
8874
8872
  static defaultProps: {
8875
- onFigureDeleted: () => void;
8876
8873
  onMouseDown: () => void;
8877
8874
  onClickAnchor: () => void;
8878
8875
  };
@@ -8898,13 +8895,11 @@ declare class FigureComponent extends Component<Props$M, SpreadsheetChildEnv> {
8898
8895
 
8899
8896
  interface Props$L {
8900
8897
  figure: Figure;
8901
- onFigureDeleted: () => void;
8902
8898
  }
8903
8899
  declare class ChartFigure extends Component<Props$L, SpreadsheetChildEnv> {
8904
8900
  static template: string;
8905
8901
  static props: {
8906
8902
  figure: ObjectConstructor;
8907
- onFigureDeleted: FunctionConstructor;
8908
8903
  };
8909
8904
  static components: {};
8910
8905
  onDoubleClick(): void;
@@ -9075,7 +9070,6 @@ interface SnapLine<T extends HFigureAxisType | VFigureAxisType> {
9075
9070
 
9076
9071
  type ContainerType = "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "dnd";
9077
9072
  interface Props$G {
9078
- onFigureDeleted: () => void;
9079
9073
  }
9080
9074
  interface Container {
9081
9075
  type: ContainerType;
@@ -9156,9 +9150,7 @@ interface DndState {
9156
9150
  */
9157
9151
  declare class FiguresContainer extends Component<Props$G, SpreadsheetChildEnv> {
9158
9152
  static template: string;
9159
- static props: {
9160
- onFigureDeleted: FunctionConstructor;
9161
- };
9153
+ static props: {};
9162
9154
  static components: {
9163
9155
  FigureComponent: typeof FigureComponent;
9164
9156
  };
@@ -9215,16 +9207,14 @@ declare class FilterIconsOverlay extends Component<{}, SpreadsheetChildEnv> {
9215
9207
  }
9216
9208
 
9217
9209
  interface Props$E {
9218
- focusGrid: () => void;
9219
9210
  }
9220
9211
  declare class GridAddRowsFooter extends Component<Props$E, SpreadsheetChildEnv> {
9221
9212
  static template: string;
9222
- static props: {
9223
- focusGrid: FunctionConstructor;
9224
- };
9213
+ static props: {};
9225
9214
  static components: {
9226
9215
  ValidationMessages: typeof ValidationMessages;
9227
9216
  };
9217
+ private DOMFocusableElementStore;
9228
9218
  inputRef: {
9229
9219
  el: HTMLInputElement | null;
9230
9220
  };
@@ -9239,6 +9229,7 @@ declare class GridAddRowsFooter extends Component<Props$E, SpreadsheetChildEnv>
9239
9229
  onInput(ev: InputEvent): void;
9240
9230
  onConfirm(): void;
9241
9231
  private onExternalClick;
9232
+ private focusDefaultElement;
9242
9233
  }
9243
9234
 
9244
9235
  interface Props$D {
@@ -9249,7 +9240,6 @@ interface Props$D {
9249
9240
  onGridResized: (dimension: Rect) => void;
9250
9241
  onGridMoved: (deltaX: Pixel, deltaY: Pixel) => void;
9251
9242
  gridOverlayDimensions: string;
9252
- onFigureDeleted: () => void;
9253
9243
  }
9254
9244
  declare class GridOverlay extends Component<Props$D, SpreadsheetChildEnv> {
9255
9245
  static template: string;
@@ -9274,10 +9264,6 @@ declare class GridOverlay extends Component<Props$D, SpreadsheetChildEnv> {
9274
9264
  type: FunctionConstructor;
9275
9265
  optional: boolean;
9276
9266
  };
9277
- onFigureDeleted: {
9278
- type: FunctionConstructor;
9279
- optional: boolean;
9280
- };
9281
9267
  onGridMoved: FunctionConstructor;
9282
9268
  gridOverlayDimensions: StringConstructor;
9283
9269
  };
@@ -9293,7 +9279,6 @@ declare class GridOverlay extends Component<Props$D, SpreadsheetChildEnv> {
9293
9279
  onCellClicked: () => void;
9294
9280
  onCellRightClicked: () => void;
9295
9281
  onGridResized: () => void;
9296
- onFigureDeleted: () => void;
9297
9282
  };
9298
9283
  private gridOverlay;
9299
9284
  private gridOverlayRect;