@odoo/o-spreadsheet 17.1.14 → 17.1.15

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.1.14
6
- * @date 2024-05-07T10:41:25.690Z
7
- * @hash 622c47c
5
+ * @version 17.1.15
6
+ * @date 2024-05-15T09:22:23.258Z
7
+ * @hash fc959fe
8
8
  */
9
9
 
10
10
  'use strict';
@@ -7578,7 +7578,7 @@ function tokenizeString(chars) {
7578
7578
  }
7579
7579
  return null;
7580
7580
  }
7581
- const separatorRegexp = /^[\w\.!\$]+/;
7581
+ const SYMBOL_CHARS = new Set("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_.!$");
7582
7582
  /**
7583
7583
  * A "Symbol" is just basically any word-like element that can appear in a
7584
7584
  * formula, which is not a string. So:
@@ -7618,11 +7618,8 @@ function tokenizeSymbol(chars) {
7618
7618
  };
7619
7619
  }
7620
7620
  }
7621
- const match = chars.remaining().match(separatorRegexp);
7622
- if (match) {
7623
- const value = match[0];
7624
- result += value;
7625
- chars.advanceBy(value.length);
7621
+ while (chars.current && SYMBOL_CHARS.has(chars.current)) {
7622
+ result += chars.shift();
7626
7623
  }
7627
7624
  if (result.length) {
7628
7625
  const value = result;
@@ -34085,7 +34082,7 @@ const machine = {
34085
34082
  function matchReference(tokens) {
34086
34083
  let head = 0;
34087
34084
  let transitions = machine[State.LeftRef];
34088
- const matchedTokens = [];
34085
+ let matchedTokens = "";
34089
34086
  while (transitions !== undefined) {
34090
34087
  const token = tokens[head++];
34091
34088
  if (!token) {
@@ -34097,15 +34094,15 @@ function matchReference(tokens) {
34097
34094
  case undefined:
34098
34095
  return null;
34099
34096
  case State.Found:
34100
- matchedTokens.push(token);
34097
+ matchedTokens += token.value;
34101
34098
  tokens.splice(0, head);
34102
34099
  return {
34103
34100
  type: "REFERENCE",
34104
- value: concat(matchedTokens.map((token) => token.value)),
34101
+ value: matchedTokens,
34105
34102
  };
34106
34103
  default:
34107
34104
  transitions = machine[nextState];
34108
- matchedTokens.push(token);
34105
+ matchedTokens += token.value;
34109
34106
  break;
34110
34107
  }
34111
34108
  }
@@ -57734,6 +57731,6 @@ exports.setTranslationMethod = setTranslationMethod;
57734
57731
  exports.tokenize = tokenize;
57735
57732
 
57736
57733
 
57737
- __info__.version = "17.1.14";
57738
- __info__.date = "2024-05-07T10:41:25.690Z";
57739
- __info__.hash = "622c47c";
57734
+ __info__.version = "17.1.15";
57735
+ __info__.date = "2024-05-15T09:22:23.258Z";
57736
+ __info__.hash = "fc959fe";
@@ -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.1.14
6
- * @date 2024-05-07T10:41:25.690Z
7
- * @hash 622c47c
5
+ * @version 17.1.15
6
+ * @date 2024-05-15T09:22:23.258Z
7
+ * @hash fc959fe
8
8
  */
9
9
 
10
10
  import { Component, useRef, onMounted, onWillUnmount, useEffect, onWillPatch, useState, onWillUpdateProps, onPatched, useComponent, useExternalListener, onWillStart, xml, useChildSubEnv, useSubEnv, markRaw } from '@odoo/owl';
@@ -7576,7 +7576,7 @@ function tokenizeString(chars) {
7576
7576
  }
7577
7577
  return null;
7578
7578
  }
7579
- const separatorRegexp = /^[\w\.!\$]+/;
7579
+ const SYMBOL_CHARS = new Set("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_.!$");
7580
7580
  /**
7581
7581
  * A "Symbol" is just basically any word-like element that can appear in a
7582
7582
  * formula, which is not a string. So:
@@ -7616,11 +7616,8 @@ function tokenizeSymbol(chars) {
7616
7616
  };
7617
7617
  }
7618
7618
  }
7619
- const match = chars.remaining().match(separatorRegexp);
7620
- if (match) {
7621
- const value = match[0];
7622
- result += value;
7623
- chars.advanceBy(value.length);
7619
+ while (chars.current && SYMBOL_CHARS.has(chars.current)) {
7620
+ result += chars.shift();
7624
7621
  }
7625
7622
  if (result.length) {
7626
7623
  const value = result;
@@ -34083,7 +34080,7 @@ const machine = {
34083
34080
  function matchReference(tokens) {
34084
34081
  let head = 0;
34085
34082
  let transitions = machine[State.LeftRef];
34086
- const matchedTokens = [];
34083
+ let matchedTokens = "";
34087
34084
  while (transitions !== undefined) {
34088
34085
  const token = tokens[head++];
34089
34086
  if (!token) {
@@ -34095,15 +34092,15 @@ function matchReference(tokens) {
34095
34092
  case undefined:
34096
34093
  return null;
34097
34094
  case State.Found:
34098
- matchedTokens.push(token);
34095
+ matchedTokens += token.value;
34099
34096
  tokens.splice(0, head);
34100
34097
  return {
34101
34098
  type: "REFERENCE",
34102
- value: concat(matchedTokens.map((token) => token.value)),
34099
+ value: matchedTokens,
34103
34100
  };
34104
34101
  default:
34105
34102
  transitions = machine[nextState];
34106
- matchedTokens.push(token);
34103
+ matchedTokens += token.value;
34107
34104
  break;
34108
34105
  }
34109
34106
  }
@@ -57696,6 +57693,6 @@ const constants = {
57696
57693
  export { AbstractChart, CellErrorType, 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 };
57697
57694
 
57698
57695
 
57699
- __info__.version = "17.1.14";
57700
- __info__.date = "2024-05-07T10:41:25.690Z";
57701
- __info__.hash = "622c47c";
57696
+ __info__.version = "17.1.15";
57697
+ __info__.date = "2024-05-15T09:22:23.258Z";
57698
+ __info__.hash = "fc959fe";
@@ -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.1.14
6
- * @date 2024-05-07T10:41:25.690Z
7
- * @hash 622c47c
5
+ * @version 17.1.15
6
+ * @date 2024-05-15T09:22:23.258Z
7
+ * @hash fc959fe
8
8
  */
9
9
 
10
10
  (function (exports, owl) {
@@ -7577,7 +7577,7 @@
7577
7577
  }
7578
7578
  return null;
7579
7579
  }
7580
- const separatorRegexp = /^[\w\.!\$]+/;
7580
+ const SYMBOL_CHARS = new Set("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_.!$");
7581
7581
  /**
7582
7582
  * A "Symbol" is just basically any word-like element that can appear in a
7583
7583
  * formula, which is not a string. So:
@@ -7617,11 +7617,8 @@
7617
7617
  };
7618
7618
  }
7619
7619
  }
7620
- const match = chars.remaining().match(separatorRegexp);
7621
- if (match) {
7622
- const value = match[0];
7623
- result += value;
7624
- chars.advanceBy(value.length);
7620
+ while (chars.current && SYMBOL_CHARS.has(chars.current)) {
7621
+ result += chars.shift();
7625
7622
  }
7626
7623
  if (result.length) {
7627
7624
  const value = result;
@@ -34084,7 +34081,7 @@
34084
34081
  function matchReference(tokens) {
34085
34082
  let head = 0;
34086
34083
  let transitions = machine[State.LeftRef];
34087
- const matchedTokens = [];
34084
+ let matchedTokens = "";
34088
34085
  while (transitions !== undefined) {
34089
34086
  const token = tokens[head++];
34090
34087
  if (!token) {
@@ -34096,15 +34093,15 @@
34096
34093
  case undefined:
34097
34094
  return null;
34098
34095
  case State.Found:
34099
- matchedTokens.push(token);
34096
+ matchedTokens += token.value;
34100
34097
  tokens.splice(0, head);
34101
34098
  return {
34102
34099
  type: "REFERENCE",
34103
- value: concat(matchedTokens.map((token) => token.value)),
34100
+ value: matchedTokens,
34104
34101
  };
34105
34102
  default:
34106
34103
  transitions = machine[nextState];
34107
- matchedTokens.push(token);
34104
+ matchedTokens += token.value;
34108
34105
  break;
34109
34106
  }
34110
34107
  }
@@ -57733,9 +57730,9 @@
57733
57730
  exports.tokenize = tokenize;
57734
57731
 
57735
57732
 
57736
- __info__.version = "17.1.14";
57737
- __info__.date = "2024-05-07T10:41:25.690Z";
57738
- __info__.hash = "622c47c";
57733
+ __info__.version = "17.1.15";
57734
+ __info__.date = "2024-05-15T09:22:23.258Z";
57735
+ __info__.hash = "fc959fe";
57739
57736
 
57740
57737
 
57741
57738
  })(this.o_spreadsheet = this.o_spreadsheet || {}, owl);