@odoo/o-spreadsheet 18.0.49 → 18.0.53

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.
@@ -3487,6 +3487,7 @@ interface RangeStringOptions {
3487
3487
  declare class RangeAdapter implements CommandHandler<CoreCommand> {
3488
3488
  private getters;
3489
3489
  private providers;
3490
+ private isAdaptingRanges;
3490
3491
  constructor(getters: CoreGetters);
3491
3492
  static getters: readonly ["extendRange", "getRangeString", "getRangeFromSheetXC", "createAdaptedRanges", "getRangeDataFromXc", "getRangeDataFromZone", "getRangeFromRangeData", "getRangeFromZone", "getRangesUnion", "recomputeRanges", "isRangeValid", "removeRangesSheetPrefix"];
3492
3493
  allowDispatch(cmd: Command): CommandResult;
@@ -4539,7 +4540,7 @@ declare class TablePlugin extends CorePlugin<TableState> implements TableState {
4539
4540
  }
4540
4541
 
4541
4542
  declare class EvaluationPlugin extends UIPlugin {
4542
- static getters: readonly ["evaluateFormula", "evaluateFormulaResult", "evaluateCompiledFormula", "getCorrespondingFormulaCell", "getRangeFormattedValues", "getRangeValues", "getRangeFormats", "getEvaluatedCell", "getEvaluatedCells", "getEvaluatedCellsInZone", "getEvaluatedCellsPositions", "getSpreadZone", "getArrayFormulaSpreadingOn", "isEmpty"];
4543
+ static getters: readonly ["evaluateFormula", "evaluateFormulaResult", "evaluateCompiledFormula", "getCorrespondingFormulaCell", "getRangeFormattedValues", "getRangeValues", "getRangeFormats", "getEvaluatedCell", "getEvaluatedCells", "getEvaluatedCellsInZone", "getEvaluatedCellsPositions", "getSpreadZone", "getArrayFormulaSpreadingOn", "isArrayFormulaSpillBlocked", "isEmpty"];
4543
4544
  private shouldRebuildDependenciesGraph;
4544
4545
  private evaluator;
4545
4546
  private positionsToUpdate;
@@ -4573,6 +4574,7 @@ declare class EvaluationPlugin extends UIPlugin {
4573
4574
  ignoreSpillError: boolean;
4574
4575
  }): Zone | undefined;
4575
4576
  getArrayFormulaSpreadingOn(position: CellPosition): CellPosition | undefined;
4577
+ isArrayFormulaSpillBlocked(position: CellPosition): boolean;
4576
4578
  /**
4577
4579
  * Check if a zone only contains empty cells
4578
4580
  */
@@ -6189,11 +6191,11 @@ type PivotDefinitionConstructor = new (definition: PivotCoreDefinition, fields:
6189
6191
  interface PivotRegistryItem {
6190
6192
  ui: PivotUIConstructor;
6191
6193
  definition: PivotDefinitionConstructor;
6192
- externalData: boolean;
6193
6194
  dateGranularities: string[];
6194
6195
  datetimeGranularities: string[];
6195
6196
  isMeasureCandidate: (field: PivotField) => boolean;
6196
6197
  isGroupable: (field: PivotField) => boolean;
6198
+ adaptRanges?: (getters: CoreGetters, definition: PivotCoreDefinition, applyChange: ApplyRangeChange) => PivotCoreDefinition;
6197
6199
  }
6198
6200
 
6199
6201
  declare class ClipboardHandler<T> {
@@ -7705,7 +7707,7 @@ interface ChartSidePanel {
7705
7707
  */
7706
7708
  interface FigureContent {
7707
7709
  Component: any;
7708
- menuBuilder: (figureId: UID, onFigureDeleted: () => void, env: SpreadsheetChildEnv) => Action[];
7710
+ menuBuilder: (figureId: UID, env: SpreadsheetChildEnv) => Action[];
7709
7711
  SidePanelComponent?: string;
7710
7712
  keepRatio?: boolean;
7711
7713
  minFigSize?: number;
@@ -8432,7 +8434,6 @@ type ResizeAnchor = "top left" | "top" | "top right" | "right" | "bottom right"
8432
8434
  interface Props$K {
8433
8435
  figure: Figure;
8434
8436
  style: string;
8435
- onFigureDeleted: () => void;
8436
8437
  onMouseDown: (ev: MouseEvent) => void;
8437
8438
  onClickAnchor(dirX: ResizeDirection, dirY: ResizeDirection, ev: MouseEvent): void;
8438
8439
  }
@@ -8444,10 +8445,6 @@ declare class FigureComponent extends Component<Props$K, SpreadsheetChildEnv> {
8444
8445
  type: StringConstructor;
8445
8446
  optional: boolean;
8446
8447
  };
8447
- onFigureDeleted: {
8448
- type: FunctionConstructor;
8449
- optional: boolean;
8450
- };
8451
8448
  onMouseDown: {
8452
8449
  type: FunctionConstructor;
8453
8450
  optional: boolean;
@@ -8461,7 +8458,6 @@ declare class FigureComponent extends Component<Props$K, SpreadsheetChildEnv> {
8461
8458
  Menu: typeof Menu;
8462
8459
  };
8463
8460
  static defaultProps: {
8464
- onFigureDeleted: () => void;
8465
8461
  onMouseDown: () => void;
8466
8462
  onClickAnchor: () => void;
8467
8463
  };
@@ -8487,13 +8483,11 @@ declare class FigureComponent extends Component<Props$K, SpreadsheetChildEnv> {
8487
8483
 
8488
8484
  interface Props$J {
8489
8485
  figure: Figure;
8490
- onFigureDeleted: () => void;
8491
8486
  }
8492
8487
  declare class ChartFigure extends Component<Props$J, SpreadsheetChildEnv> {
8493
8488
  static template: string;
8494
8489
  static props: {
8495
8490
  figure: ObjectConstructor;
8496
- onFigureDeleted: FunctionConstructor;
8497
8491
  };
8498
8492
  static components: {};
8499
8493
  onDoubleClick(): void;
@@ -8664,7 +8658,6 @@ interface SnapLine<T extends HFigureAxisType | VFigureAxisType> {
8664
8658
 
8665
8659
  type ContainerType = "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "dnd";
8666
8660
  interface Props$E {
8667
- onFigureDeleted: () => void;
8668
8661
  }
8669
8662
  interface Container {
8670
8663
  type: ContainerType;
@@ -8745,9 +8738,7 @@ interface DndState {
8745
8738
  */
8746
8739
  declare class FiguresContainer extends Component<Props$E, SpreadsheetChildEnv> {
8747
8740
  static template: string;
8748
- static props: {
8749
- onFigureDeleted: FunctionConstructor;
8750
- };
8741
+ static props: {};
8751
8742
  static components: {
8752
8743
  FigureComponent: typeof FigureComponent;
8753
8744
  };
@@ -8824,16 +8815,14 @@ declare class FilterIconsOverlay extends Component<{}, SpreadsheetChildEnv> {
8824
8815
  }
8825
8816
 
8826
8817
  interface Props$C {
8827
- focusGrid: () => void;
8828
8818
  }
8829
8819
  declare class GridAddRowsFooter extends Component<Props$C, SpreadsheetChildEnv> {
8830
8820
  static template: string;
8831
- static props: {
8832
- focusGrid: FunctionConstructor;
8833
- };
8821
+ static props: {};
8834
8822
  static components: {
8835
8823
  ValidationMessages: typeof ValidationMessages;
8836
8824
  };
8825
+ private DOMFocusableElementStore;
8837
8826
  inputRef: {
8838
8827
  el: HTMLInputElement | null;
8839
8828
  };
@@ -8848,6 +8837,7 @@ declare class GridAddRowsFooter extends Component<Props$C, SpreadsheetChildEnv>
8848
8837
  onInput(ev: InputEvent): void;
8849
8838
  onConfirm(): void;
8850
8839
  private onExternalClick;
8840
+ private focusDefaultElement;
8851
8841
  }
8852
8842
 
8853
8843
  interface Props$B {
@@ -8858,7 +8848,6 @@ interface Props$B {
8858
8848
  onGridResized: (dimension: Rect) => void;
8859
8849
  onGridMoved: (deltaX: Pixel, deltaY: Pixel) => void;
8860
8850
  gridOverlayDimensions: string;
8861
- onFigureDeleted: () => void;
8862
8851
  }
8863
8852
  declare class GridOverlay extends Component<Props$B, SpreadsheetChildEnv> {
8864
8853
  static template: string;
@@ -8883,10 +8872,6 @@ declare class GridOverlay extends Component<Props$B, SpreadsheetChildEnv> {
8883
8872
  type: FunctionConstructor;
8884
8873
  optional: boolean;
8885
8874
  };
8886
- onFigureDeleted: {
8887
- type: FunctionConstructor;
8888
- optional: boolean;
8889
- };
8890
8875
  onGridMoved: FunctionConstructor;
8891
8876
  gridOverlayDimensions: StringConstructor;
8892
8877
  };
@@ -8902,7 +8887,6 @@ declare class GridOverlay extends Component<Props$B, SpreadsheetChildEnv> {
8902
8887
  onCellClicked: () => void;
8903
8888
  onCellRightClicked: () => void;
8904
8889
  onGridResized: () => void;
8905
- onFigureDeleted: () => void;
8906
8890
  };
8907
8891
  private gridOverlay;
8908
8892
  private gridOverlayRect;