ng-jhipster
Advanced tools
Comparing version 0.0.12 to 0.0.13
@@ -78,3 +78,3 @@ { | ||
}, | ||
"version": "0.0.12" | ||
"version": "0.0.13" | ||
} |
@@ -5,3 +5,2 @@ import { Sanitizer } from '@angular/core'; | ||
private sanitizer; | ||
private translateService; | ||
private toast; | ||
@@ -12,3 +11,4 @@ private alertId; | ||
private i18nEnabled; | ||
constructor(sanitizer: Sanitizer, translateService: TranslateService, toast: boolean); | ||
private translateService; | ||
constructor(sanitizer: Sanitizer, toast?: boolean, translateService?: TranslateService); | ||
clear(): void; | ||
@@ -15,0 +15,0 @@ get(): any; |
@@ -5,5 +5,4 @@ import { Injectable, Sanitizer, SecurityContext } from '@angular/core'; | ||
export var AlertService = (function () { | ||
function AlertService(sanitizer, translateService, toast) { | ||
function AlertService(sanitizer, toast, translateService) { | ||
this.sanitizer = sanitizer; | ||
this.translateService = translateService; | ||
this.toast = toast; | ||
@@ -14,2 +13,5 @@ this.i18nEnabled = ConfigHelper.getConfig().i18nEnabled; | ||
this.timeout = 5000; // default timeout | ||
if (this.i18nEnabled) { | ||
this.translateService = translateService; | ||
} | ||
} | ||
@@ -113,6 +115,6 @@ AlertService.prototype.clear = function () { | ||
{ type: Sanitizer, }, | ||
null, | ||
{ type: TranslateService, }, | ||
null, | ||
]; }; | ||
return AlertService; | ||
}()); |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":3,"metadata":{"AlertService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"Sanitizer"},{"__symbolic":"reference","module":"ng2-translate","name":"TranslateService"},{"__symbolic":"reference","name":"boolean"}]}],"clear":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"}],"success":[{"__symbolic":"method"}],"error":[{"__symbolic":"method"}],"warning":[{"__symbolic":"method"}],"info":[{"__symbolic":"method"}],"factory":[{"__symbolic":"method"}],"addAlert":[{"__symbolic":"method"}],"closeAlert":[{"__symbolic":"method"}],"closeAlertByIndex":[{"__symbolic":"method"}],"isToast":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"AlertService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"Sanitizer"},{"__symbolic":"reference","module":"ng2-translate","name":"TranslateService"},{"__symbolic":"reference","name":"boolean"}]}],"clear":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"}],"success":[{"__symbolic":"method"}],"error":[{"__symbolic":"method"}],"warning":[{"__symbolic":"method"}],"info":[{"__symbolic":"method"}],"factory":[{"__symbolic":"method"}],"addAlert":[{"__symbolic":"method"}],"closeAlert":[{"__symbolic":"method"}],"closeAlertByIndex":[{"__symbolic":"method"}],"isToast":[{"__symbolic":"method"}]}}}}] | ||
[{"__symbolic":"module","version":3,"metadata":{"AlertService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"Sanitizer"},{"__symbolic":"reference","name":"boolean"},{"__symbolic":"reference","module":"ng2-translate","name":"TranslateService"}]}],"clear":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"}],"success":[{"__symbolic":"method"}],"error":[{"__symbolic":"method"}],"warning":[{"__symbolic":"method"}],"info":[{"__symbolic":"method"}],"factory":[{"__symbolic":"method"}],"addAlert":[{"__symbolic":"method"}],"closeAlert":[{"__symbolic":"method"}],"closeAlertByIndex":[{"__symbolic":"method"}],"isToast":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"AlertService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"Sanitizer"},{"__symbolic":"reference","name":"boolean"},{"__symbolic":"reference","module":"ng2-translate","name":"TranslateService"}]}],"clear":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"}],"success":[{"__symbolic":"method"}],"error":[{"__symbolic":"method"}],"warning":[{"__symbolic":"method"}],"info":[{"__symbolic":"method"}],"factory":[{"__symbolic":"method"}],"addAlert":[{"__symbolic":"method"}],"closeAlert":[{"__symbolic":"method"}],"closeAlertByIndex":[{"__symbolic":"method"}],"isToast":[{"__symbolic":"method"}]}}}}] |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
908896
7852