@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.
@@ -4582,6 +4582,19 @@
4582
4582
  });
4583
4583
  });
4584
4584
  };
4585
+ /**
4586
+ * @param {?} visit
4587
+ * @param {?=} navigationExtras
4588
+ * @return {?}
4589
+ */
4590
+ PlaceRouter.prototype.createRedirectFor = /**
4591
+ * @param {?} visit
4592
+ * @param {?=} navigationExtras
4593
+ * @return {?}
4594
+ */
4595
+ function (visit, navigationExtras) {
4596
+ return this.router.createUrlTree(this.createRouteParameters(visit), navigationExtras);
4597
+ };
4585
4598
  // @Trace()
4586
4599
  // @Trace()
4587
4600
  /**
@@ -6483,9 +6496,6 @@
6483
6496
  */
6484
6497
  /**
6485
6498
  * @abstract
6486
- */
6487
- /**
6488
- * @abstract
6489
6499
  */
6490
6500
  exports.AbstractEnterPlaceGuard = /** @class */ (function () {
6491
6501
  function AbstractEnterPlaceGuard(router, urlSerializer, placeRouter, placeHistory, injector) {
@@ -6588,8 +6598,16 @@
6588
6598
  _b.label = 3;
6589
6599
  case 3:
6590
6600
  authorised = _a;
6591
- 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];
6592
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*/];
6593
6611
  }
6594
6612
  });
6595
6613
  });
@@ -6646,6 +6664,18 @@
6646
6664
  });
6647
6665
  });
6648
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);
6649
6679
  return AbstractEnterPlaceGuard;
6650
6680
  }());
6651
6681
  if (false) {