monkey-front-core 0.0.517 → 0.0.519
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 +6 -1
- package/esm2020/lib/core/services/monkeyecx-service.service.mjs +6 -1
- package/fesm2015/monkey-front-core.mjs +8 -0
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +10 -0
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/lib/core/services/monkeyecx-service.service.d.ts +1 -0
- package/monkey-front-core-0.0.519.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.517.tgz +0 -0
|
@@ -701,6 +701,11 @@ class MonkeyEcxService {
|
|
|
701
701
|
...params,
|
|
702
702
|
}));
|
|
703
703
|
}
|
|
704
|
+
patch(url, params) {
|
|
705
|
+
return this.http.patch(url, this.handlelize({
|
|
706
|
+
...params,
|
|
707
|
+
}));
|
|
708
|
+
}
|
|
704
709
|
delete(url, params) {
|
|
705
710
|
return this.http.delete(url, params);
|
|
706
711
|
}
|
|
@@ -921,6 +926,11 @@ class MonkeyEcxFormatCurrencyPipe {
|
|
|
921
926
|
fmt = `${fmt}`.replace(/[^0-9,.]/g, '');
|
|
922
927
|
return `${fmt}${symbol !== '' ? ` ${currency}` : ''}`;
|
|
923
928
|
}
|
|
929
|
+
if (currency === 'MXN') {
|
|
930
|
+
let fmt = this.currencyPipe.transform(value, '$', symbol, '1.0-0', locale);
|
|
931
|
+
fmt = `${fmt}`.replace(/[^0-9,.]/g, '');
|
|
932
|
+
return `${fmt}${symbol !== '' ? ` ${currency}` : ''}`;
|
|
933
|
+
}
|
|
924
934
|
return this.currencyPipe.transform(value, currency, symbol, '', locale);
|
|
925
935
|
}
|
|
926
936
|
catch (e) {
|