@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
@@ -3,6 +3,6 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
6
- * Specifies the layout of the Upload action buttons.
6
+ * Specifies the layout options for the Upload action buttons.
7
7
  */
8
8
  export type ActionsLayout = 'start' | 'center' | 'end' | 'stretched';
package/common/base.d.ts CHANGED
@@ -43,18 +43,21 @@ export declare abstract class UploadFileSelectBase {
43
43
  */
44
44
  disabled: boolean;
45
45
  /**
46
- * Enables the selection of multiple files
47
- * If set to `false`, only one file can be selected at a time.
46
+ * Allows you to select multiple files.
47
+ * When you set this to `false`, you can select only one file at a time.
48
+ *
48
49
  * @default true
49
50
  */
50
51
  multiple: boolean;
51
52
  /**
52
- * Toggles the visibility of the file list.
53
+ * Controls the visibility of the file list.
54
+ *
53
55
  * @default true
54
56
  */
55
57
  showFileList: boolean;
56
58
  /**
57
- * Specifies the [`tabindex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the component.
59
+ * Sets the [`tabindex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the component.
60
+ *
58
61
  * @default 0
59
62
  */
60
63
  tabindex: number;
@@ -64,7 +67,8 @@ export declare abstract class UploadFileSelectBase {
64
67
  set restrictions(restrictions: FileRestrictions);
65
68
  get restrictions(): FileRestrictions;
66
69
  /**
67
- * Specifies the id of the external drop zone to associate with the component.
70
+ * Sets the `id` of the external drop zone that you want to associate with the component.
71
+ *
68
72
  */
69
73
  zoneId: string;
70
74
  /**
@@ -80,19 +84,19 @@ export declare abstract class UploadFileSelectBase {
80
84
  */
81
85
  get hostDisabledClass(): boolean;
82
86
  /**
83
- * Fires when the user navigates outside the component.
87
+ * Fires when you navigate outside the component.
84
88
  */
85
89
  onBlur: EventEmitter<any>;
86
90
  /**
87
- * Fires when the component is focused.
91
+ * Fires when you focus the component.
88
92
  */
89
93
  onFocus: EventEmitter<any>;
90
94
  /**
91
- * Fires when files are selected. If prevented, the selected files will not be added to the list.
95
+ * Fires when you select files. If you prevent this event, the component will not add the selected files to the list.
92
96
  */
93
97
  select: EventEmitter<SelectEvent>;
94
98
  /**
95
- * Fires when a file is about to be removed. If prevented, the file will remain in the list.
99
+ * Fires when you are about to remove a file. If you prevent this event, the file will remain in the list.
96
100
  */
97
101
  remove: EventEmitter<RemoveEvent>;
98
102
  /**
@@ -139,7 +143,7 @@ export declare abstract class UploadFileSelectBase {
139
143
  */
140
144
  onFileSelectButtonFocus(): void;
141
145
  /**
142
- * Focuses the component's `Select files` button.
146
+ * Focuses the component's **Select files** button.
143
147
  */
144
148
  focus(): void;
145
149
  /**
@@ -148,7 +152,7 @@ export declare abstract class UploadFileSelectBase {
148
152
  */
149
153
  focusComponent(): void;
150
154
  /**
151
- * Blurs the component if it was previously focused.
155
+ * Blurs the component if you previously focused it.
152
156
  */
153
157
  blur(): void;
154
158
  /**
package/directives.d.ts CHANGED
@@ -12,14 +12,14 @@ import { FileInfoTemplateDirective } from "./templates/file-info-template.direct
12
12
  import { FileTemplateDirective } from "./templates/file-template.directive";
13
13
  import { UploadComponent } from "./upload.component";
14
14
  /**
15
- * Utility array that contains all `FileSelect` related components and directives
15
+ * Use the KENDO_FILESELECT utility array to add all FileSelect-related components and directives to a standalone Angular component.
16
16
  */
17
17
  export declare const KENDO_FILESELECT: readonly [typeof FileSelectComponent, typeof FileTemplateDirective, typeof FileInfoTemplateDirective, typeof CustomMessagesComponent, typeof UploadDropZoneDirective, typeof UploadDropZoneComponent];
18
18
  /**
19
- * Utility array that contains all `Upload` related components and directives
19
+ * Use the KENDO_UPLOAD utility array to add all Upload-related components and directives to a standalone Angular component.
20
20
  */
21
21
  export declare const KENDO_UPLOAD: readonly [typeof UploadComponent, typeof UploadActionButtonsComponent, typeof UploadStatusTotalComponent, typeof FileTemplateDirective, typeof FileInfoTemplateDirective, typeof CustomMessagesComponent, typeof UploadDropZoneDirective, typeof UploadDropZoneComponent];
22
22
  /**
23
- * Utility array that contains all `@progress/kendo-angular-upload` related components and directives
23
+ * Use the KENDO_UPLOADS utility array to add all `@progress/kendo-angular-upload`-related components and directives to a standalone Angular component.
24
24
  */
25
25
  export declare const KENDO_UPLOADS: readonly [typeof FileSelectComponent, typeof FileTemplateDirective, typeof FileInfoTemplateDirective, typeof CustomMessagesComponent, typeof UploadDropZoneDirective, typeof UploadDropZoneComponent, typeof UploadComponent, typeof UploadActionButtonsComponent, typeof UploadStatusTotalComponent, typeof FileTemplateDirective, typeof FileInfoTemplateDirective, typeof CustomMessagesComponent, typeof UploadDropZoneDirective, typeof UploadDropZoneComponent];
@@ -6,16 +6,24 @@ import { DropZoneService } from './dropzone.service';
6
6
  import { UploadComponent } from './upload.component';
7
7
  import { FileSelectComponent } from './fileselect.component';
8
8
  import * as i0 from "@angular/core";
9
+ /**
10
+ * Represents the [Kendo UI UploadDropZone directive for Angular]({% slug overview_upload %}).
11
+ * Use this directive to create external drop zones for Upload and FileSelect components.
12
+ *
13
+ * @example
14
+ * ```html
15
+ * <div kendoUploadDropZone="upload1">Drop files here</div>
16
+ * <kendo-upload [saveUrl]="uploadSaveUrl" zoneId="upload1"></kendo-upload>
17
+ * ```
18
+ */
9
19
  export declare class UploadDropZoneDirective {
10
20
  private dropZoneService;
11
21
  /**
12
- * Specifies the id of the drop zone used to associate it with
13
- * an existing Upload component.
22
+ * The id of the drop zone to associate with an existing Upload component.
14
23
  */
15
24
  zoneId: string;
16
25
  /**
17
- * Specifies the id of the drop zone used to associate it with
18
- * an existing FileSelect component.
26
+ * The id of the drop zone to associate with an existing FileSelect component.
19
27
  */
20
28
  fileSelectZoneId: string;
21
29
  constructor(dropZoneService: DropZoneService);
@@ -9,30 +9,37 @@ import { SVGIcon } from '@progress/kendo-svg-icons';
9
9
  import * as i0 from "@angular/core";
10
10
  /**
11
11
  * Represents the [Kendo UI UploadDropZone component for Angular]({% slug overview_upload %}).
12
+ *
13
+ * @example
14
+ * ```html
15
+ * <kendo-uploaddropzone zoneId="upload1">
16
+ * Drop files here to upload
17
+ * </kendo-uploaddropzone>
18
+ * <kendo-upload [saveUrl]="uploadSaveUrl" zoneId="upload1"></kendo-upload>
19
+ * ```
12
20
  */
13
21
  export declare class UploadDropZoneComponent extends DropZoneBase {
14
22
  private localization;
15
23
  hostClass: boolean;
16
24
  get dirAttribute(): string;
17
25
  /**
18
- * Defines the id of the component.
19
- * It is used to associate it with an existing Upload or FileSelect component.
26
+ * Specifies the id of the component.
27
+ * Use this id to associate the DropZone with an existing Upload or FileSelect component.
20
28
  */
21
29
  zoneId: string;
22
30
  /**
23
- * Defines the name for an existing icon in a Kendo UI theme.
24
- * The icon is rendered inside the DropZone.
31
+ * Specifies the name for an existing icon in a Kendo UI theme.
32
+ * The icon renders inside the DropZone.
25
33
  */
26
34
  icon: string;
27
35
  /**
28
- * Defines a CSS class or multiple classes separated by spaces,
29
- * which are applied to a span element.
30
- * Allows the usage of custom icons.
36
+ * Specifies a CSS class or multiple classes separated by spaces which apply to a span element.
37
+ * Use this property to apply custom icons.
31
38
  */
32
39
  iconClass: string;
33
40
  /**
34
- * Defines an SVGIcon to be rendered inside the DropZone.
35
- * The input can take either an [existing Kendo SVG icon](slug:svgicon_list) or a custom one.
41
+ * Specifies an SVGIcon to render inside the DropZone.
42
+ * The input accepts either an [existing Kendo SVG icon](slug:svgicon_list) or a custom one.
36
43
  */
37
44
  set svgIcon(icon: SVGIcon);
38
45
  get svgIcon(): SVGIcon;
@@ -44,18 +44,21 @@ export class UploadFileSelectBase {
44
44
  */
45
45
  disabled = false;
46
46
  /**
47
- * Enables the selection of multiple files
48
- * If set to `false`, only one file can be selected at a time.
47
+ * Allows you to select multiple files.
48
+ * When you set this to `false`, you can select only one file at a time.
49
+ *
49
50
  * @default true
50
51
  */
51
52
  multiple = true;
52
53
  /**
53
- * Toggles the visibility of the file list.
54
+ * Controls the visibility of the file list.
55
+ *
54
56
  * @default true
55
57
  */
56
58
  showFileList = true;
57
59
  /**
58
- * Specifies the [`tabindex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the component.
60
+ * Sets the [`tabindex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the component.
61
+ *
59
62
  * @default 0
60
63
  */
61
64
  tabindex = 0;
@@ -70,7 +73,8 @@ export class UploadFileSelectBase {
70
73
  return this._restrictions;
71
74
  }
72
75
  /**
73
- * Specifies the id of the external drop zone to associate with the component.
76
+ * Sets the `id` of the external drop zone that you want to associate with the component.
77
+ *
74
78
  */
75
79
  zoneId;
76
80
  /**
@@ -88,19 +92,19 @@ export class UploadFileSelectBase {
88
92
  return this.disabled;
89
93
  }
90
94
  /**
91
- * Fires when the user navigates outside the component.
95
+ * Fires when you navigate outside the component.
92
96
  */
93
97
  onBlur = new EventEmitter();
94
98
  /**
95
- * Fires when the component is focused.
99
+ * Fires when you focus the component.
96
100
  */
97
101
  onFocus = new EventEmitter();
98
102
  /**
99
- * Fires when files are selected. If prevented, the selected files will not be added to the list.
103
+ * Fires when you select files. If you prevent this event, the component will not add the selected files to the list.
100
104
  */
101
105
  select = new EventEmitter();
102
106
  /**
103
- * Fires when a file is about to be removed. If prevented, the file will remain in the list.
107
+ * Fires when you are about to remove a file. If you prevent this event, the file will remain in the list.
104
108
  */
105
109
  remove = new EventEmitter();
106
110
  /**
@@ -193,7 +197,7 @@ export class UploadFileSelectBase {
193
197
  }
194
198
  }
195
199
  /**
196
- * Focuses the component's `Select files` button.
200
+ * Focuses the component's **Select files** button.
197
201
  */
198
202
  focus() {
199
203
  this.zone.runOutsideAngular(() => {
@@ -211,7 +215,7 @@ export class UploadFileSelectBase {
211
215
  this.focus();
212
216
  }
213
217
  /**
214
- * Blurs the component if it was previously focused.
218
+ * Blurs the component if you previously focused it.
215
219
  */
216
220
  blur() {
217
221
  if (this.navigation.focused) {
@@ -12,7 +12,7 @@ import { FileInfoTemplateDirective } from "./templates/file-info-template.direct
12
12
  import { FileTemplateDirective } from "./templates/file-template.directive";
13
13
  import { UploadComponent } from "./upload.component";
14
14
  /**
15
- * Utility array that contains all `FileSelect` related components and directives
15
+ * Use the KENDO_FILESELECT utility array to add all FileSelect-related components and directives to a standalone Angular component.
16
16
  */
17
17
  export const KENDO_FILESELECT = [
18
18
  FileSelectComponent,
@@ -23,7 +23,7 @@ export const KENDO_FILESELECT = [
23
23
  UploadDropZoneComponent
24
24
  ];
25
25
  /**
26
- * Utility array that contains all `Upload` related components and directives
26
+ * Use the KENDO_UPLOAD utility array to add all Upload-related components and directives to a standalone Angular component.
27
27
  */
28
28
  export const KENDO_UPLOAD = [
29
29
  UploadComponent,
@@ -36,7 +36,7 @@ export const KENDO_UPLOAD = [
36
36
  UploadDropZoneComponent
37
37
  ];
38
38
  /**
39
- * Utility array that contains all `@progress/kendo-angular-upload` related components and directives
39
+ * Use the KENDO_UPLOADS utility array to add all `@progress/kendo-angular-upload`-related components and directives to a standalone Angular component.
40
40
  */
41
41
  export const KENDO_UPLOADS = [
42
42
  ...KENDO_FILESELECT,
@@ -9,16 +9,24 @@ import { DropZoneService } from './dropzone.service';
9
9
  import { UploadComponent } from './upload.component';
10
10
  import * as i0 from "@angular/core";
11
11
  import * as i1 from "./dropzone.service";
12
+ /**
13
+ * Represents the [Kendo UI UploadDropZone directive for Angular]({% slug overview_upload %}).
14
+ * Use this directive to create external drop zones for Upload and FileSelect components.
15
+ *
16
+ * @example
17
+ * ```html
18
+ * <div kendoUploadDropZone="upload1">Drop files here</div>
19
+ * <kendo-upload [saveUrl]="uploadSaveUrl" zoneId="upload1"></kendo-upload>
20
+ * ```
21
+ */
12
22
  export class UploadDropZoneDirective {
13
23
  dropZoneService;
14
24
  /**
15
- * Specifies the id of the drop zone used to associate it with
16
- * an existing Upload component.
25
+ * The id of the drop zone to associate with an existing Upload component.
17
26
  */
18
27
  zoneId;
19
28
  /**
20
- * Specifies the id of the drop zone used to associate it with
21
- * an existing FileSelect component.
29
+ * The id of the drop zone to associate with an existing FileSelect component.
22
30
  */
23
31
  fileSelectZoneId;
24
32
  constructor(dropZoneService) {
@@ -13,6 +13,14 @@ import * as i0 from "@angular/core";
13
13
  import * as i1 from "@progress/kendo-angular-l10n";
14
14
  /**
15
15
  * Represents the [Kendo UI UploadDropZone component for Angular]({% slug overview_upload %}).
16
+ *
17
+ * @example
18
+ * ```html
19
+ * <kendo-uploaddropzone zoneId="upload1">
20
+ * Drop files here to upload
21
+ * </kendo-uploaddropzone>
22
+ * <kendo-upload [saveUrl]="uploadSaveUrl" zoneId="upload1"></kendo-upload>
23
+ * ```
16
24
  */
17
25
  export class UploadDropZoneComponent extends DropZoneBase {
18
26
  localization;
@@ -21,24 +29,23 @@ export class UploadDropZoneComponent extends DropZoneBase {
21
29
  return this.direction;
22
30
  }
23
31
  /**
24
- * Defines the id of the component.
25
- * It is used to associate it with an existing Upload or FileSelect component.
32
+ * Specifies the id of the component.
33
+ * Use this id to associate the DropZone with an existing Upload or FileSelect component.
26
34
  */
27
35
  zoneId;
28
36
  /**
29
- * Defines the name for an existing icon in a Kendo UI theme.
30
- * The icon is rendered inside the DropZone.
37
+ * Specifies the name for an existing icon in a Kendo UI theme.
38
+ * The icon renders inside the DropZone.
31
39
  */
32
40
  icon;
33
41
  /**
34
- * Defines a CSS class or multiple classes separated by spaces,
35
- * which are applied to a span element.
36
- * Allows the usage of custom icons.
42
+ * Specifies a CSS class or multiple classes separated by spaces which apply to a span element.
43
+ * Use this property to apply custom icons.
37
44
  */
38
45
  iconClass;
39
46
  /**
40
- * Defines an SVGIcon to be rendered inside the DropZone.
41
- * The input can take either an [existing Kendo SVG icon](slug:svgicon_list) or a custom one.
47
+ * Specifies an SVGIcon to render inside the DropZone.
48
+ * The input accepts either an [existing Kendo SVG icon](slug:svgicon_list) or a custom one.
42
49
  */
43
50
  set svgIcon(icon) {
44
51
  if (isDevMode() && icon && this.icon && this.iconClass) {
@@ -4,33 +4,24 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
6
6
  * Arguments for the `cancel` event. The `cancel` event fires when
7
- * the user cancels the process of uploading a file or a batch of files.
7
+ * you cancel the upload of a file or batch of files.
8
8
  *
9
- * ```ts-no-run
10
- * @Component({
11
- * selector: 'my-upload',
9
+ * ```typescript
10
+ * @Component({
12
11
  * template: `
13
- * <p>Click the <span class='k-icon k-font-icon k-i-cancel'></span> icon during upload to trigger the event</p>
14
- * <kendo-upload
15
- * [saveUrl]="uploadSaveUrl"
16
- * [removeUrl]="uploadRemoveUrl"
17
- * (cancel)="cancelEventHandler($event)">
18
- * </kendo-upload>
12
+ * <kendo-upload (cancel)="cancelEventHandler($event)"> </kendo-upload>
19
13
  * `
20
14
  * })
21
15
  * export class UploadComponent {
22
- * uploadSaveUrl = 'saveUrl'; // should represent an actual API endpoint
23
- * uploadRemoveUrl = 'removeUrl'; // should represent an actual API endpoint
24
- *
25
- * cancelEventHandler(e: CancelEvent) {
16
+ * public cancelEventHandler(e: CancelEvent) {
26
17
  * console.log('Canceling file upload', e.files);
27
18
  * }
28
- * }
19
+ * }
29
20
  * ```
30
21
  */
31
22
  export class CancelEvent {
32
23
  /**
33
- * The list of the files that were going to be uploaded.
24
+ * The files that you canceled during the upload process.
34
25
  */
35
26
  files;
36
27
  /**
@@ -5,28 +5,21 @@
5
5
  import { PreventableEvent } from './preventable-event';
6
6
  /**
7
7
  * Arguments for the `clear` event. The `clear` event fires when
8
- * the **Clear** button is clicked. At this point, the selected files are about to be cleared.
8
+ * the **Clear** button is clicked and selected files are about to be cleared.
9
9
  *
10
- * ```ts-no-run
11
- * @Component({
12
- * selector: 'my-upload',
10
+ * ```typescript
11
+ * @Component({
13
12
  * template: `
14
13
  * <kendo-upload
15
- * [autoUpload]="false"
16
- * [saveUrl]="uploadSaveUrl"
17
- * [removeUrl]="uploadRemoveUrl"
18
14
  * (clear)="clearEventHandler($event)">
19
15
  * </kendo-upload>
20
16
  * `
21
17
  * })
22
18
  * export class UploadComponent {
23
- * uploadSaveUrl = 'saveUrl'; // should represent an actual API endpoint
24
- * uploadRemoveUrl = 'removeUrl'; // should represent an actual API endpoint
25
- *
26
- * clearEventHandler(e: ClearEvent) {
19
+ * public clearEventHandler(e: ClearEvent) {
27
20
  * console.log('Clearing the file upload');
28
21
  * }
29
- * }
22
+ * }
30
23
  * ```
31
24
  */
32
25
  export class ClearEvent extends PreventableEvent {
@@ -6,38 +6,32 @@
6
6
  * Arguments for the `error` event. The `error` event fires when
7
7
  * an `upload` or `remove` operation fails.
8
8
  *
9
- * ```ts-no-run
10
- * @Component({
11
- * selector: 'my-upload',
9
+ * ```typescript
10
+ * @Component({
12
11
  * template: `
13
12
  * <kendo-upload
14
- * [saveUrl]="uploadSaveUrl"
15
- * [removeUrl]="uploadRemoveUrl"
16
13
  * (error)="errorEventHandler($event)">
17
14
  * </kendo-upload>
18
15
  * `
19
16
  * })
20
17
  * export class UploadComponent {
21
- * uploadSaveUrl = 'saveUrl'; // should represent an actual API endpoint
22
- * uploadRemoveUrl = 'removeUrl'; // should represent an actual API endpoint
23
- *
24
- * errorEventHandler(e: ErrorEvent) {
18
+ * public errorEventHandler(e: ErrorEvent) {
25
19
  * console.log('An error occurred');
26
20
  * }
27
- * }
21
+ * }
28
22
  * ```
29
23
  */
30
24
  export class ErrorEvent {
31
25
  /**
32
- * The list of the files that failed to be uploaded or removed.
26
+ * The array of files that failed to be uploaded or removed.
33
27
  */
34
28
  files;
35
29
  /**
36
- * The operation type (`upload` or `remove`).
30
+ * The operation type that failed (`upload` or `remove`).
37
31
  */
38
32
  operation;
39
33
  /**
40
- * The response object returned by the server.
34
+ * The HTTP response returned by the server containing error details.
41
35
  */
42
36
  response;
43
37
  /**
@@ -3,35 +3,28 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
6
- * Arguments for the `pause` event. The `pause` event fires when the user
7
- * pauses a file that is currently uploading.
6
+ * Arguments for the `pause` event. The `pause` event fires when
7
+ * you pause a file that is currently uploading.
8
8
  *
9
- * ```ts-no-run
9
+ * ```typescript
10
10
  * @Component({
11
- * selector: 'my-upload',
12
11
  * template: `
13
12
  * <kendo-upload
14
13
  * [chunkable]="true"
15
- * [saveUrl]="uploadSaveUrl"
16
- * [removeUrl]="uploadRemoveUrl"
17
14
  * (pause)="pauseEventHandler($event)">
18
15
  * </kendo-upload>
19
16
  * `
20
17
  * })
21
18
  * export class UploadComponent {
22
- * uploadSaveUrl = 'saveUrl'; // should represent an actual API endpoint
23
- * uploadRemoveUrl = 'removeUrl'; // should represent an actual API endpoint
24
- *
25
- * pauseEventHandler(ev: PauseEvent) {
19
+ * public pauseEventHandler(ev: PauseEvent) {
26
20
  * console.log('File paused');
27
21
  * }
28
22
  * }
29
23
  * ```
30
- *
31
24
  */
32
25
  export class PauseEvent {
33
26
  /**
34
- * The file that is going to be paused.
27
+ * The file that you paused during the upload process.
35
28
  */
36
29
  file;
37
30
  /**
@@ -4,25 +4,19 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { PreventableEvent } from './preventable-event';
6
6
  /**
7
- * Arguments for the `remove` event. The `remove` event fires when an uploaded
8
- * or selected file is about to be removed. If you cancel the event, the removal is prevented.
7
+ * Arguments for the `remove` event. The `remove` event fires when you are about to remove an uploaded
8
+ * or selected file. You can cancel this event to prevent removal.
9
9
  *
10
- * ```ts-no-run
10
+ * ```typescript
11
11
  * @Component({
12
- * selector: 'my-upload',
13
12
  * template: `
14
13
  * <kendo-upload
15
- * [saveUrl]="uploadSaveUrl"
16
- * [removeUrl]="uploadRemoveUrl"
17
14
  * (remove)="removeEventHandler($event)">
18
15
  * </kendo-upload>
19
16
  * `
20
17
  * })
21
18
  * export class UploadComponent {
22
- * uploadSaveUrl = 'saveUrl'; // should represent an actual API endpoint
23
- * uploadRemoveUrl = 'removeUrl'; // should represent an actual API endpoint
24
- *
25
- * removeEventHandler(e: RemoveEvent) {
19
+ * public removeEventHandler(e: RemoveEvent) {
26
20
  * console.log('Removing a file');
27
21
  * }
28
22
  * }
@@ -30,15 +24,17 @@ import { PreventableEvent } from './preventable-event';
30
24
  */
31
25
  export class RemoveEvent extends PreventableEvent {
32
26
  /**
33
- * An optional object that is sent to the `remove` handler in the form of a key/value pair.
27
+ * An optional object that you send to the `remove` handler as key/value pairs.
28
+ *
34
29
  */
35
30
  data;
36
31
  /**
37
- * The list of the files that will be removed.
32
+ * The files that you will remove from the server.
38
33
  */
39
34
  files;
40
35
  /**
41
36
  * The headers of the request.
37
+ * You can use this to add custom headers to the remove request.
42
38
  */
43
39
  headers;
44
40
  /**
@@ -3,35 +3,28 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
6
- * Arguments for the `resume` event. The `resume` event fires when the user
7
- * resumes the upload of a file that has been previously paused.
6
+ * Arguments for the `resume` event. The `resume` event fires when
7
+ * you resume a previously paused file upload.
8
8
  *
9
- * ```ts-no-run
9
+ * ```typescript
10
10
  * @Component({
11
- * selector: 'my-upload',
12
11
  * template: `
13
12
  * <kendo-upload
14
13
  * [chunkable]="true"
15
- * [saveUrl]="uploadSaveUrl"
16
- * [removeUrl]="uploadRemoveUrl"
17
14
  * (resume)="resumeEventHandler($event)">
18
15
  * </kendo-upload>
19
16
  * `
20
17
  * })
21
18
  * export class UploadComponent {
22
- * uploadSaveUrl = 'saveUrl'; // should represent an actual API endpoint
23
- * uploadRemoveUrl = 'removeUrl'; // should represent an actual API endpoint
24
- *
25
- * resumeEventHandler(ev: ResumeEvent) {
19
+ * public resumeEventHandler(ev: ResumeEvent) {
26
20
  * console.log('File resumed');
27
21
  * }
28
22
  * }
29
23
  * ```
30
- *
31
24
  */
32
25
  export class ResumeEvent {
33
26
  /**
34
- * The file that is going to be resumed.
27
+ * The file that you resumed during the upload process.
35
28
  */
36
29
  file;
37
30
  /**