ui-kit-ck-consultant 0.6.50 → 0.6.51
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 +7 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +7 -2
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
@@ -906,12 +906,17 @@ var Table = /*#__PURE__*/function (_React$Component) {
|
|
906
906
|
|
907
907
|
if (allRows.length > 0) {
|
908
908
|
allRows.forEach(function (row, rowIndex) {
|
909
|
-
var
|
909
|
+
var rowChildren = _this.getArray(row.props.children);
|
910
|
+
|
911
|
+
console.log('rowChildren', rowChildren);
|
912
|
+
var cells = rowChildren.flatMap(function (cell) {
|
913
|
+
return (cell === null || cell === void 0 ? void 0 : cell.type) === React.Fragment ? _this.getArray(cell.props.children) : [cell];
|
914
|
+
}).filter(function (cell) {
|
910
915
|
var _cell$type, _cell$type2;
|
911
916
|
|
912
917
|
return (cell === null || cell === void 0 ? void 0 : (_cell$type = cell.type) === null || _cell$type === void 0 ? void 0 : _cell$type.name) === 'Th' || (cell === null || cell === void 0 ? void 0 : (_cell$type2 = cell.type) === null || _cell$type2 === void 0 ? void 0 : _cell$type2.name) === 'Td';
|
913
918
|
});
|
914
|
-
|
919
|
+
console.log('cells', cells);
|
915
920
|
var rowData = cells.map(function (cell) {
|
916
921
|
return cell.props && cell.props.children ? _this.extractText(cell.props.children) : '';
|
917
922
|
}).join(';');
|