@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
|
@@ -1447,8 +1447,8 @@
|
|
|
1447
1447
|
AlertDialogComponent.decorators = [
|
|
1448
1448
|
{ type: core.Component, args: [{
|
|
1449
1449
|
selector: 'aup-alert-dialog',
|
|
1450
|
-
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<
|
|
1451
|
-
styles: [":host{display:block;padding:var(--aup-default-padding)}.mat-dialog-actions{justify-content:flex-end}"]
|
|
1450
|
+
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",
|
|
1451
|
+
styles: [":host{display:block;padding:var(--aup-default-padding)}.mat-dialog-content{margin:0;padding:0}.mat-dialog-actions{justify-content:flex-end}"]
|
|
1452
1452
|
}] }
|
|
1453
1453
|
];
|
|
1454
1454
|
/** @nocollapse */
|
|
@@ -1528,8 +1528,8 @@
|
|
|
1528
1528
|
ConfirmThenDialogComponent.decorators = [
|
|
1529
1529
|
{ type: core.Component, args: [{
|
|
1530
1530
|
selector: 'aup-confirmation-dialog',
|
|
1531
|
-
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<
|
|
1532
|
-
styles: [":host{display:block;padding:var(--aup-default-padding)}.mat-dialog-actions{justify-content:flex-end}"]
|
|
1531
|
+
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",
|
|
1532
|
+
styles: [":host{display:block;padding:var(--aup-default-padding)}.mat-dialog-content{margin:0;padding:0}.mat-dialog-actions{justify-content:flex-end}"]
|
|
1533
1533
|
}] }
|
|
1534
1534
|
];
|
|
1535
1535
|
/** @nocollapse */
|
|
@@ -1594,8 +1594,8 @@
|
|
|
1594
1594
|
ConfirmationDialogComponent.decorators = [
|
|
1595
1595
|
{ type: core.Component, args: [{
|
|
1596
1596
|
selector: 'aup-confirmation-dialog',
|
|
1597
|
-
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<
|
|
1598
|
-
styles: [":host{display:block;padding:var(--aup-default-padding)}.mat-dialog-actions{justify-content:flex-end}"]
|
|
1597
|
+
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",
|
|
1598
|
+
styles: [":host{display:block;padding:var(--aup-default-padding)}.mat-dialog-content{margin:0;padding:0}.mat-dialog-actions{justify-content:flex-end}"]
|
|
1599
1599
|
}] }
|
|
1600
1600
|
];
|
|
1601
1601
|
/** @nocollapse */
|
|
@@ -4463,13 +4463,14 @@
|
|
|
4463
4463
|
_this.animate = true;
|
|
4464
4464
|
_this.placeChanged = new core.EventEmitter();
|
|
4465
4465
|
_this._activePlace = new pectin.MutableValueModel();
|
|
4466
|
-
_this.
|
|
4466
|
+
_this._activePlaceVisitModel = new pectin.DelegatingValueModel();
|
|
4467
4467
|
_this._inOutletUpdate = new pectin.Guard();
|
|
4468
4468
|
_this._activatedRouteModel = new pectin.MutableValueModel();
|
|
4469
4469
|
_this._placeDefinition = new pectin.MutableValueModel();
|
|
4470
4470
|
_this.isOnInitialPlace = true;
|
|
4471
4471
|
var _a = pectin.Dsl.disposeWith(_this), chain = _a.chain, valueOf = _a.valueOf, before = _a.before, when = _a.when, after = _a.after, observe = _a.observe, switchOn = _a.switchOn;
|
|
4472
4472
|
_this.parentOutletModel = new pectin.MutableValueModel(parentOutlet);
|
|
4473
|
+
_this._activePlaceVisitModel.setDelegate(new pectin.MutableValueModel());
|
|
4473
4474
|
/** @type {?} */
|
|
4474
4475
|
var defaultPlaceAnimationOrder = chain(_this.parentOutletModel)
|
|
4475
4476
|
.pullValueModel((/**
|
|
@@ -4509,17 +4510,18 @@
|
|
|
4509
4510
|
* @return {?}
|
|
4510
4511
|
*/
|
|
4511
4512
|
function (visit) {
|
|
4513
|
+
console.log("### Route visit changed");
|
|
4512
4514
|
if (visit) { // can be null while the place and index sync up
|
|
4513
4515
|
inRouteVisitUpdate.whileTrue((/**
|
|
4514
4516
|
* @return {?}
|
|
4515
4517
|
*/
|
|
4516
4518
|
function () {
|
|
4517
|
-
_this.
|
|
4519
|
+
_this._activePlaceVisitModel.value = visit;
|
|
4518
4520
|
}));
|
|
4519
4521
|
}
|
|
4520
4522
|
}));
|
|
4521
4523
|
// Handle component based changes
|
|
4522
|
-
when.valueOf(_this.
|
|
4524
|
+
when.valueOf(_this._activePlaceVisitModel).changes((/**
|
|
4523
4525
|
* @param {?} next
|
|
4524
4526
|
* @param {?} previous
|
|
4525
4527
|
* @return {?}
|
|
@@ -4527,7 +4529,7 @@
|
|
|
4527
4529
|
function (next, previous) {
|
|
4528
4530
|
_this.pushVisitChangesToRoute(next, previous);
|
|
4529
4531
|
}), {
|
|
4530
|
-
unless: inRouteVisitUpdate
|
|
4532
|
+
unless: valueOf.any(_this._inOutletUpdate, inRouteVisitUpdate).areTruthy()
|
|
4531
4533
|
});
|
|
4532
4534
|
chain(_this._activePlace)
|
|
4533
4535
|
.postponeWhile(placeRouter.navigationSessionActive)
|
|
@@ -4637,7 +4639,10 @@
|
|
|
4637
4639
|
_this._activePlace.value = place;
|
|
4638
4640
|
_this._activatedRouteModel.value = routerOutlet.activatedRoute;
|
|
4639
4641
|
_this._placeDefinition.value = place.placeDefinition;
|
|
4640
|
-
|
|
4642
|
+
/** @type {?} */
|
|
4643
|
+
var visitModel = new pectin.MutableValueModel();
|
|
4644
|
+
_this._activePlaceVisitModel.setDelegate(visitModel);
|
|
4645
|
+
place.initialiseBindings(visitModel);
|
|
4641
4646
|
}
|
|
4642
4647
|
catch (error) {
|
|
4643
4648
|
console.error(error);
|
|
@@ -4649,22 +4654,18 @@
|
|
|
4649
4654
|
}
|
|
4650
4655
|
};
|
|
4651
4656
|
/**
|
|
4652
|
-
* @param {?} routerOutlet
|
|
4653
|
-
* @param {?} $event
|
|
4654
4657
|
* @return {?}
|
|
4655
4658
|
*/
|
|
4656
4659
|
PlaceOutletComponent.prototype.onOutletDeactivated = /**
|
|
4657
|
-
* @param {?} routerOutlet
|
|
4658
|
-
* @param {?} $event
|
|
4659
4660
|
* @return {?}
|
|
4660
4661
|
*/
|
|
4661
|
-
function (
|
|
4662
|
+
function () {
|
|
4662
4663
|
var _this = this;
|
|
4663
4664
|
this._inOutletUpdate.whileTrue((/**
|
|
4664
4665
|
* @return {?}
|
|
4665
4666
|
*/
|
|
4666
4667
|
function () {
|
|
4667
|
-
_this.
|
|
4668
|
+
_this._activePlaceVisitModel.setDelegate(null);
|
|
4668
4669
|
_this.isOnInitialPlace = false;
|
|
4669
4670
|
_this._activePlace.value = null;
|
|
4670
4671
|
_this._activatedRouteModel.value = null;
|
|
@@ -4687,10 +4688,6 @@
|
|
|
4687
4688
|
* @return {?}
|
|
4688
4689
|
*/
|
|
4689
4690
|
function () {
|
|
4690
|
-
console.log({ activePlace: this._activePlace.value });
|
|
4691
|
-
if (this._previousPlace) {
|
|
4692
|
-
this._previousPlace.onPlaceDestroyed();
|
|
4693
|
-
}
|
|
4694
4691
|
if (this._activePlace.value) {
|
|
4695
4692
|
this._activePlace.value.onPlaceReady();
|
|
4696
4693
|
}
|
|
@@ -4698,7 +4695,7 @@
|
|
|
4698
4695
|
PlaceOutletComponent.decorators = [
|
|
4699
4696
|
{ type: core.Component, args: [{
|
|
4700
4697
|
selector: 'aup-place-outlet',
|
|
4701
|
-
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(
|
|
4698
|
+
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",
|
|
4702
4699
|
animations: [LEFT_RIGHT_PLACE_ANIMATION],
|
|
4703
4700
|
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}"]
|
|
4704
4701
|
}] }
|
|
@@ -4740,7 +4737,7 @@
|
|
|
4740
4737
|
__decorate([
|
|
4741
4738
|
pectin.Trace(),
|
|
4742
4739
|
__metadata("design:type", Function),
|
|
4743
|
-
__metadata("design:paramtypes", [
|
|
4740
|
+
__metadata("design:paramtypes", []),
|
|
4744
4741
|
__metadata("design:returntype", void 0)
|
|
4745
4742
|
], PlaceOutletComponent.prototype, "onOutletDeactivated", null);
|
|
4746
4743
|
__decorate([
|
|
@@ -4777,7 +4774,7 @@
|
|
|
4777
4774
|
* @type {?}
|
|
4778
4775
|
* @private
|
|
4779
4776
|
*/
|
|
4780
|
-
PlaceOutletComponent.prototype.
|
|
4777
|
+
PlaceOutletComponent.prototype._activePlaceVisitModel;
|
|
4781
4778
|
/**
|
|
4782
4779
|
* @type {?}
|
|
4783
4780
|
* @private
|
|
@@ -4805,11 +4802,6 @@
|
|
|
4805
4802
|
* @private
|
|
4806
4803
|
*/
|
|
4807
4804
|
PlaceOutletComponent.prototype.isOnInitialPlace;
|
|
4808
|
-
/**
|
|
4809
|
-
* @type {?}
|
|
4810
|
-
* @private
|
|
4811
|
-
*/
|
|
4812
|
-
PlaceOutletComponent.prototype._previousPlace;
|
|
4813
4805
|
/**
|
|
4814
4806
|
* @type {?}
|
|
4815
4807
|
* @private
|