@coolon/angular-ui-powerups 0.0.31 → 0.0.32

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.
@@ -1974,34 +1974,46 @@
1974
1974
  * @fileoverview added by tsickle
1975
1975
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1976
1976
  */
1977
+ // Freezes the state of the components at the start of the animation.
1978
+ /** @type {?} */
1979
+ var animationStartStyle = animations$1.style({ position: 'absolute', top: '0', left: '0', bottom: '0', right: '0' });
1977
1980
  /** @type {?} */
1978
1981
  var left = [
1979
- animations$1.query(':enter, :leave', animations$1.style({ position: 'fixed', width: '100%' }), { optional: true }),
1982
+ animations$1.query(':enter, :leave', animationStartStyle, { optional: true }),
1980
1983
  animations$1.group([
1981
- animations$1.query(':enter', [animations$1.style({ transform: 'translateX(-100%)' }), animations$1.animate('.3s ease-out', animations$1.style({ transform: 'translateX(0%)' }))], {
1982
- optional: true,
1983
- }),
1984
- animations$1.query(':leave', [animations$1.style({ transform: 'translateX(0%)' }), animations$1.animate('.3s ease-out', animations$1.style({ transform: 'translateX(100%)' }))], {
1985
- optional: true,
1984
+ animations$1.query(':enter', [
1985
+ animations$1.style({ transform: 'translateX(-100%)' }),
1986
+ animations$1.animate('{{duration}} ease-out', animations$1.style({ transform: 'translateX(0%)' }))
1987
+ ], {
1988
+ optional: true
1986
1989
  }),
1987
- ]),
1990
+ animations$1.query(':leave', [
1991
+ animations$1.style({ transform: 'translateX(0%)' }),
1992
+ animations$1.animate('{{duration}} ease-out', animations$1.style({ transform: 'translateX(100%)' }))
1993
+ ], {
1994
+ optional: true
1995
+ })
1996
+ ])
1988
1997
  ];
1989
1998
  /** @type {?} */
1990
1999
  var right = [
1991
- animations$1.query(':enter, :leave', animations$1.style({ position: 'fixed', width: '100%' }), { optional: true }),
2000
+ animations$1.query(':enter, :leave', animationStartStyle, { optional: true }),
1992
2001
  animations$1.group([
1993
- animations$1.query(':enter', [animations$1.style({ transform: 'translateX(100%)' }), animations$1.animate('.3s ease-out', animations$1.style({ transform: 'translateX(0%)' }))], {
1994
- optional: true,
1995
- }),
1996
- animations$1.query(':leave', [animations$1.style({ transform: 'translateX(0%)' }), animations$1.animate('.3s ease-out', animations$1.style({ transform: 'translateX(-100%)' }))], {
1997
- optional: true,
2002
+ animations$1.query(':enter', [
2003
+ animations$1.style({ transform: 'translateX(100%)' }),
2004
+ animations$1.animate('{{duration}} ease-out', animations$1.style({ transform: 'translateX(0%)' }))
2005
+ ], {
2006
+ optional: true
1998
2007
  }),
1999
- ]),
2008
+ animations$1.query(':leave', [animations$1.style({ transform: 'translateX(0%)' }), animations$1.animate('{{duration}} ease-out', animations$1.style({ transform: 'translateX(-100%)' }))], {
2009
+ optional: true
2010
+ })
2011
+ ])
2000
2012
  ];
2001
2013
  /** @type {?} */
2002
2014
  var LEFT_RIGHT_PLACE_ANIMATION = animations$1.trigger('routeAnimations', [
2003
- animations$1.transition(':increment', right),
2004
- animations$1.transition(':decrement', left),
2015
+ animations$1.transition(':increment', right, { params: { duration: '.3s' } }),
2016
+ animations$1.transition(':decrement', left, { params: { duration: '.3s' } })
2005
2017
  ]);
2006
2018
 
2007
2019
  /**
@@ -2057,9 +2069,9 @@
2057
2069
  PlaceOutletComponent.decorators = [
2058
2070
  { type: core.Component, args: [{
2059
2071
  selector: 'angular-ui-powerups-place-outlet',
2060
- template: "<div container [@routeAnimations]=\"getPlaceOrder(routerOutlet)\">\n <router-outlet #routerOutlet=\"outlet\"\n (activate)=\"onActivate($event)\"\n (deactivate)=\"onDeactivate($event)\">\n </router-outlet>\n</div>\n\n",
2072
+ template: "<div class=\"router-outlet-container\" [@routeAnimations]=\"getPlaceOrder(routerOutlet)\">\n <router-outlet #routerOutlet=\"outlet\"\n (activate)=\"onActivate($event)\"\n (deactivate)=\"onDeactivate($event)\">\n </router-outlet>\n</div>\n\n",
2061
2073
  animations: [LEFT_RIGHT_PLACE_ANIMATION],
2062
- styles: [":host{display:flex;flex-direction:column;min-height:0}[container]{flex:1;display:-ms-grid;display:grid;-ms-grid-rows:0 1fr;grid-template-rows:0 1fr;min-height:0}"]
2074
+ styles: [":host{display:flex;flex-direction:column;min-height:0}.router-outlet-container{flex:1;display:block;position:relative;min-height:0}router-outlet{display:none}"]
2063
2075
  }] }
2064
2076
  ];
2065
2077
  /** @nocollapse */