@odoo/o-spreadsheet 17.0.57 → 17.0.58

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.57
6
- * @date 2025-04-14T17:13:56.677Z
7
- * @hash 6ac8bb7
5
+ * @version 17.0.58
6
+ * @date 2025-04-18T16:20:26.099Z
7
+ * @hash 88d92de
8
8
  */
9
9
 
10
10
  'use strict';
@@ -4818,7 +4818,7 @@ function transformZone(zone, executed) {
4818
4818
  if (executed.type === "ADD_COLUMNS_ROWS") {
4819
4819
  return expandZoneOnInsertion(zone, executed.dimension === "COL" ? "left" : "top", executed.base, executed.position, executed.quantity);
4820
4820
  }
4821
- return { ...zone };
4821
+ return zone;
4822
4822
  }
4823
4823
  function transformRangeData(range, executed) {
4824
4824
  const deletedSheet = executed.type === "DELETE_SHEET" && executed.sheetId;
@@ -7619,6 +7619,12 @@ function tokenizeString(chars) {
7619
7619
  }
7620
7620
  return null;
7621
7621
  }
7622
+ /**
7623
+ - \p{L} is for any letter (from any language)
7624
+ - \p{N} is for any number
7625
+ - the u flag at the end is for unicode, which enables the `\p{...}` syntax
7626
+ */
7627
+ const unicodeSymbolCharRegexp = /\p{L}|\p{N}|_|\.|!|\$/u;
7622
7628
  const SYMBOL_CHARS = new Set("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_.!$");
7623
7629
  /**
7624
7630
  * A "Symbol" is just basically any word-like element that can appear in a
@@ -7659,7 +7665,8 @@ function tokenizeSymbol(chars) {
7659
7665
  };
7660
7666
  }
7661
7667
  }
7662
- while (chars.current && SYMBOL_CHARS.has(chars.current)) {
7668
+ while (chars.current &&
7669
+ (SYMBOL_CHARS.has(chars.current) || chars.current.match(unicodeSymbolCharRegexp))) {
7663
7670
  result += chars.shift();
7664
7671
  }
7665
7672
  if (result.length) {
@@ -44411,10 +44418,8 @@ function mergeTransformation(toTransform, executed) {
44411
44418
  }
44412
44419
  const target = [];
44413
44420
  for (const zone1 of toTransform.target) {
44414
- for (const zone2 of executed.target) {
44415
- if (!overlap(zone1, zone2)) {
44416
- target.push({ ...zone1 });
44417
- }
44421
+ if (executed.target.every((zone2) => !overlap(zone1, zone2))) {
44422
+ target.push(zone1);
44418
44423
  }
44419
44424
  }
44420
44425
  if (target.length) {
@@ -58249,6 +58254,6 @@ exports.setTranslationMethod = setTranslationMethod;
58249
58254
  exports.tokenize = tokenize;
58250
58255
 
58251
58256
 
58252
- __info__.version = "17.0.57";
58253
- __info__.date = "2025-04-14T17:13:56.677Z";
58254
- __info__.hash = "6ac8bb7";
58257
+ __info__.version = "17.0.58";
58258
+ __info__.date = "2025-04-18T16:20:26.099Z";
58259
+ __info__.hash = "88d92de";
@@ -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.57
6
- * @date 2025-04-14T17:13:56.677Z
7
- * @hash 6ac8bb7
5
+ * @version 17.0.58
6
+ * @date 2025-04-18T16:20:26.099Z
7
+ * @hash 88d92de
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';
@@ -4816,7 +4816,7 @@ function transformZone(zone, executed) {
4816
4816
  if (executed.type === "ADD_COLUMNS_ROWS") {
4817
4817
  return expandZoneOnInsertion(zone, executed.dimension === "COL" ? "left" : "top", executed.base, executed.position, executed.quantity);
4818
4818
  }
4819
- return { ...zone };
4819
+ return zone;
4820
4820
  }
4821
4821
  function transformRangeData(range, executed) {
4822
4822
  const deletedSheet = executed.type === "DELETE_SHEET" && executed.sheetId;
@@ -7617,6 +7617,12 @@ function tokenizeString(chars) {
7617
7617
  }
7618
7618
  return null;
7619
7619
  }
7620
+ /**
7621
+ - \p{L} is for any letter (from any language)
7622
+ - \p{N} is for any number
7623
+ - the u flag at the end is for unicode, which enables the `\p{...}` syntax
7624
+ */
7625
+ const unicodeSymbolCharRegexp = /\p{L}|\p{N}|_|\.|!|\$/u;
7620
7626
  const SYMBOL_CHARS = new Set("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_.!$");
7621
7627
  /**
7622
7628
  * A "Symbol" is just basically any word-like element that can appear in a
@@ -7657,7 +7663,8 @@ function tokenizeSymbol(chars) {
7657
7663
  };
7658
7664
  }
7659
7665
  }
7660
- while (chars.current && SYMBOL_CHARS.has(chars.current)) {
7666
+ while (chars.current &&
7667
+ (SYMBOL_CHARS.has(chars.current) || chars.current.match(unicodeSymbolCharRegexp))) {
7661
7668
  result += chars.shift();
7662
7669
  }
7663
7670
  if (result.length) {
@@ -44409,10 +44416,8 @@ function mergeTransformation(toTransform, executed) {
44409
44416
  }
44410
44417
  const target = [];
44411
44418
  for (const zone1 of toTransform.target) {
44412
- for (const zone2 of executed.target) {
44413
- if (!overlap(zone1, zone2)) {
44414
- target.push({ ...zone1 });
44415
- }
44419
+ if (executed.target.every((zone2) => !overlap(zone1, zone2))) {
44420
+ target.push(zone1);
44416
44421
  }
44417
44422
  }
44418
44423
  if (target.length) {
@@ -58212,6 +58217,6 @@ const constants = {
58212
58217
  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 };
58213
58218
 
58214
58219
 
58215
- __info__.version = "17.0.57";
58216
- __info__.date = "2025-04-14T17:13:56.677Z";
58217
- __info__.hash = "6ac8bb7";
58220
+ __info__.version = "17.0.58";
58221
+ __info__.date = "2025-04-18T16:20:26.099Z";
58222
+ __info__.hash = "88d92de";
@@ -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.57
6
- * @date 2025-04-14T17:13:56.677Z
7
- * @hash 6ac8bb7
5
+ * @version 17.0.58
6
+ * @date 2025-04-18T16:20:26.099Z
7
+ * @hash 88d92de
8
8
  */
9
9
 
10
10
  (function (exports, owl) {
@@ -4817,7 +4817,7 @@
4817
4817
  if (executed.type === "ADD_COLUMNS_ROWS") {
4818
4818
  return expandZoneOnInsertion(zone, executed.dimension === "COL" ? "left" : "top", executed.base, executed.position, executed.quantity);
4819
4819
  }
4820
- return { ...zone };
4820
+ return zone;
4821
4821
  }
4822
4822
  function transformRangeData(range, executed) {
4823
4823
  const deletedSheet = executed.type === "DELETE_SHEET" && executed.sheetId;
@@ -7618,6 +7618,12 @@
7618
7618
  }
7619
7619
  return null;
7620
7620
  }
7621
+ /**
7622
+ - \p{L} is for any letter (from any language)
7623
+ - \p{N} is for any number
7624
+ - the u flag at the end is for unicode, which enables the `\p{...}` syntax
7625
+ */
7626
+ const unicodeSymbolCharRegexp = /\p{L}|\p{N}|_|\.|!|\$/u;
7621
7627
  const SYMBOL_CHARS = new Set("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_.!$");
7622
7628
  /**
7623
7629
  * A "Symbol" is just basically any word-like element that can appear in a
@@ -7658,7 +7664,8 @@
7658
7664
  };
7659
7665
  }
7660
7666
  }
7661
- while (chars.current && SYMBOL_CHARS.has(chars.current)) {
7667
+ while (chars.current &&
7668
+ (SYMBOL_CHARS.has(chars.current) || chars.current.match(unicodeSymbolCharRegexp))) {
7662
7669
  result += chars.shift();
7663
7670
  }
7664
7671
  if (result.length) {
@@ -44410,10 +44417,8 @@
44410
44417
  }
44411
44418
  const target = [];
44412
44419
  for (const zone1 of toTransform.target) {
44413
- for (const zone2 of executed.target) {
44414
- if (!overlap(zone1, zone2)) {
44415
- target.push({ ...zone1 });
44416
- }
44420
+ if (executed.target.every((zone2) => !overlap(zone1, zone2))) {
44421
+ target.push(zone1);
44417
44422
  }
44418
44423
  }
44419
44424
  if (target.length) {
@@ -58248,9 +58253,9 @@
58248
58253
  exports.tokenize = tokenize;
58249
58254
 
58250
58255
 
58251
- __info__.version = "17.0.57";
58252
- __info__.date = "2025-04-14T17:13:56.677Z";
58253
- __info__.hash = "6ac8bb7";
58256
+ __info__.version = "17.0.58";
58257
+ __info__.date = "2025-04-18T16:20:26.099Z";
58258
+ __info__.hash = "88d92de";
58254
58259
 
58255
58260
 
58256
58261
  })(this.o_spreadsheet = this.o_spreadsheet || {}, owl);