@wavemaker/angular-codegen 11.7.0-next.42251 → 11.7.0-rc.5524
Sign up to get free protection for your applications and to get access to all the features.
- angular-codegen/angular-app/angular.json +11 -1
- angular-codegen/angular-app/build-scripts/build.js +35 -0
- angular-codegen/angular-app/build-scripts/post-build.js +17 -11
- angular-codegen/angular-app/package-lock.json +4104 -2435
- angular-codegen/angular-app/package.json +27 -27
- angular-codegen/angular-app/src/app/lazy-load-scripts.resolve.ts +2 -4
- angular-codegen/angular-app/src/assets/print.css +32 -0
- angular-codegen/build-angular-app.js +5 -4
- angular-codegen/dependencies/expression-parser.cjs.js +2511 -592
- angular-codegen/dependencies/pipe-provider.cjs.js +30481 -17343
- angular-codegen/dependencies/transpilation-mobile.cjs.js +17422 -10709
- angular-codegen/dependencies/transpilation-web.cjs.js +17422 -10709
- angular-codegen/download-packages.js +8 -1
- angular-codegen/package-lock.json +3 -4367
- angular-codegen/package.json +1 -1
- angular-codegen/src/codegen.js +1 -1
- angular-codegen/src/handlebar-helpers.js +1 -1
- angular-codegen/templates/app-prefabs.module.ts.hbs +0 -1
- angular-codegen/templates/app-routes.ts.hbs +6 -5
- angular-codegen/templates/layout/layout.module.ts.hbs +1 -1
- angular-codegen/templates/page/page.module.ts.hbs +2 -2
- angular-codegen/templates/partial/partial.module.ts.hbs +0 -1
- angular-codegen/templates/prefab/prefab.module.ts.hbs +0 -1
@@ -4,8 +4,8 @@
|
|
4
4
|
"scripts": {
|
5
5
|
"ng": "ng",
|
6
6
|
"start": "./node_modules/.bin/ng serve",
|
7
|
-
"build": "
|
8
|
-
"
|
7
|
+
"build": "node build-scripts/build.js",
|
8
|
+
"post-build": "node build-scripts/post-build.js",
|
9
9
|
"test": "./node_modules/.bin/ng test",
|
10
10
|
"test_components": "./node_modules/.bin/ng t @wm/components/base",
|
11
11
|
"test_mobile": "./node_modules/.bin/ng t @wm/mobile/components/basic",
|
@@ -19,15 +19,15 @@
|
|
19
19
|
},
|
20
20
|
"private": true,
|
21
21
|
"dependencies": {
|
22
|
-
"@angular/animations": "
|
23
|
-
"@angular/common": "
|
24
|
-
"@angular/compiler": "
|
25
|
-
"@angular/core": "
|
26
|
-
"@angular/forms": "
|
27
|
-
"@angular/platform-browser": "
|
28
|
-
"@angular/platform-browser-dynamic": "
|
29
|
-
"@angular/router": "
|
30
|
-
"@angular/service-worker": "
|
22
|
+
"@angular/animations": "16.2.12",
|
23
|
+
"@angular/common": "16.2.12",
|
24
|
+
"@angular/compiler": "16.2.12",
|
25
|
+
"@angular/core": "16.2.12",
|
26
|
+
"@angular/forms": "16.2.12",
|
27
|
+
"@angular/platform-browser": "16.2.12",
|
28
|
+
"@angular/platform-browser-dynamic": "16.2.12",
|
29
|
+
"@angular/router": "16.2.12",
|
30
|
+
"@angular/service-worker": "16.2.12",
|
31
31
|
"@awesome-cordova-plugins/app-version": "5.39.1",
|
32
32
|
"@awesome-cordova-plugins/barcode-scanner": "5.39.1",
|
33
33
|
"@awesome-cordova-plugins/calendar": "5.39.1",
|
@@ -46,12 +46,12 @@
|
|
46
46
|
"@babel/runtime": "^7.14.8",
|
47
47
|
"@metrichor/jmespath": "^0.3.1",
|
48
48
|
"@wavemaker/focus-trap": "^1.0.0",
|
49
|
-
"@wavemaker/nvd3": "1.8.
|
50
|
-
"@wavemaker/variables": "11.7.0-
|
49
|
+
"@wavemaker/nvd3": "1.8.10",
|
50
|
+
"@wavemaker/variables": "11.7.0-rc.5524",
|
51
51
|
"@ztree/ztree_v3": "^3.5.48",
|
52
|
-
"angular-imask": "
|
52
|
+
"angular-imask": "7.4.0",
|
53
53
|
"angular2-websocket": "0.9.7",
|
54
|
-
"core-js": "
|
54
|
+
"core-js": "3.35.1",
|
55
55
|
"d3": "7.8.5",
|
56
56
|
"fullcalendar": "5.3.1",
|
57
57
|
"hammerjs": "2.0.8",
|
@@ -62,25 +62,25 @@
|
|
62
62
|
"js-cookie": "2.2.0",
|
63
63
|
"jssha": "^3.1.2",
|
64
64
|
"lodash": "4.17.21",
|
65
|
-
"ng-circle-progress": "1.
|
65
|
+
"ng-circle-progress": "1.7.1",
|
66
66
|
"ngx-bootstrap": "9.0.0",
|
67
|
-
"ngx-color-picker": "
|
68
|
-
"ngx-toastr": "
|
67
|
+
"ngx-color-picker": "16.0.0",
|
68
|
+
"ngx-toastr": "17.0.2",
|
69
69
|
"rxjs": "6.6.0",
|
70
70
|
"rxjs-compat": "6.4.0",
|
71
71
|
"summernote": "0.8.18",
|
72
72
|
"tslib": "2.4.1",
|
73
73
|
"x2js": "^3.4.4",
|
74
|
-
"zone.js": "~0.
|
75
|
-
"@wavemaker/app-ng-runtime": "11.7.0-
|
74
|
+
"zone.js": "~0.13.3",
|
75
|
+
"@wavemaker/app-ng-runtime": "11.7.0-rc.5524"
|
76
76
|
},
|
77
77
|
"devDependencies": {
|
78
78
|
"@ampproject/rollup-plugin-closure-compiler": "^0.27.0",
|
79
|
-
"@angular-builders/custom-webpack": "
|
80
|
-
"@angular-devkit/build-angular": "
|
81
|
-
"@angular/cli": "
|
82
|
-
"@angular/compiler-cli": "
|
83
|
-
"@angular/language-service": "
|
79
|
+
"@angular-builders/custom-webpack": "16.0.1",
|
80
|
+
"@angular-devkit/build-angular": "16.2.11",
|
81
|
+
"@angular/cli": "16.2.11",
|
82
|
+
"@angular/compiler-cli": "16.2.12",
|
83
|
+
"@angular/language-service": "16.2.12",
|
84
84
|
"@babel/plugin-transform-runtime": "^7.14.5",
|
85
85
|
"@compodoc/compodoc": "^1.1.19",
|
86
86
|
"@rollup/plugin-alias": "4.0.2",
|
@@ -112,11 +112,11 @@
|
|
112
112
|
"karma-mocha-reporter": "2.2.5",
|
113
113
|
"moment": "2.29.4",
|
114
114
|
"moment-timezone": "^0.5.34",
|
115
|
-
"ng-packagr": "
|
115
|
+
"ng-packagr": "16.2.3",
|
116
116
|
"npm-run-all": "4.1.5",
|
117
117
|
"owasp-dependency-check": "0.0.21",
|
118
118
|
"rimraf": "2.6.3",
|
119
|
-
"rollup": "
|
119
|
+
"rollup": "4.9.5",
|
120
120
|
"rollup-plugin-includepaths": "0.2.3",
|
121
121
|
"sonarqube-scanner": "^2.8.2",
|
122
122
|
"terser": "^5.15.1",
|
@@ -1,11 +1,9 @@
|
|
1
1
|
import { Injectable } from '@angular/core';
|
2
|
-
import {
|
3
|
-
|
4
|
-
import { isIos, isMobileApp, ScriptLoaderService } from '@wm/core';
|
2
|
+
import { isMobileApp, ScriptLoaderService } from '@wm/core';
|
5
3
|
|
6
4
|
|
7
5
|
@Injectable()
|
8
|
-
export class LazyLoadScriptsResolve
|
6
|
+
export class LazyLoadScriptsResolve {
|
9
7
|
|
10
8
|
constructor(private scriptLoaderService: ScriptLoaderService) {}
|
11
9
|
|
@@ -0,0 +1,32 @@
|
|
1
|
+
body {margin:0; padding:0; line-height: 1.4em; word-spacing:1px; letter-spacing:0.2px; font: 13px Arial, Helvetica,"Lucida Grande", serif; color: #000;}
|
2
|
+
|
3
|
+
/*Header*/
|
4
|
+
h2 {color:#000; font-size:25px;}
|
5
|
+
|
6
|
+
/* Links */
|
7
|
+
a:link, a:visited {background: transparent; color:#333; text-decoration:none;}
|
8
|
+
a:link[href^="http://"]:after, a[href^="http://"]:visited:after {content: " (" attr(href) ") "; font-size: 11px;}
|
9
|
+
a[href^="http://"] {color:#000;}
|
10
|
+
|
11
|
+
/*Image*/
|
12
|
+
img, img a, .more-link a {border:none;}
|
13
|
+
|
14
|
+
/*Remove Element*/
|
15
|
+
.app-header, .app-top-nav, .app-footer, .app-left-panel, .app-right-panel {display: none !important;}
|
16
|
+
|
17
|
+
/*Remove Form Controls*/
|
18
|
+
.app-checkboxset, .app-button, .app-button-group, .app-menu, .app-composite-widget,
|
19
|
+
.form-group, .form-control,
|
20
|
+
.app-fileupload, .app-grid .table-footer
|
21
|
+
{display: none !important;}
|
22
|
+
|
23
|
+
/*Show all of the grid data*/
|
24
|
+
.app-grid .app-datagrid .app-datagrid-cell {
|
25
|
+
overflow: visible;
|
26
|
+
word-wrap: break-word;
|
27
|
+
}
|
28
|
+
|
29
|
+
/*Show Grid record data*/
|
30
|
+
.app-grid-layout .form-group {
|
31
|
+
display: block !important;
|
32
|
+
}
|
@@ -20,12 +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 updateDeployUrl = (
|
24
|
-
let buildArgs = ngBuildParams.split(' ');
|
23
|
+
const updateDeployUrl = (args) => {
|
24
|
+
let buildArgs = args.ngBuildParams.split(' ');
|
25
25
|
const deployParam = buildArgs.find(i => i.startsWith("--deploy-url="));
|
26
26
|
if(!deployParam) {
|
27
27
|
buildArgs.push("--deploy-url=ng-bundle/");
|
28
28
|
}
|
29
|
+
buildArgs.push(args.nodeVMArgs);
|
29
30
|
return ngBuildParams = buildArgs.join(" ");
|
30
31
|
};
|
31
32
|
|
@@ -59,10 +60,10 @@ const buildAngularApp = (args) => {
|
|
59
60
|
process.exit(err.code || err.pid);
|
60
61
|
}
|
61
62
|
|
62
|
-
let ngBuildParams = updateDeployUrl(args
|
63
|
+
let ngBuildParams = updateDeployUrl(args);
|
63
64
|
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
65
|
// Generating the angular build and post build process.
|
65
|
-
executeSyncCmd('cd ' + args.appTarget + ' && node
|
66
|
+
executeSyncCmd('cd ' + args.appTarget + ' && node ./build-scripts/build.js ' + ngBuildParams, null, MSG_NG_RUNTIME_LOG, false, NG_BUILD_MSG);
|
66
67
|
}
|
67
68
|
|
68
69
|
|