@fileverse-dev/fortune-react 1.2.12 → 1.2.14
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/es/components/DataVerification/DropdownList.js +3 -0
- package/es/components/DataVerification/index.js +7 -0
- package/es/components/SheetOverlay/FormulaSearch/index.js +6 -5
- package/lib/components/DataVerification/DropdownList.js +3 -0
- package/lib/components/DataVerification/index.js +7 -0
- package/lib/components/SheetOverlay/FormulaSearch/index.js +6 -5
- package/package.json +2 -2
|
@@ -161,6 +161,9 @@ var DropDownList = function DropDownList() {
|
|
|
161
161
|
onClick: function onClick() {
|
|
162
162
|
var _a;
|
|
163
163
|
(_a = window === null || window === void 0 ? void 0 : window.dataVerificationClick) === null || _a === void 0 ? void 0 : _a.call(window);
|
|
164
|
+
setContext(function (ctx) {
|
|
165
|
+
ctx.dataVerificationDropDownList = false;
|
|
166
|
+
});
|
|
164
167
|
}
|
|
165
168
|
}, /*#__PURE__*/React.createElement(IconButton, {
|
|
166
169
|
icon: "Pencil",
|
|
@@ -328,6 +328,13 @@ var DataVerification = function DataVerification() {
|
|
|
328
328
|
}, /*#__PURE__*/React.createElement("span", {
|
|
329
329
|
className: "data-verification-checkbox-label"
|
|
330
330
|
}, dataVerification.notSelected), /*#__PURE__*/React.createElement(TextField, {
|
|
331
|
+
onMouseDown: function onMouseDown(e) {
|
|
332
|
+
e.stopPropagation();
|
|
333
|
+
e.target.focus();
|
|
334
|
+
},
|
|
335
|
+
onKeyDown: function onKeyDown(e) {
|
|
336
|
+
e.stopPropagation();
|
|
337
|
+
},
|
|
331
338
|
value: (_j = (_h = context.dataVerification) === null || _h === void 0 ? void 0 : _h.dataRegulation) === null || _j === void 0 ? void 0 : _j.value2,
|
|
332
339
|
placeholder: dataVerification.placeholder2,
|
|
333
340
|
onChange: function onChange(e) {
|
|
@@ -16,8 +16,9 @@ import WorkbookContext from "../../../context";
|
|
|
16
16
|
import "./index.css";
|
|
17
17
|
var FormulaSearch = function FormulaSearch(props) {
|
|
18
18
|
var _a;
|
|
19
|
-
var
|
|
20
|
-
|
|
19
|
+
var _b = useContext(WorkbookContext),
|
|
20
|
+
context = _b.context,
|
|
21
|
+
isAuthorized = _b.settings.isAuthorized;
|
|
21
22
|
var authedFunction = ["COINGECKO", "ETHERSCAN", "DEFILLAMA", "GNOSIS", "BASE", "EOA", "PNL", "SAFE", "BLOCKSCOUT", "LENS", "FARCASTER", "Ethereum", "SMARTCONTRACT", "DUNESIM"];
|
|
22
23
|
var filteredDefaultCandidates = context.defaultCandidates.filter(function (item) {
|
|
23
24
|
return !authedFunction.includes(item.n);
|
|
@@ -31,9 +32,9 @@ var FormulaSearch = function FormulaSearch(props) {
|
|
|
31
32
|
});
|
|
32
33
|
var firstSelection = (_a = context.luckysheet_select_save) === null || _a === void 0 ? void 0 : _a[0];
|
|
33
34
|
var hintRef = useRef(null);
|
|
34
|
-
var
|
|
35
|
-
top =
|
|
36
|
-
setTop =
|
|
35
|
+
var _c = useState(0),
|
|
36
|
+
top = _c[0],
|
|
37
|
+
setTop = _c[1];
|
|
37
38
|
var calcuatePopUpPlacement = function calcuatePopUpPlacement() {
|
|
38
39
|
var _a, _b, _c, _d;
|
|
39
40
|
if (!((_a = firstSelection === null || firstSelection === void 0 ? void 0 : firstSelection.top) === null || _a === void 0 ? void 0 : _a.toString()) || !((_b = firstSelection.height_move) === null || _b === void 0 ? void 0 : _b.toString()) || !hintRef.current) return;
|
|
@@ -170,6 +170,9 @@ var DropDownList = function DropDownList() {
|
|
|
170
170
|
onClick: function onClick() {
|
|
171
171
|
var _a;
|
|
172
172
|
(_a = window === null || window === void 0 ? void 0 : window.dataVerificationClick) === null || _a === void 0 ? void 0 : _a.call(window);
|
|
173
|
+
setContext(function (ctx) {
|
|
174
|
+
ctx.dataVerificationDropDownList = false;
|
|
175
|
+
});
|
|
173
176
|
}
|
|
174
177
|
}, /*#__PURE__*/_react.default.createElement(_ui.IconButton, {
|
|
175
178
|
icon: "Pencil",
|
|
@@ -337,6 +337,13 @@ var DataVerification = function DataVerification() {
|
|
|
337
337
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
338
338
|
className: "data-verification-checkbox-label"
|
|
339
339
|
}, dataVerification.notSelected), /*#__PURE__*/_react.default.createElement(_ui.TextField, {
|
|
340
|
+
onMouseDown: function onMouseDown(e) {
|
|
341
|
+
e.stopPropagation();
|
|
342
|
+
e.target.focus();
|
|
343
|
+
},
|
|
344
|
+
onKeyDown: function onKeyDown(e) {
|
|
345
|
+
e.stopPropagation();
|
|
346
|
+
},
|
|
340
347
|
value: (_j = (_h = context.dataVerification) === null || _h === void 0 ? void 0 : _h.dataRegulation) === null || _j === void 0 ? void 0 : _j.value2,
|
|
341
348
|
placeholder: dataVerification.placeholder2,
|
|
342
349
|
onChange: function onChange(e) {
|
|
@@ -25,8 +25,9 @@ var __assign = void 0 && (void 0).__assign || function () {
|
|
|
25
25
|
};
|
|
26
26
|
var FormulaSearch = function FormulaSearch(props) {
|
|
27
27
|
var _a;
|
|
28
|
-
var
|
|
29
|
-
|
|
28
|
+
var _b = (0, _react.useContext)(_context.default),
|
|
29
|
+
context = _b.context,
|
|
30
|
+
isAuthorized = _b.settings.isAuthorized;
|
|
30
31
|
var authedFunction = ["COINGECKO", "ETHERSCAN", "DEFILLAMA", "GNOSIS", "BASE", "EOA", "PNL", "SAFE", "BLOCKSCOUT", "LENS", "FARCASTER", "Ethereum", "SMARTCONTRACT", "DUNESIM"];
|
|
31
32
|
var filteredDefaultCandidates = context.defaultCandidates.filter(function (item) {
|
|
32
33
|
return !authedFunction.includes(item.n);
|
|
@@ -40,9 +41,9 @@ var FormulaSearch = function FormulaSearch(props) {
|
|
|
40
41
|
});
|
|
41
42
|
var firstSelection = (_a = context.luckysheet_select_save) === null || _a === void 0 ? void 0 : _a[0];
|
|
42
43
|
var hintRef = (0, _react.useRef)(null);
|
|
43
|
-
var
|
|
44
|
-
top =
|
|
45
|
-
setTop =
|
|
44
|
+
var _c = (0, _react.useState)(0),
|
|
45
|
+
top = _c[0],
|
|
46
|
+
setTop = _c[1];
|
|
46
47
|
var calcuatePopUpPlacement = function calcuatePopUpPlacement() {
|
|
47
48
|
var _a, _b, _c, _d;
|
|
48
49
|
if (!((_a = firstSelection === null || firstSelection === void 0 ? void 0 : firstSelection.top) === null || _a === void 0 ? void 0 : _a.toString()) || !((_b = firstSelection.height_move) === null || _b === void 0 ? void 0 : _b.toString()) || !hintRef.current) return;
|
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.14",
|
|
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.14",
|
|
20
20
|
"@fileverse/ui": "^4.1.7-patch-21",
|
|
21
21
|
"@tippyjs/react": "^4.2.6",
|
|
22
22
|
"@types/regenerator-runtime": "^0.13.6",
|