monkey-front-core 0.0.494 → 0.0.496
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/esm2020/lib/core/pipes/monkeyecx-format-currency.mjs +13 -4
- package/fesm2015/monkey-front-core.mjs +12 -3
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +12 -3
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/lib/core/pipes/monkeyecx-format-currency.d.ts +1 -1
- package/monkey-front-core-0.0.496.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.494.tgz +0 -0
|
@@ -750,9 +750,18 @@ class MonkeyEcxFormatCurrencyPipe {
|
|
|
750
750
|
transform(value, symbol = 'symbol') {
|
|
751
751
|
const currency = this.defaultCurencyCode.toString();
|
|
752
752
|
const locale = this.lang.toString();
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
753
|
+
try {
|
|
754
|
+
if (currency === 'CLP') {
|
|
755
|
+
let fmt = this.currencyPipe.transform(value, '$', symbol, '1.0-0', locale);
|
|
756
|
+
fmt = `${fmt}`.replace('$', '');
|
|
757
|
+
return `${fmt} ${currency}`;
|
|
758
|
+
}
|
|
759
|
+
return this.currencyPipe.transform(value, currency, symbol, '', locale);
|
|
760
|
+
}
|
|
761
|
+
catch (e) {
|
|
762
|
+
// not to do
|
|
763
|
+
}
|
|
764
|
+
return value;
|
|
756
765
|
}
|
|
757
766
|
}
|
|
758
767
|
MonkeyEcxFormatCurrencyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatCurrencyPipe, deps: [{ token: i2.CurrencyPipe }, { token: DEFAULT_CURRENCY_CODE }, { token: MECX_LANG }], target: i0.ɵɵFactoryTarget.Pipe });
|