@odoo/o-spreadsheet 17.0.42 → 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.42
6
- * @date 2024-11-28T09:02:39.394Z
7
- * @hash aa06a38
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
  // -----------------------------------------------------------------------------
@@ -52850,7 +52863,7 @@ class ActionButton extends owl.Component {
52850
52863
  setup() {
52851
52864
  owl.onWillUpdateProps((nextProps) => {
52852
52865
  if (nextProps.action !== this.props.action) {
52853
- this.actionButton = createAction(this.props.action);
52866
+ this.actionButton = createAction(nextProps.action);
52854
52867
  }
52855
52868
  });
52856
52869
  }
@@ -57671,6 +57684,6 @@ exports.setTranslationMethod = setTranslationMethod;
57671
57684
  exports.tokenize = tokenize;
57672
57685
 
57673
57686
 
57674
- __info__.version = "17.0.42";
57675
- __info__.date = "2024-11-28T09:02:39.394Z";
57676
- __info__.hash = "aa06a38";
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.42
6
- * @date 2024-11-28T09:02:39.394Z
7
- * @hash aa06a38
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
  // -----------------------------------------------------------------------------
@@ -52848,7 +52861,7 @@ class ActionButton extends Component {
52848
52861
  setup() {
52849
52862
  onWillUpdateProps((nextProps) => {
52850
52863
  if (nextProps.action !== this.props.action) {
52851
- this.actionButton = createAction(this.props.action);
52864
+ this.actionButton = createAction(nextProps.action);
52852
52865
  }
52853
52866
  });
52854
52867
  }
@@ -57634,6 +57647,6 @@ const constants = {
57634
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 };
57635
57648
 
57636
57649
 
57637
- __info__.version = "17.0.42";
57638
- __info__.date = "2024-11-28T09:02:39.394Z";
57639
- __info__.hash = "aa06a38";
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.42
6
- * @date 2024-11-28T09:02:39.394Z
7
- * @hash aa06a38
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
  // -----------------------------------------------------------------------------
@@ -52849,7 +52862,7 @@
52849
52862
  setup() {
52850
52863
  owl.onWillUpdateProps((nextProps) => {
52851
52864
  if (nextProps.action !== this.props.action) {
52852
- this.actionButton = createAction(this.props.action);
52865
+ this.actionButton = createAction(nextProps.action);
52853
52866
  }
52854
52867
  });
52855
52868
  }
@@ -57670,9 +57683,9 @@
57670
57683
  exports.tokenize = tokenize;
57671
57684
 
57672
57685
 
57673
- __info__.version = "17.0.42";
57674
- __info__.date = "2024-11-28T09:02:39.394Z";
57675
- __info__.hash = "aa06a38";
57686
+ __info__.version = "17.0.43";
57687
+ __info__.date = "2024-12-05T10:36:19.412Z";
57688
+ __info__.hash = "8344531";
57676
57689
 
57677
57690
 
57678
57691
  })(this.o_spreadsheet = this.o_spreadsheet || {}, owl);