@vuetify/nightly 3.8.6-master.2025-05-21 → 3.8.6-master.2025-05-23

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.6-master.2025-05-21
2
+ * Vuetify v3.8.6-master.2025-05-23
3
3
  * Forged by John Leider
4
4
  * Released under the MIT License.
5
5
  */
@@ -855,8 +855,10 @@ const t=function(e,t){const a=he(e)
855
855
  t?a.x+=parseFloat(e.style.right||0):a.x-=parseFloat(e.style.left||0)
856
856
  return a.y-=parseFloat(e.style.top||0),a}(e.contentEl.value,e.isRtl.value),a=At(e.contentEl.value)
857
857
  a.length||(a.push(document.documentElement),e.contentEl.value.style.top&&e.contentEl.value.style.left||(t.x-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),t.y-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)))
858
- const d=a.reduce(((e,t)=>{const a=t.getBoundingClientRect(),l=new fe({x:t===document.documentElement?0:a.x,y:t===document.documentElement?0:a.y,width:t.clientWidth,height:t.clientHeight})
859
- return e?new fe({x:Math.max(e.left,l.left),y:Math.max(e.top,l.top),width:Math.min(e.right,l.right)-Math.max(e.left,l.left),height:Math.min(e.bottom,l.bottom)-Math.max(e.top,l.top)}):l}),void 0)
858
+ const d=a.reduce(((e,t)=>{const a=function(e){if(e===document.documentElement)return visualViewport?new fe({x:visualViewport.scale>1?0:visualViewport.offsetLeft,y:visualViewport.scale>1?0:visualViewport.offsetTop,width:visualViewport.width*visualViewport.scale,height:visualViewport.height*visualViewport.scale}):new fe({x:0,y:0,width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})
859
+ {const t=e.getBoundingClientRect()
860
+ return new fe({x:t.x,y:t.y,width:e.clientWidth,height:e.clientHeight})}}(t)
861
+ return e?new fe({x:Math.max(e.left,a.left),y:Math.max(e.top,a.top),width:Math.min(e.right,a.right)-Math.max(e.left,a.left),height:Math.min(e.bottom,a.bottom)-Math.max(e.top,a.top)}):a}),void 0)
860
862
  d.x+=12,d.y+=12,d.width-=24,d.height-=24
861
863
  let p={anchor:o.value,origin:n.value}
862
864
  function f(e){const a=new fe(t),l=Er(e.anchor,h),o=Er(e.origin,a)
@@ -984,7 +986,7 @@ const a=k?.value?.getRootNode()||i.proxy?.$el?.getRootNode()
984
986
  return a instanceof ShadowRoot&&a})),{dimensionStyles:A}=rl(e),T=Jr(),{scopeId:D}=ai()
985
987
  t.watch((()=>e.disabled),(e=>{e&&(v.value=!1)}))
986
988
  const{contentStyles:E,updateLocation:F}=function(e,l){const o=t.ref({}),n=t.ref()
987
- function r(e){n.value?.(e)}return a&&oa((()=>!(!l.isActive.value||!e.locationStrategy)),(a=>{t.watch((()=>e.locationStrategy),a),t.onScopeDispose((()=>{window.removeEventListener("resize",r),n.value=void 0})),window.addEventListener("resize",r,{passive:!0}),"function"==typeof e.locationStrategy?n.value=e.locationStrategy(l,e,o)?.updateLocation:n.value=Fr[e.locationStrategy](l,e,o)?.updateLocation})),{contentStyles:o,updateLocation:n}}(e,{isRtl:g,contentEl:c,target:N,isActive:v})
989
+ function r(e){n.value?.(e)}function i(e){n.value?.(e)}function s(e){n.value?.(e)}return a&&oa((()=>!(!l.isActive.value||!e.locationStrategy)),(a=>{t.watch((()=>e.locationStrategy),a),t.onScopeDispose((()=>{window.removeEventListener("resize",r),visualViewport?.removeEventListener("resize",i),visualViewport?.removeEventListener("scroll",s),n.value=void 0})),window.addEventListener("resize",r,{passive:!0}),visualViewport?.addEventListener("resize",i,{passive:!0}),visualViewport?.addEventListener("scroll",s,{passive:!0}),"function"==typeof e.locationStrategy?n.value=e.locationStrategy(l,e,o)?.updateLocation:n.value=Fr[e.locationStrategy](l,e,o)?.updateLocation})),{contentStyles:o,updateLocation:n}}(e,{isRtl:g,contentEl:c,target:N,isActive:v})
988
990
  function $(t){r("click:outside",t),e.persistent?H():v.value=!1}function M(t){return v.value&&V.value&&(!e.scrim||t.target===u.value||t instanceof MouseEvent&&t.shadowTarget===u.value)}function O(t){"Escape"===t.key&&V.value&&(c.value?.contains(document.activeElement)||r("keydown",t),e.persistent?H():(v.value=!1,c.value?.contains(document.activeElement)&&k.value?.focus()))}function L(e){("Escape"!==e.key||V.value)&&r("keydown",e)}!function(e,l){if(!a)return
989
991
  let o
990
992
  t.watchEffect((async()=>{o?.stop(),l.isActive.value&&e.scrollStrategy&&(o=t.effectScope(),await new Promise((e=>setTimeout(e))),o.active&&o.run((()=>{"function"==typeof e.scrollStrategy?e.scrollStrategy(l,e,o):Wr[e.scrollStrategy]?.(l,e,o)})))})),t.onScopeDispose((()=>{o?.stop()}))}(e,{root:s,contentEl:c,targetEl:C,isActive:v,updateLocation:F}),a&&t.watch(v,(e=>{e?window.addEventListener("keydown",O):window.removeEventListener("keydown",O)}),{immediate:!0}),t.onBeforeUnmount((()=>{a&&window.removeEventListener("keydown",O)}))
@@ -1966,7 +1968,10 @@ if(s.value)return
1966
1968
  if(null==p.value)return void(m.value=v(A(0,e.min,e.max)))
1967
1969
  let a=Math.max(N(p.value),N(e.step))
1968
1970
  null!=e.precision&&(a=Math.max(a,e.precision)),t?g.value&&(m.value=v(p.value+e.step,a)):h.value&&(m.value=v(p.value-e.step,a))}function I(t){if(!t.data)return
1969
- const a=t.target?.value,l=t.target?.selectionStart,o=t.target?.selectionEnd,n=a?a.slice(0,l)+t.data+a.slice(o):t.data;/^-?(\d+(\.\d*)?|(\.\d+)|\d*|\.)$/.test(n)||t.preventDefault(),null!=e.precision&&(n.split(".")[1]?.length>e.precision&&t.preventDefault(),0===e.precision&&n.includes(".")&&t.preventDefault())}async function _(e){["Enter","ArrowLeft","ArrowRight","Backspace","Delete","Tab"].includes(e.key)||e.ctrlKey||["ArrowDown","ArrowUp"].includes(e.key)&&(e.preventDefault(),D(),await t.nextTick(),"ArrowDown"===e.key?C(!1):C())}function P(e){e.stopPropagation()}function B(e){const t=e.currentTarget
1971
+ const a=t.target,{value:l,selectionStart:o,selectionEnd:n}=a??{},r=l?l.slice(0,o)+t.data+l.slice(n):t.data,i=function(e,t){const a=e.split("").filter((e=>/[\d\-.]/.test(e))).filter(((e,t,a)=>0===t&&/[-]/.test(e)||"."===e&&t===a.indexOf(".")||/\d/.test(e))).join("")
1972
+ if(0===t)return a.split(".")[0]
1973
+ if(null!==t&&/\.\d/.test(a)){const e=a.split(".")
1974
+ return[e[0],e[1].substring(0,t)].join(".")}return a}(r,e.precision);/^-?(\d+(\.\d*)?|(\.\d+)|\d*|\.)$/.test(r)||(t.preventDefault(),a.value=i),null!=e.precision&&(r.split(".")[1]?.length>e.precision&&(t.preventDefault(),a.value=i),0===e.precision&&r.includes(".")&&(t.preventDefault(),a.value=i))}async function _(e){["Enter","ArrowLeft","ArrowRight","Backspace","Delete","Tab"].includes(e.key)||e.ctrlKey||["ArrowDown","ArrowUp"].includes(e.key)&&(e.preventDefault(),D(),await t.nextTick(),"ArrowDown"===e.key?C(!1):C())}function P(e){e.stopPropagation()}function B(e){const t=e.currentTarget
1970
1975
  t?.releasePointerCapture(e.pointerId),e.preventDefault(),e.stopPropagation(),r()}function R(e){const t=e.currentTarget
1971
1976
  t?.setPointerCapture(e.pointerId),e.preventDefault(),e.stopPropagation(),n("up")}function T(e){const t=e.currentTarget
1972
1977
  t?.setPointerCapture(e.pointerId),e.preventDefault(),e.stopPropagation(),n("down")}function D(){if(s.value)return
@@ -2214,8 +2219,8 @@ if(f.run((()=>{o.install(u)})),u.onUnmount((()=>f.stop())),u.provide(wt,e),u.pro
2214
2219
  else{const{mount:e}=u
2215
2220
  u.mount=function(){const a=e(...arguments)
2216
2221
  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
2217
- if(a&&e in a)return a[e]}bf.version="3.8.6-master.2025-05-21"
2218
- const wf=function(){return bf({components:cf,directives:yf,...arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}})},Sf="3.8.6-master.2025-05-21"
2222
+ if(a&&e in a)return a[e]}bf.version="3.8.6-master.2025-05-23"
2223
+ const wf=function(){return bf({components:cf,directives:yf,...arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}})},Sf="3.8.6-master.2025-05-23"
2219
2224
  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
2220
2225
  const{props:a,provideSubDefaults:l}=xt(e,t)
2221
2226
  return l(),a},e.useDisplay=In,e.useGoTo=An,e.useLayout=ta,e.useLocale=ma,e.useRtl=ha,e.useTheme=Ia,e.version=Sf}))