ui-kit-ck-consultant 0.5.247 → 0.5.248
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.js +9 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +9 -4
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
@@ -728,7 +728,7 @@ var Table = /*#__PURE__*/function (_React$Component) {
|
|
728
728
|
}
|
729
729
|
};
|
730
730
|
|
731
|
-
_this.getCSV = function () {
|
731
|
+
_this.getCSV = function (callback) {
|
732
732
|
var dataCSV = '';
|
733
733
|
|
734
734
|
if (_this.props && _this.props.children) {
|
@@ -755,6 +755,7 @@ var Table = /*#__PURE__*/function (_React$Component) {
|
|
755
755
|
link.href = "data:text/csv;charset=utf-8,\uFEFF" + encodeURIComponent(dataCSV);
|
756
756
|
link.download = _this.props.nameCSV || 'file.csv';
|
757
757
|
link.click();
|
758
|
+
callback();
|
758
759
|
};
|
759
760
|
|
760
761
|
return _this;
|
@@ -772,13 +773,17 @@ var Table = /*#__PURE__*/function (_React$Component) {
|
|
772
773
|
}, /*#__PURE__*/React.createElement(Button, {
|
773
774
|
text: "T\xE9l\xE9charger CSV",
|
774
775
|
className: "w-auto ml-auto mb-10",
|
775
|
-
onClick: function onClick() {
|
776
|
+
onClick: function onClick(callback) {
|
777
|
+
if (callback === void 0) {
|
778
|
+
callback = function callback() {};
|
779
|
+
}
|
780
|
+
|
776
781
|
if (_this2.props.getAllData) {
|
777
782
|
_this2.props.getAllData(function () {
|
778
|
-
return _this2.getCSV();
|
783
|
+
return _this2.getCSV(callback);
|
779
784
|
});
|
780
785
|
} else {
|
781
|
-
_this2.getCSV();
|
786
|
+
_this2.getCSV(callback);
|
782
787
|
}
|
783
788
|
}
|
784
789
|
})) : null, /*#__PURE__*/React.createElement("table", {
|