@wavemaker/angular-codegen 11.2.0-next.24381 → 11.2.0-next.24383
Sign up to get free protection for your applications and to get access to all the features.
@@ -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,
|
69521
|
+
constructor(decimalPipe, i18Service) {
|
69522
69522
|
this.decimalPipe = decimalPipe;
|
69523
|
-
this.
|
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
|
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:
|
69543
|
+
{ type: AbstractI18nService, decorators: [{ type: Inject$1, args: [AbstractI18nService,] }] }
|
69543
69544
|
];
|
69544
69545
|
class ToCurrencyPipe {
|
69545
|
-
constructor(decimalPipe,
|
69546
|
+
constructor(decimalPipe, i18Service) {
|
69546
69547
|
this.decimalPipe = decimalPipe;
|
69547
|
-
this.
|
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.
|
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:
|
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.
|
71734
|
+
this.i18service
|
71734
71735
|
]),
|
71735
71736
|
this.preparePipeMeta(ToCurrencyPipe, 'toCurrency', true, [
|
71736
71737
|
new DecimalPipe(this._locale),
|
71737
|
-
this.
|
71738
|
+
this.i18service
|
71738
71739
|
]),
|
71739
71740
|
this.preparePipeMeta(PrefixPipe, 'prefix', true),
|
71740
71741
|
this.preparePipeMeta(SuffixPipe, 'suffix', true),
|