@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
|
@@ -1760,6 +1760,10 @@
|
|
|
1760
1760
|
*/
|
|
1761
1761
|
function (initialContext) {
|
|
1762
1762
|
pectin.assert.isNil(this._initialActivityOutletContext);
|
|
1763
|
+
// we clean up at the start as we leave the initial activity in place after it finishes
|
|
1764
|
+
// so that the activity remains visible during the inplace-interaction-context animations.
|
|
1765
|
+
this.activityTabs.value = [];
|
|
1766
|
+
this._activityList.value = [];
|
|
1763
1767
|
/** @type {?} */
|
|
1764
1768
|
var self = this;
|
|
1765
1769
|
if (initialContext) {
|
|
@@ -1794,7 +1798,7 @@
|
|
|
1794
1798
|
* @return {?}
|
|
1795
1799
|
*/
|
|
1796
1800
|
function () {
|
|
1797
|
-
return this.
|
|
1801
|
+
return !!this._initialActivityOutletContext;
|
|
1798
1802
|
};
|
|
1799
1803
|
Object.defineProperty(ActivityContainerComponent.prototype, "activityList", {
|
|
1800
1804
|
get: /**
|
|
@@ -1860,6 +1864,7 @@
|
|
|
1860
1864
|
*/
|
|
1861
1865
|
function (activityType, data) {
|
|
1862
1866
|
var _this = this;
|
|
1867
|
+
this.cleanupStaleNestedActivities();
|
|
1863
1868
|
/** @type {?} */
|
|
1864
1869
|
var self = this;
|
|
1865
1870
|
return new Promise((/**
|
|
@@ -1944,8 +1949,6 @@
|
|
|
1944
1949
|
*/
|
|
1945
1950
|
function () {
|
|
1946
1951
|
this._initialActivityOutletContext = null;
|
|
1947
|
-
this.activityTabs.value = [];
|
|
1948
|
-
this._activityList.value = [];
|
|
1949
1952
|
this.initialActivityOutletContextEvent.emit(null);
|
|
1950
1953
|
};
|
|
1951
1954
|
// @Trace()
|
|
@@ -1961,10 +1964,7 @@
|
|
|
1961
1964
|
* @return {?}
|
|
1962
1965
|
*/
|
|
1963
1966
|
function () {
|
|
1964
|
-
|
|
1965
|
-
if (this.synchroniseSelectedTabIndex()) {
|
|
1966
|
-
this.cleanupStaleNestedActivities();
|
|
1967
|
-
}
|
|
1967
|
+
this.synchroniseSelectedTabIndex();
|
|
1968
1968
|
this.updateActivityList();
|
|
1969
1969
|
};
|
|
1970
1970
|
// @Trace()
|
|
@@ -2655,7 +2655,7 @@
|
|
|
2655
2655
|
AlertDialogComponent
|
|
2656
2656
|
],
|
|
2657
2657
|
providers: [
|
|
2658
|
-
DialogInteractionService
|
|
2658
|
+
DialogInteractionService,
|
|
2659
2659
|
]
|
|
2660
2660
|
},] }
|
|
2661
2661
|
];
|
|
@@ -3913,8 +3913,7 @@
|
|
|
3913
3913
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3914
3914
|
*/
|
|
3915
3915
|
var PlaceHistory = /** @class */ (function () {
|
|
3916
|
-
function PlaceHistory(
|
|
3917
|
-
this.router = router;
|
|
3916
|
+
function PlaceHistory() {
|
|
3918
3917
|
this._history = new Map();
|
|
3919
3918
|
}
|
|
3920
3919
|
// @Trace()
|
|
@@ -3977,10 +3976,8 @@
|
|
|
3977
3976
|
},] }
|
|
3978
3977
|
];
|
|
3979
3978
|
/** @nocollapse */
|
|
3980
|
-
PlaceHistory.ctorParameters = function () { return [
|
|
3981
|
-
|
|
3982
|
-
]; };
|
|
3983
|
-
/** @nocollapse */ PlaceHistory.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function PlaceHistory_Factory() { return new PlaceHistory(core.ɵɵinject(router.Router)); }, token: PlaceHistory, providedIn: "root" });
|
|
3979
|
+
PlaceHistory.ctorParameters = function () { return []; };
|
|
3980
|
+
/** @nocollapse */ PlaceHistory.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function PlaceHistory_Factory() { return new PlaceHistory(); }, token: PlaceHistory, providedIn: "root" });
|
|
3984
3981
|
return PlaceHistory;
|
|
3985
3982
|
}());
|
|
3986
3983
|
if (false) {
|
|
@@ -3989,11 +3986,6 @@
|
|
|
3989
3986
|
* @private
|
|
3990
3987
|
*/
|
|
3991
3988
|
PlaceHistory.prototype._history;
|
|
3992
|
-
/**
|
|
3993
|
-
* @type {?}
|
|
3994
|
-
* @private
|
|
3995
|
-
*/
|
|
3996
|
-
PlaceHistory.prototype.router;
|
|
3997
3989
|
}
|
|
3998
3990
|
|
|
3999
3991
|
/**
|
|
@@ -4376,12 +4368,15 @@
|
|
|
4376
4368
|
animations$1.query(':enter, :leave', animationStartStyle, { optional: true }),
|
|
4377
4369
|
animations$1.group([
|
|
4378
4370
|
animations$1.query(':enter', [
|
|
4379
|
-
animations$1.style({ transform: 'translateX(100%)' }),
|
|
4371
|
+
animations$1.style({ transform: 'translateX(100%)', minHeight: '1px' }),
|
|
4380
4372
|
animations$1.animate('{{duration}} ease-out', animations$1.style({ transform: 'translateX(0%)' }))
|
|
4381
4373
|
], {
|
|
4382
4374
|
optional: true
|
|
4383
4375
|
}),
|
|
4384
|
-
animations$1.query(':leave', [animations$1.style({ transform: 'translateX(0%)' }), animations$1.animate('{{duration}} ease-out', animations$1.style({
|
|
4376
|
+
animations$1.query(':leave', [animations$1.style({ transform: 'translateX(0%)' }), animations$1.animate('{{duration}} ease-out', animations$1.style({
|
|
4377
|
+
transform: 'translateX(-100%)',
|
|
4378
|
+
minHeight: '1px'
|
|
4379
|
+
}))], {
|
|
4385
4380
|
optional: true
|
|
4386
4381
|
})
|
|
4387
4382
|
])
|
|
@@ -4650,7 +4645,7 @@
|
|
|
4650
4645
|
selector: 'aup-place-outlet',
|
|
4651
4646
|
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",
|
|
4652
4647
|
animations: [LEFT_RIGHT_PLACE_ANIMATION],
|
|
4653
|
-
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}"]
|
|
4648
|
+
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}"]
|
|
4654
4649
|
}] }
|
|
4655
4650
|
];
|
|
4656
4651
|
/** @nocollapse */
|
|
@@ -4756,11 +4751,6 @@
|
|
|
4756
4751
|
* @return {?}
|
|
4757
4752
|
*/
|
|
4758
4753
|
function (c) { return exports.PlaceComponent.getDefinition(c); }));
|
|
4759
|
-
_this.relativeToModel = chain(_this.placeOutletModel).pullValueModel((/**
|
|
4760
|
-
* @param {?} o
|
|
4761
|
-
* @return {?}
|
|
4762
|
-
*/
|
|
4763
|
-
function (o) { return o.activatedRouteModel; }));
|
|
4764
4754
|
_this.commandFactory = pectin.Command.createFactory((/**
|
|
4765
4755
|
* @param {?} placeDefinition
|
|
4766
4756
|
* @return {?}
|
|
@@ -4768,6 +4758,11 @@
|
|
|
4768
4758
|
function (placeDefinition) {
|
|
4769
4759
|
_this.placeOutlet.navigate(new Visit(placeDefinition));
|
|
4770
4760
|
}));
|
|
4761
|
+
_this.activePlaceDefinition = chain(_this.placeOutletModel).pullValueModel((/**
|
|
4762
|
+
* @param {?} o
|
|
4763
|
+
* @return {?}
|
|
4764
|
+
*/
|
|
4765
|
+
function (o) { return o.activePlaceModel; })).pluck("placeDefinition");
|
|
4771
4766
|
return _this;
|
|
4772
4767
|
}
|
|
4773
4768
|
/**
|
|
@@ -4796,6 +4791,17 @@
|
|
|
4796
4791
|
function () { return navItem && navItem.icon ? navItem.icon() : placeDef.getPlaceData('navIcon', null); })
|
|
4797
4792
|
};
|
|
4798
4793
|
};
|
|
4794
|
+
/**
|
|
4795
|
+
* @param {?} place
|
|
4796
|
+
* @return {?}
|
|
4797
|
+
*/
|
|
4798
|
+
AbstractPlaceNavigationComponent.prototype.isActive = /**
|
|
4799
|
+
* @param {?} place
|
|
4800
|
+
* @return {?}
|
|
4801
|
+
*/
|
|
4802
|
+
function (place) {
|
|
4803
|
+
return this.activePlaceDefinition.query().equals(place);
|
|
4804
|
+
};
|
|
4799
4805
|
/**
|
|
4800
4806
|
* @return {?}
|
|
4801
4807
|
*/
|
|
@@ -4845,13 +4851,10 @@
|
|
|
4845
4851
|
AbstractPlaceNavigationComponent.prototype.placeOutletModel;
|
|
4846
4852
|
/** @type {?} */
|
|
4847
4853
|
AbstractPlaceNavigationComponent.prototype.placeDefinitions;
|
|
4848
|
-
/**
|
|
4849
|
-
* @type {?}
|
|
4850
|
-
* @protected
|
|
4851
|
-
*/
|
|
4852
|
-
AbstractPlaceNavigationComponent.prototype.relativeToModel;
|
|
4853
4854
|
/** @type {?} */
|
|
4854
4855
|
AbstractPlaceNavigationComponent.prototype.commandFactory;
|
|
4856
|
+
/** @type {?} */
|
|
4857
|
+
AbstractPlaceNavigationComponent.prototype.activePlaceDefinition;
|
|
4855
4858
|
}
|
|
4856
4859
|
|
|
4857
4860
|
/**
|
|
@@ -4895,8 +4898,8 @@
|
|
|
4895
4898
|
ListPlaceNavComponent.decorators = [
|
|
4896
4899
|
{ type: core.Component, args: [{
|
|
4897
4900
|
selector: 'aup-list-place-nav',
|
|
4898
|
-
template: "<mat-nav-list class=\"app-menu\">\n <a mat-list-item *ngFor=\"let
|
|
4899
|
-
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:
|
|
4901
|
+
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",
|
|
4902
|
+
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}"]
|
|
4900
4903
|
}] }
|
|
4901
4904
|
];
|
|
4902
4905
|
/** @nocollapse */
|
|
@@ -4923,7 +4926,7 @@
|
|
|
4923
4926
|
TabbedPlaceNavigationComponent.decorators = [
|
|
4924
4927
|
{ type: core.Component, args: [{
|
|
4925
4928
|
selector: 'aup-tabbed-place-navigation',
|
|
4926
|
-
template: "<nav mat-tab-nav-bar>\n <a mat-tab-link *ngFor=\"let
|
|
4929
|
+
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",
|
|
4927
4930
|
styles: [""]
|
|
4928
4931
|
}] }
|
|
4929
4932
|
];
|