next-ucap-messenger/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-sidenav/message.component.html

140 lines
4.7 KiB
HTML
Raw Normal View History

2019-11-13 06:42:30 +00:00
<div class="message-box container">
<div class="current-head">
2020-01-06 08:05:36 +00:00
<h3>{{ 'message.label' | translate }}</h3>
<div class="btn-box">
<!-- <button mat-icon-button>
<mat-icon>timer</mat-icon>
</button>
<button mat-icon-button>
<mat-icon> add_comment</mat-icon>
</button> -->
</div>
</div>
<div class="list-search-frame">
2019-11-15 01:49:41 +00:00
<div class="searchbox">
<form [formGroup]="fgSearch" class="w-100-p">
<mat-form-field floatLabel="never">
<input
matInput
#inputSearch
type="text"
maxlength="20"
2020-01-06 08:05:36 +00:00
placeholder="{{ 'message.placeholderForSearch' | translate }}"
2019-11-15 01:49:41 +00:00
value=""
formControlName="searchInput"
(keydown.enter)="onKeyDownEnter($event, inputSearch.value)"
/>
<button
mat-button
matSuffix
mat-icon-button
aria-label="Clear"
(click)="inputSearch.value = ''; onClickSearchCancel()"
>
<mat-icon>close</mat-icon>
</button>
</mat-form-field>
</form>
</div>
</div>
<div class="message-section" [style.display]="isSearch ? 'none' : 'block'">
<mat-tab-group
#tabs
mat-stretch-tabs
animationDuration="0ms"
[selectedIndex]="0"
(selectedIndexChange)="onSelectedIndexChange($event)"
2020-01-10 09:54:14 +00:00
class="message-tab"
>
<mat-tab [label]="MessageType.Receive">
<ng-template mat-tab-label>
2020-01-06 08:05:36 +00:00
{{ 'message.messageTypeReceiving' | translate }}
</ng-template>
2020-01-10 09:54:14 +00:00
<perfect-scrollbar fxFlex="1 1 auto">
<ucap-message-list-item
*ngFor="let message of messageRetrieveList$ | async"
[message]="message"
(click)="onClickDetail(message)"
class="message-item"
></ucap-message-list-item>
</perfect-scrollbar>
</mat-tab>
<mat-tab [label]="MessageType.Send">
<ng-template mat-tab-label>
2020-01-06 08:05:36 +00:00
{{ 'message.messageTypeOutgoing' | translate }}
</ng-template>
2020-01-10 09:54:14 +00:00
<perfect-scrollbar fxFlex="1 1 auto">
<ucap-message-list-item
*ngFor="let message of messageSendList$ | async"
[message]="message"
(click)="onClickDetail(message)"
class="message-item"
></ucap-message-list-item>
</perfect-scrollbar>
</mat-tab>
<mat-tab [label]="MessageType.Reservation">
<ng-template mat-tab-label>
2020-01-06 08:05:36 +00:00
{{ 'message.messageTypeReservation' | translate }}
</ng-template>
2020-01-10 09:54:14 +00:00
<perfect-scrollbar fxFlex="1 1 auto">
<ucap-message-list-item
*ngFor="let message of messageReservationList$ | async"
[message]="message"
(click)="onClickDetail(message)"
class="message-item"
></ucap-message-list-item>
</perfect-scrollbar>
</mat-tab>
</mat-tab-group>
</div>
2020-01-10 09:54:14 +00:00
<div [style.display]="isSearch ? 'block' : 'none'">
2019-11-25 06:48:54 +00:00
<div class="search-sub">
<form [formGroup]="fgSearchType" class="w-100-p">
<mat-form-field>
2019-11-26 08:54:37 +00:00
<mat-select
formControlName="searchMessageType"
(selectionChange)="onChangeSelection($event)"
>
2020-01-06 08:05:36 +00:00
<mat-option [value]="MessageType.All">{{
'message.messageTypeAll' | translate
}}</mat-option>
<mat-option [value]="MessageType.Receive">{{
'message.messageTypeReceiving' | translate
}}</mat-option>
<mat-option [value]="MessageType.Send">{{
'message.messageTypeOutgoing' | translate
}}</mat-option>
<mat-option [value]="MessageType.Reservation">{{
'message.messageTypeReservation' | translate
}}</mat-option>
2019-11-25 06:48:54 +00:00
</mat-select>
</mat-form-field>
<mat-radio-group
formControlName="searchMessageSearchType"
aria-label="Select an searchType"
(change)="onChangeSearchType($event)"
>
2020-01-06 08:05:36 +00:00
<mat-radio-button [value]="MessageSearchType.Name" [checked]="true">{{
'message.searchTypeName' | translate
}}</mat-radio-button>
<mat-radio-button [value]="MessageSearchType.Title">{{
'message.searchTypeTitle' | translate
}}</mat-radio-button>
<mat-radio-button [value]="MessageSearchType.Contents">{{
'message.searchTypeContent' | translate
}}</mat-radio-button>
2019-11-25 06:48:54 +00:00
</mat-radio-group>
</form>
</div>
2019-12-05 02:09:44 +00:00
<div>
<ucap-message-list-item
*ngFor="let message of messageSearchList$ | async"
2019-12-05 02:09:44 +00:00
[message]="message"
(click)="onClickDetail(message)"
class="message-item"
></ucap-message-list-item>
2019-11-25 06:48:54 +00:00
</div>
</div>
2019-11-13 06:42:30 +00:00
</div>