ui-kit-ck-consultant 0.6.43 → 0.6.44

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.
@@ -896,13 +896,13 @@ var Table = /*#__PURE__*/function (_React$Component) {
896
896
  var allRows = tableChildren.flatMap(function (section) {
897
897
  var _section$props;
898
898
 
899
- return _this.getArray((_section$props = section.props) === null || _section$props === void 0 ? void 0 : _section$props.children).filter(function (child) {
899
+ return _this.getArray(((_section$props = section.props) === null || _section$props === void 0 ? void 0 : _section$props.children) || []).filter(function (child) {
900
900
  var _child$type;
901
901
 
902
902
  return (child === null || child === void 0 ? void 0 : (_child$type = child.type) === null || _child$type === void 0 ? void 0 : _child$type.name) === 'Tr';
903
903
  });
904
904
  });
905
- console.log('Toutes les lignes (Tr) trouvées:', allRows);
905
+ console.log('Lignes (Tr) détectées:', JSON.stringify(allRows));
906
906
 
907
907
  if (allRows.length > 0) {
908
908
  allRows.forEach(function (row, rowIndex) {
@@ -912,6 +912,7 @@ var Table = /*#__PURE__*/function (_React$Component) {
912
912
  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
913
  });
914
914
 
915
+ console.log("Ligne " + (rowIndex + 1) + " - Cellules d\xE9tect\xE9es:", JSON.stringify(cells));
915
916
  var rowData = cells.map(function (cell) {
916
917
  return cell.props && cell.props.children ? _this.extractText(cell.props.children) : '';
917
918
  }).join(';');
@@ -920,7 +921,7 @@ var Table = /*#__PURE__*/function (_React$Component) {
920
921
  }
921
922
  }
922
923
 
923
- console.log('CSV output:', dataCSV);
924
+ console.log('CSV généré:', dataCSV);
924
925
 
925
926
  if (dataCSV) {
926
927
  var link = document.createElement('a');