cat-documents-ng 1.0.4 → 1.0.6

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 (210) hide show
  1. package/ng-package.json +10 -0
  2. package/package.json +5 -11
  3. package/src/Shared/components/confirmation-dialog/confirmation-dialog.component.html +3 -0
  4. package/src/Shared/components/confirmation-dialog/confirmation-dialog.component.scss +13 -0
  5. package/src/Shared/components/confirmation-dialog/confirmation-dialog.component.spec.ts +70 -0
  6. package/src/Shared/components/confirmation-dialog/confirmation-dialog.component.ts +133 -0
  7. package/src/Shared/components/table-primary/table-primary.component.html +66 -0
  8. package/src/Shared/components/table-primary/table-primary.component.scss +227 -0
  9. package/src/Shared/components/table-primary/table-primary.component.spec.ts +23 -0
  10. package/src/Shared/components/table-primary/table-primary.component.ts +143 -0
  11. package/src/Shared/components/table-primary/table-primary.model.ts +21 -0
  12. package/src/Shared/constant/ERROR.ts +55 -0
  13. package/src/Shared/constant/PERMISSIONS.ts +17 -0
  14. package/src/Shared/constant/SHARED.ts +936 -0
  15. package/{Shared/constant/URLS.d.ts → src/Shared/constant/URLS.ts} +31 -25
  16. package/src/Shared/services/app-config.service.spec.ts +19 -0
  17. package/src/Shared/services/app-config.service.ts +73 -0
  18. package/{Shared/services/global-error.handler.d.ts → src/Shared/services/global-error.handler.ts} +11 -9
  19. package/src/Shared/services/session.service.spec.ts +16 -0
  20. package/src/Shared/services/session.service.ts +76 -0
  21. package/src/Shared/shared.module.ts +25 -0
  22. package/src/lib/document/components/csv-viewer/csv-viewer.component.ts +1 -0
  23. package/src/lib/document/components/document-actions/document-actions.component.html +59 -0
  24. package/src/lib/document/components/document-actions/document-actions.component.scss +362 -0
  25. package/src/lib/document/components/document-actions/document-actions.component.spec.ts +297 -0
  26. package/src/lib/document/components/document-actions/document-actions.component.ts +163 -0
  27. package/src/lib/document/components/document-container/document-container.component.html +36 -0
  28. package/src/lib/document/components/document-container/document-container.component.scss +144 -0
  29. package/src/lib/document/components/document-container/document-container.component.spec.ts +110 -0
  30. package/src/lib/document/components/document-container/document-container.component.ts +363 -0
  31. package/src/lib/document/components/document-content-viewer/document-content-viewer.component.html +332 -0
  32. package/src/lib/document/components/document-content-viewer/document-content-viewer.component.scss +1877 -0
  33. package/src/lib/document/components/document-content-viewer/document-content-viewer.component.spec.ts +258 -0
  34. package/src/lib/document/components/document-content-viewer/document-content-viewer.component.ts +664 -0
  35. package/src/lib/document/components/document-history/document-history.component.html +96 -0
  36. package/src/lib/document/components/document-history/document-history.component.scss +392 -0
  37. package/src/lib/document/components/document-history/document-history.component.spec.ts +93 -0
  38. package/src/lib/document/components/document-history/document-history.component.ts +373 -0
  39. package/src/lib/document/components/document-list/document-list.component.html +46 -0
  40. package/src/lib/document/components/document-list/document-list.component.scss +513 -0
  41. package/src/lib/document/components/document-list/document-list.component.spec.ts +486 -0
  42. package/src/lib/document/components/document-list/document-list.component.ts +682 -0
  43. package/src/lib/document/components/document-list-item/document-list-item.component.html +36 -0
  44. package/src/lib/document/components/document-list-item/document-list-item.component.scss +34 -0
  45. package/src/lib/document/components/document-list-item/document-list-item.component.spec.ts +75 -0
  46. package/src/lib/document/components/document-list-item/document-list-item.component.ts +40 -0
  47. package/src/lib/document/components/document-search/document-search.component.html +64 -0
  48. package/src/lib/document/components/document-search/document-search.component.scss +206 -0
  49. package/src/lib/document/components/document-search/document-search.component.spec.ts +82 -0
  50. package/src/lib/document/components/document-search/document-search.component.ts +163 -0
  51. package/src/lib/document/components/document-status/document-status.component.html +31 -0
  52. package/src/lib/document/components/document-status/document-status.component.scss +192 -0
  53. package/src/lib/document/components/document-status/document-status.component.spec.ts +23 -0
  54. package/src/lib/document/components/document-status/document-status.component.ts +87 -0
  55. package/src/lib/document/components/document-upload/document-upload.component.html +160 -0
  56. package/src/lib/document/components/document-upload/document-upload.component.scss +235 -0
  57. package/src/lib/document/components/document-upload/document-upload.component.spec.ts +95 -0
  58. package/src/lib/document/components/document-upload/document-upload.component.ts +668 -0
  59. package/src/lib/document/components/document-viewer/document-viewer.component.html +50 -0
  60. package/src/lib/document/components/document-viewer/document-viewer.component.scss +187 -0
  61. package/src/lib/document/components/document-viewer/document-viewer.component.spec.ts +79 -0
  62. package/src/lib/document/components/document-viewer/document-viewer.component.ts +261 -0
  63. package/src/lib/document/components/document-zoom-controls/document-zoom-controls.component.html +48 -0
  64. package/src/lib/document/components/document-zoom-controls/document-zoom-controls.component.scss +320 -0
  65. package/src/lib/document/components/document-zoom-controls/document-zoom-controls.component.spec.ts +59 -0
  66. package/src/lib/document/components/document-zoom-controls/document-zoom-controls.component.ts +150 -0
  67. package/src/lib/document/components/documents-menu/documents-menu.component.html +44 -0
  68. package/src/lib/document/components/documents-menu/documents-menu.component.scss +363 -0
  69. package/src/lib/document/components/documents-menu/documents-menu.component.spec.ts +23 -0
  70. package/src/lib/document/components/documents-menu/documents-menu.component.ts +316 -0
  71. package/src/lib/document/components/folder-block/folder-block.component.html +46 -0
  72. package/src/lib/document/components/folder-block/folder-block.component.scss +9 -0
  73. package/src/lib/document/components/folder-block/folder-block.component.spec.ts +70 -0
  74. package/{lib/document/components/folder-block/folder-block.component.d.ts → src/lib/document/components/folder-block/folder-block.component.ts} +28 -12
  75. package/src/lib/document/components/folder-container/folder-container.component.html +56 -0
  76. package/src/lib/document/components/folder-container/folder-container.component.scss +20 -0
  77. package/src/lib/document/components/folder-container/folder-container.component.spec.ts +27 -0
  78. package/src/lib/document/components/folder-container/folder-container.component.ts +328 -0
  79. package/src/lib/document/components/linked-document/linked-document.component.html +23 -0
  80. package/src/lib/document/components/linked-document/linked-document.component.scss +10 -0
  81. package/src/lib/document/components/linked-document/linked-document.component.spec.ts +61 -0
  82. package/src/lib/document/components/linked-document/linked-document.component.ts +49 -0
  83. package/src/lib/document/components/request-document/request-document.component.html +86 -0
  84. package/src/lib/document/components/request-document/request-document.component.scss +16 -0
  85. package/src/lib/document/components/request-document/request-document.component.ts +278 -0
  86. package/src/lib/document/components/sidebar/sidebar.component.html +75 -0
  87. package/src/lib/document/components/sidebar/sidebar.component.scss +157 -0
  88. package/src/lib/document/components/sidebar/sidebar.component.spec.ts +114 -0
  89. package/src/lib/document/components/sidebar/sidebar.component.ts +223 -0
  90. package/src/lib/document/components/user-list/user-list.component.html +33 -0
  91. package/src/lib/document/components/user-list/user-list.component.scss +118 -0
  92. package/src/lib/document/components/user-list/user-list.component.spec.ts +23 -0
  93. package/src/lib/document/components/user-list/user-list.component.ts +181 -0
  94. package/src/lib/document/constant/DOCUMENT_HISTORY.ts +52 -0
  95. package/src/lib/document/directives/document.directive.ts +32 -0
  96. package/src/lib/document/directives/permission.directive.spec.ts +0 -0
  97. package/src/lib/document/directives/permission.directive.ts +72 -0
  98. package/src/lib/document/document.module.ts +351 -0
  99. package/{lib/document/models/document-alert.model.d.ts → src/lib/document/models/document-alert.model.ts} +11 -4
  100. package/src/lib/document/models/document-category.model.ts +30 -0
  101. package/src/lib/document/models/document-history.model.ts +109 -0
  102. package/src/lib/document/models/document-list-response.model.ts +37 -0
  103. package/src/lib/document/models/document-type.model.ts +44 -0
  104. package/src/lib/document/models/document.model.ts +53 -0
  105. package/{lib/document/models/folder.model.d.ts → src/lib/document/models/folder.model.ts} +10 -4
  106. package/src/lib/document/models/status-data.model.ts +31 -0
  107. package/src/lib/document/models/uploaded-file-response.model.ts +7 -0
  108. package/src/lib/document/models/user-list.model.ts +10 -0
  109. package/src/lib/document/services/csv-parser.service.spec.ts +97 -0
  110. package/src/lib/document/services/csv-parser.service.ts +303 -0
  111. package/src/lib/document/services/document-actions.service.ts +125 -0
  112. package/src/lib/document/services/document-content-type.service.ts +193 -0
  113. package/src/lib/document/services/document-history-style.service.ts +138 -0
  114. package/src/lib/document/services/document-history.service.ts +129 -0
  115. package/src/lib/document/services/document-http.service.spec.ts +119 -0
  116. package/src/lib/document/services/document-http.service.ts +497 -0
  117. package/src/lib/document/services/document-list.service.ts +195 -0
  118. package/src/lib/document/services/document-menu.service.ts +277 -0
  119. package/src/lib/document/services/document-scroll.service.ts +138 -0
  120. package/src/lib/document/services/document-severity.service.ts +98 -0
  121. package/src/lib/document/services/document-table-builder.service.ts +82 -0
  122. package/src/lib/document/services/document-upload-business.service.ts +326 -0
  123. package/src/lib/document/services/document-upload-data.service.ts +82 -0
  124. package/src/lib/document/services/document-upload-form.service.ts +149 -0
  125. package/src/lib/document/services/document-upload.service.spec.ts +99 -0
  126. package/src/lib/document/services/document-upload.service.ts +209 -0
  127. package/src/lib/document/services/document-viewer.service.ts +279 -0
  128. package/src/lib/document/services/document-zoom.service.spec.ts +56 -0
  129. package/src/lib/document/services/document-zoom.service.ts +164 -0
  130. package/src/lib/document/services/document.service.ts +356 -0
  131. package/src/lib/document/services/eml-parser.service.ts +444 -0
  132. package/src/lib/document/services/excel-parser.service.spec.ts +66 -0
  133. package/src/lib/document/services/excel-parser.service.ts +483 -0
  134. package/src/lib/document/services/file-format.service.spec.ts +16 -0
  135. package/src/lib/document/services/file-format.service.ts +63 -0
  136. package/src/lib/document/services/status-calculator.service.ts +44 -0
  137. package/src/lib/document/services/user-list.service.ts +77 -0
  138. package/src/lib/document/state/document.query.ts +378 -0
  139. package/{lib/document/state/document.service.d.ts → src/lib/document/state/document.service.ts} +46 -15
  140. package/src/lib/document/state/document.state.ts +100 -0
  141. package/src/lib/document/state/document.store.ts +200 -0
  142. package/{public-api.d.ts → src/public-api.ts} +4 -0
  143. package/tsconfig.lib.json +15 -0
  144. package/tsconfig.lib.prod.json +11 -0
  145. package/tsconfig.spec.json +15 -0
  146. package/Shared/components/confirmation-dialog/confirmation-dialog.component.d.ts +0 -44
  147. package/Shared/components/table-primary/table-primary.component.d.ts +0 -31
  148. package/Shared/components/table-primary/table-primary.model.d.ts +0 -19
  149. package/Shared/constant/ERROR.d.ts +0 -52
  150. package/Shared/constant/SHARED.d.ts +0 -546
  151. package/Shared/services/app-config.service.d.ts +0 -51
  152. package/Shared/services/session.service.d.ts +0 -46
  153. package/Shared/shared.module.d.ts +0 -14
  154. package/fesm2022/cat-documents-ng.mjs +0 -11392
  155. package/fesm2022/cat-documents-ng.mjs.map +0 -1
  156. package/index.d.ts +0 -5
  157. package/lib/document/components/document-actions/document-actions.component.d.ts +0 -78
  158. package/lib/document/components/document-container/document-container.component.d.ts +0 -162
  159. package/lib/document/components/document-content-viewer/document-content-viewer.component.d.ts +0 -291
  160. package/lib/document/components/document-history/document-history.component.d.ts +0 -160
  161. package/lib/document/components/document-list/document-list.component.d.ts +0 -299
  162. package/lib/document/components/document-list-item/document-list-item.component.d.ts +0 -28
  163. package/lib/document/components/document-search/document-search.component.d.ts +0 -77
  164. package/lib/document/components/document-status/document-status.component.d.ts +0 -24
  165. package/lib/document/components/document-upload/document-upload.component.d.ts +0 -321
  166. package/lib/document/components/document-viewer/document-viewer.component.d.ts +0 -137
  167. package/lib/document/components/document-zoom-controls/document-zoom-controls.component.d.ts +0 -33
  168. package/lib/document/components/documents-menu/documents-menu.component.d.ts +0 -110
  169. package/lib/document/components/folder-container/folder-container.component.d.ts +0 -162
  170. package/lib/document/components/linked-document/linked-document.component.d.ts +0 -39
  171. package/lib/document/components/request-document/request-document.component.d.ts +0 -69
  172. package/lib/document/components/sidebar/sidebar.component.d.ts +0 -109
  173. package/lib/document/components/user-list/user-list.component.d.ts +0 -34
  174. package/lib/document/constant/DOCUMENT_HISTORY.d.ts +0 -41
  175. package/lib/document/directives/document.directive.d.ts +0 -20
  176. package/lib/document/directives/permission.directive.d.ts +0 -38
  177. package/lib/document/document.module.d.ts +0 -60
  178. package/lib/document/models/document-category.model.d.ts +0 -24
  179. package/lib/document/models/document-history.model.d.ts +0 -94
  180. package/lib/document/models/document-list-response.model.d.ts +0 -33
  181. package/lib/document/models/document-type.model.d.ts +0 -37
  182. package/lib/document/models/document.model.d.ts +0 -44
  183. package/lib/document/models/status-data.model.d.ts +0 -27
  184. package/lib/document/models/uploaded-file-response.model.d.ts +0 -7
  185. package/lib/document/models/user-list.model.d.ts +0 -8
  186. package/lib/document/services/csv-parser.service.d.ts +0 -88
  187. package/lib/document/services/document-actions.service.d.ts +0 -48
  188. package/lib/document/services/document-content-type.service.d.ts +0 -85
  189. package/lib/document/services/document-history-style.service.d.ts +0 -34
  190. package/lib/document/services/document-history.service.d.ts +0 -42
  191. package/lib/document/services/document-http.service.d.ts +0 -179
  192. package/lib/document/services/document-list.service.d.ts +0 -74
  193. package/lib/document/services/document-menu.service.d.ts +0 -122
  194. package/lib/document/services/document-scroll.service.d.ts +0 -55
  195. package/lib/document/services/document-table-builder.service.d.ts +0 -38
  196. package/lib/document/services/document-upload-business.service.d.ts +0 -107
  197. package/lib/document/services/document-upload-data.service.d.ts +0 -40
  198. package/lib/document/services/document-upload-form.service.d.ts +0 -41
  199. package/lib/document/services/document-upload.service.d.ts +0 -99
  200. package/lib/document/services/document-viewer.service.d.ts +0 -97
  201. package/lib/document/services/document-zoom.service.d.ts +0 -81
  202. package/lib/document/services/document.service.d.ts +0 -161
  203. package/lib/document/services/eml-parser.service.d.ts +0 -116
  204. package/lib/document/services/excel-parser.service.d.ts +0 -169
  205. package/lib/document/services/file-format.service.d.ts +0 -34
  206. package/lib/document/services/status-calculator.service.d.ts +0 -20
  207. package/lib/document/services/user-list.service.d.ts +0 -29
  208. package/lib/document/state/document.query.d.ts +0 -243
  209. package/lib/document/state/document.state.d.ts +0 -61
  210. package/lib/document/state/document.store.d.ts +0 -56
@@ -0,0 +1,936 @@
1
+ /**
2
+ * The `SHARED` class contains shared constants used across the application.
3
+ * These constants are related to document statuses and other shared data.
4
+ */
5
+ export class SHARED {
6
+
7
+ /**
8
+ * Represents the info.
9
+ */
10
+ static UNKNOWN_USER = 'Unknown User'
11
+ /**
12
+ * Represents the info.
13
+ */
14
+ static ACTIONS = 'actions'
15
+ /**
16
+ * Represents the info.
17
+ */
18
+ static VISIBLE = 'visible'
19
+ /**
20
+ * Represents the info.
21
+ */
22
+ static HIDDEN = 'hidden'
23
+
24
+ static NO_DOCUMENTS_FOUND = 'No documents found'
25
+ static DOCUMENT_TYPES_DELETE = 'DocumentTypes-DELETE'
26
+ static SUCCESS_MESSAGE = 'Document Saved Successfully'
27
+ /**
28
+ * Represents the info.
29
+ */
30
+ static APPLICATION_DOCS = 'Application Docs'
31
+ /**
32
+ * Represents the info.
33
+ */
34
+ static INFO = 'info'
35
+ /**
36
+ * Represents the success.
37
+ */
38
+ static SUCCESS = 'success'
39
+ /**
40
+ * Represents the warning.
41
+ */
42
+ static WARNING = 'warning'
43
+ /**
44
+ * Represents the warning.
45
+ */
46
+ static DANGER = 'danger'
47
+ /**
48
+ * Represents the stores userData.
49
+ */
50
+ static SESSIONKEY = 'userData';
51
+ /**
52
+ * Represents the count of missing files.
53
+ */
54
+ static MISSINGCOUNT = 2;
55
+
56
+ /**
57
+ * Represents the count of pending files.
58
+ */
59
+ static PENDINGCOUNT = 3;
60
+
61
+ /**
62
+ * Represents an empty string.
63
+ */
64
+ static EMPTY = "";
65
+ /**
66
+ * Represents an empty string.
67
+ */
68
+ static STRING = "string";
69
+
70
+ /**
71
+ * Represents an true.
72
+ * @static
73
+ * @type {boolean}
74
+ */
75
+ static TRUE: boolean = true;
76
+
77
+
78
+ /**
79
+ * Represents an false.
80
+ * @static
81
+ * @type {boolean}
82
+ */
83
+ static FALSE: boolean = false;
84
+
85
+ /**
86
+ * Represents an INITIAL_COUNT.
87
+ */
88
+ static INITIAL_COUNT = 0
89
+ /**
90
+ * Represents an INITIAL_VALUE.
91
+ */
92
+ static INITIAL_VALUE = 0
93
+
94
+ /**
95
+ * Represents the constant value for one (1).
96
+ * @static
97
+ * @type {number}
98
+ */
99
+ static ONE: number = 1
100
+
101
+ /**
102
+ * Represents the constant value for two (2).
103
+ * @static
104
+ * @type {number}
105
+ */
106
+ static TWO: number = 2
107
+
108
+ /**
109
+ * Represents the constant value for ten (10).
110
+ * @static
111
+ * @type {number}
112
+ */
113
+ static TEN: number = 10
114
+
115
+ /**
116
+ * Represents the constant string value 'files' used for file-related operations.
117
+ * @static
118
+ * @type {string}
119
+ */
120
+ static FILE: string = 'file';
121
+
122
+ /**
123
+ * Query parameter for menu item filter.
124
+ * @static
125
+ * @type {string}
126
+ */
127
+ static MENU_ITEM_PARAM: string = 'menuItem';
128
+
129
+ /**
130
+ * Query parameter for user ID filter.
131
+ * @static
132
+ * @type {string}
133
+ */
134
+ static USER_ID_PARAM: string = 'userId';
135
+
136
+ /**
137
+ * Query parameter for status filter.
138
+ * @static
139
+ * @type {string}
140
+ */
141
+ static STATUS_PARAM: string = 'status';
142
+
143
+ /**
144
+ * Represents the array of file size units ('B', 'KB', 'MB') used for file size formatting.
145
+ * @static
146
+ * @type {string[]}
147
+ */
148
+ static FILE_SIZE_UNITS: string[] = ['B', 'KB', 'MB'];
149
+
150
+ /**
151
+ * Show SEVERITY value.
152
+ * @static
153
+ * @type {'error'}
154
+ */
155
+ static SEVERITY: string = 'error'
156
+ /**
157
+ * Show SEVERITY value.
158
+ * @static
159
+ * @type {'error'}
160
+ */
161
+ static SUCCESS_SEVERITY: string = 'success'
162
+
163
+ /**
164
+ * Show upload summery if it's failed.
165
+ * @static
166
+ * @type {'Upload Failed'}
167
+ */
168
+ static UPLOAD_SUMMERY: string = 'Upload Failed'
169
+
170
+ /**
171
+ * Show upload summery if it's success.
172
+ * @static
173
+ * @type {'Document uploaded successfully.'}
174
+ */
175
+ static UPLOAD_SUCCESS: string = 'Document uploaded successfully.'
176
+
177
+ /**
178
+ * Represent empty array.
179
+ * @static
180
+ * @type {{}}
181
+ */
182
+ static EMPTY_ARRAY = []
183
+
184
+ /**
185
+ * Represent contextId.
186
+ * @static
187
+ * @type {string}
188
+ */
189
+ static CONTEXT_ID: string = 'contextId'
190
+
191
+ /**
192
+ * Represent contextId.
193
+ * @static
194
+ * @type {string}
195
+ */
196
+ static CATEGORY: string = 'category'
197
+
198
+ /**
199
+ * Represent fileSize.
200
+ * @static
201
+ * @type {string}
202
+ */
203
+ static FILE_SIZE: string = 'fileSize'
204
+ /**
205
+ * Represent documentName.
206
+ * @static
207
+ * @type {string}
208
+ */
209
+ static DOCUMENT_NAME: string = 'documentName'
210
+ /**
211
+ * Represent documentTypeId.
212
+ * @static
213
+ * @type {string}
214
+ */
215
+ static DOCUMENT_TYPE_ID: string = 'documentTypeId'
216
+ /**
217
+ * Represent blob.
218
+ * @static
219
+ * @type {string}
220
+ */
221
+ static DOCUMENT: string = 'document';
222
+ /**
223
+ * Represent none.
224
+ * @static
225
+ * @type {string}
226
+ */
227
+ static NONE: string = 'none';
228
+
229
+ /**
230
+ * Represent upload summery.
231
+ * @static
232
+ * @type {string}
233
+ */
234
+ static UPLOAD_ERROR_SUMMERY: string = 'Form Data Missing'
235
+
236
+ /**
237
+ * Represent upload error details.
238
+ * @static
239
+ * @type {string}
240
+ */
241
+ static UPLOAD_ERROR_DETAILS: string = 'Required form data is missing. Please ensure the document and all required fields are provided.'
242
+
243
+ /**
244
+ * Represents the message prefix for a successful document name update.
245
+ * @static
246
+ * @type {string}
247
+ */
248
+ static UPDATE_DOCUMENT_NAME: string = 'Document name updated for ID:'
249
+ static WIDTH = '500px'
250
+ static BASEZINDEX = 1000
251
+ static DOCX = 'docx'
252
+ static DOC = 'doc'
253
+ static CSV = 'csv'
254
+ static CLOSE_ICON = 'pi pi-times'
255
+ static SAVE = 'Save'
256
+ static UPLOAD_PROGRESS_100 = 100
257
+ static UPLOAD_PROGRESS_10 = 10
258
+ static APPLICANT = 'Applicant'
259
+ static APPLICANT_LOWERCASE = 'applicant'
260
+ static APPLICATION_LOWERCASE = 'application'
261
+ static DOCUMENT_LOWERCASE = 'document'
262
+ static USER_LOWERCASE = 'user'
263
+ static CATAGORIES = 'catagories'
264
+ static DOCUMENTS = 'Documents'
265
+ static UPLOAD_FAILED = 'Upload failed'
266
+ static USER_LIST = 'userList'
267
+ static HYPEN = '-'
268
+ static CATEGORIES = 'categories'
269
+ static UNSAVED_CHANGES_MESSAGE = 'You have unsaved changes. Are you sure you want to leave?'
270
+ static UNSAVED_CHANGES_HEADER = 'Unsaved Changes'
271
+ static DOCUMENT_DELETED_SUCCESSFULLY = 'Document deleted successfully'
272
+ static UNSAVED_CHANGES_ICON = 'pi pi-exclamation-triangle'
273
+ static REMOVE = 'Remove'
274
+ static YES = 'Yes'
275
+ static NO = 'No'
276
+ static CANCEL = 'Cancel'
277
+ static DELETE = 'Delete'
278
+ static DELETE_CONFIRMATION_HEADER = 'Delete Confirmation'
279
+ static VALUATION_REPORT_DELETE_MESSAGE = 'The deletion of the valuation document will remove all valuation related alerts. New alerts will only be created when a new valuation report is added. Do you want to continue?'
280
+ static VALUATION_REPORT = 'valuation report'
281
+ static DELETE_BUTTON_STYLE_CLASS = 'btn-danger'
282
+ static ACCEPT_ICON = 'pi pi-check'
283
+ static REJECT_ICON = 'pi pi-times'
284
+ static ACCEPT_BUTTON_STYLE_CLASS = 'p-button-danger'
285
+ static REJECT_BUTTON_STYLE_CLASS = 'p-button-secondary'
286
+ static NO_DATA_FOUND = 'No data found'
287
+ static BORDERS = ['top', 'bottom', 'left', 'right']
288
+ static FILE_TYPES = [
289
+ 'xlsx', 'xls', 'doc', 'docx', 'pdf', 'jpg', 'jpeg',
290
+ 'odt', 'csv', 'png', 'msg', 'eml'
291
+ ];
292
+ static COMMA = ',';
293
+ static TEAM_LEADER = 'TeamLeader';
294
+ static UNDERWRITER_USER = 'Underwriter User';
295
+ static INITIAL_REQUEST = 'Initial Request'
296
+ static ERROR_PARSING_SHEET_DATA = 'Error parsing sheet data'
297
+ static REFRESH_TRIGGER = 'refreshTrigger'
298
+ static PDF_TYPE = 'application/pdf'
299
+
300
+ // MIME Type Constants
301
+ static EXCEL_XLSX_MIME_TYPE = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
302
+ static EXCEL_XLS_MIME_TYPE = 'application/vnd.ms-excel'
303
+ static OCTET_STREAM = 'application/octet-stream'
304
+ static WORD_DOCX_MIME_TYPE = 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
305
+ static WORD_DOC_MIME_TYPE = 'application/msword'
306
+ static CSV_MIME_TYPE = 'text/csv'
307
+ static EMAIL_RFC822_MIME_TYPE = 'message/rfc822'
308
+ static EMAIL_OUTLOOK_MIME_TYPE = 'application/vnd.ms-outlook'
309
+ static OPEN_DOCUMENT_MIME_TYPE = 'application/vnd.oasis.opendocument.text'
310
+
311
+ static ICON_FILE_WORD = 'pi pi-file-word'
312
+ static ICON_ENVELOPE = 'pi pi-envelope'
313
+ static PDF_DOCUMENT = 'PDF Document'
314
+ static IMAGE = 'Image'
315
+ static EXCEL_SPREADSHEET = 'Excel Spreadsheet'
316
+ static WORD_DOCUMENT = 'Word Document'
317
+ static CSV_FILE = 'CSV File'
318
+ static EMAIL_MESSAGE = 'Email Message'
319
+ static OPEN_DOCUMENT = 'OpenDocument'
320
+ static NO_DATA_AVAILABLE = 'No data available'
321
+ static ERROR_PARSING_EXCEL_FILE = 'Unable to parse Excel file'
322
+ static ERROR_PARSING_EXCEL_FILE_STRUCTURE = 'Unable to parse Excel file structure'
323
+ static NAME_UPDATE_ACTION = 'nameUpdate'
324
+ static REQUESTED = 'requested'
325
+ static ACCEPTED = 'accepted'
326
+ static UPLOADED = 'uploaded'
327
+ static REJECTED = 'rejected'
328
+ static Menu = [
329
+ {
330
+ label: 'Applicant',
331
+ // expanded: true,
332
+ // disabled: true,
333
+ // separator: true,
334
+ items: [
335
+ {
336
+ label: 'Identity',
337
+ icon: 'ri-id-card-line',
338
+ badge: "2/5"
339
+ },
340
+ {
341
+ label: 'Income',
342
+ icon: 'ri-money-pound-circle-line',
343
+ badge: "2/5"
344
+ },
345
+ {
346
+ label: 'Affordability',
347
+ icon: 'ri-calculator-line',
348
+ badge: "2/8"
349
+ },
350
+ {
351
+ label: 'Cradit conduct',
352
+ icon: 'ri-calendar-event-fill',
353
+ badge: "2/4"
354
+ },
355
+ {
356
+ label: 'KYC',
357
+ icon: 'ri-calendar-event-fill',
358
+ badge: "2/4"
359
+ },
360
+ {
361
+ badge: "2/4",
362
+ label: 'Welcome Call',
363
+ icon: 'ri-calendar-event-fill'
364
+ },
365
+ {
366
+ label: 'Gatehouse Bank Exposure',
367
+ badge: "2/4",
368
+ icon: 'ri-calendar-event-fill'
369
+ }
370
+ ]
371
+ },
372
+ {
373
+ label: 'Application',
374
+ // expanded: true,
375
+ // disabled: true,
376
+ // separator: true,
377
+ items: [
378
+ {
379
+ badge: "2/4",
380
+ label: 'Deposit',
381
+ icon: 'ri-mail-open-line'
382
+ },
383
+ {
384
+ badge: "2/4",
385
+ label: 'Direct Debit',
386
+ icon: 'ri-mail-open-line'
387
+ },
388
+ {
389
+ label: 'Property',
390
+ icon: 'ri-mail-open-line'
391
+ },
392
+ {
393
+ badge: "2/4",
394
+ label: 'Completions',
395
+ icon: 'ri-mail-open-line'
396
+ },
397
+ {
398
+ badge: "2/4",
399
+ label: 'Summary',
400
+ icon: 'ri-mail-open-line'
401
+ },
402
+ {
403
+ badge: "2/4",
404
+ label: 'System Documents',
405
+ icon: 'ri-mail-open-line'
406
+ },
407
+ {
408
+ badge: "2/4",
409
+ label: 'Ad Hoc',
410
+ icon: 'ri-mail-open-line'
411
+ },
412
+ {
413
+ badge: "2/4",
414
+ label: 'Miscellaneous',
415
+ icon: 'ri-mail-open-line'
416
+ }
417
+ ]
418
+ }
419
+ ];
420
+ static APPLICATION = 'Application'
421
+ static APPLICANTS = 'Applicants'
422
+ static EMPTY_SPACE = ' '
423
+
424
+ static COLORS = ['orange', 'blue', 'green', 'grey', 'purple']
425
+
426
+ static COLOR_MAP = {
427
+ 'orange': '#f97316',
428
+ 'blue': '#3b82f6',
429
+ 'green': '#10b981',
430
+ 'grey': '#6b7280',
431
+ 'purple': '#8b5cf6'
432
+ }
433
+ static DEFAULT_COLOR = '#3b82f6'
434
+ static STATUS_WITH_DASH = 'status-'
435
+ static ICON_WITH_DASH = 'icon-'
436
+ static SEARCH_KEY = 'searchKey'
437
+ static APPROVED = 'approved'
438
+ static PENDING = 'Pending'
439
+ static DOT = '.'
440
+ static PDF = 'PDF'
441
+ static PDF2 = 'pdf'
442
+ static PENDING_STATUS = 'pending'
443
+ static EVENT_REQUESTED = 'event-requested'
444
+ static EVENT_ACCEPTED = 'event-accepted'
445
+ static EVENT_REJECTED = 'event-rejected'
446
+ static EVENT_DEFAULT = 'event-default'
447
+ static ICON_REQUESTED = 'icon-requested'
448
+ static ICON_ACCEPTED = 'icon-accepted'
449
+ static ICON_REJECTED = 'icon-rejected'
450
+ static ICON_DEFAULT = 'icon-default'
451
+ static ICON_CHECK_CIRCLE = 'pi pi-check-circle'
452
+ static ICON_FOLDER_PLUS = 'pi pi-folder-plus'
453
+ static ICON_TIMES = 'pi pi-times'
454
+ static ICON_FILE = 'pi pi-file'
455
+ // File extension constants
456
+ static JPG = 'JPG'
457
+ static PNG = 'PNG'
458
+ static XLSX = 'xlsx'
459
+ static XLS = 'xls'
460
+ // Status constants
461
+ static APPROVED_STATUS = 'approved'
462
+ static ALERT_STATUS = 'alert'
463
+ static UPLOADED_STATUS = 'uploaded'
464
+ static REVIEWING_STATUS = 'reviewing'
465
+ static REJECTED_STATUS = 'rejected'
466
+ static REQUESTED_STATUS = 'document requested'
467
+
468
+ // Status class constants
469
+ static STATUS_PENDING_CLASS = 'status-pending'
470
+ static STATUS_APPROVED_CLASS = 'status-approved'
471
+ static STATUS_ALERT_CLASS = 'status-alert'
472
+ static STATUS_UPLOADED_CLASS = 'status-uploaded'
473
+ static STATUS_REVIEWING_CLASS = 'status-reviewing'
474
+ static STATUS_REJECTED_CLASS = 'status-rejected'
475
+
476
+ // Icon constants
477
+ static ICON_CHECK = 'pi pi-check'
478
+ static ICON_EXCLAMATION_TRIANGLE = 'pi pi-exclamation-triangle'
479
+ static ICON_CLOUD_UPLOAD = 'pi pi-cloud-upload'
480
+ static ICON_EYE = 'pi pi-eye'
481
+ static ICON_CLOCK = 'pi pi-clock'
482
+
483
+ // File type icons
484
+ static ICON_FILE_PDF = 'pi pi-file-pdf'
485
+ static ICON_IMAGE = 'pi pi-image'
486
+ static ICON_FILE_EXCEL = 'pi pi-file-excel'
487
+ static ICON_DELETE = 'ri-delete-bin-6-line'
488
+
489
+ // Cell type constants
490
+ static CELL_TYPE_DOCUMENT = 'document'
491
+ static CELL_TYPE_STATUS = 'status'
492
+ static CELL_TYPE_ACTIONS = 'actions'
493
+ static CELL_TYPE_TEXT = 'text'
494
+
495
+ /**
496
+ * Document table columns configuration
497
+ * @static
498
+ * @type {Array<{field: string, header: string, type: 'text' | 'status' | 'document' | 'actions', width: string}>}
499
+ */
500
+ static DOCUMENT_TABLE_COLUMNS: Array<{
501
+ field: string;
502
+ header: string;
503
+ type: 'text' | 'status' | 'document' | 'actions';
504
+ width: string;
505
+ }> = [
506
+ {
507
+ field: 'docName',
508
+ header: 'Document',
509
+ type: 'document',
510
+ width: '35%'
511
+ },
512
+ {
513
+ field: 'status',
514
+ header: 'Status',
515
+ type: 'status',
516
+ width: '15%'
517
+ },
518
+ {
519
+ field: 'ownerName',
520
+ header: 'Owner',
521
+ type: 'text',
522
+ width: '20%'
523
+ },
524
+ {
525
+ field: 'uploadedOn',
526
+ header: 'Uploaded',
527
+ type: 'text',
528
+ width: '15%'
529
+ },
530
+ {
531
+ field: 'actions',
532
+ header: 'Actions',
533
+ type: 'actions',
534
+ width: '15%'
535
+ }
536
+ ];
537
+
538
+ static DOCUMENT_REQUESTED = 'document-requested';
539
+ static DOCUMENT_UPLOADED = 'document-uploaded';
540
+ static DOCUMENT_REJECTED = 'document-rejected';
541
+ static DOCUMENT_ACCEPTED = 'document-accepted';
542
+
543
+ // Document Actions Constants
544
+ static ACCEPT_ACTION = 'accept';
545
+ static REJECT_ACTION = 'reject';
546
+ static DELETE_ACTION = 'delete';
547
+
548
+ static ACCEPT_CONFIRM_HEADER = 'Accept confirm';
549
+ static REJECT_CONFIRM_HEADER = 'Reject Confirm';
550
+
551
+ static ACCEPT_NOTE_LABEL = 'Write a note for Acceptance';
552
+ static REJECT_NOTE_LABEL = 'Write a note for rejection';
553
+
554
+ static ACCEPT_NOTE_PLACEHOLDER = 'Write a note for Acceptance';
555
+ static REJECT_NOTE_PLACEHOLDER = 'Write a note for rejection';
556
+
557
+ static CANCEL_BUTTON_LABEL = 'Cancel';
558
+ static ACCEPT_BUTTON_LABEL = 'Accept';
559
+ static REJECT_BUTTON_LABEL = 'Reject';
560
+
561
+ static DOCUMENT_ACCEPTED_MESSAGE = 'Document accepted successfully';
562
+ static DOCUMENT_REJECTED_MESSAGE = 'Document rejected successfully';
563
+ static DOCUMENT_UPDATE_ERROR_MESSAGE = 'Failed to update document. Please try again.';
564
+
565
+ static STATUS_APPROVED = 'Approved';
566
+ static STATUS_REJECTED = 'Rejected';
567
+
568
+ // Document Status Constants
569
+ static STATUS_PENDING = 'pending';
570
+ static STATUS_ACCEPTED = 'accepted';
571
+ static STATUS_REJECTED_LOWERCASE = 'rejected';
572
+ static STATUS_DECLINED = 'declined';
573
+
574
+ // Document Card CSS Classes
575
+ static CARD_PENDING = 'pending-card';
576
+ static CARD_ACCEPTED = 'accepted-card';
577
+ static CARD_REJECTED = 'rejected-card';
578
+
579
+ // Document Button CSS Classes
580
+ static BUTTON_SECONDARY_REJECT = 'secondary-reject';
581
+ static BUTTON_PRIMARY_REJECT = 'primary-reject';
582
+ static BUTTON_DEFAULT_REJECT = 'default-reject';
583
+ static BUTTON_PRIMARY_ACCEPT = 'primary-accept';
584
+ static BUTTON_SECONDARY_ACCEPT = 'secondary-accept';
585
+ static BUTTON_DEFAULT_ACCEPT = 'default-accept';
586
+
587
+ // Document Action Button Labels
588
+ static BUTTON_LABEL_REJECT = 'Reject';
589
+ static BUTTON_LABEL_REJECTED = 'Rejected';
590
+ static BUTTON_LABEL_ACCEPT = 'Accept';
591
+ static BUTTON_LABEL_ACCEPTED = 'Accepted';
592
+
593
+ // Document Upload Validation Messages
594
+ static VALIDATION_NO_APPLICANT_SELECTED = 'No Applicant Selected';
595
+ static VALIDATION_NO_APPLICANT_DETAIL = 'Please select an applicant.';
596
+ static VALIDATION_NO_CATEGORY_SELECTED = 'No Category Selected';
597
+ static VALIDATION_NO_CATEGORY_DETAIL = 'Please select a category.';
598
+ static VALIDATION_NO_DOCUMENT_TYPE_SELECTED = 'No Document Type Selected';
599
+ static VALIDATION_NO_DOCUMENT_TYPE_DETAIL = 'Please select a document type.';
600
+ static VALIDATION_NO_DOCUMENTS_UPLOADED = 'No Documents Uploaded';
601
+ static VALIDATION_NO_DOCUMENTS_DETAIL = 'Please upload at least one document.';
602
+ static VALIDATION_FORM_INCOMPLETE = 'Form Incomplete';
603
+ static VALIDATION_FORM_INCOMPLETE_DETAIL = 'Please complete all required fields and upload at least one document.';
604
+ static VALIDATION_MISSING_REQUIRED_DATA = 'Missing Required Data';
605
+
606
+ // Document Upload Assignment Type Messages
607
+ static VALIDATION_SELECT_ASSIGNMENT_TYPE = 'Please select an assignment type (Applicant or Application)';
608
+ static VALIDATION_SELECT_CATEGORY = 'Please select a document category';
609
+ static VALIDATION_SELECT_DOCUMENT_TYPE = 'Please select a document type';
610
+ static VALIDATION_UPLOAD_AT_LEAST_ONE = 'Please upload at least one document';
611
+ static VALIDATION_WAIT_FOR_UPLOAD = 'Please wait for all files to finish uploading';
612
+ static VALIDATION_SELECT_APPLICANT = 'Please select an applicant';
613
+ static VALIDATION_ALL_FIELDS_COMPLETED = 'All required fields are completed';
614
+ static VALIDATION_OPTIONS_NOT_LOADED = 'Document options are not loaded yet';
615
+ static CONTENT_TYPE: string = 'contentType'
616
+ static DOCUMENT_URL: string = 'documentUrl'
617
+ static DOC_VIEWER_WRAPPER: string = '.doc-viewer-wrapper'
618
+ static CSV_TABLE_CONTAINER: string = '.csv-table-container'
619
+ static DOCX_CONTAINER: string = '.docx-container'
620
+ static PDF_CONTAINER: string = '.pdf-container'
621
+ static IMAGE_CONTAINER: string = '.image-container'
622
+ static WHEEL_CAPTURE_OVERLAY: string = '.wheel-capture-overlay'
623
+ static DOCUMENT_CONTENT_VIEWER_CONTAINER: string = '.document-content-viewer-container'
624
+ static EXCEL_ZOOM_WRAPPER: string = '.excel-zoom-wrapper ngx-doc-viewer'
625
+ static DOC_ZOOM_WRAPPER: string = '.doc-viewer-wrapper'
626
+ static CSV_ZOOM_WRAPPER: string = '.csv-table-container'
627
+ static ERROR_PARSING_CSV_FILE: string = 'Error parsing CSV file'
628
+ static ERROR_LOADING_CSV_FILE: string = 'Error loading CSV file'
629
+ static ERROR_PARSING_CSV_DATA: string = 'Error parsing CSV data'
630
+ static ERROR_PARSING_EMAIL_FILE: string = 'Error parsing email file'
631
+ static ERROR_LOADING_EMAIL_FILE: string = 'Error loading email file'
632
+ static SMOOTH_SCROLL: ScrollBehavior = 'smooth'
633
+
634
+
635
+
636
+
637
+
638
+ }
639
+
640
+ /**
641
+ * `DUMMYDOCUMENTLIST` is a mock list of document objects used for testing and development purposes.
642
+ * Each document includes an ID, file name, status, and document URL.
643
+ */
644
+ export const DUMMYDOCUMENTLIST = [
645
+ {
646
+ _id: 1,
647
+ fileName: 'Document 1',
648
+ status: 'pending',
649
+ documentUrl: 'https://vadimdez.github.io/ng2-pdf-viewer/assets/pdf-test.pdf',
650
+ },
651
+ {
652
+ _id: 2,
653
+ fileName: 'Document 2',
654
+ status: 'verified',
655
+ documentUrl: 'https://vadimdez.github.io/ng2-pdf-viewer/assets/pdf-test.pdf',
656
+ },
657
+ {
658
+ _id: 3,
659
+ fileName: 'Document 3',
660
+ status: 'sentReminder',
661
+ documentUrl: 'https://vadimdez.github.io/ng2-pdf-viewer/assets/pdf-test.pdf',
662
+ },
663
+ {
664
+ _id: 4,
665
+ fileName: 'Document 4',
666
+ status: 'pending',
667
+ documentUrl: 'https://vadimdez.github.io/ng2-pdf-viewer/assets/pdf-test.pdf',
668
+ },
669
+ ];
670
+
671
+ /**
672
+ * `FOLDERPANEL` is a mock list of folder data representing various folders in the application.
673
+ * Each folder contains an ID, file count, text description, missing files count, and pending files count.
674
+ */
675
+ export const USERLIST = [
676
+ {
677
+ _id : "1",
678
+ username: "John Smith",
679
+ approveDocumentCount: 15,
680
+ pendingDocumentCount: 3
681
+ },
682
+ {
683
+ _id : "2",
684
+ username: "Sarah Johnson",
685
+ approveDocumentCount: 8,
686
+ pendingDocumentCount: 7
687
+ },
688
+ {
689
+ _id : "3",
690
+ username: "Michael Brown",
691
+ approveDocumentCount: 22,
692
+ pendingDocumentCount: 1
693
+ },
694
+ {
695
+ _id : "4",
696
+ username: "Emily Davis",
697
+ approveDocumentCount: 12,
698
+ pendingDocumentCount: 5
699
+ }
700
+ ];
701
+
702
+ export const SAMPLE_STATUS_DATA = [
703
+ {
704
+ status: "Approved",
705
+ count: 4,
706
+ color: "#10b981",
707
+ icon: "pi pi-check"
708
+ },
709
+ {
710
+ status: "Pending",
711
+ count: 5,
712
+ color: "#6b7280",
713
+ icon: "pi pi-clock"
714
+ },
715
+ {
716
+ status: "Reviewing",
717
+ count: 1,
718
+ color: "#f59e0b",
719
+ icon: "pi pi-search"
720
+ },
721
+ {
722
+ status: "Rejected",
723
+ count: 2,
724
+ color: "#ef4444",
725
+ icon: "pi pi-times"
726
+ },
727
+ {
728
+ status: "Alert",
729
+ count: 12,
730
+ color: "#dc2626",
731
+ icon: "pi pi-exclamation-circle"
732
+ }
733
+ ];
734
+
735
+ /**
736
+ * Dummy data for sumaery.
737
+ * @type {{}}
738
+ */
739
+ export const DUMMYSUMMARY = [
740
+ {
741
+ status: 'Valuation report requested on 10th Oct 2024',
742
+ date: '15/10/2020 10:30',
743
+ icon: 'pi pi-shopping-cart',
744
+ color: '#9C27B0',
745
+ image: 'game-controller.jpg',
746
+ },
747
+ {
748
+ status: 'Valuation report received on 13th Oct 2024',
749
+ date: '15/10/2020 14:00',
750
+ icon: 'pi pi-cog',
751
+ color: '#673AB7',
752
+ },
753
+ {
754
+ status: 'Waiting for Valuation Report to be accepted',
755
+ date: '15/10/2020 16:15',
756
+ icon: 'pi pi-shopping-cart',
757
+ color: '#FF9800',
758
+ },
759
+ ];
760
+
761
+ /**
762
+ * Dummy data for list box.
763
+ * @type {{}}
764
+ */
765
+ export const COUNTRIES = [
766
+ { name: 'Any Word', code: 'NY', checked: false },
767
+ { name: 'Case Sensitive', code: 'RM', checked: false },
768
+ { name: 'Wildcard Search', code: 'LDN', checked: false },
769
+ { name: 'Whole Word Only', code: 'IST', checked: false },
770
+ ];
771
+
772
+ /**
773
+ * Default supported image types.
774
+ * @type {{}}
775
+ */
776
+ export const SUPPORTED_IMAGE_TYPES = [
777
+ 'PNG',
778
+ 'png',
779
+ 'jpeg',
780
+ 'jpg',
781
+ 'gif',
782
+ 'bmp',
783
+ 'tiff',
784
+ 'webp',
785
+ ];
786
+
787
+ /**
788
+ * @constant {Array<{label: string, value: string, files: string[]}>} DOCUMENTTYPES
789
+ * An array of document type objects containing labels, values, and associated files.
790
+ */
791
+
792
+ export const DOCUMENTTYPES = [
793
+ {
794
+ label: "BankStatement",
795
+ value: "bank_statement",
796
+ },
797
+ {
798
+ label: "Payslip",
799
+ value: "payslip",
800
+ },
801
+ {
802
+ label: "Selfie",
803
+ value: "selfie",
804
+ },
805
+ {
806
+ label: "Other",
807
+ value: "other",
808
+ }
809
+ ];
810
+
811
+ export const DocumentAlertList = [
812
+ { status: 'Pending', isAlert: true, alertMessage: 'The name on the payslip does not match either the driver name or the policyholder name.' },
813
+ { status: 'Verified', isAlert: false, alertMessage: 'Document is verified successfully.' },
814
+ ];
815
+
816
+ export const OPEN_DOCUMENT_EXTENSIONS = ['odt', 'ods', 'odp'];
817
+
818
+ /**
819
+ * Dummy data for document sections with detailed document lists.
820
+ * Based on the document management interface structure.
821
+ * @type {Array<{header: string, description: string, pendingDocument: number, approvedDocument: number, list: Array<{documentName: string, documentType: string, documentUrl: string, status: string, applicantName: string, uploadedTime: string}>}>}
822
+ */
823
+ export const DUMMY_DOCUMENT_SECTIONS = [
824
+ {
825
+ header: "Identity",
826
+ description: "Personal identification documents required for verification",
827
+ pendingDocument: 1,
828
+ approvedDocument: 1,
829
+ list: [
830
+ {
831
+ documentName: "passport_emilia_wilson_2025.pdf",
832
+ documentType: "Passport",
833
+ documentUrl: "https://example.com/documents/passport_emilia_wilson_2025.pdf",
834
+ status: "Pending",
835
+ applicantName: "Charlotte Anderson",
836
+ uploadedTime: "28 May 2025"
837
+ },
838
+ {
839
+ documentName: "driving_license_benjamin_mitchell_2025.jpg",
840
+ documentType: "Driving License",
841
+ documentUrl: "https://example.com/documents/driving_license_benjamin_mitchell_2025.jpg",
842
+ status: "Approved",
843
+ applicantName: "Benjamin Mitchell",
844
+ uploadedTime: "27 May 2025"
845
+ },
846
+ {
847
+ documentName: "british_gas_bill_may_2025.pdf",
848
+ documentType: "Utility Bill",
849
+ documentUrl: "https://example.com/documents/british_gas_bill_may_2025.pdf",
850
+ status: "Alert",
851
+ applicantName: "Sophia Reynolds",
852
+ uploadedTime: "26 May 2025"
853
+ },
854
+ {
855
+ documentName: "council_tax_oliver_thompson_2025_2026.pdf",
856
+ documentType: "Council Tax Bill",
857
+ documentUrl: "https://example.com/documents/council_tax_oliver_thompson_2025_2026.pdf",
858
+ status: "Uploaded",
859
+ applicantName: "Oliver Thompson",
860
+ uploadedTime: "30 May 2025"
861
+ },
862
+ {
863
+ documentName: "certified_id_oliver_thompson_2025.pdf",
864
+ documentType: "Certified ID",
865
+ documentUrl: "https://example.com/documents/certified_id_oliver_thompson_2025.pdf",
866
+ status: "Reviewing",
867
+ applicantName: "Oliver Thompson",
868
+ uploadedTime: "02 Jun 2025"
869
+ },
870
+ {
871
+ documentName: "proof_of_address_oliver_thompson_2025.pdf",
872
+ documentType: "Proof of Address",
873
+ documentUrl: "https://example.com/documents/proof_of_address_oliver_thompson_2025.pdf",
874
+ status: "Rejected",
875
+ applicantName: "Oliver Thompson",
876
+ uploadedTime: "02 Jun 2025"
877
+ }
878
+ ]
879
+ },
880
+ {
881
+ header: "Income",
882
+ description: "Personal Income documents required for verification",
883
+ pendingDocument: 1,
884
+ approvedDocument: 1,
885
+ list: [
886
+ {
887
+ documentName: "passport_emilia_wilson_2025.pdf",
888
+ documentType: "Passport",
889
+ documentUrl: "https://example.com/documents/passport_emilia_wilson_2025.pdf",
890
+ status: "Pending",
891
+ applicantName: "Charlotte Anderson",
892
+ uploadedTime: "28 May 2025"
893
+ },
894
+ {
895
+ documentName: "driving_license_benjamin_mitchell_2025.jpg",
896
+ documentType: "Driving License",
897
+ documentUrl: "https://example.com/documents/driving_license_benjamin_mitchell_2025.jpg",
898
+ status: "Approved",
899
+ applicantName: "Benjamin Mitchell",
900
+ uploadedTime: "27 May 2025"
901
+ },
902
+ {
903
+ documentName: "british_gas_bill_may_2025.pdf",
904
+ documentType: "Utility Bill",
905
+ documentUrl: "https://example.com/documents/british_gas_bill_may_2025.pdf",
906
+ status: "Alert",
907
+ applicantName: "Sophia Reynolds",
908
+ uploadedTime: "26 May 2025"
909
+ },
910
+ {
911
+ documentName: "council_tax_oliver_thompson_2025_2026.pdf",
912
+ documentType: "Council Tax Bill",
913
+ documentUrl: "https://example.com/documents/council_tax_oliver_thompson_2025_2026.pdf",
914
+ status: "Uploaded",
915
+ applicantName: "Oliver Thompson",
916
+ uploadedTime: "30 May 2025"
917
+ },
918
+ {
919
+ documentName: "certified_id_oliver_thompson_2025.pdf",
920
+ documentType: "Certified ID",
921
+ documentUrl: "https://example.com/documents/certified_id_oliver_thompson_2025.pdf",
922
+ status: "Reviewing",
923
+ applicantName: "Oliver Thompson",
924
+ uploadedTime: "02 Jun 2025"
925
+ },
926
+ {
927
+ documentName: "proof_of_address_oliver_thompson_2025.pdf",
928
+ documentType: "Proof of Address",
929
+ documentUrl: "https://example.com/documents/proof_of_address_oliver_thompson_2025.pdf",
930
+ status: "Rejected",
931
+ applicantName: "Oliver Thompson",
932
+ uploadedTime: "02 Jun 2025"
933
+ }
934
+ ]
935
+ }
936
+ ];