@coolon/angular-ui-powerups 0.0.29 → 0.0.31

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.
@@ -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.title\">\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",
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
  ];
@@ -3869,8 +3896,36 @@
3869
3896
  };
3870
3897
  return NumberType;
3871
3898
  }());
3899
+ var BooleanType = /** @class */ (function () {
3900
+ function BooleanType() {
3901
+ }
3902
+ /**
3903
+ * @param {?} value
3904
+ * @return {?}
3905
+ */
3906
+ BooleanType.prototype.format = /**
3907
+ * @param {?} value
3908
+ * @return {?}
3909
+ */
3910
+ function (value) {
3911
+ return value ? 'true' : 'false';
3912
+ };
3913
+ /**
3914
+ * @param {?} value
3915
+ * @return {?}
3916
+ */
3917
+ BooleanType.prototype.parse = /**
3918
+ * @param {?} value
3919
+ * @return {?}
3920
+ */
3921
+ function (value) {
3922
+ return value === 'true';
3923
+ };
3924
+ return BooleanType;
3925
+ }());
3872
3926
  ParameterType.STRING = new StringType();
3873
3927
  ParameterType.NUMBER = new NumberType();
3928
+ ParameterType.BOOLEAN = new BooleanType();
3874
3929
  })(exports.ParameterType || (exports.ParameterType = {}));
3875
3930
 
3876
3931
  exports.ACTIVITY_DATA = ACTIVITY_DATA;