ui-kit-ck-consultant 0.6.41 → 0.6.42
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 +11 -9
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +11 -9
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
@@ -911,17 +911,18 @@ var Table = /*#__PURE__*/function (_React$Component) {
|
|
911
911
|
});
|
912
912
|
|
913
913
|
if (thead) {
|
914
|
-
var headerRow = _this.getArray(thead.props.children).
|
914
|
+
var headerRow = _this.getArray(thead.props.children).find(function (row) {
|
915
915
|
return row.type.name === 'Tr';
|
916
916
|
});
|
917
917
|
|
918
918
|
if (headerRow) {
|
919
|
-
_this.getArray(headerRow).
|
920
|
-
|
921
|
-
|
922
|
-
|
923
|
-
|
924
|
-
|
919
|
+
var headers = _this.getArray(headerRow.props.children).flatMap(function (row) {
|
920
|
+
return _this.getArray(row.props.children);
|
921
|
+
}).map(function (th) {
|
922
|
+
return th.props && th.props.children ? _this.extractText(th.props.children) : '';
|
923
|
+
}).join(';');
|
924
|
+
|
925
|
+
dataCSV += headers + '\n';
|
925
926
|
}
|
926
927
|
}
|
927
928
|
|
@@ -932,9 +933,10 @@ var Table = /*#__PURE__*/function (_React$Component) {
|
|
932
933
|
|
933
934
|
if (bodyRow) {
|
934
935
|
_this.getArray(bodyRow).forEach(function (row) {
|
935
|
-
var body = row.props.children
|
936
|
-
return
|
936
|
+
var body = _this.getArray(row.props.children).map(function (td) {
|
937
|
+
return td.props && td.props.children ? _this.extractText(td.props.children) : '';
|
937
938
|
}).join(';');
|
939
|
+
|
938
940
|
dataCSV += body + '\n';
|
939
941
|
});
|
940
942
|
}
|