@annalib/anna-core 20.0.12 → 20.0.13
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) {
|
|
@@ -3961,10 +3966,10 @@ class AnnaNonEditableGenericTableComponent {
|
|
|
3961
3966
|
this.gtSVGIconClicked.emit(data);
|
|
3962
3967
|
}
|
|
3963
3968
|
textActionClicked(rowData, id, columnHeader) {
|
|
3964
|
-
this.gtTextActionClicked.emit({ data: rowData, id: id, columnHeader: columnHeader });
|
|
3969
|
+
this.gtTextActionClicked.emit({ data: rowData, id: id, columnHeader: columnHeader, isIconClicked: false });
|
|
3965
3970
|
}
|
|
3966
3971
|
iconClickedOnStringIconActionType(rowData, id, columnHeader) {
|
|
3967
|
-
this.gtTextActionClicked.emit({ data: rowData, id: id, columnHeader: columnHeader });
|
|
3972
|
+
this.gtTextActionClicked.emit({ data: rowData, id: id, columnHeader: columnHeader, isIconClicked: true });
|
|
3968
3973
|
}
|
|
3969
3974
|
innerHTMLCellClicked(event, rowData) {
|
|
3970
3975
|
this.gtInnerHTMLClicked.emit({ event, rowData });
|
|
@@ -5310,9 +5315,12 @@ class DigitOnlyDirective {
|
|
|
5310
5315
|
return this.inputElement.value.substring(this.inputElement.selectionStart ?? 0, this.inputElement.selectionEnd ?? 0);
|
|
5311
5316
|
}
|
|
5312
5317
|
forecastValue(key) {
|
|
5313
|
-
const selectionStart = this.inputElement.selectionStart
|
|
5314
|
-
const selectionEnd = this.inputElement.selectionEnd
|
|
5318
|
+
const selectionStart = this.inputElement.selectionStart;
|
|
5319
|
+
const selectionEnd = this.inputElement.selectionEnd;
|
|
5315
5320
|
const oldValue = this.inputElement.value;
|
|
5321
|
+
if (selectionStart == null && selectionEnd == null) {
|
|
5322
|
+
return (oldValue + key);
|
|
5323
|
+
}
|
|
5316
5324
|
return (oldValue.substring(0, selectionStart) +
|
|
5317
5325
|
key +
|
|
5318
5326
|
oldValue.substring(selectionEnd));
|