@fileverse-dev/fortune-react 1.0.2-mod-99 → 1.0.2-mod-100
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 +1 -8
- package/dist/index.js +1 -8
- package/dist/index.umd.js +433 -87
- package/dist/index.umd.min.js +7 -7
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -1555,18 +1555,11 @@ var InputBox = function InputBox() {
|
|
|
1555
1555
|
e.preventDefault();
|
|
1556
1556
|
}
|
|
1557
1557
|
}, [clearSearchItemActiveClass, context.luckysheetCellUpdate.length, selectActiveFormula, setContext, firstSelection]);
|
|
1558
|
-
var _useState3 = useState(false),
|
|
1559
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
1560
|
-
showCrypoModal = _useState4[0],
|
|
1561
|
-
setShowCryptoModal = _useState4[1];
|
|
1562
1558
|
var onChange = useCallback(function (__, isBlur) {
|
|
1563
1559
|
var e = lastKeyDownEventRef.current;
|
|
1564
1560
|
if (!e) return;
|
|
1565
1561
|
var kcode = e.keyCode;
|
|
1566
1562
|
if (!kcode) return;
|
|
1567
|
-
if (!document.getElementById("luckysheet-formula-search-c")) {
|
|
1568
|
-
setShowCryptoModal(!document.getElementById("luckysheet-formula-search-c"));
|
|
1569
|
-
}
|
|
1570
1563
|
if (!(kcode >= 112 && kcode <= 123 || kcode <= 46 || kcode === 144 || kcode === 108 || e.ctrlKey || e.altKey || e.shiftKey && (kcode === 37 || kcode === 38 || kcode === 39 || kcode === 40)) || kcode === 8 || kcode === 32 || kcode === 46 || e.ctrlKey && kcode === 86) {
|
|
1571
1564
|
setContext(function (draftCtx) {
|
|
1572
1565
|
if ((draftCtx.formulaCache.rangestart || draftCtx.formulaCache.rangedrag_column_start || draftCtx.formulaCache.rangedrag_row_start || israngeseleciton(draftCtx)) && isBlur) return;
|
|
@@ -1628,7 +1621,7 @@ var InputBox = function InputBox() {
|
|
|
1628
1621
|
onKeyDown: onKeyDown,
|
|
1629
1622
|
onPaste: onPaste,
|
|
1630
1623
|
allowEdit: edit ? !isHidenRC : edit
|
|
1631
|
-
})), (context.functionCandidates.length > 0 || context.functionHint || context.defaultCandidates.length > 0) &&
|
|
1624
|
+
})), (context.functionCandidates.length > 0 || context.functionHint || context.defaultCandidates.length > 0) && (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FormulaSearch, {
|
|
1632
1625
|
onMouseOver: function onMouseOver(e) {
|
|
1633
1626
|
if (document.getElementById("luckysheet-formula-search-c")) {
|
|
1634
1627
|
var hoveredItem = e.target.closest(".luckysheet-formula-search-item");
|
package/dist/index.js
CHANGED
|
@@ -1565,18 +1565,11 @@ var InputBox = function InputBox() {
|
|
|
1565
1565
|
e.preventDefault();
|
|
1566
1566
|
}
|
|
1567
1567
|
}, [clearSearchItemActiveClass, context.luckysheetCellUpdate.length, selectActiveFormula, setContext, firstSelection]);
|
|
1568
|
-
var _useState3 = React.useState(false),
|
|
1569
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
1570
|
-
showCrypoModal = _useState4[0],
|
|
1571
|
-
setShowCryptoModal = _useState4[1];
|
|
1572
1568
|
var onChange = React.useCallback(function (__, isBlur) {
|
|
1573
1569
|
var e = lastKeyDownEventRef.current;
|
|
1574
1570
|
if (!e) return;
|
|
1575
1571
|
var kcode = e.keyCode;
|
|
1576
1572
|
if (!kcode) return;
|
|
1577
|
-
if (!document.getElementById("luckysheet-formula-search-c")) {
|
|
1578
|
-
setShowCryptoModal(!document.getElementById("luckysheet-formula-search-c"));
|
|
1579
|
-
}
|
|
1580
1573
|
if (!(kcode >= 112 && kcode <= 123 || kcode <= 46 || kcode === 144 || kcode === 108 || e.ctrlKey || e.altKey || e.shiftKey && (kcode === 37 || kcode === 38 || kcode === 39 || kcode === 40)) || kcode === 8 || kcode === 32 || kcode === 46 || e.ctrlKey && kcode === 86) {
|
|
1581
1574
|
setContext(function (draftCtx) {
|
|
1582
1575
|
if ((draftCtx.formulaCache.rangestart || draftCtx.formulaCache.rangedrag_column_start || draftCtx.formulaCache.rangedrag_row_start || fortuneCore.israngeseleciton(draftCtx)) && isBlur) return;
|
|
@@ -1638,7 +1631,7 @@ var InputBox = function InputBox() {
|
|
|
1638
1631
|
onKeyDown: onKeyDown,
|
|
1639
1632
|
onPaste: onPaste,
|
|
1640
1633
|
allowEdit: edit ? !isHidenRC : edit
|
|
1641
|
-
})), (context.functionCandidates.length > 0 || context.functionHint || context.defaultCandidates.length > 0) &&
|
|
1634
|
+
})), (context.functionCandidates.length > 0 || context.functionHint || context.defaultCandidates.length > 0) && (/*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(FormulaSearch, {
|
|
1642
1635
|
onMouseOver: function onMouseOver(e) {
|
|
1643
1636
|
if (document.getElementById("luckysheet-formula-search-c")) {
|
|
1644
1637
|
var hoveredItem = e.target.closest(".luckysheet-formula-search-item");
|