@odoo/o-spreadsheet 17.0.38 → 17.0.39
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.
|
|
6
|
-
* @date 2024-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 17.0.39
|
|
6
|
+
* @date 2024-11-08T12:12:25.844Z
|
|
7
|
+
* @hash 454752f
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
'use strict';
|
|
@@ -35090,7 +35090,10 @@ function parseOperand(tokens) {
|
|
|
35090
35090
|
case "STRING":
|
|
35091
35091
|
return { type: "STRING", value: removeStringQuotes(current.value) };
|
|
35092
35092
|
case "INVALID_REFERENCE":
|
|
35093
|
-
|
|
35093
|
+
return {
|
|
35094
|
+
type: "REFERENCE",
|
|
35095
|
+
value: CellErrorType.InvalidReference,
|
|
35096
|
+
};
|
|
35094
35097
|
case "REFERENCE":
|
|
35095
35098
|
if (tokens[0]?.value === ":" && tokens[1]?.type === "REFERENCE") {
|
|
35096
35099
|
tokens.shift();
|
|
@@ -55815,7 +55818,8 @@ function addFormula(cell) {
|
|
|
55815
55818
|
}
|
|
55816
55819
|
const attrs = [["t", type]];
|
|
55817
55820
|
const XlsxFormula = adaptFormulaToExcel(formula);
|
|
55818
|
-
const
|
|
55821
|
+
const exportedValue = adaptFormulaValueToExcel(cell.value);
|
|
55822
|
+
const node = escapeXml /*xml*/ `<f>${XlsxFormula}</f><v>${exportedValue}</v>`;
|
|
55819
55823
|
return { attrs, node };
|
|
55820
55824
|
}
|
|
55821
55825
|
function addContent(content, sharedStrings, forceString = false) {
|
|
@@ -55850,8 +55854,14 @@ function adaptFormulaToExcel(formulaText) {
|
|
|
55850
55854
|
ast = addMissingRequiredArgs(ast);
|
|
55851
55855
|
return ast;
|
|
55852
55856
|
});
|
|
55857
|
+
ast = convertAstNodes(ast, "REFERENCE", (ast) => {
|
|
55858
|
+
return ast.value === CellErrorType.InvalidReference ? { ...ast, value: "#REF!" } : ast;
|
|
55859
|
+
});
|
|
55853
55860
|
return ast ? astToFormula(ast) : formulaText;
|
|
55854
55861
|
}
|
|
55862
|
+
function adaptFormulaValueToExcel(formulaValue) {
|
|
55863
|
+
return formulaValue === CellErrorType.InvalidReference ? "#REF!" : formulaValue;
|
|
55864
|
+
}
|
|
55855
55865
|
/**
|
|
55856
55866
|
* Some Excel function need required args that might not be mandatory in o-spreadsheet.
|
|
55857
55867
|
* This adds those missing args.
|
|
@@ -57647,6 +57657,6 @@ exports.setTranslationMethod = setTranslationMethod;
|
|
|
57647
57657
|
exports.tokenize = tokenize;
|
|
57648
57658
|
|
|
57649
57659
|
|
|
57650
|
-
__info__.version = "17.0.
|
|
57651
|
-
__info__.date = "2024-
|
|
57652
|
-
__info__.hash = "
|
|
57660
|
+
__info__.version = "17.0.39";
|
|
57661
|
+
__info__.date = "2024-11-08T12:12:25.844Z";
|
|
57662
|
+
__info__.hash = "454752f";
|
|
@@ -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.
|
|
6
|
-
* @date 2024-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 17.0.39
|
|
6
|
+
* @date 2024-11-08T12:12:25.844Z
|
|
7
|
+
* @hash 454752f
|
|
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';
|
|
@@ -35088,7 +35088,10 @@ function parseOperand(tokens) {
|
|
|
35088
35088
|
case "STRING":
|
|
35089
35089
|
return { type: "STRING", value: removeStringQuotes(current.value) };
|
|
35090
35090
|
case "INVALID_REFERENCE":
|
|
35091
|
-
|
|
35091
|
+
return {
|
|
35092
|
+
type: "REFERENCE",
|
|
35093
|
+
value: CellErrorType.InvalidReference,
|
|
35094
|
+
};
|
|
35092
35095
|
case "REFERENCE":
|
|
35093
35096
|
if (tokens[0]?.value === ":" && tokens[1]?.type === "REFERENCE") {
|
|
35094
35097
|
tokens.shift();
|
|
@@ -55813,7 +55816,8 @@ function addFormula(cell) {
|
|
|
55813
55816
|
}
|
|
55814
55817
|
const attrs = [["t", type]];
|
|
55815
55818
|
const XlsxFormula = adaptFormulaToExcel(formula);
|
|
55816
|
-
const
|
|
55819
|
+
const exportedValue = adaptFormulaValueToExcel(cell.value);
|
|
55820
|
+
const node = escapeXml /*xml*/ `<f>${XlsxFormula}</f><v>${exportedValue}</v>`;
|
|
55817
55821
|
return { attrs, node };
|
|
55818
55822
|
}
|
|
55819
55823
|
function addContent(content, sharedStrings, forceString = false) {
|
|
@@ -55848,8 +55852,14 @@ function adaptFormulaToExcel(formulaText) {
|
|
|
55848
55852
|
ast = addMissingRequiredArgs(ast);
|
|
55849
55853
|
return ast;
|
|
55850
55854
|
});
|
|
55855
|
+
ast = convertAstNodes(ast, "REFERENCE", (ast) => {
|
|
55856
|
+
return ast.value === CellErrorType.InvalidReference ? { ...ast, value: "#REF!" } : ast;
|
|
55857
|
+
});
|
|
55851
55858
|
return ast ? astToFormula(ast) : formulaText;
|
|
55852
55859
|
}
|
|
55860
|
+
function adaptFormulaValueToExcel(formulaValue) {
|
|
55861
|
+
return formulaValue === CellErrorType.InvalidReference ? "#REF!" : formulaValue;
|
|
55862
|
+
}
|
|
55853
55863
|
/**
|
|
55854
55864
|
* Some Excel function need required args that might not be mandatory in o-spreadsheet.
|
|
55855
55865
|
* This adds those missing args.
|
|
@@ -57610,6 +57620,6 @@ const constants = {
|
|
|
57610
57620
|
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 };
|
|
57611
57621
|
|
|
57612
57622
|
|
|
57613
|
-
__info__.version = "17.0.
|
|
57614
|
-
__info__.date = "2024-
|
|
57615
|
-
__info__.hash = "
|
|
57623
|
+
__info__.version = "17.0.39";
|
|
57624
|
+
__info__.date = "2024-11-08T12:12:25.844Z";
|
|
57625
|
+
__info__.hash = "454752f";
|
|
@@ -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.
|
|
6
|
-
* @date 2024-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 17.0.39
|
|
6
|
+
* @date 2024-11-08T12:12:25.844Z
|
|
7
|
+
* @hash 454752f
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
(function (exports, owl) {
|
|
@@ -35089,7 +35089,10 @@
|
|
|
35089
35089
|
case "STRING":
|
|
35090
35090
|
return { type: "STRING", value: removeStringQuotes(current.value) };
|
|
35091
35091
|
case "INVALID_REFERENCE":
|
|
35092
|
-
|
|
35092
|
+
return {
|
|
35093
|
+
type: "REFERENCE",
|
|
35094
|
+
value: CellErrorType.InvalidReference,
|
|
35095
|
+
};
|
|
35093
35096
|
case "REFERENCE":
|
|
35094
35097
|
if (tokens[0]?.value === ":" && tokens[1]?.type === "REFERENCE") {
|
|
35095
35098
|
tokens.shift();
|
|
@@ -55814,7 +55817,8 @@
|
|
|
55814
55817
|
}
|
|
55815
55818
|
const attrs = [["t", type]];
|
|
55816
55819
|
const XlsxFormula = adaptFormulaToExcel(formula);
|
|
55817
|
-
const
|
|
55820
|
+
const exportedValue = adaptFormulaValueToExcel(cell.value);
|
|
55821
|
+
const node = escapeXml /*xml*/ `<f>${XlsxFormula}</f><v>${exportedValue}</v>`;
|
|
55818
55822
|
return { attrs, node };
|
|
55819
55823
|
}
|
|
55820
55824
|
function addContent(content, sharedStrings, forceString = false) {
|
|
@@ -55849,8 +55853,14 @@
|
|
|
55849
55853
|
ast = addMissingRequiredArgs(ast);
|
|
55850
55854
|
return ast;
|
|
55851
55855
|
});
|
|
55856
|
+
ast = convertAstNodes(ast, "REFERENCE", (ast) => {
|
|
55857
|
+
return ast.value === CellErrorType.InvalidReference ? { ...ast, value: "#REF!" } : ast;
|
|
55858
|
+
});
|
|
55852
55859
|
return ast ? astToFormula(ast) : formulaText;
|
|
55853
55860
|
}
|
|
55861
|
+
function adaptFormulaValueToExcel(formulaValue) {
|
|
55862
|
+
return formulaValue === CellErrorType.InvalidReference ? "#REF!" : formulaValue;
|
|
55863
|
+
}
|
|
55854
55864
|
/**
|
|
55855
55865
|
* Some Excel function need required args that might not be mandatory in o-spreadsheet.
|
|
55856
55866
|
* This adds those missing args.
|
|
@@ -57646,9 +57656,9 @@
|
|
|
57646
57656
|
exports.tokenize = tokenize;
|
|
57647
57657
|
|
|
57648
57658
|
|
|
57649
|
-
__info__.version = "17.0.
|
|
57650
|
-
__info__.date = "2024-
|
|
57651
|
-
__info__.hash = "
|
|
57659
|
+
__info__.version = "17.0.39";
|
|
57660
|
+
__info__.date = "2024-11-08T12:12:25.844Z";
|
|
57661
|
+
__info__.hash = "454752f";
|
|
57652
57662
|
|
|
57653
57663
|
|
|
57654
57664
|
})(this.o_spreadsheet = this.o_spreadsheet || {}, owl);
|