@odoo/o-spreadsheet 17.0.55 → 17.0.56

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.55
6
- * @date 2025-03-26T12:44:29.690Z
7
- * @hash c3a4769
5
+ * @version 17.0.56
6
+ * @date 2025-04-04T08:36:58.258Z
7
+ * @hash c484787
8
8
  */
9
9
 
10
10
  'use strict';
@@ -712,8 +712,7 @@ function removeFalsyAttributes(obj) {
712
712
  *
713
713
  * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions/Character_Classes
714
714
  */
715
- const whiteSpaceSpecialCharacters = [
716
- " ",
715
+ const specialWhiteSpaceSpecialCharacters = [
717
716
  "\t",
718
717
  "\f",
719
718
  "\v",
@@ -728,7 +727,7 @@ const whiteSpaceSpecialCharacters = [
728
727
  String.fromCharCode(parseInt("3000", 16)),
729
728
  String.fromCharCode(parseInt("feff", 16)),
730
729
  ];
731
- const whiteSpaceRegexp = new RegExp(whiteSpaceSpecialCharacters.join("|"), "g");
730
+ const specialWhiteSpaceRegexp = new RegExp(specialWhiteSpaceSpecialCharacters.join("|"), "g");
732
731
  const newLineRegexp = /(\r\n|\r)/g;
733
732
  /**
734
733
  * Replace all different newlines characters by \n
@@ -7533,8 +7532,12 @@ function tokenize(str, locale = DEFAULT_LOCALE) {
7533
7532
  str = replaceNewLines(str);
7534
7533
  const chars = new TokenizingChars(str);
7535
7534
  const result = [];
7535
+ const tokenizeSpace = specialWhiteSpaceRegexp.test(str)
7536
+ ? tokenizeSpecialCharacterSpace
7537
+ : tokenizeSimpleSpace;
7536
7538
  while (!chars.isOver()) {
7537
- let token = tokenizeSpace(chars) ||
7539
+ let token = tokenizeNewLine(chars) ||
7540
+ tokenizeSpace(chars) ||
7538
7541
  tokenizeArgsSeparator(chars, locale) ||
7539
7542
  tokenizeParenthesis(chars) ||
7540
7543
  tokenizeOperator(chars) ||
@@ -7668,17 +7671,19 @@ function tokenizeSymbol(chars) {
7668
7671
  }
7669
7672
  return null;
7670
7673
  }
7671
- function tokenizeSpace(chars) {
7672
- let length = 0;
7673
- while (chars.current === NEWLINE) {
7674
- length++;
7675
- chars.shift();
7674
+ function tokenizeSpecialCharacterSpace(chars) {
7675
+ let spaces = "";
7676
+ while (chars.current === " " || (chars.current && chars.current.match(specialWhiteSpaceRegexp))) {
7677
+ spaces += chars.shift();
7676
7678
  }
7677
- if (length) {
7678
- return { type: "SPACE", value: NEWLINE.repeat(length) };
7679
+ if (spaces) {
7680
+ return { type: "SPACE", value: spaces };
7679
7681
  }
7682
+ return null;
7683
+ }
7684
+ function tokenizeSimpleSpace(chars) {
7680
7685
  let spaces = "";
7681
- while (chars.current && chars.current.match(whiteSpaceRegexp)) {
7686
+ while (chars.current === " ") {
7682
7687
  spaces += chars.shift();
7683
7688
  }
7684
7689
  if (spaces) {
@@ -7686,6 +7691,17 @@ function tokenizeSpace(chars) {
7686
7691
  }
7687
7692
  return null;
7688
7693
  }
7694
+ function tokenizeNewLine(chars) {
7695
+ let length = 0;
7696
+ while (chars.current === NEWLINE) {
7697
+ length++;
7698
+ chars.shift();
7699
+ }
7700
+ if (length) {
7701
+ return { type: "SPACE", value: NEWLINE.repeat(length) };
7702
+ }
7703
+ return null;
7704
+ }
7689
7705
  function tokenizeInvalidRange(chars) {
7690
7706
  if (chars.currentStartsWith(INCORRECT_RANGE_STRING)) {
7691
7707
  chars.advanceBy(INCORRECT_RANGE_STRING.length);
@@ -58105,6 +58121,6 @@ exports.setTranslationMethod = setTranslationMethod;
58105
58121
  exports.tokenize = tokenize;
58106
58122
 
58107
58123
 
58108
- __info__.version = "17.0.55";
58109
- __info__.date = "2025-03-26T12:44:29.690Z";
58110
- __info__.hash = "c3a4769";
58124
+ __info__.version = "17.0.56";
58125
+ __info__.date = "2025-04-04T08:36:58.258Z";
58126
+ __info__.hash = "c484787";
@@ -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.55
6
- * @date 2025-03-26T12:44:29.690Z
7
- * @hash c3a4769
5
+ * @version 17.0.56
6
+ * @date 2025-04-04T08:36:58.258Z
7
+ * @hash c484787
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';
@@ -710,8 +710,7 @@ function removeFalsyAttributes(obj) {
710
710
  *
711
711
  * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions/Character_Classes
712
712
  */
713
- const whiteSpaceSpecialCharacters = [
714
- " ",
713
+ const specialWhiteSpaceSpecialCharacters = [
715
714
  "\t",
716
715
  "\f",
717
716
  "\v",
@@ -726,7 +725,7 @@ const whiteSpaceSpecialCharacters = [
726
725
  String.fromCharCode(parseInt("3000", 16)),
727
726
  String.fromCharCode(parseInt("feff", 16)),
728
727
  ];
729
- const whiteSpaceRegexp = new RegExp(whiteSpaceSpecialCharacters.join("|"), "g");
728
+ const specialWhiteSpaceRegexp = new RegExp(specialWhiteSpaceSpecialCharacters.join("|"), "g");
730
729
  const newLineRegexp = /(\r\n|\r)/g;
731
730
  /**
732
731
  * Replace all different newlines characters by \n
@@ -7531,8 +7530,12 @@ function tokenize(str, locale = DEFAULT_LOCALE) {
7531
7530
  str = replaceNewLines(str);
7532
7531
  const chars = new TokenizingChars(str);
7533
7532
  const result = [];
7533
+ const tokenizeSpace = specialWhiteSpaceRegexp.test(str)
7534
+ ? tokenizeSpecialCharacterSpace
7535
+ : tokenizeSimpleSpace;
7534
7536
  while (!chars.isOver()) {
7535
- let token = tokenizeSpace(chars) ||
7537
+ let token = tokenizeNewLine(chars) ||
7538
+ tokenizeSpace(chars) ||
7536
7539
  tokenizeArgsSeparator(chars, locale) ||
7537
7540
  tokenizeParenthesis(chars) ||
7538
7541
  tokenizeOperator(chars) ||
@@ -7666,17 +7669,19 @@ function tokenizeSymbol(chars) {
7666
7669
  }
7667
7670
  return null;
7668
7671
  }
7669
- function tokenizeSpace(chars) {
7670
- let length = 0;
7671
- while (chars.current === NEWLINE) {
7672
- length++;
7673
- chars.shift();
7672
+ function tokenizeSpecialCharacterSpace(chars) {
7673
+ let spaces = "";
7674
+ while (chars.current === " " || (chars.current && chars.current.match(specialWhiteSpaceRegexp))) {
7675
+ spaces += chars.shift();
7674
7676
  }
7675
- if (length) {
7676
- return { type: "SPACE", value: NEWLINE.repeat(length) };
7677
+ if (spaces) {
7678
+ return { type: "SPACE", value: spaces };
7677
7679
  }
7680
+ return null;
7681
+ }
7682
+ function tokenizeSimpleSpace(chars) {
7678
7683
  let spaces = "";
7679
- while (chars.current && chars.current.match(whiteSpaceRegexp)) {
7684
+ while (chars.current === " ") {
7680
7685
  spaces += chars.shift();
7681
7686
  }
7682
7687
  if (spaces) {
@@ -7684,6 +7689,17 @@ function tokenizeSpace(chars) {
7684
7689
  }
7685
7690
  return null;
7686
7691
  }
7692
+ function tokenizeNewLine(chars) {
7693
+ let length = 0;
7694
+ while (chars.current === NEWLINE) {
7695
+ length++;
7696
+ chars.shift();
7697
+ }
7698
+ if (length) {
7699
+ return { type: "SPACE", value: NEWLINE.repeat(length) };
7700
+ }
7701
+ return null;
7702
+ }
7687
7703
  function tokenizeInvalidRange(chars) {
7688
7704
  if (chars.currentStartsWith(INCORRECT_RANGE_STRING)) {
7689
7705
  chars.advanceBy(INCORRECT_RANGE_STRING.length);
@@ -58068,6 +58084,6 @@ const constants = {
58068
58084
  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 };
58069
58085
 
58070
58086
 
58071
- __info__.version = "17.0.55";
58072
- __info__.date = "2025-03-26T12:44:29.690Z";
58073
- __info__.hash = "c3a4769";
58087
+ __info__.version = "17.0.56";
58088
+ __info__.date = "2025-04-04T08:36:58.258Z";
58089
+ __info__.hash = "c484787";
@@ -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.55
6
- * @date 2025-03-26T12:44:29.690Z
7
- * @hash c3a4769
5
+ * @version 17.0.56
6
+ * @date 2025-04-04T08:36:58.258Z
7
+ * @hash c484787
8
8
  */
9
9
 
10
10
  (function (exports, owl) {
@@ -711,8 +711,7 @@
711
711
  *
712
712
  * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions/Character_Classes
713
713
  */
714
- const whiteSpaceSpecialCharacters = [
715
- " ",
714
+ const specialWhiteSpaceSpecialCharacters = [
716
715
  "\t",
717
716
  "\f",
718
717
  "\v",
@@ -727,7 +726,7 @@
727
726
  String.fromCharCode(parseInt("3000", 16)),
728
727
  String.fromCharCode(parseInt("feff", 16)),
729
728
  ];
730
- const whiteSpaceRegexp = new RegExp(whiteSpaceSpecialCharacters.join("|"), "g");
729
+ const specialWhiteSpaceRegexp = new RegExp(specialWhiteSpaceSpecialCharacters.join("|"), "g");
731
730
  const newLineRegexp = /(\r\n|\r)/g;
732
731
  /**
733
732
  * Replace all different newlines characters by \n
@@ -7532,8 +7531,12 @@
7532
7531
  str = replaceNewLines(str);
7533
7532
  const chars = new TokenizingChars(str);
7534
7533
  const result = [];
7534
+ const tokenizeSpace = specialWhiteSpaceRegexp.test(str)
7535
+ ? tokenizeSpecialCharacterSpace
7536
+ : tokenizeSimpleSpace;
7535
7537
  while (!chars.isOver()) {
7536
- let token = tokenizeSpace(chars) ||
7538
+ let token = tokenizeNewLine(chars) ||
7539
+ tokenizeSpace(chars) ||
7537
7540
  tokenizeArgsSeparator(chars, locale) ||
7538
7541
  tokenizeParenthesis(chars) ||
7539
7542
  tokenizeOperator(chars) ||
@@ -7667,17 +7670,19 @@
7667
7670
  }
7668
7671
  return null;
7669
7672
  }
7670
- function tokenizeSpace(chars) {
7671
- let length = 0;
7672
- while (chars.current === NEWLINE) {
7673
- length++;
7674
- chars.shift();
7673
+ function tokenizeSpecialCharacterSpace(chars) {
7674
+ let spaces = "";
7675
+ while (chars.current === " " || (chars.current && chars.current.match(specialWhiteSpaceRegexp))) {
7676
+ spaces += chars.shift();
7675
7677
  }
7676
- if (length) {
7677
- return { type: "SPACE", value: NEWLINE.repeat(length) };
7678
+ if (spaces) {
7679
+ return { type: "SPACE", value: spaces };
7678
7680
  }
7681
+ return null;
7682
+ }
7683
+ function tokenizeSimpleSpace(chars) {
7679
7684
  let spaces = "";
7680
- while (chars.current && chars.current.match(whiteSpaceRegexp)) {
7685
+ while (chars.current === " ") {
7681
7686
  spaces += chars.shift();
7682
7687
  }
7683
7688
  if (spaces) {
@@ -7685,6 +7690,17 @@
7685
7690
  }
7686
7691
  return null;
7687
7692
  }
7693
+ function tokenizeNewLine(chars) {
7694
+ let length = 0;
7695
+ while (chars.current === NEWLINE) {
7696
+ length++;
7697
+ chars.shift();
7698
+ }
7699
+ if (length) {
7700
+ return { type: "SPACE", value: NEWLINE.repeat(length) };
7701
+ }
7702
+ return null;
7703
+ }
7688
7704
  function tokenizeInvalidRange(chars) {
7689
7705
  if (chars.currentStartsWith(INCORRECT_RANGE_STRING)) {
7690
7706
  chars.advanceBy(INCORRECT_RANGE_STRING.length);
@@ -58104,9 +58120,9 @@
58104
58120
  exports.tokenize = tokenize;
58105
58121
 
58106
58122
 
58107
- __info__.version = "17.0.55";
58108
- __info__.date = "2025-03-26T12:44:29.690Z";
58109
- __info__.hash = "c3a4769";
58123
+ __info__.version = "17.0.56";
58124
+ __info__.date = "2025-04-04T08:36:58.258Z";
58125
+ __info__.hash = "c484787";
58110
58126
 
58111
58127
 
58112
58128
  })(this.o_spreadsheet = this.o_spreadsheet || {}, owl);