@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.esm.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
|
*/
|
|
@@ -23730,6 +23730,14 @@ const makeVDatePickerMonthProps = propsFactory({
|
|
|
23730
23730
|
type: String,
|
|
23731
23731
|
default: 'picker-reverse-transition'
|
|
23732
23732
|
},
|
|
23733
|
+
events: {
|
|
23734
|
+
type: [Array, Function, Object],
|
|
23735
|
+
default: () => null
|
|
23736
|
+
},
|
|
23737
|
+
eventColor: {
|
|
23738
|
+
type: [Array, Function, Object, String],
|
|
23739
|
+
default: () => null
|
|
23740
|
+
},
|
|
23733
23741
|
...omit(makeCalendarProps(), ['displayValue'])
|
|
23734
23742
|
}, 'VDatePickerMonth');
|
|
23735
23743
|
const VDatePickerMonth = genericComponent()({
|
|
@@ -23829,6 +23837,49 @@ const VDatePickerMonth = genericComponent()({
|
|
|
23829
23837
|
model.value = [value];
|
|
23830
23838
|
}
|
|
23831
23839
|
}
|
|
23840
|
+
function getEventColors(date) {
|
|
23841
|
+
const {
|
|
23842
|
+
events,
|
|
23843
|
+
eventColor
|
|
23844
|
+
} = props;
|
|
23845
|
+
let eventData;
|
|
23846
|
+
let eventColors = [];
|
|
23847
|
+
if (Array.isArray(events)) {
|
|
23848
|
+
eventData = events.includes(date);
|
|
23849
|
+
} else if (events instanceof Function) {
|
|
23850
|
+
eventData = events(date) || false;
|
|
23851
|
+
} else if (events) {
|
|
23852
|
+
eventData = events[date] || false;
|
|
23853
|
+
} else {
|
|
23854
|
+
eventData = false;
|
|
23855
|
+
}
|
|
23856
|
+
if (!eventData) {
|
|
23857
|
+
return [];
|
|
23858
|
+
} else if (eventData !== true) {
|
|
23859
|
+
eventColors = wrapInArray(eventData);
|
|
23860
|
+
} else if (typeof eventColor === 'string') {
|
|
23861
|
+
eventColors = [eventColor];
|
|
23862
|
+
} else if (typeof eventColor === 'function') {
|
|
23863
|
+
eventColors = wrapInArray(eventColor(date));
|
|
23864
|
+
} else if (Array.isArray(eventColor)) {
|
|
23865
|
+
eventColors = eventColor;
|
|
23866
|
+
} else if (typeof eventColor === 'object' && eventColor !== null) {
|
|
23867
|
+
eventColors = wrapInArray(eventColor[date]);
|
|
23868
|
+
}
|
|
23869
|
+
|
|
23870
|
+
// Fallback to default color if no color is found
|
|
23871
|
+
return !eventColors.length ? ['surface-variant'] : eventColors.filter(Boolean).map(color => typeof color === 'string' ? color : 'surface-variant');
|
|
23872
|
+
}
|
|
23873
|
+
function genEvents(date) {
|
|
23874
|
+
const eventColors = getEventColors(date);
|
|
23875
|
+
if (!eventColors.length) return null;
|
|
23876
|
+
return createElementVNode("div", {
|
|
23877
|
+
"class": "v-date-picker-month__events"
|
|
23878
|
+
}, [eventColors.map(color => createVNode(VBadge, {
|
|
23879
|
+
"dot": true,
|
|
23880
|
+
"color": color
|
|
23881
|
+
}, null))]);
|
|
23882
|
+
}
|
|
23832
23883
|
useRender(() => createElementVNode("div", {
|
|
23833
23884
|
"class": "v-date-picker-month",
|
|
23834
23885
|
"style": {
|
|
@@ -23859,7 +23910,6 @@ const VDatePickerMonth = genericComponent()({
|
|
|
23859
23910
|
disabled: item.isDisabled,
|
|
23860
23911
|
icon: true,
|
|
23861
23912
|
ripple: false,
|
|
23862
|
-
text: item.localized,
|
|
23863
23913
|
variant: item.isSelected ? 'flat' : item.isToday ? 'outlined' : 'text',
|
|
23864
23914
|
'aria-label': getDateAriaLabel(item),
|
|
23865
23915
|
'aria-current': item.isToday ? 'date' : undefined,
|
|
@@ -23880,7 +23930,9 @@ const VDatePickerMonth = genericComponent()({
|
|
|
23880
23930
|
'v-date-picker-month__day--week-start': item.isWeekStart
|
|
23881
23931
|
}]),
|
|
23882
23932
|
"data-v-date": !item.isDisabled ? item.isoDate : undefined
|
|
23883
|
-
}, [(props.showAdjacentMonths || !item.isAdjacent) && (slots.day?.(slotProps) ?? createVNode(VBtn, slotProps.props,
|
|
23933
|
+
}, [(props.showAdjacentMonths || !item.isAdjacent) && (slots.day?.(slotProps) ?? createVNode(VBtn, slotProps.props, {
|
|
23934
|
+
default: () => [item.localized, genEvents(item.isoDate)]
|
|
23935
|
+
}))]);
|
|
23884
23936
|
})])]
|
|
23885
23937
|
})]));
|
|
23886
23938
|
}
|
|
@@ -38211,7 +38263,7 @@ function createVuetify$1() {
|
|
|
38211
38263
|
};
|
|
38212
38264
|
});
|
|
38213
38265
|
}
|
|
38214
|
-
const version$1 = "3.10.7-dev.2025-10-
|
|
38266
|
+
const version$1 = "3.10.7-dev.2025-10-25";
|
|
38215
38267
|
createVuetify$1.version = version$1;
|
|
38216
38268
|
|
|
38217
38269
|
// Vue's inject() can only be used in setup
|
|
@@ -38509,7 +38561,7 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
38509
38561
|
|
|
38510
38562
|
/* eslint-disable local-rules/sort-imports */
|
|
38511
38563
|
|
|
38512
|
-
const version = "3.10.7-dev.2025-10-
|
|
38564
|
+
const version = "3.10.7-dev.2025-10-25";
|
|
38513
38565
|
|
|
38514
38566
|
/* eslint-disable local-rules/sort-imports */
|
|
38515
38567
|
|