|
|
@ -1,13 +1,21 @@ |
|
|
import {Component, Injector, Input} from '@angular/core'; |
|
|
import {Component, forwardRef, Injector, Input} from '@angular/core'; |
|
|
import {AbstractNgModelComponent} from "@abp/ng.core"; |
|
|
import {AbstractNgModelComponent} from "@abp/ng.core"; |
|
|
|
|
|
import {NG_VALUE_ACCESSOR} from "@angular/forms"; |
|
|
|
|
|
|
|
|
@Component({ |
|
|
@Component({ |
|
|
selector: 'abp-password', |
|
|
selector: 'abp-password', |
|
|
templateUrl: `password.component.html`, |
|
|
templateUrl: `password.component.html`, |
|
|
|
|
|
providers: [ |
|
|
|
|
|
{ |
|
|
|
|
|
provide: NG_VALUE_ACCESSOR, |
|
|
|
|
|
useExisting: forwardRef(() => PasswordComponent), |
|
|
|
|
|
multi: true, |
|
|
|
|
|
}, |
|
|
|
|
|
] |
|
|
}) |
|
|
}) |
|
|
export class PasswordComponent extends AbstractNgModelComponent{ |
|
|
export class PasswordComponent extends AbstractNgModelComponent { |
|
|
@Input() inputId!: string; |
|
|
@Input() inputId!: string; |
|
|
|
|
|
@Input() formControlName!: string; |
|
|
fieldTextType: boolean; |
|
|
fieldTextType: boolean; |
|
|
|
|
|
|
|
|
constructor( |
|
|
constructor( |
|
|
|