@annalib/anna-core 10.0.16 → 10.0.18

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.
@@ -32,6 +32,7 @@ import { coerceNumberProperty } from '@angular/cdk/coercion';
32
32
  import { isDataSource, ArrayDataSource } from '@angular/cdk/collections';
33
33
  import * as i2$2 from '@angular/cdk/table';
34
34
  import { _COALESCED_STYLE_SCHEDULER, STICKY_POSITIONING_LISTENER, CdkHeaderRowDef } from '@angular/cdk/table';
35
+ import hash from 'object-hash';
35
36
 
36
37
  class AnnaFilterSearchedTextPipe {
37
38
  constructor() {
@@ -1306,6 +1307,10 @@ class AnnaFilterService {
1306
1307
  "AURTG",
1307
1308
  "PostedRating",
1308
1309
  "PostedImpressions",
1310
+ "NormalizedOrderedRating",
1311
+ "NormalizedOrderedImpressions",
1312
+ "NormalizedPostedRating",
1313
+ "NormalizedPostedImpressions",
1309
1314
  "BookedGRP",
1310
1315
  "BookedIMPSRevTab",
1311
1316
  "BookedCPP",
@@ -1986,9 +1991,17 @@ class AnnaNonEditableGenericTableComponent {
1986
1991
  this.tooltipRadioTextMap.set("PostedRatingsOrImpressions", "Posted RTG");
1987
1992
  this.tooltipRadioTextMap.set("ScheduleFlightWeek", "Schedule Week");
1988
1993
  this.tooltipRadioTextMap.set("ScheduledDay", "Scheduled Day");
1989
- this.tooltipRadioTextMap.set("AirStatus", "Aired Status");
1990
- this.tooltipRadioTextMap.set("AirDateAndTime", "Aired Date & Time");
1994
+ this.tooltipRadioTextMap.set("AirStatus", "Air Status");
1995
+ this.tooltipRadioTextMap.set("AirDateAndTime", "Air Date & Time");
1996
+ this.tooltipRadioTextMap.set("NormalizedOrderedRating", "Normalized Booked RTG");
1997
+ this.tooltipRadioTextMap.set("NormalizedOrderedImpressions", "Normalized Booked IMPS('000)");
1998
+ this.tooltipRadioTextMap.set("NormalizedPostedRating", "Normalized Posted RTG");
1999
+ this.tooltipRadioTextMap.set("NormalizedPostedImpressions", "Normalized Posted IMPS('000)");
1991
2000
  this.tooltipRadioTextMap.set("AdId", "Ad-Id");
2001
+ this.tooltipRadioTextMap.set("displayimps", "IMPS");
2002
+ this.tooltipRadioTextMap.set("displayGrp", "GRP");
2003
+ this.tooltipRadioTextMap.set("bookedSpotsForDisplay", "Spots");
2004
+ this.tooltipRadioTextMap.set("displaySpots", "Spots");
1992
2005
  }
1993
2006
  generateTableDataWrapper() {
1994
2007
  this.showSkeletonLoading = true;
@@ -4911,6 +4924,63 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
4911
4924
  }]
4912
4925
  }] });
4913
4926
 
4927
+ class AnnaPersistingFilterService {
4928
+ constructor() { }
4929
+ storeKeyValueInLocalStorage(val, isFilterKey = true) {
4930
+ let filterOrdering;
4931
+ if (!localStorage.getItem("filterOrdering")) {
4932
+ filterOrdering = [];
4933
+ }
4934
+ else {
4935
+ filterOrdering = JSON.parse(localStorage.getItem("filterOrdering"));
4936
+ }
4937
+ let filterOrderingSet = new Set(filterOrdering);
4938
+ let hashCode = null;
4939
+ let key = null;
4940
+ try {
4941
+ hashCode = hash(val);
4942
+ key = isFilterKey ? "filter_" + hashCode : hashCode;
4943
+ localStorage.setItem(key, JSON.stringify(val));
4944
+ if (isFilterKey) {
4945
+ if (filterOrderingSet.has(key)) {
4946
+ filterOrderingSet.delete(key);
4947
+ }
4948
+ filterOrderingSet.add(key);
4949
+ localStorage.setItem("filterOrdering", JSON.stringify(Array.from(filterOrderingSet)));
4950
+ }
4951
+ }
4952
+ catch (e) {
4953
+ let halfArrayLength = filterOrdering.length / 2;
4954
+ for (let i = 0; i < halfArrayLength; i++) {
4955
+ localStorage.removeItem(filterOrdering[i]);
4956
+ }
4957
+ filterOrdering.splice(0, (filterOrdering.length / 2));
4958
+ hashCode = hash(val);
4959
+ let key = isFilterKey ? "filter_" + hashCode : hashCode;
4960
+ localStorage.setItem(key, JSON.stringify(val));
4961
+ if (isFilterKey) {
4962
+ if (filterOrderingSet.has(key)) {
4963
+ filterOrderingSet.delete(key);
4964
+ }
4965
+ filterOrderingSet.add(key);
4966
+ localStorage.setItem("filterOrdering", JSON.stringify(Array.from(filterOrderingSet)));
4967
+ }
4968
+ }
4969
+ return key;
4970
+ }
4971
+ getActualQueryParams(key) {
4972
+ return localStorage.getItem(key);
4973
+ }
4974
+ }
4975
+ AnnaPersistingFilterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: AnnaPersistingFilterService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4976
+ AnnaPersistingFilterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: AnnaPersistingFilterService, providedIn: "root" });
4977
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: AnnaPersistingFilterService, decorators: [{
4978
+ type: Injectable,
4979
+ args: [{
4980
+ providedIn: "root",
4981
+ }]
4982
+ }], ctorParameters: function () { return []; } });
4983
+
4914
4984
  class ClickableItem {
4915
4985
  constructor(typeOfActionLinkForGt, name, className, showTooltip, tooltipData) {
4916
4986
  this.id = typeOfActionLinkForGt;
@@ -4965,5 +5035,5 @@ var Days;
4965
5035
  * Generated bundle index. Do not edit.
4966
5036
  */
4967
5037
 
4968
- export { AllSelectedStatus, AnnaBuyerApprovalIconTemplateComponent, AnnaCalendarFilterComponent, AnnaConvertZeroOrNullOrUndefinedPipe, AnnaCoreModule, AnnaDateTimeFormatService, AnnaFilterSearchedTextPipe, AnnaFilterService, AnnaFixedRowSizeTableVirtualScrollStrategy, AnnaFixedRowSizeTableVirtualScrollStrategyDirective, AnnaGlobalConfigService, AnnaGtHelperService, AnnaIconColumnComponent, AnnaLiveIconTemplateComponent, AnnaNoDataComponent, AnnaNonEditableGenericTableComponent, AnnaNotifyIconTemplateComponent, AnnaNumberFormatService, AnnaPayForPerformanceIconTemplateComponent, AnnaRejectedIconTemplateComponent, AnnaReplaceCharPipe, AnnaSortComponent, AnnaSortService, AnnaTableVirtualScrollViewportComponent, AnnaTypeofDataPipe, AnnaVirtualTableDirective, AnnaWeekCalendarComponent, ClickableItem, Constants, Days, DigitOnlyDirective, ErrorCodes, SortTypeEnum, TooltipModel, UserActivationStatus, fixedSizeVirtualScrollStrategyFactory, radioButtonModel, showEllipsisTextOnHoverDirective, tooltipModelForColumnLevelFiltering };
5038
+ export { AllSelectedStatus, AnnaBuyerApprovalIconTemplateComponent, AnnaCalendarFilterComponent, AnnaConvertZeroOrNullOrUndefinedPipe, AnnaCoreModule, AnnaDateTimeFormatService, AnnaFilterSearchedTextPipe, AnnaFilterService, AnnaFixedRowSizeTableVirtualScrollStrategy, AnnaFixedRowSizeTableVirtualScrollStrategyDirective, AnnaGlobalConfigService, AnnaGtHelperService, AnnaIconColumnComponent, AnnaLiveIconTemplateComponent, AnnaNoDataComponent, AnnaNonEditableGenericTableComponent, AnnaNotifyIconTemplateComponent, AnnaNumberFormatService, AnnaPayForPerformanceIconTemplateComponent, AnnaPersistingFilterService, AnnaRejectedIconTemplateComponent, AnnaReplaceCharPipe, AnnaSortComponent, AnnaSortService, AnnaTableVirtualScrollViewportComponent, AnnaTypeofDataPipe, AnnaVirtualTableDirective, AnnaWeekCalendarComponent, ClickableItem, Constants, Days, DigitOnlyDirective, ErrorCodes, SortTypeEnum, TooltipModel, UserActivationStatus, fixedSizeVirtualScrollStrategyFactory, radioButtonModel, showEllipsisTextOnHoverDirective, tooltipModelForColumnLevelFiltering };
4969
5039
  //# sourceMappingURL=annalib-anna-core.mjs.map