@odoo/o-spreadsheet 17.2.24 → 17.2.25
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.
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* This file is generated by o-spreadsheet build tools. Do not edit it.
|
|
5
5
|
* @see https://github.com/odoo/o-spreadsheet
|
|
6
|
-
* @version 17.2.
|
|
7
|
-
* @date 2024-
|
|
8
|
-
* @hash
|
|
6
|
+
* @version 17.2.25
|
|
7
|
+
* @date 2024-11-08T12:13:19.966Z
|
|
8
|
+
* @hash 40d42f8
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
'use strict';
|
|
@@ -6647,7 +6647,10 @@ function parseOperand(tokens) {
|
|
|
6647
6647
|
case "STRING":
|
|
6648
6648
|
return { type: "STRING", value: removeStringQuotes(current.value) };
|
|
6649
6649
|
case "INVALID_REFERENCE":
|
|
6650
|
-
|
|
6650
|
+
return {
|
|
6651
|
+
type: "REFERENCE",
|
|
6652
|
+
value: CellErrorType.InvalidReference,
|
|
6653
|
+
};
|
|
6651
6654
|
case "REFERENCE":
|
|
6652
6655
|
if (tokens[0]?.value === ":" && tokens[1]?.type === "REFERENCE") {
|
|
6653
6656
|
tokens.shift();
|
|
@@ -59052,7 +59055,8 @@ function addFormula(cell) {
|
|
|
59052
59055
|
}
|
|
59053
59056
|
const attrs = [["t", type]];
|
|
59054
59057
|
const XlsxFormula = adaptFormulaToExcel(formula);
|
|
59055
|
-
const
|
|
59058
|
+
const exportedValue = adaptFormulaValueToExcel(cell.value);
|
|
59059
|
+
const node = escapeXml /*xml*/ `<f>${XlsxFormula}</f><v>${exportedValue}</v>`;
|
|
59056
59060
|
return { attrs, node };
|
|
59057
59061
|
}
|
|
59058
59062
|
function addContent(content, sharedStrings, forceString = false) {
|
|
@@ -59087,8 +59091,14 @@ function adaptFormulaToExcel(formulaText) {
|
|
|
59087
59091
|
ast = addMissingRequiredArgs(ast);
|
|
59088
59092
|
return ast;
|
|
59089
59093
|
});
|
|
59094
|
+
ast = convertAstNodes(ast, "REFERENCE", (ast) => {
|
|
59095
|
+
return ast.value === CellErrorType.InvalidReference ? { ...ast, value: "#REF!" } : ast;
|
|
59096
|
+
});
|
|
59090
59097
|
return ast ? astToFormula(ast) : formulaText;
|
|
59091
59098
|
}
|
|
59099
|
+
function adaptFormulaValueToExcel(formulaValue) {
|
|
59100
|
+
return formulaValue === CellErrorType.InvalidReference ? "#REF!" : formulaValue;
|
|
59101
|
+
}
|
|
59092
59102
|
/**
|
|
59093
59103
|
* Some Excel function need required args that might not be mandatory in o-spreadsheet.
|
|
59094
59104
|
* This adds those missing args.
|
|
@@ -60959,6 +60969,6 @@ exports.tokenColors = tokenColors;
|
|
|
60959
60969
|
exports.tokenize = tokenize;
|
|
60960
60970
|
|
|
60961
60971
|
|
|
60962
|
-
__info__.version = "17.2.
|
|
60963
|
-
__info__.date = "2024-
|
|
60964
|
-
__info__.hash = "
|
|
60972
|
+
__info__.version = "17.2.25";
|
|
60973
|
+
__info__.date = "2024-11-08T12:13:19.966Z";
|
|
60974
|
+
__info__.hash = "40d42f8";
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* This file is generated by o-spreadsheet build tools. Do not edit it.
|
|
5
5
|
* @see https://github.com/odoo/o-spreadsheet
|
|
6
|
-
* @version 17.2.
|
|
7
|
-
* @date 2024-
|
|
8
|
-
* @hash
|
|
6
|
+
* @version 17.2.25
|
|
7
|
+
* @date 2024-11-08T12:13:19.966Z
|
|
8
|
+
* @hash 40d42f8
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
import { useEnv, useSubEnv, onWillUnmount, useComponent, status, Component, useRef, onMounted, useEffect, useState, onPatched, onWillPatch, onWillUpdateProps, useExternalListener, onWillStart, xml, useChildSubEnv, markRaw } from '@odoo/owl';
|
|
@@ -6645,7 +6645,10 @@ function parseOperand(tokens) {
|
|
|
6645
6645
|
case "STRING":
|
|
6646
6646
|
return { type: "STRING", value: removeStringQuotes(current.value) };
|
|
6647
6647
|
case "INVALID_REFERENCE":
|
|
6648
|
-
|
|
6648
|
+
return {
|
|
6649
|
+
type: "REFERENCE",
|
|
6650
|
+
value: CellErrorType.InvalidReference,
|
|
6651
|
+
};
|
|
6649
6652
|
case "REFERENCE":
|
|
6650
6653
|
if (tokens[0]?.value === ":" && tokens[1]?.type === "REFERENCE") {
|
|
6651
6654
|
tokens.shift();
|
|
@@ -59050,7 +59053,8 @@ function addFormula(cell) {
|
|
|
59050
59053
|
}
|
|
59051
59054
|
const attrs = [["t", type]];
|
|
59052
59055
|
const XlsxFormula = adaptFormulaToExcel(formula);
|
|
59053
|
-
const
|
|
59056
|
+
const exportedValue = adaptFormulaValueToExcel(cell.value);
|
|
59057
|
+
const node = escapeXml /*xml*/ `<f>${XlsxFormula}</f><v>${exportedValue}</v>`;
|
|
59054
59058
|
return { attrs, node };
|
|
59055
59059
|
}
|
|
59056
59060
|
function addContent(content, sharedStrings, forceString = false) {
|
|
@@ -59085,8 +59089,14 @@ function adaptFormulaToExcel(formulaText) {
|
|
|
59085
59089
|
ast = addMissingRequiredArgs(ast);
|
|
59086
59090
|
return ast;
|
|
59087
59091
|
});
|
|
59092
|
+
ast = convertAstNodes(ast, "REFERENCE", (ast) => {
|
|
59093
|
+
return ast.value === CellErrorType.InvalidReference ? { ...ast, value: "#REF!" } : ast;
|
|
59094
|
+
});
|
|
59088
59095
|
return ast ? astToFormula(ast) : formulaText;
|
|
59089
59096
|
}
|
|
59097
|
+
function adaptFormulaValueToExcel(formulaValue) {
|
|
59098
|
+
return formulaValue === CellErrorType.InvalidReference ? "#REF!" : formulaValue;
|
|
59099
|
+
}
|
|
59090
59100
|
/**
|
|
59091
59101
|
* Some Excel function need required args that might not be mandatory in o-spreadsheet.
|
|
59092
59102
|
* This adds those missing args.
|
|
@@ -60916,6 +60926,6 @@ const constants = {
|
|
|
60916
60926
|
export { AbstractCellClipboardHandler, AbstractChart, AbstractFigureClipboardHandler, CellErrorType, CommandResult, CorePlugin, DispatchResult, EvaluationError, Model, Registry, Revision, SPREADSHEET_DIMENSIONS, Spreadsheet, 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 };
|
|
60917
60927
|
|
|
60918
60928
|
|
|
60919
|
-
__info__.version = "17.2.
|
|
60920
|
-
__info__.date = "2024-
|
|
60921
|
-
__info__.hash = "
|
|
60929
|
+
__info__.version = "17.2.25";
|
|
60930
|
+
__info__.date = "2024-11-08T12:13:19.966Z";
|
|
60931
|
+
__info__.hash = "40d42f8";
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* This file is generated by o-spreadsheet build tools. Do not edit it.
|
|
5
5
|
* @see https://github.com/odoo/o-spreadsheet
|
|
6
|
-
* @version 17.2.
|
|
7
|
-
* @date 2024-
|
|
8
|
-
* @hash
|
|
6
|
+
* @version 17.2.25
|
|
7
|
+
* @date 2024-11-08T12:13:19.966Z
|
|
8
|
+
* @hash 40d42f8
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
(function (exports, owl) {
|
|
@@ -6646,7 +6646,10 @@
|
|
|
6646
6646
|
case "STRING":
|
|
6647
6647
|
return { type: "STRING", value: removeStringQuotes(current.value) };
|
|
6648
6648
|
case "INVALID_REFERENCE":
|
|
6649
|
-
|
|
6649
|
+
return {
|
|
6650
|
+
type: "REFERENCE",
|
|
6651
|
+
value: CellErrorType.InvalidReference,
|
|
6652
|
+
};
|
|
6650
6653
|
case "REFERENCE":
|
|
6651
6654
|
if (tokens[0]?.value === ":" && tokens[1]?.type === "REFERENCE") {
|
|
6652
6655
|
tokens.shift();
|
|
@@ -59051,7 +59054,8 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
59051
59054
|
}
|
|
59052
59055
|
const attrs = [["t", type]];
|
|
59053
59056
|
const XlsxFormula = adaptFormulaToExcel(formula);
|
|
59054
|
-
const
|
|
59057
|
+
const exportedValue = adaptFormulaValueToExcel(cell.value);
|
|
59058
|
+
const node = escapeXml /*xml*/ `<f>${XlsxFormula}</f><v>${exportedValue}</v>`;
|
|
59055
59059
|
return { attrs, node };
|
|
59056
59060
|
}
|
|
59057
59061
|
function addContent(content, sharedStrings, forceString = false) {
|
|
@@ -59086,8 +59090,14 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
59086
59090
|
ast = addMissingRequiredArgs(ast);
|
|
59087
59091
|
return ast;
|
|
59088
59092
|
});
|
|
59093
|
+
ast = convertAstNodes(ast, "REFERENCE", (ast) => {
|
|
59094
|
+
return ast.value === CellErrorType.InvalidReference ? { ...ast, value: "#REF!" } : ast;
|
|
59095
|
+
});
|
|
59089
59096
|
return ast ? astToFormula(ast) : formulaText;
|
|
59090
59097
|
}
|
|
59098
|
+
function adaptFormulaValueToExcel(formulaValue) {
|
|
59099
|
+
return formulaValue === CellErrorType.InvalidReference ? "#REF!" : formulaValue;
|
|
59100
|
+
}
|
|
59091
59101
|
/**
|
|
59092
59102
|
* Some Excel function need required args that might not be mandatory in o-spreadsheet.
|
|
59093
59103
|
* This adds those missing args.
|
|
@@ -60958,9 +60968,9 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
60958
60968
|
exports.tokenize = tokenize;
|
|
60959
60969
|
|
|
60960
60970
|
|
|
60961
|
-
__info__.version = "17.2.
|
|
60962
|
-
__info__.date = "2024-
|
|
60963
|
-
__info__.hash = "
|
|
60971
|
+
__info__.version = "17.2.25";
|
|
60972
|
+
__info__.date = "2024-11-08T12:13:19.966Z";
|
|
60973
|
+
__info__.hash = "40d42f8";
|
|
60964
60974
|
|
|
60965
60975
|
|
|
60966
60976
|
})(this.o_spreadsheet = this.o_spreadsheet || {}, owl);
|