@vuetify/v0 0.0.24-beta.1 → 0.1.0

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 (33) hide show
  1. package/README.md +2 -2
  2. package/dist/adapter-L4Php1_S.d.mts +97 -0
  3. package/dist/browser/index.js +1318 -842
  4. package/dist/components/index.d.mts +4 -4
  5. package/dist/components/index.mjs +6 -6
  6. package/dist/{components-Dd4KKVtk.mjs → components-V4KaMfn-.mjs} +442 -117
  7. package/dist/composables/index.d.mts +5 -4
  8. package/dist/composables/index.mjs +4 -4
  9. package/dist/constants/index.d.mts +1 -1
  10. package/dist/constants/index.mjs +3 -3
  11. package/dist/date/index.d.mts +124 -0
  12. package/dist/date/index.mjs +7514 -0
  13. package/dist/{globals-CiCJWcbb.mjs → globals-CgcVstn0.mjs} +1 -1
  14. package/dist/{index-CAEB2sxS.d.mts → index-CSjKBMhp.d.mts} +738 -349
  15. package/dist/{index-C8YcMooA.d.mts → index-CoO8LW8o.d.mts} +13 -9
  16. package/dist/{index-DYSwiS9k.d.mts → index-DlxrzbvZ.d.mts} +21 -1
  17. package/dist/{index-rcTqb9U3.d.mts → index-DsiFkTD8.d.mts} +662 -306
  18. package/dist/{index-Bby5ljat.d.mts → index-t-t6sAn3.d.mts} +222 -41
  19. package/dist/index.d.mts +8 -7
  20. package/dist/index.mjs +7 -7
  21. package/dist/json/attributes.json +104 -0
  22. package/dist/json/importMap.json +20 -0
  23. package/dist/json/tags.json +46 -0
  24. package/dist/json/web-types.json +309 -9
  25. package/dist/types/index.d.mts +2 -2
  26. package/dist/{useClickOutside-BfEvdnA4.mjs → useClickOutside-Cj8CguMD.mjs} +844 -699
  27. package/dist/utilities/index.d.mts +3 -3
  28. package/dist/utilities/index.mjs +2 -2
  29. package/dist/{utilities-9i1hJnMd.mjs → utilities-B58TiS_S.mjs} +41 -34
  30. package/package.json +21 -3
  31. /package/dist/{constants-3l8TGg5J.mjs → constants-DHKqjdjH.mjs} +0 -0
  32. /package/dist/{htmlElements-CXObxj0V.mjs → htmlElements-DO9n35bD.mjs} +0 -0
  33. /package/dist/{index-DMQJJUrv.d.mts → index-cPmI99rd.d.mts} +0 -0
package/README.md CHANGED
@@ -46,7 +46,7 @@ This is a **pnpm monorepo** containing:
46
46
 
47
47
  - **Node.js** >= 22
48
48
  - **pnpm** >= 10.6
49
- - **Vue** >= 3.3.0
49
+ - **Vue** >= 3.5.0
50
50
 
51
51
  ## Installation
52
52
 
@@ -170,7 +170,7 @@ Plugin-capable composables following the trinity pattern:
170
170
  - **Slot-Driven**: Maximum flexibility through comprehensive slot APIs
171
171
  - **CSS Variables**: All styling configurable via `--v0-*` custom properties
172
172
  - **TypeScript Native**: Full type safety with generics for extensibility
173
- - **Minimal Dependencies**: Only Vue 3.3+ required (markdown libraries optional)
173
+ - **Minimal Dependencies**: Only Vue 3.5+ required (markdown libraries optional)
174
174
  - **Composable Architecture**: Reusable logic through Vue 3 composables
175
175
 
176
176
  ## Documentation
@@ -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 };