@coolon/angular-ui-powerups 0.0.48 → 0.0.49

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.
@@ -5,7 +5,7 @@ import { MatDialog, MatButtonModule, MatDialogModule, MatTabsModule, MatProgress
5
5
  import { MatTabsModule as MatTabsModule$1 } from '@angular/material/tabs';
6
6
  import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
7
7
  import { __decorate, __metadata, __awaiter } from 'tslib';
8
- import { GarbageCollector, DelegatingFormValueModel, UseDelegate, ValueModel, ListModel, StoreInListModel, assert, UnaryCommand, lang, Dsl, Logger, EventListenerList, DelegatingValueModel, MutableListModel, StoreInValueModel, Binding, Guard, MutableValueModel, OptionsHelper, ValueHolder } from '@coolon/pectin';
8
+ import { GarbageCollector, DelegatingFormValueModel, UseDelegate, ValueModel, ListModel, StoreInListModel, assert, UnaryCommand, lang, Dsl, Logger, EventListenerList, DelegatingValueModel, MutableListModel, StoreInValueModel, Binding, MutableValueModel, Guard, OptionsHelper, ValueHolder } from '@coolon/pectin';
9
9
  import { PortalModule } from '@angular/cdk/portal';
10
10
  import { Deferred } from '@coolon/pectin/lib/promise/deferred.class';
11
11
  import { assert as assert$1, Klass, Opts } from '@coolon/typescript-utilities';
@@ -2738,6 +2738,7 @@ class PlaceOutletComponent extends DisposableComponent {
2738
2738
  this.router = router;
2739
2739
  this.placeHistory = placeHistory;
2740
2740
  this.animate = true;
2741
+ this._activePlace = new MutableValueModel();
2741
2742
  this._incomingRouteChange = new Guard();
2742
2743
  this._inOutletUpdate = new Guard();
2743
2744
  this._activatedRouteModel = new MutableValueModel();
@@ -2789,6 +2790,11 @@ class PlaceOutletComponent extends DisposableComponent {
2789
2790
  // txo.observe('urls', urls);
2790
2791
  // txo.observe('this._resolvedParameters', this._resolvedParameters);
2791
2792
  }
2793
+ /**
2794
+ * @return {?}
2795
+ */
2796
+ ngOnInit() {
2797
+ }
2792
2798
  /**
2793
2799
  * @return {?}
2794
2800
  */
@@ -2798,7 +2804,8 @@ class PlaceOutletComponent extends DisposableComponent {
2798
2804
  /**
2799
2805
  * @return {?}
2800
2806
  */
2801
- ngOnInit() {
2807
+ get activePlace() {
2808
+ return this._activePlace.readonly;
2802
2809
  }
2803
2810
  /**
2804
2811
  * @param {?} routerOutlet
@@ -2811,7 +2818,7 @@ class PlaceOutletComponent extends DisposableComponent {
2811
2818
  */
2812
2819
  () => {
2813
2820
  try {
2814
- this._currentPlace = place;
2821
+ this._activePlace.value = place;
2815
2822
  this._activatedRouteModel.value = routerOutlet.activatedRoute;
2816
2823
  this._placeDefinition.value = place.placeDefinition;
2817
2824
  place.initialiseBindings(this._resolvedParameters);
@@ -2835,7 +2842,7 @@ class PlaceOutletComponent extends DisposableComponent {
2835
2842
  * @return {?}
2836
2843
  */
2837
2844
  () => {
2838
- this._currentPlace = null;
2845
+ this._activePlace.value = null;
2839
2846
  this._activatedRouteModel.value = null;
2840
2847
  this._placeDefinition.value = null;
2841
2848
  }));
@@ -2851,8 +2858,8 @@ class PlaceOutletComponent extends DisposableComponent {
2851
2858
  * @return {?}
2852
2859
  */
2853
2860
  animationDone() {
2854
- if (this._currentPlace) {
2855
- this._currentPlace.onPlaceReady();
2861
+ if (this._activePlace.value) {
2862
+ this._activePlace.value.onPlaceReady();
2856
2863
  }
2857
2864
  }
2858
2865
  /**
@@ -2900,7 +2907,7 @@ if (false) {
2900
2907
  * @type {?}
2901
2908
  * @private
2902
2909
  */
2903
- PlaceOutletComponent.prototype._currentPlace;
2910
+ PlaceOutletComponent.prototype._activePlace;
2904
2911
  /**
2905
2912
  * @type {?}
2906
2913
  * @private