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