@odoo/o-spreadsheet 17.4.28 → 17.4.29
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.
- package/dist/o-spreadsheet.cjs.js +34 -18
- package/dist/o-spreadsheet.esm.js +34 -18
- package/dist/o-spreadsheet.iife.js +34 -18
- package/dist/o-spreadsheet.iife.min.js +338 -338
- package/dist/o_spreadsheet.xml +3 -3
- package/package.json +1 -1
|
@@ -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.4.
|
|
6
|
-
* @date 2025-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 17.4.29
|
|
6
|
+
* @date 2025-04-04T08:40:34.590Z
|
|
7
|
+
* @hash 2937d99
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
'use strict';
|
|
@@ -774,8 +774,7 @@ function removeFalsyAttributes(obj) {
|
|
|
774
774
|
*
|
|
775
775
|
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions/Character_Classes
|
|
776
776
|
*/
|
|
777
|
-
const
|
|
778
|
-
" ",
|
|
777
|
+
const specialWhiteSpaceSpecialCharacters = [
|
|
779
778
|
"\t",
|
|
780
779
|
"\f",
|
|
781
780
|
"\v",
|
|
@@ -790,7 +789,7 @@ const whiteSpaceSpecialCharacters = [
|
|
|
790
789
|
String.fromCharCode(parseInt("3000", 16)),
|
|
791
790
|
String.fromCharCode(parseInt("feff", 16)),
|
|
792
791
|
];
|
|
793
|
-
const
|
|
792
|
+
const specialWhiteSpaceRegexp = new RegExp(specialWhiteSpaceSpecialCharacters.join("|"), "g");
|
|
794
793
|
const newLineRegexp = /(\r\n|\r)/g;
|
|
795
794
|
/**
|
|
796
795
|
* Replace all different newlines characters by \n
|
|
@@ -5727,8 +5726,12 @@ function tokenize(str, locale = DEFAULT_LOCALE) {
|
|
|
5727
5726
|
str = replaceNewLines(str);
|
|
5728
5727
|
const chars = new TokenizingChars(str);
|
|
5729
5728
|
const result = [];
|
|
5729
|
+
const tokenizeSpace = specialWhiteSpaceRegexp.test(str)
|
|
5730
|
+
? tokenizeSpecialCharacterSpace
|
|
5731
|
+
: tokenizeSimpleSpace;
|
|
5730
5732
|
while (!chars.isOver()) {
|
|
5731
|
-
let token =
|
|
5733
|
+
let token = tokenizeNewLine(chars) ||
|
|
5734
|
+
tokenizeSpace(chars) ||
|
|
5732
5735
|
tokenizeArgsSeparator(chars, locale) ||
|
|
5733
5736
|
tokenizeParenthesis(chars) ||
|
|
5734
5737
|
tokenizeOperator(chars) ||
|
|
@@ -5862,17 +5865,19 @@ function tokenizeSymbol(chars) {
|
|
|
5862
5865
|
}
|
|
5863
5866
|
return null;
|
|
5864
5867
|
}
|
|
5865
|
-
function
|
|
5866
|
-
let
|
|
5867
|
-
while (chars.current ===
|
|
5868
|
-
|
|
5869
|
-
chars.shift();
|
|
5868
|
+
function tokenizeSpecialCharacterSpace(chars) {
|
|
5869
|
+
let spaces = "";
|
|
5870
|
+
while (chars.current === " " || (chars.current && chars.current.match(specialWhiteSpaceRegexp))) {
|
|
5871
|
+
spaces += chars.shift();
|
|
5870
5872
|
}
|
|
5871
|
-
if (
|
|
5872
|
-
return { type: "SPACE", value:
|
|
5873
|
+
if (spaces) {
|
|
5874
|
+
return { type: "SPACE", value: spaces };
|
|
5873
5875
|
}
|
|
5876
|
+
return null;
|
|
5877
|
+
}
|
|
5878
|
+
function tokenizeSimpleSpace(chars) {
|
|
5874
5879
|
let spaces = "";
|
|
5875
|
-
while (chars.current
|
|
5880
|
+
while (chars.current === " ") {
|
|
5876
5881
|
spaces += chars.shift();
|
|
5877
5882
|
}
|
|
5878
5883
|
if (spaces) {
|
|
@@ -5880,6 +5885,17 @@ function tokenizeSpace(chars) {
|
|
|
5880
5885
|
}
|
|
5881
5886
|
return null;
|
|
5882
5887
|
}
|
|
5888
|
+
function tokenizeNewLine(chars) {
|
|
5889
|
+
let length = 0;
|
|
5890
|
+
while (chars.current === NEWLINE) {
|
|
5891
|
+
length++;
|
|
5892
|
+
chars.shift();
|
|
5893
|
+
}
|
|
5894
|
+
if (length) {
|
|
5895
|
+
return { type: "SPACE", value: NEWLINE.repeat(length) };
|
|
5896
|
+
}
|
|
5897
|
+
return null;
|
|
5898
|
+
}
|
|
5883
5899
|
function tokenizeInvalidRange(chars) {
|
|
5884
5900
|
if (chars.currentStartsWith(CellErrorType.InvalidReference)) {
|
|
5885
5901
|
chars.advanceBy(CellErrorType.InvalidReference.length);
|
|
@@ -69227,6 +69243,6 @@ exports.tokenColors = tokenColors;
|
|
|
69227
69243
|
exports.tokenize = tokenize;
|
|
69228
69244
|
|
|
69229
69245
|
|
|
69230
|
-
__info__.version = "17.4.
|
|
69231
|
-
__info__.date = "2025-
|
|
69232
|
-
__info__.hash = "
|
|
69246
|
+
__info__.version = "17.4.29";
|
|
69247
|
+
__info__.date = "2025-04-04T08:40:34.590Z";
|
|
69248
|
+
__info__.hash = "2937d99";
|
|
@@ -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.4.
|
|
6
|
-
* @date 2025-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 17.4.29
|
|
6
|
+
* @date 2025-04-04T08:40:34.590Z
|
|
7
|
+
* @hash 2937d99
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { useEnv, useSubEnv, onWillUnmount, useComponent, status, Component, useRef, onMounted, useEffect, useState, onPatched, onWillPatch, onWillUpdateProps, useExternalListener, onWillStart, xml, useChildSubEnv, markRaw, toRaw } from '@odoo/owl';
|
|
@@ -772,8 +772,7 @@ function removeFalsyAttributes(obj) {
|
|
|
772
772
|
*
|
|
773
773
|
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions/Character_Classes
|
|
774
774
|
*/
|
|
775
|
-
const
|
|
776
|
-
" ",
|
|
775
|
+
const specialWhiteSpaceSpecialCharacters = [
|
|
777
776
|
"\t",
|
|
778
777
|
"\f",
|
|
779
778
|
"\v",
|
|
@@ -788,7 +787,7 @@ const whiteSpaceSpecialCharacters = [
|
|
|
788
787
|
String.fromCharCode(parseInt("3000", 16)),
|
|
789
788
|
String.fromCharCode(parseInt("feff", 16)),
|
|
790
789
|
];
|
|
791
|
-
const
|
|
790
|
+
const specialWhiteSpaceRegexp = new RegExp(specialWhiteSpaceSpecialCharacters.join("|"), "g");
|
|
792
791
|
const newLineRegexp = /(\r\n|\r)/g;
|
|
793
792
|
/**
|
|
794
793
|
* Replace all different newlines characters by \n
|
|
@@ -5725,8 +5724,12 @@ function tokenize(str, locale = DEFAULT_LOCALE) {
|
|
|
5725
5724
|
str = replaceNewLines(str);
|
|
5726
5725
|
const chars = new TokenizingChars(str);
|
|
5727
5726
|
const result = [];
|
|
5727
|
+
const tokenizeSpace = specialWhiteSpaceRegexp.test(str)
|
|
5728
|
+
? tokenizeSpecialCharacterSpace
|
|
5729
|
+
: tokenizeSimpleSpace;
|
|
5728
5730
|
while (!chars.isOver()) {
|
|
5729
|
-
let token =
|
|
5731
|
+
let token = tokenizeNewLine(chars) ||
|
|
5732
|
+
tokenizeSpace(chars) ||
|
|
5730
5733
|
tokenizeArgsSeparator(chars, locale) ||
|
|
5731
5734
|
tokenizeParenthesis(chars) ||
|
|
5732
5735
|
tokenizeOperator(chars) ||
|
|
@@ -5860,17 +5863,19 @@ function tokenizeSymbol(chars) {
|
|
|
5860
5863
|
}
|
|
5861
5864
|
return null;
|
|
5862
5865
|
}
|
|
5863
|
-
function
|
|
5864
|
-
let
|
|
5865
|
-
while (chars.current ===
|
|
5866
|
-
|
|
5867
|
-
chars.shift();
|
|
5866
|
+
function tokenizeSpecialCharacterSpace(chars) {
|
|
5867
|
+
let spaces = "";
|
|
5868
|
+
while (chars.current === " " || (chars.current && chars.current.match(specialWhiteSpaceRegexp))) {
|
|
5869
|
+
spaces += chars.shift();
|
|
5868
5870
|
}
|
|
5869
|
-
if (
|
|
5870
|
-
return { type: "SPACE", value:
|
|
5871
|
+
if (spaces) {
|
|
5872
|
+
return { type: "SPACE", value: spaces };
|
|
5871
5873
|
}
|
|
5874
|
+
return null;
|
|
5875
|
+
}
|
|
5876
|
+
function tokenizeSimpleSpace(chars) {
|
|
5872
5877
|
let spaces = "";
|
|
5873
|
-
while (chars.current
|
|
5878
|
+
while (chars.current === " ") {
|
|
5874
5879
|
spaces += chars.shift();
|
|
5875
5880
|
}
|
|
5876
5881
|
if (spaces) {
|
|
@@ -5878,6 +5883,17 @@ function tokenizeSpace(chars) {
|
|
|
5878
5883
|
}
|
|
5879
5884
|
return null;
|
|
5880
5885
|
}
|
|
5886
|
+
function tokenizeNewLine(chars) {
|
|
5887
|
+
let length = 0;
|
|
5888
|
+
while (chars.current === NEWLINE) {
|
|
5889
|
+
length++;
|
|
5890
|
+
chars.shift();
|
|
5891
|
+
}
|
|
5892
|
+
if (length) {
|
|
5893
|
+
return { type: "SPACE", value: NEWLINE.repeat(length) };
|
|
5894
|
+
}
|
|
5895
|
+
return null;
|
|
5896
|
+
}
|
|
5881
5897
|
function tokenizeInvalidRange(chars) {
|
|
5882
5898
|
if (chars.currentStartsWith(CellErrorType.InvalidReference)) {
|
|
5883
5899
|
chars.advanceBy(CellErrorType.InvalidReference.length);
|
|
@@ -69182,6 +69198,6 @@ const constants = {
|
|
|
69182
69198
|
export { AbstractCellClipboardHandler, AbstractChart, AbstractFigureClipboardHandler, CellErrorType, CommandResult, CorePlugin, DispatchResult, EvaluationError, Model, PivotRuntimeDefinition, Registry, Revision, SPREADSHEET_DIMENSIONS, Spreadsheet, SpreadsheetPivotTable, 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 };
|
|
69183
69199
|
|
|
69184
69200
|
|
|
69185
|
-
__info__.version = "17.4.
|
|
69186
|
-
__info__.date = "2025-
|
|
69187
|
-
__info__.hash = "
|
|
69201
|
+
__info__.version = "17.4.29";
|
|
69202
|
+
__info__.date = "2025-04-04T08:40:34.590Z";
|
|
69203
|
+
__info__.hash = "2937d99";
|
|
@@ -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.4.
|
|
6
|
-
* @date 2025-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 17.4.29
|
|
6
|
+
* @date 2025-04-04T08:40:34.590Z
|
|
7
|
+
* @hash 2937d99
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
(function (exports, owl) {
|
|
@@ -773,8 +773,7 @@
|
|
|
773
773
|
*
|
|
774
774
|
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions/Character_Classes
|
|
775
775
|
*/
|
|
776
|
-
const
|
|
777
|
-
" ",
|
|
776
|
+
const specialWhiteSpaceSpecialCharacters = [
|
|
778
777
|
"\t",
|
|
779
778
|
"\f",
|
|
780
779
|
"\v",
|
|
@@ -789,7 +788,7 @@
|
|
|
789
788
|
String.fromCharCode(parseInt("3000", 16)),
|
|
790
789
|
String.fromCharCode(parseInt("feff", 16)),
|
|
791
790
|
];
|
|
792
|
-
const
|
|
791
|
+
const specialWhiteSpaceRegexp = new RegExp(specialWhiteSpaceSpecialCharacters.join("|"), "g");
|
|
793
792
|
const newLineRegexp = /(\r\n|\r)/g;
|
|
794
793
|
/**
|
|
795
794
|
* Replace all different newlines characters by \n
|
|
@@ -5726,8 +5725,12 @@
|
|
|
5726
5725
|
str = replaceNewLines(str);
|
|
5727
5726
|
const chars = new TokenizingChars(str);
|
|
5728
5727
|
const result = [];
|
|
5728
|
+
const tokenizeSpace = specialWhiteSpaceRegexp.test(str)
|
|
5729
|
+
? tokenizeSpecialCharacterSpace
|
|
5730
|
+
: tokenizeSimpleSpace;
|
|
5729
5731
|
while (!chars.isOver()) {
|
|
5730
|
-
let token =
|
|
5732
|
+
let token = tokenizeNewLine(chars) ||
|
|
5733
|
+
tokenizeSpace(chars) ||
|
|
5731
5734
|
tokenizeArgsSeparator(chars, locale) ||
|
|
5732
5735
|
tokenizeParenthesis(chars) ||
|
|
5733
5736
|
tokenizeOperator(chars) ||
|
|
@@ -5861,17 +5864,19 @@
|
|
|
5861
5864
|
}
|
|
5862
5865
|
return null;
|
|
5863
5866
|
}
|
|
5864
|
-
function
|
|
5865
|
-
let
|
|
5866
|
-
while (chars.current ===
|
|
5867
|
-
|
|
5868
|
-
chars.shift();
|
|
5867
|
+
function tokenizeSpecialCharacterSpace(chars) {
|
|
5868
|
+
let spaces = "";
|
|
5869
|
+
while (chars.current === " " || (chars.current && chars.current.match(specialWhiteSpaceRegexp))) {
|
|
5870
|
+
spaces += chars.shift();
|
|
5869
5871
|
}
|
|
5870
|
-
if (
|
|
5871
|
-
return { type: "SPACE", value:
|
|
5872
|
+
if (spaces) {
|
|
5873
|
+
return { type: "SPACE", value: spaces };
|
|
5872
5874
|
}
|
|
5875
|
+
return null;
|
|
5876
|
+
}
|
|
5877
|
+
function tokenizeSimpleSpace(chars) {
|
|
5873
5878
|
let spaces = "";
|
|
5874
|
-
while (chars.current
|
|
5879
|
+
while (chars.current === " ") {
|
|
5875
5880
|
spaces += chars.shift();
|
|
5876
5881
|
}
|
|
5877
5882
|
if (spaces) {
|
|
@@ -5879,6 +5884,17 @@
|
|
|
5879
5884
|
}
|
|
5880
5885
|
return null;
|
|
5881
5886
|
}
|
|
5887
|
+
function tokenizeNewLine(chars) {
|
|
5888
|
+
let length = 0;
|
|
5889
|
+
while (chars.current === NEWLINE) {
|
|
5890
|
+
length++;
|
|
5891
|
+
chars.shift();
|
|
5892
|
+
}
|
|
5893
|
+
if (length) {
|
|
5894
|
+
return { type: "SPACE", value: NEWLINE.repeat(length) };
|
|
5895
|
+
}
|
|
5896
|
+
return null;
|
|
5897
|
+
}
|
|
5882
5898
|
function tokenizeInvalidRange(chars) {
|
|
5883
5899
|
if (chars.currentStartsWith(CellErrorType.InvalidReference)) {
|
|
5884
5900
|
chars.advanceBy(CellErrorType.InvalidReference.length);
|
|
@@ -69226,9 +69242,9 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
69226
69242
|
exports.tokenize = tokenize;
|
|
69227
69243
|
|
|
69228
69244
|
|
|
69229
|
-
__info__.version = "17.4.
|
|
69230
|
-
__info__.date = "2025-
|
|
69231
|
-
__info__.hash = "
|
|
69245
|
+
__info__.version = "17.4.29";
|
|
69246
|
+
__info__.date = "2025-04-04T08:40:34.590Z";
|
|
69247
|
+
__info__.hash = "2937d99";
|
|
69232
69248
|
|
|
69233
69249
|
|
|
69234
69250
|
})(this.o_spreadsheet = this.o_spreadsheet || {}, owl);
|