@gipisistemas/ng-core 1.1.9 → 1.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/gipisistemas-ng-core.umd.js +11 -7
- package/bundles/gipisistemas-ng-core.umd.js.map +1 -1
- package/bundles/gipisistemas-ng-core.umd.min.js +1 -1
- package/bundles/gipisistemas-ng-core.umd.min.js.map +1 -1
- package/core/services/authentication.service.d.ts +3 -1
- package/esm2015/core/gipi-components/components/abstract-find.component.js +4 -4
- package/esm2015/core/services/authentication.service.js +11 -5
- package/esm5/core/gipi-components/components/abstract-find.component.js +4 -4
- package/esm5/core/services/authentication.service.js +11 -5
- package/fesm2015/gipisistemas-ng-core.js +11 -7
- package/fesm2015/gipisistemas-ng-core.js.map +1 -1
- package/fesm5/gipisistemas-ng-core.js +11 -7
- package/fesm5/gipisistemas-ng-core.js.map +1 -1
- package/gipisistemas-ng-core.metadata.json +1 -1
- package/package.json +1 -1
@@ -26220,10 +26220,11 @@ var AbstractCrudComponent = /** @class */ (function (_super) {
|
|
26220
26220
|
var moment$6 = moment_;
|
26221
26221
|
var AuthenticationService = /** @class */ (function (_super) {
|
26222
26222
|
__extends(AuthenticationService, _super);
|
26223
|
-
function AuthenticationService(router, http) {
|
26223
|
+
function AuthenticationService(router, http, _matDialog) {
|
26224
26224
|
var _this = _super.call(this) || this;
|
26225
26225
|
_this.router = router;
|
26226
26226
|
_this.http = http;
|
26227
|
+
_this._matDialog = _matDialog;
|
26227
26228
|
_this._tokenSubject$ = new BehaviorSubject(JSON.parse(localStorage.getItem('token')));
|
26228
26229
|
_this.token$ = _this._tokenSubject$.asObservable();
|
26229
26230
|
return _this;
|
@@ -26245,6 +26246,7 @@ var AuthenticationService = /** @class */ (function (_super) {
|
|
26245
26246
|
var _this = this;
|
26246
26247
|
this.revokeToken().subscribe(function (_) {
|
26247
26248
|
_this.removeSession();
|
26249
|
+
_this._matDialog.closeAll();
|
26248
26250
|
_this.router.navigate(['/oauth/login'], { queryParams: { returnUrl: _this.router.routerState.snapshot.url } });
|
26249
26251
|
}, function (error) {
|
26250
26252
|
throw new Error(error);
|
@@ -26307,13 +26309,15 @@ var AuthenticationService = /** @class */ (function (_super) {
|
|
26307
26309
|
};
|
26308
26310
|
AuthenticationService.ctorParameters = function () { return [
|
26309
26311
|
{ type: Router },
|
26310
|
-
{ type: HttpClient }
|
26312
|
+
{ type: HttpClient },
|
26313
|
+
{ type: MatDialog }
|
26311
26314
|
]; };
|
26312
|
-
AuthenticationService.ngInjectableDef = ɵɵdefineInjectable({ factory: function AuthenticationService_Factory() { return new AuthenticationService(ɵɵinject(Router), ɵɵinject(HttpClient)); }, token: AuthenticationService, providedIn: "root" });
|
26315
|
+
AuthenticationService.ngInjectableDef = ɵɵdefineInjectable({ factory: function AuthenticationService_Factory() { return new AuthenticationService(ɵɵinject(Router), ɵɵinject(HttpClient), ɵɵinject(MatDialog$1)); }, token: AuthenticationService, providedIn: "root" });
|
26313
26316
|
AuthenticationService = __decorate([
|
26314
26317
|
Injectable({ providedIn: 'root' }),
|
26315
26318
|
__metadata("design:paramtypes", [Router,
|
26316
|
-
HttpClient
|
26319
|
+
HttpClient,
|
26320
|
+
MatDialog])
|
26317
26321
|
], AuthenticationService);
|
26318
26322
|
return AuthenticationService;
|
26319
26323
|
}(AbstractService));
|
@@ -27430,9 +27434,9 @@ var GIPIAbstractFindComponent = /** @class */ (function (_super) {
|
|
27430
27434
|
if (ObjectUtil.isNull(this.filter)) {
|
27431
27435
|
this.filter = this.newFilter();
|
27432
27436
|
}
|
27433
|
-
|
27434
|
-
|
27435
|
-
|
27437
|
+
if (ObjectUtil.isNull(pageEvent) && !ObjectUtil.isNull(this.tablePageEventDTO)) {
|
27438
|
+
pageEvent = this.tablePageEventDTO;
|
27439
|
+
}
|
27436
27440
|
if (pageEvent) {
|
27437
27441
|
this.tablePageEventDTO = pageEvent;
|
27438
27442
|
this.filter.pageNumber = pageEvent.pageIndex;
|