@coolon/angular-ui-powerups 0.0.77 → 0.0.79
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 +38 -35
- 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/activity-container/activity-container.component.js +8 -8
- package/esm2015/lib/interaction/interaction.module.js +2 -2
- package/esm2015/lib/place/components/abstract-place-navigation.component.js +15 -11
- package/esm2015/lib/place/components/list-place-nav/list-place-nav.component.js +3 -3
- package/esm2015/lib/place/components/place-outlet/place-outlet.component.js +1 -1
- package/esm2015/lib/place/components/place-outlet/route-animations.js +6 -3
- package/esm2015/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js +2 -2
- package/esm2015/lib/place/place-history.js +4 -17
- package/esm2015/lib/place/route/guards/leave-place.guard.js +1 -2
- package/esm5/lib/interaction/components/activity-container/activity-container.component.js +8 -8
- package/esm5/lib/interaction/interaction.module.js +2 -2
- package/esm5/lib/place/components/abstract-place-navigation.component.js +19 -11
- package/esm5/lib/place/components/list-place-nav/list-place-nav.component.js +3 -3
- package/esm5/lib/place/components/place-outlet/place-outlet.component.js +1 -1
- package/esm5/lib/place/components/place-outlet/route-animations.js +6 -3
- package/esm5/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js +2 -2
- package/esm5/lib/place/place-history.js +4 -14
- package/esm5/lib/place/route/guards/leave-place.guard.js +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +34 -39
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +38 -35
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/place/components/abstract-place-navigation.component.d.ts +3 -3
- package/lib/place/place-history.d.ts +1 -3
- package/package.json +1 -1
|
@@ -1576,6 +1576,10 @@ var ActivityContainerComponent = /** @class */ (function (_super) {
|
|
|
1576
1576
|
*/
|
|
1577
1577
|
function (initialContext) {
|
|
1578
1578
|
assert.isNil(this._initialActivityOutletContext);
|
|
1579
|
+
// we clean up at the start as we leave the initial activity in place after it finishes
|
|
1580
|
+
// so that the activity remains visible during the inplace-interaction-context animations.
|
|
1581
|
+
this.activityTabs.value = [];
|
|
1582
|
+
this._activityList.value = [];
|
|
1579
1583
|
/** @type {?} */
|
|
1580
1584
|
var self = this;
|
|
1581
1585
|
if (initialContext) {
|
|
@@ -1610,7 +1614,7 @@ var ActivityContainerComponent = /** @class */ (function (_super) {
|
|
|
1610
1614
|
* @return {?}
|
|
1611
1615
|
*/
|
|
1612
1616
|
function () {
|
|
1613
|
-
return this.
|
|
1617
|
+
return !!this._initialActivityOutletContext;
|
|
1614
1618
|
};
|
|
1615
1619
|
Object.defineProperty(ActivityContainerComponent.prototype, "activityList", {
|
|
1616
1620
|
get: /**
|
|
@@ -1676,6 +1680,7 @@ var ActivityContainerComponent = /** @class */ (function (_super) {
|
|
|
1676
1680
|
*/
|
|
1677
1681
|
function (activityType, data) {
|
|
1678
1682
|
var _this = this;
|
|
1683
|
+
this.cleanupStaleNestedActivities();
|
|
1679
1684
|
/** @type {?} */
|
|
1680
1685
|
var self = this;
|
|
1681
1686
|
return new Promise((/**
|
|
@@ -1760,8 +1765,6 @@ var ActivityContainerComponent = /** @class */ (function (_super) {
|
|
|
1760
1765
|
*/
|
|
1761
1766
|
function () {
|
|
1762
1767
|
this._initialActivityOutletContext = null;
|
|
1763
|
-
this.activityTabs.value = [];
|
|
1764
|
-
this._activityList.value = [];
|
|
1765
1768
|
this.initialActivityOutletContextEvent.emit(null);
|
|
1766
1769
|
};
|
|
1767
1770
|
// @Trace()
|
|
@@ -1777,10 +1780,7 @@ var ActivityContainerComponent = /** @class */ (function (_super) {
|
|
|
1777
1780
|
* @return {?}
|
|
1778
1781
|
*/
|
|
1779
1782
|
function () {
|
|
1780
|
-
|
|
1781
|
-
if (this.synchroniseSelectedTabIndex()) {
|
|
1782
|
-
this.cleanupStaleNestedActivities();
|
|
1783
|
-
}
|
|
1783
|
+
this.synchroniseSelectedTabIndex();
|
|
1784
1784
|
this.updateActivityList();
|
|
1785
1785
|
};
|
|
1786
1786
|
// @Trace()
|
|
@@ -2471,7 +2471,7 @@ var InteractionModule = /** @class */ (function () {
|
|
|
2471
2471
|
AlertDialogComponent
|
|
2472
2472
|
],
|
|
2473
2473
|
providers: [
|
|
2474
|
-
DialogInteractionService
|
|
2474
|
+
DialogInteractionService,
|
|
2475
2475
|
]
|
|
2476
2476
|
},] }
|
|
2477
2477
|
];
|
|
@@ -3729,8 +3729,7 @@ if (false) {
|
|
|
3729
3729
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3730
3730
|
*/
|
|
3731
3731
|
var PlaceHistory = /** @class */ (function () {
|
|
3732
|
-
function PlaceHistory(
|
|
3733
|
-
this.router = router;
|
|
3732
|
+
function PlaceHistory() {
|
|
3734
3733
|
this._history = new Map();
|
|
3735
3734
|
}
|
|
3736
3735
|
// @Trace()
|
|
@@ -3793,10 +3792,8 @@ var PlaceHistory = /** @class */ (function () {
|
|
|
3793
3792
|
},] }
|
|
3794
3793
|
];
|
|
3795
3794
|
/** @nocollapse */
|
|
3796
|
-
PlaceHistory.ctorParameters = function () { return [
|
|
3797
|
-
|
|
3798
|
-
]; };
|
|
3799
|
-
/** @nocollapse */ PlaceHistory.ngInjectableDef = ɵɵdefineInjectable({ factory: function PlaceHistory_Factory() { return new PlaceHistory(ɵɵinject(Router)); }, token: PlaceHistory, providedIn: "root" });
|
|
3795
|
+
PlaceHistory.ctorParameters = function () { return []; };
|
|
3796
|
+
/** @nocollapse */ PlaceHistory.ngInjectableDef = ɵɵdefineInjectable({ factory: function PlaceHistory_Factory() { return new PlaceHistory(); }, token: PlaceHistory, providedIn: "root" });
|
|
3800
3797
|
return PlaceHistory;
|
|
3801
3798
|
}());
|
|
3802
3799
|
if (false) {
|
|
@@ -3805,11 +3802,6 @@ if (false) {
|
|
|
3805
3802
|
* @private
|
|
3806
3803
|
*/
|
|
3807
3804
|
PlaceHistory.prototype._history;
|
|
3808
|
-
/**
|
|
3809
|
-
* @type {?}
|
|
3810
|
-
* @private
|
|
3811
|
-
*/
|
|
3812
|
-
PlaceHistory.prototype.router;
|
|
3813
3805
|
}
|
|
3814
3806
|
|
|
3815
3807
|
/**
|
|
@@ -4192,12 +4184,15 @@ var right = [
|
|
|
4192
4184
|
query(':enter, :leave', animationStartStyle, { optional: true }),
|
|
4193
4185
|
group([
|
|
4194
4186
|
query(':enter', [
|
|
4195
|
-
style({ transform: 'translateX(100%)' }),
|
|
4187
|
+
style({ transform: 'translateX(100%)', minHeight: '1px' }),
|
|
4196
4188
|
animate('{{duration}} ease-out', style({ transform: 'translateX(0%)' }))
|
|
4197
4189
|
], {
|
|
4198
4190
|
optional: true
|
|
4199
4191
|
}),
|
|
4200
|
-
query(':leave', [style({ transform: 'translateX(0%)' }), animate('{{duration}} ease-out', style({
|
|
4192
|
+
query(':leave', [style({ transform: 'translateX(0%)' }), animate('{{duration}} ease-out', style({
|
|
4193
|
+
transform: 'translateX(-100%)',
|
|
4194
|
+
minHeight: '1px'
|
|
4195
|
+
}))], {
|
|
4201
4196
|
optional: true
|
|
4202
4197
|
})
|
|
4203
4198
|
])
|
|
@@ -4466,7 +4461,7 @@ var PlaceOutletComponent = /** @class */ (function (_super) {
|
|
|
4466
4461
|
selector: 'aup-place-outlet',
|
|
4467
4462
|
template: "<div class=\"router-outlet-container\"\n [@routeAnimations]=\"placeAnimationOrder.value\"\n (@routeAnimations.done)=\"animationDone()\"\n>\n <router-outlet #routerOutlet=\"outlet\"\n (activate)=\"onOutletActivated(routerOutlet, $event)\"\n (deactivate)=\"onOutletDeactivated(routerOutlet, $event)\">\n </router-outlet>\n</div>\n\n",
|
|
4468
4463
|
animations: [LEFT_RIGHT_PLACE_ANIMATION],
|
|
4469
|
-
styles: [":host{display:flex;flex-direction:column;min-height:0}.router-outlet-container{flex:1;display:block;position:relative;min-height:0}router-outlet{display:none}"]
|
|
4464
|
+
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}"]
|
|
4470
4465
|
}] }
|
|
4471
4466
|
];
|
|
4472
4467
|
/** @nocollapse */
|
|
@@ -4572,11 +4567,6 @@ var AbstractPlaceNavigationComponent = /** @class */ (function (_super) {
|
|
|
4572
4567
|
* @return {?}
|
|
4573
4568
|
*/
|
|
4574
4569
|
function (c) { return PlaceComponent.getDefinition(c); }));
|
|
4575
|
-
_this.relativeToModel = chain(_this.placeOutletModel).pullValueModel((/**
|
|
4576
|
-
* @param {?} o
|
|
4577
|
-
* @return {?}
|
|
4578
|
-
*/
|
|
4579
|
-
function (o) { return o.activatedRouteModel; }));
|
|
4580
4570
|
_this.commandFactory = Command.createFactory((/**
|
|
4581
4571
|
* @param {?} placeDefinition
|
|
4582
4572
|
* @return {?}
|
|
@@ -4584,6 +4574,11 @@ var AbstractPlaceNavigationComponent = /** @class */ (function (_super) {
|
|
|
4584
4574
|
function (placeDefinition) {
|
|
4585
4575
|
_this.placeOutlet.navigate(new Visit(placeDefinition));
|
|
4586
4576
|
}));
|
|
4577
|
+
_this.activePlaceDefinition = chain(_this.placeOutletModel).pullValueModel((/**
|
|
4578
|
+
* @param {?} o
|
|
4579
|
+
* @return {?}
|
|
4580
|
+
*/
|
|
4581
|
+
function (o) { return o.activePlaceModel; })).pluck("placeDefinition");
|
|
4587
4582
|
return _this;
|
|
4588
4583
|
}
|
|
4589
4584
|
/**
|
|
@@ -4612,6 +4607,17 @@ var AbstractPlaceNavigationComponent = /** @class */ (function (_super) {
|
|
|
4612
4607
|
function () { return navItem && navItem.icon ? navItem.icon() : placeDef.getPlaceData('navIcon', null); })
|
|
4613
4608
|
};
|
|
4614
4609
|
};
|
|
4610
|
+
/**
|
|
4611
|
+
* @param {?} place
|
|
4612
|
+
* @return {?}
|
|
4613
|
+
*/
|
|
4614
|
+
AbstractPlaceNavigationComponent.prototype.isActive = /**
|
|
4615
|
+
* @param {?} place
|
|
4616
|
+
* @return {?}
|
|
4617
|
+
*/
|
|
4618
|
+
function (place) {
|
|
4619
|
+
return this.activePlaceDefinition.query().equals(place);
|
|
4620
|
+
};
|
|
4615
4621
|
/**
|
|
4616
4622
|
* @return {?}
|
|
4617
4623
|
*/
|
|
@@ -4661,13 +4667,10 @@ if (false) {
|
|
|
4661
4667
|
AbstractPlaceNavigationComponent.prototype.placeOutletModel;
|
|
4662
4668
|
/** @type {?} */
|
|
4663
4669
|
AbstractPlaceNavigationComponent.prototype.placeDefinitions;
|
|
4664
|
-
/**
|
|
4665
|
-
* @type {?}
|
|
4666
|
-
* @protected
|
|
4667
|
-
*/
|
|
4668
|
-
AbstractPlaceNavigationComponent.prototype.relativeToModel;
|
|
4669
4670
|
/** @type {?} */
|
|
4670
4671
|
AbstractPlaceNavigationComponent.prototype.commandFactory;
|
|
4672
|
+
/** @type {?} */
|
|
4673
|
+
AbstractPlaceNavigationComponent.prototype.activePlaceDefinition;
|
|
4671
4674
|
}
|
|
4672
4675
|
|
|
4673
4676
|
/**
|
|
@@ -4711,8 +4714,8 @@ var ListPlaceNavComponent = /** @class */ (function (_super) {
|
|
|
4711
4714
|
ListPlaceNavComponent.decorators = [
|
|
4712
4715
|
{ type: Component, args: [{
|
|
4713
4716
|
selector: 'aup-list-place-nav',
|
|
4714
|
-
template: "<mat-nav-list class=\"app-menu\">\n <a mat-list-item *ngFor=\"let
|
|
4715
|
-
styles: [":host{display:flex;flex-direction:column;--expanded-width:235px;--nav-item-width:var(--nav-bar-height);width:var(--nav-item-width);transition:width 125ms linear}:host.expanded{width:var(--expanded-width);max-width:var(--expanded-width)}.expanded-only{max-width:0;overflow:hidden}.collapsed-only{max-width:100%;overflow:hidden}.header{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;height:var(--nav-bar-height);border-bottom:var(--pinstripe-border);cursor:pointer}.header .menu{flex:1}.header button{color:inherit;width:var(--nav-item-width);height:var(--nav-bar-height)}mat-nav-list{flex:1;display:flex;flex-direction:column}.mat-list-item{width:var(--nav-item-width);height:var(--nav-bar-height);color:
|
|
4717
|
+
template: "<mat-nav-list class=\"app-menu\">\n <a mat-list-item *ngFor=\"let placeDefinition of placeDefinitions.value\"\n [pectinCommand]=\"commandFactory.create(placeDefinition)\"\n [class.active]=\"isActive(placeDefinition)\"\n [matTooltip]=\"getNav(placeDefinition).tooltip()\">\n <mat-icon *ngIf=\"getNav(placeDefinition).icon()\">{{getNav(placeDefinition).icon()}}</mat-icon>\n <span class=\"expanded-only\">{{getNav(placeDefinition).title()}}</span>\n </a>\n</mat-nav-list>\n",
|
|
4718
|
+
styles: [":host{display:flex;flex-direction:column;--expanded-width:235px;--nav-item-width:var(--nav-bar-height);width:var(--nav-item-width);transition:width 125ms linear}:host.expanded{width:var(--expanded-width);max-width:var(--expanded-width)}.expanded-only{max-width:0;overflow:hidden}.collapsed-only{max-width:100%;overflow:hidden}.header{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;height:var(--nav-bar-height);border-bottom:var(--pinstripe-border);cursor:pointer}.header .menu{flex:1}.header button{color:inherit;width:var(--nav-item-width);height:var(--nav-bar-height)}mat-nav-list{flex:1;display:flex;flex-direction:column}.mat-list-item{width:var(--nav-item-width);height:var(--nav-bar-height);color:rgba(0,0,0,.6)}.mat-list-item.active{background-color:rgba(0,0,0,.1);color:rgba(0,0,0,.9)}mat-icon{color:inherit}mat-icon.flip-horizontal{transform:scaleX(-1)}:host-context(.expanded) .expanded-only{max-width:100%}:host-context(.expanded) .collapsed-only{max-width:0}:host-context(.expanded) .mat-list-item mat-icon{margin-right:12px}:host-context(.expanded) .mat-list-item span{text-wrap:none;white-space:nowrap}a[ng-reflect-router-link=manage-instruments] mat-icon{transform:rotate(90deg)}.app-menu{padding-top:0}"]
|
|
4716
4719
|
}] }
|
|
4717
4720
|
];
|
|
4718
4721
|
/** @nocollapse */
|
|
@@ -4739,7 +4742,7 @@ var TabbedPlaceNavigationComponent = /** @class */ (function (_super) {
|
|
|
4739
4742
|
TabbedPlaceNavigationComponent.decorators = [
|
|
4740
4743
|
{ type: Component, args: [{
|
|
4741
4744
|
selector: 'aup-tabbed-place-navigation',
|
|
4742
|
-
template: "<nav mat-tab-nav-bar>\n <a mat-tab-link *ngFor=\"let
|
|
4745
|
+
template: "<nav mat-tab-nav-bar>\n <a mat-tab-link *ngFor=\"let placeDefinition of placeDefinitions.value\"\n [pectinCommand]=\"commandFactory.create(placeDefinition)\"\n [active]=\"isActive(placeDefinition)\"\n [matTooltip]=\"getNav(placeDefinition).tooltip()\">\n <mat-icon *ngIf=\"getNav(placeDefinition).icon()\">{{getNav(placeDefinition).icon()}}</mat-icon>\n <span>{{getNav(placeDefinition).title()}}</span>\n </a>\n</nav>\n",
|
|
4743
4746
|
styles: [""]
|
|
4744
4747
|
}] }
|
|
4745
4748
|
];
|