- username: { title: this.translateService.instant('NAME'), width: '20%', sortDirection: 'asc' },
- projects: { title: this.translateService.instant('PAGE.DASHBOARD.PROJECTS'), width: '25%' },
- identifier: { title: this.translateService.instant('IDENTIFIER'), width: '20%' },
- modified: { title: this.translateService.instant('MODIFIED'), width: '15%' },
- created: { title: this.translateService.instant('CREATED'), width: '15%' },
+ username: { title: this.translateService.instant('NAME'), width: '10%', sortDirection: 'asc' },
+ projects: { title: this.translateService.instant('PAGE.DASHBOARD.PROJECTS'), width: '15%' },
+ identifier: { title: this.translateService.instant('IDENTIFIER'), width: '10%' },
+ user_status: {
+ type: 'html',
+ title: this.translateService.instant('STATUS'),
+ width: '15%',
+ filter: {
+ type: 'list',
+ config: {
+ selectText: 'Select',
+ list: [
+ { value: this.userActive, title: this.userActive },
+ { value: this.userLocked, title: this.userLocked },
+ { value: this.userExpired, title: this.userExpired },
+ { value: this.userAlwaysActive, title: this.userAlwaysActive }
+ ]
+ }
+ },
+ valuePrepareFunction: (cell: UserData, row: UserData): string => {
+ if (row.user_status === this.userActive) {
+ return `<span class="icon-label" title="${row.user_status}">
+ <i class="fas fa-user-check text-success"></i>
+ </span>`;
+ } else if (row.user_status === this.userLocked) {
+ return `<span class="icon-label" title="${row.user_status}">
+ <i class="fas fa-user-lock text-danger"></i>
+ </span>`;
+ } else if (row.user_status === this.userExpired) {
+ return `<span class="icon-label" title="${row.user_status}">
+ <i class="fas fa-user-times text-warning"></i>
+ </span>`;
+ } else if (row.user_status === this.userAlwaysActive) {
+ return `<span class="icon-label" title="${row.user_status}">
+ <i class="fas fa-user-shield text-info"></i>
+ </span>`;
+ } else {
+ return `<span>${row.user_status}</span>`;
+ }
+ }
+ },
+ account_expire_time: { title: this.translateService.instant('Expires in'), width: '10%' },
+ modified: { title: this.translateService.instant('MODIFIED'), width: '10%' },
+ created: { title: this.translateService.instant('CREATED'), width: '10%' },