@odoo/o-spreadsheet 17.2.27 → 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.27
7
- * @date 2024-11-22T14:17:16.936Z
8
- * @hash 139e5a3
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
  // -----------------------------------------------------------------------------
@@ -47989,6 +48002,7 @@ class Evaluator {
47989
48002
  }
47990
48003
  this.nextPositionsToUpdate.addMany(this.getCellsDependingOn(invalidated));
47991
48004
  this.nextPositionsToUpdate.addMany(this.getArrayFormulasBlockedBy(invalidated));
48005
+ [...invalidated].forEach((inv) => this.spreadingRelations.removeNode(inv));
47992
48006
  this.spreadingRelations.removeNode(position);
47993
48007
  }
47994
48008
  // ----------------------------------------------------------
@@ -56148,7 +56162,7 @@ class ActionButton extends owl.Component {
56148
56162
  setup() {
56149
56163
  owl.onWillUpdateProps((nextProps) => {
56150
56164
  if (nextProps.action !== this.props.action) {
56151
- this.actionButton = createAction(this.props.action);
56165
+ this.actionButton = createAction(nextProps.action);
56152
56166
  }
56153
56167
  });
56154
56168
  }
@@ -61005,6 +61019,6 @@ exports.tokenColors = tokenColors;
61005
61019
  exports.tokenize = tokenize;
61006
61020
 
61007
61021
 
61008
- __info__.version = "17.2.27";
61009
- __info__.date = "2024-11-22T14:17:16.936Z";
61010
- __info__.hash = "139e5a3";
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.27
7
- * @date 2024-11-22T14:17:16.936Z
8
- * @hash 139e5a3
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
  // -----------------------------------------------------------------------------
@@ -47987,6 +48000,7 @@ class Evaluator {
47987
48000
  }
47988
48001
  this.nextPositionsToUpdate.addMany(this.getCellsDependingOn(invalidated));
47989
48002
  this.nextPositionsToUpdate.addMany(this.getArrayFormulasBlockedBy(invalidated));
48003
+ [...invalidated].forEach((inv) => this.spreadingRelations.removeNode(inv));
47990
48004
  this.spreadingRelations.removeNode(position);
47991
48005
  }
47992
48006
  // ----------------------------------------------------------
@@ -56146,7 +56160,7 @@ class ActionButton extends Component {
56146
56160
  setup() {
56147
56161
  onWillUpdateProps((nextProps) => {
56148
56162
  if (nextProps.action !== this.props.action) {
56149
- this.actionButton = createAction(this.props.action);
56163
+ this.actionButton = createAction(nextProps.action);
56150
56164
  }
56151
56165
  });
56152
56166
  }
@@ -60962,6 +60976,6 @@ const constants = {
60962
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 };
60963
60977
 
60964
60978
 
60965
- __info__.version = "17.2.27";
60966
- __info__.date = "2024-11-22T14:17:16.936Z";
60967
- __info__.hash = "139e5a3";
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.27
7
- * @date 2024-11-22T14:17:16.936Z
8
- * @hash 139e5a3
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
  // -----------------------------------------------------------------------------
@@ -47988,6 +48001,7 @@ stores.inject(MyMetaStore, storeInstance);
47988
48001
  }
47989
48002
  this.nextPositionsToUpdate.addMany(this.getCellsDependingOn(invalidated));
47990
48003
  this.nextPositionsToUpdate.addMany(this.getArrayFormulasBlockedBy(invalidated));
48004
+ [...invalidated].forEach((inv) => this.spreadingRelations.removeNode(inv));
47991
48005
  this.spreadingRelations.removeNode(position);
47992
48006
  }
47993
48007
  // ----------------------------------------------------------
@@ -56147,7 +56161,7 @@ stores.inject(MyMetaStore, storeInstance);
56147
56161
  setup() {
56148
56162
  owl.onWillUpdateProps((nextProps) => {
56149
56163
  if (nextProps.action !== this.props.action) {
56150
- this.actionButton = createAction(this.props.action);
56164
+ this.actionButton = createAction(nextProps.action);
56151
56165
  }
56152
56166
  });
56153
56167
  }
@@ -61004,9 +61018,9 @@ stores.inject(MyMetaStore, storeInstance);
61004
61018
  exports.tokenize = tokenize;
61005
61019
 
61006
61020
 
61007
- __info__.version = "17.2.27";
61008
- __info__.date = "2024-11-22T14:17:16.936Z";
61009
- __info__.hash = "139e5a3";
61021
+ __info__.version = "17.2.29";
61022
+ __info__.date = "2024-12-05T10:39:14.167Z";
61023
+ __info__.hash = "7b4b898";
61010
61024
 
61011
61025
 
61012
61026
  })(this.o_spreadsheet = this.o_spreadsheet || {}, owl);