@coolon/angular-ui-powerups 0.0.94 → 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.
@@ -4399,6 +4399,19 @@ var PlaceRouter = /** @class */ (function (_super) {
4399
4399
  });
4400
4400
  });
4401
4401
  };
4402
+ /**
4403
+ * @param {?} visit
4404
+ * @param {?=} navigationExtras
4405
+ * @return {?}
4406
+ */
4407
+ PlaceRouter.prototype.createRedirectFor = /**
4408
+ * @param {?} visit
4409
+ * @param {?=} navigationExtras
4410
+ * @return {?}
4411
+ */
4412
+ function (visit, navigationExtras) {
4413
+ return this.router.createUrlTree(this.createRouteParameters(visit), navigationExtras);
4414
+ };
4402
4415
  // @Trace()
4403
4416
  // @Trace()
4404
4417
  /**
@@ -6301,10 +6314,7 @@ if (false) {
6301
6314
  /**
6302
6315
  * @abstract
6303
6316
  */
6304
- var /**
6305
- * @abstract
6306
- */
6307
- AbstractEnterPlaceGuard = /** @class */ (function () {
6317
+ var AbstractEnterPlaceGuard = /** @class */ (function () {
6308
6318
  function AbstractEnterPlaceGuard(router, urlSerializer, placeRouter, placeHistory, injector) {
6309
6319
  this.router = router;
6310
6320
  this.urlSerializer = urlSerializer;
@@ -6405,8 +6415,16 @@ AbstractEnterPlaceGuard = /** @class */ (function () {
6405
6415
  _b.label = 3;
6406
6416
  case 3:
6407
6417
  authorised = _a;
6408
- 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];
6409
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*/];
6410
6428
  }
6411
6429
  });
6412
6430
  });
@@ -6463,6 +6481,18 @@ AbstractEnterPlaceGuard = /** @class */ (function () {
6463
6481
  });
6464
6482
  });
6465
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);
6466
6496
  return AbstractEnterPlaceGuard;
6467
6497
  }());
6468
6498
  if (false) {