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