@wavemaker/angular-codegen 10.16.2-next.1400321 → 10.16.2-next.1400322

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 (44) hide show
  1. angular-codegen/angular-app/angular.json +6 -50
  2. angular-codegen/angular-app/build-scripts/post-build.js +2 -0
  3. angular-codegen/angular-app/package-lock.json +4398 -8385
  4. angular-codegen/angular-app/package.json +45 -51
  5. angular-codegen/angular-app/src/.browserslistrc +1 -1
  6. angular-codegen/angular-app/src/assets/styles/css/wm-responsive.css +1 -1
  7. angular-codegen/angular-app/src/assets/styles/css/wm-style.css +1 -1
  8. angular-codegen/angular-app/src/environments/environment.ts +1 -1
  9. angular-codegen/angular-app/src/main.ts +5 -1
  10. angular-codegen/angular-app/src/polyfills.ts +1 -1
  11. angular-codegen/angular-app/tsconfig.json +0 -3
  12. angular-codegen/build-angular-app.js +4 -7
  13. angular-codegen/dependencies/expression-parser.cjs.js +1940 -4394
  14. angular-codegen/dependencies/pipe-provider.cjs.js +2683 -5395
  15. angular-codegen/dependencies/transpilation-mobile.cjs.js +2388 -5242
  16. angular-codegen/dependencies/transpilation-web.cjs.js +2388 -5242
  17. angular-codegen/package-lock.json +1268 -1085
  18. angular-codegen/package.json +1 -1
  19. angular-codegen/src/codegen-args-cli.js +1 -1
  20. angular-codegen/src/codegen-cli.js +1 -1
  21. angular-codegen/src/codegen.js +1 -1
  22. angular-codegen/src/gen-app-routes.js +1 -1
  23. angular-codegen/src/gen-app-skeleton.js +1 -1
  24. angular-codegen/src/gen-components.js +1 -1
  25. angular-codegen/src/handlebar-helpers.js +1 -1
  26. angular-codegen/src/pages-util.js +1 -1
  27. angular-codegen/src/project-meta.js +1 -1
  28. angular-codegen/src/wm-utils.js +1 -1
  29. angular-codegen/templates/app-routes.ts.hbs +2 -2
  30. angular-codegen/templates/app.module.ts.hbs +0 -2
  31. angular-codegen/templates/page/page.component.ts.hbs +2 -2
  32. angular-codegen/templates/partial/partial.component.ts.hbs +0 -1
  33. angular-codegen/templates/prefab/prefab.component.ts.hbs +0 -1
  34. angular-codegen/angular-app/src/assets/styles/fonts/wm-streamline-light-icon.eot +0 -0
  35. angular-codegen/angular-app/src/assets/styles/fonts/wm-streamline-light-icon.ttf +0 -0
  36. angular-codegen/angular-app/src/assets/styles/fonts/wm-streamline-light-icon.woff +0 -0
  37. angular-codegen/angular-app/src/assets/styles/fonts/wm-streamline-regular-icon.eot +0 -0
  38. angular-codegen/angular-app/src/assets/styles/fonts/wm-streamline-regular-icon.ttf +0 -0
  39. angular-codegen/angular-app/src/assets/styles/fonts/wm-streamline-regular-icon.woff +0 -0
  40. angular-codegen/angular-app/src/assets/styles/images/live-sync-icon.png +0 -0
  41. angular-codegen/angular-app/src/assets/styles/images/live-sync-touch-icon.png +0 -0
  42. angular-codegen/src/gen-layouts.js +0 -1
  43. angular-codegen/templates/layout/layout.component.ts.hbs +0 -32
  44. angular-codegen/templates/layout/layout.module.ts.hbs +0 -42
@@ -19,10 +19,7 @@
19
19
  "indexTransform": "./build-scripts/index-html-transform.js",
20
20
  "deployUrl": "ng-bundle/",
21
21
  "outputPath": "dist/ng-bundle",
22
- "index": {
23
- "input": "src/index.html",
24
- "output": "../index.html"
25
- },
22
+ "index": "src/index.html",
26
23
  "main": "src/main.ts",
27
24
  "polyfills": "src/polyfills.ts",
28
25
  "tsConfig": "src/tsconfig.app.json",
@@ -98,6 +95,7 @@
98
95
  "optimization": true,
99
96
  "outputHashing": "all",
100
97
  "sourceMap": false,
98
+ "extractCss": true,
101
99
  "namedChunks": false,
102
100
  "aot": true,
103
101
  "extractLicenses": true,
@@ -120,6 +118,7 @@
120
118
  "optimization": false,
121
119
  "outputHashing": "all",
122
120
  "sourceMap": false,
121
+ "extractCss": true,
123
122
  "namedChunks": true,
124
123
  "aot": true,
125
124
  "extractLicenses": false,
@@ -138,10 +137,7 @@
138
137
  "builder": "@angular-devkit/build-angular:browser",
139
138
  "options": {
140
139
  "outputPath": "dist",
141
- "index": {
142
- "input": "src/index.html",
143
- "output": "../index.html"
144
- },
140
+ "index": "src/index.html",
145
141
  "main": "src/main.ts",
146
142
  "polyfills": "src/polyfills.ts",
147
143
  "tsConfig": "src/tsconfig.app.json",
@@ -180,21 +176,13 @@
180
176
  "./node_modules/iscroll/build/iscroll.js",
181
177
  "./node_modules/js-cookie/src/js.cookie.js",
182
178
  "./node_modules/jssha/dist/sha256.js"
183
- ],
184
- "aot": false,
185
- "vendorChunk": true,
186
- "extractLicenses": false,
187
- "buildOptimizer": false,
188
- "sourceMap": true,
189
- "optimization": false,
190
- "namedChunks": true
179
+ ]
191
180
  },
192
181
  "configurations": {
193
182
  "production": {
194
183
  "browserTarget": "angular-app:build:production"
195
184
  }
196
- },
197
- "defaultConfiguration": ""
185
+ }
198
186
  },
199
187
  "serve": {
200
188
  "builder": "@angular-devkit/build-angular:dev-server",
@@ -1046,38 +1034,6 @@
1046
1034
  }
1047
1035
  }
1048
1036
  },
1049
- "@wm/components/containers/linear-layout": {
1050
- "root": "projects/components/widgets/containers/linear-layout",
1051
- "sourceRoot": "projects/components/widgets/containers/linear-layout/src",
1052
- "projectType": "library",
1053
- "prefix": "lib",
1054
- "architect": {
1055
- "build": {
1056
- "builder": "@angular-devkit/build-angular:ng-packagr",
1057
- "options": {
1058
- "tsConfig": "projects/components/widgets/tsconfig.lib.json",
1059
- "project": "projects/components/widgets/containers/linear-layout/package.json"
1060
- },
1061
- "configurations": {
1062
- "production": {
1063
- "tsConfig": "projects/components/widgets/containers/linear-layout/tsconfig.lib.prod.json"
1064
- }
1065
- }
1066
- },
1067
- "lint": {
1068
- "builder": "@angular-devkit/build-angular:tslint",
1069
- "options": {
1070
- "tsConfig": [
1071
- "projects/components/widgets/tsconfig.lib.json",
1072
- "projects/components/widgets/tsconfig.spec.json"
1073
- ],
1074
- "exclude": [
1075
- "**/node_modules/**"
1076
- ]
1077
- }
1078
- }
1079
- }
1080
- },
1081
1037
  "@wm/components/containers/panel": {
1082
1038
  "root": "projects/components/widgets/containers/panel",
1083
1039
  "sourceRoot": "projects/components/widgets/containers/panel/src",
@@ -246,8 +246,10 @@ const generateSha1 = (content) => {
246
246
  deployUrl = deployUrl.slice(0, deployUrl.length - 1);
247
247
  }
248
248
 
249
+ fs.copyFileSync('./dist/ng-bundle/index.html', './dist/index.html');
249
250
  const contents = await readFile(`./dist/index.html`, `utf8`);
250
251
  $ = cheerio.load(contents);
252
+ $('script').attr('defer', 'true');
251
253
  setMobileProjectType(angularJson);
252
254
  if (!isMobileProject) {
253
255
  isProdBuild = fs.existsSync(`${process.cwd()}/dist/ng-bundle/wm-styles.css`);