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.
- package/assets/scss/partials/components/_select.scss +2 -2
- package/bundles/monkey-style-guide.umd.js +10 -7
- package/bundles/monkey-style-guide.umd.js.map +1 -1
- package/esm2015/lib/components/input/input.component.js +11 -8
- package/esm2015/lib/core/utils/utils.js +1 -1
- package/fesm2015/monkey-style-guide.js +10 -7
- package/fesm2015/monkey-style-guide.js.map +1 -1
- package/monkey-style-guide-2.0.39.tgz +0 -0
- package/package.json +1 -1
- package/monkey-style-guide-2.0.34.tgz +0 -0
|
@@ -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:
|
|
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
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
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
|