@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.
- package/esm2020/lib/anna-core-shared-lib/services/anna-date-time-format.service.mjs +3 -3
- package/esm2020/lib/anna-generic-table-lib/components/anna-non-editable-generic-table/anna-non-editable-generic-table.component.mjs +5 -5
- package/fesm2015/annalib-anna-core.mjs +6 -6
- package/fesm2015/annalib-anna-core.mjs.map +1 -1
- package/fesm2020/annalib-anna-core.mjs +6 -6
- package/fesm2020/annalib-anna-core.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -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
|
}
|
|
@@ -2528,7 +2528,7 @@ class AnnaNonEditableGenericTableComponent {
|
|
|
2528
2528
|
// this.emitData();
|
|
2529
2529
|
this.setInitialRowsForTable();
|
|
2530
2530
|
this.disableEnableEachColumnTooltipIcon();
|
|
2531
|
-
this.annaFilterService.
|
|
2531
|
+
this.annaFilterService.updateStateOfAllTheKeys(this.annaSortService.columnSortState);
|
|
2532
2532
|
this.emitData();
|
|
2533
2533
|
this.closeTooltip();
|
|
2534
2534
|
}
|
|
@@ -2694,7 +2694,7 @@ class AnnaNonEditableGenericTableComponent {
|
|
|
2694
2694
|
incrementMinute(arr) {
|
|
2695
2695
|
// increment to nearest proper interval(15,30,45)
|
|
2696
2696
|
let min = parseInt(arr[1]);
|
|
2697
|
-
if (min
|
|
2697
|
+
if (min <= 14) {
|
|
2698
2698
|
arr[1] = "15";
|
|
2699
2699
|
}
|
|
2700
2700
|
else if (min >= 15 && min <= 29) {
|
|
@@ -2719,7 +2719,7 @@ class AnnaNonEditableGenericTableComponent {
|
|
|
2719
2719
|
}
|
|
2720
2720
|
decrementMinute(arr) {
|
|
2721
2721
|
let min = parseInt(arr[1]);
|
|
2722
|
-
if (min
|
|
2722
|
+
if (min > 0 && min <= 15) {
|
|
2723
2723
|
arr[1] = "00";
|
|
2724
2724
|
}
|
|
2725
2725
|
else if (min >= 16 && min <= 30) {
|
|
@@ -2728,7 +2728,7 @@ class AnnaNonEditableGenericTableComponent {
|
|
|
2728
2728
|
else if (min >= 31 && min <= 45) {
|
|
2729
2729
|
arr[1] = "30";
|
|
2730
2730
|
}
|
|
2731
|
-
else if (min > 45) {
|
|
2731
|
+
else if (min > 45 || min == 0) {
|
|
2732
2732
|
arr[1] = "45";
|
|
2733
2733
|
}
|
|
2734
2734
|
// arr[1] = parseInt(arr[1]) - 15;
|