@fileverse-dev/fortune-react 1.0.2-mod-77 → 1.0.2-mod-79
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 +3 -12
- package/dist/index.js +3 -12
- package/dist/index.umd.js +1029 -132
- package/dist/index.umd.min.js +8 -8
- package/package.json +2 -2
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;
|
|
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,16 +2833,12 @@ var DataVerification = function DataVerification() {
|
|
|
2833
2833
|
}
|
|
2834
2834
|
}
|
|
2835
2835
|
}
|
|
2836
|
-
|
|
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
|
-
}
|
|
2836
|
+
ctx.luckysheetfile[getSheetIndex(ctx, ctx.currentSheetId)].dataVerification = currentDataVerification;
|
|
2841
2837
|
}
|
|
2842
2838
|
});
|
|
2843
2839
|
} else if (type === "delete") {
|
|
2844
2840
|
setContext(function (ctx) {
|
|
2845
|
-
var _ctx$dataVerification3, _ctx$dataVerification4, _ctx$luckysheetfile$g2
|
|
2841
|
+
var _ctx$dataVerification3, _ctx$dataVerification4, _ctx$luckysheetfile$g2;
|
|
2846
2842
|
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);
|
|
2847
2843
|
if (range.length === 0) {
|
|
2848
2844
|
showDialog(generalDialog.noSelectionError, "ok");
|
|
@@ -2858,11 +2854,6 @@ var DataVerification = function DataVerification() {
|
|
|
2858
2854
|
delete currentDataVerification["".concat(r, "_").concat(c)];
|
|
2859
2855
|
}
|
|
2860
2856
|
}
|
|
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
|
-
}
|
|
2866
2857
|
});
|
|
2867
2858
|
}
|
|
2868
2859
|
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;
|
|
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,16 +2844,12 @@ var DataVerification = function DataVerification() {
|
|
|
2844
2844
|
}
|
|
2845
2845
|
}
|
|
2846
2846
|
}
|
|
2847
|
-
|
|
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
|
-
}
|
|
2847
|
+
ctx.luckysheetfile[fortuneCore.getSheetIndex(ctx, ctx.currentSheetId)].dataVerification = currentDataVerification;
|
|
2852
2848
|
}
|
|
2853
2849
|
});
|
|
2854
2850
|
} else if (type === "delete") {
|
|
2855
2851
|
setContext(function (ctx) {
|
|
2856
|
-
var _ctx$dataVerification3, _ctx$dataVerification4, _ctx$luckysheetfile$g2
|
|
2852
|
+
var _ctx$dataVerification3, _ctx$dataVerification4, _ctx$luckysheetfile$g2;
|
|
2857
2853
|
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);
|
|
2858
2854
|
if (range.length === 0) {
|
|
2859
2855
|
showDialog(generalDialog.noSelectionError, "ok");
|
|
@@ -2869,11 +2865,6 @@ var DataVerification = function DataVerification() {
|
|
|
2869
2865
|
delete currentDataVerification["".concat(r, "_").concat(c)];
|
|
2870
2866
|
}
|
|
2871
2867
|
}
|
|
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
|
-
}
|
|
2877
2868
|
});
|
|
2878
2869
|
}
|
|
2879
2870
|
hideDialog();
|