@progress/kendo-vue-upload 8.0.3-develop.2 → 8.0.3-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.
- package/ExternalDropZone.d.ts +115 -0
- package/Upload.d.ts +301 -0
- package/UploadActionButtons.d.ts +50 -0
- package/UploadAddButton.d.ts +70 -0
- package/UploadDropZone.d.ts +118 -0
- package/UploadInput.d.ts +100 -0
- package/UploadList.d.ts +60 -0
- package/UploadListActionButton.d.ts +64 -0
- package/UploadListGroup.d.ts +57 -0
- package/UploadListMultiItem.d.ts +38 -0
- package/UploadListSingleItem.d.ts +41 -0
- package/UploadNavigation.d.ts +113 -0
- package/UploadStatus.d.ts +31 -0
- package/UploadUI.d.ts +150 -0
- package/dist/cdn/js/kendo-vue-upload.js +1 -1
- package/index.d.mts +27 -1091
- package/index.d.ts +27 -1091
- 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 +26 -0
- package/interfaces/UploadOnAddEvent.d.ts +22 -0
- package/interfaces/UploadOnBeforeRemoveEvent.d.ts +28 -0
- package/interfaces/UploadOnBeforeUploadEvent.d.ts +28 -0
- package/interfaces/UploadOnCancelEvent.d.ts +17 -0
- package/interfaces/UploadOnProgressEvent.d.ts +22 -0
- package/interfaces/UploadOnRemoveEvent.d.ts +27 -0
- package/interfaces/UploadOnStatusChangeEvent.d.ts +27 -0
- package/interfaces/UploadProps.d.ts +125 -0
- package/interfaces/UploadResponse.d.ts +32 -0
- package/messages/main.d.ts +127 -0
- package/package-metadata.d.ts +12 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +14 -8
- package/utils/connectionUtils.d.ts +24 -0
- package/utils/stateUtils.d.ts +33 -0
- package/utils/utils.d.ts +24 -0
- package/utils/validationUtils.d.ts +14 -0
|
@@ -0,0 +1,115 @@
|
|
|
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 { PropType } from 'vue';
|
|
9
|
+
/**
|
|
10
|
+
* Represents the properties of the [ExternalDropZone](% slug api_upload_externaldropzone %) component.
|
|
11
|
+
*/
|
|
12
|
+
export interface ExternalDropZoneProps {
|
|
13
|
+
/**
|
|
14
|
+
* Sets the `id` property of the top div element of the ExternalDropZone.
|
|
15
|
+
*/
|
|
16
|
+
id?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Sets the `style` of the inner div element of the ExternalDropZone.
|
|
19
|
+
*/
|
|
20
|
+
innerStyle?: object;
|
|
21
|
+
/**
|
|
22
|
+
* Sets the `tabIndex` attribute.
|
|
23
|
+
*/
|
|
24
|
+
tabIndex?: number;
|
|
25
|
+
/**
|
|
26
|
+
* Represents the ref of the linked Upload.
|
|
27
|
+
*/
|
|
28
|
+
uploadRef: any;
|
|
29
|
+
/**
|
|
30
|
+
* Determines the disabled mode of the ExternalDropZone.
|
|
31
|
+
*/
|
|
32
|
+
disabled?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Sets different hint node.
|
|
35
|
+
*/
|
|
36
|
+
customHint?: any;
|
|
37
|
+
/**
|
|
38
|
+
* Sets different note node.
|
|
39
|
+
*/
|
|
40
|
+
customNote?: any;
|
|
41
|
+
/**
|
|
42
|
+
* Triggered after a file is dropped into the ExternalDropZone area.
|
|
43
|
+
*/
|
|
44
|
+
onDrop?: (event: any) => void;
|
|
45
|
+
/**
|
|
46
|
+
* Triggered after a file is dragged inside the ExternalDropZone area.
|
|
47
|
+
*/
|
|
48
|
+
onElementdragenter?: (event: any) => void;
|
|
49
|
+
/**
|
|
50
|
+
* Triggered after a file dragging is over.
|
|
51
|
+
*/
|
|
52
|
+
onElementdragover?: (event: any) => void;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Represents the target(element and props) of the ExternalDropZoneEvent.
|
|
56
|
+
*/
|
|
57
|
+
export interface ExternalDropZoneHandle {
|
|
58
|
+
/**
|
|
59
|
+
* The current element or `null` if there is no one.
|
|
60
|
+
*/
|
|
61
|
+
element: HTMLDivElement | null;
|
|
62
|
+
/**
|
|
63
|
+
* The props value of the ExternalDropZone.
|
|
64
|
+
*/
|
|
65
|
+
props: ExternalDropZoneProps;
|
|
66
|
+
/**
|
|
67
|
+
* The focus event callback.
|
|
68
|
+
*/
|
|
69
|
+
focus: () => void;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Represents the return type of the ExternalDropZone.
|
|
73
|
+
*/
|
|
74
|
+
export interface ExternalDropZoneEvent {
|
|
75
|
+
/**
|
|
76
|
+
* The target of the ExternalDropZoneEvent from ExternalDropZoneHandle.
|
|
77
|
+
*/
|
|
78
|
+
target: ExternalDropZoneHandle;
|
|
79
|
+
/**
|
|
80
|
+
* The event of the ExternalDropZoneEvent.
|
|
81
|
+
*/
|
|
82
|
+
event: any;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* @hidden
|
|
86
|
+
*/
|
|
87
|
+
declare const ExternalDropZone: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
88
|
+
id: PropType<string>;
|
|
89
|
+
tabIndex: PropType<number>;
|
|
90
|
+
innerStyle: PropType<object>;
|
|
91
|
+
uploadRef: PropType<any>;
|
|
92
|
+
disabled: PropType<boolean>;
|
|
93
|
+
customHint: PropType<any>;
|
|
94
|
+
customNote: PropType<any>;
|
|
95
|
+
}>, {
|
|
96
|
+
externalDropZoneRef: import('vue').Ref<any, any>;
|
|
97
|
+
kendoLocalizationService: {};
|
|
98
|
+
}, {
|
|
99
|
+
overDropZone: boolean;
|
|
100
|
+
}, {}, {
|
|
101
|
+
focus(): void;
|
|
102
|
+
isDragOver(prevDate: Date | null): boolean;
|
|
103
|
+
handleOnDrop(event: any): void;
|
|
104
|
+
handleOnElementDragEnter(): void;
|
|
105
|
+
handleOnElementDragOver(event: any): void;
|
|
106
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
107
|
+
id: PropType<string>;
|
|
108
|
+
tabIndex: PropType<number>;
|
|
109
|
+
innerStyle: PropType<object>;
|
|
110
|
+
uploadRef: PropType<any>;
|
|
111
|
+
disabled: PropType<boolean>;
|
|
112
|
+
customHint: PropType<any>;
|
|
113
|
+
customNote: PropType<any>;
|
|
114
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
115
|
+
export { ExternalDropZone };
|
package/Upload.d.ts
ADDED
|
@@ -0,0 +1,301 @@
|
|
|
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 { GroupedFiles } from './interfaces/FileGroup';
|
|
9
|
+
import { UploadFileInfo } from './interfaces/UploadFileInfo';
|
|
10
|
+
import { UploadFileStatus } from './interfaces/UploadFileStatus';
|
|
11
|
+
import { AxiosResponse, AxiosProgressEvent } from 'axios';
|
|
12
|
+
import { PropType } from 'vue';
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
export interface UploadData {
|
|
17
|
+
currentFiles: Array<UploadFileInfo>;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @hidden
|
|
21
|
+
*/
|
|
22
|
+
declare const Upload: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
23
|
+
autoUpload: {
|
|
24
|
+
type: PropType<boolean>;
|
|
25
|
+
default: boolean;
|
|
26
|
+
};
|
|
27
|
+
batch: {
|
|
28
|
+
type: PropType<boolean>;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
31
|
+
withCredentials: {
|
|
32
|
+
type: PropType<boolean>;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
saveField: {
|
|
36
|
+
type: PropType<string>;
|
|
37
|
+
default: () => "files";
|
|
38
|
+
};
|
|
39
|
+
saveHeaders: {
|
|
40
|
+
type: PropType<import('.').UploadHttpHeaders>;
|
|
41
|
+
default: () => {};
|
|
42
|
+
};
|
|
43
|
+
saveMethod: {
|
|
44
|
+
type: PropType<string>;
|
|
45
|
+
default: () => "POST";
|
|
46
|
+
};
|
|
47
|
+
saveUrl: {
|
|
48
|
+
type: PropType<string | ((files: UploadFileInfo[], options: {
|
|
49
|
+
formData: FormData;
|
|
50
|
+
requestOptions: any;
|
|
51
|
+
}, onProgress: (uid: string, event: ProgressEvent<EventTarget>) => void) => Promise<{
|
|
52
|
+
uid: string;
|
|
53
|
+
}>)>;
|
|
54
|
+
default: () => "";
|
|
55
|
+
};
|
|
56
|
+
responseType: {
|
|
57
|
+
type: PropType<"text" | "arraybuffer" | "blob" | "json">;
|
|
58
|
+
default: () => "json";
|
|
59
|
+
};
|
|
60
|
+
removeField: {
|
|
61
|
+
type: PropType<string>;
|
|
62
|
+
default: () => "fileNames";
|
|
63
|
+
};
|
|
64
|
+
removeHeaders: {
|
|
65
|
+
type: PropType<import('.').UploadHttpHeaders>;
|
|
66
|
+
default: () => {};
|
|
67
|
+
};
|
|
68
|
+
removeMethod: {
|
|
69
|
+
type: PropType<string>;
|
|
70
|
+
default: () => "POST";
|
|
71
|
+
};
|
|
72
|
+
removeUrl: {
|
|
73
|
+
type: PropType<string | ((files: UploadFileInfo[], options: {
|
|
74
|
+
formData: FormData;
|
|
75
|
+
requestOptions: any;
|
|
76
|
+
}) => Promise<{
|
|
77
|
+
uid: string;
|
|
78
|
+
}>)>;
|
|
79
|
+
default: () => "";
|
|
80
|
+
};
|
|
81
|
+
multiple: {
|
|
82
|
+
type: PropType<boolean>;
|
|
83
|
+
default: boolean;
|
|
84
|
+
};
|
|
85
|
+
disabled: {
|
|
86
|
+
type: PropType<boolean>;
|
|
87
|
+
default: boolean;
|
|
88
|
+
};
|
|
89
|
+
showFileList: {
|
|
90
|
+
type: PropType<boolean>;
|
|
91
|
+
default: boolean;
|
|
92
|
+
};
|
|
93
|
+
showActionButtons: {
|
|
94
|
+
type: PropType<boolean>;
|
|
95
|
+
default: boolean;
|
|
96
|
+
};
|
|
97
|
+
actionsLayout: {
|
|
98
|
+
type: PropType<import('.').UploadActionsLayout>;
|
|
99
|
+
default: () => "end";
|
|
100
|
+
};
|
|
101
|
+
tabIndex: PropType<string | number>;
|
|
102
|
+
accept: PropType<string>;
|
|
103
|
+
list: PropType<any>;
|
|
104
|
+
restrictions: {
|
|
105
|
+
type: PropType<import('.').UploadFileRestrictions>;
|
|
106
|
+
default: () => {
|
|
107
|
+
allowedExtensions: any[];
|
|
108
|
+
maxFileSize: number;
|
|
109
|
+
minFileSize: number;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
validateFile: PropType<(file: UploadFileInfo) => void>;
|
|
113
|
+
files: PropType<UploadFileInfo[]>;
|
|
114
|
+
defaultFiles: PropType<UploadFileInfo[]>;
|
|
115
|
+
}>, {}, {
|
|
116
|
+
currentFiles: any[];
|
|
117
|
+
}, {
|
|
118
|
+
computedAsync(): {
|
|
119
|
+
autoUpload: any;
|
|
120
|
+
batch: any;
|
|
121
|
+
removeField: any;
|
|
122
|
+
removeHeaders: any;
|
|
123
|
+
removeMethod: any;
|
|
124
|
+
removeUrl: any;
|
|
125
|
+
responseType: any;
|
|
126
|
+
saveField: any;
|
|
127
|
+
saveHeaders: any;
|
|
128
|
+
saveMethod: any;
|
|
129
|
+
saveUrl: any;
|
|
130
|
+
withCredentials: any;
|
|
131
|
+
};
|
|
132
|
+
computedFiles(): Array<UploadFileInfo>;
|
|
133
|
+
isControlled(): boolean;
|
|
134
|
+
isCustomSave(): boolean;
|
|
135
|
+
isCustomRemove(): boolean;
|
|
136
|
+
fileStateCopy(): {
|
|
137
|
+
uid: string;
|
|
138
|
+
name: string;
|
|
139
|
+
extension?: string;
|
|
140
|
+
size?: number;
|
|
141
|
+
validationErrors?: string[];
|
|
142
|
+
status: UploadFileStatus;
|
|
143
|
+
progress: number;
|
|
144
|
+
getRawFile?: () => File;
|
|
145
|
+
}[];
|
|
146
|
+
actionElement(): any;
|
|
147
|
+
}, {
|
|
148
|
+
focus(): void;
|
|
149
|
+
uploadFiles(filesForUpload: GroupedFiles): void;
|
|
150
|
+
removeFiles(filesForRemove: GroupedFiles): void;
|
|
151
|
+
onUpload(): void;
|
|
152
|
+
onAdd(files: FileList): void;
|
|
153
|
+
onUploadProgress(uid: string, event: ProgressEvent | AxiosProgressEvent): void;
|
|
154
|
+
onUploadSuccess(uid: string, event?: AxiosResponse): void;
|
|
155
|
+
onUploadError(uid: string, event?: AxiosResponse): void;
|
|
156
|
+
onRemove(uid: string): void;
|
|
157
|
+
onRemoveSuccess(uid: string, event?: AxiosResponse): void;
|
|
158
|
+
onRemoveError(uid: string, event?: AxiosResponse): void;
|
|
159
|
+
onRetry(uid: string): void;
|
|
160
|
+
onCancel(uid: string): void;
|
|
161
|
+
onClear(): void;
|
|
162
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
163
|
+
add: any;
|
|
164
|
+
beforeremove: any;
|
|
165
|
+
beforeupload: any;
|
|
166
|
+
cancel: any;
|
|
167
|
+
statuschange: any;
|
|
168
|
+
progress: any;
|
|
169
|
+
remove: any;
|
|
170
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
171
|
+
autoUpload: {
|
|
172
|
+
type: PropType<boolean>;
|
|
173
|
+
default: boolean;
|
|
174
|
+
};
|
|
175
|
+
batch: {
|
|
176
|
+
type: PropType<boolean>;
|
|
177
|
+
default: boolean;
|
|
178
|
+
};
|
|
179
|
+
withCredentials: {
|
|
180
|
+
type: PropType<boolean>;
|
|
181
|
+
default: boolean;
|
|
182
|
+
};
|
|
183
|
+
saveField: {
|
|
184
|
+
type: PropType<string>;
|
|
185
|
+
default: () => "files";
|
|
186
|
+
};
|
|
187
|
+
saveHeaders: {
|
|
188
|
+
type: PropType<import('.').UploadHttpHeaders>;
|
|
189
|
+
default: () => {};
|
|
190
|
+
};
|
|
191
|
+
saveMethod: {
|
|
192
|
+
type: PropType<string>;
|
|
193
|
+
default: () => "POST";
|
|
194
|
+
};
|
|
195
|
+
saveUrl: {
|
|
196
|
+
type: PropType<string | ((files: UploadFileInfo[], options: {
|
|
197
|
+
formData: FormData;
|
|
198
|
+
requestOptions: any;
|
|
199
|
+
}, onProgress: (uid: string, event: ProgressEvent<EventTarget>) => void) => Promise<{
|
|
200
|
+
uid: string;
|
|
201
|
+
}>)>;
|
|
202
|
+
default: () => "";
|
|
203
|
+
};
|
|
204
|
+
responseType: {
|
|
205
|
+
type: PropType<"text" | "arraybuffer" | "blob" | "json">;
|
|
206
|
+
default: () => "json";
|
|
207
|
+
};
|
|
208
|
+
removeField: {
|
|
209
|
+
type: PropType<string>;
|
|
210
|
+
default: () => "fileNames";
|
|
211
|
+
};
|
|
212
|
+
removeHeaders: {
|
|
213
|
+
type: PropType<import('.').UploadHttpHeaders>;
|
|
214
|
+
default: () => {};
|
|
215
|
+
};
|
|
216
|
+
removeMethod: {
|
|
217
|
+
type: PropType<string>;
|
|
218
|
+
default: () => "POST";
|
|
219
|
+
};
|
|
220
|
+
removeUrl: {
|
|
221
|
+
type: PropType<string | ((files: UploadFileInfo[], options: {
|
|
222
|
+
formData: FormData;
|
|
223
|
+
requestOptions: any;
|
|
224
|
+
}) => Promise<{
|
|
225
|
+
uid: string;
|
|
226
|
+
}>)>;
|
|
227
|
+
default: () => "";
|
|
228
|
+
};
|
|
229
|
+
multiple: {
|
|
230
|
+
type: PropType<boolean>;
|
|
231
|
+
default: boolean;
|
|
232
|
+
};
|
|
233
|
+
disabled: {
|
|
234
|
+
type: PropType<boolean>;
|
|
235
|
+
default: boolean;
|
|
236
|
+
};
|
|
237
|
+
showFileList: {
|
|
238
|
+
type: PropType<boolean>;
|
|
239
|
+
default: boolean;
|
|
240
|
+
};
|
|
241
|
+
showActionButtons: {
|
|
242
|
+
type: PropType<boolean>;
|
|
243
|
+
default: boolean;
|
|
244
|
+
};
|
|
245
|
+
actionsLayout: {
|
|
246
|
+
type: PropType<import('.').UploadActionsLayout>;
|
|
247
|
+
default: () => "end";
|
|
248
|
+
};
|
|
249
|
+
tabIndex: PropType<string | number>;
|
|
250
|
+
accept: PropType<string>;
|
|
251
|
+
list: PropType<any>;
|
|
252
|
+
restrictions: {
|
|
253
|
+
type: PropType<import('.').UploadFileRestrictions>;
|
|
254
|
+
default: () => {
|
|
255
|
+
allowedExtensions: any[];
|
|
256
|
+
maxFileSize: number;
|
|
257
|
+
minFileSize: number;
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
validateFile: PropType<(file: UploadFileInfo) => void>;
|
|
261
|
+
files: PropType<UploadFileInfo[]>;
|
|
262
|
+
defaultFiles: PropType<UploadFileInfo[]>;
|
|
263
|
+
}>> & Readonly<{
|
|
264
|
+
onProgress?: (...args: any[] | unknown[]) => any;
|
|
265
|
+
onCancel?: (...args: any[] | unknown[]) => any;
|
|
266
|
+
onAdd?: (...args: any[] | unknown[]) => any;
|
|
267
|
+
onRemove?: (...args: any[] | unknown[]) => any;
|
|
268
|
+
onBeforeremove?: (...args: any[] | unknown[]) => any;
|
|
269
|
+
onBeforeupload?: (...args: any[] | unknown[]) => any;
|
|
270
|
+
onStatuschange?: (...args: any[] | unknown[]) => any;
|
|
271
|
+
}>, {
|
|
272
|
+
disabled: boolean;
|
|
273
|
+
multiple: boolean;
|
|
274
|
+
autoUpload: boolean;
|
|
275
|
+
batch: boolean;
|
|
276
|
+
withCredentials: boolean;
|
|
277
|
+
saveField: string;
|
|
278
|
+
saveHeaders: import('.').UploadHttpHeaders;
|
|
279
|
+
saveMethod: string;
|
|
280
|
+
saveUrl: string | ((files: UploadFileInfo[], options: {
|
|
281
|
+
formData: FormData;
|
|
282
|
+
requestOptions: any;
|
|
283
|
+
}, onProgress: (uid: string, event: ProgressEvent<EventTarget>) => void) => Promise<{
|
|
284
|
+
uid: string;
|
|
285
|
+
}>);
|
|
286
|
+
responseType: "text" | "arraybuffer" | "blob" | "json";
|
|
287
|
+
removeField: string;
|
|
288
|
+
removeHeaders: import('.').UploadHttpHeaders;
|
|
289
|
+
removeMethod: string;
|
|
290
|
+
removeUrl: string | ((files: UploadFileInfo[], options: {
|
|
291
|
+
formData: FormData;
|
|
292
|
+
requestOptions: any;
|
|
293
|
+
}) => Promise<{
|
|
294
|
+
uid: string;
|
|
295
|
+
}>);
|
|
296
|
+
actionsLayout: import('.').UploadActionsLayout;
|
|
297
|
+
showFileList: boolean;
|
|
298
|
+
showActionButtons: boolean;
|
|
299
|
+
restrictions: import('.').UploadFileRestrictions;
|
|
300
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
301
|
+
export { Upload };
|
|
@@ -0,0 +1,50 @@
|
|
|
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 { PropType } from 'vue';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export interface UploadActionButtonsProps {
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
navigationIndex?: number;
|
|
15
|
+
clearButtonIndex: number;
|
|
16
|
+
uploadButtonIndex: number;
|
|
17
|
+
actionsLayout: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @hidden
|
|
21
|
+
*/
|
|
22
|
+
declare const UploadActionButtons: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
23
|
+
disabled: PropType<boolean>;
|
|
24
|
+
navigationIndex: PropType<number>;
|
|
25
|
+
clearButtonIndex: PropType<number>;
|
|
26
|
+
uploadButtonIndex: PropType<number>;
|
|
27
|
+
actionsLayout: PropType<string>;
|
|
28
|
+
}>, {
|
|
29
|
+
uploadElementRef: import('vue').Ref<any, any>;
|
|
30
|
+
clearElementRef: import('vue').Ref<any, any>;
|
|
31
|
+
kendoLocalizationService: {};
|
|
32
|
+
}, {}, {}, {
|
|
33
|
+
onClearClick(): void;
|
|
34
|
+
onUploadClick(): void;
|
|
35
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
36
|
+
clear: any;
|
|
37
|
+
click: any;
|
|
38
|
+
upload: any;
|
|
39
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
40
|
+
disabled: PropType<boolean>;
|
|
41
|
+
navigationIndex: PropType<number>;
|
|
42
|
+
clearButtonIndex: PropType<number>;
|
|
43
|
+
uploadButtonIndex: PropType<number>;
|
|
44
|
+
actionsLayout: PropType<string>;
|
|
45
|
+
}>> & Readonly<{
|
|
46
|
+
onClick?: (...args: any[] | unknown[]) => any;
|
|
47
|
+
onClear?: (...args: any[] | unknown[]) => any;
|
|
48
|
+
onUpload?: (...args: any[] | unknown[]) => any;
|
|
49
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
50
|
+
export { UploadActionButtons };
|
|
@@ -0,0 +1,70 @@
|
|
|
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 './interfaces/UploadAsyncProps';
|
|
9
|
+
import { PropType } from 'vue';
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export interface UploadAddButtonProps {
|
|
14
|
+
addButtonIndex: number;
|
|
15
|
+
navigationIndex: number | undefined;
|
|
16
|
+
notFocusedIndex: number | undefined;
|
|
17
|
+
tabIndex?: number;
|
|
18
|
+
async: UploadAsyncProps;
|
|
19
|
+
multiple?: boolean;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
accept?: string;
|
|
22
|
+
id?: string;
|
|
23
|
+
ariaLabelledBy?: string;
|
|
24
|
+
ariaDescribedBy?: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* @hidden
|
|
28
|
+
*/
|
|
29
|
+
declare const UploadAddButton: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
30
|
+
addButtonIndex: PropType<number>;
|
|
31
|
+
navigationIndex: PropType<number>;
|
|
32
|
+
notFocusedIndex: PropType<number>;
|
|
33
|
+
tabIndex: PropType<number>;
|
|
34
|
+
async: PropType<UploadAsyncProps>;
|
|
35
|
+
multiple: PropType<boolean>;
|
|
36
|
+
disabled: PropType<boolean>;
|
|
37
|
+
accept: PropType<string>;
|
|
38
|
+
id: PropType<string>;
|
|
39
|
+
ariaLabelledBy: PropType<string>;
|
|
40
|
+
ariaDescribedBy: PropType<string>;
|
|
41
|
+
}>, {
|
|
42
|
+
elementRef: import('vue').Ref<any, any>;
|
|
43
|
+
uploadInputRef: import('vue').Ref<any, any>;
|
|
44
|
+
kendoLocalizationService: {};
|
|
45
|
+
}, {}, {}, {
|
|
46
|
+
focus(): void;
|
|
47
|
+
onClick(): void;
|
|
48
|
+
onAdd(files: any): void;
|
|
49
|
+
onInputMouseDown(e: any): void;
|
|
50
|
+
actionElement(): any;
|
|
51
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
52
|
+
add: any;
|
|
53
|
+
click: any;
|
|
54
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
55
|
+
addButtonIndex: PropType<number>;
|
|
56
|
+
navigationIndex: PropType<number>;
|
|
57
|
+
notFocusedIndex: PropType<number>;
|
|
58
|
+
tabIndex: PropType<number>;
|
|
59
|
+
async: PropType<UploadAsyncProps>;
|
|
60
|
+
multiple: PropType<boolean>;
|
|
61
|
+
disabled: PropType<boolean>;
|
|
62
|
+
accept: PropType<string>;
|
|
63
|
+
id: PropType<string>;
|
|
64
|
+
ariaLabelledBy: PropType<string>;
|
|
65
|
+
ariaDescribedBy: PropType<string>;
|
|
66
|
+
}>> & Readonly<{
|
|
67
|
+
onClick?: (...args: any[] | unknown[]) => any;
|
|
68
|
+
onAdd?: (...args: any[] | unknown[]) => any;
|
|
69
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
70
|
+
export { UploadAddButton };
|
|
@@ -0,0 +1,118 @@
|
|
|
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 { GroupedFiles } from './interfaces/FileGroup';
|
|
9
|
+
import { UploadUIProps } from '.';
|
|
10
|
+
import { PropType } from 'vue';
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
export interface UploadDropZoneProps extends UploadUIProps {
|
|
15
|
+
async: Object;
|
|
16
|
+
fileGroup: GroupedFiles;
|
|
17
|
+
disabled: boolean | undefined;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @hidden
|
|
21
|
+
*/
|
|
22
|
+
declare const UploadDropZone: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
23
|
+
addButtonIndex: PropType<number>;
|
|
24
|
+
async: PropType<Object>;
|
|
25
|
+
multiple: {
|
|
26
|
+
type: PropType<boolean>;
|
|
27
|
+
default: boolean;
|
|
28
|
+
};
|
|
29
|
+
disabled: {
|
|
30
|
+
type: PropType<boolean>;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
showFileList: PropType<boolean>;
|
|
34
|
+
showActionButtons: PropType<boolean>;
|
|
35
|
+
actionsLayout: {
|
|
36
|
+
type: PropType<string>;
|
|
37
|
+
default: () => "end";
|
|
38
|
+
};
|
|
39
|
+
tabIndex: PropType<number>;
|
|
40
|
+
accept: PropType<string>;
|
|
41
|
+
groupedFiles: {
|
|
42
|
+
type: PropType<GroupedFiles>;
|
|
43
|
+
default: () => {};
|
|
44
|
+
};
|
|
45
|
+
navigationIndex: PropType<number>;
|
|
46
|
+
notFocusedIndex: PropType<number>;
|
|
47
|
+
list: PropType<any>;
|
|
48
|
+
id: PropType<string>;
|
|
49
|
+
ariaLabelledBy: PropType<string>;
|
|
50
|
+
ariaDescribedBy: PropType<string>;
|
|
51
|
+
fileGroup: PropType<GroupedFiles>;
|
|
52
|
+
}>, {
|
|
53
|
+
uploadAddButtonRef: import('vue').Ref<any, any>;
|
|
54
|
+
kendoLocalizationService: {};
|
|
55
|
+
}, {
|
|
56
|
+
currentDocumentActive: boolean;
|
|
57
|
+
currentElementActive: boolean;
|
|
58
|
+
}, {
|
|
59
|
+
dropZoneClasses(): {
|
|
60
|
+
'k-dropzone': boolean;
|
|
61
|
+
'k-upload-dropzone': boolean;
|
|
62
|
+
'k-active': any;
|
|
63
|
+
'k-hover': any;
|
|
64
|
+
};
|
|
65
|
+
}, {
|
|
66
|
+
actionElement(): any;
|
|
67
|
+
focus(): any;
|
|
68
|
+
onDocumentDragEnter(): void;
|
|
69
|
+
onDocumentDragOver(): void;
|
|
70
|
+
onElementDragEnter(): void;
|
|
71
|
+
onElementDragOver(event: any): void;
|
|
72
|
+
onDrop(event: any): void;
|
|
73
|
+
isDragOver(prevDate: Date | null): boolean;
|
|
74
|
+
onClick(eventIndex: number): void;
|
|
75
|
+
onAdd(files: any): void;
|
|
76
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
77
|
+
add: any;
|
|
78
|
+
click: any;
|
|
79
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
80
|
+
addButtonIndex: PropType<number>;
|
|
81
|
+
async: PropType<Object>;
|
|
82
|
+
multiple: {
|
|
83
|
+
type: PropType<boolean>;
|
|
84
|
+
default: boolean;
|
|
85
|
+
};
|
|
86
|
+
disabled: {
|
|
87
|
+
type: PropType<boolean>;
|
|
88
|
+
default: boolean;
|
|
89
|
+
};
|
|
90
|
+
showFileList: PropType<boolean>;
|
|
91
|
+
showActionButtons: PropType<boolean>;
|
|
92
|
+
actionsLayout: {
|
|
93
|
+
type: PropType<string>;
|
|
94
|
+
default: () => "end";
|
|
95
|
+
};
|
|
96
|
+
tabIndex: PropType<number>;
|
|
97
|
+
accept: PropType<string>;
|
|
98
|
+
groupedFiles: {
|
|
99
|
+
type: PropType<GroupedFiles>;
|
|
100
|
+
default: () => {};
|
|
101
|
+
};
|
|
102
|
+
navigationIndex: PropType<number>;
|
|
103
|
+
notFocusedIndex: PropType<number>;
|
|
104
|
+
list: PropType<any>;
|
|
105
|
+
id: PropType<string>;
|
|
106
|
+
ariaLabelledBy: PropType<string>;
|
|
107
|
+
ariaDescribedBy: PropType<string>;
|
|
108
|
+
fileGroup: PropType<GroupedFiles>;
|
|
109
|
+
}>> & Readonly<{
|
|
110
|
+
onClick?: (...args: any[] | unknown[]) => any;
|
|
111
|
+
onAdd?: (...args: any[] | unknown[]) => any;
|
|
112
|
+
}>, {
|
|
113
|
+
disabled: boolean;
|
|
114
|
+
multiple: boolean;
|
|
115
|
+
groupedFiles: GroupedFiles;
|
|
116
|
+
actionsLayout: string;
|
|
117
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
118
|
+
export { UploadDropZone };
|