From a6f1386c98dd743874c17df8a229165d6e5364d4 Mon Sep 17 00:00:00 2001 From: leejinho Date: Mon, 9 Mar 2020 10:00:55 +0900 Subject: [PATCH] =?UTF-8?q?=ED=86=B5=ED=95=A9=EA=B2=80=EC=83=89=EC=B0=BD?= =?UTF-8?q?=20=EC=A0=91=EC=96=B4=EB=91=90=EA=B8=B0=20=EA=B8=B0=EB=8A=A5=20?= =?UTF-8?q?=EA=B5=AC=ED=98=84.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../integrated-search.dialog.component.html | 12 +---- .../integrated-search.dialog.component.scss | 4 ++ .../integrated-search.dialog.component.ts | 10 +++- .../native/components/top-bar.component.html | 2 + .../native/components/top-bar.component.ts | 54 +++++++++++++++---- .../src/assets/scss/partials/_dialogs.scss | 4 ++ .../integrated-search-form.component.html | 8 +++ .../integrated-search-form.component.ts | 10 ++++ .../src/lib/services/dialog.service.ts | 10 +++- 9 files changed, 91 insertions(+), 23 deletions(-) diff --git a/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/search/integrated-search.dialog.component.html b/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/search/integrated-search.dialog.component.html index 6b55bd32..69314fe7 100644 --- a/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/search/integrated-search.dialog.component.html +++ b/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/search/integrated-search.dialog.component.html @@ -114,20 +114,12 @@ diff --git a/projects/ucap-webmessenger-ui/src/lib/components/integrated-search-form.component.ts b/projects/ucap-webmessenger-ui/src/lib/components/integrated-search-form.component.ts index 66cd08ed..d1f23e33 100644 --- a/projects/ucap-webmessenger-ui/src/lib/components/integrated-search-form.component.ts +++ b/projects/ucap-webmessenger-ui/src/lib/components/integrated-search-form.component.ts @@ -18,9 +18,15 @@ export class IntegratedSearchFormComponent implements OnInit { @Input() searchWord?: string; + @Input() + isShowOpenIcon = false; + @Output() search = new EventEmitter(); + @Output() + showDialog = new EventEmitter(); + constructor(private changeDetectorRef: ChangeDetectorRef) {} ngOnInit() {} @@ -28,4 +34,8 @@ export class IntegratedSearchFormComponent implements OnInit { onKeyDownEnter(keyword: string) { this.search.emit(keyword); } + + onClickShowDialog() { + this.showDialog.emit(); + } } diff --git a/projects/ucap-webmessenger-ui/src/lib/services/dialog.service.ts b/projects/ucap-webmessenger-ui/src/lib/services/dialog.service.ts index 12bc3e03..66a049c5 100644 --- a/projects/ucap-webmessenger-ui/src/lib/services/dialog.service.ts +++ b/projects/ucap-webmessenger-ui/src/lib/services/dialog.service.ts @@ -1,6 +1,10 @@ import { TemplateRef, Injectable } from '@angular/core'; import { ComponentType } from '@angular/cdk/portal'; -import { MatDialog, MatDialogConfig } from '@angular/material/dialog'; +import { + MatDialog, + MatDialogConfig, + MatDialogRef +} from '@angular/material/dialog'; import { of } from 'rxjs'; import { take, map, catchError } from 'rxjs/operators'; @@ -38,6 +42,10 @@ export class DialogService { }); } + getDialogById(id: string): MatDialogRef { + return this.matDialog.getDialogById(id); + } + closeAll() { this.matDialog.closeAll(); }