@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.
@@ -1114,7 +1114,9 @@ class AnnaSortService {
1114
1114
  });
1115
1115
  }
1116
1116
  else {
1117
- data.sort((a, b) => {
1117
+ let dataWithoutEmptyOrHyphenValues = data.filter(n => n[key] != "-");
1118
+ let rowsWithHyphenOrZeroValues = data.filter(n => n[key] == "-");
1119
+ dataWithoutEmptyOrHyphenValues.sort((a, b) => {
1118
1120
  param1 = a[key];
1119
1121
  param2 = b[key];
1120
1122
  if (param1 !== param2) {
@@ -1122,7 +1124,10 @@ class AnnaSortService {
1122
1124
  }
1123
1125
  return 0;
1124
1126
  });
1127
+ data = isAsc ? [...rowsWithHyphenOrZeroValues, ...dataWithoutEmptyOrHyphenValues] :
1128
+ [...dataWithoutEmptyOrHyphenValues, ...rowsWithHyphenOrZeroValues];
1125
1129
  }
1130
+ console.log(data.map(n => n[key]));
1126
1131
  return data;
1127
1132
  }
1128
1133
  sortEnterEditLurAndCsrPage(isAsc, data, key) {
@@ -1299,9 +1304,16 @@ class AnnaFilterService {
1299
1304
  "userChanges",
1300
1305
  "userMG",
1301
1306
  "WeeklyAUR",
1302
- "WeeklyAURatingOrImpressions"
1307
+ "WeeklyAURatingOrImpressions",
1308
+ "BookedRate",
1309
+ "BookedRTG",
1310
+ "BookedIMPS",
1311
+ "AURTG",
1312
+ "AURTG",
1313
+ "PostedRating",
1314
+ "PostedImpressions",
1303
1315
  ];
1304
- const calendarArr = ["period", "AirDate", "flightStartDate", "flightEndDate", "date", "startDate", "endDate", "revisionStartDate"];
1316
+ const calendarArr = ["period", "AirDate", "flightStartDate", "flightEndDate", "date", "startDate", "endDate", "revisionStartDate", "Week"];
1305
1317
  const timeArr = ["StartTimeForFilter", "EndTimeForFilter", "time",
1306
1318
  "start_time_for_filter", "end_time_for_filter", "startEndTimeMulti", "startEndTime"];
1307
1319
  this.sliderSet = new Set(sliderArr);
@@ -1389,6 +1401,7 @@ class AnnaFilterService {
1389
1401
  this.selectedRadio === "flightStartDate" ||
1390
1402
  this.selectedRadio === "flightEndDate" ||
1391
1403
  this.selectedRadio == "date" ||
1404
+ this.selectedRadio == "Week" ||
1392
1405
  this.selectedRadio == "revisionStartDate") {
1393
1406
  isFiltered =
1394
1407
  !isEqual(this.initialValueMap.get(this.selectedRadio), this.tooltipSelectedMap.get(this.selectedRadio)) &&
@@ -1425,7 +1438,8 @@ class AnnaFilterService {
1425
1438
  if (this.sliderSet.has(key)) {
1426
1439
  filteredData = filteredData.filter((obj) => obj[key] >= value.min && obj[key] <= value.max);
1427
1440
  }
1428
- else if (key === "startDate" || key === "endDate" || key === "AirDate" || key === "flightStartDate" || key === "flightEndDate" || key == "date" || key == "revisionStartDate") {
1441
+ else if (key === "startDate" || key === "endDate" || key === "AirDate" || key === "flightStartDate" || key === "flightEndDate" || key == "date" || key == "revisionStartDate"
1442
+ || key == "Week") {
1429
1443
  filteredData = filteredData.filter((obj) => this.isObjectInTheRange(obj, value, key));
1430
1444
  }
1431
1445
  else if (key === "period") {
@@ -1540,7 +1554,7 @@ class AnnaFilterService {
1540
1554
  return ((startDateIsBetweenSelDate || startDateIsSameAsSelStartDate) &&
1541
1555
  (endDateIsBetweenSelDate || endDateIsSameAsSelEndDate));
1542
1556
  }
1543
- else if (key === "AirDate" || key === "flightStartDate" || key === "flightEndDate") {
1557
+ else if (key === "AirDate" || key === "flightStartDate" || key === "flightEndDate" || key === "Week") {
1544
1558
  parsingFormat = "MM/DD/YYYY";
1545
1559
  let dateIsBetweenSelDate = dayjs(obj[key], parsingFormat).isBetween(value.minSelectedDate, value.maxSelectedDate);
1546
1560
  let dateIsSameAsSelStartDate = dayjs(obj[key], parsingFormat).isSame(value.minSelectedDate);
@@ -1598,7 +1612,7 @@ class AnnaFilterService {
1598
1612
  if (this.sliderSet.has(key)) {
1599
1613
  filteredData = filteredData.filter((obj) => obj[key] >= value.min && obj[key] <= value.max);
1600
1614
  }
1601
- else if (key === "startDate" || key === "endDate" || key === "AirDate" || key === "flightStartDate" || key === "flightEndDate" || key == "date" || key == "revisionStartDate") {
1615
+ else if (key === "startDate" || key === "endDate" || key === "AirDate" || key === "flightStartDate" || key === "flightEndDate" || key == "date" || key == "revisionStartDate" || key === "Week") {
1602
1616
  filteredData = filteredData.filter((obj) => this.isObjectInTheRange(obj, value, key));
1603
1617
  }
1604
1618
  else if (key === "period") {
@@ -1934,6 +1948,24 @@ class AnnaNonEditableGenericTableComponent {
1934
1948
  this.tooltipRadioTextMap.set("udGrpPercent", "UD GRP %");
1935
1949
  this.tooltipRadioTextMap.set("odImpsPercent", "OD IMPS %");
1936
1950
  this.tooltipRadioTextMap.set("odGrpPercent", "OD GRP %");
1951
+ this.tooltipRadioTextMap.set("SellerLine", "Seller Line #");
1952
+ this.tooltipRadioTextMap.set("BuyerLine", "Buy Line #");
1953
+ this.tooltipRadioTextMap.set("SpotStatus", "Spot Status");
1954
+ this.tooltipRadioTextMap.set("InventoryCode", "Inventory Code");
1955
+ this.tooltipRadioTextMap.set("BuyerProgramName", "Buyer Program Name");
1956
+ this.tooltipRadioTextMap.set("RevenueClass", "Revenue Class");
1957
+ this.tooltipRadioTextMap.set("WeeklyAUR", "AUR");
1958
+ this.tooltipRadioTextMap.set("BookedRate", "Booked Rate");
1959
+ this.tooltipRadioTextMap.set("BookedRTG", "Booked RTG");
1960
+ this.tooltipRadioTextMap.set("BookedIMPS", "Booked IMPS('000)");
1961
+ this.tooltipRadioTextMap.set("AURTG", "AU RTG");
1962
+ this.tooltipRadioTextMap.set("AUIMPS", "AU IMPS('000)");
1963
+ this.tooltipRadioTextMap.set("PostedRatingsOrImpressions", "Posted RTG");
1964
+ this.tooltipRadioTextMap.set("ScheduleFlightWeek", "Schedule Week");
1965
+ this.tooltipRadioTextMap.set("ScheduledDay", "Scheduled Day");
1966
+ this.tooltipRadioTextMap.set("AirStatus", "Aired Status");
1967
+ this.tooltipRadioTextMap.set("AirDateAndTime", "Aired Date & Time");
1968
+ this.tooltipRadioTextMap.set("AdId", "Ad-Id");
1937
1969
  }
1938
1970
  generateTableDataWrapper() {
1939
1971
  this.showSkeletonLoading = true;