@odoo/o-spreadsheet 18.4.18 → 18.4.22

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.
@@ -4371,6 +4371,7 @@ interface SpreadsheetChildEnv extends NotificationStoreMethods {
4371
4371
  declare class RangeAdapter implements CommandHandler<CoreCommand> {
4372
4372
  private getters;
4373
4373
  private providers;
4374
+ private isAdaptingRanges;
4374
4375
  constructor(getters: CoreGetters);
4375
4376
  static getters: readonly ["adaptFormulaStringDependencies", "copyFormulaStringForSheet", "extendRange", "getRangeString", "getRangeFromSheetXC", "createAdaptedRanges", "getRangeData", "getRangeDataFromXc", "getRangeDataFromZone", "getRangeFromRangeData", "getRangeFromZone", "getRangesUnion", "recomputeRanges", "isRangeValid", "removeRangesSheetPrefix"];
4376
4377
  allowDispatch(cmd: CoreCommand): CommandResult;
@@ -5462,7 +5463,7 @@ declare class CoreViewPlugin<State = any> extends BasePlugin<State, Command> {
5462
5463
  }
5463
5464
 
5464
5465
  declare class EvaluationPlugin extends CoreViewPlugin {
5465
- static getters: readonly ["evaluateFormula", "evaluateFormulaResult", "evaluateCompiledFormula", "getCorrespondingFormulaCell", "getRangeFormattedValues", "getRangeValues", "getRangeFormats", "getEvaluatedCell", "getEvaluatedCells", "getEvaluatedCellsInZone", "getEvaluatedCellsPositions", "getSpreadZone", "getArrayFormulaSpreadingOn", "isEmpty"];
5466
+ static getters: readonly ["evaluateFormula", "evaluateFormulaResult", "evaluateCompiledFormula", "getCorrespondingFormulaCell", "getRangeFormattedValues", "getRangeValues", "getRangeFormats", "getEvaluatedCell", "getEvaluatedCells", "getEvaluatedCellsInZone", "getEvaluatedCellsPositions", "getSpreadZone", "getArrayFormulaSpreadingOn", "isArrayFormulaSpillBlocked", "isEmpty"];
5466
5467
  private shouldRebuildDependenciesGraph;
5467
5468
  private evaluator;
5468
5469
  private positionsToUpdate;
@@ -5496,6 +5497,7 @@ declare class EvaluationPlugin extends CoreViewPlugin {
5496
5497
  ignoreSpillError: boolean;
5497
5498
  }): Zone | undefined;
5498
5499
  getArrayFormulaSpreadingOn(position: CellPosition): CellPosition | undefined;
5500
+ isArrayFormulaSpillBlocked(position: CellPosition): boolean;
5499
5501
  /**
5500
5502
  * Check if a zone only contains empty cells
5501
5503
  */
@@ -6766,11 +6768,11 @@ type PivotDefinitionConstructor = new (definition: PivotCoreDefinition, fields:
6766
6768
  interface PivotRegistryItem {
6767
6769
  ui: PivotUIConstructor;
6768
6770
  definition: PivotDefinitionConstructor;
6769
- externalData: boolean;
6770
6771
  dateGranularities: string[];
6771
6772
  datetimeGranularities: string[];
6772
6773
  isMeasureCandidate: (field: PivotField) => boolean;
6773
6774
  isGroupable: (field: PivotField) => boolean;
6775
+ adaptRanges?: (getters: CoreGetters, definition: PivotCoreDefinition, applyChange: ApplyRangeChange) => PivotCoreDefinition;
6774
6776
  }
6775
6777
 
6776
6778
  declare class ClipboardHandler<T> {
@@ -9124,7 +9126,7 @@ interface ChartSidePanel {
9124
9126
  */
9125
9127
  interface FigureContent {
9126
9128
  Component: any;
9127
- menuBuilder: (figureId: UID, onFigureDeleted: () => void, env: SpreadsheetChildEnv) => Action[];
9129
+ menuBuilder: (figureId: UID, env: SpreadsheetChildEnv) => Action[];
9128
9130
  SidePanelComponent?: string;
9129
9131
  keepRatio?: boolean;
9130
9132
  minFigSize?: number;
@@ -9469,7 +9471,6 @@ type ResizeAnchor = "top left" | "top" | "top right" | "right" | "bottom right"
9469
9471
  interface Props$M {
9470
9472
  figureUI: FigureUI;
9471
9473
  style: string;
9472
- onFigureDeleted: () => void;
9473
9474
  onMouseDown: (ev: MouseEvent) => void;
9474
9475
  onClickAnchor(dirX: ResizeDirection, dirY: ResizeDirection, ev: MouseEvent): void;
9475
9476
  }
@@ -9481,10 +9482,6 @@ declare class FigureComponent extends Component<Props$M, SpreadsheetChildEnv> {
9481
9482
  type: StringConstructor;
9482
9483
  optional: boolean;
9483
9484
  };
9484
- onFigureDeleted: {
9485
- type: FunctionConstructor;
9486
- optional: boolean;
9487
- };
9488
9485
  onMouseDown: {
9489
9486
  type: FunctionConstructor;
9490
9487
  optional: boolean;
@@ -9498,7 +9495,6 @@ declare class FigureComponent extends Component<Props$M, SpreadsheetChildEnv> {
9498
9495
  MenuPopover: typeof MenuPopover;
9499
9496
  };
9500
9497
  static defaultProps: {
9501
- onFigureDeleted: () => void;
9502
9498
  onMouseDown: () => void;
9503
9499
  onClickAnchor: () => void;
9504
9500
  };
@@ -9557,13 +9553,11 @@ declare class ChartDashboardMenu extends Component<Props$L, SpreadsheetChildEnv>
9557
9553
 
9558
9554
  interface Props$K {
9559
9555
  figureUI: FigureUI;
9560
- onFigureDeleted: () => void;
9561
9556
  }
9562
9557
  declare class ChartFigure extends Component<Props$K, SpreadsheetChildEnv> {
9563
9558
  static template: string;
9564
9559
  static props: {
9565
9560
  figureUI: ObjectConstructor;
9566
- onFigureDeleted: FunctionConstructor;
9567
9561
  };
9568
9562
  static components: {
9569
9563
  ChartDashboardMenu: typeof ChartDashboardMenu;
@@ -9689,7 +9683,6 @@ interface SnapLine<T extends HFigureAxisType | VFigureAxisType> {
9689
9683
 
9690
9684
  type ContainerType = "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "dnd";
9691
9685
  interface Props$H {
9692
- onFigureDeleted: () => void;
9693
9686
  }
9694
9687
  interface Container {
9695
9688
  type: ContainerType;
@@ -9770,9 +9763,7 @@ interface DndState {
9770
9763
  */
9771
9764
  declare class FiguresContainer extends Component<Props$H, SpreadsheetChildEnv> {
9772
9765
  static template: string;
9773
- static props: {
9774
- onFigureDeleted: FunctionConstructor;
9775
- };
9766
+ static props: {};
9776
9767
  static components: {
9777
9768
  FigureComponent: typeof FigureComponent;
9778
9769
  };
@@ -9805,16 +9796,14 @@ declare class FiguresContainer extends Component<Props$H, SpreadsheetChildEnv> {
9805
9796
  }
9806
9797
 
9807
9798
  interface Props$G {
9808
- focusGrid: () => void;
9809
9799
  }
9810
9800
  declare class GridAddRowsFooter extends Component<Props$G, SpreadsheetChildEnv> {
9811
9801
  static template: string;
9812
- static props: {
9813
- focusGrid: FunctionConstructor;
9814
- };
9802
+ static props: {};
9815
9803
  static components: {
9816
9804
  ValidationMessages: typeof ValidationMessages;
9817
9805
  };
9806
+ private DOMFocusableElementStore;
9818
9807
  inputRef: {
9819
9808
  el: HTMLInputElement | null;
9820
9809
  };
@@ -9829,6 +9818,7 @@ declare class GridAddRowsFooter extends Component<Props$G, SpreadsheetChildEnv>
9829
9818
  onInput(ev: InputEvent): void;
9830
9819
  onConfirm(): void;
9831
9820
  private onExternalClick;
9821
+ private focusDefaultElement;
9832
9822
  }
9833
9823
 
9834
9824
  interface Props$F {
@@ -9838,7 +9828,6 @@ interface Props$F {
9838
9828
  onGridResized: (dimension: Rect) => void;
9839
9829
  onGridMoved: (deltaX: Pixel, deltaY: Pixel) => void;
9840
9830
  gridOverlayDimensions: string;
9841
- onFigureDeleted: () => void;
9842
9831
  getGridSize: () => {
9843
9832
  width: number;
9844
9833
  height: number;
@@ -9863,10 +9852,6 @@ declare class GridOverlay extends Component<Props$F, SpreadsheetChildEnv> {
9863
9852
  type: FunctionConstructor;
9864
9853
  optional: boolean;
9865
9854
  };
9866
- onFigureDeleted: {
9867
- type: FunctionConstructor;
9868
- optional: boolean;
9869
- };
9870
9855
  onGridMoved: FunctionConstructor;
9871
9856
  gridOverlayDimensions: StringConstructor;
9872
9857
  slots: {
@@ -9884,7 +9869,6 @@ declare class GridOverlay extends Component<Props$F, SpreadsheetChildEnv> {
9884
9869
  onCellClicked: () => void;
9885
9870
  onCellRightClicked: () => void;
9886
9871
  onGridResized: () => void;
9887
- onFigureDeleted: () => void;
9888
9872
  };
9889
9873
  private gridOverlay;
9890
9874
  private cellPopovers;
@@ -11990,6 +11974,7 @@ declare class ClickableCellsStore extends SpreadsheetStore {
11990
11974
  private getClickableItem;
11991
11975
  private findClickableItem;
11992
11976
  get clickableCells(): ClickableCell[];
11977
+ private getClickableCellRect;
11993
11978
  }
11994
11979
 
11995
11980
  interface Props$4 {