@wavemaker/angular-codegen 10.16.1-rc.51537 → 10.16.2-next.1400321

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. angular-codegen/angular-app/angular.json +50 -6
  2. angular-codegen/angular-app/build-scripts/post-build.js +0 -2
  3. angular-codegen/angular-app/package-lock.json +8642 -4655
  4. angular-codegen/angular-app/package.json +52 -46
  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/assets/styles/fonts/wm-streamline-light-icon.eot +0 -0
  9. angular-codegen/angular-app/src/assets/styles/fonts/wm-streamline-light-icon.ttf +0 -0
  10. angular-codegen/angular-app/src/assets/styles/fonts/wm-streamline-light-icon.woff +0 -0
  11. angular-codegen/angular-app/src/assets/styles/fonts/wm-streamline-regular-icon.eot +0 -0
  12. angular-codegen/angular-app/src/assets/styles/fonts/wm-streamline-regular-icon.ttf +0 -0
  13. angular-codegen/angular-app/src/assets/styles/fonts/wm-streamline-regular-icon.woff +0 -0
  14. angular-codegen/angular-app/src/assets/styles/images/live-sync-icon.png +0 -0
  15. angular-codegen/angular-app/src/assets/styles/images/live-sync-touch-icon.png +0 -0
  16. angular-codegen/angular-app/src/environments/environment.ts +1 -1
  17. angular-codegen/angular-app/src/main.ts +1 -5
  18. angular-codegen/angular-app/src/polyfills.ts +1 -1
  19. angular-codegen/angular-app/tsconfig.json +3 -0
  20. angular-codegen/build-angular-app.js +7 -4
  21. angular-codegen/dependencies/expression-parser.cjs.js +5054 -2600
  22. angular-codegen/dependencies/pipe-provider.cjs.js +5395 -2683
  23. angular-codegen/dependencies/transpilation-mobile.cjs.js +5242 -2388
  24. angular-codegen/dependencies/transpilation-web.cjs.js +5242 -2388
  25. angular-codegen/package-lock.json +1054 -1237
  26. angular-codegen/package.json +1 -1
  27. angular-codegen/src/codegen-args-cli.js +1 -1
  28. angular-codegen/src/codegen-cli.js +1 -1
  29. angular-codegen/src/codegen.js +1 -1
  30. angular-codegen/src/gen-app-routes.js +1 -1
  31. angular-codegen/src/gen-app-skeleton.js +1 -1
  32. angular-codegen/src/gen-components.js +1 -1
  33. angular-codegen/src/gen-layouts.js +1 -0
  34. angular-codegen/src/handlebar-helpers.js +1 -1
  35. angular-codegen/src/pages-util.js +1 -1
  36. angular-codegen/src/project-meta.js +1 -1
  37. angular-codegen/src/wm-utils.js +1 -1
  38. angular-codegen/templates/app-routes.ts.hbs +2 -2
  39. angular-codegen/templates/app.module.ts.hbs +2 -0
  40. angular-codegen/templates/layout/layout.component.ts.hbs +32 -0
  41. angular-codegen/templates/layout/layout.module.ts.hbs +42 -0
  42. angular-codegen/templates/page/page.component.ts.hbs +2 -2
  43. angular-codegen/templates/partial/partial.component.ts.hbs +1 -0
  44. angular-codegen/templates/prefab/prefab.component.ts.hbs +1 -0
@@ -19,7 +19,10 @@
19
19
  "indexTransform": "./build-scripts/index-html-transform.js",
20
20
  "deployUrl": "ng-bundle/",
21
21
  "outputPath": "dist/ng-bundle",
22
- "index": "src/index.html",
22
+ "index": {
23
+ "input": "src/index.html",
24
+ "output": "../index.html"
25
+ },
23
26
  "main": "src/main.ts",
24
27
  "polyfills": "src/polyfills.ts",
25
28
  "tsConfig": "src/tsconfig.app.json",
@@ -95,7 +98,6 @@
95
98
  "optimization": true,
96
99
  "outputHashing": "all",
97
100
  "sourceMap": false,
98
- "extractCss": true,
99
101
  "namedChunks": false,
100
102
  "aot": true,
101
103
  "extractLicenses": true,
@@ -118,7 +120,6 @@
118
120
  "optimization": false,
119
121
  "outputHashing": "all",
120
122
  "sourceMap": false,
121
- "extractCss": true,
122
123
  "namedChunks": true,
123
124
  "aot": true,
124
125
  "extractLicenses": false,
@@ -137,7 +138,10 @@
137
138
  "builder": "@angular-devkit/build-angular:browser",
138
139
  "options": {
139
140
  "outputPath": "dist",
140
- "index": "src/index.html",
141
+ "index": {
142
+ "input": "src/index.html",
143
+ "output": "../index.html"
144
+ },
141
145
  "main": "src/main.ts",
142
146
  "polyfills": "src/polyfills.ts",
143
147
  "tsConfig": "src/tsconfig.app.json",
@@ -176,13 +180,21 @@
176
180
  "./node_modules/iscroll/build/iscroll.js",
177
181
  "./node_modules/js-cookie/src/js.cookie.js",
178
182
  "./node_modules/jssha/dist/sha256.js"
179
- ]
183
+ ],
184
+ "aot": false,
185
+ "vendorChunk": true,
186
+ "extractLicenses": false,
187
+ "buildOptimizer": false,
188
+ "sourceMap": true,
189
+ "optimization": false,
190
+ "namedChunks": true
180
191
  },
181
192
  "configurations": {
182
193
  "production": {
183
194
  "browserTarget": "angular-app:build:production"
184
195
  }
185
- }
196
+ },
197
+ "defaultConfiguration": ""
186
198
  },
187
199
  "serve": {
188
200
  "builder": "@angular-devkit/build-angular:dev-server",
@@ -1034,6 +1046,38 @@
1034
1046
  }
1035
1047
  }
1036
1048
  },
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
+ },
1037
1081
  "@wm/components/containers/panel": {
1038
1082
  "root": "projects/components/widgets/containers/panel",
1039
1083
  "sourceRoot": "projects/components/widgets/containers/panel/src",
@@ -246,10 +246,8 @@ 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');
250
249
  const contents = await readFile(`./dist/index.html`, `utf8`);
251
250
  $ = cheerio.load(contents);
252
- $('script').attr('defer', 'true');
253
251
  setMobileProjectType(angularJson);
254
252
  if (!isMobileProject) {
255
253
  isProdBuild = fs.existsSync(`${process.cwd()}/dist/ng-bundle/wm-styles.css`);