@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 { __extends, __decorate, __metadata, __assign, __awaiter, __generator, __values } 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';
@@ -3327,6 +3327,7 @@ var PlaceOutletComponent = /** @class */ (function (_super) {
3327
3327
  _this.router = router;
3328
3328
  _this.placeHistory = placeHistory;
3329
3329
  _this.animate = true;
3330
+ _this._activePlace = new MutableValueModel();
3330
3331
  _this._incomingRouteChange = new Guard();
3331
3332
  _this._inOutletUpdate = new Guard();
3332
3333
  _this._activatedRouteModel = new MutableValueModel();
@@ -3379,6 +3380,14 @@ var PlaceOutletComponent = /** @class */ (function (_super) {
3379
3380
  // txo.observe('urls', urls);
3380
3381
  // txo.observe('this._resolvedParameters', this._resolvedParameters);
3381
3382
  }
3383
+ /**
3384
+ * @return {?}
3385
+ */
3386
+ PlaceOutletComponent.prototype.ngOnInit = /**
3387
+ * @return {?}
3388
+ */
3389
+ function () {
3390
+ };
3382
3391
  Object.defineProperty(PlaceOutletComponent.prototype, "incomingRouteChange", {
3383
3392
  get: /**
3384
3393
  * @return {?}
@@ -3389,14 +3398,16 @@ var PlaceOutletComponent = /** @class */ (function (_super) {
3389
3398
  enumerable: true,
3390
3399
  configurable: true
3391
3400
  });
3392
- /**
3393
- * @return {?}
3394
- */
3395
- PlaceOutletComponent.prototype.ngOnInit = /**
3396
- * @return {?}
3397
- */
3398
- function () {
3399
- };
3401
+ Object.defineProperty(PlaceOutletComponent.prototype, "activePlace", {
3402
+ get: /**
3403
+ * @return {?}
3404
+ */
3405
+ function () {
3406
+ return this._activePlace.readonly;
3407
+ },
3408
+ enumerable: true,
3409
+ configurable: true
3410
+ });
3400
3411
  /**
3401
3412
  * @param {?} routerOutlet
3402
3413
  * @param {?} place
@@ -3414,7 +3425,7 @@ var PlaceOutletComponent = /** @class */ (function (_super) {
3414
3425
  */
3415
3426
  function () {
3416
3427
  try {
3417
- _this._currentPlace = place;
3428
+ _this._activePlace.value = place;
3418
3429
  _this._activatedRouteModel.value = routerOutlet.activatedRoute;
3419
3430
  _this._placeDefinition.value = place.placeDefinition;
3420
3431
  place.initialiseBindings(_this._resolvedParameters);
@@ -3444,7 +3455,7 @@ var PlaceOutletComponent = /** @class */ (function (_super) {
3444
3455
  * @return {?}
3445
3456
  */
3446
3457
  function () {
3447
- _this._currentPlace = null;
3458
+ _this._activePlace.value = null;
3448
3459
  _this._activatedRouteModel.value = null;
3449
3460
  _this._placeDefinition.value = null;
3450
3461
  }));
@@ -3467,8 +3478,8 @@ var PlaceOutletComponent = /** @class */ (function (_super) {
3467
3478
  * @return {?}
3468
3479
  */
3469
3480
  function () {
3470
- if (this._currentPlace) {
3471
- this._currentPlace.onPlaceReady();
3481
+ if (this._activePlace.value) {
3482
+ this._activePlace.value.onPlaceReady();
3472
3483
  }
3473
3484
  };
3474
3485
  /**
@@ -3527,7 +3538,7 @@ if (false) {
3527
3538
  * @type {?}
3528
3539
  * @private
3529
3540
  */
3530
- PlaceOutletComponent.prototype._currentPlace;
3541
+ PlaceOutletComponent.prototype._activePlace;
3531
3542
  /**
3532
3543
  * @type {?}
3533
3544
  * @private