@vuetify/nightly 3.7.15-master.2025-03-07 → 3.7.15-master.2025-03-10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -3
- package/dist/json/attributes.json +3569 -3569
- package/dist/json/importMap-labs.json +16 -16
- package/dist/json/importMap.json +164 -164
- package/dist/json/web-types.json +6485 -6485
- package/dist/vuetify-labs.css +4142 -4142
- package/dist/vuetify-labs.d.ts +13 -13
- package/dist/vuetify-labs.esm.js +18 -23
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +18 -23
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +3491 -3491
- package/dist/vuetify.d.ts +57 -57
- package/dist/vuetify.esm.js +13 -21
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +13 -21
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +5 -5
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VDatePicker/VDatePickerMonth.mjs +12 -21
- package/lib/components/VDatePicker/VDatePickerMonth.mjs.map +1 -1
- package/lib/components/VDatePicker/index.d.mts +3 -3
- package/lib/components/index.d.mts +3 -3
- package/lib/entry-bundler.mjs +1 -1
- package/lib/framework.mjs +1 -1
- package/lib/index.d.mts +54 -54
- package/lib/labs/VDateInput/VDateInput.mjs +3 -2
- package/lib/labs/VDateInput/VDateInput.mjs.map +1 -1
- package/lib/labs/VDateInput/index.d.mts +10 -10
- package/lib/labs/VTimePicker/VTimePickerControls.mjs +2 -0
- package/lib/labs/VTimePicker/VTimePickerControls.mjs.map +1 -1
- package/lib/labs/components.d.mts +10 -10
- package/package.json +1 -1
@@ -3,13 +3,12 @@ import { createTextVNode as _createTextVNode, createVNode as _createVNode } from
|
|
3
3
|
import "./VDatePickerMonth.css";
|
4
4
|
|
5
5
|
// Components
|
6
|
-
import { VBtn } from "../VBtn/index.mjs";
|
7
|
-
import { VDefaultsProvider } from "../VDefaultsProvider/index.mjs"; // Composables
|
6
|
+
import { VBtn } from "../VBtn/index.mjs"; // Composables
|
8
7
|
import { makeCalendarProps, useCalendar } from "../../composables/calendar.mjs";
|
9
8
|
import { useDate } from "../../composables/date/date.mjs";
|
10
9
|
import { MaybeTransition } from "../../composables/transition.mjs"; // Utilities
|
11
10
|
import { computed, ref, shallowRef, watch } from 'vue';
|
12
|
-
import { genericComponent, omit, propsFactory } from "../../util/index.mjs"; // Types
|
11
|
+
import { genericComponent, omit, propsFactory, useRender } from "../../util/index.mjs"; // Types
|
13
12
|
export const makeVDatePickerMonthProps = propsFactory({
|
14
13
|
color: String,
|
15
14
|
hideWeekdays: Boolean,
|
@@ -120,7 +119,7 @@ export const VDatePickerMonth = genericComponent()({
|
|
120
119
|
model.value = [value];
|
121
120
|
}
|
122
121
|
}
|
123
|
-
|
122
|
+
useRender(() => _createVNode("div", {
|
124
123
|
"class": "v-date-picker-month"
|
125
124
|
}, [props.showWeek && _createVNode("div", {
|
126
125
|
"key": "weeks",
|
@@ -142,6 +141,13 @@ export const VDatePickerMonth = genericComponent()({
|
|
142
141
|
}, [weekDay])), daysInMonth.value.map((item, i) => {
|
143
142
|
const slotProps = {
|
144
143
|
props: {
|
144
|
+
class: 'v-date-picker-month__day-btn',
|
145
|
+
color: (item.isSelected || item.isToday) && !item.isDisabled ? props.color : undefined,
|
146
|
+
disabled: item.isDisabled,
|
147
|
+
icon: true,
|
148
|
+
ripple: false,
|
149
|
+
text: item.localized,
|
150
|
+
variant: item.isDisabled ? item.isToday ? 'outlined' : 'text' : item.isToday && !item.isSelected ? 'outlined' : 'flat',
|
145
151
|
onClick: () => onClick(item.date)
|
146
152
|
},
|
147
153
|
item,
|
@@ -159,24 +165,9 @@ export const VDatePickerMonth = genericComponent()({
|
|
159
165
|
'v-date-picker-month__day--week-start': item.isWeekStart
|
160
166
|
}],
|
161
167
|
"data-v-date": !item.isDisabled ? item.isoDate : undefined
|
162
|
-
}, [(props.showAdjacentMonths || !item.isAdjacent) && _createVNode(
|
163
|
-
"defaults": {
|
164
|
-
VBtn: {
|
165
|
-
class: 'v-date-picker-month__day-btn',
|
166
|
-
color: (item.isSelected || item.isToday) && !item.isDisabled ? props.color : undefined,
|
167
|
-
disabled: item.isDisabled,
|
168
|
-
icon: true,
|
169
|
-
ripple: false,
|
170
|
-
text: item.localized,
|
171
|
-
variant: item.isDisabled ? item.isToday ? 'outlined' : 'text' : item.isToday && !item.isSelected ? 'outlined' : 'flat',
|
172
|
-
onClick: () => onClick(item.date)
|
173
|
-
}
|
174
|
-
}
|
175
|
-
}, {
|
176
|
-
default: () => [slots.day?.(slotProps) ?? _createVNode(VBtn, slotProps.props, null)]
|
177
|
-
})]);
|
168
|
+
}, [(props.showAdjacentMonths || !item.isAdjacent) && (slots.day?.(slotProps) ?? _createVNode(VBtn, slotProps.props, null))]);
|
178
169
|
})])]
|
179
|
-
})]);
|
170
|
+
})]));
|
180
171
|
}
|
181
172
|
});
|
182
173
|
//# sourceMappingURL=VDatePickerMonth.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"VDatePickerMonth.mjs","names":["VBtn","VDefaultsProvider","makeCalendarProps","useCalendar","useDate","MaybeTransition","computed","ref","shallowRef","watch","genericComponent","omit","propsFactory","makeVDatePickerMonthProps","color","String","hideWeekdays","Boolean","multiple","Number","showWeek","transition","type","default","reverseTransition","VDatePickerMonth","name","props","emits","date","setup","_ref","emit","slots","daysRef","daysInMonth","model","weekNumbers","adapter","rangeStart","rangeStop","isReverse","value","length","atMax","max","includes","Infinity","val","oldVal","isBefore","onRangeClick","_value","startOfDay","undefined","isSameDay","endOfDay","diff","getDiff","datesInRange","i","nextDate","addDays","push","onMultipleClick","index","findIndex","selection","splice","onClick","_createVNode","_createTextVNode","map","week","toString","getWeekdays","firstDayOfWeek","weekDay","item","slotProps","isSelected","isDisabled","isAdjacent","isHidden","isWeekEnd","isWeekStart","isoDate","showAdjacentMonths","class","isToday","disabled","icon","ripple","text","localized","variant","day"],"sources":["../../../src/components/VDatePicker/VDatePickerMonth.tsx"],"sourcesContent":["// Styles\nimport './VDatePickerMonth.sass'\n\n// Components\nimport { VBtn } from '@/components/VBtn'\nimport { VDefaultsProvider } from '@/components/VDefaultsProvider'\n\n// Composables\nimport { makeCalendarProps, useCalendar } from '@/composables/calendar'\nimport { useDate } from '@/composables/date/date'\nimport { MaybeTransition } from '@/composables/transition'\n\n// Utilities\nimport { computed, ref, shallowRef, watch } from 'vue'\nimport { genericComponent, omit, propsFactory } from '@/util'\n\n// Types\nimport type { PropType } from 'vue'\n\nexport type VDatePickerMonthSlots = {\n day: {\n props: {\n onClick: () => void\n }\n item: any\n i: number\n }\n}\n\nexport const makeVDatePickerMonthProps = propsFactory({\n color: String,\n hideWeekdays: Boolean,\n multiple: [Boolean, Number, String] as PropType<boolean | 'range' | number | (string & {})>,\n showWeek: Boolean,\n transition: {\n type: String,\n default: 'picker-transition',\n },\n reverseTransition: {\n type: String,\n default: 'picker-reverse-transition',\n },\n\n ...omit(makeCalendarProps(), ['displayValue']),\n}, 'VDatePickerMonth')\n\nexport const VDatePickerMonth = genericComponent<VDatePickerMonthSlots>()({\n name: 'VDatePickerMonth',\n\n props: makeVDatePickerMonthProps(),\n\n emits: {\n 'update:modelValue': (date: unknown) => true,\n 'update:month': (date: number) => true,\n 'update:year': (date: number) => true,\n },\n\n setup (props, { emit, slots }) {\n const daysRef = ref()\n\n const { daysInMonth, model, weekNumbers } = useCalendar(props)\n const adapter = useDate()\n\n const rangeStart = shallowRef()\n const rangeStop = shallowRef()\n const isReverse = shallowRef(false)\n\n const transition = computed(() => {\n return !isReverse.value ? props.transition : props.reverseTransition\n })\n\n if (props.multiple === 'range' && model.value.length > 0) {\n rangeStart.value = model.value[0]\n if (model.value.length > 1) {\n rangeStop.value = model.value[model.value.length - 1]\n }\n }\n\n const atMax = computed(() => {\n const max = ['number', 'string'].includes(typeof props.multiple) ? Number(props.multiple) : Infinity\n\n return model.value.length >= max\n })\n\n watch(daysInMonth, (val, oldVal) => {\n if (!oldVal) return\n\n isReverse.value = adapter.isBefore(val[0].date, oldVal[0].date)\n })\n\n function onRangeClick (value: unknown) {\n const _value = adapter.startOfDay(value)\n\n if (model.value.length === 0) {\n rangeStart.value = undefined\n } else if (model.value.length === 1) {\n rangeStart.value = model.value[0]\n rangeStop.value = undefined\n }\n if (!rangeStart.value) {\n rangeStart.value = _value\n model.value = [rangeStart.value]\n } else if (!rangeStop.value) {\n if (adapter.isSameDay(_value, rangeStart.value)) {\n rangeStart.value = undefined\n model.value = []\n return\n } else if (adapter.isBefore(_value, rangeStart.value)) {\n rangeStop.value = adapter.endOfDay(rangeStart.value)\n rangeStart.value = _value\n } else {\n rangeStop.value = adapter.endOfDay(_value)\n }\n\n const diff = adapter.getDiff(rangeStop.value, rangeStart.value, 'days')\n const datesInRange = [rangeStart.value]\n\n for (let i = 1; i < diff; i++) {\n const nextDate = adapter.addDays(rangeStart.value, i)\n datesInRange.push(nextDate)\n }\n\n datesInRange.push(rangeStop.value)\n\n model.value = datesInRange\n } else {\n rangeStart.value = value\n rangeStop.value = undefined\n model.value = [rangeStart.value]\n }\n }\n\n function onMultipleClick (value: unknown) {\n const index = model.value.findIndex(selection => adapter.isSameDay(selection, value))\n\n if (index === -1) {\n model.value = [...model.value, value]\n } else {\n const value = [...model.value]\n value.splice(index, 1)\n model.value = value\n }\n }\n\n function onClick (value: unknown) {\n if (props.multiple === 'range') {\n onRangeClick(value)\n } else if (props.multiple) {\n onMultipleClick(value)\n } else {\n model.value = [value]\n }\n }\n\n return () => (\n <div class=\"v-date-picker-month\">\n { props.showWeek && (\n <div key=\"weeks\" class=\"v-date-picker-month__weeks\">\n { !props.hideWeekdays && (\n <div key=\"hide-week-days\" class=\"v-date-picker-month__day\"> </div>\n )}\n { weekNumbers.value.map(week => (\n <div\n class={[\n 'v-date-picker-month__day',\n 'v-date-picker-month__day--adjacent',\n ]}\n >{ week }</div>\n ))}\n </div>\n )}\n\n <MaybeTransition name={ transition.value }>\n <div\n ref={ daysRef }\n key={ daysInMonth.value[0].date?.toString() }\n class=\"v-date-picker-month__days\"\n >\n { !props.hideWeekdays && adapter.getWeekdays(props.firstDayOfWeek).map(weekDay => (\n <div\n class={[\n 'v-date-picker-month__day',\n 'v-date-picker-month__weekday',\n ]}\n >{ weekDay }</div>\n ))}\n\n { daysInMonth.value.map((item, i) => {\n const slotProps = {\n props: {\n onClick: () => onClick(item.date),\n },\n item,\n i,\n } as const\n\n if (atMax.value && !item.isSelected) {\n item.isDisabled = true\n }\n\n return (\n <div\n class={[\n 'v-date-picker-month__day',\n {\n 'v-date-picker-month__day--adjacent': item.isAdjacent,\n 'v-date-picker-month__day--hide-adjacent': item.isHidden,\n 'v-date-picker-month__day--selected': item.isSelected,\n 'v-date-picker-month__day--week-end': item.isWeekEnd,\n 'v-date-picker-month__day--week-start': item.isWeekStart,\n },\n ]}\n data-v-date={ !item.isDisabled ? item.isoDate : undefined }\n >\n\n { (props.showAdjacentMonths || !item.isAdjacent) && (\n <VDefaultsProvider\n defaults={{\n VBtn: {\n class: 'v-date-picker-month__day-btn',\n color: (item.isSelected || item.isToday) && !item.isDisabled\n ? props.color\n : undefined,\n disabled: item.isDisabled,\n icon: true,\n ripple: false,\n text: item.localized,\n variant: item.isDisabled\n ? item.isToday ? 'outlined' : 'text'\n : item.isToday && !item.isSelected ? 'outlined' : 'flat',\n onClick: () => onClick(item.date),\n },\n }}\n >\n { slots.day?.(slotProps) ?? (\n <VBtn { ...slotProps.props } />\n )}\n </VDefaultsProvider>\n )}\n </div>\n )\n })}\n </div>\n </MaybeTransition>\n </div>\n )\n },\n})\n\nexport type VDatePickerMonth = InstanceType<typeof VDatePickerMonth>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,IAAI;AAAA,SACJC,iBAAiB,0CAE1B;AAAA,SACSC,iBAAiB,EAAEC,WAAW;AAAA,SAC9BC,OAAO;AAAA,SACPC,eA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,EAAEL,IAAI,CAACE,UAAU;YACrD,oCAAoC,EAAEF,IAAI,CAACM,SAAS;YACpD,sCAAsC,EAAEN,IAAI,CAACO;UAC/C,CAAC,CACF;UAAA,eACa,CAACP,IAAI,CAACG,UAAU,GAAGH,IAAI,CAACQ,OAAO,GAAGhC;QAAS,IAGvD,CAAC3B,KAAK,CAAC4D,kBAAkB,IAAI,CAACT,IAAI,CAACI,UAAU,KAAAZ,YAAA,CAAArE,iBAAA;UAAA,YAEjC;YACRD,IAAI,EAAE;cACJwF,KAAK,EAAE,8BAA8B;cACrC1E,KAAK,EAAE,CAACgE,IAAI,CAACE,UAAU,IAAIF,IAAI,CAACW,OAAO,KAAK,CAACX,IAAI,CAACG,UAAU,GACxDtD,KAAK,CAACb,KAAK,GACXwC,SAAS;cACboC,QAAQ,EAAEZ,IAAI,CAACG,UAAU;cACzBU,IAAI,EAAE,IAAI;cACVC,MAAM,EAAE,KAAK;cACbC,IAAI,EAAEf,IAAI,CAACgB,SAAS;cACpBC,OAAO,EAAEjB,IAAI,CAACG,UAAU,GACpBH,IAAI,CAACW,OAAO,GAAG,UAAU,GAAG,MAAM,GAClCX,IAAI,CAACW,OAAO,IAAI,CAACX,IAAI,CAACE,UAAU,GAAG,UAAU,GAAG,MAAM;cAC1DX,OAAO,EAAEA,CAAA,KAAMA,OAAO,CAACS,IAAI,CAACjD,IAAI;YAClC;UACF;QAAC;UAAAN,OAAA,EAAAA,CAAA,MAECU,KAAK,CAAC+D,GAAG,GAAGjB,SAAS,CAAC,IAAAT,YAAA,CAAAtE,IAAA,EACX+E,SAAS,CAACpD,KAAK,OAC3B;QAAA,EAEJ;MAGP,CAAC,CAAC;IAAA,IAIT;EACH;AACF,CAAC,CAAC","ignoreList":[]}
|
1
|
+
{"version":3,"file":"VDatePickerMonth.mjs","names":["VBtn","makeCalendarProps","useCalendar","useDate","MaybeTransition","computed","ref","shallowRef","watch","genericComponent","omit","propsFactory","useRender","makeVDatePickerMonthProps","color","String","hideWeekdays","Boolean","multiple","Number","showWeek","transition","type","default","reverseTransition","VDatePickerMonth","name","props","emits","date","setup","_ref","emit","slots","daysRef","daysInMonth","model","weekNumbers","adapter","rangeStart","rangeStop","isReverse","value","length","atMax","max","includes","Infinity","val","oldVal","isBefore","onRangeClick","_value","startOfDay","undefined","isSameDay","endOfDay","diff","getDiff","datesInRange","i","nextDate","addDays","push","onMultipleClick","index","findIndex","selection","splice","onClick","_createVNode","_createTextVNode","map","week","toString","getWeekdays","firstDayOfWeek","weekDay","item","slotProps","class","isSelected","isToday","isDisabled","disabled","icon","ripple","text","localized","variant","isAdjacent","isHidden","isWeekEnd","isWeekStart","isoDate","showAdjacentMonths","day"],"sources":["../../../src/components/VDatePicker/VDatePickerMonth.tsx"],"sourcesContent":["// Styles\nimport './VDatePickerMonth.sass'\n\n// Components\nimport { VBtn } from '@/components/VBtn'\n\n// Composables\nimport { makeCalendarProps, useCalendar } from '@/composables/calendar'\nimport { useDate } from '@/composables/date/date'\nimport { MaybeTransition } from '@/composables/transition'\n\n// Utilities\nimport { computed, ref, shallowRef, watch } from 'vue'\nimport { genericComponent, omit, propsFactory, useRender } from '@/util'\n\n// Types\nimport type { PropType } from 'vue'\n\nexport type VDatePickerMonthSlots = {\n day: {\n props: {\n onClick: () => void\n }\n item: any\n i: number\n }\n}\n\nexport const makeVDatePickerMonthProps = propsFactory({\n color: String,\n hideWeekdays: Boolean,\n multiple: [Boolean, Number, String] as PropType<boolean | 'range' | number | (string & {})>,\n showWeek: Boolean,\n transition: {\n type: String,\n default: 'picker-transition',\n },\n reverseTransition: {\n type: String,\n default: 'picker-reverse-transition',\n },\n\n ...omit(makeCalendarProps(), ['displayValue']),\n}, 'VDatePickerMonth')\n\nexport const VDatePickerMonth = genericComponent<VDatePickerMonthSlots>()({\n name: 'VDatePickerMonth',\n\n props: makeVDatePickerMonthProps(),\n\n emits: {\n 'update:modelValue': (date: unknown) => true,\n 'update:month': (date: number) => true,\n 'update:year': (date: number) => true,\n },\n\n setup (props, { emit, slots }) {\n const daysRef = ref()\n\n const { daysInMonth, model, weekNumbers } = useCalendar(props)\n const adapter = useDate()\n\n const rangeStart = shallowRef()\n const rangeStop = shallowRef()\n const isReverse = shallowRef(false)\n\n const transition = computed(() => {\n return !isReverse.value ? props.transition : props.reverseTransition\n })\n\n if (props.multiple === 'range' && model.value.length > 0) {\n rangeStart.value = model.value[0]\n if (model.value.length > 1) {\n rangeStop.value = model.value[model.value.length - 1]\n }\n }\n\n const atMax = computed(() => {\n const max = ['number', 'string'].includes(typeof props.multiple) ? Number(props.multiple) : Infinity\n\n return model.value.length >= max\n })\n\n watch(daysInMonth, (val, oldVal) => {\n if (!oldVal) return\n\n isReverse.value = adapter.isBefore(val[0].date, oldVal[0].date)\n })\n\n function onRangeClick (value: unknown) {\n const _value = adapter.startOfDay(value)\n\n if (model.value.length === 0) {\n rangeStart.value = undefined\n } else if (model.value.length === 1) {\n rangeStart.value = model.value[0]\n rangeStop.value = undefined\n }\n if (!rangeStart.value) {\n rangeStart.value = _value\n model.value = [rangeStart.value]\n } else if (!rangeStop.value) {\n if (adapter.isSameDay(_value, rangeStart.value)) {\n rangeStart.value = undefined\n model.value = []\n return\n } else if (adapter.isBefore(_value, rangeStart.value)) {\n rangeStop.value = adapter.endOfDay(rangeStart.value)\n rangeStart.value = _value\n } else {\n rangeStop.value = adapter.endOfDay(_value)\n }\n\n const diff = adapter.getDiff(rangeStop.value, rangeStart.value, 'days')\n const datesInRange = [rangeStart.value]\n\n for (let i = 1; i < diff; i++) {\n const nextDate = adapter.addDays(rangeStart.value, i)\n datesInRange.push(nextDate)\n }\n\n datesInRange.push(rangeStop.value)\n\n model.value = datesInRange\n } else {\n rangeStart.value = value\n rangeStop.value = undefined\n model.value = [rangeStart.value]\n }\n }\n\n function onMultipleClick (value: unknown) {\n const index = model.value.findIndex(selection => adapter.isSameDay(selection, value))\n\n if (index === -1) {\n model.value = [...model.value, value]\n } else {\n const value = [...model.value]\n value.splice(index, 1)\n model.value = value\n }\n }\n\n function onClick (value: unknown) {\n if (props.multiple === 'range') {\n onRangeClick(value)\n } else if (props.multiple) {\n onMultipleClick(value)\n } else {\n model.value = [value]\n }\n }\n\n useRender(() => (\n <div class=\"v-date-picker-month\">\n { props.showWeek && (\n <div key=\"weeks\" class=\"v-date-picker-month__weeks\">\n { !props.hideWeekdays && (\n <div key=\"hide-week-days\" class=\"v-date-picker-month__day\"> </div>\n )}\n { weekNumbers.value.map(week => (\n <div\n class={[\n 'v-date-picker-month__day',\n 'v-date-picker-month__day--adjacent',\n ]}\n >{ week }</div>\n ))}\n </div>\n )}\n\n <MaybeTransition name={ transition.value }>\n <div\n ref={ daysRef }\n key={ daysInMonth.value[0].date?.toString() }\n class=\"v-date-picker-month__days\"\n >\n { !props.hideWeekdays && adapter.getWeekdays(props.firstDayOfWeek).map(weekDay => (\n <div\n class={[\n 'v-date-picker-month__day',\n 'v-date-picker-month__weekday',\n ]}\n >{ weekDay }</div>\n ))}\n\n { daysInMonth.value.map((item, i) => {\n const slotProps = {\n props: {\n class: 'v-date-picker-month__day-btn',\n color: (item.isSelected || item.isToday) && !item.isDisabled\n ? props.color\n : undefined,\n disabled: item.isDisabled,\n icon: true,\n ripple: false,\n text: item.localized,\n variant: item.isDisabled\n ? item.isToday ? 'outlined' : 'text'\n : item.isToday && !item.isSelected ? 'outlined' : 'flat',\n onClick: () => onClick(item.date),\n },\n item,\n i,\n } as const\n\n if (atMax.value && !item.isSelected) {\n item.isDisabled = true\n }\n\n return (\n <div\n class={[\n 'v-date-picker-month__day',\n {\n 'v-date-picker-month__day--adjacent': item.isAdjacent,\n 'v-date-picker-month__day--hide-adjacent': item.isHidden,\n 'v-date-picker-month__day--selected': item.isSelected,\n 'v-date-picker-month__day--week-end': item.isWeekEnd,\n 'v-date-picker-month__day--week-start': item.isWeekStart,\n },\n ]}\n data-v-date={ !item.isDisabled ? item.isoDate : undefined }\n >\n { (props.showAdjacentMonths || !item.isAdjacent) && (\n slots.day?.(slotProps) ?? (<VBtn { ...slotProps.props } />)\n )}\n </div>\n )\n })}\n </div>\n </MaybeTransition>\n </div>\n ))\n },\n})\n\nexport type VDatePickerMonth = InstanceType<typeof VDatePickerMonth>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,IAAI,6BAEb;AAAA,SACSC,iBAAiB,EAAEC,WAAW;AAAA,SAC9BC,OAAO;AAAA,SACPC,eAAe,4CAExB;AACA,SAASC,QAAQ,EAAEC,GAAG,EAAEC,UAAU,EAAEC,KAAK,QAAQ,KAAK;AAAA,SAC7CC,gBAAgB,EAAEC,IAAI,EAAEC,YAAY,EAAEC,SAAS,gCAExD;AAaA,OAAO,MAAMC,yBAAyB,GAAGF,YAAY,CAAC;EACpDG,KAAK,EAAEC,MAAM;EACbC,YAAY,EAAEC,OAAO;EACrBC,QAAQ,EAAE,CAACD,OAAO,EAAEE,MAAM,EAAEJ,MAAM,CAAyD;EAC3FK,QAAQ,EAAEH,OAAO;EACjBI,UAAU,EAAE;IACVC,IAAI,EAAEP,MAAM;IACZQ,OAAO,EAAE;EACX,CAAC;EACDC,iBAAiB,EAAE;IACjBF,IAAI,EAAEP,MAAM;IACZQ,OAAO,EAAE;EACX,CAAC;EAED,GAAGb,IAAI,CAACT,iBAAiB,CAAC,CAAC,EAAE,CAAC,cAAc,CAAC;AAC/C,CAAC,EAAE,kBAAkB,CAAC;AAEtB,OAAO,MAAMwB,gBAAgB,GAAGhB,gBAAgB,CAAwB,CAAC,CAAC;EACxEiB,IAAI,EAAE,kBAAkB;EAExBC,KAAK,EAAEd,yBAAyB,CAAC,CAAC;EAElCe,KAAK,EAAE;IACL,mBAAmB,EAAGC,IAAa,IAAK,IAAI;IAC5C,cAAc,EAAGA,IAAY,IAAK,IAAI;IACtC,aAAa,EAAGA,IAAY,IAAK;EACnC,CAAC;EAEDC,KAAKA,CAAEH,KAAK,EAAAI,IAAA,EAAmB;IAAA,IAAjB;MAAEC,IAAI;MAAEC;IAAM,CAAC,GAAAF,IAAA;IAC3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976
976
|
"onUpdate:modelValue"?: ((date: unknown) => any) | undefined;
|
977
977
|
"onUpdate:month"?: ((date: number) => any) | undefined;
|
978
978
|
"onUpdate:year"?: ((date: number) => any) | undefined;
|
979
|
-
},
|
979
|
+
}, void, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
980
980
|
'update:modelValue': (date: unknown) => true;
|
981
981
|
'update:month': (date: number) => true;
|
982
982
|
'update:year': (date: number) => true;
|
@@ -1104,7 +1104,7 @@ declare const VDatePickerMonth: {
|
|
1104
1104
|
"onUpdate:modelValue"?: ((date: unknown) => any) | undefined;
|
1105
1105
|
"onUpdate:month"?: ((date: number) => any) | undefined;
|
1106
1106
|
"onUpdate:year"?: ((date: number) => any) | undefined;
|
1107
|
-
},
|
1107
|
+
}, {}, {}, {}, {}, {
|
1108
1108
|
transition: string;
|
1109
1109
|
disabled: boolean;
|
1110
1110
|
reverseTransition: string;
|
@@ -1167,7 +1167,7 @@ declare const VDatePickerMonth: {
|
|
1167
1167
|
"onUpdate:modelValue"?: ((date: unknown) => any) | undefined;
|
1168
1168
|
"onUpdate:month"?: ((date: number) => any) | undefined;
|
1169
1169
|
"onUpdate:year"?: ((date: number) => any) | undefined;
|
1170
|
-
},
|
1170
|
+
}, void, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
1171
1171
|
'update:modelValue': (date: unknown) => true;
|
1172
1172
|
'update:month': (date: number) => true;
|
1173
1173
|
'update:year': (date: number) => true;
|
@@ -28406,7 +28406,7 @@ declare const VDatePickerMonth: {
|
|
28406
28406
|
"onUpdate:modelValue"?: ((date: unknown) => any) | undefined;
|
28407
28407
|
"onUpdate:month"?: ((date: number) => any) | undefined;
|
28408
28408
|
"onUpdate:year"?: ((date: number) => any) | undefined;
|
28409
|
-
},
|
28409
|
+
}, void, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
28410
28410
|
'update:modelValue': (date: unknown) => true;
|
28411
28411
|
'update:month': (date: number) => true;
|
28412
28412
|
'update:year': (date: number) => true;
|
@@ -28534,7 +28534,7 @@ declare const VDatePickerMonth: {
|
|
28534
28534
|
"onUpdate:modelValue"?: ((date: unknown) => any) | undefined;
|
28535
28535
|
"onUpdate:month"?: ((date: number) => any) | undefined;
|
28536
28536
|
"onUpdate:year"?: ((date: number) => any) | undefined;
|
28537
|
-
},
|
28537
|
+
}, {}, {}, {}, {}, {
|
28538
28538
|
transition: string;
|
28539
28539
|
disabled: boolean;
|
28540
28540
|
reverseTransition: string;
|
@@ -28597,7 +28597,7 @@ declare const VDatePickerMonth: {
|
|
28597
28597
|
"onUpdate:modelValue"?: ((date: unknown) => any) | undefined;
|
28598
28598
|
"onUpdate:month"?: ((date: number) => any) | undefined;
|
28599
28599
|
"onUpdate:year"?: ((date: number) => any) | undefined;
|
28600
|
-
},
|
28600
|
+
}, void, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
28601
28601
|
'update:modelValue': (date: unknown) => true;
|
28602
28602
|
'update:month': (date: number) => true;
|
28603
28603
|
'update:year': (date: number) => true;
|
package/lib/entry-bundler.mjs
CHANGED
@@ -16,7 +16,7 @@ export const createVuetify = function () {
|
|
16
16
|
...options
|
17
17
|
});
|
18
18
|
};
|
19
|
-
export const version = "3.7.15-master.2025-03-
|
19
|
+
export const version = "3.7.15-master.2025-03-10";
|
20
20
|
createVuetify.version = version;
|
21
21
|
export { blueprints, components, directives };
|
22
22
|
export * from "./composables/index.mjs";
|
package/lib/framework.mjs
CHANGED
package/lib/index.d.mts
CHANGED
@@ -486,48 +486,41 @@ declare module 'vue' {
|
|
486
486
|
$children?: VNodeChild
|
487
487
|
}
|
488
488
|
export interface GlobalComponents {
|
489
|
-
VApp: typeof import('vuetify/components')['VApp']
|
490
489
|
VAlert: typeof import('vuetify/components')['VAlert']
|
491
490
|
VAlertTitle: typeof import('vuetify/components')['VAlertTitle']
|
492
|
-
|
493
|
-
VBannerActions: typeof import('vuetify/components')['VBannerActions']
|
494
|
-
VBannerText: typeof import('vuetify/components')['VBannerText']
|
491
|
+
VApp: typeof import('vuetify/components')['VApp']
|
495
492
|
VAppBar: typeof import('vuetify/components')['VAppBar']
|
496
493
|
VAppBarNavIcon: typeof import('vuetify/components')['VAppBarNavIcon']
|
497
494
|
VAppBarTitle: typeof import('vuetify/components')['VAppBarTitle']
|
498
495
|
VAvatar: typeof import('vuetify/components')['VAvatar']
|
496
|
+
VBadge: typeof import('vuetify/components')['VBadge']
|
497
|
+
VBanner: typeof import('vuetify/components')['VBanner']
|
498
|
+
VBannerActions: typeof import('vuetify/components')['VBannerActions']
|
499
|
+
VBannerText: typeof import('vuetify/components')['VBannerText']
|
500
|
+
VBottomNavigation: typeof import('vuetify/components')['VBottomNavigation']
|
499
501
|
VAutocomplete: typeof import('vuetify/components')['VAutocomplete']
|
502
|
+
VBtn: typeof import('vuetify/components')['VBtn']
|
500
503
|
VBottomSheet: typeof import('vuetify/components')['VBottomSheet']
|
501
504
|
VBtnGroup: typeof import('vuetify/components')['VBtnGroup']
|
502
|
-
|
503
|
-
|
505
|
+
VBtnToggle: typeof import('vuetify/components')['VBtnToggle']
|
506
|
+
VCarousel: typeof import('vuetify/components')['VCarousel']
|
507
|
+
VCarouselItem: typeof import('vuetify/components')['VCarouselItem']
|
504
508
|
VBreadcrumbs: typeof import('vuetify/components')['VBreadcrumbs']
|
505
509
|
VBreadcrumbsItem: typeof import('vuetify/components')['VBreadcrumbsItem']
|
506
510
|
VBreadcrumbsDivider: typeof import('vuetify/components')['VBreadcrumbsDivider']
|
507
|
-
VBtnToggle: typeof import('vuetify/components')['VBtnToggle']
|
508
|
-
VChip: typeof import('vuetify/components')['VChip']
|
509
|
-
VCheckbox: typeof import('vuetify/components')['VCheckbox']
|
510
|
-
VCheckboxBtn: typeof import('vuetify/components')['VCheckboxBtn']
|
511
|
-
VBtn: typeof import('vuetify/components')['VBtn']
|
512
511
|
VCard: typeof import('vuetify/components')['VCard']
|
513
512
|
VCardActions: typeof import('vuetify/components')['VCardActions']
|
514
513
|
VCardItem: typeof import('vuetify/components')['VCardItem']
|
515
514
|
VCardSubtitle: typeof import('vuetify/components')['VCardSubtitle']
|
516
515
|
VCardText: typeof import('vuetify/components')['VCardText']
|
517
516
|
VCardTitle: typeof import('vuetify/components')['VCardTitle']
|
518
|
-
VCode: typeof import('vuetify/components')['VCode']
|
519
|
-
VCarousel: typeof import('vuetify/components')['VCarousel']
|
520
|
-
VCarouselItem: typeof import('vuetify/components')['VCarouselItem']
|
521
517
|
VChipGroup: typeof import('vuetify/components')['VChipGroup']
|
518
|
+
VCheckbox: typeof import('vuetify/components')['VCheckbox']
|
519
|
+
VCheckboxBtn: typeof import('vuetify/components')['VCheckboxBtn']
|
520
|
+
VChip: typeof import('vuetify/components')['VChip']
|
522
521
|
VColorPicker: typeof import('vuetify/components')['VColorPicker']
|
523
|
-
VDatePicker: typeof import('vuetify/components')['VDatePicker']
|
524
|
-
VDatePickerControls: typeof import('vuetify/components')['VDatePickerControls']
|
525
|
-
VDatePickerHeader: typeof import('vuetify/components')['VDatePickerHeader']
|
526
|
-
VDatePickerMonth: typeof import('vuetify/components')['VDatePickerMonth']
|
527
|
-
VDatePickerMonths: typeof import('vuetify/components')['VDatePickerMonths']
|
528
|
-
VDatePickerYears: typeof import('vuetify/components')['VDatePickerYears']
|
529
|
-
VCombobox: typeof import('vuetify/components')['VCombobox']
|
530
522
|
VCounter: typeof import('vuetify/components')['VCounter']
|
523
|
+
VCode: typeof import('vuetify/components')['VCode']
|
531
524
|
VDataTable: typeof import('vuetify/components')['VDataTable']
|
532
525
|
VDataTableHeaders: typeof import('vuetify/components')['VDataTableHeaders']
|
533
526
|
VDataTableFooter: typeof import('vuetify/components')['VDataTableFooter']
|
@@ -535,30 +528,37 @@ declare module 'vue' {
|
|
535
528
|
VDataTableRow: typeof import('vuetify/components')['VDataTableRow']
|
536
529
|
VDataTableVirtual: typeof import('vuetify/components')['VDataTableVirtual']
|
537
530
|
VDataTableServer: typeof import('vuetify/components')['VDataTableServer']
|
531
|
+
VDatePicker: typeof import('vuetify/components')['VDatePicker']
|
532
|
+
VDatePickerControls: typeof import('vuetify/components')['VDatePickerControls']
|
533
|
+
VDatePickerHeader: typeof import('vuetify/components')['VDatePickerHeader']
|
534
|
+
VDatePickerMonth: typeof import('vuetify/components')['VDatePickerMonth']
|
535
|
+
VDatePickerMonths: typeof import('vuetify/components')['VDatePickerMonths']
|
536
|
+
VDatePickerYears: typeof import('vuetify/components')['VDatePickerYears']
|
537
|
+
VCombobox: typeof import('vuetify/components')['VCombobox']
|
538
538
|
VEmptyState: typeof import('vuetify/components')['VEmptyState']
|
539
539
|
VDialog: typeof import('vuetify/components')['VDialog']
|
540
540
|
VFab: typeof import('vuetify/components')['VFab']
|
541
|
+
VDivider: typeof import('vuetify/components')['VDivider']
|
541
542
|
VExpansionPanels: typeof import('vuetify/components')['VExpansionPanels']
|
542
543
|
VExpansionPanel: typeof import('vuetify/components')['VExpansionPanel']
|
543
544
|
VExpansionPanelText: typeof import('vuetify/components')['VExpansionPanelText']
|
544
545
|
VExpansionPanelTitle: typeof import('vuetify/components')['VExpansionPanelTitle']
|
545
|
-
|
546
|
+
VFileInput: typeof import('vuetify/components')['VFileInput']
|
546
547
|
VField: typeof import('vuetify/components')['VField']
|
547
548
|
VFieldLabel: typeof import('vuetify/components')['VFieldLabel']
|
548
549
|
VFooter: typeof import('vuetify/components')['VFooter']
|
549
|
-
VImg: typeof import('vuetify/components')['VImg']
|
550
|
-
VInput: typeof import('vuetify/components')['VInput']
|
551
|
-
VFileInput: typeof import('vuetify/components')['VFileInput']
|
552
550
|
VIcon: typeof import('vuetify/components')['VIcon']
|
553
551
|
VComponentIcon: typeof import('vuetify/components')['VComponentIcon']
|
554
552
|
VSvgIcon: typeof import('vuetify/components')['VSvgIcon']
|
555
553
|
VLigatureIcon: typeof import('vuetify/components')['VLigatureIcon']
|
556
554
|
VClassIcon: typeof import('vuetify/components')['VClassIcon']
|
555
|
+
VImg: typeof import('vuetify/components')['VImg']
|
556
|
+
VInput: typeof import('vuetify/components')['VInput']
|
557
|
+
VInfiniteScroll: typeof import('vuetify/components')['VInfiniteScroll']
|
557
558
|
VItemGroup: typeof import('vuetify/components')['VItemGroup']
|
558
559
|
VItem: typeof import('vuetify/components')['VItem']
|
559
|
-
VLabel: typeof import('vuetify/components')['VLabel']
|
560
|
-
VInfiniteScroll: typeof import('vuetify/components')['VInfiniteScroll']
|
561
560
|
VKbd: typeof import('vuetify/components')['VKbd']
|
561
|
+
VMain: typeof import('vuetify/components')['VMain']
|
562
562
|
VList: typeof import('vuetify/components')['VList']
|
563
563
|
VListGroup: typeof import('vuetify/components')['VListGroup']
|
564
564
|
VListImg: typeof import('vuetify/components')['VListImg']
|
@@ -568,51 +568,51 @@ declare module 'vue' {
|
|
568
568
|
VListItemSubtitle: typeof import('vuetify/components')['VListItemSubtitle']
|
569
569
|
VListItemTitle: typeof import('vuetify/components')['VListItemTitle']
|
570
570
|
VListSubheader: typeof import('vuetify/components')['VListSubheader']
|
571
|
-
|
571
|
+
VLabel: typeof import('vuetify/components')['VLabel']
|
572
572
|
VMessages: typeof import('vuetify/components')['VMessages']
|
573
|
-
VMenu: typeof import('vuetify/components')['VMenu']
|
574
573
|
VNavigationDrawer: typeof import('vuetify/components')['VNavigationDrawer']
|
575
|
-
VOtpInput: typeof import('vuetify/components')['VOtpInput']
|
576
|
-
VOverlay: typeof import('vuetify/components')['VOverlay']
|
577
|
-
VProgressCircular: typeof import('vuetify/components')['VProgressCircular']
|
578
574
|
VPagination: typeof import('vuetify/components')['VPagination']
|
575
|
+
VMenu: typeof import('vuetify/components')['VMenu']
|
579
576
|
VProgressLinear: typeof import('vuetify/components')['VProgressLinear']
|
577
|
+
VOtpInput: typeof import('vuetify/components')['VOtpInput']
|
578
|
+
VOverlay: typeof import('vuetify/components')['VOverlay']
|
580
579
|
VRadioGroup: typeof import('vuetify/components')['VRadioGroup']
|
580
|
+
VProgressCircular: typeof import('vuetify/components')['VProgressCircular']
|
581
|
+
VRating: typeof import('vuetify/components')['VRating']
|
581
582
|
VSelectionControl: typeof import('vuetify/components')['VSelectionControl']
|
582
583
|
VSelect: typeof import('vuetify/components')['VSelect']
|
583
|
-
VRating: typeof import('vuetify/components')['VRating']
|
584
|
-
VSelectionControlGroup: typeof import('vuetify/components')['VSelectionControlGroup']
|
585
|
-
VSkeletonLoader: typeof import('vuetify/components')['VSkeletonLoader']
|
586
584
|
VSheet: typeof import('vuetify/components')['VSheet']
|
587
|
-
|
585
|
+
VSkeletonLoader: typeof import('vuetify/components')['VSkeletonLoader']
|
586
|
+
VSelectionControlGroup: typeof import('vuetify/components')['VSelectionControlGroup']
|
588
587
|
VSnackbar: typeof import('vuetify/components')['VSnackbar']
|
588
|
+
VSlider: typeof import('vuetify/components')['VSlider']
|
589
|
+
VSlideGroup: typeof import('vuetify/components')['VSlideGroup']
|
590
|
+
VSlideGroupItem: typeof import('vuetify/components')['VSlideGroupItem']
|
591
|
+
VSystemBar: typeof import('vuetify/components')['VSystemBar']
|
592
|
+
VSwitch: typeof import('vuetify/components')['VSwitch']
|
589
593
|
VStepper: typeof import('vuetify/components')['VStepper']
|
590
594
|
VStepperActions: typeof import('vuetify/components')['VStepperActions']
|
591
595
|
VStepperHeader: typeof import('vuetify/components')['VStepperHeader']
|
592
596
|
VStepperItem: typeof import('vuetify/components')['VStepperItem']
|
593
597
|
VStepperWindow: typeof import('vuetify/components')['VStepperWindow']
|
594
598
|
VStepperWindowItem: typeof import('vuetify/components')['VStepperWindowItem']
|
595
|
-
VTextField: typeof import('vuetify/components')['VTextField']
|
596
|
-
VSlideGroup: typeof import('vuetify/components')['VSlideGroup']
|
597
|
-
VSlideGroupItem: typeof import('vuetify/components')['VSlideGroupItem']
|
598
|
-
VSwitch: typeof import('vuetify/components')['VSwitch']
|
599
|
-
VTable: typeof import('vuetify/components')['VTable']
|
600
|
-
VTextarea: typeof import('vuetify/components')['VTextarea']
|
601
599
|
VTab: typeof import('vuetify/components')['VTab']
|
602
600
|
VTabs: typeof import('vuetify/components')['VTabs']
|
603
601
|
VTabsWindow: typeof import('vuetify/components')['VTabsWindow']
|
604
602
|
VTabsWindowItem: typeof import('vuetify/components')['VTabsWindowItem']
|
605
|
-
|
606
|
-
|
607
|
-
|
603
|
+
VTextField: typeof import('vuetify/components')['VTextField']
|
604
|
+
VTable: typeof import('vuetify/components')['VTable']
|
605
|
+
VTextarea: typeof import('vuetify/components')['VTextarea']
|
606
|
+
VTooltip: typeof import('vuetify/components')['VTooltip']
|
608
607
|
VTimeline: typeof import('vuetify/components')['VTimeline']
|
609
608
|
VTimelineItem: typeof import('vuetify/components')['VTimelineItem']
|
610
|
-
VSystemBar: typeof import('vuetify/components')['VSystemBar']
|
611
609
|
VWindow: typeof import('vuetify/components')['VWindow']
|
612
610
|
VWindowItem: typeof import('vuetify/components')['VWindowItem']
|
613
|
-
|
614
|
-
|
611
|
+
VToolbar: typeof import('vuetify/components')['VToolbar']
|
612
|
+
VToolbarTitle: typeof import('vuetify/components')['VToolbarTitle']
|
613
|
+
VToolbarItems: typeof import('vuetify/components')['VToolbarItems']
|
615
614
|
VDataIterator: typeof import('vuetify/components')['VDataIterator']
|
615
|
+
VConfirmEdit: typeof import('vuetify/components')['VConfirmEdit']
|
616
616
|
VDefaultsProvider: typeof import('vuetify/components')['VDefaultsProvider']
|
617
617
|
VForm: typeof import('vuetify/components')['VForm']
|
618
618
|
VContainer: typeof import('vuetify/components')['VContainer']
|
@@ -622,8 +622,8 @@ declare module 'vue' {
|
|
622
622
|
VHover: typeof import('vuetify/components')['VHover']
|
623
623
|
VLayout: typeof import('vuetify/components')['VLayout']
|
624
624
|
VLayoutItem: typeof import('vuetify/components')['VLayoutItem']
|
625
|
-
VLazy: typeof import('vuetify/components')['VLazy']
|
626
625
|
VLocaleProvider: typeof import('vuetify/components')['VLocaleProvider']
|
626
|
+
VLazy: typeof import('vuetify/components')['VLazy']
|
627
627
|
VNoSsr: typeof import('vuetify/components')['VNoSsr']
|
628
628
|
VParallax: typeof import('vuetify/components')['VParallax']
|
629
629
|
VRadio: typeof import('vuetify/components')['VRadio']
|
@@ -633,6 +633,7 @@ declare module 'vue' {
|
|
633
633
|
VSpeedDial: typeof import('vuetify/components')['VSpeedDial']
|
634
634
|
VThemeProvider: typeof import('vuetify/components')['VThemeProvider']
|
635
635
|
VValidation: typeof import('vuetify/components')['VValidation']
|
636
|
+
VVirtualScroll: typeof import('vuetify/components')['VVirtualScroll']
|
636
637
|
VFabTransition: typeof import('vuetify/components')['VFabTransition']
|
637
638
|
VDialogBottomTransition: typeof import('vuetify/components')['VDialogBottomTransition']
|
638
639
|
VDialogTopTransition: typeof import('vuetify/components')['VDialogTopTransition']
|
@@ -649,7 +650,6 @@ declare module 'vue' {
|
|
649
650
|
VExpandTransition: typeof import('vuetify/components')['VExpandTransition']
|
650
651
|
VExpandXTransition: typeof import('vuetify/components')['VExpandXTransition']
|
651
652
|
VDialogTransition: typeof import('vuetify/components')['VDialogTransition']
|
652
|
-
VVirtualScroll: typeof import('vuetify/components')['VVirtualScroll']
|
653
653
|
VCalendar: typeof import('vuetify/labs/components')['VCalendar']
|
654
654
|
VCalendarDay: typeof import('vuetify/labs/components')['VCalendarDay']
|
655
655
|
VCalendarHeader: typeof import('vuetify/labs/components')['VCalendarHeader']
|
@@ -658,18 +658,18 @@ declare module 'vue' {
|
|
658
658
|
VCalendarMonthDay: typeof import('vuetify/labs/components')['VCalendarMonthDay']
|
659
659
|
VFileUpload: typeof import('vuetify/labs/components')['VFileUpload']
|
660
660
|
VFileUploadItem: typeof import('vuetify/labs/components')['VFileUploadItem']
|
661
|
-
VNumberInput: typeof import('vuetify/labs/components')['VNumberInput']
|
662
661
|
VPicker: typeof import('vuetify/labs/components')['VPicker']
|
663
662
|
VPickerTitle: typeof import('vuetify/labs/components')['VPickerTitle']
|
664
|
-
VTimePicker: typeof import('vuetify/labs/components')['VTimePicker']
|
665
|
-
VTimePickerClock: typeof import('vuetify/labs/components')['VTimePickerClock']
|
666
|
-
VTimePickerControls: typeof import('vuetify/labs/components')['VTimePickerControls']
|
667
663
|
VStepperVertical: typeof import('vuetify/labs/components')['VStepperVertical']
|
668
664
|
VStepperVerticalItem: typeof import('vuetify/labs/components')['VStepperVerticalItem']
|
669
665
|
VStepperVerticalActions: typeof import('vuetify/labs/components')['VStepperVerticalActions']
|
670
666
|
VTreeview: typeof import('vuetify/labs/components')['VTreeview']
|
671
667
|
VTreeviewItem: typeof import('vuetify/labs/components')['VTreeviewItem']
|
672
668
|
VTreeviewGroup: typeof import('vuetify/labs/components')['VTreeviewGroup']
|
669
|
+
VNumberInput: typeof import('vuetify/labs/components')['VNumberInput']
|
670
|
+
VTimePicker: typeof import('vuetify/labs/components')['VTimePicker']
|
671
|
+
VTimePickerClock: typeof import('vuetify/labs/components')['VTimePickerClock']
|
672
|
+
VTimePickerControls: typeof import('vuetify/labs/components')['VTimePickerControls']
|
673
673
|
VDateInput: typeof import('vuetify/labs/components')['VDateInput']
|
674
674
|
VPullToRefresh: typeof import('vuetify/labs/components')['VPullToRefresh']
|
675
675
|
VSnackbarQueue: typeof import('vuetify/labs/components')['VSnackbarQueue']
|
@@ -25,8 +25,8 @@ export const makeVDateInputProps = propsFactory({
|
|
25
25
|
prependIcon: '$calendar'
|
26
26
|
}),
|
27
27
|
...omit(makeVDatePickerProps({
|
28
|
-
|
29
|
-
|
28
|
+
hideHeader: true,
|
29
|
+
showAdjacentMonths: true
|
30
30
|
}), ['active', 'location', 'rounded'])
|
31
31
|
}, 'VDateInput');
|
32
32
|
export const VDateInput = genericComponent()({
|
@@ -110,6 +110,7 @@ export const VDateInput = genericComponent()({
|
|
110
110
|
"onUpdate:modelValue": $event => menu.value = $event,
|
111
111
|
"activator": "parent",
|
112
112
|
"min-width": "0",
|
113
|
+
"eager": isFocused.value,
|
113
114
|
"location": props.location,
|
114
115
|
"closeOnContentClick": false,
|
115
116
|
"openOnClick": false
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"VDateInput.mjs","names":["makeVConfirmEditProps","VConfirmEdit","makeVDatePickerProps","VDatePicker","VMenu","makeVTextFieldProps","VTextField","useDate","makeFocusProps","useFocus","forwardRefs","useLocale","useProxiedModel","computed","ref","shallowRef","genericComponent","omit","propsFactory","useRender","wrapInArray","makeVDateInputProps","hideActions","Boolean","location","type","String","default","placeholder","prependIcon","weeksInMonth","hideHeader","VDateInput","name","props","emits","val","setup","_ref","slots","t","adapter","isFocused","focus","blur","model","multiple","Array","isArray","map","item","toJsDate","date","menu","vDateInputRef","display","value","length","start","end","isValid","format","isInteractive","disabled","readonly","onKeydown","e","key","target","onClick","preventDefault","stopPropagation","onSave","onUpdateModel","confirmEditProps","filterProps","datePickerProps","textFieldProps","_createVNode","_mergeProps","class","style","undefined","_Fragment","$event","onCancel","_ref2","actions","proxyModel","save","cancel","isPristine"],"sources":["../../../src/labs/VDateInput/VDateInput.tsx"],"sourcesContent":["// Components\nimport { makeVConfirmEditProps, VConfirmEdit } from '@/components/VConfirmEdit/VConfirmEdit'\nimport { makeVDatePickerProps, VDatePicker } from '@/components/VDatePicker/VDatePicker'\nimport { VMenu } from '@/components/VMenu/VMenu'\nimport { makeVTextFieldProps, VTextField } from '@/components/VTextField/VTextField'\n\n// Composables\nimport { useDate } from '@/composables/date'\nimport { makeFocusProps, useFocus } from '@/composables/focus'\nimport { forwardRefs } from '@/composables/forwardRefs'\nimport { useLocale } from '@/composables/locale'\nimport { useProxiedModel } from '@/composables/proxiedModel'\n\n// Utilities\nimport { computed, ref, shallowRef } from 'vue'\nimport { genericComponent, omit, propsFactory, useRender, wrapInArray } from '@/util'\n\n// Types\nimport type { PropType } from 'vue'\nimport type { StrategyProps } from '@/components/VOverlay/locationStrategies'\nimport type { VTextFieldSlots } from '@/components/VTextField/VTextField'\n\n// Types\nexport type VDateInputActionsSlot = {\n save: () => void\n cancel: () => void\n isPristine: boolean\n}\n\nexport type VDateInputSlots = Omit<VTextFieldSlots, 'default'> & {\n actions: VDateInputActionsSlot\n default: never\n}\n\nexport const makeVDateInputProps = propsFactory({\n hideActions: Boolean,\n location: {\n type: String as PropType<StrategyProps['location']>,\n default: 'bottom start',\n },\n ...makeFocusProps(),\n ...makeVConfirmEditProps(),\n ...makeVTextFieldProps({\n placeholder: 'mm/dd/yyyy',\n prependIcon: '$calendar',\n }),\n ...omit(makeVDatePickerProps({\n weeksInMonth: 'dynamic' as const,\n hideHeader: true,\n }), ['active', 'location', 'rounded']),\n}, 'VDateInput')\n\nexport const VDateInput = genericComponent<VDateInputSlots>()({\n name: 'VDateInput',\n\n props: makeVDateInputProps(),\n\n emits: {\n 'update:modelValue': (val: string) => true,\n },\n\n setup (props, { slots }) {\n const { t } = useLocale()\n const adapter = useDate()\n const { isFocused, focus, blur } = useFocus(props)\n const model = useProxiedModel(\n props,\n 'modelValue',\n props.multiple ? [] : null,\n val => Array.isArray(val) ? val.map(item => adapter.toJsDate(item)) : val ? adapter.toJsDate(val) : val,\n val => Array.isArray(val) ? val.map(item => adapter.date(item)) : val ? adapter.date(val) : val\n )\n\n const menu = shallowRef(false)\n const vDateInputRef = ref()\n\n const display = computed(() => {\n const value = wrapInArray(model.value)\n\n if (!value.length) return null\n\n if (props.multiple === true) {\n return t('$vuetify.datePicker.itemsSelected', value.length)\n }\n\n if (props.multiple === 'range') {\n const start = value[0]\n const end = value[value.length - 1]\n\n return adapter.isValid(start) && adapter.isValid(end)\n ? `${adapter.format(adapter.date(start), 'keyboardDate')} - ${adapter.format(adapter.date(end), 'keyboardDate')}`\n : ''\n }\n\n return adapter.isValid(model.value) ? adapter.format(adapter.date(model.value), 'keyboardDate') : ''\n })\n\n const isInteractive = computed(() => !props.disabled && !props.readonly)\n\n function onKeydown (e: KeyboardEvent) {\n if (e.key !== 'Enter') return\n\n if (!menu.value || !isFocused.value) {\n menu.value = true\n\n return\n }\n\n const target = e.target as HTMLInputElement\n\n model.value = target.value\n }\n\n function onClick (e: MouseEvent) {\n e.preventDefault()\n e.stopPropagation()\n\n menu.value = true\n }\n\n function onSave () {\n menu.value = false\n }\n\n function onUpdateModel (value: string) {\n if (value != null) return\n\n model.value = null\n }\n\n useRender(() => {\n const confirmEditProps = VConfirmEdit.filterProps(props)\n const datePickerProps = VDatePicker.filterProps(omit(props, ['active', 'location', 'rounded']))\n const textFieldProps = VTextField.filterProps(props)\n\n return (\n <VTextField\n ref={ vDateInputRef }\n { ...textFieldProps }\n class={ props.class }\n style={ props.style }\n modelValue={ display.value }\n onKeydown={ isInteractive.value ? onKeydown : undefined }\n focused={ menu.value || isFocused.value }\n onFocus={ focus }\n onBlur={ blur }\n onClick:control={ isInteractive.value ? onClick : undefined }\n onClick:prepend={ isInteractive.value ? onClick : undefined }\n onUpdate:modelValue={ onUpdateModel }\n >\n {{\n ...slots,\n default: () => (\n <>\n <VMenu\n v-model={ menu.value }\n activator=\"parent\"\n min-width=\"0\"\n location={ props.location }\n closeOnContentClick={ false }\n openOnClick={ false }\n >\n <VConfirmEdit\n { ...confirmEditProps }\n v-model={ model.value }\n onSave={ onSave }\n onCancel={ () => menu.value = false }\n >\n {{\n default: ({ actions, model: proxyModel, save, cancel, isPristine }) => {\n return (\n <VDatePicker\n { ...datePickerProps }\n modelValue={ props.hideActions ? model.value : proxyModel.value }\n onUpdate:modelValue={ val => {\n if (!props.hideActions) {\n proxyModel.value = val\n } else {\n model.value = val\n\n if (!props.multiple) menu.value = false\n }\n }}\n onMousedown={ (e: MouseEvent) => e.preventDefault() }\n >\n {{\n actions: !props.hideActions ? () => slots.actions?.({ save, cancel, isPristine }) ?? actions() : undefined,\n }}\n </VDatePicker>\n )\n },\n }}\n </VConfirmEdit>\n </VMenu>\n\n { slots.default?.() }\n </>\n ),\n }}\n </VTextField>\n )\n })\n\n return forwardRefs({}, vDateInputRef)\n },\n})\n\nexport type VDateInput = InstanceType<typeof VDateInput>\n"],"mappings":";AAAA;AAAA,SACSA,qBAAqB,EAAEC,YAAY;AAAA,SACnCC,oBAAoB,EAAEC,WA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KAAK,CAACW,KAAK,GAAA4B,MAAA;YAAA,UACZZ,MAAM;YAAA,YACJa,CAAA,KAAMhC,IAAI,CAACG,KAAK,GAAG;UAAK;YAGjC7B,OAAO,EAAE2D,KAAA,IAA8D;cAAA,IAA7D;gBAAEC,OAAO;gBAAE1C,KAAK,EAAE2C,UAAU;gBAAEC,IAAI;gBAAEC,MAAM;gBAAEC;cAAW,CAAC,GAAAL,KAAA;cAChE,OAAAR,YAAA,CAAA3E,WAAA,EAAA4E,WAAA,CAESH,eAAe;gBAAA,cACP1C,KAAK,CAACZ,WAAW,GAAGuB,KAAK,CAACW,KAAK,GAAGgC,UAAU,CAAChC,KAAK;gBAAA,uBACzCpB,GAAG,IAAI;kBAC3B,IAAI,CAACF,KAAK,CAACZ,WAAW,EAAE;oBACtBkE,UAAU,CAAChC,KAAK,GAAGpB,GAAG;kBACxB,CAAC,MAAM;oBACLS,KAAK,CAACW,KAAK,GAAGpB,GAAG;oBAEjB,IAAI,CAACF,KAAK,CAACY,QAAQ,EAAEO,IAAI,CAACG,KAAK,GAAG,KAAK;kBACzC;gBACF,CAAC;gBAAA,eACcU,CAAa,IAAKA,CAAC,CAACI,cAAc,CAAC;cAAC;gBAGjDiB,OAAO,EAAE,CAACrD,KAAK,CAACZ,WAAW,GAAG,MAAMiB,KAAK,CAACgD,OAAO,GAAG;kBAAEE,IAAI;kBAAEC,MAAM;kBAAEC;gBAAW,CAAC,CAAC,IAAIJ,OAAO,CAAC,CAAC,GAAGL;cAAS;YAIlH;UAAC;QAAA,IAKL3C,KAAK,CAACZ,OAAO,GAAG,CAAC;MAEtB;IAIT,CAAC,CAAC;IAEF,OAAOjB,WAAW,CAAC,CAAC,CAAC,EAAE4C,aAAa,CAAC;EACvC;AACF,CAAC,CAAC","ignoreList":[]}
|
1
|
+
{"version":3,"file":"VDateInput.mjs","names":["makeVConfirmEditProps","VConfirmEdit","makeVDatePickerProps","VDatePicker","VMenu","makeVTextFieldProps","VTextField","useDate","makeFocusProps","useFocus","forwardRefs","useLocale","useProxiedModel","computed","ref","shallowRef","genericComponent","omit","propsFactory","useRender","wrapInArray","makeVDateInputProps","hideActions","Boolean","location","type","String","default","placeholder","prependIcon","hideHeader","showAdjacentMonths","VDateInput","name","props","emits","val","setup","_ref","slots","t","adapter","isFocused","focus","blur","model","multiple","Array","isArray","map","item","toJsDate","date","menu","vDateInputRef","display","value","length","start","end","isValid","format","isInteractive","disabled","readonly","onKeydown","e","key","target","onClick","preventDefault","stopPropagation","onSave","onUpdateModel","confirmEditProps","filterProps","datePickerProps","textFieldProps","_createVNode","_mergeProps","class","style","undefined","_Fragment","$event","onCancel","_ref2","actions","proxyModel","save","cancel","isPristine"],"sources":["../../../src/labs/VDateInput/VDateInput.tsx"],"sourcesContent":["// Components\nimport { makeVConfirmEditProps, VConfirmEdit } from '@/components/VConfirmEdit/VConfirmEdit'\nimport { makeVDatePickerProps, VDatePicker } from '@/components/VDatePicker/VDatePicker'\nimport { VMenu } from '@/components/VMenu/VMenu'\nimport { makeVTextFieldProps, VTextField } from '@/components/VTextField/VTextField'\n\n// Composables\nimport { useDate } from '@/composables/date'\nimport { makeFocusProps, useFocus } from '@/composables/focus'\nimport { forwardRefs } from '@/composables/forwardRefs'\nimport { useLocale } from '@/composables/locale'\nimport { useProxiedModel } from '@/composables/proxiedModel'\n\n// Utilities\nimport { computed, ref, shallowRef } from 'vue'\nimport { genericComponent, omit, propsFactory, useRender, wrapInArray } from '@/util'\n\n// Types\nimport type { PropType } from 'vue'\nimport type { StrategyProps } from '@/components/VOverlay/locationStrategies'\nimport type { VTextFieldSlots } from '@/components/VTextField/VTextField'\n\n// Types\nexport type VDateInputActionsSlot = {\n save: () => void\n cancel: () => void\n isPristine: boolean\n}\n\nexport type VDateInputSlots = Omit<VTextFieldSlots, 'default'> & {\n actions: VDateInputActionsSlot\n default: never\n}\n\nexport const makeVDateInputProps = propsFactory({\n hideActions: Boolean,\n location: {\n type: String as PropType<StrategyProps['location']>,\n default: 'bottom start',\n },\n ...makeFocusProps(),\n ...makeVConfirmEditProps(),\n ...makeVTextFieldProps({\n placeholder: 'mm/dd/yyyy',\n prependIcon: '$calendar',\n }),\n ...omit(makeVDatePickerProps({\n hideHeader: true,\n showAdjacentMonths: true,\n }), ['active', 'location', 'rounded']),\n}, 'VDateInput')\n\nexport const VDateInput = genericComponent<VDateInputSlots>()({\n name: 'VDateInput',\n\n props: makeVDateInputProps(),\n\n emits: {\n 'update:modelValue': (val: string) => true,\n },\n\n setup (props, { slots }) {\n const { t } = useLocale()\n const adapter = useDate()\n const { isFocused, focus, blur } = useFocus(props)\n const model = useProxiedModel(\n props,\n 'modelValue',\n props.multiple ? [] : null,\n val => Array.isArray(val) ? val.map(item => adapter.toJsDate(item)) : val ? adapter.toJsDate(val) : val,\n val => Array.isArray(val) ? val.map(item => adapter.date(item)) : val ? adapter.date(val) : val\n )\n\n const menu = shallowRef(false)\n const vDateInputRef = ref()\n\n const display = computed(() => {\n const value = wrapInArray(model.value)\n\n if (!value.length) return null\n\n if (props.multiple === true) {\n return t('$vuetify.datePicker.itemsSelected', value.length)\n }\n\n if (props.multiple === 'range') {\n const start = value[0]\n const end = value[value.length - 1]\n\n return adapter.isValid(start) && adapter.isValid(end)\n ? `${adapter.format(adapter.date(start), 'keyboardDate')} - ${adapter.format(adapter.date(end), 'keyboardDate')}`\n : ''\n }\n\n return adapter.isValid(model.value) ? adapter.format(adapter.date(model.value), 'keyboardDate') : ''\n })\n\n const isInteractive = computed(() => !props.disabled && !props.readonly)\n\n function onKeydown (e: KeyboardEvent) {\n if (e.key !== 'Enter') return\n\n if (!menu.value || !isFocused.value) {\n menu.value = true\n\n return\n }\n\n const target = e.target as HTMLInputElement\n\n model.value = target.value\n }\n\n function onClick (e: MouseEvent) {\n e.preventDefault()\n e.stopPropagation()\n\n menu.value = true\n }\n\n function onSave () {\n menu.value = false\n }\n\n function onUpdateModel (value: string) {\n if (value != null) return\n\n model.value = null\n }\n\n useRender(() => {\n const confirmEditProps = VConfirmEdit.filterProps(props)\n const datePickerProps = VDatePicker.filterProps(omit(props, ['active', 'location', 'rounded']))\n const textFieldProps = VTextField.filterProps(props)\n\n return (\n <VTextField\n ref={ vDateInputRef }\n { ...textFieldProps }\n class={ props.class }\n style={ props.style }\n modelValue={ display.value }\n onKeydown={ isInteractive.value ? onKeydown : undefined }\n focused={ menu.value || isFocused.value }\n onFocus={ focus }\n onBlur={ blur }\n onClick:control={ isInteractive.value ? onClick : undefined }\n onClick:prepend={ isInteractive.value ? onClick : undefined }\n onUpdate:modelValue={ onUpdateModel }\n >\n {{\n ...slots,\n default: () => (\n <>\n <VMenu\n v-model={ menu.value }\n activator=\"parent\"\n min-width=\"0\"\n eager={ isFocused.value }\n location={ props.location }\n closeOnContentClick={ false }\n openOnClick={ false }\n >\n <VConfirmEdit\n { ...confirmEditProps }\n v-model={ model.value }\n onSave={ onSave }\n onCancel={ () => menu.value = false }\n >\n {{\n default: ({ actions, model: proxyModel, save, cancel, isPristine }) => {\n return (\n <VDatePicker\n { ...datePickerProps }\n modelValue={ props.hideActions ? model.value : proxyModel.value }\n onUpdate:modelValue={ val => {\n if (!props.hideActions) {\n proxyModel.value = val\n } else {\n model.value = val\n\n if (!props.multiple) menu.value = false\n }\n }}\n onMousedown={ (e: MouseEvent) => e.preventDefault() }\n >\n {{\n actions: !props.hideActions ? () => slots.actions?.({ save, cancel, isPristine }) ?? actions() : undefined,\n }}\n </VDatePicker>\n )\n },\n }}\n </VConfirmEdit>\n </VMenu>\n\n { slots.default?.() }\n </>\n ),\n }}\n </VTextField>\n )\n })\n\n return forwardRefs({}, vDateInputRef)\n },\n})\n\nexport type VDateInput = InstanceType<typeof VDateInput>\n"],"mappings":";AAAA;AAAA,SACSA,qBAAqB,EAAEC,YAAY;AAAA,SACnCC,oBAAoB,EAAEC,WAAW;AAAA,SACjCC,KAAK;AAAA,SACLC,mBAAmB,EAAEC,UAAU,sDAExC;AAAA,SACSC,OAAO;AAAA,SACPC,cAAc,EAAEC,QAAQ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,IAAI,CAACG,KAAK,GAAG;UAAK;YAGjC7B,OAAO,EAAE2D,KAAA,IAA8D;cAAA,IAA7D;gBAAEC,OAAO;gBAAE1C,KAAK,EAAE2C,UAAU;gBAAEC,IAAI;gBAAEC,MAAM;gBAAEC;cAAW,CAAC,GAAAL,KAAA;cAChE,OAAAR,YAAA,CAAA3E,WAAA,EAAA4E,WAAA,CAESH,eAAe;gBAAA,cACP1C,KAAK,CAACZ,WAAW,GAAGuB,KAAK,CAACW,KAAK,GAAGgC,UAAU,CAAChC,KAAK;gBAAA,uBACzCpB,GAAG,IAAI;kBAC3B,IAAI,CAACF,KAAK,CAACZ,WAAW,EAAE;oBACtBkE,UAAU,CAAChC,KAAK,GAAGpB,GAAG;kBACxB,CAAC,MAAM;oBACLS,KAAK,CAACW,KAAK,GAAGpB,GAAG;oBAEjB,IAAI,CAACF,KAAK,CAACY,QAAQ,EAAEO,IAAI,CAACG,KAAK,GAAG,KAAK;kBACzC;gBACF,CAAC;gBAAA,eACcU,CAAa,IAAKA,CAAC,CAACI,cAAc,CAAC;cAAC;gBAGjDiB,OAAO,EAAE,CAACrD,KAAK,CAACZ,WAAW,GAAG,MAAMiB,KAAK,CAACgD,OAAO,GAAG;kBAAEE,IAAI;kBAAEC,MAAM;kBAAEC;gBAAW,CAAC,CAAC,IAAIJ,OAAO,CAAC,CAAC,GAAGL;cAAS;YAIlH;UAAC;QAAA,IAKL3C,KAAK,CAACZ,OAAO,GAAG,CAAC;MAEtB;IAIT,CAAC,CAAC;IAEF,OAAOjB,WAAW,CAAC,CAAC,CAAC,EAAE4C,aAAa,CAAC;EACvC;AACF,CAAC,CAAC","ignoreList":[]}
|
@@ -1050,7 +1050,10 @@ declare const VDateInput: {
|
|
1050
1050
|
type: PropType<"month" | "months" | "year">;
|
1051
1051
|
default: string;
|
1052
1052
|
};
|
1053
|
-
showAdjacentMonths:
|
1053
|
+
showAdjacentMonths: {
|
1054
|
+
type: PropType<boolean>;
|
1055
|
+
default: boolean;
|
1056
|
+
};
|
1054
1057
|
weekdays: {
|
1055
1058
|
type: {
|
1056
1059
|
(arrayLength: number): number[];
|
@@ -1070,15 +1073,12 @@ declare const VDateInput: {
|
|
1070
1073
|
};
|
1071
1074
|
default: () => number[];
|
1072
1075
|
};
|
1073
|
-
weeksInMonth: Omit<
|
1076
|
+
weeksInMonth: Omit<{
|
1074
1077
|
type: PropType<"dynamic" | "static">;
|
1075
1078
|
default: string;
|
1076
1079
|
}, "type" | "default"> & {
|
1077
1080
|
type: PropType<"static" | "dynamic">;
|
1078
1081
|
default: NonNullable<"static" | "dynamic">;
|
1079
|
-
}, "type" | "default"> & {
|
1080
|
-
type: PropType<"static" | "dynamic">;
|
1081
|
-
default: NonNullable<"static" | "dynamic">;
|
1082
1082
|
};
|
1083
1083
|
firstDayOfWeek: (StringConstructor | NumberConstructor)[];
|
1084
1084
|
allowedDates: PropType<unknown[] | ((date: unknown) => boolean)>;
|
@@ -1271,7 +1271,10 @@ declare const VDateInput: {
|
|
1271
1271
|
type: PropType<"month" | "months" | "year">;
|
1272
1272
|
default: string;
|
1273
1273
|
};
|
1274
|
-
showAdjacentMonths:
|
1274
|
+
showAdjacentMonths: {
|
1275
|
+
type: PropType<boolean>;
|
1276
|
+
default: boolean;
|
1277
|
+
};
|
1275
1278
|
weekdays: {
|
1276
1279
|
type: {
|
1277
1280
|
(arrayLength: number): number[];
|
@@ -1291,15 +1294,12 @@ declare const VDateInput: {
|
|
1291
1294
|
};
|
1292
1295
|
default: () => number[];
|
1293
1296
|
};
|
1294
|
-
weeksInMonth: Omit<
|
1297
|
+
weeksInMonth: Omit<{
|
1295
1298
|
type: PropType<"dynamic" | "static">;
|
1296
1299
|
default: string;
|
1297
1300
|
}, "type" | "default"> & {
|
1298
1301
|
type: PropType<"static" | "dynamic">;
|
1299
1302
|
default: NonNullable<"static" | "dynamic">;
|
1300
|
-
}, "type" | "default"> & {
|
1301
|
-
type: PropType<"static" | "dynamic">;
|
1302
|
-
default: NonNullable<"static" | "dynamic">;
|
1303
1303
|
};
|
1304
1304
|
firstDayOfWeek: (StringConstructor | NumberConstructor)[];
|
1305
1305
|
allowedDates: PropType<unknown[] | ((date: unknown) => boolean)>;
|
@@ -85,6 +85,8 @@ export const VTimePickerControls = genericComponent()({
|
|
85
85
|
"key": "secondsDivider"
|
86
86
|
}, [_createTextVNode(":")]), props.useSeconds && _createVNode(VBtn, {
|
87
87
|
"key": "secondsVal",
|
88
|
+
"active": props.viewMode === 'second',
|
89
|
+
"color": props.viewMode === 'second' ? props.color : undefined,
|
88
90
|
"variant": "tonal",
|
89
91
|
"onClick": () => emit('update:viewMode', 'second'),
|
90
92
|
"class": {
|