ui-kit-ck-consultant 0.5.245 → 0.5.247
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 +8 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +8 -2
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -755,7 +755,7 @@ var Table = /*#__PURE__*/function (_React$Component) {
|
|
755
755
|
}
|
756
756
|
|
757
757
|
var link = document.createElement('a');
|
758
|
-
link.href = "data:text/csv;charset=utf-8
|
758
|
+
link.href = "data:text/csv;charset=utf-8,\uFEFF" + encodeURIComponent(dataCSV);
|
759
759
|
link.download = _this.props.nameCSV || 'file.csv';
|
760
760
|
link.click();
|
761
761
|
};
|
@@ -776,7 +776,13 @@ var Table = /*#__PURE__*/function (_React$Component) {
|
|
776
776
|
text: "T\xE9l\xE9charger CSV",
|
777
777
|
className: "w-auto ml-auto mb-10",
|
778
778
|
onClick: function onClick() {
|
779
|
-
|
779
|
+
if (_this2.props.getAllData) {
|
780
|
+
_this2.props.getAllData(function () {
|
781
|
+
return _this2.getCSV();
|
782
|
+
});
|
783
|
+
} else {
|
784
|
+
_this2.getCSV();
|
785
|
+
}
|
780
786
|
}
|
781
787
|
})) : null, /*#__PURE__*/React__default.createElement("table", {
|
782
788
|
className: tableClass,
|