vuetify 3.9.5 → 3.9.7
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/dist/json/attributes.json +3244 -3236
- package/dist/json/importMap-labs.json +28 -28
- package/dist/json/importMap.json +162 -162
- package/dist/json/tags.json +2 -0
- package/dist/json/web-types.json +6419 -6311
- package/dist/vuetify-labs.cjs +183 -127
- package/dist/vuetify-labs.css +3841 -3706
- package/dist/vuetify-labs.d.ts +173 -75
- package/dist/vuetify-labs.esm.js +183 -127
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +183 -127
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.cjs +78 -44
- package/dist/vuetify.cjs.map +1 -1
- package/dist/vuetify.css +2171 -2039
- package/dist/vuetify.d.ts +70 -70
- package/dist/vuetify.esm.js +78 -44
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +78 -44
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +67 -60
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VAlert/VAlert.css +12 -0
- package/lib/components/VAlert/VAlert.sass +13 -0
- package/lib/components/VAutocomplete/VAutocomplete.css +2 -1
- package/lib/components/VAutocomplete/VAutocomplete.sass +3 -2
- package/lib/components/VBtn/VBtn.css +10 -0
- package/lib/components/VBtn/VBtn.sass +9 -0
- package/lib/components/VCard/VCard.css +11 -0
- package/lib/components/VCard/VCard.sass +9 -0
- package/lib/components/VChip/VChip.css +6 -0
- package/lib/components/VChip/VChip.sass +5 -0
- package/lib/components/VChipGroup/VChipGroup.css +25 -0
- package/lib/components/VChipGroup/VChipGroup.sass +23 -0
- package/lib/components/VCombobox/VCombobox.css +2 -1
- package/lib/components/VCombobox/VCombobox.sass +3 -2
- package/lib/components/VDatePicker/VDatePicker.js +10 -4
- package/lib/components/VDatePicker/VDatePicker.js.map +1 -1
- package/lib/components/VDatePicker/VDatePickerYears.js +18 -8
- package/lib/components/VDatePicker/VDatePickerYears.js.map +1 -1
- package/lib/components/VFileInput/VFileInput.js +4 -2
- package/lib/components/VFileInput/VFileInput.js.map +1 -1
- package/lib/components/VList/VListItem.css +30 -0
- package/lib/components/VList/VListItem.d.ts +3 -3
- package/lib/components/VList/VListItem.sass +29 -0
- package/lib/components/VNumberInput/VNumberInput.js +6 -6
- package/lib/components/VNumberInput/VNumberInput.js.map +1 -1
- package/lib/components/VOtpInput/VOtpInput.js +9 -2
- package/lib/components/VOtpInput/VOtpInput.js.map +1 -1
- package/lib/components/VProgressLinear/VProgressLinear.css +3 -3
- package/lib/components/VProgressLinear/VProgressLinear.js +5 -6
- package/lib/components/VProgressLinear/VProgressLinear.js.map +1 -1
- package/lib/components/VProgressLinear/VProgressLinear.sass +3 -3
- package/lib/components/VSelect/VSelect.css +5 -1
- package/lib/components/VSelect/VSelect.sass +6 -2
- package/lib/components/VSlideGroup/VSlideGroup.js +5 -4
- package/lib/components/VSlideGroup/VSlideGroup.js.map +1 -1
- package/lib/components/VSnackbar/VSnackbar.css +5 -0
- package/lib/components/VSnackbar/VSnackbar.sass +3 -0
- package/lib/components/VSparkline/VBarline.js +2 -2
- package/lib/components/VSparkline/VBarline.js.map +1 -1
- package/lib/components/VSparkline/VTrendline.js +3 -0
- package/lib/components/VSparkline/VTrendline.js.map +1 -1
- package/lib/components/VTextField/VTextField.js +2 -2
- package/lib/components/VTextField/VTextField.js.map +1 -1
- package/lib/components/VTextarea/VTextarea.js +4 -2
- package/lib/components/VTextarea/VTextarea.js.map +1 -1
- package/lib/components/VTimeline/VTimeline.css +22 -0
- package/lib/components/VTimeline/VTimeline.sass +12 -0
- package/lib/components/VTreeview/VTreeviewItem.css +13 -8
- package/lib/components/VTreeview/VTreeviewItem.d.ts +9 -9
- package/lib/components/VTreeview/VTreeviewItem.sass +12 -8
- package/lib/composables/filter.js +3 -1
- package/lib/composables/filter.js.map +1 -1
- package/lib/composables/nested/nested.d.ts +1 -1
- package/lib/composables/nested/nested.js +5 -2
- package/lib/composables/nested/nested.js.map +1 -1
- package/lib/composables/rounded.js +3 -3
- package/lib/composables/rounded.js.map +1 -1
- package/lib/directives/touch/index.js +2 -2
- package/lib/directives/touch/index.js.map +1 -1
- package/lib/entry-bundler.js +1 -1
- package/lib/framework.d.ts +58 -58
- package/lib/framework.js +1 -1
- package/lib/labs/VDateInput/VDateInput.d.ts +78 -3
- package/lib/labs/VDateInput/VDateInput.js +3 -1
- package/lib/labs/VDateInput/VDateInput.js.map +1 -1
- package/lib/labs/VIconBtn/VIconBtn.js +1 -1
- package/lib/labs/VIconBtn/VIconBtn.js.map +1 -1
- package/lib/labs/VPie/VPie.css +3 -0
- package/lib/labs/VPie/VPie.js +71 -29
- package/lib/labs/VPie/VPie.js.map +1 -1
- package/lib/labs/VPie/VPie.sass +3 -0
- package/lib/labs/VPie/VPieSegment.d.ts +25 -2
- package/lib/labs/VPie/VPieSegment.js +11 -6
- package/lib/labs/VPie/VPieSegment.js.map +1 -1
- package/lib/labs/VPie/VPieTooltip.d.ts +10 -0
- package/lib/labs/VPie/VPieTooltip.js +4 -22
- package/lib/labs/VPie/VPieTooltip.js.map +1 -1
- package/lib/labs/VPie/types.d.ts +1 -0
- package/lib/labs/VPie/types.js.map +1 -1
- package/lib/labs/VVideo/VVideo.css +4 -4
- package/lib/labs/VVideo/VVideo.js +24 -33
- package/lib/labs/VVideo/VVideo.js.map +1 -1
- package/lib/labs/VVideo/VVideo.sass +4 -4
- package/package.json +2 -2
package/dist/vuetify.min.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Vuetify v3.9.
|
|
2
|
+
* Vuetify v3.9.7
|
|
3
3
|
* Forged by John Leider
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -367,11 +367,11 @@ return a.text&&(tt(a.text)?(o.color=a.text,o.caretColor=a.text):l.push(`text-${a
|
|
|
367
367
|
return{textColorClasses:a,textColorStyles:l}}function yl(e){const{colorClasses:a,colorStyles:l}=gl((()=>({background:t.toValue(e)})))
|
|
368
368
|
return{backgroundColorClasses:a,backgroundColorStyles:l}}const bl=wt({rounded:{type:[Boolean,Number,String],default:void 0},tile:Boolean},"rounded")
|
|
369
369
|
function Vl(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:xt()
|
|
370
|
-
return{roundedClasses:t.computed((()=>{const l=t.isRef(e)?e.value:e.rounded,o=
|
|
371
|
-
if(
|
|
372
|
-
else if(
|
|
373
|
-
else(
|
|
374
|
-
return
|
|
370
|
+
return{roundedClasses:t.computed((()=>{const l=t.isRef(e)?e.value:e.rounded,o=[]
|
|
371
|
+
if((t.isRef(e)?e.value:e.tile)||!1===l)o.push("rounded-0")
|
|
372
|
+
else if(!0===l||""===l)o.push(`${a}--rounded`)
|
|
373
|
+
else if("string"==typeof l||0===l)for(const e of String(l).split(" "))o.push(`rounded-${e}`)
|
|
374
|
+
return o}))}}const wl=wt({transition:{type:null,default:"fade-transition",validator:e=>!0!==e}},"transition"),Sl=(e,a)=>{let{slots:l}=a
|
|
375
375
|
const{transition:o,disabled:n,group:r,...i}=e,{component:s=(r?t.TransitionGroup:t.Transition),...u}=h(o)?o:{}
|
|
376
376
|
let c
|
|
377
377
|
return c=h(o)?t.mergeProps(u,function(e){const t=["checked","disabled"]
|
|
@@ -510,11 +510,11 @@ const{isRtl:o}=ka(),n=t.computed((()=>{if(!e.location)return{}
|
|
|
510
510
|
const{side:t,align:n}=de(e.location.split(" ").length>1?e.location:`${e.location} center`,o.value)
|
|
511
511
|
function r(e){return l?l(e):0}const i={}
|
|
512
512
|
return"center"!==t&&(a?i[uo[t]]=`calc(100% - ${r(t)}px)`:i[t]=0),"center"!==n?a?i[uo[n]]=`calc(100% - ${r(n)}px)`:i[n]=0:("center"===t?i.top=i.left="50%":i[{top:"left",bottom:"left",left:"top",right:"top"}[t]]="50%",i.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[t]),i}))
|
|
513
|
-
return{locationStyles:n}}const po=wt({absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},bufferColor:String,bufferOpacity:[Number,String],clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0},opacity:[Number,String],reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...St(),...co({location:"top"}),...bl(),...Fa(),...Ca()},"VProgressLinear"),mo=Pt()({name:"VProgressLinear",props:po(),emits:{"update:modelValue":e=>!0},setup(e,
|
|
514
|
-
const
|
|
515
|
-
function
|
|
516
|
-
const{left:t,right:a,width:l}=
|
|
517
|
-
|
|
513
|
+
return{locationStyles:n}}const po=wt({absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},bufferColor:String,bufferOpacity:[Number,String],clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0},opacity:[Number,String],reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...St(),...co({location:"top"}),...bl(),...Fa(),...Ca()},"VProgressLinear"),mo=Pt()({name:"VProgressLinear",props:po(),emits:{"update:modelValue":e=>!0},setup(e,a){let{slots:l}=a
|
|
514
|
+
const o=ca(e,"modelValue"),{isRtl:n,rtlClasses:r}=ka(),{themeClasses:i}=Aa(e),{locationStyles:s}=vo(e),{textColorClasses:u,textColorStyles:c}=hl((()=>e.color)),{backgroundColorClasses:d,backgroundColorStyles:v}=yl((()=>e.bgColor||e.color)),{backgroundColorClasses:p,backgroundColorStyles:m}=yl((()=>e.bufferColor||e.bgColor||e.color)),{backgroundColorClasses:f,backgroundColorStyles:h}=yl((()=>e.color)),{roundedClasses:y}=Vl(e),{intersectionRef:b,isIntersecting:V}=ro(),w=t.computed((()=>parseFloat(e.max))),S=t.computed((()=>parseFloat(e.height))),k=t.computed((()=>A(parseFloat(e.bufferValue)/w.value*100,0,100))),x=t.computed((()=>A(parseFloat(o.value)/w.value*100,0,100))),C=t.computed((()=>n.value!==e.reverse)),N=t.computed((()=>e.indeterminate?"fade-transition":"slide-x-transition"))
|
|
515
|
+
function E(e){if(!b.value)return
|
|
516
|
+
const{left:t,right:a,width:l}=b.value.getBoundingClientRect(),n=C.value?l-e.clientX+(a-l):e.clientX-t
|
|
517
|
+
o.value=Math.round(n/l*w.value)}return Lt((()=>t.createVNode(e.tag,{ref:b,class:t.normalizeClass(["v-progress-linear",{"v-progress-linear--absolute":e.absolute,"v-progress-linear--active":e.active&&V.value,"v-progress-linear--reverse":C.value,"v-progress-linear--rounded":e.rounded,"v-progress-linear--rounded-bar":e.roundedBar,"v-progress-linear--striped":e.striped,"v-progress-linear--clickable":e.clickable},y.value,i.value,r.value,e.class]),style:t.normalizeStyle([{bottom:"bottom"===e.location?0:void 0,top:"top"===e.location?0:void 0,height:e.active?g(S.value):0,"--v-progress-linear-height":g(S.value),...e.absolute?s.value:{}},e.style]),role:"progressbar","aria-hidden":e.active?"false":"true","aria-valuemin":"0","aria-valuemax":e.max,"aria-valuenow":e.indeterminate?void 0:Math.min(parseFloat(o.value),w.value),onClick:e.clickable&&E},{default:()=>[e.stream&&t.createElementVNode("div",{key:"stream",class:t.normalizeClass(["v-progress-linear__stream",u.value]),style:{...c.value,[C.value?"left":"right"]:g(-S.value),borderTop:`${g(S.value/2)} dotted`,opacity:parseFloat(e.bufferOpacity),top:`calc(50% - ${g(S.value/4)})`,width:g(100-k.value,"%"),"--v-progress-linear-stream-to":g(S.value*(C.value?1:-1))}},null),t.createElementVNode("div",{class:t.normalizeClass(["v-progress-linear__background",d.value]),style:t.normalizeStyle([v.value,{opacity:parseFloat(e.bgOpacity),width:e.stream?0:void 0}])},null),t.createElementVNode("div",{class:t.normalizeClass(["v-progress-linear__buffer",p.value]),style:t.normalizeStyle([m.value,{opacity:parseFloat(e.bufferOpacity),width:g(k.value,"%")}])},null),t.createVNode(t.Transition,{name:N.value},{default:()=>[e.indeterminate?t.createElementVNode("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map((e=>t.createElementVNode("div",{key:e,class:t.normalizeClass(["v-progress-linear__indeterminate",e,f.value]),style:t.normalizeStyle(h.value)},null)))]):t.createElementVNode("div",{class:t.normalizeClass(["v-progress-linear__determinate",f.value]),style:t.normalizeStyle([h.value,{width:g(x.value,"%")}])},null)]}),l.default&&t.createElementVNode("div",{class:"v-progress-linear__content"},[l.default({value:x.value,buffer:k.value})])]}))),{}}}),fo=wt({loading:[Boolean,String]},"loader")
|
|
518
518
|
function go(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:xt()
|
|
519
519
|
return{loaderClasses:t.toRef((()=>({[`${a}--loading`]:e.loading})))}}function ho(e,a){let{slots:l}=a
|
|
520
520
|
return t.createElementVNode("div",{class:t.normalizeClass(`${e.name}__loader`)},[l.default?.({color:e.color,isActive:e.active})||t.createVNode(mo,{absolute:e.absolute,active:e.active,color:e.color,height:"2",indeterminate:!0},null)])}const yo=["static","relative","fixed","absolute","sticky"],bo=wt({position:{type:String,validator:e=>yo.includes(e)}},"position")
|
|
@@ -703,15 +703,15 @@ if(e)if("next"===e){if(t=R(g.el.querySelector(":focus"),e),!t)return A("first")}
|
|
|
703
703
|
else{t=Z(g.el)[0]}t&&t.focus({preventScroll:!0})}function T(e){const t=p.value&&n.value?-1:1,a=("prev"===e?-t:t)*d.value
|
|
704
704
|
let l=c.value+a
|
|
705
705
|
if(p.value&&n.value&&m.el){const{scrollWidth:e,offsetWidth:t}=m.el
|
|
706
|
-
l+=e-t}x(l)}const D=t.computed((()=>({next:s.next,prev:s.prev,select:s.select,isSelected:s.isSelected}))),$=t.computed((()=>{switch(e.showArrows){case"always":return!0
|
|
706
|
+
l+=e-t}x(l)}const D=t.computed((()=>({next:s.next,prev:s.prev,select:s.select,isSelected:s.isSelected}))),$=t.computed((()=>u.value||Math.abs(c.value)>0)),F=t.computed((()=>{switch(e.showArrows){case"always":return!0
|
|
707
707
|
case"desktop":return!i.value
|
|
708
|
-
case!0:return
|
|
709
|
-
case"mobile":return i.value
|
|
710
|
-
default:return!i.value
|
|
708
|
+
case!0:return $.value
|
|
709
|
+
case"mobile":return i.value||$.value
|
|
710
|
+
default:return!i.value&&$.value}})),z=t.computed((()=>Math.abs(c.value)>1)),M=t.computed((()=>{if(!m.value||!$.value)return!1
|
|
711
711
|
const e=Un(p.value,m.el),t=function(e,t){const a=e?"clientWidth":"clientHeight"
|
|
712
712
|
return t?.[a]||0}(p.value,m.el)
|
|
713
713
|
return e-t-Math.abs(c.value)>1}))
|
|
714
|
-
return Lt((()=>t.createVNode(e.tag,{class:t.normalizeClass(["v-slide-group",{"v-slide-group--vertical":!p.value,"v-slide-group--has-affixes"
|
|
714
|
+
return Lt((()=>t.createVNode(e.tag,{class:t.normalizeClass(["v-slide-group",{"v-slide-group--vertical":!p.value,"v-slide-group--has-affixes":F.value,"v-slide-group--is-overflowing":u.value},r.value,e.class]),style:t.normalizeStyle(e.style),tabindex:S.value||s.selected.value.length?-1:0,onFocus:I},{default:()=>[F.value&&t.createElementVNode("div",{key:"prev",class:t.normalizeClass(["v-slide-group__prev",{"v-slide-group__prev--disabled":!z.value}]),onMousedown:P,onClick:()=>z.value&&T("prev")},[o.prev?.(D.value)??t.createVNode(Qa,null,{default:()=>[t.createVNode(no,{icon:n.value?e.nextIcon:e.prevIcon},null)]})]),t.createElementVNode("div",{key:"container",ref:m,class:t.normalizeClass(["v-slide-group__container",e.contentClass]),onScroll:C},[t.createElementVNode("div",{ref:g,class:"v-slide-group__content",onFocusin:N,onFocusout:E,onKeydown:B},[o.default?.(D.value)])]),F.value&&t.createElementVNode("div",{key:"next",class:t.normalizeClass(["v-slide-group__next",{"v-slide-group__next--disabled":!M.value}]),onMousedown:P,onClick:()=>M.value&&T("next")},[o.next?.(D.value)??t.createVNode(Qa,null,{default:()=>[t.createVNode(no,{icon:n.value?e.prevIcon:e.nextIcon},null)]})])]}))),{selected:s.selected,scrollTo:T,scrollOffset:c,focus:A,hasPrev:z,hasNext:M}}}),Qn=Symbol.for("vuetify:v-chip-group"),Jn=wt({baseColor:String,column:Boolean,filter:Boolean,valueComparator:{type:Function,default:v},...Xn(),...St(),...Gl({selectedClass:"v-chip--selected"}),...Fa(),...Ca(),...Hl({variant:"tonal"})},"VChipGroup"),er=Pt()({name:"VChipGroup",props:Jn(),emits:{"update:modelValue":e=>!0},setup(e,a){let{slots:l}=a
|
|
715
715
|
const{themeClasses:o}=Aa(e),{isSelected:n,select:r,next:i,prev:s,selected:u}=Xl(e,Qn)
|
|
716
716
|
return Et({VChip:{baseColor:t.toRef((()=>e.baseColor)),color:t.toRef((()=>e.color)),disabled:t.toRef((()=>e.disabled)),filter:t.toRef((()=>e.filter)),variant:t.toRef((()=>e.variant))}}),Lt((()=>{const a=Zn.filterProps(e)
|
|
717
717
|
return t.createVNode(Zn,t.mergeProps(a,{class:["v-chip-group",{"v-chip-group--column":e.column},o.value,e.class],style:e.style}),{default:()=>[l.default?.({isSelected:n,select:r,next:i,prev:s,selected:u.value})]})})),{}}}),tr=wt({activeClass:String,appendAvatar:String,appendIcon:Ot,baseColor:String,closable:Boolean,closeIcon:{type:Ot,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},draggable:Boolean,filter:Boolean,filterIcon:{type:Ot,default:"$complete"},label:Boolean,link:{type:Boolean,default:void 0},pill:Boolean,prependAvatar:String,prependIcon:Ot,ripple:{type:[Boolean,Object],default:!0},text:{type:[String,Number,Boolean],default:void 0},modelValue:{type:Boolean,default:!0},onClick:K(),onClickOnce:K(),...El(),...St(),...Ml(),...Il(),...Kl(),...bl(),...ko(),...ao(),...Fa({tag:"span"}),...Ca(),...Hl({variant:"tonal"})},"VChip"),ar=Pt()({name:"VChip",directives:{vRipple:jo},props:tr(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0,"group:selected":e=>!0,click:e=>!0},setup(e,a){let{attrs:l,emit:o,slots:n}=a
|
|
@@ -803,7 +803,7 @@ case"single":return cr
|
|
|
803
803
|
default:return dr}})),c=ca(e,"activated",e.activated,(e=>i.value.in(e,l.value,o.value)),(e=>i.value.out(e,l.value,o.value))),d=ca(e,"selected",e.selected,(e=>s.value.in(e,l.value,o.value,n.value)),(e=>s.value.out(e,l.value,o.value)))
|
|
804
804
|
function v(e){const a=[]
|
|
805
805
|
let l=t.toRaw(e)
|
|
806
|
-
for(;
|
|
806
|
+
for(;void 0!==l;)a.unshift(l),l=o.value.get(l)
|
|
807
807
|
return a}t.onBeforeUnmount((()=>{a=!0}))
|
|
808
808
|
const p=kt("nested"),m=new Set,f={id:t.shallowRef(),root:{opened:r,activatable:t.toRef((()=>e.activatable)),selectable:t.toRef((()=>e.selectable)),activated:c,selected:d,selectedValues:t.computed((()=>{const e=[]
|
|
809
809
|
for(const[t,a]of d.value.entries())"on"===a&&e.push(t)
|
|
@@ -822,7 +822,8 @@ const r=i.value.activate({id:t,value:a,activated:new Set(c.value),children:l.val
|
|
|
822
822
|
if(r.size!==c.value.size)c.value=r
|
|
823
823
|
else{for(const e of r)if(!c.value.has(e))return void(c.value=r)
|
|
824
824
|
for(const e of c.value)if(!r.has(e))return void(c.value=r)}},children:l,parents:o,disabled:n,getPath:v}}
|
|
825
|
-
return t.provide(gr,f),f.root},Vr=(e,a,l)=>{const o=t.inject(gr,hr),n=Symbol("nested item"),r=t.computed((()=>t.toRaw(t.toValue(e))
|
|
825
|
+
return t.provide(gr,f),f.root},Vr=(e,a,l)=>{const o=t.inject(gr,hr),n=Symbol("nested item"),r=t.computed((()=>{const a=t.toRaw(t.toValue(e))
|
|
826
|
+
return void 0!==a?a:n})),i={...o,id:r,open:(e,t)=>o.root.open(r.value,e,t),openOnSelect:(e,t)=>o.root.openOnSelect(r.value,e,t),isOpen:t.computed((()=>o.root.opened.value.has(r.value))),parent:t.computed((()=>o.root.parents.value.get(r.value))),activate:(e,t)=>o.root.activate(r.value,e,t),isActivated:t.computed((()=>o.root.activated.value.has(r.value))),select:(e,t)=>o.root.select(r.value,e,t),isSelected:t.computed((()=>"on"===o.root.selected.value.get(r.value))),isIndeterminate:t.computed((()=>"indeterminate"===o.root.selected.value.get(r.value))),isLeaf:t.computed((()=>!o.root.children.value.get(r.value))),isGroupActivator:o.isGroupActivator}
|
|
826
827
|
return t.onBeforeMount((()=>{o.isGroupActivator||o.root.register(r.value,o.id.value,t.toValue(a),l)})),t.onBeforeUnmount((()=>{o.isGroupActivator||o.root.unregister(r.value)})),l&&t.provide(gr,i),i},wr=It({name:"VListGroupActivator",setup(e,a){let{slots:l}=a
|
|
827
828
|
return(()=>{const e=t.inject(gr,hr)
|
|
828
829
|
t.provide(gr,{...e,isGroupActivator:!0})})(),()=>l.default?.()}}),Sr=wt({activeColor:String,baseColor:String,color:String,collapseIcon:{type:Ot,default:"$collapse"},disabled:Boolean,expandIcon:{type:Ot,default:"$expand"},rawId:[String,Number],prependIcon:Ot,appendIcon:Ot,fluid:Boolean,subgroup:Boolean,title:String,value:null,...St(),...Fa()},"VListGroup"),kr=Pt()({name:"VListGroup",props:Sr(),setup(e,a){let{slots:l}=a
|
|
@@ -1071,9 +1072,9 @@ function zi(e){return{onIntersect:function(t,a){e.autofocus&&t&&a[0].target?.foc
|
|
|
1071
1072
|
const r=ca(e,"modelValue"),{isFocused:i,focus:s,blur:u}=gn(e),{onIntersect:c}=zi(e),d=t.computed((()=>"function"==typeof e.counterValue?e.counterValue(r.value):"number"==typeof e.counterValue?e.counterValue:(r.value??"").toString().length)),v=t.computed((()=>l.maxlength?l.maxlength:!e.counter||"number"!=typeof e.counter&&"string"!=typeof e.counter?void 0:e.counter)),p=t.computed((()=>["plain","underlined"].includes(e.variant))),m=t.ref(),f=t.ref(),g=t.ref(),h=t.computed((()=>Mi.includes(e.type)||e.persistentPlaceholder||i.value||e.active))
|
|
1072
1073
|
function y(){i.value||s(),t.nextTick((()=>{g.value!==document.activeElement&&g.value?.focus()}))}function b(e){o("mousedown:control",e),e.target!==g.value&&(y(),e.preventDefault())}function V(e){o("click:control",e)}function w(a){const l=a.target
|
|
1073
1074
|
if(r.value=l.value,e.modelModifiers?.trim&&["text","search","password","tel","url"].includes(e.type)){const e=[l.selectionStart,l.selectionEnd]
|
|
1074
|
-
t.nextTick((()=>{l.selectionStart=e[0],l.selectionEnd=e[1]}))}}return Lt((()=>{const a=!!(n.counter||!1!==e.counter&&null!=e.counter),o=!(!a&&!n.details),[S,k]=P(l),{modelValue:x,...
|
|
1075
|
-
return t.createVNode(xn,t.mergeProps({ref:m,modelValue:r.value,"onUpdate:modelValue":e=>r.value=e,class:["v-text-field",{"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-input--plain-underlined":p.value},e.class],style:e.style},S,
|
|
1076
|
-
return t.createVNode(Fi,t.mergeProps({ref:f,onMousedown:b,onClick:V,"onClick:clear":a=>function(a,l){a.stopPropagation(),y(),t.nextTick((()=>{r.value=null,l(),X(e["onClick:clear"],a)}))}(a,S),"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"],role:e.role},
|
|
1075
|
+
t.nextTick((()=>{l.selectionStart=e[0],l.selectionEnd=e[1]}))}}return Lt((()=>{const a=!!(n.counter||!1!==e.counter&&null!=e.counter),o=!(!a&&!n.details),[S,k]=P(l),{modelValue:x,...N}=xn.filterProps(e),E=Fi.filterProps(e)
|
|
1076
|
+
return t.createVNode(xn,t.mergeProps({ref:m,modelValue:r.value,"onUpdate:modelValue":e=>r.value=e,class:["v-text-field",{"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-input--plain-underlined":p.value},e.class],style:e.style},S,N,{centerAffix:!p.value,focused:i.value}),{...n,default:a=>{let{id:l,isDisabled:o,isDirty:d,isReadonly:v,isValid:p,hasDetails:m,reset:S}=a
|
|
1077
|
+
return t.createVNode(Fi,t.mergeProps({ref:f,onMousedown:b,onClick:V,"onClick:clear":a=>function(a,l){a.stopPropagation(),y(),t.nextTick((()=>{r.value=null,l(),X(e["onClick:clear"],a)}))}(a,S),"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"],role:e.role},C(E,["onClick:clear"]),{id:l.value,active:h.value||d.value,dirty:d.value||e.dirty,disabled:o.value,focused:i.value,details:m.value,error:!1===p.value}),{...n,default:a=>{let{props:{class:l,...i}}=a
|
|
1077
1078
|
const d=t.withDirectives(t.createElementVNode("input",t.mergeProps({ref:g,value:r.value,onInput:w,autofocus:e.autofocus,readonly:v.value,disabled:o.value,name:e.name,placeholder:e.placeholder,size:1,role:e.role,type:e.type,onFocus:s,onBlur:u},i,k),null),[[xl,{handler:c},null,{once:!0}]])
|
|
1078
1079
|
return t.createElementVNode(t.Fragment,null,[e.prefix&&t.createElementVNode("span",{class:"v-text-field__prefix"},[t.createElementVNode("span",{class:"v-text-field__prefix__text"},[e.prefix])]),n.default?t.createElementVNode("div",{class:t.normalizeClass(l),"data-no-activator":""},[n.default(),d]):t.cloneVNode(d,{class:l}),e.suffix&&t.createElementVNode("span",{class:"v-text-field__suffix"},[t.createElementVNode("span",{class:"v-text-field__suffix__text"},[e.suffix])])])}})},details:o?l=>t.createElementVNode(t.Fragment,null,[n.details?.(l),a&&t.createElementVNode(t.Fragment,null,[t.createElementVNode("span",null,null),t.createVNode(Ri,{active:e.persistentCounter||i.value,value:d.value,max:v.value,disabled:e.disabled},n.counter)])]):void 0})})),En({},m,f,g)}}),ji=wt({renderless:Boolean,...St()},"VVirtualScrollItem"),Hi=Pt()({name:"VVirtualScrollItem",inheritAttrs:!1,props:ji(),emits:{"update:height":e=>!0},setup(e,a){let{attrs:l,emit:o,slots:n}=a
|
|
1079
1080
|
const{resizeRef:r,contentRect:i}=ta(void 0,"border")
|
|
@@ -1172,15 +1173,17 @@ return t.watchEffect((()=>{const s="function"==typeof l?l():t.unref(l),u="string
|
|
|
1172
1173
|
if(!e?.length)return l
|
|
1173
1174
|
e:for(let i=0;i<e.length;i++){const[s,u=s]=B(e[i]),c={},d={}
|
|
1174
1175
|
let v=-1
|
|
1175
|
-
if((t||r>0)&&!a?.noFilter){
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1176
|
+
if((t||r>0)&&!a?.noFilter){let e=!1
|
|
1177
|
+
if("object"==typeof s){if("divider"===s.type||"subheader"===s.type)continue
|
|
1178
|
+
const l=n||Object.keys(u)
|
|
1179
|
+
e=l.length===r
|
|
1180
|
+
for(const e of l){const l=m(u,e),n=a?.customKeyFilter?.[e]
|
|
1181
|
+
if(v=n?n(l,t,s):o(l,t,s),-1!==v&&!1!==v)n?c[e]=Ji(v,t):d[e]=Ji(v,t)
|
|
1179
1182
|
else if("every"===a?.filterMode)continue e}}else v=o(s,t,s),-1!==v&&!1!==v&&(d.title=Ji(v,t))
|
|
1180
|
-
const
|
|
1181
|
-
if(!
|
|
1182
|
-
if("union"===a?.filterMode&&
|
|
1183
|
-
if("intersection"===a?.filterMode&&(
|
|
1183
|
+
const l=Object.keys(d).length,i=Object.keys(c).length
|
|
1184
|
+
if(!l&&!i)continue
|
|
1185
|
+
if("union"===a?.filterMode&&i!==r&&!l)continue
|
|
1186
|
+
if("intersection"===a?.filterMode&&(i!==r||!l&&r>0&&!e))continue}l.push({index:i,matches:{...d,...c}})}return l}(i.value,u,{customKeyFilter:{...e.customKeyFilter,...t.unref(o?.customKeyFilter)},default:e.customFilter,filterKeys:e.filterKeys,filterMode:e.filterMode,noFilter:e.noFilter}),d=t.unref(a),v=[],p=new Map
|
|
1184
1187
|
c.forEach((e=>{let{index:t,matches:a}=e
|
|
1185
1188
|
const l=d[t]
|
|
1186
1189
|
v.push(l),p.set(l.value,a)})),n.value=v,r.value=p})),{filteredItems:n,filteredMatches:r,getMatches:function(e){return r.value.get(e.value)}}}function as(e,a,l){return null!=l&&l.length?l.map(((o,n)=>{const r=0===n?0:l[n-1][1],i=[t.createElementVNode("span",{class:t.normalizeClass(`${e}__unmask`)},[a.slice(r,o[0])]),t.createElementVNode("span",{class:t.normalizeClass(`${e}__mask`)},[a.slice(o[0],o[1])])]
|
|
@@ -1257,10 +1260,10 @@ return{touchstart:e=>function(e,t){const a=e.changedTouches[0]
|
|
|
1257
1260
|
t.touchstartX=a.clientX,t.touchstartY=a.clientY,t.start?.({originalEvent:e,...t})}(e,t),touchend:e=>function(e,t){const a=e.changedTouches[0]
|
|
1258
1261
|
t.touchendX=a.clientX,t.touchendY=a.clientY,t.end?.({originalEvent:e,...t}),Ts(t)}(e,t),touchmove:e=>function(e,t){const a=e.changedTouches[0]
|
|
1259
1262
|
t.touchmoveX=a.clientX,t.touchmoveY=a.clientY,t.move?.({originalEvent:e,...t})}(e,t)}}const $s={mounted:function(e,t){const a=t.value,l=a?.parent?e.parentElement:e,o=a?.options??{passive:!0},n=t.instance?.$.uid
|
|
1260
|
-
if(!l
|
|
1263
|
+
if(!l||void 0===n)return
|
|
1261
1264
|
const r=Ds(t.value)
|
|
1262
1265
|
l._touchHandlers=l._touchHandlers??Object.create(null),l._touchHandlers[n]=r,w(r).forEach((e=>{l.addEventListener(e,r[e],o)}))},unmounted:function(e,t){const a=t.value?.parent?e.parentElement:e,l=t.instance?.$.uid
|
|
1263
|
-
if(!a?._touchHandlers
|
|
1266
|
+
if(!a?._touchHandlers||void 0===l)return
|
|
1264
1267
|
const o=a._touchHandlers[l]
|
|
1265
1268
|
w(o).forEach((e=>{a.removeEventListener(e,o[e])})),delete a._touchHandlers[l]}},Fs=Symbol.for("vuetify:v-window"),zs=Symbol.for("vuetify:v-window-group"),Ms=wt({continuous:Boolean,nextIcon:{type:[Boolean,String,Function,Object],default:"$next"},prevIcon:{type:[Boolean,String,Function,Object],default:"$prev"},reverse:Boolean,showArrows:{type:[Boolean,String],validator:e=>"boolean"==typeof e||"hover"===e},verticalArrows:[Boolean,String],touch:{type:[Object,Boolean],default:void 0},direction:{type:String,default:"horizontal"},modelValue:null,disabled:Boolean,selectedClass:{type:String,default:"v-window-item--active"},mandatory:{type:[Boolean,String],default:"force"},...St(),...Fa(),...Ca()},"VWindow"),Ls=Pt()({name:"VWindow",directives:{vTouch:$s},props:Ms(),emits:{"update:modelValue":e=>!0},setup(e,a){let{slots:l}=a
|
|
1266
1269
|
const{themeClasses:o}=Aa(e),{isRtl:n}=ka(),{t:r}=wa(),i=Xl(e,zs),s=t.ref(),u=t.computed((()=>n.value?!e.reverse:e.reverse)),c=t.shallowRef(!1),d=t.computed((()=>`v-window-${"vertical"===e.direction?"y":"x"}${(u.value?!c.value:c.value)?"-reverse":""}-transition`)),v=t.shallowRef(0),p=t.ref(void 0),m=t.computed((()=>i.items.value.findIndex((e=>i.selected.value.includes(e.id)))))
|
|
@@ -1843,17 +1846,17 @@ return!0}(a)||e.min&&n.isAfter(n.startOfMonth(n.date(e.min)),t)||e.max&&n.isAfte
|
|
|
1843
1846
|
return t=n.getNextMonth(t),{isDisabled:r,text:l,label:o,value:a}}))}))
|
|
1844
1847
|
return t.watchEffect((()=>{r.value=r.value??n.getMonth(n.date())})),Lt((()=>t.createElementVNode("div",{class:"v-date-picker-months",style:{height:g(e.height)}},[t.createElementVNode("div",{class:"v-date-picker-months__content"},[i.value.map(((a,n)=>{const i={active:r.value===n,ariaLabel:a.label,color:r.value===n?e.color:void 0,disabled:a.isDisabled,rounded:!0,text:a.text,variant:r.value===a.value?"flat":"text",onClick:()=>function(e){if(r.value===e)return void l("update:modelValue",r.value)
|
|
1845
1848
|
r.value=e}(n)}
|
|
1846
|
-
return o.month?.({month:a,i:n,props:i})??t.createVNode(Wo,t.mergeProps({key:"month"},i),null)}))])]))),{}}}),av=wt({color:String,height:[String,Number],min:null,max:null,modelValue:Number,allowedYears:[Array,Function]},"VDatePickerYears"),lv=Pt()({name:"VDatePickerYears",props:av(),emits:{"update:modelValue":e=>!0},setup(e,a){let{emit:l,slots:o}=a
|
|
1849
|
+
return o.month?.({month:a,i:n,props:i})??t.createVNode(Wo,t.mergeProps({key:"month"},i),null)}))])]))),{}}}),av=wt({color:String,height:[String,Number],min:null,max:null,modelValue:Number,allowedYears:[Array,Function]},"VDatePickerYears"),lv=Pt()({name:"VDatePickerYears",props:av(),directives:{vIntersect:xl},emits:{"update:modelValue":e=>!0},setup(e,a){let{emit:l,slots:o}=a
|
|
1847
1850
|
const n=Ou(),r=ca(e,"modelValue"),i=t.computed((()=>{const t=n.getYear(n.date())
|
|
1848
1851
|
let a=t-100,l=t+52
|
|
1849
1852
|
e.min&&(a=n.getYear(n.date(e.min))),e.max&&(l=n.getYear(n.date(e.max)))
|
|
1850
1853
|
let o=n.startOfYear(n.date())
|
|
1851
1854
|
return o=n.setYear(o,a),f(l-a+1,a).map((e=>{const t=n.format(o,"year")
|
|
1852
|
-
return o=n.setYear(o,n.getYear(o)+1),{text:t,value:e,isDisabled:!
|
|
1855
|
+
return o=n.setYear(o,n.getYear(o)+1),{text:t,value:e,isDisabled:!c(e)}}))}))
|
|
1853
1856
|
t.watchEffect((()=>{r.value=r.value??n.getYear(n.date())}))
|
|
1854
1857
|
const s=ne()
|
|
1855
|
-
function u(t){return Array.isArray(e.allowedYears)&&e.allowedYears.length?e.allowedYears.includes(t):"function"!=typeof e.allowedYears||e.allowedYears(t)}return
|
|
1856
|
-
return o.year?.({year:a,i:n,props:i})??t.createVNode(Wo,t.mergeProps({key:"month"},i),null)}))])]))),{}}}),ov=wt({header:{type:String,default:"$vuetify.datePicker.header"},headerColor:String,...Gd(),...Qd({weeksInMonth:"static"}),...C(ev(),["modelValue"]),...C(av(),["modelValue"]),...Vu({title:"$vuetify.datePicker.title"}),modelValue:null},"VDatePicker"),nv=Pt()({name:"VDatePicker",props:ov(),emits:{"update:modelValue":e=>!0,"update:month":e=>!0,"update:year":e=>!0,"update:viewMode":e=>!0},setup(e,a){let{emit:l,slots:o}=a
|
|
1858
|
+
function u(){s.el?.focus(),s.el?.scrollIntoView({block:"center"})}function c(t){return Array.isArray(e.allowedYears)&&e.allowedYears.length?e.allowedYears.includes(t):"function"!=typeof e.allowedYears||e.allowedYears(t)}return Lt((()=>t.withDirectives(t.createElementVNode("div",{class:"v-date-picker-years",style:{height:g(e.height)}},[t.createElementVNode("div",{class:"v-date-picker-years__content"},[i.value.map(((a,n)=>{const i={ref:r.value===a.value?s:void 0,active:r.value===a.value,color:r.value===a.value?e.color:void 0,rounded:!0,text:a.text,disabled:a.isDisabled,variant:r.value===a.value?"flat":"text",onClick:()=>{r.value!==a.value?r.value=a.value:l("update:modelValue",r.value)}}
|
|
1859
|
+
return o.year?.({year:a,i:n,props:i})??t.createVNode(Wo,t.mergeProps({key:"month"},i),null)}))])]),[[xl,{handler:u},null,{once:!0}]]))),{}}}),ov=wt({header:{type:String,default:"$vuetify.datePicker.header"},headerColor:String,...Gd(),...Qd({weeksInMonth:"static"}),...C(ev(),["modelValue"]),...C(av(),["modelValue"]),...Vu({title:"$vuetify.datePicker.title"}),modelValue:null},"VDatePicker"),nv=Pt()({name:"VDatePicker",props:ov(),emits:{"update:modelValue":e=>!0,"update:month":e=>!0,"update:year":e=>!0,"update:viewMode":e=>!0},setup(e,a){let{emit:l,slots:o}=a
|
|
1857
1860
|
const n=Ou(),{t:r}=wa(),{rtlClasses:i}=ka(),s=ca(e,"modelValue",void 0,(e=>B(e).map((e=>n.date(e)))),(t=>e.multiple?t:t[0])),u=ca(e,"viewMode"),c=t.computed((()=>{const t=n.date(e.min)
|
|
1858
1861
|
return e.min&&n.isValid(t)?t:null})),d=t.computed((()=>{const t=n.date(e.max)
|
|
1859
1862
|
return e.max&&n.isValid(t)?t:null})),v=t.computed((()=>{const e=n.date()
|
|
@@ -1865,20 +1868,20 @@ if("month"!==u.value)t.push("prev","next")
|
|
|
1865
1868
|
else{let e=n.date()
|
|
1866
1869
|
if(e=n.startOfMonth(e),e=n.setMonth(e,f.value),e=n.setYear(e,h.value),c.value){const a=n.addDays(n.startOfMonth(e),-1)
|
|
1867
1870
|
n.isAfter(c.value,a)&&t.push("prev")}if(d.value){const a=n.addDays(n.endOfMonth(e),1)
|
|
1868
|
-
n.isAfter(a,d.value)&&t.push("next")}}return t}))
|
|
1869
|
-
function
|
|
1871
|
+
n.isAfter(a,d.value)&&t.push("next")}}return t})),k=t.computed((()=>e.allowedYears||E)),x=t.computed((()=>e.allowedMonths||_))
|
|
1872
|
+
function N(t,a){const l=e.allowedDates
|
|
1870
1873
|
if("function"!=typeof l)return!0
|
|
1871
1874
|
const o=n.getDiff(a,t,"days")
|
|
1872
1875
|
for(let e=0;e<o;e++)if(l(n.addDays(t,e)))return!0
|
|
1873
|
-
return!1}function
|
|
1874
|
-
return
|
|
1875
|
-
return!1}return!0}function
|
|
1876
|
-
return
|
|
1877
|
-
return!1}return!0}function
|
|
1876
|
+
return!1}function E(t){if("function"==typeof e.allowedDates){const e=n.parseISO(`${t}-01-01`)
|
|
1877
|
+
return N(e,n.endOfYear(e))}if(Array.isArray(e.allowedDates)&&e.allowedDates.length){for(const a of e.allowedDates)if(n.getYear(n.date(a))===t)return!0
|
|
1878
|
+
return!1}return!0}function _(t){if("function"==typeof e.allowedDates){const e=String(t+1).padStart(2,"0"),a=n.parseISO(`${h.value}-${e}-01`)
|
|
1879
|
+
return N(a,n.endOfMonth(a))}if(Array.isArray(e.allowedDates)&&e.allowedDates.length){for(const a of e.allowedDates)if(n.getYear(n.date(a))===h.value&&n.getMonth(n.date(a))===t)return!0
|
|
1880
|
+
return!1}return!0}function I(){f.value<11?f.value++:(h.value++,f.value=0,$()),D()}function P(){f.value>0?f.value--:(h.value--,f.value=11,$()),D()}function R(){u.value="month"}function A(){u.value="months"===u.value?"month":"months"}function T(){u.value="year"===u.value?"month":"year"}function D(){"months"===u.value&&A()}function $(){"year"===u.value&&T()}return t.watch(s,((e,t)=>{const a=B(t),l=B(e)
|
|
1878
1881
|
if(!l.length)return
|
|
1879
1882
|
const o=n.date(a[a.length-1]),r=n.date(l[l.length-1]),i=n.getMonth(r),s=n.getYear(r)
|
|
1880
|
-
i!==f.value&&(f.value=i,
|
|
1881
|
-
return t.createVNode(wu,t.mergeProps(a,{color:p.value,class:["v-date-picker",`v-date-picker--${u.value}`,{"v-date-picker--show-week":e.showWeek},i.value,e.class],style:e.style}),{title:()=>o.title?.()??t.createElementVNode("div",{class:"v-date-picker__title"},[r(e.title)]),header:()=>o.header?t.createVNode(dl,{defaults:{VDatePickerHeader:{...y}}},{default:()=>[o.header?.(y)]}):t.createVNode(Xd,t.mergeProps({key:"header"},n,y,{onClick:"month"!==u.value?
|
|
1883
|
+
i!==f.value&&(f.value=i,D()),s!==h.value&&(h.value=s,$()),y.value=n.isBefore(o,r)})),Lt((()=>{const a=wu.filterProps(e),l=Kd.filterProps(e),n=Xd.filterProps(e),v=Jd.filterProps(e),m=C(tv.filterProps(e),["modelValue"]),g=C(lv.filterProps(e),["modelValue"]),y={color:p.value,header:b.value,transition:w.value}
|
|
1884
|
+
return t.createVNode(wu,t.mergeProps(a,{color:p.value,class:["v-date-picker",`v-date-picker--${u.value}`,{"v-date-picker--show-week":e.showWeek},i.value,e.class],style:e.style}),{title:()=>o.title?.()??t.createElementVNode("div",{class:"v-date-picker__title"},[r(e.title)]),header:()=>o.header?t.createVNode(dl,{defaults:{VDatePickerHeader:{...y}}},{default:()=>[o.header?.(y)]}):t.createVNode(Xd,t.mergeProps({key:"header"},n,y,{onClick:"month"!==u.value?R:void 0}),{prepend:o.prepend,append:o.append}),default:()=>t.createElementVNode(t.Fragment,null,[t.createVNode(Kd,t.mergeProps(l,{disabled:S.value,text:V.value,"onClick:next":I,"onClick:prev":P,"onClick:month":A,"onClick:year":T}),null),t.createVNode(Qa,{hideOnLeave:!0},{default:()=>["months"===u.value?t.createVNode(tv,t.mergeProps({key:"date-picker-months"},m,{modelValue:f.value,"onUpdate:modelValue":[e=>f.value=e,D],min:c.value,max:d.value,year:h.value,allowedMonths:x.value}),{month:o.month}):"year"===u.value?t.createVNode(lv,t.mergeProps({key:"date-picker-years"},g,{modelValue:h.value,"onUpdate:modelValue":[e=>h.value=e,$],min:c.value,max:d.value,allowedYears:k.value}),{year:o.year}):t.createVNode(Jd,t.mergeProps({key:"date-picker-month"},v,{modelValue:s.value,"onUpdate:modelValue":e=>s.value=e,month:f.value,"onUpdate:month":[e=>f.value=e,D],year:h.value,"onUpdate:year":[e=>h.value=e,$],min:c.value,max:d.value}),{day:o.day})]})]),actions:o.actions})})),{}}}),rv=wt({actionText:String,bgColor:String,color:String,icon:Ot,image:String,justify:{type:String,default:"center"},headline:String,title:String,text:String,textWidth:{type:[Number,String],default:500},href:String,to:String,...St(),...vl(),...ao({size:void 0}),...Ca()},"VEmptyState"),iv=Pt()({name:"VEmptyState",props:rv(),emits:{"click:action":e=>!0},setup(e,a){let{emit:l,slots:o}=a
|
|
1882
1885
|
const{themeClasses:n}=Aa(e),{backgroundColorClasses:r,backgroundColorStyles:i}=yl((()=>e.bgColor)),{dimensionStyles:s}=pl(e),{displayClasses:u}=zn()
|
|
1883
1886
|
function c(e){l("click:action",e)}return Lt((()=>{const a=!(!o.actions&&!e.actionText),l=!(!o.headline&&!e.headline),d=!(!o.title&&!e.title),v=!(!o.text&&!e.text),p=!!(o.media||e.image||e.icon),m=e.size||(e.image?200:96)
|
|
1884
1887
|
return t.createElementVNode("div",{class:t.normalizeClass(["v-empty-state",{[`v-empty-state--${e.justify}`]:!0},n.value,r.value,u.value,e.class]),style:t.normalizeStyle([i.value,s.value,e.style])},[p&&t.createElementVNode("div",{key:"media",class:"v-empty-state__media"},[o.media?t.createVNode(dl,{key:"media-defaults",defaults:{VImg:{src:e.image,height:m},VIcon:{size:m,icon:e.icon}}},{default:()=>[o.media()]}):t.createElementVNode(t.Fragment,null,[e.image?t.createVNode(Nl,{key:"image",src:e.image,height:m},null):e.icon?t.createVNode(no,{key:"icon",color:e.color,size:m,icon:e.icon},null):void 0])]),l&&t.createElementVNode("div",{key:"headline",class:"v-empty-state__headline"},[o.headline?.()??e.headline]),d&&t.createElementVNode("div",{key:"title",class:"v-empty-state__title"},[o.title?.()??e.title]),v&&t.createElementVNode("div",{key:"text",class:"v-empty-state__text",style:{maxWidth:g(e.textWidth)}},[o.text?.()??e.text]),o.default&&t.createElementVNode("div",{key:"content",class:"v-empty-state__content"},[o.default()]),a&&t.createElementVNode("div",{key:"actions",class:"v-empty-state__actions"},[t.createVNode(dl,{defaults:{VBtn:{class:"v-empty-state__action-btn",color:e.color??"surface-variant",href:e.href,text:e.actionText,to:e.to}}},{default:()=>[o.actions?.({props:{onClick:c}})??t.createVNode(Wo,{onClick:c},null)]})])])})),{}}}),sv=Symbol.for("vuetify:v-expansion-panel"),uv=wt({...St(),...gi()},"VExpansionPanelText"),cv=Pt()({name:"VExpansionPanelText",props:uv(),setup(e,a){let{slots:l}=a
|
|
@@ -1917,9 +1920,9 @@ return t},hasFilesOrFolders:function(e){return[...e.dataTransfer?.items??[]].fil
|
|
|
1917
1920
|
function x(){y.value!==document.activeElement&&y.value?.focus(),s.value||u()}function C(e){y.value?.click()}function N(e){o("mousedown:control",e)}function E(e){y.value?.click(),o("click:control",e)}function _(a){a.stopPropagation(),x(),t.nextTick((()=>{i.value=[],X(e["onClick:clear"],a)}))}function I(e){e.preventDefault(),e.stopImmediatePropagation(),w.value=!0}function R(e){e.preventDefault(),w.value=!1}async function A(e){if(e.preventDefault(),e.stopImmediatePropagation(),w.value=!1,!y.value||!k(e))return
|
|
1918
1921
|
const t=new DataTransfer
|
|
1919
1922
|
for(const a of await S(e))t.items.add(a)
|
|
1920
|
-
y.value.files=t.files,y.value.dispatchEvent(new Event("change",{bubbles:!0}))}return t.watch(i,(e=>{(!Array.isArray(e)||!e.length)&&y.value&&(y.value.value="")})),Lt((()=>{const a=!(!n.counter&&!e.counter),o=!(!a&&!n.details),[r,u]=P(l),{modelValue:d,...S}=xn.filterProps(e),k=Fi.filterProps(e)
|
|
1923
|
+
y.value.files=t.files,y.value.dispatchEvent(new Event("change",{bubbles:!0}))}return t.watch(i,(e=>{(!Array.isArray(e)||!e.length)&&y.value&&(y.value.value="")})),Lt((()=>{const a=!(!n.counter&&!e.counter),o=!(!a&&!n.details),[r,u]=P(l),{modelValue:d,...S}=xn.filterProps(e),k={...Fi.filterProps(e),"onClick:clear":_}
|
|
1921
1924
|
return t.createVNode(xn,t.mergeProps({ref:g,modelValue:e.multiple?i.value:i.value[0],class:["v-file-input",{"v-file-input--chips":!!e.chips,"v-file-input--dragging":w.value,"v-file-input--hide":e.hideInput,"v-input--plain-underlined":V.value},e.class],style:e.style,"onClick:prepend":C},r,S,{centerAffix:!V.value,focused:s.value}),{...n,default:a=>{let{id:l,isDisabled:o,isDirty:r,isReadonly:d,isValid:f,hasDetails:g}=a
|
|
1922
|
-
return t.createVNode(Fi,t.mergeProps({ref:h,prependIcon:e.prependIcon,onMousedown:N,onClick:E,"onClick:
|
|
1925
|
+
return t.createVNode(Fi,t.mergeProps({ref:h,prependIcon:e.prependIcon,onMousedown:N,onClick:E,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"]},k,{id:l.value,active:b.value||r.value,dirty:r.value||e.dirty,disabled:o.value,focused:s.value,details:g.value,error:!1===f.value,onDragover:I,onDrop:A}),{...n,default:a=>{let{props:{class:l,...r}}=a
|
|
1923
1926
|
return t.createElementVNode(t.Fragment,null,[t.createElementVNode("input",t.mergeProps({ref:y,type:"file",readonly:d.value,disabled:o.value,multiple:e.multiple,name:e.name,onClick:e=>{e.stopPropagation(),d.value&&e.preventDefault(),x()},onChange:e=>{if(!e.target)return
|
|
1924
1927
|
const t=e.target
|
|
1925
1928
|
i.value=[...t.files??[]]},onDragleave:R,onFocus:x,onBlur:c},r,u),null),t.createElementVNode("div",{class:t.normalizeClass(l)},[!!i.value?.length&&!e.hideInput&&(n.selection?n.selection({fileNames:m.value,totalBytes:v.value,totalBytesReadable:p.value}):e.chips?m.value.map((e=>t.createVNode(ar,{key:e,size:"small",text:e},null))):m.value.join(", "))])])}})},details:o?l=>t.createElementVNode(t.Fragment,null,[n.details?.(l),a&&t.createElementVNode(t.Fragment,null,[t.createElementVNode("span",null,null),t.createVNode(Ri,{active:!!i.value?.length,value:f.value,disabled:e.disabled},n.counter)])]):void 0})})),En({},g,h,y)}}),xv=wt({app:Boolean,color:String,height:{type:[Number,String],default:"auto"},...El(),...St(),...Il(),...na(),...bl(),...Fa({tag:"footer"}),...Ca()},"VFooter"),Cv=Pt()({name:"VFooter",props:xv(),setup(e,a){let{slots:l}=a
|
|
@@ -2060,22 +2063,24 @@ t?.setPointerCapture(e.pointerId),e.preventDefault(),e.stopPropagation(),n("down
|
|
|
2060
2063
|
if(!o.value)return
|
|
2061
2064
|
const t=o.value.value,a=Number(t.replace(d.value,"."))
|
|
2062
2065
|
t&&!isNaN(a)?f.value=v(A(a,e.min,e.max)):f.value=null}function D(){s.value||(f.value=null===p.value||isNaN(p.value)?null:v(p.value,e.precision,!1))}function $(){s.value||(null===p.value||isNaN(p.value)?f.value=null:f.value=p.value.toString().replace(".",d.value))}function F(){T()}return t.watch((()=>e.precision),(()=>D())),t.watch((()=>e.minFractionDigits),(()=>D())),t.onMounted((()=>{T()})),Lt((()=>{const{modelValue:a,...n}=Oi.filterProps(e)
|
|
2063
|
-
function r(){return l.increment?t.createVNode(dl,{key:"increment-defaults",defaults:{VBtn:{disabled:!g.value,
|
|
2066
|
+
function r(){return l.increment?t.createVNode(dl,{key:"increment-defaults",defaults:{VBtn:{disabled:!g.value,height:S.value,size:w.value,icon:b.value,variant:"text"}}},{default:()=>[l.increment(k)]}):t.createVNode(Wo,{"aria-hidden":"true","data-testid":"increment",disabled:!g.value,height:S.value,icon:b.value,key:"increment-btn",onClick:I,onPointerdown:B,onPointerup:P,onPointercancel:P,size:w.value,variant:"text",tabindex:"-1"},null)}function i(){return l.decrement?t.createVNode(dl,{key:"decrement-defaults",defaults:{VBtn:{disabled:!h.value,height:S.value,size:w.value,icon:V.value,variant:"text"}}},{default:()=>[l.decrement(x)]}):t.createVNode(Wo,{"aria-hidden":"true","data-testid":"decrement",disabled:!h.value,height:S.value,icon:V.value,key:"decrement-btn",onClick:I,onPointerdown:R,onPointerup:P,onPointercancel:P,size:w.value,variant:"text",tabindex:"-1"},null)}function s(){return t.createElementVNode("div",{class:"v-number-input__control"},[i(),t.createVNode(or,{vertical:"stacked"!==y.value},null),r()])}function c(){return e.hideInput||e.inset?void 0:t.createVNode(or,{vertical:!0},null)}const d="split"===y.value?t.createElementVNode("div",{class:"v-number-input__control"},[t.createVNode(or,{vertical:!0},null),r()]):e.reverse||"hidden"===y.value?void 0:t.createElementVNode(t.Fragment,null,[c(),s()]),v=l["append-inner"]||d,m="split"===y.value?t.createElementVNode("div",{class:"v-number-input__control"},[i(),t.createVNode(or,{vertical:!0},null)]):e.reverse&&"hidden"!==y.value?t.createElementVNode(t.Fragment,null,[s(),c()]):void 0,C=l["prepend-inner"]||m
|
|
2064
2067
|
return t.createVNode(Oi,t.mergeProps({ref:o},n,{modelValue:f.value,"onUpdate:modelValue":e=>f.value=e,focused:u.value,"onUpdate:focused":e=>u.value=e,validationValue:p.value,onBeforeinput:E,onFocus:$,onBlur:F,onKeydown:_,class:["v-number-input",{"v-number-input--default":"default"===y.value,"v-number-input--hide-input":e.hideInput,"v-number-input--inset":e.inset,"v-number-input--reverse":e.reverse,"v-number-input--split":"split"===y.value,"v-number-input--stacked":"stacked"===y.value},e.class],style:e.style,inputmode:"decimal"}),{...l,"append-inner":v?function(){for(var e=arguments.length,a=new Array(e),o=0;o<e;o++)a[o]=arguments[o]
|
|
2065
2068
|
return t.createElementVNode(t.Fragment,null,[l["append-inner"]?.(...a),d])}:void 0,"prepend-inner":C?function(){for(var e=arguments.length,a=new Array(e),o=0;o<e;o++)a[o]=arguments[o]
|
|
2066
2069
|
return t.createElementVNode(t.Fragment,null,[m,l["prepend-inner"]?.(...a)])}:void 0})})),En({},o)}}),ip=wt({autofocus:Boolean,divider:String,focusAll:Boolean,label:{type:String,default:"$vuetify.input.otp"},length:{type:[Number,String],default:6},modelValue:{type:[Number,String],default:void 0},placeholder:String,type:{type:String,default:"number"},...vl(),...fn(),...k($i({variant:"outlined"}),["baseColor","bgColor","class","color","disabled","error","loading","rounded","style","theme","variant"])},"VOtpInput"),sp=Pt()({name:"VOtpInput",props:ip(),emits:{finish:e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,a){let{attrs:l,emit:o,slots:n}=a
|
|
2067
2070
|
const{dimensionStyles:r}=pl(e),{isFocused:i,focus:s,blur:u}=gn(e),c=ca(e,"modelValue","",(e=>null==e?[]:String(e).split("")),(e=>e.join(""))),{t:d}=wa(),v=t.computed((()=>Number(e.length))),p=t.computed((()=>Array(v.value).fill(0))),m=t.ref(-1),f=t.ref(),g=t.ref([]),h=t.computed((()=>g.value[m.value]))
|
|
2068
|
-
|
|
2071
|
+
let y=!1
|
|
2072
|
+
function b(){if(k(h.value.value))return void(h.value.value="")
|
|
2073
|
+
if(y)return
|
|
2069
2074
|
const e=c.value.slice(),t=h.value.value
|
|
2070
2075
|
e[m.value]=t
|
|
2071
2076
|
let a=null
|
|
2072
|
-
m.value>c.value.length?a=c.value.length+1:m.value+1!==v.value&&(a="next"),c.value=e,a&&J(f.value,a)}function b(e){const t=c.value.slice(),a=m.value
|
|
2073
|
-
let l=null;["ArrowLeft","ArrowRight","Backspace","Delete"].includes(e.key)&&(e.preventDefault(),"ArrowLeft"===e.key?l="prev":"ArrowRight"===e.key?l="next":["Backspace","Delete"].includes(e.key)&&(t[m.value]="",c.value=t,m.value>0&&"Backspace"===e.key?l="prev":requestAnimationFrame((()=>{g.value[a]?.select()}))),requestAnimationFrame((()=>{null!=l&&J(f.value,l)})))}function
|
|
2077
|
+
m.value>c.value.length?a=c.value.length+1:m.value+1!==v.value&&(a="next"),c.value=e,a&&J(f.value,a)}function V(){y=!1,b()}function w(e){const t=c.value.slice(),a=m.value
|
|
2078
|
+
let l=null;["ArrowLeft","ArrowRight","Backspace","Delete"].includes(e.key)&&(e.preventDefault(),"ArrowLeft"===e.key?l="prev":"ArrowRight"===e.key?l="next":["Backspace","Delete"].includes(e.key)&&(t[m.value]="",c.value=t,m.value>0&&"Backspace"===e.key?l="prev":requestAnimationFrame((()=>{g.value[a]?.select()}))),requestAnimationFrame((()=>{null!=l&&J(f.value,l)})))}function S(){u(),m.value=-1}function k(t){return"number"===e.type&&/[^0-9]/g.test(t)}return ua((()=>e.autofocus),(()=>{const e=t.effectScope()
|
|
2074
2079
|
e.run((()=>{const{intersectionRef:a,isIntersecting:l}=ro()
|
|
2075
|
-
t.watchEffect((()=>{a.value=g.value[0]})),t.watch(l,(t=>{t&&(a.value?.focus(),e.stop())}))}))})),Et({VField:{color:t.toRef((()=>e.color)),bgColor:t.toRef((()=>e.color)),baseColor:t.toRef((()=>e.baseColor)),disabled:t.toRef((()=>e.disabled)),error:t.toRef((()=>e.error)),variant:t.toRef((()=>e.variant))}},{scoped:!0}),t.watch(c,(e=>{e.length===v.value&&
|
|
2076
|
-
return t.createElementVNode("div",t.mergeProps({class:["v-otp-input",{"v-otp-input--divided":!!e.divider},e.class],style:[e.style]},a),[t.createElementVNode("div",{ref:f,class:"v-otp-input__content",style:t.normalizeStyle([r.value])},[p.value.map(((a,l)=>t.createElementVNode(t.Fragment,null,[e.divider&&0!==l&&t.createElementVNode("span",{class:"v-otp-input__divider"},[e.divider]),t.createVNode(Fi,{focused:i.value&&e.focusAll||m.value===l,key:l},{...n,loader:void 0,default:()=>t.createElementVNode("input",{ref:e=>g.value[l]=e,"aria-label":d(e.label,l+1),autofocus:0===l&&e.autofocus,autocomplete:"one-time-code",class:t.normalizeClass(["v-otp-input__field"]),disabled:e.disabled,inputmode:"number"===e.type?"numeric":"text",min:"number"===e.type?0:void 0,maxlength:0===l?v.value:"1",placeholder:e.placeholder,type:"number"===e.type?"text":e.type,value:c.value[l],onInput:
|
|
2080
|
+
t.watchEffect((()=>{a.value=g.value[0]})),t.watch(l,(t=>{t&&(a.value?.focus(),e.stop())}))}))})),Et({VField:{color:t.toRef((()=>e.color)),bgColor:t.toRef((()=>e.color)),baseColor:t.toRef((()=>e.baseColor)),disabled:t.toRef((()=>e.disabled)),error:t.toRef((()=>e.error)),variant:t.toRef((()=>e.variant))}},{scoped:!0}),t.watch(c,(e=>{e.length===v.value&&o("finish",e.join(""))}),{deep:!0}),t.watch(m,(e=>{e<0||t.nextTick((()=>{g.value[e]?.select()}))})),Lt((()=>{const[a,o]=P(l)
|
|
2081
|
+
return t.createElementVNode("div",t.mergeProps({class:["v-otp-input",{"v-otp-input--divided":!!e.divider},e.class],style:[e.style]},a),[t.createElementVNode("div",{ref:f,class:"v-otp-input__content",style:t.normalizeStyle([r.value])},[p.value.map(((a,l)=>t.createElementVNode(t.Fragment,null,[e.divider&&0!==l&&t.createElementVNode("span",{class:"v-otp-input__divider"},[e.divider]),t.createVNode(Fi,{focused:i.value&&e.focusAll||m.value===l,key:l},{...n,loader:void 0,default:()=>t.createElementVNode("input",{ref:e=>g.value[l]=e,"aria-label":d(e.label,l+1),autofocus:0===l&&e.autofocus,autocomplete:"one-time-code",class:t.normalizeClass(["v-otp-input__field"]),disabled:e.disabled,inputmode:"number"===e.type?"numeric":"text",min:"number"===e.type?0:void 0,maxlength:0===l?v.value:"1",placeholder:e.placeholder,type:"number"===e.type?"text":e.type,value:c.value[l],onInput:b,onFocus:e=>function(e,t){s(),m.value=t}(0,l),onBlur:S,onKeydown:w,onCompositionstart:()=>y=!0,onCompositionend:V,onPaste:e=>function(e,t){t.preventDefault(),t.stopPropagation()
|
|
2077
2082
|
const a=t?.clipboardData?.getData("Text").trim().slice(0,v.value)??"",l=a.length-1==-1?e:a.length-1
|
|
2078
|
-
|
|
2083
|
+
k(a)||(c.value=a.split(""),m.value=l)}(l,e)},null)})]))),t.createElementVNode("input",t.mergeProps({class:"v-otp-input-input",type:"hidden"},o,{value:c.value.join("")}),null),t.createVNode(_i,{contained:!0,contentClass:"v-otp-input__loader",modelValue:!!e.loading,persistent:!0},{default:()=>[n.loader?.()??t.createVNode(so,{color:"boolean"==typeof e.loading?void 0:e.loading,indeterminate:!0,size:"24",width:"2"},null)]}),n.default?.()])])})),{blur:()=>{g.value?.some((e=>e.blur()))},focus:()=>{g.value?.[0].focus()},reset:function(){c.value=[]},isFocused:i}}})
|
|
2079
2084
|
const up=wt({scale:{type:[Number,String],default:.5},...St()},"VParallax"),cp=Pt()({name:"VParallax",props:up(),setup(e,a){let{slots:l}=a
|
|
2080
2085
|
const{intersectionRef:o,isIntersecting:n}=ro(),{resizeRef:r,contentRect:i}=ta(),{height:s}=zn(),u=t.ref()
|
|
2081
2086
|
let c
|
|
@@ -2152,12 +2157,12 @@ const o=t.useId(),n=t.computed((()=>e.id||`barline-${o}`)),r=t.computed((()=>Num
|
|
|
2152
2157
|
function v(t,a){const{minX:l,maxX:o,minY:n,maxY:r}=a,i=t.length
|
|
2153
2158
|
let s=null!=e.max?Number(e.max):Math.max(...t),u=null!=e.min?Number(e.min):Math.min(...t)
|
|
2154
2159
|
u>0&&null==e.min&&(u=0),s<0&&null==e.max&&(s=0)
|
|
2155
|
-
const c=o/i,d=(r-n)/(s-u||1),v=r-Math.abs(u*d)
|
|
2160
|
+
const c=o/(1===i?2:i),d=(r-n)/(s-u||1),v=r-Math.abs(u*d)
|
|
2156
2161
|
return t.map(((e,t)=>{const a=Math.abs(d*e)
|
|
2157
2162
|
return{x:l+t*c,y:v-a+Number(e<0)*a,height:a,value:e}}))}const p=t.computed((()=>{const t=[],a=v(d.value,c.value),l=a.length
|
|
2158
2163
|
for(let o=0;t.length<l;o++){const l=a[o]
|
|
2159
2164
|
let n=e.labels[o]
|
|
2160
|
-
n||(n="object"==typeof l?l.value:l),t.push({x:l.x,value:String(n)})}return t})),f=t.computed((()=>v(d.value,c.value))),g=t.computed((()=>(Math.abs(f.value[0].x-f.value[1].x)-s.value)/2)),h=t.computed((()=>"boolean"==typeof e.smooth?e.smooth?2:0:Number(e.smooth)))
|
|
2165
|
+
n||(n="object"==typeof l?l.value:l),t.push({x:l.x,value:String(n)})}return t})),f=t.computed((()=>v(d.value,c.value))),g=t.computed((()=>1===f.value.length?(c.value.maxX-s.value)/2:(Math.abs(f.value[0].x-f.value[1].x)-s.value)/2)),h=t.computed((()=>"boolean"==typeof e.smooth?e.smooth?2:0:Number(e.smooth)))
|
|
2161
2166
|
Lt((()=>{const a=e.gradient.slice().length?e.gradient.slice().reverse():[""]
|
|
2162
2167
|
return t.createElementVNode("svg",{display:"block"},[t.createElementVNode("defs",null,[t.createElementVNode("linearGradient",{id:n.value,gradientUnits:"userSpaceOnUse",x1:"left"===e.gradientDirection?"100%":"0",y1:"top"===e.gradientDirection?"100%":"0",x2:"right"===e.gradientDirection?"100%":"0",y2:"bottom"===e.gradientDirection?"100%":"0"},[a.map(((e,l)=>t.createElementVNode("stop",{offset:l/Math.max(a.length-1,1),"stop-color":e||"currentColor"},null)))])]),t.createElementVNode("clipPath",{id:`${n.value}-clip`},[f.value.map((a=>t.createElementVNode("rect",{x:a.x+g.value,y:a.y,width:s.value,height:a.height,rx:h.value,ry:h.value},[e.autoDraw&&t.createElementVNode(t.Fragment,null,[t.createElementVNode("animate",{attributeName:"y",from:a.y+a.height,to:a.y,dur:`${r.value}ms`,fill:"freeze"},null),t.createElementVNode("animate",{attributeName:"height",from:"0",to:a.height,dur:`${r.value}ms`,fill:"freeze"},null)])])))]),i.value&&t.createElementVNode("g",{key:"labels",style:{textAnchor:"middle",dominantBaseline:"mathematical",fill:"currentColor"}},[p.value.map(((a,o)=>t.createElementVNode("text",{x:a.x+g.value+s.value/2,y:parseInt(e.height,10)-2+(parseInt(e.labelSize,10)||5.25),"font-size":Number(e.labelSize)||7},[l.label?.({index:o,value:a.value})??a.value])))]),t.createElementVNode("g",{"clip-path":`url(#${n.value}-clip)`,fill:`url(#${n.value})`},[t.createElementVNode("rect",{x:0,y:0,width:Math.max(e.modelValue.length*s.value,Number(e.width)),height:e.height},null)])])}))}})
|
|
2163
2168
|
function Tp(e,t){let a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:75
|
|
@@ -2170,7 +2175,9 @@ const d=Math.min($p(r,a),$p(n,a)),v=d/2<t?d/2:t,p=Fp(r,a,v),m=Fp(n,a,v)
|
|
|
2170
2175
|
return`L${p.x} ${p.y}S${a.x} ${a.y} ${m.x} ${m.y}`})).join("")+(a?`L${n.x} ${l-o.x+2} Z`:"")}function Dp(e){return parseInt(e,10)}function $p(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function Fp(e,t,a){const l=e.x-t.x,o=e.y-t.y,n=Math.sqrt(l*l+o*o),r=l/n,i=o/n
|
|
2171
2176
|
return{x:t.x+r*a,y:t.y+i*a}}const zp=wt({fill:Boolean,...Bp()},"VTrendline"),Mp=Pt()({name:"VTrendline",props:zp(),setup(e,a){let{slots:l}=a
|
|
2172
2177
|
const o=t.useId(),n=t.computed((()=>e.id||`trendline-${o}`)),r=t.computed((()=>Number(e.autoDrawDuration)||(e.fill?500:2e3))),i=t.ref(0),s=t.ref(null)
|
|
2173
|
-
function u(t,a){const{minX:l,maxX:o,minY:n,maxY:r}=a
|
|
2178
|
+
function u(t,a){const{minX:l,maxX:o,minY:n,maxY:r}=a
|
|
2179
|
+
1===t.length&&(t=[t[0],t[0]])
|
|
2180
|
+
const i=t.length,s=null!=e.max?Number(e.max):Math.max(...t),u=null!=e.min?Number(e.min):Math.min(...t),c=(o-l)/(i-1),d=(r-n)/(s-u||1)
|
|
2174
2181
|
return t.map(((e,t)=>({x:l+t*c,y:r-(e-u)*d,value:e})))}const c=t.computed((()=>Boolean(e.showLabels||e.labels.length>0||!!l?.label))),d=t.computed((()=>parseFloat(e.lineWidth)||4)),v=t.computed((()=>Number(e.width))),p=t.computed((()=>{const t=Number(e.padding)
|
|
2175
2182
|
return{minX:t,maxX:v.value-t,minY:t,maxY:parseInt(e.height,10)-t}})),f=t.computed((()=>e.modelValue.map((t=>m(t,e.itemValue,t))))),g=t.computed((()=>{const t=[],a=u(f.value,p.value),l=a.length
|
|
2176
2183
|
for(let o=0;t.length<l;o++){const l=a[o]
|
|
@@ -2236,9 +2243,9 @@ t.nextTick((()=>{l.selectionStart=e[0],l.selectionEnd=e[1]}))}}const x=t.ref(),C
|
|
|
2236
2243
|
function E(){e.autoGrow&&t.nextTick((()=>{if(!x.value||!m.value)return
|
|
2237
2244
|
const t=getComputedStyle(x.value),a=getComputedStyle(m.value.$el),l=parseFloat(t.getPropertyValue("--v-field-padding-top"))+parseFloat(t.getPropertyValue("--v-input-padding-top"))+parseFloat(t.getPropertyValue("--v-field-padding-bottom")),o=x.value.scrollHeight,n=parseFloat(t.lineHeight),r=A(o??0,Math.max(parseFloat(e.rows)*n+l,parseFloat(a.getPropertyValue("--v-input-control-height"))),parseFloat(e.maxRows)*n+l||1/0)
|
|
2238
2245
|
C.value=Math.floor((r-l)/n),f.value=g(r)}))}let _
|
|
2239
|
-
return t.watchEffect((()=>{e.autoGrow||(C.value=Number(e.rows))})),t.onMounted(E),t.watch(r,E),t.watch((()=>e.rows),E),t.watch((()=>e.maxRows),E),t.watch((()=>e.density),E),t.watch(C,(e=>{o("update:rows",e)})),t.watch(x,(e=>{e?(_=new ResizeObserver(E),_.observe(x.value)):_?.disconnect()})),t.onBeforeUnmount((()=>{_?.disconnect()})),Lt((()=>{const a=!!(n.counter||e.counter||e.counterValue),o=!(!a&&!n.details),[s,g]=P(l),{modelValue:E,..._}=xn.filterProps(e),I=Fi.filterProps(e)
|
|
2246
|
+
return t.watchEffect((()=>{e.autoGrow||(C.value=Number(e.rows))})),t.onMounted(E),t.watch(r,E),t.watch((()=>e.rows),E),t.watch((()=>e.maxRows),E),t.watch((()=>e.density),E),t.watch(C,(e=>{o("update:rows",e)})),t.watch(x,(e=>{e?(_=new ResizeObserver(E),_.observe(x.value)):_?.disconnect()})),t.onBeforeUnmount((()=>{_?.disconnect()})),Lt((()=>{const a=!!(n.counter||e.counter||e.counterValue),o=!(!a&&!n.details),[s,g]=P(l),{modelValue:E,..._}=xn.filterProps(e),I={...Fi.filterProps(e),"onClick:clear":S}
|
|
2240
2247
|
return t.createVNode(xn,t.mergeProps({ref:p,modelValue:r.value,"onUpdate:modelValue":e=>r.value=e,class:["v-textarea v-text-field",{"v-textarea--prefixed":e.prefix,"v-textarea--suffixed":e.suffix,"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-textarea--auto-grow":e.autoGrow,"v-textarea--no-resize":e.noResize||e.autoGrow,"v-input--plain-underlined":N.value},e.class],style:e.style},s,_,{centerAffix:1===C.value&&!N.value,focused:i.value}),{...n,default:a=>{let{id:l,isDisabled:o,isDirty:s,isReadonly:d,isValid:v,hasDetails:p}=a
|
|
2241
|
-
return t.createVNode(Fi,t.mergeProps({ref:m,style:{"--v-textarea-control-height":f.value},onClick:V,onMousedown:w,"onClick:
|
|
2248
|
+
return t.createVNode(Fi,t.mergeProps({ref:m,style:{"--v-textarea-control-height":f.value},onClick:V,onMousedown:w,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"]},I,{id:l.value,active:y.value||s.value,centerAffix:1===C.value&&!N.value,dirty:s.value||e.dirty,disabled:o.value,focused:i.value,details:p.value,error:!1===v.value}),{...n,default:a=>{let{props:{class:l,...n}}=a
|
|
2242
2249
|
return t.createElementVNode(t.Fragment,null,[e.prefix&&t.createElementVNode("span",{class:"v-text-field__prefix"},[e.prefix]),t.withDirectives(t.createElementVNode("textarea",t.mergeProps({ref:h,class:l,value:r.value,onInput:k,autofocus:e.autofocus,readonly:d.value,disabled:o.value,placeholder:e.placeholder,rows:e.rows,name:e.name,onFocus:b,onBlur:u},n,g),null),[[xl,{handler:c},null,{once:!0}]]),e.autoGrow&&t.withDirectives(t.createElementVNode("textarea",{class:t.normalizeClass([l,"v-textarea__sizer"]),id:`${n.id}-sizer`,"onUpdate:modelValue":e=>r.value=e,ref:x,readonly:!0,"aria-hidden":"true"},null),[[t.vModelText,r.value]]),e.suffix&&t.createElementVNode("span",{class:"v-text-field__suffix"},[e.suffix])])}})},details:o?l=>t.createElementVNode(t.Fragment,null,[n.details?.(l),a&&t.createElementVNode(t.Fragment,null,[t.createElementVNode("span",null,null),t.createVNode(Ri,{active:e.persistentCounter||i.value,value:d.value,max:v.value,disabled:e.disabled},n.counter)])]):void 0})})),En({},p,m,h)}}),bm=wt({withBackground:Boolean,...St(),...Ca(),...Fa()},"VThemeProvider"),Vm=Pt()({name:"VThemeProvider",props:bm(),setup(e,a){let{slots:l}=a
|
|
2243
2250
|
const{themeClasses:o}=Aa(e)
|
|
2244
2251
|
return()=>e.withBackground?t.createVNode(e.tag,{class:t.normalizeClass(["v-theme-provider",o.value,e.class]),style:t.normalizeStyle(e.style)},{default:()=>[l.default?.()]}):l.default?.()}}),wm=wt({dotColor:String,fillDot:Boolean,hideDot:Boolean,icon:Ot,iconColor:String,lineColor:String,...St(),...bl(),...ao(),...Il()},"VTimelineDivider"),Sm=Pt()({name:"VTimelineDivider",props:wm(),setup(e,a){let{slots:l}=a
|
|
@@ -2385,8 +2392,8 @@ if(m.run((()=>{o.install(u)})),u.onUnmount((()=>m.stop())),u.provide(Ct,e),u.pro
|
|
|
2385
2392
|
else{const{mount:e}=u
|
|
2386
2393
|
u.mount=function(){const a=e(...arguments)
|
|
2387
2394
|
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:uf.call(this,Ct),display:uf.call(this,Bn),theme:uf.call(this,xa),icons:uf.call(this,jt),locale:uf.call(this,ba),date:uf.call(this,Mu)})}}})},unmount:function(){u.stop()},defaults:e,display:l,theme:o,icons:c,locale:d,date:v,goTo:p}}))}function uf(e){const t=this.$,a=t.parent?.provides??t.vnode.appContext?.provides
|
|
2388
|
-
if(a&&e in a)return a[e]}sf.version="3.9.
|
|
2389
|
-
const cf=function(){return sf({components:Qm,directives:rf,...arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}})},df="3.9.
|
|
2395
|
+
if(a&&e in a)return a[e]}sf.version="3.9.7"
|
|
2396
|
+
const cf=function(){return sf({components:Qm,directives:rf,...arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}})},df="3.9.7"
|
|
2390
2397
|
cf.version=df,e.blueprints=ea,e.components=Qm,e.createVuetify=cf,e.directives=rf,e.useDate=Ou,e.useDefaults=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0
|
|
2391
2398
|
const{props:a,provideSubDefaults:l}=_t(e,t)
|
|
2392
2399
|
return l(),a},e.useDisplay=zn,e.useGoTo=Wn,e.useHotkey=function(e,l){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}
|