@klippa/ngx-enhancy-forms 20.0.8 → 20.0.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.
|
@@ -2946,6 +2946,10 @@ class WithTooltipDirective {
|
|
|
2946
2946
|
if (getComputedStyle(el.nativeElement).position === 'static') {
|
|
2947
2947
|
el.nativeElement.style.position = 'relative';
|
|
2948
2948
|
}
|
|
2949
|
+
this.hookDiv = document.createElement('div');
|
|
2950
|
+
this.hookDiv.style.position = 'absolute';
|
|
2951
|
+
this.hookDiv.style.transform = 'translate(0, 0)';
|
|
2952
|
+
el.nativeElement.prepend(this.hookDiv);
|
|
2949
2953
|
this.div = document.createElement('div');
|
|
2950
2954
|
this.div.style.zIndex = `${zIndexStart + 2}`;
|
|
2951
2955
|
this.div.style.color = `${colors[this.klpWithTooltip].noAlpha}`;
|
|
@@ -2982,7 +2986,7 @@ class WithTooltipDirective {
|
|
|
2982
2986
|
this.div.style.visibility = 'visible';
|
|
2983
2987
|
});
|
|
2984
2988
|
}
|
|
2985
|
-
|
|
2989
|
+
this.hookDiv.prepend(this.div);
|
|
2986
2990
|
this.triangle = document.createElement('div');
|
|
2987
2991
|
this.triangle.style.zIndex = `${zIndexStart + 1}`;
|
|
2988
2992
|
this.triangle.style.position = 'fixed';
|
|
@@ -2997,7 +3001,7 @@ class WithTooltipDirective {
|
|
|
2997
3001
|
this.triangle.style.borderLeft = `${triangleSize} solid transparent`;
|
|
2998
3002
|
this.triangle.style.borderRight = `${triangleSize} solid transparent`;
|
|
2999
3003
|
this.triangle.style.borderTop = `${triangleSize} solid ${colors[this.klpWithTooltip].withAlpha}`;
|
|
3000
|
-
|
|
3004
|
+
this.hookDiv.prepend(this.triangle);
|
|
3001
3005
|
this.triangleWhite = document.createElement('div');
|
|
3002
3006
|
this.triangleWhite.style.zIndex = `${zIndexStart + 3}`;
|
|
3003
3007
|
this.triangleWhite.style.position = 'fixed';
|
|
@@ -3022,7 +3026,7 @@ class WithTooltipDirective {
|
|
|
3022
3026
|
this.div.style.visibility = 'visible';
|
|
3023
3027
|
});
|
|
3024
3028
|
}
|
|
3025
|
-
|
|
3029
|
+
this.hookDiv.prepend(this.triangleWhite);
|
|
3026
3030
|
});
|
|
3027
3031
|
el.nativeElement.addEventListener('mouseleave', () => {
|
|
3028
3032
|
if (this.tooltipTemplate) {
|
|
@@ -3040,6 +3044,10 @@ class WithTooltipDirective {
|
|
|
3040
3044
|
el.nativeElement.removeChild(this.triangleWhite);
|
|
3041
3045
|
}
|
|
3042
3046
|
catch (ex) { }
|
|
3047
|
+
try {
|
|
3048
|
+
el.nativeElement.removeChild(this.hookDiv);
|
|
3049
|
+
}
|
|
3050
|
+
catch (ex) { }
|
|
3043
3051
|
});
|
|
3044
3052
|
});
|
|
3045
3053
|
}
|