@odoo/o-spreadsheet 17.0.41 → 17.0.43

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 17.0.41
6
- * @date 2024-11-22T14:15:39.629Z
7
- * @hash 23f8fc3
5
+ * @version 17.0.43
6
+ * @date 2024-12-05T10:36:19.412Z
7
+ * @hash 8344531
8
8
  */
9
9
 
10
10
  'use strict';
@@ -19442,6 +19442,18 @@ const TEXT = {
19442
19442
  },
19443
19443
  isExported: true,
19444
19444
  };
19445
+ // -----------------------------------------------------------------------------
19446
+ // VALUE
19447
+ // -----------------------------------------------------------------------------
19448
+ const VALUE = {
19449
+ description: _t("Converts a string to a numeric value."),
19450
+ args: [arg("value (number)", _t("the string to be converted"))],
19451
+ returns: ["NUMBER"],
19452
+ compute: function (value) {
19453
+ return toNumber(value, this.locale);
19454
+ },
19455
+ isExported: true,
19456
+ };
19445
19457
 
19446
19458
  var text = /*#__PURE__*/Object.freeze({
19447
19459
  __proto__: null,
@@ -19464,7 +19476,8 @@ var text = /*#__PURE__*/Object.freeze({
19464
19476
  TEXT: TEXT,
19465
19477
  TEXTJOIN: TEXTJOIN,
19466
19478
  TRIM: TRIM,
19467
- UPPER: UPPER
19479
+ UPPER: UPPER,
19480
+ VALUE: VALUE
19468
19481
  });
19469
19482
 
19470
19483
  // -----------------------------------------------------------------------------
@@ -41884,6 +41897,7 @@ class Evaluator {
41884
41897
  this.evaluatedCells.delete(child);
41885
41898
  this.nextPositionsToUpdate.addMany(this.getCellsDependingOn([child]));
41886
41899
  this.nextPositionsToUpdate.addMany(this.getArrayFormulasBlockedBy(child));
41900
+ this.spreadingRelations.removeNode(child);
41887
41901
  }
41888
41902
  this.spreadingRelations.removeNode(positionId);
41889
41903
  }
@@ -52849,7 +52863,7 @@ class ActionButton extends owl.Component {
52849
52863
  setup() {
52850
52864
  owl.onWillUpdateProps((nextProps) => {
52851
52865
  if (nextProps.action !== this.props.action) {
52852
- this.actionButton = createAction(this.props.action);
52866
+ this.actionButton = createAction(nextProps.action);
52853
52867
  }
52854
52868
  });
52855
52869
  }
@@ -57670,6 +57684,6 @@ exports.setTranslationMethod = setTranslationMethod;
57670
57684
  exports.tokenize = tokenize;
57671
57685
 
57672
57686
 
57673
- __info__.version = "17.0.41";
57674
- __info__.date = "2024-11-22T14:15:39.629Z";
57675
- __info__.hash = "23f8fc3";
57687
+ __info__.version = "17.0.43";
57688
+ __info__.date = "2024-12-05T10:36:19.412Z";
57689
+ __info__.hash = "8344531";
@@ -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 17.0.41
6
- * @date 2024-11-22T14:15:39.629Z
7
- * @hash 23f8fc3
5
+ * @version 17.0.43
6
+ * @date 2024-12-05T10:36:19.412Z
7
+ * @hash 8344531
8
8
  */
9
9
 
10
10
  import { Component, useRef, onMounted, useEffect, onWillPatch, useState, onWillUpdateProps, onPatched, useComponent, useExternalListener, onWillUnmount, onWillStart, xml, useChildSubEnv, useSubEnv, markRaw } from '@odoo/owl';
@@ -19440,6 +19440,18 @@ const TEXT = {
19440
19440
  },
19441
19441
  isExported: true,
19442
19442
  };
19443
+ // -----------------------------------------------------------------------------
19444
+ // VALUE
19445
+ // -----------------------------------------------------------------------------
19446
+ const VALUE = {
19447
+ description: _t("Converts a string to a numeric value."),
19448
+ args: [arg("value (number)", _t("the string to be converted"))],
19449
+ returns: ["NUMBER"],
19450
+ compute: function (value) {
19451
+ return toNumber(value, this.locale);
19452
+ },
19453
+ isExported: true,
19454
+ };
19443
19455
 
19444
19456
  var text = /*#__PURE__*/Object.freeze({
19445
19457
  __proto__: null,
@@ -19462,7 +19474,8 @@ var text = /*#__PURE__*/Object.freeze({
19462
19474
  TEXT: TEXT,
19463
19475
  TEXTJOIN: TEXTJOIN,
19464
19476
  TRIM: TRIM,
19465
- UPPER: UPPER
19477
+ UPPER: UPPER,
19478
+ VALUE: VALUE
19466
19479
  });
19467
19480
 
19468
19481
  // -----------------------------------------------------------------------------
@@ -41882,6 +41895,7 @@ class Evaluator {
41882
41895
  this.evaluatedCells.delete(child);
41883
41896
  this.nextPositionsToUpdate.addMany(this.getCellsDependingOn([child]));
41884
41897
  this.nextPositionsToUpdate.addMany(this.getArrayFormulasBlockedBy(child));
41898
+ this.spreadingRelations.removeNode(child);
41885
41899
  }
41886
41900
  this.spreadingRelations.removeNode(positionId);
41887
41901
  }
@@ -52847,7 +52861,7 @@ class ActionButton extends Component {
52847
52861
  setup() {
52848
52862
  onWillUpdateProps((nextProps) => {
52849
52863
  if (nextProps.action !== this.props.action) {
52850
- this.actionButton = createAction(this.props.action);
52864
+ this.actionButton = createAction(nextProps.action);
52851
52865
  }
52852
52866
  });
52853
52867
  }
@@ -57633,6 +57647,6 @@ const constants = {
57633
57647
  export { AbstractChart, CommandResult, CorePlugin, DispatchResult, EvaluationError, Model, Registry, Revision, SPREADSHEET_DIMENSIONS, Spreadsheet, UIPlugin, __info__, addFunction, astToFormula, compile, compileTokens, components, constants, convertAstNodes, coreTypes, findCellInNewZone, functionCache, helpers, hooks, invalidateCFEvaluationCommands, invalidateDependenciesCommands, invalidateEvaluationCommands, iterateAstNodes, links, load, parse, parseTokens, readonlyAllowedCommands, registries, setDefaultSheetViewSize, setTranslationMethod, tokenize };
57634
57648
 
57635
57649
 
57636
- __info__.version = "17.0.41";
57637
- __info__.date = "2024-11-22T14:15:39.629Z";
57638
- __info__.hash = "23f8fc3";
57650
+ __info__.version = "17.0.43";
57651
+ __info__.date = "2024-12-05T10:36:19.412Z";
57652
+ __info__.hash = "8344531";
@@ -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 17.0.41
6
- * @date 2024-11-22T14:15:39.629Z
7
- * @hash 23f8fc3
5
+ * @version 17.0.43
6
+ * @date 2024-12-05T10:36:19.412Z
7
+ * @hash 8344531
8
8
  */
9
9
 
10
10
  (function (exports, owl) {
@@ -19441,6 +19441,18 @@
19441
19441
  },
19442
19442
  isExported: true,
19443
19443
  };
19444
+ // -----------------------------------------------------------------------------
19445
+ // VALUE
19446
+ // -----------------------------------------------------------------------------
19447
+ const VALUE = {
19448
+ description: _t("Converts a string to a numeric value."),
19449
+ args: [arg("value (number)", _t("the string to be converted"))],
19450
+ returns: ["NUMBER"],
19451
+ compute: function (value) {
19452
+ return toNumber(value, this.locale);
19453
+ },
19454
+ isExported: true,
19455
+ };
19444
19456
 
19445
19457
  var text = /*#__PURE__*/Object.freeze({
19446
19458
  __proto__: null,
@@ -19463,7 +19475,8 @@
19463
19475
  TEXT: TEXT,
19464
19476
  TEXTJOIN: TEXTJOIN,
19465
19477
  TRIM: TRIM,
19466
- UPPER: UPPER
19478
+ UPPER: UPPER,
19479
+ VALUE: VALUE
19467
19480
  });
19468
19481
 
19469
19482
  // -----------------------------------------------------------------------------
@@ -41883,6 +41896,7 @@
41883
41896
  this.evaluatedCells.delete(child);
41884
41897
  this.nextPositionsToUpdate.addMany(this.getCellsDependingOn([child]));
41885
41898
  this.nextPositionsToUpdate.addMany(this.getArrayFormulasBlockedBy(child));
41899
+ this.spreadingRelations.removeNode(child);
41886
41900
  }
41887
41901
  this.spreadingRelations.removeNode(positionId);
41888
41902
  }
@@ -52848,7 +52862,7 @@
52848
52862
  setup() {
52849
52863
  owl.onWillUpdateProps((nextProps) => {
52850
52864
  if (nextProps.action !== this.props.action) {
52851
- this.actionButton = createAction(this.props.action);
52865
+ this.actionButton = createAction(nextProps.action);
52852
52866
  }
52853
52867
  });
52854
52868
  }
@@ -57669,9 +57683,9 @@
57669
57683
  exports.tokenize = tokenize;
57670
57684
 
57671
57685
 
57672
- __info__.version = "17.0.41";
57673
- __info__.date = "2024-11-22T14:15:39.629Z";
57674
- __info__.hash = "23f8fc3";
57686
+ __info__.version = "17.0.43";
57687
+ __info__.date = "2024-12-05T10:36:19.412Z";
57688
+ __info__.hash = "8344531";
57675
57689
 
57676
57690
 
57677
57691
  })(this.o_spreadsheet = this.o_spreadsheet || {}, owl);