2019-11-05 04:45:30 +00:00
|
|
|
<div>
|
|
|
|
<div class="current-head">
|
2019-12-18 04:44:26 +00:00
|
|
|
<h3>{{ 'group.label' | translate }}</h3>
|
2019-11-05 04:45:30 +00:00
|
|
|
<div class="btn-box">
|
|
|
|
<button
|
|
|
|
mat-icon-button
|
|
|
|
#groupMenuTrigger="matMenuTrigger"
|
|
|
|
[matMenuTriggerFor]="groupMenu"
|
|
|
|
aria-label="group menu"
|
|
|
|
(ucapClickOutside)="groupMenuTrigger.closeMenu()"
|
2019-10-15 07:39:58 +00:00
|
|
|
>
|
2019-11-05 04:45:30 +00:00
|
|
|
<mat-icon>more_vert</mat-icon>
|
|
|
|
</button>
|
2019-10-23 06:07:41 +00:00
|
|
|
</div>
|
2019-11-05 04:45:30 +00:00
|
|
|
</div>
|
|
|
|
<ucap-organization-tenant-search
|
|
|
|
[companyList]="companyList$ | async"
|
|
|
|
[companyCode]="companyCode"
|
|
|
|
(keyDownEnter)="onKeyDownEnterOrganizationTenantSearch($event)"
|
2019-11-12 09:54:21 +00:00
|
|
|
(cancel)="onClickCancel()"
|
2019-11-05 04:45:30 +00:00
|
|
|
></ucap-organization-tenant-search>
|
|
|
|
</div>
|
2019-11-18 00:22:36 +00:00
|
|
|
<div
|
|
|
|
[style.display]="isShowSearch ? 'none' : 'block'"
|
|
|
|
class="search-result"
|
|
|
|
style="overflow: auto;"
|
|
|
|
>
|
2019-11-19 02:30:43 +00:00
|
|
|
<ucap-group-expansion-panel
|
|
|
|
#groupExpansionPanel
|
2019-12-10 23:18:32 +00:00
|
|
|
[groupBuddyList]="groupBuddyList"
|
2019-11-19 02:30:43 +00:00
|
|
|
[favoritBuddyList]="favoritBuddyList$ | async"
|
|
|
|
[myProfileInfo]="loginRes.userInfo"
|
|
|
|
(more)="onMoreGroup($event)"
|
|
|
|
>
|
|
|
|
<ucap-profile-user-list-item
|
2019-11-21 02:46:49 +00:00
|
|
|
*ucapGroupExpansionPanelItem="let userInfo; let group = group"
|
2019-11-19 02:30:43 +00:00
|
|
|
[userInfo]="userInfo"
|
|
|
|
[presence]="getStatusBulkInfo(userInfo) | async"
|
|
|
|
[sessionVerinfo]="sessionVerinfo"
|
|
|
|
(click)="onSelectBuddy(userInfo)"
|
2019-12-26 08:34:52 +00:00
|
|
|
(openProfile)="onClickOpenProfile($event, group)"
|
2019-12-19 08:47:10 +00:00
|
|
|
(contextmenu)="onContextMenuProfile($event, userInfo, group, false)"
|
2019-11-22 01:03:45 +00:00
|
|
|
class="list-item-frame ucap-clickable"
|
2019-10-23 06:07:41 +00:00
|
|
|
>
|
2019-11-19 02:30:43 +00:00
|
|
|
</ucap-profile-user-list-item>
|
|
|
|
</ucap-group-expansion-panel>
|
2019-11-05 04:45:30 +00:00
|
|
|
</div>
|
2019-11-18 00:22:36 +00:00
|
|
|
<div [style.display]="isShowSearch ? 'block' : 'none'" class="search-result">
|
2019-11-26 05:06:50 +00:00
|
|
|
<div style="position: relative;">
|
|
|
|
<div *ngIf="searchProcessing" style="position: absolute; width: 100%;">
|
|
|
|
<mat-progress-bar mode="indeterminate"></mat-progress-bar>
|
|
|
|
</div>
|
2019-10-23 06:07:41 +00:00
|
|
|
</div>
|
2019-11-26 05:06:50 +00:00
|
|
|
|
2019-11-05 04:45:30 +00:00
|
|
|
<div class="result-num">
|
2020-01-03 07:17:23 +00:00
|
|
|
{{ 'common.searchResult' | translate
|
|
|
|
}}<span class="text-accent-color"
|
|
|
|
>({{ searchUserInfos.length
|
|
|
|
}}{{ 'common.howManyPersons' | translate }})</span
|
2019-11-05 04:45:30 +00:00
|
|
|
>
|
|
|
|
</div>
|
|
|
|
<ucap-profile-user-list-item
|
|
|
|
*ngFor="let userInfo of searchUserInfos"
|
|
|
|
[userInfo]="userInfo"
|
|
|
|
[presence]="getStatusBulkInfo(userInfo) | async"
|
|
|
|
[sessionVerinfo]="sessionVerinfo"
|
|
|
|
(click)="onSelectBuddy(userInfo)"
|
2019-11-08 04:35:39 +00:00
|
|
|
(openProfile)="onClickOpenProfile($event)"
|
2019-12-19 08:47:10 +00:00
|
|
|
(contextmenu)="onContextMenuProfile($event, userInfo, null, true)"
|
2019-11-05 04:45:30 +00:00
|
|
|
>
|
|
|
|
</ucap-profile-user-list-item>
|
|
|
|
</div>
|
2019-10-15 02:07:26 +00:00
|
|
|
|
2019-11-18 00:22:36 +00:00
|
|
|
<mat-menu
|
|
|
|
#groupMenu="matMenu"
|
|
|
|
xPosition="after"
|
|
|
|
yPosition="below"
|
|
|
|
[hasBackdrop]="false"
|
|
|
|
>
|
|
|
|
<button mat-menu-item (click)="onClickGroupMenu('GROUP_NEW')">
|
|
|
|
<!--<mat-icon>group_add</mat-icon>-->
|
|
|
|
<svg
|
|
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
|
|
width="18"
|
|
|
|
height="18"
|
|
|
|
viewBox="0 0 24 24"
|
|
|
|
fill="none"
|
|
|
|
stroke="currentColor"
|
|
|
|
stroke-width="1.5"
|
|
|
|
stroke-linecap="butt"
|
|
|
|
stroke-linejoin="round"
|
|
|
|
>
|
|
|
|
<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path>
|
|
|
|
<circle cx="8.5" cy="7" r="4"></circle>
|
|
|
|
<line x1="20" y1="8" x2="20" y2="14"></line>
|
|
|
|
<line x1="23" y1="11" x2="17" y2="11"></line>
|
|
|
|
</svg>
|
2020-01-03 07:17:23 +00:00
|
|
|
<span>{{ 'group.addNew' | translate }}</span>
|
2019-11-18 00:22:36 +00:00
|
|
|
</button>
|
|
|
|
<button mat-menu-item (click)="onClickGroupMenu('GROUP_EXPAND_MORE')">
|
2019-11-22 06:49:39 +00:00
|
|
|
<!--<mat-icon>expand_more</mat-icon>-->
|
2019-11-26 05:06:50 +00:00
|
|
|
<svg
|
|
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
|
|
width="18"
|
|
|
|
height="18"
|
|
|
|
viewBox="0 0 24 24"
|
|
|
|
fill="none"
|
|
|
|
stroke="currentColor"
|
|
|
|
stroke-width="1.5"
|
|
|
|
stroke-linecap="butt"
|
|
|
|
stroke-linejoin="round"
|
|
|
|
>
|
|
|
|
<path d="M6 9l6 6 6-6" />
|
|
|
|
</svg>
|
2020-01-03 07:17:23 +00:00
|
|
|
<span>{{ 'group.expandMore' | translate }}</span>
|
2019-11-18 00:22:36 +00:00
|
|
|
</button>
|
|
|
|
<button mat-menu-item (click)="onClickGroupMenu('GROUP_EXPAND_LESS')">
|
2019-11-22 06:49:39 +00:00
|
|
|
<!--<mat-icon>expand_less</mat-icon>-->
|
2019-11-26 05:06:50 +00:00
|
|
|
<svg
|
|
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
|
|
width="18"
|
|
|
|
height="18"
|
|
|
|
viewBox="0 0 24 24"
|
|
|
|
fill="none"
|
|
|
|
stroke="currentColor"
|
|
|
|
stroke-width="1.5"
|
|
|
|
stroke-linecap="butt"
|
|
|
|
stroke-linejoin="round"
|
|
|
|
>
|
|
|
|
<path d="M18 15l-6-6-6 6" />
|
|
|
|
</svg>
|
2020-01-03 07:17:23 +00:00
|
|
|
<span>{{ 'group.expandLess' | translate }}</span>
|
2019-11-18 00:22:36 +00:00
|
|
|
</button>
|
2019-11-21 07:15:15 +00:00
|
|
|
<!-- <button mat-menu-item (click)="onClickGroupMenu('GROUP_SAVE')">
|
2019-11-18 00:22:36 +00:00
|
|
|
<mat-icon>save</mat-icon>
|
|
|
|
<span>그룹 저장하기</span>
|
|
|
|
</button>
|
|
|
|
<button mat-menu-item (click)="onClickGroupMenu('GROUP_RESTORE')">
|
|
|
|
<mat-icon>restore</mat-icon>
|
|
|
|
<span>그룹 가져오기</span>
|
2019-11-21 07:15:15 +00:00
|
|
|
</button> -->
|
2019-11-18 00:22:36 +00:00
|
|
|
</mat-menu>
|
|
|
|
|
2019-10-15 07:39:58 +00:00
|
|
|
<div
|
|
|
|
style="visibility: hidden; position: fixed"
|
|
|
|
[style.left]="profileContextMenuPosition.x"
|
|
|
|
[style.top]="profileContextMenuPosition.y"
|
2019-10-16 01:20:49 +00:00
|
|
|
#profileContextMenuTrigger="matMenuTrigger"
|
2019-10-15 07:39:58 +00:00
|
|
|
[matMenuTriggerFor]="profileContextMenu"
|
|
|
|
></div>
|
2019-10-25 06:56:03 +00:00
|
|
|
<mat-menu
|
|
|
|
#profileContextMenu="matMenu"
|
|
|
|
[hasBackdrop]="false"
|
2019-11-05 04:45:30 +00:00
|
|
|
(ucapClickOutside)="profileContextMenuTrigger.closeMenu()"
|
2019-10-25 06:56:03 +00:00
|
|
|
>
|
2019-12-19 08:47:10 +00:00
|
|
|
<ng-template
|
|
|
|
matMenuContent
|
|
|
|
let-userInfo="userInfo"
|
|
|
|
let-group="group"
|
|
|
|
let-isSearchData="isSearchData"
|
|
|
|
>
|
2019-10-15 09:20:50 +00:00
|
|
|
<button
|
|
|
|
mat-menu-item
|
2019-12-26 08:34:52 +00:00
|
|
|
(click)="onClickProfileContextMenu('VIEW_PROFILE', userInfo, group)"
|
2019-10-15 09:20:50 +00:00
|
|
|
>
|
2020-01-03 07:17:23 +00:00
|
|
|
{{ 'profile.open' | translate }}
|
2019-10-15 09:20:50 +00:00
|
|
|
</button>
|
|
|
|
<button
|
|
|
|
mat-menu-item
|
2019-12-19 08:47:10 +00:00
|
|
|
*ngIf="
|
|
|
|
getShowProfileContextMenu(
|
|
|
|
'REGISTER_FAVORITE',
|
|
|
|
userInfo,
|
|
|
|
group,
|
|
|
|
isSearchData
|
|
|
|
)
|
|
|
|
"
|
2019-10-15 09:20:50 +00:00
|
|
|
(click)="onClickProfileContextMenu('REGISTER_FAVORITE', userInfo)"
|
|
|
|
>
|
2019-10-21 08:23:02 +00:00
|
|
|
즐겨찾기 {{ userInfo.isFavorit ? '해제' : '등록' }}
|
2019-10-15 09:20:50 +00:00
|
|
|
</button>
|
|
|
|
<button mat-menu-item (click)="onClickProfileContextMenu('CHAT', userInfo)">
|
|
|
|
대화하기
|
|
|
|
</button>
|
|
|
|
<button
|
|
|
|
mat-menu-item
|
2019-12-19 08:47:10 +00:00
|
|
|
*ngIf="
|
|
|
|
getShowProfileContextMenu(
|
|
|
|
'REMOVE_FROM_GROUP',
|
|
|
|
userInfo,
|
|
|
|
group,
|
|
|
|
isSearchData
|
|
|
|
)
|
|
|
|
"
|
2019-11-21 02:46:49 +00:00
|
|
|
(click)="onClickProfileContextMenu('REMOVE_FROM_GROUP', userInfo, group)"
|
2019-10-15 09:20:50 +00:00
|
|
|
>
|
|
|
|
이 그룹에서 삭제
|
|
|
|
</button>
|
|
|
|
<button
|
|
|
|
mat-menu-item
|
2019-12-19 08:47:10 +00:00
|
|
|
*ngIf="
|
|
|
|
getShowProfileContextMenu('COPY_BUDDY', userInfo, group, isSearchData)
|
|
|
|
"
|
2019-10-15 09:20:50 +00:00
|
|
|
(click)="onClickProfileContextMenu('COPY_BUDDY', userInfo)"
|
|
|
|
>
|
|
|
|
대화 상대 복사
|
|
|
|
</button>
|
|
|
|
<button
|
|
|
|
mat-menu-item
|
2019-12-19 08:47:10 +00:00
|
|
|
*ngIf="
|
|
|
|
getShowProfileContextMenu('MOVE_BUDDY', userInfo, group, isSearchData)
|
|
|
|
"
|
2019-11-21 02:46:49 +00:00
|
|
|
(click)="onClickProfileContextMenu('MOVE_BUDDY', userInfo, group)"
|
2019-10-15 09:20:50 +00:00
|
|
|
>
|
|
|
|
대화 상대 이동
|
|
|
|
</button>
|
|
|
|
<button
|
|
|
|
mat-menu-item
|
2019-12-19 08:47:10 +00:00
|
|
|
*ngIf="
|
|
|
|
getShowProfileContextMenu('SEND_MESSAGE', userInfo, group, isSearchData)
|
|
|
|
"
|
2019-12-10 23:18:32 +00:00
|
|
|
(click)="onClickProfileContextMenu('SEND_MESSAGE', userInfo)"
|
2019-10-15 09:20:50 +00:00
|
|
|
>
|
|
|
|
쪽지 보내기
|
|
|
|
</button>
|
2019-11-21 02:46:49 +00:00
|
|
|
<!-- <button
|
2019-10-15 09:20:50 +00:00
|
|
|
mat-menu-item
|
2019-11-21 07:15:15 +00:00
|
|
|
*ngIf="getShowProfileContextMenu('REGISTER_NICKNAME', userInfo, group)"
|
2019-10-15 09:20:50 +00:00
|
|
|
(click)="onClickProfileContextMenu('REGISTER_NICKNAME', userInfo)"
|
|
|
|
>
|
|
|
|
닉네임 설정
|
2019-11-21 02:46:49 +00:00
|
|
|
</button> -->
|
2019-10-15 02:07:26 +00:00
|
|
|
</ng-template>
|
|
|
|
</mat-menu>
|
2019-10-15 02:50:59 +00:00
|
|
|
|
2019-10-15 07:39:58 +00:00
|
|
|
<div
|
|
|
|
style="visibility: hidden; position: fixed"
|
|
|
|
[style.left]="groupContextMenuPosition.x"
|
|
|
|
[style.top]="groupContextMenuPosition.y"
|
2019-10-16 01:20:49 +00:00
|
|
|
#groupContextMenuTrigger="matMenuTrigger"
|
2019-10-15 07:39:58 +00:00
|
|
|
[matMenuTriggerFor]="groupContextMenu"
|
|
|
|
></div>
|
2019-10-25 06:56:03 +00:00
|
|
|
<mat-menu
|
|
|
|
#groupContextMenu="matMenu"
|
|
|
|
[hasBackdrop]="false"
|
2019-11-05 04:45:30 +00:00
|
|
|
(ucapClickOutside)="groupContextMenuTrigger.closeMenu()"
|
2019-10-25 06:56:03 +00:00
|
|
|
>
|
2019-10-15 09:20:50 +00:00
|
|
|
<ng-template matMenuContent let-group="group">
|
2019-11-21 07:15:15 +00:00
|
|
|
<button
|
|
|
|
mat-menu-item
|
|
|
|
*ngIf="getShowGroupContextMenu('CHAT', group)"
|
|
|
|
(click)="onClickGroupContextMenu('CHAT', group)"
|
|
|
|
>
|
2019-10-15 09:20:50 +00:00
|
|
|
그룹 대화하기
|
|
|
|
</button>
|
2019-11-21 07:15:15 +00:00
|
|
|
<button
|
|
|
|
mat-menu-item
|
2019-12-10 23:18:32 +00:00
|
|
|
*ngIf="getShowGroupContextMenu('SEND_MESSAGE', group)"
|
|
|
|
(click)="onClickGroupContextMenu('SEND_MESSAGE', group)"
|
2019-11-21 07:15:15 +00:00
|
|
|
>
|
2019-10-15 09:20:50 +00:00
|
|
|
그룹 쪽지 보내기
|
|
|
|
</button>
|
2019-12-16 08:42:49 +00:00
|
|
|
<mat-divider *ngIf="getShowGroupContextMenu('DIV1', group)"></mat-divider>
|
2019-11-21 07:15:15 +00:00
|
|
|
<button
|
|
|
|
mat-menu-item
|
|
|
|
*ngIf="getShowGroupContextMenu('RENAME', group)"
|
|
|
|
(click)="onClickGroupContextMenu('RENAME', group)"
|
|
|
|
>
|
2019-10-15 09:20:50 +00:00
|
|
|
그룹 이름 바꾸기
|
|
|
|
</button>
|
|
|
|
<button
|
|
|
|
mat-menu-item
|
2019-11-21 07:15:15 +00:00
|
|
|
*ngIf="getShowGroupContextMenu('EDIT_MEMBER', group)"
|
2019-10-15 09:20:50 +00:00
|
|
|
(click)="onClickGroupContextMenu('EDIT_MEMBER', group)"
|
|
|
|
>
|
|
|
|
그룹 멤버 변경
|
|
|
|
</button>
|
2019-11-21 07:15:15 +00:00
|
|
|
<button
|
|
|
|
mat-menu-item
|
|
|
|
*ngIf="getShowGroupContextMenu('DELETE', group)"
|
|
|
|
(click)="onClickGroupContextMenu('DELETE', group)"
|
|
|
|
>
|
2019-10-15 09:20:50 +00:00
|
|
|
그룹 삭제
|
|
|
|
</button>
|
2019-10-15 02:50:59 +00:00
|
|
|
</ng-template>
|
|
|
|
</mat-menu>
|