@annalib/anna-core 12.10.10 → 12.10.12
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/directives/show-ellipsis-text/show-ellipsis-text.directive.mjs +11 -2
- package/esm2020/lib/anna-core-shared-lib/services/anna-filter.service.mjs +8 -5
- package/esm2020/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.mjs +2 -1
- package/fesm2015/annalib-anna-core.mjs +18 -5
- package/fesm2015/annalib-anna-core.mjs.map +1 -1
- package/fesm2020/annalib-anna-core.mjs +18 -5
- package/fesm2020/annalib-anna-core.mjs.map +1 -1
- package/lib/anna-core-shared-lib/directives/show-ellipsis-text/show-ellipsis-text.directive.d.ts +1 -0
- package/package.json +1 -1
|
@@ -217,12 +217,21 @@ class showEllipsisTextOnHoverDirective {
|
|
|
217
217
|
}
|
|
218
218
|
onMouseEnter() {
|
|
219
219
|
const element = this.elementRef.nativeElement;
|
|
220
|
-
if (element.offsetWidth < element.scrollWidth) {
|
|
220
|
+
if (element.offsetWidth < element.scrollWidth || this.checkRanges(element)) {
|
|
221
221
|
element.title = element.textContent;
|
|
222
222
|
}
|
|
223
223
|
else if (element.title)
|
|
224
224
|
element.removeAttribute('title');
|
|
225
225
|
}
|
|
226
|
+
checkRanges(el) {
|
|
227
|
+
const range = new Range();
|
|
228
|
+
range.selectNodeContents(el);
|
|
229
|
+
const range_rect = range.getBoundingClientRect();
|
|
230
|
+
const el_rect = el.getBoundingClientRect();
|
|
231
|
+
let paddingOnRight = window.getComputedStyle(el).paddingRight;
|
|
232
|
+
let padding = +(paddingOnRight.endsWith("px") ? paddingOnRight.slice(0, -2) : paddingOnRight);
|
|
233
|
+
return (range_rect.right + padding) > el_rect.right;
|
|
234
|
+
}
|
|
226
235
|
}
|
|
227
236
|
showEllipsisTextOnHoverDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: showEllipsisTextOnHoverDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
228
237
|
showEllipsisTextOnHoverDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: showEllipsisTextOnHoverDirective, selector: "[showEllipsisTextOnHover]", host: { listeners: { "mouseenter": "onMouseEnter()" } }, ngImport: i0 });
|
|
@@ -1347,7 +1356,8 @@ class AnnaFilterService {
|
|
|
1347
1356
|
"BookedCPP",
|
|
1348
1357
|
"BookedCPM"
|
|
1349
1358
|
];
|
|
1350
|
-
const calendarArr = ["period", "AirDate", "flightStartDate", "flightEndDate", "date",
|
|
1359
|
+
const calendarArr = ["period", "AirDate", "flightStartDate", "flightEndDate", "date",
|
|
1360
|
+
"startDate", "endDate", "revisionStartDate", "GeneratedOn", "Week", "timeoutDate"];
|
|
1351
1361
|
const timeArr = ["StartTimeForFilter", "EndTimeForFilter", "time",
|
|
1352
1362
|
"start_time_for_filter", "end_time_for_filter", "startEndTimeMulti", "startEndTime", "timeoutTime"];
|
|
1353
1363
|
this.sliderSet = new Set(sliderArr);
|
|
@@ -1432,6 +1442,7 @@ class AnnaFilterService {
|
|
|
1432
1442
|
this.selectedRadio == "endDate" ||
|
|
1433
1443
|
this.selectedRadio == "period" ||
|
|
1434
1444
|
this.selectedRadio == "AirDate" ||
|
|
1445
|
+
this.selectedRadio == "timeoutDate" ||
|
|
1435
1446
|
this.selectedRadio === "flightStartDate" ||
|
|
1436
1447
|
this.selectedRadio === "flightEndDate" ||
|
|
1437
1448
|
this.selectedRadio == "date" ||
|
|
@@ -1473,7 +1484,7 @@ class AnnaFilterService {
|
|
|
1473
1484
|
if (this.sliderSet.has(key)) {
|
|
1474
1485
|
filteredData = filteredData.filter((obj) => obj[key] >= value.min && obj[key] <= value.max);
|
|
1475
1486
|
}
|
|
1476
|
-
else if (key === "startDate" || key === "endDate" || key === "AirDate" || key === "flightStartDate" || key === "flightEndDate" || key == "date" || key == "revisionStartDate" || key == "GeneratedOn" || key === "Week") {
|
|
1487
|
+
else if (key === "startDate" || key === "endDate" || key === "AirDate" || key === "timeoutDate" || key === "flightStartDate" || key === "flightEndDate" || key == "date" || key == "revisionStartDate" || key == "GeneratedOn" || key === "Week") {
|
|
1477
1488
|
filteredData = filteredData.filter((obj) => this.isObjectInTheRange(obj, value, key));
|
|
1478
1489
|
}
|
|
1479
1490
|
else if (key === "period") {
|
|
@@ -1588,7 +1599,7 @@ class AnnaFilterService {
|
|
|
1588
1599
|
return ((startDateIsBetweenSelDate || startDateIsSameAsSelStartDate) &&
|
|
1589
1600
|
(endDateIsBetweenSelDate || endDateIsSameAsSelEndDate));
|
|
1590
1601
|
}
|
|
1591
|
-
else if (key === "AirDate" || key === "flightStartDate" || key === "flightEndDate" || key === "Week") {
|
|
1602
|
+
else if (key === "AirDate" || key === "flightStartDate" || key === "flightEndDate" || key === "Week" || key === "timeoutDate") {
|
|
1592
1603
|
parsingFormat = "MM/DD/YYYY";
|
|
1593
1604
|
let dateIsBetweenSelDate = dayjs(obj[key], parsingFormat).isBetween(value.minSelectedDate, value.maxSelectedDate);
|
|
1594
1605
|
let dateIsSameAsSelStartDate = dayjs(obj[key], parsingFormat).isSame(value.minSelectedDate);
|
|
@@ -1646,7 +1657,8 @@ class AnnaFilterService {
|
|
|
1646
1657
|
if (this.sliderSet.has(key)) {
|
|
1647
1658
|
filteredData = filteredData.filter((obj) => obj[key] >= value.min && obj[key] <= value.max);
|
|
1648
1659
|
}
|
|
1649
|
-
else if (key === "startDate" || key === "endDate" || key === "AirDate" || key === "
|
|
1660
|
+
else if (key === "startDate" || key === "endDate" || key === "AirDate" || key === "timeoutDate"
|
|
1661
|
+
|| key === "flightStartDate" || key === "flightEndDate" || key == "date" || key == "revisionStartDate" || key == "GeneratedOn" || key === "Week") {
|
|
1650
1662
|
filteredData = filteredData.filter((obj) => this.isObjectInTheRange(obj, value, key));
|
|
1651
1663
|
}
|
|
1652
1664
|
else if (key === "period") {
|
|
@@ -2044,6 +2056,7 @@ class AnnaNonEditableGenericTableComponent {
|
|
|
2044
2056
|
this.tooltipRadioTextMap.set("estimateNo", "Estimate#");
|
|
2045
2057
|
this.tooltipRadioTextMap.set("primaryBuyer", "Primary Buyer");
|
|
2046
2058
|
this.tooltipRadioTextMap.set("primaryBuyerName", "Primary Buyer");
|
|
2059
|
+
this.tooltipRadioTextMap.set("timeoutDate", "Timeout Date");
|
|
2047
2060
|
}
|
|
2048
2061
|
generateTableDataWrapper() {
|
|
2049
2062
|
this.showSkeletonLoading = true;
|