@wavemaker/angular-codegen 11.2.0-next.24380 → 11.2.0-next.24383

Sign up to get free protection for your applications and to get access to all the features.
@@ -68,7 +68,7 @@
68
68
  "tslib": "^2.0.0",
69
69
  "x2js": "3.2.6",
70
70
  "zone.js": "~0.11.4",
71
- "@wavemaker/app-ng-runtime": "11.2.0-next.24380"
71
+ "@wavemaker/app-ng-runtime": "11.2.0-next.24383"
72
72
  },
73
73
  "devDependencies": {
74
74
  "@ampproject/rollup-plugin-closure-compiler": "0.8.5",
@@ -62,7 +62,7 @@ const buildAngularApp = (args) => {
62
62
  let ngBuildParams = updateDeployUrl(args.ngBuildParams);
63
63
  const NG_BUILD_MSG = 'NG BUILD MIGHT HAVE FAILED WITH HEAP OUT OF MEMORY, RE-EXECUTE THE BUILD BY INCREASING THE MAX-OLD-SPACE-SIZE ARGUMENT VALUE FOR BUILD.UI.NODE.ARGS PROPERTY IN DEPLOYMENT PROFILE';
64
64
  // Generating the angular build and post build process.
65
- executeSyncCmd('cd ' + args.appTarget + ' && node ' + args.nodeVMArgs + ' ./node_modules/@angular/cli/bin/ng build ' + ngBuildParams, null, MSG_NG_RUNTIME_LOG, false, NG_BUILD_MSG);
65
+ executeSyncCmd('cd ' + args.appTarget + ' && node ' + args.nodeVMArgs + ' ./node_modules/@angular/cli/bin/ng build ' + ngBuildParams + ' && node build-scripts/post-build.js', null, MSG_NG_RUNTIME_LOG, false, NG_BUILD_MSG);
66
66
  }
67
67
 
68
68
 
@@ -69518,16 +69518,17 @@ ToDatePipe.ctorParameters = () => [
69518
69518
  { type: AbstractI18nService }
69519
69519
  ];
69520
69520
  class ToNumberPipe {
69521
- constructor(decimalPipe, locale) {
69521
+ constructor(decimalPipe, i18Service) {
69522
69522
  this.decimalPipe = decimalPipe;
69523
- this.locale = locale;
69523
+ this.i18Service = i18Service;
69524
69524
  }
69525
69525
  transform(data, fracSize) {
69526
69526
  if (fracSize && !String(fracSize).match(/^(\d+)?\.((\d+)(-(\d+))?)?$/)) {
69527
69527
  fracSize = '1.' + fracSize + '-' + fracSize;
69528
69528
  }
69529
69529
  if (!_.isNaN(+data)) {
69530
- const formattedLocale = this.locale ? this.locale['number'] : undefined;
69530
+ const locale = this.i18Service.getwidgetLocale() ? this.i18Service.getwidgetLocale() : undefined;
69531
+ const formattedLocale = locale ? locale['number'] : undefined;
69531
69532
  return this.decimalPipe.transform(data, fracSize, formattedLocale);
69532
69533
  }
69533
69534
  }
@@ -69539,16 +69540,16 @@ ToNumberPipe.decorators = [
69539
69540
  ];
69540
69541
  ToNumberPipe.ctorParameters = () => [
69541
69542
  { type: DecimalPipe$1 },
69542
- { type: undefined, decorators: [{ type: Inject$1, args: ["",] }] }
69543
+ { type: AbstractI18nService, decorators: [{ type: Inject$1, args: [AbstractI18nService,] }] }
69543
69544
  ];
69544
69545
  class ToCurrencyPipe {
69545
- constructor(decimalPipe, locale) {
69546
+ constructor(decimalPipe, i18Service) {
69546
69547
  this.decimalPipe = decimalPipe;
69547
- this.locale = locale;
69548
+ this.i18Service = i18Service;
69548
69549
  }
69549
69550
  transform(data, currencySymbol, fracSize) {
69550
69551
  const _currencySymbol = (CURRENCY_INFO[currencySymbol] || {}).symbol || currencySymbol || '';
69551
- let _val = new ToNumberPipe(this.decimalPipe, this.locale).transform(data, fracSize);
69552
+ let _val = new ToNumberPipe(this.decimalPipe, this.i18Service).transform(data, fracSize);
69552
69553
  const isNegativeNumber = _.startsWith(_val, '-');
69553
69554
  if (isNegativeNumber) {
69554
69555
  _val = _val.replace('-', '');
@@ -69563,7 +69564,7 @@ ToCurrencyPipe.decorators = [
69563
69564
  ];
69564
69565
  ToCurrencyPipe.ctorParameters = () => [
69565
69566
  { type: DecimalPipe$1 },
69566
- { type: undefined, decorators: [{ type: Inject$1, args: ["",] }] }
69567
+ { type: AbstractI18nService, decorators: [{ type: Inject$1, args: [AbstractI18nService,] }] }
69567
69568
  ];
69568
69569
  class PrefixPipe {
69569
69570
  transform(data, padding) {
@@ -71730,11 +71731,11 @@ class PipeProvider {
71730
71731
  ]),
71731
71732
  this.preparePipeMeta(ToNumberPipe, 'toNumber', true, [
71732
71733
  new DecimalPipe(this._locale),
71733
- this.formatsByLocale
71734
+ this.i18service
71734
71735
  ]),
71735
71736
  this.preparePipeMeta(ToCurrencyPipe, 'toCurrency', true, [
71736
71737
  new DecimalPipe(this._locale),
71737
- this.formatsByLocale
71738
+ this.i18service
71738
71739
  ]),
71739
71740
  this.preparePipeMeta(PrefixPipe, 'prefix', true),
71740
71741
  this.preparePipeMeta(SuffixPipe, 'suffix', true),
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavemaker/angular-codegen",
3
- "version": "11.2.0-next.24380",
3
+ "version": "11.2.0-next.24383",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {