ui-kit-ck-consultant 0.5.239 → 0.5.240
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 +14 -8
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +14 -8
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
@@ -731,19 +731,25 @@ var Table = /*#__PURE__*/function (_React$Component) {
|
|
731
731
|
_this.getCSV = function () {
|
732
732
|
var dataCSV = '';
|
733
733
|
|
734
|
-
_this.
|
735
|
-
_this.getArray(
|
736
|
-
|
737
|
-
|
738
|
-
|
734
|
+
if (_this.props && _this.props.children) {
|
735
|
+
_this.getArray(_this.props.children).forEach(function (children) {
|
736
|
+
if (children.props && children.props.children) {
|
737
|
+
_this.getArray(children.props.children).forEach(function (line) {
|
738
|
+
if (line.props && line.props.children) {
|
739
|
+
_this.getArray(line.props.children).forEach(function (column) {
|
740
|
+
dataCSV += (column.props.children || '').toString() + ";";
|
741
|
+
});
|
739
742
|
|
740
|
-
|
743
|
+
dataCSV += '\n';
|
744
|
+
}
|
745
|
+
});
|
746
|
+
}
|
741
747
|
});
|
742
|
-
}
|
748
|
+
}
|
743
749
|
|
744
750
|
var link = document.createElement('a');
|
745
751
|
link.href = "data:text/csv;charset=utf-8," + encodeURIComponent(dataCSV);
|
746
|
-
link.download = 'file.csv';
|
752
|
+
link.download = _this.props.nameCSV || 'file.csv';
|
747
753
|
link.click();
|
748
754
|
};
|
749
755
|
|