@annalib/anna-core 1.2.2 → 1.2.3

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.
@@ -1312,7 +1312,7 @@ class AnnaNonEditableGenericTableComponent {
1312
1312
  this.setTooltipRadioNames();
1313
1313
  }
1314
1314
  ngAfterViewChecked() {
1315
- if (this.gtGeneralConfig.component.includes("ORDER_LISTING")) {
1315
+ if (this.gtGeneralConfig.component.includes("ORDER_LISTING") || this.gtGeneralConfig.component == "DRRLISTING") {
1316
1316
  this.setMarginLeftForFilterIcon();
1317
1317
  }
1318
1318
  }
@@ -1336,9 +1336,9 @@ class AnnaNonEditableGenericTableComponent {
1336
1336
  if (this.tableData && this.tableData.length == 0) {
1337
1337
  this.tableData = Array(2).fill(0);
1338
1338
  this.marginTop = (-this.gtDimension.rowHeight - (this.gtDimension.rowHeight / 2)) + 'px';
1339
- if (this.gtGeneralConfig.component.includes("ORDER_LISTING")) {
1340
- this.marginTop = "-124px";
1341
- }
1339
+ // if(this.gtGeneralConfig.component.includes("ORDER_LISTING")){
1340
+ // this.marginTop = "-124px";
1341
+ // }
1342
1342
  this.showNoDataToDisplay = true;
1343
1343
  }
1344
1344
  else {
@@ -1703,9 +1703,18 @@ class AnnaNonEditableGenericTableComponent {
1703
1703
  let selectedFilterSet = new Set(this.annaFilterService.appliedFiltersArray);
1704
1704
  let isSortPresent = (this.annaSortService.columnSortState.size > 0 && this.annaSortService.columnSortState.get(this.annaFilterService.selectedRadio) != "DEFAULT");
1705
1705
  this.disableColumnClearAllBtn = selectedFilterSet.has(this.annaFilterService.selectedRadio) || isSortPresent ? false : true;
1706
- if (this.sameTooltipClicked && this.annaFilterService.calendarSet.has(this.annaFilterService.selectedRadio) && this.calendarSelection) {
1707
- this.selectedMinDate = this.calendarSelection.fromDate;
1708
- this.selectedMaxDate = this.calendarSelection.toDate;
1706
+ if (this.sameTooltipClicked && this.annaFilterService.calendarSet.has(this.annaFilterService.selectedRadio)) {
1707
+ if (this.calendarSelection.fromDate && this.calendarSelection.toDate) {
1708
+ this.selectedMinDate = this.calendarSelection.fromDate;
1709
+ this.selectedMaxDate = this.calendarSelection.toDate;
1710
+ }
1711
+ else {
1712
+ this.selectedMinDate = cloneDeep(this.selectedMinDate);
1713
+ this.selectedMaxDate = cloneDeep(this.selectedMaxDate);
1714
+ console.log("inside else");
1715
+ console.log(this.selectedMinDate);
1716
+ console.log(this.selectedMaxDate);
1717
+ }
1709
1718
  }
1710
1719
  if (radioButtonData.isFilterRequired && !this.sameTooltipClicked) {
1711
1720
  this.disableSliderApplyButton = false;