cat-documents-ng 0.2.82 → 0.2.85

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
- * Immediately adds files to uploadedFiles array and starts upload process.
105
+ * Processes each selected file for templated upload.
106
106
  * @param event - Event containing the selected files
107
107
  */
108
108
  onSelectedFiles(event: {
@@ -132,15 +132,8 @@ 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
136
135
  */
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;
136
+ handleTemplatedUpload(file: File): Promise<void>;
144
137
  /**
145
138
  * Removes a document from the uploaded files list.
146
139
  * Updates progress tracking and validates form.
@@ -187,36 +180,6 @@ export declare class DocumentUploadComponent implements OnDestroy {
187
180
  * @returns True if the file has an error, false otherwise
188
181
  */
189
182
  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;
220
183
  /**
221
184
  * Resets the form to its initial state.
222
185
  * Clears all selections, uploaded files, and progress tracking.
@@ -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: string;
12
- progress: number;
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';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cat-documents-ng",
3
- "version": "0.2.82",
3
+ "version": "0.2.85",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.0.0",
6
6
  "@angular/core": "^19.0.0"