@@ -56,32 +56,6 @@ export interface VueUploadItem {
5656 iframe ?: HTMLElement ;
5757 [ key : string ] : any ;
5858}
59- export interface FileSystemEntry {
60- isDirectory : boolean ;
61- isFile : boolean ;
62- name : string ;
63- fullPath : string ;
64- filesystem : string ;
65- }
66- export interface FileSystemDirectoryReader {
67- readEntries : ( successCallback : ( result : Array < FileSystemDirectoryEntry | FileSystemFileEntry > ) => void , errorCallback ?: ( error : DOMError ) => void ) => void ;
68- }
69- export interface FileSystemFlags {
70- create ?: boolean ;
71- exclusive ?: boolean ;
72- }
73- export interface FileSystemDirectoryEntry extends FileSystemEntry {
74- isDirectory : true ;
75- isFile : false ;
76- createReader : ( ) => FileSystemDirectoryReader ;
77- getFile : ( path ?: string , options ?: FileSystemFlags , successCallback ?: ( result : FileSystemFileEntry ) => void , errorCallback ?: ( error : DOMError ) => void ) => void ;
78- getDirectory : ( path ?: string , options ?: FileSystemFlags , successCallback ?: ( result : FileSystemDirectoryEntry ) => void , errorCallback ?: ( error : DOMError ) => void ) => void ;
79- }
80- export interface FileSystemFileEntry extends FileSystemEntry {
81- isDirectory : false ;
82- isFile : true ;
83- file : ( cb : ( file : File ) => void ) => void ;
84- }
8559declare const _default : import ( "vue" ) . DefineComponent < {
8660 inputId : {
8761 type : StringConstructor ;
@@ -201,7 +175,7 @@ declare const _default: import("vue").DefineComponent<{
201175 add ( _files : VueUploadItem | Blob | Array < VueUploadItem | Blob > , index ?: number | boolean | undefined ) : VueUploadItem | VueUploadItem [ ] | undefined ;
202176 addInputFile ( el : HTMLInputElement ) : Promise < VueUploadItem [ ] > ;
203177 addDataTransfer ( dataTransfer : DataTransfer ) : Promise < VueUploadItem [ ] | undefined > ;
204- getFileSystemEntry ( entry : Array < File | FileSystemFileEntry | FileSystemDirectoryEntry > | File | FileSystemFileEntry | FileSystemDirectoryEntry , path ?: string ) : Promise < VueUploadItem [ ] > ;
178+ getFileSystemEntry ( entry : Array < File | FileSystemEntry > | File | FileSystemEntry , path ?: string ) : Promise < VueUploadItem [ ] > ;
205179 replace ( id1 : VueUploadItem | string , id2 : VueUploadItem | string ) : boolean ;
206180 remove ( id : VueUploadItem | string ) : VueUploadItem | false ;
207181 update ( id : VueUploadItem | string , data : {
@@ -235,63 +209,125 @@ declare const _default: import("vue").DefineComponent<{
235209 onDocumentDrop ( ) : void ;
236210 onDrop ( e : DragEvent ) : void ;
237211 inputOnChange ( e : Event ) : Promise < any > ;
238- } , import ( "vue" ) . ComponentOptionsMixin , import ( "vue" ) . ComponentOptionsMixin , ( "update:modelValue" | "input-filter" | "input-file" ) [ ] , "update:modelValue" | "input-filter" | "input-file" , import ( "vue" ) . VNodeProps & import ( "vue" ) . AllowedComponentProps & import ( "vue" ) . ComponentCustomProps , Readonly < {
239- name : string ;
240- disabled : boolean ;
241- multiple : boolean ;
242- directory : boolean ;
243- createDirectory : boolean ;
212+ } , import ( "vue" ) . ComponentOptionsMixin , import ( "vue" ) . ComponentOptionsMixin , ( "update:modelValue" | "input-filter" | "input-file" ) [ ] , "update:modelValue" | "input-filter" | "input-file" , import ( "vue" ) . VNodeProps & import ( "vue" ) . AllowedComponentProps & import ( "vue" ) . ComponentCustomProps , Readonly < import ( "vue" ) . ExtractPropTypes < {
213+ inputId : {
214+ type : StringConstructor ;
215+ } ;
216+ name : {
217+ type : StringConstructor ;
218+ default : string ;
219+ } ;
220+ accept : {
221+ type : StringConstructor ;
222+ } ;
223+ capture : { } ;
224+ disabled : {
225+ default : boolean ;
226+ } ;
227+ multiple : {
228+ type : BooleanConstructor ;
229+ default : boolean ;
230+ } ;
231+ maximum : {
232+ type : NumberConstructor ;
233+ } ;
234+ addIndex : {
235+ type : ( BooleanConstructor | NumberConstructor ) [ ] ;
236+ } ;
237+ directory : {
238+ type : BooleanConstructor ;
239+ } ;
240+ createDirectory : {
241+ type : BooleanConstructor ;
242+ default : boolean ;
243+ } ;
244+ postAction : {
245+ type : StringConstructor ;
246+ } ;
247+ putAction : {
248+ type : StringConstructor ;
249+ } ;
250+ customAction : {
251+ type : PropType < ( file : VueUploadItem , self : any ) => Promise < VueUploadItem > > ;
252+ } ;
244253 headers : {
245- [ key : string ] : any ;
254+ type : PropType < {
255+ [ key : string ] : any ;
256+ } > ;
257+ default : ( ) => { } ;
246258 } ;
247259 data : {
248- [ key : string ] : any ;
260+ type : PropType < {
261+ [ key : string ] : any ;
262+ } > ;
263+ default : ( ) => { } ;
264+ } ;
265+ timeout : {
266+ type : NumberConstructor ;
267+ default : number ;
268+ } ;
269+ drop : {
270+ default : boolean ;
271+ } ;
272+ dropDirectory : {
273+ type : BooleanConstructor ;
274+ default : boolean ;
275+ } ;
276+ size : {
277+ type : NumberConstructor ;
278+ default : number ;
279+ } ;
280+ extensions : {
281+ type : PropType < string | RegExp | string [ ] > ;
282+ default : ( ) => never [ ] ;
283+ } ;
284+ modelValue : {
285+ type : PropType < VueUploadItem [ ] > ;
286+ default : ( ) => never [ ] ;
287+ } ;
288+ thread : {
289+ type : NumberConstructor ;
290+ default : number ;
291+ } ;
292+ chunkEnabled : {
293+ type : BooleanConstructor ;
294+ default : boolean ;
249295 } ;
250- timeout : number ;
251- drop : boolean ;
252- dropDirectory : boolean ;
253- size : number ;
254- extensions : string | RegExp | string [ ] ;
255- modelValue : VueUploadItem [ ] ;
256- thread : number ;
257- chunkEnabled : boolean ;
258296 chunk : {
259- headers ?: {
260- [ key : string ] : any ;
261- } | undefined ;
262- action ?: string | undefined ;
263- minSize ?: number | undefined ;
264- maxActive ?: number | undefined ;
265- maxRetries ?: number | undefined ;
266- handler ?: any ;
297+ type : PropType < {
298+ headers ?: {
299+ [ key : string ] : any ;
300+ } | undefined ;
301+ action ?: string | undefined ;
302+ minSize ?: number | undefined ;
303+ maxActive ?: number | undefined ;
304+ maxRetries ?: number | undefined ;
305+ handler ?: any ;
306+ } > ;
307+ default : ( ) => ChunkOptions ;
267308 } ;
268- } & {
269- inputId ?: string | undefined ;
270- accept ?: string | undefined ;
271- capture ?: unknown ;
272- maximum ?: number | undefined ;
273- addIndex ?: number | boolean | undefined ;
274- postAction ?: string | undefined ;
275- putAction ?: string | undefined ;
276- customAction ?: ( ( file : VueUploadItem , self : any ) => Promise < VueUploadItem > ) | undefined ;
277- } > , {
309+ } >> & {
310+ "onUpdate:modelValue" ?: ( ( ...args : any [ ] ) => any ) | undefined ;
311+ "onInput-filter" ?: ( ( ...args : any [ ] ) => any ) | undefined ;
312+ "onInput-file" ?: ( ( ...args : any [ ] ) => any ) | undefined ;
313+ } , {
278314 name : string ;
279- disabled : boolean ;
280- multiple : boolean ;
281- directory : boolean ;
282- createDirectory : boolean ;
283- headers : {
315+ size : number ;
316+ timeout : number ;
317+ data : {
284318 [ key : string ] : any ;
285319 } ;
286- data : {
320+ headers : {
287321 [ key : string ] : any ;
288322 } ;
289- timeout : number ;
290323 drop : boolean ;
324+ modelValue : VueUploadItem [ ] ;
325+ disabled : boolean ;
326+ multiple : boolean ;
327+ directory : boolean ;
328+ createDirectory : boolean ;
291329 dropDirectory : boolean ;
292- size : number ;
293330 extensions : string | RegExp | string [ ] ;
294- modelValue : VueUploadItem [ ] ;
295331 thread : number ;
296332 chunkEnabled : boolean ;
297333 chunk : {
0 commit comments