ui-kit-ck-consultant 0.5.185 → 0.5.188
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 +38 -23
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +38 -23
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
@@ -898,7 +898,11 @@ var Card = /*#__PURE__*/function (_React$Component) {
|
|
898
898
|
_proto.render = function render() {
|
899
899
|
return /*#__PURE__*/React.createElement("div", {
|
900
900
|
className: classNames$1(style$b.card, this.props.className)
|
901
|
-
}, this.props.imgLeft ? /*#__PURE__*/React.createElement("div",
|
901
|
+
}, this.props.imgLeft ? /*#__PURE__*/React.createElement("div", {
|
902
|
+
style: {
|
903
|
+
overflow: 'hidden'
|
904
|
+
}
|
905
|
+
}, /*#__PURE__*/React.createElement("img", {
|
902
906
|
style: {
|
903
907
|
height: '100%'
|
904
908
|
},
|
@@ -935,7 +939,11 @@ var Card = /*#__PURE__*/function (_React$Component) {
|
|
935
939
|
onClick: this.props.onClick
|
936
940
|
}, this.props.action))) : '', /*#__PURE__*/React.createElement("div", {
|
937
941
|
className: classNames$1(style$b.card_body, this.props.classNameChildren)
|
938
|
-
}, this.props.children)), this.props.imgRight ? /*#__PURE__*/React.createElement("div",
|
942
|
+
}, this.props.children)), this.props.imgRight ? /*#__PURE__*/React.createElement("div", {
|
943
|
+
style: {
|
944
|
+
overflow: 'hidden'
|
945
|
+
}
|
946
|
+
}, /*#__PURE__*/React.createElement("img", {
|
939
947
|
style: {
|
940
948
|
height: '100%'
|
941
949
|
},
|
@@ -3047,29 +3055,36 @@ var DropzoneMultiple = /*#__PURE__*/function (_React$Component) {
|
|
3047
3055
|
var name = file.name.split('.');
|
3048
3056
|
|
3049
3057
|
if (_this.checkExtension(name[name.length - 1])) {
|
3050
|
-
|
3058
|
+
if (!_this.props.maxFileSize || _this.props.maxFileSize * 1000000 > file.size) {
|
3059
|
+
var reader = new window.FileReader();
|
3060
|
+
|
3061
|
+
reader.onload = function () {
|
3062
|
+
var base64 = reader.result;
|
3063
|
+
var tmpFiles = _this.state.files;
|
3064
|
+
tmpFiles.push({
|
3065
|
+
base64: base64,
|
3066
|
+
mime: file.type,
|
3067
|
+
name: file.name,
|
3068
|
+
extension: name[name.length - 1],
|
3069
|
+
size: file.size
|
3070
|
+
});
|
3051
3071
|
|
3052
|
-
|
3053
|
-
|
3054
|
-
|
3055
|
-
|
3056
|
-
base64: base64,
|
3057
|
-
mime: file.type,
|
3058
|
-
name: file.name,
|
3059
|
-
extension: name[name.length - 1],
|
3060
|
-
size: file.size
|
3061
|
-
});
|
3072
|
+
_this.setState({
|
3073
|
+
files: tmpFiles
|
3074
|
+
}, function () {
|
3075
|
+
_this.currentFile += 1;
|
3062
3076
|
|
3063
|
-
|
3064
|
-
|
3065
|
-
}
|
3066
|
-
_this.currentFile += 1;
|
3077
|
+
_this.nextFile(files);
|
3078
|
+
});
|
3079
|
+
};
|
3067
3080
|
|
3068
|
-
|
3069
|
-
|
3070
|
-
|
3081
|
+
reader.readAsDataURL(file);
|
3082
|
+
} else {
|
3083
|
+
alert('Fichier trop volumineux');
|
3084
|
+
_this.currentFile += 1;
|
3071
3085
|
|
3072
|
-
|
3086
|
+
_this.nextFile(files);
|
3087
|
+
}
|
3073
3088
|
} else {
|
3074
3089
|
_this.currentFile += 1;
|
3075
3090
|
|
@@ -3679,7 +3694,7 @@ var Cookie = /*#__PURE__*/function (_React$Component) {
|
|
3679
3694
|
var _proto = Cookie.prototype;
|
3680
3695
|
|
3681
3696
|
_proto.componentDidMount = function componentDidMount() {
|
3682
|
-
if (this.props.force || this.cookies.get(this.props.name + "-cookies") !== '1') {
|
3697
|
+
if (this.props.force || this.cookies.get(this.props.name + "-cookies") !== '1' && this.cookies.get(this.props.name + "-cookies") !== '2') {
|
3683
3698
|
this.setState({
|
3684
3699
|
show: true
|
3685
3700
|
});
|
@@ -3692,7 +3707,7 @@ var Cookie = /*#__PURE__*/function (_React$Component) {
|
|
3692
3707
|
|
3693
3708
|
_proto.componentDidUpdate = function componentDidUpdate(prevProps) {
|
3694
3709
|
if (prevProps.force !== this.props.force || prevProps.name !== this.props.name) {
|
3695
|
-
if (this.cookies.get(this.props.name + "-cookies") !== '1') {
|
3710
|
+
if (this.cookies.get(this.props.name + "-cookies") !== '1' && this.cookies.get(this.props.name + "-cookies") !== '2') {
|
3696
3711
|
this.setState({
|
3697
3712
|
show: true
|
3698
3713
|
});
|