@vuetify/nightly 3.7.6-master.2025-01-15 → 3.7.6-master.2025-01-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.
- package/dist/json/attributes.json +3190 -3190
- package/dist/json/importMap-labs.json +18 -18
- package/dist/json/importMap.json +164 -164
- package/dist/json/web-types.json +6252 -6232
- package/dist/vuetify-labs.css +2912 -2909
- package/dist/vuetify-labs.d.ts +129 -104
- package/dist/vuetify-labs.esm.js +53 -20
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +53 -20
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +3437 -3434
- package/dist/vuetify.d.ts +62 -65
- package/dist/vuetify.esm.js +33 -15
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +33 -15
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +29 -23
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VAutocomplete/VAutocomplete.mjs +6 -3
- package/lib/components/VAutocomplete/VAutocomplete.mjs.map +1 -1
- package/lib/components/VCombobox/VCombobox.mjs +6 -3
- package/lib/components/VCombobox/VCombobox.mjs.map +1 -1
- package/lib/components/VDialog/VDialog.css +5 -2
- package/lib/components/VDialog/VDialog.sass +6 -2
- package/lib/components/VSlideGroup/VSlideGroup.mjs +12 -2
- package/lib/components/VSlideGroup/VSlideGroup.mjs.map +1 -1
- package/lib/components/VSparkline/VBarline.mjs +3 -2
- package/lib/components/VSparkline/VBarline.mjs.map +1 -1
- package/lib/components/VSparkline/VTrendline.mjs +2 -1
- package/lib/components/VSparkline/VTrendline.mjs.map +1 -1
- package/lib/components/VSparkline/index.d.mts +7 -10
- package/lib/components/VSparkline/util/line.mjs +1 -1
- package/lib/components/VSparkline/util/line.mjs.map +1 -1
- package/lib/components/index.d.mts +7 -10
- package/lib/entry-bundler.mjs +1 -1
- package/lib/framework.mjs +1 -1
- package/lib/index.d.mts +55 -55
- package/lib/labs/VDateInput/VDateInput.mjs +19 -5
- package/lib/labs/VDateInput/VDateInput.mjs.map +1 -1
- package/lib/labs/VDateInput/index.d.mts +176 -97
- package/lib/labs/components.d.mts +227 -199
- package/package.json +1 -1
package/dist/vuetify.min.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Vuetify v3.7.6-master.2025-01-
|
2
|
+
* Vuetify v3.7.6-master.2025-01-16
|
3
3
|
* Forged by John Leider
|
4
4
|
* Released under the MIT License.
|
5
5
|
*/
|
@@ -640,21 +640,24 @@ const t=Rn(p.value,f.el),l=An(p.value,n.value,f.el)
|
|
640
640
|
if(!(Bn(p.value,f.el)<=t||Math.abs(e-l)<16)){if(p.value&&n.value&&f.el){const{scrollWidth:t,offsetWidth:a}=f.el
|
641
641
|
e=t-a-e}p.value?y.horizontal(e,b.value):y(e,b.value)}}function N(e){const{scrollTop:t,scrollLeft:a}=e.target
|
642
642
|
c.value=p.value?a:t}function C(e){if(S.value=!0,u.value&&g.el)for(const t of e.composedPath())for(const e of g.el.children)if(e===t)return void k(e)}function _(e){S.value=!1}let I=!1
|
643
|
-
function P(e){I||S.value||e.relatedTarget&&g.el?.contains(e.relatedTarget)||
|
643
|
+
function P(e){I||S.value||e.relatedTarget&&g.el?.contains(e.relatedTarget)||T(),I=!1}function B(){I=!0}function A(e){function t(t){e.preventDefault(),T(t)}g.el&&(p.value?"ArrowRight"===e.key?t(n.value?"prev":"next"):"ArrowLeft"===e.key&&t(n.value?"next":"prev"):"ArrowDown"===e.key?t("next"):"ArrowUp"===e.key&&t("prev"),"Home"===e.key?t("first"):"End"===e.key&&t("last"))}function R(e,t){if(!e)return
|
644
|
+
let a=e
|
645
|
+
do{a=a?.["next"===t?"nextElementSibling":"previousElementSibling"]}while(a?.hasAttribute("disabled"))
|
646
|
+
return a}function T(e){if(!g.el)return
|
644
647
|
let t
|
645
|
-
if(e)if("next"===e){if(t=g.el.querySelector(":focus")
|
646
|
-
else{t=X(g.el)[0]}t&&t.focus({preventScroll:!0})}function
|
648
|
+
if(e)if("next"===e){if(t=R(g.el.querySelector(":focus"),e),!t)return T("first")}else if("prev"===e){if(t=R(g.el.querySelector(":focus"),e),!t)return T("last")}else"first"===e?(t=g.el.firstElementChild,t?.hasAttribute("disabled")&&(t=R(t,"next"))):"last"===e&&(t=g.el.lastElementChild,t?.hasAttribute("disabled")&&(t=R(t,"prev")))
|
649
|
+
else{t=X(g.el)[0]}t&&t.focus({preventScroll:!0})}function D(e){const t=p.value&&n.value?-1:1,a=("prev"===e?-t:t)*d.value
|
647
650
|
let l=c.value+a
|
648
651
|
if(p.value&&n.value&&f.el){const{scrollWidth:e,offsetWidth:t}=f.el
|
649
|
-
l+=e-t}x(l)}const
|
652
|
+
l+=e-t}x(l)}const E=t.computed((()=>({next:s.next,prev:s.prev,select:s.select,isSelected:s.isSelected}))),F=t.computed((()=>{switch(e.showArrows){case"always":return!0
|
650
653
|
case"desktop":return!i.value
|
651
654
|
case!0:return u.value||Math.abs(c.value)>0
|
652
655
|
case"mobile":return i.value||u.value||Math.abs(c.value)>0
|
653
|
-
default:return!i.value&&(u.value||Math.abs(c.value)>0)}}))
|
656
|
+
default:return!i.value&&(u.value||Math.abs(c.value)>0)}})),$=t.computed((()=>Math.abs(c.value)>1)),M=t.computed((()=>{if(!f.value)return!1
|
654
657
|
const e=Bn(p.value,f.el),t=function(e,t){const a=e?"clientWidth":"clientHeight"
|
655
658
|
return t?.[a]||0}(p.value,f.el)
|
656
659
|
return e-t-Math.abs(c.value)>1}))
|
657
|
-
return $t((()=>t.createVNode(e.tag,{class:["v-slide-group",{"v-slide-group--vertical":!p.value,"v-slide-group--has-affixes":
|
660
|
+
return $t((()=>t.createVNode(e.tag,{class:["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:e.style,tabindex:S.value||s.selected.value.length?-1:0,onFocus:P},{default:()=>[F.value&&t.createVNode("div",{key:"prev",class:["v-slide-group__prev",{"v-slide-group__prev--disabled":!$.value}],onMousedown:B,onClick:()=>$.value&&D("prev")},[o.prev?.(E.value)??t.createVNode(Ha,null,{default:()=>[t.createVNode(Xl,{icon:n.value?e.nextIcon:e.prevIcon},null)]})]),t.createVNode("div",{key:"container",ref:f,class:"v-slide-group__container",onScroll:N},[t.createVNode("div",{ref:g,class:"v-slide-group__content",onFocusin:C,onFocusout:_,onKeydown:A},[o.default?.(E.value)])]),F.value&&t.createVNode("div",{key:"next",class:["v-slide-group__next",{"v-slide-group__next--disabled":!M.value}],onMousedown:B,onClick:()=>M.value&&D("next")},[o.next?.(E.value)??t.createVNode(Ha,null,{default:()=>[t.createVNode(Xl,{icon:n.value?e.prevIcon:e.nextIcon},null)]})])]}))),{selected:s.selected,scrollTo:D,scrollOffset:c,focus:T,hasPrev:$,hasNext:M}}}),$n=Symbol.for("vuetify:v-chip-group"),Mn=gt({column:Boolean,filter:Boolean,valueComparator:{type:Function,default:c},...En(),...ht(),...Ml({selectedClass:"v-chip--selected"}),...Pa(),...wa(),...Dl({variant:"tonal"})},"VChipGroup"),On=It()({name:"VChipGroup",props:Mn(),emits:{"update:modelValue":e=>!0},setup(e,a){let{slots:l}=a
|
658
661
|
const{themeClasses:o}=ka(e),{isSelected:n,select:r,next:i,prev:s,selected:u}=zl(e,$n)
|
659
662
|
return Nt({VChip:{color:t.toRef(e,"color"),disabled:t.toRef(e,"disabled"),filter:t.toRef(e,"filter"),variant:t.toRef(e,"variant")}}),$t((()=>{const a=Fn.filterProps(e)
|
660
663
|
return t.createVNode(Fn,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})]})})),{}}}),Ln=gt({activeClass:String,appendAvatar:String,appendIcon:Mt,closable:Boolean,closeIcon:{type:Mt,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},draggable:Boolean,filter:Boolean,filterIcon:{type:Mt,default:"$complete"},label:Boolean,link:{type:Boolean,default:void 0},pill:Boolean,prependAvatar:String,prependIcon:Mt,ripple:{type:[Boolean,Object],default:!0},text:String,modelValue:{type:Boolean,default:!0},onClick:G(),onClickOnce:G(),...yl(),...ht(),...Bl(),...Vl(),...Ol(),...cl(),...fo(),...Gl(),...Pa({tag:"span"}),...wa(),...Dl({variant:"tonal"})},"VChip"),zn=It()({name:"VChip",directives:{Ripple:To},props:Ln(),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
|
@@ -1114,14 +1117,15 @@ const{t:n}=ha(),r=t.ref(),i=t.shallowRef(!1),s=t.shallowRef(!0),u=t.shallowRef(!
|
|
1114
1117
|
return e.multiple?a:a[0]??null})),x=t.computed((()=>"function"==typeof e.counterValue?e.counterValue(k.value):"number"==typeof e.counterValue?e.counterValue:k.value.length)),N=un(e),{filteredItems:C,getMatches:_}=$i(e,h,(()=>s.value?"":S.value)),I=t.computed((()=>e.hideSelected?C.value.filter((e=>!k.value.some((t=>t.value===e.value)))):C.value)),P=t.computed((()=>!(!e.chips&&!o.chip))),B=t.computed((()=>P.value||!!o.selection)),R=t.computed((()=>k.value.map((e=>e.props.value)))),T=t.computed((()=>(!0===e.autoSelectFirst||"exact"===e.autoSelectFirst&&S.value===I.value[0]?.title)&&I.value.length>0&&!s.value&&!u.value)),D=t.computed((()=>e.hideNoData&&!I.value.length||N.isReadonly.value||N.isDisabled.value)),E=t.ref(),F=Ai(E,r)
|
1115
1118
|
function $(t){e.openOnClear&&(p.value=!0),S.value=""}function M(){D.value||(p.value=!0)}function O(e){D.value||(i.value&&(e.preventDefault(),e.stopPropagation()),p.value=!p.value)}function L(e){" "!==e.key&&oe(e)&&r.value?.focus()}function z(t){if(N.isReadonly.value)return
|
1116
1119
|
const a=r.value.selectionStart,l=k.value.length
|
1117
|
-
if(
|
1120
|
+
if(["Enter","ArrowDown","ArrowUp"].includes(t.key)&&t.preventDefault(),["Enter","ArrowDown"].includes(t.key)&&(p.value=!0),["Escape"].includes(t.key)&&(p.value=!1),T.value&&["Enter","Tab"].includes(t.key)&&!k.value.some((e=>{let{value:t}=e
|
1118
1121
|
return t===I.value[0].value}))&&K(I.value[0]),"ArrowDown"===t.key&&T.value&&E.value?.focus("next"),["Backspace","Delete"].includes(t.key)){if(!e.multiple&&B.value&&k.value.length>0&&!S.value)return K(k.value[0],!1)
|
1119
|
-
if(~f.value){
|
1120
|
-
|
1122
|
+
if(~f.value){t.preventDefault()
|
1123
|
+
const e=f.value
|
1124
|
+
K(k.value[f.value],!1),f.value=e>=l-1?l-2:e}else"Backspace"!==t.key||S.value||(f.value=l-1)}else if(e.multiple)if("ArrowLeft"===t.key){if(f.value<0&&a>0)return
|
1121
1125
|
const e=f.value>-1?f.value-1:l-1
|
1122
|
-
k.value[e]?f.value=e:(f.value=-1,r.value.setSelectionRange(S.value?.length,S.value?.length))}if("ArrowRight"===t.key){if(f.value<0)return
|
1126
|
+
k.value[e]?f.value=e:(f.value=-1,r.value.setSelectionRange(S.value?.length,S.value?.length))}else if("ArrowRight"===t.key){if(f.value<0)return
|
1123
1127
|
const e=f.value+1
|
1124
|
-
k.value[e]?f.value=e:(f.value=-1,r.value.setSelectionRange(0,0))}}
|
1128
|
+
k.value[e]?f.value=e:(f.value=-1,r.value.setSelectionRange(0,0))}else~f.value&&oe(t)&&(f.value=-1)}function j(e){if(te(r.value,":autofill")||te(r.value,":-webkit-autofill")){const t=h.value.find((t=>t.title===e.target.value))
|
1125
1129
|
t&&K(t)}}function H(){e.eager&&d.value?.calculateVisibleItems()}function W(){i.value&&(s.value=!0,r.value?.focus())}function U(e){i.value=!0,setTimeout((()=>{u.value=!0}))}function Y(e){u.value=!1}function G(t){null!=t&&(""!==t||e.multiple||B.value)||(k.value=[])}const q=t.shallowRef(!1)
|
1126
1130
|
function K(a){let l=!(arguments.length>1&&void 0!==arguments[1])||arguments[1]
|
1127
1131
|
if(a&&!a.props.disabled)if(e.multiple){const t=k.value.findIndex((t=>e.valueComparator(t.value,a.value))),o=null==l?!~t:l
|
@@ -1313,14 +1317,15 @@ t.watch(I,(e=>{g?t.nextTick((()=>g=!1)):s.value&&!f.value&&(f.value=!0),o("updat
|
|
1313
1317
|
const{filteredItems:T,getMatches:D}=$i(e,b,(()=>u.value?"":B.value)),E=t.computed((()=>e.hideSelected?T.value.filter((e=>!x.value.some((t=>t.value===e.value)))):T.value)),F=t.computed((()=>x.value.map((e=>e.value)))),$=t.computed((()=>(!0===e.autoSelectFirst||"exact"===e.autoSelectFirst&&B.value===E.value[0]?.title)&&E.value.length>0&&!u.value&&!c.value)),M=t.computed((()=>e.hideNoData&&!E.value.length||N.isReadonly.value||N.isDisabled.value)),O=t.ref(),L=Ai(O,i)
|
1314
1318
|
function z(t){g=!0,e.openOnClear&&(f.value=!0)}function j(){M.value||(f.value=!0)}function H(e){M.value||(s.value&&(e.preventDefault(),e.stopPropagation()),f.value=!f.value)}function W(e){" "!==e.key&&oe(e)&&i.value?.focus()}function U(t){if(function(e){return e.isComposing&&P.includes(e.key)}(t)||N.isReadonly.value)return
|
1315
1319
|
const a=i.value.selectionStart,l=x.value.length
|
1316
|
-
if(
|
1320
|
+
if(["Enter","ArrowDown","ArrowUp"].includes(t.key)&&t.preventDefault(),["Enter","ArrowDown"].includes(t.key)&&(f.value=!0),["Escape"].includes(t.key)&&(f.value=!1),["Enter","Escape","Tab"].includes(t.key)&&($.value&&["Enter","Tab"].includes(t.key)&&!x.value.some((e=>{let{value:t}=e
|
1317
1321
|
return t===E.value[0].value}))&&q(T.value[0]),u.value=!0),"ArrowDown"===t.key&&$.value&&O.value?.focus("next"),"Enter"===t.key&&B.value&&(q(yr(e,B.value)),_.value&&(I.value="")),["Backspace","Delete"].includes(t.key)){if(!e.multiple&&_.value&&x.value.length>0&&!B.value)return q(x.value[0],!1)
|
1318
|
-
if(~m.value){
|
1319
|
-
|
1322
|
+
if(~m.value){t.preventDefault()
|
1323
|
+
const e=m.value
|
1324
|
+
q(x.value[m.value],!1),m.value=e>=l-1?l-2:e}else"Backspace"!==t.key||B.value||(m.value=l-1)}else if(e.multiple)if("ArrowLeft"===t.key){if(m.value<0&&a>0)return
|
1320
1325
|
const e=m.value>-1?m.value-1:l-1
|
1321
|
-
x.value[e]?m.value=e:(m.value=-1,i.value.setSelectionRange(B.value.length,B.value.length))}if("ArrowRight"===t.key){if(m.value<0)return
|
1326
|
+
x.value[e]?m.value=e:(m.value=-1,i.value.setSelectionRange(B.value.length,B.value.length))}else if("ArrowRight"===t.key){if(m.value<0)return
|
1322
1327
|
const e=m.value+1
|
1323
|
-
x.value[e]?m.value=e:(m.value=-1,i.value.setSelectionRange(0,0))}}
|
1328
|
+
x.value[e]?m.value=e:(m.value=-1,i.value.setSelectionRange(0,0))}else~m.value&&oe(t)&&(m.value=-1)}function Y(){e.eager&&v.value?.calculateVisibleItems()}function G(){s.value&&(u.value=!0,i.value?.focus())}function q(a){let l=!(arguments.length>1&&void 0!==arguments[1])||arguments[1]
|
1324
1329
|
if(a&&!a.props.disabled)if(e.multiple){const t=x.value.findIndex((t=>e.valueComparator(t.value,a.value))),o=null==l?!~t:l
|
1325
1330
|
if(~t){const e=o?[...x.value,a]:[...x.value]
|
1326
1331
|
e.splice(t,1),x.value=e}else o&&(x.value=[...x.value,a])
|
@@ -1949,7 +1954,7 @@ if(!o.value||-1===t)return
|
|
1949
1954
|
const a=h(f.value)
|
1950
1955
|
v.start(a),V=window.setTimeout((()=>{o.value=!1}),t)}function S(){m.value=!0,v.reset(),window.clearTimeout(V)}function k(){m.value=!1,w()}function x(e){g.value=e.touches[0].clientY}function N(e){Math.abs(g.value-e.changedTouches[0].clientY)>50&&(o.value=!1)}function C(){m.value&&k()}const _=t.computed((()=>e.location.split(" ").reduce(((e,t)=>(e[`v-snackbar--${t}`]=!0,e)),{})))
|
1951
1956
|
return $t((()=>{const a=si.filterProps(e),g=!!(l.default||l.text||e.text)
|
1952
|
-
return t.createVNode(si,t.mergeProps({ref:p,class:["v-snackbar",{"v-snackbar--active":o.value,"v-snackbar--multi-line":e.multiLine&&!e.vertical,"v-snackbar--timer":!!e.timer,"v-snackbar--vertical":e.vertical},_.value,n.value,e.class],style:[y.value,e.style]},a,{modelValue:o.value,"onUpdate:modelValue":e=>o.value=e,contentProps:t.mergeProps({class:["v-snackbar__wrapper",i.value,s.value,d.value,c.value],style:[u.value],onPointerenter:S,onPointerleave:k},a.contentProps),persistent:!0,noClickAnimation:!0,scrim:!1,scrollStrategy:"none",_disableGlobalStack:!0,onTouchstartPassive:x,onTouchend:N,onAfterLeave:C},r),{default:()=>[Tl(!1,"v-snackbar"),e.timer&&!m.value&&t.createVNode("div",{key:"timer",class:"v-snackbar__timer"},[t.createVNode(oo,{ref:f,color:"string"==typeof e.timer?e.timer:"info",max:e.timeout,"model-value":v.time.value},null)]),g&&t.createVNode("div",{key:"content",class:"v-snackbar__content",role:"status","aria-live":"polite"},[l.text?.()??e.text,l.default?.()]),l.actions&&t.createVNode(al,{defaults:{VBtn:{variant:"text",ripple:!1,slim:!0}}},{default:()=>[t.createVNode("div",{class:"v-snackbar__actions"},[l.actions({isActive:o})])]})],activator:l.activator})})),di({},p)}}),Xv=gt({autoDraw:Boolean,autoDrawDuration:[Number,String],autoDrawEasing:{type:String,default:"ease"},color:String,gradient:{type:Array,default:()=>[]},gradientDirection:{type:String,validator:e=>["top","bottom","left","right"].includes(e),default:"top"},height:{type:[String,Number],default:75},labels:{type:Array,default:()=>[]},labelSize:{type:[Number,String],default:7},lineWidth:{type:[String,Number],default:4},id:String,itemValue:{type:String,default:"value"},modelValue:{type:Array,default:()=>[]},min:[String,Number],max:[String,Number],padding:{type:[String,Number],default:8},showLabels:Boolean,smooth:Boolean,width:{type:[Number,String],default:300}},"Line"),Zv=gt({autoLineWidth:Boolean,...Xv()},"VBarline"),Qv=It()({name:"VBarline",props:Zv(),setup(e,a){let{slots:l}=a
|
1957
|
+
return t.createVNode(si,t.mergeProps({ref:p,class:["v-snackbar",{"v-snackbar--active":o.value,"v-snackbar--multi-line":e.multiLine&&!e.vertical,"v-snackbar--timer":!!e.timer,"v-snackbar--vertical":e.vertical},_.value,n.value,e.class],style:[y.value,e.style]},a,{modelValue:o.value,"onUpdate:modelValue":e=>o.value=e,contentProps:t.mergeProps({class:["v-snackbar__wrapper",i.value,s.value,d.value,c.value],style:[u.value],onPointerenter:S,onPointerleave:k},a.contentProps),persistent:!0,noClickAnimation:!0,scrim:!1,scrollStrategy:"none",_disableGlobalStack:!0,onTouchstartPassive:x,onTouchend:N,onAfterLeave:C},r),{default:()=>[Tl(!1,"v-snackbar"),e.timer&&!m.value&&t.createVNode("div",{key:"timer",class:"v-snackbar__timer"},[t.createVNode(oo,{ref:f,color:"string"==typeof e.timer?e.timer:"info",max:e.timeout,"model-value":v.time.value},null)]),g&&t.createVNode("div",{key:"content",class:"v-snackbar__content",role:"status","aria-live":"polite"},[l.text?.()??e.text,l.default?.()]),l.actions&&t.createVNode(al,{defaults:{VBtn:{variant:"text",ripple:!1,slim:!0}}},{default:()=>[t.createVNode("div",{class:"v-snackbar__actions"},[l.actions({isActive:o})])]})],activator:l.activator})})),di({},p)}}),Xv=gt({autoDraw:Boolean,autoDrawDuration:[Number,String],autoDrawEasing:{type:String,default:"ease"},color:String,gradient:{type:Array,default:()=>[]},gradientDirection:{type:String,validator:e=>["top","bottom","left","right"].includes(e),default:"top"},height:{type:[String,Number],default:75},labels:{type:Array,default:()=>[]},labelSize:{type:[Number,String],default:7},lineWidth:{type:[String,Number],default:4},id:String,itemValue:{type:String,default:"value"},modelValue:{type:Array,default:()=>[]},min:[String,Number],max:[String,Number],padding:{type:[String,Number],default:8},showLabels:Boolean,smooth:[Boolean,String,Number],width:{type:[Number,String],default:300}},"Line"),Zv=gt({autoLineWidth:Boolean,...Xv()},"VBarline"),Qv=It()({name:"VBarline",props:Zv(),setup(e,a){let{slots:l}=a
|
1953
1958
|
const o=St(),n=t.computed((()=>e.id||`barline-${o}`)),r=t.computed((()=>Number(e.autoDrawDuration)||500)),i=t.computed((()=>Boolean(e.showLabels||e.labels.length>0||!!l?.label))),s=t.computed((()=>parseFloat(e.lineWidth)||4)),u=t.computed((()=>Math.max(e.modelValue.length*s.value,Number(e.width)))),c=t.computed((()=>({minX:0,maxX:u.value,minY:0,maxY:parseInt(e.height,10)}))),d=t.computed((()=>e.modelValue.map((t=>v(t,e.itemValue,t)))))
|
1954
1959
|
function p(t,a){const{minX:l,maxX:o,minY:n,maxY:r}=a,i=t.length
|
1955
1960
|
let s=null!=e.max?Number(e.max):Math.max(...t),u=null!=e.min?Number(e.min):Math.min(...t)
|
@@ -1959,9 +1964,9 @@ return t.map(((e,t)=>{const a=Math.abs(d*e)
|
|
1959
1964
|
return{x:l+t*c,y:v-a+ +(e<0)*a,height:a,value:e}}))}const f=t.computed((()=>{const t=[],a=p(d.value,c.value),l=a.length
|
1960
1965
|
for(let o=0;t.length<l;o++){const l=a[o]
|
1961
1966
|
let n=e.labels[o]
|
1962
|
-
n||(n="object"==typeof l?l.value:l),t.push({x:l.x,value:String(n)})}return t})),m=t.computed((()=>p(d.value,c.value))),g=t.computed((()=>(Math.abs(m.value[0].x-m.value[1].x)-s.value)/2))
|
1967
|
+
n||(n="object"==typeof l?l.value:l),t.push({x:l.x,value:String(n)})}return t})),m=t.computed((()=>p(d.value,c.value))),g=t.computed((()=>(Math.abs(m.value[0].x-m.value[1].x)-s.value)/2)),h=t.computed((()=>"boolean"==typeof e.smooth?e.smooth?2:0:Number(e.smooth)))
|
1963
1968
|
$t((()=>{const a=e.gradient.slice().length?e.gradient.slice().reverse():[""]
|
1964
|
-
return t.createVNode("svg",{display:"block"},[t.createVNode("defs",null,[t.createVNode("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.createVNode("stop",{offset:l/Math.max(a.length-1,1),"stop-color":e||"currentColor"},null)))])]),t.createVNode("clipPath",{id:`${n.value}-clip`},[m.value.map((a=>t.createVNode("rect",{x:a.x+g.value,y:a.y,width:s.value,height:a.height,rx:
|
1969
|
+
return t.createVNode("svg",{display:"block"},[t.createVNode("defs",null,[t.createVNode("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.createVNode("stop",{offset:l/Math.max(a.length-1,1),"stop-color":e||"currentColor"},null)))])]),t.createVNode("clipPath",{id:`${n.value}-clip`},[m.value.map((a=>t.createVNode("rect",{x:a.x+g.value,y:a.y,width:s.value,height:a.height,rx:h.value,ry:h.value},[e.autoDraw&&t.createVNode(t.Fragment,null,[t.createVNode("animate",{attributeName:"y",from:a.y+a.height,to:a.y,dur:`${r.value}ms`,fill:"freeze"},null),t.createVNode("animate",{attributeName:"height",from:"0",to:a.height,dur:`${r.value}ms`,fill:"freeze"},null)])])))]),i.value&&t.createVNode("g",{key:"labels",style:{textAnchor:"middle",dominantBaseline:"mathematical",fill:"currentColor"}},[f.value.map(((a,o)=>t.createVNode("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.createVNode("g",{"clip-path":`url(#${n.value}-clip)`,fill:`url(#${n.value})`},[t.createVNode("rect",{x:0,y:0,width:Math.max(e.modelValue.length*s.value,Number(e.width)),height:e.height},null)])])}))}})
|
1965
1970
|
function Jv(e,t){let a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:75
|
1966
1971
|
if(0===e.length)return""
|
1967
1972
|
const o=e.shift(),n=e[e.length-1]
|
@@ -1978,7 +1983,8 @@ return{minX:t,maxX:p.value-t,minY:t,maxY:parseInt(e.height,10)-t}})),m=t.compute
|
|
1978
1983
|
for(let o=0;t.length<l;o++){const l=a[o]
|
1979
1984
|
let n=e.labels[o]
|
1980
1985
|
n||(n="object"==typeof l?l.value:l),t.push({x:l.x,value:String(n)})}return t}))
|
1981
|
-
function h(t){
|
1986
|
+
function h(t){const a="boolean"==typeof e.smooth?e.smooth?8:0:Number(e.smooth)
|
1987
|
+
return Jv(u(m.value,f.value),a,t,parseInt(e.height,10))}t.watch((()=>e.modelValue),(async()=>{if(await t.nextTick(),!e.autoDraw||!s.value)return
|
1982
1988
|
const a=s.value,l=a.getTotalLength()
|
1983
1989
|
e.fill?(a.style.transformOrigin="bottom center",a.style.transition="none",a.style.transform="scaleY(0)",a.getBoundingClientRect(),a.style.transition=`transform ${r.value}ms ${e.autoDrawEasing}`,a.style.transform="scaleY(1)"):(a.style.strokeDasharray=`${l}`,a.style.strokeDashoffset=`${l}`,a.getBoundingClientRect(),a.style.transition=`stroke-dashoffset ${r.value}ms ${e.autoDrawEasing}`,a.style.strokeDashoffset="0"),i.value=l}),{immediate:!0}),$t((()=>{const a=e.gradient.slice().length?e.gradient.slice().reverse():[""]
|
1984
1990
|
return t.createVNode("svg",{display:"block","stroke-width":parseFloat(e.lineWidth)??4},[t.createVNode("defs",null,[t.createVNode("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.createVNode("stop",{offset:l/Math.max(a.length-1,1),"stop-color":e||"currentColor"},null)))])]),c.value&&t.createVNode("g",{key:"labels",style:{textAnchor:"middle",dominantBaseline:"mathematical",fill:"currentColor"}},[g.value.map(((a,o)=>t.createVNode("text",{x:a.x+d.value/2+d.value/2,y:parseInt(e.height,10)-4+(parseInt(e.labelSize,10)||5.25),"font-size":Number(e.labelSize)||7},[l.label?.({index:o,value:a.value})??a.value])))]),t.createVNode("path",{ref:s,d:h(e.fill),fill:e.fill?`url(#${n.value})`:"none",stroke:e.fill?"none":`url(#${n.value})`},null),e.fill&&t.createVNode("path",{d:h(!1),fill:"none",stroke:e.color??e.gradient?.[0]},null)])}))}}),np=gt({type:{type:String,default:"trend"},...Zv(),...lp()},"VSparkline"),rp=It()({name:"VSparkline",props:np(),setup(e,a){let{slots:l}=a
|
@@ -2100,8 +2106,8 @@ if(d.install(e),e.provide(kt,u),e.provide(hn,c),e.provide(Va,d),e.provide(Ot,v),
|
|
2100
2106
|
else{const{mount:a}=e
|
2101
2107
|
e.mount=function(){const l=a(...arguments)
|
2102
2108
|
return t.nextTick((()=>c.update())),e.mount=a,l}}St.reset(),("boolean"!=typeof __VUE_OPTIONS_API__||__VUE_OPTIONS_API__)&&e.mixin({computed:{$vuetify(){return t.reactive({defaults:sf.call(this,kt),display:sf.call(this,hn),theme:sf.call(this,Va),icons:sf.call(this,Ot),locale:sf.call(this,ma),date:sf.call(this,mu)})}}})},defaults:u,display:c,theme:d,icons:v,locale:p,date:f,goTo:m}}function sf(e){const t=this.$,a=t.parent?.provides??t.vnode.appContext?.provides
|
2103
|
-
if(a&&e in a)return a[e]}rf.version="3.7.6-master.2025-01-
|
2104
|
-
const uf=function(){return rf({components:Zp,directives:nf,...arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}})},cf="3.7.6-master.2025-01-
|
2109
|
+
if(a&&e in a)return a[e]}rf.version="3.7.6-master.2025-01-16"
|
2110
|
+
const uf=function(){return rf({components:Zp,directives:nf,...arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}})},cf="3.7.6-master.2025-01-16"
|
2105
2111
|
uf.version=cf,e.blueprints=Zt,e.components=Zp,e.createVuetify=uf,e.directives=nf,e.useDate=hu,e.useDefaults=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0
|
2106
2112
|
const{props:a,provideSubDefaults:l}=Ct(e,t)
|
2107
2113
|
return l(),a},e.useDisplay=xn,e.useGoTo=Pn,e.useLayout=la,e.useLocale=ha,e.useRtl=ba,e.useTheme=xa,e.version=cf}))
|