2 lines
20 KiB
JavaScript
2 lines
20 KiB
JavaScript
|
"use strict";(self["webpackChunkcmc_fe"]=self["webpackChunkcmc_fe"]||[]).push([[165],{348:function(){},2816:function(e,l,t){t.d(l,{_:function(){return u}});var n=t(3396),a=t(9242),i=t(8952),r=t(4906),o=t(320),s=t(9888);const u=(0,o.a)({name:"VCounter",functional:!0,props:{active:Boolean,max:[Number,String],value:{type:[Number,String],default:0},...(0,r.X)({transition:{component:i.cu}})},setup(e,l){let{slots:t}=l;const i=(0,n.Fl)((()=>e.max?`${e.value} / ${e.max}`:String(e.value)));return(0,s.L)((()=>(0,n.Wm)(r.J,{transition:e.transition},{default:()=>[(0,n.wy)((0,n.Wm)("div",{class:"v-counter"},[t.default?t.default({counter:i.value,max:e.max,value:e.value}):i.value]),[[a.F8,e.active]])]}))),{}}})},7173:function(e,l,t){t.d(l,{hF:function(){return V},g8:function(){return W},hy:function(){return C}});var n=t(3396),a=t(9242),i=t(8952),r=t(6308),o=t(7302),s=t(320),u=t(9888);const d=(0,s.a)({name:"VFieldLabel",props:{floating:Boolean},setup(e,l){let{slots:t}=l;return(0,u.L)((()=>(0,n.Wm)(o.J,{class:["v-field-label",{"v-field-label--floating":e.floating}],"aria-hidden":e.floating||void 0},t))),{}}});var c=t(4960),v=t(1710),f=t(8969),p=t(7041),m=t(2370),g=t(4870),y=t(3766),h=t(131),b=t(7514),x=t(3122),F=t(8587);const k=["underlined","outlined","filled","solo","plain"],C=(0,y.U)({appendInnerIcon:c.lE,bgColor:String,clearable:Boolean,clearIcon:{type:c.lE,default:"$clear"},active:Boolean,color:String,dirty:Boolean,disabled:Boolean,error:Boolean,label:String,persistentClear:Boolean,prependInnerIcon:c.lE,reverse:Boolean,singleLine:Boolean,variant:{type:String,default:"filled",validator:e=>k.includes(e)},"onClick:clear":h.as,"onClick:appendInner":h.as,"onClick:prependInner":h.as,...(0,p.x$)(),...(0,v.fF)()},"v-field"),V=(0,s.e)()({name:"VField",inheritAttrs:!1,props:{id:String,...(0,f.B)(),...C()},emits:{"click:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,l){let{attrs:t,emit:o,slots:s}=l;const{themeClasses:c}=(0,p.ER)(e),{loaderClasses:y}=(0,v.U2)(e),{focusClasses:k,isFocused:C,focus:V,blur:W}=(0,f.K)(e),{InputIcon:_}=(0,r.v)(e),I=(0,n.Fl)((()=>e.dirty||e.active)),S=(0,n.Fl)((()=>!e.singleLine&&!(!e.label&&!s.label))),w=(0,b.sq)(),B=(0,n.Fl)((()=>e.id||`input-${w}`)),P=(0,g.iH)(),$=(0,g.iH)(),D=(0,g.iH)(),{backgroundColorClasses:R,backgroundColorStyles:O}=(0,m.Y5)((0,g.Vh)(e,"bgColor")),{textColorClasses:H,textColorStyles:M}=(0,m.rY)((0,n.Fl)((()=>I.value&&C.value&&!e.error&&!e.disabled?e.color:void 0)));(0,n.YP)(I,(e=>{if(S.value){const l=P.value.$el,t=$.value.$el,n=(0,x.G)(l),a=t.getBoundingClientRect(),i=a.x-n.x,r=a.y-n.y-(n.height/2-a.height/2),o=a.width/.75,s=Math.abs(o-n.width)>1?{maxWidth:(0,h.kb)(o)}:void 0,u=getComputedStyle(l),d=getComputedStyle(t),c=1e3*parseFloat(u.transitionDuration)||150,v=parseFloat(d.getPropertyValue("--v-field-label-scale")),f=d.getPropertyValue("color");l.style.visibility="visible",t.style.visibility="hidden",(0,x.j)(l,{transform:`translate(${i}px, ${r}px) scale(${v})`,color:f,...s},{duration:c,easing:F.Ly,direction:e?"normal":"reverse"}).finished.then((()=>{l.style.removeProperty("visibility"),t.style.removeProperty("visibility")}))}}),{flush:"post"});const L=(0,n.Fl)((()=>({isActive:I,isFocused:C,controlRef:D,blur:W,focus:V})));function E(e){e.target!==document.activeElement&&e.preventDefault(),o("click:control",e)}return(0,u.L)((()=>{var l,r,o;const u="outlined"===e.variant,f=s["prepend-inner"]||e.prependInnerIcon,p=!(!e.clearable&&!s.clear),m=!!(s["append-inner"]||e.appendInnerIcon||p),g=s.label?s.label({label:e.label,props:{for:B.value}}):e.label;return(0,n.Wm)("div",(0,n.dG)({class:["v-field",{"v-field--active":I.value,"v-field--appended":m,"v-field--disabled":e.disabled,"v-field--dirty":e.dirty,"v-field--error":e.error,"v-field--has-background":!!e.bgColor,"v-field--persistent-clear":e.persistentClear,"v-field--prepended":f,"v-field--reverse":e.reverse,"v-field--single-line":e.singleLine,"v-field--no-label":!g,[`v-field--variant-${e.variant}`]:!0},c.value,R.value,k.value,y.value],style:[O.value,M.value],onClick:E},t),[(0,n.Wm)("div",{class:"v-field__overlay"},null)
|
||
|
//# sourceMappingURL=165.211e8e0a.js.map
|