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.js
CHANGED
@@ -3583,6 +3583,8 @@ var DropzoneMultiple = /*#__PURE__*/function (_React$Component) {
|
|
3583
3583
|
};
|
3584
3584
|
|
3585
3585
|
_this.checkExtension = function (extension) {
|
3586
|
+
extension = extension ? extension.toLowerCase() : '';
|
3587
|
+
|
3586
3588
|
if (!_this.props.extensions || _this.props.extensions.includes(extension)) {
|
3587
3589
|
return true;
|
3588
3590
|
} else {
|
@@ -4400,6 +4402,12 @@ var Gauge = /*#__PURE__*/function (_React$Component) {
|
|
4400
4402
|
|
4401
4403
|
_this = _React$Component.call(this, props) || this;
|
4402
4404
|
|
4405
|
+
_this.eventMouseUp = function () {
|
4406
|
+
_this.setState({
|
4407
|
+
isActive: false
|
4408
|
+
});
|
4409
|
+
};
|
4410
|
+
|
4403
4411
|
_this.onMouse = function (e, isForce) {
|
4404
4412
|
if (isForce === void 0) {
|
4405
4413
|
isForce = false;
|
@@ -4430,19 +4438,17 @@ var Gauge = /*#__PURE__*/function (_React$Component) {
|
|
4430
4438
|
var _proto = Gauge.prototype;
|
4431
4439
|
|
4432
4440
|
_proto.componentDidMount = function componentDidMount() {
|
4433
|
-
var _this2 = this;
|
4434
|
-
|
4435
4441
|
if (this.props.position) {
|
4436
4442
|
this.setState({
|
4437
4443
|
position: this.props.position
|
4438
4444
|
});
|
4439
4445
|
}
|
4440
4446
|
|
4441
|
-
window.addEventListener('mouseup',
|
4442
|
-
|
4443
|
-
|
4444
|
-
|
4445
|
-
|
4447
|
+
window.addEventListener('mouseup', this.eventMouseUp, true);
|
4448
|
+
};
|
4449
|
+
|
4450
|
+
_proto.componentWillUnmount = function componentWillUnmount() {
|
4451
|
+
window.removeEventListener('mouseup', this.eventMouseUp);
|
4446
4452
|
};
|
4447
4453
|
|
4448
4454
|
_proto.componentDidUpdate = function componentDidUpdate(prevProps) {
|
@@ -4454,7 +4460,7 @@ var Gauge = /*#__PURE__*/function (_React$Component) {
|
|
4454
4460
|
};
|
4455
4461
|
|
4456
4462
|
_proto.render = function render() {
|
4457
|
-
var
|
4463
|
+
var _this2 = this;
|
4458
4464
|
|
4459
4465
|
return /*#__PURE__*/React__default.createElement("div", {
|
4460
4466
|
className: this.props.className
|
@@ -4486,15 +4492,15 @@ var Gauge = /*#__PURE__*/function (_React$Component) {
|
|
4486
4492
|
borderRadius: '8px'
|
4487
4493
|
},
|
4488
4494
|
onMouseMove: function onMouseMove(e) {
|
4489
|
-
return
|
4495
|
+
return _this2.onMouse(e);
|
4490
4496
|
},
|
4491
4497
|
onClick: function onClick(e) {
|
4492
|
-
return
|
4498
|
+
return _this2.onMouse(e, true);
|
4493
4499
|
},
|
4494
4500
|
onMouseDown: function onMouseDown(e) {
|
4495
4501
|
e.preventDefault();
|
4496
4502
|
|
4497
|
-
|
4503
|
+
_this2.setState({
|
4498
4504
|
isActive: true
|
4499
4505
|
});
|
4500
4506
|
}
|