ui-kit-ck-consultant 0.6.43 → 0.6.45

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