@vuetify/v0 0.0.2-beta.3 → 0.0.2
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/README.md +252 -0
- package/dist/{index.mjs → browser/index.js} +616 -81
- package/dist/components/index.d.ts +7 -0
- package/dist/components/index.js +9 -0
- package/dist/components-Cc48kKWf.js +551 -0
- package/dist/composables/index.d.ts +7 -0
- package/dist/composables/index.js +8 -0
- package/dist/composables-7Cbs2sdO.js +1003 -0
- package/dist/constants/index.d.ts +2 -0
- package/dist/constants/index.js +5 -0
- package/dist/constants-DiTCgvMU.js +1 -0
- package/dist/factories/index.d.ts +2 -0
- package/dist/factories/index.js +3 -0
- package/dist/factories-CPq2yMlr.js +79 -0
- package/dist/globals--2b7sF4-.js +12 -0
- package/dist/htmlElements-SjqYu0am.js +78 -0
- package/dist/{index.d.mts → index-BnsMFYhs.d.ts} +861 -832
- package/dist/index-BozA2pze.d.ts +23 -0
- package/dist/index-BqrLvboW.d.ts +61 -0
- package/dist/index-LBy5OPMu.d.ts +11 -0
- package/dist/index-tUyghL98.d.ts +19 -0
- package/dist/index-z_zwVNP8.d.ts +79 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +11 -0
- package/dist/transformers/index.d.ts +2 -0
- package/dist/transformers/index.js +4 -0
- package/dist/transformers-BAeg3QJF.js +122 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.js +1 -0
- package/dist/useTheme-DSYiiz0R.js +1244 -0
- package/dist/utilities/index.d.ts +3 -0
- package/dist/utilities/index.js +3 -0
- package/dist/utilities-D9rWEgQK.js +86 -0
- package/package.json +62 -14
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { DOMElement, ID, MaybeArray } from "./index-LBy5OPMu.js";
|
|
2
|
+
import { ContextTrinity, Plugin } from "./index-BqrLvboW.js";
|
|
3
|
+
import * as vue189 from "vue";
|
|
4
|
+
import { App, ComputedRef, InjectionKey, MaybeRef, MaybeRefOrGetter, ModelRef, Reactive, Ref, ShallowReactive, ShallowRef, TemplateRef, UnwrapNestedRefs } from "vue";
|
|
3
5
|
import { AnyARecord } from "node:dns";
|
|
4
6
|
|
|
5
|
-
//#region src/types/index.d.ts
|
|
6
|
-
type DOMElement = Parameters<typeof h>[0];
|
|
7
|
-
type ID = string | number;
|
|
8
|
-
type DeepPartial<T> = T extends object ? { [P in keyof T]?: DeepPartial<T[P]> } : T;
|
|
9
|
-
type MaybeArray<T> = T | T[];
|
|
10
|
-
//#endregion
|
|
11
7
|
//#region src/components/Atom/Atom.vue.d.ts
|
|
12
8
|
interface AtomProps {
|
|
13
9
|
as?: DOMElement | null;
|
|
@@ -20,13 +16,13 @@ interface AtomExpose {
|
|
|
20
16
|
element: TemplateRef<HTMLElement | null>;
|
|
21
17
|
}
|
|
22
18
|
interface AtomPrivateProps extends AtomProps {}
|
|
23
|
-
declare const _default: <T extends Record<string, any> = {}>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
24
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} &
|
|
25
|
-
expose(exposed:
|
|
19
|
+
declare const _default$2: <T extends Record<string, any> = {}>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
20
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & vue189.VNodeProps & vue189.AllowedComponentProps & vue189.ComponentCustomProps, never>, never> & AtomPrivateProps & Partial<{}>> & vue189.PublicProps;
|
|
21
|
+
expose(exposed: vue189.ShallowUnwrapRef<AtomExpose>): void;
|
|
26
22
|
attrs: any;
|
|
27
23
|
slots: AtomSlots<T>;
|
|
28
24
|
emit: {};
|
|
29
|
-
}>) =>
|
|
25
|
+
}>) => vue189.VNode & {
|
|
30
26
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
31
27
|
};
|
|
32
28
|
type __VLS_PrettifyLocal<T> = { [K in keyof T as K]: T[K] } & {};
|
|
@@ -61,9 +57,6 @@ interface BreakpointsOptions {
|
|
|
61
57
|
mobileBreakpoint?: BreakpointName | number;
|
|
62
58
|
breakpoints?: Partial<Record<BreakpointName, number>>;
|
|
63
59
|
}
|
|
64
|
-
interface BreakpointsPlugin {
|
|
65
|
-
install: (app: App, ...options: any[]) => any;
|
|
66
|
-
}
|
|
67
60
|
declare const useBreakpointsContext: (namespace?: string) => BreakpointsContext, provideBreakpointsContext: (context: BreakpointsContext, app?: App) => BreakpointsContext;
|
|
68
61
|
/**
|
|
69
62
|
* Simple hook to access the breakpoints context.
|
|
@@ -79,7 +72,7 @@ declare function useBreakpoints(): BreakpointsContext;
|
|
|
79
72
|
* @param options Optional configuration for breakpoint thresholds and mobile breakpoint.
|
|
80
73
|
* @returns A breakpoints context object with reactive state and utility methods.
|
|
81
74
|
*/
|
|
82
|
-
declare function createBreakpoints(options?: BreakpointsOptions):
|
|
75
|
+
declare function createBreakpoints(options?: BreakpointsOptions): vue189.ShallowReactive<{
|
|
83
76
|
breakpoints: {
|
|
84
77
|
readonly xs: 0;
|
|
85
78
|
readonly sm: 600;
|
|
@@ -118,7 +111,7 @@ declare function createBreakpoints(options?: BreakpointsOptions): vue187.Shallow
|
|
|
118
111
|
* @param options Optional configuration for breakpoint thresholds and mobile breakpoint.
|
|
119
112
|
* @returns A Vue plugin object with install method.
|
|
120
113
|
*/
|
|
121
|
-
declare function createBreakpointsPlugin(options?: BreakpointsOptions):
|
|
114
|
+
declare function createBreakpointsPlugin(options?: BreakpointsOptions): Plugin;
|
|
122
115
|
//#endregion
|
|
123
116
|
//#region src/components/Breakpoints/BreakpointsItem.vue.d.ts
|
|
124
117
|
interface BreakpointsSlots {
|
|
@@ -140,7 +133,7 @@ interface BreakpointsRootSlots {
|
|
|
140
133
|
//#region src/components/Breakpoints/index.d.ts
|
|
141
134
|
declare const Breakpoints: {
|
|
142
135
|
Item: {
|
|
143
|
-
new (...args: any[]):
|
|
136
|
+
new (...args: any[]): vue189.CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, void, {}, {}, {}, vue189.ComponentOptionsMixin, vue189.ComponentOptionsMixin, {}, vue189.PublicProps, {}, true, {}, {}, vue189.GlobalComponents, vue189.GlobalDirectives, string, {}, any, vue189.ComponentProvideOptions, {
|
|
144
137
|
P: {};
|
|
145
138
|
B: {};
|
|
146
139
|
D: {};
|
|
@@ -151,11 +144,11 @@ declare const Breakpoints: {
|
|
|
151
144
|
__isFragment?: never;
|
|
152
145
|
__isTeleport?: never;
|
|
153
146
|
__isSuspense?: never;
|
|
154
|
-
} &
|
|
147
|
+
} & vue189.ComponentOptionsBase<Readonly<{}> & Readonly<{}>, void, {}, {}, {}, vue189.ComponentOptionsMixin, vue189.ComponentOptionsMixin, {}, string, {}, {}, string, {}, vue189.GlobalComponents, vue189.GlobalDirectives, string, vue189.ComponentProvideOptions> & vue189.VNodeProps & vue189.AllowedComponentProps & vue189.ComponentCustomProps & (new () => {
|
|
155
148
|
$slots: BreakpointsSlots;
|
|
156
149
|
});
|
|
157
150
|
Root: {
|
|
158
|
-
new (...args: any[]):
|
|
151
|
+
new (...args: any[]): vue189.CreateComponentPublicInstanceWithMixins<Readonly<BreakpointsRootProps> & Readonly<{}>, void, {}, {}, {}, vue189.ComponentOptionsMixin, vue189.ComponentOptionsMixin, {}, vue189.PublicProps, {}, false, {}, {}, vue189.GlobalComponents, vue189.GlobalDirectives, string, {}, any, vue189.ComponentProvideOptions, {
|
|
159
152
|
P: {};
|
|
160
153
|
B: {};
|
|
161
154
|
D: {};
|
|
@@ -166,7 +159,7 @@ declare const Breakpoints: {
|
|
|
166
159
|
__isFragment?: never;
|
|
167
160
|
__isTeleport?: never;
|
|
168
161
|
__isSuspense?: never;
|
|
169
|
-
} &
|
|
162
|
+
} & vue189.ComponentOptionsBase<Readonly<BreakpointsRootProps> & Readonly<{}>, void, {}, {}, {}, vue189.ComponentOptionsMixin, vue189.ComponentOptionsMixin, {}, string, {}, {}, string, {}, vue189.GlobalComponents, vue189.GlobalDirectives, string, vue189.ComponentProvideOptions> & vue189.VNodeProps & vue189.AllowedComponentProps & vue189.ComponentCustomProps & (new () => {
|
|
170
163
|
$slots: BreakpointsRootSlots;
|
|
171
164
|
});
|
|
172
165
|
};
|
|
@@ -191,14 +184,14 @@ declare const Context: {
|
|
|
191
184
|
slots: ContextSlots<T>;
|
|
192
185
|
}, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
193
186
|
props: {
|
|
194
|
-
contextKey?: string |
|
|
187
|
+
contextKey?: string | vue189.InjectionKey<T> | undefined;
|
|
195
188
|
value?: T | undefined;
|
|
196
|
-
} &
|
|
197
|
-
expose(exposed:
|
|
189
|
+
} & vue189.PublicProps;
|
|
190
|
+
expose(exposed: vue189.ShallowUnwrapRef<{}>): void;
|
|
198
191
|
attrs: any;
|
|
199
192
|
slots: ContextSlots<T>;
|
|
200
193
|
emit: {};
|
|
201
|
-
}>) =>
|
|
194
|
+
}>) => vue189.VNode & {
|
|
202
195
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
203
196
|
};
|
|
204
197
|
Root: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
@@ -207,14 +200,14 @@ declare const Context: {
|
|
|
207
200
|
slots: ContextRootSlots;
|
|
208
201
|
}, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
209
202
|
props: {
|
|
210
|
-
contextKey: string |
|
|
203
|
+
contextKey: string | vue189.InjectionKey<T>;
|
|
211
204
|
value: T;
|
|
212
|
-
} &
|
|
213
|
-
expose(exposed:
|
|
205
|
+
} & vue189.PublicProps;
|
|
206
|
+
expose(exposed: vue189.ShallowUnwrapRef<{}>): void;
|
|
214
207
|
attrs: any;
|
|
215
208
|
slots: ContextRootSlots;
|
|
216
209
|
emit: {};
|
|
217
|
-
}>) =>
|
|
210
|
+
}>) => vue189.VNode & {
|
|
218
211
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
219
212
|
};
|
|
220
213
|
};
|
|
@@ -235,7 +228,7 @@ interface RegistryContext<Z extends RegistryTicket = RegistryTicket> {
|
|
|
235
228
|
collection: Map<ID, Z>;
|
|
236
229
|
/** Clear the entire registry */
|
|
237
230
|
clear: () => void;
|
|
238
|
-
/** Check if an item exists by
|
|
231
|
+
/** Check if an item exists by ID */
|
|
239
232
|
has: (id: ID) => boolean;
|
|
240
233
|
/** Returns an array of registered IDs */
|
|
241
234
|
keys: () => ID[];
|
|
@@ -243,15 +236,17 @@ interface RegistryContext<Z extends RegistryTicket = RegistryTicket> {
|
|
|
243
236
|
browse: (value: unknown) => ID | ID[] | undefined;
|
|
244
237
|
/** lookup a ticket by index number */
|
|
245
238
|
lookup: (index: number) => ID | undefined;
|
|
246
|
-
/** Get a ticket by
|
|
239
|
+
/** Get a ticket by ID */
|
|
247
240
|
get: (id: ID) => Z | undefined;
|
|
241
|
+
/** Update or insert an item by ID */
|
|
242
|
+
upsert: (id: ID, item?: Partial<Z>) => Z;
|
|
248
243
|
/** Get all registered tickets */
|
|
249
244
|
values: () => Z[];
|
|
250
|
-
/** Get all entries as [
|
|
245
|
+
/** Get all entries as [ID, ticket] pairs */
|
|
251
246
|
entries: () => [ID, Z][];
|
|
252
247
|
/** Register a new item */
|
|
253
248
|
register: (item?: Partial<Z>) => Z;
|
|
254
|
-
/** Unregister an item by
|
|
249
|
+
/** Unregister an item by ID */
|
|
255
250
|
unregister: (id: ID) => void;
|
|
256
251
|
/** Reset the index directory and update all tickets */
|
|
257
252
|
reindex: () => void;
|
|
@@ -283,6 +278,17 @@ interface RegistryOptions {
|
|
|
283
278
|
* @returns The registry context object.
|
|
284
279
|
*/
|
|
285
280
|
declare function useRegistry<Z extends RegistryTicket = RegistryTicket, E extends RegistryContext<Z> = RegistryContext<Z>>(options?: RegistryOptions): E;
|
|
281
|
+
/**
|
|
282
|
+
* Creates a registry context with full injection/provision control.
|
|
283
|
+
* Returns the complete trinity for advanced usage scenarios.
|
|
284
|
+
*
|
|
285
|
+
* @param namespace The namespace for the registry context.
|
|
286
|
+
* @param options Optional configuration for reactivity behavior.
|
|
287
|
+
* @template Z The type of tickets managed by the registry.
|
|
288
|
+
* @template E The type of the registry context.
|
|
289
|
+
* @returns A tuple containing the inject function, provide function, and the registry context.
|
|
290
|
+
*/
|
|
291
|
+
declare function createRegistryContext<Z extends RegistryTicket = RegistryTicket, E extends RegistryContext<Z> = RegistryContext<Z>>(namespace: string, options?: RegistryOptions): ContextTrinity<E>;
|
|
286
292
|
//#endregion
|
|
287
293
|
//#region src/composables/useSelection/index.d.ts
|
|
288
294
|
interface SelectionTicket extends RegistryTicket {
|
|
@@ -373,7 +379,7 @@ interface GroupRootSlots {
|
|
|
373
379
|
//#region src/components/Group/index.d.ts
|
|
374
380
|
declare const Group: {
|
|
375
381
|
Item: {
|
|
376
|
-
new (...args: any[]):
|
|
382
|
+
new (...args: any[]): vue189.CreateComponentPublicInstanceWithMixins<Readonly<GroupItemProps> & Readonly<{}>, void, {}, {}, {}, vue189.ComponentOptionsMixin, vue189.ComponentOptionsMixin, {}, vue189.PublicProps, {}, false, {}, {}, vue189.GlobalComponents, vue189.GlobalDirectives, string, {}, any, vue189.ComponentProvideOptions, {
|
|
377
383
|
P: {};
|
|
378
384
|
B: {};
|
|
379
385
|
D: {};
|
|
@@ -384,17 +390,17 @@ declare const Group: {
|
|
|
384
390
|
__isFragment?: never;
|
|
385
391
|
__isTeleport?: never;
|
|
386
392
|
__isSuspense?: never;
|
|
387
|
-
} &
|
|
393
|
+
} & vue189.ComponentOptionsBase<Readonly<GroupItemProps> & Readonly<{}>, void, {}, {}, {}, vue189.ComponentOptionsMixin, vue189.ComponentOptionsMixin, {}, string, {}, {}, string, {}, vue189.GlobalComponents, vue189.GlobalDirectives, string, vue189.ComponentProvideOptions> & vue189.VNodeProps & vue189.AllowedComponentProps & vue189.ComponentCustomProps & (new () => {
|
|
388
394
|
$slots: GroupItemSlots;
|
|
389
395
|
});
|
|
390
396
|
Root: {
|
|
391
|
-
new (...args: any[]):
|
|
397
|
+
new (...args: any[]): vue189.CreateComponentPublicInstanceWithMixins<Readonly<GroupRootProps & {
|
|
392
398
|
modelValue?: any;
|
|
393
399
|
}> & Readonly<{
|
|
394
400
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
395
|
-
}>, void, {}, {}, {},
|
|
401
|
+
}>, void, {}, {}, {}, vue189.ComponentOptionsMixin, vue189.ComponentOptionsMixin, {
|
|
396
402
|
"update:modelValue": (value: any) => any;
|
|
397
|
-
},
|
|
403
|
+
}, vue189.PublicProps, {}, false, {}, {}, vue189.GlobalComponents, vue189.GlobalDirectives, string, {}, any, vue189.ComponentProvideOptions, {
|
|
398
404
|
P: {};
|
|
399
405
|
B: {};
|
|
400
406
|
D: {};
|
|
@@ -409,335 +415,270 @@ declare const Group: {
|
|
|
409
415
|
__isFragment?: never;
|
|
410
416
|
__isTeleport?: never;
|
|
411
417
|
__isSuspense?: never;
|
|
412
|
-
} &
|
|
418
|
+
} & vue189.ComponentOptionsBase<Readonly<GroupRootProps & {
|
|
413
419
|
modelValue?: any;
|
|
414
420
|
}> & Readonly<{
|
|
415
421
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
416
|
-
}>, void, {}, {}, {},
|
|
422
|
+
}>, void, {}, {}, {}, vue189.ComponentOptionsMixin, vue189.ComponentOptionsMixin, {
|
|
417
423
|
"update:modelValue": (value: any) => any;
|
|
418
|
-
}, string, {}, {}, string, {},
|
|
424
|
+
}, string, {}, {}, string, {}, vue189.GlobalComponents, vue189.GlobalDirectives, string, vue189.ComponentProvideOptions> & vue189.VNodeProps & vue189.AllowedComponentProps & vue189.ComponentCustomProps & (new () => {
|
|
419
425
|
$slots: GroupRootSlots;
|
|
420
426
|
});
|
|
421
427
|
};
|
|
422
428
|
//#endregion
|
|
423
|
-
//#region src/composables/
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
hydrate: () => void;
|
|
427
|
-
}
|
|
428
|
-
interface HydrationPlugin {
|
|
429
|
-
install: (app: App, ...options: any[]) => any;
|
|
430
|
-
}
|
|
431
|
-
declare const useHydrationContext: (namespace?: string) => HydrationContext, provideHydrationContext: (context: HydrationContext, app?: App) => HydrationContext;
|
|
429
|
+
//#region src/composables/useEventListener/index.d.ts
|
|
430
|
+
type CleanupFunction = () => void;
|
|
431
|
+
type EventHandler<E = Event> = (event: E) => void;
|
|
432
432
|
/**
|
|
433
|
-
*
|
|
434
|
-
* This
|
|
435
|
-
*
|
|
433
|
+
* Attaches event listeners to the window object with automatic cleanup.
|
|
434
|
+
* This overload provides type-safe event handling for window-specific events
|
|
435
|
+
* with proper event map typing and automatic listener removal on scope disposal.
|
|
436
436
|
*
|
|
437
|
-
* @
|
|
437
|
+
* @param target Window object to attach listeners to.
|
|
438
|
+
* @param event Event name(s) to listen for from WindowEventMap.
|
|
439
|
+
* @param listener Event handler function(s) with proper window event typing.
|
|
440
|
+
* @param options Optional event listener configuration.
|
|
441
|
+
* @returns Function to manually remove all attached listeners.
|
|
438
442
|
*/
|
|
439
|
-
declare function
|
|
443
|
+
declare function useEventListener<E extends keyof WindowEventMap>(target: Window, event: MaybeRefOrGetter<MaybeArray<E>>, listener: MaybeRef<MaybeArray<(this: Window, event: WindowEventMap[E]) => any>>, options?: MaybeRefOrGetter<boolean | AddEventListenerOptions>): CleanupFunction;
|
|
440
444
|
/**
|
|
441
|
-
*
|
|
445
|
+
* Attaches event listeners to the document object with automatic cleanup.
|
|
446
|
+
* This overload provides type-safe event handling for document-specific events
|
|
447
|
+
* with proper event map typing and automatic listener removal on scope disposal.
|
|
442
448
|
*
|
|
443
|
-
* @
|
|
449
|
+
* @param target Document object to attach listeners to.
|
|
450
|
+
* @param event Event name(s) to listen for from DocumentEventMap.
|
|
451
|
+
* @param listener Event handler function(s) with proper document event typing.
|
|
452
|
+
* @param options Optional event listener configuration.
|
|
453
|
+
* @returns Function to manually remove all attached listeners.
|
|
444
454
|
*/
|
|
445
|
-
declare function
|
|
455
|
+
declare function useEventListener<E extends keyof DocumentEventMap>(target: Document, event: MaybeRefOrGetter<MaybeArray<E>>, listener: MaybeRef<MaybeArray<(this: Document, event: DocumentEventMap[E]) => any>>, options?: MaybeRefOrGetter<boolean | AddEventListenerOptions>): CleanupFunction;
|
|
446
456
|
/**
|
|
447
|
-
*
|
|
448
|
-
* This
|
|
449
|
-
*
|
|
457
|
+
* Attaches event listeners to HTML elements with automatic cleanup.
|
|
458
|
+
* This overload provides type-safe event handling for HTML element events
|
|
459
|
+
* with reactive target support and automatic listener removal on scope disposal.
|
|
450
460
|
*
|
|
451
|
-
* @
|
|
461
|
+
* @param target HTML element or reactive reference to element.
|
|
462
|
+
* @param event Event name(s) to listen for from HTMLElementEventMap.
|
|
463
|
+
* @param listener Event handler function(s) with proper HTML element event typing.
|
|
464
|
+
* @param options Optional event listener configuration.
|
|
465
|
+
* @returns Function to manually remove all attached listeners.
|
|
466
|
+
*/
|
|
467
|
+
declare function useEventListener<E extends keyof HTMLElementEventMap>(target: MaybeRefOrGetter<HTMLElement | null | undefined>, event: MaybeRefOrGetter<MaybeArray<E>>, listener: MaybeRef<MaybeArray<(this: HTMLElement, event: HTMLElementEventMap[E]) => any>>, options?: MaybeRefOrGetter<boolean | AddEventListenerOptions>): CleanupFunction;
|
|
468
|
+
/**
|
|
469
|
+
* Attaches event listeners to any EventTarget with automatic cleanup.
|
|
470
|
+
* This overload provides flexible event handling for any EventTarget implementation
|
|
471
|
+
* with reactive target support and automatic listener removal on scope disposal.
|
|
472
|
+
*
|
|
473
|
+
* @param target EventTarget or reactive reference to target.
|
|
474
|
+
* @param event Event name(s) to listen for as string identifiers.
|
|
475
|
+
* @param listener Event handler function(s) with customizable event typing.
|
|
476
|
+
* @param options Optional event listener configuration.
|
|
477
|
+
* @returns Function to manually remove all attached listeners.
|
|
478
|
+
*/
|
|
479
|
+
declare function useEventListener<EventType = Event>(target: MaybeRefOrGetter<EventTarget | null | undefined>, event: MaybeRefOrGetter<MaybeArray<string>>, listener: MaybeRef<MaybeArray<EventHandler<EventType>>>, options?: MaybeRefOrGetter<boolean | AddEventListenerOptions>): CleanupFunction;
|
|
480
|
+
/**
|
|
481
|
+
* Convenience function for attaching event listeners to the window object.
|
|
482
|
+
* This function provides a simplified API by pre-binding the window target,
|
|
483
|
+
* making it easier to handle window-specific events with automatic cleanup.
|
|
484
|
+
*
|
|
485
|
+
* @param event Event name(s) to listen for from WindowEventMap.
|
|
486
|
+
* @param listener Event handler function(s) with proper window event typing.
|
|
487
|
+
* @param options Optional event listener configuration.
|
|
488
|
+
* @returns Function to manually remove all attached listeners.
|
|
489
|
+
*/
|
|
490
|
+
declare function useWindowEventListener<E extends keyof WindowEventMap>(event: MaybeRefOrGetter<MaybeArray<E>>, listener: MaybeRef<MaybeArray<(this: Window, event: WindowEventMap[E]) => any>>, options?: MaybeRefOrGetter<boolean | AddEventListenerOptions>): CleanupFunction;
|
|
491
|
+
/**
|
|
492
|
+
* Convenience function for attaching event listeners to the document object.
|
|
493
|
+
* This function provides a simplified API by pre-binding the document target,
|
|
494
|
+
* making it easier to handle document-specific events with automatic cleanup.
|
|
495
|
+
*
|
|
496
|
+
* @param event Event name(s) to listen for from DocumentEventMap.
|
|
497
|
+
* @param listener Event handler function(s) with proper document event typing.
|
|
498
|
+
* @param options Optional event listener configuration.
|
|
499
|
+
* @returns Function to manually remove all attached listeners.
|
|
452
500
|
*/
|
|
453
|
-
declare function
|
|
501
|
+
declare function useDocumentEventListener<E extends keyof DocumentEventMap>(event: MaybeRefOrGetter<MaybeArray<E>>, listener: MaybeRef<MaybeArray<(this: Document, event: DocumentEventMap[E]) => any>>, options?: MaybeRefOrGetter<boolean | AddEventListenerOptions>): CleanupFunction;
|
|
454
502
|
//#endregion
|
|
455
|
-
//#region src/
|
|
456
|
-
|
|
457
|
-
|
|
503
|
+
//#region src/composables/useFilter/index.d.ts
|
|
504
|
+
type Primitive = string | number | boolean;
|
|
505
|
+
type FilterQuery = MaybeRefOrGetter<Primitive | Primitive[]>;
|
|
506
|
+
type FilterItem = Primitive | Record<string, any>;
|
|
507
|
+
type FilterMode = 'some' | 'every' | 'union' | 'intersection';
|
|
508
|
+
type FilterFunction = (query: Primitive | Primitive[], item: FilterItem) => boolean;
|
|
509
|
+
interface UseFilterOptions {
|
|
510
|
+
customFilter?: FilterFunction;
|
|
511
|
+
keys?: string[];
|
|
512
|
+
mode?: FilterMode;
|
|
458
513
|
}
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
514
|
+
interface UseFilterResult<Z extends FilterItem = FilterItem> {
|
|
515
|
+
items: ComputedRef<Z[]>;
|
|
516
|
+
}
|
|
517
|
+
/**
|
|
518
|
+
* Creates a reactive filter for arrays based on query matching with configurable search modes.
|
|
519
|
+
* Supports 'some' (any field matches), 'every' (all fields match), 'union' (any query matches),
|
|
520
|
+
* and 'intersection' (all queries match) filtering strategies.
|
|
521
|
+
*
|
|
522
|
+
* @param query Filter query to match against items.
|
|
523
|
+
* @param items Collection of items to filter.
|
|
524
|
+
* @param options Optional configuration for the filter behavior.
|
|
525
|
+
* @template Z The type of the items being filtered.
|
|
526
|
+
* @returns A computed reference to the filtered items based on the query and options.
|
|
527
|
+
*/
|
|
528
|
+
declare function useFilter<Z extends FilterItem>(query: FilterQuery, items: MaybeRef<Z[]>, options?: UseFilterOptions): UseFilterResult<Z>;
|
|
529
|
+
//#endregion
|
|
530
|
+
//#region src/composables/useForm/index.d.ts
|
|
531
|
+
type FormValidationResult = string | true | Promise<string | true>;
|
|
532
|
+
type FormValidationRule = (value: AnyARecord) => FormValidationResult;
|
|
533
|
+
type FormValue = Ref<any> | ShallowRef<any>;
|
|
534
|
+
interface FormTicket extends RegistryTicket {
|
|
535
|
+
validate: (silent?: boolean) => Promise<boolean>;
|
|
536
|
+
reset: () => void;
|
|
537
|
+
validateOn: 'submit' | 'change' | string;
|
|
538
|
+
disabled: boolean;
|
|
539
|
+
errors: ShallowRef<string[]>;
|
|
540
|
+
rules: FormValidationRule[];
|
|
541
|
+
isPristine: ShallowRef<boolean>;
|
|
542
|
+
isValid: ShallowRef<boolean | null>;
|
|
543
|
+
isValidating: ShallowRef<boolean>;
|
|
544
|
+
}
|
|
545
|
+
interface FormContext<Z extends FormTicket = FormTicket> extends RegistryContext<Z> {
|
|
546
|
+
submit: (id?: ID | ID[]) => Promise<boolean>;
|
|
547
|
+
reset: () => void;
|
|
548
|
+
validateOn: 'submit' | 'change' | string;
|
|
549
|
+
isValid: ShallowRef<boolean | null>;
|
|
550
|
+
isValidating: ShallowRef<boolean>;
|
|
551
|
+
}
|
|
552
|
+
interface FormOptions extends RegistryOptions {
|
|
553
|
+
validateOn?: 'submit' | 'change' | string;
|
|
554
|
+
}
|
|
555
|
+
declare function useForm<Z extends FormTicket = FormTicket, E extends FormContext<Z> = FormContext<Z>>(options?: FormOptions): E;
|
|
556
|
+
//#endregion
|
|
557
|
+
//#region src/composables/useIntersectionObserver/index.d.ts
|
|
558
|
+
interface IntersectionObserverEntry {
|
|
559
|
+
boundingClientRect: DOMRectReadOnly;
|
|
560
|
+
intersectionRatio: number;
|
|
561
|
+
intersectionRect: DOMRectReadOnly;
|
|
562
|
+
isIntersecting: boolean;
|
|
563
|
+
rootBounds: DOMRectReadOnly | null;
|
|
564
|
+
target: Element;
|
|
565
|
+
time: number;
|
|
566
|
+
}
|
|
567
|
+
interface IntersectionObserverOptions {
|
|
568
|
+
immediate?: boolean;
|
|
569
|
+
root?: Element | null;
|
|
570
|
+
rootMargin?: string;
|
|
571
|
+
threshold?: number | number[];
|
|
572
|
+
}
|
|
573
|
+
/**
|
|
574
|
+
* Composable for observing element intersection with viewport or ancestor
|
|
575
|
+
*
|
|
576
|
+
* @param target - Element ref to observe
|
|
577
|
+
* @param callback - Callback fired on intersection change
|
|
578
|
+
* @param options - Observer options
|
|
579
|
+
* @returns Observer controls and intersection state
|
|
580
|
+
*
|
|
581
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver
|
|
582
|
+
*/
|
|
583
|
+
declare function useIntersectionObserver(target: Ref<Element | undefined>, callback: (entries: IntersectionObserverEntry[]) => void, options?: IntersectionObserverOptions): {
|
|
584
|
+
isIntersecting: Readonly<Ref<boolean, boolean>>;
|
|
585
|
+
isPaused: Readonly<Ref<boolean, boolean>>;
|
|
586
|
+
pause: () => void;
|
|
587
|
+
resume: () => void;
|
|
588
|
+
stop: () => void;
|
|
589
|
+
};
|
|
590
|
+
/**
|
|
591
|
+
* Convenience composable for simple intersection detection
|
|
592
|
+
*
|
|
593
|
+
* @param target - Element ref to observe
|
|
594
|
+
* @param options - Observer options
|
|
595
|
+
* @returns Reactive intersection state
|
|
596
|
+
*/
|
|
597
|
+
declare function useElementIntersection(target: Ref<Element | undefined>, options?: IntersectionObserverOptions): {
|
|
598
|
+
isIntersecting: Readonly<Ref<boolean, boolean>>;
|
|
599
|
+
intersectionRatio: Readonly<Ref<number, number>>;
|
|
464
600
|
};
|
|
465
601
|
//#endregion
|
|
466
|
-
//#region src/
|
|
467
|
-
interface
|
|
468
|
-
|
|
602
|
+
//#region src/composables/useKeydown/index.d.ts
|
|
603
|
+
interface KeyHandler {
|
|
604
|
+
key: string;
|
|
605
|
+
handler: (event: KeyboardEvent) => void;
|
|
606
|
+
preventDefault?: boolean;
|
|
607
|
+
stopPropagation?: boolean;
|
|
469
608
|
}
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
609
|
+
/**
|
|
610
|
+
* Sets up global keyboard event listeners for specified key handlers with automatic cleanup.
|
|
611
|
+
* This composable automatically starts listening when mounted and cleans up when the scope
|
|
612
|
+
* is disposed, providing a clean way to handle global keyboard interactions.
|
|
613
|
+
*
|
|
614
|
+
* @param handlers A single handler or array of handlers to register for keydown events.
|
|
615
|
+
* @returns Object with methods to manually start and stop listening for keydown events.
|
|
616
|
+
*/
|
|
617
|
+
declare function useKeydown(handlers: KeyHandler[] | KeyHandler): {
|
|
618
|
+
startListening: () => void;
|
|
619
|
+
stopListening: () => void;
|
|
475
620
|
};
|
|
476
621
|
//#endregion
|
|
477
|
-
//#region src/
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
622
|
+
//#region src/composables/useLayout/index.d.ts
|
|
623
|
+
type LayoutLocation = 'top' | 'bottom' | 'left' | 'right';
|
|
624
|
+
interface LayoutTicket extends GroupTicket {
|
|
625
|
+
order: number;
|
|
626
|
+
position: LayoutLocation;
|
|
627
|
+
value: number;
|
|
482
628
|
}
|
|
483
|
-
interface
|
|
484
|
-
|
|
629
|
+
interface LayoutContext<Z extends LayoutTicket> extends GroupContext<Z> {
|
|
630
|
+
bounds: {
|
|
631
|
+
top: ComputedRef<number>;
|
|
632
|
+
bottom: ComputedRef<number>;
|
|
633
|
+
left: ComputedRef<number>;
|
|
634
|
+
right: ComputedRef<number>;
|
|
635
|
+
};
|
|
636
|
+
main: {
|
|
637
|
+
x: ComputedRef<number>;
|
|
638
|
+
y: ComputedRef<number>;
|
|
639
|
+
width: ComputedRef<number>;
|
|
640
|
+
height: ComputedRef<number>;
|
|
641
|
+
};
|
|
642
|
+
sizes: ShallowReactive<Map<ID, number>>;
|
|
643
|
+
height: ShallowRef<number>;
|
|
644
|
+
width: ShallowRef<number>;
|
|
485
645
|
}
|
|
486
|
-
|
|
646
|
+
interface LayoutOptions extends GroupOptions {}
|
|
647
|
+
declare function useLayout<Z extends LayoutTicket = LayoutTicket, E extends LayoutContext<Z> = LayoutContext<Z>>(_options?: LayoutOptions): E;
|
|
487
648
|
//#endregion
|
|
488
|
-
//#region src/
|
|
489
|
-
interface
|
|
490
|
-
|
|
649
|
+
//#region src/composables/useSingle/index.d.ts
|
|
650
|
+
interface SingleTicket extends SelectionTicket {}
|
|
651
|
+
interface SingleContext<Z extends SingleTicket> extends SelectionContext<Z> {
|
|
652
|
+
selectedId: ComputedRef<ID | undefined>;
|
|
653
|
+
selectedIndex: ComputedRef<number>;
|
|
654
|
+
selectedItem: ComputedRef<Z | undefined>;
|
|
655
|
+
selectedValue: ComputedRef<unknown>;
|
|
491
656
|
}
|
|
657
|
+
interface SingleOptions extends SelectionOptions {}
|
|
658
|
+
/**
|
|
659
|
+
* Creates a single selection context for managing collections where only one item can be selected.
|
|
660
|
+
* This function extends the selection functionality with single-selection constraints.
|
|
661
|
+
*
|
|
662
|
+
* @param options Optional configuration for single selection behavior.
|
|
663
|
+
* @template Z The type of items managed by the single selection.
|
|
664
|
+
* @template E The type of the single selection context.
|
|
665
|
+
* @returns The single selection context object.
|
|
666
|
+
*/
|
|
667
|
+
declare function useSingle<Z extends SingleTicket = SingleTicket, E extends SingleContext<Z> = SingleContext<Z>>(options?: SingleOptions): E;
|
|
492
668
|
//#endregion
|
|
493
|
-
//#region src/
|
|
494
|
-
interface
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
669
|
+
//#region src/composables/useTokens/index.d.ts
|
|
670
|
+
interface TokenAlias<T = unknown> {
|
|
671
|
+
[key: string]: unknown;
|
|
672
|
+
$value: T;
|
|
673
|
+
$type?: string;
|
|
674
|
+
$description?: string;
|
|
675
|
+
$extensions?: Record<string, unknown>;
|
|
676
|
+
$deprecated?: boolean | string;
|
|
498
677
|
}
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
//#region src/components/Popover/index.d.ts
|
|
504
|
-
declare const Popover: {
|
|
505
|
-
Root: {
|
|
506
|
-
new (...args: any[]): vue187.CreateComponentPublicInstanceWithMixins<Readonly<PopoverRootProps & {
|
|
507
|
-
modelValue?: boolean;
|
|
508
|
-
}> & Readonly<{
|
|
509
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
510
|
-
}>, void, {}, {}, {}, vue187.ComponentOptionsMixin, vue187.ComponentOptionsMixin, {
|
|
511
|
-
"update:modelValue": (value: boolean) => any;
|
|
512
|
-
}, vue187.PublicProps, {}, false, {}, {}, vue187.GlobalComponents, vue187.GlobalDirectives, string, {}, any, vue187.ComponentProvideOptions, {
|
|
513
|
-
P: {};
|
|
514
|
-
B: {};
|
|
515
|
-
D: {};
|
|
516
|
-
C: {};
|
|
517
|
-
M: {};
|
|
518
|
-
Defaults: {};
|
|
519
|
-
}, Readonly<PopoverRootProps & {
|
|
520
|
-
modelValue?: boolean;
|
|
521
|
-
}> & Readonly<{
|
|
522
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
523
|
-
}>, {}, {}, {}, {}, {}>;
|
|
524
|
-
__isFragment?: never;
|
|
525
|
-
__isTeleport?: never;
|
|
526
|
-
__isSuspense?: never;
|
|
527
|
-
} & vue187.ComponentOptionsBase<Readonly<PopoverRootProps & {
|
|
528
|
-
modelValue?: boolean;
|
|
529
|
-
}> & Readonly<{
|
|
530
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
531
|
-
}>, void, {}, {}, {}, vue187.ComponentOptionsMixin, vue187.ComponentOptionsMixin, {
|
|
532
|
-
"update:modelValue": (value: boolean) => any;
|
|
533
|
-
}, string, {}, {}, string, {}, vue187.GlobalComponents, vue187.GlobalDirectives, string, vue187.ComponentProvideOptions> & vue187.VNodeProps & vue187.AllowedComponentProps & vue187.ComponentCustomProps & (new () => {
|
|
534
|
-
$slots: {
|
|
535
|
-
default: (props: {
|
|
536
|
-
id: Readonly<vue187.Ref<string, string>>;
|
|
537
|
-
isActive: vue187.ModelRef<boolean, string, boolean, boolean>;
|
|
538
|
-
toggle: () => void;
|
|
539
|
-
}) => any;
|
|
540
|
-
};
|
|
541
|
-
});
|
|
542
|
-
Anchor: {
|
|
543
|
-
new (...args: any[]): vue187.CreateComponentPublicInstanceWithMixins<Readonly<PopoverAnchorProps> & Readonly<{}>, void, {}, {}, {}, vue187.ComponentOptionsMixin, vue187.ComponentOptionsMixin, {}, vue187.PublicProps, {}, false, {}, {}, vue187.GlobalComponents, vue187.GlobalDirectives, string, {}, any, vue187.ComponentProvideOptions, {
|
|
544
|
-
P: {};
|
|
545
|
-
B: {};
|
|
546
|
-
D: {};
|
|
547
|
-
C: {};
|
|
548
|
-
M: {};
|
|
549
|
-
Defaults: {};
|
|
550
|
-
}, Readonly<PopoverAnchorProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
551
|
-
__isFragment?: never;
|
|
552
|
-
__isTeleport?: never;
|
|
553
|
-
__isSuspense?: never;
|
|
554
|
-
} & vue187.ComponentOptionsBase<Readonly<PopoverAnchorProps> & Readonly<{}>, void, {}, {}, {}, vue187.ComponentOptionsMixin, vue187.ComponentOptionsMixin, {}, string, {}, {}, string, {}, vue187.GlobalComponents, vue187.GlobalDirectives, string, vue187.ComponentProvideOptions> & vue187.VNodeProps & vue187.AllowedComponentProps & vue187.ComponentCustomProps & (new () => {
|
|
555
|
-
$slots: {
|
|
556
|
-
default?: (props: {}) => any;
|
|
557
|
-
};
|
|
558
|
-
});
|
|
559
|
-
Content: {
|
|
560
|
-
new (...args: any[]): vue187.CreateComponentPublicInstanceWithMixins<Readonly<PopoverContentProps> & Readonly<{
|
|
561
|
-
onBeforetoggle?: ((e: ToggleEvent) => any) | undefined;
|
|
562
|
-
}>, void, {}, {}, {}, vue187.ComponentOptionsMixin, vue187.ComponentOptionsMixin, {
|
|
563
|
-
beforetoggle: (e: ToggleEvent) => any;
|
|
564
|
-
}, vue187.PublicProps, {}, false, {}, {}, vue187.GlobalComponents, vue187.GlobalDirectives, string, {}, any, vue187.ComponentProvideOptions, {
|
|
565
|
-
P: {};
|
|
566
|
-
B: {};
|
|
567
|
-
D: {};
|
|
568
|
-
C: {};
|
|
569
|
-
M: {};
|
|
570
|
-
Defaults: {};
|
|
571
|
-
}, Readonly<PopoverContentProps> & Readonly<{
|
|
572
|
-
onBeforetoggle?: ((e: ToggleEvent) => any) | undefined;
|
|
573
|
-
}>, {}, {}, {}, {}, {}>;
|
|
574
|
-
__isFragment?: never;
|
|
575
|
-
__isTeleport?: never;
|
|
576
|
-
__isSuspense?: never;
|
|
577
|
-
} & vue187.ComponentOptionsBase<Readonly<PopoverContentProps> & Readonly<{
|
|
578
|
-
onBeforetoggle?: ((e: ToggleEvent) => any) | undefined;
|
|
579
|
-
}>, void, {}, {}, {}, vue187.ComponentOptionsMixin, vue187.ComponentOptionsMixin, {
|
|
580
|
-
beforetoggle: (e: ToggleEvent) => any;
|
|
581
|
-
}, string, {}, {}, string, {}, vue187.GlobalComponents, vue187.GlobalDirectives, string, vue187.ComponentProvideOptions> & vue187.VNodeProps & vue187.AllowedComponentProps & vue187.ComponentCustomProps & (new () => {
|
|
582
|
-
$slots: {
|
|
583
|
-
default?: (props: {}) => any;
|
|
584
|
-
};
|
|
585
|
-
});
|
|
586
|
-
};
|
|
587
|
-
//#endregion
|
|
588
|
-
//#region src/components/Step/StepItem.vue.d.ts
|
|
589
|
-
interface StepItemProps {
|
|
590
|
-
id?: string;
|
|
591
|
-
value?: any;
|
|
592
|
-
disabled?: boolean;
|
|
593
|
-
namespace?: string;
|
|
594
|
-
}
|
|
595
|
-
interface StepItemSlots {
|
|
596
|
-
default: (scope: UnwrapNestedRefs<GroupTicket>) => any;
|
|
597
|
-
}
|
|
598
|
-
//#endregion
|
|
599
|
-
//#region src/composables/useSingle/index.d.ts
|
|
600
|
-
interface SingleTicket extends SelectionTicket {}
|
|
601
|
-
interface SingleContext<Z extends SingleTicket> extends SelectionContext<Z> {
|
|
602
|
-
selectedId: ComputedRef<ID | undefined>;
|
|
603
|
-
selectedIndex: ComputedRef<number>;
|
|
604
|
-
selectedItem: ComputedRef<Z | undefined>;
|
|
605
|
-
selectedValue: ComputedRef<unknown>;
|
|
606
|
-
}
|
|
607
|
-
interface SingleOptions extends SelectionOptions {}
|
|
608
|
-
/**
|
|
609
|
-
* Creates a single selection context for managing collections where only one item can be selected.
|
|
610
|
-
* This function extends the selection functionality with single-selection constraints.
|
|
611
|
-
*
|
|
612
|
-
* @param options Optional configuration for single selection behavior.
|
|
613
|
-
* @template Z The type of items managed by the single selection.
|
|
614
|
-
* @template E The type of the single selection context.
|
|
615
|
-
* @returns The single selection context object.
|
|
616
|
-
*/
|
|
617
|
-
declare function useSingle<Z extends SingleTicket = SingleTicket, E extends SingleContext<Z> = SingleContext<Z>>(options?: SingleOptions): E;
|
|
618
|
-
//#endregion
|
|
619
|
-
//#region src/composables/useStep/index.d.ts
|
|
620
|
-
interface StepTicket extends SingleTicket {}
|
|
621
|
-
interface StepContext<Z extends StepTicket> extends SingleContext<Z> {
|
|
622
|
-
/** Select the first Ticket in the collection */
|
|
623
|
-
first: () => void;
|
|
624
|
-
/** Select the last Ticket in the collection */
|
|
625
|
-
last: () => void;
|
|
626
|
-
/** Select the next Ticket based on current index */
|
|
627
|
-
next: () => void;
|
|
628
|
-
/** Select the previous Ticket based on current index */
|
|
629
|
-
prev: () => void;
|
|
630
|
-
/** Step through the collection by a given count */
|
|
631
|
-
step: (count: number) => void;
|
|
632
|
-
}
|
|
633
|
-
interface StepOptions extends SingleOptions {}
|
|
634
|
-
/**
|
|
635
|
-
* Creates a step selection context for managing collections where users can navigate through items sequentially.
|
|
636
|
-
* This function extends the single selection functionality with stepping navigation.
|
|
637
|
-
*
|
|
638
|
-
* @param options Optional configuration for step behavior.
|
|
639
|
-
* @template Z The type of items managed by the step selection.
|
|
640
|
-
* @template E The type of the step selection context.
|
|
641
|
-
* @returns The step selection context object.
|
|
642
|
-
*/
|
|
643
|
-
declare function useStep<Z extends StepTicket = StepTicket, E extends StepContext<Z> = StepContext<Z>>(options?: StepOptions): E;
|
|
644
|
-
//#endregion
|
|
645
|
-
//#region src/components/Step/StepRoot.vue.d.ts
|
|
646
|
-
interface StepRootProps extends StepOptions {
|
|
647
|
-
namespace?: string;
|
|
648
|
-
}
|
|
649
|
-
interface StepRootSlots {
|
|
650
|
-
default: (scope: StepContext & {
|
|
651
|
-
model: ModelRef<any>;
|
|
652
|
-
}) => any;
|
|
653
|
-
}
|
|
654
|
-
//#endregion
|
|
655
|
-
//#region src/components/Step/index.d.ts
|
|
656
|
-
declare const Step: {
|
|
657
|
-
Item: {
|
|
658
|
-
new (...args: any[]): vue187.CreateComponentPublicInstanceWithMixins<Readonly<StepItemProps> & Readonly<{}>, void, {}, {}, {}, vue187.ComponentOptionsMixin, vue187.ComponentOptionsMixin, {}, vue187.PublicProps, {}, false, {}, {}, vue187.GlobalComponents, vue187.GlobalDirectives, string, {}, any, vue187.ComponentProvideOptions, {
|
|
659
|
-
P: {};
|
|
660
|
-
B: {};
|
|
661
|
-
D: {};
|
|
662
|
-
C: {};
|
|
663
|
-
M: {};
|
|
664
|
-
Defaults: {};
|
|
665
|
-
}, Readonly<StepItemProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
666
|
-
__isFragment?: never;
|
|
667
|
-
__isTeleport?: never;
|
|
668
|
-
__isSuspense?: never;
|
|
669
|
-
} & vue187.ComponentOptionsBase<Readonly<StepItemProps> & Readonly<{}>, void, {}, {}, {}, vue187.ComponentOptionsMixin, vue187.ComponentOptionsMixin, {}, string, {}, {}, string, {}, vue187.GlobalComponents, vue187.GlobalDirectives, string, vue187.ComponentProvideOptions> & vue187.VNodeProps & vue187.AllowedComponentProps & vue187.ComponentCustomProps & (new () => {
|
|
670
|
-
$slots: StepItemSlots;
|
|
671
|
-
});
|
|
672
|
-
Root: {
|
|
673
|
-
new (...args: any[]): vue187.CreateComponentPublicInstanceWithMixins<Readonly<StepRootProps & {
|
|
674
|
-
modelValue?: any;
|
|
675
|
-
}> & Readonly<{
|
|
676
|
-
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
677
|
-
}>, void, {}, {}, {}, vue187.ComponentOptionsMixin, vue187.ComponentOptionsMixin, {
|
|
678
|
-
"update:modelValue": (value: any) => any;
|
|
679
|
-
}, vue187.PublicProps, {}, false, {}, {}, vue187.GlobalComponents, vue187.GlobalDirectives, string, {}, any, vue187.ComponentProvideOptions, {
|
|
680
|
-
P: {};
|
|
681
|
-
B: {};
|
|
682
|
-
D: {};
|
|
683
|
-
C: {};
|
|
684
|
-
M: {};
|
|
685
|
-
Defaults: {};
|
|
686
|
-
}, Readonly<StepRootProps & {
|
|
687
|
-
modelValue?: any;
|
|
688
|
-
}> & Readonly<{
|
|
689
|
-
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
690
|
-
}>, {}, {}, {}, {}, {}>;
|
|
691
|
-
__isFragment?: never;
|
|
692
|
-
__isTeleport?: never;
|
|
693
|
-
__isSuspense?: never;
|
|
694
|
-
} & vue187.ComponentOptionsBase<Readonly<StepRootProps & {
|
|
695
|
-
modelValue?: any;
|
|
696
|
-
}> & Readonly<{
|
|
697
|
-
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
698
|
-
}>, void, {}, {}, {}, vue187.ComponentOptionsMixin, vue187.ComponentOptionsMixin, {
|
|
699
|
-
"update:modelValue": (value: any) => any;
|
|
700
|
-
}, string, {}, {}, string, {}, vue187.GlobalComponents, vue187.GlobalDirectives, string, vue187.ComponentProvideOptions> & vue187.VNodeProps & vue187.AllowedComponentProps & vue187.ComponentCustomProps & (new () => {
|
|
701
|
-
$slots: StepRootSlots;
|
|
702
|
-
});
|
|
703
|
-
};
|
|
704
|
-
//#endregion
|
|
705
|
-
//#region src/composables/useTheme/adapters/adapter.d.ts
|
|
706
|
-
interface ThemeAdapterInterface {
|
|
707
|
-
update: (colors: Record<string, Colors>) => void;
|
|
708
|
-
}
|
|
709
|
-
declare abstract class ThemeAdapter implements ThemeAdapterInterface {
|
|
710
|
-
protected prefix: string;
|
|
711
|
-
constructor(prefix: string);
|
|
712
|
-
generate(colors: Record<string, Colors>): string;
|
|
713
|
-
abstract update(colors: Record<string, Colors>): void;
|
|
714
|
-
}
|
|
715
|
-
//#endregion
|
|
716
|
-
//#region src/factories/createTrinity/index.d.ts
|
|
717
|
-
type ContextTrinity<Z = unknown> = readonly [() => Z, (context?: Z, app?: App) => Z, Z];
|
|
718
|
-
/**
|
|
719
|
-
* A tuple containing Vue's provide/inject and a context object
|
|
720
|
-
* @param createContext The function that creates the context
|
|
721
|
-
* @param provideContext The function that provides context
|
|
722
|
-
* @param context The underlying context object singleton
|
|
723
|
-
* @template Z The type parameter for the context value
|
|
724
|
-
* @template E The vmodel type for the context state.
|
|
725
|
-
* @returns [createContext, provideContext, context]
|
|
726
|
-
*
|
|
727
|
-
* @see https://0.vuetifyjs.com/composables/foundation/create-trinity
|
|
728
|
-
*/
|
|
729
|
-
declare function createTrinity<Z = unknown>(createContext: () => Z, provideContext: (_context?: Z, app?: App) => Z, context: Z): ContextTrinity<Z>;
|
|
730
|
-
//#endregion
|
|
731
|
-
//#region src/composables/useTokens/index.d.ts
|
|
732
|
-
interface TokenAlias {
|
|
733
|
-
[key: string]: any;
|
|
734
|
-
$value: string;
|
|
735
|
-
$type?: string;
|
|
736
|
-
$description?: string;
|
|
737
|
-
}
|
|
738
|
-
type TokenValue = string | number | boolean | TokenAlias;
|
|
739
|
-
interface TokenCollection {
|
|
740
|
-
[key: string]: TokenValue | TokenCollection;
|
|
678
|
+
type TokenPrimitive = string | number | boolean;
|
|
679
|
+
type TokenValue = TokenPrimitive | TokenAlias;
|
|
680
|
+
interface TokenCollection {
|
|
681
|
+
[key: string]: TokenValue | TokenCollection;
|
|
741
682
|
}
|
|
742
683
|
type FlatTokenCollection = {
|
|
743
684
|
id: string;
|
|
@@ -745,7 +686,7 @@ type FlatTokenCollection = {
|
|
|
745
686
|
};
|
|
746
687
|
interface TokenTicket extends RegistryTicket {}
|
|
747
688
|
interface TokenContext<Z extends TokenTicket> extends RegistryContext<Z> {
|
|
748
|
-
resolve: (token: string) =>
|
|
689
|
+
resolve: (token: string | TokenAlias) => unknown | undefined;
|
|
749
690
|
}
|
|
750
691
|
/**
|
|
751
692
|
* Creates a token registry for managing design token collections with alias resolution.
|
|
@@ -755,6 +696,7 @@ interface TokenContext<Z extends TokenTicket> extends RegistryContext<Z> {
|
|
|
755
696
|
* @template Z The structure of the registry token items.
|
|
756
697
|
* @template E The available methods for the token's context.
|
|
757
698
|
* @returns The token context object.
|
|
699
|
+
* @see https://www.designtokens.org/tr/drafts/format/
|
|
758
700
|
*/
|
|
759
701
|
declare function useTokens<Z extends TokenTicket = TokenTicket, E extends TokenContext<Z> = TokenContext<Z>>(tokens?: TokenCollection): E;
|
|
760
702
|
/**
|
|
@@ -769,482 +711,281 @@ declare function useTokens<Z extends TokenTicket = TokenTicket, E extends TokenC
|
|
|
769
711
|
*/
|
|
770
712
|
declare function createTokensContext<Z extends TokenTicket = TokenTicket, E extends TokenContext<Z> = TokenContext<Z>>(namespace: string, tokens?: TokenCollection): ContextTrinity<E>;
|
|
771
713
|
//#endregion
|
|
772
|
-
//#region src/composables/
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
type ThemeColors = {
|
|
777
|
-
[key: string]: Colors | string;
|
|
778
|
-
};
|
|
779
|
-
type ThemeRecord = {
|
|
780
|
-
[key: string]: any;
|
|
781
|
-
dark?: boolean;
|
|
782
|
-
lazy?: boolean;
|
|
783
|
-
colors: ThemeColors;
|
|
784
|
-
};
|
|
785
|
-
type ThemeTicket = SingleTicket & {
|
|
786
|
-
lazy: boolean;
|
|
787
|
-
dark: boolean;
|
|
788
|
-
};
|
|
789
|
-
interface ThemeContext<Z extends ThemeTicket> extends SingleContext<Z> {
|
|
790
|
-
colors: ComputedRef<Record<string, Colors>>;
|
|
791
|
-
cycle: (themes: ID[]) => void;
|
|
714
|
+
//#region src/composables/useLocale/adapters/adapter.d.ts
|
|
715
|
+
interface LocaleAdapter {
|
|
716
|
+
t: (message: string, ...params: unknown[]) => string;
|
|
717
|
+
n: (value: number, locale: ID | undefined, ...params: unknown[]) => string;
|
|
792
718
|
}
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
719
|
+
//#endregion
|
|
720
|
+
//#region src/composables/useLocale/index.d.ts
|
|
721
|
+
type LocaleTicket = SingleTicket;
|
|
722
|
+
interface LocaleContext<Z extends LocaleTicket> extends SingleContext<Z> {
|
|
723
|
+
t: (key: string, ...params: unknown[]) => string;
|
|
724
|
+
n: (value: number) => string;
|
|
799
725
|
}
|
|
800
|
-
interface
|
|
801
|
-
|
|
726
|
+
interface LocaleOptions extends LocalePluginOptions {}
|
|
727
|
+
interface LocalePluginOptions<Z extends TokenCollection = TokenCollection> {
|
|
728
|
+
adapter?: LocaleAdapter;
|
|
729
|
+
default?: ID;
|
|
730
|
+
fallback?: ID;
|
|
731
|
+
messages?: Record<ID, Z>;
|
|
802
732
|
}
|
|
803
733
|
/**
|
|
804
|
-
* Creates a
|
|
805
|
-
* Supports
|
|
734
|
+
* Creates a locale registry for managing internationalization with translations and number formatting.
|
|
735
|
+
* Supports message resolution with token references and locale-specific number formatting.
|
|
806
736
|
*
|
|
807
|
-
* @param namespace The namespace for the
|
|
808
|
-
* @param options Configuration including adapter and
|
|
809
|
-
* @template Z The type of
|
|
810
|
-
* @template E The type of
|
|
811
|
-
* @returns
|
|
737
|
+
* @param namespace The namespace for the locale context.
|
|
738
|
+
* @param options Configuration including adapter and messages.
|
|
739
|
+
* @template Z The type of the locale context.
|
|
740
|
+
* @template E The type of the locale items managed by the registry.
|
|
741
|
+
* @returns An array containing the inject function, provide function, and the locale context.
|
|
812
742
|
*/
|
|
813
|
-
declare function
|
|
743
|
+
declare function createLocale<Z extends LocaleTicket = LocaleTicket, E extends LocaleContext<Z> = LocaleContext<Z>>(namespace?: string, options?: LocaleOptions): ContextTrinity<E>;
|
|
814
744
|
/**
|
|
815
|
-
* Simple hook to access the
|
|
745
|
+
* Simple hook to access the locale context.
|
|
816
746
|
*
|
|
817
|
-
* @returns The
|
|
747
|
+
* @returns The locale context containing translation and formatting functions.
|
|
818
748
|
*/
|
|
819
|
-
declare function
|
|
749
|
+
declare function useLocale(): LocaleContext<LocaleTicket>;
|
|
820
750
|
/**
|
|
821
|
-
* Creates a Vue plugin for
|
|
822
|
-
* Integrates with token system for
|
|
823
|
-
* theme switching capabilities throughout the application.
|
|
751
|
+
* Creates a Vue plugin for internationalization with locale management and translation support.
|
|
752
|
+
* Integrates with token system for message resolution and provides app-wide locale context.
|
|
824
753
|
*
|
|
825
|
-
* @param options Configuration for
|
|
826
|
-
* @template Z The type of
|
|
827
|
-
* @template E The type of
|
|
828
|
-
* @template R The type of token context.
|
|
829
|
-
* @template O The type of token items.
|
|
830
|
-
* @returns
|
|
754
|
+
* @param options Configuration for adapter, default locale, and messages.
|
|
755
|
+
* @template Z The type of the locale context.
|
|
756
|
+
* @template E The type of the locale items managed by the registry.
|
|
757
|
+
* @template R The type of the token context.
|
|
758
|
+
* @template O The type of the token items managed by the registry.
|
|
759
|
+
* @returns Vue install function for the plugin
|
|
831
760
|
*/
|
|
832
|
-
declare function
|
|
761
|
+
declare function createLocalePlugin<Z extends LocaleTicket = LocaleTicket, E extends LocaleContext<Z> = LocaleContext<Z>, R extends TokenTicket = TokenTicket, O extends TokenContext<R> = TokenContext<R>>(options?: LocalePluginOptions): Plugin;
|
|
833
762
|
//#endregion
|
|
834
|
-
//#region src/
|
|
835
|
-
interface
|
|
836
|
-
|
|
763
|
+
//#region src/composables/useLogger/adapters/adapter.d.ts
|
|
764
|
+
interface LoggerAdapter {
|
|
765
|
+
debug: (message: string, ...args: unknown[]) => void;
|
|
766
|
+
info: (message: string, ...args: unknown[]) => void;
|
|
767
|
+
warn: (message: string, ...args: unknown[]) => void;
|
|
768
|
+
error: (message: string, ...args: unknown[]) => void;
|
|
769
|
+
trace?: (message: string, ...args: unknown[]) => void;
|
|
770
|
+
fatal?: (message: string, ...args: unknown[]) => void;
|
|
837
771
|
}
|
|
838
772
|
//#endregion
|
|
839
|
-
//#region src/
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
773
|
+
//#region src/composables/useLogger/adapters/consola.d.ts
|
|
774
|
+
declare class ConsolaLoggerAdapter implements LoggerAdapter {
|
|
775
|
+
private consola;
|
|
776
|
+
constructor(consolaInstance: any);
|
|
777
|
+
debug(message: string, ...args: unknown[]): void;
|
|
778
|
+
info(message: string, ...args: unknown[]): void;
|
|
779
|
+
warn(message: string, ...args: unknown[]): void;
|
|
780
|
+
error(message: string, ...args: unknown[]): void;
|
|
781
|
+
trace(message: string, ...args: unknown[]): void;
|
|
782
|
+
fatal(message: string, ...args: unknown[]): void;
|
|
846
783
|
}
|
|
847
784
|
//#endregion
|
|
848
|
-
//#region src/
|
|
849
|
-
declare const Theme: {
|
|
850
|
-
Item: {
|
|
851
|
-
new (...args: any[]): vue187.CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, void, {}, {}, {}, vue187.ComponentOptionsMixin, vue187.ComponentOptionsMixin, {}, vue187.PublicProps, {}, true, {}, {}, vue187.GlobalComponents, vue187.GlobalDirectives, string, {}, any, vue187.ComponentProvideOptions, {
|
|
852
|
-
P: {};
|
|
853
|
-
B: {};
|
|
854
|
-
D: {};
|
|
855
|
-
C: {};
|
|
856
|
-
M: {};
|
|
857
|
-
Defaults: {};
|
|
858
|
-
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
859
|
-
__isFragment?: never;
|
|
860
|
-
__isTeleport?: never;
|
|
861
|
-
__isSuspense?: never;
|
|
862
|
-
} & vue187.ComponentOptionsBase<Readonly<{}> & Readonly<{}>, void, {}, {}, {}, vue187.ComponentOptionsMixin, vue187.ComponentOptionsMixin, {}, string, {}, {}, string, {}, vue187.GlobalComponents, vue187.GlobalDirectives, string, vue187.ComponentProvideOptions> & vue187.VNodeProps & vue187.AllowedComponentProps & vue187.ComponentCustomProps & (new () => {
|
|
863
|
-
$slots: ThemeSlots;
|
|
864
|
-
});
|
|
865
|
-
Root: {
|
|
866
|
-
new (...args: any[]): vue187.CreateComponentPublicInstanceWithMixins<Readonly<ThemeRootProps & {
|
|
867
|
-
modelValue?: ID;
|
|
868
|
-
}> & Readonly<{
|
|
869
|
-
"onUpdate:modelValue"?: ((value: ID) => any) | undefined;
|
|
870
|
-
}>, void, {}, {}, {}, vue187.ComponentOptionsMixin, vue187.ComponentOptionsMixin, {
|
|
871
|
-
"update:modelValue": (value: ID) => any;
|
|
872
|
-
}, vue187.PublicProps, {}, false, {}, {}, vue187.GlobalComponents, vue187.GlobalDirectives, string, {}, any, vue187.ComponentProvideOptions, {
|
|
873
|
-
P: {};
|
|
874
|
-
B: {};
|
|
875
|
-
D: {};
|
|
876
|
-
C: {};
|
|
877
|
-
M: {};
|
|
878
|
-
Defaults: {};
|
|
879
|
-
}, Readonly<ThemeRootProps & {
|
|
880
|
-
modelValue?: ID;
|
|
881
|
-
}> & Readonly<{
|
|
882
|
-
"onUpdate:modelValue"?: ((value: ID) => any) | undefined;
|
|
883
|
-
}>, {}, {}, {}, {}, {}>;
|
|
884
|
-
__isFragment?: never;
|
|
885
|
-
__isTeleport?: never;
|
|
886
|
-
__isSuspense?: never;
|
|
887
|
-
} & vue187.ComponentOptionsBase<Readonly<ThemeRootProps & {
|
|
888
|
-
modelValue?: ID;
|
|
889
|
-
}> & Readonly<{
|
|
890
|
-
"onUpdate:modelValue"?: ((value: ID) => any) | undefined;
|
|
891
|
-
}>, void, {}, {}, {}, vue187.ComponentOptionsMixin, vue187.ComponentOptionsMixin, {
|
|
892
|
-
"update:modelValue": (value: ID) => any;
|
|
893
|
-
}, string, {}, {}, string, {}, vue187.GlobalComponents, vue187.GlobalDirectives, string, vue187.ComponentProvideOptions> & vue187.VNodeProps & vue187.AllowedComponentProps & vue187.ComponentCustomProps & (new () => {
|
|
894
|
-
$slots: ThemeRootSlots;
|
|
895
|
-
});
|
|
896
|
-
};
|
|
897
|
-
//#endregion
|
|
898
|
-
//#region src/composables/useEventListener/index.d.ts
|
|
899
|
-
type CleanupFunction = () => void;
|
|
900
|
-
type EventHandler<E = Event> = (event: E) => void;
|
|
785
|
+
//#region src/composables/useLogger/adapters/pino.d.ts
|
|
901
786
|
/**
|
|
902
|
-
*
|
|
903
|
-
* This overload provides type-safe event handling for window-specific events
|
|
904
|
-
* with proper event map typing and automatic listener removal on scope disposal.
|
|
787
|
+
* Pino logger adapter implementation
|
|
905
788
|
*
|
|
906
|
-
*
|
|
907
|
-
*
|
|
908
|
-
*
|
|
909
|
-
* @param options Optional event listener configuration.
|
|
910
|
-
* @returns Function to manually remove all attached listeners.
|
|
789
|
+
* This adapter integrates with the Pino logging library,
|
|
790
|
+
* providing high-performance structured logging optimized
|
|
791
|
+
* for Node.js applications with minimal overhead.
|
|
911
792
|
*/
|
|
912
|
-
declare
|
|
793
|
+
declare class PinoLoggerAdapter implements LoggerAdapter {
|
|
794
|
+
private pino;
|
|
795
|
+
constructor(pinoInstance: any);
|
|
796
|
+
debug(message: string, ...args: unknown[]): void;
|
|
797
|
+
info(message: string, ...args: unknown[]): void;
|
|
798
|
+
warn(message: string, ...args: unknown[]): void;
|
|
799
|
+
error(message: string, ...args: unknown[]): void;
|
|
800
|
+
trace(message: string, ...args: unknown[]): void;
|
|
801
|
+
fatal(message: string, ...args: unknown[]): void;
|
|
802
|
+
private format;
|
|
803
|
+
}
|
|
804
|
+
//#endregion
|
|
805
|
+
//#region src/composables/useLogger/adapters/v0.d.ts
|
|
913
806
|
/**
|
|
914
|
-
*
|
|
915
|
-
* This overload provides type-safe event handling for document-specific events
|
|
916
|
-
* with proper event map typing and automatic listener removal on scope disposal.
|
|
807
|
+
* Vuetify0.x logger adapter implementation
|
|
917
808
|
*
|
|
918
|
-
*
|
|
919
|
-
*
|
|
920
|
-
*
|
|
921
|
-
* @param options Optional event listener configuration.
|
|
922
|
-
* @returns Function to manually remove all attached listeners.
|
|
809
|
+
* This adapter provides console-based logging with proper formatting,
|
|
810
|
+
* color coding, timestamps, and log level filtering for development
|
|
811
|
+
* and production environments.
|
|
923
812
|
*/
|
|
924
|
-
declare
|
|
813
|
+
declare class Vuetify0LoggerAdapter implements LoggerAdapter {
|
|
814
|
+
private prefix;
|
|
815
|
+
private colors;
|
|
816
|
+
private timestamps;
|
|
817
|
+
constructor(options?: {
|
|
818
|
+
prefix?: string;
|
|
819
|
+
colors?: boolean;
|
|
820
|
+
timestamps?: boolean;
|
|
821
|
+
});
|
|
822
|
+
debug(message: string, ...args: unknown[]): void;
|
|
823
|
+
info(message: string, ...args: unknown[]): void;
|
|
824
|
+
warn(message: string, ...args: unknown[]): void;
|
|
825
|
+
error(message: string, ...args: unknown[]): void;
|
|
826
|
+
trace(message: string, ...args: unknown[]): void;
|
|
827
|
+
fatal(message: string, ...args: unknown[]): void;
|
|
828
|
+
private format;
|
|
829
|
+
private timestamp;
|
|
830
|
+
private style;
|
|
831
|
+
private log;
|
|
832
|
+
}
|
|
833
|
+
//#endregion
|
|
834
|
+
//#region src/composables/useLogger/types.d.ts
|
|
835
|
+
type LogLevel = 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'fatal' | 'silent';
|
|
836
|
+
//#endregion
|
|
837
|
+
//#region src/composables/useLogger/index.d.ts
|
|
838
|
+
interface LoggerContext {
|
|
839
|
+
debug: (message: string, ...args: unknown[]) => void;
|
|
840
|
+
info: (message: string, ...args: unknown[]) => void;
|
|
841
|
+
warn: (message: string, ...args: unknown[]) => void;
|
|
842
|
+
error: (message: string, ...args: unknown[]) => void;
|
|
843
|
+
trace: (message: string, ...args: unknown[]) => void;
|
|
844
|
+
fatal: (message: string, ...args: unknown[]) => void;
|
|
845
|
+
level: (level: LogLevel) => void;
|
|
846
|
+
current: () => LogLevel;
|
|
847
|
+
enabled: () => boolean;
|
|
848
|
+
enable: () => void;
|
|
849
|
+
disable: () => void;
|
|
850
|
+
}
|
|
851
|
+
interface LoggerOptions {
|
|
852
|
+
adapter?: LoggerAdapter;
|
|
853
|
+
level?: LogLevel;
|
|
854
|
+
prefix?: string;
|
|
855
|
+
enabled?: boolean;
|
|
856
|
+
}
|
|
925
857
|
/**
|
|
926
|
-
*
|
|
927
|
-
* This
|
|
928
|
-
*
|
|
858
|
+
* Creates a logger context for application logging with configurable adapters and levels.
|
|
859
|
+
* This function provides a consistent logging interface that can be configured with
|
|
860
|
+
* different adapters and optimized for production builds with conditional compilation.
|
|
929
861
|
*
|
|
930
|
-
* @param
|
|
931
|
-
* @
|
|
932
|
-
* @param listener Event handler function(s) with proper HTML element event typing.
|
|
933
|
-
* @param options Optional event listener configuration.
|
|
934
|
-
* @returns Function to manually remove all attached listeners.
|
|
862
|
+
* @param options Configuration for the logger adapter, level, and behavior.
|
|
863
|
+
* @returns A logger context object with logging methods and controls.
|
|
935
864
|
*/
|
|
936
|
-
declare function
|
|
865
|
+
declare function createLogger(options?: LoggerOptions): LoggerContext;
|
|
866
|
+
declare function useLogger(namespace?: string): LoggerContext;
|
|
867
|
+
declare function createLoggerPlugin(options?: LoggerOptions): Plugin;
|
|
868
|
+
//#endregion
|
|
869
|
+
//#region src/composables/useMutationObserver/index.d.ts
|
|
870
|
+
interface MutationObserverRecord {
|
|
871
|
+
type: 'attributes' | 'childList' | 'characterData';
|
|
872
|
+
target: Node;
|
|
873
|
+
addedNodes: NodeList;
|
|
874
|
+
removedNodes: NodeList;
|
|
875
|
+
previousSibling: Node | null;
|
|
876
|
+
nextSibling: Node | null;
|
|
877
|
+
attributeName: string | null;
|
|
878
|
+
attributeNamespace: string | null;
|
|
879
|
+
oldValue: string | null;
|
|
880
|
+
}
|
|
881
|
+
interface UseMutationObserverOptions {
|
|
882
|
+
immediate?: boolean;
|
|
883
|
+
childList?: boolean;
|
|
884
|
+
attributes?: boolean;
|
|
885
|
+
characterData?: boolean;
|
|
886
|
+
subtree?: boolean;
|
|
887
|
+
attributeOldValue?: boolean;
|
|
888
|
+
characterDataOldValue?: boolean;
|
|
889
|
+
attributeFilter?: string[];
|
|
890
|
+
}
|
|
937
891
|
/**
|
|
938
|
-
*
|
|
939
|
-
* This overload provides flexible event handling for any EventTarget implementation
|
|
940
|
-
* with reactive target support and automatic listener removal on scope disposal.
|
|
892
|
+
* Composable for observing DOM mutations
|
|
941
893
|
*
|
|
942
|
-
* @param target
|
|
943
|
-
* @param
|
|
944
|
-
* @param
|
|
945
|
-
* @
|
|
946
|
-
* @returns Function to manually remove all attached listeners.
|
|
947
|
-
*/
|
|
948
|
-
declare function useEventListener<EventType = Event>(target: MaybeRefOrGetter<EventTarget | null | undefined>, event: MaybeRefOrGetter<MaybeArray<string>>, listener: MaybeRef<MaybeArray<EventHandler<EventType>>>, options?: MaybeRefOrGetter<boolean | AddEventListenerOptions>): CleanupFunction;
|
|
949
|
-
/**
|
|
950
|
-
* Convenience function for attaching event listeners to the window object.
|
|
951
|
-
* This function provides a simplified API by pre-binding the window target,
|
|
952
|
-
* making it easier to handle window-specific events with automatic cleanup.
|
|
894
|
+
* @param target - Element ref to observe
|
|
895
|
+
* @param callback - Callback fired on mutation
|
|
896
|
+
* @param options - Observer options
|
|
897
|
+
* @returns Observer controls
|
|
953
898
|
*
|
|
954
|
-
* @
|
|
955
|
-
* @param listener Event handler function(s) with proper window event typing.
|
|
956
|
-
* @param options Optional event listener configuration.
|
|
957
|
-
* @returns Function to manually remove all attached listeners.
|
|
899
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver
|
|
958
900
|
*/
|
|
959
|
-
declare function
|
|
901
|
+
declare function useMutationObserver(target: Ref<Element | undefined>, callback: (entries: MutationObserverRecord[]) => void, options?: UseMutationObserverOptions): {
|
|
902
|
+
isPaused: Readonly<Ref<boolean, boolean>>;
|
|
903
|
+
pause: () => void;
|
|
904
|
+
resume: () => void;
|
|
905
|
+
stop: () => void;
|
|
906
|
+
};
|
|
907
|
+
//#endregion
|
|
908
|
+
//#region src/composables/useProxyModel/index.d.ts
|
|
909
|
+
interface ProxyModelOptions {
|
|
910
|
+
/** Whether to use deep reactivity for the model */
|
|
911
|
+
deep?: boolean;
|
|
912
|
+
}
|
|
960
913
|
/**
|
|
961
|
-
*
|
|
962
|
-
* This function provides a simplified API by pre-binding the document target,
|
|
963
|
-
* making it easier to handle document-specific events with automatic cleanup.
|
|
914
|
+
* Creates a proxy model for two-way binding with a selection context.
|
|
964
915
|
*
|
|
965
|
-
* @param
|
|
966
|
-
* @
|
|
967
|
-
* @
|
|
968
|
-
* @returns
|
|
916
|
+
* @param registry SelectionContext | GroupContext | SingleContext | StepContext
|
|
917
|
+
* @template Z The type of items managed by the selection.
|
|
918
|
+
* @template E The type of the selection context.
|
|
919
|
+
* @returns The proxy model for two-way binding with the selection context.
|
|
969
920
|
*/
|
|
970
|
-
declare function
|
|
921
|
+
declare function useProxyModel<Z extends SelectionTicket>(registry: SelectionContext<Z>, initial?: Z | Z[], options?: ProxyModelOptions, _transformIn?: (val: Z[] | Z) => Z[], _transformOut?: (val: Z[]) => Z | Z[]): vue189.WritableComputedRef<Z | Z[] | undefined, Z[]>;
|
|
971
922
|
//#endregion
|
|
972
|
-
//#region src/composables/
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
mode?: FilterMode;
|
|
923
|
+
//#region src/composables/useResizeObserver/index.d.ts
|
|
924
|
+
interface ResizeObserverEntry {
|
|
925
|
+
contentRect: {
|
|
926
|
+
width: number;
|
|
927
|
+
height: number;
|
|
928
|
+
top: number;
|
|
929
|
+
left: number;
|
|
930
|
+
};
|
|
931
|
+
target: Element;
|
|
982
932
|
}
|
|
983
|
-
interface
|
|
984
|
-
|
|
933
|
+
interface ResizeObserverOptions {
|
|
934
|
+
immediate?: boolean;
|
|
935
|
+
box?: 'content-box' | 'border-box';
|
|
985
936
|
}
|
|
986
937
|
/**
|
|
987
|
-
*
|
|
988
|
-
* Supports 'some' (any field matches), 'every' (all fields match), 'union' (any query matches),
|
|
989
|
-
* and 'intersection' (all queries match) filtering strategies.
|
|
938
|
+
* Composable for observing element resize events
|
|
990
939
|
*
|
|
991
|
-
* @param
|
|
992
|
-
* @param
|
|
993
|
-
* @param options
|
|
994
|
-
* @
|
|
995
|
-
*
|
|
940
|
+
* @param target - Element ref to observe
|
|
941
|
+
* @param callback - Callback fired on resize
|
|
942
|
+
* @param options - Observer options
|
|
943
|
+
* @returns Observer controls
|
|
944
|
+
*
|
|
945
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver
|
|
996
946
|
*/
|
|
997
|
-
declare function
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
type FormValue = Ref<any> | ShallowRef<any>;
|
|
1003
|
-
interface FormTicket extends RegistryTicket {
|
|
1004
|
-
validate: (silent?: boolean) => Promise<boolean>;
|
|
1005
|
-
reset: () => void;
|
|
1006
|
-
validateOn: 'submit' | 'change' | string;
|
|
1007
|
-
disabled: boolean;
|
|
1008
|
-
errors: ShallowRef<string[]>;
|
|
1009
|
-
rules: FormValidationRule[];
|
|
1010
|
-
isPristine: ShallowRef<boolean>;
|
|
1011
|
-
isValid: ShallowRef<boolean | null>;
|
|
1012
|
-
isValidating: ShallowRef<boolean>;
|
|
1013
|
-
}
|
|
1014
|
-
interface FormContext<Z extends FormTicket = FormTicket> extends RegistryContext<Z> {
|
|
1015
|
-
submit: (id?: ID | ID[]) => Promise<boolean>;
|
|
1016
|
-
reset: () => void;
|
|
1017
|
-
validateOn: 'submit' | 'change' | string;
|
|
1018
|
-
isValid: ShallowRef<boolean | null>;
|
|
1019
|
-
isValidating: ShallowRef<boolean>;
|
|
1020
|
-
}
|
|
1021
|
-
interface FormOptions extends RegistryOptions {
|
|
1022
|
-
validateOn?: 'submit' | 'change' | string;
|
|
1023
|
-
}
|
|
1024
|
-
declare function useForm<Z extends FormTicket = FormTicket, E extends FormContext<Z> = FormContext<Z>>(options?: FormOptions): E;
|
|
1025
|
-
//#endregion
|
|
1026
|
-
//#region src/composables/useKeydown/index.d.ts
|
|
1027
|
-
interface KeyHandler {
|
|
1028
|
-
key: string;
|
|
1029
|
-
handler: (event: KeyboardEvent) => void;
|
|
1030
|
-
preventDefault?: boolean;
|
|
1031
|
-
stopPropagation?: boolean;
|
|
1032
|
-
}
|
|
1033
|
-
/**
|
|
1034
|
-
* Sets up global keyboard event listeners for specified key handlers with automatic cleanup.
|
|
1035
|
-
* This composable automatically starts listening when mounted and cleans up when the scope
|
|
1036
|
-
* is disposed, providing a clean way to handle global keyboard interactions.
|
|
1037
|
-
*
|
|
1038
|
-
* @param handlers A single handler or array of handlers to register for keydown events.
|
|
1039
|
-
* @returns Object with methods to manually start and stop listening for keydown events.
|
|
1040
|
-
*/
|
|
1041
|
-
declare function useKeydown(handlers: KeyHandler[] | KeyHandler): {
|
|
1042
|
-
startListening: () => void;
|
|
1043
|
-
stopListening: () => void;
|
|
947
|
+
declare function useResizeObserver(target: Ref<Element | undefined>, callback: (entries: ResizeObserverEntry[]) => void, options?: ResizeObserverOptions): {
|
|
948
|
+
isPaused: Readonly<Ref<boolean, boolean>>;
|
|
949
|
+
pause: () => void;
|
|
950
|
+
resume: () => void;
|
|
951
|
+
stop: () => void;
|
|
1044
952
|
};
|
|
1045
|
-
//#endregion
|
|
1046
|
-
//#region src/composables/useLayout/index.d.ts
|
|
1047
|
-
type LayoutLocation = 'top' | 'bottom' | 'left' | 'right';
|
|
1048
|
-
interface LayoutTicket extends GroupTicket {
|
|
1049
|
-
order: number;
|
|
1050
|
-
position: LayoutLocation;
|
|
1051
|
-
value: number;
|
|
1052
|
-
}
|
|
1053
|
-
interface LayoutContext<Z extends LayoutTicket> extends GroupContext<Z> {
|
|
1054
|
-
bounds: {
|
|
1055
|
-
top: ComputedRef<number>;
|
|
1056
|
-
bottom: ComputedRef<number>;
|
|
1057
|
-
left: ComputedRef<number>;
|
|
1058
|
-
right: ComputedRef<number>;
|
|
1059
|
-
};
|
|
1060
|
-
main: {
|
|
1061
|
-
x: ComputedRef<number>;
|
|
1062
|
-
y: ComputedRef<number>;
|
|
1063
|
-
width: ComputedRef<number>;
|
|
1064
|
-
height: ComputedRef<number>;
|
|
1065
|
-
};
|
|
1066
|
-
sizes: ShallowReactive<Map<ID, number>>;
|
|
1067
|
-
height: ShallowRef<number>;
|
|
1068
|
-
width: ShallowRef<number>;
|
|
1069
|
-
}
|
|
1070
|
-
interface LayoutOptions extends GroupOptions {}
|
|
1071
|
-
declare function useLayout<Z extends LayoutTicket = LayoutTicket, E extends LayoutContext<Z> = LayoutContext<Z>>(_options?: LayoutOptions): E;
|
|
1072
|
-
//#endregion
|
|
1073
|
-
//#region src/composables/useLocale/adapters/adapter.d.ts
|
|
1074
|
-
interface LocaleAdapter {
|
|
1075
|
-
t: (message: string, ...params: unknown[]) => string;
|
|
1076
|
-
n: (value: number, locale: ID | undefined, ...params: unknown[]) => string;
|
|
1077
|
-
}
|
|
1078
|
-
//#endregion
|
|
1079
|
-
//#region src/composables/useLocale/index.d.ts
|
|
1080
|
-
type LocaleTicket = SingleTicket;
|
|
1081
|
-
interface LocaleContext<Z extends LocaleTicket> extends SingleContext<Z> {
|
|
1082
|
-
t: (key: string, ...params: unknown[]) => string;
|
|
1083
|
-
n: (value: number) => string;
|
|
1084
|
-
}
|
|
1085
|
-
interface LocaleOptions extends LocalePluginOptions {}
|
|
1086
|
-
interface LocalePluginOptions<Z extends TokenCollection = TokenCollection> {
|
|
1087
|
-
adapter?: LocaleAdapter;
|
|
1088
|
-
default?: ID;
|
|
1089
|
-
fallback?: ID;
|
|
1090
|
-
messages?: Record<ID, Z>;
|
|
1091
|
-
}
|
|
1092
|
-
interface LocalePlugin {
|
|
1093
|
-
install: (app: App, ...options: any[]) => any;
|
|
1094
|
-
}
|
|
1095
|
-
/**
|
|
1096
|
-
* Creates a locale registry for managing internationalization with translations and number formatting.
|
|
1097
|
-
* Supports message resolution with token references and locale-specific number formatting.
|
|
1098
|
-
*
|
|
1099
|
-
* @param namespace The namespace for the locale context.
|
|
1100
|
-
* @param options Configuration including adapter and messages.
|
|
1101
|
-
* @template Z The type of the locale context.
|
|
1102
|
-
* @template E The type of the locale items managed by the registry.
|
|
1103
|
-
* @returns An array containing the inject function, provide function, and the locale context.
|
|
1104
|
-
*/
|
|
1105
|
-
declare function createLocale<Z extends LocaleTicket = LocaleTicket, E extends LocaleContext<Z> = LocaleContext<Z>>(namespace?: string, options?: LocaleOptions): ContextTrinity<E>;
|
|
1106
|
-
/**
|
|
1107
|
-
* Simple hook to access the locale context.
|
|
1108
|
-
*
|
|
1109
|
-
* @returns The locale context containing translation and formatting functions.
|
|
1110
|
-
*/
|
|
1111
|
-
declare function useLocale(): LocaleContext<LocaleTicket>;
|
|
1112
|
-
/**
|
|
1113
|
-
* Creates a Vue plugin for internationalization with locale management and translation support.
|
|
1114
|
-
* Integrates with token system for message resolution and provides app-wide locale context.
|
|
1115
|
-
*
|
|
1116
|
-
* @param options Configuration for adapter, default locale, and messages.
|
|
1117
|
-
* @template Z The type of the locale context.
|
|
1118
|
-
* @template E The type of the locale items managed by the registry.
|
|
1119
|
-
* @template R The type of the token context.
|
|
1120
|
-
* @template O The type of the token items managed by the registry.
|
|
1121
|
-
* @returns Vue install function for the plugin
|
|
1122
|
-
*/
|
|
1123
|
-
declare function createLocalePlugin<Z extends LocaleTicket = LocaleTicket, E extends LocaleContext<Z> = LocaleContext<Z>, R extends TokenTicket = TokenTicket, O extends TokenContext<R> = TokenContext<R>>(options?: LocalePluginOptions): LocalePlugin;
|
|
1124
|
-
//#endregion
|
|
1125
|
-
//#region src/composables/useLogger/adapters/adapter.d.ts
|
|
1126
|
-
interface LoggerAdapter {
|
|
1127
|
-
debug: (message: string, ...args: unknown[]) => void;
|
|
1128
|
-
info: (message: string, ...args: unknown[]) => void;
|
|
1129
|
-
warn: (message: string, ...args: unknown[]) => void;
|
|
1130
|
-
error: (message: string, ...args: unknown[]) => void;
|
|
1131
|
-
trace?: (message: string, ...args: unknown[]) => void;
|
|
1132
|
-
fatal?: (message: string, ...args: unknown[]) => void;
|
|
1133
|
-
}
|
|
1134
|
-
//#endregion
|
|
1135
|
-
//#region src/composables/useLogger/adapters/consola.d.ts
|
|
1136
|
-
declare class ConsolaLoggerAdapter implements LoggerAdapter {
|
|
1137
|
-
private consola;
|
|
1138
|
-
constructor(consolaInstance: any);
|
|
1139
|
-
debug(message: string, ...args: unknown[]): void;
|
|
1140
|
-
info(message: string, ...args: unknown[]): void;
|
|
1141
|
-
warn(message: string, ...args: unknown[]): void;
|
|
1142
|
-
error(message: string, ...args: unknown[]): void;
|
|
1143
|
-
trace(message: string, ...args: unknown[]): void;
|
|
1144
|
-
fatal(message: string, ...args: unknown[]): void;
|
|
1145
|
-
}
|
|
1146
|
-
//#endregion
|
|
1147
|
-
//#region src/composables/useLogger/adapters/pino.d.ts
|
|
1148
|
-
/**
|
|
1149
|
-
* Pino logger adapter implementation
|
|
1150
|
-
*
|
|
1151
|
-
* This adapter integrates with the Pino logging library,
|
|
1152
|
-
* providing high-performance structured logging optimized
|
|
1153
|
-
* for Node.js applications with minimal overhead.
|
|
1154
|
-
*/
|
|
1155
|
-
declare class PinoLoggerAdapter implements LoggerAdapter {
|
|
1156
|
-
private pino;
|
|
1157
|
-
constructor(pinoInstance: any);
|
|
1158
|
-
debug(message: string, ...args: unknown[]): void;
|
|
1159
|
-
info(message: string, ...args: unknown[]): void;
|
|
1160
|
-
warn(message: string, ...args: unknown[]): void;
|
|
1161
|
-
error(message: string, ...args: unknown[]): void;
|
|
1162
|
-
trace(message: string, ...args: unknown[]): void;
|
|
1163
|
-
fatal(message: string, ...args: unknown[]): void;
|
|
1164
|
-
private format;
|
|
1165
|
-
}
|
|
1166
|
-
//#endregion
|
|
1167
|
-
//#region src/composables/useLogger/adapters/v0.d.ts
|
|
1168
|
-
/**
|
|
1169
|
-
* Vuetify0.x logger adapter implementation
|
|
1170
|
-
*
|
|
1171
|
-
* This adapter provides console-based logging with proper formatting,
|
|
1172
|
-
* color coding, timestamps, and log level filtering for development
|
|
1173
|
-
* and production environments.
|
|
1174
|
-
*/
|
|
1175
|
-
declare class Vuetify0LoggerAdapter implements LoggerAdapter {
|
|
1176
|
-
private prefix;
|
|
1177
|
-
private colors;
|
|
1178
|
-
private timestamps;
|
|
1179
|
-
constructor(options?: {
|
|
1180
|
-
prefix?: string;
|
|
1181
|
-
colors?: boolean;
|
|
1182
|
-
timestamps?: boolean;
|
|
1183
|
-
});
|
|
1184
|
-
debug(message: string, ...args: unknown[]): void;
|
|
1185
|
-
info(message: string, ...args: unknown[]): void;
|
|
1186
|
-
warn(message: string, ...args: unknown[]): void;
|
|
1187
|
-
error(message: string, ...args: unknown[]): void;
|
|
1188
|
-
trace(message: string, ...args: unknown[]): void;
|
|
1189
|
-
fatal(message: string, ...args: unknown[]): void;
|
|
1190
|
-
private format;
|
|
1191
|
-
private timestamp;
|
|
1192
|
-
private style;
|
|
1193
|
-
private log;
|
|
1194
|
-
}
|
|
1195
|
-
//#endregion
|
|
1196
|
-
//#region src/composables/useLogger/types.d.ts
|
|
1197
|
-
type LogLevel = 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'fatal' | 'silent';
|
|
1198
|
-
//#endregion
|
|
1199
|
-
//#region src/composables/useLogger/index.d.ts
|
|
1200
|
-
interface LoggerContext {
|
|
1201
|
-
debug: (message: string, ...args: unknown[]) => void;
|
|
1202
|
-
info: (message: string, ...args: unknown[]) => void;
|
|
1203
|
-
warn: (message: string, ...args: unknown[]) => void;
|
|
1204
|
-
error: (message: string, ...args: unknown[]) => void;
|
|
1205
|
-
trace: (message: string, ...args: unknown[]) => void;
|
|
1206
|
-
fatal: (message: string, ...args: unknown[]) => void;
|
|
1207
|
-
level: (level: LogLevel) => void;
|
|
1208
|
-
current: () => LogLevel;
|
|
1209
|
-
enabled: () => boolean;
|
|
1210
|
-
enable: () => void;
|
|
1211
|
-
disable: () => void;
|
|
1212
|
-
}
|
|
1213
|
-
interface LoggerOptions {
|
|
1214
|
-
adapter?: LoggerAdapter;
|
|
1215
|
-
level?: LogLevel;
|
|
1216
|
-
prefix?: string;
|
|
1217
|
-
enabled?: boolean;
|
|
1218
|
-
}
|
|
1219
|
-
interface LoggerPlugin {
|
|
1220
|
-
install: (app: App, ...options: any[]) => any;
|
|
1221
|
-
}
|
|
1222
953
|
/**
|
|
1223
|
-
*
|
|
1224
|
-
* This function provides a consistent logging interface that can be configured with
|
|
1225
|
-
* different adapters and optimized for production builds with conditional compilation.
|
|
954
|
+
* Convenience composable for tracking element dimensions
|
|
1226
955
|
*
|
|
1227
|
-
* @param
|
|
1228
|
-
* @returns
|
|
956
|
+
* @param target - Element ref to observe
|
|
957
|
+
* @returns Reactive width and height
|
|
1229
958
|
*/
|
|
1230
|
-
declare function
|
|
1231
|
-
|
|
1232
|
-
|
|
959
|
+
declare function useElementSize(target: Ref<Element | undefined>): {
|
|
960
|
+
width: vue189.ShallowRef<number, number>;
|
|
961
|
+
height: vue189.ShallowRef<number, number>;
|
|
962
|
+
};
|
|
1233
963
|
//#endregion
|
|
1234
|
-
//#region src/composables/
|
|
1235
|
-
interface
|
|
1236
|
-
|
|
1237
|
-
|
|
964
|
+
//#region src/composables/useStep/index.d.ts
|
|
965
|
+
interface StepTicket extends SingleTicket {}
|
|
966
|
+
interface StepContext<Z extends StepTicket> extends SingleContext<Z> {
|
|
967
|
+
/** Select the first Ticket in the collection */
|
|
968
|
+
first: () => void;
|
|
969
|
+
/** Select the last Ticket in the collection */
|
|
970
|
+
last: () => void;
|
|
971
|
+
/** Select the next Ticket based on current index */
|
|
972
|
+
next: () => void;
|
|
973
|
+
/** Select the previous Ticket based on current index */
|
|
974
|
+
prev: () => void;
|
|
975
|
+
/** Step through the collection by a given count */
|
|
976
|
+
step: (count: number) => void;
|
|
1238
977
|
}
|
|
978
|
+
interface StepOptions extends SingleOptions {}
|
|
1239
979
|
/**
|
|
1240
|
-
* Creates a
|
|
980
|
+
* Creates a step selection context for managing collections where users can navigate through items sequentially.
|
|
981
|
+
* This function extends the single selection functionality with stepping navigation.
|
|
1241
982
|
*
|
|
1242
|
-
* @param
|
|
1243
|
-
* @template Z The type of items managed by the selection.
|
|
1244
|
-
* @template E The type of the selection context.
|
|
1245
|
-
* @returns The
|
|
983
|
+
* @param options Optional configuration for step behavior.
|
|
984
|
+
* @template Z The type of items managed by the step selection.
|
|
985
|
+
* @template E The type of the step selection context.
|
|
986
|
+
* @returns The step selection context object.
|
|
1246
987
|
*/
|
|
1247
|
-
declare function
|
|
988
|
+
declare function useStep<Z extends StepTicket = StepTicket, E extends StepContext<Z> = StepContext<Z>>(options?: StepOptions): E;
|
|
1248
989
|
//#endregion
|
|
1249
990
|
//#region src/composables/useStorage/adapters/index.d.ts
|
|
1250
991
|
interface StorageAdapter {
|
|
@@ -1270,9 +1011,6 @@ interface StorageOptions {
|
|
|
1270
1011
|
write: (value: any) => string;
|
|
1271
1012
|
};
|
|
1272
1013
|
}
|
|
1273
|
-
interface StoragePlugin {
|
|
1274
|
-
install: (app: App, ...options: any[]) => any;
|
|
1275
|
-
}
|
|
1276
1014
|
declare const useStorageContext: (namespace?: string) => StorageContext, provideStorageContext: (context: StorageContext, app?: App) => StorageContext;
|
|
1277
1015
|
/**
|
|
1278
1016
|
* Creates a reactive storage system with automatic persistence and cross-adapter support.
|
|
@@ -1297,82 +1035,373 @@ declare function useStorage(): StorageContext;
|
|
|
1297
1035
|
* @param options Optional configuration for the storage system.
|
|
1298
1036
|
* @returns A Vue plugin object with install method.
|
|
1299
1037
|
*/
|
|
1300
|
-
declare function createStoragePlugin(options?: StorageOptions):
|
|
1038
|
+
declare function createStoragePlugin(options?: StorageOptions): Plugin;
|
|
1301
1039
|
//#endregion
|
|
1302
|
-
//#region src/
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1040
|
+
//#region src/composables/useTheme/adapters/adapter.d.ts
|
|
1041
|
+
interface ThemeAdapterInterface {
|
|
1042
|
+
update: (colors: Record<string, Colors>) => void;
|
|
1043
|
+
}
|
|
1044
|
+
declare abstract class ThemeAdapter implements ThemeAdapterInterface {
|
|
1045
|
+
protected prefix: string;
|
|
1046
|
+
constructor(prefix: string);
|
|
1047
|
+
generate(colors: Record<string, Colors>): string;
|
|
1048
|
+
abstract update(colors: Record<string, Colors>): void;
|
|
1049
|
+
}
|
|
1050
|
+
//#endregion
|
|
1051
|
+
//#region src/composables/useTheme/index.d.ts
|
|
1052
|
+
type Colors = {
|
|
1053
|
+
[key: string]: string;
|
|
1054
|
+
};
|
|
1055
|
+
type ThemeColors = {
|
|
1056
|
+
[key: string]: Colors | string;
|
|
1057
|
+
};
|
|
1058
|
+
type ThemeRecord = {
|
|
1059
|
+
[key: string]: any;
|
|
1060
|
+
dark?: boolean;
|
|
1061
|
+
lazy?: boolean;
|
|
1062
|
+
colors: ThemeColors;
|
|
1063
|
+
};
|
|
1064
|
+
type ThemeTicket = SingleTicket & {
|
|
1065
|
+
lazy: boolean;
|
|
1066
|
+
dark: boolean;
|
|
1067
|
+
};
|
|
1068
|
+
interface ThemeContext<Z extends ThemeTicket> extends SingleContext<Z> {
|
|
1069
|
+
colors: ComputedRef<Record<string, Colors>>;
|
|
1070
|
+
cycle: (themes: ID[]) => void;
|
|
1071
|
+
}
|
|
1072
|
+
interface ThemeOptions extends ThemePluginOptions {}
|
|
1073
|
+
interface ThemePluginOptions<Z extends ThemeRecord = ThemeRecord> {
|
|
1074
|
+
adapter?: ThemeAdapter;
|
|
1075
|
+
default?: ID;
|
|
1076
|
+
palette?: TokenCollection;
|
|
1077
|
+
themes?: Record<ID, Z>;
|
|
1078
|
+
}
|
|
1314
1079
|
/**
|
|
1315
|
-
*
|
|
1316
|
-
*
|
|
1317
|
-
*
|
|
1318
|
-
* @
|
|
1319
|
-
* @
|
|
1080
|
+
* Creates a theme registry for managing theme selections with dynamic color resolution.
|
|
1081
|
+
* Supports token-based color systems and lazy theme loading for optimal performance.
|
|
1082
|
+
*
|
|
1083
|
+
* @param namespace The namespace for the theme context.
|
|
1084
|
+
* @param options Configuration including adapter and themes.
|
|
1085
|
+
* @template Z The type of theme context.
|
|
1086
|
+
* @template E The type of theme items managed by the registry.
|
|
1087
|
+
* @returns A tuple containing inject, provide functions and the theme context.
|
|
1088
|
+
*/
|
|
1089
|
+
declare function createTheme<Z extends ThemeTicket = ThemeTicket, E extends ThemeContext<Z> = ThemeContext<Z>>(namespace?: string, options?: ThemeOptions): ContextTrinity<E>;
|
|
1090
|
+
/**
|
|
1091
|
+
* Simple hook to access the theme context.
|
|
1320
1092
|
*
|
|
1321
|
-
* @
|
|
1322
|
-
* @see https://0.vuetifyjs.com/composables/foundation/create-context
|
|
1093
|
+
* @returns The theme context containing current theme state and utilities.
|
|
1323
1094
|
*/
|
|
1324
|
-
declare function
|
|
1095
|
+
declare function useTheme(): ThemeContext<ThemeTicket>;
|
|
1096
|
+
/**
|
|
1097
|
+
* Creates a Vue plugin for theme management with automatic color system updates.
|
|
1098
|
+
* Integrates with token system for dynamic color resolution and provides reactive
|
|
1099
|
+
* theme switching capabilities throughout the application.
|
|
1100
|
+
*
|
|
1101
|
+
* @param options Configuration for themes, palette, and adapter.
|
|
1102
|
+
* @template Z The type of theme context.
|
|
1103
|
+
* @template E The type of theme items.
|
|
1104
|
+
* @template R The type of token context.
|
|
1105
|
+
* @template O The type of token items.
|
|
1106
|
+
* @returns A Vue plugin object with install method.
|
|
1107
|
+
*/
|
|
1108
|
+
declare function createThemePlugin<Z extends ThemeTicket = ThemeTicket, E extends ThemeContext<Z> = ThemeContext<Z>, R extends TokenTicket = TokenTicket, O extends TokenContext<R> = TokenContext<R>>(_options?: ThemePluginOptions): Plugin;
|
|
1325
1109
|
//#endregion
|
|
1326
|
-
//#region src/
|
|
1327
|
-
interface
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
setup?: (app: App) => void;
|
|
1110
|
+
//#region src/composables/useHydration/index.d.ts
|
|
1111
|
+
interface HydrationContext {
|
|
1112
|
+
isHydrated: Readonly<ShallowRef<boolean>>;
|
|
1113
|
+
hydrate: () => void;
|
|
1331
1114
|
}
|
|
1115
|
+
declare const useHydrationContext: (namespace?: string) => HydrationContext, provideHydrationContext: (context: HydrationContext, app?: App) => HydrationContext;
|
|
1332
1116
|
/**
|
|
1333
|
-
*
|
|
1334
|
-
*
|
|
1335
|
-
*
|
|
1117
|
+
* Creates a hydration context for tracking client-side hydration state in SSR applications.
|
|
1118
|
+
* This function provides a way to determine when the application has been fully hydrated
|
|
1119
|
+
* on the client side, which is essential for SSR/SSG compatibility.
|
|
1336
1120
|
*
|
|
1337
|
-
* @
|
|
1338
|
-
* @see https://0.vuetifyjs.com/factories/create-plugin
|
|
1121
|
+
* @returns A hydration context object with reactive state and hydration control.
|
|
1339
1122
|
*/
|
|
1340
|
-
declare function
|
|
1341
|
-
//#endregion
|
|
1342
|
-
//#region src/transformers/toArray/index.d.ts
|
|
1343
|
-
declare function toArray<T>(value: T | T[]): T[];
|
|
1344
|
-
//#endregion
|
|
1345
|
-
//#region src/transformers/toReactive/index.d.ts
|
|
1123
|
+
declare function createHydration(): HydrationContext;
|
|
1346
1124
|
/**
|
|
1347
|
-
*
|
|
1348
|
-
* This function creates a reactive version of the provided object,
|
|
1349
|
-
* making its properties automatically track dependencies and trigger re-renders
|
|
1350
|
-
* when they change.
|
|
1125
|
+
* Simple hook to access the hydration context.
|
|
1351
1126
|
*
|
|
1352
|
-
* @
|
|
1353
|
-
* @template Z The type of the object that extends object.
|
|
1354
|
-
* @returns A reactive reference to the object.
|
|
1127
|
+
* @returns The hydration context containing hydration state and controls.
|
|
1355
1128
|
*/
|
|
1356
|
-
declare function
|
|
1129
|
+
declare function useHydration(): HydrationContext;
|
|
1130
|
+
/**
|
|
1131
|
+
* Creates a Vue plugin for hydration state management in SSR/SSG applications.
|
|
1132
|
+
* This plugin automatically detects when the root component is mounted and
|
|
1133
|
+
* triggers the hydration process, ensuring proper client-side hydration timing.
|
|
1134
|
+
*
|
|
1135
|
+
* @returns A Vue plugin object with install method.
|
|
1136
|
+
*/
|
|
1137
|
+
declare function createHydrationPlugin(): Plugin;
|
|
1138
|
+
//#endregion
|
|
1139
|
+
//#region src/components/Hydration/Hydration.vue.d.ts
|
|
1140
|
+
interface HydrationSlots {
|
|
1141
|
+
default: (scope: HydrationContext) => any;
|
|
1142
|
+
}
|
|
1143
|
+
declare const _default$1: __VLS_WithSlots$1<vue189.DefineComponent<{}, void, {}, {}, {}, vue189.ComponentOptionsMixin, vue189.ComponentOptionsMixin, {}, string, vue189.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue189.ComponentProvideOptions, true, {}, any>, HydrationSlots>;
|
|
1144
|
+
type __VLS_WithSlots$1<T, S> = T & {
|
|
1145
|
+
new (): {
|
|
1146
|
+
$slots: S;
|
|
1147
|
+
};
|
|
1148
|
+
};
|
|
1149
|
+
//#endregion
|
|
1150
|
+
//#region src/components/Hydration/HydrationRoot.vue.d.ts
|
|
1151
|
+
interface HydrationRootSlots {
|
|
1152
|
+
default: (scope: HydrationContext) => any;
|
|
1153
|
+
}
|
|
1154
|
+
declare const _default: __VLS_WithSlots<vue189.DefineComponent<{}, void, {}, {}, {}, vue189.ComponentOptionsMixin, vue189.ComponentOptionsMixin, {}, string, vue189.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue189.ComponentProvideOptions, true, {}, any>, HydrationRootSlots>;
|
|
1155
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
1156
|
+
new (): {
|
|
1157
|
+
$slots: S;
|
|
1158
|
+
};
|
|
1159
|
+
};
|
|
1160
|
+
//#endregion
|
|
1161
|
+
//#region src/components/Popover/PopoverRoot.vue.d.ts
|
|
1162
|
+
interface PopoverContext {
|
|
1163
|
+
isActive: ShallowRef<boolean>;
|
|
1164
|
+
id: string;
|
|
1165
|
+
toggle: () => void;
|
|
1166
|
+
}
|
|
1167
|
+
interface PopoverRootProps extends AtomProps {
|
|
1168
|
+
id?: string;
|
|
1169
|
+
}
|
|
1170
|
+
declare const usePopoverContext: (namespace?: string) => PopoverContext, providePopoverContext: (context: PopoverContext, app?: vue189.App) => PopoverContext;
|
|
1171
|
+
//#endregion
|
|
1172
|
+
//#region src/components/Popover/PopoverAnchor.vue.d.ts
|
|
1173
|
+
interface PopoverAnchorProps extends AtomProps {
|
|
1174
|
+
target?: string;
|
|
1175
|
+
}
|
|
1176
|
+
//#endregion
|
|
1177
|
+
//#region src/components/Popover/PopoverContent.vue.d.ts
|
|
1178
|
+
interface PopoverContentProps extends AtomProps {
|
|
1179
|
+
id?: string;
|
|
1180
|
+
positionArea?: string;
|
|
1181
|
+
positionTry?: string;
|
|
1182
|
+
}
|
|
1183
|
+
interface PopoverContentEmits {
|
|
1184
|
+
beforetoggle: [e: ToggleEvent];
|
|
1185
|
+
}
|
|
1186
|
+
//#endregion
|
|
1187
|
+
//#region src/components/Popover/index.d.ts
|
|
1188
|
+
declare const Popover: {
|
|
1189
|
+
Root: {
|
|
1190
|
+
new (...args: any[]): vue189.CreateComponentPublicInstanceWithMixins<Readonly<PopoverRootProps & {
|
|
1191
|
+
modelValue?: boolean;
|
|
1192
|
+
}> & Readonly<{
|
|
1193
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
1194
|
+
}>, void, {}, {}, {}, vue189.ComponentOptionsMixin, vue189.ComponentOptionsMixin, {
|
|
1195
|
+
"update:modelValue": (value: boolean) => any;
|
|
1196
|
+
}, vue189.PublicProps, {}, false, {}, {}, vue189.GlobalComponents, vue189.GlobalDirectives, string, {}, any, vue189.ComponentProvideOptions, {
|
|
1197
|
+
P: {};
|
|
1198
|
+
B: {};
|
|
1199
|
+
D: {};
|
|
1200
|
+
C: {};
|
|
1201
|
+
M: {};
|
|
1202
|
+
Defaults: {};
|
|
1203
|
+
}, Readonly<PopoverRootProps & {
|
|
1204
|
+
modelValue?: boolean;
|
|
1205
|
+
}> & Readonly<{
|
|
1206
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
1207
|
+
}>, {}, {}, {}, {}, {}>;
|
|
1208
|
+
__isFragment?: never;
|
|
1209
|
+
__isTeleport?: never;
|
|
1210
|
+
__isSuspense?: never;
|
|
1211
|
+
} & vue189.ComponentOptionsBase<Readonly<PopoverRootProps & {
|
|
1212
|
+
modelValue?: boolean;
|
|
1213
|
+
}> & Readonly<{
|
|
1214
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
1215
|
+
}>, void, {}, {}, {}, vue189.ComponentOptionsMixin, vue189.ComponentOptionsMixin, {
|
|
1216
|
+
"update:modelValue": (value: boolean) => any;
|
|
1217
|
+
}, string, {}, {}, string, {}, vue189.GlobalComponents, vue189.GlobalDirectives, string, vue189.ComponentProvideOptions> & vue189.VNodeProps & vue189.AllowedComponentProps & vue189.ComponentCustomProps & (new () => {
|
|
1218
|
+
$slots: {
|
|
1219
|
+
default: (props: {
|
|
1220
|
+
id: Readonly<vue189.Ref<string, string>>;
|
|
1221
|
+
isActive: vue189.ModelRef<boolean, string, boolean, boolean>;
|
|
1222
|
+
toggle: () => void;
|
|
1223
|
+
}) => any;
|
|
1224
|
+
};
|
|
1225
|
+
});
|
|
1226
|
+
Anchor: {
|
|
1227
|
+
new (...args: any[]): vue189.CreateComponentPublicInstanceWithMixins<Readonly<PopoverAnchorProps> & Readonly<{}>, void, {}, {}, {}, vue189.ComponentOptionsMixin, vue189.ComponentOptionsMixin, {}, vue189.PublicProps, {}, false, {}, {}, vue189.GlobalComponents, vue189.GlobalDirectives, string, {}, any, vue189.ComponentProvideOptions, {
|
|
1228
|
+
P: {};
|
|
1229
|
+
B: {};
|
|
1230
|
+
D: {};
|
|
1231
|
+
C: {};
|
|
1232
|
+
M: {};
|
|
1233
|
+
Defaults: {};
|
|
1234
|
+
}, Readonly<PopoverAnchorProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
1235
|
+
__isFragment?: never;
|
|
1236
|
+
__isTeleport?: never;
|
|
1237
|
+
__isSuspense?: never;
|
|
1238
|
+
} & vue189.ComponentOptionsBase<Readonly<PopoverAnchorProps> & Readonly<{}>, void, {}, {}, {}, vue189.ComponentOptionsMixin, vue189.ComponentOptionsMixin, {}, string, {}, {}, string, {}, vue189.GlobalComponents, vue189.GlobalDirectives, string, vue189.ComponentProvideOptions> & vue189.VNodeProps & vue189.AllowedComponentProps & vue189.ComponentCustomProps & (new () => {
|
|
1239
|
+
$slots: {
|
|
1240
|
+
default?: (props: {}) => any;
|
|
1241
|
+
};
|
|
1242
|
+
});
|
|
1243
|
+
Content: {
|
|
1244
|
+
new (...args: any[]): vue189.CreateComponentPublicInstanceWithMixins<Readonly<PopoverContentProps> & Readonly<{
|
|
1245
|
+
onBeforetoggle?: ((e: ToggleEvent) => any) | undefined;
|
|
1246
|
+
}>, void, {}, {}, {}, vue189.ComponentOptionsMixin, vue189.ComponentOptionsMixin, {
|
|
1247
|
+
beforetoggle: (e: ToggleEvent) => any;
|
|
1248
|
+
}, vue189.PublicProps, {}, false, {}, {}, vue189.GlobalComponents, vue189.GlobalDirectives, string, {}, any, vue189.ComponentProvideOptions, {
|
|
1249
|
+
P: {};
|
|
1250
|
+
B: {};
|
|
1251
|
+
D: {};
|
|
1252
|
+
C: {};
|
|
1253
|
+
M: {};
|
|
1254
|
+
Defaults: {};
|
|
1255
|
+
}, Readonly<PopoverContentProps> & Readonly<{
|
|
1256
|
+
onBeforetoggle?: ((e: ToggleEvent) => any) | undefined;
|
|
1257
|
+
}>, {}, {}, {}, {}, {}>;
|
|
1258
|
+
__isFragment?: never;
|
|
1259
|
+
__isTeleport?: never;
|
|
1260
|
+
__isSuspense?: never;
|
|
1261
|
+
} & vue189.ComponentOptionsBase<Readonly<PopoverContentProps> & Readonly<{
|
|
1262
|
+
onBeforetoggle?: ((e: ToggleEvent) => any) | undefined;
|
|
1263
|
+
}>, void, {}, {}, {}, vue189.ComponentOptionsMixin, vue189.ComponentOptionsMixin, {
|
|
1264
|
+
beforetoggle: (e: ToggleEvent) => any;
|
|
1265
|
+
}, string, {}, {}, string, {}, vue189.GlobalComponents, vue189.GlobalDirectives, string, vue189.ComponentProvideOptions> & vue189.VNodeProps & vue189.AllowedComponentProps & vue189.ComponentCustomProps & (new () => {
|
|
1266
|
+
$slots: {
|
|
1267
|
+
default?: (props: {}) => any;
|
|
1268
|
+
};
|
|
1269
|
+
});
|
|
1270
|
+
};
|
|
1357
1271
|
//#endregion
|
|
1358
|
-
//#region src/
|
|
1359
|
-
interface
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1272
|
+
//#region src/components/Step/StepItem.vue.d.ts
|
|
1273
|
+
interface StepItemProps {
|
|
1274
|
+
id?: string;
|
|
1275
|
+
value?: any;
|
|
1276
|
+
disabled?: boolean;
|
|
1277
|
+
namespace?: string;
|
|
1278
|
+
}
|
|
1279
|
+
interface StepItemSlots {
|
|
1280
|
+
default: (scope: UnwrapNestedRefs<GroupTicket>) => any;
|
|
1363
1281
|
}
|
|
1364
|
-
declare function run(name: string, fn: () => void, samples?: number): Promise<BenchmarkResult>;
|
|
1365
1282
|
//#endregion
|
|
1366
|
-
//#region src/
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1283
|
+
//#region src/components/Step/StepRoot.vue.d.ts
|
|
1284
|
+
interface StepRootProps extends StepOptions {
|
|
1285
|
+
namespace?: string;
|
|
1286
|
+
}
|
|
1287
|
+
interface StepRootSlots {
|
|
1288
|
+
default: (scope: StepContext & {
|
|
1289
|
+
model: ModelRef<any>;
|
|
1290
|
+
}) => any;
|
|
1291
|
+
}
|
|
1292
|
+
//#endregion
|
|
1293
|
+
//#region src/components/Step/index.d.ts
|
|
1294
|
+
declare const Step: {
|
|
1295
|
+
Item: {
|
|
1296
|
+
new (...args: any[]): vue189.CreateComponentPublicInstanceWithMixins<Readonly<StepItemProps> & Readonly<{}>, void, {}, {}, {}, vue189.ComponentOptionsMixin, vue189.ComponentOptionsMixin, {}, vue189.PublicProps, {}, false, {}, {}, vue189.GlobalComponents, vue189.GlobalDirectives, string, {}, any, vue189.ComponentProvideOptions, {
|
|
1297
|
+
P: {};
|
|
1298
|
+
B: {};
|
|
1299
|
+
D: {};
|
|
1300
|
+
C: {};
|
|
1301
|
+
M: {};
|
|
1302
|
+
Defaults: {};
|
|
1303
|
+
}, Readonly<StepItemProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
1304
|
+
__isFragment?: never;
|
|
1305
|
+
__isTeleport?: never;
|
|
1306
|
+
__isSuspense?: never;
|
|
1307
|
+
} & vue189.ComponentOptionsBase<Readonly<StepItemProps> & Readonly<{}>, void, {}, {}, {}, vue189.ComponentOptionsMixin, vue189.ComponentOptionsMixin, {}, string, {}, {}, string, {}, vue189.GlobalComponents, vue189.GlobalDirectives, string, vue189.ComponentProvideOptions> & vue189.VNodeProps & vue189.AllowedComponentProps & vue189.ComponentCustomProps & (new () => {
|
|
1308
|
+
$slots: StepItemSlots;
|
|
1309
|
+
});
|
|
1310
|
+
Root: {
|
|
1311
|
+
new (...args: any[]): vue189.CreateComponentPublicInstanceWithMixins<Readonly<StepRootProps & {
|
|
1312
|
+
modelValue?: any;
|
|
1313
|
+
}> & Readonly<{
|
|
1314
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
1315
|
+
}>, void, {}, {}, {}, vue189.ComponentOptionsMixin, vue189.ComponentOptionsMixin, {
|
|
1316
|
+
"update:modelValue": (value: any) => any;
|
|
1317
|
+
}, vue189.PublicProps, {}, false, {}, {}, vue189.GlobalComponents, vue189.GlobalDirectives, string, {}, any, vue189.ComponentProvideOptions, {
|
|
1318
|
+
P: {};
|
|
1319
|
+
B: {};
|
|
1320
|
+
D: {};
|
|
1321
|
+
C: {};
|
|
1322
|
+
M: {};
|
|
1323
|
+
Defaults: {};
|
|
1324
|
+
}, Readonly<StepRootProps & {
|
|
1325
|
+
modelValue?: any;
|
|
1326
|
+
}> & Readonly<{
|
|
1327
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
1328
|
+
}>, {}, {}, {}, {}, {}>;
|
|
1329
|
+
__isFragment?: never;
|
|
1330
|
+
__isTeleport?: never;
|
|
1331
|
+
__isSuspense?: never;
|
|
1332
|
+
} & vue189.ComponentOptionsBase<Readonly<StepRootProps & {
|
|
1333
|
+
modelValue?: any;
|
|
1334
|
+
}> & Readonly<{
|
|
1335
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
1336
|
+
}>, void, {}, {}, {}, vue189.ComponentOptionsMixin, vue189.ComponentOptionsMixin, {
|
|
1337
|
+
"update:modelValue": (value: any) => any;
|
|
1338
|
+
}, string, {}, {}, string, {}, vue189.GlobalComponents, vue189.GlobalDirectives, string, vue189.ComponentProvideOptions> & vue189.VNodeProps & vue189.AllowedComponentProps & vue189.ComponentCustomProps & (new () => {
|
|
1339
|
+
$slots: StepRootSlots;
|
|
1340
|
+
});
|
|
1341
|
+
};
|
|
1342
|
+
//#endregion
|
|
1343
|
+
//#region src/components/Theme/ThemeItem.vue.d.ts
|
|
1344
|
+
interface ThemeSlots {
|
|
1345
|
+
default: (scope: ThemeContext<ThemeTicket>) => any;
|
|
1346
|
+
}
|
|
1347
|
+
//#endregion
|
|
1348
|
+
//#region src/components/Theme/ThemeRoot.vue.d.ts
|
|
1349
|
+
interface ThemeRootProps {
|
|
1350
|
+
namespace?: string;
|
|
1351
|
+
themes?: ThemeTicket[];
|
|
1352
|
+
}
|
|
1353
|
+
interface ThemeRootSlots {
|
|
1354
|
+
default: (scope: ThemeContext<ThemeTicket>) => any;
|
|
1355
|
+
}
|
|
1356
|
+
//#endregion
|
|
1357
|
+
//#region src/components/Theme/index.d.ts
|
|
1358
|
+
declare const Theme: {
|
|
1359
|
+
Item: {
|
|
1360
|
+
new (...args: any[]): vue189.CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, void, {}, {}, {}, vue189.ComponentOptionsMixin, vue189.ComponentOptionsMixin, {}, vue189.PublicProps, {}, true, {}, {}, vue189.GlobalComponents, vue189.GlobalDirectives, string, {}, any, vue189.ComponentProvideOptions, {
|
|
1361
|
+
P: {};
|
|
1362
|
+
B: {};
|
|
1363
|
+
D: {};
|
|
1364
|
+
C: {};
|
|
1365
|
+
M: {};
|
|
1366
|
+
Defaults: {};
|
|
1367
|
+
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
1368
|
+
__isFragment?: never;
|
|
1369
|
+
__isTeleport?: never;
|
|
1370
|
+
__isSuspense?: never;
|
|
1371
|
+
} & vue189.ComponentOptionsBase<Readonly<{}> & Readonly<{}>, void, {}, {}, {}, vue189.ComponentOptionsMixin, vue189.ComponentOptionsMixin, {}, string, {}, {}, string, {}, vue189.GlobalComponents, vue189.GlobalDirectives, string, vue189.ComponentProvideOptions> & vue189.VNodeProps & vue189.AllowedComponentProps & vue189.ComponentCustomProps & (new () => {
|
|
1372
|
+
$slots: ThemeSlots;
|
|
1373
|
+
});
|
|
1374
|
+
Root: {
|
|
1375
|
+
new (...args: any[]): vue189.CreateComponentPublicInstanceWithMixins<Readonly<ThemeRootProps & {
|
|
1376
|
+
modelValue?: ID;
|
|
1377
|
+
}> & Readonly<{
|
|
1378
|
+
"onUpdate:modelValue"?: ((value: ID) => any) | undefined;
|
|
1379
|
+
}>, void, {}, {}, {}, vue189.ComponentOptionsMixin, vue189.ComponentOptionsMixin, {
|
|
1380
|
+
"update:modelValue": (value: ID) => any;
|
|
1381
|
+
}, vue189.PublicProps, {}, false, {}, {}, vue189.GlobalComponents, vue189.GlobalDirectives, string, {}, any, vue189.ComponentProvideOptions, {
|
|
1382
|
+
P: {};
|
|
1383
|
+
B: {};
|
|
1384
|
+
D: {};
|
|
1385
|
+
C: {};
|
|
1386
|
+
M: {};
|
|
1387
|
+
Defaults: {};
|
|
1388
|
+
}, Readonly<ThemeRootProps & {
|
|
1389
|
+
modelValue?: ID;
|
|
1390
|
+
}> & Readonly<{
|
|
1391
|
+
"onUpdate:modelValue"?: ((value: ID) => any) | undefined;
|
|
1392
|
+
}>, {}, {}, {}, {}, {}>;
|
|
1393
|
+
__isFragment?: never;
|
|
1394
|
+
__isTeleport?: never;
|
|
1395
|
+
__isSuspense?: never;
|
|
1396
|
+
} & vue189.ComponentOptionsBase<Readonly<ThemeRootProps & {
|
|
1397
|
+
modelValue?: ID;
|
|
1398
|
+
}> & Readonly<{
|
|
1399
|
+
"onUpdate:modelValue"?: ((value: ID) => any) | undefined;
|
|
1400
|
+
}>, void, {}, {}, {}, vue189.ComponentOptionsMixin, vue189.ComponentOptionsMixin, {
|
|
1401
|
+
"update:modelValue": (value: ID) => any;
|
|
1402
|
+
}, string, {}, {}, string, {}, vue189.GlobalComponents, vue189.GlobalDirectives, string, vue189.ComponentProvideOptions> & vue189.VNodeProps & vue189.AllowedComponentProps & vue189.ComponentCustomProps & (new () => {
|
|
1403
|
+
$slots: ThemeRootSlots;
|
|
1404
|
+
});
|
|
1405
|
+
};
|
|
1377
1406
|
//#endregion
|
|
1378
|
-
export {
|
|
1407
|
+
export { AtomExpose, AtomProps, AtomSlots, BreakpointName, Breakpoints, BreakpointsContext, BreakpointsOptions, CleanupFunction, Colors, ConsolaLoggerAdapter, Context, EventHandler, FilterFunction, FilterItem, FilterMode, FilterQuery, FlatTokenCollection, FormContext, FormOptions, FormTicket, FormValidationResult, FormValidationRule, FormValue, Group, GroupContext, type GroupItemProps, type GroupItemSlots, GroupOptions, type GroupRootProps, type GroupRootSlots, GroupTicket, HydrationContext, IntersectionObserverEntry, IntersectionObserverOptions, KeyHandler, LayoutContext, LayoutLocation, LayoutOptions, LayoutTicket, LocaleContext, LocaleOptions, LocalePluginOptions, LocaleTicket, type LogLevel, type LoggerAdapter, LoggerContext, LoggerOptions, MutationObserverRecord, PinoLoggerAdapter, Popover, type PopoverAnchorProps, type PopoverContentEmits, type PopoverContentProps, type PopoverContext, type PopoverRootProps, Primitive, ProxyModelOptions, RegistryContext, RegistryOptions, RegistryTicket, ResizeObserverEntry, ResizeObserverOptions, SelectionContext, SelectionOptions, SelectionTicket, SingleContext, SingleOptions, SingleTicket, Step, StepContext, type StepItemProps, type StepItemSlots, StepOptions, type StepRootProps, type StepRootSlots, StepTicket, StorageContext, StorageOptions, Theme, ThemeColors, ThemeContext, ThemeOptions, ThemePluginOptions, ThemeRecord, type ThemeRootProps, type ThemeRootSlots, type ThemeSlots, ThemeTicket, TokenAlias, TokenCollection, TokenContext, TokenPrimitive, TokenTicket, TokenValue, UseFilterOptions, UseFilterResult, UseMutationObserverOptions, Vuetify0LoggerAdapter, _default, _default$1, _default$2, createBreakpoints, createBreakpointsPlugin, createHydration, createHydrationPlugin, createLocale, createLocalePlugin, createLogger, createLoggerPlugin, createRegistryContext, createStorage, createStoragePlugin, createTheme, createThemePlugin, createTokensContext, provideBreakpointsContext, provideHydrationContext, providePopoverContext, provideStorageContext, useBreakpoints, useBreakpointsContext, useDocumentEventListener, useElementIntersection, useElementSize, useEventListener, useFilter, useForm, useGroup, useHydration, useHydrationContext, useIntersectionObserver, useKeydown, useLayout, useLocale, useLogger, useMutationObserver, usePopoverContext, useProxyModel, useRegistry, useResizeObserver, useSelection, useSingle, useStep, useStorage, useStorageContext, useTheme, useTokens, useWindowEventListener };
|