@progress/kendo-vue-upload 11.0.0-develop.1 → 11.0.1-develop.1

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.
@@ -8,44 +8,56 @@
8
8
  import { UploadHttpHeaders } from './UploadHttpHeaders';
9
9
  import { UploadFileInfo } from '..';
10
10
  /**
11
- * Represents the async properties of the Upload component.
11
+ * Represents the async properties of the Upload.
12
12
  */
13
13
  export interface UploadAsyncProps {
14
14
  /**
15
- * By default, the selected files are immediately uploaded.
16
- * To change this behavior, set `autoUpload` to `false`.
15
+ * Uploads the selected files right away.
16
+ * To upload the files later, set `autoUpload` to `false`.
17
+ *
18
+ * @default `true`
17
19
  */
18
20
  autoUpload?: boolean;
19
21
  /**
20
- * When enabled, all files in the selection are uploaded in one request.
21
- * Any files that are selected one after the other are uploaded in separate requests.
22
+ * Uploads all files from one selection in a single request.
23
+ * Files that you select one after the other upload in separate requests.
24
+ *
25
+ * @default `false`
22
26
  */
23
27
  batch?: boolean;
24
28
  /**
25
- * Configures whether browser-managed credentials, such as cookies, are sent with cross-origin requests.
26
- * When not set, cross-origin requests are sent without credentials. Same-origin requests include
27
- * browser-managed credentials, such as cookies, by default; `withCredentials` does not affect them.
28
- * To add custom request headers, use the `saveHeaders` or `removeHeaders` property.
29
+ * Sets whether the Upload sends credentials, such as cookies and headers, with cross-site requests.
30
+ * This property has no effect on same-site requests.
31
+ * To add credentials to the request, use the `saveHeaders` or `removeHeaders` property.
32
+ *
33
+ * @default `true`
29
34
  */
30
35
  withCredentials?: boolean;
31
36
  /**
32
- * Sets the [`FormData`](https://developer.mozilla.org/en-US/docs/Web/API/FormData) key which
33
- * contains the files submitted to `saveUrl`. Defaults to `files`.
37
+ * Sets the [`FormData`](https://developer.mozilla.org/en-US/docs/Web/API/FormData) key that
38
+ * holds the files that the Upload sends to `saveUrl`.
39
+ *
40
+ * @default `'files'`
34
41
  */
35
42
  saveField?: string;
36
43
  /**
37
- * Configures the `HttpHeaders` that are attached to each upload request.
44
+ * Sets the `HttpHeaders` that the Upload attaches to each upload request.
45
+ *
46
+ * @default `{}`
38
47
  */
39
48
  saveHeaders?: UploadHttpHeaders;
40
49
  /**
41
50
  * Sets the [`request`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods) method of the upload request.
42
- * Defaults to `POST`.
51
+ *
52
+ * @default `'POST'`
43
53
  */
44
54
  saveMethod?: string;
45
55
  /**
46
56
  * Sets the URL of the endpoint for the upload request.
47
- * The requested [`FormData`](https://developer.mozilla.org/en-US/docs/Web/API/FormData) key is named after
48
- * the `saveField` property and contains the list of files that will be uploaded.
57
+ * The [`FormData`](https://developer.mozilla.org/en-US/docs/Web/API/FormData) key takes its name from
58
+ * the `saveField` property and holds the list of files to upload.
59
+ *
60
+ * @default `''`
49
61
  */
50
62
  saveUrl?: string | ((files: UploadFileInfo[], options: {
51
63
  formData: FormData;
@@ -56,30 +68,37 @@ export interface UploadAsyncProps {
56
68
  /**
57
69
  * Sets the expected [response type](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/responseType)
58
70
  * of the server.
59
- * Used to parse the response appropriately.
60
- * Defaults to `json`.
71
+ * The Upload uses it to parse the response.
72
+ *
73
+ * @default `'json'`
61
74
  */
62
75
  responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
63
76
  /**
64
77
  * Sets the [`FormData`](https://developer.mozilla.org/en-US/docs/Web/API/FormData) key
65
- * which contains the list of file names that are submitted to `removeUrl`.
66
- * Defaults to `fileNames`.
78
+ * that holds the list of file names that the Upload sends to `removeUrl`.
79
+ *
80
+ * @default `'fileNames'`
67
81
  */
68
82
  removeField?: string;
69
83
  /**
70
- * Configures the `HttpHeaders` that are attached to each `remove` request.
84
+ * Sets the `HttpHeaders` that the Upload attaches to each `remove` request.
85
+ *
86
+ * @default `{}`
71
87
  */
72
88
  removeHeaders?: UploadHttpHeaders;
73
89
  /**
74
90
  * Sets the [request method](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods) of the `remove` request.
75
- * Defaults to `POST`.
91
+ *
92
+ * @default `'POST'`
76
93
  */
77
94
  removeMethod?: string;
78
95
  /**
79
96
  * Sets the URL of the endpoint for the `remove` request.
80
97
  * The [`FormData`](https://developer.mozilla.org/en-US/docs/Web/API/FormData) request
81
- * key is named after the `removeField` property.
82
- * It contains the list of file names which will be removed.
98
+ * key takes its name from the `removeField` property.
99
+ * It holds the list of file names to remove.
100
+ *
101
+ * @default `''`
83
102
  */
84
103
  removeUrl?: string | ((files: UploadFileInfo[], options: {
85
104
  formData: FormData;
@@ -7,42 +7,42 @@
7
7
  */
8
8
  import { UploadFileStatus } from './UploadFileStatus';
9
9
  /**
10
- * Contains information which is related to the selected file.
10
+ * Contains information about a selected file.
11
11
  */
12
12
  export interface UploadFileInfo {
13
13
  /**
14
- * The unique identifier of the group (batch) with one or more files.
15
- * Has to be set for the initial list of files.
14
+ * Sets the unique identifier of the group (batch) that holds one or more files.
15
+ * You must set it for the initial list of files.
16
16
  */
17
17
  uid: string;
18
18
  /**
19
- * The file name.
19
+ * Sets the name of the file.
20
20
  */
21
21
  name: string;
22
22
  /**
23
- * The file extension including the leading dot—for example, `.jpg`, `.png`, or other.
23
+ * Sets the file extension with the leading dot—for example, `.jpg` or `.png`.
24
24
  */
25
25
  extension?: string;
26
26
  /**
27
- * The file size in bytes.
27
+ * Sets the size of the file in bytes.
28
28
  */
29
29
  size?: number;
30
30
  /**
31
- * A list which contains the validation errors (if any).
31
+ * Holds the list of validation errors for the file, if there are any.
32
32
  */
33
33
  validationErrors?: Array<string>;
34
34
  /**
35
- * The current state of the file&mdash;`Failed`, `Selected`, `Uploaded`, or `Uploading`.
36
- * `Initial` is a special value for `FileState` and is
37
- * automatically applied to initial files without you having to explicitly set their state.
35
+ * Sets the current status of the file&mdash;for example, `Selected`, `Uploading`, `Uploaded`, or `UploadFailed`.
36
+ * `Initial` is a special `UploadFileStatus` value. The Upload applies it
37
+ * to initial files automatically, so you do not have to set their status.
38
38
  */
39
39
  status: UploadFileStatus;
40
40
  /**
41
- * The current upload progress.
41
+ * Sets the current upload progress of the file.
42
42
  */
43
43
  progress: number;
44
44
  /**
45
- * Gets the raw file instance.
45
+ * Returns the raw `File` instance.
46
46
  */
47
47
  getRawFile?: () => File;
48
48
  }
@@ -6,21 +6,21 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  /**
9
- * Configures the restrictions for the files that can be uploaded.
9
+ * Sets the restrictions for the files that you can upload.
10
10
  */
11
11
  export interface UploadFileRestrictions {
12
12
  /**
13
- * The list of the allowed file extensions.
14
- * Recognizes entries of both `.type` (for example, `.docx`, `.png`, `.svg`, `.xls`, and others)
15
- * and `type` (for example, `docx`, `png`, `svg`, `xls`, and others) values.
13
+ * Sets the list of allowed file extensions.
14
+ * Accepts values with a leading dot (for example, `.docx`, `.png`, `.svg`, or `.xls`)
15
+ * and values without one (for example, `docx`, `png`, `svg`, or `xls`).
16
16
  */
17
17
  allowedExtensions?: Array<string>;
18
18
  /**
19
- * Defines the maximum file size in bytes.
19
+ * Sets the maximum file size in bytes.
20
20
  */
21
21
  maxFileSize?: number;
22
22
  /**
23
- * Defines the minimum file size in bytes.
23
+ * Sets the minimum file size in bytes.
24
24
  */
25
25
  minFileSize?: number;
26
26
  }
@@ -10,11 +10,11 @@
10
10
  */
11
11
  export declare enum UploadFileStatus {
12
12
  /**
13
- * Indicates that the file upload process has failed.
13
+ * The file upload failed.
14
14
  */
15
15
  UploadFailed = 0,
16
16
  /**
17
- * An initially selected fake file without a set state.
17
+ * The file is part of the initial list of files and has no set status.
18
18
  */
19
19
  Initial = 1,
20
20
  /**
@@ -22,19 +22,19 @@ export declare enum UploadFileStatus {
22
22
  */
23
23
  Selected = 2,
24
24
  /**
25
- * The file is in the process of uploading.
25
+ * The file is uploading.
26
26
  */
27
27
  Uploading = 3,
28
28
  /**
29
- * The file is successfully uploaded.
29
+ * The file upload succeeded.
30
30
  */
31
31
  Uploaded = 4,
32
32
  /**
33
- * The remove process has failed.
33
+ * The file removal failed.
34
34
  */
35
35
  RemoveFailed = 5,
36
36
  /**
37
- * The file is in the process of removing.
37
+ * The file is being removed.
38
38
  */
39
39
  Removing = 6
40
40
  }
@@ -6,7 +6,7 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  /**
9
- * Represents the HttpHeaders as a key-value pair.
9
+ * Represents the HTTP headers that the Upload sends with a request as key-value pairs.
10
10
  */
11
11
  export interface UploadHttpHeaders {
12
12
  [name: string]: string | string[];
@@ -8,19 +8,20 @@
8
8
  import { UploadAsyncProps } from './UploadAsyncProps';
9
9
  import { UploadFileInfo } from './UploadFileInfo';
10
10
  /**
11
- * Represents the properties of the Kendo Ui for Vue UploadList Item component.
11
+ * Represents the props that the custom `list` template of the Upload receives.
12
+ * The UploadListSingleItem and UploadListMultiItem components accept the same props.
12
13
  */
13
14
  export interface UploadListItemProps {
14
15
  /**
15
- * One or more files for the current item.
16
+ * Holds the files of the current list item.
16
17
  */
17
18
  files: Array<UploadFileInfo>;
18
19
  /**
19
- * The `disabled` property of the Upload.
20
+ * Holds the `disabled` state of the Upload.
20
21
  */
21
22
  disabled: boolean;
22
23
  /**
23
- * The asynchronous properties of the Upload.
24
+ * Holds the async settings of the Upload, such as `saveUrl` and `removeUrl`.
24
25
  */
25
26
  async: UploadAsyncProps;
26
27
  }
@@ -8,15 +8,15 @@
8
8
  import { BaseUploadEvent } from './BaseUploadEvent';
9
9
  import { UploadFileInfo } from './UploadFileInfo';
10
10
  /**
11
- * The `onAdd` event.
11
+ * Represents the object of the `add` event that the Upload emits when you select new files.
12
12
  */
13
13
  export interface UploadOnAddEvent extends BaseUploadEvent<any> {
14
14
  /**
15
- * The new updated state candidate.
15
+ * Holds the new list of files after the change.
16
16
  */
17
17
  newState: Array<UploadFileInfo>;
18
18
  /**
19
- * The list of affected files.
19
+ * Holds the files that the event affects.
20
20
  */
21
21
  affectedFiles: Array<UploadFileInfo>;
22
22
  }
@@ -10,19 +10,19 @@ import { UploadFileInfo } from './UploadFileInfo';
10
10
  import { UploadHttpHeaders } from './UploadHttpHeaders';
11
11
  import { UploadAdditionalData } from './UploadAdditionalData';
12
12
  /**
13
- * The `onBeforeRemove` event.
13
+ * Represents the object of the `beforeremove` event that the Upload emits before it sends a remove request.
14
14
  */
15
15
  export interface UploadOnBeforeRemoveEvent extends BaseUploadEvent<any> {
16
16
  /**
17
- * The files that will be sent with the request.
17
+ * Holds the files that the Upload sends with the request.
18
18
  */
19
19
  files: Array<UploadFileInfo>;
20
20
  /**
21
- * The headers that will be sent with the request. Can be modified.
21
+ * Holds the headers that the Upload sends with the request. You can change them.
22
22
  */
23
23
  headers: UploadHttpHeaders;
24
24
  /**
25
- * The additional data that will be sent with the request. Can be modified.
25
+ * Holds the extra data that the Upload sends with the request. You can change it.
26
26
  */
27
27
  additionalData: UploadAdditionalData;
28
28
  }
@@ -10,19 +10,19 @@ import { UploadFileInfo } from './UploadFileInfo';
10
10
  import { UploadHttpHeaders } from './UploadHttpHeaders';
11
11
  import { UploadAdditionalData } from './UploadAdditionalData';
12
12
  /**
13
- * The `onBeforeUpload` event.
13
+ * Represents the object of the `beforeupload` event that the Upload emits before it sends an upload request.
14
14
  */
15
15
  export interface UploadOnBeforeUploadEvent extends BaseUploadEvent<any> {
16
16
  /**
17
- * The files that will be sent with the request.
17
+ * Holds the files that the Upload sends with the request.
18
18
  */
19
19
  files: Array<UploadFileInfo>;
20
20
  /**
21
- * The headers that will be sent with the request. Can be modified.
21
+ * Holds the headers that the Upload sends with the request. You can change them.
22
22
  */
23
23
  headers: UploadHttpHeaders;
24
24
  /**
25
- * The additional data that will be sent with the request. Can be modified.
25
+ * Holds the extra data that the Upload sends with the request. You can change it.
26
26
  */
27
27
  additionalData: UploadAdditionalData;
28
28
  }
@@ -7,11 +7,11 @@
7
7
  */
8
8
  import { BaseUploadEvent } from './BaseUploadEvent';
9
9
  /**
10
- * The `onCancel` event.
10
+ * Represents the object of the `cancel` event that the Upload emits when you cancel a file upload.
11
11
  */
12
12
  export interface UploadOnCancelEvent extends BaseUploadEvent<any> {
13
13
  /**
14
- * The unique identifier of the group (batch) of one or more files that is cancelled.
14
+ * Holds the unique identifier of the canceled group (batch) of one or more files.
15
15
  */
16
16
  uid: string;
17
17
  }
@@ -8,15 +8,15 @@
8
8
  import { BaseUploadEvent } from './BaseUploadEvent';
9
9
  import { UploadFileInfo } from './UploadFileInfo';
10
10
  /**
11
- * The `onProgress` event.
11
+ * Represents the object of the `progress` event that the Upload emits when the upload progress of a file changes.
12
12
  */
13
13
  export interface UploadOnProgressEvent extends BaseUploadEvent<any> {
14
14
  /**
15
- * The new updated state candidate.
15
+ * Holds the new list of files after the change.
16
16
  */
17
17
  newState: Array<UploadFileInfo>;
18
18
  /**
19
- * The list of the affected files.
19
+ * Holds the files that the event affects.
20
20
  */
21
21
  affectedFiles: Array<UploadFileInfo>;
22
22
  }
@@ -9,19 +9,19 @@ import { BaseUploadEvent } from './BaseUploadEvent';
9
9
  import { UploadFileInfo } from './UploadFileInfo';
10
10
  import { UploadResponse } from './UploadResponse';
11
11
  /**
12
- * The `onRemove` event.
12
+ * Represents the object of the `remove` event that the Upload emits when you remove files.
13
13
  */
14
14
  export interface UploadOnRemoveEvent extends BaseUploadEvent<any> {
15
15
  /**
16
- * The new updated state candidate.
16
+ * Holds the new list of files after the change.
17
17
  */
18
18
  newState: Array<UploadFileInfo>;
19
19
  /**
20
- * The list of the affected files.
20
+ * Holds the files that the event affects.
21
21
  */
22
22
  affectedFiles: Array<UploadFileInfo>;
23
23
  /**
24
- * The server response (if available).
24
+ * Holds the server response, if there is one.
25
25
  */
26
26
  response?: UploadResponse;
27
27
  }
@@ -9,19 +9,19 @@ import { BaseUploadEvent } from './BaseUploadEvent';
9
9
  import { UploadFileInfo } from './UploadFileInfo';
10
10
  import { UploadResponse } from './UploadResponse';
11
11
  /**
12
- * The `onStatusChange` event.
12
+ * Represents the object of the `statuschange` event that the Upload emits when the status of the files changes.
13
13
  */
14
14
  export interface UploadOnStatusChangeEvent extends BaseUploadEvent<any> {
15
15
  /**
16
- * The new updated state candidate.
16
+ * Holds the new list of files after the change.
17
17
  */
18
18
  newState: Array<UploadFileInfo>;
19
19
  /**
20
- * The list of the affected files.
20
+ * Holds the files that the event affects.
21
21
  */
22
22
  affectedFiles: Array<UploadFileInfo>;
23
23
  /**
24
- * The server response (if available).
24
+ * Holds the server response, if there is one.
25
25
  */
26
26
  response?: UploadResponse;
27
27
  }
@@ -17,54 +17,73 @@ import { UploadOnBeforeRemoveEvent } from './UploadOnBeforeRemoveEvent';
17
17
  import { UploadOnCancelEvent } from './UploadOnCancelEvent';
18
18
  import { UploadActionsLayout } from './UploadActionsLayout';
19
19
  /**
20
- * Represents the props of the [Kendo Ui for Vue Upload component]({% slug overview_upload %}).
20
+ * Represents the props of the [KendoVue Upload component](slug:overview_upload).
21
21
  */
22
22
  export interface UploadProps extends UploadAsyncProps {
23
23
  /**
24
- * Sets a class of the Upload DOM element.
24
+ * Sets a CSS class on the root element of the Upload.
25
25
  */
26
26
  className?: string;
27
27
  /**
28
- * Enables the selection of multiple files
29
- * ([see example]({% slug fileprocessing_upload %}#toc-upload-of-single-or-multiple-files)).
30
- * If set to `false`, only one file can be selected at a time.
28
+ * Lets you select more than one file at a time
29
+ * ([see example](slug:fileprocessing_upload#toc-upload-of-single-or-multiple-files)).
30
+ * When you set it to `false`, you can select only one file at a time.
31
+ *
32
+ * @default `true`
31
33
  */
32
34
  multiple?: boolean;
33
35
  /**
34
- * Disables the Upload ([see example]({% slug disabledstate_upload %})). Defaults to `false`.
36
+ * Disables the Upload ([see example](slug:disabledstate_upload)).
37
+ *
38
+ * @default `false`
35
39
  */
36
40
  disabled?: boolean;
37
41
  /**
38
- * Toggles the visibility of the file list.
42
+ * Shows or hides the list of files.
43
+ *
44
+ * @default `true`
39
45
  */
40
46
  showFileList?: boolean;
41
47
  /**
42
- * When the `autoUpload` option is set to `false`,
43
- * `showActionButtons` toggles the visibility of the action buttons which are rendered.
48
+ * Shows or hides the action buttons.
49
+ * This property works only when you set `autoUpload` to `false`.
50
+ *
51
+ * @default `true`
44
52
  */
45
53
  showActionButtons?: boolean;
46
54
  /**
47
- * Specifies the possible layouts of the action buttons
48
- * ([see example]({% slug actionbuttons_upload %})). Defaults to `end`.
55
+ * Sets the layout of the action buttons
56
+ * ([see example](slug:actionbuttons_upload)).
57
+ *
58
+ * @default `'end'`
49
59
  */
50
60
  actionsLayout?: UploadActionsLayout;
51
61
  /**
52
- * Specifies the [`tabindex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex)
62
+ * Sets the [`tabindex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex)
53
63
  * of the Upload.
64
+ *
65
+ * @remarks
66
+ * This property is related to accessibility.
54
67
  */
55
68
  tabIndex?: number | string;
56
69
  /**
57
- * Specifies the id of the component.
70
+ * Sets the `id` of the Upload.
58
71
  */
59
72
  id?: string;
60
73
  /**
61
- * Identifies the element(s) which will describe the component, similar
62
- * to HTML aria-describedby attribute For example these elements
63
- * could contain error or hint message.
74
+ * Sets the `id` of one or more elements that describe the Upload, similar
75
+ * to the HTML `aria-describedby` attribute. For example, these elements
76
+ * can hold an error or a hint message.
77
+ *
78
+ * @remarks
79
+ * This property is related to accessibility.
64
80
  */
65
81
  ariaDescribedBy?: string;
66
82
  /**
67
- * Identifies the element(s) which will label the component.
83
+ * Sets the `id` of one or more elements that label the Upload.
84
+ *
85
+ * @remarks
86
+ * This property is related to accessibility.
68
87
  */
69
88
  ariaLabelledBy?: string;
70
89
  /**
@@ -72,54 +91,58 @@ export interface UploadProps extends UploadAsyncProps {
72
91
  */
73
92
  accept?: string;
74
93
  /**
75
- * Sets the restrictions for the selected files ([see example]({% slug filerestrictions_upload %})).
94
+ * Sets the restrictions for the selected files ([see example](slug:filerestrictions_upload)).
95
+ *
96
+ * @default `{ allowedExtensions: [], maxFileSize: 0, minFileSize: 0 }`
76
97
  */
77
98
  restrictions?: UploadFileRestrictions;
78
99
  /**
79
- * Sets the custom restrictions for the selected files ([see example]({% slug filerestrictions_upload %})).
100
+ * Sets a function that applies custom restrictions to the selected files ([see example](slug:filerestrictions_upload)).
80
101
  */
81
102
  validateFile?: (file: UploadFileInfo) => void;
82
103
  /**
83
- * The list of files which are displayed when the Upload is in controlled mode
84
- * ([see example]({% slug controleduncontroled_upload %})).
104
+ * Sets the list of files that the Upload shows in controlled mode
105
+ * ([see example](slug:controleduncontroled_upload)).
85
106
  */
86
107
  files?: Array<UploadFileInfo>;
87
108
  /**
88
- * The initial list of files which are displayed when the Upload is in
89
- * uncontrolled mode ([see example]({% slug controleduncontroled_upload %})).
109
+ * Sets the initial list of files that the Upload shows in
110
+ * uncontrolled mode ([see example](slug:controleduncontroled_upload)).
90
111
  */
91
112
  defaultFiles?: Array<UploadFileInfo>;
92
113
  /**
93
- * The component that will be rendered as a list item inside the Upload.
114
+ * Sets a custom template for each item in the file list ([see example](slug:rendering_upload)).
115
+ * Accepts a Vue component, a `render` function, or a slot name.
116
+ * The template receives the [`UploadListItemProps`](slug:api_upload_uploadlistitemprops).
94
117
  */
95
118
  list?: any;
96
119
  /**
97
- * Fires when new files are selected for upload.
120
+ * Fires when you select new files for upload.
98
121
  */
99
122
  onAdd?: (event: UploadOnAddEvent) => void;
100
123
  /**
101
- * Fires when files are removed. Optionally, if a request is made, can contain a server response.
124
+ * Fires when you remove files. When the Upload sends a request, the event can contain the server response.
102
125
  */
103
126
  onRemove?: (event: UploadOnRemoveEvent) => void;
104
127
  /**
105
- * Fires when the status of the files is changed. Optionally, if a request is made, can contain a server response.
128
+ * Fires when the status of the files changes. When the Upload sends a request, the event can contain the server response.
106
129
  */
107
130
  onStatuschange?: (event: UploadOnStatusChangeEvent) => void;
108
131
  /**
109
- * Fires when the progress of the file upload is changed.
132
+ * Fires when the upload progress of a file changes.
110
133
  */
111
134
  onProgress?: (event: UploadOnProgressEvent) => void;
112
135
  /**
113
- * Fires before a request for a file upload is made. Can be used to add extra data to the request.
136
+ * Fires before the Upload sends an upload request. Use it to add extra data to the request.
114
137
  */
115
138
  onBeforeupload?: (event: UploadOnBeforeUploadEvent) => void;
116
139
  /**
117
- * Fires before a request for a file removal is made. Can be used to add extra data to the request.
140
+ * Fires before the Upload sends a remove request. Use it to add extra data to the request.
118
141
  */
119
142
  onBeforeremove?: (event: UploadOnBeforeRemoveEvent) => void;
120
143
  /**
121
- * Fires when user clicks on the **Remove** button while the file upload is in progress.
122
- * Can be used when the `saveUrl` option is set to a function that cancels custom requests.
144
+ * Fires when you click the **Remove** button while a file is still uploading.
145
+ * Use it when you set `saveUrl` to a function, so you can cancel your custom requests.
123
146
  */
124
147
  onCancel?: (event: UploadOnCancelEvent) => void;
125
148
  }
@@ -10,23 +10,23 @@
10
10
  */
11
11
  export interface UploadResponse {
12
12
  /**
13
- * The response that was provided by the server.
13
+ * Holds the response body that the server returns.
14
14
  */
15
15
  response: any;
16
16
  /**
17
- * The HTTP status code from the server response.
17
+ * Holds the HTTP status code of the server response.
18
18
  */
19
19
  status: number;
20
20
  /**
21
- * The HTTP status message from the server response.
21
+ * Holds the HTTP status message of the server response.
22
22
  */
23
23
  statusText: string;
24
24
  /**
25
- * The headers with which the server responded.
25
+ * Holds the headers of the server response.
26
26
  */
27
27
  headers: any;
28
28
  /**
29
- * The XMLHttpRequest instance of the browser.
29
+ * Holds the `XMLHttpRequest` instance of the browser.
30
30
  */
31
31
  request?: XMLHttpRequest;
32
32
  }
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-vue-upload",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate: 1794299505,version:"11.0.0-develop.1",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"};exports.packageMetadata=e;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-vue-upload",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate: 1794913640,version:"11.0.1-develop.1",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"};exports.packageMetadata=e;