@odoo/o-spreadsheet 19.0.36 → 19.0.37

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.36
6
- * @date 2026-05-27T05:57:35.932Z
7
- * @hash 3f73c94
5
+ * @version 19.0.37
6
+ * @date 2026-06-06T06:22:21.404Z
7
+ * @hash 41aace0
8
8
  */
9
9
 
10
10
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
@@ -3473,6 +3473,7 @@ function emptyDataErrorMessage(argName) {
3473
3473
  //#endregion
3474
3474
  //#region src/helpers/format/format_tokenizer.ts
3475
3475
  function tokenizeFormat(str) {
3476
+ str = str.replace(/\s/g, " ");
3476
3477
  const chars = new TokenizingChars(str);
3477
3478
  const result = [];
3478
3479
  let currentFormatPart = [];
@@ -39290,11 +39291,10 @@ const INSERT_TABLE = (env) => {
39290
39291
  if (interactiveCreateTable(env, env.model.getters.getActiveSheetId()).isSuccessful) env.openSidePanel("TableSidePanel", {});
39291
39292
  };
39292
39293
  const DELETE_SELECTED_TABLE = (env) => {
39293
- const position = env.model.getters.getActivePosition();
39294
- const table = env.model.getters.getTable(position);
39294
+ const table = env.model.getters.getFirstTableInSelection();
39295
39295
  if (!table) return;
39296
39296
  env.model.dispatch("REMOVE_TABLE", {
39297
- sheetId: position.sheetId,
39297
+ sheetId: env.model.getters.getActiveSheetId(),
39298
39298
  target: [table.range.zone]
39299
39299
  });
39300
39300
  };
@@ -64048,9 +64048,11 @@ var PivotUIPlugin = class extends CoreViewPlugin {
64048
64048
  this.refreshPivot(cmd.id);
64049
64049
  break;
64050
64050
  case "ADD_PIVOT":
64051
+ this.unusedPivots?.push(cmd.pivotId);
64051
64052
  this.setupPivot(cmd.pivotId);
64052
64053
  break;
64053
64054
  case "DUPLICATE_PIVOT":
64055
+ this.unusedPivots?.push(cmd.newPivotId);
64054
64056
  this.setupPivot(cmd.newPivotId);
64055
64057
  break;
64056
64058
  case "UPDATE_PIVOT":
@@ -64250,8 +64252,8 @@ var PivotUIPlugin = class extends CoreViewPlugin {
64250
64252
  }
64251
64253
  }
64252
64254
  for (const pivotId of this.getters.getPivotIds()) {
64253
- const pivot = this.getters.getPivot(pivotId);
64254
- for (const measure of pivot.definition.measures) if (measure.computedBy) {
64255
+ const pivot = this.getters.getPivotCoreDefinition(pivotId);
64256
+ for (const measure of pivot.measures) if (measure.computedBy) {
64255
64257
  const { sheetId } = measure.computedBy;
64256
64258
  const formula = this.getters.getMeasureCompiledFormula(pivotId, measure);
64257
64259
  const relatedPivotIds = this.getPivotIdsFromFormula(sheetId, formula);
@@ -67459,7 +67461,8 @@ const invalidateTableStyleCommandsSet = new Set([
67459
67461
  "REMOVE_TABLE",
67460
67462
  "RESIZE_TABLE",
67461
67463
  "CREATE_TABLE_STYLE",
67462
- "REMOVE_TABLE_STYLE"
67464
+ "REMOVE_TABLE_STYLE",
67465
+ "DELETE_CONTENT"
67463
67466
  ]);
67464
67467
  function doesCommandInvalidatesTableStyle(cmd) {
67465
67468
  return invalidateTableStyleCommandsSet.has(cmd.type);
@@ -76849,6 +76852,11 @@ function lineAttributes(params) {
76849
76852
  `;
76850
76853
  }
76851
76854
  function insertText(text, fontColor = "000000", fontsize = 16, style = {}) {
76855
+ const textProperties = [
76856
+ ["b", style.bold ? "1" : "0"],
76857
+ ["i", style.italic ? "1" : "0"],
76858
+ ["sz", fontsize * 100]
76859
+ ];
76852
76860
  return escapeXml`
76853
76861
  <c:tx>
76854
76862
  <c:rich>
@@ -76856,13 +76864,13 @@ function insertText(text, fontColor = "000000", fontsize = 16, style = {}) {
76856
76864
  <a:lstStyle />
76857
76865
  <a:p>
76858
76866
  <a:pPr lvl="0">
76859
- <a:defRPr b="${style?.bold ? 1 : 0}" i="${style?.italic ? 1 : 0}">
76867
+ <a:defRPr ${formatAttributes(textProperties)}>
76860
76868
  ${solidFill(fontColor)}
76861
76869
  <a:latin typeface="+mn-lt"/>
76862
76870
  </a:defRPr>
76863
76871
  </a:pPr>
76864
76872
  <a:r> <!-- Runs -->
76865
- <a:rPr b="${style?.bold ? 1 : 0}" i="${style?.italic ? 1 : 0}" sz="${fontsize * 100}"/>
76873
+ <a:rPr ${formatAttributes(textProperties)}/>
76866
76874
  <a:t>${text}</a:t>
76867
76875
  </a:r>
76868
76876
  </a:p>
@@ -79559,6 +79567,6 @@ exports.stores = stores;
79559
79567
  exports.tokenColors = tokenColors;
79560
79568
  exports.tokenize = tokenize;
79561
79569
 
79562
- __info__.version = "19.0.36";
79563
- __info__.date = "2026-05-27T05:57:35.932Z";
79564
- __info__.hash = "3f73c94";
79570
+ __info__.version = "19.0.37";
79571
+ __info__.date = "2026-06-06T06:22:21.404Z";
79572
+ __info__.hash = "41aace0";
@@ -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.36
6
- * @date 2026-05-27T05:57:37.639Z
7
- * @hash 3f73c94
5
+ * @version 19.0.37
6
+ * @date 2026-06-06T06:22:23.027Z
7
+ * @hash 41aace0
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.36
6
- * @date 2026-05-27T05:57:35.932Z
7
- * @hash 3f73c94
5
+ * @version 19.0.37
6
+ * @date 2026-06-06T06:22:21.404Z
7
+ * @hash 41aace0
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";
@@ -3472,6 +3472,7 @@ function emptyDataErrorMessage(argName) {
3472
3472
  //#endregion
3473
3473
  //#region src/helpers/format/format_tokenizer.ts
3474
3474
  function tokenizeFormat(str) {
3475
+ str = str.replace(/\s/g, " ");
3475
3476
  const chars = new TokenizingChars(str);
3476
3477
  const result = [];
3477
3478
  let currentFormatPart = [];
@@ -39289,11 +39290,10 @@ const INSERT_TABLE = (env) => {
39289
39290
  if (interactiveCreateTable(env, env.model.getters.getActiveSheetId()).isSuccessful) env.openSidePanel("TableSidePanel", {});
39290
39291
  };
39291
39292
  const DELETE_SELECTED_TABLE = (env) => {
39292
- const position = env.model.getters.getActivePosition();
39293
- const table = env.model.getters.getTable(position);
39293
+ const table = env.model.getters.getFirstTableInSelection();
39294
39294
  if (!table) return;
39295
39295
  env.model.dispatch("REMOVE_TABLE", {
39296
- sheetId: position.sheetId,
39296
+ sheetId: env.model.getters.getActiveSheetId(),
39297
39297
  target: [table.range.zone]
39298
39298
  });
39299
39299
  };
@@ -63863,9 +63863,11 @@ var PivotUIPlugin = class extends CoreViewPlugin {
63863
63863
  this.refreshPivot(cmd.id);
63864
63864
  break;
63865
63865
  case "ADD_PIVOT":
63866
+ this.unusedPivots?.push(cmd.pivotId);
63866
63867
  this.setupPivot(cmd.pivotId);
63867
63868
  break;
63868
63869
  case "DUPLICATE_PIVOT":
63870
+ this.unusedPivots?.push(cmd.newPivotId);
63869
63871
  this.setupPivot(cmd.newPivotId);
63870
63872
  break;
63871
63873
  case "UPDATE_PIVOT":
@@ -64065,8 +64067,8 @@ var PivotUIPlugin = class extends CoreViewPlugin {
64065
64067
  }
64066
64068
  }
64067
64069
  for (const pivotId of this.getters.getPivotIds()) {
64068
- const pivot = this.getters.getPivot(pivotId);
64069
- for (const measure of pivot.definition.measures) if (measure.computedBy) {
64070
+ const pivot = this.getters.getPivotCoreDefinition(pivotId);
64071
+ for (const measure of pivot.measures) if (measure.computedBy) {
64070
64072
  const { sheetId } = measure.computedBy;
64071
64073
  const formula = this.getters.getMeasureCompiledFormula(pivotId, measure);
64072
64074
  const relatedPivotIds = this.getPivotIdsFromFormula(sheetId, formula);
@@ -67274,7 +67276,8 @@ const invalidateTableStyleCommandsSet = new Set([
67274
67276
  "REMOVE_TABLE",
67275
67277
  "RESIZE_TABLE",
67276
67278
  "CREATE_TABLE_STYLE",
67277
- "REMOVE_TABLE_STYLE"
67279
+ "REMOVE_TABLE_STYLE",
67280
+ "DELETE_CONTENT"
67278
67281
  ]);
67279
67282
  function doesCommandInvalidatesTableStyle(cmd) {
67280
67283
  return invalidateTableStyleCommandsSet.has(cmd.type);
@@ -76664,6 +76667,11 @@ function lineAttributes(params) {
76664
76667
  `;
76665
76668
  }
76666
76669
  function insertText(text, fontColor = "000000", fontsize = 16, style = {}) {
76670
+ const textProperties = [
76671
+ ["b", style.bold ? "1" : "0"],
76672
+ ["i", style.italic ? "1" : "0"],
76673
+ ["sz", fontsize * 100]
76674
+ ];
76667
76675
  return escapeXml`
76668
76676
  <c:tx>
76669
76677
  <c:rich>
@@ -76671,13 +76679,13 @@ function insertText(text, fontColor = "000000", fontsize = 16, style = {}) {
76671
76679
  <a:lstStyle />
76672
76680
  <a:p>
76673
76681
  <a:pPr lvl="0">
76674
- <a:defRPr b="${style?.bold ? 1 : 0}" i="${style?.italic ? 1 : 0}">
76682
+ <a:defRPr ${formatAttributes(textProperties)}>
76675
76683
  ${solidFill(fontColor)}
76676
76684
  <a:latin typeface="+mn-lt"/>
76677
76685
  </a:defRPr>
76678
76686
  </a:pPr>
76679
76687
  <a:r> <!-- Runs -->
76680
- <a:rPr b="${style?.bold ? 1 : 0}" i="${style?.italic ? 1 : 0}" sz="${fontsize * 100}"/>
76688
+ <a:rPr ${formatAttributes(textProperties)}/>
76681
76689
  <a:t>${text}</a:t>
76682
76690
  </a:r>
76683
76691
  </a:p>
@@ -79323,6 +79331,6 @@ const chartHelpers = {
79323
79331
  //#endregion
79324
79332
  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 };
79325
79333
 
79326
- __info__.version = "19.0.36";
79327
- __info__.date = "2026-05-27T05:57:35.932Z";
79328
- __info__.hash = "3f73c94";
79334
+ __info__.version = "19.0.37";
79335
+ __info__.date = "2026-06-06T06:22:21.404Z";
79336
+ __info__.hash = "41aace0";
@@ -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.36
6
- * @date 2026-05-27T05:57:35.932Z
7
- * @hash 3f73c94
5
+ * @version 19.0.37
6
+ * @date 2026-06-06T06:22:21.404Z
7
+ * @hash 41aace0
8
8
  */
9
9
 
10
10
  (function(exports, _odoo_owl) {
@@ -3474,6 +3474,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
3474
3474
  //#endregion
3475
3475
  //#region src/helpers/format/format_tokenizer.ts
3476
3476
  function tokenizeFormat(str) {
3477
+ str = str.replace(/\s/g, " ");
3477
3478
  const chars = new TokenizingChars(str);
3478
3479
  const result = [];
3479
3480
  let currentFormatPart = [];
@@ -39291,11 +39292,10 @@ stores.inject(MyMetaStore, storeInstance);
39291
39292
  if (interactiveCreateTable(env, env.model.getters.getActiveSheetId()).isSuccessful) env.openSidePanel("TableSidePanel", {});
39292
39293
  };
39293
39294
  const DELETE_SELECTED_TABLE = (env) => {
39294
- const position = env.model.getters.getActivePosition();
39295
- const table = env.model.getters.getTable(position);
39295
+ const table = env.model.getters.getFirstTableInSelection();
39296
39296
  if (!table) return;
39297
39297
  env.model.dispatch("REMOVE_TABLE", {
39298
- sheetId: position.sheetId,
39298
+ sheetId: env.model.getters.getActiveSheetId(),
39299
39299
  target: [table.range.zone]
39300
39300
  });
39301
39301
  };
@@ -63865,9 +63865,11 @@ stores.inject(MyMetaStore, storeInstance);
63865
63865
  this.refreshPivot(cmd.id);
63866
63866
  break;
63867
63867
  case "ADD_PIVOT":
63868
+ this.unusedPivots?.push(cmd.pivotId);
63868
63869
  this.setupPivot(cmd.pivotId);
63869
63870
  break;
63870
63871
  case "DUPLICATE_PIVOT":
63872
+ this.unusedPivots?.push(cmd.newPivotId);
63871
63873
  this.setupPivot(cmd.newPivotId);
63872
63874
  break;
63873
63875
  case "UPDATE_PIVOT":
@@ -64067,8 +64069,8 @@ stores.inject(MyMetaStore, storeInstance);
64067
64069
  }
64068
64070
  }
64069
64071
  for (const pivotId of this.getters.getPivotIds()) {
64070
- const pivot = this.getters.getPivot(pivotId);
64071
- for (const measure of pivot.definition.measures) if (measure.computedBy) {
64072
+ const pivot = this.getters.getPivotCoreDefinition(pivotId);
64073
+ for (const measure of pivot.measures) if (measure.computedBy) {
64072
64074
  const { sheetId } = measure.computedBy;
64073
64075
  const formula = this.getters.getMeasureCompiledFormula(pivotId, measure);
64074
64076
  const relatedPivotIds = this.getPivotIdsFromFormula(sheetId, formula);
@@ -67276,7 +67278,8 @@ stores.inject(MyMetaStore, storeInstance);
67276
67278
  "REMOVE_TABLE",
67277
67279
  "RESIZE_TABLE",
67278
67280
  "CREATE_TABLE_STYLE",
67279
- "REMOVE_TABLE_STYLE"
67281
+ "REMOVE_TABLE_STYLE",
67282
+ "DELETE_CONTENT"
67280
67283
  ]);
67281
67284
  function doesCommandInvalidatesTableStyle(cmd) {
67282
67285
  return invalidateTableStyleCommandsSet.has(cmd.type);
@@ -76666,6 +76669,11 @@ stores.inject(MyMetaStore, storeInstance);
76666
76669
  `;
76667
76670
  }
76668
76671
  function insertText(text, fontColor = "000000", fontsize = 16, style = {}) {
76672
+ const textProperties = [
76673
+ ["b", style.bold ? "1" : "0"],
76674
+ ["i", style.italic ? "1" : "0"],
76675
+ ["sz", fontsize * 100]
76676
+ ];
76669
76677
  return escapeXml`
76670
76678
  <c:tx>
76671
76679
  <c:rich>
@@ -76673,13 +76681,13 @@ stores.inject(MyMetaStore, storeInstance);
76673
76681
  <a:lstStyle />
76674
76682
  <a:p>
76675
76683
  <a:pPr lvl="0">
76676
- <a:defRPr b="${style?.bold ? 1 : 0}" i="${style?.italic ? 1 : 0}">
76684
+ <a:defRPr ${formatAttributes(textProperties)}>
76677
76685
  ${solidFill(fontColor)}
76678
76686
  <a:latin typeface="+mn-lt"/>
76679
76687
  </a:defRPr>
76680
76688
  </a:pPr>
76681
76689
  <a:r> <!-- Runs -->
76682
- <a:rPr b="${style?.bold ? 1 : 0}" i="${style?.italic ? 1 : 0}" sz="${fontsize * 100}"/>
76690
+ <a:rPr ${formatAttributes(textProperties)}/>
76683
76691
  <a:t>${text}</a:t>
76684
76692
  </a:r>
76685
76693
  </a:p>
@@ -79376,8 +79384,8 @@ exports.stores = stores;
79376
79384
  exports.tokenColors = tokenColors;
79377
79385
  exports.tokenize = tokenize;
79378
79386
 
79379
- __info__.version = "19.0.36";
79380
- __info__.date = "2026-05-27T05:57:35.932Z";
79381
- __info__.hash = "3f73c94";
79387
+ __info__.version = "19.0.37";
79388
+ __info__.date = "2026-06-06T06:22:21.404Z";
79389
+ __info__.hash = "41aace0";
79382
79390
 
79383
79391
  })(this.o_spreadsheet = this.o_spreadsheet || {}, owl);