cat-qw-lib 2.2.13 → 2.2.15

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.
@@ -2938,6 +2938,7 @@ class TableSecondaryComponent {
2938
2938
  handleLoadRecords(event) {
2939
2939
  this.page = (event.first / event.rows) + 1;
2940
2940
  this.limit = event.rows;
2941
+ this.isShowSkeleton = true;
2941
2942
  // Emit the pagination event to parent components
2942
2943
  this.onPage.emit(event);
2943
2944
  // If pathName is provided, use the default service method
@@ -2951,6 +2952,7 @@ class TableSecondaryComponent {
2951
2952
  this.table = this.builder.buildTable(res.data);
2952
2953
  this.metaData = res.metadata;
2953
2954
  this.recordNumber = Math.min(this.metaData.currentPage * this.metaData.itemsPerPage, this.metaData.totalItems);
2955
+ this.isShowSkeleton = false; // Hide skeleton when data is loaded
2954
2956
  },
2955
2957
  /**
2956
2958
  * Handles any error encountered while fetching the paginated list.
@@ -2958,6 +2960,7 @@ class TableSecondaryComponent {
2958
2960
  */
2959
2961
  error: (err) => {
2960
2962
  console.error(ERROR.ERROR_FETCHING_DATA, err);
2963
+ this.isShowSkeleton = false; // Hide skeleton on error
2961
2964
  }
2962
2965
  });
2963
2966
  }
@@ -6910,7 +6913,7 @@ class QueueContainerComponent extends BaseContainerComponent {
6910
6913
  searchText = SHARED.EMPTY;
6911
6914
  sortBy = SHARED.EMPTY;
6912
6915
  sortOrder = 1;
6913
- isShowSkeleton = true;
6916
+ isShowSkeleton = false;
6914
6917
  resetSort = false;
6915
6918
  appliedFilters = {};
6916
6919
  placeholder = '';
@@ -6942,6 +6945,7 @@ class QueueContainerComponent extends BaseContainerComponent {
6942
6945
  this.baseQuery = baseQuery;
6943
6946
  }
6944
6947
  ngOnInit() {
6948
+ this.isShowSkeleton = true;
6945
6949
  const storedQueueId = this.getStoredQueueId();
6946
6950
  this.initializeComponent(storedQueueId ?? undefined);
6947
6951
  this.setupSearchDebounce();
@@ -7131,6 +7135,7 @@ class QueueContainerComponent extends BaseContainerComponent {
7131
7135
  }
7132
7136
  getQueueRecordsData(page, limit) {
7133
7137
  this.loading = true;
7138
+ this.isShowSkeleton = true;
7134
7139
  if (!this.selectedQueue?.apiConfig) {
7135
7140
  console.log("Queue data or apiConfig not available");
7136
7141
  return;