2019-11-13 06:42:30 +00:00
|
|
|
<div class="message-box container">
|
2019-11-22 08:25:51 +00:00
|
|
|
<div class="current-head">
|
2020-01-06 08:05:36 +00:00
|
|
|
<h3>{{ 'message.label' | translate }}</h3>
|
2019-11-22 08:25:51 +00:00
|
|
|
<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>
|
2019-11-15 01:49:41 +00:00
|
|
|
<div class="list-search">
|
|
|
|
<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>
|
2019-11-14 08:43:45 +00:00
|
|
|
</div>
|
2020-01-13 23:26:27 +00:00
|
|
|
<div class="message-section" [style.display]="isSearch ? 'none' : 'block'">
|
2019-11-14 08:43:45 +00:00
|
|
|
<mat-tab-group
|
2019-11-22 08:25:51 +00:00
|
|
|
#tabs
|
2019-11-14 08:43:45 +00:00
|
|
|
mat-stretch-tabs
|
|
|
|
animationDuration="0ms"
|
2019-11-22 08:25:51 +00:00
|
|
|
[selectedIndex]="0"
|
2019-11-14 08:43:45 +00:00
|
|
|
(selectedIndexChange)="onSelectedIndexChange($event)"
|
2020-01-10 09:54:14 +00:00
|
|
|
class="message-tab"
|
2019-11-14 08:43:45 +00:00
|
|
|
>
|
2019-11-22 08:25:51 +00:00
|
|
|
<mat-tab [label]="MessageType.Receive">
|
2019-11-14 08:43:45 +00:00
|
|
|
<ng-template mat-tab-label>
|
2020-01-06 08:05:36 +00:00
|
|
|
{{ 'message.messageTypeReceiving' | translate }}
|
2019-11-14 08:43:45 +00:00
|
|
|
</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>
|
2019-11-14 08:43:45 +00:00
|
|
|
</mat-tab>
|
2019-11-22 08:25:51 +00:00
|
|
|
<mat-tab [label]="MessageType.Send">
|
2019-11-14 08:43:45 +00:00
|
|
|
<ng-template mat-tab-label>
|
2020-01-06 08:05:36 +00:00
|
|
|
{{ 'message.messageTypeOutgoing' | translate }}
|
2019-11-14 08:43:45 +00:00
|
|
|
</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>
|
2019-11-14 08:43:45 +00:00
|
|
|
</mat-tab>
|
2019-11-22 08:25:51 +00:00
|
|
|
<mat-tab [label]="MessageType.Reservation">
|
2019-11-14 08:43:45 +00:00
|
|
|
<ng-template mat-tab-label>
|
2020-01-06 08:05:36 +00:00
|
|
|
{{ 'message.messageTypeReservation' | translate }}
|
2019-11-14 08:43:45 +00:00
|
|
|
</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>
|
2019-11-14 08:43:45 +00:00
|
|
|
</mat-tab>
|
|
|
|
</mat-tab-group>
|
|
|
|
</div>
|
2020-01-10 09:54:14 +00:00
|
|
|
|
2020-01-13 23:26:27 +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
|
2019-12-27 02:26:29 +00:00
|
|
|
*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>
|