2019-09-27 12:53:21 +09:00
|
|
|
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
|
2019-09-25 17:41:16 +09:00
|
|
|
|
2019-09-27 12:53:21 +09:00
|
|
|
import { GroupDetailData, UserInfo } from '@ucap-webmessenger/protocol-sync';
|
2019-09-24 09:03:36 +09:00
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'ucap-group-expansion-panel',
|
|
|
|
templateUrl: './expansion-panel.component.html',
|
|
|
|
styleUrls: ['./expansion-panel.component.scss']
|
|
|
|
})
|
|
|
|
export class ExpansionPanelComponent implements OnInit {
|
|
|
|
@Input()
|
2019-09-27 12:53:21 +09:00
|
|
|
groupBuddyList: { group: GroupDetailData; buddyList: UserInfo[] }[];
|
|
|
|
|
|
|
|
@Output()
|
|
|
|
selectBuddy = new EventEmitter<UserInfo>();
|
2019-09-24 09:03:36 +09:00
|
|
|
|
|
|
|
constructor() {}
|
|
|
|
|
|
|
|
ngOnInit() {}
|
2019-09-27 12:53:21 +09:00
|
|
|
|
|
|
|
onClickBuddy(buddy: UserInfo) {
|
|
|
|
this.selectBuddy.emit(buddy);
|
|
|
|
}
|
2019-09-24 09:03:36 +09:00
|
|
|
}
|