@odoo/o-spreadsheet 19.0.42 → 19.0.43

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.0.42
6
- * @date 2026-07-13T06:28:59.983Z
7
- * @hash 74cadf3
5
+ * @version 19.0.43
6
+ * @date 2026-07-20T10:59:58.033Z
7
+ * @hash 23b4f32
8
8
  */
9
9
  /* Originates from src/components/top_bar/top_bar.scss */
10
10
  @media (max-width: 1200px) {
@@ -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.0.42
6
- * @date 2026-07-13T06:28:58.351Z
7
- * @hash 74cadf3
5
+ * @version 19.0.43
6
+ * @date 2026-07-20T10:59:56.737Z
7
+ * @hash 23b4f32
8
8
  */
9
9
 
10
10
  import { App, Component, blockDom, markRaw, onMounted, onPatched, onWillPatch, onWillStart, onWillUnmount, onWillUpdateProps, status, toRaw, useChildSubEnv, useComponent, useEffect, useEnv, useExternalListener, useRef, useState, useSubEnv, xml } from "@odoo/owl";
@@ -49526,7 +49526,7 @@ var ScorecardChartConfigPanel = class extends Component {
49526
49526
  return !!this.state.keyValueDispatchResult?.isCancelledBecause("InvalidScorecardKeyValue");
49527
49527
  }
49528
49528
  get isBaselineInvalid() {
49529
- return !!this.state.keyValueDispatchResult?.isCancelledBecause("InvalidScorecardBaseline");
49529
+ return !!this.state.baselineDispatchResult?.isCancelledBecause("InvalidScorecardBaseline");
49530
49530
  }
49531
49531
  onKeyValueRangeChanged(ranges) {
49532
49532
  this.keyValue = ranges[0];
@@ -63868,6 +63868,8 @@ var PivotUIPlugin = class extends CoreViewPlugin {
63868
63868
  pivots = {};
63869
63869
  unusedPivots;
63870
63870
  custom;
63871
+ pivotPositionCache = new PositionMap();
63872
+ shouldInvalidateCache = false;
63871
63873
  constructor(config) {
63872
63874
  super(config);
63873
63875
  this.custom = config.custom;
@@ -63878,7 +63880,11 @@ var PivotUIPlugin = class extends CoreViewPlugin {
63878
63880
  }
63879
63881
  }
63880
63882
  handle(cmd) {
63881
- if (invalidateEvaluationCommands.has(cmd.type)) for (const pivotId of this.getters.getPivotIds()) this.setupPivot(pivotId, { recreate: true });
63883
+ if (invalidateEvaluationCommands.has(cmd.type)) {
63884
+ this.shouldInvalidateCache = true;
63885
+ for (const pivotId of this.getters.getPivotIds()) this.setupPivot(pivotId, { recreate: true });
63886
+ }
63887
+ if (cmd.type === "UPDATE_CELL") this.shouldInvalidateCache = true;
63882
63888
  switch (cmd.type) {
63883
63889
  case "REFRESH_PIVOT":
63884
63890
  this.refreshPivot(cmd.id);
@@ -63918,6 +63924,12 @@ var PivotUIPlugin = class extends CoreViewPlugin {
63918
63924
  break;
63919
63925
  }
63920
63926
  }
63927
+ finalize() {
63928
+ if (this.shouldInvalidateCache) {
63929
+ this.pivotPositionCache = new PositionMap();
63930
+ this.shouldInvalidateCache = false;
63931
+ }
63932
+ }
63921
63933
  /**
63922
63934
  * Get the id of the first pivot in the formula at the given position. Returns undefined if there
63923
63935
  * is no pivot at this position
@@ -63929,9 +63941,14 @@ var PivotUIPlugin = class extends CoreViewPlugin {
63929
63941
  * Get all of the ids of the pivot present in the formula at the given position.
63930
63942
  */
63931
63943
  getPivotIdsFromPosition(position) {
63932
- const cell = this.getters.getCorrespondingFormulaCell(position);
63933
- if (cell && cell.isFormula) return this.getPivotIdsFromFormula(position.sheetId, cell.compiledFormula);
63934
- return [];
63944
+ if (!this.pivotPositionCache.has(position)) {
63945
+ const cell = this.getters.getCorrespondingFormulaCell(position);
63946
+ if (cell && cell.isFormula) {
63947
+ const pivotIds = this.getPivotIdsFromFormula(position.sheetId, cell.compiledFormula);
63948
+ this.pivotPositionCache.set(position, pivotIds);
63949
+ }
63950
+ }
63951
+ return this.pivotPositionCache.get(position) || [];
63935
63952
  }
63936
63953
  getPivotIdsFromFormula(sheetId, formula) {
63937
63954
  return this.getPivotFunctions(sheetId, formula.tokens).map((pivotFunction) => {
@@ -79242,7 +79259,8 @@ const helpers = {
79242
79259
  getUniqueText,
79243
79260
  isNumber,
79244
79261
  isDateTime,
79245
- createCustomFields
79262
+ createCustomFields,
79263
+ PositionMap
79246
79264
  };
79247
79265
  const links = {
79248
79266
  isMarkdownLink,
@@ -79357,6 +79375,6 @@ const chartHelpers = {
79357
79375
  //#endregion
79358
79376
  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 };
79359
79377
 
79360
- __info__.version = "19.0.42";
79361
- __info__.date = "2026-07-13T06:28:58.351Z";
79362
- __info__.hash = "74cadf3";
79378
+ __info__.version = "19.0.43";
79379
+ __info__.date = "2026-07-20T10:59:56.737Z";
79380
+ __info__.hash = "23b4f32";
@@ -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.0.42
6
- * @date 2026-07-13T06:28:58.351Z
7
- * @hash 74cadf3
5
+ * @version 19.0.43
6
+ * @date 2026-07-20T10:59:56.737Z
7
+ * @hash 23b4f32
8
8
  */
9
9
 
10
10
  (function(exports, _odoo_owl) {
@@ -49528,7 +49528,7 @@ stores.inject(MyMetaStore, storeInstance);
49528
49528
  return !!this.state.keyValueDispatchResult?.isCancelledBecause("InvalidScorecardKeyValue");
49529
49529
  }
49530
49530
  get isBaselineInvalid() {
49531
- return !!this.state.keyValueDispatchResult?.isCancelledBecause("InvalidScorecardBaseline");
49531
+ return !!this.state.baselineDispatchResult?.isCancelledBecause("InvalidScorecardBaseline");
49532
49532
  }
49533
49533
  onKeyValueRangeChanged(ranges) {
49534
49534
  this.keyValue = ranges[0];
@@ -63870,6 +63870,8 @@ stores.inject(MyMetaStore, storeInstance);
63870
63870
  pivots = {};
63871
63871
  unusedPivots;
63872
63872
  custom;
63873
+ pivotPositionCache = new PositionMap();
63874
+ shouldInvalidateCache = false;
63873
63875
  constructor(config) {
63874
63876
  super(config);
63875
63877
  this.custom = config.custom;
@@ -63880,7 +63882,11 @@ stores.inject(MyMetaStore, storeInstance);
63880
63882
  }
63881
63883
  }
63882
63884
  handle(cmd) {
63883
- if (invalidateEvaluationCommands.has(cmd.type)) for (const pivotId of this.getters.getPivotIds()) this.setupPivot(pivotId, { recreate: true });
63885
+ if (invalidateEvaluationCommands.has(cmd.type)) {
63886
+ this.shouldInvalidateCache = true;
63887
+ for (const pivotId of this.getters.getPivotIds()) this.setupPivot(pivotId, { recreate: true });
63888
+ }
63889
+ if (cmd.type === "UPDATE_CELL") this.shouldInvalidateCache = true;
63884
63890
  switch (cmd.type) {
63885
63891
  case "REFRESH_PIVOT":
63886
63892
  this.refreshPivot(cmd.id);
@@ -63920,6 +63926,12 @@ stores.inject(MyMetaStore, storeInstance);
63920
63926
  break;
63921
63927
  }
63922
63928
  }
63929
+ finalize() {
63930
+ if (this.shouldInvalidateCache) {
63931
+ this.pivotPositionCache = new PositionMap();
63932
+ this.shouldInvalidateCache = false;
63933
+ }
63934
+ }
63923
63935
  /**
63924
63936
  * Get the id of the first pivot in the formula at the given position. Returns undefined if there
63925
63937
  * is no pivot at this position
@@ -63931,9 +63943,14 @@ stores.inject(MyMetaStore, storeInstance);
63931
63943
  * Get all of the ids of the pivot present in the formula at the given position.
63932
63944
  */
63933
63945
  getPivotIdsFromPosition(position) {
63934
- const cell = this.getters.getCorrespondingFormulaCell(position);
63935
- if (cell && cell.isFormula) return this.getPivotIdsFromFormula(position.sheetId, cell.compiledFormula);
63936
- return [];
63946
+ if (!this.pivotPositionCache.has(position)) {
63947
+ const cell = this.getters.getCorrespondingFormulaCell(position);
63948
+ if (cell && cell.isFormula) {
63949
+ const pivotIds = this.getPivotIdsFromFormula(position.sheetId, cell.compiledFormula);
63950
+ this.pivotPositionCache.set(position, pivotIds);
63951
+ }
63952
+ }
63953
+ return this.pivotPositionCache.get(position) || [];
63937
63954
  }
63938
63955
  getPivotIdsFromFormula(sheetId, formula) {
63939
63956
  return this.getPivotFunctions(sheetId, formula.tokens).map((pivotFunction) => {
@@ -79244,7 +79261,8 @@ stores.inject(MyMetaStore, storeInstance);
79244
79261
  getUniqueText,
79245
79262
  isNumber,
79246
79263
  isDateTime,
79247
- createCustomFields
79264
+ createCustomFields,
79265
+ PositionMap
79248
79266
  };
79249
79267
  const links = {
79250
79268
  isMarkdownLink,
@@ -79410,8 +79428,8 @@ exports.stores = stores;
79410
79428
  exports.tokenColors = tokenColors;
79411
79429
  exports.tokenize = tokenize;
79412
79430
 
79413
- __info__.version = "19.0.42";
79414
- __info__.date = "2026-07-13T06:28:58.351Z";
79415
- __info__.hash = "74cadf3";
79431
+ __info__.version = "19.0.43";
79432
+ __info__.date = "2026-07-20T10:59:56.737Z";
79433
+ __info__.hash = "23b4f32";
79416
79434
 
79417
79435
  })(this.o_spreadsheet = this.o_spreadsheet || {}, owl);