2024-01-10 13:24:32 +01:00
< div class = "d-flex align-items-center gap-1-rem" >
< button mat-flat-button [ matMenuTriggerFor ] = " filterMenu " # filterMenuTrigger = "matMenuTrigger" ( click ) = " updateFilters ( ) " class = "filter-button" >
< mat-icon aria-hidden = "false" [ matBadgeHidden ] = " ! appliedFilterCount " [ matBadge ] = " appliedFilterCount " matBadgeColor = "warn" matBadgeSize = "small" > filter_alt< / mat-icon >
{{'COMMONS.LISTING-COMPONENT.SEARCH-FILTER-BTN' | translate}}
< / button >
< mat-menu # filterMenu >
2024-04-12 17:10:08 +02:00
< div class = "container-fluid" ( click ) = " $ event ? . stopPropagation ? . ( ) " >
< div class = "row justify-content-between" >
< div class = "col-auto mt-2" >
2024-01-10 13:24:32 +01:00
< h4 > {{'NOTIFICATION-SERVICE.INAPP-NOTIFICATION-LISTING.FILTER.TITLE' | translate}}< / h4 >
2024-04-12 17:10:08 +02:00
< / div >
< div class = "col-auto" >
2024-01-10 13:24:32 +01:00
< button color = "accent" mat-button ( click ) = " clearFilters ( ) " >
{{'COMMONS.LISTING-COMPONENT.CLEAR-ALL-FILTERS' | translate}}
< / button >
< / div >
2024-04-12 17:10:08 +02:00
< / div >
2024-01-10 13:24:32 +01:00
2024-04-12 17:10:08 +02:00
< div class = "mt-3 row" >
< div class = "col-12" >
< mat-form-field class = "w-100" >
< mat-label > {{'NOTIFICATION-SERVICE.INAPP-NOTIFICATION-LISTING.FILTER.NOTIFICATION-TYPE' | translate}}< / mat-label >
2024-01-11 11:16:50 +01:00
< mat-select multiple [ ( ngModel ) ] = " internalFilters . type " >
< mat-option * ngFor = "let type of notificationTypeEnumValues" [ value ] = " type " > {{enumUtils.toNotificationTypeString(type)}}< / mat-option >
< / mat-select >
2024-04-12 17:10:08 +02:00
< / mat-form-field >
2024-01-11 11:16:50 +01:00
< / div >
2024-04-12 17:10:08 +02:00
< / div >
< div class = "row" >
< div class = "col-12" >
< mat-form-field class = "w-100" >
< mat-label > {{'NOTIFICATION-SERVICE.INAPP-NOTIFICATION-LISTING.FILTER.TRACKING-STATE' | translate}}< / mat-label >
2024-01-10 13:24:32 +01:00
< mat-select multiple [ ( ngModel ) ] = " internalFilters . trackingState " >
< mat-option * ngFor = "let state of notificationInAppTrackingEnumValues" [ value ] = " state " > {{enumUtils.toNotificationInAppTrackingString(state)}}< / mat-option >
< / mat-select >
2024-04-12 17:10:08 +02:00
< / mat-form-field >
2024-01-10 13:24:32 +01:00
< / div >
2024-04-12 17:10:08 +02:00
< / div >
2024-01-10 13:24:32 +01:00
2024-04-15 12:01:58 +02:00
< div class = "row justify-content-end align-items-center mt-4 mb-1 gap-1-rem" >
2024-04-12 17:10:08 +02:00
< div class = "col-auto" >
< button class = "normal-btn-light-sm" ( click ) = " filterMenuTrigger ? . closeMenu ( ) " >
2024-01-10 13:24:32 +01:00
{{'NOTIFICATION-SERVICE.INAPP-NOTIFICATION-LISTING.FILTER.CANCEL' | translate}}
< / button >
2024-04-12 17:10:08 +02:00
< / div >
< div class = "col-auto" >
< button class = "normal-btn-sm" ( click ) = " filterMenuTrigger . closeMenu ( ) ; applyFilters ( ) ; " >
2024-01-10 13:24:32 +01:00
{{'NOTIFICATION-SERVICE.INAPP-NOTIFICATION-LISTING.FILTER.APPLY-FILTERS' | translate}}
< / button >
< / div >
< / div >
< / div >
< / mat-menu >
< app-expandable-search-field [ ( value ) ] = internalFilters . like ( valueChange ) = " onSearchTermChange ( $ event ) " / >
< / div >