quasar-ui-danx 0.4.1 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/danx.es.js +7234 -6741
- package/dist/danx.es.js.map +1 -1
- package/dist/danx.umd.js +11 -5
- package/dist/danx.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +3 -1
- package/src/components/ActionTable/ActionTable.vue +31 -43
- package/src/components/ActionTable/Columns/ActionTableColumn.vue +19 -18
- package/src/components/ActionTable/Filters/CollapsableFiltersSidebar.vue +15 -14
- package/src/components/ActionTable/Filters/{FilterFieldList.vue → FilterList.vue} +26 -26
- package/src/components/ActionTable/Filters/FilterableField.vue +28 -31
- package/src/components/ActionTable/Filters/index.ts +2 -2
- package/src/components/ActionTable/Form/Fields/EditOnClickTextField.vue +71 -0
- package/src/components/ActionTable/Form/Fields/FieldLabel.vue +8 -13
- package/src/components/ActionTable/Form/Fields/FileUploadButton.vue +34 -33
- package/src/components/ActionTable/Form/Fields/MultiFileField.vue +48 -44
- package/src/components/ActionTable/Form/Fields/NumberField.vue +60 -59
- package/src/components/ActionTable/Form/Fields/SelectField.vue +124 -138
- package/src/components/ActionTable/Form/Fields/SelectWithChildrenField.vue +28 -33
- package/src/components/ActionTable/Form/Fields/SingleFileField.vue +15 -15
- package/src/components/ActionTable/Form/Fields/SliderNumberField.vue +45 -0
- package/src/components/ActionTable/Form/Fields/TextField.vue +47 -66
- package/src/components/ActionTable/Form/Fields/index.ts +2 -0
- package/src/components/ActionTable/Form/RenderedForm.vue +50 -13
- package/src/components/ActionTable/Form/Utilities/MaxLengthCounter.vue +17 -0
- package/src/components/ActionTable/Form/Utilities/index.ts +1 -0
- package/src/components/ActionTable/Form/index.ts +1 -0
- package/src/components/ActionTable/Layouts/ActionTableLayout.vue +22 -16
- package/src/components/ActionTable/Toolbars/ActionToolbar.vue +11 -11
- package/src/components/ActionTable/listControls.ts +104 -166
- package/src/components/ActionTable/listHelpers.ts +2 -3
- package/src/components/ActionTable/tableColumns.ts +53 -77
- package/src/components/AuditHistory/AuditHistoryItemValue.vue +26 -26
- package/src/components/PanelsDrawer/PanelsDrawer.vue +17 -4
- package/src/components/PanelsDrawer/PanelsDrawerPanels.vue +6 -11
- package/src/components/PanelsDrawer/PanelsDrawerTabs.vue +20 -20
- package/src/components/Utility/Dialogs/ConfirmActionDialog.vue +39 -0
- package/src/components/Utility/Dialogs/ConfirmDialog.vue +57 -117
- package/src/components/Utility/Dialogs/DialogLayout.vue +77 -0
- package/src/components/Utility/Dialogs/FullscreenCarouselDialog.vue +42 -36
- package/src/components/Utility/Dialogs/InfoDialog.vue +40 -80
- package/src/components/Utility/Dialogs/index.ts +1 -0
- package/src/components/Utility/Files/FilePreview.vue +76 -73
- package/src/components/Utility/Layouts/ContentDrawer.vue +24 -31
- package/src/components/Utility/Tools/ActionVnode.vue +3 -3
- package/src/components/Utility/Tools/RenderVnode.vue +20 -11
- package/src/components/Utility/Transitions/MaxHeightTransition.vue +26 -0
- package/src/components/Utility/Transitions/index.ts +1 -0
- package/src/config/index.ts +36 -31
- package/src/helpers/FileUpload.ts +295 -297
- package/src/helpers/FlashMessages.ts +80 -71
- package/src/helpers/actions.ts +102 -82
- package/src/helpers/download.ts +189 -189
- package/src/helpers/downloadPdf.ts +55 -52
- package/src/helpers/formats.ts +151 -109
- package/src/helpers/index.ts +2 -0
- package/src/helpers/multiFileUpload.ts +72 -58
- package/src/helpers/objectStore.ts +52 -0
- package/src/helpers/request.ts +70 -51
- package/src/helpers/routes.ts +29 -0
- package/src/helpers/storage.ts +7 -3
- package/src/helpers/utils.ts +47 -29
- package/src/styles/quasar-reset.scss +94 -68
- package/src/styles/themes/danx/dialogs.scss +47 -0
- package/src/styles/themes/danx/forms.scss +18 -0
- package/src/styles/themes/danx/index.scss +4 -0
- package/src/types/actions.d.ts +43 -0
- package/src/types/config.d.ts +15 -0
- package/src/types/controls.d.ts +99 -0
- package/src/types/dialogs.d.ts +32 -0
- package/src/types/fields.d.ts +20 -0
- package/src/types/files.d.ts +54 -0
- package/src/types/formats.d.ts +4 -0
- package/src/{components/ActionTable/Form/form.d.ts → types/forms.d.ts} +6 -0
- package/src/types/index.d.ts +12 -0
- package/src/types/requests.d.ts +13 -0
- package/src/types/shared.d.ts +15 -0
- package/src/types/tables.d.ts +27 -0
- package/types/index.d.ts +1 -1
- /package/src/components/ActionTable/Filters/{FilterFieldItem.vue → FilterItem.vue} +0 -0
@@ -1,305 +1,303 @@
|
|
1
1
|
import { uid } from "quasar";
|
2
2
|
import { danxOptions } from "../config";
|
3
|
+
import {
|
4
|
+
FileUploadAllCompleteCallback,
|
5
|
+
FileUploadCompleteCallback,
|
6
|
+
FileUploadErrorCallback,
|
7
|
+
FileUploadOptions,
|
8
|
+
FileUploadProgressCallback,
|
9
|
+
UploadedFile,
|
10
|
+
XHRFileUpload
|
11
|
+
} from "../types";
|
3
12
|
import { resolveFileLocation } from "./files";
|
4
13
|
import { FlashMessages } from "./FlashMessages";
|
5
14
|
|
6
|
-
export type FileUploadOptions = {
|
7
|
-
directory?: string,
|
8
|
-
presignedUploadUrl?: Function | null;
|
9
|
-
uploadCompletedUrl?: Function | null;
|
10
|
-
};
|
11
|
-
|
12
|
-
export type UploadedFile = {
|
13
|
-
id: string,
|
14
|
-
name: string,
|
15
|
-
size: number,
|
16
|
-
type: string,
|
17
|
-
progress: number,
|
18
|
-
location: string,
|
19
|
-
blobUrl: string,
|
20
|
-
url: string,
|
21
|
-
}
|
22
15
|
|
23
16
|
export class FileUpload {
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
17
|
+
files: UploadedFile[] = [];
|
18
|
+
fileUploads: XHRFileUpload[] = [];
|
19
|
+
onErrorCb: FileUploadErrorCallback | null = null;
|
20
|
+
onProgressCb: FileUploadProgressCallback | null = null;
|
21
|
+
onCompleteCb: FileUploadCompleteCallback | null = null;
|
22
|
+
onAllCompleteCb: FileUploadAllCompleteCallback | null = null;
|
23
|
+
options: FileUploadOptions;
|
24
|
+
|
25
|
+
constructor(files: UploadedFile[] | UploadedFile, options?: FileUploadOptions) {
|
26
|
+
this.files = !Array.isArray(files) && !(files instanceof FileList) ? [files] : files;
|
27
|
+
this.fileUploads = [];
|
28
|
+
this.onErrorCb = null;
|
29
|
+
this.onProgressCb = null;
|
30
|
+
this.onCompleteCb = null;
|
31
|
+
this.onAllCompleteCb = null;
|
32
|
+
|
33
|
+
this.options = {
|
34
|
+
createPresignedUpload: null,
|
35
|
+
completePresignedUpload: null,
|
36
|
+
...danxOptions.value.fileUpload,
|
37
|
+
...options
|
38
|
+
};
|
39
|
+
|
40
|
+
if (!this.options.createPresignedUpload || !this.options.completePresignedUpload) {
|
41
|
+
throw new Error("Please configure danxOptions.fileUpload: import { configure } from 'quasar-ui-danx';");
|
42
|
+
}
|
43
|
+
this.prepare();
|
44
|
+
}
|
45
|
+
|
46
|
+
/**
|
47
|
+
* Prepares all files for upload and provides an id and blobUrl for each file
|
48
|
+
*/
|
49
|
+
prepare() {
|
50
|
+
// Prepare required attributes
|
51
|
+
for (const file of this.files) {
|
52
|
+
if (!(file instanceof File)) {
|
53
|
+
throw Error(
|
54
|
+
"FileUpload constructor requires a File object or a list of File objects"
|
55
|
+
);
|
56
|
+
}
|
57
|
+
|
58
|
+
file.id = uid();
|
59
|
+
file.blobUrl = URL.createObjectURL(file);
|
60
|
+
|
61
|
+
// Prepare FormData
|
62
|
+
const formData = new FormData();
|
63
|
+
formData.append("file", file);
|
64
|
+
|
65
|
+
this.fileUploads.push({
|
66
|
+
file,
|
67
|
+
xhr: null, // NOTE: The XHR will be setup asynchronously right before sending file uploads
|
68
|
+
formData,
|
69
|
+
isComplete: false
|
70
|
+
});
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
/**
|
75
|
+
* Callback for when all files have been uploaded
|
76
|
+
*/
|
77
|
+
onAllComplete(cb: FileUploadAllCompleteCallback) {
|
78
|
+
this.onAllCompleteCb = cb;
|
79
|
+
return this;
|
80
|
+
}
|
81
|
+
|
82
|
+
/**
|
83
|
+
* Callback fired once for each file upon successful completion of upload
|
84
|
+
* @param cb
|
85
|
+
* @returns {FileUpload}
|
86
|
+
*/
|
87
|
+
onComplete(cb: FileUploadCompleteCallback) {
|
88
|
+
this.onCompleteCb = cb;
|
89
|
+
return this;
|
90
|
+
}
|
91
|
+
|
92
|
+
/**
|
93
|
+
* Callback fired each time there is an upload progress update for a file
|
94
|
+
* @param cb
|
95
|
+
* @returns {FileUpload}
|
96
|
+
*/
|
97
|
+
onProgress(cb: FileUploadProgressCallback) {
|
98
|
+
this.onProgressCb = cb;
|
99
|
+
return this;
|
100
|
+
}
|
101
|
+
|
102
|
+
/**
|
103
|
+
* Callback fired when an error occurs during upload
|
104
|
+
*/
|
105
|
+
onError(cb: FileUploadErrorCallback) {
|
106
|
+
this.onErrorCb = cb;
|
107
|
+
return this;
|
108
|
+
}
|
109
|
+
|
110
|
+
/**
|
111
|
+
* Handles the error events / fires the callback if it is set
|
112
|
+
*/
|
113
|
+
errorHandler(e: InputEvent, file: UploadedFile, error = null) {
|
114
|
+
if (this.onErrorCb) {
|
115
|
+
this.onErrorCb({ e, file, error });
|
116
|
+
}
|
117
|
+
}
|
118
|
+
|
119
|
+
/**
|
120
|
+
* Resolve the locations of all the files
|
121
|
+
* @returns {Promise<FileUpload>}
|
122
|
+
*/
|
123
|
+
async resolveLocation(waitMessage = null) {
|
124
|
+
for (const fileUpload of this.fileUploads) {
|
125
|
+
fileUpload.file.location = await resolveFileLocation(
|
126
|
+
fileUpload.file,
|
127
|
+
waitMessage
|
128
|
+
);
|
129
|
+
fileUpload.formData.append(
|
130
|
+
"meta",
|
131
|
+
JSON.stringify(fileUpload.file.location)
|
132
|
+
);
|
133
|
+
}
|
134
|
+
return this;
|
135
|
+
}
|
136
|
+
|
137
|
+
/**
|
138
|
+
* Fires the progress callback
|
139
|
+
* @param fileUpload
|
140
|
+
* @param progress
|
141
|
+
*/
|
142
|
+
fireProgressCallback(fileUpload: XHRFileUpload, progress: number) {
|
143
|
+
fileUpload.file.progress = progress;
|
144
|
+
this.onProgressCb && this.onProgressCb({ file: this.wrapFile(fileUpload.file), progress });
|
145
|
+
}
|
146
|
+
|
147
|
+
/**
|
148
|
+
* Fires the complete callback
|
149
|
+
* @param fileUpload
|
150
|
+
* @param uploadedFile
|
151
|
+
*/
|
152
|
+
fireCompleteCallback(fileUpload: XHRFileUpload, uploadedFile: UploadedFile) {
|
153
|
+
fileUpload.isComplete = true;
|
154
|
+
fileUpload.file.progress = 1;
|
155
|
+
this.onCompleteCb && this.onCompleteCb({ file: this.wrapFile(fileUpload.file), uploadedFile });
|
156
|
+
}
|
157
|
+
|
158
|
+
/**
|
159
|
+
* Check if all files have been uploaded and call the callback if they have
|
160
|
+
*/
|
161
|
+
checkAllComplete() {
|
162
|
+
if (this.onAllCompleteCb) {
|
163
|
+
if (this.fileUploads.every((fileUpload) => fileUpload.isComplete)) {
|
164
|
+
this.onAllCompleteCb({ files: this.fileUploads });
|
165
|
+
}
|
166
|
+
}
|
167
|
+
}
|
168
|
+
|
169
|
+
/**
|
170
|
+
* Returns a native JS object that is easier to work with than the File objects (no weird behavior of missing
|
171
|
+
* properties, easily printable, etc.)
|
172
|
+
*/
|
173
|
+
wrapFile(file: UploadedFile) {
|
174
|
+
return {
|
175
|
+
id: file.id,
|
176
|
+
name: file.name,
|
177
|
+
size: file.size,
|
178
|
+
type: file.type,
|
179
|
+
progress: file.progress,
|
180
|
+
location: file.location,
|
181
|
+
blobUrl: file.blobUrl,
|
182
|
+
url: ""
|
183
|
+
};
|
184
|
+
}
|
185
|
+
|
186
|
+
/**
|
187
|
+
* Registers all the callbacks requested for the XHR / post-processing of file uploads
|
188
|
+
*/
|
189
|
+
setXhrCallbacks() {
|
190
|
+
// Set the error callbacks
|
191
|
+
for (const fileUpload of this.fileUploads) {
|
192
|
+
fileUpload.xhr?.addEventListener(
|
193
|
+
"error",
|
194
|
+
(e) => this.errorHandler(e, fileUpload.file),
|
195
|
+
false
|
196
|
+
);
|
197
|
+
}
|
198
|
+
|
199
|
+
// Set the progress callbacks
|
200
|
+
if (this.onProgressCb) {
|
201
|
+
for (const fileUpload of this.fileUploads) {
|
202
|
+
fileUpload.xhr?.upload.addEventListener(
|
203
|
+
"progress",
|
204
|
+
(e) => {
|
205
|
+
// Max of 95%, so we can indicate we are completing the signed URL process
|
206
|
+
const progress = Math.min(.95, e.loaded / e.total);
|
207
|
+
this.fireProgressCallback(fileUpload, progress);
|
208
|
+
},
|
209
|
+
false
|
210
|
+
);
|
211
|
+
}
|
212
|
+
}
|
213
|
+
|
214
|
+
// Set the load callbacks which registers the Complete / All Complete callbacks and handles non-xhr related
|
215
|
+
// errors
|
216
|
+
for (const fileUpload of this.fileUploads) {
|
217
|
+
fileUpload.xhr?.addEventListener(
|
218
|
+
"load",
|
219
|
+
async (e) => {
|
220
|
+
try {
|
221
|
+
// First complete the presigned upload to get the updated file resource data
|
222
|
+
const uploadedFile = await this.completePresignedUpload(fileUpload);
|
223
|
+
|
224
|
+
// Fire the file complete callbacks
|
225
|
+
this.fireCompleteCallback(fileUpload, uploadedFile);
|
226
|
+
this.checkAllComplete();
|
227
|
+
} catch (error) {
|
228
|
+
this.errorHandler(e, fileUpload.file, error);
|
229
|
+
}
|
230
|
+
},
|
231
|
+
false
|
232
|
+
);
|
233
|
+
}
|
234
|
+
}
|
235
|
+
|
236
|
+
/**
|
237
|
+
* Mark the presigned upload as completed and return the file resource from the platform server
|
238
|
+
*/
|
239
|
+
async completePresignedUpload(fileUpload: XHRFileUpload) {
|
240
|
+
// Show 95% as the last 5% will be to complete the presigned upload
|
241
|
+
this.fireProgressCallback(fileUpload, .95);
|
242
|
+
|
243
|
+
if (!fileUpload.file.resource_id) {
|
244
|
+
throw new Error("File resource ID is required to complete presigned upload");
|
245
|
+
}
|
246
|
+
|
247
|
+
if (!this.options.completePresignedUpload) {
|
248
|
+
throw new Error("Please configure danxOptions.fileUpload.completePresignedUpload");
|
249
|
+
}
|
250
|
+
|
251
|
+
// Let the platform know the presigned upload is complete
|
252
|
+
return await this.options.completePresignedUpload(fileUpload.file.resource_id);
|
253
|
+
}
|
254
|
+
|
255
|
+
/**
|
256
|
+
* Start uploading all files
|
257
|
+
*/
|
258
|
+
async upload() {
|
259
|
+
for (const fileUpload of this.fileUploads) {
|
260
|
+
const mimeType = fileUpload.file.mimeType || fileUpload.file.type;
|
261
|
+
|
262
|
+
if (!this.options.createPresignedUpload) {
|
263
|
+
throw new Error("Please configure danxOptions.fileUpload.createPresignedUpload");
|
264
|
+
}
|
265
|
+
|
266
|
+
// Fetch presigned upload URL
|
267
|
+
const fileResource = await this.options.createPresignedUpload(this.options.directory || "", fileUpload.file.name, mimeType);
|
268
|
+
|
269
|
+
if (!fileResource.url) {
|
270
|
+
FlashMessages.error("Could not fetch presigned upload URL for file " + fileUpload.file.name);
|
271
|
+
continue;
|
272
|
+
}
|
273
|
+
|
274
|
+
const isS3Upload = !fileResource.url.match("upload-presigned-url-contents");
|
275
|
+
|
276
|
+
// We need the file resource ID to complete the presigned upload
|
277
|
+
fileUpload.file.resource_id = fileResource.id;
|
278
|
+
|
279
|
+
// Prepare XHR request
|
280
|
+
const xhr = new XMLHttpRequest();
|
281
|
+
|
282
|
+
// The XHR request is different based on weather we're sending to S3 or the platform server
|
283
|
+
if (isS3Upload) {
|
284
|
+
xhr.open("PUT", fileResource.url);
|
285
|
+
xhr.setRequestHeader("Content-Type", mimeType);
|
286
|
+
fileUpload.body = fileUpload.file;
|
287
|
+
} else {
|
288
|
+
xhr.open("POST", fileResource.url);
|
289
|
+
fileUpload.body = fileUpload.formData;
|
290
|
+
}
|
291
|
+
|
292
|
+
fileUpload.xhr = xhr;
|
293
|
+
}
|
294
|
+
|
295
|
+
// Set all the callbacks on the XHR requests
|
296
|
+
this.setXhrCallbacks();
|
297
|
+
|
298
|
+
// Send all the XHR file uploads
|
299
|
+
for (const fileUpload of this.fileUploads) {
|
300
|
+
fileUpload.xhr?.send(fileUpload.body);
|
301
|
+
}
|
302
|
+
}
|
305
303
|
}
|