monkey-style-guide 2.0.34 → 2.0.39

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.
@@ -124,7 +124,7 @@ mecx-select-options {
124
124
  display: block;
125
125
  padding: 0 8px 0 8px;
126
126
  font-size: 14px;
127
- line-height: 60px;
127
+ line-height: 20px;
128
128
  cursor: pointer;
129
129
  transition: all 0.5s;
130
130
  display: flex;
@@ -263,7 +263,7 @@ mecx-select-filter {
263
263
  span {
264
264
  margin-right: 10px;
265
265
  }
266
-
266
+
267
267
  &:disabled {
268
268
  color: #9c9ca6 !important;
269
269
  }
@@ -2247,8 +2247,13 @@
2247
2247
  var _a, _b;
2248
2248
  var settings = this.settings;
2249
2249
  if (this.currency) {
2250
+ if (!value)
2251
+ value = 0;
2250
2252
  return this.currencyPipe.transform("" + value, ((_a = settings === null || settings === void 0 ? void 0 : settings.currency) === null || _a === void 0 ? void 0 : _a.code) || 'BRL', 'symbol', '', ((_b = settings === null || settings === void 0 ? void 0 : settings.currency) === null || _b === void 0 ? void 0 : _b.locale) || 'pt-BR');
2251
2253
  }
2254
+ else if (this.percent) {
2255
+ return value + " %";
2256
+ }
2252
2257
  return value;
2253
2258
  };
2254
2259
  MonkeyInputComponent.prototype.ngOnInit = function () {
@@ -2273,13 +2278,11 @@
2273
2278
  return this.handledValue;
2274
2279
  },
2275
2280
  set: function (value) {
2276
- if (value) {
2277
- this.handledValue = value;
2278
- this._formatedValue = this.formatValue(value);
2279
- this.cdr.detectChanges();
2280
- this.onModelChange(this.handledValue);
2281
- this.onModelTouched(this.handledValue);
2282
- }
2281
+ this.handledValue = value;
2282
+ this._formatedValue = this.formatValue(value);
2283
+ this.cdr.detectChanges();
2284
+ this.onModelChange(this.handledValue);
2285
+ this.onModelTouched(this.handledValue);
2283
2286
  },
2284
2287
  enumerable: false,
2285
2288
  configurable: true