@vuetify/nightly 3.5.8-dev.2024-03-09 → 3.5.8-dev.2024-03-13
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.
- package/CHANGELOG.md +3 -2
- package/dist/json/importMap-labs.json +12 -12
- package/dist/json/importMap.json +118 -118
- package/dist/json/web-types.json +3 -3
- package/dist/vuetify-labs.css +2319 -2319
- package/dist/vuetify-labs.d.ts +21 -0
- package/dist/vuetify-labs.esm.js +8 -4
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +7 -3
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +958 -958
- package/dist/vuetify.d.ts +61 -40
- package/dist/vuetify.esm.js +8 -4
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +7 -3
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +9 -9
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VForm/index.d.mts +21 -0
- package/lib/components/index.d.mts +21 -0
- package/lib/composables/form.mjs +3 -1
- package/lib/composables/form.mjs.map +1 -1
- package/lib/composables/validation.mjs +3 -1
- package/lib/composables/validation.mjs.map +1 -1
- package/lib/entry-bundler.mjs +1 -1
- package/lib/framework.mjs +1 -1
- package/lib/index.d.mts +40 -40
- package/package.json +1 -1
package/dist/vuetify.min.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Vuetify v3.5.8-dev.2024-03-
|
|
2
|
+
* Vuetify v3.5.8-dev.2024-03-13
|
|
3
3
|
* Forged by John Leider
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -571,14 +571,14 @@ function en(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:kt()
|
|
|
571
571
|
const o=jt(e,"modelValue"),n=t.computed((()=>void 0===e.validationValue?o.value:e.validationValue)),r=Qo(),i=t.ref([]),s=t.shallowRef(!0),u=t.computed((()=>!(!T(""===o.value?null:o.value).length&&!T(""===n.value?null:n.value).length))),c=t.computed((()=>!!(e.disabled??r?.isDisabled.value))),d=t.computed((()=>!!(e.readonly??r?.isReadonly.value))),v=t.computed((()=>e.errorMessages?.length?T(e.errorMessages).concat(i.value).slice(0,Math.max(0,+e.maxErrors)):i.value)),p=t.computed((()=>{let t=(e.validateOn??r?.validateOn.value)||"input"
|
|
572
572
|
"lazy"===t&&(t="input lazy")
|
|
573
573
|
const a=new Set(t?.split(" ")??[])
|
|
574
|
-
return{blur:a.has("blur")||a.has("input"),input:a.has("input"),submit:a.has("submit"),lazy:a.has("lazy")}})),f=t.computed((()=>!e.error&&!e.errorMessages?.length&&(!e.rules.length||(s.value?!i.value.length&&!p.value.lazy||null:!i.value.length)))),m=t.shallowRef(!1),g=t.computed((()=>({[`${a}--error`]:!1===f.value,[`${a}--dirty`]:u.value,[`${a}--disabled`]:c.value,[`${a}--readonly`]:d.value}))),h=t.computed((()=>e.name??t.unref(l)))
|
|
575
|
-
function
|
|
574
|
+
return{blur:a.has("blur")||a.has("input"),input:a.has("input"),submit:a.has("submit"),lazy:a.has("lazy")}})),f=t.computed((()=>!e.error&&!e.errorMessages?.length&&(!e.rules.length||(s.value?!i.value.length&&!p.value.lazy||null:!i.value.length)))),m=t.shallowRef(!1),g=t.computed((()=>({[`${a}--error`]:!1===f.value,[`${a}--dirty`]:u.value,[`${a}--disabled`]:c.value,[`${a}--readonly`]:d.value}))),h=St("validation"),y=t.computed((()=>e.name??t.unref(l)))
|
|
575
|
+
function b(){o.value=null,t.nextTick(V)}function V(){s.value=!0,p.value.lazy?i.value=[]:w(!0)}async function w(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0]
|
|
576
576
|
const a=[]
|
|
577
577
|
m.value=!0
|
|
578
578
|
for(const t of e.rules){if(a.length>=+(e.maxErrors??1))break
|
|
579
579
|
const l="function"==typeof t?t:()=>t,o=await l(n.value)
|
|
580
|
-
!0!==o&&(!1===o||"string"==typeof o?a.push(o||""):console.warn(`${o} is not a valid value. Rule functions must return boolean true or a string.`))}return i.value=a,m.value=!1,s.value=t,i.value}return t.onBeforeMount((()=>{r?.register({id:
|
|
581
|
-
else if(e.focused){const a=t.watch((()=>e.focused),(e=>{e||
|
|
580
|
+
!0!==o&&(!1===o||"string"==typeof o?a.push(o||""):console.warn(`${o} is not a valid value. Rule functions must return boolean true or a string.`))}return i.value=a,m.value=!1,s.value=t,i.value}return t.onBeforeMount((()=>{r?.register({id:y.value,vm:h,validate:w,reset:b,resetValidation:V})})),t.onBeforeUnmount((()=>{r?.unregister(y.value)})),t.onMounted((async()=>{p.value.lazy||await w(!0),r?.update(y.value,f.value,v.value)})),zt((()=>p.value.input),(()=>{t.watch(n,(()=>{if(null!=n.value)w()
|
|
581
|
+
else if(e.focused){const a=t.watch((()=>e.focused),(e=>{e||w(),a()}))}}))})),zt((()=>p.value.blur),(()=>{t.watch((()=>e.focused),(e=>{e||w()}))})),t.watch([f,v],(()=>{r?.update(y.value,f.value,v.value)})),{errorMessages:v,isDirty:u,isDisabled:c,isReadonly:d,isPristine:s,isValid:f,isValidating:m,reset:b,resetValidation:V,validate:w,validationClasses:g}}const tn=a({id:String,appendIcon:Pl,centerAffix:{type:Boolean,default:!0},prependIcon:Pl,hideDetails:[Boolean,String],hideSpinButtons:Boolean,hint:String,persistentHint:Boolean,messages:{type:[Array,String],default:()=>[]},direction:{type:String,default:"horizontal",validator:e=>["horizontal","vertical"].includes(e)},"onClick:prepend":K(),"onClick:append":K(),...l(),...dl(),...Jo()},"VInput"),an=ht()({name:"VInput",props:{...tn()},emits:{"update:modelValue":e=>!0},setup(e,a){let{attrs:l,slots:o,emit:n}=a
|
|
582
582
|
const{densityClasses:r}=vl(e),{rtlClasses:i}=ea(),{InputIcon:s}=Uo(e),u=Ct(),c=t.computed((()=>e.id||`input-${u}`)),d=t.computed((()=>`${c.value}-messages`)),{errorMessages:v,isDirty:p,isDisabled:f,isReadonly:m,isPristine:g,isValid:h,isValidating:y,reset:b,resetValidation:V,validate:w,validationClasses:S}=en(e,"v-input",c),k=t.computed((()=>({id:c,messagesId:d,isDirty:p,isDisabled:f,isReadonly:m,isPristine:g,isValid:h,isValidating:y,reset:b,resetValidation:V,validate:w}))),x=t.computed((()=>e.errorMessages?.length||!g.value&&v.value.length?v.value:e.hint&&(e.persistentHint||e.focused)?e.hint:e.messages))
|
|
583
583
|
return Rt((()=>{const a=!(!o.prepend&&!e.prependIcon),l=!(!o.append&&!e.appendIcon),n=x.value.length>0,u=!e.hideDetails||"auto"===e.hideDetails&&(n||!!o.details)
|
|
584
584
|
return t.createVNode("div",{class:["v-input",`v-input--${e.direction}`,{"v-input--center-affix":e.centerAffix,"v-input--hide-spin-buttons":e.hideSpinButtons},r.value,i.value,S.value,e.class],style:e.style},[a&&t.createVNode("div",{key:"prepend",class:"v-input__prepend"},[o.prepend?.(k.value),e.prependIcon&&t.createVNode(s,{key:"prepend-icon",name:"prepend"},null)]),o.default&&t.createVNode("div",{class:"v-input__control"},[o.default?.(k.value)]),l&&t.createVNode("div",{key:"append",class:"v-input__append"},[e.appendIcon&&t.createVNode(s,{key:"append-icon",name:"append"},null),o.append?.(k.value)]),u&&t.createVNode("div",{class:"v-input__details"},[t.createVNode(Go,{id:d.value,active:n,messages:x.value},{message:o.message}),o.details?.(k.value)])])})),{reset:b,resetValidation:V,validate:w,isValid:h,errorMessages:v}}}),ln=a({...tn(),...C(Ho(),["inline"])},"VCheckbox"),on=ht()({name:"VCheckbox",inheritAttrs:!1,props:ln(),emits:{"update:modelValue":e=>!0,"update:focused":e=>!0},setup(e,a){let{attrs:l,slots:o}=a
|
|
@@ -1674,8 +1674,8 @@ const n=function(e){const a=jt(e,"modelValue"),l=t.computed((()=>e.disabled)),o=
|
|
|
1674
1674
|
return t.watch(r,(()=>{let e=0,t=0
|
|
1675
1675
|
const l=[]
|
|
1676
1676
|
for(const a of r.value)!1===a.isValid?(t++,l.push({id:a.id,errorMessages:a.errorMessages})):!0===a.isValid&&e++
|
|
1677
|
-
i.value=l,a.value=!(t>0)&&(e===r.value.length||null)}),{deep:!0,flush:"post"}),t.provide(Xo,{register:e=>{let{id:
|
|
1678
|
-
r.value.some((e=>e.id===
|
|
1677
|
+
i.value=l,a.value=!(t>0)&&(e===r.value.length||null)}),{deep:!0,flush:"post"}),t.provide(Xo,{register:e=>{let{id:a,vm:l,validate:o,reset:n,resetValidation:i}=e
|
|
1678
|
+
r.value.some((e=>e.id===a))&&Be(`Duplicate input name "${a}"`),r.value.push({id:a,validate:o,reset:n,resetValidation:i,vm:t.markRaw(l),isValid:null,errorMessages:[]})},unregister:e=>{r.value=r.value.filter((t=>t.id!==e))},update:(e,t,a)=>{const l=r.value.find((t=>t.id===e))
|
|
1679
1679
|
l&&(l.isValid=t,l.errorMessages=a)},isDisabled:l,isReadonly:o,isValidating:n,isValid:a,items:r,validateOn:t.toRef(e,"validateOn")}),{errors:i,isDisabled:l,isReadonly:o,isValidating:n,isValid:a,items:r,validate:async function(){const t=[]
|
|
1680
1680
|
let a=!0
|
|
1681
1681
|
i.value=[],n.value=!0
|
|
@@ -1929,9 +1929,9 @@ else{const{mount:a}=e
|
|
|
1929
1929
|
e.mount=function(){const l=a(...arguments)
|
|
1930
1930
|
return t.nextTick((()=>c.update())),e.mount=a,l}}Ct.reset(),("boolean"!=typeof __VUE_OPTIONS_API__||__VUE_OPTIONS_API__)&&e.mixin({computed:{$vuetify(){return t.reactive({defaults:yp.call(this,ct),display:yp.call(this,rn),theme:yp.call(this,ta),icons:yp.call(this,Bl),locale:yp.call(this,Xt),date:yp.call(this,bu)})}}})}
|
|
1931
1931
|
return{install:g,defaults:u,display:c,theme:d,icons:v,locale:p,date:f,goTo:m}}function yp(e){const t=this.$,a=t.parent?.provides??t.vnode.appContext?.provides
|
|
1932
|
-
if(a&&e in a)return a[e]}hp.version="3.5.8-dev.2024-03-
|
|
1932
|
+
if(a&&e in a)return a[e]}hp.version="3.5.8-dev.2024-03-13"
|
|
1933
1933
|
const bp=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
|
|
1934
|
-
return hp({components:up,directives:gp,...e})},Vp="3.5.8-dev.2024-03-
|
|
1934
|
+
return hp({components:up,directives:gp,...e})},Vp="3.5.8-dev.2024-03-13"
|
|
1935
1935
|
bp.version=Vp,e.components=up,e.createVuetify=bp,e.directives=gp,e.useDate=Su,e.useDefaults=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0
|
|
1936
1936
|
const{props:a,provideSubDefaults:l}=mt(e,t)
|
|
1937
1937
|
return l(),a},e.useDisplay=fn,e.useGoTo=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
|