@syncfusion/ej2-calculate 35.1.41 → 35.1.42
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/ej2-calculate.umd.min.js +2 -2
- package/dist/ej2-calculate.umd.min.js.map +1 -1
- package/dist/es6/ej2-calculate.es2015.js +5 -4
- package/dist/es6/ej2-calculate.es2015.js.map +1 -1
- package/dist/es6/ej2-calculate.es5.js +5 -4
- package/dist/es6/ej2-calculate.es5.js.map +1 -1
- package/dist/global/ej2-calculate.min.js +2 -2
- package/dist/global/ej2-calculate.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/base/calculate.js +2 -1
- package/src/base/parser.js +3 -3
|
@@ -18906,7 +18906,7 @@ class Parser {
|
|
|
18906
18906
|
computeForceCalculate: false
|
|
18907
18907
|
};
|
|
18908
18908
|
}
|
|
18909
|
-
formulaAutoCorrection(formula, args
|
|
18909
|
+
formulaAutoCorrection(formula, args) {
|
|
18910
18910
|
const arithemeticArr = ['*', '+', '-', '/', '^', '&'];
|
|
18911
18911
|
const logicalSym = ['>', '=', '<'];
|
|
18912
18912
|
let i = 0;
|
|
@@ -19019,7 +19019,7 @@ class Parser {
|
|
|
19019
19019
|
if (formula[i] === '/' || formula[i] === '*' || formula[i] === '^') {
|
|
19020
19020
|
form = form + formula[i];
|
|
19021
19021
|
}
|
|
19022
|
-
if (formula[i] === '&'
|
|
19022
|
+
if (formula[i] === '&') {
|
|
19023
19023
|
form = form + formula[i];
|
|
19024
19024
|
}
|
|
19025
19025
|
i = i + 1;
|
|
@@ -19732,7 +19732,7 @@ class Parser {
|
|
|
19732
19732
|
try {
|
|
19733
19733
|
let args;
|
|
19734
19734
|
substr = substr.split('(').join('').split(')').join('');
|
|
19735
|
-
substr = '(' + this.formulaAutoCorrection(substr, args
|
|
19735
|
+
substr = '(' + this.formulaAutoCorrection(substr, args) + ')';
|
|
19736
19736
|
}
|
|
19737
19737
|
catch (ex) {
|
|
19738
19738
|
const args = {
|
|
@@ -22519,7 +22519,8 @@ let Calculate = class Calculate extends Base {
|
|
|
22519
22519
|
}
|
|
22520
22520
|
}
|
|
22521
22521
|
while (i < pFormula.length && (this.isDigit(pFormula[i]) ||
|
|
22522
|
-
(pFormula[i] === decimalSep || pFormula[i] === '.')
|
|
22522
|
+
(pFormula[i] === decimalSep || pFormula[i] === '.') ||
|
|
22523
|
+
pFormula[i] === '\n')) {
|
|
22523
22524
|
s += pFormula[i] === decimalSep ? '.' : pFormula[i];
|
|
22524
22525
|
i = i + 1;
|
|
22525
22526
|
}
|