@coolon/angular-ui-powerups 11.0.0-alpha.10 → 11.0.0-alpha.12
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 +9 -10
- 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/components/track-by.js +5 -1
- package/esm2015/lib/components/track-by.js.map +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 +9 -10
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/track-by.d.ts +3 -1
- package/lib/place/components/abstract-place-navigation.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1207,7 +1207,11 @@
|
|
|
1207
1207
|
], MoreMenuComponent.prototype, "tooltip", void 0);
|
|
1208
1208
|
|
|
1209
1209
|
(function (TrackBy) {
|
|
1210
|
-
TrackBy.byIndex = function (
|
|
1210
|
+
TrackBy.byIndex = function (index, item) { return index; };
|
|
1211
|
+
function trackByProperty(property) {
|
|
1212
|
+
return function (index, item) { return item[property]; };
|
|
1213
|
+
}
|
|
1214
|
+
TrackBy.trackByProperty = trackByProperty;
|
|
1211
1215
|
})(exports.TrackBy || (exports.TrackBy = {}));
|
|
1212
1216
|
|
|
1213
1217
|
exports.CommandContainer = /** @class */ (function (_super) {
|
|
@@ -8412,12 +8416,7 @@
|
|
|
8412
8416
|
_this.commandFactory = pectin.Command.createFactory(function (placeDefinition) {
|
|
8413
8417
|
_this.placeOutlet.navigate(new Visit(placeDefinition));
|
|
8414
8418
|
});
|
|
8415
|
-
when(_this.placeOutletModel).changes(function (outlet) {
|
|
8416
|
-
// NOTE: this updates during a change cycle and causes our isActiveMethod to return 2 different
|
|
8417
|
-
// values in the one change detection cycle. So instead we delay the update to a different
|
|
8418
|
-
// tick.
|
|
8419
|
-
setTimeout(function () { return _this._activePlaceComponent.setDelegate(outlet ? outlet.activePlaceModel : null); });
|
|
8420
|
-
});
|
|
8419
|
+
when(_this.placeOutletModel).changes(function (outlet) { return _this.handlePlaceOutLetChanged(outlet); }, { initialValue: "triggerChange" });
|
|
8421
8420
|
_this.activePlaceDefinition = chain(_this._activePlaceComponent).pluck('placeDefinition');
|
|
8422
8421
|
_this.menuItems = chain(_this.placeDefinitions).map(function (d) {
|
|
8423
8422
|
return {
|
|
@@ -8434,6 +8433,9 @@
|
|
|
8434
8433
|
// txo.observe('this.activePlaceDefinition', this.activePlaceDefinition);
|
|
8435
8434
|
// txo.observe('this.menuItems', this.menuItems);
|
|
8436
8435
|
}
|
|
8436
|
+
AbstractPlaceNavigationComponent.prototype.handlePlaceOutLetChanged = function (outlet) {
|
|
8437
|
+
this._activePlaceComponent.setDelegate(outlet ? outlet.activePlaceModel : null);
|
|
8438
|
+
};
|
|
8437
8439
|
AbstractPlaceNavigationComponent.prototype.getNavigationFace = function (placeDef) {
|
|
8438
8440
|
var navItem = placeDef.getPlaceData('nav');
|
|
8439
8441
|
return {
|
|
@@ -8442,9 +8444,6 @@
|
|
|
8442
8444
|
icon: function () { return navItem && navItem.icon ? navItem.icon() : placeDef.getPlaceData('navIcon', null); }
|
|
8443
8445
|
};
|
|
8444
8446
|
};
|
|
8445
|
-
AbstractPlaceNavigationComponent.prototype.isActive = function (place) {
|
|
8446
|
-
return;
|
|
8447
|
-
};
|
|
8448
8447
|
AbstractPlaceNavigationComponent.prototype.ngOnInit = function () {
|
|
8449
8448
|
};
|
|
8450
8449
|
return AbstractPlaceNavigationComponent;
|