@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.
@@ -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
- // if (ObjectUtil.isNull(pageEvent) && !ObjectUtil.isNull(this.tablePageEventDTO)) {
27434
- // pageEvent = this.tablePageEventDTO;
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;