ui-kit-ck-consultant 0.5.239 → 0.5.241
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 +18 -8
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +18 -8
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
@@ -731,19 +731,29 @@ 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
|
+
if (column.props && column.props.children) {
|
741
|
+
dataCSV += column.props.children.toString() + ";";
|
742
|
+
} else {
|
743
|
+
dataCSV += '';
|
744
|
+
}
|
745
|
+
});
|
739
746
|
|
740
|
-
|
747
|
+
dataCSV += '\n';
|
748
|
+
}
|
749
|
+
});
|
750
|
+
}
|
741
751
|
});
|
742
|
-
}
|
752
|
+
}
|
743
753
|
|
744
754
|
var link = document.createElement('a');
|
745
755
|
link.href = "data:text/csv;charset=utf-8," + encodeURIComponent(dataCSV);
|
746
|
-
link.download = 'file.csv';
|
756
|
+
link.download = _this.props.nameCSV || 'file.csv';
|
747
757
|
link.click();
|
748
758
|
};
|
749
759
|
|