cat-qw-lib 2.3.28 → 2.3.30
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/fesm2022/cat-qw-lib.mjs +317 -63
- package/fesm2022/cat-qw-lib.mjs.map +1 -1
- package/lib/queue/services/queue-record-table-builder.service.d.ts +12 -0
- package/lib/shared/constant/SHARED.d.ts +7 -0
- package/lib/shared/table-secondary/components/table-secondary.component.d.ts +23 -12
- package/package.json +1 -1
- package/src/assets/config/api.config.json +0 -22
|
@@ -6,6 +6,18 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
*/
|
|
7
7
|
export declare class QueueRecordTableBuilderService extends TableBuilder {
|
|
8
8
|
private columnStyles;
|
|
9
|
+
private deriveChipVariantFromDays;
|
|
10
|
+
/**
|
|
11
|
+
* Maps valuation status to icon and color configuration
|
|
12
|
+
*/
|
|
13
|
+
private getValuationStatusConfig;
|
|
14
|
+
/**
|
|
15
|
+
* Truncates text to specified length with ellipsis
|
|
16
|
+
* @param {string} text - Text to truncate
|
|
17
|
+
* @param {number} maxLength - Maximum length before truncation
|
|
18
|
+
* @returns {string} Truncated text
|
|
19
|
+
*/
|
|
20
|
+
private truncateText;
|
|
9
21
|
buildSecondaryTable(records: any[], headerWidths?: {
|
|
10
22
|
[key: string]: string;
|
|
11
23
|
}, editPermission?: string, deletePermission?: string): TableSecondaryModel;
|
|
@@ -11,6 +11,8 @@ export declare class SHARED {
|
|
|
11
11
|
static SUCCESS: string;
|
|
12
12
|
static WARNING: string;
|
|
13
13
|
static ERROR: string;
|
|
14
|
+
static DEFAULT: string;
|
|
15
|
+
static VULNERABLE: string;
|
|
14
16
|
static ERROR_MESSAGE: string;
|
|
15
17
|
static SUCCESS_MESSAGE: string;
|
|
16
18
|
static DICTIONARY: string;
|
|
@@ -117,6 +119,9 @@ export declare class SHARED {
|
|
|
117
119
|
static APPLICANTS: string;
|
|
118
120
|
static BROKER_NAME: string;
|
|
119
121
|
static SECURITY_ADDRESS: string;
|
|
122
|
+
static SLA: string;
|
|
123
|
+
static FINANCE: string;
|
|
124
|
+
static VALUATION_STATUS: string;
|
|
120
125
|
static TASKS: string;
|
|
121
126
|
static TASK_BROKER_LABEL: string;
|
|
122
127
|
static TASK_UNDERWRITER_LABEL: string;
|
|
@@ -282,6 +287,8 @@ export declare const QUEUE_RECORD_TABLE_COLUMN_WIDTH_LIST: {
|
|
|
282
287
|
securityAddress: string;
|
|
283
288
|
applicants: string;
|
|
284
289
|
finance: string;
|
|
290
|
+
valuationStatus: string;
|
|
291
|
+
sla: string;
|
|
285
292
|
appId: string;
|
|
286
293
|
tasks: string;
|
|
287
294
|
};
|
|
@@ -64,6 +64,7 @@ export declare class TableSecondaryComponent implements OnInit, OnChanges, OnDes
|
|
|
64
64
|
allQueueList: any;
|
|
65
65
|
selectedQueueName: string;
|
|
66
66
|
columnStyles: any;
|
|
67
|
+
private expressionCache;
|
|
67
68
|
constructor(_router: Router, service: BaseService<any>, sessionService: SessionService, baseQuery: BaseQuery<any>, baseStore: BaseStore<any>, queueBusinessService: QueueBusinessService, queueQuery: QueueQuery);
|
|
68
69
|
/**
|
|
69
70
|
* Lifecycle hook that is called after data-bound properties are initialized.
|
|
@@ -98,22 +99,12 @@ export declare class TableSecondaryComponent implements OnInit, OnChanges, OnDes
|
|
|
98
99
|
handleEditClick(id: number): void;
|
|
99
100
|
get isAllCurrentPageSelected(): boolean;
|
|
100
101
|
handleSelectAllRowData(checked: boolean): void;
|
|
101
|
-
/**
|
|
102
|
-
* Logs row data intended for editing.
|
|
103
|
-
* @param {any} rowData - The data of the row to edit.
|
|
104
|
-
*/
|
|
105
|
-
editRow(rowData: any): void;
|
|
106
102
|
/**
|
|
107
103
|
* Handles the deletion of a row by emitting the row data and preventing event propagation.
|
|
108
104
|
* @param {Event} event - The DOM event triggered by the delete action.
|
|
109
105
|
* @param {any} rowData - The data object of the row to be deleted.
|
|
110
106
|
*/
|
|
111
107
|
deleteRow(event: Event, rowData: any): void;
|
|
112
|
-
/**
|
|
113
|
-
* Logs row data intended for viewing.
|
|
114
|
-
* @param {any} rowData - The data of the row to view.
|
|
115
|
-
*/
|
|
116
|
-
viewRow(rowData: any): void;
|
|
117
108
|
/**
|
|
118
109
|
* Returns CSS class for a table cell based on its content.
|
|
119
110
|
* @param {any} col - The column definition.
|
|
@@ -168,19 +159,39 @@ export declare class TableSecondaryComponent implements OnInit, OnChanges, OnDes
|
|
|
168
159
|
isTaskItemsArray(val: any): boolean;
|
|
169
160
|
shouldShowValue(col: any, rowData: any): boolean;
|
|
170
161
|
/**
|
|
171
|
-
*
|
|
162
|
+
* Memoized expression evaluator - compiles and caches Function objects
|
|
163
|
+
* @param {string} expression - The expression to evaluate
|
|
164
|
+
* @param {any} rowData - The row data to use in evaluation
|
|
165
|
+
* @returns {any} The evaluated result
|
|
166
|
+
*/
|
|
167
|
+
private evaluateExpression;
|
|
168
|
+
/**
|
|
169
|
+
* Evaluates ngClass expression for dynamic styling with memoization
|
|
172
170
|
* @param {string} expression - The ngClass expression to evaluate
|
|
173
171
|
* @param {any} rowData - The row data to use in evaluation
|
|
174
172
|
* @returns {string} The evaluated CSS classes
|
|
175
173
|
*/
|
|
176
174
|
evaluateNgClass(expression: string, rowData: any): string;
|
|
177
175
|
/**
|
|
178
|
-
* Evaluates ngStyle expression for dynamic inline styles
|
|
176
|
+
* Evaluates ngStyle expression for dynamic inline styles with memoization
|
|
179
177
|
* @param {string} expression - The ngStyle expression to evaluate
|
|
180
178
|
* @param {any} rowData - The row data to use in evaluation
|
|
181
179
|
* @returns {any} The evaluated style object
|
|
182
180
|
*/
|
|
183
181
|
evaluateNgStyle(expression: string, rowData: any): any;
|
|
182
|
+
getLine1DisplayClasses(col: any, rowData: any): string;
|
|
183
|
+
private shouldRenderChip;
|
|
184
|
+
private getChipVariantClass;
|
|
185
|
+
private resolveChipVariant;
|
|
186
|
+
private evaluateGenericExpression;
|
|
187
|
+
/**
|
|
188
|
+
* Generic method to get column class (container or text) from config
|
|
189
|
+
* @param {string} columnName - The column name (e.g., 'lending', 'riskRating')
|
|
190
|
+
* @param {string} value - The value to evaluate
|
|
191
|
+
* @param {'container' | 'text'} type - The type of class to retrieve
|
|
192
|
+
* @returns {string} The evaluated CSS class
|
|
193
|
+
*/
|
|
194
|
+
getColumnClass(columnName: string, value: string, type: 'container' | 'text'): string;
|
|
184
195
|
getTypeContainerClass(typeValue: string): string;
|
|
185
196
|
getTypeTextClass(typeValue: string): string;
|
|
186
197
|
getRiskContainerClass(riskValue: string): string;
|
package/package.json
CHANGED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"catQwUrl": "http://localhost:4080/api/",
|
|
3
|
-
"apiUrl": "http://localhost:3300/api/",
|
|
4
|
-
"swaggerUrl": "https://gatehouse-qw-qa-g9ffb0ggedhjacf6.uksouth-01.azurewebsites.net/api-docs/",
|
|
5
|
-
"adminEmail": "neeraj.kumar@catura.co.uk",
|
|
6
|
-
"baseUrl": "https://gatehouse-interact-qa-h9gjhwb0behtepgu.uksouth-01.azurewebsites.net",
|
|
7
|
-
"interactBaseApi": "https://gatehouse-interact-qa-h9gjhwb0behtepgu.uksouth-01.azurewebsites.net/api/",
|
|
8
|
-
"actionBaseApi": "https://gatehouse-qw-qa-g9ffb0ggedhjacf6.uksouth-01.azurewebsites.net/api/",
|
|
9
|
-
"documentApiUrl": "https://gatehouse-documents-qa-bgavezbwe9b6e9h6.uksouth-01.azurewebsites.net/api/",
|
|
10
|
-
"adminPhoneNumber": "+447380300545",
|
|
11
|
-
"gsvKey": "AIzaSyDWwq79YYgWvSiAizyUz4aovHvSY-j3IfY",
|
|
12
|
-
"visibilityOption": {
|
|
13
|
-
"isRationalVisible": false,
|
|
14
|
-
"isChecklistVisible": false,
|
|
15
|
-
"isAudit": false,
|
|
16
|
-
"isConversation": true,
|
|
17
|
-
"isOverview": true,
|
|
18
|
-
"isDocuments": true
|
|
19
|
-
},
|
|
20
|
-
"env": "qa",
|
|
21
|
-
"test":"test"
|
|
22
|
-
}
|