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