@coolon/angular-ui-powerups 0.0.95 → 0.0.96

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.
@@ -6314,10 +6314,7 @@ if (false) {
6314
6314
  /**
6315
6315
  * @abstract
6316
6316
  */
6317
- var /**
6318
- * @abstract
6319
- */
6320
- AbstractEnterPlaceGuard = /** @class */ (function () {
6317
+ var AbstractEnterPlaceGuard = /** @class */ (function () {
6321
6318
  function AbstractEnterPlaceGuard(router, urlSerializer, placeRouter, placeHistory, injector) {
6322
6319
  this.router = router;
6323
6320
  this.urlSerializer = urlSerializer;
@@ -6418,8 +6415,16 @@ AbstractEnterPlaceGuard = /** @class */ (function () {
6418
6415
  _b.label = 3;
6419
6416
  case 3:
6420
6417
  authorised = _a;
6421
- return [2 /*return*/, authorised === true ? canActivate(placeDefinition) : authorised];
6418
+ if (authorised === true) {
6419
+ return [2 /*return*/, canActivate(placeDefinition)];
6420
+ }
6421
+ else {
6422
+ console.log("not authorised result", authorised);
6423
+ return [2 /*return*/, authorised];
6424
+ }
6425
+ return [3 /*break*/, 5];
6422
6426
  case 4: return [2 /*return*/, lang.illegalState("expected component to be an instance of PlaceComponent, got " + activatedRoute.component)];
6427
+ case 5: return [2 /*return*/];
6423
6428
  }
6424
6429
  });
6425
6430
  });
@@ -6476,6 +6481,18 @@ AbstractEnterPlaceGuard = /** @class */ (function () {
6476
6481
  });
6477
6482
  });
6478
6483
  };
6484
+ __decorate([
6485
+ Trace(),
6486
+ __metadata("design:type", Function),
6487
+ __metadata("design:paramtypes", [ActivatedRouteSnapshot, RouterStateSnapshot, Function]),
6488
+ __metadata("design:returntype", Promise)
6489
+ ], AbstractEnterPlaceGuard.prototype, "authorisePlaceThen", null);
6490
+ __decorate([
6491
+ Trace(),
6492
+ __metadata("design:type", Function),
6493
+ __metadata("design:paramtypes", [ActivatedRouteSnapshot, RouterStateSnapshot]),
6494
+ __metadata("design:returntype", Promise)
6495
+ ], AbstractEnterPlaceGuard.prototype, "isAuthorised", null);
6479
6496
  return AbstractEnterPlaceGuard;
6480
6497
  }());
6481
6498
  if (false) {