monkey-front-core 0.0.491 → 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.
@@ -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,17 +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
747
  const currency = this.defaultCurencyCode.toString();
747
- return this.currencyPipe.transform(value, currency, symbol);
748
+ const localeId = this.localeId.toString();
749
+ return this.currencyPipe.transform(value, currency, symbol, '', localeId);
748
750
  }
749
751
  }
750
- 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 });
751
753
  MonkeyEcxFormatCurrencyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatCurrencyPipe, name: "monkeyecxFormatCurrency" });
752
754
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatCurrencyPipe, decorators: [{
753
755
  type: Pipe,
@@ -757,6 +759,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
757
759
  }], ctorParameters: function () { return [{ type: i2.CurrencyPipe }, { type: i0.InjectionToken, decorators: [{
758
760
  type: Inject,
759
761
  args: [DEFAULT_CURRENCY_CODE]
762
+ }] }, { type: i0.InjectionToken, decorators: [{
763
+ type: Inject,
764
+ args: [LOCALE_ID]
760
765
  }] }]; } });
761
766
 
762
767
  const MECX_TIMEZONEOFFSET = new InjectionToken('');