@coolon/angular-ui-powerups 0.0.30 → 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.
@@ -15,7 +15,7 @@ import { MatListModule } from '@angular/material/list';
15
15
  import { MatTabsModule as MatTabsModule$1 } from '@angular/material/tabs';
16
16
  import { MatTooltipModule } from '@angular/material/tooltip';
17
17
  import { RouterModule, Router, ActivatedRoute, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
18
- import { query, style, group, animate, trigger, transition } from '@angular/animations';
18
+ import { style, query, group, animate, trigger, transition } from '@angular/animations';
19
19
  import { isNil } from 'lodash';
20
20
  import 'reflect-metadata';
21
21
  import ResizeObserver from 'resize-observer-polyfill';
@@ -1793,34 +1793,46 @@ if (false) {
1793
1793
  * @fileoverview added by tsickle
1794
1794
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1795
1795
  */
1796
+ // Freezes the state of the components at the start of the animation.
1797
+ /** @type {?} */
1798
+ var animationStartStyle = style({ position: 'absolute', top: '0', left: '0', bottom: '0', right: '0' });
1796
1799
  /** @type {?} */
1797
1800
  var left = [
1798
- query(':enter, :leave', style({ position: 'fixed', width: '100%' }), { optional: true }),
1801
+ query(':enter, :leave', animationStartStyle, { optional: true }),
1799
1802
  group([
1800
- query(':enter', [style({ transform: 'translateX(-100%)' }), animate('.3s ease-out', style({ transform: 'translateX(0%)' }))], {
1801
- optional: true,
1802
- }),
1803
- query(':leave', [style({ transform: 'translateX(0%)' }), animate('.3s ease-out', style({ transform: 'translateX(100%)' }))], {
1804
- optional: true,
1803
+ query(':enter', [
1804
+ style({ transform: 'translateX(-100%)' }),
1805
+ animate('{{duration}} ease-out', style({ transform: 'translateX(0%)' }))
1806
+ ], {
1807
+ optional: true
1805
1808
  }),
1806
- ]),
1809
+ query(':leave', [
1810
+ style({ transform: 'translateX(0%)' }),
1811
+ animate('{{duration}} ease-out', style({ transform: 'translateX(100%)' }))
1812
+ ], {
1813
+ optional: true
1814
+ })
1815
+ ])
1807
1816
  ];
1808
1817
  /** @type {?} */
1809
1818
  var right = [
1810
- query(':enter, :leave', style({ position: 'fixed', width: '100%' }), { optional: true }),
1819
+ query(':enter, :leave', animationStartStyle, { optional: true }),
1811
1820
  group([
1812
- query(':enter', [style({ transform: 'translateX(100%)' }), animate('.3s ease-out', style({ transform: 'translateX(0%)' }))], {
1813
- optional: true,
1814
- }),
1815
- query(':leave', [style({ transform: 'translateX(0%)' }), animate('.3s ease-out', style({ transform: 'translateX(-100%)' }))], {
1816
- optional: true,
1821
+ query(':enter', [
1822
+ style({ transform: 'translateX(100%)' }),
1823
+ animate('{{duration}} ease-out', style({ transform: 'translateX(0%)' }))
1824
+ ], {
1825
+ optional: true
1817
1826
  }),
1818
- ]),
1827
+ query(':leave', [style({ transform: 'translateX(0%)' }), animate('{{duration}} ease-out', style({ transform: 'translateX(-100%)' }))], {
1828
+ optional: true
1829
+ })
1830
+ ])
1819
1831
  ];
1820
1832
  /** @type {?} */
1821
1833
  var LEFT_RIGHT_PLACE_ANIMATION = trigger('routeAnimations', [
1822
- transition(':increment', right),
1823
- transition(':decrement', left),
1834
+ transition(':increment', right, { params: { duration: '.3s' } }),
1835
+ transition(':decrement', left, { params: { duration: '.3s' } })
1824
1836
  ]);
1825
1837
 
1826
1838
  /**
@@ -1876,9 +1888,9 @@ var PlaceOutletComponent = /** @class */ (function () {
1876
1888
  PlaceOutletComponent.decorators = [
1877
1889
  { type: Component, args: [{
1878
1890
  selector: 'angular-ui-powerups-place-outlet',
1879
- 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",
1891
+ 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",
1880
1892
  animations: [LEFT_RIGHT_PLACE_ANIMATION],
1881
- 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}"]
1893
+ 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}"]
1882
1894
  }] }
1883
1895
  ];
1884
1896
  /** @nocollapse */
@@ -3715,8 +3727,36 @@ var ParameterType;
3715
3727
  };
3716
3728
  return NumberType;
3717
3729
  }());
3730
+ var BooleanType = /** @class */ (function () {
3731
+ function BooleanType() {
3732
+ }
3733
+ /**
3734
+ * @param {?} value
3735
+ * @return {?}
3736
+ */
3737
+ BooleanType.prototype.format = /**
3738
+ * @param {?} value
3739
+ * @return {?}
3740
+ */
3741
+ function (value) {
3742
+ return value ? 'true' : 'false';
3743
+ };
3744
+ /**
3745
+ * @param {?} value
3746
+ * @return {?}
3747
+ */
3748
+ BooleanType.prototype.parse = /**
3749
+ * @param {?} value
3750
+ * @return {?}
3751
+ */
3752
+ function (value) {
3753
+ return value === 'true';
3754
+ };
3755
+ return BooleanType;
3756
+ }());
3718
3757
  ParameterType.STRING = new StringType();
3719
3758
  ParameterType.NUMBER = new NumberType();
3759
+ ParameterType.BOOLEAN = new BooleanType();
3720
3760
  })(ParameterType || (ParameterType = {}));
3721
3761
 
3722
3762
  /**