@progress/kendo-vue-upload 8.0.3-develop.2 → 8.0.3-develop.3
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/ExternalDropZone.d.ts +115 -0
- package/Upload.d.ts +301 -0
- package/UploadActionButtons.d.ts +50 -0
- package/UploadAddButton.d.ts +70 -0
- package/UploadDropZone.d.ts +118 -0
- package/UploadInput.d.ts +100 -0
- package/UploadList.d.ts +60 -0
- package/UploadListActionButton.d.ts +64 -0
- package/UploadListGroup.d.ts +57 -0
- package/UploadListMultiItem.d.ts +38 -0
- package/UploadListSingleItem.d.ts +41 -0
- package/UploadNavigation.d.ts +113 -0
- package/UploadStatus.d.ts +31 -0
- package/UploadUI.d.ts +150 -0
- package/dist/cdn/js/kendo-vue-upload.js +1 -1
- package/index.d.mts +27 -1091
- package/index.d.ts +27 -1091
- package/interfaces/BaseUploadEvent.d.ts +16 -0
- package/interfaces/FileGroup.d.ts +14 -0
- package/interfaces/UploadActionsLayout.d.ts +11 -0
- package/interfaces/UploadAdditionalData.d.ts +13 -0
- package/interfaces/UploadAsyncProps.d.ts +89 -0
- package/interfaces/UploadFileInfo.d.ts +48 -0
- package/interfaces/UploadFileRestrictions.d.ts +26 -0
- package/interfaces/UploadFileStatus.d.ts +40 -0
- package/interfaces/UploadHttpHeaders.d.ts +13 -0
- package/interfaces/UploadListItemProps.d.ts +26 -0
- package/interfaces/UploadOnAddEvent.d.ts +22 -0
- package/interfaces/UploadOnBeforeRemoveEvent.d.ts +28 -0
- package/interfaces/UploadOnBeforeUploadEvent.d.ts +28 -0
- package/interfaces/UploadOnCancelEvent.d.ts +17 -0
- package/interfaces/UploadOnProgressEvent.d.ts +22 -0
- package/interfaces/UploadOnRemoveEvent.d.ts +27 -0
- package/interfaces/UploadOnStatusChangeEvent.d.ts +27 -0
- package/interfaces/UploadProps.d.ts +125 -0
- package/interfaces/UploadResponse.d.ts +32 -0
- package/messages/main.d.ts +127 -0
- package/package-metadata.d.ts +12 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +14 -8
- package/utils/connectionUtils.d.ts +24 -0
- package/utils/stateUtils.d.ts +33 -0
- package/utils/utils.d.ts +24 -0
- package/utils/validationUtils.d.ts +14 -0
package/index.d.mts
CHANGED
|
@@ -5,1094 +5,30 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
* @hidden
|
|
36
|
-
*/
|
|
37
|
-
export declare const ExternalDropZone: DefineComponent<ExtractPropTypes< {
|
|
38
|
-
id: PropType<string>;
|
|
39
|
-
tabIndex: PropType<number>;
|
|
40
|
-
innerStyle: PropType<object>;
|
|
41
|
-
uploadRef: PropType<any>;
|
|
42
|
-
disabled: PropType<boolean>;
|
|
43
|
-
customHint: PropType<any>;
|
|
44
|
-
customNote: PropType<any>;
|
|
45
|
-
}>, {
|
|
46
|
-
externalDropZoneRef: Ref<any, any>;
|
|
47
|
-
kendoLocalizationService: {};
|
|
48
|
-
}, {
|
|
49
|
-
overDropZone: boolean;
|
|
50
|
-
}, {}, {
|
|
51
|
-
focus(): void;
|
|
52
|
-
isDragOver(prevDate: Date | null): boolean;
|
|
53
|
-
handleOnDrop(event: any): void;
|
|
54
|
-
handleOnElementDragEnter(): void;
|
|
55
|
-
handleOnElementDragOver(event: any): void;
|
|
56
|
-
}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
57
|
-
id: PropType<string>;
|
|
58
|
-
tabIndex: PropType<number>;
|
|
59
|
-
innerStyle: PropType<object>;
|
|
60
|
-
uploadRef: PropType<any>;
|
|
61
|
-
disabled: PropType<boolean>;
|
|
62
|
-
customHint: PropType<any>;
|
|
63
|
-
customNote: PropType<any>;
|
|
64
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* @hidden
|
|
68
|
-
*/
|
|
69
|
-
declare interface GroupedFiles {
|
|
70
|
-
[uid: string]: Array<UploadFileInfo>;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* @hidden
|
|
75
|
-
*/
|
|
76
|
-
export declare const messages: {
|
|
77
|
-
"upload.cancel": string;
|
|
78
|
-
"upload.clearSelectedFiles": string;
|
|
79
|
-
"upload.dropFileHere": string;
|
|
80
|
-
"upload.dropFilesHere": string;
|
|
81
|
-
"upload.headerStatusUploaded": string;
|
|
82
|
-
"upload.headerStatusUploading": string;
|
|
83
|
-
"upload.invalidFileExtension": string;
|
|
84
|
-
"upload.invalidFiles": string;
|
|
85
|
-
"upload.invalidMaxFileSize": string;
|
|
86
|
-
"upload.invalidMinFileSize": string;
|
|
87
|
-
"upload.remove": string;
|
|
88
|
-
"upload.retry": string;
|
|
89
|
-
"upload.select": string;
|
|
90
|
-
"upload.selectSingle": string;
|
|
91
|
-
"upload.selectTitle": string;
|
|
92
|
-
"upload.selectNoFilesTitle": string;
|
|
93
|
-
"upload.uploadSelectedFiles": string;
|
|
94
|
-
"upload.total": string;
|
|
95
|
-
"upload.files": string;
|
|
96
|
-
"upload.statusUploaded": string;
|
|
97
|
-
"upload.statusUploadFailed": string;
|
|
98
|
-
"upload.dropZoneHint": string;
|
|
99
|
-
"upload.dropZoneNote": string;
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* @hidden
|
|
104
|
-
*/
|
|
105
|
-
export declare const Upload: DefineComponent<ExtractPropTypes< {
|
|
106
|
-
autoUpload: {
|
|
107
|
-
type: PropType<boolean>;
|
|
108
|
-
default: boolean;
|
|
109
|
-
};
|
|
110
|
-
batch: {
|
|
111
|
-
type: PropType<boolean>;
|
|
112
|
-
default: boolean;
|
|
113
|
-
};
|
|
114
|
-
withCredentials: {
|
|
115
|
-
type: PropType<boolean>;
|
|
116
|
-
default: boolean;
|
|
117
|
-
};
|
|
118
|
-
saveField: {
|
|
119
|
-
type: PropType<string>;
|
|
120
|
-
default: () => "files";
|
|
121
|
-
};
|
|
122
|
-
saveHeaders: {
|
|
123
|
-
type: PropType<UploadHttpHeaders_2>;
|
|
124
|
-
default: () => {};
|
|
125
|
-
};
|
|
126
|
-
saveMethod: {
|
|
127
|
-
type: PropType<string>;
|
|
128
|
-
default: () => "POST";
|
|
129
|
-
};
|
|
130
|
-
saveUrl: {
|
|
131
|
-
type: PropType<string | ((files: UploadFileInfo[], options: {
|
|
132
|
-
formData: FormData;
|
|
133
|
-
requestOptions: any;
|
|
134
|
-
}, onProgress: (uid: string, event: ProgressEvent<EventTarget>) => void) => Promise<{
|
|
135
|
-
uid: string;
|
|
136
|
-
}>)>;
|
|
137
|
-
default: () => "";
|
|
138
|
-
};
|
|
139
|
-
responseType: {
|
|
140
|
-
type: PropType<"text" | "arraybuffer" | "blob" | "json">;
|
|
141
|
-
default: () => "json";
|
|
142
|
-
};
|
|
143
|
-
removeField: {
|
|
144
|
-
type: PropType<string>;
|
|
145
|
-
default: () => "fileNames";
|
|
146
|
-
};
|
|
147
|
-
removeHeaders: {
|
|
148
|
-
type: PropType<UploadHttpHeaders_2>;
|
|
149
|
-
default: () => {};
|
|
150
|
-
};
|
|
151
|
-
removeMethod: {
|
|
152
|
-
type: PropType<string>;
|
|
153
|
-
default: () => "POST";
|
|
154
|
-
};
|
|
155
|
-
removeUrl: {
|
|
156
|
-
type: PropType<string | ((files: UploadFileInfo[], options: {
|
|
157
|
-
formData: FormData;
|
|
158
|
-
requestOptions: any;
|
|
159
|
-
}) => Promise<{
|
|
160
|
-
uid: string;
|
|
161
|
-
}>)>;
|
|
162
|
-
default: () => "";
|
|
163
|
-
};
|
|
164
|
-
multiple: {
|
|
165
|
-
type: PropType<boolean>;
|
|
166
|
-
default: boolean;
|
|
167
|
-
};
|
|
168
|
-
disabled: {
|
|
169
|
-
type: PropType<boolean>;
|
|
170
|
-
default: boolean;
|
|
171
|
-
};
|
|
172
|
-
showFileList: {
|
|
173
|
-
type: PropType<boolean>;
|
|
174
|
-
default: boolean;
|
|
175
|
-
};
|
|
176
|
-
showActionButtons: {
|
|
177
|
-
type: PropType<boolean>;
|
|
178
|
-
default: boolean;
|
|
179
|
-
};
|
|
180
|
-
actionsLayout: {
|
|
181
|
-
type: PropType<UploadActionsLayout_2>;
|
|
182
|
-
default: () => "end";
|
|
183
|
-
};
|
|
184
|
-
tabIndex: PropType<string | number>;
|
|
185
|
-
accept: PropType<string>;
|
|
186
|
-
list: PropType<any>;
|
|
187
|
-
restrictions: {
|
|
188
|
-
type: PropType<UploadFileRestrictions_2>;
|
|
189
|
-
default: () => {
|
|
190
|
-
allowedExtensions: any[];
|
|
191
|
-
maxFileSize: number;
|
|
192
|
-
minFileSize: number;
|
|
193
|
-
};
|
|
194
|
-
};
|
|
195
|
-
validateFile: PropType<(file: UploadFileInfo) => void>;
|
|
196
|
-
files: PropType<UploadFileInfo[]>;
|
|
197
|
-
defaultFiles: PropType<UploadFileInfo[]>;
|
|
198
|
-
}>, {}, {
|
|
199
|
-
currentFiles: any[];
|
|
200
|
-
}, {
|
|
201
|
-
computedAsync(): {
|
|
202
|
-
autoUpload: any;
|
|
203
|
-
batch: any;
|
|
204
|
-
removeField: any;
|
|
205
|
-
removeHeaders: any;
|
|
206
|
-
removeMethod: any;
|
|
207
|
-
removeUrl: any;
|
|
208
|
-
responseType: any;
|
|
209
|
-
saveField: any;
|
|
210
|
-
saveHeaders: any;
|
|
211
|
-
saveMethod: any;
|
|
212
|
-
saveUrl: any;
|
|
213
|
-
withCredentials: any;
|
|
214
|
-
};
|
|
215
|
-
computedFiles(): Array<UploadFileInfo>;
|
|
216
|
-
isControlled(): boolean;
|
|
217
|
-
isCustomSave(): boolean;
|
|
218
|
-
isCustomRemove(): boolean;
|
|
219
|
-
fileStateCopy(): {
|
|
220
|
-
uid: string;
|
|
221
|
-
name: string;
|
|
222
|
-
extension?: string;
|
|
223
|
-
size?: number;
|
|
224
|
-
validationErrors?: string[];
|
|
225
|
-
status: UploadFileStatus;
|
|
226
|
-
progress: number;
|
|
227
|
-
getRawFile?: () => File;
|
|
228
|
-
}[];
|
|
229
|
-
actionElement(): any;
|
|
230
|
-
}, {
|
|
231
|
-
focus(): void;
|
|
232
|
-
uploadFiles(filesForUpload: GroupedFiles): void;
|
|
233
|
-
removeFiles(filesForRemove: GroupedFiles): void;
|
|
234
|
-
onUpload(): void;
|
|
235
|
-
onAdd(files: FileList): void;
|
|
236
|
-
onUploadProgress(uid: string, event: ProgressEvent | AxiosProgressEvent): void;
|
|
237
|
-
onUploadSuccess(uid: string, event?: AxiosResponse): void;
|
|
238
|
-
onUploadError(uid: string, event?: AxiosResponse): void;
|
|
239
|
-
onRemove(uid: string): void;
|
|
240
|
-
onRemoveSuccess(uid: string, event?: AxiosResponse): void;
|
|
241
|
-
onRemoveError(uid: string, event?: AxiosResponse): void;
|
|
242
|
-
onRetry(uid: string): void;
|
|
243
|
-
onCancel(uid: string): void;
|
|
244
|
-
onClear(): void;
|
|
245
|
-
}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
246
|
-
add: any;
|
|
247
|
-
beforeremove: any;
|
|
248
|
-
beforeupload: any;
|
|
249
|
-
cancel: any;
|
|
250
|
-
statuschange: any;
|
|
251
|
-
progress: any;
|
|
252
|
-
remove: any;
|
|
253
|
-
}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
254
|
-
autoUpload: {
|
|
255
|
-
type: PropType<boolean>;
|
|
256
|
-
default: boolean;
|
|
257
|
-
};
|
|
258
|
-
batch: {
|
|
259
|
-
type: PropType<boolean>;
|
|
260
|
-
default: boolean;
|
|
261
|
-
};
|
|
262
|
-
withCredentials: {
|
|
263
|
-
type: PropType<boolean>;
|
|
264
|
-
default: boolean;
|
|
265
|
-
};
|
|
266
|
-
saveField: {
|
|
267
|
-
type: PropType<string>;
|
|
268
|
-
default: () => "files";
|
|
269
|
-
};
|
|
270
|
-
saveHeaders: {
|
|
271
|
-
type: PropType<UploadHttpHeaders_2>;
|
|
272
|
-
default: () => {};
|
|
273
|
-
};
|
|
274
|
-
saveMethod: {
|
|
275
|
-
type: PropType<string>;
|
|
276
|
-
default: () => "POST";
|
|
277
|
-
};
|
|
278
|
-
saveUrl: {
|
|
279
|
-
type: PropType<string | ((files: UploadFileInfo[], options: {
|
|
280
|
-
formData: FormData;
|
|
281
|
-
requestOptions: any;
|
|
282
|
-
}, onProgress: (uid: string, event: ProgressEvent<EventTarget>) => void) => Promise<{
|
|
283
|
-
uid: string;
|
|
284
|
-
}>)>;
|
|
285
|
-
default: () => "";
|
|
286
|
-
};
|
|
287
|
-
responseType: {
|
|
288
|
-
type: PropType<"text" | "arraybuffer" | "blob" | "json">;
|
|
289
|
-
default: () => "json";
|
|
290
|
-
};
|
|
291
|
-
removeField: {
|
|
292
|
-
type: PropType<string>;
|
|
293
|
-
default: () => "fileNames";
|
|
294
|
-
};
|
|
295
|
-
removeHeaders: {
|
|
296
|
-
type: PropType<UploadHttpHeaders_2>;
|
|
297
|
-
default: () => {};
|
|
298
|
-
};
|
|
299
|
-
removeMethod: {
|
|
300
|
-
type: PropType<string>;
|
|
301
|
-
default: () => "POST";
|
|
302
|
-
};
|
|
303
|
-
removeUrl: {
|
|
304
|
-
type: PropType<string | ((files: UploadFileInfo[], options: {
|
|
305
|
-
formData: FormData;
|
|
306
|
-
requestOptions: any;
|
|
307
|
-
}) => Promise<{
|
|
308
|
-
uid: string;
|
|
309
|
-
}>)>;
|
|
310
|
-
default: () => "";
|
|
311
|
-
};
|
|
312
|
-
multiple: {
|
|
313
|
-
type: PropType<boolean>;
|
|
314
|
-
default: boolean;
|
|
315
|
-
};
|
|
316
|
-
disabled: {
|
|
317
|
-
type: PropType<boolean>;
|
|
318
|
-
default: boolean;
|
|
319
|
-
};
|
|
320
|
-
showFileList: {
|
|
321
|
-
type: PropType<boolean>;
|
|
322
|
-
default: boolean;
|
|
323
|
-
};
|
|
324
|
-
showActionButtons: {
|
|
325
|
-
type: PropType<boolean>;
|
|
326
|
-
default: boolean;
|
|
327
|
-
};
|
|
328
|
-
actionsLayout: {
|
|
329
|
-
type: PropType<UploadActionsLayout_2>;
|
|
330
|
-
default: () => "end";
|
|
331
|
-
};
|
|
332
|
-
tabIndex: PropType<string | number>;
|
|
333
|
-
accept: PropType<string>;
|
|
334
|
-
list: PropType<any>;
|
|
335
|
-
restrictions: {
|
|
336
|
-
type: PropType<UploadFileRestrictions_2>;
|
|
337
|
-
default: () => {
|
|
338
|
-
allowedExtensions: any[];
|
|
339
|
-
maxFileSize: number;
|
|
340
|
-
minFileSize: number;
|
|
341
|
-
};
|
|
342
|
-
};
|
|
343
|
-
validateFile: PropType<(file: UploadFileInfo) => void>;
|
|
344
|
-
files: PropType<UploadFileInfo[]>;
|
|
345
|
-
defaultFiles: PropType<UploadFileInfo[]>;
|
|
346
|
-
}>> & Readonly<{
|
|
347
|
-
onProgress?: (...args: any[] | unknown[]) => any;
|
|
348
|
-
onCancel?: (...args: any[] | unknown[]) => any;
|
|
349
|
-
onAdd?: (...args: any[] | unknown[]) => any;
|
|
350
|
-
onRemove?: (...args: any[] | unknown[]) => any;
|
|
351
|
-
onBeforeremove?: (...args: any[] | unknown[]) => any;
|
|
352
|
-
onBeforeupload?: (...args: any[] | unknown[]) => any;
|
|
353
|
-
onStatuschange?: (...args: any[] | unknown[]) => any;
|
|
354
|
-
}>, {
|
|
355
|
-
disabled: boolean;
|
|
356
|
-
multiple: boolean;
|
|
357
|
-
autoUpload: boolean;
|
|
358
|
-
batch: boolean;
|
|
359
|
-
withCredentials: boolean;
|
|
360
|
-
saveField: string;
|
|
361
|
-
saveHeaders: UploadHttpHeaders_2;
|
|
362
|
-
saveMethod: string;
|
|
363
|
-
saveUrl: string | ((files: UploadFileInfo[], options: {
|
|
364
|
-
formData: FormData;
|
|
365
|
-
requestOptions: any;
|
|
366
|
-
}, onProgress: (uid: string, event: ProgressEvent<EventTarget>) => void) => Promise<{
|
|
367
|
-
uid: string;
|
|
368
|
-
}>);
|
|
369
|
-
responseType: "text" | "arraybuffer" | "blob" | "json";
|
|
370
|
-
removeField: string;
|
|
371
|
-
removeHeaders: UploadHttpHeaders_2;
|
|
372
|
-
removeMethod: string;
|
|
373
|
-
removeUrl: string | ((files: UploadFileInfo[], options: {
|
|
374
|
-
formData: FormData;
|
|
375
|
-
requestOptions: any;
|
|
376
|
-
}) => Promise<{
|
|
377
|
-
uid: string;
|
|
378
|
-
}>);
|
|
379
|
-
actionsLayout: UploadActionsLayout_2;
|
|
380
|
-
showFileList: boolean;
|
|
381
|
-
showActionButtons: boolean;
|
|
382
|
-
restrictions: UploadFileRestrictions_2;
|
|
383
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
384
|
-
|
|
385
|
-
/**
|
|
386
|
-
* Lists the possible layout of the Upload action buttons.
|
|
387
|
-
*/
|
|
388
|
-
export declare type UploadActionsLayout = 'start' | 'center' | 'end' | 'stretched';
|
|
389
|
-
|
|
390
|
-
/**
|
|
391
|
-
* Represents the additional data that is sent as a key-value pair.
|
|
392
|
-
*/
|
|
393
|
-
export declare interface UploadAdditionalData {
|
|
394
|
-
[name: string]: any;
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
/**
|
|
398
|
-
* Represents the async properties of the Upload component.
|
|
399
|
-
*/
|
|
400
|
-
export declare interface UploadAsyncProps {
|
|
401
|
-
/**
|
|
402
|
-
* By default, the selected files are immediately uploaded.
|
|
403
|
-
* To change this behavior, set `autoUpload` to `false`.
|
|
404
|
-
*/
|
|
405
|
-
autoUpload?: boolean;
|
|
406
|
-
/**
|
|
407
|
-
* When enabled, all files in the selection are uploaded in one request.
|
|
408
|
-
* Any files that are selected one after the other are uploaded in separate requests.
|
|
409
|
-
*/
|
|
410
|
-
batch?: boolean;
|
|
411
|
-
/**
|
|
412
|
-
* Configures whether credentials (cookies, headers) will be sent for cross-site requests.
|
|
413
|
-
* Defaults to `true`. Setting `withCredentials` has no effect on same-site requests.
|
|
414
|
-
* To add credentials to the request, use the `saveHeaders` or `removeHeaders` property.
|
|
415
|
-
*/
|
|
416
|
-
withCredentials?: boolean;
|
|
417
|
-
/**
|
|
418
|
-
* Sets the [`FormData`](https://developer.mozilla.org/en-US/docs/Web/API/FormData) key which
|
|
419
|
-
* contains the files submitted to `saveUrl`. Defaults to `files`.
|
|
420
|
-
*/
|
|
421
|
-
saveField?: string;
|
|
422
|
-
/**
|
|
423
|
-
* Configures the `HttpHeaders` that are attached to each upload request.
|
|
424
|
-
*/
|
|
425
|
-
saveHeaders?: UploadHttpHeaders;
|
|
426
|
-
/**
|
|
427
|
-
* Sets the [`request`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods) method of the upload request.
|
|
428
|
-
* Defaults to `POST`.
|
|
429
|
-
*/
|
|
430
|
-
saveMethod?: string;
|
|
431
|
-
/**
|
|
432
|
-
* Sets the URL of the endpoint for the upload request.
|
|
433
|
-
* The requested [`FormData`](https://developer.mozilla.org/en-US/docs/Web/API/FormData) key is named after
|
|
434
|
-
* the `saveField` property and contains the list of files that will be uploaded.
|
|
435
|
-
*/
|
|
436
|
-
saveUrl?: string | ((files: UploadFileInfo[], options: {
|
|
437
|
-
formData: FormData;
|
|
438
|
-
requestOptions: any;
|
|
439
|
-
}, onProgress: (uid: string, event: ProgressEvent) => void) => Promise<{
|
|
440
|
-
uid: string;
|
|
441
|
-
}>);
|
|
442
|
-
/**
|
|
443
|
-
* Sets the expected [response type](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/responseType)
|
|
444
|
-
* of the server.
|
|
445
|
-
* Used to parse the response appropriately.
|
|
446
|
-
* Defaults to `json`.
|
|
447
|
-
*/
|
|
448
|
-
responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
|
|
449
|
-
/**
|
|
450
|
-
* Sets the [`FormData`](https://developer.mozilla.org/en-US/docs/Web/API/FormData) key
|
|
451
|
-
* which contains the list of file names that are submitted to `removeUrl`.
|
|
452
|
-
* Defaults to `fileNames`.
|
|
453
|
-
*/
|
|
454
|
-
removeField?: string;
|
|
455
|
-
/**
|
|
456
|
-
* Configures the `HttpHeaders` that are attached to each `remove` request.
|
|
457
|
-
*/
|
|
458
|
-
removeHeaders?: UploadHttpHeaders;
|
|
459
|
-
/**
|
|
460
|
-
* Sets the [request method](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods) of the `remove` request.
|
|
461
|
-
* Defaults to `POST`.
|
|
462
|
-
*/
|
|
463
|
-
removeMethod?: string;
|
|
464
|
-
/**
|
|
465
|
-
* Sets the URL of the endpoint for the `remove` request.
|
|
466
|
-
* The [`FormData`](https://developer.mozilla.org/en-US/docs/Web/API/FormData) request
|
|
467
|
-
* key is named after the `removeField` property.
|
|
468
|
-
* It contains the list of file names which will be removed.
|
|
469
|
-
*/
|
|
470
|
-
removeUrl?: string | ((files: UploadFileInfo[], options: {
|
|
471
|
-
formData: FormData;
|
|
472
|
-
requestOptions: any;
|
|
473
|
-
}) => Promise<{
|
|
474
|
-
uid: string;
|
|
475
|
-
}>);
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
/**
|
|
479
|
-
* Contains information which is related to the selected file.
|
|
480
|
-
*/
|
|
481
|
-
export declare interface UploadFileInfo {
|
|
482
|
-
/**
|
|
483
|
-
* The unique identifier of the group (batch) with one or more files.
|
|
484
|
-
* Has to be set for the initial list of files.
|
|
485
|
-
*/
|
|
486
|
-
uid: string;
|
|
487
|
-
/**
|
|
488
|
-
* The file name.
|
|
489
|
-
*/
|
|
490
|
-
name: string;
|
|
491
|
-
/**
|
|
492
|
-
* The file extension including the leading dot—for example, `.jpg`, `.png`, or other.
|
|
493
|
-
*/
|
|
494
|
-
extension?: string;
|
|
495
|
-
/**
|
|
496
|
-
* The file size in bytes.
|
|
497
|
-
*/
|
|
498
|
-
size?: number;
|
|
499
|
-
/**
|
|
500
|
-
* A list which contains the validation errors (if any).
|
|
501
|
-
*/
|
|
502
|
-
validationErrors?: Array<string>;
|
|
503
|
-
/**
|
|
504
|
-
* The current state of the file—`Failed`, `Selected`, `Uploaded`, or `Uploading`.
|
|
505
|
-
* `Initial` is a special value for `FileState` and is
|
|
506
|
-
* automatically applied to initial files without you having to explicitly set their state.
|
|
507
|
-
*/
|
|
508
|
-
status: UploadFileStatus;
|
|
509
|
-
/**
|
|
510
|
-
* The current upload progress.
|
|
511
|
-
*/
|
|
512
|
-
progress: number;
|
|
513
|
-
/**
|
|
514
|
-
* Gets the raw file instance.
|
|
515
|
-
*/
|
|
516
|
-
getRawFile?: () => File;
|
|
517
|
-
}
|
|
518
|
-
|
|
519
|
-
/**
|
|
520
|
-
* Configures the restrictions for the files that can be uploaded.
|
|
521
|
-
*/
|
|
522
|
-
export declare interface UploadFileRestrictions {
|
|
523
|
-
/**
|
|
524
|
-
* The list of the allowed file extensions.
|
|
525
|
-
* Recognizes entries of both `.type` (for example, `.docx`, `.png`, `.svg`, `.xls`, and others)
|
|
526
|
-
* and `type` (for example, `docx`, `png`, `svg`, `xls`, and others) values.
|
|
527
|
-
*/
|
|
528
|
-
allowedExtensions?: Array<string>;
|
|
529
|
-
/**
|
|
530
|
-
* Defines the maximum file size in bytes.
|
|
531
|
-
*/
|
|
532
|
-
maxFileSize?: number;
|
|
533
|
-
/**
|
|
534
|
-
* Defines the minimum file size in bytes.
|
|
535
|
-
*/
|
|
536
|
-
minFileSize?: number;
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
/**
|
|
540
|
-
* Lists the possible states of a file.
|
|
541
|
-
*/
|
|
542
|
-
export declare enum UploadFileStatus {
|
|
543
|
-
/**
|
|
544
|
-
* Indicates that the file upload process has failed.
|
|
545
|
-
*/
|
|
546
|
-
UploadFailed = 0,
|
|
547
|
-
/**
|
|
548
|
-
* An initially selected fake file without a set state.
|
|
549
|
-
*/
|
|
550
|
-
Initial = 1,
|
|
551
|
-
/**
|
|
552
|
-
* The file is selected.
|
|
553
|
-
*/
|
|
554
|
-
Selected = 2,
|
|
555
|
-
/**
|
|
556
|
-
* The file is in the process of uploading.
|
|
557
|
-
*/
|
|
558
|
-
Uploading = 3,
|
|
559
|
-
/**
|
|
560
|
-
* The file is successfully uploaded.
|
|
561
|
-
*/
|
|
562
|
-
Uploaded = 4,
|
|
563
|
-
/**
|
|
564
|
-
* The remove process has failed.
|
|
565
|
-
*/
|
|
566
|
-
RemoveFailed = 5,
|
|
567
|
-
/**
|
|
568
|
-
* The file is in the process of removing.
|
|
569
|
-
*/
|
|
570
|
-
Removing = 6
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
/**
|
|
574
|
-
* Represents the HttpHeaders as a key-value pair.
|
|
575
|
-
*/
|
|
576
|
-
export declare interface UploadHttpHeaders {
|
|
577
|
-
[name: string]: string | string[];
|
|
578
|
-
}
|
|
579
|
-
|
|
580
|
-
/**
|
|
581
|
-
* @hidden
|
|
582
|
-
*/
|
|
583
|
-
export declare const UploadListActionButton: DefineComponent<ExtractPropTypes< {
|
|
584
|
-
progress: PropType<number>;
|
|
585
|
-
uid: PropType<string>;
|
|
586
|
-
status: PropType<UploadFileStatus>;
|
|
587
|
-
async: PropType<UploadAsyncProps>;
|
|
588
|
-
disabled: PropType<boolean>;
|
|
589
|
-
files: PropType<any[]>;
|
|
590
|
-
}>, {
|
|
591
|
-
kendoLocalizationService: {};
|
|
592
|
-
}, {
|
|
593
|
-
retryFocused: boolean;
|
|
594
|
-
actionFocused: boolean;
|
|
595
|
-
}, {}, {
|
|
596
|
-
actionButtonTitle(status: UploadFileStatus, localizationService: LocalizationService): string;
|
|
597
|
-
retryButtonTitle(localizationService: LocalizationService): string;
|
|
598
|
-
buttonClassNames(type: string): string;
|
|
599
|
-
onRetryFocus(): void;
|
|
600
|
-
onRetryBlur(): void;
|
|
601
|
-
onActionFocus(): void;
|
|
602
|
-
onActionBlur(): void;
|
|
603
|
-
onActionClick(): void;
|
|
604
|
-
onRetryClick(): void;
|
|
605
|
-
}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
606
|
-
cancel: any;
|
|
607
|
-
retry: any;
|
|
608
|
-
remove: any;
|
|
609
|
-
}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
610
|
-
progress: PropType<number>;
|
|
611
|
-
uid: PropType<string>;
|
|
612
|
-
status: PropType<UploadFileStatus>;
|
|
613
|
-
async: PropType<UploadAsyncProps>;
|
|
614
|
-
disabled: PropType<boolean>;
|
|
615
|
-
files: PropType<any[]>;
|
|
616
|
-
}>> & Readonly<{
|
|
617
|
-
onCancel?: (...args: any[] | unknown[]) => any;
|
|
618
|
-
onRemove?: (...args: any[] | unknown[]) => any;
|
|
619
|
-
onRetry?: (...args: any[] | unknown[]) => any;
|
|
620
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
621
|
-
|
|
622
|
-
/**
|
|
623
|
-
* Represents the properties of the Kendo Ui for Vue UploadList Item component.
|
|
624
|
-
*/
|
|
625
|
-
export declare interface UploadListItemProps {
|
|
626
|
-
/**
|
|
627
|
-
* One or more files for the current item.
|
|
628
|
-
*/
|
|
629
|
-
files: Array<UploadFileInfo>;
|
|
630
|
-
/**
|
|
631
|
-
* The `disabled` property of the Upload.
|
|
632
|
-
*/
|
|
633
|
-
disabled: boolean;
|
|
634
|
-
/**
|
|
635
|
-
* The asynchronous properties of the Upload.
|
|
636
|
-
*/
|
|
637
|
-
async: UploadAsyncProps;
|
|
638
|
-
}
|
|
639
|
-
|
|
640
|
-
/**
|
|
641
|
-
* @hidden
|
|
642
|
-
*/
|
|
643
|
-
export declare const UploadListMultiItem: DefineComponent<ExtractPropTypes< {
|
|
644
|
-
files: PropType<UploadFileInfo[]>;
|
|
645
|
-
disabled: PropType<boolean>;
|
|
646
|
-
async: PropType<UploadAsyncProps_2>;
|
|
647
|
-
}>, {
|
|
648
|
-
kendoLocalizationService: {};
|
|
649
|
-
}, {}, {}, {
|
|
650
|
-
onRetry(uid: string): void;
|
|
651
|
-
onRemove(uid: string): void;
|
|
652
|
-
onCancel(uid: string): void;
|
|
653
|
-
getFileValidationMessage(file: UploadFileInfo): string;
|
|
654
|
-
progress(): number;
|
|
655
|
-
}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
656
|
-
cancel: any;
|
|
657
|
-
retry: any;
|
|
658
|
-
remove: any;
|
|
659
|
-
}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
660
|
-
files: PropType<UploadFileInfo[]>;
|
|
661
|
-
disabled: PropType<boolean>;
|
|
662
|
-
async: PropType<UploadAsyncProps_2>;
|
|
663
|
-
}>> & Readonly<{
|
|
664
|
-
onCancel?: (...args: any[] | unknown[]) => any;
|
|
665
|
-
onRemove?: (...args: any[] | unknown[]) => any;
|
|
666
|
-
onRetry?: (...args: any[] | unknown[]) => any;
|
|
667
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
668
|
-
|
|
669
|
-
/**
|
|
670
|
-
* @hidden
|
|
671
|
-
*/
|
|
672
|
-
export declare const UploadListSingleItem: DefineComponent<ExtractPropTypes< {
|
|
673
|
-
files: PropType<UploadFileInfo[]>;
|
|
674
|
-
disabled: PropType<boolean>;
|
|
675
|
-
async: PropType<UploadAsyncProps_2>;
|
|
676
|
-
}>, {
|
|
677
|
-
kendoLocalizationService: {};
|
|
678
|
-
}, {}, {}, {
|
|
679
|
-
onRetry(uid: string): void;
|
|
680
|
-
onRemove(uid: string): void;
|
|
681
|
-
onCancel(uid: string): void;
|
|
682
|
-
getFileExtension(file: UploadFileInfo): string;
|
|
683
|
-
getFileValidationMessage(file: UploadFileInfo, isUploadFailed: boolean): string;
|
|
684
|
-
getFileExtensionName(file: UploadFileInfo): string;
|
|
685
|
-
getFileExtensionSVG(file: UploadFileInfo): SVGIcon;
|
|
686
|
-
}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
687
|
-
cancel: any;
|
|
688
|
-
retry: any;
|
|
689
|
-
remove: any;
|
|
690
|
-
}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
691
|
-
files: PropType<UploadFileInfo[]>;
|
|
692
|
-
disabled: PropType<boolean>;
|
|
693
|
-
async: PropType<UploadAsyncProps_2>;
|
|
694
|
-
}>> & Readonly<{
|
|
695
|
-
onCancel?: (...args: any[] | unknown[]) => any;
|
|
696
|
-
onRemove?: (...args: any[] | unknown[]) => any;
|
|
697
|
-
onRetry?: (...args: any[] | unknown[]) => any;
|
|
698
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
699
|
-
|
|
700
|
-
/**
|
|
701
|
-
* The `onAdd` event.
|
|
702
|
-
*/
|
|
703
|
-
export declare interface UploadOnAddEvent extends BaseUploadEvent<any> {
|
|
704
|
-
/**
|
|
705
|
-
* The new updated state candidate.
|
|
706
|
-
*/
|
|
707
|
-
newState: Array<UploadFileInfo>;
|
|
708
|
-
/**
|
|
709
|
-
* The list of affected files.
|
|
710
|
-
*/
|
|
711
|
-
affectedFiles: Array<UploadFileInfo>;
|
|
712
|
-
}
|
|
713
|
-
|
|
714
|
-
/**
|
|
715
|
-
* The `onBeforeRemove` event.
|
|
716
|
-
*/
|
|
717
|
-
export declare interface UploadOnBeforeRemoveEvent extends BaseUploadEvent<any> {
|
|
718
|
-
/**
|
|
719
|
-
* The files that will be sent with the request.
|
|
720
|
-
*/
|
|
721
|
-
files: Array<UploadFileInfo>;
|
|
722
|
-
/**
|
|
723
|
-
* The headers that will be sent with the request. Can be modified.
|
|
724
|
-
*/
|
|
725
|
-
headers: UploadHttpHeaders;
|
|
726
|
-
/**
|
|
727
|
-
* The additional data that will be sent with the request. Can be modified.
|
|
728
|
-
*/
|
|
729
|
-
additionalData: UploadAdditionalData;
|
|
730
|
-
}
|
|
731
|
-
|
|
732
|
-
/**
|
|
733
|
-
* The `onBeforeUpload` event.
|
|
734
|
-
*/
|
|
735
|
-
export declare interface UploadOnBeforeUploadEvent extends BaseUploadEvent<any> {
|
|
736
|
-
/**
|
|
737
|
-
* The files that will be sent with the request.
|
|
738
|
-
*/
|
|
739
|
-
files: Array<UploadFileInfo>;
|
|
740
|
-
/**
|
|
741
|
-
* The headers that will be sent with the request. Can be modified.
|
|
742
|
-
*/
|
|
743
|
-
headers: UploadHttpHeaders;
|
|
744
|
-
/**
|
|
745
|
-
* The additional data that will be sent with the request. Can be modified.
|
|
746
|
-
*/
|
|
747
|
-
additionalData: UploadAdditionalData;
|
|
748
|
-
}
|
|
749
|
-
|
|
750
|
-
/**
|
|
751
|
-
* The `onCancel` event.
|
|
752
|
-
*/
|
|
753
|
-
export declare interface UploadOnCancelEvent extends BaseUploadEvent<any> {
|
|
754
|
-
/**
|
|
755
|
-
* The unique identifier of the group (batch) of one or more files that is cancelled.
|
|
756
|
-
*/
|
|
757
|
-
uid: string;
|
|
758
|
-
}
|
|
759
|
-
|
|
760
|
-
/**
|
|
761
|
-
* The `onProgress` event.
|
|
762
|
-
*/
|
|
763
|
-
export declare interface UploadOnProgressEvent extends BaseUploadEvent<any> {
|
|
764
|
-
/**
|
|
765
|
-
* The new updated state candidate.
|
|
766
|
-
*/
|
|
767
|
-
newState: Array<UploadFileInfo>;
|
|
768
|
-
/**
|
|
769
|
-
* The list of the affected files.
|
|
770
|
-
*/
|
|
771
|
-
affectedFiles: Array<UploadFileInfo>;
|
|
772
|
-
}
|
|
773
|
-
|
|
774
|
-
/**
|
|
775
|
-
* The `onRemove` event.
|
|
776
|
-
*/
|
|
777
|
-
export declare interface UploadOnRemoveEvent extends BaseUploadEvent<any> {
|
|
778
|
-
/**
|
|
779
|
-
* The new updated state candidate.
|
|
780
|
-
*/
|
|
781
|
-
newState: Array<UploadFileInfo>;
|
|
782
|
-
/**
|
|
783
|
-
* The list of the affected files.
|
|
784
|
-
*/
|
|
785
|
-
affectedFiles: Array<UploadFileInfo>;
|
|
786
|
-
/**
|
|
787
|
-
* The server response (if available).
|
|
788
|
-
*/
|
|
789
|
-
response?: UploadResponse;
|
|
790
|
-
}
|
|
791
|
-
|
|
792
|
-
/**
|
|
793
|
-
* The `onStatusChange` event.
|
|
794
|
-
*/
|
|
795
|
-
export declare interface UploadOnStatusChangeEvent extends BaseUploadEvent<any> {
|
|
796
|
-
/**
|
|
797
|
-
* The new updated state candidate.
|
|
798
|
-
*/
|
|
799
|
-
newState: Array<UploadFileInfo>;
|
|
800
|
-
/**
|
|
801
|
-
* The list of the affected files.
|
|
802
|
-
*/
|
|
803
|
-
affectedFiles: Array<UploadFileInfo>;
|
|
804
|
-
/**
|
|
805
|
-
* The server response (if available).
|
|
806
|
-
*/
|
|
807
|
-
response?: UploadResponse;
|
|
808
|
-
}
|
|
809
|
-
|
|
810
|
-
/**
|
|
811
|
-
* Represents the props of the [Kendo Ui for Vue Upload component]({% slug overview_upload %}).
|
|
812
|
-
*/
|
|
813
|
-
export declare interface UploadProps extends UploadAsyncProps {
|
|
814
|
-
/**
|
|
815
|
-
* Sets a class of the Upload DOM element.
|
|
816
|
-
*/
|
|
817
|
-
className?: string;
|
|
818
|
-
/**
|
|
819
|
-
* Enables the selection of multiple files
|
|
820
|
-
* ([see example]({% slug fileprocessing_upload %}#toc-upload-of-single-or-multiple-files)).
|
|
821
|
-
* If set to `false`, only one file can be selected at a time.
|
|
822
|
-
*/
|
|
823
|
-
multiple?: boolean;
|
|
824
|
-
/**
|
|
825
|
-
* Disables the Upload ([see example]({% slug disabledstate_upload %})). Defaults to `false`.
|
|
826
|
-
*/
|
|
827
|
-
disabled?: boolean;
|
|
828
|
-
/**
|
|
829
|
-
* Toggles the visibility of the file list.
|
|
830
|
-
*/
|
|
831
|
-
showFileList?: boolean;
|
|
832
|
-
/**
|
|
833
|
-
* When the `autoUpload` option is set to `false`,
|
|
834
|
-
* `showActionButtons` toggles the visibility of the action buttons which are rendered.
|
|
835
|
-
*/
|
|
836
|
-
showActionButtons?: boolean;
|
|
837
|
-
/**
|
|
838
|
-
* Specifies the possible layouts of the action buttons
|
|
839
|
-
* ([see example]({% slug actionbuttons_upload %})). Defaults to `end`.
|
|
840
|
-
*/
|
|
841
|
-
actionsLayout?: UploadActionsLayout;
|
|
842
|
-
/**
|
|
843
|
-
* Specifies the [`tabindex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex)
|
|
844
|
-
* of the Upload.
|
|
845
|
-
*/
|
|
846
|
-
tabIndex?: number | string;
|
|
847
|
-
/**
|
|
848
|
-
* Specifies the id of the component.
|
|
849
|
-
*/
|
|
850
|
-
id?: string;
|
|
851
|
-
/**
|
|
852
|
-
* Identifies the element(s) which will describe the component, similar
|
|
853
|
-
* to HTML aria-describedby attribute For example these elements
|
|
854
|
-
* could contain error or hint message.
|
|
855
|
-
*/
|
|
856
|
-
ariaDescribedBy?: string;
|
|
857
|
-
/**
|
|
858
|
-
* Identifies the element(s) which will label the component.
|
|
859
|
-
*/
|
|
860
|
-
ariaLabelledBy?: string;
|
|
861
|
-
/**
|
|
862
|
-
* Sets the `accept` attribute of the `input` element of the Upload.
|
|
863
|
-
*/
|
|
864
|
-
accept?: string;
|
|
865
|
-
/**
|
|
866
|
-
* Sets the restrictions for the selected files ([see example]({% slug filerestrictions_upload %})).
|
|
867
|
-
*/
|
|
868
|
-
restrictions?: UploadFileRestrictions;
|
|
869
|
-
/**
|
|
870
|
-
* Sets the custom restrictions for the selected files ([see example]({% slug filerestrictions_upload %})).
|
|
871
|
-
*/
|
|
872
|
-
validateFile?: (file: UploadFileInfo) => void;
|
|
873
|
-
/**
|
|
874
|
-
* The list of files which are displayed when the Upload is in controlled mode
|
|
875
|
-
* ([see example]({% slug controleduncontroled_upload %})).
|
|
876
|
-
*/
|
|
877
|
-
files?: Array<UploadFileInfo>;
|
|
878
|
-
/**
|
|
879
|
-
* The initial list of files which are displayed when the Upload is in
|
|
880
|
-
* uncontrolled mode ([see example]({% slug controleduncontroled_upload %})).
|
|
881
|
-
*/
|
|
882
|
-
defaultFiles?: Array<UploadFileInfo>;
|
|
883
|
-
/**
|
|
884
|
-
* The component that will be rendered as a list item inside the Upload.
|
|
885
|
-
*/
|
|
886
|
-
list?: any;
|
|
887
|
-
/**
|
|
888
|
-
* Fires when new files are selected for upload.
|
|
889
|
-
*/
|
|
890
|
-
onAdd?: (event: UploadOnAddEvent) => void;
|
|
891
|
-
/**
|
|
892
|
-
* Fires when files are removed. Optionally, if a request is made, can contain a server response.
|
|
893
|
-
*/
|
|
894
|
-
onRemove?: (event: UploadOnRemoveEvent) => void;
|
|
895
|
-
/**
|
|
896
|
-
* Fires when the status of the files is changed. Optionally, if a request is made, can contain a server response.
|
|
897
|
-
*/
|
|
898
|
-
onStatuschange?: (event: UploadOnStatusChangeEvent) => void;
|
|
899
|
-
/**
|
|
900
|
-
* Fires when the progress of the file upload is changed.
|
|
901
|
-
*/
|
|
902
|
-
onProgress?: (event: UploadOnProgressEvent) => void;
|
|
903
|
-
/**
|
|
904
|
-
* Fires before a request for a file upload is made. Can be used to add extra data to the request.
|
|
905
|
-
*/
|
|
906
|
-
onBeforeupload?: (event: UploadOnBeforeUploadEvent) => void;
|
|
907
|
-
/**
|
|
908
|
-
* Fires before a request for a file removal is made. Can be used to add extra data to the request.
|
|
909
|
-
*/
|
|
910
|
-
onBeforeremove?: (event: UploadOnBeforeRemoveEvent) => void;
|
|
911
|
-
/**
|
|
912
|
-
* Fires when user clicks on the **Remove** button while the file upload is in progress.
|
|
913
|
-
* Can be used when the `saveUrl` option is set to a function that cancels custom requests.
|
|
914
|
-
*/
|
|
915
|
-
onCancel?: (event: UploadOnCancelEvent) => void;
|
|
916
|
-
}
|
|
917
|
-
|
|
918
|
-
/**
|
|
919
|
-
* Represents the response type of the Upload.
|
|
920
|
-
*/
|
|
921
|
-
export declare interface UploadResponse {
|
|
922
|
-
/**
|
|
923
|
-
* The response that was provided by the server.
|
|
924
|
-
*/
|
|
925
|
-
response: any;
|
|
926
|
-
/**
|
|
927
|
-
* The HTTP status code from the server response.
|
|
928
|
-
*/
|
|
929
|
-
status: number;
|
|
930
|
-
/**
|
|
931
|
-
* The HTTP status message from the server response.
|
|
932
|
-
*/
|
|
933
|
-
statusText: string;
|
|
934
|
-
/**
|
|
935
|
-
* The headers with which the server responded.
|
|
936
|
-
*/
|
|
937
|
-
headers: any;
|
|
938
|
-
/**
|
|
939
|
-
* The XMLHttpRequest instance of the browser.
|
|
940
|
-
*/
|
|
941
|
-
request?: XMLHttpRequest;
|
|
942
|
-
}
|
|
943
|
-
|
|
944
|
-
/**
|
|
945
|
-
* @hidden
|
|
946
|
-
*/
|
|
947
|
-
export declare const UploadUI: DefineComponent<ExtractPropTypes< {
|
|
948
|
-
async: PropType<Object>;
|
|
949
|
-
className: PropType<string>;
|
|
950
|
-
multiple: {
|
|
951
|
-
type: PropType<boolean>;
|
|
952
|
-
default: boolean;
|
|
953
|
-
};
|
|
954
|
-
disabled: {
|
|
955
|
-
type: PropType<boolean>;
|
|
956
|
-
default: boolean;
|
|
957
|
-
};
|
|
958
|
-
showFileList: PropType<boolean>;
|
|
959
|
-
showActionButtons: PropType<boolean>;
|
|
960
|
-
actionsLayout: {
|
|
961
|
-
type: PropType<string>;
|
|
962
|
-
default: () => string;
|
|
963
|
-
};
|
|
964
|
-
tabIndex: PropType<number>;
|
|
965
|
-
accept: PropType<string>;
|
|
966
|
-
groupedFiles: {
|
|
967
|
-
type: PropType<GroupedFiles>;
|
|
968
|
-
default: () => {};
|
|
969
|
-
};
|
|
970
|
-
navigationIndex: PropType<number>;
|
|
971
|
-
notFocusedIndex: PropType<number>;
|
|
972
|
-
list: PropType<any>;
|
|
973
|
-
id: PropType<string>;
|
|
974
|
-
ariaLabelledBy: PropType<string>;
|
|
975
|
-
ariaDescribedBy: PropType<string>;
|
|
976
|
-
}>, {
|
|
977
|
-
containerRef: Ref<any, any>;
|
|
978
|
-
uploadDropZoneRef: Ref<any, any>;
|
|
979
|
-
}, {}, {
|
|
980
|
-
groupsCount(): number;
|
|
981
|
-
lastGroupIndex(): number;
|
|
982
|
-
addButtonIndex(): number;
|
|
983
|
-
clearButtonIndex(): number;
|
|
984
|
-
uploadButtonIndex(): number;
|
|
985
|
-
isRtl(): boolean;
|
|
986
|
-
}, {
|
|
987
|
-
actionElement(): any;
|
|
988
|
-
focus(): any;
|
|
989
|
-
onAdd(files: FileList): void;
|
|
990
|
-
onRetry(uid: string): void;
|
|
991
|
-
onCancel(uid: string): void;
|
|
992
|
-
onClear(): void;
|
|
993
|
-
onUpload(): void;
|
|
994
|
-
onRemove(uid: string): void;
|
|
995
|
-
onKeyDown(event: KeyboardEvent): void;
|
|
996
|
-
onFocus(event: any): void;
|
|
997
|
-
onBlur(event: any): void;
|
|
998
|
-
onClick(navIndex: number | undefined): void;
|
|
999
|
-
}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1000
|
-
add: any;
|
|
1001
|
-
retry: any;
|
|
1002
|
-
cancel: any;
|
|
1003
|
-
clear: any;
|
|
1004
|
-
upload: any;
|
|
1005
|
-
remove: any;
|
|
1006
|
-
keydown: any;
|
|
1007
|
-
click: any;
|
|
1008
|
-
focus: any;
|
|
1009
|
-
blur: any;
|
|
1010
|
-
}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
1011
|
-
async: PropType<Object>;
|
|
1012
|
-
className: PropType<string>;
|
|
1013
|
-
multiple: {
|
|
1014
|
-
type: PropType<boolean>;
|
|
1015
|
-
default: boolean;
|
|
1016
|
-
};
|
|
1017
|
-
disabled: {
|
|
1018
|
-
type: PropType<boolean>;
|
|
1019
|
-
default: boolean;
|
|
1020
|
-
};
|
|
1021
|
-
showFileList: PropType<boolean>;
|
|
1022
|
-
showActionButtons: PropType<boolean>;
|
|
1023
|
-
actionsLayout: {
|
|
1024
|
-
type: PropType<string>;
|
|
1025
|
-
default: () => string;
|
|
1026
|
-
};
|
|
1027
|
-
tabIndex: PropType<number>;
|
|
1028
|
-
accept: PropType<string>;
|
|
1029
|
-
groupedFiles: {
|
|
1030
|
-
type: PropType<GroupedFiles>;
|
|
1031
|
-
default: () => {};
|
|
1032
|
-
};
|
|
1033
|
-
navigationIndex: PropType<number>;
|
|
1034
|
-
notFocusedIndex: PropType<number>;
|
|
1035
|
-
list: PropType<any>;
|
|
1036
|
-
id: PropType<string>;
|
|
1037
|
-
ariaLabelledBy: PropType<string>;
|
|
1038
|
-
ariaDescribedBy: PropType<string>;
|
|
1039
|
-
}>> & Readonly<{
|
|
1040
|
-
onClick?: (...args: any[] | unknown[]) => any;
|
|
1041
|
-
onBlur?: (...args: any[] | unknown[]) => any;
|
|
1042
|
-
onCancel?: (...args: any[] | unknown[]) => any;
|
|
1043
|
-
onFocus?: (...args: any[] | unknown[]) => any;
|
|
1044
|
-
onKeydown?: (...args: any[] | unknown[]) => any;
|
|
1045
|
-
onClear?: (...args: any[] | unknown[]) => any;
|
|
1046
|
-
onAdd?: (...args: any[] | unknown[]) => any;
|
|
1047
|
-
onRemove?: (...args: any[] | unknown[]) => any;
|
|
1048
|
-
onRetry?: (...args: any[] | unknown[]) => any;
|
|
1049
|
-
onUpload?: (...args: any[] | unknown[]) => any;
|
|
1050
|
-
}>, {
|
|
1051
|
-
disabled: boolean;
|
|
1052
|
-
multiple: boolean;
|
|
1053
|
-
groupedFiles: GroupedFiles;
|
|
1054
|
-
actionsLayout: string;
|
|
1055
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
1056
|
-
|
|
1057
|
-
/**
|
|
1058
|
-
* @hidden
|
|
1059
|
-
*/
|
|
1060
|
-
export declare interface UploadUIProps extends UploadAsyncProps {
|
|
1061
|
-
className?: string;
|
|
1062
|
-
multiple?: boolean;
|
|
1063
|
-
disabled?: boolean;
|
|
1064
|
-
showFileList?: boolean;
|
|
1065
|
-
showActionButtons?: boolean;
|
|
1066
|
-
actionsLayout?: string;
|
|
1067
|
-
tabIndex?: number;
|
|
1068
|
-
accept?: string;
|
|
1069
|
-
groupedFiles: GroupedFiles;
|
|
1070
|
-
navigationIndex?: number;
|
|
1071
|
-
notFocusedIndex?: number;
|
|
1072
|
-
list?: any;
|
|
1073
|
-
id?: string;
|
|
1074
|
-
ariaLabelledBy?: string;
|
|
1075
|
-
ariaDescribedBy?: string;
|
|
1076
|
-
async?: Object;
|
|
1077
|
-
addButtonIndex?: number;
|
|
1078
|
-
restrictions?: UploadFileRestrictions;
|
|
1079
|
-
files: UploadFileInfo[];
|
|
1080
|
-
defaultFiles?: UploadFileInfo[];
|
|
1081
|
-
}
|
|
1082
|
-
|
|
1083
|
-
/**
|
|
1084
|
-
* @hidden
|
|
1085
|
-
*/
|
|
1086
|
-
export declare const utils: {
|
|
1087
|
-
fileHasValidationErrors: Function;
|
|
1088
|
-
filesHaveValidationErrors: Function;
|
|
1089
|
-
getTotalFilesSizeMessage: Function;
|
|
1090
|
-
getAllFileInfo: Function;
|
|
1091
|
-
getFileInfo: Function;
|
|
1092
|
-
getFileExtension: Function;
|
|
1093
|
-
htmlEncode: Function;
|
|
1094
|
-
assignGuidToFiles: Function;
|
|
1095
|
-
getFileStatus: (currentFiles: GroupedFiles | UploadFileInfo[]) => boolean[];
|
|
1096
|
-
};
|
|
1097
|
-
|
|
1098
|
-
export { }
|
|
8
|
+
import { UploadUIProps, UploadUI } from './UploadUI.js';
|
|
9
|
+
import { Upload } from './Upload.js';
|
|
10
|
+
import { UploadListSingleItem } from './UploadListSingleItem.js';
|
|
11
|
+
import { UploadListMultiItem } from './UploadListMultiItem.js';
|
|
12
|
+
import { default as utils } from './utils/utils.js';
|
|
13
|
+
import { UploadListActionButton } from './UploadListActionButton.js';
|
|
14
|
+
import { UploadOnAddEvent } from './interfaces/UploadOnAddEvent.js';
|
|
15
|
+
import { UploadOnBeforeRemoveEvent } from './interfaces/UploadOnBeforeRemoveEvent.js';
|
|
16
|
+
import { UploadOnBeforeUploadEvent } from './interfaces/UploadOnBeforeUploadEvent.js';
|
|
17
|
+
import { UploadOnProgressEvent } from './interfaces/UploadOnProgressEvent.js';
|
|
18
|
+
import { UploadOnRemoveEvent } from './interfaces/UploadOnRemoveEvent.js';
|
|
19
|
+
import { UploadOnStatusChangeEvent } from './interfaces/UploadOnStatusChangeEvent.js';
|
|
20
|
+
import { UploadAdditionalData } from './interfaces/UploadAdditionalData.js';
|
|
21
|
+
import { UploadAsyncProps } from './interfaces/UploadAsyncProps.js';
|
|
22
|
+
import { UploadFileInfo } from './interfaces/UploadFileInfo.js';
|
|
23
|
+
import { UploadFileRestrictions } from './interfaces/UploadFileRestrictions.js';
|
|
24
|
+
import { UploadFileStatus } from './interfaces/UploadFileStatus.js';
|
|
25
|
+
import { UploadHttpHeaders } from './interfaces/UploadHttpHeaders.js';
|
|
26
|
+
import { UploadResponse } from './interfaces/UploadResponse.js';
|
|
27
|
+
import { UploadListItemProps } from './interfaces/UploadListItemProps.js';
|
|
28
|
+
import { UploadProps } from './interfaces/UploadProps.js';
|
|
29
|
+
import { UploadOnCancelEvent } from './interfaces/UploadOnCancelEvent.js';
|
|
30
|
+
import { UploadActionsLayout } from './interfaces/UploadActionsLayout.js';
|
|
31
|
+
import { messages } from './messages/main.js';
|
|
32
|
+
import { ExternalDropZone } from './ExternalDropZone.js';
|
|
33
|
+
export { UploadUI, Upload, UploadFileStatus, ExternalDropZone, UploadListSingleItem, UploadListMultiItem, UploadListActionButton, utils, messages };
|
|
34
|
+
export type { UploadUIProps, UploadFileRestrictions, UploadProps, UploadOnAddEvent, UploadOnBeforeRemoveEvent, UploadOnBeforeUploadEvent, UploadOnProgressEvent, UploadOnRemoveEvent, UploadOnStatusChangeEvent, UploadOnCancelEvent, UploadResponse, UploadAdditionalData, UploadAsyncProps, UploadFileInfo, UploadHttpHeaders, UploadListItemProps, UploadActionsLayout };
|