@annalib/anna-core 8.0.17 → 8.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.
@@ -1104,7 +1104,9 @@ class AnnaSortService {
1104
1104
  });
1105
1105
  }
1106
1106
  else {
1107
- data.sort((a, b) => {
1107
+ let dataWithoutEmptyOrHyphenValues = data.filter(n => n[key] != "-");
1108
+ let rowsWithHyphenOrZeroValues = data.filter(n => n[key] == "-");
1109
+ dataWithoutEmptyOrHyphenValues.sort((a, b) => {
1108
1110
  param1 = a[key];
1109
1111
  param2 = b[key];
1110
1112
  if (param1 !== param2) {
@@ -1112,7 +1114,10 @@ class AnnaSortService {
1112
1114
  }
1113
1115
  return 0;
1114
1116
  });
1117
+ data = isAsc ? [...rowsWithHyphenOrZeroValues, ...dataWithoutEmptyOrHyphenValues] :
1118
+ [...dataWithoutEmptyOrHyphenValues, ...rowsWithHyphenOrZeroValues];
1115
1119
  }
1120
+ console.log(data.map(n => n[key]));
1116
1121
  return data;
1117
1122
  }
1118
1123
  sortEnterEditLurAndCsrPage(isAsc, data, key) {
@@ -1289,9 +1294,16 @@ class AnnaFilterService {
1289
1294
  "userChanges",
1290
1295
  "userMG",
1291
1296
  "WeeklyAUR",
1292
- "WeeklyAURatingOrImpressions"
1297
+ "WeeklyAURatingOrImpressions",
1298
+ "BookedRate",
1299
+ "BookedRTG",
1300
+ "BookedIMPS",
1301
+ "AURTG",
1302
+ "AURTG",
1303
+ "PostedRating",
1304
+ "PostedImpressions",
1293
1305
  ];
1294
- const calendarArr = ["period", "AirDate", "flightStartDate", "flightEndDate", "date", "startDate", "endDate", "revisionStartDate"];
1306
+ const calendarArr = ["period", "AirDate", "flightStartDate", "flightEndDate", "date", "startDate", "endDate", "revisionStartDate", "Week"];
1295
1307
  const timeArr = ["StartTimeForFilter", "EndTimeForFilter", "time",
1296
1308
  "start_time_for_filter", "end_time_for_filter", "startEndTimeMulti", "startEndTime"];
1297
1309
  this.sliderSet = new Set(sliderArr);
@@ -1379,6 +1391,7 @@ class AnnaFilterService {
1379
1391
  this.selectedRadio === "flightStartDate" ||
1380
1392
  this.selectedRadio === "flightEndDate" ||
1381
1393
  this.selectedRadio == "date" ||
1394
+ this.selectedRadio == "Week" ||
1382
1395
  this.selectedRadio == "revisionStartDate") {
1383
1396
  isFiltered =
1384
1397
  !isEqual(this.initialValueMap.get(this.selectedRadio), this.tooltipSelectedMap.get(this.selectedRadio)) &&
@@ -1415,7 +1428,8 @@ class AnnaFilterService {
1415
1428
  if (this.sliderSet.has(key)) {
1416
1429
  filteredData = filteredData.filter((obj) => obj[key] >= value.min && obj[key] <= value.max);
1417
1430
  }
1418
- else if (key === "startDate" || key === "endDate" || key === "AirDate" || key === "flightStartDate" || key === "flightEndDate" || key == "date" || key == "revisionStartDate") {
1431
+ else if (key === "startDate" || key === "endDate" || key === "AirDate" || key === "flightStartDate" || key === "flightEndDate" || key == "date" || key == "revisionStartDate"
1432
+ || key == "Week") {
1419
1433
  filteredData = filteredData.filter((obj) => this.isObjectInTheRange(obj, value, key));
1420
1434
  }
1421
1435
  else if (key === "period") {
@@ -1530,7 +1544,7 @@ class AnnaFilterService {
1530
1544
  return ((startDateIsBetweenSelDate || startDateIsSameAsSelStartDate) &&
1531
1545
  (endDateIsBetweenSelDate || endDateIsSameAsSelEndDate));
1532
1546
  }
1533
- else if (key === "AirDate" || key === "flightStartDate" || key === "flightEndDate") {
1547
+ else if (key === "AirDate" || key === "flightStartDate" || key === "flightEndDate" || key === "Week") {
1534
1548
  parsingFormat = "MM/DD/YYYY";
1535
1549
  let dateIsBetweenSelDate = dayjs(obj[key], parsingFormat).isBetween(value.minSelectedDate, value.maxSelectedDate);
1536
1550
  let dateIsSameAsSelStartDate = dayjs(obj[key], parsingFormat).isSame(value.minSelectedDate);
@@ -1588,7 +1602,7 @@ class AnnaFilterService {
1588
1602
  if (this.sliderSet.has(key)) {
1589
1603
  filteredData = filteredData.filter((obj) => obj[key] >= value.min && obj[key] <= value.max);
1590
1604
  }
1591
- else if (key === "startDate" || key === "endDate" || key === "AirDate" || key === "flightStartDate" || key === "flightEndDate" || key == "date" || key == "revisionStartDate") {
1605
+ else if (key === "startDate" || key === "endDate" || key === "AirDate" || key === "flightStartDate" || key === "flightEndDate" || key == "date" || key == "revisionStartDate" || key === "Week") {
1592
1606
  filteredData = filteredData.filter((obj) => this.isObjectInTheRange(obj, value, key));
1593
1607
  }
1594
1608
  else if (key === "period") {
@@ -1932,6 +1946,24 @@ class AnnaNonEditableGenericTableComponent {
1932
1946
  this.tooltipRadioTextMap.set("udGrpPercent", "UD GRP %");
1933
1947
  this.tooltipRadioTextMap.set("odImpsPercent", "OD IMPS %");
1934
1948
  this.tooltipRadioTextMap.set("odGrpPercent", "OD GRP %");
1949
+ this.tooltipRadioTextMap.set("SellerLine", "Seller Line #");
1950
+ this.tooltipRadioTextMap.set("BuyerLine", "Buy Line #");
1951
+ this.tooltipRadioTextMap.set("SpotStatus", "Spot Status");
1952
+ this.tooltipRadioTextMap.set("InventoryCode", "Inventory Code");
1953
+ this.tooltipRadioTextMap.set("BuyerProgramName", "Buyer Program Name");
1954
+ this.tooltipRadioTextMap.set("RevenueClass", "Revenue Class");
1955
+ this.tooltipRadioTextMap.set("WeeklyAUR", "AUR");
1956
+ this.tooltipRadioTextMap.set("BookedRate", "Booked Rate");
1957
+ this.tooltipRadioTextMap.set("BookedRTG", "Booked RTG");
1958
+ this.tooltipRadioTextMap.set("BookedIMPS", "Booked IMPS('000)");
1959
+ this.tooltipRadioTextMap.set("AURTG", "AU RTG");
1960
+ this.tooltipRadioTextMap.set("AUIMPS", "AU IMPS('000)");
1961
+ this.tooltipRadioTextMap.set("PostedRatingsOrImpressions", "Posted RTG");
1962
+ this.tooltipRadioTextMap.set("ScheduleFlightWeek", "Schedule Week");
1963
+ this.tooltipRadioTextMap.set("ScheduledDay", "Scheduled Day");
1964
+ this.tooltipRadioTextMap.set("AirStatus", "Aired Status");
1965
+ this.tooltipRadioTextMap.set("AirDateAndTime", "Aired Date & Time");
1966
+ this.tooltipRadioTextMap.set("AdId", "Ad-Id");
1935
1967
  }
1936
1968
  generateTableDataWrapper() {
1937
1969
  this.showSkeletonLoading = true;