ui-kit-ck-consultant 0.5.244 → 0.5.246

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
@@ -755,7 +755,7 @@ var Table = /*#__PURE__*/function (_React$Component) {
755
755
  }
756
756
 
757
757
  var link = document.createElement('a');
758
- link.href = "data:text/csv;charset=utf-8," + encodeURIComponent(dataCSV);
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
761
  };
@@ -3370,6 +3370,18 @@ var DropzoneMultiple = /*#__PURE__*/function (_React$Component) {
3370
3370
  });
3371
3371
  };
3372
3372
 
3373
+ _this.addFiles = function (files) {
3374
+ var tmpFiles = files;
3375
+
3376
+ _this.setState({
3377
+ files: tmpFiles
3378
+ }, function () {
3379
+ if (_this.props.onDrop) {
3380
+ _this.props.onDrop(_this.state.files);
3381
+ }
3382
+ });
3383
+ };
3384
+
3373
3385
  _this.checkExtension = function (extension) {
3374
3386
  if (!_this.props.extensions || _this.props.extensions.includes(extension)) {
3375
3387
  return true;