@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.
@@ -6496,9 +6496,6 @@
6496
6496
  */
6497
6497
  /**
6498
6498
  * @abstract
6499
- */
6500
- /**
6501
- * @abstract
6502
6499
  */
6503
6500
  exports.AbstractEnterPlaceGuard = /** @class */ (function () {
6504
6501
  function AbstractEnterPlaceGuard(router, urlSerializer, placeRouter, placeHistory, injector) {
@@ -6601,8 +6598,16 @@
6601
6598
  _b.label = 3;
6602
6599
  case 3:
6603
6600
  authorised = _a;
6604
- return [2 /*return*/, authorised === true ? canActivate(placeDefinition) : authorised];
6601
+ if (authorised === true) {
6602
+ return [2 /*return*/, canActivate(placeDefinition)];
6603
+ }
6604
+ else {
6605
+ console.log("not authorised result", authorised);
6606
+ return [2 /*return*/, authorised];
6607
+ }
6608
+ return [3 /*break*/, 5];
6605
6609
  case 4: return [2 /*return*/, pectin.lang.illegalState("expected component to be an instance of PlaceComponent, got " + activatedRoute.component)];
6610
+ case 5: return [2 /*return*/];
6606
6611
  }
6607
6612
  });
6608
6613
  });
@@ -6659,6 +6664,18 @@
6659
6664
  });
6660
6665
  });
6661
6666
  };
6667
+ __decorate([
6668
+ pectin.Trace(),
6669
+ __metadata("design:type", Function),
6670
+ __metadata("design:paramtypes", [router.ActivatedRouteSnapshot, router.RouterStateSnapshot, Function]),
6671
+ __metadata("design:returntype", Promise)
6672
+ ], AbstractEnterPlaceGuard.prototype, "authorisePlaceThen", null);
6673
+ __decorate([
6674
+ pectin.Trace(),
6675
+ __metadata("design:type", Function),
6676
+ __metadata("design:paramtypes", [router.ActivatedRouteSnapshot, router.RouterStateSnapshot]),
6677
+ __metadata("design:returntype", Promise)
6678
+ ], AbstractEnterPlaceGuard.prototype, "isAuthorised", null);
6662
6679
  return AbstractEnterPlaceGuard;
6663
6680
  }());
6664
6681
  if (false) {