@coolon/angular-ui-powerups 11.0.0-alpha.11 → 11.0.0-alpha.13
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 +4 -9
- 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/place/components/abstract-place-navigation.component.js +4 -9
- package/esm2015/lib/place/components/abstract-place-navigation.component.js.map +1 -1
- package/esm2015/lib/place/components/abstract-place-navigation.component.metadata.json +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +4 -9
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/place/components/abstract-place-navigation.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -8416,12 +8416,7 @@
|
|
|
8416
8416
|
_this.commandFactory = pectin.Command.createFactory(function (placeDefinition) {
|
|
8417
8417
|
_this.placeOutlet.navigate(new Visit(placeDefinition));
|
|
8418
8418
|
});
|
|
8419
|
-
when(_this.placeOutletModel).changes(function (outlet) {
|
|
8420
|
-
// NOTE: this updates during a change cycle and causes our isActiveMethod to return 2 different
|
|
8421
|
-
// values in the one change detection cycle. So instead we delay the update to a different
|
|
8422
|
-
// tick.
|
|
8423
|
-
setTimeout(function () { return _this._activePlaceComponent.setDelegate(outlet ? outlet.activePlaceModel : null); });
|
|
8424
|
-
}, { initialValue: "triggerChange" });
|
|
8419
|
+
when(_this.placeOutletModel).changes(function (outlet) { return _this.handlePlaceOutLetChanged(outlet); }, { initialValue: "triggerChange" });
|
|
8425
8420
|
_this.activePlaceDefinition = chain(_this._activePlaceComponent).pluck('placeDefinition');
|
|
8426
8421
|
_this.menuItems = chain(_this.placeDefinitions).map(function (d) {
|
|
8427
8422
|
return {
|
|
@@ -8438,6 +8433,9 @@
|
|
|
8438
8433
|
// txo.observe('this.activePlaceDefinition', this.activePlaceDefinition);
|
|
8439
8434
|
// txo.observe('this.menuItems', this.menuItems);
|
|
8440
8435
|
}
|
|
8436
|
+
AbstractPlaceNavigationComponent.prototype.handlePlaceOutLetChanged = function (outlet) {
|
|
8437
|
+
this._activePlaceComponent.setDelegate(outlet ? outlet.activePlaceModel : null);
|
|
8438
|
+
};
|
|
8441
8439
|
AbstractPlaceNavigationComponent.prototype.getNavigationFace = function (placeDef) {
|
|
8442
8440
|
var navItem = placeDef.getPlaceData('nav');
|
|
8443
8441
|
return {
|
|
@@ -8446,9 +8444,6 @@
|
|
|
8446
8444
|
icon: function () { return navItem && navItem.icon ? navItem.icon() : placeDef.getPlaceData('navIcon', null); }
|
|
8447
8445
|
};
|
|
8448
8446
|
};
|
|
8449
|
-
AbstractPlaceNavigationComponent.prototype.isActive = function (place) {
|
|
8450
|
-
return;
|
|
8451
|
-
};
|
|
8452
8447
|
AbstractPlaceNavigationComponent.prototype.ngOnInit = function () {
|
|
8453
8448
|
};
|
|
8454
8449
|
return AbstractPlaceNavigationComponent;
|