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