@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.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
|
*/
|
|
@@ -24045,6 +24045,14 @@ const makeVDatePickerMonthProps = propsFactory({
|
|
|
24045
24045
|
type: String,
|
|
24046
24046
|
default: 'picker-reverse-transition'
|
|
24047
24047
|
},
|
|
24048
|
+
events: {
|
|
24049
|
+
type: [Array, Function, Object],
|
|
24050
|
+
default: () => null
|
|
24051
|
+
},
|
|
24052
|
+
eventColor: {
|
|
24053
|
+
type: [Array, Function, Object, String],
|
|
24054
|
+
default: () => null
|
|
24055
|
+
},
|
|
24048
24056
|
...omit(makeCalendarProps(), ['displayValue'])
|
|
24049
24057
|
}, 'VDatePickerMonth');
|
|
24050
24058
|
const VDatePickerMonth = genericComponent()({
|
|
@@ -24144,6 +24152,49 @@ const VDatePickerMonth = genericComponent()({
|
|
|
24144
24152
|
model.value = [value];
|
|
24145
24153
|
}
|
|
24146
24154
|
}
|
|
24155
|
+
function getEventColors(date) {
|
|
24156
|
+
const {
|
|
24157
|
+
events,
|
|
24158
|
+
eventColor
|
|
24159
|
+
} = props;
|
|
24160
|
+
let eventData;
|
|
24161
|
+
let eventColors = [];
|
|
24162
|
+
if (Array.isArray(events)) {
|
|
24163
|
+
eventData = events.includes(date);
|
|
24164
|
+
} else if (events instanceof Function) {
|
|
24165
|
+
eventData = events(date) || false;
|
|
24166
|
+
} else if (events) {
|
|
24167
|
+
eventData = events[date] || false;
|
|
24168
|
+
} else {
|
|
24169
|
+
eventData = false;
|
|
24170
|
+
}
|
|
24171
|
+
if (!eventData) {
|
|
24172
|
+
return [];
|
|
24173
|
+
} else if (eventData !== true) {
|
|
24174
|
+
eventColors = wrapInArray(eventData);
|
|
24175
|
+
} else if (typeof eventColor === 'string') {
|
|
24176
|
+
eventColors = [eventColor];
|
|
24177
|
+
} else if (typeof eventColor === 'function') {
|
|
24178
|
+
eventColors = wrapInArray(eventColor(date));
|
|
24179
|
+
} else if (Array.isArray(eventColor)) {
|
|
24180
|
+
eventColors = eventColor;
|
|
24181
|
+
} else if (typeof eventColor === 'object' && eventColor !== null) {
|
|
24182
|
+
eventColors = wrapInArray(eventColor[date]);
|
|
24183
|
+
}
|
|
24184
|
+
|
|
24185
|
+
// Fallback to default color if no color is found
|
|
24186
|
+
return !eventColors.length ? ['surface-variant'] : eventColors.filter(Boolean).map(color => typeof color === 'string' ? color : 'surface-variant');
|
|
24187
|
+
}
|
|
24188
|
+
function genEvents(date) {
|
|
24189
|
+
const eventColors = getEventColors(date);
|
|
24190
|
+
if (!eventColors.length) return null;
|
|
24191
|
+
return createElementVNode("div", {
|
|
24192
|
+
"class": "v-date-picker-month__events"
|
|
24193
|
+
}, [eventColors.map(color => createVNode(VBadge, {
|
|
24194
|
+
"dot": true,
|
|
24195
|
+
"color": color
|
|
24196
|
+
}, null))]);
|
|
24197
|
+
}
|
|
24147
24198
|
useRender(() => createElementVNode("div", {
|
|
24148
24199
|
"class": "v-date-picker-month",
|
|
24149
24200
|
"style": {
|
|
@@ -24174,7 +24225,6 @@ const VDatePickerMonth = genericComponent()({
|
|
|
24174
24225
|
disabled: item.isDisabled,
|
|
24175
24226
|
icon: true,
|
|
24176
24227
|
ripple: false,
|
|
24177
|
-
text: item.localized,
|
|
24178
24228
|
variant: item.isSelected ? 'flat' : item.isToday ? 'outlined' : 'text',
|
|
24179
24229
|
'aria-label': getDateAriaLabel(item),
|
|
24180
24230
|
'aria-current': item.isToday ? 'date' : undefined,
|
|
@@ -24195,7 +24245,9 @@ const VDatePickerMonth = genericComponent()({
|
|
|
24195
24245
|
'v-date-picker-month__day--week-start': item.isWeekStart
|
|
24196
24246
|
}]),
|
|
24197
24247
|
"data-v-date": !item.isDisabled ? item.isoDate : undefined
|
|
24198
|
-
}, [(props.showAdjacentMonths || !item.isAdjacent) && (slots.day?.(slotProps) ?? createVNode(VBtn, slotProps.props,
|
|
24248
|
+
}, [(props.showAdjacentMonths || !item.isAdjacent) && (slots.day?.(slotProps) ?? createVNode(VBtn, slotProps.props, {
|
|
24249
|
+
default: () => [item.localized, genEvents(item.isoDate)]
|
|
24250
|
+
}))]);
|
|
24199
24251
|
})])]
|
|
24200
24252
|
})]));
|
|
24201
24253
|
}
|
|
@@ -32576,7 +32628,7 @@ function createVuetify$1() {
|
|
|
32576
32628
|
};
|
|
32577
32629
|
});
|
|
32578
32630
|
}
|
|
32579
|
-
const version$1 = "3.10.7-dev.2025-10-
|
|
32631
|
+
const version$1 = "3.10.7-dev.2025-10-25";
|
|
32580
32632
|
createVuetify$1.version = version$1;
|
|
32581
32633
|
|
|
32582
32634
|
// Vue's inject() can only be used in setup
|
|
@@ -32601,7 +32653,7 @@ const createVuetify = function () {
|
|
|
32601
32653
|
...options
|
|
32602
32654
|
});
|
|
32603
32655
|
};
|
|
32604
|
-
const version = "3.10.7-dev.2025-10-
|
|
32656
|
+
const version = "3.10.7-dev.2025-10-25";
|
|
32605
32657
|
createVuetify.version = version;
|
|
32606
32658
|
|
|
32607
32659
|
export { index as blueprints, components, createVuetify, directives, useDate, useDefaults, useDisplay, useGoTo, useHotkey, useLayout, useLocale, useMask, useRtl, useTheme, version };
|