2019-10-31 10:17:29 +00:00
|
|
|
<div>
|
|
|
|
<div class="current-head">
|
|
|
|
<h3>대화</h3>
|
|
|
|
<div class="btn-box">
|
2019-11-01 00:06:52 +00:00
|
|
|
<!-- <button mat-icon-button>
|
2019-10-31 10:17:29 +00:00
|
|
|
<mat-icon>timer</mat-icon>
|
|
|
|
</button>
|
|
|
|
<button mat-icon-button>
|
|
|
|
<mat-icon> add_comment</mat-icon>
|
2019-11-01 00:06:52 +00:00
|
|
|
</button> -->
|
2019-10-31 10:17:29 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-11-01 00:06:52 +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"
|
|
|
|
placeholder="대화방 이름 검색"
|
|
|
|
value=""
|
|
|
|
formControlName="searchInput"
|
|
|
|
[matAutocomplete]="auto"
|
|
|
|
(keydown.enter)="onKeyDownEnter($event, inputSearch.value)"
|
|
|
|
/>
|
|
|
|
<mat-autocomplete #auto="matAutocomplete">
|
|
|
|
<mat-option
|
|
|
|
*ngFor="
|
|
|
|
let filteredRecommendedWord of filteredRecommendedWordList
|
|
|
|
"
|
|
|
|
[value]="filteredRecommendedWord"
|
|
|
|
>
|
|
|
|
{{ filteredRecommendedWord }}
|
|
|
|
</mat-option>
|
|
|
|
</mat-autocomplete>
|
|
|
|
<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-10-29 10:06:25 +00:00
|
|
|
</div>
|
2019-11-05 09:12:31 +00:00
|
|
|
</div>
|
|
|
|
<div *ngIf="!isSearch" class="app-layout-chat-left-sidenav-chat-list">
|
2019-11-19 03:05:03 +00:00
|
|
|
<!-- <perfect-scrollbar fxFlex="1 1 auto">
|
2019-10-29 03:23:40 +00:00
|
|
|
<ucap-room-list-item
|
2019-11-05 09:12:31 +00:00
|
|
|
*ngFor="let room of roomList"
|
2019-10-29 03:23:40 +00:00
|
|
|
[loginRes]="loginRes"
|
|
|
|
[roomInfo]="room"
|
|
|
|
[roomUserInfo]="getRoomUserList(room)"
|
|
|
|
[sessionVerinfo]="sessionVerinfo"
|
2019-11-15 08:55:05 +00:00
|
|
|
(click)="onClickContextMenu('SELECT_ROOM', room)"
|
2019-10-29 03:23:40 +00:00
|
|
|
(contextmenu)="onContextMenuChat($event, room)"
|
|
|
|
>
|
|
|
|
</ucap-room-list-item>
|
2019-11-19 03:05:03 +00:00
|
|
|
</perfect-scrollbar> -->
|
|
|
|
<cdk-virtual-scroll-viewport itemSize="40" perfectScrollbar fxFlexFill>
|
|
|
|
<ucap-room-list-item
|
|
|
|
*cdkVirtualFor="let room of roomList"
|
|
|
|
[loginRes]="loginRes"
|
|
|
|
[roomInfo]="room"
|
|
|
|
[roomUserInfo]="getRoomUserList(room)"
|
|
|
|
[sessionVerinfo]="sessionVerinfo"
|
|
|
|
(click)="onClickContextMenu('SELECT_ROOM', room)"
|
|
|
|
(contextmenu)="onContextMenuChat($event, room)"
|
|
|
|
>
|
|
|
|
</ucap-room-list-item>
|
|
|
|
</cdk-virtual-scroll-viewport>
|
2019-11-05 09:12:31 +00:00
|
|
|
</div>
|
|
|
|
<div *ngIf="!!isSearch" class="app-layout-chat-left-sidenav-chat-list search">
|
|
|
|
<perfect-scrollbar fxFlex="1 1 auto">
|
2019-11-01 00:06:52 +00:00
|
|
|
<ucap-room-list-item
|
|
|
|
*ngFor="let room of searchRoomList"
|
|
|
|
[loginRes]="loginRes"
|
|
|
|
[roomInfo]="room"
|
|
|
|
[roomUserInfo]="getRoomUserList(room)"
|
|
|
|
[sessionVerinfo]="sessionVerinfo"
|
2019-11-15 08:55:05 +00:00
|
|
|
(click)="onClickContextMenu('SELECT_ROOM', room)"
|
2019-11-01 00:06:52 +00:00
|
|
|
(contextmenu)="onContextMenuChat($event, room)"
|
|
|
|
>
|
|
|
|
</ucap-room-list-item>
|
2019-11-05 09:12:31 +00:00
|
|
|
</perfect-scrollbar>
|
|
|
|
<!-- <cdk-virtual-scroll-viewport
|
2019-10-28 07:45:07 +00:00
|
|
|
itemSize="20"
|
|
|
|
class="app-layout-chat-left-sidenav-chat-list-viewport"
|
|
|
|
>
|
2019-10-28 02:15:20 +00:00
|
|
|
<ucap-room-list-item
|
2019-10-28 07:45:07 +00:00
|
|
|
*cdkVirtualFor="let room of getRoomList()"
|
2019-10-28 02:15:20 +00:00
|
|
|
[loginRes]="loginRes"
|
|
|
|
[roomInfo]="room"
|
|
|
|
[roomUserInfo]="getRoomUserList(room)"
|
|
|
|
[sessionVerinfo]="sessionVerinfo"
|
|
|
|
(click)="onSelectedRoom(room)"
|
|
|
|
(contextmenu)="onContextMenuChat($event, room)"
|
|
|
|
>
|
|
|
|
</ucap-room-list-item>
|
2019-10-29 01:10:08 +00:00
|
|
|
</cdk-virtual-scroll-viewport> -->
|
2019-11-01 00:06:52 +00:00
|
|
|
</div>
|
2019-11-05 09:12:31 +00:00
|
|
|
|
|
|
|
<div
|
|
|
|
style="visibility: hidden; position: fixed"
|
|
|
|
[style.left]="chatContextMenuPosition.x"
|
|
|
|
[style.top]="chatContextMenuPosition.y"
|
|
|
|
#chatContextMenuTrigger="matMenuTrigger"
|
|
|
|
[matMenuTriggerFor]="chatContextMenu"
|
|
|
|
></div>
|
|
|
|
<mat-menu
|
|
|
|
#chatContextMenu="matMenu"
|
|
|
|
[hasBackdrop]="false"
|
|
|
|
(ucapClickOutside)="chatContextMenuTrigger.closeMenu()"
|
|
|
|
>
|
|
|
|
<ng-template matMenuContent let-roomInfo="roomInfo">
|
2019-11-15 08:55:05 +00:00
|
|
|
<button mat-menu-item (click)="onClickContextMenu('SELECT_ROOM', roomInfo)">
|
2019-11-05 09:12:31 +00:00
|
|
|
대화방 열기
|
|
|
|
</button>
|
2019-11-15 08:55:05 +00:00
|
|
|
<button
|
|
|
|
mat-menu-item
|
|
|
|
(click)="onClickContextMenu('TOGGLE_ALARM', roomInfo)"
|
|
|
|
>
|
2019-11-05 09:12:31 +00:00
|
|
|
대화방 알람 {{ roomInfo.receiveAlarm ? '끄기' : '켜기' }}
|
|
|
|
</button>
|
2019-11-15 08:55:05 +00:00
|
|
|
<button mat-menu-item (click)="onClickContextMenu('EXIT_ROOM', roomInfo)">
|
2019-11-05 09:12:31 +00:00
|
|
|
대화방 나가기
|
|
|
|
</button>
|
|
|
|
</ng-template>
|
|
|
|
</mat-menu>
|