@odoo/o-spreadsheet 19.1.0-alpha.4 → 19.1.0-alpha.5

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.
@@ -3104,6 +3104,16 @@ declare class SpreadsheetPivotTable {
3104
3104
  sort(measure: string, sortedColumn: PivotSortedColumn, getValue: (measure: string, domain: PivotDomain) => FunctionResultObject): void;
3105
3105
  private rowTreeToRows;
3106
3106
  get numberOfCells(): number;
3107
+ getColumnDomainsAtDepth(depth: number): {
3108
+ type: string;
3109
+ field: string;
3110
+ value: CellValue;
3111
+ }[][];
3112
+ getRowDomainsAtDepth(depth: number): {
3113
+ type: string;
3114
+ field: string;
3115
+ value: CellValue;
3116
+ }[][];
3107
3117
  }
3108
3118
 
3109
3119
  interface InitPivotParams {
@@ -8654,7 +8664,10 @@ declare abstract class AbstractComposerStore extends SpreadsheetStore {
8654
8664
  private highlightStore;
8655
8665
  constructor(get: Get);
8656
8666
  protected abstract confirmEdition(content: string): void;
8657
- protected abstract getComposerContent(position: CellPosition): string;
8667
+ protected abstract getComposerContent(position: CellPosition, selection?: ComposerSelection): {
8668
+ text: string;
8669
+ adjustedSelection?: ComposerSelection;
8670
+ };
8658
8671
  abstract stopEdition(direction?: Direction$1): void;
8659
8672
  private handleEvent;
8660
8673
  changeComposerCursorSelection(start: number, end: number): void;
@@ -8777,7 +8790,10 @@ declare class CellComposerStore extends AbstractComposerStore {
8777
8790
  private onRowsRemoved;
8778
8791
  private onAddElements;
8779
8792
  protected confirmEdition(content: string): void;
8780
- protected getComposerContent(position: CellPosition): string;
8793
+ protected getComposerContent(position: CellPosition, selection?: ComposerSelection): {
8794
+ text: string;
8795
+ adjustedSelection?: ComposerSelection;
8796
+ };
8781
8797
  private getPrettifiedFormula;
8782
8798
  private numberComposerContent;
8783
8799
  /** Add headers at the end of the sheet so the formula in the composer has enough space to spread */
@@ -8798,8 +8814,8 @@ interface CellComposerProps {
8798
8814
  inputStyle?: string;
8799
8815
  rect?: Rect;
8800
8816
  delimitation?: DOMDimension;
8801
- onComposerContentFocused: () => void;
8802
- onComposerCellFocused?: (content: String) => void;
8817
+ onComposerContentFocused: (selection: ComposerSelection) => void;
8818
+ onComposerCellFocused?: (content: string) => void;
8803
8819
  onInputContextMenu?: (event: MouseEvent) => void;
8804
8820
  isDefaultFocus?: boolean;
8805
8821
  composerStore: Store<CellComposerStore>;
@@ -9409,6 +9425,7 @@ declare class ChartJsComponent extends Component<Props$X, SpreadsheetChildEnv> {
9409
9425
  plugins?: chart_js_auto.Plugin<any, chart_js_dist_types_basic.AnyObject>[] | undefined;
9410
9426
  platform?: typeof chart_js_auto.BasePlatform;
9411
9427
  };
9428
+ private getChartDataInRuntime;
9412
9429
  get animationChartId(): string;
9413
9430
  }
9414
9431
 
@@ -9489,6 +9506,7 @@ declare class Menu extends Component<MenuProps, SpreadsheetChildEnv> {
9489
9506
  getIconColor(menu: Action): string;
9490
9507
  getName(menu: Action): string;
9491
9508
  isRoot(menu: Action): boolean;
9509
+ private hasVisibleChildren;
9492
9510
  isEnabled(menu: Action): boolean;
9493
9511
  get menuStyle(): string;
9494
9512
  onMouseEnter(menu: Action, ev: PointerEvent): void;
@@ -9656,7 +9674,7 @@ declare class FigureComponent extends Component<Props$U, SpreadsheetChildEnv> {
9656
9674
  private postionInBoundary;
9657
9675
  onContextMenu(ev: MouseEvent): void;
9658
9676
  showMenu(): void;
9659
- private openContextMenu;
9677
+ openContextMenu(anchorRect: Rect): void;
9660
9678
  editWrapperStyle(properties: CSSProperties): void;
9661
9679
  }
9662
9680
 
@@ -9700,6 +9718,7 @@ interface Props$S {
9700
9718
  onFigureDeleted: () => void;
9701
9719
  editFigureStyle?: (properties: CSSProperties) => void;
9702
9720
  isFullScreen?: boolean;
9721
+ openContextMenu?: (anchorRect: Rect, onClose?: () => void) => void;
9703
9722
  }
9704
9723
  declare class ChartFigure extends Component<Props$S, SpreadsheetChildEnv> {
9705
9724
  static template: string;
@@ -9714,6 +9733,10 @@ declare class ChartFigure extends Component<Props$S, SpreadsheetChildEnv> {
9714
9733
  type: BooleanConstructor;
9715
9734
  optional: boolean;
9716
9735
  };
9736
+ openContextMenu: {
9737
+ type: FunctionConstructor;
9738
+ optional: boolean;
9739
+ };
9717
9740
  };
9718
9741
  static components: {
9719
9742
  ChartDashboardMenu: typeof ChartDashboardMenu;
@@ -12623,12 +12646,14 @@ declare class RibbonMenu extends Component<RibbonMenuProps, SpreadsheetChildEnv>
12623
12646
  };
12624
12647
  rootItems: Action[];
12625
12648
  private menuRef;
12649
+ private containerRef;
12626
12650
  state: State$1;
12627
12651
  setup(): void;
12628
12652
  onExternalClick(ev: Event): void;
12629
12653
  onClickMenu(menu: Action): void;
12630
12654
  get menuProps(): MenuProps;
12631
12655
  get style(): string;
12656
+ updateShadows(): void;
12632
12657
  onClickBack(): void;
12633
12658
  get backTitle(): string;
12634
12659
  }