@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.
@@ -1461,12 +1461,14 @@ class AnnaFilterService {
1461
1461
  "ViolatedBookedEURValue",
1462
1462
  "ViolatingBookedEURValue",
1463
1463
  "ViolatingBookedValue",
1464
- "Rebate"
1464
+ "Rebate",
1465
+ "OtherAvailableSpotsTableWeeklyAUR"
1465
1466
  ];
1466
1467
  const calendarArr = ["period", "AirDate", "flightStartDate", "flightEndDate", "date",
1467
1468
  "startDate", "endDate", "revisionStartDate", "GeneratedOn", "Week", "timeoutDate"];
1468
1469
  const timeArr = ["StartTimeForFilter", "EndTimeForFilter", "time", "startTimeForFilter", "endTimeForFilter",
1469
- "start_time_for_filter", "end_time_for_filter", "startEndTimeMulti", "startEndTime", "timeoutTime", "OtherAvailableSpotsTableStartTime"];
1470
+ "start_time_for_filter", "end_time_for_filter", "startEndTimeMulti", "startEndTime", "timeoutTime", "OtherAvailableSpotsTableStartTime",
1471
+ "OtherAvailableSpotsTableEndTime"];
1470
1472
  this.sliderSet = new Set(sliderArr);
1471
1473
  this.calendarSet = new Set(calendarArr);
1472
1474
  this.timeSet = new Set(timeArr);
@@ -1532,6 +1534,7 @@ class AnnaFilterService {
1532
1534
  else if (this.selectedRadio == "StartTimeForFilter" || this.selectedRadio == "EndTimeForFilter" ||
1533
1535
  this.selectedRadio == "startTimeForFilter" || this.selectedRadio == "endTimeForFilter" ||
1534
1536
  this.selectedRadio == "time" || this.selectedRadio == "timeoutTime" || this.selectedRadio == "OtherAvailableSpotsTableStartTime"
1537
+ || this.selectedRadio == "OtherAvailableSpotsTableEndTime"
1535
1538
  || this.selectedRadio == "start_time_for_filter" || this.selectedRadio == "end_time_for_filter" || this.selectedRadio == "startEndTimeMulti") {
1536
1539
  isFiltered = !isEqual(this.initialValueMap.get(this.selectedRadio), this.tooltipSelectedMap.get(this.selectedRadio)) || !this.includeZeroTime || !this.includeMultiTime;
1537
1540
  }
@@ -1618,6 +1621,7 @@ class AnnaFilterService {
1618
1621
  }
1619
1622
  else if (key === "StartTimeForFilter" || key === "EndTimeForFilter" || key == "timeoutTime" ||
1620
1623
  key === "startTimeForFilter" || key === "endTimeForFilter" || key === "OtherAvailableSpotsTableStartTime"
1624
+ || key == "OtherAvailableSpotsTableEndTime"
1621
1625
  || key === "start_time_for_filter" || key === "end_time_for_filter" || key == "time") {
1622
1626
  filteredData = filteredData.filter((obj) => this.returnDataForFromAndToTimeRange(obj, value, key));
1623
1627
  }
@@ -1792,7 +1796,8 @@ class AnnaFilterService {
1792
1796
  filteredData = filteredData.filter((obj) => this.getDataInTheDateRange(obj, value, key));
1793
1797
  }
1794
1798
  else if (key === "StartTimeForFilter" || key === "EndTimeForFilter" || key == "timeoutTime" || key === "startTimeForFilter" || key === "endTimeForFilter"
1795
- || key === "start_time_for_filter" || key === "end_time_for_filter" || key == "time" || key == "OtherAvailableSpotsTableStartTime") {
1799
+ || key === "start_time_for_filter" || key === "end_time_for_filter" || key == "time" || key == "OtherAvailableSpotsTableStartTime"
1800
+ || key == "OtherAvailableSpotsTableEndTime") {
1796
1801
  filteredData = filteredData.filter((obj) => this.returnDataForFromAndToTimeRange(obj, value, key));
1797
1802
  }
1798
1803
  else if (key === "startEndTimeMulti" || key == "startEndTime" || key === "TimeBand") {
@@ -2413,10 +2418,10 @@ class AnnaFilterService {
2413
2418
  }
2414
2419
  }
2415
2420
  isHourValueInvalid(hr) {
2416
- return (hr.length == 0 || !+(hr) || 1 > parseInt(hr) || parseInt(hr) > 12);
2421
+ return (hr.length == 0 || !+(hr) || 1 > parseInt(hr) || parseInt(hr) > 12 || hr.includes('.'));
2417
2422
  }
2418
2423
  isMinuteValueInvalid(min) {
2419
- return (min.length != 2 || (!+(min) && min != "00") || 0 > parseInt(min) || parseInt(min) > 59);
2424
+ return (min.length != 2 || (!+(min) && min != "00") || 0 > parseInt(min) || parseInt(min) > 59 || min.includes('.'));
2420
2425
  }
2421
2426
  //=============================================================SORT======================================================================//
2422
2427
  updateSortMap(tempSortOrder, tableData, isLurAndCsrComponent) {
@@ -3974,10 +3979,10 @@ class AnnaNonEditableGenericTableComponent {
3974
3979
  this.gtSVGIconClicked.emit(data);
3975
3980
  }
3976
3981
  textActionClicked(rowData, id, columnHeader) {
3977
- this.gtTextActionClicked.emit({ data: rowData, id: id, columnHeader: columnHeader });
3982
+ this.gtTextActionClicked.emit({ data: rowData, id: id, columnHeader: columnHeader, isIconClicked: false });
3978
3983
  }
3979
3984
  iconClickedOnStringIconActionType(rowData, id, columnHeader) {
3980
- this.gtTextActionClicked.emit({ data: rowData, id: id, columnHeader: columnHeader });
3985
+ this.gtTextActionClicked.emit({ data: rowData, id: id, columnHeader: columnHeader, isIconClicked: true });
3981
3986
  }
3982
3987
  innerHTMLCellClicked(event, rowData) {
3983
3988
  this.gtInnerHTMLClicked.emit({ event, rowData });
@@ -5327,10 +5332,12 @@ class DigitOnlyDirective {
5327
5332
  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);
5328
5333
  }
5329
5334
  forecastValue(key) {
5330
- var _a, _b;
5331
- const selectionStart = (_a = this.inputElement.selectionStart) !== null && _a !== void 0 ? _a : 0;
5332
- const selectionEnd = (_b = this.inputElement.selectionEnd) !== null && _b !== void 0 ? _b : 0;
5335
+ const selectionStart = this.inputElement.selectionStart;
5336
+ const selectionEnd = this.inputElement.selectionEnd;
5333
5337
  const oldValue = this.inputElement.value;
5338
+ if (selectionStart == null && selectionEnd == null) {
5339
+ return (oldValue + key);
5340
+ }
5334
5341
  return (oldValue.substring(0, selectionStart) +
5335
5342
  key +
5336
5343
  oldValue.substring(selectionEnd));