ui-kit-ck-consultant 0.5.187 → 0.5.190
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 +31 -22
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +31 -22
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -3058,29 +3058,36 @@ var DropzoneMultiple = /*#__PURE__*/function (_React$Component) {
|
|
3058
3058
|
var name = file.name.split('.');
|
3059
3059
|
|
3060
3060
|
if (_this.checkExtension(name[name.length - 1])) {
|
3061
|
-
|
3061
|
+
if (!_this.props.maxFileSize || _this.props.maxFileSize * 1000000 > file.size) {
|
3062
|
+
var reader = new window.FileReader();
|
3063
|
+
|
3064
|
+
reader.onload = function () {
|
3065
|
+
var base64 = reader.result;
|
3066
|
+
var tmpFiles = _this.state.files;
|
3067
|
+
tmpFiles.push({
|
3068
|
+
base64: base64,
|
3069
|
+
mime: file.type,
|
3070
|
+
name: file.name,
|
3071
|
+
extension: name[name.length - 1],
|
3072
|
+
size: file.size
|
3073
|
+
});
|
3062
3074
|
|
3063
|
-
|
3064
|
-
|
3065
|
-
|
3066
|
-
|
3067
|
-
base64: base64,
|
3068
|
-
mime: file.type,
|
3069
|
-
name: file.name,
|
3070
|
-
extension: name[name.length - 1],
|
3071
|
-
size: file.size
|
3072
|
-
});
|
3075
|
+
_this.setState({
|
3076
|
+
files: tmpFiles
|
3077
|
+
}, function () {
|
3078
|
+
_this.currentFile += 1;
|
3073
3079
|
|
3074
|
-
|
3075
|
-
|
3076
|
-
}
|
3077
|
-
_this.currentFile += 1;
|
3080
|
+
_this.nextFile(files);
|
3081
|
+
});
|
3082
|
+
};
|
3078
3083
|
|
3079
|
-
|
3080
|
-
|
3081
|
-
|
3084
|
+
reader.readAsDataURL(file);
|
3085
|
+
} else {
|
3086
|
+
alert('Fichier trop volumineux');
|
3087
|
+
_this.currentFile += 1;
|
3082
3088
|
|
3083
|
-
|
3089
|
+
_this.nextFile(files);
|
3090
|
+
}
|
3084
3091
|
} else {
|
3085
3092
|
_this.currentFile += 1;
|
3086
3093
|
|
@@ -3394,11 +3401,11 @@ var ListingVerticalItem = /*#__PURE__*/function (_React$Component) {
|
|
3394
3401
|
className: listingClass
|
3395
3402
|
}, /*#__PURE__*/React__default.createElement("div", {
|
3396
3403
|
className: style$s.listing_vertical_left
|
3397
|
-
}, this.props.green ? /*#__PURE__*/React__default.createElement(reactFontawesome.FontAwesomeIcon, {
|
3404
|
+
}, this.props.icon ? this.props.icon : this.props.green ? /*#__PURE__*/React__default.createElement(reactFontawesome.FontAwesomeIcon, {
|
3398
3405
|
icon: freeSolidSvgIcons.faCheck
|
3399
3406
|
}) : ''), /*#__PURE__*/React__default.createElement("div", {
|
3400
3407
|
className: style$s.listing_vertical_right
|
3401
|
-
}, /*#__PURE__*/React__default.createElement("span", null, this.props.title), /*#__PURE__*/React__default.createElement("span", null, this.props.subtitle)));
|
3408
|
+
}, /*#__PURE__*/React__default.createElement("span", null, this.props.date), /*#__PURE__*/React__default.createElement("span", null, this.props.title), /*#__PURE__*/React__default.createElement("span", null, this.props.subtitle)));
|
3402
3409
|
};
|
3403
3410
|
|
3404
3411
|
return ListingVerticalItem;
|
@@ -3443,7 +3450,9 @@ var ListingVertical = /*#__PURE__*/function (_React$Component) {
|
|
3443
3450
|
green: element.green,
|
3444
3451
|
orange: element.orange,
|
3445
3452
|
title: element.title,
|
3446
|
-
subtitle: element.subtitle
|
3453
|
+
subtitle: element.subtitle,
|
3454
|
+
date: element.date,
|
3455
|
+
icon: element.icon
|
3447
3456
|
});
|
3448
3457
|
});
|
3449
3458
|
tmpData.map(function (element, idx) {
|