@wavemaker/angular-codegen 11.2.0-next.141009 → 11.2.0-next.141010
Sign up to get free protection for your applications and to get access to all the features.
- angular-codegen/angular-app/package-lock.json +3 -3
- angular-codegen/angular-app/package.json +1 -1
- angular-codegen/angular-app/src/assets/styles/css/wm-responsive.css +1 -1
- angular-codegen/angular-app/src/assets/styles/css/wm-style.css +1 -1
- angular-codegen/build-angular-app.js +1 -1
- angular-codegen/dependencies/pipe-provider.cjs.js +14 -10
- angular-codegen/dependencies/transpilation-mobile.cjs.js +380 -318
- angular-codegen/dependencies/transpilation-web.cjs.js +380 -318
- angular-codegen/package.json +1 -1
- angular-codegen/src/codegen-args-cli.js +1 -1
- angular-codegen/src/codegen-cli.js +1 -1
- angular-codegen/src/codegen.js +1 -1
- angular-codegen/src/gen-app-routes.js +1 -1
- angular-codegen/src/gen-app-skeleton.js +1 -1
- angular-codegen/src/gen-components.js +1 -1
- angular-codegen/src/gen-layouts.js +1 -0
- angular-codegen/src/handlebar-helpers.js +1 -1
- angular-codegen/src/pages-util.js +1 -1
- angular-codegen/src/project-meta.js +1 -1
- angular-codegen/src/wm-utils.js +1 -1
- angular-codegen/templates/app-routes.ts.hbs +2 -2
- angular-codegen/templates/layout/layout.component.ts.hbs +32 -0
- angular-codegen/templates/layout/layout.module.ts.hbs +42 -0
- angular-codegen/templates/page/page.component.ts.hbs +2 -2
- angular-codegen/templates/partial/partial.component.ts.hbs +1 -0
- angular-codegen/templates/prefab/prefab.component.ts.hbs +1 -0
@@ -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 + '
|
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,
|
69524
|
+
constructor(decimalPipe, i18Service) {
|
69522
69525
|
this.decimalPipe = decimalPipe;
|
69523
|
-
this.
|
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
|
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:
|
69546
|
+
{ type: AbstractI18nService, decorators: [{ type: Inject$1, args: [AbstractI18nService,] }] }
|
69543
69547
|
];
|
69544
69548
|
class ToCurrencyPipe {
|
69545
|
-
constructor(decimalPipe,
|
69549
|
+
constructor(decimalPipe, i18Service) {
|
69546
69550
|
this.decimalPipe = decimalPipe;
|
69547
|
-
this.
|
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.
|
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:
|
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.
|
71737
|
+
this.i18service
|
71734
71738
|
]),
|
71735
71739
|
this.preparePipeMeta(ToCurrencyPipe, 'toCurrency', true, [
|
71736
71740
|
new DecimalPipe(this._locale),
|
71737
|
-
this.
|
71741
|
+
this.i18service
|
71738
71742
|
]),
|
71739
71743
|
this.preparePipeMeta(PrefixPipe, 'prefix', true),
|
71740
71744
|
this.preparePipeMeta(SuffixPipe, 'suffix', true),
|