@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.
- package/bundles/coolon-angular-ui-powerups.umd.js +24 -13
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/lib/place/components/place-outlet/place-outlet.component.js +14 -7
- package/esm5/lib/place/components/place-outlet/place-outlet.component.js +25 -14
- package/fesm2015/coolon-angular-ui-powerups.js +14 -7
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +25 -14
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/place/components/place-outlet/place-outlet.component.d.ts +5 -3
- package/package.json +1 -1
|
@@ -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,
|
|
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
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
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.
|
|
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.
|
|
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.
|
|
3471
|
-
this.
|
|
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.
|
|
3541
|
+
PlaceOutletComponent.prototype._activePlace;
|
|
3531
3542
|
/**
|
|
3532
3543
|
* @type {?}
|
|
3533
3544
|
* @private
|