@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.
@@ -1111,7 +1111,9 @@ class AnnaSortService {
1111
1111
  });
1112
1112
  }
1113
1113
  else {
1114
- data.sort((a, b) => {
1114
+ let dataWithoutEmptyOrHyphenValues = data.filter(n => n[key] != "-");
1115
+ let rowsWithHyphenOrZeroValues = data.filter(n => n[key] == "-");
1116
+ dataWithoutEmptyOrHyphenValues.sort((a, b) => {
1115
1117
  param1 = a[key];
1116
1118
  param2 = b[key];
1117
1119
  if (param1 !== param2) {
@@ -1119,7 +1121,10 @@ class AnnaSortService {
1119
1121
  }
1120
1122
  return 0;
1121
1123
  });
1124
+ data = isAsc ? [...rowsWithHyphenOrZeroValues, ...dataWithoutEmptyOrHyphenValues] :
1125
+ [...dataWithoutEmptyOrHyphenValues, ...rowsWithHyphenOrZeroValues];
1122
1126
  }
1127
+ console.log(data.map(n => n[key]));
1123
1128
  return data;
1124
1129
  }
1125
1130
  sortEnterEditLurAndCsrPage(isAsc, data, key) {
@@ -1295,9 +1300,16 @@ class AnnaFilterService {
1295
1300
  "userChanges",
1296
1301
  "userMG",
1297
1302
  "WeeklyAUR",
1298
- "WeeklyAURatingOrImpressions"
1303
+ "WeeklyAURatingOrImpressions",
1304
+ "BookedRate",
1305
+ "BookedRTG",
1306
+ "BookedIMPS",
1307
+ "AURTG",
1308
+ "AURTG",
1309
+ "PostedRating",
1310
+ "PostedImpressions",
1299
1311
  ];
1300
- const calendarArr = ["period", "AirDate", "flightStartDate", "flightEndDate", "date", "startDate", "endDate", "revisionStartDate"];
1312
+ const calendarArr = ["period", "AirDate", "flightStartDate", "flightEndDate", "date", "startDate", "endDate", "revisionStartDate", "Week"];
1301
1313
  const timeArr = ["StartTimeForFilter", "EndTimeForFilter", "time",
1302
1314
  "start_time_for_filter", "end_time_for_filter", "startEndTimeMulti", "startEndTime"];
1303
1315
  this.sliderSet = new Set(sliderArr);
@@ -1385,6 +1397,7 @@ class AnnaFilterService {
1385
1397
  this.selectedRadio === "flightStartDate" ||
1386
1398
  this.selectedRadio === "flightEndDate" ||
1387
1399
  this.selectedRadio == "date" ||
1400
+ this.selectedRadio == "Week" ||
1388
1401
  this.selectedRadio == "revisionStartDate") {
1389
1402
  isFiltered =
1390
1403
  !isEqual(this.initialValueMap.get(this.selectedRadio), this.tooltipSelectedMap.get(this.selectedRadio)) &&
@@ -1421,7 +1434,8 @@ class AnnaFilterService {
1421
1434
  if (this.sliderSet.has(key)) {
1422
1435
  filteredData = filteredData.filter((obj) => obj[key] >= value.min && obj[key] <= value.max);
1423
1436
  }
1424
- else if (key === "startDate" || key === "endDate" || key === "AirDate" || key === "flightStartDate" || key === "flightEndDate" || key == "date" || key == "revisionStartDate") {
1437
+ else if (key === "startDate" || key === "endDate" || key === "AirDate" || key === "flightStartDate" || key === "flightEndDate" || key == "date" || key == "revisionStartDate"
1438
+ || key == "Week") {
1425
1439
  filteredData = filteredData.filter((obj) => this.isObjectInTheRange(obj, value, key));
1426
1440
  }
1427
1441
  else if (key === "period") {
@@ -1536,7 +1550,7 @@ class AnnaFilterService {
1536
1550
  return ((startDateIsBetweenSelDate || startDateIsSameAsSelStartDate) &&
1537
1551
  (endDateIsBetweenSelDate || endDateIsSameAsSelEndDate));
1538
1552
  }
1539
- else if (key === "AirDate" || key === "flightStartDate" || key === "flightEndDate") {
1553
+ else if (key === "AirDate" || key === "flightStartDate" || key === "flightEndDate" || key === "Week") {
1540
1554
  parsingFormat = "MM/DD/YYYY";
1541
1555
  let dateIsBetweenSelDate = dayjs(obj[key], parsingFormat).isBetween(value.minSelectedDate, value.maxSelectedDate);
1542
1556
  let dateIsSameAsSelStartDate = dayjs(obj[key], parsingFormat).isSame(value.minSelectedDate);
@@ -1594,7 +1608,7 @@ class AnnaFilterService {
1594
1608
  if (this.sliderSet.has(key)) {
1595
1609
  filteredData = filteredData.filter((obj) => obj[key] >= value.min && obj[key] <= value.max);
1596
1610
  }
1597
- else if (key === "startDate" || key === "endDate" || key === "AirDate" || key === "flightStartDate" || key === "flightEndDate" || key == "date" || key == "revisionStartDate") {
1611
+ else if (key === "startDate" || key === "endDate" || key === "AirDate" || key === "flightStartDate" || key === "flightEndDate" || key == "date" || key == "revisionStartDate" || key === "Week") {
1598
1612
  filteredData = filteredData.filter((obj) => this.isObjectInTheRange(obj, value, key));
1599
1613
  }
1600
1614
  else if (key === "period") {
@@ -1923,6 +1937,24 @@ class AnnaNonEditableGenericTableComponent {
1923
1937
  this.tooltipRadioTextMap.set("udGrpPercent", "UD GRP %");
1924
1938
  this.tooltipRadioTextMap.set("odImpsPercent", "OD IMPS %");
1925
1939
  this.tooltipRadioTextMap.set("odGrpPercent", "OD GRP %");
1940
+ this.tooltipRadioTextMap.set("SellerLine", "Seller Line #");
1941
+ this.tooltipRadioTextMap.set("BuyerLine", "Buy Line #");
1942
+ this.tooltipRadioTextMap.set("SpotStatus", "Spot Status");
1943
+ this.tooltipRadioTextMap.set("InventoryCode", "Inventory Code");
1944
+ this.tooltipRadioTextMap.set("BuyerProgramName", "Buyer Program Name");
1945
+ this.tooltipRadioTextMap.set("RevenueClass", "Revenue Class");
1946
+ this.tooltipRadioTextMap.set("WeeklyAUR", "AUR");
1947
+ this.tooltipRadioTextMap.set("BookedRate", "Booked Rate");
1948
+ this.tooltipRadioTextMap.set("BookedRTG", "Booked RTG");
1949
+ this.tooltipRadioTextMap.set("BookedIMPS", "Booked IMPS('000)");
1950
+ this.tooltipRadioTextMap.set("AURTG", "AU RTG");
1951
+ this.tooltipRadioTextMap.set("AUIMPS", "AU IMPS('000)");
1952
+ this.tooltipRadioTextMap.set("PostedRatingsOrImpressions", "Posted RTG");
1953
+ this.tooltipRadioTextMap.set("ScheduleFlightWeek", "Schedule Week");
1954
+ this.tooltipRadioTextMap.set("ScheduledDay", "Scheduled Day");
1955
+ this.tooltipRadioTextMap.set("AirStatus", "Aired Status");
1956
+ this.tooltipRadioTextMap.set("AirDateAndTime", "Aired Date & Time");
1957
+ this.tooltipRadioTextMap.set("AdId", "Ad-Id");
1926
1958
  }
1927
1959
  generateTableDataWrapper() {
1928
1960
  this.showSkeletonLoading = true;