수정사항반영

This commit is contained in:
khk 2020-01-10 17:32:48 +09:00
parent e2cc7aa3e6
commit ff87a0540e
4 changed files with 129 additions and 83 deletions

View File

@ -63,6 +63,7 @@
<mat-list-option <mat-list-option
*ngFor="let groupBuddy of groupBuddyList$ | async" *ngFor="let groupBuddy of groupBuddyList$ | async"
[value]="groupBuddy.group" [value]="groupBuddy.group"
class="group-name"
> >
<span class="title-name ellipsis"> {{ groupBuddy.group.name }} </span> <span class="title-name ellipsis"> {{ groupBuddy.group.name }} </span>
<span class="text-accent-color number" <span class="text-accent-color number"
@ -71,15 +72,8 @@
> >
</mat-list-option> </mat-list-option>
</mat-selection-list> </mat-selection-list>
<!-- <div>
<ucap-group-expansion-panel
#groupExpansionPanel
[groupBuddyList]="groupBuddyList$ | async"
[checkable]="true"
>
</ucap-group-expansion-panel>
</div> -->
</mat-card-content> </mat-card-content>
<mat-card-actions class="button-farm flex-row"> <mat-card-actions class="button-farm flex-row">
<button <button
mat-stroked-button mat-stroked-button

View File

@ -8,7 +8,6 @@
.confirm-card { .confirm-card {
min-width: 500px; min-width: 500px;
.mat-card-content { .mat-card-content {
} }
.button-farm { .button-farm {
text-align: right; text-align: right;
@ -31,14 +30,19 @@
margin-left: 10px; margin-left: 10px;
} }
} }
} }
.mat-selection-list { .mat-selection-list {
border-top: 1px solid #999999; border-top: 1px solid #999999;
} }
.mat-list-item {
::ng-deep .group-name {
&.mat-list-item {
border-bottom: 1px solid #dddddd; border-bottom: 1px solid #dddddd;
.mat-list-text {
flex-direction: row !important;
}
}
} }
.input-groupname-box { .input-groupname-box {
@ -46,8 +50,6 @@
flex-flow: column; flex-flow: column;
margin-bottom: 10px; margin-bottom: 10px;
border-radius: 4px; border-radius: 4px;
/*border:1px solid #dddddd;
box-shadow: 0 1px 1px 0 rgba(60,64,67,.08), 0 1px 3px 1px rgba(60,64,67,.16);*/
.btn-box { .btn-box {
margin-top: 10px; margin-top: 10px;

View File

@ -52,40 +52,64 @@
{{ treeControl.isExpanded(node) ? 'expand_less' : 'expand_more' }} {{ treeControl.isExpanded(node) ? 'expand_less' : 'expand_more' }}
</mat-icon> </mat-icon>
</button> </button>
<div class="group-info">
<ng-container [ngSwitch]="node.nodeType"> <ng-container [ngSwitch]="node.nodeType">
<span *ngSwitchCase="NodeType.Profile"> <span *ngSwitchCase="NodeType.Profile" class="group-name">
<span class="title-name ellipsis">{{ <span class="title-name ellipsis">{{
'profile.my' | translate 'profile.my' | translate
}}</span> }}</span>
</span>
<span *ngSwitchCase="NodeType.Favorit">
<span class="title-name ellipsis">{{
'group.nameFavorit' | translate
}}</span>
</span>
<span *ngSwitchCase="NodeType.Default">
<span class="title-name ellipsis">{{
'group.nameDefault' | translate
}}</span>
</span>
<span *ngSwitchCase="NodeType.MyDept">
<span class="title-name ellipsis">{{
'group.nameMyDept' | translate
}}</span>
</span>
<span *ngSwitchCase="NodeType.Buddy">
<span class="title-name ellipsis">{{
node.groupDetail.name
}}</span>
</span>
</ng-container>
<span class="text-accent-color number"> <span class="text-accent-color number">
({{ node.countOfChildren ({{ node.countOfChildren
}}{{ 'common.units.persons' | translate }})</span }}{{ 'common.units.persons' | translate }})</span
> >
</span>
<span *ngSwitchCase="NodeType.Favorit" class="group-name">
<span class="title-name ellipsis">{{
'group.nameFavorit' | translate
}}</span>
<span class="text-accent-color number">
({{ node.countOfChildren
}}{{ 'common.units.persons' | translate }})</span
>
</span>
<span *ngSwitchCase="NodeType.Default" class="group-name">
<span class="title-name ellipsis">{{
'group.nameDefault' | translate
}}</span>
<span class="text-accent-color number">
({{ node.countOfChildren
}}{{ 'common.units.persons' | translate }})</span
>
</span>
<span *ngSwitchCase="NodeType.MyDept" class="group-name">
<span class="title-name ellipsis">{{
'group.nameMyDept' | translate
}}</span>
<span class="text-accent-color number">
({{ node.countOfChildren
}}{{ 'common.units.persons' | translate }})</span
>
</span>
<span *ngSwitchCase="NodeType.Buddy" class="group-name">
<span class="title-name ellipsis">{{
node.groupDetail.name
}}</span>
<span class="text-accent-color number">
({{ node.countOfChildren
}}{{ 'common.units.persons' | translate }})</span
>
</span>
</ng-container>
</div>
<!-- switch안으로 이동
<span class="text-accent-color number">
({{ node.countOfChildren
}}{{ 'common.units.persons' | translate }})</span
>-->
<mat-checkbox <mat-checkbox
*ngIf="checkable" *ngIf="checkable"

View File

@ -5,7 +5,6 @@
margin-top: 0; margin-top: 0;
margin-bottom: 0; margin-bottom: 0;
list-style-type: none; list-style-type: none;
margin-left: 10px;
} }
.group-tree-node-invisible { .group-tree-node-invisible {
display: none; display: none;
@ -17,13 +16,37 @@
height: 40px; height: 40px;
.tree-node-header { .tree-node-header {
position: relative;
width: 100%; width: 100%;
.path {
display: flex;
width: 100%;
justify-content: space-between;
.btn-toggle {
margin-left: 10px;
}
.group-info {
display: flex;
flex-flow: row;
width: calc(100% - 80px);
.group-name {
overflow: hidden;
min-width: 0;
text-overflow: ellipsis;
white-space: nowrap;
flex: 1;
display: flex;
.title-name { .title-name {
display: inline-flex; overflow: hidden;
flex: 1 1 auto; min-width: 0;
text-overflow: ellipsis;
white-space: nowrap;
} }
} }
}
}
}
.mat-tree-node { .mat-tree-node {
width: 100%; width: 100%;
&:hover { &:hover {
@ -83,6 +106,9 @@
margin-left: auto; margin-left: auto;
margin-right: 16px; margin-right: 16px;
} }
.group-name {
flex: 1;
}
.group-menu { .group-menu {
margin-left: auto; margin-left: auto;