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