cat-documents-ng 0.2.80 → 0.2.82
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
|
+
* Immediately adds files to uploadedFiles array and starts upload process.
|
|
106
106
|
* @param event - Event containing the selected files
|
|
107
107
|
*/
|
|
108
108
|
onSelectedFiles(event: {
|
|
@@ -132,8 +132,15 @@ export declare class DocumentUploadComponent implements OnDestroy {
|
|
|
132
132
|
* Handles templated upload for a single file.
|
|
133
133
|
* Sets up progress tracking and upload listener for the file.
|
|
134
134
|
* @param file - The file to be uploaded
|
|
135
|
+
* @param index - The index of the file in the uploadedFiles array
|
|
135
136
|
*/
|
|
136
|
-
handleTemplatedUpload(file: File): Promise<void>;
|
|
137
|
+
handleTemplatedUpload(file: File, index: number): Promise<void>;
|
|
138
|
+
/**
|
|
139
|
+
* Starts smooth progress animation for a file upload from 0 to 90.
|
|
140
|
+
* @param file - The file being uploaded
|
|
141
|
+
* @param index - The index of the file in uploadedFiles array
|
|
142
|
+
*/
|
|
143
|
+
private startSmoothProgress;
|
|
137
144
|
/**
|
|
138
145
|
* Removes a document from the uploaded files list.
|
|
139
146
|
* Updates progress tracking and validates form.
|
|
@@ -180,6 +187,36 @@ export declare class DocumentUploadComponent implements OnDestroy {
|
|
|
180
187
|
* @returns True if the file has an error, false otherwise
|
|
181
188
|
*/
|
|
182
189
|
isFileError(file: File): boolean;
|
|
190
|
+
/**
|
|
191
|
+
* Gets the number of files currently uploading.
|
|
192
|
+
* @returns The count of files currently being uploaded
|
|
193
|
+
*/
|
|
194
|
+
getUploadingCount(): number;
|
|
195
|
+
/**
|
|
196
|
+
* Gets the number of files that have been successfully uploaded.
|
|
197
|
+
* @returns The count of successfully uploaded files
|
|
198
|
+
*/
|
|
199
|
+
getUploadedCount(): number;
|
|
200
|
+
/**
|
|
201
|
+
* Gets the number of files that failed to upload.
|
|
202
|
+
* @returns The count of failed uploads
|
|
203
|
+
*/
|
|
204
|
+
getFailedCount(): number;
|
|
205
|
+
/**
|
|
206
|
+
* Gets the total number of files in the upload queue.
|
|
207
|
+
* @returns The total count of files (uploading + uploaded + failed)
|
|
208
|
+
*/
|
|
209
|
+
getTotalCount(): number;
|
|
210
|
+
/**
|
|
211
|
+
* Checks if there are any files currently uploading.
|
|
212
|
+
* @returns True if any files are uploading, false otherwise
|
|
213
|
+
*/
|
|
214
|
+
hasUploadingFiles(): boolean;
|
|
215
|
+
/**
|
|
216
|
+
* Checks if all files have completed (either uploaded or failed).
|
|
217
|
+
* @returns True if all files have completed, false otherwise
|
|
218
|
+
*/
|
|
219
|
+
allFilesCompleted(): boolean;
|
|
183
220
|
/**
|
|
184
221
|
* Resets the form to its initial state.
|
|
185
222
|
* Clears all selections, uploaded files, and progress tracking.
|