@odoo/o-spreadsheet 18.0.3 → 18.0.4

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.
@@ -2,9 +2,9 @@
2
2
  /**
3
3
  * This file is generated by o-spreadsheet build tools. Do not edit it.
4
4
  * @see https://github.com/odoo/o-spreadsheet
5
- * @version 18.0.3
6
- * @date 2024-11-08T12:17:49.992Z
7
- * @hash 5fa5fbb
5
+ * @version 18.0.4
6
+ * @date 2024-11-13T15:08:50.620Z
7
+ * @hash 88e1aee
8
8
  */
9
9
 
10
10
  'use strict';
@@ -9322,24 +9322,21 @@ function getFullTrendingLineDataSet(dataset, config, data) {
9322
9322
  const defaultBorderColor = colorToRGBA(dataset.backgroundColor);
9323
9323
  defaultBorderColor.a = 1;
9324
9324
  const borderColor = config.color || lightenColor(rgbaToHex(defaultBorderColor), 0.5);
9325
- const backgroundRGBA = colorToRGBA(borderColor);
9326
- // @ts-expect-error
9327
- if (dataset?.fill) {
9328
- backgroundRGBA.a = LINE_FILL_TRANSPARENCY; // to support area charts
9329
- }
9330
9325
  return {
9331
- ...dataset,
9332
9326
  type: "line",
9333
9327
  xAxisID: TREND_LINE_XAXIS_ID,
9328
+ yAxisID: dataset.yAxisID,
9334
9329
  label: dataset.label ? _t("Trend line for %s", dataset.label) : "",
9335
9330
  data,
9336
9331
  order: -1,
9337
9332
  showLine: true,
9338
9333
  pointRadius: 0,
9339
- backgroundColor: rgbaToHex(backgroundRGBA),
9334
+ backgroundColor: borderColor,
9340
9335
  borderColor,
9341
9336
  borderDash: [5, 5],
9342
9337
  borderWidth: undefined,
9338
+ fill: false,
9339
+ pointBackgroundColor: borderColor,
9343
9340
  };
9344
9341
  }
9345
9342
  function interpolateData(config, values, labels, newLabels) {
@@ -28172,11 +28169,14 @@ function getDefaultChartJsRuntime(chart, labels, fontColor, { format, locale, tr
28172
28169
  function getChartLabelFormat(getters, range) {
28173
28170
  if (!range)
28174
28171
  return undefined;
28175
- return getters.getEvaluatedCell({
28176
- sheetId: range.sheetId,
28177
- col: range.zone.left,
28178
- row: range.zone.top,
28179
- }).format;
28172
+ const { sheetId, zone: { left, top, bottom }, } = range;
28173
+ for (let row = top; row <= bottom; row++) {
28174
+ const format = getters.getEvaluatedCell({ sheetId, col: left, row }).format;
28175
+ if (format) {
28176
+ return format;
28177
+ }
28178
+ }
28179
+ return undefined;
28180
28180
  }
28181
28181
  function getChartLabelValues(getters, dataSets, labelRange) {
28182
28182
  let labels = { values: [], formattedValues: [] };
@@ -28757,11 +28757,7 @@ function canBeDateChart(labelRange, getters) {
28757
28757
  if (!labelRange || !canBeLinearChart(labelRange, getters)) {
28758
28758
  return false;
28759
28759
  }
28760
- const labelFormat = getters.getEvaluatedCell({
28761
- sheetId: labelRange.sheetId,
28762
- col: labelRange.zone.left,
28763
- row: labelRange.zone.top,
28764
- }).format;
28760
+ const labelFormat = getChartLabelFormat(getters, labelRange);
28765
28761
  return Boolean(labelFormat && timeFormatLuxonCompatible.test(labelFormat));
28766
28762
  }
28767
28763
  function canBeLinearChart(labelRange, getters) {
@@ -36731,6 +36727,7 @@ class ColorPicker extends owl.Component {
36731
36727
  currentColor: { type: String, optional: true },
36732
36728
  maxHeight: { type: Number, optional: true },
36733
36729
  anchorRect: Object,
36730
+ disableNoColor: { type: Boolean, optional: true },
36734
36731
  };
36735
36732
  static defaultProps = { currentColor: "" };
36736
36733
  static components = { Popover };
@@ -36957,6 +36954,7 @@ class RoundColorPicker extends owl.Component {
36957
36954
  currentColor: { type: String, optional: true },
36958
36955
  title: { type: String, optional: true },
36959
36956
  onColorPicked: Function,
36957
+ disableNoColor: { type: Boolean, optional: true },
36960
36958
  };
36961
36959
  colorPickerButtonRef = owl.useRef("colorPickerButton");
36962
36960
  state;
@@ -39735,6 +39733,9 @@ class ConditionalFormattingEditor extends owl.Component {
39735
39733
  }
39736
39734
  }
39737
39735
  setColorScaleColor(target, color) {
39736
+ if (!isColorValid(color)) {
39737
+ return;
39738
+ }
39738
39739
  const point = this.state.rules.colorScale[target];
39739
39740
  if (point) {
39740
39741
  point.color = Number.parseInt(color.substr(1), 16);
@@ -72479,6 +72480,6 @@ exports.tokenColors = tokenColors;
72479
72480
  exports.tokenize = tokenize;
72480
72481
 
72481
72482
 
72482
- __info__.version = "18.0.3";
72483
- __info__.date = "2024-11-08T12:17:49.992Z";
72484
- __info__.hash = "5fa5fbb";
72483
+ __info__.version = "18.0.4";
72484
+ __info__.date = "2024-11-13T15:08:50.620Z";
72485
+ __info__.hash = "88e1aee";
@@ -1,9 +1,6 @@
1
- import * as chart_js from 'chart.js';
2
1
  import { ChartConfiguration, Chart, ChartDataset } from 'chart.js';
3
2
  import * as _odoo_owl from '@odoo/owl';
4
3
  import { ComponentConstructor, Component } from '@odoo/owl';
5
- import * as chart_js_dist_types_basic from 'chart.js/dist/types/basic';
6
- import * as chart_js_dist_types_utils from 'chart.js/dist/types/utils';
7
4
 
8
5
  /**
9
6
  * This is a generic event bus based on the Owl event bus.
@@ -7083,6 +7080,7 @@ interface ColorPickerProps {
7083
7080
  maxHeight?: Pixel;
7084
7081
  onColorPicked: (color: Color) => void;
7085
7082
  currentColor: Color;
7083
+ disableNoColor?: boolean;
7086
7084
  }
7087
7085
  declare class ColorPicker extends Component<ColorPickerProps, SpreadsheetChildEnv> {
7088
7086
  static template: string;
@@ -7097,6 +7095,10 @@ declare class ColorPicker extends Component<ColorPickerProps, SpreadsheetChildEn
7097
7095
  optional: boolean;
7098
7096
  };
7099
7097
  anchorRect: ObjectConstructor;
7098
+ disableNoColor: {
7099
+ type: BooleanConstructor;
7100
+ optional: boolean;
7101
+ };
7100
7102
  };
7101
7103
  static defaultProps: {
7102
7104
  currentColor: string;
@@ -7180,6 +7182,7 @@ interface Props$Y {
7180
7182
  currentColor?: string;
7181
7183
  onColorPicked: (color: string) => void;
7182
7184
  title?: string;
7185
+ disableNoColor?: boolean;
7183
7186
  }
7184
7187
  declare class RoundColorPicker extends Component<Props$Y, SpreadsheetChildEnv> {
7185
7188
  static template: string;
@@ -7198,6 +7201,10 @@ declare class RoundColorPicker extends Component<Props$Y, SpreadsheetChildEnv> {
7198
7201
  optional: boolean;
7199
7202
  };
7200
7203
  onColorPicked: FunctionConstructor;
7204
+ disableNoColor: {
7205
+ type: BooleanConstructor;
7206
+ optional: boolean;
7207
+ };
7201
7208
  };
7202
7209
  colorPickerButtonRef: {
7203
7210
  el: HTMLElement | null;
@@ -9877,6 +9884,7 @@ declare function getChartAxisTitleRuntime(design?: AxisDesign): {
9877
9884
  declare function getTrendDatasetForBarChart(config: TrendConfiguration, dataset: ChartDataset<"bar" | "line", number[]>): {
9878
9885
  type: string;
9879
9886
  xAxisID: string;
9887
+ yAxisID: string | undefined;
9880
9888
  label: string;
9881
9889
  data: number[];
9882
9890
  order: number;
@@ -9886,288 +9894,8 @@ declare function getTrendDatasetForBarChart(config: TrendConfiguration, dataset:
9886
9894
  borderColor: Color;
9887
9895
  borderDash: number[];
9888
9896
  borderWidth: undefined;
9889
- yAxisID?: string | undefined;
9890
- barPercentage?: number | undefined;
9891
- categoryPercentage?: number | undefined;
9892
- barThickness?: number | "flex" | undefined;
9893
- maxBarThickness?: number | undefined;
9894
- minBarLength?: number | undefined;
9895
- pointStyle?: false | "triangle" | "circle" | "line" | "rect" | "cross" | "crossRot" | "dash" | "rectRounded" | "rectRot" | "star" | chart_js_dist_types_utils._DeepPartialObject<HTMLCanvasElement> | chart_js_dist_types_utils._DeepPartialObject<HTMLImageElement> | undefined;
9896
- grouped?: boolean | undefined;
9897
- indexAxis?: "x" | "y" | undefined;
9898
- clip?: number | false | chart_js_dist_types_utils._DeepPartialObject<chart_js.ChartArea> | undefined;
9899
- stack?: string | undefined;
9900
- hidden?: boolean | undefined;
9901
- parsing?: false | chart_js_dist_types_utils._DeepPartialObject<{
9902
- [key: string]: string;
9903
- }> | undefined;
9904
- normalized?: boolean | undefined;
9905
- base?: number | ((ctx: chart_js.ScriptableContext<"bar">, options: chart_js_dist_types_basic.AnyObject) => number | undefined) | readonly (number | undefined)[] | undefined;
9906
- borderSkipped?: boolean | "end" | "start" | "left" | "top" | "bottom" | "right" | "middle" | ((ctx: chart_js.ScriptableContext<"bar">, options: chart_js_dist_types_basic.AnyObject) => boolean | "end" | "start" | "left" | "top" | "bottom" | "right" | "middle" | undefined) | readonly (boolean | "end" | "start" | "left" | "top" | "bottom" | "right" | "middle" | undefined)[] | undefined;
9907
- borderRadius?: number | ((ctx: chart_js.ScriptableContext<"bar">, options: chart_js_dist_types_basic.AnyObject) => number | chart_js.BorderRadius | undefined) | chart_js_dist_types_utils._DeepPartialObject<chart_js.BorderRadius> | readonly (number | chart_js_dist_types_utils._DeepPartialObject<chart_js.BorderRadius> | undefined)[] | undefined;
9908
- inflateAmount?: number | "auto" | ((ctx: chart_js.ScriptableContext<"bar">, options: chart_js_dist_types_basic.AnyObject) => number | "auto" | undefined) | readonly (number | "auto" | undefined)[] | undefined;
9909
- hoverBorderWidth?: number | ((ctx: chart_js.ScriptableContext<"bar">, options: chart_js_dist_types_basic.AnyObject) => number | undefined) | readonly (number | undefined)[] | undefined;
9910
- hoverBorderColor?: string | ((ctx: chart_js.ScriptableContext<"bar">, options: chart_js_dist_types_basic.AnyObject) => chart_js.Color | undefined) | chart_js_dist_types_utils._DeepPartialObject<CanvasGradient> | chart_js_dist_types_utils._DeepPartialObject<CanvasPattern> | readonly (string | chart_js_dist_types_utils._DeepPartialObject<CanvasGradient> | chart_js_dist_types_utils._DeepPartialObject<CanvasPattern> | undefined)[] | undefined;
9911
- hoverBackgroundColor?: string | ((ctx: chart_js.ScriptableContext<"bar">, options: chart_js_dist_types_basic.AnyObject) => chart_js.Color | undefined) | chart_js_dist_types_utils._DeepPartialObject<CanvasGradient> | chart_js_dist_types_utils._DeepPartialObject<CanvasPattern> | readonly (string | chart_js_dist_types_utils._DeepPartialObject<CanvasGradient> | chart_js_dist_types_utils._DeepPartialObject<CanvasPattern> | undefined)[] | undefined;
9912
- animation?: false | chart_js_dist_types_utils._DeepPartialObject<chart_js.AnimationSpec<"bar"> & {
9913
- onProgress?: ((this: chart_js.Chart<keyof chart_js.ChartTypeRegistry, (number | [number, number] | chart_js.Point | chart_js.BubbleDataPoint | null)[], unknown>, event: chart_js.AnimationEvent) => void) | undefined;
9914
- onComplete?: ((this: chart_js.Chart<keyof chart_js.ChartTypeRegistry, (number | [number, number] | chart_js.Point | chart_js.BubbleDataPoint | null)[], unknown>, event: chart_js.AnimationEvent) => void) | undefined;
9915
- }> | undefined;
9916
- animations?: chart_js_dist_types_utils._DeepPartialObject<chart_js.AnimationsSpec<"bar">> | undefined;
9917
- transitions?: chart_js_dist_types_utils._DeepPartialObject<chart_js.TransitionsSpec<"bar">> | undefined;
9918
- } | {
9919
- type: string;
9920
- xAxisID: string;
9921
- label: string;
9922
- data: number[];
9923
- order: number;
9924
- showLine: boolean;
9925
- pointRadius: number;
9926
- backgroundColor: Color;
9927
- borderColor: Color;
9928
- borderDash: number[];
9929
- borderWidth: undefined;
9930
- yAxisID?: string | undefined;
9931
- spanGaps?: number | boolean | undefined;
9932
- indexAxis?: "x" | "y" | undefined;
9933
- clip?: number | false | chart_js_dist_types_utils._DeepPartialObject<chart_js.ChartArea> | undefined;
9934
- stack?: string | undefined;
9935
- hidden?: boolean | undefined;
9936
- parsing?: false | chart_js_dist_types_utils._DeepPartialObject<{
9937
- [key: string]: string;
9938
- }> | undefined;
9939
- normalized?: boolean | undefined;
9940
- pointBackgroundColor?: string | ((ctx: chart_js.ScriptableContext<"line">, options: chart_js_dist_types_basic.AnyObject) => chart_js.Color | undefined) | chart_js_dist_types_utils._DeepPartialObject<CanvasGradient> | chart_js_dist_types_utils._DeepPartialObject<CanvasPattern> | readonly (string | chart_js_dist_types_utils._DeepPartialObject<CanvasGradient> | chart_js_dist_types_utils._DeepPartialObject<CanvasPattern> | undefined)[] | undefined;
9941
- pointBorderColor?: string | ((ctx: chart_js.ScriptableContext<"line">, options: chart_js_dist_types_basic.AnyObject) => chart_js.Color | undefined) | chart_js_dist_types_utils._DeepPartialObject<CanvasGradient> | chart_js_dist_types_utils._DeepPartialObject<CanvasPattern> | readonly (string | chart_js_dist_types_utils._DeepPartialObject<CanvasGradient> | chart_js_dist_types_utils._DeepPartialObject<CanvasPattern> | undefined)[] | undefined;
9942
- pointBorderWidth?: number | ((ctx: chart_js.ScriptableContext<"line">, options: chart_js_dist_types_basic.AnyObject) => number | undefined) | readonly (number | undefined)[] | undefined;
9943
- pointHitRadius?: number | ((ctx: chart_js.ScriptableContext<"line">, options: chart_js_dist_types_basic.AnyObject) => number | undefined) | readonly (number | undefined)[] | undefined;
9944
- pointRotation?: number | ((ctx: chart_js.ScriptableContext<"line">, options: chart_js_dist_types_basic.AnyObject) => number | undefined) | readonly (number | undefined)[] | undefined;
9945
- pointStyle?: false | "triangle" | "circle" | "line" | "rect" | "cross" | "crossRot" | "dash" | "rectRounded" | "rectRot" | "star" | ((ctx: chart_js.ScriptableContext<"line">, options: chart_js_dist_types_basic.AnyObject) => chart_js.PointStyle | undefined) | chart_js_dist_types_utils._DeepPartialObject<HTMLCanvasElement> | chart_js_dist_types_utils._DeepPartialObject<HTMLImageElement> | readonly (false | "triangle" | "circle" | "line" | "rect" | "cross" | "crossRot" | "dash" | "rectRounded" | "rectRot" | "star" | chart_js_dist_types_utils._DeepPartialObject<HTMLCanvasElement> | chart_js_dist_types_utils._DeepPartialObject<HTMLImageElement> | undefined)[] | undefined;
9946
- pointHoverBackgroundColor?: string | ((ctx: chart_js.ScriptableContext<"line">, options: chart_js_dist_types_basic.AnyObject) => chart_js.Color | undefined) | chart_js_dist_types_utils._DeepPartialObject<CanvasGradient> | chart_js_dist_types_utils._DeepPartialObject<CanvasPattern> | readonly (string | chart_js_dist_types_utils._DeepPartialObject<CanvasGradient> | chart_js_dist_types_utils._DeepPartialObject<CanvasPattern> | undefined)[] | undefined;
9947
- pointHoverBorderColor?: string | ((ctx: chart_js.ScriptableContext<"line">, options: chart_js_dist_types_basic.AnyObject) => chart_js.Color | undefined) | chart_js_dist_types_utils._DeepPartialObject<CanvasGradient> | chart_js_dist_types_utils._DeepPartialObject<CanvasPattern> | readonly (string | chart_js_dist_types_utils._DeepPartialObject<CanvasGradient> | chart_js_dist_types_utils._DeepPartialObject<CanvasPattern> | undefined)[] | undefined;
9948
- pointHoverBorderWidth?: number | ((ctx: chart_js.ScriptableContext<"line">, options: chart_js_dist_types_basic.AnyObject) => number | undefined) | readonly (number | undefined)[] | undefined;
9949
- pointHoverRadius?: number | ((ctx: chart_js.ScriptableContext<"line">, options: chart_js_dist_types_basic.AnyObject) => number | undefined) | readonly (number | undefined)[] | undefined;
9950
- fill?: string | number | boolean | ((ctx: chart_js.ScriptableContext<"line">, options: chart_js_dist_types_basic.AnyObject) => chart_js.FillTarget | chart_js.ComplexFillTarget | undefined) | chart_js_dist_types_utils._DeepPartialObject<{
9951
- value: number;
9952
- }> | chart_js_dist_types_utils._DeepPartialObject<chart_js.ComplexFillTarget> | undefined;
9953
- borderCapStyle?: "square" | "butt" | "round" | ((ctx: chart_js.ScriptableContext<"line">, options: chart_js_dist_types_basic.AnyObject) => CanvasLineCap | undefined) | undefined;
9954
- borderDashOffset?: number | ((ctx: chart_js.ScriptableContext<"line">, options: chart_js_dist_types_basic.AnyObject) => number | undefined) | undefined;
9955
- borderJoinStyle?: "round" | "bevel" | "miter" | ((ctx: chart_js.ScriptableContext<"line">, options: chart_js_dist_types_basic.AnyObject) => CanvasLineJoin | undefined) | undefined;
9956
- capBezierPoints?: boolean | ((ctx: chart_js.ScriptableContext<"line">, options: chart_js_dist_types_basic.AnyObject) => boolean | undefined) | undefined;
9957
- cubicInterpolationMode?: "default" | "monotone" | ((ctx: chart_js.ScriptableContext<"line">, options: chart_js_dist_types_basic.AnyObject) => "default" | "monotone" | undefined) | undefined;
9958
- tension?: number | ((ctx: chart_js.ScriptableContext<"line">, options: chart_js_dist_types_basic.AnyObject) => number | undefined) | undefined;
9959
- stepped?: boolean | "middle" | "after" | "before" | ((ctx: chart_js.ScriptableContext<"line">, options: chart_js_dist_types_basic.AnyObject) => boolean | "middle" | "after" | "before" | undefined) | undefined;
9960
- segment?: ((ctx: chart_js.ScriptableContext<"line">, options: chart_js_dist_types_basic.AnyObject) => {
9961
- backgroundColor: chart_js.Scriptable<chart_js.Color | undefined, chart_js.ScriptableLineSegmentContext>;
9962
- borderColor: chart_js.Scriptable<chart_js.Color | undefined, chart_js.ScriptableLineSegmentContext>;
9963
- borderCapStyle: chart_js.Scriptable<CanvasLineCap | undefined, chart_js.ScriptableLineSegmentContext>;
9964
- borderDash: chart_js.Scriptable<number[] | undefined, chart_js.ScriptableLineSegmentContext>;
9965
- borderDashOffset: chart_js.Scriptable<number | undefined, chart_js.ScriptableLineSegmentContext>;
9966
- borderJoinStyle: chart_js.Scriptable<CanvasLineJoin | undefined, chart_js.ScriptableLineSegmentContext>;
9967
- borderWidth: chart_js.Scriptable<number | undefined, chart_js.ScriptableLineSegmentContext>;
9968
- } | undefined) | chart_js_dist_types_utils._DeepPartialObject<{
9969
- backgroundColor: chart_js.Scriptable<chart_js.Color | undefined, chart_js.ScriptableLineSegmentContext>;
9970
- borderColor: chart_js.Scriptable<chart_js.Color | undefined, chart_js.ScriptableLineSegmentContext>;
9971
- borderCapStyle: chart_js.Scriptable<CanvasLineCap | undefined, chart_js.ScriptableLineSegmentContext>;
9972
- borderDash: chart_js.Scriptable<number[] | undefined, chart_js.ScriptableLineSegmentContext>;
9973
- borderDashOffset: chart_js.Scriptable<number | undefined, chart_js.ScriptableLineSegmentContext>;
9974
- borderJoinStyle: chart_js.Scriptable<CanvasLineJoin | undefined, chart_js.ScriptableLineSegmentContext>;
9975
- borderWidth: chart_js.Scriptable<number | undefined, chart_js.ScriptableLineSegmentContext>;
9976
- }> | undefined;
9977
- hoverBorderCapStyle?: "square" | "butt" | "round" | ((ctx: chart_js.ScriptableContext<"line">, options: chart_js_dist_types_basic.AnyObject) => CanvasLineCap | undefined) | undefined;
9978
- hoverBorderDash?: ((ctx: chart_js.ScriptableContext<"line">, options: chart_js_dist_types_basic.AnyObject) => number[] | undefined) | chart_js_dist_types_utils._DeepPartialArray<number> | undefined;
9979
- hoverBorderDashOffset?: number | ((ctx: chart_js.ScriptableContext<"line">, options: chart_js_dist_types_basic.AnyObject) => number | undefined) | undefined;
9980
- hoverBorderJoinStyle?: "round" | "bevel" | "miter" | ((ctx: chart_js.ScriptableContext<"line">, options: chart_js_dist_types_basic.AnyObject) => CanvasLineJoin | undefined) | undefined;
9981
- hoverBorderWidth?: number | ((ctx: chart_js.ScriptableContext<"line">, options: chart_js_dist_types_basic.AnyObject) => number | undefined) | readonly (number | undefined)[] | undefined;
9982
- hoverBorderColor?: string | ((ctx: chart_js.ScriptableContext<"line">, options: chart_js_dist_types_basic.AnyObject) => chart_js.Color | undefined) | chart_js_dist_types_utils._DeepPartialObject<CanvasGradient> | chart_js_dist_types_utils._DeepPartialObject<CanvasPattern> | readonly (string | chart_js_dist_types_utils._DeepPartialObject<CanvasGradient> | chart_js_dist_types_utils._DeepPartialObject<CanvasPattern> | undefined)[] | undefined;
9983
- hoverBackgroundColor?: string | ((ctx: chart_js.ScriptableContext<"line">, options: chart_js_dist_types_basic.AnyObject) => chart_js.Color | undefined) | chart_js_dist_types_utils._DeepPartialObject<CanvasGradient> | chart_js_dist_types_utils._DeepPartialObject<CanvasPattern> | readonly (string | chart_js_dist_types_utils._DeepPartialObject<CanvasGradient> | chart_js_dist_types_utils._DeepPartialObject<CanvasPattern> | undefined)[] | undefined;
9984
- animation?: false | chart_js_dist_types_utils._DeepPartialObject<chart_js.AnimationSpec<"line"> & {
9985
- onProgress?: ((this: chart_js.Chart<keyof chart_js.ChartTypeRegistry, (number | [number, number] | chart_js.Point | chart_js.BubbleDataPoint | null)[], unknown>, event: chart_js.AnimationEvent) => void) | undefined;
9986
- onComplete?: ((this: chart_js.Chart<keyof chart_js.ChartTypeRegistry, (number | [number, number] | chart_js.Point | chart_js.BubbleDataPoint | null)[], unknown>, event: chart_js.AnimationEvent) => void) | undefined;
9987
- }> | undefined;
9988
- animations?: chart_js_dist_types_utils._DeepPartialObject<chart_js.AnimationsSpec<"line">> | undefined;
9989
- transitions?: chart_js_dist_types_utils._DeepPartialObject<chart_js.TransitionsSpec<"line">> | undefined;
9990
- } | {
9991
- type: string;
9992
- xAxisID: string;
9993
- label: string;
9994
- data: number[];
9995
- order: number;
9996
- showLine: boolean;
9997
- pointRadius: number;
9998
- backgroundColor: Color;
9999
- borderColor: Color;
10000
- borderDash: number[];
10001
- borderWidth: undefined;
10002
- yAxisID?: string | undefined;
10003
- indexAxis?: "x" | "y" | undefined;
10004
- clip?: number | false | chart_js_dist_types_utils._DeepPartialObject<chart_js.ChartArea> | undefined;
10005
- stack?: string | undefined;
10006
- hidden?: boolean | undefined;
10007
- parsing?: false | chart_js_dist_types_utils._DeepPartialObject<{
10008
- [key: string]: string;
10009
- }> | undefined;
10010
- normalized?: boolean | undefined;
10011
- radius?: number | ((ctx: chart_js.ScriptableContext<"bubble">, options: chart_js_dist_types_basic.AnyObject) => number | undefined) | readonly (number | undefined)[] | undefined;
10012
- hitRadius?: number | ((ctx: chart_js.ScriptableContext<"bubble">, options: chart_js_dist_types_basic.AnyObject) => number | undefined) | readonly (number | undefined)[] | undefined;
10013
- pointStyle?: false | "triangle" | "circle" | "line" | "rect" | "cross" | "crossRot" | "dash" | "rectRounded" | "rectRot" | "star" | ((ctx: chart_js.ScriptableContext<"bubble">, options: chart_js_dist_types_basic.AnyObject) => chart_js.PointStyle | undefined) | chart_js_dist_types_utils._DeepPartialObject<HTMLCanvasElement> | chart_js_dist_types_utils._DeepPartialObject<HTMLImageElement> | readonly (false | "triangle" | "circle" | "line" | "rect" | "cross" | "crossRot" | "dash" | "rectRounded" | "rectRot" | "star" | chart_js_dist_types_utils._DeepPartialObject<HTMLCanvasElement> | chart_js_dist_types_utils._DeepPartialObject<HTMLImageElement> | undefined)[] | undefined;
10014
- rotation?: number | ((ctx: chart_js.ScriptableContext<"bubble">, options: chart_js_dist_types_basic.AnyObject) => number | undefined) | readonly (number | undefined)[] | undefined;
10015
- drawActiveElementsOnTop?: boolean | readonly (boolean | undefined)[] | ((ctx: chart_js.ScriptableContext<"bubble">, options: chart_js_dist_types_basic.AnyObject) => boolean | undefined) | undefined;
10016
- hoverRadius?: number | ((ctx: chart_js.ScriptableContext<"bubble">, options: chart_js_dist_types_basic.AnyObject) => number | undefined) | readonly (number | undefined)[] | undefined;
10017
- hoverBorderWidth?: number | ((ctx: chart_js.ScriptableContext<"bubble">, options: chart_js_dist_types_basic.AnyObject) => number | undefined) | readonly (number | undefined)[] | undefined;
10018
- hoverBorderColor?: string | ((ctx: chart_js.ScriptableContext<"bubble">, options: chart_js_dist_types_basic.AnyObject) => chart_js.Color | undefined) | chart_js_dist_types_utils._DeepPartialObject<CanvasGradient> | chart_js_dist_types_utils._DeepPartialObject<CanvasPattern> | readonly (string | chart_js_dist_types_utils._DeepPartialObject<CanvasGradient> | chart_js_dist_types_utils._DeepPartialObject<CanvasPattern> | undefined)[] | undefined;
10019
- hoverBackgroundColor?: string | ((ctx: chart_js.ScriptableContext<"bubble">, options: chart_js_dist_types_basic.AnyObject) => chart_js.Color | undefined) | chart_js_dist_types_utils._DeepPartialObject<CanvasGradient> | chart_js_dist_types_utils._DeepPartialObject<CanvasPattern> | readonly (string | chart_js_dist_types_utils._DeepPartialObject<CanvasGradient> | chart_js_dist_types_utils._DeepPartialObject<CanvasPattern> | undefined)[] | undefined;
10020
- } | {
10021
- type: string;
10022
- xAxisID: string;
10023
- label: string;
10024
- data: number[];
10025
- order: number;
10026
- showLine: boolean;
10027
- pointRadius: number;
10028
- backgroundColor: Color;
10029
- borderColor: Color;
10030
- borderDash: number[];
10031
- borderWidth: undefined;
10032
- circumference?: number | undefined;
10033
- offset?: number | chart_js_dist_types_utils._DeepPartialArray<number> | undefined;
10034
- rotation?: number | undefined;
10035
- weight?: number | undefined;
10036
- spacing?: number | undefined;
10037
- indexAxis?: "x" | "y" | undefined;
10038
- clip?: number | false | chart_js_dist_types_utils._DeepPartialObject<chart_js.ChartArea> | undefined;
10039
- stack?: string | undefined;
10040
- hidden?: boolean | undefined;
10041
- parsing?: false | chart_js_dist_types_utils._DeepPartialObject<{
10042
- [key: string]: string;
10043
- }> | undefined;
10044
- normalized?: boolean | undefined;
10045
- borderAlign?: "center" | "inner" | ((ctx: chart_js.ScriptableContext<"doughnut">, options: chart_js_dist_types_basic.AnyObject) => "center" | "inner" | undefined) | readonly ("center" | "inner" | undefined)[] | undefined;
10046
- borderDashOffset?: number | ((ctx: chart_js.ScriptableContext<"doughnut">, options: chart_js_dist_types_basic.AnyObject) => number | undefined) | readonly (number | undefined)[] | undefined;
10047
- borderJoinStyle?: "round" | "bevel" | "miter" | ((ctx: chart_js.ScriptableContext<"doughnut">, options: chart_js_dist_types_basic.AnyObject) => CanvasLineJoin | undefined) | readonly ("round" | "bevel" | "miter" | undefined)[] | undefined;
10048
- borderRadius?: number | ((ctx: chart_js.ScriptableContext<"doughnut">, options: chart_js_dist_types_basic.AnyObject) => number | chart_js.ArcBorderRadius | undefined) | chart_js_dist_types_utils._DeepPartialObject<chart_js.ArcBorderRadius> | readonly (number | chart_js_dist_types_utils._DeepPartialObject<chart_js.ArcBorderRadius> | undefined)[] | undefined;
10049
- circular?: boolean | readonly (boolean | undefined)[] | ((ctx: chart_js.ScriptableContext<"doughnut">, options: chart_js_dist_types_basic.AnyObject) => boolean | undefined) | undefined;
10050
- hoverBorderDash?: ((ctx: chart_js.ScriptableContext<"doughnut">, options: chart_js_dist_types_basic.AnyObject) => number[] | undefined) | chart_js_dist_types_utils._DeepPartialArray<number> | readonly (chart_js_dist_types_utils._DeepPartialArray<number> | undefined)[] | undefined;
10051
- hoverBorderDashOffset?: number | ((ctx: chart_js.ScriptableContext<"doughnut">, options: chart_js_dist_types_basic.AnyObject) => number | undefined) | readonly (number | undefined)[] | undefined;
10052
- hoverOffset?: number | ((ctx: chart_js.ScriptableContext<"doughnut">, options: chart_js_dist_types_basic.AnyObject) => number | undefined) | readonly (number | undefined)[] | undefined;
10053
- hoverBorderWidth?: number | ((ctx: chart_js.ScriptableContext<"doughnut">, options: chart_js_dist_types_basic.AnyObject) => number | undefined) | readonly (number | undefined)[] | undefined;
10054
- hoverBorderColor?: string | ((ctx: chart_js.ScriptableContext<"doughnut">, options: chart_js_dist_types_basic.AnyObject) => chart_js.Color | undefined) | chart_js_dist_types_utils._DeepPartialObject<CanvasGradient> | chart_js_dist_types_utils._DeepPartialObject<CanvasPattern> | readonly (string | chart_js_dist_types_utils._DeepPartialObject<CanvasGradient> | chart_js_dist_types_utils._DeepPartialObject<CanvasPattern> | undefined)[] | undefined;
10055
- hoverBackgroundColor?: string | ((ctx: chart_js.ScriptableContext<"doughnut">, options: chart_js_dist_types_basic.AnyObject) => chart_js.Color | undefined) | chart_js_dist_types_utils._DeepPartialObject<CanvasGradient> | chart_js_dist_types_utils._DeepPartialObject<CanvasPattern> | readonly (string | chart_js_dist_types_utils._DeepPartialObject<CanvasGradient> | chart_js_dist_types_utils._DeepPartialObject<CanvasPattern> | undefined)[] | undefined;
10056
- animation?: false | chart_js_dist_types_utils._DeepPartialObject<chart_js.AnimationSpec<"doughnut"> & {
10057
- onProgress?: ((this: chart_js.Chart<keyof chart_js.ChartTypeRegistry, (number | [number, number] | chart_js.Point | chart_js.BubbleDataPoint | null)[], unknown>, event: chart_js.AnimationEvent) => void) | undefined;
10058
- onComplete?: ((this: chart_js.Chart<keyof chart_js.ChartTypeRegistry, (number | [number, number] | chart_js.Point | chart_js.BubbleDataPoint | null)[], unknown>, event: chart_js.AnimationEvent) => void) | undefined;
10059
- }> | undefined;
10060
- animations?: chart_js_dist_types_utils._DeepPartialObject<chart_js.AnimationsSpec<"doughnut">> | undefined;
10061
- transitions?: chart_js_dist_types_utils._DeepPartialObject<chart_js.TransitionsSpec<"doughnut">> | undefined;
10062
- } | {
10063
- type: string;
10064
- xAxisID: string;
10065
- label: string;
10066
- data: number[];
10067
- order: number;
10068
- showLine: boolean;
10069
- pointRadius: number;
10070
- backgroundColor: Color;
10071
- borderColor: Color;
10072
- borderDash: number[];
10073
- borderWidth: undefined;
10074
- yAxisID?: string | undefined;
10075
- spanGaps?: number | boolean | undefined;
10076
- indexAxis?: "x" | "y" | undefined;
10077
- clip?: number | false | chart_js_dist_types_utils._DeepPartialObject<chart_js.ChartArea> | undefined;
10078
- stack?: string | undefined;
10079
- hidden?: boolean | undefined;
10080
- parsing?: false | chart_js_dist_types_utils._DeepPartialObject<{
10081
- [key: string]: string;
10082
- }> | undefined;
10083
- normalized?: boolean | undefined;
10084
- radius?: number | ((ctx: chart_js.ScriptableContext<"radar">, options: chart_js_dist_types_basic.AnyObject) => number | undefined) | readonly (number | undefined)[] | undefined;
10085
- hitRadius?: number | ((ctx: chart_js.ScriptableContext<"radar">, options: chart_js_dist_types_basic.AnyObject) => number | undefined) | readonly (number | undefined)[] | undefined;
10086
- pointStyle?: false | "triangle" | "circle" | "line" | "rect" | "cross" | "crossRot" | "dash" | "rectRounded" | "rectRot" | "star" | ((ctx: chart_js.ScriptableContext<"radar">, options: chart_js_dist_types_basic.AnyObject) => chart_js.PointStyle | undefined) | chart_js_dist_types_utils._DeepPartialObject<HTMLCanvasElement> | chart_js_dist_types_utils._DeepPartialObject<HTMLImageElement> | readonly (false | "triangle" | "circle" | "line" | "rect" | "cross" | "crossRot" | "dash" | "rectRounded" | "rectRot" | "star" | chart_js_dist_types_utils._DeepPartialObject<HTMLCanvasElement> | chart_js_dist_types_utils._DeepPartialObject<HTMLImageElement> | undefined)[] | undefined;
10087
- rotation?: number | ((ctx: chart_js.ScriptableContext<"radar">, options: chart_js_dist_types_basic.AnyObject) => number | undefined) | readonly (number | undefined)[] | undefined;
10088
- drawActiveElementsOnTop?: boolean | ((ctx: chart_js.ScriptableContext<"radar">, options: chart_js_dist_types_basic.AnyObject) => boolean | undefined) | readonly (boolean | undefined)[] | undefined;
10089
- hoverRadius?: number | ((ctx: chart_js.ScriptableContext<"radar">, options: chart_js_dist_types_basic.AnyObject) => number | undefined) | readonly (number | undefined)[] | undefined;
10090
- hoverBorderWidth?: number | ((ctx: chart_js.ScriptableContext<"radar">, options: chart_js_dist_types_basic.AnyObject) => number | undefined) | readonly (number | undefined)[] | undefined;
10091
- hoverBorderColor?: string | ((ctx: chart_js.ScriptableContext<"radar">, options: chart_js_dist_types_basic.AnyObject) => chart_js.Color | undefined) | chart_js_dist_types_utils._DeepPartialObject<CanvasGradient> | chart_js_dist_types_utils._DeepPartialObject<CanvasPattern> | readonly (string | chart_js_dist_types_utils._DeepPartialObject<CanvasGradient> | chart_js_dist_types_utils._DeepPartialObject<CanvasPattern> | undefined)[] | undefined;
10092
- hoverBackgroundColor?: string | ((ctx: chart_js.ScriptableContext<"radar">, options: chart_js_dist_types_basic.AnyObject) => chart_js.Color | undefined) | chart_js_dist_types_utils._DeepPartialObject<CanvasGradient> | chart_js_dist_types_utils._DeepPartialObject<CanvasPattern> | readonly (string | chart_js_dist_types_utils._DeepPartialObject<CanvasGradient> | chart_js_dist_types_utils._DeepPartialObject<CanvasPattern> | undefined)[] | undefined;
10093
- pointBackgroundColor?: string | ((ctx: chart_js.ScriptableContext<"radar">, options: chart_js_dist_types_basic.AnyObject) => chart_js.Color | undefined) | chart_js_dist_types_utils._DeepPartialObject<CanvasGradient> | chart_js_dist_types_utils._DeepPartialObject<CanvasPattern> | readonly (string | chart_js_dist_types_utils._DeepPartialObject<CanvasGradient> | chart_js_dist_types_utils._DeepPartialObject<CanvasPattern> | undefined)[] | undefined;
10094
- pointBorderColor?: string | ((ctx: chart_js.ScriptableContext<"radar">, options: chart_js_dist_types_basic.AnyObject) => chart_js.Color | undefined) | chart_js_dist_types_utils._DeepPartialObject<CanvasGradient> | chart_js_dist_types_utils._DeepPartialObject<CanvasPattern> | readonly (string | chart_js_dist_types_utils._DeepPartialObject<CanvasGradient> | chart_js_dist_types_utils._DeepPartialObject<CanvasPattern> | undefined)[] | undefined;
10095
- pointBorderWidth?: number | ((ctx: chart_js.ScriptableContext<"radar">, options: chart_js_dist_types_basic.AnyObject) => number | undefined) | readonly (number | undefined)[] | undefined;
10096
- pointHitRadius?: number | ((ctx: chart_js.ScriptableContext<"radar">, options: chart_js_dist_types_basic.AnyObject) => number | undefined) | readonly (number | undefined)[] | undefined;
10097
- pointRotation?: number | ((ctx: chart_js.ScriptableContext<"radar">, options: chart_js_dist_types_basic.AnyObject) => number | undefined) | readonly (number | undefined)[] | undefined;
10098
- pointHoverBackgroundColor?: string | ((ctx: chart_js.ScriptableContext<"radar">, options: chart_js_dist_types_basic.AnyObject) => chart_js.Color | undefined) | chart_js_dist_types_utils._DeepPartialObject<CanvasGradient> | chart_js_dist_types_utils._DeepPartialObject<CanvasPattern> | readonly (string | chart_js_dist_types_utils._DeepPartialObject<CanvasGradient> | chart_js_dist_types_utils._DeepPartialObject<CanvasPattern> | undefined)[] | undefined;
10099
- pointHoverBorderColor?: string | ((ctx: chart_js.ScriptableContext<"radar">, options: chart_js_dist_types_basic.AnyObject) => chart_js.Color | undefined) | chart_js_dist_types_utils._DeepPartialObject<CanvasGradient> | chart_js_dist_types_utils._DeepPartialObject<CanvasPattern> | readonly (string | chart_js_dist_types_utils._DeepPartialObject<CanvasGradient> | chart_js_dist_types_utils._DeepPartialObject<CanvasPattern> | undefined)[] | undefined;
10100
- pointHoverBorderWidth?: number | ((ctx: chart_js.ScriptableContext<"radar">, options: chart_js_dist_types_basic.AnyObject) => number | undefined) | readonly (number | undefined)[] | undefined;
10101
- pointHoverRadius?: number | ((ctx: chart_js.ScriptableContext<"radar">, options: chart_js_dist_types_basic.AnyObject) => number | undefined) | readonly (number | undefined)[] | undefined;
10102
- borderCapStyle?: "square" | "butt" | "round" | ((ctx: chart_js.ScriptableContext<"radar">, options: chart_js_dist_types_basic.AnyObject) => CanvasLineCap | undefined) | readonly ("square" | "butt" | "round" | undefined)[] | undefined;
10103
- borderDashOffset?: number | ((ctx: chart_js.ScriptableContext<"radar">, options: chart_js_dist_types_basic.AnyObject) => number | undefined) | readonly (number | undefined)[] | undefined;
10104
- borderJoinStyle?: "round" | "bevel" | "miter" | ((ctx: chart_js.ScriptableContext<"radar">, options: chart_js_dist_types_basic.AnyObject) => CanvasLineJoin | undefined) | readonly ("round" | "bevel" | "miter" | undefined)[] | undefined;
10105
- capBezierPoints?: boolean | ((ctx: chart_js.ScriptableContext<"radar">, options: chart_js_dist_types_basic.AnyObject) => boolean | undefined) | readonly (boolean | undefined)[] | undefined;
10106
- cubicInterpolationMode?: "default" | "monotone" | ((ctx: chart_js.ScriptableContext<"radar">, options: chart_js_dist_types_basic.AnyObject) => "default" | "monotone" | undefined) | readonly ("default" | "monotone" | undefined)[] | undefined;
10107
- tension?: number | ((ctx: chart_js.ScriptableContext<"radar">, options: chart_js_dist_types_basic.AnyObject) => number | undefined) | readonly (number | undefined)[] | undefined;
10108
- stepped?: boolean | "middle" | "after" | "before" | ((ctx: chart_js.ScriptableContext<"radar">, options: chart_js_dist_types_basic.AnyObject) => boolean | "middle" | "after" | "before" | undefined) | readonly (boolean | "middle" | "after" | "before" | undefined)[] | undefined;
10109
- fill?: string | number | boolean | (((ctx: chart_js.ScriptableContext<"radar">, options: chart_js_dist_types_basic.AnyObject) => chart_js.FillTarget | chart_js.ComplexFillTarget | undefined) & string) | (((ctx: chart_js.ScriptableContext<"radar">, options: chart_js_dist_types_basic.AnyObject) => chart_js.FillTarget | chart_js.ComplexFillTarget | undefined) & number) | (((ctx: chart_js.ScriptableContext<"radar">, options: chart_js_dist_types_basic.AnyObject) => chart_js.FillTarget | chart_js.ComplexFillTarget | undefined) & false) | (((ctx: chart_js.ScriptableContext<"radar">, options: chart_js_dist_types_basic.AnyObject) => chart_js.FillTarget | chart_js.ComplexFillTarget | undefined) & true) | (((ctx: chart_js.ScriptableContext<"radar">, options: chart_js_dist_types_basic.AnyObject) => chart_js.FillTarget | chart_js.ComplexFillTarget | undefined) & {
10110
- value: number;
10111
- }) | (((ctx: chart_js.ScriptableContext<"radar">, options: chart_js_dist_types_basic.AnyObject) => chart_js.FillTarget | chart_js.ComplexFillTarget | undefined) & chart_js.ComplexFillTarget) | chart_js_dist_types_utils._DeepPartialObject<{
10112
- value: number;
10113
- }> | chart_js_dist_types_utils._DeepPartialObject<chart_js.ComplexFillTarget> | chart_js_dist_types_utils._DeepPartialObject<string & {
10114
- value: number;
10115
- }> | chart_js_dist_types_utils._DeepPartialObject<string & chart_js.ComplexFillTarget> | chart_js_dist_types_utils._DeepPartialObject<number & {
10116
- value: number;
10117
- }> | chart_js_dist_types_utils._DeepPartialObject<number & chart_js.ComplexFillTarget> | chart_js_dist_types_utils._DeepPartialObject<false & {
10118
- value: number;
10119
- }> | chart_js_dist_types_utils._DeepPartialObject<false & chart_js.ComplexFillTarget> | chart_js_dist_types_utils._DeepPartialObject<true & {
10120
- value: number;
10121
- }> | chart_js_dist_types_utils._DeepPartialObject<true & chart_js.ComplexFillTarget> | chart_js_dist_types_utils._DeepPartialObject<{
10122
- value: number;
10123
- } & string> | chart_js_dist_types_utils._DeepPartialObject<{
10124
- value: number;
10125
- } & number> | chart_js_dist_types_utils._DeepPartialObject<{
10126
- value: number;
10127
- } & false> | chart_js_dist_types_utils._DeepPartialObject<{
10128
- value: number;
10129
- } & true> | chart_js_dist_types_utils._DeepPartialObject<{
10130
- value: number;
10131
- } & chart_js.ComplexFillTarget> | chart_js_dist_types_utils._DeepPartialObject<chart_js.ComplexFillTarget & string> | chart_js_dist_types_utils._DeepPartialObject<chart_js.ComplexFillTarget & number> | chart_js_dist_types_utils._DeepPartialObject<chart_js.ComplexFillTarget & false> | chart_js_dist_types_utils._DeepPartialObject<chart_js.ComplexFillTarget & true> | chart_js_dist_types_utils._DeepPartialObject<chart_js.ComplexFillTarget & {
10132
- value: number;
10133
- }> | chart_js_dist_types_utils._DeepPartialObject<readonly (chart_js.FillTarget | chart_js.ComplexFillTarget)[] & string> | chart_js_dist_types_utils._DeepPartialObject<readonly (chart_js.FillTarget | chart_js.ComplexFillTarget)[] & number> | chart_js_dist_types_utils._DeepPartialObject<readonly (chart_js.FillTarget | chart_js.ComplexFillTarget)[] & false> | chart_js_dist_types_utils._DeepPartialObject<readonly (chart_js.FillTarget | chart_js.ComplexFillTarget)[] & true> | chart_js_dist_types_utils._DeepPartialObject<readonly (chart_js.FillTarget | chart_js.ComplexFillTarget)[] & {
10134
- value: number;
10135
- }> | chart_js_dist_types_utils._DeepPartialObject<readonly (chart_js.FillTarget | chart_js.ComplexFillTarget)[] & chart_js.ComplexFillTarget> | undefined;
10136
- segment?: ((ctx: chart_js.ScriptableContext<"radar">, options: chart_js_dist_types_basic.AnyObject) => {
10137
- backgroundColor: chart_js.Scriptable<chart_js.Color | undefined, chart_js.ScriptableLineSegmentContext>;
10138
- borderColor: chart_js.Scriptable<chart_js.Color | undefined, chart_js.ScriptableLineSegmentContext>;
10139
- borderCapStyle: chart_js.Scriptable<CanvasLineCap | undefined, chart_js.ScriptableLineSegmentContext>;
10140
- borderDash: chart_js.Scriptable<number[] | undefined, chart_js.ScriptableLineSegmentContext>;
10141
- borderDashOffset: chart_js.Scriptable<number | undefined, chart_js.ScriptableLineSegmentContext>;
10142
- borderJoinStyle: chart_js.Scriptable<CanvasLineJoin | undefined, chart_js.ScriptableLineSegmentContext>;
10143
- borderWidth: chart_js.Scriptable<number | undefined, chart_js.ScriptableLineSegmentContext>;
10144
- } | undefined) | chart_js_dist_types_utils._DeepPartialObject<{
10145
- backgroundColor: chart_js.Scriptable<chart_js.Color | undefined, chart_js.ScriptableLineSegmentContext>;
10146
- borderColor: chart_js.Scriptable<chart_js.Color | undefined, chart_js.ScriptableLineSegmentContext>;
10147
- borderCapStyle: chart_js.Scriptable<CanvasLineCap | undefined, chart_js.ScriptableLineSegmentContext>;
10148
- borderDash: chart_js.Scriptable<number[] | undefined, chart_js.ScriptableLineSegmentContext>;
10149
- borderDashOffset: chart_js.Scriptable<number | undefined, chart_js.ScriptableLineSegmentContext>;
10150
- borderJoinStyle: chart_js.Scriptable<CanvasLineJoin | undefined, chart_js.ScriptableLineSegmentContext>;
10151
- borderWidth: chart_js.Scriptable<number | undefined, chart_js.ScriptableLineSegmentContext>;
10152
- }> | readonly (chart_js_dist_types_utils._DeepPartialObject<{
10153
- backgroundColor: chart_js.Scriptable<chart_js.Color | undefined, chart_js.ScriptableLineSegmentContext>;
10154
- borderColor: chart_js.Scriptable<chart_js.Color | undefined, chart_js.ScriptableLineSegmentContext>;
10155
- borderCapStyle: chart_js.Scriptable<CanvasLineCap | undefined, chart_js.ScriptableLineSegmentContext>;
10156
- borderDash: chart_js.Scriptable<number[] | undefined, chart_js.ScriptableLineSegmentContext>;
10157
- borderDashOffset: chart_js.Scriptable<number | undefined, chart_js.ScriptableLineSegmentContext>;
10158
- borderJoinStyle: chart_js.Scriptable<CanvasLineJoin | undefined, chart_js.ScriptableLineSegmentContext>;
10159
- borderWidth: chart_js.Scriptable<number | undefined, chart_js.ScriptableLineSegmentContext>;
10160
- }> | undefined)[] | undefined;
10161
- hoverBorderCapStyle?: "square" | "butt" | "round" | ((ctx: chart_js.ScriptableContext<"radar">, options: chart_js_dist_types_basic.AnyObject) => CanvasLineCap | undefined) | readonly ("square" | "butt" | "round" | undefined)[] | undefined;
10162
- hoverBorderDash?: ((ctx: chart_js.ScriptableContext<"radar">, options: chart_js_dist_types_basic.AnyObject) => number[] | undefined) | chart_js_dist_types_utils._DeepPartialArray<number> | readonly (chart_js_dist_types_utils._DeepPartialArray<number> | undefined)[] | undefined;
10163
- hoverBorderDashOffset?: number | ((ctx: chart_js.ScriptableContext<"radar">, options: chart_js_dist_types_basic.AnyObject) => number | undefined) | readonly (number | undefined)[] | undefined;
10164
- hoverBorderJoinStyle?: "round" | "bevel" | "miter" | ((ctx: chart_js.ScriptableContext<"radar">, options: chart_js_dist_types_basic.AnyObject) => CanvasLineJoin | undefined) | readonly ("round" | "bevel" | "miter" | undefined)[] | undefined;
10165
- animation?: false | chart_js_dist_types_utils._DeepPartialObject<chart_js.AnimationSpec<"radar"> & {
10166
- onProgress?: ((this: chart_js.Chart<keyof chart_js.ChartTypeRegistry, (number | [number, number] | chart_js.Point | chart_js.BubbleDataPoint | null)[], unknown>, event: chart_js.AnimationEvent) => void) | undefined;
10167
- onComplete?: ((this: chart_js.Chart<keyof chart_js.ChartTypeRegistry, (number | [number, number] | chart_js.Point | chart_js.BubbleDataPoint | null)[], unknown>, event: chart_js.AnimationEvent) => void) | undefined;
10168
- }> | undefined;
10169
- animations?: chart_js_dist_types_utils._DeepPartialObject<chart_js.AnimationsSpec<"radar">> | undefined;
10170
- transitions?: chart_js_dist_types_utils._DeepPartialObject<chart_js.TransitionsSpec<"radar">> | undefined;
9897
+ fill: boolean;
9898
+ pointBackgroundColor: Color;
10171
9899
  } | undefined;
10172
9900
  declare function formatTickValue(localeFormat: LocaleFormat): (value: any) => any;
10173
9901
 
@@ -2,9 +2,9 @@
2
2
  /**
3
3
  * This file is generated by o-spreadsheet build tools. Do not edit it.
4
4
  * @see https://github.com/odoo/o-spreadsheet
5
- * @version 18.0.3
6
- * @date 2024-11-08T12:17:49.992Z
7
- * @hash 5fa5fbb
5
+ * @version 18.0.4
6
+ * @date 2024-11-13T15:08:50.620Z
7
+ * @hash 88e1aee
8
8
  */
9
9
 
10
10
  import { useEnv, useSubEnv, onWillUnmount, useComponent, status, Component, useRef, onMounted, useEffect, useState, onPatched, onWillPatch, onWillUpdateProps, useExternalListener, onWillStart, xml, useChildSubEnv, markRaw, toRaw } from '@odoo/owl';
@@ -9320,24 +9320,21 @@ function getFullTrendingLineDataSet(dataset, config, data) {
9320
9320
  const defaultBorderColor = colorToRGBA(dataset.backgroundColor);
9321
9321
  defaultBorderColor.a = 1;
9322
9322
  const borderColor = config.color || lightenColor(rgbaToHex(defaultBorderColor), 0.5);
9323
- const backgroundRGBA = colorToRGBA(borderColor);
9324
- // @ts-expect-error
9325
- if (dataset?.fill) {
9326
- backgroundRGBA.a = LINE_FILL_TRANSPARENCY; // to support area charts
9327
- }
9328
9323
  return {
9329
- ...dataset,
9330
9324
  type: "line",
9331
9325
  xAxisID: TREND_LINE_XAXIS_ID,
9326
+ yAxisID: dataset.yAxisID,
9332
9327
  label: dataset.label ? _t("Trend line for %s", dataset.label) : "",
9333
9328
  data,
9334
9329
  order: -1,
9335
9330
  showLine: true,
9336
9331
  pointRadius: 0,
9337
- backgroundColor: rgbaToHex(backgroundRGBA),
9332
+ backgroundColor: borderColor,
9338
9333
  borderColor,
9339
9334
  borderDash: [5, 5],
9340
9335
  borderWidth: undefined,
9336
+ fill: false,
9337
+ pointBackgroundColor: borderColor,
9341
9338
  };
9342
9339
  }
9343
9340
  function interpolateData(config, values, labels, newLabels) {
@@ -28170,11 +28167,14 @@ function getDefaultChartJsRuntime(chart, labels, fontColor, { format, locale, tr
28170
28167
  function getChartLabelFormat(getters, range) {
28171
28168
  if (!range)
28172
28169
  return undefined;
28173
- return getters.getEvaluatedCell({
28174
- sheetId: range.sheetId,
28175
- col: range.zone.left,
28176
- row: range.zone.top,
28177
- }).format;
28170
+ const { sheetId, zone: { left, top, bottom }, } = range;
28171
+ for (let row = top; row <= bottom; row++) {
28172
+ const format = getters.getEvaluatedCell({ sheetId, col: left, row }).format;
28173
+ if (format) {
28174
+ return format;
28175
+ }
28176
+ }
28177
+ return undefined;
28178
28178
  }
28179
28179
  function getChartLabelValues(getters, dataSets, labelRange) {
28180
28180
  let labels = { values: [], formattedValues: [] };
@@ -28755,11 +28755,7 @@ function canBeDateChart(labelRange, getters) {
28755
28755
  if (!labelRange || !canBeLinearChart(labelRange, getters)) {
28756
28756
  return false;
28757
28757
  }
28758
- const labelFormat = getters.getEvaluatedCell({
28759
- sheetId: labelRange.sheetId,
28760
- col: labelRange.zone.left,
28761
- row: labelRange.zone.top,
28762
- }).format;
28758
+ const labelFormat = getChartLabelFormat(getters, labelRange);
28763
28759
  return Boolean(labelFormat && timeFormatLuxonCompatible.test(labelFormat));
28764
28760
  }
28765
28761
  function canBeLinearChart(labelRange, getters) {
@@ -36729,6 +36725,7 @@ class ColorPicker extends Component {
36729
36725
  currentColor: { type: String, optional: true },
36730
36726
  maxHeight: { type: Number, optional: true },
36731
36727
  anchorRect: Object,
36728
+ disableNoColor: { type: Boolean, optional: true },
36732
36729
  };
36733
36730
  static defaultProps = { currentColor: "" };
36734
36731
  static components = { Popover };
@@ -36955,6 +36952,7 @@ class RoundColorPicker extends Component {
36955
36952
  currentColor: { type: String, optional: true },
36956
36953
  title: { type: String, optional: true },
36957
36954
  onColorPicked: Function,
36955
+ disableNoColor: { type: Boolean, optional: true },
36958
36956
  };
36959
36957
  colorPickerButtonRef = useRef("colorPickerButton");
36960
36958
  state;
@@ -39733,6 +39731,9 @@ class ConditionalFormattingEditor extends Component {
39733
39731
  }
39734
39732
  }
39735
39733
  setColorScaleColor(target, color) {
39734
+ if (!isColorValid(color)) {
39735
+ return;
39736
+ }
39736
39737
  const point = this.state.rules.colorScale[target];
39737
39738
  if (point) {
39738
39739
  point.color = Number.parseInt(color.substr(1), 16);
@@ -72434,6 +72435,6 @@ const constants = {
72434
72435
  export { AbstractCellClipboardHandler, AbstractChart, AbstractFigureClipboardHandler, CellErrorType, CommandResult, CorePlugin, DispatchResult, EvaluationError, Model, PivotRuntimeDefinition, Registry, Revision, SPREADSHEET_DIMENSIONS, Spreadsheet, SpreadsheetPivotTable, UIPlugin, __info__, addFunction, addRenderingLayer, astToFormula, compile, compileTokens, components, constants, convertAstNodes, coreTypes, findCellInNewZone, functionCache, helpers, hooks, invalidateCFEvaluationCommands, invalidateDependenciesCommands, invalidateEvaluationCommands, iterateAstNodes, links, load, parse, parseTokens, readonlyAllowedCommands, registries, setDefaultSheetViewSize, setTranslationMethod, stores, tokenColors, tokenize };
72435
72436
 
72436
72437
 
72437
- __info__.version = "18.0.3";
72438
- __info__.date = "2024-11-08T12:17:49.992Z";
72439
- __info__.hash = "5fa5fbb";
72438
+ __info__.version = "18.0.4";
72439
+ __info__.date = "2024-11-13T15:08:50.620Z";
72440
+ __info__.hash = "88e1aee";