@annalib/anna-core 5.2.5 → 5.3.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.
@@ -405,8 +405,8 @@ class AnnaDateTimeFormatService {
405
405
  }
406
406
  compare(a, b, isAsc) {
407
407
  if (typeof a == 'string' && typeof b == 'string') {
408
- a = a.toLowerCase();
409
- b = b.toLowerCase();
408
+ a = a == "-" ? "0" : a.toLowerCase();
409
+ b = b == "-" ? "0" : b.toLowerCase();
410
410
  }
411
411
  return (a < b ? -1 : 1) * (isAsc ? 1 : -1);
412
412
  }
@@ -2526,7 +2526,7 @@ class AnnaNonEditableGenericTableComponent {
2526
2526
  // this.emitData();
2527
2527
  this.setInitialRowsForTable();
2528
2528
  this.disableEnableEachColumnTooltipIcon();
2529
- this.annaFilterService.updateStateOfTheCurrentFilterTab(this.annaSortService.columnSortState);
2529
+ this.annaFilterService.updateStateOfAllTheKeys(this.annaSortService.columnSortState);
2530
2530
  this.emitData();
2531
2531
  this.closeTooltip();
2532
2532
  }
@@ -2692,7 +2692,7 @@ class AnnaNonEditableGenericTableComponent {
2692
2692
  incrementMinute(arr) {
2693
2693
  // increment to nearest proper interval(15,30,45)
2694
2694
  let min = parseInt(arr[1]);
2695
- if (min == 0 && min <= 14) {
2695
+ if (min <= 14) {
2696
2696
  arr[1] = "15";
2697
2697
  }
2698
2698
  else if (min >= 15 && min <= 29) {
@@ -2717,7 +2717,7 @@ class AnnaNonEditableGenericTableComponent {
2717
2717
  }
2718
2718
  decrementMinute(arr) {
2719
2719
  let min = parseInt(arr[1]);
2720
- if (min == 0 && min <= 15) {
2720
+ if (min > 0 && min <= 15) {
2721
2721
  arr[1] = "00";
2722
2722
  }
2723
2723
  else if (min >= 16 && min <= 30) {
@@ -2726,7 +2726,7 @@ class AnnaNonEditableGenericTableComponent {
2726
2726
  else if (min >= 31 && min <= 45) {
2727
2727
  arr[1] = "30";
2728
2728
  }
2729
- else if (min > 45) {
2729
+ else if (min > 45 || min == 0) {
2730
2730
  arr[1] = "45";
2731
2731
  }
2732
2732
  // arr[1] = parseInt(arr[1]) - 15;