cat-documents-ng 0.2.65 → 0.2.67
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.
|
@@ -82,11 +82,6 @@ export declare class DocumentUploadComponent implements OnDestroy {
|
|
|
82
82
|
* @param dataService - Service for data loading operations
|
|
83
83
|
*/
|
|
84
84
|
constructor(documentUpload: DocumentUploadService, uploadService: DocumentService, config: PrimeNGConfig, fileFormatService: FileFormatService, messageService: MessageService, cdr: ChangeDetectorRef, businessService: DocumentUploadBusinessService, formService: DocumentUploadFormService, dataService: DocumentUploadDataService);
|
|
85
|
-
/**
|
|
86
|
-
* Sets up a global listener for all upload completion events.
|
|
87
|
-
* This helps debug issues with multiple file uploads.
|
|
88
|
-
*/
|
|
89
|
-
private setupGlobalUploadListener;
|
|
90
85
|
/**
|
|
91
86
|
* Handles changes in assignment type selection.
|
|
92
87
|
* Resets form selections, loads categories, and handles applicant loading.
|
|
@@ -163,19 +158,6 @@ export declare class DocumentUploadComponent implements OnDestroy {
|
|
|
163
158
|
* @returns True if the save button should be disabled, false otherwise
|
|
164
159
|
*/
|
|
165
160
|
getSaveButtonDisabled(): boolean;
|
|
166
|
-
/**
|
|
167
|
-
* Checks the upload service status for debugging purposes.
|
|
168
|
-
*/
|
|
169
|
-
checkUploadServiceStatus(): void;
|
|
170
|
-
/**
|
|
171
|
-
* Logs the current upload status for debugging purposes.
|
|
172
|
-
*/
|
|
173
|
-
logUploadStatus(): void;
|
|
174
|
-
/**
|
|
175
|
-
* Checks if all files have completed uploading.
|
|
176
|
-
* @returns True if all files have completed uploading, false otherwise
|
|
177
|
-
*/
|
|
178
|
-
areAllFilesUploaded(): boolean;
|
|
179
161
|
/**
|
|
180
162
|
* Gets the upload progress for a specific file.
|
|
181
163
|
* @param file - The file to get progress for
|
|
@@ -244,11 +226,11 @@ export declare class DocumentUploadComponent implements OnDestroy {
|
|
|
244
226
|
*/
|
|
245
227
|
handleUploadSuccess(response: any): void;
|
|
246
228
|
/**
|
|
247
|
-
* Handles
|
|
229
|
+
* Handles upload error.
|
|
248
230
|
* Resets saving state.
|
|
249
|
-
* @param error - The error that occurred during
|
|
231
|
+
* @param error - The error that occurred during upload
|
|
250
232
|
*/
|
|
251
|
-
|
|
233
|
+
handleUploadError(error: any): void;
|
|
252
234
|
/**
|
|
253
235
|
* Filters applicants based on the selected assignment type.
|
|
254
236
|
* Updates the filtered applicant list.
|
|
@@ -270,12 +252,6 @@ export declare class DocumentUploadComponent implements OnDestroy {
|
|
|
270
252
|
* @param file - The file to monitor for upload completion
|
|
271
253
|
*/
|
|
272
254
|
setupFileUploadListener(file: File): void;
|
|
273
|
-
/**
|
|
274
|
-
* Handles upload error for a specific file.
|
|
275
|
-
* @param file - The file that encountered an error
|
|
276
|
-
* @param errorMessage - The error message
|
|
277
|
-
*/
|
|
278
|
-
handleUploadError(file: File, errorMessage: string): void;
|
|
279
255
|
/**
|
|
280
256
|
* Handles errors during data loading operations.
|
|
281
257
|
* Resets loading state and can be extended for error logging.
|
|
@@ -20,9 +20,10 @@ export declare class DocumentUploadService {
|
|
|
20
20
|
response: any;
|
|
21
21
|
}>;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* The file to upload.
|
|
24
|
+
* @type {*}
|
|
24
25
|
*/
|
|
25
|
-
|
|
26
|
+
uploadedFile: any;
|
|
26
27
|
/**
|
|
27
28
|
* Represent contextId
|
|
28
29
|
* @type {string}
|
|
@@ -69,18 +70,6 @@ export declare class DocumentUploadService {
|
|
|
69
70
|
* @returns {*} - The formdata object.
|
|
70
71
|
*/
|
|
71
72
|
handleCreateFormData(uploadedFile?: File, contextId?: string): FormData | null;
|
|
72
|
-
/**
|
|
73
|
-
* Get upload progress for a specific file
|
|
74
|
-
* @param file - The file to get progress for
|
|
75
|
-
* @returns The upload progress percentage or undefined if not tracked
|
|
76
|
-
*/
|
|
77
|
-
getUploadProgress(file: File): number | undefined;
|
|
78
|
-
/**
|
|
79
|
-
* Check if a file is currently being uploaded
|
|
80
|
-
* @param file - The file to check
|
|
81
|
-
* @returns True if the file is being uploaded
|
|
82
|
-
*/
|
|
83
|
-
isFileUploading(file: File): boolean;
|
|
84
73
|
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentUploadService, never>;
|
|
85
74
|
static ɵprov: i0.ɵɵInjectableDeclaration<DocumentUploadService>;
|
|
86
75
|
}
|