@leankylin-sheet/react 7.0.6 → 7.0.8
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 +61 -34
- package/dist/index.js +61 -34
- package/dist/index.umd.js +61 -34
- package/dist/index.umd.min.js +1 -1
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -2410,7 +2410,7 @@ var LinkEditCard = function LinkEditCard(_ref) {
|
|
|
2410
2410
|
setLinkType(originType);
|
|
2411
2411
|
var origin = getCellHyperlink(context, r, c);
|
|
2412
2412
|
setCustomPayload((_origin$payload2 = origin === null || origin === void 0 ? void 0 : origin.payload) !== null && _origin$payload2 !== void 0 ? _origin$payload2 : {});
|
|
2413
|
-
}, [rc, originAddress, originText, originType, r, c
|
|
2413
|
+
}, [rc, originAddress, originText, originType, r, c]);
|
|
2414
2414
|
useLayoutEffect(function () {
|
|
2415
2415
|
if (selectingCellRange) {
|
|
2416
2416
|
skipCellRangeSet.current = true;
|
|
@@ -2561,7 +2561,9 @@ var LinkEditCard = function LinkEditCard(_ref) {
|
|
|
2561
2561
|
} else {
|
|
2562
2562
|
setLinkAddress("");
|
|
2563
2563
|
}
|
|
2564
|
-
if (next === "cellrange")
|
|
2564
|
+
if (next === "cellrange") {
|
|
2565
|
+
setRangeModalVisible(true);
|
|
2566
|
+
}
|
|
2565
2567
|
setLinkType(next);
|
|
2566
2568
|
}
|
|
2567
2569
|
}, mergedLinkTypeList.map(function (type) {
|
|
@@ -2639,38 +2641,63 @@ var LinkEditCard = function LinkEditCard(_ref) {
|
|
|
2639
2641
|
}
|
|
2640
2642
|
})), tooltip))), /*#__PURE__*/React.createElement("div", {
|
|
2641
2643
|
className: "modal-footer"
|
|
2642
|
-
}, renderBottomButton(function () {
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2644
|
+
}, renderBottomButton( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
2645
|
+
var origin, saved;
|
|
2646
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2647
|
+
while (1) switch (_context.prev = _context.next) {
|
|
2648
|
+
case 0:
|
|
2649
|
+
if (!(!canSubmit && !(currentCustomConfig === null || currentCustomConfig === void 0 ? void 0 : currentCustomConfig.onSave))) {
|
|
2650
|
+
_context.next = 2;
|
|
2651
|
+
break;
|
|
2652
|
+
}
|
|
2653
|
+
return _context.abrupt("return");
|
|
2654
|
+
case 2:
|
|
2655
|
+
_.set(refs.globalCache, "linkCard.mouseEnter", false);
|
|
2656
|
+
if (!(currentCustomConfig === null || currentCustomConfig === void 0 ? void 0 : currentCustomConfig.onSave)) {
|
|
2657
|
+
_context.next = 12;
|
|
2658
|
+
break;
|
|
2659
|
+
}
|
|
2660
|
+
origin = function () {
|
|
2661
|
+
var o = getCellHyperlink(context, r, c);
|
|
2662
|
+
return o ? {
|
|
2663
|
+
linkType: o.linkType,
|
|
2664
|
+
linkAddress: o.linkAddress,
|
|
2665
|
+
payload: o.payload
|
|
2666
|
+
} : undefined;
|
|
2667
|
+
}();
|
|
2668
|
+
_context.next = 7;
|
|
2669
|
+
return currentCustomConfig.onSave({
|
|
2670
|
+
linkText: linkText,
|
|
2671
|
+
linkAddress: linkAddress,
|
|
2672
|
+
position: {
|
|
2673
|
+
r: r,
|
|
2674
|
+
c: c
|
|
2675
|
+
},
|
|
2676
|
+
origin: origin
|
|
2677
|
+
});
|
|
2678
|
+
case 7:
|
|
2679
|
+
saved = _context.sent;
|
|
2680
|
+
if (saved) {
|
|
2681
|
+
_context.next = 10;
|
|
2682
|
+
break;
|
|
2683
|
+
}
|
|
2684
|
+
return _context.abrupt("return");
|
|
2685
|
+
case 10:
|
|
2686
|
+
setContext(function (draftCtx) {
|
|
2687
|
+
var _saved$payload;
|
|
2688
|
+
return saveHyperlink(draftCtx, r, c, linkText || saved.linkAddress, saved.linkType, saved.linkAddress, _objectSpread2(_objectSpread2({}, customPayload), (_saved$payload = saved.payload) !== null && _saved$payload !== void 0 ? _saved$payload : {}));
|
|
2689
|
+
});
|
|
2690
|
+
return _context.abrupt("return");
|
|
2691
|
+
case 12:
|
|
2692
|
+
setContext(function (draftCtx) {
|
|
2693
|
+
return saveHyperlink(draftCtx, r, c, linkText, linkType, linkAddress);
|
|
2694
|
+
});
|
|
2695
|
+
case 13:
|
|
2696
|
+
case "end":
|
|
2697
|
+
return _context.stop();
|
|
2698
|
+
}
|
|
2699
|
+
}, _callee);
|
|
2700
|
+
})), hideLinkCard))));
|
|
2674
2701
|
};
|
|
2675
2702
|
|
|
2676
2703
|
var FilterOptions = function FilterOptions(_ref) {
|
package/dist/index.js
CHANGED
|
@@ -2420,7 +2420,7 @@ var LinkEditCard = function LinkEditCard(_ref) {
|
|
|
2420
2420
|
setLinkType(originType);
|
|
2421
2421
|
var origin = core.getCellHyperlink(context, r, c);
|
|
2422
2422
|
setCustomPayload((_origin$payload2 = origin === null || origin === void 0 ? void 0 : origin.payload) !== null && _origin$payload2 !== void 0 ? _origin$payload2 : {});
|
|
2423
|
-
}, [rc, originAddress, originText, originType, r, c
|
|
2423
|
+
}, [rc, originAddress, originText, originType, r, c]);
|
|
2424
2424
|
React.useLayoutEffect(function () {
|
|
2425
2425
|
if (selectingCellRange) {
|
|
2426
2426
|
skipCellRangeSet.current = true;
|
|
@@ -2571,7 +2571,9 @@ var LinkEditCard = function LinkEditCard(_ref) {
|
|
|
2571
2571
|
} else {
|
|
2572
2572
|
setLinkAddress("");
|
|
2573
2573
|
}
|
|
2574
|
-
if (next === "cellrange")
|
|
2574
|
+
if (next === "cellrange") {
|
|
2575
|
+
setRangeModalVisible(true);
|
|
2576
|
+
}
|
|
2575
2577
|
setLinkType(next);
|
|
2576
2578
|
}
|
|
2577
2579
|
}, mergedLinkTypeList.map(function (type) {
|
|
@@ -2649,38 +2651,63 @@ var LinkEditCard = function LinkEditCard(_ref) {
|
|
|
2649
2651
|
}
|
|
2650
2652
|
})), tooltip))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
2651
2653
|
className: "modal-footer"
|
|
2652
|
-
}, renderBottomButton(function () {
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2654
|
+
}, renderBottomButton( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
2655
|
+
var origin, saved;
|
|
2656
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2657
|
+
while (1) switch (_context.prev = _context.next) {
|
|
2658
|
+
case 0:
|
|
2659
|
+
if (!(!canSubmit && !(currentCustomConfig === null || currentCustomConfig === void 0 ? void 0 : currentCustomConfig.onSave))) {
|
|
2660
|
+
_context.next = 2;
|
|
2661
|
+
break;
|
|
2662
|
+
}
|
|
2663
|
+
return _context.abrupt("return");
|
|
2664
|
+
case 2:
|
|
2665
|
+
___default['default'].set(refs.globalCache, "linkCard.mouseEnter", false);
|
|
2666
|
+
if (!(currentCustomConfig === null || currentCustomConfig === void 0 ? void 0 : currentCustomConfig.onSave)) {
|
|
2667
|
+
_context.next = 12;
|
|
2668
|
+
break;
|
|
2669
|
+
}
|
|
2670
|
+
origin = function () {
|
|
2671
|
+
var o = core.getCellHyperlink(context, r, c);
|
|
2672
|
+
return o ? {
|
|
2673
|
+
linkType: o.linkType,
|
|
2674
|
+
linkAddress: o.linkAddress,
|
|
2675
|
+
payload: o.payload
|
|
2676
|
+
} : undefined;
|
|
2677
|
+
}();
|
|
2678
|
+
_context.next = 7;
|
|
2679
|
+
return currentCustomConfig.onSave({
|
|
2680
|
+
linkText: linkText,
|
|
2681
|
+
linkAddress: linkAddress,
|
|
2682
|
+
position: {
|
|
2683
|
+
r: r,
|
|
2684
|
+
c: c
|
|
2685
|
+
},
|
|
2686
|
+
origin: origin
|
|
2687
|
+
});
|
|
2688
|
+
case 7:
|
|
2689
|
+
saved = _context.sent;
|
|
2690
|
+
if (saved) {
|
|
2691
|
+
_context.next = 10;
|
|
2692
|
+
break;
|
|
2693
|
+
}
|
|
2694
|
+
return _context.abrupt("return");
|
|
2695
|
+
case 10:
|
|
2696
|
+
setContext(function (draftCtx) {
|
|
2697
|
+
var _saved$payload;
|
|
2698
|
+
return core.saveHyperlink(draftCtx, r, c, linkText || saved.linkAddress, saved.linkType, saved.linkAddress, _objectSpread2(_objectSpread2({}, customPayload), (_saved$payload = saved.payload) !== null && _saved$payload !== void 0 ? _saved$payload : {}));
|
|
2699
|
+
});
|
|
2700
|
+
return _context.abrupt("return");
|
|
2701
|
+
case 12:
|
|
2702
|
+
setContext(function (draftCtx) {
|
|
2703
|
+
return core.saveHyperlink(draftCtx, r, c, linkText, linkType, linkAddress);
|
|
2704
|
+
});
|
|
2705
|
+
case 13:
|
|
2706
|
+
case "end":
|
|
2707
|
+
return _context.stop();
|
|
2708
|
+
}
|
|
2709
|
+
}, _callee);
|
|
2710
|
+
})), hideLinkCard))));
|
|
2684
2711
|
};
|
|
2685
2712
|
|
|
2686
2713
|
var FilterOptions = function FilterOptions(_ref) {
|
package/dist/index.umd.js
CHANGED
|
@@ -21494,7 +21494,7 @@
|
|
|
21494
21494
|
setLinkType(originType);
|
|
21495
21495
|
var origin = core.getCellHyperlink(context, r, c);
|
|
21496
21496
|
setCustomPayload((_origin$payload2 = origin === null || origin === void 0 ? void 0 : origin.payload) !== null && _origin$payload2 !== void 0 ? _origin$payload2 : {});
|
|
21497
|
-
}, [rc, originAddress, originText, originType, r, c
|
|
21497
|
+
}, [rc, originAddress, originText, originType, r, c]);
|
|
21498
21498
|
React.useLayoutEffect(function () {
|
|
21499
21499
|
if (selectingCellRange) {
|
|
21500
21500
|
skipCellRangeSet.current = true;
|
|
@@ -21645,7 +21645,9 @@
|
|
|
21645
21645
|
} else {
|
|
21646
21646
|
setLinkAddress("");
|
|
21647
21647
|
}
|
|
21648
|
-
if (next === "cellrange")
|
|
21648
|
+
if (next === "cellrange") {
|
|
21649
|
+
setRangeModalVisible(true);
|
|
21650
|
+
}
|
|
21649
21651
|
setLinkType(next);
|
|
21650
21652
|
}
|
|
21651
21653
|
}, mergedLinkTypeList.map(function (type) {
|
|
@@ -21723,38 +21725,63 @@
|
|
|
21723
21725
|
}
|
|
21724
21726
|
})), tooltip))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
21725
21727
|
className: "modal-footer"
|
|
21726
|
-
}, renderBottomButton(function () {
|
|
21727
|
-
|
|
21728
|
-
|
|
21729
|
-
|
|
21730
|
-
|
|
21731
|
-
|
|
21732
|
-
|
|
21733
|
-
|
|
21734
|
-
|
|
21735
|
-
|
|
21736
|
-
|
|
21737
|
-
|
|
21738
|
-
|
|
21739
|
-
|
|
21740
|
-
|
|
21741
|
-
|
|
21742
|
-
|
|
21743
|
-
|
|
21744
|
-
|
|
21745
|
-
|
|
21746
|
-
|
|
21747
|
-
|
|
21748
|
-
|
|
21749
|
-
|
|
21750
|
-
|
|
21751
|
-
|
|
21752
|
-
|
|
21753
|
-
|
|
21754
|
-
|
|
21755
|
-
|
|
21756
|
-
|
|
21757
|
-
|
|
21728
|
+
}, renderBottomButton( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
21729
|
+
var origin, saved;
|
|
21730
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
21731
|
+
while (1) switch (_context.prev = _context.next) {
|
|
21732
|
+
case 0:
|
|
21733
|
+
if (!(!canSubmit && !(currentCustomConfig === null || currentCustomConfig === void 0 ? void 0 : currentCustomConfig.onSave))) {
|
|
21734
|
+
_context.next = 2;
|
|
21735
|
+
break;
|
|
21736
|
+
}
|
|
21737
|
+
return _context.abrupt("return");
|
|
21738
|
+
case 2:
|
|
21739
|
+
lodash.set(refs.globalCache, "linkCard.mouseEnter", false);
|
|
21740
|
+
if (!(currentCustomConfig === null || currentCustomConfig === void 0 ? void 0 : currentCustomConfig.onSave)) {
|
|
21741
|
+
_context.next = 12;
|
|
21742
|
+
break;
|
|
21743
|
+
}
|
|
21744
|
+
origin = function () {
|
|
21745
|
+
var o = core.getCellHyperlink(context, r, c);
|
|
21746
|
+
return o ? {
|
|
21747
|
+
linkType: o.linkType,
|
|
21748
|
+
linkAddress: o.linkAddress,
|
|
21749
|
+
payload: o.payload
|
|
21750
|
+
} : undefined;
|
|
21751
|
+
}();
|
|
21752
|
+
_context.next = 7;
|
|
21753
|
+
return currentCustomConfig.onSave({
|
|
21754
|
+
linkText: linkText,
|
|
21755
|
+
linkAddress: linkAddress,
|
|
21756
|
+
position: {
|
|
21757
|
+
r: r,
|
|
21758
|
+
c: c
|
|
21759
|
+
},
|
|
21760
|
+
origin: origin
|
|
21761
|
+
});
|
|
21762
|
+
case 7:
|
|
21763
|
+
saved = _context.sent;
|
|
21764
|
+
if (saved) {
|
|
21765
|
+
_context.next = 10;
|
|
21766
|
+
break;
|
|
21767
|
+
}
|
|
21768
|
+
return _context.abrupt("return");
|
|
21769
|
+
case 10:
|
|
21770
|
+
setContext(function (draftCtx) {
|
|
21771
|
+
var _saved$payload;
|
|
21772
|
+
return core.saveHyperlink(draftCtx, r, c, linkText || saved.linkAddress, saved.linkType, saved.linkAddress, _objectSpread2(_objectSpread2({}, customPayload), (_saved$payload = saved.payload) !== null && _saved$payload !== void 0 ? _saved$payload : {}));
|
|
21773
|
+
});
|
|
21774
|
+
return _context.abrupt("return");
|
|
21775
|
+
case 12:
|
|
21776
|
+
setContext(function (draftCtx) {
|
|
21777
|
+
return core.saveHyperlink(draftCtx, r, c, linkText, linkType, linkAddress);
|
|
21778
|
+
});
|
|
21779
|
+
case 13:
|
|
21780
|
+
case "end":
|
|
21781
|
+
return _context.stop();
|
|
21782
|
+
}
|
|
21783
|
+
}, _callee);
|
|
21784
|
+
})), hideLinkCard))));
|
|
21758
21785
|
};
|
|
21759
21786
|
|
|
21760
21787
|
var FilterOptions = function FilterOptions(_ref) {
|