@fileverse-dev/fortune-react 1.0.2-mod-76 → 1.0.2-mod-77

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/index.esm.js CHANGED
@@ -2802,7 +2802,7 @@ var DataVerification = function DataVerification() {
2802
2802
  setContext(function (ctx) {
2803
2803
  var isPass = confirmMessage(ctx, generalDialog, dataVerification);
2804
2804
  if (isPass) {
2805
- var _ctx$dataVerification, _ctx$dataVerification2, _ctx$luckysheetfile$g;
2805
+ var _ctx$dataVerification, _ctx$dataVerification2, _ctx$luckysheetfile$g, _ctx$hooks;
2806
2806
  var range = getRangeByTxt(ctx, (_ctx$dataVerification = ctx.dataVerification) === null || _ctx$dataVerification === void 0 ? void 0 : (_ctx$dataVerification2 = _ctx$dataVerification.dataRegulation) === null || _ctx$dataVerification2 === void 0 ? void 0 : _ctx$dataVerification2.rangeTxt);
2807
2807
  if (range.length === 0) {
2808
2808
  return;
@@ -2833,12 +2833,16 @@ var DataVerification = function DataVerification() {
2833
2833
  }
2834
2834
  }
2835
2835
  }
2836
- ctx.luckysheetfile[getSheetIndex(ctx, ctx.currentSheetId)].dataVerification = currentDataVerification;
2836
+ var sheetIndex = getSheetIndex(ctx, ctx.currentSheetId);
2837
+ ctx.luckysheetfile[sheetIndex].dataVerification = currentDataVerification;
2838
+ if ((_ctx$hooks = ctx.hooks) === null || _ctx$hooks === void 0 ? void 0 : _ctx$hooks.saveDataVerification) {
2839
+ ctx.hooks.saveDataVerification(ctx.currentSheetId, currentDataVerification);
2840
+ }
2837
2841
  }
2838
2842
  });
2839
2843
  } else if (type === "delete") {
2840
2844
  setContext(function (ctx) {
2841
- var _ctx$dataVerification3, _ctx$dataVerification4, _ctx$luckysheetfile$g2;
2845
+ var _ctx$dataVerification3, _ctx$dataVerification4, _ctx$luckysheetfile$g2, _ctx$hooks2;
2842
2846
  var range = getRangeByTxt(ctx, (_ctx$dataVerification3 = ctx.dataVerification) === null || _ctx$dataVerification3 === void 0 ? void 0 : (_ctx$dataVerification4 = _ctx$dataVerification3.dataRegulation) === null || _ctx$dataVerification4 === void 0 ? void 0 : _ctx$dataVerification4.rangeTxt);
2843
2847
  if (range.length === 0) {
2844
2848
  showDialog(generalDialog.noSelectionError, "ok");
@@ -2854,6 +2858,11 @@ var DataVerification = function DataVerification() {
2854
2858
  delete currentDataVerification["".concat(r, "_").concat(c)];
2855
2859
  }
2856
2860
  }
2861
+ var sheetIndex = getSheetIndex(ctx, ctx.currentSheetId);
2862
+ ctx.luckysheetfile[sheetIndex].dataVerification = currentDataVerification;
2863
+ if ((_ctx$hooks2 = ctx.hooks) === null || _ctx$hooks2 === void 0 ? void 0 : _ctx$hooks2.saveDataVerification) {
2864
+ ctx.hooks.saveDataVerification(ctx.currentSheetId, currentDataVerification);
2865
+ }
2857
2866
  });
2858
2867
  }
2859
2868
  hideDialog();
package/dist/index.js CHANGED
@@ -2813,7 +2813,7 @@ var DataVerification = function DataVerification() {
2813
2813
  setContext(function (ctx) {
2814
2814
  var isPass = fortuneCore.confirmMessage(ctx, generalDialog, dataVerification);
2815
2815
  if (isPass) {
2816
- var _ctx$dataVerification, _ctx$dataVerification2, _ctx$luckysheetfile$g;
2816
+ var _ctx$dataVerification, _ctx$dataVerification2, _ctx$luckysheetfile$g, _ctx$hooks;
2817
2817
  var range = fortuneCore.getRangeByTxt(ctx, (_ctx$dataVerification = ctx.dataVerification) === null || _ctx$dataVerification === void 0 ? void 0 : (_ctx$dataVerification2 = _ctx$dataVerification.dataRegulation) === null || _ctx$dataVerification2 === void 0 ? void 0 : _ctx$dataVerification2.rangeTxt);
2818
2818
  if (range.length === 0) {
2819
2819
  return;
@@ -2844,12 +2844,16 @@ var DataVerification = function DataVerification() {
2844
2844
  }
2845
2845
  }
2846
2846
  }
2847
- ctx.luckysheetfile[fortuneCore.getSheetIndex(ctx, ctx.currentSheetId)].dataVerification = currentDataVerification;
2847
+ var sheetIndex = fortuneCore.getSheetIndex(ctx, ctx.currentSheetId);
2848
+ ctx.luckysheetfile[sheetIndex].dataVerification = currentDataVerification;
2849
+ if ((_ctx$hooks = ctx.hooks) === null || _ctx$hooks === void 0 ? void 0 : _ctx$hooks.saveDataVerification) {
2850
+ ctx.hooks.saveDataVerification(ctx.currentSheetId, currentDataVerification);
2851
+ }
2848
2852
  }
2849
2853
  });
2850
2854
  } else if (type === "delete") {
2851
2855
  setContext(function (ctx) {
2852
- var _ctx$dataVerification3, _ctx$dataVerification4, _ctx$luckysheetfile$g2;
2856
+ var _ctx$dataVerification3, _ctx$dataVerification4, _ctx$luckysheetfile$g2, _ctx$hooks2;
2853
2857
  var range = fortuneCore.getRangeByTxt(ctx, (_ctx$dataVerification3 = ctx.dataVerification) === null || _ctx$dataVerification3 === void 0 ? void 0 : (_ctx$dataVerification4 = _ctx$dataVerification3.dataRegulation) === null || _ctx$dataVerification4 === void 0 ? void 0 : _ctx$dataVerification4.rangeTxt);
2854
2858
  if (range.length === 0) {
2855
2859
  showDialog(generalDialog.noSelectionError, "ok");
@@ -2865,6 +2869,11 @@ var DataVerification = function DataVerification() {
2865
2869
  delete currentDataVerification["".concat(r, "_").concat(c)];
2866
2870
  }
2867
2871
  }
2872
+ var sheetIndex = fortuneCore.getSheetIndex(ctx, ctx.currentSheetId);
2873
+ ctx.luckysheetfile[sheetIndex].dataVerification = currentDataVerification;
2874
+ if ((_ctx$hooks2 = ctx.hooks) === null || _ctx$hooks2 === void 0 ? void 0 : _ctx$hooks2.saveDataVerification) {
2875
+ ctx.hooks.saveDataVerification(ctx.currentSheetId, currentDataVerification);
2876
+ }
2868
2877
  });
2869
2878
  }
2870
2879
  hideDialog();
package/dist/index.umd.js CHANGED
@@ -107184,7 +107184,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
107184
107184
  setContext(function (ctx) {
107185
107185
  var isPass = confirmMessage(ctx, generalDialog, dataVerification);
107186
107186
  if (isPass) {
107187
- var _ctx$dataVerification, _ctx$dataVerification2, _ctx$luckysheetfile$g;
107187
+ var _ctx$dataVerification, _ctx$dataVerification2, _ctx$luckysheetfile$g, _ctx$hooks;
107188
107188
  var range = getRangeByTxt(ctx, (_ctx$dataVerification = ctx.dataVerification) === null || _ctx$dataVerification === void 0 ? void 0 : (_ctx$dataVerification2 = _ctx$dataVerification.dataRegulation) === null || _ctx$dataVerification2 === void 0 ? void 0 : _ctx$dataVerification2.rangeTxt);
107189
107189
  if (range.length === 0) {
107190
107190
  return;
@@ -107215,12 +107215,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
107215
107215
  }
107216
107216
  }
107217
107217
  }
107218
- ctx.luckysheetfile[getSheetIndex(ctx, ctx.currentSheetId)].dataVerification = currentDataVerification;
107218
+ var sheetIndex = getSheetIndex(ctx, ctx.currentSheetId);
107219
+ ctx.luckysheetfile[sheetIndex].dataVerification = currentDataVerification;
107220
+ if ((_ctx$hooks = ctx.hooks) === null || _ctx$hooks === void 0 ? void 0 : _ctx$hooks.saveDataVerification) {
107221
+ ctx.hooks.saveDataVerification(ctx.currentSheetId, currentDataVerification);
107222
+ }
107219
107223
  }
107220
107224
  });
107221
107225
  } else if (type === "delete") {
107222
107226
  setContext(function (ctx) {
107223
- var _ctx$dataVerification3, _ctx$dataVerification4, _ctx$luckysheetfile$g2;
107227
+ var _ctx$dataVerification3, _ctx$dataVerification4, _ctx$luckysheetfile$g2, _ctx$hooks2;
107224
107228
  var range = getRangeByTxt(ctx, (_ctx$dataVerification3 = ctx.dataVerification) === null || _ctx$dataVerification3 === void 0 ? void 0 : (_ctx$dataVerification4 = _ctx$dataVerification3.dataRegulation) === null || _ctx$dataVerification4 === void 0 ? void 0 : _ctx$dataVerification4.rangeTxt);
107225
107229
  if (range.length === 0) {
107226
107230
  showDialog(generalDialog.noSelectionError, "ok");
@@ -107236,6 +107240,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
107236
107240
  delete currentDataVerification["".concat(r, "_").concat(c)];
107237
107241
  }
107238
107242
  }
107243
+ var sheetIndex = getSheetIndex(ctx, ctx.currentSheetId);
107244
+ ctx.luckysheetfile[sheetIndex].dataVerification = currentDataVerification;
107245
+ if ((_ctx$hooks2 = ctx.hooks) === null || _ctx$hooks2 === void 0 ? void 0 : _ctx$hooks2.saveDataVerification) {
107246
+ ctx.hooks.saveDataVerification(ctx.currentSheetId, currentDataVerification);
107247
+ }
107239
107248
  });
107240
107249
  }
107241
107250
  hideDialog();