@coolon/angular-ui-powerups 0.0.107 → 0.0.109

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.
@@ -4622,23 +4622,21 @@
4622
4622
  function (event) {
4623
4623
  return new InteractionTransition(this.context, event.url);
4624
4624
  };
4625
+ // @Trace()
4626
+ // @Trace()
4625
4627
  /**
4626
4628
  * @param {?} event
4627
4629
  * @return {?}
4628
4630
  */
4629
- IdleDuringInteraction.prototype.onPopState = /**
4631
+ IdleDuringInteraction.prototype.onPopState =
4632
+ // @Trace()
4633
+ /**
4630
4634
  * @param {?} event
4631
4635
  * @return {?}
4632
4636
  */
4633
4637
  function (event) {
4634
4638
  return new InteractionPopStateTransition(this.context, event.url);
4635
4639
  };
4636
- __decorate([
4637
- pectin.Trace(),
4638
- __metadata("design:type", Function),
4639
- __metadata("design:paramtypes", [router.NavigationStart]),
4640
- __metadata("design:returntype", NavigationState)
4641
- ], IdleDuringInteraction.prototype, "onPopState", null);
4642
4640
  return IdleDuringInteraction;
4643
4641
  }(NavigationState));
4644
4642
  NavigationState.IdleDuringInteraction = IdleDuringInteraction;
@@ -4677,18 +4675,26 @@
4677
4675
  * This state exists to handle all events while any kind of navigation is in progress. That way all other states can
4678
4676
  * happily ignore interaction contexts.
4679
4677
  */
4680
- var InteractionTransition = /** @class */ (function (_super) {
4678
+ var /**
4679
+ * This state exists to handle all events while any kind of navigation is in progress. That way all other states can
4680
+ * happily ignore interaction contexts.
4681
+ */
4682
+ InteractionTransition = /** @class */ (function (_super) {
4681
4683
  __extends(InteractionTransition, _super);
4682
4684
  function InteractionTransition() {
4683
4685
  var _this = _super !== null && _super.apply(this, arguments) || this;
4684
4686
  _this.isPopState = false;
4685
4687
  return _this;
4686
4688
  }
4689
+ // @Trace()
4690
+ // @Trace()
4687
4691
  /**
4688
4692
  * @param {?} event
4689
4693
  * @return {?}
4690
4694
  */
4691
- InteractionTransition.prototype.onRouterCancelled = /**
4695
+ InteractionTransition.prototype.onRouterCancelled =
4696
+ // @Trace()
4697
+ /**
4692
4698
  * @param {?} event
4693
4699
  * @return {?}
4694
4700
  */
@@ -4703,11 +4709,15 @@
4703
4709
  return new Idle(this.context);
4704
4710
  }
4705
4711
  };
4712
+ // @Trace()
4713
+ // @Trace()
4706
4714
  /**
4707
4715
  * @param {?} event
4708
4716
  * @return {?}
4709
4717
  */
4710
- InteractionTransition.prototype.onRouterError = /**
4718
+ InteractionTransition.prototype.onRouterError =
4719
+ // @Trace()
4720
+ /**
4711
4721
  * @param {?} event
4712
4722
  * @return {?}
4713
4723
  */
@@ -4715,11 +4725,15 @@
4715
4725
  // navigation was aborted.
4716
4726
  return new IdleDuringInteraction(this.context, this.startingUrl);
4717
4727
  };
4728
+ // @Trace()
4729
+ // @Trace()
4718
4730
  /**
4719
4731
  * @param {?} event
4720
4732
  * @return {?}
4721
4733
  */
4722
- InteractionTransition.prototype.onRouterEnd = /**
4734
+ InteractionTransition.prototype.onRouterEnd =
4735
+ // @Trace()
4736
+ /**
4723
4737
  * @param {?} event
4724
4738
  * @return {?}
4725
4739
  */
@@ -4731,24 +4745,6 @@
4731
4745
  return new Idle(this.context);
4732
4746
  }
4733
4747
  };
4734
- __decorate([
4735
- pectin.Trace(),
4736
- __metadata("design:type", Function),
4737
- __metadata("design:paramtypes", [router.NavigationCancel]),
4738
- __metadata("design:returntype", NavigationState)
4739
- ], InteractionTransition.prototype, "onRouterCancelled", null);
4740
- __decorate([
4741
- pectin.Trace(),
4742
- __metadata("design:type", Function),
4743
- __metadata("design:paramtypes", [router.NavigationError]),
4744
- __metadata("design:returntype", NavigationState)
4745
- ], InteractionTransition.prototype, "onRouterError", null);
4746
- __decorate([
4747
- pectin.Trace(),
4748
- __metadata("design:type", Function),
4749
- __metadata("design:paramtypes", [router.NavigationEnd]),
4750
- __metadata("design:returntype", NavigationState)
4751
- ], InteractionTransition.prototype, "onRouterEnd", null);
4752
4748
  return InteractionTransition;
4753
4749
  }(AbstractInteractionTransition));
4754
4750
  NavigationState.InteractionTransition = InteractionTransition;
@@ -4760,18 +4756,26 @@
4760
4756
  * This state exists to handle all events while any kind of navigation is in progress. That way all other states can
4761
4757
  * happily ignore interaction contexts.
4762
4758
  */
4763
- var InteractionPopStateTransition = /** @class */ (function (_super) {
4759
+ var /**
4760
+ * This state exists to handle all events while any kind of navigation is in progress. That way all other states can
4761
+ * happily ignore interaction contexts.
4762
+ */
4763
+ InteractionPopStateTransition = /** @class */ (function (_super) {
4764
4764
  __extends(InteractionPopStateTransition, _super);
4765
4765
  function InteractionPopStateTransition() {
4766
4766
  var _this = _super !== null && _super.apply(this, arguments) || this;
4767
4767
  _this.isPopState = true;
4768
4768
  return _this;
4769
4769
  }
4770
+ // @Trace()
4771
+ // @Trace()
4770
4772
  /**
4771
4773
  * @param {?} event
4772
4774
  * @return {?}
4773
4775
  */
4774
- InteractionPopStateTransition.prototype.onRouterCancelled = /**
4776
+ InteractionPopStateTransition.prototype.onRouterCancelled =
4777
+ // @Trace()
4778
+ /**
4775
4779
  * @param {?} event
4776
4780
  * @return {?}
4777
4781
  */
@@ -4786,11 +4790,15 @@
4786
4790
  return new Idle(this.context);
4787
4791
  }
4788
4792
  };
4793
+ // @Trace()
4794
+ // @Trace()
4789
4795
  /**
4790
4796
  * @param {?} event
4791
4797
  * @return {?}
4792
4798
  */
4793
- InteractionPopStateTransition.prototype.onRouterEnd = /**
4799
+ InteractionPopStateTransition.prototype.onRouterEnd =
4800
+ // @Trace()
4801
+ /**
4794
4802
  * @param {?} event
4795
4803
  * @return {?}
4796
4804
  */
@@ -4802,18 +4810,6 @@
4802
4810
  return new Idle(this.context);
4803
4811
  }
4804
4812
  };
4805
- __decorate([
4806
- pectin.Trace(),
4807
- __metadata("design:type", Function),
4808
- __metadata("design:paramtypes", [router.NavigationCancel]),
4809
- __metadata("design:returntype", NavigationState)
4810
- ], InteractionPopStateTransition.prototype, "onRouterCancelled", null);
4811
- __decorate([
4812
- pectin.Trace(),
4813
- __metadata("design:type", Function),
4814
- __metadata("design:paramtypes", [router.NavigationEnd]),
4815
- __metadata("design:returntype", NavigationState)
4816
- ], InteractionPopStateTransition.prototype, "onRouterEnd", null);
4817
4813
  return InteractionPopStateTransition;
4818
4814
  }(AbstractInteractionTransition));
4819
4815
  NavigationState.InteractionPopStateTransition = InteractionPopStateTransition;
@@ -4853,20 +4849,28 @@
4853
4849
  function (event) {
4854
4850
  return this.ignore(event);
4855
4851
  };
4852
+ // @Trace()
4853
+ // @Trace()
4856
4854
  /**
4857
4855
  * @param {?} event
4858
4856
  * @return {?}
4859
4857
  */
4860
- CancelledDuringNavigationInteraction.prototype.onRouterCancelled = /**
4858
+ CancelledDuringNavigationInteraction.prototype.onRouterCancelled =
4859
+ // @Trace()
4860
+ /**
4861
4861
  * @param {?} event
4862
4862
  * @return {?}
4863
4863
  */
4864
4864
  function (event) {
4865
4865
  // Depending on the state of the router and what was done we get a different
4866
- // sequence of events. I.e. If they just clicked a link we'll get a cancel
4867
- // with the locationChangeTriggerUrl as the final event. However the user
4868
- // started the initial navigation with a pop state then we'll get one of
4869
- // those with the locationChangeTriggerUrl but no cancel event with it.
4866
+ // sequence of events.
4867
+ // If the navigation change was triggered by clicking a link we'll get a cancel with the locationChangeTriggerUrl as the final event.
4868
+ // If the navigation change was triggered with a pop state then we'll get an onPopState with the locationChangeTriggerUrl but no cancel event with it.
4869
+ if (this.gotPopStateWithLeavingUrl && this.interactionService.isActive()) {
4870
+ /** @type {?} */
4871
+ var interactionIds = this.interactionService.activeInteractionContextIds.value;
4872
+ this.resetBrowserLocation(this.placeRouter.parseUrl(this.startingUrl).updateInteractionIds(interactionIds).url);
4873
+ }
4870
4874
  return this.gotPopStateWithLeavingUrl || this.locationChangeTriggerUrl === event.url ? this.createIdleState() : this.ignore(event);
4871
4875
  };
4872
4876
  /**
@@ -4950,12 +4954,6 @@
4950
4954
  function () {
4951
4955
  return this.constructor.name + "(isIdl: " + this.idle + ", startingUrl: " + this.startingUrl + ", locationChangeTriggerUrl:" + this.locationChangeTriggerUrl + ")";
4952
4956
  };
4953
- __decorate([
4954
- pectin.Trace(),
4955
- __metadata("design:type", Function),
4956
- __metadata("design:paramtypes", [router.NavigationCancel]),
4957
- __metadata("design:returntype", NavigationState)
4958
- ], CancelledDuringNavigationInteraction.prototype, "onRouterCancelled", null);
4959
4957
  return CancelledDuringNavigationInteraction;
4960
4958
  }(NavigationState));
4961
4959
  NavigationState.CancelledDuringNavigationInteraction = CancelledDuringNavigationInteraction;
@@ -5722,12 +5720,16 @@
5722
5720
  function (url) {
5723
5721
  return this.getActiveInteractionIdsFromUrl(url).length > 0;
5724
5722
  };
5723
+ // @Trace()
5724
+ // @Trace()
5725
5725
  /**
5726
5726
  * @param {?} urlSnapshot
5727
5727
  * @param {?=} navigationExtras
5728
5728
  * @return {?}
5729
5729
  */
5730
- PlaceRouter.prototype.navigateByUrl = /**
5730
+ PlaceRouter.prototype.navigateByUrl =
5731
+ // @Trace()
5732
+ /**
5731
5733
  * @param {?} urlSnapshot
5732
5734
  * @param {?=} navigationExtras
5733
5735
  * @return {?}
@@ -5810,12 +5812,6 @@
5810
5812
  { type: exports.ɵv }
5811
5813
  ]; };
5812
5814
  /** @nocollapse */ PlaceRouter.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function PlaceRouter_Factory() { return new PlaceRouter(core.ɵɵinject(router.Router), core.ɵɵinject(router.UrlSerializer), core.ɵɵinject(common.Location), core.ɵɵinject(PlaceHistory), core.ɵɵinject(exports.ɵv)); }, token: PlaceRouter, providedIn: "root" });
5813
- __decorate([
5814
- pectin.Trace(),
5815
- __metadata("design:type", Function),
5816
- __metadata("design:paramtypes", [exports.UrlSnapshot, Object]),
5817
- __metadata("design:returntype", Promise)
5818
- ], PlaceRouter.prototype, "navigateByUrl", null);
5819
5815
  return PlaceRouter;
5820
5816
  }(pectin.GarbageCollector));
5821
5817
  if (false) {