@vuetify/v0 0.1.7 → 0.1.8
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/dist/browser/index.js +1705 -458
- package/dist/components/index.d.mts +2 -2
- package/dist/components/index.mjs +19 -19
- package/dist/{components-CACff-Lt.mjs → components-BbxKYAXs.mjs} +1203 -312
- package/dist/composables/index.d.mts +3 -3
- package/dist/composables/index.mjs +18 -18
- package/dist/constants/index.mjs +1 -1
- package/dist/{createDataTable-CLI4TALE.mjs → createDataTable-DZouEhvH.mjs} +2 -2
- package/dist/{createGroup-Cf6lK9BR.mjs → createGroup-BpJFi41X.mjs} +1 -1
- package/dist/{createSelection-DvOR2tKk.mjs → createSelection-8MX0OHXR.mjs} +1 -1
- package/dist/{createSingle-Bbcwcq4R.mjs → createSingle-CbuOBb-E.mjs} +1 -1
- package/dist/{createTokens-CMRBDlzN.mjs → createTokens-CXlT0Vc6.mjs} +3 -2
- package/dist/data-table/adapters/client/index.mjs +1 -1
- package/dist/data-table/adapters/index.mjs +1 -1
- package/dist/data-table/adapters/server/index.mjs +1 -1
- package/dist/data-table/adapters/virtual/index.mjs +1 -1
- package/dist/data-table/index.mjs +10 -10
- 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-BqRH_jdr.mjs → globals-ClSU6mqC.mjs} +1 -1
- package/dist/{index-BE848tZ2.d.mts → index-63-0oJS8.d.mts} +155 -53
- package/dist/{index-CKbxWC4t.d.mts → index-B5NU2uB7.d.mts} +2362 -1314
- package/dist/{index-8sflFIN8.d.mts → index-CxW4itj1.d.mts} +2 -0
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +19 -19
- package/dist/json/attributes.json +252 -0
- package/dist/json/importMap.json +60 -0
- package/dist/json/tags.json +128 -0
- package/dist/json/web-types.json +1023 -228
- package/dist/locale/adapters/index.mjs +2 -2
- package/dist/locale/adapters/v0/index.mjs +2 -2
- package/dist/locale/index.d.mts +1 -1
- package/dist/locale/index.mjs +8 -8
- package/dist/logger/adapters/index.mjs +2 -2
- package/dist/logger/adapters/pino/index.mjs +1 -1
- package/dist/logger/adapters/v0/index.mjs +2 -2
- package/dist/logger/index.d.mts +1 -1
- package/dist/logger/index.mjs +3 -3
- 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/{posthog-DbPqmaAp.mjs → posthog-BE7-t7cV.mjs} +1 -1
- package/dist/rules/index.d.mts +1 -1
- package/dist/rules/index.mjs +9 -9
- package/dist/storage/index.d.mts +1 -1
- package/dist/storage/index.mjs +17 -17
- 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-YOGwKo7v.mjs → useClickOutside-W0Sur1rC.mjs} +477 -125
- package/dist/{useFeatures-BGDgUrdr.mjs → useFeatures-CUicSI-E.mjs} +3 -3
- package/dist/{useLocale-C8I_fNAS.mjs → useLocale-cQlPxbpV.mjs} +11 -7
- package/dist/{useLogger-B70T4SgK.mjs → useLogger-DY1Hbcy1.mjs} +2 -2
- package/dist/{usePermissions-afVt2qR7.mjs → usePermissions-BSW59R4q.mjs} +2 -2
- package/dist/{useRules-7C92Xzyt.mjs → useRules-BbA6_gvs.mjs} +3 -3
- package/dist/{useTheme-jp2wL2FJ.mjs → useTheme-Bdx2Lj5c.mjs} +4 -4
- package/dist/utilities/index.mjs +1 -1
- package/dist/{v0-CGlkn5u7.mjs → v0-2G2476h-.mjs} +1 -1
- package/dist/{v0-V-cQsuZD.mjs → v0-BFseIsBi.mjs} +1 -1
- package/dist/{v0-1bfmyZ5_.d.mts → v0-BZINNGoC.d.mts} +1 -1
- package/dist/{v0-CHvU3jQE.mjs → v0-CHBrvw49.mjs} +1 -1
- package/package.json +2 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { 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-CxW4itj1.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
6
|
import { n as LocaleAdapter } from "./v0-CAKa6tzG.mjs";
|
|
@@ -1388,6 +1388,7 @@ declare function toReactive<Z extends object>(objectRef: MaybeRef<Z>): UnwrapNes
|
|
|
1388
1388
|
type BreakpointName = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
1389
1389
|
interface BreakpointsContext {
|
|
1390
1390
|
breakpoints: Readonly<Record<BreakpointName, number>>;
|
|
1391
|
+
mobileBreakpoint: BreakpointName | number;
|
|
1391
1392
|
name: Readonly<ShallowRef<BreakpointName>>;
|
|
1392
1393
|
width: Readonly<ShallowRef<number>>;
|
|
1393
1394
|
height: Readonly<ShallowRef<number>>;
|
|
@@ -1959,51 +1960,50 @@ declare const createRulesContext: <_E extends RulesContext = RulesContext>(_opti
|
|
|
1959
1960
|
//#endregion
|
|
1960
1961
|
//#region src/composables/createValidation/index.d.ts
|
|
1961
1962
|
/**
|
|
1962
|
-
* Input type for validation tickets
|
|
1963
|
-
*
|
|
1964
|
-
* @template V The type of the field value.
|
|
1963
|
+
* Input type for validation tickets.
|
|
1964
|
+
* Each ticket represents a single validation rule.
|
|
1965
1965
|
*/
|
|
1966
|
-
interface ValidationTicketInput
|
|
1967
|
-
/** Validation rules: functions, alias strings, or Standard Schema objects. */
|
|
1968
|
-
rules?: (FormValidationRule | RuleAlias | StandardSchemaV1)[];
|
|
1969
|
-
/** Whether this field is disabled. */
|
|
1970
|
-
disabled?: boolean;
|
|
1971
|
-
}
|
|
1966
|
+
interface ValidationTicketInput extends GroupTicketInput<FormValidationRule> {}
|
|
1972
1967
|
/**
|
|
1973
|
-
* Output type for validation tickets
|
|
1974
|
-
*
|
|
1975
|
-
* @template Z The input ticket type.
|
|
1968
|
+
* Output type for validation tickets.
|
|
1969
|
+
* Includes selection methods from GroupTicket for enabling/disabling rules.
|
|
1976
1970
|
*/
|
|
1977
|
-
type ValidationTicket<Z extends ValidationTicketInput = ValidationTicketInput> =
|
|
1978
|
-
/** Run validation. Pass silent=true to check without updating state. */validate: (silent?: boolean) => Promise<boolean>; /** Reset value, errors, and validation state. */
|
|
1979
|
-
reset: () => void; /** Whether this field is disabled. */
|
|
1980
|
-
disabled: boolean; /** Current validation error messages. */
|
|
1981
|
-
errors: ShallowRef<string[]>; /** Resolved validation rules (FormValidationRule[]). */
|
|
1982
|
-
rules: FormValidationRule[]; /** Whether the field value has not been modified since registration or last reset. */
|
|
1983
|
-
isPristine: ShallowRef<boolean>; /** Tri-state: null (not validated), true (valid), false (invalid). */
|
|
1984
|
-
isValid: ShallowRef<boolean | null>; /** Whether async validation is in progress. */
|
|
1985
|
-
isValidating: ShallowRef<boolean>;
|
|
1986
|
-
};
|
|
1971
|
+
type ValidationTicket<Z extends ValidationTicketInput = ValidationTicketInput> = GroupTicket<Z>;
|
|
1987
1972
|
/**
|
|
1988
|
-
* Context for managing
|
|
1973
|
+
* Context for managing validation rules for a single input.
|
|
1989
1974
|
*
|
|
1990
1975
|
* @template Z The input ticket type.
|
|
1991
1976
|
* @template E The output ticket type.
|
|
1992
1977
|
*/
|
|
1993
|
-
interface ValidationContext<Z extends ValidationTicketInput = ValidationTicketInput, E extends ValidationTicket<Z> = ValidationTicket<Z>> extends Omit<
|
|
1994
|
-
register: (
|
|
1995
|
-
onboard: (
|
|
1996
|
-
/**
|
|
1997
|
-
|
|
1998
|
-
/**
|
|
1999
|
-
|
|
1978
|
+
interface ValidationContext<Z extends ValidationTicketInput = ValidationTicketInput, E extends ValidationTicket<Z> = ValidationTicket<Z>> extends Omit<GroupContext<Z, E>, 'register' | 'onboard' | 'reset'> {
|
|
1979
|
+
register: (rule: RuleInput | Partial<Z>) => E;
|
|
1980
|
+
onboard: (rules: (RuleInput | Partial<Z>)[]) => E[];
|
|
1981
|
+
/** Run validation against all active (selected) rules. */
|
|
1982
|
+
validate: (value?: unknown, silent?: boolean) => Promise<boolean>;
|
|
1983
|
+
/** Reset errors and validation state. Does not affect rule selection. */
|
|
1984
|
+
reset: () => void;
|
|
1985
|
+
/** Current validation error messages. */
|
|
1986
|
+
errors: ShallowRef<string[]>;
|
|
1987
|
+
/** Tri-state: null (not validated), true (valid), false (invalid). */
|
|
1988
|
+
isValid: ShallowRef<boolean | null>;
|
|
1989
|
+
/** Whether async validation is in progress. */
|
|
1990
|
+
isValidating: ShallowRef<boolean>;
|
|
1991
|
+
}
|
|
1992
|
+
interface ValidationOptions extends GroupOptions {
|
|
1993
|
+
/** Initial rules to register. */
|
|
1994
|
+
rules?: RuleInput[];
|
|
1995
|
+
/** Value source for validate() when called without arguments. */
|
|
1996
|
+
value?: MaybeRefOrGetter<unknown>;
|
|
2000
1997
|
}
|
|
2001
|
-
interface ValidationOptions extends RegistryOptions {}
|
|
2002
1998
|
/**
|
|
2003
|
-
* Creates a
|
|
1999
|
+
* Creates a per-input validation instance.
|
|
2000
|
+
*
|
|
2001
|
+
* Built on `createGroup` — each registered rule becomes a ticket that can be
|
|
2002
|
+
* enabled/disabled via selection methods (`select`, `unselect`, `toggle`).
|
|
2003
|
+
* Only selected (active) rules run during validation.
|
|
2004
2004
|
*
|
|
2005
2005
|
* @param options The options for the validation instance.
|
|
2006
|
-
* @returns A new validation context
|
|
2006
|
+
* @returns A new validation context.
|
|
2007
2007
|
*
|
|
2008
2008
|
* @see https://0.vuetifyjs.com/composables/forms/create-validation
|
|
2009
2009
|
*
|
|
@@ -2011,22 +2011,21 @@ interface ValidationOptions extends RegistryOptions {}
|
|
|
2011
2011
|
* ```ts
|
|
2012
2012
|
* import { createValidation } from '@vuetify/v0'
|
|
2013
2013
|
*
|
|
2014
|
-
* const validation = createValidation(
|
|
2015
|
-
*
|
|
2016
|
-
*
|
|
2017
|
-
*
|
|
2018
|
-
*
|
|
2019
|
-
* rules: [(v) => !!v || 'Required'],
|
|
2014
|
+
* const validation = createValidation({
|
|
2015
|
+
* rules: [
|
|
2016
|
+
* v => !!v || 'Required',
|
|
2017
|
+
* v => /^.+@\S+\.\S+$/.test(String(v)) || 'Invalid email',
|
|
2018
|
+
* ],
|
|
2020
2019
|
* })
|
|
2021
2020
|
*
|
|
2022
|
-
* await
|
|
2021
|
+
* await validation.validate('')
|
|
2023
2022
|
*
|
|
2024
|
-
* console.log(
|
|
2023
|
+
* console.log(validation.errors.value) // ['Required', 'Invalid email']
|
|
2025
2024
|
*
|
|
2026
|
-
*
|
|
2025
|
+
* validation.reset()
|
|
2027
2026
|
* ```
|
|
2028
2027
|
*/
|
|
2029
|
-
declare function createValidation<Z extends ValidationTicketInput = ValidationTicketInput, E extends ValidationTicket<Z> = ValidationTicket<Z>, R extends ValidationContext<Z, E> = ValidationContext<Z, E>>(
|
|
2028
|
+
declare function createValidation<Z extends ValidationTicketInput = ValidationTicketInput, E extends ValidationTicket<Z> = ValidationTicket<Z>, R extends ValidationContext<Z, E> = ValidationContext<Z, E>>(_options?: ValidationOptions): R;
|
|
2030
2029
|
//#endregion
|
|
2031
2030
|
//#region src/composables/createForm/index.d.ts
|
|
2032
2031
|
type FormValidationResult = string | boolean | Promise<string | boolean>;
|
|
@@ -2058,9 +2057,9 @@ interface FormContext<Z extends FormTicketInput = FormTicketInput, E extends For
|
|
|
2058
2057
|
/** Reset all registered validations. */
|
|
2059
2058
|
reset: () => void;
|
|
2060
2059
|
/** Whether the form is disabled. Components can read this to conditionally disable inputs. */
|
|
2061
|
-
disabled:
|
|
2060
|
+
disabled: MaybeRefOrGetter<boolean>;
|
|
2062
2061
|
/** Whether the form is readonly. Components can read this to conditionally disable inputs. */
|
|
2063
|
-
readonly:
|
|
2062
|
+
readonly: MaybeRefOrGetter<boolean>;
|
|
2064
2063
|
/** Aggregate: true if all validations valid, false if any invalid, null if any unvalidated. */
|
|
2065
2064
|
isValid: ComputedRef<boolean | null>;
|
|
2066
2065
|
/** Aggregate: true if any validation is in progress. */
|
|
@@ -2090,14 +2089,14 @@ interface FormContextOptions extends FormOptions {
|
|
|
2090
2089
|
* @example
|
|
2091
2090
|
* ```ts
|
|
2092
2091
|
* import { createForm, createValidation } from '@vuetify/v0'
|
|
2092
|
+
* import { shallowRef } from 'vue'
|
|
2093
2093
|
*
|
|
2094
2094
|
* const form = createForm()
|
|
2095
2095
|
*
|
|
2096
|
-
* //
|
|
2097
|
-
* const
|
|
2098
|
-
* const
|
|
2099
|
-
*
|
|
2100
|
-
* value: '',
|
|
2096
|
+
* // Each validation is one input — form is just the coordinator
|
|
2097
|
+
* const email = shallowRef('')
|
|
2098
|
+
* const validation = createValidation({
|
|
2099
|
+
* value: email,
|
|
2101
2100
|
* rules: ['required', 'email'],
|
|
2102
2101
|
* })
|
|
2103
2102
|
*
|
|
@@ -2516,7 +2515,7 @@ interface LocaleContext<Z extends LocaleTicketInput = LocaleTicketInput, E exten
|
|
|
2516
2515
|
* // If not found: returns 'Go to page 5'
|
|
2517
2516
|
* ```
|
|
2518
2517
|
*/
|
|
2519
|
-
t: (key: string, params?: Record<string, unknown
|
|
2518
|
+
t: (key: string, params?: Record<string, unknown> | unknown[], fallback?: string) => string;
|
|
2520
2519
|
n: (value: number) => string;
|
|
2521
2520
|
/** Register a locale (accepts input type, returns output type) */
|
|
2522
2521
|
register: (registration?: Partial<Z>) => E;
|
|
@@ -3186,6 +3185,42 @@ interface PermissionPluginOptions extends PermissionContextOptions {}
|
|
|
3186
3185
|
declare function createPermissions<Z extends PermissionTicket = PermissionTicket, E extends PermissionContext<Z> = PermissionContext<Z>>(_options?: PermissionOptions): E;
|
|
3187
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;
|
|
3188
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
|
|
3189
3224
|
//#region src/composables/useProxyModel/index.d.ts
|
|
3190
3225
|
interface ProxyModelOptions {
|
|
3191
3226
|
multiple?: MaybeRefOrGetter<boolean>;
|
|
@@ -3667,6 +3702,41 @@ interface UseElementSizeReturn extends UseResizeObserverReturn {
|
|
|
3667
3702
|
*/
|
|
3668
3703
|
declare function useElementSize(target: MaybeElementRef): UseElementSizeReturn;
|
|
3669
3704
|
//#endregion
|
|
3705
|
+
//#region src/composables/createFocusTraversal/index.d.ts
|
|
3706
|
+
interface TraversalItem {
|
|
3707
|
+
id: ID;
|
|
3708
|
+
disabled?: MaybeRefOrGetter<boolean>;
|
|
3709
|
+
}
|
|
3710
|
+
//#endregion
|
|
3711
|
+
//#region src/composables/useRovingFocus/index.d.ts
|
|
3712
|
+
interface RovingItem extends TraversalItem {
|
|
3713
|
+
el?: MaybeRefOrGetter<HTMLElement | null | undefined>;
|
|
3714
|
+
}
|
|
3715
|
+
interface RovingFocusOptions {
|
|
3716
|
+
target?: MaybeRefOrGetter<HTMLElement | null | undefined>;
|
|
3717
|
+
/** Arrow key mapping. Ignored when `columns` is set (grid uses all 4 arrows). */
|
|
3718
|
+
orientation?: 'horizontal' | 'vertical' | 'both';
|
|
3719
|
+
circular?: boolean;
|
|
3720
|
+
/**
|
|
3721
|
+
* Column count for grid navigation. When set, items are treated as a 2D grid
|
|
3722
|
+
* in row-major order: Left/Right step ±1, Up/Down step ±columns,
|
|
3723
|
+
* Home/End go to row start/end, Ctrl+Home/End go to first/last overall.
|
|
3724
|
+
*/
|
|
3725
|
+
columns?: MaybeRefOrGetter<number>;
|
|
3726
|
+
onFocus?: (id: ID) => void;
|
|
3727
|
+
}
|
|
3728
|
+
interface RovingFocusReturn {
|
|
3729
|
+
focusedId: ShallowRef<ID | undefined>;
|
|
3730
|
+
isTabbable: (id: ID) => boolean;
|
|
3731
|
+
focus: (id: ID) => void;
|
|
3732
|
+
next: () => void;
|
|
3733
|
+
prev: () => void;
|
|
3734
|
+
first: () => void;
|
|
3735
|
+
last: () => void;
|
|
3736
|
+
onKeydown: (e: KeyboardEvent) => void;
|
|
3737
|
+
}
|
|
3738
|
+
declare function useRovingFocus(items: () => RovingItem[], options?: RovingFocusOptions): RovingFocusReturn;
|
|
3739
|
+
//#endregion
|
|
3670
3740
|
//#region src/composables/useRtl/adapters/adapter.d.ts
|
|
3671
3741
|
interface RtlAdapterSetupContext {
|
|
3672
3742
|
isRtl: Ref<boolean>;
|
|
@@ -5369,4 +5439,36 @@ declare function createVirtualContext<T = unknown>(items: Ref<readonly T[]>, _op
|
|
|
5369
5439
|
*/
|
|
5370
5440
|
declare function useVirtual<T = unknown>(namespace?: string): VirtualContext<T>;
|
|
5371
5441
|
//#endregion
|
|
5372
|
-
|
|
5442
|
+
//#region src/composables/useVirtualFocus/index.d.ts
|
|
5443
|
+
interface VirtualFocusItem extends TraversalItem {
|
|
5444
|
+
el?: MaybeRefOrGetter<HTMLElement | null | undefined>;
|
|
5445
|
+
}
|
|
5446
|
+
interface VirtualFocusOptions {
|
|
5447
|
+
/** Element that retains DOM focus and receives aria-activedescendant */
|
|
5448
|
+
control: MaybeRefOrGetter<HTMLElement | null | undefined>;
|
|
5449
|
+
/** Element to attach keydown listener to (defaults to control) */
|
|
5450
|
+
target?: MaybeRefOrGetter<HTMLElement | null | undefined>;
|
|
5451
|
+
/** Arrow key mapping. Ignored when `columns` is set (grid uses all 4 arrows). */
|
|
5452
|
+
orientation?: 'horizontal' | 'vertical' | 'both';
|
|
5453
|
+
circular?: boolean;
|
|
5454
|
+
/**
|
|
5455
|
+
* Column count for grid navigation. When set, items are treated as a 2D grid
|
|
5456
|
+
* in row-major order: Left/Right step +/-1, Up/Down step +/-columns,
|
|
5457
|
+
* Home/End go to row start/end, Ctrl+Home/End go to first/last overall.
|
|
5458
|
+
*/
|
|
5459
|
+
columns?: MaybeRefOrGetter<number>;
|
|
5460
|
+
onHighlight?: (id: ID) => void;
|
|
5461
|
+
}
|
|
5462
|
+
interface VirtualFocusReturn {
|
|
5463
|
+
highlightedId: ShallowRef<ID | undefined>;
|
|
5464
|
+
highlight: (id: ID) => void;
|
|
5465
|
+
clear: () => void;
|
|
5466
|
+
next: () => void;
|
|
5467
|
+
prev: () => void;
|
|
5468
|
+
first: () => void;
|
|
5469
|
+
last: () => void;
|
|
5470
|
+
onKeydown: (e: KeyboardEvent) => void;
|
|
5471
|
+
}
|
|
5472
|
+
declare function useVirtualFocus(items: () => VirtualFocusItem[], options: VirtualFocusOptions): VirtualFocusReturn;
|
|
5473
|
+
//#endregion
|
|
5474
|
+
export { StepTicket as $, createContext as $i, LocaleRecord as $n, createRulesFallback as $r, useProxyModel as $t, ThemePluginOptions as A, createSingleContext as Aa, UseClickOutsideOptions as Ai, MutationObserverRecord as An, FormContextOptions as Ar, RovingFocusOptions as At, ThemeAdapter as B, ModelContext as Ba, createBreakpointsPlugin as Bi, LoggerContext as Bn, ValidationContext as Br, QueueContext as Bt, createTimelineContext as C, useBreadcrumbs as Ca, createDate as Ci, NestedOptions as Cn, createHydrationPlugin as Cr, createRtlContext as Ct, ThemeContext as D, SingleTicket as Da, ClickOutsideElement as Di, NestedTicketInput as Dn, UseHotkeyReturn as Dr, Vuetify0RtlAdapter as Dt, ThemeColors as E, SingleOptions as Ea, useDate as Ei, NestedTicket as En, UseHotkeyOptions as Er, useRtl as Et, createThemeContext as F, SelectionTicket as Fa, BreakpointsContextOptions as Fi, MediaQueryContext as Fn, FormValidationRule as Fr, ResizeObserverOptions as Ft, StoragePluginOptions as G, toArray as Gi, createLoggerContext as Gn, RuleAlias as Gr, createQueue as Gt, StorageContext as H, ModelTicket as Ha, toReactive as Hi, LoggerOptions as Hn, ValidationTicket as Hr, QueueOptions as Ht, createThemePlugin as I, SelectionTicketInput as Ia, BreakpointsOptions as Ii, useMediaQuery as In, FormValue as Ir, UseElementSizeReturn as It, createStoragePlugin as J, PluginOptions as Ji, LogLevel as Jn, RulesContext as Jr, ProxyRegistryContext as Jt, createStorage as K, Plugin as Ki, createLoggerPlugin as Kn, RuleAliases as Kr, createQueueContext as Kt, useTheme as L, createSelection as La, BreakpointsPluginOptions as Li, usePrefersContrast as Ln, createForm as Lr, UseResizeObserverReturn as Lt, ThemeTicket as M, SelectionContext as Ma, useClickOutside as Mi, UseMutationObserverOptions as Mn, FormTicket as Mr, RovingItem as Mt, ThemeTicketInput as N, SelectionContextOptions as Na, BreakpointName as Ni, UseMutationObserverReturn as Nn, FormTicketInput as Nr, useRovingFocus as Nt, ThemeContextOptions as O, SingleTicketInput as Oa, ClickOutsideIgnoreTarget as Oi, OpenStrategy as On, useHotkey as Or, RtlAdapter as Ot, createTheme as P, SelectionOptions as Pa, BreakpointsContext as Pi, useMutationObserver as Pn, FormValidationResult as Pr, ResizeObserverEntry as Pt, StepOptions as Q, CreateContextOptions as Qi, LocalePluginOptions as Qn, createRulesContext as Qr, ProxyModelTarget as Qt, Vuetify0ThemeAdapter as R, createSelectionContext as Ra, createBreakpoints as Ri, usePrefersDark as Rn, createFormContext as Rr, useElementSize as Rt, createTimeline as S, createBreadcrumbsContext as Sa, DatePluginOptions as Si, NestedOpenMode as Sn, createHydrationContext as Sr, createRtl as St, Colors as T, SingleContextOptions as Ta, createDatePlugin as Ti, NestedSelectionMode as Tn, PlatformContext as Tr, createRtlPlugin as Tt, StorageContextOptions as U, ModelTicketInput as Ua, MaybeElementRef as Ui, LoggerPluginOptions as Un, ValidationTicketInput as Ur, QueueTicket as Ut, ThemeAdapterInterface as V, ModelOptions as Va, useBreakpoints as Vi, LoggerContextOptions as Vn, ValidationOptions as Vr, QueueContextOptions as Vt, StorageOptions as W, createModel as Wa, toElement as Wi, createLogger as Wn, createValidation as Wr, QueueTicketInput as Wt, StepContext as X, createPluginContext as Xi, LocaleContextOptions as Xn, RulesOptions as Xr, useProxyRegistry as Xt, useStorage as Y, createPlugin as Yi, LocaleContext as Yn, RulesContextOptions as Yr, ProxyRegistryOptions as Yt, StepContextOptions as Z, ContextKey as Zi, LocaleOptions as Zn, createRules as Zr, ProxyModelOptions as Zt, useToggleScope as _, BreadcrumbTicketInput as _a, useEventListener as _i, multipleOpenStrategy as _n, HydrationContextOptions as _r, createSlider as _t, ScrollToOptions as a, createOverflow as aa, FeatureContextOptions as ai, PermissionOptions as an, createLocalePlugin as ar, StackContextOptions as at, TimelineOptions as b, BreadcrumbsOptions as ba, DateContextOptions as bi, NestedContext as bn, createFallbackHydration as br, RtlOptions as bt, VirtualContextOptions as c, GroupContext as ca, FeatureTicket as ci, createPermissions as cn, LazyOptions as cr, StackTicket as ct, VirtualOptions as d, GroupTicket as da, createFeaturesContext as di, usePermissions as dn, IntersectionObserverOptions as dr, createStackContext as dt, provideContext as ea, createRulesPlugin as ei, PopoverOptions as en, LocaleTicket as er, StepTicketInput as et, VirtualState as f, GroupTicketInput as fa, createFeaturesPlugin as fi, PermissionAdapter as fn, UseElementIntersectionReturn as fr, createStackPlugin as ft, ToggleScopeControls as g, BreadcrumbTicket as ga, useDocumentEventListener as gi, useNested as gn, HydrationContext as gr, SliderTicketInput as gt, useVirtual as h, useGroup as ha, EventHandler as hi, createNestedContext as hn, useIntersectionObserver as hr, SliderOptions as ht, useVirtualFocus as i, OverflowOptions as ia, FeatureContext as ii, PermissionContextOptions as in, createLocaleFallback as ir, StackContext as it, ThemeRecord as j, useSingle as ja, UseClickOutsideReturn as ji, ObservableNodeList as jn, FormOptions as jr, RovingFocusReturn as jt, ThemeOptions as k, createSingle as ka, ClickOutsideTarget as ki, OpenStrategyContext as kn, FormContext as kr, RtlAdapterSetupContext as kt, VirtualDirection as l, GroupContextOptions as la, FeatureTicketInput as li, createPermissionsContext as ln, useLazy as lr, StackTicketInput as lt, createVirtualContext as m, createGroupContext as ma, CleanupFunction as mi, createNested as mn, useElementIntersection as mr, SliderContext as mt, VirtualFocusOptions as n, OverflowContext as na, StandardSchemaV1 as ni, usePopover as nn, createLocale as nr, createStepContext as nt, VirtualAnchor as o, createOverflowContext as oa, FeatureOptions as oi, PermissionPluginOptions as on, useLocale as or, StackOptions as ot, createVirtual as p, createGroup as pa, useFeatures as pi, PermissionAdapterInterface as pn, UseIntersectionObserverReturn as pr, useStack as pt, createStorageContext as q, PluginContextConfig as qi, useLogger as qn, RuleInput as qr, useQueue as qt, VirtualFocusReturn as r, OverflowContextOptions as ra, isStandardSchema as ri, PermissionContext as rn, createLocaleContext as rr, useStep as rt, VirtualContext as s, useOverflow as sa, FeaturePluginOptions as si, PermissionTicket as sn, LazyContext as sr, StackPluginOptions as st, VirtualFocusItem as t, useContext as ta, useRules as ti, PopoverReturn as tn, LocaleTicketInput as tr, createStep as tt, VirtualItem as u, GroupOptions as ua, createFeatures as ui, createPermissionsPlugin as un, IntersectionObserverEntry as ur, createStack as ut, TimelineContext as v, BreadcrumbsContext as va, useWindowEventListener as vi, singleOpenStrategy as vn, HydrationOptions as vr, RtlContext as vt, useTimeline as w, SingleContext as wa, createDateContext as wi, NestedRegistration as wn, useHydration as wr, createRtlFallback as wt, TimelineTicket as x, createBreadcrumbs as xa, DateOptions as xi, NestedContextOptions as xn, createHydration as xr, RtlPluginOptions as xt, TimelineContextOptions as y, BreadcrumbsContextOptions as ya, DateContext as yi, NestedActiveMode as yn, HydrationPluginOptions as yr, RtlContextOptions as yt, Vuetify0ThemeOptions as z, useSelection as za, createBreakpointsContext as zi, usePrefersReducedMotion as zn, useForm as zr, useResizeObserver as zt };
|