ui-kit-ck-consultant 0.6.56 → 0.6.58
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 +7 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +7 -4
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -892,17 +892,20 @@ var Table = /*#__PURE__*/function (_React$Component) {
|
|
892
892
|
|
893
893
|
_this.getCSV = function (callback) {
|
894
894
|
var dataCSV = '';
|
895
|
+
console.log('this.props', _this.props);
|
895
896
|
|
896
897
|
if (_this.props && _this.props.children) {
|
898
|
+
console.log('this.props.children', _this.props.children);
|
899
|
+
|
897
900
|
var tableChildren = _this.getArray(_this.props.children);
|
898
901
|
|
899
902
|
var allRows = tableChildren.flatMap(function (section) {
|
900
903
|
var _section$props;
|
901
904
|
|
902
905
|
return _this.getArray((_section$props = section.props) === null || _section$props === void 0 ? void 0 : _section$props.children).filter(function (child) {
|
903
|
-
var _child$type,
|
906
|
+
var _child$type, _child$type2, _child$type3;
|
904
907
|
|
905
|
-
return (child === null || child === void 0 ? void 0 : (_child$type = child.type) === null || _child$type === void 0 ? void 0 : _child$type.name) === 'Tr' || (
|
908
|
+
return (child === null || child === void 0 ? void 0 : (_child$type = child.type) === null || _child$type === void 0 ? void 0 : _child$type.name) === 'Tr' || (child === null || child === void 0 ? void 0 : (_child$type2 = child.type) === null || _child$type2 === void 0 ? void 0 : _child$type2.displayName) === 'Tr' || (child === null || child === void 0 ? void 0 : (_child$type3 = child.type) === null || _child$type3 === void 0 ? void 0 : _child$type3.displayName) === 'tr';
|
906
909
|
});
|
907
910
|
});
|
908
911
|
console.log('Toutes les lignes (Tr) trouvées:', allRows);
|
@@ -912,9 +915,9 @@ var Table = /*#__PURE__*/function (_React$Component) {
|
|
912
915
|
console.log(row.props.children.length, row.props.children.length !== 2, row.props.children.type, row.props.children.type === React__default.Fragment, row);
|
913
916
|
|
914
917
|
var cells = _this.getArray(row.props.children.length !== 2 ? row.props.children.type === React__default.Fragment ? row.props.children.props.children[0] : row.props.children : row.props.children[0]).filter(function (cell) {
|
915
|
-
var _cell$type2, _cell$type3, _cell$type4, _cell$type5, _cell$type6
|
918
|
+
var _cell$type, _cell$type2, _cell$type3, _cell$type4, _cell$type5, _cell$type6;
|
916
919
|
|
917
|
-
return (cell === null || cell === void 0 ? void 0 : (_cell$
|
920
|
+
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' || (cell === null || cell === void 0 ? void 0 : (_cell$type3 = cell.type) === null || _cell$type3 === void 0 ? void 0 : _cell$type3.displayName) === 'Th' || (cell === null || cell === void 0 ? void 0 : (_cell$type4 = cell.type) === null || _cell$type4 === void 0 ? void 0 : _cell$type4.displayName) === 'Td' || (cell === null || cell === void 0 ? void 0 : (_cell$type5 = cell.type) === null || _cell$type5 === void 0 ? void 0 : _cell$type5.displayName) === 'th' || (cell === null || cell === void 0 ? void 0 : (_cell$type6 = cell.type) === null || _cell$type6 === void 0 ? void 0 : _cell$type6.displayName) === 'td';
|
918
921
|
});
|
919
922
|
|
920
923
|
var rowData = cells.map(function (cell) {
|