68 | | * `abort` - , |
69 | | * `current` - , |
70 | | * `error` - , |
71 | | * `errors` - , |
72 | | * `pick` - , |
73 | | * `progress` - , |
74 | | * `queue` - , |
75 | | * `reset` - , |
76 | | * `result` - , |
77 | | * `start` - , |
| 68 | * `abort` - callback function for aborting upload, |
| 69 | * `current` - files that are currently uploaded, |
| 70 | * `error` - error value - raw jQuery response, |
| 71 | * `errors` - error vector, used when //keep-going// is set, |
| 72 | * `pick` - callback that launches standard file picker, |
| 73 | * `progress` - vector of results of files upload - parsed //POST// response, |
| 74 | * `queue` - vector of files that are waiting for upload, |
| 75 | * `reset` - callback function that resets component to //idle// state, |
| 76 | * `result` - vector of parsed //POST// responses, |
| 77 | * `start` - callback function that starts file uploading. |
81 | | Shown when nothing is to be done. Slot props: |
82 | | |
83 | | * `pick` - callback function for picking files. |
84 | | |
85 | | === hover |
86 | | |
87 | | Displayed when files are ready to drop. Has no scope props. |
88 | | |
89 | | === wait |
90 | | |
91 | | Used when some files are waiting for upload. Props: |
92 | | |
93 | | * `start` - begin processing callback function, |
94 | | * `reset` - reset component to //idle// state, |
95 | | * `queue` - vector of files awaiting to upload. |
96 | | |
97 | | === uploading |
98 | | |
99 | | Shown when uploading files. Slot props: |
100 | | |
101 | | * `progress` - uploaded items, |
102 | | * `current` - files that are now processed, |
103 | | * `queue` - remaining files, |
104 | | * `errors` - error list, |
105 | | * `abort` - abort function callback. |
106 | | |
107 | | === done |
108 | | |
109 | | Displayed upon completion. Props: |
110 | | |
111 | | * `result` - results vector, |
112 | | * `reset` - reset to //idle// state callback function. |
113 | | |
114 | | === error |
115 | | |
116 | | === aborted |
117 | | |
118 | | === with-errors |
| 81 | ||= slot name =||= props =||= when used =|| |
| 82 | || idle || pick || nothing has to be done || |
| 83 | || hover || (no props) || component is hovered with files - drop is possible || |
| 84 | || wait || start, reset, queue || ready for upload || |
| 85 | || uploading || progress, current, queue, errors, abort || upload is pending || |
| 86 | || done || results, reset || upload is done || |
| 87 | || error || error, reset || an error occured || |
| 88 | || aborted || result, reset || upload has been aborted || |
| 89 | || with-errors || result, errors, reset || upload completed with errors || |