@odoo/o-spreadsheet 18.3.14 → 18.3.16

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.3.14
6
- * @date 2025-07-30T11:18:53.973Z
7
- * @hash 2a7178a
5
+ * @version 18.3.16
6
+ * @date 2025-08-18T08:15:07.809Z
7
+ * @hash 68ef497
8
8
  */
9
9
 
10
10
  'use strict';
@@ -18957,7 +18957,7 @@ const OFFSET = {
18957
18957
  right: startingCol + offsetWidth - 1,
18958
18958
  bottom: startingRow + offsetHeight - 1,
18959
18959
  };
18960
- const range = this.getters.getRangeFromZone(this.__originSheetId, dependencyZone);
18960
+ const range = this.getters.getRangeFromZone(sheetId, dependencyZone);
18961
18961
  if (range.invalidXc || range.invalidSheetName) {
18962
18962
  return new InvalidReferenceError();
18963
18963
  }
@@ -21964,6 +21964,7 @@ class ChartJsComponent extends owl.Component {
21964
21964
  }
21965
21965
  setup() {
21966
21966
  owl.onMounted(() => {
21967
+ registerChartJSExtensions();
21967
21968
  const runtime = this.chartRuntime;
21968
21969
  this.currentRuntime = runtime;
21969
21970
  // Note: chartJS modify the runtime in place, so it's important to give it a copy
@@ -48788,7 +48789,7 @@ class PivotLayoutConfigurator extends owl.Component {
48788
48789
  this.props.onDimensionsUpdated(update);
48789
48790
  }
48790
48791
  getMeasureId(fieldName, aggregator) {
48791
- const baseId = fieldName + (aggregator ? `:${aggregator}` : "");
48792
+ const baseId = fieldName.replaceAll("'", "") + (aggregator ? `:${aggregator}` : "");
48792
48793
  let id = baseId;
48793
48794
  let i = 2;
48794
48795
  while (this.props.definition.measures.some((m) => m.id === id)) {
@@ -74355,9 +74356,7 @@ class ClickableCellsStore extends SpreadsheetStore {
74355
74356
  }
74356
74357
  if (!(xc in clickableCells[sheetId])) {
74357
74358
  const clickableCell = this.findClickableItem(position);
74358
- if (clickableCell) {
74359
- clickableCells[sheetId][xc] = clickableCell;
74360
- }
74359
+ clickableCells[sheetId][xc] = clickableCell;
74361
74360
  }
74362
74361
  return clickableCells[sheetId][xc];
74363
74362
  }
@@ -76366,7 +76365,6 @@ class Spreadsheet extends owl.Component {
76366
76365
  this.checkViewportSize();
76367
76366
  stores.on("store-updated", this, render);
76368
76367
  resizeObserver.observe(this.spreadsheetRef.el);
76369
- registerChartJSExtensions();
76370
76368
  });
76371
76369
  owl.onWillUnmount(() => {
76372
76370
  this.unbindModelEvents();
@@ -80922,6 +80920,6 @@ exports.tokenColors = tokenColors;
80922
80920
  exports.tokenize = tokenize;
80923
80921
 
80924
80922
 
80925
- __info__.version = "18.3.14";
80926
- __info__.date = "2025-07-30T11:18:53.973Z";
80927
- __info__.hash = "2a7178a";
80923
+ __info__.version = "18.3.16";
80924
+ __info__.date = "2025-08-18T08:15:07.809Z";
80925
+ __info__.hash = "68ef497";
@@ -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.3.14
6
- * @date 2025-07-30T11:18:53.973Z
7
- * @hash 2a7178a
5
+ * @version 18.3.16
6
+ * @date 2025-08-18T08:15:07.809Z
7
+ * @hash 68ef497
8
8
  */
9
9
 
10
10
  import { useEnv, useSubEnv, onWillUnmount, useComponent, status, Component, useRef, onMounted, useEffect, App, blockDom, useState, onPatched, onWillPatch, onWillUpdateProps, useExternalListener, onWillStart, xml, useChildSubEnv, markRaw, toRaw } from '@odoo/owl';
@@ -18955,7 +18955,7 @@ const OFFSET = {
18955
18955
  right: startingCol + offsetWidth - 1,
18956
18956
  bottom: startingRow + offsetHeight - 1,
18957
18957
  };
18958
- const range = this.getters.getRangeFromZone(this.__originSheetId, dependencyZone);
18958
+ const range = this.getters.getRangeFromZone(sheetId, dependencyZone);
18959
18959
  if (range.invalidXc || range.invalidSheetName) {
18960
18960
  return new InvalidReferenceError();
18961
18961
  }
@@ -21962,6 +21962,7 @@ class ChartJsComponent extends Component {
21962
21962
  }
21963
21963
  setup() {
21964
21964
  onMounted(() => {
21965
+ registerChartJSExtensions();
21965
21966
  const runtime = this.chartRuntime;
21966
21967
  this.currentRuntime = runtime;
21967
21968
  // Note: chartJS modify the runtime in place, so it's important to give it a copy
@@ -48786,7 +48787,7 @@ class PivotLayoutConfigurator extends Component {
48786
48787
  this.props.onDimensionsUpdated(update);
48787
48788
  }
48788
48789
  getMeasureId(fieldName, aggregator) {
48789
- const baseId = fieldName + (aggregator ? `:${aggregator}` : "");
48790
+ const baseId = fieldName.replaceAll("'", "") + (aggregator ? `:${aggregator}` : "");
48790
48791
  let id = baseId;
48791
48792
  let i = 2;
48792
48793
  while (this.props.definition.measures.some((m) => m.id === id)) {
@@ -74353,9 +74354,7 @@ class ClickableCellsStore extends SpreadsheetStore {
74353
74354
  }
74354
74355
  if (!(xc in clickableCells[sheetId])) {
74355
74356
  const clickableCell = this.findClickableItem(position);
74356
- if (clickableCell) {
74357
- clickableCells[sheetId][xc] = clickableCell;
74358
- }
74357
+ clickableCells[sheetId][xc] = clickableCell;
74359
74358
  }
74360
74359
  return clickableCells[sheetId][xc];
74361
74360
  }
@@ -76364,7 +76363,6 @@ class Spreadsheet extends Component {
76364
76363
  this.checkViewportSize();
76365
76364
  stores.on("store-updated", this, render);
76366
76365
  resizeObserver.observe(this.spreadsheetRef.el);
76367
- registerChartJSExtensions();
76368
76366
  });
76369
76367
  onWillUnmount(() => {
76370
76368
  this.unbindModelEvents();
@@ -80874,6 +80872,6 @@ const chartHelpers = { ...CHART_HELPERS, ...CHART_RUNTIME_HELPERS };
80874
80872
  export { AbstractCellClipboardHandler, AbstractChart, AbstractFigureClipboardHandler, CellErrorType, CommandResult, CorePlugin, CoreViewPlugin, DispatchResult, EvaluationError, Model, PivotRuntimeDefinition, Registry, Revision, SPREADSHEET_DIMENSIONS, Spreadsheet, SpreadsheetPivotTable, UIPlugin, __info__, addFunction, addRenderingLayer, astToFormula, chartHelpers, compile, compileTokens, components, constants, convertAstNodes, coreTypes, findCellInNewZone, functionCache, helpers, hooks, invalidateCFEvaluationCommands, invalidateChartEvaluationCommands, invalidateDependenciesCommands, invalidateEvaluationCommands, iterateAstNodes, links, load, parse, parseTokens, readonlyAllowedCommands, registries, setDefaultSheetViewSize, setTranslationMethod, stores, tokenColors, tokenize };
80875
80873
 
80876
80874
 
80877
- __info__.version = "18.3.14";
80878
- __info__.date = "2025-07-30T11:18:53.973Z";
80879
- __info__.hash = "2a7178a";
80875
+ __info__.version = "18.3.16";
80876
+ __info__.date = "2025-08-18T08:15:07.809Z";
80877
+ __info__.hash = "68ef497";
@@ -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.3.14
6
- * @date 2025-07-30T11:18:53.973Z
7
- * @hash 2a7178a
5
+ * @version 18.3.16
6
+ * @date 2025-08-18T08:15:07.809Z
7
+ * @hash 68ef497
8
8
  */
9
9
 
10
10
  (function (exports, owl) {
@@ -18956,7 +18956,7 @@ stores.inject(MyMetaStore, storeInstance);
18956
18956
  right: startingCol + offsetWidth - 1,
18957
18957
  bottom: startingRow + offsetHeight - 1,
18958
18958
  };
18959
- const range = this.getters.getRangeFromZone(this.__originSheetId, dependencyZone);
18959
+ const range = this.getters.getRangeFromZone(sheetId, dependencyZone);
18960
18960
  if (range.invalidXc || range.invalidSheetName) {
18961
18961
  return new InvalidReferenceError();
18962
18962
  }
@@ -21963,6 +21963,7 @@ stores.inject(MyMetaStore, storeInstance);
21963
21963
  }
21964
21964
  setup() {
21965
21965
  owl.onMounted(() => {
21966
+ registerChartJSExtensions();
21966
21967
  const runtime = this.chartRuntime;
21967
21968
  this.currentRuntime = runtime;
21968
21969
  // Note: chartJS modify the runtime in place, so it's important to give it a copy
@@ -48787,7 +48788,7 @@ stores.inject(MyMetaStore, storeInstance);
48787
48788
  this.props.onDimensionsUpdated(update);
48788
48789
  }
48789
48790
  getMeasureId(fieldName, aggregator) {
48790
- const baseId = fieldName + (aggregator ? `:${aggregator}` : "");
48791
+ const baseId = fieldName.replaceAll("'", "") + (aggregator ? `:${aggregator}` : "");
48791
48792
  let id = baseId;
48792
48793
  let i = 2;
48793
48794
  while (this.props.definition.measures.some((m) => m.id === id)) {
@@ -74354,9 +74355,7 @@ stores.inject(MyMetaStore, storeInstance);
74354
74355
  }
74355
74356
  if (!(xc in clickableCells[sheetId])) {
74356
74357
  const clickableCell = this.findClickableItem(position);
74357
- if (clickableCell) {
74358
- clickableCells[sheetId][xc] = clickableCell;
74359
- }
74358
+ clickableCells[sheetId][xc] = clickableCell;
74360
74359
  }
74361
74360
  return clickableCells[sheetId][xc];
74362
74361
  }
@@ -76365,7 +76364,6 @@ stores.inject(MyMetaStore, storeInstance);
76365
76364
  this.checkViewportSize();
76366
76365
  stores.on("store-updated", this, render);
76367
76366
  resizeObserver.observe(this.spreadsheetRef.el);
76368
- registerChartJSExtensions();
76369
76367
  });
76370
76368
  owl.onWillUnmount(() => {
76371
76369
  this.unbindModelEvents();
@@ -80921,9 +80919,9 @@ stores.inject(MyMetaStore, storeInstance);
80921
80919
  exports.tokenize = tokenize;
80922
80920
 
80923
80921
 
80924
- __info__.version = "18.3.14";
80925
- __info__.date = "2025-07-30T11:18:53.973Z";
80926
- __info__.hash = "2a7178a";
80922
+ __info__.version = "18.3.16";
80923
+ __info__.date = "2025-08-18T08:15:07.809Z";
80924
+ __info__.hash = "68ef497";
80927
80925
 
80928
80926
 
80929
80927
  })(this.o_spreadsheet = this.o_spreadsheet || {}, owl);