@progress/kendo-angular-upload 19.1.2-develop.2 → 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
@@ -27,11 +27,11 @@ import { PopupService } from '@progress/kendo-angular-popup';
27
27
  var FileState;
28
28
  (function (FileState) {
29
29
  /**
30
- * The file upload process has failed.
30
+ * The file upload process failed.
31
31
  */
32
32
  FileState[FileState["Failed"] = 0] = "Failed";
33
33
  /**
34
- * An initially selected fake file without a set state.
34
+ * An initially selected file without a set state.
35
35
  */
36
36
  FileState[FileState["Initial"] = 1] = "Initial";
37
37
  /**
@@ -39,15 +39,15 @@ var FileState;
39
39
  */
40
40
  FileState[FileState["Selected"] = 2] = "Selected";
41
41
  /**
42
- * The file is successfully uploaded.
42
+ * The file uploaded successfully.
43
43
  */
44
44
  FileState[FileState["Uploaded"] = 3] = "Uploaded";
45
45
  /**
46
- * The file is in the process of uploading.
46
+ * The file is uploading.
47
47
  */
48
48
  FileState[FileState["Uploading"] = 4] = "Uploading";
49
49
  /**
50
- * The file upload process has been paused.
50
+ * The file upload process is paused.
51
51
  */
52
52
  FileState[FileState["Paused"] = 5] = "Paused";
53
53
  })(FileState || (FileState = {}));
@@ -194,33 +194,24 @@ class FileMap {
194
194
 
195
195
  /**
196
196
  * Arguments for the `cancel` event. The `cancel` event fires when
197
- * the user cancels the process of uploading a file or a batch of files.
197
+ * you cancel the upload of a file or batch of files.
198
198
  *
199
- * ```ts-no-run
200
- * @Component({
201
- * selector: 'my-upload',
199
+ * ```typescript
200
+ * @Component({
202
201
  * template: `
203
- * <p>Click the <span class='k-icon k-font-icon k-i-cancel'></span> icon during upload to trigger the event</p>
204
- * <kendo-upload
205
- * [saveUrl]="uploadSaveUrl"
206
- * [removeUrl]="uploadRemoveUrl"
207
- * (cancel)="cancelEventHandler($event)">
208
- * </kendo-upload>
202
+ * <kendo-upload (cancel)="cancelEventHandler($event)"> </kendo-upload>
209
203
  * `
210
204
  * })
211
205
  * export class UploadComponent {
212
- * uploadSaveUrl = 'saveUrl'; // should represent an actual API endpoint
213
- * uploadRemoveUrl = 'removeUrl'; // should represent an actual API endpoint
214
- *
215
- * cancelEventHandler(e: CancelEvent) {
206
+ * public cancelEventHandler(e: CancelEvent) {
216
207
  * console.log('Canceling file upload', e.files);
217
208
  * }
218
- * }
209
+ * }
219
210
  * ```
220
211
  */
221
212
  class CancelEvent {
222
213
  /**
223
- * The list of the files that were going to be uploaded.
214
+ * The files that you canceled during the upload process.
224
215
  */
225
216
  files;
226
217
  /**
@@ -257,28 +248,21 @@ class PreventableEvent {
257
248
 
258
249
  /**
259
250
  * Arguments for the `clear` event. The `clear` event fires when
260
- * the **Clear** button is clicked. At this point, the selected files are about to be cleared.
251
+ * the **Clear** button is clicked and selected files are about to be cleared.
261
252
  *
262
- * ```ts-no-run
263
- * @Component({
264
- * selector: 'my-upload',
253
+ * ```typescript
254
+ * @Component({
265
255
  * template: `
266
256
  * <kendo-upload
267
- * [autoUpload]="false"
268
- * [saveUrl]="uploadSaveUrl"
269
- * [removeUrl]="uploadRemoveUrl"
270
257
  * (clear)="clearEventHandler($event)">
271
258
  * </kendo-upload>
272
259
  * `
273
260
  * })
274
261
  * export class UploadComponent {
275
- * uploadSaveUrl = 'saveUrl'; // should represent an actual API endpoint
276
- * uploadRemoveUrl = 'removeUrl'; // should represent an actual API endpoint
277
- *
278
- * clearEventHandler(e: ClearEvent) {
262
+ * public clearEventHandler(e: ClearEvent) {
279
263
  * console.log('Clearing the file upload');
280
264
  * }
281
- * }
265
+ * }
282
266
  * ```
283
267
  */
284
268
  class ClearEvent extends PreventableEvent {
@@ -293,38 +277,32 @@ class ClearEvent extends PreventableEvent {
293
277
  * Arguments for the `error` event. The `error` event fires when
294
278
  * an `upload` or `remove` operation fails.
295
279
  *
296
- * ```ts-no-run
297
- * @Component({
298
- * selector: 'my-upload',
280
+ * ```typescript
281
+ * @Component({
299
282
  * template: `
300
283
  * <kendo-upload
301
- * [saveUrl]="uploadSaveUrl"
302
- * [removeUrl]="uploadRemoveUrl"
303
284
  * (error)="errorEventHandler($event)">
304
285
  * </kendo-upload>
305
286
  * `
306
287
  * })
307
288
  * export class UploadComponent {
308
- * uploadSaveUrl = 'saveUrl'; // should represent an actual API endpoint
309
- * uploadRemoveUrl = 'removeUrl'; // should represent an actual API endpoint
310
- *
311
- * errorEventHandler(e: ErrorEvent) {
289
+ * public errorEventHandler(e: ErrorEvent) {
312
290
  * console.log('An error occurred');
313
291
  * }
314
- * }
292
+ * }
315
293
  * ```
316
294
  */
317
295
  class ErrorEvent {
318
296
  /**
319
- * The list of the files that failed to be uploaded or removed.
297
+ * The array of files that failed to be uploaded or removed.
320
298
  */
321
299
  files;
322
300
  /**
323
- * The operation type (`upload` or `remove`).
301
+ * The operation type that failed (`upload` or `remove`).
324
302
  */
325
303
  operation;
326
304
  /**
327
- * The response object returned by the server.
305
+ * The HTTP response returned by the server containing error details.
328
306
  */
329
307
  response;
330
308
  /**
@@ -343,35 +321,28 @@ class ErrorEvent {
343
321
  }
344
322
 
345
323
  /**
346
- * Arguments for the `pause` event. The `pause` event fires when the user
347
- * pauses a file that is currently uploading.
324
+ * Arguments for the `pause` event. The `pause` event fires when
325
+ * you pause a file that is currently uploading.
348
326
  *
349
- * ```ts-no-run
327
+ * ```typescript
350
328
  * @Component({
351
- * selector: 'my-upload',
352
329
  * template: `
353
330
  * <kendo-upload
354
331
  * [chunkable]="true"
355
- * [saveUrl]="uploadSaveUrl"
356
- * [removeUrl]="uploadRemoveUrl"
357
332
  * (pause)="pauseEventHandler($event)">
358
333
  * </kendo-upload>
359
334
  * `
360
335
  * })
361
336
  * export class UploadComponent {
362
- * uploadSaveUrl = 'saveUrl'; // should represent an actual API endpoint
363
- * uploadRemoveUrl = 'removeUrl'; // should represent an actual API endpoint
364
- *
365
- * pauseEventHandler(ev: PauseEvent) {
337
+ * public pauseEventHandler(ev: PauseEvent) {
366
338
  * console.log('File paused');
367
339
  * }
368
340
  * }
369
341
  * ```
370
- *
371
342
  */
372
343
  class PauseEvent {
373
344
  /**
374
- * The file that is going to be paused.
345
+ * The file that you paused during the upload process.
375
346
  */
376
347
  file;
377
348
  /**
@@ -385,25 +356,19 @@ class PauseEvent {
385
356
  }
386
357
 
387
358
  /**
388
- * Arguments for the `remove` event. The `remove` event fires when an uploaded
389
- * or selected file is about to be removed. If you cancel the event, the removal is prevented.
359
+ * Arguments for the `remove` event. The `remove` event fires when you are about to remove an uploaded
360
+ * or selected file. You can cancel this event to prevent removal.
390
361
  *
391
- * ```ts-no-run
362
+ * ```typescript
392
363
  * @Component({
393
- * selector: 'my-upload',
394
364
  * template: `
395
365
  * <kendo-upload
396
- * [saveUrl]="uploadSaveUrl"
397
- * [removeUrl]="uploadRemoveUrl"
398
366
  * (remove)="removeEventHandler($event)">
399
367
  * </kendo-upload>
400
368
  * `
401
369
  * })
402
370
  * export class UploadComponent {
403
- * uploadSaveUrl = 'saveUrl'; // should represent an actual API endpoint
404
- * uploadRemoveUrl = 'removeUrl'; // should represent an actual API endpoint
405
- *
406
- * removeEventHandler(e: RemoveEvent) {
371
+ * public removeEventHandler(e: RemoveEvent) {
407
372
  * console.log('Removing a file');
408
373
  * }
409
374
  * }
@@ -411,15 +376,17 @@ class PauseEvent {
411
376
  */
412
377
  class RemoveEvent extends PreventableEvent {
413
378
  /**
414
- * An optional object that is sent to the `remove` handler in the form of a key/value pair.
379
+ * An optional object that you send to the `remove` handler as key/value pairs.
380
+ *
415
381
  */
416
382
  data;
417
383
  /**
418
- * The list of the files that will be removed.
384
+ * The files that you will remove from the server.
419
385
  */
420
386
  files;
421
387
  /**
422
388
  * The headers of the request.
389
+ * You can use this to add custom headers to the remove request.
423
390
  */
424
391
  headers;
425
392
  /**
@@ -436,35 +403,28 @@ class RemoveEvent extends PreventableEvent {
436
403
  }
437
404
 
438
405
  /**
439
- * Arguments for the `resume` event. The `resume` event fires when the user
440
- * resumes the upload of a file that has been previously paused.
406
+ * Arguments for the `resume` event. The `resume` event fires when
407
+ * you resume a previously paused file upload.
441
408
  *
442
- * ```ts-no-run
409
+ * ```typescript
443
410
  * @Component({
444
- * selector: 'my-upload',
445
411
  * template: `
446
412
  * <kendo-upload
447
413
  * [chunkable]="true"
448
- * [saveUrl]="uploadSaveUrl"
449
- * [removeUrl]="uploadRemoveUrl"
450
414
  * (resume)="resumeEventHandler($event)">
451
415
  * </kendo-upload>
452
416
  * `
453
417
  * })
454
418
  * export class UploadComponent {
455
- * uploadSaveUrl = 'saveUrl'; // should represent an actual API endpoint
456
- * uploadRemoveUrl = 'removeUrl'; // should represent an actual API endpoint
457
- *
458
- * resumeEventHandler(ev: ResumeEvent) {
419
+ * public resumeEventHandler(ev: ResumeEvent) {
459
420
  * console.log('File resumed');
460
421
  * }
461
422
  * }
462
423
  * ```
463
- *
464
424
  */
465
425
  class ResumeEvent {
466
426
  /**
467
- * The file that is going to be resumed.
427
+ * The file that you resumed during the upload process.
468
428
  */
469
429
  file;
470
430
  /**
@@ -478,25 +438,19 @@ class ResumeEvent {
478
438
  }
479
439
 
480
440
  /**
481
- * Arguments for the `select` event. The `select` event fires when the user
482
- * selects a file or multiple files for upload. If you cancel the event, the selection is prevented.
441
+ * Arguments for the `select` event. The `select` event fires when
442
+ * a file or multiple files are selected for upload. The event can be canceled to prevent selection.
483
443
  *
484
- * ```ts-no-run
444
+ * ```typescript
485
445
  * @Component({
486
- * selector: 'my-upload',
487
446
  * template: `
488
447
  * <kendo-upload
489
- * [saveUrl]="uploadSaveUrl"
490
- * [removeUrl]="uploadRemoveUrl"
491
448
  * (select)="selectEventHandler($event)">
492
449
  * </kendo-upload>
493
450
  * `
494
451
  * })
495
452
  * export class UploadComponent {
496
- * uploadSaveUrl = 'saveUrl'; // should represent an actual API endpoint
497
- * uploadRemoveUrl = 'removeUrl'; // should represent an actual API endpoint
498
- *
499
- * selectEventHandler(e: SelectEvent) {
453
+ * public selectEventHandler(e: SelectEvent) {
500
454
  * console.log('File selected');
501
455
  * }
502
456
  * }
@@ -504,7 +458,7 @@ class ResumeEvent {
504
458
  */
505
459
  class SelectEvent extends PreventableEvent {
506
460
  /**
507
- * The list of the selected files.
461
+ * The files that are selected for upload.
508
462
  */
509
463
  files;
510
464
  /**
@@ -520,24 +474,18 @@ class SelectEvent extends PreventableEvent {
520
474
 
521
475
  /**
522
476
  * Arguments for the `success` event. The `success` event fires when
523
- * the selected files are successfully uploaded or removed.
477
+ * you successfully upload or remove the selected files.
524
478
  *
525
- * ```ts-no-run
479
+ * ```typescript
526
480
  * @Component({
527
- * selector: 'my-upload',
528
481
  * template: `
529
482
  * <kendo-upload
530
- * [saveUrl]="uploadSaveUrl"
531
- * [removeUrl]="uploadRemoveUrl"
532
483
  * (success)="successEventHandler($event)">
533
484
  * </kendo-upload>
534
485
  * `
535
486
  * })
536
487
  * export class UploadComponent {
537
- * uploadSaveUrl = 'saveUrl'; // should represent an actual API endpoint
538
- * uploadRemoveUrl = 'removeUrl'; // should represent an actual API endpoint
539
- *
540
- * successEventHandler(e: SuccessEvent) {
488
+ * public successEventHandler(e: SuccessEvent) {
541
489
  * console.log('The ' + e.operation + ' was successful!');
542
490
  * }
543
491
  * }
@@ -545,15 +493,15 @@ class SelectEvent extends PreventableEvent {
545
493
  */
546
494
  class SuccessEvent extends PreventableEvent {
547
495
  /**
548
- * The list of the files that were uploaded or removed.
496
+ * The files that you successfully uploaded or removed.
549
497
  */
550
498
  files;
551
499
  /**
552
- * The operation type (`upload` or `remove`).
500
+ * The operation type that succeeded (`upload` or `remove`).
553
501
  */
554
502
  operation;
555
503
  /**
556
- * The response object returned by the server.
504
+ * The HTTP response that the server returns to confirm success.
557
505
  */
558
506
  response;
559
507
  /**
@@ -572,25 +520,19 @@ class SuccessEvent extends PreventableEvent {
572
520
  }
573
521
 
574
522
  /**
575
- * Arguments for the `upload` event. The `upload` event fires when one or more files are about
576
- * to be uploaded. If you cancel the event, the upload is prevented. You can add headers to the request.
523
+ * Arguments for the `upload` event. The `upload` event fires when you are about
524
+ * to upload one or more files. You can cancel this event to prevent upload and add headers to the request.
577
525
  *
578
- * ```ts-no-run
526
+ * ```typescript
579
527
  * @Component({
580
- * selector: 'my-upload',
581
528
  * template: `
582
529
  * <kendo-upload
583
- * [saveUrl]="uploadSaveUrl"
584
- * [removeUrl]="uploadRemoveUrl"
585
530
  * (upload)="uploadEventHandler($event)">
586
531
  * </kendo-upload>
587
532
  * `
588
533
  * })
589
534
  * export class UploadComponent {
590
- * uploadSaveUrl = 'saveUrl'; // should represent an actual API endpoint
591
- * uploadRemoveUrl = 'removeUrl'; // should represent an actual API endpoint
592
- *
593
- * uploadEventHandler(e: UploadEvent) {
535
+ * public uploadEventHandler(e: UploadEvent) {
594
536
  * e.headers = e.headers.append('X-Foo', 'Bar');
595
537
  * }
596
538
  * }
@@ -598,38 +540,17 @@ class SuccessEvent extends PreventableEvent {
598
540
  */
599
541
  class UploadEvent extends PreventableEvent {
600
542
  /**
601
- * The optional object that is sent to the `upload` handler in the form of key/value pair.
602
- *
603
- * ```ts-no-run
604
- * @Component({
605
- * selector: 'my-upload',
606
- * template: `
607
- * <kendo-upload
608
- * [saveUrl]="uploadSaveUrl"
609
- * [removeUrl]="uploadRemoveUrl"
610
- * (upload)="uploadEventHandler($event)">
611
- * </kendo-upload>
612
- * `
613
- * })
614
- * export class UploadComponent {
615
- * uploadSaveUrl = 'saveUrl'; // should represent an actual API endpoint
616
- * uploadRemoveUrl = 'removeUrl'; // should represent an actual API endpoint
543
+ * The optional object that you send to the `upload` handler as key/value pairs.
617
544
  *
618
- * uploadEventHandler(e: UploadEvent) {
619
- * e.data = {
620
- * description: 'File description'
621
- * };
622
- * }
623
- * }
624
- * ```
625
545
  */
626
546
  data;
627
547
  /**
628
- * The list of the files that will be uploaded.
548
+ * The files that you will upload to the server.
629
549
  */
630
550
  files;
631
551
  /**
632
552
  * The headers of the request.
553
+ * You can use this to add custom headers to the upload request.
633
554
  */
634
555
  headers;
635
556
  /**
@@ -647,24 +568,18 @@ class UploadEvent extends PreventableEvent {
647
568
 
648
569
  /**
649
570
  * Arguments for the `uploadprogress` event. The `uploadprogress` event
650
- * fires when the files are in the process of uploading.
571
+ * fires when you upload files.
651
572
  *
652
- * ```ts-no-run
573
+ * ```typescript
653
574
  * @Component({
654
- * selector: 'my-upload',
655
575
  * template: `
656
576
  * <kendo-upload
657
- * [saveUrl]="uploadSaveUrl"
658
- * [removeUrl]="uploadRemoveUrl"
659
577
  * (uploadProgress)="uploadProgressEventHandler($event)">
660
578
  * </kendo-upload>
661
579
  * `
662
580
  * })
663
581
  * export class UploadComponent {
664
- * uploadSaveUrl = 'saveUrl'; // should represent an actual API endpoint
665
- * uploadRemoveUrl = 'removeUrl'; // should represent an actual API endpoint
666
- *
667
- * uploadProgressEventHandler(e: UploadProgressEvent) {
582
+ * public uploadProgressEventHandler(e: UploadProgressEvent) {
668
583
  * console.log(e.files[0].name + ' is ' + e.percentComplete + ' uploaded');
669
584
  * }
670
585
  * }
@@ -672,11 +587,11 @@ class UploadEvent extends PreventableEvent {
672
587
  */
673
588
  class UploadProgressEvent {
674
589
  /**
675
- * The list of files that are being uploaded.
590
+ * The files that you are currently uploading.
676
591
  */
677
592
  files;
678
593
  /**
679
- * The portion that has been uploaded.
594
+ * The upload progress as a percentage from 0 to 100.
680
595
  */
681
596
  percentComplete;
682
597
  /**
@@ -1660,26 +1575,25 @@ const packageMetadata = {
1660
1575
  productName: 'Kendo UI for Angular',
1661
1576
  productCode: 'KENDOUIANGULAR',
1662
1577
  productCodes: ['KENDOUIANGULAR'],
1663
- publishDate: 1749820388,
1664
- version: '19.1.2-develop.2',
1578
+ publishDate: 1750152453,
1579
+ version: '19.1.2-develop.3',
1665
1580
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
1666
1581
  };
1667
1582
 
1668
1583
  /**
1669
- * Used to customize the rendering of the files in the list. ([See example.](slug:templates_upload#toc-file-template))
1584
+ * Customizes the rendering of files in the list. ([See example.](slug:templates_upload#toc-file-template))
1670
1585
  *
1671
1586
  * The following context variables are available in the template:
1672
1587
  *
1673
- * * `let-files`&mdash;Provides a reference to the files which are associated with the current item.
1674
- * * `let-state`&mdash;Gets a reference to the current state of each file. If the [`batch`](slug:api_upload_uploadcomponent#toc-batch) option of the Upload is set to `true`, the field reflects the state of the whole batch.
1675
- * * `#myUpload="kendoUpload"` or `#myFileSelect="kendoFileSelect"`&mdash;Provides a reference to the instance of the Upload/FileSelect component. It is exported as `kendoUpload`/`kendoFileSelect` by using the [`exportAs`](https://angular.io/api/core/Component) metadata property.
1588
+ * * `let-files`&mdash;A reference to the files associated with the current item.
1589
+ * * `let-state`&mdash;A reference to the current state of each file. If the [`batch`](slug:api_upload_uploadcomponent#toc-batch) option of the Upload is set to `true`, the field reflects the state of the whole batch.
1590
+ * * `#myUpload="kendoUpload"` or `#myFileSelect="kendoFileSelect"`&mdash;A reference to the instance of the Upload/FileSelect component. It is exported as `kendoUpload`/`kendoFileSelect` by using the [`exportAs`](https://angular.io/api/core/Component) metadata property.
1676
1591
  *
1677
1592
  * @example
1678
1593
  * ```html
1679
- * <kendo-upload #myUpload="kendoUpload" ... >
1594
+ * <kendo-upload #myUpload="kendoUpload">
1680
1595
  * <ng-template kendoUploadFileTemplate let-files let-state>
1681
1596
  * <div>Name: {{ files[0].name }} Size: {{ files[0].size }} bytes</div>
1682
- * ...
1683
1597
  * </ng-template>
1684
1598
  * </kendo-upload>
1685
1599
  * ```
@@ -1701,20 +1615,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
1701
1615
  }], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
1702
1616
 
1703
1617
  /**
1704
- * Used to customize the rendering of the file info section in the list. All other elements of the default template, such as file icon, action buttons, upload progress etc. will be preserved in place. ([See example.](slug:templates_upload#toc-file-info-template))
1618
+ * Customizes the rendering of the file info section in the list. All other elements of the default template, such as file icon, action buttons, and upload progress, are preserved in place. ([See example](slug:templates_upload#toc-file-info-template)).
1705
1619
  *
1706
1620
  * The following context variables are available in the template:
1707
1621
  *
1708
- * * `let-files`&mdash;Provides a reference to the files which are associated with the current item.
1709
- * * `let-state`&mdash;Gets a reference to the current state of each file. If the [`batch`](slug:api_upload_uploadcomponent#toc-batch) option of the Upload is set to `true`, the field reflects the state of the whole batch.
1710
- * * `#myUpload="kendoUpload"` or `#myFileSelect="kendoFileSelect"`&mdash;Provides a reference to the instance of the Upload/FileSelect component. It is exported as `kendoUpload`/`kendoFileSelect` by using the [`exportAs`](https://angular.io/api/core/Component) metadata property.
1622
+ * * `let-files`&mdash;A reference to the files associated with the current item.
1623
+ * * `let-state`&mdash;A reference to the current state of each file. If the [`batch`](slug:api_upload_uploadcomponent#toc-batch) option of the Upload is set to `true`, the field reflects the state of the whole batch.
1624
+ * * `#myUpload="kendoUpload"` or `#myFileSelect="kendoFileSelect"`&mdash;A reference to the instance of the Upload/FileSelect component. It is exported as `kendoUpload`/`kendoFileSelect` by using the [`exportAs`](https://angular.io/api/core/Component) metadata property.
1711
1625
  *
1712
1626
  * @example
1713
1627
  * ```html
1714
- * <kendo-upload #myUpload="kendoUpload" ... >
1628
+ * <kendo-upload #myUpload="kendoUpload">
1715
1629
  * <ng-template kendoUploadFileInfoTemplate let-files let-state>
1716
1630
  * <div>Name: {{ files[0].name }}</div>
1717
- * ...
1718
1631
  * </ng-template>
1719
1632
  * </kendo-upload>
1720
1633
  * ```
@@ -1767,18 +1680,21 @@ class UploadFileSelectBase {
1767
1680
  */
1768
1681
  disabled = false;
1769
1682
  /**
1770
- * Enables the selection of multiple files
1771
- * If set to `false`, only one file can be selected at a time.
1683
+ * Allows you to select multiple files.
1684
+ * When you set this to `false`, you can select only one file at a time.
1685
+ *
1772
1686
  * @default true
1773
1687
  */
1774
1688
  multiple = true;
1775
1689
  /**
1776
- * Toggles the visibility of the file list.
1690
+ * Controls the visibility of the file list.
1691
+ *
1777
1692
  * @default true
1778
1693
  */
1779
1694
  showFileList = true;
1780
1695
  /**
1781
- * Specifies the [`tabindex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the component.
1696
+ * Sets the [`tabindex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the component.
1697
+ *
1782
1698
  * @default 0
1783
1699
  */
1784
1700
  tabindex = 0;
@@ -1793,7 +1709,8 @@ class UploadFileSelectBase {
1793
1709
  return this._restrictions;
1794
1710
  }
1795
1711
  /**
1796
- * Specifies the id of the external drop zone to associate with the component.
1712
+ * Sets the `id` of the external drop zone that you want to associate with the component.
1713
+ *
1797
1714
  */
1798
1715
  zoneId;
1799
1716
  /**
@@ -1811,19 +1728,19 @@ class UploadFileSelectBase {
1811
1728
  return this.disabled;
1812
1729
  }
1813
1730
  /**
1814
- * Fires when the user navigates outside the component.
1731
+ * Fires when you navigate outside the component.
1815
1732
  */
1816
1733
  onBlur = new EventEmitter();
1817
1734
  /**
1818
- * Fires when the component is focused.
1735
+ * Fires when you focus the component.
1819
1736
  */
1820
1737
  onFocus = new EventEmitter();
1821
1738
  /**
1822
- * Fires when files are selected. If prevented, the selected files will not be added to the list.
1739
+ * Fires when you select files. If you prevent this event, the component will not add the selected files to the list.
1823
1740
  */
1824
1741
  select = new EventEmitter();
1825
1742
  /**
1826
- * Fires when a file is about to be removed. If prevented, the file will remain in the list.
1743
+ * Fires when you are about to remove a file. If you prevent this event, the file will remain in the list.
1827
1744
  */
1828
1745
  remove = new EventEmitter();
1829
1746
  /**
@@ -1916,7 +1833,7 @@ class UploadFileSelectBase {
1916
1833
  }
1917
1834
  }
1918
1835
  /**
1919
- * Focuses the component's `Select files` button.
1836
+ * Focuses the component's **Select files** button.
1920
1837
  */
1921
1838
  focus() {
1922
1839
  this.zone.runOutsideAngular(() => {
@@ -1934,7 +1851,7 @@ class UploadFileSelectBase {
1934
1851
  this.focus();
1935
1852
  }
1936
1853
  /**
1937
- * Blurs the component if it was previously focused.
1854
+ * Blurs the component if you previously focused it.
1938
1855
  */
1939
1856
  blur() {
1940
1857
  if (this.navigation.focused) {
@@ -3353,86 +3270,128 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
3353
3270
  class Messages extends ComponentMessages {
3354
3271
  /**
3355
3272
  * Sets the text for the **Cancel** button.
3273
+ *
3274
+ * @default 'Cancel'
3356
3275
  */
3357
3276
  cancel;
3358
3277
  /**
3359
3278
  * Sets the text for the **Clear** button.
3279
+ *
3280
+ * @default 'Clear'
3360
3281
  */
3361
3282
  clearSelectedFiles;
3362
3283
  /**
3363
3284
  * Sets the drop-zone hint.
3285
+ *
3286
+ * @default 'Drop files here to upload'
3364
3287
  */
3365
3288
  dropFilesHere;
3366
3289
  /**
3367
3290
  * Sets the external drop-zone hint.
3291
+ *
3292
+ * @default 'Drag and drop files here to upload'
3368
3293
  */
3369
3294
  externalDropFilesHere;
3370
3295
  /**
3371
3296
  * Sets the status message for a batch of files.
3297
+ *
3298
+ * @default 'files'
3372
3299
  */
3373
3300
  filesBatchStatus;
3374
3301
  /**
3375
3302
  * Sets the status message for a batch of files after failed upload.
3303
+ *
3304
+ * @default 'files failed to upload.'
3376
3305
  */
3377
3306
  filesBatchStatusFailed;
3378
3307
  /**
3379
3308
  * Sets the status message for a batch of files after successful upload.
3309
+ *
3310
+ * @default 'files successfully uploaded.'
3380
3311
  */
3381
3312
  filesBatchStatusUploaded;
3382
3313
  /**
3383
3314
  * Sets the file status message after failed upload.
3315
+ *
3316
+ * @default 'File failed to upload.'
3384
3317
  */
3385
3318
  fileStatusFailed;
3386
3319
  /**
3387
3320
  * Sets the file status message after successful upload.
3321
+ *
3322
+ * @default 'File successfully uploaded.'
3388
3323
  */
3389
3324
  fileStatusUploaded;
3390
3325
  /**
3391
3326
  * Sets the header status message when the file upload is paused.
3327
+ *
3328
+ * @default 'Paused'
3392
3329
  */
3393
3330
  headerStatusPaused;
3394
3331
  /**
3395
3332
  * Sets the header status message after the file upload completes.
3333
+ *
3334
+ * @default 'Done'
3396
3335
  */
3397
3336
  headerStatusUploaded;
3398
3337
  /**
3399
3338
  * Sets the header status message during the upload of the file.
3339
+ *
3340
+ * @default 'Uploading...'
3400
3341
  */
3401
3342
  headerStatusUploading;
3402
3343
  /**
3403
3344
  * Sets the text for the invalid `allowedExtensions` restriction message.
3345
+ *
3346
+ * @default 'File type not allowed.'
3404
3347
  */
3405
3348
  invalidFileExtension;
3406
3349
  /**
3407
3350
  * Sets the text for the invalid `maxFileSize` restriction message.
3351
+ *
3352
+ * @default 'File size too large.'
3408
3353
  */
3409
3354
  invalidMaxFileSize;
3410
3355
  /**
3411
3356
  * Sets the text for the invalid `minFileSize` restriction message.
3357
+ *
3358
+ * @default 'File size too small.'
3412
3359
  */
3413
3360
  invalidMinFileSize;
3414
3361
  /**
3415
3362
  * Sets the text for the **Pause** button.
3363
+ *
3364
+ * @default 'Pause'
3416
3365
  */
3417
3366
  pause;
3418
3367
  /**
3419
3368
  * Sets the text for the **Remove** button.
3369
+ *
3370
+ * @default 'Remove'
3420
3371
  */
3421
3372
  remove;
3422
3373
  /**
3423
3374
  * Sets the text for the **Resume** button.
3375
+ *
3376
+ * @default 'Resume'
3424
3377
  */
3425
3378
  resume;
3426
3379
  /**
3427
3380
  * Sets the text for the **Retry** button.
3381
+ *
3382
+ * @default 'Retry'
3428
3383
  */
3429
3384
  retry;
3430
3385
  /**
3431
3386
  * Sets the text for the **Select** button.
3387
+ *
3388
+ * @default 'Select files...'
3432
3389
  */
3433
3390
  select;
3434
3391
  /**
3435
3392
  * Sets the text for the **Upload files** button.
3393
+ *
3394
+ * @default 'Upload'
3436
3395
  */
3437
3396
  uploadSelectedFiles;
3438
3397
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
@@ -3532,6 +3491,11 @@ const UPLOAD_VALUE_ACCESSOR = {
3532
3491
  let idx$1 = 0;
3533
3492
  /**
3534
3493
  * Represents the [Kendo UI Upload component for Angular]({% slug overview_upload %}).
3494
+ *
3495
+ * @example
3496
+ * ```html
3497
+ * <kendo-upload> </kendo-upload>
3498
+ * ```
3535
3499
  */
3536
3500
  class UploadComponent extends UploadFileSelectBase {
3537
3501
  uploadService;
@@ -3543,9 +3507,11 @@ class UploadComponent extends UploadFileSelectBase {
3543
3507
  cdr;
3544
3508
  injector;
3545
3509
  /**
3546
- * By default, the selected files are immediately uploaded
3510
+ * Specifies whether selected files upload automatically
3547
3511
  * ([see example]({% slug fileprocessing_upload %}#toc-automatic-upload-of-files)).
3548
- * To change this behavior, set `autoUpload` to `false`.
3512
+ * Set `autoUpload` to `false` to change this behavior.
3513
+ *
3514
+ * @default true
3549
3515
  */
3550
3516
  set autoUpload(autoUpload) {
3551
3517
  this.uploadService.async.autoUpload = autoUpload;
@@ -3554,9 +3520,11 @@ class UploadComponent extends UploadFileSelectBase {
3554
3520
  return this.uploadService.async.autoUpload;
3555
3521
  }
3556
3522
  /**
3557
- * When enabled, all files in the selection are uploaded in one request
3523
+ * Specifies whether all files in the selection upload in a single request
3558
3524
  * ([see example]({% slug fileprocessing_upload %}#toc-upload-of-batches-of-files)).
3559
- * Any files that are selected one after the other are uploaded in separate requests.
3525
+ * Files selected one after the other upload in separate requests.
3526
+ *
3527
+ * @default false
3560
3528
  */
3561
3529
  set batch(batch) {
3562
3530
  this.uploadService.async.batch = batch;
@@ -3565,11 +3533,13 @@ class UploadComponent extends UploadFileSelectBase {
3565
3533
  return this.uploadService.async.batch;
3566
3534
  }
3567
3535
  /**
3568
- * Configures whether credentials (cookies, headers) will be sent for cross-site requests
3536
+ * Specifies whether credentials (cookies, headers) are sent for cross-site requests
3569
3537
  * ([see example]({% slug credentials_upload %}#toc-attaching-credentials-to-requests)).
3570
- * The default values is `true`. Setting `withCredentials` has no effect on same-site requests.
3571
- * To add credentials to the request, use the `saveHeaders` or `removeHeaders` property,
3572
- * or the [`upload`]({% slug api_upload_uploadevent %}) event.
3538
+ * Set `withCredentials` has no effect on same-site requests.
3539
+ * Use the `saveHeaders` or `removeHeaders` property to add credentials to the request.
3540
+ * You can also use the [`upload`]({% slug api_upload_uploadevent %}) event.
3541
+ *
3542
+ * @default true
3573
3543
  */
3574
3544
  set withCredentials(withCredentials) {
3575
3545
  this.uploadService.async.withCredentials = withCredentials;
@@ -3578,8 +3548,8 @@ class UploadComponent extends UploadFileSelectBase {
3578
3548
  return this.uploadService.async.withCredentials;
3579
3549
  }
3580
3550
  /**
3581
- * Sets the [`FormData`](https://developer.mozilla.org/en-US/docs/Web/API/FormData) key which contains the files submitted to `saveUrl`.
3582
- * The default value is `files`.
3551
+ * Specifies the [`FormData`](https://developer.mozilla.org/en-US/docs/Web/API/FormData) key which contains the files submitted to `saveUrl`.
3552
+ *
3583
3553
  */
3584
3554
  set saveField(saveField) {
3585
3555
  this.uploadService.async.saveField = saveField;
@@ -3588,8 +3558,7 @@ class UploadComponent extends UploadFileSelectBase {
3588
3558
  return this.uploadService.async.saveField;
3589
3559
  }
3590
3560
  /**
3591
- * Configures the [`HttpHeaders`](https://angular.io/api/common/http/HttpHeaders)
3592
- * that are attached to each upload request.
3561
+ * Specifies the [`HttpHeaders`](https://angular.io/api/common/http/HttpHeaders) attached to each upload request.
3593
3562
  */
3594
3563
  set saveHeaders(saveHeaders) {
3595
3564
  this.uploadService.async.saveHeaders = saveHeaders;
@@ -3598,8 +3567,8 @@ class UploadComponent extends UploadFileSelectBase {
3598
3567
  return this.uploadService.async.saveHeaders;
3599
3568
  }
3600
3569
  /**
3601
- * Sets the [`RequestMethod`](https://angular.io/api/http/RequestMethod) of the upload request.
3602
- * The default value is `POST`.
3570
+ * Specifies the [`RequestMethod`](https://angular.io/api/http/RequestMethod) of the upload request.
3571
+ *
3603
3572
  */
3604
3573
  set saveMethod(saveMethod) {
3605
3574
  this.uploadService.async.saveMethod = saveMethod;
@@ -3608,9 +3577,9 @@ class UploadComponent extends UploadFileSelectBase {
3608
3577
  return this.uploadService.async.saveMethod;
3609
3578
  }
3610
3579
  /**
3611
- * Sets the URL of the endpoint for the upload request.
3612
- * The request [`FormData`](https://developer.mozilla.org/en-US/docs/Web/API/FormData) key is named after the `saveField` property.
3613
- * It contains the list of files to be uploaded.
3580
+ * Specifies the URL of the endpoint for the upload request.
3581
+ * The request [`FormData`](https://developer.mozilla.org/en-US/docs/Web/API/FormData) key uses the name from the `saveField` property.
3582
+ * This key contains the list of files to be uploaded.
3614
3583
  */
3615
3584
  set saveUrl(saveUrl) {
3616
3585
  this.uploadService.async.saveUrl = saveUrl;
@@ -3619,8 +3588,9 @@ class UploadComponent extends UploadFileSelectBase {
3619
3588
  return this.uploadService.async.saveUrl;
3620
3589
  }
3621
3590
  /**
3622
- * Sets the expected [`response type`](https://angular.io/api/common/http/HttpRequest#responseType) of the server.
3623
- * It is used to parse the response appropriately.
3591
+ * Specifies the expected [`response type`](https://angular.io/api/common/http/HttpRequest#responseType) of the server.
3592
+ * The response type determines how the response is parsed.
3593
+ *
3624
3594
  * @default 'json'
3625
3595
  */
3626
3596
  set responseType(responseType) {
@@ -3630,15 +3600,13 @@ class UploadComponent extends UploadFileSelectBase {
3630
3600
  return this.uploadService.async.responseType;
3631
3601
  }
3632
3602
  /**
3633
- * Sets the [`FormData`](https://developer.mozilla.org/en-US/docs/Web/API/FormData) key
3634
- * which contains the list of file names that are submitted to `removeUrl`.
3635
- * The default value is `fileNames`.
3603
+ * Specifies the [`FormData`](https://developer.mozilla.org/en-US/docs/Web/API/FormData) key which contains the list of file names submitted to `removeUrl`.
3604
+ *
3636
3605
  */
3637
3606
  set removeField(removeField) { this.uploadService.async.removeField = removeField; }
3638
3607
  get removeField() { return this.uploadService.async.removeField; }
3639
3608
  /**
3640
- * Configures the [`HttpHeaders`](https://angular.io/api/common/http/HttpHeaders)
3641
- * that are attached to each `remove` request.
3609
+ * Specifies the [`HttpHeaders`](https://angular.io/api/common/http/HttpHeaders) attached to each `remove` request.
3642
3610
  */
3643
3611
  set removeHeaders(removeHeaders) {
3644
3612
  this.uploadService.async.removeHeaders = removeHeaders;
@@ -3647,8 +3615,8 @@ class UploadComponent extends UploadFileSelectBase {
3647
3615
  return this.uploadService.async.removeHeaders;
3648
3616
  }
3649
3617
  /**
3650
- * Sets the [`RequestMethod`](https://angular.io/api/http/RequestMethod) of the `remove` request.
3651
- * The default value is `POST`.
3618
+ * Specifies the [`RequestMethod`](https://angular.io/api/http/RequestMethod) of the `remove` request.
3619
+ *
3652
3620
  */
3653
3621
  set removeMethod(removeMethod) {
3654
3622
  this.uploadService.async.removeMethod = removeMethod;
@@ -3657,9 +3625,9 @@ class UploadComponent extends UploadFileSelectBase {
3657
3625
  return this.uploadService.async.removeMethod;
3658
3626
  }
3659
3627
  /**
3660
- * Sets the URL of the endpoint for the `remove` request.
3661
- * The [`FormData`](https://developer.mozilla.org/en-US/docs/Web/API/FormData) request key is named after the `removeField` property.
3662
- * It contains the list of file names which will be removed.
3628
+ * Specifies the URL of the endpoint for the `remove` request.
3629
+ * The [`FormData`](https://developer.mozilla.org/en-US/docs/Web/API/FormData) request key uses the name from the `removeField` property.
3630
+ * This key contains the list of file names to be removed.
3663
3631
  */
3664
3632
  set removeUrl(removeUrl) {
3665
3633
  this.uploadService.async.removeUrl = removeUrl;
@@ -3668,13 +3636,13 @@ class UploadComponent extends UploadFileSelectBase {
3668
3636
  return this.uploadService.async.removeUrl;
3669
3637
  }
3670
3638
  /**
3671
- * Enables the chunk functionality of the Upload.
3639
+ * Specifies whether the chunk functionality of the Upload is enabled.
3672
3640
  *
3673
3641
  * @default false
3674
3642
  */
3675
3643
  chunkable = false;
3676
3644
  /**
3677
- * Specifies if the selected files are uploaded simultaneously or one by one.
3645
+ * Specifies whether selected files upload simultaneously or one by one.
3678
3646
  *
3679
3647
  * @default true
3680
3648
  */
@@ -3685,7 +3653,8 @@ class UploadComponent extends UploadFileSelectBase {
3685
3653
  return this.uploadService.async.concurrent;
3686
3654
  }
3687
3655
  /**
3688
- * Toggles the visibility of the file list.
3656
+ * Specifies whether the file list is visible.
3657
+ *
3689
3658
  * @default true
3690
3659
  */
3691
3660
  showFileList = true;
@@ -3699,7 +3668,9 @@ class UploadComponent extends UploadFileSelectBase {
3699
3668
  return this.tabindex;
3700
3669
  }
3701
3670
  /**
3702
- * Specifies the possible layout of the action buttons.
3671
+ * Specifies the layout of the action buttons.
3672
+ *
3673
+ * @default 'end'
3703
3674
  */
3704
3675
  actionsLayout = 'end';
3705
3676
  fileSelectInput;
@@ -3708,39 +3679,41 @@ class UploadComponent extends UploadFileSelectBase {
3708
3679
  */
3709
3680
  cancel = new EventEmitter();
3710
3681
  /**
3711
- * Fires when the file list is about to be cleared. If prevented, the files will not be cleared.
3682
+ * Fires when the file list is about to be cleared.
3683
+ * Prevent this event to keep the files in the list.
3712
3684
  */
3713
3685
  clear = new EventEmitter();
3714
3686
  /**
3715
- * Fires when all active uploads are completed either successfully or with errors.
3687
+ * Fires when all active uploads complete successfully or with errors.
3716
3688
  */
3717
3689
  complete = new EventEmitter();
3718
3690
  /**
3719
- * Fires when an `upload` or `remove` operation has failed.
3691
+ * Fires when an `upload` or `remove` operation fails.
3720
3692
  */
3721
3693
  error = new EventEmitter();
3722
3694
  /**
3723
- * Fires when the upload of a file has been paused.
3695
+ * Fires when the upload of a file is paused.
3724
3696
  */
3725
3697
  pause = new EventEmitter();
3726
3698
  /**
3727
- * Fires when the upload of a file has been resumed.
3699
+ * Fires when the upload of a file is resumed.
3728
3700
  */
3729
3701
  resume = new EventEmitter();
3730
3702
  /**
3731
- * Fires when an `upload` or `remove` operation is successfully completed.
3703
+ * Fires when an `upload` or `remove` operation completes successfully.
3732
3704
  */
3733
3705
  success = new EventEmitter();
3734
3706
  /**
3735
- * 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.
3707
+ * Fires when one or more files are about to be uploaded.
3708
+ * Prevent this event to stop the files from uploading and being added to the file list.
3736
3709
  */
3737
3710
  upload = new EventEmitter();
3738
3711
  /**
3739
- * Fires when one or more files are being uploaded.
3712
+ * Fires when one or more files are uploading.
3740
3713
  */
3741
3714
  uploadProgress = new EventEmitter();
3742
3715
  /**
3743
- * Fires when the value of the component has changed as a result of a successful `upload`, `remove` or `clear` operation.
3716
+ * Fires when the component value changes after a successful `upload`, `remove`, or `clear` operation.
3744
3717
  */
3745
3718
  valueChange = new EventEmitter();
3746
3719
  get dir() {
@@ -3879,45 +3852,48 @@ class UploadComponent extends UploadFileSelectBase {
3879
3852
  }
3880
3853
  /**
3881
3854
  * Pauses the upload process of a file that is currently uploading.
3882
- * The `pauseFileByUid` method requires the `chunkable` option of the Upload to be enabled.
3855
+ * This method requires the `chunkable` option of the Upload to be enabled.
3883
3856
  *
3884
- * @param uid - The `uid` of the file that will be paused.
3857
+ * @param uid The `uid` of the file that will be paused.
3885
3858
  */
3886
3859
  pauseFileByUid(uid) {
3887
3860
  this.uploadService.pauseFile(uid);
3888
3861
  }
3889
3862
  /**
3890
- * Resumes the upload process for a file that has been previously paused.
3891
- * The `resumeFileByUid` method requires the `chunkable` option of the Upload to be enabled.
3863
+ * Resumes the upload process for a file that was previously paused.
3864
+ * This method requires the `chunkable` option of the Upload to be enabled.
3892
3865
  *
3893
- * @param uid - The `uid` of the file that will be resumed.
3866
+ * @param uid The `uid` of the file that will be resumed.
3894
3867
  */
3895
3868
  resumeFileByUid(uid) {
3896
3869
  this.uploadService.resumeFile(uid);
3897
3870
  }
3898
3871
  /**
3899
- * Triggers the removal of a file or a batch of files.
3900
- * @param uid - The `uid` of the file or a batch of files that will be removed.
3872
+ * Removes a file or a batch of files.
3873
+ *
3874
+ * @param uid The `uid` of the file or a batch of files that will be removed.
3901
3875
  */
3902
3876
  removeFilesByUid(uid) {
3903
3877
  this.uploadService.removeFiles(uid);
3904
3878
  }
3905
3879
  /**
3906
- * Triggers another upload attempt of an unsuccessfully uploaded file or a batch of files.
3907
- * @param uid - The `uid` of the file or a batch of files to be retried.
3880
+ * Retries the upload of a file or batch of files that failed to upload.
3881
+ *
3882
+ * @param uid The `uid` of the file or a batch of files to be retried.
3908
3883
  */
3909
3884
  retryUploadByUid(uid) {
3910
3885
  this.uploadService.retryFiles(uid);
3911
3886
  }
3912
3887
  /**
3913
3888
  * Cancels the upload of a file or a batch of files.
3914
- * @param uid - The `uid` of the file or a batch of files that will be canceled.
3889
+ *
3890
+ * @param uid The `uid` of the file or a batch of files that will be canceled.
3915
3891
  */
3916
3892
  cancelUploadByUid(uid) {
3917
3893
  this.uploadService.cancelFiles(uid);
3918
3894
  }
3919
3895
  /**
3920
- * Uploads the currently selected files which pass the set restrictions.
3896
+ * Uploads the currently selected files that pass the set restrictions.
3921
3897
  */
3922
3898
  uploadFiles() {
3923
3899
  if (this.fileList.filesToUpload.length) {
@@ -3925,7 +3901,7 @@ class UploadComponent extends UploadFileSelectBase {
3925
3901
  }
3926
3902
  }
3927
3903
  /**
3928
- * Visually clears all files from the UI without issuing requests to the remove handler.
3904
+ * Clears all files from the UI without sending requests to the remove handler.
3929
3905
  */
3930
3906
  clearFiles() {
3931
3907
  this.uploadService.clearFiles();
@@ -4115,7 +4091,7 @@ class UploadComponent extends UploadFileSelectBase {
4115
4091
  [disabled]="disabled"
4116
4092
  >
4117
4093
  <div class="k-upload-button-wrap">
4118
- <button
4094
+ <button
4119
4095
  kendoButton
4120
4096
  #fileSelectButton
4121
4097
  class="k-upload-button"
@@ -4248,7 +4224,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
4248
4224
  [disabled]="disabled"
4249
4225
  >
4250
4226
  <div class="k-upload-button-wrap">
4251
- <button
4227
+ <button
4252
4228
  kendoButton
4253
4229
  #fileSelectButton
4254
4230
  class="k-upload-button"
@@ -4357,16 +4333,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
4357
4333
  args: ['attr.dir']
4358
4334
  }] } });
4359
4335
 
4336
+ /**
4337
+ * Represents the [Kendo UI UploadDropZone directive for Angular]({% slug overview_upload %}).
4338
+ * Use this directive to create external drop zones for Upload and FileSelect components.
4339
+ *
4340
+ * @example
4341
+ * ```html
4342
+ * <div kendoUploadDropZone="upload1">Drop files here</div>
4343
+ * <kendo-upload [saveUrl]="uploadSaveUrl" zoneId="upload1"></kendo-upload>
4344
+ * ```
4345
+ */
4360
4346
  class UploadDropZoneDirective {
4361
4347
  dropZoneService;
4362
4348
  /**
4363
- * Specifies the id of the drop zone used to associate it with
4364
- * an existing Upload component.
4349
+ * The id of the drop zone to associate with an existing Upload component.
4365
4350
  */
4366
4351
  zoneId;
4367
4352
  /**
4368
- * Specifies the id of the drop zone used to associate it with
4369
- * an existing FileSelect component.
4353
+ * The id of the drop zone to associate with an existing FileSelect component.
4370
4354
  */
4371
4355
  fileSelectZoneId;
4372
4356
  constructor(dropZoneService) {
@@ -4452,6 +4436,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
4452
4436
 
4453
4437
  /**
4454
4438
  * Represents the [Kendo UI UploadDropZone component for Angular]({% slug overview_upload %}).
4439
+ *
4440
+ * @example
4441
+ * ```html
4442
+ * <kendo-uploaddropzone zoneId="upload1">
4443
+ * Drop files here to upload
4444
+ * </kendo-uploaddropzone>
4445
+ * <kendo-upload [saveUrl]="uploadSaveUrl" zoneId="upload1"></kendo-upload>
4446
+ * ```
4455
4447
  */
4456
4448
  class UploadDropZoneComponent extends DropZoneBase {
4457
4449
  localization;
@@ -4460,24 +4452,23 @@ class UploadDropZoneComponent extends DropZoneBase {
4460
4452
  return this.direction;
4461
4453
  }
4462
4454
  /**
4463
- * Defines the id of the component.
4464
- * It is used to associate it with an existing Upload or FileSelect component.
4455
+ * Specifies the id of the component.
4456
+ * Use this id to associate the DropZone with an existing Upload or FileSelect component.
4465
4457
  */
4466
4458
  zoneId;
4467
4459
  /**
4468
- * Defines the name for an existing icon in a Kendo UI theme.
4469
- * The icon is rendered inside the DropZone.
4460
+ * Specifies the name for an existing icon in a Kendo UI theme.
4461
+ * The icon renders inside the DropZone.
4470
4462
  */
4471
4463
  icon;
4472
4464
  /**
4473
- * Defines a CSS class or multiple classes separated by spaces,
4474
- * which are applied to a span element.
4475
- * Allows the usage of custom icons.
4465
+ * Specifies a CSS class or multiple classes separated by spaces which apply to a span element.
4466
+ * Use this property to apply custom icons.
4476
4467
  */
4477
4468
  iconClass;
4478
4469
  /**
4479
- * Defines an SVGIcon to be rendered inside the DropZone.
4480
- * The input can take either an [existing Kendo SVG icon](slug:svgicon_list) or a custom one.
4470
+ * Specifies an SVGIcon to render inside the DropZone.
4471
+ * The input accepts either an [existing Kendo SVG icon](slug:svgicon_list) or a custom one.
4481
4472
  */
4482
4473
  set svgIcon(icon) {
4483
4474
  if (isDevMode() && icon && this.icon && this.iconClass) {
@@ -4606,6 +4597,14 @@ const FILESELECT_VALUE_ACCESSOR = {
4606
4597
  useExisting: forwardRef(() => FileSelectComponent)
4607
4598
  };
4608
4599
  let idx = 0;
4600
+ /**
4601
+ * Represents the [Kendo UI FileSelect component for Angular](slug:overview_fileselect_uploads).
4602
+ *
4603
+ * @example
4604
+ * ```html
4605
+ * <kendo-fileselect> </kendo-fileselect>
4606
+ * ```
4607
+ */
4609
4608
  class FileSelectComponent extends UploadFileSelectBase {
4610
4609
  uploadService;
4611
4610
  localization;
@@ -4620,7 +4619,7 @@ class FileSelectComponent extends UploadFileSelectBase {
4620
4619
  return this.direction;
4621
4620
  }
4622
4621
  /**
4623
- * Sets the `name` attribute of the `input` element of the FileSelect.
4622
+ * Specifies the `name` attribute of the `input` element of the FileSelect.
4624
4623
  */
4625
4624
  set name(name) {
4626
4625
  this.uploadService.async.saveField = name;
@@ -4629,7 +4628,7 @@ class FileSelectComponent extends UploadFileSelectBase {
4629
4628
  return this.uploadService.async.saveField;
4630
4629
  }
4631
4630
  /**
4632
- * Fires when the value of the component has changed as a result of a successful `select` or `remove` operation.
4631
+ * Fires when the component value changes after a successful `select` or `remove` operation.
4633
4632
  */
4634
4633
  valueChange = new EventEmitter();
4635
4634
  /**
@@ -4713,13 +4712,15 @@ class FileSelectComponent extends UploadFileSelectBase {
4713
4712
  }
4714
4713
  }
4715
4714
  /**
4716
- * Removes specific file from the file list.
4715
+ * Removes a specific file from the file list.
4716
+ *
4717
+ * @param uid The `uid` of the file to be removed.
4717
4718
  */
4718
4719
  removeFileByUid(uid) {
4719
4720
  this.uploadService.removeFiles(uid);
4720
4721
  }
4721
4722
  /**
4722
- * Visually clears all files from the UI.
4723
+ * Clears all files from the UI.
4723
4724
  */
4724
4725
  clearFiles() {
4725
4726
  this.uploadService.clearFiles();
@@ -4871,7 +4872,7 @@ class FileSelectComponent extends UploadFileSelectBase {
4871
4872
  [multiple]="multiple"
4872
4873
  [disabled]="disabled">
4873
4874
  <div class="k-upload-button-wrap">
4874
- <button
4875
+ <button
4875
4876
  kendoButton
4876
4877
  #fileSelectButton
4877
4878
  class="k-upload-button"
@@ -4955,7 +4956,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
4955
4956
  [multiple]="multiple"
4956
4957
  [disabled]="disabled">
4957
4958
  <div class="k-upload-button-wrap">
4958
- <button
4959
+ <button
4959
4960
  kendoButton
4960
4961
  #fileSelectButton
4961
4962
  class="k-upload-button"
@@ -5053,7 +5054,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
5053
5054
  }], ctorParameters: function () { return [{ type: i1$1.LocalizationService }]; } });
5054
5055
 
5055
5056
  /**
5056
- * Utility array that contains all `FileSelect` related components and directives
5057
+ * Use the KENDO_FILESELECT utility array to add all FileSelect-related components and directives to a standalone Angular component.
5057
5058
  */
5058
5059
  const KENDO_FILESELECT = [
5059
5060
  FileSelectComponent,
@@ -5064,7 +5065,7 @@ const KENDO_FILESELECT = [
5064
5065
  UploadDropZoneComponent
5065
5066
  ];
5066
5067
  /**
5067
- * Utility array that contains all `Upload` related components and directives
5068
+ * Use the KENDO_UPLOAD utility array to add all Upload-related components and directives to a standalone Angular component.
5068
5069
  */
5069
5070
  const KENDO_UPLOAD = [
5070
5071
  UploadComponent,
@@ -5077,7 +5078,7 @@ const KENDO_UPLOAD = [
5077
5078
  UploadDropZoneComponent
5078
5079
  ];
5079
5080
  /**
5080
- * Utility array that contains all `@progress/kendo-angular-upload` related components and directives
5081
+ * Use the KENDO_UPLOADS utility array to add all `@progress/kendo-angular-upload`-related components and directives to a standalone Angular component.
5081
5082
  */
5082
5083
  const KENDO_UPLOADS = [
5083
5084
  ...KENDO_FILESELECT,