@odoo/o-spreadsheet 15.0.5 → 15.0.6

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.
@@ -6595,7 +6595,7 @@ const POW = {
6595
6595
  base (number) ${_lt("The number to raise to the exponent power.")}
6596
6596
  exponent (number) ${_lt("The exponent to raise base to.")}
6597
6597
  `),
6598
- returns: ["BOOLEAN"],
6598
+ returns: ["NUMBER"],
6599
6599
  compute: function (base, exponent) {
6600
6600
  return POWER.compute(base, exponent);
6601
6601
  },
@@ -24782,12 +24782,9 @@ function addFormula(cell) {
24782
24782
  else {
24783
24783
  // Shouldn't we always output the value then ?
24784
24784
  const value = cell.value;
24785
- // what if value = 0? Is this condition correct?
24786
- if (value) {
24787
- const type = getCellType(value);
24788
- attrs.push(["t", type]);
24789
- node = escapeXml /*xml*/ `<v>${value}</v>`;
24790
- }
24785
+ const type = getCellType(value);
24786
+ attrs.push(["t", type]);
24787
+ node = escapeXml /*xml*/ `<v>${value}</v>`;
24791
24788
  return { attrs, node };
24792
24789
  }
24793
24790
  }
@@ -31399,6 +31396,6 @@ exports.registries = registries;
31399
31396
  exports.setTranslationMethod = setTranslationMethod;
31400
31397
 
31401
31398
 
31402
- __info__.version = '15.0.5';
31403
- __info__.date = '2023-04-21T07:27:19.753Z';
31404
- __info__.hash = 'ef69cc7';
31399
+ __info__.version = '15.0.6';
31400
+ __info__.date = '2023-04-28T12:21:58.554Z';
31401
+ __info__.hash = 'b319dc2';
@@ -6572,7 +6572,7 @@ const POW = {
6572
6572
  base (number) ${_lt("The number to raise to the exponent power.")}
6573
6573
  exponent (number) ${_lt("The exponent to raise base to.")}
6574
6574
  `),
6575
- returns: ["BOOLEAN"],
6575
+ returns: ["NUMBER"],
6576
6576
  compute: function (base, exponent) {
6577
6577
  return POWER.compute(base, exponent);
6578
6578
  },
@@ -24759,12 +24759,9 @@ function addFormula(cell) {
24759
24759
  else {
24760
24760
  // Shouldn't we always output the value then ?
24761
24761
  const value = cell.value;
24762
- // what if value = 0? Is this condition correct?
24763
- if (value) {
24764
- const type = getCellType(value);
24765
- attrs.push(["t", type]);
24766
- node = escapeXml /*xml*/ `<v>${value}</v>`;
24767
- }
24762
+ const type = getCellType(value);
24763
+ attrs.push(["t", type]);
24764
+ node = escapeXml /*xml*/ `<v>${value}</v>`;
24768
24765
  return { attrs, node };
24769
24766
  }
24770
24767
  }
@@ -31354,6 +31351,6 @@ const helpers = {
31354
31351
  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 };
31355
31352
 
31356
31353
 
31357
- __info__.version = '15.0.5';
31358
- __info__.date = '2023-04-21T07:27:19.753Z';
31359
- __info__.hash = 'ef69cc7';
31354
+ __info__.version = '15.0.6';
31355
+ __info__.date = '2023-04-28T12:21:58.554Z';
31356
+ __info__.hash = 'b319dc2';
@@ -6592,7 +6592,7 @@
6592
6592
  base (number) ${_lt("The number to raise to the exponent power.")}
6593
6593
  exponent (number) ${_lt("The exponent to raise base to.")}
6594
6594
  `),
6595
- returns: ["BOOLEAN"],
6595
+ returns: ["NUMBER"],
6596
6596
  compute: function (base, exponent) {
6597
6597
  return POWER.compute(base, exponent);
6598
6598
  },
@@ -24779,12 +24779,9 @@
24779
24779
  else {
24780
24780
  // Shouldn't we always output the value then ?
24781
24781
  const value = cell.value;
24782
- // what if value = 0? Is this condition correct?
24783
- if (value) {
24784
- const type = getCellType(value);
24785
- attrs.push(["t", type]);
24786
- node = escapeXml /*xml*/ `<v>${value}</v>`;
24787
- }
24782
+ const type = getCellType(value);
24783
+ attrs.push(["t", type]);
24784
+ node = escapeXml /*xml*/ `<v>${value}</v>`;
24788
24785
  return { attrs, node };
24789
24786
  }
24790
24787
  }
@@ -31398,9 +31395,9 @@
31398
31395
  Object.defineProperty(exports, '__esModule', { value: true });
31399
31396
 
31400
31397
 
31401
- __info__.version = '15.0.5';
31402
- __info__.date = '2023-04-21T07:27:19.753Z';
31403
- __info__.hash = 'ef69cc7';
31398
+ __info__.version = '15.0.6';
31399
+ __info__.date = '2023-04-28T12:21:58.554Z';
31400
+ __info__.hash = 'b319dc2';
31404
31401
 
31405
31402
 
31406
31403
  })(this.o_spreadsheet = this.o_spreadsheet || {}, owl);