@odoo/o-spreadsheet 17.2.16 → 17.2.18

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.16
7
- * @date 2024-07-11T06:38:53.101Z
8
- * @hash 9f20685
6
+ * @version 17.2.18
7
+ * @date 2024-07-24T10:28:05.353Z
8
+ * @hash 6c65743
9
9
  */
10
10
 
11
11
  'use strict';
@@ -2627,7 +2627,7 @@ function getPredicate(descr, locale) {
2627
2627
  operand = descr;
2628
2628
  }
2629
2629
  }
2630
- if (isNumber(operand, locale)) {
2630
+ if (isNumber(operand, locale) || isDateTime(operand, locale)) {
2631
2631
  operand = toNumber(operand, locale);
2632
2632
  }
2633
2633
  else if (operand === "TRUE" || operand === "FALSE") {
@@ -33846,10 +33846,13 @@ function useCellHovered(env, gridRef, callback) {
33846
33846
  row: undefined,
33847
33847
  };
33848
33848
  const { Date } = window;
33849
- let x = 0;
33850
- let y = 0;
33849
+ let x = undefined;
33850
+ let y = undefined;
33851
33851
  let lastMoved = 0;
33852
33852
  function getPosition() {
33853
+ if (x === undefined || y === undefined) {
33854
+ return { col: -1, row: -1 };
33855
+ }
33853
33856
  const col = env.model.getters.getColIndex(x);
33854
33857
  const row = env.model.getters.getRowIndex(y);
33855
33858
  return { col, row };
@@ -60883,6 +60886,6 @@ exports.tokenColors = tokenColors;
60883
60886
  exports.tokenize = tokenize;
60884
60887
 
60885
60888
 
60886
- __info__.version = "17.2.16";
60887
- __info__.date = "2024-07-11T06:38:53.101Z";
60888
- __info__.hash = "9f20685";
60889
+ __info__.version = "17.2.18";
60890
+ __info__.date = "2024-07-24T10:28:05.353Z";
60891
+ __info__.hash = "6c65743";
@@ -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.16
7
- * @date 2024-07-11T06:38:53.101Z
8
- * @hash 9f20685
6
+ * @version 17.2.18
7
+ * @date 2024-07-24T10:28:05.353Z
8
+ * @hash 6c65743
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';
@@ -2625,7 +2625,7 @@ function getPredicate(descr, locale) {
2625
2625
  operand = descr;
2626
2626
  }
2627
2627
  }
2628
- if (isNumber(operand, locale)) {
2628
+ if (isNumber(operand, locale) || isDateTime(operand, locale)) {
2629
2629
  operand = toNumber(operand, locale);
2630
2630
  }
2631
2631
  else if (operand === "TRUE" || operand === "FALSE") {
@@ -33844,10 +33844,13 @@ function useCellHovered(env, gridRef, callback) {
33844
33844
  row: undefined,
33845
33845
  };
33846
33846
  const { Date } = window;
33847
- let x = 0;
33848
- let y = 0;
33847
+ let x = undefined;
33848
+ let y = undefined;
33849
33849
  let lastMoved = 0;
33850
33850
  function getPosition() {
33851
+ if (x === undefined || y === undefined) {
33852
+ return { col: -1, row: -1 };
33853
+ }
33851
33854
  const col = env.model.getters.getColIndex(x);
33852
33855
  const row = env.model.getters.getRowIndex(y);
33853
33856
  return { col, row };
@@ -60840,6 +60843,6 @@ const constants = {
60840
60843
  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 };
60841
60844
 
60842
60845
 
60843
- __info__.version = "17.2.16";
60844
- __info__.date = "2024-07-11T06:38:53.101Z";
60845
- __info__.hash = "9f20685";
60846
+ __info__.version = "17.2.18";
60847
+ __info__.date = "2024-07-24T10:28:05.353Z";
60848
+ __info__.hash = "6c65743";
@@ -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.16
7
- * @date 2024-07-11T06:38:53.101Z
8
- * @hash 9f20685
6
+ * @version 17.2.18
7
+ * @date 2024-07-24T10:28:05.353Z
8
+ * @hash 6c65743
9
9
  */
10
10
 
11
11
  (function (exports, owl) {
@@ -2626,7 +2626,7 @@
2626
2626
  operand = descr;
2627
2627
  }
2628
2628
  }
2629
- if (isNumber(operand, locale)) {
2629
+ if (isNumber(operand, locale) || isDateTime(operand, locale)) {
2630
2630
  operand = toNumber(operand, locale);
2631
2631
  }
2632
2632
  else if (operand === "TRUE" || operand === "FALSE") {
@@ -33845,10 +33845,13 @@ stores.inject(MyMetaStore, storeInstance);
33845
33845
  row: undefined,
33846
33846
  };
33847
33847
  const { Date } = window;
33848
- let x = 0;
33849
- let y = 0;
33848
+ let x = undefined;
33849
+ let y = undefined;
33850
33850
  let lastMoved = 0;
33851
33851
  function getPosition() {
33852
+ if (x === undefined || y === undefined) {
33853
+ return { col: -1, row: -1 };
33854
+ }
33852
33855
  const col = env.model.getters.getColIndex(x);
33853
33856
  const row = env.model.getters.getRowIndex(y);
33854
33857
  return { col, row };
@@ -60882,9 +60885,9 @@ stores.inject(MyMetaStore, storeInstance);
60882
60885
  exports.tokenize = tokenize;
60883
60886
 
60884
60887
 
60885
- __info__.version = "17.2.16";
60886
- __info__.date = "2024-07-11T06:38:53.101Z";
60887
- __info__.hash = "9f20685";
60888
+ __info__.version = "17.2.18";
60889
+ __info__.date = "2024-07-24T10:28:05.353Z";
60890
+ __info__.hash = "6c65743";
60888
60891
 
60889
60892
 
60890
60893
  })(this.o_spreadsheet = this.o_spreadsheet || {}, owl);