monkey-front-core 21.2.6 → 21.2.8
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" }); }
|
|
@@ -5641,9 +5646,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
|
|
|
5641
5646
|
* MIT Licence
|
|
5642
5647
|
************************* */
|
|
5643
5648
|
|
|
5644
|
-
function provideDomainServiceWorker(workerUrl) {
|
|
5649
|
+
function provideDomainServiceWorker(workerUrl, scope = '/') {
|
|
5645
5650
|
return provideServiceWorker(workerUrl, {
|
|
5646
5651
|
enabled: true,
|
|
5652
|
+
scope,
|
|
5647
5653
|
registrationStrategy: 'registerWhenStable:3000'
|
|
5648
5654
|
});
|
|
5649
5655
|
}
|