@itilite/iui-user-management 1.4.944 → 1.4.945

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/dist/index.js CHANGED
@@ -10390,6 +10390,7 @@ var StickyHeadTable = function StickyHeadTable(props) {
10390
10390
  id: 'status',
10391
10391
  label: 'Status',
10392
10392
  minWidth: 160,
10393
+ sortable: true,
10393
10394
  cell: function cell(row) {
10394
10395
  return /*#__PURE__*/React__default.createElement(iuistyles.IUIFormGroup, null, /*#__PURE__*/React__default.createElement(iuistyles.IUITypography, {
10395
10396
  component: "div",
@@ -11229,7 +11230,7 @@ var UserList = function UserList(_ref2) {
11229
11230
  if (isTokenVerified === true) {
11230
11231
  var pageNum = page;
11231
11232
  var searchParam = searchValue.trim() !== '' ? '&search=' + searchValue : '';
11232
- var orderingParam = orderBy === '' ? '' : order === 'asc' ? '&ordering=' + orderBy : '&ordering=-' + orderBy;
11233
+ var orderingParam = orderBy === '' ? '' : orderBy === 'status' ? order === 'asc' ? '&ordering=is_active,-has_visited' : '&ordering=-is_active,-has_visited' : order === 'asc' ? '&ordering=' + orderBy : '&ordering=-' + orderBy;
11233
11234
  var url = userListUrl.getUser + '?length=' + rowsPerPage + '&page=' + pageNum + searchParam + orderingParam;
11234
11235
  if (isSearchingChange) {
11235
11236
  var delayDebounceFn = setTimeout(function () {