ui-kit-ck-consultant 0.5.268 → 0.5.269
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 +5 -16
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +5 -16
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -4431,7 +4431,6 @@ var Gauge = /*#__PURE__*/function (_React$Component) {
|
|
4431
4431
|
};
|
4432
4432
|
|
4433
4433
|
_this.state = {
|
4434
|
-
isDisplay: true,
|
4435
4434
|
isActive: false,
|
4436
4435
|
position: 0
|
4437
4436
|
};
|
@@ -4441,10 +4440,6 @@ var Gauge = /*#__PURE__*/function (_React$Component) {
|
|
4441
4440
|
var _proto = Gauge.prototype;
|
4442
4441
|
|
4443
4442
|
_proto.componentDidMount = function componentDidMount() {
|
4444
|
-
this.setState({
|
4445
|
-
isDisplay: true
|
4446
|
-
});
|
4447
|
-
|
4448
4443
|
if (this.props.position) {
|
4449
4444
|
this.setState({
|
4450
4445
|
position: this.props.position
|
@@ -4455,13 +4450,7 @@ var Gauge = /*#__PURE__*/function (_React$Component) {
|
|
4455
4450
|
};
|
4456
4451
|
|
4457
4452
|
_proto.componentWillUnmount = function componentWillUnmount() {
|
4458
|
-
|
4459
|
-
|
4460
|
-
this.setState({
|
4461
|
-
isDisplay: false
|
4462
|
-
}, function () {
|
4463
|
-
window.removeEventListener('mouseup', _this2.eventMouseUp);
|
4464
|
-
});
|
4453
|
+
window.removeEventListener('mouseup', this.eventMouseUp, true);
|
4465
4454
|
};
|
4466
4455
|
|
4467
4456
|
_proto.componentDidUpdate = function componentDidUpdate(prevProps) {
|
@@ -4473,7 +4462,7 @@ var Gauge = /*#__PURE__*/function (_React$Component) {
|
|
4473
4462
|
};
|
4474
4463
|
|
4475
4464
|
_proto.render = function render() {
|
4476
|
-
var
|
4465
|
+
var _this2 = this;
|
4477
4466
|
|
4478
4467
|
return /*#__PURE__*/React__default.createElement("div", {
|
4479
4468
|
className: this.props.className
|
@@ -4505,15 +4494,15 @@ var Gauge = /*#__PURE__*/function (_React$Component) {
|
|
4505
4494
|
borderRadius: '8px'
|
4506
4495
|
},
|
4507
4496
|
onMouseMove: function onMouseMove(e) {
|
4508
|
-
return
|
4497
|
+
return _this2.onMouse(e);
|
4509
4498
|
},
|
4510
4499
|
onClick: function onClick(e) {
|
4511
|
-
return
|
4500
|
+
return _this2.onMouse(e, true);
|
4512
4501
|
},
|
4513
4502
|
onMouseDown: function onMouseDown(e) {
|
4514
4503
|
e.preventDefault();
|
4515
4504
|
|
4516
|
-
|
4505
|
+
_this2.setState({
|
4517
4506
|
isActive: true
|
4518
4507
|
});
|
4519
4508
|
}
|