cat-documents-ng 0.2.34 → 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 (30) hide show
  1. package/Shared/components/table-primary/table-primary.component.d.ts +4 -2
  2. package/Shared/constant/ERROR.d.ts +1 -0
  3. package/Shared/constant/SHARED.d.ts +67 -0
  4. package/Shared/constant/URLS.d.ts +22 -0
  5. package/fesm2022/cat-documents-ng.mjs +1256 -587
  6. package/fesm2022/cat-documents-ng.mjs.map +1 -1
  7. package/lib/document/components/document-container/document-container.component.d.ts +36 -35
  8. package/lib/document/components/document-list/document-list.component.d.ts +52 -34
  9. package/lib/document/components/document-status/document-status.component.d.ts +11 -14
  10. package/lib/document/components/document-viewer/document-viewer.component.d.ts +6 -6
  11. package/lib/document/components/documents-menu/documents-menu.component.d.ts +33 -11
  12. package/lib/document/components/folder-container/folder-container.component.d.ts +23 -6
  13. package/lib/document/components/linked-document/linked-document.component.d.ts +5 -4
  14. package/lib/document/components/user-list/user-list.component.d.ts +19 -22
  15. package/lib/document/directives/document.directive.d.ts +2 -2
  16. package/lib/document/models/document-category.model.d.ts +19 -0
  17. package/lib/document/models/document-list-response.model.d.ts +24 -0
  18. package/lib/document/models/status-data.model.d.ts +27 -0
  19. package/lib/document/models/user-list.model.d.ts +8 -0
  20. package/lib/document/services/document-http.service.d.ts +28 -2
  21. package/lib/document/services/document-menu.service.d.ts +65 -0
  22. package/lib/document/services/document-table-builder.service.d.ts +34 -30
  23. package/lib/document/services/document.service.d.ts +29 -8
  24. package/lib/document/services/status-calculator.service.d.ts +20 -0
  25. package/lib/document/services/user-list.service.d.ts +36 -0
  26. package/lib/document/state/document.query.d.ts +52 -1
  27. package/lib/document/state/document.state.d.ts +9 -0
  28. package/lib/document/state/document.store.d.ts +9 -0
  29. package/package.json +1 -1
  30. package/lib/document/models/document-status.model.d.ts +0 -6
@@ -1,3 +1,4 @@
1
+ import { EventEmitter } from '@angular/core';
1
2
  import * as i0 from "@angular/core";
2
3
  export interface TableColumn {
3
4
  field: string;
@@ -13,11 +14,12 @@ export declare class TablePrimaryComponent {
13
14
  tableData: TableData;
14
15
  showHeader: boolean;
15
16
  tableStyle: any;
17
+ rowClick: EventEmitter<any>;
16
18
  getStatusClass(status: string): string;
17
19
  getStatusIcon(status: string): string;
18
- getFileSize(fileName: string): string;
19
20
  getFileExtension(fileName: string): string;
20
21
  onActionClick(event: Event, rowData: any): void;
22
+ onRowClick(rowData: any): void;
21
23
  static ɵfac: i0.ɵɵFactoryDeclaration<TablePrimaryComponent, never>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<TablePrimaryComponent, "lib-table-primary", never, { "tableData": { "alias": "tableData"; "required": false; }; "showHeader": { "alias": "showHeader"; "required": false; }; "tableStyle": { "alias": "tableStyle"; "required": false; }; }, {}, never, never, false, 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>;
23
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.
@@ -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
  }