@annalib/anna-core 35.4.1 → 35.5.1
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.
|
@@ -570,11 +570,23 @@ class ShowEllipsisTextOnHoverDirective {
|
|
|
570
570
|
}
|
|
571
571
|
onMouseEnter() {
|
|
572
572
|
const domElement = this.elementRef.nativeElement;
|
|
573
|
-
|
|
573
|
+
const clone = document.createElement("span");
|
|
574
|
+
clone.style.visibility = "hidden";
|
|
575
|
+
clone.style.whiteSpace = "nowrap";
|
|
576
|
+
clone.style.position = "absolute";
|
|
577
|
+
clone.style.font = window?.getComputedStyle(domElement)?.font;
|
|
578
|
+
clone.textContent = domElement.textContent;
|
|
579
|
+
document.body.appendChild(clone);
|
|
580
|
+
const fullWidth = clone.offsetWidth;
|
|
581
|
+
if (domElement.offsetWidth < domElement.scrollWidth ||
|
|
582
|
+
this.checkPositionsInDecimals(domElement) ||
|
|
583
|
+
fullWidth > domElement.offsetWidth) {
|
|
574
584
|
domElement.title = domElement.textContent === "" ? domElement.value : domElement.textContent;
|
|
575
585
|
}
|
|
576
|
-
else if (domElement.title)
|
|
586
|
+
else if (domElement.title) {
|
|
577
587
|
domElement.removeAttribute("title");
|
|
588
|
+
}
|
|
589
|
+
document.body.removeChild(clone);
|
|
578
590
|
}
|
|
579
591
|
checkPositionsInDecimals(domElement) {
|
|
580
592
|
// if we don't have any children element Then we can't calculate
|
|
@@ -1835,6 +1847,8 @@ class AnnaFilterService {
|
|
|
1835
1847
|
"bookedVal",
|
|
1836
1848
|
"ModifiedCpm",
|
|
1837
1849
|
"ModifiedCpp",
|
|
1850
|
+
"Cpm",
|
|
1851
|
+
"Cpp",
|
|
1838
1852
|
]);
|
|
1839
1853
|
this.isFilterSortActive = {};
|
|
1840
1854
|
this.resetFilterSortActiveStatus = true;
|
|
@@ -2070,7 +2084,11 @@ class AnnaFilterService {
|
|
|
2070
2084
|
"actualImpressions",
|
|
2071
2085
|
"totalAmount",
|
|
2072
2086
|
"totalImps",
|
|
2073
|
-
"totalGrp"
|
|
2087
|
+
"totalGrp",
|
|
2088
|
+
"BookedNormalizedRating",
|
|
2089
|
+
"BookedNormalizedImps",
|
|
2090
|
+
"Cpp",
|
|
2091
|
+
"Cpm",
|
|
2074
2092
|
];
|
|
2075
2093
|
const calendarArr = [
|
|
2076
2094
|
"period",
|
|
@@ -3327,9 +3345,19 @@ class AnnaFilterService {
|
|
|
3327
3345
|
item.disableTooltipIcon = true;
|
|
3328
3346
|
item.filterSortObjectKeys.forEach((key) => {
|
|
3329
3347
|
const latestFilters = this.appliedFiltersArray;
|
|
3330
|
-
if (
|
|
3331
|
-
|
|
3332
|
-
|
|
3348
|
+
// if (
|
|
3349
|
+
// latestFilters.length > 0 &&
|
|
3350
|
+
// item.disableTooltipIcon &&
|
|
3351
|
+
// latestFilters[latestFilters.length - 1] === key
|
|
3352
|
+
// ) {
|
|
3353
|
+
// item.disableTooltipIcon = false;
|
|
3354
|
+
// }
|
|
3355
|
+
// Enable the tooltip icon if *any* filter is currently applied on this column
|
|
3356
|
+
// Earlier we were only enabling the icon when the column happened to be the **last**
|
|
3357
|
+
// applied filter. This caused scenarios where the icon became disabled when users
|
|
3358
|
+
// switched between easy-filters after applying a column filter (e.g. AIR DATE & TIME).
|
|
3359
|
+
// Now, as long as the column has an active filter, the icon will stay enabled.
|
|
3360
|
+
if (item.disableTooltipIcon && latestFilters.includes(key)) {
|
|
3333
3361
|
item.disableTooltipIcon = false;
|
|
3334
3362
|
}
|
|
3335
3363
|
if (item.disableTooltipIcon) {
|
|
@@ -5330,6 +5358,12 @@ class AnnaNonEditableGenericTableComponent {
|
|
|
5330
5358
|
this.tooltipRadioTextMap.set("smReviewedDateTime", "SM Reviewed At");
|
|
5331
5359
|
this.tooltipRadioTextMap.set("sentForEntryBy", "Sent For Entry By");
|
|
5332
5360
|
this.tooltipRadioTextMap.set("sentForEntryDateTime", "Sent For Entry At");
|
|
5361
|
+
this.tooltipRadioTextMap.set("sendForEcClickedAt", "Send For EC Clicked At");
|
|
5362
|
+
this.tooltipRadioTextMap.set("ecGridFileFetchedAt", "EC Grid File Fetched At");
|
|
5363
|
+
this.tooltipRadioTextMap.set("jsonSentForEntryAt", "Json Sent For Entry At");
|
|
5364
|
+
this.tooltipRadioTextMap.set("entryCompletedAt", "Entry Completed At");
|
|
5365
|
+
this.tooltipRadioTextMap.set("orderConfirmedAt", "Order Confirmed At");
|
|
5366
|
+
this.tooltipRadioTextMap.set("linesSentForEdit", "Lines Sent For Edit At");
|
|
5333
5367
|
this.tooltipRadioTextMap.set("bookedDps", "Booked DPs");
|
|
5334
5368
|
this.tooltipRadioTextMap.set("totalBookedGrp", "Total Booked GRP");
|
|
5335
5369
|
this.tooltipRadioTextMap.set("totalBookedImps", "Total Booked IMPS");
|
|
@@ -6283,7 +6317,9 @@ class AnnaNumberFormatService {
|
|
|
6283
6317
|
const result = AnnaNumberFormatService.GetValueInUnits(Math.abs(inputValue));
|
|
6284
6318
|
let value = result[0];
|
|
6285
6319
|
const unit = result[1];
|
|
6286
|
-
|
|
6320
|
+
const factor = 10 ** digitsToRoundDecimalPoint;
|
|
6321
|
+
value = Math.round(((+value) + Number.EPSILON) * factor) / factor;
|
|
6322
|
+
// value = +(+value).toFixed(digitsToRoundDecimalPoint);
|
|
6287
6323
|
if (inputValue < 0) {
|
|
6288
6324
|
value *= -1;
|
|
6289
6325
|
}
|