@frui.ts/dataviews
Advanced tools
Comparing version 1.0.0-alpha.2 to 1.0.0-alpha.3
@@ -18,7 +18,9 @@ "use strict"; | ||
var data_1 = require("@frui.ts/data"); | ||
var data_2 = require("@frui.ts/data"); | ||
var mobx_react_lite_1 = require("mobx-react-lite"); | ||
var react_1 = __importDefault(require("react")); | ||
function getSortIndicatorClass(pagingFilter, columnName) { | ||
if (pagingFilter.sortColumn === columnName) { | ||
return pagingFilter.sortDirection === data_1.SortingDirection.Descending ? "sort-indicator desc" : "sort-indicator asc"; | ||
var currentDirection = (0, data_1.getSortingDirection)(pagingFilter, columnName); | ||
if (currentDirection) { | ||
return currentDirection === data_2.SortingDirection.Descending ? "sort-indicator desc" : "sort-indicator asc"; | ||
} | ||
@@ -25,0 +27,0 @@ else { |
@@ -10,4 +10,5 @@ "use strict"; | ||
function getSortIndicatorClass(pagingFilter, columnName) { | ||
if (pagingFilter.sortColumn === columnName) { | ||
return pagingFilter.sortDirection === data_1.SortingDirection.Descending ? "sort-indicator desc" : "sort-indicator asc"; | ||
var currentDirection = (0, data_1.getSortingDirection)(pagingFilter, columnName); | ||
if (currentDirection) { | ||
return currentDirection === data_1.SortingDirection.Descending ? "sort-indicator desc" : "sort-indicator asc"; | ||
} | ||
@@ -14,0 +15,0 @@ else { |
@@ -6,3 +6,3 @@ { | ||
}, | ||
"version": "1.0.0-alpha.2", | ||
"version": "1.0.0-alpha.3", | ||
"description": "View components for data display", | ||
@@ -41,4 +41,4 @@ "keywords": [ | ||
"dependencies": { | ||
"@frui.ts/data": "^1.0.0-alpha.2", | ||
"@frui.ts/helpers": "^1.0.0-alpha.2", | ||
"@frui.ts/data": "^1.0.0-alpha.3", | ||
"@frui.ts/helpers": "^1.0.0-alpha.3", | ||
"mobx-react-lite": "^2.2.2" | ||
@@ -53,3 +53,3 @@ }, | ||
}, | ||
"gitHead": "99546362efd91f923e743ed07477bb6ef0b1caa3" | ||
"gitHead": "6ec9e7bcdb60a72fe3fe4d63a458702e33487801" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
73553
623