@coolon/angular-ui-powerups 0.0.108 → 0.0.110

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,11 +4849,15 @@
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
  */
@@ -4954,12 +4954,6 @@
4954
4954
  function () {
4955
4955
  return this.constructor.name + "(isIdl: " + this.idle + ", startingUrl: " + this.startingUrl + ", locationChangeTriggerUrl:" + this.locationChangeTriggerUrl + ")";
4956
4956
  };
4957
- __decorate([
4958
- pectin.Trace(),
4959
- __metadata("design:type", Function),
4960
- __metadata("design:paramtypes", [router.NavigationCancel]),
4961
- __metadata("design:returntype", NavigationState)
4962
- ], CancelledDuringNavigationInteraction.prototype, "onRouterCancelled", null);
4963
4957
  return CancelledDuringNavigationInteraction;
4964
4958
  }(NavigationState));
4965
4959
  NavigationState.CancelledDuringNavigationInteraction = CancelledDuringNavigationInteraction;
@@ -5726,12 +5720,16 @@
5726
5720
  function (url) {
5727
5721
  return this.getActiveInteractionIdsFromUrl(url).length > 0;
5728
5722
  };
5723
+ // @Trace()
5724
+ // @Trace()
5729
5725
  /**
5730
5726
  * @param {?} urlSnapshot
5731
5727
  * @param {?=} navigationExtras
5732
5728
  * @return {?}
5733
5729
  */
5734
- PlaceRouter.prototype.navigateByUrl = /**
5730
+ PlaceRouter.prototype.navigateByUrl =
5731
+ // @Trace()
5732
+ /**
5735
5733
  * @param {?} urlSnapshot
5736
5734
  * @param {?=} navigationExtras
5737
5735
  * @return {?}
@@ -5814,12 +5812,6 @@
5814
5812
  { type: exports.ɵv }
5815
5813
  ]; };
5816
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" });
5817
- __decorate([
5818
- pectin.Trace(),
5819
- __metadata("design:type", Function),
5820
- __metadata("design:paramtypes", [exports.UrlSnapshot, Object]),
5821
- __metadata("design:returntype", Promise)
5822
- ], PlaceRouter.prototype, "navigateByUrl", null);
5823
5815
  return PlaceRouter;
5824
5816
  }(pectin.GarbageCollector));
5825
5817
  if (false) {
@@ -6732,28 +6724,30 @@
6732
6724
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
6733
6725
  */
6734
6726
  /** @type {?} */
6735
- var defaultHiddenStyleDef = animations$1.style({
6727
+ var slideDownOnEnterDef = animations$1.style({
6736
6728
  opacity: 0,
6737
6729
  'height': '0',
6738
6730
  paddingTop: '0',
6739
6731
  paddingBottom: '0'
6740
6732
  });
6741
- /**
6742
- * @param {?} triggerName
6743
- * @param {?=} options
6744
- * @return {?}
6745
- */
6746
- function slideDownAndUpAnimation(triggerName, options) {
6747
- // SEE to fix this: https://github.com/angular/angular/issues/15587#issuecomment-351510501
6748
- /** @type {?} */
6749
- var duration = pectin.OptionsHelper.get(options).getOptional('duration', '100ms');
6750
- /** @type {?} */
6751
- var hiddenStyleDef = pectin.OptionsHelper.get(options).getOptional('hiddenStyleDef', defaultHiddenStyleDef);
6752
- return animations$1.trigger(triggerName, [
6753
- animations$1.transition(':enter', [hiddenStyleDef, animations$1.animate('100ms')]),
6754
- animations$1.transition(':leave', [animations$1.animate('100ms', hiddenStyleDef)])
6755
- ]);
6756
- }
6733
+ // TODO: params aren't getting customised in the view. Need to figure out the correct approach.
6734
+ /** @type {?} */
6735
+ var slideDownOnEnterAnimation = animations$1.trigger('slideDownOnEnter', [
6736
+ animations$1.transition(':enter', [slideDownOnEnterDef, animations$1.animate('{{duration}}')], { params: { duration: '100ms' } }),
6737
+ animations$1.transition(':leave', [animations$1.animate('{{duration}}', slideDownOnEnterDef)], { params: { duration: '100ms' } })
6738
+ ]);
6739
+ /** @type {?} */
6740
+ var slideLeftOnEnterDef = animations$1.style({
6741
+ opacity: 0,
6742
+ 'width': '0',
6743
+ paddingLeft: '0',
6744
+ paddingRight: '0'
6745
+ });
6746
+ /** @type {?} */
6747
+ var slideRightOnEnterAnimation = animations$1.trigger('slideRightOnEnter', [
6748
+ animations$1.transition(':enter', [slideLeftOnEnterDef, animations$1.animate('{{duration}}')], { params: { duration: '100ms' } }),
6749
+ animations$1.transition(':leave', [animations$1.animate('{{duration}}', slideLeftOnEnterDef)], { params: { duration: '100ms' } })
6750
+ ]);
6757
6751
 
6758
6752
  /**
6759
6753
  * @fileoverview added by tsickle
@@ -8275,7 +8269,8 @@
8275
8269
  exports.VisitParameterList = VisitParameterList;
8276
8270
  exports.VisitSanitiser = VisitSanitiser;
8277
8271
  exports.leftRightPlaceAnimation = leftRightPlaceAnimation;
8278
- exports.slideDownAndUpAnimation = slideDownAndUpAnimation;
8272
+ exports.slideDownOnEnterAnimation = slideDownOnEnterAnimation;
8273
+ exports.slideRightOnEnterAnimation = slideRightOnEnterAnimation;
8279
8274
  exports.ɵa = DirectivesModule;
8280
8275
  exports.ɵb = CommandDirective;
8281
8276
  exports.ɵba = InteractionModule;