/** Angular 2 */ import * as ng from "@angular/core"; import { FormGroup } from '@angular/forms'; /** Core */ import { CoreComponent } from "cmf.core/src/core"; import { AuthProvider, AuthOperation } from "../authProvider"; import Cmf from "cmf.lbos"; /** * @whatItDoes * * Authentication by Credentials Provider. * It shows the credentials for authentication with username/password. * When the user is validated, it dispatches an event. * * When an username is given, it will be used and will just ask for the secret. * * ### Inputs * * `string` : **actionLabel** - Label to use as Action * * `boolean` : **showRememberMe** - Show the Remember Me box * * `string` : **username** - Indicates if this is an authentication or validation * * `boolean` : **canEditUsername** - Allow to modify the username, if given * * `AuthOperation` : **authOperation** - Enum representing which authentication process is being made (Login, Sign or Unlock) * * ### Outputs * * `Cmf.Foundation.Security.User` : **authenticate** - Event triggered when the authentication is successful * * ### Example * * ```html * * * ``` */ export declare class AuthCredentials extends CoreComponent implements ng.OnChanges { private _elementRef; private authProvider; private formCheckboxComponent; /** * Show Remember Me button */ showRememberMe: boolean; /** * Flag that indicates if the username can be edited */ canEditUsername: boolean; /** * Submit button label */ actionLabel: string; /** * Initial username */ username: string; /** * The Password/PIN placeholder */ placeholder: string; /** * The Password/PIN auto complete option */ autoComplete: string; /** * Represents which authentication process is being made (Login, Sign or Unlock) */ authOperation: AuthOperation; /** * Form Username */ readonly formUsername: string; /** * Form Password */ readonly formPassword: string; /** * Form RememberMe option */ readonly formRememberMe: boolean; /** * Form object containing username and password */ form: FormGroup; /** * Event that signals that the external authentication completed. * Could be an Cmf.Foundation.Security.User */ authenticate: ng.EventEmitter; constructor(_elementRef: ng.ElementRef, authProvider: AuthProvider); ngOnChanges(changes: ng.SimpleChanges): void; /** * Handles a form submit. * This will try to validate the credentials and dispatch the event if succeed. */ onSubmit(): void; } export declare class AuthCredentialsModule { }