@fileverse-dev/fortune-react 1.2.21 → 1.2.22-patch-2
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.
|
@@ -31,6 +31,22 @@ var NotationBoxes = function NotationBoxes() {
|
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
33
|
}, [flowdata, setContext]);
|
|
34
|
+
var handleMouseDownEvent = function handleMouseDownEvent(r, c, rc, commentId) {
|
|
35
|
+
return function (e) {
|
|
36
|
+
var nativeEvent = e.nativeEvent;
|
|
37
|
+
setContext(function (draftContext) {
|
|
38
|
+
if (flowdata) {
|
|
39
|
+
setEditingComment(draftContext, flowdata, r, c);
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
onCommentBoxMoveStart(context, refs.globalCache, nativeEvent, {
|
|
43
|
+
r: r,
|
|
44
|
+
c: c,
|
|
45
|
+
rc: rc
|
|
46
|
+
}, commentId);
|
|
47
|
+
e.stopPropagation();
|
|
48
|
+
};
|
|
49
|
+
};
|
|
34
50
|
return /*#__PURE__*/React.createElement("div", {
|
|
35
51
|
id: "luckysheet-postil-showBoxs"
|
|
36
52
|
}, _.concat((_a = context.commentBoxes) === null || _a === void 0 ? void 0 : _a.filter(function (v) {
|
|
@@ -90,7 +106,7 @@ var NotationBoxes = function NotationBoxes() {
|
|
|
90
106
|
height: "100%",
|
|
91
107
|
overflow: "hidden"
|
|
92
108
|
}
|
|
93
|
-
}, (_b = settings.getCommentCellUI) === null || _b === void 0 ? void 0 : _b.call(settings, r, c))));
|
|
109
|
+
}, (_b = settings.getCommentCellUI) === null || _b === void 0 ? void 0 : _b.call(settings, r, c, handleMouseDownEvent(r, c, rc, commentId)))));
|
|
94
110
|
}));
|
|
95
111
|
};
|
|
96
112
|
export default NotationBoxes;
|
|
@@ -1654,6 +1654,13 @@ var Toolbar = function Toolbar(_a) {
|
|
|
1654
1654
|
}));
|
|
1655
1655
|
});
|
|
1656
1656
|
}
|
|
1657
|
+
if (name === "currency") {
|
|
1658
|
+
return /*#__PURE__*/React.createElement(CurrencySelector, {
|
|
1659
|
+
cell: cell,
|
|
1660
|
+
defaultTextFormat: defaultFormat[0].text,
|
|
1661
|
+
toolTipText: toolbar["currency-format"]
|
|
1662
|
+
});
|
|
1663
|
+
}
|
|
1657
1664
|
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
1658
1665
|
text: tooltip,
|
|
1659
1666
|
placement: "bottom"
|
|
@@ -40,6 +40,22 @@ var NotationBoxes = function NotationBoxes() {
|
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
}, [flowdata, setContext]);
|
|
43
|
+
var handleMouseDownEvent = function handleMouseDownEvent(r, c, rc, commentId) {
|
|
44
|
+
return function (e) {
|
|
45
|
+
var nativeEvent = e.nativeEvent;
|
|
46
|
+
setContext(function (draftContext) {
|
|
47
|
+
if (flowdata) {
|
|
48
|
+
(0, _fortuneCore.setEditingComment)(draftContext, flowdata, r, c);
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
(0, _fortuneCore.onCommentBoxMoveStart)(context, refs.globalCache, nativeEvent, {
|
|
52
|
+
r: r,
|
|
53
|
+
c: c,
|
|
54
|
+
rc: rc
|
|
55
|
+
}, commentId);
|
|
56
|
+
e.stopPropagation();
|
|
57
|
+
};
|
|
58
|
+
};
|
|
43
59
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
44
60
|
id: "luckysheet-postil-showBoxs"
|
|
45
61
|
}, _lodash.default.concat((_a = context.commentBoxes) === null || _a === void 0 ? void 0 : _a.filter(function (v) {
|
|
@@ -99,7 +115,7 @@ var NotationBoxes = function NotationBoxes() {
|
|
|
99
115
|
height: "100%",
|
|
100
116
|
overflow: "hidden"
|
|
101
117
|
}
|
|
102
|
-
}, (_b = settings.getCommentCellUI) === null || _b === void 0 ? void 0 : _b.call(settings, r, c))));
|
|
118
|
+
}, (_b = settings.getCommentCellUI) === null || _b === void 0 ? void 0 : _b.call(settings, r, c, handleMouseDownEvent(r, c, rc, commentId)))));
|
|
103
119
|
}));
|
|
104
120
|
};
|
|
105
121
|
var _default = exports.default = NotationBoxes;
|
|
@@ -1663,6 +1663,13 @@ var Toolbar = function Toolbar(_a) {
|
|
|
1663
1663
|
}));
|
|
1664
1664
|
});
|
|
1665
1665
|
}
|
|
1666
|
+
if (name === "currency") {
|
|
1667
|
+
return /*#__PURE__*/_react.default.createElement(CurrencySelector, {
|
|
1668
|
+
cell: cell,
|
|
1669
|
+
defaultTextFormat: defaultFormat[0].text,
|
|
1670
|
+
toolTipText: toolbar["currency-format"]
|
|
1671
|
+
});
|
|
1672
|
+
}
|
|
1666
1673
|
return /*#__PURE__*/_react.default.createElement(_ui.Tooltip, {
|
|
1667
1674
|
text: tooltip,
|
|
1668
1675
|
placement: "bottom"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fileverse-dev/fortune-react",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.22-patch-2",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"types": "lib/index.d.ts",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"tsc": "tsc"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@fileverse-dev/fortune-core": "1.2.
|
|
19
|
+
"@fileverse-dev/fortune-core": "1.2.22-patch-2",
|
|
20
20
|
"@fileverse/ui": "^4.1.7-patch-40",
|
|
21
21
|
"@tippyjs/react": "^4.2.6",
|
|
22
22
|
"@types/regenerator-runtime": "^0.13.6",
|