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,6 +50,7 @@
</div> </div>
<div *ngIf="!isSearch" class="app-layout-chat-left-sidenav-chat-list"> <div *ngIf="!isSearch" class="app-layout-chat-left-sidenav-chat-list">
<perfect-scrollbar fxFlex="1 1 auto">
<ucap-room-list-item <ucap-room-list-item
*ngFor="let room of roomList" *ngFor="let room of roomList"
[loginRes]="loginRes" [loginRes]="loginRes"
@ -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,5 +1,4 @@
<div>
<div>
<div class="current-head"> <div class="current-head">
<h3>그룹</h3> <h3>그룹</h3>
<div class="btn-box"> <div class="btn-box">
@ -11,7 +10,7 @@
#groupMenuTrigger="matMenuTrigger" #groupMenuTrigger="matMenuTrigger"
[matMenuTriggerFor]="groupMenu" [matMenuTriggerFor]="groupMenu"
aria-label="group menu" aria-label="group menu"
(ucapUiClickOutside)="groupMenuTrigger.closeMenu()" (ucapClickOutside)="groupMenuTrigger.closeMenu()"
> >
<mat-icon>more_vert</mat-icon> <mat-icon>more_vert</mat-icon>
</button> </button>
@ -51,8 +50,8 @@
<span>그룹 가져오기</span> <span>그룹 가져오기</span>
</button> </button>
</mat-menu> </mat-menu>
</div> </div>
<div *ngIf="!isShowSearch" class="search-result" style="overflow: auto;"> <div *ngIf="!isShowSearch" class="search-result" style="overflow: auto;">
<ucap-group-expansion-panel <ucap-group-expansion-panel
#groupExpansionPanel #groupExpansionPanel
[groupBuddyList]="groupBuddyList$ | async" [groupBuddyList]="groupBuddyList$ | async"
@ -70,12 +69,16 @@
> >
</ucap-profile-user-list-item> </ucap-profile-user-list-item>
</ucap-group-expansion-panel> </ucap-group-expansion-panel>
</div> </div>
<div *ngIf="isShowSearch" class="search-result"> <div *ngIf="isShowSearch" class="search-result">
<div *ngIf="searchProcessing"> <div *ngIf="searchProcessing">
<mat-progress-bar mode="indeterminate"></mat-progress-bar> <mat-progress-bar mode="indeterminate"></mat-progress-bar>
</div> </div>
<div class="result-num">검색결과<span class="text-accent-color">({{ searchUserInfos.length }}명)</span></div> <div class="result-num">
검색결과<span class="text-accent-color"
>({{ searchUserInfos.length }}명)</span
>
</div>
<ucap-profile-user-list-item <ucap-profile-user-list-item
*ngFor="let userInfo of searchUserInfos" *ngFor="let userInfo of searchUserInfos"
[userInfo]="userInfo" [userInfo]="userInfo"
@ -84,8 +87,7 @@
(click)="onSelectBuddy(userInfo)" (click)="onSelectBuddy(userInfo)"
> >
</ucap-profile-user-list-item> </ucap-profile-user-list-item>
</div> </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,10 +1,9 @@
<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"
@ -12,18 +11,15 @@
<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"]
} }
} }