cat-qw-lib 2.1.47 → 2.1.50
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
CHANGED
|
@@ -496,14 +496,27 @@ const QUEUE_RECORD_TABLE_COLUMN_WIDTH_LIST = {
|
|
|
496
496
|
const FIELD_DISPLAY_NAMES = {
|
|
497
497
|
riskRating: 'Risk Rating',
|
|
498
498
|
appId: 'App. ID',
|
|
499
|
+
applicants: 'Company & Applicant(s)',
|
|
499
500
|
brokerName: 'Broker',
|
|
500
501
|
finance: 'Finance Amount',
|
|
501
|
-
applicants: 'Company & Applicant(s)',
|
|
502
502
|
securityAddress: 'Security',
|
|
503
503
|
pending: 'Pending',
|
|
504
504
|
lending: 'Type',
|
|
505
505
|
tasks: 'Tasks'
|
|
506
506
|
};
|
|
507
|
+
// ...existing code...
|
|
508
|
+
const QUEUE_RECORD_TABLE_COLUMN_ORDER = [
|
|
509
|
+
'riskRating',
|
|
510
|
+
'appId', // App. ID
|
|
511
|
+
'applicants', // Company & Applicant(s)
|
|
512
|
+
'brokerName',
|
|
513
|
+
'finance',
|
|
514
|
+
'securityAddress',
|
|
515
|
+
'pending',
|
|
516
|
+
'lending',
|
|
517
|
+
'tasks'
|
|
518
|
+
];
|
|
519
|
+
// ...existing code...
|
|
507
520
|
|
|
508
521
|
class SidebarComponent {
|
|
509
522
|
renderer;
|
|
@@ -6233,8 +6246,8 @@ class QueueRecordTableBuilderService extends TableBuilder {
|
|
|
6233
6246
|
SHARED.BROKERCOMPANY_NAME
|
|
6234
6247
|
]; // Fields to exclude from table columns
|
|
6235
6248
|
// Get all fields from the first record, excluding specified fields
|
|
6236
|
-
let availableFields =
|
|
6237
|
-
|
|
6249
|
+
let availableFields = QUEUE_RECORD_TABLE_COLUMN_ORDER
|
|
6250
|
+
.filter(field => !excludedFields.includes(field) && firstRecord.hasOwnProperty(field));
|
|
6238
6251
|
const columnWidths = QUEUE_RECORD_TABLE_COLUMN_WIDTH_LIST;
|
|
6239
6252
|
table.records = records.map((apiRecord, index) => {
|
|
6240
6253
|
const record = {
|
|
@@ -6394,17 +6407,6 @@ class QueueRecordTableBuilderService extends TableBuilder {
|
|
|
6394
6407
|
table.isSortingAllow = SHARED.TRUE;
|
|
6395
6408
|
return table;
|
|
6396
6409
|
}
|
|
6397
|
-
reorderBrokerColumn(fields) {
|
|
6398
|
-
const companyIdx = fields.indexOf(SHARED.COMPANY_NAME);
|
|
6399
|
-
const applicantsIdx = fields.indexOf(SHARED.APPLICANTS);
|
|
6400
|
-
const brokerIdx = fields.indexOf(SHARED.BROKER_NAME);
|
|
6401
|
-
if (brokerIdx !== -1) {
|
|
6402
|
-
const [brokerField] = fields.splice(brokerIdx, 1);
|
|
6403
|
-
let insertIdx = Math.max(companyIdx, applicantsIdx) + 1;
|
|
6404
|
-
fields.splice(insertIdx, 0, brokerField);
|
|
6405
|
-
}
|
|
6406
|
-
return fields;
|
|
6407
|
-
}
|
|
6408
6410
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: QueueRecordTableBuilderService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
6409
6411
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: QueueRecordTableBuilderService, providedIn: 'root' });
|
|
6410
6412
|
}
|