cat-documents-ng 0.2.77 → 0.2.81

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
- * Processes each selected file for templated upload.
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 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;
137
144
  /**
138
145
  * Removes a document from the uploaded files list.
139
146
  * Updates progress tracking and validates form.
@@ -15,6 +15,8 @@ export interface UploadedFile {
15
15
  contentType?: string;
16
16
  fileName?: string;
17
17
  size?: string;
18
+ isUploading?: boolean;
19
+ hasError?: boolean;
18
20
  }
19
21
  export interface DocumentUploadPayload {
20
22
  source: 'Applicant' | 'Application';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cat-documents-ng",
3
- "version": "0.2.77",
3
+ "version": "0.2.81",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.0.0",
6
6
  "@angular/core": "^19.0.0"
@@ -1,20 +0,0 @@
1
- {
2
- "catQwUrl": "https://qa-qw-api.dynamatix.com/api/",
3
- "apiUrl": "https://gatehouse-qa.dynamatix.com/api/",
4
- "swaggerUrl": "https://qa-qw-api.dynamatix.com/api-docs/",
5
- "adminEmail": "neeraj.kumar@catura.co.uk",
6
- "interactBaseApi": "https://qa-interact-api.dynamatix.com/api/",
7
- "actionBaseApi": "https://qa-qw-api.dynamatix.com/api/",
8
- "documentApiUrl": "https://gatehouse-documents-qa-bgavezbwe9b6e9h6.uksouth-01.azurewebsites.net/api/",
9
- "adminPhoneNumber": "+447380300545",
10
- "visibilityOption": {
11
- "isRationalVisible": false,
12
- "isChecklistVisible": false,
13
- "isAudit": false,
14
- "isConversation": true,
15
- "isOverview": true,
16
- "isDocuments": true
17
- },
18
- "env": "qa"
19
-
20
- }