@nubisco/ui 1.38.0 → 1.38.1
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolTip.directive.d.ts","sourceRoot":"","sources":["../../src/directives/ToolTip.directive.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAoB,MAAM,KAAK,CAAA;AAEhD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAehE,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,iBAAiB,CAAC,CAAA;IACxC,MAAM,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,iBAAiB,CAAC,CAAA;IAC1C,GAAG,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,iBAAiB,CAAC,CAAA;IACvC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAA;IACzD,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAuDD,QAAA,MAAM,gBAAgB,GAAI,KAAK,GAAG,SAoEjC,CAAA;
|
|
1
|
+
{"version":3,"file":"ToolTip.directive.d.ts","sourceRoot":"","sources":["../../src/directives/ToolTip.directive.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAoB,MAAM,KAAK,CAAA;AAEhD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAehE,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,iBAAiB,CAAC,CAAA;IACxC,MAAM,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,iBAAiB,CAAC,CAAA;IAC1C,GAAG,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,iBAAiB,CAAC,CAAA;IACvC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAA;IACzD,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAuDD,QAAA,MAAM,gBAAgB,GAAI,KAAK,GAAG,SAoEjC,CAAA;AAsKD,eAAe,gBAAgB,CAAA"}
|
package/dist/index.cjs
CHANGED
|
@@ -10,5 +10,5 @@ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guid
|
|
|
10
10
|
<div class="nb-tooltip-body">${q9(t)}</div>
|
|
11
11
|
<div class="nb-tooltip-tip">${q9(n)}</div>
|
|
12
12
|
</div>
|
|
13
|
-
`,OZt=(e,{header:t,body:n,tip:r,flavor:i=`default`,delay:a=400,animationTime:o=300,position:s,overflowOnly:c,classExtra:l})=>{let u=e.tooltipElement;if(u&&u.remove(),c){let t=e.getBoundingClientRect();if(!(Math.round(t.width)<Math.round(e.scrollWidth)))return}(n||t||r)&&(e.__showTimer__=setTimeout(()=>{let a=document.createElement(`span`);a.style.transition=`opacity ${o}ms ease-in-out`,a.className=`nb-tooltip nb-tooltip-${s} ${i?`nb-tooltip-flavor-${i}`:``} ${l||``}`,a.innerHTML=Y9({header:t,body:n,tip:r}),a.style.animation=`tooltipAppear ${o}ms ease-in-out forwards`,e.tooltipElement=a,G9.add(e),document.body.appendChild(a),Z9(e,a,s)},a))},X9=(e,t=!1)=>{let n=e.tooltipElement;clearTimeout(e.__showTimer__),n&&(t?n.remove():(n.style.animation=`tooltipDisappear 200ms ease-in-out forwards`,setTimeout(()=>{n.remove()},200)),G9.delete(e))},kZt=(e,{header:t,body:n,tip:r,position:i})=>{let a=e.tooltipElement;a&&(a.innerHTML=Y9({header:t,body:n,tip:r}),Z9(e,a,i))},Z9=(e,t,n)=>{let r=e.getBoundingClientRect(),i=t?.getBoundingClientRect(),a=i?.width||0,o=i?.height||0,s=e.scrollTop,c=e.scrollLeft,l,u;switch(n){case`top`:l=r.top-(o+8)-s,u=r.left+r.width/2-(a/2+4/2)-c;break;case`bottom`:l=r.bottom+4-s,u=r.left+r.width/2-(a/2+4/2)-c;break;case`left`:l=r.top+r.height/2-o/2-s,u=r.left-(a+8)-c;break;case`right`:l=r.top+r.height/2-o/2-s,u=r.right+4-c;break;default:l=(e.__mouseY__??0)+4,u=(e.__mouseX__??0)+4;break}t&&(t.style.top=`${l}px`,t.style.left=`${u}px`)},AZt=Object.assign({"./ContextMenu.directive.ts":TZt,"./ToolTip.directive.ts":DZt}),jZt={install(e){Object.values(AZt).forEach(t=>{typeof t.default==`function`&&t.default(e)})}},Q9={install(e){let t=GJt();e.provide(f9,t)}};function MZt(){let e=(0,l.ref)(!1),t=(0,l.ref)({x:0,y:0});function n(n){n.preventDefault(),t.value={x:n.clientX,y:n.clientY},e.value=!0}function r(){e.value=!1}function i(n,r){t.value={x:n,y:r},e.value=!0}return{isOpen:e,position:t,onContextMenu:n,open:i,close:r}}var $9=Object.assign({}),NZt={install(e){Object.keys($9).forEach(t=>{let n=`Nb${t.replace(/(.+\/)(\w+)(\.vue)$/,`$2`)}`,r=$9[t];e.component(n,r.default)})}},PZt={install(e){e.use(wZt),e.use(jZt),e.use(Q9)}};exports.NbBadge=y,exports.NbBarChart=he,exports.NbBlueprint=H9,exports.NbBlueprintCard=U9,exports.NbBoard=Oe,exports.NbBottomPanel=I9,exports.NbBreadcrumbs=Pe,exports.NbButton=F8,exports.NbCalendar=I8,exports.NbCheckbox=H8,exports.NbColorStrip=U8,exports.NbCommandPalette=p9,exports.NbCommandPalettePlugin=Q9,exports.NbDatePicker=V8,exports.NbFlag=J8,exports.NbGanttChart=q8,exports.NbGrid=B8,exports.NbIcon=H,exports.NbInterpolationChart=X8,exports.NbJsonTree=i9,exports.NbLabel=R8,exports.NbLineChart=a9,exports.NbMenu=o9,exports.NbMenuBar=s9,exports.NbMenuBarItem=c9,exports.NbMenuDivider=u9,exports.NbMenuItem=l9,exports.NbMessage=U,exports.NbModal=m9,exports.NbNumberInput=h9,exports.NbPanel=g9,exports.NbPieChart=_9,exports.NbRadio=y9,exports.NbSelect=b9,exports.NbShell=x9,exports.NbShellPanel=L9,exports.NbSidebarLink=S9,exports.NbSlider=C9,exports.NbSparkline=E9,exports.NbSubmenu=d9,exports.NbSwitch=k9,exports.NbTextInput=A9,exports.NbToast=j9,exports.NbTree=P9,exports.NbTreeNode=F9,exports.NubiscoUILabs=NZt,exports.default=PZt,exports.nbTooltipDirective=J9,exports.t=c,exports.useCommandPalette=KJt,exports.useContextMenu=MZt;
|
|
13
|
+
`,OZt=(e,{header:t,body:n,tip:r,flavor:i=`default`,delay:a=400,animationTime:o=300,position:s,overflowOnly:c,classExtra:l})=>{let u=e.tooltipElement;if(u&&u.remove(),c){let t=e.getBoundingClientRect();if(!(Math.round(t.width)<Math.round(e.scrollWidth)))return}(n||t||r)&&(e.__showTimer__=setTimeout(()=>{let a=document.createElement(`span`);a.style.transition=`opacity ${o}ms ease-in-out`,a.className=`nb-tooltip nb-tooltip-${s} ${i?`nb-tooltip-flavor-${i}`:``} ${l||``}`,a.innerHTML=Y9({header:t,body:n,tip:r}),a.style.animation=`tooltipAppear ${o}ms ease-in-out forwards`,e.tooltipElement=a,G9.add(e),document.body.appendChild(a),Z9(e,a,s)},a))},X9=(e,t=!1)=>{let n=e.tooltipElement;clearTimeout(e.__showTimer__),n&&(t?n.remove():(n.style.animation=`tooltipDisappear 200ms ease-in-out forwards`,setTimeout(()=>{n.remove()},200)),G9.delete(e))},kZt=(e,{header:t,body:n,tip:r,position:i})=>{let a=e.tooltipElement;a&&(a.innerHTML=Y9({header:t,body:n,tip:r}),Z9(e,a,i))},Z9=(e,t,n)=>{let r=e.getBoundingClientRect(),i=t?.getBoundingClientRect(),a=i?.width||0,o=i?.height||0,s=e.scrollTop,c=e.scrollLeft,l,u;switch(n){case`top`:l=r.top-(o+8)-s,u=r.left+r.width/2-(a/2+4/2)-c;break;case`bottom`:l=r.bottom+4-s,u=r.left+r.width/2-(a/2+4/2)-c;break;case`left`:l=r.top+r.height/2-o/2-s,u=r.left-(a+8)-c;break;case`right`:l=r.top+r.height/2-o/2-s,u=r.right+4-c;break;default:l=(e.__mouseY__??0)+4,u=(e.__mouseX__??0)+4;break}if(a>0&&o>0){let e=window.innerWidth-a-4,t=window.innerHeight-o-4;u>e&&(u=e),u<4&&(u=4),l>t&&(l=t),l<4&&(l=4)}t&&(t.style.top=`${l}px`,t.style.left=`${u}px`)},AZt=Object.assign({"./ContextMenu.directive.ts":TZt,"./ToolTip.directive.ts":DZt}),jZt={install(e){Object.values(AZt).forEach(t=>{typeof t.default==`function`&&t.default(e)})}},Q9={install(e){let t=GJt();e.provide(f9,t)}};function MZt(){let e=(0,l.ref)(!1),t=(0,l.ref)({x:0,y:0});function n(n){n.preventDefault(),t.value={x:n.clientX,y:n.clientY},e.value=!0}function r(){e.value=!1}function i(n,r){t.value={x:n,y:r},e.value=!0}return{isOpen:e,position:t,onContextMenu:n,open:i,close:r}}var $9=Object.assign({}),NZt={install(e){Object.keys($9).forEach(t=>{let n=`Nb${t.replace(/(.+\/)(\w+)(\.vue)$/,`$2`)}`,r=$9[t];e.component(n,r.default)})}},PZt={install(e){e.use(wZt),e.use(jZt),e.use(Q9)}};exports.NbBadge=y,exports.NbBarChart=he,exports.NbBlueprint=H9,exports.NbBlueprintCard=U9,exports.NbBoard=Oe,exports.NbBottomPanel=I9,exports.NbBreadcrumbs=Pe,exports.NbButton=F8,exports.NbCalendar=I8,exports.NbCheckbox=H8,exports.NbColorStrip=U8,exports.NbCommandPalette=p9,exports.NbCommandPalettePlugin=Q9,exports.NbDatePicker=V8,exports.NbFlag=J8,exports.NbGanttChart=q8,exports.NbGrid=B8,exports.NbIcon=H,exports.NbInterpolationChart=X8,exports.NbJsonTree=i9,exports.NbLabel=R8,exports.NbLineChart=a9,exports.NbMenu=o9,exports.NbMenuBar=s9,exports.NbMenuBarItem=c9,exports.NbMenuDivider=u9,exports.NbMenuItem=l9,exports.NbMessage=U,exports.NbModal=m9,exports.NbNumberInput=h9,exports.NbPanel=g9,exports.NbPieChart=_9,exports.NbRadio=y9,exports.NbSelect=b9,exports.NbShell=x9,exports.NbShellPanel=L9,exports.NbSidebarLink=S9,exports.NbSlider=C9,exports.NbSparkline=E9,exports.NbSubmenu=d9,exports.NbSwitch=k9,exports.NbTextInput=A9,exports.NbToast=j9,exports.NbTree=P9,exports.NbTreeNode=F9,exports.NubiscoUILabs=NZt,exports.default=PZt,exports.nbTooltipDirective=J9,exports.t=c,exports.useCommandPalette=KJt,exports.useContextMenu=MZt;
|
|
14
14
|
//# sourceMappingURL=index.cjs.map
|