@odoo/o-spreadsheet 19.1.0-alpha.2 → 19.1.0-alpha.3

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 19.1.0-alpha.2
6
- * @date 2025-09-19T07:26:49.306Z
7
- * @hash 8cc543d
5
+ * @version 19.1.0-alpha.3
6
+ * @date 2025-09-23T12:37:52.238Z
7
+ * @hash ce2b07a
8
8
  */
9
9
 
10
10
  'use strict';
@@ -26565,7 +26565,7 @@ function getRadarChartScales(definition, args) {
26565
26565
  },
26566
26566
  pointLabels: {
26567
26567
  color: chartFontColor(definition.background),
26568
- callback: truncateLabel,
26568
+ callback: (label) => truncateLabel(label),
26569
26569
  },
26570
26570
  suggestedMin: minValue < 0 ? minValue - 1 : 0,
26571
26571
  },
@@ -32237,13 +32237,13 @@ class CarouselFigure extends owl.Component {
32237
32237
  }
32238
32238
  get headerStyle() {
32239
32239
  const cssProperties = {};
32240
- if (this.selectedCarouselItem?.type === "carouselDataView") {
32241
- cssProperties["background-color"] = "#ffffff";
32242
- }
32243
- else if (this.selectedCarouselItem?.type === "chart") {
32240
+ if (this.selectedCarouselItem?.type === "chart") {
32244
32241
  const chart = this.env.model.getters.getChartRuntime(this.selectedCarouselItem.chartId);
32245
32242
  cssProperties["background-color"] = chart.background;
32246
32243
  }
32244
+ else {
32245
+ cssProperties["background-color"] = "#ffffff";
32246
+ }
32247
32247
  return cssPropertiesToCss(cssProperties);
32248
32248
  }
32249
32249
  get title() {
@@ -72880,7 +72880,10 @@ class SortPlugin extends UIPlugin {
72880
72880
  return "Success" /* CommandResult.Success */;
72881
72881
  }
72882
72882
  checkArrayFormulaInSortZone({ sheetId, zone }) {
72883
- const arrayFormulaInZone = positions(zone).some(({ col, row }) => this.getters.getArrayFormulaSpreadingOn({ sheetId, col, row }));
72883
+ const arrayFormulaInZone = positions(zone).some(({ col, row }) => {
72884
+ const originPosition = this.getters.getArrayFormulaSpreadingOn({ sheetId, col, row });
72885
+ return originPosition && !deepEquals(originPosition, { sheetId, col, row });
72886
+ });
72884
72887
  return arrayFormulaInZone ? "SortZoneWithArrayFormulas" /* CommandResult.SortZoneWithArrayFormulas */ : "Success" /* CommandResult.Success */;
72885
72888
  }
72886
72889
  /**
@@ -85735,6 +85738,6 @@ exports.tokenColors = tokenColors;
85735
85738
  exports.tokenize = tokenize;
85736
85739
 
85737
85740
 
85738
- __info__.version = "19.1.0-alpha.2";
85739
- __info__.date = "2025-09-19T07:26:49.306Z";
85740
- __info__.hash = "8cc543d";
85741
+ __info__.version = "19.1.0-alpha.3";
85742
+ __info__.date = "2025-09-23T12:37:52.238Z";
85743
+ __info__.hash = "ce2b07a";
@@ -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 19.1.0-alpha.2
6
- * @date 2025-09-19T07:26:49.306Z
7
- * @hash 8cc543d
5
+ * @version 19.1.0-alpha.3
6
+ * @date 2025-09-23T12:37:52.238Z
7
+ * @hash ce2b07a
8
8
  */
9
9
 
10
10
  import { useEnv, useSubEnv, onWillUnmount, useComponent, status, Component, useRef, onMounted, useEffect, App, blockDom, useState, onPatched, useExternalListener, onWillUpdateProps, onWillStart, onWillPatch, xml, useChildSubEnv, markRaw, toRaw } from '@odoo/owl';
@@ -26563,7 +26563,7 @@ function getRadarChartScales(definition, args) {
26563
26563
  },
26564
26564
  pointLabels: {
26565
26565
  color: chartFontColor(definition.background),
26566
- callback: truncateLabel,
26566
+ callback: (label) => truncateLabel(label),
26567
26567
  },
26568
26568
  suggestedMin: minValue < 0 ? minValue - 1 : 0,
26569
26569
  },
@@ -32235,13 +32235,13 @@ class CarouselFigure extends Component {
32235
32235
  }
32236
32236
  get headerStyle() {
32237
32237
  const cssProperties = {};
32238
- if (this.selectedCarouselItem?.type === "carouselDataView") {
32239
- cssProperties["background-color"] = "#ffffff";
32240
- }
32241
- else if (this.selectedCarouselItem?.type === "chart") {
32238
+ if (this.selectedCarouselItem?.type === "chart") {
32242
32239
  const chart = this.env.model.getters.getChartRuntime(this.selectedCarouselItem.chartId);
32243
32240
  cssProperties["background-color"] = chart.background;
32244
32241
  }
32242
+ else {
32243
+ cssProperties["background-color"] = "#ffffff";
32244
+ }
32245
32245
  return cssPropertiesToCss(cssProperties);
32246
32246
  }
32247
32247
  get title() {
@@ -72878,7 +72878,10 @@ class SortPlugin extends UIPlugin {
72878
72878
  return "Success" /* CommandResult.Success */;
72879
72879
  }
72880
72880
  checkArrayFormulaInSortZone({ sheetId, zone }) {
72881
- const arrayFormulaInZone = positions(zone).some(({ col, row }) => this.getters.getArrayFormulaSpreadingOn({ sheetId, col, row }));
72881
+ const arrayFormulaInZone = positions(zone).some(({ col, row }) => {
72882
+ const originPosition = this.getters.getArrayFormulaSpreadingOn({ sheetId, col, row });
72883
+ return originPosition && !deepEquals(originPosition, { sheetId, col, row });
72884
+ });
72882
72885
  return arrayFormulaInZone ? "SortZoneWithArrayFormulas" /* CommandResult.SortZoneWithArrayFormulas */ : "Success" /* CommandResult.Success */;
72883
72886
  }
72884
72887
  /**
@@ -85683,6 +85686,6 @@ const chartHelpers = { ...CHART_HELPERS, ...CHART_RUNTIME_HELPERS };
85683
85686
  export { AbstractCellClipboardHandler, AbstractChart, AbstractFigureClipboardHandler, CellErrorType, ClientDisconnectedError, CommandResult, CorePlugin, CoreViewPlugin, DispatchResult, EvaluationError, LocalTransportService, Model, PivotRuntimeDefinition, Registry, Revision, SPREADSHEET_DIMENSIONS, Spreadsheet, SpreadsheetPivotTable, UIPlugin, __info__, addFunction, addRenderingLayer, astToFormula, chartHelpers, compile, compileTokens, components, constants, convertAstNodes, coreTypes, findCellInNewZone, functionCache, getCaretDownSvg, getCaretUpSvg, helpers, hooks, invalidateCFEvaluationCommands, invalidateChartEvaluationCommands, invalidateDependenciesCommands, invalidateEvaluationCommands, iterateAstNodes, links, load, parse, parseTokens, readonlyAllowedCommands, registries, setDefaultSheetViewSize, setTranslationMethod, stores, tokenColors, tokenize };
85684
85687
 
85685
85688
 
85686
- __info__.version = "19.1.0-alpha.2";
85687
- __info__.date = "2025-09-19T07:26:49.306Z";
85688
- __info__.hash = "8cc543d";
85689
+ __info__.version = "19.1.0-alpha.3";
85690
+ __info__.date = "2025-09-23T12:37:52.238Z";
85691
+ __info__.hash = "ce2b07a";
@@ -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 19.1.0-alpha.2
6
- * @date 2025-09-19T07:26:49.306Z
7
- * @hash 8cc543d
5
+ * @version 19.1.0-alpha.3
6
+ * @date 2025-09-23T12:37:52.238Z
7
+ * @hash ce2b07a
8
8
  */
9
9
 
10
10
  (function (exports, owl) {
@@ -26564,7 +26564,7 @@ stores.inject(MyMetaStore, storeInstance);
26564
26564
  },
26565
26565
  pointLabels: {
26566
26566
  color: chartFontColor(definition.background),
26567
- callback: truncateLabel,
26567
+ callback: (label) => truncateLabel(label),
26568
26568
  },
26569
26569
  suggestedMin: minValue < 0 ? minValue - 1 : 0,
26570
26570
  },
@@ -32236,13 +32236,13 @@ stores.inject(MyMetaStore, storeInstance);
32236
32236
  }
32237
32237
  get headerStyle() {
32238
32238
  const cssProperties = {};
32239
- if (this.selectedCarouselItem?.type === "carouselDataView") {
32240
- cssProperties["background-color"] = "#ffffff";
32241
- }
32242
- else if (this.selectedCarouselItem?.type === "chart") {
32239
+ if (this.selectedCarouselItem?.type === "chart") {
32243
32240
  const chart = this.env.model.getters.getChartRuntime(this.selectedCarouselItem.chartId);
32244
32241
  cssProperties["background-color"] = chart.background;
32245
32242
  }
32243
+ else {
32244
+ cssProperties["background-color"] = "#ffffff";
32245
+ }
32246
32246
  return cssPropertiesToCss(cssProperties);
32247
32247
  }
32248
32248
  get title() {
@@ -72879,7 +72879,10 @@ stores.inject(MyMetaStore, storeInstance);
72879
72879
  return "Success" /* CommandResult.Success */;
72880
72880
  }
72881
72881
  checkArrayFormulaInSortZone({ sheetId, zone }) {
72882
- const arrayFormulaInZone = positions(zone).some(({ col, row }) => this.getters.getArrayFormulaSpreadingOn({ sheetId, col, row }));
72882
+ const arrayFormulaInZone = positions(zone).some(({ col, row }) => {
72883
+ const originPosition = this.getters.getArrayFormulaSpreadingOn({ sheetId, col, row });
72884
+ return originPosition && !deepEquals(originPosition, { sheetId, col, row });
72885
+ });
72883
72886
  return arrayFormulaInZone ? "SortZoneWithArrayFormulas" /* CommandResult.SortZoneWithArrayFormulas */ : "Success" /* CommandResult.Success */;
72884
72887
  }
72885
72888
  /**
@@ -85734,9 +85737,9 @@ stores.inject(MyMetaStore, storeInstance);
85734
85737
  exports.tokenize = tokenize;
85735
85738
 
85736
85739
 
85737
- __info__.version = "19.1.0-alpha.2";
85738
- __info__.date = "2025-09-19T07:26:49.306Z";
85739
- __info__.hash = "8cc543d";
85740
+ __info__.version = "19.1.0-alpha.3";
85741
+ __info__.date = "2025-09-23T12:37:52.238Z";
85742
+ __info__.hash = "ce2b07a";
85740
85743
 
85741
85744
 
85742
85745
  })(this.o_spreadsheet = this.o_spreadsheet || {}, owl);