@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';
@@ -1479,34 +1479,46 @@ if (false) {
1479
1479
  * @fileoverview added by tsickle
1480
1480
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1481
1481
  */
1482
+ // Freezes the state of the components at the start of the animation.
1483
+ /** @type {?} */
1484
+ const animationStartStyle = style({ position: 'absolute', top: '0', left: '0', bottom: '0', right: '0' });
1482
1485
  /** @type {?} */
1483
1486
  const left = [
1484
- query(':enter, :leave', style({ position: 'fixed', width: '100%' }), { optional: true }),
1487
+ query(':enter, :leave', animationStartStyle, { optional: true }),
1485
1488
  group([
1486
- query(':enter', [style({ transform: 'translateX(-100%)' }), animate('.3s ease-out', style({ transform: 'translateX(0%)' }))], {
1487
- optional: true,
1488
- }),
1489
- query(':leave', [style({ transform: 'translateX(0%)' }), animate('.3s ease-out', style({ transform: 'translateX(100%)' }))], {
1490
- optional: true,
1489
+ query(':enter', [
1490
+ style({ transform: 'translateX(-100%)' }),
1491
+ animate('{{duration}} ease-out', style({ transform: 'translateX(0%)' }))
1492
+ ], {
1493
+ optional: true
1491
1494
  }),
1492
- ]),
1495
+ query(':leave', [
1496
+ style({ transform: 'translateX(0%)' }),
1497
+ animate('{{duration}} ease-out', style({ transform: 'translateX(100%)' }))
1498
+ ], {
1499
+ optional: true
1500
+ })
1501
+ ])
1493
1502
  ];
1494
1503
  /** @type {?} */
1495
1504
  const right = [
1496
- query(':enter, :leave', style({ position: 'fixed', width: '100%' }), { optional: true }),
1505
+ query(':enter, :leave', animationStartStyle, { optional: true }),
1497
1506
  group([
1498
- query(':enter', [style({ transform: 'translateX(100%)' }), animate('.3s ease-out', style({ transform: 'translateX(0%)' }))], {
1499
- optional: true,
1507
+ query(':enter', [
1508
+ style({ transform: 'translateX(100%)' }),
1509
+ animate('{{duration}} ease-out', style({ transform: 'translateX(0%)' }))
1510
+ ], {
1511
+ optional: true
1500
1512
  }),
1501
- query(':leave', [style({ transform: 'translateX(0%)' }), animate('.3s ease-out', style({ transform: 'translateX(-100%)' }))], {
1502
- optional: true,
1503
- }),
1504
- ]),
1513
+ query(':leave', [style({ transform: 'translateX(0%)' }), animate('{{duration}} ease-out', style({ transform: 'translateX(-100%)' }))], {
1514
+ optional: true
1515
+ })
1516
+ ])
1505
1517
  ];
1506
1518
  /** @type {?} */
1507
1519
  const LEFT_RIGHT_PLACE_ANIMATION = trigger('routeAnimations', [
1508
- transition(':increment', right),
1509
- transition(':decrement', left),
1520
+ transition(':increment', right, { params: { duration: '.3s' } }),
1521
+ transition(':decrement', left, { params: { duration: '.3s' } })
1510
1522
  ]);
1511
1523
 
1512
1524
  /**
@@ -1551,9 +1563,9 @@ class PlaceOutletComponent {
1551
1563
  PlaceOutletComponent.decorators = [
1552
1564
  { type: Component, args: [{
1553
1565
  selector: 'angular-ui-powerups-place-outlet',
1554
- 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",
1566
+ 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",
1555
1567
  animations: [LEFT_RIGHT_PLACE_ANIMATION],
1556
- 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}"]
1568
+ 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}"]
1557
1569
  }] }
1558
1570
  ];
1559
1571
  /** @nocollapse */
@@ -3148,8 +3160,25 @@ var ParameterType;
3148
3160
  return +value;
3149
3161
  }
3150
3162
  }
3163
+ class BooleanType {
3164
+ /**
3165
+ * @param {?} value
3166
+ * @return {?}
3167
+ */
3168
+ format(value) {
3169
+ return value ? 'true' : 'false';
3170
+ }
3171
+ /**
3172
+ * @param {?} value
3173
+ * @return {?}
3174
+ */
3175
+ parse(value) {
3176
+ return value === 'true';
3177
+ }
3178
+ }
3151
3179
  ParameterType.STRING = new StringType();
3152
3180
  ParameterType.NUMBER = new NumberType();
3181
+ ParameterType.BOOLEAN = new BooleanType();
3153
3182
  })(ParameterType || (ParameterType = {}));
3154
3183
 
3155
3184
  /**