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 +13 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +13 -1
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
@@ -752,7 +752,7 @@ var Table = /*#__PURE__*/function (_React$Component) {
|
|
752
752
|
}
|
753
753
|
|
754
754
|
var link = document.createElement('a');
|
755
|
-
link.href = "data:text/csv;charset=utf-8
|
755
|
+
link.href = "data:text/csv;charset=utf-8,\uFEFF" + encodeURIComponent(dataCSV);
|
756
756
|
link.download = _this.props.nameCSV || 'file.csv';
|
757
757
|
link.click();
|
758
758
|
};
|
@@ -3367,6 +3367,18 @@ var DropzoneMultiple = /*#__PURE__*/function (_React$Component) {
|
|
3367
3367
|
});
|
3368
3368
|
};
|
3369
3369
|
|
3370
|
+
_this.addFiles = function (files) {
|
3371
|
+
var tmpFiles = files;
|
3372
|
+
|
3373
|
+
_this.setState({
|
3374
|
+
files: tmpFiles
|
3375
|
+
}, function () {
|
3376
|
+
if (_this.props.onDrop) {
|
3377
|
+
_this.props.onDrop(_this.state.files);
|
3378
|
+
}
|
3379
|
+
});
|
3380
|
+
};
|
3381
|
+
|
3370
3382
|
_this.checkExtension = function (extension) {
|
3371
3383
|
if (!_this.props.extensions || _this.props.extensions.includes(extension)) {
|
3372
3384
|
return true;
|