cat-qw-lib 2.6.3 → 2.6.7

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.
@@ -496,12 +496,12 @@ const queuePriorityOrder = ["All Applications", "Assigned To Me", "Unassigned"];
496
496
  const QUEUE_RECORD_TABLE_COLUMN_WIDTH_LIST = {
497
497
  brokerName: 'w-3',
498
498
  securityAddress: 'w-3',
499
- applicants: 'w-3',
500
- finance: 'w-3',
499
+ applicants: 'w-4',
500
+ finance: 'w-2',
501
501
  valuationStatus: 'w-2',
502
502
  sla: 'w-3',
503
- referredDate: 'w-3',
504
- appId: 'w-2',
503
+ referredDate: 'w-2',
504
+ appId: 'w-3',
505
505
  tasks: 'w-2'
506
506
  };
507
507
  const FIELD_DISPLAY_NAMES = {
@@ -2324,11 +2324,9 @@ var columnStyles = {
2324
2324
  line2NgClass: "text-gray-700 text-sm"
2325
2325
  },
2326
2326
  referredDate: {
2327
- isShowSortIcon: true,
2328
- line1IsChip: true,
2329
- line1ChipVariant: "rowData['referredDate']?.chipVariant || ''",
2330
- line1NgClass: "",
2331
- line2NgClass: "text-gray-700 text-sm"
2327
+ containerNgClass: "rowData['referredDate'] && rowData['referredDate'] !== '' ? 'queue-chip queue-chip--neutral' : ''",
2328
+ textNgClass: "",
2329
+ isShowSortIcon: true
2332
2330
  },
2333
2331
  appId: {
2334
2332
  isShowSortIcon: true
@@ -2358,10 +2356,11 @@ var columnStyles = {
2358
2356
  },
2359
2357
  applicants: {
2360
2358
  containerNgClass: "rowData.isSeperateBubble ? 'border-round-full bg-blue-400 text-white' : rowData.isCustomerVulnerable === 'true' ? 'border-round-full applicant-vulnerable-customer-wrapper text-white' : rowData.riskRating === 'Low' ? 'border-round-full applicant-success-badge-wrapper text-white' : rowData.riskRating === 'Medium' ? 'border-round-full applicant-amber-badge-wrapper text-white' : rowData.riskRating === 'High' ? 'border-round-full applicant-red-badge-wrapper text-white' : 'border-round-full bg-gray-200 text-white'",
2361
- containerNgStyle: "{ width: '32px', height: '32px', display: 'flex', alignItems: 'center', justifyContent: 'center' }",
2362
- textNgClass: "text-white text-md"
2359
+ containerNgStyle: "{ minWidth: 'fit-content', maxWidth: '200px', minHeight: '32px', display: 'inline-flex', alignItems: 'center', justifyContent: 'center', padding: '6px 14px', whiteSpace: 'normal', wordBreak: 'break-word', lineHeight: '1.4' }",
2360
+ textNgClass: "text-white text-sm"
2363
2361
  },
2364
2362
  securityAddress: {
2363
+ containerNgStyle: "{ maxWidth: '100%', wordBreak: 'break-word', whiteSpace: 'normal' }",
2365
2364
  line1NgClass: "security-text-wrapper",
2366
2365
  line2NgClass: "text-gray-500 font-semibold security-text-wrapper"
2367
2366
  }
@@ -6860,14 +6859,14 @@ class QueueRecordTableBuilderService extends TableBuilder {
6860
6859
  // If we have both company and applicants, show only company name
6861
6860
  if (companyName && value.length > 0) {
6862
6861
  bubbles.push({
6863
- fullName: this.truncateText(companyName),
6862
+ fullName: companyName,
6864
6863
  isCompany: true
6865
6864
  });
6866
6865
  }
6867
6866
  else if (companyName) {
6868
6867
  // Only company, no applicants
6869
6868
  bubbles.push({
6870
- fullName: this.truncateText(companyName),
6869
+ fullName: companyName,
6871
6870
  isCompany: true
6872
6871
  });
6873
6872
  }
@@ -6876,7 +6875,7 @@ class QueueRecordTableBuilderService extends TableBuilder {
6876
6875
  value.forEach((applicant) => {
6877
6876
  if (applicant.fullName) {
6878
6877
  bubbles.push({
6879
- fullName: this.truncateText(applicant.fullName),
6878
+ fullName: applicant.fullName,
6880
6879
  isCompany: false,
6881
6880
  riskRating: applicant.riskRating,
6882
6881
  isCustomerVulnerable: applicant.isCustomerVulnerable
@@ -6939,7 +6938,7 @@ class QueueRecordTableBuilderService extends TableBuilder {
6939
6938
  else if (field === SHARED.SECURITY_ADDRESS && value) {
6940
6939
  const line1 = value.addressLine1 || '';
6941
6940
  cellValue = {
6942
- addressLine1: this.truncateText(line1),
6941
+ addressLine1: line1,
6943
6942
  postCode: value.postCode || ''
6944
6943
  };
6945
6944
  }
@@ -6971,13 +6970,20 @@ class QueueRecordTableBuilderService extends TableBuilder {
6971
6970
  const daysValue = extractDays(value);
6972
6971
  const taskText = extractTask(value);
6973
6972
  const isReferredDate = field === SHARED.REFERRED_DATE;
6974
- const chipVariant = isReferredDate ? CHIP_VARIANTS.NEUTRAL : this.deriveChipVariantFromDays(daysValue);
6975
- cellValue = {
6976
- addressLine1: daysValue !== null ? `${daysValue} days` : SHARED.EMPTY,
6977
- postCode: taskText,
6978
- days: daysValue,
6979
- chipVariant
6980
- };
6973
+ if (isReferredDate) {
6974
+ // Single-line format for referredDate (like Age column)
6975
+ cellValue = daysValue !== null ? `${daysValue} days` : SHARED.EMPTY;
6976
+ }
6977
+ else {
6978
+ // Two-line format for SLA with color-coded chip
6979
+ const chipVariant = this.deriveChipVariantFromDays(daysValue);
6980
+ cellValue = {
6981
+ addressLine1: daysValue !== null ? `${daysValue} days` : SHARED.EMPTY,
6982
+ postCode: taskText,
6983
+ days: daysValue,
6984
+ chipVariant
6985
+ };
6986
+ }
6981
6987
  }
6982
6988
  else if (field === SHARED.VALUATION_STATUS) {
6983
6989
  // Enrich valuation status with icon and color configuration