@vuetify/nightly 3.8.5-master.2025-05-15 → 3.8.5-master.2025-05-16

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.8.5-master.2025-05-15
2
+ * Vuetify v3.8.5-master.2025-05-16
3
3
  * Forged by John Leider
4
4
  * Released under the MIT License.
5
5
  */
@@ -70,11 +70,12 @@ return[...e.querySelectorAll(a)]}function Z(e,t,a){let l,o=e.indexOf(document.ac
70
70
  const n="next"===t?1:-1
71
71
  do{o+=n,l=e[o]}while((!l||null==l.offsetParent||!(a?.(l)??1))&&o<e.length&&o>=0)
72
72
  return l}function Q(e,t){const a=X(e)
73
- if(t)if("first"===t)a[0]?.focus()
73
+ if(null==t)e!==document.activeElement&&e.contains(document.activeElement)||a[0]?.focus()
74
+ else if("first"===t)a[0]?.focus()
74
75
  else if("last"===t)a.at(-1)?.focus()
75
76
  else if("number"==typeof t)a[t]?.focus()
76
77
  else{const l=Z(a,t)
77
- l?l.focus():Q(e,"next"===t?"first":"last")}else e!==document.activeElement&&e.contains(document.activeElement)||a[0]?.focus()}function J(e){return null==e||"string"==typeof e&&""===e.trim()}function ee(){}function te(e,t){if(!(a&&"undefined"!=typeof CSS&&void 0!==CSS.supports&&CSS.supports(`selector(${t})`)))return null
78
+ l?l.focus():Q(e,"next"===t?"first":"last")}}function J(e){return null==e||"string"==typeof e&&""===e.trim()}function ee(){}function te(e,t){if(!(a&&"undefined"!=typeof CSS&&void 0!==CSS.supports&&CSS.supports(`selector(${t})`)))return null
78
79
  try{return!!e&&e.matches(t)}catch(e){return null}}function ae(e){return e.some((e=>!t.isVNode(e)||e.type!==t.Comment&&(e.type!==t.Fragment||ae(e.children))))?e:null}function le(){const e=t.shallowRef(),a=t=>{e.value=t}
79
80
  return Object.defineProperty(a,"value",{enumerable:!0,get:()=>e.value,set:t=>e.value=t}),Object.defineProperty(a,"el",{enumerable:!0,get:()=>y(e.value)}),a}function oe(e){const t=1===e.key.length,a=!e.ctrlKey&&!e.metaKey&&!e.altKey
80
81
  return t&&a}function ne(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e||"bigint"==typeof e}const re=["top","bottom"],ie=["start","end","left","right"]
@@ -1107,14 +1108,14 @@ const{t:n}=ma(),r=t.ref(),i=t.ref(),s=t.ref(),{items:u,transformIn:c,transformOu
1107
1108
  return e.multiple?a:a[0]??null})),f=t.computed((()=>"function"==typeof e.counterValue?e.counterValue(p.value):"number"==typeof e.counterValue?e.counterValue:p.value.length)),m=dn(e),g=t.computed((()=>p.value.map((e=>e.value)))),h=t.shallowRef(!1)
1108
1109
  let y,b=""
1109
1110
  const V=t.computed((()=>e.hideSelected?u.value.filter((t=>!p.value.some((a=>(e.valueComparator||d)(a,t))))):u.value)),w=t.computed((()=>e.hideNoData&&!V.value.length||m.isReadonly.value||m.isDisabled.value)),S=na(e,"menu"),k=t.computed({get:()=>S.value,set:e=>{S.value&&!e&&i.value?.ΨopenChildren.size||e&&w.value||(S.value=e)}}),x=t.toRef((()=>k.value?e.closeText:e.openText)),N=t.computed((()=>({...e.menuProps,activatorProps:{...e.menuProps?.activatorProps||{},"aria-haspopup":"listbox"}}))),C=t.ref(),I=Di(C,r)
1110
- function _(t){e.openOnClear&&(k.value=!0)}function P(){w.value||(k.value=!k.value)}function B(e){oe(e)&&A(e)}function A(e){if(!e.key||m.isReadonly.value)return;["Enter"," ","ArrowDown","ArrowUp","Home","End"].includes(e.key)&&e.preventDefault(),["Enter","ArrowDown"," "].includes(e.key)&&(k.value=!0),["Escape","Tab"].includes(e.key)&&(k.value=!1),"Home"===e.key?C.value?.focus("first"):"End"===e.key&&C.value?.focus("last")
1111
- if(!oe(e))return
1112
- const t=performance.now()
1113
- t-y>1e3&&(b=""),b+=e.key.toLowerCase(),y=t
1114
- const l=u.value.find((e=>e.title.toLowerCase().startsWith(b)))
1115
- if(void 0!==l){p.value=[l]
1116
- const e=V.value.indexOf(l)
1117
- a&&window.requestAnimationFrame((()=>{e>=0&&s.value?.scrollToIndex(e)}))}}function T(a){let l=!(arguments.length>1&&void 0!==arguments[1])||arguments[1]
1111
+ function _(t){e.openOnClear&&(k.value=!0)}function P(){w.value||(k.value=!k.value)}function B(e){oe(e)&&A(e)}function A(t){if(!t.key||m.isReadonly.value)return;["Enter"," ","ArrowDown","ArrowUp","Home","End"].includes(t.key)&&t.preventDefault(),["Enter","ArrowDown"," "].includes(t.key)&&(k.value=!0),["Escape","Tab"].includes(t.key)&&(k.value=!1),"Home"===t.key?C.value?.focus("first"):"End"===t.key&&C.value?.focus("last")
1112
+ if(!oe(t))return
1113
+ const l=performance.now()
1114
+ l-y>1e3&&(b=""),b+=t.key.toLowerCase(),y=l
1115
+ const o=u.value.find((e=>e.title.toLowerCase().startsWith(b)))
1116
+ if(void 0!==o){e.multiple||(p.value=[o])
1117
+ const t=V.value.indexOf(o)
1118
+ ~t&&a&&C.value?.focus(t)}}function T(a){let l=!(arguments.length>1&&void 0!==arguments[1])||arguments[1]
1118
1119
  if(!a.props.disabled)if(e.multiple){const t=p.value.findIndex((t=>(e.valueComparator||d)(t.value,a.value))),o=null==l?!~t:l
1119
1120
  if(~t){const e=o?[...p.value,a]:[...p.value]
1120
1121
  e.splice(t,1),p.value=e}else o&&(p.value=[...p.value,a])}else{const e=!1!==l
@@ -2210,8 +2211,8 @@ if(f.run((()=>{o.install(u)})),u.onUnmount((()=>f.stop())),u.provide(wt,e),u.pro
2210
2211
  else{const{mount:e}=u
2211
2212
  u.mount=function(){const a=e(...arguments)
2212
2213
  return t.nextTick((()=>l.update())),u.mount=e,a}}("boolean"!=typeof __VUE_OPTIONS_API__||__VUE_OPTIONS_API__)&&u.mixin({computed:{$vuetify(){return t.reactive({defaults:Vf.call(this,wt),display:Vf.call(this,Vn),theme:Vf.call(this,ya),icons:Vf.call(this,$t),locale:Vf.call(this,pa),date:Vf.call(this,xu)})}}})},unmount:function(){u.stop()},defaults:e,display:l,theme:o,icons:c,locale:d,date:v,goTo:p}}))}function Vf(e){const t=this.$,a=t.parent?.provides??t.vnode.appContext?.provides
2213
- if(a&&e in a)return a[e]}bf.version="3.8.5-master.2025-05-15"
2214
- const wf=function(){return bf({components:cf,directives:yf,...arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}})},Sf="3.8.5-master.2025-05-15"
2214
+ if(a&&e in a)return a[e]}bf.version="3.8.5-master.2025-05-16"
2215
+ const wf=function(){return bf({components:cf,directives:yf,...arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}})},Sf="3.8.5-master.2025-05-16"
2215
2216
  wf.version=Sf,e.blueprints=Kt,e.components=cf,e.createVuetify=wf,e.directives=yf,e.useDate=Cu,e.useDefaults=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0
2216
2217
  const{props:a,provideSubDefaults:l}=xt(e,t)
2217
2218
  return l(),a},e.useDisplay=In,e.useGoTo=An,e.useLayout=ta,e.useLocale=ma,e.useRtl=ha,e.useTheme=Ia,e.version=Sf}))