@odoo/o-spreadsheet 19.0.12 → 19.0.16

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.
@@ -2348,6 +2348,7 @@ declare class PivotCorePlugin extends CorePlugin<CoreState> implements CoreState
2348
2348
  declare class RangeAdapter$1 implements CommandHandler<CoreCommand> {
2349
2349
  private getters;
2350
2350
  private providers;
2351
+ private isAdaptingRanges;
2351
2352
  constructor(getters: CoreGetters);
2352
2353
  static getters: readonly ["adaptFormulaStringDependencies", "copyFormulaStringForSheet", "extendRange", "getRangeString", "getRangeFromSheetXC", "createAdaptedRanges", "getRangeData", "getRangeDataFromXc", "getRangeDataFromZone", "getRangeFromRangeData", "getRangeFromZone", "getRangesUnion", "recomputeRanges", "isRangeValid", "removeRangesSheetPrefix"];
2353
2354
  allowDispatch(cmd: CoreCommand): CommandResult;
@@ -2735,7 +2736,7 @@ declare class CoreViewPlugin<State = any> extends BasePlugin<State, Command> {
2735
2736
  }
2736
2737
 
2737
2738
  declare class EvaluationPlugin extends CoreViewPlugin {
2738
- static getters: readonly ["evaluateFormula", "evaluateFormulaResult", "evaluateCompiledFormula", "getCorrespondingFormulaCell", "getRangeFormattedValues", "getRangeValues", "getRangeFormats", "getEvaluatedCell", "getEvaluatedCells", "getEvaluatedCellsInZone", "getEvaluatedCellsPositions", "getSpreadZone", "getArrayFormulaSpreadingOn", "isEmpty"];
2739
+ static getters: readonly ["evaluateFormula", "evaluateFormulaResult", "evaluateCompiledFormula", "getCorrespondingFormulaCell", "getRangeFormattedValues", "getRangeValues", "getRangeFormats", "getEvaluatedCell", "getEvaluatedCells", "getEvaluatedCellsInZone", "getEvaluatedCellsPositions", "getSpreadZone", "getArrayFormulaSpreadingOn", "isArrayFormulaSpillBlocked", "isEmpty"];
2739
2740
  private shouldRebuildDependenciesGraph;
2740
2741
  private evaluator;
2741
2742
  private positionsToUpdate;
@@ -2769,6 +2770,7 @@ declare class EvaluationPlugin extends CoreViewPlugin {
2769
2770
  ignoreSpillError: boolean;
2770
2771
  }): Zone | undefined;
2771
2772
  getArrayFormulaSpreadingOn(position: CellPosition): CellPosition | undefined;
2773
+ isArrayFormulaSpillBlocked(position: CellPosition): boolean;
2772
2774
  /**
2773
2775
  * Check if a zone only contains empty cells
2774
2776
  */
@@ -4712,6 +4714,7 @@ declare class Session extends EventBus<CollaborativeEvent> {
4712
4714
  private onClientJoined;
4713
4715
  private onClientLeft;
4714
4716
  private sendUpdateMessage;
4717
+ private sendToTransport;
4715
4718
  /**
4716
4719
  * Send the next pending message
4717
4720
  */
@@ -6888,6 +6891,7 @@ interface PivotRegistryItem {
6888
6891
  isMeasureCandidate: (field: PivotField) => boolean;
6889
6892
  isGroupable: (field: PivotField) => boolean;
6890
6893
  canHaveCustomGroup: (field: PivotField) => boolean;
6894
+ adaptRanges?: (getters: CoreGetters, definition: PivotCoreDefinition, applyChange: ApplyRangeChange) => PivotCoreDefinition;
6891
6895
  }
6892
6896
 
6893
6897
  declare class ClipboardHandler<T> {
@@ -9272,7 +9276,7 @@ interface ChartSidePanel {
9272
9276
  */
9273
9277
  interface FigureContent {
9274
9278
  Component: any;
9275
- menuBuilder: (figureId: UID, onFigureDeleted: () => void, env: SpreadsheetChildEnv) => Action[];
9279
+ menuBuilder: (figureId: UID, env: SpreadsheetChildEnv) => Action[];
9276
9280
  SidePanelComponent?: string;
9277
9281
  keepRatio?: boolean;
9278
9282
  minFigSize?: number;
@@ -9640,7 +9644,6 @@ interface Props$U {
9640
9644
  figureUI: FigureUI;
9641
9645
  style: string;
9642
9646
  class: string;
9643
- onFigureDeleted: () => void;
9644
9647
  onMouseDown: (ev: MouseEvent) => void;
9645
9648
  onClickAnchor(dirX: ResizeDirection, dirY: ResizeDirection, ev: MouseEvent): void;
9646
9649
  }
@@ -9656,10 +9659,6 @@ declare class FigureComponent extends Component<Props$U, SpreadsheetChildEnv> {
9656
9659
  type: StringConstructor;
9657
9660
  optional: boolean;
9658
9661
  };
9659
- onFigureDeleted: {
9660
- type: FunctionConstructor;
9661
- optional: boolean;
9662
- };
9663
9662
  onMouseDown: {
9664
9663
  type: FunctionConstructor;
9665
9664
  optional: boolean;
@@ -9673,7 +9672,6 @@ declare class FigureComponent extends Component<Props$U, SpreadsheetChildEnv> {
9673
9672
  MenuPopover: typeof MenuPopover;
9674
9673
  };
9675
9674
  static defaultProps: {
9676
- onFigureDeleted: () => void;
9677
9675
  onMouseDown: () => void;
9678
9676
  onClickAnchor: () => void;
9679
9677
  };
@@ -9737,7 +9735,6 @@ declare class ChartDashboardMenu extends Component<Props$T, SpreadsheetChildEnv>
9737
9735
 
9738
9736
  interface Props$S {
9739
9737
  figureUI: FigureUI;
9740
- onFigureDeleted: () => void;
9741
9738
  editFigureStyle?: (properties: CSSProperties) => void;
9742
9739
  isFullScreen?: boolean;
9743
9740
  openContextMenu?: (anchorRect: Rect, onClose?: () => void) => void;
@@ -9746,7 +9743,6 @@ declare class ChartFigure extends Component<Props$S, SpreadsheetChildEnv> {
9746
9743
  static template: string;
9747
9744
  static props: {
9748
9745
  figureUI: ObjectConstructor;
9749
- onFigureDeleted: FunctionConstructor;
9750
9746
  editFigureStyle: {
9751
9747
  type: FunctionConstructor;
9752
9748
  optional: boolean;
@@ -9885,7 +9881,6 @@ interface SnapLine<T extends HFigureAxisType | VFigureAxisType> {
9885
9881
 
9886
9882
  type ContainerType = "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "dnd";
9887
9883
  interface Props$P {
9888
- onFigureDeleted: () => void;
9889
9884
  }
9890
9885
  interface Container {
9891
9886
  type: ContainerType;
@@ -9967,9 +9962,7 @@ interface DndState {
9967
9962
  */
9968
9963
  declare class FiguresContainer extends Component<Props$P, SpreadsheetChildEnv> {
9969
9964
  static template: string;
9970
- static props: {
9971
- onFigureDeleted: FunctionConstructor;
9972
- };
9965
+ static props: {};
9973
9966
  static components: {
9974
9967
  FigureComponent: typeof FigureComponent;
9975
9968
  };
@@ -10004,16 +9997,14 @@ declare class FiguresContainer extends Component<Props$P, SpreadsheetChildEnv> {
10004
9997
  }
10005
9998
 
10006
9999
  interface Props$O {
10007
- focusGrid: () => void;
10008
10000
  }
10009
10001
  declare class GridAddRowsFooter extends Component<Props$O, SpreadsheetChildEnv> {
10010
10002
  static template: string;
10011
- static props: {
10012
- focusGrid: FunctionConstructor;
10013
- };
10003
+ static props: {};
10014
10004
  static components: {
10015
10005
  ValidationMessages: typeof ValidationMessages;
10016
10006
  };
10007
+ private DOMFocusableElementStore;
10017
10008
  inputRef: {
10018
10009
  el: HTMLInputElement | null;
10019
10010
  };
@@ -10028,20 +10019,16 @@ declare class GridAddRowsFooter extends Component<Props$O, SpreadsheetChildEnv>
10028
10019
  onInput(ev: InputEvent): void;
10029
10020
  onConfirm(): void;
10030
10021
  private onExternalClick;
10022
+ private focusDefaultElement;
10031
10023
  }
10032
10024
 
10033
10025
  interface Props$N {
10034
10026
  onCellDoubleClicked: (col: HeaderIndex, row: HeaderIndex) => void;
10035
10027
  onCellClicked: (col: HeaderIndex, row: HeaderIndex, modifiers: GridClickModifiers, ev: PointerEvent | MouseEvent) => void;
10036
10028
  onCellRightClicked: (col: HeaderIndex, row: HeaderIndex, coordinates: DOMCoordinates) => void;
10037
- onGridResized: (dimension: Rect) => void;
10029
+ onGridResized: () => void;
10038
10030
  onGridMoved: (deltaX: Pixel, deltaY: Pixel) => void;
10039
10031
  gridOverlayDimensions: string;
10040
- onFigureDeleted: () => void;
10041
- getGridSize: () => {
10042
- width: number;
10043
- height: number;
10044
- };
10045
10032
  }
10046
10033
  declare class GridOverlay extends Component<Props$N, SpreadsheetChildEnv> {
10047
10034
  static template: string;
@@ -10062,17 +10049,12 @@ declare class GridOverlay extends Component<Props$N, SpreadsheetChildEnv> {
10062
10049
  type: FunctionConstructor;
10063
10050
  optional: boolean;
10064
10051
  };
10065
- onFigureDeleted: {
10066
- type: FunctionConstructor;
10067
- optional: boolean;
10068
- };
10069
10052
  onGridMoved: FunctionConstructor;
10070
10053
  gridOverlayDimensions: StringConstructor;
10071
10054
  slots: {
10072
10055
  type: ObjectConstructor;
10073
10056
  optional: boolean;
10074
10057
  };
10075
- getGridSize: FunctionConstructor;
10076
10058
  };
10077
10059
  static components: {
10078
10060
  FiguresContainer: typeof FiguresContainer;
@@ -10083,7 +10065,6 @@ declare class GridOverlay extends Component<Props$N, SpreadsheetChildEnv> {
10083
10065
  onCellClicked: () => void;
10084
10066
  onCellRightClicked: () => void;
10085
10067
  onGridResized: () => void;
10086
- onFigureDeleted: () => void;
10087
10068
  };
10088
10069
  private gridOverlay;
10089
10070
  private cellPopovers;
@@ -10613,7 +10594,7 @@ declare class Grid extends Component<Props$E, SpreadsheetChildEnv> {
10613
10594
  top: number;
10614
10595
  };
10615
10596
  get isAutofillVisible(): boolean;
10616
- onGridResized({ height, width }: DOMDimension): void;
10597
+ onGridResized(): void;
10617
10598
  private moveCanvas;
10618
10599
  private processSpaceKey;
10619
10600
  getClientPositionKey(client: Client): string;
@@ -12517,6 +12498,7 @@ declare class ClickableCellsStore extends SpreadsheetStore {
12517
12498
  }
12518
12499
 
12519
12500
  interface Props$4 {
12501
+ getGridSize: () => DOMDimension;
12520
12502
  }
12521
12503
  declare class SpreadsheetDashboard extends Component<Props$4, SpreadsheetChildEnv> {
12522
12504
  static template: string;
@@ -12549,9 +12531,10 @@ declare class SpreadsheetDashboard extends Component<Props$4, SpreadsheetChildEn
12549
12531
  getClickableCells(): ClickableCell[];
12550
12532
  selectClickableCell(ev: MouseEvent, clickableCell: ClickableCell): void;
12551
12533
  onClosePopover(): void;
12552
- onGridResized({ height, width }: DOMDimension): void;
12534
+ onGridResized(): void;
12553
12535
  private moveCanvas;
12554
12536
  private getGridRect;
12537
+ private getMaxSheetWidth;
12555
12538
  }
12556
12539
 
12557
12540
  interface Props$3 {