ui-kit-ck-consultant 0.6.28 → 0.6.29
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 +5 -16
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +5 -16
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -882,8 +882,6 @@ var Table = /*#__PURE__*/function (_React$Component) {
|
|
882
882
|
_this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
|
883
883
|
|
884
884
|
_this.getArray = function (data) {
|
885
|
-
console.log('Array', Array.isArray(data), data);
|
886
|
-
|
887
885
|
if (data && Array.isArray(data)) {
|
888
886
|
return data;
|
889
887
|
} else if (data) {
|
@@ -920,18 +918,11 @@ var Table = /*#__PURE__*/function (_React$Component) {
|
|
920
918
|
return row.type.name === 'Tr';
|
921
919
|
});
|
922
920
|
|
923
|
-
console.log(headerRow);
|
924
|
-
|
925
921
|
if (headerRow) {
|
926
|
-
console.log('
|
927
|
-
|
928
|
-
|
929
|
-
|
930
|
-
|
931
|
-
var headers = _this.getArray(headerRow.props.children).find(function (row) {
|
932
|
-
return ['Th', 'Td'].includes(row.type.name);
|
933
|
-
}).map(function (th) {
|
934
|
-
console.log(_this.extractText(th.props.children), th.props.children);
|
922
|
+
console.log('headerRow 1', headerRow);
|
923
|
+
console.log('headerRow 2', _this.getArray(headerRow.props.children));
|
924
|
+
|
925
|
+
var headers = _this.getArray(headerRow.props.children).map(function (th) {
|
935
926
|
return th.props && th.props.children ? _this.extractText(th.props.children) : '';
|
936
927
|
}).join(';');
|
937
928
|
|
@@ -942,9 +933,7 @@ var Table = /*#__PURE__*/function (_React$Component) {
|
|
942
933
|
if (tbody) {
|
943
934
|
_this.getArray(tbody.props.children).forEach(function (row) {
|
944
935
|
if (row.type === 'Tr') {
|
945
|
-
var rowData = _this.getArray(row.props.children).
|
946
|
-
return ['Th', 'Td'].includes(row.type.name);
|
947
|
-
}).map(function (td) {
|
936
|
+
var rowData = _this.getArray(row.props.children).map(function (td) {
|
948
937
|
return td.props && td.props.children ? _this.extractText(td.props.children) : '';
|
949
938
|
}).join(';');
|
950
939
|
|