@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
@@ -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/plugins/zone-error'; // Included with Angular CLI.
16
+ // import 'zone.js/dist/zone-error'; // Included with Angular CLI.
@@ -5,6 +5,8 @@ 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';
8
10
 
9
11
  initWmProjectProperties();
10
12
 
@@ -14,7 +16,9 @@ if (environment.production) {
14
16
 
15
17
  document.addEventListener('DOMContentLoaded', () => {
16
18
  new Promise<Event | void>( resolve => {
17
- if (window['cordova']) {
19
+ if (isSpotcues) {
20
+ initSpotCues().then(resolve);
21
+ } else if (window['cordova']) {
18
22
  document.addEventListener('deviceready', resolve);
19
23
  } else {
20
24
  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'; // Included with Angular CLI.
64
+ import 'zone.js/dist/zone'; // Included with Angular CLI.
65
65
 
66
66
 
67
67
  /***************************************************************************************************
@@ -37,9 +37,6 @@
37
37
  "@wm/core": [
38
38
  "node_modules/@wavemaker/app-ng-runtime/core"
39
39
  ],
40
- "@wavemaker/variables": [
41
- "node_modules/@wavemaker/variables/"
42
- ],
43
40
  "@wm/components/base": [
44
41
  "node_modules/@wavemaker/app-ng-runtime/components/base"
45
42
  ],
@@ -20,13 +20,10 @@ 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 = (ngBuildParams) => {
23
+ const getDeployUrl = (ngBuildParams) => {
24
24
  let buildArgs = ngBuildParams.split(' ');
25
25
  const deployParam = buildArgs.find(i => i.startsWith("--deploy-url="));
26
- if(!deployParam) {
27
- buildArgs.push("--deploy-url=ng-bundle/");
28
- }
29
- return ngBuildParams = buildArgs.join(" ");
26
+ return deployParam ? deployParam.split("=")[1] : 'ng-bundle/';
30
27
  };
31
28
 
32
29
  /**
@@ -59,10 +56,10 @@ const buildAngularApp = (args) => {
59
56
  process.exit(err.code || err.pid);
60
57
  }
61
58
 
62
- let ngBuildParams = updateDeployUrl(args.ngBuildParams);
59
+ const deployUrl = getDeployUrl(args.ngBuildParams);
63
60
  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
61
  // Generating the angular build and post build process.
65
- executeSyncCmd('cd ' + args.appTarget + ' && node ' + args.nodeVMArgs + ' ./node_modules/@angular/cli/bin/ng build ' + ngBuildParams + ' && node build-scripts/post-build.js', null, MSG_NG_RUNTIME_LOG, false, NG_BUILD_MSG);
62
+ executeSyncCmd('cd ' + args.appTarget + ' && node ' + args.nodeVMArgs + ' ' + './node_modules/@angular/cli/bin/ng build ' + args.ngBuildParams + ' && node build-scripts/post-build.js --deploy-url=' + deployUrl, null, MSG_NG_RUNTIME_LOG, false, NG_BUILD_MSG);
66
63
  }
67
64
 
68
65