carriera-intern-components 1.1.173 → 1.1.174
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.
|
@@ -3473,20 +3473,24 @@ class DropZoneComponent {
|
|
|
3473
3473
|
}
|
|
3474
3474
|
populateDocs(currentFiles) {
|
|
3475
3475
|
if (currentFiles?.length) {
|
|
3476
|
-
this.docs.set(currentFiles.map((file) =>
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
.
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3476
|
+
this.docs.set(currentFiles.map((file) => {
|
|
3477
|
+
if (file.imagePreviewUrl)
|
|
3478
|
+
return file;
|
|
3479
|
+
return {
|
|
3480
|
+
fileName: file.fileName || '',
|
|
3481
|
+
baseName: file.fileName || '',
|
|
3482
|
+
fileId: file.fileId || 0,
|
|
3483
|
+
type: file.fileName
|
|
3484
|
+
?.split('.')
|
|
3485
|
+
.pop()
|
|
3486
|
+
?.toLowerCase() || 'pdf',
|
|
3487
|
+
size: file.fileSize || 0,
|
|
3488
|
+
imagePreviewUrl: file.url || '',
|
|
3489
|
+
file: null,
|
|
3490
|
+
pageCount: undefined,
|
|
3491
|
+
tag: file.tags?.[0] || '',
|
|
3492
|
+
};
|
|
3493
|
+
}));
|
|
3490
3494
|
}
|
|
3491
3495
|
this.deletedDocs.set(this.deletedFileIds() ?? []);
|
|
3492
3496
|
}
|