@vuetify/nightly 3.7.9-dev.2025-01-30 → 3.7.9-dev.2025-02-03

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.9-dev.2025-01-30
2
+ * Vuetify v3.7.9-dev.2025-02-03
3
3
  * Forged by John Leider
4
4
  * Released under the MIT License.
5
5
  */
@@ -102,7 +102,7 @@ t=n(t/255),a=n(a/255),l=n(l/255)
102
102
  for(let e=0;e<3;++e)o[e]=r[e][0]*t+r[e][1]*a+r[e][2]*l
103
103
  return o}function Xe(e){return!!e&&/^(#|var\(--|(rgb|hsl)a?\()/.test(e)}const Ze=/^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/,Qe={rgb:(e,t,a,l)=>({r:e,g:t,b:a,a:l}),rgba:(e,t,a,l)=>({r:e,g:t,b:a,a:l}),hsl:(e,t,a,l)=>tt({h:e,s:t,l:a,a:l}),hsla:(e,t,a,l)=>tt({h:e,s:t,l:a,a:l}),hsv:(e,t,a,l)=>et({h:e,s:t,v:a,a:l}),hsva:(e,t,a,l)=>et({h:e,s:t,v:a,a:l})}
104
104
  function Je(e){if("number"==typeof e)return(isNaN(e)||e<0||e>16777215)&&$e(`'${e}' is not a valid hex color`),{r:(16711680&e)>>16,g:(65280&e)>>8,b:255&e}
105
- if("string"==typeof e&&Ze.test(e)){const{groups:t}=e.match(Ze),{fn:a,values:l}=t,o=l.split(/,\s*/).map((e=>e.endsWith("%")&&["hsl","hsla","hsv","hsva"].includes(a)?parseFloat(e)/100:parseFloat(e)))
105
+ if("string"==typeof e&&Ze.test(e)){const{groups:t}=e.match(Ze),{fn:a,values:l}=t,o=l.split(/,\s*|\s*\/\s*|\s+/).map(((e,t)=>e.endsWith("%")||t>0&&t<3&&["hsl","hsla","hsv","hsva"].includes(a)?parseFloat(e)/100:parseFloat(e)))
106
106
  return Qe[a](...o)}if("string"==typeof e){let t=e.startsWith("#")?e.slice(1):e;[3,4].includes(t.length)?t=t.split("").map((e=>e+e)).join(""):[6,8].includes(t.length)||$e(`'${e}' is not a valid hex(a) color`)
107
107
  const a=parseInt(t,16)
108
108
  return(isNaN(a)||a<0||a>4294967295)&&$e(`'${e}' is not a valid hex(a) color`),ut(t)}if("object"==typeof e){if(w(e,["r","g","b"]))return e
@@ -1300,8 +1300,11 @@ return t.createVNode("div",{class:"v-color-picker-swatches__color",onClick:()=>n
1300
1300
  const{themeClasses:o}=Va(e),{backgroundColorClasses:n,backgroundColorStyles:r}=nl(t.toRef(e,"color")),{borderClasses:i}=ml(e),{dimensionStyles:s}=el(e),{elevationClasses:u}=hl(e),{locationStyles:c}=Ql(e),{positionClasses:d}=ro(e),{roundedClasses:v}=il(e)
1301
1301
  return Dt((()=>t.createVNode(e.tag,{class:["v-sheet",o.value,n.value,i.value,u.value,d.value,v.value,e.class],style:[r.value,s.value,c.value,e.style]},l))),{}}}),Qs=xt({name:"VColorPicker",props:gt({canvasHeight:{type:[String,Number],default:150},disabled:Boolean,dotSize:{type:[Number,String],default:10},hideCanvas:Boolean,hideSliders:Boolean,hideInputs:Boolean,mode:{type:String,default:"rgba",validator:e=>Object.keys(Rs).includes(e)},modes:{type:Array,default:()=>Object.keys(Rs),validator:e=>Array.isArray(e)&&e.every((e=>Object.keys(Rs).includes(e)))},showSwatches:Boolean,swatches:Array,swatchesMaxHeight:{type:[Number,String],default:150},modelValue:{type:[Object,String]},...x(Xs({width:300}),["height","location","minHeight","maxHeight","minWidth","maxWidth"])},"VColorPicker")(),emits:{"update:modelValue":e=>!0,"update:mode":e=>!0},setup(e){const a=oa(e,"mode"),l=t.ref(null),o=oa(e,"modelValue",void 0,(e=>{if(null==e||""===e)return null
1302
1302
  let t
1303
- try{t=at(Je(e))}catch(e){return $e(e),null}return t}),(t=>t?function(e,t){if(null==t||"string"==typeof t){const t=ct(e)
1304
- return 1===e.a?t.slice(0,7):t}if("object"==typeof t){let a
1303
+ try{t=at(Je(e))}catch(e){return $e(e),null}return t}),(t=>t?function(e,t){if(null==t||"string"==typeof t){const a=1!==e.a
1304
+ if(t?.startsWith("rgb(")){const{r:t,g:l,b:o,a:n}=et(e)
1305
+ return`rgb(${t} ${l} ${o}`+(a?` / ${n})`:")")}if(t?.startsWith("hsl(")){const{h:t,s:l,l:o,a:n}=lt(e)
1306
+ return`hsl(${t} ${Math.round(100*l)} ${Math.round(100*o)}`+(a?` / ${n})`:")")}const l=ct(e)
1307
+ return 1===e.a?l.slice(0,7):l}if("object"==typeof t){let a
1305
1308
  return w(t,["r","g","b"])?a=et(e):w(t,["h","s","l"])?a=lt(e):w(t,["h","s","v"])&&(a=e),function(e,t){if(t){const{a:t,...a}=e
1306
1309
  return a}return e}(a,!w(t,["a"])&&1===e.a)}return e}(t,e.modelValue):null)),n=t.computed((()=>o.value?{...o.value,h:l.value??o.value.h}:null)),{rtlClasses:r}=ga()
1307
1310
  let i=!0
@@ -2110,8 +2113,8 @@ if(f.run((()=>{o.install(u)})),u.onUnmount((()=>f.stop())),u.provide(Vt,e),u.pro
2110
2113
  else{const{mount:e}=u
2111
2114
  u.mount=function(){const a=e(...arguments)
2112
2115
  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:nf.call(this,Vt),display:nf.call(this,pn),theme:nf.call(this,ha),icons:nf.call(this,Ft),locale:nf.call(this,va),date:nf.call(this,pu)})}}})},unmount:function(){u.stop()},defaults:e,display:l,theme:o,icons:c,locale:d,date:v,goTo:p}}))}function nf(e){const t=this.$,a=t.parent?.provides??t.vnode.appContext?.provides
2113
- if(a&&e in a)return a[e]}of.version="3.7.9-dev.2025-01-30"
2114
- const rf=function(){return of({components:Kp,directives:lf,...arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}})},sf="3.7.9-dev.2025-01-30"
2116
+ if(a&&e in a)return a[e]}of.version="3.7.9-dev.2025-02-03"
2117
+ const rf=function(){return of({components:Kp,directives:lf,...arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}})},sf="3.7.9-dev.2025-02-03"
2115
2118
  rf.version=sf,e.blueprints=qt,e.components=Kp,e.createVuetify=rf,e.directives=lf,e.useDate=mu,e.useDefaults=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0
2116
2119
  const{props:a,provideSubDefaults:l}=kt(e,t)
2117
2120
  return l(),a},e.useDisplay=Vn,e.useGoTo=Nn,e.useLayout=ea,e.useLocale=fa,e.useRtl=ga,e.useTheme=wa,e.version=sf}))