@annalib/anna-core 9.0.9 → 9.0.11

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.
@@ -1963,9 +1963,13 @@ class AnnaNonEditableGenericTableComponent {
1963
1963
  this.tooltipRadioTextMap.set("BookedCPP", "CPP");
1964
1964
  this.tooltipRadioTextMap.set("BookedCPM", "CPM");
1965
1965
  this.tooltipRadioTextMap.set("ApprovedMGsValueForDisplay", "$ Approved MGS");
1966
+ this.tooltipRadioTextMap.set("ApprovedMGsValue", "$ Approved MGS");
1966
1967
  this.tooltipRadioTextMap.set("ApprovedADUsValueForDisplay", "$ Approved ADUS");
1968
+ this.tooltipRadioTextMap.set("ApprovedADUsValue", "$ Approved ADUS");
1967
1969
  this.tooltipRadioTextMap.set("BuyerChangesValueForDisplay", "$ Buyer Change");
1968
- this.tooltipRadioTextMap.set("UserChangesValueForDisplay", "$ Seller user Change");
1970
+ this.tooltipRadioTextMap.set("BuyerChangesValue", "$ Buyer Change");
1971
+ this.tooltipRadioTextMap.set("UserChangesValueForDisplay", "$ Seller User Change");
1972
+ this.tooltipRadioTextMap.set("UserChangesValue", "$ Seller User Change");
1969
1973
  this.tooltipRadioTextMap.set("SellerLine", "Seller Line #");
1970
1974
  this.tooltipRadioTextMap.set("BuyerLine", "Buy Line #");
1971
1975
  this.tooltipRadioTextMap.set("SpotStatus", "Spot Status");
@@ -3625,12 +3629,7 @@ class AnnaGtHelperService {
3625
3629
  }
3626
3630
  enableOrDisableClearAllBtn() {
3627
3631
  let isFilterApplied = this.annaFilterService.appliedFiltersArray.length > 0;
3628
- let isSortApplied = false;
3629
- for (let val of this.annaSortService.columnSortState.values()) {
3630
- if (val == "ASC" || val == "DESC") {
3631
- isSortApplied = true;
3632
- }
3633
- }
3632
+ let isSortApplied = this.isSortingAppliedToTable();
3634
3633
  return isFilterApplied || isSortApplied ? false : true;
3635
3634
  }
3636
3635
  updateFiltersInURL() {
@@ -3692,6 +3691,24 @@ class AnnaGtHelperService {
3692
3691
  }
3693
3692
  return usersTable;
3694
3693
  }
3694
+ isSortingAppliedToTable() {
3695
+ let isSortingApplied = false;
3696
+ for (let val of this.annaSortService.columnSortState.values()) {
3697
+ if (val == "ASC" || val == "DESC") {
3698
+ isSortingApplied = true;
3699
+ }
3700
+ }
3701
+ return isSortingApplied;
3702
+ }
3703
+ updateQueryParamsFilter(key, value, operation, queryParamObj) {
3704
+ if (operation == "ADD") {
3705
+ queryParamObj[key] = value;
3706
+ }
3707
+ else if (operation == "DELETE") {
3708
+ delete queryParamObj[key];
3709
+ }
3710
+ return queryParamObj;
3711
+ }
3695
3712
  }
3696
3713
  AnnaGtHelperService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: AnnaGtHelperService, deps: [{ token: AnnaFilterService }, { token: i2$1.Router }, { token: i2$1.ActivatedRoute }, { token: AnnaSortService }], target: i0.ɵɵFactoryTarget.Injectable });
3697
3714
  AnnaGtHelperService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: AnnaGtHelperService, providedIn: "root" });