fixed small bugs and adjusted styling
#37
Merged
naeem.ullah
merged 2 commits from mazdak/UX-styling into dev-pending-01-01-2026 3 weeks ago
@ -1,28 +0,0 @@
|
||||
import { Pipe, PipeTransform } from '@angular/core';
|
||||
import { TransactionLog } from '../../models/user';
|
||||
|
||||
@Pipe({
|
||||
name: 'transactionLogFilter',
|
||||
standalone: true
|
||||
})
|
||||
export class TransactionLogFilterPipe implements PipeTransform {
|
||||
transform(logs: TransactionLog[], searchText: string): TransactionLog[] {
|
||||
if (!logs || !searchText) {
|
||||
return logs;
|
||||
}
|
||||
|
||||
const search = searchText.toLowerCase();
|
||||
|
||||
return logs.filter(log =>
|
||||
log.logId?.toString().toLowerCase().includes(search) ||
|
||||
log.porOrgacode?.toLowerCase().includes(search) ||
|
||||
log.transactionID?.toLowerCase().includes(search) ||
|
||||
log.drMbmbkmsnumber?.toLowerCase().includes(search) ||
|
||||
log.crMbmbkmsnumber?.toLowerCase().includes(search) ||
|
||||
log.ppmPymdcode?.toLowerCase().includes(search) ||
|
||||
log.sgtGntrdate?.toLowerCase().includes(search) ||
|
||||
log.channelCode?.toLowerCase().includes(search) ||
|
||||
log.createdAt?.toLowerCase().includes(search)
|
||||
);
|
||||
}
|
||||
}
|
||||
@ -1,22 +0,0 @@
|
||||
import { Pipe, PipeTransform } from '@angular/core';
|
||||
import { SetupUser } from '../../models/user';
|
||||
|
||||
@Pipe({
|
||||
name: 'userFilter',
|
||||
standalone: true
|
||||
})
|
||||
export class UserFilterPipe implements PipeTransform {
|
||||
transform(users: SetupUser[], searchText: string): SetupUser[] {
|
||||
if (!users || !searchText.trim()) {
|
||||
return users;
|
||||
}
|
||||
|
||||
const search = searchText.toLowerCase();
|
||||
|
||||
return users.filter(user =>
|
||||
user.userId.toLowerCase().includes(search) ||
|
||||
user.userFullname.toLowerCase().includes(search) ||
|
||||
user.email.toLowerCase().includes(search)
|
||||
);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,6 @@
|
||||
.form-select-narrow{
|
||||
width: 98.3% !important;
|
||||
}
|
||||
.form-select-narrow .ng-clear-zone {
|
||||
display: none;
|
||||
}
|
||||
Loading…
Reference in New Issue