@progress/kendo-react-charts 5.20.0-dev.202310031640 → 5.20.0-dev.202310040609

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.
@@ -5,7 +5,7 @@ export var packageMetadata = {
5
5
  name: '@progress/kendo-react-charts',
6
6
  productName: 'KendoReact',
7
7
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
8
- publishDate: 1696348988,
8
+ publishDate: 1696397576,
9
9
  version: '',
10
10
  licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
11
11
  };
@@ -27,4 +27,5 @@ export declare class TooltipPopup extends React.Component<TooltipPopupProps, {}>
27
27
  componentWillUnmount(): void;
28
28
  onChartMouseLeave: (e: DomEvent<React.MouseEvent<HTMLDivElement>>) => boolean;
29
29
  onMouseLeave: (e: React.MouseEvent<HTMLDivElement>) => void;
30
+ private popupRef;
30
31
  }
@@ -46,6 +46,15 @@ var TooltipPopup = /** @class */ (function (_super) {
46
46
  e.preventDefault();
47
47
  }
48
48
  };
49
+ _this.popupRef = function (el) {
50
+ _this.element = el;
51
+ var parent = el && el.closest('.k-animation-container');
52
+ if (parent) {
53
+ // Transition's added from the themes and tooltip shows with animation
54
+ // from left side of the page which looks very strange
55
+ parent.style.transition = 'initial';
56
+ }
57
+ };
49
58
  _this.chartObserver = new InstanceObserver(_this, {
50
59
  onMouseLeave: 'onChartMouseLeave'
51
60
  });
@@ -56,11 +65,10 @@ var TooltipPopup = /** @class */ (function (_super) {
56
65
  return _this;
57
66
  }
58
67
  TooltipPopup.prototype.render = function () {
59
- var _this = this;
60
68
  var _a = this.props, popupShown = _a.popupShown, popupAlign = _a.popupAlign, popupOffset = _a.popupOffset, popupStyles = _a.popupStyles, popupContent = _a.popupContent, className = _a.className;
61
69
  var wrapperClass = [TOOLTIP_CLASS, className].join(' ').trim();
62
- var popupComponent = (React.createElement(Popup, { animate: { openDuration: 100, closeDuration: 0 }, popupAlign: popupAlign, offset: popupOffset, show: popupShown, collision: COLLISION, className: POPUP_WRAPPER_CLASS },
63
- React.createElement("div", { className: wrapperClass, style: popupStyles, onMouseLeave: this.onMouseLeave, ref: function (el) { return _this.element = el; } }, popupContent())));
70
+ var popupComponent = (React.createElement(Popup, { animate: false, popupAlign: popupAlign, offset: popupOffset, show: popupShown, collision: COLLISION, className: POPUP_WRAPPER_CLASS },
71
+ React.createElement("div", { className: wrapperClass, style: popupStyles, onMouseLeave: this.onMouseLeave, ref: this.popupRef }, popupContent())));
64
72
  return popupComponent;
65
73
  };
66
74
  TooltipPopup.prototype.componentWillUnmount = function () {
@@ -8,7 +8,7 @@ exports.packageMetadata = {
8
8
  name: '@progress/kendo-react-charts',
9
9
  productName: 'KendoReact',
10
10
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
11
- publishDate: 1696348988,
11
+ publishDate: 1696397576,
12
12
  version: '',
13
13
  licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
14
14
  };
@@ -27,4 +27,5 @@ export declare class TooltipPopup extends React.Component<TooltipPopupProps, {}>
27
27
  componentWillUnmount(): void;
28
28
  onChartMouseLeave: (e: DomEvent<React.MouseEvent<HTMLDivElement>>) => boolean;
29
29
  onMouseLeave: (e: React.MouseEvent<HTMLDivElement>) => void;
30
+ private popupRef;
30
31
  }
@@ -49,6 +49,15 @@ var TooltipPopup = /** @class */ (function (_super) {
49
49
  e.preventDefault();
50
50
  }
51
51
  };
52
+ _this.popupRef = function (el) {
53
+ _this.element = el;
54
+ var parent = el && el.closest('.k-animation-container');
55
+ if (parent) {
56
+ // Transition's added from the themes and tooltip shows with animation
57
+ // from left side of the page which looks very strange
58
+ parent.style.transition = 'initial';
59
+ }
60
+ };
52
61
  _this.chartObserver = new kendo_charts_1.InstanceObserver(_this, {
53
62
  onMouseLeave: 'onChartMouseLeave'
54
63
  });
@@ -59,11 +68,10 @@ var TooltipPopup = /** @class */ (function (_super) {
59
68
  return _this;
60
69
  }
61
70
  TooltipPopup.prototype.render = function () {
62
- var _this = this;
63
71
  var _a = this.props, popupShown = _a.popupShown, popupAlign = _a.popupAlign, popupOffset = _a.popupOffset, popupStyles = _a.popupStyles, popupContent = _a.popupContent, className = _a.className;
64
72
  var wrapperClass = [TOOLTIP_CLASS, className].join(' ').trim();
65
- var popupComponent = (React.createElement(kendo_react_popup_1.Popup, { animate: { openDuration: 100, closeDuration: 0 }, popupAlign: popupAlign, offset: popupOffset, show: popupShown, collision: COLLISION, className: POPUP_WRAPPER_CLASS },
66
- React.createElement("div", { className: wrapperClass, style: popupStyles, onMouseLeave: this.onMouseLeave, ref: function (el) { return _this.element = el; } }, popupContent())));
73
+ var popupComponent = (React.createElement(kendo_react_popup_1.Popup, { animate: false, popupAlign: popupAlign, offset: popupOffset, show: popupShown, collision: COLLISION, className: POPUP_WRAPPER_CLASS },
74
+ React.createElement("div", { className: wrapperClass, style: popupStyles, onMouseLeave: this.onMouseLeave, ref: this.popupRef }, popupContent())));
67
75
  return popupComponent;
68
76
  };
69
77
  TooltipPopup.prototype.componentWillUnmount = function () {