#17 Fix Material Design Lite

This commit is contained in:
mauriziovitale84
2016-04-26 15:46:22 +01:00
parent a74652c7fd
commit f4de0139a1
5 changed files with 12 additions and 9 deletions

View File

@@ -1,8 +1,10 @@
import { Login } from './src/login.component';
import { Authentication } from './src/authentication.service';
export * from './src/login.component';
export * from './src/authentication.service';
declare var _default: {
directives: {};
providers: {};
directives: typeof Login[];
providers: typeof Authentication[];
};
export default _default;
export declare const ALFRESCO_LOGIN_DIRECTIVES: [any];

View File

@@ -1,3 +1,4 @@
import { Observable } from 'rxjs/Rx';
import { Http } from 'angular2/http';
export declare class Authentication {
http: Http;
@@ -21,21 +22,21 @@ export declare class Authentication {
* @param password
* @returns {Observable<R>|Observable<T>}
*/
login(method: string, username: string, password: string): any;
login(method: string, username: string, password: string): Observable<void>;
/**
* The method provide the login with GET Request
* @param username
* @param password
* @returns {Observable<R>|Observable<T>}
*/
loginGet(username: string, password: string): any;
loginGet(username: string, password: string): Observable<void>;
/**
* The method provide the login with POST Request
* @param username
* @param password
* @returns {Observable<R>|Observable<T>}
*/
loginPost(username: string, password: string): any;
loginPost(username: string, password: string): Observable<void>;
/**
* The method save the toke in the localStorage
* @param jwt
@@ -45,7 +46,7 @@ export declare class Authentication {
* The method remove the token from the local storage
* @returns {Observable<T>}
*/
logout(): any;
logout(): Observable<boolean>;
/**
* The method write the error in the console browser
* @param error

View File

@@ -65,7 +65,7 @@ System.register(['angular2/core', 'angular2/router', 'angular2/common', './authe
* @returns {boolean}
*/
Login.prototype.isErrorStyle = function (field) {
if (this.componentHandler) {
if (componentHandler) {
componentHandler.upgradeAllRegistered();
}
if (field.valid) {

View File

@@ -1 +1 @@
{"version":3,"file":"login.component.js","sourceRoot":"","sources":["login.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAeA;gBAMI;;;;;mBAKG;gBACH,eAAY,EAAc,EAAS,IAAmB,EAAS,MAAa;oBAAzC,SAAI,GAAJ,IAAI,CAAe;oBAAS,WAAM,G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,CACV,UAAC,KAAS,IAAK,OAAA,KAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,EAA9B,CAA8B,EAC7C;wBACI,KAAI,CAAC,KAAK,GAAG,IAAI,CAAC;oBACtB,CAAC,CACJ,CAAC;gBACN,CAAC;gBAED;;;;mBAIG;gBACH,4BAAY,GAAZ,UAAa,KAAkB;oBAC3B,EAAE,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC;wBACnB,gBAAgB,CAAC,oBAAoB,EAAE,CAAC;oBAC5C,CAAC;oBACD,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;wBACd,MAAM,CAAC,KAAK,CAAC;oBACjB,CAAC;oBAAC,IAAI,CAAC,CAAC;wBACJ,MAAM,CAAC,IAAI,CAAC;oBAChB,CAAC;gBACL,CAAC;gBAlDD;oBAAC,YAAK,EAAE;;qDAAA;gBATZ;oBAAC,gBAAS,CAAC;wBACP,QAAQ,EAAE,gBAAgB;wBAC1B,QAAQ,EAAE,YAAY;wBACtB,UAAU,EAAE,CAAC,0BAAiB,EAAE,wBAAe,CAAC;wBAChD,WAAW,EAAE,wBAAwB;wBACrC,SAAS,EAAE,CAAC,uBAAuB,CAAC;qBAEvC,CAAC;;yBAAA;gBAqDF,YAAC;YAAD,CAAC,AApDD,IAoDC;YApDD,yBAoDC,CAAA"}

View File

@@ -56,7 +56,7 @@ export class Login {
* @returns {boolean}
*/
isErrorStyle(field:ControlGroup) {
if (this.componentHandler) {
if (componentHandler) {
componentHandler.upgradeAllRegistered();
}
if (field.valid) {