@fileverse-dev/fortune-react 1.2.17 → 1.2.19
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.
|
@@ -342,7 +342,10 @@ export var CurrencySelector = function CurrencySelector(_a) {
|
|
|
342
342
|
}, /*#__PURE__*/React.createElement(CommandInput, {
|
|
343
343
|
placeholder: "Search by name or code",
|
|
344
344
|
value: searchTerm,
|
|
345
|
-
onValueChange:
|
|
345
|
+
onValueChange: function onValueChange(value) {
|
|
346
|
+
setSearchTerm(value);
|
|
347
|
+
console.log(value, "djksfgnkjsedfngskjn");
|
|
348
|
+
}
|
|
346
349
|
})), /*#__PURE__*/React.createElement("div", {
|
|
347
350
|
className: "px-4 py-2 border-b color-border-default flex items-center justify-between gap-2 text-body-sm color-text-default",
|
|
348
351
|
onClick: function onClick(e) {
|
|
@@ -394,6 +397,7 @@ export var CurrencySelector = function CurrencySelector(_a) {
|
|
|
394
397
|
return __generator(this, function (_a) {
|
|
395
398
|
switch (_a.label) {
|
|
396
399
|
case 0:
|
|
400
|
+
console.log(opt, "kjbdnfgjbksndfjbkdnbksdfjkn");
|
|
397
401
|
if (!(opt.type === "crypto")) return [3, 2];
|
|
398
402
|
return [4, convertCellsToCrypto({
|
|
399
403
|
context: context,
|
|
@@ -728,6 +732,7 @@ var Toolbar = function Toolbar(_a) {
|
|
|
728
732
|
return /*#__PURE__*/React.createElement(Option, {
|
|
729
733
|
key: value,
|
|
730
734
|
onClick: function onClick() {
|
|
735
|
+
console.log("format", value);
|
|
731
736
|
setOpen(false);
|
|
732
737
|
setContext(function (ctx) {
|
|
733
738
|
var d = getFlowdata(ctx);
|
|
@@ -1649,13 +1654,6 @@ var Toolbar = function Toolbar(_a) {
|
|
|
1649
1654
|
}));
|
|
1650
1655
|
});
|
|
1651
1656
|
}
|
|
1652
|
-
if (name === "currency") {
|
|
1653
|
-
return /*#__PURE__*/React.createElement(CurrencySelector, {
|
|
1654
|
-
cell: cell,
|
|
1655
|
-
defaultTextFormat: defaultFormat[0].text,
|
|
1656
|
-
toolTipText: toolbar["currency-format"]
|
|
1657
|
-
});
|
|
1658
|
-
}
|
|
1659
1657
|
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
1660
1658
|
text: tooltip,
|
|
1661
1659
|
placement: "bottom"
|
|
@@ -351,7 +351,10 @@ var CurrencySelector = exports.CurrencySelector = function CurrencySelector(_a)
|
|
|
351
351
|
}, /*#__PURE__*/_react.default.createElement(_ui.CommandInput, {
|
|
352
352
|
placeholder: "Search by name or code",
|
|
353
353
|
value: searchTerm,
|
|
354
|
-
onValueChange:
|
|
354
|
+
onValueChange: function onValueChange(value) {
|
|
355
|
+
setSearchTerm(value);
|
|
356
|
+
console.log(value, "djksfgnkjsedfngskjn");
|
|
357
|
+
}
|
|
355
358
|
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
356
359
|
className: "px-4 py-2 border-b color-border-default flex items-center justify-between gap-2 text-body-sm color-text-default",
|
|
357
360
|
onClick: function onClick(e) {
|
|
@@ -403,6 +406,7 @@ var CurrencySelector = exports.CurrencySelector = function CurrencySelector(_a)
|
|
|
403
406
|
return __generator(this, function (_a) {
|
|
404
407
|
switch (_a.label) {
|
|
405
408
|
case 0:
|
|
409
|
+
console.log(opt, "kjbdnfgjbksndfjbkdnbksdfjkn");
|
|
406
410
|
if (!(opt.type === "crypto")) return [3, 2];
|
|
407
411
|
return [4, (0, _convertCellsToCrypto.convertCellsToCrypto)({
|
|
408
412
|
context: context,
|
|
@@ -737,6 +741,7 @@ var Toolbar = function Toolbar(_a) {
|
|
|
737
741
|
return /*#__PURE__*/_react.default.createElement(_Select.Option, {
|
|
738
742
|
key: value,
|
|
739
743
|
onClick: function onClick() {
|
|
744
|
+
console.log("format", value);
|
|
740
745
|
setOpen(false);
|
|
741
746
|
setContext(function (ctx) {
|
|
742
747
|
var d = (0, _fortuneCore.getFlowdata)(ctx);
|
|
@@ -1658,13 +1663,6 @@ var Toolbar = function Toolbar(_a) {
|
|
|
1658
1663
|
}));
|
|
1659
1664
|
});
|
|
1660
1665
|
}
|
|
1661
|
-
if (name === "currency") {
|
|
1662
|
-
return /*#__PURE__*/_react.default.createElement(CurrencySelector, {
|
|
1663
|
-
cell: cell,
|
|
1664
|
-
defaultTextFormat: defaultFormat[0].text,
|
|
1665
|
-
toolTipText: toolbar["currency-format"]
|
|
1666
|
-
});
|
|
1667
|
-
}
|
|
1668
1666
|
return /*#__PURE__*/_react.default.createElement(_ui.Tooltip, {
|
|
1669
1667
|
text: tooltip,
|
|
1670
1668
|
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.19",
|
|
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.19",
|
|
20
20
|
"@fileverse/ui": "^4.1.7-patch-40",
|
|
21
21
|
"@tippyjs/react": "^4.2.6",
|
|
22
22
|
"@types/regenerator-runtime": "^0.13.6",
|