@gipisistemas/ng-core 1.1.9 → 1.1.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -26374,10 +26374,11 @@
26374
26374
  var moment$6 = moment_;
26375
26375
  var AuthenticationService = /** @class */ (function (_super) {
26376
26376
  __extends(AuthenticationService, _super);
26377
- function AuthenticationService(router, http) {
26377
+ function AuthenticationService(router, http, _matDialog) {
26378
26378
  var _this = _super.call(this) || this;
26379
26379
  _this.router = router;
26380
26380
  _this.http = http;
26381
+ _this._matDialog = _matDialog;
26381
26382
  _this._tokenSubject$ = new rxjs.BehaviorSubject(JSON.parse(localStorage.getItem('token')));
26382
26383
  _this.token$ = _this._tokenSubject$.asObservable();
26383
26384
  return _this;
@@ -26399,6 +26400,7 @@
26399
26400
  var _this = this;
26400
26401
  this.revokeToken().subscribe(function (_) {
26401
26402
  _this.removeSession();
26403
+ _this._matDialog.closeAll();
26402
26404
  _this.router.navigate(['/oauth/login'], { queryParams: { returnUrl: _this.router.routerState.snapshot.url } });
26403
26405
  }, function (error) {
26404
26406
  throw new Error(error);
@@ -26461,13 +26463,15 @@
26461
26463
  };
26462
26464
  AuthenticationService.ctorParameters = function () { return [
26463
26465
  { type: router.Router },
26464
- { type: http.HttpClient }
26466
+ { type: http.HttpClient },
26467
+ { type: material.MatDialog }
26465
26468
  ]; };
26466
- AuthenticationService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function AuthenticationService_Factory() { return new AuthenticationService(core.ɵɵinject(router.Router), core.ɵɵinject(http.HttpClient)); }, token: AuthenticationService, providedIn: "root" });
26469
+ AuthenticationService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function AuthenticationService_Factory() { return new AuthenticationService(core.ɵɵinject(router.Router), core.ɵɵinject(http.HttpClient), core.ɵɵinject(dialog.MatDialog)); }, token: AuthenticationService, providedIn: "root" });
26467
26470
  AuthenticationService = __decorate([
26468
26471
  core.Injectable({ providedIn: 'root' }),
26469
26472
  __metadata("design:paramtypes", [router.Router,
26470
- http.HttpClient])
26473
+ http.HttpClient,
26474
+ material.MatDialog])
26471
26475
  ], AuthenticationService);
26472
26476
  return AuthenticationService;
26473
26477
  }(AbstractService));
@@ -27584,9 +27588,9 @@
27584
27588
  if (ObjectUtil.isNull(this.filter)) {
27585
27589
  this.filter = this.newFilter();
27586
27590
  }
27587
- // if (ObjectUtil.isNull(pageEvent) && !ObjectUtil.isNull(this.tablePageEventDTO)) {
27588
- // pageEvent = this.tablePageEventDTO;
27589
- // }
27591
+ if (ObjectUtil.isNull(pageEvent) && !ObjectUtil.isNull(this.tablePageEventDTO)) {
27592
+ pageEvent = this.tablePageEventDTO;
27593
+ }
27590
27594
  if (pageEvent) {
27591
27595
  this.tablePageEventDTO = pageEvent;
27592
27596
  this.filter.pageNumber = pageEvent.pageIndex;