vuetify 3.11.7 → 3.11.8

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,5 +1,5 @@
1
1
  /*!
2
- * Vuetify v3.11.7
2
+ * Vuetify v3.11.8
3
3
  * Forged by John Leider
4
4
  * Released under the MIT License.
5
5
  */
@@ -1142,9 +1142,11 @@ const{themeClasses:r}=Ca(e),{loaderClasses:i}=dn(e),{focusClasses:s,isFocused:u,
1142
1142
  t.watch(g,e=>{if(y.value&&!c()){const t=S.value.$el,a=x.value.$el
1143
1143
  requestAnimationFrame(()=>{const l=xe(t),n=a.getBoundingClientRect(),o=n.x-l.x,r=n.y-l.y-(l.height/2-n.height/2),i=n.width/.75,s=Math.abs(i-l.width)>1?{maxWidth:b(i)}:void 0,u=getComputedStyle(t),c=getComputedStyle(a),d=1e3*parseFloat(u.transitionDuration)||150,v=parseFloat(c.getPropertyValue("--v-field-label-scale")),p=c.getPropertyValue("color")
1144
1144
  t.style.visibility="visible",a.style.visibility="hidden",Ne(t,{transform:`translate(${o}px, ${r}px) scale(${v})`,color:p,...s},{duration:d,easing:Nt,direction:e?"normal":"reverse"}).finished.then(()=>{t.style.removeProperty("visibility"),a.style.removeProperty("visibility")})})}},{flush:"post"})
1145
- const T=t.computed(()=>({isActive:g,isFocused:u,controlRef:N,iconColor:I,blur:v,focus:d}))
1146
- function B(e){e.target!==document.activeElement&&e.preventDefault()}return Bt(()=>{const a="outlined"===e.variant,n=!(!o["prepend-inner"]&&!e.prependInnerIcon),u=!(!e.clearable&&!o.clear||e.disabled),c=!!(o["append-inner"]||e.appendInnerIcon||u),b=()=>o.label?o.label({...T.value,label:e.label,props:{for:w.value}}):e.label
1147
- return t.createElementVNode("div",t.mergeProps({class:["v-field",{"v-field--active":g.value,"v-field--appended":c,"v-field--center-affix":e.centerAffix??!C.value,"v-field--disabled":e.disabled,"v-field--dirty":e.dirty,"v-field--error":e.error,"v-field--glow":e.glow,"v-field--flat":e.flat,"v-field--has-background":!!e.bgColor,"v-field--persistent-clear":e.persistentClear,"v-field--prepended":n,"v-field--reverse":e.reverse,"v-field--single-line":e.singleLine,"v-field--no-label":!b(),[`v-field--variant-${e.variant}`]:!0},r.value,_.value,s.value,i.value,m.value,f.value,e.class],style:[P.value,e.style],onClick:B},l),[t.createElementVNode("div",{class:"v-field__overlay"},null),t.createVNode(vn,{name:"v-field",active:!!e.loading,color:e.error?"error":"string"==typeof e.loading?e.loading:e.color},{default:o.loader}),n&&t.createElementVNode("div",{key:"prepend",class:"v-field__prepend-inner"},[o["prepend-inner"]?o["prepend-inner"](T.value):e.prependInnerIcon&&t.createVNode(p,{key:"prepend-icon",name:"prependInner",color:I.value},null)]),t.createElementVNode("div",{class:"v-field__field","data-no-activator":""},[["filled","solo","solo-inverted","solo-filled"].includes(e.variant)&&y.value&&t.createVNode(Bi,{key:"floating-label",ref:x,class:t.normalizeClass([A.value]),floating:!0,for:w.value,"aria-hidden":!g.value,style:t.normalizeStyle(R.value)},{default:()=>[b()]}),h.value&&t.createVNode(Bi,{key:"label",ref:S,id:e.labelId,for:w.value,"aria-hidden":y.value&&g.value},{default:()=>[b()]}),o.default?.({...T.value,props:{id:w.value,class:"v-field__input","aria-describedby":k.value},focus:d,blur:v})??t.createElementVNode("div",{id:w.value,class:"v-field__input","aria-describedby":k.value},null)]),u&&t.createVNode(al,{key:"clear"},{default:()=>[t.withDirectives(t.createElementVNode("div",{class:"v-field__clearable",onMousedown:e=>{e.preventDefault(),e.stopPropagation()}},[t.createVNode(nl,{defaults:{VIcon:{icon:e.clearIcon}}},{default:()=>[o.clear?o.clear({...T.value,props:{onFocus:d,onBlur:v,onClick:e["onClick:clear"],tabindex:-1}}):t.createVNode(p,{name:"clear",onFocus:d,onBlur:v,tabindex:-1},null)]})]),[[t.vShow,e.dirty]])]}),c&&t.createElementVNode("div",{key:"append",class:"v-field__append-inner"},[o["append-inner"]?o["append-inner"](T.value):e.appendInnerIcon&&t.createVNode(p,{key:"append-icon",name:"appendInner",color:I.value},null)]),t.createElementVNode("div",{class:t.normalizeClass(["v-field__outline",A.value]),style:t.normalizeStyle(R.value)},[a&&t.createElementVNode(t.Fragment,null,[t.createElementVNode("div",{class:"v-field__outline__start"},null),y.value&&t.createElementVNode("div",{class:"v-field__outline__notch"},[t.createVNode(Bi,{ref:x,floating:!0,for:w.value,"aria-hidden":!g.value},{default:()=>[b()]})]),t.createElementVNode("div",{class:"v-field__outline__end"},null)]),C.value&&y.value&&t.createVNode(Bi,{ref:x,floating:!0,for:w.value,"aria-hidden":!g.value},{default:()=>[b()]})])])}),{controlRef:N,fieldIconColor:I}}}),Mi=vt({autocomplete:String},"autocomplete")
1145
+ const T=t.computed(()=>({isActive:g,isFocused:u,controlRef:N,iconColor:I,blur:v,focus:d})),B=t.toRef(()=>{const e=!g.value
1146
+ return{"aria-hidden":e,for:e?void 0:w.value}}),D=t.toRef(()=>{const e=y.value&&g.value
1147
+ return{"aria-hidden":e,for:e?void 0:w.value}})
1148
+ function F(e){e.target!==document.activeElement&&e.preventDefault()}return Bt(()=>{const a="outlined"===e.variant,n=!(!o["prepend-inner"]&&!e.prependInnerIcon),u=!(!e.clearable&&!o.clear||e.disabled),c=!!(o["append-inner"]||e.appendInnerIcon||u),b=()=>o.label?o.label({...T.value,label:e.label,props:{for:w.value}}):e.label
1149
+ return t.createElementVNode("div",t.mergeProps({class:["v-field",{"v-field--active":g.value,"v-field--appended":c,"v-field--center-affix":e.centerAffix??!C.value,"v-field--disabled":e.disabled,"v-field--dirty":e.dirty,"v-field--error":e.error,"v-field--glow":e.glow,"v-field--flat":e.flat,"v-field--has-background":!!e.bgColor,"v-field--persistent-clear":e.persistentClear,"v-field--prepended":n,"v-field--reverse":e.reverse,"v-field--single-line":e.singleLine,"v-field--no-label":!b(),[`v-field--variant-${e.variant}`]:!0},r.value,_.value,s.value,i.value,m.value,f.value,e.class],style:[P.value,e.style],onClick:F},l),[t.createElementVNode("div",{class:"v-field__overlay"},null),t.createVNode(vn,{name:"v-field",active:!!e.loading,color:e.error?"error":"string"==typeof e.loading?e.loading:e.color},{default:o.loader}),n&&t.createElementVNode("div",{key:"prepend",class:"v-field__prepend-inner"},[o["prepend-inner"]?o["prepend-inner"](T.value):e.prependInnerIcon&&t.createVNode(p,{key:"prepend-icon",name:"prependInner",color:I.value},null)]),t.createElementVNode("div",{class:"v-field__field","data-no-activator":""},[["filled","solo","solo-inverted","solo-filled"].includes(e.variant)&&y.value&&t.createVNode(Bi,t.mergeProps({key:"floating-label",ref:x,class:[A.value],floating:!0},B.value,{style:R.value}),{default:()=>[b()]}),h.value&&t.createVNode(Bi,t.mergeProps({key:"label",ref:S,id:e.labelId},D.value),{default:()=>[b()]}),o.default?.({...T.value,props:{id:w.value,class:"v-field__input","aria-describedby":k.value},focus:d,blur:v})??t.createElementVNode("div",{id:w.value,class:"v-field__input","aria-describedby":k.value},null)]),u&&t.createVNode(al,{key:"clear"},{default:()=>[t.withDirectives(t.createElementVNode("div",{class:"v-field__clearable",onMousedown:e=>{e.preventDefault(),e.stopPropagation()}},[t.createVNode(nl,{defaults:{VIcon:{icon:e.clearIcon}}},{default:()=>[o.clear?o.clear({...T.value,props:{onFocus:d,onBlur:v,onClick:e["onClick:clear"],tabindex:-1}}):t.createVNode(p,{name:"clear",onFocus:d,onBlur:v,tabindex:-1},null)]})]),[[t.vShow,e.dirty]])]}),c&&t.createElementVNode("div",{key:"append",class:"v-field__append-inner"},[o["append-inner"]?o["append-inner"](T.value):e.appendInnerIcon&&t.createVNode(p,{key:"append-icon",name:"appendInner",color:I.value},null)]),t.createElementVNode("div",{class:t.normalizeClass(["v-field__outline",A.value]),style:t.normalizeStyle(R.value)},[a&&t.createElementVNode(t.Fragment,null,[t.createElementVNode("div",{class:"v-field__outline__start"},null),y.value&&t.createElementVNode("div",{class:"v-field__outline__notch"},[t.createVNode(Bi,t.mergeProps({ref:x,floating:!0},B.value),{default:()=>[b()]})]),t.createElementVNode("div",{class:"v-field__outline__end"},null)]),C.value&&y.value&&t.createVNode(Bi,t.mergeProps({ref:x,floating:!0},B.value),{default:()=>[b()]})])])}),{controlRef:N,fieldIconColor:I}}}),Mi=vt({autocomplete:String},"autocomplete")
1148
1150
  function zi(e){const a=t.useId(),l=t.shallowRef(0),n=t.toRef(()=>"suppress"===e.autocomplete),o=t.toRef(()=>{if(e.name)return n.value?`${e.name}-${a}-${l.value}`:e.name}),r=t.toRef(()=>n.value?"off":e.autocomplete)
1149
1151
  return{isSuppressing:n,fieldAutocomplete:r,fieldName:o,update:()=>l.value=(new Date).getTime()}}function Li(e){return{onIntersect:function(t,a){if(!e.autofocus||!t)return
1150
1152
  const l=a[0].target,n=l.matches("input,textarea")?l:l.querySelector("input,textarea")
@@ -1781,7 +1783,7 @@ const{x:a,y:n}=t
1781
1783
  s.value=t,l("update:color",{h:e.color?.h??0,s:F(a,0,r.value)/r.value,v:1-F(n,0,i.value)/i.value,a:e.color?.a??1})}}),c=t.computed(()=>{const{x:t,y:a}=u.value,l=parseInt(e.dotSize,10)/2
1782
1784
  return{width:b(e.dotSize),height:b(e.dotSize),transform:`translate(${b(t-l)}, ${b(a-l)})`}}),{resizeRef:d}=Kt(e=>{if(!d.el?.offsetParent)return
1783
1785
  const{width:t,height:a}=e[0].contentRect
1784
- r.value=t,i.value=a})
1786
+ r.value=Math.round(t),i.value=Math.round(a)})
1785
1787
  function v(t){"mousedown"===t.type&&t.preventDefault(),e.disabled||(p(t),window.addEventListener("mousemove",p),window.addEventListener("mouseup",m),window.addEventListener("touchmove",p),window.addEventListener("touchend",m))}function p(t){if(e.disabled||!o.value)return
1786
1788
  n.value=!0
1787
1789
  const a=function(e){return"touches"in e?{clientX:e.touches[0].clientX,clientY:e.touches[0].clientY}:{clientX:e.clientX,clientY:e.clientY}}(t)
@@ -2847,8 +2849,8 @@ if(m.run(()=>{l.install(u)}),u.onUnmount(()=>m.stop()),u.provide(gt,e),u.provide
2847
2849
  else{const{mount:e}=u
2848
2850
  u.mount=function(){const l=e(...arguments)
2849
2851
  return t.nextTick(()=>a.update()),u.mount=e,l}}("boolean"!=typeof __VUE_OPTIONS_API__||__VUE_OPTIONS_API__)&&u.mixin({computed:{$vuetify(){return t.reactive({defaults:Yg.call(this,gt),display:Yg.call(this,No),theme:Yg.call(this,ha),icons:Yg.call(this,Ft),locale:Yg.call(this,va),date:Yg.call(this,Cu)})}}})},unmount:function(){u.stop()},defaults:e,display:a,theme:l,icons:c,locale:d,date:v,goTo:p}})}function Yg(e){const t=this.$,a=t.parent?.provides??t.vnode.appContext?.provides
2850
- if(a&&e in a)return a[e]}Wg.version="3.11.7"
2851
- const Ug=function(){return Wg({components:Dg,directives:jg,...arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}})},Gg="3.11.7"
2852
+ if(a&&e in a)return a[e]}Wg.version="3.11.8"
2853
+ const Ug=function(){return Wg({components:Dg,directives:jg,...arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}})},Gg="3.11.8"
2852
2854
  Ug.version=Gg,e.blueprints=Gt,e.components=Dg,e.createVuetify=Ug,e.directives=jg,e.useDate=_u,e.useDefaults=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0
2853
2855
  const{props:a,provideSubDefaults:l}=bt(e,t)
2854
2856
  return l(),a},e.useDisplay=Ro,e.useGoTo=Mo,e.useHotkey=function(e,a){let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}