@annalib/anna-core 35.3.6 → 35.3.8
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.
|
@@ -1660,13 +1660,13 @@ class AnnaSortService {
|
|
|
1660
1660
|
"flightEndDate",
|
|
1661
1661
|
"date",
|
|
1662
1662
|
"GeneratedOn",
|
|
1663
|
-
"AirDate"
|
|
1663
|
+
"AirDate",
|
|
1664
1664
|
]);
|
|
1665
1665
|
}
|
|
1666
1666
|
sortDataForComponentOtherThanLurAndCsrPage(isAsc, data, key) {
|
|
1667
1667
|
let param1;
|
|
1668
1668
|
let param2;
|
|
1669
|
-
let dataToBeSorted =
|
|
1669
|
+
let dataToBeSorted = data;
|
|
1670
1670
|
if (this.dateSet.has(key)) {
|
|
1671
1671
|
dataToBeSorted.sort((a, b) => this.annaDateTimeFormatService.compareDate(a[key], b[key], isAsc));
|
|
1672
1672
|
}
|
|
@@ -1791,17 +1791,17 @@ class AnnaSortService {
|
|
|
1791
1791
|
applySorting(key, tempSortOrder, tableData, isLurAndCsrComponent) {
|
|
1792
1792
|
let sortedTableData = tableData;
|
|
1793
1793
|
if (tempSortOrder === "ASC") {
|
|
1794
|
-
sortedTableData =
|
|
1794
|
+
sortedTableData = isLurAndCsrComponent
|
|
1795
1795
|
? this.sortEnterEditLurAndCsrPage(true, tableData, key)
|
|
1796
|
-
: this.sortDataForComponentOtherThanLurAndCsrPage(true, tableData, key)
|
|
1796
|
+
: this.sortDataForComponentOtherThanLurAndCsrPage(true, tableData, key);
|
|
1797
1797
|
}
|
|
1798
1798
|
else if (tempSortOrder === "DESC") {
|
|
1799
|
-
sortedTableData =
|
|
1799
|
+
sortedTableData = isLurAndCsrComponent
|
|
1800
1800
|
? this.sortEnterEditLurAndCsrPage(false, tableData, key)
|
|
1801
|
-
: this.sortDataForComponentOtherThanLurAndCsrPage(false, tableData, key)
|
|
1801
|
+
: this.sortDataForComponentOtherThanLurAndCsrPage(false, tableData, key);
|
|
1802
1802
|
}
|
|
1803
1803
|
else if (tempSortOrder === "DEFAULT") {
|
|
1804
|
-
sortedTableData =
|
|
1804
|
+
sortedTableData = this.noSortingAppliedData;
|
|
1805
1805
|
}
|
|
1806
1806
|
return sortedTableData;
|
|
1807
1807
|
}
|
|
@@ -6311,7 +6311,9 @@ class AnnaNumberFormatService {
|
|
|
6311
6311
|
const result = AnnaNumberFormatService.GetValueInUnits(Math.abs(inputValue));
|
|
6312
6312
|
let value = result[0];
|
|
6313
6313
|
const unit = result[1];
|
|
6314
|
-
|
|
6314
|
+
const factor = 10 ** digitsToRoundDecimalPoint;
|
|
6315
|
+
value = Math.round(((+value) + Number.EPSILON) * factor) / factor;
|
|
6316
|
+
// value = +(+value).toFixed(digitsToRoundDecimalPoint);
|
|
6315
6317
|
if (inputValue < 0) {
|
|
6316
6318
|
value *= -1;
|
|
6317
6319
|
}
|