@avakhula/ui 0.0.134 → 0.0.135

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
@@ -19587,7 +19587,7 @@ class sa {
19587
19587
  }
19588
19588
  destroyTooltip(n) {
19589
19589
  var e, i;
19590
- n.removeAttribute("describedby"), this.uuid = null, (e = this.tooltipInstance) == null || e.unmount(), this.tooltipInstance = null, (i = this.tooltipContainer) == null || i.remove(), this.tooltipContainer = null;
19590
+ n == null || n.removeAttribute("describedby"), this.uuid = null, (e = this.tooltipInstance) == null || e.unmount(), this.tooltipInstance = null, (i = this.tooltipContainer) == null || i.remove(), this.tooltipContainer = null;
19591
19591
  }
19592
19592
  }
19593
19593
  const wn = new sa(), wo = (t, n) => {
@@ -216,4 +216,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
216
216
  bottom: auto!important;
217
217
  right: auto!important;
218
218
  transform: none!important;
219
- `;this.tooltipContainer.firstChild.setAttribute("style",f)}},100)}destroyTooltip(n){var e,o;n.removeAttribute("describedby"),this.uuid=null,(e=this.tooltipInstance)==null||e.unmount(),this.tooltipInstance=null,(o=this.tooltipContainer)==null||o.remove(),this.tooltipContainer=null}}const Qt=new Po,Bo=(t,n)=>{Qt.getTooltipContainer()||Qt.createTooltip(t,n.value)},Lo=(t,n)=>{const e=Qt.getId();if(n.getAttribute("describedby")!==e)return;const o=Qt.getTooltipContainer(),a=n!==t.target&&!n.contains(t.target),r=o!==t.target&&!(o!=null&&o.contains(t.target));a&&r&&Qt.destroyTooltip(n)},xh={mounted(t,n){t.addEventListener("mouseenter",()=>Bo(t,n)),document.addEventListener("mousemove",e=>Lo(e,t))},beforeUnmount(t,n){Qt.destroyTooltip(),t.removeEventListener("mouseenter",()=>Bo(t,n)),document.removeEventListener("mousemove",e=>Lo(e,t))}},Ur=new Po,Ro=(t,n)=>{Si(t)&&Ur.createTooltip(t,n.value)},jo=()=>{Ur.destroyTooltip()},Th={mounted(t,n){t.addEventListener("mouseenter",()=>Ro(t,n)),t.addEventListener("mouseleave",jo)},beforeUnmount(t,n){Ur.destroyTooltip(),t.removeEventListener("mouseenter",()=>Ro(t,n)),t.removeEventListener("mouseleave",jo)}};pe.IbAccordion=Go,pe.IbAlert=Mt,pe.IbAvatar=ba,pe.IbBadge=wa,pe.IbBreadcrumbs=Zl,pe.IbButton=gi,pe.IbButtonGroup=Ea,pe.IbCell=Mo,pe.IbCheckbox=vr,pe.IbCheckboxCell=Nh,pe.IbCheckboxGroup=$d,pe.IbDatePicker=sc,pe.IbDropdown=Ln,pe.IbDropdownItem=mr,pe.IbDropdownList=Rn,pe.IbFormGroup=yd,pe.IbIcon=Le,pe.IbIconButton=ut,pe.IbInput=yr,pe.IbLabel=dn,pe.IbLimitSelector=Ti,pe.IbModal=vl,pe.IbPagination=Ks,pe.IbPanel=hd,pe.IbPhoneInput=Of,pe.IbPopover=yi,pe.IbProgressBar=Xs,pe.IbRadio=xd,pe.IbRow=wh,pe.IbSorting=Fl,pe.IbSplitButton=cl,pe.IbSplitButtonItem=hl,pe.IbStatusIndicator=id,pe.IbTab=Il,pe.IbTabDropdown=Oi,pe.IbTable=vh,pe.IbTabs=Tl,pe.IbTagPill=xa,pe.IbTextEditor=hh,pe.IbTextarea=Vd,pe.IbToggle=Ei,pe.IbToggleTip=Ba,pe.IbTooltip=Ct,pe.IbTreeSelect=xi,pe.OutsideDirective=Pn,pe.TextOverflowTooltipDirective=Th,pe.TooltipDirective=xh,Object.defineProperty(pe,Symbol.toStringTag,{value:"Module"})});
219
+ `;this.tooltipContainer.firstChild.setAttribute("style",f)}},100)}destroyTooltip(n){var e,o;n==null||n.removeAttribute("describedby"),this.uuid=null,(e=this.tooltipInstance)==null||e.unmount(),this.tooltipInstance=null,(o=this.tooltipContainer)==null||o.remove(),this.tooltipContainer=null}}const Qt=new Po,Bo=(t,n)=>{Qt.getTooltipContainer()||Qt.createTooltip(t,n.value)},Lo=(t,n)=>{const e=Qt.getId();if(n.getAttribute("describedby")!==e)return;const o=Qt.getTooltipContainer(),a=n!==t.target&&!n.contains(t.target),r=o!==t.target&&!(o!=null&&o.contains(t.target));a&&r&&Qt.destroyTooltip(n)},xh={mounted(t,n){t.addEventListener("mouseenter",()=>Bo(t,n)),document.addEventListener("mousemove",e=>Lo(e,t))},beforeUnmount(t,n){Qt.destroyTooltip(),t.removeEventListener("mouseenter",()=>Bo(t,n)),document.removeEventListener("mousemove",e=>Lo(e,t))}},Ur=new Po,Ro=(t,n)=>{Si(t)&&Ur.createTooltip(t,n.value)},jo=()=>{Ur.destroyTooltip()},Th={mounted(t,n){t.addEventListener("mouseenter",()=>Ro(t,n)),t.addEventListener("mouseleave",jo)},beforeUnmount(t,n){Ur.destroyTooltip(),t.removeEventListener("mouseenter",()=>Ro(t,n)),t.removeEventListener("mouseleave",jo)}};pe.IbAccordion=Go,pe.IbAlert=Mt,pe.IbAvatar=ba,pe.IbBadge=wa,pe.IbBreadcrumbs=Zl,pe.IbButton=gi,pe.IbButtonGroup=Ea,pe.IbCell=Mo,pe.IbCheckbox=vr,pe.IbCheckboxCell=Nh,pe.IbCheckboxGroup=$d,pe.IbDatePicker=sc,pe.IbDropdown=Ln,pe.IbDropdownItem=mr,pe.IbDropdownList=Rn,pe.IbFormGroup=yd,pe.IbIcon=Le,pe.IbIconButton=ut,pe.IbInput=yr,pe.IbLabel=dn,pe.IbLimitSelector=Ti,pe.IbModal=vl,pe.IbPagination=Ks,pe.IbPanel=hd,pe.IbPhoneInput=Of,pe.IbPopover=yi,pe.IbProgressBar=Xs,pe.IbRadio=xd,pe.IbRow=wh,pe.IbSorting=Fl,pe.IbSplitButton=cl,pe.IbSplitButtonItem=hl,pe.IbStatusIndicator=id,pe.IbTab=Il,pe.IbTabDropdown=Oi,pe.IbTable=vh,pe.IbTabs=Tl,pe.IbTagPill=xa,pe.IbTextEditor=hh,pe.IbTextarea=Vd,pe.IbToggle=Ei,pe.IbToggleTip=Ba,pe.IbTooltip=Ct,pe.IbTreeSelect=xi,pe.OutsideDirective=Pn,pe.TextOverflowTooltipDirective=Th,pe.TooltipDirective=xh,Object.defineProperty(pe,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avakhula/ui",
3
- "version": "0.0.134",
3
+ "version": "0.0.135",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.umd.cjs",
6
6
  "source": "src/index.js",
@@ -72,7 +72,7 @@ export default class Tooltip {
72
72
  }
73
73
 
74
74
  destroyTooltip(el) {
75
- el.removeAttribute("describedby");
75
+ el?.removeAttribute("describedby");
76
76
  this.uuid = null;
77
77
  this.tooltipInstance?.unmount();
78
78
  this.tooltipInstance = null;