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