@vuetify/nightly 3.7.5-master.2024-12-03 → 3.7.5-master.2024-12-11

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.7.5-master.2024-12-03
2
+ * Vuetify v3.7.5-master.2024-12-11
3
3
  * Forged by John Leider
4
4
  * Released under the MIT License.
5
5
  */
@@ -1034,23 +1034,24 @@ return o.clear=()=>{clearTimeout(l)},o.immediate=e,o}((()=>{const e=performance.
1034
1034
  y[0]=0
1035
1035
  const t=l.value.length
1036
1036
  for(let e=1;e<=t-1;e++)y[e]=(y[e-1]||0)+w(e-1)
1037
- b.value=Math.max(b.value,performance.now()-e)}),b),k=t.watch(g,(e=>{e&&(k(),v=d.value.offsetTop,S.immediate(),B(),~V&&t.nextTick((()=>{a&&window.requestAnimationFrame((()=>{T(V),V=-1}))})))}))
1037
+ b.value=Math.max(b.value,performance.now()-e)}),b),k=t.watch(g,(e=>{e&&(k(),v=d.value.offsetTop,S.immediate(),T(),~V&&t.nextTick((()=>{a&&window.requestAnimationFrame((()=>{E(V),V=-1}))})))}))
1038
1038
  function x(e){return e=R(e,0,l.value.length-1),y[e]||0}function N(e){return function(e,t){let a=e.length-1,l=0,o=0,n=null,r=-1
1039
1039
  if(e[a]<t)return a
1040
1040
  for(;l<=a;)if(o=l+a>>1,n=e[o],n>t)a=o-1
1041
1041
  else{if(!(n<t))return n===t?o:l
1042
1042
  r=o,l=o+1}return r}(y,e)}t.onScopeDispose((()=>{S.clear()}))
1043
1043
  let C=0,_=0,I=0
1044
- t.watch(m,((e,t)=>{t&&(B(),e<t&&requestAnimationFrame((()=>{_=0,B()})))}))
1044
+ t.watch(m,((e,t)=>{t&&(T(),e<t&&requestAnimationFrame((()=>{_=0,T()})))}))
1045
1045
  let P=-1
1046
- function B(){cancelAnimationFrame(P),P=requestAnimationFrame(A)}function A(){if(!c.value||!m.value)return
1046
+ function B(){c.value&&d.value&&(_=0,I=0,window.clearTimeout(P),T())}let A=-1
1047
+ function T(){cancelAnimationFrame(A),A=requestAnimationFrame(D)}function D(){if(!c.value||!m.value)return
1047
1048
  const e=C-v,t=Math.sign(_),a=R(N(Math.max(0,e-100)),0,l.value.length),o=R(N(e+m.value+100)+1,a+1,l.value.length)
1048
1049
  if((-1!==t||a<r.value)&&(1!==t||o>i.value)){const e=x(r.value)-x(a),t=x(o)-x(i.value)
1049
- Math.max(e,t)>100?(r.value=a,i.value=o):(a<=0&&(r.value=a),o>=l.value.length&&(i.value=o))}s.value=x(r.value),u.value=x(l.value.length)-x(i.value)}function T(e){const t=x(e)
1050
- !c.value||e&&!t?V=e:c.value.scrollTop=t}const D=t.computed((()=>l.value.slice(r.value,i.value).map(((e,t)=>({raw:e,index:t+r.value})))))
1051
- return t.watch(l,(()=>{h=Array.from({length:l.value.length}),y=Array.from({length:l.value.length}),S.immediate(),B()}),{deep:!0}),{calculateVisibleItems:B,containerRef:c,markerRef:d,computedItems:D,paddingTop:s,paddingBottom:u,scrollToIndex:T,handleScroll:function(){if(!c.value||!d.value)return
1050
+ Math.max(e,t)>100?(r.value=a,i.value=o):(a<=0&&(r.value=a),o>=l.value.length&&(i.value=o))}s.value=x(r.value),u.value=x(l.value.length)-x(i.value)}function E(e){const t=x(e)
1051
+ !c.value||e&&!t?V=e:c.value.scrollTop=t}const F=t.computed((()=>l.value.slice(r.value,i.value).map(((e,t)=>({raw:e,index:t+r.value})))))
1052
+ return t.watch(l,(()=>{h=Array.from({length:l.value.length}),y=Array.from({length:l.value.length}),S.immediate(),T()}),{deep:!0}),{calculateVisibleItems:T,containerRef:c,markerRef:d,computedItems:F,paddingTop:s,paddingBottom:u,scrollToIndex:E,handleScroll:function(){if(!c.value||!d.value)return
1052
1053
  const e=c.value.scrollTop,t=performance.now()
1053
- t-I>500?(_=Math.sign(e-C),v=d.value.offsetTop):_=e-C,C=e,I=t,B()},handleScrollend:function(){c.value&&d.value&&(_=0,I=0,B())},handleItemResize:function(e,t){const a=h[e],l=n.value
1054
+ t-I>500?(_=Math.sign(e-C),v=d.value.offsetTop):_=e-C,C=e,I=t,window.clearTimeout(P),P=window.setTimeout(B,500),T()},handleScrollend:B,handleItemResize:function(e,t){const a=h[e],l=n.value
1054
1055
  n.value=l?Math.min(n.value,t):t,a===t&&l===n.value||(h[e]=t,S())}}}const Bi=ht({items:{type:Array,default:()=>[]},renderless:Boolean,...Ii(),...yt(),...ol()},"VVirtualScroll"),Ai=Pt()({name:"VVirtualScroll",props:Bi(),setup(e,a){let{slots:l}=a
1055
1056
  const o=bt("VVirtualScroll"),{dimensionStyles:n}=nl(e),{calculateVisibleItems:r,containerRef:i,markerRef:s,handleScroll:u,handleScrollend:c,handleItemResize:d,scrollToIndex:v,paddingTop:p,paddingBottom:m,computedItems:g}=Pi(e,t.toRef(e,"items"))
1056
1057
  return ia((()=>e.renderless),(()=>{function e(){const e=arguments.length>0&&void 0!==arguments[0]&&arguments[0]?"addEventListener":"removeEventListener"
@@ -1911,7 +1912,7 @@ const a=Os(t,n.value.$el,e.direction),l=Os(t,r.value.$el,e.direction),o=Math.abs
1911
1912
  return o<i||o===i&&a<0?n.value.$el:r.value.$el}}),{isFocused:w,focus:S,blur:k}=rn(e),x=t.computed((()=>y(c.value[0]))),N=t.computed((()=>y(c.value[1])))
1912
1913
  return Mt((()=>{const a=fn.filterProps(e),o=!!(e.label||l.label||l.prepend)
1913
1914
  return t.createVNode(fn,t.mergeProps({class:["v-slider","v-range-slider",{"v-slider--has-labels":!!l["tick-label"]||v.value,"v-slider--focused":w.value,"v-slider--pressed":m.value,"v-slider--disabled":e.disabled},s.value,e.class],style:e.style,ref:i},a,{focused:w.value}),{...l,prepend:o?a=>t.createVNode(t.Fragment,null,[l.label?.(a)??(e.label?t.createVNode(Go,{class:"v-slider__label",text:e.label},null):void 0),l.prepend?.(a)]):void 0,default:a=>{let{id:o,messagesId:i}=a
1914
- return t.createVNode("div",{class:"v-slider__container",onMousedown:V.value?void 0:g,onTouchstartPassive:V.value?void 0:h},[t.createVNode("input",{id:`${o.value}_start`,name:e.name||o.value,disabled:!!e.disabled,readonly:!!e.readonly,tabindex:"-1",value:c.value[0]},null),t.createVNode("input",{id:`${o.value}_stop`,name:e.name||o.value,disabled:!!e.disabled,readonly:!!e.readonly,tabindex:"-1",value:c.value[1]},null),t.createVNode(Ys,{ref:b,start:x.value,stop:N.value},{"tick-label":l["tick-label"]}),t.createVNode(Ws,{ref:n,"aria-describedby":i.value,focused:w&&d.value===n.value?.$el,modelValue:c.value[0],"onUpdate:modelValue":e=>c.value=[e,c.value[1]],onFocus:e=>{S(),d.value=n.value?.$el,c.value[0]===c.value[1]&&c.value[1]===f.value&&e.relatedTarget!==r.value?.$el&&(n.value?.$el.blur(),r.value?.$el.focus())},onBlur:()=>{k(),d.value=void 0},min:f.value,max:c.value[1],position:x.value,ripple:e.ripple},{"thumb-label":l["thumb-label"]}),t.createVNode(Ws,{ref:r,"aria-describedby":i.value,focused:w&&d.value===r.value?.$el,modelValue:c.value[1],"onUpdate:modelValue":e=>c.value=[c.value[0],e],onFocus:e=>{S(),d.value=r.value?.$el,c.value[0]===c.value[1]&&c.value[0]===p.value&&e.relatedTarget!==n.value?.$el&&(r.value?.$el.blur(),n.value?.$el.focus())},onBlur:()=>{k(),d.value=void 0},min:c.value[0],max:p.value,position:N.value,ripple:e.ripple},{"thumb-label":l["thumb-label"]})])}})})),{}}}),Ov=ht({name:String,itemAriaLabel:{type:String,default:"$vuetify.rating.ariaLabel.item"},activeColor:String,color:String,clearable:Boolean,disabled:Boolean,emptyIcon:{type:Ot,default:"$ratingEmpty"},fullIcon:{type:Ot,default:"$ratingFull"},halfIncrements:Boolean,hover:Boolean,length:{type:[Number,String],default:5},readonly:Boolean,modelValue:{type:[Number,String],default:0},itemLabels:Array,itemLabelPosition:{type:String,default:"top",validator:e=>["top","bottom"].includes(e)},ripple:Boolean,...yt(),...Al(),...ql(),...Ba(),...Sa()},"VRating"),Lv=Pt()({name:"VRating",props:Ov(),emits:{"update:modelValue":e=>!0},setup(e,a){let{slots:l}=a
1915
+ return t.createVNode("div",{class:"v-slider__container",onMousedown:V.value?void 0:g,onTouchstartPassive:V.value?void 0:h},[t.createVNode("input",{id:`${o.value}_start`,name:e.name||o.value,disabled:!!e.disabled,readonly:!!e.readonly,tabindex:"-1",value:c.value[0]},null),t.createVNode("input",{id:`${o.value}_stop`,name:e.name||o.value,disabled:!!e.disabled,readonly:!!e.readonly,tabindex:"-1",value:c.value[1]},null),t.createVNode(Ys,{ref:b,start:x.value,stop:N.value},{"tick-label":l["tick-label"]}),t.createVNode(Ws,{ref:n,"aria-describedby":i.value,focused:w&&d.value===n.value?.$el,modelValue:c.value[0],"onUpdate:modelValue":e=>c.value=[e,c.value[1]],onFocus:e=>{S(),d.value=n.value?.$el,p.value!==f.value&&c.value[0]===c.value[1]&&c.value[1]===f.value&&e.relatedTarget!==r.value?.$el&&(n.value?.$el.blur(),r.value?.$el.focus())},onBlur:()=>{k(),d.value=void 0},min:f.value,max:c.value[1],position:x.value,ripple:e.ripple},{"thumb-label":l["thumb-label"]}),t.createVNode(Ws,{ref:r,"aria-describedby":i.value,focused:w&&d.value===r.value?.$el,modelValue:c.value[1],"onUpdate:modelValue":e=>c.value=[c.value[0],e],onFocus:e=>{S(),d.value=r.value?.$el,p.value!==f.value&&c.value[0]===c.value[1]&&c.value[0]===p.value&&e.relatedTarget!==n.value?.$el&&(r.value?.$el.blur(),n.value?.$el.focus())},onBlur:()=>{k(),d.value=void 0},min:c.value[0],max:p.value,position:N.value,ripple:e.ripple},{"thumb-label":l["thumb-label"]})])}})})),{}}}),Ov=ht({name:String,itemAriaLabel:{type:String,default:"$vuetify.rating.ariaLabel.item"},activeColor:String,color:String,clearable:Boolean,disabled:Boolean,emptyIcon:{type:Ot,default:"$ratingEmpty"},fullIcon:{type:Ot,default:"$ratingFull"},halfIncrements:Boolean,hover:Boolean,length:{type:[Number,String],default:5},readonly:Boolean,modelValue:{type:[Number,String],default:0},itemLabels:Array,itemLabelPosition:{type:String,default:"top",validator:e=>["top","bottom"].includes(e)},ripple:Boolean,...yt(),...Al(),...ql(),...Ba(),...Sa()},"VRating"),Lv=Pt()({name:"VRating",props:Ov(),emits:{"update:modelValue":e=>!0},setup(e,a){let{slots:l}=a
1915
1916
  const{t:o}=ya(),{themeClasses:n}=xa(e),r=sa(e,"modelValue"),i=t.computed((()=>R(parseFloat(r.value),0,+e.length))),s=t.computed((()=>p(Number(e.length),1))),u=t.computed((()=>s.value.flatMap((t=>e.halfIncrements?[t-.5,t]:[t])))),c=t.shallowRef(-1),d=t.computed((()=>u.value.map((t=>{const a=e.hover&&c.value>-1,l=i.value>=t,o=c.value>=t,n=(a?o:l)?e.fullIcon:e.emptyIcon,r=e.activeColor??e.color
1916
1917
  return{isFilled:l,isHovered:o,icon:n,color:l||o?r:e.color}})))),v=t.computed((()=>[0,...u.value].map((t=>({onMouseenter:e.hover?function(){c.value=t}:void 0,onMouseleave:e.hover?function(){c.value=-1}:void 0,onClick:function(){e.disabled||e.readonly||(r.value=i.value===t&&e.clearable?0:t)}}))))),f=t.computed((()=>e.name??`v-rating-${kt()}`))
1917
1918
  function m(a){let{value:n,index:r,showStar:s=!0}=a
@@ -2099,8 +2100,8 @@ if(d.install(e),e.provide(xt,u),e.provide(yn,c),e.provide(wa,d),e.provide(Lt,v),
2099
2100
  else{const{mount:a}=e
2100
2101
  e.mount=function(){const l=a(...arguments)
2101
2102
  return t.nextTick((()=>c.update())),e.mount=a,l}}kt.reset(),("boolean"!=typeof __VUE_OPTIONS_API__||__VUE_OPTIONS_API__)&&e.mixin({computed:{$vuetify(){return t.reactive({defaults:uf.call(this,xt),display:uf.call(this,yn),theme:uf.call(this,wa),icons:uf.call(this,Lt),locale:uf.call(this,ga),date:uf.call(this,gu)})}}})},defaults:u,display:c,theme:d,icons:v,locale:p,date:f,goTo:m}}function uf(e){const t=this.$,a=t.parent?.provides??t.vnode.appContext?.provides
2102
- if(a&&e in a)return a[e]}sf.version="3.7.5-master.2024-12-03"
2103
- const cf=function(){return sf({components:Qp,directives:rf,...arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}})},df="3.7.5-master.2024-12-03"
2103
+ if(a&&e in a)return a[e]}sf.version="3.7.5-master.2024-12-11"
2104
+ const cf=function(){return sf({components:Qp,directives:rf,...arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}})},df="3.7.5-master.2024-12-11"
2104
2105
  cf.version=df,e.blueprints=Qt,e.components=Qp,e.createVuetify=cf,e.directives=rf,e.useDate=yu,e.useDefaults=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0
2105
2106
  const{props:a,provideSubDefaults:l}=_t(e,t)
2106
2107
  return l(),a},e.useDisplay=Nn,e.useGoTo=Bn,e.useLayout=oa,e.useLocale=ya,e.useRtl=Va,e.useTheme=Na,e.version=df}))