@annalib/anna-core 10.0.15 → 10.0.17
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.
- package/esm2020/lib/anna-core-shared-lib/services/anna-filter.service.mjs +5 -1
- package/esm2020/lib/anna-core-shared-lib/services/anna-generic-table.service.mjs +1 -1
- package/esm2020/lib/anna-core-shared-lib/services/anna-persisting-filter.service.mjs +60 -0
- package/esm2020/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.mjs +7 -3
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/annalib-anna-core.mjs +69 -3
- package/fesm2015/annalib-anna-core.mjs.map +1 -1
- package/fesm2020/annalib-anna-core.mjs +69 -3
- package/fesm2020/annalib-anna-core.mjs.map +1 -1
- package/lib/anna-core-shared-lib/services/anna-persisting-filter.service.d.ts +8 -0
- package/package.json +4 -4
- package/public-api.d.ts +1 -0
- package/src/lib/anna-common-scss/_customDropdown.scss +129 -0
- package/src/lib/anna-common-scss/style.scss +1 -1
|
@@ -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,8 +1991,12 @@ 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", "
|
|
1990
|
-
this.tooltipRadioTextMap.set("AirDateAndTime", "
|
|
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");
|
|
1992
2001
|
}
|
|
1993
2002
|
generateTableDataWrapper() {
|
|
@@ -4911,6 +4920,63 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
4911
4920
|
}]
|
|
4912
4921
|
}] });
|
|
4913
4922
|
|
|
4923
|
+
class AnnaPersistingFilterService {
|
|
4924
|
+
constructor() { }
|
|
4925
|
+
storeKeyValueInLocalStorage(val, isFilterKey = true) {
|
|
4926
|
+
let filterOrdering;
|
|
4927
|
+
if (!localStorage.getItem("filterOrdering")) {
|
|
4928
|
+
filterOrdering = [];
|
|
4929
|
+
}
|
|
4930
|
+
else {
|
|
4931
|
+
filterOrdering = JSON.parse(localStorage.getItem("filterOrdering"));
|
|
4932
|
+
}
|
|
4933
|
+
let filterOrderingSet = new Set(filterOrdering);
|
|
4934
|
+
let hashCode = null;
|
|
4935
|
+
let key = null;
|
|
4936
|
+
try {
|
|
4937
|
+
hashCode = hash(val);
|
|
4938
|
+
key = isFilterKey ? "filter_" + hashCode : hashCode;
|
|
4939
|
+
localStorage.setItem(key, JSON.stringify(val));
|
|
4940
|
+
if (isFilterKey) {
|
|
4941
|
+
if (filterOrderingSet.has(key)) {
|
|
4942
|
+
filterOrderingSet.delete(key);
|
|
4943
|
+
}
|
|
4944
|
+
filterOrderingSet.add(key);
|
|
4945
|
+
localStorage.setItem("filterOrdering", JSON.stringify(Array.from(filterOrderingSet)));
|
|
4946
|
+
}
|
|
4947
|
+
}
|
|
4948
|
+
catch (e) {
|
|
4949
|
+
let halfArrayLength = filterOrdering.length / 2;
|
|
4950
|
+
for (let i = 0; i < halfArrayLength; i++) {
|
|
4951
|
+
localStorage.removeItem(filterOrdering[i]);
|
|
4952
|
+
}
|
|
4953
|
+
filterOrdering.splice(0, (filterOrdering.length / 2));
|
|
4954
|
+
hashCode = hash(val);
|
|
4955
|
+
let key = isFilterKey ? "filter_" + hashCode : hashCode;
|
|
4956
|
+
localStorage.setItem(key, JSON.stringify(val));
|
|
4957
|
+
if (isFilterKey) {
|
|
4958
|
+
if (filterOrderingSet.has(key)) {
|
|
4959
|
+
filterOrderingSet.delete(key);
|
|
4960
|
+
}
|
|
4961
|
+
filterOrderingSet.add(key);
|
|
4962
|
+
localStorage.setItem("filterOrdering", JSON.stringify(Array.from(filterOrderingSet)));
|
|
4963
|
+
}
|
|
4964
|
+
}
|
|
4965
|
+
return key;
|
|
4966
|
+
}
|
|
4967
|
+
getActualQueryParams(key) {
|
|
4968
|
+
return localStorage.getItem(key);
|
|
4969
|
+
}
|
|
4970
|
+
}
|
|
4971
|
+
AnnaPersistingFilterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: AnnaPersistingFilterService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4972
|
+
AnnaPersistingFilterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: AnnaPersistingFilterService, providedIn: "root" });
|
|
4973
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: AnnaPersistingFilterService, decorators: [{
|
|
4974
|
+
type: Injectable,
|
|
4975
|
+
args: [{
|
|
4976
|
+
providedIn: "root",
|
|
4977
|
+
}]
|
|
4978
|
+
}], ctorParameters: function () { return []; } });
|
|
4979
|
+
|
|
4914
4980
|
class ClickableItem {
|
|
4915
4981
|
constructor(typeOfActionLinkForGt, name, className, showTooltip, tooltipData) {
|
|
4916
4982
|
this.id = typeOfActionLinkForGt;
|
|
@@ -4965,5 +5031,5 @@ var Days;
|
|
|
4965
5031
|
* Generated bundle index. Do not edit.
|
|
4966
5032
|
*/
|
|
4967
5033
|
|
|
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 };
|
|
5034
|
+
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
5035
|
//# sourceMappingURL=annalib-anna-core.mjs.map
|