ui-kit-ck-consultant 0.6.62 → 0.6.64

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.css CHANGED
@@ -362,6 +362,7 @@
362
362
  position: fixed;
363
363
  bottom: 45px;
364
364
  right: 25px;
365
+ z-index: 100;
365
366
  }
366
367
 
367
368
  ._yuWqh {
package/dist/index.js CHANGED
@@ -894,16 +894,14 @@ var Table = /*#__PURE__*/function (_React$Component) {
894
894
  var dataCSV = '';
895
895
 
896
896
  if (_this.props.data) {
897
- var rowData = Object.keys(_this.props.data).map(function (cell) {
898
- return cell || '';
899
- }).join(';');
900
- dataCSV += rowData + '\n';
901
-
902
- _this.props.data.map(function (row) {
903
- var rowData = row.map(function (cell) {
904
- return cell || '';
905
- }).join(';');
906
- dataCSV += rowData + '\n';
897
+ var headers = Object.keys(_this.props.data[0]);
898
+ dataCSV += headers.join(';') + '\n';
899
+
900
+ _this.props.data.forEach(function (row) {
901
+ var values = headers.map(function (key) {
902
+ return row[key] !== undefined ? row[key] : '';
903
+ });
904
+ dataCSV += values.join(';') + '\n';
907
905
  });
908
906
  } else {
909
907
  console.log('this.props', _this.props);