@vuetify/v0 0.1.8 → 0.1.9
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.
- package/SKILL.md +95 -0
- package/dist/adapter-CWp5eQ6R.d.mts +17 -0
- package/dist/{adapter-DIx4Rntl.d.mts → adapter-hDuQ9aNN.d.mts} +4 -4
- package/dist/browser/index.js +1352 -360
- package/dist/components/index.d.mts +2 -2
- package/dist/components/index.mjs +23 -23
- package/dist/{components-BbxKYAXs.mjs → components-mSy9az8x.mjs} +456 -231
- package/dist/composables/index.d.mts +16 -15
- package/dist/composables/index.mjs +22 -22
- package/dist/{consola-BVzYzeLH.d.mts → consola-C1OjyZVf.d.mts} +1 -1
- package/dist/constants/index.d.mts +1 -1
- package/dist/constants/index.mjs +1 -1
- package/dist/{createDataTable-DZouEhvH.mjs → createDataTable-DIl09siC.mjs} +5 -5
- package/dist/{createGroup-BpJFi41X.mjs → createGroup-PvzsLu9E.mjs} +1 -1
- package/dist/{createPagination-Bu8vE0JW.mjs → createPagination-DZSJ8aO5.mjs} +5 -5
- package/dist/{createSelection-8MX0OHXR.mjs → createSelection-DbWP6c7H.mjs} +1 -1
- package/dist/{createSingle-CbuOBb-E.mjs → createSingle-CeAJpbXs.mjs} +6 -6
- package/dist/{createTokens-CXlT0Vc6.mjs → createTokens-C1gIuKCK.mjs} +25 -4
- package/dist/data-table/adapters/client/index.d.mts +1 -1
- package/dist/data-table/adapters/client/index.mjs +3 -3
- package/dist/data-table/adapters/index.d.mts +4 -4
- package/dist/data-table/adapters/index.mjs +5 -5
- package/dist/data-table/adapters/server/index.d.mts +1 -1
- package/dist/data-table/adapters/server/index.mjs +3 -3
- package/dist/data-table/adapters/virtual/index.d.mts +1 -1
- package/dist/data-table/adapters/virtual/index.mjs +3 -3
- package/dist/data-table/index.d.mts +5 -5
- package/dist/data-table/index.mjs +14 -14
- package/dist/date/index.mjs +1 -1
- package/dist/features/adapters/posthog/index.mjs +2 -2
- package/dist/features/index.d.mts +1 -1
- package/dist/features/index.mjs +8 -8
- package/dist/{globals-ClSU6mqC.mjs → globals-3i9umzyz.mjs} +1 -1
- package/dist/{index-CxW4itj1.d.mts → index-BoK8Ln2f.d.mts} +1 -1
- package/dist/{index-B5NU2uB7.d.mts → index-C5XZRWlO.d.mts} +506 -166
- package/dist/{index-CmCMrlt3.d.mts → index-CLDBngUs.d.mts} +1 -1
- package/dist/{index-63-0oJS8.d.mts → index-D0qnkRbl.d.mts} +389 -183
- package/dist/index.d.mts +19 -18
- package/dist/index.mjs +23 -23
- package/dist/json/attributes.json +60 -0
- package/dist/json/importMap.json +24 -0
- package/dist/json/tags.json +40 -0
- package/dist/json/web-types.json +221 -1
- package/dist/locale/adapters/index.d.mts +3 -2
- package/dist/locale/adapters/index.mjs +2 -2
- package/dist/locale/adapters/v0/index.d.mts +1 -1
- package/dist/locale/adapters/v0/index.mjs +2 -2
- package/dist/locale/adapters/vue-i18n/index.d.mts +22 -0
- package/dist/locale/adapters/vue-i18n/index.mjs +26 -0
- package/dist/locale/index.d.mts +4 -3
- package/dist/locale/index.mjs +8 -9
- package/dist/logger/adapters/consola/index.d.mts +1 -1
- package/dist/logger/adapters/index.d.mts +4 -4
- package/dist/logger/adapters/index.mjs +2 -2
- package/dist/logger/adapters/pino/index.d.mts +1 -1
- package/dist/logger/adapters/pino/index.mjs +1 -1
- package/dist/logger/adapters/v0/index.d.mts +1 -1
- package/dist/logger/adapters/v0/index.mjs +2 -2
- package/dist/logger/index.d.mts +5 -5
- package/dist/logger/index.mjs +3 -3
- package/dist/notifications/index.d.mts +78 -0
- package/dist/notifications/index.mjs +215 -0
- package/dist/palettes/ant/index.d.mts +1 -1
- package/dist/palettes/index.d.mts +2 -2
- package/dist/palettes/material/index.d.mts +1 -1
- package/dist/palettes/md1/index.d.mts +1 -1
- package/dist/palettes/md2/index.d.mts +1 -1
- package/dist/palettes/radix/index.d.mts +1 -1
- package/dist/palettes/tailwind/index.d.mts +1 -1
- package/dist/permissions/adapters/index.d.mts +2 -2
- package/dist/permissions/adapters/index.mjs +1 -1
- package/dist/permissions/adapters/v0/index.d.mts +1 -1
- package/dist/permissions/adapters/v0/index.mjs +1 -1
- package/dist/permissions/index.d.mts +1 -1
- package/dist/permissions/index.mjs +5 -5
- package/dist/{pino-Bzighnkd.d.mts → pino-CM1iLXmi.d.mts} +1 -1
- package/dist/{posthog-BE7-t7cV.mjs → posthog-CCQFQ5XD.mjs} +1 -1
- package/dist/rules/index.d.mts +1 -1
- package/dist/rules/index.mjs +9 -10
- package/dist/{server-Ch9J86tb.d.mts → server-Ct-h4-OA.d.mts} +1 -1
- package/dist/{server-CZ6ahbEH.mjs → server-DHET3KNW.mjs} +1 -1
- package/dist/storage/adapters/index.d.mts +2 -2
- package/dist/storage/adapters/memory/index.d.mts +1 -1
- package/dist/storage/index.d.mts +3 -3
- package/dist/storage/index.mjs +21 -21
- package/dist/theme/adapters/index.d.mts +1 -1
- package/dist/theme/adapters/index.mjs +2 -2
- package/dist/theme/adapters/v0/index.d.mts +1 -1
- package/dist/theme/adapters/v0/index.mjs +2 -2
- package/dist/theme/index.d.mts +1 -1
- package/dist/theme/index.mjs +8 -8
- package/dist/{useClickOutside-W0Sur1rC.mjs → useClickOutside-hOhNk4eS.mjs} +860 -126
- package/dist/{useFeatures-CUicSI-E.mjs → useFeatures-CXRQvucQ.mjs} +3 -3
- package/dist/useLocale-BaufqE5Z.mjs +69 -0
- package/dist/{useLogger-DY1Hbcy1.mjs → useLogger-cGK00Ywd.mjs} +2 -2
- package/dist/{usePermissions-BSW59R4q.mjs → usePermissions-CR0HkjsF.mjs} +2 -2
- package/dist/{useRules-BbA6_gvs.mjs → useRules-LD-_-Hxt.mjs} +2 -2
- package/dist/{useTheme-Bdx2Lj5c.mjs → useTheme-Cs79AFNR.mjs} +5 -5
- package/dist/utilities/index.d.mts +1 -1
- package/dist/utilities/index.mjs +2 -1
- package/dist/{v0-BFseIsBi.mjs → v0-BJYwZgtp.mjs} +1 -1
- package/dist/v0-BdD1F6JK.d.mts +19 -0
- package/dist/{v0-YAqbXudL.mjs → v0-BoWQ8RK0.mjs} +1 -1
- package/dist/{v0-CdUL2eOn.d.mts → v0-CMeh39LQ.d.mts} +1 -1
- package/dist/v0-CehUknHv.mjs +62 -0
- package/dist/{v0-BZINNGoC.d.mts → v0-DFAgNbvC.d.mts} +1 -1
- package/dist/{v0-1xxC39wf.d.mts → v0-JPf99NKg.d.mts} +1 -1
- package/dist/{v0-2G2476h-.mjs → v0-Zu7neOYg.mjs} +1 -1
- package/dist/{virtual-DwBiFA25.d.mts → virtual-B1lRbO7Q.d.mts} +1 -1
- package/dist/{virtual-eDNVH1fz.mjs → virtual-D0_D5gkh.mjs} +1 -1
- package/package.json +11 -4
- package/dist/useLocale-cQlPxbpV.mjs +0 -87
- package/dist/v0-CAKa6tzG.d.mts +0 -22
- package/dist/v0-CHBrvw49.mjs +0 -35
- /package/dist/{adapter-JTFG3Jn8.d.mts → adapter-CJQav2JB.d.mts} +0 -0
- /package/dist/{index-MHkcqY_y.d.mts → index-BL4uTXWQ.d.mts} +0 -0
- /package/dist/{index-B5ZDDkXv.d.mts → index-BvTD7kU8.d.mts} +0 -0
- /package/dist/{index-NsE5nARK.d.mts → index-DSao7i57.d.mts} +0 -0
- /package/dist/{memory-BTtRdnNn.d.mts → memory-DyBabFV1.d.mts} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { o as ID, s as MaybeArray } from "./index-Dor6eAEc.mjs";
|
|
1
|
+
import { i as Extensible, o as ID, s as MaybeArray } from "./index-Dor6eAEc.mjs";
|
|
2
2
|
import { t as ContextTrinity } from "./index-CeNfBYuo.mjs";
|
|
3
|
-
import { b as RegistryTicketInput, c as TokenTicket, i as TokenContext, o as TokenOptions, p as RegistryContext, r as TokenCollection, v as RegistryOptions, y as RegistryTicket } from "./index-
|
|
3
|
+
import { b as RegistryTicketInput, c as TokenTicket, i as TokenContext, o as TokenOptions, p as RegistryContext, r as TokenCollection, v as RegistryOptions, y as RegistryTicket } from "./index-BoK8Ln2f.mjs";
|
|
4
4
|
import { t as DateAdapter } from "./adapter-CqP9Z4JU.mjs";
|
|
5
5
|
import { n as FeaturesAdapterFlags, r as FeaturesAdapterInterface } from "./index-dJKXAO5D.mjs";
|
|
6
|
-
import {
|
|
7
|
-
import { t as LoggerAdapter } from "./adapter-
|
|
8
|
-
import { t as StorageAdapter } from "./index-
|
|
6
|
+
import { t as LocaleAdapter } from "./adapter-CWp5eQ6R.mjs";
|
|
7
|
+
import { t as LoggerAdapter } from "./adapter-CJQav2JB.mjs";
|
|
8
|
+
import { t as StorageAdapter } from "./index-DSao7i57.mjs";
|
|
9
9
|
import { App, ComponentPublicInstance, ComputedRef, InjectionKey, MaybeRef, MaybeRefOrGetter, Reactive, Ref, ShallowRef, UnwrapNestedRefs, WatchSource } from "vue";
|
|
10
10
|
|
|
11
11
|
//#region src/composables/createModel/index.d.ts
|
|
@@ -1403,12 +1403,10 @@ interface BreakpointsContext {
|
|
|
1403
1403
|
mdAndUp: Readonly<ShallowRef<boolean>>;
|
|
1404
1404
|
lgAndUp: Readonly<ShallowRef<boolean>>;
|
|
1405
1405
|
xlAndUp: Readonly<ShallowRef<boolean>>;
|
|
1406
|
-
xxlAndUp: Readonly<ShallowRef<boolean>>;
|
|
1407
1406
|
smAndDown: Readonly<ShallowRef<boolean>>;
|
|
1408
1407
|
mdAndDown: Readonly<ShallowRef<boolean>>;
|
|
1409
1408
|
lgAndDown: Readonly<ShallowRef<boolean>>;
|
|
1410
1409
|
xlAndDown: Readonly<ShallowRef<boolean>>;
|
|
1411
|
-
xxlAndDown: Readonly<ShallowRef<boolean>>;
|
|
1412
1410
|
ssr: boolean;
|
|
1413
1411
|
update: () => void;
|
|
1414
1412
|
}
|
|
@@ -2417,6 +2415,13 @@ interface LazyOptions {
|
|
|
2417
2415
|
* @default false
|
|
2418
2416
|
*/
|
|
2419
2417
|
eager?: MaybeRefOrGetter<boolean>;
|
|
2418
|
+
/**
|
|
2419
|
+
* Delay in milliseconds before activation. Prevents flash on quick
|
|
2420
|
+
* hover-throughs by requiring the active state to persist for this
|
|
2421
|
+
* duration before booting content.
|
|
2422
|
+
* @default 0
|
|
2423
|
+
*/
|
|
2424
|
+
delay?: number;
|
|
2420
2425
|
}
|
|
2421
2426
|
interface LazyContext {
|
|
2422
2427
|
/**
|
|
@@ -2494,11 +2499,10 @@ interface LocaleTicketInput extends SingleTicketInput {}
|
|
|
2494
2499
|
type LocaleTicket<Z extends LocaleTicketInput = LocaleTicketInput> = SingleTicket<Z>;
|
|
2495
2500
|
interface LocaleContext<Z extends LocaleTicketInput = LocaleTicketInput, E extends LocaleTicket<Z> = LocaleTicket<Z>> extends Omit<SingleContext<Z, E>, 'register'> {
|
|
2496
2501
|
/**
|
|
2497
|
-
* Translate a message key with optional parameters
|
|
2502
|
+
* Translate a message key with optional parameters.
|
|
2498
2503
|
*
|
|
2499
2504
|
* @param key - The message key to look up
|
|
2500
|
-
* @param params - Optional object
|
|
2501
|
-
* @param fallback - Optional fallback string if key not found in messages
|
|
2505
|
+
* @param params - Optional named params object, followed by positional params
|
|
2502
2506
|
* @returns The translated and interpolated message
|
|
2503
2507
|
*
|
|
2504
2508
|
* @example
|
|
@@ -2506,16 +2510,14 @@ interface LocaleContext<Z extends LocaleTicketInput = LocaleTicketInput, E exten
|
|
|
2506
2510
|
* // Simple key lookup
|
|
2507
2511
|
* locale.t('hello') // Returns message for 'hello' or 'hello' if not found
|
|
2508
2512
|
*
|
|
2509
|
-
* // With parameters
|
|
2513
|
+
* // With named parameters
|
|
2510
2514
|
* locale.t('greeting', { name: 'World' }) // 'Hello {name}' → 'Hello World'
|
|
2511
2515
|
*
|
|
2512
|
-
* // With
|
|
2513
|
-
* locale.t('
|
|
2514
|
-
* // If 'pagination.goToPage' exists: uses that message with {page} replaced
|
|
2515
|
-
* // If not found: returns 'Go to page 5'
|
|
2516
|
+
* // With positional parameters
|
|
2517
|
+
* locale.t('sum', 1, 2, 3) // 'Sum: {0} + {1} = {2}' → 'Sum: 1 + 2 = 3'
|
|
2516
2518
|
* ```
|
|
2517
2519
|
*/
|
|
2518
|
-
t: (key: string, params
|
|
2520
|
+
t: (key: string, ...params: unknown[]) => string;
|
|
2519
2521
|
n: (value: number) => string;
|
|
2520
2522
|
/** Register a locale (accepts input type, returns output type) */
|
|
2521
2523
|
register: (registration?: Partial<Z>) => E;
|
|
@@ -2622,7 +2624,7 @@ interface MediaQueryContext {
|
|
|
2622
2624
|
/** Whether the media query currently matches */
|
|
2623
2625
|
readonly matches: Readonly<ShallowRef<boolean>>;
|
|
2624
2626
|
/** The current media query string */
|
|
2625
|
-
readonly query:
|
|
2627
|
+
readonly query: Readonly<Ref<string>>;
|
|
2626
2628
|
/** The underlying MediaQueryList (null on server) */
|
|
2627
2629
|
readonly mediaQueryList: Readonly<ShallowRef<MediaQueryList | null>>;
|
|
2628
2630
|
/** Stop listening and clean up */
|
|
@@ -3138,171 +3140,6 @@ declare function createNestedContext<Z extends NestedTicketInput = NestedTicketI
|
|
|
3138
3140
|
*/
|
|
3139
3141
|
declare function useNested<Z extends NestedTicketInput = NestedTicketInput, E extends NestedTicket<Z> = NestedTicket<Z>, R extends NestedContext<Z, E> = NestedContext<Z, E>>(namespace?: string): R;
|
|
3140
3142
|
//#endregion
|
|
3141
|
-
//#region src/composables/usePermissions/adapters/adapter.d.ts
|
|
3142
|
-
interface PermissionAdapterInterface {
|
|
3143
|
-
can: <Z extends PermissionTicket = PermissionTicket>(role: ID, action: string, subject: string, context: Record<string, any>, permissions: PermissionContext<Z>) => boolean;
|
|
3144
|
-
}
|
|
3145
|
-
declare abstract class PermissionAdapter implements PermissionAdapterInterface {
|
|
3146
|
-
abstract can<Z extends PermissionTicket = PermissionTicket>(role: ID, action: string, subject: string, context: Record<string, any>, permissions: PermissionContext<Z>): boolean;
|
|
3147
|
-
}
|
|
3148
|
-
//#endregion
|
|
3149
|
-
//#region src/composables/usePermissions/index.d.ts
|
|
3150
|
-
interface PermissionTicket extends TokenTicket<boolean | ((context: Record<string, any>) => boolean)> {}
|
|
3151
|
-
interface PermissionContext<Z extends PermissionTicket = PermissionTicket> extends TokenContext<Z> {
|
|
3152
|
-
can: (id: ID, action: string, subject: string, context?: Record<string, any>) => boolean;
|
|
3153
|
-
}
|
|
3154
|
-
interface PermissionOptions extends TokenOptions {
|
|
3155
|
-
adapter?: PermissionAdapter;
|
|
3156
|
-
permissions?: Record<ID, any>;
|
|
3157
|
-
}
|
|
3158
|
-
interface PermissionContextOptions extends PermissionOptions {
|
|
3159
|
-
namespace?: string;
|
|
3160
|
-
}
|
|
3161
|
-
interface PermissionPluginOptions extends PermissionContextOptions {}
|
|
3162
|
-
/**
|
|
3163
|
-
* Creates a new permissions instance.
|
|
3164
|
-
*
|
|
3165
|
-
* @param options The options for the permissions instance.
|
|
3166
|
-
* @template Z The type of the permission ticket.
|
|
3167
|
-
* @template E The type of the permission context.
|
|
3168
|
-
* @returns A new permissions instance.
|
|
3169
|
-
*
|
|
3170
|
-
* @see https://0.vuetifyjs.com/composables/plugins/use-permissions
|
|
3171
|
-
*
|
|
3172
|
-
* @example
|
|
3173
|
-
* ```ts
|
|
3174
|
-
* import { createPermissions } from '@vuetify/v0'
|
|
3175
|
-
*
|
|
3176
|
-
* const [usePermissions, providePermissions] = createPermissions({
|
|
3177
|
-
* namespace: 'v0:permissions',
|
|
3178
|
-
* permissions: {
|
|
3179
|
-
* admin: [['read', 'users']],
|
|
3180
|
-
* editor: [['edit', 'posts']],
|
|
3181
|
-
* },
|
|
3182
|
-
* })
|
|
3183
|
-
* ```
|
|
3184
|
-
*/
|
|
3185
|
-
declare function createPermissions<Z extends PermissionTicket = PermissionTicket, E extends PermissionContext<Z> = PermissionContext<Z>>(_options?: PermissionOptions): E;
|
|
3186
|
-
declare const createPermissionsContext: <_E extends PermissionContext<PermissionTicket> = PermissionContext<PermissionTicket>>(_options?: PermissionContextOptions | undefined) => ContextTrinity<_E>, createPermissionsPlugin: (_options?: PermissionContextOptions | undefined) => Plugin, usePermissions: <_E extends PermissionContext<PermissionTicket> = PermissionContext<PermissionTicket>>(namespace?: string) => _E;
|
|
3187
|
-
//#endregion
|
|
3188
|
-
//#region src/composables/usePopover/index.d.ts
|
|
3189
|
-
interface PopoverOptions {
|
|
3190
|
-
/** Auto-generated if not provided */
|
|
3191
|
-
id?: string;
|
|
3192
|
-
/** CSS position-area value @default 'bottom' */
|
|
3193
|
-
positionArea?: string;
|
|
3194
|
-
/** CSS position-try-fallbacks value @default 'most-width bottom' */
|
|
3195
|
-
positionTry?: string;
|
|
3196
|
-
/** External ref for bidirectional open state (e.g., from defineModel) */
|
|
3197
|
-
isOpen?: Ref<boolean>;
|
|
3198
|
-
}
|
|
3199
|
-
interface PopoverReturn {
|
|
3200
|
-
/** Whether the popover is open */
|
|
3201
|
-
isOpen: Ref<boolean>;
|
|
3202
|
-
/** Unique ID for the popover */
|
|
3203
|
-
id: string;
|
|
3204
|
-
/** Open the popover */
|
|
3205
|
-
open: () => void;
|
|
3206
|
-
/** Close the popover */
|
|
3207
|
-
close: () => void;
|
|
3208
|
-
/** Toggle open/close */
|
|
3209
|
-
toggle: () => void;
|
|
3210
|
-
/** Styles to spread on the activator element (anchor-name) */
|
|
3211
|
-
anchorStyles: Readonly<Ref<Record<string, string>>>;
|
|
3212
|
-
/** Attrs to spread on the content element (id, popover) */
|
|
3213
|
-
contentAttrs: Readonly<Ref<{
|
|
3214
|
-
id: string;
|
|
3215
|
-
popover: '';
|
|
3216
|
-
}>>;
|
|
3217
|
-
/** Styles to spread on the content element (positioning) */
|
|
3218
|
-
contentStyles: Readonly<Ref<Record<string, string>>>;
|
|
3219
|
-
/** Attach to a content element — wires show/hide watch + toggle event sync */
|
|
3220
|
-
attach: (el: MaybeRefOrGetter<HTMLElement | null | undefined>) => void;
|
|
3221
|
-
}
|
|
3222
|
-
declare function usePopover(options?: PopoverOptions): PopoverReturn;
|
|
3223
|
-
//#endregion
|
|
3224
|
-
//#region src/composables/useProxyModel/index.d.ts
|
|
3225
|
-
interface ProxyModelOptions {
|
|
3226
|
-
multiple?: MaybeRefOrGetter<boolean>;
|
|
3227
|
-
transformIn?: (val: unknown) => unknown;
|
|
3228
|
-
transformOut?: (val: unknown) => unknown;
|
|
3229
|
-
}
|
|
3230
|
-
/**
|
|
3231
|
-
* Minimal interface for useProxyModel's context parameter.
|
|
3232
|
-
* Both ModelContext (Set-based) and SliderContext (Array-based) satisfy this.
|
|
3233
|
-
*/
|
|
3234
|
-
interface ProxyModelTarget {
|
|
3235
|
-
selectedValues: {
|
|
3236
|
-
readonly value: Iterable<unknown>;
|
|
3237
|
-
};
|
|
3238
|
-
apply: (values: unknown[], options?: {
|
|
3239
|
-
multiple?: boolean;
|
|
3240
|
-
}) => void;
|
|
3241
|
-
select?: (id: string | number) => void;
|
|
3242
|
-
multiple?: MaybeRefOrGetter<boolean>;
|
|
3243
|
-
on?: (event: string, cb: (data: unknown) => void) => void;
|
|
3244
|
-
off?: (event: string, cb: (data: unknown) => void) => void;
|
|
3245
|
-
}
|
|
3246
|
-
/**
|
|
3247
|
-
* Syncs a ref with a model context bidirectionally.
|
|
3248
|
-
*
|
|
3249
|
-
* @param context The model context to bind to.
|
|
3250
|
-
* @param model The ref to sync.
|
|
3251
|
-
* @param options The options for the proxy model.
|
|
3252
|
-
* @returns A function to stop the sync.
|
|
3253
|
-
*
|
|
3254
|
-
* @see https://0.vuetifyjs.com/composables/forms/use-proxy-model
|
|
3255
|
-
*
|
|
3256
|
-
* @example
|
|
3257
|
-
* ```ts
|
|
3258
|
-
* import { createSelection, useProxyModel } from '@vuetify/v0'
|
|
3259
|
-
*
|
|
3260
|
-
* const model = ref()
|
|
3261
|
-
* const registry = createSelection({ events: true })
|
|
3262
|
-
* registry.onboard([
|
|
3263
|
-
* { id: 'item-1', value: 'Item 1' },
|
|
3264
|
-
* { id: 'item-2', value: 'Item 2' },
|
|
3265
|
-
* ])
|
|
3266
|
-
*
|
|
3267
|
-
* const stop = useProxyModel(registry, model)
|
|
3268
|
-
* ```
|
|
3269
|
-
*/
|
|
3270
|
-
declare function useProxyModel(context: ProxyModelTarget, model: Ref<unknown>, options?: ProxyModelOptions): () => void;
|
|
3271
|
-
//#endregion
|
|
3272
|
-
//#region src/composables/useProxyRegistry/index.d.ts
|
|
3273
|
-
interface ProxyRegistryOptions {
|
|
3274
|
-
deep?: boolean;
|
|
3275
|
-
}
|
|
3276
|
-
interface ProxyRegistryContext<Z extends RegistryTicket = RegistryTicket> {
|
|
3277
|
-
keys: ID[];
|
|
3278
|
-
values: Z[];
|
|
3279
|
-
entries: [ID, Z][];
|
|
3280
|
-
size: number;
|
|
3281
|
-
}
|
|
3282
|
-
/**
|
|
3283
|
-
* Creates a proxy registry that provides reactive objects for registry data.
|
|
3284
|
-
*
|
|
3285
|
-
* @param registry The registry instance to proxy.
|
|
3286
|
-
* @param options The options for the proxy registry.
|
|
3287
|
-
* @template Z The input ticket type (what users provide to register).
|
|
3288
|
-
* @template E The output ticket type (what users receive from get/values).
|
|
3289
|
-
* @returns A proxy registry with reactive objects.
|
|
3290
|
-
*
|
|
3291
|
-
* @see https://0.vuetifyjs.com/composables/registration/use-proxy-registry
|
|
3292
|
-
*
|
|
3293
|
-
* @example
|
|
3294
|
-
* ```ts
|
|
3295
|
-
* import { createRegistry, useProxyRegistry } from '@vuetify/v0'
|
|
3296
|
-
*
|
|
3297
|
-
* const registry = createRegistry({ events: true })
|
|
3298
|
-
* const proxy = useProxyRegistry(registry)
|
|
3299
|
-
*
|
|
3300
|
-
* registry.register({ value: 'Item 1' })
|
|
3301
|
-
* console.log(proxy.size) // 1
|
|
3302
|
-
* ```
|
|
3303
|
-
*/
|
|
3304
|
-
declare function useProxyRegistry<Z extends RegistryTicketInput = RegistryTicketInput, E extends RegistryTicket & Z = RegistryTicket & Z>(registry: RegistryContext<Z, E>, options?: ProxyRegistryOptions): ProxyRegistryContext<E>;
|
|
3305
|
-
//#endregion
|
|
3306
3143
|
//#region src/composables/createQueue/index.d.ts
|
|
3307
3144
|
/**
|
|
3308
3145
|
* Input type for queue tickets - what users provide to register().
|
|
@@ -3609,6 +3446,325 @@ declare function createQueueContext<Z extends QueueTicketInput = QueueTicketInpu
|
|
|
3609
3446
|
*/
|
|
3610
3447
|
declare function useQueue<Z extends QueueTicketInput = QueueTicketInput, E extends QueueTicket<Z> = QueueTicket<Z>, R extends QueueContext<Z, E> = QueueContext<Z, E>>(namespace?: string): R;
|
|
3611
3448
|
//#endregion
|
|
3449
|
+
//#region src/composables/useNotifications/index.d.ts
|
|
3450
|
+
/** Notification urgency level. Maps to ARIA roles: `'error'`/`'warning'` → `role="alert"`, `'info'`/`'success'` → `role="status"`. Extensible — custom values like `'critical'` are allowed with autocomplete for defaults. */
|
|
3451
|
+
type NotificationSeverity = Extensible<'info' | 'warning' | 'error' | 'success'>;
|
|
3452
|
+
/** Input shape for creating a notification via {@link send} or {@link register}. */
|
|
3453
|
+
interface NotificationInput extends RegistryTicketInput {
|
|
3454
|
+
/** Notification headline. */
|
|
3455
|
+
subject?: string;
|
|
3456
|
+
/** Extended message body. */
|
|
3457
|
+
body?: string;
|
|
3458
|
+
/** Urgency level for styling and ARIA role selection. */
|
|
3459
|
+
severity?: NotificationSeverity;
|
|
3460
|
+
/** Arbitrary payload for routing, filtering, or rendering. */
|
|
3461
|
+
data?: Record<string, unknown>;
|
|
3462
|
+
/** Auto-dismiss duration in ms. Overrides the global default. `undefined` uses the global timeout. */
|
|
3463
|
+
timeout?: number;
|
|
3464
|
+
}
|
|
3465
|
+
/**
|
|
3466
|
+
* Hydrated notification with lifecycle state and convenience methods.
|
|
3467
|
+
* Returned by {@link send}, {@link register}, and {@link onboard}.
|
|
3468
|
+
*/
|
|
3469
|
+
type NotificationTicket<Z extends NotificationInput = NotificationInput> = RegistryTicket & Z & {
|
|
3470
|
+
/** When the notification was created. */createdAt: Date; /** When the notification was marked as read, or `null` if unread. */
|
|
3471
|
+
readAt: Date | null; /** When the notification was seen in the viewport, or `null` if unseen. */
|
|
3472
|
+
seenAt: Date | null; /** When the notification was archived, or `null` if active. */
|
|
3473
|
+
archivedAt: Date | null; /** Snooze expiry, or `null` if not snoozed. */
|
|
3474
|
+
snoozedUntil: Date | null; /** Mark as read. Sets `readAt` to now. */
|
|
3475
|
+
read: () => void; /** Mark as unread. Clears `readAt`. */
|
|
3476
|
+
unread: () => void; /** Mark as seen. Sets `seenAt` to now. */
|
|
3477
|
+
seen: () => void; /** Archive. Sets `archivedAt` to now. */
|
|
3478
|
+
archive: () => void; /** Restore from archive. Clears `archivedAt`. */
|
|
3479
|
+
unarchive: () => void; /** Snooze until the given time. */
|
|
3480
|
+
snooze: (until: Date) => void; /** Cancel snooze. Clears `snoozedUntil`. */
|
|
3481
|
+
wake: () => void; /** Remove from the display queue only. Registry entry is preserved for inbox/history. Use `ticket.unregister()` for full removal. */
|
|
3482
|
+
dismiss: () => void;
|
|
3483
|
+
};
|
|
3484
|
+
/**
|
|
3485
|
+
* Context passed to adapter `setup()`. Provides methods for inbound
|
|
3486
|
+
* notification creation and event subscription for outbound sync.
|
|
3487
|
+
*/
|
|
3488
|
+
interface NotificationsAdapterContext<Z extends NotificationInput = NotificationInput, E extends NotificationTicket<Z> = NotificationTicket<Z>> {
|
|
3489
|
+
/** Create a notification and enqueue for toast display. Use for real-time inbound items. */
|
|
3490
|
+
send: (input: Z) => E;
|
|
3491
|
+
/** Create a notification in registry only (no toast). Use for initial/historical items. */
|
|
3492
|
+
register: (input: Z) => E;
|
|
3493
|
+
/** Subscribe to notification lifecycle events (e.g., `'notification:read'`). */
|
|
3494
|
+
on: (event: string, handler: (data: unknown) => void) => void;
|
|
3495
|
+
/** Unsubscribe from a lifecycle event. */
|
|
3496
|
+
off: (event: string, handler: (data: unknown) => void) => void;
|
|
3497
|
+
}
|
|
3498
|
+
/**
|
|
3499
|
+
* Adapter interface for bridging external notification services.
|
|
3500
|
+
* Adapters receive an {@link NotificationsAdapterContext} on setup
|
|
3501
|
+
* and optionally clean up on dispose.
|
|
3502
|
+
*/
|
|
3503
|
+
interface NotificationsAdapterInterface<Z extends NotificationInput = NotificationInput, E extends NotificationTicket<Z> = NotificationTicket<Z>> {
|
|
3504
|
+
/** Called once when the plugin installs. Wire inbound/outbound sync here. */
|
|
3505
|
+
setup: (context: NotificationsAdapterContext<Z, E>) => void;
|
|
3506
|
+
/** Called on app unmount. Tear down listeners and connections. */
|
|
3507
|
+
dispose?: () => void;
|
|
3508
|
+
}
|
|
3509
|
+
/** Options for {@link createNotifications}. */
|
|
3510
|
+
interface NotificationsOptions extends RegistryOptions {
|
|
3511
|
+
/** Default auto-dismiss timeout in ms for the toast queue. @default 3000 */
|
|
3512
|
+
timeout?: number;
|
|
3513
|
+
}
|
|
3514
|
+
/** Full notification context returned by {@link createNotifications} and {@link useNotifications}. */
|
|
3515
|
+
interface NotificationsContext<Z extends NotificationInput = NotificationInput, E extends NotificationTicket<Z> = NotificationTicket<Z>> extends RegistryContext<E> {
|
|
3516
|
+
/** Create a notification and enqueue for toast display. */
|
|
3517
|
+
send: (input: Z) => E;
|
|
3518
|
+
/** The toast display queue. Access `queue.values()`, `queue.pause()`, `queue.resume()`. */
|
|
3519
|
+
queue: QueueContext;
|
|
3520
|
+
/** Mark as read. Emits `notification:read`. */
|
|
3521
|
+
read: (id: ID) => void;
|
|
3522
|
+
/** Mark as unread. Emits `notification:unread`. */
|
|
3523
|
+
unread: (id: ID) => void;
|
|
3524
|
+
/** Mark as seen. Emits `notification:seen`. */
|
|
3525
|
+
seen: (id: ID) => void;
|
|
3526
|
+
/** Archive. Emits `notification:archived`. */
|
|
3527
|
+
archive: (id: ID) => void;
|
|
3528
|
+
/** Restore from archive. Emits `notification:unarchived`. */
|
|
3529
|
+
unarchive: (id: ID) => void;
|
|
3530
|
+
/** Snooze until the given time. Emits `notification:snoozed`. */
|
|
3531
|
+
snooze: (id: ID, until: Date) => void;
|
|
3532
|
+
/** Cancel snooze. Emits `notification:unsnoozed`. */
|
|
3533
|
+
wake: (id: ID) => void;
|
|
3534
|
+
/** Mark all unread notifications as read. */
|
|
3535
|
+
readAll: () => void;
|
|
3536
|
+
/** Archive all unarchived notifications. */
|
|
3537
|
+
archiveAll: () => void;
|
|
3538
|
+
}
|
|
3539
|
+
declare function createNotifications<Z extends NotificationInput = NotificationInput, E extends NotificationTicket<Z> = NotificationTicket<Z>, R extends NotificationsContext<Z, E> = NotificationsContext<Z, E>>(options?: NotificationsOptions): R;
|
|
3540
|
+
interface NotificationsPluginOptions extends NotificationsOptions {
|
|
3541
|
+
namespace?: string;
|
|
3542
|
+
adapter?: NotificationsAdapterInterface;
|
|
3543
|
+
}
|
|
3544
|
+
/**
|
|
3545
|
+
* Notification management with registry, event system, and optional adapters.
|
|
3546
|
+
*
|
|
3547
|
+
* @see https://0.vuetifyjs.com/composables/plugins/use-notifications
|
|
3548
|
+
*
|
|
3549
|
+
* @example
|
|
3550
|
+
* ```ts
|
|
3551
|
+
* import { createNotificationsPlugin, useNotifications } from '@vuetify/v0'
|
|
3552
|
+
*
|
|
3553
|
+
* // Install as plugin
|
|
3554
|
+
* app.use(createNotificationsPlugin())
|
|
3555
|
+
*
|
|
3556
|
+
* // Use in components
|
|
3557
|
+
* const notifications = useNotifications()
|
|
3558
|
+
* notifications.send({ subject: 'Saved', severity: 'success' })
|
|
3559
|
+
* ```
|
|
3560
|
+
*/
|
|
3561
|
+
declare const createNotificationsContext: <_E extends NotificationsContext<NotificationInput, NotificationTicket<NotificationInput>> = NotificationsContext<NotificationInput, NotificationTicket<NotificationInput>>>(_options?: NotificationsPluginOptions | undefined) => ContextTrinity<_E>, createNotificationsPlugin: (_options?: NotificationsPluginOptions | undefined) => Plugin, useNotifications: <_E extends NotificationsContext<NotificationInput, NotificationTicket<NotificationInput>> = NotificationsContext<NotificationInput, NotificationTicket<NotificationInput>>>(namespace?: string) => _E;
|
|
3562
|
+
//#endregion
|
|
3563
|
+
//#region src/composables/usePermissions/adapters/adapter.d.ts
|
|
3564
|
+
interface PermissionAdapterInterface {
|
|
3565
|
+
can: <Z extends PermissionTicket = PermissionTicket>(role: ID, action: string, subject: string, context: Record<string, any>, permissions: PermissionContext<Z>) => boolean;
|
|
3566
|
+
}
|
|
3567
|
+
declare abstract class PermissionAdapter implements PermissionAdapterInterface {
|
|
3568
|
+
abstract can<Z extends PermissionTicket = PermissionTicket>(role: ID, action: string, subject: string, context: Record<string, any>, permissions: PermissionContext<Z>): boolean;
|
|
3569
|
+
}
|
|
3570
|
+
//#endregion
|
|
3571
|
+
//#region src/composables/usePermissions/index.d.ts
|
|
3572
|
+
interface PermissionTicket extends TokenTicket<boolean | ((context: Record<string, any>) => boolean)> {}
|
|
3573
|
+
interface PermissionContext<Z extends PermissionTicket = PermissionTicket> extends TokenContext<Z> {
|
|
3574
|
+
can: (id: ID, action: string, subject: string, context?: Record<string, any>) => boolean;
|
|
3575
|
+
}
|
|
3576
|
+
interface PermissionOptions extends TokenOptions {
|
|
3577
|
+
adapter?: PermissionAdapter;
|
|
3578
|
+
permissions?: Record<ID, any>;
|
|
3579
|
+
}
|
|
3580
|
+
interface PermissionContextOptions extends PermissionOptions {
|
|
3581
|
+
namespace?: string;
|
|
3582
|
+
}
|
|
3583
|
+
interface PermissionPluginOptions extends PermissionContextOptions {}
|
|
3584
|
+
/**
|
|
3585
|
+
* Creates a new permissions instance.
|
|
3586
|
+
*
|
|
3587
|
+
* @param options The options for the permissions instance.
|
|
3588
|
+
* @template Z The type of the permission ticket.
|
|
3589
|
+
* @template E The type of the permission context.
|
|
3590
|
+
* @returns A new permissions instance.
|
|
3591
|
+
*
|
|
3592
|
+
* @see https://0.vuetifyjs.com/composables/plugins/use-permissions
|
|
3593
|
+
*
|
|
3594
|
+
* @example
|
|
3595
|
+
* ```ts
|
|
3596
|
+
* import { createPermissions } from '@vuetify/v0'
|
|
3597
|
+
*
|
|
3598
|
+
* const [usePermissions, providePermissions] = createPermissions({
|
|
3599
|
+
* namespace: 'v0:permissions',
|
|
3600
|
+
* permissions: {
|
|
3601
|
+
* admin: [['read', 'users']],
|
|
3602
|
+
* editor: [['edit', 'posts']],
|
|
3603
|
+
* },
|
|
3604
|
+
* })
|
|
3605
|
+
* ```
|
|
3606
|
+
*/
|
|
3607
|
+
declare function createPermissions<Z extends PermissionTicket = PermissionTicket, E extends PermissionContext<Z> = PermissionContext<Z>>(_options?: PermissionOptions): E;
|
|
3608
|
+
declare const createPermissionsContext: <_E extends PermissionContext<PermissionTicket> = PermissionContext<PermissionTicket>>(_options?: PermissionContextOptions | undefined) => ContextTrinity<_E>, createPermissionsPlugin: (_options?: PermissionContextOptions | undefined) => Plugin, usePermissions: <_E extends PermissionContext<PermissionTicket> = PermissionContext<PermissionTicket>>(namespace?: string) => _E;
|
|
3609
|
+
//#endregion
|
|
3610
|
+
//#region src/composables/usePopover/index.d.ts
|
|
3611
|
+
interface PopoverOptions {
|
|
3612
|
+
/** Auto-generated if not provided */
|
|
3613
|
+
id?: string;
|
|
3614
|
+
/** CSS position-area value @default 'bottom' */
|
|
3615
|
+
positionArea?: string;
|
|
3616
|
+
/** CSS position-try-fallbacks value @default 'most-width bottom' */
|
|
3617
|
+
positionTry?: string;
|
|
3618
|
+
/** External ref for bidirectional open state (e.g., from defineModel) */
|
|
3619
|
+
isOpen?: Ref<boolean>;
|
|
3620
|
+
/** Delay in ms before showing the popover. @default 0 */
|
|
3621
|
+
showDelay?: number;
|
|
3622
|
+
/** Delay in ms before hiding the popover. @default 0 */
|
|
3623
|
+
hideDelay?: number;
|
|
3624
|
+
}
|
|
3625
|
+
interface PopoverReturn {
|
|
3626
|
+
/** Whether the popover is open */
|
|
3627
|
+
isOpen: Ref<boolean>;
|
|
3628
|
+
/** Unique ID for the popover */
|
|
3629
|
+
id: string;
|
|
3630
|
+
/** Open the popover */
|
|
3631
|
+
open: () => void;
|
|
3632
|
+
/** Close the popover */
|
|
3633
|
+
close: () => void;
|
|
3634
|
+
/** Toggle open/close */
|
|
3635
|
+
toggle: () => void;
|
|
3636
|
+
/** Styles to spread on the activator element (anchor-name) */
|
|
3637
|
+
anchorStyles: Readonly<Ref<Record<string, string>>>;
|
|
3638
|
+
/** Attrs to spread on the content element (id, popover) */
|
|
3639
|
+
contentAttrs: Readonly<Ref<{
|
|
3640
|
+
id: string;
|
|
3641
|
+
popover: '';
|
|
3642
|
+
}>>;
|
|
3643
|
+
/** Styles to spread on the content element (positioning) */
|
|
3644
|
+
contentStyles: Readonly<Ref<Record<string, string>>>;
|
|
3645
|
+
/** Attach to a content element — wires show/hide watch + toggle event sync */
|
|
3646
|
+
attach: (el: MaybeRefOrGetter<HTMLElement | null | undefined>) => void;
|
|
3647
|
+
}
|
|
3648
|
+
declare function usePopover(options?: PopoverOptions): PopoverReturn;
|
|
3649
|
+
//#endregion
|
|
3650
|
+
//#region src/composables/useProxyModel/index.d.ts
|
|
3651
|
+
interface ProxyModelOptions {
|
|
3652
|
+
multiple?: MaybeRefOrGetter<boolean>;
|
|
3653
|
+
transformIn?: (val: unknown) => unknown;
|
|
3654
|
+
transformOut?: (val: unknown) => unknown;
|
|
3655
|
+
}
|
|
3656
|
+
/**
|
|
3657
|
+
* Minimal interface for useProxyModel's context parameter.
|
|
3658
|
+
* Both ModelContext (Set-based) and SliderContext (Array-based) satisfy this.
|
|
3659
|
+
*/
|
|
3660
|
+
interface ProxyModelTarget {
|
|
3661
|
+
selectedValues: {
|
|
3662
|
+
readonly value: Iterable<unknown>;
|
|
3663
|
+
};
|
|
3664
|
+
apply: (values: unknown[], options?: {
|
|
3665
|
+
multiple?: boolean;
|
|
3666
|
+
}) => void;
|
|
3667
|
+
select?: (id: string | number) => void;
|
|
3668
|
+
multiple?: MaybeRefOrGetter<boolean>;
|
|
3669
|
+
on?: (event: string, cb: (data: unknown) => void) => void;
|
|
3670
|
+
off?: (event: string, cb: (data: unknown) => void) => void;
|
|
3671
|
+
}
|
|
3672
|
+
/**
|
|
3673
|
+
* Syncs a ref with a model context bidirectionally.
|
|
3674
|
+
*
|
|
3675
|
+
* @param context The model context to bind to.
|
|
3676
|
+
* @param model The ref to sync.
|
|
3677
|
+
* @param options The options for the proxy model.
|
|
3678
|
+
* @returns A function to stop the sync.
|
|
3679
|
+
*
|
|
3680
|
+
* @see https://0.vuetifyjs.com/composables/forms/use-proxy-model
|
|
3681
|
+
*
|
|
3682
|
+
* @example
|
|
3683
|
+
* ```ts
|
|
3684
|
+
* import { createSelection, useProxyModel } from '@vuetify/v0'
|
|
3685
|
+
*
|
|
3686
|
+
* const model = ref()
|
|
3687
|
+
* const registry = createSelection({ events: true })
|
|
3688
|
+
* registry.onboard([
|
|
3689
|
+
* { id: 'item-1', value: 'Item 1' },
|
|
3690
|
+
* { id: 'item-2', value: 'Item 2' },
|
|
3691
|
+
* ])
|
|
3692
|
+
*
|
|
3693
|
+
* const stop = useProxyModel(registry, model)
|
|
3694
|
+
* ```
|
|
3695
|
+
*/
|
|
3696
|
+
declare function useProxyModel(context: ProxyModelTarget, model: Ref<unknown>, options?: ProxyModelOptions): () => void;
|
|
3697
|
+
//#endregion
|
|
3698
|
+
//#region src/composables/useProxyRegistry/index.d.ts
|
|
3699
|
+
interface ProxyRegistryOptions {
|
|
3700
|
+
deep?: boolean;
|
|
3701
|
+
}
|
|
3702
|
+
interface ProxyRegistryContext<Z extends RegistryTicket = RegistryTicket> {
|
|
3703
|
+
keys: ID[];
|
|
3704
|
+
values: Z[];
|
|
3705
|
+
entries: [ID, Z][];
|
|
3706
|
+
size: number;
|
|
3707
|
+
}
|
|
3708
|
+
/**
|
|
3709
|
+
* Creates a proxy registry that provides reactive objects for registry data.
|
|
3710
|
+
*
|
|
3711
|
+
* @param registry The registry instance to proxy.
|
|
3712
|
+
* @param options The options for the proxy registry.
|
|
3713
|
+
* @template Z The input ticket type (what users provide to register).
|
|
3714
|
+
* @template E The output ticket type (what users receive from get/values).
|
|
3715
|
+
* @returns A proxy registry with reactive objects.
|
|
3716
|
+
*
|
|
3717
|
+
* @see https://0.vuetifyjs.com/composables/registration/use-proxy-registry
|
|
3718
|
+
*
|
|
3719
|
+
* @example
|
|
3720
|
+
* ```ts
|
|
3721
|
+
* import { createRegistry, useProxyRegistry } from '@vuetify/v0'
|
|
3722
|
+
*
|
|
3723
|
+
* const registry = createRegistry({ events: true })
|
|
3724
|
+
* const proxy = useProxyRegistry(registry)
|
|
3725
|
+
*
|
|
3726
|
+
* registry.register({ value: 'Item 1' })
|
|
3727
|
+
* console.log(proxy.size) // 1
|
|
3728
|
+
* ```
|
|
3729
|
+
*/
|
|
3730
|
+
declare function useProxyRegistry<Z extends RegistryTicketInput = RegistryTicketInput, E extends RegistryTicket & Z = RegistryTicket & Z>(registry: RegistryContext<Z, E>, options?: ProxyRegistryOptions): ProxyRegistryContext<E>;
|
|
3731
|
+
//#endregion
|
|
3732
|
+
//#region src/composables/useRaf/index.d.ts
|
|
3733
|
+
interface UseRafReturn {
|
|
3734
|
+
/** Request animation frame (cancels pending) */
|
|
3735
|
+
(): void;
|
|
3736
|
+
/** Cancel pending animation frame */
|
|
3737
|
+
cancel: () => void;
|
|
3738
|
+
/** Whether an animation frame is pending */
|
|
3739
|
+
readonly isActive: Readonly<Ref<boolean>>;
|
|
3740
|
+
}
|
|
3741
|
+
/**
|
|
3742
|
+
* Scope-disposed safe requestAnimationFrame.
|
|
3743
|
+
*
|
|
3744
|
+
* @param callback Function to call on animation frame.
|
|
3745
|
+
* @returns Callable that requests frame (canceling pending), with cancel method.
|
|
3746
|
+
*
|
|
3747
|
+
* @see https://0.vuetifyjs.com/composables/system/use-raf
|
|
3748
|
+
*
|
|
3749
|
+
* @example
|
|
3750
|
+
* ```ts
|
|
3751
|
+
* // Basic usage
|
|
3752
|
+
* const update = useRaf((timestamp) => {
|
|
3753
|
+
* // Runs on next animation frame
|
|
3754
|
+
* })
|
|
3755
|
+
*
|
|
3756
|
+
* update() // Request frame
|
|
3757
|
+
* update() // Cancels previous, requests new (deduplicated)
|
|
3758
|
+
*
|
|
3759
|
+
* // Manual cancel
|
|
3760
|
+
* update.cancel()
|
|
3761
|
+
*
|
|
3762
|
+
* // Check if pending
|
|
3763
|
+
* if (update.isActive.value) { ... }
|
|
3764
|
+
* ```
|
|
3765
|
+
*/
|
|
3766
|
+
declare function useRaf(callback: (timestamp: DOMHighResTimeStamp) => void): UseRafReturn;
|
|
3767
|
+
//#endregion
|
|
3612
3768
|
//#region src/composables/useResizeObserver/index.d.ts
|
|
3613
3769
|
interface ResizeObserverEntry {
|
|
3614
3770
|
contentRect: {
|
|
@@ -4862,6 +5018,56 @@ interface ThemePluginOptions extends ThemeContextOptions {}
|
|
|
4862
5018
|
declare function createTheme<Z extends ThemeTicketInput = ThemeTicketInput, E extends ThemeTicket<Z> = ThemeTicket<Z>, R extends ThemeContext<Z, E> = ThemeContext<Z, E>>(_options?: ThemeOptions): R;
|
|
4863
5019
|
declare const createThemeContext: <_E extends ThemeContext<ThemeTicketInput, ThemeTicket<ThemeTicketInput>> = ThemeContext<ThemeTicketInput, ThemeTicket<ThemeTicketInput>>>(_options?: ThemePluginOptions | undefined) => ContextTrinity<_E>, createThemePlugin: (_options?: ThemePluginOptions | undefined) => Plugin, useTheme: <_E extends ThemeContext<ThemeTicketInput, ThemeTicket<ThemeTicketInput>> = ThemeContext<ThemeTicketInput, ThemeTicket<ThemeTicketInput>>>(namespace?: string) => _E;
|
|
4864
5020
|
//#endregion
|
|
5021
|
+
//#region src/composables/useTimer/index.d.ts
|
|
5022
|
+
interface TimerOptions {
|
|
5023
|
+
/**
|
|
5024
|
+
* Duration in milliseconds.
|
|
5025
|
+
* @default 1000
|
|
5026
|
+
*/
|
|
5027
|
+
duration?: number;
|
|
5028
|
+
/**
|
|
5029
|
+
* Whether the timer repeats after firing.
|
|
5030
|
+
* @default false
|
|
5031
|
+
*/
|
|
5032
|
+
repeat?: boolean;
|
|
5033
|
+
}
|
|
5034
|
+
interface TimerContext {
|
|
5035
|
+
/** Start the timer. Restarts if already running. */
|
|
5036
|
+
start: () => void;
|
|
5037
|
+
/** Stop the timer and reset remaining to full duration. */
|
|
5038
|
+
stop: () => void;
|
|
5039
|
+
/** Pause the timer, preserving remaining time. No-op if not running. */
|
|
5040
|
+
pause: () => void;
|
|
5041
|
+
/** Resume from where pause left off. No-op if not paused. */
|
|
5042
|
+
resume: () => void;
|
|
5043
|
+
/** Milliseconds left until next fire. */
|
|
5044
|
+
remaining: ShallowRef<number>;
|
|
5045
|
+
/** Whether the timer is currently active (started and not stopped). */
|
|
5046
|
+
isActive: ShallowRef<boolean>;
|
|
5047
|
+
/** Whether the timer is currently paused. */
|
|
5048
|
+
isPaused: ShallowRef<boolean>;
|
|
5049
|
+
}
|
|
5050
|
+
/**
|
|
5051
|
+
* Creates a reactive timer with pause/resume support.
|
|
5052
|
+
*
|
|
5053
|
+
* @param handler Callback invoked when the timer fires.
|
|
5054
|
+
* @param options Timer configuration.
|
|
5055
|
+
* @returns Timer controls and reactive state.
|
|
5056
|
+
*
|
|
5057
|
+
* @see https://0.vuetifyjs.com/composables/system/use-timer
|
|
5058
|
+
*
|
|
5059
|
+
* @example
|
|
5060
|
+
* ```ts
|
|
5061
|
+
* const timer = useTimer(() => console.log('fired'), { duration: 5000 })
|
|
5062
|
+
*
|
|
5063
|
+
* timer.start()
|
|
5064
|
+
* timer.pause()
|
|
5065
|
+
* timer.resume()
|
|
5066
|
+
* timer.stop()
|
|
5067
|
+
* ```
|
|
5068
|
+
*/
|
|
5069
|
+
declare function useTimer(handler: () => void, options?: TimerOptions): TimerContext;
|
|
5070
|
+
//#endregion
|
|
4865
5071
|
//#region src/composables/createTimeline/index.d.ts
|
|
4866
5072
|
interface TimelineContext<Z extends TimelineTicket> extends RegistryContext<Z> {
|
|
4867
5073
|
/**
|
|
@@ -5471,4 +5677,4 @@ interface VirtualFocusReturn {
|
|
|
5471
5677
|
}
|
|
5472
5678
|
declare function useVirtualFocus(items: () => VirtualFocusItem[], options: VirtualFocusOptions): VirtualFocusReturn;
|
|
5473
5679
|
//#endregion
|
|
5474
|
-
export {
|
|
5680
|
+
export { StepContext as $, SelectionTicketInput as $a, BreakpointsOptions as $i, useMediaQuery as $n, FormValue as $r, usePopover as $t, ThemeContext as A, createGroup as Aa, useFeatures as Ai, useQueue as An, UseIntersectionObserverReturn as Ar, Vuetify0RtlAdapter as At, useTheme as B, useBreadcrumbs as Ba, createDate as Bi, NestedOptions as Bn, createHydrationPlugin as Br, UseResizeObserverReturn as Bt, createTimelineContext as C, createOverflowContext as Ca, FeatureOptions as Ci, QueueContext as Cn, useLocale as Cr, RtlOptions as Ct, useTimer as D, GroupOptions as Da, createFeatures as Di, QueueTicketInput as Dn, IntersectionObserverEntry as Dr, createRtlFallback as Dt, TimerOptions as E, GroupContextOptions as Ea, FeatureTicketInput as Ei, QueueTicket as En, useLazy as Er, createRtlContext as Et, ThemeTicket as F, BreadcrumbsContext as Fa, useWindowEventListener as Fi, singleOpenStrategy as Fn, HydrationOptions as Fr, RovingItem as Ft, StorageContext as G, SingleTicketInput as Ga, ClickOutsideIgnoreTarget as Gi, OpenStrategy as Gn, useHotkey as Gr, ProxyRegistryContext as Gt, Vuetify0ThemeOptions as H, SingleContextOptions as Ha, createDatePlugin as Hi, NestedSelectionMode as Hn, PlatformContext as Hr, useResizeObserver as Ht, ThemeTicketInput as I, BreadcrumbsContextOptions as Ia, DateContext as Ii, NestedActiveMode as In, HydrationPluginOptions as Ir, useRovingFocus as It, StoragePluginOptions as J, useSingle as Ja, UseClickOutsideReturn as Ji, ObservableNodeList as Jn, FormOptions as Jr, ProxyModelOptions as Jt, StorageContextOptions as K, createSingle as Ka, ClickOutsideTarget as Ki, OpenStrategyContext as Kn, FormContext as Kr, ProxyRegistryOptions as Kt, createTheme as L, BreadcrumbsOptions as La, DateContextOptions as Li, NestedContext as Ln, createFallbackHydration as Lr, ResizeObserverEntry as Lt, ThemeOptions as M, useGroup as Ma, EventHandler as Mi, createNestedContext as Mn, useIntersectionObserver as Mr, RtlAdapterSetupContext as Mt, ThemePluginOptions as N, BreadcrumbTicket as Na, useDocumentEventListener as Ni, useNested as Nn, HydrationContext as Nr, RovingFocusOptions as Nt, Colors as O, GroupTicket as Oa, createFeaturesContext as Oi, createQueue as On, IntersectionObserverOptions as Or, createRtlPlugin as Ot, ThemeRecord as P, BreadcrumbTicketInput as Pa, useEventListener as Pi, multipleOpenStrategy as Pn, HydrationContextOptions as Pr, RovingFocusReturn as Pt, useStorage as Q, SelectionTicket as Qa, BreakpointsContextOptions as Qi, MediaQueryContext as Qn, FormValidationRule as Qr, PopoverReturn as Qt, createThemeContext as R, createBreadcrumbs as Ra, DateOptions as Ri, NestedContextOptions as Rn, createHydration as Rr, ResizeObserverOptions as Rt, createTimeline as S, createOverflow as Sa, FeatureContextOptions as Si, useNotifications as Sn, createLocalePlugin as Sr, RtlContextOptions as St, TimerContext as T, GroupContext as Ta, FeatureTicket as Ti, QueueOptions as Tn, LazyOptions as Tr, createRtl as Tt, ThemeAdapter as U, SingleOptions as Ua, useDate as Ui, NestedTicket as Un, UseHotkeyOptions as Ur, UseRafReturn as Ut, Vuetify0ThemeAdapter as V, SingleContext as Va, createDateContext as Vi, NestedRegistration as Vn, useHydration as Vr, useElementSize as Vt, ThemeAdapterInterface as W, SingleTicket as Wa, ClickOutsideElement as Wi, NestedTicketInput as Wn, UseHotkeyReturn as Wr, useRaf as Wt, createStorageContext as X, SelectionContextOptions as Xa, BreakpointName as Xi, UseMutationObserverReturn as Xn, FormTicketInput as Xr, useProxyModel as Xt, createStorage as Y, SelectionContext as Ya, useClickOutside as Yi, UseMutationObserverOptions as Yn, FormTicket as Yr, ProxyModelTarget as Yt, createStoragePlugin as Z, SelectionOptions as Za, BreakpointsContext as Zi, useMutationObserver as Zn, FormValidationResult as Zr, PopoverOptions as Zt, useToggleScope as _, provideContext as _a, createRulesPlugin as _i, NotificationsOptions as _n, LocaleTicket as _r, SliderContext as _t, ScrollToOptions as a, toReactive as aa, ValidationTicket as ai, createPermissions as an, ModelTicket as ao, LoggerOptions as ar, createStepContext as at, TimelineOptions as b, OverflowContextOptions as ba, isStandardSchema as bi, createNotificationsContext as bn, createLocaleContext as br, createSlider as bt, VirtualContextOptions as c, toArray as ca, RuleAlias as ci, usePermissions as cn, createLoggerContext as cr, StackContextOptions as ct, VirtualOptions as d, PluginOptions as da, RulesContext as di, NotificationInput as dn, LogLevel as dr, StackTicket as dt, BreakpointsPluginOptions as ea, createForm as ei, PermissionContext as en, createSelection as eo, usePrefersContrast as er, StepContextOptions as et, VirtualState as f, createPlugin as fa, RulesContextOptions as fi, NotificationSeverity as fn, LocaleContext as fr, StackTicketInput as ft, ToggleScopeControls as g, createContext as ga, createRulesFallback as gi, NotificationsContext as gn, LocaleRecord as gr, useStack as gt, useVirtual as h, CreateContextOptions as ha, createRulesContext as hi, NotificationsAdapterInterface as hn, LocalePluginOptions as hr, createStackPlugin as ht, useVirtualFocus as i, useBreakpoints as ia, ValidationOptions as ii, PermissionTicket as in, ModelOptions as io, LoggerContextOptions as ir, createStep as it, ThemeContextOptions as j, createGroupContext as ja, CleanupFunction as ji, createNested as jn, useElementIntersection as jr, RtlAdapter as jt, ThemeColors as k, GroupTicketInput as ka, createFeaturesPlugin as ki, createQueueContext as kn, UseElementIntersectionReturn as kr, useRtl as kt, VirtualDirection as l, Plugin as la, RuleAliases as li, PermissionAdapter as ln, createLoggerPlugin as lr, StackOptions as lt, createVirtualContext as m, ContextKey as ma, createRules as mi, NotificationsAdapterContext as mn, LocaleOptions as mr, createStackContext as mt, VirtualFocusOptions as n, createBreakpointsContext as na, useForm as ni, PermissionOptions as nn, useSelection as no, usePrefersReducedMotion as nr, StepTicket as nt, VirtualAnchor as o, MaybeElementRef as oa, ValidationTicketInput as oi, createPermissionsContext as on, ModelTicketInput as oo, LoggerPluginOptions as or, useStep as ot, createVirtual as p, createPluginContext as pa, RulesOptions as pi, NotificationTicket as pn, LocaleContextOptions as pr, createStack as pt, StorageOptions as q, createSingleContext as qa, UseClickOutsideOptions as qi, MutationObserverRecord as qn, FormContextOptions as qr, useProxyRegistry as qt, VirtualFocusReturn as r, createBreakpointsPlugin as ra, ValidationContext as ri, PermissionPluginOptions as rn, ModelContext as ro, LoggerContext as rr, StepTicketInput as rt, VirtualContext as s, toElement as sa, createValidation as si, createPermissionsPlugin as sn, createModel as so, createLogger as sr, StackContext as st, VirtualFocusItem as t, createBreakpoints as ta, createFormContext as ti, PermissionContextOptions as tn, createSelectionContext as to, usePrefersDark as tr, StepOptions as tt, VirtualItem as u, PluginContextConfig as ua, RuleInput as ui, PermissionAdapterInterface as un, useLogger as ur, StackPluginOptions as ut, TimelineContext as v, useContext as va, useRules as vi, NotificationsPluginOptions as vn, LocaleTicketInput as vr, SliderOptions as vt, useTimeline as w, useOverflow as wa, FeaturePluginOptions as wi, QueueContextOptions as wn, LazyContext as wr, RtlPluginOptions as wt, TimelineTicket as x, OverflowOptions as xa, FeatureContext as xi, createNotificationsPlugin as xn, createLocaleFallback as xr, RtlContext as xt, TimelineContextOptions as y, OverflowContext as ya, StandardSchemaV1 as yi, createNotifications as yn, createLocale as yr, SliderTicketInput as yt, createThemePlugin as z, createBreadcrumbsContext as za, DatePluginOptions as zi, NestedOpenMode as zn, createHydrationContext as zr, UseElementSizeReturn as zt };
|