ui-kit-ck-consultant 0.6.25 → 0.6.27
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.modern.js
CHANGED
@@ -879,6 +879,8 @@ var Table = /*#__PURE__*/function (_React$Component) {
|
|
879
879
|
_this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
|
880
880
|
|
881
881
|
_this.getArray = function (data) {
|
882
|
+
console.log('Array', Array.isArray(data), data);
|
883
|
+
|
882
884
|
if (data && Array.isArray(data)) {
|
883
885
|
return data;
|
884
886
|
} else if (data) {
|
@@ -918,7 +920,9 @@ var Table = /*#__PURE__*/function (_React$Component) {
|
|
918
920
|
console.log(headerRow);
|
919
921
|
|
920
922
|
if (headerRow) {
|
921
|
-
var headers = _this.getArray(headerRow.props.children).
|
923
|
+
var headers = _this.getArray(headerRow.props.children).find(function (row) {
|
924
|
+
return ['Th', 'Td'].includes(row.type.name);
|
925
|
+
}).map(function (th) {
|
922
926
|
console.log(_this.extractText(th.props.children), th.props.children);
|
923
927
|
return th.props && th.props.children ? _this.extractText(th.props.children) : '';
|
924
928
|
}).join(';');
|
@@ -930,7 +934,9 @@ var Table = /*#__PURE__*/function (_React$Component) {
|
|
930
934
|
if (tbody) {
|
931
935
|
_this.getArray(tbody.props.children).forEach(function (row) {
|
932
936
|
if (row.type === 'Tr') {
|
933
|
-
var rowData = _this.getArray(row.props.children).
|
937
|
+
var rowData = _this.getArray(row.props.children).find(function (row) {
|
938
|
+
return ['Th', 'Td'].includes(row.type.name);
|
939
|
+
}).map(function (td) {
|
934
940
|
return td.props && td.props.children ? _this.extractText(td.props.children) : '';
|
935
941
|
}).join(';');
|
936
942
|
|