@vuetify/v0 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapter-BN-h5JbD.d.mts +344 -0
- package/dist/adapter-CJIj5ySf.d.mts +11 -0
- package/dist/adapter-D_0ptsPm.mjs +229 -0
- package/dist/adapters-BQ-Lr3PW.mjs +1 -0
- package/dist/adapters-DEXpW9If.mjs +1 -0
- package/dist/adapters-Q9WaOsJp.mjs +1 -0
- package/dist/adapters-SSDVth5e.mjs +1 -0
- package/dist/browser/index.js +359 -933
- package/dist/components/index.d.mts +19 -6
- package/dist/components/index.mjs +37 -5
- package/dist/{components-C0zEvP7w.mjs → components-CMuzTJdK.mjs} +11 -4
- package/dist/composables/index.d.mts +17 -4
- package/dist/composables/index.mjs +36 -4
- package/dist/consola-DiUk9j3y.d.mts +15 -0
- package/dist/consola-GBy8XRuL.mjs +31 -0
- package/dist/constants/index.d.mts +1 -1
- package/dist/constants/index.mjs +3 -3
- package/dist/constants-B8pMSkcW.mjs +1 -0
- package/dist/createDataTable-BJnmvxfb.mjs +387 -0
- package/dist/createGroup-CPhp6FUh.mjs +363 -0
- package/dist/createPagination-cyOWlpfH.mjs +234 -0
- package/dist/createSelection-uqEbFgha.mjs +261 -0
- package/dist/createSingle-B59ya3aa.mjs +179 -0
- package/dist/createTokens-BlhLdHXE.mjs +682 -0
- package/dist/createTrinity-EeHQSsb6.mjs +149 -0
- package/dist/data-table/adapters/client/index.d.mts +3 -0
- package/dist/data-table/adapters/client/index.mjs +9 -0
- package/dist/data-table/adapters/index.d.mts +5 -0
- package/dist/data-table/adapters/index.mjs +12 -0
- package/dist/data-table/adapters/server/index.d.mts +3 -0
- package/dist/data-table/adapters/server/index.mjs +7 -0
- package/dist/data-table/adapters/virtual/index.d.mts +3 -0
- package/dist/data-table/adapters/virtual/index.mjs +9 -0
- package/dist/data-table/index.d.mts +7 -0
- package/dist/data-table/index.mjs +25 -0
- package/dist/date/index.d.mts +1 -1
- package/dist/date/index.mjs +2 -2
- package/dist/features/adapters/flagsmith/index.d.mts +16 -0
- package/dist/features/adapters/flagsmith/index.mjs +3 -0
- package/dist/features/adapters/launchdarkly/index.d.mts +15 -0
- package/dist/features/adapters/launchdarkly/index.mjs +3 -0
- package/dist/features/adapters/posthog/index.d.mts +15 -0
- package/dist/features/adapters/posthog/index.mjs +4 -0
- package/dist/features/index.d.mts +17 -0
- package/dist/features/index.mjs +18 -0
- package/dist/flagsmith-CHmpPGR7.mjs +40 -0
- package/dist/{globals-BwYsH-rt.mjs → globals-B_GVfG06.mjs} +2 -2
- package/dist/index-7mWYFHA6.d.mts +251 -0
- package/dist/index-BDTbJClL.d.mts +11 -0
- package/dist/index-BuOz3Rgm.d.mts +32 -0
- package/dist/{index-Bmem4l8m.d.mts → index-Bv1VN_j5.d.mts} +1 -1
- package/dist/{index-DFM5iBqh.d.mts → index-CQrDeqsK.d.mts} +280 -279
- package/dist/{index-2wh69fk5.d.mts → index-Dd0m0LIJ.d.mts} +135 -1407
- package/dist/{index-DBZTizq2.d.mts → index-UNwEBkQT.d.mts} +16 -2
- package/dist/index.d.mts +20 -7
- package/dist/index.mjs +39 -7
- package/dist/json/web-types.json +1 -1
- package/dist/launchdarkly-W8t8ZANX.mjs +28 -0
- package/dist/locale/adapters/index.d.mts +3 -0
- package/dist/locale/adapters/index.mjs +6 -0
- package/dist/locale/adapters/v0/index.d.mts +3 -0
- package/dist/locale/adapters/v0/index.mjs +5 -0
- package/dist/locale/index.d.mts +17 -0
- package/dist/locale/index.mjs +17 -0
- package/dist/logger/adapters/consola/index.d.mts +3 -0
- package/dist/logger/adapters/consola/index.mjs +3 -0
- package/dist/logger/adapters/index.d.mts +5 -0
- package/dist/logger/adapters/index.mjs +8 -0
- package/dist/logger/adapters/pino/index.d.mts +3 -0
- package/dist/logger/adapters/pino/index.mjs +5 -0
- package/dist/logger/adapters/v0/index.d.mts +3 -0
- package/dist/logger/adapters/v0/index.mjs +5 -0
- package/dist/logger/index.d.mts +17 -0
- package/dist/logger/index.mjs +10 -0
- package/dist/memory-BsZGbGnG.mjs +27 -0
- package/dist/memory-DVjquu_v.d.mts +25 -0
- package/dist/permissions/adapters/index.d.mts +18 -0
- package/dist/permissions/adapters/index.mjs +6 -0
- package/dist/permissions/adapters/v0/index.d.mts +18 -0
- package/dist/permissions/adapters/v0/index.mjs +5 -0
- package/dist/permissions/index.d.mts +17 -0
- package/dist/permissions/index.mjs +15 -0
- package/dist/pino-01x_NmWp.mjs +49 -0
- package/dist/pino-p-jDkNQd.d.mts +24 -0
- package/dist/posthog-BrGBPPir.mjs +50 -0
- package/dist/server-6cs14bj1.d.mts +20 -0
- package/dist/server-ClCwiLMA.mjs +45 -0
- package/dist/storage/adapters/index.d.mts +3 -0
- package/dist/storage/adapters/index.mjs +3 -0
- package/dist/storage/adapters/memory/index.d.mts +2 -0
- package/dist/storage/adapters/memory/index.mjs +3 -0
- package/dist/storage/index.d.mts +17 -0
- package/dist/storage/index.mjs +37 -0
- package/dist/theme/adapters/index.d.mts +17 -0
- package/dist/theme/adapters/index.mjs +6 -0
- package/dist/theme/adapters/v0/index.d.mts +17 -0
- package/dist/theme/adapters/v0/index.mjs +5 -0
- package/dist/theme/index.d.mts +17 -0
- package/dist/theme/index.mjs +16 -0
- package/dist/toArray-DIeXVX1C.mjs +38 -0
- package/dist/types/index.d.mts +1 -1
- package/dist/useClickOutside-p8HP07At.mjs +4680 -0
- package/dist/useFeatures-C4JF3Hgr.mjs +122 -0
- package/dist/useLocale-DlbShzF-.mjs +85 -0
- package/dist/useLogger-CO9JwbSJ.mjs +283 -0
- package/dist/usePermissions-DQVT_4nD.mjs +128 -0
- package/dist/useTheme-Bcw1Ebyt.mjs +135 -0
- package/dist/utilities/index.d.mts +3 -3
- package/dist/utilities/index.mjs +3 -3
- package/dist/{utilities-BbKjbXTx.mjs → utilities-BqS1sC1W.mjs} +20 -3
- package/dist/v0-B40YkIQ-.mjs +21 -0
- package/dist/v0-BOxb3nD1.d.mts +33 -0
- package/dist/v0-BogbIzpM.mjs +41 -0
- package/dist/v0-BtQCSBOG.mjs +37 -0
- package/dist/v0-C-9dv_1S.d.mts +10 -0
- package/dist/v0-CtjuUUPl.mjs +73 -0
- package/dist/v0-DHMoZ7dS.d.mts +22 -0
- package/dist/v0-ONBWyQYQ.mjs +83 -0
- package/dist/v0-RepwEY1F.d.mts +9 -0
- package/dist/virtual-B3IPkHC0.d.mts +9 -0
- package/dist/virtual-BP9WXRzN.mjs +44 -0
- package/package.json +34 -2
- package/dist/useClickOutside-DrkNYxDe.mjs +0 -8871
- /package/dist/{adapter-D95FHAtt.d.mts → adapter-DcwxFryd.d.mts} +0 -0
- /package/dist/{constants-DHKqjdjH.mjs → adapters-BGJKsBrw.mjs} +0 -0
- /package/dist/{htmlElements-DO9n35bD.mjs → htmlElements-d8iBCGpO.mjs} +0 -0
- /package/dist/{index-BLK67J_-.d.mts → index-BFBN5Zl3.d.mts} +0 -0
|
@@ -1,53 +1,29 @@
|
|
|
1
|
-
import { i as Extensible, o as ID, s as MaybeArray } from "./index-
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
1
|
+
import { i as Extensible, o as ID, s as MaybeArray } from "./index-BFBN5Zl3.mjs";
|
|
2
|
+
import { E as ContextTrinity } from "./adapter-BN-h5JbD.mjs";
|
|
3
|
+
import { t as DateAdapter } from "./adapter-DcwxFryd.mjs";
|
|
4
|
+
import { n as FeaturesAdapterFlags, r as FeaturesAdapterInterface } from "./index-BuOz3Rgm.mjs";
|
|
5
|
+
import { n as LocaleAdapter } from "./v0-DHMoZ7dS.mjs";
|
|
6
|
+
import { t as LoggerAdapter } from "./adapter-CJIj5ySf.mjs";
|
|
7
|
+
import { t as StorageAdapter } from "./index-BDTbJClL.mjs";
|
|
4
8
|
import { App, ComputedRef, InjectionKey, MaybeRef, MaybeRefOrGetter, Reactive, Ref, ShallowRef, UnwrapNestedRefs, WatchSource } from "vue";
|
|
5
9
|
|
|
6
|
-
//#region src/composables/
|
|
10
|
+
//#region src/composables/createRegistry/index.d.ts
|
|
7
11
|
|
|
8
|
-
type ContextTrinity<Z = unknown> = readonly [() => Z, (context?: Z, app?: App) => Z, Z];
|
|
9
12
|
/**
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* @param useContext The function that retrieves/uses the context (typically named `useContext`).
|
|
13
|
-
* @param provideContext The function that provides the context to descendants.
|
|
14
|
-
* @param context The default context instance to use when no custom context is provided.
|
|
15
|
-
* @template Z The type of the context.
|
|
16
|
-
* @returns A readonly tuple containing: [useContext function, provideContext wrapper function, default context instance].
|
|
17
|
-
*
|
|
18
|
-
* @remarks The trinity pattern is a foundational pattern used throughout the codebase for creating reusable context systems. It provides three related elements:
|
|
19
|
-
*
|
|
20
|
-
* 1. A function to retrieve/use the context
|
|
21
|
-
* 2. A function to provide the context (with default value support)
|
|
22
|
-
* 3. The default context instance
|
|
23
|
-
*
|
|
24
|
-
* The returned tuple is readonly (using `as const`) to ensure proper type inference.
|
|
25
|
-
*
|
|
26
|
-
* @see https://0.vuetifyjs.com/composables/foundation/create-trinity#create-trinity
|
|
27
|
-
*
|
|
28
|
-
* @example
|
|
29
|
-
* ```ts
|
|
30
|
-
* interface MyContext {
|
|
31
|
-
* foo: string
|
|
32
|
-
* bar: number
|
|
33
|
-
* }
|
|
34
|
-
*
|
|
35
|
-
* export function createMyFeature<E extends MyContext = MyContext>() {
|
|
36
|
-
* const [useContext, _provideContext] = createContext<E>('my-context')
|
|
13
|
+
* User-facing input shape for registry tickets.
|
|
37
14
|
*
|
|
38
|
-
*
|
|
15
|
+
* Extend this when defining custom ticket types passed to `register()` and `onboard()`.
|
|
16
|
+
* The registry adds the computed fields (`index`, `valueIsIndex`) automatically — those
|
|
17
|
+
* live on {@link RegistryTicket}, which is the output type returned by `get()` and `values()`.
|
|
39
18
|
*
|
|
40
|
-
*
|
|
41
|
-
* return _provideContext(_context, app)
|
|
42
|
-
* }
|
|
43
|
-
*
|
|
44
|
-
* return createTrinity<E>(useContext, provideContext, context)
|
|
45
|
-
* }
|
|
46
|
-
* ```
|
|
19
|
+
* @template V The type of the ticket value.
|
|
47
20
|
*/
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
21
|
+
interface RegistryTicketInput<V = unknown> {
|
|
22
|
+
/** The unique identifier. Optional — auto-generated if not provided. */
|
|
23
|
+
id?: ID;
|
|
24
|
+
/** The value associated with the ticket. If not provided, it defaults to the index. */
|
|
25
|
+
value?: V;
|
|
26
|
+
}
|
|
51
27
|
interface RegistryTicket<V = unknown> {
|
|
52
28
|
/** The unique identifier. Is randomly generated if not provided. */
|
|
53
29
|
id: ID;
|
|
@@ -77,21 +53,21 @@ type RegistryEventMap<Z extends RegistryTicket> = {
|
|
|
77
53
|
'reindex:registry': undefined;
|
|
78
54
|
};
|
|
79
55
|
/** Callback signature for registry event listeners */
|
|
80
|
-
type RegistryEventCallback<Z extends RegistryTicket = RegistryTicket, K
|
|
56
|
+
type RegistryEventCallback<Z extends RegistryTicket = RegistryTicket, K extends RegistryEventName = RegistryEventName> = (data: RegistryEventMap<Z>[K]) => void;
|
|
81
57
|
/** Resolves callback type: typed for known events, unknown for custom events */
|
|
82
|
-
type EventHandler$1<Z extends RegistryTicket, K
|
|
58
|
+
type EventHandler$1<Z extends RegistryTicket, K extends string> = K extends RegistryEventName ? (data: RegistryEventMap<Z>[K]) => void : (data: unknown) => void;
|
|
83
59
|
/** Resolves payload type: typed for known events, unknown for custom events */
|
|
84
|
-
type EventPayload<Z extends RegistryTicket, K
|
|
85
|
-
interface RegistryContext<Z extends RegistryTicket = RegistryTicket> {
|
|
60
|
+
type EventPayload<Z extends RegistryTicket, K extends string> = K extends RegistryEventName ? RegistryEventMap<Z>[K] : unknown;
|
|
61
|
+
interface RegistryContext<Z extends RegistryTicketInput = RegistryTicketInput, E extends RegistryTicket & Z = RegistryTicket & Z> {
|
|
86
62
|
/**
|
|
87
63
|
* The collection of tickets in the registry
|
|
88
64
|
*
|
|
89
65
|
* @template ID The type of the ticket ID.
|
|
90
|
-
* @template
|
|
66
|
+
* @template E The type of the registry ticket.
|
|
91
67
|
*
|
|
92
68
|
* @remarks Read-only view of the internal collection. Use `register`, `unregister`, `upsert`, and `clear` methods to modify.
|
|
93
69
|
*/
|
|
94
|
-
collection: ReadonlyMap<ID,
|
|
70
|
+
collection: ReadonlyMap<ID, E>;
|
|
95
71
|
/**
|
|
96
72
|
* Clear the entire registry
|
|
97
73
|
*
|
|
@@ -178,7 +154,7 @@ interface RegistryContext<Z extends RegistryTicket = RegistryTicket> {
|
|
|
178
154
|
* const unique = registry.browse('unique-value') // ['ticket-3']
|
|
179
155
|
* ```
|
|
180
156
|
*/
|
|
181
|
-
browse: (value:
|
|
157
|
+
browse: (value: E['value']) => ID[] | undefined;
|
|
182
158
|
/**
|
|
183
159
|
* lookup a ticket by index number
|
|
184
160
|
*
|
|
@@ -218,7 +194,7 @@ interface RegistryContext<Z extends RegistryTicket = RegistryTicket> {
|
|
|
218
194
|
* const ticket = registry.get('ticket-id') // { id: 'ticket-id', index: 0, value: 'some-value', ... }
|
|
219
195
|
* ```
|
|
220
196
|
*/
|
|
221
|
-
get: (id: ID) =>
|
|
197
|
+
get: (id: ID) => E | undefined;
|
|
222
198
|
/**
|
|
223
199
|
* Update or insert a ticket by ID
|
|
224
200
|
*
|
|
@@ -241,7 +217,7 @@ interface RegistryContext<Z extends RegistryTicket = RegistryTicket> {
|
|
|
241
217
|
* const patched = registry.upsert('ticket-id', { value: 'updated-value' })
|
|
242
218
|
* ```
|
|
243
219
|
*/
|
|
244
|
-
upsert: (id: ID, ticket?: Partial<Z>) =>
|
|
220
|
+
upsert: (id: ID, ticket?: Partial<Z>) => E;
|
|
245
221
|
/**
|
|
246
222
|
* Get all values of registered tickets
|
|
247
223
|
*
|
|
@@ -261,7 +237,7 @@ interface RegistryContext<Z extends RegistryTicket = RegistryTicket> {
|
|
|
261
237
|
* const values = registry.values() // [{ id: 'ticket-1', ... }, { id: 'ticket-2', ... }]
|
|
262
238
|
* ```
|
|
263
239
|
*/
|
|
264
|
-
values: () => readonly
|
|
240
|
+
values: () => readonly E[];
|
|
265
241
|
/**
|
|
266
242
|
* Get all entries of registered tickets
|
|
267
243
|
*
|
|
@@ -281,7 +257,7 @@ interface RegistryContext<Z extends RegistryTicket = RegistryTicket> {
|
|
|
281
257
|
* const entries = registry.entries() // [['ticket-1', { id: 'ticket-1', ... }], ['ticket-2', { id: 'ticket-2', ... }]]
|
|
282
258
|
* ```
|
|
283
259
|
*/
|
|
284
|
-
entries: () => readonly [ID,
|
|
260
|
+
entries: () => readonly [ID, E][];
|
|
285
261
|
/**
|
|
286
262
|
* Register a new ticket
|
|
287
263
|
*
|
|
@@ -301,7 +277,7 @@ interface RegistryContext<Z extends RegistryTicket = RegistryTicket> {
|
|
|
301
277
|
* console.log(ticket) // { id: 'generated-id', index: 0, value: 0, valueIsIndex: true }
|
|
302
278
|
* ```
|
|
303
279
|
*/
|
|
304
|
-
register: (ticket?: Partial<Z>) =>
|
|
280
|
+
register: (ticket?: Partial<Z & RegistryTicket>) => E;
|
|
305
281
|
/**
|
|
306
282
|
* Unregister a ticket by ID
|
|
307
283
|
*
|
|
@@ -376,7 +352,7 @@ interface RegistryContext<Z extends RegistryTicket = RegistryTicket> {
|
|
|
376
352
|
* const cherry = registry.seek('first', 1, ticket => (ticket.value as string).startsWith('c'))
|
|
377
353
|
* ```
|
|
378
354
|
*/
|
|
379
|
-
seek: (direction?: 'first' | 'last', from?: number, predicate?: (ticket:
|
|
355
|
+
seek: (direction?: 'first' | 'last', from?: number, predicate?: (ticket: E) => boolean) => E | undefined;
|
|
380
356
|
/**
|
|
381
357
|
* Listen for registry events
|
|
382
358
|
*
|
|
@@ -405,7 +381,7 @@ interface RegistryContext<Z extends RegistryTicket = RegistryTicket> {
|
|
|
405
381
|
* registry.register({ id: 'ticket-id' }) // Console: Ticket registered: { id: 'ticket-id', ... }
|
|
406
382
|
* ```
|
|
407
383
|
*/
|
|
408
|
-
on: <K
|
|
384
|
+
on: <K extends Extensible<RegistryEventName>>(event: K, cb: EventHandler$1<E, K>) => void;
|
|
409
385
|
/**
|
|
410
386
|
* Stop listening for registry events
|
|
411
387
|
*
|
|
@@ -435,7 +411,7 @@ interface RegistryContext<Z extends RegistryTicket = RegistryTicket> {
|
|
|
435
411
|
* })
|
|
436
412
|
* ```
|
|
437
413
|
*/
|
|
438
|
-
off: <K
|
|
414
|
+
off: <K extends Extensible<RegistryEventName>>(event: K, cb: EventHandler$1<E, K>) => void;
|
|
439
415
|
/**
|
|
440
416
|
* Emit an event with data
|
|
441
417
|
*
|
|
@@ -458,7 +434,7 @@ interface RegistryContext<Z extends RegistryTicket = RegistryTicket> {
|
|
|
458
434
|
* registry.emit('custom-event', { message: 'Hello, World!' }) // Console: Custom event received: { message: 'Hello, World!' }
|
|
459
435
|
* ```
|
|
460
436
|
*/
|
|
461
|
-
emit: <K
|
|
437
|
+
emit: <K extends Extensible<RegistryEventName>>(event: K, data: EventPayload<E, K>) => void;
|
|
462
438
|
/**
|
|
463
439
|
* Clears the registry and removes all listeners
|
|
464
440
|
*
|
|
@@ -503,7 +479,7 @@ interface RegistryContext<Z extends RegistryTicket = RegistryTicket> {
|
|
|
503
479
|
* console.log(tickets) // [{ id: 'ticket-1', ... }, { id: 'ticket-2', ... }]
|
|
504
480
|
* ```
|
|
505
481
|
*/
|
|
506
|
-
onboard: (registrations: Partial<Z>[]) =>
|
|
482
|
+
onboard: (registrations: Partial<Z & RegistryTicket>[]) => E[];
|
|
507
483
|
/**
|
|
508
484
|
* Offboard multiple tickets at once
|
|
509
485
|
*
|
|
@@ -644,7 +620,7 @@ interface RegistryContextOptions extends RegistryOptions {
|
|
|
644
620
|
* console.log(registry.get('user-1')) // { id: 'user-1', index: 0, value: { name: 'John' }, ... }
|
|
645
621
|
* ```
|
|
646
622
|
*/
|
|
647
|
-
declare function createRegistry<Z extends
|
|
623
|
+
declare function createRegistry<Z extends RegistryTicketInput = RegistryTicketInput, E extends RegistryTicket & Z = RegistryTicket & Z>(options?: RegistryOptions): RegistryContext<Z, E>;
|
|
648
624
|
/**
|
|
649
625
|
* Creates a new registry context.
|
|
650
626
|
*
|
|
@@ -673,7 +649,7 @@ declare function createRegistry<Z extends RegistryTicket = RegistryTicket, E ext
|
|
|
673
649
|
* items.register({ id: 'item-1', value: 'Value 1' })
|
|
674
650
|
* ```
|
|
675
651
|
*/
|
|
676
|
-
declare function createRegistryContext<Z extends
|
|
652
|
+
declare function createRegistryContext<Z extends RegistryTicketInput = RegistryTicketInput, E extends RegistryTicket & Z = RegistryTicket & Z>(_options?: RegistryContextOptions): ContextTrinity<RegistryContext<Z, E>>;
|
|
677
653
|
/**
|
|
678
654
|
* Uses an existing registry from context.
|
|
679
655
|
*
|
|
@@ -694,7 +670,7 @@ declare function createRegistryContext<Z extends RegistryTicket = RegistryTicket
|
|
|
694
670
|
* registry.register({ id: 'item-1', value: 'Value 1' })
|
|
695
671
|
* ```
|
|
696
672
|
*/
|
|
697
|
-
declare function useRegistry<Z extends
|
|
673
|
+
declare function useRegistry<Z extends RegistryTicketInput = RegistryTicketInput, E extends RegistryTicket & Z = RegistryTicket & Z>(namespace?: string): RegistryContext<Z, E>;
|
|
698
674
|
//#endregion
|
|
699
675
|
//#region src/composables/createSelection/index.d.ts
|
|
700
676
|
/**
|
|
@@ -715,7 +691,7 @@ declare function useRegistry<Z extends RegistryTicket = RegistryTicket, E extend
|
|
|
715
691
|
* selection.register({ label: 'Item 1' })
|
|
716
692
|
* ```
|
|
717
693
|
*/
|
|
718
|
-
interface SelectionTicketInput<V = unknown> extends
|
|
694
|
+
interface SelectionTicketInput<V = unknown> extends RegistryTicketInput<V> {
|
|
719
695
|
/** Disabled state of the ticket (optional on input, defaults to false) */
|
|
720
696
|
disabled?: MaybeRef<boolean>;
|
|
721
697
|
}
|
|
@@ -733,7 +709,7 @@ interface SelectionTicketInput<V = unknown> extends RegistryTicket<V> {
|
|
|
733
709
|
* - `unselect()` - Method to unselect this ticket
|
|
734
710
|
* - `toggle()` - Method to toggle selection state
|
|
735
711
|
*/
|
|
736
|
-
type SelectionTicket<Z extends SelectionTicketInput = SelectionTicketInput> = Z & {
|
|
712
|
+
type SelectionTicket<Z extends SelectionTicketInput = SelectionTicketInput> = RegistryTicket & Z & {
|
|
737
713
|
/** Disabled state of the ticket (guaranteed to exist on output) */
|
|
738
714
|
disabled: MaybeRef<boolean>;
|
|
739
715
|
/** Whether the ticket is currently selected */
|
|
@@ -1606,572 +1582,6 @@ declare function provideContext<Z>(key: ContextKey<Z>, context: Z, app?: App): Z
|
|
|
1606
1582
|
declare function createContext<Z>(key: ContextKey<Z>, defaultValue?: Z): readonly [() => Z, (context: Z, app?: App) => Z];
|
|
1607
1583
|
declare function createContext<Z>(options?: CreateContextOptions): readonly [(key: string, defaultValue?: Z) => Z, (key: string, context: Z, app?: App) => Z];
|
|
1608
1584
|
//#endregion
|
|
1609
|
-
//#region src/composables/createFilter/index.d.ts
|
|
1610
|
-
type Primitive = string | number | boolean;
|
|
1611
|
-
type FilterQuery = MaybeRefOrGetter<Primitive | Primitive[]>;
|
|
1612
|
-
type FilterItem = Primitive | Record<string, any>;
|
|
1613
|
-
type FilterMode = 'some' | 'every' | 'union' | 'intersection';
|
|
1614
|
-
type FilterFunction = (query: Primitive | Primitive[], item: FilterItem) => boolean;
|
|
1615
|
-
interface FilterOptions {
|
|
1616
|
-
customFilter?: FilterFunction;
|
|
1617
|
-
keys?: string[];
|
|
1618
|
-
mode?: FilterMode;
|
|
1619
|
-
}
|
|
1620
|
-
interface FilterResult<Z extends FilterItem = FilterItem> {
|
|
1621
|
-
items: ComputedRef<Z[]>;
|
|
1622
|
-
}
|
|
1623
|
-
interface FilterContext<Z extends FilterItem = FilterItem> {
|
|
1624
|
-
/** The filter mode */
|
|
1625
|
-
mode: FilterMode;
|
|
1626
|
-
/** Keys to filter on for object items */
|
|
1627
|
-
keys: string[] | undefined;
|
|
1628
|
-
/** Custom filter function */
|
|
1629
|
-
customFilter: FilterFunction | undefined;
|
|
1630
|
-
/** Current query ref */
|
|
1631
|
-
query: ShallowRef<Primitive | Primitive[]>;
|
|
1632
|
-
/**
|
|
1633
|
-
* Apply filter to an array of items
|
|
1634
|
-
*
|
|
1635
|
-
* @param query The query to filter by
|
|
1636
|
-
* @param items The items to filter
|
|
1637
|
-
* @returns The filtered items as a computed ref
|
|
1638
|
-
*/
|
|
1639
|
-
apply: <T extends Z>(query: FilterQuery, items: MaybeRef<T[]>) => FilterResult<T>;
|
|
1640
|
-
}
|
|
1641
|
-
interface FilterContextOptions extends FilterOptions {
|
|
1642
|
-
namespace?: string;
|
|
1643
|
-
}
|
|
1644
|
-
/**
|
|
1645
|
-
* Creates a filter context with pre-configured options.
|
|
1646
|
-
*
|
|
1647
|
-
* @param options The filter options
|
|
1648
|
-
* @template Z The type of the items
|
|
1649
|
-
* @template E The type of the filter context
|
|
1650
|
-
* @returns A filter context
|
|
1651
|
-
*
|
|
1652
|
-
* @see https://0.vuetifyjs.com/composables/utilities/use-filter
|
|
1653
|
-
*
|
|
1654
|
-
* @example
|
|
1655
|
-
* ```ts
|
|
1656
|
-
* import { createFilter } from '@vuetify/v0'
|
|
1657
|
-
*
|
|
1658
|
-
* const filter = createFilter({
|
|
1659
|
-
* mode: 'intersection',
|
|
1660
|
-
* keys: ['name', 'email'],
|
|
1661
|
-
* })
|
|
1662
|
-
*
|
|
1663
|
-
* const { items } = filter.apply(query, users)
|
|
1664
|
-
* ```
|
|
1665
|
-
*/
|
|
1666
|
-
declare function createFilter<Z extends FilterItem = FilterItem, E extends FilterContext<Z> = FilterContext<Z>>(options?: FilterOptions): E;
|
|
1667
|
-
/**
|
|
1668
|
-
* Creates a filter context with dependency injection support.
|
|
1669
|
-
*
|
|
1670
|
-
* @param options The filter context options
|
|
1671
|
-
* @template Z The type of the items
|
|
1672
|
-
* @template E The type of the filter context
|
|
1673
|
-
* @returns A trinity tuple: [useContext, provideContext, defaultContext]
|
|
1674
|
-
*
|
|
1675
|
-
* @see https://0.vuetifyjs.com/composables/utilities/use-filter
|
|
1676
|
-
*
|
|
1677
|
-
* @example
|
|
1678
|
-
* ```ts
|
|
1679
|
-
* import { createFilterContext } from '@vuetify/v0'
|
|
1680
|
-
*
|
|
1681
|
-
* export const [useSearchFilter, provideSearchFilter, searchFilter] = createFilterContext({
|
|
1682
|
-
* namespace: 'app:search',
|
|
1683
|
-
* mode: 'union',
|
|
1684
|
-
* keys: ['title', 'description'],
|
|
1685
|
-
* })
|
|
1686
|
-
*
|
|
1687
|
-
* // In parent component
|
|
1688
|
-
* provideSearchFilter()
|
|
1689
|
-
*
|
|
1690
|
-
* // In child component
|
|
1691
|
-
* const filter = useSearchFilter()
|
|
1692
|
-
* const { items } = filter.apply(query, products)
|
|
1693
|
-
* ```
|
|
1694
|
-
*/
|
|
1695
|
-
declare function createFilterContext<Z extends FilterItem = FilterItem, E extends FilterContext<Z> = FilterContext<Z>>(_options?: FilterContextOptions): ContextTrinity<E>;
|
|
1696
|
-
/**
|
|
1697
|
-
* Returns the current filter context from dependency injection.
|
|
1698
|
-
*
|
|
1699
|
-
* @param namespace The namespace for the filter context. Defaults to `'v0:filter'`.
|
|
1700
|
-
* @template Z The type of the items.
|
|
1701
|
-
* @template E The type of the filter context.
|
|
1702
|
-
* @returns The current filter context.
|
|
1703
|
-
*
|
|
1704
|
-
* @see https://0.vuetifyjs.com/composables/utilities/use-filter
|
|
1705
|
-
*
|
|
1706
|
-
* @example
|
|
1707
|
-
* ```vue
|
|
1708
|
-
* <script setup lang="ts">
|
|
1709
|
-
* import { useFilter } from '@vuetify/v0'
|
|
1710
|
-
*
|
|
1711
|
-
* const filter = useFilter()
|
|
1712
|
-
* const { items } = filter.apply(query, products)
|
|
1713
|
-
* </script>
|
|
1714
|
-
* ```
|
|
1715
|
-
*/
|
|
1716
|
-
declare function useFilter<Z extends FilterItem = FilterItem, E extends FilterContext<Z> = FilterContext<Z>>(namespace?: string): E;
|
|
1717
|
-
//#endregion
|
|
1718
|
-
//#region src/composables/createPagination/index.d.ts
|
|
1719
|
-
type PaginationTicket = {
|
|
1720
|
-
type: 'page';
|
|
1721
|
-
value: number;
|
|
1722
|
-
} | {
|
|
1723
|
-
type: 'ellipsis';
|
|
1724
|
-
value: string;
|
|
1725
|
-
};
|
|
1726
|
-
interface PaginationContext {
|
|
1727
|
-
/** Current page (1-indexed) */
|
|
1728
|
-
page: ShallowRef<number>;
|
|
1729
|
-
/** Items per page */
|
|
1730
|
-
itemsPerPage: number;
|
|
1731
|
-
/** Total number of items */
|
|
1732
|
-
size: number;
|
|
1733
|
-
/** Total number of pages (computed from size / itemsPerPage) */
|
|
1734
|
-
pages: number;
|
|
1735
|
-
/** Ellipsis character, or false if disabled */
|
|
1736
|
-
ellipsis: string | false;
|
|
1737
|
-
/** Visible page numbers and ellipsis for rendering */
|
|
1738
|
-
items: ComputedRef<PaginationTicket[]>;
|
|
1739
|
-
/** Start index of items on current page (0-indexed) */
|
|
1740
|
-
pageStart: ComputedRef<number>;
|
|
1741
|
-
/** End index of items on current page (exclusive, 0-indexed) */
|
|
1742
|
-
pageStop: ComputedRef<number>;
|
|
1743
|
-
/** Whether current page is the first page */
|
|
1744
|
-
isFirst: ComputedRef<boolean>;
|
|
1745
|
-
/** Whether current page is the last page */
|
|
1746
|
-
isLast: ComputedRef<boolean>;
|
|
1747
|
-
/** Go to first page */
|
|
1748
|
-
first: () => void;
|
|
1749
|
-
/** Go to last page */
|
|
1750
|
-
last: () => void;
|
|
1751
|
-
/** Go to next page */
|
|
1752
|
-
next: () => void;
|
|
1753
|
-
/** Go to previous page */
|
|
1754
|
-
prev: () => void;
|
|
1755
|
-
/** Go to specific page */
|
|
1756
|
-
select: (value: number) => void;
|
|
1757
|
-
}
|
|
1758
|
-
interface PaginationOptions {
|
|
1759
|
-
/** Initial page or ref for v-model (1-indexed). @default 1 */
|
|
1760
|
-
page?: number | ShallowRef<number>;
|
|
1761
|
-
/** Items per page. @default 10 */
|
|
1762
|
-
itemsPerPage?: MaybeRefOrGetter<number>;
|
|
1763
|
-
/** Total number of items. @default 0 */
|
|
1764
|
-
size?: MaybeRefOrGetter<number>;
|
|
1765
|
-
/** Maximum visible page buttons. @default 5 */
|
|
1766
|
-
visible?: MaybeRefOrGetter<number>;
|
|
1767
|
-
/** Ellipsis character. @default '…' */
|
|
1768
|
-
ellipsis?: string | false;
|
|
1769
|
-
}
|
|
1770
|
-
interface PaginationContextOptions extends PaginationOptions {
|
|
1771
|
-
/** Namespace for dependency injection */
|
|
1772
|
-
namespace?: string;
|
|
1773
|
-
}
|
|
1774
|
-
/**
|
|
1775
|
-
* Creates a pagination instance.
|
|
1776
|
-
*
|
|
1777
|
-
* @param options The options for the pagination instance.
|
|
1778
|
-
* @returns A pagination context with navigation methods.
|
|
1779
|
-
*
|
|
1780
|
-
* @example
|
|
1781
|
-
* ```ts
|
|
1782
|
-
* import { createPagination } from '@vuetify/v0'
|
|
1783
|
-
*
|
|
1784
|
-
* // Basic usage
|
|
1785
|
-
* const pagination = createPagination({ size: 100 })
|
|
1786
|
-
* pagination.next()
|
|
1787
|
-
* pagination.items.value // [{ type: 'page', value: 1 }, { type: 'page', value: 2 }, ...]
|
|
1788
|
-
*
|
|
1789
|
-
* // With v-model (pass a ref)
|
|
1790
|
-
* const page = ref(1)
|
|
1791
|
-
* const pagination = createPagination({ page, size: 100 })
|
|
1792
|
-
* // Mutating pagination.page or the passed ref syncs both
|
|
1793
|
-
* ```
|
|
1794
|
-
*/
|
|
1795
|
-
declare function createPagination(_options?: PaginationOptions): PaginationContext;
|
|
1796
|
-
/**
|
|
1797
|
-
* Creates a pagination context for dependency injection.
|
|
1798
|
-
*
|
|
1799
|
-
* @param options The options including namespace.
|
|
1800
|
-
* @returns A trinity: [usePagination, providePagination, defaultContext]
|
|
1801
|
-
*
|
|
1802
|
-
* @example
|
|
1803
|
-
* ```ts
|
|
1804
|
-
* // With default namespace 'v0:pagination'
|
|
1805
|
-
* const [usePagination, providePaginationContext] = createPaginationContext({ size: 50 })
|
|
1806
|
-
*
|
|
1807
|
-
* // Or with custom namespace
|
|
1808
|
-
* const [usePagination, providePaginationContext] = createPaginationContext({
|
|
1809
|
-
* namespace: 'my-pagination',
|
|
1810
|
-
* size: 50,
|
|
1811
|
-
* })
|
|
1812
|
-
*
|
|
1813
|
-
* // Parent component
|
|
1814
|
-
* providePaginationContext()
|
|
1815
|
-
*
|
|
1816
|
-
* // Child component
|
|
1817
|
-
* const pagination = usePagination()
|
|
1818
|
-
* pagination.next()
|
|
1819
|
-
* ```
|
|
1820
|
-
*/
|
|
1821
|
-
declare function createPaginationContext(_options?: PaginationContextOptions): ContextTrinity<PaginationContext>;
|
|
1822
|
-
/**
|
|
1823
|
-
* Returns the current pagination instance from context.
|
|
1824
|
-
*
|
|
1825
|
-
* @param namespace The namespace. @default 'v0:pagination'
|
|
1826
|
-
* @returns The pagination context.
|
|
1827
|
-
*
|
|
1828
|
-
* @example
|
|
1829
|
-
* ```vue
|
|
1830
|
-
* <script setup lang="ts">
|
|
1831
|
-
* import { usePagination } from '@vuetify/v0'
|
|
1832
|
-
*
|
|
1833
|
-
* const pagination = usePagination()
|
|
1834
|
-
* </script>
|
|
1835
|
-
*
|
|
1836
|
-
* <template>
|
|
1837
|
-
* <button @click="pagination.prev()" :disabled="pagination.isFirst.value">Prev</button>
|
|
1838
|
-
* <button @click="pagination.next()" :disabled="pagination.isLast.value">Next</button>
|
|
1839
|
-
* </template>
|
|
1840
|
-
* ```
|
|
1841
|
-
*/
|
|
1842
|
-
declare function usePagination(namespace?: string): PaginationContext;
|
|
1843
|
-
//#endregion
|
|
1844
|
-
//#region src/composables/createDataTable/adapters/adapter.d.ts
|
|
1845
|
-
type SortDirection = 'asc' | 'desc' | 'none';
|
|
1846
|
-
interface SortEntry {
|
|
1847
|
-
key: string;
|
|
1848
|
-
direction: SortDirection;
|
|
1849
|
-
}
|
|
1850
|
-
/** Inputs provided by createDataTable to the adapter */
|
|
1851
|
-
interface DataTableAdapterContext<T extends Record<string, unknown>> {
|
|
1852
|
-
/** Source items */
|
|
1853
|
-
items: MaybeRefOrGetter<T[]>;
|
|
1854
|
-
/** Search query ref */
|
|
1855
|
-
search: ShallowRef<string>;
|
|
1856
|
-
/** Column keys eligible for filtering */
|
|
1857
|
-
filterableKeys: ReadonlyArray<keyof T & string>;
|
|
1858
|
-
/** Current sort state derived from sort controls */
|
|
1859
|
-
sortBy: Readonly<Ref<SortEntry[]>>;
|
|
1860
|
-
/** Locale for sorting (reactive, from useLocale or options) */
|
|
1861
|
-
locale: Readonly<Ref<string | undefined>>;
|
|
1862
|
-
/** Filter options (keys excluded, derived from columns) */
|
|
1863
|
-
filterOptions: Omit<FilterOptions, 'keys'>;
|
|
1864
|
-
/** Pagination options (size excluded, derived from pipeline) */
|
|
1865
|
-
paginationOptions: Omit<PaginationOptions, 'size'>;
|
|
1866
|
-
/** Per-column custom sort comparators */
|
|
1867
|
-
customSorts: Partial<Record<keyof T & string, (a: unknown, b: unknown) => number>>;
|
|
1868
|
-
/** Per-column custom filter functions */
|
|
1869
|
-
customColumnFilters: Partial<Record<keyof T & string, (value: unknown, query: string) => boolean>>;
|
|
1870
|
-
}
|
|
1871
|
-
/** Outputs returned by the adapter to createDataTable */
|
|
1872
|
-
interface DataTableAdapterResult<T extends Record<string, unknown>> {
|
|
1873
|
-
/** Raw unprocessed items */
|
|
1874
|
-
allItems: Readonly<Ref<readonly T[]>>;
|
|
1875
|
-
/** Items after filtering */
|
|
1876
|
-
filteredItems: Readonly<Ref<readonly T[]>>;
|
|
1877
|
-
/** Items after filtering and sorting */
|
|
1878
|
-
sortedItems: Readonly<Ref<readonly T[]>>;
|
|
1879
|
-
/** Final visible items (paginated or virtualized) */
|
|
1880
|
-
items: Readonly<Ref<readonly T[]>>;
|
|
1881
|
-
/** Pagination controls */
|
|
1882
|
-
pagination: PaginationContext;
|
|
1883
|
-
/** Total row count for aria-rowcount */
|
|
1884
|
-
total: Readonly<Ref<number>>;
|
|
1885
|
-
/** Loading state (optional, for async adapters) */
|
|
1886
|
-
loading?: Readonly<Ref<boolean>>;
|
|
1887
|
-
/** Error state (optional, for async adapters) */
|
|
1888
|
-
error?: Readonly<Ref<Error | null>>;
|
|
1889
|
-
}
|
|
1890
|
-
/** Pipeline adapter interface for data table strategies */
|
|
1891
|
-
interface DataTableAdapterInterface<T extends Record<string, unknown>> {
|
|
1892
|
-
setup: (context: DataTableAdapterContext<T>) => DataTableAdapterResult<T>;
|
|
1893
|
-
}
|
|
1894
|
-
declare abstract class DataTableAdapter<T extends Record<string, unknown>> implements DataTableAdapterInterface<T> {
|
|
1895
|
-
/** Create the filter pipeline stage */
|
|
1896
|
-
protected filter(context: DataTableAdapterContext<T>): {
|
|
1897
|
-
allItems: Readonly<Ref<T[], T[]>>;
|
|
1898
|
-
filteredItems: vue820.ComputedRef<T[]>;
|
|
1899
|
-
};
|
|
1900
|
-
/** Create the sort pipeline stage */
|
|
1901
|
-
protected sort(filteredItems: Readonly<Ref<readonly T[]>>, sortBy: Readonly<Ref<SortEntry[]>>, locale?: Readonly<Ref<string | undefined>>, customSorts?: Partial<Record<string, (a: unknown, b: unknown) => number>>): Readonly<Ref<readonly T[]>>;
|
|
1902
|
-
abstract setup(context: DataTableAdapterContext<T>): DataTableAdapterResult<T>;
|
|
1903
|
-
}
|
|
1904
|
-
//#endregion
|
|
1905
|
-
//#region src/composables/createDataTable/adapters/server.d.ts
|
|
1906
|
-
interface ServerAdapterOptions {
|
|
1907
|
-
/** Total number of items on the server (for pagination calculation) */
|
|
1908
|
-
total: MaybeRefOrGetter<number>;
|
|
1909
|
-
/** Loading state (e.g., from useFetch) */
|
|
1910
|
-
loading?: MaybeRefOrGetter<boolean>;
|
|
1911
|
-
/** Error state from API */
|
|
1912
|
-
error?: MaybeRefOrGetter<Error | null>;
|
|
1913
|
-
}
|
|
1914
|
-
declare class ServerAdapter<T extends Record<string, unknown>> implements DataTableAdapterInterface<T> {
|
|
1915
|
-
private options;
|
|
1916
|
-
constructor(options: ServerAdapterOptions);
|
|
1917
|
-
setup(context: DataTableAdapterContext<T>): DataTableAdapterResult<T>;
|
|
1918
|
-
}
|
|
1919
|
-
//#endregion
|
|
1920
|
-
//#region src/composables/createDataTable/adapters/v0.d.ts
|
|
1921
|
-
declare class ClientAdapter<T extends Record<string, unknown>> extends DataTableAdapter<T> {
|
|
1922
|
-
setup(context: DataTableAdapterContext<T>): DataTableAdapterResult<T>;
|
|
1923
|
-
}
|
|
1924
|
-
//#endregion
|
|
1925
|
-
//#region src/composables/createDataTable/adapters/virtual.d.ts
|
|
1926
|
-
declare class VirtualAdapter<T extends Record<string, unknown>> extends DataTableAdapter<T> {
|
|
1927
|
-
setup(context: DataTableAdapterContext<T>): DataTableAdapterResult<T>;
|
|
1928
|
-
}
|
|
1929
|
-
//#endregion
|
|
1930
|
-
//#region src/composables/createDataTable/index.d.ts
|
|
1931
|
-
/** Extract keys of T whose value type extends V */
|
|
1932
|
-
type KeysOfType<T, V> = { [K in keyof T]: T[K] extends V ? K : never }[keyof T] & string;
|
|
1933
|
-
type SelectStrategy = 'single' | 'page' | 'all';
|
|
1934
|
-
interface DataTableColumn<T extends Record<string, unknown> = Record<string, unknown>> {
|
|
1935
|
-
readonly key: keyof T & string;
|
|
1936
|
-
readonly title?: string;
|
|
1937
|
-
readonly sortable?: boolean;
|
|
1938
|
-
readonly filterable?: boolean;
|
|
1939
|
-
/** Custom sort comparator for this column */
|
|
1940
|
-
readonly sort?: (a: unknown, b: unknown) => number;
|
|
1941
|
-
/** Custom filter function for this column */
|
|
1942
|
-
readonly filter?: (value: unknown, query: string) => boolean;
|
|
1943
|
-
}
|
|
1944
|
-
interface DataTableSort {
|
|
1945
|
-
/** Toggle sort for a column: none → asc → desc → none */
|
|
1946
|
-
toggle: (key: string) => void;
|
|
1947
|
-
/** Current sort columns derived from group state */
|
|
1948
|
-
columns: Readonly<Ref<SortEntry[]>>;
|
|
1949
|
-
/** Order of sort columns (for multi-sort priority) */
|
|
1950
|
-
order: readonly string[];
|
|
1951
|
-
/** Get sort direction for a specific column key */
|
|
1952
|
-
direction: (key: string) => SortDirection;
|
|
1953
|
-
/** Get sort priority index (0-based), or -1 if not sorted */
|
|
1954
|
-
priority: (key: string) => number;
|
|
1955
|
-
/** Reset all sort state */
|
|
1956
|
-
reset: () => void;
|
|
1957
|
-
}
|
|
1958
|
-
interface DataTableSelection {
|
|
1959
|
-
/** Currently selected row IDs */
|
|
1960
|
-
selectedIds: ReadonlySet<ID>;
|
|
1961
|
-
/** Select a row by ID */
|
|
1962
|
-
select: (id: ID) => void;
|
|
1963
|
-
/** Unselect a row by ID */
|
|
1964
|
-
unselect: (id: ID) => void;
|
|
1965
|
-
/** Toggle a row's selection */
|
|
1966
|
-
toggle: (id: ID) => void;
|
|
1967
|
-
/** Whether a row is selected */
|
|
1968
|
-
isSelected: (id: ID) => boolean;
|
|
1969
|
-
/** Whether a row can be selected (based on itemSelectable) */
|
|
1970
|
-
isSelectable: (id: ID) => boolean;
|
|
1971
|
-
/** Select all items within strategy scope */
|
|
1972
|
-
selectAll: () => void;
|
|
1973
|
-
/** Unselect all items across all pages */
|
|
1974
|
-
unselectAll: () => void;
|
|
1975
|
-
/** Toggle all items within strategy scope */
|
|
1976
|
-
toggleAll: () => void;
|
|
1977
|
-
/** Whether all items within strategy scope are selected */
|
|
1978
|
-
isAllSelected: Readonly<Ref<boolean>>;
|
|
1979
|
-
/** Whether some but not all items within strategy scope are selected */
|
|
1980
|
-
isMixed: Readonly<Ref<boolean>>;
|
|
1981
|
-
}
|
|
1982
|
-
interface DataTableGroup<T extends Record<string, unknown>> {
|
|
1983
|
-
/** Stringified group identifier */
|
|
1984
|
-
key: string;
|
|
1985
|
-
/** Raw value of the groupBy column for this group */
|
|
1986
|
-
value: T[keyof T & string];
|
|
1987
|
-
/** Items belonging to this group */
|
|
1988
|
-
items: readonly T[];
|
|
1989
|
-
}
|
|
1990
|
-
interface DataTableGrouping<T extends Record<string, unknown>> {
|
|
1991
|
-
/** Grouped items derived from sortedItems */
|
|
1992
|
-
groups: Readonly<Ref<DataTableGroup<T>[]>>;
|
|
1993
|
-
/** Toggle a group's open/closed state */
|
|
1994
|
-
toggle: (groupKey: string) => void;
|
|
1995
|
-
/** Whether a group is open */
|
|
1996
|
-
isOpen: (groupKey: string) => boolean;
|
|
1997
|
-
/** Open a group */
|
|
1998
|
-
open: (groupKey: string) => void;
|
|
1999
|
-
/** Close a group */
|
|
2000
|
-
close: (groupKey: string) => void;
|
|
2001
|
-
/** Open all groups */
|
|
2002
|
-
openAll: () => void;
|
|
2003
|
-
/** Close all groups */
|
|
2004
|
-
closeAll: () => void;
|
|
2005
|
-
}
|
|
2006
|
-
interface DataTableExpansion {
|
|
2007
|
-
/** Currently expanded row IDs */
|
|
2008
|
-
expandedIds: ReadonlySet<ID>;
|
|
2009
|
-
/** Expand a row by ID */
|
|
2010
|
-
expand: (id: ID) => void;
|
|
2011
|
-
/** Collapse a row by ID */
|
|
2012
|
-
collapse: (id: ID) => void;
|
|
2013
|
-
/** Toggle a row's expanded state */
|
|
2014
|
-
toggle: (id: ID) => void;
|
|
2015
|
-
/** Whether a row is expanded */
|
|
2016
|
-
isExpanded: (id: ID) => boolean;
|
|
2017
|
-
/** Expand all visible (paginated) items. Requires expandMultiple=true. */
|
|
2018
|
-
expandAll: () => void;
|
|
2019
|
-
/** Collapse all expanded items across all pages (not page-scoped like expandAll) */
|
|
2020
|
-
collapseAll: () => void;
|
|
2021
|
-
}
|
|
2022
|
-
interface DataTableOptions<T extends Record<string, unknown>> {
|
|
2023
|
-
/** Source items */
|
|
2024
|
-
items: MaybeRefOrGetter<T[]>;
|
|
2025
|
-
/** Column definitions */
|
|
2026
|
-
columns: readonly DataTableColumn<T>[];
|
|
2027
|
-
/** Property used as row identifier. Must resolve to a string or number value. @default 'id' */
|
|
2028
|
-
itemValue?: KeysOfType<T, ID>;
|
|
2029
|
-
/** Filter options (keys derived from columns) */
|
|
2030
|
-
filter?: Omit<FilterOptions, 'keys'>;
|
|
2031
|
-
/** Pagination options (size derived from pipeline) */
|
|
2032
|
-
pagination?: Omit<PaginationOptions, 'size'>;
|
|
2033
|
-
/** Enable multi-column sort. @default false */
|
|
2034
|
-
sortMultiple?: boolean;
|
|
2035
|
-
/** Prevent clearing sort (asc → desc → asc cycle). @default false */
|
|
2036
|
-
mandate?: boolean;
|
|
2037
|
-
/** Direction for first sort click. @default 'asc' */
|
|
2038
|
-
firstSortOrder?: 'asc' | 'desc';
|
|
2039
|
-
/** Selection strategy: 'single' selects one row, 'page' operates on visible items, 'all' operates on all filtered items. @default 'page' */
|
|
2040
|
-
selectStrategy?: SelectStrategy;
|
|
2041
|
-
/** Property that controls per-row selectability */
|
|
2042
|
-
itemSelectable?: keyof T & string;
|
|
2043
|
-
/** Column key to group rows by */
|
|
2044
|
-
groupBy?: keyof T & string;
|
|
2045
|
-
/** Auto-open all groups on creation. @default false */
|
|
2046
|
-
enroll?: boolean;
|
|
2047
|
-
/** Allow multiple rows expanded simultaneously. @default true */
|
|
2048
|
-
expandMultiple?: boolean;
|
|
2049
|
-
/** Locale for sorting (defaults to useLocale's selected locale or browser default) */
|
|
2050
|
-
locale?: string;
|
|
2051
|
-
/** Pipeline adapter. @default ClientAdapter */
|
|
2052
|
-
adapter?: DataTableAdapterInterface<T>;
|
|
2053
|
-
}
|
|
2054
|
-
interface DataTableContext<T extends Record<string, unknown>> {
|
|
2055
|
-
/** Final paginated items for rendering */
|
|
2056
|
-
items: Readonly<Ref<readonly T[]>>;
|
|
2057
|
-
/** Raw unprocessed items */
|
|
2058
|
-
allItems: Readonly<Ref<readonly T[]>>;
|
|
2059
|
-
/** Items after filtering */
|
|
2060
|
-
filteredItems: Readonly<Ref<readonly T[]>>;
|
|
2061
|
-
/** Items after filtering and sorting */
|
|
2062
|
-
sortedItems: Readonly<Ref<readonly T[]>>;
|
|
2063
|
-
/** Column definitions */
|
|
2064
|
-
columns: readonly DataTableColumn<T>[];
|
|
2065
|
-
/** Set the search query */
|
|
2066
|
-
search: (value: string) => void;
|
|
2067
|
-
/** Current search query (readonly) */
|
|
2068
|
-
query: Readonly<ShallowRef<string>>;
|
|
2069
|
-
/** Sort controls */
|
|
2070
|
-
sort: DataTableSort;
|
|
2071
|
-
/** Pagination controls */
|
|
2072
|
-
pagination: PaginationContext;
|
|
2073
|
-
/** Row selection controls */
|
|
2074
|
-
selection: DataTableSelection;
|
|
2075
|
-
/** Row expansion controls */
|
|
2076
|
-
expansion: DataTableExpansion;
|
|
2077
|
-
/** Row grouping controls. When groupBy is not set, `groups` returns an empty array. */
|
|
2078
|
-
grouping: DataTableGrouping<T>;
|
|
2079
|
-
/** Total row count for aria-rowcount */
|
|
2080
|
-
total: Readonly<Ref<number>>;
|
|
2081
|
-
/** Loading state (managed by adapter) */
|
|
2082
|
-
loading: Readonly<Ref<boolean>>;
|
|
2083
|
-
/** Error state (managed by adapter) */
|
|
2084
|
-
error: Readonly<Ref<Error | null>>;
|
|
2085
|
-
}
|
|
2086
|
-
interface DataTableContextOptions<T extends Record<string, unknown>> extends DataTableOptions<T> {
|
|
2087
|
-
namespace?: string;
|
|
2088
|
-
}
|
|
2089
|
-
/**
|
|
2090
|
-
* Creates a data table instance with sort controls, selection, and an
|
|
2091
|
-
* adapter-driven data pipeline.
|
|
2092
|
-
*
|
|
2093
|
-
* Must be called inside a component `setup()` or a Vue effect scope.
|
|
2094
|
-
* Calling at module scope in SSR environments causes request state leakage.
|
|
2095
|
-
*
|
|
2096
|
-
* @param options Data table options
|
|
2097
|
-
* @returns Data table context with pipeline stages and controls
|
|
2098
|
-
*
|
|
2099
|
-
* @example
|
|
2100
|
-
* ```ts
|
|
2101
|
-
* import { createDataTable } from '@vuetify/v0'
|
|
2102
|
-
*
|
|
2103
|
-
* const table = createDataTable({
|
|
2104
|
-
* items: users,
|
|
2105
|
-
* columns: [
|
|
2106
|
-
* { key: 'name', title: 'Name', sortable: true, filterable: true },
|
|
2107
|
-
* { key: 'email', title: 'Email', sortable: true, filterable: true },
|
|
2108
|
-
* { key: 'age', title: 'Age', sortable: true },
|
|
2109
|
-
* ],
|
|
2110
|
-
* })
|
|
2111
|
-
*
|
|
2112
|
-
* // Search
|
|
2113
|
-
* table.search('john')
|
|
2114
|
-
*
|
|
2115
|
-
* // Sort
|
|
2116
|
-
* table.sort.toggle('name') // asc
|
|
2117
|
-
* table.sort.toggle('name') // desc
|
|
2118
|
-
* table.sort.toggle('name') // none
|
|
2119
|
-
* console.log(table.sort.columns.value) // [{ key: 'name', direction: 'asc' }]
|
|
2120
|
-
*
|
|
2121
|
-
* // Paginate
|
|
2122
|
-
* table.pagination.next()
|
|
2123
|
-
*
|
|
2124
|
-
* // Select rows
|
|
2125
|
-
* table.selection.toggle('user-1')
|
|
2126
|
-
* ```
|
|
2127
|
-
*/
|
|
2128
|
-
declare function createDataTable<T extends Record<string, unknown>>(options: DataTableOptions<T>): DataTableContext<T>;
|
|
2129
|
-
/**
|
|
2130
|
-
* Creates a data table context with dependency injection support.
|
|
2131
|
-
*
|
|
2132
|
-
* @param options Data table context options including namespace
|
|
2133
|
-
* @returns A trinity tuple: [useDataTable, provideDataTable, defaultContext]
|
|
2134
|
-
*
|
|
2135
|
-
* @example
|
|
2136
|
-
* ```ts
|
|
2137
|
-
* import { createDataTableContext } from '@vuetify/v0'
|
|
2138
|
-
*
|
|
2139
|
-
* const [useDataTable, provideDataTable, context] = createDataTableContext({
|
|
2140
|
-
* namespace: 'app:users',
|
|
2141
|
-
* items: users,
|
|
2142
|
-
* columns: [
|
|
2143
|
-
* { key: 'name', title: 'Name', sortable: true },
|
|
2144
|
-
* ],
|
|
2145
|
-
* })
|
|
2146
|
-
*
|
|
2147
|
-
* // Parent component
|
|
2148
|
-
* provideDataTable()
|
|
2149
|
-
*
|
|
2150
|
-
* // Child component
|
|
2151
|
-
* const table = useDataTable()
|
|
2152
|
-
* ```
|
|
2153
|
-
*/
|
|
2154
|
-
declare function createDataTableContext<T extends Record<string, unknown>>(_options: DataTableContextOptions<T>): ContextTrinity<DataTableContext<T>>;
|
|
2155
|
-
/**
|
|
2156
|
-
* Returns the current data table context from dependency injection.
|
|
2157
|
-
*
|
|
2158
|
-
* @typeParam T - Must be provided explicitly; cannot be inferred from namespace.
|
|
2159
|
-
* Prefer the `useX` function from {@link createDataTableContext} for type-safe injection.
|
|
2160
|
-
*
|
|
2161
|
-
* @param namespace The namespace for the data table context. @default 'v0:data-table'
|
|
2162
|
-
* @returns The current data table context
|
|
2163
|
-
*
|
|
2164
|
-
* @example
|
|
2165
|
-
* ```vue
|
|
2166
|
-
* <script setup lang="ts">
|
|
2167
|
-
* import { useDataTable } from '@vuetify/v0'
|
|
2168
|
-
*
|
|
2169
|
-
* const table = useDataTable<User>()
|
|
2170
|
-
* </script>
|
|
2171
|
-
* ```
|
|
2172
|
-
*/
|
|
2173
|
-
declare function useDataTable<T extends Record<string, unknown>>(namespace?: string): DataTableContext<T>;
|
|
2174
|
-
//#endregion
|
|
2175
1585
|
//#region src/composables/createPlugin/index.d.ts
|
|
2176
1586
|
interface PluginOptions {
|
|
2177
1587
|
namespace: string;
|
|
@@ -2206,6 +1616,50 @@ interface Plugin {
|
|
|
2206
1616
|
* })
|
|
2207
1617
|
*/
|
|
2208
1618
|
declare function createPlugin<Z extends Plugin = Plugin>(options: PluginOptions): Z;
|
|
1619
|
+
interface PluginContextConfig<O, E> {
|
|
1620
|
+
/**
|
|
1621
|
+
* Optional plugin setup callback, called once per Vue app after context provision.
|
|
1622
|
+
* Use for adapter initialization, Vue app mixins, global side effects, etc.
|
|
1623
|
+
* Receives the plugin options (minus namespace) so adapters and targets are accessible.
|
|
1624
|
+
*/
|
|
1625
|
+
setup?: (context: E, app: App, options: O) => void;
|
|
1626
|
+
/**
|
|
1627
|
+
* Optional fallback factory. When provided, the generated `useX` consumer uses the
|
|
1628
|
+
* defensive pattern: returns the fallback when called outside a component instance or
|
|
1629
|
+
* when the context is not found. Required for composables that may be consumed outside
|
|
1630
|
+
* component setup (e.g. useLogger, useLocale, useHydration).
|
|
1631
|
+
*
|
|
1632
|
+
* Receives the requested namespace so error messages can include it.
|
|
1633
|
+
*/
|
|
1634
|
+
fallback?: (namespace: string) => E;
|
|
1635
|
+
}
|
|
1636
|
+
/**
|
|
1637
|
+
* Creates the three standard functions for a plugin composable.
|
|
1638
|
+
*
|
|
1639
|
+
* @param defaultNamespace The default DI namespace string (e.g. `'v0:logger'`).
|
|
1640
|
+
* @param factory Function that creates the composable context instance from options.
|
|
1641
|
+
* @param config Optional setup callback and fallback factory.
|
|
1642
|
+
* @returns A readonly tuple: `[createXContext, createXPlugin, useX]`.
|
|
1643
|
+
*
|
|
1644
|
+
* @example
|
|
1645
|
+
* ```ts
|
|
1646
|
+
* // Simple — no setup or fallback
|
|
1647
|
+
* export const [createStorageContext, createStoragePlugin, useStorage] =
|
|
1648
|
+
* createPluginContext('v0:storage', options => createStorage(options))
|
|
1649
|
+
*
|
|
1650
|
+
* // With fallback — safe outside component instances
|
|
1651
|
+
* export const [createLoggerContext, createLoggerPlugin, useLogger] =
|
|
1652
|
+
* createPluginContext('v0:logger', options => createLogger(options), {
|
|
1653
|
+
* fallback: ns => createFallbackLogger(ns),
|
|
1654
|
+
* setup: (context) => {
|
|
1655
|
+
* if (__DEV__ && IN_BROWSER) (window as any).__v0Logger__ = context
|
|
1656
|
+
* },
|
|
1657
|
+
* })
|
|
1658
|
+
* ```
|
|
1659
|
+
*/
|
|
1660
|
+
declare function createPluginContext<O extends {
|
|
1661
|
+
namespace?: string;
|
|
1662
|
+
} = Record<never, never>, E = unknown>(defaultNamespace: string, factory: (options: Omit<O, 'namespace'>) => E, config?: PluginContextConfig<Omit<O, 'namespace'>, E>): readonly [<_E extends E = E>(_options?: O) => ContextTrinity<_E>, (_options?: O) => Plugin, <_E extends E = E>(namespace?: string) => _E];
|
|
2209
1663
|
//#endregion
|
|
2210
1664
|
//#region src/composables/toArray/index.d.ts
|
|
2211
1665
|
/**
|
|
@@ -2323,94 +1777,7 @@ interface BreakpointsContextOptions extends BreakpointsOptions {}
|
|
|
2323
1777
|
* ```
|
|
2324
1778
|
*/
|
|
2325
1779
|
declare function createBreakpoints<E extends BreakpointsContext = BreakpointsContext>(_options?: BreakpointsOptions): E;
|
|
2326
|
-
|
|
2327
|
-
* Creates a new breakpoints context.
|
|
2328
|
-
*
|
|
2329
|
-
* @param options The options for the breakpoints context.
|
|
2330
|
-
* @template E The type of the breakpoints context.
|
|
2331
|
-
* @returns A new breakpoints context.
|
|
2332
|
-
*
|
|
2333
|
-
* @see https://0.vuetifyjs.com/composables/plugins/use-breakpoints
|
|
2334
|
-
*
|
|
2335
|
-
* @example
|
|
2336
|
-
* ```ts
|
|
2337
|
-
* import { createBreakpointsContext } from '@vuetify/v0'
|
|
2338
|
-
*
|
|
2339
|
-
* export const [useBreakpoints, provideBreakpoints, context] = createBreakpointsContext({
|
|
2340
|
-
* namespace: 'v0:breakpoints',
|
|
2341
|
-
* mobileBreakpoint: 'sm',
|
|
2342
|
-
* })
|
|
2343
|
-
* ```
|
|
2344
|
-
*/
|
|
2345
|
-
declare function createBreakpointsContext<E extends BreakpointsContext = BreakpointsContext>(_options?: BreakpointsContextOptions): ContextTrinity<E>;
|
|
2346
|
-
/**
|
|
2347
|
-
* Creates a new breakpoints plugin.
|
|
2348
|
-
*
|
|
2349
|
-
* @param options The options for the breakpoints plugin.
|
|
2350
|
-
* @template E The type of the breakpoints context.
|
|
2351
|
-
* @returns A new breakpoints plugin.
|
|
2352
|
-
*
|
|
2353
|
-
* @see https://0.vuetifyjs.com/composables/plugins/use-breakpoints
|
|
2354
|
-
*
|
|
2355
|
-
* @example
|
|
2356
|
-
* ```ts
|
|
2357
|
-
* import { createApp } from 'vue'
|
|
2358
|
-
* import { createBreakpointsPlugin } from '@vuetify/v0'
|
|
2359
|
-
* import App from './App.vue'
|
|
2360
|
-
*
|
|
2361
|
-
* const app = createApp(App)
|
|
2362
|
-
*
|
|
2363
|
-
* app.use(
|
|
2364
|
-
* createBreakpointsPlugin({
|
|
2365
|
-
* namespace: 'v0:breakpoints',
|
|
2366
|
-
* mobileBreakpoint: 'md',
|
|
2367
|
-
* breakpoints: {
|
|
2368
|
-
* xs: 0,
|
|
2369
|
-
* sm: 600,
|
|
2370
|
-
* md: 840,
|
|
2371
|
-
* lg: 1145,
|
|
2372
|
-
* xl: 1545,
|
|
2373
|
-
* xxl: 2138,
|
|
2374
|
-
* },
|
|
2375
|
-
* })
|
|
2376
|
-
* )
|
|
2377
|
-
*
|
|
2378
|
-
* app.mount('#app')
|
|
2379
|
-
* ```
|
|
2380
|
-
*/
|
|
2381
|
-
declare function createBreakpointsPlugin<E extends BreakpointsContext = BreakpointsContext>(_options?: BreakpointsPluginOptions): Plugin;
|
|
2382
|
-
/**
|
|
2383
|
-
* Returns the current breakpoints instance.
|
|
2384
|
-
*
|
|
2385
|
-
* @param namespace The namespace for the breakpoints context. Defaults to `v0:breakpoints`.
|
|
2386
|
-
* @returns The current breakpoints instance.
|
|
2387
|
-
*
|
|
2388
|
-
* @see https://0.vuetifyjs.com/composables/plugins/use-breakpoints
|
|
2389
|
-
*
|
|
2390
|
-
* @example
|
|
2391
|
-
* ```vue
|
|
2392
|
-
* <script setup lang="ts">
|
|
2393
|
-
* import { useBreakpoints } from '@vuetify/v0'
|
|
2394
|
-
*
|
|
2395
|
-
* // Destructure for template auto-unwrapping
|
|
2396
|
-
* const { isMobile, mdAndUp } = useBreakpoints()
|
|
2397
|
-
*
|
|
2398
|
-
* // In script, use .value
|
|
2399
|
-
* if (isMobile.value) {
|
|
2400
|
-
* console.log('Mobile detected')
|
|
2401
|
-
* }
|
|
2402
|
-
* </script>
|
|
2403
|
-
*
|
|
2404
|
-
* <template>
|
|
2405
|
-
* <div class="pa-4">
|
|
2406
|
-
* <!-- Destructured refs auto-unwrap in templates -->
|
|
2407
|
-
* <p v-if="isMobile">Mobile layout active</p>
|
|
2408
|
-
* <p v-else-if="mdAndUp">Medium and up layout active</p>
|
|
2409
|
-
* </div>
|
|
2410
|
-
* </template>
|
|
2411
|
-
* ```
|
|
2412
|
-
*/
|
|
2413
|
-
declare function useBreakpoints<E extends BreakpointsContext = BreakpointsContext>(namespace?: string): E;
|
|
1780
|
+
declare const createBreakpointsContext: <_E extends BreakpointsContext = BreakpointsContext>(_options?: BreakpointsContextOptions | undefined) => ContextTrinity<_E>, createBreakpointsPlugin: (_options?: BreakpointsContextOptions | undefined) => Plugin, useBreakpoints: <_E extends BreakpointsContext = BreakpointsContext>(namespace?: string) => _E;
|
|
2414
1781
|
//#endregion
|
|
2415
1782
|
//#region src/composables/useClickOutside/index.d.ts
|
|
2416
1783
|
type ClickOutsideElement = HTMLElement | null | undefined;
|
|
@@ -2913,34 +2280,6 @@ declare function createTokensContext<Z extends TokenTicket = TokenTicket, E exte
|
|
|
2913
2280
|
*/
|
|
2914
2281
|
declare function useTokens<Z extends TokenTicket = TokenTicket, E extends TokenContext<Z> = TokenContext<Z>>(namespace?: string): E;
|
|
2915
2282
|
//#endregion
|
|
2916
|
-
//#region src/composables/useFeatures/adapters/generic/index.d.ts
|
|
2917
|
-
type FeaturesAdapterValue = boolean | {
|
|
2918
|
-
$value?: boolean;
|
|
2919
|
-
$variation?: unknown;
|
|
2920
|
-
};
|
|
2921
|
-
type FeaturesAdapterFlags = Record<ID, FeaturesAdapterValue>;
|
|
2922
|
-
interface FeaturesAdapterInterface {
|
|
2923
|
-
/**
|
|
2924
|
-
* Initialize the adapter and return initial flags.
|
|
2925
|
-
*
|
|
2926
|
-
* @param onUpdate Callback invoked when flags change.
|
|
2927
|
-
* @returns Initial feature flags.
|
|
2928
|
-
*
|
|
2929
|
-
* @remarks Called during plugin setup. Sets up change listeners
|
|
2930
|
-
* and returns the initial flag values.
|
|
2931
|
-
*/
|
|
2932
|
-
setup: (onUpdate: (flags: FeaturesAdapterFlags) => void) => FeaturesAdapterFlags;
|
|
2933
|
-
/**
|
|
2934
|
-
* Cleanup adapter resources.
|
|
2935
|
-
*
|
|
2936
|
-
* @remarks Called when the plugin is disposed.
|
|
2937
|
-
*/
|
|
2938
|
-
dispose?: () => void;
|
|
2939
|
-
}
|
|
2940
|
-
declare abstract class FeaturesAdapter implements FeaturesAdapterInterface {
|
|
2941
|
-
abstract setup(onUpdate: (flags: FeaturesAdapterFlags) => void): FeaturesAdapterFlags;
|
|
2942
|
-
}
|
|
2943
|
-
//#endregion
|
|
2944
2283
|
//#region src/composables/useFeatures/index.d.ts
|
|
2945
2284
|
/**
|
|
2946
2285
|
* Input type for feature tickets - what users provide to register().
|
|
@@ -3011,87 +2350,7 @@ interface FeaturePluginOptions extends FeatureContextOptions {
|
|
|
3011
2350
|
* ```
|
|
3012
2351
|
*/
|
|
3013
2352
|
declare function createFeatures<Z extends FeatureTicketInput = FeatureTicketInput, E extends FeatureTicket<Z> = FeatureTicket<Z>, R extends FeatureContext<Z, E> = FeatureContext<Z, E>>(_options?: FeatureOptions): R;
|
|
3014
|
-
|
|
3015
|
-
* Creates a new features context.
|
|
3016
|
-
*
|
|
3017
|
-
* @param options The options for the features context.
|
|
3018
|
-
* @template Z The type of the feature ticket.
|
|
3019
|
-
* @template E The type of the feature context.
|
|
3020
|
-
* @returns A new features context.
|
|
3021
|
-
*
|
|
3022
|
-
* @see https://0.vuetifyjs.com/composables/plugins/use-features
|
|
3023
|
-
*
|
|
3024
|
-
* @example
|
|
3025
|
-
* ```ts
|
|
3026
|
-
* import { createFeaturesContext } from '@vuetify/v0'
|
|
3027
|
-
*
|
|
3028
|
-
* export const [useFeatures, provideFeatures, context] = createFeaturesContext({
|
|
3029
|
-
* namespace: 'app:features',
|
|
3030
|
-
* features: {
|
|
3031
|
-
* 'dark-mode': true,
|
|
3032
|
-
* 'theme-color': { $variation: 'blue' },
|
|
3033
|
-
* },
|
|
3034
|
-
* })
|
|
3035
|
-
* ```
|
|
3036
|
-
*/
|
|
3037
|
-
declare function createFeaturesContext<Z extends FeatureTicketInput = FeatureTicketInput, E extends FeatureTicket<Z> = FeatureTicket<Z>, R extends FeatureContext<Z, E> = FeatureContext<Z, E>>(_options?: FeatureContextOptions): ContextTrinity<R>;
|
|
3038
|
-
/**
|
|
3039
|
-
* Creates a new features plugin.
|
|
3040
|
-
*
|
|
3041
|
-
* @param options The options for the features plugin.
|
|
3042
|
-
* @template Z The type of the feature ticket.
|
|
3043
|
-
* @template E The type of the feature context.
|
|
3044
|
-
* @returns A new features plugin.
|
|
3045
|
-
*
|
|
3046
|
-
* @see https://0.vuetifyjs.com/composables/plugins/use-features
|
|
3047
|
-
*
|
|
3048
|
-
* @example
|
|
3049
|
-
* ```ts
|
|
3050
|
-
* import { createApp } from 'vue'
|
|
3051
|
-
* import { createFeaturesPlugin } from '@vuetify/v0'
|
|
3052
|
-
* import App from './App.vue'
|
|
3053
|
-
*
|
|
3054
|
-
* const app = createApp(App)
|
|
3055
|
-
*
|
|
3056
|
-
* app.use(
|
|
3057
|
-
* createFeaturesPlugin({
|
|
3058
|
-
* features: {
|
|
3059
|
-
* 'dark-mode': true,
|
|
3060
|
-
* 'theme-color': { $variation: 'blue' },
|
|
3061
|
-
* },
|
|
3062
|
-
* })
|
|
3063
|
-
* )
|
|
3064
|
-
*
|
|
3065
|
-
* app.mount('#app')
|
|
3066
|
-
* ```
|
|
3067
|
-
*/
|
|
3068
|
-
declare function createFeaturesPlugin<Z extends FeatureTicketInput = FeatureTicketInput, E extends FeatureTicket<Z> = FeatureTicket<Z>, R extends FeatureContext<Z, E> = FeatureContext<Z, E>>(_options?: FeaturePluginOptions): Plugin;
|
|
3069
|
-
/**
|
|
3070
|
-
* Returns the current features instance.
|
|
3071
|
-
*
|
|
3072
|
-
* @param namespace The namespace for the features context. Defaults to `v0:features`.
|
|
3073
|
-
* @template Z The type of the feature ticket.
|
|
3074
|
-
* @returns The current features instance.
|
|
3075
|
-
*
|
|
3076
|
-
* @see https://0.vuetifyjs.com/composables/plugins/use-features
|
|
3077
|
-
*
|
|
3078
|
-
* @example
|
|
3079
|
-
* ```vue
|
|
3080
|
-
* <script setup lang="ts">
|
|
3081
|
-
* import { useFeatures } from '@vuetify/v0'
|
|
3082
|
-
*
|
|
3083
|
-
* const features = useFeatures()
|
|
3084
|
-
* </script>
|
|
3085
|
-
*
|
|
3086
|
-
* <template>
|
|
3087
|
-
* <div>
|
|
3088
|
-
* <p>Features: {{ features.get('dark-mode') }}</p>
|
|
3089
|
-
* <p>Theme Color: {{ features.variation('theme-color') }}</p>
|
|
3090
|
-
* </div>
|
|
3091
|
-
* </template>
|
|
3092
|
-
* ```
|
|
3093
|
-
*/
|
|
3094
|
-
declare function useFeatures<Z extends FeatureTicketInput = FeatureTicketInput, E extends FeatureTicket<Z> = FeatureTicket<Z>, R extends FeatureContext<Z, E> = FeatureContext<Z, E>>(namespace?: string): R;
|
|
2353
|
+
declare const createFeaturesContext: <_E extends FeatureContext<FeatureTicketInput, FeatureTicket<FeatureTicketInput>> = FeatureContext<FeatureTicketInput, FeatureTicket<FeatureTicketInput>>>(_options?: FeaturePluginOptions | undefined) => ContextTrinity<_E>, createFeaturesPlugin: (_options?: FeaturePluginOptions | undefined) => Plugin, useFeatures: <_E extends FeatureContext<FeatureTicketInput, FeatureTicket<FeatureTicketInput>> = FeatureContext<FeatureTicketInput, FeatureTicket<FeatureTicketInput>>>(namespace?: string) => _E;
|
|
3095
2354
|
//#endregion
|
|
3096
2355
|
//#region src/composables/createForm/index.d.ts
|
|
3097
2356
|
type FormValidationResult = string | true | Promise<string | true>;
|
|
@@ -3103,7 +2362,7 @@ type FormValue = Ref<unknown> | ShallowRef<unknown>;
|
|
|
3103
2362
|
*
|
|
3104
2363
|
* @template V The type of the field value.
|
|
3105
2364
|
*/
|
|
3106
|
-
interface FormTicketInput<V = unknown> extends
|
|
2365
|
+
interface FormTicketInput<V = unknown> extends RegistryTicketInput<V> {
|
|
3107
2366
|
/** Validation rules for this field */
|
|
3108
2367
|
rules?: FormValidationRule[];
|
|
3109
2368
|
/** When validation should trigger (inherits from form if not set) */
|
|
@@ -3117,7 +2376,7 @@ interface FormTicketInput<V = unknown> extends RegistryTicket<V> {
|
|
|
3117
2376
|
*
|
|
3118
2377
|
* @template Z The input ticket type that extends FormTicketInput.
|
|
3119
2378
|
*/
|
|
3120
|
-
type FormTicket<Z extends FormTicketInput = FormTicketInput> = Z & {
|
|
2379
|
+
type FormTicket<Z extends FormTicketInput = FormTicketInput> = RegistryTicket & Z & {
|
|
3121
2380
|
validate: (silent?: boolean) => Promise<boolean>;
|
|
3122
2381
|
reset: () => void;
|
|
3123
2382
|
validateOn: 'submit' | 'change' | string;
|
|
@@ -3380,57 +2639,31 @@ declare function createFallbackHydration<E extends HydrationContext = HydrationC
|
|
|
3380
2639
|
* })
|
|
3381
2640
|
* ```
|
|
3382
2641
|
*/
|
|
3383
|
-
declare
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
* Returns the current hydration instance.
|
|
3409
|
-
*
|
|
3410
|
-
* @param namespace The namespace for the hydration context. Defaults to `v0:hydration`.
|
|
3411
|
-
* @returns The current hydration instance.
|
|
3412
|
-
*
|
|
3413
|
-
* @see https://0.vuetifyjs.com/composables/plugins/use-hydration
|
|
3414
|
-
*
|
|
3415
|
-
* @example
|
|
3416
|
-
* ```vue
|
|
3417
|
-
* <script setup lang="ts">
|
|
3418
|
-
* import { useHydration } from '@vuetify/v0'
|
|
3419
|
-
*
|
|
3420
|
-
* const { isHydrated, isSettled } = useHydration()
|
|
3421
|
-
*
|
|
3422
|
-
* // Use isSettled to gate animations after state restoration
|
|
3423
|
-
* const transition = computed(() => isSettled.value ? 'fade' : undefined)
|
|
3424
|
-
* </script>
|
|
3425
|
-
*
|
|
3426
|
-
* <template>
|
|
3427
|
-
* <Transition :name="transition">
|
|
3428
|
-
* <div v-if="show">Animates only after hydration settles</div>
|
|
3429
|
-
* </Transition>
|
|
3430
|
-
* </template>
|
|
3431
|
-
* ```
|
|
3432
|
-
*/
|
|
3433
|
-
declare function useHydration<E extends HydrationContext = HydrationContext>(namespace?: string): E;
|
|
2642
|
+
declare const createHydrationContext: <_E extends HydrationContext = HydrationContext>(_options?: HydrationContextOptions | undefined) => ContextTrinity<_E>, createHydrationPlugin: (_options?: HydrationContextOptions | undefined) => Plugin, useHydration: <_E extends HydrationContext = HydrationContext>(namespace?: string) => _E;
|
|
2643
|
+
//#endregion
|
|
2644
|
+
//#region src/composables/createObserver/index.d.ts
|
|
2645
|
+
interface ObserverReturn {
|
|
2646
|
+
/**
|
|
2647
|
+
* Whether the observer is currently active (created and observing)
|
|
2648
|
+
*/
|
|
2649
|
+
readonly isActive: Readonly<Ref<boolean>>;
|
|
2650
|
+
/**
|
|
2651
|
+
* Whether the observer is currently paused
|
|
2652
|
+
*/
|
|
2653
|
+
readonly isPaused: Readonly<Ref<boolean>>;
|
|
2654
|
+
/**
|
|
2655
|
+
* Pause observation (disconnects observer but keeps it alive)
|
|
2656
|
+
*/
|
|
2657
|
+
pause: () => void;
|
|
2658
|
+
/**
|
|
2659
|
+
* Resume observation
|
|
2660
|
+
*/
|
|
2661
|
+
resume: () => void;
|
|
2662
|
+
/**
|
|
2663
|
+
* Stop observation and clean up (destroys observer)
|
|
2664
|
+
*/
|
|
2665
|
+
stop: () => void;
|
|
2666
|
+
}
|
|
3434
2667
|
//#endregion
|
|
3435
2668
|
//#region src/composables/useIntersectionObserver/index.d.ts
|
|
3436
2669
|
interface IntersectionObserverEntry {
|
|
@@ -3449,31 +2682,11 @@ interface IntersectionObserverOptions {
|
|
|
3449
2682
|
rootMargin?: string;
|
|
3450
2683
|
threshold?: number | number[];
|
|
3451
2684
|
}
|
|
3452
|
-
interface UseIntersectionObserverReturn {
|
|
3453
|
-
/**
|
|
3454
|
-
* Whether the observer is currently active (created and observing)
|
|
3455
|
-
*/
|
|
3456
|
-
readonly isActive: Readonly<Ref<boolean>>;
|
|
2685
|
+
interface UseIntersectionObserverReturn extends ObserverReturn {
|
|
3457
2686
|
/**
|
|
3458
2687
|
* Whether the target element is currently intersecting with the viewport
|
|
3459
2688
|
*/
|
|
3460
2689
|
readonly isIntersecting: Readonly<Ref<boolean>>;
|
|
3461
|
-
/**
|
|
3462
|
-
* Whether the observer is currently paused
|
|
3463
|
-
*/
|
|
3464
|
-
readonly isPaused: Readonly<Ref<boolean>>;
|
|
3465
|
-
/**
|
|
3466
|
-
* Pause observation (disconnects observer but keeps it alive)
|
|
3467
|
-
*/
|
|
3468
|
-
pause: () => void;
|
|
3469
|
-
/**
|
|
3470
|
-
* Resume observation
|
|
3471
|
-
*/
|
|
3472
|
-
resume: () => void;
|
|
3473
|
-
/**
|
|
3474
|
-
* Stop observation and clean up (destroys observer)
|
|
3475
|
-
*/
|
|
3476
|
-
stop: () => void;
|
|
3477
2690
|
}
|
|
3478
2691
|
/**
|
|
3479
2692
|
* A composable that uses the Intersection Observer API to detect when an element
|
|
@@ -3623,25 +2836,6 @@ interface LazyContext {
|
|
|
3623
2836
|
*/
|
|
3624
2837
|
declare function useLazy(active: MaybeRefOrGetter<boolean>, options?: LazyOptions): LazyContext;
|
|
3625
2838
|
//#endregion
|
|
3626
|
-
//#region src/composables/useLocale/adapters/adapter.d.ts
|
|
3627
|
-
interface LocaleAdapter {
|
|
3628
|
-
t: (message: string, ...params: unknown[]) => string;
|
|
3629
|
-
n: (value: number, locale: ID | undefined, ...params: unknown[]) => string;
|
|
3630
|
-
}
|
|
3631
|
-
//#endregion
|
|
3632
|
-
//#region src/composables/useLocale/adapters/v0.d.ts
|
|
3633
|
-
/**
|
|
3634
|
-
* Vuetify0.x locale adapter implementation
|
|
3635
|
-
*
|
|
3636
|
-
* This adapter provides translation and number formatting
|
|
3637
|
-
* capabilities using the Intl API and supports both
|
|
3638
|
-
* numbered ({0}, {1}) and named ({name}) variables in translation strings.
|
|
3639
|
-
*/
|
|
3640
|
-
declare class Vuetify0LocaleAdapter implements LocaleAdapter {
|
|
3641
|
-
t(message: string, ...params: unknown[]): string;
|
|
3642
|
-
n(value: number, locale: ID | undefined, ...params: unknown[]): string;
|
|
3643
|
-
}
|
|
3644
|
-
//#endregion
|
|
3645
2839
|
//#region src/composables/useLocale/index.d.ts
|
|
3646
2840
|
type LocaleRecord = TokenCollection;
|
|
3647
2841
|
/**
|
|
@@ -3702,129 +2896,7 @@ interface LocalePluginOptions extends LocaleContextOptions {}
|
|
|
3702
2896
|
*/
|
|
3703
2897
|
declare function createLocale<Z extends LocaleTicketInput = LocaleTicketInput, E extends LocaleTicket<Z> = LocaleTicket<Z>, R extends LocaleContext<Z, E> = LocaleContext<Z, E>>(_options?: LocaleOptions): R;
|
|
3704
2898
|
declare function createLocaleFallback<Z extends LocaleTicketInput = LocaleTicketInput, E extends LocaleTicket<Z> = LocaleTicket<Z>, R extends LocaleContext<Z, E> = LocaleContext<Z, E>>(): R;
|
|
3705
|
-
|
|
3706
|
-
* Creates a new locale context.
|
|
3707
|
-
*
|
|
3708
|
-
* @param options The options for the locale context.
|
|
3709
|
-
* @template Z The type of the locale ticket.
|
|
3710
|
-
* @template E The type of the locale context.
|
|
3711
|
-
* @returns A new locale context.
|
|
3712
|
-
*
|
|
3713
|
-
* @see https://0.vuetifyjs.com/composables/plugins/use-locale
|
|
3714
|
-
*
|
|
3715
|
-
* @example
|
|
3716
|
-
* ```ts
|
|
3717
|
-
* import { createLocaleContext } from '@vuetify/v0'
|
|
3718
|
-
*
|
|
3719
|
-
* export const [useAppLocale, provideAppLocale, appLocale] = createLocaleContext({
|
|
3720
|
-
* namespace: 'app:locale',
|
|
3721
|
-
* messages: {
|
|
3722
|
-
* en: { hello: 'Hello' },
|
|
3723
|
-
* es: { hello: 'Hola' },
|
|
3724
|
-
* },
|
|
3725
|
-
* })
|
|
3726
|
-
*
|
|
3727
|
-
* // In a parent component:
|
|
3728
|
-
* provideAppLocale()
|
|
3729
|
-
*
|
|
3730
|
-
* // In a child component:
|
|
3731
|
-
* const locale = useAppLocale()
|
|
3732
|
-
* locale.select('es')
|
|
3733
|
-
* ```
|
|
3734
|
-
*/
|
|
3735
|
-
declare function createLocaleContext<Z extends LocaleTicketInput = LocaleTicketInput, E extends LocaleTicket<Z> = LocaleTicket<Z>, R extends LocaleContext<Z, E> = LocaleContext<Z, E>>(_options?: LocaleContextOptions): ContextTrinity<R>;
|
|
3736
|
-
/**
|
|
3737
|
-
* Creates a new locale plugin.
|
|
3738
|
-
*
|
|
3739
|
-
* @param options The options for the locale plugin.
|
|
3740
|
-
* @template Z The type of the locale ticket.
|
|
3741
|
-
* @template E The type of the locale context.
|
|
3742
|
-
* @template R The type of the token ticket.
|
|
3743
|
-
* @template O The type of the token context.
|
|
3744
|
-
* @returns A new locale plugin.
|
|
3745
|
-
*
|
|
3746
|
-
* @see https://0.vuetifyjs.com/composables/plugins/use-locale
|
|
3747
|
-
*/
|
|
3748
|
-
declare function createLocalePlugin<Z extends LocaleTicketInput = LocaleTicketInput, E extends LocaleTicket<Z> = LocaleTicket<Z>, R extends LocaleContext<Z, E> = LocaleContext<Z, E>>(_options?: LocalePluginOptions): Plugin;
|
|
3749
|
-
/**
|
|
3750
|
-
* Returns the current locale instance.
|
|
3751
|
-
*
|
|
3752
|
-
* @returns The current locale instance.
|
|
3753
|
-
*
|
|
3754
|
-
* @see https://0.vuetifyjs.com/composables/plugins/use-locale
|
|
3755
|
-
*/
|
|
3756
|
-
declare function useLocale<Z extends LocaleTicketInput = LocaleTicketInput, E extends LocaleTicket<Z> = LocaleTicket<Z>, R extends LocaleContext<Z, E> = LocaleContext<Z, E>>(namespace?: string): R;
|
|
3757
|
-
//#endregion
|
|
3758
|
-
//#region src/composables/useLogger/adapters/adapter.d.ts
|
|
3759
|
-
interface LoggerAdapter {
|
|
3760
|
-
debug: (message: string, ...args: unknown[]) => void;
|
|
3761
|
-
info: (message: string, ...args: unknown[]) => void;
|
|
3762
|
-
warn: (message: string, ...args: unknown[]) => void;
|
|
3763
|
-
error: (message: string, ...args: unknown[]) => void;
|
|
3764
|
-
trace?: (message: string, ...args: unknown[]) => void;
|
|
3765
|
-
fatal?: (message: string, ...args: unknown[]) => void;
|
|
3766
|
-
}
|
|
3767
|
-
//#endregion
|
|
3768
|
-
//#region src/composables/useLogger/adapters/consola.d.ts
|
|
3769
|
-
declare class ConsolaLoggerAdapter implements LoggerAdapter {
|
|
3770
|
-
private consola;
|
|
3771
|
-
constructor(consolaInstance: any);
|
|
3772
|
-
debug(message: string, ...args: unknown[]): void;
|
|
3773
|
-
info(message: string, ...args: unknown[]): void;
|
|
3774
|
-
warn(message: string, ...args: unknown[]): void;
|
|
3775
|
-
error(message: string, ...args: unknown[]): void;
|
|
3776
|
-
trace(message: string, ...args: unknown[]): void;
|
|
3777
|
-
fatal(message: string, ...args: unknown[]): void;
|
|
3778
|
-
}
|
|
3779
|
-
//#endregion
|
|
3780
|
-
//#region src/composables/useLogger/adapters/pino.d.ts
|
|
3781
|
-
/**
|
|
3782
|
-
* Pino logger adapter implementation
|
|
3783
|
-
*
|
|
3784
|
-
* This adapter integrates with the Pino logging library,
|
|
3785
|
-
* providing high-performance structured logging optimized
|
|
3786
|
-
* for Node.js applications with minimal overhead.
|
|
3787
|
-
*/
|
|
3788
|
-
declare class PinoLoggerAdapter implements LoggerAdapter {
|
|
3789
|
-
private pino;
|
|
3790
|
-
constructor(pinoInstance: any);
|
|
3791
|
-
debug(message: string, ...args: unknown[]): void;
|
|
3792
|
-
info(message: string, ...args: unknown[]): void;
|
|
3793
|
-
warn(message: string, ...args: unknown[]): void;
|
|
3794
|
-
error(message: string, ...args: unknown[]): void;
|
|
3795
|
-
trace(message: string, ...args: unknown[]): void;
|
|
3796
|
-
fatal(message: string, ...args: unknown[]): void;
|
|
3797
|
-
private format;
|
|
3798
|
-
}
|
|
3799
|
-
//#endregion
|
|
3800
|
-
//#region src/composables/useLogger/adapters/v0.d.ts
|
|
3801
|
-
/**
|
|
3802
|
-
* Vuetify0.x logger adapter implementation
|
|
3803
|
-
*
|
|
3804
|
-
* This adapter provides console-based logging with proper formatting,
|
|
3805
|
-
* color coding, timestamps, and log level filtering for development
|
|
3806
|
-
* and production environments.
|
|
3807
|
-
*/
|
|
3808
|
-
declare class Vuetify0LoggerAdapter implements LoggerAdapter {
|
|
3809
|
-
private prefix;
|
|
3810
|
-
private colors;
|
|
3811
|
-
private timestamps;
|
|
3812
|
-
constructor(options?: {
|
|
3813
|
-
prefix?: string;
|
|
3814
|
-
colors?: boolean;
|
|
3815
|
-
timestamps?: boolean;
|
|
3816
|
-
});
|
|
3817
|
-
debug(message: string, ...args: unknown[]): void;
|
|
3818
|
-
info(message: string, ...args: unknown[]): void;
|
|
3819
|
-
warn(message: string, ...args: unknown[]): void;
|
|
3820
|
-
error(message: string, ...args: unknown[]): void;
|
|
3821
|
-
trace(message: string, ...args: unknown[]): void;
|
|
3822
|
-
fatal(message: string, ...args: unknown[]): void;
|
|
3823
|
-
private format;
|
|
3824
|
-
private timestamp;
|
|
3825
|
-
private style;
|
|
3826
|
-
private log;
|
|
3827
|
-
}
|
|
2899
|
+
declare const createLocaleContext: <_E extends LocaleContext<LocaleTicketInput, LocaleTicket<LocaleTicketInput>> = LocaleContext<LocaleTicketInput, LocaleTicket<LocaleTicketInput>>>(_options?: LocaleContextOptions | undefined) => ContextTrinity<_E>, createLocalePlugin: (_options?: LocaleContextOptions | undefined) => Plugin, useLocale: <_E extends LocaleContext<LocaleTicketInput, LocaleTicket<LocaleTicketInput>> = LocaleContext<LocaleTicketInput, LocaleTicket<LocaleTicketInput>>>(namespace?: string) => _E;
|
|
3828
2900
|
//#endregion
|
|
3829
2901
|
//#region src/composables/useLogger/types.d.ts
|
|
3830
2902
|
type LogLevel = 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'fatal' | 'silent';
|
|
@@ -3897,56 +2969,7 @@ declare function createLogger<E extends LoggerContext = LoggerContext>(options?:
|
|
|
3897
2969
|
* })
|
|
3898
2970
|
* ```
|
|
3899
2971
|
*/
|
|
3900
|
-
declare
|
|
3901
|
-
/**
|
|
3902
|
-
* Creates a new logger plugin.
|
|
3903
|
-
*
|
|
3904
|
-
* @param options The options for the logger plugin.
|
|
3905
|
-
* @returns A new logger plugin.
|
|
3906
|
-
*
|
|
3907
|
-
* @see https://0.vuetifyjs.com/composables/plugins/use-logger
|
|
3908
|
-
*
|
|
3909
|
-
* @example
|
|
3910
|
-
* ```ts
|
|
3911
|
-
* import { createApp } from 'vue'
|
|
3912
|
-
* import { createLoggerPlugin } from '@vuetify/v0'
|
|
3913
|
-
* import App from './App.vue'
|
|
3914
|
-
*
|
|
3915
|
-
* const app = createApp(App)
|
|
3916
|
-
*
|
|
3917
|
-
* app.use(
|
|
3918
|
-
* createLoggerPlugin({
|
|
3919
|
-
* level: 'debug',
|
|
3920
|
-
* prefix: '[MyApp]',
|
|
3921
|
-
* })
|
|
3922
|
-
* )
|
|
3923
|
-
*
|
|
3924
|
-
* app.mount('#app')
|
|
3925
|
-
* ```
|
|
3926
|
-
*/
|
|
3927
|
-
declare function createLoggerPlugin<E extends LoggerContext = LoggerContext>(_options?: LoggerPluginOptions): Plugin;
|
|
3928
|
-
/**
|
|
3929
|
-
* Uses an existing or creates a new logger instance.
|
|
3930
|
-
*
|
|
3931
|
-
* @param namespace The namespace for the logger context. Defaults to `'v0:logger'`.
|
|
3932
|
-
* @returns The logger instance.
|
|
3933
|
-
*
|
|
3934
|
-
* @see https://0.vuetifyjs.com/composables/plugins/use-logger
|
|
3935
|
-
*
|
|
3936
|
-
* @example
|
|
3937
|
-
* ```ts
|
|
3938
|
-
* import { useLogger } from '@vuetify/v0'
|
|
3939
|
-
*
|
|
3940
|
-
* const logger = useLogger()
|
|
3941
|
-
*
|
|
3942
|
-
* logger.info('This is an info message')
|
|
3943
|
-
* logger.debug('This is a debug message')
|
|
3944
|
-
* logger.error('This is an error message')
|
|
3945
|
-
* logger.level('debug')
|
|
3946
|
-
* logger.debug('This debug message will now be logged')
|
|
3947
|
-
* ```
|
|
3948
|
-
*/
|
|
3949
|
-
declare function useLogger<E extends LoggerContext = LoggerContext>(namespace?: string): E;
|
|
2972
|
+
declare const createLoggerContext: <_E extends LoggerContext = LoggerContext>(_options?: LoggerContextOptions | undefined) => ContextTrinity<_E>, createLoggerPlugin: (_options?: LoggerContextOptions | undefined) => Plugin, useLogger: <_E extends LoggerContext = LoggerContext>(namespace?: string) => _E;
|
|
3950
2973
|
//#endregion
|
|
3951
2974
|
//#region src/composables/useMediaQuery/index.d.ts
|
|
3952
2975
|
interface MediaQueryContext {
|
|
@@ -4017,11 +3040,17 @@ declare function usePrefersReducedMotion(): MediaQueryContext;
|
|
|
4017
3040
|
declare function usePrefersContrast(): MediaQueryContext;
|
|
4018
3041
|
//#endregion
|
|
4019
3042
|
//#region src/composables/useMutationObserver/index.d.ts
|
|
3043
|
+
interface ObservableNodeList {
|
|
3044
|
+
readonly length: number;
|
|
3045
|
+
item: (index: number) => Node | null;
|
|
3046
|
+
forEach: (callback: (node: Node, index: number, list: ObservableNodeList) => void) => void;
|
|
3047
|
+
[Symbol.iterator]: () => Iterator<Node>;
|
|
3048
|
+
}
|
|
4020
3049
|
interface MutationObserverRecord {
|
|
4021
3050
|
type: 'attributes' | 'childList' | 'characterData';
|
|
4022
3051
|
target: Node;
|
|
4023
|
-
addedNodes:
|
|
4024
|
-
removedNodes:
|
|
3052
|
+
addedNodes: ObservableNodeList;
|
|
3053
|
+
removedNodes: ObservableNodeList;
|
|
4025
3054
|
previousSibling: Node | null;
|
|
4026
3055
|
nextSibling: Node | null;
|
|
4027
3056
|
attributeName: string | null;
|
|
@@ -4039,28 +3068,7 @@ interface UseMutationObserverOptions {
|
|
|
4039
3068
|
characterDataOldValue?: boolean;
|
|
4040
3069
|
attributeFilter?: string[];
|
|
4041
3070
|
}
|
|
4042
|
-
interface UseMutationObserverReturn {
|
|
4043
|
-
/**
|
|
4044
|
-
* Whether the observer is currently active (created and observing)
|
|
4045
|
-
*/
|
|
4046
|
-
readonly isActive: Readonly<Ref<boolean>>;
|
|
4047
|
-
/**
|
|
4048
|
-
* Whether the observer is currently paused
|
|
4049
|
-
*/
|
|
4050
|
-
readonly isPaused: Readonly<Ref<boolean>>;
|
|
4051
|
-
/**
|
|
4052
|
-
* Pause observation (disconnects observer but keeps it alive)
|
|
4053
|
-
*/
|
|
4054
|
-
pause: () => void;
|
|
4055
|
-
/**
|
|
4056
|
-
* Resume observation
|
|
4057
|
-
*/
|
|
4058
|
-
resume: () => void;
|
|
4059
|
-
/**
|
|
4060
|
-
* Stop observation and clean up (destroys observer)
|
|
4061
|
-
*/
|
|
4062
|
-
stop: () => void;
|
|
4063
|
-
}
|
|
3071
|
+
interface UseMutationObserverReturn extends ObserverReturn {}
|
|
4064
3072
|
/**
|
|
4065
3073
|
* A composable that uses the Mutation Observer API to detect changes in the DOM.
|
|
4066
3074
|
*
|
|
@@ -4548,85 +3556,7 @@ interface PermissionPluginOptions extends PermissionContextOptions {}
|
|
|
4548
3556
|
* ```
|
|
4549
3557
|
*/
|
|
4550
3558
|
declare function createPermissions<Z extends PermissionTicket = PermissionTicket, E extends PermissionContext<Z> = PermissionContext<Z>>(_options?: PermissionOptions): E;
|
|
4551
|
-
|
|
4552
|
-
* Creates a new permissions context.
|
|
4553
|
-
*
|
|
4554
|
-
* @param options The options for the permissions context.
|
|
4555
|
-
* @template Z The type of the permission ticket.
|
|
4556
|
-
* @template E The type of the permission context.
|
|
4557
|
-
* @returns A new permissions context.
|
|
4558
|
-
*
|
|
4559
|
-
* @see https://0.vuetifyjs.com/composables/plugins/use-permissions
|
|
4560
|
-
*
|
|
4561
|
-
* @example
|
|
4562
|
-
* ```ts
|
|
4563
|
-
* import { createPermissionsContext } from '@vuetify/v0'
|
|
4564
|
-
*
|
|
4565
|
-
* export const [usePermissions, providePermissions, context] = createPermissionsContext({
|
|
4566
|
-
* namespace: 'app:permissions',
|
|
4567
|
-
* permissions: {
|
|
4568
|
-
* admin: [['read', 'users'], ['edit', 'users']],
|
|
4569
|
-
* editor: [['edit', 'posts']],
|
|
4570
|
-
* },
|
|
4571
|
-
* })
|
|
4572
|
-
* ```
|
|
4573
|
-
*/
|
|
4574
|
-
declare function createPermissionsContext<Z extends PermissionTicket = PermissionTicket, E extends PermissionContext<Z> = PermissionContext<Z>>(_options?: PermissionContextOptions): ContextTrinity<E>;
|
|
4575
|
-
/**
|
|
4576
|
-
* Creates a new permissions plugin.
|
|
4577
|
-
*
|
|
4578
|
-
* @param options The options for the permissions plugin.
|
|
4579
|
-
* @template Z The type of the permission ticket.
|
|
4580
|
-
* @template E The type of the permission context.
|
|
4581
|
-
* @returns A new permissions plugin.
|
|
4582
|
-
*
|
|
4583
|
-
* @see https://0.vuetifyjs.com/composables/plugins/use-permissions
|
|
4584
|
-
*
|
|
4585
|
-
* @example
|
|
4586
|
-
* ```ts
|
|
4587
|
-
* import { createApp } from 'vue'
|
|
4588
|
-
* import { createPermissionsPlugin } from '@vuetify/v0'
|
|
4589
|
-
* import App from './App.vue'
|
|
4590
|
-
*
|
|
4591
|
-
* const app = createApp(App)
|
|
4592
|
-
*
|
|
4593
|
-
* app.use(
|
|
4594
|
-
* createPermissionsPlugin({
|
|
4595
|
-
* permissions: {
|
|
4596
|
-
* admin: [['read', 'users']],
|
|
4597
|
-
* editor: [['edit', 'posts']],
|
|
4598
|
-
* },
|
|
4599
|
-
* })
|
|
4600
|
-
* )
|
|
4601
|
-
*
|
|
4602
|
-
* app.mount('#app')
|
|
4603
|
-
* ```
|
|
4604
|
-
*/
|
|
4605
|
-
declare function createPermissionsPlugin<Z extends PermissionTicket = PermissionTicket, E extends PermissionContext<Z> = PermissionContext<Z>>(_options?: PermissionPluginOptions): Plugin;
|
|
4606
|
-
/**
|
|
4607
|
-
* Returns the current permissions instance.
|
|
4608
|
-
*
|
|
4609
|
-
* @template Z The type of the permission ticket.
|
|
4610
|
-
* @returns The current permissions instance.
|
|
4611
|
-
*
|
|
4612
|
-
* @see https://0.vuetifyjs.com/composables/plugins/use-permissions
|
|
4613
|
-
*
|
|
4614
|
-
* @example
|
|
4615
|
-
* ```vue
|
|
4616
|
-
* <script setup lang="ts">
|
|
4617
|
-
* import { usePermissions } from '@vuetify/v0'
|
|
4618
|
-
*
|
|
4619
|
-
* const { can } = usePermissions()
|
|
4620
|
-
* </script>
|
|
4621
|
-
*
|
|
4622
|
-
* <template>
|
|
4623
|
-
* <div>
|
|
4624
|
-
* <p v-if="can('admin', 'read', 'users')">Admin access</p>
|
|
4625
|
-
* </div>
|
|
4626
|
-
* </template>
|
|
4627
|
-
* ```
|
|
4628
|
-
*/
|
|
4629
|
-
declare function usePermissions<Z extends PermissionTicket = PermissionTicket, E extends PermissionContext<Z> = PermissionContext<Z>>(namespace?: string): E;
|
|
3559
|
+
declare const createPermissionsContext: <_E extends PermissionContext<PermissionTicket> = PermissionContext<PermissionTicket>>(_options?: PermissionContextOptions | undefined) => ContextTrinity<_E>, createPermissionsPlugin: (_options?: PermissionContextOptions | undefined) => Plugin, usePermissions: <_E extends PermissionContext<PermissionTicket> = PermissionContext<PermissionTicket>>(namespace?: string) => _E;
|
|
4630
3560
|
//#endregion
|
|
4631
3561
|
//#region src/composables/useProxyModel/index.d.ts
|
|
4632
3562
|
interface ProxyModelOptions {
|
|
@@ -4701,7 +3631,7 @@ declare function useProxyRegistry<Z extends RegistryTicket = RegistryTicket>(reg
|
|
|
4701
3631
|
*
|
|
4702
3632
|
* @template V The type of the ticket value.
|
|
4703
3633
|
*/
|
|
4704
|
-
interface QueueTicketInput<V = unknown> extends
|
|
3634
|
+
interface QueueTicketInput<V = unknown> extends RegistryTicketInput<V> {
|
|
4705
3635
|
/**
|
|
4706
3636
|
* Timeout in milliseconds
|
|
4707
3637
|
*
|
|
@@ -4718,7 +3648,7 @@ interface QueueTicketInput<V = unknown> extends RegistryTicket<V> {
|
|
|
4718
3648
|
*
|
|
4719
3649
|
* @template Z The input ticket type that extends QueueTicketInput.
|
|
4720
3650
|
*/
|
|
4721
|
-
type QueueTicket<Z extends QueueTicketInput = QueueTicketInput> = Z & {
|
|
3651
|
+
type QueueTicket<Z extends QueueTicketInput = QueueTicketInput> = RegistryTicket & Z & {
|
|
4722
3652
|
/**
|
|
4723
3653
|
* Timeout in milliseconds (resolved from input or default)
|
|
4724
3654
|
*/
|
|
@@ -5015,28 +3945,7 @@ interface ResizeObserverOptions {
|
|
|
5015
3945
|
once?: boolean;
|
|
5016
3946
|
box?: 'content-box' | 'border-box';
|
|
5017
3947
|
}
|
|
5018
|
-
interface UseResizeObserverReturn {
|
|
5019
|
-
/**
|
|
5020
|
-
* Whether the observer is currently active (created and observing)
|
|
5021
|
-
*/
|
|
5022
|
-
readonly isActive: Readonly<Ref<boolean>>;
|
|
5023
|
-
/**
|
|
5024
|
-
* Whether the observer is currently paused
|
|
5025
|
-
*/
|
|
5026
|
-
readonly isPaused: Readonly<Ref<boolean>>;
|
|
5027
|
-
/**
|
|
5028
|
-
* Pause observation (disconnects observer but keeps it alive)
|
|
5029
|
-
*/
|
|
5030
|
-
pause: () => void;
|
|
5031
|
-
/**
|
|
5032
|
-
* Resume observation
|
|
5033
|
-
*/
|
|
5034
|
-
resume: () => void;
|
|
5035
|
-
/**
|
|
5036
|
-
* Stop observation and clean up (destroys observer)
|
|
5037
|
-
*/
|
|
5038
|
-
stop: () => void;
|
|
5039
|
-
}
|
|
3948
|
+
interface UseResizeObserverReturn extends ObserverReturn {}
|
|
5040
3949
|
/**
|
|
5041
3950
|
* A composable that uses the Resize Observer API to detect when an element's
|
|
5042
3951
|
* size changes.
|
|
@@ -5083,11 +3992,11 @@ interface UseElementSizeReturn extends UseResizeObserverReturn {
|
|
|
5083
3992
|
/**
|
|
5084
3993
|
* The width of the element in pixels
|
|
5085
3994
|
*/
|
|
5086
|
-
width: Ref<number
|
|
3995
|
+
readonly width: Readonly<Ref<number>>;
|
|
5087
3996
|
/**
|
|
5088
3997
|
* The height of the element in pixels
|
|
5089
3998
|
*/
|
|
5090
|
-
height: Ref<number
|
|
3999
|
+
readonly height: Readonly<Ref<number>>;
|
|
5091
4000
|
}
|
|
5092
4001
|
/**
|
|
5093
4002
|
* A convenience composable that uses the Resize Observer API to track an
|
|
@@ -5519,40 +4428,6 @@ declare function createStepContext<Z extends StepTicketInput = StepTicketInput,
|
|
|
5519
4428
|
*/
|
|
5520
4429
|
declare function useStep<Z extends StepTicketInput = StepTicketInput, E extends StepTicket<Z> = StepTicket<Z>, R extends StepContext<Z, E> = StepContext<Z, E>>(namespace?: string): R;
|
|
5521
4430
|
//#endregion
|
|
5522
|
-
//#region src/composables/useStorage/adapters/adapter.d.ts
|
|
5523
|
-
interface StorageAdapter$1 {
|
|
5524
|
-
getItem: (key: string) => string | null;
|
|
5525
|
-
setItem: (key: string, value: string) => void;
|
|
5526
|
-
removeItem: (key: string) => void;
|
|
5527
|
-
readonly length?: number;
|
|
5528
|
-
key?: (index: number) => string | null;
|
|
5529
|
-
}
|
|
5530
|
-
//#endregion
|
|
5531
|
-
//#region src/composables/useStorage/adapters/memory.d.ts
|
|
5532
|
-
/**
|
|
5533
|
-
* In-memory storage adapter that implements the StorageAdapter interface.
|
|
5534
|
-
* This adapter provides temporary storage that persists only for the current
|
|
5535
|
-
* session and is useful for testing or when persistent storage is not available.
|
|
5536
|
-
*/
|
|
5537
|
-
declare class MemoryAdapter implements StorageAdapter$1 {
|
|
5538
|
-
private store;
|
|
5539
|
-
get length(): number;
|
|
5540
|
-
getItem(key: string): string | null;
|
|
5541
|
-
setItem(key: string, value: string): void;
|
|
5542
|
-
removeItem(key: string): void;
|
|
5543
|
-
key(index: number): string;
|
|
5544
|
-
}
|
|
5545
|
-
//#endregion
|
|
5546
|
-
//#region src/composables/useStorage/adapters/index.d.ts
|
|
5547
|
-
type StorageType = 'localStorage' | 'sessionStorage' | 'memory';
|
|
5548
|
-
interface StorageAdapter {
|
|
5549
|
-
getItem: (key: string) => string | null;
|
|
5550
|
-
setItem: (key: string, value: string) => void;
|
|
5551
|
-
removeItem: (key: string) => void;
|
|
5552
|
-
readonly length?: number;
|
|
5553
|
-
key?: (index: number) => string | null;
|
|
5554
|
-
}
|
|
5555
|
-
//#endregion
|
|
5556
4431
|
//#region src/composables/useStorage/index.d.ts
|
|
5557
4432
|
interface StorageContext {
|
|
5558
4433
|
/** Check if a key exists in storage */
|
|
@@ -5607,54 +4482,7 @@ interface StoragePluginOptions extends StorageContextOptions {}
|
|
|
5607
4482
|
* ```
|
|
5608
4483
|
*/
|
|
5609
4484
|
declare function createStorage<E extends StorageContext>(options?: StorageOptions): E;
|
|
5610
|
-
declare
|
|
5611
|
-
/**
|
|
5612
|
-
* Creates a new storage plugin.
|
|
5613
|
-
*
|
|
5614
|
-
* @param options The options for the storage plugin.
|
|
5615
|
-
* @returns A new storage plugin.
|
|
5616
|
-
*
|
|
5617
|
-
* @see https://0.vuetifyjs.com/composables/plugins/use-storage
|
|
5618
|
-
*
|
|
5619
|
-
* @example
|
|
5620
|
-
* ```ts
|
|
5621
|
-
* import { createApp } from 'vue'
|
|
5622
|
-
* import { createStoragePlugin } from '@vuetify/v0'
|
|
5623
|
-
* import App from './App.vue'
|
|
5624
|
-
*
|
|
5625
|
-
* const app = createApp(App)
|
|
5626
|
-
*
|
|
5627
|
-
* app.use(createStoragePlugin())
|
|
5628
|
-
*
|
|
5629
|
-
* app.mount('#app')
|
|
5630
|
-
* ```
|
|
5631
|
-
*/
|
|
5632
|
-
declare function createStoragePlugin<E extends StorageContext = StorageContext>(_options?: StoragePluginOptions): Plugin;
|
|
5633
|
-
/**
|
|
5634
|
-
* Returns the current storage instance.
|
|
5635
|
-
*
|
|
5636
|
-
* @param namespace The namespace for the storage context. Defaults to `'v0:storage'`.
|
|
5637
|
-
* @returns The current storage instance.
|
|
5638
|
-
*
|
|
5639
|
-
* @see https://0.vuetifyjs.com/composables/plugins/use-storage
|
|
5640
|
-
*
|
|
5641
|
-
* @example
|
|
5642
|
-
* ```vue
|
|
5643
|
-
* <script setup lang="ts">
|
|
5644
|
-
* import { useStorage } from '@vuetify/v0'
|
|
5645
|
-
*
|
|
5646
|
-
* const storage = useStorage()
|
|
5647
|
-
* const username = storage.get('username', 'Guest')
|
|
5648
|
-
* </script>
|
|
5649
|
-
*
|
|
5650
|
-
* <template>
|
|
5651
|
-
* <div>
|
|
5652
|
-
* <p>Username: {{ username }}</p>
|
|
5653
|
-
* </div>
|
|
5654
|
-
* </template>
|
|
5655
|
-
* ```
|
|
5656
|
-
*/
|
|
5657
|
-
declare function useStorage<E extends StorageContext = StorageContext>(namespace?: string): E;
|
|
4485
|
+
declare const createStorageContext: <_E extends StorageContext = StorageContext>(_options?: StorageContextOptions | undefined) => ContextTrinity<_E>, createStoragePlugin: (_options?: StorageContextOptions | undefined) => Plugin, useStorage: <_E extends StorageContext = StorageContext>(namespace?: string) => _E;
|
|
5658
4486
|
//#endregion
|
|
5659
4487
|
//#region src/composables/useTheme/adapters/adapter.d.ts
|
|
5660
4488
|
interface ThemeAdapterSetupContext {
|
|
@@ -5871,107 +4699,7 @@ interface ThemePluginOptions extends ThemeContextOptions {}
|
|
|
5871
4699
|
* ```
|
|
5872
4700
|
*/
|
|
5873
4701
|
declare function createTheme<Z extends ThemeTicketInput = ThemeTicketInput, E extends ThemeTicket<Z> = ThemeTicket<Z>, R extends ThemeContext<Z, E> = ThemeContext<Z, E>>(_options?: ThemeOptions): R;
|
|
5874
|
-
|
|
5875
|
-
* Creates a new theme context trinity.
|
|
5876
|
-
*
|
|
5877
|
-
* @param options The options for the theme context.
|
|
5878
|
-
* @template Z The type of the theme ticket.
|
|
5879
|
-
* @template E The type of the theme context.
|
|
5880
|
-
* @returns A new theme context trinity.
|
|
5881
|
-
*
|
|
5882
|
-
* @see https://0.vuetifyjs.com/composables/plugins/use-theme
|
|
5883
|
-
*
|
|
5884
|
-
* @example
|
|
5885
|
-
* ```ts
|
|
5886
|
-
* import { createThemeContext } from '@vuetify/v0'
|
|
5887
|
-
*
|
|
5888
|
-
* export const [useThemeContext, provideThemeContext, context] = createThemeContext({
|
|
5889
|
-
* namespace: 'v0:theme',
|
|
5890
|
-
* default: 'light',
|
|
5891
|
-
* themes: {
|
|
5892
|
-
* light: {
|
|
5893
|
-
* dark: false,
|
|
5894
|
-
* colors: {
|
|
5895
|
-
* primary: '#3b82f6',
|
|
5896
|
-
* },
|
|
5897
|
-
* },
|
|
5898
|
-
* dark: {
|
|
5899
|
-
* dark: true,
|
|
5900
|
-
* colors: {
|
|
5901
|
-
* primary: '#675496',
|
|
5902
|
-
* },
|
|
5903
|
-
* },
|
|
5904
|
-
* },
|
|
5905
|
-
* })
|
|
5906
|
-
* ```
|
|
5907
|
-
*/
|
|
5908
|
-
declare function createThemeContext<Z extends ThemeTicketInput = ThemeTicketInput, E extends ThemeTicket<Z> = ThemeTicket<Z>, R extends ThemeContext<Z, E> = ThemeContext<Z, E>>(_options?: ThemeContextOptions): ContextTrinity<R>;
|
|
5909
|
-
/**
|
|
5910
|
-
* Creates a new theme plugin.
|
|
5911
|
-
*
|
|
5912
|
-
* @param options The options for the theme plugin.
|
|
5913
|
-
* @template Z The type of the theme ticket.
|
|
5914
|
-
* @template E The type of the theme context.
|
|
5915
|
-
* @returns A new theme plugin.
|
|
5916
|
-
*
|
|
5917
|
-
* @see https://0.vuetifyjs.com/composables/plugins/use-theme
|
|
5918
|
-
*
|
|
5919
|
-
* @example
|
|
5920
|
-
* ```ts
|
|
5921
|
-
* import { createApp } from 'vue'
|
|
5922
|
-
* import { createThemePlugin } from '@vuetify/v0'
|
|
5923
|
-
* import App from './App.vue'
|
|
5924
|
-
*
|
|
5925
|
-
* const app = createApp(App)
|
|
5926
|
-
*
|
|
5927
|
-
* app.use(
|
|
5928
|
-
* createThemePlugin({
|
|
5929
|
-
* default: 'light',
|
|
5930
|
-
* themes: {
|
|
5931
|
-
* light: {
|
|
5932
|
-
* dark: false,
|
|
5933
|
-
* colors: {
|
|
5934
|
-
* primary: '#3b82f6',
|
|
5935
|
-
* },
|
|
5936
|
-
* },
|
|
5937
|
-
* dark: {
|
|
5938
|
-
* dark: true,
|
|
5939
|
-
* colors: {
|
|
5940
|
-
* primary: '#675496',
|
|
5941
|
-
* },
|
|
5942
|
-
* },
|
|
5943
|
-
* },
|
|
5944
|
-
* })
|
|
5945
|
-
* )
|
|
5946
|
-
*
|
|
5947
|
-
* app.mount('#app')
|
|
5948
|
-
* ```
|
|
5949
|
-
*/
|
|
5950
|
-
declare function createThemePlugin<Z extends ThemeTicketInput = ThemeTicketInput, E extends ThemeTicket<Z> = ThemeTicket<Z>, R extends ThemeContext<Z, E> = ThemeContext<Z, E>>(_options?: ThemePluginOptions): Plugin;
|
|
5951
|
-
/**
|
|
5952
|
-
* Returns the current theme instance.
|
|
5953
|
-
*
|
|
5954
|
-
* @param namespace The namespace for the theme context. Defaults to `v0:theme`.
|
|
5955
|
-
* @returns The current theme instance.
|
|
5956
|
-
*
|
|
5957
|
-
* @see https://0.vuetifyjs.com/composables/plugins/use-theme
|
|
5958
|
-
*
|
|
5959
|
-
* @example
|
|
5960
|
-
* ```vue
|
|
5961
|
-
* <script setup lang="ts">
|
|
5962
|
-
* import { useTheme } from '@vuetify/v0'
|
|
5963
|
-
*
|
|
5964
|
-
* const theme = useTheme()
|
|
5965
|
-
* </script>
|
|
5966
|
-
*
|
|
5967
|
-
* <template>
|
|
5968
|
-
* <div>
|
|
5969
|
-
* <p>Current theme: {{ theme.selected.value }}</p>
|
|
5970
|
-
* </div>
|
|
5971
|
-
* </template>
|
|
5972
|
-
* ```
|
|
5973
|
-
*/
|
|
5974
|
-
declare function useTheme<Z extends ThemeTicketInput = ThemeTicketInput, E extends ThemeTicket<Z> = ThemeTicket<Z>, R extends ThemeContext<Z, E> = ThemeContext<Z, E>>(namespace?: string): R;
|
|
4702
|
+
declare const createThemeContext: <_E extends ThemeContext<ThemeTicketInput, ThemeTicket<ThemeTicketInput>> = ThemeContext<ThemeTicketInput, ThemeTicket<ThemeTicketInput>>>(_options?: ThemePluginOptions | undefined) => ContextTrinity<_E>, createThemePlugin: (_options?: ThemePluginOptions | undefined) => Plugin, useTheme: <_E extends ThemeContext<ThemeTicketInput, ThemeTicket<ThemeTicketInput>> = ThemeContext<ThemeTicketInput, ThemeTicket<ThemeTicketInput>>>(namespace?: string) => _E;
|
|
5975
4703
|
//#endregion
|
|
5976
4704
|
//#region src/composables/createTimeline/index.d.ts
|
|
5977
4705
|
interface TimelineContext<Z extends TimelineTicket> extends RegistryContext<Z> {
|
|
@@ -6550,4 +5278,4 @@ declare function createVirtualContext<T = unknown>(items: Ref<readonly T[]>, _op
|
|
|
6550
5278
|
*/
|
|
6551
5279
|
declare function useVirtual<T = unknown>(namespace?: string): VirtualContext<T>;
|
|
6552
5280
|
//#endregion
|
|
6553
|
-
export {
|
|
5281
|
+
export { useStep as $, SelectionTicket as $i, UseHotkeyReturn as $n, BreakpointName as $r, NestedTicketInput as $t, createTheme as A, GroupTicketInput as Ai, createLocaleFallback as An, TokenValue as Ar, PermissionContextOptions as At, StorageOptions as B, createBreadcrumbsContext as Bi, useElementIntersection as Bn, DateContextOptions as Br, createNested as Bt, ThemeContext as C, createOverflow as Ci, LocaleOptions as Cn, TokenAlias as Cr, useQueue as Ct, ThemeRecord as D, GroupContextOptions as Di, LocaleTicketInput as Dn, TokenOptions as Dr, ProxyModelOptions as Dt, ThemePluginOptions as E, GroupContext as Ei, LocaleTicket as En, TokenContextOptions as Er, useProxyRegistry as Et, Vuetify0ThemeOptions as F, BreadcrumbTicketInput as Fi, useLazy as Fn, EventHandler as Fr, createPermissionsContext as Ft, useStorage as G, SingleTicket as Gi, HydrationPluginOptions as Gn, createDatePlugin as Gr, NestedActiveMode as Gt, createStorage as H, SingleContext as Hi, HydrationContext as Hn, DatePluginOptions as Hr, useNested as Ht, ThemeAdapter as I, BreadcrumbsContext as Ii, IntersectionObserverEntry as In, useDocumentEventListener as Ir, createPermissionsPlugin as It, StepOptions as J, createSingleContext as Ji, createHydrationContext as Jn, ClickOutsideIgnoreTarget as Jr, NestedOpenMode as Jt, StepContext as K, SingleTicketInput as Ki, createFallbackHydration as Kn, useDate as Kr, NestedContext as Kt, ThemeAdapterInterface as L, BreadcrumbsContextOptions as Li, IntersectionObserverOptions as Ln, useEventListener as Lr, usePermissions as Lt, createThemePlugin as M, createGroupContext as Mi, useLocale as Mn, createTokensContext as Mr, PermissionPluginOptions as Mt, useTheme as N, useGroup as Ni, LazyContext as Nn, useTokens as Nr, PermissionTicket as Nt, ThemeTicket as O, GroupOptions as Oi, createLocale as On, TokenPrimitive as Or, useProxyModel as Ot, Vuetify0ThemeAdapter as P, BreadcrumbTicket as Pi, LazyOptions as Pn, CleanupFunction as Pr, createPermissions as Pt, createStepContext as Q, SelectionOptions as Qi, UseHotkeyOptions as Qn, useClickOutside as Qr, NestedTicket as Qt, StorageContext as R, BreadcrumbsOptions as Ri, UseElementIntersectionReturn as Rn, useWindowEventListener as Rr, PermissionAdapter as Rt, ThemeColors as S, OverflowOptions as Si, LocaleContextOptions as Sn, FlatTokenCollection as Sr, createQueueContext as St, ThemeOptions as T, useOverflow as Ti, LocaleRecord as Tn, TokenContext as Tr, ProxyRegistryOptions as Tt, createStorageContext as U, SingleContextOptions as Ui, HydrationContextOptions as Un, createDate as Ur, multipleOpenStrategy as Ut, StoragePluginOptions as V, useBreadcrumbs as Vi, useIntersectionObserver as Vn, DateOptions as Vr, createNestedContext as Vt, createStoragePlugin as W, SingleOptions as Wi, HydrationOptions as Wn, createDateContext as Wr, singleOpenStrategy as Wt, StepTicketInput as X, SelectionContext as Xi, useHydration as Xn, UseClickOutsideOptions as Xr, NestedRegistration as Xt, StepTicket as Y, useSingle as Yi, createHydrationPlugin as Yn, ClickOutsideTarget as Yr, NestedOptions as Yt, createStep as Z, SelectionContextOptions as Zi, PlatformContext as Zn, UseClickOutsideReturn as Zr, NestedSelectionMode as Zt, TimelineTicket as _, createContext as _i, createLoggerContext as _n, FeatureTicketInput as _r, QueueContextOptions as _t, VirtualDirection as a, RegistryContextOptions as aa, createBreakpointsContext as ai, UseMutationObserverReturn as an, FormTicketInput as ar, StackTicketInput as at, useTimeline as b, OverflowContext as bi, LogLevel as bn, createFeaturesPlugin as br, QueueTicketInput as bt, VirtualState as c, RegistryEventName as ca, toReactive as ci, useMediaQuery as cn, FormValue as cr, createStackPlugin as ct, useVirtual as d, RegistryTicketInput as da, PluginContextConfig as di, usePrefersReducedMotion as dn, useForm as dr, ResizeObserverOptions as dt, SelectionTicketInput as ea, BreakpointsContext as ei, OpenStrategy as en, useHotkey as er, StackContext as et, ToggleScopeControls as f, createRegistry as fa, PluginOptions as fi, LoggerContext as fn, FeatureContext as fr, UseElementSizeReturn as ft, TimelineOptions as g, CreateContextOptions as gi, createLogger as gn, FeatureTicket as gr, QueueContext as gt, TimelineContextOptions as h, ContextKey as hi, LoggerPluginOptions as hn, FeaturePluginOptions as hr, useResizeObserver as ht, VirtualContextOptions as i, RegistryContext as ia, createBreakpoints as ii, UseMutationObserverOptions as in, FormTicket as ir, StackTicket as it, createThemeContext as j, createGroup as ji, createLocalePlugin as jn, createTokens as jr, PermissionOptions as jt, ThemeTicketInput as k, GroupTicket as ki, createLocaleContext as kn, TokenTicket as kr, PermissionContext as kt, createVirtual as l, RegistryOptions as la, toArray as li, usePrefersContrast as ln, createForm as lr, useStack as lt, TimelineContext as m, useRegistry as ma, createPluginContext as mi, LoggerOptions as mn, FeatureOptions as mr, useElementSize as mt, VirtualAnchor as n, createSelectionContext as na, BreakpointsOptions as ni, MutationObserverRecord as nn, FormContextOptions as nr, StackOptions as nt, VirtualItem as o, RegistryEventCallback as oa, createBreakpointsPlugin as oi, useMutationObserver as on, FormValidationResult as or, createStack as ot, useToggleScope as p, createRegistryContext as pa, createPlugin as pi, LoggerContextOptions as pn, FeatureContextOptions as pr, UseResizeObserverReturn as pt, StepContextOptions as q, createSingle as qi, createHydration as qn, ClickOutsideElement as qr, NestedContextOptions as qt, VirtualContext as r, useSelection as ra, BreakpointsPluginOptions as ri, ObservableNodeList as rn, FormOptions as rr, StackPluginOptions as rt, VirtualOptions as s, RegistryEventMap as sa, useBreakpoints as si, MediaQueryContext as sn, FormValidationRule as sr, createStackContext as st, ScrollToOptions as t, createSelection as ta, BreakpointsContextOptions as ti, OpenStrategyContext as tn, FormContext as tr, StackContextOptions as tt, createVirtualContext as u, RegistryTicket as ua, Plugin as ui, usePrefersDark as un, createFormContext as ur, ResizeObserverEntry as ut, createTimeline as v, provideContext as vi, createLoggerPlugin as vn, createFeatures as vr, QueueOptions as vt, ThemeContextOptions as w, createOverflowContext as wi, LocalePluginOptions as wn, TokenCollection as wr, ProxyRegistryContext as wt, Colors as x, OverflowContextOptions as xi, LocaleContext as xn, useFeatures as xr, createQueue as xt, createTimelineContext as y, useContext as yi, useLogger as yn, createFeaturesContext as yr, QueueTicket as yt, StorageContextOptions as z, createBreadcrumbs as zi, UseIntersectionObserverReturn as zn, DateContext as zr, PermissionAdapterInterface as zt };
|