@vuetify/nightly 3.8.0-beta.0-dev.2025-03-25 → 3.8.0-beta.0-dev.2025-03-29
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 +80 -33
- package/dist/_component-variables-labs.sass +1 -0
- package/dist/json/attributes.json +4178 -4054
- package/dist/json/importMap-labs.json +12 -8
- package/dist/json/importMap.json +178 -178
- package/dist/json/tags.json +36 -0
- package/dist/json/web-types.json +7764 -7427
- package/dist/vuetify-labs.cjs +242 -16
- package/dist/vuetify-labs.css +2467 -2290
- package/dist/vuetify-labs.d.ts +546 -230
- package/dist/vuetify-labs.esm.js +242 -16
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +242 -16
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.cjs +31 -13
- package/dist/vuetify.cjs.map +1 -1
- package/dist/vuetify.css +4498 -4498
- package/dist/vuetify.d.ts +118 -143
- package/dist/vuetify.esm.js +31 -13
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +31 -13
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +18 -17
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VConfirmEdit/VConfirmEdit.d.ts +31 -6
- package/lib/components/VConfirmEdit/VConfirmEdit.js +17 -2
- package/lib/components/VConfirmEdit/VConfirmEdit.js.map +1 -1
- package/lib/components/VDatePicker/VDatePicker.d.ts +33 -78
- package/lib/components/VDatePicker/VDatePickerMonth.d.ts +33 -78
- package/lib/composables/calendar.d.ts +12 -35
- package/lib/composables/calendar.js +11 -8
- package/lib/composables/calendar.js.map +1 -1
- package/lib/entry-bundler.js +1 -1
- package/lib/framework.d.ts +58 -57
- package/lib/framework.js +1 -1
- package/lib/labs/VCalendar/VCalendar.d.ts +33 -78
- package/lib/labs/VDateInput/VDateInput.d.ts +68 -78
- package/lib/labs/VDateInput/VDateInput.js +44 -4
- package/lib/labs/VDateInput/VDateInput.js.map +1 -1
- package/lib/labs/VIconBtn/VIconBtn.css +178 -0
- package/lib/labs/VIconBtn/VIconBtn.d.ts +608 -0
- package/lib/labs/VIconBtn/VIconBtn.js +184 -0
- package/lib/labs/VIconBtn/VIconBtn.js.map +1 -0
- package/lib/labs/VIconBtn/VIconBtn.scss +110 -0
- package/lib/labs/VIconBtn/_variables.scss +36 -0
- package/lib/labs/VIconBtn/index.d.ts +1 -0
- package/lib/labs/VIconBtn/index.js +2 -0
- package/lib/labs/VIconBtn/index.js.map +1 -0
- package/lib/labs/components.d.ts +1 -0
- package/lib/labs/components.js +1 -0
- package/lib/labs/components.js.map +1 -1
- package/package.json +1 -1
package/dist/vuetify.esm.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Vuetify v3.8.0-beta.0-dev.2025-03-
|
2
|
+
* Vuetify v3.8.0-beta.0-dev.2025-03-29
|
3
3
|
* Forged by John Leider
|
4
4
|
* Released under the MIT License.
|
5
5
|
*/
|
@@ -18704,6 +18704,10 @@ const makeVConfirmEditProps = propsFactory({
|
|
18704
18704
|
type: String,
|
18705
18705
|
default: '$vuetify.confirmEdit.ok'
|
18706
18706
|
},
|
18707
|
+
disabled: {
|
18708
|
+
type: [Boolean, Array],
|
18709
|
+
default: undefined
|
18710
|
+
},
|
18707
18711
|
hideActions: Boolean
|
18708
18712
|
}, 'VConfirmEdit');
|
18709
18713
|
const VConfirmEdit = genericComponent()({
|
@@ -18730,6 +18734,17 @@ const VConfirmEdit = genericComponent()({
|
|
18730
18734
|
const isPristine = computed(() => {
|
18731
18735
|
return deepEqual(model.value, internalModel.value);
|
18732
18736
|
});
|
18737
|
+
function isActionDisabled(action) {
|
18738
|
+
if (typeof props.disabled === 'boolean') {
|
18739
|
+
return props.disabled;
|
18740
|
+
}
|
18741
|
+
if (Array.isArray(props.disabled)) {
|
18742
|
+
return props.disabled.includes(action);
|
18743
|
+
}
|
18744
|
+
return isPristine.value;
|
18745
|
+
}
|
18746
|
+
const isSaveDisabled = computed(() => isActionDisabled('save'));
|
18747
|
+
const isCancelDisabled = computed(() => isActionDisabled('cancel'));
|
18733
18748
|
function save() {
|
18734
18749
|
model.value = internalModel.value;
|
18735
18750
|
emit('save', internalModel.value);
|
@@ -18740,13 +18755,13 @@ const VConfirmEdit = genericComponent()({
|
|
18740
18755
|
}
|
18741
18756
|
function actions(actionsProps) {
|
18742
18757
|
return createVNode(Fragment, null, [createVNode(VBtn, mergeProps({
|
18743
|
-
"disabled":
|
18758
|
+
"disabled": isCancelDisabled.value,
|
18744
18759
|
"variant": "text",
|
18745
18760
|
"color": props.color,
|
18746
18761
|
"onClick": cancel,
|
18747
18762
|
"text": t(props.cancelText)
|
18748
18763
|
}, actionsProps), null), createVNode(VBtn, mergeProps({
|
18749
|
-
"disabled":
|
18764
|
+
"disabled": isSaveDisabled.value,
|
18750
18765
|
"variant": "text",
|
18751
18766
|
"color": props.color,
|
18752
18767
|
"onClick": save,
|
@@ -22201,7 +22216,10 @@ const makeCalendarProps = propsFactory({
|
|
22201
22216
|
type: String,
|
22202
22217
|
default: 'dynamic'
|
22203
22218
|
},
|
22204
|
-
firstDayOfWeek:
|
22219
|
+
firstDayOfWeek: {
|
22220
|
+
type: [Number, String],
|
22221
|
+
default: 0
|
22222
|
+
}
|
22205
22223
|
}, 'calendar');
|
22206
22224
|
function useCalendar(props) {
|
22207
22225
|
const adapter = useDate();
|
@@ -22222,15 +22240,15 @@ function useCalendar(props) {
|
|
22222
22240
|
const date = adapter.setYear(adapter.startOfMonth(adapter.date()), adapter.getYear(year.value));
|
22223
22241
|
return adapter.setMonth(date, value);
|
22224
22242
|
}, v => adapter.getMonth(v));
|
22225
|
-
const defaultFirstDayOfWeek = computed(() => {
|
22226
|
-
return props.firstDayOfWeek ?? props.weekdays[0];
|
22227
|
-
});
|
22228
22243
|
const weekDays = computed(() => {
|
22229
|
-
const firstDayOfWeek = Number(props.firstDayOfWeek
|
22230
|
-
|
22244
|
+
const firstDayOfWeek = Number(props.firstDayOfWeek);
|
22245
|
+
|
22246
|
+
// Always generate all days, regardless of props.weekdays
|
22247
|
+
return [0, 1, 2, 3, 4, 5, 6].map(day => (day + firstDayOfWeek) % 7);
|
22231
22248
|
});
|
22232
22249
|
const weeksInMonth = computed(() => {
|
22233
|
-
const
|
22250
|
+
const firstDayOfWeek = Number(props.firstDayOfWeek);
|
22251
|
+
const weeks = adapter.getWeekArray(month.value, firstDayOfWeek);
|
22234
22252
|
const days = weeks.flat();
|
22235
22253
|
|
22236
22254
|
// Make sure there's always 6 weeks in month (6 * 7 days)
|
@@ -22308,7 +22326,7 @@ function useCalendar(props) {
|
|
22308
22326
|
if (typeof props.allowedDates === 'function') {
|
22309
22327
|
return !props.allowedDates(date);
|
22310
22328
|
}
|
22311
|
-
return
|
22329
|
+
return !props.weekdays.includes(adapter.toJsDate(date).getDay());
|
22312
22330
|
}
|
22313
22331
|
return {
|
22314
22332
|
displayValue,
|
@@ -29190,7 +29208,7 @@ function createVuetify$1() {
|
|
29190
29208
|
};
|
29191
29209
|
});
|
29192
29210
|
}
|
29193
|
-
const version$1 = "3.8.0-beta.0-dev.2025-03-
|
29211
|
+
const version$1 = "3.8.0-beta.0-dev.2025-03-29";
|
29194
29212
|
createVuetify$1.version = version$1;
|
29195
29213
|
|
29196
29214
|
// Vue's inject() can only be used in setup
|
@@ -29215,7 +29233,7 @@ const createVuetify = function () {
|
|
29215
29233
|
...options
|
29216
29234
|
});
|
29217
29235
|
};
|
29218
|
-
const version = "3.8.0-beta.0-dev.2025-03-
|
29236
|
+
const version = "3.8.0-beta.0-dev.2025-03-29";
|
29219
29237
|
createVuetify.version = version;
|
29220
29238
|
|
29221
29239
|
export { index as blueprints, components, createVuetify, directives, useDate, useDefaults, useDisplay, useGoTo, useLayout, useLocale, useRtl, useTheme, version };
|