@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.
Files changed (49) hide show
  1. package/common/action-buttons-layout.d.ts +1 -1
  2. package/common/base.d.ts +15 -11
  3. package/directives.d.ts +3 -3
  4. package/dropzone-external.directive.d.ts +12 -4
  5. package/dropzone.component.d.ts +16 -9
  6. package/esm2022/common/base.mjs +15 -11
  7. package/esm2022/directives.mjs +3 -3
  8. package/esm2022/dropzone-external.directive.mjs +12 -4
  9. package/esm2022/dropzone.component.mjs +16 -9
  10. package/esm2022/events/cancel-event.mjs +7 -16
  11. package/esm2022/events/clear-event.mjs +5 -12
  12. package/esm2022/events/error-event.mjs +7 -13
  13. package/esm2022/events/pause-event.mjs +5 -12
  14. package/esm2022/events/remove-event.mjs +8 -12
  15. package/esm2022/events/resume-event.mjs +5 -12
  16. package/esm2022/events/select-event.mjs +5 -11
  17. package/esm2022/events/success-event.mjs +6 -12
  18. package/esm2022/events/upload-event.mjs +7 -34
  19. package/esm2022/events/upload-progress-event.mjs +5 -11
  20. package/esm2022/fileselect.component.mjs +16 -6
  21. package/esm2022/localization/messages.mjs +42 -0
  22. package/esm2022/package-metadata.mjs +2 -2
  23. package/esm2022/templates/file-info-template.directive.mjs +5 -6
  24. package/esm2022/templates/file-template.directive.mjs +5 -6
  25. package/esm2022/types/file-state.mjs +5 -5
  26. package/esm2022/upload.component.mjs +73 -56
  27. package/events/cancel-event.d.ts +7 -16
  28. package/events/clear-event.d.ts +5 -12
  29. package/events/error-event.d.ts +7 -13
  30. package/events/pause-event.d.ts +5 -12
  31. package/events/remove-event.d.ts +8 -12
  32. package/events/resume-event.d.ts +5 -12
  33. package/events/select-event.d.ts +5 -11
  34. package/events/success-event.d.ts +6 -12
  35. package/events/upload-event.d.ts +7 -34
  36. package/events/upload-progress-event.d.ts +5 -11
  37. package/fesm2022/progress-kendo-angular-upload.mjs +254 -253
  38. package/fileselect.component.d.ts +14 -4
  39. package/localization/messages.d.ts +42 -0
  40. package/package.json +8 -8
  41. package/schematics/ngAdd/index.js +3 -3
  42. package/templates/file-info-template.directive.d.ts +5 -6
  43. package/templates/file-template.directive.d.ts +5 -6
  44. package/types/chunk-metadata.d.ts +3 -3
  45. package/types/chunk-settings.d.ts +4 -4
  46. package/types/file-restrictions.d.ts +4 -5
  47. package/types/file-state.d.ts +5 -5
  48. package/types/operation-type.d.ts +1 -1
  49. package/upload.component.d.ts +71 -54
@@ -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
- * By default, the selected files are immediately uploaded
41
+ * Specifies whether selected files upload automatically
37
42
  * ([see example]({% slug fileprocessing_upload %}#toc-automatic-upload-of-files)).
38
- * To change this behavior, set `autoUpload` to `false`.
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
- * When enabled, all files in the selection are uploaded in one request
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
- * Any files that are selected one after the other are uploaded in separate requests.
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
- * Configures whether credentials (cookies, headers) will be sent for cross-site requests
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
- * The default values is `true`. Setting `withCredentials` has no effect on same-site requests.
53
- * To add credentials to the request, use the `saveHeaders` or `removeHeaders` property,
54
- * or the [`upload`]({% slug api_upload_uploadevent %}) event.
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
- * Sets the [`FormData`](https://developer.mozilla.org/en-US/docs/Web/API/FormData) key which contains the files submitted to `saveUrl`.
60
- * The default value is `files`.
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
- * Configures the [`HttpHeaders`](https://angular.io/api/common/http/HttpHeaders)
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
- * Sets the [`RequestMethod`](https://angular.io/api/http/RequestMethod) of the upload request.
72
- * The default value is `POST`.
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
- * Sets the URL of the endpoint for the upload request.
78
- * The request [`FormData`](https://developer.mozilla.org/en-US/docs/Web/API/FormData) key is named after the `saveField` property.
79
- * It contains the list of files to be uploaded.
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
- * Sets the expected [`response type`](https://angular.io/api/common/http/HttpRequest#responseType) of the server.
85
- * It is used to parse the response appropriately.
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
- * Sets the [`FormData`](https://developer.mozilla.org/en-US/docs/Web/API/FormData) key
92
- * which contains the list of file names that are submitted to `removeUrl`.
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
- * Configures the [`HttpHeaders`](https://angular.io/api/common/http/HttpHeaders)
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
- * Sets the [`RequestMethod`](https://angular.io/api/http/RequestMethod) of the `remove` request.
105
- * The default value is `POST`.
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
- * Sets the URL of the endpoint for the `remove` request.
111
- * The [`FormData`](https://developer.mozilla.org/en-US/docs/Web/API/FormData) request key is named after the `removeField` property.
112
- * It contains the list of file names which will be removed.
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
- * Enables the chunk functionality of the Upload.
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 if the selected files are uploaded simultaneously or one by one.
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
- * Toggles the visibility of the file list.
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 possible layout of the action buttons.
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. If prevented, the files will not 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 are completed either successfully or with errors.
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 has failed.
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 has been paused.
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 has been resumed.
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 is successfully completed.
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. If prevented, the files will neither be uploaded, nor added to the file list.
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 being uploaded.
191
+ * Fires when one or more files are uploading.
178
192
  */
179
193
  uploadProgress: EventEmitter<UploadProgressEvent>;
180
194
  /**
181
- * Fires when the value of the component has changed as a result of a successful `upload`, `remove` or `clear` operation.
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
- * The `pauseFileByUid` method requires the `chunkable` option of the Upload to be enabled.
237
+ * This method requires the `chunkable` option of the Upload to be enabled.
224
238
  *
225
- * @param uid - The `uid` of the file that will be paused.
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 has been previously paused.
230
- * The `resumeFileByUid` method requires the `chunkable` option of the Upload to be enabled.
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 - The `uid` of the file that will be resumed.
246
+ * @param uid The `uid` of the file that will be resumed.
233
247
  */
234
248
  resumeFileByUid(uid: string): void;
235
249
  /**
236
- * Triggers the removal of a file or a batch of files.
237
- * @param uid - The `uid` of the file or a batch of files that will be removed.
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
- * Triggers another upload attempt of an unsuccessfully uploaded file or a batch of files.
242
- * @param uid - The `uid` of the file or a batch of files to be retried.
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
- * @param uid - The `uid` of the file or a batch of files that will be canceled.
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 which pass the set restrictions.
268
+ * Uploads the currently selected files that pass the set restrictions.
252
269
  */
253
270
  uploadFiles(): void;
254
271
  /**
255
- * Visually clears all files from the UI without issuing requests to the remove handler.
272
+ * Clears all files from the UI without sending requests to the remove handler.
256
273
  */
257
274
  clearFiles(): void;
258
275
  /**