@odoo/o-spreadsheet 17.2.28 → 17.2.29

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.
@@ -3,9 +3,9 @@
3
3
  /**
4
4
  * This file is generated by o-spreadsheet build tools. Do not edit it.
5
5
  * @see https://github.com/odoo/o-spreadsheet
6
- * @version 17.2.28
7
- * @date 2024-11-28T09:04:19.153Z
8
- * @hash fb1cbd8
6
+ * @version 17.2.29
7
+ * @date 2024-12-05T10:39:14.167Z
8
+ * @hash 7b4b898
9
9
  */
10
10
 
11
11
  'use strict';
@@ -18751,6 +18751,18 @@ const TEXT = {
18751
18751
  },
18752
18752
  isExported: true,
18753
18753
  };
18754
+ // -----------------------------------------------------------------------------
18755
+ // VALUE
18756
+ // -----------------------------------------------------------------------------
18757
+ const VALUE = {
18758
+ description: _t("Converts a string to a numeric value."),
18759
+ args: [arg("value (number)", _t("the string to be converted"))],
18760
+ returns: ["NUMBER"],
18761
+ compute: function (value) {
18762
+ return toNumber(value, this.locale);
18763
+ },
18764
+ isExported: true,
18765
+ };
18754
18766
 
18755
18767
  var text = /*#__PURE__*/Object.freeze({
18756
18768
  __proto__: null,
@@ -18773,7 +18785,8 @@ var text = /*#__PURE__*/Object.freeze({
18773
18785
  TEXT: TEXT,
18774
18786
  TEXTJOIN: TEXTJOIN,
18775
18787
  TRIM: TRIM,
18776
- UPPER: UPPER
18788
+ UPPER: UPPER,
18789
+ VALUE: VALUE
18777
18790
  });
18778
18791
 
18779
18792
  // -----------------------------------------------------------------------------
@@ -56149,7 +56162,7 @@ class ActionButton extends owl.Component {
56149
56162
  setup() {
56150
56163
  owl.onWillUpdateProps((nextProps) => {
56151
56164
  if (nextProps.action !== this.props.action) {
56152
- this.actionButton = createAction(this.props.action);
56165
+ this.actionButton = createAction(nextProps.action);
56153
56166
  }
56154
56167
  });
56155
56168
  }
@@ -61006,6 +61019,6 @@ exports.tokenColors = tokenColors;
61006
61019
  exports.tokenize = tokenize;
61007
61020
 
61008
61021
 
61009
- __info__.version = "17.2.28";
61010
- __info__.date = "2024-11-28T09:04:19.153Z";
61011
- __info__.hash = "fb1cbd8";
61022
+ __info__.version = "17.2.29";
61023
+ __info__.date = "2024-12-05T10:39:14.167Z";
61024
+ __info__.hash = "7b4b898";
@@ -3,9 +3,9 @@
3
3
  /**
4
4
  * This file is generated by o-spreadsheet build tools. Do not edit it.
5
5
  * @see https://github.com/odoo/o-spreadsheet
6
- * @version 17.2.28
7
- * @date 2024-11-28T09:04:19.153Z
8
- * @hash fb1cbd8
6
+ * @version 17.2.29
7
+ * @date 2024-12-05T10:39:14.167Z
8
+ * @hash 7b4b898
9
9
  */
10
10
 
11
11
  import { useEnv, useSubEnv, onWillUnmount, useComponent, status, Component, useRef, onMounted, useEffect, useState, onPatched, onWillPatch, onWillUpdateProps, useExternalListener, onWillStart, xml, useChildSubEnv, markRaw } from '@odoo/owl';
@@ -18749,6 +18749,18 @@ const TEXT = {
18749
18749
  },
18750
18750
  isExported: true,
18751
18751
  };
18752
+ // -----------------------------------------------------------------------------
18753
+ // VALUE
18754
+ // -----------------------------------------------------------------------------
18755
+ const VALUE = {
18756
+ description: _t("Converts a string to a numeric value."),
18757
+ args: [arg("value (number)", _t("the string to be converted"))],
18758
+ returns: ["NUMBER"],
18759
+ compute: function (value) {
18760
+ return toNumber(value, this.locale);
18761
+ },
18762
+ isExported: true,
18763
+ };
18752
18764
 
18753
18765
  var text = /*#__PURE__*/Object.freeze({
18754
18766
  __proto__: null,
@@ -18771,7 +18783,8 @@ var text = /*#__PURE__*/Object.freeze({
18771
18783
  TEXT: TEXT,
18772
18784
  TEXTJOIN: TEXTJOIN,
18773
18785
  TRIM: TRIM,
18774
- UPPER: UPPER
18786
+ UPPER: UPPER,
18787
+ VALUE: VALUE
18775
18788
  });
18776
18789
 
18777
18790
  // -----------------------------------------------------------------------------
@@ -56147,7 +56160,7 @@ class ActionButton extends Component {
56147
56160
  setup() {
56148
56161
  onWillUpdateProps((nextProps) => {
56149
56162
  if (nextProps.action !== this.props.action) {
56150
- this.actionButton = createAction(this.props.action);
56163
+ this.actionButton = createAction(nextProps.action);
56151
56164
  }
56152
56165
  });
56153
56166
  }
@@ -60963,6 +60976,6 @@ const constants = {
60963
60976
  export { AbstractCellClipboardHandler, AbstractChart, AbstractFigureClipboardHandler, CellErrorType, CommandResult, CorePlugin, DispatchResult, EvaluationError, Model, Registry, Revision, SPREADSHEET_DIMENSIONS, Spreadsheet, UIPlugin, __info__, addFunction, addRenderingLayer, astToFormula, compile, compileTokens, components, constants, convertAstNodes, coreTypes, findCellInNewZone, functionCache, helpers, hooks, invalidateCFEvaluationCommands, invalidateDependenciesCommands, invalidateEvaluationCommands, iterateAstNodes, links, load, parse, parseTokens, readonlyAllowedCommands, registries, setDefaultSheetViewSize, setTranslationMethod, stores, tokenColors, tokenize };
60964
60977
 
60965
60978
 
60966
- __info__.version = "17.2.28";
60967
- __info__.date = "2024-11-28T09:04:19.153Z";
60968
- __info__.hash = "fb1cbd8";
60979
+ __info__.version = "17.2.29";
60980
+ __info__.date = "2024-12-05T10:39:14.167Z";
60981
+ __info__.hash = "7b4b898";
@@ -3,9 +3,9 @@
3
3
  /**
4
4
  * This file is generated by o-spreadsheet build tools. Do not edit it.
5
5
  * @see https://github.com/odoo/o-spreadsheet
6
- * @version 17.2.28
7
- * @date 2024-11-28T09:04:19.153Z
8
- * @hash fb1cbd8
6
+ * @version 17.2.29
7
+ * @date 2024-12-05T10:39:14.167Z
8
+ * @hash 7b4b898
9
9
  */
10
10
 
11
11
  (function (exports, owl) {
@@ -18750,6 +18750,18 @@ stores.inject(MyMetaStore, storeInstance);
18750
18750
  },
18751
18751
  isExported: true,
18752
18752
  };
18753
+ // -----------------------------------------------------------------------------
18754
+ // VALUE
18755
+ // -----------------------------------------------------------------------------
18756
+ const VALUE = {
18757
+ description: _t("Converts a string to a numeric value."),
18758
+ args: [arg("value (number)", _t("the string to be converted"))],
18759
+ returns: ["NUMBER"],
18760
+ compute: function (value) {
18761
+ return toNumber(value, this.locale);
18762
+ },
18763
+ isExported: true,
18764
+ };
18753
18765
 
18754
18766
  var text = /*#__PURE__*/Object.freeze({
18755
18767
  __proto__: null,
@@ -18772,7 +18784,8 @@ stores.inject(MyMetaStore, storeInstance);
18772
18784
  TEXT: TEXT,
18773
18785
  TEXTJOIN: TEXTJOIN,
18774
18786
  TRIM: TRIM,
18775
- UPPER: UPPER
18787
+ UPPER: UPPER,
18788
+ VALUE: VALUE
18776
18789
  });
18777
18790
 
18778
18791
  // -----------------------------------------------------------------------------
@@ -56148,7 +56161,7 @@ stores.inject(MyMetaStore, storeInstance);
56148
56161
  setup() {
56149
56162
  owl.onWillUpdateProps((nextProps) => {
56150
56163
  if (nextProps.action !== this.props.action) {
56151
- this.actionButton = createAction(this.props.action);
56164
+ this.actionButton = createAction(nextProps.action);
56152
56165
  }
56153
56166
  });
56154
56167
  }
@@ -61005,9 +61018,9 @@ stores.inject(MyMetaStore, storeInstance);
61005
61018
  exports.tokenize = tokenize;
61006
61019
 
61007
61020
 
61008
- __info__.version = "17.2.28";
61009
- __info__.date = "2024-11-28T09:04:19.153Z";
61010
- __info__.hash = "fb1cbd8";
61021
+ __info__.version = "17.2.29";
61022
+ __info__.date = "2024-12-05T10:39:14.167Z";
61023
+ __info__.hash = "7b4b898";
61011
61024
 
61012
61025
 
61013
61026
  })(this.o_spreadsheet = this.o_spreadsheet || {}, owl);