@energycap/components 0.26.8 → 0.26.9
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/bundles/energycap-components.umd.js +74 -9
- package/bundles/energycap-components.umd.js.map +1 -1
- package/bundles/energycap-components.umd.min.js +1 -1
- package/bundles/energycap-components.umd.min.js.map +1 -1
- package/energycap-components.metadata.json +1 -1
- package/energycap-components.min.css +1 -1
- package/esm2015/lib/components.module.js +4 -2
- package/esm2015/lib/controls/popover/popover.component.js +72 -6
- package/fesm2015/energycap-components.js +72 -5
- package/fesm2015/energycap-components.js.map +1 -1
- package/lib/controls/popover/popover.component.d.ts +24 -2
- package/package.json +1 -1
- package/src/styles/_base.scss +2 -0
|
@@ -1,4 +1,26 @@
|
|
|
1
|
-
|
|
1
|
+
import { Overlay } from '@angular/cdk/overlay';
|
|
2
|
+
import { ElementRef, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
3
|
+
export declare type PopoverContentPosition = 'top-left' | 'top-right' | 'bottom-right' | 'bottom-left';
|
|
4
|
+
export declare class PopoverComponent implements OnDestroy {
|
|
5
|
+
private overlay;
|
|
6
|
+
private viewContainerRef;
|
|
7
|
+
private elementRef;
|
|
2
8
|
icon: string;
|
|
3
|
-
contentPosition:
|
|
9
|
+
contentPosition: PopoverContentPosition;
|
|
10
|
+
iconHoverClass: string;
|
|
11
|
+
content: TemplateRef<any>;
|
|
12
|
+
private overlayRef?;
|
|
13
|
+
private contentViewRef?;
|
|
14
|
+
private contentRect?;
|
|
15
|
+
private isVisible;
|
|
16
|
+
constructor(overlay: Overlay, viewContainerRef: ViewContainerRef, elementRef: ElementRef);
|
|
17
|
+
ngOnDestroy(): void;
|
|
18
|
+
show(): void;
|
|
19
|
+
/**
|
|
20
|
+
* Hides the popover if the mouse moves outside of the popover content
|
|
21
|
+
*/
|
|
22
|
+
onMouseMove(event: MouseEvent): void;
|
|
23
|
+
private hide;
|
|
24
|
+
private getOverlayConfig;
|
|
25
|
+
private getPosition;
|
|
4
26
|
}
|
package/package.json
CHANGED