ui-kit-ck-consultant 0.5.247 → 0.5.249

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
@@ -731,7 +731,7 @@ var Table = /*#__PURE__*/function (_React$Component) {
731
731
  }
732
732
  };
733
733
 
734
- _this.getCSV = function () {
734
+ _this.getCSV = function (callback) {
735
735
  var dataCSV = '';
736
736
 
737
737
  if (_this.props && _this.props.children) {
@@ -758,6 +758,7 @@ var Table = /*#__PURE__*/function (_React$Component) {
758
758
  link.href = "data:text/csv;charset=utf-8,\uFEFF" + encodeURIComponent(dataCSV);
759
759
  link.download = _this.props.nameCSV || 'file.csv';
760
760
  link.click();
761
+ callback();
761
762
  };
762
763
 
763
764
  return _this;
@@ -778,10 +779,10 @@ var Table = /*#__PURE__*/function (_React$Component) {
778
779
  onClick: function onClick() {
779
780
  if (_this2.props.getAllData) {
780
781
  _this2.props.getAllData(function () {
781
- return _this2.getCSV();
782
+ return _this2.getCSV(_this2.props.csvCallback);
782
783
  });
783
784
  } else {
784
- _this2.getCSV();
785
+ _this2.getCSV(_this2.props.csvCallback);
785
786
  }
786
787
  }
787
788
  })) : null, /*#__PURE__*/React__default.createElement("table", {