cat-qw-lib 2.6.3 → 2.6.6
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 +17 -12
- package/fesm2022/cat-qw-lib.mjs.map +1 -1
- package/package.json +1 -1
package/fesm2022/cat-qw-lib.mjs
CHANGED
|
@@ -2324,11 +2324,9 @@ var columnStyles = {
|
|
|
2324
2324
|
line2NgClass: "text-gray-700 text-sm"
|
|
2325
2325
|
},
|
|
2326
2326
|
referredDate: {
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
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
|
|
@@ -6971,13 +6969,20 @@ class QueueRecordTableBuilderService extends TableBuilder {
|
|
|
6971
6969
|
const daysValue = extractDays(value);
|
|
6972
6970
|
const taskText = extractTask(value);
|
|
6973
6971
|
const isReferredDate = field === SHARED.REFERRED_DATE;
|
|
6974
|
-
|
|
6975
|
-
|
|
6976
|
-
|
|
6977
|
-
|
|
6978
|
-
|
|
6979
|
-
|
|
6980
|
-
|
|
6972
|
+
if (isReferredDate) {
|
|
6973
|
+
// Single-line format for referredDate (like Age column)
|
|
6974
|
+
cellValue = daysValue !== null ? `${daysValue} days` : SHARED.EMPTY;
|
|
6975
|
+
}
|
|
6976
|
+
else {
|
|
6977
|
+
// Two-line format for SLA with color-coded chip
|
|
6978
|
+
const chipVariant = this.deriveChipVariantFromDays(daysValue);
|
|
6979
|
+
cellValue = {
|
|
6980
|
+
addressLine1: daysValue !== null ? `${daysValue} days` : SHARED.EMPTY,
|
|
6981
|
+
postCode: taskText,
|
|
6982
|
+
days: daysValue,
|
|
6983
|
+
chipVariant
|
|
6984
|
+
};
|
|
6985
|
+
}
|
|
6981
6986
|
}
|
|
6982
6987
|
else if (field === SHARED.VALUATION_STATUS) {
|
|
6983
6988
|
// Enrich valuation status with icon and color configuration
|