inline edit is added

This commit is contained in:
병준 박 2019-12-02 18:46:07 +09:00
parent bf333785b9
commit 2a737bbe37
6 changed files with 26 additions and 4 deletions

View File

@ -349,6 +349,10 @@ $daesang-grey: (
} }
} }
.mat-form-field-appearance-legacy[inlineEdit] .mat-form-field-underline {
background-color: transparent;
}
.messages .container { .messages .container {
background: mat-color($accent, 50); background: mat-color($accent, 50);
} }

View File

@ -40,7 +40,7 @@
" "
(click)="profileImageFileInput.click()" (click)="profileImageFileInput.click()"
> >
<span class="mdi mdi-upload mdi-24px"></span> <span class="mdi mdi-upload mdi-18px"></span>
</button> </button>
<input <input
type="file" type="file"
@ -115,7 +115,7 @@
</span> </span>
</div> </div>
<ul> <ul style="padding-top: 20px;">
<li> <li>
<svg <svg
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
@ -132,6 +132,10 @@
d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z" d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"
></path> ></path>
</svg> </svg>
<!-- <mat-form-field ucapInlineEditInput style="width: 100%;">
<input matInput [formControl]="userIntroFormControl" />
</mat-form-field> -->
<!-- <ucap-inline-edit ([value])="(userInfo.intro)"></ucap-inline-edit> -->
{{ userInfo.intro }} {{ userInfo.intro }}
</li> </li>
<li> <li>

View File

@ -11,6 +11,7 @@ import {
import { UserInfo } from '@ucap-webmessenger/protocol-sync'; import { UserInfo } from '@ucap-webmessenger/protocol-sync';
import { UserInfoF } from '@ucap-webmessenger/protocol-query'; import { UserInfoF } from '@ucap-webmessenger/protocol-query';
import { FileUploadItem } from '@ucap-webmessenger/api-common'; import { FileUploadItem } from '@ucap-webmessenger/api-common';
import { FormControl } from '@angular/forms';
@Component({ @Component({
selector: 'ucap-profile-profile', selector: 'ucap-profile-profile',
@ -48,6 +49,8 @@ export class ProfileComponent implements OnInit {
@ViewChild('profileImageFileInput', { static: false }) @ViewChild('profileImageFileInput', { static: false })
profileImageFileInput: ElementRef<HTMLInputElement>; profileImageFileInput: ElementRef<HTMLInputElement>;
userIntroFormControl = new FormControl('');
profileImageFileUploadItem: FileUploadItem; profileImageFileUploadItem: FileUploadItem;
constructor() {} constructor() {}

View File

@ -3,12 +3,15 @@ import { MatCardModule } from '@angular/material/card';
import { NgModule, ModuleWithProviders } from '@angular/core'; import { NgModule, ModuleWithProviders } from '@angular/core';
import { CommonModule } from '@angular/common'; import { CommonModule } from '@angular/common';
import { ReactiveFormsModule } from '@angular/forms';
import { FlexLayoutModule } from '@angular/flex-layout'; import { FlexLayoutModule } from '@angular/flex-layout';
import { MatRippleModule, MatCheckboxModule } from '@angular/material'; import { MatRippleModule, MatCheckboxModule } from '@angular/material';
import { MatButtonModule } from '@angular/material/button'; import { MatButtonModule } from '@angular/material/button';
import { MatIconModule } from '@angular/material/icon'; import { MatIconModule } from '@angular/material/icon';
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner'; import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
import { MatInputModule } from '@angular/material/input';
import { MatFormFieldModule } from '@angular/material/form-field';
import { UCapUiModule } from '@ucap-webmessenger/ui'; import { UCapUiModule } from '@ucap-webmessenger/ui';
@ -29,9 +32,12 @@ const SERVICES = [];
@NgModule({ @NgModule({
imports: [ imports: [
CommonModule, CommonModule,
ReactiveFormsModule,
FlexLayoutModule, FlexLayoutModule,
MatButtonModule, MatButtonModule,
MatFormFieldModule,
MatIconModule, MatIconModule,
MatInputModule,
MatRippleModule, MatRippleModule,
MatCheckboxModule, MatCheckboxModule,
MatCardModule, MatCardModule,

View File

@ -2,8 +2,6 @@ import {
Component, Component,
OnInit, OnInit,
Input, Input,
Output,
EventEmitter,
ElementRef, ElementRef,
AfterViewInit AfterViewInit
} from '@angular/core'; } from '@angular/core';

View File

@ -2,6 +2,8 @@ import { MatTooltipModule } from '@angular/material/tooltip';
import { NgModule, ModuleWithProviders } from '@angular/core'; import { NgModule, ModuleWithProviders } from '@angular/core';
import { CommonModule } from '@angular/common'; import { CommonModule } from '@angular/common';
import { ReactiveFormsModule } from '@angular/forms';
import { FlexLayoutModule } from '@angular/flex-layout'; import { FlexLayoutModule } from '@angular/flex-layout';
import { MatButtonModule } from '@angular/material/button'; import { MatButtonModule } from '@angular/material/button';
@ -12,6 +14,8 @@ import { MatProgressBarModule } from '@angular/material/progress-bar';
import { MatSliderModule } from '@angular/material/slider'; import { MatSliderModule } from '@angular/material/slider';
import { MatSnackBarModule } from '@angular/material/snack-bar'; import { MatSnackBarModule } from '@angular/material/snack-bar';
import { MatToolbarModule } from '@angular/material/toolbar'; import { MatToolbarModule } from '@angular/material/toolbar';
import { MatInputModule } from '@angular/material/input';
import { MatFormFieldModule } from '@angular/material/form-field';
import { DragDropModule } from '@angular/cdk/drag-drop'; import { DragDropModule } from '@angular/cdk/drag-drop';
@ -91,17 +95,20 @@ const SERVICES = [
@NgModule({ @NgModule({
imports: [ imports: [
CommonModule, CommonModule,
ReactiveFormsModule,
FlexLayoutModule, FlexLayoutModule,
MatButtonModule, MatButtonModule,
MatCardModule, MatCardModule,
MatDialogModule, MatDialogModule,
MatIconModule, MatIconModule,
MatInputModule,
MatProgressBarModule, MatProgressBarModule,
MatSliderModule, MatSliderModule,
MatSnackBarModule, MatSnackBarModule,
MatToolbarModule, MatToolbarModule,
MatTooltipModule, MatTooltipModule,
MatTabsModule, MatTabsModule,
MatFormFieldModule,
DragDropModule DragDropModule
], ],
exports: [...COMPONENTS, ...DIRECTIVES, ...PIPES], exports: [...COMPONENTS, ...DIRECTIVES, ...PIPES],