ui-kit-ck-consultant 0.6.15 → 0.6.17

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 CHANGED
@@ -914,11 +914,15 @@ var Table = /*#__PURE__*/function (_React$Component) {
914
914
  });
915
915
 
916
916
  if (thead) {
917
+ console.log('head');
918
+
917
919
  var headerRow = _this.getArray(thead.props.children).find(function (row) {
918
920
  return row.type === 'tr';
919
921
  });
920
922
 
921
923
  if (headerRow) {
924
+ console.log('headerRow');
925
+
922
926
  var headers = _this.getArray(headerRow.props.children).map(function (th) {
923
927
  return th.props && th.props.children ? _this.extractText(th.props.children) : '';
924
928
  }).join(';');
@@ -928,6 +932,8 @@ var Table = /*#__PURE__*/function (_React$Component) {
928
932
  }
929
933
 
930
934
  if (tbody) {
935
+ console.log('body');
936
+
931
937
  _this.getArray(tbody.props.children).forEach(function (row) {
932
938
  if (row.type === 'tr') {
933
939
  var rowData = _this.getArray(row.props.children).map(function (td) {
@@ -941,6 +947,7 @@ var Table = /*#__PURE__*/function (_React$Component) {
941
947
  }
942
948
  }
943
949
 
950
+ console.log(dataCSV);
944
951
  var link = document.createElement('a');
945
952
  link.href = "data:text/csv;charset=utf-8,\uFEFF" + encodeURIComponent(dataCSV);
946
953
  link.download = _this.props.nameCSV || 'file.csv';