@odoo/o-spreadsheet 18.1.9 → 18.1.11

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.
@@ -1014,6 +1014,9 @@ interface ExcelSheetData extends Omit<SheetData, "figureTables" | "cols" | "rows
1014
1014
  cellValues: {
1015
1015
  [xc: string]: CellValue | undefined;
1016
1016
  };
1017
+ formulaSpillRanges: {
1018
+ [xc: string]: string;
1019
+ };
1017
1020
  charts: FigureData<ExcelChartDefinition>[];
1018
1021
  images: FigureData<Image$1>[];
1019
1022
  tables: ExcelTableData[];
@@ -8019,7 +8022,7 @@ declare class MenuItemRegistry extends Registry<ActionSpec> {
8019
8022
  */
8020
8023
  interface AutofillRule {
8021
8024
  condition: (cell: Cell, cells: (Cell | undefined)[]) => boolean;
8022
- generateRule: (cell: Cell, cells: (Cell | undefined)[]) => AutofillModifier;
8025
+ generateRule: (cell: Cell, cells: (Cell | undefined)[], direction: DIRECTION) => AutofillModifier;
8023
8026
  sequence: number;
8024
8027
  }
8025
8028
 
@@ -8392,7 +8395,9 @@ declare class Composer extends Component<CellComposerProps, SpreadsheetChildEnv>
8392
8395
  };
8393
8396
  private compositionActive;
8394
8397
  private spreadsheetRect;
8398
+ get assistantStyleProperties(): CSSProperties;
8395
8399
  get assistantStyle(): string;
8400
+ get assistantContainerStyle(): string;
8396
8401
  shouldProcessInputEvents: boolean;
8397
8402
  tokens: EnrichedToken[];
8398
8403
  keyMapping: {
@@ -8488,11 +8493,12 @@ interface ComposerStoreInterface {
8488
8493
  * We declare the providers in the registry as an object (rather than a class)
8489
8494
  * to allow a type-safe way to declare the provider.
8490
8495
  * We still want to be able to use `this` for the getters and dispatch for simplicity.
8491
- * Binding happens at runtime in the edition plugin.
8496
+ * Binding happens at runtime in the composer store.
8492
8497
  */
8493
8498
  interface AutoCompleteProviderDefinition {
8494
8499
  sequence?: number;
8495
8500
  autoSelectFirstProposal?: boolean;
8501
+ displayAllOnInitialContent?: boolean;
8496
8502
  maxDisplayedProposals?: number;
8497
8503
  getProposals(this: {
8498
8504
  composer: ComposerStoreInterface;
@@ -9214,6 +9220,7 @@ declare class ColResizer extends AbstractResizer {
9214
9220
  static template: string;
9215
9221
  private colResizerRef;
9216
9222
  setup(): void;
9223
+ get sheetId(): UID;
9217
9224
  _getEvOffset(ev: MouseEvent): Pixel;
9218
9225
  _getViewportOffset(): Pixel;
9219
9226
  _getClientPosition(ev: MouseEvent): Pixel;
@@ -9242,6 +9249,7 @@ declare class RowResizer extends AbstractResizer {
9242
9249
  static template: string;
9243
9250
  setup(): void;
9244
9251
  private rowResizerRef;
9252
+ get sheetId(): UID;
9245
9253
  _getEvOffset(ev: MouseEvent): Pixel;
9246
9254
  _getViewportOffset(): Pixel;
9247
9255
  _getClientPosition(ev: MouseEvent): Pixel;
@@ -10160,8 +10168,11 @@ declare class PivotSidePanelStore extends SpreadsheetStore {
10160
10168
  applyUpdate(): void;
10161
10169
  discardPendingUpdate(): void;
10162
10170
  update(definitionUpdate: Partial<PivotCoreDefinition>): void;
10163
- private isDynamicPivotInViewport;
10164
- private isStaticPivotInViewport;
10171
+ /**
10172
+ * @returns true if the updated pivot is visible in the viewport only as a
10173
+ * static pivot and not as a dynamic pivot
10174
+ */
10175
+ private isUpdatedPivotVisibleInViewportOnlyAsStaticPivot;
10165
10176
  private addDefaultDateTimeGranularity;
10166
10177
  private getUnusedGranularities;
10167
10178
  /**
@@ -13160,6 +13171,7 @@ declare const chartHelpers: {
13160
13171
  getSmartChartDefinition(zone: Zone, getters: Getters): ChartDefinition;
13161
13172
  truncateLabel(label: string | undefined): string;
13162
13173
  chartToImage(runtime: ChartRuntime, figure: Figure, type: string): string | undefined;
13174
+ getChartJSConstructor(): typeof chart_js.Chart;
13163
13175
  CHART_COMMON_OPTIONS: chart_js_dist_types_utils._DeepPartialObject<chart_js.CoreChartOptions<keyof chart_js.ChartTypeRegistry> & chart_js.ElementChartOptions<keyof chart_js.ChartTypeRegistry> & chart_js.PluginChartOptions<keyof chart_js.ChartTypeRegistry> & chart_js.DatasetChartOptions<keyof chart_js.ChartTypeRegistry> & chart_js.ScaleChartOptions<keyof chart_js.ChartTypeRegistry>>;
13164
13176
  createGaugeChartRuntime(chart: GaugeChart, getters: Getters): GaugeChartRuntime;
13165
13177
  GaugeChart: typeof GaugeChart;