@fileverse-dev/fortune-core 1.2.79 → 1.2.80

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.
@@ -155,6 +155,10 @@ export function setConditionRules(ctx, protection, generalDialog, conditionforma
155
155
  }
156
156
  } else if (rangeArr.length === 0) {
157
157
  if (_.isNaN(v) || v === "") {
158
+ if (v === "") {
159
+ ctx.warnDialog = "Value is required";
160
+ return;
161
+ }
158
162
  ctx.warnDialog = conditionformat.conditionValueCanOnly;
159
163
  return;
160
164
  }
@@ -1527,6 +1527,11 @@ export function deleteSelectedCellText(ctx) {
1527
1527
  var c2 = selection[s].column[1];
1528
1528
  for (var r = r1; r <= r2; r += 1) {
1529
1529
  for (var c = c1; c <= c2; c += 1) {
1530
+ var index = getSheetIndex(ctx, ctx.currentSheetId);
1531
+ var dataVerification = ctx.luckysheetfile[index].dataVerification;
1532
+ if (dataVerification && (dataVerification === null || dataVerification === void 0 ? void 0 : dataVerification["".concat(r, "_").concat(c)])) {
1533
+ dataVerification === null || dataVerification === void 0 ? true : delete dataVerification["".concat(r, "_").concat(c)];
1534
+ }
1530
1535
  if (_.isPlainObject(d[r][c])) {
1531
1536
  var cell = d[r][c];
1532
1537
  delete cell.m;
@@ -170,6 +170,10 @@ function setConditionRules(ctx, protection, generalDialog, conditionformat, rule
170
170
  }
171
171
  } else if (rangeArr.length === 0) {
172
172
  if (_lodash.default.isNaN(v) || v === "") {
173
+ if (v === "") {
174
+ ctx.warnDialog = "Value is required";
175
+ return;
176
+ }
173
177
  ctx.warnDialog = conditionformat.conditionValueCanOnly;
174
178
  return;
175
179
  }
@@ -1562,6 +1562,11 @@ function deleteSelectedCellText(ctx) {
1562
1562
  var c2 = selection[s].column[1];
1563
1563
  for (var r = r1; r <= r2; r += 1) {
1564
1564
  for (var c = c1; c <= c2; c += 1) {
1565
+ var index = (0, _utils.getSheetIndex)(ctx, ctx.currentSheetId);
1566
+ var dataVerification = ctx.luckysheetfile[index].dataVerification;
1567
+ if (dataVerification && (dataVerification === null || dataVerification === void 0 ? void 0 : dataVerification["".concat(r, "_").concat(c)])) {
1568
+ dataVerification === null || dataVerification === void 0 ? true : delete dataVerification["".concat(r, "_").concat(c)];
1569
+ }
1565
1570
  if (_lodash.default.isPlainObject(d[r][c])) {
1566
1571
  var cell = d[r][c];
1567
1572
  delete cell.m;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse-dev/fortune-core",
3
- "version": "1.2.79",
3
+ "version": "1.2.80",
4
4
  "main": "lib/index.js",
5
5
  "module": "es/index.js",
6
6
  "typings": "lib/index.d.ts",