@coolon/angular-ui-powerups 0.0.81 → 0.0.83
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 +21 -29
- 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/interaction/components/alert-dialog/alert-dialog.component.js +3 -3
- package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js +3 -3
- package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js +3 -3
- package/esm2015/lib/place/components/place-outlet/place-outlet.component.js +17 -23
- package/esm5/lib/interaction/components/alert-dialog/alert-dialog.component.js +3 -3
- package/esm5/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js +3 -3
- package/esm5/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js +3 -3
- package/esm5/lib/place/components/place-outlet/place-outlet.component.js +17 -25
- package/fesm2015/coolon-angular-ui-powerups.js +21 -27
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +21 -29
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/place/components/place-outlet/place-outlet.component.d.ts +2 -10
- package/package.json +1 -1
|
@@ -1043,8 +1043,8 @@ class AlertDialogComponent extends AbstractActivity {
|
|
|
1043
1043
|
AlertDialogComponent.decorators = [
|
|
1044
1044
|
{ type: Component, args: [{
|
|
1045
1045
|
selector: 'aup-alert-dialog',
|
|
1046
|
-
template: "<h3 matDialogTitle *ngIf=\"alert.title\">{{alert.title()}}</h3>\n<div matDialogContent>\n <p *ngFor=\"let line of alert.content()\">{{line}}</p>\n</div>\n<
|
|
1047
|
-
styles: [":host{display:block;padding:var(--aup-default-padding)}.mat-dialog-actions{justify-content:flex-end}"]
|
|
1046
|
+
template: "<h3 matDialogTitle *ngIf=\"alert.title\">{{alert.title()}}</h3>\n<div matDialogContent>\n <p *ngFor=\"let line of alert.content()\">{{line}}</p>\n</div>\n<div matDialogActions>\n <button mat-raised-button color=\"primary\" (click)=\"done()\" data-cy=\"close-button\">{{alert.ok()}}</button>\n</div>\n",
|
|
1047
|
+
styles: [":host{display:block;padding:var(--aup-default-padding)}.mat-dialog-content{margin:0;padding:0}.mat-dialog-actions{justify-content:flex-end}"]
|
|
1048
1048
|
}] }
|
|
1049
1049
|
];
|
|
1050
1050
|
/** @nocollapse */
|
|
@@ -1111,8 +1111,8 @@ class ConfirmThenDialogComponent extends AbstractActivity {
|
|
|
1111
1111
|
ConfirmThenDialogComponent.decorators = [
|
|
1112
1112
|
{ type: Component, args: [{
|
|
1113
1113
|
selector: 'aup-confirmation-dialog',
|
|
1114
|
-
template: "<h3 matDialogTitle *ngIf=\"confirm.title\">{{confirm.title()}}</h3>\n<div matDialogContent>\n <p *ngFor=\"let line of confirm.content()\">{{line}}</p>\n</div>\n<
|
|
1115
|
-
styles: [":host{display:block;padding:var(--aup-default-padding)}.mat-dialog-actions{justify-content:flex-end}"]
|
|
1114
|
+
template: "<h3 matDialogTitle *ngIf=\"confirm.title\">{{confirm.title()}}</h3>\n<div matDialogContent>\n <p *ngFor=\"let line of confirm.content()\">{{line}}</p>\n</div>\n<div matDialogActions>\n <button mat-button (click)=\"cancel()\" data-cy=\"cancel-button\">{{confirm.cancel()}}</button>\n <button mat-raised-button [color]=\"isDestructive() ? 'warn' : 'primary'\"\n (click)=\"onConfirm()\" data-cy=\"confirm-button\">{{confirm.ok()}}</button>\n</div>\n\n",
|
|
1115
|
+
styles: [":host{display:block;padding:var(--aup-default-padding)}.mat-dialog-content{margin:0;padding:0}.mat-dialog-actions{justify-content:flex-end}"]
|
|
1116
1116
|
}] }
|
|
1117
1117
|
];
|
|
1118
1118
|
/** @nocollapse */
|
|
@@ -1171,8 +1171,8 @@ class ConfirmationDialogComponent extends AbstractActivity {
|
|
|
1171
1171
|
ConfirmationDialogComponent.decorators = [
|
|
1172
1172
|
{ type: Component, args: [{
|
|
1173
1173
|
selector: 'aup-confirmation-dialog',
|
|
1174
|
-
template: "<h3 matDialogTitle *ngIf=\"confirm.title\">{{confirm.title()}}</h3>\n<div matDialogContent>\n <p *ngFor=\"let line of confirm.content()\">{{line}}</p>\n</div>\n<
|
|
1175
|
-
styles: [":host{display:block;padding:var(--aup-default-padding)}.mat-dialog-actions{justify-content:flex-end}"]
|
|
1174
|
+
template: "<h3 matDialogTitle *ngIf=\"confirm.title\">{{confirm.title()}}</h3>\n<div matDialogContent>\n <p *ngFor=\"let line of confirm.content()\">{{line}}</p>\n</div>\n<div matDialogActions>\n <button mat-button (click)=\"cancel()\" data-cy=\"cancel-button\">{{confirm.cancel()}}</button>\n <button mat-raised-button [color]=\"isDestructive() ? 'warn' : 'primary'\"\n (click)=\"done()\" data-cy=\"confirm-button\">{{confirm.ok()}}</button>\n</div>\n\n",
|
|
1175
|
+
styles: [":host{display:block;padding:var(--aup-default-padding)}.mat-dialog-content{margin:0;padding:0}.mat-dialog-actions{justify-content:flex-end}"]
|
|
1176
1176
|
}] }
|
|
1177
1177
|
];
|
|
1178
1178
|
/** @nocollapse */
|
|
@@ -3435,13 +3435,14 @@ class PlaceOutletComponent extends DisposableComponent {
|
|
|
3435
3435
|
this.animate = true;
|
|
3436
3436
|
this.placeChanged = new EventEmitter();
|
|
3437
3437
|
this._activePlace = new MutableValueModel();
|
|
3438
|
-
this.
|
|
3438
|
+
this._activePlaceVisitModel = new DelegatingValueModel();
|
|
3439
3439
|
this._inOutletUpdate = new Guard$1();
|
|
3440
3440
|
this._activatedRouteModel = new MutableValueModel();
|
|
3441
3441
|
this._placeDefinition = new MutableValueModel();
|
|
3442
3442
|
this.isOnInitialPlace = true;
|
|
3443
3443
|
const { chain, valueOf, before, when, after, observe, switchOn } = Dsl.disposeWith(this);
|
|
3444
3444
|
this.parentOutletModel = new MutableValueModel(parentOutlet);
|
|
3445
|
+
this._activePlaceVisitModel.setDelegate(new MutableValueModel());
|
|
3445
3446
|
/** @type {?} */
|
|
3446
3447
|
const defaultPlaceAnimationOrder = chain(this.parentOutletModel)
|
|
3447
3448
|
.pullValueModel((/**
|
|
@@ -3481,17 +3482,18 @@ class PlaceOutletComponent extends DisposableComponent {
|
|
|
3481
3482
|
* @return {?}
|
|
3482
3483
|
*/
|
|
3483
3484
|
(visit) => {
|
|
3485
|
+
console.log("### Route visit changed");
|
|
3484
3486
|
if (visit) { // can be null while the place and index sync up
|
|
3485
3487
|
inRouteVisitUpdate.whileTrue((/**
|
|
3486
3488
|
* @return {?}
|
|
3487
3489
|
*/
|
|
3488
3490
|
() => {
|
|
3489
|
-
this.
|
|
3491
|
+
this._activePlaceVisitModel.value = visit;
|
|
3490
3492
|
}));
|
|
3491
3493
|
}
|
|
3492
3494
|
}));
|
|
3493
3495
|
// Handle component based changes
|
|
3494
|
-
when.valueOf(this.
|
|
3496
|
+
when.valueOf(this._activePlaceVisitModel).changes((/**
|
|
3495
3497
|
* @param {?} next
|
|
3496
3498
|
* @param {?} previous
|
|
3497
3499
|
* @return {?}
|
|
@@ -3499,7 +3501,7 @@ class PlaceOutletComponent extends DisposableComponent {
|
|
|
3499
3501
|
(next, previous) => {
|
|
3500
3502
|
this.pushVisitChangesToRoute(next, previous);
|
|
3501
3503
|
}), {
|
|
3502
|
-
unless: inRouteVisitUpdate
|
|
3504
|
+
unless: valueOf.any(this._inOutletUpdate, inRouteVisitUpdate).areTruthy()
|
|
3503
3505
|
});
|
|
3504
3506
|
chain(this._activePlace)
|
|
3505
3507
|
.postponeWhile(placeRouter.navigationSessionActive)
|
|
@@ -3574,7 +3576,10 @@ class PlaceOutletComponent extends DisposableComponent {
|
|
|
3574
3576
|
this._activePlace.value = place;
|
|
3575
3577
|
this._activatedRouteModel.value = routerOutlet.activatedRoute;
|
|
3576
3578
|
this._placeDefinition.value = place.placeDefinition;
|
|
3577
|
-
|
|
3579
|
+
/** @type {?} */
|
|
3580
|
+
const visitModel = new MutableValueModel();
|
|
3581
|
+
this._activePlaceVisitModel.setDelegate(visitModel);
|
|
3582
|
+
place.initialiseBindings(visitModel);
|
|
3578
3583
|
}
|
|
3579
3584
|
catch (error) {
|
|
3580
3585
|
console.error(error);
|
|
@@ -3586,16 +3591,14 @@ class PlaceOutletComponent extends DisposableComponent {
|
|
|
3586
3591
|
}
|
|
3587
3592
|
}
|
|
3588
3593
|
/**
|
|
3589
|
-
* @param {?} routerOutlet
|
|
3590
|
-
* @param {?} $event
|
|
3591
3594
|
* @return {?}
|
|
3592
3595
|
*/
|
|
3593
|
-
onOutletDeactivated(
|
|
3596
|
+
onOutletDeactivated() {
|
|
3594
3597
|
this._inOutletUpdate.whileTrue((/**
|
|
3595
3598
|
* @return {?}
|
|
3596
3599
|
*/
|
|
3597
3600
|
() => {
|
|
3598
|
-
this.
|
|
3601
|
+
this._activePlaceVisitModel.setDelegate(null);
|
|
3599
3602
|
this.isOnInitialPlace = false;
|
|
3600
3603
|
this._activePlace.value = null;
|
|
3601
3604
|
this._activatedRouteModel.value = null;
|
|
@@ -3612,10 +3615,6 @@ class PlaceOutletComponent extends DisposableComponent {
|
|
|
3612
3615
|
* @return {?}
|
|
3613
3616
|
*/
|
|
3614
3617
|
animationDone() {
|
|
3615
|
-
console.log({ activePlace: this._activePlace.value });
|
|
3616
|
-
if (this._previousPlace) {
|
|
3617
|
-
this._previousPlace.onPlaceDestroyed();
|
|
3618
|
-
}
|
|
3619
3618
|
if (this._activePlace.value) {
|
|
3620
3619
|
this._activePlace.value.onPlaceReady();
|
|
3621
3620
|
}
|
|
@@ -3624,7 +3623,7 @@ class PlaceOutletComponent extends DisposableComponent {
|
|
|
3624
3623
|
PlaceOutletComponent.decorators = [
|
|
3625
3624
|
{ type: Component, args: [{
|
|
3626
3625
|
selector: 'aup-place-outlet',
|
|
3627
|
-
template: "<div class=\"router-outlet-container\"\n [@routeAnimations]=\"{value: placeAnimationOrder.value, params:{duration: animationDuration}}\"\n (@routeAnimations.start)=\"animationStarted()\"\n (@routeAnimations.done)=\"animationDone()\"\n>\n <router-outlet #routerOutlet=\"outlet\"\n (activate)=\"onOutletActivated(routerOutlet, $event)\"\n (deactivate)=\"onOutletDeactivated(
|
|
3626
|
+
template: "<div class=\"router-outlet-container\"\n [@routeAnimations]=\"{value: placeAnimationOrder.value, params:{duration: animationDuration}}\"\n (@routeAnimations.start)=\"animationStarted()\"\n (@routeAnimations.done)=\"animationDone()\"\n>\n <router-outlet #routerOutlet=\"outlet\"\n (activate)=\"onOutletActivated(routerOutlet, $event)\"\n (deactivate)=\"onOutletDeactivated()\">\n </router-outlet>\n</div>\n\n",
|
|
3628
3627
|
animations: [LEFT_RIGHT_PLACE_ANIMATION],
|
|
3629
3628
|
styles: [":host{display:flex;flex-direction:column;min-height:0;overflow-x:hidden}.router-outlet-container{flex:1;display:block;position:relative;min-height:0}router-outlet{display:none}"]
|
|
3630
3629
|
}] }
|
|
@@ -3666,7 +3665,7 @@ __decorate([
|
|
|
3666
3665
|
__decorate([
|
|
3667
3666
|
Trace(),
|
|
3668
3667
|
__metadata("design:type", Function),
|
|
3669
|
-
__metadata("design:paramtypes", [
|
|
3668
|
+
__metadata("design:paramtypes", []),
|
|
3670
3669
|
__metadata("design:returntype", void 0)
|
|
3671
3670
|
], PlaceOutletComponent.prototype, "onOutletDeactivated", null);
|
|
3672
3671
|
__decorate([
|
|
@@ -3701,7 +3700,7 @@ if (false) {
|
|
|
3701
3700
|
* @type {?}
|
|
3702
3701
|
* @private
|
|
3703
3702
|
*/
|
|
3704
|
-
PlaceOutletComponent.prototype.
|
|
3703
|
+
PlaceOutletComponent.prototype._activePlaceVisitModel;
|
|
3705
3704
|
/**
|
|
3706
3705
|
* @type {?}
|
|
3707
3706
|
* @private
|
|
@@ -3729,11 +3728,6 @@ if (false) {
|
|
|
3729
3728
|
* @private
|
|
3730
3729
|
*/
|
|
3731
3730
|
PlaceOutletComponent.prototype.isOnInitialPlace;
|
|
3732
|
-
/**
|
|
3733
|
-
* @type {?}
|
|
3734
|
-
* @private
|
|
3735
|
-
*/
|
|
3736
|
-
PlaceOutletComponent.prototype._previousPlace;
|
|
3737
3731
|
/**
|
|
3738
3732
|
* @type {?}
|
|
3739
3733
|
* @private
|