cat-qw-lib 2.1.47 → 2.1.49
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,9 +496,9 @@ 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',
|
|
@@ -6229,12 +6229,10 @@ class QueueRecordTableBuilderService extends TableBuilder {
|
|
|
6229
6229
|
SHARED.ASSIGNED_TO,
|
|
6230
6230
|
SHARED.TASK_COMPLETION_PERCENT,
|
|
6231
6231
|
SHARED.RISK_RATING,
|
|
6232
|
-
SHARED.LENDING
|
|
6233
|
-
SHARED.BROKERCOMPANY_NAME
|
|
6232
|
+
SHARED.LENDING
|
|
6234
6233
|
]; // Fields to exclude from table columns
|
|
6235
6234
|
// Get all fields from the first record, excluding specified fields
|
|
6236
|
-
|
|
6237
|
-
availableFields = this.reorderBrokerColumn(availableFields);
|
|
6235
|
+
const availableFields = Object.keys(firstRecord).filter(field => !excludedFields.includes(field));
|
|
6238
6236
|
const columnWidths = QUEUE_RECORD_TABLE_COLUMN_WIDTH_LIST;
|
|
6239
6237
|
table.records = records.map((apiRecord, index) => {
|
|
6240
6238
|
const record = {
|
|
@@ -6394,17 +6392,6 @@ class QueueRecordTableBuilderService extends TableBuilder {
|
|
|
6394
6392
|
table.isSortingAllow = SHARED.TRUE;
|
|
6395
6393
|
return table;
|
|
6396
6394
|
}
|
|
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
6395
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: QueueRecordTableBuilderService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
6409
6396
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.5", ngImport: i0, type: QueueRecordTableBuilderService, providedIn: 'root' });
|
|
6410
6397
|
}
|