@univerjs/sheets-formula 1.0.0-rc.0 → 1.0.1
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/lib/cjs/facade.js +4 -2
- package/lib/cjs/index.js +153 -123
- package/lib/cjs/locale/ar-SA.js +0 -1
- package/lib/cjs/locale/ca-ES.js +0 -1
- package/lib/cjs/locale/de-DE.js +0 -1
- package/lib/cjs/locale/en-US.js +0 -1
- package/lib/cjs/locale/es-ES.js +0 -1
- package/lib/cjs/locale/fa-IR.js +0 -1
- package/lib/cjs/locale/fr-FR.js +0 -1
- package/lib/cjs/locale/id-ID.js +0 -1
- package/lib/cjs/locale/it-IT.js +0 -1
- package/lib/cjs/locale/ja-JP.js +0 -1
- package/lib/cjs/locale/ko-KR.js +0 -1
- package/lib/cjs/locale/pl-PL.js +0 -1
- package/lib/cjs/locale/pt-BR.js +0 -1
- package/lib/cjs/locale/ru-RU.js +0 -1
- package/lib/cjs/locale/sk-SK.js +0 -1
- package/lib/cjs/locale/vi-VN.js +0 -1
- package/lib/cjs/locale/zh-CN.js +0 -1
- package/lib/cjs/locale/zh-HK.js +0 -1
- package/lib/cjs/locale/zh-TW.js +0 -1
- package/lib/es/facade.js +4 -2
- package/lib/es/index.js +153 -123
- package/lib/facade.js +4 -2
- package/lib/index.js +153 -123
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +9 -9
- package/lib/types/commands/commands/quick-sum.command.d.ts +0 -20
package/lib/cjs/facade.js
CHANGED
|
@@ -100,7 +100,8 @@ var FWorkbookEngineFormulaMixin = class extends _univerjs_sheets_facade.FWorkboo
|
|
|
100
100
|
cellMatrix.forValue((row, column, cell) => {
|
|
101
101
|
var _arrayFormulaSheet$ro;
|
|
102
102
|
if (!cell) return;
|
|
103
|
-
const
|
|
103
|
+
const arrayFormulaCellData = arrayFormulaSheet === null || arrayFormulaSheet === void 0 || (_arrayFormulaSheet$ro = arrayFormulaSheet[row]) === null || _arrayFormulaSheet$ro === void 0 ? void 0 : _arrayFormulaSheet$ro[column];
|
|
104
|
+
const errorType = (0, _univerjs_engine_formula.extractFormulaError)(cell, !!arrayFormulaCellData);
|
|
104
105
|
if (errorType) errors.push({
|
|
105
106
|
sheetName,
|
|
106
107
|
row,
|
|
@@ -137,7 +138,8 @@ var FRangeEngineFormulaMixin = class extends _univerjs_sheets_facade.FRange {
|
|
|
137
138
|
var _arrayFormulaSheet$ro;
|
|
138
139
|
const cell = cellMatrix.getValue(row, column);
|
|
139
140
|
if (!cell) continue;
|
|
140
|
-
const
|
|
141
|
+
const arrayFormulaCellData = arrayFormulaSheet === null || arrayFormulaSheet === void 0 || (_arrayFormulaSheet$ro = arrayFormulaSheet[row]) === null || _arrayFormulaSheet$ro === void 0 ? void 0 : _arrayFormulaSheet$ro[column];
|
|
142
|
+
const errorType = (0, _univerjs_engine_formula.extractFormulaError)(cell, !!arrayFormulaCellData);
|
|
141
143
|
if (errorType) errors.push({
|
|
142
144
|
sheetName,
|
|
143
145
|
row,
|