monkey-front-core 0.0.490 → 0.0.492
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 +10 -7
- package/fesm2015/monkey-front-core.mjs +9 -6
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +9 -6
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/lib/core/pipes/monkeyecx-format-currency.d.ts +2 -1
- package/monkey-front-core-0.0.492.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.490.tgz +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, Input, NgModule, Pipe, ViewEncapsulation, Injectable, DEFAULT_CURRENCY_CODE, Inject, InjectionToken, EventEmitter, Directive, Output, HostBinding, HostListener, forwardRef, Self, Optional, inject, SkipSelf, NgZone, ErrorHandler } from '@angular/core';
|
|
2
|
+
import { Component, Input, NgModule, Pipe, ViewEncapsulation, Injectable, DEFAULT_CURRENCY_CODE, LOCALE_ID, Inject, InjectionToken, EventEmitter, Directive, Output, HostBinding, HostListener, forwardRef, Self, Optional, inject, SkipSelf, NgZone, ErrorHandler } from '@angular/core';
|
|
3
3
|
import * as i1 from 'monkey-style-guide';
|
|
4
4
|
import { MonkeyButtonModule, MonkeyModalModule, MonkeyIconModule, MonkeyInputModule, MonkeyRadioButtonModule, MonkeyOptionModule, MonkeyUtils, MonkeyStyleGuideModule, MonkeyStyleGuideModalService, MonkeyStyleGuideSettingsService, MonkeyStyleGuideSnackbarService } from 'monkey-style-guide';
|
|
5
5
|
import * as i2 from '@angular/common';
|
|
@@ -737,19 +737,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
737
737
|
}], ctorParameters: function () { return []; } });
|
|
738
738
|
|
|
739
739
|
class MonkeyEcxFormatCurrencyPipe {
|
|
740
|
-
constructor(currencyPipe, defaultCurencyCode) {
|
|
740
|
+
constructor(currencyPipe, defaultCurencyCode, localeId) {
|
|
741
741
|
this.currencyPipe = currencyPipe;
|
|
742
742
|
this.defaultCurencyCode = defaultCurencyCode;
|
|
743
|
+
this.localeId = localeId;
|
|
743
744
|
// not to do
|
|
744
745
|
}
|
|
745
746
|
transform(value, symbol = 'symbol') {
|
|
746
|
-
console.log('veio no core@@@@');
|
|
747
|
-
console.log(this.defaultCurencyCode.toString());
|
|
748
747
|
const currency = this.defaultCurencyCode.toString();
|
|
749
|
-
|
|
748
|
+
const localeId = this.localeId.toString();
|
|
749
|
+
return this.currencyPipe.transform(value, currency, symbol, '', localeId);
|
|
750
750
|
}
|
|
751
751
|
}
|
|
752
|
-
MonkeyEcxFormatCurrencyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatCurrencyPipe, deps: [{ token: i2.CurrencyPipe }, { token: DEFAULT_CURRENCY_CODE }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
752
|
+
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: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
753
753
|
MonkeyEcxFormatCurrencyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatCurrencyPipe, name: "monkeyecxFormatCurrency" });
|
|
754
754
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatCurrencyPipe, decorators: [{
|
|
755
755
|
type: Pipe,
|
|
@@ -759,6 +759,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
759
759
|
}], ctorParameters: function () { return [{ type: i2.CurrencyPipe }, { type: i0.InjectionToken, decorators: [{
|
|
760
760
|
type: Inject,
|
|
761
761
|
args: [DEFAULT_CURRENCY_CODE]
|
|
762
|
+
}] }, { type: i0.InjectionToken, decorators: [{
|
|
763
|
+
type: Inject,
|
|
764
|
+
args: [LOCALE_ID]
|
|
762
765
|
}] }]; } });
|
|
763
766
|
|
|
764
767
|
const MECX_TIMEZONEOFFSET = new InjectionToken('');
|