|
|
@ -1,4 +1,7 @@ |
|
|
<ng-container [ngSwitch]="getComponent(prop)" *abpPermission="prop.permission; runChangeDetection: false"> |
|
|
<ng-container |
|
|
|
|
|
[ngSwitch]="getComponent(prop)" |
|
|
|
|
|
*abpPermission="prop.permission; runChangeDetection: false" |
|
|
|
|
|
> |
|
|
<ng-template ngSwitchCase="template"> |
|
|
<ng-template ngSwitchCase="template"> |
|
|
<ng-container *ngComponentOutlet="prop.template; injector: injectorForCustomComponent"> |
|
|
<ng-container *ngComponentOutlet="prop.template; injector: injectorForCustomComponent"> |
|
|
</ng-container> |
|
|
</ng-container> |
|
|
@ -50,9 +53,7 @@ |
|
|
class="form-select form-control" |
|
|
class="form-select form-control" |
|
|
> |
|
|
> |
|
|
@for (option of options$ | async; track option.value) { |
|
|
@for (option of options$ | async; track option.value) { |
|
|
<option |
|
|
<option [ngValue]="option.value"> |
|
|
[ngValue]="option.value" |
|
|
|
|
|
> |
|
|
|
|
|
{{ option.key }} |
|
|
{{ option.key }} |
|
|
</option> |
|
|
</option> |
|
|
} |
|
|
} |
|
|
@ -152,7 +153,7 @@ |
|
|
aria-hidden="true" |
|
|
aria-hidden="true" |
|
|
[ngClass]="{ |
|
|
[ngClass]="{ |
|
|
'fa-eye-slash': !showPassword, |
|
|
'fa-eye-slash': !showPassword, |
|
|
'fa-eye': showPassword |
|
|
'fa-eye': showPassword, |
|
|
}" |
|
|
}" |
|
|
></i> |
|
|
></i> |
|
|
</button> |
|
|
</button> |
|
|
@ -160,9 +161,7 @@ |
|
|
</ng-template> |
|
|
</ng-template> |
|
|
|
|
|
|
|
|
@if (prop.formText) { |
|
|
@if (prop.formText) { |
|
|
<small class="text-muted d-block">{{ |
|
|
<small class="text-muted d-block">{{ prop.formText | abpLocalization }}</small> |
|
|
prop.formText | abpLocalization |
|
|
|
|
|
}}</small> |
|
|
|
|
|
} |
|
|
} |
|
|
</div> |
|
|
</div> |
|
|
</ng-container> |
|
|
</ng-container> |
|
|
@ -171,12 +170,21 @@ |
|
|
<label [htmlFor]="prop.id" [ngClass]="classes || 'form-label'"> |
|
|
<label [htmlFor]="prop.id" [ngClass]="classes || 'form-label'"> |
|
|
@if (prop.displayTextResolver) { |
|
|
@if (prop.displayTextResolver) { |
|
|
{{ prop.displayTextResolver(data) | abpLocalization }} |
|
|
{{ prop.displayTextResolver(data) | abpLocalization }} |
|
|
}@else{ |
|
|
} @else { |
|
|
{{ prop.displayName | abpLocalization }} |
|
|
@if (prop.isExtra) { |
|
|
|
|
|
{{ '::' + prop.displayName | abpLocalization }} |
|
|
|
|
|
} @else { |
|
|
|
|
|
{{ prop.displayName | abpLocalization }} |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
{{ asterisk }} |
|
|
{{ asterisk }} |
|
|
@if (prop.tooltip) { |
|
|
@if (prop.tooltip) { |
|
|
<i [ngbTooltip]="prop.tooltip.text | abpLocalization" [placement]="prop.tooltip.placement || 'auto'" container="body" class="bi bi-info-circle"></i> |
|
|
<i |
|
|
|
|
|
[ngbTooltip]="prop.tooltip.text | abpLocalization" |
|
|
|
|
|
[placement]="prop.tooltip.placement || 'auto'" |
|
|
|
|
|
container="body" |
|
|
|
|
|
class="bi bi-info-circle" |
|
|
|
|
|
></i> |
|
|
} |
|
|
} |
|
|
</label> |
|
|
</label> |
|
|
</ng-template> |
|
|
</ng-template> |
|
|
|