@coolon/angular-ui-powerups 0.0.21 → 0.0.23

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.
Files changed (38) hide show
  1. package/bundles/coolon-angular-ui-powerups.umd.js +90 -31
  2. package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
  3. package/bundles/coolon-angular-ui-powerups.umd.min.js +1 -1
  4. package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
  5. package/coolon-angular-ui-powerups.d.ts +14 -13
  6. package/coolon-angular-ui-powerups.metadata.json +1 -1
  7. package/esm2015/coolon-angular-ui-powerups.js +14 -13
  8. package/esm2015/index.js +2 -2
  9. package/esm2015/lib/place/components/place-outlet/place-outlet.component.js +19 -4
  10. package/esm2015/lib/place/components/place-outlet/route-animations.js +35 -0
  11. package/esm2015/lib/place/index.js +2 -1
  12. package/esm2015/lib/place/place.decorator.js +6 -1
  13. package/esm2015/public_api.js +2 -2
  14. package/esm5/coolon-angular-ui-powerups.js +14 -13
  15. package/esm5/index.js +2 -2
  16. package/esm5/lib/place/components/place-outlet/place-outlet.component.js +23 -4
  17. package/esm5/lib/place/components/place-outlet/route-animations.js +35 -0
  18. package/esm5/lib/place/index.js +2 -1
  19. package/esm5/lib/place/place.decorator.js +6 -1
  20. package/esm5/public_api.js +2 -2
  21. package/fesm2015/coolon-angular-ui-powerups.js +57 -4
  22. package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
  23. package/fesm5/coolon-angular-ui-powerups.js +61 -4
  24. package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
  25. package/lib/place/components/place-outlet/place-outlet.component.d.ts +3 -0
  26. package/lib/place/components/place-outlet/route-animations.d.ts +1 -0
  27. package/lib/place/index.d.ts +1 -0
  28. package/lib/place/place.decorator.d.ts +2 -0
  29. package/package.json +1 -1
  30. package/schematics/place-routes/index.js +2 -0
  31. package/schematics/place-routes/index.js.map +1 -1
  32. package/schematics/place-routes/place-def.d.ts +3 -0
  33. package/schematics/place-routes/place-def.js +9 -0
  34. package/schematics/place-routes/place-def.js.map +1 -1
  35. package/schematics/place-routes/scanner.js +1 -0
  36. package/schematics/place-routes/scanner.js.map +1 -1
  37. package/schematics/place-routes/templates/{apps/__project__/src/app/place-routes.ts.template → place-routes.ts.template} +2 -1
  38. package/schematics/place-routes/templates/services/place-router.service.ts.template +38 -0
@@ -1296,7 +1296,7 @@
1296
1296
  * @fileoverview added by tsickle
1297
1297
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1298
1298
  */
1299
- exports.ɵp = /** @class */ (function (_super) {
1299
+ exports.ɵq = /** @class */ (function (_super) {
1300
1300
  __extends(ActivityContainerComponent, _super);
1301
1301
  function ActivityContainerComponent() {
1302
1302
  var _this = _super.call(this) || this;
@@ -1431,18 +1431,18 @@
1431
1431
  }(DisposableComponent));
1432
1432
  if (false) {
1433
1433
  /** @type {?} */
1434
- exports.ɵp.prototype.parentInteractionContext;
1434
+ exports.ɵq.prototype.parentInteractionContext;
1435
1435
  /** @type {?} */
1436
- exports.ɵp.prototype.initialActivity;
1436
+ exports.ɵq.prototype.initialActivity;
1437
1437
  /** @type {?} */
1438
- exports.ɵp.prototype.tabs;
1438
+ exports.ɵq.prototype.tabs;
1439
1439
  /** @type {?} */
1440
- exports.ɵp.prototype.activityTabs;
1440
+ exports.ɵq.prototype.activityTabs;
1441
1441
  /**
1442
1442
  * @type {?}
1443
1443
  * @private
1444
1444
  */
1445
- exports.ɵp.prototype.obsoleteTabs;
1445
+ exports.ɵq.prototype.obsoleteTabs;
1446
1446
  }
1447
1447
  (function (ActivityContainerComponent) {
1448
1448
  /**
@@ -1461,7 +1461,7 @@
1461
1461
  /** @type {?} */
1462
1462
  ActivityContext.prototype.onCancel;
1463
1463
  }
1464
- })(exports.ɵp || (exports.ɵp = {}));
1464
+ })(exports.ɵq || (exports.ɵq = {}));
1465
1465
 
1466
1466
  /**
1467
1467
  * @fileoverview added by tsickle
@@ -1470,7 +1470,7 @@
1470
1470
  /**
1471
1471
  * @template D, R, E
1472
1472
  */
1473
- exports.ɵw = /** @class */ (function () {
1473
+ exports.ɵx = /** @class */ (function () {
1474
1474
  function ActivityOutletComponent(componentFactoryResolver, viewContainerRef, injector) {
1475
1475
  this.componentFactoryResolver = componentFactoryResolver;
1476
1476
  this.viewContainerRef = viewContainerRef;
@@ -1581,27 +1581,27 @@
1581
1581
  }());
1582
1582
  if (false) {
1583
1583
  /** @type {?} */
1584
- exports.ɵw.prototype.interactionContext;
1584
+ exports.ɵx.prototype.interactionContext;
1585
1585
  /**
1586
1586
  * @type {?}
1587
1587
  * @private
1588
1588
  */
1589
- exports.ɵw.prototype.activityComponent;
1589
+ exports.ɵx.prototype.activityComponent;
1590
1590
  /**
1591
1591
  * @type {?}
1592
1592
  * @private
1593
1593
  */
1594
- exports.ɵw.prototype.componentFactoryResolver;
1594
+ exports.ɵx.prototype.componentFactoryResolver;
1595
1595
  /**
1596
1596
  * @type {?}
1597
1597
  * @private
1598
1598
  */
1599
- exports.ɵw.prototype.viewContainerRef;
1599
+ exports.ɵx.prototype.viewContainerRef;
1600
1600
  /**
1601
1601
  * @type {?}
1602
1602
  * @private
1603
1603
  */
1604
- exports.ɵw.prototype.injector;
1604
+ exports.ɵx.prototype.injector;
1605
1605
  /* Skipping unhandled member: ;*/
1606
1606
  }
1607
1607
  (function (ActivityOutletComponent) {
@@ -1662,7 +1662,7 @@
1662
1662
  */
1663
1663
  OutletInteractionContext.prototype.context;
1664
1664
  }
1665
- })(exports.ɵw || (exports.ɵw = {}));
1665
+ })(exports.ɵx || (exports.ɵx = {}));
1666
1666
 
1667
1667
  /**
1668
1668
  * @fileoverview added by tsickle
@@ -1718,7 +1718,7 @@
1718
1718
  autoFocus: false
1719
1719
  };
1720
1720
  /** @type {?} */
1721
- var matDialogRef = (/** @type {?} */ (this.dialogService.open(exports.ɵp, config)));
1721
+ var matDialogRef = (/** @type {?} */ (this.dialogService.open(exports.ɵq, config)));
1722
1722
  return new Promise((/**
1723
1723
  * @param {?} resolve
1724
1724
  * @param {?} reject
@@ -1810,13 +1810,13 @@
1810
1810
  portal.PortalModule
1811
1811
  ],
1812
1812
  declarations: [
1813
- exports.ɵp,
1813
+ exports.ɵq,
1814
1814
  ConfirmationDialogComponent,
1815
1815
  AlertDialogComponent,
1816
- exports.ɵw
1816
+ exports.ɵx
1817
1817
  ],
1818
1818
  entryComponents: [
1819
- exports.ɵp,
1819
+ exports.ɵq,
1820
1820
  ConfirmationDialogComponent,
1821
1821
  AlertDialogComponent
1822
1822
  ],
@@ -2004,6 +2004,40 @@
2004
2004
  PlaceService.prototype._activePlaces;
2005
2005
  }
2006
2006
 
2007
+ /**
2008
+ * @fileoverview added by tsickle
2009
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2010
+ */
2011
+ /** @type {?} */
2012
+ var left = [
2013
+ animations$1.query(':enter, :leave', animations$1.style({ position: 'fixed', width: '100%' }), { optional: true }),
2014
+ animations$1.group([
2015
+ animations$1.query(':enter', [animations$1.style({ transform: 'translateX(-100%)' }), animations$1.animate('.3s ease-out', animations$1.style({ transform: 'translateX(0%)' }))], {
2016
+ optional: true,
2017
+ }),
2018
+ animations$1.query(':leave', [animations$1.style({ transform: 'translateX(0%)' }), animations$1.animate('.3s ease-out', animations$1.style({ transform: 'translateX(100%)' }))], {
2019
+ optional: true,
2020
+ }),
2021
+ ]),
2022
+ ];
2023
+ /** @type {?} */
2024
+ var right = [
2025
+ animations$1.query(':enter, :leave', animations$1.style({ position: 'fixed', width: '100%' }), { optional: true }),
2026
+ animations$1.group([
2027
+ animations$1.query(':enter', [animations$1.style({ transform: 'translateX(100%)' }), animations$1.animate('.3s ease-out', animations$1.style({ transform: 'translateX(0%)' }))], {
2028
+ optional: true,
2029
+ }),
2030
+ animations$1.query(':leave', [animations$1.style({ transform: 'translateX(0%)' }), animations$1.animate('.3s ease-out', animations$1.style({ transform: 'translateX(-100%)' }))], {
2031
+ optional: true,
2032
+ }),
2033
+ ]),
2034
+ ];
2035
+ /** @type {?} */
2036
+ var LEFT_RIGHT_PLACE_ANIMATION = animations$1.trigger('routeAnimations', [
2037
+ animations$1.transition(':increment', right),
2038
+ animations$1.transition(':decrement', left),
2039
+ ]);
2040
+
2007
2041
  /**
2008
2042
  * @fileoverview added by tsickle
2009
2043
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
@@ -2011,6 +2045,7 @@
2011
2045
  var PlaceOutletComponent = /** @class */ (function () {
2012
2046
  function PlaceOutletComponent(placeService) {
2013
2047
  this.placeService = placeService;
2048
+ this.animate = true;
2014
2049
  }
2015
2050
  /**
2016
2051
  * @return {?}
@@ -2042,20 +2077,37 @@
2042
2077
  function ($event) {
2043
2078
  this.placeService.onDeactivate($event);
2044
2079
  };
2080
+ /**
2081
+ * @param {?} outlet
2082
+ * @return {?}
2083
+ */
2084
+ PlaceOutletComponent.prototype.getPlaceOrder = /**
2085
+ * @param {?} outlet
2086
+ * @return {?}
2087
+ */
2088
+ function (outlet) {
2089
+ return this.animate && outlet && outlet.activatedRouteData && outlet.activatedRouteData['placeOrder'];
2090
+ };
2045
2091
  PlaceOutletComponent.decorators = [
2046
2092
  { type: core.Component, args: [{
2047
2093
  selector: 'angular-ui-powerups-place-outlet',
2048
- template: "<router-outlet (activate)=\"onActivate($event)\" (deactivate)=\"onDeactivate($event)\"></router-outlet>\n",
2049
- styles: [":host{grid-area:main;display:-ms-grid;display:grid;-ms-grid-rows:0 1fr;grid-template-rows:0 1fr;min-height:0}"]
2094
+ 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",
2095
+ animations: [LEFT_RIGHT_PLACE_ANIMATION],
2096
+ styles: [":host{display:block}.container{grid-area:main;display:-ms-grid;display:grid;-ms-grid-rows:0 1fr;grid-template-rows:0 1fr;min-height:0}"]
2050
2097
  }] }
2051
2098
  ];
2052
2099
  /** @nocollapse */
2053
2100
  PlaceOutletComponent.ctorParameters = function () { return [
2054
2101
  { type: PlaceService }
2055
2102
  ]; };
2103
+ PlaceOutletComponent.propDecorators = {
2104
+ animate: [{ type: core.Input }]
2105
+ };
2056
2106
  return PlaceOutletComponent;
2057
2107
  }());
2058
2108
  if (false) {
2109
+ /** @type {?} */
2110
+ PlaceOutletComponent.prototype.animate;
2059
2111
  /**
2060
2112
  * @type {?}
2061
2113
  * @private
@@ -2540,6 +2592,8 @@
2540
2592
  Options.prototype.path;
2541
2593
  /** @type {?} */
2542
2594
  Options.prototype.title;
2595
+ /** @type {?} */
2596
+ Options.prototype.order;
2543
2597
  /** @type {?|undefined} */
2544
2598
  Options.prototype.authenticate;
2545
2599
  }
@@ -2548,6 +2602,7 @@
2548
2602
  pectin.assert.notNil(options);
2549
2603
  this.path = options.path;
2550
2604
  this.title = options.title;
2605
+ this.order = options.order;
2551
2606
  this.authenticate = lodash.isNil(options.authenticate) || options.authenticate;
2552
2607
  }
2553
2608
  return Descriptor;
@@ -2560,6 +2615,8 @@
2560
2615
  Descriptor.prototype.authenticate;
2561
2616
  /** @type {?} */
2562
2617
  Descriptor.prototype.title;
2618
+ /** @type {?} */
2619
+ Descriptor.prototype.order;
2563
2620
  }
2564
2621
  /**
2565
2622
  * @param {?} klass
@@ -3786,8 +3843,8 @@
3786
3843
  exports.AbstractActivity = AbstractActivity;
3787
3844
  exports.AbstractInputComponent = AbstractInputComponent;
3788
3845
  exports.AbstractPlaceComponent = AbstractPlaceComponent;
3789
- exports.ActivityContainerComponent = exports.ɵp;
3790
- exports.ActivityOutletComponent = exports.ɵw;
3846
+ exports.ActivityContainerComponent = exports.ɵq;
3847
+ exports.ActivityOutletComponent = exports.ɵx;
3791
3848
  exports.AlertDialogComponent = AlertDialogComponent;
3792
3849
  exports.AngularUiPowerupsModule = AngularUiPowerupsModule;
3793
3850
  exports.BusyOverlayComponent = BusyOverlayComponent;
@@ -3801,6 +3858,7 @@
3801
3858
  exports.INTERACTION_CONTEXT = INTERACTION_CONTEXT;
3802
3859
  exports.InteractionContext = InteractionContext;
3803
3860
  exports.InteractionModule = InteractionModule;
3861
+ exports.LEFT_RIGHT_PLACE_ANIMATION = LEFT_RIGHT_PLACE_ANIMATION;
3804
3862
  exports.LeavePlaceGuard = LeavePlaceGuard;
3805
3863
  exports.NavComponent = NavComponent;
3806
3864
  exports.NumberInputComponent = NumberInputComponent;
@@ -3833,15 +3891,16 @@
3833
3891
  exports.ɵj = EmptyStateComponent;
3834
3892
  exports.ɵk = BusyOverlayComponent;
3835
3893
  exports.ɵl = PlaceOutletComponent;
3836
- exports.ɵm = PlaceService;
3837
- exports.ɵn = NavComponent;
3838
- exports.ɵo = InteractionModule;
3839
- exports.ɵq = ConfirmationDialogComponent;
3840
- exports.ɵr = AbstractActivity;
3841
- exports.ɵs = ACTIVITY_DATA;
3842
- exports.ɵu = AlertDialogComponent;
3843
- exports.ɵx = DialogInteractionService;
3844
- exports.ɵy = InteractionContext;
3894
+ exports.ɵm = LEFT_RIGHT_PLACE_ANIMATION;
3895
+ exports.ɵn = PlaceService;
3896
+ exports.ɵo = NavComponent;
3897
+ exports.ɵp = InteractionModule;
3898
+ exports.ɵr = ConfirmationDialogComponent;
3899
+ exports.ɵs = AbstractActivity;
3900
+ exports.ɵt = ACTIVITY_DATA;
3901
+ exports.ɵv = AlertDialogComponent;
3902
+ exports.ɵy = DialogInteractionService;
3903
+ exports.ɵz = InteractionContext;
3845
3904
 
3846
3905
  Object.defineProperty(exports, '__esModule', { value: true });
3847
3906