@annalib/anna-core 11.2.11 → 11.2.13

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.
@@ -1823,13 +1823,13 @@ class AnnaNonEditableGenericTableComponent {
1823
1823
  this.setTableBottomBorder();
1824
1824
  }
1825
1825
  else if (changes["percentDone"] || changes["downloadInProgress"] || (changes["starredInProgress"] && changes["starredInProgress"].currentValue != undefined)) {
1826
- console.log("do nothing");
1826
+ //no task will be performed
1827
1827
  }
1828
1828
  else {
1829
1829
  this.setInitialRowsForTable();
1830
1830
  this.disableEnableEachColumnTooltipIcon();
1831
1831
  this.tableColumns = this.tableHeaders.filter(x => x.visible).map(x => x.headerInfo[0].objectKey);
1832
- if (this.tableData && this.tableData.length == 0) {
1832
+ if ((this.tableData && this.tableData.length == 0) || (this.tableData.length == 2 && this.checkIfAllTheElementsAreZero())) {
1833
1833
  this.tableData = Array(2).fill(0);
1834
1834
  this.renderedData = cloneDeep(this.tableData);
1835
1835
  this.marginTop = (-this.gtDimension.rowHeight - (this.gtDimension.rowHeight / 2)) + 'px';
@@ -1861,6 +1861,9 @@ class AnnaNonEditableGenericTableComponent {
1861
1861
  this.tableBottomBorderClass = null;
1862
1862
  }
1863
1863
  }
1864
+ checkIfAllTheElementsAreZero() {
1865
+ return !this.tableData.some(item => item != 0);
1866
+ }
1864
1867
  setTableHeight() {
1865
1868
  let viewportHeight = window.innerHeight;
1866
1869
  let rowHeight = this.gtDimension.rowHeight;
@@ -1874,7 +1877,6 @@ class AnnaNonEditableGenericTableComponent {
1874
1877
  let actualTableHeight = viewportHeight - dataOnTopHeight - marginFromBottom;
1875
1878
  this.gtDimension.tableHeight = `${actualTableHeight}px`;
1876
1879
  this.numberOfSkeletonRows = Array(this.maximumRowsWhichCanBeRenderedWithoutScroll).fill(0);
1877
- console.log(this.maximumRowsWhichCanBeRenderedWithoutScroll);
1878
1880
  }
1879
1881
  trackByFn(index) {
1880
1882
  return index;
@@ -3076,7 +3078,6 @@ class AnnaNonEditableGenericTableComponent {
3076
3078
  this.gtTextActionClicked.emit({ data: rowData, id: id });
3077
3079
  }
3078
3080
  iconClickedOnStringIconActionType(rowData, id) {
3079
- console.log(rowData);
3080
3081
  this.gtTextActionClicked.emit({ data: rowData, id: id });
3081
3082
  }
3082
3083
  viewDetailsClicked(rowData) {
@@ -3553,20 +3554,16 @@ class AnnaNonEditableGenericTableComponent {
3553
3554
  this.removeTooltipOnScroll();
3554
3555
  }
3555
3556
  mouseEnterOnStringTextActionType(rowData, tooltipKey) {
3556
- console.log(rowData);
3557
3557
  this.textActionTooltip = rowData[tooltipKey];
3558
3558
  this.notificationIconHover.emit({ rowData: rowData, type: "on-enter" });
3559
3559
  }
3560
3560
  mouseEnterOnStringTextActionTypeContainingTable(rowData, tooltipKey) {
3561
- console.log(rowData, tooltipKey);
3562
3561
  this.tooltipContainingTable = rowData[tooltipKey];
3563
3562
  }
3564
3563
  mouseLeaveTextActionType(rowData) {
3565
- console.log(rowData);
3566
3564
  this.notificationIconHoverLeave.emit({ rowData: rowData, type: "on-leave" });
3567
3565
  }
3568
3566
  mouseEnterOnTextActionType(rowData, tooltipKey) {
3569
- console.log(rowData);
3570
3567
  this.textActionTooltip = rowData[tooltipKey];
3571
3568
  }
3572
3569
  onClickableDataClicked(Rowdata, id) {