@avakhula/ui 0.0.505-alpha.17 → 0.0.505-alpha.19
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/dist/index.js
CHANGED
|
@@ -2443,6 +2443,7 @@ class xa {
|
|
|
2443
2443
|
position: absolute;
|
|
2444
2444
|
top: 0px;
|
|
2445
2445
|
left: 0px;
|
|
2446
|
+
opacity: 0;
|
|
2446
2447
|
`;
|
|
2447
2448
|
this.tooltipContainer = document.createElement("div"), this.tooltipContainer.setAttribute("style", o), document.body.appendChild(this.tooltipContainer), this.tooltipInstance = tl(li, {
|
|
2448
2449
|
title: e.title,
|
|
@@ -2455,7 +2456,7 @@ class xa {
|
|
|
2455
2456
|
if ((a = this.tooltipContainer) != null && a.firstChild) {
|
|
2456
2457
|
n.setAttribute("aria-describedby", this.uuid);
|
|
2457
2458
|
const l = this.getPositionStyle(n, r);
|
|
2458
|
-
this.tooltipContainer.firstChild.setAttribute("style", l);
|
|
2459
|
+
this.tooltipContainer.firstChild.setAttribute("style", l), this.tooltipContainer.setAttribute("style", { opacity: 1 });
|
|
2459
2460
|
}
|
|
2460
2461
|
}, 100);
|
|
2461
2462
|
}
|
package/dist/index.umd.cjs
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
position: absolute;
|
|
3
3
|
top: 0px;
|
|
4
4
|
left: 0px;
|
|
5
|
-
|
|
5
|
+
opacity: 0;
|
|
6
|
+
`;this.tooltipContainer=document.createElement("div"),this.tooltipContainer.setAttribute("style",a),document.body.appendChild(this.tooltipContainer),this.tooltipInstance=i.createApp(an,{title:e.title,text:e.text,alwaysVisible:!0,for:this.uuid,class:this.getClassList(o)}),this.tooltipInstance.mount(this.tooltipContainer),setTimeout(()=>{var l;if((l=this.tooltipContainer)!=null&&l.firstChild){n.setAttribute("aria-describedby",this.uuid);const s=this.getPositionStyle(n,o);this.tooltipContainer.firstChild.setAttribute("style",s),this.tooltipContainer.setAttribute("style",{opacity:1})}},100)}destroyTooltip(n){var e,o;n==null||n.removeAttribute("aria-describedby"),this.uuid=null,(e=this.tooltipInstance)==null||e.unmount(),this.tooltipInstance=null,(o=this.tooltipContainer)==null||o.remove(),this.tooltipContainer=null}getPositionStyle(n,e){const{top:o,bottom:a,left:r,right:l,width:s,height:c}=n.getBoundingClientRect(),{width:h,height:p}=this.tooltipContainer.firstChild.getBoundingClientRect(),f=document.documentElement.scrollTop;let d=`
|
|
6
7
|
bottom: auto!important;
|
|
7
8
|
right: auto!important;
|
|
8
9
|
transform: none!important;
|