UNPKG

p3x-redis-ui-material

Version:

💿 P3X Redis UI triple frontend — Angular + React/MUI + Vue/Vuetify with 54 languages, 7 themes, Socket.IO, desktop notifications, and full feature parity

1 lines • 3.72 kB
import{F as e,I as t,c as n,s as r,u as i}from"./i18n.store-Bn0-vXNV.js";import{Pt as a,Vt as o,ir as s}from"./_plugin-vue_export-helper-CSr60JSh.js";t(),i();var c=o({disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:String,origin:String},`transition`);function l(t,i,o){return a()({name:t,props:c({mode:o,origin:i}),setup(i,{slots:a}){let o={onBeforeEnter(e){i.origin&&(e.style.transformOrigin=i.origin)},onLeave(e){if(i.leaveAbsolute){let{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:i}=e;e._transitionInitialStyles={position:e.style.position,top:e.style.top,left:e.style.left,width:e.style.width,height:e.style.height},e.style.position=`absolute`,e.style.top=`${t}px`,e.style.left=`${n}px`,e.style.width=`${r}px`,e.style.height=`${i}px`}i.hideOnLeave&&e.style.setProperty(`display`,`none`,`important`)},onAfterLeave(e){if(i.leaveAbsolute&&e?._transitionInitialStyles){let{position:t,top:n,left:r,width:i,height:a}=e._transitionInitialStyles;delete e._transitionInitialStyles,e.style.position=t||``,e.style.top=n||``,e.style.left=r||``,e.style.width=i||``,e.style.height=a||``}}};return()=>{let s=i.group?n:r;return e(s,{name:i.disabled?``:t,css:!i.disabled,...i.group?void 0:{mode:i.mode},...i.disabled?{}:o},a.default)}}})}function u(t,i,o=`in-out`){return a()({name:t,props:{mode:{type:String,default:o},disabled:{type:Boolean,default:s()},group:Boolean,hideOnLeave:Boolean},setup(a,{slots:o}){let s=a.group?n:r;return()=>e(s,{name:a.disabled?``:t,css:!a.disabled,...a.disabled?{}:{...i,onLeave:e=>{a.hideOnLeave?e.style.setProperty(`display`,`none`,`important`):i.onLeave?.(e)}}},o.default)}})}function d(e=``,t=`y`){return{onBeforeEnter(e){e._parent=e.parentNode,e._initialStyle={transition:e.style.transition,overflow:e.style.overflow,width:e.style.width,height:e.style.height}},onEnter(n){let r=n._initialStyle;if(!r)return;n.style.setProperty(`transition`,`none`,`important`),n.style.overflow=`hidden`;let i=`${n.offsetWidth}px`,a=`${n.offsetHeight}px`;[`x`,`both`].includes(t)&&(n.style.width=`0`),[`y`,`both`].includes(t)&&(n.style.height=`0`),n.offsetHeight,n.style.transition=r.transition,e&&n._parent&&n._parent.classList.add(e),requestAnimationFrame(()=>{[`x`,`both`].includes(t)&&(n.style.width=i),[`y`,`both`].includes(t)&&(n.style.height=a)})},onAfterEnter:r,onEnterCancelled:r,onLeave(e){e._initialStyle={transition:``,overflow:e.style.overflow,width:e.style.width,height:e.style.height},e.style.overflow=`hidden`,[`x`,`both`].includes(t)&&(e.style.width=`${e.offsetWidth}px`),[`y`,`both`].includes(t)&&(e.style.height=`${e.offsetHeight}px`),e.offsetHeight,requestAnimationFrame(()=>{[`x`,`both`].includes(t)&&(e.style.width=`0`),[`y`,`both`].includes(t)&&(e.style.height=`0`)})},onAfterLeave:n,onLeaveCancelled:n};function n(t){e&&t._parent&&t._parent.classList.remove(e),r(t)}function r(e){if(!e._initialStyle)return;let{width:n,height:r}=e._initialStyle;e.style.overflow=e._initialStyle.overflow,n!=null&&[`x`,`both`].includes(t)&&(e.style.width=n),r!=null&&[`y`,`both`].includes(t)&&(e.style.height=r),delete e._initialStyle}}var f=l(`fab-transition`,`center center`,`out-in`),p=l(`dialog-bottom-transition`),m=l(`dialog-top-transition`),h=l(`fade-transition`),g=l(`scale-transition`),_=l(`scroll-x-transition`),v=l(`scroll-x-reverse-transition`),y=l(`scroll-y-transition`),b=l(`scroll-y-reverse-transition`),x=l(`slide-x-transition`),S=l(`slide-x-reverse-transition`),C=l(`slide-y-transition`),w=l(`slide-y-reverse-transition`),T=u(`expand-transition`,d()),E=u(`expand-x-transition`,d(``,`x`)),D=u(`expand-both-transition`,d(``,`both`));export{E as a,g as c,b as d,y as f,C as g,w as h,T as i,v as l,x as m,m as n,f as o,S as p,D as r,h as s,p as t,_ as u};