@annalib/anna-core 20.0.12 → 20.0.14

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.
@@ -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) {
@@ -2425,6 +2430,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
2425
2430
  }]
2426
2431
  }], ctorParameters: function () { return [{ type: AnnaDateTimeFormatService }, { type: AnnaSortService }]; } });
2427
2432
 
2433
+ var UserActivationStatus;
2434
+ (function (UserActivationStatus) {
2435
+ UserActivationStatus["activationEmailSent"] = "ActivationEmailSent";
2436
+ UserActivationStatus["activationEmailReSent"] = "ActivationEmailResent";
2437
+ UserActivationStatus["ResendActivationEmail"] = "ResendActivationEmail";
2438
+ UserActivationStatus["lastSignedIn"] = "LastSignedIn";
2439
+ })(UserActivationStatus || (UserActivationStatus = {}));
2440
+
2428
2441
  // Angular import statements
2429
2442
  //Add onChange push change detection
2430
2443
  class AnnaSortComponent {
@@ -3503,6 +3516,7 @@ class AnnaNonEditableGenericTableComponent {
3503
3516
  this.start = 0;
3504
3517
  this.end = this.limit + this.start;
3505
3518
  this.isNoDataToDisplaySubject$ = new BehaviorSubject(false);
3519
+ this.UserActivationStatus = UserActivationStatus;
3506
3520
  this.textActionTooltip = [];
3507
3521
  this.tooltipContainingTable = null;
3508
3522
  this.tableBottomBorderClass = null;
@@ -3961,10 +3975,10 @@ class AnnaNonEditableGenericTableComponent {
3961
3975
  this.gtSVGIconClicked.emit(data);
3962
3976
  }
3963
3977
  textActionClicked(rowData, id, columnHeader) {
3964
- this.gtTextActionClicked.emit({ data: rowData, id: id, columnHeader: columnHeader });
3978
+ this.gtTextActionClicked.emit({ data: rowData, id: id, columnHeader: columnHeader, isIconClicked: false });
3965
3979
  }
3966
3980
  iconClickedOnStringIconActionType(rowData, id, columnHeader) {
3967
- this.gtTextActionClicked.emit({ data: rowData, id: id, columnHeader: columnHeader });
3981
+ this.gtTextActionClicked.emit({ data: rowData, id: id, columnHeader: columnHeader, isIconClicked: true });
3968
3982
  }
3969
3983
  innerHTMLCellClicked(event, rowData) {
3970
3984
  this.gtInnerHTMLClicked.emit({ event, rowData });
@@ -4081,7 +4095,7 @@ class AnnaNonEditableGenericTableComponent {
4081
4095
  }
4082
4096
  changesMadeInEditableInputBox(event, editedObject, pasteEvent) {
4083
4097
  let enteredValue = pasteEvent ? event.clipboardData.getData('text') : event.key;
4084
- if (event.keyCode != 8 &&
4098
+ if (event.keyCode != 8 && !(event.keyCode >= 37 && event.keyCode <= 40) &&
4085
4099
  (!editedObject?.allowSpecialCharacters && !(/[`0-9.]/.test(enteredValue)) ||
4086
4100
  (editedObject.isDecimalPointCheckRequired && editedObject.value.indexOf(".") >= 0
4087
4101
  && ((editedObject.value.length - ((editedObject.value.indexOf(".")) + 1)) >= editedObject.maxDecimalPointsAllowed)))) {
@@ -5310,9 +5324,12 @@ class DigitOnlyDirective {
5310
5324
  return this.inputElement.value.substring(this.inputElement.selectionStart ?? 0, this.inputElement.selectionEnd ?? 0);
5311
5325
  }
5312
5326
  forecastValue(key) {
5313
- const selectionStart = this.inputElement.selectionStart ?? 0;
5314
- const selectionEnd = this.inputElement.selectionEnd ?? 0;
5327
+ const selectionStart = this.inputElement.selectionStart;
5328
+ const selectionEnd = this.inputElement.selectionEnd;
5315
5329
  const oldValue = this.inputElement.value;
5330
+ if (selectionStart == null && selectionEnd == null) {
5331
+ return (oldValue + key);
5332
+ }
5316
5333
  return (oldValue.substring(0, selectionStart) +
5317
5334
  key +
5318
5335
  oldValue.substring(selectionEnd));
@@ -5759,5 +5776,5 @@ OrderSources.WOZ = "WOZ";
5759
5776
  * Generated bundle index. Do not edit.
5760
5777
  */
5761
5778
 
5762
- export { AllSelectedStatus, AnnaBuyerApprovalIconTemplateComponent, AnnaCalendarFilterComponent, AnnaColumnCheckboxFilterComponent, AnnaColumnDateRangeFilterComponent, AnnaColumnSliderFilterComponent, AnnaColumnTimeFilterComponent, AnnaConvertZeroOrNullOrUndefinedPipe, AnnaCoreModule, AnnaDateFormatterPipe, AnnaDateTimeFormatService, AnnaDeletedOrderIconTemplateComponent, AnnaFilterSearchedTextPipe, AnnaFilterService, AnnaFixedRowSizeTableVirtualScrollStrategy, AnnaFixedRowSizeTableVirtualScrollStrategyDirective, AnnaGlobalConfigService, AnnaGtHelperService, AnnaIconColumnComponent, AnnaLiveIconTemplateComponent, AnnaNoDataComponent, AnnaNonEditableGenericTableComponent, AnnaNotifyIconTemplateComponent, AnnaNumberFormatService, AnnaPayForPerformanceIconTemplateComponent, AnnaPersistingFilterService, AnnaRejectedIconTemplateComponent, AnnaReplaceCharPipe, AnnaSortComponent, AnnaSortService, AnnaTableVirtualScrollViewportComponent, AnnaTypeofDataPipe, AnnaVirtualTableDirective, AnnaWeekCalendarComponent, ClickableItem, Constants, Days, DigitOnlyDirective, ErrorCodes, FixedRowsPopupTableDirective, OrderSources, SortTypeEnum, TooltipModel, fixedSizeVirtualScrollStrategyFactory, radioButtonModel, showEllipsisTextOnHoverDirective, tooltipModelForColumnLevelFiltering };
5779
+ export { AllSelectedStatus, AnnaBuyerApprovalIconTemplateComponent, AnnaCalendarFilterComponent, AnnaColumnCheckboxFilterComponent, AnnaColumnDateRangeFilterComponent, AnnaColumnSliderFilterComponent, AnnaColumnTimeFilterComponent, AnnaConvertZeroOrNullOrUndefinedPipe, AnnaCoreModule, AnnaDateFormatterPipe, AnnaDateTimeFormatService, AnnaDeletedOrderIconTemplateComponent, AnnaFilterSearchedTextPipe, AnnaFilterService, AnnaFixedRowSizeTableVirtualScrollStrategy, AnnaFixedRowSizeTableVirtualScrollStrategyDirective, AnnaGlobalConfigService, AnnaGtHelperService, AnnaIconColumnComponent, AnnaLiveIconTemplateComponent, AnnaNoDataComponent, AnnaNonEditableGenericTableComponent, AnnaNotifyIconTemplateComponent, AnnaNumberFormatService, AnnaPayForPerformanceIconTemplateComponent, AnnaPersistingFilterService, AnnaRejectedIconTemplateComponent, AnnaReplaceCharPipe, AnnaSortComponent, AnnaSortService, AnnaTableVirtualScrollViewportComponent, AnnaTypeofDataPipe, AnnaVirtualTableDirective, AnnaWeekCalendarComponent, ClickableItem, Constants, Days, DigitOnlyDirective, ErrorCodes, FixedRowsPopupTableDirective, OrderSources, SortTypeEnum, TooltipModel, UserActivationStatus, fixedSizeVirtualScrollStrategyFactory, radioButtonModel, showEllipsisTextOnHoverDirective, tooltipModelForColumnLevelFiltering };
5763
5780
  //# sourceMappingURL=annalib-anna-core.mjs.map