cat-qw-lib 1.0.74 → 1.0.75
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
|
@@ -5899,6 +5899,22 @@ class QueueRecordTableBuilderService extends TableBuilder {
|
|
|
5899
5899
|
}
|
|
5900
5900
|
record[field] = cellValue;
|
|
5901
5901
|
});
|
|
5902
|
+
//---------------------will remove this code and index in params later----code start---------////////
|
|
5903
|
+
// Inject dummy tasks data for first 5 records only
|
|
5904
|
+
const dummyTasks = ['0/0', '5/0', '0/5', '1/6', '1/4', '1/13'];
|
|
5905
|
+
if (index < 5) {
|
|
5906
|
+
record.tasks = dummyTasks[index];
|
|
5907
|
+
}
|
|
5908
|
+
const dummytaskCompletionPercent = [100, 0, 100, 14.29, 20, 7.14];
|
|
5909
|
+
if (index < 5) {
|
|
5910
|
+
record.taskCompletionPercent = dummytaskCompletionPercent[index];
|
|
5911
|
+
}
|
|
5912
|
+
const dummyPeding = ['100 days', '10 days', '98 days', '53 days', '75 days', '14 days'];
|
|
5913
|
+
if (index < 5) {
|
|
5914
|
+
record.pending = dummyPeding[index];
|
|
5915
|
+
}
|
|
5916
|
+
//---------------------will remove this code and index in params later----code end---------////////
|
|
5917
|
+
// console.log("-------record", record);
|
|
5902
5918
|
// Attach row-level ngClass expression for dynamic row styling
|
|
5903
5919
|
const rowStyles$1 = rowStyles;
|
|
5904
5920
|
if (rowStyles$1 && rowStyles$1.ngClass) {
|
|
@@ -6409,9 +6425,10 @@ class QueueContainerComponent extends BaseContainerComponent {
|
|
|
6409
6425
|
return this.appliedFilters && Object.values(this.appliedFilters).some(val => val !== null && val !== '' && val !== undefined);
|
|
6410
6426
|
}
|
|
6411
6427
|
onTableRowClick(record) {
|
|
6412
|
-
this.syncFilterDropdown();
|
|
6413
6428
|
this.queueBusinessService.storeApplicationData(record);
|
|
6414
6429
|
this.rowClick.emit(record);
|
|
6430
|
+
this.clearFilters();
|
|
6431
|
+
this.syncFilterDropdown();
|
|
6415
6432
|
}
|
|
6416
6433
|
onTableSelectionChange(selection) {
|
|
6417
6434
|
this.selectedRows = selection;
|