@vuetify/nightly 3.8.7-master.2025-05-29 → 3.8.7-master.2025-05-31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Vuetify v3.8.7-master.2025-05-29
2
+ * Vuetify v3.8.7-master.2025-05-31
3
3
  * Forged by John Leider
4
4
  * Released under the MIT License.
5
5
  */
@@ -1462,7 +1462,9 @@ s<hu(gu(uu(e,t,n),6))&&i(s+1)>=r&&s++
1462
1462
  const u=new Date(s,0,1),c=i(s)
1463
1463
  return 1+Vu(e,gu(u,c>=r?c-7:c),"weeks")}(e,this.locale,l,a)}getDate(e){return function(e){return e.getDate()}(e)}getNextMonth(e){return function(e){return new Date(e.getFullYear(),e.getMonth()+1,1)}(e)}getPreviousMonth(e){return function(e){return new Date(e.getFullYear(),e.getMonth()-1,1)}(e)}getHours(e){return function(e){return e.getHours()}(e)}getMinutes(e){return function(e){return e.getMinutes()}(e)}startOfDay(e){return Su(e)}endOfDay(e){return function(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59,999)}(e)}startOfYear(e){return function(e){return new Date(e.getFullYear(),0,1)}(e)}endOfYear(e){return function(e){return new Date(e.getFullYear(),11,31)}(e)}}const ku=Symbol.for("vuetify:date-options"),xu=Symbol.for("vuetify:date-adapter")
1464
1464
  function Cu(e,a){const l=t.reactive("function"==typeof e.adapter?new e.adapter({locale:e.locale[a.current.value]??a.current.value,formats:e.formats}):e.adapter)
1465
- return t.watch(a.current,(t=>{l.locale=e.locale[t]??t??l.locale})),l}function Nu(){const e=t.inject(ku)
1465
+ return t.watch(a.current,(t=>{l.locale=e.locale[t]??t??l.locale})),Object.assign(l,{createDateRange(e,t){const a=l.getDiff(t??e,e,"days"),o=[e]
1466
+ for(let t=1;t<a;t++){const a=l.addDays(e,t)
1467
+ o.push(a)}return t&&o.push(l.endOfDay(t)),o}})}function Nu(){const e=t.inject(ku)
1466
1468
  if(!e)throw new Error("[Vuetify] Could not find injected date options")
1467
1469
  return Cu(e,fa())}const Eu=Ct({name:"VColorPicker",props:ht({canvasHeight:{type:[String,Number],default:150},disabled:Boolean,dotSize:{type:[Number,String],default:10},hideCanvas:Boolean,hideSliders:Boolean,hideInputs:Boolean,mode:{type:String,default:"rgba",validator:e=>Object.keys(Ms).includes(e)},modes:{type:Array,default:()=>Object.keys(Ms),validator:e=>Array.isArray(e)&&e.every((e=>Object.keys(Ms).includes(e)))},showSwatches:Boolean,swatches:Array,swatchesMaxHeight:{type:[Number,String],default:150},modelValue:{type:[Object,String]},...ru({hideHeader:!0})},"VColorPicker")(),emits:{"update:modelValue":e=>!0,"update:mode":e=>!0},setup(e,a){let{slots:l}=a
1468
1470
  const o=na(e,"mode"),n=t.ref(null),r=na(e,"modelValue",void 0,(e=>{if(null==e||""===e)return null
@@ -1775,10 +1777,7 @@ return i.value.length>=t}))
1775
1777
  function f(t){"range"===e.multiple?function(e){const t=u.startOfDay(e)
1776
1778
  if(0===i.value.length?c.value=void 0:1===i.value.length&&(c.value=i.value[0],d.value=void 0),c.value)if(d.value)c.value=e,d.value=void 0,i.value=[c.value]
1777
1779
  else{if(u.isSameDay(t,c.value))return c.value=void 0,void(i.value=[])
1778
- u.isBefore(t,c.value)?(d.value=u.endOfDay(c.value),c.value=t):d.value=u.endOfDay(t)
1779
- const e=u.getDiff(d.value,c.value,"days"),a=[c.value]
1780
- for(let t=1;t<e;t++){const e=u.addDays(c.value,t)
1781
- a.push(e)}a.push(d.value),i.value=a}else c.value=t,i.value=[c.value]}(t):e.multiple?function(e){const t=i.value.findIndex((t=>u.isSameDay(t,e)))
1780
+ u.isBefore(t,c.value)?(d.value=u.endOfDay(c.value),c.value=t):d.value=u.endOfDay(t),i.value=u.createDateRange(c.value,d.value)}else c.value=t,i.value=[c.value]}(t):e.multiple?function(e){const t=i.value.findIndex((t=>u.isSameDay(t,e)))
1782
1781
  if(-1===t)i.value=[...i.value,e]
1783
1782
  else{const e=[...i.value]
1784
1783
  e.splice(t,1),i.value=e}}(t):i.value=[t]}t.watch(r,((e,t)=>{t&&(v.value=u.isBefore(e[0].date,t[0].date))})),Dt((()=>t.createElementVNode("div",{class:"v-date-picker-month"},[e.showWeek&&t.createElementVNode("div",{key:"weeks",class:"v-date-picker-month__weeks"},[!e.hideWeekdays&&t.createElementVNode("div",{key:"hide-week-days",class:"v-date-picker-month__day"},[t.createTextVNode(" ")]),s.value.map((e=>t.createElementVNode("div",{class:["v-date-picker-month__day","v-date-picker-month__day--adjacent"]},[e])))]),t.createVNode(fl,{name:p.value},{default:()=>[t.createElementVNode("div",{ref:n,key:r.value[0].date?.toString(),class:"v-date-picker-month__days"},[!e.hideWeekdays&&u.getWeekdays(e.firstDayOfWeek).map((e=>t.createElementVNode("div",{class:["v-date-picker-month__day","v-date-picker-month__weekday"]},[e]))),r.value.map(((a,l)=>{const n={props:{class:"v-date-picker-month__day-btn",color:a.isSelected||a.isToday?e.color:void 0,disabled:a.isDisabled,icon:!0,ripple:!1,text:a.localized,variant:a.isSelected?"flat":a.isToday?"outlined":"text",onClick:()=>f(a.date)},item:a,i:l}
@@ -2230,8 +2229,8 @@ if(m.run((()=>{o.install(u)})),u.onUnmount((()=>m.stop())),u.provide(St,e),u.pro
2230
2229
  else{const{mount:e}=u
2231
2230
  u.mount=function(){const a=e(...arguments)
2232
2231
  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:bm.call(this,St),display:bm.call(this,Vn),theme:bm.call(this,ya),icons:bm.call(this,zt),locale:bm.call(this,pa),date:bm.call(this,xu)})}}})},unmount:function(){u.stop()},defaults:e,display:l,theme:o,icons:c,locale:d,date:v,goTo:p}}))}function bm(e){const t=this.$,a=t.parent?.provides??t.vnode.appContext?.provides
2233
- if(a&&e in a)return a[e]}ym.version="3.8.7-master.2025-05-29"
2234
- const Vm=function(){return ym({components:um,directives:hm,...arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}})},Sm="3.8.7-master.2025-05-29"
2232
+ if(a&&e in a)return a[e]}ym.version="3.8.7-master.2025-05-31"
2233
+ const Vm=function(){return ym({components:um,directives:hm,...arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}})},Sm="3.8.7-master.2025-05-31"
2235
2234
  Vm.version=Sm,e.blueprints=Kt,e.components=um,e.createVuetify=Vm,e.directives=hm,e.useDate=Nu,e.useDefaults=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0
2236
2235
  const{props:a,provideSubDefaults:l}=xt(e,t)
2237
2236
  return l(),a},e.useDisplay=En,e.useGoTo=Rn,e.useLayout=ta,e.useLocale=fa,e.useRtl=ha,e.useTheme=Ea,e.version=Sm}))