@uploadista/vue 0.0.20-beta.9 → 0.0.20

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.
Files changed (36) hide show
  1. package/dist/components/index.d.mts +3 -3
  2. package/dist/components/index.mjs +1 -1
  3. package/dist/components-DoBB6sqm.mjs +2 -0
  4. package/dist/components-DoBB6sqm.mjs.map +1 -0
  5. package/dist/composables/index.d.mts +1 -1
  6. package/dist/{index-DiRR_Ua6.d.mts → index-BSlqFF1H.d.mts} +2 -3
  7. package/dist/index-BSlqFF1H.d.mts.map +1 -0
  8. package/dist/{index-B2fUTjNP.d.mts → index-CDJUpsAf.d.mts} +5 -5
  9. package/dist/{index-B2fUTjNP.d.mts.map → index-CDJUpsAf.d.mts.map} +1 -1
  10. package/dist/index-CLOy812P.d.mts +1285 -0
  11. package/dist/index-CLOy812P.d.mts.map +1 -0
  12. package/dist/index.d.mts +4 -4
  13. package/dist/index.mjs +1 -1
  14. package/dist/providers/index.d.mts +1 -1
  15. package/package.json +5 -5
  16. package/src/components/index.ts +3 -0
  17. package/src/components/upload/Upload.vue +135 -0
  18. package/src/components/upload/UploadCancel.vue +24 -0
  19. package/src/components/upload/UploadClearCompleted.vue +24 -0
  20. package/src/components/upload/UploadDropZone.vue +96 -0
  21. package/src/components/upload/UploadError.vue +44 -0
  22. package/src/components/upload/UploadItem.vue +52 -0
  23. package/src/components/upload/UploadItems.vue +35 -0
  24. package/src/components/upload/UploadProgress.vue +37 -0
  25. package/src/components/upload/UploadReset.vue +22 -0
  26. package/src/components/upload/UploadRetry.vue +24 -0
  27. package/src/components/upload/UploadStartAll.vue +30 -0
  28. package/src/components/upload/UploadStatus.vue +67 -0
  29. package/src/components/upload/index.ts +102 -0
  30. package/src/components/upload/useUploadContext.ts +67 -0
  31. package/src/index.ts +67 -4
  32. package/dist/components-BxBz_7tS.mjs +0 -2
  33. package/dist/components-BxBz_7tS.mjs.map +0 -1
  34. package/dist/index-D3PNaPGh.d.mts +0 -787
  35. package/dist/index-D3PNaPGh.d.mts.map +0 -1
  36. package/dist/index-DiRR_Ua6.d.mts.map +0 -1
@@ -0,0 +1,1285 @@
1
+ import { S as UseFlowReturn, T as DragDropState, c as UploadItem, o as MultiUploadOptions, s as MultiUploadState, v as FlowInputMetadata } from "./index-BSlqFF1H.mjs";
2
+ import * as vue10 from "vue";
3
+ import { TypedOutput } from "@uploadista/core/flow";
4
+ import { UploadFile } from "@uploadista/core/types";
5
+ import { BrowserUploadInput, FlowUploadItem, UploadOptions } from "@uploadista/client-browser";
6
+ import { FlowUploadStatus } from "@uploadista/client-core";
7
+
8
+ //#region src/components/FlowUploadList.vue.d.ts
9
+
10
+ /**
11
+ * Props for the FlowUploadList component
12
+ * @property {FlowUploadItem[]} uploads - Array of flow upload items to display
13
+ * @property {Function} filter - Optional filter for which items to display
14
+ * @property {Function} sortBy - Optional sorting function for items (a, b) => number
15
+ */
16
+ interface FlowUploadListProps {
17
+ /**
18
+ * Array of flow upload items to display
19
+ */
20
+ uploads: FlowUploadItem<BrowserUploadInput>[];
21
+ /**
22
+ * Optional filter for which items to display
23
+ */
24
+ filter?: (item: FlowUploadItem<BrowserUploadInput>) => boolean;
25
+ /**
26
+ * Optional sorting function for items
27
+ */
28
+ sortBy?: (a: FlowUploadItem<BrowserUploadInput>, b: FlowUploadItem<BrowserUploadInput>) => number;
29
+ }
30
+ type __VLS_Slots$23 = {
31
+ item(props: {
32
+ item: FlowUploadItem<BrowserUploadInput>;
33
+ index: number;
34
+ isPending: boolean;
35
+ isUploading: boolean;
36
+ isSuccess: boolean;
37
+ isError: boolean;
38
+ isAborted: boolean;
39
+ formatFileSize: (bytes: number) => string;
40
+ }): any;
41
+ default?(props: {
42
+ items: FlowUploadItem<BrowserUploadInput>[];
43
+ itemsByStatus: {
44
+ pending: FlowUploadItem<BrowserUploadInput>[];
45
+ uploading: FlowUploadItem<BrowserUploadInput>[];
46
+ success: FlowUploadItem<BrowserUploadInput>[];
47
+ error: FlowUploadItem<BrowserUploadInput>[];
48
+ aborted: FlowUploadItem<BrowserUploadInput>[];
49
+ };
50
+ }): any;
51
+ };
52
+ declare const __VLS_base$23: vue10.DefineComponent<FlowUploadListProps, {}, {}, {}, {}, vue10.ComponentOptionsMixin, vue10.ComponentOptionsMixin, {}, string, vue10.PublicProps, Readonly<FlowUploadListProps> & Readonly<{}>, {}, {}, {}, {}, string, vue10.ComponentProvideOptions, false, {}, any>;
53
+ declare const __VLS_export$27: __VLS_WithSlots$26<typeof __VLS_base$23, __VLS_Slots$23>;
54
+ declare const _default: typeof __VLS_export$27;
55
+ type __VLS_WithSlots$26<T, S> = T & {
56
+ new (): {
57
+ $slots: S;
58
+ };
59
+ };
60
+ //# sourceMappingURL=FlowUploadList.vue.d.ts.map
61
+ //#endregion
62
+ //#region src/components/UploadList.vue.d.ts
63
+ /**
64
+ * Props for the UploadList component
65
+ * @property {UploadItem[]} uploads - Array of upload items to display
66
+ * @property {Function} filter - Optional filter for which items to display
67
+ * @property {Function} sortBy - Optional sorting function for items (a, b) => number
68
+ */
69
+ interface UploadListProps {
70
+ /**
71
+ * Array of upload items to display
72
+ */
73
+ uploads: UploadItem[];
74
+ /**
75
+ * Optional filter for which items to display
76
+ */
77
+ filter?: (item: UploadItem) => boolean;
78
+ /**
79
+ * Optional sorting function for items
80
+ */
81
+ sortBy?: (a: UploadItem, b: UploadItem) => number;
82
+ }
83
+ type __VLS_Slots$22 = {
84
+ item(props: {
85
+ item: UploadItem;
86
+ index: number;
87
+ isUploading: boolean;
88
+ isSuccess: boolean;
89
+ isError: boolean;
90
+ formatFileSize: (bytes: number) => string;
91
+ }): any;
92
+ default?(props: {
93
+ items: UploadItem[];
94
+ itemsByStatus: {
95
+ idle: UploadItem[];
96
+ uploading: UploadItem[];
97
+ success: UploadItem[];
98
+ error: UploadItem[];
99
+ aborted: UploadItem[];
100
+ };
101
+ }): any;
102
+ };
103
+ declare const __VLS_base$22: vue10.DefineComponent<UploadListProps, {}, {}, {}, {}, vue10.ComponentOptionsMixin, vue10.ComponentOptionsMixin, {}, string, vue10.PublicProps, Readonly<UploadListProps> & Readonly<{}>, {}, {}, {}, {}, string, vue10.ComponentProvideOptions, false, {}, any>;
104
+ declare const __VLS_export$26: __VLS_WithSlots$25<typeof __VLS_base$22, __VLS_Slots$22>;
105
+ declare const _default$1: typeof __VLS_export$26;
106
+ type __VLS_WithSlots$25<T, S> = T & {
107
+ new (): {
108
+ $slots: S;
109
+ };
110
+ };
111
+ //# sourceMappingURL=UploadList.vue.d.ts.map
112
+ //#endregion
113
+ //#region src/components/UploadZone.vue.d.ts
114
+ /**
115
+ * Props for the UploadZone component
116
+ * @property {string[]} accept - Accepted file types (MIME types or file extensions)
117
+ * @property {boolean} multiple - Whether to allow multiple files (default: true)
118
+ * @property {boolean} disabled - Whether the upload zone is disabled (default: false)
119
+ * @property {number} maxFileSize - Maximum file size in bytes
120
+ * @property {Function} validator - Custom validation function for files
121
+ * @property {MultiUploadOptions} multiUploadOptions - Multi-upload options (only used when multiple=true)
122
+ * @property {UploadOptions} uploadOptions - Single upload options (only used when multiple=false)
123
+ */
124
+ interface UploadZoneProps {
125
+ /**
126
+ * Accepted file types (MIME types or file extensions)
127
+ */
128
+ accept?: string[];
129
+ /**
130
+ * Whether to allow multiple files
131
+ */
132
+ multiple?: boolean;
133
+ /**
134
+ * Whether the upload zone is disabled
135
+ */
136
+ disabled?: boolean;
137
+ /**
138
+ * Maximum file size in bytes
139
+ */
140
+ maxFileSize?: number;
141
+ /**
142
+ * Custom validation function for files
143
+ */
144
+ validator?: (files: File[]) => string[] | null;
145
+ /**
146
+ * Multi-upload options (only used when multiple=true)
147
+ */
148
+ multiUploadOptions?: MultiUploadOptions;
149
+ /**
150
+ * Single upload options (only used when multiple=false)
151
+ */
152
+ uploadOptions?: UploadOptions;
153
+ }
154
+ type __VLS_Slots$21 = {
155
+ default(props: {
156
+ isDragging: boolean;
157
+ isOver: boolean;
158
+ isUploading: boolean;
159
+ errors: string[];
160
+ openFilePicker: () => void;
161
+ }): any;
162
+ };
163
+ declare const __VLS_base$21: vue10.DefineComponent<UploadZoneProps, {}, {}, {}, {}, vue10.ComponentOptionsMixin, vue10.ComponentOptionsMixin, {
164
+ "file-select": (files: File[]) => any;
165
+ "upload-start": (files: File[]) => any;
166
+ "validation-error": (errors: string[]) => any;
167
+ }, string, vue10.PublicProps, Readonly<UploadZoneProps> & Readonly<{
168
+ "onFile-select"?: ((files: File[]) => any) | undefined;
169
+ "onUpload-start"?: ((files: File[]) => any) | undefined;
170
+ "onValidation-error"?: ((errors: string[]) => any) | undefined;
171
+ }>, {
172
+ multiple: boolean;
173
+ disabled: boolean;
174
+ }, {}, {}, {}, string, vue10.ComponentProvideOptions, false, {}, any>;
175
+ declare const __VLS_export$25: __VLS_WithSlots$24<typeof __VLS_base$21, __VLS_Slots$21>;
176
+ declare const _default$2: typeof __VLS_export$25;
177
+ type __VLS_WithSlots$24<T, S> = T & {
178
+ new (): {
179
+ $slots: S;
180
+ };
181
+ };
182
+ //# sourceMappingURL=UploadZone.vue.d.ts.map
183
+ //#endregion
184
+ //#region src/components/flow/Flow.vue.d.ts
185
+ /**
186
+ * Props for the Flow root component.
187
+ */
188
+ interface FlowProps {
189
+ /** Flow ID to execute */
190
+ flowId: string;
191
+ /** Storage ID for file uploads */
192
+ storageId: string;
193
+ /** Optional output node ID to wait for */
194
+ outputNodeId?: string;
195
+ /** Optional metadata to include with the flow execution */
196
+ metadata?: Record<string, string>;
197
+ }
198
+ /**
199
+ * Context value provided by the Flow component root.
200
+ * Contains all flow state and actions.
201
+ */
202
+ interface FlowContextValue {
203
+ /** Current upload state */
204
+ state: UseFlowReturn["state"];
205
+ /** Discovered input nodes metadata (null until discovery completes) */
206
+ inputMetadata: UseFlowReturn["inputMetadata"];
207
+ /** Current input values set via setInput() */
208
+ inputs: UseFlowReturn["inputs"];
209
+ /** Per-input execution state for multi-input flows */
210
+ inputStates: UseFlowReturn["inputStates"];
211
+ /** Set an input value for a specific node */
212
+ setInput: UseFlowReturn["setInput"];
213
+ /** Execute the flow with current inputs */
214
+ execute: UseFlowReturn["execute"];
215
+ /** Upload a single file through the flow */
216
+ upload: UseFlowReturn["upload"];
217
+ /** Abort the current upload */
218
+ abort: UseFlowReturn["abort"];
219
+ /** Pause the current upload */
220
+ pause: UseFlowReturn["pause"];
221
+ /** Reset the upload state and clear all inputs */
222
+ reset: UseFlowReturn["reset"];
223
+ /** Whether an upload or flow execution is in progress */
224
+ isUploading: UseFlowReturn["isUploading"];
225
+ /** Whether the file is currently being uploaded */
226
+ isUploadingFile: UseFlowReturn["isUploadingFile"];
227
+ /** Whether the flow is currently processing */
228
+ isProcessing: UseFlowReturn["isProcessing"];
229
+ /** Whether the hook is discovering flow inputs */
230
+ isDiscoveringInputs: UseFlowReturn["isDiscoveringInputs"];
231
+ }
232
+ declare var __VLS_1$20: {};
233
+ type __VLS_Slots$20 = {} & {
234
+ default?: (props: typeof __VLS_1$20) => any;
235
+ };
236
+ declare const __VLS_base$20: vue10.DefineComponent<FlowProps, FlowContextValue, {}, {}, {}, vue10.ComponentOptionsMixin, vue10.ComponentOptionsMixin, {
237
+ progress: (uploadId: string, bytesUploaded: number, totalBytes: number | null) => any;
238
+ success: (outputs: TypedOutput[]) => any;
239
+ error: (error: Error) => any;
240
+ abort: () => any;
241
+ flowComplete: (outputs: TypedOutput[]) => any;
242
+ }, string, vue10.PublicProps, Readonly<FlowProps> & Readonly<{
243
+ onProgress?: ((uploadId: string, bytesUploaded: number, totalBytes: number | null) => any) | undefined;
244
+ onSuccess?: ((outputs: TypedOutput[]) => any) | undefined;
245
+ onError?: ((error: Error) => any) | undefined;
246
+ onAbort?: (() => any) | undefined;
247
+ onFlowComplete?: ((outputs: TypedOutput[]) => any) | undefined;
248
+ }>, {}, {}, {}, {}, string, vue10.ComponentProvideOptions, false, {}, any>;
249
+ declare const __VLS_export$24: __VLS_WithSlots$23<typeof __VLS_base$20, __VLS_Slots$20>;
250
+ declare const _default$15: typeof __VLS_export$24;
251
+ type __VLS_WithSlots$23<T, S> = T & {
252
+ new (): {
253
+ $slots: S;
254
+ };
255
+ };
256
+ //# sourceMappingURL=Flow.vue.d.ts.map
257
+ //#endregion
258
+ //#region src/components/flow/FlowCancel.vue.d.ts
259
+ declare const _default$16: typeof __VLS_export$23;
260
+ declare const __VLS_export$23: __VLS_WithSlots$22<vue10.DefineComponent<{}, {}, {}, {}, {}, vue10.ComponentOptionsMixin, vue10.ComponentOptionsMixin, {}, string, vue10.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue10.ComponentProvideOptions, true, {}, any>, {
261
+ default?: (props: {}) => any;
262
+ }>;
263
+ type __VLS_WithSlots$22<T, S> = T & {
264
+ new (): {
265
+ $slots: S;
266
+ };
267
+ };
268
+ //# sourceMappingURL=FlowCancel.vue.d.ts.map
269
+ //#endregion
270
+ //#region src/components/flow/FlowDropZone.vue.d.ts
271
+ /**
272
+ * Props for FlowDropZone component.
273
+ */
274
+ interface FlowDropZoneProps {
275
+ /** Accepted file types (e.g., "image/*", ".pdf") */
276
+ accept?: string;
277
+ /** Maximum file size in bytes */
278
+ maxFileSize?: number;
279
+ }
280
+ declare const inputRef$1: vue10.Ref<HTMLInputElement | null, HTMLInputElement | null>;
281
+ /**
282
+ * Slot props provided to the default slot.
283
+ */
284
+ interface FlowDropZoneSlotProps {
285
+ /** Whether files are being dragged over */
286
+ isDragging: boolean;
287
+ /** Whether drag is over the zone */
288
+ isOver: boolean;
289
+ /** Upload progress (0-100) */
290
+ progress: number;
291
+ /** Current flow status */
292
+ status: string;
293
+ /** Current drag-drop state */
294
+ dragDropState: DragDropState;
295
+ /** Open file picker programmatically */
296
+ openFilePicker: () => void;
297
+ /** Drag event handlers to spread on the container */
298
+ dragHandlers: {
299
+ onDragenter: (e: DragEvent) => void;
300
+ onDragover: (e: DragEvent) => void;
301
+ onDragleave: (e: DragEvent) => void;
302
+ onDrop: (e: DragEvent) => void;
303
+ };
304
+ /** Input props for the hidden file input */
305
+ inputProps: {
306
+ type: "file";
307
+ multiple: boolean;
308
+ accept: string | undefined;
309
+ };
310
+ /** Input change handler */
311
+ onInputChange: (e: Event) => void;
312
+ /** Ref for the file input element */
313
+ inputRef: typeof inputRef$1;
314
+ }
315
+ declare var __VLS_1$19: {
316
+ /** Whether files are being dragged over */
317
+ isDragging: boolean;
318
+ /** Whether drag is over the zone */
319
+ isOver: boolean;
320
+ /** Upload progress (0-100) */
321
+ progress: number;
322
+ /** Current flow status */
323
+ status: string;
324
+ /** Current drag-drop state */
325
+ dragDropState: DragDropState;
326
+ /** Open file picker programmatically */
327
+ openFilePicker: () => void;
328
+ /** Drag event handlers to spread on the container */
329
+ dragHandlers: {
330
+ onDragenter: (e: DragEvent) => void;
331
+ onDragover: (e: DragEvent) => void;
332
+ onDragleave: (e: DragEvent) => void;
333
+ onDrop: (e: DragEvent) => void;
334
+ };
335
+ /** Input props for the hidden file input */
336
+ inputProps: {
337
+ type: "file";
338
+ multiple: boolean;
339
+ accept: string | undefined;
340
+ };
341
+ /** Input change handler */
342
+ onInputChange: (e: Event) => void;
343
+ /** Ref for the file input element */
344
+ inputRef: typeof inputRef$1;
345
+ };
346
+ type __VLS_Slots$19 = {} & {
347
+ default?: (props: typeof __VLS_1$19) => any;
348
+ };
349
+ declare const __VLS_base$19: vue10.DefineComponent<FlowDropZoneProps, {}, {}, {}, {}, vue10.ComponentOptionsMixin, vue10.ComponentOptionsMixin, {}, string, vue10.PublicProps, Readonly<FlowDropZoneProps> & Readonly<{}>, {
350
+ accept: string;
351
+ maxFileSize: number;
352
+ }, {}, {}, {}, string, vue10.ComponentProvideOptions, false, {}, any>;
353
+ declare const __VLS_export$22: __VLS_WithSlots$21<typeof __VLS_base$19, __VLS_Slots$19>;
354
+ declare const _default$17: typeof __VLS_export$22;
355
+ type __VLS_WithSlots$21<T, S> = T & {
356
+ new (): {
357
+ $slots: S;
358
+ };
359
+ };
360
+ //# sourceMappingURL=FlowDropZone.vue.d.ts.map
361
+ //#endregion
362
+ //#region src/components/flow/FlowError.vue.d.ts
363
+ /**
364
+ * Slot props provided to the default slot.
365
+ */
366
+ interface FlowErrorSlotProps {
367
+ /** Error object (null if no error) */
368
+ error: Error | null;
369
+ /** Whether there is an error */
370
+ hasError: boolean;
371
+ /** Error message */
372
+ message: string | null;
373
+ /** Reset the flow */
374
+ reset: () => void;
375
+ }
376
+ declare var __VLS_1$18: {
377
+ /** Error object (null if no error) */
378
+ error: Error | null;
379
+ /** Whether there is an error */
380
+ hasError: boolean;
381
+ /** Error message */
382
+ message: string | null;
383
+ /** Reset the flow */
384
+ reset: () => void;
385
+ };
386
+ type __VLS_Slots$18 = {} & {
387
+ default?: (props: typeof __VLS_1$18) => any;
388
+ };
389
+ declare const __VLS_base$18: vue10.DefineComponent<{}, {}, {}, {}, {}, vue10.ComponentOptionsMixin, vue10.ComponentOptionsMixin, {}, string, vue10.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue10.ComponentProvideOptions, true, {}, any>;
390
+ declare const __VLS_export$21: __VLS_WithSlots$20<typeof __VLS_base$18, __VLS_Slots$18>;
391
+ declare const _default$18: typeof __VLS_export$21;
392
+ type __VLS_WithSlots$20<T, S> = T & {
393
+ new (): {
394
+ $slots: S;
395
+ };
396
+ };
397
+ //# sourceMappingURL=FlowError.vue.d.ts.map
398
+ //#endregion
399
+ //#region src/components/flow/useFlowContext.d.ts
400
+ /**
401
+ * Injection key for the Flow context
402
+ */
403
+ declare const FLOW_CONTEXT_KEY = "flowContext";
404
+ /**
405
+ * Injection key for the FlowInput context
406
+ */
407
+ declare const FLOW_INPUT_CONTEXT_KEY = "flowInputContext";
408
+ /**
409
+ * Context value for a specific input node within a Flow.
410
+ */
411
+ interface FlowInputContextValue {
412
+ /** Input node ID */
413
+ nodeId: string;
414
+ /** Input metadata from flow discovery */
415
+ metadata: {
416
+ nodeId: string;
417
+ nodeName: string;
418
+ nodeDescription: string;
419
+ inputTypeId?: string;
420
+ required: boolean;
421
+ };
422
+ /** Current value for this input */
423
+ value: unknown;
424
+ /** Set the value for this input */
425
+ setValue: (value: unknown) => void;
426
+ /** Per-input execution state (if available) */
427
+ state: {
428
+ status: string;
429
+ progress: number;
430
+ error: Error | null;
431
+ } | undefined;
432
+ }
433
+ /**
434
+ * Hook to access flow context from within a Flow component.
435
+ * @throws Error if used outside of a Flow component
436
+ */
437
+ declare function useFlowContext(): FlowContextValue;
438
+ /**
439
+ * Hook to access flow input context from within a FlowInput component.
440
+ * @throws Error if used outside of a FlowInput component
441
+ */
442
+ declare function useFlowInputContext(): FlowInputContextValue;
443
+ //#endregion
444
+ //#region src/components/flow/FlowInput.vue.d.ts
445
+ /**
446
+ * Props for FlowInput component.
447
+ */
448
+ interface FlowInputProps {
449
+ /** Input node ID */
450
+ nodeId: string;
451
+ }
452
+ /**
453
+ * Slot props provided to the default slot.
454
+ */
455
+ interface FlowInputSlotProps {
456
+ /** Input node ID */
457
+ nodeId: string;
458
+ /** Input metadata from flow discovery */
459
+ metadata: FlowInputContextValue["metadata"] | undefined;
460
+ /** Current value for this input */
461
+ value: unknown;
462
+ /** Set the value for this input */
463
+ setValue: (value: unknown) => void;
464
+ /** Per-input execution state (if available) */
465
+ state: FlowInputContextValue["state"];
466
+ }
467
+ declare var __VLS_1$17: {
468
+ /** Input node ID */
469
+ nodeId: string;
470
+ /** Input metadata from flow discovery */
471
+ metadata: FlowInputContextValue["metadata"] | undefined;
472
+ /** Current value for this input */
473
+ value: unknown;
474
+ /** Set the value for this input */
475
+ setValue: (value: unknown) => void;
476
+ /** Per-input execution state (if available) */
477
+ state: FlowInputContextValue["state"];
478
+ };
479
+ type __VLS_Slots$17 = {} & {
480
+ default?: (props: typeof __VLS_1$17) => any;
481
+ };
482
+ declare const __VLS_base$17: vue10.DefineComponent<FlowInputProps, {}, {}, {}, {}, vue10.ComponentOptionsMixin, vue10.ComponentOptionsMixin, {}, string, vue10.PublicProps, Readonly<FlowInputProps> & Readonly<{}>, {}, {}, {}, {}, string, vue10.ComponentProvideOptions, false, {}, any>;
483
+ declare const __VLS_export$20: __VLS_WithSlots$19<typeof __VLS_base$17, __VLS_Slots$17>;
484
+ declare const _default$19: typeof __VLS_export$20;
485
+ type __VLS_WithSlots$19<T, S> = T & {
486
+ new (): {
487
+ $slots: S;
488
+ };
489
+ };
490
+ //# sourceMappingURL=FlowInput.vue.d.ts.map
491
+ //#endregion
492
+ //#region src/components/flow/FlowInputDropZone.vue.d.ts
493
+ /**
494
+ * Props for FlowInputDropZone component.
495
+ */
496
+ interface FlowInputDropZoneProps {
497
+ /** Accepted file types (e.g., "image/*", ".pdf") */
498
+ accept?: string;
499
+ /** Maximum file size in bytes */
500
+ maxFileSize?: number;
501
+ }
502
+ declare const inputRef: vue10.Ref<HTMLInputElement | null, HTMLInputElement | null>;
503
+ /**
504
+ * Slot props provided to the default slot.
505
+ */
506
+ interface FlowInputDropZoneSlotProps {
507
+ /** Whether files are being dragged over */
508
+ isDragging: boolean;
509
+ /** Whether drag is over the zone */
510
+ isOver: boolean;
511
+ /** Current value for this input */
512
+ value: unknown;
513
+ /** Per-input progress (if available) */
514
+ progress: number;
515
+ /** Per-input status (if available) */
516
+ status: string;
517
+ /** Current drag-drop state */
518
+ dragDropState: DragDropState;
519
+ /** Open file picker programmatically */
520
+ openFilePicker: () => void;
521
+ /** Drag event handlers to spread on the container */
522
+ dragHandlers: {
523
+ onDragenter: (e: DragEvent) => void;
524
+ onDragover: (e: DragEvent) => void;
525
+ onDragleave: (e: DragEvent) => void;
526
+ onDrop: (e: DragEvent) => void;
527
+ };
528
+ /** Input props for the hidden file input */
529
+ inputProps: {
530
+ type: "file";
531
+ multiple: boolean;
532
+ accept: string | undefined;
533
+ };
534
+ /** Input change handler */
535
+ onInputChange: (e: Event) => void;
536
+ /** Ref for the file input element */
537
+ inputRef: typeof inputRef;
538
+ }
539
+ declare var __VLS_1$16: {
540
+ /** Whether files are being dragged over */
541
+ isDragging: boolean;
542
+ /** Whether drag is over the zone */
543
+ isOver: boolean;
544
+ /** Current value for this input */
545
+ value: unknown;
546
+ /** Per-input progress (if available) */
547
+ progress: number;
548
+ /** Per-input status (if available) */
549
+ status: string;
550
+ /** Current drag-drop state */
551
+ dragDropState: DragDropState;
552
+ /** Open file picker programmatically */
553
+ openFilePicker: () => void;
554
+ /** Drag event handlers to spread on the container */
555
+ dragHandlers: {
556
+ onDragenter: (e: DragEvent) => void;
557
+ onDragover: (e: DragEvent) => void;
558
+ onDragleave: (e: DragEvent) => void;
559
+ onDrop: (e: DragEvent) => void;
560
+ };
561
+ /** Input props for the hidden file input */
562
+ inputProps: {
563
+ type: "file";
564
+ multiple: boolean;
565
+ accept: string | undefined;
566
+ };
567
+ /** Input change handler */
568
+ onInputChange: (e: Event) => void;
569
+ /** Ref for the file input element */
570
+ inputRef: typeof inputRef;
571
+ };
572
+ type __VLS_Slots$16 = {} & {
573
+ default?: (props: typeof __VLS_1$16) => any;
574
+ };
575
+ declare const __VLS_base$16: vue10.DefineComponent<FlowInputDropZoneProps, {}, {}, {}, {}, vue10.ComponentOptionsMixin, vue10.ComponentOptionsMixin, {}, string, vue10.PublicProps, Readonly<FlowInputDropZoneProps> & Readonly<{}>, {
576
+ accept: string;
577
+ maxFileSize: number;
578
+ }, {}, {}, {}, string, vue10.ComponentProvideOptions, false, {}, any>;
579
+ declare const __VLS_export$19: __VLS_WithSlots$18<typeof __VLS_base$16, __VLS_Slots$16>;
580
+ declare const _default$20: typeof __VLS_export$19;
581
+ type __VLS_WithSlots$18<T, S> = T & {
582
+ new (): {
583
+ $slots: S;
584
+ };
585
+ };
586
+ //# sourceMappingURL=FlowInputDropZone.vue.d.ts.map
587
+ //#endregion
588
+ //#region src/components/flow/FlowInputPreview.vue.d.ts
589
+ /**
590
+ * Slot props provided to the default slot.
591
+ */
592
+ interface FlowInputPreviewSlotProps {
593
+ /** Current value */
594
+ value: unknown;
595
+ /** Whether value is a File */
596
+ isFile: boolean;
597
+ /** Whether value is a URL string */
598
+ isUrl: boolean;
599
+ /** File name (if value is File) */
600
+ fileName: string | null;
601
+ /** File size in bytes (if value is File) */
602
+ fileSize: number | null;
603
+ /** Clear the input value */
604
+ clear: () => void;
605
+ }
606
+ declare var __VLS_1$15: {
607
+ /** Current value */
608
+ value: unknown;
609
+ /** Whether value is a File */
610
+ isFile: boolean;
611
+ /** Whether value is a URL string */
612
+ isUrl: boolean;
613
+ /** File name (if value is File) */
614
+ fileName: string | null;
615
+ /** File size in bytes (if value is File) */
616
+ fileSize: number | null;
617
+ /** Clear the input value */
618
+ clear: () => void;
619
+ };
620
+ type __VLS_Slots$15 = {} & {
621
+ default?: (props: typeof __VLS_1$15) => any;
622
+ };
623
+ declare const __VLS_base$15: vue10.DefineComponent<{}, {}, {}, {}, {}, vue10.ComponentOptionsMixin, vue10.ComponentOptionsMixin, {}, string, vue10.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue10.ComponentProvideOptions, true, {}, any>;
624
+ declare const __VLS_export$18: __VLS_WithSlots$17<typeof __VLS_base$15, __VLS_Slots$15>;
625
+ declare const _default$21: typeof __VLS_export$18;
626
+ type __VLS_WithSlots$17<T, S> = T & {
627
+ new (): {
628
+ $slots: S;
629
+ };
630
+ };
631
+ //# sourceMappingURL=FlowInputPreview.vue.d.ts.map
632
+ //#endregion
633
+ //#region src/components/flow/FlowInputs.vue.d.ts
634
+ /**
635
+ * Slot props provided to the default slot.
636
+ */
637
+ interface FlowInputsSlotProps {
638
+ /** Discovered input metadata */
639
+ inputs: FlowInputMetadata[];
640
+ /** Whether inputs are still being discovered */
641
+ isLoading: boolean;
642
+ }
643
+ declare var __VLS_1$14: {
644
+ /** Discovered input metadata */
645
+ inputs: FlowInputMetadata[];
646
+ /** Whether inputs are still being discovered */
647
+ isLoading: boolean;
648
+ };
649
+ type __VLS_Slots$14 = {} & {
650
+ default?: (props: typeof __VLS_1$14) => any;
651
+ };
652
+ declare const __VLS_base$14: vue10.DefineComponent<{}, {}, {}, {}, {}, vue10.ComponentOptionsMixin, vue10.ComponentOptionsMixin, {}, string, vue10.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue10.ComponentProvideOptions, true, {}, any>;
653
+ declare const __VLS_export$17: __VLS_WithSlots$16<typeof __VLS_base$14, __VLS_Slots$14>;
654
+ declare const _default$22: typeof __VLS_export$17;
655
+ type __VLS_WithSlots$16<T, S> = T & {
656
+ new (): {
657
+ $slots: S;
658
+ };
659
+ };
660
+ //# sourceMappingURL=FlowInputs.vue.d.ts.map
661
+ //#endregion
662
+ //#region src/components/flow/FlowInputUrlField.vue.d.ts
663
+ /**
664
+ * Props for FlowInputUrlField component.
665
+ */
666
+ interface FlowInputUrlFieldProps {
667
+ /** Placeholder text */
668
+ placeholder?: string;
669
+ }
670
+ declare const _default$23: typeof __VLS_export$16;
671
+ declare const __VLS_export$16: vue10.DefineComponent<FlowInputUrlFieldProps, {}, {}, {}, {}, vue10.ComponentOptionsMixin, vue10.ComponentOptionsMixin, {}, string, vue10.PublicProps, Readonly<FlowInputUrlFieldProps> & Readonly<{}>, {
672
+ placeholder: string;
673
+ }, {}, {}, {}, string, vue10.ComponentProvideOptions, false, {}, any>;
674
+ //# sourceMappingURL=FlowInputUrlField.vue.d.ts.map
675
+ //#endregion
676
+ //#region src/components/flow/FlowProgress.vue.d.ts
677
+ /**
678
+ * Slot props provided to the default slot.
679
+ */
680
+ interface FlowProgressSlotProps {
681
+ /** Progress percentage (0-100) */
682
+ progress: number;
683
+ /** Bytes uploaded so far */
684
+ bytesUploaded: number;
685
+ /** Total bytes to upload (null if unknown) */
686
+ totalBytes: number | null;
687
+ /** Current status */
688
+ status: FlowUploadStatus;
689
+ }
690
+ declare var __VLS_1$13: {
691
+ /** Progress percentage (0-100) */
692
+ progress: number;
693
+ /** Bytes uploaded so far */
694
+ bytesUploaded: number;
695
+ /** Total bytes to upload (null if unknown) */
696
+ totalBytes: number | null;
697
+ /** Current status */
698
+ status: FlowUploadStatus;
699
+ };
700
+ type __VLS_Slots$13 = {} & {
701
+ default?: (props: typeof __VLS_1$13) => any;
702
+ };
703
+ declare const __VLS_base$13: vue10.DefineComponent<{}, {}, {}, {}, {}, vue10.ComponentOptionsMixin, vue10.ComponentOptionsMixin, {}, string, vue10.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue10.ComponentProvideOptions, true, {}, any>;
704
+ declare const __VLS_export$15: __VLS_WithSlots$15<typeof __VLS_base$13, __VLS_Slots$13>;
705
+ declare const _default$24: typeof __VLS_export$15;
706
+ type __VLS_WithSlots$15<T, S> = T & {
707
+ new (): {
708
+ $slots: S;
709
+ };
710
+ };
711
+ //# sourceMappingURL=FlowProgress.vue.d.ts.map
712
+ //#endregion
713
+ //#region src/components/flow/FlowReset.vue.d.ts
714
+ declare const _default$25: typeof __VLS_export$14;
715
+ declare const __VLS_export$14: __VLS_WithSlots$14<vue10.DefineComponent<{}, {}, {}, {}, {}, vue10.ComponentOptionsMixin, vue10.ComponentOptionsMixin, {}, string, vue10.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue10.ComponentProvideOptions, true, {}, any>, {
716
+ default?: (props: {}) => any;
717
+ }>;
718
+ type __VLS_WithSlots$14<T, S> = T & {
719
+ new (): {
720
+ $slots: S;
721
+ };
722
+ };
723
+ //# sourceMappingURL=FlowReset.vue.d.ts.map
724
+ //#endregion
725
+ //#region src/components/flow/FlowStatus.vue.d.ts
726
+ /**
727
+ * Slot props provided to the default slot.
728
+ */
729
+ interface FlowStatusSlotProps {
730
+ /** Current status */
731
+ status: FlowUploadStatus;
732
+ /** Current node being processed (if any) */
733
+ currentNodeName: string | null;
734
+ /** Current node type (if any) */
735
+ currentNodeType: string | null;
736
+ /** Error (if status is error) */
737
+ error: Error | null;
738
+ /** Job ID (if started) */
739
+ jobId: string | null;
740
+ /** Whether flow has started */
741
+ flowStarted: boolean;
742
+ /** Flow outputs (if completed) */
743
+ flowOutputs: TypedOutput[] | null;
744
+ }
745
+ declare var __VLS_1$12: {
746
+ /** Current status */
747
+ status: FlowUploadStatus;
748
+ /** Current node being processed (if any) */
749
+ currentNodeName: string | null;
750
+ /** Current node type (if any) */
751
+ currentNodeType: string | null;
752
+ /** Error (if status is error) */
753
+ error: Error | null;
754
+ /** Job ID (if started) */
755
+ jobId: string | null;
756
+ /** Whether flow has started */
757
+ flowStarted: boolean;
758
+ /** Flow outputs (if completed) */
759
+ flowOutputs: TypedOutput[] | null;
760
+ };
761
+ type __VLS_Slots$12 = {} & {
762
+ default?: (props: typeof __VLS_1$12) => any;
763
+ };
764
+ declare const __VLS_base$12: vue10.DefineComponent<{}, {}, {}, {}, {}, vue10.ComponentOptionsMixin, vue10.ComponentOptionsMixin, {}, string, vue10.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue10.ComponentProvideOptions, true, {}, any>;
765
+ declare const __VLS_export$13: __VLS_WithSlots$13<typeof __VLS_base$12, __VLS_Slots$12>;
766
+ declare const _default$26: typeof __VLS_export$13;
767
+ type __VLS_WithSlots$13<T, S> = T & {
768
+ new (): {
769
+ $slots: S;
770
+ };
771
+ };
772
+ //# sourceMappingURL=FlowStatus.vue.d.ts.map
773
+ //#endregion
774
+ //#region src/components/flow/FlowSubmit.vue.d.ts
775
+ declare const _default$27: typeof __VLS_export$12;
776
+ declare const __VLS_export$12: __VLS_WithSlots$12<vue10.DefineComponent<{}, {}, {}, {}, {}, vue10.ComponentOptionsMixin, vue10.ComponentOptionsMixin, {}, string, vue10.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue10.ComponentProvideOptions, true, {}, any>, {
777
+ default?: (props: {}) => any;
778
+ }>;
779
+ type __VLS_WithSlots$12<T, S> = T & {
780
+ new (): {
781
+ $slots: S;
782
+ };
783
+ };
784
+ //# sourceMappingURL=FlowSubmit.vue.d.ts.map
785
+ //#endregion
786
+ //#region src/components/upload/Upload.vue.d.ts
787
+ /**
788
+ * Props for the Upload root component.
789
+ */
790
+ interface UploadProps {
791
+ /** Whether to allow multiple file uploads (default: false) */
792
+ multiple?: boolean;
793
+ /** Maximum concurrent uploads (default: 3, only used in multi mode) */
794
+ maxConcurrent?: number;
795
+ /** Whether to auto-start uploads when files are received (default: true) */
796
+ autoStart?: boolean;
797
+ /** Metadata to attach to uploads */
798
+ metadata?: Record<string, string>;
799
+ }
800
+ /**
801
+ * Context value provided by the Upload component root.
802
+ * Contains all upload state and actions.
803
+ */
804
+ interface UploadContextValue {
805
+ /** Whether in multi-file mode */
806
+ mode: "single" | "multi";
807
+ /** Current multi-upload state (aggregate) */
808
+ state: MultiUploadState;
809
+ /** All upload items */
810
+ items: readonly UploadItem[];
811
+ /** Whether auto-start is enabled */
812
+ autoStart: boolean;
813
+ /** Add files to the upload queue */
814
+ addFiles: (files: File[]) => void;
815
+ /** Remove an item from the queue */
816
+ removeItem: (id: string) => void;
817
+ /** Start all pending uploads */
818
+ startAll: () => void;
819
+ /** Abort a specific upload by ID */
820
+ abortUpload: (id: string) => void;
821
+ /** Abort all active uploads */
822
+ abortAll: () => void;
823
+ /** Retry a specific failed upload by ID */
824
+ retryUpload: (id: string) => void;
825
+ /** Retry all failed uploads */
826
+ retryFailed: () => void;
827
+ /** Clear all completed uploads */
828
+ clearCompleted: () => void;
829
+ /** Clear all items and reset state */
830
+ clearAll: () => void;
831
+ /** Internal handler for files received from drop zone */
832
+ handleFilesReceived: (files: File[]) => void;
833
+ }
834
+ declare var __VLS_1$11: {};
835
+ type __VLS_Slots$11 = {} & {
836
+ default?: (props: typeof __VLS_1$11) => any;
837
+ };
838
+ declare const __VLS_base$11: vue10.DefineComponent<UploadProps, vue10.ComputedRef<UploadContextValue>, {}, {}, {}, vue10.ComponentOptionsMixin, vue10.ComponentOptionsMixin, {
839
+ progress: (item: UploadItem, progress: number, bytesUploaded: number, totalBytes: number | null) => any;
840
+ success: (result: UploadFile) => any;
841
+ error: (error: Error, item?: UploadItem | undefined) => any;
842
+ complete: (results: {
843
+ successful: UploadItem[];
844
+ failed: UploadItem[];
845
+ total: number;
846
+ }) => any;
847
+ uploadStart: (item: UploadItem) => any;
848
+ }, string, vue10.PublicProps, Readonly<UploadProps> & Readonly<{
849
+ onProgress?: ((item: UploadItem, progress: number, bytesUploaded: number, totalBytes: number | null) => any) | undefined;
850
+ onSuccess?: ((result: UploadFile) => any) | undefined;
851
+ onError?: ((error: Error, item?: UploadItem | undefined) => any) | undefined;
852
+ onComplete?: ((results: {
853
+ successful: UploadItem[];
854
+ failed: UploadItem[];
855
+ total: number;
856
+ }) => any) | undefined;
857
+ onUploadStart?: ((item: UploadItem) => any) | undefined;
858
+ }>, {
859
+ multiple: boolean;
860
+ maxConcurrent: number;
861
+ autoStart: boolean;
862
+ }, {}, {}, {}, string, vue10.ComponentProvideOptions, false, {}, any>;
863
+ declare const __VLS_export$11: __VLS_WithSlots$11<typeof __VLS_base$11, __VLS_Slots$11>;
864
+ declare const _default$3: typeof __VLS_export$11;
865
+ type __VLS_WithSlots$11<T, S> = T & {
866
+ new (): {
867
+ $slots: S;
868
+ };
869
+ };
870
+ //# sourceMappingURL=Upload.vue.d.ts.map
871
+ //#endregion
872
+ //#region src/components/upload/UploadDropZone.vue.d.ts
873
+ /**
874
+ * Props for UploadDropZone component.
875
+ */
876
+ interface UploadDropZoneProps {
877
+ /** Accepted file types (e.g., "image/*", ".pdf") */
878
+ accept?: string;
879
+ /** Maximum file size in bytes */
880
+ maxFileSize?: number;
881
+ /** Maximum number of files (only in multi mode) */
882
+ maxFiles?: number;
883
+ }
884
+ /**
885
+ * Slot props for UploadDropZone component.
886
+ */
887
+ interface UploadDropZoneSlotProps {
888
+ /** Whether files are being dragged over */
889
+ isDragging: boolean;
890
+ /** Whether drag is over the zone */
891
+ isOver: boolean;
892
+ /** Validation errors */
893
+ errors: readonly string[];
894
+ /** Drag event handlers to bind to the drop zone element */
895
+ dragHandlers: {
896
+ onDragenter: (event: DragEvent) => void;
897
+ onDragover: (event: DragEvent) => void;
898
+ onDragleave: (event: DragEvent) => void;
899
+ onDrop: (event: DragEvent) => void;
900
+ };
901
+ /** Input props for the hidden file input */
902
+ inputProps: {
903
+ type: "file";
904
+ multiple: boolean;
905
+ accept: string | undefined;
906
+ };
907
+ /** Handler for input change event */
908
+ onInputChange: (event: Event) => void;
909
+ /** Open file picker programmatically */
910
+ openFilePicker: () => void;
911
+ /** Current drag-drop state */
912
+ dragDropState: DragDropState;
913
+ }
914
+ declare var __VLS_1$10: {
915
+ /** Whether files are being dragged over */
916
+ isDragging: boolean;
917
+ /** Whether drag is over the zone */
918
+ isOver: boolean;
919
+ /** Validation errors */
920
+ errors: readonly string[];
921
+ /** Drag event handlers to bind to the drop zone element */
922
+ dragHandlers: {
923
+ onDragenter: (event: DragEvent) => void;
924
+ onDragover: (event: DragEvent) => void;
925
+ onDragleave: (event: DragEvent) => void;
926
+ onDrop: (event: DragEvent) => void;
927
+ };
928
+ /** Input props for the hidden file input */
929
+ inputProps: {
930
+ type: "file";
931
+ multiple: boolean;
932
+ accept: string | undefined;
933
+ };
934
+ /** Handler for input change event */
935
+ onInputChange: (event: Event) => void;
936
+ /** Open file picker programmatically */
937
+ openFilePicker: () => void;
938
+ /** Current drag-drop state */
939
+ dragDropState: DragDropState;
940
+ };
941
+ type __VLS_Slots$10 = {} & {
942
+ default?: (props: typeof __VLS_1$10) => any;
943
+ };
944
+ declare const __VLS_base$10: vue10.DefineComponent<UploadDropZoneProps, {
945
+ inputRef: vue10.Ref<HTMLInputElement | undefined, HTMLInputElement | undefined>;
946
+ }, {}, {}, {}, vue10.ComponentOptionsMixin, vue10.ComponentOptionsMixin, {}, string, vue10.PublicProps, Readonly<UploadDropZoneProps> & Readonly<{}>, {}, {}, {}, {}, string, vue10.ComponentProvideOptions, false, {}, any>;
947
+ declare const __VLS_export$10: __VLS_WithSlots$10<typeof __VLS_base$10, __VLS_Slots$10>;
948
+ declare const _default$4: typeof __VLS_export$10;
949
+ type __VLS_WithSlots$10<T, S> = T & {
950
+ new (): {
951
+ $slots: S;
952
+ };
953
+ };
954
+ //# sourceMappingURL=UploadDropZone.vue.d.ts.map
955
+ //#endregion
956
+ //#region src/components/upload/UploadItems.vue.d.ts
957
+ /**
958
+ * Slot props for UploadItems component.
959
+ */
960
+ interface UploadItemsSlotProps {
961
+ /** All upload items */
962
+ items: readonly UploadItem[];
963
+ /** Whether there are any items */
964
+ hasItems: boolean;
965
+ /** Whether items array is empty */
966
+ isEmpty: boolean;
967
+ }
968
+ declare var __VLS_1$9: {
969
+ /** All upload items */
970
+ items: readonly UploadItem[];
971
+ /** Whether there are any items */
972
+ hasItems: boolean;
973
+ /** Whether items array is empty */
974
+ isEmpty: boolean;
975
+ };
976
+ type __VLS_Slots$9 = {} & {
977
+ default?: (props: typeof __VLS_1$9) => any;
978
+ };
979
+ declare const __VLS_base$9: vue10.DefineComponent<{}, {}, {}, {}, {}, vue10.ComponentOptionsMixin, vue10.ComponentOptionsMixin, {}, string, vue10.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue10.ComponentProvideOptions, true, {}, any>;
980
+ declare const __VLS_export$9: __VLS_WithSlots$9<typeof __VLS_base$9, __VLS_Slots$9>;
981
+ declare const _default$5: typeof __VLS_export$9;
982
+ type __VLS_WithSlots$9<T, S> = T & {
983
+ new (): {
984
+ $slots: S;
985
+ };
986
+ };
987
+ //# sourceMappingURL=UploadItems.vue.d.ts.map
988
+ //#endregion
989
+ //#region src/components/upload/useUploadContext.d.ts
990
+ /**
991
+ * Injection key for the Upload context
992
+ */
993
+ declare const UPLOAD_CONTEXT_KEY = "uploadContext";
994
+ /**
995
+ * Injection key for the UploadItem context
996
+ */
997
+ declare const UPLOAD_ITEM_CONTEXT_KEY = "uploadItemContext";
998
+ /**
999
+ * Context value for a specific upload item within an Upload.
1000
+ */
1001
+ interface UploadItemContextValue {
1002
+ /** Item ID */
1003
+ id: string;
1004
+ /** The file being uploaded */
1005
+ file: File | Blob;
1006
+ /** Current upload state */
1007
+ state: {
1008
+ status: string;
1009
+ progress: number;
1010
+ bytesUploaded: number;
1011
+ totalBytes: number | null;
1012
+ error: Error | null;
1013
+ result: unknown;
1014
+ };
1015
+ /** Abort this upload */
1016
+ abort: () => void;
1017
+ /** Retry this upload */
1018
+ retry: () => void;
1019
+ /** Remove this item from the queue */
1020
+ remove: () => void;
1021
+ }
1022
+ /**
1023
+ * Composable to access upload context from within an Upload component.
1024
+ * @throws Error if used outside of an Upload component
1025
+ */
1026
+ declare function useUploadContext(): UploadContextValue;
1027
+ /**
1028
+ * Composable to access upload item context from within an UploadItem component.
1029
+ * @throws Error if used outside of an UploadItem component
1030
+ */
1031
+ declare function useUploadItemContext(): UploadItemContextValue;
1032
+ //#endregion
1033
+ //#region src/components/upload/UploadItem.vue.d.ts
1034
+ /**
1035
+ * Props for UploadItem component.
1036
+ */
1037
+ interface UploadItemProps {
1038
+ /** Item ID */
1039
+ id: string;
1040
+ }
1041
+ /**
1042
+ * Slot props for UploadItem component.
1043
+ */
1044
+ interface UploadItemSlotProps extends UploadItemContextValue {}
1045
+ declare var __VLS_1$8: {
1046
+ id: string;
1047
+ file: File | Blob;
1048
+ state: {
1049
+ status: string;
1050
+ progress: number;
1051
+ bytesUploaded: number;
1052
+ totalBytes: number | null;
1053
+ error: Error | null;
1054
+ result: unknown;
1055
+ };
1056
+ abort: () => void;
1057
+ retry: () => void;
1058
+ remove: () => void;
1059
+ };
1060
+ type __VLS_Slots$8 = {} & {
1061
+ default?: (props: typeof __VLS_1$8) => any;
1062
+ };
1063
+ declare const __VLS_base$8: vue10.DefineComponent<UploadItemProps, {}, {}, {}, {}, vue10.ComponentOptionsMixin, vue10.ComponentOptionsMixin, {}, string, vue10.PublicProps, Readonly<UploadItemProps> & Readonly<{}>, {}, {}, {}, {}, string, vue10.ComponentProvideOptions, false, {}, any>;
1064
+ declare const __VLS_export$8: __VLS_WithSlots$8<typeof __VLS_base$8, __VLS_Slots$8>;
1065
+ declare const _default$6: typeof __VLS_export$8;
1066
+ type __VLS_WithSlots$8<T, S> = T & {
1067
+ new (): {
1068
+ $slots: S;
1069
+ };
1070
+ };
1071
+ //# sourceMappingURL=UploadItem.vue.d.ts.map
1072
+ //#endregion
1073
+ //#region src/components/upload/UploadProgress.vue.d.ts
1074
+ /**
1075
+ * Slot props for UploadProgress component.
1076
+ */
1077
+ interface UploadProgressSlotProps {
1078
+ /** Progress percentage (0-100) */
1079
+ progress: number;
1080
+ /** Bytes uploaded so far */
1081
+ bytesUploaded: number;
1082
+ /** Total bytes to upload */
1083
+ totalBytes: number;
1084
+ /** Whether any uploads are active */
1085
+ isUploading: boolean;
1086
+ }
1087
+ declare var __VLS_1$7: {
1088
+ /** Progress percentage (0-100) */
1089
+ progress: number;
1090
+ /** Bytes uploaded so far */
1091
+ bytesUploaded: number;
1092
+ /** Total bytes to upload */
1093
+ totalBytes: number;
1094
+ /** Whether any uploads are active */
1095
+ isUploading: boolean;
1096
+ };
1097
+ type __VLS_Slots$7 = {} & {
1098
+ default?: (props: typeof __VLS_1$7) => any;
1099
+ };
1100
+ declare const __VLS_base$7: vue10.DefineComponent<{}, {}, {}, {}, {}, vue10.ComponentOptionsMixin, vue10.ComponentOptionsMixin, {}, string, vue10.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue10.ComponentProvideOptions, true, {}, any>;
1101
+ declare const __VLS_export$7: __VLS_WithSlots$7<typeof __VLS_base$7, __VLS_Slots$7>;
1102
+ declare const _default$7: typeof __VLS_export$7;
1103
+ type __VLS_WithSlots$7<T, S> = T & {
1104
+ new (): {
1105
+ $slots: S;
1106
+ };
1107
+ };
1108
+ //# sourceMappingURL=UploadProgress.vue.d.ts.map
1109
+ //#endregion
1110
+ //#region src/components/upload/UploadStatus.vue.d.ts
1111
+ /**
1112
+ * Slot props for UploadStatus component.
1113
+ */
1114
+ interface UploadStatusSlotProps {
1115
+ /** Overall status */
1116
+ status: "idle" | "uploading" | "success" | "error";
1117
+ /** Whether idle (no uploads active or completed) */
1118
+ isIdle: boolean;
1119
+ /** Whether uploading */
1120
+ isUploading: boolean;
1121
+ /** Whether all uploads succeeded */
1122
+ isSuccess: boolean;
1123
+ /** Whether any upload failed */
1124
+ isError: boolean;
1125
+ /** Whether all uploads completed (success or failure) */
1126
+ isComplete: boolean;
1127
+ /** Number of total items */
1128
+ total: number;
1129
+ /** Number of successful uploads */
1130
+ successful: number;
1131
+ /** Number of failed uploads */
1132
+ failed: number;
1133
+ /** Number of currently uploading */
1134
+ uploading: number;
1135
+ }
1136
+ declare var __VLS_1$6: {
1137
+ /** Overall status */
1138
+ status: "idle" | "uploading" | "success" | "error";
1139
+ /** Whether idle (no uploads active or completed) */
1140
+ isIdle: boolean;
1141
+ /** Whether uploading */
1142
+ isUploading: boolean;
1143
+ /** Whether all uploads succeeded */
1144
+ isSuccess: boolean;
1145
+ /** Whether any upload failed */
1146
+ isError: boolean;
1147
+ /** Whether all uploads completed (success or failure) */
1148
+ isComplete: boolean;
1149
+ /** Number of total items */
1150
+ total: number;
1151
+ /** Number of successful uploads */
1152
+ successful: number;
1153
+ /** Number of failed uploads */
1154
+ failed: number;
1155
+ /** Number of currently uploading */
1156
+ uploading: number;
1157
+ };
1158
+ type __VLS_Slots$6 = {} & {
1159
+ default?: (props: typeof __VLS_1$6) => any;
1160
+ };
1161
+ declare const __VLS_base$6: vue10.DefineComponent<{}, {}, {}, {}, {}, vue10.ComponentOptionsMixin, vue10.ComponentOptionsMixin, {}, string, vue10.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue10.ComponentProvideOptions, true, {}, any>;
1162
+ declare const __VLS_export$6: __VLS_WithSlots$6<typeof __VLS_base$6, __VLS_Slots$6>;
1163
+ declare const _default$8: typeof __VLS_export$6;
1164
+ type __VLS_WithSlots$6<T, S> = T & {
1165
+ new (): {
1166
+ $slots: S;
1167
+ };
1168
+ };
1169
+ //# sourceMappingURL=UploadStatus.vue.d.ts.map
1170
+ //#endregion
1171
+ //#region src/components/upload/UploadError.vue.d.ts
1172
+ /**
1173
+ * Slot props for UploadError component.
1174
+ */
1175
+ interface UploadErrorSlotProps {
1176
+ /** Whether there are any errors */
1177
+ hasError: boolean;
1178
+ /** Number of failed uploads */
1179
+ failedCount: number;
1180
+ /** Failed items */
1181
+ failedItems: readonly UploadItem[];
1182
+ /** Reset/clear all errors */
1183
+ reset: () => void;
1184
+ }
1185
+ declare var __VLS_1$5: {
1186
+ /** Whether there are any errors */
1187
+ hasError: boolean;
1188
+ /** Number of failed uploads */
1189
+ failedCount: number;
1190
+ /** Failed items */
1191
+ failedItems: readonly UploadItem[];
1192
+ /** Reset/clear all errors */
1193
+ reset: () => void;
1194
+ };
1195
+ type __VLS_Slots$5 = {} & {
1196
+ default?: (props: typeof __VLS_1$5) => any;
1197
+ };
1198
+ declare const __VLS_base$5: vue10.DefineComponent<{}, {}, {}, {}, {}, vue10.ComponentOptionsMixin, vue10.ComponentOptionsMixin, {}, string, vue10.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue10.ComponentProvideOptions, true, {}, any>;
1199
+ declare const __VLS_export$5: __VLS_WithSlots$5<typeof __VLS_base$5, __VLS_Slots$5>;
1200
+ declare const _default$9: typeof __VLS_export$5;
1201
+ type __VLS_WithSlots$5<T, S> = T & {
1202
+ new (): {
1203
+ $slots: S;
1204
+ };
1205
+ };
1206
+ //# sourceMappingURL=UploadError.vue.d.ts.map
1207
+ //#endregion
1208
+ //#region src/components/upload/UploadCancel.vue.d.ts
1209
+ declare var __VLS_1$4: {};
1210
+ type __VLS_Slots$4 = {} & {
1211
+ default?: (props: typeof __VLS_1$4) => any;
1212
+ };
1213
+ declare const __VLS_base$4: vue10.DefineComponent<{}, {}, {}, {}, {}, vue10.ComponentOptionsMixin, vue10.ComponentOptionsMixin, {}, string, vue10.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue10.ComponentProvideOptions, true, {}, any>;
1214
+ declare const __VLS_export$4: __VLS_WithSlots$4<typeof __VLS_base$4, __VLS_Slots$4>;
1215
+ declare const _default$10: typeof __VLS_export$4;
1216
+ type __VLS_WithSlots$4<T, S> = T & {
1217
+ new (): {
1218
+ $slots: S;
1219
+ };
1220
+ };
1221
+ //# sourceMappingURL=UploadCancel.vue.d.ts.map
1222
+ //#endregion
1223
+ //#region src/components/upload/UploadRetry.vue.d.ts
1224
+ declare var __VLS_1$3: {};
1225
+ type __VLS_Slots$3 = {} & {
1226
+ default?: (props: typeof __VLS_1$3) => any;
1227
+ };
1228
+ declare const __VLS_base$3: vue10.DefineComponent<{}, {}, {}, {}, {}, vue10.ComponentOptionsMixin, vue10.ComponentOptionsMixin, {}, string, vue10.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue10.ComponentProvideOptions, true, {}, any>;
1229
+ declare const __VLS_export$3: __VLS_WithSlots$3<typeof __VLS_base$3, __VLS_Slots$3>;
1230
+ declare const _default$11: typeof __VLS_export$3;
1231
+ type __VLS_WithSlots$3<T, S> = T & {
1232
+ new (): {
1233
+ $slots: S;
1234
+ };
1235
+ };
1236
+ //# sourceMappingURL=UploadRetry.vue.d.ts.map
1237
+ //#endregion
1238
+ //#region src/components/upload/UploadReset.vue.d.ts
1239
+ declare var __VLS_1$2: {};
1240
+ type __VLS_Slots$2 = {} & {
1241
+ default?: (props: typeof __VLS_1$2) => any;
1242
+ };
1243
+ declare const __VLS_base$2: vue10.DefineComponent<{}, {}, {}, {}, {}, vue10.ComponentOptionsMixin, vue10.ComponentOptionsMixin, {}, string, vue10.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue10.ComponentProvideOptions, true, {}, any>;
1244
+ declare const __VLS_export$2: __VLS_WithSlots$2<typeof __VLS_base$2, __VLS_Slots$2>;
1245
+ declare const _default$12: typeof __VLS_export$2;
1246
+ type __VLS_WithSlots$2<T, S> = T & {
1247
+ new (): {
1248
+ $slots: S;
1249
+ };
1250
+ };
1251
+ //# sourceMappingURL=UploadReset.vue.d.ts.map
1252
+ //#endregion
1253
+ //#region src/components/upload/UploadStartAll.vue.d.ts
1254
+ declare var __VLS_1$1: {};
1255
+ type __VLS_Slots$1 = {} & {
1256
+ default?: (props: typeof __VLS_1$1) => any;
1257
+ };
1258
+ declare const __VLS_base$1: vue10.DefineComponent<{}, {}, {}, {}, {}, vue10.ComponentOptionsMixin, vue10.ComponentOptionsMixin, {}, string, vue10.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue10.ComponentProvideOptions, true, {}, any>;
1259
+ declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
1260
+ declare const _default$13: typeof __VLS_export$1;
1261
+ type __VLS_WithSlots$1<T, S> = T & {
1262
+ new (): {
1263
+ $slots: S;
1264
+ };
1265
+ };
1266
+ //# sourceMappingURL=UploadStartAll.vue.d.ts.map
1267
+ //#endregion
1268
+ //#region src/components/upload/UploadClearCompleted.vue.d.ts
1269
+ declare var __VLS_1: {};
1270
+ type __VLS_Slots = {} & {
1271
+ default?: (props: typeof __VLS_1) => any;
1272
+ };
1273
+ declare const __VLS_base: vue10.DefineComponent<{}, {}, {}, {}, {}, vue10.ComponentOptionsMixin, vue10.ComponentOptionsMixin, {}, string, vue10.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue10.ComponentProvideOptions, true, {}, any>;
1274
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
1275
+ declare const _default$14: typeof __VLS_export;
1276
+ type __VLS_WithSlots<T, S> = T & {
1277
+ new (): {
1278
+ $slots: S;
1279
+ };
1280
+ };
1281
+ //# sourceMappingURL=UploadClearCompleted.vue.d.ts.map
1282
+
1283
+ //#endregion
1284
+ export { FlowDropZoneProps as $, _default$26 as A, FlowInputDropZoneProps as B, UploadDropZoneSlotProps as C, _default$3 as D, UploadProps as E, _default$23 as F, _default$19 as G, _default$20 as H, FlowInputsSlotProps as I, FlowInputContextValue as J, FLOW_CONTEXT_KEY as K, _default$22 as L, FlowProgressSlotProps as M, _default$24 as N, _default$27 as O, FlowInputUrlFieldProps as P, _default$18 as Q, FlowInputPreviewSlotProps as R, UploadDropZoneProps as S, UploadContextValue as T, FlowInputProps as U, FlowInputDropZoneSlotProps as V, FlowInputSlotProps as W, useFlowInputContext as X, useFlowContext as Y, FlowErrorSlotProps as Z, UploadItemContextValue as _, _default$10 as a, _default$15 as at, UploadItemsSlotProps as b, UploadStatusSlotProps as c, _default as ct, _default$7 as d, FlowDropZoneSlotProps as et, UploadItemProps as f, UPLOAD_ITEM_CONTEXT_KEY as g, UPLOAD_CONTEXT_KEY as h, _default$11 as i, FlowProps as it, _default$25 as j, FlowStatusSlotProps as k, _default$8 as l, _default$6 as m, _default$13 as n, _default$16 as nt, UploadErrorSlotProps as o, _default$2 as ot, UploadItemSlotProps as p, FLOW_INPUT_CONTEXT_KEY as q, _default$12 as r, FlowContextValue as rt, _default$9 as s, _default$1 as st, _default$14 as t, _default$17 as tt, UploadProgressSlotProps as u, useUploadContext as v, _default$4 as w, _default$5 as x, useUploadItemContext as y, _default$21 as z };
1285
+ //# sourceMappingURL=index-CLOy812P.d.mts.map