@annalib/anna-core 18.4.2 → 18.5.0
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/digits-only/digits-only.directive.mjs +6 -3
- package/esm2020/lib/anna-core-shared-lib/services/anna-filter.service.mjs +11 -6
- package/esm2020/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.mjs +3 -3
- package/fesm2015/annalib-anna-core.mjs +17 -10
- package/fesm2015/annalib-anna-core.mjs.map +1 -1
- package/fesm2020/annalib-anna-core.mjs +17 -9
- package/fesm2020/annalib-anna-core.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1451,12 +1451,14 @@ class AnnaFilterService {
|
|
|
1451
1451
|
"ViolatedBookedEURValue",
|
|
1452
1452
|
"ViolatingBookedEURValue",
|
|
1453
1453
|
"ViolatingBookedValue",
|
|
1454
|
-
"Rebate"
|
|
1454
|
+
"Rebate",
|
|
1455
|
+
"OtherAvailableSpotsTableWeeklyAUR"
|
|
1455
1456
|
];
|
|
1456
1457
|
const calendarArr = ["period", "AirDate", "flightStartDate", "flightEndDate", "date",
|
|
1457
1458
|
"startDate", "endDate", "revisionStartDate", "GeneratedOn", "Week", "timeoutDate"];
|
|
1458
1459
|
const timeArr = ["StartTimeForFilter", "EndTimeForFilter", "time", "startTimeForFilter", "endTimeForFilter",
|
|
1459
|
-
"start_time_for_filter", "end_time_for_filter", "startEndTimeMulti", "startEndTime", "timeoutTime", "OtherAvailableSpotsTableStartTime"
|
|
1460
|
+
"start_time_for_filter", "end_time_for_filter", "startEndTimeMulti", "startEndTime", "timeoutTime", "OtherAvailableSpotsTableStartTime",
|
|
1461
|
+
"OtherAvailableSpotsTableEndTime"];
|
|
1460
1462
|
this.sliderSet = new Set(sliderArr);
|
|
1461
1463
|
this.calendarSet = new Set(calendarArr);
|
|
1462
1464
|
this.timeSet = new Set(timeArr);
|
|
@@ -1522,6 +1524,7 @@ class AnnaFilterService {
|
|
|
1522
1524
|
else if (this.selectedRadio == "StartTimeForFilter" || this.selectedRadio == "EndTimeForFilter" ||
|
|
1523
1525
|
this.selectedRadio == "startTimeForFilter" || this.selectedRadio == "endTimeForFilter" ||
|
|
1524
1526
|
this.selectedRadio == "time" || this.selectedRadio == "timeoutTime" || this.selectedRadio == "OtherAvailableSpotsTableStartTime"
|
|
1527
|
+
|| this.selectedRadio == "OtherAvailableSpotsTableEndTime"
|
|
1525
1528
|
|| this.selectedRadio == "start_time_for_filter" || this.selectedRadio == "end_time_for_filter" || this.selectedRadio == "startEndTimeMulti") {
|
|
1526
1529
|
isFiltered = !isEqual(this.initialValueMap.get(this.selectedRadio), this.tooltipSelectedMap.get(this.selectedRadio)) || !this.includeZeroTime || !this.includeMultiTime;
|
|
1527
1530
|
}
|
|
@@ -1607,6 +1610,7 @@ class AnnaFilterService {
|
|
|
1607
1610
|
}
|
|
1608
1611
|
else if (key === "StartTimeForFilter" || key === "EndTimeForFilter" || key == "timeoutTime" ||
|
|
1609
1612
|
key === "startTimeForFilter" || key === "endTimeForFilter" || key === "OtherAvailableSpotsTableStartTime"
|
|
1613
|
+
|| key == "OtherAvailableSpotsTableEndTime"
|
|
1610
1614
|
|| key === "start_time_for_filter" || key === "end_time_for_filter" || key == "time") {
|
|
1611
1615
|
filteredData = filteredData.filter((obj) => this.returnDataForFromAndToTimeRange(obj, value, key));
|
|
1612
1616
|
}
|
|
@@ -1781,7 +1785,8 @@ class AnnaFilterService {
|
|
|
1781
1785
|
filteredData = filteredData.filter((obj) => this.getDataInTheDateRange(obj, value, key));
|
|
1782
1786
|
}
|
|
1783
1787
|
else if (key === "StartTimeForFilter" || key === "EndTimeForFilter" || key == "timeoutTime" || key === "startTimeForFilter" || key === "endTimeForFilter"
|
|
1784
|
-
|| key === "start_time_for_filter" || key === "end_time_for_filter" || key == "time" || key == "OtherAvailableSpotsTableStartTime"
|
|
1788
|
+
|| key === "start_time_for_filter" || key === "end_time_for_filter" || key == "time" || key == "OtherAvailableSpotsTableStartTime"
|
|
1789
|
+
|| key == "OtherAvailableSpotsTableEndTime") {
|
|
1785
1790
|
filteredData = filteredData.filter((obj) => this.returnDataForFromAndToTimeRange(obj, value, key));
|
|
1786
1791
|
}
|
|
1787
1792
|
else if (key === "startEndTimeMulti" || key == "startEndTime" || key === "TimeBand") {
|
|
@@ -2402,10 +2407,10 @@ class AnnaFilterService {
|
|
|
2402
2407
|
}
|
|
2403
2408
|
}
|
|
2404
2409
|
isHourValueInvalid(hr) {
|
|
2405
|
-
return (hr.length == 0 || !+(hr) || 1 > parseInt(hr) || parseInt(hr) > 12);
|
|
2410
|
+
return (hr.length == 0 || !+(hr) || 1 > parseInt(hr) || parseInt(hr) > 12 || hr.includes('.'));
|
|
2406
2411
|
}
|
|
2407
2412
|
isMinuteValueInvalid(min) {
|
|
2408
|
-
return (min.length != 2 || (!+(min) && min != "00") || 0 > parseInt(min) || parseInt(min) > 59);
|
|
2413
|
+
return (min.length != 2 || (!+(min) && min != "00") || 0 > parseInt(min) || parseInt(min) > 59 || min.includes('.'));
|
|
2409
2414
|
}
|
|
2410
2415
|
//=============================================================SORT======================================================================//
|
|
2411
2416
|
updateSortMap(tempSortOrder, tableData, isLurAndCsrComponent) {
|
|
@@ -3970,10 +3975,10 @@ class AnnaNonEditableGenericTableComponent {
|
|
|
3970
3975
|
this.gtSVGIconClicked.emit(data);
|
|
3971
3976
|
}
|
|
3972
3977
|
textActionClicked(rowData, id, columnHeader) {
|
|
3973
|
-
this.gtTextActionClicked.emit({ data: rowData, id: id, columnHeader: columnHeader });
|
|
3978
|
+
this.gtTextActionClicked.emit({ data: rowData, id: id, columnHeader: columnHeader, isIconClicked: false });
|
|
3974
3979
|
}
|
|
3975
3980
|
iconClickedOnStringIconActionType(rowData, id, columnHeader) {
|
|
3976
|
-
this.gtTextActionClicked.emit({ data: rowData, id: id, columnHeader: columnHeader });
|
|
3981
|
+
this.gtTextActionClicked.emit({ data: rowData, id: id, columnHeader: columnHeader, isIconClicked: true });
|
|
3977
3982
|
}
|
|
3978
3983
|
innerHTMLCellClicked(event, rowData) {
|
|
3979
3984
|
this.gtInnerHTMLClicked.emit({ event, rowData });
|
|
@@ -5319,9 +5324,12 @@ class DigitOnlyDirective {
|
|
|
5319
5324
|
return this.inputElement.value.substring(this.inputElement.selectionStart ?? 0, this.inputElement.selectionEnd ?? 0);
|
|
5320
5325
|
}
|
|
5321
5326
|
forecastValue(key) {
|
|
5322
|
-
const selectionStart = this.inputElement.selectionStart
|
|
5323
|
-
const selectionEnd = this.inputElement.selectionEnd
|
|
5327
|
+
const selectionStart = this.inputElement.selectionStart;
|
|
5328
|
+
const selectionEnd = this.inputElement.selectionEnd;
|
|
5324
5329
|
const oldValue = this.inputElement.value;
|
|
5330
|
+
if (selectionStart == null && selectionEnd == null) {
|
|
5331
|
+
return (oldValue + key);
|
|
5332
|
+
}
|
|
5325
5333
|
return (oldValue.substring(0, selectionStart) +
|
|
5326
5334
|
key +
|
|
5327
5335
|
oldValue.substring(selectionEnd));
|