@annalib/anna-core 8.0.26 → 8.0.30
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 +15 -6
- package/esm2020/lib/anna-core-shared-lib/services/anna-sort.service.mjs +7 -2
- package/esm2020/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.mjs +19 -1
- package/fesm2015/annalib-anna-core.mjs +38 -6
- package/fesm2015/annalib-anna-core.mjs.map +1 -1
- package/fesm2020/annalib-anna-core.mjs +38 -6
- package/fesm2020/annalib-anna-core.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1101,7 +1101,9 @@ class AnnaSortService {
|
|
|
1101
1101
|
});
|
|
1102
1102
|
}
|
|
1103
1103
|
else {
|
|
1104
|
-
data.
|
|
1104
|
+
let dataWithoutEmptyOrHyphenValues = data.filter(n => n[key] != "-");
|
|
1105
|
+
let rowsWithHyphenOrZeroValues = data.filter(n => n[key] == "-");
|
|
1106
|
+
dataWithoutEmptyOrHyphenValues.sort((a, b) => {
|
|
1105
1107
|
param1 = a[key];
|
|
1106
1108
|
param2 = b[key];
|
|
1107
1109
|
if (param1 !== param2) {
|
|
@@ -1109,7 +1111,10 @@ class AnnaSortService {
|
|
|
1109
1111
|
}
|
|
1110
1112
|
return 0;
|
|
1111
1113
|
});
|
|
1114
|
+
data = isAsc ? [...rowsWithHyphenOrZeroValues, ...dataWithoutEmptyOrHyphenValues] :
|
|
1115
|
+
[...dataWithoutEmptyOrHyphenValues, ...rowsWithHyphenOrZeroValues];
|
|
1112
1116
|
}
|
|
1117
|
+
console.log(data.map(n => n[key]));
|
|
1113
1118
|
return data;
|
|
1114
1119
|
}
|
|
1115
1120
|
sortEnterEditLurAndCsrPage(isAsc, data, key) {
|
|
@@ -1285,9 +1290,16 @@ class AnnaFilterService {
|
|
|
1285
1290
|
"userChanges",
|
|
1286
1291
|
"userMG",
|
|
1287
1292
|
"WeeklyAUR",
|
|
1288
|
-
"WeeklyAURatingOrImpressions"
|
|
1293
|
+
"WeeklyAURatingOrImpressions",
|
|
1294
|
+
"BookedRate",
|
|
1295
|
+
"BookedRTG",
|
|
1296
|
+
"BookedIMPS",
|
|
1297
|
+
"AURTG",
|
|
1298
|
+
"AURTG",
|
|
1299
|
+
"PostedRating",
|
|
1300
|
+
"PostedImpressions",
|
|
1289
1301
|
];
|
|
1290
|
-
const calendarArr = ["period", "AirDate", "flightStartDate", "flightEndDate", "date", "startDate", "endDate", "revisionStartDate"];
|
|
1302
|
+
const calendarArr = ["period", "AirDate", "flightStartDate", "flightEndDate", "date", "startDate", "endDate", "revisionStartDate", "Week"];
|
|
1291
1303
|
const timeArr = ["StartTimeForFilter", "EndTimeForFilter", "time",
|
|
1292
1304
|
"start_time_for_filter", "end_time_for_filter", "startEndTimeMulti", "startEndTime"];
|
|
1293
1305
|
this.sliderSet = new Set(sliderArr);
|
|
@@ -1375,6 +1387,7 @@ class AnnaFilterService {
|
|
|
1375
1387
|
this.selectedRadio === "flightStartDate" ||
|
|
1376
1388
|
this.selectedRadio === "flightEndDate" ||
|
|
1377
1389
|
this.selectedRadio == "date" ||
|
|
1390
|
+
this.selectedRadio == "Week" ||
|
|
1378
1391
|
this.selectedRadio == "revisionStartDate") {
|
|
1379
1392
|
isFiltered =
|
|
1380
1393
|
!isEqual(this.initialValueMap.get(this.selectedRadio), this.tooltipSelectedMap.get(this.selectedRadio)) &&
|
|
@@ -1411,7 +1424,8 @@ class AnnaFilterService {
|
|
|
1411
1424
|
if (this.sliderSet.has(key)) {
|
|
1412
1425
|
filteredData = filteredData.filter((obj) => obj[key] >= value.min && obj[key] <= value.max);
|
|
1413
1426
|
}
|
|
1414
|
-
else if (key === "startDate" || key === "endDate" || key === "AirDate" || key === "flightStartDate" || key === "flightEndDate" || key == "date" || key == "revisionStartDate"
|
|
1427
|
+
else if (key === "startDate" || key === "endDate" || key === "AirDate" || key === "flightStartDate" || key === "flightEndDate" || key == "date" || key == "revisionStartDate"
|
|
1428
|
+
|| key == "Week") {
|
|
1415
1429
|
filteredData = filteredData.filter((obj) => this.isObjectInTheRange(obj, value, key));
|
|
1416
1430
|
}
|
|
1417
1431
|
else if (key === "period") {
|
|
@@ -1526,7 +1540,7 @@ class AnnaFilterService {
|
|
|
1526
1540
|
return ((startDateIsBetweenSelDate || startDateIsSameAsSelStartDate) &&
|
|
1527
1541
|
(endDateIsBetweenSelDate || endDateIsSameAsSelEndDate));
|
|
1528
1542
|
}
|
|
1529
|
-
else if (key === "AirDate" || key === "flightStartDate" || key === "flightEndDate") {
|
|
1543
|
+
else if (key === "AirDate" || key === "flightStartDate" || key === "flightEndDate" || key === "Week") {
|
|
1530
1544
|
parsingFormat = "MM/DD/YYYY";
|
|
1531
1545
|
let dateIsBetweenSelDate = dayjs(obj[key], parsingFormat).isBetween(value.minSelectedDate, value.maxSelectedDate);
|
|
1532
1546
|
let dateIsSameAsSelStartDate = dayjs(obj[key], parsingFormat).isSame(value.minSelectedDate);
|
|
@@ -1584,7 +1598,7 @@ class AnnaFilterService {
|
|
|
1584
1598
|
if (this.sliderSet.has(key)) {
|
|
1585
1599
|
filteredData = filteredData.filter((obj) => obj[key] >= value.min && obj[key] <= value.max);
|
|
1586
1600
|
}
|
|
1587
|
-
else if (key === "startDate" || key === "endDate" || key === "AirDate" || key === "flightStartDate" || key === "flightEndDate" || key == "date" || key == "revisionStartDate") {
|
|
1601
|
+
else if (key === "startDate" || key === "endDate" || key === "AirDate" || key === "flightStartDate" || key === "flightEndDate" || key == "date" || key == "revisionStartDate" || key === "Week") {
|
|
1588
1602
|
filteredData = filteredData.filter((obj) => this.isObjectInTheRange(obj, value, key));
|
|
1589
1603
|
}
|
|
1590
1604
|
else if (key === "period") {
|
|
@@ -1921,6 +1935,24 @@ class AnnaNonEditableGenericTableComponent {
|
|
|
1921
1935
|
this.tooltipRadioTextMap.set("udGrpPercent", "UD GRP %");
|
|
1922
1936
|
this.tooltipRadioTextMap.set("odImpsPercent", "OD IMPS %");
|
|
1923
1937
|
this.tooltipRadioTextMap.set("odGrpPercent", "OD GRP %");
|
|
1938
|
+
this.tooltipRadioTextMap.set("SellerLine", "Seller Line #");
|
|
1939
|
+
this.tooltipRadioTextMap.set("BuyerLine", "Buy Line #");
|
|
1940
|
+
this.tooltipRadioTextMap.set("SpotStatus", "Spot Status");
|
|
1941
|
+
this.tooltipRadioTextMap.set("InventoryCode", "Inventory Code");
|
|
1942
|
+
this.tooltipRadioTextMap.set("BuyerProgramName", "Buyer Program Name");
|
|
1943
|
+
this.tooltipRadioTextMap.set("RevenueClass", "Revenue Class");
|
|
1944
|
+
this.tooltipRadioTextMap.set("WeeklyAUR", "AUR");
|
|
1945
|
+
this.tooltipRadioTextMap.set("BookedRate", "Booked Rate");
|
|
1946
|
+
this.tooltipRadioTextMap.set("BookedRTG", "Booked RTG");
|
|
1947
|
+
this.tooltipRadioTextMap.set("BookedIMPS", "Booked IMPS('000)");
|
|
1948
|
+
this.tooltipRadioTextMap.set("AURTG", "AU RTG");
|
|
1949
|
+
this.tooltipRadioTextMap.set("AUIMPS", "AU IMPS('000)");
|
|
1950
|
+
this.tooltipRadioTextMap.set("PostedRatingsOrImpressions", "Posted RTG");
|
|
1951
|
+
this.tooltipRadioTextMap.set("ScheduleFlightWeek", "Schedule Week");
|
|
1952
|
+
this.tooltipRadioTextMap.set("ScheduledDay", "Scheduled Day");
|
|
1953
|
+
this.tooltipRadioTextMap.set("AirStatus", "Aired Status");
|
|
1954
|
+
this.tooltipRadioTextMap.set("AirDateAndTime", "Aired Date & Time");
|
|
1955
|
+
this.tooltipRadioTextMap.set("AdId", "Ad-Id");
|
|
1924
1956
|
}
|
|
1925
1957
|
generateTableDataWrapper() {
|
|
1926
1958
|
this.showSkeletonLoading = true;
|