@odoo/o-spreadsheet 15.0.17 → 15.0.19

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.
@@ -8113,6 +8113,9 @@ const cellRegistry = new Registry();
8113
8113
  function formatValue(value, format) {
8114
8114
  switch (typeof value) {
8115
8115
  case "string":
8116
+ if (value.includes('\\"')) {
8117
+ return value.replace(/\\"/g, '"');
8118
+ }
8116
8119
  return value;
8117
8120
  case "boolean":
8118
8121
  return value ? "TRUE" : "FALSE";
@@ -10716,6 +10719,9 @@ class FigurePlugin extends CorePlugin {
10716
10719
  this.figures[cmd.sheetId] = {};
10717
10720
  break;
10718
10721
  case "DELETE_SHEET":
10722
+ this.getters.getFigures(cmd.sheetId).forEach((figure) => {
10723
+ this.dispatch("DELETE_FIGURE", { id: figure.id, sheetId: cmd.sheetId });
10724
+ });
10719
10725
  this.deleteSheet(cmd.sheetId);
10720
10726
  break;
10721
10727
  case "CREATE_FIGURE":
@@ -31502,6 +31508,6 @@ exports.registries = registries;
31502
31508
  exports.setTranslationMethod = setTranslationMethod;
31503
31509
 
31504
31510
 
31505
- __info__.version = '15.0.17';
31506
- __info__.date = '2024-01-29T13:46:44.293Z';
31507
- __info__.hash = '6944f99';
31511
+ __info__.version = '15.0.19';
31512
+ __info__.date = '2024-03-15T10:55:52.497Z';
31513
+ __info__.hash = '277ed99';
@@ -8090,6 +8090,9 @@ const cellRegistry = new Registry();
8090
8090
  function formatValue(value, format) {
8091
8091
  switch (typeof value) {
8092
8092
  case "string":
8093
+ if (value.includes('\\"')) {
8094
+ return value.replace(/\\"/g, '"');
8095
+ }
8093
8096
  return value;
8094
8097
  case "boolean":
8095
8098
  return value ? "TRUE" : "FALSE";
@@ -10693,6 +10696,9 @@ class FigurePlugin extends CorePlugin {
10693
10696
  this.figures[cmd.sheetId] = {};
10694
10697
  break;
10695
10698
  case "DELETE_SHEET":
10699
+ this.getters.getFigures(cmd.sheetId).forEach((figure) => {
10700
+ this.dispatch("DELETE_FIGURE", { id: figure.id, sheetId: cmd.sheetId });
10701
+ });
10696
10702
  this.deleteSheet(cmd.sheetId);
10697
10703
  break;
10698
10704
  case "CREATE_FIGURE":
@@ -31457,6 +31463,6 @@ const helpers = {
31457
31463
  export { CommandResult, CorePlugin, DATETIME_FORMAT, DataSource, DispatchResult, Model, Revision, SPREADSHEET_DIMENSIONS, Spreadsheet, UIPlugin, DEBUG as __DEBUG__, __info__, astToFormula, cellTypes, convertAstNodes, coreTypes, functionCache, helpers, invalidateEvaluationCommands, normalize, parse, readonlyAllowedCommands, registries, setTranslationMethod };
31458
31464
 
31459
31465
 
31460
- __info__.version = '15.0.17';
31461
- __info__.date = '2024-01-29T13:46:44.293Z';
31462
- __info__.hash = '6944f99';
31466
+ __info__.version = '15.0.19';
31467
+ __info__.date = '2024-03-15T10:55:52.497Z';
31468
+ __info__.hash = '277ed99';
@@ -8110,6 +8110,9 @@
8110
8110
  function formatValue(value, format) {
8111
8111
  switch (typeof value) {
8112
8112
  case "string":
8113
+ if (value.includes('\\"')) {
8114
+ return value.replace(/\\"/g, '"');
8115
+ }
8113
8116
  return value;
8114
8117
  case "boolean":
8115
8118
  return value ? "TRUE" : "FALSE";
@@ -10713,6 +10716,9 @@
10713
10716
  this.figures[cmd.sheetId] = {};
10714
10717
  break;
10715
10718
  case "DELETE_SHEET":
10719
+ this.getters.getFigures(cmd.sheetId).forEach((figure) => {
10720
+ this.dispatch("DELETE_FIGURE", { id: figure.id, sheetId: cmd.sheetId });
10721
+ });
10716
10722
  this.deleteSheet(cmd.sheetId);
10717
10723
  break;
10718
10724
  case "CREATE_FIGURE":
@@ -31501,9 +31507,9 @@
31501
31507
  Object.defineProperty(exports, '__esModule', { value: true });
31502
31508
 
31503
31509
 
31504
- __info__.version = '15.0.17';
31505
- __info__.date = '2024-01-29T13:46:44.293Z';
31506
- __info__.hash = '6944f99';
31510
+ __info__.version = '15.0.19';
31511
+ __info__.date = '2024-03-15T10:55:52.497Z';
31512
+ __info__.hash = '277ed99';
31507
31513
 
31508
31514
 
31509
31515
  })(this.o_spreadsheet = this.o_spreadsheet || {}, owl);