@vuetify/v0 0.0.2-beta.4 → 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/browser/index.js +3123 -0
- package/dist/components/{index.d.mts → index.d.ts} +7 -5
- package/dist/components/{index.mjs → index.js} +7 -5
- package/dist/{components-B5iiovK7.mjs → components-Cc48kKWf.js} +5 -33
- package/dist/composables/index.d.ts +7 -0
- package/dist/composables/index.js +8 -0
- package/dist/{composables-C6dl5kjP.mjs → composables-7Cbs2sdO.js} +395 -6
- 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.mjs → index.js} +1 -2
- package/dist/globals--2b7sF4-.js +12 -0
- package/dist/htmlElements-SjqYu0am.js +78 -0
- package/dist/index-BnsMFYhs.d.ts +1407 -0
- package/dist/{index-D4Grk5x1.d.mts → index-BozA2pze.d.ts} +1 -1
- package/dist/{index-oCBJwhpG.d.mts → index-BqrLvboW.d.ts} +31 -13
- 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-BTjuwbOV.mjs → transformers-BAeg3QJF.js} +1 -1
- package/dist/types/{index.d.mts → index.d.ts} +1 -1
- package/dist/types/index.js +1 -0
- package/dist/{useTheme-tY7MoBKr.mjs → useTheme-DSYiiz0R.js} +65 -19
- package/dist/utilities/{index.d.mts → index.d.ts} +2 -2
- package/dist/utilities/{index.mjs → index.js} +1 -1
- package/package.json +32 -21
- package/dist/composables/index.d.mts +0 -5
- package/dist/composables/index.mjs +0 -7
- package/dist/factories/index.d.mts +0 -3
- package/dist/factories-DOLmqhVS.mjs +0 -0
- package/dist/index-ChaaTPKp.d.mts +0 -421
- package/dist/index-Cya5Y9pB.d.mts +0 -412
- package/dist/index-DfahEz6s.d.mts +0 -18
- package/dist/index-jG0yrC1F.d.mts +0 -467
- package/dist/index.d.mts +0 -9
- package/dist/index.mjs +0 -9
- package/dist/transformers/index.d.mts +0 -2
- package/dist/transformers/index.mjs +0 -4
- package/dist/types/index.mjs +0 -0
- /package/dist/{createTrinity-CwGvQ2ng.mjs → factories-CPq2yMlr.js} +0 -0
- /package/dist/{index-BA3ZFBnL.d.mts → index-LBy5OPMu.d.ts} +0 -0
- /package/dist/{index-CZRh0I2w.d.mts → index-tUyghL98.d.ts} +0 -0
- /package/dist/{utilities-lZSfrXgw.mjs → utilities-D9rWEgQK.js} +0 -0
|
@@ -1,412 +0,0 @@
|
|
|
1
|
-
import { ID, MaybeArray } from "./index-BA3ZFBnL.mjs";
|
|
2
|
-
import { GroupContext, GroupOptions, GroupTicket, RegistryContext, RegistryOptions, RegistryTicket, SelectionContext, SelectionTicket, SingleContext, SingleTicket, TokenCollection, TokenContext, TokenTicket } from "./index-ChaaTPKp.mjs";
|
|
3
|
-
import { ContextTrinity } from "./index-DfahEz6s.mjs";
|
|
4
|
-
import * as vue186 from "vue";
|
|
5
|
-
import { App, ComputedRef, MaybeRef, MaybeRefOrGetter, Ref, ShallowReactive, ShallowRef } from "vue";
|
|
6
|
-
import { AnyARecord } from "node:dns";
|
|
7
|
-
|
|
8
|
-
//#region src/composables/useEventListener/index.d.ts
|
|
9
|
-
type CleanupFunction = () => void;
|
|
10
|
-
type EventHandler<E = Event> = (event: E) => void;
|
|
11
|
-
/**
|
|
12
|
-
* Attaches event listeners to the window object with automatic cleanup.
|
|
13
|
-
* This overload provides type-safe event handling for window-specific events
|
|
14
|
-
* with proper event map typing and automatic listener removal on scope disposal.
|
|
15
|
-
*
|
|
16
|
-
* @param target Window object to attach listeners to.
|
|
17
|
-
* @param event Event name(s) to listen for from WindowEventMap.
|
|
18
|
-
* @param listener Event handler function(s) with proper window event typing.
|
|
19
|
-
* @param options Optional event listener configuration.
|
|
20
|
-
* @returns Function to manually remove all attached listeners.
|
|
21
|
-
*/
|
|
22
|
-
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;
|
|
23
|
-
/**
|
|
24
|
-
* Attaches event listeners to the document object with automatic cleanup.
|
|
25
|
-
* This overload provides type-safe event handling for document-specific events
|
|
26
|
-
* with proper event map typing and automatic listener removal on scope disposal.
|
|
27
|
-
*
|
|
28
|
-
* @param target Document object to attach listeners to.
|
|
29
|
-
* @param event Event name(s) to listen for from DocumentEventMap.
|
|
30
|
-
* @param listener Event handler function(s) with proper document event typing.
|
|
31
|
-
* @param options Optional event listener configuration.
|
|
32
|
-
* @returns Function to manually remove all attached listeners.
|
|
33
|
-
*/
|
|
34
|
-
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;
|
|
35
|
-
/**
|
|
36
|
-
* Attaches event listeners to HTML elements with automatic cleanup.
|
|
37
|
-
* This overload provides type-safe event handling for HTML element events
|
|
38
|
-
* with reactive target support and automatic listener removal on scope disposal.
|
|
39
|
-
*
|
|
40
|
-
* @param target HTML element or reactive reference to element.
|
|
41
|
-
* @param event Event name(s) to listen for from HTMLElementEventMap.
|
|
42
|
-
* @param listener Event handler function(s) with proper HTML element event typing.
|
|
43
|
-
* @param options Optional event listener configuration.
|
|
44
|
-
* @returns Function to manually remove all attached listeners.
|
|
45
|
-
*/
|
|
46
|
-
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;
|
|
47
|
-
/**
|
|
48
|
-
* Attaches event listeners to any EventTarget with automatic cleanup.
|
|
49
|
-
* This overload provides flexible event handling for any EventTarget implementation
|
|
50
|
-
* with reactive target support and automatic listener removal on scope disposal.
|
|
51
|
-
*
|
|
52
|
-
* @param target EventTarget or reactive reference to target.
|
|
53
|
-
* @param event Event name(s) to listen for as string identifiers.
|
|
54
|
-
* @param listener Event handler function(s) with customizable event typing.
|
|
55
|
-
* @param options Optional event listener configuration.
|
|
56
|
-
* @returns Function to manually remove all attached listeners.
|
|
57
|
-
*/
|
|
58
|
-
declare function useEventListener<EventType = Event>(target: MaybeRefOrGetter<EventTarget | null | undefined>, event: MaybeRefOrGetter<MaybeArray<string>>, listener: MaybeRef<MaybeArray<EventHandler<EventType>>>, options?: MaybeRefOrGetter<boolean | AddEventListenerOptions>): CleanupFunction;
|
|
59
|
-
/**
|
|
60
|
-
* Convenience function for attaching event listeners to the window object.
|
|
61
|
-
* This function provides a simplified API by pre-binding the window target,
|
|
62
|
-
* making it easier to handle window-specific events with automatic cleanup.
|
|
63
|
-
*
|
|
64
|
-
* @param event Event name(s) to listen for from WindowEventMap.
|
|
65
|
-
* @param listener Event handler function(s) with proper window event typing.
|
|
66
|
-
* @param options Optional event listener configuration.
|
|
67
|
-
* @returns Function to manually remove all attached listeners.
|
|
68
|
-
*/
|
|
69
|
-
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;
|
|
70
|
-
/**
|
|
71
|
-
* Convenience function for attaching event listeners to the document object.
|
|
72
|
-
* This function provides a simplified API by pre-binding the document target,
|
|
73
|
-
* making it easier to handle document-specific events with automatic cleanup.
|
|
74
|
-
*
|
|
75
|
-
* @param event Event name(s) to listen for from DocumentEventMap.
|
|
76
|
-
* @param listener Event handler function(s) with proper document event typing.
|
|
77
|
-
* @param options Optional event listener configuration.
|
|
78
|
-
* @returns Function to manually remove all attached listeners.
|
|
79
|
-
*/
|
|
80
|
-
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;
|
|
81
|
-
//#endregion
|
|
82
|
-
//#region src/composables/useFilter/index.d.ts
|
|
83
|
-
type Primitive = string | number | boolean;
|
|
84
|
-
type FilterQuery = MaybeRefOrGetter<Primitive | Primitive[]>;
|
|
85
|
-
type FilterItem = Primitive | Record<string, any>;
|
|
86
|
-
type FilterMode = 'some' | 'every' | 'union' | 'intersection';
|
|
87
|
-
type FilterFunction = (query: Primitive | Primitive[], item: FilterItem) => boolean;
|
|
88
|
-
interface UseFilterOptions {
|
|
89
|
-
customFilter?: FilterFunction;
|
|
90
|
-
keys?: string[];
|
|
91
|
-
mode?: FilterMode;
|
|
92
|
-
}
|
|
93
|
-
interface UseFilterResult<Z extends FilterItem = FilterItem> {
|
|
94
|
-
items: ComputedRef<Z[]>;
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* Creates a reactive filter for arrays based on query matching with configurable search modes.
|
|
98
|
-
* Supports 'some' (any field matches), 'every' (all fields match), 'union' (any query matches),
|
|
99
|
-
* and 'intersection' (all queries match) filtering strategies.
|
|
100
|
-
*
|
|
101
|
-
* @param query Filter query to match against items.
|
|
102
|
-
* @param items Collection of items to filter.
|
|
103
|
-
* @param options Optional configuration for the filter behavior.
|
|
104
|
-
* @template Z The type of the items being filtered.
|
|
105
|
-
* @returns A computed reference to the filtered items based on the query and options.
|
|
106
|
-
*/
|
|
107
|
-
declare function useFilter<Z extends FilterItem>(query: FilterQuery, items: MaybeRef<Z[]>, options?: UseFilterOptions): UseFilterResult<Z>;
|
|
108
|
-
//#endregion
|
|
109
|
-
//#region src/composables/useForm/index.d.ts
|
|
110
|
-
type FormValidationResult = string | true | Promise<string | true>;
|
|
111
|
-
type FormValidationRule = (value: AnyARecord) => FormValidationResult;
|
|
112
|
-
type FormValue = Ref<any> | ShallowRef<any>;
|
|
113
|
-
interface FormTicket extends RegistryTicket {
|
|
114
|
-
validate: (silent?: boolean) => Promise<boolean>;
|
|
115
|
-
reset: () => void;
|
|
116
|
-
validateOn: 'submit' | 'change' | string;
|
|
117
|
-
disabled: boolean;
|
|
118
|
-
errors: ShallowRef<string[]>;
|
|
119
|
-
rules: FormValidationRule[];
|
|
120
|
-
isPristine: ShallowRef<boolean>;
|
|
121
|
-
isValid: ShallowRef<boolean | null>;
|
|
122
|
-
isValidating: ShallowRef<boolean>;
|
|
123
|
-
}
|
|
124
|
-
interface FormContext<Z extends FormTicket = FormTicket> extends RegistryContext<Z> {
|
|
125
|
-
submit: (id?: ID | ID[]) => Promise<boolean>;
|
|
126
|
-
reset: () => void;
|
|
127
|
-
validateOn: 'submit' | 'change' | string;
|
|
128
|
-
isValid: ShallowRef<boolean | null>;
|
|
129
|
-
isValidating: ShallowRef<boolean>;
|
|
130
|
-
}
|
|
131
|
-
interface FormOptions extends RegistryOptions {
|
|
132
|
-
validateOn?: 'submit' | 'change' | string;
|
|
133
|
-
}
|
|
134
|
-
declare function useForm<Z extends FormTicket = FormTicket, E extends FormContext<Z> = FormContext<Z>>(options?: FormOptions): E;
|
|
135
|
-
//#endregion
|
|
136
|
-
//#region src/composables/useKeydown/index.d.ts
|
|
137
|
-
interface KeyHandler {
|
|
138
|
-
key: string;
|
|
139
|
-
handler: (event: KeyboardEvent) => void;
|
|
140
|
-
preventDefault?: boolean;
|
|
141
|
-
stopPropagation?: boolean;
|
|
142
|
-
}
|
|
143
|
-
/**
|
|
144
|
-
* Sets up global keyboard event listeners for specified key handlers with automatic cleanup.
|
|
145
|
-
* This composable automatically starts listening when mounted and cleans up when the scope
|
|
146
|
-
* is disposed, providing a clean way to handle global keyboard interactions.
|
|
147
|
-
*
|
|
148
|
-
* @param handlers A single handler or array of handlers to register for keydown events.
|
|
149
|
-
* @returns Object with methods to manually start and stop listening for keydown events.
|
|
150
|
-
*/
|
|
151
|
-
declare function useKeydown(handlers: KeyHandler[] | KeyHandler): {
|
|
152
|
-
startListening: () => void;
|
|
153
|
-
stopListening: () => void;
|
|
154
|
-
};
|
|
155
|
-
//#endregion
|
|
156
|
-
//#region src/composables/useLayout/index.d.ts
|
|
157
|
-
type LayoutLocation = 'top' | 'bottom' | 'left' | 'right';
|
|
158
|
-
interface LayoutTicket extends GroupTicket {
|
|
159
|
-
order: number;
|
|
160
|
-
position: LayoutLocation;
|
|
161
|
-
value: number;
|
|
162
|
-
}
|
|
163
|
-
interface LayoutContext<Z extends LayoutTicket> extends GroupContext<Z> {
|
|
164
|
-
bounds: {
|
|
165
|
-
top: ComputedRef<number>;
|
|
166
|
-
bottom: ComputedRef<number>;
|
|
167
|
-
left: ComputedRef<number>;
|
|
168
|
-
right: ComputedRef<number>;
|
|
169
|
-
};
|
|
170
|
-
main: {
|
|
171
|
-
x: ComputedRef<number>;
|
|
172
|
-
y: ComputedRef<number>;
|
|
173
|
-
width: ComputedRef<number>;
|
|
174
|
-
height: ComputedRef<number>;
|
|
175
|
-
};
|
|
176
|
-
sizes: ShallowReactive<Map<ID, number>>;
|
|
177
|
-
height: ShallowRef<number>;
|
|
178
|
-
width: ShallowRef<number>;
|
|
179
|
-
}
|
|
180
|
-
interface LayoutOptions extends GroupOptions {}
|
|
181
|
-
declare function useLayout<Z extends LayoutTicket = LayoutTicket, E extends LayoutContext<Z> = LayoutContext<Z>>(_options?: LayoutOptions): E;
|
|
182
|
-
//#endregion
|
|
183
|
-
//#region src/composables/useLocale/adapters/adapter.d.ts
|
|
184
|
-
interface LocaleAdapter {
|
|
185
|
-
t: (message: string, ...params: unknown[]) => string;
|
|
186
|
-
n: (value: number, locale: ID | undefined, ...params: unknown[]) => string;
|
|
187
|
-
}
|
|
188
|
-
//#endregion
|
|
189
|
-
//#region src/composables/useLocale/index.d.ts
|
|
190
|
-
type LocaleTicket = SingleTicket;
|
|
191
|
-
interface LocaleContext<Z extends LocaleTicket> extends SingleContext<Z> {
|
|
192
|
-
t: (key: string, ...params: unknown[]) => string;
|
|
193
|
-
n: (value: number) => string;
|
|
194
|
-
}
|
|
195
|
-
interface LocaleOptions extends LocalePluginOptions {}
|
|
196
|
-
interface LocalePluginOptions<Z extends TokenCollection = TokenCollection> {
|
|
197
|
-
adapter?: LocaleAdapter;
|
|
198
|
-
default?: ID;
|
|
199
|
-
fallback?: ID;
|
|
200
|
-
messages?: Record<ID, Z>;
|
|
201
|
-
}
|
|
202
|
-
interface LocalePlugin {
|
|
203
|
-
install: (app: App, ...options: any[]) => any;
|
|
204
|
-
}
|
|
205
|
-
/**
|
|
206
|
-
* Creates a locale registry for managing internationalization with translations and number formatting.
|
|
207
|
-
* Supports message resolution with token references and locale-specific number formatting.
|
|
208
|
-
*
|
|
209
|
-
* @param namespace The namespace for the locale context.
|
|
210
|
-
* @param options Configuration including adapter and messages.
|
|
211
|
-
* @template Z The type of the locale context.
|
|
212
|
-
* @template E The type of the locale items managed by the registry.
|
|
213
|
-
* @returns An array containing the inject function, provide function, and the locale context.
|
|
214
|
-
*/
|
|
215
|
-
declare function createLocale<Z extends LocaleTicket = LocaleTicket, E extends LocaleContext<Z> = LocaleContext<Z>>(namespace?: string, options?: LocaleOptions): ContextTrinity<E>;
|
|
216
|
-
/**
|
|
217
|
-
* Simple hook to access the locale context.
|
|
218
|
-
*
|
|
219
|
-
* @returns The locale context containing translation and formatting functions.
|
|
220
|
-
*/
|
|
221
|
-
declare function useLocale(): LocaleContext<LocaleTicket>;
|
|
222
|
-
/**
|
|
223
|
-
* Creates a Vue plugin for internationalization with locale management and translation support.
|
|
224
|
-
* Integrates with token system for message resolution and provides app-wide locale context.
|
|
225
|
-
*
|
|
226
|
-
* @param options Configuration for adapter, default locale, and messages.
|
|
227
|
-
* @template Z The type of the locale context.
|
|
228
|
-
* @template E The type of the locale items managed by the registry.
|
|
229
|
-
* @template R The type of the token context.
|
|
230
|
-
* @template O The type of the token items managed by the registry.
|
|
231
|
-
* @returns Vue install function for the plugin
|
|
232
|
-
*/
|
|
233
|
-
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;
|
|
234
|
-
//#endregion
|
|
235
|
-
//#region src/composables/useLogger/adapters/adapter.d.ts
|
|
236
|
-
interface LoggerAdapter {
|
|
237
|
-
debug: (message: string, ...args: unknown[]) => void;
|
|
238
|
-
info: (message: string, ...args: unknown[]) => void;
|
|
239
|
-
warn: (message: string, ...args: unknown[]) => void;
|
|
240
|
-
error: (message: string, ...args: unknown[]) => void;
|
|
241
|
-
trace?: (message: string, ...args: unknown[]) => void;
|
|
242
|
-
fatal?: (message: string, ...args: unknown[]) => void;
|
|
243
|
-
}
|
|
244
|
-
//#endregion
|
|
245
|
-
//#region src/composables/useLogger/adapters/consola.d.ts
|
|
246
|
-
declare class ConsolaLoggerAdapter implements LoggerAdapter {
|
|
247
|
-
private consola;
|
|
248
|
-
constructor(consolaInstance: any);
|
|
249
|
-
debug(message: string, ...args: unknown[]): void;
|
|
250
|
-
info(message: string, ...args: unknown[]): void;
|
|
251
|
-
warn(message: string, ...args: unknown[]): void;
|
|
252
|
-
error(message: string, ...args: unknown[]): void;
|
|
253
|
-
trace(message: string, ...args: unknown[]): void;
|
|
254
|
-
fatal(message: string, ...args: unknown[]): void;
|
|
255
|
-
}
|
|
256
|
-
//#endregion
|
|
257
|
-
//#region src/composables/useLogger/adapters/pino.d.ts
|
|
258
|
-
/**
|
|
259
|
-
* Pino logger adapter implementation
|
|
260
|
-
*
|
|
261
|
-
* This adapter integrates with the Pino logging library,
|
|
262
|
-
* providing high-performance structured logging optimized
|
|
263
|
-
* for Node.js applications with minimal overhead.
|
|
264
|
-
*/
|
|
265
|
-
declare class PinoLoggerAdapter implements LoggerAdapter {
|
|
266
|
-
private pino;
|
|
267
|
-
constructor(pinoInstance: any);
|
|
268
|
-
debug(message: string, ...args: unknown[]): void;
|
|
269
|
-
info(message: string, ...args: unknown[]): void;
|
|
270
|
-
warn(message: string, ...args: unknown[]): void;
|
|
271
|
-
error(message: string, ...args: unknown[]): void;
|
|
272
|
-
trace(message: string, ...args: unknown[]): void;
|
|
273
|
-
fatal(message: string, ...args: unknown[]): void;
|
|
274
|
-
private format;
|
|
275
|
-
}
|
|
276
|
-
//#endregion
|
|
277
|
-
//#region src/composables/useLogger/adapters/v0.d.ts
|
|
278
|
-
/**
|
|
279
|
-
* Vuetify0.x logger adapter implementation
|
|
280
|
-
*
|
|
281
|
-
* This adapter provides console-based logging with proper formatting,
|
|
282
|
-
* color coding, timestamps, and log level filtering for development
|
|
283
|
-
* and production environments.
|
|
284
|
-
*/
|
|
285
|
-
declare class Vuetify0LoggerAdapter implements LoggerAdapter {
|
|
286
|
-
private prefix;
|
|
287
|
-
private colors;
|
|
288
|
-
private timestamps;
|
|
289
|
-
constructor(options?: {
|
|
290
|
-
prefix?: string;
|
|
291
|
-
colors?: boolean;
|
|
292
|
-
timestamps?: boolean;
|
|
293
|
-
});
|
|
294
|
-
debug(message: string, ...args: unknown[]): void;
|
|
295
|
-
info(message: string, ...args: unknown[]): void;
|
|
296
|
-
warn(message: string, ...args: unknown[]): void;
|
|
297
|
-
error(message: string, ...args: unknown[]): void;
|
|
298
|
-
trace(message: string, ...args: unknown[]): void;
|
|
299
|
-
fatal(message: string, ...args: unknown[]): void;
|
|
300
|
-
private format;
|
|
301
|
-
private timestamp;
|
|
302
|
-
private style;
|
|
303
|
-
private log;
|
|
304
|
-
}
|
|
305
|
-
//#endregion
|
|
306
|
-
//#region src/composables/useLogger/types.d.ts
|
|
307
|
-
type LogLevel = 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'fatal' | 'silent';
|
|
308
|
-
//#endregion
|
|
309
|
-
//#region src/composables/useLogger/index.d.ts
|
|
310
|
-
interface LoggerContext {
|
|
311
|
-
debug: (message: string, ...args: unknown[]) => void;
|
|
312
|
-
info: (message: string, ...args: unknown[]) => void;
|
|
313
|
-
warn: (message: string, ...args: unknown[]) => void;
|
|
314
|
-
error: (message: string, ...args: unknown[]) => void;
|
|
315
|
-
trace: (message: string, ...args: unknown[]) => void;
|
|
316
|
-
fatal: (message: string, ...args: unknown[]) => void;
|
|
317
|
-
level: (level: LogLevel) => void;
|
|
318
|
-
current: () => LogLevel;
|
|
319
|
-
enabled: () => boolean;
|
|
320
|
-
enable: () => void;
|
|
321
|
-
disable: () => void;
|
|
322
|
-
}
|
|
323
|
-
interface LoggerOptions {
|
|
324
|
-
adapter?: LoggerAdapter;
|
|
325
|
-
level?: LogLevel;
|
|
326
|
-
prefix?: string;
|
|
327
|
-
enabled?: boolean;
|
|
328
|
-
}
|
|
329
|
-
interface LoggerPlugin {
|
|
330
|
-
install: (app: App, ...options: any[]) => any;
|
|
331
|
-
}
|
|
332
|
-
/**
|
|
333
|
-
* Creates a logger context for application logging with configurable adapters and levels.
|
|
334
|
-
* This function provides a consistent logging interface that can be configured with
|
|
335
|
-
* different adapters and optimized for production builds with conditional compilation.
|
|
336
|
-
*
|
|
337
|
-
* @param options Configuration for the logger adapter, level, and behavior.
|
|
338
|
-
* @returns A logger context object with logging methods and controls.
|
|
339
|
-
*/
|
|
340
|
-
declare function createLogger(options?: LoggerOptions): LoggerContext;
|
|
341
|
-
declare function useLogger(namespace?: string): LoggerContext;
|
|
342
|
-
declare function createLoggerPlugin(options?: LoggerOptions): LoggerPlugin;
|
|
343
|
-
//#endregion
|
|
344
|
-
//#region src/composables/useProxyModel/index.d.ts
|
|
345
|
-
interface ProxyModelOptions {
|
|
346
|
-
/** Whether to use deep reactivity for the model */
|
|
347
|
-
deep?: boolean;
|
|
348
|
-
}
|
|
349
|
-
/**
|
|
350
|
-
* Creates a proxy model for two-way binding with a selection context.
|
|
351
|
-
*
|
|
352
|
-
* @param registry SelectionContext | GroupContext | SingleContext | StepContext
|
|
353
|
-
* @template Z The type of items managed by the selection.
|
|
354
|
-
* @template E The type of the selection context.
|
|
355
|
-
* @returns The proxy model for two-way binding with the selection context.
|
|
356
|
-
*/
|
|
357
|
-
declare function useProxyModel<Z extends SelectionTicket>(registry: SelectionContext<Z>, initial?: Z | Z[], options?: ProxyModelOptions, _transformIn?: (val: Z[] | Z) => Z[], _transformOut?: (val: Z[]) => Z | Z[]): vue186.WritableComputedRef<Z | Z[] | undefined, Z[]>;
|
|
358
|
-
//#endregion
|
|
359
|
-
//#region src/composables/useStorage/adapters/index.d.ts
|
|
360
|
-
interface StorageAdapter {
|
|
361
|
-
getItem: (key: string) => string | null;
|
|
362
|
-
setItem: (key: string, value: string) => void;
|
|
363
|
-
removeItem: (key: string) => void;
|
|
364
|
-
readonly length?: number;
|
|
365
|
-
key?: (index: number) => string | null;
|
|
366
|
-
}
|
|
367
|
-
//#endregion
|
|
368
|
-
//#region src/composables/useStorage/index.d.ts
|
|
369
|
-
interface StorageContext {
|
|
370
|
-
get: <T>(key: string, defaultValue?: T) => Ref<T>;
|
|
371
|
-
set: <T>(key: string, value: T) => void;
|
|
372
|
-
remove: (key: string) => void;
|
|
373
|
-
clear: () => void;
|
|
374
|
-
}
|
|
375
|
-
interface StorageOptions {
|
|
376
|
-
adapter?: StorageAdapter;
|
|
377
|
-
prefix?: string;
|
|
378
|
-
serializer?: {
|
|
379
|
-
read: (value: string) => any;
|
|
380
|
-
write: (value: any) => string;
|
|
381
|
-
};
|
|
382
|
-
}
|
|
383
|
-
interface StoragePlugin {
|
|
384
|
-
install: (app: App, ...options: any[]) => any;
|
|
385
|
-
}
|
|
386
|
-
declare const useStorageContext: (namespace?: string) => StorageContext, provideStorageContext: (context: StorageContext, app?: App) => StorageContext;
|
|
387
|
-
/**
|
|
388
|
-
* Creates a reactive storage system with automatic persistence and cross-adapter support.
|
|
389
|
-
* This function provides a consistent interface for storing and retrieving reactive values
|
|
390
|
-
* that automatically sync with the underlying storage adapter (localStorage, memory, etc.).
|
|
391
|
-
*
|
|
392
|
-
* @param options Optional configuration for storage adapter, prefix, and serialization.
|
|
393
|
-
* @template E The type of the storage context.
|
|
394
|
-
* @returns A storage context object with get, set, remove, and clear methods.
|
|
395
|
-
*/
|
|
396
|
-
declare function createStorage<E extends StorageContext>(options?: StorageOptions): E;
|
|
397
|
-
/**
|
|
398
|
-
* Simple hook to access the storage context.
|
|
399
|
-
*
|
|
400
|
-
* @returns The storage context containing reactive storage methods.
|
|
401
|
-
*/
|
|
402
|
-
declare function useStorage(): StorageContext;
|
|
403
|
-
/**
|
|
404
|
-
* Creates a Vue plugin for reactive storage capabilities with automatic persistence.
|
|
405
|
-
* Provides app-wide access to reactive storage that syncs with the configured adapter.
|
|
406
|
-
*
|
|
407
|
-
* @param options Optional configuration for the storage system.
|
|
408
|
-
* @returns A Vue plugin object with install method.
|
|
409
|
-
*/
|
|
410
|
-
declare function createStoragePlugin(options?: StorageOptions): StoragePlugin;
|
|
411
|
-
//#endregion
|
|
412
|
-
export { CleanupFunction, ConsolaLoggerAdapter, EventHandler, FilterFunction, FilterItem, FilterMode, FilterQuery, FormContext, FormOptions, FormTicket, FormValidationResult, FormValidationRule, FormValue, KeyHandler, LayoutContext, LayoutLocation, LayoutOptions, LayoutTicket, LocaleContext, LocaleOptions, LocalePlugin, LocalePluginOptions, LocaleTicket, type LogLevel, type LoggerAdapter, LoggerContext, LoggerOptions, LoggerPlugin, PinoLoggerAdapter, Primitive, ProxyModelOptions, StorageContext, StorageOptions, StoragePlugin, UseFilterOptions, UseFilterResult, Vuetify0LoggerAdapter, createLocale, createLocalePlugin, createLogger, createLoggerPlugin, createStorage, createStoragePlugin, provideStorageContext, useDocumentEventListener, useEventListener, useFilter, useForm, useKeydown, useLayout, useLocale, useLogger, useProxyModel, useStorage, useStorageContext, useWindowEventListener };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { App } from "vue";
|
|
2
|
-
|
|
3
|
-
//#region src/factories/createTrinity/index.d.ts
|
|
4
|
-
type ContextTrinity<Z = unknown> = readonly [() => Z, (context?: Z, app?: App) => Z, Z];
|
|
5
|
-
/**
|
|
6
|
-
* A tuple containing Vue's provide/inject and a context object
|
|
7
|
-
* @param createContext The function that creates the context
|
|
8
|
-
* @param provideContext The function that provides context
|
|
9
|
-
* @param context The underlying context object singleton
|
|
10
|
-
* @template Z The type parameter for the context value
|
|
11
|
-
* @template E The vmodel type for the context state.
|
|
12
|
-
* @returns [createContext, provideContext, context]
|
|
13
|
-
*
|
|
14
|
-
* @see https://0.vuetifyjs.com/composables/foundation/create-trinity
|
|
15
|
-
*/
|
|
16
|
-
declare function createTrinity<Z = unknown>(createContext: () => Z, provideContext: (_context?: Z, app?: App) => Z, context: Z): ContextTrinity<Z>;
|
|
17
|
-
//#endregion
|
|
18
|
-
export { ContextTrinity, createTrinity };
|