cat-documents-ng 1.0.3 → 1.0.4

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 (142) hide show
  1. package/README.md +298 -35
  2. package/Shared/components/confirmation-dialog/confirmation-dialog.component.d.ts +44 -0
  3. package/Shared/components/table-primary/table-primary.component.d.ts +31 -0
  4. package/Shared/components/table-primary/table-primary.model.d.ts +19 -0
  5. package/Shared/constant/ERROR.d.ts +52 -0
  6. package/Shared/constant/SHARED.d.ts +546 -0
  7. package/Shared/constant/URLS.d.ts +123 -0
  8. package/Shared/services/app-config.service.d.ts +51 -0
  9. package/{projects/cat-document-lib/src/shared/services/global-error.handler.ts → Shared/services/global-error.handler.d.ts} +9 -11
  10. package/Shared/services/session.service.d.ts +46 -0
  11. package/Shared/shared.module.d.ts +14 -0
  12. package/fesm2022/cat-documents-ng.mjs +11392 -0
  13. package/fesm2022/cat-documents-ng.mjs.map +1 -0
  14. package/index.d.ts +5 -0
  15. package/lib/document/components/document-actions/document-actions.component.d.ts +78 -0
  16. package/lib/document/components/document-container/document-container.component.d.ts +162 -0
  17. package/lib/document/components/document-content-viewer/document-content-viewer.component.d.ts +291 -0
  18. package/lib/document/components/document-history/document-history.component.d.ts +160 -0
  19. package/lib/document/components/document-list/document-list.component.d.ts +299 -0
  20. package/lib/document/components/document-list-item/document-list-item.component.d.ts +28 -0
  21. package/lib/document/components/document-search/document-search.component.d.ts +77 -0
  22. package/lib/document/components/document-status/document-status.component.d.ts +24 -0
  23. package/lib/document/components/document-upload/document-upload.component.d.ts +321 -0
  24. package/lib/document/components/document-viewer/document-viewer.component.d.ts +137 -0
  25. package/lib/document/components/document-zoom-controls/document-zoom-controls.component.d.ts +33 -0
  26. package/lib/document/components/documents-menu/documents-menu.component.d.ts +110 -0
  27. package/{projects/cat-document-lib/src/lib/document/components/folder-block/folder-block.component.ts → lib/document/components/folder-block/folder-block.component.d.ts} +12 -26
  28. package/lib/document/components/folder-container/folder-container.component.d.ts +162 -0
  29. package/lib/document/components/linked-document/linked-document.component.d.ts +39 -0
  30. package/lib/document/components/request-document/request-document.component.d.ts +69 -0
  31. package/lib/document/components/sidebar/sidebar.component.d.ts +109 -0
  32. package/lib/document/components/user-list/user-list.component.d.ts +34 -0
  33. package/lib/document/constant/DOCUMENT_HISTORY.d.ts +41 -0
  34. package/lib/document/directives/document.directive.d.ts +20 -0
  35. package/lib/document/directives/permission.directive.d.ts +38 -0
  36. package/lib/document/document.module.d.ts +60 -0
  37. package/lib/document/models/document-alert.model.d.ts +38 -0
  38. package/lib/document/models/document-category.model.d.ts +24 -0
  39. package/lib/document/models/document-history.model.d.ts +94 -0
  40. package/lib/document/models/document-list-response.model.d.ts +33 -0
  41. package/lib/document/models/document-type.model.d.ts +37 -0
  42. package/lib/document/models/document.model.d.ts +44 -0
  43. package/{projects/cat-document-lib/src/lib/document/models/folder.model.ts → lib/document/models/folder.model.d.ts} +7 -13
  44. package/lib/document/models/status-data.model.d.ts +27 -0
  45. package/lib/document/models/uploaded-file-response.model.d.ts +7 -0
  46. package/lib/document/models/user-list.model.d.ts +8 -0
  47. package/lib/document/services/csv-parser.service.d.ts +88 -0
  48. package/lib/document/services/document-actions.service.d.ts +48 -0
  49. package/lib/document/services/document-content-type.service.d.ts +85 -0
  50. package/lib/document/services/document-history-style.service.d.ts +34 -0
  51. package/lib/document/services/document-history.service.d.ts +42 -0
  52. package/lib/document/services/document-http.service.d.ts +179 -0
  53. package/lib/document/services/document-list.service.d.ts +74 -0
  54. package/lib/document/services/document-menu.service.d.ts +122 -0
  55. package/lib/document/services/document-scroll.service.d.ts +55 -0
  56. package/lib/document/services/document-table-builder.service.d.ts +38 -0
  57. package/lib/document/services/document-upload-business.service.d.ts +107 -0
  58. package/lib/document/services/document-upload-data.service.d.ts +40 -0
  59. package/lib/document/services/document-upload-form.service.d.ts +41 -0
  60. package/lib/document/services/document-upload.service.d.ts +99 -0
  61. package/lib/document/services/document-viewer.service.d.ts +97 -0
  62. package/lib/document/services/document-zoom.service.d.ts +81 -0
  63. package/lib/document/services/document.service.d.ts +161 -0
  64. package/lib/document/services/eml-parser.service.d.ts +116 -0
  65. package/lib/document/services/excel-parser.service.d.ts +169 -0
  66. package/lib/document/services/file-format.service.d.ts +34 -0
  67. package/lib/document/services/status-calculator.service.d.ts +20 -0
  68. package/lib/document/services/user-list.service.d.ts +29 -0
  69. package/lib/document/state/document.query.d.ts +243 -0
  70. package/{projects/cat-document-lib/src/lib/document/state/document.service.ts → lib/document/state/document.service.d.ts} +15 -46
  71. package/lib/document/state/document.state.d.ts +61 -0
  72. package/lib/document/state/document.store.d.ts +56 -0
  73. package/package.json +19 -57
  74. package/public-api.d.ts +27 -0
  75. package/src/assets/images/Document interface.png +0 -0
  76. package/src/assets/images/Document upload.png +0 -0
  77. package/src/assets/images/Pdf viewer dialog.png +0 -0
  78. package/.github/PULL_REQUEST_TEMPLATE.md +0 -32
  79. package/.husky/pre-commit +0 -4
  80. package/angular.json +0 -119
  81. package/eslint.config.cjs +0 -148
  82. package/projects/cat-document-lib/README.md +0 -63
  83. package/projects/cat-document-lib/ng-package.json +0 -11
  84. package/projects/cat-document-lib/package.json +0 -16
  85. package/projects/cat-document-lib/setup-jest.ts +0 -1
  86. package/projects/cat-document-lib/src/lib/document/components/document-container/document-container.component.html +0 -6
  87. package/projects/cat-document-lib/src/lib/document/components/document-container/document-container.component.scss +0 -0
  88. package/projects/cat-document-lib/src/lib/document/components/document-container/document-container.component.spec.ts +0 -0
  89. package/projects/cat-document-lib/src/lib/document/components/document-container/document-container.component.ts +0 -82
  90. package/projects/cat-document-lib/src/lib/document/components/document-list/document-list.component.html +0 -35
  91. package/projects/cat-document-lib/src/lib/document/components/document-list/document-list.component.scss +0 -12
  92. package/projects/cat-document-lib/src/lib/document/components/document-list/document-list.component.spec.ts +0 -0
  93. package/projects/cat-document-lib/src/lib/document/components/document-list/document-list.component.ts +0 -73
  94. package/projects/cat-document-lib/src/lib/document/components/document-list-item/document-list-item.component.html +0 -33
  95. package/projects/cat-document-lib/src/lib/document/components/document-list-item/document-list-item.component.scss +0 -22
  96. package/projects/cat-document-lib/src/lib/document/components/document-list-item/document-list-item.component.spec.ts +0 -23
  97. package/projects/cat-document-lib/src/lib/document/components/document-list-item/document-list-item.component.ts +0 -40
  98. package/projects/cat-document-lib/src/lib/document/components/document-upload/document-upload.component.html +0 -56
  99. package/projects/cat-document-lib/src/lib/document/components/document-upload/document-upload.component.scss +0 -26
  100. package/projects/cat-document-lib/src/lib/document/components/document-upload/document-upload.component.spec.ts +0 -24
  101. package/projects/cat-document-lib/src/lib/document/components/document-upload/document-upload.component.ts +0 -184
  102. package/projects/cat-document-lib/src/lib/document/components/document-viewer/document-viewer.component.html +0 -244
  103. package/projects/cat-document-lib/src/lib/document/components/document-viewer/document-viewer.component.scss +0 -36
  104. package/projects/cat-document-lib/src/lib/document/components/document-viewer/document-viewer.component.spec.ts +0 -21
  105. package/projects/cat-document-lib/src/lib/document/components/document-viewer/document-viewer.component.ts +0 -125
  106. package/projects/cat-document-lib/src/lib/document/components/folder-block/folder-block.component.html +0 -46
  107. package/projects/cat-document-lib/src/lib/document/components/folder-block/folder-block.component.scss +0 -0
  108. package/projects/cat-document-lib/src/lib/document/components/folder-block/folder-block.component.spec.ts +0 -0
  109. package/projects/cat-document-lib/src/lib/document/components/folder-container/folder-container.component.html +0 -2
  110. package/projects/cat-document-lib/src/lib/document/components/folder-container/folder-container.component.scss +0 -0
  111. package/projects/cat-document-lib/src/lib/document/components/folder-container/folder-container.component.spec.ts +0 -0
  112. package/projects/cat-document-lib/src/lib/document/components/folder-container/folder-container.component.ts +0 -29
  113. package/projects/cat-document-lib/src/lib/document/document.module.ts +0 -187
  114. package/projects/cat-document-lib/src/lib/document/models/document.model.ts +0 -39
  115. package/projects/cat-document-lib/src/lib/document/services/file-format.service.spec.ts +0 -16
  116. package/projects/cat-document-lib/src/lib/document/services/file-format.service.ts +0 -41
  117. package/projects/cat-document-lib/src/lib/document/state/document.query.ts +0 -23
  118. package/projects/cat-document-lib/src/lib/document/state/document.state.ts +0 -39
  119. package/projects/cat-document-lib/src/lib/document/state/document.store.ts +0 -23
  120. package/projects/cat-document-lib/src/public-api.ts +0 -8
  121. package/projects/cat-document-lib/src/shared/constant/SHARED.ts +0 -232
  122. package/projects/cat-document-lib/src/shared/constant/URLS.ts +0 -31
  123. package/projects/cat-document-lib/src/shared/services/app-config.service.spec.ts +0 -16
  124. package/projects/cat-document-lib/src/shared/services/app-config.service.ts +0 -73
  125. package/projects/cat-document-lib/tsconfig.lib.json +0 -15
  126. package/projects/cat-document-lib/tsconfig.lib.prod.json +0 -11
  127. package/projects/cat-document-lib/tsconfig.spec.json +0 -15
  128. package/public/favicon.ico +0 -0
  129. package/src/app/app.component.html +0 -1
  130. package/src/app/app.component.scss +0 -0
  131. package/src/app/app.component.spec.ts +0 -29
  132. package/src/app/app.component.ts +0 -15
  133. package/src/app/app.module.ts +0 -60
  134. package/src/app/app.routing.module.ts +0 -19
  135. package/src/index.html +0 -13
  136. package/src/main.ts +0 -5
  137. package/src/styles.scss +0 -39
  138. package/tsconfig.app.json +0 -15
  139. package/tsconfig.json +0 -32
  140. /package/{projects/cat-document-lib/src → src}/assets/images/FolderImg.png +0 -0
  141. /package/{projects/cat-document-lib/src → src}/assets/images/Frame.png +0 -0
  142. /package/{projects/cat-document-lib/src → src}/assets/images/document.png +0 -0
@@ -0,0 +1,546 @@
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 declare class SHARED {
6
+ /**
7
+ * Represents the info.
8
+ */
9
+ static UNKNOWN_USER: string;
10
+ /**
11
+ * Represents the info.
12
+ */
13
+ static ACTIONS: string;
14
+ /**
15
+ * Represents the info.
16
+ */
17
+ static VISIBLE: string;
18
+ /**
19
+ * Represents the info.
20
+ */
21
+ static HIDDEN: string;
22
+ static NO_DOCUMENTS_FOUND: string;
23
+ static DOCUMENT_TYPES_DELETE: string;
24
+ static SUCCESS_MESSAGE: string;
25
+ /**
26
+ * Represents the info.
27
+ */
28
+ static APPLICATION_DOCS: string;
29
+ /**
30
+ * Represents the info.
31
+ */
32
+ static INFO: string;
33
+ /**
34
+ * Represents the success.
35
+ */
36
+ static SUCCESS: string;
37
+ /**
38
+ * Represents the warning.
39
+ */
40
+ static WARNING: string;
41
+ /**
42
+ * Represents the warning.
43
+ */
44
+ static DANGER: string;
45
+ /**
46
+ * Represents the stores userData.
47
+ */
48
+ static SESSIONKEY: string;
49
+ /**
50
+ * Represents the count of missing files.
51
+ */
52
+ static MISSINGCOUNT: number;
53
+ /**
54
+ * Represents the count of pending files.
55
+ */
56
+ static PENDINGCOUNT: number;
57
+ /**
58
+ * Represents an empty string.
59
+ */
60
+ static EMPTY: string;
61
+ /**
62
+ * Represents an empty string.
63
+ */
64
+ static STRING: string;
65
+ /**
66
+ * Represents an true.
67
+ * @static
68
+ * @type {boolean}
69
+ */
70
+ static TRUE: boolean;
71
+ /**
72
+ * Represents an false.
73
+ * @static
74
+ * @type {boolean}
75
+ */
76
+ static FALSE: boolean;
77
+ /**
78
+ * Represents an INITIAL_COUNT.
79
+ */
80
+ static INITIAL_COUNT: number;
81
+ /**
82
+ * Represents an INITIAL_VALUE.
83
+ */
84
+ static INITIAL_VALUE: number;
85
+ /**
86
+ * Represents the constant value for one (1).
87
+ * @static
88
+ * @type {number}
89
+ */
90
+ static ONE: number;
91
+ /**
92
+ * Represents the constant value for two (2).
93
+ * @static
94
+ * @type {number}
95
+ */
96
+ static TWO: number;
97
+ /**
98
+ * Represents the constant value for ten (10).
99
+ * @static
100
+ * @type {number}
101
+ */
102
+ static TEN: number;
103
+ /**
104
+ * Represents the constant string value 'files' used for file-related operations.
105
+ * @static
106
+ * @type {string}
107
+ */
108
+ static FILE: string;
109
+ /**
110
+ * Query parameter for menu item filter.
111
+ * @static
112
+ * @type {string}
113
+ */
114
+ static MENU_ITEM_PARAM: string;
115
+ /**
116
+ * Query parameter for user ID filter.
117
+ * @static
118
+ * @type {string}
119
+ */
120
+ static USER_ID_PARAM: string;
121
+ /**
122
+ * Query parameter for status filter.
123
+ * @static
124
+ * @type {string}
125
+ */
126
+ static STATUS_PARAM: string;
127
+ /**
128
+ * Represents the array of file size units ('B', 'KB', 'MB') used for file size formatting.
129
+ * @static
130
+ * @type {string[]}
131
+ */
132
+ static FILE_SIZE_UNITS: string[];
133
+ /**
134
+ * Show SEVERITY value.
135
+ * @static
136
+ * @type {'error'}
137
+ */
138
+ static SEVERITY: string;
139
+ /**
140
+ * Show SEVERITY value.
141
+ * @static
142
+ * @type {'error'}
143
+ */
144
+ static SUCCESS_SEVERITY: string;
145
+ /**
146
+ * Show upload summery if it's failed.
147
+ * @static
148
+ * @type {'Upload Failed'}
149
+ */
150
+ static UPLOAD_SUMMERY: string;
151
+ /**
152
+ * Show upload summery if it's success.
153
+ * @static
154
+ * @type {'Document uploaded successfully.'}
155
+ */
156
+ static UPLOAD_SUCCESS: string;
157
+ /**
158
+ * Represent empty array.
159
+ * @static
160
+ * @type {{}}
161
+ */
162
+ static EMPTY_ARRAY: never[];
163
+ /**
164
+ * Represent contextId.
165
+ * @static
166
+ * @type {string}
167
+ */
168
+ static CONTEXT_ID: string;
169
+ /**
170
+ * Represent contextId.
171
+ * @static
172
+ * @type {string}
173
+ */
174
+ static CATEGORY: string;
175
+ /**
176
+ * Represent fileSize.
177
+ * @static
178
+ * @type {string}
179
+ */
180
+ static FILE_SIZE: string;
181
+ /**
182
+ * Represent documentName.
183
+ * @static
184
+ * @type {string}
185
+ */
186
+ static DOCUMENT_NAME: string;
187
+ /**
188
+ * Represent documentTypeId.
189
+ * @static
190
+ * @type {string}
191
+ */
192
+ static DOCUMENT_TYPE_ID: string;
193
+ /**
194
+ * Represent blob.
195
+ * @static
196
+ * @type {string}
197
+ */
198
+ static DOCUMENT: string;
199
+ /**
200
+ * Represent none.
201
+ * @static
202
+ * @type {string}
203
+ */
204
+ static NONE: string;
205
+ /**
206
+ * Represent upload summery.
207
+ * @static
208
+ * @type {string}
209
+ */
210
+ static UPLOAD_ERROR_SUMMERY: string;
211
+ /**
212
+ * Represent upload error details.
213
+ * @static
214
+ * @type {string}
215
+ */
216
+ static UPLOAD_ERROR_DETAILS: string;
217
+ /**
218
+ * Represents the message prefix for a successful document name update.
219
+ * @static
220
+ * @type {string}
221
+ */
222
+ static UPDATE_DOCUMENT_NAME: string;
223
+ static WIDTH: string;
224
+ static BASEZINDEX: number;
225
+ static DOCX: string;
226
+ static DOC: string;
227
+ static CSV: string;
228
+ static CLOSE_ICON: string;
229
+ static SAVE: string;
230
+ static UPLOAD_PROGRESS_100: number;
231
+ static UPLOAD_PROGRESS_10: number;
232
+ static APPLICANT: string;
233
+ static APPLICANT_LOWERCASE: string;
234
+ static APPLICATION_LOWERCASE: string;
235
+ static DOCUMENT_LOWERCASE: string;
236
+ static USER_LOWERCASE: string;
237
+ static CATAGORIES: string;
238
+ static DOCUMENTS: string;
239
+ static UPLOAD_FAILED: string;
240
+ static USER_LIST: string;
241
+ static HYPEN: string;
242
+ static CATEGORIES: string;
243
+ static UNSAVED_CHANGES_MESSAGE: string;
244
+ static UNSAVED_CHANGES_HEADER: string;
245
+ static DOCUMENT_DELETED_SUCCESSFULLY: string;
246
+ static UNSAVED_CHANGES_ICON: string;
247
+ static REMOVE: string;
248
+ static YES: string;
249
+ static NO: string;
250
+ static CANCEL: string;
251
+ static DELETE: string;
252
+ static DELETE_CONFIRMATION_HEADER: string;
253
+ static VALUATION_REPORT_DELETE_MESSAGE: string;
254
+ static VALUATION_REPORT: string;
255
+ static DELETE_BUTTON_STYLE_CLASS: string;
256
+ static ACCEPT_ICON: string;
257
+ static REJECT_ICON: string;
258
+ static ACCEPT_BUTTON_STYLE_CLASS: string;
259
+ static REJECT_BUTTON_STYLE_CLASS: string;
260
+ static NO_DATA_FOUND: string;
261
+ static BORDERS: string[];
262
+ static FILE_TYPES: string[];
263
+ static COMMA: string;
264
+ static TEAM_LEADER: string;
265
+ static UNDERWRITER_USER: string;
266
+ static INITIAL_REQUEST: string;
267
+ static ERROR_PARSING_SHEET_DATA: string;
268
+ static REFRESH_TRIGGER: string;
269
+ static PDF_TYPE: string;
270
+ static EXCEL_XLSX_MIME_TYPE: string;
271
+ static EXCEL_XLS_MIME_TYPE: string;
272
+ static OCTET_STREAM: string;
273
+ static WORD_DOCX_MIME_TYPE: string;
274
+ static WORD_DOC_MIME_TYPE: string;
275
+ static CSV_MIME_TYPE: string;
276
+ static EMAIL_RFC822_MIME_TYPE: string;
277
+ static EMAIL_OUTLOOK_MIME_TYPE: string;
278
+ static OPEN_DOCUMENT_MIME_TYPE: string;
279
+ static ICON_FILE_WORD: string;
280
+ static ICON_ENVELOPE: string;
281
+ static PDF_DOCUMENT: string;
282
+ static IMAGE: string;
283
+ static EXCEL_SPREADSHEET: string;
284
+ static WORD_DOCUMENT: string;
285
+ static CSV_FILE: string;
286
+ static EMAIL_MESSAGE: string;
287
+ static OPEN_DOCUMENT: string;
288
+ static NO_DATA_AVAILABLE: string;
289
+ static ERROR_PARSING_EXCEL_FILE: string;
290
+ static ERROR_PARSING_EXCEL_FILE_STRUCTURE: string;
291
+ static NAME_UPDATE_ACTION: string;
292
+ static REQUESTED: string;
293
+ static ACCEPTED: string;
294
+ static UPLOADED: string;
295
+ static REJECTED: string;
296
+ static Menu: {
297
+ label: string;
298
+ items: ({
299
+ badge: string;
300
+ label: string;
301
+ icon: string;
302
+ } | {
303
+ label: string;
304
+ icon: string;
305
+ badge?: undefined;
306
+ })[];
307
+ }[];
308
+ static APPLICATION: string;
309
+ static APPLICANTS: string;
310
+ static EMPTY_SPACE: string;
311
+ static COLORS: string[];
312
+ static COLOR_MAP: {
313
+ orange: string;
314
+ blue: string;
315
+ green: string;
316
+ grey: string;
317
+ purple: string;
318
+ };
319
+ static DEFAULT_COLOR: string;
320
+ static STATUS_WITH_DASH: string;
321
+ static ICON_WITH_DASH: string;
322
+ static SEARCH_KEY: string;
323
+ static APPROVED: string;
324
+ static PENDING: string;
325
+ static DOT: string;
326
+ static PDF: string;
327
+ static PDF2: string;
328
+ static PENDING_STATUS: string;
329
+ static EVENT_REQUESTED: string;
330
+ static EVENT_ACCEPTED: string;
331
+ static EVENT_REJECTED: string;
332
+ static EVENT_DEFAULT: string;
333
+ static ICON_REQUESTED: string;
334
+ static ICON_ACCEPTED: string;
335
+ static ICON_REJECTED: string;
336
+ static ICON_DEFAULT: string;
337
+ static ICON_CHECK_CIRCLE: string;
338
+ static ICON_FOLDER_PLUS: string;
339
+ static ICON_TIMES: string;
340
+ static ICON_FILE: string;
341
+ static JPG: string;
342
+ static PNG: string;
343
+ static XLSX: string;
344
+ static XLS: string;
345
+ static APPROVED_STATUS: string;
346
+ static ALERT_STATUS: string;
347
+ static UPLOADED_STATUS: string;
348
+ static REVIEWING_STATUS: string;
349
+ static REJECTED_STATUS: string;
350
+ static REQUESTED_STATUS: string;
351
+ static STATUS_PENDING_CLASS: string;
352
+ static STATUS_APPROVED_CLASS: string;
353
+ static STATUS_ALERT_CLASS: string;
354
+ static STATUS_UPLOADED_CLASS: string;
355
+ static STATUS_REVIEWING_CLASS: string;
356
+ static STATUS_REJECTED_CLASS: string;
357
+ static ICON_CHECK: string;
358
+ static ICON_EXCLAMATION_TRIANGLE: string;
359
+ static ICON_CLOUD_UPLOAD: string;
360
+ static ICON_EYE: string;
361
+ static ICON_CLOCK: string;
362
+ static ICON_FILE_PDF: string;
363
+ static ICON_IMAGE: string;
364
+ static ICON_FILE_EXCEL: string;
365
+ static ICON_DELETE: string;
366
+ static CELL_TYPE_DOCUMENT: string;
367
+ static CELL_TYPE_STATUS: string;
368
+ static CELL_TYPE_ACTIONS: string;
369
+ static CELL_TYPE_TEXT: string;
370
+ /**
371
+ * Document table columns configuration
372
+ * @static
373
+ * @type {Array<{field: string, header: string, type: 'text' | 'status' | 'document' | 'actions', width: string}>}
374
+ */
375
+ static DOCUMENT_TABLE_COLUMNS: Array<{
376
+ field: string;
377
+ header: string;
378
+ type: 'text' | 'status' | 'document' | 'actions';
379
+ width: string;
380
+ }>;
381
+ static DOCUMENT_REQUESTED: string;
382
+ static DOCUMENT_UPLOADED: string;
383
+ static DOCUMENT_REJECTED: string;
384
+ static DOCUMENT_ACCEPTED: string;
385
+ static ACCEPT_ACTION: string;
386
+ static REJECT_ACTION: string;
387
+ static DELETE_ACTION: string;
388
+ static ACCEPT_CONFIRM_HEADER: string;
389
+ static REJECT_CONFIRM_HEADER: string;
390
+ static ACCEPT_NOTE_LABEL: string;
391
+ static REJECT_NOTE_LABEL: string;
392
+ static ACCEPT_NOTE_PLACEHOLDER: string;
393
+ static REJECT_NOTE_PLACEHOLDER: string;
394
+ static CANCEL_BUTTON_LABEL: string;
395
+ static ACCEPT_BUTTON_LABEL: string;
396
+ static REJECT_BUTTON_LABEL: string;
397
+ static DOCUMENT_ACCEPTED_MESSAGE: string;
398
+ static DOCUMENT_REJECTED_MESSAGE: string;
399
+ static DOCUMENT_UPDATE_ERROR_MESSAGE: string;
400
+ static STATUS_APPROVED: string;
401
+ static STATUS_REJECTED: string;
402
+ static STATUS_PENDING: string;
403
+ static STATUS_ACCEPTED: string;
404
+ static STATUS_REJECTED_LOWERCASE: string;
405
+ static STATUS_DECLINED: string;
406
+ static CARD_PENDING: string;
407
+ static CARD_ACCEPTED: string;
408
+ static CARD_REJECTED: string;
409
+ static BUTTON_SECONDARY_REJECT: string;
410
+ static BUTTON_PRIMARY_REJECT: string;
411
+ static BUTTON_DEFAULT_REJECT: string;
412
+ static BUTTON_PRIMARY_ACCEPT: string;
413
+ static BUTTON_SECONDARY_ACCEPT: string;
414
+ static BUTTON_DEFAULT_ACCEPT: string;
415
+ static BUTTON_LABEL_REJECT: string;
416
+ static BUTTON_LABEL_REJECTED: string;
417
+ static BUTTON_LABEL_ACCEPT: string;
418
+ static BUTTON_LABEL_ACCEPTED: string;
419
+ static VALIDATION_NO_APPLICANT_SELECTED: string;
420
+ static VALIDATION_NO_APPLICANT_DETAIL: string;
421
+ static VALIDATION_NO_CATEGORY_SELECTED: string;
422
+ static VALIDATION_NO_CATEGORY_DETAIL: string;
423
+ static VALIDATION_NO_DOCUMENT_TYPE_SELECTED: string;
424
+ static VALIDATION_NO_DOCUMENT_TYPE_DETAIL: string;
425
+ static VALIDATION_NO_DOCUMENTS_UPLOADED: string;
426
+ static VALIDATION_NO_DOCUMENTS_DETAIL: string;
427
+ static VALIDATION_FORM_INCOMPLETE: string;
428
+ static VALIDATION_FORM_INCOMPLETE_DETAIL: string;
429
+ static VALIDATION_MISSING_REQUIRED_DATA: string;
430
+ static VALIDATION_SELECT_ASSIGNMENT_TYPE: string;
431
+ static VALIDATION_SELECT_CATEGORY: string;
432
+ static VALIDATION_SELECT_DOCUMENT_TYPE: string;
433
+ static VALIDATION_UPLOAD_AT_LEAST_ONE: string;
434
+ static VALIDATION_WAIT_FOR_UPLOAD: string;
435
+ static VALIDATION_SELECT_APPLICANT: string;
436
+ static VALIDATION_ALL_FIELDS_COMPLETED: string;
437
+ static VALIDATION_OPTIONS_NOT_LOADED: string;
438
+ static CONTENT_TYPE: string;
439
+ static DOCUMENT_URL: string;
440
+ static DOC_VIEWER_WRAPPER: string;
441
+ static CSV_TABLE_CONTAINER: string;
442
+ static DOCX_CONTAINER: string;
443
+ static PDF_CONTAINER: string;
444
+ static IMAGE_CONTAINER: string;
445
+ static WHEEL_CAPTURE_OVERLAY: string;
446
+ static DOCUMENT_CONTENT_VIEWER_CONTAINER: string;
447
+ static EXCEL_ZOOM_WRAPPER: string;
448
+ static DOC_ZOOM_WRAPPER: string;
449
+ static CSV_ZOOM_WRAPPER: string;
450
+ static ERROR_PARSING_CSV_FILE: string;
451
+ static ERROR_LOADING_CSV_FILE: string;
452
+ static ERROR_PARSING_CSV_DATA: string;
453
+ static ERROR_PARSING_EMAIL_FILE: string;
454
+ static ERROR_LOADING_EMAIL_FILE: string;
455
+ static SMOOTH_SCROLL: ScrollBehavior;
456
+ }
457
+ /**
458
+ * `DUMMYDOCUMENTLIST` is a mock list of document objects used for testing and development purposes.
459
+ * Each document includes an ID, file name, status, and document URL.
460
+ */
461
+ export declare const DUMMYDOCUMENTLIST: {
462
+ _id: number;
463
+ fileName: string;
464
+ status: string;
465
+ documentUrl: string;
466
+ }[];
467
+ /**
468
+ * `FOLDERPANEL` is a mock list of folder data representing various folders in the application.
469
+ * Each folder contains an ID, file count, text description, missing files count, and pending files count.
470
+ */
471
+ export declare const USERLIST: {
472
+ _id: string;
473
+ username: string;
474
+ approveDocumentCount: number;
475
+ pendingDocumentCount: number;
476
+ }[];
477
+ export declare const SAMPLE_STATUS_DATA: {
478
+ status: string;
479
+ count: number;
480
+ color: string;
481
+ icon: string;
482
+ }[];
483
+ /**
484
+ * Dummy data for sumaery.
485
+ * @type {{}}
486
+ */
487
+ export declare const DUMMYSUMMARY: ({
488
+ status: string;
489
+ date: string;
490
+ icon: string;
491
+ color: string;
492
+ image: string;
493
+ } | {
494
+ status: string;
495
+ date: string;
496
+ icon: string;
497
+ color: string;
498
+ image?: undefined;
499
+ })[];
500
+ /**
501
+ * Dummy data for list box.
502
+ * @type {{}}
503
+ */
504
+ export declare const COUNTRIES: {
505
+ name: string;
506
+ code: string;
507
+ checked: boolean;
508
+ }[];
509
+ /**
510
+ * Default supported image types.
511
+ * @type {{}}
512
+ */
513
+ export declare const SUPPORTED_IMAGE_TYPES: string[];
514
+ /**
515
+ * @constant {Array<{label: string, value: string, files: string[]}>} DOCUMENTTYPES
516
+ * An array of document type objects containing labels, values, and associated files.
517
+ */
518
+ export declare const DOCUMENTTYPES: {
519
+ label: string;
520
+ value: string;
521
+ }[];
522
+ export declare const DocumentAlertList: {
523
+ status: string;
524
+ isAlert: boolean;
525
+ alertMessage: string;
526
+ }[];
527
+ export declare const OPEN_DOCUMENT_EXTENSIONS: string[];
528
+ /**
529
+ * Dummy data for document sections with detailed document lists.
530
+ * Based on the document management interface structure.
531
+ * @type {Array<{header: string, description: string, pendingDocument: number, approvedDocument: number, list: Array<{documentName: string, documentType: string, documentUrl: string, status: string, applicantName: string, uploadedTime: string}>}>}
532
+ */
533
+ export declare const DUMMY_DOCUMENT_SECTIONS: {
534
+ header: string;
535
+ description: string;
536
+ pendingDocument: number;
537
+ approvedDocument: number;
538
+ list: {
539
+ documentName: string;
540
+ documentType: string;
541
+ documentUrl: string;
542
+ status: string;
543
+ applicantName: string;
544
+ uploadedTime: string;
545
+ }[];
546
+ }[];
@@ -0,0 +1,123 @@
1
+ /**
2
+ * Class that holds the URLs used throughout the application.
3
+ * These URLs are typically used for making API requests and accessing various resources.
4
+ * @class URLS
5
+ * @typedef {URLS}
6
+ */
7
+ export declare class URLS {
8
+ /**
9
+ * The URL to fetch the application configuration file.
10
+ * This JSON file typically contains settings and options for the application.
11
+ * @static
12
+ * @type {string}
13
+ */
14
+ static CONFIGFILEURL: string;
15
+ /**
16
+ * The URL endpoint for document uploads.
17
+ * Used to send documents to the server for storage or processing.
18
+ * @static
19
+ * @type {string}
20
+ */
21
+ static DOCUMENT_UPLOAD_FILE: 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 DOCUMENT_UPLOAD: string;
29
+ /**
30
+ * The URL endpoint for document uploads.
31
+ * Used to send documents to the server for storage or processing.
32
+ * @static
33
+ * @type {string}
34
+ */
35
+ static DOCUMENTS: string;
36
+ /**
37
+ * The URL endpoint for document uploads.
38
+ * Used to send documents to the server for storage or processing.
39
+ * @static
40
+ * @type {string}
41
+ */
42
+ static DOCUMENTS_CATAGORIES: string;
43
+ /**
44
+ * The query parameter to pass a context ID in API requests.
45
+ * Used to specify the context for certain API calls, such as filtering or scoping the request.
46
+ * @static
47
+ * @type {string}
48
+ */
49
+ static CONTEXT: string;
50
+ /**
51
+ * The query parameter to pass a document ID in API requests.
52
+ * @static
53
+ * @type {string}
54
+ */
55
+ static DOCUMENT_TYPES: string;
56
+ static ALIAS_NAME: string;
57
+ /**
58
+ * The URL endpoint for getting categories by source (Applicant/Application).
59
+ * Used to fetch document categories based on the selected source.
60
+ * @static
61
+ * @type {string}
62
+ */
63
+ static GET_CATEGORIES_BY_SOURCE: string;
64
+ /**
65
+ * The URL endpoint for getting document types by category ID.
66
+ * Used to fetch document types based on the selected category.
67
+ * @static
68
+ * @type {string}
69
+ */
70
+ static GET_DOCUMENT_TYPES_BY_CATEGORY: string;
71
+ /**
72
+ * The URL endpoint for saving document upload data.
73
+ * Used to save the complete document upload information.
74
+ * @static
75
+ * @type {string}
76
+ */
77
+ static SAVE_DOCUMENT_UPLOAD: string;
78
+ /**
79
+ * The query parameter to pass a context ID in API requests.
80
+ * @static
81
+ * @type {string}
82
+ */
83
+ static FOLDERS: string;
84
+ /**
85
+ * The query parameter to pass a document ID in API requests.
86
+ * @static
87
+ * @type {string}
88
+ */
89
+ static ALERT_BY_DOCUMENT_ID: string;
90
+ /**
91
+ * The query parameter to pass a document ID in API requests.
92
+ * @static
93
+ * @type {string}
94
+ */
95
+ static PARENT_DOCUMENT_TYPE_ID: string;
96
+ /**
97
+ * The query parameter to pass a document ID in API requests.
98
+ * @static
99
+ * @type {string}
100
+ */
101
+ static USERLIST: string;
102
+ /**
103
+ * The URL endpoint for getting document status count by context ID.
104
+ * Used to fetch status data with applicationId, contextId, and category parameters.
105
+ * @static
106
+ * @type {string}
107
+ */
108
+ static STATUS_DOCUMENT_COUNT: string;
109
+ /**
110
+ * The query parameter to pass a context ID in API requests.
111
+ * Used to specify the context for certain API calls, such as filtering or scoping the request.
112
+ * @static
113
+ * @type {string}
114
+ */
115
+ static CONTEXT_ID: string;
116
+ static GETALL: string;
117
+ static DOCUMENT_LIST: string;
118
+ static DOCUMENT_HISTORY: string;
119
+ static DELETE_DOCUMENT: string;
120
+ static UPDATE_DOCUMENT_STATUS: string;
121
+ static DOCUMENT_REQUEST: string;
122
+ static VALUATION_REPORT: string;
123
+ }
@@ -0,0 +1,51 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * Service that handles loading and providing configuration settings for the application.
5
+ * It fetches configuration data from a remote server and exposes various configuration options.
6
+ * @class AppConfigService
7
+ * @typedef {AppConfigService}
8
+ */
9
+ export declare class AppConfigService {
10
+ private http;
11
+ /**
12
+ * Holds the configuration data loaded from the server.
13
+ * @private
14
+ * @type {*}
15
+ */
16
+ private appConfig;
17
+ /**
18
+ * Creates an instance of AppConfigService.
19
+ * Initializes the HttpClient for making HTTP requests.
20
+ * @class
21
+ * @param {HttpClient} http - The HttpClient service used for making HTTP requests.
22
+ */
23
+ constructor(http: HttpClient);
24
+ /**
25
+ * Loads the application configuration from the server by making an HTTP request to the configuration URL.
26
+ * This method retrieves the configuration data and assigns it to the appConfig property.
27
+ * @async
28
+ * @returns {*}
29
+ */
30
+ loadAppConfig(): Promise<void>;
31
+ /**
32
+ * Returns the base URL for the API from the loaded configuration.
33
+ * @readonly
34
+ * @type {*}
35
+ */
36
+ get apiBaseUrl(): any;
37
+ /**
38
+ * Returns the local server API URL from the loaded configuration.
39
+ * @readonly
40
+ * @type {*}
41
+ */
42
+ get localServerApi(): any;
43
+ /**
44
+ * Returns the visibility options from the loaded configuration.
45
+ * @readonly
46
+ * @type {*}
47
+ */
48
+ get visibilityOptions(): any;
49
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppConfigService, never>;
50
+ static ɵprov: i0.ɵɵInjectableDeclaration<AppConfigService>;
51
+ }