@vuetify/nightly 3.8.0-beta.0-dev.2025-03-26 → 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.
Files changed (53) hide show
  1. package/CHANGELOG.md +6 -3
  2. package/dist/_component-variables-labs.sass +1 -0
  3. package/dist/json/attributes.json +3618 -3502
  4. package/dist/json/importMap-labs.json +34 -30
  5. package/dist/json/importMap.json +158 -158
  6. package/dist/json/tags.json +34 -0
  7. package/dist/json/web-types.json +6539 -6221
  8. package/dist/vuetify-labs.cjs +204 -13
  9. package/dist/vuetify-labs.css +3192 -3015
  10. package/dist/vuetify-labs.d.ts +527 -230
  11. package/dist/vuetify-labs.esm.js +204 -13
  12. package/dist/vuetify-labs.esm.js.map +1 -1
  13. package/dist/vuetify-labs.js +204 -13
  14. package/dist/vuetify-labs.min.css +2 -2
  15. package/dist/vuetify.cjs +31 -13
  16. package/dist/vuetify.cjs.map +1 -1
  17. package/dist/vuetify.css +2415 -2415
  18. package/dist/vuetify.d.ts +118 -143
  19. package/dist/vuetify.esm.js +31 -13
  20. package/dist/vuetify.esm.js.map +1 -1
  21. package/dist/vuetify.js +31 -13
  22. package/dist/vuetify.js.map +1 -1
  23. package/dist/vuetify.min.css +2 -2
  24. package/dist/vuetify.min.js +18 -17
  25. package/dist/vuetify.min.js.map +1 -1
  26. package/lib/components/VConfirmEdit/VConfirmEdit.d.ts +31 -6
  27. package/lib/components/VConfirmEdit/VConfirmEdit.js +17 -2
  28. package/lib/components/VConfirmEdit/VConfirmEdit.js.map +1 -1
  29. package/lib/components/VDatePicker/VDatePicker.d.ts +33 -78
  30. package/lib/components/VDatePicker/VDatePickerMonth.d.ts +33 -78
  31. package/lib/composables/calendar.d.ts +12 -35
  32. package/lib/composables/calendar.js +11 -8
  33. package/lib/composables/calendar.js.map +1 -1
  34. package/lib/entry-bundler.js +1 -1
  35. package/lib/framework.d.ts +58 -57
  36. package/lib/framework.js +1 -1
  37. package/lib/labs/VCalendar/VCalendar.d.ts +33 -78
  38. package/lib/labs/VDateInput/VDateInput.d.ts +33 -78
  39. package/lib/labs/VDateInput/VDateInput.js +4 -0
  40. package/lib/labs/VDateInput/VDateInput.js.map +1 -1
  41. package/lib/labs/VIconBtn/VIconBtn.css +178 -0
  42. package/lib/labs/VIconBtn/VIconBtn.d.ts +608 -0
  43. package/lib/labs/VIconBtn/VIconBtn.js +184 -0
  44. package/lib/labs/VIconBtn/VIconBtn.js.map +1 -0
  45. package/lib/labs/VIconBtn/VIconBtn.scss +110 -0
  46. package/lib/labs/VIconBtn/_variables.scss +36 -0
  47. package/lib/labs/VIconBtn/index.d.ts +1 -0
  48. package/lib/labs/VIconBtn/index.js +2 -0
  49. package/lib/labs/VIconBtn/index.js.map +1 -0
  50. package/lib/labs/components.d.ts +1 -0
  51. package/lib/labs/components.js +1 -0
  52. package/lib/labs/components.js.map +1 -1
  53. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Vuetify v3.8.0-beta.0-dev.2025-03-26
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": isPristine.value,
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": isPristine.value,
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: [Number, String]
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 ?? 0);
22230
- return props.weekdays.map(day => (day + firstDayOfWeek) % 7);
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 weeks = adapter.getWeekArray(month.value, defaultFirstDayOfWeek.value);
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 false;
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-26";
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-26";
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 };