@coolon/angular-ui-powerups 0.0.76 → 0.0.78
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 +28 -30
- 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 +3 -5
- 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/tabbed-place-navigation/tabbed-place-navigation.component.js +2 -2
- package/esm2015/lib/place/place-history.js +5 -18
- package/esm2015/lib/place/route/guards/leave-place.guard.js +1 -2
- package/esm5/lib/interaction/components/activity-container/activity-container.component.js +3 -5
- 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/tabbed-place-navigation/tabbed-place-navigation.component.js +2 -2
- package/esm5/lib/place/place-history.js +5 -15
- package/esm5/lib/place/route/guards/leave-place.guard.js +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +24 -34
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +28 -30
- 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
|
@@ -1676,6 +1676,7 @@ var ActivityContainerComponent = /** @class */ (function (_super) {
|
|
|
1676
1676
|
*/
|
|
1677
1677
|
function (activityType, data) {
|
|
1678
1678
|
var _this = this;
|
|
1679
|
+
this.cleanupStaleNestedActivities();
|
|
1679
1680
|
/** @type {?} */
|
|
1680
1681
|
var self = this;
|
|
1681
1682
|
return new Promise((/**
|
|
@@ -1777,10 +1778,7 @@ var ActivityContainerComponent = /** @class */ (function (_super) {
|
|
|
1777
1778
|
* @return {?}
|
|
1778
1779
|
*/
|
|
1779
1780
|
function () {
|
|
1780
|
-
|
|
1781
|
-
if (this.synchroniseSelectedTabIndex()) {
|
|
1782
|
-
this.cleanupStaleNestedActivities();
|
|
1783
|
-
}
|
|
1781
|
+
this.synchroniseSelectedTabIndex();
|
|
1784
1782
|
this.updateActivityList();
|
|
1785
1783
|
};
|
|
1786
1784
|
// @Trace()
|
|
@@ -3729,8 +3727,7 @@ if (false) {
|
|
|
3729
3727
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3730
3728
|
*/
|
|
3731
3729
|
var PlaceHistory = /** @class */ (function () {
|
|
3732
|
-
function PlaceHistory(
|
|
3733
|
-
this.router = router;
|
|
3730
|
+
function PlaceHistory() {
|
|
3734
3731
|
this._history = new Map();
|
|
3735
3732
|
}
|
|
3736
3733
|
// @Trace()
|
|
@@ -3749,7 +3746,7 @@ var PlaceHistory = /** @class */ (function () {
|
|
|
3749
3746
|
/** @type {?} */
|
|
3750
3747
|
var history = this.getHistory(state.placeDefinition);
|
|
3751
3748
|
/** @type {?} */
|
|
3752
|
-
var previousState = ___default.
|
|
3749
|
+
var previousState = ___default.first(history);
|
|
3753
3750
|
if (!previousState || state.hasChangedFrom(previousState)) {
|
|
3754
3751
|
history.unshift(state); // LIFO
|
|
3755
3752
|
this.setHistory(state.placeDefinition, history.slice(0, 3)); // limit our history to 4 visits
|
|
@@ -3793,10 +3790,8 @@ var PlaceHistory = /** @class */ (function () {
|
|
|
3793
3790
|
},] }
|
|
3794
3791
|
];
|
|
3795
3792
|
/** @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" });
|
|
3793
|
+
PlaceHistory.ctorParameters = function () { return []; };
|
|
3794
|
+
/** @nocollapse */ PlaceHistory.ngInjectableDef = ɵɵdefineInjectable({ factory: function PlaceHistory_Factory() { return new PlaceHistory(); }, token: PlaceHistory, providedIn: "root" });
|
|
3800
3795
|
return PlaceHistory;
|
|
3801
3796
|
}());
|
|
3802
3797
|
if (false) {
|
|
@@ -3805,11 +3800,6 @@ if (false) {
|
|
|
3805
3800
|
* @private
|
|
3806
3801
|
*/
|
|
3807
3802
|
PlaceHistory.prototype._history;
|
|
3808
|
-
/**
|
|
3809
|
-
* @type {?}
|
|
3810
|
-
* @private
|
|
3811
|
-
*/
|
|
3812
|
-
PlaceHistory.prototype.router;
|
|
3813
3803
|
}
|
|
3814
3804
|
|
|
3815
3805
|
/**
|
|
@@ -4466,7 +4456,7 @@ var PlaceOutletComponent = /** @class */ (function (_super) {
|
|
|
4466
4456
|
selector: 'aup-place-outlet',
|
|
4467
4457
|
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
4458
|
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}"]
|
|
4459
|
+
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
4460
|
}] }
|
|
4471
4461
|
];
|
|
4472
4462
|
/** @nocollapse */
|
|
@@ -4572,11 +4562,6 @@ var AbstractPlaceNavigationComponent = /** @class */ (function (_super) {
|
|
|
4572
4562
|
* @return {?}
|
|
4573
4563
|
*/
|
|
4574
4564
|
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
4565
|
_this.commandFactory = Command.createFactory((/**
|
|
4581
4566
|
* @param {?} placeDefinition
|
|
4582
4567
|
* @return {?}
|
|
@@ -4584,6 +4569,11 @@ var AbstractPlaceNavigationComponent = /** @class */ (function (_super) {
|
|
|
4584
4569
|
function (placeDefinition) {
|
|
4585
4570
|
_this.placeOutlet.navigate(new Visit(placeDefinition));
|
|
4586
4571
|
}));
|
|
4572
|
+
_this.activePlaceDefinition = chain(_this.placeOutletModel).pullValueModel((/**
|
|
4573
|
+
* @param {?} o
|
|
4574
|
+
* @return {?}
|
|
4575
|
+
*/
|
|
4576
|
+
function (o) { return o.activePlaceModel; })).pluck("placeDefinition");
|
|
4587
4577
|
return _this;
|
|
4588
4578
|
}
|
|
4589
4579
|
/**
|
|
@@ -4612,6 +4602,17 @@ var AbstractPlaceNavigationComponent = /** @class */ (function (_super) {
|
|
|
4612
4602
|
function () { return navItem && navItem.icon ? navItem.icon() : placeDef.getPlaceData('navIcon', null); })
|
|
4613
4603
|
};
|
|
4614
4604
|
};
|
|
4605
|
+
/**
|
|
4606
|
+
* @param {?} place
|
|
4607
|
+
* @return {?}
|
|
4608
|
+
*/
|
|
4609
|
+
AbstractPlaceNavigationComponent.prototype.isActive = /**
|
|
4610
|
+
* @param {?} place
|
|
4611
|
+
* @return {?}
|
|
4612
|
+
*/
|
|
4613
|
+
function (place) {
|
|
4614
|
+
return this.activePlaceDefinition.query().equals(place);
|
|
4615
|
+
};
|
|
4615
4616
|
/**
|
|
4616
4617
|
* @return {?}
|
|
4617
4618
|
*/
|
|
@@ -4661,13 +4662,10 @@ if (false) {
|
|
|
4661
4662
|
AbstractPlaceNavigationComponent.prototype.placeOutletModel;
|
|
4662
4663
|
/** @type {?} */
|
|
4663
4664
|
AbstractPlaceNavigationComponent.prototype.placeDefinitions;
|
|
4664
|
-
/**
|
|
4665
|
-
* @type {?}
|
|
4666
|
-
* @protected
|
|
4667
|
-
*/
|
|
4668
|
-
AbstractPlaceNavigationComponent.prototype.relativeToModel;
|
|
4669
4665
|
/** @type {?} */
|
|
4670
4666
|
AbstractPlaceNavigationComponent.prototype.commandFactory;
|
|
4667
|
+
/** @type {?} */
|
|
4668
|
+
AbstractPlaceNavigationComponent.prototype.activePlaceDefinition;
|
|
4671
4669
|
}
|
|
4672
4670
|
|
|
4673
4671
|
/**
|
|
@@ -4711,8 +4709,8 @@ var ListPlaceNavComponent = /** @class */ (function (_super) {
|
|
|
4711
4709
|
ListPlaceNavComponent.decorators = [
|
|
4712
4710
|
{ type: Component, args: [{
|
|
4713
4711
|
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:
|
|
4712
|
+
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",
|
|
4713
|
+
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
4714
|
}] }
|
|
4717
4715
|
];
|
|
4718
4716
|
/** @nocollapse */
|
|
@@ -4739,7 +4737,7 @@ var TabbedPlaceNavigationComponent = /** @class */ (function (_super) {
|
|
|
4739
4737
|
TabbedPlaceNavigationComponent.decorators = [
|
|
4740
4738
|
{ type: Component, args: [{
|
|
4741
4739
|
selector: 'aup-tabbed-place-navigation',
|
|
4742
|
-
template: "<nav mat-tab-nav-bar>\n <a mat-tab-link *ngFor=\"let
|
|
4740
|
+
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
4741
|
styles: [""]
|
|
4744
4742
|
}] }
|
|
4745
4743
|
];
|