Browse Source
Merge pull request #18112 from abpframework/issue-18077
Deprecate abp-Password component instead use directive
pull/18184/head
Masum ULU
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with
30 additions and
11 deletions
-
docs/en/UI/Angular/Caps-Lock-Directive.md
-
docs/en/docs-nav.json
-
npm/ng-packs/packages/components/extensible/src/lib/components/extensible-form/extensible-form-prop.component.html
-
npm/ng-packs/packages/theme-shared/src/lib/components/password/password.component.ts
|
|
|
@ -1128,6 +1128,14 @@ |
|
|
|
"text": "Loading Directive", |
|
|
|
"path": "UI/Angular/Loading-Directive.md" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"text": "Show Password Directive", |
|
|
|
"path": "UI/Angular/Show-Password-Directive.md" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"text": "Caps Lock Directive", |
|
|
|
"path": "UI/Angular/Caps-Lock-Directive.md" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"text": "Toast Overlay", |
|
|
|
"path": "UI/Angular/Toaster-Service.md" |
|
|
|
|
|
|
|
@ -141,17 +141,24 @@ |
|
|
|
|
|
|
|
<ng-template ngSwitchCase="passwordinputgroup"> |
|
|
|
<ng-template [ngTemplateOutlet]="label"></ng-template> |
|
|
|
<abp-password |
|
|
|
*abpReplaceableTemplate="{ |
|
|
|
componentKey: passwordKey, |
|
|
|
inputs: { |
|
|
|
inputId: { value: prop.id }, |
|
|
|
formControlName: { value: prop.name } |
|
|
|
} |
|
|
|
}" |
|
|
|
[inputId]="prop.id" |
|
|
|
[formControlName]="prop.name" |
|
|
|
></abp-password> |
|
|
|
<div class="input-group form-group" validationTarget> |
|
|
|
<input |
|
|
|
class="form-control" |
|
|
|
[id]="prop.id" |
|
|
|
[formControlName]="prop.name" |
|
|
|
[abpShowPassword]="showPassword" |
|
|
|
/> |
|
|
|
<button class="btn btn-secondary" type="button" (click)="showPassword = !showPassword"> |
|
|
|
<i |
|
|
|
class="fa" |
|
|
|
aria-hidden="true" |
|
|
|
[ngClass]="{ |
|
|
|
'fa-eye-slash': !showPassword, |
|
|
|
'fa-eye': showPassword |
|
|
|
}" |
|
|
|
></i> |
|
|
|
</button> |
|
|
|
</div> |
|
|
|
</ng-template> |
|
|
|
|
|
|
|
<small *ngIf="prop.formText" class="text-muted d-block">{{ |
|
|
|
|
|
|
|
@ -3,6 +3,10 @@ import { AbstractNgModelComponent } from '@abp/ng.core'; |
|
|
|
import { FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms'; |
|
|
|
import { CommonModule } from '@angular/common'; |
|
|
|
|
|
|
|
/** |
|
|
|
* @deprecated use ShowPasswordDirective directive |
|
|
|
* https://docs.abp.io/en/abp/latest/UI/Angular/Show-Password-Directive
|
|
|
|
*/ |
|
|
|
@Component({ |
|
|
|
selector: 'abp-password', |
|
|
|
standalone: true, |
|
|
|
|