@vuetify/nightly 3.7.12-master.2025-02-19 → 3.7.13-master.2025-02-20

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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Vuetify v3.7.12-master.2025-02-19
2
+ * Vuetify v3.7.13-master.2025-02-20
3
3
  * Forged by John Leider
4
4
  * Released under the MIT License.
5
5
  */
@@ -22245,9 +22245,26 @@ const VDatePicker = genericComponent()({
22245
22245
  const model = useProxiedModel(props, 'modelValue', undefined, v => wrapInArray(v), v => props.multiple ? v : v[0]);
22246
22246
  const viewMode = useProxiedModel(props, 'viewMode');
22247
22247
  // const inputMode = useProxiedModel(props, 'inputMode')
22248
+
22249
+ const minDate = computed(() => {
22250
+ const date = adapter.date(props.min);
22251
+ return props.min && adapter.isValid(date) ? date : null;
22252
+ });
22253
+ const maxDate = computed(() => {
22254
+ const date = adapter.date(props.max);
22255
+ return props.max && adapter.isValid(date) ? date : null;
22256
+ });
22248
22257
  const internal = computed(() => {
22249
- const value = adapter.date(model.value?.[0]);
22250
- return value && adapter.isValid(value) ? value : adapter.date();
22258
+ const today = adapter.date();
22259
+ let value = today;
22260
+ if (model.value?.[0]) {
22261
+ value = adapter.date(model.value[0]);
22262
+ } else if (minDate.value && adapter.isBefore(today, minDate.value)) {
22263
+ value = minDate.value;
22264
+ } else if (maxDate.value && adapter.isAfter(today, maxDate.value)) {
22265
+ value = maxDate.value;
22266
+ }
22267
+ return value && adapter.isValid(value) ? value : today;
22251
22268
  });
22252
22269
  const month = ref(Number(props.month ?? adapter.getMonth(adapter.startOfMonth(internal.value))));
22253
22270
  const year = ref(Number(props.year ?? adapter.getYear(adapter.startOfYear(adapter.setMonth(internal.value, month.value)))));
@@ -22267,14 +22284,6 @@ const VDatePicker = genericComponent()({
22267
22284
  });
22268
22285
  // const headerIcon = computed(() => props.inputMode === 'calendar' ? props.keyboardIcon : props.calendarIcon)
22269
22286
  const headerTransition = computed(() => `date-picker-header${isReversing.value ? '-reverse' : ''}-transition`);
22270
- const minDate = computed(() => {
22271
- const date = adapter.date(props.min);
22272
- return props.min && adapter.isValid(date) ? date : null;
22273
- });
22274
- const maxDate = computed(() => {
22275
- const date = adapter.date(props.max);
22276
- return props.max && adapter.isValid(date) ? date : null;
22277
- });
22278
22287
  const disabled = computed(() => {
22279
22288
  if (props.disabled) return true;
22280
22289
  const targets = [];
@@ -30959,7 +30968,7 @@ function createVuetify$1() {
30959
30968
  goTo
30960
30969
  };
30961
30970
  }
30962
- const version$1 = "3.7.12-master.2025-02-19";
30971
+ const version$1 = "3.7.13-master.2025-02-20";
30963
30972
  createVuetify$1.version = version$1;
30964
30973
 
30965
30974
  // Vue's inject() can only be used in setup
@@ -31212,7 +31221,7 @@ var index = /*#__PURE__*/Object.freeze({
31212
31221
 
31213
31222
  /* eslint-disable local-rules/sort-imports */
31214
31223
 
31215
- const version = "3.7.12-master.2025-02-19";
31224
+ const version = "3.7.13-master.2025-02-20";
31216
31225
 
31217
31226
  /* eslint-disable local-rules/sort-imports */
31218
31227