@vuetify/nightly 3.10.7-dev.2025-10-24 → 3.10.7-dev.2025-10-25
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 +5 -3
- package/dist/json/attributes.json +3083 -3059
- package/dist/json/importMap-labs.json +30 -30
- package/dist/json/importMap.json +152 -152
- package/dist/json/tags.json +6 -0
- package/dist/json/web-types.json +5485 -5425
- package/dist/vuetify-labs.cjs +57 -5
- package/dist/vuetify-labs.css +3208 -3183
- package/dist/vuetify-labs.d.ts +281 -194
- package/dist/vuetify-labs.esm.js +57 -5
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +57 -5
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.cjs +57 -5
- package/dist/vuetify.cjs.map +1 -1
- package/dist/vuetify.css +3579 -3554
- package/dist/vuetify.d.ts +253 -194
- package/dist/vuetify.esm.js +57 -5
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +57 -5
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +9 -6
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VDatePicker/VDatePicker.d.ts +50 -0
- package/lib/components/VDatePicker/VDatePickerMonth.css +25 -0
- package/lib/components/VDatePicker/VDatePickerMonth.d.ts +53 -0
- package/lib/components/VDatePicker/VDatePickerMonth.js +57 -4
- package/lib/components/VDatePicker/VDatePickerMonth.js.map +1 -1
- package/lib/components/VDatePicker/VDatePickerMonth.sass +22 -0
- package/lib/components/VDatePicker/_variables.scss +5 -0
- package/lib/entry-bundler.js +1 -1
- package/lib/framework.d.ts +57 -57
- package/lib/framework.js +1 -1
- package/lib/labs/VDateInput/VDateInput.d.ts +50 -0
- package/package.json +1 -1
package/dist/vuetify-labs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Vuetify v3.10.7-dev.2025-10-
|
|
2
|
+
* Vuetify v3.10.7-dev.2025-10-25
|
|
3
3
|
* Forged by John Leider
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -23734,6 +23734,14 @@
|
|
|
23734
23734
|
type: String,
|
|
23735
23735
|
default: 'picker-reverse-transition'
|
|
23736
23736
|
},
|
|
23737
|
+
events: {
|
|
23738
|
+
type: [Array, Function, Object],
|
|
23739
|
+
default: () => null
|
|
23740
|
+
},
|
|
23741
|
+
eventColor: {
|
|
23742
|
+
type: [Array, Function, Object, String],
|
|
23743
|
+
default: () => null
|
|
23744
|
+
},
|
|
23737
23745
|
...omit(makeCalendarProps(), ['displayValue'])
|
|
23738
23746
|
}, 'VDatePickerMonth');
|
|
23739
23747
|
const VDatePickerMonth = genericComponent()({
|
|
@@ -23833,6 +23841,49 @@
|
|
|
23833
23841
|
model.value = [value];
|
|
23834
23842
|
}
|
|
23835
23843
|
}
|
|
23844
|
+
function getEventColors(date) {
|
|
23845
|
+
const {
|
|
23846
|
+
events,
|
|
23847
|
+
eventColor
|
|
23848
|
+
} = props;
|
|
23849
|
+
let eventData;
|
|
23850
|
+
let eventColors = [];
|
|
23851
|
+
if (Array.isArray(events)) {
|
|
23852
|
+
eventData = events.includes(date);
|
|
23853
|
+
} else if (events instanceof Function) {
|
|
23854
|
+
eventData = events(date) || false;
|
|
23855
|
+
} else if (events) {
|
|
23856
|
+
eventData = events[date] || false;
|
|
23857
|
+
} else {
|
|
23858
|
+
eventData = false;
|
|
23859
|
+
}
|
|
23860
|
+
if (!eventData) {
|
|
23861
|
+
return [];
|
|
23862
|
+
} else if (eventData !== true) {
|
|
23863
|
+
eventColors = wrapInArray(eventData);
|
|
23864
|
+
} else if (typeof eventColor === 'string') {
|
|
23865
|
+
eventColors = [eventColor];
|
|
23866
|
+
} else if (typeof eventColor === 'function') {
|
|
23867
|
+
eventColors = wrapInArray(eventColor(date));
|
|
23868
|
+
} else if (Array.isArray(eventColor)) {
|
|
23869
|
+
eventColors = eventColor;
|
|
23870
|
+
} else if (typeof eventColor === 'object' && eventColor !== null) {
|
|
23871
|
+
eventColors = wrapInArray(eventColor[date]);
|
|
23872
|
+
}
|
|
23873
|
+
|
|
23874
|
+
// Fallback to default color if no color is found
|
|
23875
|
+
return !eventColors.length ? ['surface-variant'] : eventColors.filter(Boolean).map(color => typeof color === 'string' ? color : 'surface-variant');
|
|
23876
|
+
}
|
|
23877
|
+
function genEvents(date) {
|
|
23878
|
+
const eventColors = getEventColors(date);
|
|
23879
|
+
if (!eventColors.length) return null;
|
|
23880
|
+
return vue.createElementVNode("div", {
|
|
23881
|
+
"class": "v-date-picker-month__events"
|
|
23882
|
+
}, [eventColors.map(color => vue.createVNode(VBadge, {
|
|
23883
|
+
"dot": true,
|
|
23884
|
+
"color": color
|
|
23885
|
+
}, null))]);
|
|
23886
|
+
}
|
|
23836
23887
|
useRender(() => vue.createElementVNode("div", {
|
|
23837
23888
|
"class": "v-date-picker-month",
|
|
23838
23889
|
"style": {
|
|
@@ -23863,7 +23914,6 @@
|
|
|
23863
23914
|
disabled: item.isDisabled,
|
|
23864
23915
|
icon: true,
|
|
23865
23916
|
ripple: false,
|
|
23866
|
-
text: item.localized,
|
|
23867
23917
|
variant: item.isSelected ? 'flat' : item.isToday ? 'outlined' : 'text',
|
|
23868
23918
|
'aria-label': getDateAriaLabel(item),
|
|
23869
23919
|
'aria-current': item.isToday ? 'date' : undefined,
|
|
@@ -23884,7 +23934,9 @@
|
|
|
23884
23934
|
'v-date-picker-month__day--week-start': item.isWeekStart
|
|
23885
23935
|
}]),
|
|
23886
23936
|
"data-v-date": !item.isDisabled ? item.isoDate : undefined
|
|
23887
|
-
}, [(props.showAdjacentMonths || !item.isAdjacent) && (slots.day?.(slotProps) ?? vue.createVNode(VBtn, slotProps.props,
|
|
23937
|
+
}, [(props.showAdjacentMonths || !item.isAdjacent) && (slots.day?.(slotProps) ?? vue.createVNode(VBtn, slotProps.props, {
|
|
23938
|
+
default: () => [item.localized, genEvents(item.isoDate)]
|
|
23939
|
+
}))]);
|
|
23888
23940
|
})])]
|
|
23889
23941
|
})]));
|
|
23890
23942
|
}
|
|
@@ -38215,7 +38267,7 @@
|
|
|
38215
38267
|
};
|
|
38216
38268
|
});
|
|
38217
38269
|
}
|
|
38218
|
-
const version$1 = "3.10.7-dev.2025-10-
|
|
38270
|
+
const version$1 = "3.10.7-dev.2025-10-25";
|
|
38219
38271
|
createVuetify$1.version = version$1;
|
|
38220
38272
|
|
|
38221
38273
|
// Vue's inject() can only be used in setup
|
|
@@ -38513,7 +38565,7 @@
|
|
|
38513
38565
|
|
|
38514
38566
|
/* eslint-disable local-rules/sort-imports */
|
|
38515
38567
|
|
|
38516
|
-
const version = "3.10.7-dev.2025-10-
|
|
38568
|
+
const version = "3.10.7-dev.2025-10-25";
|
|
38517
38569
|
|
|
38518
38570
|
/* eslint-disable local-rules/sort-imports */
|
|
38519
38571
|
|