Файловый менеджер - Редактировать - /var/www/vhosts/aviointeriors.dev1.mndrn.cloud/admin/09-07-24/assets/VTextField-55sQep-6.js
Назад
import{p as N,n as H,g as O,c as u,h as U,i as l,aC as J,aE as le,ai as Y,av as G,x as re,z as ue,y as de,ay as ce,r as B,t as fe,w as ve,l as me,F as M,j as p,ag as ye,aM as ge,u as be,a8 as xe,aD as Ce,aN as he,E as Z,a9 as Ve}from"./index-5pYLsZ_C.js";import{s as ke,S as _e,Q as Ie,A as Pe,b as Fe,B as Se,e as Be,c as we,v as Te,L as Re,P as Le,T as Ae}from"./index-3I44l8jh.js";import{f as Ee,g as $e,u as te,h as De,m as Me,V as ee}from"./VInput-DvkeRNQo.js";import{n as pe,a as Ne,s as Oe,f as Ue}from"./forwardRefs-g5bhJaRn.js";const je=N({active:Boolean,max:[Number,String],value:{type:[Number,String],default:0},...H(),...ke({transition:{component:_e}})},"VCounter"),ze=O()({name:"VCounter",functional:!0,props:je(),setup(e,g){let{slots:a}=g;const V=u(()=>e.max?`${e.value} / ${e.max}`:String(e.value));return U(()=>l(Ie,{transition:e.transition},{default:()=>[J(l("div",{class:["v-counter",e.class],style:e.style},[a.default?a.default({counter:V.value,max:e.max,value:e.value}):V.value]),[[le,e.active]])]})),{}}}),We=N({floating:Boolean,...H()},"VFieldLabel"),D=O()({name:"VFieldLabel",props:We(),setup(e,g){let{slots:a}=g;return U(()=>l(Ee,{class:["v-field-label",{"v-field-label--floating":e.floating},e.class],style:e.style,"aria-hidden":e.floating||void 0},a)),{}}}),qe=["underlined","outlined","filled","solo","solo-inverted","solo-filled","plain"],ne=N({appendInnerIcon:Y,bgColor:String,clearable:Boolean,clearIcon:{type:Y,default:"$clear"},active:Boolean,centerAffix:{type:Boolean,default:void 0},color:String,baseColor:String,dirty:Boolean,disabled:{type:Boolean,default:null},error:Boolean,flat:Boolean,label:String,persistentClear:Boolean,prependInnerIcon:Y,reverse:Boolean,singleLine:Boolean,variant:{type:String,default:"filled",validator:e=>qe.includes(e)},"onClick:clear":G(),"onClick:appendInner":G(),"onClick:prependInner":G(),...H(),...Pe(),...Fe(),...re()},"VField"),ae=O()({name:"VField",inheritAttrs:!1,props:{id:String,...$e(),...ne()},emits:{"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,g){let{attrs:a,emit:V,slots:t}=g;const{themeClasses:b}=ue(e),{loaderClasses:C}=Se(e),{focusClasses:j,isFocused:w,focus:T,blur:R}=te(e),{InputIcon:k}=De(e),{roundedClasses:z}=Be(e),{rtlClasses:L}=de(),h=u(()=>e.dirty||e.active),f=u(()=>!e.singleLine&&!!(e.label||t.label)),W=ce(),o=u(()=>e.id||`input-${W}`),q=u(()=>`${o.value}-messages`),A=B(),_=B(),E=B(),n=u(()=>["plain","underlined"].includes(e.variant)),{backgroundColorClasses:d,backgroundColorStyles:c}=we(fe(e,"bgColor")),{textColorClasses:v,textColorStyles:Q}=Te(u(()=>e.error||e.disabled?void 0:h.value&&w.value?e.color:e.baseColor));ve(h,s=>{if(f.value){const i=A.value.$el,m=_.value.$el;requestAnimationFrame(()=>{const y=pe(i),r=m.getBoundingClientRect(),P=r.x-y.x,F=r.y-y.y-(y.height/2-r.height/2),x=r.width/.75,S=Math.abs(x-y.width)>1?{maxWidth:me(x)}:void 0,$=getComputedStyle(i),K=getComputedStyle(m),ie=parseFloat($.transitionDuration)*1e3||150,oe=parseFloat(K.getPropertyValue("--v-field-label-scale")),se=K.getPropertyValue("color");i.style.visibility="visible",m.style.visibility="hidden",Ne(i,{transform:`translate(${P}px, ${F}px) scale(${oe})`,color:se,...S},{duration:ie,easing:Oe,direction:s?"normal":"reverse"}).finished.then(()=>{i.style.removeProperty("visibility"),m.style.removeProperty("visibility")})})}},{flush:"post"});const I=u(()=>({isActive:h,isFocused:w,controlRef:E,blur:R,focus:T}));function X(s){s.target!==document.activeElement&&s.preventDefault()}return U(()=>{var P,F,x;const s=e.variant==="outlined",i=t["prepend-inner"]||e.prependInnerIcon,m=!!(e.clearable||t.clear),y=!!(t["append-inner"]||e.appendInnerIcon||m),r=()=>t.label?t.label({...I.value,label:e.label,props:{for:o.value}}):e.label;return l("div",p({class:["v-field",{"v-field--active":h.value,"v-field--appended":y,"v-field--center-affix":e.centerAffix??!n.value,"v-field--disabled":e.disabled,"v-field--dirty":e.dirty,"v-field--error":e.error,"v-field--flat":e.flat,"v-field--has-background":!!e.bgColor,"v-field--persistent-clear":e.persistentClear,"v-field--prepended":i,"v-field--reverse":e.reverse,"v-field--single-line":e.singleLine,"v-field--no-label":!r(),[`v-field--variant-${e.variant}`]:!0},b.value,d.value,j.value,C.value,z.value,L.value,e.class],style:[c.value,e.style],onClick:X},a),[l("div",{class:"v-field__overlay"},null),l(Re,{name:"v-field",active:!!e.loading,color:e.error?"error":typeof e.loading=="string"?e.loading:e.color},{default:t.loader}),i&&l("div",{key:"prepend",class:"v-field__prepend-inner"},[e.prependInnerIcon&&l(k,{key:"prepend-icon",name:"prependInner"},null),(P=t["prepend-inner"])==null?void 0:P.call(t,I.value)]),l("div",{class:"v-field__field","data-no-activator":""},[["filled","solo","solo-inverted","solo-filled"].includes(e.variant)&&f.value&&l(D,{key:"floating-label",ref:_,class:[v.value],floating:!0,for:o.value,style:Q.value},{default:()=>[r()]}),l(D,{ref:A,for:o.value},{default:()=>[r()]}),(F=t.default)==null?void 0:F.call(t,{...I.value,props:{id:o.value,class:"v-field__input","aria-describedby":q.value},focus:T,blur:R})]),m&&l(Le,{key:"clear"},{default:()=>[J(l("div",{class:"v-field__clearable",onMousedown:S=>{S.preventDefault(),S.stopPropagation()}},[t.clear?t.clear():l(k,{name:"clear"},null)]),[[le,e.dirty]])]}),y&&l("div",{key:"append",class:"v-field__append-inner"},[(x=t["append-inner"])==null?void 0:x.call(t,I.value),e.appendInnerIcon&&l(k,{key:"append-icon",name:"appendInner"},null)]),l("div",{class:["v-field__outline",v.value],style:Q.value},[s&&l(M,null,[l("div",{class:"v-field__outline__start"},null),f.value&&l("div",{class:"v-field__outline__notch"},[l(D,{ref:_,floating:!0,for:o.value},{default:()=>[r()]})]),l("div",{class:"v-field__outline__end"},null)]),n.value&&f.value&&l(D,{ref:_,floating:!0,for:o.value},{default:()=>[r()]})])])}),{controlRef:E}}});function Qe(e){const g=Object.keys(ae.props).filter(a=>!ye(a)&&a!=="class"&&a!=="style");return ge(e,g)}const Xe=["color","file","time","date","datetime-local","week","month"],Ye=N({autofocus:Boolean,counter:[Boolean,Number,String],counterValue:[Number,Function],prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,suffix:String,role:String,type:{type:String,default:"text"},modelModifiers:Object,...Me(),...ne()},"VTextField"),Ze=O()({name:"VTextField",directives:{Intersect:Ae},inheritAttrs:!1,props:Ye(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,g){let{attrs:a,emit:V,slots:t}=g;const b=be(e,"modelValue"),{isFocused:C,focus:j,blur:w}=te(e),T=u(()=>typeof e.counterValue=="function"?e.counterValue(b.value):typeof e.counterValue=="number"?e.counterValue:(b.value??"").toString().length),R=u(()=>{if(a.maxlength)return a.maxlength;if(!(!e.counter||typeof e.counter!="number"&&typeof e.counter!="string"))return e.counter}),k=u(()=>["plain","underlined"].includes(e.variant));function z(n,d){var c,v;!e.autofocus||!n||(v=(c=d[0].target)==null?void 0:c.focus)==null||v.call(c)}const L=B(),h=B(),f=B(),W=u(()=>Xe.includes(e.type)||e.persistentPlaceholder||C.value||e.active);function o(){var n;f.value!==document.activeElement&&((n=f.value)==null||n.focus()),C.value||j()}function q(n){V("mousedown:control",n),n.target!==f.value&&(o(),n.preventDefault())}function A(n){o(),V("click:control",n)}function _(n){n.stopPropagation(),o(),Z(()=>{b.value=null,Ve(e["onClick:clear"],n)})}function E(n){var c;const d=n.target;if(b.value=d.value,(c=e.modelModifiers)!=null&&c.trim&&["text","search","password","tel","url"].includes(e.type)){const v=[d.selectionStart,d.selectionEnd];Z(()=>{d.selectionStart=v[0],d.selectionEnd=v[1]})}}return U(()=>{const n=!!(t.counter||e.counter!==!1&&e.counter!=null),d=!!(n||t.details),[c,v]=xe(a),{modelValue:Q,...I}=ee.filterProps(e),X=Qe(e);return l(ee,p({ref:L,modelValue:b.value,"onUpdate:modelValue":s=>b.value=s,class:["v-text-field",{"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-input--plain-underlined":k.value},e.class],style:e.style},c,I,{centerAffix:!k.value,focused:C.value}),{...t,default:s=>{let{id:i,isDisabled:m,isDirty:y,isReadonly:r,isValid:P}=s;return l(ae,p({ref:h,onMousedown:q,onClick:A,"onClick:clear":_,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"],role:e.role},X,{id:i.value,active:W.value||y.value,dirty:y.value||e.dirty,disabled:m.value,focused:C.value,error:P.value===!1}),{...t,default:F=>{let{props:{class:x,...S}}=F;const $=J(l("input",p({ref:f,value:b.value,onInput:E,autofocus:e.autofocus,readonly:r.value,disabled:m.value,name:e.name,placeholder:e.placeholder,size:1,type:e.type,onFocus:o,onBlur:w},S,v),null),[[Ce("intersect"),{handler:z},null,{once:!0}]]);return l(M,null,[e.prefix&&l("span",{class:"v-text-field__prefix"},[l("span",{class:"v-text-field__prefix__text"},[e.prefix])]),t.default?l("div",{class:x,"data-no-activator":""},[t.default(),$]):he($,{class:x}),e.suffix&&l("span",{class:"v-text-field__suffix"},[l("span",{class:"v-text-field__suffix__text"},[e.suffix])])])}})},details:d?s=>{var i;return l(M,null,[(i=t.details)==null?void 0:i.call(t,s),n&&l(M,null,[l("span",null,null),l(ze,{active:e.persistentCounter||C.value,value:T.value,max:R.value},t.counter)])])}:void 0})}),Ue({},L,h,f)}});export{Ze as V,ae as a,ze as b,Ye as c,Qe as f,ne as m};
| ver. 1.4 |
Github
|
.
| PHP 8.2.5 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка