@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.
@@ -837,7 +837,7 @@ class AnnaNonEditableGenericTableComponent {
837
837
  this.setTooltipRadioNames();
838
838
  }
839
839
  ngAfterViewChecked() {
840
- if (this.gtGeneralConfig.component.includes("ORDER_LISTING")) {
840
+ if (this.gtGeneralConfig.component.includes("ORDER_LISTING") || this.gtGeneralConfig.component == "DRRLISTING") {
841
841
  this.setMarginLeftForFilterIcon();
842
842
  }
843
843
  }
@@ -861,9 +861,9 @@ class AnnaNonEditableGenericTableComponent {
861
861
  if (this.tableData && this.tableData.length == 0) {
862
862
  this.tableData = Array(2).fill(0);
863
863
  this.marginTop = (-this.gtDimension.rowHeight - (this.gtDimension.rowHeight / 2)) + 'px';
864
- if (this.gtGeneralConfig.component.includes("ORDER_LISTING")) {
865
- this.marginTop = "-124px";
866
- }
864
+ // if(this.gtGeneralConfig.component.includes("ORDER_LISTING")){
865
+ // this.marginTop = "-124px";
866
+ // }
867
867
  this.showNoDataToDisplay = true;
868
868
  }
869
869
  else {
@@ -1228,9 +1228,18 @@ class AnnaNonEditableGenericTableComponent {
1228
1228
  let selectedFilterSet = new Set(this.annaFilterService.appliedFiltersArray);
1229
1229
  let isSortPresent = (this.annaSortService.columnSortState.size > 0 && this.annaSortService.columnSortState.get(this.annaFilterService.selectedRadio) != "DEFAULT");
1230
1230
  this.disableColumnClearAllBtn = selectedFilterSet.has(this.annaFilterService.selectedRadio) || isSortPresent ? false : true;
1231
- if (this.sameTooltipClicked && this.annaFilterService.calendarSet.has(this.annaFilterService.selectedRadio) && this.calendarSelection) {
1232
- this.selectedMinDate = this.calendarSelection.fromDate;
1233
- this.selectedMaxDate = this.calendarSelection.toDate;
1231
+ if (this.sameTooltipClicked && this.annaFilterService.calendarSet.has(this.annaFilterService.selectedRadio)) {
1232
+ if (this.calendarSelection.fromDate && this.calendarSelection.toDate) {
1233
+ this.selectedMinDate = this.calendarSelection.fromDate;
1234
+ this.selectedMaxDate = this.calendarSelection.toDate;
1235
+ }
1236
+ else {
1237
+ this.selectedMinDate = cloneDeep(this.selectedMinDate);
1238
+ this.selectedMaxDate = cloneDeep(this.selectedMaxDate);
1239
+ console.log("inside else");
1240
+ console.log(this.selectedMinDate);
1241
+ console.log(this.selectedMaxDate);
1242
+ }
1234
1243
  }
1235
1244
  if (radioButtonData.isFilterRequired && !this.sameTooltipClicked) {
1236
1245
  this.disableSliderApplyButton = false;