@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 });
|
|
@@ -1337,7 +1346,8 @@ class AnnaFilterService {
|
|
|
1337
1346
|
"BookedCPP",
|
|
1338
1347
|
"BookedCPM"
|
|
1339
1348
|
];
|
|
1340
|
-
const calendarArr = ["period", "AirDate", "flightStartDate", "flightEndDate", "date",
|
|
1349
|
+
const calendarArr = ["period", "AirDate", "flightStartDate", "flightEndDate", "date",
|
|
1350
|
+
"startDate", "endDate", "revisionStartDate", "GeneratedOn", "Week", "timeoutDate"];
|
|
1341
1351
|
const timeArr = ["StartTimeForFilter", "EndTimeForFilter", "time",
|
|
1342
1352
|
"start_time_for_filter", "end_time_for_filter", "startEndTimeMulti", "startEndTime", "timeoutTime"];
|
|
1343
1353
|
this.sliderSet = new Set(sliderArr);
|
|
@@ -1422,6 +1432,7 @@ class AnnaFilterService {
|
|
|
1422
1432
|
this.selectedRadio == "endDate" ||
|
|
1423
1433
|
this.selectedRadio == "period" ||
|
|
1424
1434
|
this.selectedRadio == "AirDate" ||
|
|
1435
|
+
this.selectedRadio == "timeoutDate" ||
|
|
1425
1436
|
this.selectedRadio === "flightStartDate" ||
|
|
1426
1437
|
this.selectedRadio === "flightEndDate" ||
|
|
1427
1438
|
this.selectedRadio == "date" ||
|
|
@@ -1463,7 +1474,7 @@ class AnnaFilterService {
|
|
|
1463
1474
|
if (this.sliderSet.has(key)) {
|
|
1464
1475
|
filteredData = filteredData.filter((obj) => obj[key] >= value.min && obj[key] <= value.max);
|
|
1465
1476
|
}
|
|
1466
|
-
else if (key === "startDate" || key === "endDate" || key === "AirDate" || key === "flightStartDate" || key === "flightEndDate" || key == "date" || key == "revisionStartDate" || key == "GeneratedOn" || key === "Week") {
|
|
1477
|
+
else if (key === "startDate" || key === "endDate" || key === "AirDate" || key === "timeoutDate" || key === "flightStartDate" || key === "flightEndDate" || key == "date" || key == "revisionStartDate" || key == "GeneratedOn" || key === "Week") {
|
|
1467
1478
|
filteredData = filteredData.filter((obj) => this.isObjectInTheRange(obj, value, key));
|
|
1468
1479
|
}
|
|
1469
1480
|
else if (key === "period") {
|
|
@@ -1578,7 +1589,7 @@ class AnnaFilterService {
|
|
|
1578
1589
|
return ((startDateIsBetweenSelDate || startDateIsSameAsSelStartDate) &&
|
|
1579
1590
|
(endDateIsBetweenSelDate || endDateIsSameAsSelEndDate));
|
|
1580
1591
|
}
|
|
1581
|
-
else if (key === "AirDate" || key === "flightStartDate" || key === "flightEndDate" || key === "Week") {
|
|
1592
|
+
else if (key === "AirDate" || key === "flightStartDate" || key === "flightEndDate" || key === "Week" || key === "timeoutDate") {
|
|
1582
1593
|
parsingFormat = "MM/DD/YYYY";
|
|
1583
1594
|
let dateIsBetweenSelDate = dayjs(obj[key], parsingFormat).isBetween(value.minSelectedDate, value.maxSelectedDate);
|
|
1584
1595
|
let dateIsSameAsSelStartDate = dayjs(obj[key], parsingFormat).isSame(value.minSelectedDate);
|
|
@@ -1636,7 +1647,8 @@ class AnnaFilterService {
|
|
|
1636
1647
|
if (this.sliderSet.has(key)) {
|
|
1637
1648
|
filteredData = filteredData.filter((obj) => obj[key] >= value.min && obj[key] <= value.max);
|
|
1638
1649
|
}
|
|
1639
|
-
else if (key === "startDate" || key === "endDate" || key === "AirDate" || key === "
|
|
1650
|
+
else if (key === "startDate" || key === "endDate" || key === "AirDate" || key === "timeoutDate"
|
|
1651
|
+
|| key === "flightStartDate" || key === "flightEndDate" || key == "date" || key == "revisionStartDate" || key == "GeneratedOn" || key === "Week") {
|
|
1640
1652
|
filteredData = filteredData.filter((obj) => this.isObjectInTheRange(obj, value, key));
|
|
1641
1653
|
}
|
|
1642
1654
|
else if (key === "period") {
|
|
@@ -2042,6 +2054,7 @@ class AnnaNonEditableGenericTableComponent {
|
|
|
2042
2054
|
this.tooltipRadioTextMap.set("estimateNo", "Estimate#");
|
|
2043
2055
|
this.tooltipRadioTextMap.set("primaryBuyer", "Primary Buyer");
|
|
2044
2056
|
this.tooltipRadioTextMap.set("primaryBuyerName", "Primary Buyer");
|
|
2057
|
+
this.tooltipRadioTextMap.set("timeoutDate", "Timeout Date");
|
|
2045
2058
|
}
|
|
2046
2059
|
generateTableDataWrapper() {
|
|
2047
2060
|
this.showSkeletonLoading = true;
|