@odoo/o-spreadsheet 17.0.21 → 17.0.22

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.21
6
- * @date 2024-05-07T10:39:36.750Z
7
- * @hash 998bea0
5
+ * @version 17.0.22
6
+ * @date 2024-05-15T09:18:36.212Z
7
+ * @hash 1f90749
8
8
  */
9
9
 
10
10
  'use strict';
@@ -7512,7 +7512,7 @@ function tokenizeString(chars) {
7512
7512
  }
7513
7513
  return null;
7514
7514
  }
7515
- const separatorRegexp = /^[\w\.!\$]+/;
7515
+ const SYMBOL_CHARS = new Set("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_.!$");
7516
7516
  /**
7517
7517
  * A "Symbol" is just basically any word-like element that can appear in a
7518
7518
  * formula, which is not a string. So:
@@ -7552,11 +7552,8 @@ function tokenizeSymbol(chars) {
7552
7552
  };
7553
7553
  }
7554
7554
  }
7555
- const match = chars.remaining().match(separatorRegexp);
7556
- if (match) {
7557
- const value = match[0];
7558
- result += value;
7559
- chars.advanceBy(value.length);
7555
+ while (chars.current && SYMBOL_CHARS.has(chars.current)) {
7556
+ result += chars.shift();
7560
7557
  }
7561
7558
  if (result.length) {
7562
7559
  const value = result;
@@ -33582,7 +33579,7 @@ const machine = {
33582
33579
  function matchReference(tokens) {
33583
33580
  let head = 0;
33584
33581
  let transitions = machine[State.LeftRef];
33585
- const matchedTokens = [];
33582
+ let matchedTokens = "";
33586
33583
  while (transitions !== undefined) {
33587
33584
  const token = tokens[head++];
33588
33585
  if (!token) {
@@ -33594,15 +33591,15 @@ function matchReference(tokens) {
33594
33591
  case undefined:
33595
33592
  return null;
33596
33593
  case State.Found:
33597
- matchedTokens.push(token);
33594
+ matchedTokens += token.value;
33598
33595
  tokens.splice(0, head);
33599
33596
  return {
33600
33597
  type: "REFERENCE",
33601
- value: concat(matchedTokens.map((token) => token.value)),
33598
+ value: matchedTokens,
33602
33599
  };
33603
33600
  default:
33604
33601
  transitions = machine[nextState];
33605
- matchedTokens.push(token);
33602
+ matchedTokens += token.value;
33606
33603
  break;
33607
33604
  }
33608
33605
  }
@@ -57407,6 +57404,6 @@ exports.setTranslationMethod = setTranslationMethod;
57407
57404
  exports.tokenize = tokenize;
57408
57405
 
57409
57406
 
57410
- __info__.version = "17.0.21";
57411
- __info__.date = "2024-05-07T10:39:36.750Z";
57412
- __info__.hash = "998bea0";
57407
+ __info__.version = "17.0.22";
57408
+ __info__.date = "2024-05-15T09:18:36.212Z";
57409
+ __info__.hash = "1f90749";
@@ -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.21
6
- * @date 2024-05-07T10:39:36.750Z
7
- * @hash 998bea0
5
+ * @version 17.0.22
6
+ * @date 2024-05-15T09:18:36.212Z
7
+ * @hash 1f90749
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';
@@ -7510,7 +7510,7 @@ function tokenizeString(chars) {
7510
7510
  }
7511
7511
  return null;
7512
7512
  }
7513
- const separatorRegexp = /^[\w\.!\$]+/;
7513
+ const SYMBOL_CHARS = new Set("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_.!$");
7514
7514
  /**
7515
7515
  * A "Symbol" is just basically any word-like element that can appear in a
7516
7516
  * formula, which is not a string. So:
@@ -7550,11 +7550,8 @@ function tokenizeSymbol(chars) {
7550
7550
  };
7551
7551
  }
7552
7552
  }
7553
- const match = chars.remaining().match(separatorRegexp);
7554
- if (match) {
7555
- const value = match[0];
7556
- result += value;
7557
- chars.advanceBy(value.length);
7553
+ while (chars.current && SYMBOL_CHARS.has(chars.current)) {
7554
+ result += chars.shift();
7558
7555
  }
7559
7556
  if (result.length) {
7560
7557
  const value = result;
@@ -33580,7 +33577,7 @@ const machine = {
33580
33577
  function matchReference(tokens) {
33581
33578
  let head = 0;
33582
33579
  let transitions = machine[State.LeftRef];
33583
- const matchedTokens = [];
33580
+ let matchedTokens = "";
33584
33581
  while (transitions !== undefined) {
33585
33582
  const token = tokens[head++];
33586
33583
  if (!token) {
@@ -33592,15 +33589,15 @@ function matchReference(tokens) {
33592
33589
  case undefined:
33593
33590
  return null;
33594
33591
  case State.Found:
33595
- matchedTokens.push(token);
33592
+ matchedTokens += token.value;
33596
33593
  tokens.splice(0, head);
33597
33594
  return {
33598
33595
  type: "REFERENCE",
33599
- value: concat(matchedTokens.map((token) => token.value)),
33596
+ value: matchedTokens,
33600
33597
  };
33601
33598
  default:
33602
33599
  transitions = machine[nextState];
33603
- matchedTokens.push(token);
33600
+ matchedTokens += token.value;
33604
33601
  break;
33605
33602
  }
33606
33603
  }
@@ -57370,6 +57367,6 @@ const constants = {
57370
57367
  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 };
57371
57368
 
57372
57369
 
57373
- __info__.version = "17.0.21";
57374
- __info__.date = "2024-05-07T10:39:36.750Z";
57375
- __info__.hash = "998bea0";
57370
+ __info__.version = "17.0.22";
57371
+ __info__.date = "2024-05-15T09:18:36.212Z";
57372
+ __info__.hash = "1f90749";
@@ -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.21
6
- * @date 2024-05-07T10:39:36.750Z
7
- * @hash 998bea0
5
+ * @version 17.0.22
6
+ * @date 2024-05-15T09:18:36.212Z
7
+ * @hash 1f90749
8
8
  */
9
9
 
10
10
  (function (exports, owl) {
@@ -7511,7 +7511,7 @@
7511
7511
  }
7512
7512
  return null;
7513
7513
  }
7514
- const separatorRegexp = /^[\w\.!\$]+/;
7514
+ const SYMBOL_CHARS = new Set("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_.!$");
7515
7515
  /**
7516
7516
  * A "Symbol" is just basically any word-like element that can appear in a
7517
7517
  * formula, which is not a string. So:
@@ -7551,11 +7551,8 @@
7551
7551
  };
7552
7552
  }
7553
7553
  }
7554
- const match = chars.remaining().match(separatorRegexp);
7555
- if (match) {
7556
- const value = match[0];
7557
- result += value;
7558
- chars.advanceBy(value.length);
7554
+ while (chars.current && SYMBOL_CHARS.has(chars.current)) {
7555
+ result += chars.shift();
7559
7556
  }
7560
7557
  if (result.length) {
7561
7558
  const value = result;
@@ -33581,7 +33578,7 @@
33581
33578
  function matchReference(tokens) {
33582
33579
  let head = 0;
33583
33580
  let transitions = machine[State.LeftRef];
33584
- const matchedTokens = [];
33581
+ let matchedTokens = "";
33585
33582
  while (transitions !== undefined) {
33586
33583
  const token = tokens[head++];
33587
33584
  if (!token) {
@@ -33593,15 +33590,15 @@
33593
33590
  case undefined:
33594
33591
  return null;
33595
33592
  case State.Found:
33596
- matchedTokens.push(token);
33593
+ matchedTokens += token.value;
33597
33594
  tokens.splice(0, head);
33598
33595
  return {
33599
33596
  type: "REFERENCE",
33600
- value: concat(matchedTokens.map((token) => token.value)),
33597
+ value: matchedTokens,
33601
33598
  };
33602
33599
  default:
33603
33600
  transitions = machine[nextState];
33604
- matchedTokens.push(token);
33601
+ matchedTokens += token.value;
33605
33602
  break;
33606
33603
  }
33607
33604
  }
@@ -57406,9 +57403,9 @@
57406
57403
  exports.tokenize = tokenize;
57407
57404
 
57408
57405
 
57409
- __info__.version = "17.0.21";
57410
- __info__.date = "2024-05-07T10:39:36.750Z";
57411
- __info__.hash = "998bea0";
57406
+ __info__.version = "17.0.22";
57407
+ __info__.date = "2024-05-15T09:18:36.212Z";
57408
+ __info__.hash = "1f90749";
57412
57409
 
57413
57410
 
57414
57411
  })(this.o_spreadsheet = this.o_spreadsheet || {}, owl);