@vuetify/v0 0.0.23 → 0.0.24

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 (32) hide show
  1. package/dist/adapter-L4Php1_S.d.mts +97 -0
  2. package/dist/browser/index.js +1069 -809
  3. package/dist/components/index.d.mts +4 -4
  4. package/dist/components/index.mjs +6 -6
  5. package/dist/{components-BI9xdoz5.mjs → components-D_yAxHwn.mjs} +433 -113
  6. package/dist/composables/index.d.mts +5 -4
  7. package/dist/composables/index.mjs +4 -4
  8. package/dist/constants/index.d.mts +1 -1
  9. package/dist/constants/index.mjs +3 -3
  10. package/dist/date/index.d.mts +124 -0
  11. package/dist/date/index.mjs +7514 -0
  12. package/dist/{globals-WKdFmgwy.mjs → globals-BhNI7no7.mjs} +1 -1
  13. package/dist/{index-Bby5ljat.d.mts → index-DknfL2GU.d.mts} +1 -1
  14. package/dist/{index-_y91DmIS.d.mts → index-OghXharF.d.mts} +721 -359
  15. package/dist/{index-DYSwiS9k.d.mts → index-ZW2YLa57.d.mts} +21 -2
  16. package/dist/{index-rcTqb9U3.d.mts → index-isYKpbs6.d.mts} +426 -266
  17. package/dist/{index-C8YcMooA.d.mts → index-kvJsAOSg.d.mts} +13 -9
  18. package/dist/index.d.mts +8 -7
  19. package/dist/index.mjs +7 -7
  20. package/dist/json/attributes.json +100 -0
  21. package/dist/json/importMap.json +64 -0
  22. package/dist/json/tags.json +45 -0
  23. package/dist/json/web-types.json +1303 -392
  24. package/dist/types/index.d.mts +2 -2
  25. package/dist/{useClickOutside-B47X8X6-.mjs → useClickOutside-w-Y2QxHh.mjs} +591 -657
  26. package/dist/utilities/index.d.mts +3 -3
  27. package/dist/utilities/index.mjs +2 -2
  28. package/dist/{utilities-9i1hJnMd.mjs → utilities-B58TiS_S.mjs} +41 -34
  29. package/package.json +3 -2
  30. /package/dist/{constants-3l8TGg5J.mjs → constants-DHKqjdjH.mjs} +0 -0
  31. /package/dist/{htmlElements-CXObxj0V.mjs → htmlElements-DO9n35bD.mjs} +0 -0
  32. /package/dist/{index-DMQJJUrv.d.mts → index-cPmI99rd.d.mts} +0 -0
@@ -0,0 +1,97 @@
1
+ import { Temporal } from "@js-temporal/polyfill";
2
+
3
+ //#region src/composables/useDate/adapters/adapter.d.ts
4
+
5
+ interface DateAdapter<T = Temporal.PlainDateTime> {
6
+ /** Current locale for formatting */
7
+ locale?: string;
8
+ /** Create a date from various input types */
9
+ date: (value?: unknown) => T | null;
10
+ /** Convert to JavaScript Date object */
11
+ toJsDate: (value: T) => Date;
12
+ /** Parse ISO 8601 string */
13
+ parseISO: (date: string) => T;
14
+ /** Convert to ISO 8601 string */
15
+ toISO: (date: T) => string;
16
+ /** Parse date string with custom format */
17
+ parse: (value: string, format: string) => T | null;
18
+ /** Check if value is a valid date (type predicate for narrowing) */
19
+ isValid: (date: unknown) => date is T;
20
+ /** Check if value is null (type predicate for narrowing) */
21
+ isNull: (value: T | null) => value is null;
22
+ /** Get current locale code */
23
+ getCurrentLocaleCode: () => string;
24
+ /** Check if current locale uses 12-hour cycle */
25
+ is12HourCycleInCurrentLocale: () => boolean;
26
+ /** Format date using preset format key */
27
+ format: (date: T, formatString: string) => string;
28
+ /** Format date using custom format string */
29
+ formatByString: (date: T, formatString: string) => string;
30
+ /** Get helper text for format string (e.g., "mm/dd/yyyy") */
31
+ getFormatHelperText: (format: string) => string;
32
+ /** Format number according to locale */
33
+ formatNumber: (numberToFormat: string) => string;
34
+ /** Get meridiem text (AM/PM) for locale */
35
+ getMeridiemText: (ampm: 'am' | 'pm') => string;
36
+ startOfDay: (date: T) => T;
37
+ endOfDay: (date: T) => T;
38
+ /** @param firstDayOfWeek - 0=Sunday, 1=Monday, etc. */
39
+ startOfWeek: (date: T, firstDayOfWeek?: number) => T;
40
+ /** @param firstDayOfWeek - 0=Sunday, 1=Monday, etc. */
41
+ endOfWeek: (date: T, firstDayOfWeek?: number) => T;
42
+ startOfMonth: (date: T) => T;
43
+ endOfMonth: (date: T) => T;
44
+ startOfYear: (date: T) => T;
45
+ endOfYear: (date: T) => T;
46
+ addSeconds: (date: T, amount: number) => T;
47
+ addMinutes: (date: T, amount: number) => T;
48
+ addHours: (date: T, amount: number) => T;
49
+ addDays: (date: T, amount: number) => T;
50
+ addWeeks: (date: T, amount: number) => T;
51
+ addMonths: (date: T, amount: number) => T;
52
+ addYears: (date: T, amount: number) => T;
53
+ isAfter: (date: T, comparing: T) => boolean;
54
+ isAfterDay: (date: T, comparing: T) => boolean;
55
+ isAfterMonth: (date: T, comparing: T) => boolean;
56
+ isAfterYear: (date: T, comparing: T) => boolean;
57
+ isBefore: (date: T, comparing: T) => boolean;
58
+ isBeforeDay: (date: T, comparing: T) => boolean;
59
+ isBeforeMonth: (date: T, comparing: T) => boolean;
60
+ isBeforeYear: (date: T, comparing: T) => boolean;
61
+ isEqual: (date: T, comparing: T) => boolean;
62
+ isSameDay: (date: T, comparing: T) => boolean;
63
+ isSameMonth: (date: T, comparing: T) => boolean;
64
+ isSameYear: (date: T, comparing: T) => boolean;
65
+ isSameHour: (date: T, comparing: T) => boolean;
66
+ isWithinRange: (date: T, range: [T, T]) => boolean;
67
+ getYear: (date: T) => number;
68
+ getMonth: (date: T) => number;
69
+ getDate: (date: T) => number;
70
+ getHours: (date: T) => number;
71
+ getMinutes: (date: T) => number;
72
+ getSeconds: (date: T) => number;
73
+ /** @param comparing - Can be T or ISO string */
74
+ getDiff: (date: T, comparing: T | string, unit?: string) => number;
75
+ /** @param minimalDays - Minimum days in first week for it to count as week 1 */
76
+ getWeek: (date: T, firstDayOfWeek?: number, minimalDays?: number) => number;
77
+ /** Get number of days in the month */
78
+ getDaysInMonth: (date: T) => number;
79
+ setYear: (date: T, year: number) => T;
80
+ setMonth: (date: T, month: number) => T;
81
+ setDate: (date: T, day: number) => T;
82
+ setHours: (date: T, hours: number) => T;
83
+ setMinutes: (date: T, minutes: number) => T;
84
+ setSeconds: (date: T, seconds: number) => T;
85
+ getWeekdays: (firstDayOfWeek?: number, weekdayFormat?: 'long' | 'short' | 'narrow') => string[];
86
+ getWeekArray: (date: T, firstDayOfWeek?: number) => T[][];
87
+ /** Get array of months in a year (12 dates, one for each month) */
88
+ getMonthArray: (date: T) => T[];
89
+ /** Get array of years between start and end dates */
90
+ getYearRange: (start: T, end: T) => T[];
91
+ getNextMonth: (date: T) => T;
92
+ getPreviousMonth: (date: T) => T;
93
+ /** Merge date from one value with time from another */
94
+ mergeDateAndTime: (date: T, time: T) => T;
95
+ }
96
+ //#endregion
97
+ export { DateAdapter as t };