@wavemaker/angular-codegen 11.7.0-next.42251 → 11.7.0-rc.162

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.
Files changed (28) hide show
  1. angular-codegen/angular-app/angular.json +25 -1622
  2. angular-codegen/angular-app/build-scripts/build.js +35 -0
  3. angular-codegen/angular-app/build-scripts/post-build.js +17 -11
  4. angular-codegen/angular-app/build-scripts/update-version.js +24 -0
  5. angular-codegen/angular-app/package-lock.json +12339 -13436
  6. angular-codegen/angular-app/package.json +65 -63
  7. angular-codegen/angular-app/src/app/lazy-load-scripts.resolve.ts +2 -4
  8. angular-codegen/angular-app/src/assets/print.css +32 -0
  9. angular-codegen/angular-app/src/assets/styles/css/wm-style.css +1 -1
  10. angular-codegen/angular-app/src/setup-jest.js +121 -0
  11. angular-codegen/angular-app/tsconfig.json +44 -33
  12. angular-codegen/angular-app/wm-custom-webpack.config.js +60 -0
  13. angular-codegen/build-angular-app.js +13 -5
  14. angular-codegen/dependencies/expression-parser.cjs.js +40465 -9308
  15. angular-codegen/dependencies/pipe-provider.cjs.js +186312 -93393
  16. angular-codegen/dependencies/transpilation-mobile.cjs.js +58913 -28706
  17. angular-codegen/dependencies/transpilation-web.cjs.js +75541 -28898
  18. angular-codegen/download-packages.js +8 -1
  19. angular-codegen/package-lock.json +4 -4368
  20. angular-codegen/package.json +2 -2
  21. angular-codegen/src/codegen.js +1 -1
  22. angular-codegen/src/handlebar-helpers.js +1 -1
  23. angular-codegen/templates/app-prefabs.module.ts.hbs +0 -1
  24. angular-codegen/templates/app-routes.ts.hbs +6 -5
  25. angular-codegen/templates/layout/layout.module.ts.hbs +1 -1
  26. angular-codegen/templates/page/page.module.ts.hbs +2 -2
  27. angular-codegen/templates/partial/partial.module.ts.hbs +0 -1
  28. angular-codegen/templates/prefab/prefab.module.ts.hbs +0 -1
@@ -4,30 +4,28 @@
4
4
  "scripts": {
5
5
  "ng": "ng",
6
6
  "start": "./node_modules/.bin/ng serve",
7
- "build": "./node_modules/.bin/ng build",
8
- "postbuild": "node build-scripts/post-build.js",
9
- "test": "./node_modules/.bin/ng test",
10
- "test_components": "./node_modules/.bin/ng t @wm/components/base",
11
- "test_mobile": "./node_modules/.bin/ng t @wm/mobile/components/basic",
12
- "test_variables": "./node_modules/.bin/ng t @wm/variables",
13
- "test-all": "npm run test_variables && npm run test_components",
14
- "test-prod": "npm run test-all > karma-test-report.txt; node combine-coverage.js >> karma-test-report.txt",
15
- "lint": "./node_modules/.bin/ng lint",
7
+ "build": "node build-scripts/build.js",
8
+ "post-build": "node build-scripts/post-build.js",
9
+ "test": "jest --no-cache",
10
+ "test:watch": "jest --watch",
11
+ "test:coverage": "jest --coverage",
12
+ "test-prod": "jest --no-cache --no-color --ci --silent 2>&1 | sed 's/\\x1b\\[[0-9;]*m//g' > karma-test-report.txt",
13
+ "lint": "npx eslint \"src/**/*.{ts,html}\" \"projects/**/*.{ts,html}\"",
16
14
  "e2e": "./node_modules/.bin/ng e2e",
17
15
  "optimizecss": "gulp --gulpfile build-scripts/optimize-css.gulpfile.js",
18
16
  "owasp": "owasp-dependency-check --project \"wavemaker-ng-runtime\" -f \"ALL\""
19
17
  },
20
18
  "private": true,
21
19
  "dependencies": {
22
- "@angular/animations": "15.2.9",
23
- "@angular/common": "15.2.9",
24
- "@angular/compiler": "15.2.9",
25
- "@angular/core": "15.2.9",
26
- "@angular/forms": "15.2.9",
27
- "@angular/platform-browser": "15.2.9",
28
- "@angular/platform-browser-dynamic": "15.2.9",
29
- "@angular/router": "15.2.9",
30
- "@angular/service-worker": "15.2.9",
20
+ "@angular/animations": "17.3.11",
21
+ "@angular/common": "17.3.11",
22
+ "@angular/compiler": "17.3.11",
23
+ "@angular/core": "17.3.11",
24
+ "@angular/forms": "17.3.11",
25
+ "@angular/platform-browser": "17.3.11",
26
+ "@angular/platform-browser-dynamic": "17.3.11",
27
+ "@angular/router": "17.3.11",
28
+ "@angular/service-worker": "17.3.11",
31
29
  "@awesome-cordova-plugins/app-version": "5.39.1",
32
30
  "@awesome-cordova-plugins/barcode-scanner": "5.39.1",
33
31
  "@awesome-cordova-plugins/calendar": "5.39.1",
@@ -43,89 +41,93 @@
43
41
  "@awesome-cordova-plugins/network": "5.39.1",
44
42
  "@awesome-cordova-plugins/sqlite": "5.39.1",
45
43
  "@awesome-cordova-plugins/vibration": "5.39.1",
46
- "@babel/runtime": "^7.14.8",
47
- "@metrichor/jmespath": "^0.3.1",
48
- "@wavemaker/focus-trap": "^1.0.0",
49
- "@wavemaker/nvd3": "1.8.9",
50
- "@wavemaker/variables": "11.7.0-next.42251",
51
- "@ztree/ztree_v3": "^3.5.48",
52
- "angular-imask": "6.3.0",
44
+ "@babel/runtime": "7.14.8",
45
+ "@metrichor/jmespath": "0.3.1",
46
+ "@wavemaker/focus-trap": "1.0.1",
47
+ "@wavemaker/nvd3": "1.8.12",
48
+ "@wavemaker/variables": "11.7.0-rc.162",
49
+ "@ztree/ztree_v3": "3.5.48",
50
+ "angular-imask": "^7.6.1",
53
51
  "angular2-websocket": "0.9.7",
54
- "core-js": "2.5.4",
52
+ "core-js": "3.35.1",
55
53
  "d3": "7.8.5",
56
54
  "fullcalendar": "5.3.1",
57
55
  "hammerjs": "2.0.8",
58
- "he": "1.2.0",
59
56
  "iscroll": "5.2.0",
60
57
  "jquery": "3.7.1",
61
- "jquery-ui": "1.13.2",
58
+ "jquery-ui": "1.13.3",
62
59
  "js-cookie": "2.2.0",
63
- "jssha": "^3.1.2",
64
- "lodash": "4.17.21",
65
- "ng-circle-progress": "1.5.1",
60
+ "jssha": "3.1.2",
61
+ "lodash-es": "4.17.21",
62
+ "ng-circle-progress": "1.7.1",
66
63
  "ngx-bootstrap": "9.0.0",
67
- "ngx-color-picker": "12.0.1",
68
- "ngx-toastr": "16.0.2",
64
+ "ngx-color-picker": "16.0.0",
65
+ "ngx-toastr": "17.0.2",
69
66
  "rxjs": "6.6.0",
70
67
  "rxjs-compat": "6.4.0",
71
- "summernote": "0.8.18",
68
+ "summernote": "0.8.20",
69
+ "ts-jest": "29.1.1",
72
70
  "tslib": "2.4.1",
73
- "x2js": "^3.4.4",
74
- "zone.js": "~0.11.4",
75
- "@wavemaker/app-ng-runtime": "11.7.0-next.42251"
71
+ "x2js": "3.4.4",
72
+ "zone.js": "0.14.7",
73
+ "@wavemaker/app-ng-runtime": "11.7.0-rc.162"
76
74
  },
77
75
  "devDependencies": {
78
76
  "@ampproject/rollup-plugin-closure-compiler": "^0.27.0",
79
- "@angular-builders/custom-webpack": "15.0.0",
80
- "@angular-devkit/build-angular": "15.2.8",
81
- "@angular/cli": "15.2.8",
82
- "@angular/compiler-cli": "15.2.9",
83
- "@angular/language-service": "15.2.9",
77
+ "@angular-builders/custom-webpack": "17.0.2",
78
+ "@angular-devkit/build-angular": "17.3.8",
79
+ "@angular-eslint/builder": "17.5.3",
80
+ "@angular-eslint/eslint-plugin": "17.5.3",
81
+ "@angular-eslint/eslint-plugin-template": "17.5.3",
82
+ "@angular-eslint/schematics": "17.5.3",
83
+ "@angular-eslint/template-parser": "17.5.3",
84
+ "@angular/cli": "17.3.8",
85
+ "@angular/compiler-cli": "17.3.11",
86
+ "@angular/language-service": "17.3.11",
84
87
  "@babel/plugin-transform-runtime": "^7.14.5",
85
- "@compodoc/compodoc": "^1.1.19",
88
+ "@compodoc/compodoc": "^1.1.25",
86
89
  "@rollup/plugin-alias": "4.0.2",
87
90
  "@rollup/plugin-commonjs": "24.0.0",
88
91
  "@rollup/plugin-multi-entry": "6.0.0",
89
92
  "@rollup/plugin-node-resolve": "15.0.1",
90
- "@types/jasmine": "2.8.8",
91
- "@types/jasminewd2": "2.0.3",
93
+ "@types/jest": "^29.5.12",
92
94
  "@types/jquery": "3.3.22",
95
+ "@types/lodash-es": "4.17.12",
93
96
  "@types/node": "12.11.1",
94
97
  "@types/sizzle": "^2.3.3",
98
+ "@typescript-eslint/eslint-plugin": "7.11.0",
99
+ "@typescript-eslint/parser": "7.11.0",
95
100
  "babel-loader": "^9.1.2",
96
- "cheerio": "^1.0.0-rc.12",
101
+ "cheerio": "1.0.0-rc.12",
97
102
  "codelyzer": "5.1.2",
98
103
  "compression-webpack-plugin": "10.0.0",
99
- "core-js-builder": "2.5.7",
104
+ "eslint": "^8.57.0",
100
105
  "fs": "0.0.1-security",
101
106
  "fs-extra": "7.0.1",
102
- "istanbul-api": "1.2.2",
103
- "istanbul-reports": "1.1.4",
104
- "jasmine": "3.5.0",
105
- "jasmine-core": "~3.5.0",
106
- "jasmine-spec-reporter": "~5.0.0",
107
- "karma": "~6.3.15",
108
- "karma-chrome-launcher": "~3.1.0",
109
- "karma-coverage-istanbul-reporter": "~3.0.2",
110
- "karma-jasmine": "~4.0.0",
111
- "karma-jasmine-html-reporter": "^1.5.0",
112
- "karma-mocha-reporter": "2.2.5",
107
+ "jest": "^29.7.0",
108
+ "jest-canvas-mock": "^2.5.2",
109
+ "jest-preset-angular": "^14.1.0",
113
110
  "moment": "2.29.4",
114
111
  "moment-timezone": "^0.5.34",
115
- "ng-packagr": "15.2.2",
112
+ "ng-packagr": "17.3.0",
116
113
  "npm-run-all": "4.1.5",
117
- "owasp-dependency-check": "0.0.21",
114
+ "owasp-dependency-check": "0.0.23",
118
115
  "rimraf": "2.6.3",
119
- "rollup": "3.9.1",
116
+ "rollup": "4.9.5",
120
117
  "rollup-plugin-includepaths": "0.2.3",
121
- "sonarqube-scanner": "^2.8.2",
118
+ "sonarqube-scanner": "4.0.1",
122
119
  "terser": "^5.15.1",
123
120
  "ts-node": "7.0.1",
124
121
  "tslint": "~6.1.0",
125
- "typescript": "4.9.5",
122
+ "typescript": "5.4.5",
126
123
  "util": "0.11.1",
127
124
  "yargs": "^17.3.1"
128
125
  },
126
+ "optionalDependencies": {
127
+ "@rollup/rollup-darwin-arm64": "4.9.5",
128
+ "@rollup/rollup-linux-x64-gnu": "4.9.5",
129
+ "@rollup/rollup-win32-x64": "4.9.5"
130
+ },
129
131
  "engines": {
130
132
  "node": ">=18.16.1",
131
133
  "npm": ">=9.5.1"
@@ -1,11 +1,9 @@
1
1
  import { Injectable } from '@angular/core';
2
- import { Resolve } from '@angular/router';
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 implements Resolve<any> {
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
+ }