@odoo/o-spreadsheet 15.2.5 → 15.2.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.
@@ -6613,7 +6613,7 @@ const POW = {
6613
6613
  base (number) ${_lt("The number to raise to the exponent power.")}
6614
6614
  exponent (number) ${_lt("The exponent to raise base to.")}
6615
6615
  `),
6616
- returns: ["BOOLEAN"],
6616
+ returns: ["NUMBER"],
6617
6617
  compute: function (base, exponent) {
6618
6618
  return POWER.compute(base, exponent);
6619
6619
  },
@@ -24694,12 +24694,9 @@ function addFormula(cell) {
24694
24694
  else {
24695
24695
  // Shouldn't we always output the value then ?
24696
24696
  const value = cell.value;
24697
- // what if value = 0? Is this condition correct?
24698
- if (value) {
24699
- const type = getCellType(value);
24700
- attrs.push(["t", type]);
24701
- node = escapeXml /*xml*/ `<v>${value}</v>`;
24702
- }
24697
+ const type = getCellType(value);
24698
+ attrs.push(["t", type]);
24699
+ node = escapeXml /*xml*/ `<v>${value}</v>`;
24703
24700
  return { attrs, node };
24704
24701
  }
24705
24702
  }
@@ -31332,6 +31329,6 @@ exports.registries = registries;
31332
31329
  exports.setTranslationMethod = setTranslationMethod;
31333
31330
 
31334
31331
 
31335
- __info__.version = '15.2.5';
31336
- __info__.date = '2023-04-21T07:27:24.954Z';
31337
- __info__.hash = '0896859';
31332
+ __info__.version = '15.2.6';
31333
+ __info__.date = '2023-04-28T12:21:51.546Z';
31334
+ __info__.hash = 'cb8f763';
@@ -6590,7 +6590,7 @@ const POW = {
6590
6590
  base (number) ${_lt("The number to raise to the exponent power.")}
6591
6591
  exponent (number) ${_lt("The exponent to raise base to.")}
6592
6592
  `),
6593
- returns: ["BOOLEAN"],
6593
+ returns: ["NUMBER"],
6594
6594
  compute: function (base, exponent) {
6595
6595
  return POWER.compute(base, exponent);
6596
6596
  },
@@ -24671,12 +24671,9 @@ function addFormula(cell) {
24671
24671
  else {
24672
24672
  // Shouldn't we always output the value then ?
24673
24673
  const value = cell.value;
24674
- // what if value = 0? Is this condition correct?
24675
- if (value) {
24676
- const type = getCellType(value);
24677
- attrs.push(["t", type]);
24678
- node = escapeXml /*xml*/ `<v>${value}</v>`;
24679
- }
24674
+ const type = getCellType(value);
24675
+ attrs.push(["t", type]);
24676
+ node = escapeXml /*xml*/ `<v>${value}</v>`;
24680
24677
  return { attrs, node };
24681
24678
  }
24682
24679
  }
@@ -31286,6 +31283,6 @@ const helpers = {
31286
31283
  export { CommandResult, CorePlugin, DATETIME_FORMAT, DataSource, DispatchResult, Model, Registry, Revision, SPREADSHEET_DIMENSIONS, Spreadsheet, UIPlugin, DEBUG as __DEBUG__, __info__, astToFormula, cellTypes, compile, convertAstNodes, coreTypes, functionCache, helpers, invalidateEvaluationCommands, parse, readonlyAllowedCommands, registries, setTranslationMethod };
31287
31284
 
31288
31285
 
31289
- __info__.version = '15.2.5';
31290
- __info__.date = '2023-04-21T07:27:24.954Z';
31291
- __info__.hash = '0896859';
31286
+ __info__.version = '15.2.6';
31287
+ __info__.date = '2023-04-28T12:21:51.546Z';
31288
+ __info__.hash = 'cb8f763';
@@ -6610,7 +6610,7 @@
6610
6610
  base (number) ${_lt("The number to raise to the exponent power.")}
6611
6611
  exponent (number) ${_lt("The exponent to raise base to.")}
6612
6612
  `),
6613
- returns: ["BOOLEAN"],
6613
+ returns: ["NUMBER"],
6614
6614
  compute: function (base, exponent) {
6615
6615
  return POWER.compute(base, exponent);
6616
6616
  },
@@ -24691,12 +24691,9 @@
24691
24691
  else {
24692
24692
  // Shouldn't we always output the value then ?
24693
24693
  const value = cell.value;
24694
- // what if value = 0? Is this condition correct?
24695
- if (value) {
24696
- const type = getCellType(value);
24697
- attrs.push(["t", type]);
24698
- node = escapeXml /*xml*/ `<v>${value}</v>`;
24699
- }
24694
+ const type = getCellType(value);
24695
+ attrs.push(["t", type]);
24696
+ node = escapeXml /*xml*/ `<v>${value}</v>`;
24700
24697
  return { attrs, node };
24701
24698
  }
24702
24699
  }
@@ -31331,9 +31328,9 @@
31331
31328
  Object.defineProperty(exports, '__esModule', { value: true });
31332
31329
 
31333
31330
 
31334
- __info__.version = '15.2.5';
31335
- __info__.date = '2023-04-21T07:27:24.954Z';
31336
- __info__.hash = '0896859';
31331
+ __info__.version = '15.2.6';
31332
+ __info__.date = '2023-04-28T12:21:51.546Z';
31333
+ __info__.hash = 'cb8f763';
31337
31334
 
31338
31335
 
31339
31336
  })(this.o_spreadsheet = this.o_spreadsheet || {}, owl);