@wavemaker/angular-codegen 11.2.0-next.141009 → 11.2.0-next.141010

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.
@@ -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 + ' `which npm`' + ' run 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
 
@@ -46954,6 +46954,9 @@ const findRootContainer = ($el) => {
46954
46954
  if (!root.length) {
46955
46955
  root = $el.closest('.app-partial');
46956
46956
  }
46957
+ if (!root.length) {
46958
+ root = $el.closest('.app-spa-page');
46959
+ }
46957
46960
  if (!root.length) {
46958
46961
  root = $el.closest('.app-page');
46959
46962
  }
@@ -69518,16 +69521,17 @@ ToDatePipe.ctorParameters = () => [
69518
69521
  { type: AbstractI18nService }
69519
69522
  ];
69520
69523
  class ToNumberPipe {
69521
- constructor(decimalPipe, locale) {
69524
+ constructor(decimalPipe, i18Service) {
69522
69525
  this.decimalPipe = decimalPipe;
69523
- this.locale = locale;
69526
+ this.i18Service = i18Service;
69524
69527
  }
69525
69528
  transform(data, fracSize) {
69526
69529
  if (fracSize && !String(fracSize).match(/^(\d+)?\.((\d+)(-(\d+))?)?$/)) {
69527
69530
  fracSize = '1.' + fracSize + '-' + fracSize;
69528
69531
  }
69529
69532
  if (!_.isNaN(+data)) {
69530
- const formattedLocale = this.locale ? this.locale['number'] : undefined;
69533
+ const locale = this.i18Service.getwidgetLocale() ? this.i18Service.getwidgetLocale() : undefined;
69534
+ const formattedLocale = locale ? locale['number'] : undefined;
69531
69535
  return this.decimalPipe.transform(data, fracSize, formattedLocale);
69532
69536
  }
69533
69537
  }
@@ -69539,16 +69543,16 @@ ToNumberPipe.decorators = [
69539
69543
  ];
69540
69544
  ToNumberPipe.ctorParameters = () => [
69541
69545
  { type: DecimalPipe$1 },
69542
- { type: undefined, decorators: [{ type: Inject$1, args: ["",] }] }
69546
+ { type: AbstractI18nService, decorators: [{ type: Inject$1, args: [AbstractI18nService,] }] }
69543
69547
  ];
69544
69548
  class ToCurrencyPipe {
69545
- constructor(decimalPipe, locale) {
69549
+ constructor(decimalPipe, i18Service) {
69546
69550
  this.decimalPipe = decimalPipe;
69547
- this.locale = locale;
69551
+ this.i18Service = i18Service;
69548
69552
  }
69549
69553
  transform(data, currencySymbol, fracSize) {
69550
69554
  const _currencySymbol = (CURRENCY_INFO[currencySymbol] || {}).symbol || currencySymbol || '';
69551
- let _val = new ToNumberPipe(this.decimalPipe, this.locale).transform(data, fracSize);
69555
+ let _val = new ToNumberPipe(this.decimalPipe, this.i18Service).transform(data, fracSize);
69552
69556
  const isNegativeNumber = _.startsWith(_val, '-');
69553
69557
  if (isNegativeNumber) {
69554
69558
  _val = _val.replace('-', '');
@@ -69563,7 +69567,7 @@ ToCurrencyPipe.decorators = [
69563
69567
  ];
69564
69568
  ToCurrencyPipe.ctorParameters = () => [
69565
69569
  { type: DecimalPipe$1 },
69566
- { type: undefined, decorators: [{ type: Inject$1, args: ["",] }] }
69570
+ { type: AbstractI18nService, decorators: [{ type: Inject$1, args: [AbstractI18nService,] }] }
69567
69571
  ];
69568
69572
  class PrefixPipe {
69569
69573
  transform(data, padding) {
@@ -71730,11 +71734,11 @@ class PipeProvider {
71730
71734
  ]),
71731
71735
  this.preparePipeMeta(ToNumberPipe, 'toNumber', true, [
71732
71736
  new DecimalPipe(this._locale),
71733
- this.formatsByLocale
71737
+ this.i18service
71734
71738
  ]),
71735
71739
  this.preparePipeMeta(ToCurrencyPipe, 'toCurrency', true, [
71736
71740
  new DecimalPipe(this._locale),
71737
- this.formatsByLocale
71741
+ this.i18service
71738
71742
  ]),
71739
71743
  this.preparePipeMeta(PrefixPipe, 'prefix', true),
71740
71744
  this.preparePipeMeta(SuffixPipe, 'suffix', true),