@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.
@@ -1453,12 +1453,14 @@ class AnnaFilterService {
1453
1453
  "ViolatedBookedEURValue",
1454
1454
  "ViolatingBookedEURValue",
1455
1455
  "ViolatingBookedValue",
1456
- "Rebate"
1456
+ "Rebate",
1457
+ "OtherAvailableSpotsTableWeeklyAUR"
1457
1458
  ];
1458
1459
  const calendarArr = ["period", "AirDate", "flightStartDate", "flightEndDate", "date",
1459
1460
  "startDate", "endDate", "revisionStartDate", "GeneratedOn", "Week", "timeoutDate"];
1460
1461
  const timeArr = ["StartTimeForFilter", "EndTimeForFilter", "time", "startTimeForFilter", "endTimeForFilter",
1461
- "start_time_for_filter", "end_time_for_filter", "startEndTimeMulti", "startEndTime", "timeoutTime", "OtherAvailableSpotsTableStartTime"];
1462
+ "start_time_for_filter", "end_time_for_filter", "startEndTimeMulti", "startEndTime", "timeoutTime", "OtherAvailableSpotsTableStartTime",
1463
+ "OtherAvailableSpotsTableEndTime"];
1462
1464
  this.sliderSet = new Set(sliderArr);
1463
1465
  this.calendarSet = new Set(calendarArr);
1464
1466
  this.timeSet = new Set(timeArr);
@@ -1524,6 +1526,7 @@ class AnnaFilterService {
1524
1526
  else if (this.selectedRadio == "StartTimeForFilter" || this.selectedRadio == "EndTimeForFilter" ||
1525
1527
  this.selectedRadio == "startTimeForFilter" || this.selectedRadio == "endTimeForFilter" ||
1526
1528
  this.selectedRadio == "time" || this.selectedRadio == "timeoutTime" || this.selectedRadio == "OtherAvailableSpotsTableStartTime"
1529
+ || this.selectedRadio == "OtherAvailableSpotsTableEndTime"
1527
1530
  || this.selectedRadio == "start_time_for_filter" || this.selectedRadio == "end_time_for_filter" || this.selectedRadio == "startEndTimeMulti") {
1528
1531
  isFiltered = !isEqual(this.initialValueMap.get(this.selectedRadio), this.tooltipSelectedMap.get(this.selectedRadio)) || !this.includeZeroTime || !this.includeMultiTime;
1529
1532
  }
@@ -1610,6 +1613,7 @@ class AnnaFilterService {
1610
1613
  }
1611
1614
  else if (key === "StartTimeForFilter" || key === "EndTimeForFilter" || key == "timeoutTime" ||
1612
1615
  key === "startTimeForFilter" || key === "endTimeForFilter" || key === "OtherAvailableSpotsTableStartTime"
1616
+ || key == "OtherAvailableSpotsTableEndTime"
1613
1617
  || key === "start_time_for_filter" || key === "end_time_for_filter" || key == "time") {
1614
1618
  filteredData = filteredData.filter((obj) => this.returnDataForFromAndToTimeRange(obj, value, key));
1615
1619
  }
@@ -1784,7 +1788,8 @@ class AnnaFilterService {
1784
1788
  filteredData = filteredData.filter((obj) => this.getDataInTheDateRange(obj, value, key));
1785
1789
  }
1786
1790
  else if (key === "StartTimeForFilter" || key === "EndTimeForFilter" || key == "timeoutTime" || key === "startTimeForFilter" || key === "endTimeForFilter"
1787
- || key === "start_time_for_filter" || key === "end_time_for_filter" || key == "time" || key == "OtherAvailableSpotsTableStartTime") {
1791
+ || key === "start_time_for_filter" || key === "end_time_for_filter" || key == "time" || key == "OtherAvailableSpotsTableStartTime"
1792
+ || key == "OtherAvailableSpotsTableEndTime") {
1788
1793
  filteredData = filteredData.filter((obj) => this.returnDataForFromAndToTimeRange(obj, value, key));
1789
1794
  }
1790
1795
  else if (key === "startEndTimeMulti" || key == "startEndTime" || key === "TimeBand") {
@@ -2405,10 +2410,10 @@ class AnnaFilterService {
2405
2410
  }
2406
2411
  }
2407
2412
  isHourValueInvalid(hr) {
2408
- return (hr.length == 0 || !+(hr) || 1 > parseInt(hr) || parseInt(hr) > 12);
2413
+ return (hr.length == 0 || !+(hr) || 1 > parseInt(hr) || parseInt(hr) > 12 || hr.includes('.'));
2409
2414
  }
2410
2415
  isMinuteValueInvalid(min) {
2411
- return (min.length != 2 || (!+(min) && min != "00") || 0 > parseInt(min) || parseInt(min) > 59);
2416
+ return (min.length != 2 || (!+(min) && min != "00") || 0 > parseInt(min) || parseInt(min) > 59 || min.includes('.'));
2412
2417
  }
2413
2418
  //=============================================================SORT======================================================================//
2414
2419
  updateSortMap(tempSortOrder, tableData, isLurAndCsrComponent) {
@@ -3965,10 +3970,10 @@ class AnnaNonEditableGenericTableComponent {
3965
3970
  this.gtSVGIconClicked.emit(data);
3966
3971
  }
3967
3972
  textActionClicked(rowData, id, columnHeader) {
3968
- this.gtTextActionClicked.emit({ data: rowData, id: id, columnHeader: columnHeader });
3973
+ this.gtTextActionClicked.emit({ data: rowData, id: id, columnHeader: columnHeader, isIconClicked: false });
3969
3974
  }
3970
3975
  iconClickedOnStringIconActionType(rowData, id, columnHeader) {
3971
- this.gtTextActionClicked.emit({ data: rowData, id: id, columnHeader: columnHeader });
3976
+ this.gtTextActionClicked.emit({ data: rowData, id: id, columnHeader: columnHeader, isIconClicked: true });
3972
3977
  }
3973
3978
  innerHTMLCellClicked(event, rowData) {
3974
3979
  this.gtInnerHTMLClicked.emit({ event, rowData });
@@ -5318,10 +5323,12 @@ class DigitOnlyDirective {
5318
5323
  return this.inputElement.value.substring((_a = this.inputElement.selectionStart) !== null && _a !== void 0 ? _a : 0, (_b = this.inputElement.selectionEnd) !== null && _b !== void 0 ? _b : 0);
5319
5324
  }
5320
5325
  forecastValue(key) {
5321
- var _a, _b;
5322
- const selectionStart = (_a = this.inputElement.selectionStart) !== null && _a !== void 0 ? _a : 0;
5323
- const selectionEnd = (_b = this.inputElement.selectionEnd) !== null && _b !== void 0 ? _b : 0;
5326
+ const selectionStart = this.inputElement.selectionStart;
5327
+ const selectionEnd = this.inputElement.selectionEnd;
5324
5328
  const oldValue = this.inputElement.value;
5329
+ if (selectionStart == null && selectionEnd == null) {
5330
+ return (oldValue + key);
5331
+ }
5325
5332
  return (oldValue.substring(0, selectionStart) +
5326
5333
  key +
5327
5334
  oldValue.substring(selectionEnd));