|
|
@ -23,20 +23,22 @@ |
|
|
<hr class="mt-2 mb-3" /> |
|
|
<hr class="mt-2 mb-3" /> |
|
|
|
|
|
|
|
|
<div |
|
|
<div |
|
|
class="row my-3" |
|
|
class="mt-2" |
|
|
*ngFor="let feature of features[group.name]; let i = index; trackBy: track.by('id')" |
|
|
*ngFor="let feature of features[group.name]; let i = index; trackBy: track.by('id')" |
|
|
[ngStyle]="feature.style" |
|
|
[ngStyle]="feature.style" |
|
|
[ngSwitch]="feature.valueType?.name" |
|
|
[ngSwitch]="feature.valueType?.name" |
|
|
(keyup.enter)="save()" |
|
|
(keyup.enter)="save()" |
|
|
> |
|
|
> |
|
|
<div *ngSwitchCase="valueTypes.ToggleStringValueType"> |
|
|
<ng-container *ngSwitchCase="valueTypes.ToggleStringValueType"> |
|
|
<div class="custom-checkbox custom-control"> |
|
|
<div class="custom-checkbox custom-control"> |
|
|
<input |
|
|
<input |
|
|
class="custom-control-input" |
|
|
class="custom-control-input" |
|
|
type="checkbox" |
|
|
type="checkbox" |
|
|
[id]="feature.name" |
|
|
[id]="feature.name" |
|
|
[(ngModel)]="feature.value" |
|
|
[(ngModel)]="feature.value" |
|
|
|
|
|
(ngModelChange)="onCheckboxClick($event, feature)" |
|
|
/> |
|
|
/> |
|
|
|
|
|
|
|
|
<label class="custom-control-label" [htmlFor]="feature.name">{{ |
|
|
<label class="custom-control-label" [htmlFor]="feature.name">{{ |
|
|
feature.displayName |
|
|
feature.displayName |
|
|
}}</label> |
|
|
}}</label> |
|
|
@ -44,27 +46,32 @@ |
|
|
*ngTemplateOutlet="descTmp; context: { $implicit: feature.description }" |
|
|
*ngTemplateOutlet="descTmp; context: { $implicit: feature.description }" |
|
|
></ng-container> |
|
|
></ng-container> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</ng-container> |
|
|
<div *ngSwitchCase="valueTypes.FreeTextStringValueType"> |
|
|
<ng-container *ngSwitchCase="valueTypes.FreeTextStringValueType"> |
|
|
<div class="form-group mb-0"> |
|
|
<div class="form-group"> |
|
|
<label [htmlFor]="feature.name">{{ feature.displayName }}</label> |
|
|
<label [htmlFor]="feature.name">{{ feature.displayName }}</label> |
|
|
<input |
|
|
<input |
|
|
class="form-control" |
|
|
class="form-control" |
|
|
type="text" |
|
|
type="text" |
|
|
[id]="feature.name" |
|
|
[id]="feature.name" |
|
|
[(ngModel)]="feature.value" |
|
|
[(ngModel)]="feature.value" |
|
|
|
|
|
[abpFreeText]="feature" |
|
|
/> |
|
|
/> |
|
|
|
|
|
|
|
|
<ng-container |
|
|
<ng-container |
|
|
*ngTemplateOutlet="descTmp; context: { $implicit: feature.description }" |
|
|
*ngTemplateOutlet="descTmp; context: { $implicit: feature.description }" |
|
|
></ng-container> |
|
|
></ng-container> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</ng-container> |
|
|
<div *ngSwitchCase="valueTypes.SelectionStringValueType"> |
|
|
<ng-container *ngSwitchCase="valueTypes.SelectionStringValueType"> |
|
|
<ng-container *ngIf="feature.valueType.itemSource?.items?.length"> |
|
|
<ng-container *ngIf="feature.valueType.itemSource?.items?.length"> |
|
|
<div class="form-group mb-0"> |
|
|
<div class="form-group"> |
|
|
<label [htmlFor]="feature.name">{{ feature.displayName }}</label> |
|
|
<label [htmlFor]="feature.name">{{ feature.displayName }}</label> |
|
|
<select class="form-control" [id]="feature.name" [(ngModel)]="feature.value"> |
|
|
<select |
|
|
|
|
|
class="form-control custom-select" |
|
|
|
|
|
[id]="feature.name" |
|
|
|
|
|
[(ngModel)]="feature.value" |
|
|
|
|
|
> |
|
|
<option |
|
|
<option |
|
|
*ngFor=" |
|
|
*ngFor=" |
|
|
let item of feature.valueType.itemSource?.items; |
|
|
let item of feature.valueType.itemSource?.items; |
|
|
@ -83,8 +90,8 @@ |
|
|
></ng-container> |
|
|
></ng-container> |
|
|
</div> |
|
|
</div> |
|
|
</ng-container> |
|
|
</ng-container> |
|
|
</div> |
|
|
</ng-container> |
|
|
<div *ngSwitchDefault>{{ feature.displayName }}</div> |
|
|
<ng-container *ngSwitchDefault>{{ feature.displayName }}</ng-container> |
|
|
</div> |
|
|
</div> |
|
|
</ng-template> |
|
|
</ng-template> |
|
|
</li> |
|
|
</li> |
|
|
|