@progress/kendo-react-upload 13.3.0-develop.9 → 13.4.0-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.
- package/ExternalDropZone.d.ts +91 -0
- package/ExternalDropZone.mjs +3 -3
- package/Upload.d.ts +162 -0
- package/UploadActionButtons.d.ts +33 -0
- package/UploadActionButtons.js +1 -1
- package/UploadActionButtons.mjs +9 -9
- package/UploadAddButton.d.ts +45 -0
- package/UploadAddButton.js +1 -1
- package/UploadAddButton.mjs +7 -8
- package/UploadDropZone.d.ts +43 -0
- package/UploadInput.d.ts +34 -0
- package/UploadInput.mjs +1 -1
- package/UploadList.d.ts +33 -0
- package/UploadListActionButton.d.ts +47 -0
- package/UploadListActionButton.js +1 -1
- package/UploadListActionButton.mjs +4 -6
- package/UploadListGroup.d.ts +35 -0
- package/UploadListMultiItem.d.ts +28 -0
- package/UploadListSingleItem.d.ts +35 -0
- package/UploadNavigation.d.ts +35 -0
- package/UploadStatus.d.ts +22 -0
- package/UploadUI.d.ts +111 -0
- package/UploadUI.mjs +3 -3
- package/dist/cdn/js/kendo-react-upload.js +1 -1
- package/index.d.mts +34 -1212
- package/index.d.ts +34 -1212
- package/interfaces/BaseUploadEvent.d.ts +16 -0
- package/interfaces/FileGroup.d.ts +14 -0
- package/interfaces/UploadActionsLayout.d.ts +11 -0
- package/interfaces/UploadAdditionalData.d.ts +13 -0
- package/interfaces/UploadAsyncProps.d.ts +89 -0
- package/interfaces/UploadFileInfo.d.ts +48 -0
- package/interfaces/UploadFileRestrictions.d.ts +26 -0
- package/interfaces/UploadFileStatus.d.ts +40 -0
- package/interfaces/UploadHttpHeaders.d.ts +13 -0
- package/interfaces/UploadListItemProps.d.ts +38 -0
- package/interfaces/UploadOnAddEvent.d.ts +23 -0
- package/interfaces/UploadOnBeforeRemoveEvent.d.ts +29 -0
- package/interfaces/UploadOnBeforeUploadEvent.d.ts +29 -0
- package/interfaces/UploadOnCancelEvent.d.ts +18 -0
- package/interfaces/UploadOnProgressEvent.d.ts +23 -0
- package/interfaces/UploadOnRemoveEvent.d.ts +28 -0
- package/interfaces/UploadOnStatusChangeEvent.d.ts +28 -0
- package/interfaces/UploadProps.d.ts +242 -0
- package/interfaces/UploadResponse.d.ts +32 -0
- package/interfaces/UploadSelectMessageProps.d.ts +16 -0
- package/messages/index.d.ts +122 -0
- package/package-metadata.d.ts +12 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +10 -16
- package/package.json +6 -6
- package/utils/connectionUtils.d.ts +21 -0
- package/utils/stateUtils.d.ts +30 -0
- package/utils/utils.d.ts +21 -0
- package/utils/validationUtils.d.ts +11 -0
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { UploadAsyncProps } from './UploadAsyncProps.js';
|
|
9
|
+
import { UploadFileRestrictions } from './UploadFileRestrictions.js';
|
|
10
|
+
import { UploadFileInfo } from './UploadFileInfo.js';
|
|
11
|
+
import { UploadListItemProps } from './UploadListItemProps.js';
|
|
12
|
+
import { UploadOnAddEvent } from './UploadOnAddEvent.js';
|
|
13
|
+
import { UploadOnRemoveEvent } from './UploadOnRemoveEvent.js';
|
|
14
|
+
import { UploadOnStatusChangeEvent } from './UploadOnStatusChangeEvent.js';
|
|
15
|
+
import { UploadOnProgressEvent } from './UploadOnProgressEvent.js';
|
|
16
|
+
import { UploadOnBeforeUploadEvent } from './UploadOnBeforeUploadEvent.js';
|
|
17
|
+
import { UploadOnBeforeRemoveEvent } from './UploadOnBeforeRemoveEvent.js';
|
|
18
|
+
import { UploadOnCancelEvent } from './UploadOnCancelEvent.js';
|
|
19
|
+
import { UploadActionsLayout } from './UploadActionsLayout.js';
|
|
20
|
+
import { UploadSelectMessageProps } from './UploadSelectMessageProps.js';
|
|
21
|
+
/**
|
|
22
|
+
* Represents the props of the [KendoReact Upload component](https://www.telerik.com/kendo-react-ui/components/upload).
|
|
23
|
+
*/
|
|
24
|
+
export interface UploadProps extends UploadAsyncProps {
|
|
25
|
+
/**
|
|
26
|
+
* Adds a custom CSS class to the Upload container element.
|
|
27
|
+
*
|
|
28
|
+
* Example:
|
|
29
|
+
* ```jsx
|
|
30
|
+
* <Upload className="custom-upload-class" />
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
className?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Enables or disables the selection of multiple files. Defaults to `true`.
|
|
36
|
+
*
|
|
37
|
+
* @default true
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```jsx
|
|
41
|
+
* <Upload multiple={false} />
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
multiple?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Disables the Upload component. Defaults to `false`.
|
|
47
|
+
*
|
|
48
|
+
* @default false
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```jsx
|
|
52
|
+
* <Upload disabled={true} />
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
disabled?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Toggles the visibility of the file list in the Upload component.
|
|
58
|
+
*
|
|
59
|
+
* @default true
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* ```jsx
|
|
63
|
+
* <Upload showFileList={false} />
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
showFileList?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Toggles the visibility of action buttons when `autoUpload` is set to `false`.
|
|
69
|
+
*
|
|
70
|
+
* @default true
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* ```jsx
|
|
74
|
+
* <Upload autoUpload={false} showActionButtons={true} />
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
showActionButtons?: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Specifies the layout of the action buttons. Defaults to `end`.
|
|
80
|
+
*
|
|
81
|
+
* @default "end"
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* ```jsx
|
|
85
|
+
* <Upload actionsLayout="start" />
|
|
86
|
+
* ```
|
|
87
|
+
*/
|
|
88
|
+
actionsLayout?: UploadActionsLayout;
|
|
89
|
+
/**
|
|
90
|
+
* Sets the `tabIndex` attribute of the Upload component.
|
|
91
|
+
*
|
|
92
|
+
* Example:
|
|
93
|
+
* ```jsx
|
|
94
|
+
* <Upload tabIndex={0} />
|
|
95
|
+
* ```
|
|
96
|
+
*/
|
|
97
|
+
tabIndex?: number | string;
|
|
98
|
+
/**
|
|
99
|
+
* Specifies the `id` attribute of the Upload component.
|
|
100
|
+
*
|
|
101
|
+
* Example:
|
|
102
|
+
* ```jsx
|
|
103
|
+
* <Upload id="upload-component" />
|
|
104
|
+
* ```
|
|
105
|
+
*/
|
|
106
|
+
id?: string;
|
|
107
|
+
/**
|
|
108
|
+
* Identifies elements that describe the Upload component, similar to the `aria-describedby` attribute.
|
|
109
|
+
*
|
|
110
|
+
* Example:
|
|
111
|
+
* ```jsx
|
|
112
|
+
* <Upload ariaDescribedBy="upload-description" />
|
|
113
|
+
* ```
|
|
114
|
+
*/
|
|
115
|
+
ariaDescribedBy?: string;
|
|
116
|
+
/**
|
|
117
|
+
* Identifies elements that label the Upload component, similar to the `aria-labelledby` attribute.
|
|
118
|
+
*
|
|
119
|
+
* Example:
|
|
120
|
+
* ```jsx
|
|
121
|
+
* <Upload ariaLabelledBy="upload-label" />
|
|
122
|
+
* ```
|
|
123
|
+
*/
|
|
124
|
+
ariaLabelledBy?: string;
|
|
125
|
+
/**
|
|
126
|
+
* Sets the `accept` attribute of the file input element to specify allowed file types.
|
|
127
|
+
*
|
|
128
|
+
* Example:
|
|
129
|
+
* ```jsx
|
|
130
|
+
* <Upload accept=".jpg,.png" />
|
|
131
|
+
* ```
|
|
132
|
+
*/
|
|
133
|
+
accept?: string;
|
|
134
|
+
/**
|
|
135
|
+
* Configures file restrictions such as allowed extensions and maximum file size.
|
|
136
|
+
*
|
|
137
|
+
* Example:
|
|
138
|
+
* ```jsx
|
|
139
|
+
* <Upload restrictions={{ allowedExtensions: ['.jpg', '.png'], maxFileSize: 1048576 }} />
|
|
140
|
+
* ```
|
|
141
|
+
*/
|
|
142
|
+
restrictions?: UploadFileRestrictions;
|
|
143
|
+
/**
|
|
144
|
+
* Provides the list of files to be displayed in controlled mode.
|
|
145
|
+
*
|
|
146
|
+
* Example:
|
|
147
|
+
* ```jsx
|
|
148
|
+
* <Upload files={[{ name: 'file1.jpg', size: 1024 }]} />
|
|
149
|
+
* ```
|
|
150
|
+
*/
|
|
151
|
+
files?: Array<UploadFileInfo>;
|
|
152
|
+
/**
|
|
153
|
+
* Provides the initial list of files to be displayed in uncontrolled mode.
|
|
154
|
+
*
|
|
155
|
+
* Example:
|
|
156
|
+
* ```jsx
|
|
157
|
+
* <Upload defaultFiles={[{ name: 'file1.jpg', size: 1024 }]} />
|
|
158
|
+
* ```
|
|
159
|
+
*/
|
|
160
|
+
defaultFiles?: Array<UploadFileInfo>;
|
|
161
|
+
/**
|
|
162
|
+
* Customizes the rendering of list items in the file list.
|
|
163
|
+
*
|
|
164
|
+
* Example:
|
|
165
|
+
* ```jsx
|
|
166
|
+
* <Upload listItemUI={(props) => <CustomListItem {...props} />} />
|
|
167
|
+
* ```
|
|
168
|
+
*/
|
|
169
|
+
listItemUI?: React.ComponentType<UploadListItemProps>;
|
|
170
|
+
/**
|
|
171
|
+
* Customizes the content of the add button in the Upload component.
|
|
172
|
+
*
|
|
173
|
+
* Example:
|
|
174
|
+
* ```jsx
|
|
175
|
+
* <Upload selectMessageUI={(props) => <CustomSelectMessage {...props} />} />
|
|
176
|
+
* ```
|
|
177
|
+
*/
|
|
178
|
+
selectMessageUI?: React.ComponentType<UploadSelectMessageProps>;
|
|
179
|
+
/**
|
|
180
|
+
* Triggered when new files are selected for upload.
|
|
181
|
+
*
|
|
182
|
+
* Example:
|
|
183
|
+
* ```jsx
|
|
184
|
+
* <Upload onAdd={(event) => console.log(event.files)} />
|
|
185
|
+
* ```
|
|
186
|
+
*/
|
|
187
|
+
onAdd?: (event: UploadOnAddEvent) => void;
|
|
188
|
+
/**
|
|
189
|
+
* Triggered when files are removed. May include a server response if applicable.
|
|
190
|
+
*
|
|
191
|
+
* Example:
|
|
192
|
+
* ```jsx
|
|
193
|
+
* <Upload onRemove={(event) => console.log(event.files)} />
|
|
194
|
+
* ```
|
|
195
|
+
*/
|
|
196
|
+
onRemove?: (event: UploadOnRemoveEvent) => void;
|
|
197
|
+
/**
|
|
198
|
+
* Triggered when the status of files changes. May include a server response if applicable.
|
|
199
|
+
*
|
|
200
|
+
* Example:
|
|
201
|
+
* ```jsx
|
|
202
|
+
* <Upload onStatusChange={(event) => console.log(event.files)} />
|
|
203
|
+
* ```
|
|
204
|
+
*/
|
|
205
|
+
onStatusChange?: (event: UploadOnStatusChangeEvent) => void;
|
|
206
|
+
/**
|
|
207
|
+
* Triggered when the upload progress of a file changes.
|
|
208
|
+
*
|
|
209
|
+
* Example:
|
|
210
|
+
* ```jsx
|
|
211
|
+
* <Upload onProgress={(event) => console.log(event.percentComplete)} />
|
|
212
|
+
* ```
|
|
213
|
+
*/
|
|
214
|
+
onProgress?: (event: UploadOnProgressEvent) => void;
|
|
215
|
+
/**
|
|
216
|
+
* Triggered before a file upload request is made. Can be used to add extra data to the request.
|
|
217
|
+
*
|
|
218
|
+
* Example:
|
|
219
|
+
* ```jsx
|
|
220
|
+
* <Upload onBeforeUpload={(event) => console.log(event.additionalData)} />
|
|
221
|
+
* ```
|
|
222
|
+
*/
|
|
223
|
+
onBeforeUpload?: (event: UploadOnBeforeUploadEvent) => void;
|
|
224
|
+
/**
|
|
225
|
+
* Triggered before a file removal request is made. Can be used to add extra data to the request.
|
|
226
|
+
*
|
|
227
|
+
* Example:
|
|
228
|
+
* ```jsx
|
|
229
|
+
* <Upload onBeforeRemove={(event) => console.log(event.additionalData)} />
|
|
230
|
+
* ```
|
|
231
|
+
*/
|
|
232
|
+
onBeforeRemove?: (event: UploadOnBeforeRemoveEvent) => void;
|
|
233
|
+
/**
|
|
234
|
+
* Triggered when the user cancels an upload in progress. Useful for custom cancellation logic.
|
|
235
|
+
*
|
|
236
|
+
* Example:
|
|
237
|
+
* ```jsx
|
|
238
|
+
* <Upload onCancel={(event) => console.log('Upload canceled')} />
|
|
239
|
+
* ```
|
|
240
|
+
*/
|
|
241
|
+
onCancel?: (event: UploadOnCancelEvent) => void;
|
|
242
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Represents the response type of the Upload.
|
|
10
|
+
*/
|
|
11
|
+
export interface UploadResponse {
|
|
12
|
+
/**
|
|
13
|
+
* The response that was provided by the server.
|
|
14
|
+
*/
|
|
15
|
+
response: any;
|
|
16
|
+
/**
|
|
17
|
+
* The HTTP status code from the server response.
|
|
18
|
+
*/
|
|
19
|
+
status: number;
|
|
20
|
+
/**
|
|
21
|
+
* The HTTP status message from the server response.
|
|
22
|
+
*/
|
|
23
|
+
statusText: string;
|
|
24
|
+
/**
|
|
25
|
+
* The headers with which the server responded.
|
|
26
|
+
*/
|
|
27
|
+
headers: any;
|
|
28
|
+
/**
|
|
29
|
+
* The XMLHttpRequest instance of the browser.
|
|
30
|
+
*/
|
|
31
|
+
request?: XMLHttpRequest;
|
|
32
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Represents the props of the UI component that is inside the Upload add button.
|
|
10
|
+
*/
|
|
11
|
+
export interface UploadSelectMessageProps {
|
|
12
|
+
/**
|
|
13
|
+
* The `select` localized message.
|
|
14
|
+
*/
|
|
15
|
+
message: any;
|
|
16
|
+
}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export declare const cancel = "upload.cancel";
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
15
|
+
export declare const clearSelectedFiles = "upload.clearSelectedFiles";
|
|
16
|
+
/**
|
|
17
|
+
* @hidden
|
|
18
|
+
*/
|
|
19
|
+
export declare const dropFilesHere = "upload.dropFilesHere";
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
export declare const headerStatusUploaded = "upload.headerStatusUploaded";
|
|
24
|
+
/**
|
|
25
|
+
* @hidden
|
|
26
|
+
*/
|
|
27
|
+
export declare const headerStatusUploading = "upload.headerStatusUploading";
|
|
28
|
+
/**
|
|
29
|
+
* @hidden
|
|
30
|
+
*/
|
|
31
|
+
export declare const invalidFileExtension = "upload.invalidFileExtension";
|
|
32
|
+
/**
|
|
33
|
+
* @hidden
|
|
34
|
+
*/
|
|
35
|
+
export declare const invalidFiles = "upload.invalidFiles";
|
|
36
|
+
/**
|
|
37
|
+
* @hidden
|
|
38
|
+
*/
|
|
39
|
+
export declare const invalidMaxFileSize = "upload.invalidMaxFileSize";
|
|
40
|
+
/**
|
|
41
|
+
* @hidden
|
|
42
|
+
*/
|
|
43
|
+
export declare const invalidMinFileSize = "upload.invalidMinFileSize";
|
|
44
|
+
/**
|
|
45
|
+
* @hidden
|
|
46
|
+
*/
|
|
47
|
+
export declare const remove = "upload.remove";
|
|
48
|
+
/**
|
|
49
|
+
* @hidden
|
|
50
|
+
*/
|
|
51
|
+
export declare const retry = "upload.retry";
|
|
52
|
+
/**
|
|
53
|
+
* @hidden
|
|
54
|
+
*/
|
|
55
|
+
export declare const select = "upload.select";
|
|
56
|
+
/**
|
|
57
|
+
* @hidden
|
|
58
|
+
*/
|
|
59
|
+
export declare const selectTitle = "upload.selectTitle";
|
|
60
|
+
/**
|
|
61
|
+
* @hidden
|
|
62
|
+
*/
|
|
63
|
+
export declare const selectNoFilesTitle = "upload.selectNoFilesTitle";
|
|
64
|
+
/**
|
|
65
|
+
* @hidden
|
|
66
|
+
*/
|
|
67
|
+
export declare const uploadSelectedFiles = "upload.uploadSelectedFiles";
|
|
68
|
+
/**
|
|
69
|
+
* @hidden
|
|
70
|
+
*/
|
|
71
|
+
export declare const total = "upload.total";
|
|
72
|
+
/**
|
|
73
|
+
* @hidden
|
|
74
|
+
*/
|
|
75
|
+
export declare const files = "upload.files";
|
|
76
|
+
/**
|
|
77
|
+
* @hidden
|
|
78
|
+
*/
|
|
79
|
+
export declare const statusUploaded = "upload.statusUploaded";
|
|
80
|
+
/**
|
|
81
|
+
* @hidden
|
|
82
|
+
*/
|
|
83
|
+
export declare const statusUploadFailed = "upload.statusUploadFailed";
|
|
84
|
+
/**
|
|
85
|
+
* @hidden
|
|
86
|
+
*/
|
|
87
|
+
export declare const dropZoneHint = "upload.dropZoneHint";
|
|
88
|
+
/**
|
|
89
|
+
* @hidden
|
|
90
|
+
*/
|
|
91
|
+
export declare const dropZoneNote = "upload.defaultDropZoneNote";
|
|
92
|
+
/**
|
|
93
|
+
* @hidden
|
|
94
|
+
*/
|
|
95
|
+
export declare const restrictionsDropZoneNote = "upload.dropZoneNote";
|
|
96
|
+
/**
|
|
97
|
+
* @hidden
|
|
98
|
+
*/
|
|
99
|
+
export declare const messages: {
|
|
100
|
+
"upload.cancel": string;
|
|
101
|
+
"upload.clearSelectedFiles": string;
|
|
102
|
+
"upload.dropFilesHere": string;
|
|
103
|
+
"upload.headerStatusUploaded": string;
|
|
104
|
+
"upload.headerStatusUploading": string;
|
|
105
|
+
"upload.invalidFileExtension": string;
|
|
106
|
+
"upload.invalidFiles": string;
|
|
107
|
+
"upload.invalidMaxFileSize": string;
|
|
108
|
+
"upload.invalidMinFileSize": string;
|
|
109
|
+
"upload.remove": string;
|
|
110
|
+
"upload.retry": string;
|
|
111
|
+
"upload.select": string;
|
|
112
|
+
"upload.selectTitle": string;
|
|
113
|
+
"upload.selectNoFilesTitle": string;
|
|
114
|
+
"upload.uploadSelectedFiles": string;
|
|
115
|
+
"upload.total": string;
|
|
116
|
+
"upload.files": string;
|
|
117
|
+
"upload.statusUploaded": string;
|
|
118
|
+
"upload.statusUploadFailed": string;
|
|
119
|
+
"upload.dropZoneHint": string;
|
|
120
|
+
"upload.defaultDropZoneNote": string;
|
|
121
|
+
"upload.dropZoneNote": string;
|
|
122
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { PackageMetadata } from '@progress/kendo-licensing';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export declare const packageMetadata: PackageMetadata;
|
package/package-metadata.js
CHANGED
|
@@ -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=Object.freeze({name:"@progress/kendo-react-upload",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate:
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=Object.freeze({name:"@progress/kendo-react-upload",productName:"KendoReact",productCode:"KENDOUIREACT",productCodes:["KENDOUIREACT"],publishDate: 1770218902,version:"13.4.0-develop.1",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"});exports.packageMetadata=e;
|
package/package-metadata.mjs
CHANGED
|
@@ -1,19 +1,13 @@
|
|
|
1
|
+
// Generated file. DO NOT EDIT.
|
|
1
2
|
/**
|
|
2
|
-
* @
|
|
3
|
-
*-------------------------------------------------------------------------------------------
|
|
4
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
-
*-------------------------------------------------------------------------------------------
|
|
3
|
+
* @hidden
|
|
7
4
|
*/
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
5
|
+
export const packageMetadata = Object.freeze({
|
|
6
|
+
name: '@progress/kendo-react-upload',
|
|
7
|
+
productName: 'KendoReact',
|
|
8
|
+
productCode: 'KENDOUIREACT',
|
|
9
|
+
productCodes: ['KENDOUIREACT'],
|
|
10
|
+
publishDate: 0,
|
|
11
|
+
version: '13.4.0-develop.1',
|
|
12
|
+
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/components/my-license/'
|
|
16
13
|
});
|
|
17
|
-
export {
|
|
18
|
-
e as packageMetadata
|
|
19
|
-
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-upload",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.4.0-develop.1",
|
|
4
4
|
"description": "React Upload component helps users transfer files from their file systems to dedicated server handlers. KendoReact Upload package",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"sideEffects": false,
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"@progress/kendo-licensing": "^1.7.2",
|
|
29
|
-
"@progress/kendo-react-buttons": "13.
|
|
30
|
-
"@progress/kendo-react-common": "13.
|
|
31
|
-
"@progress/kendo-react-intl": "13.
|
|
32
|
-
"@progress/kendo-react-progressbars": "13.
|
|
29
|
+
"@progress/kendo-react-buttons": "13.4.0-develop.1",
|
|
30
|
+
"@progress/kendo-react-common": "13.4.0-develop.1",
|
|
31
|
+
"@progress/kendo-react-intl": "13.4.0-develop.1",
|
|
32
|
+
"@progress/kendo-react-progressbars": "13.4.0-develop.1",
|
|
33
33
|
"@progress/kendo-svg-icons": "^4.0.0",
|
|
34
34
|
"axios": "^1.13.2",
|
|
35
35
|
"react": "^16.8.2 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"package": {
|
|
57
57
|
"productName": "KendoReact",
|
|
58
58
|
"productCode": "KENDOUIREACT",
|
|
59
|
-
"publishDate":
|
|
59
|
+
"publishDate": 1770218902,
|
|
60
60
|
"licensingDocsUrl": "https://www.telerik.com/kendo-react-ui/components/my-license/"
|
|
61
61
|
}
|
|
62
62
|
},
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { UploadFileInfo } from '../interfaces/UploadFileInfo.js';
|
|
9
|
+
import { UploadAsyncProps } from '../interfaces/UploadAsyncProps.js';
|
|
10
|
+
import { UploadHttpHeaders } from '../interfaces/UploadHttpHeaders.js';
|
|
11
|
+
import { AxiosResponse } from 'axios';
|
|
12
|
+
import { UploadResponse } from '../interfaces/UploadResponse.js';
|
|
13
|
+
declare const _default: {
|
|
14
|
+
populateClientFormData: (data: FormData, clientData: any) => void;
|
|
15
|
+
populateUploadFormData: (files: UploadFileInfo[], saveField: string, clientData: Object) => FormData;
|
|
16
|
+
populateRemoveFormData: (fileNames: string[], removeField: string, clientData: Object) => FormData;
|
|
17
|
+
populateRequestOptions: (headers: UploadHttpHeaders, async: UploadAsyncProps) => any;
|
|
18
|
+
cloneRequestHeaders: (headers: UploadHttpHeaders) => UploadHttpHeaders;
|
|
19
|
+
convertAxiosResponse: (event: AxiosResponse<any, any, {}>) => UploadResponse;
|
|
20
|
+
};
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { UploadFileInfo } from '../interfaces/UploadFileInfo.js';
|
|
9
|
+
import { UploadFileStatus } from '../interfaces/UploadFileStatus.js';
|
|
10
|
+
import { GroupedFiles } from '../interfaces/FileGroup.js';
|
|
11
|
+
declare const _default: {
|
|
12
|
+
copyState: (state: UploadFileInfo[] | undefined) => {
|
|
13
|
+
uid: string;
|
|
14
|
+
name: string;
|
|
15
|
+
extension?: string | undefined;
|
|
16
|
+
size?: number | undefined;
|
|
17
|
+
validationErrors?: string[] | undefined;
|
|
18
|
+
status: UploadFileStatus;
|
|
19
|
+
progress: number;
|
|
20
|
+
getRawFile?: (() => File) | undefined;
|
|
21
|
+
}[];
|
|
22
|
+
addMany: (fileList: UploadFileInfo[], filesState: UploadFileInfo[]) => void;
|
|
23
|
+
add: (file: UploadFileInfo, filesState: UploadFileInfo[]) => void;
|
|
24
|
+
groupFilesByUid: (files: UploadFileInfo[]) => GroupedFiles;
|
|
25
|
+
filesForUpload: (files: GroupedFiles) => GroupedFiles;
|
|
26
|
+
setFilesStatus: (filesGroup: GroupedFiles, status: UploadFileStatus) => void;
|
|
27
|
+
flatFileGroup: (fileGroup: GroupedFiles) => UploadFileInfo[];
|
|
28
|
+
groupForEach: (fileGroup: GroupedFiles, callBack: (currentFiles: UploadFileInfo[], uid: string) => void) => void;
|
|
29
|
+
};
|
|
30
|
+
export default _default;
|
package/utils/utils.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { UploadFileInfo } from '../interfaces/UploadFileInfo.js';
|
|
9
|
+
import { GroupedFiles } from '../interfaces/FileGroup.js';
|
|
10
|
+
declare const _default: {
|
|
11
|
+
fileHasValidationErrors: Function;
|
|
12
|
+
filesHaveValidationErrors: Function;
|
|
13
|
+
getTotalFilesSizeMessage: Function;
|
|
14
|
+
getAllFileInfo: Function;
|
|
15
|
+
getFileInfo: Function;
|
|
16
|
+
getFileExtension: Function;
|
|
17
|
+
htmlEncode: Function;
|
|
18
|
+
assignGuidToFiles: Function;
|
|
19
|
+
getFileStatus: (currentFiles: GroupedFiles | UploadFileInfo[]) => boolean[];
|
|
20
|
+
};
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
declare const _default: {
|
|
9
|
+
validateFiles: Function;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|