@odoo/o-spreadsheet 18.1.12 → 18.1.14

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.
@@ -6,6 +6,7 @@ import * as _odoo_owl from '@odoo/owl';
6
6
  import { ComponentConstructor, Component } from '@odoo/owl';
7
7
  import * as chart_js_dist_types_utils from 'chart.js/dist/types/utils';
8
8
  import * as chart_js_dist_types_geometric from 'chart.js/dist/types/geometric';
9
+ import * as chart_js_dist_types_basic from 'chart.js/dist/types/basic';
9
10
 
10
11
  interface Figure {
11
12
  id: UID;
@@ -7704,11 +7705,11 @@ declare class SeriesDesignEditor extends Component<Props$X, SpreadsheetChildEnv>
7704
7705
  index: number;
7705
7706
  };
7706
7707
  getDataSeries(): (string | undefined)[];
7707
- updateSerieEditor(ev: any): void;
7708
+ updateEditedSeries(ev: Event): void;
7708
7709
  updateDataSeriesColor(color: string): void;
7709
- getDataSerieColor(): "" | Color;
7710
- updateDataSeriesLabel(ev: any): void;
7711
- getDataSerieLabel(): string | undefined;
7710
+ getDataSeriesColor(): "" | Color;
7711
+ updateDataSeriesLabel(ev: Event): void;
7712
+ getDataSeriesLabel(): string | undefined;
7712
7713
  }
7713
7714
 
7714
7715
  interface Props$W {
@@ -7752,7 +7753,7 @@ declare class SeriesWithAxisDesignEditor extends Component<Props$W, SpreadsheetC
7752
7753
  getMaxPolynomialDegree(index: any): number;
7753
7754
  get defaultWindowSize(): number;
7754
7755
  onChangeMovingAverageWindow(index: number, ev: InputEvent): void;
7755
- getDataSerieColor(index: number): "" | Color;
7756
+ getDataSeriesColor(index: number): "" | Color;
7756
7757
  getTrendLineColor(index: number): string;
7757
7758
  updateTrendLineColor(index: number, color: Color): void;
7758
7759
  updateTrendLineValue(index: number, config: any): void;
@@ -12514,6 +12515,7 @@ declare const registries: {
12514
12515
  supportedPivotPositionalFormulaRegistry: Registry<boolean>;
12515
12516
  pivotToFunctionValueRegistry: Registry<(value: CellValue, granularity?: string | undefined) => string>;
12516
12517
  migrationStepRegistry: Registry<MigrationStep>;
12518
+ chartJsExtensionRegistry: Registry<chart_js.Plugin<keyof chart_js.ChartTypeRegistry, chart_js_dist_types_basic.AnyObject>>;
12517
12519
  };
12518
12520
  declare const helpers: {
12519
12521
  arg: typeof arg;
@@ -13160,7 +13162,9 @@ declare const chartHelpers: {
13160
13162
  formatChartDatasetValue(axisFormats: ChartAxisFormats, locale: Locale): (value: any, axisId: string | undefined) => any;
13161
13163
  formatTickValue(localeFormat: LocaleFormat): (value: any) => any;
13162
13164
  getPieColors(colors: ColorGenerator, dataSetsValues: DatasetValues[]): Color[];
13165
+ isTrendLineAxis(axisID: string): boolean;
13163
13166
  TREND_LINE_XAXIS_ID: "x1";
13167
+ MOVING_AVERAGE_TREND_LINE_XAXIS_ID: "xMovingAverage";
13164
13168
  CHART_AXIS_CHOICES: {
13165
13169
  value: string;
13166
13170
  label: string;
@@ -13172,7 +13176,6 @@ declare const chartHelpers: {
13172
13176
  getSmartChartDefinition(zone: Zone, getters: Getters): ChartDefinition;
13173
13177
  truncateLabel(label: string | undefined): string;
13174
13178
  chartToImage(runtime: ChartRuntime, figure: Figure, type: string): string | undefined;
13175
- getChartJSConstructor(): typeof chart_js.Chart;
13176
13179
  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>>;
13177
13180
  createGaugeChartRuntime(chart: GaugeChart, getters: Getters): GaugeChartRuntime;
13178
13181
  GaugeChart: typeof GaugeChart;