monkey-front-core 21.2.6 → 21.2.7
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.
|
@@ -5408,14 +5408,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
|
|
|
5408
5408
|
* MIT Licence
|
|
5409
5409
|
************************* */
|
|
5410
5410
|
class MonkeyEcxFormatTaxPipe {
|
|
5411
|
-
|
|
5412
|
-
|
|
5413
|
-
|
|
5414
|
-
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5411
|
+
constructor() {
|
|
5412
|
+
this._country = injectTokenWithWarning(MECX_COUNTRY, 'MECX_COUNTRY');
|
|
5413
|
+
}
|
|
5414
|
+
transform(value) {
|
|
5415
|
+
if (!MonkeyEcxUtils.persistNullEmptyUndefined(value)) {
|
|
5416
|
+
return '';
|
|
5417
|
+
}
|
|
5418
|
+
const identifier = {
|
|
5419
|
+
BR: ',',
|
|
5420
|
+
CL: ',',
|
|
5421
|
+
MX: ','
|
|
5422
|
+
}[this._country || 'BR'];
|
|
5423
|
+
return `${value} %`.replace('.', identifier || '.');
|
|
5419
5424
|
}
|
|
5420
5425
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: MonkeyEcxFormatTaxPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
5421
5426
|
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.15", ngImport: i0, type: MonkeyEcxFormatTaxPipe, isStandalone: false, name: "monkeyecxFormatTax" }); }
|