@energycap/components 0.32.24 → 0.32.25

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.
@@ -1,10 +1,11 @@
1
- import { ElementRef, OnInit, TemplateRef } from '@angular/core';
1
+ import { ElementRef, OnInit, Renderer2, TemplateRef } from '@angular/core';
2
2
  import { TooltipOptions, TooltipPosition } from './../tooltip/tooltip.component';
3
3
  import { TooltipService } from './../tooltip/tooltip.service';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class TooltipDirective implements OnInit {
6
6
  private tooltipService;
7
7
  private element;
8
+ private renderer2;
8
9
  tooltipConfig?: TooltipOptions;
9
10
  tooltipText?: string;
10
11
  tooltipCustomContent?: TemplateRef<any>;
@@ -15,8 +16,15 @@ export declare class TooltipDirective implements OnInit {
15
16
  private contentRect;
16
17
  private tooltip?;
17
18
  private tooltipOptions?;
18
- constructor(tooltipService: TooltipService, element: ElementRef);
19
+ /**Set when we show a tooltip, to allow us to unsubscribe to mouse move when hide fires.
20
+ * if we never showed the tooltip this will remain null and we won't have an event to unsubscribe to
21
+ */
22
+ private mouseMoveUnsubscribe;
23
+ constructor(tooltipService: TooltipService, element: ElementRef, renderer2: Renderer2);
19
24
  ngOnInit(): void;
25
+ /**Detects where the mouse is to trigger the leave/hide process
26
+ * This is a backstop protection against us missing the mouseleave event and leaving a hanging chad.
27
+ * On some browsers, and on some actions (especially scroll) the mouseLeave seems to never fire */
20
28
  onMouseMove(event: MouseEvent): void;
21
29
  onMouseOver(): void;
22
30
  onLeave(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@energycap/components",
3
- "version": "0.32.24",
3
+ "version": "0.32.25",
4
4
  "dependencies": {
5
5
  "tslib": "^2.0.0"
6
6
  },