@annalib/anna-core 5.0.4 → 5.0.6

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.
@@ -1199,6 +1199,7 @@ class AnnaFilterService {
1199
1199
  'userMG',
1200
1200
  ]);
1201
1201
  this.isFilterSortActive = null;
1202
+ this.resetFilterSortActiveStatus = true;
1202
1203
  this.percentTranslateFunction = (data) => {
1203
1204
  if (Math.abs(data) >= 1000) {
1204
1205
  let isNegVal = data < 0;
@@ -3313,16 +3314,22 @@ class AnnaNonEditableGenericTableComponent {
3313
3314
  return item.id;
3314
3315
  }
3315
3316
  setActiveStateObject() {
3316
- this.annaFilterService.isFilterSortActive = {};
3317
+ this.annaFilterService.isFilterSortActive = !this.annaFilterService.resetFilterSortActiveStatus
3318
+ ? this.annaFilterService.isFilterSortActive
3319
+ : {};
3317
3320
  this.tableHeaders.forEach(item => {
3318
3321
  item.headerInfo.forEach(header => {
3319
3322
  if (header.showTooltipIcon) {
3320
3323
  let key = header.filterSortObjectKeys.join(',');
3321
3324
  header.joinedFilterSortObjectKeys = key;
3322
- this.annaFilterService.isFilterSortActive[key] = false;
3325
+ // ANNA-4113 fix
3326
+ if (this.annaFilterService.resetFilterSortActiveStatus) {
3327
+ this.annaFilterService.isFilterSortActive[key] = false;
3328
+ }
3323
3329
  }
3324
3330
  });
3325
3331
  });
3332
+ this.annaFilterService.resetFilterSortActiveStatus = true;
3326
3333
  }
3327
3334
  setIsDifference(value) {
3328
3335
  this.isDifferenceLessThan25Percent = value;