@vuetify/nightly 3.5.3-dev.2024-03-03 → 3.5.3-dev.2024-03-06

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.
@@ -19,11 +19,13 @@ interface DateAdapter<T = unknown> {
19
19
  endOfMonth(date: T): T;
20
20
  startOfYear(date: T): T;
21
21
  endOfYear(date: T): T;
22
- isBefore(date: T, comparing: T): boolean;
23
22
  isAfter(date: T, comparing: T): boolean;
24
- isEqual(date: T, comparing: T): boolean;
23
+ isAfterDay(value: T, comparing: T): boolean;
25
24
  isSameDay(date: T, comparing: T): boolean;
26
25
  isSameMonth(date: T, comparing: T): boolean;
26
+ isSameYear(value: T, comparing: T): boolean;
27
+ isBefore(date: T, comparing: T): boolean;
28
+ isEqual(date: T, comparing: T): boolean;
27
29
  isValid(date: any): boolean;
28
30
  isWithinRange(date: T, range: [T, T]): boolean;
29
31
  addMinutes(date: T, amount: number): T;
@@ -39,6 +41,7 @@ interface DateAdapter<T = unknown> {
39
41
  getMonth(date: T): number;
40
42
  setMonth(date: T, month: number): T;
41
43
  getNextMonth(date: T): T;
44
+ getPreviousMonth(date: T): T;
42
45
  getHours(date: T): number;
43
46
  setHours(date: T, hours: number): T;
44
47
  getMinutes(date: T): number;
@@ -108,11 +111,13 @@ declare function useDate(): {
108
111
  endOfMonth: (date: unknown) => unknown;
109
112
  startOfYear: (date: unknown) => unknown;
110
113
  endOfYear: (date: unknown) => unknown;
111
- isBefore: (date: unknown, comparing: unknown) => boolean;
112
114
  isAfter: (date: unknown, comparing: unknown) => boolean;
113
- isEqual: (date: unknown, comparing: unknown) => boolean;
115
+ isAfterDay: (value: unknown, comparing: unknown) => boolean;
114
116
  isSameDay: (date: unknown, comparing: unknown) => boolean;
115
117
  isSameMonth: (date: unknown, comparing: unknown) => boolean;
118
+ isSameYear: (value: unknown, comparing: unknown) => boolean;
119
+ isBefore: (date: unknown, comparing: unknown) => boolean;
120
+ isEqual: (date: unknown, comparing: unknown) => boolean;
116
121
  isValid: (date: any) => boolean;
117
122
  isWithinRange: (date: unknown, range: [unknown, unknown]) => boolean;
118
123
  addMinutes: (date: unknown, amount: number) => unknown;
@@ -128,6 +133,7 @@ declare function useDate(): {
128
133
  getMonth: (date: unknown) => number;
129
134
  setMonth: (date: unknown, month: number) => unknown;
130
135
  getNextMonth: (date: unknown) => unknown;
136
+ getPreviousMonth: (date: unknown) => unknown;
131
137
  getHours: (date: unknown) => number;
132
138
  setHours: (date: unknown, hours: number) => unknown;
133
139
  getMinutes: (date: unknown) => number;
@@ -69374,11 +69380,13 @@ declare const createVuetify: (options?: VuetifyOptions) => {
69374
69380
  endOfMonth: (date: unknown) => unknown;
69375
69381
  startOfYear: (date: unknown) => unknown;
69376
69382
  endOfYear: (date: unknown) => unknown;
69377
- isBefore: (date: unknown, comparing: unknown) => boolean;
69378
69383
  isAfter: (date: unknown, comparing: unknown) => boolean;
69379
- isEqual: (date: unknown, comparing: unknown) => boolean;
69384
+ isAfterDay: (value: unknown, comparing: unknown) => boolean;
69380
69385
  isSameDay: (date: unknown, comparing: unknown) => boolean;
69381
69386
  isSameMonth: (date: unknown, comparing: unknown) => boolean;
69387
+ isSameYear: (value: unknown, comparing: unknown) => boolean;
69388
+ isBefore: (date: unknown, comparing: unknown) => boolean;
69389
+ isEqual: (date: unknown, comparing: unknown) => boolean;
69382
69390
  isValid: (date: any) => boolean;
69383
69391
  isWithinRange: (date: unknown, range: [unknown, unknown]) => boolean;
69384
69392
  addMinutes: (date: unknown, amount: number) => unknown;
@@ -69394,6 +69402,7 @@ declare const createVuetify: (options?: VuetifyOptions) => {
69394
69402
  getMonth: (date: unknown) => number;
69395
69403
  setMonth: (date: unknown, month: number) => unknown;
69396
69404
  getNextMonth: (date: unknown) => unknown;
69405
+ getPreviousMonth: (date: unknown) => unknown;
69397
69406
  getHours: (date: unknown) => number;
69398
69407
  setHours: (date: unknown, hours: number) => unknown;
69399
69408
  getMinutes: (date: unknown) => number;
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Vuetify v3.5.3-dev.2024-03-03
2
+ * Vuetify v3.5.3-dev.2024-03-06
3
3
  * Forged by John Leider
4
4
  * Released under the MIT License.
5
5
  */
@@ -17261,6 +17261,9 @@ function getMonth(date) {
17261
17261
  function getNextMonth(date) {
17262
17262
  return new Date(date.getFullYear(), date.getMonth() + 1, 1);
17263
17263
  }
17264
+ function getPreviousMonth(date) {
17265
+ return new Date(date.getFullYear(), date.getMonth() - 1, 1);
17266
+ }
17264
17267
  function getHours(date) {
17265
17268
  return date.getHours();
17266
17269
  }
@@ -17283,6 +17286,9 @@ function isValid(date) {
17283
17286
  function isAfter(date, comparing) {
17284
17287
  return date.getTime() > comparing.getTime();
17285
17288
  }
17289
+ function isAfterDay(date, comparing) {
17290
+ return isAfter(startOfDay(date), startOfDay(comparing));
17291
+ }
17286
17292
  function isBefore(date, comparing) {
17287
17293
  return date.getTime() < comparing.getTime();
17288
17294
  }
@@ -17295,6 +17301,9 @@ function isSameDay(date, comparing) {
17295
17301
  function isSameMonth(date, comparing) {
17296
17302
  return date.getMonth() === comparing.getMonth() && date.getFullYear() === comparing.getFullYear();
17297
17303
  }
17304
+ function isSameYear(date, comparing) {
17305
+ return date.getFullYear() === comparing.getFullYear();
17306
+ }
17298
17307
  function getDiff(date, comparing, unit) {
17299
17308
  const d = new Date(date);
17300
17309
  const c = new Date(comparing);
@@ -17391,6 +17400,9 @@ class VuetifyDateAdapter {
17391
17400
  isAfter(date, comparing) {
17392
17401
  return isAfter(date, comparing);
17393
17402
  }
17403
+ isAfterDay(date, comparing) {
17404
+ return isAfterDay(date, comparing);
17405
+ }
17394
17406
  isBefore(date, comparing) {
17395
17407
  return !isAfter(date, comparing) && !isEqual(date, comparing);
17396
17408
  }
@@ -17400,6 +17412,9 @@ class VuetifyDateAdapter {
17400
17412
  isSameMonth(date, comparing) {
17401
17413
  return isSameMonth(date, comparing);
17402
17414
  }
17415
+ isSameYear(date, comparing) {
17416
+ return isSameYear(date, comparing);
17417
+ }
17403
17418
  setMinutes(date, count) {
17404
17419
  return setMinutes(date, count);
17405
17420
  }
@@ -17427,6 +17442,9 @@ class VuetifyDateAdapter {
17427
17442
  getNextMonth(date) {
17428
17443
  return getNextMonth(date);
17429
17444
  }
17445
+ getPreviousMonth(date) {
17446
+ return getPreviousMonth(date);
17447
+ }
17430
17448
  getHours(date) {
17431
17449
  return getHours(date);
17432
17450
  }
@@ -26220,7 +26238,7 @@ function createVuetify$1() {
26220
26238
  goTo
26221
26239
  };
26222
26240
  }
26223
- const version$1 = "3.5.3-dev.2024-03-03";
26241
+ const version$1 = "3.5.3-dev.2024-03-06";
26224
26242
  createVuetify$1.version = version$1;
26225
26243
 
26226
26244
  // Vue's inject() can only be used in setup
@@ -26234,7 +26252,7 @@ function inject(key) {
26234
26252
 
26235
26253
  /* eslint-disable local-rules/sort-imports */
26236
26254
 
26237
- const version = "3.5.3-dev.2024-03-03";
26255
+ const version = "3.5.3-dev.2024-03-06";
26238
26256
 
26239
26257
  /* eslint-disable local-rules/sort-imports */
26240
26258