@odoo/o-spreadsheet 18.0.69 → 18.0.70

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.69
6
- * @date 2026-05-27T05:57:08.710Z
7
- * @hash 50b85ba
5
+ * @version 18.0.70
6
+ * @date 2026-06-06T06:20:39.985Z
7
+ * @hash 3ff29f6
8
8
  */
9
9
 
10
10
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
@@ -3890,6 +3890,7 @@ function detectLink(value) {
3890
3890
  //#endregion
3891
3891
  //#region src/helpers/format/format_tokenizer.ts
3892
3892
  function tokenizeFormat(str) {
3893
+ str = str.replace(/\s/g, " ");
3893
3894
  const chars = new TokenizingChars(str);
3894
3895
  const result = [];
3895
3896
  let currentFormatPart = [];
@@ -29527,11 +29528,10 @@ const INSERT_TABLE = (env) => {
29527
29528
  if (interactiveCreateTable(env, env.model.getters.getActiveSheetId()).isSuccessful) env.openSidePanel("TableSidePanel", {});
29528
29529
  };
29529
29530
  const DELETE_SELECTED_TABLE = (env) => {
29530
- const position = env.model.getters.getActivePosition();
29531
- const table = env.model.getters.getTable(position);
29531
+ const table = env.model.getters.getFirstTableInSelection();
29532
29532
  if (!table) return;
29533
29533
  env.model.dispatch("REMOVE_TABLE", {
29534
- sheetId: position.sheetId,
29534
+ sheetId: env.model.getters.getActiveSheetId(),
29535
29535
  target: [table.range.zone]
29536
29536
  });
29537
29537
  };
@@ -53971,9 +53971,11 @@ var PivotUIPlugin = class extends UIPlugin {
53971
53971
  this.refreshPivot(cmd.id);
53972
53972
  break;
53973
53973
  case "ADD_PIVOT":
53974
+ this.unusedPivots?.push(cmd.pivotId);
53974
53975
  this.setupPivot(cmd.pivotId);
53975
53976
  break;
53976
53977
  case "DUPLICATE_PIVOT":
53978
+ this.unusedPivots?.push(cmd.newPivotId);
53977
53979
  this.setupPivot(cmd.newPivotId);
53978
53980
  break;
53979
53981
  case "UPDATE_PIVOT":
@@ -54159,8 +54161,8 @@ var PivotUIPlugin = class extends UIPlugin {
54159
54161
  }
54160
54162
  }
54161
54163
  for (const pivotId of this.getters.getPivotIds()) {
54162
- const pivot = this.getters.getPivot(pivotId);
54163
- for (const measure of pivot.definition.measures) if (measure.computedBy) {
54164
+ const pivot = this.getters.getPivotCoreDefinition(pivotId);
54165
+ for (const measure of pivot.measures) if (measure.computedBy) {
54164
54166
  const { sheetId } = measure.computedBy;
54165
54167
  const formula = this.getters.getMeasureCompiledFormula(pivotId, measure);
54166
54168
  const relatedPivotIds = this.getPivotIdsFromFormula(sheetId, formula);
@@ -66556,6 +66558,6 @@ exports.stores = stores;
66556
66558
  exports.tokenColors = tokenColors;
66557
66559
  exports.tokenize = tokenize;
66558
66560
 
66559
- __info__.version = "18.0.69";
66560
- __info__.date = "2026-05-27T05:57:08.710Z";
66561
- __info__.hash = "50b85ba";
66561
+ __info__.version = "18.0.70";
66562
+ __info__.date = "2026-06-06T06:20:39.985Z";
66563
+ __info__.hash = "3ff29f6";
@@ -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.69
6
- * @date 2026-05-27T05:57:08.710Z
7
- * @hash 50b85ba
5
+ * @version 18.0.70
6
+ * @date 2026-06-06T06:20:39.985Z
7
+ * @hash 3ff29f6
8
8
  */
9
9
 
10
10
  import { Component, markRaw, onMounted, onPatched, onWillPatch, onWillStart, onWillUnmount, onWillUpdateProps, status, toRaw, useChildSubEnv, useComponent, useEffect, useEnv, useExternalListener, useRef, useState, useSubEnv, xml } from "@odoo/owl";
@@ -3889,6 +3889,7 @@ function detectLink(value) {
3889
3889
  //#endregion
3890
3890
  //#region src/helpers/format/format_tokenizer.ts
3891
3891
  function tokenizeFormat(str) {
3892
+ str = str.replace(/\s/g, " ");
3892
3893
  const chars = new TokenizingChars(str);
3893
3894
  const result = [];
3894
3895
  let currentFormatPart = [];
@@ -29526,11 +29527,10 @@ const INSERT_TABLE = (env) => {
29526
29527
  if (interactiveCreateTable(env, env.model.getters.getActiveSheetId()).isSuccessful) env.openSidePanel("TableSidePanel", {});
29527
29528
  };
29528
29529
  const DELETE_SELECTED_TABLE = (env) => {
29529
- const position = env.model.getters.getActivePosition();
29530
- const table = env.model.getters.getTable(position);
29530
+ const table = env.model.getters.getFirstTableInSelection();
29531
29531
  if (!table) return;
29532
29532
  env.model.dispatch("REMOVE_TABLE", {
29533
- sheetId: position.sheetId,
29533
+ sheetId: env.model.getters.getActiveSheetId(),
29534
29534
  target: [table.range.zone]
29535
29535
  });
29536
29536
  };
@@ -53786,9 +53786,11 @@ var PivotUIPlugin = class extends UIPlugin {
53786
53786
  this.refreshPivot(cmd.id);
53787
53787
  break;
53788
53788
  case "ADD_PIVOT":
53789
+ this.unusedPivots?.push(cmd.pivotId);
53789
53790
  this.setupPivot(cmd.pivotId);
53790
53791
  break;
53791
53792
  case "DUPLICATE_PIVOT":
53793
+ this.unusedPivots?.push(cmd.newPivotId);
53792
53794
  this.setupPivot(cmd.newPivotId);
53793
53795
  break;
53794
53796
  case "UPDATE_PIVOT":
@@ -53974,8 +53976,8 @@ var PivotUIPlugin = class extends UIPlugin {
53974
53976
  }
53975
53977
  }
53976
53978
  for (const pivotId of this.getters.getPivotIds()) {
53977
- const pivot = this.getters.getPivot(pivotId);
53978
- for (const measure of pivot.definition.measures) if (measure.computedBy) {
53979
+ const pivot = this.getters.getPivotCoreDefinition(pivotId);
53980
+ for (const measure of pivot.measures) if (measure.computedBy) {
53979
53981
  const { sheetId } = measure.computedBy;
53980
53982
  const formula = this.getters.getMeasureCompiledFormula(pivotId, measure);
53981
53983
  const relatedPivotIds = this.getPivotIdsFromFormula(sheetId, formula);
@@ -66327,6 +66329,6 @@ const constants = {
66327
66329
  //#endregion
66328
66330
  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 };
66329
66331
 
66330
- __info__.version = "18.0.69";
66331
- __info__.date = "2026-05-27T05:57:08.710Z";
66332
- __info__.hash = "50b85ba";
66332
+ __info__.version = "18.0.70";
66333
+ __info__.date = "2026-06-06T06:20:39.985Z";
66334
+ __info__.hash = "3ff29f6";
@@ -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.69
6
- * @date 2026-05-27T05:57:08.710Z
7
- * @hash 50b85ba
5
+ * @version 18.0.70
6
+ * @date 2026-06-06T06:20:39.985Z
7
+ * @hash 3ff29f6
8
8
  */
9
9
 
10
10
  (function(exports, _odoo_owl) {
@@ -3891,6 +3891,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
3891
3891
  //#endregion
3892
3892
  //#region src/helpers/format/format_tokenizer.ts
3893
3893
  function tokenizeFormat(str) {
3894
+ str = str.replace(/\s/g, " ");
3894
3895
  const chars = new TokenizingChars(str);
3895
3896
  const result = [];
3896
3897
  let currentFormatPart = [];
@@ -29528,11 +29529,10 @@ stores.inject(MyMetaStore, storeInstance);
29528
29529
  if (interactiveCreateTable(env, env.model.getters.getActiveSheetId()).isSuccessful) env.openSidePanel("TableSidePanel", {});
29529
29530
  };
29530
29531
  const DELETE_SELECTED_TABLE = (env) => {
29531
- const position = env.model.getters.getActivePosition();
29532
- const table = env.model.getters.getTable(position);
29532
+ const table = env.model.getters.getFirstTableInSelection();
29533
29533
  if (!table) return;
29534
29534
  env.model.dispatch("REMOVE_TABLE", {
29535
- sheetId: position.sheetId,
29535
+ sheetId: env.model.getters.getActiveSheetId(),
29536
29536
  target: [table.range.zone]
29537
29537
  });
29538
29538
  };
@@ -53788,9 +53788,11 @@ stores.inject(MyMetaStore, storeInstance);
53788
53788
  this.refreshPivot(cmd.id);
53789
53789
  break;
53790
53790
  case "ADD_PIVOT":
53791
+ this.unusedPivots?.push(cmd.pivotId);
53791
53792
  this.setupPivot(cmd.pivotId);
53792
53793
  break;
53793
53794
  case "DUPLICATE_PIVOT":
53795
+ this.unusedPivots?.push(cmd.newPivotId);
53794
53796
  this.setupPivot(cmd.newPivotId);
53795
53797
  break;
53796
53798
  case "UPDATE_PIVOT":
@@ -53976,8 +53978,8 @@ stores.inject(MyMetaStore, storeInstance);
53976
53978
  }
53977
53979
  }
53978
53980
  for (const pivotId of this.getters.getPivotIds()) {
53979
- const pivot = this.getters.getPivot(pivotId);
53980
- for (const measure of pivot.definition.measures) if (measure.computedBy) {
53981
+ const pivot = this.getters.getPivotCoreDefinition(pivotId);
53982
+ for (const measure of pivot.measures) if (measure.computedBy) {
53981
53983
  const { sheetId } = measure.computedBy;
53982
53984
  const formula = this.getters.getMeasureCompiledFormula(pivotId, measure);
53983
53985
  const relatedPivotIds = this.getPivotIdsFromFormula(sheetId, formula);
@@ -66373,8 +66375,8 @@ exports.stores = stores;
66373
66375
  exports.tokenColors = tokenColors;
66374
66376
  exports.tokenize = tokenize;
66375
66377
 
66376
- __info__.version = "18.0.69";
66377
- __info__.date = "2026-05-27T05:57:08.710Z";
66378
- __info__.hash = "50b85ba";
66378
+ __info__.version = "18.0.70";
66379
+ __info__.date = "2026-06-06T06:20:39.985Z";
66380
+ __info__.hash = "3ff29f6";
66379
66381
 
66380
66382
  })(this.o_spreadsheet = this.o_spreadsheet || {}, owl);