@odoo/o-spreadsheet 19.0.5 → 19.0.6

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.
@@ -8679,7 +8679,10 @@ declare abstract class AbstractComposerStore extends SpreadsheetStore {
8679
8679
  private highlightStore;
8680
8680
  constructor(get: Get);
8681
8681
  protected abstract confirmEdition(content: string): void;
8682
- protected abstract getComposerContent(position: CellPosition): string;
8682
+ protected abstract getComposerContent(position: CellPosition, selection?: ComposerSelection): {
8683
+ text: string;
8684
+ adjustedSelection?: ComposerSelection;
8685
+ };
8683
8686
  abstract stopEdition(direction?: Direction$1): void;
8684
8687
  private handleEvent;
8685
8688
  changeComposerCursorSelection(start: number, end: number): void;
@@ -8802,7 +8805,10 @@ declare class CellComposerStore extends AbstractComposerStore {
8802
8805
  private onRowsRemoved;
8803
8806
  private onAddElements;
8804
8807
  protected confirmEdition(content: string): void;
8805
- protected getComposerContent(position: CellPosition): string;
8808
+ protected getComposerContent(position: CellPosition, selection?: ComposerSelection): {
8809
+ text: string;
8810
+ adjustedSelection?: ComposerSelection;
8811
+ };
8806
8812
  private getPrettifiedFormula;
8807
8813
  private numberComposerContent;
8808
8814
  /** Add headers at the end of the sheet so the formula in the composer has enough space to spread */
@@ -8823,8 +8829,8 @@ interface CellComposerProps {
8823
8829
  inputStyle?: string;
8824
8830
  rect?: Rect;
8825
8831
  delimitation?: DOMDimension;
8826
- onComposerContentFocused: () => void;
8827
- onComposerCellFocused?: (content: String) => void;
8832
+ onComposerContentFocused: (selection: ComposerSelection) => void;
8833
+ onComposerCellFocused?: (content: string) => void;
8828
8834
  onInputContextMenu?: (event: MouseEvent) => void;
8829
8835
  isDefaultFocus?: boolean;
8830
8836
  composerStore: Store<CellComposerStore>;
@@ -9434,6 +9440,7 @@ declare class ChartJsComponent extends Component<Props$X, SpreadsheetChildEnv> {
9434
9440
  plugins?: chart_js_auto.Plugin<any, chart_js_dist_types_basic.AnyObject>[] | undefined;
9435
9441
  platform?: typeof chart_js_auto.BasePlatform;
9436
9442
  };
9443
+ private getChartDataInRuntime;
9437
9444
  get animationChartId(): string;
9438
9445
  }
9439
9446
 
@@ -9681,7 +9688,7 @@ declare class FigureComponent extends Component<Props$U, SpreadsheetChildEnv> {
9681
9688
  private postionInBoundary;
9682
9689
  onContextMenu(ev: MouseEvent): void;
9683
9690
  showMenu(): void;
9684
- private openContextMenu;
9691
+ openContextMenu(anchorRect: Rect): void;
9685
9692
  editWrapperStyle(properties: CSSProperties): void;
9686
9693
  }
9687
9694
 
@@ -9725,6 +9732,7 @@ interface Props$S {
9725
9732
  onFigureDeleted: () => void;
9726
9733
  editFigureStyle?: (properties: CSSProperties) => void;
9727
9734
  isFullScreen?: boolean;
9735
+ openContextMenu?: (anchorRect: Rect, onClose?: () => void) => void;
9728
9736
  }
9729
9737
  declare class ChartFigure extends Component<Props$S, SpreadsheetChildEnv> {
9730
9738
  static template: string;
@@ -9739,6 +9747,10 @@ declare class ChartFigure extends Component<Props$S, SpreadsheetChildEnv> {
9739
9747
  type: BooleanConstructor;
9740
9748
  optional: boolean;
9741
9749
  };
9750
+ openContextMenu: {
9751
+ type: FunctionConstructor;
9752
+ optional: boolean;
9753
+ };
9742
9754
  };
9743
9755
  static components: {
9744
9756
  ChartDashboardMenu: typeof ChartDashboardMenu;
@@ -12649,12 +12661,14 @@ declare class RibbonMenu extends Component<RibbonMenuProps, SpreadsheetChildEnv>
12649
12661
  };
12650
12662
  rootItems: Action[];
12651
12663
  private menuRef;
12664
+ private containerRef;
12652
12665
  state: State$1;
12653
12666
  setup(): void;
12654
12667
  onExternalClick(ev: Event): void;
12655
12668
  onClickMenu(menu: Action): void;
12656
12669
  get menuProps(): MenuProps;
12657
12670
  get style(): string;
12671
+ updateShadows(): void;
12658
12672
  onClickBack(): void;
12659
12673
  get backTitle(): string;
12660
12674
  }