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.modern.js
CHANGED
@@ -879,8 +879,6 @@ 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
|
-
|
884
882
|
if (data && Array.isArray(data)) {
|
885
883
|
return data;
|
886
884
|
} else if (data) {
|
@@ -917,18 +915,11 @@ var Table = /*#__PURE__*/function (_React$Component) {
|
|
917
915
|
return row.type.name === 'Tr';
|
918
916
|
});
|
919
917
|
|
920
|
-
console.log(headerRow);
|
921
|
-
|
922
918
|
if (headerRow) {
|
923
|
-
console.log('
|
924
|
-
|
925
|
-
|
926
|
-
|
927
|
-
|
928
|
-
var headers = _this.getArray(headerRow.props.children).find(function (row) {
|
929
|
-
return ['Th', 'Td'].includes(row.type.name);
|
930
|
-
}).map(function (th) {
|
931
|
-
console.log(_this.extractText(th.props.children), th.props.children);
|
919
|
+
console.log('headerRow 1', headerRow);
|
920
|
+
console.log('headerRow 2', _this.getArray(headerRow.props.children));
|
921
|
+
|
922
|
+
var headers = _this.getArray(headerRow.props.children).map(function (th) {
|
932
923
|
return th.props && th.props.children ? _this.extractText(th.props.children) : '';
|
933
924
|
}).join(';');
|
934
925
|
|
@@ -939,9 +930,7 @@ var Table = /*#__PURE__*/function (_React$Component) {
|
|
939
930
|
if (tbody) {
|
940
931
|
_this.getArray(tbody.props.children).forEach(function (row) {
|
941
932
|
if (row.type === 'Tr') {
|
942
|
-
var rowData = _this.getArray(row.props.children).
|
943
|
-
return ['Th', 'Td'].includes(row.type.name);
|
944
|
-
}).map(function (td) {
|
933
|
+
var rowData = _this.getArray(row.props.children).map(function (td) {
|
945
934
|
return td.props && td.props.children ? _this.extractText(td.props.children) : '';
|
946
935
|
}).join(';');
|
947
936
|
|