@progress/kendo-angular-upload 19.1.2-develop.1 → 19.1.2-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/common/action-buttons-layout.d.ts +1 -1
- package/common/base.d.ts +15 -11
- package/directives.d.ts +3 -3
- package/dropzone-external.directive.d.ts +12 -4
- package/dropzone.component.d.ts +16 -9
- package/esm2022/common/base.mjs +15 -11
- package/esm2022/directives.mjs +3 -3
- package/esm2022/dropzone-external.directive.mjs +12 -4
- package/esm2022/dropzone.component.mjs +16 -9
- package/esm2022/events/cancel-event.mjs +7 -16
- package/esm2022/events/clear-event.mjs +5 -12
- package/esm2022/events/error-event.mjs +7 -13
- package/esm2022/events/pause-event.mjs +5 -12
- package/esm2022/events/remove-event.mjs +8 -12
- package/esm2022/events/resume-event.mjs +5 -12
- package/esm2022/events/select-event.mjs +5 -11
- package/esm2022/events/success-event.mjs +6 -12
- package/esm2022/events/upload-event.mjs +7 -34
- package/esm2022/events/upload-progress-event.mjs +5 -11
- package/esm2022/fileselect.component.mjs +16 -6
- package/esm2022/localization/messages.mjs +42 -0
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/templates/file-info-template.directive.mjs +5 -6
- package/esm2022/templates/file-template.directive.mjs +5 -6
- package/esm2022/types/file-state.mjs +5 -5
- package/esm2022/upload.component.mjs +73 -56
- package/events/cancel-event.d.ts +7 -16
- package/events/clear-event.d.ts +5 -12
- package/events/error-event.d.ts +7 -13
- package/events/pause-event.d.ts +5 -12
- package/events/remove-event.d.ts +8 -12
- package/events/resume-event.d.ts +5 -12
- package/events/select-event.d.ts +5 -11
- package/events/success-event.d.ts +6 -12
- package/events/upload-event.d.ts +7 -34
- package/events/upload-progress-event.d.ts +5 -11
- package/fesm2022/progress-kendo-angular-upload.mjs +254 -253
- package/fileselect.component.d.ts +14 -4
- package/localization/messages.d.ts +42 -0
- package/package.json +8 -8
- package/schematics/ngAdd/index.js +3 -3
- package/templates/file-info-template.directive.d.ts +5 -6
- package/templates/file-template.directive.d.ts +5 -6
- package/types/chunk-metadata.d.ts +3 -3
- package/types/chunk-settings.d.ts +4 -4
- package/types/file-restrictions.d.ts +4 -5
- package/types/file-state.d.ts +5 -5
- package/types/operation-type.d.ts +1 -1
- package/upload.component.d.ts +71 -54
package/upload.component.d.ts
CHANGED
@@ -22,6 +22,11 @@ import * as i0 from "@angular/core";
|
|
22
22
|
export declare const UPLOAD_VALUE_ACCESSOR: any;
|
23
23
|
/**
|
24
24
|
* Represents the [Kendo UI Upload component for Angular]({% slug overview_upload %}).
|
25
|
+
*
|
26
|
+
* @example
|
27
|
+
* ```html
|
28
|
+
* <kendo-upload> </kendo-upload>
|
29
|
+
* ```
|
25
30
|
*/
|
26
31
|
export declare class UploadComponent extends UploadFileSelectBase implements OnInit, OnDestroy, ControlValueAccessor {
|
27
32
|
protected uploadService: UploadService;
|
@@ -33,101 +38,106 @@ export declare class UploadComponent extends UploadFileSelectBase implements OnI
|
|
33
38
|
protected cdr: ChangeDetectorRef;
|
34
39
|
protected injector: Injector;
|
35
40
|
/**
|
36
|
-
*
|
41
|
+
* Specifies whether selected files upload automatically
|
37
42
|
* ([see example]({% slug fileprocessing_upload %}#toc-automatic-upload-of-files)).
|
38
|
-
*
|
43
|
+
* Set `autoUpload` to `false` to change this behavior.
|
44
|
+
*
|
45
|
+
* @default true
|
39
46
|
*/
|
40
47
|
set autoUpload(autoUpload: boolean);
|
41
48
|
get autoUpload(): boolean;
|
42
49
|
/**
|
43
|
-
*
|
50
|
+
* Specifies whether all files in the selection upload in a single request
|
44
51
|
* ([see example]({% slug fileprocessing_upload %}#toc-upload-of-batches-of-files)).
|
45
|
-
*
|
52
|
+
* Files selected one after the other upload in separate requests.
|
53
|
+
*
|
54
|
+
* @default false
|
46
55
|
*/
|
47
56
|
set batch(batch: boolean);
|
48
57
|
get batch(): boolean;
|
49
58
|
/**
|
50
|
-
*
|
59
|
+
* Specifies whether credentials (cookies, headers) are sent for cross-site requests
|
51
60
|
* ([see example]({% slug credentials_upload %}#toc-attaching-credentials-to-requests)).
|
52
|
-
*
|
53
|
-
*
|
54
|
-
*
|
61
|
+
* Set `withCredentials` has no effect on same-site requests.
|
62
|
+
* Use the `saveHeaders` or `removeHeaders` property to add credentials to the request.
|
63
|
+
* You can also use the [`upload`]({% slug api_upload_uploadevent %}) event.
|
64
|
+
*
|
65
|
+
* @default true
|
55
66
|
*/
|
56
67
|
set withCredentials(withCredentials: boolean);
|
57
68
|
get withCredentials(): boolean;
|
58
69
|
/**
|
59
|
-
*
|
60
|
-
*
|
70
|
+
* Specifies the [`FormData`](https://developer.mozilla.org/en-US/docs/Web/API/FormData) key which contains the files submitted to `saveUrl`.
|
71
|
+
*
|
61
72
|
*/
|
62
73
|
set saveField(saveField: string);
|
63
74
|
get saveField(): string;
|
64
75
|
/**
|
65
|
-
*
|
66
|
-
* that are attached to each upload request.
|
76
|
+
* Specifies the [`HttpHeaders`](https://angular.io/api/common/http/HttpHeaders) attached to each upload request.
|
67
77
|
*/
|
68
78
|
set saveHeaders(saveHeaders: HttpHeaders);
|
69
79
|
get saveHeaders(): HttpHeaders;
|
70
80
|
/**
|
71
|
-
*
|
72
|
-
*
|
81
|
+
* Specifies the [`RequestMethod`](https://angular.io/api/http/RequestMethod) of the upload request.
|
82
|
+
*
|
73
83
|
*/
|
74
84
|
set saveMethod(saveMethod: string);
|
75
85
|
get saveMethod(): string;
|
76
86
|
/**
|
77
|
-
*
|
78
|
-
* The request [`FormData`](https://developer.mozilla.org/en-US/docs/Web/API/FormData) key
|
79
|
-
*
|
87
|
+
* Specifies the URL of the endpoint for the upload request.
|
88
|
+
* The request [`FormData`](https://developer.mozilla.org/en-US/docs/Web/API/FormData) key uses the name from the `saveField` property.
|
89
|
+
* This key contains the list of files to be uploaded.
|
80
90
|
*/
|
81
91
|
set saveUrl(saveUrl: string);
|
82
92
|
get saveUrl(): string;
|
83
93
|
/**
|
84
|
-
*
|
85
|
-
*
|
94
|
+
* Specifies the expected [`response type`](https://angular.io/api/common/http/HttpRequest#responseType) of the server.
|
95
|
+
* The response type determines how the response is parsed.
|
96
|
+
*
|
86
97
|
* @default 'json'
|
87
98
|
*/
|
88
99
|
set responseType(responseType: 'arraybuffer' | 'blob' | 'json' | 'text');
|
89
100
|
get responseType(): 'arraybuffer' | 'blob' | 'json' | 'text';
|
90
101
|
/**
|
91
|
-
*
|
92
|
-
*
|
93
|
-
* The default value is `fileNames`.
|
102
|
+
* Specifies the [`FormData`](https://developer.mozilla.org/en-US/docs/Web/API/FormData) key which contains the list of file names submitted to `removeUrl`.
|
103
|
+
*
|
94
104
|
*/
|
95
105
|
set removeField(removeField: string);
|
96
106
|
get removeField(): string;
|
97
107
|
/**
|
98
|
-
*
|
99
|
-
* that are attached to each `remove` request.
|
108
|
+
* Specifies the [`HttpHeaders`](https://angular.io/api/common/http/HttpHeaders) attached to each `remove` request.
|
100
109
|
*/
|
101
110
|
set removeHeaders(removeHeaders: HttpHeaders);
|
102
111
|
get removeHeaders(): HttpHeaders;
|
103
112
|
/**
|
104
|
-
*
|
105
|
-
*
|
113
|
+
* Specifies the [`RequestMethod`](https://angular.io/api/http/RequestMethod) of the `remove` request.
|
114
|
+
*
|
106
115
|
*/
|
107
116
|
set removeMethod(removeMethod: string);
|
108
117
|
get removeMethod(): string;
|
109
118
|
/**
|
110
|
-
*
|
111
|
-
* The [`FormData`](https://developer.mozilla.org/en-US/docs/Web/API/FormData) request key
|
112
|
-
*
|
119
|
+
* Specifies the URL of the endpoint for the `remove` request.
|
120
|
+
* The [`FormData`](https://developer.mozilla.org/en-US/docs/Web/API/FormData) request key uses the name from the `removeField` property.
|
121
|
+
* This key contains the list of file names to be removed.
|
113
122
|
*/
|
114
123
|
set removeUrl(removeUrl: string);
|
115
124
|
get removeUrl(): string;
|
116
125
|
/**
|
117
|
-
*
|
126
|
+
* Specifies whether the chunk functionality of the Upload is enabled.
|
118
127
|
*
|
119
128
|
* @default false
|
120
129
|
*/
|
121
130
|
chunkable: ChunkSettings | boolean;
|
122
131
|
/**
|
123
|
-
* Specifies
|
132
|
+
* Specifies whether selected files upload simultaneously or one by one.
|
124
133
|
*
|
125
134
|
* @default true
|
126
135
|
*/
|
127
136
|
set concurrent(concurrent: boolean);
|
128
137
|
get concurrent(): boolean;
|
129
138
|
/**
|
130
|
-
*
|
139
|
+
* Specifies whether the file list is visible.
|
140
|
+
*
|
131
141
|
* @default true
|
132
142
|
*/
|
133
143
|
showFileList: boolean;
|
@@ -137,7 +147,9 @@ export declare class UploadComponent extends UploadFileSelectBase implements OnI
|
|
137
147
|
set tabIndex(tabIndex: number);
|
138
148
|
get tabIndex(): number;
|
139
149
|
/**
|
140
|
-
* Specifies the
|
150
|
+
* Specifies the layout of the action buttons.
|
151
|
+
*
|
152
|
+
* @default 'end'
|
141
153
|
*/
|
142
154
|
actionsLayout: ActionsLayout;
|
143
155
|
fileSelectInput: ElementRef;
|
@@ -146,39 +158,41 @@ export declare class UploadComponent extends UploadFileSelectBase implements OnI
|
|
146
158
|
*/
|
147
159
|
cancel: EventEmitter<CancelEvent>;
|
148
160
|
/**
|
149
|
-
* Fires when the file list is about to be cleared.
|
161
|
+
* Fires when the file list is about to be cleared.
|
162
|
+
* Prevent this event to keep the files in the list.
|
150
163
|
*/
|
151
164
|
clear: EventEmitter<ClearEvent>;
|
152
165
|
/**
|
153
|
-
* Fires when all active uploads
|
166
|
+
* Fires when all active uploads complete successfully or with errors.
|
154
167
|
*/
|
155
168
|
complete: EventEmitter<any>;
|
156
169
|
/**
|
157
|
-
* Fires when an `upload` or `remove` operation
|
170
|
+
* Fires when an `upload` or `remove` operation fails.
|
158
171
|
*/
|
159
172
|
error: EventEmitter<ErrorEvent>;
|
160
173
|
/**
|
161
|
-
* Fires when the upload of a file
|
174
|
+
* Fires when the upload of a file is paused.
|
162
175
|
*/
|
163
176
|
pause: EventEmitter<any>;
|
164
177
|
/**
|
165
|
-
* Fires when the upload of a file
|
178
|
+
* Fires when the upload of a file is resumed.
|
166
179
|
*/
|
167
180
|
resume: EventEmitter<any>;
|
168
181
|
/**
|
169
|
-
* Fires when an `upload` or `remove` operation
|
182
|
+
* Fires when an `upload` or `remove` operation completes successfully.
|
170
183
|
*/
|
171
184
|
success: EventEmitter<SuccessEvent>;
|
172
185
|
/**
|
173
|
-
* Fires when one or more files are about to be uploaded.
|
186
|
+
* Fires when one or more files are about to be uploaded.
|
187
|
+
* Prevent this event to stop the files from uploading and being added to the file list.
|
174
188
|
*/
|
175
189
|
upload: EventEmitter<UploadEvent>;
|
176
190
|
/**
|
177
|
-
* Fires when one or more files are
|
191
|
+
* Fires when one or more files are uploading.
|
178
192
|
*/
|
179
193
|
uploadProgress: EventEmitter<UploadProgressEvent>;
|
180
194
|
/**
|
181
|
-
* Fires when the
|
195
|
+
* Fires when the component value changes after a successful `upload`, `remove`, or `clear` operation.
|
182
196
|
*/
|
183
197
|
valueChange: EventEmitter<Array<FileInfo>>;
|
184
198
|
get dir(): string;
|
@@ -220,39 +234,42 @@ export declare class UploadComponent extends UploadFileSelectBase implements OnI
|
|
220
234
|
};
|
221
235
|
/**
|
222
236
|
* Pauses the upload process of a file that is currently uploading.
|
223
|
-
*
|
237
|
+
* This method requires the `chunkable` option of the Upload to be enabled.
|
224
238
|
*
|
225
|
-
* @param uid
|
239
|
+
* @param uid The `uid` of the file that will be paused.
|
226
240
|
*/
|
227
241
|
pauseFileByUid(uid: string): void;
|
228
242
|
/**
|
229
|
-
* Resumes the upload process for a file that
|
230
|
-
*
|
243
|
+
* Resumes the upload process for a file that was previously paused.
|
244
|
+
* This method requires the `chunkable` option of the Upload to be enabled.
|
231
245
|
*
|
232
|
-
* @param uid
|
246
|
+
* @param uid The `uid` of the file that will be resumed.
|
233
247
|
*/
|
234
248
|
resumeFileByUid(uid: string): void;
|
235
249
|
/**
|
236
|
-
*
|
237
|
-
*
|
250
|
+
* Removes a file or a batch of files.
|
251
|
+
*
|
252
|
+
* @param uid The `uid` of the file or a batch of files that will be removed.
|
238
253
|
*/
|
239
254
|
removeFilesByUid(uid: string): void;
|
240
255
|
/**
|
241
|
-
*
|
242
|
-
*
|
256
|
+
* Retries the upload of a file or batch of files that failed to upload.
|
257
|
+
*
|
258
|
+
* @param uid The `uid` of the file or a batch of files to be retried.
|
243
259
|
*/
|
244
260
|
retryUploadByUid(uid: string): void;
|
245
261
|
/**
|
246
262
|
* Cancels the upload of a file or a batch of files.
|
247
|
-
*
|
263
|
+
*
|
264
|
+
* @param uid The `uid` of the file or a batch of files that will be canceled.
|
248
265
|
*/
|
249
266
|
cancelUploadByUid(uid: string): void;
|
250
267
|
/**
|
251
|
-
* Uploads the currently selected files
|
268
|
+
* Uploads the currently selected files that pass the set restrictions.
|
252
269
|
*/
|
253
270
|
uploadFiles(): void;
|
254
271
|
/**
|
255
|
-
*
|
272
|
+
* Clears all files from the UI without sending requests to the remove handler.
|
256
273
|
*/
|
257
274
|
clearFiles(): void;
|
258
275
|
/**
|