cat-documents-ng 0.2.32 → 0.2.35

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.
Files changed (33) hide show
  1. package/Shared/components/table-primary/table-primary.component.d.ts +25 -0
  2. package/Shared/constant/ERROR.d.ts +1 -0
  3. package/Shared/constant/SHARED.d.ts +96 -5
  4. package/Shared/constant/URLS.d.ts +22 -0
  5. package/Shared/shared.module.d.ts +11 -0
  6. package/fesm2022/cat-documents-ng.mjs +2154 -524
  7. package/fesm2022/cat-documents-ng.mjs.map +1 -1
  8. package/lib/document/components/document-container/document-container.component.d.ts +36 -34
  9. package/lib/document/components/document-list/document-list.component.d.ts +63 -26
  10. package/lib/document/components/document-status/document-status.component.d.ts +22 -0
  11. package/lib/document/components/document-viewer/document-viewer.component.d.ts +6 -6
  12. package/lib/document/components/documents-menu/documents-menu.component.d.ts +40 -3
  13. package/lib/document/components/folder-container/folder-container.component.d.ts +33 -3
  14. package/lib/document/components/linked-document/linked-document.component.d.ts +5 -4
  15. package/lib/document/components/user-list/user-list.component.d.ts +29 -0
  16. package/lib/document/directives/document.directive.d.ts +2 -2
  17. package/lib/document/document.module.d.ts +25 -21
  18. package/lib/document/models/document-category.model.d.ts +19 -0
  19. package/lib/document/models/document-list-response.model.d.ts +24 -0
  20. package/lib/document/models/status-data.model.d.ts +27 -0
  21. package/lib/document/models/user-list.model.d.ts +8 -0
  22. package/lib/document/services/document-http.service.d.ts +35 -0
  23. package/lib/document/services/document-menu.service.d.ts +65 -0
  24. package/lib/document/services/document-table-builder.service.d.ts +56 -0
  25. package/lib/document/services/document.service.d.ts +83 -6
  26. package/lib/document/services/status-calculator.service.d.ts +20 -0
  27. package/lib/document/services/user-list.service.d.ts +36 -0
  28. package/lib/document/state/document.query.d.ts +94 -0
  29. package/lib/document/state/document.state.d.ts +13 -0
  30. package/lib/document/state/document.store.d.ts +15 -0
  31. package/package.json +1 -1
  32. package/public-api.d.ts +1 -0
  33. package/src/assets/config/api.config.json +0 -20
@@ -0,0 +1,25 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export interface TableColumn {
4
+ field: string;
5
+ header: string;
6
+ type?: 'text' | 'status' | 'document' | 'actions';
7
+ width?: string;
8
+ }
9
+ export interface TableData {
10
+ columns: TableColumn[];
11
+ data: any[];
12
+ }
13
+ export declare class TablePrimaryComponent {
14
+ tableData: TableData;
15
+ showHeader: boolean;
16
+ tableStyle: any;
17
+ rowClick: EventEmitter<any>;
18
+ getStatusClass(status: string): string;
19
+ getStatusIcon(status: string): string;
20
+ getFileExtension(fileName: string): string;
21
+ onActionClick(event: Event, rowData: any): void;
22
+ onRowClick(rowData: any): void;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<TablePrimaryComponent, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<TablePrimaryComponent, "lib-table-primary", never, { "tableData": { "alias": "tableData"; "required": false; }; "showHeader": { "alias": "showHeader"; "required": false; }; "tableStyle": { "alias": "tableStyle"; "required": false; }; }, { "rowClick": "rowClick"; }, never, never, false, never>;
25
+ }
@@ -33,4 +33,5 @@ export declare class ERRORS {
33
33
  * @type {string}
34
34
  */
35
35
  static ERROR_DOCUMENT_TYPES: string;
36
+ static ERROR_DOCUMENT_CATAGORY: string;
36
37
  }
@@ -3,6 +3,34 @@
3
3
  * These constants are related to document statuses and other shared data.
4
4
  */
5
5
  export declare class SHARED {
6
+ /**
7
+ * Represents the info.
8
+ */
9
+ static VISIBLE: string;
10
+ /**
11
+ * Represents the info.
12
+ */
13
+ static HIDDEN: string;
14
+ /**
15
+ * Represents the info.
16
+ */
17
+ static APPLICATION_DOCS: string;
18
+ /**
19
+ * Represents the info.
20
+ */
21
+ static INFO: string;
22
+ /**
23
+ * Represents the success.
24
+ */
25
+ static SUCCESS: string;
26
+ /**
27
+ * Represents the warning.
28
+ */
29
+ static WARNING: string;
30
+ /**
31
+ * Represents the warning.
32
+ */
33
+ static DANGER: string;
6
34
  /**
7
35
  * Represents the stores userData.
8
36
  */
@@ -63,6 +91,24 @@ export declare class SHARED {
63
91
  * @type {string}
64
92
  */
65
93
  static FILE: string;
94
+ /**
95
+ * Query parameter for menu item filter.
96
+ * @static
97
+ * @type {string}
98
+ */
99
+ static MENU_ITEM_PARAM: string;
100
+ /**
101
+ * Query parameter for user ID filter.
102
+ * @static
103
+ * @type {string}
104
+ */
105
+ static USER_ID_PARAM: string;
106
+ /**
107
+ * Query parameter for status filter.
108
+ * @static
109
+ * @type {string}
110
+ */
111
+ static STATUS_PARAM: string;
66
112
  /**
67
113
  * Represents the array of file size units ('B', 'KB', 'MB') used for file size formatting.
68
114
  * @static
@@ -105,6 +151,12 @@ export declare class SHARED {
105
151
  * @type {string}
106
152
  */
107
153
  static CONTEXT_ID: string;
154
+ /**
155
+ * Represent contextId.
156
+ * @static
157
+ * @type {string}
158
+ */
159
+ static CATEGORY: string;
108
160
  /**
109
161
  * Represent fileSize.
110
162
  * @static
@@ -153,6 +205,21 @@ export declare class SHARED {
153
205
  badge?: undefined;
154
206
  })[];
155
207
  }[];
208
+ static APPLICATION: string;
209
+ static APPLICANTS: string;
210
+ static EMPTY_SPACE: string;
211
+ static COLORS: string[];
212
+ static COLOR_MAP: {
213
+ orange: string;
214
+ blue: string;
215
+ green: string;
216
+ grey: string;
217
+ purple: string;
218
+ };
219
+ static DEFAULT_COLOR: string;
220
+ static STATUS_WITH_DASH: string;
221
+ static ICON_WITH_DASH: string;
222
+ static SEARCH_KEY: string;
156
223
  }
157
224
  /**
158
225
  * `DUMMYDOCUMENTLIST` is a mock list of document objects used for testing and development purposes.
@@ -168,12 +235,17 @@ export declare const DUMMYDOCUMENTLIST: {
168
235
  * `FOLDERPANEL` is a mock list of folder data representing various folders in the application.
169
236
  * Each folder contains an ID, file count, text description, missing files count, and pending files count.
170
237
  */
171
- export declare const FOLDERPANEL: {
238
+ export declare const USERLIST: {
172
239
  _id: string;
173
- fileCount: number;
174
- text: string;
175
- missingFiles: number;
176
- pendingFiles: number;
240
+ username: string;
241
+ approveDocumentCount: number;
242
+ pendingDocumentCount: number;
243
+ }[];
244
+ export declare const SAMPLE_STATUS_DATA: {
245
+ status: string;
246
+ count: number;
247
+ color: string;
248
+ icon: string;
177
249
  }[];
178
250
  /**
179
251
  * Dummy data for sumaery.
@@ -219,3 +291,22 @@ export declare const DocumentAlertList: {
219
291
  isAlert: boolean;
220
292
  alertMessage: string;
221
293
  }[];
294
+ /**
295
+ * Dummy data for document sections with detailed document lists.
296
+ * Based on the document management interface structure.
297
+ * @type {Array<{header: string, description: string, pendingDocument: number, approvedDocument: number, list: Array<{documentName: string, documentType: string, documentUrl: string, status: string, applicantName: string, uploadedTime: string}>}>}
298
+ */
299
+ export declare const DUMMY_DOCUMENT_SECTIONS: {
300
+ header: string;
301
+ description: string;
302
+ pendingDocument: number;
303
+ approvedDocument: number;
304
+ list: {
305
+ documentName: string;
306
+ documentType: string;
307
+ documentUrl: string;
308
+ status: string;
309
+ applicantName: string;
310
+ uploadedTime: string;
311
+ }[];
312
+ }[];
@@ -19,6 +19,13 @@ export declare class URLS {
19
19
  * @type {string}
20
20
  */
21
21
  static DOCUMENT_UPLOAD: string;
22
+ /**
23
+ * The URL endpoint for document uploads.
24
+ * Used to send documents to the server for storage or processing.
25
+ * @static
26
+ * @type {string}
27
+ */
28
+ static DOCUMENTS_CATAGORIES: string;
22
29
  /**
23
30
  * The query parameter to pass a context ID in API requests.
24
31
  * Used to specify the context for certain API calls, such as filtering or scoping the request.
@@ -50,6 +57,19 @@ export declare class URLS {
50
57
  * @type {string}
51
58
  */
52
59
  static PARENT_DOCUMENT_TYPE_ID: string;
60
+ /**
61
+ * The query parameter to pass a document ID in API requests.
62
+ * @static
63
+ * @type {string}
64
+ */
65
+ static USERLIST: string;
66
+ /**
67
+ * The URL endpoint for getting document status count by context ID.
68
+ * Used to fetch status data with applicationId, contextId, and category parameters.
69
+ * @static
70
+ * @type {string}
71
+ */
72
+ static STATUS_DOCUMENT_COUNT: string;
53
73
  /**
54
74
  * The query parameter to pass a context ID in API requests.
55
75
  * Used to specify the context for certain API calls, such as filtering or scoping the request.
@@ -57,4 +77,6 @@ export declare class URLS {
57
77
  * @type {string}
58
78
  */
59
79
  static CONTEXT_ID: string;
80
+ static GETALL: string;
81
+ static DOCUMENT_LIST: string;
60
82
  }
@@ -0,0 +1,11 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./components/table-primary/table-primary.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "primeng/table";
5
+ import * as i4 from "primeng/button";
6
+ import * as i5 from "primeng/ripple";
7
+ export declare class SharedModule {
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<SharedModule, never>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, [typeof i1.TablePrimaryComponent], [typeof i2.CommonModule, typeof i3.TableModule, typeof i4.ButtonModule, typeof i5.RippleModule], [typeof i1.TablePrimaryComponent]>;
10
+ static ɵinj: i0.ɵɵInjectorDeclaration<SharedModule>;
11
+ }