@energycap/components 0.32.19 → 0.32.20
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/esm2020/lib/controls/popover/popover.component.mjs +17 -16
- package/esm2020/lib/display/tooltip/tooltip.service.mjs +13 -1
- package/esm2020/lib/display/tooltip-directive/tooltip.directive.mjs +26 -4
- package/fesm2015/energycap-components.mjs +131 -97
- package/fesm2015/energycap-components.mjs.map +1 -1
- package/fesm2020/energycap-components.mjs +129 -95
- package/fesm2020/energycap-components.mjs.map +1 -1
- package/lib/controls/popover/popover.component.d.ts +4 -2
- package/lib/display/tooltip/tooltip.service.d.ts +1 -0
- package/lib/display/tooltip-directive/tooltip.directive.d.ts +3 -1
- package/package.json +1 -1
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { Overlay } from '@angular/cdk/overlay';
|
|
2
2
|
import { ElementRef, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
3
3
|
import { Tag, TagType } from '../../display/tags/tag';
|
|
4
|
+
import { TooltipService } from '../../display/tooltip/tooltip.service';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare type PopoverContentPosition = 'top-left' | 'top-right' | 'bottom-right' | 'bottom-left';
|
|
6
7
|
export declare class PopoverComponent implements OnDestroy {
|
|
7
8
|
private overlay;
|
|
8
9
|
private viewContainerRef;
|
|
9
10
|
private elementRef;
|
|
11
|
+
private tooltipService;
|
|
10
12
|
/** An optional icon that, if provided, enables the popover to use it as the anchor element */
|
|
11
13
|
icon?: string;
|
|
12
14
|
/** An optional tag that, if provided, enables the popover to use it as the anchor element */
|
|
@@ -24,11 +26,11 @@ export declare class PopoverComponent implements OnDestroy {
|
|
|
24
26
|
hoverTag?: Tag;
|
|
25
27
|
private overlayRef?;
|
|
26
28
|
private contentViewRef?;
|
|
27
|
-
private contentRect
|
|
29
|
+
private contentRect;
|
|
28
30
|
private isVisible;
|
|
29
31
|
private mouseOver;
|
|
30
32
|
private interrupt;
|
|
31
|
-
constructor(overlay: Overlay, viewContainerRef: ViewContainerRef, elementRef: ElementRef);
|
|
33
|
+
constructor(overlay: Overlay, viewContainerRef: ViewContainerRef, elementRef: ElementRef, tooltipService: TooltipService);
|
|
32
34
|
/** When the popover initializes, if a new tagType is provided for the hover state of the popover,
|
|
33
35
|
* we use it to update the type of our "hoverTag" (which controls background-color of tag)
|
|
34
36
|
*/
|
|
@@ -9,6 +9,7 @@ export declare class TooltipService {
|
|
|
9
9
|
* Show a tooltip attached to a specified element
|
|
10
10
|
*/
|
|
11
11
|
show(anchor: HTMLElement, position?: TooltipPosition, options?: TooltipOptions): TooltipComponent;
|
|
12
|
+
onMove(event: MouseEvent, contentRect: DOMRect): boolean;
|
|
12
13
|
private getOverlayConfig;
|
|
13
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipService, never>;
|
|
14
15
|
static ɵprov: i0.ɵɵInjectableDeclaration<TooltipService>;
|
|
@@ -12,10 +12,12 @@ export declare class TooltipDirective implements OnInit {
|
|
|
12
12
|
private mouseOver;
|
|
13
13
|
private interrupt;
|
|
14
14
|
private hideCompleted;
|
|
15
|
-
private
|
|
15
|
+
private contentRect;
|
|
16
|
+
private tooltip?;
|
|
16
17
|
private tooltipOptions?;
|
|
17
18
|
constructor(tooltipService: TooltipService, element: ElementRef);
|
|
18
19
|
ngOnInit(): void;
|
|
20
|
+
onMouseMove(event: MouseEvent): void;
|
|
19
21
|
onMouseOver(): void;
|
|
20
22
|
onLeave(): void;
|
|
21
23
|
private checkInputsValue;
|