cat-documents-ng 0.2.81 → 0.2.84
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.
|
@@ -102,7 +102,7 @@ export declare class DocumentUploadComponent implements OnDestroy {
|
|
|
102
102
|
onApplicantSelectionChange(): void;
|
|
103
103
|
/**
|
|
104
104
|
* Handles file selection from the file upload component.
|
|
105
|
-
*
|
|
105
|
+
* Processes all selected files in parallel for templated upload.
|
|
106
106
|
* @param event - Event containing the selected files
|
|
107
107
|
*/
|
|
108
108
|
onSelectedFiles(event: {
|
|
@@ -130,17 +130,9 @@ export declare class DocumentUploadComponent implements OnDestroy {
|
|
|
130
130
|
saveDocumentUpload(): void;
|
|
131
131
|
/**
|
|
132
132
|
* Handles templated upload for a single file.
|
|
133
|
-
* Sets up progress tracking and upload listener for the file.
|
|
134
133
|
* @param file - The file to be uploaded
|
|
135
|
-
* @param index - The index of the file in the uploadedFiles array
|
|
136
134
|
*/
|
|
137
|
-
handleTemplatedUpload(file: File
|
|
138
|
-
/**
|
|
139
|
-
* Starts progress simulation for a file upload to show live progress.
|
|
140
|
-
* @param file - The file being uploaded
|
|
141
|
-
* @param index - The index of the file in uploadedFiles array
|
|
142
|
-
*/
|
|
143
|
-
private startProgressSimulation;
|
|
135
|
+
handleTemplatedUpload(file: File): Promise<void>;
|
|
144
136
|
/**
|
|
145
137
|
* Removes a document from the uploaded files list.
|
|
146
138
|
* Updates progress tracking and validates form.
|
|
@@ -8,15 +8,13 @@ import { UploadedFileResponse } from '../models/uploaded-file-response.model';
|
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export interface UploadedFile {
|
|
10
10
|
file: File;
|
|
11
|
-
formattedSize
|
|
12
|
-
progress
|
|
11
|
+
formattedSize?: string;
|
|
12
|
+
progress?: number;
|
|
13
13
|
uploadResponse?: UploadedFileResponse;
|
|
14
14
|
url?: string;
|
|
15
15
|
contentType?: string;
|
|
16
16
|
fileName?: string;
|
|
17
17
|
size?: string;
|
|
18
|
-
isUploading?: boolean;
|
|
19
|
-
hasError?: boolean;
|
|
20
18
|
}
|
|
21
19
|
export interface DocumentUploadPayload {
|
|
22
20
|
source: 'Applicant' | 'Application';
|