cat-documents-ng 1.0.6 → 1.0.8
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.
- package/README.md +322 -322
- package/Shared/components/confirmation-dialog/confirmation-dialog.component.d.ts +44 -0
- package/Shared/components/table-primary/table-primary.component.d.ts +31 -0
- package/Shared/components/table-primary/table-primary.model.d.ts +19 -0
- package/Shared/constant/ERROR.d.ts +52 -0
- package/Shared/constant/SHARED.d.ts +546 -0
- package/{src/Shared/constant/URLS.ts → Shared/constant/URLS.d.ts} +25 -31
- package/Shared/services/app-config.service.d.ts +51 -0
- package/{src/Shared/services/global-error.handler.ts → Shared/services/global-error.handler.d.ts} +9 -11
- package/Shared/services/session.service.d.ts +46 -0
- package/Shared/shared.module.d.ts +14 -0
- package/fesm2022/cat-documents-ng.mjs +11405 -0
- package/fesm2022/cat-documents-ng.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/document/components/document-actions/document-actions.component.d.ts +78 -0
- package/lib/document/components/document-container/document-container.component.d.ts +162 -0
- package/lib/document/components/document-content-viewer/document-content-viewer.component.d.ts +291 -0
- package/lib/document/components/document-history/document-history.component.d.ts +160 -0
- package/lib/document/components/document-list/document-list.component.d.ts +299 -0
- package/lib/document/components/document-list-item/document-list-item.component.d.ts +28 -0
- package/lib/document/components/document-search/document-search.component.d.ts +77 -0
- package/lib/document/components/document-status/document-status.component.d.ts +24 -0
- package/lib/document/components/document-upload/document-upload.component.d.ts +321 -0
- package/lib/document/components/document-viewer/document-viewer.component.d.ts +137 -0
- package/lib/document/components/document-zoom-controls/document-zoom-controls.component.d.ts +33 -0
- package/lib/document/components/documents-menu/documents-menu.component.d.ts +110 -0
- package/{src/lib/document/components/folder-block/folder-block.component.ts → lib/document/components/folder-block/folder-block.component.d.ts} +12 -28
- package/lib/document/components/folder-container/folder-container.component.d.ts +162 -0
- package/lib/document/components/linked-document/linked-document.component.d.ts +39 -0
- package/lib/document/components/request-document/request-document.component.d.ts +69 -0
- package/lib/document/components/sidebar/sidebar.component.d.ts +109 -0
- package/lib/document/components/user-list/user-list.component.d.ts +34 -0
- package/lib/document/constant/DOCUMENT_HISTORY.d.ts +41 -0
- package/lib/document/directives/document.directive.d.ts +20 -0
- package/lib/document/directives/permission.directive.d.ts +38 -0
- package/lib/document/document.module.d.ts +60 -0
- package/{src/lib/document/models/document-alert.model.ts → lib/document/models/document-alert.model.d.ts} +4 -11
- package/lib/document/models/document-category.model.d.ts +24 -0
- package/lib/document/models/document-history.model.d.ts +94 -0
- package/lib/document/models/document-list-response.model.d.ts +33 -0
- package/lib/document/models/document-type.model.d.ts +37 -0
- package/lib/document/models/document.model.d.ts +44 -0
- package/{src/lib/document/models/folder.model.ts → lib/document/models/folder.model.d.ts} +4 -10
- package/lib/document/models/status-data.model.d.ts +27 -0
- package/lib/document/models/uploaded-file-response.model.d.ts +7 -0
- package/lib/document/models/user-list.model.d.ts +8 -0
- package/lib/document/services/csv-parser.service.d.ts +88 -0
- package/lib/document/services/document-actions.service.d.ts +48 -0
- package/lib/document/services/document-content-type.service.d.ts +85 -0
- package/lib/document/services/document-history-style.service.d.ts +34 -0
- package/lib/document/services/document-history.service.d.ts +42 -0
- package/lib/document/services/document-http.service.d.ts +179 -0
- package/lib/document/services/document-list.service.d.ts +74 -0
- package/lib/document/services/document-menu.service.d.ts +122 -0
- package/lib/document/services/document-scroll.service.d.ts +55 -0
- package/lib/document/services/document-table-builder.service.d.ts +38 -0
- package/lib/document/services/document-upload-business.service.d.ts +107 -0
- package/lib/document/services/document-upload-data.service.d.ts +40 -0
- package/lib/document/services/document-upload-form.service.d.ts +41 -0
- package/lib/document/services/document-upload.service.d.ts +99 -0
- package/lib/document/services/document-viewer.service.d.ts +97 -0
- package/lib/document/services/document-zoom.service.d.ts +81 -0
- package/lib/document/services/document.service.d.ts +161 -0
- package/lib/document/services/eml-parser.service.d.ts +116 -0
- package/lib/document/services/excel-parser.service.d.ts +169 -0
- package/lib/document/services/file-format.service.d.ts +34 -0
- package/lib/document/services/status-calculator.service.d.ts +20 -0
- package/lib/document/services/user-list.service.d.ts +29 -0
- package/lib/document/state/document.query.d.ts +243 -0
- package/{src/lib/document/state/document.service.ts → lib/document/state/document.service.d.ts} +15 -46
- package/lib/document/state/document.state.d.ts +61 -0
- package/lib/document/state/document.store.d.ts +56 -0
- package/package.json +11 -5
- package/{src/public-api.ts → public-api.d.ts} +0 -4
- package/ng-package.json +0 -10
- package/src/Shared/components/confirmation-dialog/confirmation-dialog.component.html +0 -3
- package/src/Shared/components/confirmation-dialog/confirmation-dialog.component.scss +0 -13
- package/src/Shared/components/confirmation-dialog/confirmation-dialog.component.spec.ts +0 -70
- package/src/Shared/components/confirmation-dialog/confirmation-dialog.component.ts +0 -133
- package/src/Shared/components/table-primary/table-primary.component.html +0 -66
- package/src/Shared/components/table-primary/table-primary.component.scss +0 -227
- package/src/Shared/components/table-primary/table-primary.component.spec.ts +0 -23
- package/src/Shared/components/table-primary/table-primary.component.ts +0 -143
- package/src/Shared/components/table-primary/table-primary.model.ts +0 -21
- package/src/Shared/constant/ERROR.ts +0 -55
- package/src/Shared/constant/PERMISSIONS.ts +0 -17
- package/src/Shared/constant/SHARED.ts +0 -936
- package/src/Shared/services/app-config.service.spec.ts +0 -19
- package/src/Shared/services/app-config.service.ts +0 -73
- package/src/Shared/services/session.service.spec.ts +0 -16
- package/src/Shared/services/session.service.ts +0 -76
- package/src/Shared/shared.module.ts +0 -25
- package/src/lib/document/components/csv-viewer/csv-viewer.component.ts +0 -1
- package/src/lib/document/components/document-actions/document-actions.component.html +0 -59
- package/src/lib/document/components/document-actions/document-actions.component.scss +0 -362
- package/src/lib/document/components/document-actions/document-actions.component.spec.ts +0 -297
- package/src/lib/document/components/document-actions/document-actions.component.ts +0 -163
- package/src/lib/document/components/document-container/document-container.component.html +0 -36
- package/src/lib/document/components/document-container/document-container.component.scss +0 -144
- package/src/lib/document/components/document-container/document-container.component.spec.ts +0 -110
- package/src/lib/document/components/document-container/document-container.component.ts +0 -363
- package/src/lib/document/components/document-content-viewer/document-content-viewer.component.html +0 -332
- package/src/lib/document/components/document-content-viewer/document-content-viewer.component.scss +0 -1877
- package/src/lib/document/components/document-content-viewer/document-content-viewer.component.spec.ts +0 -258
- package/src/lib/document/components/document-content-viewer/document-content-viewer.component.ts +0 -664
- package/src/lib/document/components/document-history/document-history.component.html +0 -96
- package/src/lib/document/components/document-history/document-history.component.scss +0 -392
- package/src/lib/document/components/document-history/document-history.component.spec.ts +0 -93
- package/src/lib/document/components/document-history/document-history.component.ts +0 -373
- package/src/lib/document/components/document-list/document-list.component.html +0 -46
- package/src/lib/document/components/document-list/document-list.component.scss +0 -513
- package/src/lib/document/components/document-list/document-list.component.spec.ts +0 -486
- package/src/lib/document/components/document-list/document-list.component.ts +0 -682
- package/src/lib/document/components/document-list-item/document-list-item.component.html +0 -36
- package/src/lib/document/components/document-list-item/document-list-item.component.scss +0 -34
- package/src/lib/document/components/document-list-item/document-list-item.component.spec.ts +0 -75
- package/src/lib/document/components/document-list-item/document-list-item.component.ts +0 -40
- package/src/lib/document/components/document-search/document-search.component.html +0 -64
- package/src/lib/document/components/document-search/document-search.component.scss +0 -206
- package/src/lib/document/components/document-search/document-search.component.spec.ts +0 -82
- package/src/lib/document/components/document-search/document-search.component.ts +0 -163
- package/src/lib/document/components/document-status/document-status.component.html +0 -31
- package/src/lib/document/components/document-status/document-status.component.scss +0 -192
- package/src/lib/document/components/document-status/document-status.component.spec.ts +0 -23
- package/src/lib/document/components/document-status/document-status.component.ts +0 -87
- package/src/lib/document/components/document-upload/document-upload.component.html +0 -160
- package/src/lib/document/components/document-upload/document-upload.component.scss +0 -235
- package/src/lib/document/components/document-upload/document-upload.component.spec.ts +0 -95
- package/src/lib/document/components/document-upload/document-upload.component.ts +0 -668
- package/src/lib/document/components/document-viewer/document-viewer.component.html +0 -50
- package/src/lib/document/components/document-viewer/document-viewer.component.scss +0 -187
- package/src/lib/document/components/document-viewer/document-viewer.component.spec.ts +0 -79
- package/src/lib/document/components/document-viewer/document-viewer.component.ts +0 -261
- package/src/lib/document/components/document-zoom-controls/document-zoom-controls.component.html +0 -48
- package/src/lib/document/components/document-zoom-controls/document-zoom-controls.component.scss +0 -320
- package/src/lib/document/components/document-zoom-controls/document-zoom-controls.component.spec.ts +0 -59
- package/src/lib/document/components/document-zoom-controls/document-zoom-controls.component.ts +0 -150
- package/src/lib/document/components/documents-menu/documents-menu.component.html +0 -44
- package/src/lib/document/components/documents-menu/documents-menu.component.scss +0 -363
- package/src/lib/document/components/documents-menu/documents-menu.component.spec.ts +0 -23
- package/src/lib/document/components/documents-menu/documents-menu.component.ts +0 -316
- package/src/lib/document/components/folder-block/folder-block.component.html +0 -46
- package/src/lib/document/components/folder-block/folder-block.component.scss +0 -9
- package/src/lib/document/components/folder-block/folder-block.component.spec.ts +0 -70
- package/src/lib/document/components/folder-container/folder-container.component.html +0 -56
- package/src/lib/document/components/folder-container/folder-container.component.scss +0 -20
- package/src/lib/document/components/folder-container/folder-container.component.spec.ts +0 -27
- package/src/lib/document/components/folder-container/folder-container.component.ts +0 -328
- package/src/lib/document/components/linked-document/linked-document.component.html +0 -23
- package/src/lib/document/components/linked-document/linked-document.component.scss +0 -10
- package/src/lib/document/components/linked-document/linked-document.component.spec.ts +0 -61
- package/src/lib/document/components/linked-document/linked-document.component.ts +0 -49
- package/src/lib/document/components/request-document/request-document.component.html +0 -86
- package/src/lib/document/components/request-document/request-document.component.scss +0 -16
- package/src/lib/document/components/request-document/request-document.component.ts +0 -278
- package/src/lib/document/components/sidebar/sidebar.component.html +0 -75
- package/src/lib/document/components/sidebar/sidebar.component.scss +0 -157
- package/src/lib/document/components/sidebar/sidebar.component.spec.ts +0 -114
- package/src/lib/document/components/sidebar/sidebar.component.ts +0 -223
- package/src/lib/document/components/user-list/user-list.component.html +0 -33
- package/src/lib/document/components/user-list/user-list.component.scss +0 -118
- package/src/lib/document/components/user-list/user-list.component.spec.ts +0 -23
- package/src/lib/document/components/user-list/user-list.component.ts +0 -181
- package/src/lib/document/constant/DOCUMENT_HISTORY.ts +0 -52
- package/src/lib/document/directives/document.directive.ts +0 -32
- package/src/lib/document/directives/permission.directive.spec.ts +0 -0
- package/src/lib/document/directives/permission.directive.ts +0 -72
- package/src/lib/document/document.module.ts +0 -351
- package/src/lib/document/models/document-category.model.ts +0 -30
- package/src/lib/document/models/document-history.model.ts +0 -109
- package/src/lib/document/models/document-list-response.model.ts +0 -37
- package/src/lib/document/models/document-type.model.ts +0 -44
- package/src/lib/document/models/document.model.ts +0 -53
- package/src/lib/document/models/status-data.model.ts +0 -31
- package/src/lib/document/models/uploaded-file-response.model.ts +0 -7
- package/src/lib/document/models/user-list.model.ts +0 -10
- package/src/lib/document/services/csv-parser.service.spec.ts +0 -97
- package/src/lib/document/services/csv-parser.service.ts +0 -303
- package/src/lib/document/services/document-actions.service.ts +0 -125
- package/src/lib/document/services/document-content-type.service.ts +0 -193
- package/src/lib/document/services/document-history-style.service.ts +0 -138
- package/src/lib/document/services/document-history.service.ts +0 -129
- package/src/lib/document/services/document-http.service.spec.ts +0 -119
- package/src/lib/document/services/document-http.service.ts +0 -497
- package/src/lib/document/services/document-list.service.ts +0 -195
- package/src/lib/document/services/document-menu.service.ts +0 -277
- package/src/lib/document/services/document-scroll.service.ts +0 -138
- package/src/lib/document/services/document-severity.service.ts +0 -98
- package/src/lib/document/services/document-table-builder.service.ts +0 -82
- package/src/lib/document/services/document-upload-business.service.ts +0 -326
- package/src/lib/document/services/document-upload-data.service.ts +0 -82
- package/src/lib/document/services/document-upload-form.service.ts +0 -149
- package/src/lib/document/services/document-upload.service.spec.ts +0 -99
- package/src/lib/document/services/document-upload.service.ts +0 -209
- package/src/lib/document/services/document-viewer.service.ts +0 -279
- package/src/lib/document/services/document-zoom.service.spec.ts +0 -56
- package/src/lib/document/services/document-zoom.service.ts +0 -164
- package/src/lib/document/services/document.service.ts +0 -356
- package/src/lib/document/services/eml-parser.service.ts +0 -444
- package/src/lib/document/services/excel-parser.service.spec.ts +0 -66
- package/src/lib/document/services/excel-parser.service.ts +0 -483
- package/src/lib/document/services/file-format.service.spec.ts +0 -16
- package/src/lib/document/services/file-format.service.ts +0 -63
- package/src/lib/document/services/status-calculator.service.ts +0 -44
- package/src/lib/document/services/user-list.service.ts +0 -77
- package/src/lib/document/state/document.query.ts +0 -378
- package/src/lib/document/state/document.state.ts +0 -100
- package/src/lib/document/state/document.store.ts +0 -200
- package/tsconfig.lib.json +0 -15
- package/tsconfig.lib.prod.json +0 -11
- package/tsconfig.spec.json +0 -15
|
@@ -4,126 +4,120 @@
|
|
|
4
4
|
* @class URLS
|
|
5
5
|
* @typedef {URLS}
|
|
6
6
|
*/
|
|
7
|
-
export class URLS {
|
|
7
|
+
export declare class URLS {
|
|
8
8
|
/**
|
|
9
9
|
* The URL to fetch the application configuration file.
|
|
10
10
|
* This JSON file typically contains settings and options for the application.
|
|
11
11
|
* @static
|
|
12
12
|
* @type {string}
|
|
13
13
|
*/
|
|
14
|
-
static CONFIGFILEURL
|
|
15
|
-
|
|
14
|
+
static CONFIGFILEURL: string;
|
|
16
15
|
/**
|
|
17
16
|
* The URL endpoint for document uploads.
|
|
18
17
|
* Used to send documents to the server for storage or processing.
|
|
19
18
|
* @static
|
|
20
19
|
* @type {string}
|
|
21
20
|
*/
|
|
22
|
-
static DOCUMENT_UPLOAD_FILE
|
|
21
|
+
static DOCUMENT_UPLOAD_FILE: string;
|
|
23
22
|
/**
|
|
24
23
|
* The URL endpoint for document uploads.
|
|
25
24
|
* Used to send documents to the server for storage or processing.
|
|
26
25
|
* @static
|
|
27
26
|
* @type {string}
|
|
28
27
|
*/
|
|
29
|
-
static DOCUMENT_UPLOAD
|
|
28
|
+
static DOCUMENT_UPLOAD: string;
|
|
30
29
|
/**
|
|
31
30
|
* The URL endpoint for document uploads.
|
|
32
31
|
* Used to send documents to the server for storage or processing.
|
|
33
32
|
* @static
|
|
34
33
|
* @type {string}
|
|
35
34
|
*/
|
|
36
|
-
static DOCUMENTS
|
|
35
|
+
static DOCUMENTS: string;
|
|
37
36
|
/**
|
|
38
37
|
* The URL endpoint for document uploads.
|
|
39
38
|
* Used to send documents to the server for storage or processing.
|
|
40
39
|
* @static
|
|
41
40
|
* @type {string}
|
|
42
41
|
*/
|
|
43
|
-
static DOCUMENTS_CATAGORIES
|
|
44
|
-
|
|
42
|
+
static DOCUMENTS_CATAGORIES: string;
|
|
45
43
|
/**
|
|
46
44
|
* The query parameter to pass a context ID in API requests.
|
|
47
45
|
* Used to specify the context for certain API calls, such as filtering or scoping the request.
|
|
48
46
|
* @static
|
|
49
47
|
* @type {string}
|
|
50
48
|
*/
|
|
51
|
-
static CONTEXT
|
|
52
|
-
|
|
49
|
+
static CONTEXT: string;
|
|
53
50
|
/**
|
|
54
51
|
* The query parameter to pass a document ID in API requests.
|
|
55
52
|
* @static
|
|
56
53
|
* @type {string}
|
|
57
54
|
*/
|
|
58
|
-
static DOCUMENT_TYPES
|
|
59
|
-
static ALIAS_NAME
|
|
55
|
+
static DOCUMENT_TYPES: string;
|
|
56
|
+
static ALIAS_NAME: string;
|
|
60
57
|
/**
|
|
61
58
|
* The URL endpoint for getting categories by source (Applicant/Application).
|
|
62
59
|
* Used to fetch document categories based on the selected source.
|
|
63
60
|
* @static
|
|
64
61
|
* @type {string}
|
|
65
62
|
*/
|
|
66
|
-
static GET_CATEGORIES_BY_SOURCE
|
|
63
|
+
static GET_CATEGORIES_BY_SOURCE: string;
|
|
67
64
|
/**
|
|
68
65
|
* The URL endpoint for getting document types by category ID.
|
|
69
66
|
* Used to fetch document types based on the selected category.
|
|
70
67
|
* @static
|
|
71
68
|
* @type {string}
|
|
72
69
|
*/
|
|
73
|
-
static GET_DOCUMENT_TYPES_BY_CATEGORY
|
|
70
|
+
static GET_DOCUMENT_TYPES_BY_CATEGORY: string;
|
|
74
71
|
/**
|
|
75
72
|
* The URL endpoint for saving document upload data.
|
|
76
73
|
* Used to save the complete document upload information.
|
|
77
74
|
* @static
|
|
78
75
|
* @type {string}
|
|
79
76
|
*/
|
|
80
|
-
static SAVE_DOCUMENT_UPLOAD
|
|
77
|
+
static SAVE_DOCUMENT_UPLOAD: string;
|
|
81
78
|
/**
|
|
82
79
|
* The query parameter to pass a context ID in API requests.
|
|
83
80
|
* @static
|
|
84
81
|
* @type {string}
|
|
85
82
|
*/
|
|
86
|
-
static FOLDERS
|
|
83
|
+
static FOLDERS: string;
|
|
87
84
|
/**
|
|
88
85
|
* The query parameter to pass a document ID in API requests.
|
|
89
86
|
* @static
|
|
90
87
|
* @type {string}
|
|
91
88
|
*/
|
|
92
|
-
static ALERT_BY_DOCUMENT_ID
|
|
89
|
+
static ALERT_BY_DOCUMENT_ID: string;
|
|
93
90
|
/**
|
|
94
91
|
* The query parameter to pass a document ID in API requests.
|
|
95
92
|
* @static
|
|
96
93
|
* @type {string}
|
|
97
94
|
*/
|
|
98
|
-
static PARENT_DOCUMENT_TYPE_ID
|
|
95
|
+
static PARENT_DOCUMENT_TYPE_ID: string;
|
|
99
96
|
/**
|
|
100
97
|
* The query parameter to pass a document ID in API requests.
|
|
101
98
|
* @static
|
|
102
99
|
* @type {string}
|
|
103
100
|
*/
|
|
104
|
-
static USERLIST
|
|
105
|
-
|
|
101
|
+
static USERLIST: string;
|
|
106
102
|
/**
|
|
107
103
|
* The URL endpoint for getting document status count by context ID.
|
|
108
104
|
* Used to fetch status data with applicationId, contextId, and category parameters.
|
|
109
105
|
* @static
|
|
110
106
|
* @type {string}
|
|
111
107
|
*/
|
|
112
|
-
static STATUS_DOCUMENT_COUNT
|
|
113
|
-
|
|
108
|
+
static STATUS_DOCUMENT_COUNT: string;
|
|
114
109
|
/**
|
|
115
110
|
* The query parameter to pass a context ID in API requests.
|
|
116
111
|
* Used to specify the context for certain API calls, such as filtering or scoping the request.
|
|
117
112
|
* @static
|
|
118
113
|
* @type {string}
|
|
119
114
|
*/
|
|
120
|
-
|
|
121
|
-
static
|
|
122
|
-
static
|
|
123
|
-
static
|
|
124
|
-
static
|
|
125
|
-
static
|
|
126
|
-
static
|
|
127
|
-
static
|
|
128
|
-
static VALUATION_REPORT = "valuationReport/";
|
|
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;
|
|
129
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
|
+
}
|
package/{src/Shared/services/global-error.handler.ts → Shared/services/global-error.handler.d.ts}
RENAMED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { ErrorHandler,
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { ErrorHandler, Injector } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
4
3
|
/**
|
|
5
4
|
* GlobalErrorHandler is a custom error handler that implements the ErrorHandler interface.
|
|
6
5
|
* It is used to handle both HTTP errors and other types of errors globally in the application.
|
|
@@ -8,22 +7,21 @@ import { HttpErrorResponse } from '@angular/common/http';
|
|
|
8
7
|
* @implements {ErrorHandler}
|
|
9
8
|
* @decorator {Injectable}
|
|
10
9
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
export declare class GlobalErrorHandler implements ErrorHandler {
|
|
11
|
+
private injector;
|
|
13
12
|
/**
|
|
14
13
|
* Creates an instance of GlobalErrorHandler.
|
|
15
14
|
* @constructor
|
|
16
15
|
* @param {Injector} injector - The Angular injector used to get instances of services.
|
|
17
16
|
*/
|
|
18
|
-
constructor(
|
|
19
|
-
|
|
17
|
+
constructor(injector: Injector);
|
|
20
18
|
/**
|
|
21
19
|
* Handles errors globally in the application.
|
|
22
|
-
*
|
|
20
|
+
*
|
|
23
21
|
* @param {any} error - The error object that needs to be handled.
|
|
24
22
|
* @returns {void}
|
|
25
23
|
*/
|
|
26
|
-
handleError(error: any): void
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
handleError(error: any): void;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GlobalErrorHandler, never>;
|
|
26
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GlobalErrorHandler>;
|
|
29
27
|
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { Router } from '@angular/router';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Service for managing user session details.
|
|
5
|
+
* @class SessionService
|
|
6
|
+
* @typedef {SessionService}
|
|
7
|
+
*/
|
|
8
|
+
export declare class SessionService {
|
|
9
|
+
router: Router;
|
|
10
|
+
/**
|
|
11
|
+
* Creates an instance of SessionService.
|
|
12
|
+
* @param {Router} router - Angular Router for navigation.
|
|
13
|
+
*/
|
|
14
|
+
constructor(router: Router);
|
|
15
|
+
/**
|
|
16
|
+
* Retrieves the current user's role from local storage.
|
|
17
|
+
* @returns {string | null} The user's role, or null if not found.
|
|
18
|
+
*/
|
|
19
|
+
getUserRole(): string | null;
|
|
20
|
+
/**
|
|
21
|
+
* Stores the user session data in local storage.
|
|
22
|
+
* @param {any} data - The session data to store.
|
|
23
|
+
*/
|
|
24
|
+
setUserSession(data: any): void;
|
|
25
|
+
/**
|
|
26
|
+
* Retrieves the stored user session data.
|
|
27
|
+
* @returns {any | null} The parsed session data, or null if not found.
|
|
28
|
+
*/
|
|
29
|
+
getUserSession(): any | null;
|
|
30
|
+
/**
|
|
31
|
+
* Retrieves the user's permissions from the stored session data.
|
|
32
|
+
* @returns {any | null} The user's permissions, or null if not found.
|
|
33
|
+
*/
|
|
34
|
+
getUserPermissions(): any | null;
|
|
35
|
+
/**
|
|
36
|
+
* Retrieves the session ID from the stored session data.
|
|
37
|
+
* @returns {any | null} The session ID, or null if not found.
|
|
38
|
+
*/
|
|
39
|
+
getSessionID(): any | null;
|
|
40
|
+
/**
|
|
41
|
+
* Clears all stored session data from local storage.
|
|
42
|
+
*/
|
|
43
|
+
clearSession(): void;
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SessionService, never>;
|
|
45
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SessionService>;
|
|
46
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./components/table-primary/table-primary.component";
|
|
3
|
+
import * as i2 from "../lib/document/directives/permission.directive";
|
|
4
|
+
import * as i3 from "./components/confirmation-dialog/confirmation-dialog.component";
|
|
5
|
+
import * as i4 from "@angular/common";
|
|
6
|
+
import * as i5 from "primeng/table";
|
|
7
|
+
import * as i6 from "primeng/button";
|
|
8
|
+
import * as i7 from "primeng/ripple";
|
|
9
|
+
import * as i8 from "primeng/confirmdialog";
|
|
10
|
+
export declare class SharedModule {
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SharedModule, never>;
|
|
12
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, [typeof i1.TablePrimaryComponent, typeof i2.HasPermissionDirective, typeof i3.ConfirmationDialogComponent], [typeof i4.CommonModule, typeof i5.TableModule, typeof i6.ButtonModule, typeof i7.RippleModule, typeof i8.ConfirmDialogModule], [typeof i1.TablePrimaryComponent, typeof i2.HasPermissionDirective, typeof i3.ConfirmationDialogComponent, typeof i8.ConfirmDialogModule]>;
|
|
13
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SharedModule>;
|
|
14
|
+
}
|