names are changed

This commit is contained in:
병준 박 2019-11-05 13:45:30 +09:00
parent 8da169a144
commit 5b9fa9f55c
10 changed files with 115 additions and 113 deletions

View File

@ -11,7 +11,9 @@
<ng-template mat-tab-label> <ng-template mat-tab-label>
<mat-icon>group</mat-icon> <mat-icon>group</mat-icon>
</ng-template> </ng-template>
<app-layout-chat-left-sidenav-group class="left-group-side"></app-layout-chat-left-sidenav-group> <app-layout-chat-left-sidenav-group
class="left-group-side"
></app-layout-chat-left-sidenav-group>
</mat-tab> </mat-tab>
<mat-tab> <mat-tab>
<ng-template mat-tab-label> <ng-template mat-tab-label>
@ -44,8 +46,8 @@
<app-layout-chat-left-sidenav-call></app-layout-chat-left-sidenav-call> <app-layout-chat-left-sidenav-call></app-layout-chat-left-sidenav-call>
</mat-tab> </mat-tab>
</mat-tab-group> </mat-tab-group>
<ucap-ui-float-action-button <ucap-float-action-button
[fabButtons]="fabButtons" [fabButtons]="fabButtons"
(buttonClick)="onClickFab($event)" (buttonClick)="onClickFab($event)"
></ucap-ui-float-action-button> ></ucap-float-action-button>
</div> </div>

View File

@ -50,17 +50,18 @@
</div> </div>
<div *ngIf="!isSearch" class="app-layout-chat-left-sidenav-chat-list"> <div *ngIf="!isSearch" class="app-layout-chat-left-sidenav-chat-list">
<ucap-room-list-item <perfect-scrollbar fxFlex="1 1 auto">
*ngFor="let room of roomList" <ucap-room-list-item
[loginRes]="loginRes" *ngFor="let room of roomList"
[roomInfo]="room" [loginRes]="loginRes"
[roomUserInfo]="getRoomUserList(room)" [roomInfo]="room"
[sessionVerinfo]="sessionVerinfo" [roomUserInfo]="getRoomUserList(room)"
(click)="onSelectedRoom(room)" [sessionVerinfo]="sessionVerinfo"
(contextmenu)="onContextMenuChat($event, room)" (click)="onSelectedRoom(room)"
> (contextmenu)="onContextMenuChat($event, room)"
</ucap-room-list-item> >
<!-- <cdk-virtual-scroll-viewport </ucap-room-list-item>
<!-- <cdk-virtual-scroll-viewport
itemSize="20" itemSize="20"
class="app-layout-chat-left-sidenav-chat-list-viewport" class="app-layout-chat-left-sidenav-chat-list-viewport"
> >
@ -75,6 +76,7 @@
> >
</ucap-room-list-item> </ucap-room-list-item>
</cdk-virtual-scroll-viewport> --> </cdk-virtual-scroll-viewport> -->
</perfect-scrollbar>
</div> </div>
<div *ngIf="!!isSearch" class="app-layout-chat-left-sidenav-chat-list search"> <div *ngIf="!!isSearch" class="app-layout-chat-left-sidenav-chat-list search">
<ucap-room-list-item <ucap-room-list-item
@ -114,7 +116,7 @@
<mat-menu <mat-menu
#chatContextMenu="matMenu" #chatContextMenu="matMenu"
[hasBackdrop]="false" [hasBackdrop]="false"
(ucapUiClickOutside)="chatContextMenuTrigger.closeMenu()" (ucapClickOutside)="chatContextMenuTrigger.closeMenu()"
> >
<ng-template matMenuContent let-roomInfo="roomInfo"> <ng-template matMenuContent let-roomInfo="roomInfo">
<button mat-menu-item (click)="onSelectedRoom(roomInfo)"> <button mat-menu-item (click)="onSelectedRoom(roomInfo)">

View File

@ -1,91 +1,93 @@
<div>
<div> <div class="current-head">
<div class="current-head"> <h3>그룹</h3>
<h3>그룹</h3> <div class="btn-box">
<div class="btn-box"> <button mat-icon-button>
<button mat-icon-button> <mat-icon>person_add</mat-icon>
<mat-icon>person_add</mat-icon>
</button>
<button
mat-icon-button
#groupMenuTrigger="matMenuTrigger"
[matMenuTriggerFor]="groupMenu"
aria-label="group menu"
(ucapUiClickOutside)="groupMenuTrigger.closeMenu()"
>
<mat-icon>more_vert</mat-icon>
</button>
</div>
</div>
<ucap-organization-tenant-search
[companyList]="companyList$ | async"
[companyCode]="companyCode"
(keyDownEnter)="onKeyDownEnterOrganizationTenantSearch($event)"
(cancel)="onClickCancel($event)"
></ucap-organization-tenant-search>
<mat-menu
#groupMenu="matMenu"
xPosition="after"
yPosition="below"
[hasBackdrop]="false"
>
<button mat-menu-item (click)="onClickGroupMenu('GROUP_NEW')">
<mat-icon>group_add</mat-icon>
<span>새 그룹 추가</span>
</button> </button>
<button mat-menu-item (click)="onClickGroupMenu('GROUP_EXPAND_MORE')"> <button
<mat-icon>expand_more</mat-icon> mat-icon-button
<span>그룹 전체 열기</span> #groupMenuTrigger="matMenuTrigger"
</button> [matMenuTriggerFor]="groupMenu"
<button mat-menu-item (click)="onClickGroupMenu('GROUP_EXPAND_LESS')"> aria-label="group menu"
<mat-icon>expand_less</mat-icon> (ucapClickOutside)="groupMenuTrigger.closeMenu()"
<span>그룹 전체 닫기</span>
</button>
<button mat-menu-item (click)="onClickGroupMenu('GROUP_SAVE')">
<mat-icon>save</mat-icon>
<span>그룹 저장하기</span>
</button>
<button mat-menu-item (click)="onClickGroupMenu('GROUP_RESTORE')">
<mat-icon>restore</mat-icon>
<span>그룹 가져오기</span>
</button>
</mat-menu>
</div>
<div *ngIf="!isShowSearch" class="search-result" style="overflow: auto;">
<ucap-group-expansion-panel
#groupExpansionPanel
[groupBuddyList]="groupBuddyList$ | async"
[favoritBuddyList]="favoritBuddyList$ | async"
[myProfileInfo]="loginRes.userInfo"
(more)="onMoreGroup($event)"
>
<ucap-profile-user-list-item
*ucapGroupExpansionPanelItem="let userInfo"
[userInfo]="userInfo"
[presence]="getStatusBulkInfo(userInfo) | async"
[sessionVerinfo]="sessionVerinfo"
(click)="onSelectBuddy(userInfo)"
(contextmenu)="onContextMenuProfile($event, userInfo)"
> >
</ucap-profile-user-list-item> <mat-icon>more_vert</mat-icon>
</ucap-group-expansion-panel> </button>
</div>
<div *ngIf="isShowSearch" class="search-result">
<div *ngIf="searchProcessing">
<mat-progress-bar mode="indeterminate"></mat-progress-bar>
</div> </div>
<div class="result-num">검색결과<span class="text-accent-color">({{ searchUserInfos.length }}명)</span></div> </div>
<ucap-organization-tenant-search
[companyList]="companyList$ | async"
[companyCode]="companyCode"
(keyDownEnter)="onKeyDownEnterOrganizationTenantSearch($event)"
(cancel)="onClickCancel($event)"
></ucap-organization-tenant-search>
<mat-menu
#groupMenu="matMenu"
xPosition="after"
yPosition="below"
[hasBackdrop]="false"
>
<button mat-menu-item (click)="onClickGroupMenu('GROUP_NEW')">
<mat-icon>group_add</mat-icon>
<span>새 그룹 추가</span>
</button>
<button mat-menu-item (click)="onClickGroupMenu('GROUP_EXPAND_MORE')">
<mat-icon>expand_more</mat-icon>
<span>그룹 전체 열기</span>
</button>
<button mat-menu-item (click)="onClickGroupMenu('GROUP_EXPAND_LESS')">
<mat-icon>expand_less</mat-icon>
<span>그룹 전체 닫기</span>
</button>
<button mat-menu-item (click)="onClickGroupMenu('GROUP_SAVE')">
<mat-icon>save</mat-icon>
<span>그룹 저장하기</span>
</button>
<button mat-menu-item (click)="onClickGroupMenu('GROUP_RESTORE')">
<mat-icon>restore</mat-icon>
<span>그룹 가져오기</span>
</button>
</mat-menu>
</div>
<div *ngIf="!isShowSearch" class="search-result" style="overflow: auto;">
<ucap-group-expansion-panel
#groupExpansionPanel
[groupBuddyList]="groupBuddyList$ | async"
[favoritBuddyList]="favoritBuddyList$ | async"
[myProfileInfo]="loginRes.userInfo"
(more)="onMoreGroup($event)"
>
<ucap-profile-user-list-item <ucap-profile-user-list-item
*ngFor="let userInfo of searchUserInfos" *ucapGroupExpansionPanelItem="let userInfo"
[userInfo]="userInfo" [userInfo]="userInfo"
[presence]="getStatusBulkInfo(userInfo) | async" [presence]="getStatusBulkInfo(userInfo) | async"
[sessionVerinfo]="sessionVerinfo" [sessionVerinfo]="sessionVerinfo"
(click)="onSelectBuddy(userInfo)" (click)="onSelectBuddy(userInfo)"
(contextmenu)="onContextMenuProfile($event, userInfo)"
> >
</ucap-profile-user-list-item> </ucap-profile-user-list-item>
</ucap-group-expansion-panel>
</div>
<div *ngIf="isShowSearch" class="search-result">
<div *ngIf="searchProcessing">
<mat-progress-bar mode="indeterminate"></mat-progress-bar>
</div> </div>
<div class="result-num">
검색결과<span class="text-accent-color"
>({{ searchUserInfos.length }}명)</span
>
</div>
<ucap-profile-user-list-item
*ngFor="let userInfo of searchUserInfos"
[userInfo]="userInfo"
[presence]="getStatusBulkInfo(userInfo) | async"
[sessionVerinfo]="sessionVerinfo"
(click)="onSelectBuddy(userInfo)"
>
</ucap-profile-user-list-item>
</div>
<div <div
style="visibility: hidden; position: fixed" style="visibility: hidden; position: fixed"
@ -97,7 +99,7 @@
<mat-menu <mat-menu
#profileContextMenu="matMenu" #profileContextMenu="matMenu"
[hasBackdrop]="false" [hasBackdrop]="false"
(ucapUiClickOutside)="profileContextMenuTrigger.closeMenu()" (ucapClickOutside)="profileContextMenuTrigger.closeMenu()"
> >
<ng-template matMenuContent let-userInfo="userInfo"> <ng-template matMenuContent let-userInfo="userInfo">
<button <button
@ -164,7 +166,7 @@
<mat-menu <mat-menu
#groupContextMenu="matMenu" #groupContextMenu="matMenu"
[hasBackdrop]="false" [hasBackdrop]="false"
(ucapUiClickOutside)="groupContextMenuTrigger.closeMenu()" (ucapClickOutside)="groupContextMenuTrigger.closeMenu()"
> >
<ng-template matMenuContent let-group="group"> <ng-template matMenuContent let-group="group">
<button mat-menu-item (click)="onClickGroupContextMenu('CHAT', group)"> <button mat-menu-item (click)="onClickGroupContextMenu('CHAT', group)">

View File

@ -74,7 +74,7 @@
<img <img
class="avatar" class="avatar"
style="width: 50px; height: 50px;" style="width: 50px; height: 50px;"
ucapUiImage ucapImage
[base]="profileImageRoot" [base]="profileImageRoot"
[path]="getUserProfile(message.senderSeq)" [path]="getUserProfile(message.senderSeq)"
[default]="'assets/images/img_nophoto_50.png'" [default]="'assets/images/img_nophoto_50.png'"

View File

@ -11,7 +11,7 @@
<dt> <dt>
<img <img
class="thumbnail" class="thumbnail"
ucapUiImage ucapImage
[base]="profileImageRoot" [base]="profileImageRoot"
[path]="userInfo.profileImageFile" [path]="userInfo.profileImageFile"
[default]="'assets/images/img_nophoto_50.png'" [default]="'assets/images/img_nophoto_50.png'"

View File

@ -1,29 +1,25 @@
<div class="list-item"> <div class="list-item">
<dl class="item-default"> <dl class="item-default">
<dt> <dt>
<!-- <img class="thumbnail" /> -->
<img <img
class="thumbnail" class="thumbnail"
ucapUiImage ucapImage
[base]="sessionVerinfo.profileRoot" [base]="sessionVerinfo.profileRoot"
[path]="imagePath" [path]="imagePath"
[default]="defaultPath" [default]="defaultPath"
/> />
<span *ngIf="roomInfo.isTimeRoom" class="text-warn-color badge-timer"> <span *ngIf="roomInfo.isTimeRoom" class="text-warn-color badge-timer">
<mat-icon>timer</mat-icon> <mat-icon>timer</mat-icon>
</span> </span>
<!-- <ucap-ui-imaage
[imageClass]="'thumbnail'"
[base]="sessionVerinfo.profileRoot"
[path]="imagePath"
[default]="defaultPath"
></ucap-ui-imaage> -->
</dt> </dt>
<dd class="info"> <dd class="info">
<div class="detail"> <div class="detail">
<div class="room-name"> <div class="room-name">
<div class="name">{{ getRoomName(roomInfo) }}</div> <div class="name">{{ getRoomName(roomInfo) }}</div>
<div class="num text-accent-color" *ngIf="roomInfo.roomType === RoomType.Multi"> <div
class="num text-accent-color"
*ngIf="roomInfo.roomType === RoomType.Multi"
>
{{ roomInfo.joinUserCount }}명 {{ roomInfo.joinUserCount }}명
</div> </div>
<div *ngIf="!checkable && !roomInfo.receiveAlarm"> <div *ngIf="!checkable && !roomInfo.receiveAlarm">

View File

@ -9,7 +9,7 @@ export interface FloatActionButton {
} }
@Component({ @Component({
selector: 'ucap-ui-float-action-button', selector: 'ucap-float-action-button',
templateUrl: './float-action-button.component.html', templateUrl: './float-action-button.component.html',
styleUrls: ['./float-action-button.component.scss'], styleUrls: ['./float-action-button.component.scss'],
animations: ucapAnimations animations: ucapAnimations

View File

@ -15,7 +15,7 @@ import {
} from '@angular/core'; } from '@angular/core';
import { isPlatformBrowser } from '@angular/common'; import { isPlatformBrowser } from '@angular/common';
@Directive({ selector: '[ucapUiClickOutside]' }) @Directive({ selector: '[ucapClickOutside]' })
export class ClickOutsideDirective implements OnInit, OnChanges, OnDestroy { export class ClickOutsideDirective implements OnInit, OnChanges, OnDestroy {
@Input() @Input()
clickOutsideEnabled = true; clickOutsideEnabled = true;
@ -39,7 +39,7 @@ export class ClickOutsideDirective implements OnInit, OnChanges, OnDestroy {
clickOutsideEvents = ''; clickOutsideEvents = '';
@Output() @Output()
ucapUiClickOutside: EventEmitter<Event> = new EventEmitter<Event>(); ucapClickOutside: EventEmitter<Event> = new EventEmitter<Event>();
private nodesExcluded: Array<HTMLElement> = []; private nodesExcluded: Array<HTMLElement> = [];
private events: Array<string> = ['click', 'contextmenu']; private events: Array<string> = ['click', 'contextmenu'];
@ -164,7 +164,7 @@ export class ClickOutsideDirective implements OnInit, OnChanges, OnDestroy {
return; return;
} }
this.ngZone.run(() => this.ucapUiClickOutside.emit(ev)); this.ngZone.run(() => this.ucapClickOutside.emit(ev));
} }
private _shouldExclude(target): boolean { private _shouldExclude(target): boolean {

View File

@ -12,7 +12,7 @@ import {
import { NGXLogger } from 'ngx-logger'; import { NGXLogger } from 'ngx-logger';
@Directive({ @Directive({
selector: 'img[ucapUiImage]' selector: 'img[ucapImage]'
}) })
export class ImageDirective implements OnInit, AfterViewInit { export class ImageDirective implements OnInit, AfterViewInit {
@Input() @Input()

View File

@ -1,7 +1,7 @@
{ {
"extends": "../../tslint.json", "extends": "../../tslint.json",
"rules": { "rules": {
"directive-selector": [true, "attribute", "ucapUi", "camelCase"], "directive-selector": [true, "attribute", "ucap", "camelCase"],
"component-selector": [true, "element", "ucap-ui", "kebab-case"] "component-selector": [true, "element", "ucap", "kebab-case"]
} }
} }