@wavemaker/angular-codegen 11.0.0-next.139245 → 11.0.0-next.139265
Sign up to get free protection for your applications and to get access to all the features.
- angular-codegen/angular-app/angular.json +20 -8
- angular-codegen/angular-app/build-scripts/post-build.js +30 -52
- angular-codegen/angular-app/package-lock.json +18868 -60022
- angular-codegen/angular-app/package.json +48 -48
- angular-codegen/angular-app/src/.browserslistrc +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/angular-app/src/assets/styles/fonts/wm-streamline-light-icon.eot +0 -0
- angular-codegen/angular-app/src/assets/styles/fonts/wm-streamline-light-icon.ttf +0 -0
- angular-codegen/angular-app/src/assets/styles/fonts/wm-streamline-light-icon.woff +0 -0
- angular-codegen/angular-app/src/assets/styles/fonts/wm-streamline-regular-icon.eot +0 -0
- angular-codegen/angular-app/src/assets/styles/fonts/wm-streamline-regular-icon.ttf +0 -0
- angular-codegen/angular-app/src/assets/styles/fonts/wm-streamline-regular-icon.woff +0 -0
- angular-codegen/angular-app/src/assets/styles/images/live-sync-icon.png +0 -0
- angular-codegen/angular-app/src/assets/styles/images/live-sync-touch-icon.png +0 -0
- angular-codegen/angular-app/src/environments/environment.ts +1 -1
- angular-codegen/angular-app/src/main.ts +1 -5
- angular-codegen/angular-app/src/polyfills.ts +1 -1
- angular-codegen/build-angular-app.js +7 -4
- angular-codegen/dependencies/app.component.html +22 -0
- angular-codegen/dependencies/expression-parser.cjs.js +20263 -0
- angular-codegen/dependencies/pipe-provider.cjs.js +71744 -0
- angular-codegen/dependencies/transpilation-mobile.cjs.js +4932 -2039
- angular-codegen/dependencies/transpilation-web.cjs.js +4932 -2039
- angular-codegen/package-lock.json +18 -5488
- 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/expr-parser-utils.js +1 -0
- angular-codegen/src/gen-app-variables.js +1 -1
- angular-codegen/src/gen-components.js +1 -1
- angular-codegen/src/handlebar-helpers.js +1 -1
- angular-codegen/src/pages-util.js +1 -1
- angular-codegen/src/update-angular-json.js +1 -1
- angular-codegen/src/wm-utils.js +1 -1
- angular-codegen/templates/app.component.script.js.hbs +6 -1
- angular-codegen/templates/component.expressions.ts.hbs +3 -0
- angular-codegen/templates/expr-vs-fn.hbs +3 -0
- angular-codegen/templates/page/page.component.ts.hbs +7 -1
- angular-codegen/templates/partial/partial.component.ts.hbs +6 -0
- angular-codegen/templates/prefab/prefab.component.ts.hbs +6 -0
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -13,4 +13,4 @@ export const environment = {
|
|
13
13
|
* This import should be commented out in production mode because it will have a negative impact
|
14
14
|
* on performance if an error is thrown.
|
15
15
|
*/
|
16
|
-
// import 'zone.js/
|
16
|
+
// import 'zone.js/plugins/zone-error'; // Included with Angular CLI.
|
@@ -5,8 +5,6 @@ import { AppModule } from './app/app.module';
|
|
5
5
|
import { environment } from './environments/environment';
|
6
6
|
|
7
7
|
import initWmProjectProperties from './app/wm-project-properties';
|
8
|
-
import { isIos, isSpotcues } from '@wm/core';
|
9
|
-
import { initSpotCues } from '@wm/runtime/base';
|
10
8
|
|
11
9
|
initWmProjectProperties();
|
12
10
|
|
@@ -16,9 +14,7 @@ if (environment.production) {
|
|
16
14
|
|
17
15
|
document.addEventListener('DOMContentLoaded', () => {
|
18
16
|
new Promise<Event | void>( resolve => {
|
19
|
-
if (
|
20
|
-
initSpotCues().then(resolve);
|
21
|
-
} else if (window['cordova']) {
|
17
|
+
if (window['cordova']) {
|
22
18
|
document.addEventListener('deviceready', resolve);
|
23
19
|
} else {
|
24
20
|
resolve();
|
@@ -61,7 +61,7 @@ import 'core-js/es6/reflect';
|
|
61
61
|
/***************************************************************************************************
|
62
62
|
* Zone JS is required by default for Angular itself.
|
63
63
|
*/
|
64
|
-
import 'zone.js
|
64
|
+
import 'zone.js'; // Included with Angular CLI.
|
65
65
|
|
66
66
|
|
67
67
|
/***************************************************************************************************
|
@@ -20,10 +20,13 @@ const { executeSyncCmd, MSG_NG_RUNTIME_LOG, MSG_NG_RUNTIME_SUCCESS } = require(
|
|
20
20
|
/**
|
21
21
|
* @TODO: This is a temporary workaround to extract deploy-url from 'ngBuildParams', need to be replaced in future.
|
22
22
|
*/
|
23
|
-
const
|
23
|
+
const updateDeployUrl = (ngBuildParams) => {
|
24
24
|
let buildArgs = ngBuildParams.split(' ');
|
25
25
|
const deployParam = buildArgs.find(i => i.startsWith("--deploy-url="));
|
26
|
-
|
26
|
+
if(!deployParam) {
|
27
|
+
buildArgs.push("--deploy-url=ng-bundle/");
|
28
|
+
}
|
29
|
+
return ngBuildParams = buildArgs.join(" ");
|
27
30
|
};
|
28
31
|
|
29
32
|
/**
|
@@ -56,10 +59,10 @@ const buildAngularApp = (args) => {
|
|
56
59
|
process.exit(err.code || err.pid);
|
57
60
|
}
|
58
61
|
|
59
|
-
|
62
|
+
let ngBuildParams = updateDeployUrl(args.ngBuildParams);
|
60
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';
|
61
64
|
// Generating the angular build and post build process.
|
62
|
-
executeSyncCmd('cd ' + args.appTarget + ' && node ' + args.nodeVMArgs + '
|
65
|
+
executeSyncCmd('cd ' + args.appTarget + ' && node ' + args.nodeVMArgs + ' `which npm`' + ' run build -- ' + ngBuildParams, null, MSG_NG_RUNTIME_LOG, false, NG_BUILD_MSG);
|
63
66
|
}
|
64
67
|
|
65
68
|
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<ng-container *ngIf="startApp">
|
2
|
+
<router-outlet></router-outlet>
|
3
|
+
<div wmContainer partialContainer content="Common" hidden class="ng-hide" *ngIf="isApplicationType"></div>
|
4
|
+
<app-spinner name="globalspinner" classname="global-spinner" role="alert" aria-live="assertive" [attr.aria-label]="spinner.arialabel || 'Loading'" [show]="spinner.show" [spinnermessages]="spinner.messages"></app-spinner>
|
5
|
+
<div wmDialog name="oAuthLoginDialog" title="Application is requesting you to sign in with"
|
6
|
+
close.event="closeOAuthDialog()">
|
7
|
+
<ng-template #dialogBody>
|
8
|
+
<ul class="list-items">
|
9
|
+
<li class="list-item" *ngFor="let provider of providersConfig">
|
10
|
+
<button class="btn" (click)="provider.invoke()">{{provider.name}}</button>
|
11
|
+
</li>
|
12
|
+
</ul>
|
13
|
+
</ng-template>
|
14
|
+
</div>
|
15
|
+
<div wmConfirmDialog name="_app-confirm-dialog" title.bind="title" message.bind="message" oktext.bind="oktext"
|
16
|
+
canceltext.bind="canceltext" closable="false" iconclass.bind="iconclass"
|
17
|
+
escape.event="onEscape()" ok.event="onOk()" cancel.event="onCancel()" close.event="onClose()" opened.event="onOpen()"></div>
|
18
|
+
<div wmAppExt></div>
|
19
|
+
<i id="wm-mobile-display"></i>
|
20
|
+
</ng-container>
|
21
|
+
<!--Dummy container to create the component dynamically-->
|
22
|
+
<ng-container #dynamicComponent></ng-container>
|