vix-ui
Version:
A set of essential UI modules for your Angular application in ViSenze
41 lines (40 loc) • 1.55 kB
TypeScript
import { AfterViewChecked, AfterViewInit, ChangeDetectorRef, NgZone } from '@angular/core';
import { OAuthService } from 'angular-oauth2-oidc';
import { FormControl } from '@angular/forms';
import { Router } from '@angular/router';
import { VixAuthService } from '../../vix-services/auth/services/auth.service';
import { AuthConfigService } from '../../vix-services/auth/services/auth-config.service';
export declare class VixLoginComponent implements AfterViewInit, AfterViewChecked {
private oauth;
private auth;
private router;
private authConfig;
private cdRef;
private ngZone;
email: string;
password: string;
loginFormControl: FormControl;
isShowProgressBar: boolean;
constructor(oauth: OAuthService, auth: VixAuthService, router: Router, authConfig: AuthConfigService, cdRef: ChangeDetectorRef, ngZone: NgZone);
toggleProgressBar(status: boolean): void;
/**
* Form control to validate email
*
* @returns
*/
getErrorMessage(): "" | "You must enter a value" | "Not a valid email";
/**
* Login with Google
*/
loginWithGoogle(): void;
/**
* Login with username and password. Redirect to url after login successfully
*/
loginWithPassword(): void;
ngAfterViewChecked(): void;
/**
* This is used for Google Login. Browser will redirect to the login url after login successfully.
* ngAfterViewInit will get the access_token from url and redirect to the url set as redirect url.
*/
ngAfterViewInit(): void;
}