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