ui-kit-ck-consultant 0.5.265 → 0.5.267
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 +17 -11
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +17 -11
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
@@ -3580,6 +3580,8 @@ var DropzoneMultiple = /*#__PURE__*/function (_React$Component) {
|
|
3580
3580
|
};
|
3581
3581
|
|
3582
3582
|
_this.checkExtension = function (extension) {
|
3583
|
+
extension = extension ? extension.toLowerCase() : '';
|
3584
|
+
|
3583
3585
|
if (!_this.props.extensions || _this.props.extensions.includes(extension)) {
|
3584
3586
|
return true;
|
3585
3587
|
} else {
|
@@ -4397,6 +4399,12 @@ var Gauge = /*#__PURE__*/function (_React$Component) {
|
|
4397
4399
|
|
4398
4400
|
_this = _React$Component.call(this, props) || this;
|
4399
4401
|
|
4402
|
+
_this.eventMouseUp = function () {
|
4403
|
+
_this.setState({
|
4404
|
+
isActive: false
|
4405
|
+
});
|
4406
|
+
};
|
4407
|
+
|
4400
4408
|
_this.onMouse = function (e, isForce) {
|
4401
4409
|
if (isForce === void 0) {
|
4402
4410
|
isForce = false;
|
@@ -4427,19 +4435,17 @@ var Gauge = /*#__PURE__*/function (_React$Component) {
|
|
4427
4435
|
var _proto = Gauge.prototype;
|
4428
4436
|
|
4429
4437
|
_proto.componentDidMount = function componentDidMount() {
|
4430
|
-
var _this2 = this;
|
4431
|
-
|
4432
4438
|
if (this.props.position) {
|
4433
4439
|
this.setState({
|
4434
4440
|
position: this.props.position
|
4435
4441
|
});
|
4436
4442
|
}
|
4437
4443
|
|
4438
|
-
window.addEventListener('mouseup',
|
4439
|
-
|
4440
|
-
|
4441
|
-
|
4442
|
-
|
4444
|
+
window.addEventListener('mouseup', this.eventMouseUp, true);
|
4445
|
+
};
|
4446
|
+
|
4447
|
+
_proto.componentWillUnmount = function componentWillUnmount() {
|
4448
|
+
window.removeEventListener('mouseup', this.eventMouseUp);
|
4443
4449
|
};
|
4444
4450
|
|
4445
4451
|
_proto.componentDidUpdate = function componentDidUpdate(prevProps) {
|
@@ -4451,7 +4457,7 @@ var Gauge = /*#__PURE__*/function (_React$Component) {
|
|
4451
4457
|
};
|
4452
4458
|
|
4453
4459
|
_proto.render = function render() {
|
4454
|
-
var
|
4460
|
+
var _this2 = this;
|
4455
4461
|
|
4456
4462
|
return /*#__PURE__*/React.createElement("div", {
|
4457
4463
|
className: this.props.className
|
@@ -4483,15 +4489,15 @@ var Gauge = /*#__PURE__*/function (_React$Component) {
|
|
4483
4489
|
borderRadius: '8px'
|
4484
4490
|
},
|
4485
4491
|
onMouseMove: function onMouseMove(e) {
|
4486
|
-
return
|
4492
|
+
return _this2.onMouse(e);
|
4487
4493
|
},
|
4488
4494
|
onClick: function onClick(e) {
|
4489
|
-
return
|
4495
|
+
return _this2.onMouse(e, true);
|
4490
4496
|
},
|
4491
4497
|
onMouseDown: function onMouseDown(e) {
|
4492
4498
|
e.preventDefault();
|
4493
4499
|
|
4494
|
-
|
4500
|
+
_this2.setState({
|
4495
4501
|
isActive: true
|
4496
4502
|
});
|
4497
4503
|
}
|