2019-10-29 19:06:25 +09:00
|
|
|
<mat-card class="confirm-card mat-elevation-z">
|
2019-10-23 13:18:38 +09:00
|
|
|
<mat-card-header>
|
|
|
|
<mat-card-title>{{ data.title }}</mat-card-title>
|
|
|
|
</mat-card-header>
|
|
|
|
<mat-card-content>
|
2019-10-29 19:06:25 +09:00
|
|
|
<div class="add-row">
|
2019-10-23 13:18:38 +09:00
|
|
|
<button
|
|
|
|
mat-button
|
|
|
|
*ngIf="!isShowAddGroupField"
|
|
|
|
(click)="isShowAddGroupField = !isShowAddGroupField"
|
2019-10-29 19:06:25 +09:00
|
|
|
class="mat-mini-fab mat-button-base mat-accent mat-elevation-z"
|
2019-10-23 13:18:38 +09:00
|
|
|
>
|
2019-10-29 19:06:25 +09:00
|
|
|
<mat-icon>add</mat-icon>
|
2020-01-08 12:30:39 +09:00
|
|
|
<span class="mat-fab__label">{{ 'group.addNew' | translate }}</span>
|
2019-10-23 13:18:38 +09:00
|
|
|
</button>
|
2019-10-29 19:06:25 +09:00
|
|
|
<div *ngIf="isShowAddGroupField" class="input-groupname-box">
|
2020-01-08 12:30:39 +09:00
|
|
|
<mat-form-field
|
|
|
|
hintLabel="{{
|
|
|
|
'common.useOnlyForSpecialCharacter'
|
|
|
|
| translate: { specialCharacter: '-,_' }
|
|
|
|
}}"
|
|
|
|
>
|
2019-10-23 13:18:38 +09:00
|
|
|
<input
|
|
|
|
matInput
|
|
|
|
#inputGroupName
|
|
|
|
type="text"
|
|
|
|
maxlength="20"
|
2020-01-08 12:30:39 +09:00
|
|
|
placeholder="{{ 'group.name' | translate }}"
|
2019-10-23 13:18:38 +09:00
|
|
|
value=""
|
|
|
|
/>
|
2019-10-29 19:06:25 +09:00
|
|
|
|
2019-10-23 13:18:38 +09:00
|
|
|
<button
|
|
|
|
mat-button
|
|
|
|
matSuffix
|
|
|
|
mat-icon-button
|
|
|
|
aria-label="Clear"
|
|
|
|
(click)="inputGroupName.value = ''"
|
|
|
|
>
|
|
|
|
<mat-icon>close</mat-icon>
|
|
|
|
</button>
|
2019-10-29 19:06:25 +09:00
|
|
|
|
2019-10-23 13:18:38 +09:00
|
|
|
<mat-hint align="end"
|
|
|
|
>{{ inputGroupName.value?.length || 0 }}/20</mat-hint
|
|
|
|
>
|
|
|
|
</mat-form-field>
|
2019-10-29 19:06:25 +09:00
|
|
|
|
|
|
|
<div class="btn-box">
|
2019-11-21 16:24:47 +09:00
|
|
|
<button mat-stroked-button (click)="onClickAddGroupCancel()">
|
2020-01-08 12:30:39 +09:00
|
|
|
{{ 'common.messages.close' | translate }}
|
2019-11-21 16:24:47 +09:00
|
|
|
</button>
|
|
|
|
<button
|
|
|
|
mat-stroked-button
|
|
|
|
color="accent"
|
|
|
|
(click)="onClickAddGroup(inputGroupName.value)"
|
|
|
|
class="mat-accent"
|
|
|
|
>
|
2020-01-08 12:30:39 +09:00
|
|
|
{{ 'group.addNew' | translate }}
|
2019-10-29 19:06:25 +09:00
|
|
|
</button>
|
|
|
|
</div>
|
2019-10-23 13:18:38 +09:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<mat-selection-list #groups>
|
|
|
|
<mat-list-option
|
|
|
|
*ngFor="let groupBuddy of groupBuddyList$ | async"
|
|
|
|
[value]="groupBuddy.group"
|
|
|
|
>
|
2019-11-21 16:24:47 +09:00
|
|
|
<span class="title-name ellipsis"> {{ groupBuddy.group.name }} </span>
|
|
|
|
<span class="text-accent-color number"
|
2020-01-08 12:30:39 +09:00
|
|
|
>({{ groupBuddy.buddyList.length
|
|
|
|
}}{{ 'common.units.persons' | translate }})</span
|
2019-11-21 16:24:47 +09:00
|
|
|
>
|
2019-10-23 13:18:38 +09:00
|
|
|
</mat-list-option>
|
|
|
|
</mat-selection-list>
|
|
|
|
<!-- <div>
|
|
|
|
<ucap-group-expansion-panel
|
|
|
|
#groupExpansionPanel
|
|
|
|
[groupBuddyList]="groupBuddyList$ | async"
|
|
|
|
[checkable]="true"
|
|
|
|
>
|
|
|
|
</ucap-group-expansion-panel>
|
|
|
|
</div> -->
|
|
|
|
</mat-card-content>
|
|
|
|
<mat-card-actions class="button-farm flex-row">
|
|
|
|
<button
|
|
|
|
mat-stroked-button
|
|
|
|
(click)="onClickChoice(false)"
|
|
|
|
class="mat-primary"
|
|
|
|
>
|
2020-01-08 12:30:39 +09:00
|
|
|
{{ 'common.messages.no' | translate }}
|
2019-10-23 13:18:38 +09:00
|
|
|
</button>
|
|
|
|
<button mat-flat-button (click)="onClickChoice(true)" class="mat-primary">
|
2020-01-08 12:30:39 +09:00
|
|
|
{{ 'common.messages.yes' | translate }}
|
2019-10-23 13:18:38 +09:00
|
|
|
</button>
|
|
|
|
</mat-card-actions>
|
|
|
|
</mat-card>
|