@coolon/angular-ui-powerups 0.0.29 → 0.0.30
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 -1
- 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/tabbed-place-navigation/tabbed-place-navigation.component.js +2 -2
- package/esm2015/lib/place/place.decorator.js +21 -1
- package/esm5/lib/place/components/tabbed-place-navigation/tabbed-place-navigation.component.js +2 -2
- package/esm5/lib/place/place.decorator.js +28 -1
- package/fesm2015/coolon-angular-ui-powerups.js +21 -1
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +28 -1
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/place/place.decorator.d.ts +1 -0
- package/package.json +1 -1
|
@@ -2139,6 +2139,33 @@
|
|
|
2139
2139
|
lodash.isNil(this.data[key]) ? defaultValue : this.data[key] :
|
|
2140
2140
|
defaultValue;
|
|
2141
2141
|
};
|
|
2142
|
+
/**
|
|
2143
|
+
* @template T
|
|
2144
|
+
* @param {?} keys
|
|
2145
|
+
* @param {?=} defaultValue
|
|
2146
|
+
* @return {?}
|
|
2147
|
+
*/
|
|
2148
|
+
Descriptor.prototype.searchData = /**
|
|
2149
|
+
* @template T
|
|
2150
|
+
* @param {?} keys
|
|
2151
|
+
* @param {?=} defaultValue
|
|
2152
|
+
* @return {?}
|
|
2153
|
+
*/
|
|
2154
|
+
function (keys, defaultValue) {
|
|
2155
|
+
var _this = this;
|
|
2156
|
+
if (this.data) {
|
|
2157
|
+
/** @type {?} */
|
|
2158
|
+
var found = keys.find((/**
|
|
2159
|
+
* @param {?} key
|
|
2160
|
+
* @return {?}
|
|
2161
|
+
*/
|
|
2162
|
+
function (key) { return !lodash.isNil(_this.data[key]); }));
|
|
2163
|
+
return found ? this.data[found] : defaultValue;
|
|
2164
|
+
}
|
|
2165
|
+
else {
|
|
2166
|
+
return defaultValue;
|
|
2167
|
+
}
|
|
2168
|
+
};
|
|
2142
2169
|
return Descriptor;
|
|
2143
2170
|
}());
|
|
2144
2171
|
Place.Descriptor = Descriptor;
|
|
@@ -2191,7 +2218,7 @@
|
|
|
2191
2218
|
TabbedPlaceNavigationComponent.decorators = [
|
|
2192
2219
|
{ type: core.Component, args: [{
|
|
2193
2220
|
selector: 'angular-ui-powerups-tabbed-place-navigation',
|
|
2194
|
-
template: "<nav mat-tab-nav-bar>\n <a mat-tab-link *ngFor=\"let placeDescriptor of orderedPlaces.value\"\n [routerLink]='placeDescriptor.path'\n routerLinkActive #rla=\"routerLinkActive\"\n [active]=\"rla.isActive\"\n [matTooltip]=\"placeDescriptor.
|
|
2221
|
+
template: "<nav mat-tab-nav-bar>\n <a mat-tab-link *ngFor=\"let placeDescriptor of orderedPlaces.value\"\n [routerLink]='placeDescriptor.path'\n routerLinkActive #rla=\"routerLinkActive\"\n [active]=\"rla.isActive\"\n [matTooltip]=\"placeDescriptor.searchData(['navTooltip', 'navTitle'])\">\n <mat-icon *ngIf=\"placeDescriptor.getData('navIcon')\">{{placeDescriptor.getData('navIcon')}}</mat-icon>\n <span>{{placeDescriptor.getData(\"navTitle\", 'missing @Place({data: {navTitle: ??}\\})')}}</span>\n </a>\n</nav>\n",
|
|
2195
2222
|
styles: [""]
|
|
2196
2223
|
}] }
|
|
2197
2224
|
];
|